(self.webpackChunk=self.webpackChunk||[]).push([[1423],{40001:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Re}});var re=oe(60499),Xe=oe(59301),pe={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=pe,xe=oe(7657),Ce=function(fe,Ge){return Xe.createElement(xe.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Se=Xe.forwardRef(Ce),Re=Se},73331:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Re}});var re=oe(60499),Xe=oe(59301),pe={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=pe,xe=oe(7657),Ce=function(fe,Ge){return Xe.createElement(xe.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Se=Xe.forwardRef(Ce),Re=Se},15277:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Re}});var re=oe(60499),Xe=oe(59301),pe={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=pe,xe=oe(7657),Ce=function(fe,Ge){return Xe.createElement(xe.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Se=Xe.forwardRef(Ce),Re=Se},61485:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Re}});var re=oe(60499),Xe=oe(59301),pe={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=pe,xe=oe(7657),Ce=function(fe,Ge){return Xe.createElement(xe.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Se=Xe.forwardRef(Ce),Re=Se},47472:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Re}});var re=oe(60499),Xe=oe(59301),pe={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=pe,xe=oe(7657),Ce=function(fe,Ge){return Xe.createElement(xe.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Se=Xe.forwardRef(Ce),Re=Se},87395:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Re}});var re=oe(60499),Xe=oe(59301),pe={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=pe,xe=oe(7657),Ce=function(fe,Ge){return Xe.createElement(xe.Z,(0,re.Z)({},fe,{ref:Ge,icon:We}))},Se=Xe.forwardRef(Ce),Re=Se},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(Rt,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 Rt={},It="5.0",oe={},re=null,Xe=!1,pe=!1,We=null,xe=!1,Ce=null,Se=null,Re=0;Re4?parseFloat(Ae):5};Rt.setHTML5Codebase=function(Ae,Qe){Se=Ae,rt(Ae,Qe)},Rt.setJavaCodebase=Rt.setJavaCodebaseVersion=Rt.isCompiledInstalled=Rt.setPreCompiledScriptPath=Rt.setPreCompiledResourcePath=function(){},Rt.setHTML5CodebaseVersion=function(Ae,Qe){var et=parseFloat(Ae);if(et!==NaN&&et<5){console.log("The GeoGebra HTML5 codebase version "+et+" is deprecated. Using version latest instead.");return}Ce=Ae,de(Ae,Qe)},Rt.getHTML5CodebaseVersion=function(){return He},Rt.getParameters=function(){return oe},Rt.setFontsCSSURL=function(Ae){at=Ae},Rt.setGiacJSURL=function(Ae){},Rt.setJNLPFile=function(Ae){fe=Ae},Rt.setJNLPBaseDir=function(Ae){},Rt.inject=function(){function Ae(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Qe="auto",et=oe.id,en,Et=!1,$t=0;$t=5)return!0;var Ae=Rt.getAppletObject();return Ae&&typeof Ae.recalculateEnvironments=="function"?(Ae.recalculateEnvironments(),!0):!1},Rt.startAnimation=function(){var Ae=Rt.getAppletObject();return Ae&&typeof Ae.startAnimation=="function"?(Ae.startAnimation(),!0):!1},Rt.stopAnimation=function(){var Ae=Rt.getAppletObject();return Ae&&typeof Ae.stopAnimation=="function"?(Ae.stopAnimation(),!0):!1},Rt.getAppletObject=function(){var Ae=oe.id!==void 0?oe.id:"ggbApplet";return window[Ae]},Rt.resize=function(){};var vt=function(Ae,Qe,et){var en=document.createElement("param");en.setAttribute("name",Qe),en.setAttribute("value",et),Ae.appendChild(en)},Ne=function(Ae){return Ae&&Ae!=="false"},Ue=function(Ae,Qe,et){tt(He)<=4.2&&(et=!0);var en=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==He||ggbHTML5LoadedCodebaseIsWebSimple&&!ze)&&(en=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Et=document.createElement("div");Et.classList.add("appletParameters","notranslate");var $t=Qe.width,Ve=Qe.height;if(Qe.disableAutoScale=Qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Qe.disableAutoScale,Qe.width!==void 0)if(tt(He)<=4.4)Ne(Qe.showToolBar)&&(Qe.height-=7),Ne(Qe.showAlgebraInput)&&(Qe.height-=37),Qe.width<605&&Ne(Qe.showToolBar)&&(Qe.width=605,$t=605);else{var Ot=100;(Ne(Qe.showToolBar)||Ne(Qe.showMenuBar))&&(Qe.hasOwnProperty("customToolBar")&&(Qe.customToolbar=Qe.customToolBar),Ot=Ne(Qe.showMenuBar)?245:155),$t=5?(Qe.appletOnLoad=function(Pt){var Mt=Ae.querySelector(".ggb_preview");Mt&&Mt.parentNode.removeChild(Mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ee),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(Pt)},z||ee.appendChild(ie)):Et.appendChild(ie),ee.appendChild(Et),z||Ae.appendChild(ee),setTimeout(function(){Rt.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Et),Ae.appendChild(se),Qe.appletOnLoad=function(Pt){Rt.resize(),ae(Pt)}}function ne(Pt,Mt){Mt&&typeof Mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Pt,Mt.appletOnLoad):renderGGBElement(Pt),Tt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Mt)}function we(Pt,Mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Pt,params:Mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Wt){ne(Wt.article,Wt.params)}),html5AppletsToProcess=null)},tt(He)<5&&(Pt.className+=" geogebraweb")):ne(Pt,Mt)}if(en){scriptLoadStarted=!0;for(var Be=0;Be0?(it.remove(),ee.attr("id","fullscreencontent").show(),jQuery(ae).append(ee),window.dispatchEvent(new Event("resize"))):Ue(it,Qe,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else ot=en,Ue(Ae,Qe,!1);if(!window.GGBT_wsf_view)for(Ve=0;VeAe/4*3&&(it=Ae/4*3),ae=it/5.8,Ot.setAttribute("src",lt),Ot.setAttribute("width",it),Ot.setAttribute("height",ae);var ee=(Ae-it)/2,z=(Qe-ae)/2;Ot.style.left=ee+"px",Ot.style.top=z+"px",Et.appendChild(Ot)}}return Et.appendChild(Ve),Et},Dt=function(Ae){return Ae=Ae.toLowerCase(),Ae==="html5"||Ae==="screenshot"?Ae:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],de=function(Ae,Qe){if(He=Ae,Qe){rt(He,!0);return}var et=!Xe;if(et){var en=tt(He);!isNaN(en)&&en<4.4&&(et=!1)}var Et,$t;window.location.protocol.substr(0,4)==="http"?Et=window.location.protocol:Et="http:";var Ve=He.indexOf("//");Ve>0?$t=He:Ve===0?$t=Et+He:$t="https://www.geogebra.org/apps/5.2.814.0/";for(var Ot in ve)if(He.slice(ve[Ot].length*-1)===ve[Ot]||He.slice((ve[Ot].length+1)*-1)===ve[Ot]+"/"){rt($t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&et&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!Ne(oe.showToolBar)&&!Ne(oe.showMenuBar)&&!Ne(oe.showAlgebraInput)&&!Ne(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?$t+="webSimple/":$t+="web3d/",rt($t,!1)},rt=function(Ae,Qe){if(Ae.requirejs){Ge=Ae;return}Ae.slice(-1)!=="/"&&(Ae+="/"),Ge=Ae,Qe===null&&(Qe=Ae.indexOf("http")===-1),be=Qe,ke="web.nocache.js",ze=!1;var et=Ge.split("/");et.length>1&&(!Qe&&et[et.length-2]==="webSimple"?(ke="webSimple.nocache.js",ze=!0):ve.indexOf(et[et.length-2])>=0&&(ke=et[et.length-2]+".nocache.js")),et=Ae.split("/"),He=et[et.length-3],He.substr(0,4)==="test"?He=He.substr(4,1)+"."+He.substr(5,1):(He.substr(0,3)==="war"||He.substr(0,4)==="beta")&&(He="5.0");var en=parseFloat(He);en!==NaN&&en<5&&Ae.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+en+" is deprecated. Using version latest instead."),de("5.0",Qe))},Tt=function(Ae,Qe){window.console&&window.console.log&&(!Qe||typeof Qe.showLogging=="undefined"||Qe.showLogging&&Qe.showLogging!=="false")&&console.log(Ae)};oe.material_id!==void 0?kt(ft):ft();function ft(){var Ae=It;Ce!==null?Ae=Ce:parseFloat(Ae)<5&&(Ae="5.0"),de(Ae,!1),Se!==null&&rt(Se,be),xe=!0}return Rt},GGBAppletUtils=function(){"use strict";function Rt(){return window.GGBT_wsf_edit!==void 0}function It(xe,Ce){Ce!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Ce+","+Ce+")",xe.style.webkitTransform="scale("+Ce+","+Ce+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function oe(xe,Ce,Se,Re,Ee,fe){var Ge=null;if(fe!=null&&fe!="")for(var be=xe.parentNode;be!=null;)if((" "+be.className+" ").indexOf(" "+fe+" ")>-1){Ge=be;break}else be=be.parentNode;var ot=0,He=0,ke=0,ze=0,Oe=0,lt=0,xt=0;if(Ge)ot=Ge.offsetWidth,He=Math.max(Re?Ge.offsetWidth:0,Ge.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ot=Math.min(window.innerWidth,document.documentElement.clientWidth),He=Math.min(window.innerHeight,document.documentElement.clientHeight),ke=ot):(ot=window.innerWidth,He=window.innerHeight,ke=window.innerWidth),xe){var at=xe.getBoundingClientRect();at.left>0&&at.left<=ot&&(Ee===void 0||!Ee)&&(document.dir==="rtl"?(Oe=ot-at.width-at.left,lt=ke<=480?10:30):(lt=at.left,Oe=ke<=480?10:30),ze=lt+Oe)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ut=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ze=40,xt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ze=0,xt=40)}}return xe&&((Se===void 0||!Se)&&Ce>0&&Ce+ze1&&(fe=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(fe=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Ee=re(xe,Ce,fe,Se,xe.scaleContainerClass);else return Re;return fe&&(!xe.hasOwnProperty("scale")||Re===1)?Ee:Math.min(Re,Ee)}function pe(xe){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),Re=xe.getBoundingClientRect(),Ee=(Ce-Re.width)/2,fe=(Se-Re.height)/2;fe<0&&(fe=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ee<40?xe.style.left="40px":xe.style.left=Ee+"px",xe.style.top=fe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(fe<40?xe.style.top="40px":xe.style.top=fe+"px",xe.style.left=Ee+"px")}function We(xe,Ce){var Se=xe.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var Re=Xe(Ce,xe);Rt()&&Se.setAttribute("data-param-scale",Re);for(var Ee=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(Rt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Rt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Rt){var It=c[Rt];return It==null?null:It},r=d,webModule.__errFn=e}function B(){function Rt(xe){var Ce=xe.lastIndexOf(rb);Ce==-1&&(Ce=xe.length);var Se=xe.indexOf(sb);Se==-1&&(Se=xe.length);var Re=xe.lastIndexOf(tb,Math.min(Se,Ce));return Re>=O?xe.substring(O,Re+P):W}function It(xe){if(!xe.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=xe+vb,xe=Rt(Ce.src)}return xe}function oe(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function re(){for(var xe=o.getElementsByTagName(_),Ce=O;CeO?xe[xe.length-P].href:W}function pe(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var We=oe();return We==W&&(We=re()),We==W&&(We=Xe()),We==W&&pe()&&(We=Rt(o.location.href)),We=It(We),We}function C(Rt){return Rt.match(/^\//)||Rt.match(/^[a-zA-Z]+:\/\//)?Rt:webModule.__moduleBase+Rt}function D(){var Rt=[],It=O,oe=[],re=[];function Xe(xe){var Ce=re[xe](),Se=oe[xe];if(Ce in Se)return Ce;var Re=[];for(var Ee in Se)Re[Se[Ee]]=Ee;throw r&&r(xe,Re,Ce),null}if(__gwt_isKnownPropertyValue=function(xe,Ce){return Ce in oe[xe]},webModule.__getPropMap=function(){var xe={};for(var Ce in oe)oe.hasOwnProperty(Ce)&&(xe[Ce]=Xe(Ce));return xe},webModule.__computePropValue=Xe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var pe;try{pe=Cb;var We=pe.indexOf(Db);We!=-1&&(It=parseInt(pe.substring(We+P),$),pe=pe.substring(O,We))}catch(xe){}return webModule.__softPermutationId=It,C(pe+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(Rt,It,oe){"use strict";oe.d(It,{Ax:function(){return We},Ds:function(){return xe},KI:function(){return Se},SI:function(){return pe},f1:function(){return Xe}});var re=oe(14185);function Xe(Re){let Ee=!0;if(Re.length>0){for(let fe=0;feHe in ot?Ce(ot,He,{enumerable:!0,configurable:!0,writable:!0,value:ke}):ot[He]=ke,Ge=(ot,He)=>{for(var ke in He||(He={}))Re.call(He,ke)&&fe(ot,ke,He[ke]);if(Se)for(var ke of Se(He))Ee.call(He,ke)&&fe(ot,ke,He[ke]);return ot};const be=({cancelText:ot="\u53D6\u6D88",okText:He="\u786E\u5B9A",loading:ke=!1,hasOkBtn:ze=!0,hasCancelBtn:Oe=!0,okButtonProps:lt={},onCancel:xt=()=>{},onOk:at=()=>{},className:ut=""})=>re.createElement("div",{className:xe()(pe.buttonFixed,ut)},re.createElement("div",{className:pe.buttonWrap},Oe&&re.createElement(Xe.ZP,{size:"middle",className:`${pe.button} mr20`,onClick:xt},ot),ze&&re.createElement(Xe.ZP,Ge({size:"middle",type:"primary",className:`${pe.button} mr20`,loading:ke,onClick:at},lt),He)))},40254:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Ge}});var re=oe(59301),Xe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},pe=oe(92310),We=oe.n(pe),xe=oe(29787),Ce=oe(2859),Se=oe(49317),Re=oe(76406),Ee=(be,ot,He)=>new Promise((ke,ze)=>{var Oe=at=>{try{xt(He.next(at))}catch(ut){ze(ut)}},lt=at=>{try{xt(He.throw(at))}catch(ut){ze(ut)}},xt=at=>at.done?ke(at.value):Promise.resolve(at.value).then(Oe,lt);xt((He=He.apply(be,ot)).next())}),Ge=({data:be,className:ot,fullWidth:He,style:ke={},onClose:ze,onOk:Oe,showFullTools:lt,noAssociationId:xt})=>{const at=(0,re.useRef)(null),ut=(0,re.useRef)(null),tt=(0,re.useRef)(null),dt=(0,re.useRef)(null),[Ze,kt]=(0,re.useState)(!1),[qe,_e]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>(tt.current||(tt.current=document.createElement("style"),document.head.appendChild(tt.current)),be!=null&&be.visible?(document.body.setAttribute("data-custom","y-hidden"),tt.current.innerHTML=" html { overflow-y: hidden; }",be!=null&&be.src&&vt()):(document.body.removeAttribute("data-custom"),tt.current&&(document.head.removeChild(tt.current),tt.current=null)),()=>{document.body.removeAttribute("data-custom"),tt.current&&(document.head.removeChild(tt.current),tt.current=null)}),[be==null?void 0:be.visible]);const vt=()=>Ee(void 0,null,function*(){kt(!0),_e("\u6B63\u5728\u52A0\u8F7D\u4E2D");const me=yield(0,Re.ZJ)(be==null?void 0:be.src);at.current.src="",at.current.src=me,at.current.onload=function(){Ye()},kt(!1),_e("")}),Ne=me=>Ee(void 0,null,function*(){kt(!0),_e("\u6B63\u5728\u4FDD\u5B58\u4E2D");const St=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:be.title,file:me.dataUrl}});St!=null&&St.id&&!xt?(yield(0,Se.ZP)(`/api/attachments/${be.id}/add_subitem.json`,{method:"post",body:{subitem_id:St==null?void 0:St.id,settings:JSON.stringify(me.state)}})).status===0&&Oe():St!=null&&St.id&&Oe(St),kt(!1),_e("")}),Ue=()=>{const me=document.querySelector('a[href="https://markerjs.com/"]');me&&me.parentNode&&(me.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(Pe=>{const pt=document.querySelector(Pe.name);pt&&pt.setAttribute("title",Pe.title)})},Ye=()=>{ut.current=new Ce.hP(at.current),ut.current.targetRoot=dt.current,ut.current.addEventListener("render",Ne),ut.current.addEventListener("beforeclose",ze),lt&&(ut.current.availableMarkerTypes=ut.current.ALL_MARKER_TYPES,ut.current.uiStyleSettings.redoButtonVisible=!0,ut.current.uiStyleSettings.notesButtonVisible=!0,ut.current.uiStyleSettings.zoomButtonVisible=!0,ut.current.uiStyleSettings.zoomOutButtonVisible=!0,ut.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ut.current.uiStyleSettings,ut.current.show(),be!=null&&be.snapshotData&&ut.current.restoreState(be.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ue()},300)};return re.createElement(re.Fragment,null,(be==null?void 0:be.visible)&&re.createElement(xe.Z,{spinning:Ze,tip:qe,style:{position:"absolute",width:"100vw"}},re.createElement("div",{ref:dt,className:We()(Xe.imageDimensions,ot,He?Xe.fullWidth:""),style:ke},re.createElement("img",{className:Xe.img,ref:at}))))}},9057:function(Rt,It,oe){"use strict";var re=oe(59301),Xe=oe(77019),pe=oe(5269),We=oe(31691),xe=oe(7939),Ce=oe(35883),Se=oe(74501),Re=oe(48136),Ee=oe(59301);const fe=(0,re.forwardRef)(({callback:Ge,showSaveButton:be,value:ot=""},He)=>{const ke=(0,re.useRef)(),ze=[{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 "}]}]}],Oe=[{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}`}]}]}],lt=ut=>{ke.current.setValue(ke.current.getValue()+" "+ut.value+" ")},xt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ee.createElement(Xe.Z,{className:Se.Z.lists,gutter:[10,10]},ze.map((ut,tt)=>Ee.createElement(pe.Z,{flex:"110px",className:Se.Z.item},Ee.createElement("div",null,Ee.createElement(Ce.Z,{value:`$$${ut.value}$$`}),ut.name),Ee.createElement("div",{className:Se.Z.children},ut.children.map((dt,Ze)=>Ee.createElement("div",{key:Ze},Ee.createElement("h1",null,dt.name),Ee.createElement(Xe.Z,{gutter:[10,10]},dt.data.map((kt,qe)=>Ee.createElement(pe.Z,{key:qe,onClick:()=>lt(kt),className:Se.Z.diamond},Ee.createElement(Ce.Z,{value:"`$$"+kt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ee.createElement(Xe.Z,{className:Se.Z.lists,gutter:[10,10]},Oe.map((ut,tt)=>Ee.createElement(pe.Z,{flex:"110px",className:Se.Z.item},Ee.createElement("div",null,Ee.createElement(Ce.Z,{value:"`$$"+ut.value+"$$`"}),ut.name),Ee.createElement("div",{className:Se.Z.children},ut.children.map((dt,Ze)=>Ee.createElement("div",{key:Ze},dt.name&&Ee.createElement("h1",null,dt.name),Ee.createElement(Xe.Z,{gutter:[10,10]},dt.data.map((kt,qe)=>Ee.createElement(pe.Z,{key:qe,onClick:()=>lt(kt),className:Se.Z.diamond},Ee.createElement(Ce.Z,{value:"`$$"+kt.value+"$$`"}))))))))))}],at=()=>{var ut=document.createElement("div");ut.innerHTML=ke.current.getValue();var tt=ut.innerText;return Ge&&Ge(tt),tt};return(0,re.useImperativeHandle)(He,()=>({getData:at})),Ee.createElement("div",{className:Se.Z.mathWrap},Ee.createElement(We.default,{defaultActiveKey:"1",items:xt}),Ee.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ke,style:{width:800,marginTop:30,fontSize:18}},ot||""),be&&Ee.createElement("div",{className:Se.Z.button},Ee.createElement(xe.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});It.Z=fe},90736:function(Rt,It,oe){"use strict";var re=oe(59301),Xe=oe(4977),pe=oe(7939),We=Object.defineProperty,xe=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,fe=(He,ke,ze)=>ke in He?We(He,ke,{enumerable:!0,configurable:!0,writable:!0,value:ze}):He[ke]=ze,Ge=(He,ke)=>{for(var ze in ke||(ke={}))Re.call(ke,ze)&&fe(He,ze,ke[ze]);if(Se)for(var ze of Se(ke))Ee.call(ke,ze)&&fe(He,ze,ke[ze]);return He},be=(He,ke)=>xe(He,Ce(ke));const ot=({img:He,buttonProps:ke={},styles:ze={},customText:Oe,ButtonText:lt,ButtonClick:xt,Buttonclass:at,ButtonTwo:ut,imgStyles:tt,loading:dt=!1,className:Ze=""})=>re.createElement("section",{className:`tc animated fadeIn ${Ze}`,style:Ge({color:"#999",margin:"100px auto",visibility:dt?"hidden":"visible"},ze)},re.createElement("img",{src:He||Xe,style:be(Ge({},tt),{pointerEvents:"none",userSelect:"none"})}),re.createElement("p",{className:"mt20 font14"},Oe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),lt&&re.createElement(pe.ZP,Ge({className:at,onClick:xt},ke),lt),ut&&ut);It.Z=ot},86974:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return at}});var re=oe(59301),Xe={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},pe=oe(7939),We=oe(70557),xe=oe(34728),Ce=oe(25399),Se=oe(76406),Re=oe(84849),Ee=oe(90736),fe=oe(14185),Ge=oe(52078),be=oe(59301),ot=Object.defineProperty,He=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Oe=(ut,tt,dt)=>tt in ut?ot(ut,tt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):ut[tt]=dt,lt=(ut,tt)=>{for(var dt in tt||(tt={}))ke.call(tt,dt)&&Oe(ut,dt,tt[dt]);if(He)for(var dt of He(tt))ze.call(tt,dt)&&Oe(ut,dt,tt[dt]);return ut},xt=(ut,tt,dt)=>new Promise((Ze,kt)=>{var qe=Ne=>{try{vt(dt.next(Ne))}catch(Ue){kt(Ue)}},_e=Ne=>{try{vt(dt.throw(Ne))}catch(Ue){kt(Ue)}},vt=Ne=>Ne.done?Ze(Ne.value):Promise.resolve(Ne.value).then(qe,_e);vt((dt=dt.apply(ut,tt)).next())}),at=({editOffice:ut="view",data:tt,issaver:dt,onSaver:Ze,theme:kt,type:qe,filename:_e,monacoEditor:vt,className:Ne,style:Ue,close:Ye,onClose:me,hasMask:St,disabledDownload:Pe,onImgDimensions:pt,showNodata:Dt,recordInfo:ve})=>{const[de,rt]=(0,re.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Tt,ft]=(0,re.useState)(""),[Ae,Qe]=(0,re.useState)(),et=window.ENV==="build"?"/react/build":"",en=location.host.startsWith("localhost")?fe.Z.PROXY_SERVER:fe.Z.API_SERVER,$t=10*(1024*1024),Ve=(0,re.useRef)();tt!=null&&tt.startsWith("/api")&&qe!=="txt"&&(tt=fe.Z.API_SERVER+tt);const Ot=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();_e&&vt&&(vt.filename=_e),(0,re.useEffect)(()=>{var se,ne;const we=(ne=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:ne.split(";");we==null||we.map(Be=>{let wt=Be.split("=");wt[0]==="_educoder_session"&&ft(wt[1])})},[]),(0,re.useEffect)(()=>{qe==="office"&&(tt.indexOf("bigfilescdn.")>-1||tt.indexOf("bigfiles1")>-1?Qe({url:tt,fileType:Ot(tt),model:tt.indexOf("model=edit")?"edit":"view"}):tt.indexOf("coze")>-1?Qe({url:tt,fileType:"doc",model:"view"}):ae())},[qe,tt]);function it(se){return xt(this,null,function*(){se.data.type==="pdfdata"&&(Ze(se.data.data),window.removeEventListener("message",it,!1)),console.log("mess---:",se.data)})}const ae=()=>xt(void 0,null,function*(){console.log("data:",tt);let se=tt;tt.startsWith("http")||(se=location.origin+se);let ne=new URL(se).pathname.split("/").pop();const we=yield(0,Re.gJ)({attachment_id:ne});we.url=en+we.url,Qe(we)}),ee=()=>{if(tt.startsWith("http")||tt.startsWith("blob:")){z();return}(0,Se.Sv)(_e||"educoder",tt,_e)},z=()=>{ve&&(0,Ge.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,Se.Nd)(_e||"educoder",decodeURIComponent(tt))};(0,re.useEffect)(()=>(window.addEventListener("message",ie),()=>{window.removeEventListener("message",ie)}),[]);const ie=se=>{var ne;((ne=se==null?void 0:se.data)==null?void 0:ne.type)==="closePop"&&me()};return be.createElement("div",{style:lt({},Ue||{}),className:`${St&&Xe.bgBlack} ${qe?Xe.wrp:"hide"}`},!!qe&&Ye&&be.createElement("div",{id:"closePop",className:Xe.close,ref:Ve},!!pt&&be.createElement(Ce.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Ve.current},be.createElement("span",{onClick:()=>{me(),pt()}},be.createElement("i",{className:"icon-yulanpizhu"}))),!Pe&&window.parent===window&&be.createElement(Ce.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Ve.current},be.createElement("span",{onClick:z},be.createElement("i",{className:"icon-quxiaozhiding"}))),dt&&be.createElement(Ce.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Ve.current},be.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",it,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},be.createElement("i",{className:"icon-baocun"}))),be.createElement(Ce.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Ve.current},be.createElement("span",{className:"",onClick:()=>{me()}},be.createElement("i",{className:"icon-guanbi1"})))),be.createElement("div",{className:`${Xe[Ne]} ${Ne} ${Xe.monaco} ${qe==="txt"?"show":"hide"}`},qe==="txt"&&be.createElement(be.Fragment,null,be.createElement(xe.ZP,lt({},vt)))),qe==="audio"&&be.createElement("audio",{controls:!0,src:`${(tt==null?void 0:tt.indexOf("http://"))>-1||(tt==null?void 0:tt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${tt}`,autoPlay:!0}),qe==="video"&&be.createElement(be.Fragment,null,(tt==null?void 0:tt.indexOf("http"))>-1?be.createElement("video",{controls:!0,src:`${tt}`,autoPlay:!0}):be.createElement("video",{controls:!0,src:`data:video/mp4;base64,${tt}`,autoPlay:!0})),qe==="office"&&Ae&&be.createElement("iframe",{src:`${et}/office.html?key=${Ae.key}&url=${btoa(Ae.url)}&callbackUrl=${en+(Ae.callbackUrl||"")}&fileType=${Ae.fileType}&title=${Ae.title||""}&model=${ut}&officeServer=${fe.Z.ONLYOFFICE}&disabledDownload=${!!Pe}`}),qe==="html"&&be.createElement("iframe",{src:tt+"&disposition=inline"}),qe==="pdf"&&be.createElement("iframe",{id:"pdfiframe",src:`${et}/js/pdf/index.html?filename=${_e||"educoder.pdf"}&url=${encodeURIComponent(tt)}&disabledDownload=${!!Pe}&model=${ut}`}),qe==="image"&&be.createElement("img",{src:`${(tt==null?void 0:tt.indexOf("http://"))>-1||(tt==null?void 0:tt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${tt}`}),(qe==="other"||qe==="download")&&be.createElement(be.Fragment,null,Dt?be.createElement(Ee.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:be.createElement(pe.ZP,{icon:be.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ee,disabled:Pe},"\u4E0B\u8F7D")}):be.createElement(pe.ZP,{type:"primary",size:"middle",onClick:ee,disabled:Pe},be.createElement(We.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),qe==="flowChart"&&be.createElement("div",{className:"embed"},be.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${tt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(Rt,It,oe){"use strict";oe.d(It,{z:function(){return vt},Z:function(){return Ne}});var re=oe(59301),Xe=oe(46214),pe=oe(20047),We=oe(64018),xe=oe(16471),Ce=oe(14185),Se=oe(76406),Re=oe(15342),Ee=oe(44104),fe=oe(7939),Ge=oe(1012),be=oe(86974),ot=oe(59301),ke=({html:Ue})=>{const Ye=(0,re.useRef)(null),me=(0,re.useRef)(null),St=`.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 Pe=Ye.current.attachShadow({mode:"open"});me.current=document.createElement("div"),me.current.className="markdown-body",me.current.innerHTML=Ue,Pe.appendChild(me.current);const pt=document.createElement("style");return pt.textContent=St,Pe.appendChild(pt),()=>{Pe.innerHTML=""}},[]),(0,re.useEffect)(()=>{me.current&&(me.current.innerHTML=Ue)},[Ue]),ot.createElement("div",{ref:Ye})};function ze(Ue){const Ye=["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"],me=new RegExp(`\\b(${Ye.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),St=/]*>/gi;return Ue.replace(me,"").replace(St,"").trim()}var Oe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},lt=Object.defineProperty,xt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,tt=(Ue,Ye,me)=>Ye in Ue?lt(Ue,Ye,{enumerable:!0,configurable:!0,writable:!0,value:me}):Ue[Ye]=me,dt=(Ue,Ye)=>{for(var me in Ye||(Ye={}))at.call(Ye,me)&&tt(Ue,me,Ye[me]);if(xt)for(var me of xt(Ye))ut.call(Ye,me)&&tt(Ue,me,Ye[me]);return Ue};const Ze="@\u2581\u2581@",kt="@\u2581@",qe=/]*>/g;function _e(Ue){let Ye=document.createElement("div");return Ye.innerHTML=Ue,Ye.childNodes.length===0?"":Ye.childNodes[0].nodeValue}const vt=(Ue,Ye)=>{Ue=Ue||"";const me=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,St=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Pe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,pt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ye?Ue.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(me,(Dt,ve,de,rt,Tt,ft,Ae)=>{const Qe=ve||rt||ft,et=de||Tt||Ae||"?";return Ce.Z.API_SERVER+"/api/attachments/"+Qe+et+"&t="+(0,Se.Jn)(Qe,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ue=Ue.replace(pt,(Dt,ve,de,rt,Tt,ft,Ae)=>{const Qe=ve||rt||ft,et=de||Tt||Ae||"?";return Ce.Z.API_SERVER+"/attachments/download/"+Qe+et+"&t="+(0,Se.Jn)(Qe,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replace(me,(Dt,ve,de,rt,Tt,ft,Ae)=>{const Qe=ve||rt||ft,et=de||Tt||Ae||"?";return Ce.Z.API_SERVER+"/api/attachments/"+Qe+et+"&t="+(0,Se.Jn)(Qe,Date.now())+(Dt.indexOf(")")>-1?")":"&")}).replace(St,(Dt,ve,de,rt,Tt)=>{const ft=ve||rt,Ae=de||Tt||"";return'"'+Ce.Z.API_SERVER+"/api/attachments/"+ft+Ae+ft+Ae+"&t="+(0,Se.Jn)(ft,Date.now())}).replace(Pe,(Dt,ve,de,rt,Tt)=>{const ft=ve||rt,Ae=de||Tt||"";return"("+Ce.Z.API_SERVER+"/files/uploads/"+ft+Ae+ft+Ae+"&t="+(0,Se.Jn)(ft,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,` `),Ue)};var Ne=({value:Ue="",edit:Ye=!1,className:me,showTextOnly:St,showLines:Pe,style:pt={},stylesPrev:Dt={},highlightKeywords:ve,showProgramFill:de,isProgramFill:rt,disabledFill:Tt=!1,programFillValue:ft,openEditor:Ae=()=>{},onFillChange:Qe=Et=>{},onFillBlur:et=()=>{},onFillFocus:en=()=>{}})=>{let Et=ze(String(Ue||""));const $t=(0,re.useRef)(),Ve=(0,re.useRef)(),[Ot,it]=(0,re.useState)(""),[ae,ee]=(0,re.useState)("office"),[z,ie]=(0,re.useState)([]),se=(0,re.useRef)("a"+(0,Ge.Z)()),ne={},we=gt=>//i.test(gt||""),Be=(gt,dn,zt)=>{const Yt=document.createElement(gt===kt?"input":"textarea");Yt.style.width="100%",Yt.style.height=gt===kt?"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 wt(gt){return gt=gt.replace(/!\[.*?\]\(.*?\)/g,""),gt=gt.replace(/\[.*?\]\(.*?\)/g,""),gt=gt.replace(new RegExp("","gs"),""),gt=gt.replace(//g,""),gt=gt.replace(//g,""),gt=gt.replace(new RegExp(".*?<\\/video>","gs"),""),gt=gt.replace(new RegExp(".*?<\\/audio>","gs"),""),gt=gt.replace(new RegExp(".*?<\\/style>","gs"),""),gt=gt.replace(new RegExp(".*?<\\/script>","gs"),""),gt}const Fe=gt=>!St&&we(Et)?gt:gt.replace(/([\s\S]+?)<\/style>/gim,function(dn,zt){let Yt=zt.replace(/(\n|\r)/g,"").split("}"),an=[];return Yt.map(Ln=>{Ln!=""&&an.push(`.${se.current} ${Ln}`)}),``}),Ke=(0,re.useMemo)(()=>{(0,pe.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;Et=Et.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,` `),$t.current.style.display="none"}catch(Yt){}if(de){let Yt=-1;return Et=Et.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(an,Ln,bn){var De;return++Yt,Be(an,Yt,(De=ft==null?void 0:ft[Yt])==null?void 0:De.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Fe(Et||"")}
`}let gt=Fe(Et);gt=(0,pe.ZP)(gt);const dn=(0,pe.ez)();Et.match(/\[TOC\]/)&&(gt=gt.replace("

[TOC]

",(0,pe.Qv)()),(0,pe.Iy)()),gt=gt.replace(/(__special_katext_id_\d+__)/g,(Yt,an)=>{const{type:Ln,expression:bn}=dn[an];return(0,Re.renderToString)(_e(bn)||"",{displayMode:Ln==="block",throwOnError:!1,output:"html"})}),gt=gt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,pe.AL)();const zt=document.createElement("div");if(zt.innerHTML=gt,St)return zt.innerText;if(ve){const Yt=ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Wt(zt,Yt),zt.innerHTML}return setTimeout(()=>sn(),500),zt.innerHTML},[Et,ve]);(0,re.useEffect)(()=>{Gt.current&&Gt.current.querySelectorAll(["input","textarea"]).forEach(dn=>{dn.oninput=mt,dn.onblur=Pt,dn.onfocus=Mt})},[z]),(0,re.useEffect)(()=>{var gt,dn,zt,Yt,an;if(ft!=null&&ft.length)try{const Ln=Gt.current.querySelectorAll(".edu-program-fill-score"),bn=Gt.current.querySelectorAll('[name="edu-program-fill"]');for(const[De,Je]of bn.entries())Je.value=((gt=ft==null?void 0:ft[De])==null?void 0:gt.value)||"",((dn=ft==null?void 0:ft[De])==null?void 0:dn.type)==="warning"?Je.className="program-fill-warning":((zt=ft==null?void 0:ft[De])==null?void 0:zt.type)==="success"?Je.className="program-fill-success":Je.className="";for(const[De,Je]of Ln.entries())Je.innerHTML=(Yt=ft==null?void 0:ft[De])!=null&&Yt.score?`${(an=ft==null?void 0:ft[De])==null?void 0:an.score}\u5206`:"";ie(ft)}catch(Ln){console.log(Ln,"error")}},[ft]);const mt=gt=>{z[gt.target.dataset.id]=z[gt.target.dataset.id]||{},z[gt.target.dataset.id].value=gt.target.value,ie([...z]),Qe(z,gt.target.dataset.id)},Pt=gt=>{z[gt.target.dataset.id]=z[gt.target.dataset.id]||{},z[gt.target.dataset.id].value=gt.target.value,ie([...z]),et(z,gt.target.dataset.id)},Mt=gt=>{z[gt.target.dataset.id]=z[gt.target.dataset.id]||{},z[gt.target.dataset.id].value=gt.target.value,ie([...z]),en(z,gt.target.dataset.id)};function Wt(gt,dn){return gt.childNodes.forEach(zt=>{var Yt;if(zt.childNodes.length>0)Wt(zt,dn);else if(zt.nodeName!=="IMG")if(zt.innerHTML)zt.innerHTML=(Yt=zt.innerHTML)==null?void 0:Yt.replace(new RegExp(dn,"gi"),'$&');else{const an=document.createElement("span");an.innerHTML=zt.textContent.replace(new RegExp(dn,"gi"),'$&'),zt.replaceWith(an)}})}const Gt=(0,re.useRef)();pe.jb.WebkitLineClamp=Pe,Pe&&(pt=dt(dt({},pt),pe.jb));function At(gt){let dn=gt.target;if(dn.tagName.toUpperCase()==="A"){let zt=dn.getAttribute("href");if(zt.indexOf("office")>-1)gt.preventDefault(),it(zt),ee("office");else if(zt.indexOf("application/pdf")>-1)gt.preventDefault(),it(zt),ee("pdf");else if(zt.indexOf("text/html")>-1)gt.preventDefault(),it(zt),ee("html");else if(zt.startsWith("#")){gt.preventDefault();let Yt=document.getElementById(zt.replace("#",""));Yt&&Yt.scrollIntoView(!0)}}}const sn=()=>{var gt;const dn=(gt=Gt.current)==null?void 0:gt.querySelectorAll("video");dn==null||dn.forEach(zt=>{if(zt.oncontextmenu=()=>!1,zt.src.indexOf(".m3u8")>-1&&!zt.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Yt=new xe.ZP;Yt.loadSource(zt.src),Yt.attachMedia(zt)}}})};(0,re.useEffect)(()=>{if(Gt.current&&Ke&&Ke.match(qe)&&window.PR.prettyPrint(),Gt.current)return Gt.current.addEventListener("click",At),()=>{var gt;(gt=Gt.current)==null||gt.removeEventListener("click",At),(0,pe.AL)(),(0,pe.Iy)()}},[Ke,Gt.current,At]);const Jt=gt=>{gt.target.nodeName==="IMG"&>.target.className.indexOf("draw-flowchart")>-1?($t.current.style.zIndex=1,$t.current.style.display="flex",$t.current.style.width=gt.target.clientWidth+"px",$t.current.style.height=gt.target.clientHeight+"px",$t.current.style.top=gt.target.offsetTop+"px",$t.current.style.left=gt.target.offsetLeft+"px",gt.target.id&&(Ve.current=gt.target.id)):$t.current.style.display="none"},on=()=>{$t.current.style.display="none"};return(0,re.useEffect)(()=>{var gt;const dn=zt=>{zt.preventDefault(),zt.clipboardData.setData("text",window.getSelection().toString())};return(gt=Gt.current)==null||gt.addEventListener("copy",dn),()=>{var zt;(zt=Gt.current)==null||zt.removeEventListener("copy",dn)}},[Gt.current]),re.createElement("div",{style:{position:"relative"},onMouseLeave:on},St&&re.createElement("div",{ref:Gt,className:`${Oe.mdBody} `},Ke),!St&&!we(Ke)&&re.createElement("div",{ref:Gt,style:dt({},pt),onMouseOver:Jt,className:`${me||""} ${Tt?"disabled-fill":""} markdown-body ${Oe.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Ke}}),!St&&we(Ke)&&re.createElement(ke,{html:Ke}),re.createElement("div",{ref:$t,className:`${Oe.button} ${Ye?"":Oe.previewFlowChart}`},re.createElement(Ee.Z,null,re.createElement(fe.ZP,{onClick:()=>{Ye?Ae(Ve.current):(it(Ve.current),ee("flowChart"))}},Ye?"\u7F16\u8F91":"\u9884\u89C8"))),re.createElement(be.Z,{close:!0,data:Ot,type:Ot!=null&&Ot.length?ae:"",style:dt({},Dt),onClose:()=>it("")}))}},28267:function(Rt,It,oe){"use strict";oe.d(It,{h:function(){return ut}});var re=oe(59301),Xe=oe(82326),pe=oe(28284),We=oe(7939),xe=oe(89780),Ce=oe.n(xe),Se=oe(88319),Re=oe(94896),Ee=Object.defineProperty,fe=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,ke=(tt,dt,Ze)=>dt in tt?Ee(tt,dt,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):tt[dt]=Ze,ze=(tt,dt)=>{for(var Ze in dt||(dt={}))ot.call(dt,Ze)&&ke(tt,Ze,dt[Ze]);if(be)for(var Ze of be(dt))He.call(dt,Ze)&&ke(tt,Ze,dt[Ze]);return tt},Oe=(tt,dt)=>fe(tt,Ge(dt));const lt=Xe.default.Option,xt={labelCol:{span:4},wrapperCol:{span:20}},at={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};It.Z=({callback:tt,onCancel:dt})=>{const[Ze,kt]=(0,re.useState)("python");function qe(vt){kt(at[vt][1])}function _e(vt){tt(vt)}return re.createElement(pe.default,Oe(ze({},xt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:_e,style:{width:500}}),re.createElement(pe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(Xe.default,{getPopupContainer:vt=>vt.parentNode,onChange:qe},Object.keys(at).map(vt=>re.createElement(lt,{key:vt,value:vt},at[vt][0])))),re.createElement(pe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(ut,{mode:Ze})),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:dt},"\u53D6\u6D88")))};function ut({value:tt,onChange:dt,mode:Ze,options:kt={}}){const qe=(0,re.useRef)(),[_e,vt]=(0,re.useState)();return(0,re.useEffect)(()=>{if(_e){let Ne=function(Ue){const Ye=Ue.getValue();dt&&dt(Ye)};return _e.on("change",Ne),()=>{_e.off("change",Ne)}}},[_e,dt]),(0,re.useEffect)(()=>{_e&&_e.setOption("mode",Ze)},[_e,Ze]),(0,re.useEffect)(()=>{_e&&(tt!==_e.getValue()||tt==="")&&setTimeout(()=>{_e.setValue(tt||"")},300)},[_e,tt]),(0,re.useEffect)(()=>{if(qe.current&&!_e){const Ne=Ce().fromTextArea(qe.current,ze({mode:Ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},kt));vt(Ne)}},[qe.current,_e]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:qe}))}},39116:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Dn}});var re=oe(59301),Xe=oe(44283),pe=oe(89780),We=oe.n(pe),xe=oe(76374),Ce=oe(88319),Se=oe(6313),Re=oe(25717),Ee=oe(99498),fe=oe(25419),Ge=oe(67549),be=oe(35883),ot=({value:nn="",className:yn,showTextOnly:un,showLines:Tn,style:Yn={}})=>{const zn=(0,re.useMemo)(()=>"",[nn]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:zn}}))},He=Object.defineProperty,ke=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,at=(nn,yn,un)=>yn in nn?He(nn,yn,{enumerable:!0,configurable:!0,writable:!0,value:un}):nn[yn]=un,ut=(nn,yn)=>{for(var un in yn||(yn={}))lt.call(yn,un)&&at(nn,un,yn[un]);if(Oe)for(var un of Oe(yn))xt.call(yn,un)&&at(nn,un,yn[un]);return nn},tt=(nn,yn)=>ke(nn,ze(yn));let dt=[{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 Ze({onActionCallback:nn,title:yn,icon:un,actionName:Tn,className:Yn="",children:zn}){function Bn(){nn(Tn)}return re.createElement("a",{title:yn,className:Yn,onClick:Bn},re.createElement("i",{className:`${un}`}),zn)}var kt=({watch:nn,showNullButton:yn,showNullProgramButton:un,onActionCallback:Tn,fullScreen:Yn,insertTemp:zn,hidetoolBar:Bn,extraUse:_n})=>{const Vn=[...dt,{title:`${nn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${nn?"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(Ze,tt(ut({},Qn),{onActionCallback:Tn})):re.createElement("span",{className:"v-line"}))),yn?re.createElement("li",null,re.createElement(Ze,{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(Ze,{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(Ze,{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(Ze,{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(Ze,{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})))},qe=oe(88487),_e=oe(28284),vt=oe(37568),Ne=oe(7939),Ue=Object.defineProperty,Ye=Object.defineProperties,me=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Dt=(nn,yn,un)=>yn in nn?Ue(nn,yn,{enumerable:!0,configurable:!0,writable:!0,value:un}):nn[yn]=un,ve=(nn,yn)=>{for(var un in yn||(yn={}))Pe.call(yn,un)&&Dt(nn,un,yn[un]);if(St)for(var un of St(yn))pt.call(yn,un)&&Dt(nn,un,yn[un]);return nn},de=(nn,yn)=>Ye(nn,me(yn));const rt={labelCol:{span:4},wrapperCol:{span:20}};var Tt=({callback:nn,onCancel:yn})=>{function un(Tn){nn(Tn)}return re.createElement(_e.default,de(ve({},rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:un,style:{width:500}}),re.createElement(_e.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(vt.default,null)),re.createElement(_e.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(vt.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Ne.ZP,{type:"ghost",onClick:yn},"\u53D6\u6D88")))},ft=oe(28267),Ae=oe(53332),Qe=oe(62957),et=oe(77019),en=oe(40254),Et=oe(59301),$t=({callback:nn,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 Et.createElement(Qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Et.createElement(et.Z,{style:{height:"100vh"}},Et.createElement(en.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Yn,visible:!0,title:String(Date.now())},onOk:zn=>{nn({src:zn.url})},onClose:yn})))},Ve=oe(36207),Ot=oe(5269),it=oe(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ee=oe(59301),ie=(0,re.forwardRef)(({onCancel:nn,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),[Ct,Zt]=(0,re.useState)("100vh");return(0,re.useEffect)(()=>{jn(1)},[]),(0,re.useImperativeHandle)(Tn,()=>({setHeight:Zt})),ee.createElement("div",{ref:Vn,className:"body-overflow-initial"},ee.createElement(Ve.Z,{width:"100vw",height:Ct,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(et.Z,{align:"middle"},ee.createElement(Ot.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ee.createElement(Ot.Z,{onClick:()=>{Zt(Ct==="60px"?"100vh":"60px")}},ee.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ee.createElement(Ot.Z,{onClick:()=>{window.saveDrawData(In=>{if(In===null){it.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}it.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),un({src:`/api/attachments/${In}`,id:In,disabledClose:!0})})}},ee.createElement(Ne.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})))}),se=oe(14185),ne=oe(47889),we=oe(4875);const Be=ne.ZP.Group,wt={margin:"0 8px"};var Fe=({callback:nn,onCancel:yn})=>{function un(Tn){nn(Tn)}return re.createElement(_e.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:wt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:wt},"\u884C\u6570"),re.createElement(_e.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(we.Z,null)),re.createElement("span",{style:wt},"\u5217\u6570"),re.createElement(_e.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:wt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(_e.default.Item,{name:"align"},re.createElement(Be,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(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Ne.ZP,{type:"ghost",onClick:yn},"\u53D6\u6D88")))},Ke=oe(58755),mt=oe(84915),Pt=oe.n(mt),Wt=(0,re.forwardRef)(({use3d:nn,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(Pt())(jn.current,!0),window.onload=function(){_n.current.inject("applet_container")}},[]);const Ct=()=>{var Zt=window.ggbApplet.getPNGBase64(1,!0,72);return Tn&&Tn(Zt),Zt};return(0,re.useEffect)(()=>{jn.current.appName=Vn?"3D":"graphing",_n.current.inject("applet_container")},[Vn]),(0,re.useEffect)(()=>{Qn(nn)},[nn]),(0,re.useImperativeHandle)(zn,()=>({getImgData:Ct})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Bn}),re.createElement(et.Z,{align:"middle"},re.createElement(Ot.Z,{flex:1},re.createElement(Ke.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Vn,onChange:Zt=>Qn(Zt)})),re.createElement(Ot.Z,null,re.createElement(Ne.ZP,{size:"large",onClick:Ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Gt=oe(9057);const At="link",sn="upload-image",Jt="add-flowchart",on="draw-image",gt="add-flowchart",dn="code-block",zt="add-table",Yt="------------",an={default:Yt,left:`:${Yt}`,center:`:${Yt}:`,right:`${Yt}:`};var Ln=oe(79006),bn=oe(76406);function De(){}let Je=0;const yt=1e4,jt="\u2581",rn="@\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(nn){return/^\d+$/.test(nn)?`${nn}px`:nn}const vn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Kn={[vn+"-B"]:"bold",[vn+"-I"]:"italic"},gn={[At]:"\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",[zt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dn=({defaultValue:nn="",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:Ct=!1,showNullButton:Zt=!1,showNullProgramButton:In=!1,hidetoolBar:Un=!1,fullScreen:Me=!1,onBlur:$e,onCMBeforeChange:ge,onFullScreen:Ie,className:ye="",disablePaste:Le=!1,disabled:nt=!1,disabledFill:Nt=!1,placeholder:Ft="",values:Qt="",extraUse:Lt,onAddBlank:ht})=>{const[st,_t]=(0,re.useState)(null),[hn,ln]=(0,re.useState)(nn),[cn,Zn]=(0,re.useState)(Bn),[Xn,Jn]=(0,re.useState)(Me),[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,Xe.useDispatch)();(0,re.useEffect)(()=>{const Ut=window.scrollY||window.pageYOffset;ln(Qt),st==null||st.setValue(Qt),window.scrollTo(0,Ut)},[Qt]),(0,re.useEffect)(()=>{Ie==null||Ie(Xn)},[Xn]),(0,re.useEffect)(()=>{if(cr.current){let Ut=function(xn,Cn){var rr;if(Le){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,Ae.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){it.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:nn,autoCloseTags:!0,autoCloseBrackets:!0});return Kt.on("keyup",function(xn,Cn){Cn.keyCode===8&&(xn.getValue()==""?Kt.setOption("placeholder",Ft):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),nt&&Kt.on("beforeChange",function(xn,Cn){(Cn.origin==="paste"||Cn.origin==="+input")&&Cn.cancel()}),_t(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 xe.Z(xn=>{for(let Cn of xn)(Cn.target.offsetHeight>0||Cn.target.offsetWidth>0)&&(Rr(),st.setSize("100%","100%"),st.refresh())});return Kt.observe(cr.current.parentElement),Kt}if(st){const Kt=Ut();return()=>{var xn,Cn;(xn=cr.current)!=null&&xn.parentElement&&Kt.unobserve((Cn=cr.current)==null?void 0:Cn.parentElement)}}},[st,Rr]),(0,re.useEffect)(()=>{if(st){let Ut=[];for(const[Kt,xn]of Object.entries(Kn)){let Cn={[Kt]:()=>{Er(xn)}};Ut.push(Cn),st.addKeyMap(Cn)}return()=>{for(let Kt of Ut)st.removeKeyMap(Kt)}}},[st]),(0,re.useEffect)(()=>{Me!==Xn&&Jn(Me)},[Me]),(0,Ln.Z)(()=>{if(!Ct&&Pn>0){let Ut=new Date().getTime(),Kt=window.sessionStorage.getItem(Qn);Ut>=Pn+yt&&(!Kt||Kt!==hn)&&(window.sessionStorage.setItem(Qn,hn),ir(!0))}},yt),(0,re.useEffect)(()=>{Zn(Bn)},[st,Bn]),(0,re.useEffect)(()=>{st&&zn&&st.focus()},[st,zn]),(0,re.useEffect)(()=>{if(cn&&st){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=st.getScrollerElement();return Kt.addEventListener("scroll",Ut),()=>{Kt.removeEventListener("scroll",Ut)}}},[st,cn]),(0,re.useEffect)(()=>{if(st&&ge){let Ut=function(Kt,xn){ge(Kt,xn)};return st.on("beforeChange",Ut),()=>{st.off("beforeChange",Ut)}}},[st,ge]),(0,re.useEffect)(()=>{if(st&&$e){let Ut=function(){$e(st.getValue())};return st.on("blur",Ut),()=>{st.off("blur",Ut)}}},[st,$e]);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(rn.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(st){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 st.on("change",Ut),()=>{st.off("change",Ut)}}},[st,yn]),(0,re.useEffect)(()=>{if(st)if(nn==null)st.setValue(""),ln("");else{const Ut=window.scrollY||window.pageYOffset;nn!==st.getValue()&&(st.setValue(nn),ln(nn),st.setCursor(nt?1:st.lineCount(),0),window.scrollTo(0,Ut))}},[st,nn]);const Er=(0,re.useCallback)(Ut=>{const Kt=st.getCursor(),xn=st.getSelection();let Cn=xn.split(` `);switch(Ut){case"bold":return st.replaceSelection("**"+xn+"**"),xn===""&&st.setCursor(Kt.line,Kt.ch+2),st.focus();case"italic":return st.replaceSelection("*"+xn+"*"),xn===""&&st.setCursor(Kt.line,Kt.ch+1),st.focus();case"code":return st.replaceSelection("`"+xn+"`"),xn===""&&st.setCursor(Kt.line,Kt.ch+1),st.focus();case"inline-latex":return(0,bn.Ye)(wr)?void 0:(Sn("inline-latex"),st.focus());case"latex":return st.replaceSelection("```latex\n"+xn+"\n```"),st.setCursor(Kt.line+1,xn.length+1),st.focus();case"line-break":return st.replaceSelection(`
`),st.focus();case"list-ul":return xn===""?st.replaceSelection("- "+xn):st.replaceSelection(Cn.map(rr=>rr===""?"":`- ${rr}`).join(` `)),st.focus();case"list-ol":return xn===""?st.replaceSelection("1. "+xn):st.replaceSelection(Cn.map((rr,Mr)=>rr===""?"":`${Mr+1}. ${rr}`).join(` `)),st.focus();case"add-null-ch":ht==null||ht();return;case"add-signal":return xn===""&&st.setCursor(Kt.line,Kt.ch),st.replaceSelection(fn),st.focus();case"add-multiple":return xn===""&&st.setCursor(Kt.line,Kt.ch),st.replaceSelection(rn),st.focus();case"inster-template-1":return xn===""&&st.setCursor(Kt.line,Kt.ch),st.replaceSelection($n),st.focus();case"eraser":return st.setValue(""),st.focus();case"trigger-watch":return Zn(!cn),st.focus();case"trigger-full-screen":return Jn(!Xn),st.focus();case At:Sn(At);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 zt:Sn(zt);return;default:throw new Error}},[st,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 At:const{title:Fi,link:xi}=Ut;return st.replaceSelection(`[${Fi}](${xi})`),st.focus();case dn:const{language:mi,content:Yi}=Ut;return st.replaceSelection(["```"+mi,Yi,"```"].join(` `)),st.focus();case"maths-latex":for(var Or=atob(Ut),_r=new Uint8Array(Or.length),ti=0;ti{vi.id?st.replaceSelection(`![,](/api/attachments/${vi.id}?type=${vi.content_type})`):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")}),st.focus();case"inline-latex":return(0,bn.Ye)(wr)?void 0:(st.replaceSelection("`$$"+Ut+"$$`"),st.focus());case gt:return Hr?(st.getValue().indexOf(Dr)===-1?st.replaceSelection(`
${Tr||
`):document.getElementById(Hr).src=se.Z.API_SERVER+Dr+"?t="+Date.now(),st.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?st.replaceSelection(`

${Tr||

`):st.replaceSelection(`${Tr||`):((br=Ar==null?void 0:Ar.type)==null?void 0:br.indexOf("video"))>-1?st.replaceSelection(``):((Ir=Ar==null?void 0:Ar.type)==null?void 0:Ir.indexOf("pdf"))>-1?st.replaceSelection(`${Ar.name}`):An.includes(to)?st.replaceSelection(`${Ar.name}`):st.replaceSelection(`[${Ar.name}](${Dr})`),st.focus();case zt:const{row:ni,col:Ai,align:ao}=Ut;let Xi=` `;for(let vi=0;vi{switch(Nn){case At:return re.createElement(Tt,{callback:Br,onCancel:Lr});case dn:return re.createElement(ft.Z,{callback:Br,onCancel:Lr});case sn:return re.createElement(Ae.Z,{callback:Br,onCancel:Lr});case Jt:return re.createElement(ie,{editImgId:dr.current,callback:Br,onCancel:Lr});case zt:return re.createElement(Fe,{callback:Br,onCancel:Lr});case"maths-latex":return re.createElement(Wt,{showSaveButton:!0,callback:Br});case"inline-latex":return re.createElement(Gt.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)}}},[st,Cr]),(0,re.useEffect)(()=>{qn(Tn)},[Tn]);const zr=pn(un),fr=pn(ur),Gn={width:zr,height:fr},Vt=(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 Bt(){ir(!1),Hn(0),st.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($t,{callback:Br,onCancel:Lr}),Nn===Jt&&re.createElement(ie,{ref:Fn,editImgId:dr.current,callback:Br,onCancel:Lr}),re.createElement(qe.Z,null,gn[Nn]&&Nn!==on&&Nn!==Jt?re.createElement(Qe.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(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return dt},I:function(){return kt}});var re=oe(28284),Xe=oe(6767),pe=oe(37568),We=oe(44104),xe=oe(4875),Ce=oe(47889),Se=oe(7939),Re=oe(23216),Ee=oe(59301),fe=oe(59301),Ge=Object.defineProperty,be=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Oe=(qe,_e,vt)=>_e in qe?Ge(qe,_e,{enumerable:!0,configurable:!0,writable:!0,value:vt}):qe[_e]=vt,lt=(qe,_e)=>{for(var vt in _e||(_e={}))ke.call(_e,vt)&&Oe(qe,vt,_e[vt]);if(He)for(var vt of He(_e))ze.call(_e,vt)&&Oe(qe,vt,_e[vt]);return qe},xt=(qe,_e)=>be(qe,ot(_e));const{useForm:at}=re.default,ut={width:280,marginRight:10},tt={labelCol:{span:5},wrapperCol:{span:19}};var dt=({callback:qe,onCancel:_e})=>{const[vt]=at();let Ne=(0,Ee.useRef)();function Ue(St){Ne.current.width=vt.getFieldValue("width"),Ne.current.align=vt.getFieldValue("align"),qe(St,Ne.current)}function Ye(St,Pe){if(St.status===-1){Xe.ZP.error(St.message);return}vt.setFieldsValue({src:`/api/attachments/${St.id}`,type:Pe.type})}function me(St){let Pe=St.target.files[0];Ne.current=Pe,kt(Pe,Ye)}return fe.createElement(re.default,xt(lt({form:vt},tt),{className:"upload-image-panel",onFinish:Ue,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(pe.default,{style:ut})),fe.createElement(Ze,{onFileChange:me}))),fe.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},fe.createElement(pe.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(xe.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(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),fe.createElement(Se.ZP,{type:"default",onClick:_e},"\u53D6\u6D88"))))};function Ze({onFileChange:qe}){return fe.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",fe.createElement("input",{type:"file",onChange:qe}))}function kt(qe,_e){if(!qe)throw new String("\u6CA1\u6709\u6587\u4EF6");let vt=new FormData;vt.append("editormd-image-file",qe),vt.append("file_param_name","editormd-image-file"),vt.append("byxhr","true");var Ne=new window.XMLHttpRequest;Ne.withCredentials=!0,Ne.addEventListener("load",function(Ue){_e(JSON.parse(Ue.target.responseText),qe)},!1),Ne.addEventListener("error",function(Ue){console.error(Ue)},!1),Ne.open("POST",`${Re.KI}/api/attachments.json`),Ne.send(vt)}},88487:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return pe}});var re=oe(59301),Xe=oe(4676);class pe extends re.Component{constructor(xe){super(xe);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,Xe.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(Rt,It,oe){"use strict";oe.d(It,{SV:function(){return $t},ZP:function(){return Et}});var re=oe(59301),Xe=oe(76374);const pe={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"]},xe={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(` `)}]},Se={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(` `)}]};var Re=oe(53184),Ee=oe.n(Re),fe=(Ve,Ot,it)=>new Promise((ae,ee)=>{var z=ne=>{try{se(it.next(ne))}catch(we){ee(we)}},ie=ne=>{try{se(it.throw(ne))}catch(we){ee(we)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,ie);se((it=it.apply(Ve,Ot)).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"]}},be=(Ve,Ot,it,ae)=>{const ee=Ot.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:it.lineNumber,endColumn:it.column});return Array.from(new Set(ee.match(/\b\w{2,}\b/g)||[])).map(ie=>({label:ie,kind:Ve.languages.CompletionItemKind.Text,insertText:ie,range:ae}))},ot=(Ve,Ot,it,ae)=>{Ve.languages.registerCompletionItemProvider(Ot,{provideCompletionItems(ee,z){const ie=ee.getWordUntilPosition(z),se={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:[...be(Ve,ee,z,se),...it.map(Be=>({label:Be,kind:Ve.languages.CompletionItemKind.Keyword,documentation:Be,insertText:Be,insertTextRules:Ve.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(Be=>({label:Be.label,kind:Ve.languages.CompletionItemKind.Snippet,documentation:Be.content,insertText:ne.startsWith("#")?Be.content.replace(/#/,""):Be.content,insertTextRules:Ve.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var He=Ve=>{Ge.languages.forEach(Ot=>{Ve.languages.registerDocumentFormattingEditProvider(Ot,{provideDocumentFormattingEdits(it){return fe(this,null,function*(){const ae=Ee()(it.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:it.getFullModelRange(),text:ae}]})}})}),ot(Ve,"java",We.keywords,We.quickKey),ot(Ve,"cpp",xe.keywords,xe.quickKey),ot(Ve,"c",pe.keywords,[]),ot(Ve,"python",Ce.keywords,Ce.quickKey),ot(Ve,"scala",Se.keywords,Se.quickKey)};const ke="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ze=Object.defineProperty,Oe=(Ve,Ot,it)=>Ot in Ve?ze(Ve,Ot,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ve[Ot]=it,lt=(Ve,Ot,it)=>Oe(Ve,typeof Ot!="symbol"?Ot+"":Ot,it);const xt=class zs{constructor(Ot,it,ae){this.placeholder=Ot,this.editor=it,this.monaco=ae,it.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)}};lt(xt,"ID","editor.widget.placeholderHint");var ut=xt,tt=oe(96236),dt=oe(6767),Ze=oe(25399),kt=oe(78267),qe=oe(33156),_e=oe(56102),vt=Object.defineProperty,Ne=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,St=Object.prototype.propertyIsEnumerable,Pe=(Ve,Ot,it)=>Ot in Ve?vt(Ve,Ot,{enumerable:!0,configurable:!0,writable:!0,value:it}):Ve[Ot]=it,pt=(Ve,Ot)=>{for(var it in Ot||(Ot={}))me.call(Ot,it)&&Pe(Ve,it,Ot[it]);if(Ye)for(var it of Ye(Ot))St.call(Ot,it)&&Pe(Ve,it,Ot[it]);return Ve},Dt=(Ve,Ot)=>Ne(Ve,Ue(Ot)),ve=(Ve,Ot)=>{var it={};for(var ae in Ve)me.call(Ve,ae)&&Ot.indexOf(ae)<0&&(it[ae]=Ve[ae]);if(Ve!=null&&Ye)for(var ae of Ye(Ve))Ot.indexOf(ae)<0&&St.call(Ve,ae)&&(it[ae]=Ve[ae]);return it},de=(Ve,Ot,it)=>new Promise((ae,ee)=>{var z=ne=>{try{se(it.next(ne))}catch(we){ee(we)}},ie=ne=>{try{se(it.throw(ne))}catch(we){ee(we)}},se=ne=>ne.done?ae(ne.value):Promise.resolve(ne.value).then(z,ie);se((it=it.apply(Ve,Ot)).next())});function rt(Ve){return/^\d+$/.test(Ve)?`${Ve}px`:Ve}function Tt(){}let ft=!1;const Ae={"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 Qe(Ve=[]){let Ot=Ve;if(Array.isArray(Ve)){for(let it=0;itde(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Ve){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Ve)}});var Et=Ve=>{var Ot=Ve,{width:it="100%",height:ae="100%",value:ee,language:z="javascript",style:ie={},options:se={},overrideServices:ne={},theme:we="vs-dark",onEditBlur:Be,isCopy:wt=!1,onSave:Fe,autoHeight:Ke=!1,forbidCopy:mt=!1,forbidCopyTips:Pt,onChange:Mt=Tt,editorDidMount:Wt=Tt,onFocus:Gt=Tt,onBreakPoint:At=Tt,breakPointValue:sn=[],filename:Jt="educoder.txt",errorLine:on,errorContent:gt="",highlightLine:dn,openBreakPoint:zt=!1,placeholder:Yt="",showMiniMap:an=!0}=Ot,Ln=ve(Ot,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const bn=(0,re.useRef)(),De=(0,re.useRef)({}),Je=(0,re.useRef)(),yt=(0,re.useRef)(),jt=(0,re.useRef)([]),rn=(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 Ct;return bn.current&&(Ct=new Xe.Z(Zt=>{for(let In of Zt)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&De.current.instance.layout()}),Ct.observe(bn.current)),Ct}function Kn(){dt.ZP.warning({content:decodeURIComponent(Pt||ke),key:"monaco-editor-tip"})}const gn=()=>{let Ct=De.current.instance;if(ee!=null&&Ct&&pn){const Zt=Ct.getModel();Zt&&ee!==Zt.getValue()&&(ft=!0,Zt.setValue(ee),Ct.layout(),ft=!1)}};(0,re.useEffect)(()=>{const Ct=qe.Z.subscribe("formatDocument",Zt=>{var In;let Un=De.current.instance;(In=Un==null?void 0:Un.getAction)==null||In.call(Un,"editor.action.formatDocument").run()});return window.updateMonacoValue=Zt=>{Mt(Zt)},Ct},[]),(0,re.useEffect)(()=>{var Ct;let Zt=De.current.instance;yt.current&&clearTimeout(yt.current),yt.current=setTimeout(()=>{gn()},500),ee&&(ee!=null&&ee.length)&&((Ct=Zt==null?void 0:Zt.updateOptions)==null||Ct.call(Zt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ee.split(/\r\n|\r|\n/g).length))+3,5)}))},[ee,pn,De.current]),(0,re.useEffect)(()=>{if(on&&De.current&&De.current.instance){let Zt=De.current.instance;Zt.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=gt,In.addZone({afterLineNumber:on||11,heightInLines:3,domNode:Un})});var Ct={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}};Zt.addOverlayWidget(Ct),Zt.revealPositionInCenter({lineNumber:20,column:1})}},[on,De.current,pn]);const Dn=(Ct="",Zt)=>{if(!Ct||Ct.trim()==="")return!0;const Un=De.current.instance.getModel().getLineTokens(Zt);let Me=!1;for(let $e=0;$e<2;$e++)Un.getStandardTokenType($e)===1&&(Me=!0);return Me};(0,re.useEffect)(()=>{var Ct;const Zt=(Ct=De.current)==null?void 0:Ct.instance;if(Zt&&pn&&mt){const In=Zt.onDidBlurEditorWidget(()=>{An.current=!1}),Un=Zt.onDidFocusEditorText(()=>{An.current=!0});return()=>{In.dispose(),Un.dispose()}}},[De.current,pn,mt]),(0,re.useEffect)(()=>{var Ct;if((Ct=De.current)!=null&&Ct.instance&&pn&&zt){let Zt=De.current.instance,In=Zt.getModel();if(!In)return;(()=>{var Lt;let ht=[],st=[];const _t=In.getAllDecorations();for(let ln of _t)ln.options.className==="highlighted-line"&&(ht.push((Lt=ln==null?void 0:ln.range)==null?void 0:Lt.startLineNumber),st.push(ln==null?void 0:ln.id));if(dn===ht[0])return;In.deltaDecorations(st,[]);const hn=In.getLineCount();dn&&dn<=hn&&(Zt.deltaDecorations([],[{range:new et.Range(dn,1,dn,In.getLineMaxColumn(dn)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Zt.revealLineInCenter(dn))})();const Me=(Lt=!1)=>{var ht;let st=[],_t=[];const hn=In.getAllDecorations();for(let ln of hn)ln.options.linesDecorationsClassName==="breakpoints-select"&&(st.push((ht=ln==null?void 0:ln.range)==null?void 0:ht.startLineNumber),_t.push(ln==null?void 0:ln.id));if(Lt)return{lines:st,ids:_t};At(st)},$e=Lt=>de(void 0,null,function*(){let ht={range:new et.Range(Lt,1,Lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield In.deltaDecorations([],[ht]),Me()}),ge=Lt=>de(void 0,null,function*(){let ht=[];const st=Zt.getLineDecorations(Lt);for(let _t of st)_t.options.linesDecorationsClassName==="breakpoints-select"&&ht.push(_t.id);yield In.deltaDecorations(ht,[]),Me()}),Ie=Lt=>{let ht=Zt.getLineDecorations(Lt);for(let st of ht)if(st.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,kt.isEqual)(sn,Me(!0).lines)){In.deltaDecorations(Me(!0).ids,[]);const Lt=sn.map(ht=>({range:new et.Range(ht,1,ht,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));In.deltaDecorations([],Lt)}const ye=Zt.onDidChangeModelContent(Lt=>{let ht=Zt.getPosition();if(ht){let st=ht.lineNumber;clearTimeout($n.current),$n.current=setTimeout(()=>{Dn(In.getLineContent(st),st)?ge(st):Ie(st)?(ge(st),$e(st)):Me()},100)}}),Le=Zt.onMouseDown(Lt=>{var ht,st,_t;if(Lt.target.detail&&((_t=(st=(ht=Lt.target)==null?void 0:ht.element)==null?void 0:st.className)!=null&&_t.includes("line-numbers"))){let hn=Lt.target.position.lineNumber;if(Dn(In.getLineContent(hn),hn))return;Ie(hn)?ge(hn):$e(hn)}}),nt=Lt=>{let ht={range:new et.Range(Lt,1,Lt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};jt.current=Zt.deltaDecorations(jt.current,[ht])},Nt=()=>{jt.current=Zt.deltaDecorations(jt.current,[])},Ft=Zt.onMouseMove(Lt=>{var ht,st,_t;if(Nt(),Lt.target.detail&&((_t=(st=(ht=Lt.target)==null?void 0:ht.element)==null?void 0:st.className)!=null&&_t.includes("line-numbers"))){let hn=Lt.target.position.lineNumber;if(Dn(In.getLineContent(hn),hn))return;nt(hn)}}),Qt=Zt.onMouseLeave(()=>{Nt()});return()=>{ye.dispose(),Le.dispose(),Ft.dispose(),Qt.dispose()}}},[De.current,pn,sn,dn,zt,z]),(0,re.useEffect)(()=>{var Ct;(Ct=De.current)!=null&&Ct.instance&&zt&&De.current.instance.setPosition({lineNumber:0,column:0})},[dn]);function nn(){let Ct=De.current.instance;if(Ct){const Zt=Ct.getSelection(),In=De.current.pastePos||{},Un=new et.Range(In.startLineNumber||Zt.endLineNumber,In.startColumn||Zt.endColumn,In.endLineNumber||Zt.endLineNumber,In.endColumn||Zt.endColumn);setTimeout(()=>{Ct.executeEdits("",[{range:Un,text:""}])},300)}}function yn(Ct){(window.navigator.platform.match("Mac")?Ct.metaKey:Ct.ctrlKey)&&Ct.keyCode==83&&(Ct.preventDefault(),Fe())}const un=()=>{if(Ke&&De.current.instance){const Ct=De.current.instance.getContentHeight();Qn(Ct{if(!An.current)return;const{keyCode:Zt,ctrlKey:In,metaKey:Un,target:Me,type:$e}=Ct;return($e==="paste"||(Zt===67||Zt===86)&&(Un||In))&&Me.nodeName==="TEXTAREA"&&(Kn(),Ct.preventDefault()),!1};function zn(Ct,Zt){var In=window.URL||window.webkitURL||window,Un=new Blob([Zt]),Me=document.createElementNS("http://www.w3.org/1999/xhtml","a");Me.href=In.createObjectURL(Un),Me.download=Ct,Tn(Me)}(0,re.useEffect)(()=>{un()},[un]),(0,re.useEffect)(()=>{bn.current&&!pn&&Promise.all([oe.e(8909),oe.e(5977)]).then(oe.bind(oe,71448)).then(Ct=>{try{et=Ct,De.current.instance=et.editor.create(bn.current,{value:ee,language:Qe(z),theme:we,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:an||!1}},ne);const Zt=De.current.instance;let Me=[...tt.BH._menuItems].find(ye=>ye[0]._debugName=="EditorContext")[1],$e=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ge=(ye,Le)=>{var nt,Nt;let Ft=ye._first;do Le.includes((Nt=(nt=Ft.element)==null?void 0:nt.command)==null?void 0:Nt.id)&&ye._remove(Ft);while(Ft=Ft.next)};if(Wt(Zt,et),setTimeout(()=>{un(),De.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{zn(Jt||"educoder.txt",Zt.getValue())}})},500),De.current.subscription=Zt.onDidChangeModelContent(ye=>{rn.current?clearTimeout(fn.current):(un(),Mt(Zt.getValue(),ye)),fn.current=setTimeout(()=>{rn.current=!1},500)}),window.Monaco||He(et,Qe(z)),mt&&(ge(Me,$e),bn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Yn),window.removeEventListener("paste",Yn),window.addEventListener("keydown",Yn),window.addEventListener("paste",Yn)),window.Monaco=et,Be&&Zt.onDidBlurEditorWidget(()=>{Be(Zt.getValue())}),Gt&&Zt.onDidFocusEditorText(()=>{mt&&en(),Gt(Zt.getValue())}),mt){en();try{Zt.onDidPaste(ye=>{const Le=Zt.getSelection(),nt=De.current.pastePos||{},Nt=new et.Range(nt.startLineNumber||Le.endLineNumber,nt.startColumn||Le.endColumn,nt.endLineNumber||Le.endLineNumber,nt.endColumn||Le.endColumn);Zt.executeEdits("",[{range:ye.range,text:""}])})}catch(ye){}}let Ie=vn();return Yt&&typeof Yt=="string"&&new ut(Yt,Zt,et),wn(!0),()=>{const ye=De.current.instance;ye.dispose();const Le=ye.getModel();Le&&Le.dispose(),De.current.subscription&&De.current.subscription.dispose(),Ie.unobserve(bn.current)}}catch(Zt){}})},[]),(0,re.useEffect)(()=>{if(De.current.instance&&pn)return document.addEventListener("keydown",yn,!1),()=>{document.removeEventListener("keydown",yn)}},[Fe,pn]),(0,re.useEffect)(()=>{let Ct=De.current.instance;if(Ct&&pn){let Zt=Qe(z);et.editor.setModelLanguage(Ct.getModel(),Zt)}},[z,pn]),(0,re.useEffect)(()=>{De.current.instance&&pn&&et.editor.setTheme(we)},[we,pn]),(0,re.useEffect)(()=>{let Ct=De.current.instance;Je.current=se,Ct&&pn&&(Ct.updateOptions(pt({},se)),setTimeout(()=>{Ct.getModel().updateOptions(pt({},se))},200))},[JSON.stringify(se),pn]),(0,re.useEffect)(()=>{let Ct=De.current.instance;Ct&&pn&&Ct.layout()},[it,ae,pn]);const[Bn,_n]=(0,re.useState)(rt(it)),[Vn,Qn]=(0,re.useState)(rt(ae)),jn=Dt(pt({},ie),{width:Bn,height:Vn,position:"relative"});return re.createElement("div",{className:"my-monaco-editor",ref:bn,style:jn,onFocus:()=>{mt&&en()}},wt&&re.createElement(_e.CopyToClipboard,{text:ee,onCopy:()=>dt.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement(Ze.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 $t({width:Ve="100%",height:Ot="100%",original:it,modified:ae,language:ee,options:z={}}){const ie=(0,re.useRef)(),[se,ne]=(0,re.useState)(null);function we(Ke){let mt;return ie.current&&(mt=new Xe.Z(Pt=>{for(let Mt of Pt)(Mt.target.offsetHeight>0||Mt.target.offsetWidth>0)&&Ke.layout()}),mt.observe(ie.current)),mt}(0,re.useEffect)(()=>(ie.current&&Promise.all([oe.e(8909),oe.e(9404)]).then(oe.bind(oe,2550)).then(Ke=>{et=Ke;const mt=et.editor.createDiffEditor(ie.current,Dt(pt({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(mt);let Pt=we(mt);return()=>{mt.dispose();const Mt=mt.getModel();Mt&&Mt.dispose(),Pt.unobserve(ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,re.useEffect)(()=>{se&&se.setModel({original:et.editor.createModel(it,ee),modified:et.editor.createModel(ae,ee)})},[it,ae,ee,se]);const Be=rt(Ve),wt=rt(Ot),Fe={width:Be,height:wt};return re.createElement("div",{className:"my-diff-editor",ref:ie,style:Fe})}},79006:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Xe}});var re=oe(59301);function Xe(pe,We){const xe=(0,re.useRef)();(0,re.useEffect)(()=>{xe.current=pe}),(0,re.useEffect)(()=>{function Ce(){xe.current()}if(We!==null){let Se=setInterval(Ce,We);return()=>clearInterval(Se)}},[We])}},13326:function(Rt,It,oe){"use strict";oe.r(It),oe.d(It,{default:function(){return Pe}});var re=oe(59301),Xe=oe(44283),pe=oe(82326),We=oe(37568),xe=oe(62957),Ce=oe(62673),Se=oe(25399),Re=oe(4875),Ee=oe(7939),fe=oe(6767),Ge=oe(39116),be=oe(66443),ot=oe(78267),He={flex_box_center:"flex_box_center___WDeol",flex_space_between:"flex_space_between___IWsL9",flex_box_vertical_center:"flex_box_vertical_center___oFPfv",flex_box_center_end:"flex_box_center_end___Upl2t",flex_box_column:"flex_box_column___Fg5BW",bg:"bg___Mm1RQ",flexRow:"flexRow___O5kWk",flexJustifyCenter:"flexJustifyCenter___zJfFU",flexAlignEnd:"flexAlignEnd___dNXu7",flexAlingCenter:"flexAlingCenter___VH6yX",flexAlignCenter:"flexAlignCenter___gLYIu",flexColumn:"flexColumn___F9Lnl",formWrap:"formWrap___TOxFp",titleWrap:"titleWrap____eUj3",fieldWrap:"fieldWrap___A8TH3",mdWrap:"mdWrap___b3UIq",backgroundFa:"backgroundFa___tmpwD",button:"button___RPcpM",icons:"icons___Q_4QK",navBar:"navBar___WTBHk",active:"active___hgO9F",tipWrap:"tipWrap___sN5ih",tip:"tip___CiN7X",width300:"width300___rIz4g",popover:"popover___YKxuI",groupWrap:"groupWrap___qLGlB",check:"check___mpaLs"},ke=oe(46642),ze=oe(44910),Oe=oe(30592),lt=oe(74671),xt=oe(76406),at=oe(59301),ut=Object.defineProperty,tt=Object.defineProperties,dt=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,kt=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,_e=(pt,Dt,ve)=>Dt in pt?ut(pt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:ve}):pt[Dt]=ve,vt=(pt,Dt)=>{for(var ve in Dt||(Dt={}))kt.call(Dt,ve)&&_e(pt,ve,Dt[ve]);if(Ze)for(var ve of Ze(Dt))qe.call(Dt,ve)&&_e(pt,ve,Dt[ve]);return pt},Ne=(pt,Dt)=>tt(pt,dt(Dt)),Ue=(pt,Dt,ve)=>new Promise((de,rt)=>{var Tt=Qe=>{try{Ae(ve.next(Qe))}catch(et){rt(et)}},ft=Qe=>{try{Ae(ve.throw(Qe))}catch(et){rt(et)}},Ae=Qe=>Qe.done?de(Qe.value):Promise.resolve(Qe.value).then(Tt,ft);Ae((ve=ve.apply(pt,Dt)).next())});const{Option:Ye}=pe.default,{TextArea:me}=We.default,St=({shixunsDetail:pt,dispatch:Dt,practiceSetting:ve})=>{const de=(0,Xe.useParams)(),[rt,Tt]=(0,re.useState)({}),[ft,Ae]=(0,re.useState)([]),[Qe,et]=(0,re.useState)(!1),en=(0,re.useRef)(null),Et=(0,re.useRef)({editData:null,answerList:null}),[$t,Ve]=(0,re.useState)(!0);(0,re.useEffect)(()=>{Ot()},[]),(0,re.useEffect)(()=>{z()},[rt,ft]);const Ot=()=>Ue(void 0,null,function*(){Ve(!0),yield it(),yield ae(),Ve(!1)}),it=()=>Ue(void 0,null,function*(){const ne=yield(0,be.ii)({id:de.id,challengeId:de.challengesId,tab:2});Et.current.editData=ne,ne&&Tt(ne)}),ae=()=>Ue(void 0,null,function*(){const ne=yield(0,be.AE)({id:de.id,challengeId:de.challengesId}),we=ne.map(Be=>Ne(vt({},Be),{contents:(0,lt.S)(Be.contents)}));Et.current.answerList=we,ne&&Ae(we)}),ee=(ne=!1,we=1)=>Ue(void 0,null,function*(){var Be;et(!0);const wt=(0,xt.TG)(),Fe=yield(0,be.xK)({id:de.id,challengeId:de.challengesId,challenge_answer:ft,hide_answer:rt==null?void 0:rt.hide_answer,disable_copy:rt==null?void 0:rt.disable_copy,sync_origin_shixun:ne,homework_common_id:wt||void 0});et(!1),Dt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}}),Fe.status===1&&((Be=pt==null?void 0:pt.detail)!=null&&Be.copy_for_exercise&&(0,lt.m)(Dt,pt,de.id,we),Xe.history.push(`/shixuns/${de.id}/edit/${de.challengesId}/tab=4`))}),z=()=>{clearTimeout(en.current),en.current=setTimeout(ie,500)},ie=()=>{!(0,ot.isEqual)(Et.current.editData,rt)||!(0,ot.isEqual)(Et.current.answerList,ft)?Dt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):Dt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},se=()=>{var ne;const we=()=>{Xe.history.push(`/shixuns/${de.id}/challenges`),Dt({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(ne=ve==null?void 0:ve.sideBar)!=null&&ne.confirmLeave?xe.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{we()}}):we()};return at.createElement("section",{className:He.bg},at.createElement("div",{className:He.formWrap},at.createElement(ze.Z,{activeIndex:2}),at.createElement("div",{className:He.check},at.createElement("div",null,at.createElement(Ce.default,{checked:rt==null?void 0:rt.hide_answer,onChange:ne=>Tt(Ne(vt({},rt),{hide_answer:ne.target.checked}))},"\u9690\u85CF\u53C2\u8003\u7B54\u6848\u6A21\u5757")),at.createElement("div",null,at.createElement(Ce.default,{checked:rt==null?void 0:rt.disable_copy,onChange:ne=>Tt(Ne(vt({},rt),{disable_copy:ne.target.checked}))},"\u7981\u6B62\u590D\u5236\u53C2\u8003\u7B54\u6848"))),at.createElement("div",{className:He.fieldWrap},at.createElement("p",null,"\u53EF\u4EE5\u5C06\u53C2\u8003\u7B54\u6848\u5206\u7EA7\u8BBE\u7F6E\uFF0C\u8BA9\u5B66\u5458\u81EA\u884C\u9009\u62E9\u7EA7\u522B\uFF0C\u6BCF\u7EA7\u67E5\u770B\u540E\u6309\u7167\u6BD4\u4F8B\u6263\u5206\u503C\uFF08\u5B66\u5458\u5DF2\u5B8C\u6210\u4EFB\u52A1\u518D\u67E5\u770B\uFF0C\u5219\u4E0D\u5F71\u54CD\u5B66\u5458\u5DF2\u83B7\u5F97\u7684\u6210\u7EE9\uFF09"),at.createElement("p",null,"\u793A\u4F8B\uFF1A\u7EA7\u522B1\uFF0C\u6263\u51CF\u5206\u503C\u5360\u6BD425%\uFF1B\u7EA7\u522B2\uFF0C\u6263\u51CF\u5206\u503C\u5360\u6BD435%\uFF1B\u7EA7\u522B3\uFF0C\u6263\u51CF\u5206\u503C\u5360\u6BD440%\uFF1B"),at.createElement("p",null,"\u82E5\u5B66\u5458\u9009\u62E9\u67E5\u770B\u7EA7\u522B1\u7684\u7B54\u6848\uFF0C\u5C06\u88AB\u6263\u51CF25%\u7684\u5206\u503C\uFF1B\u9009\u62E9\u67E5\u770B\u7EA7\u522B2\u7684\u7B54\u6848\uFF0C\u5C06\u88AB\u6263\u51CF60%\u7684\u5206\u503C\uFF1B\u9009\u62E9\u67E5\u770B\u7EA7\u522B3\u7684\u7B54\u6848\uFF0C\u5C06\u88AB\u6263\u51CF100%\u7684\u5206\u503C\u3002"),ft==null?void 0:ft.map((ne,we)=>at.createElement("div",{key:we,className:"mt30 pb5"},at.createElement("div",{className:He.flexRow},at.createElement("b",{className:"font16"},"\u7EA7\u522B\uFF1A",we+1),at.createElement("div",{className:"tr flex1"},at.createElement(Se.Z,{placement:"bottom",title:"\u5220\u9664"},at.createElement("span",{className:"font14 c-red current",onClick:()=>{let Be=ft.filter((wt,Fe)=>Fe!==we);Ae(Be)}},"\u5220\xA0\u9664")))),at.createElement("div",{className:He.contentWrap},at.createElement("div",{className:He.flexRow},at.createElement("div",null,at.createElement("p",{className:"font16"},"\u540D\u79F0\uFF1A"),at.createElement(We.default,{bordered:!1,value:ne.name,onChange:Be=>{const wt=ft.map((Fe,Ke)=>Ke===we?Ne(vt({},Fe),{name:Be.target.value}):Fe);Ae(wt)}})),at.createElement("div",{className:"ml10"},at.createElement("p",{className:"font16"},"\u6263\u51CF\u5206\u503C\u5360\u6BD4\uFF1A"),at.createElement(Re.Z,{min:0,max:100,precision:0,value:ne.score,onChange:Be=>{const wt=ft.map((Fe,Ke)=>Ke===we?Ne(vt({},Fe),{score:Be}):Fe);Ae(wt)}})))),at.createElement("div",{className:"mt10 mb10"},at.createElement("div",{className:"font16 mb20"},"\u5185\u5BB9\uFF1A"),at.createElement(Ge.Z,{placeholder:"\u5EFA\u8BAE\u63D0\u4F9B\u5305\u62EC\u6587\u4EF6\u6240\u6709\u4EE3\u7801\u7684\u5B8C\u6574\u7B54\u6848",defaultValue:ne.contents,onChange:Be=>{const wt=ft.map((Fe,Ke)=>Ke===we?Ne(vt({},Fe),{contents:Be}):Fe);Ae(wt)}})))),at.createElement("div",null,at.createElement(Ee.ZP,{type:"primary",size:"middle",ghost:!0,style:{width:200},className:"mt10",onClick:()=>{let ne=[...ft,{name:`\u89E3\u9898\u601D\u8DEF${ft.length+1}`,contents:"",score:10,id:null,level:null}];Ae(ne)}},"\u65B0\u589E\u53C2\u8003\u7B54\u6848")))),at.createElement(ke.t,{onOk:()=>{var ne,we;if(!ft.every(Be=>Be.name)){et(!1),fe.ZP.info("\u8BF7\u5148\u586B\u5199\u53C2\u8003\u7B54\u6848\u540D\u79F0");return}if(!ft.every(Be=>Be.contents)){et(!1),fe.ZP.info("\u8BF7\u5148\u586B\u5199\u53C2\u8003\u7B54\u6848\u5185\u5BB9");return}(ne=pt==null?void 0:pt.detail)!=null&&ne.is_fork_from_creator&&((we=pt==null?void 0:pt.detail)!=null&&we.copy_for_exercise)&&(rt!=null&&rt.has_relation)?Dt({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",type:"taskLevel",fn:(Be,wt)=>{ee(Be,wt)}}}):ee()},className:"customFixedButton",onCancel:se,loading:Qe}),at.createElement(Oe.Z,{loading:$t}))};var Pe=(0,Xe.connect)(({shixunsDetail:pt,newCourse:Dt,globalSetting:ve,practiceSetting:de})=>({shixunsDetail:pt,newCourse:Dt,globalSetting:ve,practiceSetting:de}))(St)},44910:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return xe}});var re=oe(59301),Xe=oe(62957),pe=oe(44283);const We=({activeIndex:Ce,isEdit:Se=!0,dispatch:Re,practiceSetting:Ee})=>{const fe=(0,pe.useParams)(),{id:Ge,challengesId:be}=fe,ot=(0,re.useMemo)(()=>[{name:"\u672C\u5173\u4EFB\u52A1",url:`/shixuns/${Ge}/edit/${be}/editcheckpoint`},{name:"\u8BC4\u6D4B\u8BBE\u7F6E",url:`/shixuns/${Ge}/edit/${be}/tab=2`},{name:"\u53C2\u8003\u7B54\u6848",url:`/shixuns/${Ge}/edit/${be}/tab=3`},{name:"\u5173\u5361\u6392\u884C\u699C",url:`/shixuns/${Ge}/edit/${be}/tab=4`}],[Ge,be]),He=ke=>{var ze;const Oe=()=>{pe.history.push(ke),Re({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(ze=Ee==null?void 0:Ee.sideBar)!=null&&ze.confirmLeave?Xe.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Oe()}}):Oe()};return re.createElement("ul",{className:"challenge-nav"},Se?ot.map((ke,ze)=>Ce===ze?re.createElement("li",{key:ke.url}," ",re.createElement("a",{className:"active"},ke.name)," "):re.createElement("li",{key:ke.url}," ",re.createElement("a",{onClick:()=>He(ke.url)},ke.name)," ")):re.createElement("li",{key:ot[0].url}," ",re.createElement("a",{className:"active"},ot[0].name)," "))};var xe=(0,pe.connect)(({globalSetting:Ce,practiceSetting:Se})=>({globalSetting:Ce,practiceSetting:Se}))(We)},30592:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return xe}});var re=oe(59301),Xe=oe(29787),pe={loading:"loading___lueiN"},xe=({loading:Ce})=>Ce?re.createElement("div",{className:pe.loading},re.createElement(Xe.Z,null)):re.createElement(re.Fragment,null)},74671:function(Rt,It,oe){"use strict";oe.d(It,{S:function(){return Ce},m:function(){return Se}});var re=oe(76406),Xe=oe(6767),pe=oe(62957),We=oe(59301),xe=(Re,Ee,fe)=>new Promise((Ge,be)=>{var ot=ze=>{try{ke(fe.next(ze))}catch(Oe){be(Oe)}},He=ze=>{try{ke(fe.throw(ze))}catch(Oe){be(Oe)}},ke=ze=>ze.done?Ge(ze.value):Promise.resolve(ze.value).then(ot,He);ke((fe=fe.apply(Re,Ee)).next())});const Ce=Re=>{let Ee=document.createElement("textarea");return Ee.value=Re,Ee.value},Se=(Re,Ee,fe,Ge,be)=>xe(void 0,null,function*(){var ot,He;const ke=yield Re({type:"shixunsDetail/saveCopyForExercise",payload:{id:fe,save_type:Ge}});Ge===1?((ke==null?void 0:ke.status)==0&&Xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),(ot=ke==null?void 0:ke.data)!=null&&ot.exists_same_shixun_name?Re({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(He=ke==null?void 0:ke.data)==null?void 0:He.shixun_name}}):Re({type:"classroomList/setActionTabs",payload:{}})):(Re({type:"classroomList/setActionTabs",payload:{}}),(ke==null?void 0:ke.status)===0&&pe.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:We.createElement("div",null,We.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var ze,Oe;(0,re.xg)(`/shixuns/${(Oe=(ze=Ee==null?void 0:Ee.detail)==null?void 0:ze.fork_from)==null?void 0:Oe.fork_identifier}/challenges`)}}))})},20047:function(Rt,It,oe){"use strict";oe.d(It,{AL:function(){return ut},Iy:function(){return Ge},Qv:function(){return He},ez:function(){return at},jb:function(){return be}});var re=oe(32834),Xe=oe.n(re),pe=oe(11690),We=oe.n(pe);let xe=1;function Ce(qe,_e){const vt=qe.match(/^(\s+)(?:```)/);if(vt===null)return _e;const Ne=vt[1];return _e.split(` `).map(Ue=>{const Ye=Ue.match(/^\s+/);if(Ye===null)return Ue;const[me]=Ye;return me.length>=Ne.length?Ue.slice(Ne.length):Ue}).join(` `)}let Se=[],Re=["
    "];const Ee=new(Xe()).Renderer,fe=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Ge(){Se.length=0,Re=["
      "]}const be={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ot(qe,_e,vt,Ne){if(_e>=qe.length||qe[_e].level<=vt)return _e;var Ue=qe[_e];Ne.push("
    • "+Ue.text+""),_e++;var Ye=[];return _e=ot(qe,_e,Ue.level,Ye),Ye.length>0&&(Ne.push("
        "),Ye.forEach(function(me){Ne.push(me)}),Ne.push("
      ")),Ne.push("
    • "),_e=ot(qe,_e,vt,Ne),_e}function He(){return ot(Se,0,0,Re),Re.push("
    "),Re.join("")}const ke={heading(qe){const _e=fe.exec(qe);if(xe+=1,_e)return{type:"heading",raw:_e[0],depth:_e[1].length,text:_e[2]}},fences(qe){const _e=this.rules.block.fences.exec(qe);if(_e){const vt=_e[0];let Ne=Ce(vt,_e[3]||"");const Ue=_e[2]?_e[2].trim():_e[2];if(["latex","katex","math"].indexOf(Ue)>=0){const Ye=lt(),me=Ne;Ne=Ye,xt[Ye]={type:"block",expression:me}}return{type:"code",raw:vt,lang:Ue,text:Ne}}}},ze=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Oe=0;const lt=()=>`__special_katext_id_${Oe++}__`;let xt={};function at(){return xt}function ut(){Oe=0,xt={}}function tt(qe){return qe=qe.replace(ze,(_e,vt)=>{const Ne=lt();return xt[Ne]={type:"inline",expression:vt},Ne}),qe}const dt=Ee.listitem;Ee.listitem=function(qe){return dt(tt(qe))};const Ze=Ee.paragraph;Ee.paragraph=function(qe){return Ze(tt(qe))};const kt=Ee.tablecell;Ee.tablecell=function(qe,_e){return kt(tt(qe),_e)},Ee.code=function(qe,_e,vt){const Ne=(_e||"").match(/\S*/)[0];return Ne?["latex","katex","math"].indexOf(Ne)>=0?`

    ${qe}

    `:`
    ${vt?qe:(0,pe.escape)(qe,!0)}
    `:'
    '+(vt?qe:(0,pe.escape)(qe,!0))+"
    "},Ee.heading=function(qe,_e,vt){let Ne=this.options.headerPrefix+vt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Se.push({anchor:Ne,level:_e,text:qe}),"'+qe+""},Xe().setOptions({silent:!0,gfm:!0,pedantic:!1}),Xe().use({tokenizer:ke,renderer:Ee}),It.ZP=Xe()},86013:function(Rt,It,oe){"use strict";var re=oe(59301),Xe=oe(19248);const pe=We=>{let xe;return typeof We=="object"&&(We!=null&&We.clearIcon)?xe=We:We&&(xe={clearIcon:re.createElement(Xe.Z,null)}),xe};It.Z=pe},62673:function(Rt,It,oe){"use strict";oe.d(It,{default:function(){return qe}});var re=oe(59301),Xe=oe(92310),pe=oe.n(Xe),We=oe(16632),xe=oe(8654),Ce=oe(12919),Se=oe(63872),Re=oe(48755),Ee=oe(2171),fe=oe(83397),Ge=oe(56553),ot=re.createContext(null),He=oe(36170),ke=oe(74632),ze=function(_e,vt){var Ne={};for(var Ue in _e)Object.prototype.hasOwnProperty.call(_e,Ue)&&vt.indexOf(Ue)<0&&(Ne[Ue]=_e[Ue]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ue=Object.getOwnPropertySymbols(_e);Ye{var Ne;const{prefixCls:Ue,className:Ye,rootClassName:me,children:St,indeterminate:Pe=!1,style:pt,onMouseEnter:Dt,onMouseLeave:ve,skipGroup:de=!1,disabled:rt}=_e,Tt=ze(_e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ft,direction:Ae,checkbox:Qe}=re.useContext(Re.E_),et=re.useContext(ot),{isFormItemInput:en}=re.useContext(Ge.aM),Et=re.useContext(Ee.Z),$t=(Ne=(et==null?void 0:et.disabled)||rt)!==null&&Ne!==void 0?Ne:Et,Ve=re.useRef(Tt.value),Ot=re.useRef(null),it=(0,xe.sQ)(vt,Ot);re.useEffect(()=>{et==null||et.registerValue(Tt.value)},[]),re.useEffect(()=>{if(!de)return Tt.value!==Ve.current&&(et==null||et.cancelValue(Ve.current),et==null||et.registerValue(Tt.value),Ve.current=Tt.value),()=>et==null?void 0:et.cancelValue(Tt.value)},[Tt.value]),re.useEffect(()=>{var Ke;!((Ke=Ot.current)===null||Ke===void 0)&&Ke.input&&(Ot.current.input.indeterminate=Pe)},[Pe]);const ae=ft("checkbox",Ue),ee=(0,fe.Z)(ae),[z,ie,se]=(0,He.ZP)(ae,ee),ne=Object.assign({},Tt);et&&!de&&(ne.onChange=function(){Tt.onChange&&Tt.onChange.apply(Tt,arguments),et.toggleOption&&et.toggleOption({label:St,value:Tt.value})},ne.name=et.name,ne.checked=et.value.includes(Tt.value));const we=pe()(`${ae}-wrapper`,{[`${ae}-rtl`]:Ae==="rtl",[`${ae}-wrapper-checked`]:ne.checked,[`${ae}-wrapper-disabled`]:$t,[`${ae}-wrapper-in-form-item`]:en},Qe==null?void 0:Qe.className,Ye,me,se,ee,ie),Be=pe()({[`${ae}-indeterminate`]:Pe},Se.A,ie),[wt,Fe]=(0,ke.Z)(ne.onClick);return z(re.createElement(Ce.Z,{component:"Checkbox",disabled:$t},re.createElement("label",{className:we,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),pt),onMouseEnter:Dt,onMouseLeave:ve,onClick:wt},re.createElement(We.Z,Object.assign({},ne,{onClick:Fe,prefixCls:ae,className:Be,disabled:$t,ref:it})),St!==void 0&&re.createElement("span",{className:`${ae}-label`},St))))};var xt=re.forwardRef(Oe),at=oe(77654),ut=oe(2738),tt=function(_e,vt){var Ne={};for(var Ue in _e)Object.prototype.hasOwnProperty.call(_e,Ue)&&vt.indexOf(Ue)<0&&(Ne[Ue]=_e[Ue]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,Ue=Object.getOwnPropertySymbols(_e);Ye{const{defaultValue:Ne,children:Ue,options:Ye=[],prefixCls:me,className:St,rootClassName:Pe,style:pt,onChange:Dt}=_e,ve=tt(_e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:de,direction:rt}=re.useContext(Re.E_),[Tt,ft]=re.useState(ve.value||Ne||[]),[Ae,Qe]=re.useState([]);re.useEffect(()=>{"value"in ve&&ft(ve.value||[])},[ve.value]);const et=re.useMemo(()=>Ye.map(Be=>typeof Be=="string"||typeof Be=="number"?{label:Be,value:Be}:Be),[Ye]),en=Be=>{Qe(wt=>wt.filter(Fe=>Fe!==Be))},Et=Be=>{Qe(wt=>[].concat((0,at.Z)(wt),[Be]))},$t=Be=>{const wt=Tt.indexOf(Be.value),Fe=(0,at.Z)(Tt);wt===-1?Fe.push(Be.value):Fe.splice(wt,1),"value"in ve||ft(Fe),Dt==null||Dt(Fe.filter(Ke=>Ae.includes(Ke)).sort((Ke,mt)=>{const Pt=et.findIndex(Wt=>Wt.value===Ke),Mt=et.findIndex(Wt=>Wt.value===mt);return Pt-Mt}))},Ve=de("checkbox",me),Ot=`${Ve}-group`,it=(0,fe.Z)(Ve),[ae,ee,z]=(0,He.ZP)(Ve,it),ie=(0,ut.Z)(ve,["value","disabled"]),se=Ye.length?et.map(Be=>re.createElement(xt,{prefixCls:Ve,key:Be.value.toString(),disabled:"disabled"in Be?Be.disabled:ve.disabled,value:Be.value,checked:Tt.includes(Be.value),onChange:Be.onChange,className:`${Ot}-item`,style:Be.style,title:Be.title,id:Be.id,required:Be.required},Be.label)):Ue,ne={toggleOption:$t,value:Tt,disabled:ve.disabled,name:ve.name,registerValue:Et,cancelValue:en},we=pe()(Ot,{[`${Ot}-rtl`]:rt==="rtl"},St,Pe,z,it,ee);return ae(re.createElement("div",Object.assign({className:we,style:pt},ie,{ref:vt}),re.createElement(ot.Provider,{value:ne},se)))});const kt=xt;kt.Group=Ze,kt.__ANT_CHECKBOX=!0;var qe=kt},36170:function(Rt,It,oe){"use strict";oe.d(It,{C2:function(){return Ce}});var re=oe(36237),Xe=oe(63356),pe=oe(51636),We=oe(16931);const xe=Se=>{const{checkboxCls:Re}=Se,Ee=`${Re}-wrapper`;return[{[`${Re}-group`]:Object.assign(Object.assign({},(0,Xe.Wf)(Se)),{display:"inline-flex",flexWrap:"wrap",columnGap:Se.marginXS,[`> ${Se.antCls}-row`]:{flex:1}}),[Ee]:Object.assign(Object.assign({},(0,Xe.Wf)(Se)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ee}`]:{marginInlineStart:0},[`&${Ee}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[Re]:Object.assign(Object.assign({},(0,Xe.Wf)(Se)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Se.borderRadiusSM,alignSelf:"center",[`${Re}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${Re}-inner`]:Object.assign({},(0,Xe.oN)(Se))},[`${Re}-inner`]:{boxSizing:"border-box",display:"block",width:Se.checkboxSize,height:Se.checkboxSize,direction:"ltr",backgroundColor:Se.colorBgContainer,border:`${(0,re.unit)(Se.lineWidth)} ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusSM,borderCollapse:"separate",transition:`all ${Se.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:Se.calc(Se.checkboxSize).div(14).mul(5).equal(),height:Se.calc(Se.checkboxSize).div(14).mul(8).equal(),border:`${(0,re.unit)(Se.lineWidthBold)} solid ${Se.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Se.motionDurationFast} ${Se.motionEaseInBack}, opacity ${Se.motionDurationFast}`}},"& + span":{paddingInlineStart:Se.paddingXS,paddingInlineEnd:Se.paddingXS}})},{[` ${Ee}:not(${Ee}-disabled), ${Re}:not(${Re}-disabled) `]:{[`&:hover ${Re}-inner`]:{borderColor:Se.colorPrimary}},[`${Ee}:not(${Ee}-disabled)`]:{[`&:hover ${Re}-checked:not(${Re}-disabled) ${Re}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${Re}-checked:not(${Re}-disabled):after`]:{borderColor:Se.colorPrimaryHover}}},{[`${Re}-checked`]:{[`${Re}-inner`]:{backgroundColor:Se.colorPrimary,borderColor:Se.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Se.motionDurationMid} ${Se.motionEaseOutBack} ${Se.motionDurationFast}`}}},[` ${Ee}-checked:not(${Ee}-disabled), ${Re}-checked:not(${Re}-disabled) `]:{[`&:hover ${Re}-inner`]:{backgroundColor:Se.colorPrimaryHover,borderColor:"transparent"}}},{[Re]:{"&-indeterminate":{[`${Re}-inner`]:{backgroundColor:`${Se.colorBgContainer} !important`,borderColor:`${Se.colorBorder} !important`,"&:after":{top:"50%",insetInlineStart:"50%",width:Se.calc(Se.fontSizeLG).div(2).equal(),height:Se.calc(Se.fontSizeLG).div(2).equal(),backgroundColor:Se.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${Re}-inner`]:{backgroundColor:`${Se.colorBgContainer} !important`,borderColor:`${Se.colorPrimary} !important`}}}},{[`${Ee}-disabled`]:{cursor:"not-allowed"},[`${Re}-disabled`]:{[`&, ${Re}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${Re}-inner`]:{background:Se.colorBgContainerDisabled,borderColor:Se.colorBorder,"&:after":{borderColor:Se.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Se.colorTextDisabled},[`&${Re}-indeterminate ${Re}-inner::after`]:{background:Se.colorTextDisabled}}}]};function Ce(Se,Re){const Ee=(0,pe.mergeToken)(Re,{checkboxCls:`.${Se}`,checkboxSize:Re.controlInteractiveSize});return[xe(Ee)]}It.ZP=(0,We.I$)("Checkbox",(Se,Re)=>{let{prefixCls:Ee}=Re;return[Ce(Ee,Se)]})},38406:function(Rt,It,oe){"use strict";var re=oe(59301),Xe=oe(48755),pe=oe(584);const We=xe=>{const{componentName:Ce}=xe,{getPrefixCls:Se}=(0,re.useContext)(Xe.E_),Re=Se("empty");switch(Ce){case"Table":case"List":return re.createElement(pe.Z,{image:pe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return re.createElement(pe.Z,{image:pe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Re}-small`});case"Table.filter":return null;default:return re.createElement(pe.Z,null)}};It.Z=We},36207:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return wt}});var re=oe(59301),Xe=oe(92310),pe=oe.n(Xe),We=oe(85899),xe=oe(72190),Ce=oe(43403),Se=oe(34280),Re=re.createContext(null),Ee=re.createContext({}),fe=Re,Ge=oe(18642),be=oe(60499),ot=oe(77900),He=oe(10228),ke=oe(26112),ze=oe(42244),Oe=oe(8654),lt=["prefixCls","className","containerRef"],xt=function(Ke){var mt=Ke.prefixCls,Pt=Ke.className,Mt=Ke.containerRef,Wt=(0,ze.Z)(Ke,lt),Gt=re.useContext(Ee),At=Gt.panel,sn=(0,Oe.x1)(At,Mt);return re.createElement("div",(0,be.Z)({className:pe()("".concat(mt,"-content"),Pt),role:"dialog",ref:sn},(0,ke.Z)(Ke,{aria:!0}),{"aria-modal":"true"},Wt))},at=xt,ut=oe(48736);function tt(Fe){return typeof Fe=="string"&&String(Number(Fe))===Fe?((0,ut.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Fe)):Fe}function dt(Fe){warning(!("wrapperClassName"in Fe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Fe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ze={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function kt(Fe,Ke){var mt,Pt,Mt,Wt=Fe.prefixCls,Gt=Fe.open,At=Fe.placement,sn=Fe.inline,Jt=Fe.push,on=Fe.forceRender,gt=Fe.autoFocus,dn=Fe.keyboard,zt=Fe.classNames,Yt=Fe.rootClassName,an=Fe.rootStyle,Ln=Fe.zIndex,bn=Fe.className,De=Fe.id,Je=Fe.style,yt=Fe.motion,jt=Fe.width,rn=Fe.height,fn=Fe.children,$n=Fe.mask,An=Fe.maskClosable,pn=Fe.maskMotion,wn=Fe.maskClassName,vn=Fe.maskStyle,Kn=Fe.afterOpenChange,gn=Fe.onClose,Dn=Fe.onMouseEnter,nn=Fe.onMouseOver,yn=Fe.onMouseLeave,un=Fe.onClick,Tn=Fe.onKeyDown,Yn=Fe.onKeyUp,zn=Fe.styles,Bn=Fe.drawerRender,_n=re.useRef(),Vn=re.useRef(),Qn=re.useRef();re.useImperativeHandle(Ke,function(){return _n.current});var jn=function(ht){var st=ht.keyCode,_t=ht.shiftKey;switch(st){case He.Z.TAB:{if(st===He.Z.TAB){if(!_t&&document.activeElement===Qn.current){var hn;(hn=Vn.current)===null||hn===void 0||hn.focus({preventScroll:!0})}else if(_t&&document.activeElement===Vn.current){var ln;(ln=Qn.current)===null||ln===void 0||ln.focus({preventScroll:!0})}}break}case He.Z.ESC:{gn&&dn&&(ht.stopPropagation(),gn(ht));break}}};re.useEffect(function(){if(Gt&>){var Lt;(Lt=_n.current)===null||Lt===void 0||Lt.focus({preventScroll:!0})}},[Gt]);var Ct=re.useState(!1),Zt=(0,xe.Z)(Ct,2),In=Zt[0],Un=Zt[1],Me=re.useContext(fe),$e;typeof Jt=="boolean"?$e=Jt?{}:{distance:0}:$e=Jt||{};var ge=(mt=(Pt=(Mt=$e)===null||Mt===void 0?void 0:Mt.distance)!==null&&Pt!==void 0?Pt:Me==null?void 0:Me.pushDistance)!==null&&mt!==void 0?mt:180,Ie=re.useMemo(function(){return{pushDistance:ge,push:function(){Un(!0)},pull:function(){Un(!1)}}},[ge]);re.useEffect(function(){if(Gt){var Lt;Me==null||(Lt=Me.push)===null||Lt===void 0||Lt.call(Me)}else{var ht;Me==null||(ht=Me.pull)===null||ht===void 0||ht.call(Me)}},[Gt]),re.useEffect(function(){return function(){var Lt;Me==null||(Lt=Me.pull)===null||Lt===void 0||Lt.call(Me)}},[]);var ye=$n&&re.createElement(ot.default,(0,be.Z)({key:"mask"},pn,{visible:Gt}),function(Lt,ht){var st=Lt.className,_t=Lt.style;return re.createElement("div",{className:pe()("".concat(Wt,"-mask"),st,zt==null?void 0:zt.mask,wn),style:(0,We.Z)((0,We.Z)((0,We.Z)({},_t),vn),zn==null?void 0:zn.mask),onClick:An&&Gt?gn:void 0,ref:ht})}),Le=typeof yt=="function"?yt(At):yt,nt={};if(In&&ge)switch(At){case"top":nt.transform="translateY(".concat(ge,"px)");break;case"bottom":nt.transform="translateY(".concat(-ge,"px)");break;case"left":nt.transform="translateX(".concat(ge,"px)");break;default:nt.transform="translateX(".concat(-ge,"px)");break}At==="left"||At==="right"?nt.width=tt(jt):nt.height=tt(rn);var Nt={onMouseEnter:Dn,onMouseOver:nn,onMouseLeave:yn,onClick:un,onKeyDown:Tn,onKeyUp:Yn},Ft=re.createElement(ot.default,(0,be.Z)({key:"panel"},Le,{visible:Gt,forceRender:on,onVisibleChanged:function(ht){Kn==null||Kn(ht)},removeOnLeave:!1,leavedClassName:"".concat(Wt,"-content-wrapper-hidden")}),function(Lt,ht){var st=Lt.className,_t=Lt.style,hn=re.createElement(at,(0,be.Z)({id:De,containerRef:ht,prefixCls:Wt,className:pe()(bn,zt==null?void 0:zt.content),style:(0,We.Z)((0,We.Z)({},Je),zn==null?void 0:zn.content)},(0,ke.Z)(Fe,{aria:!0}),Nt),fn);return re.createElement("div",(0,be.Z)({className:pe()("".concat(Wt,"-content-wrapper"),zt==null?void 0:zt.wrapper,st),style:(0,We.Z)((0,We.Z)((0,We.Z)({},nt),_t),zn==null?void 0:zn.wrapper)},(0,ke.Z)(Fe,{data:!0})),Bn?Bn(hn):hn)}),Qt=(0,We.Z)({},an);return Ln&&(Qt.zIndex=Ln),re.createElement(fe.Provider,{value:Ie},re.createElement("div",{className:pe()(Wt,"".concat(Wt,"-").concat(At),Yt,(0,Ge.Z)((0,Ge.Z)({},"".concat(Wt,"-open"),Gt),"".concat(Wt,"-inline"),sn)),style:Qt,tabIndex:-1,ref:_n,onKeyDown:jn},ye,re.createElement("div",{tabIndex:0,ref:Vn,style:Ze,"aria-hidden":"true","data-sentinel":"start"}),Ft,re.createElement("div",{tabIndex:0,ref:Qn,style:Ze,"aria-hidden":"true","data-sentinel":"end"})))}var qe=re.forwardRef(kt),_e=qe,vt=function(Ke){var mt=Ke.open,Pt=mt===void 0?!1:mt,Mt=Ke.prefixCls,Wt=Mt===void 0?"rc-drawer":Mt,Gt=Ke.placement,At=Gt===void 0?"right":Gt,sn=Ke.autoFocus,Jt=sn===void 0?!0:sn,on=Ke.keyboard,gt=on===void 0?!0:on,dn=Ke.width,zt=dn===void 0?378:dn,Yt=Ke.mask,an=Yt===void 0?!0:Yt,Ln=Ke.maskClosable,bn=Ln===void 0?!0:Ln,De=Ke.getContainer,Je=Ke.forceRender,yt=Ke.afterOpenChange,jt=Ke.destroyOnClose,rn=Ke.onMouseEnter,fn=Ke.onMouseOver,$n=Ke.onMouseLeave,An=Ke.onClick,pn=Ke.onKeyDown,wn=Ke.onKeyUp,vn=Ke.panelRef,Kn=re.useState(!1),gn=(0,xe.Z)(Kn,2),Dn=gn[0],nn=gn[1],yn=re.useState(!1),un=(0,xe.Z)(yn,2),Tn=un[0],Yn=un[1];(0,Se.Z)(function(){Yn(!0)},[]);var zn=Tn?Pt:!1,Bn=re.useRef(),_n=re.useRef();(0,Se.Z)(function(){zn&&(_n.current=document.activeElement)},[zn]);var Vn=function(In){var Un;if(nn(In),yt==null||yt(In),!In&&_n.current&&!((Un=Bn.current)!==null&&Un!==void 0&&Un.contains(_n.current))){var Me;(Me=_n.current)===null||Me===void 0||Me.focus({preventScroll:!0})}},Qn=re.useMemo(function(){return{panel:vn}},[vn]);if(!Je&&!Dn&&!zn&&jt)return null;var jn={onMouseEnter:rn,onMouseOver:fn,onMouseLeave:$n,onClick:An,onKeyDown:pn,onKeyUp:wn},Ct=(0,We.Z)((0,We.Z)({},Ke),{},{open:zn,prefixCls:Wt,placement:At,autoFocus:Jt,keyboard:gt,width:zt,mask:an,maskClosable:bn,inline:De===!1,afterOpenChange:Vn,ref:Bn},jn);return re.createElement(Ee.Provider,{value:Qn},re.createElement(Ce.Z,{open:zn||Je||Dn,autoDestroy:!1,getContainer:De,autoLock:an&&(zn||Dn)},re.createElement(_e,Ct)))},Ne=vt,Ue=Ne,Ye=oe(62487),me=oe(75030),St=oe(86641),Pe=oe(55743),pt=oe(48755),Dt=oe(91190),ve=oe(78776),de=oe(458),Tt=Fe=>{var Ke,mt;const{prefixCls:Pt,title:Mt,footer:Wt,extra:Gt,loading:At,onClose:sn,headerStyle:Jt,bodyStyle:on,footerStyle:gt,children:dn,classNames:zt,styles:Yt}=Fe,an=(0,pt.dj)("drawer"),Ln=re.useCallback(jt=>re.createElement("button",{type:"button",onClick:sn,"aria-label":"Close",className:`${Pt}-close`},jt),[sn]),[bn,De]=(0,ve.Z)((0,ve.w)(Fe),(0,ve.w)(an),{closable:!0,closeIconRender:Ln}),Je=re.useMemo(()=>{var jt,rn;return!Mt&&!bn?null:re.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(jt=an.styles)===null||jt===void 0?void 0:jt.header),Jt),Yt==null?void 0:Yt.header),className:pe()(`${Pt}-header`,{[`${Pt}-header-close-only`]:bn&&!Mt&&!Gt},(rn=an.classNames)===null||rn===void 0?void 0:rn.header,zt==null?void 0:zt.header)},re.createElement("div",{className:`${Pt}-header-title`},De,Mt&&re.createElement("div",{className:`${Pt}-title`},Mt)),Gt&&re.createElement("div",{className:`${Pt}-extra`},Gt))},[bn,De,Gt,Jt,Pt,Mt]),yt=re.useMemo(()=>{var jt,rn;if(!Wt)return null;const fn=`${Pt}-footer`;return re.createElement("div",{className:pe()(fn,(jt=an.classNames)===null||jt===void 0?void 0:jt.footer,zt==null?void 0:zt.footer),style:Object.assign(Object.assign(Object.assign({},(rn=an.styles)===null||rn===void 0?void 0:rn.footer),gt),Yt==null?void 0:Yt.footer)},Wt)},[Wt,gt,Pt]);return re.createElement(re.Fragment,null,Je,re.createElement("div",{className:pe()(`${Pt}-body`,zt==null?void 0:zt.body,(Ke=an.classNames)===null||Ke===void 0?void 0:Ke.body),style:Object.assign(Object.assign(Object.assign({},(mt=an.styles)===null||mt===void 0?void 0:mt.body),on),Yt==null?void 0:Yt.body)},At?re.createElement(de.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Pt}-body-skeleton`}):dn),yt)},ft=oe(36237),Ae=oe(63356),Qe=oe(16931),et=oe(51636);const en=Fe=>{const Ke="100%";return{left:`translateX(-${Ke})`,right:`translateX(${Ke})`,top:`translateY(-${Ke})`,bottom:`translateY(${Ke})`}[Fe]},Et=(Fe,Ke)=>({"&-enter, &-appear":Object.assign(Object.assign({},Fe),{"&-active":Ke}),"&-leave":Object.assign(Object.assign({},Ke),{"&-active":Fe})}),$t=(Fe,Ke)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ke}`}}},Et({opacity:Fe},{opacity:1})),Ve=(Fe,Ke)=>[$t(.7,Ke),Et({transform:en(Fe)},{transform:"none"})];var it=Fe=>{const{componentCls:Ke,motionDurationSlow:mt}=Fe;return{[Ke]:{[`${Ke}-mask-motion`]:$t(0,mt),[`${Ke}-panel-motion`]:["left","right","top","bottom"].reduce((Pt,Mt)=>Object.assign(Object.assign({},Pt),{[`&-${Mt}`]:Ve(Mt,mt)}),{})}}};const ae=Fe=>{const{borderRadiusSM:Ke,componentCls:mt,zIndexPopup:Pt,colorBgMask:Mt,colorBgElevated:Wt,motionDurationSlow:Gt,motionDurationMid:At,paddingXS:sn,padding:Jt,paddingLG:on,fontSizeLG:gt,lineHeightLG:dn,lineWidth:zt,lineType:Yt,colorSplit:an,marginXS:Ln,colorIcon:bn,colorIconHover:De,colorBgTextHover:Je,colorBgTextActive:yt,colorText:jt,fontWeightStrong:rn,footerPaddingBlock:fn,footerPaddingInline:$n,calc:An}=Fe,pn=`${mt}-content-wrapper`;return{[mt]:{position:"fixed",inset:0,zIndex:Pt,pointerEvents:"none",color:jt,"&-pure":{position:"relative",background:Wt,display:"flex",flexDirection:"column",[`&${mt}-left`]:{boxShadow:Fe.boxShadowDrawerLeft},[`&${mt}-right`]:{boxShadow:Fe.boxShadowDrawerRight},[`&${mt}-top`]:{boxShadow:Fe.boxShadowDrawerUp},[`&${mt}-bottom`]:{boxShadow:Fe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${mt}-mask`]:{position:"absolute",inset:0,zIndex:Pt,background:Mt,pointerEvents:"auto"},[pn]:{position:"absolute",zIndex:Pt,maxWidth:"100vw",transition:`all ${Gt}`,"&-hidden":{display:"none"}},[`&-left > ${pn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Fe.boxShadowDrawerLeft},[`&-right > ${pn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Fe.boxShadowDrawerRight},[`&-top > ${pn}`]:{top:0,insetInline:0,boxShadow:Fe.boxShadowDrawerUp},[`&-bottom > ${pn}`]:{bottom:0,insetInline:0,boxShadow:Fe.boxShadowDrawerDown},[`${mt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Wt,pointerEvents:"auto"},[`${mt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,ft.unit)(Jt)} ${(0,ft.unit)(on)}`,fontSize:gt,lineHeight:dn,borderBottom:`${(0,ft.unit)(zt)} ${Yt} ${an}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${mt}-extra`]:{flex:"none"},[`${mt}-close`]:Object.assign({display:"inline-flex",width:An(gt).add(sn).equal(),height:An(gt).add(sn).equal(),borderRadius:Ke,justifyContent:"center",alignItems:"center",marginInlineEnd:Ln,color:bn,fontWeight:rn,fontSize:gt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${At}`,textRendering:"auto","&:hover":{color:De,backgroundColor:Je,textDecoration:"none"},"&:active":{backgroundColor:yt}},(0,Ae.Qy)(Fe)),[`${mt}-title`]:{flex:1,margin:0,fontWeight:Fe.fontWeightStrong,fontSize:gt,lineHeight:dn},[`${mt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:on,overflow:"auto",[`${mt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${mt}-footer`]:{flexShrink:0,padding:`${(0,ft.unit)(fn)} ${(0,ft.unit)($n)}`,borderTop:`${(0,ft.unit)(zt)} ${Yt} ${an}`},"&-rtl":{direction:"rtl"}}}},ee=Fe=>({zIndexPopup:Fe.zIndexPopupBase,footerPaddingBlock:Fe.paddingXS,footerPaddingInline:Fe.padding});var z=(0,Qe.I$)("Drawer",Fe=>{const Ke=(0,et.mergeToken)(Fe,{});return[ae(Ke),it(Ke)]},ee),ie=function(Fe,Ke){var mt={};for(var Pt in Fe)Object.prototype.hasOwnProperty.call(Fe,Pt)&&Ke.indexOf(Pt)<0&&(mt[Pt]=Fe[Pt]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Pt=Object.getOwnPropertySymbols(Fe);Mt{var Ke;const{rootClassName:mt,width:Pt,height:Mt,size:Wt="default",mask:Gt=!0,push:At=ne,open:sn,afterOpenChange:Jt,onClose:on,prefixCls:gt,getContainer:dn,style:zt,className:Yt,visible:an,afterVisibleChange:Ln,maskStyle:bn,drawerStyle:De,contentWrapperStyle:Je}=Fe,yt=ie(Fe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:jt,getPrefixCls:rn,direction:fn,className:$n,style:An,classNames:pn,styles:wn}=(0,pt.dj)("drawer"),vn=rn("drawer",gt),[Kn,gn,Dn]=z(vn),nn=dn===void 0&&jt?()=>jt(document.body):dn,yn=pe()({"no-mask":!Gt,[`${vn}-rtl`]:fn==="rtl"},mt,gn,Dn),un=re.useMemo(()=>Pt!=null?Pt:Wt==="large"?736:378,[Pt,Wt]),Tn=re.useMemo(()=>Mt!=null?Mt:Wt==="large"?736:378,[Mt,Wt]),Yn={motionName:(0,St.m)(vn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},zn=Ct=>({motionName:(0,St.m)(vn,`panel-motion-${Ct}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Bn=(0,Dt.H)(),[_n,Vn]=(0,me.Cn)("Drawer",yt.zIndex),{classNames:Qn={},styles:jn={}}=yt;return Kn(re.createElement(Ye.Z,{form:!0,space:!0},re.createElement(Pe.Z.Provider,{value:Vn},re.createElement(Ue,Object.assign({prefixCls:vn,onClose:on,maskMotion:Yn,motion:zn},yt,{classNames:{mask:pe()(Qn.mask,pn.mask),content:pe()(Qn.content,pn.content),wrapper:pe()(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),De),wn.content),wrapper:Object.assign(Object.assign(Object.assign({},jn.wrapper),Je),wn.wrapper)},open:sn!=null?sn:an,mask:Gt,push:At,width:un,height:Tn,style:Object.assign(Object.assign({},An),zt),className:pe()($n,Yt),rootClassName:yn,getContainer:nn,afterOpenChange:Jt!=null?Jt:Ln,panelRef:Bn,zIndex:_n}),re.createElement(Tt,Object.assign({prefixCls:vn},yt,{onClose:on}))))))},Be=Fe=>{const{prefixCls:Ke,style:mt,className:Pt,placement:Mt="right"}=Fe,Wt=ie(Fe,["prefixCls","style","className","placement"]),{getPrefixCls:Gt}=re.useContext(pt.E_),At=Gt("drawer",Ke),[sn,Jt,on]=z(At),gt=pe()(At,`${At}-pure`,`${At}-${Mt}`,Jt,on,Pt);return sn(re.createElement("div",{className:gt,style:mt},re.createElement(Tt,Object.assign({prefixCls:At},Wt))))};we._InternalPanelDoNotUseOrYouWillBeFired=Be;var wt=we},584:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return at}});var re=oe(59301),Xe=oe(92310),pe=oe.n(Xe),We=oe(9017),xe=oe(17835),Ce=oe(57700),Re=()=>{const[,ut]=(0,Ce.ZP)(),[tt]=(0,We.Z)("Empty"),Ze=new xe.FastColor(ut.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return re.createElement("svg",{style:Ze,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},re.createElement("title",null,(tt==null?void 0:tt.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[,ut]=(0,Ce.ZP)(),[tt]=(0,We.Z)("Empty"),{colorFill:dt,colorFillTertiary:Ze,colorFillQuaternary:kt,colorBgContainer:qe}=ut,{borderColor:_e,shadowColor:vt,contentColor:Ne}=(0,re.useMemo)(()=>({borderColor:new xe.FastColor(dt).onBackground(qe).toHexString(),shadowColor:new xe.FastColor(Ze).onBackground(qe).toHexString(),contentColor:new xe.FastColor(kt).onBackground(qe).toHexString()}),[dt,Ze,kt,qe]);return re.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},re.createElement("title",null,(tt==null?void 0:tt.description)||"Empty"),re.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},re.createElement("ellipse",{fill:vt,cx:"32",cy:"33",rx:"32",ry:"7"}),re.createElement("g",{fillRule:"nonzero",stroke:_e},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:Ne}))))},Ge=oe(16931),be=oe(51636);const ot=ut=>{const{componentCls:tt,margin:dt,marginXS:Ze,marginXL:kt,fontSize:qe,lineHeight:_e}=ut;return{[tt]:{marginInline:Ze,fontSize:qe,lineHeight:_e,textAlign:"center",[`${tt}-image`]:{height:ut.emptyImgHeight,marginBottom:Ze,opacity:ut.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${tt}-description`]:{color:ut.colorTextDescription},[`${tt}-footer`]:{marginTop:dt},"&-normal":{marginBlock:kt,color:ut.colorTextDescription,[`${tt}-description`]:{color:ut.colorTextDescription},[`${tt}-image`]:{height:ut.emptyImgHeightMD}},"&-small":{marginBlock:Ze,color:ut.colorTextDescription,[`${tt}-image`]:{height:ut.emptyImgHeightSM}}}}};var He=(0,Ge.I$)("Empty",ut=>{const{componentCls:tt,controlHeightLG:dt,calc:Ze}=ut,kt=(0,be.mergeToken)(ut,{emptyImgCls:`${tt}-img`,emptyImgHeight:Ze(dt).mul(2.5).equal(),emptyImgHeightMD:dt,emptyImgHeightSM:Ze(dt).mul(.875).equal()});return[ot(kt)]}),ke=oe(48755),ze=function(ut,tt){var dt={};for(var Ze in ut)Object.prototype.hasOwnProperty.call(ut,Ze)&&tt.indexOf(Ze)<0&&(dt[Ze]=ut[Ze]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Ze=Object.getOwnPropertySymbols(ut);kt{const{className:tt,rootClassName:dt,prefixCls:Ze,image:kt=Oe,description:qe,children:_e,imageStyle:vt,style:Ne,classNames:Ue,styles:Ye}=ut,me=ze(ut,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:St,direction:Pe,className:pt,style:Dt,classNames:ve,styles:de}=(0,ke.dj)("empty"),rt=St("empty",Ze),[Tt,ft,Ae]=He(rt),[Qe]=(0,We.Z)("Empty"),et=typeof qe!="undefined"?qe:Qe==null?void 0:Qe.description,en=typeof et=="string"?et:"empty";let Et=null;return typeof kt=="string"?Et=re.createElement("img",{alt:en,src:kt}):Et=kt,Tt(re.createElement("div",Object.assign({className:pe()(ft,Ae,rt,pt,{[`${rt}-normal`]:kt===lt,[`${rt}-rtl`]:Pe==="rtl"},tt,dt,ve.root,Ue==null?void 0:Ue.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},de.root),Dt),Ye==null?void 0:Ye.root),Ne)},me),re.createElement("div",{className:pe()(`${rt}-image`,ve.image,Ue==null?void 0:Ue.image),style:Object.assign(Object.assign(Object.assign({},vt),de.image),Ye==null?void 0:Ye.image)},Et),et&&re.createElement("div",{className:pe()(`${rt}-description`,ve.description,Ue==null?void 0:Ue.description),style:Object.assign(Object.assign({},de.description),Ye==null?void 0:Ye.description)},et),_e&&re.createElement("div",{className:pe()(`${rt}-footer`,ve.footer,Ue==null?void 0:Ue.footer),style:Object.assign(Object.assign({},de.footer),Ye==null?void 0:Ye.footer)},_e)))};xt.PRESENTED_IMAGE_DEFAULT=Oe,xt.PRESENTED_IMAGE_SIMPLE=lt;var at=xt},28284:function(Rt,It,oe){"use strict";oe.d(It,{default:function(){return $e}});var re=oe(56553),Xe=oe(77654),pe=oe(59301),We=oe(92310),xe=oe.n(We),Ce=oe(77900),Se=oe(86641),Re=oe(83397);function Ee(ge){const[Ie,ye]=pe.useState(ge);return pe.useEffect(()=>{const Le=setTimeout(()=>{ye(ge)},ge.length?0:10);return()=>{clearTimeout(Le)}},[ge]),Ie}var fe=oe(36237),Ge=oe(63356),be=oe(34925),ot=oe(34961),He=oe(51636),ke=oe(16931),Oe=ge=>{const{componentCls:Ie}=ge,ye=`${Ie}-show-help`,Le=`${Ie}-show-help-item`;return{[ye]:{transition:`opacity ${ge.motionDurationFast} ${ge.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Le]:{overflow:"hidden",transition:`height ${ge.motionDurationFast} ${ge.motionEaseInOut}, opacity ${ge.motionDurationFast} ${ge.motionEaseInOut}, transform ${ge.motionDurationFast} ${ge.motionEaseInOut} !important`,[`&${Le}-appear, &${Le}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Le}-leave-active`]:{transform:"translateY(-5px)"}}}}};const lt=ge=>({legend:{display:"block",width:"100%",marginBottom:ge.marginLG,padding:0,color:ge.colorTextDescription,fontSize:ge.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,fe.unit)(ge.lineWidth)} ${ge.lineType} ${ge.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)(ge.controlOutlineWidth)} ${ge.controlOutline}`},output:{display:"block",paddingTop:15,color:ge.colorText,fontSize:ge.fontSize,lineHeight:ge.lineHeight}}),xt=(ge,Ie)=>{const{formItemCls:ye}=ge;return{[ye]:{[`${ye}-label > label`]:{height:Ie},[`${ye}-control-input`]:{minHeight:Ie}}}},at=ge=>{const{componentCls:Ie}=ge;return{[ge.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Ge.Wf)(ge)),lt(ge)),{[`${Ie}-text`]:{display:"inline-block",paddingInlineEnd:ge.paddingSM},"&-small":Object.assign({},xt(ge,ge.controlHeightSM)),"&-large":Object.assign({},xt(ge,ge.controlHeightLG))})}},ut=ge=>{const{formItemCls:Ie,iconCls:ye,rootPrefixCls:Le,antCls:nt,labelRequiredMarkColor:Nt,labelColor:Ft,labelFontSize:Qt,labelHeight:Lt,labelColonMarginInlineStart:ht,labelColonMarginInlineEnd:st,itemMarginBottom:_t}=ge;return{[Ie]:Object.assign(Object.assign({},(0,Ge.Wf)(ge)),{marginBottom:_t,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden${nt}-row`]:{display:"none"},"&-has-warning":{[`${Ie}-split`]:{color:ge.colorError}},"&-has-error":{[`${Ie}-split`]:{color:ge.colorWarning}},[`${Ie}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ge.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Lt,color:Ft,fontSize:Qt,[`> ${ye}`]:{fontSize:ge.fontSize,verticalAlign:"top"},[`&${Ie}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ge.marginXXS,color:Nt,fontSize:ge.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Ie}-required-mark-hidden, &${Ie}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Ie}-optional`]:{display:"inline-block",marginInlineStart:ge.marginXXS,color:ge.colorTextDescription,[`&${Ie}-required-mark-hidden`]:{display:"none"}},[`${Ie}-tooltip`]:{color:ge.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ge.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ht,marginInlineEnd:st},[`&${Ie}-no-colon::after`]:{content:'"\\a0"'}}},[`${Ie}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Le}-col-'"]):not([class*="' ${Le}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ge.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Ie]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ge.colorTextDescription,fontSize:ge.fontSize,lineHeight:ge.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ge.controlHeightSM,transition:`color ${ge.motionDurationMid} ${ge.motionEaseOut}`},"&-explain":{"&-error":{color:ge.colorError},"&-warning":{color:ge.colorWarning}}},[`&-with-help ${Ie}-explain`]:{height:"auto",opacity:1},[`${Ie}-feedback-icon`]:{fontSize:ge.fontSize,textAlign:"center",visibility:"visible",animationName:be.kr,animationDuration:ge.motionDurationMid,animationTimingFunction:ge.motionEaseOutBack,pointerEvents:"none","&-success":{color:ge.colorSuccess},"&-error":{color:ge.colorError},"&-warning":{color:ge.colorWarning},"&-validating":{color:ge.colorPrimary}}})}},tt=(ge,Ie)=>{const{formItemCls:ye}=ge;return{[`${Ie}-horizontal`]:{[`${ye}-label`]:{flexGrow:0},[`${ye}-control`]:{flex:"1 1 0",minWidth:0},[`${ye}-label[class$='-24'], ${ye}-label[class*='-24 ']`]:{[`& + ${ye}-control`]:{minWidth:"unset"}}}}},dt=ge=>{const{componentCls:Ie,formItemCls:ye,inlineItemMarginBottom:Le}=ge;return{[`${Ie}-inline`]:{display:"flex",flexWrap:"wrap",[ye]:{flex:"none",marginInlineEnd:ge.margin,marginBottom:Le,"&-row":{flexWrap:"nowrap"},[`> ${ye}-label, > ${ye}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ye}-label`]:{flex:"none"},[`${Ie}-text`]:{display:"inline-block"},[`${ye}-has-feedback`]:{display:"inline-block"}}}}},Ze=ge=>({padding:ge.verticalLabelPadding,margin:ge.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kt=ge=>{const{componentCls:Ie,formItemCls:ye,rootPrefixCls:Le}=ge;return{[`${ye} ${ye}-label`]:Ze(ge),[`${Ie}:not(${Ie}-inline)`]:{[ye]:{flexWrap:"wrap",[`${ye}-label, ${ye}-control`]:{[`&:not([class*=" ${Le}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},qe=ge=>{const{componentCls:Ie,formItemCls:ye,antCls:Le}=ge;return{[`${Ie}-vertical`]:{[`${ye}:not(${ye}-horizontal)`]:{[`${ye}-row`]:{flexDirection:"column"},[`${ye}-label > label`]:{height:"auto"},[`${ye}-control`]:{width:"100%"},[`${ye}-label, ${Le}-col-24${ye}-label, ${Le}-col-xl-24${ye}-label`]:Ze(ge)}},[`@media (max-width: ${(0,fe.unit)(ge.screenXSMax)})`]:[kt(ge),{[Ie]:{[`${ye}:not(${ye}-horizontal)`]:{[`${Le}-col-xs-24${ye}-label`]:Ze(ge)}}}],[`@media (max-width: ${(0,fe.unit)(ge.screenSMMax)})`]:{[Ie]:{[`${ye}:not(${ye}-horizontal)`]:{[`${Le}-col-sm-24${ye}-label`]:Ze(ge)}}},[`@media (max-width: ${(0,fe.unit)(ge.screenMDMax)})`]:{[Ie]:{[`${ye}:not(${ye}-horizontal)`]:{[`${Le}-col-md-24${ye}-label`]:Ze(ge)}}},[`@media (max-width: ${(0,fe.unit)(ge.screenLGMax)})`]:{[Ie]:{[`${ye}:not(${ye}-horizontal)`]:{[`${Le}-col-lg-24${ye}-label`]:Ze(ge)}}}}},_e=ge=>{const{formItemCls:Ie,antCls:ye}=ge;return{[`${Ie}-vertical`]:{[`${Ie}-row`]:{flexDirection:"column"},[`${Ie}-label > label`]:{height:"auto"},[`${Ie}-control`]:{width:"100%"}},[`${Ie}-vertical ${Ie}-label, ${ye}-col-24${Ie}-label, ${ye}-col-xl-24${Ie}-label`]:Ze(ge),[`@media (max-width: ${(0,fe.unit)(ge.screenXSMax)})`]:[kt(ge),{[Ie]:{[`${ye}-col-xs-24${Ie}-label`]:Ze(ge)}}],[`@media (max-width: ${(0,fe.unit)(ge.screenSMMax)})`]:{[Ie]:{[`${ye}-col-sm-24${Ie}-label`]:Ze(ge)}},[`@media (max-width: ${(0,fe.unit)(ge.screenMDMax)})`]:{[Ie]:{[`${ye}-col-md-24${Ie}-label`]:Ze(ge)}},[`@media (max-width: ${(0,fe.unit)(ge.screenLGMax)})`]:{[Ie]:{[`${ye}-col-lg-24${Ie}-label`]:Ze(ge)}}}},vt=ge=>({labelRequiredMarkColor:ge.colorError,labelColor:ge.colorTextHeading,labelFontSize:ge.fontSize,labelHeight:ge.controlHeight,labelColonMarginInlineStart:ge.marginXXS/2,labelColonMarginInlineEnd:ge.marginXS,itemMarginBottom:ge.marginLG,verticalLabelPadding:`0 0 ${ge.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Ne=(ge,Ie)=>(0,He.mergeToken)(ge,{formItemCls:`${ge.componentCls}-item`,rootPrefixCls:Ie});var Ue=(0,ke.I$)("Form",(ge,Ie)=>{let{rootPrefixCls:ye}=Ie;const Le=Ne(ge,ye);return[at(Le),ut(Le),Oe(Le),tt(Le,Le.componentCls),tt(Le,Le.formItemCls),dt(Le),qe(Le),_e(Le),(0,ot.Z)(Le),be.kr]},vt,{order:-1e3});const Ye=[];function me(ge,Ie,ye){let Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ge=="string"?ge:`${Ie}-${Le}`,error:ge,errorStatus:ye}}var Pe=ge=>{let{help:Ie,helpStatus:ye,errors:Le=Ye,warnings:nt=Ye,className:Nt,fieldId:Ft,onVisibleChanged:Qt}=ge;const{prefixCls:Lt}=pe.useContext(re.Rk),ht=`${Lt}-item-explain`,st=(0,Re.Z)(Lt),[_t,hn,ln]=Ue(Lt,st),cn=pe.useMemo(()=>(0,Se.Z)(Lt),[Lt]),Zn=Ee(Le),Xn=Ee(nt),Jn=pe.useMemo(()=>Ie!=null?[me(Ie,"help",ye)]:[].concat((0,Xe.Z)(Zn.map((Pn,Hn)=>me(Pn,"error","error",Hn))),(0,Xe.Z)(Xn.map((Pn,Hn)=>me(Pn,"warning","warning",Hn)))),[Ie,ye,Zn,Xn]),Nn=pe.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 Ft&&(Sn.id=`${Ft}_help`),_t(pe.createElement(Ce.default,{motionDeadline:cn.motionDeadline,motionName:`${Lt}-show-help`,visible:!!Nn.length,onVisibleChanged:Qt},Pn=>{const{className:Hn,style:ur}=Pn;return pe.createElement("div",Object.assign({},Sn,{className:xe()(ht,Hn,ln,st,Nt,hn),style:ur}),pe.createElement(Ce.CSSMotionList,Object.assign({keys:Nn},(0,Se.Z)(Lt),{motionName:`${Lt}-show-help-item`,component:!1}),qn=>{const{key:lr,error:ir,errorStatus:er,className:tr,style:gr}=qn;return pe.createElement("div",{key:lr,className:xe()(tr,{[`${ht}-${er}`]:er}),style:gr},ir)}))}))},pt=oe(69180),Dt=oe(48755),ve=oe(2171),de=oe(31756),rt=oe(23069),Tt=oe(76846),ft=oe(16722);const Ae=["parentNode"],Qe="form_item";function et(ge){return ge===void 0||ge===!1?[]:Array.isArray(ge)?ge:[ge]}function en(ge,Ie){if(!ge.length)return;const ye=ge.join("_");return Ie?`${Ie}_${ye}`:Ae.includes(ye)?`${Qe}_${ye}`:ye}function Et(ge,Ie,ye,Le,nt,Nt){let Ft=Le;return Nt!==void 0?Ft=Nt:ye.validating?Ft="validating":ge.length?Ft="error":Ie.length?Ft="warning":(ye.touched||nt&&ye.validated)&&(Ft="success"),Ft}var $t=function(ge,Ie){var ye={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&Ie.indexOf(Le)<0&&(ye[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Le=Object.getOwnPropertySymbols(ge);ntge!=null?ge:Object.assign(Object.assign({},Ie),{__INTERNAL__:{itemRef:nt=>Nt=>{const Ft=Ve(nt);Nt?ye.current[Ft]=Nt:delete ye.current[Ft]}},scrollToField:function(nt){let Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Ft}=Nt,Qt=$t(Nt,["focus"]),Lt=Ot(nt,Le);Lt&&((0,ft.Z)(Lt,Object.assign({scrollMode:"if-needed",block:"nearest"},Qt)),Ft&&Le.focusField(nt))},focusField:nt=>{var Nt,Ft;const Qt=Le.getFieldInstance(nt);typeof(Qt==null?void 0:Qt.focus)=="function"?Qt.focus():(Ft=(Nt=Ot(nt,Le))===null||Nt===void 0?void 0:Nt.focus)===null||Ft===void 0||Ft.call(Nt)},getFieldInstance:nt=>{const Nt=Ve(nt);return ye.current[Nt]}}),[ge,Ie]);return[Le]}var ae=oe(98350),ee=function(ge,Ie){var ye={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&Ie.indexOf(Le)<0&&(ye[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Le=Object.getOwnPropertySymbols(ge);nt{const ye=pe.useContext(ve.Z),{getPrefixCls:Le,direction:nt,requiredMark:Nt,colon:Ft,scrollToFirstError:Qt,className:Lt,style:ht}=(0,Dt.dj)("form"),{prefixCls:st,className:_t,rootClassName:hn,size:ln,disabled:cn=ye,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}=ge,cr=ee(ge,["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=pe.useContext(ae.Z),or=pe.useMemo(()=>lr!==void 0?lr:Hn?!1:Nt!==void 0?Nt:!0,[Hn,lr,Nt]),dr=Xn!=null?Xn:Ft,Fn=Le("form",st),wr=(0,Re.Z)(Fn),[Rr,jr,Er]=Ue(Fn,wr),Br=xe()(Fn,`${Fn}-${ur}`,{[`${Fn}-hide-required-mark`]:or===!1,[`${Fn}-rtl`]:nt==="rtl",[`${Fn}-${vr}`]:vr},Er,wr,jr,Lt,_t,hn),[kr]=it(Zn),{__INTERNAL__:Lr}=kr;Lr.name=er;const zr=pe.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=pe.useRef(null);pe.useImperativeHandle(Ie,()=>{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 Bt={block:"nearest"};typeof qt=="object"&&(Bt=Object.assign(Object.assign({},Bt),qt)),kr.scrollToField(Xt,Bt)}},Vt=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(pe.createElement(re.pg.Provider,{value:mr},pe.createElement(ve.n,{disabled:cn},pe.createElement(rt.Z.Provider,{value:vr},pe.createElement(re.RV,{validateMessages:Cr},pe.createElement(re.q3.Provider,{value:zr},pe.createElement(pt.default,Object.assign({id:er},cr,{name:er,onFinishFailed:Vt,form:kr,ref:fr,style:Object.assign(Object.assign({},ht),tr),className:Br}))))))))};var se=pe.forwardRef(z),ne=oe(41799),we=oe(8654),Be=oe(22703),wt=oe(32383),Fe=oe(11592);function Ke(ge){if(typeof ge=="function")return ge;const Ie=(0,Fe.Z)(ge);return Ie.length<=1?Ie[0]:Ie}const mt=()=>{const{status:ge,errors:Ie=[],warnings:ye=[]}=pe.useContext(re.aM);return{status:ge,errors:Ie,warnings:ye}};mt.Context=re.aM;var Pt=mt,Mt=oe(16089);function Wt(ge){const[Ie,ye]=pe.useState(ge),Le=pe.useRef(null),nt=pe.useRef([]),Nt=pe.useRef(!1);pe.useEffect(()=>(Nt.current=!1,()=>{Nt.current=!0,Mt.Z.cancel(Le.current),Le.current=null}),[]);function Ft(Qt){Nt.current||(Le.current===null&&(nt.current=[],Le.current=(0,Mt.Z)(()=>{Le.current=null,ye(Lt=>{let ht=Lt;return nt.current.forEach(st=>{ht=st(ht)}),ht})})),nt.current.push(Qt))}return[Ie,Ft]}function Gt(){const{itemRef:ge}=pe.useContext(re.q3),Ie=pe.useRef({});function ye(Le,nt){const Nt=nt&&typeof nt=="object"&&(0,we.C4)(nt),Ft=Le.join("_");return(Ie.current.name!==Ft||Ie.current.originRef!==Nt)&&(Ie.current.name=Ft,Ie.current.originRef=Nt,Ie.current.ref=(0,we.sQ)(ge(Le),Nt)),Ie.current.ref}return ye}var At=oe(29194),sn=oe(34280),Jt=oe(2738),on=oe(65970),gt=oe(70425),dn=oe(5472);const zt=ge=>{const{formItemCls:Ie}=ge;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Ie}-control`]:{display:"flex"}}}};var Yt=(0,ke.bk)(["Form","item-item"],(ge,Ie)=>{let{rootPrefixCls:ye}=Ie;const Le=Ne(ge,ye);return[zt(Le)]}),an=function(ge,Ie){var ye={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&Ie.indexOf(Le)<0&&(ye[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Le=Object.getOwnPropertySymbols(ge);nt{const{prefixCls:Ie,status:ye,labelCol:Le,wrapperCol:nt,children:Nt,errors:Ft,warnings:Qt,_internalItemRender:Lt,extra:ht,help:st,fieldId:_t,marginBottom:hn,onErrorVisibleChanged:ln,label:cn}=ge,Zn=`${Ie}-item`,Xn=pe.useContext(re.q3),Jn=pe.useMemo(()=>{let cr=Object.assign({},nt||Xn.wrapperCol||{});return cn===null&&!Le&&!nt&&Xn.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Cr=>{const or=Cr?[Cr]:[],dr=(0,gt.U2)(Xn.labelCol,or),Fn=typeof dr=="object"?dr:{},wr=(0,gt.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=pe.useRef(null),[Hn,ur]=pe.useState(0);(0,sn.Z)(()=>{ht&&Pn.current?ur(Pn.current.clientHeight):ur(0)},[ht]);const qn=pe.createElement("div",{className:`${Zn}-control-input`},pe.createElement("div",{className:`${Zn}-control-input-content`},Nt)),lr=pe.useMemo(()=>({prefixCls:Ie,status:ye}),[Ie,ye]),ir=hn!==null||Ft.length||Qt.length?pe.createElement(re.Rk.Provider,{value:lr},pe.createElement(Pe,{fieldId:_t,errors:Ft,warnings:Qt,help:st,helpStatus:ye,className:`${Zn}-explain-connected`,onVisibleChanged:ln})):null,er={};_t&&(er.id=`${_t}_extra`);const tr=ht?pe.createElement("div",Object.assign({},er,{className:`${Zn}-extra`,ref:Pn}),ht):null,gr=ir||tr?pe.createElement("div",{className:`${Zn}-additional`,style:hn?{minHeight:hn+Hn}:{}},ir,tr):null,mr=Lt&&Lt.mark==="pro_table_render"&&Lt.render?Lt.render(ge,{input:qn,errorList:ir,extra:tr}):pe.createElement(pe.Fragment,null,qn,gr);return pe.createElement(re.q3.Provider,{value:Sn},pe.createElement(dn.Z,Object.assign({},Jn,{className:Nn}),mr),pe.createElement(Yt,{prefixCls:Ie}))},Je=oe(61485),yt=oe(9017),jt=oe(85981),rn=oe(25399),fn=function(ge,Ie){var ye={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&Ie.indexOf(Le)<0&&(ye[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Le=Object.getOwnPropertySymbols(ge);nt{let{prefixCls:Ie,label:ye,htmlFor:Le,labelCol:nt,labelAlign:Nt,colon:Ft,required:Qt,requiredMark:Lt,tooltip:ht,vertical:st}=ge;var _t;const[hn]=(0,yt.Z)("Form"),{labelAlign:ln,labelCol:cn,labelWrap:Zn,colon:Xn}=pe.useContext(re.q3);if(!ye)return null;const Jn=nt||cn||{},Nn=Nt||ln,Sn=`${Ie}-item-label`,Pn=xe()(Sn,Nn==="left"&&`${Sn}-left`,Jn.className,{[`${Sn}-wrap`]:!!Zn});let Hn=ye;const ur=Ft===!0||Xn!==!1&&Ft!==!1;ur&&!st&&typeof ye=="string"&&ye.trim()&&(Hn=ye.replace(/[:|:]\s*$/,""));const lr=$n(ht);if(lr){const{icon:cr=pe.createElement(Je.Z,null)}=lr,vr=fn(lr,["icon"]),Cr=pe.createElement(rn.Z,Object.assign({},vr),pe.cloneElement(cr,{className:`${Ie}-item-tooltip`,title:"",onClick:or=>{or.preventDefault()},tabIndex:null}));Hn=pe.createElement(pe.Fragment,null,Hn,Cr)}const ir=Lt==="optional",er=typeof Lt=="function",tr=Lt===!1;er?Hn=Lt(Hn,{required:!!Qt}):ir&&!Qt&&(Hn=pe.createElement(pe.Fragment,null,Hn,pe.createElement("span",{className:`${Ie}-item-optional`,title:""},(hn==null?void 0:hn.optional)||((_t=jt.Z.Form)===null||_t===void 0?void 0:_t.optional))));let gr;tr?gr="hidden":(ir||er)&&(gr="optional");const mr=xe()({[`${Ie}-item-required`]:Qt,[`${Ie}-item-required-mark-${gr}`]:gr,[`${Ie}-item-no-colon`]:!ur});return pe.createElement(dn.Z,Object.assign({},Jn,{className:Pn}),pe.createElement("label",{htmlFor:Le,className:mr,title:typeof ye=="string"?ye:""},Hn))},wn=oe(29679),vn=oe(19248),Kn=oe(96512),gn=oe(58617);const Dn={success:wn.Z,warning:Kn.Z,error:vn.Z,validating:gn.Z};function nn(ge){let{children:Ie,errors:ye,warnings:Le,hasFeedback:nt,validateStatus:Nt,prefixCls:Ft,meta:Qt,noStyle:Lt}=ge;const ht=`${Ft}-item`,{feedbackIcons:st}=pe.useContext(re.q3),_t=Et(ye,Le,Qt,null,!!nt,Nt),{isFormItemInput:hn,status:ln,hasFeedback:cn,feedbackIcon:Zn}=pe.useContext(re.aM),Xn=pe.useMemo(()=>{var Jn;let Nn;if(nt){const Pn=nt!==!0&&nt.icons||st,Hn=_t&&((Jn=Pn==null?void 0:Pn({status:_t,errors:ye,warnings:Le}))===null||Jn===void 0?void 0:Jn[_t]),ur=_t&&Dn[_t];Nn=Hn!==!1&&ur?pe.createElement("span",{className:xe()(`${ht}-feedback-icon`,`${ht}-feedback-icon-${_t}`)},Hn||pe.createElement(ur,null)):null}const Sn={status:_t||"",errors:ye,warnings:Le,hasFeedback:!!nt,feedbackIcon:Nn,isFormItemInput:!0};return Lt&&(Sn.status=(_t!=null?_t:ln)||"",Sn.isFormItemInput=hn,Sn.hasFeedback=!!(nt!=null?nt:cn),Sn.feedbackIcon=nt!==void 0?Sn.feedbackIcon:Zn),Sn},[_t,nt,Lt,hn,ln]);return pe.createElement(re.aM.Provider,{value:Xn},Ie)}var yn=function(ge,Ie){var ye={};for(var Le in ge)Object.prototype.hasOwnProperty.call(ge,Le)&&Ie.indexOf(Le)<0&&(ye[Le]=ge[Le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Le=Object.getOwnPropertySymbols(ge);nt{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:ht.errors,Rr=Fn?ir:ht.warnings;return Et(wr,Rr,ht,"",!!st,Lt)}(),dr=xe()(Sn,ye,Le,{[`${Sn}-with-help`]:er||lr.length||ir.length,[`${Sn}-has-feedback`]:or&&st,[`${Sn}-has-success`]:or==="success",[`${Sn}-has-warning`]:or==="warning",[`${Sn}-has-error`]:or==="error",[`${Sn}-is-validating`]:or==="validating",[`${Sn}-hidden`]:_t,[`${Sn}-${Jn}`]:Jn});return pe.createElement("div",{className:dr,style:nt,ref:qn},pe.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"])),pe.createElement(pn,Object.assign({htmlFor:ln},ge,{requiredMark:Pn,required:cn!=null?cn:Zn,prefixCls:Ie,vertical:ur})),pe.createElement(De,Object.assign({},ge,ht,{errors:lr,warnings:ir,prefixCls:Ie,status:or,help:Nt,marginBottom:mr,onErrorVisibleChanged:vr}),pe.createElement(re.qI.Provider,{value:Xn},pe.createElement(nn,{prefixCls:Ie,meta:ht,errors:ht.errors,warnings:ht.warnings,hasFeedback:st,validateStatus:or},hn)))),!!mr&&pe.createElement("div",{className:`${Sn}-margin-offset`,style:{marginBottom:-mr}}))}const Tn="__SPLIT__",Yn=null;function zn(ge,Ie){const ye=Object.keys(ge),Le=Object.keys(Ie);return ye.length===Le.length&&ye.every(nt=>{const Nt=ge[nt],Ft=Ie[nt];return Nt===Ft||typeof Nt=="function"||typeof Ft=="function"})}const Bn=pe.memo(ge=>{let{children:Ie}=ge;return Ie},(ge,Ie)=>zn(ge.control,Ie.control)&&ge.update===Ie.update&&ge.childProps.length===Ie.childProps.length&&ge.childProps.every((ye,Le)=>ye===Ie.childProps[Le]));function _n(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Vn(ge){const{name:Ie,noStyle:ye,className:Le,dependencies:nt,prefixCls:Nt,shouldUpdate:Ft,rules:Qt,children:Lt,required:ht,label:st,messageVariables:_t,trigger:hn="onChange",validateTrigger:ln,hidden:cn,help:Zn,layout:Xn}=ge,{getPrefixCls:Jn}=pe.useContext(Dt.E_),{name:Nn}=pe.useContext(re.q3),Sn=Ke(Lt),Pn=typeof Sn=="function",Hn=pe.useContext(re.qI),{validateTrigger:ur}=pe.useContext(pt.FieldContext),qn=ln!==void 0?ln:ur,lr=Ie!=null,ir=Jn("form",Nt),er=(0,Re.Z)(ir),[tr,gr,mr]=Ue(ir,er),cr=(0,wt.ln)("Form.Item"),vr=pe.useContext(pt.ListContext),Cr=pe.useRef(null),[or,dr]=Wt({}),[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),ye&&Zn!==!1&&Hn){let Vt=fr.name;if(fr.destroy)Vt=Cr.current||Vt;else if(Gn!==void 0){const[qt,Xt]=Gn;Vt=[qt].concat((0,Xe.Z)(Xt)),Cr.current=Vt}Hn(fr,Vt)}},jr=(fr,Gn)=>{dr(Vt=>{const qt=Object.assign({},Vt),Bt=[].concat((0,Xe.Z)(fr.name.slice(0,-1)),(0,Xe.Z)(Gn)).join(Tn);return fr.destroy?delete qt[Bt]:qt[Bt]=fr,qt})},[Er,Br]=pe.useMemo(()=>{const fr=(0,Xe.Z)(Fn.errors),Gn=(0,Xe.Z)(Fn.warnings);return Object.values(or).forEach(Vt=>{fr.push.apply(fr,(0,Xe.Z)(Vt.errors||[])),Gn.push.apply(Gn,(0,Xe.Z)(Vt.warnings||[]))}),[fr,Gn]},[or,Fn.errors,Fn.warnings]),kr=Gt();function Lr(fr,Gn,Vt){return ye&&!cn?pe.createElement(nn,{prefixCls:ir,hasFeedback:ge.hasFeedback,validateStatus:ge.validateStatus,meta:Fn,errors:Er,warnings:Br,noStyle:!0},fr):pe.createElement(un,Object.assign({key:"row"},ge,{className:xe()(Le,mr,er,gr),prefixCls:ir,fieldId:Gn,isRequired:Vt,errors:Er,warnings:Br,meta:Fn,onSubItemMetaChange:jr,layout:Xn}),fr)}if(!lr&&!Pn&&!nt)return tr(Lr(Sn));let zr={};return typeof st=="string"?zr.label=st:Ie&&(zr.label=String(Ie)),_t&&(zr=Object.assign(Object.assign({},zr),_t)),tr(pe.createElement(pt.Field,Object.assign({},ge,{messageVariables:zr,trigger:hn,validateTrigger:qn,onMetaChange:Rr}),(fr,Gn,Vt)=>{const qt=et(Ie).length&&Gn?Gn.name:[],Xt=en(qt,Nn),Bt=ht!==void 0?ht:!!(Qt!=null&&Qt.some(Ut=>{if(Ut&&typeof Ut=="object"&&Ut.required&&!Ut.warningOnly)return!0;if(typeof Ut=="function"){const Kt=Ut(Vt);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&&(!(Ft||nt)||lr))){if(!(nt&&!Pn&&!lr))if(pe.isValidElement(Sn)){const Ut=Object.assign(Object.assign({},Sn.props),En);if(Ut.id||(Ut.id=Xt),Zn||Er.length>0||Br.length>0||ge.extra){const Cn=[];(Zn||Er.length>0)&&Cn.push(`${Xt}_help`),ge.extra&&Cn.push(`${Xt}_extra`),Ut["aria-describedby"]=Cn.join(" ")}Er.length>0&&(Ut["aria-invalid"]="true"),Bt&&(Ut["aria-required"]="true"),(0,we.Yr)(Sn)&&(Ut.ref=kr(qt,Sn)),new Set([].concat((0,Xe.Z)(et(hn)),(0,Xe.Z)(et(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:Ie,children:ye}=ge,Le=Ct(ge,["prefixCls","children"]);const{getPrefixCls:nt}=pe.useContext(Dt.E_),Nt=nt("form",Ie),Ft=pe.useMemo(()=>({prefixCls:Nt,status:"error"}),[Nt]);return pe.createElement(pt.List,Object.assign({},Le),(Qt,Lt,ht)=>pe.createElement(re.Rk.Provider,{value:Ft},ye(Qt.map(st=>Object.assign(Object.assign({},st),{fieldKey:st.key})),Lt,{errors:ht.errors,warnings:ht.warnings})))};function Un(){const{form:ge}=pe.useContext(re.q3);return ge}const Me=se;Me.Item=jn,Me.List=In,Me.ErrorList=Pe,Me.useForm=it,Me.useFormInstance=Un,Me.useWatch=pt.useWatch,Me.Provider=re.RV,Me.create=()=>{};var $e=Me},4875:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return bn}});var re=oe(59301),Xe=oe(84105),pe=oe(87395),We=oe(92310),xe=oe.n(We),Ce=oe(60499),Se=oe(18642),Re=oe(43749),Ee=oe(72190),fe=oe(42244),Ge=oe(38705),be=oe(17212);function ot(){return typeof BigInt=="function"}function He(De){return!De&&De!==0&&!Number.isNaN(De)||!String(De).trim()}function ke(De){var Je=De.trim(),yt=Je.startsWith("-");yt&&(Je=Je.slice(1)),Je=Je.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Je.startsWith(".")&&(Je="0".concat(Je));var jt=Je||"0",rn=jt.split("."),fn=rn[0]||"0",$n=rn[1]||"0";fn==="0"&&$n==="0"&&(yt=!1);var An=yt?"-":"";return{negative:yt,negativeStr:An,trimStr:jt,integerStr:fn,decimalStr:$n,fullStr:"".concat(An).concat(jt)}}function ze(De){var Je=String(De);return!Number.isNaN(Number(Je))&&Je.includes("e")}function Oe(De){var Je=String(De);if(ze(De)){var yt=Number(Je.slice(Je.indexOf("e-")+2)),jt=Je.match(/\.(\d+)/);return jt!=null&&jt[1]&&(yt+=jt[1].length),yt}return Je.includes(".")&&xt(Je)?Je.length-Je.indexOf(".")-1:0}function lt(De){var Je=String(De);if(ze(De)){if(De>Number.MAX_SAFE_INTEGER)return String(ot()?BigInt(De).toString():Number.MAX_SAFE_INTEGER);if(De0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":ke("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),De}(),ut=function(){function De(Je){if((0,Ge.Z)(this,De),(0,Se.Z)(this,"origin",""),(0,Se.Z)(this,"number",void 0),(0,Se.Z)(this,"empty",void 0),He(Je)){this.empty=!0;return}this.origin=String(Je),this.number=Number(Je)}return(0,be.Z)(De,[{key:"negate",value:function(){return new De(-this.toNumber())}},{key:"add",value:function(yt){if(this.isInvalidate())return new De(yt);var jt=Number(yt);if(Number.isNaN(jt))return this;var rn=this.number+jt;if(rn>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(rnNumber.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(rn0&&arguments[0]!==void 0?arguments[0]:!0;return yt?this.isInvalidate()?"":lt(this.number):this.origin}}]),De}();function tt(De){return ot()?new at(De):new ut(De)}function dt(De,Je,yt){var jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(De==="")return"";var rn=ke(De),fn=rn.negativeStr,$n=rn.integerStr,An=rn.decimalStr,pn="".concat(Je).concat(An),wn="".concat(fn).concat($n);if(yt>=0){var vn=Number(An[yt]);if(vn>=5&&!jt){var Kn=tt(De).add("".concat(fn,"0.").concat("0".repeat(yt)).concat(10-vn));return dt(Kn.toString(),Je,yt,jt)}return yt===0?wn:"".concat(wn).concat(Je).concat(An.padEnd(yt,"0").slice(0,yt))}return pn===".0"?wn:"".concat(wn).concat(pn)}var Ze=tt,kt=oe(36901),qe=oe(34280);function _e(De,Je){return typeof Proxy!="undefined"&&De?new Proxy(De,{get:function(jt,rn){if(Je[rn])return Je[rn];var fn=jt[rn];return typeof fn=="function"?fn.bind(jt):fn}}):De}var vt=oe(8654),Ne=oe(48736);function Ue(De,Je){var yt=(0,re.useRef)(null);function jt(){try{var fn=De.selectionStart,$n=De.selectionEnd,An=De.value,pn=An.substring(0,fn),wn=An.substring($n);yt.current={start:fn,end:$n,value:An,beforeTxt:pn,afterTxt:wn}}catch(vn){}}function rn(){if(De&&yt.current&&Je)try{var fn=De.value,$n=yt.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-yt.current.afterTxt.length;else{var Kn=An[wn-1],gn=fn.indexOf(Kn,wn-1);gn!==-1&&(vn=gn+1)}De.setSelectionRange(vn,vn)}catch(Dn){(0,Ne.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Dn.message))}}return[jt,rn]}var Ye=oe(49658),me=function(){var Je=(0,re.useState)(!1),yt=(0,Ee.Z)(Je,2),jt=yt[0],rn=yt[1];return(0,qe.Z)(function(){rn((0,Ye.Z)())},[]),jt},St=me,Pe=oe(16089),pt=200,Dt=600;function ve(De){var Je=De.prefixCls,yt=De.upNode,jt=De.downNode,rn=De.upDisabled,fn=De.downDisabled,$n=De.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,pt)}An.current=setTimeout(_n,Dt)};re.useEffect(function(){return function(){vn(),pn.current.forEach(function(Yn){return Pe.Z.cancel(Yn)})}},[]);var gn=St();if(gn)return null;var Dn="".concat(Je,"-handler"),nn=xe()(Dn,"".concat(Dn,"-up"),(0,Se.Z)({},"".concat(Dn,"-up-disabled"),rn)),yn=xe()(Dn,"".concat(Dn,"-down"),(0,Se.Z)({},"".concat(Dn,"-down-disabled"),fn)),un=function(){return pn.current.push((0,Pe.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":rn,className:nn}),yt||re.createElement("span",{unselectable:"on",className:"".concat(Je,"-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}),jt||re.createElement("span",{unselectable:"on",className:"".concat(Je,"-handler-down-inner")})))}function de(De){var Je=typeof De=="number"?lt(De):ke(De).fullStr,yt=Je.includes(".");return yt?ke(Je.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:De+"0"}var rt=oe(30292),Tt=function(){var De=(0,re.useRef)(0),Je=function(){Pe.Z.cancel(De.current)};return(0,re.useEffect)(function(){return Je},[]),function(yt){Je(),De.current=(0,Pe.Z)(function(){yt()})}},ft=["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"],Ae=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Qe=function(Je,yt){return Je||yt.isEmpty()?yt.toString():yt.toNumber()},et=function(Je){var yt=Ze(Je);return yt.isInvalidate()?null:yt},en=re.forwardRef(function(De,Je){var yt=De.prefixCls,jt=De.className,rn=De.style,fn=De.min,$n=De.max,An=De.step,pn=An===void 0?1:An,wn=De.defaultValue,vn=De.value,Kn=De.disabled,gn=De.readOnly,Dn=De.upHandler,nn=De.downHandler,yn=De.keyboard,un=De.changeOnWheel,Tn=un===void 0?!1:un,Yn=De.controls,zn=Yn===void 0?!0:Yn,Bn=De.classNames,_n=De.stringMode,Vn=De.parser,Qn=De.formatter,jn=De.precision,Ct=De.decimalSeparator,Zt=De.onChange,In=De.onInput,Un=De.onPressEnter,Me=De.onStep,$e=De.changeOnBlur,ge=$e===void 0?!0:$e,Ie=De.domRef,ye=(0,fe.Z)(De,ft),Le="".concat(yt,"-input"),nt=re.useRef(null),Nt=re.useState(!1),Ft=(0,Ee.Z)(Nt,2),Qt=Ft[0],Lt=Ft[1],ht=re.useRef(!1),st=re.useRef(!1),_t=re.useRef(!1),hn=re.useState(function(){return Ze(vn!=null?vn:wn)}),ln=(0,Ee.Z)(hn,2),cn=ln[0],Zn=ln[1];function Xn(Xt){vn===void 0&&Zn(Xt)}var Jn=re.useCallback(function(Xt,Bt){if(!Bt)return jn>=0?jn:Math.max(Oe(Xt),Oe(pn))},[jn,pn]),Nn=re.useCallback(function(Xt){var Bt=String(Xt);if(Vn)return Vn(Bt);var En=Bt;return Ct&&(En=En.replace(Ct,".")),En.replace(/[^\w.-]+/g,"")},[Vn,Ct]),Sn=re.useRef(""),Pn=re.useCallback(function(Xt,Bt){if(Qn)return Qn(Xt,{userTyping:Bt,input:String(Sn.current)});var En=typeof Xt=="number"?lt(Xt):Xt;if(!Bt){var On=Jn(En,Bt);if(xt(En)&&(Ct||On>=0)){var Ut=Ct||".";En=dt(En,Ut,On)}}return En},[Qn,Jn,Ct]),Hn=re.useState(function(){var Xt=wn!=null?wn:vn;return cn.isInvalidate()&&["string","number"].includes((0,Re.Z)(Xt))?Number.isNaN(Xt)?"":Xt:Pn(cn.toString(),!1)}),ur=(0,Ee.Z)(Hn,2),qn=ur[0],lr=ur[1];Sn.current=qn;function ir(Xt,Bt){lr(Pn(Xt.isInvalidate()?Xt.toString(!1):Xt.toString(!Bt),Bt))}var er=re.useMemo(function(){return et($n)},[$n,jn]),tr=re.useMemo(function(){return et(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=Ue(nt.current,Qt),vr=(0,Ee.Z)(cr,2),Cr=vr[0],or=vr[1],dr=function(Bt){return er&&!Bt.lessEquals(er)?er:tr&&!tr.lessEquals(Bt)?tr:null},Fn=function(Bt){return!dr(Bt)},wr=function(Bt,En){var On=Bt,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=Ze(dt(Kt,".",xn)),Fn(On)||(On=Ze(dt(Kt,".",xn,!0)))),On.equals(cn)||(Xn(On),Zt==null||Zt(On.isEmpty()?null:Qe(_n,On)),vn===void 0&&ir(On,En)),On}return cn},Rr=Tt(),jr=function Xt(Bt){if(Cr(),Sn.current=Bt,lr(Bt),!st.current){var En=Nn(Bt),On=Ze(En);On.isNaN()||wr(On,!0)}In==null||In(Bt),Rr(function(){var Ut=Bt;Vn||(Ut=Bt.replace(/。/g,".")),Ut!==Bt&&Xt(Ut)})},Er=function(){st.current=!0},Br=function(){st.current=!1,jr(nt.current.value)},kr=function(Bt){jr(Bt.target.value)},Lr=function(Bt){var En;if(!(Bt&&gr||!Bt&&mr)){ht.current=!1;var On=Ze(_t.current?de(pn):pn);Bt||(On=On.negate());var Ut=(cn||Ze(0)).add(On.toString()),Kt=wr(Ut,!1);Me==null||Me(Qe(_n,Kt),{offset:_t.current?de(pn):pn,type:Bt?"up":"down"}),(En=nt.current)===null||En===void 0||En.focus()}},zr=function(Bt){var En=Ze(Nn(qn)),On;En.isNaN()?On=wr(cn,Bt):On=wr(En,Bt),vn!==void 0?ir(cn,!1):On.isNaN()||ir(On,!1)},fr=function(){ht.current=!0},Gn=function(Bt){var En=Bt.key,On=Bt.shiftKey;ht.current=!0,_t.current=On,En==="Enter"&&(st.current||(ht.current=!1),zr(!1),Un==null||Un(Bt)),yn!==!1&&!st.current&&["Up","ArrowUp","Down","ArrowDown"].includes(En)&&(Lr(En==="Up"||En==="ArrowUp"),Bt.preventDefault())},Vt=function(){ht.current=!1,_t.current=!1};re.useEffect(function(){if(Tn&&Qt){var Xt=function(On){Lr(On.deltaY<0),On.preventDefault()},Bt=nt.current;if(Bt)return Bt.addEventListener("wheel",Xt,{passive:!1}),function(){return Bt.removeEventListener("wheel",Xt)}}});var qt=function(){ge&&zr(!1),Lt(!1),ht.current=!1};return(0,qe.o)(function(){cn.isInvalidate()||ir(cn,!1)},[jn,Qn]),(0,qe.o)(function(){var Xt=Ze(vn);Zn(Xt);var Bt=Ze(Nn(qn));(!Xt.equals(Bt)||!ht.current||Qn)&&ir(Xt,ht.current)},[vn]),(0,qe.o)(function(){Qn&&or()},[qn]),re.createElement("div",{ref:Ie,className:xe()(yt,jt,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(yt,"-focused"),Qt),"".concat(yt,"-disabled"),Kn),"".concat(yt,"-readonly"),gn),"".concat(yt,"-not-a-number"),cn.isNaN()),"".concat(yt,"-out-of-range"),!cn.isInvalidate()&&!Fn(cn))),style:rn,onFocus:function(){Lt(!0)},onBlur:qt,onKeyDown:Gn,onKeyUp:Vt,onCompositionStart:Er,onCompositionEnd:Br,onBeforeInput:fr},zn&&re.createElement(ve,{prefixCls:yt,upNode:Dn,downNode:nn,upDisabled:gr,downDisabled:mr,onStep:Lr}),re.createElement("div",{className:"".concat(Le,"-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},ye,{ref:(0,vt.sQ)(nt,Je),className:Le,value:qn,onChange:kr,disabled:Kn,readOnly:gn}))))}),Et=re.forwardRef(function(De,Je){var yt=De.disabled,jt=De.style,rn=De.prefixCls,fn=rn===void 0?"rc-input-number":rn,$n=De.value,An=De.prefix,pn=De.suffix,wn=De.addonBefore,vn=De.addonAfter,Kn=De.className,gn=De.classNames,Dn=(0,fe.Z)(De,Ae),nn=re.useRef(null),yn=re.useRef(null),un=re.useRef(null),Tn=function(zn){un.current&&(0,rt.nH)(un.current,zn)};return re.useImperativeHandle(Je,function(){return _e(un.current,{focus:Tn,nativeElement:nn.current.nativeElement||yn.current})}),re.createElement(kt.BaseInput,{className:Kn,triggerFocus:Tn,prefixCls:fn,value:$n,disabled:yt,style:jt,prefix:An,suffix:pn,addonAfter:vn,addonBefore:wn,classNames:gn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:nn},re.createElement(en,(0,Ce.Z)({prefixCls:fn,disabled:yt,ref:un,domRef:yn,className:gn==null?void 0:gn.input},Dn)))}),$t=Et,Ve=$t,Ot=oe(62487),it=oe(82855),ae=oe(48755),ee=oe(60840),z=oe(2171),ie=oe(83397),se=oe(31756),ne=oe(56553),we=oe(24971),Be=oe(70045),wt=oe(36237),Fe=oe(53075),Ke=oe(64910),mt=oe(39082),Pt=oe(63356),Mt=oe(56119),Wt=oe(16931),Gt=oe(51636),At=oe(17835);const sn=De=>{var Je;const yt=(Je=De.handleVisible)!==null&&Je!==void 0?Je:"auto",jt=De.controlHeightSM-De.lineWidth*2;return Object.assign(Object.assign({},(0,Ke.T)(De)),{controlWidth:90,handleWidth:jt,handleFontSize:De.fontSize/2,handleVisible:yt,handleActiveBg:De.colorFillAlter,handleBg:De.colorBgContainer,filledHandleBg:new At.FastColor(De.colorFillSecondary).onBackground(De.colorBgContainer).toHexString(),handleHoverColor:De.colorPrimary,handleBorderColor:De.colorBorder,handleOpacity:yt===!0?1:0,handleVisibleWidth:yt===!0?jt:0})},Jt=(De,Je)=>{let{componentCls:yt,borderRadiusSM:jt,borderRadiusLG:rn}=De;const fn=Je==="lg"?rn:jt;return{[`&-${Je}`]:{[`${yt}-handler-wrap`]:{borderStartEndRadius:fn,borderEndEndRadius:fn},[`${yt}-handler-up`]:{borderStartEndRadius:fn},[`${yt}-handler-down`]:{borderEndEndRadius:fn}}}},on=De=>{const{componentCls:Je,lineWidth:yt,lineType:jt,borderRadius:rn,inputFontSizeSM:fn,inputFontSizeLG:$n,controlHeightLG:An,controlHeightSM:pn,colorError:wn,paddingInlineSM:vn,paddingBlockSM:Kn,paddingBlockLG:gn,paddingInlineLG:Dn,colorTextDescription:nn,motionDurationMid:yn,handleHoverColor:un,handleOpacity:Tn,paddingInline:Yn,paddingBlock:zn,handleBg:Bn,handleActiveBg:_n,colorTextDisabled:Vn,borderRadiusSM:Qn,borderRadiusLG:jn,controlWidth:Ct,handleBorderColor:Zt,filledHandleBg:In,lineHeightLG:Un,calc:Me}=De;return[{[Je]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(De)),(0,Fe.ik)(De)),{display:"inline-block",width:Ct,margin:0,padding:0,borderRadius:rn}),(0,mt.qG)(De,{[`${Je}-handler-wrap`]:{background:Bn,[`${Je}-handler-down`]:{borderBlockStart:`${(0,wt.unit)(yt)} ${jt} ${Zt}`}}})),(0,mt.H8)(De,{[`${Je}-handler-wrap`]:{background:In,[`${Je}-handler-down`]:{borderBlockStart:`${(0,wt.unit)(yt)} ${jt} ${Zt}`}},"&:focus-within":{[`${Je}-handler-wrap`]:{background:Bn}}})),(0,mt.vc)(De,{[`${Je}-handler-wrap`]:{background:Bn,[`${Je}-handler-down`]:{borderBlockStart:`${(0,wt.unit)(yt)} ${jt} ${Zt}`}}})),(0,mt.Mu)(De)),{"&-rtl":{direction:"rtl",[`${Je}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:$n,lineHeight:Un,borderRadius:jn,[`input${Je}-input`]:{height:Me(An).sub(Me(yt).mul(2)).equal(),padding:`${(0,wt.unit)(gn)} ${(0,wt.unit)(Dn)}`}},"&-sm":{padding:0,fontSize:fn,borderRadius:Qn,[`input${Je}-input`]:{height:Me(pn).sub(Me(yt).mul(2)).equal(),padding:`${(0,wt.unit)(Kn)} ${(0,wt.unit)(vn)}`}},"&-out-of-range":{[`${Je}-input-wrap`]:{input:{color:wn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(De)),(0,Fe.s7)(De)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Je}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Je}-group-addon`]:{borderRadius:jn,fontSize:De.fontSizeLG}},"&-sm":{[`${Je}-group-addon`]:{borderRadius:Qn}}},(0,mt.ir)(De)),(0,mt.S5)(De)),{[`&:not(${Je}-compact-first-item):not(${Je}-compact-last-item)${Je}-compact-item`]:{[`${Je}, ${Je}-group-addon`]:{borderRadius:0}},[`&:not(${Je}-compact-last-item)${Je}-compact-first-item`]:{[`${Je}, ${Je}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Je}-compact-first-item)${Je}-compact-last-item`]:{[`${Je}, ${Je}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Je}-input`]:{cursor:"not-allowed"},[Je]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(De)),{width:"100%",padding:`${(0,wt.unit)(zn)} ${(0,wt.unit)(Yn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:rn,outline:0,transition:`all ${yn} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Fe.nz)(De.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Je}-handler-wrap, &-focused ${Je}-handler-wrap`]:{width:De.handleWidth,opacity:1}})},{[Je]:Object.assign(Object.assign(Object.assign({[`${Je}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:De.handleVisibleWidth,opacity:Tn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:rn,borderEndEndRadius:rn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${yn}`,overflow:"hidden",[`${Je}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${Je}-handler-up-inner, ${Je}-handler-down-inner `]:{marginInlineEnd:0,fontSize:De.handleFontSize}}},[`${Je}-handler`]:{height:"50%",overflow:"hidden",color:nn,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,wt.unit)(yt)} ${jt} ${Zt}`,transition:`all ${yn} linear`,"&:active":{background:_n},"&:hover":{height:"60%",[` ${Je}-handler-up-inner, ${Je}-handler-down-inner `]:{color:un}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Pt.Ro)()),{color:nn,transition:`all ${yn} linear`,userSelect:"none"})},[`${Je}-handler-up`]:{borderStartEndRadius:rn},[`${Je}-handler-down`]:{borderEndEndRadius:rn}},Jt(De,"lg")),Jt(De,"sm")),{"&-disabled, &-readonly":{[`${Je}-handler-wrap`]:{display:"none"},[`${Je}-input`]:{color:"inherit"}},[` ${Je}-handler-up-disabled, ${Je}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${Je}-handler-up-disabled:hover &-handler-up-inner, ${Je}-handler-down-disabled:hover &-handler-down-inner `]:{color:Vn}})}]},gt=De=>{const{componentCls:Je,paddingBlock:yt,paddingInline:jt,inputAffixPadding:rn,controlWidth:fn,borderRadiusLG:$n,borderRadiusSM:An,paddingInlineLG:pn,paddingInlineSM:wn,paddingBlockLG:vn,paddingBlockSM:Kn,motionDurationMid:gn}=De;return{[`${Je}-affix-wrapper`]:Object.assign(Object.assign({[`input${Je}-input`]:{padding:`${(0,wt.unit)(yt)} 0`}},(0,Fe.ik)(De)),{position:"relative",display:"inline-flex",alignItems:"center",width:fn,padding:0,paddingInlineStart:jt,"&-lg":{borderRadius:$n,paddingInlineStart:pn,[`input${Je}-input`]:{padding:`${(0,wt.unit)(vn)} 0`}},"&-sm":{borderRadius:An,paddingInlineStart:wn,[`input${Je}-input`]:{padding:`${(0,wt.unit)(Kn)} 0`}},[`&:not(${Je}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Je}-disabled`]:{background:"transparent"},[`> div${Je}`]:{width:"100%",border:"none",outline:"none",[`&${Je}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Je}-handler-wrap`]:{zIndex:2},[Je]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:rn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:jt,marginInlineStart:rn,transition:`margin ${gn}`}},[`&:hover ${Je}-handler-wrap, &-focused ${Je}-handler-wrap`]:{width:De.handleWidth,opacity:1},[`&:not(${Je}-affix-wrapper-without-controls):hover ${Je}-suffix`]:{marginInlineEnd:De.calc(De.handleWidth).add(jt).equal()}})}};var dn=(0,Wt.I$)("InputNumber",De=>{const Je=(0,Gt.mergeToken)(De,(0,Ke.e)(De));return[on(Je),gt(Je),(0,Mt.c)(Je)]},sn,{unitless:{handleOpacity:!0}}),zt=function(De,Je){var yt={};for(var jt in De)Object.prototype.hasOwnProperty.call(De,jt)&&Je.indexOf(jt)<0&&(yt[jt]=De[jt]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rn=0,jt=Object.getOwnPropertySymbols(De);rn{const{getPrefixCls:yt,direction:jt}=re.useContext(ae.E_),rn=re.useRef(null);re.useImperativeHandle(Je,()=>rn.current);const{className:fn,rootClassName:$n,size:An,disabled:pn,prefixCls:wn,addonBefore:vn,addonAfter:Kn,prefix:gn,suffix:Dn,bordered:nn,readOnly:yn,status:un,controls:Tn,variant:Yn}=De,zn=zt(De,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Bn=yt("input-number",wn),_n=(0,ie.Z)(Bn),[Vn,Qn,jn]=dn(Bn,_n),{compactSize:Ct,compactItemClassnames:Zt}=(0,Be.ri)(Bn,jt);let In=re.createElement(pe.Z,{className:`${Bn}-handler-up-inner`}),Un=re.createElement(Xe.Z,{className:`${Bn}-handler-down-inner`});const Me=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:$e,status:ge,isFormItemInput:Ie,feedbackIcon:ye}=re.useContext(ne.aM),Le=(0,it.F)(ge,un),nt=(0,se.Z)(ln=>{var cn;return(cn=An!=null?An:Ct)!==null&&cn!==void 0?cn:ln}),Nt=re.useContext(z.Z),Ft=pn!=null?pn:Nt,[Qt,Lt]=(0,we.Z)("inputNumber",Yn,nn),ht=$e&&re.createElement(re.Fragment,null,ye),st=xe()({[`${Bn}-lg`]:nt==="large",[`${Bn}-sm`]:nt==="small",[`${Bn}-rtl`]:jt==="rtl",[`${Bn}-in-form-item`]:Ie},Qn),_t=`${Bn}-group`,hn=re.createElement(Ve,Object.assign({ref:rn,disabled:Ft,className:xe()(jn,_n,fn,$n,Zt),upHandler:In,downHandler:Un,prefixCls:Bn,readOnly:yn,controls:Me,prefix:gn,suffix:ht||Dn,addonBefore:vn&&re.createElement(Ot.Z,{form:!0,space:!0},vn),addonAfter:Kn&&re.createElement(Ot.Z,{form:!0,space:!0},Kn),classNames:{input:st,variant:xe()({[`${Bn}-${Qt}`]:Lt},(0,it.Z)(Bn,Le,$e)),affixWrapper:xe()({[`${Bn}-affix-wrapper-sm`]:nt==="small",[`${Bn}-affix-wrapper-lg`]:nt==="large",[`${Bn}-affix-wrapper-rtl`]:jt==="rtl",[`${Bn}-affix-wrapper-without-controls`]:Tn===!1||Ft},Qn),wrapper:xe()({[`${_t}-rtl`]:jt==="rtl"},Qn),groupWrapper:xe()({[`${Bn}-group-wrapper-sm`]:nt==="small",[`${Bn}-group-wrapper-lg`]:nt==="large",[`${Bn}-group-wrapper-rtl`]:jt==="rtl",[`${Bn}-group-wrapper-${Qt}`]:Lt},(0,it.Z)(`${Bn}-group-wrapper`,Le,$e),Qn)}},zn));return Vn(hn)}),an=Yt,Ln=De=>re.createElement(ee.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},re.createElement(Yt,Object.assign({},De)));an._InternalPanelDoNotUseOrYouWillBeFired=Ln;var bn=an},49397:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return ut}});var re=oe(59301),Xe=oe(92310),pe=oe.n(Xe),We=oe(36901),xe=oe(8654),Ce=oe(62487),Se=oe(86013),Re=oe(82855),Ee=oe(48755),fe=oe(2171),Ge=oe(83397),be=oe(31756),ot=oe(56553),He=oe(24971),ke=oe(70045),ze=oe(23826),Oe=oe(53075);function lt(tt){return!!(tt.prefix||tt.suffix||tt.allowClear||tt.showCount)}var xt=function(tt,dt){var Ze={};for(var kt in tt)Object.prototype.hasOwnProperty.call(tt,kt)&&dt.indexOf(kt)<0&&(Ze[kt]=tt[kt]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,kt=Object.getOwnPropertySymbols(tt);qe{const{prefixCls:Ze,bordered:kt=!0,status:qe,size:_e,disabled:vt,onBlur:Ne,onFocus:Ue,suffix:Ye,allowClear:me,addonAfter:St,addonBefore:Pe,className:pt,style:Dt,styles:ve,rootClassName:de,onChange:rt,classNames:Tt,variant:ft}=tt,Ae=xt(tt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Qe,direction:et,allowClear:en,autoComplete:Et,className:$t,style:Ve,classNames:Ot,styles:it}=(0,Ee.dj)("input"),ae=Qe("input",Ze),ee=(0,re.useRef)(null),z=(0,Ge.Z)(ae),[ie,se,ne]=(0,Oe.TI)(ae,de),[we]=(0,Oe.ZP)(ae,z),{compactSize:Be,compactItemClassnames:wt}=(0,ke.ri)(ae,et),Fe=(0,be.Z)(bn=>{var De;return(De=_e!=null?_e:Be)!==null&&De!==void 0?De:bn}),Ke=re.useContext(fe.Z),mt=vt!=null?vt:Ke,{status:Pt,hasFeedback:Mt,feedbackIcon:Wt}=(0,re.useContext)(ot.aM),Gt=(0,Re.F)(Pt,qe),At=lt(tt)||!!Mt,sn=(0,re.useRef)(At),Jt=(0,ze.Z)(ee,!0),on=bn=>{Jt(),Ne==null||Ne(bn)},gt=bn=>{Jt(),Ue==null||Ue(bn)},dn=bn=>{Jt(),rt==null||rt(bn)},zt=(Mt||Ye)&&re.createElement(re.Fragment,null,Ye,Mt&&Wt),Yt=(0,Se.Z)(me!=null?me:en),[an,Ln]=(0,He.Z)("input",ft,kt);return ie(we(re.createElement(We.default,Object.assign({ref:(0,xe.sQ)(dt,ee),prefixCls:ae,autoComplete:Et},Ae,{disabled:mt,onBlur:on,onFocus:gt,style:Object.assign(Object.assign({},Ve),Dt),styles:Object.assign(Object.assign({},it),ve),suffix:zt,allowClear:Yt,className:pe()(pt,de,ne,z,wt,$t),onChange:dn,addonBefore:Pe&&re.createElement(Ce.Z,{form:!0,space:!0},Pe),addonAfter:St&&re.createElement(Ce.Z,{form:!0,space:!0},St),classNames:Object.assign(Object.assign(Object.assign({},Tt),Ot),{input:pe()({[`${ae}-sm`]:Fe==="small",[`${ae}-lg`]:Fe==="large",[`${ae}-rtl`]:et==="rtl"},Tt==null?void 0:Tt.input,Ot.input,se),variant:pe()({[`${ae}-${an}`]:Ln},(0,Re.Z)(ae,Gt)),affixWrapper:pe()({[`${ae}-affix-wrapper-sm`]:Fe==="small",[`${ae}-affix-wrapper-lg`]:Fe==="large",[`${ae}-affix-wrapper-rtl`]:et==="rtl"},se),wrapper:pe()({[`${ae}-group-rtl`]:et==="rtl"},se),groupWrapper:pe()({[`${ae}-group-wrapper-sm`]:Fe==="small",[`${ae}-group-wrapper-lg`]:Fe==="large",[`${ae}-group-wrapper-rtl`]:et==="rtl",[`${ae}-group-wrapper-${an}`]:Ln},(0,Re.Z)(`${ae}-group-wrapper`,Gt,Mt),se)})}))))})},79809:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return dt}});var re=oe(59301),Xe=oe(92310),pe=oe.n(Xe),We=oe(22711),xe=oe(86013),Ce=oe(82855),Se=oe(48755),Re=oe(2171),Ee=oe(83397),fe=oe(31756),Ge=oe(56553),be=oe(24971),ot=oe(70045),He=oe(30292),ke=oe(53075),ze=oe(16931),Oe=oe(51636),lt=oe(64910);const xt=Ze=>{const{componentCls:kt,paddingLG:qe}=Ze,_e=`${kt}-textarea`;return{[`textarea${kt}`]:{maxWidth:"100%",height:"auto",minHeight:Ze.controlHeight,lineHeight:Ze.lineHeight,verticalAlign:"bottom",transition:`all ${Ze.motionDurationSlow}`,resize:"vertical",[`&${kt}-mouse-active`]:{transition:`all ${Ze.motionDurationSlow}, height 0s, width 0s`}},[`${kt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[_e]:{position:"relative","&-show-count":{[`> ${kt}`]:{height:"100%"},[`${kt}-data-count`]:{position:"absolute",bottom:Ze.calc(Ze.fontSize).mul(Ze.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Ze.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` &-allow-clear > ${kt}, &-affix-wrapper${_e}-has-feedback ${kt} `]:{paddingInlineEnd:qe},[`&-affix-wrapper${kt}-affix-wrapper`]:{padding:0,[`> textarea${kt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Ze.calc(Ze.controlHeight).sub(Ze.calc(Ze.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${kt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${kt}-clear-icon`]:{position:"absolute",insetInlineEnd:Ze.paddingInline,insetBlockStart:Ze.paddingXS},[`${_e}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Ze.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${kt}-affix-wrapper-sm`]:{[`${kt}-suffix`]:{[`${kt}-clear-icon`]:{insetInlineEnd:Ze.paddingInlineSM}}}}}};var at=(0,ze.I$)(["Input","TextArea"],Ze=>{const kt=(0,Oe.mergeToken)(Ze,(0,lt.e)(Ze));return[xt(kt)]},lt.T,{resetFont:!1}),ut=function(Ze,kt){var qe={};for(var _e in Ze)Object.prototype.hasOwnProperty.call(Ze,_e)&&kt.indexOf(_e)<0&&(qe[_e]=Ze[_e]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,_e=Object.getOwnPropertySymbols(Ze);vt<_e.length;vt++)kt.indexOf(_e[vt])<0&&Object.prototype.propertyIsEnumerable.call(Ze,_e[vt])&&(qe[_e[vt]]=Ze[_e[vt]]);return qe},dt=(0,re.forwardRef)((Ze,kt)=>{var qe;const{prefixCls:_e,bordered:vt=!0,size:Ne,disabled:Ue,status:Ye,allowClear:me,classNames:St,rootClassName:Pe,className:pt,style:Dt,styles:ve,variant:de,showCount:rt,onMouseDown:Tt,onResize:ft}=Ze,Ae=ut(Ze,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Qe,direction:et,allowClear:en,autoComplete:Et,className:$t,style:Ve,classNames:Ot,styles:it}=(0,Se.dj)("textArea"),ae=re.useContext(Re.Z),ee=Ue!=null?Ue:ae,{status:z,hasFeedback:ie,feedbackIcon:se}=re.useContext(Ge.aM),ne=(0,Ce.F)(z,Ye),we=re.useRef(null);re.useImperativeHandle(kt,()=>{var Ln;return{resizableTextArea:(Ln=we.current)===null||Ln===void 0?void 0:Ln.resizableTextArea,focus:bn=>{var De,Je;(0,He.nH)((Je=(De=we.current)===null||De===void 0?void 0:De.resizableTextArea)===null||Je===void 0?void 0:Je.textArea,bn)},blur:()=>{var bn;return(bn=we.current)===null||bn===void 0?void 0:bn.blur()}}});const Be=Qe("input",_e),wt=(0,Ee.Z)(Be),[Fe,Ke,mt]=(0,ke.TI)(Be,Pe),[Pt]=at(Be,wt),{compactSize:Mt,compactItemClassnames:Wt}=(0,ot.ri)(Be,et),Gt=(0,fe.Z)(Ln=>{var bn;return(bn=Ne!=null?Ne:Mt)!==null&&bn!==void 0?bn:Ln}),[At,sn]=(0,be.Z)("textArea",de,vt),Jt=(0,xe.Z)(me!=null?me:en),[on,gt]=re.useState(!1),[dn,zt]=re.useState(!1),Yt=Ln=>{gt(!0),Tt==null||Tt(Ln);const bn=()=>{gt(!1),document.removeEventListener("mouseup",bn)};document.addEventListener("mouseup",bn)},an=Ln=>{var bn,De;if(ft==null||ft(Ln),on&&typeof getComputedStyle=="function"){const Je=(De=(bn=we.current)===null||bn===void 0?void 0:bn.nativeElement)===null||De===void 0?void 0:De.querySelector("textarea");Je&&getComputedStyle(Je).resize==="both"&&zt(!0)}};return Fe(Pt(re.createElement(We.default,Object.assign({autoComplete:Et},Ae,{style:Object.assign(Object.assign({},Ve),Dt),styles:Object.assign(Object.assign({},it),ve),disabled:ee,allowClear:Jt,className:pe()(mt,wt,pt,Pe,Wt,$t,dn&&`${Be}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},St),Ot),{textarea:pe()({[`${Be}-sm`]:Gt==="small",[`${Be}-lg`]:Gt==="large"},Ke,St==null?void 0:St.textarea,Ot.textarea,on&&`${Be}-mouse-active`),variant:pe()({[`${Be}-${At}`]:sn},(0,Ce.Z)(Be,ne)),affixWrapper:pe()(`${Be}-textarea-affix-wrapper`,{[`${Be}-affix-wrapper-rtl`]:et==="rtl",[`${Be}-affix-wrapper-sm`]:Gt==="small",[`${Be}-affix-wrapper-lg`]:Gt==="large",[`${Be}-textarea-show-count`]:rt||((qe=Ze.count)===null||qe===void 0?void 0:qe.show)},Ke)}),prefixCls:Be,suffix:ie&&re.createElement("span",{className:`${Be}-textarea-suffix`},se),showCount:rt,ref:we,onResize:an,onMouseDown:Yt}))))})},23826:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Xe}});var re=oe(59301);function Xe(pe,We){const xe=(0,re.useRef)([]),Ce=()=>{xe.current.push(setTimeout(()=>{var Se,Re,Ee,fe;!((Se=pe.current)===null||Se===void 0)&&Se.input&&((Re=pe.current)===null||Re===void 0?void 0:Re.input.getAttribute("type"))==="password"&&(!((Ee=pe.current)===null||Ee===void 0)&&Ee.input.hasAttribute("value"))&&((fe=pe.current)===null||fe===void 0||fe.input.removeAttribute("value"))}))};return(0,re.useEffect)(()=>(We&&Ce(),()=>xe.current.forEach(Se=>{Se&&clearTimeout(Se)})),[]),Ce}},37568:function(Rt,It,oe){"use strict";oe.d(It,{default:function(){return Ot}});var re=oe(59301),Xe=oe(92310),pe=oe.n(Xe),We=oe(48755),xe=oe(56553),Ce=oe(53075),Re=it=>{const{getPrefixCls:ae,direction:ee}=(0,re.useContext)(We.E_),{prefixCls:z,className:ie}=it,se=ae("input-group",z),ne=ae("input"),[we,Be,wt]=(0,Ce.ZP)(ne),Fe=pe()(se,wt,{[`${se}-lg`]:it.size==="large",[`${se}-sm`]:it.size==="small",[`${se}-compact`]:it.compact,[`${se}-rtl`]:ee==="rtl"},Be,ie),Ke=(0,re.useContext)(xe.aM),mt=(0,re.useMemo)(()=>Object.assign(Object.assign({},Ke),{isFormItemInput:!1}),[Ke]);return we(re.createElement("span",{className:Fe,style:it.style,onMouseEnter:it.onMouseEnter,onMouseLeave:it.onMouseLeave,onFocus:it.onFocus,onBlur:it.onBlur},re.createElement(xe.aM.Provider,{value:mt},it.children)))},Ee=oe(49397),fe=oe(77654),Ge=oe(6089),be=oe(26112),ot=oe(82855),He=oe(31756),ke=oe(16931),ze=oe(51636),Oe=oe(64910);const lt=it=>{const{componentCls:ae,paddingXS:ee}=it;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:ee,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:it.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:it.calc(it.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:it.paddingXS}}}};var xt=(0,ke.I$)(["Input","OTP"],it=>{const ae=(0,ze.mergeToken)(it,(0,Oe.e)(it));return[lt(ae)]},Oe.T),at=oe(16089),ut=function(it,ae){var ee={};for(var z in it)Object.prototype.hasOwnProperty.call(it,z)&&ae.indexOf(z)<0&&(ee[z]=it[z]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,z=Object.getOwnPropertySymbols(it);ie{const{value:ee,onChange:z,onActiveChange:ie,index:se,mask:ne}=it,we=ut(it,["value","onChange","onActiveChange","index","mask"]),Be=ee&&typeof ne=="string"?ne:ee,wt=Mt=>{z(se,Mt.target.value)},Fe=re.useRef(null);re.useImperativeHandle(ae,()=>Fe.current);const Ke=()=>{(0,at.Z)(()=>{var Mt;const Wt=(Mt=Fe.current)===null||Mt===void 0?void 0:Mt.input;document.activeElement===Wt&&Wt&&Wt.select()})},mt=Mt=>{const{key:Wt,ctrlKey:Gt,metaKey:At}=Mt;Wt==="ArrowLeft"?ie(se-1):Wt==="ArrowRight"?ie(se+1):Wt==="z"&&(Gt||At)&&Mt.preventDefault(),Ke()},Pt=Mt=>{Mt.key==="Backspace"&&!ee&&ie(se-1),Ke()};return re.createElement(Ee.Z,Object.assign({type:ne===!0?"password":"text"},we,{ref:Fe,value:Be,onInput:wt,onFocus:Ke,onKeyDown:mt,onKeyUp:Pt,onMouseDown:Ke,onMouseUp:Ke}))}),Ze=function(it,ae){var ee={};for(var z in it)Object.prototype.hasOwnProperty.call(it,z)&&ae.indexOf(z)<0&&(ee[z]=it[z]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,z=Object.getOwnPropertySymbols(it);ie{const{index:ae,prefixCls:ee,separator:z}=it,ie=typeof z=="function"?z(ae):z;return ie?re.createElement("span",{className:`${ee}-separator`},ie):null};var vt=re.forwardRef((it,ae)=>{const{prefixCls:ee,length:z=6,size:ie,defaultValue:se,value:ne,onChange:we,formatter:Be,separator:wt,variant:Fe,disabled:Ke,status:mt,autoFocus:Pt,mask:Mt,type:Wt,onInput:Gt,inputMode:At}=it,sn=Ze(it,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Jt,direction:on}=re.useContext(We.E_),gt=Jt("otp",ee),dn=(0,be.Z)(sn,{aria:!0,data:!0,attr:!0}),[zt,Yt,an]=xt(gt),Ln=(0,He.Z)(gn=>ie!=null?ie:gn),bn=re.useContext(xe.aM),De=(0,ot.F)(bn.status,mt),Je=re.useMemo(()=>Object.assign(Object.assign({},bn),{status:De,hasFeedback:!1,feedbackIcon:null}),[bn,De]),yt=re.useRef(null),jt=re.useRef({});re.useImperativeHandle(ae,()=>({focus:()=>{var gn;(gn=jt.current[0])===null||gn===void 0||gn.focus()},blur:()=>{var gn;for(let Dn=0;DnBe?Be(gn):gn,[fn,$n]=re.useState(()=>kt(rn(se||"")));re.useEffect(()=>{ne!==void 0&&$n(kt(ne))},[ne]);const An=(0,Ge.Z)(gn=>{$n(gn),Gt&&Gt(gn),we&&gn.length===z&&gn.every(Dn=>Dn)&&gn.some((Dn,nn)=>fn[nn]!==Dn)&&we(gn.join(""))}),pn=(0,Ge.Z)((gn,Dn)=>{let nn=(0,fe.Z)(fn);for(let un=0;un=0&&!nn[un];un-=1)nn.pop();const yn=rn(nn.map(un=>un||" ").join(""));return nn=kt(yn).map((un,Tn)=>un===" "&&!nn[Tn]?nn[Tn]:un),nn}),wn=(gn,Dn)=>{var nn;const yn=pn(gn,Dn),un=Math.min(gn+Dn.length,z-1);un!==gn&&yn[gn]!==void 0&&((nn=jt.current[un])===null||nn===void 0||nn.focus()),An(yn)},vn=gn=>{var Dn;(Dn=jt.current[gn])===null||Dn===void 0||Dn.focus()},Kn={variant:Fe,disabled:Ke,status:De,mask:Mt,type:Wt,inputMode:At};return zt(re.createElement("div",Object.assign({},dn,{ref:yt,className:pe()(gt,{[`${gt}-sm`]:Ln==="small",[`${gt}-lg`]:Ln==="large",[`${gt}-rtl`]:on==="rtl"},an,Yt)}),re.createElement(xe.aM.Provider,{value:Je},Array.from({length:z}).map((gn,Dn)=>{const nn=`otp-${Dn}`,yn=fn[Dn]||"";return re.createElement(re.Fragment,{key:nn},re.createElement(dt,Object.assign({ref:un=>{jt.current[Dn]=un},index:Dn,size:Ln,htmlSize:1,className:`${gt}-input`,onChange:wn,value:yn,onActiveChange:vn,autoFocus:Dn===0&&Pt},Kn)),Dnit?re.createElement(Ue.Z,null):re.createElement(Ne.Z,null),ve={click:"onClick",hover:"onMouseOver"};var rt=re.forwardRef((it,ae)=>{const{disabled:ee,action:z="click",visibilityToggle:ie=!0,iconRender:se=Dt}=it,ne=re.useContext(St.Z),we=ee!=null?ee:ne,Be=typeof ie=="object"&&ie.visible!==void 0,[wt,Fe]=(0,re.useState)(()=>Be?ie.visible:!1),Ke=(0,re.useRef)(null);re.useEffect(()=>{Be&&Fe(ie.visible)},[Be,ie]);const mt=(0,Pe.Z)(Ke),Pt=()=>{var Ln;if(we)return;wt&&mt();const bn=!wt;Fe(bn),typeof ie=="object"&&((Ln=ie.onVisibleChange)===null||Ln===void 0||Ln.call(ie,bn))},Mt=Ln=>{const bn=ve[z]||"",De=se(wt),Je={[bn]:Pt,className:`${Ln}-icon`,key:"passwordIcon",onMouseDown:yt=>{yt.preventDefault()},onMouseUp:yt=>{yt.preventDefault()}};return re.cloneElement(re.isValidElement(De)?De:re.createElement("span",null,De),Je)},{className:Wt,prefixCls:Gt,inputPrefixCls:At,size:sn}=it,Jt=pt(it,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:on}=re.useContext(We.E_),gt=on("input",At),dn=on("input-password",Gt),zt=ie&&Mt(dn),Yt=pe()(dn,Wt,{[`${dn}-${sn}`]:!!sn}),an=Object.assign(Object.assign({},(0,Ye.Z)(Jt,["suffix","iconRender","visibilityToggle"])),{type:wt?"text":"password",className:Yt,prefixCls:gt,suffix:zt});return sn&&(an.size=sn),re.createElement(Ee.Z,Object.assign({ref:(0,me.sQ)(ae,Ke)},an))}),Tt=oe(47472),ft=oe(22703),Ae=oe(7939),Qe=oe(70045),et=function(it,ae){var ee={};for(var z in it)Object.prototype.hasOwnProperty.call(it,z)&&ae.indexOf(z)<0&&(ee[z]=it[z]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,z=Object.getOwnPropertySymbols(it);ie{const{prefixCls:ee,inputPrefixCls:z,className:ie,size:se,suffix:ne,enterButton:we=!1,addonAfter:Be,loading:wt,disabled:Fe,onSearch:Ke,onChange:mt,onCompositionStart:Pt,onCompositionEnd:Mt}=it,Wt=et(it,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Gt,direction:At}=re.useContext(We.E_),sn=re.useRef(!1),Jt=Gt("input-search",ee),on=Gt("input",z),{compactSize:gt}=(0,Qe.ri)(Jt,At),dn=(0,He.Z)(wn=>{var vn;return(vn=se!=null?se:gt)!==null&&vn!==void 0?vn:wn}),zt=re.useRef(null),Yt=wn=>{wn!=null&&wn.target&&wn.type==="click"&&Ke&&Ke(wn.target.value,wn,{source:"clear"}),mt==null||mt(wn)},an=wn=>{var vn;document.activeElement===((vn=zt.current)===null||vn===void 0?void 0:vn.input)&&wn.preventDefault()},Ln=wn=>{var vn,Kn;Ke&&Ke((Kn=(vn=zt.current)===null||vn===void 0?void 0:vn.input)===null||Kn===void 0?void 0:Kn.value,wn,{source:"input"})},bn=wn=>{sn.current||wt||Ln(wn)},De=typeof we=="boolean"?re.createElement(Tt.Z,null):null,Je=`${Jt}-button`;let yt;const jt=we||{},rn=jt.type&&jt.type.__ANT_BUTTON===!0;rn||jt.type==="button"?yt=(0,ft.Tm)(jt,Object.assign({onMouseDown:an,onClick:wn=>{var vn,Kn;(Kn=(vn=jt==null?void 0:jt.props)===null||vn===void 0?void 0:vn.onClick)===null||Kn===void 0||Kn.call(vn,wn),Ln(wn)},key:"enterButton"},rn?{className:Je,size:dn}:{})):yt=re.createElement(Ae.ZP,{className:Je,type:we?"primary":void 0,size:dn,disabled:Fe,key:"enterButton",onMouseDown:an,onClick:Ln,loading:wt,icon:De},we),Be&&(yt=[yt,(0,ft.Tm)(Be,{key:"addonAfter"})]);const fn=pe()(Jt,{[`${Jt}-rtl`]:At==="rtl",[`${Jt}-${dn}`]:!!dn,[`${Jt}-with-button`]:!!we},ie),$n=Object.assign(Object.assign({},Wt),{className:fn,prefixCls:on,type:"search"}),An=wn=>{sn.current=!0,Pt==null||Pt(wn)},pn=wn=>{sn.current=!1,Mt==null||Mt(wn)};return re.createElement(Ee.Z,Object.assign({ref:(0,me.sQ)(zt,ae),onPressEnter:bn},$n,{size:dn,onCompositionStart:An,onCompositionEnd:pn,addonAfter:yt,suffix:ne,onChange:Yt,disabled:Fe}))}),$t=oe(79809);const Ve=Ee.Z;Ve.Group=Re,Ve.Search=Et,Ve.TextArea=$t.Z,Ve.Password=rt,Ve.OTP=vt;var Ot=Ve},82326:function(Rt,It,oe){"use strict";var re=oe(59301),Xe=oe(92310),pe=oe.n(Xe),We=oe(37463),xe=oe(2738),Ce=oe(75030),Se=oe(86641),Re=oe(45915),Ee=oe(82855),fe=oe(48755),Ge=oe(38406),be=oe(2171),ot=oe(83397),He=oe(31756),ke=oe(56553),ze=oe(24971),Oe=oe(70045),lt=oe(57700),xt=oe(1722),at=oe(90376),ut=oe(68525),tt=oe(90005),dt=function(vt,Ne){var Ue={};for(var Ye in vt)Object.prototype.hasOwnProperty.call(vt,Ye)&&Ne.indexOf(Ye)<0&&(Ue[Ye]=vt[Ye]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Ye=Object.getOwnPropertySymbols(vt);me{var Ue;const{prefixCls:Ye,bordered:me,className:St,rootClassName:Pe,getPopupContainer:pt,popupClassName:Dt,dropdownClassName:ve,listHeight:de=256,placement:rt,listItemHeight:Tt,size:ft,disabled:Ae,notFoundContent:Qe,status:et,builtinPlacements:en,dropdownMatchSelectWidth:Et,popupMatchSelectWidth:$t,direction:Ve,style:Ot,allowClear:it,variant:ae,dropdownStyle:ee,transitionName:z,tagRender:ie,maxCount:se,prefix:ne}=vt,we=dt(vt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:Be,getPrefixCls:wt,renderEmpty:Fe,direction:Ke,virtual:mt,popupMatchSelectWidth:Pt,popupOverflow:Mt}=re.useContext(fe.E_),Wt=(0,fe.dj)("select"),[,Gt]=(0,lt.ZP)(),At=Tt!=null?Tt:Gt==null?void 0:Gt.controlHeight,sn=wt("select",Ye),Jt=wt(),on=Ve!=null?Ve:Ke,{compactSize:gt,compactItemClassnames:dn}=(0,Oe.ri)(sn,on),[zt,Yt]=(0,ze.Z)("select",ae,me),an=(0,ot.Z)(sn),[Ln,bn,De]=(0,at.Z)(sn,an),Je=re.useMemo(()=>{const{mode:jn}=vt;if(jn!=="combobox")return jn===Ze?"combobox":jn},[vt.mode]),yt=Je==="multiple"||Je==="tags",jt=(0,tt.Z)(vt.suffixIcon,vt.showArrow),rn=(Ue=$t!=null?$t:Et)!==null&&Ue!==void 0?Ue:Pt,{status:fn,hasFeedback:$n,isFormItemInput:An,feedbackIcon:pn}=re.useContext(ke.aM),wn=(0,Ee.F)(fn,et);let vn;Qe!==void 0?vn=Qe:Je==="combobox"?vn=null:vn=(Fe==null?void 0:Fe("Select"))||re.createElement(Ge.Z,{componentName:"Select"});const{suffixIcon:Kn,itemIcon:gn,removeIcon:Dn,clearIcon:nn}=(0,ut.Z)(Object.assign(Object.assign({},we),{multiple:yt,hasFeedback:$n,feedbackIcon:pn,showSuffixIcon:jt,prefixCls:sn,componentName:"Select"})),yn=it===!0?{clearIcon:nn}:it,un=(0,xe.Z)(we,["suffixIcon","itemIcon"]),Tn=pe()(Dt||ve,{[`${sn}-dropdown-${on}`]:on==="rtl"},Pe,De,an,bn),Yn=(0,He.Z)(jn=>{var Ct;return(Ct=ft!=null?ft:gt)!==null&&Ct!==void 0?Ct:jn}),zn=re.useContext(be.Z),Bn=Ae!=null?Ae:zn,_n=pe()({[`${sn}-lg`]:Yn==="large",[`${sn}-sm`]:Yn==="small",[`${sn}-rtl`]:on==="rtl",[`${sn}-${zt}`]:Yt,[`${sn}-in-form-item`]:An},(0,Ee.Z)(sn,wn,$n),dn,Wt.className,St,Pe,De,an,bn),Vn=re.useMemo(()=>rt!==void 0?rt:on==="rtl"?"bottomRight":"bottomLeft",[rt,on]),[Qn]=(0,Ce.Cn)("SelectLike",ee==null?void 0:ee.zIndex);return Ln(re.createElement(We.ZP,Object.assign({ref:Ne,virtual:mt,showSearch:Wt.showSearch},un,{style:Object.assign(Object.assign({},Wt.style),Ot),dropdownMatchSelectWidth:rn,transitionName:(0,Se.m)(Jt,"slide-up",z),builtinPlacements:(0,xt.Z)(en,Mt),listHeight:de,listItemHeight:At,mode:Je,prefixCls:sn,placement:Vn,direction:on,prefix:ne,suffixIcon:Kn,menuItemSelectedIcon:gn,removeIcon:Dn,allowClear:yn,notFoundContent:vn,className:_n,getPopupContainer:pt||Be,dropdownClassName:Tn,disabled:Bn,dropdownStyle:Object.assign(Object.assign({},ee),{zIndex:Qn}),maxCount:yt?se:void 0,tagRender:yt?ie:void 0})))},qe=re.forwardRef(kt),_e=(0,Re.Z)(qe,"dropdownAlign");qe.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ze,qe.Option=We.Wx,qe.OptGroup=We.Xo,qe._InternalPanelDoNotUseOrYouWillBeFired=_e,It.default=qe},1722:function(Rt,It){"use strict";const oe=Xe=>{const We={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Xe==="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(Xe,pe){return Xe||oe(pe)}It.Z=re},90376:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Ye}});var re=oe(63356),Xe=oe(56119),pe=oe(16931),We=oe(51636),xe=oe(46e3),Ce=oe(93873);const Se=me=>{const{optionHeight:St,optionFontSize:Pe,optionLineHeight:pt,optionPadding:Dt}=me;return{position:"relative",display:"block",minHeight:St,padding:Dt,color:me.colorText,fontWeight:"normal",fontSize:Pe,lineHeight:pt,boxSizing:"border-box"}};var Ee=me=>{const{antCls:St,componentCls:Pe}=me,pt=`${Pe}-item`,Dt=`&${St}-slide-up-enter${St}-slide-up-enter-active`,ve=`&${St}-slide-up-appear${St}-slide-up-appear-active`,de=`&${St}-slide-up-leave${St}-slide-up-leave-active`,rt=`${Pe}-dropdown-placement-`,Tt=`${pt}-option-selected`;return[{[`${Pe}-dropdown`]:Object.assign(Object.assign({},(0,re.Wf)(me)),{position:"absolute",top:-9999,zIndex:me.zIndexPopup,boxSizing:"border-box",padding:me.paddingXXS,overflow:"hidden",fontSize:me.fontSize,fontVariant:"initial",backgroundColor:me.colorBgElevated,borderRadius:me.borderRadiusLG,outline:"none",boxShadow:me.boxShadowSecondary,[` ${Dt}${rt}bottomLeft, ${ve}${rt}bottomLeft `]:{animationName:xe.fJ},[` ${Dt}${rt}topLeft, ${ve}${rt}topLeft, ${Dt}${rt}topRight, ${ve}${rt}topRight `]:{animationName:xe.Qt},[`${de}${rt}bottomLeft`]:{animationName:xe.Uw},[` ${de}${rt}topLeft, ${de}${rt}topRight `]:{animationName:xe.ly},"&-hidden":{display:"none"},[pt]:Object.assign(Object.assign({},Se(me)),{cursor:"pointer",transition:`background ${me.motionDurationSlow} ease`,borderRadius:me.borderRadiusSM,"&-group":{color:me.colorTextDescription,fontSize:me.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},re.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${pt}-option-disabled)`]:{backgroundColor:me.optionActiveBg},[`&-selected:not(${pt}-option-disabled)`]:{color:me.optionSelectedColor,fontWeight:me.optionSelectedFontWeight,backgroundColor:me.optionSelectedBg,[`${pt}-option-state`]:{color:me.colorPrimary}},"&-disabled":{[`&${pt}-option-selected`]:{backgroundColor:me.colorBgContainerDisabled},color:me.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:me.calc(me.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Se(me)),{color:me.colorTextDisabled})}),[`${Tt}:has(+ ${Tt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Tt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(me,"slide-up"),(0,xe.oN)(me,"slide-down"),(0,Ce.Fm)(me,"move-up"),(0,Ce.Fm)(me,"move-down")]},fe=oe(26743),Ge=oe(36237);function be(me,St){const{componentCls:Pe,inputPaddingHorizontalBase:pt,borderRadius:Dt}=me,ve=me.calc(me.controlHeight).sub(me.calc(me.lineWidth).mul(2)).equal(),de=St?`${Pe}-${St}`:"";return{[`${Pe}-single${de}`]:{fontSize:me.fontSize,height:me.controlHeight,[`${Pe}-selector`]:Object.assign(Object.assign({},(0,re.Wf)(me,!0)),{display:"flex",borderRadius:Dt,flex:"1 1 auto",[`${Pe}-selection-wrap:after`]:{lineHeight:(0,Ge.unit)(ve)},[`${Pe}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` ${Pe}-selection-item, ${Pe}-selection-placeholder `]:{display:"block",padding:0,lineHeight:(0,Ge.unit)(ve),transition:`all ${me.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Pe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Pe}-selection-item:empty:after`,`${Pe}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${Pe}-show-arrow ${Pe}-selection-item, &${Pe}-show-arrow ${Pe}-selection-search, &${Pe}-show-arrow ${Pe}-selection-placeholder `]:{paddingInlineEnd:me.showArrowPaddingInlineEnd},[`&${Pe}-open ${Pe}-selection-item`]:{color:me.colorTextPlaceholder},[`&:not(${Pe}-customize-input)`]:{[`${Pe}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,Ge.unit)(pt)}`,[`${Pe}-selection-search-input`]:{height:ve,fontSize:me.fontSize},"&:after":{lineHeight:(0,Ge.unit)(ve)}}},[`&${Pe}-customize-input`]:{[`${Pe}-selector`]:{"&:after":{display:"none"},[`${Pe}-selection-search`]:{position:"static",width:"100%"},[`${Pe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,Ge.unit)(pt)}`,"&:after":{display:"none"}}}}}}}function ot(me){const{componentCls:St}=me,Pe=me.calc(me.controlPaddingHorizontalSM).sub(me.lineWidth).equal();return[be(me),be((0,We.mergeToken)(me,{controlHeight:me.controlHeightSM,borderRadius:me.borderRadiusSM}),"sm"),{[`${St}-single${St}-sm`]:{[`&:not(${St}-customize-input)`]:{[`${St}-selector`]:{padding:`0 ${(0,Ge.unit)(Pe)}`},[`&${St}-show-arrow ${St}-selection-search`]:{insetInlineEnd:me.calc(Pe).add(me.calc(me.fontSize).mul(1.5)).equal()},[` &${St}-show-arrow ${St}-selection-item, &${St}-show-arrow ${St}-selection-placeholder `]:{paddingInlineEnd:me.calc(me.fontSize).mul(1.5).equal()}}}},be((0,We.mergeToken)(me,{controlHeight:me.singleItemHeightLG,fontSize:me.fontSizeLG,borderRadius:me.borderRadiusLG}),"lg")]}const He=me=>{const{fontSize:St,lineHeight:Pe,lineWidth:pt,controlHeight:Dt,controlHeightSM:ve,controlHeightLG:de,paddingXXS:rt,controlPaddingHorizontal:Tt,zIndexPopupBase:ft,colorText:Ae,fontWeightStrong:Qe,controlItemBgActive:et,controlItemBgHover:en,colorBgContainer:Et,colorFillSecondary:$t,colorBgContainerDisabled:Ve,colorTextDisabled:Ot,colorPrimaryHover:it,colorPrimary:ae,controlOutline:ee}=me,z=rt*2,ie=pt*2,se=Math.min(Dt-z,Dt-ie),ne=Math.min(ve-z,ve-ie),we=Math.min(de-z,de-ie);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(rt/2),zIndexPopup:ft+50,optionSelectedColor:Ae,optionSelectedFontWeight:Qe,optionSelectedBg:et,optionActiveBg:en,optionPadding:`${(Dt-St*Pe)/2}px ${Tt}px`,optionFontSize:St,optionLineHeight:Pe,optionHeight:Dt,selectorBg:Et,clearBg:Et,singleItemHeightLG:de,multipleItemBg:$t,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:ne,multipleItemHeightLG:we,multipleSelectorBgDisabled:Ve,multipleItemColorDisabled:Ot,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(me.fontSize*1.25),hoverBorderColor:it,activeBorderColor:ae,activeOutlineColor:ee,selectAffixPadding:rt}},ke=(me,St)=>{const{componentCls:Pe,antCls:pt,controlOutlineWidth:Dt}=me;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${St.borderColor}`,background:me.selectorBg},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${pt}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{borderColor:St.hoverBorderHover},[`${Pe}-focused& ${Pe}-selector`]:{borderColor:St.activeBorderColor,boxShadow:`0 0 0 ${(0,Ge.unit)(Dt)} ${St.activeOutlineColor}`,outline:0},[`${Pe}-prefix`]:{color:St.color}}}},ze=(me,St)=>({[`&${me.componentCls}-status-${St.status}`]:Object.assign({},ke(me,St))}),Oe=me=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},ke(me,{borderColor:me.colorBorder,hoverBorderHover:me.hoverBorderColor,activeBorderColor:me.activeBorderColor,activeOutlineColor:me.activeOutlineColor,color:me.colorText})),ze(me,{status:"error",borderColor:me.colorError,hoverBorderHover:me.colorErrorHover,activeBorderColor:me.colorError,activeOutlineColor:me.colorErrorOutline,color:me.colorError})),ze(me,{status:"warning",borderColor:me.colorWarning,hoverBorderHover:me.colorWarningHover,activeBorderColor:me.colorWarning,activeOutlineColor:me.colorWarningOutline,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{background:me.colorBgContainerDisabled,color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`}})}),lt=(me,St)=>{const{componentCls:Pe,antCls:pt}=me;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{background:St.bg,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} transparent`,color:St.color},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${pt}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{background:St.hoverBg},[`${Pe}-focused& ${Pe}-selector`]:{background:me.selectorBg,borderColor:St.activeBorderColor,outline:0}}}},xt=(me,St)=>({[`&${me.componentCls}-status-${St.status}`]:Object.assign({},lt(me,St))}),at=me=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},lt(me,{bg:me.colorFillTertiary,hoverBg:me.colorFillSecondary,activeBorderColor:me.activeBorderColor,color:me.colorText})),xt(me,{status:"error",bg:me.colorErrorBg,hoverBg:me.colorErrorBgHover,activeBorderColor:me.colorError,color:me.colorError})),xt(me,{status:"warning",bg:me.colorWarningBg,hoverBg:me.colorWarningBgHover,activeBorderColor:me.colorWarning,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{borderColor:me.colorBorder,background:me.colorBgContainerDisabled,color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.colorBgContainer,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${me.colorSplit}`}})}),ut=me=>({"&-borderless":{[`${me.componentCls}-selector`]:{background:"transparent",border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} transparent`},[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`},[`&${me.componentCls}-status-error`]:{[`${me.componentCls}-prefix, ${me.componentCls}-selection-item`]:{color:me.colorError}},[`&${me.componentCls}-status-warning`]:{[`${me.componentCls}-prefix, ${me.componentCls}-selection-item`]:{color:me.colorWarning}}}}),tt=(me,St)=>{const{componentCls:Pe,antCls:pt}=me;return{[`&:not(${Pe}-customize-input) ${Pe}-selector`]:{borderWidth:`0 0 ${(0,Ge.unit)(me.lineWidth)} 0`,borderStyle:`none none ${me.lineType} none`,borderColor:St.borderColor,background:me.selectorBg,borderRadius:0},[`&:not(${Pe}-disabled):not(${Pe}-customize-input):not(${pt}-pagination-size-changer)`]:{[`&:hover ${Pe}-selector`]:{borderColor:St.hoverBorderHover},[`${Pe}-focused& ${Pe}-selector`]:{borderColor:St.activeBorderColor,outline:0},[`${Pe}-prefix`]:{color:St.color}}}},dt=(me,St)=>({[`&${me.componentCls}-status-${St.status}`]:Object.assign({},tt(me,St))}),Ze=me=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},tt(me,{borderColor:me.colorBorder,hoverBorderHover:me.hoverBorderColor,activeBorderColor:me.activeBorderColor,activeOutlineColor:me.activeOutlineColor,color:me.colorText})),dt(me,{status:"error",borderColor:me.colorError,hoverBorderHover:me.colorErrorHover,activeBorderColor:me.colorError,activeOutlineColor:me.colorErrorOutline,color:me.colorError})),dt(me,{status:"warning",borderColor:me.colorWarning,hoverBorderHover:me.colorWarningHover,activeBorderColor:me.colorWarning,activeOutlineColor:me.colorWarningOutline,color:me.colorWarning})),{[`&${me.componentCls}-disabled`]:{[`&:not(${me.componentCls}-customize-input) ${me.componentCls}-selector`]:{color:me.colorTextDisabled}},[`&${me.componentCls}-multiple ${me.componentCls}-selection-item`]:{background:me.multipleItemBg,border:`${(0,Ge.unit)(me.lineWidth)} ${me.lineType} ${me.multipleItemBorderColor}`}})});var qe=me=>({[me.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Oe(me)),at(me)),ut(me)),Ze(me))});const _e=me=>{const{componentCls:St}=me;return{position:"relative",transition:`all ${me.motionDurationMid} ${me.motionEaseInOut}`,input:{cursor:"pointer"},[`${St}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${St}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},vt=me=>{const{componentCls:St}=me;return{[`${St}-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"}}}},Ne=me=>{const{antCls:St,componentCls:Pe,inputPaddingHorizontalBase:pt,iconCls:Dt}=me;return{[Pe]:Object.assign(Object.assign({},(0,re.Wf)(me)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Pe}-customize-input) ${Pe}-selector`]:Object.assign(Object.assign({},_e(me)),vt(me)),[`${Pe}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},re.vS),{[`> ${St}-typography`]:{display:"inline"}}),[`${Pe}-selection-placeholder`]:Object.assign(Object.assign({},re.vS),{flex:1,color:me.colorTextPlaceholder,pointerEvents:"none"}),[`${Pe}-arrow`]:Object.assign(Object.assign({},(0,re.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:pt,height:me.fontSizeIcon,marginTop:me.calc(me.fontSizeIcon).mul(-1).div(2).equal(),color:me.colorTextQuaternary,fontSize:me.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${me.motionDurationSlow} ease`,[Dt]:{verticalAlign:"top",transition:`transform ${me.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Pe}-suffix)`]:{pointerEvents:"auto"}},[`${Pe}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Pe}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Pe}-prefix`]:{flex:"none",marginInlineEnd:me.selectAffixPadding},[`${Pe}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:pt,zIndex:1,display:"inline-block",width:me.fontSizeIcon,height:me.fontSizeIcon,marginTop:me.calc(me.fontSizeIcon).mul(-1).div(2).equal(),color:me.colorTextQuaternary,fontSize:me.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${me.motionDurationMid} ease, opacity ${me.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:me.colorTextTertiary}},[`&:hover ${Pe}-clear`]:{opacity:1,background:me.colorBgBase,borderRadius:"50%"}}),[`${Pe}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Pe}-has-feedback`]:{[`${Pe}-clear`]:{insetInlineEnd:me.calc(pt).add(me.fontSize).add(me.paddingXS).equal()}}}}}},Ue=me=>{const{componentCls:St}=me;return[{[St]:{[`&${St}-in-form-item`]:{width:"100%"}}},Ne(me),ot(me),(0,fe.ZP)(me),Ee(me),{[`${St}-rtl`]:{direction:"rtl"}},(0,Xe.c)(me,{borderElCls:`${St}-selector`,focusElCls:`${St}-focused`})]};var Ye=(0,pe.I$)("Select",(me,St)=>{let{rootPrefixCls:Pe}=St;const pt=(0,We.mergeToken)(me,{rootPrefixCls:Pe,inputPaddingHorizontalBase:me.calc(me.paddingSM).sub(1).equal(),multipleSelectItemHeight:me.multipleItemHeight,selectHeight:me.controlHeight});return[Ue(pt),qe(pt)]},He,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(Rt,It,oe){"use strict";oe.d(It,{_z:function(){return Ce},gp:function(){return We}});var re=oe(36237),Xe=oe(63356),pe=oe(51636);const We=fe=>{const{multipleSelectItemHeight:Ge,paddingXXS:be,lineWidth:ot,INTERNAL_FIXED_ITEM_MARGIN:He}=fe,ke=fe.max(fe.calc(be).sub(ot).equal(),0),ze=fe.max(fe.calc(ke).sub(He).equal(),0);return{basePadding:ke,containerPadding:ze,itemHeight:(0,re.unit)(Ge),itemLineHeight:(0,re.unit)(fe.calc(Ge).sub(fe.calc(fe.lineWidth).mul(2)).equal())}},xe=fe=>{const{multipleSelectItemHeight:Ge,selectHeight:be,lineWidth:ot}=fe;return fe.calc(be).sub(Ge).div(2).sub(ot).equal()},Ce=fe=>{const{componentCls:Ge,iconCls:be,borderRadiusSM:ot,motionDurationSlow:He,paddingXS:ke,multipleItemColorDisabled:ze,multipleItemBorderColorDisabled:Oe,colorIcon:lt,colorIconHover:xt,INTERNAL_FIXED_ITEM_MARGIN:at}=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:at,borderRadius:ot,cursor:"default",transition:`font-size ${He}, line-height ${He}, height ${He}`,marginInlineEnd:fe.calc(at).mul(2).equal(),paddingInlineStart:ke,paddingInlineEnd:fe.calc(ke).div(2).equal(),[`${Ge}-disabled&`]:{color:ze,borderColor:Oe,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:fe.calc(ke).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Xe.Ro)()),{display:"inline-flex",alignItems:"center",color:lt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${be}`]:{verticalAlign:"-0.2em"},"&:hover":{color:xt}})}}}},Se=(fe,Ge)=>{const{componentCls:be,INTERNAL_FIXED_ITEM_MARGIN:ot}=fe,He=`${be}-selection-overflow`,ke=fe.multipleSelectItemHeight,ze=xe(fe),Oe=Ge?`${be}-${Ge}`:"",lt=We(fe);return{[`${be}-multiple${Oe}`]:Object.assign(Object.assign({},Ce(fe)),{[`${be}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:lt.basePadding,paddingBlock:lt.containerPadding,borderRadius:fe.borderRadius,[`${be}-disabled&`]:{background:fe.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,re.unit)(ot)} 0`,lineHeight:(0,re.unit)(ke),visibility:"hidden",content:'"\\a0"'}},[`${be}-selection-item`]:{height:lt.itemHeight,lineHeight:(0,re.unit)(lt.itemLineHeight)},[`${be}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,re.unit)(ke),marginBlock:ot}},[`${be}-prefix`]:{marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(lt.basePadding).equal()},[`${He}-item + ${He}-item, ${be}-prefix + ${be}-selection-wrap `]:{[`${be}-selection-search`]:{marginInlineStart:0},[`${be}-selection-placeholder`]:{insetInlineStart:0}},[`${He}-item-suffix`]:{minHeight:lt.itemHeight,marginBlock:ot},[`${be}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(ze).equal(),"\n &-input,\n &-mirror\n ":{height:ke,fontFamily:fe.fontFamily,lineHeight:(0,re.unit)(ke),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"}},[`${be}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:fe.calc(fe.inputPaddingHorizontalBase).sub(lt.basePadding).equal(),insetInlineEnd:fe.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${fe.motionDurationSlow}`}})}};function Re(fe,Ge){const{componentCls:be}=fe,ot=Ge?`${be}-${Ge}`:"",He={[`${be}-multiple${ot}`]:{fontSize:fe.fontSize,[`${be}-selector`]:{[`${be}-show-search&`]:{cursor:"text"}},[` &${be}-show-arrow ${be}-selector, &${be}-allow-clear ${be}-selector `]:{paddingInlineEnd:fe.calc(fe.fontSizeIcon).add(fe.controlPaddingHorizontal).equal()}}};return[Se(fe,Ge),He]}const Ee=fe=>{const{componentCls:Ge}=fe,be=(0,pe.mergeToken)(fe,{selectHeight:fe.controlHeightSM,multipleSelectItemHeight:fe.multipleItemHeightSM,borderRadius:fe.borderRadiusSM,borderRadiusSM:fe.borderRadiusXS}),ot=(0,pe.mergeToken)(fe,{fontSize:fe.fontSizeLG,selectHeight:fe.controlHeightLG,multipleSelectItemHeight:fe.multipleItemHeightLG,borderRadius:fe.borderRadiusLG,borderRadiusSM:fe.borderRadius});return[Re(fe),Re(be,"sm"),{[`${Ge}-multiple${Ge}-sm`]:{[`${Ge}-selection-placeholder`]:{insetInline:fe.calc(fe.controlPaddingHorizontalSM).sub(fe.lineWidth).equal()},[`${Ge}-selection-search`]:{marginInlineStart:2}}},Re(ot,"lg")]};It.ZP=Ee},68525:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Re}});var re=oe(59301),Xe=oe(40001),pe=oe(19248),We=oe(99267),xe=oe(84105),Ce=oe(58617),Se=oe(47472);function Re(Ee){let{suffixIcon:fe,clearIcon:Ge,menuItemSelectedIcon:be,removeIcon:ot,loading:He,multiple:ke,hasFeedback:ze,prefixCls:Oe,showSuffixIcon:lt,feedbackIcon:xt,showArrow:at,componentName:ut}=Ee;const tt=Ge!=null?Ge:re.createElement(pe.Z,null),dt=_e=>fe===null&&!ze&&!at?null:re.createElement(re.Fragment,null,lt!==!1&&_e,ze&&xt);let Ze=null;if(fe!==void 0)Ze=dt(fe);else if(He)Ze=dt(re.createElement(Ce.Z,{spin:!0}));else{const _e=`${Oe}-suffix`;Ze=vt=>{let{open:Ne,showSearch:Ue}=vt;return dt(Ne&&Ue?re.createElement(Se.Z,{className:_e}):re.createElement(xe.Z,{className:_e}))}}let kt=null;be!==void 0?kt=be:ke?kt=re.createElement(Xe.Z,null):kt=null;let qe=null;return ot!==void 0?qe=ot:qe=re.createElement(We.Z,null),{clearIcon:tt,suffixIcon:Ze,itemIcon:kt,removeIcon:qe}}},90005:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return re}});function re(Xe,pe){return pe!==void 0?pe:Xe!==null}},58755:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return St}});var re=oe(59301),Xe=oe(58617),pe=oe(92310),We=oe.n(pe),xe=oe(60499),Ce=oe(18642),Se=oe(72190),Re=oe(42244),Ee=oe(18929),fe=oe(10228),Ge=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],be=re.forwardRef(function(Pe,pt){var Dt,ve=Pe.prefixCls,de=ve===void 0?"rc-switch":ve,rt=Pe.className,Tt=Pe.checked,ft=Pe.defaultChecked,Ae=Pe.disabled,Qe=Pe.loadingIcon,et=Pe.checkedChildren,en=Pe.unCheckedChildren,Et=Pe.onClick,$t=Pe.onChange,Ve=Pe.onKeyDown,Ot=(0,Re.Z)(Pe,Ge),it=(0,Ee.Z)(!1,{value:Tt,defaultValue:ft}),ae=(0,Se.Z)(it,2),ee=ae[0],z=ae[1];function ie(Be,wt){var Fe=ee;return Ae||(Fe=Be,z(Fe),$t==null||$t(Fe,wt)),Fe}function se(Be){Be.which===fe.Z.LEFT?ie(!1,Be):Be.which===fe.Z.RIGHT&&ie(!0,Be),Ve==null||Ve(Be)}function ne(Be){var wt=ie(!ee,Be);Et==null||Et(wt,Be)}var we=We()(de,rt,(Dt={},(0,Ce.Z)(Dt,"".concat(de,"-checked"),ee),(0,Ce.Z)(Dt,"".concat(de,"-disabled"),Ae),Dt));return re.createElement("button",(0,xe.Z)({},Ot,{type:"button",role:"switch","aria-checked":ee,disabled:Ae,className:we,ref:pt,onKeyDown:se,onClick:ne}),Qe,re.createElement("span",{className:"".concat(de,"-inner")},re.createElement("span",{className:"".concat(de,"-inner-checked")},et),re.createElement("span",{className:"".concat(de,"-inner-unchecked")},en)))});be.displayName="Switch";var ot=be,He=oe(12919),ke=oe(48755),ze=oe(2171),Oe=oe(31756),lt=oe(36237),xt=oe(17835),at=oe(63356),ut=oe(16931),tt=oe(51636);const dt=Pe=>{const{componentCls:pt,trackHeightSM:Dt,trackPadding:ve,trackMinWidthSM:de,innerMinMarginSM:rt,innerMaxMarginSM:Tt,handleSizeSM:ft,calc:Ae}=Pe,Qe=`${pt}-inner`,et=(0,lt.unit)(Ae(ft).add(Ae(ve).mul(2)).equal()),en=(0,lt.unit)(Ae(Tt).mul(2).equal());return{[pt]:{[`&${pt}-small`]:{minWidth:de,height:Dt,lineHeight:(0,lt.unit)(Dt),[`${pt}-inner`]:{paddingInlineStart:Tt,paddingInlineEnd:rt,[`${Qe}-checked, ${Qe}-unchecked`]:{minHeight:Dt},[`${Qe}-checked`]:{marginInlineStart:`calc(-100% + ${et} - ${en})`,marginInlineEnd:`calc(100% - ${et} + ${en})`},[`${Qe}-unchecked`]:{marginTop:Ae(Dt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${pt}-handle`]:{width:ft,height:ft},[`${pt}-loading-icon`]:{top:Ae(Ae(ft).sub(Pe.switchLoadingIconSize)).div(2).equal(),fontSize:Pe.switchLoadingIconSize},[`&${pt}-checked`]:{[`${pt}-inner`]:{paddingInlineStart:rt,paddingInlineEnd:Tt,[`${Qe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Qe}-unchecked`]:{marginInlineStart:`calc(100% - ${et} + ${en})`,marginInlineEnd:`calc(-100% + ${et} - ${en})`}},[`${pt}-handle`]:{insetInlineStart:`calc(100% - ${(0,lt.unit)(Ae(ft).add(ve).equal())})`}},[`&:not(${pt}-disabled):active`]:{[`&:not(${pt}-checked) ${Qe}`]:{[`${Qe}-unchecked`]:{marginInlineStart:Ae(Pe.marginXXS).div(2).equal(),marginInlineEnd:Ae(Pe.marginXXS).mul(-1).div(2).equal()}},[`&${pt}-checked ${Qe}`]:{[`${Qe}-checked`]:{marginInlineStart:Ae(Pe.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ae(Pe.marginXXS).div(2).equal()}}}}}}},Ze=Pe=>{const{componentCls:pt,handleSize:Dt,calc:ve}=Pe;return{[pt]:{[`${pt}-loading-icon${Pe.iconCls}`]:{position:"relative",top:ve(ve(Dt).sub(Pe.fontSize)).div(2).equal(),color:Pe.switchLoadingIconColor,verticalAlign:"top"},[`&${pt}-checked ${pt}-loading-icon`]:{color:Pe.switchColor}}}},kt=Pe=>{const{componentCls:pt,trackPadding:Dt,handleBg:ve,handleShadow:de,handleSize:rt,calc:Tt}=Pe,ft=`${pt}-handle`;return{[pt]:{[ft]:{position:"absolute",top:Dt,insetInlineStart:Dt,width:rt,height:rt,transition:`all ${Pe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:ve,borderRadius:Tt(rt).div(2).equal(),boxShadow:de,transition:`all ${Pe.switchDuration} ease-in-out`,content:'""'}},[`&${pt}-checked ${ft}`]:{insetInlineStart:`calc(100% - ${(0,lt.unit)(Tt(rt).add(Dt).equal())})`},[`&:not(${pt}-disabled):active`]:{[`${ft}::before`]:{insetInlineEnd:Pe.switchHandleActiveInset,insetInlineStart:0},[`&${pt}-checked ${ft}::before`]:{insetInlineEnd:0,insetInlineStart:Pe.switchHandleActiveInset}}}}},qe=Pe=>{const{componentCls:pt,trackHeight:Dt,trackPadding:ve,innerMinMargin:de,innerMaxMargin:rt,handleSize:Tt,calc:ft}=Pe,Ae=`${pt}-inner`,Qe=(0,lt.unit)(ft(Tt).add(ft(ve).mul(2)).equal()),et=(0,lt.unit)(ft(rt).mul(2).equal());return{[pt]:{[Ae]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:rt,paddingInlineEnd:de,transition:`padding-inline-start ${Pe.switchDuration} ease-in-out, padding-inline-end ${Pe.switchDuration} ease-in-out`,[`${Ae}-checked, ${Ae}-unchecked`]:{display:"block",color:Pe.colorTextLightSolid,fontSize:Pe.fontSizeSM,transition:`margin-inline-start ${Pe.switchDuration} ease-in-out, margin-inline-end ${Pe.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Dt},[`${Ae}-checked`]:{marginInlineStart:`calc(-100% + ${Qe} - ${et})`,marginInlineEnd:`calc(100% - ${Qe} + ${et})`},[`${Ae}-unchecked`]:{marginTop:ft(Dt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${pt}-checked ${Ae}`]:{paddingInlineStart:de,paddingInlineEnd:rt,[`${Ae}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ae}-unchecked`]:{marginInlineStart:`calc(100% - ${Qe} + ${et})`,marginInlineEnd:`calc(-100% + ${Qe} - ${et})`}},[`&:not(${pt}-disabled):active`]:{[`&:not(${pt}-checked) ${Ae}`]:{[`${Ae}-unchecked`]:{marginInlineStart:ft(ve).mul(2).equal(),marginInlineEnd:ft(ve).mul(-1).mul(2).equal()}},[`&${pt}-checked ${Ae}`]:{[`${Ae}-checked`]:{marginInlineStart:ft(ve).mul(-1).mul(2).equal(),marginInlineEnd:ft(ve).mul(2).equal()}}}}}},_e=Pe=>{const{componentCls:pt,trackHeight:Dt,trackMinWidth:ve}=Pe;return{[pt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(Pe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:ve,height:Dt,lineHeight:(0,lt.unit)(Dt),verticalAlign:"middle",background:Pe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Pe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${pt}-disabled)`]:{background:Pe.colorTextTertiary}}),(0,at.Qy)(Pe)),{[`&${pt}-checked`]:{background:Pe.switchColor,[`&:hover:not(${pt}-disabled)`]:{background:Pe.colorPrimaryHover}},[`&${pt}-loading, &${pt}-disabled`]:{cursor:"not-allowed",opacity:Pe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${pt}-rtl`]:{direction:"rtl"}})}},vt=Pe=>{const{fontSize:pt,lineHeight:Dt,controlHeight:ve,colorWhite:de}=Pe,rt=pt*Dt,Tt=ve/2,ft=2,Ae=rt-ft*2,Qe=Tt-ft*2;return{trackHeight:rt,trackHeightSM:Tt,trackMinWidth:Ae*2+ft*4,trackMinWidthSM:Qe*2+ft*2,trackPadding:ft,handleBg:de,handleSize:Ae,handleSizeSM:Qe,handleShadow:`0 2px 4px 0 ${new xt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ae/2,innerMaxMargin:Ae+ft+ft*2,innerMinMarginSM:Qe/2,innerMaxMarginSM:Qe+ft+ft*2}};var Ne=(0,ut.I$)("Switch",Pe=>{const pt=(0,tt.mergeToken)(Pe,{switchDuration:Pe.motionDurationMid,switchColor:Pe.colorPrimary,switchDisabledOpacity:Pe.opacityLoading,switchLoadingIconSize:Pe.calc(Pe.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Pe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_e(pt),qe(pt),kt(pt),Ze(pt),dt(pt)]},vt),Ue=function(Pe,pt){var Dt={};for(var ve in Pe)Object.prototype.hasOwnProperty.call(Pe,ve)&&pt.indexOf(ve)<0&&(Dt[ve]=Pe[ve]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,ve=Object.getOwnPropertySymbols(Pe);de{const{prefixCls:Dt,size:ve,disabled:de,loading:rt,className:Tt,rootClassName:ft,style:Ae,checked:Qe,value:et,defaultChecked:en,defaultValue:Et,onChange:$t}=Pe,Ve=Ue(Pe,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Ot,it]=(0,Ee.Z)(!1,{value:Qe!=null?Qe:et,defaultValue:en!=null?en:Et}),{getPrefixCls:ae,direction:ee,switch:z}=re.useContext(ke.E_),ie=re.useContext(ze.Z),se=(de!=null?de:ie)||rt,ne=ae("switch",Dt),we=re.createElement("div",{className:`${ne}-handle`},rt&&re.createElement(Xe.Z,{className:`${ne}-loading-icon`})),[Be,wt,Fe]=Ne(ne),Ke=(0,Oe.Z)(ve),mt=We()(z==null?void 0:z.className,{[`${ne}-small`]:Ke==="small",[`${ne}-loading`]:rt,[`${ne}-rtl`]:ee==="rtl"},Tt,ft,wt,Fe),Pt=Object.assign(Object.assign({},z==null?void 0:z.style),Ae),Mt=function(){it(arguments.length<=0?void 0:arguments[0]),$t==null||$t.apply(void 0,arguments)};return Be(re.createElement(He.Z,{component:"Switch"},re.createElement(ot,Object.assign({},Ve,{checked:Ot,onChange:Mt,prefixCls:ne,className:mt,style:Pt,disabled:se,ref:pt,loadingIcon:we}))))});me.__ANT_SWITCH=!0;var St=me},99498:function(Rt,It,oe){(function(re){re(oe(89780))})(function(re){re.defineOption("placeholder","",function(Re,Ee,fe){var Ge=fe&&fe!=re.Init;if(Ee&&!Ge)Re.on("blur",xe),Re.on("change",Ce),Re.on("swapDoc",Ce),re.on(Re.getInputField(),"compositionupdate",Re.state.placeholderCompose=function(){We(Re)}),Ce(Re);else if(!Ee&&Ge){Re.off("blur",xe),Re.off("change",Ce),Re.off("swapDoc",Ce),re.off(Re.getInputField(),"compositionupdate",Re.state.placeholderCompose),Xe(Re);var be=Re.getWrapperElement();be.className=be.className.replace(" CodeMirror-empty","")}Ee&&!Re.hasFocus()&&xe(Re)});function Xe(Re){Re.state.placeholder&&(Re.state.placeholder.parentNode.removeChild(Re.state.placeholder),Re.state.placeholder=null)}function pe(Re){Xe(Re);var Ee=Re.state.placeholder=document.createElement("pre");Ee.style.cssText="height: 0; overflow: visible",Ee.style.direction=Re.getOption("direction"),Ee.className="CodeMirror-placeholder CodeMirror-line-like";var fe=Re.getOption("placeholder");typeof fe=="string"&&(fe=document.createTextNode(fe)),Ee.appendChild(fe),Re.display.lineSpace.insertBefore(Ee,Re.display.lineSpace.firstChild)}function We(Re){setTimeout(function(){var Ee=!1,fe=Re.getInputField();fe.nodeName=="TEXTAREA"?Ee=!fe.value:Re.lineCount()==1&&(Ee=!/[^\u200b]/.test(fe.querySelector(".CodeMirror-line").textContent)),Ee?pe(Re):Xe(Re)},20)}function xe(Re){Se(Re)&&pe(Re)}function Ce(Re){var Ee=Re.getWrapperElement(),fe=Se(Re);Ee.className=Ee.className.replace(" CodeMirror-empty","")+(fe?" CodeMirror-empty":""),fe?pe(Re):Xe(Re)}function Se(Re){return Re.lineCount()===1&&Re.getLine(0)===""}})},25717:function(Rt,It,oe){(function(re){re(oe(89780))})(function(re){var Xe={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},pe=re.Pos;re.defineOption("autoCloseBrackets",!1,function(ke,ze,Oe){Oe&&Oe!=re.Init&&(ke.removeKeyMap(xe),ke.state.closeBrackets=null),ze&&(Ce(We(ze,"pairs")),ke.state.closeBrackets=ze,ke.addKeyMap(xe))});function We(ke,ze){return ze=="pairs"&&typeof ke=="string"?ke:typeof ke=="object"&&ke[ze]!=null?ke[ze]:Xe[ze]}var xe={Backspace:Ee,Enter:fe};function Ce(ke){for(var ze=0;ze=0;xt--){var ut=lt[xt].head;ke.replaceRange("",pe(ut.line,ut.ch-1),pe(ut.line,ut.ch+1),"+delete")}}function fe(ke){var ze=Re(ke),Oe=ze&&We(ze,"explode");if(!Oe||ke.getOption("disableInput"))return re.Pass;for(var lt=ke.listSelections(),xt=0;xt0;return{anchor:new pe(ke.anchor.line,ke.anchor.ch+(ze?-1:1)),head:new pe(ke.head.line,ke.head.ch+(ze?1:-1))}}function be(ke,ze){var Oe=Re(ke);if(!Oe||ke.getOption("disableInput"))return re.Pass;var lt=We(Oe,"pairs"),xt=lt.indexOf(ze);if(xt==-1)return re.Pass;for(var at=We(Oe,"closeBefore"),ut=We(Oe,"triples"),tt=lt.charAt(xt+1)==ze,dt=ke.listSelections(),Ze=xt%2==0,kt,qe=0;qe=0&&ke.getRange(vt,pe(vt.line,vt.ch+3))==ze+ze+ze?Ne="skipThree":Ne="skip";else if(tt&&vt.ch>1&&ut.indexOf(ze)>=0&&ke.getRange(pe(vt.line,vt.ch-2),vt)==ze+ze){if(vt.ch>2&&/\bstring/.test(ke.getTokenTypeAt(pe(vt.line,vt.ch-2))))return re.Pass;Ne="addFour"}else if(tt){var Ye=vt.ch==0?" ":ke.getRange(pe(vt.line,vt.ch-1),vt);if(!re.isWordChar(Ue)&&Ye!=ze&&!re.isWordChar(Ye))Ne="both";else return re.Pass}else if(Ze&&(Ue.length===0||/\s/.test(Ue)||at.indexOf(Ue)>-1))Ne="both";else return re.Pass;if(!kt)kt=Ne;else if(kt!=Ne)return re.Pass}var me=xt%2?lt.charAt(xt-1):ze,St=xt%2?ze:lt.charAt(xt+1);ke.operation(function(){if(kt=="skip")ke.execCommand("goCharRight");else if(kt=="skipThree")for(var Pe=0;Pe<3;Pe++)ke.execCommand("goCharRight");else if(kt=="surround"){for(var pt=ke.getSelections(),Pe=0;Pe'"]=function(ot){return We(ot)}),Ee.addKeyMap(be)}});var Xe=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],pe=["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(Ee){if(Ee.getOption("disableInput"))return re.Pass;for(var fe=Ee.listSelections(),Ge=[],be=Ee.getOption("autoCloseTags"),ot=0;otHe.ch&&(xt=xt.slice(0,xt.length-ke.end+He.ch));var dt=xt.toLowerCase();if(!xt||ke.type=="string"&&(ke.end!=He.ch||!/[\"\']/.test(ke.string.charAt(ke.string.length-1))||ke.string.length==1)||ke.type=="tag"&<.close||ke.string.indexOf("/")==He.ch-ke.start-1||ut&&Se(ut,dt)>-1||Re(Ee,ze.mode.xmlCurrentContext&&ze.mode.xmlCurrentContext(Oe)||[],xt,He,!0))return re.Pass;var Ze=typeof be=="object"&&be.emptyTags;if(Ze&&Se(Ze,xt)>-1){Ge[ot]={text:"/>",newPos:re.Pos(He.line,He.ch+2)};continue}var kt=tt&&Se(tt,dt)>-1;Ge[ot]={indent:kt,text:">"+(kt?` `:"")+"",newPos:kt?re.Pos(He.line+1,0):re.Pos(He.line,He.ch+1)}}for(var qe=typeof be=="object"&&be.dontIndentOnAutoClose,ot=fe.length-1;ot>=0;ot--){var _e=Ge[ot];Ee.replaceRange(_e.text,fe[ot].head,fe[ot].anchor,"+insert");var vt=Ee.listSelections().slice(0);vt[ot]={head:_e.newPos,anchor:_e.newPos},Ee.setSelections(vt),!qe&&_e.indent&&(Ee.indentLine(_e.newPos.line,null,!0),Ee.indentLine(_e.newPos.line+1,null,!0))}}function xe(Ee,fe){for(var Ge=Ee.listSelections(),be=[],ot=fe?"/":""&&(ut+=">"),be[ze]=ut}if(Ee.replaceSelections(be),Ge=Ee.listSelections(),!ke)for(var ze=0;ze=0&&fe[Oe]==Ge;Oe--)++ze;be=ke.to;for(var Oe=1;Oe=Oe.max))return Oe.ch=0,Oe.text=Oe.cm.getLine(++Oe.line),!0}function fe(Oe){if(!(Oe.line<=Oe.min))return Oe.text=Oe.cm.getLine(--Oe.line),Oe.ch=Oe.text.length,!0}function Ge(Oe){for(;;){var lt=Oe.text.indexOf(">",Oe.ch);if(lt==-1){if(Ee(Oe))continue;return}if(!Re(Oe,lt+1)){Oe.ch=lt+1;continue}var xt=Oe.text.lastIndexOf("/",lt),at=xt>-1&&!/\S/.test(Oe.text.slice(xt+1,lt));return Oe.ch=lt+1,at?"selfClose":"regular"}}function be(Oe){for(;;){var lt=Oe.ch?Oe.text.lastIndexOf("<",Oe.ch-1):-1;if(lt==-1){if(fe(Oe))continue;return}if(!Re(Oe,lt+1)){Oe.ch=lt;continue}Ce.lastIndex=lt,Oe.ch=lt;var xt=Ce.exec(Oe.text);if(xt&&xt.index==lt)return xt}}function ot(Oe){for(;;){Ce.lastIndex=Oe.ch;var lt=Ce.exec(Oe.text);if(!lt){if(Ee(Oe))continue;return}if(!Re(Oe,lt.index+1)){Oe.ch=lt.index+1;continue}return Oe.ch=lt.index+lt[0].length,lt}}function He(Oe){for(;;){var lt=Oe.ch?Oe.text.lastIndexOf(">",Oe.ch-1):-1;if(lt==-1){if(fe(Oe))continue;return}if(!Re(Oe,lt+1)){Oe.ch=lt;continue}var xt=Oe.text.lastIndexOf("/",lt),at=xt>-1&&!/\S/.test(Oe.text.slice(xt+1,lt));return Oe.ch=lt+1,at?"selfClose":"regular"}}function ke(Oe,lt){for(var xt=[];;){var at=ot(Oe),ut,tt=Oe.line,dt=Oe.ch-(at?at[0].length:0);if(!at||!(ut=Ge(Oe)))return;if(ut!="selfClose")if(at[1]){for(var Ze=xt.length-1;Ze>=0;--Ze)if(xt[Ze]==at[2]){xt.length=Ze;break}if(Ze<0&&(!lt||lt==at[2]))return{tag:at[2],from:Xe(tt,dt),to:Xe(Oe.line,Oe.ch)}}else xt.push(at[2])}}function ze(Oe,lt){for(var xt=[];;){var at=He(Oe);if(!at)return;if(at=="selfClose"){be(Oe);continue}var ut=Oe.line,tt=Oe.ch,dt=be(Oe);if(!dt)return;if(dt[1])xt.push(dt[2]);else{for(var Ze=xt.length-1;Ze>=0;--Ze)if(xt[Ze]==dt[2]){xt.length=Ze;break}if(Ze<0&&(!lt||lt==dt[2]))return{tag:dt[2],from:Xe(Oe.line,Oe.ch),to:Xe(ut,tt)}}}}re.registerHelper("fold","xml",function(Oe,lt){for(var xt=new Se(Oe,lt.line,0);;){var at=ot(xt);if(!at||xt.line!=lt.line)return;var ut=Ge(xt);if(!ut)return;if(!at[1]&&ut!="selfClose"){var tt=Xe(xt.line,xt.ch),dt=ke(xt,at[2]);return dt&&pe(dt.from,tt)>0?{from:tt,to:dt.from}:null}}}),re.findMatchingTag=function(Oe,lt,xt){var at=new Se(Oe,lt.line,lt.ch,xt);if(!(at.text.indexOf(">")==-1&&at.text.indexOf("<")==-1)){var ut=Ge(at),tt=ut&&Xe(at.line,at.ch),dt=ut&&be(at);if(!(!ut||!dt||pe(at,lt)>0)){var Ze={from:Xe(at.line,at.ch),to:tt,tag:dt[2]};return ut=="selfClose"?{open:Ze,close:null,at:"open"}:dt[1]?{open:ze(at,dt[2]),close:Ze,at:"close"}:(at=new Se(Oe,tt.line,tt.ch,xt),{open:Ze,close:ke(at,dt[2]),at:"open"})}}},re.findEnclosingTag=function(Oe,lt,xt,at){for(var ut=new Se(Oe,lt.line,lt.ch,xt);;){var tt=ze(ut,at);if(!tt)break;var dt=new Se(Oe,lt.line,lt.ch,xt),Ze=ke(dt,tt.tag);if(Ze)return{open:tt,close:Ze}}},re.scanForClosingTag=function(Oe,lt,xt,at){var ut=new Se(Oe,lt.line,lt.ch,at?{from:0,to:at}:null);return ke(ut,xt)}})},89780:function(Rt){(function(It,oe){Rt.exports=oe()})(this,function(){"use strict";var It=navigator.userAgent,oe=navigator.platform,re=/gecko\/\d/i.test(It),Xe=/MSIE \d/.test(It),pe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(It),We=/Edge\/(\d+)/.exec(It),xe=Xe||pe||We,Ce=xe&&(Xe?document.documentMode||6:+(We||pe)[1]),Se=!We&&/WebKit\//.test(It),Re=Se&&/Qt\/\d+\.\d+/.test(It),Ee=!We&&/Chrome\//.test(It),fe=/Opera\//.test(It),Ge=/Apple Computer/.test(navigator.vendor),be=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(It),ot=/PhantomJS/.test(It),He=!We&&/AppleWebKit/.test(It)&&/Mobile\/\w+/.test(It),ke=/Android/.test(It),ze=He||ke||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(It),Oe=He||/Mac/.test(oe),lt=/\bCrOS\b/.test(It),xt=/win/i.test(oe),at=fe&&It.match(/Version\/(\d*\.\d*)/);at&&(at=Number(at[1])),at&&at>=15&&(fe=!1,Se=!0);var ut=Oe&&(Re||fe&&(at==null||at<12.11)),tt=re||xe&&Ce>=9;function dt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ze=function(a,y){var x=a.className,b=dt(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 kt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function qe(a,y){return kt(a).appendChild(y)}function _e(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 le+(y-te);le+=ue-te,le+=x-le%x,te=ue+1}}var de=function(){this.id=null,this.f=null,this.time=0,this.handler=pt(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(le,y-E);if(E+=te-b,E+=x-E%x,b=te+1,E>=y)return b}}var Et=[""];function $t(a){for(;Et.length<=a;)Et.push(Ve(Et)+" ");return Et[a]}function Ve(a){return a[a.length-1]}function Ot(a,y){for(var x=[],b=0;b"\x80"&&(a.toUpperCase()!=a.toLowerCase()||z.test(a))}function se(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 Be(a){return a.charCodeAt(0)>=768&&we.test(a)}function wt(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 Ke(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,te=0;tey||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",te),E=!0)}E||b(y,x,"ltr")}var mt=null;function Pt(a,y,x){var b;mt=null;for(var E=0;Ey)return E;te.to==y&&(te.from!=te.to&&x=="before"?b=E:mt=E),te.from==y&&(te.from!=te.to&&x!="before"?b=E:mt=E)}return b!=null?b:mt}var Mt=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]/,le=/[Lb1n]/,ue=/[1n]/;function ce(he,Te,je){this.level=he,this.from=Te,this.to=je}return function(he,Te){var je=Te=="ltr"?"L":"R";if(he.length==0||Te=="ltr"&&!b.test(he))return!1;for(var bt=he.length,ct=[],Ht=0;Ht-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){At(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 De(a){an(a),Ln(a)}function Je(a){return a.target||a.srcElement}function yt(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Oe&&a.ctrlKey&&y==1&&(y=3),y}var jt=function(){if(xe&&Ce<9)return!1;var a=_e("div");return"draggable"in a||"dragDrop"in a}(),rn;function fn(a){if(rn==null){var y=_e("span","\u200B");qe(a,_e("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(rn=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&Ce<8))}var x=rn?_e("span","\u200B"):_e("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=qe(a,document.createTextNode("A\u062EA")),x=Ne(y,0,1).getBoundingClientRect(),b=Ne(y,1,2).getBoundingClientRect();return kt(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),le=te.indexOf("\r");le!=-1?(x.push(te.slice(0,le)),y+=le+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=_e("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=qe(a,_e("span","x")),x=y.getBoundingClientRect(),b=Ne(y,0,1).getBoundingClientRect();return Kn=Math.abs(x.left-b.left)>1}var Dn={},nn={};function yn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Dn[a]=y}function un(a,y){nn[a]=y}function Tn(a){if(typeof a=="string"&&nn.hasOwnProperty(a))a=nn[a];else if(a&&typeof a.name=="string"&&nn.hasOwnProperty(a.name)){var y=nn[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 le in y.modeProps)b[le]=y.modeProps[le];return b}var zn={};function Bn(a,y){var x=zn.hasOwnProperty(a)?zn[a]:zn[a]={};Dt(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 Ct(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?ye(x,Ct(a,x).text.length):st(y,Ct(a,y.line).text.length)}function st(a,y){var x=a.ch;return x==null||x>y?ye(a.line,y):x<0?ye(a.line,0):a}function _t(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,Te){return E.push(he,Te)},te,b);for(var le=x.state,ue=function(he){x.baseTokens=E;var Te=a.state.overlays[he],je=1,bt=0;x.state=!0,qn(a,y.text,Te.mode,x,function(ct,Ht){for(var tn=je;btct&&E.splice(je,1,ct,E[je+1],mn),je+=2,bt=Math.min(ct,mn)}if(Ht)if(Te.opaque)E.splice(tn,je-tn,ct,"overlay "+Ht),je=tn+2;else for(;tna.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),le=te>b.first&&Ct(b,te-1).stateAfter,ue=le?ln.fromSaved(b,le,te):new ln(b,Qn(b.mode),te);return b.iter(te,y,function(ce){Jn(a,ce.text,ue);var he=ue.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,le;y=ht(E,y);var ue=Ct(E,y.line),ce=Xn(a,y.line,x),he=new jn(ue.text,a.options.tabSize,ce),Te;for(b&&(Te=[]);(b||he.posa.options.maxHighlightLength?(ue=!1,le&&Jn(a,y,b,Te.pos),Te.pos=y.length,je=null):je=ur(Sn(x,Te,b.state,bt),te),bt){var ct=bt[0].name;ct&&(je="m-"+(je?ct+" "+je:ct))}if(!ue||he!=je){for(;cele;--ue){if(ue<=te.first)return te.first;var ce=Ct(te,ue-1),he=ce.stateAfter;if(he&&(!x||ue+(he instanceof hn?he.lookAhead:0)<=te.modeFrontier))return ue;var Te=ve(ce.text,null,a.options.tabSize);(E==null||b>Te)&&(E=ue-1,b=Te)}return E}function ir(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontierx;b--){var E=Ct(a,b).stateAfter;if(E&&(!(E instanceof hn)||b+E.lookAhead=y:te.to>y);(b||(b=[])).push(new cr(le,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(ue||te.from==y&&le.type=="bookmark"&&(!x||te.marker.insertLeft)){var ce=te.from==null||(le.inclusiveLeft?te.from<=y:te.from0&&ue)for(var Wn=0;Wn0)){var Te=[ce,1],je=Le(he.from,ue.from),bt=Le(he.to,ue.to);(je<0||!le.inclusiveLeft&&!je)&&Te.push({from:he.from,to:ue.from}),(bt>0||!le.inclusiveRight&&!bt)&&Te.push({from:ue.to,to:he.to}),E.splice.apply(E,Te),ce+=Te.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=Ct(a,y),le=tr&&te.markedSpans;if(le)for(var ue=0;ue=0&&je<=0||Te<=0&&je>=0)&&(Te<=0&&(ce.marker.inclusiveRight&&E.inclusiveLeft?Le(he.to,x)>=0:Le(he.to,x)>0)||Te>=0&&(ce.marker.inclusiveRight&&E.inclusiveLeft?Le(he.from,b)<=0:Le(he.from,b)<0)))return!0}}}function Bt(a){for(var y;y=Gn(a);)a=y.find(-1,!0).line;return a}function En(a){for(var y;y=Vt(a);)a=y.find(1,!0).line;return a}function On(a){for(var y,x;y=Vt(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function Ut(a,y){var x=Ct(a,y),b=Bt(x);return x==b?y:Me(b)}function Kt(a,y){if(y>a.lastLine())return y;var x=Ct(a,y),b;if(!xn(a,x))return y;for(;b=Vt(x);)x=b.find(1,!0).line;return Me(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 Me(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=vt("span",null,null,Se?"padding-right: .1px":null),b={pre:vt("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,le=void 0;b.pos=0,b.addToken=Fi,An(a.display.measure)&&(le=Wt(te,a.doc.direction))&&(b.addToken=mi(b.addToken,le)),b.map=[];var ue=y!=a.display.externalMeasured&&Me(te);Ar(te,b,Zn(a,te,ue)),te.styleClasses&&(te.styleClasses.bgClass&&(b.bgClass=St(te.styleClasses.bgClass,b.bgClass||"")),te.styleClasses.textClass&&(b.textClass=St(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(Se){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=St(b.pre.className,b.textClass||"")),b}function Di(a){var y=_e("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,le){if(y){var ue=a.splitSpaces?xi(y,a.trailingSpace):y,ce=a.cm.state.specialChars,he=!1,Te;if(!ce.test(y))a.col+=y.length,Te=document.createTextNode(ue),a.map.push(a.pos,a.pos+y.length,Te),xe&&Ce<9&&(he=!0),a.pos+=y.length;else{Te=document.createDocumentFragment();for(var je=0;;){ce.lastIndex=je;var bt=ce.exec(y),ct=bt?bt.index-je:y.length-je;if(ct){var Ht=document.createTextNode(ue.slice(je,je+ct));xe&&Ce<9?Te.appendChild(_e("span",[Ht])):Te.appendChild(Ht),a.map.push(a.pos,a.pos+ct,Ht),a.col+=ct,a.pos+=ct}if(!bt)break;je+=ct+1;var tn=void 0;if(bt[0]==" "){var mn=a.cm.options.tabSize,kn=mn-a.col%mn;tn=Te.appendChild(_e("span",$t(kn),"cm-tab")),tn.setAttribute("role","presentation"),tn.setAttribute("cm-text"," "),a.col+=kn}else bt[0]=="\r"||bt[0]==` `?(tn=Te.appendChild(_e("span",bt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),tn.setAttribute("cm-text",bt[0]),a.col+=1):(tn=a.cm.options.specialCharPlaceholder(bt[0]),tn.setAttribute("cm-text",bt[0]),xe&&Ce<9?Te.appendChild(_e("span",[tn])):Te.appendChild(tn),a.col+=1);a.map.push(a.pos,a.pos+1,tn),a.pos++}}if(a.trailingSpace=ue.charCodeAt(y.length-1)==32,x||b||E||he||te||le){var Rn=x||"";b&&(Rn+=b),E&&(Rn+=E);var Mn=_e("span",[Te],Rn,te);if(le)for(var Wn in le)le.hasOwnProperty(Wn)&&Wn!="style"&&Wn!="class"&&Mn.setAttribute(Wn,le[Wn]);return a.content.appendChild(Mn)}a.content.appendChild(Te)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;Ehe&&je.from<=he));bt++);if(je.to>=Te)return a(x,b,E,te,le,ue,ce);a(x,b.slice(0,je.to-he),E,te,null,ue,ce),te=null,b=b.slice(je.to-he),he=je.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 le=1;lece||Sr.collapsed&&nr.to==ce&&nr.from==ce)){if(nr.to!=null&&nr.to!=ce&&ct>nr.to&&(ct=nr.to,tn=""),Sr.className&&(Ht+=" "+Sr.className),Sr.css&&(bt=(bt?bt+";":"")+Sr.css),Sr.startStyle&&nr.from==ce&&(mn+=" "+Sr.startStyle),Sr.endStyle&&nr.to==ct&&(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&&ct>nr.from&&(ct=nr.from)}if(Wn)for(var li=0;li=ue)break;for(var Oi=Math.min(ue,ct);;){if(Te){var Ei=ce+Te.length;if(!kn){var qr=Ei>Oi?Te.slice(0,Oi-ce):Te;y.addToken(y,qr,je?je+Ht:Ht,mn,ce+qr.length==ct?tn:"",bt,Rn)}if(Ei>=Oi){Te=Te.slice(Oi-ce),ce=Oi;break}ce=Ei,mn=""}Te=E.slice(te,te=x[he++]),je=_r(x[he++],y.cm.options)}}}function to(a,y,x){this.line=y,this.rest=On(y),this.size=this.rest?Me(Ve(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=Bt(y);var x=Me(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,qe(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-ue,E=te-1,y>=ce&&(le="right")),E!=null){if(b=a[he+2],ue==ce&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;he&&a[he-2]==a[he-3]&&a[he-1].insertLeft;)b=a[(he-=3)+2],le="left";if(x=="right"&&E==ce-ue)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,le=E.start,ue=E.end,ce=E.collapse,he;if(te.nodeType==3){for(var Te=0;Te<4;Te++){for(;le&&Be(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ue0&&(ce=b="right");var je;a.options.lineWrapping&&(je=te.getClientRects()).length>1?he=je[b=="right"?je.length-1:0]:he=te.getBoundingClientRect()}if(xe&&Ce<9&&!le&&(!he||!he.left&&!he.right)){var bt=te.parentNode.getClientRects()[0];bt?he={left:bt.left,right:bt.left+Vi(a.display),top:bt.top,bottom:bt.bottom}:he=ba}for(var ct=he.top-y.rect.top,Ht=he.bottom-y.rect.top,tn=(ct+Ht)/2,mn=y.view.measure.heights,kn=0;kn=b.text.length?(ce=b.text.length,he="before"):ce<=0&&(ce=0,he="after"),!ue)return le(he=="before"?ce-1:ce,he=="before");function Te(Ht,tn,mn){var kn=ue[tn],Rn=kn.level==1;return le(mn?Ht-1:Ht,Rn!=mn)}var je=Pt(ue,ce,he),bt=mt,ct=Te(ce,je,he=="before");return bt!=null&&(ct.other=Te(ce,bt,he!="before")),ct}function Pr(a,y){var x=0;y=ht(a.doc,y),a.options.lineWrapping||(x=Vi(a.display)*y.ch);var b=Ct(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=ye(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=$e(b,x),te=b.first+b.size-1;if(E>te)return xr(b.first+b.size-1,Ct(b,te).text.length,null,1,1);y<0&&(y=0);for(var le=Ct(b,E);;){var ue=Gi(a,le,E,y,x),ce=qt(le,ue.ch+(ue.xRel>0||ue.outside>0?1:0));if(!ce)return ue;var he=ce.find(1);if(he.line==E)return he;le=Ct(b,E=he.line)}}function fi(a,y,x,b){b-=Xo(y);var E=y.text.length,te=Fe(function(le){return Wi(a,x,le-1).bottom<=b},E,0);return E=Fe(function(le){return Wi(a,x,le).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),le=Xo(y),ue=0,ce=y.text.length,he=!0,Te=Wt(y,a.doc.direction);if(Te){var je=(a.options.lineWrapping?ro:ji)(a,y,x,te,Te,b,E);he=je.level!=1,ue=he?je.from:je.to-1,ce=he?je.to:je.from-1}var bt=null,ct=null,Ht=Fe(function(sr){var nr=Wi(a,te,sr);return nr.top+=le,nr.bottom+=le,ri(nr,b,E,!1)?(nr.top<=E&&nr.left<=b&&(bt=sr,ct=nr),!0):!1},ue,ce),tn,mn,kn=!1;if(ct){var Rn=b-ct.left=Wn.bottom?1:0}return Ht=wt(y.text,Ht,1),xr(x,Ht,mn,kn,b-tn)}function ji(a,y,x,b,E,te,le){var ue=Fe(function(je){var bt=E[je],ct=bt.level!=1;return ri(Ci(a,ye(x,ct?bt.to:bt.from,ct?"before":"after"),"line",y,b),te,le,!0)},0,E.length-1),ce=E[ue];if(ue>0){var he=ce.level!=1,Te=Ci(a,ye(x,he?ce.from:ce.to,he?"after":"before"),"line",y,b);ri(Te,te,le,!0)&&Te.top>le&&(ce=E[ue-1])}return ce}function ro(a,y,x,b,E,te,le){var ue=fi(a,y,b,le),ce=ue.begin,he=ue.end;/\s/.test(y.text.charAt(he-1))&&he--;for(var Te=null,je=null,bt=0;bt=he||ct.to<=ce)){var Ht=ct.level!=1,tn=Wi(a,b,Ht?Math.min(he,ct.to)-1:Math.max(ce,ct.from)).right,mn=tnmn)&&(Te=ct,je=mn)}}return Te||(Te=E[E.length-1]),Te.fromhe&&(Te={from:Te.from,to:he,level:Te.level}),Te}var Ii;function Li(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Ii==null){Ii=_e("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)Ii.appendChild(document.createTextNode("x")),Ii.appendChild(_e("br"));Ii.appendChild(document.createTextNode("x"))}qe(a.measure,Ii);var x=Ii.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),kt(a.measure),x||1}function Vi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=_e("span","xxxxxxxxxx"),x=_e("pre",[y],"CodeMirror-line-like");qe(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,le=0;te;te=te.nextSibling,++le){var ue=a.display.gutterSpecs[le].className;x[ue]=te.offsetLeft+te.clientLeft+E,b[ue]=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 le=0;le0&&(he=Ct(a.doc,ce.line).text).length==ce.ch){var Te=ve(he,he.length,a.options.tabSize)-he.length;ce=ye(ce.line,Math.max(0,Math.round((te-Ji(a.display).left)/Vi(a.display))-Te))}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 le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ue=Ea(a,y,y,-1),ce=Ea(a,x,x+b,1);ue&&ce?(E.view=E.view.slice(0,ue.index).concat(ni(a,ue.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 le=te.changes||(te.changes=[]);rt(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=So(a,y),te,le=a.display.view;if(!tr||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ue=a.display.viewFrom,ce=0;ce0){if(E==le.length-1)return null;te=ue+le[E].size-y,E++}else te=ue-y;y+=te,x+=te}for(;Ut(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[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||ue.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,me(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Se&&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,Ze(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||Te<-.005)&&(Un(E.line,le),Dl(E.line),E.rest))for(var je=0;jea.display.sizerWidth){var bt=Math.ceil(ue/Vi(a.display));bt>a.display.maxLineLength&&(a.display.maxLineLength=bt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Dl(a){if(a.widgets)for(var y=0;y=le&&(te=$e(y,rr(Ct(y,ce))-a.wrapper.clientHeight),le=ce)}return{from:te,to:Math.max(le,te+1)}}function js(a,y){if(!gt(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&&!ot){var te=_e("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?ye(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?ye(y.line,y.ch+1,"before"):y);for(var te=0;te<5;te++){var le=!1,ue=Ci(a,y),ce=!x||x==y?ue:Ci(a,x);E={left:Math.min(ue.left,ce.left),top:Math.min(ue.top,ce.top)-b,right:Math.max(ue.left,ce.left),bottom:Math.max(ue.bottom,ce.bottom)+b};var he=Ja(a,E),Te=a.doc.scrollTop,je=a.doc.scrollLeft;if(he.scrollTop!=null&&(qo(a,he.scrollTop),Math.abs(a.doc.scrollTop-Te)>1&&(le=!0)),he.scrollLeft!=null&&(Eo(a,he.scrollLeft),Math.abs(a.doc.scrollLeft-je)>1&&(le=!0)),!le)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),le={};y.bottom-y.top>te&&(y.bottom=y.top+te);var ue=a.doc.height+Hi(x),ce=y.topue-b;if(y.topE+te){var Te=Math.min(y.top,(he?ue:y.bottom)-te);Te!=E&&(le.scrollTop=Te)}var je=a.options.fixedGutter?0:x.gutters.offsetWidth,bt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-je,ct=Qi(a)-x.gutters.offsetWidth,Ht=y.right-y.left>ct;return Ht&&(y.right=y.left+ct),y.left<10?le.scrollLeft=0:y.leftct+bt-3&&(le.scrollLeft=y.right+(Ht?0:10)-ct),le}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=_e("div",[_e("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=_e("div",[_e("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),At(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),At(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&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=Oe&&!be?"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&&Ze(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),At(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&&me(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 le=te.styles,ue=te.text.length>a.options.maxHighlightLength?_n(y.mode,b.state):null,ce=cn(a,te,b,!0);ue&&(b.state=ue),te.styles=ce.styles;var he=te.styleClasses,Te=ce.classes;Te?te.styleClasses=Te:he&&(te.styleClasses=null);for(var je=!le||le.length!=te.styles.length||he!=Te&&(!he||!Te||he.bgClass!=Te.bgClass||he.textClass!=Te.textClass),bt=0;!je&&btx)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),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFromle&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),tr&&(te=Ut(a.doc,te),le=Kt(a.doc,le));var ue=te!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Hs(a,te,le),x.viewOffset=rr(Ct(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ce=wl(a);if(!ue&&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),kt(x.cursorDiv),kt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ue&&(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,le=te.firstChild;function ue(Ht){var tn=Ht.nextSibling;return Se&&Oe&&a.display.currentWheelTarget==Ht?Ht.style.display="none":Ht.parentNode.removeChild(Ht),tn}for(var ce=b.view,he=b.viewFrom,Te=0;Te-1&&(ct=!1),lo(a,je,he,x)),ct&&(kt(je.lineNumber),je.lineNumber.appendChild(document.createTextNode(Ie(a.options,he)))),le=je.node.nextSibling}he+=je.size}for(;le;)le=ue(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+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",le=0;lele.clientWidth,ce=le.scrollHeight>le.clientHeight;if(b&&ue||E&&ce){if(E&&Oe&&Se){e:for(var he=y.target,Te=te.view;he!=le;he=he.parentNode)for(var je=0;je=0&&Le(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 Ft(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(bt,ct){return Le(bt.from(),ct.from())}),x=rt(y,E);for(var te=1;te0:ce>=0){var he=Qt(ue.from(),le.from()),Te=Ft(ue.to(),le.to()),je=ue.empty()?le.from()==le.head:ue.from()==ue.head;te<=x&&--x,y.splice(--te,2,new Fr(je?Te:he,je?he:Te))}}return new Ri(y,x)}function po(a,y){return new Ri([new Fr(a,y||a)],0)}function mo(a){return a.text?ye(a.from.line+a.text.length-1,Ve(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Hl(a,y){if(Le(a,y.from)<0)return a;if(Le(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),ye(x,b)}function il(a,y){for(var x=[],b=0;b1&&a.remove(ue.line+1,Ht-1),a.insert(ue.line+1,kn)}Gr(a,"change",a,y)}function vo(a,y,x){function b(E,te,le){if(E.linked)for(var ue=0;ue1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Ve(a.done)}function Gl(a,y,x,b){var E=a.history;E.undone.length=0;var te=+new Date,le,ue;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)=="*"))&&(le=lu(E,E.lastOp==b)))ue=Ve(le.changes),Le(y.from,y.to)==0&&Le(y.from,ue.to)==0?ue.to=mo(y):le.changes.push(ll(a,y));else{var ce=Ve(E.done);for((!ce||!ce.ranges)&&Oa(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);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,ue||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,Ve(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=Ve(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(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[te]=le.markedSpans),++te})}function cu(a){if(!a)return null;for(var y,x=0;x-1&&(Ve(ue)[je]=he[je],delete he[je])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var te=Le(y,E)<0;te!=Le(x,E)<0?(E=y,y=x):te!=Le(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:ue.to>y.ch))){if(E&&(on(ce,"beforeCursorEnter"),ce.explicitlyCleared))if(te.markedSpans){--le;continue}else break;if(!ce.atomic)continue;if(x){var je=ce.find(b<0?1:-1),bt=void 0;if((b<0?Te:he)&&(je=es(a,je,-b,je&&je.line==y.line?te:null)),je&&je.line==y.line&&(bt=Le(je,x))&&(b<0?bt<0:bt>0))return Fo(a,je,y,b,E)}var ct=ce.find(b<0?-1:1);return(b<0?he:Te)&&(ct=es(a,ct,b,ct.line==y.line?te:null)),ct?Fo(a,ct,y,b,E):null}}return y}function Na(a,y,x,b,E){var te=b||1,le=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 le||(a.cantEdit=!0,ye(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?ht(a,ye(y.line-1)):null:x>0&&y.ch==(b||Ct(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]==""&&Le(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&&rt(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,le=a.sel,ue=y=="undo"?E.done:E.undone,ce=y=="undo"?E.undone:E.done,he=0;he=0;--ct){var Ht=bt(ct);if(Ht)return Ht.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Ri(Ot(a.sel.ranges,function(E){return new Fr(ye(E.anchor.line+y,E.anchor.ch),ye(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:ye(te,Ct(a,te).text.length),text:[y.text[0]],origin:y.origin}),y.removed=Zt(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Ba(a,x,Ae),a.cantEdit&&Na(a,ye(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,te=y.from,le=y.to,ue=!1,ce=te.line;a.options.lineWrapping||(ce=Me(Bt(Ct(b,te.line))),b.iter(ce,le.line+1,function(ct){if(ct==E.maxLine)return ue=!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(ct){var Ht=Mr(ct);Ht>E.maxLineLength&&(E.maxLine=ct,E.maxLineLength=Ht,E.maxLineChanged=!0,ue=!1)}),ue&&(a.curOp.updateMaxLine=!0)),ir(b,te.line),na(a,400);var he=y.text.length-(le.line-te.line)-1;y.full?wi(a):te.line==le.line&&y.text.length==1&&!jl(a.doc,y)?fo(a,te.line,"text"):wi(a,te.line,le.line+1,he);var Te=zt(a,"changes"),je=zt(a,"change");if(je||Te){var bt={from:te,to:le,text:y.text,removed:y.removed,origin:y.origin};je&&Gr(a,"change",a,bt),Te&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(bt)}a.display.selForContextMenu=null}function Ho(a,y,x,b,E){var te;b||(b=x),Le(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 ue=[];this.collapse(ue),this.children=[new la(ue)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y50){for(var le=E.lines.length%25+25,ue=le;ue10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;ba.display.maxLineLength&&(a.display.maxLine=he,a.display.maxLineLength=Te,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||le==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=vt("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 ue=y.line,ce=a.cm,he;if(a.iter(ue,x.line+1,function(je){ce&&te.collapsed&&!ce.options.lineWrapping&&Bt(je)==ce.display.maxLine&&(he=!0),te.collapsed&&ue!=y.line&&Un(je,0),or(je,new cr(te,ue==y.line?y.ch:null,ue==x.line?x.ch:null)),++ue}),te.collapsed&&a.iter(y.line,x.line+1,function(je){xn(a,je)&&Un(je,0)}),te.clearOnEnter&&At(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 Te=y.line;Te<=x.line;Te++)fo(ce,Te,"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]);ue?Xl(this,ue):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=ht(this,a),y=ht(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(te){var le=te.markedSpans;if(le)for(var ue=0;ue=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}),ht(this,ye(x,y))},indexFromPos:function(a){a=ht(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 Te=a.dataTransfer.getData("Text");if(Te){var je;if(y.state.draggingText&&!y.state.draggingText.copy&&(je=y.listSelections()),Ba(y.doc,po(x,x)),je)for(var bt=0;bt=0;ue--)Ho(a.doc,"",b[ue].from,b[ue].to,"+delete");Bo(a)})}function cl(a,y,x){var b=wt(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 ye(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var te=Wt(x,y.doc.direction);if(te){var le=E<0?Ve(te):te[0],ue=E<0==(le.level==1),ce=ue?"after":"before",he;if(le.level>0||y.doc.direction=="rtl"){var Te=uo(y,x);he=E<0?x.text.length-1:0;var je=Wi(y,Te,he).top;he=Fe(function(bt){return Wi(y,Te,bt).top==je},E<0==(le.level==1)?le.from:le.to-1,he),ce=="before"&&(he=cl(x,he,1))}else he=E<0?le.to:le.from;return new ye(b,he,ce)}}return new ye(b,E<0?x.text.length:0,E<0?"before":"after")}function Du(a,y,x,b){var E=Wt(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=Pt(E,x.ch,x.sticky),le=E[te];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from=le.from&&bt>=Te.begin)){var ct=je?"before":"after";return new ye(x.line,bt,ct)}}var Ht=function(kn,Rn,Mn){for(var Wn=function($r,li){return li?new ye(x.line,ue($r,1),"before"):new ye(x.line,$r,"after")};kn>=0&&kn0==(sr.level!=1),Sr=nr?Mn.begin:ue(Mn.end,-1);if(sr.from<=Sr&&Sr0?Te.end:ue(Te.begin,-1);return mn!=null&&!(b>0&&mn==y.text.length)&&(tn=Ht(b>0?0:E.length-1,b,he(mn)),tn)?tn:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ae)},killLine:function(a){return Zo(a,function(y){if(y.empty()){var x=Ct(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line0)E=new ye(E.line,E.ch+1),a.replaceRange(te.charAt(E.ch-1)+te.charAt(E.ch-2),ye(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Ct(a.doc,E.line-1).text;le&&(E=new ye(E.line,1),a.replaceRange(te.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),ye(E.line-1,le.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&&Le(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(!(gt(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,ui(x,a)){Se||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=wo(y,a),E=yt(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):Je(a)==x.scroller&&an(a):E==2?(b&&Aa(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(tt?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(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ue=le(a,x)!=ft}finally{a.state.suppressEdits=!1}return ue})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var te=lt?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=Oe?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Oe?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){xe?setTimeout(pt(kl,a),0):a.curOp.focus=Ye();var E=Ru(a,x,b),te=a.doc.sel,le;a.options.dragDrop&&jt&&!a.isReadOnly()&&x=="single"&&(le=te.contains(y))>-1&&(Le((le=te.ranges[le]).from(),y)<0||y.xRel>0)&&(Le(le.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,le=oi(a,function(he){Se&&(E.scroller.draggable=!1),a.state.draggingText=!1,Jt(E.wrapper.ownerDocument,"mouseup",le),Jt(E.wrapper.ownerDocument,"mousemove",ue),Jt(E.scroller,"dragstart",ce),Jt(E.scroller,"drop",le),te||(an(he),b.addNew||Aa(a.doc,x,null,null,b.extend),Se&&!Ge||xe&&Ce==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ue=function(he){te=te||Math.abs(y.clientX-he.clientX)+Math.abs(y.clientY-he.clientY)>=10},ce=function(){return te=!0};Se&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),At(E.wrapper.ownerDocument,"mouseup",le),At(E.wrapper.ownerDocument,"mousemove",ue),At(E.scroller,"dragstart",ce),At(E.scroller,"drop",le),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(ye(y.line,0),ht(a.doc,ye(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 le,ue,ce=te.sel,he=ce.ranges;if(b.addNew&&!b.extend?(ue=te.sel.contains(x),ue>-1?le=he[ue]:le=new Fr(x,x)):(le=te.sel.primary(),ue=te.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Fr(x,x)),x=wo(a,y,!0,!0),ue=-1;else{var Te=Ms(a,x,b.unit);b.extend?le=sl(le,Te.anchor,Te.head,b.extend):le=Te}b.addNew?ue==-1?(ue=he.length,hi(te,Ui(a,he.concat([le]),ue),{scroll:!1,origin:"*mouse"})):he.length>1&&he[ue].empty()&&b.unit=="char"&&!b.extend?(hi(te,Ui(a,he.slice(0,ue).concat(he.slice(ue+1)),0),{scroll:!1,origin:"*mouse"}),ce=te.sel):ul(te,ue,le,Qe):(ue=0,hi(te,new Ri([le],0),Qe),ce=te.sel);var je=x;function bt(Mn){if(Le(je,Mn)!=0)if(je=Mn,b.unit=="rectangle"){for(var Wn=[],sr=a.options.tabSize,nr=ve(Ct(te,x.line).text,x.ch,sr),Sr=ve(Ct(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=Ct(te,Ur).text,qr=en(Ei,$r,sr);$r==li?Wn.push(new Fr(ye(Ur,qr),ye(Ur,qr))):Ei.length>qr&&Wn.push(new Fr(ye(Ur,qr),ye(Ur,en(Ei,li,sr))))}Wn.length||Wn.push(new Fr(x,x)),hi(te,Ui(a,ce.ranges.slice(0,ue).concat(Wn),ue),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Mn)}else{var ki=le,di=Ms(a,Mn,b.unit),ii=ki.anchor,ei;Le(di.anchor,ii)>0?(ei=di.head,ii=Qt(ki.from(),di.anchor)):(ei=di.anchor,ii=Ft(ki.to(),di.head));var Kr=ce.ranges.slice(0);Kr[ue]=Wu(a,new Fr(ht(te,ii),ei)),hi(te,Ui(a,Kr,ue),Qe)}}var ct=E.wrapper.getBoundingClientRect(),Ht=0;function tn(Mn){var Wn=++Ht,sr=wo(a,Mn,!0,b.unit=="rectangle");if(sr)if(Le(sr,je)!=0){a.curOp.focus=Ye(),bt(sr);var nr=Da(E,te);(sr.line>=nr.to||sr.linect.bottom?20:0;Sr&&setTimeout(oi(a,function(){Ht==Wn&&(E.scroller.scrollTop+=Sr,tn(Mn))}),50)}}function mn(Mn){a.state.selectingText=!1,Ht=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||!yt(Mn)?mn(Mn):tn(Mn)}),Rn=oi(a,mn);a.state.selectingText=Rn,At(E.wrapper.ownerDocument,"mousemove",kn),At(E.wrapper.ownerDocument,"mouseup",Rn)}function Wu(a,y){var x=y.anchor,b=y.head,E=Ct(a.doc,x.line);if(Le(x,b)==0&&x.sticky==b.sticky)return y;var te=Wt(E);if(!te)return y;var le=Pt(te,x.ch,x.sticky),ue=te[le];if(ue.from!=x.ch&&ue.to!=x.ch)return y;var ce=le+(ue.from==x.ch==(ue.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 Te=Pt(te,b.ch,b.sticky),je=Te-le||(b.ch-x.ch)*(ue.level==1?-1:1);Te==ce-1||Te==ce?he=je<0:he=je>0}var bt=te[ce+(he?-1:0)],ct=he==(bt.level==1),Ht=ct?bt.from:bt.to,tn=ct?"after":"before";return x.ch==Ht&&x.sticky==tn?y:new Fr(new ye(x.line,Ht,tn),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(bt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&an(y);var le=a.display,ue=le.lineDiv.getBoundingClientRect();if(te>ue.bottom||!zt(a,x))return bn(y);te-=ue.top-le.viewOffset;for(var ce=0;ce=E){var Te=$e(a.doc,te),je=a.display.gutterSpecs[ce];return on(a,x,a,Te,je.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)||gt(a,y,"contextmenu")||tt||a.display.input.onContextMenu(y)}function ju(a,y){return zt(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,le){a.defaults[b]=E,te&&(y[b]=le?function(ue,ce,he){he!=$o&&te(ue,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=[],le=b.doc.first;b.doc.iter(function(ce){for(var he=0;;){var Te=ce.text.indexOf(E,he);if(Te==-1)break;he=Te+E.length,te.push(ye(le,Te))}le++});for(var ue=te.length-1;ue>=0;ue--)Ho(b.doc,E,te[ue],ye(te[ue].line,te[ue].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",ze?"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",!xt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){Is(b),ra(b)},!0),x("keyMap","default",function(b,E,te){var le=za(E),ue=te!=$o&&za(te);ue&&ue.detach&&ue.detach(b,le),le.attach&&le.attach(b,ue||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?At: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?(me(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ze(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?Dt(y):{},Dt(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&&!ze&&te.input.focus(),xe&&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&&!ze||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Xa(x)},20):Ao(this);for(var le in Wa)Wa.hasOwnProperty(le)&&Wa[le](this,y[le],$o);Nl(this),y.finishInit&&y.finishInit(this);for(var ue=0;ue20*20}At(y.scroller,"touchstart",function(ce){if(!gt(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)}}),At(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),At(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 Te=a.coordsChar(y.activeTouch,"page"),je;!he.prev||le(he,he.prev)?je=new Fr(Te,Te):!he.prev.prev||le(he,he.prev.prev)?je=a.findWordAt(Te):je=new Fr(ye(Te.line,0),ht(a.doc,ye(Te.line+1,0))),a.setSelection(je.anchor,je.head),a.focus(),an(ce)}E()}),At(y.scroller,"touchcancel",E),At(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),on(a,"scroll",a))}),At(y.scroller,"mousewheel",function(ce){return zl(a,ce)}),At(y.scroller,"DOMMouseScroll",function(ce){return zl(a,ce)}),At(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ce){gt(a,ce)||De(ce)},over:function(ce){gt(a,ce)||(Cu(a,ce),De(ce))},start:function(ce){return xu(a,ce)},drop:oi(a,bu),leave:function(ce){gt(a,ce)||fs(a)}};var ue=y.input.getField();At(ue,"keyup",function(ce){return Ss.call(a,ce)}),At(ue,"keydown",oi(a,ws)),At(ue,"keypress",oi(a,Es)),At(ue,"focus",function(ce){return Xa(a,ce)}),At(ue,"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 le=a.options.tabSize,ue=Ct(E,y),ce=ve(ue.text,null,le);ue.stateAfter&&(ue.stateAfter=null);var he=ue.text.match(/^\s*/)[0],Te;if(!b&&!/\S/.test(ue.text))Te=0,x="not";else if(x=="smart"&&(Te=E.mode.indent(te,ue.text.slice(he.length),ue.text),Te==ft||Te>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Te=ve(Ct(E,y-1).text,null,le):Te=0:x=="add"?Te=ce+a.options.indentUnit:x=="subtract"?Te=ce-a.options.indentUnit:typeof x=="number"&&(Te=ce+x),Te=Math.max(0,Te);var je="",bt=0;if(a.options.indentWithTabs)for(var ct=Math.floor(Te/le);ct;--ct)bt+=le,je+=" ";if(btle,ce=pn(y),he=null;if(ue&&b.ranges.length>1)if(Ki&&Ki.text.join(` `)==y){if(b.ranges.length%Ki.text.length==0){he=[];for(var Te=0;Te=0;bt--){var ct=b.ranges[bt],Ht=ct.from(),tn=ct.to();ct.empty()&&(x&&x>0?Ht=ye(Ht.line,Ht.ch-x):a.state.overwrite&&!ue?tn=ye(tn.line,Math.min(Ct(te,tn.line).text.length,tn.ch+Ve(ce).length)):ue&&Ki&&Ki.lineWise&&Ki.text.join(` `)==ce.join(` `)&&(Ht=tn=ye(Ht.line,0)));var mn={from:Ht,to:tn,text:he?he[bt%he.length]:ce,origin:E||(ue?"paste":a.state.cutIncoming>le?"cut":"+input")};zo(a.doc,mn),Gr(a,"inputRead",a,mn)}y&&!ue&&Os(a,y),Bo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=je),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),le=!1;if(te.electricChars){for(var ue=0;ue-1){le=ga(a,E.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(Ct(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=ga(a,E.head.line,"smart"));le&&Gr(a,"electricInput",a,E.head.line)}}}function As(a){for(var y=[],x=[],b=0;bte&&(ga(this,ue.head.line,b,!0),te=ue.head.line,le==this.doc.sel.primIndex&&Bo(this));else{var ce=ue.from(),he=ue.to(),Te=Math.max(te,ce.line);te=Math.min(this.lastLine(),he.line-(he.ch?0:1))+1;for(var je=Te;je0&&ul(this.doc,le,new Fr(ce,bt[le].to()),Ae)}}}),getTokenAt:function(b,E){return Hn(this,b,E)},getLineTokens:function(b,E){return Hn(this,ye(b),E,!0)},getTokenTypeAt:function(b){b=ht(this.doc,b);var E=Zn(this,Ct(this.doc,b.line)),te=0,le=(E.length-1)/2,ue=b.ch,ce;if(ue==0)ce=E[2];else for(;;){var he=te+le>>1;if((he?E[he*2-1]:0)>=ue)le=he;else if(E[he*2+1]ce&&(b=ce,le=!0),ue=Ct(this.doc,b)}else ue=b;return To(this,ue,{top:0,left:0},E||"page",te||le).top+(le?this.doc.height-rr(ue):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,le,ue){var ce=this.display;b=Ci(this,ht(this.doc,b));var he=b.bottom,Te=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),ce.sizer.appendChild(E),le=="over")he=b.top;else if(le=="above"||le=="near"){var je=Math.max(ce.wrapper.clientHeight,this.doc.height),bt=Math.max(ce.sizer.clientWidth,ce.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>je)&&b.top>E.offsetHeight?he=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=je&&(he=b.bottom),Te+E.offsetWidth>bt&&(Te=bt-E.offsetWidth)}E.style.top=he+"px",E.style.left=E.style.right="",ue=="right"?(Te=ce.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ue=="left"?Te=0:ue=="middle"&&(Te=(ce.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Te+"px"),te&&$s(this,{left:Te,top:he,right:Te+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,le){var ue=1;E<0&&(ue=-1,E=-E);for(var ce=ht(this.doc,b),he=0;he0&&Te(te.charAt(le-1));)--le;for(;ue.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,le){a.registerHelper(b,E,le),x[b]._global.push({pred:te,val:le})}}function yl(a,y,x,b,E){var te=y,le=x,ue=Ct(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 ye(Rn,y.ch,y.sticky),ue=Ct(a,Rn))}function Te(Rn){var Mn;if(b=="codepoint"){var Wn=ue.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Wn)?Mn=null:Mn=new ye(y.line,Math.max(0,Math.min(ue.text.length,y.ch+x*(Wn>=55296&&Wn<56320?2:1))),-x)}else E?Mn=Du(a.cm,ue,y,x):Mn=dl(ue,y,x);if(Mn==null)if(!Rn&&he())y=fl(E,a.cm,ue,y.line,ce);else return!1;else y=Mn;return!0}if(b=="char"||b=="codepoint")Te();else if(b=="column")Te(!0);else if(b=="word"||b=="group")for(var je=null,bt=b=="group",ct=a.cm&&a.cm.getHelper(y,"wordChars"),Ht=!0;!(x<0&&!Te(!Ht));Ht=!1){var tn=ue.text.charAt(y.ch)||` `,mn=se(tn,ct)?"w":bt&&tn==` `?"n":!bt||/\s/.test(tn)?null:"p";if(bt&&!Ht&&!mn&&(mn="s"),je&&je!=mn){x<0&&(x=1,Te(),y.sticky="after");break}if(mn&&(je=mn),x>0&&!Te(!Ht))break}var kn=Na(a,y,te,le,!0);return nt(te,kn)&&(kn.hitSide=!0),kn}function Rs(a,y,x,b){var E=a.doc,te=y.left,le;if(b=="page"){var ue=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ce=Math.max(ue-.5*Li(a.display),3);le=(x>0?y.bottom:y.top)+x*ce}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var he;he=ci(a,te,le),!!he.outside;){if(x<0?le<=0:le>=E.height){he.hitSide=!0;break}le+=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(ue){for(var ce=ue.target;ce;ce=ce.parentNode){if(ce==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ce.className))break}return!1}At(E,"paste",function(ue){!te(ue)||gt(b,ue)||Ts(ue,b)||Ce<=11&&setTimeout(oi(b,function(){return y.updateFromDOM()}),20)}),At(E,"compositionstart",function(ue){y.composing={data:ue.data,done:!1}}),At(E,"compositionupdate",function(ue){y.composing||(y.composing={data:ue.data,done:!1})}),At(E,"compositionend",function(ue){y.composing&&(ue.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),At(E,"touchstart",function(){return x.forceCompositionEnd()}),At(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ue){if(!(!te(ue)||gt(b,ue))){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()}),ue.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ce=As(b);ja({lineWise:!0,text:ce.text}),ue.type=="cut"&&b.operation(function(){b.setSelections(ce.ranges,0,Ae),b.replaceSelection("",null,"cut")})}else return;if(ue.clipboardData){ue.clipboardData.clearData();var he=Ki.text.join(` `);if(ue.clipboardData.setData("Text",he),ue.clipboardData.getData("Text")==he){ue.preventDefault();return}}var Te=Ns(),je=Te.firstChild;b.display.lineSpace.insertBefore(Te,b.display.lineSpace.firstChild),je.value=Ki.text.join(` `);var bt=document.activeElement;Pe(je),setTimeout(function(){b.display.lineSpace.removeChild(Te),bt.focus(),bt==E&&x.showPrimarySelection()},50)}}At(E,"copy",le),At(E,"cut",le)},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:ue[0].measure.map[2],offset:0},he=E.linea.firstLine()&&(b=ye(b.line-1,Ct(a.doc,b.line-1).length)),E.ch==Ct(a.doc,E.line).text.length&&E.liney.viewTo-1)return!1;var te,le,ue;b.line==y.viewFrom||(te=So(a,b.line))==0?(le=Me(y.view[0].line),ue=y.view[0].node):(le=Me(y.view[te].line),ue=y.view[te-1].node.nextSibling);var ce=So(a,E.line),he,Te;if(ce==y.view.length-1?(he=y.viewTo-1,Te=y.lineDiv.lastChild):(he=Me(y.view[ce+1].line)-1,Te=y.view[ce+1].node.previousSibling),!ue)return!1;for(var je=a.doc.splitLines(Ku(a,ue,Te,le,he)),bt=Zt(a.doc,ye(le,0),ye(he,Ct(a.doc,he).text.length));je.length>1&&bt.length>1;)if(Ve(je)==Ve(bt))je.pop(),bt.pop(),he--;else if(je[0]==bt[0])je.shift(),bt.shift(),le++;else break;for(var ct=0,Ht=0,tn=je[0],mn=bt[0],kn=Math.min(tn.length,mn.length);ctb.ch&&Rn.charCodeAt(Rn.length-Ht-1)==Mn.charCodeAt(Mn.length-Ht-1);)ct--,Ht++;je[je.length-1]=Rn.slice(0,Rn.length-Ht).replace(/^\u200b+/,""),je[0]=je[0].slice(ct).replace(/\u200b+$/,"");var sr=ye(le,ct),nr=ye(he,bt.length?Ve(bt).length-Ht:0);if(je.length>1||je[0]||Le(sr,nr))return Ho(a.doc,je,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=Ct(a.doc,y.line),E=Lo(x,b,y.line),te=Wt(b,a.doc.direction),le="left";if(te){var ue=Pt(te,y.ch);le=ue%2?"right":"left"}var ce=xa(E.map,y.ch,le);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="",le=!1,ue=a.doc.lineSeparator(),ce=!1;function he(ct){return function(Ht){return Ht.id==ct}}function Te(){le&&(te+=ue,ce&&(te+=ue),le=ce=!1)}function je(ct){ct&&(Te(),te+=ct)}function bt(ct){if(ct.nodeType==1){var Ht=ct.getAttribute("cm-text");if(Ht){je(Ht);return}var tn=ct.getAttribute("cm-marker"),mn;if(tn){var kn=a.findMarks(ye(b,0),ye(E+1,0),he(+tn));kn.length&&(mn=kn[0].find(0))&&je(Zt(a.doc,mn.from,mn.to).join(ue));return}if(ct.getAttribute("contenteditable")=="false")return;var Rn=/^(pre|div|p|li|table|br)$/i.test(ct.nodeName);if(!/^br$/i.test(ct.nodeName)&&ct.textContent.length==0)return;Rn&&Te();for(var Mn=0;Mn=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),At(E,"paste",function(le){gt(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function te(le){if(!gt(b,le)){if(b.somethingSelected())ja({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ue=As(b);ja({lineWise:!0,text:ue.text}),le.type=="cut"?b.setSelections(ue.ranges,null,Ae):(x.prevInput="",E.value=ue.text.join(` `),Pe(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}At(E,"cut",te),At(E,"copy",te),At(a.scroller,"paste",function(le){if(!(ui(a,le)||gt(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ue=new Event("paste");ue.clipboardData=le.clipboardData,E.dispatchEvent(ue)}}),At(a.lineSpace,"selectstart",function(le){ui(a,le)||an(le)}),At(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),At(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(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-te.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-te.left))}return b},Jr.prototype.showSelection=function(a){var y=this.cm,x=y.display;qe(x.cursorDiv,a.cursors),qe(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&&Pe(this.textarea),xe&&Ce>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",xe&&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"&&(!ze||Ye()!=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(xe&&Ce>=9&&this.hasSelection===E||Oe&&/[\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 le=0,ue=Math.min(b.length,E.length);le1e3||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(){xe&&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),le=b.scroller.scrollTop;if(!te||fe)return;var ue=x.options.resetSelectionOnContextMenu;ue&&x.doc.sel.contains(te)==-1&&oi(x,hi)(x.doc,po(te),Ae);var ce=E.style.cssText,he=y.wrapper.style.cssText,Te=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(a.clientY-Te.top-5)+"px; left: "+(a.clientX-Te.left-5)+`px; z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var je;Se&&(je=window.scrollY),b.input.focus(),Se&&window.scrollTo(null,je),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=ct,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function bt(){if(E.selectionStart!=null){var tn=x.somethingSelected(),mn="\u200B"+(tn?E.value:"");E.value="\u21DA",E.value=mn,y.prevInput=tn?"":"\u200B",E.selectionStart=1,E.selectionEnd=mn.length,b.selForContextMenu=x.doc.sel}}function ct(){if(y.contextMenuPending==ct&&(y.contextMenuPending=!1,y.wrapper.style.cssText=he,E.style.cssText=ce,xe&&Ce<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!xe||xe&&Ce<9)&&bt();var tn=0,mn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?oi(x,ts)(x):tn++<10?b.detectingSelectAll=setTimeout(mn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(mn,200)}}if(xe&&Ce>=9&&bt(),tt){De(a);var Ht=function(){Jt(window,"mouseup",Ht),setTimeout(ct,20)};At(window,"mouseup",Ht)}else setTimeout(ct,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?Dt(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=Ye();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ue.getValue()}var E;if(a.form&&(At(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var te=a.form;E=te.submit;try{var le=te.submit=function(){b(),te.submit=E,te.submit(),te.submit=le}}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 ue=Vr(function(ce){return a.parentNode.insertBefore(ce,a.nextSibling)},y);return ue}function Ju(a){a.off=Jt,a.on=At,a.wheelEventPixels=iu,a.Doc=Si,a.splitLines=pn,a.countColumn=ve,a.findColumn=en,a.isWordChar=ie,a.Pass=ft,a.signal=on,a.Line=Ir,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=ye,a.cmpPos=Le,a.modes=Dn,a.mimeModes=nn,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=De,a.addClass=me,a.contains=Ue,a.rmClass=Ze,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)&&rt(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(Rt,It,oe){(function(re){re(oe(89780),oe(15525),oe(98101))})(function(re){"use strict";re.defineMode("markdown",function(Xe,pe){var We=re.getMode(Xe,"text/html"),xe=We.name=="null";function Ce(ve){if(re.findModeByName){var de=re.findModeByName(ve);de&&(ve=de.mime||de.mimes[0])}var rt=re.getMode(Xe,ve);return rt.name=="null"?null:rt}pe.highlightFormatting===void 0&&(pe.highlightFormatting=!1),pe.maxBlockquoteDepth===void 0&&(pe.maxBlockquoteDepth=0),pe.taskLists===void 0&&(pe.taskLists=!1),pe.strikethrough===void 0&&(pe.strikethrough=!1),pe.emoji===void 0&&(pe.emoji=!1),pe.fencedCodeBlockHighlighting===void 0&&(pe.fencedCodeBlockHighlighting=!0),pe.fencedCodeBlockDefaultMode===void 0&&(pe.fencedCodeBlockDefaultMode="text/plain"),pe.xml===void 0&&(pe.xml=!0),pe.tokenTypeOverrides===void 0&&(pe.tokenTypeOverrides={});var Se={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Re in Se)Se.hasOwnProperty(Re)&&pe.tokenTypeOverrides[Re]&&(Se[Re]=pe.tokenTypeOverrides[Re]);var Ee=/^([*\-_])(?:\s*\1){2,}\s*$/,fe=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Ge=/^\[(x| )\](?=\s)/i,be=pe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ot=/^ {0,3}(?:\={1,}|-{2,})\s*$/,He=/^[^#!\[\]*_\\<>` "'(~:]+/,ke=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ze=/^\s*\[[^\]]+?\]:.*$/,Oe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,lt=" ";function xt(ve,de,rt){return de.f=de.inline=rt,rt(ve,de)}function at(ve,de,rt){return de.f=de.block=rt,rt(ve,de)}function ut(ve){return!ve||!/\S/.test(ve.string)}function tt(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==Ze){var de=xe;if(!de){var rt=re.innerMode(We,ve.htmlState);de=rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText}de&&(ve.f=vt,ve.block=dt,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function dt(ve,de){var rt=ve.column()===de.indentation,Tt=ut(de.prevLine.stream),ft=de.indentedCode,Ae=de.prevLine.hr,Qe=de.list!==!1,et=(de.listStack[de.listStack.length-1]||0)+3;de.indentedCode=!1;var en=de.indentation;if(de.indentationDiff===null&&(de.indentationDiff=de.indentation,Qe)){for(de.list=null;en=4&&(ft||de.prevLine.fencedCodeEnd||de.prevLine.header||Tt))return ve.skipToEnd(),de.indentedCode=!0,Se.code;if(ve.eatSpace())return null;if(rt&&de.indentation<=et&&(Ve=ve.match(be))&&Ve[1].length<=6)return de.quote=0,de.header=Ve[1].length,de.thisLine.header=!0,pe.highlightFormatting&&(de.formatting="header"),de.f=de.inline,qe(de);if(de.indentation<=et&&ve.eat(">"))return de.quote=rt?1:de.quote+1,pe.highlightFormatting&&(de.formatting="quote"),ve.eatSpace(),qe(de);if(!$t&&!de.setext&&rt&&de.indentation<=et&&(Ve=ve.match(fe))){var Ot=Ve[1]?"ol":"ul";return de.indentation=en+ve.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,pe.taskLists&&ve.match(Ge,!1)&&(de.taskList=!0),de.f=de.inline,pe.highlightFormatting&&(de.formatting=["list","list-"+Ot]),qe(de)}else{if(rt&&de.indentation<=et&&(Ve=ve.match(ke,!0)))return de.quote=0,de.fencedEndRE=new RegExp(Ve[1]+"+ *$"),de.localMode=pe.fencedCodeBlockHighlighting&&Ce(Ve[2]||pe.fencedCodeBlockDefaultMode),de.localMode&&(de.localState=re.startState(de.localMode)),de.f=de.block=kt,pe.highlightFormatting&&(de.formatting="code-block"),de.code=-1,qe(de);if(de.setext||(!Et||!Qe)&&!de.quote&&de.list===!1&&!de.code&&!$t&&!ze.test(ve.string)&&(Ve=ve.lookAhead(1))&&(Ve=Ve.match(ot)))return de.setext?(de.header=de.setext,de.setext=0,ve.skipToEnd(),pe.highlightFormatting&&(de.formatting="header")):(de.header=Ve[0].charAt(0)=="="?1:2,de.setext=de.header),de.thisLine.header=!0,de.f=de.inline,qe(de);if($t)return ve.skipToEnd(),de.hr=!0,de.thisLine.hr=!0,Se.hr;if(ve.peek()==="[")return xt(ve,de,St)}return xt(ve,de,de.inline)}function Ze(ve,de){var rt=We.token(ve,de.htmlState);if(!xe){var Tt=re.innerMode(We,de.htmlState);(Tt.mode.name=="xml"&&Tt.state.tagStart===null&&!Tt.state.context&&Tt.state.tokenize.isInText||de.md_inside&&ve.current().indexOf(">")>-1)&&(de.f=vt,de.block=dt,de.htmlState=null)}return rt}function kt(ve,de){var rt=de.listStack[de.listStack.length-1]||0,Tt=de.indentation=ve.quote?de.push(Se.formatting+"-"+ve.formatting[rt]+"-"+ve.quote):de.push("error"))}if(ve.taskOpen)return de.push("meta"),de.length?de.join(" "):null;if(ve.taskClosed)return de.push("property"),de.length?de.join(" "):null;if(ve.linkHref?de.push(Se.linkHref,"url"):(ve.strong&&de.push(Se.strong),ve.em&&de.push(Se.em),ve.strikethrough&&de.push(Se.strikethrough),ve.emoji&&de.push(Se.emoji),ve.linkText&&de.push(Se.linkText),ve.code&&de.push(Se.code),ve.image&&de.push(Se.image),ve.imageAltText&&de.push(Se.imageAltText,"link"),ve.imageMarker&&de.push(Se.imageMarker)),ve.header&&de.push(Se.header,Se.header+"-"+ve.header),ve.quote&&(de.push(Se.quote),!pe.maxBlockquoteDepth||pe.maxBlockquoteDepth>=ve.quote?de.push(Se.quote+"-"+ve.quote):de.push(Se.quote+"-"+pe.maxBlockquoteDepth)),ve.list!==!1){var Tt=(ve.listStack.length-1)%3;Tt?Tt===1?de.push(Se.list2):de.push(Se.list3):de.push(Se.list1)}return ve.trailingSpaceNewLine?de.push("trailing-space-new-line"):ve.trailingSpace&&de.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),de.length?de.join(" "):null}function _e(ve,de){if(ve.match(He,!0))return qe(de)}function vt(ve,de){var rt=de.text(ve,de);if(typeof rt!="undefined")return rt;if(de.list)return de.list=null,qe(de);if(de.taskList){var Tt=ve.match(Ge,!0)[1]===" ";return Tt?de.taskOpen=!0:de.taskClosed=!0,pe.highlightFormatting&&(de.formatting="task"),de.taskList=!1,qe(de)}if(de.taskOpen=!1,de.taskClosed=!1,de.header&&ve.match(/^#+$/,!0))return pe.highlightFormatting&&(de.formatting="header"),qe(de);var ft=ve.next();if(de.linkTitle){de.linkTitle=!1;var Ae=ft;ft==="("&&(Ae=")"),Ae=(Ae+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Qe="^\\s*(?:[^"+Ae+"\\\\]+|\\\\\\\\|\\\\.)"+Ae;if(ve.match(new RegExp(Qe),!0))return Se.linkHref}if(ft==="`"){var et=de.formatting;pe.highlightFormatting&&(de.formatting="code"),ve.eatWhile("`");var en=ve.current().length;if(de.code==0&&(!de.quote||en==1))return de.code=en,qe(de);if(en==de.code){var Et=qe(de);return de.code=0,Et}else return de.formatting=et,qe(de)}else if(de.code)return qe(de);if(ft==="\\"&&(ve.next(),pe.highlightFormatting)){var $t=qe(de),Ve=Se.formatting+"-escape";return $t?$t+" "+Ve:Ve}if(ft==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return de.imageMarker=!0,de.image=!0,pe.highlightFormatting&&(de.formatting="image"),qe(de);if(ft==="["&&de.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return de.imageMarker=!1,de.imageAltText=!0,pe.highlightFormatting&&(de.formatting="image"),qe(de);if(ft==="]"&&de.imageAltText){pe.highlightFormatting&&(de.formatting="image");var $t=qe(de);return de.imageAltText=!1,de.image=!1,de.inline=de.f=Ue,$t}if(ft==="["&&!de.image)return de.linkText&&ve.match(/^.*?\]/)||(de.linkText=!0,pe.highlightFormatting&&(de.formatting="link")),qe(de);if(ft==="]"&&de.linkText){pe.highlightFormatting&&(de.formatting="link");var $t=qe(de);return de.linkText=!1,de.inline=de.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?Ue:vt,$t}if(ft==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Ne,pe.highlightFormatting&&(de.formatting="link");var $t=qe(de);return $t?$t+=" ":$t="",$t+Se.linkInline}if(ft==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){de.f=de.inline=Ne,pe.highlightFormatting&&(de.formatting="link");var $t=qe(de);return $t?$t+=" ":$t="",$t+Se.linkEmail}if(pe.xml&&ft==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ot=ve.string.indexOf(">",ve.pos);if(Ot!=-1){var it=ve.string.substring(ve.start,Ot);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(it)&&(de.md_inside=!0)}return ve.backUp(1),de.htmlState=re.startState(We),at(ve,de,Ze)}if(pe.xml&&ft==="<"&&ve.match(/^\/\w*?>/))return de.md_inside=!1,"tag";if(ft==="*"||ft==="_"){for(var ae=1,ee=ve.pos==1?" ":ve.string.charAt(ve.pos-2);ae<3&&ve.eat(ft);)ae++;var z=ve.peek()||" ",ie=!/\s/.test(z)&&(!Oe.test(z)||/\s/.test(ee)||Oe.test(ee)),se=!/\s/.test(ee)&&(!Oe.test(ee)||/\s/.test(z)||Oe.test(z)),ne=null,we=null;if(ae%2&&(!de.em&&ie&&(ft==="*"||!se||Oe.test(ee))?ne=!0:de.em==ft&&se&&(ft==="*"||!ie||Oe.test(z))&&(ne=!1)),ae>1&&(!de.strong&&ie&&(ft==="*"||!se||Oe.test(ee))?we=!0:de.strong==ft&&se&&(ft==="*"||!ie||Oe.test(z))&&(we=!1)),we!=null||ne!=null){pe.highlightFormatting&&(de.formatting=ne==null?"strong":we==null?"em":"strong em"),ne===!0&&(de.em=ft),we===!0&&(de.strong=ft);var Et=qe(de);return ne===!1&&(de.em=!1),we===!1&&(de.strong=!1),Et}}else if(ft===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return qe(de);ve.backUp(1)}if(pe.strikethrough){if(ft==="~"&&ve.eatWhile(ft)){if(de.strikethrough){pe.highlightFormatting&&(de.formatting="strikethrough");var Et=qe(de);return de.strikethrough=!1,Et}else if(ve.match(/^[^\s]/,!1))return de.strikethrough=!0,pe.highlightFormatting&&(de.formatting="strikethrough"),qe(de)}else if(ft===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return qe(de);ve.backUp(2)}}if(pe.emoji&&ft===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){de.emoji=!0,pe.highlightFormatting&&(de.formatting="emoji");var Be=qe(de);return de.emoji=!1,Be}return ft===" "&&(ve.match(/^ +$/,!1)?de.trailingSpace++:de.trailingSpace&&(de.trailingSpaceNewLine=!0)),qe(de)}function Ne(ve,de){var rt=ve.next();if(rt===">"){de.f=de.inline=vt,pe.highlightFormatting&&(de.formatting="link");var Tt=qe(de);return Tt?Tt+=" ":Tt="",Tt+Se.linkInline}return ve.match(/^[^>]+/,!0),Se.linkInline}function Ue(ve,de){if(ve.eatSpace())return null;var rt=ve.next();return rt==="("||rt==="["?(de.f=de.inline=me(rt==="("?")":"]"),pe.highlightFormatting&&(de.formatting="link-string"),de.linkHref=!0,qe(de)):"error"}var Ye={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function me(ve){return function(de,rt){var Tt=de.next();if(Tt===ve){rt.f=rt.inline=vt,pe.highlightFormatting&&(rt.formatting="link-string");var ft=qe(rt);return rt.linkHref=!1,ft}return de.match(Ye[ve]),rt.linkHref=!0,qe(rt)}}function St(ve,de){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(de.f=Pe,ve.next(),pe.highlightFormatting&&(de.formatting="link"),de.linkText=!0,qe(de)):xt(ve,de,vt)}function Pe(ve,de){if(ve.match(/^\]:/,!0)){de.f=de.inline=pt,pe.highlightFormatting&&(de.formatting="link");var rt=qe(de);return de.linkText=!1,rt}return ve.match(/^([^\]\\]|\\.)+/,!0),Se.linkText}function pt(ve,de){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?de.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),de.f=de.inline=vt,Se.linkHref+" url")}var Dt={startState:function(){return{f:dt,prevLine:{stream:null},thisLine:{stream:null},block:dt,htmlState:null,indentation:0,inline:vt,text:_e,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&re.copyState(We,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?re.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,de){if(de.formatting=!1,ve!=de.thisLine.stream){if(de.header=0,de.hr=!1,ve.match(/^\s*$/,!0))return tt(de),null;if(de.prevLine=de.thisLine,de.thisLine={stream:ve},de.taskList=!1,de.trailingSpace=0,de.trailingSpaceNewLine=!1,!de.localState&&(de.f=de.block,de.f!=Ze)){var rt=ve.match(/^\s*/,!0)[0].replace(/\t/g,lt).length;if(de.indentation=rt,de.indentationDiff=null,rt>0)return null}}return de.f(ve,de)},innerMode:function(ve){return ve.block==Ze?{state:ve.htmlState,mode:We}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:Dt}},indent:function(ve,de,rt){return ve.block==Ze&&We.indent?We.indent(ve.htmlState,de,rt):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,de,rt):re.Pass},blankLine:tt,getType:qe,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Dt},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},98101:function(Rt,It,oe){(function(re){re(oe(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 Xe=0;Xe-1&&We.substring(Se+1,We.length);if(Re)return re.findModeByExtension(Re)},re.findModeByName=function(We){We=We.toLowerCase();for(var xe=0;xe0?He.cmdState[He.cmdState.length-1]:null}function Ce(He){var ke=He.cmdState.pop();ke&&ke.closeBracket()}function Se(He){for(var ke=He.cmdState,ze=ke.length-1;ze>=0;ze--){var Oe=ke[ze];if(Oe.name!="DEFAULT")return Oe}return{styleIdentifier:function(){return null}}}function Re(He,ke,ze){return function(){this.name=He,this.bracketNo=0,this.style=ke,this.styles=ze,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ee={};Ee.importmodule=Re("importmodule","tag",["string","builtin"]),Ee.documentclass=Re("documentclass","tag",["","atom"]),Ee.usepackage=Re("usepackage","tag",["atom"]),Ee.begin=Re("begin","tag",["atom"]),Ee.end=Re("end","tag",["atom"]),Ee.label=Re("label","tag",["atom"]),Ee.ref=Re("ref","tag",["atom"]),Ee.eqref=Re("eqref","tag",["atom"]),Ee.cite=Re("cite","tag",["atom"]),Ee.bibitem=Re("bibitem","tag",["atom"]),Ee.Bibitem=Re("Bibitem","tag",["atom"]),Ee.RBibitem=Re("RBibitem","tag",["atom"]),Ee.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function fe(He,ke){He.f=ke}function Ge(He,ke){var ze;if(He.match(/^\\[a-zA-Z@]+/)){var Oe=He.current().slice(1);return ze=Ee.hasOwnProperty(Oe)?Ee[Oe]:Ee.DEFAULT,ze=new ze,We(ke,ze),fe(ke,ot),ze.style}if(He.match(/^\\[$&%#{}_]/)||He.match(/^\\[,;!\/\\]/))return"tag";if(He.match("\\["))return fe(ke,function(xt,at){return be(xt,at,"\\]")}),"keyword";if(He.match("\\("))return fe(ke,function(xt,at){return be(xt,at,"\\)")}),"keyword";if(He.match("$$"))return fe(ke,function(xt,at){return be(xt,at,"$$")}),"keyword";if(He.match("$"))return fe(ke,function(xt,at){return be(xt,at,"$")}),"keyword";var lt=He.next();if(lt=="%")return He.skipToEnd(),"comment";if(lt=="}"||lt=="]"){if(ze=xe(ke),ze)ze.closeBracket(lt),fe(ke,ot);else return"error";return"bracket"}else return lt=="{"||lt=="["?(ze=Ee.DEFAULT,ze=new ze,We(ke,ze),"bracket"):/\d/.test(lt)?(He.eatWhile(/[\w.%]/),"atom"):(He.eatWhile(/[\w\-_]/),ze=Se(ke),ze.name=="begin"&&(ze.argument=He.current()),ze.styleIdentifier())}function be(He,ke,ze){if(He.eatSpace())return null;if(ze&&He.match(ze))return fe(ke,Ge),"keyword";if(He.match(/^\\[a-zA-Z@]+/))return"tag";if(He.match(/^[a-zA-Z]+/))return"variable-2";if(He.match(/^\\[$&%#{}_]/)||He.match(/^\\[,;!\/]/)||He.match(/^[\^_&]/))return"tag";if(He.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(He.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Oe=He.next();return Oe=="{"||Oe=="}"||Oe=="["||Oe=="]"||Oe=="("||Oe==")"?"bracket":Oe=="%"?(He.skipToEnd(),"comment"):"error"}function ot(He,ke){var ze=He.peek(),Oe;return ze=="{"||ze=="["?(Oe=xe(ke),Oe.openBracket(ze),He.eat(ze),fe(ke,Ge),"bracket"):/[ \t\r]/.test(ze)?(He.eat(ze),null):(fe(ke,Ge),Ce(ke),Ge(He,ke))}return{startState:function(){var He=pe.inMathMode?function(ke,ze){return be(ke,ze)}:Ge;return{cmdState:[],f:He}},copyState:function(He){return{cmdState:He.cmdState.slice(),f:He.f}},token:function(He,ke){return ke.f(He,ke)},blankLine:function(He){He.f=Ge,He.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},15525:function(Rt,It,oe){(function(re){re(oe(89780))})(function(re){"use strict";var Xe={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},pe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(We,xe){var Ce=We.indentUnit,Se={},Re=xe.htmlMode?Xe:pe;for(var Ee in Re)Se[Ee]=Re[Ee];for(var Ee in xe)Se[Ee]=xe[Ee];var fe,Ge;function be(Ne,Ue){function Ye(Pe){return Ue.tokenize=Pe,Pe(Ne,Ue)}var me=Ne.next();if(me=="<")return Ne.eat("!")?Ne.eat("[")?Ne.match("CDATA[")?Ye(ke("atom","]]>")):null:Ne.match("--")?Ye(ke("comment","-->")):Ne.match("DOCTYPE",!0,!0)?(Ne.eatWhile(/[\w\._\-]/),Ye(ze(1))):null:Ne.eat("?")?(Ne.eatWhile(/[\w\._\-]/),Ue.tokenize=ke("meta","?>"),"meta"):(fe=Ne.eat("/")?"closeTag":"openTag",Ue.tokenize=ot,"tag bracket");if(me=="&"){var St;return Ne.eat("#")?Ne.eat("x")?St=Ne.eatWhile(/[a-fA-F\d]/)&&Ne.eat(";"):St=Ne.eatWhile(/[\d]/)&&Ne.eat(";"):St=Ne.eatWhile(/[\w\.\-:]/)&&Ne.eat(";"),St?"atom":"error"}else return Ne.eatWhile(/[^&<]/),null}be.isInText=!0;function ot(Ne,Ue){var Ye=Ne.next();if(Ye==">"||Ye=="/"&&Ne.eat(">"))return Ue.tokenize=be,fe=Ye==">"?"endTag":"selfcloseTag","tag bracket";if(Ye=="=")return fe="equals",null;if(Ye=="<"){Ue.tokenize=be,Ue.state=at,Ue.tagName=Ue.tagStart=null;var me=Ue.tokenize(Ne,Ue);return me?me+" tag error":"tag error"}else return/[\'\"]/.test(Ye)?(Ue.tokenize=He(Ye),Ue.stringStartCol=Ne.column(),Ue.tokenize(Ne,Ue)):(Ne.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function He(Ne){var Ue=function(Ye,me){for(;!Ye.eol();)if(Ye.next()==Ne){me.tokenize=ot;break}return"string"};return Ue.isInAttribute=!0,Ue}function ke(Ne,Ue){return function(Ye,me){for(;!Ye.eol();){if(Ye.match(Ue)){me.tokenize=be;break}Ye.next()}return Ne}}function ze(Ne){return function(Ue,Ye){for(var me;(me=Ue.next())!=null;){if(me=="<")return Ye.tokenize=ze(Ne+1),Ye.tokenize(Ue,Ye);if(me==">")if(Ne==1){Ye.tokenize=be;break}else return Ye.tokenize=ze(Ne-1),Ye.tokenize(Ue,Ye)}return"meta"}}function Oe(Ne,Ue,Ye){this.prev=Ne.context,this.tagName=Ue,this.indent=Ne.indented,this.startOfLine=Ye,(Se.doNotIndent.hasOwnProperty(Ue)||Ne.context&&Ne.context.noIndent)&&(this.noIndent=!0)}function lt(Ne){Ne.context&&(Ne.context=Ne.context.prev)}function xt(Ne,Ue){for(var Ye;;){if(!Ne.context||(Ye=Ne.context.tagName,!Se.contextGrabbers.hasOwnProperty(Ye)||!Se.contextGrabbers[Ye].hasOwnProperty(Ue)))return;lt(Ne)}}function at(Ne,Ue,Ye){return Ne=="openTag"?(Ye.tagStart=Ue.column(),ut):Ne=="closeTag"?tt:at}function ut(Ne,Ue,Ye){return Ne=="word"?(Ye.tagName=Ue.current(),Ge="tag",kt):Se.allowMissingTagName&&Ne=="endTag"?(Ge="tag bracket",kt(Ne,Ue,Ye)):(Ge="error",ut)}function tt(Ne,Ue,Ye){if(Ne=="word"){var me=Ue.current();return Ye.context&&Ye.context.tagName!=me&&Se.implicitlyClosed.hasOwnProperty(Ye.context.tagName)&<(Ye),Ye.context&&Ye.context.tagName==me||Se.matchClosing===!1?(Ge="tag",dt):(Ge="tag error",Ze)}else return Se.allowMissingTagName&&Ne=="endTag"?(Ge="tag bracket",dt(Ne,Ue,Ye)):(Ge="error",Ze)}function dt(Ne,Ue,Ye){return Ne!="endTag"?(Ge="error",dt):(lt(Ye),at)}function Ze(Ne,Ue,Ye){return Ge="error",dt(Ne,Ue,Ye)}function kt(Ne,Ue,Ye){if(Ne=="word")return Ge="attribute",qe;if(Ne=="endTag"||Ne=="selfcloseTag"){var me=Ye.tagName,St=Ye.tagStart;return Ye.tagName=Ye.tagStart=null,Ne=="selfcloseTag"||Se.autoSelfClosers.hasOwnProperty(me)?xt(Ye,me):(xt(Ye,me),Ye.context=new Oe(Ye,me,St==Ye.indented)),at}return Ge="error",kt}function qe(Ne,Ue,Ye){return Ne=="equals"?_e:(Se.allowMissing||(Ge="error"),kt(Ne,Ue,Ye))}function _e(Ne,Ue,Ye){return Ne=="string"?vt:Ne=="word"&&Se.allowUnquoted?(Ge="string",kt):(Ge="error",kt(Ne,Ue,Ye))}function vt(Ne,Ue,Ye){return Ne=="string"?vt:kt(Ne,Ue,Ye)}return{startState:function(Ne){var Ue={tokenize:be,state:at,indented:Ne||0,tagName:null,tagStart:null,context:null};return Ne!=null&&(Ue.baseIndent=Ne),Ue},token:function(Ne,Ue){if(!Ue.tagName&&Ne.sol()&&(Ue.indented=Ne.indentation()),Ne.eatSpace())return null;fe=null;var Ye=Ue.tokenize(Ne,Ue);return(Ye||fe)&&Ye!="comment"&&(Ge=null,Ue.state=Ue.state(fe||Ye,Ne,Ue),Ge&&(Ye=Ge=="error"?Ye+" error":Ge)),Ye},indent:function(Ne,Ue,Ye){var me=Ne.context;if(Ne.tokenize.isInAttribute)return Ne.tagStart==Ne.indented?Ne.stringStartCol+1:Ne.indented+Ce;if(me&&me.noIndent)return re.Pass;if(Ne.tokenize!=ot&&Ne.tokenize!=be)return Ye?Ye.match(/^(\s*)/)[0].length:0;if(Ne.tagName)return Se.multilineTagIndentPastTag!==!1?Ne.tagStart+Ne.tagName.length+2:Ne.tagStart+Ce*(Se.multilineTagIndentFactor||1);if(Se.alignCDATA&&/$/,blockCommentStart:"",configuration:Se.htmlMode?"html":"xml",helperType:Se.htmlMode?"html":"xml",skipAttribute:function(Ne){Ne.state==_e&&(Ne.state=kt)},xmlCurrentTag:function(Ne){return Ne.tagName?{name:Ne.tagName,close:Ne.type=="closeTag"}:null},xmlCurrentContext:function(Ne){for(var Ue=[],Ye=Ne.context;Ye;Ye=Ye.prev)Ye.tagName&&Ue.push(Ye.tagName);return Ue.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(Rt,It,oe){"use strict";oe.d(It,{hP:function(){return it}});var re=function(ae,ee){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ie){z.__proto__=ie}||function(z,ie){for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&(z[se]=ie[se])})(ae,ee)};function Xe(ae,ee){function z(){this.constructor=ae}re(ae,ee),ae.prototype=ee===null?Object.create(ee):(z.prototype=ee.prototype,new z)}function pe(ae,ee,z,ie){return new(z||(z=Promise))(function(se,ne){function we(Fe){try{wt(ie.next(Fe))}catch(Ke){ne(Ke)}}function Be(Fe){try{wt(ie.throw(Fe))}catch(Ke){ne(Ke)}}function wt(Fe){var Ke;Fe.done?se(Fe.value):(Ke=Fe.value,Ke instanceof z?Ke:new z(function(mt){mt(Ke)})).then(we,Be)}wt((ie=ie.apply(ae,ee||[])).next())})}function We(ae,ee){var z,ie,se,ne,we={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function Be(wt){return function(Fe){return function(Ke){if(z)throw new TypeError("Generator is already executing.");for(;we;)try{if(z=1,ie&&(se=2&Ke[0]?ie.return:Ke[0]?ie.throw||((se=ie.return)&&se.call(ie),0):ie.next)&&!(se=se.call(ie,Ke[1])).done)return se;switch(ie=0,se&&(Ke=[2&Ke[0],se.value]),Ke[0]){case 0:case 1:se=Ke;break;case 4:return we.label++,{value:Ke[1],done:!1};case 5:we.label++,ie=Ke[1],Ke=[0];continue;case 7:Ke=we.ops.pop(),we.trys.pop();continue;default:if(se=we.trys,!((se=se.length>0&&se[se.length-1])||Ke[0]!==6&&Ke[0]!==2)){we=0;continue}if(Ke[0]===3&&(!se||Ke[1]>se[0]&&Ke[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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'',"render"),this.addActionButton(se,'',"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}(),He=function(){function ae(ee,z,ie,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=ee,this.displayMode=z,this.uiStyleSettings=ie,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ee;this.toolboxStyleClass=this.styles.addClass(new be("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 be("toolbox_colors",` color: `+this.uiStyleSettings.toolboxColor+`; `));var z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new be("toolbox-button-row",` display: flex; cursor: default; box-sizing: content-box; `)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new be("toolbox-button-row_colors",` background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`; `)),this.toolboxPanelRowStyleClass=this.styles.addClass(new be("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 be("toolbox-panel-row_colors",` background-color: `+((ee=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ee!==void 0?ee:this.uiStyleSettings.toolbarBackgroundHoverColor)+`; `)),this.toolboxButtonStyleClass=this.styles.addClass(new be("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 be("toolbox-button_colors",` fill: `+this.uiStyleSettings.toolbarColor+`; `)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new be("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,se=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=se.uiStyleSettings;var Be=document.createElement("div");Be.className=se.toolboxButtonStyleClass.name+" "+((we=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&we!==void 0?we:se.toolboxButtonStyleColorsClass.name),Be.innerHTML=ne.icon,Be.title=ne.title,Be.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(Be),se.buttonRow.appendChild(Be)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ee){var z=this,ie=-1;if(ee!==this.activePanel){ie=this.panels.indexOf(ee),this.panelRow.innerHTML="";var se=ee.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=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 Be,wt;ne.className=z.toolboxButtonStyleClass.name+" "+(we===ie?""+((Be=z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Be!==void 0?Be:z.toolboxActiveButtonStyleColorsClass.name):""+((wt=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&wt!==void 0?wt:z.toolboxButtonStyleColorsClass.name))})},ae}(),ke=function(ae,ee){this.title=ae,this.icon=ee},ze=function(ae){function ee(z,ie,se,ne){var we=ae.call(this,z,ne||'')||this;return we.colors=[],we.addTransparent=!1,we.colorBoxes=[],we.colors=ie,we.currentColor=se,we.setCurrentColor=we.setCurrentColor.bind(we),we.getColorBox=we.getColorBox.bind(we),we}return Xe(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(se){var ne=z.getColorBox(se);ie.appendChild(ne),z.colorBoxes.push(ne)}),ie},ee.prototype.getColorBox=function(z){var ie=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,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 Be=document.createElement("div");return Be.style.display="inline-block",Be.style.width=ne-2+"px",Be.style.height=ne-2+"px",Be.style.backgroundColor=z,Be.style.borderRadius=ne/2+"px",z==="transparent"&&(Be.style.fill=this.uiStyleSettings.toolboxAccentColor,Be.innerHTML=` `),we.appendChild(Be),we},ee.prototype.setCurrentColor=function(z,ie){var se=this;this.currentColor=z,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(z)},ee}(ke),Oe=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}(),lt=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}(),xt=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}(),at=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}(),ut=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Ce.createTransform()),ne.setupControlBox(),ne}return Xe(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 se=this.unrotatePoint(z);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(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,se=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,se=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=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}se>=0?(this.left=ie,this.width=se):(this.left=ie+se,this.width=-se),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(),se=Ce.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(ie)).x,y:se.y}},ee.prototype.unrotatePoint=function(z){if(this.rotationAngle===0)return z;var ie=this.container.getCTM();ie=ie.inverse();var se=Ce.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(ie)).x,y:se.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 lt,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 xt;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,se=ie,ne=(this.width+this.CB_DISTANCE)/2-z/2,we=(this.height+this.CB_DISTANCE)/2-z/2,Be=this.height+this.CB_DISTANCE-z/2,wt=this.width+this.CB_DISTANCE-z/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,wt,se),this.positionGrip(this.controlGrips.centerLeft.visual,ie,we),this.positionGrip(this.controlGrips.centerRight.visual,wt,we),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,Be),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,Be),this.positionGrip(this.controlGrips.bottomRight.visual,wt,Be),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},ee.prototype.positionGrip=function(z,ie,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,se),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:at.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:at.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(at.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*z,y:se.y*ie});this.left=ne.x,this.top=ne.y,this.width=this.width*z,this.height=this.height*ie,this.adjustControlBox()},ee}(Oe),tt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return Xe(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}(ut),dt=function(ae){function ee(z,ie,se,ne){var we=ae.call(this,z,ne||'')||this;return we.widths=[],we.widthBoxes=[],we.widths=ie,we.currentWidth=se,we.setCurrentWidth=we.setCurrentWidth.bind(we),we}return Xe(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(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===z.currentWidth?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentWidth(se,ne)}),ie.appendChild(ne);var we=document.createElement("div");we.innerText=se.toString(),we.style.marginRight="5px",ne.appendChild(we);var Be=document.createElement("div");Be.style.minHeight="20px",Be.style.flexGrow="2",Be.style.display="flex",Be.style.alignItems="center";var wt=document.createElement("hr");wt.style.minWidth="20px",wt.style.border="0px",wt.style.borderTop=se+"px solid "+z.uiStyleSettings.toolboxColor,wt.style.flexGrow="2",Be.appendChild(wt),ne.appendChild(Be),z.widthBoxes.push(ne)}),ie},ee.prototype.setCurrentWidth=function(z,ie){var se=this;this.currentWidth=z,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ee}(ke),Ze=function(ae){function ee(z,ie,se,ne){var we=ae.call(this,z,ne||'')||this;return we.styles=[],we.styleBoxes=[],we.styles=ie,we.currentStyle=se,we.setCurrentStyle=we.setCurrentStyle.bind(we),we}return Xe(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(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.styles.length-5+"%",ne.style.borderColor=se===z.currentStyle?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentStyle(se,ne)}),ie.appendChild(ne);var we=document.createElement("div");we.style.minHeight="20px",we.style.flexGrow="2",we.style.overflow="hidden";var Be=` `;we.innerHTML=Be,ne.appendChild(we),z.styleBoxes.push(ne)}),ie},ee.prototype.setCurrentStyle=function(z,ie){var se=this;this.currentStyle=z,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ee}(ke),kt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new ze("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Xe(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}(tt),qe=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"},_e=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return Xe(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 xt;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,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,se),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}(Oe),vt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new ze("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Xe(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}(_e),Ne=function(ae){function ee(z,ie,se,ne){var we=ae.call(this,z,ne||'')||this;return we.fonts=[],we.fontBoxes=[],we.fonts=ie,we.currentFont=se,we.setCurrentFont=we.setCurrentFont.bind(we),we}return Xe(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(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.fonts.length-5+"%",ne.style.borderColor=se===z.currentFont?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentFont(se,ne)}),ie.appendChild(ne);var we=document.createElement("div");we.style.display="flex",we.style.minHeight="20px",we.style.flexGrow="2",we.style.fontFamily=se,we.style.overflow="hidden";var Be=document.createElement("div");Be.style.whiteSpace="nowrap",Be.style.overflow="hidden",Be.style.textOverflow="ellipsis",Be.innerHTML="The quick brown fox jumps over the lazy dog",we.appendChild(Be),ne.appendChild(we),z.fontBoxes.push(ne)}),ie},ee.prototype.setCurrentFont=function(z,ie){var se=this;this.currentFont=z,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ee}(ke),Ue=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new ze("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Ne("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return Xe(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(se){se===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 se=(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(se,ne)}return ie},ee.prototype.getTextPosition=function(z){var ie=this.textElement.getBBox(),se=0,ne=0;return ie.width>0&&ie.height>0&&(se=(this.width-ie.width*z)/2,ne=this.height/2-ie.height*z/2),{x:se,y:ne}},ee.prototype.sizeText=function(){var z=this.textElement.getBBox(),ie=this.getTextScale(),se=this.getTextPosition(ie);se.y-=z.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.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 se=ie.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),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}),se=this.textElement.getBBox(),ne={x:se.width*z,y:se.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}(ut),Ye=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new ze("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return Xe(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],se=ie[0],ne=ie[1],we=ie[2],Be=ie[3],wt=!1,Fe=0;Fe0&&(wt=!0,FeBe&&(Be=Fe),Ke>we&&(we=Ke));if(wt){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(we-se)/this.pixelRatio,this.height=(Be-ne)/this.pixelRatio;var mt=document.createElement("canvas");mt.width=we-se,mt.height=Be-ne,mt.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,we-se,Be-ne),0,0),this.drawingImgUrl=mt.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}(ut),me=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,se||'')||this;return ne.typeBoxes=[],ne.currentType=ie,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return Xe(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 se=function(Be){var wt="both";switch(Be){case 0:wt="both";break;case 1:wt="start";break;case 2:wt="end";break;case 3:wt="none"}var Fe=document.createElement("div");if(Fe.style.display="flex",Fe.style.flexGrow="2",Fe.style.alignItems="center",Fe.style.justifyContent="space-between",Fe.style.padding="5px",Fe.style.borderWidth="2px",Fe.style.borderStyle="solid",Fe.style.borderColor=wt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",Fe.addEventListener("click",function(){z.setCurrentType(wt,Fe)}),ie.appendChild(Fe),wt==="both"||wt==="start"){var Ke=document.createElement("div");Ke.style.display="flex",Ke.style.alignItems="center",Ke.style.minHeight="20px",Ke.innerHTML=` `,Ke.style.marginLeft="5px",Fe.appendChild(Ke)}var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.style.flexGrow="2";var Pt=document.createElement("hr");if(Pt.style.minWidth="20px",Pt.style.border="0px",Pt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Pt.style.flexGrow="2",mt.appendChild(Pt),Fe.appendChild(mt),wt==="both"||wt==="end"){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.minHeight="20px",Mt.innerHTML=` `,Mt.style.marginRight="5px",Fe.appendChild(Mt)}ne.typeBoxes.push(Fe)},ne=this,we=0;we<4;we++)se(we);return ie},ee.prototype.setCurrentType=function(z,ie){var se=this;this.currentType=z,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ee}(ke),St=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new me("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return Xe(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 se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return z-se/2+","+(ie+ne/2)+" "+z+","+(ie-ne/2)+" "+(z+se/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 se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,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}(vt),Pe=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new ze("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return Xe(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}(tt),pt=function(ae){function ee(z,ie,se,ne){var we=ae.call(this,z,ne||'')||this;return we.opacities=[],we.opacityBoxes=[],we.opacities=ie,we.currentOpacity=se,we.setCurrentOpacity=we.setCurrentOpacity.bind(we),we}return Xe(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(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===z.currentOpacity?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentOpacity(se,ne)}),ie.appendChild(ne);var we=document.createElement("div");we.innerText=100*se+"%",ne.appendChild(we),z.opacityBoxes.push(ne)}),ie},ee.prototype.setCurrentOpacity=function(z,ie){var se=this;this.currentOpacity=z,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ee}(ke),Dt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new ze("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new pt("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Xe(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}(Pe),ve='',de='',rt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new ze("Text color",se.defaultColorSet,ne.color,ve),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new ze("Fill color",se.defaultColorSet,ne.bgColor,de),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Ne("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new xt,ne.tipGrip.visual.transform.baseVal.appendItem(Ce.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return Xe(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),se=this.height/5;z&&(this.tipPosition={x:ie+se/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x=this.width/2&&this.tipPosition.y=this.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 se=this.tip2.transform.baseVal.getItem(0);se.setRotate(z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,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}(vt),Ae=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return Xe(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}(Tt),Qe=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}(),et=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new ze("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Xe(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}(_e),en=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new ze("Line color",xe(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new ze("Fill color",xe(se.defaultColorSet,["transparent"]),ne.fillColor,de),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new dt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Ze("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Ne("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new ze("Text color",se.defaultColorSet,ne.textColor,ve),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return Xe(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}(ut),Et=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}(),$t=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,!1)||this;return ne.dataUrl=ie,ne.state=se,ne}return Xe(ee,ae),ee}(Et),Ve=function(ae){function ee(z,ie,se){se===void 0&&(se=!1);var ne=ae.call(this,z,se)||this;return ne.marker=ie,ne}return Xe(ee,ae),ee}(Et),Ot=function(){function ae(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return ae.prototype.addEventListener=function(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}(),it=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 qe,this._isOpen=!1,this.undoRedoManager=new Qe,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ot,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new 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[kt,Ye,St,Ue,Ae,Tt,Dt,rt,ft,Pe,vt,et,en]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[kt,Ye,St,Ue,Tt,Dt,rt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[kt,Ye,St,Ue,Dt]},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 se=z.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===ie});se!==void 0&&z._availableMarkerTypes.push(se)}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(),Se.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ee=this;this.styles.styleSheetRoot===void 0&&Ee.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ee.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(z){return z(new Et(ee))})},ae.prototype.render=function(){return pe(this,void 0,void 0,function(){var ee;return We(this,function(z){switch(z.label){case 0:return this.setCurrentMarker(),(ee=new Re).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(se){var ne=new Et(z,!0);se(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(se){return se(new Et(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 ot(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(se){var ne=new Ve(ee,ee._currentMarker,!0);se(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(se){return se(new Ve(ee,ie))})}}},ae.prototype.clear=function(){var ee=this,z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(we){var Be=new Ve(ee,void 0,!0);we(Be),Be.defaultPrevented&&(z=!0)}),!z)){this.setCurrentMarker();for(var ie=function(we){var Be=se.markers[we];se.setCurrentMarker(se.markers[we]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(wt){return wt(new Ve(ee,Be))})},se=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 se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(z),se1&&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){Se.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 Et(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 Et(ee))}))},ae.instanceCounter=0,ae}()},6551:function(Rt,It,oe){"use strict";oe.d(It,{ZP:function(){return Se}});var re=oe(72190),Xe=oe(59301),pe=oe(47273),We=0,xe=(0,pe.Z)();function Ce(){var Re;return xe?(Re=We,We+=1):Re="TEST_OR_SSR",Re}function Se(Re){var Ee=Xe.useState(),fe=(0,re.Z)(Ee,2),Ge=fe[0],be=fe[1];return Xe.useEffect(function(){be("rc_select_".concat(Ce()))},[]),Re||Ge}},37463:function(Rt,It,oe){"use strict";oe.d(It,{Ac:function(){return gt},Xo:function(){return zt},Wx:function(){return an},ZP:function(){return Un},lk:function(){return at}});var re=oe(60499),Xe=oe(77654),pe=oe(18642),We=oe(85899),xe=oe(72190),Ce=oe(42244),Se=oe(43749),Re=oe(18929),Ee=oe(48736),fe=oe(59301),Ge=oe(92310),be=oe.n(Ge),ot=oe(34280),He=oe(49658),ke=oe(8654),ze=function($e){var ge=$e.className,Ie=$e.customizeIcon,ye=$e.customizeIconProps,Le=$e.children,nt=$e.onMouseDown,Nt=$e.onClick,Ft=typeof Ie=="function"?Ie(ye):Ie;return fe.createElement("span",{className:ge,onMouseDown:function(Lt){Lt.preventDefault(),nt==null||nt(Lt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Nt,"aria-hidden":!0},Ft!==void 0?Ft:fe.createElement("span",{className:be()(ge.split(/\s+/).map(function(Qt){return"".concat(Qt,"-icon")}))},Le))},Oe=ze,lt=function($e,ge,Ie,ye,Le){var nt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Nt=arguments.length>6?arguments[6]:void 0,Ft=arguments.length>7?arguments[7]:void 0,Qt=fe.useMemo(function(){if((0,Se.Z)(ye)==="object")return ye.clearIcon;if(Le)return Le},[ye,Le]),Lt=fe.useMemo(function(){return!!(!nt&&ye&&(Ie.length||Nt)&&!(Ft==="combobox"&&Nt===""))},[ye,nt,Ie.length,Nt,Ft]);return{allowClear:Lt,clearIcon:fe.createElement(Oe,{className:"".concat($e,"-clear"),onMouseDown:ge,customizeIcon:Qt},"\xD7")}},xt=fe.createContext(null);function at(){return fe.useContext(xt)}function ut(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,$e=fe.useState(!1),ge=(0,xe.Z)($e,2),Ie=ge[0],ye=ge[1],Le=fe.useRef(null),nt=function(){window.clearTimeout(Le.current)};fe.useEffect(function(){return nt},[]);var Nt=function(Qt,Lt){nt(),Le.current=window.setTimeout(function(){ye(Qt),Lt&&Lt()},Me)};return[Ie,Nt,nt]}function tt(){var Me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,$e=fe.useRef(null),ge=fe.useRef(null);fe.useEffect(function(){return function(){window.clearTimeout(ge.current)}},[]);function Ie(ye){(ye||$e.current===null)&&($e.current=ye),window.clearTimeout(ge.current),ge.current=window.setTimeout(function(){$e.current=null},Me)}return[function(){return $e.current},Ie]}function dt(Me,$e,ge,Ie){var ye=fe.useRef(null);ye.current={open:$e,triggerOpen:ge,customizedTrigger:Ie},fe.useEffect(function(){function Le(nt){var Nt;if(!((Nt=ye.current)!==null&&Nt!==void 0&&Nt.customizedTrigger)){var Ft=nt.target;Ft.shadowRoot&&nt.composed&&(Ft=nt.composedPath()[0]||Ft),ye.current.open&&Me().filter(function(Qt){return Qt}).every(function(Qt){return!Qt.contains(Ft)&&Qt!==Ft})&&ye.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Le),function(){return window.removeEventListener("mousedown",Le)}},[])}var Ze=oe(10228);function kt(Me){return Me&&![Ze.Z.ESC,Ze.Z.SHIFT,Ze.Z.BACKSPACE,Ze.Z.TAB,Ze.Z.WIN_KEY,Ze.Z.ALT,Ze.Z.META,Ze.Z.WIN_KEY_RIGHT,Ze.Z.CTRL,Ze.Z.SEMICOLON,Ze.Z.EQUALS,Ze.Z.CAPS_LOCK,Ze.Z.CONTEXT_MENU,Ze.Z.F1,Ze.Z.F2,Ze.Z.F3,Ze.Z.F4,Ze.Z.F5,Ze.Z.F6,Ze.Z.F7,Ze.Z.F8,Ze.Z.F9,Ze.Z.F10,Ze.Z.F11,Ze.Z.F12].includes(Me)}var qe=oe(26112),_e=oe(83836);function vt(Me,$e,ge){var Ie=(0,We.Z)((0,We.Z)({},Me),ge?$e:{});return Object.keys($e).forEach(function(ye){var Le=$e[ye];typeof Le=="function"&&(Ie[ye]=function(){for(var nt,Nt=arguments.length,Ft=new Array(Nt),Qt=0;QtJn&&(xn="".concat(Cn.slice(0,Jn),"..."))}var rr=function(br){br&&br.stopPropagation(),ur(Bt)};return typeof Pn=="function"?zr(Ut,xn,En,Kt,rr):Lr(Bt,xn,En,Kt,rr)},Gn=function(Bt){if(!ye.length)return null;var En=typeof Sn=="function"?Sn(Bt):Sn;return typeof Pn=="function"?zr(void 0,En,!1,!1,void 0,!0):Lr({title:En},En,!1)},Vt=fe.createElement("div",{className:"".concat(Er,"-search"),style:{width:or},onFocus:function(){jr(!0)},onBlur:function(){jr(!1)}},fe.createElement(St,{ref:Ft,open:Le,prefixCls:Ie,id:ge,inputElement:null,disabled:Lt,autoFocus:_t,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,qe.Z)($e,!0)}),fe.createElement("span",{ref:cr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),qt=fe.createElement(_e.Z,{prefixCls:"".concat(Er,"-overflow"),data:ye,renderItem:fr,renderRest:Gn,suffix:Vt,itemKey:Ae,maxCount:Xn});return fe.createElement("span",{className:"".concat(Er,"-wrap")},qt,!ye.length&&!Br&&fe.createElement("span",{className:"".concat(Er,"-placeholder")},Qt))},en=et,Et=function($e){var ge=$e.inputElement,Ie=$e.prefixCls,ye=$e.id,Le=$e.inputRef,nt=$e.disabled,Nt=$e.autoFocus,Ft=$e.autoComplete,Qt=$e.activeDescendantId,Lt=$e.mode,ht=$e.open,st=$e.values,_t=$e.placeholder,hn=$e.tabIndex,ln=$e.showSearch,cn=$e.searchValue,Zn=$e.activeValue,Xn=$e.maxLength,Jn=$e.onInputKeyDown,Nn=$e.onInputMouseDown,Sn=$e.onInputChange,Pn=$e.onInputPaste,Hn=$e.onInputCompositionStart,ur=$e.onInputCompositionEnd,qn=$e.onInputBlur,lr=$e.title,ir=fe.useState(!1),er=(0,xe.Z)(ir,2),tr=er[0],gr=er[1],mr=Lt==="combobox",cr=mr||ln,vr=st[0],Cr=cn||"";mr&&Zn&&!tr&&(Cr=Zn),fe.useEffect(function(){mr&&gr(!1)},[mr,Zn]);var or=Lt!=="combobox"&&!ht&&!ln?!1:!!Cr,dr=lr===void 0?Tt(vr):lr,Fn=fe.useMemo(function(){return vr?null:fe.createElement("span",{className:"".concat(Ie,"-selection-placeholder"),style:or?{visibility:"hidden"}:void 0},_t)},[vr,or,_t,Ie]);return fe.createElement("span",{className:"".concat(Ie,"-selection-wrap")},fe.createElement("span",{className:"".concat(Ie,"-selection-search")},fe.createElement(St,{ref:Le,prefixCls:Ie,id:ye,open:ht,inputElement:ge,disabled:nt,autoFocus:Nt,autoComplete:Ft,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,qe.Z)($e,!0),maxLength:mr?Xn:void 0})),!mr&&vr?fe.createElement("span",{className:"".concat(Ie,"-selection-item"),title:dr,style:or?{visibility:"hidden"}:void 0},vr.label):null,Fn)},$t=Et,Ve=function($e,ge){var Ie=(0,fe.useRef)(null),ye=(0,fe.useRef)(!1),Le=$e.prefixCls,nt=$e.open,Nt=$e.mode,Ft=$e.showSearch,Qt=$e.tokenWithEnter,Lt=$e.disabled,ht=$e.prefix,st=$e.autoClearSearchValue,_t=$e.onSearch,hn=$e.onSearchSubmit,ln=$e.onToggleOpen,cn=$e.onInputKeyDown,Zn=$e.onInputBlur,Xn=$e.domRef;fe.useImperativeHandle(ge,function(){return{focus:function(dr){Ie.current.focus(dr)},blur:function(){Ie.current.blur()}}});var Jn=tt(0),Nn=(0,xe.Z)(Jn,2),Sn=Nn[0],Pn=Nn[1],Hn=function(dr){var Fn=dr.which,wr=Ie.current instanceof HTMLTextAreaElement;!wr&&nt&&(Fn===Ze.Z.UP||Fn===Ze.Z.DOWN)&&dr.preventDefault(),cn&&cn(dr),Fn===Ze.Z.ENTER&&Nt==="tags"&&!ye.current&&!nt&&(hn==null||hn(dr.target.value)),!(wr&&!nt&&~[Ze.Z.UP,Ze.Z.DOWN,Ze.Z.LEFT,Ze.Z.RIGHT].indexOf(Fn))&&kt(Fn)&&ln(!0)},ur=function(){Pn(!0)},qn=(0,fe.useRef)(null),lr=function(dr){_t(dr,!0,ye.current)!==!1&&ln(!0)},ir=function(){ye.current=!0},er=function(dr){ye.current=!1,Nt!=="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!==Ie.current){var wr=document.body.style.msTouchAction!==void 0;wr?setTimeout(function(){Ie.current.focus()}):Ie.current.focus()}},cr=function(dr){var Fn=Sn();dr.target!==Ie.current&&!Fn&&!(Nt==="combobox"&&Lt)&&dr.preventDefault(),(Nt!=="combobox"&&(!Ft||!Fn)||!nt)&&(nt&&st!==!1&&_t("",!0,!1),ln())},vr={inputRef:Ie,onInputKeyDown:Hn,onInputMouseDown:ur,onInputChange:tr,onInputPaste:gr,onInputCompositionStart:ir,onInputCompositionEnd:er,onInputBlur:Zn},Cr=Nt==="multiple"||Nt==="tags"?fe.createElement(en,(0,re.Z)({},$e,vr)):fe.createElement($t,(0,re.Z)({},$e,vr));return fe.createElement("div",{ref:Xn,className:"".concat(Le,"-selector"),onClick:mr,onMouseDown:cr},ht&&fe.createElement("div",{className:"".concat(Le,"-prefix")},ht),Cr)},Ot=fe.forwardRef(Ve),it=Ot,ae=oe(68196),ee=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],z=function($e){var ge=$e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ge,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ge,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ge,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ge,adjustY:1},htmlRegion:"scroll"}}},ie=function($e,ge){var Ie=$e.prefixCls,ye=$e.disabled,Le=$e.visible,nt=$e.children,Nt=$e.popupElement,Ft=$e.animation,Qt=$e.transitionName,Lt=$e.dropdownStyle,ht=$e.dropdownClassName,st=$e.direction,_t=st===void 0?"ltr":st,hn=$e.placement,ln=$e.builtinPlacements,cn=$e.dropdownMatchSelectWidth,Zn=$e.dropdownRender,Xn=$e.dropdownAlign,Jn=$e.getPopupContainer,Nn=$e.empty,Sn=$e.getTriggerDOMNode,Pn=$e.onPopupVisibleChange,Hn=$e.onPopupMouseEnter,ur=(0,Ce.Z)($e,ee),qn="".concat(Ie,"-dropdown"),lr=Nt;Zn&&(lr=Zn(Nt));var ir=fe.useMemo(function(){return ln||z(cn)},[ln,cn]),er=Ft?"".concat(qn,"-").concat(Ft):Qt,tr=typeof cn=="number",gr=fe.useMemo(function(){return tr?null:cn===!1?"minWidth":"width"},[cn,tr]),mr=Lt;tr&&(mr=(0,We.Z)((0,We.Z)({},mr),{},{width:cn}));var cr=fe.useRef(null);return fe.useImperativeHandle(ge,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||(_t==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ir,prefixCls:qn,popupTransitionName:er,popup:fe.createElement("div",{onMouseEnter:Hn},lr),ref:cr,stretch:gr,popupAlign:Xn,popupVisible:Le,getPopupContainer:Jn,popupClassName:be()(ht,(0,pe.Z)({},"".concat(qn,"-empty"),Nn)),popupStyle:mr,getTriggerDOMNode:Sn,onPopupVisibleChange:Pn}),nt)},se=fe.forwardRef(ie),ne=se,we=oe(48745);function Be(Me,$e){var ge=Me.key,Ie;return"value"in Me&&(Ie=Me.value),ge!=null?ge:Ie!==void 0?Ie:"rc-index-key-".concat($e)}function wt(Me){return typeof Me!="undefined"&&!Number.isNaN(Me)}function Fe(Me,$e){var ge=Me||{},Ie=ge.label,ye=ge.value,Le=ge.options,nt=ge.groupLabel,Nt=Ie||($e?"children":"label");return{label:Nt,value:ye||"value",options:Le||"options",groupLabel:nt||Nt}}function Ke(Me){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=$e.fieldNames,Ie=$e.childrenAsData,ye=[],Le=Fe(ge,!1),nt=Le.label,Nt=Le.value,Ft=Le.options,Qt=Le.groupLabel;function Lt(ht,st){Array.isArray(ht)&&ht.forEach(function(_t){if(st||!(Ft in _t)){var hn=_t[Nt];ye.push({key:Be(_t,ye.length),groupOption:st,data:_t,label:_t[nt],value:hn})}else{var ln=_t[Qt];ln===void 0&&Ie&&(ln=_t.label),ye.push({key:Be(_t,ye.length),group:!0,data:_t,label:ln}),Lt(_t[Ft],!0)}})}return Lt(Me,!1),ye}function mt(Me){var $e=(0,We.Z)({},Me);return"props"in $e||Object.defineProperty($e,"props",{get:function(){return(0,Ee.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),$e}}),$e}var Pt=function($e,ge,Ie){if(!ge||!ge.length)return null;var ye=!1,Le=function Nt(Ft,Qt){var Lt=(0,we.Z)(Qt),ht=Lt[0],st=Lt.slice(1);if(!ht)return[Ft];var _t=Ft.split(ht);return ye=ye||_t.length>1,_t.reduce(function(hn,ln){return[].concat((0,Xe.Z)(hn),(0,Xe.Z)(Nt(ln,st)))},[]).filter(Boolean)},nt=Le($e,ge);return ye?typeof Ie!="undefined"?nt.slice(0,Ie):nt:null},Mt=fe.createContext(null),Wt=Mt;function Gt(Me){var $e=Me.visible,ge=Me.values;if(!$e)return null;var Ie=50;return fe.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ge.slice(0,Ie).map(function(ye){var Le=ye.label,nt=ye.value;return["number","string"].includes((0,Se.Z)(Le))?Le:nt}).join(", ")),ge.length>Ie?", ...":null)}var At=["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($e){return $e==="tags"||$e==="multiple"},on=fe.forwardRef(function(Me,$e){var ge,Ie=Me.id,ye=Me.prefixCls,Le=Me.className,nt=Me.showSearch,Nt=Me.tagRender,Ft=Me.direction,Qt=Me.omitDomProps,Lt=Me.displayValues,ht=Me.onDisplayValuesChange,st=Me.emptyOptions,_t=Me.notFoundContent,hn=_t===void 0?"Not Found":_t,ln=Me.onClear,cn=Me.mode,Zn=Me.disabled,Xn=Me.loading,Jn=Me.getInputElement,Nn=Me.getRawInputElement,Sn=Me.open,Pn=Me.defaultOpen,Hn=Me.onDropdownVisibleChange,ur=Me.activeValue,qn=Me.onActiveValueChange,lr=Me.activeDescendantId,ir=Me.searchValue,er=Me.autoClearSearchValue,tr=Me.onSearch,gr=Me.onSearchSplit,mr=Me.tokenSeparators,cr=Me.allowClear,vr=Me.prefix,Cr=Me.suffixIcon,or=Me.clearIcon,dr=Me.OptionList,Fn=Me.animation,wr=Me.transitionName,Rr=Me.dropdownStyle,jr=Me.dropdownClassName,Er=Me.dropdownMatchSelectWidth,Br=Me.dropdownRender,kr=Me.dropdownAlign,Lr=Me.placement,zr=Me.builtinPlacements,fr=Me.getPopupContainer,Gn=Me.showAction,Vt=Gn===void 0?[]:Gn,qt=Me.onFocus,Xt=Me.onBlur,Bt=Me.onKeyUp,En=Me.onKeyDown,On=Me.onMouseDown,Ut=(0,Ce.Z)(Me,At),Kt=Jt(cn),xn=(nt!==void 0?nt: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,xe.Z)(rr,2),br=Mr[0],Ir=Mr[1];fe.useEffect(function(){Ir((0,He.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=ut(),Fi=(0,xe.Z)(Di,3),xi=Fi[0],mi=Fi[1],Yi=Fi[2];fe.useImperativeHandle($e,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=Lt[0])===null||Pr===void 0?void 0:Pr.value;return typeof xr=="string"||typeof xr=="number"?String(xr):""},[ir,cn,Lt]),to=cn==="combobox"&&typeof Jn=="function"&&Jn()||null,ni=typeof Nn=="function"&&Nn(),Ai=(0,ke.x1)(Tr,ni==null||(ge=ni.props)===null||ge===void 0?void 0:ge.ref),ao=fe.useState(!1),Xi=(0,xe.Z)(ao,2),vi=Xi[0],Bi=Xi[1];(0,ot.Z)(function(){Bi(!0)},[]);var Gr=(0,Re.Z)(!1,{defaultValue:Pn,value:Sn}),zi=(0,xe.Z)(Gr,2),lo=zi[0],Zi=zi[1],Qr=vi?lo:!1,xo=!hn&&st;(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(Wt)||{},pr=hr.maxCount,Nr=hr.rawValues,Zr=function(xr,ci,fi){if(!(Kt&&wt(pr)&&(Nr==null?void 0:Nr.size)>=pr)){var Xr=!0,ri=xr;qn==null||qn(null);var Gi=Pt(xr,mr,wt(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=tt(),ui=(0,xe.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&&Lt.length){for(var ri=(0,Xe.Z)(Lt),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&&ht(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},[Nt,hn,Nn==null?void 0:Nn.size]),mr=function(Vt){Vt.preventDefault()},cr=function(Vt){var qt;(qt=tr.current)===null||qt===void 0||qt.scrollTo(typeof Vt=="number"?{index:Vt}:Vt)},vr=fe.useCallback(function(Gn){return Ft==="combobox"?!1:Nn.has(Gn)},[Ft,(0,Xe.Z)(Nn).toString(),Nn.size]),Cr=function(Vt){for(var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xt=er.length,Bt=0;Bt1&&arguments[1]!==void 0?arguments[1]:!1;wr(Vt);var Xt={source:qt?"keyboard":"mouse"},Bt=er[Vt];if(!Bt){cn(null,-1,Xt);return}cn(Bt.value,Vt,Xt)};(0,fe.useEffect)(function(){Rr(Zn!==!1?Cr(0):-1)},[er.length,Qt]);var jr=fe.useCallback(function(Gn){return Ft==="combobox"?String(Gn).toLowerCase()===Qt.toLowerCase():Nn.has(Gn)},[Ft,Qt,(0,Xe.Z)(Nn).toString(),Nn.size]);(0,fe.useEffect)(function(){var Gn=setTimeout(function(){if(!Nt&&nt&&Nn.size===1){var qt=Array.from(Nn)[0],Xt=er.findIndex(function(Bt){var En=Bt.data;return Qt?String(En.value).startsWith(Qt):En.value===qt});Xt!==-1&&(Rr(Xt),cr(Xt))}});if(nt){var Vt;(Vt=tr.current)===null||Vt===void 0||Vt.scrollTo(void 0)}return function(){return clearTimeout(Gn)}},[nt,Qt]);var Er=function(Vt){Vt!==void 0&&Xn(Vt,{selected:!Nn.has(Vt)}),Nt||Lt(!1)};if(fe.useImperativeHandle(ge,function(){return{onKeyDown:function(Vt){var qt=Vt.which,Xt=Vt.ctrlKey;switch(qt){case Ze.Z.N:case Ze.Z.P:case Ze.Z.UP:case Ze.Z.DOWN:{var Bt=0;if(qt===Ze.Z.UP?Bt=-1:qt===Ze.Z.DOWN?Bt=1:Je()&&Xt&&(qt===Ze.Z.N?Bt=1:qt===Ze.Z.P&&(Bt=-1)),Bt!==0){var En=Cr(Fn+Bt,Bt);cr(En),Rr(En,!0)}break}case Ze.Z.TAB:case Ze.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),nt&&Vt.preventDefault();break}case Ze.Z.ESC:Lt(!1),nt&&Vt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Vt){cr(Vt)}}}),er.length===0)return fe.createElement("div",{role:"listbox",id:"".concat(Le,"_list"),className:"".concat(ir,"-empty"),onMouseDown:mr},ht);var Br=Object.keys(Sn).map(function(Gn){return Sn[Gn]}),kr=function(Vt){return Vt.label};function Lr(Gn,Vt){var qt=Gn.group;return{role:qt?"presentation":"option",id:"".concat(Le,"_list_").concat(Vt)}}var zr=function(Vt){var qt=er[Vt];if(!qt)return null;var Xt=qt.data||{},Bt=Xt.value,En=qt.group,On=(0,qe.Z)(Xt,!0),Ut=kr(qt);return qt?fe.createElement("div",(0,re.Z)({"aria-label":typeof Ut=="string"&&!En?Ut:null},On,{key:Vt},Lr(qt,Vt),{"aria-selected":jr(Bt)}),Bt):null},fr={role:"listbox",id:"".concat(Le,"_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(De.Z,{itemKey:"key",ref:tr,data:er,height:ur,itemHeight:qn,fullHeight:!1,onMouseDown:mr,onScroll:st,virtual:Pn,direction:Hn,innerProps:Pn?null:fr},function(Gn,Vt){var qt=Gn.group,Xt=Gn.groupOption,Bt=Gn.data,En=Gn.label,On=Gn.value,Ut=Bt.key;if(qt){var Kt,xn=(Kt=Bt.title)!==null&&Kt!==void 0?Kt:jt(En)?En.toString():void 0;return fe.createElement("div",{className:be()(ir,"".concat(ir,"-group"),Bt.className),title:xn},En!==void 0?En:Ut)}var Cn=Bt.disabled,rr=Bt.title,Mr=Bt.children,br=Bt.style,Ir=Bt.className,Dr=(0,Ce.Z)(Bt,yt),Tr=(0,bn.Z)(Dr,Br),Hr=vr(On),Or=Cn||!Hr&&gr,_r="".concat(ir,"-option"),ti=be()(ir,_r,Ir,(0,pe.Z)((0,pe.Z)((0,pe.Z)((0,pe.Z)({},"".concat(_r,"-grouped"),Xt),"".concat(_r,"-active"),Fn===Vt&&!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=jt(xi)?xi.toString():void 0;return rr!==void 0&&(mi=rr),fe.createElement("div",(0,re.Z)({},(0,qe.Z)(Tr),Pn?{}:Lr(Gn,Vt),{"aria-selected":jr(On),className:ti,title:mi,onMouseMove:function(){Fn===Vt||Or||Rr(Vt)},onClick:function(){Or||Er(On)},style:br}),fe.createElement("div",{className:"".concat(_r,"-content")},typeof lr=="function"?lr(Gn,{index:Vt}):xi),fe.isValidElement(Jn)||Hr,Fi&&fe.createElement(Oe,{className:"".concat(ir,"-option-state"),customizeIcon:Jn,customizeIconProps:{value:On,disabled:Or,isSelected:Hr}},Hr?"\u2713":null))}))},fn=fe.forwardRef(rn),$n=fn,An=function(Me,$e){var ge=fe.useRef({values:new Map,options:new Map}),Ie=fe.useMemo(function(){var Le=ge.current,nt=Le.values,Nt=Le.options,Ft=Me.map(function(ht){if(ht.label===void 0){var st;return(0,We.Z)((0,We.Z)({},ht),{},{label:(st=nt.get(ht.value))===null||st===void 0?void 0:st.label})}return ht}),Qt=new Map,Lt=new Map;return Ft.forEach(function(ht){Qt.set(ht.value,ht),Lt.set(ht.value,$e.get(ht.value)||Nt.get(ht.value))}),ge.current.values=Qt,ge.current.options=Lt,Ft},[Me,$e]),ye=fe.useCallback(function(Le){return $e.get(Le)||ge.current.options.get(Le)},[$e]);return[Ie,ye]};function pn(Me,$e){return Pe(Me).join("").toUpperCase().includes($e)}var wn=function(Me,$e,ge,Ie,ye){return fe.useMemo(function(){if(!ge||Ie===!1)return Me;var Le=$e.options,nt=$e.label,Nt=$e.value,Ft=[],Qt=typeof Ie=="function",Lt=ge.toUpperCase(),ht=Qt?Ie:function(_t,hn){return ye?pn(hn[ye],Lt):hn[Le]?pn(hn[nt!=="children"?nt:"label"],Lt):pn(hn[Nt],Lt)},st=Qt?function(_t){return mt(_t)}:function(_t){return _t};return Me.forEach(function(_t){if(_t[Le]){var hn=ht(ge,st(_t));if(hn)Ft.push(_t);else{var ln=_t[Le].filter(function(cn){return ht(ge,st(cn))});ln.length&&Ft.push((0,We.Z)((0,We.Z)({},_t),{},(0,pe.Z)({},Le,ln)))}return}ht(ge,st(_t))&&Ft.push(_t)}),Ft},[Me,Ie,ye,ge,$e])},vn=oe(6551),Kn=oe(11592),gn=["children","value"],Dn=["children"];function nn(Me){var $e=Me,ge=$e.key,Ie=$e.props,ye=Ie.children,Le=Ie.value,nt=(0,Ce.Z)(Ie,gn);return(0,We.Z)({key:ge,value:Le!==void 0?Le:ge,children:ye},nt)}function yn(Me){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Kn.Z)(Me).map(function(ge,Ie){if(!fe.isValidElement(ge)||!ge.type)return null;var ye=ge,Le=ye.type.isSelectOptGroup,nt=ye.key,Nt=ye.props,Ft=Nt.children,Qt=(0,Ce.Z)(Nt,Dn);return $e||!Le?nn(ge):(0,We.Z)((0,We.Z)({key:"__RC_SELECT_GRP__".concat(nt===null?Ie:nt,"__"),label:nt},Qt),{},{options:yn(Ft)})}).filter(function(ge){return ge})}var un=function($e,ge,Ie,ye,Le){return fe.useMemo(function(){var nt=$e,Nt=!$e;Nt&&(nt=yn(ge));var Ft=new Map,Qt=new Map,Lt=function(_t,hn,ln){ln&&typeof ln=="string"&&_t.set(hn[ln],hn)},ht=function st(_t){for(var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=0;ln<_t.length;ln+=1){var cn=_t[ln];!cn[Ie.options]||hn?(Ft.set(cn[Ie.value],cn),Lt(Qt,cn,Ie.label),Lt(Qt,cn,ye),Lt(Qt,cn,Le)):st(cn[Ie.options],!0)}};return ht(nt),{options:nt,valueOptions:Ft,labelOptions:Qt}},[$e,ge,Ie,ye,Le])},Tn=un;function Yn(Me){var $e=fe.useRef();$e.current=Me;var ge=fe.useCallback(function(){return $e.current.apply($e,arguments)},[]);return ge}function zn(Me){var $e=Me.mode,ge=Me.options,Ie=Me.children,ye=Me.backfill,Le=Me.allowClear,nt=Me.placeholder,Nt=Me.getInputElement,Ft=Me.showSearch,Qt=Me.onSearch,Lt=Me.defaultOpen,ht=Me.autoFocus,st=Me.labelInValue,_t=Me.value,hn=Me.inputValue,ln=Me.optionLabelProp,cn=isMultiple($e),Zn=Ft!==void 0?Ft:cn||$e==="combobox",Xn=ge||convertChildrenToData(Ie);if(warning($e!=="tags"||Xn.every(function(Pn){return!Pn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),$e==="tags"||$e==="combobox"){var Jn=Xn.some(function(Pn){return Pn.options?Pn.options.some(function(Hn){return typeof("value"in Hn?Hn.value:Hn.key)=="number"}):typeof("value"in Pn?Pn.value:Pn.key)=="number"});warning(!Jn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning($e!=="combobox"||!ln,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning($e==="combobox"||!ye,"`backfill` only works with `combobox` mode."),warning($e==="combobox"||!Nt,"`getInputElement` only work with `combobox` mode."),noteOnce($e!=="combobox"||!Nt||!Le||!nt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Qt&&!Zn&&$e!=="combobox"&&$e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Lt||ht,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),_t!=null){var Nn=toArray(_t);warning(!st||Nn.every(function(Pn){return _typeof(Pn)==="object"&&("key"in Pn||"value"in Pn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!cn||Array.isArray(_t),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ie){var Sn=null;toNodeArray(Ie).some(function(Pn){if(!React.isValidElement(Pn)||!Pn.type)return!1;var Hn=Pn,ur=Hn.type;if(ur.isSelectOption)return!1;if(ur.isSelectOptGroup){var qn=toNodeArray(Pn.props.children).every(function(lr){return!React.isValidElement(lr)||!Pn.type||lr.type.isSelectOption?!0:(Sn=lr.type,!1)});return!qn}return Sn=ur,!0}),Sn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Sn.displayName||Sn.name||Sn,"`.")),warning(hn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Bn(Me,$e){if(Me){var ge=function Ie(ye){for(var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nt=0;nt0?ar(pr.options):pr.options}):pr})},Fi=fe.useMemo(function(){return Xn?Di(ti):ti},[ti,Xn,fr]),xi=fe.useMemo(function(){return Ke(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 mt(Ir(Zr.value))});dr(jr?pr:pr[0],jr?Nr:Nr[0])}},Yi=fe.useState(null),Ar=(0,xe.Z)(Yi,2),to=Ar[0],ni=Ar[1],Ai=fe.useState(0),ao=(0,xe.Z)(Ai,2),Xi=ao[0],vi=ao[1],Bi=ur!==void 0?ur:Ie!=="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),nt&&Ie==="combobox"&&ar!==null&&Nr==="keyboard"&&ni(String(ar))},[nt,Ie]),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,mt(_i)]};if(hr&&_t){var Zr=Nr(),$i=(0,xe.Z)(Zr,2),gi=$i[0],ui=$i[1];_t(gi,ui)}else if(!hr&&hn&&pr!=="clear"){var Yr=Nr(),Hi=(0,xe.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,Xe.Z)(br),[ar]):[ar]:hr=br.filter(function(Nr){return Nr.value!==ar}),mi(hr),zi(ar,pr),Ie==="combobox"?ni(""):(!Jt||st)&&(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,Xe.Z)(Tr),[pr])));mi(Nr),zi(pr,!0),Gn("")}return}hr.source!=="blur"&&(Ie==="combobox"&&mi(yr),Lt==null||Lt(yr))},xo=function(yr){var hr=yr;Ie!=="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,Xe.Z)(Tr),(0,Xe.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)({},Vt),{},{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,Vt,xi,Gr,Bi,lo,qn,Tr,kr,lr,cn,ir,tr,mr,Er,Pn]);return fe.createElement(Wt.Provider,{value:so},fe.createElement(gt,(0,re.Z)({},wr,{id:Rr,prefixCls:Le,ref:$e,omitDomProps:Qn,mode:Ie,displayValues:Dr,onDisplayValuesChange:Zi,direction:ir,searchValue:fr,onSearch:Qr,autoClearSearchValue:st,onSearchSplit:xo,dropdownMatchSelectWidth:cn,OptionList:$n,emptyOptions:!xi.length,activeValue:to,activeDescendantId:"".concat(Rr,"_list_").concat(Xi)})))}),Zt=Ct;Zt.Option=an,Zt.OptGroup=zt;var In=Zt,Un=In},22711:function(Rt,It,oe){"use strict";oe.r(It),oe.d(It,{ResizableTextArea:function(){return Ne},default:function(){return St}});var re=oe(60499),Xe=oe(18642),pe=oe(85899),We=oe(77654),xe=oe(72190),Ce=oe(42244),Se=oe(92310),Re=oe.n(Se),Ee=oe(36901),fe=oe(66003),Ge=oe(30292),be=oe(18929),ot=oe(59301),He=oe(43749),ke=oe(29301),ze=oe(34280),Oe=oe(16089),lt=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,xt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],at={},ut;function tt(Pe){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=Pe.getAttribute("id")||Pe.getAttribute("data-reactid")||Pe.getAttribute("name");if(pt&&at[Dt])return at[Dt];var ve=window.getComputedStyle(Pe),de=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),rt=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),Tt=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),ft=xt.map(function(Qe){return"".concat(Qe,":").concat(ve.getPropertyValue(Qe))}).join(";"),Ae={sizingStyle:ft,paddingSize:rt,borderSize:Tt,boxSizing:de};return pt&&Dt&&(at[Dt]=Ae),Ae}function dt(Pe){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ut||(ut=document.createElement("textarea"),ut.setAttribute("tab-index","-1"),ut.setAttribute("aria-hidden","true"),ut.setAttribute("name","hiddenTextarea"),document.body.appendChild(ut)),Pe.getAttribute("wrap")?ut.setAttribute("wrap",Pe.getAttribute("wrap")):ut.removeAttribute("wrap");var de=tt(Pe,pt),rt=de.paddingSize,Tt=de.borderSize,ft=de.boxSizing,Ae=de.sizingStyle;ut.setAttribute("style","".concat(Ae,";").concat(lt)),ut.value=Pe.value||Pe.placeholder||"";var Qe=void 0,et=void 0,en,Et=ut.scrollHeight;if(ft==="border-box"?Et+=Tt:ft==="content-box"&&(Et-=rt),Dt!==null||ve!==null){ut.value=" ";var $t=ut.scrollHeight-rt;Dt!==null&&(Qe=$t*Dt,ft==="border-box"&&(Qe=Qe+rt+Tt),Et=Math.max(Qe,Et)),ve!==null&&(et=$t*ve,ft==="border-box"&&(et=et+rt+Tt),en=Et>et?"":"hidden",Et=Math.min(et,Et))}var Ve={height:Et,overflowY:en,resize:"none"};return Qe&&(Ve.minHeight=Qe),et&&(Ve.maxHeight=et),Ve}var Ze=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kt=0,qe=1,_e=2,vt=ot.forwardRef(function(Pe,pt){var Dt=Pe,ve=Dt.prefixCls,de=Dt.defaultValue,rt=Dt.value,Tt=Dt.autoSize,ft=Dt.onResize,Ae=Dt.className,Qe=Dt.style,et=Dt.disabled,en=Dt.onChange,Et=Dt.onInternalAutoSize,$t=(0,Ce.Z)(Dt,Ze),Ve=(0,be.Z)(de,{value:rt,postState:function(an){return an!=null?an:""}}),Ot=(0,xe.Z)(Ve,2),it=Ot[0],ae=Ot[1],ee=function(an){ae(an.target.value),en==null||en(an)},z=ot.useRef();ot.useImperativeHandle(pt,function(){return{textArea:z.current}});var ie=ot.useMemo(function(){return Tt&&(0,He.Z)(Tt)==="object"?[Tt.minRows,Tt.maxRows]:[]},[Tt]),se=(0,xe.Z)(ie,2),ne=se[0],we=se[1],Be=!!Tt,wt=function(){try{if(document.activeElement===z.current){var an=z.current,Ln=an.selectionStart,bn=an.selectionEnd,De=an.scrollTop;z.current.setSelectionRange(Ln,bn),z.current.scrollTop=De}}catch(Je){}},Fe=ot.useState(_e),Ke=(0,xe.Z)(Fe,2),mt=Ke[0],Pt=Ke[1],Mt=ot.useState(),Wt=(0,xe.Z)(Mt,2),Gt=Wt[0],At=Wt[1],sn=function(){Pt(kt)};(0,ze.Z)(function(){Be&&sn()},[rt,ne,we,Be]),(0,ze.Z)(function(){if(mt===kt)Pt(qe);else if(mt===qe){var Yt=dt(z.current,!1,ne,we);Pt(_e),At(Yt)}else wt()},[mt]);var Jt=ot.useRef(),on=function(){Oe.Z.cancel(Jt.current)},gt=function(an){mt===_e&&(ft==null||ft(an),Tt&&(on(),Jt.current=(0,Oe.Z)(function(){sn()})))};ot.useEffect(function(){return on},[]);var dn=Be?Gt:null,zt=(0,pe.Z)((0,pe.Z)({},Qe),dn);return(mt===kt||mt===qe)&&(zt.overflowY="hidden",zt.overflowX="hidden"),ot.createElement(ke.Z,{onResize:gt,disabled:!(Tt||ft)},ot.createElement("textarea",(0,re.Z)({},$t,{ref:z,style:zt,className:Re()(ve,Ae,(0,Xe.Z)({},"".concat(ve,"-disabled"),et)),disabled:et,value:it,onChange:ee})))}),Ne=vt,Ue=["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"],Ye=ot.forwardRef(function(Pe,pt){var Dt,ve=Pe.defaultValue,de=Pe.value,rt=Pe.onFocus,Tt=Pe.onBlur,ft=Pe.onChange,Ae=Pe.allowClear,Qe=Pe.maxLength,et=Pe.onCompositionStart,en=Pe.onCompositionEnd,Et=Pe.suffix,$t=Pe.prefixCls,Ve=$t===void 0?"rc-textarea":$t,Ot=Pe.showCount,it=Pe.count,ae=Pe.className,ee=Pe.style,z=Pe.disabled,ie=Pe.hidden,se=Pe.classNames,ne=Pe.styles,we=Pe.onResize,Be=Pe.onClear,wt=Pe.onPressEnter,Fe=Pe.readOnly,Ke=Pe.autoSize,mt=Pe.onKeyDown,Pt=(0,Ce.Z)(Pe,Ue),Mt=(0,be.Z)(ve,{value:de,defaultValue:ve}),Wt=(0,xe.Z)(Mt,2),Gt=Wt[0],At=Wt[1],sn=Gt==null?"":String(Gt),Jt=ot.useState(!1),on=(0,xe.Z)(Jt,2),gt=on[0],dn=on[1],zt=ot.useRef(!1),Yt=ot.useState(null),an=(0,xe.Z)(Yt,2),Ln=an[0],bn=an[1],De=(0,ot.useRef)(null),Je=(0,ot.useRef)(null),yt=function(){var Zt;return(Zt=Je.current)===null||Zt===void 0?void 0:Zt.textArea},jt=function(){yt().focus()};(0,ot.useImperativeHandle)(pt,function(){var Ct;return{resizableTextArea:Je.current,focus:jt,blur:function(){yt().blur()},nativeElement:((Ct=De.current)===null||Ct===void 0?void 0:Ct.nativeElement)||yt()}}),(0,ot.useEffect)(function(){dn(function(Ct){return!z&&Ct})},[z]);var rn=ot.useState(null),fn=(0,xe.Z)(rn,2),$n=fn[0],An=fn[1];ot.useEffect(function(){if($n){var Ct;(Ct=yt()).setSelectionRange.apply(Ct,(0,We.Z)($n))}},[$n]);var pn=(0,fe.Z)(it,Ot),wn=(Dt=pn.max)!==null&&Dt!==void 0?Dt:Qe,vn=Number(wn)>0,Kn=pn.strategy(sn),gn=!!wn&&Kn>wn,Dn=function(Zt,In){var Un=In;!zt.current&&pn.exceedFormatter&&pn.max&&pn.strategy(In)>pn.max&&(Un=pn.exceedFormatter(In,{max:pn.max}),In!==Un&&An([yt().selectionStart||0,yt().selectionEnd||0])),At(Un),(0,Ge.rJ)(Zt.currentTarget,Zt,ft,Un)},nn=function(Zt){zt.current=!0,et==null||et(Zt)},yn=function(Zt){zt.current=!1,Dn(Zt,Zt.currentTarget.value),en==null||en(Zt)},un=function(Zt){Dn(Zt,Zt.target.value)},Tn=function(Zt){Zt.key==="Enter"&&wt&&wt(Zt),mt==null||mt(Zt)},Yn=function(Zt){dn(!0),rt==null||rt(Zt)},zn=function(Zt){dn(!1),Tt==null||Tt(Zt)},Bn=function(Zt){At(""),jt(),(0,Ge.rJ)(yt(),Zt,ft)},_n=Et,Vn;pn.show&&(pn.showFormatter?Vn=pn.showFormatter({value:sn,count:Kn,maxLength:wn}):Vn="".concat(Kn).concat(vn?" / ".concat(wn):""),_n=ot.createElement(ot.Fragment,null,_n,ot.createElement("span",{className:Re()("".concat(Ve,"-data-count"),se==null?void 0:se.count),style:ne==null?void 0:ne.count},Vn)));var Qn=function(Zt){var In;we==null||we(Zt),(In=yt())!==null&&In!==void 0&&In.style.height&&bn(!0)},jn=!Ke&&!Ot&&!Ae;return ot.createElement(Ee.BaseInput,{ref:De,value:sn,allowClear:Ae,handleReset:Bn,suffix:_n,prefixCls:Ve,classNames:(0,pe.Z)((0,pe.Z)({},se),{},{affixWrapper:Re()(se==null?void 0:se.affixWrapper,(0,Xe.Z)((0,Xe.Z)({},"".concat(Ve,"-show-count"),Ot),"".concat(Ve,"-textarea-allow-clear"),Ae))}),disabled:z,focused:gt,className:Re()(ae,gn&&"".concat(Ve,"-out-of-range")),style:(0,pe.Z)((0,pe.Z)({},ee),Ln&&!jn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Vn=="string"?Vn:void 0}},hidden:ie,readOnly:Fe,onClear:Be},ot.createElement(Ne,(0,re.Z)({},Pt,{autoSize:Ke,maxLength:Qe,onKeyDown:Tn,onChange:un,onFocus:Yn,onBlur:zn,onCompositionStart:nn,onCompositionEnd:yn,className:Re()(se==null?void 0:se.textarea),style:(0,pe.Z)((0,pe.Z)({},ne==null?void 0:ne.textarea),{},{resize:ee==null?void 0:ee.resize}),disabled:z,prefixCls:Ve,onResize:Qn,ref:Je,readOnly:Fe})))}),me=Ye,St=me},48911:function(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return it}});var re=oe(60499),Xe=oe(43749),pe=oe(85899),We=oe(18642),xe=oe(72190),Ce=oe(42244),Se=oe(92310),Re=oe.n(Se),Ee=oe(29301),fe=oe(70425),Ge=oe(34280),be=oe(59301),ot=oe(4676),He=be.forwardRef(function(ae,ee){var z=ae.height,ie=ae.offsetY,se=ae.offsetX,ne=ae.children,we=ae.prefixCls,Be=ae.onInnerResize,wt=ae.innerProps,Fe=ae.rtl,Ke=ae.extra,mt={},Pt={display:"flex",flexDirection:"column"};return ie!==void 0&&(mt={height:z,position:"relative",overflow:"hidden"},Pt=(0,pe.Z)((0,pe.Z)({},Pt),{},(0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)((0,We.Z)({transform:"translateY(".concat(ie,"px)")},Fe?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),be.createElement("div",{style:mt},be.createElement(Ee.Z,{onResize:function(Wt){var Gt=Wt.offsetHeight;Gt&&Be&&Be()}},be.createElement("div",(0,re.Z)({style:Pt,className:Re()((0,We.Z)({},"".concat(we,"-holder-inner"),we)),ref:ee},wt),ne,Ke)))});He.displayName="Filler";var ke=He;function ze(ae){var ee=ae.children,z=ae.setRef,ie=be.useCallback(function(se){z(se)},[]);return be.cloneElement(ee,{ref:ie})}function Oe(ae,ee,z,ie,se,ne,we,Be){var wt=Be.getKey;return ae.slice(ee,z+1).map(function(Fe,Ke){var mt=ee+Ke,Pt=we(Fe,mt,{style:{width:ie},offsetX:se}),Mt=wt(Fe);return be.createElement(ze,{key:Mt,setRef:function(Gt){return ne(Fe,Gt)}},Pt)})}function lt(ae,ee,z,ie){var se=z-ae,ne=ee-z,we=Math.min(se,ne)*2;if(ie<=we){var Be=Math.floor(ie/2);return ie%2?z+Be+1:z-Be}return se>ne?z-(ie-ne):z+(ie-se)}function xt(ae,ee,z){var ie=ae.length,se=ee.length,ne,we;if(ie===0&&se===0)return null;ie2&&arguments[2]!==void 0?arguments[2]:!1,mt=wt?Fe<0&&Be.current.left||Fe>0&&Be.current.right:Fe<0&&Be.current.top||Fe>0&&Be.current.bottom;return Ke&&mt?(clearTimeout(ne.current),se.current=!1):(!mt||se.current)&&we(),!se.current&&mt}};function kt(ae,ee,z,ie,se,ne,we){var Be=(0,be.useRef)(0),wt=(0,be.useRef)(null),Fe=(0,be.useRef)(null),Ke=(0,be.useRef)(!1),mt=Ze(ee,z,ie,se);function Pt(Jt,on){if(ut.Z.cancel(wt.current),!mt(!1,on)){var gt=Jt;if(!gt._virtualHandled)gt._virtualHandled=!0;else return;Be.current+=on,Fe.current=on,dt||gt.preventDefault(),wt.current=(0,ut.Z)(function(){var dn=Ke.current?10:1;we(Be.current*dn,!1),Be.current=0})}}function Mt(Jt,on){we(on,!0),dt||Jt.preventDefault()}var Wt=(0,be.useRef)(null),Gt=(0,be.useRef)(null);function At(Jt){if(ae){ut.Z.cancel(Gt.current),Gt.current=(0,ut.Z)(function(){Wt.current=null},2);var on=Jt.deltaX,gt=Jt.deltaY,dn=Jt.shiftKey,zt=on,Yt=gt;(Wt.current==="sx"||!Wt.current&&dn&>&&!on)&&(zt=gt,Yt=0,Wt.current="sx");var an=Math.abs(zt),Ln=Math.abs(Yt);Wt.current===null&&(Wt.current=ne&&an>Ln?"x":"y"),Wt.current==="y"?Pt(Jt,Yt):Mt(Jt,zt)}}function sn(Jt){ae&&(Ke.current=Jt.detail===Fe.current)}return[At,sn]}function qe(ae,ee,z,ie){var se=be.useMemo(function(){return[new Map,[]]},[ae,z.id,ie]),ne=(0,xe.Z)(se,2),we=ne[0],Be=ne[1],wt=function(Ke){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ke,Pt=we.get(Ke),Mt=we.get(mt);if(Pt===void 0||Mt===void 0)for(var Wt=ae.length,Gt=Be.length;Gt0&&arguments[0]!==void 0?arguments[0]:!1;Ke();var Wt=function(){var sn=!1;Be.current.forEach(function(Jt,on){if(Jt&&Jt.offsetParent){var gt=Jt.offsetHeight,dn=getComputedStyle(Jt),zt=dn.marginTop,Yt=dn.marginBottom,an=Ye(zt),Ln=Ye(Yt),bn=gt+an+Ln;wt.current.get(on)!==bn&&(wt.current.set(on,bn),sn=!0)}}),sn&&we(function(Jt){return Jt+1})};if(Mt)Wt();else{Fe.current+=1;var Gt=Fe.current;Promise.resolve().then(function(){Gt===Fe.current&&Wt()})}}function Pt(Mt,Wt){var Gt=ae(Mt),At=Be.current.get(Gt);Wt?(Be.current.set(Gt,Wt),mt()):Be.current.delete(Gt),!At!=!Wt&&(Wt?ee==null||ee(Mt):z==null||z(Mt))}return(0,be.useEffect)(function(){return Ke},[]),[Pt,mt,wt.current,ne]}var St=14/15;function Pe(ae,ee,z){var ie=(0,be.useRef)(!1),se=(0,be.useRef)(0),ne=(0,be.useRef)(0),we=(0,be.useRef)(null),Be=(0,be.useRef)(null),wt,Fe=function(Mt){if(ie.current){var Wt=Math.ceil(Mt.touches[0].pageX),Gt=Math.ceil(Mt.touches[0].pageY),At=se.current-Wt,sn=ne.current-Gt,Jt=Math.abs(At)>Math.abs(sn);Jt?se.current=Wt:ne.current=Gt;var on=z(Jt,Jt?At:sn,!1,Mt);on&&Mt.preventDefault(),clearInterval(Be.current),on&&(Be.current=setInterval(function(){Jt?At*=St:sn*=St;var gt=Math.floor(Jt?At:sn);(!z(Jt,gt,!0)||Math.abs(gt)<=.1)&&clearInterval(Be.current)},16))}},Ke=function(){ie.current=!1,wt()},mt=function(Mt){wt(),Mt.touches.length===1&&!ie.current&&(ie.current=!0,se.current=Math.ceil(Mt.touches[0].pageX),ne.current=Math.ceil(Mt.touches[0].pageY),we.current=Mt.target,we.current.addEventListener("touchmove",Fe,{passive:!1}),we.current.addEventListener("touchend",Ke,{passive:!0}))};wt=function(){we.current&&(we.current.removeEventListener("touchmove",Fe),we.current.removeEventListener("touchend",Ke))},(0,Ge.Z)(function(){return ae&&ee.current.addEventListener("touchstart",mt,{passive:!0}),function(){var Pt;(Pt=ee.current)===null||Pt===void 0||Pt.removeEventListener("touchstart",mt),wt(),clearInterval(Be.current)}},[ae])}function pt(ae){return Math.floor(Math.pow(ae,.5))}function Dt(ae,ee){var z="touches"in ae?ae.touches[0]:ae;return z[ee?"pageX":"pageY"]-window[ee?"scrollX":"scrollY"]}function ve(ae,ee,z){be.useEffect(function(){var ie=ee.current;if(ae&&ie){var se=!1,ne,we,Be=function(){ut.Z.cancel(ne)},wt=function Pt(){Be(),ne=(0,ut.Z)(function(){z(we),Pt()})},Fe=function(){se=!1,Be()},Ke=function(Mt){if(!(Mt.target.draggable||Mt.button!==0)){var Wt=Mt;Wt._virtualHandled||(Wt._virtualHandled=!0,se=!0)}},mt=function(Mt){if(se){var Wt=Dt(Mt,!1),Gt=ie.getBoundingClientRect(),At=Gt.top,sn=Gt.bottom;if(Wt<=At){var Jt=At-Wt;we=-pt(Jt),wt()}else if(Wt>=sn){var on=Wt-sn;we=pt(on),wt()}else Be()}};return ie.addEventListener("mousedown",Ke),ie.ownerDocument.addEventListener("mouseup",Fe),ie.ownerDocument.addEventListener("mousemove",mt),ie.ownerDocument.addEventListener("dragend",Fe),function(){ie.removeEventListener("mousedown",Ke),ie.ownerDocument.removeEventListener("mouseup",Fe),ie.ownerDocument.removeEventListener("mousemove",mt),ie.ownerDocument.removeEventListener("dragend",Fe),Be()}}},[ae])}var de=10;function rt(ae,ee,z,ie,se,ne,we,Be){var wt=be.useRef(),Fe=be.useState(null),Ke=(0,xe.Z)(Fe,2),mt=Ke[0],Pt=Ke[1];return(0,Ge.Z)(function(){if(mt&&mt.times=0;jt-=1){var rn=se(ee[jt]),fn=z.get(rn);if(fn===void 0){Jt=!0;break}if(yt-=fn,yt<=0)break}switch(dn){case"top":gt=Yt-At;break;case"bottom":gt=an-sn+At;break;default:{var $n=ae.current.scrollTop,An=$n+sn;Yt<$n?on="top":an>An&&(on="bottom")}}gt!==null&&we(gt),gt!==mt.lastTop&&(Jt=!0)}Jt&&Pt((0,pe.Z)((0,pe.Z)({},mt),{},{times:mt.times+1,targetAlign:on,lastTop:gt}))}},[mt,ae.current]),function(Mt){if(Mt==null){Be();return}if(ut.Z.cancel(wt.current),typeof Mt=="number")we(Mt);else if(Mt&&(0,Xe.Z)(Mt)==="object"){var Wt,Gt=Mt.align;"index"in Mt?Wt=Mt.index:Wt=ee.findIndex(function(Jt){return se(Jt)===Mt.key});var At=Mt.offset,sn=At===void 0?0:At;Pt({times:0,index:Wt,offset:sn,originAlign:Gt})}}}var Tt=be.forwardRef(function(ae,ee){var z=ae.prefixCls,ie=ae.rtl,se=ae.scrollOffset,ne=ae.scrollRange,we=ae.onStartMove,Be=ae.onStopMove,wt=ae.onScroll,Fe=ae.horizontal,Ke=ae.spinSize,mt=ae.containerSize,Pt=ae.style,Mt=ae.thumbStyle,Wt=ae.showScrollBar,Gt=be.useState(!1),At=(0,xe.Z)(Gt,2),sn=At[0],Jt=At[1],on=be.useState(null),gt=(0,xe.Z)(on,2),dn=gt[0],zt=gt[1],Yt=be.useState(null),an=(0,xe.Z)(Yt,2),Ln=an[0],bn=an[1],De=!ie,Je=be.useRef(),yt=be.useRef(),jt=be.useState(Wt),rn=(0,xe.Z)(jt,2),fn=rn[0],$n=rn[1],An=be.useRef(),pn=function(){Wt===!0||Wt===!1||(clearTimeout(An.current),$n(!0),An.current=setTimeout(function(){$n(!1)},3e3))},wn=ne-mt||0,vn=mt-Ke||0,Kn=be.useMemo(function(){if(se===0||wn===0)return 0;var Bn=se/wn;return Bn*vn},[se,wn,vn]),gn=function(_n){_n.stopPropagation(),_n.preventDefault()},Dn=be.useRef({top:Kn,dragging:sn,pageY:dn,startTop:Ln});Dn.current={top:Kn,dragging:sn,pageY:dn,startTop:Ln};var nn=function(_n){Jt(!0),zt(Dt(_n,Fe)),bn(Dn.current.top),we(),_n.stopPropagation(),_n.preventDefault()};be.useEffect(function(){var Bn=function(jn){jn.preventDefault()},_n=Je.current,Vn=yt.current;return _n.addEventListener("touchstart",Bn,{passive:!1}),Vn.addEventListener("touchstart",nn,{passive:!1}),function(){_n.removeEventListener("touchstart",Bn),Vn.removeEventListener("touchstart",nn)}},[]);var yn=be.useRef();yn.current=wn;var un=be.useRef();un.current=vn,be.useEffect(function(){if(sn){var Bn,_n=function(jn){var Ct=Dn.current,Zt=Ct.dragging,In=Ct.pageY,Un=Ct.startTop;ut.Z.cancel(Bn);var Me=Je.current.getBoundingClientRect(),$e=mt/(Fe?Me.width:Me.height);if(Zt){var ge=(Dt(jn,Fe)-In)*$e,Ie=Un;!De&&Fe?Ie-=ge:Ie+=ge;var ye=yn.current,Le=un.current,nt=Le?Ie/Le:0,Nt=Math.ceil(nt*ye);Nt=Math.max(Nt,0),Nt=Math.min(Nt,ye),Bn=(0,ut.Z)(function(){wt(Nt,Fe)})}},Vn=function(){Jt(!1),Be()};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),ut.Z.cancel(Bn)}}},[sn]),be.useEffect(function(){return pn(),function(){clearTimeout(An.current)}},[se]),be.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 Fe?(Object.assign(Yn,{height:8,left:0,right:0,bottom:0}),Object.assign(zn,(0,We.Z)({height:"100%",width:Ke},De?"left":"right",Kn))):(Object.assign(Yn,(0,We.Z)({width:8,top:0,bottom:0},De?"right":"left",0)),Object.assign(zn,{width:"100%",height:Ke,top:Kn})),be.createElement("div",{ref:Je,className:Re()(Tn,(0,We.Z)((0,We.Z)((0,We.Z)({},"".concat(Tn,"-horizontal"),Fe),"".concat(Tn,"-vertical"),!Fe),"".concat(Tn,"-visible"),fn)),style:(0,pe.Z)((0,pe.Z)({},Yn),Pt),onMouseDown:gn,onMouseMove:pn},be.createElement("div",{ref:yt,className:Re()("".concat(Tn,"-thumb"),(0,We.Z)({},"".concat(Tn,"-thumb-moving"),sn)),style:(0,pe.Z)((0,pe.Z)({},zn),Mt),onMouseDown:nn}))}),ft=Tt,Ae=20;function Qe(){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,Ae),Math.floor(z)}var et=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],en=[],Et={overflowY:"auto",overflowAnchor:"none"};function $t(ae,ee){var z=ae.prefixCls,ie=z===void 0?"rc-virtual-list":z,se=ae.className,ne=ae.height,we=ae.itemHeight,Be=ae.fullHeight,wt=Be===void 0?!0:Be,Fe=ae.style,Ke=ae.data,mt=ae.children,Pt=ae.itemKey,Mt=ae.virtual,Wt=ae.direction,Gt=ae.scrollWidth,At=ae.component,sn=At===void 0?"div":At,Jt=ae.onScroll,on=ae.onVirtualScroll,gt=ae.onVisibleChange,dn=ae.innerProps,zt=ae.extraRender,Yt=ae.styles,an=ae.showScrollBar,Ln=an===void 0?"optional":an,bn=(0,Ce.Z)(ae,et),De=be.useCallback(function(Vt){return typeof Pt=="function"?Pt(Vt):Vt==null?void 0:Vt[Pt]},[Pt]),Je=me(De,null,null),yt=(0,xe.Z)(Je,4),jt=yt[0],rn=yt[1],fn=yt[2],$n=yt[3],An=!!(Mt!==!1&&ne&&we),pn=be.useMemo(function(){return Object.values(fn.maps).reduce(function(Vt,qt){return Vt+qt},0)},[fn.id,fn.maps]),wn=An&&Ke&&(Math.max(we*Ke.length,pn)>ne||!!Gt),vn=Wt==="rtl",Kn=Re()(ie,(0,We.Z)({},"".concat(ie,"-rtl"),vn),se),gn=Ke||en,Dn=(0,be.useRef)(),nn=(0,be.useRef)(),yn=(0,be.useRef)(),un=(0,be.useState)(0),Tn=(0,xe.Z)(un,2),Yn=Tn[0],zn=Tn[1],Bn=(0,be.useState)(0),_n=(0,xe.Z)(Bn,2),Vn=_n[0],Qn=_n[1],jn=(0,be.useState)(!1),Ct=(0,xe.Z)(jn,2),Zt=Ct[0],In=Ct[1],Un=function(){In(!0)},Me=function(){In(!1)},$e={getKey:De};function ge(Vt){zn(function(qt){var Xt;typeof Vt=="function"?Xt=Vt(qt):Xt=Vt;var Bt=ur(Xt);return Dn.current.scrollTop=Bt,Bt})}var Ie=(0,be.useRef)({start:0,end:gn.length}),ye=(0,be.useRef)(),Le=at(gn,De),nt=(0,xe.Z)(Le,1),Nt=nt[0];ye.current=Nt;var Ft=be.useMemo(function(){if(!An)return{scrollHeight:void 0,start:0,end:gn.length-1,offset:void 0};if(!wn){var Vt;return{scrollHeight:((Vt=nn.current)===null||Vt===void 0?void 0:Vt.offsetHeight)||0,start:0,end:gn.length-1,offset:void 0}}for(var qt=0,Xt,Bt,En,On=gn.length,Ut=0;Ut=Yn&&Xt===void 0&&(Xt=Ut,Bt=qt),rr>Yn+ne&&En===void 0&&(En=Ut),qt=rr}return Xt===void 0&&(Xt=0,Bt=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:Bt}},[wn,An,Yn,gn,$n,ne]),Qt=Ft.scrollHeight,Lt=Ft.start,ht=Ft.end,st=Ft.offset;Ie.current.start=Lt,Ie.current.end=ht,be.useLayoutEffect(function(){var Vt=fn.getRecord();if(Vt.size===1){var qt=Array.from(Vt.keys())[0],Xt=Vt.get(qt),Bt=gn[Lt];if(Bt&&Xt===void 0){var En=De(Bt);if(En===qt){var On=fn.get(qt),Ut=On-we;ge(function(Kt){return Kt+Ut})}}}fn.resetRecord()},[Qt]);var _t=be.useState({width:0,height:ne}),hn=(0,xe.Z)(_t,2),ln=hn[0],cn=hn[1],Zn=function(qt){cn({width:qt.offsetWidth,height:qt.offsetHeight})},Xn=(0,be.useRef)(),Jn=(0,be.useRef)(),Nn=be.useMemo(function(){return Qe(ln.width,Gt)},[ln.width,Gt]),Sn=be.useMemo(function(){return Qe(ln.height,Qt)},[ln.height,Qt]),Pn=Qt-ne,Hn=(0,be.useRef)(Pn);Hn.current=Pn;function ur(Vt){var qt=Vt;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>=Gt,tr=Ze(qn,lr,ir,er),gr=function(){return{x:vn?-Vn:Vn,y:Yn}},mr=(0,be.useRef)(gr()),cr=(0,fe.zX)(function(Vt){if(on){var qt=(0,pe.Z)((0,pe.Z)({},gr()),Vt);(mr.current.x!==qt.x||mr.current.y!==qt.y)&&(on(qt),mr.current=qt)}});function vr(Vt,qt){var Xt=Vt;qt?((0,ot.flushSync)(function(){Qn(Xt)}),cr()):ge(Xt)}function Cr(Vt){var qt=Vt.currentTarget.scrollTop;qt!==Yn&&ge(qt),Jt==null||Jt(Vt),cr()}var or=function(qt){var Xt=qt,Bt=Gt?Gt-ln.width:0;return Xt=Math.max(Xt,0),Xt=Math.min(Xt,Bt),Xt},dr=(0,fe.zX)(function(Vt,qt){qt?((0,ot.flushSync)(function(){Qn(function(Xt){var Bt=Xt+(vn?-Vt:Vt);return or(Bt)})}),cr()):ge(function(Xt){var Bt=Xt+Vt;return Bt})}),Fn=kt(An,qn,lr,ir,er,!!Gt,dr),wr=(0,xe.Z)(Fn,2),Rr=wr[0],jr=wr[1];Pe(An,Dn,function(Vt,qt,Xt,Bt){var En=Bt;return tr(Vt,qt,Xt)?!1:!En||!En._virtualHandled?(En&&(En._virtualHandled=!0),Rr({preventDefault:function(){},deltaX:Vt?qt:0,deltaY:Vt?0:qt}),!0):!1}),ve(wn,Dn,function(Vt){ge(function(qt){return qt+Vt})}),(0,Ge.Z)(function(){function Vt(Xt){var Bt=qn&&Xt.detail<0,En=lr&&Xt.detail>0;An&&!Bt&&!En&&Xt.preventDefault()}var qt=Dn.current;return qt.addEventListener("wheel",Rr,{passive:!1}),qt.addEventListener("DOMMouseScroll",jr,{passive:!0}),qt.addEventListener("MozMousePixelScroll",Vt,{passive:!1}),function(){qt.removeEventListener("wheel",Rr),qt.removeEventListener("DOMMouseScroll",jr),qt.removeEventListener("MozMousePixelScroll",Vt)}},[An,qn,lr]),(0,Ge.Z)(function(){if(Gt){var Vt=or(Vn);Qn(Vt),cr({x:Vt})}},[ln.width,Gt]);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=rt(Dn,gn,fn,we,De,function(){return rn(!0)},ge,Er);be.useImperativeHandle(ee,function(){return{nativeElement:yn.current,getScrollInfo:gr,scrollTo:function(qt){function Xt(Bt){return Bt&&(0,Xe.Z)(Bt)==="object"&&("left"in Bt||"top"in Bt)}Xt(qt)?(qt.left!==void 0&&Qn(or(qt.left)),Br(qt.top)):Br(qt)}}}),(0,Ge.Z)(function(){if(gt){var Vt=gn.slice(Lt,ht+1);gt(Vt,gn)}},[Lt,ht,gn]);var kr=qe(gn,De,fn,we),Lr=zt==null?void 0:zt({start:Lt,end:ht,virtual:wn,offsetX:Vn,offsetY:st,rtl:vn,getSize:kr}),zr=Oe(gn,Lt,ht,Gt,Vn,jt,mt,$e),fr=null;ne&&(fr=(0,pe.Z)((0,We.Z)({},wt?"height":"maxHeight",ne),Et),An&&(fr.overflowY="hidden",Gt&&(fr.overflowX="hidden"),Zt&&(fr.pointerEvents="none")));var Gn={};return vn&&(Gn.dir="rtl"),be.createElement("div",(0,re.Z)({ref:yn,style:(0,pe.Z)((0,pe.Z)({},Fe),{},{position:"relative"}),className:Kn},Gn,bn),be.createElement(Ee.Z,{onResize:Zn},be.createElement(sn,{className:"".concat(ie,"-holder"),style:fr,ref:Dn,onScroll:Cr,onMouseEnter:Er},be.createElement(ke,{prefixCls:ie,height:Qt,offsetX:Vn,offsetY:st,scrollWidth:Gt,onInnerResize:rn,ref:nn,innerProps:dn,rtl:vn,extra:Lr},zr))),wn&&Qt>ne&&be.createElement(ft,{ref:Xn,prefixCls:ie,scrollOffset:Yn,scrollRange:Qt,rtl:vn,onScroll:vr,onStartMove:Un,onStopMove:Me,spinSize:Sn,containerSize:ln.height,style:Yt==null?void 0:Yt.verticalScrollBar,thumbStyle:Yt==null?void 0:Yt.verticalScrollBarThumb,showScrollBar:Ln}),wn&&Gt>ln.width&&be.createElement(ft,{ref:Jn,prefixCls:ie,scrollOffset:Vn,scrollRange:Gt,rtl:vn,onScroll:vr,onStartMove:Un,onStopMove:Me,spinSize:Nn,containerSize:ln.width,horizontal:!0,style:Yt==null?void 0:Yt.horizontalScrollBar,thumbStyle:Yt==null?void 0:Yt.horizontalScrollBarThumb,showScrollBar:Ln}))}var Ve=be.forwardRef($t);Ve.displayName="List";var Ot=Ve,it=Ot},4977:function(Rt){"use strict";Rt.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(Rt,It,oe){"use strict";oe.d(It,{Z:function(){return Re}});const re=Ee=>typeof Ee=="object"&&Ee!=null&&Ee.nodeType===1,Xe=(Ee,fe)=>(!fe||Ee!=="hidden")&&Ee!=="visible"&&Ee!=="clip",pe=(Ee,fe)=>{if(Ee.clientHeight{const ot=(He=>{if(!He.ownerDocument||!He.ownerDocument.defaultView)return null;try{return He.ownerDocument.defaultView.frameElement}catch(ke){return null}})(be);return!!ot&&(ot.clientHeightHefe||He>Ee&&ke=fe&&ze>=Ge?He-Ee-be:ke>fe&&zeGe?ke-fe+ot:0,xe=Ee=>{const fe=Ee.parentElement;return fe==null?Ee.getRootNode().host||null:fe},Ce=(Ee,fe)=>{var Ge,be,ot,He;if(typeof document=="undefined")return[];const{scrollMode:ke,block:ze,inline:Oe,boundary:lt,skipOverflowHiddenElements:xt}=fe,at=typeof lt=="function"?lt:ft=>ft!==lt;if(!re(Ee))throw new TypeError("Invalid target");const ut=document.scrollingElement||document.documentElement,tt=[];let dt=Ee;for(;re(dt)&&at(dt);){if(dt=xe(dt),dt===ut){tt.push(dt);break}dt!=null&&dt===document.body&&pe(dt)&&!pe(document.documentElement)||dt!=null&&pe(dt,xt)&&tt.push(dt)}const Ze=(be=(Ge=window.visualViewport)==null?void 0:Ge.width)!=null?be:innerWidth,kt=(He=(ot=window.visualViewport)==null?void 0:ot.height)!=null?He:innerHeight,{scrollX:qe,scrollY:_e}=window,{height:vt,width:Ne,top:Ue,right:Ye,bottom:me,left:St}=Ee.getBoundingClientRect(),{top:Pe,right:pt,bottom:Dt,left:ve}=(ft=>{const Ae=window.getComputedStyle(ft);return{top:parseFloat(Ae.scrollMarginTop)||0,right:parseFloat(Ae.scrollMarginRight)||0,bottom:parseFloat(Ae.scrollMarginBottom)||0,left:parseFloat(Ae.scrollMarginLeft)||0}})(Ee);let de=ze==="start"||ze==="nearest"?Ue-Pe:ze==="end"?me+Dt:Ue+vt/2-Pe+Dt,rt=Oe==="center"?St+Ne/2-ve+pt:Oe==="end"?Ye+pt:St-ve;const Tt=[];for(let ft=0;ft=0&&St>=0&&me<=kt&&Ye<=Ze&&(Ae===ut&&!pe(Ae)||Ue>=en&&me<=$t&&St>=Ve&&Ye<=Et))return Tt;const Ot=getComputedStyle(Ae),it=parseInt(Ot.borderLeftWidth,10),ae=parseInt(Ot.borderTopWidth,10),ee=parseInt(Ot.borderRightWidth,10),z=parseInt(Ot.borderBottomWidth,10);let ie=0,se=0;const ne="offsetWidth"in Ae?Ae.offsetWidth-Ae.clientWidth-it-ee:0,we="offsetHeight"in Ae?Ae.offsetHeight-Ae.clientHeight-ae-z:0,Be="offsetWidth"in Ae?Ae.offsetWidth===0?0:et/Ae.offsetWidth:0,wt="offsetHeight"in Ae?Ae.offsetHeight===0?0:Qe/Ae.offsetHeight:0;if(ut===Ae)ie=ze==="start"?de:ze==="end"?de-kt:ze==="nearest"?We(_e,_e+kt,kt,ae,z,_e+de,_e+de+vt,vt):de-kt/2,se=Oe==="start"?rt:Oe==="center"?rt-Ze/2:Oe==="end"?rt-Ze:We(qe,qe+Ze,Ze,it,ee,qe+rt,qe+rt+Ne,Ne),ie=Math.max(0,ie+_e),se=Math.max(0,se+qe);else{ie=ze==="start"?de-en-ae:ze==="end"?de-$t+z+we:ze==="nearest"?We(en,$t,Qe,ae,z+we,de,de+vt,vt):de-(en+Qe/2)+we/2,se=Oe==="start"?rt-Ve-it:Oe==="center"?rt-(Ve+et/2)+ne/2:Oe==="end"?rt-Et+ee+ne:We(Ve,Et,et,it,ee+ne,rt,rt+Ne,Ne);const{scrollLeft:Fe,scrollTop:Ke}=Ae;ie=wt===0?0:Math.max(0,Math.min(Ke+ie/wt,Ae.scrollHeight-Qe/wt+we)),se=Be===0?0:Math.max(0,Math.min(Fe+se/Be,Ae.scrollWidth-et/Be+ne)),de+=Ke-ie,rt+=Fe-se}Tt.push({el:Ae,top:ie,left:se})}return Tt},Se=Ee=>Ee===!1?{block:"end",inline:"nearest"}:(fe=>fe===Object(fe)&&Object.keys(fe).length!==0)(Ee)?Ee:{block:"start",inline:"nearest"};function Re(Ee,fe){if(!Ee.isConnected||!(ot=>{let He=ot;for(;He&&He.parentNode;){if(He.parentNode===document)return!0;He=He.parentNode instanceof ShadowRoot?He.parentNode.host:He.parentNode}return!1})(Ee))return;const Ge=(ot=>{const He=window.getComputedStyle(ot);return{top:parseFloat(He.scrollMarginTop)||0,right:parseFloat(He.scrollMarginRight)||0,bottom:parseFloat(He.scrollMarginBottom)||0,left:parseFloat(He.scrollMarginLeft)||0}})(Ee);if((ot=>typeof ot=="object"&&typeof ot.behavior=="function")(fe))return fe.behavior(Ce(Ee,fe));const be=typeof fe=="boolean"||fe==null?void 0:fe.behavior;for(const{el:ot,top:He,left:ke}of Ce(Ee,Se(fe))){const ze=He-Ge.top+Ge.bottom,Oe=ke-Ge.left+Ge.right;ot.scroll({top:ze,left:Oe,behavior:be})}}}}]);