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

1114 lines
1.3 MiB

This file contains ambiguous Unicode characters!

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

!(function(){var Nc=Object.defineProperty,Rc=Object.defineProperties;var Oc=Object.getOwnPropertyDescriptors;var zu=Object.getOwnPropertySymbols;var lc=Object.prototype.hasOwnProperty,uc=Object.prototype.propertyIsEnumerable;var $u=(xn,dt,fe)=>dt in xn?Nc(xn,dt,{enumerable:!0,configurable:!0,writable:!0,value:fe}):xn[dt]=fe,Vo=(xn,dt)=>{for(var fe in dt||(dt={}))lc.call(dt,fe)&&$u(xn,fe,dt[fe]);if(zu)for(var fe of zu(dt))uc.call(dt,fe)&&$u(xn,fe,dt[fe]);return xn},ec=(xn,dt)=>Rc(xn,Oc(dt));var cc=(xn,dt)=>{var fe={};for(var re in xn)lc.call(xn,re)&&dt.indexOf(re)<0&&(fe[re]=xn[re]);if(xn!=null&&zu)for(var re of zu(xn))dt.indexOf(re)<0&&uc.call(xn,re)&&(fe[re]=xn[re]);return fe};var kA=(xn,dt,fe)=>$u(xn,typeof dt!="symbol"?dt+"":dt,fe);(self.webpackChunk=self.webpackChunk||[]).push([[342],{95869:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Fe}});var re=fe(32855),Me=fe(59301),De={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M688 264c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48zm-8 136H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM480 544H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 308H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm356.8-74.4c29-26.3 47.2-64.3 47.2-106.6 0-79.5-64.5-144-144-144s-144 64.5-144 144c0 42.3 18.2 80.3 47.2 106.6-57 32.5-96.2 92.7-99.2 162.1-.2 4.5 3.5 8.3 8 8.3h48.1c4.2 0 7.7-3.3 8-7.6C564 871.2 621.7 816 692 816s128 55.2 131.9 124.4c.2 4.2 3.7 7.6 8 7.6H880c4.6 0 8.2-3.8 8-8.3-2.9-69.5-42.2-129.6-99.2-162.1zM692 591c44.2 0 80 35.8 80 80s-35.8 80-80 80-80-35.8-80-80 35.8-80 80-80z"}}]},name:"solution",theme:"outlined"},Ze=De,Ee=fe(7657),de=function(ve,ut){return Me.createElement(Ee.Z,(0,re.Z)({},ve,{ref:ut,icon:Ze}))},ze=Me.forwardRef(de),Fe=ze},66543:function(){"use strict"},59598:function(){"use strict"},21697:function(xn,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},11081: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 xn={},dt="5.0",fe={},re=null,Me=!1,De=!1,Ze=null,Ee=!1,de=null,ze=null,Fe=0;Fe<arguments.length;Fe++){var Ie=arguments[Fe];if(Ie!==null)switch(typeof Ie){case"number":dt=Ie.toFixed(1);break;case"string":Ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=Ie:Ze=Ie;break;case"object":typeof Ie.is3D!="undefined"?re=Ie:fe=Ie;break;case"boolean":Me=Ie,De=!0;break}}re===null&&(re={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},fe.material_id!==void 0&&!De&&(Me=!0)),Ze!==null&&fe.id===void 0&&(fe.id=Ze);var ve="",ut="",we=!1,ot=null,Xe=null,Je=null,He=!1,Te=null,at=null,Oe=null,We=null,be=null;fe.height!==void 0&&(fe.height=Math.round(fe.height)),fe.width!==void 0&&(fe.width=Math.round(fe.width));var Be=function(vt){return parseFloat(vt)>4?parseFloat(vt):5};xn.setHTML5Codebase=function(vt,Jt){ze=vt,Lt(vt,Jt)},xn.setJavaCodebase=xn.setJavaCodebaseVersion=xn.isCompiledInstalled=xn.setPreCompiledScriptPath=xn.setPreCompiledResourcePath=function(){},xn.setHTML5CodebaseVersion=function(vt,Jt){var Yt=parseFloat(vt);if(Yt!==NaN&&Yt<5){console.log("The GeoGebra HTML5 codebase version "+Yt+" is deprecated. Using version latest instead.");return}de=vt,xe(vt,Jt)},xn.getHTML5CodebaseVersion=function(){return Xe},xn.getParameters=function(){return fe},xn.setFontsCSSURL=function(vt){We=vt},xn.setGiacJSURL=function(vt){},xn.setJNLPFile=function(vt){ve=vt},xn.setJNLPBaseDir=function(vt){},xn.inject=function(){function vt(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Jt="auto",Yt=fe.id,jn,yt=!1,wn=0;wn<arguments.length;wn++){var Dt=arguments[wn];typeof Dt=="string"?(Dt=Dt.toLowerCase(),Dt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Jt=Dt:Yt=arguments[wn]):typeof Dt=="boolean"?yt=Dt:Dt instanceof HTMLElement&&(jn=Dt)}un();function un(){if(!Ee){setTimeout(un,200);return}Jt=$t(Jt);var ln=jn||document.getElementById(Yt);if(!ln){console.log("possibly bug on ajax loading? ");return}if(xn.removeExistingApplet(ln,!1),fe.width===void 0&&ln.clientWidth&&(fe.width=ln.clientWidth),fe.height===void 0&&ln.clientHeight&&(fe.height=ln.clientHeight),!(fe.width&&fe.height)&&Jt==="html5"&&(delete fe.width,delete fe.height),ot=Jt,Jt==="screenshot")et(ln,fe);else{var ge=!1;fe.hasOwnProperty("playButton")&&fe.playButton||fe.hasOwnProperty("clickToLoad")&&fe.clickToLoad?ge=!0:fe.hasOwnProperty("playButtonAutoDecide")&&fe.playButtonAutoDecide&&(ge=(!Ue()||vt())&&ke()),ge?(ot="screenshot",Tt(ln,fe,yt,Jt)):ht(ln,fe,yt)}}};function Ue(){try{return window.self!==window.top}catch(vt){return!0}}function ke(){return fe.hasOwnProperty("screenshotGenerator")&&fe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xn.getViews=function(){return re},xn.isJavaInstalled=function(){return!1};var qe=function(vt){var Jt=function(wn){var Dt=JSON.parse(wn),un=function(ue){return ue.type=="G"||ue.type=="E"},ln=Dt.elements?Dt.elements.filter(un)[0]:Dt;if(!ln||!ln.url){Yt();return}fe.fileName=ln.url,Pe(ln.settings||{}),re.is3D=!0;var ge="https://www.geogebra.org/images/";xn.setPreviewImage(Te||ln.previewUrl,ge+"GeoGebra_loading.png",ge+"applet_play.png"),vt()},Yt=function(){fe.onError&&fe.onError(),Fn("Error: Fetching material (id "+fe.material_id+") failed.",fe)},jn=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",yt="/materials/"+fe.material_id+"?scope=basic";Ge("https://"+jn+"/api/proxy.php?path="+encodeURIComponent(yt),Jt,Yt)};function Pe(vt){var Jt=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Yt){vt[Yt]=!!vt[Yt]}),Jt.forEach(function(Yt){fe[Yt]===void 0&&vt[Yt]!==void 0&&(fe[Yt]=vt[Yt])}),fe.showToolBarHelp===void 0&&(fe.showToolBarHelp=fe.showToolBar)}function Ge(vt,Jt,Yt){var jn=new XMLHttpRequest;jn.open("GET",vt),jn.onload=function(){Jt(jn.responseText)},jn.onerror=Yt,jn.send()}xn.isHTML5Installed=function(){return!0},xn.getLoadedAppletType=function(){return ot},xn.setPreviewImage=function(vt,Jt,Yt){Te=vt,at=Jt,Oe=Yt},xn.removeExistingApplet=function(vt,Jt){var Yt;typeof vt=="string"&&(vt=document.getElementById(vt)),ot=null;var jn=null;for(Yt=0;Yt<vt.childNodes.length;Yt++){var yt=vt.childNodes[Yt],wn=yt.className;wn==="applet_screenshot"?Jt?(yt.style.display="block",ot="screenshot"):yt.style.display="none":wn!=="applet_scaler prerender"&&(vt.removeChild(yt),jn=wn&&wn.indexOf("appletParameters")!=-1?yt.id:null,Yt--)}var Dt=fe.id!==void 0?fe.id:jn,un=window[Dt];un&&typeof un.getBase64=="function"&&(un.remove(),window[Dt]=null)},xn.refreshHitPoints=function(){if(Be(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var vt=xn.getAppletObject();return vt&&typeof vt.recalculateEnvironments=="function"?(vt.recalculateEnvironments(),!0):!1},xn.startAnimation=function(){var vt=xn.getAppletObject();return vt&&typeof vt.startAnimation=="function"?(vt.startAnimation(),!0):!1},xn.stopAnimation=function(){var vt=xn.getAppletObject();return vt&&typeof vt.stopAnimation=="function"?(vt.stopAnimation(),!0):!1},xn.getAppletObject=function(){var vt=fe.id!==void 0?fe.id:"ggbApplet";return window[vt]},xn.resize=function(){};var lt=function(vt,Jt,Yt){var jn=document.createElement("param");jn.setAttribute("name",Jt),jn.setAttribute("value",Yt),vt.appendChild(jn)},je=function(vt){return vt&&vt!=="false"},ht=function(vt,Jt,Yt){Be(Xe)<=4.2&&(Yt=!0);var jn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Xe||ggbHTML5LoadedCodebaseIsWebSimple&&!He)&&(jn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var yt=document.createElement("div");yt.classList.add("appletParameters","notranslate");var wn=Jt.width,Dt=Jt.height;if(Jt.disableAutoScale=Jt.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Jt.disableAutoScale,Jt.width!==void 0)if(Be(Xe)<=4.4)je(Jt.showToolBar)&&(Jt.height-=7),je(Jt.showAlgebraInput)&&(Jt.height-=37),Jt.width<605&&je(Jt.showToolBar)&&(Jt.width=605,wn=605);else{var un=100;(je(Jt.showToolBar)||je(Jt.showMenuBar))&&(Jt.hasOwnProperty("customToolBar")&&(Jt.customToolbar=Jt.customToolBar),un=je(Jt.showMenuBar)?245:155),wn<un&&(Jt.width=un,wn=un)}yt.style.border="none",yt.style.display="inline-block";for(var ln in Jt)Jt.hasOwnProperty(ln)&&ln!=="appletOnLoad"&&yt.setAttribute("data-param-"+ln,Jt[ln]);We&&yt.setAttribute("data-param-fontscssurl",We),xn.resize=function(){GGBAppletUtils.responsiveResize(vt,Jt)},window.addEventListener("resize",function(Et){xn.resize()});var ge=typeof Jt.appletOnLoad=="function"?Jt.appletOnLoad:function(){};if(!Yt&&Jt.width!==void 0){Jt.hasOwnProperty("showSplash")||yt.setAttribute("data-param-showSplash","false");var ue=vt.querySelector(".applet_scaler.prerender"),ee=ue!==null;if(ee)var b=ue.querySelector(".ggb_preview");else{var b=fn(wn,Dt,Jt.borderColor,!1);ue=document.createElement("div"),ue.className="applet_scaler",ue.style.position="relative",ue.style.display="block",ue.style.width=wn+"px",ue.style.height=Dt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ue,"66%"),Be(Xe)>=5?(Jt.appletOnLoad=function(Et){var en=vt.querySelector(".ggb_preview");en&&en.parentNode.removeChild(en),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ue),window.GGBT_wsf_view&&$(window).trigger("resize"),ge(Et)},ee||ue.appendChild(b)):yt.appendChild(b),ue.appendChild(yt),ee||vt.appendChild(ue),setTimeout(function(){xn.resize()},1)}else{var ae=document.createElement("div");ae.className="applet_scaler",ae.style.position="relative",ae.style.display="block",ae.appendChild(yt),vt.appendChild(ae),Jt.appletOnLoad=function(Et){xn.resize(),ge(Et)}}function ie(Et,en){en&&typeof en.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Et,en.appletOnLoad):renderGGBElement(Et),Fn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",en)}function he(Et,en){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Et,params:en}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Dn){ie(Dn.article,Dn.params)}),html5AppletsToProcess=null)},Be(Xe)<5&&(Et.className+=" geogebraweb")):ie(Et,en)}if(jn){scriptLoadStarted=!0;for(var Ye=0;Ye<yt.childNodes.length;Ye++){var pt=yt.childNodes[Ye].tagName;pt==="TABLE"&&(yt.removeChild(yt.childNodes[Ye]),Ye--)}if(ggbHTML5LoadedScript!==null){var zt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');zt!=null&&zt.parentNode.removeChild(zt)}var ct=document.createElement("script"),bt=function(){he(yt,Jt)};ct.src=ut+Je,ggbHTML5LoadedCodebaseIsWebSimple=He,ggbHTML5LoadedCodebaseVersion=Xe,ggbHTML5LoadedScript=ct.src,Fn("GeoGebra HTML5 codebase loaded: '"+ut+"'.",Jt),!ze&&(!de||de=="5.0")?(He?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),bt()):ut.requirejs?__webpack_require__.e(981).then(function(){var Et=[__webpack_require__(60981)];bt.apply(null,Et)}.bind(this)).catch(__webpack_require__.oe):(ct.onload=bt,vt.appendChild(ct))}else he(yt,Jt);Jt.height=Dt,Jt.width=wn},et=function(vt,Jt,Yt){var jn=fn(Jt.width,Jt.height,Jt.borderColor,Yt),yt=document.createElement("div");yt.style.position="relative",yt.style.display="block",yt.style.width=Jt.width+"px",yt.style.height=Jt.height+"px",yt.className="applet_screenshot applet_scaler"+(Yt?" applet_screenshot_play":""),yt.appendChild(jn);var wn=GGBAppletUtils.getScale(Jt,vt,Yt);Yt?(vt.appendChild(Kt()),window.GGBT_wsf_view||(vt.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yt,"66%"),vt.appendChild(yt),wn!==1&&!isNaN(wn)&&(GGBAppletUtils.scaleElement(yt,wn),yt.style.width=Jt.width+"px",yt.style.height=Jt.height+"px",yt.parentNode.style.width=Jt.width*wn+"px",yt.parentNode.style.height=Jt.height*wn+"px"),xn.resize=function(){ft(vt,jn,yt,Yt)},window.addEventListener("resize",function(Dt){xn.resize()}),xn.resize()};function ft(vt,Jt,Yt,jn){if(vt.contains(Jt)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(vt.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(vt)}var yt=GGBAppletUtils.getScale(fe,vt,jn);Yt.parentNode!==null&&(!isNaN(yt)&&yt!==1?(GGBAppletUtils.scaleElement(Yt,yt),Yt.parentNode.style.width=fe.width*yt+"px",Yt.parentNode.style.height=fe.height*yt+"px"):(GGBAppletUtils.scaleElement(Yt,1),Yt.parentNode.style.width=fe.width+"px",Yt.parentNode.style.height=fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(vt),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}xn.onExitFullscreen=function(vt,Jt){Jt.appendChild(vt)};var Tt=function(vt,Jt,Yt,jn){et(vt,Jt,!0);for(var yt=function(){var un=[];for(Dt=0;Dt<vt.childNodes.length;Dt++)un.push(vt.childNodes[Dt]);if(window.GGBT_wsf_view){var ln=window.GGBT_wsf_view.renderFullScreen(vt,Jt.id),ge=document.getElementById("fullscreencontainer"),ue=jQuery(vt).find(".fullscreencontent");ue.length>0?(ln.remove(),ue.attr("id","fullscreencontent").show(),jQuery(ge).append(ue),window.dispatchEvent(new Event("resize"))):ht(ln,Jt,!1),window.GGBT_wsf_view.launchFullScreen(ge)}else ot=jn,ht(vt,Jt,!1);if(!window.GGBT_wsf_view)for(Dt=0;Dt<un.length;Dt++)vt.removeChild(un[Dt])},wn=vt.getElementsByClassName("ggb_preview_play"),Dt=0;Dt<wn.length;Dt++)wn[Dt].addEventListener("click",yt,!1),wn[Dt].addEventListener("ontouchstart",yt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(vt),ke()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Kt=function(){var vt=document.createElement("div");if(vt.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Jt='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Yt=document.createElement("style");Yt.styleSheet?Yt.styleSheet.cssText=Jt:Yt.appendChild(document.createTextNode(Jt)),document.getElementsByTagName("head")[0].appendChild(Yt)}return vt},fn=function(vt,Jt,Yt,jn){var yt=document.createElement("div");yt.className="ggb_preview",yt.style.position="absolute",yt.style.zIndex="90",yt.style.width=vt-2+"px",yt.style.height=Jt-2+"px",yt.style.top="0px",yt.style.left="0px",yt.style.overflow="hidden",yt.style.backgroundColor="white";var wn="lightgrey";Yt!==void 0&&(Yt==="none"?wn="transparent":wn=Yt),yt.style.border="1px solid "+wn;var Dt=document.createElement("img");if(Dt.style.position="relative",Dt.style.zIndex="1000",Dt.style.top="-1px",Dt.style.left="-1px",Te!==null&&Dt.setAttribute("src",Te),Dt.style.opacity=.7,at!==null){var un,ln,ge;if(!jn){un=document.createElement("img"),un.style.position="absolute",un.style.zIndex="1001",un.style.opacity=1,Dt.style.opacity=.3,ln=360,ln>vt/4*3&&(ln=vt/4*3),ge=ln/5.8,un.setAttribute("src",at),un.setAttribute("width",ln),un.setAttribute("height",ge);var ue=(vt-ln)/2,ee=(Jt-ge)/2;un.style.left=ue+"px",un.style.top=ee+"px",yt.appendChild(un)}}return yt.appendChild(Dt),yt},$t=function(vt){return vt=vt.toLowerCase(),vt==="html5"||vt==="screenshot"?vt:"html5"},Re=["web","webSimple","web3d","tablet","tablet3d","phone"],xe=function(vt,Jt){if(Xe=vt,Jt){Lt(Xe,!0);return}var Yt=!Me;if(Yt){var jn=Be(Xe);!isNaN(jn)&&jn<4.4&&(Yt=!1)}var yt,wn;window.location.protocol.substr(0,4)==="http"?yt=window.location.protocol:yt="http:";var Dt=Xe.indexOf("//");Dt>0?wn=Xe:Dt===0?wn=yt+Xe:wn="https://www.geogebra.org/apps/5.2.814.0/";for(var un in Re)if(Xe.slice(Re[un].length*-1)===Re[un]||Xe.slice((Re[un].length+1)*-1)===Re[un]+"/"){Lt(wn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Yt&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!je(fe.showToolBar)&&!je(fe.showMenuBar)&&!je(fe.showAlgebraInput)&&!je(fe.enableRightClick)&&(!fe.appName||fe.appName=="classic")?wn+="webSimple/":wn+="web3d/",Lt(wn,!1)},Lt=function(vt,Jt){if(vt.requirejs){ut=vt;return}vt.slice(-1)!=="/"&&(vt+="/"),ut=vt,Jt===null&&(Jt=vt.indexOf("http")===-1),we=Jt,Je="web.nocache.js",He=!1;var Yt=ut.split("/");Yt.length>1&&(!Jt&&Yt[Yt.length-2]==="webSimple"?(Je="webSimple.nocache.js",He=!0):Re.indexOf(Yt[Yt.length-2])>=0&&(Je=Yt[Yt.length-2]+".nocache.js")),Yt=vt.split("/"),Xe=Yt[Yt.length-3],Xe.substr(0,4)==="test"?Xe=Xe.substr(4,1)+"."+Xe.substr(5,1):(Xe.substr(0,3)==="war"||Xe.substr(0,4)==="beta")&&(Xe="5.0");var jn=parseFloat(Xe);jn!==NaN&&jn<5&&vt.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+jn+" is deprecated. Using version latest instead."),xe("5.0",Jt))},Fn=function(vt,Jt){window.console&&window.console.log&&(!Jt||typeof Jt.showLogging=="undefined"||Jt.showLogging&&Jt.showLogging!=="false")&&console.log(vt)};fe.material_id!==void 0?qe(hn):hn();function hn(){var vt=dt;de!==null?vt=de:parseFloat(vt)<5&&(vt="5.0"),xe(vt,!1),ze!==null&&Lt(ze,we),Ee=!0}return xn},GGBAppletUtils=function(){"use strict";function xn(){return window.GGBT_wsf_edit!==void 0}function dt(Ee,de){de!=1?(Ee.style.transformOrigin="0% 0% 0px",Ee.style.webkitTransformOrigin="0% 0% 0px",Ee.style.transform="scale("+de+","+de+")",Ee.style.webkitTransform="scale("+de+","+de+")",Ee.style.maxWidth="initial",Ee.querySelector(".ggb_preview")!==null&&(Ee.querySelector(".ggb_preview").style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ee.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ee.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ee.style.transform="none",Ee.style.webkitTransform="none")}function fe(Ee,de,ze,Fe,Ie,ve){var ut=null;if(ve!=null&&ve!="")for(var we=Ee.parentNode;we!=null;)if((" "+we.className+" ").indexOf(" "+ve+" ")>-1){ut=we;break}else we=we.parentNode;var ot=0,Xe=0,Je=0,He=0,Te=0,at=0,Oe=0;if(ut)ot=ut.offsetWidth,Xe=Math.max(Fe?ut.offsetWidth:0,ut.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ot=Math.min(window.innerWidth,document.documentElement.clientWidth),Xe=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=ot):(ot=window.innerWidth,Xe=window.innerHeight,Je=window.innerWidth),Ee){var We=Ee.getBoundingClientRect();We.left>0&&We.left<=ot&&(Ie===void 0||!Ie)&&(document.dir==="rtl"?(Te=ot-We.width-We.left,at=Je<=480?10:30):(at=We.left,Te=Je<=480?10:30),He=at+Te)}if(Ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=Ee.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(He=40,Oe=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(He=0,Oe=40)}}return Ee&&((ze===void 0||!ze)&&de>0&&de+He<ot?ot=de:ot-=He,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze===void 0||!ze)&&(Xe-=Oe)),{width:ot,height:Xe}}function re(Ee,de,ze,Fe,Ie){if(Ee.isScreenshoGenerator)return 1;var ve=Fe!==void 0&&Fe,ut=Ee.noScaleMargin!=null&&Ee.noScaleMargin,we=function(be){return be&&be!=="false"},ot=we(Ee.autoHeight),Xe=fe(de,Ee.width,ze,ot,ve&&window.GGBT_wsf_view||ut,Ie),Je=parseInt(Xe.width),He=Ee.width,Te=Ee.height;if(He===void 0){var at=de.querySelector(".appletParameters");at&&(He=at.offsetWidth,Te=at.offsetHeight)}var Oe=Je/He,We=ve?1:Xe.height/Te;return ze!==void 0&&!ze&&(Oe=Math.min(1,Oe),We=Math.min(1,We)),Math.min(Oe,We)}function Me(Ee,de,ze){var Fe=1,Ie,ve=!1;if(Ee.hasOwnProperty("allowUpscale")&&(ve=Ee.allowUpscale),Ee.hasOwnProperty("scale")&&(Fe=parseFloat(Ee.scale),(isNaN(Fe)||Fe===null||Fe===0)&&(Fe=1),Fe>1&&(ve=!0)),de&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ve=!0),!(Ee.hasOwnProperty("disableAutoScale")&&Ee.disableAutoScale))Ie=re(Ee,de,ve,ze,Ee.scaleContainerClass);else return Fe;return ve&&(!Ee.hasOwnProperty("scale")||Fe===1)?Ie:Math.min(Fe,Ie)}function De(Ee){var de=Math.min(window.innerWidth,document.documentElement.clientWidth),ze=Math.min(window.innerHeight,document.documentElement.clientHeight),Fe=Ee.getBoundingClientRect(),Ie=(de-Fe.width)/2,ve=(ze-Fe.height)/2;ve<0&&(ve=0),Ee.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ie<40?Ee.style.left="40px":Ee.style.left=Ie+"px",Ee.style.top=ve+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ve<40?Ee.style.top="40px":Ee.style.top=ve+"px",Ee.style.left=Ie+"px")}function Ze(Ee,de){var ze=Ee.querySelector(".appletParameters");if(ze){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(de.id!==ze.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ee)}if(ze.parentElement&&/fullscreen/.test(ze.parentElement.className))return;var Fe=Me(de,Ee);xn()&&ze.setAttribute("data-param-scale",Fe);for(var Ie=null,ve=0;ve<Ee.childNodes.length;ve++)if(Ee.childNodes[ve].className!==void 0&&Ee.childNodes[ve].className.match(/^applet_scaler/)){Ie=Ee.childNodes[ve];break}if(Ie!==null&&Ie.querySelector(".noscale")!==null)return;var ut=de.id!==void 0?de.id:"ggbApplet",we=window[ut];(we==null||!we.recalculateEnvironments)&&Ie!==null&&!Ie.className.match(/fullscreen/)&&(Ie.parentNode.style.transform="",!isNaN(Fe)&&Fe!==1?(Ie.parentNode.style.width=de.width*Fe+"px",Ie.parentNode.style.height=de.height*Fe+"px",dt(Ie,Fe)):(dt(Ie,1),Ie.parentNode.style.width=de.width+"px",Ie.parentNode.style.height=de.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&De(Ee),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ze).parents(".content-added-content"))}}return{responsiveResize:Ze,isFlexibleWorksheetEditor:xn,positionCenter:De,getScale:Me,scaleElement:dt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var xn=n.location.search;return xn.indexOf(J)!=-1||xn.indexOf(K)!=-1}function q(xn,dt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(xn){var dt=s[L].bindings;s[L].bindings=function(){for(var fe=dt?dt():{},re=xn[webModule.__softPermutationId],Me=O;Me<re.length;Me++){var De=re[Me];fe[De[O]]=De[P]}return fe}};var t;function u(){return v(),t}function v(){if(!t){var xn=o.createElement(Q);if(xn.id=L,xn.style.cssText=R+S,xn.tabIndex=-1,o.body.appendChild(xn),t=xn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(xn){function dt(re){function Me(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var De=Me();if(De){re();return}function Ze(){if(!De){if(!Me())return;De=!0,re(),o.removeEventListener&&o.removeEventListener(Z,Ze,!1),Ee&&clearInterval(Ee)}}o.addEventListener&&o.addEventListener(Z,Ze,!1);var Ee=setInterval(function(){Ze()},$)}function fe(re){var Me=u(),De=Me.body,Ze=Me.createElement(_);Ze.language=ab,Ze.crossOrigin=W,Ze.src=re,webModule.__errFn&&(Ze.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),De.appendChild(Ze)}dt(function(){fe(xn)})}webModule.__startLoadingFragment=function(xn){return C(xn)},webModule.__installRunAsyncCode=function(xn){var dt=u(),fe=dt.body,re=dt.createElement(_);re.language=ab,re.text=xn,fe.appendChild(re),fe.removeChild(re)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(xn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xn){var dt=c[xn];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function xn(Ee){var de=Ee.lastIndexOf(rb);de==-1&&(de=Ee.length);var ze=Ee.indexOf(sb);ze==-1&&(ze=Ee.length);var Fe=Ee.lastIndexOf(tb,Math.min(ze,de));return Fe>=O?Ee.substring(O,Fe+P):W}function dt(Ee){if(!Ee.match(/^\w+:\/\//)){var de=o.createElement(ub);de.src=Ee+vb,Ee=xn(de.src)}return Ee}function fe(){var Ee=__gwt_getMetaProperty(wb);return Ee!=null?Ee:W}function re(){for(var Ee=o.getElementsByTagName(_),de=O;de<Ee.length;++de)if(Ee[de].src.indexOf(xb)!=-1)return xn(Ee[de].src);return W}function Me(){var Ee=o.getElementsByTagName(yb);return Ee.length>O?Ee[Ee.length-P].href:W}function De(){var Ee=o.location;return Ee.href==Ee.protocol+zb+Ee.host+Ee.pathname+Ee.search+Ee.hash}var Ze=fe();return Ze==W&&(Ze=re()),Ze==W&&(Ze=Me()),Ze==W&&De()&&(Ze=xn(o.location.href)),Ze=dt(Ze),Ze}function C(xn){return xn.match(/^\//)||xn.match(/^[a-zA-Z]+:\/\//)?xn:webModule.__moduleBase+xn}function D(){var xn=[],dt=O,fe=[],re=[];function Me(Ee){var de=re[Ee](),ze=fe[Ee];if(de in ze)return de;var Fe=[];for(var Ie in ze)Fe[ze[Ie]]=Ie;throw r&&r(Ee,Fe,de),null}if(__gwt_isKnownPropertyValue=function(Ee,de){return de in fe[Ee]},webModule.__getPropMap=function(){var Ee={};for(var de in fe)fe.hasOwnProperty(de)&&(Ee[de]=Me(de));return Ee},webModule.__computePropValue=Me,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var De;try{De=Cb;var Ze=De.indexOf(Db);Ze!=-1&&(dt=parseInt(De.substring(Ze+P),$),De=De.substring(O,Ze))}catch(Ee){}return webModule.__softPermutationId=dt,C(De+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})()},67303:function(xn,dt,fe){"use strict";fe.d(dt,{Ax:function(){return Ze},Ds:function(){return Ee},KI:function(){return ze},SI:function(){return De},f1:function(){return Me}});var re=fe(90524);function Me(Fe){let Ie=!0;if(Fe.length>0){for(let ve=0;ve<Fe.length;ve++)if(Fe[ve].compile_success==0||!Fe[ve].compile_success){Ie=!1;break}}else Ie=!1;return Ie}function De(Fe,Ie=""){let ve=[];for(let ut=0;ut<Fe.length;ut++){let we=Fe[ut],ot=Ie?`${Ie}/${we.name}`:`${we.name}`;ve.push({title:we.name,type:we.type,isLeaf:we.type!=="tree",key:ot})}return ve}function Ze(Fe,Ie,ve){for(let ut=0;ut<Fe.length;ut++){let we=Fe[ut];if(we.key===Ie){we.children=ve;break}we.children&&Ze(we.children,Ie,ve)}return Fe}function Ee(Fe,Ie,ve){let ut;return function(){let we=this,ot=arguments,Xe=function(){ut=null,ve||Fe.apply(we,ot)},Je=ve&&!ut;clearTimeout(ut),ut=setTimeout(Xe,Ie),Je&&Fe.apply(we,ot)}}const de=!0,ze=re.Z.API_SERVER},98616:function(xn,dt,fe){"use strict";fe.d(dt,{ij:function(){return Oe},_s:function(){return at},Uf:function(){return Te},ZP:function(){return be}});var re=fe(59301),Me={flex_box_center:"flex_box_center___swvFl",flex_space_between:"flex_space_between___AqPFV",flex_box_vertical_center:"flex_box_vertical_center___XWInJ",flex_box_center_end:"flex_box_center_end___GB61t",flex_box_column:"flex_box_column___dJnz1",analysis:"analysis___xyV_c",title:"title___DQ3VK",itemWrap:"itemWrap___vFE5r",item:"item___NjeOt",list:"list___BbMrm",wrap:"wrap___UQTTb",img:"img___tNvUo",tips:"tips___Eu4wH",footer:"footer___ZbR9W",noData:"noData___mLlw0"},De=fe(92310),Ze=fe.n(De),Ee=fe(42441),de=fe(25399),ze=fe(458),Fe=fe(29787),Ie=fe(57884),ve=fe(90524),ut=Object.defineProperty,we=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Je=(Be,Ue,ke)=>Ue in Be?ut(Be,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Be[Ue]=ke,He=(Be,Ue)=>{for(var ke in Ue||(Ue={}))ot.call(Ue,ke)&&Je(Be,ke,Ue[ke]);if(we)for(var ke of we(Ue))Xe.call(Ue,ke)&&Je(Be,ke,Ue[ke]);return Be};const Te=(Be={})=>{var Ue,ke,qe,Pe;let Ge=(Ue=Be==null?void 0:Be.emotion)==null?void 0:Ue.map(et=>He({value:et==null?void 0:et.rate},et)),lt=(ke=Be==null?void 0:Be.focus)==null?void 0:ke.map(et=>He({value:et==null?void 0:et.rate},et)),je=(qe=Be==null?void 0:Be.action)==null?void 0:qe.map(et=>He({value:et==null?void 0:et.rate},et)),ht=(Pe=Be==null?void 0:Be.intention)==null?void 0:Pe.map(et=>He({value:et==null?void 0:et.rate},et));return[{title:"\u8868\u60C5\u5360\u6BD4",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:Ge||[]},{title:"\u4E13\u6CE8\u5EA6\u5360\u6BD4",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:lt||[]},{title:"\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:je||[]},{title:"\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:ht||[]}]},at=({className:Be,dataSource:Ue=[],col:ke=4,right:qe,bottom:Pe=23,precision:Ge=0,wrapWidth:lt=1200})=>{const je=(et="",ft,Tt="--")=>et?(et==null?void 0:et.length)>ft?(et==null?void 0:et.slice(0,ft-1))+"...":et:Tt,ht=Math.floor((lt-(ke-1)*qe)/ke);return re.createElement("div",{className:Ze()(Me.list,Be)},!!(Ue!=null&&Ue.length)&&(Ue==null?void 0:Ue.map((et,ft)=>{const{cover_pic:Tt,created_at:Kt,emotion:fn,action:$t,intention:Re,focus:xe}=et;return re.createElement("div",{key:ft,className:Me.wrap,style:{width:ht,marginRight:(1+ft)%ke===0?0:qe+Ge,marginBottom:Pe}},re.createElement("div",{className:Me.img},re.createElement("img",{src:`${ve.Z.API_SERVER}${Tt}`}),re.createElement("div",{className:Me.tips},re.createElement("div",null,re.createElement("i",{className:"iconfont icon-paisheshijian mr5 font14"})," \u62CD\u6444\u65F6\u95F4"),re.createElement("span",null,Kt))),re.createElement("div",{className:Me.footer},re.createElement("ul",null,re.createElement("li",null,re.createElement("i",{className:"iconfont icon-biaoqing"}),re.createElement("span",null,"\u8868\u60C5\uFF1A",re.createElement(de.Z,{title:fn},re.createElement("span",{className:"c-grey-333"},je(fn,4))))),re.createElement("li",null,re.createElement("i",{className:"iconfont icon-hangwei"}),re.createElement("span",null,"\u884C\u4E3A\uFF1A",re.createElement(de.Z,{title:$t},re.createElement("span",{className:"c-grey-333"},je($t,4)))))),re.createElement("ul",null,re.createElement("li",null,re.createElement("i",{className:"iconfont icon-yitu"}),re.createElement("span",null,"\u610F\u56FE\uFF1A",re.createElement(de.Z,{title:Re},re.createElement("span",{className:"c-grey-333"},je(Re,4))))),re.createElement("li",null,re.createElement("i",{className:"iconfont icon-zhuangtai"}),re.createElement("span",null,"\u4E13\u6CE8\u5EA6\uFF1A",re.createElement(de.Z,{title:xe},re.createElement("span",{className:"c-grey-333"},je(xe,3))))))))})))},Oe=({className:Be,style:Ue,title:ke,hideBar:qe=!1,children:Pe,customText:Ge="",noDataText:lt="",emptyData:je=[],loading:ht,actionAnalysis:et})=>{var ft,Tt;const Kt=((ft=je==null?void 0:je[0])==null?void 0:ft.every($t=>{var Re;return!((Re=$t==null?void 0:$t.data)!=null&&Re.length)}))&&!((Tt=je==null?void 0:je[1])!=null&&Tt.length)||!et,fn=et?lt:Ge;return re.createElement(ze.Z,{loading:ht,active:!0},Kt&&re.createElement("div",{className:Ze()(Me.noData,Be),style:Ue},!!ke&&re.createElement("div",{className:Me.title},!qe&&re.createElement("b",null),re.createElement("span",null,ke)),re.createElement("div",{className:Me.itemWrap},re.createElement(Ie.Z,{customText:fn}))),!Kt&&Pe)};var be=({className:Be,style:Ue,data:ke=[],title:qe,hideBar:Pe=!1,loading:Ge=!1})=>re.createElement("div",{className:Ze()(Me.analysis,Be),style:Ue},!!qe&&re.createElement("div",{className:Me.title},!Pe&&re.createElement("b",null),re.createElement("span",null,qe)),re.createElement(Fe.Z,{spinning:Ge},re.createElement("div",{className:Me.itemWrap},ke==null?void 0:ke.map((lt,je)=>re.createElement("div",{className:Me.item,key:je},re.createElement(Ee.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:lt==null?void 0:lt.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(ht){for(let et in lt==null?void 0:lt.data)if(ht==(lt==null?void 0:lt.data[et].name))return ht+" "+(lt==null?void 0:lt.data[et].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:lt==null?void 0:lt.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:lt==null?void 0:lt.data}]},style:{height:145}}))))))},6725:function(xn,dt,fe){"use strict";var re=fe(86204),Me=fe.n(re),De=Object.defineProperty,Ze=(Fe,Ie,ve)=>Ie in Fe?De(Fe,Ie,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Fe[Ie]=ve,Ee=(Fe,Ie,ve)=>Ze(Fe,typeof Ie!="symbol"?Ie+"":Ie,ve),de=(Fe,Ie,ve)=>new Promise((ut,we)=>{var ot=He=>{try{Je(ve.next(He))}catch(Te){we(Te)}},Xe=He=>{try{Je(ve.throw(He))}catch(Te){we(Te)}},Je=He=>He.done?ut(He.value):Promise.resolve(He.value).then(ot,Xe);Je((ve=ve.apply(Fe,Ie)).next())});class ze extends re.EventEmitter{constructor(Ie,ve){super(),Ee(this,"url"),Ee(this,"body"),Ee(this,"fullContent",""),Ee(this,"controller",null),Ee(this,"buffer",""),this.url=Ie,this.body=ve}startStream(){return de(this,null,function*(){this.controller=new AbortController;const{signal:Ie}=this.controller;try{const ve=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Ie});if(!ve.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${ve.status}`);const ut=ve.headers.get("content-type");if(!ut)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(ut.includes("application/json")){const Xe=yield ve.json();this.emit("error",Xe);return}if(!ut.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const we=ve.body.getReader(),ot=new TextDecoder("utf-8");for(;;){const{done:Xe,value:Je}=yield we.read();if(Xe)break;const He=ot.decode(Je,{stream:!0});this.buffer+=He;const Te=this.buffer.split(`
`);this.buffer=Te.pop()||"";for(const at of Te)if(at.startsWith("data:")){const Oe=at.slice(5).trim();if(Oe==="[DONE]")break;try{const We=JSON.parse(Oe);We.data&&this.handleData(We.data)}catch(We){this.buffer=at+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",We)}}}this.emit("done",this.fullContent)}catch(ve){ve.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",ve.message)}})}handleData(Ie){Ie.content&&(this.fullContent+=Ie.content,this.emit("data",{chunk:Ie,full:this.fullContent}))}cancelRequest(){var Ie;(Ie=this.controller)==null||Ie.abort()}}dt.Z=ze},83071:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Je}});var re=fe(59301),Me={flex_box_center:"flex_box_center___A3pzf",flex_space_between:"flex_space_between___JBoa5",flex_box_vertical_center:"flex_box_vertical_center___MJuIO",flex_box_center_end:"flex_box_center_end___OcjUA",flex_box_column:"flex_box_column___zSH4A",list:"list___KhJas",middle:"middle___IjlYi",row:"row___GGtIx",title:"title___o_xqf",size:"size___OVRoL",download:"download___ZLcIH",preview:"preview___gi0kI",annotation:"annotation___KVSwj"},De=fe(92310),Ze=fe.n(De),Ee=fe(41550),de=fe(6077),ze=fe(49661),Fe=fe(90524),Ie=fe(82093),ve=fe(34055),ut=fe(76560),we=fe(6767),ot=(He,Te,at)=>new Promise((Oe,We)=>{var be=ke=>{try{Ue(at.next(ke))}catch(qe){We(qe)}},Be=ke=>{try{Ue(at.throw(ke))}catch(qe){We(qe)}},Ue=ke=>ke.done?Oe(ke.value):Promise.resolve(ke.value).then(be,Be);Ue((at=at.apply(He,Te)).next())});const Xe=({className:He,style:Te,dataSource:at=[],authority:Oe=!1,callback:We,showDimensions:be=!0,classroomList:Be})=>{var Ue;const[ke,qe]=(0,re.useState)({content:"",type:""}),[Pe,Ge]=(0,re.useState)({}),[lt,je]=(0,re.useState)(!1),[ht,et]=(0,re.useState)({title:"",visible:!1,src:"",snapshotData:{}}),ft=(0,re.useRef)(),Tt=Re=>ot(void 0,null,function*(){if(Ge(Re),Re.file_type==="txt"){const xe=yield(0,Ie.ZP)(Re.url,{method:"get",headers:{"Content-Type":"application/xml"}});ft.current=xe}qe({type:Re.file_type,content:Fe.Z.API_SERVER+Re.url})}),Kt=Re=>{var xe;et({visible:!0,src:Fe.Z.API_SERVER+Re.url,id:Re.id,title:Re.title,snapshotData:(xe=Re==null?void 0:Re.subitem)==null?void 0:xe.settings})},fn=Re=>ot(void 0,null,function*(){var xe;qe({type:Re.file_type,content:Fe.Z.API_SERVER+((xe=Re==null?void 0:Re.subitem)==null?void 0:xe.url)})}),$t=()=>{We(),et({visible:!1})};return at!=null&&at.length?re.createElement(re.Fragment,null,re.createElement("div",{className:Ze()(Me.list,He),style:Te},at.map((Re,xe)=>{var Lt,Fn,hn;return re.createElement("div",{key:xe,className:Me.row},re.createElement("div",{className:Me.title,onClick:()=>Tt(Re)},re.createElement("i",{className:"iconfont icon-fujian1"}),re.createElement("span",{title:Re.title},Re.title)),re.createElement("div",{className:Me.size},Re.filesize),re.createElement("div",{className:Me.download,onClick:()=>{var vt,Jt;if((0,ve.Rm)()&&!((vt=Be.AssistantObject.normal)!=null&&vt.can_download)){we.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}(0,ze.Nd)("",`${Fe.Z.API_SERVER}${(Jt=Re.url)==null?void 0:Jt.replace("disposition=inline","")}`)}},re.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D"),!["other","download"].includes(Re==null?void 0:Re.file_type)&&re.createElement("div",{className:Me.preview,onClick:()=>Tt(Re)},re.createElement("i",{className:"iconfont icon-yulan"}),"\u9884\u89C8"),["image"].includes(Re==null?void 0:Re.file_type)&&be&&(Oe?re.createElement("div",{className:Me.annotation,onClick:()=>Kt(Re)},re.createElement("i",{className:"iconfont icon-pizhu"}),(Lt=Re.subitem)!=null&&Lt.id?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"):((Fn=Re.subitem)==null?void 0:Fn.id)&&re.createElement("div",{className:Me.annotation,onClick:()=>fn(Re)},re.createElement("i",{className:"iconfont icon-chakanlaoshipizhu1"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8")),["image"].includes(Re==null?void 0:Re.file_type)&&((hn=Re.subitem)==null?void 0:hn.id)&&re.createElement("div",{className:Me.download,style:{marginLeft:20},onClick:()=>{var vt,Jt;(0,ze.Nd)("",`${Fe.Z.API_SERVER}${(Jt=(vt=Re==null?void 0:Re.subitem)==null?void 0:vt.url)==null?void 0:Jt.replace("disposition=inline","")}`)}},re.createElement("i",{className:"iconfont icon-xiazai4"}),"\u4E0B\u8F7D\u6279\u6CE8\u6587\u4EF6"),["office"].includes(Re==null?void 0:Re.file_type)&&(0,ve.eB)()&&["xlsx","docx","pptx"].includes(Re==null?void 0:Re.file_sub)&&be&&re.createElement("div",{className:Me.annotation,onClick:()=>{je(!0),Tt(Re)}},re.createElement("i",{className:"iconfont icon-pizhu"}),Re.is_edit?"\u4FEE\u6539\u6279\u6CE8":"\u6279\u6CE8"),Re.is_edit&&(0,ve.dE)()&&be&&re.createElement("div",{className:Me.annotation,onClick:()=>{Tt(Re)}},re.createElement("i",{className:"iconfont icon-sousuo7"}),"\u67E5\u770B\u8001\u5E08\u6279\u6CE8"))})),re.createElement(Ee.Z,{close:!0,data:ke==null?void 0:ke.content,type:ke==null?void 0:ke.type,hasMask:!0,disabledDownload:(0,ve.Rm)()&&!((Ue=Be.AssistantObject.normal)!=null&&Ue.can_download),editOffice:lt?"edit":"view",monacoEditor:{value:ft.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},onImgDimensions:Oe&&be&&ke.type==="image"?()=>Kt(Pe):null,onClose:()=>{We(),je(!1),qe({content:"",type:""})}}),re.createElement(de.Z,{onOk:$t,onClose:()=>et({visible:!1}),data:ht,showFullTools:!0})):null};var Je=(0,ut.connect)(({classroomList:He})=>({classroomList:He}))(Xe)},6077:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return ut}});var re=fe(59301),Me={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},De=fe(92310),Ze=fe.n(De),Ee=fe(29787),de=fe(2859),ze=fe(82093),Fe=fe(49661),Ie=(we,ot,Xe)=>new Promise((Je,He)=>{var Te=We=>{try{Oe(Xe.next(We))}catch(be){He(be)}},at=We=>{try{Oe(Xe.throw(We))}catch(be){He(be)}},Oe=We=>We.done?Je(We.value):Promise.resolve(We.value).then(Te,at);Oe((Xe=Xe.apply(we,ot)).next())}),ut=({data:we,className:ot,fullWidth:Xe,style:Je={},onClose:He,onOk:Te,showFullTools:at,noAssociationId:Oe})=>{const We=(0,re.useRef)(null),be=(0,re.useRef)(null),Be=(0,re.useRef)(null),Ue=(0,re.useRef)(null),[ke,qe]=(0,re.useState)(!1),[Pe,Ge]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>(Be.current||(Be.current=document.createElement("style"),document.head.appendChild(Be.current)),we!=null&&we.visible?(document.body.setAttribute("data-custom","y-hidden"),Be.current.innerHTML=" html { overflow-y: hidden; }",we!=null&&we.src&&lt()):(document.body.removeAttribute("data-custom"),Be.current&&(document.head.removeChild(Be.current),Be.current=null)),()=>{document.body.removeAttribute("data-custom"),Be.current&&(document.head.removeChild(Be.current),Be.current=null)}),[we==null?void 0:we.visible]);const lt=()=>Ie(void 0,null,function*(){qe(!0),Ge("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ft=yield(0,Fe.ZJ)(we==null?void 0:we.src);We.current.src="",We.current.src=ft,We.current.onload=function(){et()},qe(!1),Ge("")}),je=ft=>Ie(void 0,null,function*(){qe(!0),Ge("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Tt=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:we.title,file:ft.dataUrl}});Tt!=null&&Tt.id&&!Oe?(yield(0,ze.ZP)(`/api/attachments/${we.id}/add_subitem.json`,{method:"post",body:{subitem_id:Tt==null?void 0:Tt.id,settings:JSON.stringify(ft.state)}})).status===0&&Te():Tt!=null&&Tt.id&&Te(Tt),qe(!1),Ge("")}),ht=()=>{const ft=document.querySelector('a[href="https://markerjs.com/"]');ft&&ft.parentNode&&(ft.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(Kt=>{const fn=document.querySelector(Kt.name);fn&&fn.setAttribute("title",Kt.title)})},et=()=>{be.current=new de.hP(We.current),be.current.targetRoot=Ue.current,be.current.addEventListener("render",je),be.current.addEventListener("beforeclose",He),at&&(be.current.availableMarkerTypes=be.current.ALL_MARKER_TYPES,be.current.uiStyleSettings.redoButtonVisible=!0,be.current.uiStyleSettings.notesButtonVisible=!0,be.current.uiStyleSettings.zoomButtonVisible=!0,be.current.uiStyleSettings.zoomOutButtonVisible=!0,be.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=be.current.uiStyleSettings,be.current.show(),we!=null&&we.snapshotData&&be.current.restoreState(we.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ht()},300)};return re.createElement(re.Fragment,null,(we==null?void 0:we.visible)&&re.createElement(Ee.Z,{spinning:ke,tip:Pe,style:{position:"absolute",width:"100vw"}},re.createElement("div",{ref:Ue,className:Ze()(Me.imageDimensions,ot,Xe?Me.fullWidth:""),style:Je},re.createElement("img",{className:Me.img,ref:We}))))}},88615:function(xn,dt,fe){"use strict";var re=fe(59301),Me=fe(77019),De=fe(5269),Ze=fe(20554),Ee=fe(99571),de=fe(38394),ze=fe(21697),Fe=fe(48136),Ie=fe(59301);const ve=(0,re.forwardRef)(({callback:ut,showSaveButton:we,value:ot=""},Xe)=>{const Je=(0,re.useRef)(),He=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Te=[{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}`}]}]}],at=be=>{Je.current.setValue(Je.current.getValue()+" "+be.value+" ")},Oe=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ie.createElement(Me.Z,{className:ze.Z.lists,gutter:[10,10]},He.map((be,Be)=>Ie.createElement(De.Z,{flex:"110px",className:ze.Z.item},Ie.createElement("div",null,Ie.createElement(de.Z,{value:`$$${be.value}$$`}),be.name),Ie.createElement("div",{className:ze.Z.children},be.children.map((Ue,ke)=>Ie.createElement("div",{key:ke},Ie.createElement("h1",null,Ue.name),Ie.createElement(Me.Z,{gutter:[10,10]},Ue.data.map((qe,Pe)=>Ie.createElement(De.Z,{key:Pe,onClick:()=>at(qe),className:ze.Z.diamond},Ie.createElement(de.Z,{value:"`$$"+qe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ie.createElement(Me.Z,{className:ze.Z.lists,gutter:[10,10]},Te.map((be,Be)=>Ie.createElement(De.Z,{flex:"110px",className:ze.Z.item},Ie.createElement("div",null,Ie.createElement(de.Z,{value:"`$$"+be.value+"$$`"}),be.name),Ie.createElement("div",{className:ze.Z.children},be.children.map((Ue,ke)=>Ie.createElement("div",{key:ke},Ue.name&&Ie.createElement("h1",null,Ue.name),Ie.createElement(Me.Z,{gutter:[10,10]},Ue.data.map((qe,Pe)=>Ie.createElement(De.Z,{key:Pe,onClick:()=>at(qe),className:ze.Z.diamond},Ie.createElement(de.Z,{value:"`$$"+qe.value+"$$`"}))))))))))}],We=()=>{var be=document.createElement("div");be.innerHTML=Je.current.getValue();var Be=be.innerText;return ut&&ut(Be),Be};return(0,re.useImperativeHandle)(Xe,()=>({getData:We})),Ie.createElement("div",{className:ze.Z.mathWrap},Ie.createElement(Ze.default,{defaultActiveKey:"1",items:Oe}),Ie.createElement("math-field",{locale:"zh_cn",className:ze.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Je,style:{width:800,marginTop:30,fontSize:18}},ot||""),we&&Ie.createElement("div",{className:ze.Z.button},Ie.createElement(Ee.ZP,{size:"large",onClick:We,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=ve},57884:function(xn,dt,fe){"use strict";var re=fe(59301),Me=fe(93314),De=fe(99571),Ze=Object.defineProperty,Ee=Object.defineProperties,de=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,ve=(Xe,Je,He)=>Je in Xe?Ze(Xe,Je,{enumerable:!0,configurable:!0,writable:!0,value:He}):Xe[Je]=He,ut=(Xe,Je)=>{for(var He in Je||(Je={}))Fe.call(Je,He)&&ve(Xe,He,Je[He]);if(ze)for(var He of ze(Je))Ie.call(Je,He)&&ve(Xe,He,Je[He]);return Xe},we=(Xe,Je)=>Ee(Xe,de(Je));const ot=({img:Xe,buttonProps:Je={},styles:He={},customText:Te,ButtonText:at,ButtonClick:Oe,Buttonclass:We,ButtonTwo:be,imgStyles:Be,loading:Ue=!1,className:ke=""})=>re.createElement("section",{className:`tc animated fadeIn ${ke}`,style:ut({color:"#999",margin:"100px auto",visibility:Ue?"hidden":"visible"},He)},re.createElement("img",{src:Xe||Me,style:we(ut({},Be),{pointerEvents:"none",userSelect:"none"})}),re.createElement("p",{className:"mt20 font14"},Te||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),at&&re.createElement(De.ZP,ut({className:We,onClick:Oe},Je),at),be&&be);dt.Z=ot},41550:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return We}});var re=fe(59301),Me={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},De=fe(99571),Ze=fe(70557),Ee=fe(51124),de=fe(25399),ze=fe(49661),Fe=fe(72664),Ie=fe(57884),ve=fe(90524),ut=fe(14794),we=fe(59301),ot=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Te=(be,Be,Ue)=>Be in be?ot(be,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):be[Be]=Ue,at=(be,Be)=>{for(var Ue in Be||(Be={}))Je.call(Be,Ue)&&Te(be,Ue,Be[Ue]);if(Xe)for(var Ue of Xe(Be))He.call(Be,Ue)&&Te(be,Ue,Be[Ue]);return be},Oe=(be,Be,Ue)=>new Promise((ke,qe)=>{var Pe=je=>{try{lt(Ue.next(je))}catch(ht){qe(ht)}},Ge=je=>{try{lt(Ue.throw(je))}catch(ht){qe(ht)}},lt=je=>je.done?ke(je.value):Promise.resolve(je.value).then(Pe,Ge);lt((Ue=Ue.apply(be,Be)).next())}),We=({editOffice:be="view",data:Be,issaver:Ue,onSaver:ke,theme:qe,type:Pe,filename:Ge,monacoEditor:lt,className:je,style:ht,close:et,onClose:ft,hasMask:Tt,disabledDownload:Kt,onImgDimensions:fn,showNodata:$t,recordInfo:Re})=>{const[xe,Lt]=(0,re.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Fn,hn]=(0,re.useState)(""),[vt,Jt]=(0,re.useState)(),Yt=window.ENV==="build"?"/react/build":"",jn=location.host.startsWith("localhost")?ve.Z.PROXY_SERVER:ve.Z.API_SERVER,wn=10*(1024*1024),Dt=(0,re.useRef)();Be!=null&&Be.startsWith("/api")&&Pe!=="txt"&&(Be=ve.Z.API_SERVER+Be);const un=b=>b.substring(b.lastIndexOf("/")+1).split(".").pop();Ge&&lt&&(lt.filename=Ge),(0,re.useEffect)(()=>{var b,ae;const ie=(ae=(b=document.cookie)==null?void 0:b.replace(/\s/g,""))==null?void 0:ae.split(";");ie==null||ie.map(he=>{let Ye=he.split("=");Ye[0]==="_educoder_session"&&hn(Ye[1])})},[]),(0,re.useEffect)(()=>{Pe==="office"&&(Be.indexOf("bigfilescdn.")>-1||Be.indexOf("bigfiles1")>-1?Jt({url:Be,fileType:un(Be),model:Be.indexOf("model=edit")?"edit":"view"}):ge())},[Pe,Be]);function ln(b){return Oe(this,null,function*(){b.data.type==="pdfdata"&&(ke(b.data.data),window.removeEventListener("message",ln,!1)),console.log("mess---:",b.data)})}const ge=()=>Oe(void 0,null,function*(){console.log("data:",Be);let b=Be;Be.startsWith("http")||(b=location.origin+b);let ae=new URL(b).pathname.split("/").pop();const ie=yield(0,Fe.gJ)({attachment_id:ae});ie.url=jn+ie.url,Jt(ie)}),ue=()=>{if(Be.startsWith("http")||Be.startsWith("blob:")){ee();return}(0,ze.Sv)(Ge||"educoder",Be,Ge)},ee=()=>{Re&&(0,ut.fc)({id:Re==null?void 0:Re.id,watch_type:1,course_id:Re==null?void 0:Re.course_id}),(0,ze.Nd)(Ge||"educoder",decodeURIComponent(Be))};return we.createElement("div",{style:at({},ht||{}),className:`${Tt&&Me.bgBlack} ${Pe?Me.wrp:"hide"}`},et&&we.createElement("div",{className:Me.close,ref:Dt},!!fn&&we.createElement(de.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Dt.current},we.createElement("span",{onClick:()=>{ft(),fn()}},we.createElement("i",{className:"icon-yulanpizhu"}))),!Kt&&we.createElement(de.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Dt.current},we.createElement("span",{onClick:ee},we.createElement("i",{className:"icon-quxiaozhiding"}))),Ue&&we.createElement(de.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Dt.current},we.createElement("span",{className:"",onClick:()=>{const b=document.getElementById("pdfiframe");window.addEventListener("message",ln,!1),setTimeout(()=>{b.contentWindow.postMessage("getData","*")},300)}},we.createElement("i",{className:"icon-baocun"}))),we.createElement(de.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Dt.current},we.createElement("span",{className:"",onClick:()=>{ft()}},we.createElement("i",{className:"icon-guanbi1"})))),we.createElement("div",{className:`${Me[je]} ${je} ${Me.monaco} ${Pe==="txt"?"show":"hide"}`},Pe==="txt"&&we.createElement(we.Fragment,null,we.createElement(Ee.ZP,at({},lt)))),Pe==="audio"&&we.createElement("audio",{src:`${(Be==null?void 0:Be.indexOf("http://"))>-1||(Be==null?void 0:Be.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Be}`,autoPlay:!0}),Pe==="video"&&we.createElement(we.Fragment,null,(Be==null?void 0:Be.indexOf("http"))>-1?we.createElement("video",{controls:!0,src:`${Be}`,autoPlay:!0}):we.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Be}`,autoPlay:!0})),Pe==="office"&&vt&&we.createElement("iframe",{src:`${Yt}/office.html?key=${vt.key}&url=${btoa(vt.url)}&callbackUrl=${jn+(vt.callbackUrl||"")}&fileType=${vt.fileType}&title=${vt.title||""}&model=${be}&officeServer=${ve.Z.ONLYOFFICE}&disabledDownload=${!!Kt}`}),Pe==="html"&&we.createElement("iframe",{src:Be+"&disposition=inline"}),Pe==="pdf"&&we.createElement("iframe",{id:"pdfiframe",src:`${Yt}/js/pdfview/index.html?filename=${Ge||"educoder.pdf"}&url=${encodeURIComponent(Be)}&disabledDownload=${!!Kt}&model=${be}`}),Pe==="image"&&we.createElement("img",{src:`${(Be==null?void 0:Be.indexOf("http://"))>-1||(Be==null?void 0:Be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Be}`}),(Pe==="other"||Pe==="download")&&we.createElement(we.Fragment,null,$t?we.createElement(Ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:we.createElement(De.ZP,{icon:we.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ue,disabled:Kt},"\u4E0B\u8F7D")}):we.createElement(De.ZP,{type:"primary",size:"middle",onClick:ue,disabled:Kt},we.createElement(Ze.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Pe==="flowChart"&&we.createElement("div",{className:"embed"},we.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Be||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},38394:function(xn,dt,fe){"use strict";fe.d(dt,{z:function(){return lt},Z:function(){return je}});var re=fe(59301),Me=fe(88831),De=fe(90290),Ze=fe(64018),Ee=fe(68535),de=fe(90524),ze=fe(49661),Fe=fe(15342),Ie=fe(77736),ve=fe(99571),ut=fe(1012),we=fe(41550),ot=fe(59301),Je=({html:ht})=>{const et=(0,re.useRef)(null),ft=(0,re.useRef)(null),Tt=`.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 Kt=et.current.attachShadow({mode:"open"});ft.current=document.createElement("div"),ft.current.className="markdown-body",ft.current.innerHTML=ht,Kt.appendChild(ft.current);const fn=document.createElement("style");return fn.textContent=Tt,Kt.appendChild(fn),()=>{Kt.innerHTML=""}},[]),(0,re.useEffect)(()=>{ft.current&&(ft.current.innerHTML=ht)},[ht]),ot.createElement("div",{ref:et})};function He(ht){const et=["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"],ft=new RegExp(`\\b(${et.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return ht.replace(ft,"").trim()}var Te={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},at=Object.defineProperty,Oe=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Be=(ht,et,ft)=>et in ht?at(ht,et,{enumerable:!0,configurable:!0,writable:!0,value:ft}):ht[et]=ft,Ue=(ht,et)=>{for(var ft in et||(et={}))We.call(et,ft)&&Be(ht,ft,et[ft]);if(Oe)for(var ft of Oe(et))be.call(et,ft)&&Be(ht,ft,et[ft]);return ht};const ke="@\u2581\u2581@",qe="@\u2581@",Pe=/<pre[^>]*>/g;function Ge(ht){let et=document.createElement("div");return et.innerHTML=ht,et.childNodes.length===0?"":et.childNodes[0].nodeValue}const lt=(ht,et)=>{ht=ht||"";const ft=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Tt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Kt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,fn=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return et?ht.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ft,($t,Re,xe,Lt,Fn,hn,vt)=>{const Jt=Re||Lt||hn,Yt=xe||Fn||vt||"?";return de.Z.API_SERVER+"/api/attachments/"+Jt+Yt+"&t="+(0,ze.Jn)(Jt,Date.now())+($t.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(ht=ht.replace(fn,($t,Re,xe,Lt,Fn,hn,vt)=>{const Jt=Re||Lt||hn,Yt=xe||Fn||vt||"?";return de.Z.API_SERVER+"/attachments/download/"+Jt+Yt+"&t="+(0,ze.Jn)(Jt,Date.now())+($t.indexOf(")")>-1?")":"&")}).replace(ft,($t,Re,xe,Lt,Fn,hn,vt)=>{const Jt=Re||Lt||hn,Yt=xe||Fn||vt||"?";return de.Z.API_SERVER+"/api/attachments/"+Jt+Yt+"&t="+(0,ze.Jn)(Jt,Date.now())+($t.indexOf(")")>-1?")":"&")}).replace(Tt,($t,Re,xe,Lt,Fn)=>{const hn=Re||Lt,vt=xe||Fn||"";return'"'+de.Z.API_SERVER+"/api/attachments/"+hn+vt+hn+vt+"&t="+(0,ze.Jn)(hn,Date.now())}).replace(Kt,($t,Re,xe,Lt,Fn)=>{const hn=Re||Lt,vt=xe||Fn||"";return"("+de.Z.API_SERVER+"/files/uploads/"+hn+vt+hn+vt+"&t="+(0,ze.Jn)(hn,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,`
`),ht)};var je=({value:ht="",edit:et=!1,className:ft,showTextOnly:Tt,showLines:Kt,style:fn={},stylesPrev:$t={},highlightKeywords:Re,showProgramFill:xe,isProgramFill:Lt,disabledFill:Fn=!1,programFillValue:hn,openEditor:vt=()=>{},onFillChange:Jt=yt=>{},onFillBlur:Yt=()=>{},onFillFocus:jn=()=>{}})=>{let yt=He(String(ht||""));const wn=(0,re.useRef)(),Dt=(0,re.useRef)(),[un,ln]=(0,re.useState)(""),[ge,ue]=(0,re.useState)("office"),[ee,b]=(0,re.useState)([]),ae=(0,re.useRef)("a"+(0,ut.Z)()),ie={},he=wt=>/<style[\s\S]*?>/i.test(wt||""),Ye=(wt,Rn,Wt)=>{const Cn=document.createElement(wt===qe?"input":"textarea");Cn.style.width="100%",Cn.style.height=wt===qe?"40px":"151px",Cn.rows=5,Cn.spellcheck=!1,Cn.name="edu-program-fill",Cn.placeholder="\u8BF7\u8F93\u5165",Cn.dataset.id=Rn;const Mn=Object.keys(ie).length;return ie[Mn]=Cn,`<span class="edu-program-fill-wrap ${wt===qe?"":"show"}" style="width:${wt===qe?"600px":"100%"}" title=${Wt||""}><span>${Cn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function pt(wt){return wt=wt.replace(/!\[.*?\]\(.*?\)/g,""),wt=wt.replace(/\[.*?\]\(.*?\)/g,""),wt=wt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),wt=wt.replace(/<embed.*?>/g,""),wt=wt.replace(/<img.*?>/g,""),wt=wt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),wt=wt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),wt=wt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),wt=wt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),wt}const zt=wt=>!Tt&&he(yt)?wt:wt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Rn,Wt){let Cn=Wt.replace(/(\n|\r)/g,"").split("}"),Mn=[];return Cn.map(sr=>{sr!=""&&Mn.push(`.${ae.current} ${sr}`)}),`<style>${Mn.join("}")}</style>`}),ct=(0,re.useMemo)(()=>{try{const Cn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Mn=/\"\/api\/attachments\/|\"\/attachments\/download\//g,sr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,vn=/\(\/attachments\/download\//g;yt=yt.replace(vn,"("+de.Z.API_SERVER+"/attachments/download/").replace(Cn,"("+de.Z.API_SERVER+"/api/attachments/").replace(Mn,'"'+de.Z.API_SERVER+"/api/attachments/").replace(sr,'"'+de.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,`
`),wn.current.style.display="none"}catch(Cn){}if(xe){let Cn=-1;return yt=yt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Mn,sr,vn){var cr;return++Cn,Ye(Mn,Cn,(cr=hn==null?void 0:hn[Cn])==null?void 0:cr.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${zt(yt||"")}</pre>`}let wt=zt(yt);wt=(0,De.ZP)(wt);const Rn=(0,De.ez)();yt.match(/\[TOC\]/)&&(wt=wt.replace("<p>[TOC]</p>",(0,De.Qv)()),(0,De.Iy)()),wt=wt.replace(/(__special_katext_id_\d+__)/g,(Cn,Mn)=>{const{type:sr,expression:vn}=Rn[Mn];return(0,Fe.renderToString)(Ge(vn)||"",{displayMode:sr==="block",throwOnError:!1,output:"html"})}),wt=wt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,De.AL)();const Wt=document.createElement("div");if(Wt.innerHTML=wt,Tt)return Wt.innerText;if(Re){const Cn=Re.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Dn(Wt,Cn),Wt.innerHTML}return setTimeout(()=>on(),500),Wt.innerHTML},[yt,Re]);(0,re.useEffect)(()=>{Mt.current&&Mt.current.querySelectorAll(["input","textarea"]).forEach(Rn=>{Rn.oninput=bt,Rn.onblur=Et,Rn.onfocus=en})},[ee]),(0,re.useEffect)(()=>{var wt,Rn,Wt,Cn,Mn;if(hn!=null&&hn.length)try{const sr=Mt.current.querySelectorAll(".edu-program-fill-score"),vn=Mt.current.querySelectorAll('[name="edu-program-fill"]');for(const[cr,ar]of vn.entries())ar.value=((wt=hn==null?void 0:hn[cr])==null?void 0:wt.value)||"",((Rn=hn==null?void 0:hn[cr])==null?void 0:Rn.type)==="warning"?ar.className="program-fill-warning":((Wt=hn==null?void 0:hn[cr])==null?void 0:Wt.type)==="success"?ar.className="program-fill-success":ar.className="";for(const[cr,ar]of sr.entries())ar.innerHTML=(Cn=hn==null?void 0:hn[cr])!=null&&Cn.score?`${(Mn=hn==null?void 0:hn[cr])==null?void 0:Mn.score}\u5206`:"";b(hn)}catch(sr){console.log(sr,"error")}},[hn]);const bt=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,b([...ee]),Jt(ee,wt.target.dataset.id)},Et=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,b([...ee]),Yt(ee,wt.target.dataset.id)},en=wt=>{ee[wt.target.dataset.id]=ee[wt.target.dataset.id]||{},ee[wt.target.dataset.id].value=wt.target.value,b([...ee]),jn(ee,wt.target.dataset.id)};function Dn(wt,Rn){return wt.childNodes.forEach(Wt=>{var Cn;if(Wt.childNodes.length>0)Dn(Wt,Rn);else if(Wt.nodeName!=="IMG")if(Wt.innerHTML)Wt.innerHTML=(Cn=Wt.innerHTML)==null?void 0:Cn.replace(new RegExp(Rn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Mn=document.createElement("span");Mn.innerHTML=Wt.textContent.replace(new RegExp(Rn,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Wt.replaceWith(Mn)}})}const Mt=(0,re.useRef)();De.jb.WebkitLineClamp=Kt,Kt&&(fn=Ue(Ue({},fn),De.jb));function tt(wt){let Rn=wt.target;if(Rn.tagName.toUpperCase()==="A"){let Wt=Rn.getAttribute("href");if(Wt.indexOf("office")>-1)wt.preventDefault(),ln(Wt),ue("office");else if(Wt.indexOf("application/pdf")>-1)wt.preventDefault(),ln(Wt),ue("pdf");else if(Wt.indexOf("text/html")>-1)wt.preventDefault(),ln(Wt),ue("html");else if(Wt.startsWith("#")){wt.preventDefault();let Cn=document.getElementById(Wt.replace("#",""));Cn&&Cn.scrollIntoView(!0)}}}const on=()=>{var wt;const Rn=(wt=Mt.current)==null?void 0:wt.querySelectorAll("video");Rn==null||Rn.forEach(Wt=>{if(Wt.oncontextmenu=()=>!1,Wt.src.indexOf(".m3u8")>-1&&!Wt.canPlayType("application/vnd.apple.mpegurl")){if(Ee.ZP.isSupported()){var Cn=new Ee.ZP;Cn.loadSource(Wt.src),Cn.attachMedia(Wt)}}})};(0,re.useEffect)(()=>{if(Mt.current&&ct&&ct.match(Pe)&&window.PR.prettyPrint(),Mt.current)return Mt.current.addEventListener("click",tt),()=>{var wt;(wt=Mt.current)==null||wt.removeEventListener("click",tt),(0,De.AL)(),(0,De.Iy)()}},[ct,Mt.current,tt]);const jt=wt=>{wt.target.nodeName==="IMG"&&wt.target.className.indexOf("draw-flowchart")>-1?(wn.current.style.zIndex=1,wn.current.style.display="flex",wn.current.style.width=wt.target.clientWidth+"px",wn.current.style.height=wt.target.clientHeight+"px",wn.current.style.top=wt.target.offsetTop+"px",wn.current.style.left=wt.target.offsetLeft+"px",wt.target.id&&(Dt.current=wt.target.id)):wn.current.style.display="none"},qt=()=>{wn.current.style.display="none"};return(0,re.useEffect)(()=>{var wt;const Rn=Wt=>{Wt.preventDefault(),Wt.clipboardData.setData("text",window.getSelection().toString())};return(wt=Mt.current)==null||wt.addEventListener("copy",Rn),()=>{var Wt;(Wt=Mt.current)==null||Wt.removeEventListener("copy",Rn)}},[Mt.current]),re.createElement("div",{style:{position:"relative"},onMouseLeave:qt},Tt&&re.createElement("div",{ref:Mt,className:`${Te.mdBody} `},ct),!Tt&&!he(ct)&&re.createElement("div",{ref:Mt,style:Ue({},fn),onMouseOver:jt,className:`${ft||""} ${Fn?"disabled-fill":""} markdown-body ${Te.mdBody} ${ae.current}`,dangerouslySetInnerHTML:{__html:ct}}),!Tt&&he(ct)&&re.createElement(Je,{html:ct}),re.createElement("div",{ref:wn,className:`${Te.button} ${et?"":Te.previewFlowChart}`},re.createElement(Ie.Z,null,re.createElement(ve.ZP,{onClick:()=>{et?vt(Dt.current):(ln(Dt.current),ue("flowChart"))}},et?"\u7F16\u8F91":"\u9884\u89C8"))),re.createElement(we.Z,{close:!0,data:un,type:un!=null&&un.length?ge:"",style:Ue({},$t),onClose:()=>ln("")}))}},44816:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return ht}});var re=fe(59301),Me=fe(76560),De=fe(62957),Ze=fe(28284),Ee=fe(6767),de=fe(29787),ze=fe(18287),Fe=fe(77019),Ie=fe(5269),ve=fe(25399),ut=fe(37568),we={currentPrimary:"currentPrimary___NPWiR",currentDelete:"currentDelete___UEfhf",DirectoryTree:"DirectoryTree___xPxCY",EditDom:"EditDom___seNxC"},ot=fe(98072),Xe=fe(63423),Je=fe(57884),He=fe(71360),Te=Object.defineProperty,at=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ue=(et,ft,Tt)=>ft in et?Te(et,ft,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):et[ft]=Tt,ke=(et,ft)=>{for(var Tt in ft||(ft={}))be.call(ft,Tt)&&Ue(et,Tt,ft[Tt]);if(We)for(var Tt of We(ft))Be.call(ft,Tt)&&Ue(et,Tt,ft[Tt]);return et},qe=(et,ft)=>at(et,Oe(ft)),Pe=(et,ft)=>{var Tt={};for(var Kt in et)be.call(et,Kt)&&ft.indexOf(Kt)<0&&(Tt[Kt]=et[Kt]);if(et!=null&&We)for(var Kt of We(et))ft.indexOf(Kt)<0&&Be.call(et,Kt)&&(Tt[Kt]=et[Kt]);return Tt},Ge=(et,ft,Tt)=>new Promise((Kt,fn)=>{var $t=Lt=>{try{xe(Tt.next(Lt))}catch(Fn){fn(Fn)}},Re=Lt=>{try{xe(Tt.throw(Lt))}catch(Fn){fn(Fn)}},xe=Lt=>Lt.done?Kt(Lt.value):Promise.resolve(Lt.value).then($t,Re);xe((Tt=Tt.apply(et,ft)).next())});const lt=(et=[])=>et==null?void 0:et.map(ft=>qe(ke({},ft),{title:(ft==null?void 0:ft.value)||"",key:ft==null?void 0:ft.id,isLeaf:!0})),je=et=>{var ft=et,{user:Tt,children:Kt,isShowComponent:fn=!0,ModalProps:$t={},onDataSelect:Re}=ft,xe=Pe(ft,["user","children","isShowComponent","ModalProps","onDataSelect"]);const[Lt,Fn]=De.default.useModal(),[hn]=Ze.default.useForm(),[vt,Jt]=(0,re.useState)([]),[Yt,jn]=(0,re.useState)(!1),[yt,wn]=(0,re.useState)(!1),[,Dt,un,ln]=(0,ot.U)(Xe.qE,{page:1,limit:9999}),[,,ge]=(0,ot.U)(Xe.V8,{}),[,,ue]=(0,ot.U)(Xe.B$,{}),[,,ee]=(0,ot.U)(Xe.DH,{}),[,,b]=(0,ot.U)(Xe.bJ,{}),ae=()=>{jn(!1),hn.resetFields(),wn(!1)},ie=Ye=>Ge(void 0,null,function*(){const{node:pt,dragNode:zt,event:ct}=Ye,bt=Ye.node.pos.split("-"),Et=Ye.dropPosition-Number(bt[bt.length-1]);if(Et==0){Ee.ZP.warning("\u65E0\u6CD5\u79FB\u52A8\u5230\u5185\u90E8\u4F4D\u7F6E");return}if(Et==1&&(zt==null?void 0:zt.item_index)==(pt==null?void 0:pt.item_index)+1){Ee.ZP.warning("\u672A\u79FB\u52A8\u4F4D\u7F6E");return}const en=yield b({id:zt==null?void 0:zt.key,position:Et==-1?1:(zt==null?void 0:zt.item_index)>(pt==null?void 0:pt.item_index)?(pt==null?void 0:pt.item_index)+1:pt==null?void 0:pt.item_index});(en==null?void 0:en.status)===0&&(Ee.ZP.success("\u79FB\u52A8\u6210\u529F"),un({},!0))}),he=Ye=>Ge(void 0,null,function*(){let pt={};yt?pt=yield ue(ke({},Ye)):pt=yield ee(ke({},Ye)),(pt==null?void 0:pt.status)==0&&(Ee.ZP.success((pt==null?void 0:pt.message)||(yt?"\u6DFB\u52A0\u6210\u529F":"\u66F4\u65B0\u6210\u529F")),un({},!0),ae())});return(0,re.useEffect)(()=>{$t!=null&&$t.open&&un({},!0)},[$t==null?void 0:$t.open]),(0,re.useEffect)(()=>{var Ye;Jt(lt((Ye=ln==null?void 0:ln.data)==null?void 0:Ye.list))},[ln]),fn?re.createElement(re.Fragment,null,Fn,Kt,re.createElement(De.default,ke({},ke({title:"\u5E38\u7528\u8BC4\u8BED",width:640,centered:!0,footer:null,bodyStyle:{padding:"10px 5px 25px"}},$t)),re.createElement(de.Z,{spinning:Dt},(vt==null?void 0:vt.length)>0?re.createElement(re.Fragment,null,re.createElement(ze.default.DirectoryTree,{height:500,className:we.DirectoryTree,multiple:!0,draggable:{icon:!1},defaultExpandAll:!0,switcherIcon:!1,showIcon:!1,onSelect:Re,treeData:vt,onDrop:ie,titleRender:Ye=>re.createElement(re.Fragment,null,re.createElement("span",{className:"multi_ellipsis1",style:{flex:1,marginRight:"32px"}},Ye==null?void 0:Ye.title),re.createElement("div",{className:`${we.EditDom}`},re.createElement(Fe.Z,{wrap:!1,align:"middle",gutter:16},re.createElement(Ie.Z,null,re.createElement(ve.Z,{title:"\u957F\u6309\u53EF\u8FDB\u884C\u62D6\u62FD\u6392\u5E8F"},re.createElement("i",{className:`iconfont icon-tuodong1 font12 ${we.currentPrimary}`}))),re.createElement(Ie.Z,null,re.createElement(ve.Z,{title:"\u7F16\u8F91"},re.createElement("i",{className:`iconfont icon-bianji11 font12 ${we.currentPrimary}`,onClick:pt=>{pt.stopPropagation(),hn.setFieldsValue(ke({},Ye)),jn(!0)}}))),re.createElement(Ie.Z,null,re.createElement(ve.Z,{title:"\u5220\u9664"},re.createElement("i",{className:`iconfont icon-shanchu14 font12 ${we.currentDelete}`,onClick:pt=>{pt.stopPropagation(),Lt.confirm({icon:null,title:"\u5220\u9664\u5E38\u7528\u8BC4\u8BED",centered:!0,content:"\u4F60\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u5E38\u7528\u8BC4\u8BED\u5417\uFF1F",onOk:()=>Ge(void 0,null,function*(){const zt=yield ge({id:Ye==null?void 0:Ye.key});(zt==null?void 0:zt.status)==0&&(Ee.ZP.success((zt==null?void 0:zt.message)||"\u5220\u9664\u6210\u529F"),un({},!0))})})}}))))))}),re.createElement(He.op,{className:"ml20 mt20",icon:re.createElement("i",{className:"iconfont icon-xiaojiahao"}),style:{borderRadius:"4px"},onClick:()=>{wn(!0),jn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED")):re.createElement(Je.Z,{styles:{margin:"30px auto"},customText:re.createElement("span",null,"\u6682\u65E0\u5E38\u7528\u8BC4\u8BED\uFF0C\u4F60\u53EF\u4EE5",re.createElement("a",{onClick:()=>{wn(!0),jn(!0)}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED"))}))),re.createElement(De.default,{title:yt?"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED":"\u7F16\u8F91\u5E38\u7528\u8BC4\u8BED",open:Yt,okText:yt?"\u6DFB\u52A0":"\u786E\u5B9A",onCancel:()=>{ae()},onOk:()=>{hn.submit()}},re.createElement(Ze.default,{form:hn,onFinish:he},yt&&re.createElement("span",{className:"font14",style:{color:"#191919"}},"\u6DFB\u52A0\u5E38\u7528\u8BC4\u8BED\uFF0C\u53EF\u4EE5\u5E2E\u52A9\u4F60\u63D0\u9AD8\u8BC4\u9605\u4F5C\u4E1A\u7684\u6548\u7387"),re.createElement(Ze.default.Item,{hidden:!0,name:"id"}),re.createElement(Ze.default.Item,{className:"mt10",name:"value"},re.createElement(ut.default.TextArea,{placeholder:"\u8F93\u5165\u5E38\u7528\u8BC4\u8BED\u3002\u4F8B\u5982\uFF1A\u4F60\u7684\u7F16\u7A0B\u4F5C\u4E1A\u6574\u4F53\u8868\u73B0\u826F\u597D\uFF0C\u4F46\u4ECD\u6709\u4E00\u4E9B\u5C0F\u7684\u6539\u8FDB\u7A7A\u95F4\u3002",autoSize:{minRows:8,maxRows:9},maxLength:100,showCount:!0}))))):null};var ht=(0,Me.connect)(({loading:et,user:ft})=>({user:ft,loading:et.effects}))(je)},39479:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Ze}});var re=fe(59301),Me=fe(33796),De=fe(90083),Ze=()=>{const[Ee,de]=(0,re.useState)(""),[ze,Fe]=(0,re.useState)(0);let[Ie,ve]=(0,re.useState)(),[ut,we]=(0,re.useState)();const[ot,Xe]=(0,re.useState)(!1),Je=(0,re.useRef)("");(0,re.useEffect)(()=>Me.Z.subscribe("preview-image",Pe=>{de(Pe),console.log(Ue.current)}),[]),(0,re.useEffect)(()=>(document.addEventListener("keydown",He),()=>{document.removeEventListener("keydown",He)}),[]),(0,re.useEffect)(()=>{Je.current=Ee},[Ee]);function He(qe){console.log("e====",qe),qe.keyCode==27&&Je.current&&Te()}function Te(){document.body.style.overflow="auto",ve(void 0),we(void 0),Fe(0),de("")}function at(){Fe(ze+90)}function Oe(){Ie=Ue.current.width*1.1,ut=Ue.current.height*1.1,we(ut),ve(Ie)}function We(){Ie=Ue.current.width/1.1,ut=Ue.current.height/1.1,we(ut),ve(Ie)}const be=(0,re.useRef)(),Be=(0,re.useRef)(),Ue=(0,re.useRef)(),ke=qe=>{(qe.nativeEvent.target===be.current||qe.nativeEvent.target===Be.current)&&Te()};return re.createElement(re.Fragment,null,Ee?re.createElement("div",null,re.createElement("div",{className:"preview-wrp-group",ref:Be},re.createElement(De.Z,{className:"image-preview",src:Ee,style:{display:"none"},preview:{visible:!0,src:Ee,onVisibleChange:qe=>{de("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},44905:function(xn,dt,fe){"use strict";fe.d(dt,{h:function(){return be}});var re=fe(59301),Me=fe(82326),De=fe(28284),Ze=fe(99571),Ee=fe(89780),de=fe.n(Ee),ze=fe(66543),Fe=fe(59598),Ie=Object.defineProperty,ve=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,Je=(Be,Ue,ke)=>Ue in Be?Ie(Be,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Be[Ue]=ke,He=(Be,Ue)=>{for(var ke in Ue||(Ue={}))ot.call(Ue,ke)&&Je(Be,ke,Ue[ke]);if(we)for(var ke of we(Ue))Xe.call(Ue,ke)&&Je(Be,ke,Ue[ke]);return Be},Te=(Be,Ue)=>ve(Be,ut(Ue));const at=Me.default.Option,Oe={labelCol:{span:4},wrapperCol:{span:20}},We={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"]};dt.Z=({callback:Be,onCancel:Ue})=>{const[ke,qe]=(0,re.useState)("python");function Pe(lt){qe(We[lt][1])}function Ge(lt){Be(lt)}return re.createElement(De.default,Te(He({},Oe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ge,style:{width:500}}),re.createElement(De.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement(Me.default,{getPopupContainer:lt=>lt.parentNode,onChange:Pe},Object.keys(We).map(lt=>re.createElement(at,{key:lt,value:lt},We[lt][0])))),re.createElement(De.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(be,{mode:ke})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Ze.ZP,{type:"ghost",onClick:Ue},"\u53D6\u6D88")))};function be({value:Be,onChange:Ue,mode:ke,options:qe={}}){const Pe=(0,re.useRef)(),[Ge,lt]=(0,re.useState)();return(0,re.useEffect)(()=>{if(Ge){let je=function(ht){const et=ht.getValue();Ue&&Ue(et)};return Ge.on("change",je),()=>{Ge.off("change",je)}}},[Ge,Ue]),(0,re.useEffect)(()=>{Ge&&Ge.setOption("mode",ke)},[Ge,ke]),(0,re.useEffect)(()=>{Ge&&(Be!==Ge.getValue()||Be==="")&&setTimeout(()=>{Ge.setValue(Be||"")},300)},[Ge,Be]),(0,re.useEffect)(()=>{if(Pe.current&&!Ge){const je=de().fromTextArea(Pe.current,He({mode:ke,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},qe));lt(je)}},[Pe.current,Ge]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:Pe}))}},2978:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Wn}});var re=fe(59301),Me=fe(76560),De=fe(89780),Ze=fe.n(De),Ee=fe(76374),de=fe(66543),ze=fe(6313),Fe=fe(25717),Ie=fe(99498),ve=fe(25419),ut=fe(67549),we=fe(38394),ot=({value:cn="",className:Sn,showTextOnly:fr,showLines:ir,style:lr={}})=>{const xr=(0,re.useMemo)(()=>"",[cn]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:xr}}))},Xe=Object.defineProperty,Je=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,We=(cn,Sn,fr)=>Sn in cn?Xe(cn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:fr}):cn[Sn]=fr,be=(cn,Sn)=>{for(var fr in Sn||(Sn={}))at.call(Sn,fr)&&We(cn,fr,Sn[fr]);if(Te)for(var fr of Te(Sn))Oe.call(Sn,fr)&&We(cn,fr,Sn[fr]);return cn},Be=(cn,Sn)=>Je(cn,He(Sn));let Ue=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ke({onActionCallback:cn,title:Sn,icon:fr,actionName:ir,className:lr="",children:xr}){function Wr(){cn(ir)}return re.createElement("a",{title:Sn,className:lr,onClick:Wr},re.createElement("i",{className:`${fr}`}),xr)}var qe=({watch:cn,showNullButton:Sn,showNullProgramButton:fr,onActionCallback:ir,fullScreen:lr,insertTemp:xr,hidetoolBar:Wr,extraUse:Dr})=>{const Fr=[...Ue,{title:`${cn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${cn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!Wr&&Fr.map((Rr,Xn)=>re.createElement("li",{key:Xn},Rr.actionName?re.createElement(ke,Be(be({},Rr),{onActionCallback:ir})):re.createElement("span",{className:"v-line"}))),Sn?re.createElement("li",null,re.createElement(ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ir},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,fr?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(ke,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ir},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(ke,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ir},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,xr&&re.createElement("li",null,re.createElement(ke,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${xr}`,onActionCallback:ir},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Dr&&re.createElement("li",null,Dr),re.createElement("li",{className:"btn-full-screen"},re.createElement(ke,{icon:`${lr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:lr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ir})))},Pe=fe(75790),Ge=fe(28284),lt=fe(37568),je=fe(99571),ht=Object.defineProperty,et=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Tt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,$t=(cn,Sn,fr)=>Sn in cn?ht(cn,Sn,{enumerable:!0,configurable:!0,writable:!0,value:fr}):cn[Sn]=fr,Re=(cn,Sn)=>{for(var fr in Sn||(Sn={}))Kt.call(Sn,fr)&&$t(cn,fr,Sn[fr]);if(Tt)for(var fr of Tt(Sn))fn.call(Sn,fr)&&$t(cn,fr,Sn[fr]);return cn},xe=(cn,Sn)=>et(cn,ft(Sn));const Lt={labelCol:{span:4},wrapperCol:{span:20}};var Fn=({callback:cn,onCancel:Sn})=>{function fr(ir){cn(ir)}return re.createElement(Ge.default,xe(Re({},Lt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:fr,style:{width:500}}),re.createElement(Ge.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(lt.default,null)),re.createElement(Ge.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(lt.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(je.ZP,{type:"ghost",onClick:Sn},"\u53D6\u6D88")))},hn=fe(44905),vt=fe(45596),Jt=fe(62957),Yt=fe(77019),jn=fe(6077),yt=fe(59301),wn=({callback:cn,onCancel:Sn})=>{const fr=document.createElement("canvas"),ir=fr.getContext("2d");fr.width=1e3,fr.height=800,ir.fillStyle="#ffffff",ir.fillRect(0,0,fr.width,fr.height);const lr=fr.toDataURL("image/png");return yt.createElement(Jt.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},yt.createElement(Yt.Z,{style:{height:"100vh"}},yt.createElement(jn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:lr,visible:!0,title:String(Date.now())},onOk:xr=>{cn({src:xr.url})},onClose:Sn})))},Dt=fe(30641),un=fe(5269),ln=fe(6767),ge={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ue=fe(59301),b=(0,re.forwardRef)(({onCancel:cn,editImgId:Sn,callback:fr},ir)=>{let lr=(0,re.useRef)(),xr=(0,re.useRef)(),Wr=(0,re.useRef)(),Dr=(0,re.useRef)(!1);const Fr=(0,re.useRef)(!1);console.log("ref:",ir);const[Rr,Xn]=(0,re.useState)(0),[yn,rt]=(0,re.useState)("100vh");return(0,re.useEffect)(()=>{Xn(1)},[]),(0,re.useImperativeHandle)(ir,()=>({setHeight:rt})),ue.createElement("div",{ref:Fr,className:"body-overflow-initial"},ue.createElement(Dt.Z,{width:"100vw",height:yn,footer:null,closable:!0,placement:"bottom",open:!!Rr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ge.drawerWrap}`,onClose:()=>{window.saveDrawData(Sr=>{fr({src:`/api/attachments/${Sr}`,id:Sr})})},title:ue.createElement(Yt.Z,{align:"middle"},ue.createElement(un.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ue.createElement(un.Z,{onClick:()=>{rt(yn==="60px"?"100vh":"60px")}},ue.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ue.createElement(un.Z,{onClick:()=>{window.saveDrawData(Sr=>{if(Sr===null){ln.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}ln.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),fr({src:`/api/attachments/${Sr}`,id:Sr,disabledClose:!0})})}},ue.createElement(je.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ue.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Sn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:xr})))}),ae=fe(90524),ie=fe(47889),he=fe(71051);const Ye=ie.ZP.Group,pt={margin:"0 8px"};var zt=({callback:cn,onCancel:Sn})=>{function fr(ir){cn(ir)}return re.createElement(Ge.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fr},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:pt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:pt},"\u884C\u6570"),re.createElement(Ge.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(he.Z,null)),re.createElement("span",{style:pt},"\u5217\u6570"),re.createElement(Ge.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(he.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:pt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(Ge.default.Item,{name:"align"},re.createElement(Ye,null,re.createElement(ie.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(ie.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(ie.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(ie.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(je.ZP,{type:"ghost",onClick:Sn},"\u53D6\u6D88")))},ct=fe(71411),bt=fe(11081),Et=fe.n(bt),Dn=(0,re.forwardRef)(({use3d:cn,width:Sn,height:fr,callback:ir,showSaveButton:lr},xr)=>{const Wr=(0,re.useRef)(),Dr=(0,re.useRef)(),[Fr,Rr]=(0,re.useState)(!1),Xn=(0,re.useRef)({id:Wr,appName:"graphing",width:Sn||1e3,height:fr||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)(()=>{Dr.current=new(Et())(Xn.current,!0),window.onload=function(){Dr.current.inject("applet_container")}},[]);const yn=()=>{var rt=window.ggbApplet.getPNGBase64(1,!0,72);return ir&&ir(rt),rt};return(0,re.useEffect)(()=>{Xn.current.appName=Fr?"3D":"graphing",Dr.current.inject("applet_container")},[Fr]),(0,re.useEffect)(()=>{Rr(cn)},[cn]),(0,re.useImperativeHandle)(xr,()=>({getImgData:yn})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Wr}),re.createElement(Yt.Z,{align:"middle"},re.createElement(un.Z,{flex:1},re.createElement(ct.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Fr,onChange:rt=>Rr(rt)})),re.createElement(un.Z,null,re.createElement(je.ZP,{size:"large",onClick:yn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Mt=fe(88615);const tt="link",on="upload-image",jt="add-flowchart",qt="draw-image",wt="add-flowchart",Rn="code-block",Wt="add-table",Cn="------------",Mn={default:Cn,left:`:${Cn}`,center:`:${Cn}:`,right:`${Cn}:`};var sr=fe(17904),vn=fe(49661);function cr(){}let ar=0;const mr=1e4,$n="\u2581",Xr="@\u2581\u2581@",Pr="@\u2581@",Er=`
**\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`,Ar=["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 Qr(cn){return/^\d+$/.test(cn)?`${cn}px`:cn}const qn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Yn={[qn+"-B"]:"bold",[qn+"-I"]:"italic"},pn={[tt]:"\u6DFB\u52A0\u94FE\u63A5",[Rn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[on]:"\u6DFB\u52A0\u56FE\u7247",[qt]:"\u6DFB\u52A0\u753B\u56FE",[jt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Wn=({defaultValue:cn="",onChange:Sn,width:fr="100%",height:ir=400,miniToolbar:lr=!1,isFocus:xr=!1,watch:Wr,insertTemp:Dr,mode:Fr="markdown",id:Rr="markdown-editor-id",showResizeBar:Xn=!1,noStorage:yn=!1,showNullButton:rt=!1,showNullProgramButton:Sr=!1,hidetoolBar:Kr=!1,fullScreen:_t=!1,onBlur:St,onCMBeforeChange:Jn,onFullScreen:Hn,className:Ot="",disablePaste:kn=!1,disabled:nr=!1,disabledFill:rr=!1,placeholder:er="",values:ur="",extraUse:wr})=>{const[It,an]=(0,re.useState)(null),[mt,dn]=(0,re.useState)(cn),[Tn,Br]=(0,re.useState)(Wr),[_r,Or]=(0,re.useState)(_t),[yr,kr]=(0,re.useState)(""),[ii,jr]=(0,re.useState)(0),[hi,gi]=(0,re.useState)(ir),[oi,vi]=(0,re.useState)(!1),[Ne,_e]=(0,re.useState)(0),[it,gt]=(0,re.useState)(0),Vt=(0,re.useRef)(),Nt=(0,re.useRef)(),Qn=(0,re.useRef)(),Nn=(0,re.useRef)(),Zn=(0,re.useRef)(),Gn=(0,re.useRef)(),Kn=(0,Me.useDispatch)();(0,re.useEffect)(()=>{const An=window.scrollY||window.pageYOffset;dn(ur),It==null||It.setValue(ur),window.scrollTo(0,An)},[ur]),(0,re.useEffect)(()=>{Hn==null||Hn(_r)},[_r]),(0,re.useEffect)(()=>{if(Vt.current){let An=function(rn,Ln){var dr;if(kn){Ln.preventDefault();return}const tr=Ln.clipboardData;if(tr){const br=tr.types.toString(),hr=tr.items;if(br==="Files"||tr.types.indexOf("Files")>-1){if(Ln.preventDefault(),Fr=="stex")return;try{let Tr=hr[1];((dr=hr[0])==null?void 0:dr.kind)==="file"&&(Tr=hr[0]);const Hr=Tr.getAsFile(),fi=Hr.name.split(".").pop();(0,vt.I)(Hr,Jr=>{var Ai,si,ti;Jr.id?((Ai=Hr==null?void 0:Hr.type)==null?void 0:Ai.indexOf("image"))>-1?Bt.replaceSelection(`<img width="100%" src="/api/attachments/${Jr.id}?type=${Jr.content_type})" alt="" />`):((si=Hr==null?void 0:Hr.type)==null?void 0:si.indexOf("video"))>-1?Bt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Jr.id}"></video>`):((ti=Hr==null?void 0:Hr.type)==null?void 0:ti.indexOf("pdf"))>-1?Bt.replaceSelection(`<a href="/api/attachments/${Jr.id}?type=${Hr.type}&disposition=inline" target="_blank">${Hr.name}</a>`):Ar.includes(fi)?Bt.replaceSelection(`<a href="/api/attachments/${Jr.id}?type=office&disposition=inline" target="_blank">${Hr.name}</a>`):Bt.replaceSelection(`[${Hr.name}](/api/attachments/${Jr.id}?type=${Jr.content_type})`):(Jr==null?void 0:Jr.status)===401&&(document.location.href="/user/login")})}catch(Tr){ln.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Bt=Ze().fromTextArea(Vt.current,{mode:Fr,lineNumbers:!lr,lineWrapping:!0,value:cn,autoCloseTags:!0,autoCloseBrackets:!0});return Bt.on("keyup",function(rn,Ln){Ln.keyCode===8&&(rn.getValue()==""?Bt.setOption("placeholder",er):Bt.setOption("placeholder",null))}),Bt.on("keydown",function(rn,Ln){if(Ln.keyCode===8){var dr=st(rn);dr&&Ln.preventDefault()}}),xr&&Bt.focus(),Bt.on("paste",An),nr&&Bt.on("beforeChange",function(rn,Ln){(Ln.origin==="paste"||Ln.origin==="+input")&&Ln.cancel()}),an(Bt),()=>{Bt.off("paste",An)}}},[]);const zn=(0,re.useCallback)(()=>{if(Nt.current)try{}catch(An){console.log(An,"---- to set md editor body height")}},[hi,Nt,_r]);(0,re.useEffect)(()=>{function An(){let Bt=new Ee.Z(rn=>{for(let Ln of rn)(Ln.target.offsetHeight>0||Ln.target.offsetWidth>0)&&(zn(),It.setSize("100%","100%"),It.refresh())});return Bt.observe(Vt.current.parentElement),Bt}if(It){const Bt=An();return()=>{var rn,Ln;(rn=Vt.current)!=null&&rn.parentElement&&Bt.unobserve((Ln=Vt.current)==null?void 0:Ln.parentElement)}}},[It,zn]),(0,re.useEffect)(()=>{if(It){let An=[];for(const[Bt,rn]of Object.entries(Yn)){let Ln={[Bt]:()=>{Rt(rn)}};An.push(Ln),It.addKeyMap(Ln)}return()=>{for(let Bt of An)It.removeKeyMap(Bt)}}},[It]),(0,re.useEffect)(()=>{_t!==_r&&Or(_t)},[_t]),(0,sr.Z)(()=>{if(!yn&&ii>0){let An=new Date().getTime(),Bt=window.sessionStorage.getItem(Rr);An>=ii+mr&&(!Bt||Bt!==mt)&&(window.sessionStorage.setItem(Rr,mt),vi(!0))}},mr),(0,re.useEffect)(()=>{Br(Wr)},[It,Wr]),(0,re.useEffect)(()=>{It&&xr&&It.focus()},[It,xr]),(0,re.useEffect)(()=>{if(Tn&&It){let An=function(rn){let Ln=rn.target;if(Nn.current){let dr=Ln.scrollTop/Ln.scrollHeight;Nn.current.scrollTop=Nn.current.scrollHeight*dr}};const Bt=It.getScrollerElement();return Bt.addEventListener("scroll",An),()=>{Bt.removeEventListener("scroll",An)}}},[It,Tn]),(0,re.useEffect)(()=>{if(It&&Jn){let An=function(Bt,rn){Jn(Bt,rn)};return It.on("beforeChange",An),()=>{It.off("beforeChange",An)}}},[It,Jn]),(0,re.useEffect)(()=>{if(It&&St){let An=function(){St(It.getValue())};return It.on("blur",An),()=>{It.off("blur",An)}}},[It,St]);function st(An,Bt){var rn=An.getDoc(),Ln=rn.getCursor(),dr=rn.getLine(Ln.line),tr=dr.charAt(Ln.ch-1),br=dr.lastIndexOf("@\u2581@",Ln.ch),hr=dr.lastIndexOf("@\u2581\u2581@",Ln.ch),Tr=br>hr?br:hr,Hr=br>hr?3:4;if(Xr.indexOf(tr)===-1)return null;if(console.log("change1:",Bt,An,dr,Ln,Tr,br,hr,tr),Tr>=0&&Ln.ch-Tr<5){var fi=Tr+Hr;return rn.replaceRange("",{line:Ln.line,ch:Tr},{line:Ln.line,ch:fi}),{line:Ln.line,ch:fi}}return null}(0,re.useEffect)(()=>{if(It){let An=function(Bt,rn){const Ln=Bt.getValue();dn(Ln),jr(new Date().getTime()),Bt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Sn&&(Sr?Sn(Ln,Ut(Ln)):Sn(Ln))};return It.on("change",An),()=>{It.off("change",An)}}},[It,Sn]),(0,re.useEffect)(()=>{if(It)if(cn==null)It.setValue(""),dn("");else{const An=window.scrollY||window.pageYOffset;cn!==It.getValue()&&(It.setValue(cn),dn(cn),It.setCursor(nr?1:It.lineCount(),0),window.scrollTo(0,An))}},[It,cn]);const Rt=(0,re.useCallback)(An=>{const Bt=It.getCursor(),rn=It.getSelection();let Ln=rn.split(`
`);switch(An){case"bold":return It.replaceSelection("**"+rn+"**"),rn===""&&It.setCursor(Bt.line,Bt.ch+2),It.focus();case"italic":return It.replaceSelection("*"+rn+"*"),rn===""&&It.setCursor(Bt.line,Bt.ch+1),It.focus();case"code":return It.replaceSelection("`"+rn+"`"),rn===""&&It.setCursor(Bt.line,Bt.ch+1),It.focus();case"inline-latex":return(0,vn.Ye)(Kn)?void 0:(kr("inline-latex"),It.focus());case"latex":return It.replaceSelection("```latex\n"+rn+"\n```"),It.setCursor(Bt.line+1,rn.length+1),It.focus();case"line-break":return It.replaceSelection(`<br/>
`),It.focus();case"list-ul":return rn===""?It.replaceSelection("- "+rn):It.replaceSelection(Ln.map(dr=>dr===""?"":`- ${dr}`).join(`
`)),It.focus();case"list-ol":return rn===""?It.replaceSelection("1. "+rn):It.replaceSelection(Ln.map((dr,tr)=>dr===""?"":`${tr+1}. ${dr}`).join(`
`)),It.focus();case"add-null-ch":return rn===""&&It.setCursor(Bt.line,Bt.ch),It.replaceSelection($n),It.focus();case"add-signal":return rn===""&&It.setCursor(Bt.line,Bt.ch),It.replaceSelection(Pr),It.focus();case"add-multiple":return rn===""&&It.setCursor(Bt.line,Bt.ch),It.replaceSelection(Xr),It.focus();case"inster-template-1":return rn===""&&It.setCursor(Bt.line,Bt.ch),It.replaceSelection(Er),It.focus();case"eraser":return It.setValue(""),It.focus();case"trigger-watch":return Br(!Tn),It.focus();case"trigger-full-screen":return Or(!_r),It.focus();case tt:kr(tt);return;case Rn:kr(Rn);return;case on:kr(on);return;case qt:kr(qt);return;case"maths-latex":if((0,vn.Ye)(Kn))return;kr("maths-latex");return;case jt:Zn.current="",sessionStorage.removeItem("file_id"),kr(jt);return;case Wt:kr(Wt);return;default:throw new Error}},[It,Tn,_r]),kt=(0,re.useCallback)((An,Bt)=>{var rn,Ln,dr,tr,br,hr;An!=null&&An.disabledClose||kr("");const{src:Tr,alt:Hr,id:fi}=An||{};switch(yr){case tt:const{title:ei,link:$r}=An;return It.replaceSelection(`[${ei}](${$r})`),It.focus();case Rn:const{language:Lr,content:qr}=An;return It.replaceSelection(["```"+Lr,qr,"```"].join(`
`)),It.focus();case"maths-latex":for(var Jr=atob(An),Ai=new Uint8Array(Jr.length),si=0;si<Jr.length;si++)Ai[si]=Jr.charCodeAt(si);var ti=new Blob([Ai],{type:"image/png"});(0,vt.I)(ti,gA=>{gA.id?It.replaceSelection(`![,](/api/attachments/${gA.id}?type=${gA.content_type})`):(gA==null?void 0:gA.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,vn.Ye)(Kn))return;It.replaceSelection("`$$"+An+"$$`");break;case wt:if(!fi)return;It.getValue().indexOf(Tr)===-1?It.replaceSelection(`<center><img id="${fi}" width="80%" src="${Tr}" class="draw-flowchart" alt="${Hr||""}" /></center>`):document.getElementById(fi).src=ae.Z.API_SERVER+Tr+"?t="+Date.now();break;case on:case qt:const Zr=Bt,bi=(dr=(Ln=(rn=Zr==null?void 0:Zr.name)==null?void 0:rn.split("."))==null?void 0:Ln.pop)==null?void 0:dr.call(Ln);return((tr=Zr==null?void 0:Zr.type)==null?void 0:tr.indexOf("image"))>-1||!(Zr!=null&&Zr.type)?Zr!=null&&Zr.align||Zr!=null&&Zr.width?It.replaceSelection(`<p style="text-align:${Zr.align||"initial"}"><img width="${Zr.width?Zr.width+"%":"initial"}" src="${Tr}" alt="${Hr||""}" /></p>`):It.replaceSelection(`<img width="100%" src="${Tr}" alt="${Hr||""}" />`):((br=Zr==null?void 0:Zr.type)==null?void 0:br.indexOf("video"))>-1?It.replaceSelection(`<video width="100%" controls src="${Tr}"></video>`):((hr=Zr==null?void 0:Zr.type)==null?void 0:hr.indexOf("pdf"))>-1?It.replaceSelection(`<a href="${Tr}?type=${Zr.type}&disposition=inline" target="_blank">${Zr.name}</a>`):Ar.includes(bi)?It.replaceSelection(`<a href="${Tr}?type=office&disposition=inline" target="_blank">${Zr.name}</a>`):It.replaceSelection(`[${Zr.name}](${Tr})`),It.focus();case Wt:const{row:ui,col:Ci,align:Ti}=An;let xA=`
`;for(let gA=0;gA<ui;gA++){let la=[],dA=[];for(let qi=0;qi<Ci;qi++)gA===1&&dA.push(Mn[Ti]),la.push(" ");gA===1&&(xA+=`| ${dA.join(" | ")} |
`),xA+=`| ${la.join(Ci===1?"":" | ")} |
`}return It.replaceSelection(xA+`
`),It.focus();default:throw new Error}},[It,yr]),Ht=(0,re.useMemo)(()=>{switch(yr){case tt:return re.createElement(Fn,{callback:kt,onCancel:Zt});case Rn:return re.createElement(hn.Z,{callback:kt,onCancel:Zt});case on:return re.createElement(vt.Z,{callback:kt,onCancel:Zt});case jt:return re.createElement(b,{editImgId:Zn.current,callback:kt,onCancel:Zt});case Wt:return re.createElement(zt,{callback:kt,onCancel:Zt});case"maths-latex":return re.createElement(Dn,{showSaveButton:!0,callback:kt});case"inline-latex":return re.createElement(Mt.Z,{showSaveButton:!0,callback:kt});default:return null}},[yr]);function Zt(){kr("")}(0,re.useEffect)(()=>{if(Qn.current){let An=function(br){dr=!0,tr=br.pageY},Bt=function(){dr=!1},rn=function(br){if(dr){let hr=br.pageY-tr;hr<0&&(hr=0),hr>300&&(hr=300);let Tr=ir+hr+"px";gi(Tr)}},Ln=Qn.current,dr=!1,tr=0;return Ln.addEventListener("mousedown",An),document.addEventListener("mousemove",rn),document.addEventListener("mouseup",Bt),()=>{Ln.removeEventListener("mousedown",An),document.removeEventListener("mousemove",rn),document.removeEventListener("mouseup",Bt)}}},[It,Qn]),(0,re.useEffect)(()=>{gi(ir)},[ir]);const gn=Qr(fr),On=Qr(hi),$e={width:gn,height:On},mn=(0,re.useMemo)(()=>{if(ii){let An=new Date(ii),Bt=An.getHours(),rn=An.getMinutes(),Ln=An.getSeconds();return Bt=Bt<10?"0"+Bt:Bt,rn=rn<10?"0"+rn:rn,Ln=Ln<10?"0"+Ln:Ln,`${Bt}:${rn}:${Ln}`}return 0},[ii]),Ut=An=>{const Bt=[];if(Sr){let rn=-1;An=An.replace(/(@▁▁@|@▁@)/g,function(Ln,dr,tr){Bt.push({multiLine:Ln!==Pr})})}return Bt};function tn(){window.sessionStorage.removeItem(Rr),vi(!1),jr(0)}function sn(){vi(!1),jr(0),It.setValue(window.sessionStorage.getItem(Rr))}(0,re.useEffect)(()=>{pn[yr]&&yr!==qt&&yr!==jt&&setTimeout(()=>{const An=document.getElementsByClassName("markdown-popup-form")[0],Bt=window.innerWidth/2-An.offsetWidth/2,rn=window.innerHeight/2-An.offsetHeight/2;_e(Bt),gt(rn)},0)},[yr]);const Gt=An=>{An.preventDefault();const Bt=An.clientX-Ne,rn=An.clientY-it;document.body.onmousemove=Ln=>{let dr=Ln.clientX-Bt,tr=Ln.clientY-rn;const br=document.getElementsByClassName("markdown-popup-form")[0],hr=window.innerWidth-br.offsetWidth,Tr=window.innerHeight-br.offsetHeight;dr=Math.max(0,Math.min(dr,hr)),tr=Math.max(0,Math.min(tr,Tr)),nn(Ln.clientX,Ln.clientY,Bt,rn)&&(_e(dr),gt(tr))},document.body.onmouseup=function(){document.body.onmousemove=null}},nn=(An,Bt,rn,Ln)=>{const dr=document.body.clientHeight,tr=document.body.clientWidth;return An<20&&rn>An||An>tr-20&&rn<An||Bt<20&&Ln>Bt||Bt>dr-20&&Ln<Bt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:Nt},re.createElement("div",{className:`markdown-editor-container ${Ot} ${Tn?"on-preview":""} ${lr?"mini":""} ${_r?"full-screen":""}`,style:$e},re.createElement(qe,{insertTemp:Dr,watch:Tn,fullScreen:_r,showNullButton:rt,showNullProgramButton:Sr,onActionCallback:Rt,hidetoolBar:Kr,extraUse:wr}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:Vt,placeholder:er})),Tn?re.createElement("div",{ref:Nn,className:"preview-container"},Fr==="stex"&&re.createElement(ot,{value:mt}),Fr!=="stex"&&re.createElement(we.Z,{edit:!0,disabledFill:rr,showProgramFill:Sr,value:mt,openEditor:An=>{var Bt;Zn.current=An,(Bt=Gn.current)==null||Bt.setHeight("100vh"),setTimeout(()=>{kr("add-flowchart")},150)}})):null))),Xn?re.createElement("a",{ref:Qn,className:"editor-resize"}):null,yr===qt&&re.createElement(wn,{callback:kt,onCancel:Zt}),yr===jt&&re.createElement(b,{ref:Gn,editImgId:Zn.current,callback:kt,onCancel:Zt}),re.createElement(Pe.Z,null,pn[yr]&&yr!==qt&&yr!==jt?re.createElement(Jt.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ne,top:it},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:Gt},pn[yr]),open:!0,onCancel:Zt,footer:null,destroyOnClose:!0,width:yr===jt?"1200px":null,height:yr===jt?"80vh":null,className:"markdown-popup-form"},Ht):null))}},45596:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Ue},I:function(){return qe}});var re=fe(28284),Me=fe(6767),De=fe(37568),Ze=fe(77736),Ee=fe(71051),de=fe(47889),ze=fe(99571),Fe=fe(67303),Ie=fe(59301),ve=fe(59301),ut=Object.defineProperty,we=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Te=(Pe,Ge,lt)=>Ge in Pe?ut(Pe,Ge,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Pe[Ge]=lt,at=(Pe,Ge)=>{for(var lt in Ge||(Ge={}))Je.call(Ge,lt)&&Te(Pe,lt,Ge[lt]);if(Xe)for(var lt of Xe(Ge))He.call(Ge,lt)&&Te(Pe,lt,Ge[lt]);return Pe},Oe=(Pe,Ge)=>we(Pe,ot(Ge));const{useForm:We}=re.default,be={width:280,marginRight:10},Be={labelCol:{span:5},wrapperCol:{span:19}};var Ue=({callback:Pe,onCancel:Ge})=>{const[lt]=We();let je=(0,Ie.useRef)();function ht(Tt){je.current.width=lt.getFieldValue("width"),je.current.align=lt.getFieldValue("align"),Pe(Tt,je.current)}function et(Tt,Kt){if(Tt.status===-1){Me.ZP.error(Tt.message);return}lt.setFieldsValue({src:`/api/attachments/${Tt.id}`,type:Kt.type})}function ft(Tt){let Kt=Tt.target.files[0];je.current=Kt,qe(Kt,et)}return ve.createElement(re.default,Oe(at({form:lt},Be),{className:"upload-image-panel",onFinish:ht,style:{width:470,overflow:"hidden"}}),ve.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ve.createElement("div",{className:"flex-container"},ve.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ve.createElement(De.default,{style:be})),ve.createElement(ke,{onFileChange:ft}))),ve.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ve.createElement(De.default,{style:{width:264}})),ve.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ve.createElement(Ze.Z,null,ve.createElement(re.default.Item,{name:"width",style:{margin:0}},ve.createElement(Ee.Z,{style:{width:264}})),ve.createElement("span",{className:"ml8"},"%"))),ve.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ve.createElement(de.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"}]})),ve.createElement("aside",null,ve.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ve.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ve.createElement(ze.ZP,{type:"default",onClick:Ge},"\u53D6\u6D88"))))};function ke({onFileChange:Pe}){return ve.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ve.createElement("input",{type:"file",onChange:Pe}))}function qe(Pe,Ge){if(!Pe)throw new String("\u6CA1\u6709\u6587\u4EF6");let lt=new FormData;lt.append("editormd-image-file",Pe),lt.append("file_param_name","editormd-image-file"),lt.append("byxhr","true");var je=new window.XMLHttpRequest;je.withCredentials=!0,je.addEventListener("load",function(ht){Ge(JSON.parse(ht.target.responseText),Pe)},!1),je.addEventListener("error",function(ht){console.error(ht)},!1),je.open("POST",`${Fe.KI}/api/attachments.json`),je.send(lt)}},75790:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return De}});var re=fe(59301),Me=fe(4676);class De extends re.Component{constructor(Ee){super(Ee);const de=window.document;this.node=de.createElement("div"),de.body.appendChild(this.node)}render(){const{children:Ee}=this.props;return(0,Me.createPortal)(Ee,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},51124:function(xn,dt,fe){"use strict";fe.d(dt,{SV:function(){return wn},ZP:function(){return yt}});var re=fe(59301),Me=fe(76374);const De={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"]},Ze={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"]},Ee={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},de={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(`
`)}]},ze={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 Fe=fe(53184),Ie=fe.n(Fe),ve=(Dt,un,ln)=>new Promise((ge,ue)=>{var ee=ie=>{try{ae(ln.next(ie))}catch(he){ue(he)}},b=ie=>{try{ae(ln.throw(ie))}catch(he){ue(he)}},ae=ie=>ie.done?ge(ie.value):Promise.resolve(ie.value).then(ee,b);ae((ln=ln.apply(Dt,un)).next())});const ut={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"]}},we=(Dt,un,ln,ge)=>{const ue=un.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:ln.lineNumber,endColumn:ln.column});return Array.from(new Set(ue.match(/\b\w{2,}\b/g)||[])).map(b=>({label:b,kind:Dt.languages.CompletionItemKind.Text,insertText:b,range:ge}))},ot=(Dt,un,ln,ge)=>{Dt.languages.registerCompletionItemProvider(un,{provideCompletionItems(ue,ee){const b=ue.getWordUntilPosition(ee),ae={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:b.startColumn,endColumn:b.endColumn},ie=ue.getLineContent(ee.lineNumber).substring(b.startColumn-2,b.endColumn);return{suggestions:[...we(Dt,ue,ee,ae),...ln.map(Ye=>({label:Ye,kind:Dt.languages.CompletionItemKind.Keyword,documentation:Ye,insertText:Ye,insertTextRules:Dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ae})),...ge.map(Ye=>({label:Ye.label,kind:Dt.languages.CompletionItemKind.Snippet,documentation:Ye.content,insertText:ie.startsWith("#")?Ye.content.replace(/#/,""):Ye.content,insertTextRules:Dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ae}))]}}})};var Xe=Dt=>{ut.languages.forEach(un=>{Dt.languages.registerDocumentFormattingEditProvider(un,{provideDocumentFormattingEdits(ln){return ve(this,null,function*(){const ge=Ie()(ln.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:ln.getFullModelRange(),text:ge}]})}})}),ot(Dt,"java",Ze.keywords,Ze.quickKey),ot(Dt,"cpp",Ee.keywords,Ee.quickKey),ot(Dt,"c",De.keywords,[]),ot(Dt,"python",de.keywords,de.quickKey),ot(Dt,"scala",ze.keywords,ze.quickKey)};const Je="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var He=Object.defineProperty,Te=(Dt,un,ln)=>un in Dt?He(Dt,un,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Dt[un]=ln,at=(Dt,un,ln)=>Te(Dt,typeof un!="symbol"?un+"":un,ln);const Oe=class fc{constructor(un,ln,ge){this.placeholder=un,this.editor=ln,this.monaco=ge,ln.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return fc.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)}};at(Oe,"ID","editor.widget.placeholderHint");var be=Oe,Be=fe(96236),Ue=fe(6767),ke=fe(25399),qe=fe(89392),Pe=fe(33796),Ge=fe(56102),lt=Object.defineProperty,je=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,Tt=Object.prototype.propertyIsEnumerable,Kt=(Dt,un,ln)=>un in Dt?lt(Dt,un,{enumerable:!0,configurable:!0,writable:!0,value:ln}):Dt[un]=ln,fn=(Dt,un)=>{for(var ln in un||(un={}))ft.call(un,ln)&&Kt(Dt,ln,un[ln]);if(et)for(var ln of et(un))Tt.call(un,ln)&&Kt(Dt,ln,un[ln]);return Dt},$t=(Dt,un)=>je(Dt,ht(un)),Re=(Dt,un)=>{var ln={};for(var ge in Dt)ft.call(Dt,ge)&&un.indexOf(ge)<0&&(ln[ge]=Dt[ge]);if(Dt!=null&&et)for(var ge of et(Dt))un.indexOf(ge)<0&&Tt.call(Dt,ge)&&(ln[ge]=Dt[ge]);return ln},xe=(Dt,un,ln)=>new Promise((ge,ue)=>{var ee=ie=>{try{ae(ln.next(ie))}catch(he){ue(he)}},b=ie=>{try{ae(ln.throw(ie))}catch(he){ue(he)}},ae=ie=>ie.done?ge(ie.value):Promise.resolve(ie.value).then(ee,b);ae((ln=ln.apply(Dt,un)).next())});function Lt(Dt){return/^\d+$/.test(Dt)?`${Dt}px`:Dt}function Fn(){}let hn=!1;const vt={"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 Jt(Dt=[]){let un=Dt;if(Array.isArray(Dt)){for(let ln=0;ln<Dt.length;ln++){let ge=vt[Dt[ln]];if(ge)return ge}return un[0]}return vt[un]||un}let Yt=null;const jn=()=>xe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Dt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Dt)}});var yt=Dt=>{var un=Dt,{width:ln="100%",height:ge="100%",value:ue,language:ee="javascript",style:b={},options:ae={},overrideServices:ie={},theme:he="vs-dark",onEditBlur:Ye,isCopy:pt=!1,onSave:zt,autoHeight:ct=!1,forbidCopy:bt=!1,onChange:Et=Fn,editorDidMount:en=Fn,onFocus:Dn=Fn,onBreakPoint:Mt=Fn,breakPointValue:tt=[],filename:on="educoder.txt",errorLine:jt,errorContent:qt="",highlightLine:wt,openBreakPoint:Rn=!1,placeholder:Wt="",showMiniMap:Cn=!0}=un,Mn=Re(un,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const sr=(0,re.useRef)(),vn=(0,re.useRef)({}),cr=(0,re.useRef)(),ar=(0,re.useRef)(),mr=(0,re.useRef)([]),$n=(0,re.useRef)(!1),Xr=(0,re.useRef)(),Pr=(0,re.useRef)(),Er=(0,re.useRef)(!1),[Ar,Qr]=(0,re.useState)(!1);function Vn(){let Xn;return sr.current&&(Xn=new Me.Z(yn=>{for(let rt of yn)(rt.target.offsetHeight>0||rt.target.offsetWidth>0)&&vn.current.instance.layout()}),Xn.observe(sr.current)),Xn}function qn(){Ue.ZP.warning({content:decodeURIComponent(Je),key:"monaco-editor-tip"})}const Yn=()=>{let Xn=vn.current.instance;if(ue!=null&&Xn&&Ar){const yn=Xn.getModel();yn&&ue!==yn.getValue()&&(hn=!0,yn.setValue(ue),Xn.layout(),hn=!1)}};(0,re.useEffect)(()=>{const Xn=Pe.Z.subscribe("formatDocument",yn=>{var rt;let Sr=vn.current.instance;(rt=Sr==null?void 0:Sr.getAction)==null||rt.call(Sr,"editor.action.formatDocument").run()});return window.updateMonacoValue=yn=>{Et(yn)},Xn},[]),(0,re.useEffect)(()=>{var Xn;let yn=vn.current.instance;ar.current&&clearTimeout(ar.current),ar.current=setTimeout(()=>{Yn()},500),ue&&(ue!=null&&ue.length)&&((Xn=yn==null?void 0:yn.updateOptions)==null||Xn.call(yn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ue.split(/\r\n|\r|\n/g).length))+3,5)}))},[ue,Ar,vn.current]),(0,re.useEffect)(()=>{if(jt&&vn.current&&vn.current.instance){let yn=vn.current.instance;yn.changeViewZones(function(rt){var Sr=document.createElement("div");Sr.style.padding="10px 20px",Sr.style.width="calc(100% - 20px)",Sr.className="my-error-line-wrp",Sr.innerHTML=qt,rt.addZone({afterLineNumber:jt||11,heightInLines:3,domNode:Sr})});var Xn={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}};yn.addOverlayWidget(Xn),yn.revealPositionInCenter({lineNumber:20,column:1})}},[jt,vn.current,Ar]);const pn=(Xn="",yn)=>{if(!Xn||Xn.trim()==="")return!0;const Sr=vn.current.instance.getModel().getLineTokens(yn);let Kr=!1;for(let _t=0;_t<2;_t++)Sr.getStandardTokenType(_t)===1&&(Kr=!0);return Kr};(0,re.useEffect)(()=>{var Xn;const yn=(Xn=vn.current)==null?void 0:Xn.instance;if(yn&&Ar&&bt){const rt=yn.onDidBlurEditorWidget(()=>{Er.current=!1}),Sr=yn.onDidFocusEditorText(()=>{Er.current=!0});return()=>{rt.dispose(),Sr.dispose()}}},[vn.current,Ar,bt]),(0,re.useEffect)(()=>{var Xn;if((Xn=vn.current)!=null&&Xn.instance&&Ar&&Rn){let yn=vn.current.instance,rt=yn.getModel();if(!rt)return;(()=>{var ur;let wr=[],It=[];const an=rt.getAllDecorations();for(let dn of an)dn.options.className==="highlighted-line"&&(wr.push((ur=dn==null?void 0:dn.range)==null?void 0:ur.startLineNumber),It.push(dn==null?void 0:dn.id));if(wt===wr[0])return;rt.deltaDecorations(It,[]);const mt=rt.getLineCount();wt&&wt<=mt&&(yn.deltaDecorations([],[{range:new Yt.Range(wt,1,wt,rt.getLineMaxColumn(wt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),yn.revealLineInCenter(wt))})();const Kr=(ur=!1)=>{var wr;let It=[],an=[];const mt=rt.getAllDecorations();for(let dn of mt)dn.options.linesDecorationsClassName==="breakpoints-select"&&(It.push((wr=dn==null?void 0:dn.range)==null?void 0:wr.startLineNumber),an.push(dn==null?void 0:dn.id));if(ur)return{lines:It,ids:an};Mt(It)},_t=ur=>xe(void 0,null,function*(){let wr={range:new Yt.Range(ur,1,ur,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield rt.deltaDecorations([],[wr]),Kr()}),St=ur=>xe(void 0,null,function*(){let wr=[];const It=yn.getLineDecorations(ur);for(let an of It)an.options.linesDecorationsClassName==="breakpoints-select"&&wr.push(an.id);yield rt.deltaDecorations(wr,[]),Kr()}),Jn=ur=>{let wr=yn.getLineDecorations(ur);for(let It of wr)if(It.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,qe.isEqual)(tt,Kr(!0).lines)){rt.deltaDecorations(Kr(!0).ids,[]);const ur=tt.map(wr=>({range:new Yt.Range(wr,1,wr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));rt.deltaDecorations([],ur)}const Hn=yn.onDidChangeModelContent(ur=>{let wr=yn.getPosition();if(wr){let It=wr.lineNumber;clearTimeout(Pr.current),Pr.current=setTimeout(()=>{pn(rt.getLineContent(It),It)?St(It):Jn(It)?(St(It),_t(It)):Kr()},100)}}),Ot=yn.onMouseDown(ur=>{var wr,It,an;if(ur.target.detail&&((an=(It=(wr=ur.target)==null?void 0:wr.element)==null?void 0:It.className)!=null&&an.includes("line-numbers"))){let mt=ur.target.position.lineNumber;if(pn(rt.getLineContent(mt),mt))return;Jn(mt)?St(mt):_t(mt)}}),kn=ur=>{let wr={range:new Yt.Range(ur,1,ur,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};mr.current=yn.deltaDecorations(mr.current,[wr])},nr=()=>{mr.current=yn.deltaDecorations(mr.current,[])},rr=yn.onMouseMove(ur=>{var wr,It,an;if(nr(),ur.target.detail&&((an=(It=(wr=ur.target)==null?void 0:wr.element)==null?void 0:It.className)!=null&&an.includes("line-numbers"))){let mt=ur.target.position.lineNumber;if(pn(rt.getLineContent(mt),mt))return;kn(mt)}}),er=yn.onMouseLeave(()=>{nr()});return()=>{Hn.dispose(),Ot.dispose(),rr.dispose(),er.dispose()}}},[vn.current,Ar,tt,wt,Rn,ee]),(0,re.useEffect)(()=>{var Xn;(Xn=vn.current)!=null&&Xn.instance&&Rn&&vn.current.instance.setPosition({lineNumber:0,column:0})},[wt]);function Wn(){let Xn=vn.current.instance;if(Xn){const yn=Xn.getSelection(),rt=vn.current.pastePos||{},Sr=new Yt.Range(rt.startLineNumber||yn.endLineNumber,rt.startColumn||yn.endColumn,rt.endLineNumber||yn.endLineNumber,rt.endColumn||yn.endColumn);setTimeout(()=>{Xn.executeEdits("",[{range:Sr,text:""}])},300)}}function cn(Xn){(window.navigator.platform.match("Mac")?Xn.metaKey:Xn.ctrlKey)&&Xn.keyCode==83&&(Xn.preventDefault(),zt())}const Sn=()=>{if(ct&&vn.current.instance){const Xn=vn.current.instance.getContentHeight();Fr(Xn<ge?ge:Xn)}else Fr(ge)};function fr(Xn){var yn=document.createEvent("MouseEvents");yn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Xn.dispatchEvent(yn)}const ir=Xn=>{if(!Er.current)return;const{keyCode:yn,ctrlKey:rt,metaKey:Sr,target:Kr,type:_t}=Xn;return(_t==="paste"||(yn===67||yn===86)&&(Sr||rt))&&Kr.nodeName==="TEXTAREA"&&(qn(),Xn.preventDefault()),!1};function lr(Xn,yn){var rt=window.URL||window.webkitURL||window,Sr=new Blob([yn]),Kr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Kr.href=rt.createObjectURL(Sr),Kr.download=Xn,fr(Kr)}(0,re.useEffect)(()=>{Sn()},[Sn]),(0,re.useEffect)(()=>{sr.current&&!Ar&&Promise.all([fe.e(8909),fe.e(5028)]).then(fe.bind(fe,71448)).then(Xn=>{try{Yt=Xn,vn.current.instance=Yt.editor.create(sr.current,{value:ue,language:Jt(ee),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Cn||!1}},ie);const yn=vn.current.instance;let Kr=[...Be.BH._menuItems].find(Hn=>Hn[0]._debugName=="EditorContext")[1],_t=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],St=(Hn,Ot)=>{var kn,nr;let rr=Hn._first;do Ot.includes((nr=(kn=rr.element)==null?void 0:kn.command)==null?void 0:nr.id)&&Hn._remove(rr);while(rr=rr.next)};if(en(yn,Yt),setTimeout(()=>{Sn(),vn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{lr(on||"educoder.txt",yn.getValue())}})},500),vn.current.subscription=yn.onDidChangeModelContent(Hn=>{$n.current?clearTimeout(Xr.current):(Sn(),Et(yn.getValue(),Hn)),Xr.current=setTimeout(()=>{$n.current=!1},500)}),window.Monaco||Xe(Yt,Jt(ee)),bt&&(St(Kr,_t),sr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",ir),window.removeEventListener("paste",ir),window.addEventListener("keydown",ir),window.addEventListener("paste",ir)),window.Monaco=Yt,Ye&&yn.onDidBlurEditorWidget(()=>{Ye(yn.getValue())}),Dn&&yn.onDidFocusEditorText(()=>{bt&&jn(),Dn(yn.getValue())}),bt){jn();try{yn.onDidPaste(Hn=>{const Ot=yn.getSelection(),kn=vn.current.pastePos||{},nr=new Yt.Range(kn.startLineNumber||Ot.endLineNumber,kn.startColumn||Ot.endColumn,kn.endLineNumber||Ot.endLineNumber,kn.endColumn||Ot.endColumn);yn.executeEdits("",[{range:Hn.range,text:""}])})}catch(Hn){}}let Jn=Vn();return Wt&&typeof Wt=="string"&&new be(Wt,yn,Yt),Qr(!0),()=>{const Hn=vn.current.instance;Hn.dispose();const Ot=Hn.getModel();Ot&&Ot.dispose(),vn.current.subscription&&vn.current.subscription.dispose(),Jn.unobserve(sr.current)}}catch(yn){}})},[]),(0,re.useEffect)(()=>{if(vn.current.instance&&Ar)return document.addEventListener("keydown",cn,!1),()=>{document.removeEventListener("keydown",cn)}},[zt,Ar]),(0,re.useEffect)(()=>{let Xn=vn.current.instance;if(Xn&&Ar){let yn=Jt(ee);Yt.editor.setModelLanguage(Xn.getModel(),yn)}},[ee,Ar]),(0,re.useEffect)(()=>{vn.current.instance&&Ar&&Yt.editor.setTheme(he)},[he,Ar]),(0,re.useEffect)(()=>{let Xn=vn.current.instance;cr.current=ae,Xn&&Ar&&(Xn.updateOptions(fn({},ae)),setTimeout(()=>{Xn.getModel().updateOptions(fn({},ae))},200))},[JSON.stringify(ae),Ar]),(0,re.useEffect)(()=>{let Xn=vn.current.instance;Xn&&Ar&&Xn.layout()},[ln,ge,Ar]);const[xr,Wr]=(0,re.useState)(Lt(ln)),[Dr,Fr]=(0,re.useState)(Lt(ge)),Rr=$t(fn({},b),{width:xr,height:Dr,position:"relative"});return re.createElement("div",{className:"my-monaco-editor",ref:sr,style:Rr},pt&&re.createElement(Ge.CopyToClipboard,{text:ue,onCopy:()=>Ue.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement(ke.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 wn({width:Dt="100%",height:un="100%",original:ln,modified:ge,language:ue,options:ee={}}){const b=(0,re.useRef)(),[ae,ie]=(0,re.useState)(null);function he(ct){let bt;return b.current&&(bt=new Me.Z(Et=>{for(let en of Et)(en.target.offsetHeight>0||en.target.offsetWidth>0)&&ct.layout()}),bt.observe(b.current)),bt}(0,re.useEffect)(()=>(b.current&&Promise.all([fe.e(8909),fe.e(9404)]).then(fe.bind(fe,2550)).then(ct=>{Yt=ct;const bt=Yt.editor.createDiffEditor(b.current,$t(fn({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ee),{wordWrap:!0}));ie(bt);let Et=he(bt);return()=>{bt.dispose();const en=bt.getModel();en&&en.dispose(),Et.unobserve(b.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,re.useEffect)(()=>{ae&&ae.setModel({original:Yt.editor.createModel(ln,ue),modified:Yt.editor.createModel(ge,ue)})},[ln,ge,ue,ae]);const Ye=Lt(Dt),pt=Lt(un),zt={width:Ye,height:pt};return re.createElement("div",{className:"my-diff-editor",ref:b,style:zt})}},929:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return we}});var re={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},Me=fe(29787),De=fe(25399),Ze=fe(60242),Ee=fe(92310),de=fe.n(Ee),ze=fe(49661),Fe=fe(57884),Ie=fe(34055),ve=fe(59301),we=({className:ot,dataSource:Xe=[],col:Je=4,right:He,bottom:Te=23,precision:at=0,wrapWidth:Oe=1200,trackEventItems:We,loading:be,onRemove:Be=()=>{},isCurrent:Ue=!0,showProgress:ke=!1,showAlias:qe=!1})=>{const Pe=Math.floor((Oe-(Je-1)*He)/Je),Ge=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return ve.createElement(Me.Z,{spinning:be},ve.createElement("div",{className:de()(re.list,ot)},!!(Xe!=null&&Xe.length)&&(Xe==null?void 0:Xe.map((lt,je)=>{var ht,et,ft,Tt,Kt,fn;const{name:$t,id:Re,identifier:xe,featured:Lt,school_name:Fn,image_url:hn,excellent:vt,is_plan:Jt}=lt;return ve.createElement("div",{key:Re,className:Ue&&ke?re.wrapisCurrent:re.wrap,style:{width:Pe,marginRight:(1+je)%Je===0?0:He+at,marginBottom:Te}},ve.createElement("a",{className:re.li,onClick:Yt=>{Yt.preventDefault(),Yt.stopPropagation(),We&&(0,ze.L9)([We]),(0,ze.xg)(`/paths/${xe}`)}},ve.createElement("div",{className:re.img},ve.createElement("img",{className:re.cover,src:`${hn}`}),Ue&&(0,Ie.bg)()&&(lt==null?void 0:lt.studying)&&ve.createElement("div",{className:`${re.movebq} user-path-items`,onClick:Yt=>{Yt.stopPropagation(),Be(lt)}},ve.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ve.createElement("span",{className:"c-red"},"\u79FB\u9664")),(ht=lt==null?void 0:lt.subject_tags)==null?void 0:ht.map((Yt,jn)=>{var yt,wn;if(jn===0){const un=(yt=Ge.find(ln=>ln.name==Yt))==null?void 0:yt.swimg;return ve.createElement("img",{className:re.sign,src:un,style:{left:"-4px"}})}const Dt=(wn=Ge.find(un=>un.name==Yt))==null?void 0:wn.ptimg;return ve.createElement("img",{className:re.sign,src:Dt,style:{left:`${48+52*(jn-1)+2*jn}px`}})}),ve.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(lt==null?void 0:lt.excellent)&&ve.createElement("div",{className:re.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ve.createElement("div",{className:re.name},ve.createElement(De.Z,{title:qe&&(lt!=null&&lt.excellent_alias_name)?ve.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${$t}`,ve.createElement("br",null),ve.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${lt==null?void 0:lt.excellent_alias_name}`)):$t},ve.createElement("span",{className:re.e},qe&&(lt==null?void 0:lt.excellent_alias_name)||$t))),Ue&&ke&&((et=lt==null?void 0:lt.progress)==null?void 0:et.all_score)!=0&&ve.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ve.createElement(Ze.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((ft=lt==null?void 0:lt.progress)==null?void 0:ft.my_score)/((Tt=lt==null?void 0:lt.progress)==null?void 0:Tt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Kt=lt==null?void 0:lt.progress)==null?void 0:Kt.my_score,"/",(fn=lt==null?void 0:lt.progress)==null?void 0:fn.all_score),(!Ue||!ke)&&ve.createElement(De.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Fn}`},ve.createElement("div",{className:re.unit},ve.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Fn)),(!Ue||!ke)&&ve.createElement("div",{className:re.tags},ve.createElement("div",null,ve.createElement(De.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ve.createElement("span",null,lt.stages_count))),ve.createElement(De.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ve.createElement("span",null,lt.members_count)))))))})),!Xe.length&&ve.createElement(Fe.Z,null)))}},71360:function(xn,dt,fe){"use strict";fe.d(dt,{jL:function(){return Ee},w9:function(){return Lt},QD:function(){return jt},cQ:function(){return Kt.Z},op:function(){return Et},O5:function(){return Yn},_b:function(){return Mn},t7:function(){return at},Gi:function(){return jn},YG:function(){return Jt},qp:function(){return ut},vr:function(){return Rn},qE:function(){return Mt},Je:function(){return be},wb:function(){return Tt},cq:function(){return ge},tp:function(){return Xe}});var re=fe(59301),Me={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7Vm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NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ee=({dataSource:pn=[],img:Wn,imgWidth:cn=346,title:Sn,sunTitle:fr,bannerExtraContent:ir})=>re.createElement("div",{className:Me.banner},re.createElement("div",{className:Me.content},re.createElement("aside",null,re.createElement("p",null,re.createElement("b",null,Sn),re.createElement("span",null,fr)),pn.length>0&&re.createElement("div",{className:Me.btns},pn.map((lr,xr)=>re.createElement("div",{key:xr,onClick:lr.click},lr.name,lr.sign?re.createElement("img",{src:De,width:39}):null))),ir),Wn&&re.createElement("img",{style:{marginTop:33,marginRight:38},src:Wn,width:cn}))),de={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},ze=fe(92310),Fe=fe.n(ze),Ie=fe(89392),ut=({dataSource:pn=[],value:Wn,onChange:cn,onTitleChange:Sn,className:fr,title:ir,titleWidth:lr=41,style:xr={},fontColor:Wr="#6A7283",showCount:Dr})=>{const[Fr,Rr]=(0,re.useState)(0),[Xn,yn]=(0,re.useState)(!1),rt=(0,re.useRef)(null),Sr=(0,re.useRef)(null);return(0,re.useEffect)(()=>{var Kr;pn.length!==0&&(((Kr=rt==null?void 0:rt.current)==null?void 0:Kr.clientHeight)>97?Rr(1):Rr(0)),pn.length===0&&Rr(0),yn(!1)},[pn]),re.createElement("div",{className:Fe()(de.row,fr),style:xr},re.createElement("div",{onClick:(0,Ie.throttle)(()=>Sn==null?void 0:Sn(),2e3),style:{width:lr,marginTop:Xn?12:4},className:`${de.title} ${Sn?"current":""}`},ir),re.createElement("div",{className:Xn?`${de.tagsWrap} ${de.tagsBorderWrap}`:de.tagsWrap},re.createElement("div",{className:de.bar,ref:Sr,style:Fr>0?{height:Fr===1?97:"auto",overflow:Fr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},re.createElement("div",{className:de.tag,ref:rt},pn==null?void 0:pn.map(Kr=>re.createElement("span",{onClick:()=>cn(Kr.id),key:Kr.id,style:{color:Wr},className:Wn===Kr.id?de.active:""},re.createElement("span",{title:Kr.name,className:de.name},Kr.name),!!Dr&&re.createElement("span",{className:de.num},Kr.count))))),!!Fr&&re.createElement(re.Fragment,null,Fr===1?re.createElement("div",{onClick:()=>{var Kr;Rr(2),((Kr=rt==null?void 0:rt.current)==null?void 0:Kr.clientHeight)>245?yn(!0):yn(!1)},className:de.action},"\u5C55\u5F00",re.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):re.createElement("div",{onClick:()=>{Sr.current.scrollTop=0,Rr(1),yn(!1)},className:de.action},"\u6536\u8D77",re.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},we={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Xe=({dataSource:pn=[],value:Wn,onChange:cn,className:Sn,style:fr={}})=>re.createElement("div",{style:fr,className:Fe()(we.tabs,Sn)},pn.map(ir=>re.createElement("span",{onClick:()=>cn(ir.id),className:Wn===ir.id?we.active:"",key:ir.id},ir.name))),Je={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},He=fe(37568),at=({dataSource:pn=[],value:Wn="",onChange:cn,onInputChange:Sn=()=>{},className:fr,style:ir={},placeholder:lr,allowClear:xr=!1})=>{var Wr;const[Dr,Fr]=(0,re.useState)(""),[Rr,Xn]=(0,re.useState)("");(0,re.useEffect)(()=>{var Sr;let Kr=Wn;(Sr=JSON.stringify(Wn))!=null&&Sr.includes("{")&&(Fr(Wn.id),Kr=Wn.value||"");try{Xn(decodeURIComponent(Kr||""))}catch(_t){Xn(decodeURIComponent(Kr||""))}},[Wn]);const yn=()=>{cn(encodeURIComponent(Rr),Dr||null)},rt=Sr=>{Sr!==Dr&&(Fr(Sr),cn(encodeURIComponent(Rr),Sr))};return re.createElement("div",{className:Fe()(Je.input,fr),style:ir},!!pn.length&&re.createElement("div",{className:Je.dropdown},re.createElement("div",{className:Je.text},(Wr=pn.find(Sr=>Sr.id===Dr))==null?void 0:Wr.name,re.createElement("i",{className:"iconfont icon-zhankai4"}),re.createElement("b",{className:Je.b1}),re.createElement("b",{className:Je.b2})),re.createElement("div",{className:Je.menu},pn.map((Sr,Kr)=>re.createElement("div",{key:Kr,onClick:()=>rt(Sr.id)},Sr.name)))),re.createElement(He.default,{onPressEnter:yn,value:Rr,onChange:Sr=>{Xn(Sr.target.value),Sn(encodeURIComponent(Sr.target.value),Dr||null)},placeholder:lr,variant:"borderless",allowClear:xr,onClear:()=>cn("",Dr||null)}),re.createElement("i",{onClick:yn,className:"iconfont icon-sousuo9 font14 current"}))},Oe={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},be=({value:pn,onChange:Wn,className:cn,total:Sn,pageSize:fr,style:ir={}})=>{const lr=pn<2,xr=pn>=Math.ceil(Sn/fr);return Sn<=fr?re.createElement(re.Fragment,null):re.createElement("div",{className:Fe()(Oe.quickPager,cn),style:ir},re.createElement("div",{onClick:()=>{lr||Wn(pn-1,"prev")},className:lr?Oe.disabled:""},"\u4E0A\u4E00\u9875"),re.createElement("div",{onClick:()=>{xr||Wn(pn+1,"next")},className:xr?Oe.disabled:""},"\u4E0B\u4E00\u9875"))},Be={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ue=fe(29787),ke=fe(25399),qe=fe(58018),Pe=fe(90524),Ge=fe(49661),lt=fe(96908),je=fe(57177),ht=fe(81378),et=fe(57884),Tt=({className:pn,dataSource:Wn=[],col:cn=4,right:Sn,bottom:fr=23,precision:ir=0,wrapWidth:lr=1200,trackEventItems:xr,loading:Wr})=>{const Dr=Math.floor((lr-(cn-1)*Sn)/cn);return re.createElement(Ue.Z,{spinning:Wr},re.createElement("div",{className:Fe()(Be.list,pn)},!!Wn.length&&Wn.map((Fr,Rr)=>{const{name:Xn,id:yn,identifier:rt,power:Sr,cover_image_id:Kr,pic:_t}=Fr;return re.createElement("div",{className:Be.wrap,key:yn,style:{width:Dr,marginRight:(1+Rr)%cn===0?0:Sn+ir,marginBottom:fr}},re.createElement("a",{target:"_blank",href:`/shixuns/${rt}/challenges`,className:Be.li,onClick:St=>{St.preventDefault(),xr&&(0,Ge.L9)([xr]),Sr&&(0,Ge.xg)(`/shixuns/${rt}/challenges`)}},re.createElement("div",{className:Be.img},re.createElement("img",{className:Be.cover,src:`${_t}`}),Fr.is_jupyter&&re.createElement("img",{className:Be.sign,src:lt}),Fr.is_jupyter_lab&&re.createElement("img",{className:Be.sign,src:je}),Fr.is_unity_3d&&re.createElement("img",{className:Be.sign,src:ht})),re.createElement("div",{className:Be.name},re.createElement(ke.Z,{title:Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},re.createElement("span",{className:Be.e},Xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),re.createElement("div",{className:Be.tags},re.createElement(ke.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),re.createElement("span",null,Fr.challenges_count))),!!Fr.myshixuns_count&&re.createElement(ke.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),re.createElement("span",null,Fr.myshixuns_count))),re.createElement(ke.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},re.createElement("span",null,re.createElement("span",null,Fr.level))),re.createElement("div",{className:Be.rate},re.createElement(qe.Z,{allowHalf:!0,disabled:!0,defaultValue:Fr.score_info}),re.createElement("span",null,"\xA0",Fr.score_info?`${Fr.score_info}\u5206`:"5\u5206")))),!Sr&&re.createElement("div",{className:Be.lockWrap},re.createElement("img",{src:`${Pe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Wn.length&&re.createElement(et.Z,null)))},Kt=fe(929),fn={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},$t="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUACh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Iy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Re=fe(59301),Lt=({className:pn,dataSource:Wn=[],col:cn=4,right:Sn,bottom:fr=23,precision:ir=0,wrapWidth:lr=1200,trackEventItems:xr,loading:Wr,handleVery:Dr=()=>!0})=>{const Fr=Math.floor((lr-(cn-1)*Sn)/cn);return Re.createElement(Ue.Z,{spinning:Wr},Re.createElement("div",{className:Fe()(fn.list,pn)},!!Wn.length&&Wn.map((Rr,Xn)=>{const{subject_identifier:yn,id:rt,identifier:Sr,power:Kr}=Rr,_t=Rr.is_public!=0&&Rr.is_public;return Re.createElement("div",{className:fn.wrap,key:rt,style:{width:Fr,marginRight:(1+Xn)%cn===0?0:Sn+ir,marginBottom:fr}},Re.createElement("a",{className:fn.li,onClick:St=>{St.preventDefault(),Dr(Rr==null?void 0:Rr.first_category_url)&&(xr&&(0,Ge.L9)([xr]),(0,Ge.xg)(Rr.first_category_url))}},Re.createElement("div",{className:fn.top},Re.createElement(ke.Z,{title:Rr.name},Re.createElement("div",{className:fn.name},Rr.name)),Re.createElement("img",{className:fn.img,src:Pe.Z.IMG_SERVER+"/images/"+Rr.avatar_url}),Re.createElement("div",{className:fn.text,title:Rr.creator},Rr.creator),yn&&Re.createElement("div",{className:fn.btns},Re.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Re.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),_t&&Re.createElement("div",{className:fn.sign},"\u516C\u5F00")),Re.createElement("div",{className:fn.bottom},Rr.visits>0&&Re.createElement(ke.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-liulanyan"}),Re.createElement("span",null,Rr.visits))),Rr.course_members_count>0&&Re.createElement(ke.Z,{title:"\u6210\u5458",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-chengyuan"}),Rr.course_members_count)),Rr.tasks_count>0&&Re.createElement(ke.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-zuoye"}),Rr.tasks_count)),Rr.is_end?Re.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Re.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Rr.is_accessible&&Re.createElement("div",{className:fn.lockWrap},Re.createElement("img",{src:`${Pe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Re.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Wn.length&&Re.createElement(et.Z,null)))},Fn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},hn=fe(76560),Jt=({dataSource:pn=[],value:Wn,onChange:cn,className:Sn,style:fr={},tabBarExtraContent:ir})=>re.createElement("div",{className:Fe()(Fn.tabs,Sn),style:fr},re.createElement("div",{className:Fn.tabsWrap},pn.map((lr,xr)=>!(lr!=null&&lr.hide)&&re.createElement("aside",{className:Fn.tab,onClick:()=>{cn(lr.id),lr.link&&hn.history.push(lr.link)},key:xr},re.createElement("div",{className:Wn===lr.id?Fn.active:""},lr.name),(lr==null?void 0:lr.resetCount)==null&&(lr==null?void 0:lr.total)!==void 0&&re.createElement("span",null,"\uFF08",lr==null?void 0:lr.total,"\uFF09"),(lr==null?void 0:lr.resetCount)!==void 0&&(lr==null?void 0:lr.total)!==void 0&&re.createElement(ke.Z,{title:(lr==null?void 0:lr.tip)!=null?lr==null?void 0:lr.tip:""},re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",re.createElement("span",{style:{color:"#000"}},lr==null?void 0:lr.resetCount),"/",re.createElement("span",null,lr==null?void 0:lr.total),"\uFF09"))))),re.createElement("div",{className:Fn.tabBar},ir)),jn=({className:pn,style:Wn={},children:cn})=>re.createElement("div",{className:Fe()(pn),style:Wn},cn),yt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},wn=fe(75727),Dt=fe(93041);const un=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ge=({sortValue:pn,dropValue:Wn,className:cn,onSort:Sn,onDrop:fr,dataSource:ir=un})=>{var lr;return re.createElement("div",{className:Fe()(yt.orderWrap,cn)},re.createElement(wn.Z,{dropdownRender:()=>re.createElement(Dt.default,null,ir.map((xr,Wr)=>re.createElement(Dt.default.Item,{key:Wr,onClick:()=>fr(xr.id)},xr.name)))},re.createElement("span",{className:yt.orderTextWrap},(lr=ir.find(xr=>Wn===xr.id))==null?void 0:lr.name)),re.createElement("span",{className:yt.orderIconWrap},re.createElement("span",{className:yt.orderAsc},re.createElement("i",{className:pn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${yt.cursorPointer} ${yt.active}`:`iconfont icon-sanjiaoxing-up font12 ${yt.cursorPointer}`,onClick:()=>Sn(pn==="asc"?"desc":"asc")})),re.createElement("span",{className:yt.orderDesc},re.createElement("i",{className:pn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${yt.cursorPointer} ${yt.active}`:`iconfont icon-sanjiaoxing-down font12 ${yt.cursorPointer}`,onClick:()=>Sn(pn==="asc"?"desc":"asc")}))))},ue={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ee=fe(99571),b=Object.defineProperty,ae=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,Ye=(pn,Wn,cn)=>Wn in pn?b(pn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):pn[Wn]=cn,pt=(pn,Wn)=>{for(var cn in Wn||(Wn={}))ie.call(Wn,cn)&&Ye(pn,cn,Wn[cn]);if(ae)for(var cn of ae(Wn))he.call(Wn,cn)&&Ye(pn,cn,Wn[cn]);return pn},zt=(pn,Wn)=>{var cn={};for(var Sn in pn)ie.call(pn,Sn)&&Wn.indexOf(Sn)<0&&(cn[Sn]=pn[Sn]);if(pn!=null&&ae)for(var Sn of ae(pn))Wn.indexOf(Sn)<0&&he.call(pn,Sn)&&(cn[Sn]=pn[Sn]);return cn},ct=(pn,Wn,cn)=>new Promise((Sn,fr)=>{var ir=Wr=>{try{xr(cn.next(Wr))}catch(Dr){fr(Dr)}},lr=Wr=>{try{xr(cn.throw(Wr))}catch(Dr){fr(Dr)}},xr=Wr=>Wr.done?Sn(Wr.value):Promise.resolve(Wr.value).then(ir,lr);xr((cn=cn.apply(pn,Wn)).next())}),Et=pn=>{var Wn=pn,{className:cn,style:Sn,children:fr,loading:ir=!1,openLoading:lr,onClick:xr=()=>{},size:Wr="middle",shape:Dr="round"}=Wn,Fr=zt(Wn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Rr,Xn]=(0,re.useState)(!1);return re.createElement(ee.ZP,pt({onClick:(0,Ie.throttle)(yn=>ct(void 0,null,function*(){lr&&Xn(!0);try{yield xr(yn)}catch(rt){console.log("error",rt)}lr&&Xn(!1)}),2e3,{leading:!0,trailing:!1}),className:Fe()(ue.btn,ue[`${Wr}-${Dr}`],cn),style:Sn,size:Wr,shape:Dr,loading:Rr||ir},Fr),fr)},en={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Mt=({className:pn,style:Wn,children:cn=null,onClick:Sn,title:fr})=>re.createElement("div",{className:Fe()(en.head,pn),style:Wn},re.createElement("span",{className:"primary-hover",onClick:Sn},re.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),re.createElement("b",{title:fr},fr),re.createElement("div",{className:en.node},cn)),tt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},jt=({confirmShow:pn=!0,confirmTitle:Wn,confirmClick:cn,cancelShow:Sn=!0,cancelTitle:fr,cancelClick:ir,className:lr,style:xr,confirmLoading:Wr=!1})=>re.createElement("div",{className:Fe()(tt.btns,lr),style:xr},pn&&re.createElement(ee.ZP,{loading:Wr,onClick:cn,type:"primary",className:tt.confirm},Wn),Sn&&re.createElement(ee.ZP,{onClick:ir,className:tt.cancel},fr)),qt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Rn=({className:pn,style:Wn={},LeftContent:cn,children:Sn,RightContent:fr})=>re.createElement("div",{className:Fe()(qt.fixedBottom,pn),style:Wn},re.createElement("div",{className:qt.wrap},re.createElement("div",{className:qt.left},cn),re.createElement("div",{className:qt.center},Sn),re.createElement("div",{className:qt.right},fr))),Wt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Mn=({className:pn,style:Wn={},dataSource:cn=[]})=>re.createElement("div",{className:Fe()(Wt.crumbs,pn),style:Wn},cn.map((Sn,fr)=>fr<cn.length-1?re.createElement(re.Fragment,{key:fr},Sn.path||Sn.onClick?re.createElement("span",{className:Wt.hover,onClick:Sn!=null&&Sn.onClick?Sn.onClick:()=>hn.history.push(Sn.path)},Sn.name):re.createElement("span",null,Sn.name),re.createElement("span",null,"\xA0",">","\xA0")):re.createElement("span",{key:fr,style:{color:"#5F6368"}},Sn.name))),sr=fe(11938),vn=Object.defineProperty,cr=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,mr=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,Pr=(pn,Wn,cn)=>Wn in pn?vn(pn,Wn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):pn[Wn]=cn,Er=(pn,Wn)=>{for(var cn in Wn||(Wn={}))$n.call(Wn,cn)&&Pr(pn,cn,Wn[cn]);if(mr)for(var cn of mr(Wn))Xr.call(Wn,cn)&&Pr(pn,cn,Wn[cn]);return pn},Ar=(pn,Wn)=>cr(pn,ar(Wn)),Qr=(pn,Wn)=>{var cn={};for(var Sn in pn)$n.call(pn,Sn)&&Wn.indexOf(Sn)<0&&(cn[Sn]=pn[Sn]);if(pn!=null&&mr)for(var Sn of mr(pn))Wn.indexOf(Sn)<0&&Xr.call(pn,Sn)&&(cn[Sn]=pn[Sn]);return cn};const{Countdown:Vn}=sr.default;var Yn=pn=>{var Wn=pn,{onChange:cn}=Wn,Sn=Qr(Wn,["onChange"]);const[fr,ir]=(0,re.useState)(null);(0,re.useEffect)(()=>{typeof fr=="number"&&fr>=0&&cn(fr)},[fr]);const lr=xr=>{const Wr=Math.floor(xr/1e3);ir(Wr)};return re.createElement(Vn,Ar(Er({},Sn),{onChange:lr}))}},17904:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Me}});var re=fe(59301);function Me(De,Ze){const Ee=(0,re.useRef)();(0,re.useEffect)(()=>{Ee.current=De}),(0,re.useEffect)(()=>{function de(){Ee.current()}if(Ze!==null){let ze=setInterval(de,Ze);return()=>clearInterval(ze)}},[Ze])}},14739:function(xn,dt,fe){"use strict";fe.r(dt),fe.d(dt,{default:function(){return It}});var re=fe(59301),Me=fe(57309),De=fe.n(Me),Ze=fe(86129),Ee=fe.n(Ze),de=fe(82093),ze=fe(76560),Fe=fe(62957),Ie=fe(6767),ve=fe(458),ut=fe(91882),we=fe(77019),ot=fe(5269),Xe=fe(99571),Je=fe(25399),He=fe(37285),Te=fe(37568),at=fe(54172),Oe=fe(82326),We=fe(13747),be=fe(27812),Be=fe(95869),Ue=fe(87169),ke=fe(26227),qe=fe(90524),Pe=fe(34055),Ge=fe(49661),lt=fe(42441),je={flex_box_center:"flex_box_center___KJUhi",flex_space_between:"flex_space_between____N4uH",flex_box_vertical_center:"flex_box_vertical_center___yOdsz",flex_box_center_end:"flex_box_center_end___seJB9",flex_box_column:"flex_box_column___ihHC5",title:"title___JSmnB",score:"score___ERcuI",export:"export___pgR1H",title1_right:"title1_right___MdWJo",userPic:"userPic___UeG3e",userInfo:"userInfo___TNu6l",listItem:"listItem___wdbM_",rightInfo:"rightInfo___Swqk5",shixunTitle:"shixunTitle___L2Tc4",shixunWrp:"shixunWrp___ZoaTc",footerBar:"footerBar___QW5rq",footerBarStatic:"footerBarStatic___CRq8b",exitComment:"exitComment___u4Rqt",nextComment:"nextComment___lvaID",modal:"modal___g3B3L",footer:"footer___eJCnt",pingjia:"pingjia___X_ooM",pj_close:"pj_close___PHP4h",pj_save:"pj_save___COfQy"},ht={normal:{opacity:.8,shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",color:"#2e65ad"}};const et=({shixunHomeworks:an,data:mt,globalSetting:dn,loading:Tn,dispatch:Br})=>{var _r;const{shixunWorkReport:Or}=an;let yr=((_r=mt==null?void 0:mt.efficiency_list)==null?void 0:_r.length)-parseInt(mt==null?void 0:mt.myself_eff[0]);const kr=()=>({title:{text:"\u5B66\u4E60\u6548\u7387",subtext:"\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{left:"3%",right:"9%",bottom:"3%",containLabel:!0},tooltip:{showDelay:0,formatter:function(jr){return jr.name===Or.username?"\u59D3\u540D\uFF1A"+Or.username+"<br/>\u5B66\u53F7\uFF1A "+Or.user_id+"<br/>\u6548\u7387\uFF1A"+(mt==null?void 0:mt.myself_eff[1]):jr.name+":"+jr.value+" "},axisPointer:{show:!0,type:"cross",lineStyle:{type:"dashed",width:1}}},xAxis:[{type:"value",name:"\u5B66\u751F\u4F4D\u7F6E",nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:""},axisTick:{show:!1},splitLine:{show:!1}}],yAxis:[{type:"value",name:" ",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},scale:!0,axisLabel:{formatter:"{value}"},splitLine:{show:!1}}],series:[{name:"",type:"scatter",data:mt==null?void 0:mt.efficiency_list,itemStyle:{normal:{color:"#2e65ad"}},markArea:{silent:!0,itemStyle:{normal:{color:"transparent",borderWidth:1,borderType:"dashed"}},data:[[{name:"\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},markPoint:{data:[{name:Or.username,xAxis:yr,yAxis:mt==null?void 0:mt.myself_eff[1],value:mt==null?void 0:mt.myself_eff[1]}],itemStyle:{normal:{color:"#c23531"}}},markLine:{lineStyle:{normal:{type:"solid",color:"#ff6800"}},data:[{type:"average",name:"\u4E2D\u4F4D\u503C"}]}}]}),ii=()=>({title:{text:"\u80FD\u529B\u503C",subtext:"\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"},backgroundColor:"#fff",color:["#dd4444","#fec42c","#80F1BE"],grid:{x:"10%",x2:150,y:"18%",y2:"10%"},tooltip:{padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(jr){var hi=jr.value;if(jr.name===Or.username)return"\u59D3\u540D\uFF1A"+Or.username+"<br/>\u5B66\u53F7\uFF1A "+Or.user_id+"<br/>\u5F97\u5206\uFF1A"+(mt==null?void 0:mt.myself_object[1])}},xAxis:{type:"value",name:"log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",nameGap:16,nameTextStyle:{color:"#000",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#000"}}},yAxis:{type:"value",name:" ",nameLocation:"end",nameGap:20,nameTextStyle:{color:"#000",fontSize:12},axisLine:{lineStyle:{color:"#000"}},splitLine:{show:!1}},series:[{name:"\u80FD\u529B",type:"scatter",itemStyle:ht,data:mt==null?void 0:mt.consume_list,symbolSize:function(jr){return Math.round(jr[2])},markPoint:{data:[{name:Or.username,xAxis:mt==null?void 0:mt.myself_object[0],yAxis:mt==null?void 0:mt.myself_object[1],value:mt==null?void 0:mt.myself_object[1]}],itemStyle:{normal:{color:"#c23531"}}}}]});return re.createElement(re.Fragment,null,re.createElement("aside",{className:"ml60 pr30"},re.createElement(we.Z,null,re.createElement(ot.Z,{flex:"800px"},re.createElement(lt.Z,{style:{width:750,height:580},option:kr()})),re.createElement(ot.Z,{flex:"1"},re.createElement("aside",{className:je.rightInfo},re.createElement("ul",null,re.createElement("li",null,re.createElement("span",null,"\u59D3\u540D")," ",re.createElement("span",{className:"ml30"},Or.username)),re.createElement("li",null,re.createElement("span",null,"\u5B66\u53F7")," ",re.createElement("span",{className:"ml30"},Or.student_id||"--")),re.createElement("li",null,re.createElement("span",null,"\u5B66\u4E60\u6548\u7387")," ",re.createElement("span",{className:"ml30 c-orange"},mt==null?void 0:mt.myself_eff[1])),re.createElement("li",null,re.createElement("span",null,"\u5F53\u524D\u6392\u540D")," ",re.createElement("span",{className:"ml30 c-orange"},mt==null?void 0:mt.myself_eff[0]))),re.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387",re.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C",re.createElement("br",null),"\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8",re.createElement("br",null),"\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))),re.createElement("aside",{className:"ml60 pr30"},re.createElement(we.Z,null,re.createElement(ot.Z,{flex:"800px"},re.createElement(lt.Z,{style:{width:750,height:580},option:ii()})),re.createElement(ot.Z,{flex:"1"},re.createElement("aside",{className:je.rightInfo},re.createElement("ul",null,re.createElement("li",null,re.createElement("span",null,"\u59D3\u540D")," ",re.createElement("span",{className:"ml30"},Or.username)),re.createElement("li",null,re.createElement("span",null,"\u5B66\u53F7")," ",re.createElement("span",{className:"ml30"},Or.student_id||"--")),re.createElement("li",null,re.createElement("span",null,"\u80FD\u529B")," ",re.createElement("span",{className:"ml30 c-orange"},mt==null?void 0:mt.myself_object[1]))),re.createElement("p",null,"1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C",re.createElement("br",null),"\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C",re.createElement("br",null),"\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11",re.createElement("br",null)))))))};var ft=(0,ze.connect)(({shixunHomeworks:an,loading:mt,globalSetting:dn})=>({shixunHomeworks:an,globalSetting:dn,loading:mt.effects}))(et),Tt=fe(51124),Kt=fe(71051),fn=({defaultValue:an,onBlur:mt,max:dn,className:Tn="game-score"})=>{const[Br,_r]=(0,re.useState)(an);(0,re.useEffect)(()=>{_r(an)},[an]);function Or(kr){_r(kr)}function yr(){Br!==an&&mt(Br>dn?dn:Br)}return re.createElement(Kt.Z,{max:dn,min:0,className:Tn,value:Br,onChange:Or,onBlur:yr})},$t=fe(2978),Re={md:"md___TEmcT"},xe=fe(59301),Lt=Object.defineProperty,Fn=Object.defineProperties,hn=Object.getOwnPropertyDescriptors,vt=Object.getOwnPropertySymbols,Jt=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,jn=(an,mt,dn)=>mt in an?Lt(an,mt,{enumerable:!0,configurable:!0,writable:!0,value:dn}):an[mt]=dn,yt=(an,mt)=>{for(var dn in mt||(mt={}))Jt.call(mt,dn)&&jn(an,dn,mt[dn]);if(vt)for(var dn of vt(mt))Yt.call(mt,dn)&&jn(an,dn,mt[dn]);return an},wn=(an,mt)=>Fn(an,hn(mt));const Dt=Oe.default.Option,un={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,enableSplitViewResizing:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1};var ln=(an=>(an[an.SET_PATH=0]="SET_PATH",an[an.GET_PASSED_CONTENT=1]="GET_PASSED_CONTENT",an))(ln||{});function ge(an,mt){switch(mt.type){case 0:return wn(yt({},an),{selectedPath:mt.payload});case 1:return wn(yt({},an),{passedContent:mt.payload});default:throw new Error}}var ue=({path:an,game_id:mt,onPathChange:dn,autoHeight:Tn,diff_code_count:Br,data:_r,game_codes_cn:Or})=>{var yr,kr,ii,jr;const hi=an.split("\uFF1B").filter(gt=>!!gt),[gi,oi]=(0,re.useReducer)(ge,{selectedPath:hi[0],passedContent:{language:"python",content:""}}),{selectedPath:vi,passedContent:Ne}=gi;function _e(gt){oi({type:0,payload:gt})}const it={\u6700\u540E\u901A\u5173\u4EE3\u7801:"\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",\u6700\u65B0\u4EE3\u7801:"\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801:"\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"};return xe.createElement(xe.Fragment,null,xe.createElement("h2",null," ",xe.createElement("span",null,Or,xe.createElement(Je.Z,{title:xe.createElement("div",null,xe.createElement("div",null,"\u4EE3\u7801\u5C55\u793A\u89C4\u5219\uFF1A"),xe.createElement("div",null,"1.\u5C55\u793A\u5B66\u5458\u5728\u4F5C\u4E1A\u622A\u6B62\u524D\u5F97\u5206\u6700\u9AD8\u7684\u4EE3\u7801\u7248\u672C\u3002"),xe.createElement("div",null," 2.\u82E5\u6709\u591A\u4E2A\u6700\u9AD8\u5206\u7248\u672C\uFF0C\u5C55\u793A\u63D0\u4EA4\u65F6\u95F4\u6700\u665A\u7684\u7248\u672C\u3002"),xe.createElement("div",null," 3.\u4F5C\u4E1A\u622A\u6B62\u540E\u63D0\u4EA4\u7684\u4EE3\u7801\u5C06\u4E0D\u4E88\u5C55\u793A\u3002"))},xe.createElement("i",{style:{marginLeft:10,color:"#3061D0",fontSize:16},className:"iconfont icon-tishixiaowenhao"}))),Br&&xe.createElement("span",{style:{marginLeft:"50px"}},"\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ",Br),xe.createElement("span",null,xe.createElement(Oe.default,{style:{width:200},value:vi,onChange:_e}," ",hi.map(gt=>xe.createElement(Dt,{key:gt,value:gt},gt))," "))," "),(vi==null?void 0:vi.split(".")[1])==="md"&&xe.createElement($t.Z,{height:300,autoHeight:Tn,defaultValue:((kr=(yr=_r==null?void 0:_r.filter(gt=>gt.path===vi))==null?void 0:yr[0])==null?void 0:kr.content)||"",className:Re.md}),(vi==null?void 0:vi.split(".")[1])!=="md"&&xe.createElement(Tt.ZP,{height:300,language:Ne.language,value:((jr=(ii=_r==null?void 0:_r.filter(gt=>gt.path===vi))==null?void 0:ii[0])==null?void 0:jr.content)||"",autoHeight:Tn,theme:"default",isCopy:!0,options:un}))},ee=fe(64948),b=fe(96249),ae=fe.n(b),ie=Object.defineProperty,he=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,zt=(an,mt,dn)=>mt in an?ie(an,mt,{enumerable:!0,configurable:!0,writable:!0,value:dn}):an[mt]=dn,ct=(an,mt)=>{for(var dn in mt||(mt={}))Ye.call(mt,dn)&&zt(an,dn,mt[dn]);if(he)for(var dn of he(mt))pt.call(mt,dn)&&zt(an,dn,mt[dn]);return an};const bt=an=>React.createElement("svg",ct({className:"scai_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},an),React.createElement("path",{d:"M512 327.68c245.76 0 445.44 153.6 445.44 348.16C957.44 870.4 757.76 1024 512 1024c-245.76-5.12-445.44-153.6-445.44-348.16 0-194.56 199.68-348.16 445.44-348.16z",fill:"#DBDCFF"}),React.createElement("path",{d:"M645.12 947.2c117.76-10.24 158.72-143.36 163.84-266.24 0-128-128-174.08-291.84-174.08-163.84 0-291.84 46.08-291.84 174.08 0 112.64 35.84 240.64 143.36 261.12 30.72 5.12 261.12 10.24 276.48 5.12z",fill:"#111ACC"}),React.createElement("path",{d:"M404.48 686.08c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c-5.12-10.24 10.24-25.6 25.6-25.6zm220.16 0c15.36 0 25.6 10.24 25.6 25.6v61.44c0 15.36-10.24 25.6-25.6 25.6-15.36 0-25.6-10.24-25.6-25.6v-61.44c0-10.24 10.24-25.6 25.6-25.6z",fill:"#FFF"}),React.createElement("path",{d:"M916.48 527.36c56.32 0 107.52 71.68 107.52 153.6 0 87.04-61.44 153.6-117.76 153.6 0 0 51.2-76.8 51.2-158.72s-40.96-148.48-40.96-148.48zm-808.96 5.12-5.12 5.12c-10.24 20.48-35.84 76.8-35.84 138.24 0 76.8 35.84 138.24 51.2 158.72C61.44 834.56 0 768 0 680.96c0-81.92 51.2-148.48 107.52-148.48z",fill:"#8187FF"}),React.createElement("path",{d:"M512 0c20.48 0 30.72 15.36 30.72 30.72v220.16c0 20.48-15.36 30.72-30.72 30.72s-30.72-10.24-30.72-30.72V30.72C481.28 15.36 496.64 0 512 0z",fill:"#701CDC"}),React.createElement("path",{d:"M384 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-35.84-15.36-35.84-30.72V76.8c0-20.48 15.36-30.72 35.84-30.72z",fill:"#371CDC"}),React.createElement("path",{d:"M645.12 46.08c20.48 0 30.72 15.36 30.72 30.72v133.12c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72V76.8c0-20.48 15.36-30.72 30.72-30.72z",fill:"#AB2FF0"}),React.createElement("path",{d:"M250.88 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-35.84-10.24-35.84-30.72v-40.96c0-20.48 15.36-35.84 35.84-35.84z",fill:"#6D57F2"}),React.createElement("path",{d:"M778.24 87.04c20.48 0 30.72 15.36 30.72 30.72v46.08c0 20.48-15.36 30.72-30.72 30.72s-30.72-15.36-30.72-30.72v-40.96c0-20.48 15.36-35.84 30.72-35.84z",fill:"#C86FFA"}));var Et="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI3LjY4YzI0NS43NiAwIDQ0NS40NCAxNTMuNiA0NDUuNDQgMzQ4LjE2Qzk1Ny40NCA4NzAuNCA3NTcuNzYgMTAyNCA1MTIgMTAyNGMtMjQ1Ljc2LTUuMTItNDQ1LjQ0LTE1My42LTQ0NS40NC0zNDguMTYgMC0xOTQuNTYgMTk5LjY4LTM0OC4xNiA0NDUuNDQtMzQ4LjE2eiIgZmlsbD0iI0RCRENGRiIvPjxwYXRoIGQ9Ik02NDUuMTIgOTQ3LjJjMTE3Ljc2LTEwLjI0IDE1OC43Mi0xNDMuMzYgMTYzLjg0LTI2Ni4yNCAwLTEyOC0xMjgtMTc0LjA4LTI5MS44NC0xNzQuMDgtMTYzLjg0IDAtMjkxLjg0IDQ2LjA4LTI5MS44NCAxNzQuMDggMCAxMTIuNjQgMzUuODQgMjQwLjY0IDE0My4zNiAyNjEuMTIgMzAuNzIgNS4xMiAyNjEuMTIgMTAuMjQgMjc2LjQ4IDUuMTJ6IiBmaWxsPSIjMTExQUNDIi8+PHBhdGggZD0iTTQwNC40OCA2ODYuMDhjMTUuMzYgMCAyNS42IDEwLjI0IDI1LjYgMjUuNnY2MS40NGMwIDE1LjM2LTEwLjI0IDI1LjYtMjUuNiA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cyLTMwLjcyIDMwLjcycy0zNS44NC0xNS4zNi0zNS44NC0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzUuODQtMzAuNzJ6IiBmaWxsPSIjMzcxQ0RDIi8+PHBhdGggZD0iTTY0NS4xMiA0Ni4wOGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjEzMy4xMmMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MlY3Ni44YzAtMjAuNDggMTUuMzYtMzAuNzIgMzAuNzItMzAuNzJ6IiBmaWxsPSIjQUIyRkYwIi8+PHBhdGggZD0iTTI1MC44OCA4Ny4wNGMyMC40OCAwIDMwLjcyIDE1LjM2IDMwLjcyIDMwLjcydjQ2LjA4YzAgMjAuNDgtMTUuMzYgMzAuNzItMzAuNzIgMzAuNzJzLTM1Ljg0LTEwLjI0LTM1Ljg0LTMwLjcydi00MC45NmMwLTIwLjQ4IDE1LjM2LTM1Ljg0IDM1Ljg0LTM1Ljg0eiIgZmlsbD0iIzZENTdGMiIvPjxwYXRoIGQ9Ik03NzguMjQgODcuMDRjMjAuNDggMCAzMC43MiAxNS4zNiAzMC43MiAzMC43MnY0Ni4wOGMwIDIwLjQ4LTE1LjM2IDMwLjcyLTMwLjcyIDMwLjcycy0zMC43Mi0xNS4zNi0zMC43Mi0zMC43MnYtNDAuOTZjMC0yMC40OCAxNS4zNi0zNS44NCAzMC43Mi0zNS44NHoiIGZpbGw9IiNDODZGRkEiLz48L3N2Zz4=",en=fe(6725),Dn=fe(38394),Mt=Object.defineProperty,tt=Object.defineProperties,on=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Rn=(an,mt,dn)=>mt in an?Mt(an,mt,{enumerable:!0,configurable:!0,writable:!0,value:dn}):an[mt]=dn,Wt=(an,mt)=>{for(var dn in mt||(mt={}))qt.call(mt,dn)&&Rn(an,dn,mt[dn]);if(jt)for(var dn of jt(mt))wt.call(mt,dn)&&Rn(an,dn,mt[dn]);return an},Cn=(an,mt)=>tt(an,on(mt)),Mn=(an,mt,dn)=>new Promise((Tn,Br)=>{var _r=kr=>{try{yr(dn.next(kr))}catch(ii){Br(ii)}},Or=kr=>{try{yr(dn.throw(kr))}catch(ii){Br(ii)}},yr=kr=>kr.done?Tn(kr.value):Promise.resolve(kr.value).then(_r,Or);yr((dn=dn.apply(an,mt)).next())});const sr=({shixunHomeworks:an,autoHeight:mt,classroomList:dn,dispatch:Tn})=>{var Br,_r,Or,yr,kr,ii,jr,hi;const{shixunWorkReport:gi}=an,{stage_list:oi,work_id:vi,ai_code_evaluation_promote:Ne}=gi,[_e,it]=(0,re.useState)(!1),[gt,Vt]=(0,re.useState)(!0),[Nt,Qn]=(0,re.useState)({left:0,top:0,bottom:0,right:0}),Nn=(0,re.useRef)(null),[Zn,Gn]=(0,re.useState)(!1),[Kn,zn]=(0,re.useState)(""),st=(0,re.useRef)(null),Rt=(Bt,rn)=>{var Ln;const{clientWidth:dr,clientHeight:tr}=window.document.documentElement,br=(Ln=Nn.current)==null?void 0:Ln.getBoundingClientRect();br&&Qn({left:-br.left+rn.x,right:dr-(br.right-rn.x),top:-br.top+rn.y,bottom:tr-(br.bottom-rn.y)})},kt=(0,ze.useParams)(),Ht=(0,Pe.GJ)(),Zt={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};(0,re.useEffect)(()=>{console.log(kt)},[]);const gn=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"position",width:"100px"},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"output_detail",render:(Bt,rn,Ln)=>re.createElement("div",null,Bt,rn.is_work_end_evaluate&&re.createElement(Ge.vA,{status:5}))},{title:"\u8BC4\u6D4B\u8017\u65F6(S)",dataIndex:"ts_time",width:"130px"},{title:"\u5185\u5B58\u6D88\u8017(MB)",width:"150px",dataIndex:"ts_mem"},{title:"\u8BC4\u6D4B\u65F6\u95F4",width:"170px",dataIndex:"created_at",render:Bt=>De()(Bt).format("YYYY-MM-DD HH:mm")},{title:"\u64CD\u4F5C",width:"80px",dataIndex:"query_index",render:(Bt,rn)=>re.createElement("span",{className:"c-blue current",onClick:()=>Mn(void 0,null,function*(){var Ln,dr;const tr=yield(0,ee.Lk)(rn.game_identifier,{path:(dr=(Ln=rn.path)==null?void 0:Ln.replace(/\/g,";"))==null?void 0:dr.split(";")[0],query_index:rn.query_index,homework_common_id:kt.categoryId});(tr==null?void 0:tr.status)===0&&(Gn(tr),it(!0))})},rn.query_index?"\u67E5\u770B\u4EE3\u7801":"")}],On=[{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"],width:350,render:(Bt,rn)=>{var Ln;return re.createElement("span",null,re.createElement("img",{width:30,height:30,style:{borderRadius:"50%",marginRight:"10px"},src:qe.Z.IMG_SERVER+"/images/"+((Ln=rn==null?void 0:rn.user)==null?void 0:Ln.image_url)}),Bt)}},{title:"\u8C03\u5206\u524D",dataIndex:"old_score",width:270,render:Bt=>re.createElement("span",null,"\u4FEE\u6B63\u524D\u5206\u6570\uFF1A",Bt,"\u5206")},{title:"\u8C03\u5206\u540E",dataIndex:"score",width:270,render:Bt=>re.createElement("span",null,"\u4FEE\u6B63\u540E\u5206\u6570\uFF1A",Bt,"\u5206")},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",align:"right",render:Bt=>re.createElement("span",null,"\u4FEE\u6B63\u65F6\u95F4\uFF1A",Bt?De()(Bt).format("YYYY-MM-DD HH:mm"):"--")}];function $e(Bt,rn){return Mn(this,null,function*(){const{challenge_id:Ln}=oi[Bt],dr=yield Tn({type:"shixunHomeworks/changeScore",payload:{categoryId:kt.homeworkId,type:"report",score:rn,challenge_id:Ln}});yield Tn({type:"shixunHomeworks/getShixunWorkReport",payload:Wt({},kt)}),dr.status===0&&Ie.ZP.success("\u64CD\u4F5C\u6210\u529F")})}function mn(Bt,rn){return(0,de.U2)(`student_works/${vi}/rep_passed_content.json`,{path:rn,game_id:Bt})}const[Ut,tn]=(0,re.useState)((Br=gi==null?void 0:gi.shixun_detail)==null?void 0:Br.map(Bt=>Cn(Wt({},Bt),{commentEdit:!1}))),sn=Bt=>Bt.replace(/\\\(([\s\S]*?)\\\)/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/\\\[([\s\S]*?)\\\]/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/`(\$\$.*?\$\$)`/g,"<mathx data-text='$1'>$$$$$1$$$$</mathx>").replace(/_{2,}/g,"`$&`"),[Gt,nn]=(0,re.useState)(!1),An=(Bt,rn)=>Mn(void 0,null,function*(){var Ln,dr;nn(!0),st.current=new en.Z(qe.Z.API_SERVER+"/api/stream/intelligent_imports/chat_messages.json",{response_mode:"streaming",model:"qwen-max",scene_awareness:!1,thinking_enabled:!1,image_generator:!1,file_ids:[],history:[],prompt:Ne,shixun_id:gi==null?void 0:gi.myshixun_identifier,game_id:Bt==null?void 0:Bt.id,source:"shixun",is_chat:!1,type:9,description:Bt==null?void 0:Bt.challenge_description,query:(dr=(Ln=Bt==null?void 0:Bt.game_codes)==null?void 0:Ln[0])==null?void 0:dr.content,homework_common_id:kt.categoryId}),yield new Promise((tr,br)=>{st.current.on("data",hr=>{const Tr=[...Ut];Tr[rn].comment=sn(hr==null?void 0:hr.full),tn(Tr)}),st.current.on("done",()=>Mn(void 0,null,function*(){var hr;nn(!1);const Tr=[...Ut],Hr=yield(0,de.ZP)(`/api/student_works/${kt==null?void 0:kt.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:Bt==null?void 0:Bt.challenge_id,comment:Tr[rn].comment}});if((Hr==null?void 0:Hr.status)==0){Ie.ZP.success("\u8BC4\u4EF7\u6210\u529F");const fi=[...Ut];fi[rn].comment_updated_at=(hr=Hr==null?void 0:Hr.data)==null?void 0:hr.comment_updated_at,tn(fi)}})),st.current.startStream()})});return re.createElement(re.Fragment,null,Ut==null?void 0:Ut.map(function(Bt,rn){var Ln,dr;return re.createElement("div",{key:rn},re.createElement("aside",{className:"pl30 pr30",key:rn},re.createElement("div",{className:`${je.shixunTitle} mt10`},re.createElement("div",null,re.createElement("span",{className:"fa fa-code "}),re.createElement("strong",{className:"c-black"},"\u7B2C",rn+1,"\u5173 ",re.createElement(ze.Link,{className:"c-black",target:"_blank",to:`/tasks/${kt.coursesId}/${kt.categoryId}/${Bt.game_identifier}`},Bt.subject))),Ht?re.createElement("span",null,"\u8C03\u5206\uFF1A",re.createElement(fn,{className:"game-score",max:oi[rn].game_score_full,defaultValue:oi[rn].game_score,onBlur:tr=>{var br;if((0,Pe.Rm)()&&!((br=dn.AssistantObject.practice)!=null&&br.can_appraise)){Ie.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}$e(rn,tr)}})):null),re.createElement("div",{className:"font16 mt10"},Bt.st===0&&(Bt.path?typeof(Bt==null?void 0:Bt.game_codes_cn)=="string"?re.createElement("aside",{className:je.shixunWrp},re.createElement(ue,{game_codes_cn:Bt==null?void 0:Bt.game_codes_cn,autoHeight:mt,path:Bt.path,game_id:Bt.id,data:Bt.game_codes,diff_code_count:Bt.diff_code_count,onPathChange:mn})):re.createElement("div",{className:"font14",style:{border:"1px solid #d9d9d9",padding:"6px 10px"}}," \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002"):"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"),Bt.st===1&&(Bt.complete_status===0?"\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801":"\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u7406\u8BBA\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")),re.createElement("aside",{className:"mt10 font16"},(Ln=Bt.outputs)!=null&&Ln.length?re.createElement(at.default,{columns:gn,pagination:{hideOnSinglePage:!0},dataSource:Bt.outputs.map(tr=>Wt(Wt({},Bt),tr))}):"\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55"),re.createElement("aside",{className:"mt10"},re.createElement("div",null,re.createElement("div",{style:{display:"flex",alignItems:"center"}},re.createElement("strong",{className:"c-black font14"},"\u4EE3\u7801\u8BC4\u4EF7"),!(Bt!=null&&Bt.commentEdit)&&!(0,Pe.dE)()&&(Bt!=null&&Bt.comment?re.createElement(re.Fragment,null,re.createElement("div",{style:{color:"#666666",fontSize:"12px",marginLeft:"auto"}},"\u6700\u65B0\u8BC4\u4EF7\u65F6\u95F4\uFF1A",Bt!=null&&Bt.comment_updated_at?De()(Bt==null?void 0:Bt.comment_updated_at).format("YYYY-MM-DD HH:mm:ss"):"--"),re.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"40px",cursor:"pointer"},onClick:()=>Mn(this,null,function*(){Gt?Ie.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):Fe.default.confirm({title:"\u63D0\u793A",content:"\u786E\u8BA4\u662F\u5426\u91CD\u65B0\u751F\u6210\u8BC4\u8BBA\uFF1F",okText:"\u786E\u8BA4",icon:null,cancelText:"\u53D6\u6D88",onOk:()=>Mn(this,null,function*(){An(Bt,rn)})})})},re.createElement("i",{className:"iconfont icon-zhongxinshengcheng1 mr8 font14"}),"\u91CD\u65B0\u751F\u6210")):re.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"auto",cursor:"pointer"},onClick:()=>Mn(this,null,function*(){Gt?Ie.ZP.warning("\u6B63\u5728\u751F\u6210\u8BC4\u8BBA\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002"):An(Bt,rn)})},re.createElement("img",{src:Et,className:"mr8"}),"\u4E00\u952EAI\u751F\u6210")),!(Bt!=null&&Bt.commentEdit)&&!(0,Pe.dE)()&&re.createElement("div",{style:{color:"#3061D0",fontSize:"14px",marginLeft:"20px",cursor:"pointer"},onClick:()=>{const tr=[...Ut];tr[rn].commentEdit=!0,tn(tr),zn(Bt==null?void 0:Bt.comment)}},re.createElement("i",{className:"iconfont icon-bianji-moren mr8 font14"}),"\u7F16\u8F91"),(Bt==null?void 0:Bt.commentEdit)&&re.createElement(re.Fragment,null,re.createElement("div",{className:je.pj_close,onClick:()=>{const tr=[...Ut];tr[rn].commentEdit=!1,tn(tr)}},"\u53D6\u6D88"),re.createElement("div",{className:je.pj_save,onClick:()=>Mn(this,null,function*(){var tr;const br=yield(0,de.ZP)(`/api/student_works/${kt==null?void 0:kt.homeworkId}/challenge_comment`,{method:"put",body:{challenge_id:Bt==null?void 0:Bt.challenge_id,comment:Kn}});if((br==null?void 0:br.status)==0){Ie.ZP.success("\u8BC4\u4EF7\u6210\u529F");const hr=[...Ut];hr[rn].commentEdit=!1,hr[rn].comment=Kn,hr[rn].comment_updated_at=(tr=br==null?void 0:br.data)==null?void 0:tr.comment_updated_at,tn(hr)}})},"\u4FDD\u5B58"))),!(Bt!=null&&Bt.commentEdit)&&re.createElement("div",{className:je.pingjia},Bt!=null&&Bt.comment?re.createElement(Dn.Z,{value:Bt==null?void 0:Bt.comment,style:{fontSize:"14px"}}):"\u6682\u65E0\u8BC4\u4EF7~"),(Bt==null?void 0:Bt.commentEdit)&&re.createElement(Te.default.TextArea,{defaultValue:Kn,style:{borderRadius:"5px",marginTop:"10px"},rows:5,onChange:tr=>zn(tr.target.value)}))),re.createElement("aside",{className:"mt10 font16"},((dr=Bt==null?void 0:Bt.adjust_review_score_list)==null?void 0:dr.length)>0&&(0,Pe.GJ)()&&re.createElement("div",null,re.createElement("strong",{className:"c-black font14"},"\u8C03\u5206\u8BB0\u5F55"),re.createElement(at.default,{columns:On,pagination:{hideOnSinglePage:!0},dataSource:Bt.adjust_review_score_list,showHeader:!1})))))}),re.createElement(Fe.default,{open:_e,width:900,okText:"\u5173\u95ED",cancelButtonProps:{style:{display:"none"}},onOk:()=>{Gn({}),it(!1)},onCancel:()=>{Gn({}),it(!1)},title:re.createElement("div",{style:{width:"100%",cursor:"move"},onMouseOver:()=>{gt&&Vt(!1)},onMouseOut:()=>{Vt(!0)},onFocus:()=>{},onBlur:()=>{}},"\u4EE3\u7801\u5185\u5BB9"),modalRender:Bt=>re.createElement(ae(),{disabled:gt,bounds:Nt,nodeRef:Nn,onStart:(rn,Ln)=>Rt(rn,Ln)},re.createElement("div",{ref:Nn},Bt))},re.createElement("div",{style:{background:"#F6F7F9",padding:"30px 20px",marginBottom:20}},re.createElement("div",{style:{display:"flex",alignItems:"center"}},((_r=Zn==null?void 0:Zn.data)==null?void 0:_r.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?re.createElement("i",{style:{color:"#0B9953",fontSize:18,marginRight:10},className:"iconfont icon-duigou1"}):re.createElement("i",{style:{color:"#E21010",fontSize:18,marginRight:10},className:"iconfont icon-jinggao1"}),re.createElement("div",{style:{color:((Or=Zn==null?void 0:Zn.data)==null?void 0:Or.output_detail)==="\u8BC4\u6D4B\u901A\u8FC7"?"#0B9953":"#E21010",fontSize:16,fontWeight:600}},(yr=Zn==null?void 0:Zn.data)==null?void 0:yr.output_detail)),re.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginTop:20}},re.createElement("div",null,re.createElement("span",{style:{color:"#6A7283"}},"\u8BC4\u6D4B\u65F6\u95F4"),re.createElement("span",{style:{marginLeft:8,color:"#232B40"}},De()((kr=Zn==null?void 0:Zn.data)==null?void 0:kr.created_at).format("YYYY-MM-DD HH:mm:ss"))),re.createElement("div",null,re.createElement("span",{style:{color:"#6A7283"}},"\u7528\u65F6"),re.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(ii=Zn==null?void 0:Zn.data)==null?void 0:ii.ts_time,"s")),re.createElement("div",null,re.createElement("span",{style:{color:"#6A7283"}},"\u5185\u5B58"),re.createElement("span",{style:{marginLeft:8,color:"#232B40"}},(jr=Zn==null?void 0:Zn.data)==null?void 0:jr.ts_mem,"mb")),re.createElement("div",null,re.createElement("span",{style:{color:"#6A7283"}},"\u7528\u4F8B\u901A\u8FC7\u7387"),re.createElement("span",{style:{marginLeft:8,color:"#232B40"}},((hi=Zn==null?void 0:Zn.data)==null?void 0:hi.test_set_passed_rate)*100,"%")))),re.createElement(Tt.ZP,{height:500,autoHeight:mt,language:"python",theme:"default",isCopy:!0,value:decodeURIComponent(escape(window.atob((Zn==null?void 0:Zn.content)||""))),options:Zt})))};var vn=(0,ze.connect)(({shixunHomeworks:an,loading:mt,globalSetting:dn,classroomList:Tn})=>({shixunHomeworks:an,globalSetting:dn,loading:mt.effects,classroomList:Tn}))(sr),cr=fe(28284),ar={greyText:"greyText___nOpNq",info:"info___nBB3c",label:"label___P6my8",blackContent:"blackContent___O4HnS",orangeContent:"orangeContent___JBF44",inputLabel:"inputLabel___B2GAs",tableTitle:"tableTitle___IqAxM",scoreTable:"scoreTable___RJvpU"},mr=fe(44816),$n=fe(59301),Xr=Object.defineProperty,Pr=Object.getOwnPropertySymbols,Er=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,Qr=(an,mt,dn)=>mt in an?Xr(an,mt,{enumerable:!0,configurable:!0,writable:!0,value:dn}):an[mt]=dn,Vn=(an,mt)=>{for(var dn in mt||(mt={}))Er.call(mt,dn)&&Qr(an,dn,mt[dn]);if(Pr)for(var dn of Pr(mt))Ar.call(mt,dn)&&Qr(an,dn,mt[dn]);return an},qn=(an,mt,dn)=>new Promise((Tn,Br)=>{var _r=kr=>{try{yr(dn.next(kr))}catch(ii){Br(ii)}},Or=kr=>{try{yr(dn.throw(kr))}catch(ii){Br(ii)}},yr=kr=>kr.done?Tn(kr.value):Promise.resolve(kr.value).then(_r,Or);yr((dn=dn.apply(an,mt)).next())});const Yn=({shixunHomeworks:an,dispatch:mt,classroomList:dn})=>{const{shixunWorkReport:Tn}=an,Br=(0,ze.useParams)(),[_r,Or]=(0,re.useState)(!1),[yr]=cr.default.useForm(),[kr,ii]=Fe.default.useModal(),[jr,hi]=(0,re.useState)(!1),[gi,oi]=(0,re.useState)(!1);(0,re.useEffect)(()=>{var _e,it,gt,Vt;an.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4"&&yr.setFieldsValue({comment:(it=(_e=an.actionTabs.selectArrs)==null?void 0:_e.data)==null?void 0:it.work_comment,hidden_comment:(Vt=(gt=an.actionTabs.selectArrs)==null?void 0:gt.data)==null?void 0:Vt.work_comment_hidden})},[an.actionTabs.key]);const vi=()=>qn(void 0,null,function*(){const _e=yr.getFieldsValue();(yield(0,de.ZP)(`/api/student_works/${Br.homeworkId}/shixun_work_comment.json`,{method:"post",body:{hidden_comment:_e.hidden_comment,comment:_e.comment}})).status===0&&(Ie.ZP.success("\u8BC4\u9605\u6210\u529F"),yr.resetFields(),mt({type:"shixunHomeworks/setActionTabs",payload:{}}),mt({type:"shixunHomeworks/getShixunWorkReport",payload:Vn({},Br)}))}),Ne=[{title:"\u5173\u5361",dataIndex:"name",render:(_e,it,gt)=>gt+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(_e,it,gt)=>$n.createElement("div",null,_e,it.complete_status===4&&$n.createElement(Ge.vA,{status:it.complete_status}))},{title:"\u5F00\u59CB\u65F6\u95F4",dataIndex:"open_time"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",align:"center"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",align:"center",render:_e=>_e?"\u662F":"\u5426"},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",align:"center",render:(_e,it)=>$n.createElement("div",null,$n.createElement("span",{style:{color:parseFloat(it.game_score_full)!==parseFloat(_e)?"#E30000":"#53C41B"}},_e),"/",it.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",align:"center",fixed:"right",render:(_e,it)=>(0,Pe.GJ)()?$n.createElement(fn,{max:it.game_score_full,defaultValue:parseFloat(_e),onBlur:gt=>qn(void 0,null,function*(){var Vt,Nt;if((0,Pe.Rm)()&&!((Vt=dn.AssistantObject.practice)!=null&&Vt.can_appraise)){Ie.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Qn=yield mt({type:"shixunHomeworks/changeScore",payload:{categoryId:Br.homeworkId,type:"report",score:gt,challenge_id:it.challenge_id}});(Nt=an==null?void 0:an.actionTabs)==null||Nt.fn(),yield mt({type:"shixunHomeworks/getShixunWorkReport",payload:Vn({},Br)}),Qn.status===0&&Ie.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):_e}];return $n.createElement($n.Fragment,null,ii,$n.createElement(Fe.default,{centered:!0,width:1080,title:"\u70B9\u8BC4\u4F5C\u4E1A",open:an.actionTabs.key==="\u66F4\u6539\u70B9\u8BC4",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>qn(void 0,null,function*(){var _e;if((0,Pe.Rm)()&&!((_e=dn.AssistantObject.practice)!=null&&_e.can_appraise)){Ie.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const it=yr.getFieldsValue();JSON.stringify(it)==="{}"||it.hidden_comment===""&&it.comment===""?Or(!0):vi()}),onCancel:()=>{mt({type:"shixunHomeworks/setActionTabs",payload:{}})}},$n.createElement(we.Z,{justify:"space-between",className:ar.info},$n.createElement(ot.Z,null,$n.createElement("span",{className:`${ar.label} ${ar.greyText}`},"\u59D3\u540D"),$n.createElement("span",{className:ar.blackContent},Tn==null?void 0:Tn.username)),$n.createElement(ot.Z,null,$n.createElement("span",{className:`${ar.label} ${ar.greyText}`},"\u5B66\u53F7"),$n.createElement("span",{className:ar.blackContent},(Tn==null?void 0:Tn.student_id)||"--")),$n.createElement(ot.Z,null,$n.createElement("span",{className:`${ar.label} ${ar.greyText}`},"\u73ED\u7EA7"),$n.createElement("span",{className:ar.blackContent},(Tn==null?void 0:Tn.group_name)||"--")),$n.createElement(ot.Z,null,$n.createElement("span",{className:`${ar.label} ${ar.greyText}`},"\u5173\u5361\u5F97\u5206"),$n.createElement("span",{className:ar.orangeContent},(Tn==null?void 0:Tn.challenge_score)||"--")),$n.createElement(ot.Z,null,$n.createElement("span",{className:`${ar.label} ${ar.greyText}`},"\u6548\u7387\u5206"),$n.createElement("span",{className:ar.orangeContent},(Tn==null?void 0:Tn.eff_score)||"--")),$n.createElement(ot.Z,null,$n.createElement("span",{className:`${ar.label} ${ar.greyText}`},"\u8865\u4EA4\u6263\u5206"),$n.createElement("span",{className:ar.orangeContent},(Tn==null?void 0:Tn.late_penalty)||"--")),$n.createElement(ot.Z,null,$n.createElement("span",{className:`${ar.label} ${ar.greyText}`},"\u6700\u7EC8\u6210\u7EE9"),$n.createElement("span",{className:ar.orangeContent},(Tn==null?void 0:Tn.work_score)||"--"))),$n.createElement(cr.default,{form:yr,onChange:()=>{_r&&Or(!1)}},$n.createElement(we.Z,{wrap:!1,align:"middle",justify:"space-between"},$n.createElement(ot.Z,null,$n.createElement("div",{className:`${ar.inputLabel} ${ar.greyText}`},"\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),$n.createElement(ot.Z,null,$n.createElement(mr.Z,{isShowComponent:(0,Pe.G5)(),ModalProps:{open:jr,onCancel:()=>{hi(!1)}},onDataSelect:(_e,it)=>qn(void 0,[_e,it],function*(gt,{node:Vt}){const Nt=()=>{yr.setFieldsValue({comment:Vt==null?void 0:Vt.value}),hi(!1)};if(yr.getFieldValue("comment")){kr.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:Nt});return}Nt()})},$n.createElement(Xe.ZP,{style:{padding:0,height:"auto"},icon:$n.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:_e=>{hi(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),$n.createElement(cr.default.Item,{name:"comment"},$n.createElement(Te.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3})),$n.createElement(we.Z,{wrap:!1,align:"middle",justify:"space-between"},$n.createElement(ot.Z,null,$n.createElement("div",{className:`${ar.inputLabel} ${ar.greyText}`},"\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1")),$n.createElement(ot.Z,null,$n.createElement(mr.Z,{isShowComponent:(0,Pe.G5)(),ModalProps:{open:gi,onCancel:()=>{oi(!1)}},onDataSelect:(_e,it)=>qn(void 0,[_e,it],function*(gt,{node:Vt}){const Nt=()=>{yr.setFieldsValue({hidden_comment:Vt==null?void 0:Vt.value}),oi(!1)};if(yr.getFieldValue("hidden_comment")){kr.confirm({icon:null,title:"\u63D0\u793A",centered:!0,content:"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u8BC4\u8BED\u8F93\u5165\u6846\u4E2D\u5DF2\u6709\u5185\u5BB9\uFF0C\u4F7F\u7528\u5E38\u7528\u8BC4\u8BED\u5C06\u4F1A\u8986\u76D6\u539F\u6709\u5185\u5BB9\u3002\u662F\u5426\u4F7F\u7528\uFF1F",okText:"\u4F7F\u7528",onOk:Nt});return}Nt()})},$n.createElement(Xe.ZP,{style:{padding:0,height:"auto"},icon:$n.createElement("i",{className:"iconfont icon-changyongpingyu"}),type:"link",onClick:_e=>{oi(!0)}},"\u5E38\u7528\u8BC4\u8BED")))),$n.createElement(cr.default.Item,{name:"hidden_comment"},$n.createElement(Te.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9",rows:3}))),_r&&$n.createElement("p",{className:"c-red"},"\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),$n.createElement("div",{className:ar.tableTitle},"\u5173\u5361\u6210\u7EE9"),$n.createElement(at.default,{className:ar.scoreTable,dataSource:Tn.stage_list,rowKey:"challenge_id",pagination:!1,columns:Ne,scroll:{x:"max-content"}})))};var pn=(0,ze.connect)(({shixunHomeworks:an,classroomList:mt})=>({shixunHomeworks:an,classroomList:mt}))(Yn),Wn=fe(29678),cn=fe(45278),Sn=fe(44164),fr=fe.n(Sn),ir={wrap:"wrap___LZOi9",line:"line___oju0L"},lr=fe(98616),Wr=({detailData:an})=>{var mt;return re.createElement("div",{className:ir.wrap},re.createElement(lr.ij,{hideBar:!0,actionAnalysis:!0,loading:!1,emptyData:[(0,lr.Uf)(an),(an==null?void 0:an.photos)||[]],title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",noDataText:"\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"},re.createElement(lr.ZP,{hideBar:!0,title:"\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",data:(0,lr.Uf)(an)}),!!((mt=an==null?void 0:an.photos)!=null&&mt.length)&&re.createElement(re.Fragment,null,re.createElement("div",{className:ir.line}),re.createElement(lr._s,{dataSource:an==null?void 0:an.photos,right:21,col:4,wrapWidth:1140}))))},Dr=fe(30975),Fr=fe(83071),Rr=fe(57884),Xn=fe(39479),yn=fe(33796),rt=fe(59301),Sr=Object.defineProperty,Kr=Object.defineProperties,_t=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,Hn=Object.prototype.propertyIsEnumerable,Ot=(an,mt,dn)=>mt in an?Sr(an,mt,{enumerable:!0,configurable:!0,writable:!0,value:dn}):an[mt]=dn,kn=(an,mt)=>{for(var dn in mt||(mt={}))Jn.call(mt,dn)&&Ot(an,dn,mt[dn]);if(St)for(var dn of St(mt))Hn.call(mt,dn)&&Ot(an,dn,mt[dn]);return an},nr=(an,mt)=>Kr(an,_t(mt)),rr=(an,mt)=>{var dn={};for(var Tn in an)Jn.call(an,Tn)&&mt.indexOf(Tn)<0&&(dn[Tn]=an[Tn]);if(an!=null&&St)for(var Tn of St(an))mt.indexOf(Tn)<0&&Hn.call(an,Tn)&&(dn[Tn]=an[Tn]);return dn},er=(an,mt,dn)=>new Promise((Tn,Br)=>{var _r=kr=>{try{yr(dn.next(kr))}catch(ii){Br(ii)}},Or=kr=>{try{yr(dn.throw(kr))}catch(ii){Br(ii)}},yr=kr=>kr.done?Tn(kr.value):Promise.resolve(kr.value).then(_r,Or);yr((dn=dn.apply(an,mt)).next())});function ur(an){const mt=(Br,_r)=>{if(Br.localName===_r)return Br;for(let Or=0,yr=Br;yr=yr.parentNode;Or++){if(yr.localName===_r)return yr;if(yr==document.documentElement)return!1}},dn=an.target,Tn=mt(dn,"a");if(console.log([Tn],Tn==null?void 0:Tn.href,44),!(Tn!=null&&Tn.href)&&dn.tagName.toUpperCase()==="IMG"){let Br=dn.src||dn.getAttribute("src");Br&&Br.indexOf("/images/avatars/User")===-1&&(an.stopPropagation(),an.preventDefault(),yn.Z.publish("preview-image",Br))}}const wr=an=>{var mt=an,{shixunHomeworks:dn,classroomList:Tn,globalSetting:Br,loading:_r,user:Or,dispatch:yr}=mt,kr=rr(mt,["shixunHomeworks","classroomList","globalSetting","loading","user","dispatch"]),ii,jr,hi,gi,oi,vi,Ne;const[_e,it]=(0,re.useState)(kn({},(0,ze.useParams)())),gt=(0,ze.useParams)(),[Vt,Nt]=(0,re.useState)({page:1,page_size:10}),Qn=(0,ze.useLocation)(),[]=(0,re.useState)([]),[Nn,Zn]=(0,re.useState)(),Gn=(0,re.useRef)(),Kn=(0,re.useRef)(),[zn,st]=(0,re.useState)(!1),[Rt,kt]=(0,re.useState)(!0),[Ht,Zt]=(0,re.useState)(!1),[gn,On]=(0,re.useState)(!1),{shixunWorkReport:$e}=dn,[mn,Ut]=(0,re.useState)(),[tn,sn]=(0,re.useState)([]),[Gt,nn]=(0,re.useState)(),[An,Bt]=(0,re.useState)("all"),rn=(0,Pe.GJ)(),[Ln,dr]=(0,re.useState)(new(Ee())),[tr,br]=(0,re.useState)(0),[hr,Tr]=(0,re.useState)(!1),[Hr,fi]=(0,re.useState)(!1),[Jr,Ai]=(0,re.useState)(!1),[si,ti]=(0,re.useState)(""),[ei,$r]=(0,re.useState)(!1),[Lr,qr]=(0,re.useState)(!0),[Zr,bi]=(0,re.useState)(0),ui=(0,re.useRef)(JSON.parse(sessionStorage.all_student_works_params||"{}")),Ci=(0,re.useRef)(),[Ti,xA]=(0,re.useState)(!1),[gA,la]=(0,re.useState)(!1),dA=(0,re.useRef)(null),qi=()=>er(void 0,null,function*(){(Or.userInfo.is_teacher||Or.userInfo.admin)&&($r(!0),qr(!1))});(0,re.useEffect)(()=>{var pr;(0,Pe.Rm)()&&Tn.AssistantObject.practice&&!((pr=Tn.AssistantObject.practice)!=null&&pr.can_view)&&ze.history.replace("/403")},[(ii=Tn.AssistantObject.practice)==null?void 0:ii.can_view]),(0,re.useEffect)(()=>{qi(),console.log("\u6253\u5370\u7684------",$e),Ci.current=$e==null?void 0:$e.next_student_work_id,ti($e.repeat_minus_score)},[$e,Or]),(0,re.useEffect)(()=>{console.log("\u89E6\u53D1\u8FD9",$e.work_score),bi($e.work_score)},[$e.work_score,si]),(0,re.useEffect)(()=>(yr({type:"globalSetting/footerToggle",payload:!1}),()=>{yr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,re.useEffect)(()=>{if(dA.current)return dA.current.addEventListener("mousedown",ur),()=>{var pr;(pr=dA.current)==null||pr.removeEventListener("mousedown",ur)}},[dA.current]),(0,re.useEffect)(()=>{setTimeout(()=>{dA.current&&dA.current.clientHeight>=500&&la(!0)},500)},[(jr=$e==null?void 0:$e.student_work_test_result_info)==null?void 0:jr.content,dA.current]),(0,re.useEffect)(()=>{var pr;if($e){let ai=[];(pr=$e==null?void 0:$e.target_test_sets)==null||pr.map((wi,UA)=>{var ji;(ji=wi==null?void 0:wi.targets)==null||ji.map((DA,Li)=>{var _a;DA.name=wi==null?void 0:wi.name,DA.total_target_score=wi==null?void 0:wi.total_target_score,DA.actual_target_score=wi==null?void 0:wi.actual_target_score,DA.rowSpan=Li===0?(_a=wi==null?void 0:wi.targets)==null?void 0:_a.length:0,DA.order=UA+1,ai.push(DA)})}),Ut(ai),(0,Pe.Rm)()&&yr({type:"classroomList/getAssistantPermissions",payload:{course_id:_e.coursesId}})}},[$e]),(0,re.useEffect)(()=>{dn.actionTabs.key==="\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"&&($e==null?void 0:$e.students_count)>0&&!Rt&&setTimeout(()=>{mi("all")},800)},[$e==null?void 0:$e.homework_common_id,Rt]),(0,re.useEffect)(()=>{it(kn({},gt))},[Qn.pathname]);const tA=()=>{document.body.scrollIntoView()},nA=pr=>{Vt.page=pr,Nt(kn({},Vt)),EA(Vt,An)},EA=(pr,ai)=>er(void 0,null,function*(){Zt(!0);const wi=yield(0,de.ZP)(`/api/student_works/${_e==null?void 0:_e.homeworkId}/adjust_review_score_histories.json`,{method:"get",params:nr(kn({},pr),{challenge_id:ai=="all"?null:ai})});(wi==null?void 0:wi.status)===0&&(sn(wi==null?void 0:wi.list),nn(wi==null?void 0:wi.count)),Zt(!1)});function hA(){return er(this,null,function*(){ui.current=JSON.parse(sessionStorage.all_student_works_params||"{}")})}const yA=()=>{document.querySelectorAll("canvas").forEach(pr=>{(!pr.clientWidth||!pr.clientHeight)&&pr.remove()})},wA=()=>{Gn.current.offsetHeight>62e3?On(!1):On(!0)},ni=pr=>er(void 0,null,function*(){const ai=yield(0,cn.t1)({homeworkId:pr||_e.homeworkId});Zn(ai==null?void 0:ai.data)}),mi=pr=>er(void 0,null,function*(){var ai,wi,UA,ji;xA(!0);let DA=0,Li;Li=Fe.default.info({width:460,title:rt.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,",rt.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:rt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",rt.createElement("span",{className:"c-blue"},DA+1),"/",pr!=="all"?1:$e==null?void 0:$e.students_count,rt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),maskClosable:!1,className:je.modal,onOk:()=>{}});const _a={margin:[0,0],filename:`${$e!=null&&$e.student_id&&($e==null?void 0:$e.student_id)!="--"?$e==null?void 0:$e.student_id:""}${$e.username}.pdf`,html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}},fa=Ln.folder($e==null?void 0:$e.shixun_name);function KA(Vi){return er(this,null,function*(){yield ni(Vi||Ci.current);const Oi=yield yr({type:"shixunHomeworks/getShixunWorkReport",payload:kn({homeworkId:Vi||Ci.current},ui.current||{})});Ci.current=Oi==null?void 0:Oi.next_student_work_id,tA(),DA++,setTimeout(()=>er(this,null,function*(){var wa,Ba,ra,ZA;yA();const ka=fa.folder(`${Oi==null?void 0:Oi.group_name}`).folder(`${Oi!=null&&Oi.student_id&&(Oi==null?void 0:Oi.student_id)!="--"?Oi.student_id+"+":""}${Oi==null?void 0:Oi.username}`),HA=document.querySelector("#export-all").children;let ia=fr()();for(let vA=0;vA<HA.length;vA++)yield ia.set(_a).from(HA[vA]).toContainer().toCanvas().toPdf().get("pdf").then(uA=>er(this,null,function*(){vA<HA.length-1&&(yield uA.addPage())}));if(ka.file(`${Oi!=null&&Oi.student_id&&(Oi==null?void 0:Oi.student_id)!="--"?Oi.student_id+"+":""}${Oi==null?void 0:Oi.username}.pdf`,ia.output("blob")),((wa=Oi==null?void 0:Oi.shixun_detail)==null?void 0:wa.length)>0&&((ra=(Ba=Oi==null?void 0:Oi.shixun_detail)==null?void 0:Ba.filter(vA=>{var uA;return((uA=vA==null?void 0:vA.game_codes)==null?void 0:uA.length)>0}))==null?void 0:ra.length)>0){const vA=ka.folder("\u4EE3\u7801\u6587\u4EF6");(ZA=Oi==null?void 0:Oi.shixun_detail)==null||ZA.map((uA,ua)=>{var Ua,Da;if(((Ua=uA==null?void 0:uA.game_codes)==null?void 0:Ua.length)>0){const JA=vA.folder(`\u7B2C${ua+1}\u5173-${uA.subject}-${uA.id}`);(Da=uA==null?void 0:uA.game_codes)==null||Da.map(fA=>{JA.file(`${fA.filename}.txt`,fA==null?void 0:fA.content)})}})}Li.update({content:rt.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",rt.createElement("span",{className:"c-blue"},DA),"/",Oi==null?void 0:Oi.students_count,rt.createElement("br",null),"\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")}),DA==(Oi==null?void 0:Oi.students_count)?(Li.destroy(),Ei()):KA()}),2200)})}if(pr!=="all"||($e==null?void 0:$e.students_count)<2){yA(),tA();const Vi=Kn.current.children;let Oi=fr()();const Ba=fa.folder(`${$e==null?void 0:$e.group_name}`).folder(`${$e!=null&&$e.student_id&&($e==null?void 0:$e.student_id)!="--"?($e==null?void 0:$e.student_id)+"+":""}${$e==null?void 0:$e.username}`);for(let ra=0;ra<Vi.length;ra++)yield Oi.set(_a).from(Vi[ra]).toContainer().toCanvas().toPdf().get("pdf").then(ZA=>er(void 0,null,function*(){ra<Vi.length-1&&(yield ZA.addPage())}));if(st(!1),Ba.file(`${$e!=null&&$e.student_id&&($e==null?void 0:$e.student_id)!="--"?($e==null?void 0:$e.student_id)+"+":""}${$e.username}.pdf`,Oi.output("blob"),{base64:!1}),((ai=$e==null?void 0:$e.shixun_detail)==null?void 0:ai.length)>0&&((UA=(wi=$e==null?void 0:$e.shixun_detail)==null?void 0:wi.filter(ra=>{var ZA;return((ZA=ra==null?void 0:ra.game_codes)==null?void 0:ZA.length)>0}))==null?void 0:UA.length)>0){const ra=Ba.folder("\u4EE3\u7801\u6587\u4EF6");(ji=$e==null?void 0:$e.shixun_detail)==null||ji.map((ZA,Ka)=>{var ka,HA;if(((ka=ZA==null?void 0:ZA.game_codes)==null?void 0:ka.length)>0){const ia=ra.folder(`\u7B2C${Ka+1}\u5173-${ZA.subject}-${ZA.id}`);(HA=ZA==null?void 0:ZA.game_codes)==null||HA.map(vA=>{ia.file(`${vA.filename}.txt`,vA==null?void 0:vA.content)})}})}Li.destroy(),Ei();return}else KA($e==null?void 0:$e.first_student_work_id)}),Ei=()=>{Ln.generateAsync({type:"blob"}).then(function(pr){console.log($e,"shixunWorkReport");const ai=document.createElement("a");ai.href=window.URL.createObjectURL(pr),ai.download=($e==null?void 0:$e.shixun_name)+".zip",document.body.appendChild(ai);const wi=document.createEvent("MouseEvents");wi.initEvent("click",!1,!1),ai.dispatchEvent(wi),document.body.removeChild(ai),dr(new(Ee()))}),On(!1)};(0,re.useEffect)(()=>{Fi()},[_e.homeworkId]);const Fi=()=>er(void 0,null,function*(){kt(!0),yield yr({type:"shixunHomeworks/getShixunWorkReport",payload:kn(kn({},_e),ui.current||{})}),ni(),(0,Pe.GJ)()&&hA(),kt(!1)}),Ni=[{title:"\u5173\u5361",dataIndex:"name",render:(pr,ai,wi)=>wi+1},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",render:(pr,ai,wi)=>rt.createElement("div",null,pr,ai.complete_status===4&&rt.createElement(Ge.vA,{status:ai.complete_status}))},{title:"\u5F00\u542F\u65F6\u95F4",dataIndex:"open_time"},{title:"\u4EE3\u7801\u4FEE\u6539\u884C\u6570",dataIndex:"diff_code_count",render:(pr,ai,wi)=>pr||"- -"},{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count"},{title:"\u5B8C\u6210\u65F6\u95F4",dataIndex:"finished_time"},{title:"\u5B9E\u8BAD\u8017\u65F6",dataIndex:"time_consuming"},{title:"\u662F\u5426\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",render:pr=>pr?"\u662F":"\u5426"},{title:"\u7ECF\u9A8C\u503C",dataIndex:"experience",render:(pr,ai)=>rt.createElement("div",null,rt.createElement("span",{style:{color:parseFloat(ai.myself_experience)!==parseFloat(pr)?"red":"green"}},ai.myself_experience),"/",pr)},{title:"\u5173\u5361\u5F97\u5206",dataIndex:"game_score",render:(pr,ai)=>rt.createElement("div",null,rt.createElement("span",{style:{color:parseFloat(ai.game_score_full)!==parseFloat(pr)?"red":"green"}},pr),"/",ai.game_score_full)},{title:"\u8C03\u5206",dataIndex:"game_score",render:(pr,ai)=>rn?rt.createElement(fn,{max:ai.game_score_full,defaultValue:parseFloat(pr),onBlur:wi=>er(void 0,null,function*(){var UA;if((0,Pe.Rm)()&&!((UA=Tn.AssistantObject.practice)!=null&&UA.can_appraise)){Ie.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const ji=yield yr({type:"shixunHomeworks/changeScore",payload:{categoryId:_e.homeworkId,type:"report",score:wi,challenge_id:ai.challenge_id}});EA({page:1,page_size:10},"all"),yield yr({type:"shixunHomeworks/getShixunWorkReport",payload:kn(kn({},_e),ui.current||{})}),ji.status===0&&Ie.ZP.success("\u64CD\u4F5C\u6210\u529F")})}):pr}];let Xi=[{title:"\u5173\u5361",dataIndex:"order",key:"order",render:(pr,ai,wi)=>({children:pr,props:{rowSpan:ai.rowSpan}})},{title:"\u4EFB\u52A1\u540D\u79F0",dataIndex:"name",key:"name",render:(pr,ai,wi)=>({children:pr,props:{rowSpan:ai.rowSpan}})},{title:"\u6307\u6807\u540D\u79F0",dataIndex:"target_name",key:"target_name"},{title:"\u6307\u6807\u9884\u671F\u7ED3\u679C",dataIndex:"output",key:"output"},{title:"\u6307\u6807\u5B9E\u9645\u7ED3\u679C",dataIndex:"actual_output",key:"actual_output"},{title:"\u6307\u6807\u5F97\u5206",dataIndex:"test_score",key:"test_score",render:(pr,ai,wi)=>rt.createElement("div",null,rt.createElement("span",{style:{color:parseFloat(ai.actual_test_score)!==parseFloat(pr)?"red":"green"}},ai.actual_test_score),"/",pr)},{title:"\u6307\u6807\u603B\u5206",render:(pr,ai,wi)=>({children:rt.createElement("div",null,rt.createElement("span",{style:{color:parseFloat(ai.actual_target_score)!==parseFloat(pr)?"red":"green"}},ai.actual_target_score),"/",pr),props:{rowSpan:ai.rowSpan}}),dataIndex:"total_target_score",key:"total_target_score"}];const Mi=[{title:"\u5173\u5361",dataIndex:"challenge_num",width:220},{title:"\u8C03\u5206\u7528\u6237",dataIndex:["user","name"]},{title:"\u8C03\u5206\u524D",dataIndex:"old_score"},{title:"\u8C03\u5206\u540E",dataIndex:"score"},{title:"\u8C03\u5206\u65F6\u95F4",dataIndex:"created_at",render:pr=>rt.createElement("span",null,pr?De()(pr).format("YYYY-MM-DD HH:mm"):"--")}],BA=pr=>{yr({type:"shixunHomeworks/setActionTabs",payload:{key:"",type:2}}),setTimeout(()=>{pr==="next"?ze.history.push(`/classrooms/${_e.coursesId}/shixun_homework/${_e.categoryId}/${$e==null?void 0:$e.next_student_work_id}/comment`):ze.history.push(`/classrooms/${_e.coursesId}/shixun_homework/${_e.categoryId}/${$e==null?void 0:$e.pre_student_work_id}/comment`)},200)},CA=pr=>{ti(""),pr.target.value&&(console.log("\u8FDB\u6765",$e),pr.target.value=pr.target.value>$e.repeat_setting_score?$e.repeat_setting_score:pr.target.value,ti(pr.target.value))},Qi=()=>er(void 0,null,function*(){const pr=yield(0,de.ZP)(`/api/student_works/${$e==null?void 0:$e.work_id}/update_repeat_score`,{method:"put",body:{score:si}});yield yr({type:"shixunHomeworks/getShixunWorkReport",payload:kn(kn({},_e),ui.current||{})}),pr.status===0&&Ie.ZP.info("\u64CD\u4F5C\u6210\u529F")});return rt.createElement("section",{className:"bg-fafafa",style:{position:"sticky",top:0}},rt.createElement("div",{className:"edu-container mt10",style:{paddingBottom:100}},rt.createElement(ve.Z,{loading:_r["shixunHomeworks/getShixunWorkReport"],active:!0,avatar:{size:40},paragraph:{rows:5}},rt.createElement("div",{className:"edu-container"},$e.course_id&&rt.createElement("section",{className:"animated fadeIn"},rt.createElement("aside",{className:""},$e.category&&rt.createElement(ut.Z,{separator:">"},rt.createElement(ut.Z.Item,null,rt.createElement(ze.Link,{to:`/classrooms/${$e.course_id}/shixun_homework`},$e.course_name)),rt.createElement(ut.Z.Item,null,rt.createElement(ze.Link,{to:`/classrooms/${$e.course_id}/shixun_homework/${$e.category.main?"":$e.category.category_id}`},$e.category.category_name)),rt.createElement(ut.Z.Item,null,rt.createElement(ze.Link,{to:`/classrooms/${$e.course_id}/shixun_homework/${$e.homework_common_id}/detail${(0,Pe.dE)()?"?tabs=1":""}`},"\u4F5C\u4E1A\u8BE6\u60C5")),rt.createElement(ut.Z.Item,null,$e.username))),rt.createElement("aside",{className:[je.title1,"mt20"].join(" ")},rt.createElement(we.Z,{align:"middle"},rt.createElement(ot.Z,{flex:1},rt.createElement(ze.Link,{to:`/classrooms/${$e.course_id}/shixun_homework/${$e.homework_common_id}/detail`},rt.createElement(be.Z,{className:"font16 c-black"})),rt.createElement("strong",{className:"font20 ml5"},$e==null?void 0:$e.homework_name),rt.createElement(Ge.VV,{temporary:!0,status:$e.homework_status})),rt.createElement(ot.Z,{className:je.title1_right},$e.view_tpi&&rt.createElement(Xe.ZP,{onClick:()=>{var pr,ai;(0,Ge.xg)(`/tasks/${$e==null?void 0:$e.course_id}/${$e==null?void 0:$e.homework_common_id}/${(ai=(pr=$e==null?void 0:$e.shixun_detail)==null?void 0:pr[0])==null?void 0:ai.game_identifier}`)}},rt.createElement("span",{className:"iconfont icon-yijiandianping mr5"}),"\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"),(0,Pe.GJ)()&&$e.homework_end===!1&&!!$e.myshixun_id&&rt.createElement(Xe.ZP,{className:"ml10",onClick:()=>er(void 0,null,function*(){yield yr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u6253\u56DE\u91CD\u505A",selectArrs:{myshixun_identifier:$e.myshixun_identifier},homework_common_id:gt.categoryId}})})},rt.createElement("span",{className:"iconfont icon-dahuizhongzuo3x mr5"}),"\u6253\u56DE\u91CD\u505A"),rt.createElement(Xe.ZP,{className:"ml10",onClick:()=>{var pr;if(!(!($e!=null&&$e.is_old_data_for_time)&&(0,Ge.Ye)(yr))){if((0,Pe.Rm)()&&!((pr=Tn.AssistantObject.practice)!=null&&pr.can_download)){Ie.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}mi("")}},loading:zn},rt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"),(0,Pe.GJ)()&&($e==null?void 0:$e.students_count)>1&&rt.createElement(Xe.ZP,{className:"ml10",onClick:()=>{var pr;if(!(!($e!=null&&$e.is_old_data_for_time)&&(0,Ge.Ye)(yr))){if((0,Pe.Rm)()&&!((pr=Tn.AssistantObject.practice)!=null&&pr.can_download)){Ie.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Fe.default.confirm({title:"\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",closable:!0,icon:null,centered:!0,okText:rt.createElement(Je.Z,{title:"\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u524D\u7AEF\u5BFC\u51FA"),cancelText:rt.createElement(Je.Z,{title:"\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C"},"\u540E\u53F0\u5BFC\u51FA"),onOk:()=>{mi("all")},onCancel:()=>{},cancelButtonProps:{onClick:()=>{(0,Dr.jj)({categoryId:_e.categoryId,coursesId:_e.coursesId},"shixun_report")}}})}}},rt.createElement("span",{className:"iconfont icon-daochu mr5"}),"\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))),rt.createElement("aside",{className:"mt30 relative"})),rt.createElement("aside",{className:"edu-container bg-white",ref:Gn},rt.createElement("div",{id:"export-all",ref:Kn},rt.createElement("div",{id:"export-all-1"},rt.createElement("div",{className:je.title},rt.createElement("h1",null,"\u603B\u4F53\u8BC4\u4EF7"),rt.createElement("div",null,(0,Pe.GJ)()&&rt.createElement(Xe.ZP,{className:"mr20",type:"primary",onClick:()=>{yr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:$e.user_id,data:kn({},$e)},fn:()=>EA({page:1,page_size:10},"all")}})}},rt.createElement(Be.Z,null),$e.has_shixun_work_comment?"\u66F4\u6539\u70B9\u8BC4":"\u70B9\u8BC4\u4F5C\u4E1A"))),rt.createElement(He.Z,{style:{marginTop:0}}),rt.createElement(we.Z,{className:"pl30 pr30"},rt.createElement(ot.Z,null,rt.createElement("img",{className:je.userPic,src:`${qe.Z.IMG_SERVER}/images/${$e.image_url}`,alt:$e.username})),rt.createElement(ot.Z,null,rt.createElement("span",{className:"font16 ml40"},$e.username),rt.createElement(Ge.vA,{status:$e.compelete_status}),rt.createElement("ul",{className:je.userInfo},rt.createElement("li",null,"\u5B66\u53F7\uFF1A",$e.student_id||"--"),rt.createElement("li",null,"\u5206\u73ED\uFF1A",$e.group_name||"--"),rt.createElement("br",null),rt.createElement("li",null,"\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A",rt.createElement("span",{className:"c-red"},$e.complete_count),"/",rt.createElement("span",{className:"c-red"},$e.challenges_count)),rt.createElement("li",null,"\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A",rt.createElement("span",{className:"c-red"},$e.current_complete_count||"-"),"/",rt.createElement("span",{className:"c-red"},$e.challenges_count)),rt.createElement("li",null,"\u5B8C\u6210\u6548\u7387\uFF1A",$e&&$e.efficiency===null?"--":$e&&$e.efficiency),rt.createElement("li",null,"\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A",$e&&$e.max_efficiency===null?"--":$e&&$e.max_efficiency))),rt.createElement("ul",{className:[je.listItem,"mt10"].join(" ")},rt.createElement("li",null,rt.createElement("strong",null,"\u901A\u5173\u65F6\u95F4"),rt.createElement("div",{className:"c-light-black mt20"},$e&&$e.passed_time===null||$e&&$e.passed_time==="--"?"--":De()($e&&$e.passed_time).format("YYYY-MM-DD HH:mm"))),rt.createElement("li",null,rt.createElement("strong",null,"\u8BA1\u65F6\u89C4\u5219",rt.createElement("i",{onClick:pr=>{pr.stopPropagation(),pr.preventDefault(),Tr(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),rt.createElement("div",{className:"c-light-black mt20"},$e==null?void 0:$e.human_training_time_rules)),rt.createElement("li",null,rt.createElement("strong",null,"\u5B9E\u8BAD\u603B\u8017\u65F6",rt.createElement("i",{onClick:pr=>{pr.stopPropagation(),pr.preventDefault(),fi(!0)},style:{marginLeft:4,color:"#145DFF",fontSize:16,cursor:"pointer"},className:"iconfont icon-tishixiaowenhao"})),rt.createElement("div",{className:"c-light-black mt20"},$e.time_consuming)),rt.createElement("li",null,rt.createElement("strong",null,"\u8BC4\u6D4B\u6B21\u6570"),rt.createElement("div",{className:"mt20"},$e.evaluate_count)),($e==null?void 0:$e.eff_score_full)&&rt.createElement(rt.Fragment,null,rt.createElement("li",null,rt.createElement("strong",null,"\u5173\u5361\u5F97\u5206"),rt.createElement("div",{className:"mt20"},rt.createElement("span",{className:"c-orange"},$e.challenge_score),"/",rt.createElement("span",{className:"c-light-black"},$e.challenge_score_full))),rt.createElement("li",null,rt.createElement("strong",null,"\u6548\u7387\u5206"),rt.createElement("div",{className:"mt20"},rt.createElement("span",{className:"c-orange"},$e.eff_score),"/",rt.createElement("span",{className:"c-light-black"},$e.eff_score_full)))),($e==null?void 0:$e.have_repeat)&&($e==null?void 0:$e.repeat_minus_score)!==0&&rt.createElement("li",{style:{position:"relative"}},rt.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},rt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),rt.createElement("div",{style:{position:"absolute",fontSize:"10px",color:"white",left:"57px",width:"46px",bottom:"72px"}},$e!=null&&$e.review_rate?rt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0",cursor:"pointer"},onClick:()=>{if($e!=null&&$e.review_id&&ei)localStorage.setItem("studentDetial",window.location.pathname),ze.history.push({pathname:`/classrooms/:coursesId/shixun_homework/${_e.categoryId}/review_detail/${$e==null?void 0:$e.review_id}`});else return}},$e.review_rate.toFixed(1),"%"):rt.createElement("span",{style:{background:"#0152d9",borderRadius:"6px 6px 6px 0"}},"- -"))),ei?rt.createElement("div",{className:"mt20"},rt.createElement(Te.default,{style:{width:"45px",height:"22px"},value:si,onChange:pr=>{CA(pr)},onBlur:Qi,disabled:Lr})," / ",$e==null?void 0:$e.repeat_setting_score):rt.createElement("div",{className:"mt20"},$e==null?void 0:$e.repeat_minus_score," / ",$e==null?void 0:$e.repeat_setting_score)),console.log("sssssssssssssssssssssss",$e==null?void 0:$e.have_repeat,$e==null?void 0:$e.repeat_minus_score),($e==null?void 0:$e.have_repeat)&&($e==null?void 0:$e.repeat_minus_score)===0&&rt.createElement("li",null,rt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),rt.createElement("div",{className:"mt20"}," - -")),!($e!=null&&$e.have_repeat)&&rt.createElement("li",null,rt.createElement("strong",null,"\u67E5\u91CD\u6263\u5206"),rt.createElement("div",{className:"mt20"}," - -")),rt.createElement("li",null,rt.createElement("strong",null,"\u8865\u4EA4\u6263\u5206"),rt.createElement("div",{className:"mt20"},rt.createElement("span",null,$e.late_penalty||"- -"))),rt.createElement("li",null,rt.createElement("strong",null,"\u6700\u7EC8\u6210\u7EE9"),rt.createElement("div",{className:"mt20"},rt.createElement("span",{className:"c-orange"},Zr),"/",rt.createElement("span",{className:"c-light-black"},$e.all_work_score))),rt.createElement("li",null,rt.createElement("strong",null,"\u603B\u8BC4"),rt.createElement("div",{className:"mt20"},rt.createElement("span",{className:"c-orange"},$e.overall_appraisal))))),rt.createElement(He.Z,{style:{margin:0}}),($e.work_comment_hidden||$e.work_comment)&&rt.createElement("div",null,rt.createElement(we.Z,{align:"middle"},rt.createElement(ot.Z,{flex:1},rt.createElement("h1",{className:je.title},"\u70B9\u8BC4\u5185\u5BB9")),rt.createElement(ot.Z,{className:"pr30"},(0,Pe.GJ)()&&rt.createElement(Xe.ZP,{onClick:()=>er(void 0,null,function*(){Fe.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:rt.createElement(Ue.Z,null),content:"\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",onOk(){return er(this,null,function*(){(yield(0,cn.gZ)({comment_id:$e.comment_id,homeworkId:_e.homeworkId})).status===0&&(Ie.ZP.success("\u5220\u9664\u6210\u529F"),yr({type:"shixunHomeworks/getShixunWorkReport",payload:kn(kn({},_e),ui.current||{})}))})}})})},rt.createElement(ke.Z,null),"\u5220\u9664"))),rt.createElement(He.Z,{style:{margin:0}}),$e.work_comment&&rt.createElement("aside",{className:"pl30 pr30 mt20"},rt.createElement("span",{className:"c-light-black font12"},"# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),rt.createElement("br",null),rt.createElement(Dn.Z,{value:$e.work_comment})),$e.work_comment_hidden&&rt.createElement("aside",{className:"pl30 pr30 mt20"},rt.createElement("span",{className:"c-light-black font12"},"# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),rt.createElement("br",null),rt.createElement(Dn.Z,{value:$e.work_comment_hidden}))),($e==null?void 0:$e.action_analysis)&&rt.createElement(Wr,{detailData:$e}),rt.createElement("div",{className:je.score},rt.createElement("h1",{className:je.title},"\u9636\u6BB5\u6210\u7EE9"),($e==null?void 0:$e.adjust_review_score_count)>0&&(0,Pe.GJ)()&&rt.createElement("div",{style:{color:"#0152d9",cursor:"pointer"},onClick:()=>{Ai(!0),EA({page:1,page_size:10},"all")}},"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55\uFF08",$e==null?void 0:$e.adjust_review_score_count,"\u6B21\uFF09")),rt.createElement("aside",{className:"pl30 pr30"},rt.createElement(at.default,{dataSource:$e.stage_list,rowKey:pr=>pr==null?void 0:pr.challenge_id,pagination:!1,columns:Ni})),((hi=$e==null?void 0:$e.target_test_sets)==null?void 0:hi.length)>0&&rt.createElement("div",null,rt.createElement("h1",{className:je.title},"\u6307\u6807\u6210\u7EE9"),rt.createElement("aside",{className:"pl30 pr30"},rt.createElement(at.default,{dataSource:mn,rowKey:pr=>pr==null?void 0:pr.challenge_id,pagination:!1,bordered:!0,columns:Xi}))),($e==null?void 0:$e.work_description)&&rt.createElement(rt.Fragment,null,rt.createElement("h1",{className:je.title},"\u4E2A\u4EBA\u603B\u7ED3"),rt.createElement("aside",{className:"pl30 pr30"},rt.createElement(Dn.Z,{value:$e==null?void 0:$e.work_description}))),rt.createElement("h1",{className:je.title},"\u56FE\u5F62\u7EDF\u8BA1"),rt.createElement(ft,{data:Nn}),($e==null?void 0:$e.is_open_submit_test_result)&&rt.createElement(rt.Fragment,null,rt.createElement(Xn.Z,null),rt.createElement("h1",{className:je.title},"\u5B9E\u9A8C\u7ED3\u679C"),(gi=$e==null?void 0:$e.student_work_test_result_info)!=null&&gi.is_submit_test_result?rt.createElement("div",{className:"px-30px"},rt.createElement("div",{className:"py-20px px-36px",style:{background:"#F6F7F9"}},rt.createElement("div",{ref:dA,style:{maxHeight:!Ti&&"500px",overflow:"hidden"}},rt.createElement(Dn.Z,{value:(oi=$e==null?void 0:$e.student_work_test_result_info)==null?void 0:oi.content})),gA&&rt.createElement("div",{className:"w-full current",onClick:()=>{xA(!Ti)}},rt.createElement(He.Z,{variant:"dashed",style:{borderColor:"#3061D0",marginBottom:"0px"},dashed:!0},rt.createElement("span",{style:{color:"#3061D0"}},Ti?"\u6536\u8D77":"\u5C55\u5F00")))),rt.createElement(Fr.Z,{className:"px-36px",showDimensions:!1,dataSource:(vi=$e==null?void 0:$e.student_work_test_result_info)==null?void 0:vi.test_result_files,callback:()=>{}})):rt.createElement(Rr.Z,{customText:"\u5B66\u751F\u672A\u63D0\u4EA4\u5B9E\u9A8C\u7ED3\u679C"})),rt.createElement("h1",{className:je.title},"\u5B9E\u8BAD\u8BE6\u60C5")),rt.createElement(vn,{autoHeight:gn}))),(0,Pe.GJ)()&&rt.createElement("aside",{className:`${je.footerBar} ${zn?je.footerBarStatic:""}`},rt.createElement("aside",{className:"edu-container"},rt.createElement(we.Z,{align:"middle"},rt.createElement(ot.Z,{flex:"1"},rt.createElement(ze.Link,{className:je.exitComment,to:`/classrooms/${_e.coursesId}/shixun_homework/${_e.categoryId}/detail`},"\u8FD4\u56DE\u5217\u8868")),rt.createElement(ot.Z,{flex:"1",className:"tr"},rt.createElement(Xe.ZP,{type:"default",disabled:!($e!=null&&$e.pre_student_work_id),onClick:()=>BA()},"\u4E0A\u4E00\u4E2A"),rt.createElement(Xe.ZP,{type:"default",style:{marginLeft:"20px",marginRight:"20px"},disabled:!($e!=null&&$e.next_student_work_id),onClick:()=>BA("next")},"\u4E0B\u4E00\u4E2A"),(0,Pe.GJ)()&&rt.createElement(Xe.ZP,{type:"primary",onClick:()=>er(void 0,null,function*(){yr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u66F4\u6539\u70B9\u8BC4",selectArrs:{myshixun_identifier:$e.user_id,data:kn({},$e)},fn:()=>EA({page:1,page_size:10},"all")}})})},"\u70B9\u8BC4\u4F5C\u4E1A"))))))),rt.createElement(pn,null),rt.createElement(Wn.Z,null),rt.createElement(Fe.default,{open:hr,width:860,centered:!0,onCancel:()=>{Tr(!1)},title:"\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",footer:null},rt.createElement("div",{style:{color:"#333333",fontWeight:400}},rt.createElement("span",{style:{fontWeight:500}},"1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"),rt.createElement("br",null),rt.createElement("span",null,"\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),rt.createElement("br",null),rt.createElement("span",null," \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"),rt.createElement("span",{style:{color:"#FA6400",display:"flex",height:34,alignItems:"center"}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),rt.createElement("span",null,"a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),rt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},rt.createElement("span",{style:{fontWeight:500}},"2\u3001\u5173\u5361\u603B\u8017\u65F6"),rt.createElement("br",null),rt.createElement("span",{style:{}},"\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "),rt.createElement("br",null),rt.createElement("span",null," \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"),rt.createElement("span",{style:{color:"#FA6400",display:"flex",height:44,paddingTop:10}}," \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "),rt.createElement("span",null,"a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"),rt.createElement("br",null),rt.createElement("span",null,"b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),rt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},rt.createElement("span",{style:{fontWeight:500}},"3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),rt.createElement("br",null),rt.createElement("span",{style:{}},"\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),rt.createElement("div",{style:{color:"#333333",marginTop:20,fontWeight:400}},rt.createElement("span",{style:{fontWeight:500}},"\u89C4\u5219\u76EE\u7684"),rt.createElement("br",null),rt.createElement("span",{style:{}},"\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))),rt.createElement(Fe.default,{open:Hr,title:"\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",centered:!0,footer:null,onCancel:()=>{fi(!1)},width:600},rt.createElement("div",{style:{fontWeight:400,color:"#333333"}},rt.createElement("div",null,"1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",rt.createElement("span",{style:{color:"#145DFF"}},"\u9875\u9762\u505C\u7559\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),rt.createElement("div",{style:{margin:"20px 0px"}},"2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",rt.createElement("span",{style:{color:"#145DFF"}},"\u5173\u5361\u603B\u8017\u65F6"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"),rt.createElement("div",null,"3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C",rt.createElement("span",{style:{color:"#145DFF"}},"\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"),"\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))),rt.createElement(Fe.default,{open:Jr,title:"\u6210\u7EE9\u8C03\u5206\u8BB0\u5F55",centered:!0,footer:null,onCancel:()=>{Bt("all"),Ai(!1)},destroyOnClose:!0,width:900},rt.createElement("div",{style:{fontWeight:400,color:"#333333"}},rt.createElement("div",null,rt.createElement("span",null,"\u5173\u5361\uFF1A"),rt.createElement(Oe.default,{style:{width:300},value:An,placeholder:"\u8BF7\u9009\u62E9\u5173\u5361",defaultValue:"all",onChange:pr=>er(void 0,null,function*(){Bt(pr),EA({page:1,page_size:10},pr)})},rt.createElement(Oe.default.Option,{value:"all"}," \u5168\u90E8 "),(Ne=$e==null?void 0:$e.stage_list)==null?void 0:Ne.map((pr,ai)=>rt.createElement(Oe.default.Option,{key:ai,value:pr==null?void 0:pr.challenge_id},"\u7B2C",(0,Ge.EM)(ai+1),"\u5173")))),rt.createElement("div",{className:"mt20"},rt.createElement(at.default,{dataSource:tn,rowKey:pr=>pr==null?void 0:pr.id,pagination:!1,columns:Mi,loading:Ht})),rt.createElement("div",{className:je.footer},rt.createElement("div",null,rt.createElement("span",{style:{color:"#656F87"}},"\u5171",rt.createElement("span",{className:"c-light-primary"},Gt),"\u6761\u6570\u636E")),rt.createElement(We.Z,{defaultCurrent:1,defaultPageSize:10,current:(Vt==null?void 0:Vt.page)||1,showSizeChanger:!1,showQuickJumper:!0,hideOnSinglePage:!0,total:Gt,onChange:nA})))))};var It=(0,ze.connect)(({shixunHomeworks:an,classroomList:mt,loading:dn,globalSetting:Tn,user:Br})=>({shixunHomeworks:an,classroomList:mt,globalSetting:Tn,loading:dn.effects,user:Br}))(wr)},29678:function(xn,dt,fe){"use strict";var re=fe(62957),Me=fe(6767),De=fe(82093),Ze=fe(76560),Ee=fe(34055),de=fe(59301),ze=(Ie,ve,ut)=>new Promise((we,ot)=>{var Xe=Te=>{try{He(ut.next(Te))}catch(at){ot(at)}},Je=Te=>{try{He(ut.throw(Te))}catch(at){ot(at)}},He=Te=>Te.done?we(Te.value):Promise.resolve(Te.value).then(Xe,Je);He((ut=ut.apply(Ie,ve)).next())});const Fe=({shixunHomeworks:Ie,classroomList:ve,dispatch:ut})=>{const we=(0,Ze.useParams)();return de.createElement(re.default,{centered:!0,title:"\u63D0\u793A",open:Ie.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ze(void 0,null,function*(){var ot,Xe,Je,He;if((0,Ee.Rm)()&&!((ot=ve.AssistantObject.practice)!=null&&ot.can_redo)){Me.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}const Te=yield(0,De.ZP)(`/api/myshixuns/${Ie.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,{method:"GET",params:{course_id:we.coursesId,homework_common_id:Ie.actionTabs.homework_common_id}});if(Te.shixun_identifier){Me.ZP.success("\u64CD\u4F5C\u6210\u529F"),ut({type:"shixunHomeworks/setActionTabs",payload:{}});const at=(Je=(Xe=Te==null?void 0:Te.new_works)==null?void 0:Xe.find(Oe=>`${Oe.homework_common_id}`===we.categoryId))==null?void 0:Je.id;if((0,Ee.Rm)()&&!((He=ve.AssistantObject.practice)!=null&&He.can_view))return;Ze.history.replace(`/classrooms/${we.coursesId}/shixun_homework/${we.categoryId}/${at}/comment`)}}),onCancel:()=>{ut({type:"shixunHomeworks/setActionTabs",payload:{}})}},de.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),de.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))};dt.Z=(0,Ze.connect)(({shixunHomeworks:Ie,classroomList:ve})=>({shixunHomeworks:Ie,classroomList:ve}))(Fe)},30975:function(xn,dt,fe){"use strict";fe.d(dt,{AD:function(){return ft},BA:function(){return ee},D9:function(){return Lt},Hp:function(){return Ue},IM:function(){return hn},Iy:function(){return qe},KM:function(){return ue},KU:function(){return jn},MJ:function(){return ke},Ne:function(){return Fn},ON:function(){return wn},Uj:function(){return ln},VY:function(){return Yt},YO:function(){return un},YX:function(){return Dt},Zn:function(){return Je},_g:function(){return We},_k:function(){return Re},c6:function(){return ht},cr:function(){return He},eV:function(){return et},fi:function(){return Te},gh:function(){return lt},hS:function(){return vt},iA:function(){return at},j6:function(){return be},je:function(){return fn},jj:function(){return Be},kS:function(){return yt},lS:function(){return $t},o6:function(){return je},pO:function(){return ge},rQ:function(){return Tt},sA:function(){return Ge},xm:function(){return xe},xo:function(){return Jt},y8:function(){return Kt},yd:function(){return Oe}});var re=fe(64948),Me=fe(76560),De=fe(49661),Ze=fe(6767),Ee=fe(90524),de=Object.defineProperty,ze=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,ve=(b,ae,ie)=>ae in b?de(b,ae,{enumerable:!0,configurable:!0,writable:!0,value:ie}):b[ae]=ie,ut=(b,ae)=>{for(var ie in ae||(ae={}))Fe.call(ae,ie)&&ve(b,ie,ae[ie]);if(ze)for(var ie of ze(ae))Ie.call(ae,ie)&&ve(b,ie,ae[ie]);return b},we=(b,ae,ie)=>new Promise((he,Ye)=>{var pt=bt=>{try{ct(ie.next(bt))}catch(Et){Ye(Et)}},zt=bt=>{try{ct(ie.throw(bt))}catch(Et){Ye(Et)}},ct=bt=>bt.done?he(bt.value):Promise.resolve(bt.value).then(pt,zt);ct((ie=ie.apply(b,ae)).next())});const ot=()=>{(0,Me.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},Xe=()=>{(0,Me.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},Je=b=>we(void 0,null,function*(){ot(),(yield(0,re.YR)(ut({},b))).status===0&&(yield(0,De.QH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/courses/${b.coursesId}/export_couser_info.json`,query:b}))),Xe()}),He=b=>we(void 0,null,function*(){const ae=yield(0,re.yS)(ut({},b));if(ae.status===0)Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_member_act_score`);else{if(ae.status===-2)return ae;ae.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_member_act_score`))}}),Te=b=>we(void 0,null,function*(){const ae=yield(0,re.W0)(ut({},b));if(ae.status===0)Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_total_score`);else{if(ae.status===-4)return ae;ae.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_total_score`))}}),at=b=>we(void 0,null,function*(){const ae=yield(0,re.Nl)(ut({},b));if(ae.status===0)Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_total_exercise_and_other`);else{if(ae.status===-4)return ae;ae.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_total_exercise_and_other`))}}),Oe=b=>we(void 0,null,function*(){const ae=yield(0,re.IU)(ut({},b));if(ae.status===0)Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/export_star_user`);else{if(ae.status===-4)return ae;ae.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/export_star_user`))}}),We=b=>we(void 0,null,function*(){const ae=yield(0,re.td)(ut({},b));if(ae.status===0)Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_total_exercise_and_other`);else{if(ae.status===-2)return ae;if(ae.status===-3)(0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_total_exercise_and_other`);else if(ae.status===-4)return ae}}),be=b=>we(void 0,null,function*(){const ae=yield(0,re.QX)(ut({},b));if(ae.status===0)Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_total_homework`);else{if(ae.status===-4)return ae;ae.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/course_total_homework`))}}),Be=(b,ae)=>we(void 0,null,function*(){const ie=yield(0,re.o_)(ut({},b));ie.status===0?(Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/${ae}`)):ie.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/${ae}`))}),Ue=(b,ae)=>we(void 0,null,function*(){const ie=yield(0,re.ZL)(ut({},b));ie.status===0?(Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/${ae}`)):ie.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/${ae}`))}),ke=(b,ae)=>we(void 0,null,function*(){const ie=yield(0,re.vV)(ut({},b));ie.status===0?(Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/${ae}`)):ie.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/${ae}`))}),qe=(b,ae)=>we(void 0,null,function*(){const ie=yield(0,re.aP)(ut({},b));ie.status===0?(Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/${ae}`)):ie.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/${ae}`))}),Pe=b=>we(void 0,null,function*(){ot(),(yield exportCourseWorkListAppendix(ut({},b))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${b.categoryId}/works_list.zip`,query:b}))),Xe()}),Ge=b=>we(void 0,null,function*(){ot(),yield(0,De.QH)("",Ee.Z.API_SERVER+`/api/polls/${b.categoryId}/commit_result.xlsx`),Xe()}),lt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/courses/${b.coursesId}/attendances/export_xlsx_data.xlsx`,query:b}))}),je=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/courses/${b.coursesId}/video_study_statics.xlsx`,query:b}))}),ht=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/courses/${b.coursesId}/export_video_study.xlsx`,query:b}))}),et=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/courses/${b.coursesId}/export_course_students_info.xlsx`,query:b}))}),ft=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+"/api/school_manages/students.xlsx",query:b}))}),Tt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+"/api/item_banks/export.xlsx",query:b}))}),Kt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:b}))}),fn=b=>we(void 0,null,function*(){const ae=yield(0,re.Uy)(ut({},b));ae.status===0?(Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/exercise_score,export_exercise_users`)):ae.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/exercise_score,export_exercise_users`))}),$t=b=>we(void 0,null,function*(){const ae=yield(0,re.tg)(ut({},b));ae.status===0?(Ze.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Me.history.push(`/classrooms/${b.coursesId}/exportlist/exercise_score,export_exercise_report`)):ae.status===-3&&((0,Me.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Me.history.push(`/classrooms/${b.coursesId}/exportlist/exercise_score,export_exercise_report`))}),Re=b=>we(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/export_records/${b.id}.xlsx`,query:b}))}),xe=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:b}))}),Lt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/courses/${b==null?void 0:b.coursesId}/${b.menuKey}_statistic.xlsx?${b.checkedList.map(ae=>`course_group_id[]=${ae}`).join("&")}`,query:b}))}),Fn=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/ec_years/${b==null?void 0:b.ec_year_id}/ec_training_objectives.xlsx`,query:b}))}),hn=b=>we(void 0,null,function*(){yield(0,De.FH)(b==null?void 0:b.name,(0,De.NY)({url:Ee.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:b}))}),vt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/ec_years/${b==null?void 0:b.ec_year_id}/ec_courses.xlsx`,query:b}))}),Jt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/ec_years/${b==null?void 0:b.ec_year_id}/ec_graduation_requirements.xlsx`,query:b}))}),Yt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:b}))}),jn=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/exercises/${b.categoryId}/rank_list.xlsx`,query:b}))}),yt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:b}))}),wn=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/examination_banks/${b.id}.json`,query:b}))}),Dt=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/exercises/${b.categoryId}.json`,query:b}))}),un=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/polls/${b==null?void 0:b.id}/commit_result.json`,query:b}))}),ln=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+"/api/paths/get_task_pass.json",query:b}))}),ge=(b,ae)=>we(void 0,null,function*(){yield(0,De.FH)(ae||"",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/exercises/${b==null?void 0:b.exercise_id}/consult_exercise.json`,query:b}))}),ue=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/competitions/${b==null?void 0:b.identifier}/competition_commit_records/member_works.xlsx`,query:b}))}),ee=b=>we(void 0,null,function*(){yield(0,De.FH)("",(0,De.NY)({url:Ee.Z.API_SERVER+`/api/courses/${b==null?void 0:b.coursesId}/group_homeworks/import_group_template.xlsx`,query:b}))})},98072:function(xn,dt,fe){"use strict";fe.d(dt,{U:function(){return Ie}});var re=fe(59301),Me=Object.defineProperty,De=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,de=(ve,ut,we)=>ut in ve?Me(ve,ut,{enumerable:!0,configurable:!0,writable:!0,value:we}):ve[ut]=we,ze=(ve,ut)=>{for(var we in ut||(ut={}))Ze.call(ut,we)&&de(ve,we,ut[we]);if(De)for(var we of De(ut))Ee.call(ut,we)&&de(ve,we,ut[we]);return ve},Fe=(ve,ut,we)=>new Promise((ot,Xe)=>{var Je=at=>{try{Te(we.next(at))}catch(Oe){Xe(Oe)}},He=at=>{try{Te(we.throw(at))}catch(Oe){Xe(Oe)}},Te=at=>at.done?ot(at.value):Promise.resolve(at.value).then(Je,He);Te((we=we.apply(ve,ut)).next())});function Ie(ve,ut){const[we,ot]=(0,re.useState)(ut),[Xe,Je]=(0,re.useState)(!1),[He,Te]=(0,re.useState)();return[we,Xe,(Oe,We=!1)=>Fe(this,null,function*(){const be=We?ut:ze(ze({},we),Oe);Je(!0),ot(be);const Be=yield ve(be);return Je(!1),Te(Be),Be}),He,Te]}},90290:function(xn,dt,fe){"use strict";fe.d(dt,{AL:function(){return be},Iy:function(){return ut},Qv:function(){return Xe},ez:function(){return We},jb:function(){return we}});var re=fe(32834),Me=fe.n(re),De=fe(11690),Ze=fe.n(De);let Ee=1;function de(Pe,Ge){const lt=Pe.match(/^(\s+)(?:```)/);if(lt===null)return Ge;const je=lt[1];return Ge.split(`
`).map(ht=>{const et=ht.match(/^\s+/);if(et===null)return ht;const[ft]=et;return ft.length>=je.length?ht.slice(je.length):ht}).join(`
`)}let ze=[],Fe=["<ul>"];const Ie=new(Me()).Renderer,ve=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ut(){ze.length=0,Fe=["<ul>"]}const we={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ot(Pe,Ge,lt,je){if(Ge>=Pe.length||Pe[Ge].level<=lt)return Ge;var ht=Pe[Ge];je.push("<li><a href='#"+Ee+ht.anchor+"'>"+ht.text+"</a>"),Ge++;var et=[];return Ge=ot(Pe,Ge,ht.level,et),et.length>0&&(je.push("<ul>"),et.forEach(function(ft){je.push(ft)}),je.push("</ul>")),je.push("</li>"),Ge=ot(Pe,Ge,lt,je),Ge}function Xe(){return ot(ze,0,0,Fe),Fe.push("</ul>"),Fe.join("")}const Je={heading(Pe){const Ge=ve.exec(Pe);if(Ee+=1,Ge)return{type:"heading",raw:Ge[0],depth:Ge[1].length,text:Ge[2]}},fences(Pe){const Ge=this.rules.block.fences.exec(Pe);if(Ge){const lt=Ge[0];let je=de(lt,Ge[3]||"");const ht=Ge[2]?Ge[2].trim():Ge[2];if(["latex","katex","math"].indexOf(ht)>=0){const et=at(),ft=je;je=et,Oe[et]={type:"block",expression:ft}}return{type:"code",raw:lt,lang:ht,text:je}}}},He=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Te=0;const at=()=>`__special_katext_id_${Te++}__`;let Oe={};function We(){return Oe}function be(){Te=0,Oe={}}function Be(Pe){return Pe=Pe.replace(He,(Ge,lt)=>{const je=at();return Oe[je]={type:"inline",expression:lt},je}),Pe}const Ue=Ie.listitem;Ie.listitem=function(Pe){return Ue(Be(Pe))};const ke=Ie.paragraph;Ie.paragraph=function(Pe){return ke(Be(Pe))};const qe=Ie.tablecell;Ie.tablecell=function(Pe,Ge){return qe(Be(Pe),Ge)},Ie.code=function(Pe,Ge,lt){const je=(Ge||"").match(/\S*/)[0];return je?["latex","katex","math"].indexOf(je)>=0?`<p class='editormd-tex'>${Pe}</p>`:`<pre class="prettyprint linenums"><code class="language-${Ge}">${lt?Pe:(0,De.escape)(Pe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(lt?Pe:(0,De.escape)(Pe,!0))+"</code></pre>"},Ie.heading=function(Pe,Ge,lt){let je=this.options.headerPrefix+lt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ze.push({anchor:je,level:Ge,text:Pe}),"<h"+Ge+' id="'+Ee+je+'">'+Pe+"</h"+Ge+">"},Me().setOptions({silent:!0,gfm:!0,pedantic:!1}),Me().use({tokenizer:Je,renderer:Ie}),dt.ZP=Me()},86251:function(xn,dt){"use strict";dt.byteLength=ze,dt.toByteArray=Ie,dt.fromByteArray=we;for(var fe=[],re=[],Me=typeof Uint8Array!="undefined"?Uint8Array:Array,De="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ze=0,Ee=De.length;Ze<Ee;++Ze)fe[Ze]=De[Ze],re[De.charCodeAt(Ze)]=Ze;re[45]=62,re[95]=63;function de(ot){var Xe=ot.length;if(Xe%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var Je=ot.indexOf("=");Je===-1&&(Je=Xe);var He=Je===Xe?0:4-Je%4;return[Je,He]}function ze(ot){var Xe=de(ot),Je=Xe[0],He=Xe[1];return(Je+He)*3/4-He}function Fe(ot,Xe,Je){return(Xe+Je)*3/4-Je}function Ie(ot){var Xe,Je=de(ot),He=Je[0],Te=Je[1],at=new Me(Fe(ot,He,Te)),Oe=0,We=Te>0?He-4:He,be;for(be=0;be<We;be+=4)Xe=re[ot.charCodeAt(be)]<<18|re[ot.charCodeAt(be+1)]<<12|re[ot.charCodeAt(be+2)]<<6|re[ot.charCodeAt(be+3)],at[Oe++]=Xe>>16&255,at[Oe++]=Xe>>8&255,at[Oe++]=Xe&255;return Te===2&&(Xe=re[ot.charCodeAt(be)]<<2|re[ot.charCodeAt(be+1)]>>4,at[Oe++]=Xe&255),Te===1&&(Xe=re[ot.charCodeAt(be)]<<10|re[ot.charCodeAt(be+1)]<<4|re[ot.charCodeAt(be+2)]>>2,at[Oe++]=Xe>>8&255,at[Oe++]=Xe&255),at}function ve(ot){return fe[ot>>18&63]+fe[ot>>12&63]+fe[ot>>6&63]+fe[ot&63]}function ut(ot,Xe,Je){for(var He,Te=[],at=Xe;at<Je;at+=3)He=(ot[at]<<16&16711680)+(ot[at+1]<<8&65280)+(ot[at+2]&255),Te.push(ve(He));return Te.join("")}function we(ot){for(var Xe,Je=ot.length,He=Je%3,Te=[],at=16383,Oe=0,We=Je-He;Oe<We;Oe+=at)Te.push(ut(ot,Oe,Oe+at>We?We:Oe+at));return He===1?(Xe=ot[Je-1],Te.push(fe[Xe>>2]+fe[Xe<<4&63]+"==")):He===2&&(Xe=(ot[Je-2]<<8)+ot[Je-1],Te.push(fe[Xe>>10]+fe[Xe>>4&63]+fe[Xe<<2&63]+"=")),Te.join("")}},19208:function(xn,dt,fe){"use strict";var re;var Me=fe(86251),De=fe(67467),Ze=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;dt.lW=Fe,re=Oe,dt.h2=50;var Ee=2147483647;re=Ee,Fe.TYPED_ARRAY_SUPPORT=de(),!Fe.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function de(){try{var ee=new Uint8Array(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,Uint8Array.prototype),Object.setPrototypeOf(ee,b),ee.foo()===42}catch(ae){return!1}}Object.defineProperty(Fe.prototype,"parent",{enumerable:!0,get:function(){if(Fe.isBuffer(this))return this.buffer}}),Object.defineProperty(Fe.prototype,"offset",{enumerable:!0,get:function(){if(Fe.isBuffer(this))return this.byteOffset}});function ze(ee){if(ee>Ee)throw new RangeError('The value "'+ee+'" is invalid for option "size"');var b=new Uint8Array(ee);return Object.setPrototypeOf(b,Fe.prototype),b}function Fe(ee,b,ae){if(typeof ee=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return we(ee)}return Ie(ee,b,ae)}Fe.poolSize=8192;function Ie(ee,b,ae){if(typeof ee=="string")return ot(ee,b);if(ArrayBuffer.isView(ee))return Je(ee);if(ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee);if(ln(ee,ArrayBuffer)||ee&&ln(ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(ln(ee,SharedArrayBuffer)||ee&&ln(ee.buffer,SharedArrayBuffer)))return He(ee,b,ae);if(typeof ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ie=ee.valueOf&&ee.valueOf();if(ie!=null&&ie!==ee)return Fe.from(ie,b,ae);var he=Te(ee);if(he)return he;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof ee[Symbol.toPrimitive]=="function")return Fe.from(ee[Symbol.toPrimitive]("string"),b,ae);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof ee)}Fe.from=function(ee,b,ae){return Ie(ee,b,ae)},Object.setPrototypeOf(Fe.prototype,Uint8Array.prototype),Object.setPrototypeOf(Fe,Uint8Array);function ve(ee){if(typeof ee!="number")throw new TypeError('"size" argument must be of type number');if(ee<0)throw new RangeError('The value "'+ee+'" is invalid for option "size"')}function ut(ee,b,ae){return ve(ee),ee<=0?ze(ee):b!==void 0?typeof ae=="string"?ze(ee).fill(b,ae):ze(ee).fill(b):ze(ee)}Fe.alloc=function(ee,b,ae){return ut(ee,b,ae)};function we(ee){return ve(ee),ze(ee<0?0:at(ee)|0)}Fe.allocUnsafe=function(ee){return we(ee)},Fe.allocUnsafeSlow=function(ee){return we(ee)};function ot(ee,b){if((typeof b!="string"||b==="")&&(b="utf8"),!Fe.isEncoding(b))throw new TypeError("Unknown encoding: "+b);var ae=We(ee,b)|0,ie=ze(ae),he=ie.write(ee,b);return he!==ae&&(ie=ie.slice(0,he)),ie}function Xe(ee){for(var b=ee.length<0?0:at(ee.length)|0,ae=ze(b),ie=0;ie<b;ie+=1)ae[ie]=ee[ie]&255;return ae}function Je(ee){if(ln(ee,Uint8Array)){var b=new Uint8Array(ee);return He(b.buffer,b.byteOffset,b.byteLength)}return Xe(ee)}function He(ee,b,ae){if(b<0||ee.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(ee.byteLength<b+(ae||0))throw new RangeError('"length" is outside of buffer bounds');var ie;return b===void 0&&ae===void 0?ie=new Uint8Array(ee):ae===void 0?ie=new Uint8Array(ee,b):ie=new Uint8Array(ee,b,ae),Object.setPrototypeOf(ie,Fe.prototype),ie}function Te(ee){if(Fe.isBuffer(ee)){var b=at(ee.length)|0,ae=ze(b);return ae.length===0||ee.copy(ae,0,0,b),ae}if(ee.length!==void 0)return typeof ee.length!="number"||ge(ee.length)?ze(0):Xe(ee);if(ee.type==="Buffer"&&Array.isArray(ee.data))return Xe(ee.data)}function at(ee){if(ee>=Ee)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Ee.toString(16)+" bytes");return ee|0}function Oe(ee){return+ee!=ee&&(ee=0),Fe.alloc(+ee)}Fe.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==Fe.prototype},Fe.compare=function(b,ae){if(ln(b,Uint8Array)&&(b=Fe.from(b,b.offset,b.byteLength)),ln(ae,Uint8Array)&&(ae=Fe.from(ae,ae.offset,ae.byteLength)),!Fe.isBuffer(b)||!Fe.isBuffer(ae))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===ae)return 0;for(var ie=b.length,he=ae.length,Ye=0,pt=Math.min(ie,he);Ye<pt;++Ye)if(b[Ye]!==ae[Ye]){ie=b[Ye],he=ae[Ye];break}return ie<he?-1:he<ie?1:0},Fe.isEncoding=function(b){switch(String(b).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Fe.concat=function(b,ae){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return Fe.alloc(0);var ie;if(ae===void 0)for(ae=0,ie=0;ie<b.length;++ie)ae+=b[ie].length;var he=Fe.allocUnsafe(ae),Ye=0;for(ie=0;ie<b.length;++ie){var pt=b[ie];if(ln(pt,Uint8Array))Ye+pt.length>he.length?Fe.from(pt).copy(he,Ye):Uint8Array.prototype.set.call(he,pt,Ye);else if(Fe.isBuffer(pt))pt.copy(he,Ye);else throw new TypeError('"list" argument must be an Array of Buffers');Ye+=pt.length}return he};function We(ee,b){if(Fe.isBuffer(ee))return ee.length;if(ArrayBuffer.isView(ee)||ln(ee,ArrayBuffer))return ee.byteLength;if(typeof ee!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof ee);var ae=ee.length,ie=arguments.length>2&&arguments[2]===!0;if(!ie&&ae===0)return 0;for(var he=!1;;)switch(b){case"ascii":case"latin1":case"binary":return ae;case"utf8":case"utf-8":return jn(ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ae*2;case"hex":return ae>>>1;case"base64":return Dt(ee).length;default:if(he)return ie?-1:jn(ee).length;b=(""+b).toLowerCase(),he=!0}}Fe.byteLength=We;function be(ee,b,ae){var ie=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((ae===void 0||ae>this.length)&&(ae=this.length),ae<=0)||(ae>>>=0,b>>>=0,ae<=b))return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return $t(this,b,ae);case"utf8":case"utf-8":return et(this,b,ae);case"ascii":return Kt(this,b,ae);case"latin1":case"binary":return fn(this,b,ae);case"base64":return ht(this,b,ae);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Re(this,b,ae);default:if(ie)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),ie=!0}}Fe.prototype._isBuffer=!0;function Be(ee,b,ae){var ie=ee[b];ee[b]=ee[ae],ee[ae]=ie}Fe.prototype.swap16=function(){var b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ae=0;ae<b;ae+=2)Be(this,ae,ae+1);return this},Fe.prototype.swap32=function(){var b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var ae=0;ae<b;ae+=4)Be(this,ae,ae+3),Be(this,ae+1,ae+2);return this},Fe.prototype.swap64=function(){var b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var ae=0;ae<b;ae+=8)Be(this,ae,ae+7),Be(this,ae+1,ae+6),Be(this,ae+2,ae+5),Be(this,ae+3,ae+4);return this},Fe.prototype.toString=function(){var b=this.length;return b===0?"":arguments.length===0?et(this,0,b):be.apply(this,arguments)},Fe.prototype.toLocaleString=Fe.prototype.toString,Fe.prototype.equals=function(b){if(!Fe.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:Fe.compare(this,b)===0},Fe.prototype.inspect=function(){var b="",ae=dt.h2;return b=this.toString("hex",0,ae).replace(/(.{2})/g,"$1 ").trim(),this.length>ae&&(b+=" ... "),"<Buffer "+b+">"},Ze&&(Fe.prototype[Ze]=Fe.prototype.inspect),Fe.prototype.compare=function(b,ae,ie,he,Ye){if(ln(b,Uint8Array)&&(b=Fe.from(b,b.offset,b.byteLength)),!Fe.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(ae===void 0&&(ae=0),ie===void 0&&(ie=b?b.length:0),he===void 0&&(he=0),Ye===void 0&&(Ye=this.length),ae<0||ie>b.length||he<0||Ye>this.length)throw new RangeError("out of range index");if(he>=Ye&&ae>=ie)return 0;if(he>=Ye)return-1;if(ae>=ie)return 1;if(ae>>>=0,ie>>>=0,he>>>=0,Ye>>>=0,this===b)return 0;for(var pt=Ye-he,zt=ie-ae,ct=Math.min(pt,zt),bt=this.slice(he,Ye),Et=b.slice(ae,ie),en=0;en<ct;++en)if(bt[en]!==Et[en]){pt=bt[en],zt=Et[en];break}return pt<zt?-1:zt<pt?1:0};function Ue(ee,b,ae,ie,he){if(ee.length===0)return-1;if(typeof ae=="string"?(ie=ae,ae=0):ae>2147483647?ae=2147483647:ae<-2147483648&&(ae=-2147483648),ae=+ae,ge(ae)&&(ae=he?0:ee.length-1),ae<0&&(ae=ee.length+ae),ae>=ee.length){if(he)return-1;ae=ee.length-1}else if(ae<0)if(he)ae=0;else return-1;if(typeof b=="string"&&(b=Fe.from(b,ie)),Fe.isBuffer(b))return b.length===0?-1:ke(ee,b,ae,ie,he);if(typeof b=="number")return b=b&255,typeof Uint8Array.prototype.indexOf=="function"?he?Uint8Array.prototype.indexOf.call(ee,b,ae):Uint8Array.prototype.lastIndexOf.call(ee,b,ae):ke(ee,[b],ae,ie,he);throw new TypeError("val must be string, number or Buffer")}function ke(ee,b,ae,ie,he){var Ye=1,pt=ee.length,zt=b.length;if(ie!==void 0&&(ie=String(ie).toLowerCase(),ie==="ucs2"||ie==="ucs-2"||ie==="utf16le"||ie==="utf-16le")){if(ee.length<2||b.length<2)return-1;Ye=2,pt/=2,zt/=2,ae/=2}function ct(Mt,tt){return Ye===1?Mt[tt]:Mt.readUInt16BE(tt*Ye)}var bt;if(he){var Et=-1;for(bt=ae;bt<pt;bt++)if(ct(ee,bt)===ct(b,Et===-1?0:bt-Et)){if(Et===-1&&(Et=bt),bt-Et+1===zt)return Et*Ye}else Et!==-1&&(bt-=bt-Et),Et=-1}else for(ae+zt>pt&&(ae=pt-zt),bt=ae;bt>=0;bt--){for(var en=!0,Dn=0;Dn<zt;Dn++)if(ct(ee,bt+Dn)!==ct(b,Dn)){en=!1;break}if(en)return bt}return-1}Fe.prototype.includes=function(b,ae,ie){return this.indexOf(b,ae,ie)!==-1},Fe.prototype.indexOf=function(b,ae,ie){return Ue(this,b,ae,ie,!0)},Fe.prototype.lastIndexOf=function(b,ae,ie){return Ue(this,b,ae,ie,!1)};function qe(ee,b,ae,ie){ae=Number(ae)||0;var he=ee.length-ae;ie?(ie=Number(ie),ie>he&&(ie=he)):ie=he;var Ye=b.length;ie>Ye/2&&(ie=Ye/2);for(var pt=0;pt<ie;++pt){var zt=parseInt(b.substr(pt*2,2),16);if(ge(zt))return pt;ee[ae+pt]=zt}return pt}function Pe(ee,b,ae,ie){return un(jn(b,ee.length-ae),ee,ae,ie)}function Ge(ee,b,ae,ie){return un(yt(b),ee,ae,ie)}function lt(ee,b,ae,ie){return un(Dt(b),ee,ae,ie)}function je(ee,b,ae,ie){return un(wn(b,ee.length-ae),ee,ae,ie)}Fe.prototype.write=function(b,ae,ie,he){if(ae===void 0)he="utf8",ie=this.length,ae=0;else if(ie===void 0&&typeof ae=="string")he=ae,ie=this.length,ae=0;else if(isFinite(ae))ae=ae>>>0,isFinite(ie)?(ie=ie>>>0,he===void 0&&(he="utf8")):(he=ie,ie=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Ye=this.length-ae;if((ie===void 0||ie>Ye)&&(ie=Ye),b.length>0&&(ie<0||ae<0)||ae>this.length)throw new RangeError("Attempt to write outside buffer bounds");he||(he="utf8");for(var pt=!1;;)switch(he){case"hex":return qe(this,b,ae,ie);case"utf8":case"utf-8":return Pe(this,b,ae,ie);case"ascii":case"latin1":case"binary":return Ge(this,b,ae,ie);case"base64":return lt(this,b,ae,ie);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return je(this,b,ae,ie);default:if(pt)throw new TypeError("Unknown encoding: "+he);he=(""+he).toLowerCase(),pt=!0}},Fe.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ht(ee,b,ae){return b===0&&ae===ee.length?Me.fromByteArray(ee):Me.fromByteArray(ee.slice(b,ae))}function et(ee,b,ae){ae=Math.min(ee.length,ae);for(var ie=[],he=b;he<ae;){var Ye=ee[he],pt=null,zt=Ye>239?4:Ye>223?3:Ye>191?2:1;if(he+zt<=ae){var ct,bt,Et,en;switch(zt){case 1:Ye<128&&(pt=Ye);break;case 2:ct=ee[he+1],(ct&192)===128&&(en=(Ye&31)<<6|ct&63,en>127&&(pt=en));break;case 3:ct=ee[he+1],bt=ee[he+2],(ct&192)===128&&(bt&192)===128&&(en=(Ye&15)<<12|(ct&63)<<6|bt&63,en>2047&&(en<55296||en>57343)&&(pt=en));break;case 4:ct=ee[he+1],bt=ee[he+2],Et=ee[he+3],(ct&192)===128&&(bt&192)===128&&(Et&192)===128&&(en=(Ye&15)<<18|(ct&63)<<12|(bt&63)<<6|Et&63,en>65535&&en<1114112&&(pt=en))}}pt===null?(pt=65533,zt=1):pt>65535&&(pt-=65536,ie.push(pt>>>10&1023|55296),pt=56320|pt&1023),ie.push(pt),he+=zt}return Tt(ie)}var ft=4096;function Tt(ee){var b=ee.length;if(b<=ft)return String.fromCharCode.apply(String,ee);for(var ae="",ie=0;ie<b;)ae+=String.fromCharCode.apply(String,ee.slice(ie,ie+=ft));return ae}function Kt(ee,b,ae){var ie="";ae=Math.min(ee.length,ae);for(var he=b;he<ae;++he)ie+=String.fromCharCode(ee[he]&127);return ie}function fn(ee,b,ae){var ie="";ae=Math.min(ee.length,ae);for(var he=b;he<ae;++he)ie+=String.fromCharCode(ee[he]);return ie}function $t(ee,b,ae){var ie=ee.length;(!b||b<0)&&(b=0),(!ae||ae<0||ae>ie)&&(ae=ie);for(var he="",Ye=b;Ye<ae;++Ye)he+=ue[ee[Ye]];return he}function Re(ee,b,ae){for(var ie=ee.slice(b,ae),he="",Ye=0;Ye<ie.length-1;Ye+=2)he+=String.fromCharCode(ie[Ye]+ie[Ye+1]*256);return he}Fe.prototype.slice=function(b,ae){var ie=this.length;b=~~b,ae=ae===void 0?ie:~~ae,b<0?(b+=ie,b<0&&(b=0)):b>ie&&(b=ie),ae<0?(ae+=ie,ae<0&&(ae=0)):ae>ie&&(ae=ie),ae<b&&(ae=b);var he=this.subarray(b,ae);return Object.setPrototypeOf(he,Fe.prototype),he};function xe(ee,b,ae){if(ee%1!==0||ee<0)throw new RangeError("offset is not uint");if(ee+b>ae)throw new RangeError("Trying to access beyond buffer length")}Fe.prototype.readUintLE=Fe.prototype.readUIntLE=function(b,ae,ie){b=b>>>0,ae=ae>>>0,ie||xe(b,ae,this.length);for(var he=this[b],Ye=1,pt=0;++pt<ae&&(Ye*=256);)he+=this[b+pt]*Ye;return he},Fe.prototype.readUintBE=Fe.prototype.readUIntBE=function(b,ae,ie){b=b>>>0,ae=ae>>>0,ie||xe(b,ae,this.length);for(var he=this[b+--ae],Ye=1;ae>0&&(Ye*=256);)he+=this[b+--ae]*Ye;return he},Fe.prototype.readUint8=Fe.prototype.readUInt8=function(b,ae){return b=b>>>0,ae||xe(b,1,this.length),this[b]},Fe.prototype.readUint16LE=Fe.prototype.readUInt16LE=function(b,ae){return b=b>>>0,ae||xe(b,2,this.length),this[b]|this[b+1]<<8},Fe.prototype.readUint16BE=Fe.prototype.readUInt16BE=function(b,ae){return b=b>>>0,ae||xe(b,2,this.length),this[b]<<8|this[b+1]},Fe.prototype.readUint32LE=Fe.prototype.readUInt32LE=function(b,ae){return b=b>>>0,ae||xe(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},Fe.prototype.readUint32BE=Fe.prototype.readUInt32BE=function(b,ae){return b=b>>>0,ae||xe(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},Fe.prototype.readIntLE=function(b,ae,ie){b=b>>>0,ae=ae>>>0,ie||xe(b,ae,this.length);for(var he=this[b],Ye=1,pt=0;++pt<ae&&(Ye*=256);)he+=this[b+pt]*Ye;return Ye*=128,he>=Ye&&(he-=Math.pow(2,8*ae)),he},Fe.prototype.readIntBE=function(b,ae,ie){b=b>>>0,ae=ae>>>0,ie||xe(b,ae,this.length);for(var he=ae,Ye=1,pt=this[b+--he];he>0&&(Ye*=256);)pt+=this[b+--he]*Ye;return Ye*=128,pt>=Ye&&(pt-=Math.pow(2,8*ae)),pt},Fe.prototype.readInt8=function(b,ae){return b=b>>>0,ae||xe(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},Fe.prototype.readInt16LE=function(b,ae){b=b>>>0,ae||xe(b,2,this.length);var ie=this[b]|this[b+1]<<8;return ie&32768?ie|4294901760:ie},Fe.prototype.readInt16BE=function(b,ae){b=b>>>0,ae||xe(b,2,this.length);var ie=this[b+1]|this[b]<<8;return ie&32768?ie|4294901760:ie},Fe.prototype.readInt32LE=function(b,ae){return b=b>>>0,ae||xe(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},Fe.prototype.readInt32BE=function(b,ae){return b=b>>>0,ae||xe(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},Fe.prototype.readFloatLE=function(b,ae){return b=b>>>0,ae||xe(b,4,this.length),De.read(this,b,!0,23,4)},Fe.prototype.readFloatBE=function(b,ae){return b=b>>>0,ae||xe(b,4,this.length),De.read(this,b,!1,23,4)},Fe.prototype.readDoubleLE=function(b,ae){return b=b>>>0,ae||xe(b,8,this.length),De.read(this,b,!0,52,8)},Fe.prototype.readDoubleBE=function(b,ae){return b=b>>>0,ae||xe(b,8,this.length),De.read(this,b,!1,52,8)};function Lt(ee,b,ae,ie,he,Ye){if(!Fe.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>he||b<Ye)throw new RangeError('"value" argument is out of bounds');if(ae+ie>ee.length)throw new RangeError("Index out of range")}Fe.prototype.writeUintLE=Fe.prototype.writeUIntLE=function(b,ae,ie,he){if(b=+b,ae=ae>>>0,ie=ie>>>0,!he){var Ye=Math.pow(2,8*ie)-1;Lt(this,b,ae,ie,Ye,0)}var pt=1,zt=0;for(this[ae]=b&255;++zt<ie&&(pt*=256);)this[ae+zt]=b/pt&255;return ae+ie},Fe.prototype.writeUintBE=Fe.prototype.writeUIntBE=function(b,ae,ie,he){if(b=+b,ae=ae>>>0,ie=ie>>>0,!he){var Ye=Math.pow(2,8*ie)-1;Lt(this,b,ae,ie,Ye,0)}var pt=ie-1,zt=1;for(this[ae+pt]=b&255;--pt>=0&&(zt*=256);)this[ae+pt]=b/zt&255;return ae+ie},Fe.prototype.writeUint8=Fe.prototype.writeUInt8=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,1,255,0),this[ae]=b&255,ae+1},Fe.prototype.writeUint16LE=Fe.prototype.writeUInt16LE=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,2,65535,0),this[ae]=b&255,this[ae+1]=b>>>8,ae+2},Fe.prototype.writeUint16BE=Fe.prototype.writeUInt16BE=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,2,65535,0),this[ae]=b>>>8,this[ae+1]=b&255,ae+2},Fe.prototype.writeUint32LE=Fe.prototype.writeUInt32LE=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,4,4294967295,0),this[ae+3]=b>>>24,this[ae+2]=b>>>16,this[ae+1]=b>>>8,this[ae]=b&255,ae+4},Fe.prototype.writeUint32BE=Fe.prototype.writeUInt32BE=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,4,4294967295,0),this[ae]=b>>>24,this[ae+1]=b>>>16,this[ae+2]=b>>>8,this[ae+3]=b&255,ae+4},Fe.prototype.writeIntLE=function(b,ae,ie,he){if(b=+b,ae=ae>>>0,!he){var Ye=Math.pow(2,8*ie-1);Lt(this,b,ae,ie,Ye-1,-Ye)}var pt=0,zt=1,ct=0;for(this[ae]=b&255;++pt<ie&&(zt*=256);)b<0&&ct===0&&this[ae+pt-1]!==0&&(ct=1),this[ae+pt]=(b/zt>>0)-ct&255;return ae+ie},Fe.prototype.writeIntBE=function(b,ae,ie,he){if(b=+b,ae=ae>>>0,!he){var Ye=Math.pow(2,8*ie-1);Lt(this,b,ae,ie,Ye-1,-Ye)}var pt=ie-1,zt=1,ct=0;for(this[ae+pt]=b&255;--pt>=0&&(zt*=256);)b<0&&ct===0&&this[ae+pt+1]!==0&&(ct=1),this[ae+pt]=(b/zt>>0)-ct&255;return ae+ie},Fe.prototype.writeInt8=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,1,127,-128),b<0&&(b=255+b+1),this[ae]=b&255,ae+1},Fe.prototype.writeInt16LE=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,2,32767,-32768),this[ae]=b&255,this[ae+1]=b>>>8,ae+2},Fe.prototype.writeInt16BE=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,2,32767,-32768),this[ae]=b>>>8,this[ae+1]=b&255,ae+2},Fe.prototype.writeInt32LE=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,4,2147483647,-2147483648),this[ae]=b&255,this[ae+1]=b>>>8,this[ae+2]=b>>>16,this[ae+3]=b>>>24,ae+4},Fe.prototype.writeInt32BE=function(b,ae,ie){return b=+b,ae=ae>>>0,ie||Lt(this,b,ae,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[ae]=b>>>24,this[ae+1]=b>>>16,this[ae+2]=b>>>8,this[ae+3]=b&255,ae+4};function Fn(ee,b,ae,ie,he,Ye){if(ae+ie>ee.length)throw new RangeError("Index out of range");if(ae<0)throw new RangeError("Index out of range")}function hn(ee,b,ae,ie,he){return b=+b,ae=ae>>>0,he||Fn(ee,b,ae,4,34028234663852886e22,-34028234663852886e22),De.write(ee,b,ae,ie,23,4),ae+4}Fe.prototype.writeFloatLE=function(b,ae,ie){return hn(this,b,ae,!0,ie)},Fe.prototype.writeFloatBE=function(b,ae,ie){return hn(this,b,ae,!1,ie)};function vt(ee,b,ae,ie,he){return b=+b,ae=ae>>>0,he||Fn(ee,b,ae,8,17976931348623157e292,-17976931348623157e292),De.write(ee,b,ae,ie,52,8),ae+8}Fe.prototype.writeDoubleLE=function(b,ae,ie){return vt(this,b,ae,!0,ie)},Fe.prototype.writeDoubleBE=function(b,ae,ie){return vt(this,b,ae,!1,ie)},Fe.prototype.copy=function(b,ae,ie,he){if(!Fe.isBuffer(b))throw new TypeError("argument should be a Buffer");if(ie||(ie=0),!he&&he!==0&&(he=this.length),ae>=b.length&&(ae=b.length),ae||(ae=0),he>0&&he<ie&&(he=ie),he===ie||b.length===0||this.length===0)return 0;if(ae<0)throw new RangeError("targetStart out of bounds");if(ie<0||ie>=this.length)throw new RangeError("Index out of range");if(he<0)throw new RangeError("sourceEnd out of bounds");he>this.length&&(he=this.length),b.length-ae<he-ie&&(he=b.length-ae+ie);var Ye=he-ie;return this===b&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ae,ie,he):Uint8Array.prototype.set.call(b,this.subarray(ie,he),ae),Ye},Fe.prototype.fill=function(b,ae,ie,he){if(typeof b=="string"){if(typeof ae=="string"?(he=ae,ae=0,ie=this.length):typeof ie=="string"&&(he=ie,ie=this.length),he!==void 0&&typeof he!="string")throw new TypeError("encoding must be a string");if(typeof he=="string"&&!Fe.isEncoding(he))throw new TypeError("Unknown encoding: "+he);if(b.length===1){var Ye=b.charCodeAt(0);(he==="utf8"&&Ye<128||he==="latin1")&&(b=Ye)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));if(ae<0||this.length<ae||this.length<ie)throw new RangeError("Out of range index");if(ie<=ae)return this;ae=ae>>>0,ie=ie===void 0?this.length:ie>>>0,b||(b=0);var pt;if(typeof b=="number")for(pt=ae;pt<ie;++pt)this[pt]=b;else{var zt=Fe.isBuffer(b)?b:Fe.from(b,he),ct=zt.length;if(ct===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(pt=0;pt<ie-ae;++pt)this[pt+ae]=zt[pt%ct]}return this};var Jt=/[^+/0-9A-Za-z-_]/g;function Yt(ee){if(ee=ee.split("=")[0],ee=ee.trim().replace(Jt,""),ee.length<2)return"";for(;ee.length%4!==0;)ee=ee+"=";return ee}function jn(ee,b){b=b||1/0;for(var ae,ie=ee.length,he=null,Ye=[],pt=0;pt<ie;++pt){if(ae=ee.charCodeAt(pt),ae>55295&&ae<57344){if(!he){if(ae>56319){(b-=3)>-1&&Ye.push(239,191,189);continue}else if(pt+1===ie){(b-=3)>-1&&Ye.push(239,191,189);continue}he=ae;continue}if(ae<56320){(b-=3)>-1&&Ye.push(239,191,189),he=ae;continue}ae=(he-55296<<10|ae-56320)+65536}else he&&(b-=3)>-1&&Ye.push(239,191,189);if(he=null,ae<128){if((b-=1)<0)break;Ye.push(ae)}else if(ae<2048){if((b-=2)<0)break;Ye.push(ae>>6|192,ae&63|128)}else if(ae<65536){if((b-=3)<0)break;Ye.push(ae>>12|224,ae>>6&63|128,ae&63|128)}else if(ae<1114112){if((b-=4)<0)break;Ye.push(ae>>18|240,ae>>12&63|128,ae>>6&63|128,ae&63|128)}else throw new Error("Invalid code point")}return Ye}function yt(ee){for(var b=[],ae=0;ae<ee.length;++ae)b.push(ee.charCodeAt(ae)&255);return b}function wn(ee,b){for(var ae,ie,he,Ye=[],pt=0;pt<ee.length&&!((b-=2)<0);++pt)ae=ee.charCodeAt(pt),ie=ae>>8,he=ae%256,Ye.push(he),Ye.push(ie);return Ye}function Dt(ee){return Me.toByteArray(Yt(ee))}function un(ee,b,ae,ie){for(var he=0;he<ie&&!(he+ae>=b.length||he>=ee.length);++he)b[he+ae]=ee[he];return he}function ln(ee,b){return ee instanceof b||ee!=null&&ee.constructor!=null&&ee.constructor.name!=null&&ee.constructor.name===b.name}function ge(ee){return ee!==ee}var ue=function(){for(var ee="0123456789abcdef",b=new Array(256),ae=0;ae<16;++ae)for(var ie=ae*16,he=0;he<16;++he)b[ie+he]=ee[ae]+ee[he];return b}()},14625:function(xn){function dt(re){var Me,De,Ze="";if(typeof re=="string"||typeof re=="number")Ze+=re;else if(typeof re=="object")if(Array.isArray(re)){var Ee=re.length;for(Me=0;Me<Ee;Me++)re[Me]&&(De=dt(re[Me]))&&(Ze&&(Ze+=" "),Ze+=De)}else for(De in re)re[De]&&(Ze&&(Ze+=" "),Ze+=De);return Ze}function fe(){for(var re,Me,De=0,Ze="",Ee=arguments.length;De<Ee;De++)(re=arguments[De])&&(Me=dt(re))&&(Ze&&(Ze+=" "),Ze+=Me);return Ze}xn.exports=fe,xn.exports.clsx=fe},99498:function(xn,dt,fe){(function(re){re(fe(89780))})(function(re){re.defineOption("placeholder","",function(Fe,Ie,ve){var ut=ve&&ve!=re.Init;if(Ie&&!ut)Fe.on("blur",Ee),Fe.on("change",de),Fe.on("swapDoc",de),re.on(Fe.getInputField(),"compositionupdate",Fe.state.placeholderCompose=function(){Ze(Fe)}),de(Fe);else if(!Ie&&ut){Fe.off("blur",Ee),Fe.off("change",de),Fe.off("swapDoc",de),re.off(Fe.getInputField(),"compositionupdate",Fe.state.placeholderCompose),Me(Fe);var we=Fe.getWrapperElement();we.className=we.className.replace(" CodeMirror-empty","")}Ie&&!Fe.hasFocus()&&Ee(Fe)});function Me(Fe){Fe.state.placeholder&&(Fe.state.placeholder.parentNode.removeChild(Fe.state.placeholder),Fe.state.placeholder=null)}function De(Fe){Me(Fe);var Ie=Fe.state.placeholder=document.createElement("pre");Ie.style.cssText="height: 0; overflow: visible",Ie.style.direction=Fe.getOption("direction"),Ie.className="CodeMirror-placeholder CodeMirror-line-like";var ve=Fe.getOption("placeholder");typeof ve=="string"&&(ve=document.createTextNode(ve)),Ie.appendChild(ve),Fe.display.lineSpace.insertBefore(Ie,Fe.display.lineSpace.firstChild)}function Ze(Fe){setTimeout(function(){var Ie=!1,ve=Fe.getInputField();ve.nodeName=="TEXTAREA"?Ie=!ve.value:Fe.lineCount()==1&&(Ie=!/[^\u200b]/.test(ve.querySelector(".CodeMirror-line").textContent)),Ie?De(Fe):Me(Fe)},20)}function Ee(Fe){ze(Fe)&&De(Fe)}function de(Fe){var Ie=Fe.getWrapperElement(),ve=ze(Fe);Ie.className=Ie.className.replace(" CodeMirror-empty","")+(ve?" CodeMirror-empty":""),ve?De(Fe):Me(Fe)}function ze(Fe){return Fe.lineCount()===1&&Fe.getLine(0)===""}})},25717:function(xn,dt,fe){(function(re){re(fe(89780))})(function(re){var Me={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},De=re.Pos;re.defineOption("autoCloseBrackets",!1,function(Je,He,Te){Te&&Te!=re.Init&&(Je.removeKeyMap(Ee),Je.state.closeBrackets=null),He&&(de(Ze(He,"pairs")),Je.state.closeBrackets=He,Je.addKeyMap(Ee))});function Ze(Je,He){return He=="pairs"&&typeof Je=="string"?Je:typeof Je=="object"&&Je[He]!=null?Je[He]:Me[He]}var Ee={Backspace:Ie,Enter:ve};function de(Je){for(var He=0;He<Je.length;He++){var Te=Je.charAt(He),at="'"+Te+"'";Ee[at]||(Ee[at]=ze(Te))}}de(Me.pairs+"`");function ze(Je){return function(He){return we(He,Je)}}function Fe(Je){var He=Je.state.closeBrackets;if(!He||He.override)return He;var Te=Je.getModeAt(Je.getCursor());return Te.closeBrackets||He}function Ie(Je){var He=Fe(Je);if(!He||Je.getOption("disableInput"))return re.Pass;for(var Te=Ze(He,"pairs"),at=Je.listSelections(),Oe=0;Oe<at.length;Oe++){if(!at[Oe].empty())return re.Pass;var We=ot(Je,at[Oe].head);if(!We||Te.indexOf(We)%2!=0)return re.Pass}for(var Oe=at.length-1;Oe>=0;Oe--){var be=at[Oe].head;Je.replaceRange("",De(be.line,be.ch-1),De(be.line,be.ch+1),"+delete")}}function ve(Je){var He=Fe(Je),Te=He&&Ze(He,"explode");if(!Te||Je.getOption("disableInput"))return re.Pass;for(var at=Je.listSelections(),Oe=0;Oe<at.length;Oe++){if(!at[Oe].empty())return re.Pass;var We=ot(Je,at[Oe].head);if(!We||Te.indexOf(We)%2!=0)return re.Pass}Je.operation(function(){var be=Je.lineSeparator()||`
`;Je.replaceSelection(be+be,null),Je.execCommand("goCharLeft"),at=Je.listSelections();for(var Be=0;Be<at.length;Be++){var Ue=at[Be].head.line;Je.indentLine(Ue,null,!0),Je.indentLine(Ue+1,null,!0)}})}function ut(Je){var He=re.cmpPos(Je.anchor,Je.head)>0;return{anchor:new De(Je.anchor.line,Je.anchor.ch+(He?-1:1)),head:new De(Je.head.line,Je.head.ch+(He?1:-1))}}function we(Je,He){var Te=Fe(Je);if(!Te||Je.getOption("disableInput"))return re.Pass;var at=Ze(Te,"pairs"),Oe=at.indexOf(He);if(Oe==-1)return re.Pass;for(var We=Ze(Te,"closeBefore"),be=Ze(Te,"triples"),Be=at.charAt(Oe+1)==He,Ue=Je.listSelections(),ke=Oe%2==0,qe,Pe=0;Pe<Ue.length;Pe++){var Ge=Ue[Pe],lt=Ge.head,je,ht=Je.getRange(lt,De(lt.line,lt.ch+1));if(ke&&!Ge.empty())je="surround";else if((Be||!ke)&&ht==He)Be&&Xe(Je,lt)?je="both":be.indexOf(He)>=0&&Je.getRange(lt,De(lt.line,lt.ch+3))==He+He+He?je="skipThree":je="skip";else if(Be&&lt.ch>1&&be.indexOf(He)>=0&&Je.getRange(De(lt.line,lt.ch-2),lt)==He+He){if(lt.ch>2&&/\bstring/.test(Je.getTokenTypeAt(De(lt.line,lt.ch-2))))return re.Pass;je="addFour"}else if(Be){var et=lt.ch==0?" ":Je.getRange(De(lt.line,lt.ch-1),lt);if(!re.isWordChar(ht)&&et!=He&&!re.isWordChar(et))je="both";else return re.Pass}else if(ke&&(ht.length===0||/\s/.test(ht)||We.indexOf(ht)>-1))je="both";else return re.Pass;if(!qe)qe=je;else if(qe!=je)return re.Pass}var ft=Oe%2?at.charAt(Oe-1):He,Tt=Oe%2?He:at.charAt(Oe+1);Je.operation(function(){if(qe=="skip")Je.execCommand("goCharRight");else if(qe=="skipThree")for(var Kt=0;Kt<3;Kt++)Je.execCommand("goCharRight");else if(qe=="surround"){for(var fn=Je.getSelections(),Kt=0;Kt<fn.length;Kt++)fn[Kt]=ft+fn[Kt]+Tt;Je.replaceSelections(fn,"around"),fn=Je.listSelections().slice();for(var Kt=0;Kt<fn.length;Kt++)fn[Kt]=ut(fn[Kt]);Je.setSelections(fn)}else qe=="both"?(Je.replaceSelection(ft+Tt,null),Je.triggerElectric(ft+Tt),Je.execCommand("goCharLeft")):qe=="addFour"&&(Je.replaceSelection(ft+ft+ft+ft,"before"),Je.execCommand("goCharRight"))})}function ot(Je,He){var Te=Je.getRange(De(He.line,He.ch-1),De(He.line,He.ch+1));return Te.length==2?Te:null}function Xe(Je,He){var Te=Je.getTokenAt(De(He.line,He.ch+1));return/\bstring/.test(Te.type)&&Te.start==He.ch&&(He.ch==0||!/\bstring/.test(Je.getTokenTypeAt(He)))}})},6313:function(xn,dt,fe){(function(re){re(fe(89780),fe(52730))})(function(re){re.defineOption("autoCloseTags",!1,function(Ie,ve,ut){if(ut!=re.Init&&ut&&Ie.removeKeyMap("autoCloseTags"),!!ve){var we={name:"autoCloseTags"};(typeof ve!="object"||ve.whenClosing!==!1)&&(we["'/'"]=function(ot){return de(ot)}),(typeof ve!="object"||ve.whenOpening!==!1)&&(we["'>'"]=function(ot){return Ze(ot)}),Ie.addKeyMap(we)}});var Me=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],De=["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 Ze(Ie){if(Ie.getOption("disableInput"))return re.Pass;for(var ve=Ie.listSelections(),ut=[],we=Ie.getOption("autoCloseTags"),ot=0;ot<ve.length;ot++){if(!ve[ot].empty())return re.Pass;var Xe=ve[ot].head,Je=Ie.getTokenAt(Xe),He=re.innerMode(Ie.getMode(),Je.state),Te=He.state,at=He.mode.xmlCurrentTag&&He.mode.xmlCurrentTag(Te),Oe=at&&at.name;if(!Oe)return re.Pass;var We=He.mode.configuration=="html",be=typeof we=="object"&&we.dontCloseTags||We&&Me,Be=typeof we=="object"&&we.indentTags||We&&De;Je.end>Xe.ch&&(Oe=Oe.slice(0,Oe.length-Je.end+Xe.ch));var Ue=Oe.toLowerCase();if(!Oe||Je.type=="string"&&(Je.end!=Xe.ch||!/[\"\']/.test(Je.string.charAt(Je.string.length-1))||Je.string.length==1)||Je.type=="tag"&&at.close||Je.string.indexOf("/")==Xe.ch-Je.start-1||be&&ze(be,Ue)>-1||Fe(Ie,He.mode.xmlCurrentContext&&He.mode.xmlCurrentContext(Te)||[],Oe,Xe,!0))return re.Pass;var ke=typeof we=="object"&&we.emptyTags;if(ke&&ze(ke,Oe)>-1){ut[ot]={text:"/>",newPos:re.Pos(Xe.line,Xe.ch+2)};continue}var qe=Be&&ze(Be,Ue)>-1;ut[ot]={indent:qe,text:">"+(qe?`
`:"")+"</"+Oe+">",newPos:qe?re.Pos(Xe.line+1,0):re.Pos(Xe.line,Xe.ch+1)}}for(var Pe=typeof we=="object"&&we.dontIndentOnAutoClose,ot=ve.length-1;ot>=0;ot--){var Ge=ut[ot];Ie.replaceRange(Ge.text,ve[ot].head,ve[ot].anchor,"+insert");var lt=Ie.listSelections().slice(0);lt[ot]={head:Ge.newPos,anchor:Ge.newPos},Ie.setSelections(lt),!Pe&&Ge.indent&&(Ie.indentLine(Ge.newPos.line,null,!0),Ie.indentLine(Ge.newPos.line+1,null,!0))}}function Ee(Ie,ve){for(var ut=Ie.listSelections(),we=[],ot=ve?"/":"</",Xe=Ie.getOption("autoCloseTags"),Je=typeof Xe=="object"&&Xe.dontIndentOnSlash,He=0;He<ut.length;He++){if(!ut[He].empty())return re.Pass;var Te=ut[He].head,at=Ie.getTokenAt(Te),Oe=re.innerMode(Ie.getMode(),at.state),We=Oe.state;if(ve&&(at.type=="string"||at.string.charAt(0)!="<"||at.start!=Te.ch-1))return re.Pass;var be,Be=Oe.mode.name!="xml"&&Ie.getMode().name=="htmlmixed";if(Be&&Oe.mode.name=="javascript")be=ot+"script";else if(Be&&Oe.mode.name=="css")be=ot+"style";else{var Ue=Oe.mode.xmlCurrentContext&&Oe.mode.xmlCurrentContext(We);if(!Ue||Ue.length&&Fe(Ie,Ue,Ue[Ue.length-1],Te))return re.Pass;be=ot+Ue[Ue.length-1]}Ie.getLine(Te.line).charAt(at.end)!=">"&&(be+=">"),we[He]=be}if(Ie.replaceSelections(we),ut=Ie.listSelections(),!Je)for(var He=0;He<ut.length;He++)(He==ut.length-1||ut[He].head.line<ut[He+1].head.line)&&Ie.indentLine(ut[He].head.line)}function de(Ie){return Ie.getOption("disableInput")?re.Pass:Ee(Ie,!0)}re.commands.closeTag=function(Ie){return Ee(Ie)};function ze(Ie,ve){if(Ie.indexOf)return Ie.indexOf(ve);for(var ut=0,we=Ie.length;ut<we;++ut)if(Ie[ut]==ve)return ut;return-1}function Fe(Ie,ve,ut,we,ot){if(!re.scanForClosingTag)return!1;var Xe=Math.min(Ie.lastLine()+1,we.line+500),Je=re.scanForClosingTag(Ie,we,null,Xe);if(!Je||Je.tag!=ut)return!1;for(var He=ot?1:0,Te=ve.length-1;Te>=0&&ve[Te]==ut;Te--)++He;we=Je.to;for(var Te=1;Te<He;Te++){var at=re.scanForClosingTag(Ie,we,null,Xe);if(!at||at.tag!=ut)return!1;we=at.to}return!0}})},52730:function(xn,dt,fe){(function(re){re(fe(89780))})(function(re){"use strict";var Me=re.Pos;function De(Te,at){return Te.line-at.line||Te.ch-at.ch}var Ze="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Ee=Ze+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",de=new RegExp("<(/?)(["+Ze+"]["+Ee+"]*)","g");function ze(Te,at,Oe,We){this.line=at,this.ch=Oe,this.cm=Te,this.text=Te.getLine(at),this.min=We?Math.max(We.from,Te.firstLine()):Te.firstLine(),this.max=We?Math.min(We.to-1,Te.lastLine()):Te.lastLine()}function Fe(Te,at){var Oe=Te.cm.getTokenTypeAt(Me(Te.line,at));return Oe&&/\btag\b/.test(Oe)}function Ie(Te){if(!(Te.line>=Te.max))return Te.ch=0,Te.text=Te.cm.getLine(++Te.line),!0}function ve(Te){if(!(Te.line<=Te.min))return Te.text=Te.cm.getLine(--Te.line),Te.ch=Te.text.length,!0}function ut(Te){for(;;){var at=Te.text.indexOf(">",Te.ch);if(at==-1){if(Ie(Te))continue;return}if(!Fe(Te,at+1)){Te.ch=at+1;continue}var Oe=Te.text.lastIndexOf("/",at),We=Oe>-1&&!/\S/.test(Te.text.slice(Oe+1,at));return Te.ch=at+1,We?"selfClose":"regular"}}function we(Te){for(;;){var at=Te.ch?Te.text.lastIndexOf("<",Te.ch-1):-1;if(at==-1){if(ve(Te))continue;return}if(!Fe(Te,at+1)){Te.ch=at;continue}de.lastIndex=at,Te.ch=at;var Oe=de.exec(Te.text);if(Oe&&Oe.index==at)return Oe}}function ot(Te){for(;;){de.lastIndex=Te.ch;var at=de.exec(Te.text);if(!at){if(Ie(Te))continue;return}if(!Fe(Te,at.index+1)){Te.ch=at.index+1;continue}return Te.ch=at.index+at[0].length,at}}function Xe(Te){for(;;){var at=Te.ch?Te.text.lastIndexOf(">",Te.ch-1):-1;if(at==-1){if(ve(Te))continue;return}if(!Fe(Te,at+1)){Te.ch=at;continue}var Oe=Te.text.lastIndexOf("/",at),We=Oe>-1&&!/\S/.test(Te.text.slice(Oe+1,at));return Te.ch=at+1,We?"selfClose":"regular"}}function Je(Te,at){for(var Oe=[];;){var We=ot(Te),be,Be=Te.line,Ue=Te.ch-(We?We[0].length:0);if(!We||!(be=ut(Te)))return;if(be!="selfClose")if(We[1]){for(var ke=Oe.length-1;ke>=0;--ke)if(Oe[ke]==We[2]){Oe.length=ke;break}if(ke<0&&(!at||at==We[2]))return{tag:We[2],from:Me(Be,Ue),to:Me(Te.line,Te.ch)}}else Oe.push(We[2])}}function He(Te,at){for(var Oe=[];;){var We=Xe(Te);if(!We)return;if(We=="selfClose"){we(Te);continue}var be=Te.line,Be=Te.ch,Ue=we(Te);if(!Ue)return;if(Ue[1])Oe.push(Ue[2]);else{for(var ke=Oe.length-1;ke>=0;--ke)if(Oe[ke]==Ue[2]){Oe.length=ke;break}if(ke<0&&(!at||at==Ue[2]))return{tag:Ue[2],from:Me(Te.line,Te.ch),to:Me(be,Be)}}}}re.registerHelper("fold","xml",function(Te,at){for(var Oe=new ze(Te,at.line,0);;){var We=ot(Oe);if(!We||Oe.line!=at.line)return;var be=ut(Oe);if(!be)return;if(!We[1]&&be!="selfClose"){var Be=Me(Oe.line,Oe.ch),Ue=Je(Oe,We[2]);return Ue&&De(Ue.from,Be)>0?{from:Be,to:Ue.from}:null}}}),re.findMatchingTag=function(Te,at,Oe){var We=new ze(Te,at.line,at.ch,Oe);if(!(We.text.indexOf(">")==-1&&We.text.indexOf("<")==-1)){var be=ut(We),Be=be&&Me(We.line,We.ch),Ue=be&&we(We);if(!(!be||!Ue||De(We,at)>0)){var ke={from:Me(We.line,We.ch),to:Be,tag:Ue[2]};return be=="selfClose"?{open:ke,close:null,at:"open"}:Ue[1]?{open:He(We,Ue[2]),close:ke,at:"close"}:(We=new ze(Te,Be.line,Be.ch,Oe),{open:ke,close:Je(We,Ue[2]),at:"open"})}}},re.findEnclosingTag=function(Te,at,Oe,We){for(var be=new ze(Te,at.line,at.ch,Oe);;){var Be=He(be,We);if(!Be)break;var Ue=new ze(Te,at.line,at.ch,Oe),ke=Je(Ue,Be.tag);if(ke)return{open:Be,close:ke}}},re.scanForClosingTag=function(Te,at,Oe,We){var be=new ze(Te,at.line,at.ch,We?{from:0,to:We}:null);return Je(be,Oe)}})},89780:function(xn){(function(dt,fe){xn.exports=fe()})(this,function(){"use strict";var dt=navigator.userAgent,fe=navigator.platform,re=/gecko\/\d/i.test(dt),Me=/MSIE \d/.test(dt),De=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(dt),Ze=/Edge\/(\d+)/.exec(dt),Ee=Me||De||Ze,de=Ee&&(Me?document.documentMode||6:+(Ze||De)[1]),ze=!Ze&&/WebKit\//.test(dt),Fe=ze&&/Qt\/\d+\.\d+/.test(dt),Ie=!Ze&&/Chrome\//.test(dt),ve=/Opera\//.test(dt),ut=/Apple Computer/.test(navigator.vendor),we=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(dt),ot=/PhantomJS/.test(dt),Xe=!Ze&&/AppleWebKit/.test(dt)&&/Mobile\/\w+/.test(dt),Je=/Android/.test(dt),He=Xe||Je||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(dt),Te=Xe||/Mac/.test(fe),at=/\bCrOS\b/.test(dt),Oe=/win/i.test(fe),We=ve&&dt.match(/Version\/(\d*\.\d*)/);We&&(We=Number(We[1])),We&&We>=15&&(ve=!1,ze=!0);var be=Te&&(Fe||ve&&(We==null||We<12.11)),Be=re||Ee&&de>=9;function Ue(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var ke=function(a,y){var E=a.className,x=Ue(y).exec(E);if(x){var z=E.slice(x.index+x[0].length);a.className=E.slice(0,x.index)+(z?x[1]+z:"")}};function qe(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function Pe(a,y){return qe(a).appendChild(y)}function Ge(a,y,E,x){var z=document.createElement(a);if(E&&(z.className=E),x&&(z.style.cssText=x),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var ce=0;ce<y.length;++ce)z.appendChild(y[ce]);return z}function lt(a,y,E,x){var z=Ge(a,y,E,x);return z.setAttribute("role","presentation"),z}var je;document.createRange?je=function(a,y,E,x){var z=document.createRange();return z.setEnd(x||a,E),z.setStart(a,y),z}:je=function(a,y,E){var x=document.body.createTextRange();try{x.moveToElementText(a.parentNode)}catch(z){return x}return x.collapse(!0),x.moveEnd("character",E),x.moveStart("character",y),x};function ht(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function et(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function ft(a,y){var E=a.className;Ue(y).test(E)||(a.className+=(E?" ":"")+y)}function Tt(a,y){for(var E=a.split(" "),x=0;x<E.length;x++)E[x]&&!Ue(E[x]).test(y)&&(y+=" "+E[x]);return y}var Kt=function(a){a.select()};Xe?Kt=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ee&&(Kt=function(a){try{a.select()}catch(y){}});function fn(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function $t(a,y,E){y||(y={});for(var x in a)a.hasOwnProperty(x)&&(E!==!1||!y.hasOwnProperty(x))&&(y[x]=a[x]);return y}function Re(a,y,E,x,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ce=x||0,pe=z||0;;){var Ce=a.indexOf(" ",ce);if(Ce<0||Ce>=y)return pe+(y-ce);pe+=Ce-ce,pe+=E-pe%E,ce=Ce+1}}var xe=function(){this.id=null,this.f=null,this.time=0,this.handler=fn(this.onTimeout,this)};xe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},xe.prototype.set=function(a,y){this.f=y;var E=+new Date+a;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=E)};function Lt(a,y){for(var E=0;E<a.length;++E)if(a[E]==y)return E;return-1}var Fn=50,hn={toString:function(){return"CodeMirror.Pass"}},vt={scroll:!1},Jt={origin:"*mouse"},Yt={origin:"+move"};function jn(a,y,E){for(var x=0,z=0;;){var ce=a.indexOf(" ",x);ce==-1&&(ce=a.length);var pe=ce-x;if(ce==a.length||z+pe>=y)return x+Math.min(pe,y-z);if(z+=ce-x,z+=E-z%E,x=ce+1,z>=y)return x}}var yt=[""];function wn(a){for(;yt.length<=a;)yt.push(Dt(yt)+" ");return yt[a]}function Dt(a){return a[a.length-1]}function un(a,y){for(var E=[],x=0;x<a.length;x++)E[x]=y(a[x],x);return E}function ln(a,y,E){for(var x=0,z=E(y);x<a.length&&E(a[x])<=z;)x++;a.splice(x,0,y)}function ge(){}function ue(a,y){var E;return Object.create?E=Object.create(a):(ge.prototype=a,E=new ge),y&&$t(y,E),E}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function b(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function ae(a,y){return y?y.source.indexOf("\\w")>-1&&b(a)?!0:y.test(a):b(a)}function ie(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var he=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Ye(a){return a.charCodeAt(0)>=768&&he.test(a)}function pt(a,y,E){for(;(E<0?y>0:y<a.length)&&Ye(a.charAt(y));)y+=E;return y}function zt(a,y,E){for(var x=y>E?-1:1;;){if(y==E)return y;var z=(y+E)/2,ce=x<0?Math.ceil(z):Math.floor(z);if(ce==y)return a(ce)?y:E;a(ce)?E=ce:y=ce+x}}function ct(a,y,E,x){if(!a)return x(y,E,"ltr",0);for(var z=!1,ce=0;ce<a.length;++ce){var pe=a[ce];(pe.from<E&&pe.to>y||y==E&&pe.to==y)&&(x(Math.max(pe.from,y),Math.min(pe.to,E),pe.level==1?"rtl":"ltr",ce),z=!0)}z||x(y,E,"ltr")}var bt=null;function Et(a,y,E){var x;bt=null;for(var z=0;z<a.length;++z){var ce=a[z];if(ce.from<y&&ce.to>y)return z;ce.to==y&&(ce.from!=ce.to&&E=="before"?x=z:bt=z),ce.from==y&&(ce.from!=ce.to&&E!="before"?x=z:bt=z)}return x!=null?x:bt}var en=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function E(Ke){return Ke<=247?a.charAt(Ke):1424<=Ke&&Ke<=1524?"R":1536<=Ke&&Ke<=1785?y.charAt(Ke-1536):1774<=Ke&&Ke<=2220?"r":8192<=Ke&&Ke<=8203?"w":Ke==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,ce=/[LRr]/,pe=/[Lb1n]/,Ce=/[1n]/;function Se(Ke,Ft,Qt){this.level=Ke,this.from=Ft,this.to=Qt}return function(Ke,Ft){var Qt=Ft=="ltr"?"L":"R";if(Ke.length==0||Ft=="ltr"&&!x.test(Ke))return!1;for(var Un=Ke.length,bn=[],or=0;or<Un;++or)bn.push(E(Ke.charCodeAt(or)));for(var Cr=0,Mr=Qt;Cr<Un;++Cr){var Gr=bn[Cr];Gr=="m"?bn[Cr]=Mr:Mr=Gr}for(var ri=0,Vr=Qt;ri<Un;++ri){var pi=bn[ri];pi=="1"&&Vr=="r"?bn[ri]="n":ce.test(pi)&&(Vr=pi,pi=="r"&&(bn[ri]="R"))}for(var Ii=1,_i=bn[0];Ii<Un-1;++Ii){var $i=bn[Ii];$i=="+"&&_i=="1"&&bn[Ii+1]=="1"?bn[Ii]="1":$i==","&&_i==bn[Ii+1]&&(_i=="1"||_i=="n")&&(bn[Ii]=_i),_i=$i}for(var RA=0;RA<Un;++RA){var ha=bn[RA];if(ha==",")bn[RA]="N";else if(ha=="%"){var na=void 0;for(na=RA+1;na<Un&&bn[na]=="%";++na);for(var Ga=RA&&bn[RA-1]=="!"||na<Un&&bn[na]=="1"?"1":"N",Fa=RA;Fa<na;++Fa)bn[Fa]=Ga;RA=na-1}}for(var sa=0,Sa=Qt;sa<Un;++sa){var ma=bn[sa];Sa=="L"&&ma=="1"?bn[sa]="L":ce.test(ma)&&(Sa=ma)}for(var zr=0;zr<Un;++zr)if(z.test(bn[zr])){var VA=void 0;for(VA=zr+1;VA<Un&&z.test(bn[VA]);++VA);for(var jA=(zr?bn[zr-1]:Qt)=="L",YA=(VA<Un?bn[VA]:Qt)=="L",Vs=jA==YA?jA?"L":"R":Qt,cA=zr;cA<VA;++cA)bn[cA]=Vs;zr=VA-1}for(var eA=[],eo,pa=0;pa<Un;)if(pe.test(bn[pa])){var js=pa;for(++pa;pa<Un&&pe.test(bn[pa]);++pa);eA.push(new Se(0,js,pa))}else{var Go=pa,ko=eA.length,Ss=Ft=="rtl"?1:0;for(++pa;pa<Un&&bn[pa]!="L";++pa);for(var Ha=Go;Ha<pa;)if(Ce.test(bn[Ha])){Go<Ha&&(eA.splice(ko,0,new Se(1,Go,Ha)),ko+=Ss);var _s=Ha;for(++Ha;Ha<pa&&Ce.test(bn[Ha]);++Ha);eA.splice(ko,0,new Se(2,_s,Ha)),ko+=Ss,Go=Ha}else++Ha;Go<pa&&eA.splice(ko,0,new Se(1,Go,pa))}return Ft=="ltr"&&(eA[0].level==1&&(eo=Ke.match(/^\s+/))&&(eA[0].from=eo[0].length,eA.unshift(new Se(0,0,eo[0].length))),Dt(eA).level==1&&(eo=Ke.match(/\s+$/))&&(Dt(eA).to-=eo[0].length,eA.push(new Se(0,Un-eo[0].length,Un)))),Ft=="rtl"?eA.reverse():eA}}();function Dn(a,y){var E=a.order;return E==null&&(E=a.order=en(a.text,y)),E}var Mt=[],tt=function(a,y,E){if(a.addEventListener)a.addEventListener(y,E,!1);else if(a.attachEvent)a.attachEvent("on"+y,E);else{var x=a._handlers||(a._handlers={});x[y]=(x[y]||Mt).concat(E)}};function on(a,y){return a._handlers&&a._handlers[y]||Mt}function jt(a,y,E){if(a.removeEventListener)a.removeEventListener(y,E,!1);else if(a.detachEvent)a.detachEvent("on"+y,E);else{var x=a._handlers,z=x&&x[y];if(z){var ce=Lt(z,E);ce>-1&&(x[y]=z.slice(0,ce).concat(z.slice(ce+1)))}}}function qt(a,y){var E=on(a,y);if(E.length)for(var x=Array.prototype.slice.call(arguments,2),z=0;z<E.length;++z)E[z].apply(null,x)}function wt(a,y,E){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),qt(a,E||y.type,a,y),vn(y)||y.codemirrorIgnore}function Rn(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var E=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),x=0;x<y.length;++x)Lt(E,y[x])==-1&&E.push(y[x])}function Wt(a,y){return on(a,y).length>0}function Cn(a){a.prototype.on=function(y,E){tt(this,y,E)},a.prototype.off=function(y,E){jt(this,y,E)}}function Mn(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function sr(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function vn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function cr(a){Mn(a),sr(a)}function ar(a){return a.target||a.srcElement}function mr(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Te&&a.ctrlKey&&y==1&&(y=3),y}var $n=function(){if(Ee&&de<9)return!1;var a=Ge("div");return"draggable"in a||"dragDrop"in a}(),Xr;function Pr(a){if(Xr==null){var y=Ge("span","\u200B");Pe(a,Ge("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Xr=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ee&&de<8))}var E=Xr?Ge("span","\u200B"):Ge("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return E.setAttribute("cm-text",""),E}var Er;function Ar(a){if(Er!=null)return Er;var y=Pe(a,document.createTextNode("A\u062EA")),E=je(y,0,1).getBoundingClientRect(),x=je(y,1,2).getBoundingClientRect();return qe(a),!E||E.left==E.right?!1:Er=x.right-E.right<3}var Qr=`
b`.split(/\n/).length!=3?function(a){for(var y=0,E=[],x=a.length;y<=x;){var z=a.indexOf(`
`,y);z==-1&&(z=a.length);var ce=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),pe=ce.indexOf("\r");pe!=-1?(E.push(ce.slice(0,pe)),y+=pe+1):(E.push(ce),y=z+1)}return E}:function(a){return a.split(/\r\n?|\n/)},Vn=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(E){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},qn=function(){var a=Ge("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Yn=null;function pn(a){if(Yn!=null)return Yn;var y=Pe(a,Ge("span","x")),E=y.getBoundingClientRect(),x=je(y,0,1).getBoundingClientRect();return Yn=Math.abs(E.left-x.left)>1}var Wn={},cn={};function Sn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),Wn[a]=y}function fr(a,y){cn[a]=y}function ir(a){if(typeof a=="string"&&cn.hasOwnProperty(a))a=cn[a];else if(a&&typeof a.name=="string"&&cn.hasOwnProperty(a.name)){var y=cn[a.name];typeof y=="string"&&(y={name:y}),a=ue(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return ir("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return ir("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function lr(a,y){y=ir(y);var E=Wn[y.name];if(!E)return lr(a,"text/plain");var x=E(a,y);if(xr.hasOwnProperty(y.name)){var z=xr[y.name];for(var ce in z)z.hasOwnProperty(ce)&&(x.hasOwnProperty(ce)&&(x["_"+ce]=x[ce]),x[ce]=z[ce])}if(x.name=y.name,y.helperType&&(x.helperType=y.helperType),y.modeProps)for(var pe in y.modeProps)x[pe]=y.modeProps[pe];return x}var xr={};function Wr(a,y){var E=xr.hasOwnProperty(a)?xr[a]:xr[a]={};$t(y,E)}function Dr(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var E={};for(var x in y){var z=y[x];z instanceof Array&&(z=z.concat([])),E[x]=z}return E}function Fr(a,y){for(var E;a.innerMode&&(E=a.innerMode(y),!(!E||E.mode==a));)y=E.state,a=E.mode;return E||{mode:a,state:y}}function Rr(a,y,E){return a.startState?a.startState(y,E):!0}var Xn=function(a,y,E){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};Xn.prototype.eol=function(){return this.pos>=this.string.length},Xn.prototype.sol=function(){return this.pos==this.lineStart},Xn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Xn.prototype.eat=function(a){var y=this.string.charAt(this.pos),E;if(typeof a=="string"?E=y==a:E=y&&(a.test?a.test(y):a(y)),E)return++this.pos,y},Xn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},Xn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Xn.prototype.skipToEnd=function(){this.pos=this.string.length},Xn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Xn.prototype.backUp=function(a){this.pos-=a},Xn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},Xn.prototype.indentation=function(){return Re(this.string,null,this.tabSize)-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},Xn.prototype.match=function(a,y,E){if(typeof a=="string"){var x=function(pe){return E?pe.toLowerCase():pe},z=this.string.substr(this.pos,a.length);if(x(z)==x(a))return y!==!1&&(this.pos+=a.length),!0}else{var ce=this.string.slice(this.pos).match(a);return ce&&ce.index>0?null:(ce&&y!==!1&&(this.pos+=ce[0].length),ce)}},Xn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Xn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Xn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function yn(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 E=a;!E.lines;)for(var x=0;;++x){var z=E.children[x],ce=z.chunkSize();if(y<ce){E=z;break}y-=ce}return E.lines[y]}function rt(a,y,E){var x=[],z=y.line;return a.iter(y.line,E.line+1,function(ce){var pe=ce.text;z==E.line&&(pe=pe.slice(0,E.ch)),z==y.line&&(pe=pe.slice(y.ch)),x.push(pe),++z}),x}function Sr(a,y,E){var x=[];return a.iter(y,E,function(z){x.push(z.text)}),x}function Kr(a,y){var E=y-a.height;if(E)for(var x=a;x;x=x.parent)x.height+=E}function _t(a){if(a.parent==null)return null;for(var y=a.parent,E=Lt(y.lines,a),x=y.parent;x;y=x,x=x.parent)for(var z=0;x.children[z]!=y;++z)E+=x.children[z].chunkSize();return E+y.first}function St(a,y){var E=a.first;e:do{for(var x=0;x<a.children.length;++x){var z=a.children[x],ce=z.height;if(y<ce){a=z;continue e}y-=ce,E+=z.chunkSize()}return E}while(!a.lines);for(var pe=0;pe<a.lines.length;++pe){var Ce=a.lines[pe],Se=Ce.height;if(y<Se)break;y-=Se}return E+pe}function Jn(a,y){return y>=a.first&&y<a.first+a.size}function Hn(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Ot(a,y,E){if(E===void 0&&(E=null),!(this instanceof Ot))return new Ot(a,y,E);this.line=a,this.ch=y,this.sticky=E}function kn(a,y){return a.line-y.line||a.ch-y.ch}function nr(a,y){return a.sticky==y.sticky&&kn(a,y)==0}function rr(a){return Ot(a.line,a.ch)}function er(a,y){return kn(a,y)<0?y:a}function ur(a,y){return kn(a,y)<0?a:y}function wr(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function It(a,y){if(y.line<a.first)return Ot(a.first,0);var E=a.first+a.size-1;return y.line>E?Ot(E,yn(a,E).text.length):an(y,yn(a,y.line).text.length)}function an(a,y){var E=a.ch;return E==null||E>y?Ot(a.line,y):E<0?Ot(a.line,0):a}function mt(a,y){for(var E=[],x=0;x<y.length;x++)E[x]=It(a,y[x]);return E}var dn=function(a,y){this.state=a,this.lookAhead=y},Tn=function(a,y,E,x){this.state=y,this.doc=a,this.line=E,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};Tn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},Tn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},Tn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Tn.fromSaved=function(a,y,E){return y instanceof dn?new Tn(a,Dr(a.mode,y.state),E,y.lookAhead):new Tn(a,Dr(a.mode,y),E)},Tn.prototype.save=function(a){var y=a!==!1?Dr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new dn(y,this.maxLookAhead):y};function Br(a,y,E,x){var z=[a.state.modeGen],ce={};oi(a,y.text,a.doc.mode,E,function(Ke,Ft){return z.push(Ke,Ft)},ce,x);for(var pe=E.state,Ce=function(Ke){E.baseTokens=z;var Ft=a.state.overlays[Ke],Qt=1,Un=0;E.state=!0,oi(a,y.text,Ft.mode,E,function(bn,or){for(var Cr=Qt;Un<bn;){var Mr=z[Qt];Mr>bn&&z.splice(Qt,1,bn,z[Qt+1],Mr),Qt+=2,Un=Math.min(bn,Mr)}if(or)if(Ft.opaque)z.splice(Cr,Qt-Cr,bn,"overlay "+or),Qt=Cr+2;else for(;Cr<Qt;Cr+=2){var Gr=z[Cr+1];z[Cr+1]=(Gr?Gr+" ":"")+"overlay "+or}},ce),E.state=pe,E.baseTokens=null,E.baseTokenPos=1},Se=0;Se<a.state.overlays.length;++Se)Ce(Se);return{styles:z,classes:ce.bgClass||ce.textClass?ce:null}}function _r(a,y,E){if(!y.styles||y.styles[0]!=a.state.modeGen){var x=Or(a,_t(y)),z=y.text.length>a.options.maxHighlightLength&&Dr(a.doc.mode,x.state),ce=Br(a,y,x);z&&(x.state=z),y.stateAfter=x.save(!z),y.styles=ce.styles,ce.classes?y.styleClasses=ce.classes:y.styleClasses&&(y.styleClasses=null),E===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Or(a,y,E){var x=a.doc,z=a.display;if(!x.mode.startState)return new Tn(x,!0,y);var ce=vi(a,y,E),pe=ce>x.first&&yn(x,ce-1).stateAfter,Ce=pe?Tn.fromSaved(x,pe,ce):new Tn(x,Rr(x.mode),ce);return x.iter(ce,y,function(Se){yr(a,Se.text,Ce);var Ke=Ce.line;Se.stateAfter=Ke==y-1||Ke%5==0||Ke>=z.viewFrom&&Ke<z.viewTo?Ce.save():null,Ce.nextLine()}),E&&(x.modeFrontier=Ce.line),Ce}function yr(a,y,E,x){var z=a.doc.mode,ce=new Xn(y,a.options.tabSize,E);for(ce.start=ce.pos=x||0,y==""&&kr(z,E.state);!ce.eol();)ii(z,ce,E.state),ce.start=ce.pos}function kr(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var E=Fr(a,y);if(E.mode.blankLine)return E.mode.blankLine(E.state)}}function ii(a,y,E,x){for(var z=0;z<10;z++){x&&(x[0]=Fr(a,E).mode);var ce=a.token(y,E);if(y.pos>y.start)return ce}throw new Error("Mode "+a.name+" failed to advance stream.")}var jr=function(a,y,E){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=E};function hi(a,y,E,x){var z=a.doc,ce=z.mode,pe;y=It(z,y);var Ce=yn(z,y.line),Se=Or(a,y.line,E),Ke=new Xn(Ce.text,a.options.tabSize,Se),Ft;for(x&&(Ft=[]);(x||Ke.pos<y.ch)&&!Ke.eol();)Ke.start=Ke.pos,pe=ii(ce,Ke,Se.state),x&&Ft.push(new jr(Ke,pe,Dr(z.mode,Se.state)));return x?Ft:new jr(Ke,pe,Se.state)}function gi(a,y){if(a)for(;;){var E=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!E)break;a=a.slice(0,E.index)+a.slice(E.index+E[0].length);var x=E[1]?"bgClass":"textClass";y[x]==null?y[x]=E[2]:new RegExp("(?:^|\\s)"+E[2]+"(?:$|\\s)").test(y[x])||(y[x]+=" "+E[2])}return a}function oi(a,y,E,x,z,ce,pe){var Ce=E.flattenSpans;Ce==null&&(Ce=a.options.flattenSpans);var Se=0,Ke=null,Ft=new Xn(y,a.options.tabSize,x),Qt,Un=a.options.addModeClass&&[null];for(y==""&&gi(kr(E,x.state),ce);!Ft.eol();){if(Ft.pos>a.options.maxHighlightLength?(Ce=!1,pe&&yr(a,y,x,Ft.pos),Ft.pos=y.length,Qt=null):Qt=gi(ii(E,Ft,x.state,Un),ce),Un){var bn=Un[0].name;bn&&(Qt="m-"+(Qt?bn+" "+Qt:bn))}if(!Ce||Ke!=Qt){for(;Se<Ft.start;)Se=Math.min(Ft.start,Se+5e3),z(Se,Ke);Ke=Qt}Ft.start=Ft.pos}for(;Se<Ft.pos;){var or=Math.min(Ft.pos,Se+5e3);z(or,Ke),Se=or}}function vi(a,y,E){for(var x,z,ce=a.doc,pe=E?-1:y-(a.doc.mode.innerMode?1e3:100),Ce=y;Ce>pe;--Ce){if(Ce<=ce.first)return ce.first;var Se=yn(ce,Ce-1),Ke=Se.stateAfter;if(Ke&&(!E||Ce+(Ke instanceof dn?Ke.lookAhead:0)<=ce.modeFrontier))return Ce;var Ft=Re(Se.text,null,a.options.tabSize);(z==null||x>Ft)&&(z=Ce-1,x=Ft)}return z}function Ne(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var E=a.first,x=y-1;x>E;x--){var z=yn(a,x).stateAfter;if(z&&(!(z instanceof dn)||x+z.lookAhead<y)){E=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,E)}}var _e=!1,it=!1;function gt(){_e=!0}function Vt(){it=!0}function Nt(a,y,E){this.marker=a,this.from=y,this.to=E}function Qn(a,y){if(a)for(var E=0;E<a.length;++E){var x=a[E];if(x.marker==y)return x}}function Nn(a,y){for(var E,x=0;x<a.length;++x)a[x]!=y&&(E||(E=[])).push(a[x]);return E}function Zn(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function Gn(a,y,E){var x;if(a)for(var z=0;z<a.length;++z){var ce=a[z],pe=ce.marker,Ce=ce.from==null||(pe.inclusiveLeft?ce.from<=y:ce.from<y);if(Ce||ce.from==y&&pe.type=="bookmark"&&(!E||!ce.marker.insertLeft)){var Se=ce.to==null||(pe.inclusiveRight?ce.to>=y:ce.to>y);(x||(x=[])).push(new Nt(pe,ce.from,Se?null:ce.to))}}return x}function Kn(a,y,E){var x;if(a)for(var z=0;z<a.length;++z){var ce=a[z],pe=ce.marker,Ce=ce.to==null||(pe.inclusiveRight?ce.to>=y:ce.to>y);if(Ce||ce.from==y&&pe.type=="bookmark"&&(!E||ce.marker.insertLeft)){var Se=ce.from==null||(pe.inclusiveLeft?ce.from<=y:ce.from<y);(x||(x=[])).push(new Nt(pe,Se?null:ce.from-y,ce.to==null?null:ce.to-y))}}return x}function zn(a,y){if(y.full)return null;var E=Jn(a,y.from.line)&&yn(a,y.from.line).markedSpans,x=Jn(a,y.to.line)&&yn(a,y.to.line).markedSpans;if(!E&&!x)return null;var z=y.from.ch,ce=y.to.ch,pe=kn(y.from,y.to)==0,Ce=Gn(E,z,pe),Se=Kn(x,ce,pe),Ke=y.text.length==1,Ft=Dt(y.text).length+(Ke?z:0);if(Ce)for(var Qt=0;Qt<Ce.length;++Qt){var Un=Ce[Qt];if(Un.to==null){var bn=Qn(Se,Un.marker);bn?Ke&&(Un.to=bn.to==null?null:bn.to+Ft):Un.to=z}}if(Se)for(var or=0;or<Se.length;++or){var Cr=Se[or];if(Cr.to!=null&&(Cr.to+=Ft),Cr.from==null){var Mr=Qn(Ce,Cr.marker);Mr||(Cr.from=Ft,Ke&&(Ce||(Ce=[])).push(Cr))}else Cr.from+=Ft,Ke&&(Ce||(Ce=[])).push(Cr)}Ce&&(Ce=st(Ce)),Se&&Se!=Ce&&(Se=st(Se));var Gr=[Ce];if(!Ke){var ri=y.text.length-2,Vr;if(ri>0&&Ce)for(var pi=0;pi<Ce.length;++pi)Ce[pi].to==null&&(Vr||(Vr=[])).push(new Nt(Ce[pi].marker,null,null));for(var Ii=0;Ii<ri;++Ii)Gr.push(Vr);Gr.push(Se)}return Gr}function st(a){for(var y=0;y<a.length;++y){var E=a[y];E.from!=null&&E.from==E.to&&E.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Rt(a,y,E){var x=null;if(a.iter(y.line,E.line+1,function(bn){if(bn.markedSpans)for(var or=0;or<bn.markedSpans.length;++or){var Cr=bn.markedSpans[or].marker;Cr.readOnly&&(!x||Lt(x,Cr)==-1)&&(x||(x=[])).push(Cr)}}),!x)return null;for(var z=[{from:y,to:E}],ce=0;ce<x.length;++ce)for(var pe=x[ce],Ce=pe.find(0),Se=0;Se<z.length;++Se){var Ke=z[Se];if(!(kn(Ke.to,Ce.from)<0||kn(Ke.from,Ce.to)>0)){var Ft=[Se,1],Qt=kn(Ke.from,Ce.from),Un=kn(Ke.to,Ce.to);(Qt<0||!pe.inclusiveLeft&&!Qt)&&Ft.push({from:Ke.from,to:Ce.from}),(Un>0||!pe.inclusiveRight&&!Un)&&Ft.push({from:Ce.to,to:Ke.to}),z.splice.apply(z,Ft),Se+=Ft.length-3}}return z}function kt(a){var y=a.markedSpans;if(y){for(var E=0;E<y.length;++E)y[E].marker.detachLine(a);a.markedSpans=null}}function Ht(a,y){if(y){for(var E=0;E<y.length;++E)y[E].marker.attachLine(a);a.markedSpans=y}}function Zt(a){return a.inclusiveLeft?-1:0}function gn(a){return a.inclusiveRight?1:0}function On(a,y){var E=a.lines.length-y.lines.length;if(E!=0)return E;var x=a.find(),z=y.find(),ce=kn(x.from,z.from)||Zt(a)-Zt(y);if(ce)return-ce;var pe=kn(x.to,z.to)||gn(a)-gn(y);return pe||y.id-a.id}function $e(a,y){var E=it&&a.markedSpans,x;if(E)for(var z=void 0,ce=0;ce<E.length;++ce)z=E[ce],z.marker.collapsed&&(y?z.from:z.to)==null&&(!x||On(x,z.marker)<0)&&(x=z.marker);return x}function mn(a){return $e(a,!0)}function Ut(a){return $e(a,!1)}function tn(a,y){var E=it&&a.markedSpans,x;if(E)for(var z=0;z<E.length;++z){var ce=E[z];ce.marker.collapsed&&(ce.from==null||ce.from<y)&&(ce.to==null||ce.to>y)&&(!x||On(x,ce.marker)<0)&&(x=ce.marker)}return x}function sn(a,y,E,x,z){var ce=yn(a,y),pe=it&&ce.markedSpans;if(pe)for(var Ce=0;Ce<pe.length;++Ce){var Se=pe[Ce];if(Se.marker.collapsed){var Ke=Se.marker.find(0),Ft=kn(Ke.from,E)||Zt(Se.marker)-Zt(z),Qt=kn(Ke.to,x)||gn(Se.marker)-gn(z);if(!(Ft>=0&&Qt<=0||Ft<=0&&Qt>=0)&&(Ft<=0&&(Se.marker.inclusiveRight&&z.inclusiveLeft?kn(Ke.to,E)>=0:kn(Ke.to,E)>0)||Ft>=0&&(Se.marker.inclusiveRight&&z.inclusiveLeft?kn(Ke.from,x)<=0:kn(Ke.from,x)<0)))return!0}}}function Gt(a){for(var y;y=mn(a);)a=y.find(-1,!0).line;return a}function nn(a){for(var y;y=Ut(a);)a=y.find(1,!0).line;return a}function An(a){for(var y,E;y=Ut(a);)a=y.find(1,!0).line,(E||(E=[])).push(a);return E}function Bt(a,y){var E=yn(a,y),x=Gt(E);return E==x?y:_t(x)}function rn(a,y){if(y>a.lastLine())return y;var E=yn(a,y),x;if(!Ln(a,E))return y;for(;x=Ut(E);)E=x.find(1,!0).line;return _t(E)+1}function Ln(a,y){var E=it&&y.markedSpans;if(E){for(var x=void 0,z=0;z<E.length;++z)if(x=E[z],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&dr(a,y,x))return!0}}}function dr(a,y,E){if(E.to==null){var x=E.marker.find(1,!0);return dr(a,x.line,Qn(x.line.markedSpans,E.marker))}if(E.marker.inclusiveRight&&E.to==y.text.length)return!0;for(var z=void 0,ce=0;ce<y.markedSpans.length;++ce)if(z=y.markedSpans[ce],z.marker.collapsed&&!z.marker.widgetNode&&z.from==E.to&&(z.to==null||z.to!=E.from)&&(z.marker.inclusiveLeft||E.marker.inclusiveRight)&&dr(a,y,z))return!0}function tr(a){a=Gt(a);for(var y=0,E=a.parent,x=0;x<E.lines.length;++x){var z=E.lines[x];if(z==a)break;y+=z.height}for(var ce=E.parent;ce;E=ce,ce=E.parent)for(var pe=0;pe<ce.children.length;++pe){var Ce=ce.children[pe];if(Ce==E)break;y+=Ce.height}return y}function br(a){if(a.height==0)return 0;for(var y=a.text.length,E,x=a;E=mn(x);){var z=E.find(0,!0);x=z.from.line,y+=z.from.ch-z.to.ch}for(x=a;E=Ut(x);){var ce=E.find(0,!0);y-=x.text.length-ce.from.ch,x=ce.to.line,y+=x.text.length-ce.to.ch}return y}function hr(a){var y=a.display,E=a.doc;y.maxLine=yn(E,E.first),y.maxLineLength=br(y.maxLine),y.maxLineChanged=!0,E.iter(function(x){var z=br(x);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=x)})}var Tr=function(a,y,E){this.text=a,Ht(this,y),this.height=E?E(this):1};Tr.prototype.lineNo=function(){return _t(this)},Cn(Tr);function Hr(a,y,E,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),kt(a),Ht(a,E);var z=x?x(a):1;z!=a.height&&Kr(a,z)}function fi(a){a.parent=null,kt(a)}var Jr={},Ai={};function si(a,y){if(!a||/^\s*$/.test(a))return null;var E=y.addModeClass?Ai:Jr;return E[a]||(E[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var E=lt("span",null,null,ze?"padding-right: .1px":null),x={pre:lt("pre",[E],"CodeMirror-line"),content:E,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var ce=z?y.rest[z-1]:y.line,pe=void 0;x.pos=0,x.addToken=$r,Ar(a.display.measure)&&(pe=Dn(ce,a.doc.direction))&&(x.addToken=qr(x.addToken,pe)),x.map=[];var Ce=y!=a.display.externalMeasured&&_t(ce);bi(ce,x,_r(a,ce,Ce)),ce.styleClasses&&(ce.styleClasses.bgClass&&(x.bgClass=Tt(ce.styleClasses.bgClass,x.bgClass||"")),ce.styleClasses.textClass&&(x.textClass=Tt(ce.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(Pr(a.display.measure))),z==0?(y.measure.map=x.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(x.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(ze){var Se=x.content.lastChild;(/\bcm-tab\b/.test(Se.className)||Se.querySelector&&Se.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return qt(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=Tt(x.pre.className,x.textClass||"")),x}function ei(a){var y=Ge("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function $r(a,y,E,x,z,ce,pe){if(y){var Ce=a.splitSpaces?Lr(y,a.trailingSpace):y,Se=a.cm.state.specialChars,Ke=!1,Ft;if(!Se.test(y))a.col+=y.length,Ft=document.createTextNode(Ce),a.map.push(a.pos,a.pos+y.length,Ft),Ee&&de<9&&(Ke=!0),a.pos+=y.length;else{Ft=document.createDocumentFragment();for(var Qt=0;;){Se.lastIndex=Qt;var Un=Se.exec(y),bn=Un?Un.index-Qt:y.length-Qt;if(bn){var or=document.createTextNode(Ce.slice(Qt,Qt+bn));Ee&&de<9?Ft.appendChild(Ge("span",[or])):Ft.appendChild(or),a.map.push(a.pos,a.pos+bn,or),a.col+=bn,a.pos+=bn}if(!Un)break;Qt+=bn+1;var Cr=void 0;if(Un[0]==" "){var Mr=a.cm.options.tabSize,Gr=Mr-a.col%Mr;Cr=Ft.appendChild(Ge("span",wn(Gr),"cm-tab")),Cr.setAttribute("role","presentation"),Cr.setAttribute("cm-text"," "),a.col+=Gr}else Un[0]=="\r"||Un[0]==`
`?(Cr=Ft.appendChild(Ge("span",Un[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Cr.setAttribute("cm-text",Un[0]),a.col+=1):(Cr=a.cm.options.specialCharPlaceholder(Un[0]),Cr.setAttribute("cm-text",Un[0]),Ee&&de<9?Ft.appendChild(Ge("span",[Cr])):Ft.appendChild(Cr),a.col+=1);a.map.push(a.pos,a.pos+1,Cr),a.pos++}}if(a.trailingSpace=Ce.charCodeAt(y.length-1)==32,E||x||z||Ke||ce||pe){var ri=E||"";x&&(ri+=x),z&&(ri+=z);var Vr=Ge("span",[Ft],ri,ce);if(pe)for(var pi in pe)pe.hasOwnProperty(pi)&&pi!="style"&&pi!="class"&&Vr.setAttribute(pi,pe[pi]);return a.content.appendChild(Vr)}a.content.appendChild(Ft)}}function Lr(a,y){if(a.length>1&&!/ /.test(a))return a;for(var E=y,x="",z=0;z<a.length;z++){var ce=a.charAt(z);ce==" "&&E&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(ce="\xA0"),x+=ce,E=ce==" "}return x}function qr(a,y){return function(E,x,z,ce,pe,Ce,Se){z=z?z+" cm-force-border":"cm-force-border";for(var Ke=E.pos,Ft=Ke+x.length;;){for(var Qt=void 0,Un=0;Un<y.length&&(Qt=y[Un],!(Qt.to>Ke&&Qt.from<=Ke));Un++);if(Qt.to>=Ft)return a(E,x,z,ce,pe,Ce,Se);a(E,x.slice(0,Qt.to-Ke),z,ce,null,Ce,Se),ce=null,x=x.slice(Qt.to-Ke),Ke=Qt.to}}}function Zr(a,y,E,x){var z=!x&&E.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!x&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",E.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function bi(a,y,E){var x=a.markedSpans,z=a.text,ce=0;if(!x){for(var pe=1;pe<E.length;pe+=2)y.addToken(y,z.slice(ce,ce=E[pe]),si(E[pe+1],y.cm.options));return}for(var Ce=z.length,Se=0,Ke=1,Ft="",Qt,Un,bn=0,or,Cr,Mr,Gr,ri;;){if(bn==Se){or=Cr=Mr=Un="",ri=null,Gr=null,bn=1/0;for(var Vr=[],pi=void 0,Ii=0;Ii<x.length;++Ii){var _i=x[Ii],$i=_i.marker;if($i.type=="bookmark"&&_i.from==Se&&$i.widgetNode)Vr.push($i);else if(_i.from<=Se&&(_i.to==null||_i.to>Se||$i.collapsed&&_i.to==Se&&_i.from==Se)){if(_i.to!=null&&_i.to!=Se&&bn>_i.to&&(bn=_i.to,Cr=""),$i.className&&(or+=" "+$i.className),$i.css&&(Un=(Un?Un+";":"")+$i.css),$i.startStyle&&_i.from==Se&&(Mr+=" "+$i.startStyle),$i.endStyle&&_i.to==bn&&(pi||(pi=[])).push($i.endStyle,_i.to),$i.title&&((ri||(ri={})).title=$i.title),$i.attributes)for(var RA in $i.attributes)(ri||(ri={}))[RA]=$i.attributes[RA];$i.collapsed&&(!Gr||On(Gr.marker,$i)<0)&&(Gr=_i)}else _i.from>Se&&bn>_i.from&&(bn=_i.from)}if(pi)for(var ha=0;ha<pi.length;ha+=2)pi[ha+1]==bn&&(Cr+=" "+pi[ha]);if(!Gr||Gr.from==Se)for(var na=0;na<Vr.length;++na)Zr(y,0,Vr[na]);if(Gr&&(Gr.from||0)==Se){if(Zr(y,(Gr.to==null?Ce+1:Gr.to)-Se,Gr.marker,Gr.from==null),Gr.to==null)return;Gr.to==Se&&(Gr=!1)}}if(Se>=Ce)break;for(var Ga=Math.min(Ce,bn);;){if(Ft){var Fa=Se+Ft.length;if(!Gr){var sa=Fa>Ga?Ft.slice(0,Ga-Se):Ft;y.addToken(y,sa,Qt?Qt+or:or,Mr,Se+sa.length==bn?Cr:"",Un,ri)}if(Fa>=Ga){Ft=Ft.slice(Ga-Se),Se=Ga;break}Se=Fa,Mr=""}Ft=z.slice(ce,ce=E[Ke++]),Qt=si(E[Ke++],y.cm.options)}}}function ui(a,y,E){this.line=y,this.rest=An(y),this.size=this.rest?_t(Dt(this.rest))-E+1:1,this.node=this.text=null,this.hidden=Ln(a,y)}function Ci(a,y,E){for(var x=[],z,ce=y;ce<E;ce=z){var pe=new ui(a.doc,yn(a.doc,ce),ce);z=ce+pe.size,x.push(pe)}return x}var Ti=null;function xA(a){Ti?Ti.ops.push(a):a.ownsGroup=Ti={ops:[a],delayedCallbacks:[]}}function gA(a){var y=a.delayedCallbacks,E=0;do{for(;E<y.length;E++)y[E].call(null);for(var x=0;x<a.ops.length;x++){var z=a.ops[x];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(E<y.length)}function la(a,y){var E=a.ownsGroup;if(E)try{gA(E)}finally{Ti=null,y(E)}}var dA=null;function qi(a,y){var E=on(a,y);if(E.length){var x=Array.prototype.slice.call(arguments,2),z;Ti?z=Ti.delayedCallbacks:dA?z=dA:(z=dA=[],setTimeout(tA,0));for(var ce=function(Ce){z.push(function(){return E[Ce].apply(null,x)})},pe=0;pe<E.length;++pe)ce(pe)}}function tA(){var a=dA;dA=null;for(var y=0;y<a.length;++y)a[y]()}function nA(a,y,E,x){for(var z=0;z<y.changes.length;z++){var ce=y.changes[z];ce=="text"?wA(a,y):ce=="gutter"?mi(a,y,E,x):ce=="class"?ni(a,y):ce=="widget"&&Ei(a,y,x)}y.changes=null}function EA(a){return a.node==a.text&&(a.node=Ge("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ee&&de<8&&(a.node.style.zIndex=2)),a.node}function hA(a,y){var E=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),y.background)E?y.background.className=E:(y.background.parentNode.removeChild(y.background),y.background=null);else if(E){var x=EA(y);y.background=x.insertBefore(Ge("div",null,E),x.firstChild),a.display.input.setUneditable(y.background)}}function yA(a,y){var E=a.display.externalMeasured;return E&&E.line==y.line?(a.display.externalMeasured=null,y.measure=E.measure,E.built):ti(a,y)}function wA(a,y){var E=y.text.className,x=yA(a,y);y.text==y.node&&(y.node=x.pre),y.text.parentNode.replaceChild(x.pre,y.text),y.text=x.pre,x.bgClass!=y.bgClass||x.textClass!=y.textClass?(y.bgClass=x.bgClass,y.textClass=x.textClass,ni(a,y)):E&&(y.text.className=E)}function ni(a,y){hA(a,y),y.line.wrapClass?EA(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var E=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=E||""}function mi(a,y,E,x){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var z=EA(y);y.gutterBackground=Ge("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px; width: "+x.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var ce=y.line.gutterMarkers;if(a.options.lineNumbers||ce){var pe=EA(y),Ce=y.gutter=Ge("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(Ce),pe.insertBefore(Ce,y.text),y.line.gutterClass&&(Ce.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ce||!ce["CodeMirror-linenumbers"])&&(y.lineNumber=Ce.appendChild(Ge("div",Hn(a.options,E),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ce)for(var Se=0;Se<a.display.gutterSpecs.length;++Se){var Ke=a.display.gutterSpecs[Se].className,Ft=ce.hasOwnProperty(Ke)&&ce[Ke];Ft&&Ce.appendChild(Ge("div",[Ft],"CodeMirror-gutter-elt","left: "+x.gutterLeft[Ke]+"px; width: "+x.gutterWidth[Ke]+"px"))}}}function Ei(a,y,E){y.alignable&&(y.alignable=null);for(var x=Ue("CodeMirror-linewidget"),z=y.node.firstChild,ce=void 0;z;z=ce)ce=z.nextSibling,x.test(z.className)&&y.node.removeChild(z);Ni(a,y,E)}function Fi(a,y,E,x){var z=yA(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),ni(a,y),mi(a,y,E,x),Ni(a,y,x),y.node}function Ni(a,y,E){if(Xi(a,y.line,y,E,!0),y.rest)for(var x=0;x<y.rest.length;x++)Xi(a,y.rest[x],y,E,!1)}function Xi(a,y,E,x,z){if(y.widgets)for(var ce=EA(E),pe=0,Ce=y.widgets;pe<Ce.length;++pe){var Se=Ce[pe],Ke=Ge("div",[Se.node],"CodeMirror-linewidget"+(Se.className?" "+Se.className:""));Se.handleMouseEvents||Ke.setAttribute("cm-ignore-events","true"),Mi(Se,Ke,E,x),a.display.input.setUneditable(Ke),z&&Se.above?ce.insertBefore(Ke,E.gutter||E.text):ce.appendChild(Ke),qi(Se,"redraw")}}function Mi(a,y,E,x){if(a.noHScroll){(E.alignable||(E.alignable=[])).push(y);var z=x.wrapperWidth;y.style.left=x.fixedPos+"px",a.coverGutter||(z-=x.gutterTotalWidth,y.style.paddingLeft=x.gutterTotalWidth+"px"),y.style.width=z+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-x.gutterTotalWidth+"px"))}function BA(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!ht(document.body,a.node)){var E="position: relative;";a.coverGutter&&(E+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(E+="width: "+y.display.wrapper.clientWidth+"px;"),Pe(y.display.measure,Ge("div",[a.node],null,E))}return a.height=a.node.parentNode.offsetHeight}function CA(a,y){for(var E=ar(y);E!=a.wrapper;E=E.parentNode)if(!E||E.nodeType==1&&E.getAttribute("cm-ignore-events")=="true"||E.parentNode==a.sizer&&E!=a.mover)return!0}function Qi(a){return a.lineSpace.offsetTop}function pr(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function ai(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=Pe(a.measure,Ge("pre","x","CodeMirror-line-like")),E=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,x={left:parseInt(E.paddingLeft),right:parseInt(E.paddingRight)};return!isNaN(x.left)&&!isNaN(x.right)&&(a.cachedPaddingH=x),x}function wi(a){return Fn-a.display.nativeBarWidth}function UA(a){return a.display.scroller.clientWidth-wi(a)-a.display.barWidth}function ji(a){return a.display.scroller.clientHeight-wi(a)-a.display.barHeight}function DA(a,y,E){var x=a.options.lineWrapping,z=x&&UA(a);if(!y.measure.heights||x&&y.measure.width!=z){var ce=y.measure.heights=[];if(x){y.measure.width=z;for(var pe=y.text.firstChild.getClientRects(),Ce=0;Ce<pe.length-1;Ce++){var Se=pe[Ce],Ke=pe[Ce+1];Math.abs(Se.bottom-Ke.bottom)>2&&ce.push((Se.bottom+Ke.top)/2-E.top)}}ce.push(E.bottom-E.top)}}function Li(a,y,E){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;x<a.rest.length;x++)if(a.rest[x]==y)return{map:a.measure.maps[x],cache:a.measure.caches[x]};for(var z=0;z<a.rest.length;z++)if(_t(a.rest[z])>E)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function _a(a,y){y=Gt(y);var E=_t(y),x=a.display.externalMeasured=new ui(a.doc,y,E);x.lineN=E;var z=x.built=ti(a,x);return x.text=z.pre,Pe(a.display.lineMeasure,z.pre),x}function fa(a,y,E,x){return Oi(a,Vi(a,y),E,x)}function KA(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[ja(a,y)];var E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size)return E}function Vi(a,y){var E=_t(y),x=KA(a,E);x&&!x.text?x=null:x&&x.changes&&(nA(a,x,E,La(a)),a.curOp.forceUpdate=!0),x||(x=_a(a,y));var z=Li(x,y,E);return{line:y,view:x,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function Oi(a,y,E,x,z){y.before&&(E=-1);var ce=E+(x||""),pe;return y.cache.hasOwnProperty(ce)?pe=y.cache[ce]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(DA(a,y.view,y.rect),y.hasHeights=!0),pe=ZA(a,y,E,x),pe.bogus||(y.cache[ce]=pe)),{left:pe.left,right:pe.right,top:z?pe.rtop:pe.top,bottom:z?pe.rbottom:pe.bottom}}var wa={left:0,right:0,top:0,bottom:0};function Ba(a,y,E){for(var x,z,ce,pe,Ce,Se,Ke=0;Ke<a.length;Ke+=3)if(Ce=a[Ke],Se=a[Ke+1],y<Ce?(z=0,ce=1,pe="left"):y<Se?(z=y-Ce,ce=z+1):(Ke==a.length-3||y==Se&&a[Ke+3]>y)&&(ce=Se-Ce,z=ce-1,y>=Se&&(pe="right")),z!=null){if(x=a[Ke+2],Ce==Se&&E==(x.insertLeft?"left":"right")&&(pe=E),E=="left"&&z==0)for(;Ke&&a[Ke-2]==a[Ke-3]&&a[Ke-1].insertLeft;)x=a[(Ke-=3)+2],pe="left";if(E=="right"&&z==Se-Ce)for(;Ke<a.length-3&&a[Ke+3]==a[Ke+4]&&!a[Ke+5].insertLeft;)x=a[(Ke+=3)+2],pe="right";break}return{node:x,start:z,end:ce,collapse:pe,coverStart:Ce,coverEnd:Se}}function ra(a,y){var E=wa;if(y=="left")for(var x=0;x<a.length&&(E=a[x]).left==E.right;x++);else for(var z=a.length-1;z>=0&&(E=a[z]).left==E.right;z--);return E}function ZA(a,y,E,x){var z=Ba(y.map,E,x),ce=z.node,pe=z.start,Ce=z.end,Se=z.collapse,Ke;if(ce.nodeType==3){for(var Ft=0;Ft<4;Ft++){for(;pe&&Ye(y.line.text.charAt(z.coverStart+pe));)--pe;for(;z.coverStart+Ce<z.coverEnd&&Ye(y.line.text.charAt(z.coverStart+Ce));)++Ce;if(Ee&&de<9&&pe==0&&Ce==z.coverEnd-z.coverStart?Ke=ce.parentNode.getBoundingClientRect():Ke=ra(je(ce,pe,Ce).getClientRects(),x),Ke.left||Ke.right||pe==0)break;Ce=pe,pe=pe-1,Se="right"}Ee&&de<11&&(Ke=Ka(a.display.measure,Ke))}else{pe>0&&(Se=x="right");var Qt;a.options.lineWrapping&&(Qt=ce.getClientRects()).length>1?Ke=Qt[x=="right"?Qt.length-1:0]:Ke=ce.getBoundingClientRect()}if(Ee&&de<9&&!pe&&(!Ke||!Ke.left&&!Ke.right)){var Un=ce.parentNode.getClientRects()[0];Un?Ke={left:Un.left,right:Un.left+ga(a.display),top:Un.top,bottom:Un.bottom}:Ke=wa}for(var bn=Ke.top-y.rect.top,or=Ke.bottom-y.rect.top,Cr=(bn+or)/2,Mr=y.view.measure.heights,Gr=0;Gr<Mr.length-1&&!(Cr<Mr[Gr]);Gr++);var ri=Gr?Mr[Gr-1]:0,Vr=Mr[Gr],pi={left:(Se=="right"?Ke.right:Ke.left)-y.rect.left,right:(Se=="left"?Ke.left:Ke.right)-y.rect.left,top:ri,bottom:Vr};return!Ke.left&&!Ke.right&&(pi.bogus=!0),a.options.singleCursorHeightPerLine||(pi.rtop=bn,pi.rbottom=or),pi}function Ka(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!pn(a))return y;var E=screen.logicalXDPI/screen.deviceXDPI,x=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*E,right:y.right*E,top:y.top*x,bottom:y.bottom*x}}function ka(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function HA(a){a.display.externalMeasure=null,qe(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)ka(a.display.view[y])}function ia(a){HA(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function vA(){return Ie&&Je?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function uA(){return Ie&&Je?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ua(a){var y=0;if(a.widgets)for(var E=0;E<a.widgets.length;++E)a.widgets[E].above&&(y+=BA(a.widgets[E]));return y}function Ua(a,y,E,x,z){if(!z){var ce=ua(y);E.top+=ce,E.bottom+=ce}if(x=="line")return E;x||(x="local");var pe=tr(y);if(x=="local"?pe+=Qi(a.display):pe-=a.display.viewOffset,x=="page"||x=="window"){var Ce=a.display.lineSpace.getBoundingClientRect();pe+=Ce.top+(x=="window"?0:uA());var Se=Ce.left+(x=="window"?0:vA());E.left+=Se,E.right+=Se}return E.top+=pe,E.bottom+=pe,E}function Da(a,y,E){if(E=="div")return y;var x=y.left,z=y.top;if(E=="page")x-=vA(),z-=uA();else if(E=="local"||!E){var ce=a.display.sizer.getBoundingClientRect();x+=ce.left,z+=ce.top}var pe=a.display.lineSpace.getBoundingClientRect();return{left:x-pe.left,top:z-pe.top}}function JA(a,y,E,x,z){return x||(x=yn(a.doc,y.line)),Ua(a,x,fa(a,x,y.ch,z),E)}function fA(a,y,E,x,z,ce){x=x||yn(a.doc,y.line),z||(z=Vi(a,x));function pe(or,Cr){var Mr=Oi(a,z,or,Cr?"right":"left",ce);return Cr?Mr.left=Mr.right:Mr.right=Mr.left,Ua(a,x,Mr,E)}var Ce=Dn(x,a.doc.direction),Se=y.ch,Ke=y.sticky;if(Se>=x.text.length?(Se=x.text.length,Ke="before"):Se<=0&&(Se=0,Ke="after"),!Ce)return pe(Ke=="before"?Se-1:Se,Ke=="before");function Ft(or,Cr,Mr){var Gr=Ce[Cr],ri=Gr.level==1;return pe(Mr?or-1:or,ri!=Mr)}var Qt=Et(Ce,Se,Ke),Un=bt,bn=Ft(Se,Qt,Ke=="before");return Un!=null&&(bn.other=Ft(Se,Un,Ke!="before")),bn}function Hi(a,y){var E=0;y=It(a.doc,y),a.options.lineWrapping||(E=ga(a.display)*y.ch);var x=yn(a.doc,y.line),z=tr(x)+Qi(a.display);return{left:E,right:E,top:z,bottom:z+x.height}}function Di(a,y,E,x,z){var ce=Ot(a,y,E);return ce.xRel=z,x&&(ce.outside=x),ce}function pA(a,y,E){var x=a.doc;if(E+=a.display.viewOffset,E<0)return Di(x.first,0,null,-1,-1);var z=St(x,E),ce=x.first+x.size-1;if(z>ce)return Di(x.first+x.size-1,yn(x,ce).text.length,null,1,1);y<0&&(y=0);for(var pe=yn(x,z);;){var Ce=Ia(a,pe,z,y,E),Se=tn(pe,Ce.ch+(Ce.xRel>0||Ce.outside>0?1:0));if(!Se)return Ce;var Ke=Se.find(1);if(Ke.line==z)return Ke;pe=yn(x,z=Ke.line)}}function rA(a,y,E,x){x-=ua(y);var z=y.text.length,ce=zt(function(pe){return Oi(a,E,pe-1).bottom<=x},z,0);return z=zt(function(pe){return Oi(a,E,pe).top>x},ce,z),{begin:ce,end:z}}function OA(a,y,E,x){E||(E=Vi(a,y));var z=Ua(a,y,Oi(a,E,x),"line").top;return rA(a,y,E,z)}function NA(a,y,E,x){return a.bottom<=E?!1:a.top>E?!0:(x?a.left:a.right)>y}function Ia(a,y,E,x,z){z-=tr(y);var ce=Vi(a,y),pe=ua(y),Ce=0,Se=y.text.length,Ke=!0,Ft=Dn(y,a.doc.direction);if(Ft){var Qt=(a.options.lineWrapping?Qa:Ca)(a,y,E,ce,Ft,x,z);Ke=Qt.level!=1,Ce=Ke?Qt.from:Qt.to-1,Se=Ke?Qt.to:Qt.from-1}var Un=null,bn=null,or=zt(function(Ii){var _i=Oi(a,ce,Ii);return _i.top+=pe,_i.bottom+=pe,NA(_i,x,z,!1)?(_i.top<=z&&_i.left<=x&&(Un=Ii,bn=_i),!0):!1},Ce,Se),Cr,Mr,Gr=!1;if(bn){var ri=x-bn.left<bn.right-x,Vr=ri==Ke;or=Un+(Vr?0:1),Mr=Vr?"after":"before",Cr=ri?bn.left:bn.right}else{!Ke&&(or==Se||or==Ce)&&or++,Mr=or==0?"after":or==y.text.length?"before":Oi(a,ce,or-(Ke?1:0)).bottom+pe<=z==Ke?"after":"before";var pi=fA(a,Ot(E,or,Mr),"line",y,ce);Cr=pi.left,Gr=z<pi.top?-1:z>=pi.bottom?1:0}return or=pt(y.text,or,1),Di(E,or,Mr,Gr,x-Cr)}function Ca(a,y,E,x,z,ce,pe){var Ce=zt(function(Qt){var Un=z[Qt],bn=Un.level!=1;return NA(fA(a,Ot(E,bn?Un.to:Un.from,bn?"before":"after"),"line",y,x),ce,pe,!0)},0,z.length-1),Se=z[Ce];if(Ce>0){var Ke=Se.level!=1,Ft=fA(a,Ot(E,Ke?Se.from:Se.to,Ke?"after":"before"),"line",y,x);NA(Ft,ce,pe,!0)&&Ft.top>pe&&(Se=z[Ce-1])}return Se}function Qa(a,y,E,x,z,ce,pe){var Ce=rA(a,y,x,pe),Se=Ce.begin,Ke=Ce.end;/\s/.test(y.text.charAt(Ke-1))&&Ke--;for(var Ft=null,Qt=null,Un=0;Un<z.length;Un++){var bn=z[Un];if(!(bn.from>=Ke||bn.to<=Se)){var or=bn.level!=1,Cr=Oi(a,x,or?Math.min(Ke,bn.to)-1:Math.max(Se,bn.from)).right,Mr=Cr<ce?ce-Cr+1e9:Cr-ce;(!Ft||Qt>Mr)&&(Ft=bn,Qt=Mr)}}return Ft||(Ft=z[z.length-1]),Ft.from<Se&&(Ft={from:Se,to:Ft.to,level:Ft.level}),Ft.to>Ke&&(Ft={from:Ft.from,to:Ke,level:Ft.level}),Ft}var iA;function qA(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(iA==null){iA=Ge("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)iA.appendChild(document.createTextNode("x")),iA.appendChild(Ge("br"));iA.appendChild(document.createTextNode("x"))}Pe(a.measure,iA);var E=iA.offsetHeight/50;return E>3&&(a.cachedTextHeight=E),qe(a.measure),E||1}function ga(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Ge("span","xxxxxxxxxx"),E=Ge("pre",[y],"CodeMirror-line-like");Pe(a.measure,E);var x=y.getBoundingClientRect(),z=(x.right-x.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function La(a){for(var y=a.display,E={},x={},z=y.gutters.clientLeft,ce=y.gutters.firstChild,pe=0;ce;ce=ce.nextSibling,++pe){var Ce=a.display.gutterSpecs[pe].className;E[Ce]=ce.offsetLeft+ce.clientLeft+z,x[Ce]=ce.clientWidth}return{fixedPos:Va(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:E,gutterWidth:x,wrapperWidth:y.wrapper.clientWidth}}function Va(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function jo(a){var y=qA(a.display),E=a.options.lineWrapping,x=E&&Math.max(5,a.display.scroller.clientWidth/ga(a.display)-3);return function(z){if(Ln(a.doc,z))return 0;var ce=0;if(z.widgets)for(var pe=0;pe<z.widgets.length;pe++)z.widgets[pe].height&&(ce+=z.widgets[pe].height);return E?ce+(Math.ceil(z.text.length/x)||1)*y:ce+y}}function Do(a){var y=a.doc,E=jo(a);y.iter(function(x){var z=E(x);z!=x.height&&Kr(x,z)})}function Za(a,y,E,x){var z=a.display;if(!E&&ar(y).getAttribute("cm-not-content")=="true")return null;var ce,pe,Ce=z.lineSpace.getBoundingClientRect();try{ce=y.clientX-Ce.left,pe=y.clientY-Ce.top}catch(Qt){return null}var Se=pA(a,ce,pe),Ke;if(x&&Se.xRel>0&&(Ke=yn(a.doc,Se.line).text).length==Se.ch){var Ft=Re(Ke,Ke.length,a.options.tabSize)-Ke.length;Se=Ot(Se.line,Math.max(0,Math.round((ce-ai(a.display).left)/ga(a.display))-Ft))}return Se}function ja(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var E=a.display.view,x=0;x<E.length;x++)if(y-=E[x].size,y<0)return x}function $A(a,y,E,x){y==null&&(y=a.doc.first),E==null&&(E=a.doc.first+a.doc.size),x||(x=0);var z=a.display;if(x&&E<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)it&&Bt(a.doc,y)<z.viewTo&&ca(a);else if(E<=z.viewFrom)it&&rn(a.doc,E+x)>z.viewFrom?ca(a):(z.viewFrom+=x,z.viewTo+=x);else if(y<=z.viewFrom&&E>=z.viewTo)ca(a);else if(y<=z.viewFrom){var ce=mo(a,E,E+x,1);ce?(z.view=z.view.slice(ce.index),z.viewFrom=ce.lineN,z.viewTo+=x):ca(a)}else if(E>=z.viewTo){var pe=mo(a,y,y,-1);pe?(z.view=z.view.slice(0,pe.index),z.viewTo=pe.lineN):ca(a)}else{var Ce=mo(a,y,y,-1),Se=mo(a,E,E+x,1);Ce&&Se?(z.view=z.view.slice(0,Ce.index).concat(Ci(a,Ce.lineN,Se.lineN)).concat(z.view.slice(Se.index)),z.viewTo+=x):ca(a)}var Ke=z.externalMeasured;Ke&&(E<Ke.lineN?Ke.lineN+=x:y<Ke.lineN+Ke.size&&(z.externalMeasured=null))}function ea(a,y,E){a.curOp.viewChanged=!0;var x=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(x.externalMeasured=null),!(y<x.viewFrom||y>=x.viewTo)){var ce=x.view[ja(a,y)];if(ce.node!=null){var pe=ce.changes||(ce.changes=[]);Lt(pe,E)==-1&&pe.push(E)}}}function ca(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function mo(a,y,E,x){var z=ja(a,y),ce,pe=a.display.view;if(!it||E==a.doc.first+a.doc.size)return{index:z,lineN:E};for(var Ce=a.display.viewFrom,Se=0;Se<z;Se++)Ce+=pe[Se].size;if(Ce!=y){if(x>0){if(z==pe.length-1)return null;ce=Ce+pe[z].size-y,z++}else ce=Ce-y;y+=ce,E+=ce}for(;Bt(a.doc,E)!=E;){if(z==(x<0?0:pe.length-1))return null;E+=x*pe[z-(x<0?1:0)].size,z+=x}return{index:z,lineN:E}}function Io(a,y,E){var x=a.display,z=x.view;z.length==0||y>=x.viewTo||E<=x.viewFrom?(x.view=Ci(a,y,E),x.viewFrom=y):(x.viewFrom>y?x.view=Ci(a,y,x.viewFrom).concat(x.view):x.viewFrom<y&&(x.view=x.view.slice(ja(a,y))),x.viewFrom=y,x.viewTo<E?x.view=x.view.concat(Ci(a,x.viewTo,E)):x.viewTo>E&&(x.view=x.view.slice(0,ja(a,E)))),x.viewTo=E}function ls(a){for(var y=a.display.view,E=0,x=0;x<y.length;x++){var z=y[x];!z.hidden&&(!z.node||z.changes)&&++E}return E}function za(a){a.display.input.showSelection(a.display.input.prepareSelection())}function us(a,y){y===void 0&&(y=!0);for(var E=a.doc,x={},z=x.cursors=document.createDocumentFragment(),ce=x.selection=document.createDocumentFragment(),pe=0;pe<E.sel.ranges.length;pe++)if(!(!y&&pe==E.sel.primIndex)){var Ce=E.sel.ranges[pe];if(!(Ce.from().line>=a.display.viewTo||Ce.to().line<a.display.viewFrom)){var Se=Ce.empty();(Se||a.options.showCursorWhenSelecting)&&Yo(a,Ce.head,z),Se||Qo(a,Ce,ce)}}return x}function Yo(a,y,E){var x=fA(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=E.appendChild(Ge("div","\xA0","CodeMirror-cursor"));if(z.style.left=x.left+"px",z.style.top=x.top+"px",z.style.height=Math.max(0,x.bottom-x.top)*a.options.cursorHeight+"px",x.other){var ce=E.appendChild(Ge("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ce.style.display="",ce.style.left=x.other.left+"px",ce.style.top=x.other.top+"px",ce.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function Ta(a,y){return a.top-y.top||a.left-y.left}function Qo(a,y,E){var x=a.display,z=a.doc,ce=document.createDocumentFragment(),pe=ai(a.display),Ce=pe.left,Se=Math.max(x.sizerWidth,UA(a)-x.sizer.offsetLeft)-pe.right,Ke=z.direction=="ltr";function Ft(Vr,pi,Ii,_i){pi<0&&(pi=0),pi=Math.round(pi),_i=Math.round(_i),ce.appendChild(Ge("div",null,"CodeMirror-selected","position: absolute; left: "+Vr+`px;
top: `+pi+"px; width: "+(Ii==null?Se-Vr:Ii)+`px;
height: `+(_i-pi)+"px"))}function Qt(Vr,pi,Ii){var _i=yn(z,Vr),$i=_i.text.length,RA,ha;function na(sa,Sa){return JA(a,Ot(Vr,sa),"div",_i,Sa)}function Ga(sa,Sa,ma){var zr=OA(a,_i,null,sa),VA=Sa=="ltr"==(ma=="after")?"left":"right",jA=ma=="after"?zr.begin:zr.end-(/\s/.test(_i.text.charAt(zr.end-1))?2:1);return na(jA,VA)[VA]}var Fa=Dn(_i,z.direction);return ct(Fa,pi||0,Ii==null?$i:Ii,function(sa,Sa,ma,zr){var VA=ma=="ltr",jA=na(sa,VA?"left":"right"),YA=na(Sa-1,VA?"right":"left"),Vs=pi==null&&sa==0,cA=Ii==null&&Sa==$i,eA=zr==0,eo=!Fa||zr==Fa.length-1;if(YA.top-jA.top<=3){var pa=(Ke?Vs:cA)&&eA,js=(Ke?cA:Vs)&&eo,Go=pa?Ce:(VA?jA:YA).left,ko=js?Se:(VA?YA:jA).right;Ft(Go,jA.top,ko-Go,jA.bottom)}else{var Ss,Ha,_s,mu;VA?(Ss=Ke&&Vs&&eA?Ce:jA.left,Ha=Ke?Se:Ga(sa,ma,"before"),_s=Ke?Ce:Ga(Sa,ma,"after"),mu=Ke&&cA&&eo?Se:YA.right):(Ss=Ke?Ga(sa,ma,"before"):Ce,Ha=!Ke&&Vs&&eA?Se:jA.right,_s=!Ke&&cA&&eo?Ce:YA.left,mu=Ke?Ga(Sa,ma,"after"):Se),Ft(Ss,jA.top,Ha-Ss,jA.bottom),jA.bottom<YA.top&&Ft(Ce,jA.bottom,null,YA.top),Ft(_s,YA.top,mu-_s,YA.bottom)}(!RA||Ta(jA,RA)<0)&&(RA=jA),Ta(YA,RA)<0&&(RA=YA),(!ha||Ta(jA,ha)<0)&&(ha=jA),Ta(YA,ha)<0&&(ha=YA)}),{start:RA,end:ha}}var Un=y.from(),bn=y.to();if(Un.line==bn.line)Qt(Un.line,Un.ch,bn.ch);else{var or=yn(z,Un.line),Cr=yn(z,bn.line),Mr=Gt(or)==Gt(Cr),Gr=Qt(Un.line,Un.ch,Mr?or.text.length+1:null).end,ri=Qt(bn.line,Mr?0:null,bn.ch).start;Mr&&(Gr.top<ri.top-2?(Ft(Gr.right,Gr.top,null,Gr.bottom),Ft(Ce,ri.top,ri.left,ri.bottom)):Ft(Gr.right,Gr.top,ri.left-Gr.right,Gr.bottom)),Gr.bottom<ri.top&&Ft(Ce,Gr.bottom,null,ri.top)}E.appendChild(ce)}function Lo(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var E=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||lo(a),y.cursorDiv.style.visibility=(E=!E)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Xo(a){a.state.focused||(a.display.input.focus(),qo(a))}function Jo(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,lo(a))},100)}function qo(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(qt(a,"focus",a,y),a.state.focused=!0,ft(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),ze&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Lo(a))}function lo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(qt(a,"blur",a,y),a.state.focused=!1,ke(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function yo(a){for(var y=a.display,E=y.lineDiv.offsetTop,x=0;x<y.view.length;x++){var z=y.view[x],ce=a.options.lineWrapping,pe=void 0,Ce=0;if(!z.hidden){if(Ee&&de<8){var Se=z.node.offsetTop+z.node.offsetHeight;pe=Se-E,E=Se}else{var Ke=z.node.getBoundingClientRect();pe=Ke.bottom-Ke.top,!ce&&z.text.firstChild&&(Ce=z.text.firstChild.getBoundingClientRect().right-Ke.left-1)}var Ft=z.line.height-pe;if((Ft>.005||Ft<-.005)&&(Kr(z.line,pe),Ya(z.line),z.rest))for(var Qt=0;Qt<z.rest.length;Qt++)Ya(z.rest[Qt]);if(Ce>a.display.sizerWidth){var Un=Math.ceil(Ce/ga(a.display));Un>a.display.maxLineLength&&(a.display.maxLineLength=Un,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function Ya(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var E=a.widgets[y],x=E.node.parentNode;x&&(E.height=x.offsetHeight)}}function to(a,y,E){var x=E&&E.top!=null?Math.max(0,E.top):a.scroller.scrollTop;x=Math.floor(x-Qi(a));var z=E&&E.bottom!=null?E.bottom:x+a.wrapper.clientHeight,ce=St(y,x),pe=St(y,z);if(E&&E.ensure){var Ce=E.ensure.from.line,Se=E.ensure.to.line;Ce<ce?(ce=Ce,pe=St(y,tr(yn(y,Ce))+a.wrapper.clientHeight)):Math.min(Se,y.lastLine())>=pe&&(ce=St(y,tr(yn(y,Se))-a.wrapper.clientHeight),pe=Se)}return{from:ce,to:Math.max(pe,ce+1)}}function IA(a,y){if(!wt(a,"scrollCursorIntoView")){var E=a.display,x=E.sizer.getBoundingClientRect(),z=null;if(y.top+x.top<0?z=!0:y.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!ot){var ce=Ge("div","\u200B",null,`position: absolute;
top: `+(y.top-E.viewOffset-Qi(a.display))+`px;
height: `+(y.bottom-y.top+wi(a)+E.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ce),ce.scrollIntoView(z),a.display.lineSpace.removeChild(ce)}}}function uo(a,y,E,x){x==null&&(x=0);var z;!a.options.lineWrapping&&y==E&&(y=y.ch?Ot(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,E=y.sticky=="before"?Ot(y.line,y.ch+1,"before"):y);for(var ce=0;ce<5;ce++){var pe=!1,Ce=fA(a,y),Se=!E||E==y?Ce:fA(a,E);z={left:Math.min(Ce.left,Se.left),top:Math.min(Ce.top,Se.top)-x,right:Math.max(Ce.left,Se.left),bottom:Math.max(Ce.bottom,Se.bottom)+x};var Ke=$o(a,z),Ft=a.doc.scrollTop,Qt=a.doc.scrollLeft;if(Ke.scrollTop!=null&&(ro(a,Ke.scrollTop),Math.abs(a.doc.scrollTop-Ft)>1&&(pe=!0)),Ke.scrollLeft!=null&&(io(a,Ke.scrollLeft),Math.abs(a.doc.scrollLeft-Qt)>1&&(pe=!0)),!pe)break}return z}function cs(a,y){var E=$o(a,y);E.scrollTop!=null&&ro(a,E.scrollTop),E.scrollLeft!=null&&io(a,E.scrollLeft)}function $o(a,y){var E=a.display,x=qA(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:E.scroller.scrollTop,ce=ji(a),pe={};y.bottom-y.top>ce&&(y.bottom=y.top+ce);var Ce=a.doc.height+pr(E),Se=y.top<x,Ke=y.bottom>Ce-x;if(y.top<z)pe.scrollTop=Se?0:y.top;else if(y.bottom>z+ce){var Ft=Math.min(y.top,(Ke?Ce:y.bottom)-ce);Ft!=z&&(pe.scrollTop=Ft)}var Qt=a.options.fixedGutter?0:E.gutters.offsetWidth,Un=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:E.scroller.scrollLeft-Qt,bn=UA(a)-E.gutters.offsetWidth,or=y.right-y.left>bn;return or&&(y.right=y.left+bn),y.left<10?pe.scrollLeft=0:y.left<Un?pe.scrollLeft=Math.max(0,y.left+Qt-(or?0:10)):y.right>bn+Un-3&&(pe.scrollLeft=y.right+(or?0:10)-bn),pe}function es(a,y){y!=null&&(Bo(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function wo(a){Bo(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function no(a,y,E){(y!=null||E!=null)&&Bo(a),y!=null&&(a.curOp.scrollLeft=y),E!=null&&(a.curOp.scrollTop=E)}function fs(a,y){Bo(a),a.curOp.scrollToPos=y}function Bo(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var E=Hi(a,y.from),x=Hi(a,y.to);Xa(a,E,x,y.margin)}}function Xa(a,y,E,x){var z=$o(a,{left:Math.min(y.left,E.left),top:Math.min(y.top,E.top)-x,right:Math.max(y.right,E.right),bottom:Math.max(y.bottom,E.bottom)+x});no(a,z.scrollLeft,z.scrollTop)}function ro(a,y){Math.abs(a.doc.scrollTop-y)<2||(re||Co(a,{top:y}),co(a,y,!0),re&&Co(a),To(a,100))}function co(a,y,E){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!E)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function io(a,y,E,x){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((E?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!x)&&(a.doc.scrollLeft=y,Dl(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function zi(a){var y=a.display,E=y.gutters.offsetWidth,x=Math.round(a.doc.height+pr(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?E:0,docHeight:x,scrollHeight:x+wi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:E}}var Wi=function(a,y,E){this.cm=E;var x=this.vert=Ge("div",[Ge("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Ge("div",[Ge("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=z.tabIndex=-1,a(x),a(z),tt(x,"scroll",function(){x.clientHeight&&y(x.scrollTop,"vertical")}),tt(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ee&&de<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wi.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,E=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=y?x+"px":"0";var z=a.viewHeight-(y?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=E?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var ce=a.viewWidth-a.barLeft-(E?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ce)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?x:0,bottom:y?x:0}},Wi.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wi.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wi.prototype.zeroWidthHack=function(){var a=Te&&!we?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new xe,this.disableVert=new xe},Wi.prototype.enableZeroWidthBar=function(a,y,E){a.style.pointerEvents="auto";function x(){var z=a.getBoundingClientRect(),ce=E=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);ce!=a?a.style.pointerEvents="none":y.set(1e3,x)}y.set(1e3,x)},Wi.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var zA=function(){};zA.prototype.update=function(){return{bottom:0,right:0}},zA.prototype.setScrollLeft=function(){},zA.prototype.setScrollTop=function(){},zA.prototype.clear=function(){};function WA(a,y){y||(y=zi(a));var E=a.display.barWidth,x=a.display.barHeight;ta(a,y);for(var z=0;z<4&&E!=a.display.barWidth||x!=a.display.barHeight;z++)E!=a.display.barWidth&&a.options.lineWrapping&&yo(a),ta(a,zi(a)),E=a.display.barWidth,x=a.display.barHeight}function ta(a,y){var E=a.display,x=E.scrollbars.update(y);E.sizer.style.paddingRight=(E.barWidth=x.right)+"px",E.sizer.style.paddingBottom=(E.barHeight=x.bottom)+"px",E.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(E.scrollbarFiller.style.display="block",E.scrollbarFiller.style.height=x.bottom+"px",E.scrollbarFiller.style.width=x.right+"px"):E.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(E.gutterFiller.style.display="block",E.gutterFiller.style.height=x.bottom+"px",E.gutterFiller.style.width=y.gutterWidth+"px"):E.gutterFiller.style.display=""}var fo={native:Wi,null:zA};function Ja(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&ke(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new fo[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),tt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,E){E=="horizontal"?io(a,y):ro(a,y)},a),a.display.scrollbars.addClass&&ft(a.display.wrapper,a.display.scrollbars.addClass)}var ho=0;function Na(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:++ho},xA(a.curOp)}function qa(a){var y=a.curOp;y&&la(y,function(E){for(var x=0;x<E.ops.length;x++)E.ops[x].cm.curOp=null;eu(E)})}function eu(a){for(var y=a.ops,E=0;E<y.length;E++)tu(y[E]);for(var x=0;x<y.length;x++)nu(y[x]);for(var z=0;z<y.length;z++)ru(y[z]);for(var ce=0;ce<y.length;ce++)Ds(y[ce]);for(var pe=0;pe<y.length;pe++)iu(y[pe])}function tu(a){var y=a.cm,E=y.display;Au(y),a.updateMaxLine&&hr(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<E.viewFrom||a.scrollToPos.to.line>=E.viewTo)||E.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new Is(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function nu(a){a.updatedDisplay=a.mustUpdate&&Js(a.cm,a.update)}function ru(a){var y=a.cm,E=y.display;a.updatedDisplay&&yo(y),a.barMeasure=zi(y),E.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=fa(y,E.maxLine,E.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(E.scroller.clientWidth,E.sizer.offsetLeft+a.adjustWidthTo+wi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,E.sizer.offsetLeft+a.adjustWidthTo-UA(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=E.input.prepareSelection())}function Ds(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&io(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var E=a.focus&&a.focus==et();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,E),(a.updatedDisplay||a.startHeight!=y.doc.height)&&WA(y,a.barMeasure),a.updatedDisplay&&Qs(y,a.barMeasure),a.selectionChanged&&Lo(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),E&&Xo(a.cm)}function iu(a){var y=a.cm,E=y.display,x=y.doc;if(a.updatedDisplay&&ts(y,a.update),E.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(E.wheelStartX=E.wheelStartY=null),a.scrollTop!=null&&co(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&io(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=uo(y,It(x,a.scrollToPos.from),It(x,a.scrollToPos.to),a.scrollToPos.margin);IA(y,z)}var ce=a.maybeHiddenMarkers,pe=a.maybeUnhiddenMarkers;if(ce)for(var Ce=0;Ce<ce.length;++Ce)ce[Ce].lines.length||qt(ce[Ce],"hide");if(pe)for(var Se=0;Se<pe.length;++Se)pe[Se].lines.length&&qt(pe[Se],"unhide");E.wrapper.offsetHeight&&(x.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&qt(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Ma(a,y){if(a.curOp)return y();Na(a);try{return y()}finally{qa(a)}}function Aa(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Na(a);try{return y.apply(a,arguments)}finally{qa(a)}}}function va(a){return function(){if(this.curOp)return a.apply(this,arguments);Na(this);try{return a.apply(this,arguments)}finally{qa(this)}}}function oa(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Na(y);try{return a.apply(this,arguments)}finally{qa(y)}}}function To(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,fn(Wa,a))}function Wa(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var E=+new Date+a.options.workTime,x=Or(a,y.highlightFrontier),z=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ce){if(x.line>=a.display.viewFrom){var pe=ce.styles,Ce=ce.text.length>a.options.maxHighlightLength?Dr(y.mode,x.state):null,Se=Br(a,ce,x,!0);Ce&&(x.state=Ce),ce.styles=Se.styles;var Ke=ce.styleClasses,Ft=Se.classes;Ft?ce.styleClasses=Ft:Ke&&(ce.styleClasses=null);for(var Qt=!pe||pe.length!=ce.styles.length||Ke!=Ft&&(!Ke||!Ft||Ke.bgClass!=Ft.bgClass||Ke.textClass!=Ft.textClass),Un=0;!Qt&&Un<pe.length;++Un)Qt=pe[Un]!=ce.styles[Un];Qt&&z.push(x.line),ce.stateAfter=x.save(),x.nextLine()}else ce.text.length<=a.options.maxHighlightLength&&yr(a,ce.text,x),ce.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>E)return To(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),z.length&&Ma(a,function(){for(var ce=0;ce<z.length;ce++)ea(a,z[ce],"text")})}}var Is=function(a,y,E){var x=a.display;this.viewport=y,this.visible=to(x,a.doc,y),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=UA(a),this.force=E,this.dims=La(a),this.events=[]};Is.prototype.signal=function(a,y){Wt(a,y)&&this.events.push(arguments)},Is.prototype.finish=function(){for(var a=0;a<this.events.length;a++)qt.apply(null,this.events[a])};function Au(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=wi(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=wi(a)+"px",y.scrollbarsClipped=!0)}function Ul(a){if(a.hasFocus())return null;var y=et();if(!y||!ht(a.display.lineDiv,y))return null;var E={activeElt:y};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&ht(a.display.lineDiv,x.anchorNode)&&(E.anchorNode=x.anchorNode,E.anchorOffset=x.anchorOffset,E.focusNode=x.focusNode,E.focusOffset=x.focusOffset)}return E}function au(a){if(!(!a||!a.activeElt||a.activeElt==et())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&ht(document.body,a.anchorNode)&&ht(document.body,a.focusNode))){var y=window.getSelection(),E=document.createRange();E.setEnd(a.anchorNode,a.anchorOffset),E.collapse(!1),y.removeAllRanges(),y.addRange(E),y.extend(a.focusNode,a.focusOffset)}}function Js(a,y){var E=a.display,x=a.doc;if(y.editorIsHidden)return ca(a),!1;if(!y.force&&y.visible.from>=E.viewFrom&&y.visible.to<=E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo)&&E.renderedView==E.view&&ls(a)==0)return!1;ns(a)&&(ca(a),y.dims=La(a));var z=x.first+x.size,ce=Math.max(y.visible.from-a.options.viewportMargin,x.first),pe=Math.min(z,y.visible.to+a.options.viewportMargin);E.viewFrom<ce&&ce-E.viewFrom<20&&(ce=Math.max(x.first,E.viewFrom)),E.viewTo>pe&&E.viewTo-pe<20&&(pe=Math.min(z,E.viewTo)),it&&(ce=Bt(a.doc,ce),pe=rn(a.doc,pe));var Ce=ce!=E.viewFrom||pe!=E.viewTo||E.lastWrapHeight!=y.wrapperHeight||E.lastWrapWidth!=y.wrapperWidth;Io(a,ce,pe),E.viewOffset=tr(yn(a.doc,E.viewFrom)),a.display.mover.style.top=E.viewOffset+"px";var Se=ls(a);if(!Ce&&Se==0&&!y.force&&E.renderedView==E.view&&(E.updateLineNumbers==null||E.updateLineNumbers>=E.viewTo))return!1;var Ke=Ul(a);return Se>4&&(E.lineDiv.style.display="none"),qs(a,E.updateLineNumbers,y.dims),Se>4&&(E.lineDiv.style.display=""),E.renderedView=E.view,au(Ke),qe(E.cursorDiv),qe(E.selectionDiv),E.gutters.style.height=E.sizer.style.minHeight=0,Ce&&(E.lastWrapHeight=y.wrapperHeight,E.lastWrapWidth=y.wrapperWidth,To(a,400)),E.updateLineNumbers=null,!0}function ts(a,y){for(var E=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==UA(a)){if(E&&E.top!=null&&(E={top:Math.min(a.doc.height+pr(a.display)-ji(a),E.top)}),y.visible=to(a.display,a.doc,E),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=to(a.display,a.doc,E));if(!Js(a,y))break;yo(a);var z=zi(a);za(a),WA(a,z),Qs(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Co(a,y){var E=new Is(a,y);if(Js(a,E)){yo(a),ts(a,E);var x=zi(a);za(a),WA(a,x),Qs(a,x),E.finish()}}function qs(a,y,E){var x=a.display,z=a.options.lineNumbers,ce=x.lineDiv,pe=ce.firstChild;function Ce(or){var Cr=or.nextSibling;return ze&&Te&&a.display.currentWheelTarget==or?or.style.display="none":or.parentNode.removeChild(or),Cr}for(var Se=x.view,Ke=x.viewFrom,Ft=0;Ft<Se.length;Ft++){var Qt=Se[Ft];if(!Qt.hidden)if(!Qt.node||Qt.node.parentNode!=ce){var Un=Fi(a,Qt,Ke,E);ce.insertBefore(Un,pe)}else{for(;pe!=Qt.node;)pe=Ce(pe);var bn=z&&y!=null&&y<=Ke&&Qt.lineNumber;Qt.changes&&(Lt(Qt.changes,"gutter")>-1&&(bn=!1),nA(a,Qt,Ke,E)),bn&&(qe(Qt.lineNumber),Qt.lineNumber.appendChild(document.createTextNode(Hn(a.options,Ke)))),pe=Qt.node.nextSibling}Ke+=Qt.size}for(;pe;)pe=Ce(pe)}function $s(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function Qs(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+wi(a)+"px"}function Dl(a){var y=a.display,E=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var x=Va(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,ce=x+"px",pe=0;pe<E.length;pe++)if(!E[pe].hidden){a.options.fixedGutter&&(E[pe].gutter&&(E[pe].gutter.style.left=ce),E[pe].gutterBackground&&(E[pe].gutterBackground.style.left=ce));var Ce=E[pe].alignable;if(Ce)for(var Se=0;Se<Ce.length;Se++)Ce[Se].style.left=ce}a.options.fixedGutter&&(y.gutters.style.left=x+z+"px")}}function ns(a){if(!a.options.lineNumbers)return!1;var y=a.doc,E=Hn(a.options,y.first+y.size-1),x=a.display;if(E.length!=x.lineNumChars){var z=x.measure.appendChild(Ge("div",[Ge("div",E)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ce=z.firstChild.offsetWidth,pe=z.offsetWidth-ce;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(ce,x.lineGutter.offsetWidth-pe)+1,x.lineNumWidth=x.lineNumInnerWidth+pe,x.lineNumChars=x.lineNumInnerWidth?E.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",$s(a.display),!0}return!1}function ds(a,y){for(var E=[],x=!1,z=0;z<a.length;z++){var ce=a[z],pe=null;if(typeof ce!="string"&&(pe=ce.style,ce=ce.className),ce=="CodeMirror-linenumbers")if(y)x=!0;else continue;E.push({className:ce,style:pe})}return y&&!x&&E.push({className:"CodeMirror-linenumbers",style:null}),E}function Il(a){var y=a.gutters,E=a.gutterSpecs;qe(y),a.lineGutter=null;for(var x=0;x<E.length;++x){var z=E[x],ce=z.className,pe=z.style,Ce=y.appendChild(Ge("div",null,"CodeMirror-gutter "+ce));pe&&(Ce.style.cssText=pe),ce=="CodeMirror-linenumbers"&&(a.lineGutter=Ce,Ce.style.width=(a.lineNumWidth||1)+"px")}y.style.display=E.length?"":"none",$s(a)}function hs(a){Il(a.display),$A(a),Dl(a)}function ou(a,y,E,x){var z=this;this.input=E,z.scrollbarFiller=Ge("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=Ge("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=lt("div",null,"CodeMirror-code"),z.selectionDiv=Ge("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=Ge("div",null,"CodeMirror-cursors"),z.measure=Ge("div",null,"CodeMirror-measure"),z.lineMeasure=Ge("div",null,"CodeMirror-measure"),z.lineSpace=lt("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var ce=lt("div",[z.lineSpace],"CodeMirror-lines");z.mover=Ge("div",[ce],null,"position: relative"),z.sizer=Ge("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=Ge("div",null,null,"position: absolute; height: "+Fn+"px; width: 1px;"),z.gutters=Ge("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=Ge("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=Ge("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),Ee&&de<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!ze&&!(re&&He)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=ds(x.gutters,x.lineNumbers),Il(z),E.init(z)}var Ls=0,Ra=null;Ee?Ra=-.53:re?Ra=15:Ie?Ra=-.7:ut&&(Ra=-1/3);function Ql(a){var y=a.wheelDeltaX,E=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),E==null&&a.detail&&a.axis==a.VERTICAL_AXIS?E=a.detail:E==null&&(E=a.wheelDelta),{x:y,y:E}}function Ll(a){var y=Ql(a);return y.x*=Ra,y.y*=Ra,y}function Tl(a,y){var E=Ql(y),x=E.x,z=E.y,ce=a.display,pe=ce.scroller,Ce=pe.scrollWidth>pe.clientWidth,Se=pe.scrollHeight>pe.clientHeight;if(x&&Ce||z&&Se){if(z&&Te&&ze){e:for(var Ke=y.target,Ft=ce.view;Ke!=pe;Ke=Ke.parentNode)for(var Qt=0;Qt<Ft.length;Qt++)if(Ft[Qt].node==Ke){a.display.currentWheelTarget=Ke;break e}}if(x&&!re&&!ve&&Ra!=null){z&&Se&&ro(a,Math.max(0,pe.scrollTop+z*Ra)),io(a,Math.max(0,pe.scrollLeft+x*Ra)),(!z||z&&Se)&&Mn(y),ce.wheelStartX=null;return}if(z&&Ra!=null){var Un=z*Ra,bn=a.doc.scrollTop,or=bn+ce.wrapper.clientHeight;Un<0?bn=Math.max(0,bn+Un-50):or=Math.min(a.doc.height,or+Un+50),Co(a,{top:bn,bottom:or})}Ls<20&&(ce.wheelStartX==null?(ce.wheelStartX=pe.scrollLeft,ce.wheelStartY=pe.scrollTop,ce.wheelDX=x,ce.wheelDY=z,setTimeout(function(){if(ce.wheelStartX!=null){var Cr=pe.scrollLeft-ce.wheelStartX,Mr=pe.scrollTop-ce.wheelStartY,Gr=Mr&&ce.wheelDY&&Mr/ce.wheelDY||Cr&&ce.wheelDX&&Cr/ce.wheelDX;ce.wheelStartX=ce.wheelStartY=null,Gr&&(Ra=(Ra*Ls+Gr)/(Ls+1),++Ls)}},200)):(ce.wheelDX+=x,ce.wheelDY+=z))}}var Oa=function(a,y){this.ranges=a,this.primIndex=y};Oa.prototype.primary=function(){return this.ranges[this.primIndex]},Oa.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var E=this.ranges[y],x=a.ranges[y];if(!nr(E.anchor,x.anchor)||!nr(E.head,x.head))return!1}return!0},Oa.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new mA(rr(this.ranges[y].anchor),rr(this.ranges[y].head));return new Oa(a,this.primIndex)},Oa.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Oa.prototype.contains=function(a,y){y||(y=a);for(var E=0;E<this.ranges.length;E++){var x=this.ranges[E];if(kn(y,x.from())>=0&&kn(a,x.to())<=0)return E}return-1};var mA=function(a,y){this.anchor=a,this.head=y};mA.prototype.from=function(){return ur(this.anchor,this.head)},mA.prototype.to=function(){return er(this.anchor,this.head)},mA.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xa(a,y,E){var x=a&&a.options.selectionsMayTouch,z=y[E];y.sort(function(Un,bn){return kn(Un.from(),bn.from())}),E=Lt(y,z);for(var ce=1;ce<y.length;ce++){var pe=y[ce],Ce=y[ce-1],Se=kn(Ce.to(),pe.from());if(x&&!pe.empty()?Se>0:Se>=0){var Ke=ur(Ce.from(),pe.from()),Ft=er(Ce.to(),pe.to()),Qt=Ce.empty()?pe.from()==pe.head:Ce.from()==Ce.head;ce<=E&&--E,y.splice(--ce,2,new mA(Qt?Ft:Ke,Qt?Ke:Ft))}}return new Oa(y,E)}function xo(a,y){return new Oa([new mA(a,y||a)],0)}function Eo(a){return a.text?Ot(a.from.line+a.text.length-1,Dt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function el(a,y){if(kn(a,y.from)<0)return a;if(kn(a,y.to)<=0)return Eo(y);var E=a.line+y.text.length-(y.to.line-y.from.line)-1,x=a.ch;return a.line==y.to.line&&(x+=Eo(y).ch-y.to.ch),Ot(E,x)}function tl(a,y){for(var E=[],x=0;x<a.sel.ranges.length;x++){var z=a.sel.ranges[x];E.push(new mA(el(z.anchor,y),el(z.head,y)))}return xa(a.cm,E,a.sel.primIndex)}function Ml(a,y,E){return a.line==y.line?Ot(E.line,a.ch-y.ch+E.ch):Ot(E.line+(a.line-y.line),a.ch)}function su(a,y,E){for(var x=[],z=Ot(a.first,0),ce=z,pe=0;pe<y.length;pe++){var Ce=y[pe],Se=Ml(Ce.from,z,ce),Ke=Ml(Eo(Ce),z,ce);if(z=Ce.to,ce=Ke,E=="around"){var Ft=a.sel.ranges[pe],Qt=kn(Ft.head,Ft.anchor)<0;x[pe]=new mA(Qt?Ke:Se,Qt?Se:Ke)}else x[pe]=new mA(Se,Se)}return new Oa(x,a.sel.primIndex)}function nl(a){a.doc.mode=lr(a.options,a.doc.modeOption),ps(a)}function ps(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,To(a,100),a.state.modeGen++,a.curOp&&$A(a)}function Ts(a,y){return y.from.ch==0&&y.to.ch==0&&Dt(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Ms(a,y,E,x){function z(ri){return E?E[ri]:null}function ce(ri,Vr,pi){Hr(ri,Vr,pi,x),qi(ri,"change",ri,y)}function pe(ri,Vr){for(var pi=[],Ii=ri;Ii<Vr;++Ii)pi.push(new Tr(Ke[Ii],z(Ii),x));return pi}var Ce=y.from,Se=y.to,Ke=y.text,Ft=yn(a,Ce.line),Qt=yn(a,Se.line),Un=Dt(Ke),bn=z(Ke.length-1),or=Se.line-Ce.line;if(y.full)a.insert(0,pe(0,Ke.length)),a.remove(Ke.length,a.size-Ke.length);else if(Ts(a,y)){var Cr=pe(0,Ke.length-1);ce(Qt,Qt.text,bn),or&&a.remove(Ce.line,or),Cr.length&&a.insert(Ce.line,Cr)}else if(Ft==Qt)if(Ke.length==1)ce(Ft,Ft.text.slice(0,Ce.ch)+Un+Ft.text.slice(Se.ch),bn);else{var Mr=pe(1,Ke.length-1);Mr.push(new Tr(Un+Ft.text.slice(Se.ch),bn,x)),ce(Ft,Ft.text.slice(0,Ce.ch)+Ke[0],z(0)),a.insert(Ce.line+1,Mr)}else if(Ke.length==1)ce(Ft,Ft.text.slice(0,Ce.ch)+Ke[0]+Qt.text.slice(Se.ch),z(0)),a.remove(Ce.line+1,or);else{ce(Ft,Ft.text.slice(0,Ce.ch)+Ke[0],z(0)),ce(Qt,Un+Qt.text.slice(Se.ch),bn);var Gr=pe(1,Ke.length-1);or>1&&a.remove(Ce.line+1,or-1),a.insert(Ce.line+1,Gr)}qi(a,"change",a,y)}function bo(a,y,E){function x(z,ce,pe){if(z.linked)for(var Ce=0;Ce<z.linked.length;++Ce){var Se=z.linked[Ce];if(Se.doc!=ce){var Ke=pe&&Se.sharedHist;E&&!Ke||(y(Se.doc,Ke),x(Se.doc,z,Ke))}}}x(a,null,!0)}function aa(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Do(a),nl(a),Hl(a),a.options.lineWrapping||hr(a),a.options.mode=y.modeOption,$A(a)}function Hl(a){(a.doc.direction=="rtl"?ft:ke)(a.display.lineDiv,"CodeMirror-rtl")}function wu(a){Ma(a,function(){Hl(a),$A(a)})}function gs(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function Hs(a,y){var E={from:rr(y.from),to:Eo(y),text:rt(a,y.from,y.to)};return Al(a,E,y.from.line,y.to.line+1),bo(a,function(x){return Al(x,E,y.from.line,y.to.line+1)},!0),E}function Nl(a){for(;a.length;){var y=Dt(a);if(y.ranges)a.pop();else break}}function rl(a,y){if(y)return Nl(a.done),Dt(a.done);if(a.done.length&&!Dt(a.done).ranges)return Dt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Dt(a.done)}function il(a,y,E,x){var z=a.history;z.undone.length=0;var ce=+new Date,pe,Ce;if((z.lastOp==x||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>ce-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(pe=rl(z,z.lastOp==x)))Ce=Dt(pe.changes),kn(y.from,y.to)==0&&kn(y.from,Ce.to)==0?Ce.to=Eo(y):pe.changes.push(Hs(a,y));else{var Se=Dt(z.done);for((!Se||!Se.ranges)&&vs(a.sel,z.done),pe={changes:[Hs(a,y)],generation:z.generation},z.done.push(pe);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(E),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=ce,z.lastOp=z.lastSelOp=x,z.lastOrigin=z.lastSelOrigin=y.origin,Ce||qt(a,"historyAdded")}function Bu(a,y,E,x){var z=y.charAt(0);return z=="*"||z=="+"&&E.ranges.length==x.ranges.length&&E.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Rl(a,y,E,x){var z=a.history,ce=x&&x.origin;E==z.lastSelOp||ce&&z.lastSelOrigin==ce&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==ce||Bu(a,ce,Dt(z.done),y))?z.done[z.done.length-1]=y:vs(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=ce,z.lastSelOp=E,x&&x.clearRedo!==!1&&Nl(z.undone)}function vs(a,y){var E=Dt(y);E&&E.ranges&&E.equals(a)||y.push(a)}function Al(a,y,E,x){var z=y["spans_"+a.id],ce=0;a.iter(Math.max(a.first,E),Math.min(a.first+a.size,x),function(pe){pe.markedSpans&&((z||(z=y["spans_"+a.id]={}))[ce]=pe.markedSpans),++ce})}function Ol(a){if(!a)return null;for(var y,E=0;E<a.length;++E)a[E].marker.explicitlyCleared?y||(y=a.slice(0,E)):y&&y.push(a[E]);return y?y.length?y:null:a}function al(a,y){var E=y["spans_"+a.id];if(!E)return null;for(var x=[],z=0;z<y.text.length;++z)x.push(Ol(E[z]));return x}function di(a,y){var E=al(a,y),x=zn(a,y);if(!E)return x;if(!x)return E;for(var z=0;z<E.length;++z){var ce=E[z],pe=x[z];if(ce&&pe)e:for(var Ce=0;Ce<pe.length;++Ce){for(var Se=pe[Ce],Ke=0;Ke<ce.length;++Ke)if(ce[Ke].marker==Se.marker)continue e;ce.push(Se)}else pe&&(E[z]=pe)}return E}function rs(a,y,E){for(var x=[],z=0;z<a.length;++z){var ce=a[z];if(ce.ranges){x.push(E?Oa.prototype.deepCopy.call(ce):ce);continue}var pe=ce.changes,Ce=[];x.push({changes:Ce});for(var Se=0;Se<pe.length;++Se){var Ke=pe[Se],Ft=void 0;if(Ce.push({from:Ke.from,to:Ke.to,text:Ke.text}),y)for(var Qt in Ke)(Ft=Qt.match(/^spans_(\d+)$/))&&Lt(y,Number(Ft[1]))>-1&&(Dt(Ce)[Qt]=Ke[Qt],delete Ke[Qt])}}return x}function ol(a,y,E,x){if(x){var z=a.anchor;if(E){var ce=kn(y,z)<0;ce!=kn(E,z)<0?(z=y,y=E):ce!=kn(y,E)<0&&(y=E)}return new mA(z,y)}else return new mA(E||y,y)}function ms(a,y,E,x,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),da(a,new Oa([ol(a.sel.primary(),y,E,z)],0),x)}function $a(a,y,E){for(var x=[],z=a.cm&&(a.cm.display.shift||a.extend),ce=0;ce<a.sel.ranges.length;ce++)x[ce]=ol(a.sel.ranges[ce],y[ce],null,z);var pe=xa(a.cm,x,a.sel.primIndex);da(a,pe,E)}function sl(a,y,E,x){var z=a.sel.ranges.slice(0);z[y]=E,da(a,xa(a.cm,z,a.sel.primIndex),x)}function ll(a,y,E,x){da(a,xo(y,E),x)}function ys(a,y,E){var x={ranges:y.ranges,update:function(z){this.ranges=[];for(var ce=0;ce<z.length;ce++)this.ranges[ce]=new mA(It(a,z[ce].anchor),It(a,z[ce].head))},origin:E&&E.origin};return qt(a,"beforeSelectionChange",a,x),a.cm&&qt(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=y.ranges?xa(a.cm,x.ranges,x.ranges.length-1):y}function Ns(a,y,E){var x=a.history.done,z=Dt(x);z&&z.ranges?(x[x.length-1]=y,Rs(a,y,E)):da(a,y,E)}function da(a,y,E){Rs(a,y,E),Rl(a,a.sel,a.cm?a.cm.curOp.id:NaN,E)}function Rs(a,y,E){(Wt(a,"beforeSelectionChange")||a.cm&&Wt(a.cm,"beforeSelectionChange"))&&(y=ys(a,y,E));var x=E&&E.bias||(kn(y.primary().head,a.sel.primary().head)<0?-1:1);ul(a,So(a,y,x,!0)),!(E&&E.scroll===!1)&&a.cm&&wo(a.cm)}function ul(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Rn(a.cm)),qi(a,"cursorActivity",a))}function Fo(a){ul(a,So(a,a.sel,null,!1))}function So(a,y,E,x){for(var z,ce=0;ce<y.ranges.length;ce++){var pe=y.ranges[ce],Ce=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ce],Se=ws(a,pe.anchor,Ce&&Ce.anchor,E,x),Ke=ws(a,pe.head,Ce&&Ce.head,E,x);(z||Se!=pe.anchor||Ke!=pe.head)&&(z||(z=y.ranges.slice(0,ce)),z[ce]=new mA(Se,Ke))}return z?xa(a.cm,z,y.primIndex):y}function Mo(a,y,E,x,z){var ce=yn(a,y.line);if(ce.markedSpans)for(var pe=0;pe<ce.markedSpans.length;++pe){var Ce=ce.markedSpans[pe],Se=Ce.marker,Ke="selectLeft"in Se?!Se.selectLeft:Se.inclusiveLeft,Ft="selectRight"in Se?!Se.selectRight:Se.inclusiveRight;if((Ce.from==null||(Ke?Ce.from<=y.ch:Ce.from<y.ch))&&(Ce.to==null||(Ft?Ce.to>=y.ch:Ce.to>y.ch))){if(z&&(qt(Se,"beforeCursorEnter"),Se.explicitlyCleared))if(ce.markedSpans){--pe;continue}else break;if(!Se.atomic)continue;if(E){var Qt=Se.find(x<0?1:-1),Un=void 0;if((x<0?Ft:Ke)&&(Qt=cl(a,Qt,-x,Qt&&Qt.line==y.line?ce:null)),Qt&&Qt.line==y.line&&(Un=kn(Qt,E))&&(x<0?Un<0:Un>0))return Mo(a,Qt,y,x,z)}var bn=Se.find(x<0?-1:1);return(x<0?Ke:Ft)&&(bn=cl(a,bn,x,bn.line==y.line?ce:null)),bn?Mo(a,bn,y,x,z):null}}return y}function ws(a,y,E,x,z){var ce=x||1,pe=Mo(a,y,E,ce,z)||!z&&Mo(a,y,E,ce,!0)||Mo(a,y,E,-ce,z)||!z&&Mo(a,y,E,-ce,!0);return pe||(a.cantEdit=!0,Ot(a.first,0))}function cl(a,y,E,x){return E<0&&y.ch==0?y.line>a.first?It(a,Ot(y.line-1)):null:E>0&&y.ch==(x||yn(a,y.line)).text.length?y.line<a.first+a.size-1?Ot(y.line+1,0):null:new Ot(y.line,y.ch+E)}function fl(a){a.setSelection(Ot(a.firstLine(),0),Ot(a.lastLine()),vt)}function Bs(a,y,E){var x={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return x.canceled=!0}};return E&&(x.update=function(z,ce,pe,Ce){z&&(x.from=It(a,z)),ce&&(x.to=It(a,ce)),pe&&(x.text=pe),Ce!==void 0&&(x.origin=Ce)}),qt(a,"beforeChange",a,x),a.cm&&qt(a.cm,"beforeChange",a.cm,x),x.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:x.from,to:x.to,text:x.text,origin:x.origin}}function Ho(a,y,E){if(a.cm){if(!a.cm.curOp)return Aa(a.cm,Ho)(a,y,E);if(a.cm.state.suppressEdits)return}if(!((Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"))&&(y=Bs(a,y,!0),!y))){var x=_e&&!E&&Rt(a,y.from,y.to);if(x)for(var z=x.length-1;z>=0;--z)dl(a,{from:x[z].from,to:x[z].to,text:z?[""]:y.text,origin:y.origin});else dl(a,y)}}function dl(a,y){if(!(y.text.length==1&&y.text[0]==""&&kn(y.from,y.to)==0)){var E=tl(a,y);il(a,y,E,a.cm?a.cm.curOp.id:NaN),Cs(a,y,E,zn(a,y));var x=[];bo(a,function(z,ce){!ce&&Lt(x,z.history)==-1&&(Ps(z.history,y),x.push(z.history)),Cs(z,y,null,zn(z,y))})}}function Os(a,y,E){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!E)){for(var z=a.history,ce,pe=a.sel,Ce=y=="undo"?z.done:z.undone,Se=y=="undo"?z.undone:z.done,Ke=0;Ke<Ce.length&&(ce=Ce[Ke],!(E?ce.ranges&&!ce.equals(a.sel):!ce.ranges));Ke++);if(Ke!=Ce.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(ce=Ce.pop(),ce.ranges){if(vs(ce,Se),E&&!ce.equals(a.sel)){da(a,ce,{clearRedo:!1});return}pe=ce}else if(x){Ce.push(ce);return}else break;var Ft=[];vs(pe,Se),Se.push({changes:Ft,generation:z.generation}),z.generation=ce.generation||++z.maxGeneration;for(var Qt=Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"),Un=function(Cr){var Mr=ce.changes[Cr];if(Mr.origin=y,Qt&&!Bs(a,Mr,!1))return Ce.length=0,{};Ft.push(Hs(a,Mr));var Gr=Cr?tl(a,Mr):Dt(Ce);Cs(a,Mr,Gr,di(a,Mr)),!Cr&&a.cm&&a.cm.scrollIntoView({from:Mr.from,to:Eo(Mr)});var ri=[];bo(a,function(Vr,pi){!pi&&Lt(ri,Vr.history)==-1&&(Ps(Vr.history,Mr),ri.push(Vr.history)),Cs(Vr,Mr,null,di(Vr,Mr))})},bn=ce.changes.length-1;bn>=0;--bn){var or=Un(bn);if(or)return or.v}}}}function hl(a,y){if(y!=0&&(a.first+=y,a.sel=new Oa(un(a.sel.ranges,function(z){return new mA(Ot(z.anchor.line+y,z.anchor.ch),Ot(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){$A(a.cm,a.first,a.first-y,y);for(var E=a.cm.display,x=E.viewFrom;x<E.viewTo;x++)ea(a.cm,x,"gutter")}}function Cs(a,y,E,x){if(a.cm&&!a.cm.curOp)return Aa(a.cm,Cs)(a,y,E,x);if(y.to.line<a.first){hl(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var z=y.text.length-1-(a.first-y.from.line);hl(a,z),y={from:Ot(a.first,0),to:Ot(y.to.line+z,y.to.ch),text:[Dt(y.text)],origin:y.origin}}var ce=a.lastLine();y.to.line>ce&&(y={from:y.from,to:Ot(ce,yn(a,ce).text.length),text:[y.text[0]],origin:y.origin}),y.removed=rt(a,y.from,y.to),E||(E=tl(a,y)),a.cm?Cu(a.cm,y,x):Ms(a,y,x),Rs(a,E,vt),a.cantEdit&&ws(a,Ot(a.firstLine(),0))&&(a.cantEdit=!1)}}function Cu(a,y,E){var x=a.doc,z=a.display,ce=y.from,pe=y.to,Ce=!1,Se=ce.line;a.options.lineWrapping||(Se=_t(Gt(yn(x,ce.line))),x.iter(Se,pe.line+1,function(bn){if(bn==z.maxLine)return Ce=!0,!0})),x.sel.contains(y.from,y.to)>-1&&Rn(a),Ms(x,y,E,jo(a)),a.options.lineWrapping||(x.iter(Se,ce.line+y.text.length,function(bn){var or=br(bn);or>z.maxLineLength&&(z.maxLine=bn,z.maxLineLength=or,z.maxLineChanged=!0,Ce=!1)}),Ce&&(a.curOp.updateMaxLine=!0)),Ne(x,ce.line),To(a,400);var Ke=y.text.length-(pe.line-ce.line)-1;y.full?$A(a):ce.line==pe.line&&y.text.length==1&&!Ts(a.doc,y)?ea(a,ce.line,"text"):$A(a,ce.line,pe.line+1,Ke);var Ft=Wt(a,"changes"),Qt=Wt(a,"change");if(Qt||Ft){var Un={from:ce,to:pe,text:y.text,removed:y.removed,origin:y.origin};Qt&&qi(a,"change",a,Un),Ft&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Un)}a.display.selForContextMenu=null}function No(a,y,E,x,z){var ce;x||(x=E),kn(x,E)<0&&(ce=[x,E],E=ce[0],x=ce[1]),typeof y=="string"&&(y=a.splitLines(y)),Ho(a,{from:E,to:x,text:y,origin:z})}function Pl(a,y,E,x){E<a.line?a.line+=x:y<a.line&&(a.line=y,a.ch=0)}function Ea(a,y,E,x){for(var z=0;z<a.length;++z){var ce=a[z],pe=!0;if(ce.ranges){ce.copied||(ce=a[z]=ce.deepCopy(),ce.copied=!0);for(var Ce=0;Ce<ce.ranges.length;Ce++)Pl(ce.ranges[Ce].anchor,y,E,x),Pl(ce.ranges[Ce].head,y,E,x);continue}for(var Se=0;Se<ce.changes.length;++Se){var Ke=ce.changes[Se];if(E<Ke.from.line)Ke.from=Ot(Ke.from.line+x,Ke.from.ch),Ke.to=Ot(Ke.to.line+x,Ke.to.ch);else if(y<=Ke.to.line){pe=!1;break}}pe||(a.splice(0,z+1),z=0)}}function Ps(a,y){var E=y.from.line,x=y.to.line,z=y.text.length-(x-E)-1;Ea(a.done,E,x,z),Ea(a.undone,E,x,z)}function is(a,y,E,x){var z=y,ce=y;return typeof y=="number"?ce=yn(a,wr(a,y)):z=_t(y),z==null?null:(x(ce,z)&&a.cm&&ea(a.cm,z,E),ce)}function Ro(a){this.lines=a,this.parent=null;for(var y=0,E=0;E<a.length;++E)a[E].parent=this,y+=a[E].height;this.height=y}Ro.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var E=a,x=a+y;E<x;++E){var z=this.lines[E];this.height-=z.height,fi(z),qi(z,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,E){this.height+=E,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var x=0;x<y.length;++x)y[x].parent=this},iterN:function(a,y,E){for(var x=a+y;a<x;++a)if(E(this.lines[a]))return!0}};function po(a){this.children=a;for(var y=0,E=0,x=0;x<a.length;++x){var z=a[x];y+=z.chunkSize(),E+=z.height,z.parent=this}this.size=y,this.height=E,this.parent=null}po.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var E=0;E<this.children.length;++E){var x=this.children[E],z=x.chunkSize();if(a<z){var ce=Math.min(y,z-a),pe=x.height;if(x.removeInner(a,ce),this.height-=pe-x.height,z==ce&&(this.children.splice(E--,1),x.parent=null),(y-=ce)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof Ro))){var Ce=[];this.collapse(Ce),this.children=[new Ro(Ce)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,E){this.size+=y.length,this.height+=E;for(var x=0;x<this.children.length;++x){var z=this.children[x],ce=z.chunkSize();if(a<=ce){if(z.insertInner(a,y,E),z.lines&&z.lines.length>50){for(var pe=z.lines.length%25+25,Ce=pe;Ce<z.lines.length;){var Se=new Ro(z.lines.slice(Ce,Ce+=25));z.height-=Se.height,this.children.splice(++x,0,Se),Se.parent=this}z.lines=z.lines.slice(0,pe),this.maybeSpill()}break}a-=ce}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),E=new po(y);if(a.parent){a.size-=E.size,a.height-=E.height;var z=Lt(a.parent.children,a);a.parent.children.splice(z+1,0,E)}else{var x=new po(a.children);x.parent=a,a.children=[x,E],a=x}E.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,E){for(var x=0;x<this.children.length;++x){var z=this.children[x],ce=z.chunkSize();if(a<ce){var pe=Math.min(y,ce-a);if(z.iterN(a,pe,E))return!0;if((y-=pe)==0)break;a=0}else a-=ce}}};var Oo=function(a,y,E){if(E)for(var x in E)E.hasOwnProperty(x)&&(this[x]=E[x]);this.doc=a,this.node=y};Oo.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,E=this.line,x=_t(E);if(!(x==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(E.widgets=null);var ce=BA(this);Kr(E,Math.max(0,E.height-ce)),a&&(Ma(a,function(){xs(a,E,-ce),ea(a,x,"widget")}),qi(a,"lineWidgetCleared",a,this,x))}},Oo.prototype.changed=function(){var a=this,y=this.height,E=this.doc.cm,x=this.line;this.height=null;var z=BA(this)-y;z&&(Ln(this.doc,x)||Kr(x,x.height+z),E&&Ma(E,function(){E.curOp.forceUpdate=!0,xs(E,x,z),qi(E,"lineWidgetChanged",E,a,_t(x))}))},Cn(Oo);function xs(a,y,E){tr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&es(a,E)}function lu(a,y,E,x){var z=new Oo(a,E,x),ce=a.cm;return ce&&z.noHScroll&&(ce.display.alignWidgets=!0),is(a,y,"widget",function(pe){var Ce=pe.widgets||(pe.widgets=[]);if(z.insertAt==null?Ce.push(z):Ce.splice(Math.min(Ce.length-1,Math.max(0,z.insertAt)),0,z),z.line=pe,ce&&!Ln(a,pe)){var Se=tr(pe)<a.scrollTop;Kr(pe,pe.height+BA(z)),Se&&es(ce,z.height),ce.curOp.forceUpdate=!0}return!0}),ce&&qi(ce,"lineWidgetAdded",ce,z,typeof y=="number"?y:_t(y)),z}var Ks=0,go=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++Ks};go.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Na(a),Wt(this,"clear")){var E=this.find();E&&qi(this,"clear",E.from,E.to)}for(var x=null,z=null,ce=0;ce<this.lines.length;++ce){var pe=this.lines[ce],Ce=Qn(pe.markedSpans,this);a&&!this.collapsed?ea(a,_t(pe),"text"):a&&(Ce.to!=null&&(z=_t(pe)),Ce.from!=null&&(x=_t(pe))),pe.markedSpans=Nn(pe.markedSpans,Ce),Ce.from==null&&this.collapsed&&!Ln(this.doc,pe)&&a&&Kr(pe,qA(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Se=0;Se<this.lines.length;++Se){var Ke=Gt(this.lines[Se]),Ft=br(Ke);Ft>a.display.maxLineLength&&(a.display.maxLine=Ke,a.display.maxLineLength=Ft,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&$A(a,x,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Fo(a.doc)),a&&qi(a,"markerCleared",a,this,x,z),y&&qa(a),this.parent&&this.parent.clear()}},go.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var E,x,z=0;z<this.lines.length;++z){var ce=this.lines[z],pe=Qn(ce.markedSpans,this);if(pe.from!=null&&(E=Ot(y?ce:_t(ce),pe.from),a==-1))return E;if(pe.to!=null&&(x=Ot(y?ce:_t(ce),pe.to),a==1))return x}return E&&{from:E,to:x}},go.prototype.changed=function(){var a=this,y=this.find(-1,!0),E=this,x=this.doc.cm;!y||!x||Ma(x,function(){var z=y.line,ce=_t(y.line),pe=KA(x,ce);if(pe&&(ka(pe),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!Ln(E.doc,z)&&E.height!=null){var Ce=E.height;E.height=null;var Se=BA(E)-Ce;Se&&Kr(z,z.height+Se)}qi(x,"markerChanged",x,a)})},go.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Lt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},go.prototype.detachLine=function(a){if(this.lines.splice(Lt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Cn(go);function _o(a,y,E,x,z){if(x&&x.shared)return uu(a,y,E,x,z);if(a.cm&&!a.cm.curOp)return Aa(a.cm,_o)(a,y,E,x,z);var ce=new go(a,z),pe=kn(y,E);if(x&&$t(x,ce,!1),pe>0||pe==0&&ce.clearWhenEmpty!==!1)return ce;if(ce.replacedWith&&(ce.collapsed=!0,ce.widgetNode=lt("span",[ce.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||ce.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(ce.widgetNode.insertLeft=!0)),ce.collapsed){if(sn(a,y.line,y,E,ce)||y.line!=E.line&&sn(a,E.line,y,E,ce))throw new Error("Inserting collapsed marker partially overlapping an existing one");Vt()}ce.addToHistory&&il(a,{from:y,to:E,origin:"markText"},a.sel,NaN);var Ce=y.line,Se=a.cm,Ke;if(a.iter(Ce,E.line+1,function(Qt){Se&&ce.collapsed&&!Se.options.lineWrapping&&Gt(Qt)==Se.display.maxLine&&(Ke=!0),ce.collapsed&&Ce!=y.line&&Kr(Qt,0),Zn(Qt,new Nt(ce,Ce==y.line?y.ch:null,Ce==E.line?E.ch:null)),++Ce}),ce.collapsed&&a.iter(y.line,E.line+1,function(Qt){Ln(a,Qt)&&Kr(Qt,0)}),ce.clearOnEnter&&tt(ce,"beforeCursorEnter",function(){return ce.clear()}),ce.readOnly&&(gt(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ce.collapsed&&(ce.id=++Ks,ce.atomic=!0),Se){if(Ke&&(Se.curOp.updateMaxLine=!0),ce.collapsed)$A(Se,y.line,E.line+1);else if(ce.className||ce.startStyle||ce.endStyle||ce.css||ce.attributes||ce.title)for(var Ft=y.line;Ft<=E.line;Ft++)ea(Se,Ft,"text");ce.atomic&&Fo(Se.doc),qi(Se,"markerAdded",Se,ce)}return ce}var As=function(a,y){this.markers=a,this.primary=y;for(var E=0;E<a.length;++E)a[E].parent=this};As.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();qi(this,"clear")}},As.prototype.find=function(a,y){return this.primary.find(a,y)},Cn(As);function uu(a,y,E,x,z){x=$t(x),x.shared=!1;var ce=[_o(a,y,E,x,z)],pe=ce[0],Ce=x.widgetNode;return bo(a,function(Se){Ce&&(x.widgetNode=Ce.cloneNode(!0)),ce.push(_o(Se,It(Se,y),It(Se,E),x,z));for(var Ke=0;Ke<Se.linked.length;++Ke)if(Se.linked[Ke].isParent)return;pe=Dt(ce)}),new As(ce,pe)}function pl(a){return a.findMarks(Ot(a.first,0),a.clipPos(Ot(a.lastLine())),function(y){return y.parent})}function gl(a,y){for(var E=0;E<y.length;E++){var x=y[E],z=x.find(),ce=a.clipPos(z.from),pe=a.clipPos(z.to);if(kn(ce,pe)){var Ce=_o(a,ce,pe,x.primary,x.primary.type);x.markers.push(Ce),Ce.parent=x}}}function Zs(a){for(var y=function(x){var z=a[x],ce=[z.primary.doc];bo(z.primary.doc,function(Se){return ce.push(Se)});for(var pe=0;pe<z.markers.length;pe++){var Ce=z.markers[pe];Lt(ce,Ce.doc)==-1&&(Ce.parent=null,z.markers.splice(pe--,1))}},E=0;E<a.length;E++)y(E)}var Kl=0,ba=function(a,y,E,x,z){if(!(this instanceof ba))return new ba(a,y,E,x,z);E==null&&(E=0),po.call(this,[new Ro([new Tr("",null)])]),this.first=E,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=E;var ce=Ot(E,0);this.sel=xo(ce),this.history=new gs(null),this.id=++Kl,this.modeOption=y,this.lineSep=x,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Ms(this,{from:ce,to:ce,text:a}),da(this,xo(ce),vt)};ba.prototype=ue(po.prototype,{constructor:ba,iter:function(a,y,E){E?this.iterN(a-this.first,y-a,E):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var E=0,x=0;x<y.length;++x)E+=y[x].height;this.insertInner(a-this.first,y,E)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=Sr(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:oa(function(a){var y=Ot(this.first,0),E=this.first+this.size-1;Ho(this,{from:y,to:Ot(E,yn(this,E).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&no(this.cm,0,0),da(this,xo(y),vt)}),replaceRange:function(a,y,E,x){y=It(this,y),E=E?It(this,E):y,No(this,a,y,E,x)},getRange:function(a,y,E){var x=rt(this,It(this,a),It(this,y));return E===!1?x:x.join(E||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Jn(this,a))return yn(this,a)},getLineNumber:function(a){return _t(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=yn(this,a)),Gt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return It(this,a)},getCursor:function(a){var y=this.sel.primary(),E;return a==null||a=="head"?E=y.head:a=="anchor"?E=y.anchor:a=="end"||a=="to"||a===!1?E=y.to():E=y.from(),E},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:oa(function(a,y,E){ll(this,It(this,typeof a=="number"?Ot(a,y||0):a),null,E)}),setSelection:oa(function(a,y,E){ll(this,It(this,a),It(this,y||a),E)}),extendSelection:oa(function(a,y,E){ms(this,It(this,a),y&&It(this,y),E)}),extendSelections:oa(function(a,y){$a(this,mt(this,a),y)}),extendSelectionsBy:oa(function(a,y){var E=un(this.sel.ranges,a);$a(this,mt(this,E),y)}),setSelections:oa(function(a,y,E){if(a.length){for(var x=[],z=0;z<a.length;z++)x[z]=new mA(It(this,a[z].anchor),It(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),da(this,xa(this.cm,x,y),E)}}),addSelection:oa(function(a,y,E){var x=this.sel.ranges.slice(0);x.push(new mA(It(this,a),It(this,y||a))),da(this,xa(this.cm,x,x.length-1),E)}),getSelection:function(a){for(var y=this.sel.ranges,E,x=0;x<y.length;x++){var z=rt(this,y[x].from(),y[x].to());E=E?E.concat(z):z}return a===!1?E:E.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],E=this.sel.ranges,x=0;x<E.length;x++){var z=rt(this,E[x].from(),E[x].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[x]=z}return y},replaceSelection:function(a,y,E){for(var x=[],z=0;z<this.sel.ranges.length;z++)x[z]=a;this.replaceSelections(x,y,E||"+input")},replaceSelections:oa(function(a,y,E){for(var x=[],z=this.sel,ce=0;ce<z.ranges.length;ce++){var pe=z.ranges[ce];x[ce]={from:pe.from(),to:pe.to(),text:this.splitLines(a[ce]),origin:E}}for(var Ce=y&&y!="end"&&su(this,x,y),Se=x.length-1;Se>=0;Se--)Ho(this,x[Se]);Ce?Ns(this,Ce):this.cm&&wo(this.cm)}),undo:oa(function(){Os(this,"undo")}),redo:oa(function(){Os(this,"redo")}),undoSelection:oa(function(){Os(this,"undo",!0)}),redoSelection:oa(function(){Os(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,E=0,x=0;x<a.done.length;x++)a.done[x].ranges||++y;for(var z=0;z<a.undone.length;z++)a.undone[z].ranges||++E;return{undo:y,redo:E}},clearHistory:function(){var a=this;this.history=new gs(this.history.maxGeneration),bo(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:rs(this.history.done),undone:rs(this.history.undone)}},setHistory:function(a){var y=this.history=new gs(this.history.maxGeneration);y.done=rs(a.done.slice(0),null,!0),y.undone=rs(a.undone.slice(0),null,!0)},setGutterMarker:oa(function(a,y,E){return is(this,a,"gutter",function(x){var z=x.gutterMarkers||(x.gutterMarkers={});return z[y]=E,!E&&ie(z)&&(x.gutterMarkers=null),!0})}),clearGutter:oa(function(a){var y=this;this.iter(function(E){E.gutterMarkers&&E.gutterMarkers[a]&&is(y,E,"gutter",function(){return E.gutterMarkers[a]=null,ie(E.gutterMarkers)&&(E.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Jn(this,a)||(y=a,a=yn(this,a),!a))return null}else if(y=_t(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:oa(function(a,y,E){return is(this,a,y=="gutter"?"gutter":"class",function(x){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!x[z])x[z]=E;else{if(Ue(E).test(x[z]))return!1;x[z]+=" "+E}return!0})}),removeLineClass:oa(function(a,y,E){return is(this,a,y=="gutter"?"gutter":"class",function(x){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ce=x[z];if(ce)if(E==null)x[z]=null;else{var pe=ce.match(Ue(E));if(!pe)return!1;var Ce=pe.index+pe[0].length;x[z]=ce.slice(0,pe.index)+(!pe.index||Ce==ce.length?"":" ")+ce.slice(Ce)||null}else return!1;return!0})}),addLineWidget:oa(function(a,y,E){return lu(this,a,y,E)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,E){return _o(this,It(this,a),It(this,y),E,E&&E.type||"range")},setBookmark:function(a,y){var E={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=It(this,a),_o(this,a,a,E,"bookmark")},findMarksAt:function(a){a=It(this,a);var y=[],E=yn(this,a.line).markedSpans;if(E)for(var x=0;x<E.length;++x){var z=E[x];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,E){a=It(this,a),y=It(this,y);var x=[],z=a.line;return this.iter(a.line,y.line+1,function(ce){var pe=ce.markedSpans;if(pe)for(var Ce=0;Ce<pe.length;Ce++){var Se=pe[Ce];!(Se.to!=null&&z==a.line&&a.ch>=Se.to||Se.from==null&&z!=a.line||Se.from!=null&&z==y.line&&Se.from>=y.ch)&&(!E||E(Se.marker))&&x.push(Se.marker.parent||Se.marker)}++z}),x},getAllMarks:function(){var a=[];return this.iter(function(y){var E=y.markedSpans;if(E)for(var x=0;x<E.length;++x)E[x].from!=null&&a.push(E[x].marker)}),a},posFromIndex:function(a){var y,E=this.first,x=this.lineSeparator().length;return this.iter(function(z){var ce=z.text.length+x;if(ce>a)return y=a,!0;a-=ce,++E}),It(this,Ot(E,y))},indexFromPos:function(a){a=It(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var E=this.lineSeparator().length;return this.iter(this.first,a.line,function(x){y+=x.text.length+E}),y},copy:function(a){var y=new ba(Sr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,E=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<E&&(E=a.to);var x=new ba(Sr(this,y,E),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(x.history=this.history),(this.linked||(this.linked=[])).push({doc:x,sharedHist:a.sharedHist}),x.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gl(x,pl(this)),x},unlinkDoc:function(a){if(a instanceof PA&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var E=this.linked[y];if(E.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),Zs(pl(this));break}}if(a.history==this.history){var x=[a.id];bo(a,function(z){return x.push(z.id)},!0),a.history=new gs(null),a.history.done=rs(this.history.done,x),a.history.undone=rs(this.history.undone,x)}},iterLinkedDocs:function(a){bo(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Qr(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:oa(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&wu(this.cm))})}),ba.prototype.eachLine=ba.prototype.iter;var Zl=0;function te(a){var y=this;if(Le(y),!(wt(y,a)||CA(y.display,a))){Mn(a),Ee&&(Zl=+new Date);var E=Za(y,a,!0),x=a.dataTransfer.files;if(!(!E||y.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var z=x.length,ce=Array(z),pe=0,Ce=function(){++pe==z&&Aa(y,function(){E=It(y.doc,E);var bn={from:E,to:E,text:y.doc.splitLines(ce.filter(function(or){return or!=null}).join(y.doc.lineSeparator())),origin:"paste"};Ho(y.doc,bn),Ns(y.doc,xo(It(y.doc,E),It(y.doc,Eo(bn))))})()},Se=function(bn,or){if(y.options.allowDropFileTypes&&Lt(y.options.allowDropFileTypes,bn.type)==-1){Ce();return}var Cr=new FileReader;Cr.onerror=function(){return Ce()},Cr.onload=function(){var Mr=Cr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Mr)){Ce();return}ce[or]=Mr,Ce()},Cr.readAsText(bn)},Ke=0;Ke<x.length;Ke++)Se(x[Ke],Ke);else{if(y.state.draggingText&&y.doc.sel.contains(E)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ft=a.dataTransfer.getData("Text");if(Ft){var Qt;if(y.state.draggingText&&!y.state.draggingText.copy&&(Qt=y.listSelections()),Rs(y.doc,xo(E,E)),Qt)for(var Un=0;Un<Qt.length;++Un)No(y.doc,"",Qt[Un].anchor,Qt[Un].head,"drag");y.replaceSelection(Ft,"around","paste"),y.display.input.focus()}}catch(bn){}}}}function ye(a,y){if(Ee&&(!a.state.draggingText||+new Date-Zl<100)){cr(y);return}if(!(wt(a,y)||CA(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!ut)){var E=Ge("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ve&&(E.width=E.height=1,a.display.wrapper.appendChild(E),E._top=E.offsetTop),y.dataTransfer.setDragImage(E,0,0),ve&&E.parentNode.removeChild(E)}}function le(a,y){var E=Za(a,y);if(E){var x=document.createDocumentFragment();Yo(a,E,x),a.display.dragCursor||(a.display.dragCursor=Ge("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Pe(a.display.dragCursor,x)}}function Le(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function Ve(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),E=[],x=0;x<y.length;x++){var z=y[x].CodeMirror;z&&E.push(z)}E.length&&E[0].operation(function(){for(var ce=0;ce<E.length;ce++)a(E[ce])})}}var nt=!1;function En(){nt||(Xt(),nt=!0)}function Xt(){var a;tt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,Ve(Ur)},100))}),tt(window,"blur",function(){return Ve(lo)})}function Ur(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var Pt={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},_n=0;_n<10;_n++)Pt[_n+48]=Pt[_n+96]=String(_n);for(var li=65;li<=90;li++)Pt[li]=String.fromCharCode(li);for(var Nr=1;Nr<=12;Nr++)Pt[Nr+111]=Pt[Nr+63235]="F"+Nr;var vr={};vr.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},vr.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},vr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},vr.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},vr.default=Te?vr.macDefault:vr.pcDefault;function xi(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var E,x,z,ce,pe=0;pe<y.length-1;pe++){var Ce=y[pe];if(/^(cmd|meta|m)$/i.test(Ce))ce=!0;else if(/^a(lt)?$/i.test(Ce))E=!0;else if(/^(c|ctrl|control)$/i.test(Ce))x=!0;else if(/^s(hift)?$/i.test(Ce))z=!0;else throw new Error("Unrecognized modifier name: "+Ce)}return E&&(a="Alt-"+a),x&&(a="Ctrl-"+a),ce&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function bA(a){var y={};for(var E in a)if(a.hasOwnProperty(E)){var x=a[E];if(/^(name|fallthrough|(de|at)tach)$/.test(E))continue;if(x=="..."){delete a[E];continue}for(var z=un(E.split(" "),xi),ce=0;ce<z.length;ce++){var pe=void 0,Ce=void 0;ce==z.length-1?(Ce=z.join(" "),pe=x):(Ce=z.slice(0,ce+1).join(" "),pe="...");var Se=y[Ce];if(!Se)y[Ce]=pe;else if(Se!=pe)throw new Error("Inconsistent bindings for "+Ce)}delete a[E]}for(var Ke in y)a[Ke]=y[Ke];return a}function Pi(a,y,E,x){y=Ir(y);var z=y.call?y.call(a,x):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&E(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Pi(a,y.fallthrough,E,x);for(var ce=0;ce<y.fallthrough.length;ce++){var pe=Pi(a,y.fallthrough[ce],E,x);if(pe)return pe}}}function Ki(a){var y=typeof a=="string"?a:Pt[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function AA(a,y,E){var x=a;return y.altKey&&x!="Alt"&&(a="Alt-"+a),(be?y.metaKey:y.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(be?y.ctrlKey:y.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!E&&y.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function Ri(a,y){if(ve&&a.keyCode==34&&a.char)return!1;var E=Pt[a.keyCode];return E==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(E=a.code),AA(E,a,y))}function Ir(a){return typeof a=="string"?vr[a]:a}function Gi(a,y){for(var E=a.doc.sel.ranges,x=[],z=0;z<E.length;z++){for(var ce=y(E[z]);x.length&&kn(ce.from,Dt(x).to)<=0;){var pe=x.pop();if(kn(pe.from,ce.from)<0){ce.from=pe.from;break}}x.push(ce)}Ma(a,function(){for(var Ce=x.length-1;Ce>=0;Ce--)No(a.doc,"",x[Ce].from,x[Ce].to,"+delete");wo(a)})}function TA(a,y,E){var x=pt(a.text,y+E,E);return x<0||x>a.text.length?null:x}function ki(a,y,E){var x=TA(a,y.ch,E);return x==null?null:new Ot(y.line,x,E<0?"after":"before")}function FA(a,y,E,x,z){if(a){y.doc.direction=="rtl"&&(z=-z);var ce=Dn(E,y.doc.direction);if(ce){var pe=z<0?Dt(ce):ce[0],Ce=z<0==(pe.level==1),Se=Ce?"after":"before",Ke;if(pe.level>0||y.doc.direction=="rtl"){var Ft=Vi(y,E);Ke=z<0?E.text.length-1:0;var Qt=Oi(y,Ft,Ke).top;Ke=zt(function(Un){return Oi(y,Ft,Un).top==Qt},z<0==(pe.level==1)?pe.from:pe.to-1,Ke),Se=="before"&&(Ke=TA(E,Ke,1))}else Ke=z<0?pe.to:pe.from;return new Ot(x,Ke,Se)}}return new Ot(x,z<0?E.text.length:0,z<0?"before":"after")}function oA(a,y,E,x){var z=Dn(y,a.doc.direction);if(!z)return ki(y,E,x);E.ch>=y.text.length?(E.ch=y.text.length,E.sticky="before"):E.ch<=0&&(E.ch=0,E.sticky="after");var ce=Et(z,E.ch,E.sticky),pe=z[ce];if(a.doc.direction=="ltr"&&pe.level%2==0&&(x>0?pe.to>E.ch:pe.from<E.ch))return ki(y,E,x);var Ce=function(Gr,ri){return TA(y,Gr instanceof Ot?Gr.ch:Gr,ri)},Se,Ke=function(Gr){return a.options.lineWrapping?(Se=Se||Vi(a,y),OA(a,y,Se,Gr)):{begin:0,end:y.text.length}},Ft=Ke(E.sticky=="before"?Ce(E,-1):E.ch);if(a.doc.direction=="rtl"||pe.level==1){var Qt=pe.level==1==x<0,Un=Ce(E,Qt?1:-1);if(Un!=null&&(Qt?Un<=pe.to&&Un<=Ft.end:Un>=pe.from&&Un>=Ft.begin)){var bn=Qt?"before":"after";return new Ot(E.line,Un,bn)}}var or=function(Gr,ri,Vr){for(var pi=function(RA,ha){return ha?new Ot(E.line,Ce(RA,1),"before"):new Ot(E.line,RA,"after")};Gr>=0&&Gr<z.length;Gr+=ri){var Ii=z[Gr],_i=ri>0==(Ii.level!=1),$i=_i?Vr.begin:Ce(Vr.end,-1);if(Ii.from<=$i&&$i<Ii.to||($i=_i?Ii.from:Ce(Ii.to,-1),Vr.begin<=$i&&$i<Vr.end))return pi($i,_i)}},Cr=or(ce+x,x,Ft);if(Cr)return Cr;var Mr=x>0?Ft.end:Ce(Ft.begin,-1);return Mr!=null&&!(x>0&&Mr==y.text.length)&&(Cr=or(x>0?0:z.length-1,x,Ke(Mr)),Cr)?Cr:null}var Zi={selectAll:fl,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),vt)},killLine:function(a){return Gi(a,function(y){if(y.empty()){var E=yn(a.doc,y.head.line).text.length;return y.head.ch==E&&y.head.line<a.lastLine()?{from:y.head,to:Ot(y.head.line+1,0)}:{from:y.head,to:Ot(y.head.line,E)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return Gi(a,function(y){return{from:Ot(y.from().line,0),to:It(a.doc,Ot(y.to().line+1,0))}})},delLineLeft:function(a){return Gi(a,function(y){return{from:Ot(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return Gi(a,function(y){var E=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:E},"div");return{from:x,to:y.from()}})},delWrappedLineRight:function(a){return Gi(a,function(y){var E=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:E},"div");return{from:y.from(),to:x}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Ot(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ot(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return sA(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return vl(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Po(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:E},"div")},Yt)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:E},"div")},Yt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var E=a.cursorCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:E},"div");return x.ch<a.getLine(x.line).search(/\S/)?vl(a,y.head):x},Yt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],E=a.listSelections(),x=a.options.tabSize,z=0;z<E.length;z++){var ce=E[z].from(),pe=Re(a.getLine(ce.line),ce.ch,x);y.push(wn(x-pe%x))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Ma(a,function(){for(var y=a.listSelections(),E=[],x=0;x<y.length;x++)if(y[x].empty()){var z=y[x].head,ce=yn(a.doc,z.line).text;if(ce){if(z.ch==ce.length&&(z=new Ot(z.line,z.ch-1)),z.ch>0)z=new Ot(z.line,z.ch+1),a.replaceRange(ce.charAt(z.ch-1)+ce.charAt(z.ch-2),Ot(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var pe=yn(a.doc,z.line-1).text;pe&&(z=new Ot(z.line,1),a.replaceRange(ce.charAt(0)+a.doc.lineSeparator()+pe.charAt(pe.length-1),Ot(z.line-1,pe.length-1),z,"+transpose"))}}E.push(new mA(z,z))}a.setSelections(E)})},newlineAndIndent:function(a){return Ma(a,function(){for(var y=a.listSelections(),E=y.length-1;E>=0;E--)a.replaceRange(a.doc.lineSeparator(),y[E].anchor,y[E].head,"+input");y=a.listSelections();for(var x=0;x<y.length;x++)a.indentLine(y[x].from().line,null,!0);wo(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function sA(a,y){var E=yn(a.doc,y),x=Gt(E);return x!=E&&(y=_t(x)),FA(!0,a,x,y,1)}function Po(a,y){var E=yn(a.doc,y),x=nn(E);return x!=E&&(y=_t(x)),FA(!0,a,E,y,-1)}function vl(a,y){var E=sA(a,y.line),x=yn(a.doc,E.line),z=Dn(x,a.doc.direction);if(!z||z[0].level==0){var ce=Math.max(E.ch,x.text.search(/\S/)),pe=y.line==E.line&&y.ch<=ce&&y.ch;return Ot(E.line,pe?0:ce,E.sticky)}return E}function Ko(a,y,E){if(typeof y=="string"&&(y=Zi[y],!y))return!1;a.display.input.ensurePolled();var x=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),E&&(a.display.shift=!1),z=y(a)!=hn}finally{a.display.shift=x,a.state.suppressEdits=!1}return z}function zs(a,y,E){for(var x=0;x<a.state.keyMaps.length;x++){var z=Pi(y,a.state.keyMaps[x],E,a);if(z)return z}return a.options.extraKeys&&Pi(y,a.options.extraKeys,E,a)||Pi(y,a.options.keyMap,E,a)}var Wu=new xe;function ml(a,y,E,x){var z=a.state.keySeq;if(z){if(Ki(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Wu.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),cu(a,z+" "+y,E,x))return!0}return cu(a,y,E,x)}function cu(a,y,E,x){var z=zs(a,y,x);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&qi(a,"keyHandled",a,y,E),(z=="handled"||z=="multi")&&(Mn(E),Lo(a)),!!z}function fu(a,y){var E=Ri(y,!0);return E?y.shiftKey&&!a.state.keySeq?ml(a,"Shift-"+E,y,function(x){return Ko(a,x,!0)})||ml(a,E,y,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return Ko(a,x)}):ml(a,E,y,function(x){return Ko(a,x)}):!1}function xu(a,y,E){return ml(a,"'"+E+"'",y,function(x){return Ko(a,x,!0)})}var zl=null;function Wl(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=et(),!wt(y,a))){Ee&&de<11&&a.keyCode==27&&(a.returnValue=!1);var E=a.keyCode;y.display.shift=E==16||a.shiftKey;var x=fu(y,a);ve&&(zl=x?E:null,!x&&E==88&&!qn&&(Te?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),re&&!Te&&!x&&E==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Gu(y)}}function Gu(a){var y=a.display.lineDiv;ft(y,"CodeMirror-crosshair");function E(x){(x.keyCode==18||!x.altKey)&&(ke(y,"CodeMirror-crosshair"),jt(document,"keyup",E),jt(document,"mouseover",E))}tt(document,"keyup",E),tt(document,"mouseover",E)}function Eu(a){a.keyCode==16&&(this.doc.sel.shift=!1),wt(this,a)}function bu(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(CA(y.display,a)||wt(y,a)||a.ctrlKey&&!a.altKey||Te&&a.metaKey)){var E=a.keyCode,x=a.charCode;if(ve&&E==zl){zl=null,Mn(a);return}if(!(ve&&(!a.which||a.which<10)&&fu(y,a))){var z=String.fromCharCode(x==null?E:x);z!="\b"&&(xu(y,a,z)||y.display.input.onKeyPress(a))}}}var Vu=400,Ws=function(a,y,E){this.time=a,this.pos=y,this.button=E};Ws.prototype.compare=function(a,y,E){return this.time+Vu>a&&kn(y,this.pos)==0&&E==this.button};var as,yl;function Fu(a,y){var E=+new Date;return yl&&yl.compare(E,a,y)?(as=yl=null,"triple"):as&&as.compare(E,a,y)?(yl=new Ws(E,a,y),as=null,"double"):(as=new Ws(E,a,y),yl=null,"single")}function Gl(a){var y=this,E=y.display;if(!(wt(y,a)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=a.shiftKey,CA(E,a)){ze||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!du(y,a)){var x=Za(y,a),z=mr(a),ce=x?Fu(x,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&Su(y,z,x,ce,a))&&(z==1?x?ku(y,x,ce,a):ar(a)==E.scroller&&Mn(a):z==2?(x&&ms(y.doc,x),setTimeout(function(){return E.input.focus()},20)):z==3&&(Be?y.display.input.onContextMenu(a):Jo(y)))}}}function Su(a,y,E,x,z){var ce="Click";return x=="double"?ce="Double"+ce:x=="triple"&&(ce="Triple"+ce),ce=(y==1?"Left":y==2?"Middle":"Right")+ce,ml(a,AA(ce,z),z,function(pe){if(typeof pe=="string"&&(pe=Zi[pe]),!pe)return!1;var Ce=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Ce=pe(a,E)!=hn}finally{a.state.suppressEdits=!1}return Ce})}function _u(a,y,E){var x=a.getOption("configureMouse"),z=x?x(a,y,E):{};if(z.unit==null){var ce=at?E.shiftKey&&E.metaKey:E.altKey;z.unit=ce?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||E.shiftKey),z.addNew==null&&(z.addNew=Te?E.metaKey:E.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(Te?E.altKey:E.ctrlKey)),z}function ku(a,y,E,x){Ee?setTimeout(fn(Xo,a),0):a.curOp.focus=et();var z=_u(a,E,x),ce=a.doc.sel,pe;a.options.dragDrop&&$n&&!a.isReadOnly()&&E=="single"&&(pe=ce.contains(y))>-1&&(kn((pe=ce.ranges[pe]).from(),y)<0||y.xRel>0)&&(kn(pe.to(),y)>0||y.xRel<0)?ju(a,x,y,z):Uu(a,x,y,z)}function ju(a,y,E,x){var z=a.display,ce=!1,pe=Aa(a,function(Ke){ze&&(z.scroller.draggable=!1),a.state.draggingText=!1,jt(z.wrapper.ownerDocument,"mouseup",pe),jt(z.wrapper.ownerDocument,"mousemove",Ce),jt(z.scroller,"dragstart",Se),jt(z.scroller,"drop",pe),ce||(Mn(Ke),x.addNew||ms(a.doc,E,null,null,x.extend),ze&&!ut||Ee&&de==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),Ce=function(Ke){ce=ce||Math.abs(y.clientX-Ke.clientX)+Math.abs(y.clientY-Ke.clientY)>=10},Se=function(){return ce=!0};ze&&(z.scroller.draggable=!0),a.state.draggingText=pe,pe.copy=!x.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),tt(z.wrapper.ownerDocument,"mouseup",pe),tt(z.wrapper.ownerDocument,"mousemove",Ce),tt(z.scroller,"dragstart",Se),tt(z.scroller,"drop",pe),Jo(a),setTimeout(function(){return z.input.focus()},20)}function wl(a,y,E){if(E=="char")return new mA(y,y);if(E=="word")return a.findWordAt(y);if(E=="line")return new mA(Ot(y.line,0),It(a.doc,Ot(y.line+1,0)));var x=E(a,y);return new mA(x.from,x.to)}function Uu(a,y,E,x){var z=a.display,ce=a.doc;Mn(y);var pe,Ce,Se=ce.sel,Ke=Se.ranges;if(x.addNew&&!x.extend?(Ce=ce.sel.contains(E),Ce>-1?pe=Ke[Ce]:pe=new mA(E,E)):(pe=ce.sel.primary(),Ce=ce.sel.primIndex),x.unit=="rectangle")x.addNew||(pe=new mA(E,E)),E=Za(a,y,!0,!0),Ce=-1;else{var Ft=wl(a,E,x.unit);x.extend?pe=ol(pe,Ft.anchor,Ft.head,x.extend):pe=Ft}x.addNew?Ce==-1?(Ce=Ke.length,da(ce,xa(a,Ke.concat([pe]),Ce),{scroll:!1,origin:"*mouse"})):Ke.length>1&&Ke[Ce].empty()&&x.unit=="char"&&!x.extend?(da(ce,xa(a,Ke.slice(0,Ce).concat(Ke.slice(Ce+1)),0),{scroll:!1,origin:"*mouse"}),Se=ce.sel):sl(ce,Ce,pe,Jt):(Ce=0,da(ce,new Oa([pe],0),Jt),Se=ce.sel);var Qt=E;function Un(Vr){if(kn(Qt,Vr)!=0)if(Qt=Vr,x.unit=="rectangle"){for(var pi=[],Ii=a.options.tabSize,_i=Re(yn(ce,E.line).text,E.ch,Ii),$i=Re(yn(ce,Vr.line).text,Vr.ch,Ii),RA=Math.min(_i,$i),ha=Math.max(_i,$i),na=Math.min(E.line,Vr.line),Ga=Math.min(a.lastLine(),Math.max(E.line,Vr.line));na<=Ga;na++){var Fa=yn(ce,na).text,sa=jn(Fa,RA,Ii);RA==ha?pi.push(new mA(Ot(na,sa),Ot(na,sa))):Fa.length>sa&&pi.push(new mA(Ot(na,sa),Ot(na,jn(Fa,ha,Ii))))}pi.length||pi.push(new mA(E,E)),da(ce,xa(a,Se.ranges.slice(0,Ce).concat(pi),Ce),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Vr)}else{var Sa=pe,ma=wl(a,Vr,x.unit),zr=Sa.anchor,VA;kn(ma.anchor,zr)>0?(VA=ma.head,zr=ur(Sa.from(),ma.anchor)):(VA=ma.anchor,zr=er(Sa.to(),ma.head));var jA=Se.ranges.slice(0);jA[Ce]=Du(a,new mA(It(ce,zr),VA)),da(ce,xa(a,jA,Ce),Jt)}}var bn=z.wrapper.getBoundingClientRect(),or=0;function Cr(Vr){var pi=++or,Ii=Za(a,Vr,!0,x.unit=="rectangle");if(Ii)if(kn(Ii,Qt)!=0){a.curOp.focus=et(),Un(Ii);var _i=to(z,ce);(Ii.line>=_i.to||Ii.line<_i.from)&&setTimeout(Aa(a,function(){or==pi&&Cr(Vr)}),150)}else{var $i=Vr.clientY<bn.top?-20:Vr.clientY>bn.bottom?20:0;$i&&setTimeout(Aa(a,function(){or==pi&&(z.scroller.scrollTop+=$i,Cr(Vr))}),50)}}function Mr(Vr){a.state.selectingText=!1,or=1/0,Vr&&(Mn(Vr),z.input.focus()),jt(z.wrapper.ownerDocument,"mousemove",Gr),jt(z.wrapper.ownerDocument,"mouseup",ri),ce.history.lastSelOrigin=null}var Gr=Aa(a,function(Vr){Vr.buttons===0||!mr(Vr)?Mr(Vr):Cr(Vr)}),ri=Aa(a,Mr);a.state.selectingText=ri,tt(z.wrapper.ownerDocument,"mousemove",Gr),tt(z.wrapper.ownerDocument,"mouseup",ri)}function Du(a,y){var E=y.anchor,x=y.head,z=yn(a.doc,E.line);if(kn(E,x)==0&&E.sticky==x.sticky)return y;var ce=Dn(z);if(!ce)return y;var pe=Et(ce,E.ch,E.sticky),Ce=ce[pe];if(Ce.from!=E.ch&&Ce.to!=E.ch)return y;var Se=pe+(Ce.from==E.ch==(Ce.level!=1)?0:1);if(Se==0||Se==ce.length)return y;var Ke;if(x.line!=E.line)Ke=(x.line-E.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ft=Et(ce,x.ch,x.sticky),Qt=Ft-pe||(x.ch-E.ch)*(Ce.level==1?-1:1);Ft==Se-1||Ft==Se?Ke=Qt<0:Ke=Qt>0}var Un=ce[Se+(Ke?-1:0)],bn=Ke==(Un.level==1),or=bn?Un.from:Un.to,Cr=bn?"after":"before";return E.ch==or&&E.sticky==Cr?y:new mA(new Ot(E.line,or,Cr),x)}function Iu(a,y,E,x){var z,ce;if(y.touches)z=y.touches[0].clientX,ce=y.touches[0].clientY;else try{z=y.clientX,ce=y.clientY}catch(Un){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&Mn(y);var pe=a.display,Ce=pe.lineDiv.getBoundingClientRect();if(ce>Ce.bottom||!Wt(a,E))return vn(y);ce-=Ce.top-pe.viewOffset;for(var Se=0;Se<a.display.gutterSpecs.length;++Se){var Ke=pe.gutters.childNodes[Se];if(Ke&&Ke.getBoundingClientRect().right>=z){var Ft=St(a.doc,ce),Qt=a.display.gutterSpecs[Se];return qt(a,E,a,Ft,Qt.className,y),vn(y)}}}function du(a,y){return Iu(a,y,"gutterClick",!0)}function hu(a,y){CA(a.display,y)||Gs(a,y)||wt(a,y,"contextmenu")||Be||a.display.input.onContextMenu(y)}function Gs(a,y){return Wt(a,"gutterContextMenu")?Iu(a,y,"gutterContextMenu",!1):!1}function Vl(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ia(a)}var Zo={toString:function(){return"CodeMirror.Init"}},Qu={},jl={};function Yu(a){var y=a.optionHandlers;function E(x,z,ce,pe){a.defaults[x]=z,ce&&(y[x]=pe?function(Ce,Se,Ke){Ke!=Zo&&ce(Ce,Se,Ke)}:ce)}a.defineOption=E,a.Init=Zo,E("value","",function(x,z){return x.setValue(z)},!0),E("mode",null,function(x,z){x.doc.modeOption=z,nl(x)},!0),E("indentUnit",2,nl,!0),E("indentWithTabs",!1),E("smartIndent",!0),E("tabSize",4,function(x){ps(x),ia(x),$A(x)},!0),E("lineSeparator",null,function(x,z){if(x.doc.lineSep=z,!!z){var ce=[],pe=x.doc.first;x.doc.iter(function(Se){for(var Ke=0;;){var Ft=Se.text.indexOf(z,Ke);if(Ft==-1)break;Ke=Ft+z.length,ce.push(Ot(pe,Ft))}pe++});for(var Ce=ce.length-1;Ce>=0;Ce--)No(x.doc,z,ce[Ce],Ot(ce[Ce].line,ce[Ce].ch+z.length))}}),E("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,z,ce){x.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),ce!=Zo&&x.refresh()}),E("specialCharPlaceholder",ei,function(x){return x.refresh()},!0),E("electricChars",!0),E("inputStyle",He?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),E("spellcheck",!1,function(x,z){return x.getInputField().spellcheck=z},!0),E("autocorrect",!1,function(x,z){return x.getInputField().autocorrect=z},!0),E("autocapitalize",!1,function(x,z){return x.getInputField().autocapitalize=z},!0),E("rtlMoveVisually",!Oe),E("wholeLineUpdateBefore",!0),E("theme","default",function(x){Vl(x),hs(x)},!0),E("keyMap","default",function(x,z,ce){var pe=Ir(z),Ce=ce!=Zo&&Ir(ce);Ce&&Ce.detach&&Ce.detach(x,pe),pe.attach&&pe.attach(x,Ce||null)}),E("extraKeys",null),E("configureMouse",null),E("lineWrapping",!1,Lu,!0),E("gutters",[],function(x,z){x.display.gutterSpecs=ds(z,x.options.lineNumbers),hs(x)},!0),E("fixedGutter",!0,function(x,z){x.display.gutters.style.left=z?Va(x.display)+"px":"0",x.refresh()},!0),E("coverGutterNextToScrollbar",!1,function(x){return WA(x)},!0),E("scrollbarStyle","native",function(x){Ja(x),WA(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),E("lineNumbers",!1,function(x,z){x.display.gutterSpecs=ds(x.options.gutters,z),hs(x)},!0),E("firstLineNumber",1,hs,!0),E("lineNumberFormatter",function(x){return x},hs,!0),E("showCursorWhenSelecting",!1,za,!0),E("resetSelectionOnContextMenu",!0),E("lineWiseCopyCut",!0),E("pasteLinesPerSelection",!0),E("selectionsMayTouch",!1),E("readOnly",!1,function(x,z){z=="nocursor"&&(lo(x),x.display.input.blur()),x.display.input.readOnlyChanged(z)}),E("screenReaderLabel",null,function(x,z){z=z===""?null:z,x.display.input.screenReaderLabelChanged(z)}),E("disableInput",!1,function(x,z){z||x.display.input.reset()},!0),E("dragDrop",!0,Xu),E("allowDropFileTypes",null),E("cursorBlinkRate",530),E("cursorScrollMargin",0),E("cursorHeight",1,za,!0),E("singleCursorHeightPerLine",!0,za,!0),E("workTime",100),E("workDelay",100),E("flattenSpans",!0,ps,!0),E("addModeClass",!1,ps,!0),E("pollInterval",100),E("undoDepth",200,function(x,z){return x.doc.history.undoDepth=z}),E("historyEventDelay",1250),E("viewportMargin",10,function(x){return x.refresh()},!0),E("maxHighlightLength",1e4,ps,!0),E("moveInputWithCursor",!0,function(x,z){z||x.display.input.resetPosition()}),E("tabindex",null,function(x,z){return x.display.input.getField().tabIndex=z||""}),E("autofocus",null),E("direction","ltr",function(x,z){return x.doc.setDirection(z)},!0),E("phrases",null)}function Xu(a,y,E){var x=E&&E!=Zo;if(!y!=!x){var z=a.display.dragFunctions,ce=y?tt:jt;ce(a.display.scroller,"dragstart",z.start),ce(a.display.scroller,"dragenter",z.enter),ce(a.display.scroller,"dragover",z.over),ce(a.display.scroller,"dragleave",z.leave),ce(a.display.scroller,"drop",z.drop)}}function Lu(a){a.options.lineWrapping?(ft(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(ke(a.display.wrapper,"CodeMirror-wrap"),hr(a)),Do(a),$A(a),ia(a),setTimeout(function(){return WA(a)},100)}function PA(a,y){var E=this;if(!(this instanceof PA))return new PA(a,y);this.options=y=y?$t(y):{},$t(Qu,y,!1);var x=y.value;typeof x=="string"?x=new ba(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var z=new PA.inputStyles[y.inputStyle](this),ce=this.display=new ou(a,x,z,y);ce.wrapper.CodeMirror=this,Vl(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ja(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 xe,keySeq:null,specialChars:null},y.autofocus&&!He&&ce.input.focus(),Ee&&de<11&&setTimeout(function(){return E.display.input.reset(!0)},20),Tu(this),En(),Na(this),this.curOp.forceUpdate=!0,aa(this,x),y.autofocus&&!He||this.hasFocus()?setTimeout(function(){E.hasFocus()&&!E.state.focused&&qo(E)},20):lo(this);for(var pe in jl)jl.hasOwnProperty(pe)&&jl[pe](this,y[pe],Zo);ns(this),y.finishInit&&y.finishInit(this);for(var Ce=0;Ce<Yl.length;++Ce)Yl[Ce](this);qa(this),ze&&y.lineWrapping&&getComputedStyle(ce.lineDiv).textRendering=="optimizelegibility"&&(ce.lineDiv.style.textRendering="auto")}PA.defaults=Qu,PA.optionHandlers=jl;function Tu(a){var y=a.display;tt(y.scroller,"mousedown",Aa(a,Gl)),Ee&&de<11?tt(y.scroller,"dblclick",Aa(a,function(Se){if(!wt(a,Se)){var Ke=Za(a,Se);if(!(!Ke||du(a,Se)||CA(a.display,Se))){Mn(Se);var Ft=a.findWordAt(Ke);ms(a.doc,Ft.anchor,Ft.head)}}})):tt(y.scroller,"dblclick",function(Se){return wt(a,Se)||Mn(Se)}),tt(y.scroller,"contextmenu",function(Se){return hu(a,Se)}),tt(y.input.getField(),"contextmenu",function(Se){y.scroller.contains(Se.target)||hu(a,Se)});var E,x={end:0};function z(){y.activeTouch&&(E=setTimeout(function(){return y.activeTouch=null},1e3),x=y.activeTouch,x.end=+new Date)}function ce(Se){if(Se.touches.length!=1)return!1;var Ke=Se.touches[0];return Ke.radiusX<=1&&Ke.radiusY<=1}function pe(Se,Ke){if(Ke.left==null)return!0;var Ft=Ke.left-Se.left,Qt=Ke.top-Se.top;return Ft*Ft+Qt*Qt>20*20}tt(y.scroller,"touchstart",function(Se){if(!wt(a,Se)&&!ce(Se)&&!du(a,Se)){y.input.ensurePolled(),clearTimeout(E);var Ke=+new Date;y.activeTouch={start:Ke,moved:!1,prev:Ke-x.end<=300?x:null},Se.touches.length==1&&(y.activeTouch.left=Se.touches[0].pageX,y.activeTouch.top=Se.touches[0].pageY)}}),tt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),tt(y.scroller,"touchend",function(Se){var Ke=y.activeTouch;if(Ke&&!CA(y,Se)&&Ke.left!=null&&!Ke.moved&&new Date-Ke.start<300){var Ft=a.coordsChar(y.activeTouch,"page"),Qt;!Ke.prev||pe(Ke,Ke.prev)?Qt=new mA(Ft,Ft):!Ke.prev.prev||pe(Ke,Ke.prev.prev)?Qt=a.findWordAt(Ft):Qt=new mA(Ot(Ft.line,0),It(a.doc,Ot(Ft.line+1,0))),a.setSelection(Qt.anchor,Qt.head),a.focus(),Mn(Se)}z()}),tt(y.scroller,"touchcancel",z),tt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(ro(a,y.scroller.scrollTop),io(a,y.scroller.scrollLeft,!0),qt(a,"scroll",a))}),tt(y.scroller,"mousewheel",function(Se){return Tl(a,Se)}),tt(y.scroller,"DOMMouseScroll",function(Se){return Tl(a,Se)}),tt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(Se){wt(a,Se)||cr(Se)},over:function(Se){wt(a,Se)||(le(a,Se),cr(Se))},start:function(Se){return ye(a,Se)},drop:Aa(a,te),leave:function(Se){wt(a,Se)||Le(a)}};var Ce=y.input.getField();tt(Ce,"keyup",function(Se){return Eu.call(a,Se)}),tt(Ce,"keydown",Aa(a,Wl)),tt(Ce,"keypress",Aa(a,bu)),tt(Ce,"focus",function(Se){return qo(a,Se)}),tt(Ce,"blur",function(Se){return lo(a,Se)})}var Yl=[];PA.defineInitHook=function(a){return Yl.push(a)};function Es(a,y,E,x){var z=a.doc,ce;E==null&&(E="add"),E=="smart"&&(z.mode.indent?ce=Or(a,y).state:E="prev");var pe=a.options.tabSize,Ce=yn(z,y),Se=Re(Ce.text,null,pe);Ce.stateAfter&&(Ce.stateAfter=null);var Ke=Ce.text.match(/^\s*/)[0],Ft;if(!x&&!/\S/.test(Ce.text))Ft=0,E="not";else if(E=="smart"&&(Ft=z.mode.indent(ce,Ce.text.slice(Ke.length),Ce.text),Ft==hn||Ft>150)){if(!x)return;E="prev"}E=="prev"?y>z.first?Ft=Re(yn(z,y-1).text,null,pe):Ft=0:E=="add"?Ft=Se+a.options.indentUnit:E=="subtract"?Ft=Se-a.options.indentUnit:typeof E=="number"&&(Ft=Se+E),Ft=Math.max(0,Ft);var Qt="",Un=0;if(a.options.indentWithTabs)for(var bn=Math.floor(Ft/pe);bn;--bn)Un+=pe,Qt+=" ";if(Un<Ft&&(Qt+=wn(Ft-Un)),Qt!=Ke)return No(z,Qt,Ot(y,0),Ot(y,Ke.length),"+input"),Ce.stateAfter=null,!0;for(var or=0;or<z.sel.ranges.length;or++){var Cr=z.sel.ranges[or];if(Cr.head.line==y&&Cr.head.ch<Ke.length){var Mr=Ot(y,Ke.length);sl(z,or,new mA(Mr,Mr));break}}}var Ao=null;function Bl(a){Ao=a}function pu(a,y,E,x,z){var ce=a.doc;a.display.shift=!1,x||(x=ce.sel);var pe=+new Date-200,Ce=z=="paste"||a.state.pasteIncoming>pe,Se=Qr(y),Ke=null;if(Ce&&x.ranges.length>1)if(Ao&&Ao.text.join(`
`)==y){if(x.ranges.length%Ao.text.length==0){Ke=[];for(var Ft=0;Ft<Ao.text.length;Ft++)Ke.push(ce.splitLines(Ao.text[Ft]))}}else Se.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(Ke=un(Se,function(Gr){return[Gr]}));for(var Qt=a.curOp.updateInput,Un=x.ranges.length-1;Un>=0;Un--){var bn=x.ranges[Un],or=bn.from(),Cr=bn.to();bn.empty()&&(E&&E>0?or=Ot(or.line,or.ch-E):a.state.overwrite&&!Ce?Cr=Ot(Cr.line,Math.min(yn(ce,Cr.line).text.length,Cr.ch+Dt(Se).length)):Ce&&Ao&&Ao.lineWise&&Ao.text.join(`
`)==Se.join(`
`)&&(or=Cr=Ot(or.line,0)));var Mr={from:or,to:Cr,text:Ke?Ke[Un%Ke.length]:Se,origin:z||(Ce?"paste":a.state.cutIncoming>pe?"cut":"+input")};Ho(a.doc,Mr),qi(a,"inputRead",a,Mr)}y&&!Ce&&xl(a,y),wo(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Qt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Cl(a,y){var E=a.clipboardData&&a.clipboardData.getData("Text");if(E)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Ma(y,function(){return pu(y,E,0,null,"paste")}),!0}function xl(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var E=a.doc.sel,x=E.ranges.length-1;x>=0;x--){var z=E.ranges[x];if(!(z.head.ch>100||x&&E.ranges[x-1].head.line==z.head.line)){var ce=a.getModeAt(z.head),pe=!1;if(ce.electricChars){for(var Ce=0;Ce<ce.electricChars.length;Ce++)if(y.indexOf(ce.electricChars.charAt(Ce))>-1){pe=Es(a,z.head.line,"smart");break}}else ce.electricInput&&ce.electricInput.test(yn(a.doc,z.head.line).text.slice(0,z.head.ch))&&(pe=Es(a,z.head.line,"smart"));pe&&qi(a,"electricInput",a,z.head.line)}}}function gu(a){for(var y=[],E=[],x=0;x<a.doc.sel.ranges.length;x++){var z=a.doc.sel.ranges[x].head.line,ce={anchor:Ot(z,0),head:Ot(z+1,0)};E.push(ce),y.push(a.getRange(ce.anchor,ce.head))}return{text:y,ranges:E}}function vu(a,y,E,x){a.setAttribute("autocorrect",E?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!y)}function Mu(){var a=Ge("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Ge("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ze?a.style.width="1000px":a.setAttribute("wrap","off"),Xe&&(a.style.border="1px solid black"),vu(a),y}function Hu(a){var y=a.optionHandlers,E=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(x,z){var ce=this.options,pe=ce[x];ce[x]==z&&x!="mode"||(ce[x]=z,y.hasOwnProperty(x)&&Aa(this,y[x])(this,z,pe),qt(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,z){this.state.keyMaps[z?"push":"unshift"](Ir(x))},removeKeyMap:function(x){for(var z=this.state.keyMaps,ce=0;ce<z.length;++ce)if(z[ce]==x||z[ce].name==x)return z.splice(ce,1),!0},addOverlay:va(function(x,z){var ce=x.token?x:a.getMode(this.options,x);if(ce.startState)throw new Error("Overlays may not be stateful.");ln(this.state.overlays,{mode:ce,modeSpec:x,opaque:z&&z.opaque,priority:z&&z.priority||0},function(pe){return pe.priority}),this.state.modeGen++,$A(this)}),removeOverlay:va(function(x){for(var z=this.state.overlays,ce=0;ce<z.length;++ce){var pe=z[ce].modeSpec;if(pe==x||typeof x=="string"&&pe.name==x){z.splice(ce,1),this.state.modeGen++,$A(this);return}}}),indentLine:va(function(x,z,ce){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),Jn(this.doc,x)&&Es(this,x,z,ce)}),indentSelection:va(function(x){for(var z=this.doc.sel.ranges,ce=-1,pe=0;pe<z.length;pe++){var Ce=z[pe];if(Ce.empty())Ce.head.line>ce&&(Es(this,Ce.head.line,x,!0),ce=Ce.head.line,pe==this.doc.sel.primIndex&&wo(this));else{var Se=Ce.from(),Ke=Ce.to(),Ft=Math.max(ce,Se.line);ce=Math.min(this.lastLine(),Ke.line-(Ke.ch?0:1))+1;for(var Qt=Ft;Qt<ce;++Qt)Es(this,Qt,x);var Un=this.doc.sel.ranges;Se.ch==0&&z.length==Un.length&&Un[pe].from().ch>0&&sl(this.doc,pe,new mA(Se,Un[pe].to()),vt)}}}),getTokenAt:function(x,z){return hi(this,x,z)},getLineTokens:function(x,z){return hi(this,Ot(x),z,!0)},getTokenTypeAt:function(x){x=It(this.doc,x);var z=_r(this,yn(this.doc,x.line)),ce=0,pe=(z.length-1)/2,Ce=x.ch,Se;if(Ce==0)Se=z[2];else for(;;){var Ke=ce+pe>>1;if((Ke?z[Ke*2-1]:0)>=Ce)pe=Ke;else if(z[Ke*2+1]<Ce)ce=Ke+1;else{Se=z[Ke*2+2];break}}var Ft=Se?Se.indexOf("overlay "):-1;return Ft<0?Se:Ft==0?null:Se.slice(0,Ft-1)},getModeAt:function(x){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(x).state).mode:z},getHelper:function(x,z){return this.getHelpers(x,z)[0]},getHelpers:function(x,z){var ce=[];if(!E.hasOwnProperty(z))return ce;var pe=E[z],Ce=this.getModeAt(x);if(typeof Ce[z]=="string")pe[Ce[z]]&&ce.push(pe[Ce[z]]);else if(Ce[z])for(var Se=0;Se<Ce[z].length;Se++){var Ke=pe[Ce[z][Se]];Ke&&ce.push(Ke)}else Ce.helperType&&pe[Ce.helperType]?ce.push(pe[Ce.helperType]):pe[Ce.name]&&ce.push(pe[Ce.name]);for(var Ft=0;Ft<pe._global.length;Ft++){var Qt=pe._global[Ft];Qt.pred(Ce,this)&&Lt(ce,Qt.val)==-1&&ce.push(Qt.val)}return ce},getStateAfter:function(x,z){var ce=this.doc;return x=wr(ce,x==null?ce.first+ce.size-1:x),Or(this,x+1,z).state},cursorCoords:function(x,z){var ce,pe=this.doc.sel.primary();return x==null?ce=pe.head:typeof x=="object"?ce=It(this.doc,x):ce=x?pe.from():pe.to(),fA(this,ce,z||"page")},charCoords:function(x,z){return JA(this,It(this.doc,x),z||"page")},coordsChar:function(x,z){return x=Da(this,x,z||"page"),pA(this,x.left,x.top)},lineAtHeight:function(x,z){return x=Da(this,{top:x,left:0},z||"page").top,St(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,z,ce){var pe=!1,Ce;if(typeof x=="number"){var Se=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>Se&&(x=Se,pe=!0),Ce=yn(this.doc,x)}else Ce=x;return Ua(this,Ce,{top:0,left:0},z||"page",ce||pe).top+(pe?this.doc.height-tr(Ce):0)},defaultTextHeight:function(){return qA(this.display)},defaultCharWidth:function(){return ga(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,z,ce,pe,Ce){var Se=this.display;x=fA(this,It(this.doc,x));var Ke=x.bottom,Ft=x.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),Se.sizer.appendChild(z),pe=="over")Ke=x.top;else if(pe=="above"||pe=="near"){var Qt=Math.max(Se.wrapper.clientHeight,this.doc.height),Un=Math.max(Se.sizer.clientWidth,Se.lineSpace.clientWidth);(pe=="above"||x.bottom+z.offsetHeight>Qt)&&x.top>z.offsetHeight?Ke=x.top-z.offsetHeight:x.bottom+z.offsetHeight<=Qt&&(Ke=x.bottom),Ft+z.offsetWidth>Un&&(Ft=Un-z.offsetWidth)}z.style.top=Ke+"px",z.style.left=z.style.right="",Ce=="right"?(Ft=Se.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(Ce=="left"?Ft=0:Ce=="middle"&&(Ft=(Se.sizer.clientWidth-z.offsetWidth)/2),z.style.left=Ft+"px"),ce&&cs(this,{left:Ft,top:Ke,right:Ft+z.offsetWidth,bottom:Ke+z.offsetHeight})},triggerOnKeyDown:va(Wl),triggerOnKeyPress:va(bu),triggerOnKeyUp:Eu,triggerOnMouseDown:va(Gl),execCommand:function(x){if(Zi.hasOwnProperty(x))return Zi[x].call(null,this)},triggerElectric:va(function(x){xl(this,x)}),findPosH:function(x,z,ce,pe){var Ce=1;z<0&&(Ce=-1,z=-z);for(var Se=It(this.doc,x),Ke=0;Ke<z&&(Se=Xl(this.doc,Se,Ce,ce,pe),!Se.hitSide);++Ke);return Se},moveH:va(function(x,z){var ce=this;this.extendSelectionsBy(function(pe){return ce.display.shift||ce.doc.extend||pe.empty()?Xl(ce.doc,pe.head,x,z,ce.options.rtlMoveVisually):x<0?pe.from():pe.to()},Yt)}),deleteH:va(function(x,z){var ce=this.doc.sel,pe=this.doc;ce.somethingSelected()?pe.replaceSelection("",null,"+delete"):Gi(this,function(Ce){var Se=Xl(pe,Ce.head,x,z,!1);return x<0?{from:Se,to:Ce.head}:{from:Ce.head,to:Se}})}),findPosV:function(x,z,ce,pe){var Ce=1,Se=pe;z<0&&(Ce=-1,z=-z);for(var Ke=It(this.doc,x),Ft=0;Ft<z;++Ft){var Qt=fA(this,Ke,"div");if(Se==null?Se=Qt.left:Qt.left=Se,Ke=Nu(this,Qt,Ce,ce),Ke.hitSide)break}return Ke},moveV:va(function(x,z){var ce=this,pe=this.doc,Ce=[],Se=!this.display.shift&&!pe.extend&&pe.sel.somethingSelected();if(pe.extendSelectionsBy(function(Ft){if(Se)return x<0?Ft.from():Ft.to();var Qt=fA(ce,Ft.head,"div");Ft.goalColumn!=null&&(Qt.left=Ft.goalColumn),Ce.push(Qt.left);var Un=Nu(ce,Qt,x,z);return z=="page"&&Ft==pe.sel.primary()&&es(ce,JA(ce,Un,"div").top-Qt.top),Un},Yt),Ce.length)for(var Ke=0;Ke<pe.sel.ranges.length;Ke++)pe.sel.ranges[Ke].goalColumn=Ce[Ke]}),findWordAt:function(x){var z=this.doc,ce=yn(z,x.line).text,pe=x.ch,Ce=x.ch;if(ce){var Se=this.getHelper(x,"wordChars");(x.sticky=="before"||Ce==ce.length)&&pe?--pe:++Ce;for(var Ke=ce.charAt(pe),Ft=ae(Ke,Se)?function(Qt){return ae(Qt,Se)}:/\s/.test(Ke)?function(Qt){return/\s/.test(Qt)}:function(Qt){return!/\s/.test(Qt)&&!ae(Qt)};pe>0&&Ft(ce.charAt(pe-1));)--pe;for(;Ce<ce.length&&Ft(ce.charAt(Ce));)++Ce}return new mA(Ot(x.line,pe),Ot(x.line,Ce))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ft(this.display.cursorDiv,"CodeMirror-overwrite"):ke(this.display.cursorDiv,"CodeMirror-overwrite"),qt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==et()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:va(function(x,z){no(this,x,z)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-wi(this)-this.display.barHeight,width:x.scrollWidth-wi(this)-this.display.barWidth,clientHeight:ji(this),clientWidth:UA(this)}},scrollIntoView:va(function(x,z){x==null?(x={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof x=="number"?x={from:Ot(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=z||0,x.from.line!=null?fs(this,x):Xa(this,x.from,x.to,x.margin)}),setSize:va(function(x,z){var ce=this,pe=function(Se){return typeof Se=="number"||/^\d+$/.test(String(Se))?Se+"px":Se};x!=null&&(this.display.wrapper.style.width=pe(x)),z!=null&&(this.display.wrapper.style.height=pe(z)),this.options.lineWrapping&&HA(this);var Ce=this.display.viewFrom;this.doc.iter(Ce,this.display.viewTo,function(Se){if(Se.widgets){for(var Ke=0;Ke<Se.widgets.length;Ke++)if(Se.widgets[Ke].noHScroll){ea(ce,Ce,"widget");break}}++Ce}),this.curOp.forceUpdate=!0,qt(this,"refresh",this)}),operation:function(x){return Ma(this,x)},startOperation:function(){return Na(this)},endOperation:function(){return qa(this)},refresh:va(function(){var x=this.display.cachedTextHeight;$A(this),this.curOp.forceUpdate=!0,ia(this),no(this,this.doc.scrollLeft,this.doc.scrollTop),$s(this.display),(x==null||Math.abs(x-qA(this.display))>.5||this.options.lineWrapping)&&Do(this),qt(this,"refresh",this)}),swapDoc:va(function(x){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),aa(this,x),ia(this),this.display.input.reset(),no(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,qi(this,"swapDoc",this,z),z}),phrase:function(x){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,x)?z[x]:x},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}},Cn(a),a.registerHelper=function(x,z,ce){E.hasOwnProperty(x)||(E[x]=a[x]={_global:[]}),E[x][z]=ce},a.registerGlobalHelper=function(x,z,ce,pe){a.registerHelper(x,z,pe),E[x]._global.push({pred:ce,val:pe})}}function Xl(a,y,E,x,z){var ce=y,pe=E,Ce=yn(a,y.line),Se=z&&a.direction=="rtl"?-E:E;function Ke(){var ri=y.line+Se;return ri<a.first||ri>=a.first+a.size?!1:(y=new Ot(ri,y.ch,y.sticky),Ce=yn(a,ri))}function Ft(ri){var Vr;if(x=="codepoint"){var pi=Ce.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(pi)?Vr=null:Vr=new Ot(y.line,Math.max(0,Math.min(Ce.text.length,y.ch+E*(pi>=55296&&pi<56320?2:1))),-E)}else z?Vr=oA(a.cm,Ce,y,E):Vr=ki(Ce,y,E);if(Vr==null)if(!ri&&Ke())y=FA(z,a.cm,Ce,y.line,Se);else return!1;else y=Vr;return!0}if(x=="char"||x=="codepoint")Ft();else if(x=="column")Ft(!0);else if(x=="word"||x=="group")for(var Qt=null,Un=x=="group",bn=a.cm&&a.cm.getHelper(y,"wordChars"),or=!0;!(E<0&&!Ft(!or));or=!1){var Cr=Ce.text.charAt(y.ch)||`
`,Mr=ae(Cr,bn)?"w":Un&&Cr==`
`?"n":!Un||/\s/.test(Cr)?null:"p";if(Un&&!or&&!Mr&&(Mr="s"),Qt&&Qt!=Mr){E<0&&(E=1,Ft(),y.sticky="after");break}if(Mr&&(Qt=Mr),E>0&&!Ft(!or))break}var Gr=ws(a,y,ce,pe,!0);return nr(ce,Gr)&&(Gr.hitSide=!0),Gr}function Nu(a,y,E,x){var z=a.doc,ce=y.left,pe;if(x=="page"){var Ce=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Se=Math.max(Ce-.5*qA(a.display),3);pe=(E>0?y.bottom:y.top)+E*Se}else x=="line"&&(pe=E>0?y.bottom+3:y.top-3);for(var Ke;Ke=pA(a,ce,pe),!!Ke.outside;){if(E<0?pe<=0:pe>=z.height){Ke.hitSide=!0;break}pe+=E*5}return Ke}var QA=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};QA.prototype.init=function(a){var y=this,E=this,x=E.cm,z=E.div=a.lineDiv;vu(z,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function ce(Ce){for(var Se=Ce.target;Se;Se=Se.parentNode){if(Se==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Se.className))break}return!1}tt(z,"paste",function(Ce){!ce(Ce)||wt(x,Ce)||Cl(Ce,x)||de<=11&&setTimeout(Aa(x,function(){return y.updateFromDOM()}),20)}),tt(z,"compositionstart",function(Ce){y.composing={data:Ce.data,done:!1}}),tt(z,"compositionupdate",function(Ce){y.composing||(y.composing={data:Ce.data,done:!1})}),tt(z,"compositionend",function(Ce){y.composing&&(Ce.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),tt(z,"touchstart",function(){return E.forceCompositionEnd()}),tt(z,"input",function(){y.composing||y.readFromDOMSoon()});function pe(Ce){if(!(!ce(Ce)||wt(x,Ce))){if(x.somethingSelected())Bl({lineWise:!1,text:x.getSelections()}),Ce.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var Se=gu(x);Bl({lineWise:!0,text:Se.text}),Ce.type=="cut"&&x.operation(function(){x.setSelections(Se.ranges,0,vt),x.replaceSelection("",null,"cut")})}else return;if(Ce.clipboardData){Ce.clipboardData.clearData();var Ke=Ao.text.join(`
`);if(Ce.clipboardData.setData("Text",Ke),Ce.clipboardData.getData("Text")==Ke){Ce.preventDefault();return}}var Ft=Mu(),Qt=Ft.firstChild;x.display.lineSpace.insertBefore(Ft,x.display.lineSpace.firstChild),Qt.value=Ao.text.join(`
`);var Un=document.activeElement;Kt(Qt),setTimeout(function(){x.display.lineSpace.removeChild(Ft),Un.focus(),Un==z&&E.showPrimarySelection()},50)}}tt(z,"copy",pe),tt(z,"cut",pe)},QA.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},QA.prototype.prepareSelection=function(){var a=us(this.cm,!1);return a.focus=document.activeElement==this.div,a},QA.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},QA.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},QA.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,E=y.doc.sel.primary(),x=E.from(),z=E.to();if(y.display.viewTo==y.display.viewFrom||x.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var ce=zo(y,a.anchorNode,a.anchorOffset),pe=zo(y,a.focusNode,a.focusOffset);if(!(ce&&!ce.bad&&pe&&!pe.bad&&kn(ur(ce,pe),x)==0&&kn(er(ce,pe),z)==0)){var Ce=y.display.view,Se=x.line>=y.display.viewFrom&&bs(y,x)||{node:Ce[0].measure.map[2],offset:0},Ke=z.line<y.display.viewTo&&bs(y,z);if(!Ke){var Ft=Ce[Ce.length-1].measure,Qt=Ft.maps?Ft.maps[Ft.maps.length-1]:Ft.map;Ke={node:Qt[Qt.length-1],offset:Qt[Qt.length-2]-Qt[Qt.length-3]}}if(!Se||!Ke){a.removeAllRanges();return}var Un=a.rangeCount&&a.getRangeAt(0),bn;try{bn=je(Se.node,Se.offset,Ke.offset,Ke.node)}catch(or){}bn&&(!re&&y.state.focused?(a.collapse(Se.node,Se.offset),bn.collapsed||(a.removeAllRanges(),a.addRange(bn))):(a.removeAllRanges(),a.addRange(bn)),Un&&a.anchorNode==null?a.addRange(Un):re&&this.startGracePeriod()),this.rememberSelection()}},QA.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},QA.prototype.showMultipleSelections=function(a){Pe(this.cm.display.cursorDiv,a.cursors),Pe(this.cm.display.selectionDiv,a.selection)},QA.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},QA.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return ht(this.div,y)},QA.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},QA.prototype.blur=function(){this.div.blur()},QA.prototype.getField=function(){return this.div},QA.prototype.supportsTouch=function(){return!0},QA.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Ma(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},QA.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},QA.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Je&&Ie&&this.cm.display.gutterSpecs.length&&Ru(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=zo(y,a.anchorNode,a.anchorOffset),x=zo(y,a.focusNode,a.focusOffset);E&&x&&Ma(y,function(){da(y.doc,xo(E,x),vt),(E.bad||x.bad)&&(y.curOp.selectionChanged=!0)})}}},QA.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,E=a.doc.sel.primary(),x=E.from(),z=E.to();if(x.ch==0&&x.line>a.firstLine()&&(x=Ot(x.line-1,yn(a.doc,x.line-1).length)),z.ch==yn(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=Ot(z.line+1,0)),x.line<y.viewFrom||z.line>y.viewTo-1)return!1;var ce,pe,Ce;x.line==y.viewFrom||(ce=ja(a,x.line))==0?(pe=_t(y.view[0].line),Ce=y.view[0].node):(pe=_t(y.view[ce].line),Ce=y.view[ce-1].node.nextSibling);var Se=ja(a,z.line),Ke,Ft;if(Se==y.view.length-1?(Ke=y.viewTo-1,Ft=y.lineDiv.lastChild):(Ke=_t(y.view[Se+1].line)-1,Ft=y.view[Se+1].node.previousSibling),!Ce)return!1;for(var Qt=a.doc.splitLines(Fs(a,Ce,Ft,pe,Ke)),Un=rt(a.doc,Ot(pe,0),Ot(Ke,yn(a.doc,Ke).text.length));Qt.length>1&&Un.length>1;)if(Dt(Qt)==Dt(Un))Qt.pop(),Un.pop(),Ke--;else if(Qt[0]==Un[0])Qt.shift(),Un.shift(),pe++;else break;for(var bn=0,or=0,Cr=Qt[0],Mr=Un[0],Gr=Math.min(Cr.length,Mr.length);bn<Gr&&Cr.charCodeAt(bn)==Mr.charCodeAt(bn);)++bn;for(var ri=Dt(Qt),Vr=Dt(Un),pi=Math.min(ri.length-(Qt.length==1?bn:0),Vr.length-(Un.length==1?bn:0));or<pi&&ri.charCodeAt(ri.length-or-1)==Vr.charCodeAt(Vr.length-or-1);)++or;if(Qt.length==1&&Un.length==1&&pe==x.line)for(;bn&&bn>x.ch&&ri.charCodeAt(ri.length-or-1)==Vr.charCodeAt(Vr.length-or-1);)bn--,or++;Qt[Qt.length-1]=ri.slice(0,ri.length-or).replace(/^\u200b+/,""),Qt[0]=Qt[0].slice(bn).replace(/\u200b+$/,"");var Ii=Ot(pe,bn),_i=Ot(Ke,Un.length?Dt(Un).length-or:0);if(Qt.length>1||Qt[0]||kn(Ii,_i))return No(a.doc,Qt,Ii,_i,"+input"),!0},QA.prototype.ensurePolled=function(){this.forceCompositionEnd()},QA.prototype.reset=function(){this.forceCompositionEnd()},QA.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},QA.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))},QA.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ma(this.cm,function(){return $A(a.cm)})},QA.prototype.setUneditable=function(a){a.contentEditable="false"},QA.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Aa(this.cm,pu)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},QA.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},QA.prototype.onContextMenu=function(){},QA.prototype.resetPosition=function(){},QA.prototype.needsContentAttribute=!0;function bs(a,y){var E=KA(a,y.line);if(!E||E.hidden)return null;var x=yn(a.doc,y.line),z=Li(E,x,y.line),ce=Dn(x,a.doc.direction),pe="left";if(ce){var Ce=Et(ce,y.ch);pe=Ce%2?"right":"left"}var Se=Ba(z.map,y.ch,pe);return Se.offset=Se.collapse=="right"?Se.end:Se.start,Se}function Ru(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function GA(a,y){return y&&(a.bad=!0),a}function Fs(a,y,E,x,z){var ce="",pe=!1,Ce=a.doc.lineSeparator(),Se=!1;function Ke(bn){return function(or){return or.id==bn}}function Ft(){pe&&(ce+=Ce,Se&&(ce+=Ce),pe=Se=!1)}function Qt(bn){bn&&(Ft(),ce+=bn)}function Un(bn){if(bn.nodeType==1){var or=bn.getAttribute("cm-text");if(or){Qt(or);return}var Cr=bn.getAttribute("cm-marker"),Mr;if(Cr){var Gr=a.findMarks(Ot(x,0),Ot(z+1,0),Ke(+Cr));Gr.length&&(Mr=Gr[0].find(0))&&Qt(rt(a.doc,Mr.from,Mr.to).join(Ce));return}if(bn.getAttribute("contenteditable")=="false")return;var ri=/^(pre|div|p|li|table|br)$/i.test(bn.nodeName);if(!/^br$/i.test(bn.nodeName)&&bn.textContent.length==0)return;ri&&Ft();for(var Vr=0;Vr<bn.childNodes.length;Vr++)Un(bn.childNodes[Vr]);/^(pre|p)$/i.test(bn.nodeName)&&(Se=!0),ri&&(pe=!0)}else bn.nodeType==3&&Qt(bn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Un(y),y!=E;)y=y.nextSibling,Se=!1;return ce}function zo(a,y,E){var x;if(y==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[E],!x)return GA(a.clipPos(Ot(a.display.viewTo-1)),!0);y=null,E=0}else for(x=y;;x=x.parentNode){if(!x||x==a.display.lineDiv)return null;if(x.parentNode&&x.parentNode==a.display.lineDiv)break}for(var z=0;z<a.display.view.length;z++){var ce=a.display.view[z];if(ce.node==x)return os(ce,y,E)}}function os(a,y,E){var x=a.text.firstChild,z=!1;if(!y||!ht(x,y))return GA(Ot(_t(a.line),0),!0);if(y==x&&(z=!0,y=x.childNodes[E],E=0,!y)){var ce=a.rest?Dt(a.rest):a.line;return GA(Ot(_t(ce),ce.text.length),z)}var pe=y.nodeType==3?y:null,Ce=y;for(!pe&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(pe=y.firstChild,E&&(E=pe.nodeValue.length));Ce.parentNode!=x;)Ce=Ce.parentNode;var Se=a.measure,Ke=Se.maps;function Ft(Mr,Gr,ri){for(var Vr=-1;Vr<(Ke?Ke.length:0);Vr++)for(var pi=Vr<0?Se.map:Ke[Vr],Ii=0;Ii<pi.length;Ii+=3){var _i=pi[Ii+2];if(_i==Mr||_i==Gr){var $i=_t(Vr<0?a.line:a.rest[Vr]),RA=pi[Ii]+ri;return(ri<0||_i!=Mr)&&(RA=pi[Ii+(ri?1:0)]),Ot($i,RA)}}}var Qt=Ft(pe,Ce,E);if(Qt)return GA(Qt,z);for(var Un=Ce.nextSibling,bn=pe?pe.nodeValue.length-E:0;Un;Un=Un.nextSibling){if(Qt=Ft(Un,Un.firstChild,0),Qt)return GA(Ot(Qt.line,Qt.ch-bn),z);bn+=Un.textContent.length}for(var or=Ce.previousSibling,Cr=E;or;or=or.previousSibling){if(Qt=Ft(or,or.firstChild,-1),Qt)return GA(Ot(Qt.line,Qt.ch+Cr),z);Cr+=or.textContent.length}}var MA=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new xe,this.hasSelection=!1,this.composing=null};MA.prototype.init=function(a){var y=this,E=this,x=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Xe&&(z.style.width="0px"),tt(z,"input",function(){Ee&&de>=9&&y.hasSelection&&(y.hasSelection=null),E.poll()}),tt(z,"paste",function(pe){wt(x,pe)||Cl(pe,x)||(x.state.pasteIncoming=+new Date,E.fastPoll())});function ce(pe){if(!wt(x,pe)){if(x.somethingSelected())Bl({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var Ce=gu(x);Bl({lineWise:!0,text:Ce.text}),pe.type=="cut"?x.setSelections(Ce.ranges,null,vt):(E.prevInput="",z.value=Ce.text.join(`
`),Kt(z))}else return;pe.type=="cut"&&(x.state.cutIncoming=+new Date)}}tt(z,"cut",ce),tt(z,"copy",ce),tt(a.scroller,"paste",function(pe){if(!(CA(a,pe)||wt(x,pe))){if(!z.dispatchEvent){x.state.pasteIncoming=+new Date,E.focus();return}var Ce=new Event("paste");Ce.clipboardData=pe.clipboardData,z.dispatchEvent(Ce)}}),tt(a.lineSpace,"selectstart",function(pe){CA(a,pe)||Mn(pe)}),tt(z,"compositionstart",function(){var pe=x.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:pe,range:x.markText(pe,x.getCursor("to"),{className:"CodeMirror-composing"})}}),tt(z,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},MA.prototype.createField=function(a){this.wrapper=Mu(),this.textarea=this.wrapper.firstChild},MA.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},MA.prototype.prepareSelection=function(){var a=this.cm,y=a.display,E=a.doc,x=us(a);if(a.options.moveInputWithCursor){var z=fA(a,E.sel.primary().head,"div"),ce=y.wrapper.getBoundingClientRect(),pe=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+pe.top-ce.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+pe.left-ce.left))}return x},MA.prototype.showSelection=function(a){var y=this.cm,E=y.display;Pe(E.cursorDiv,a.cursors),Pe(E.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},MA.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var E=y.getSelection();this.textarea.value=E,y.state.focused&&Kt(this.textarea),Ee&&de>=9&&(this.hasSelection=E)}else a||(this.prevInput=this.textarea.value="",Ee&&de>=9&&(this.hasSelection=null))}},MA.prototype.getField=function(){return this.textarea},MA.prototype.supportsTouch=function(){return!1},MA.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!He||et()!=this.textarea))try{this.textarea.focus()}catch(a){}},MA.prototype.blur=function(){this.textarea.blur()},MA.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},MA.prototype.receivedFocus=function(){this.slowPoll()},MA.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},MA.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function E(){var x=y.poll();!x&&!a?(a=!0,y.polling.set(60,E)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,E)},MA.prototype.poll=function(){var a=this,y=this.cm,E=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||Vn(E)&&!x&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=E.value;if(z==x&&!y.somethingSelected())return!1;if(Ee&&de>=9&&this.hasSelection===z||Te&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ce=z.charCodeAt(0);if(ce==8203&&!x&&(x="\u200B"),ce==8666)return this.reset(),this.cm.execCommand("undo")}for(var pe=0,Ce=Math.min(x.length,z.length);pe<Ce&&x.charCodeAt(pe)==z.charCodeAt(pe);)++pe;return Ma(y,function(){pu(y,z.slice(pe),x.length-pe,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
`)>-1?E.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},MA.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},MA.prototype.onKeyPress=function(){Ee&&de>=9&&(this.hasSelection=null),this.fastPoll()},MA.prototype.onContextMenu=function(a){var y=this,E=y.cm,x=E.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ce=Za(E,a),pe=x.scroller.scrollTop;if(!ce||ve)return;var Ce=E.options.resetSelectionOnContextMenu;Ce&&E.doc.sel.contains(ce)==-1&&Aa(E,da)(E.doc,xo(ce),vt);var Se=z.style.cssText,Ke=y.wrapper.style.cssText,Ft=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Ft.top-5)+"px; left: "+(a.clientX-Ft.left-5)+`px;
z-index: 1000; background: `+(Ee?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Qt;ze&&(Qt=window.scrollY),x.input.focus(),ze&&window.scrollTo(null,Qt),x.input.reset(),E.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=bn,x.selForContextMenu=E.doc.sel,clearTimeout(x.detectingSelectAll);function Un(){if(z.selectionStart!=null){var Cr=E.somethingSelected(),Mr="\u200B"+(Cr?z.value:"");z.value="\u21DA",z.value=Mr,y.prevInput=Cr?"":"\u200B",z.selectionStart=1,z.selectionEnd=Mr.length,x.selForContextMenu=E.doc.sel}}function bn(){if(y.contextMenuPending==bn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=Ke,z.style.cssText=Se,Ee&&de<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=pe),z.selectionStart!=null)){(!Ee||Ee&&de<9)&&Un();var Cr=0,Mr=function(){x.selForContextMenu==E.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?Aa(E,fl)(E):Cr++<10?x.detectingSelectAll=setTimeout(Mr,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Mr,200)}}if(Ee&&de>=9&&Un(),Be){cr(a);var or=function(){jt(window,"mouseup",or),setTimeout(bn,20)};tt(window,"mouseup",or)}else setTimeout(bn,50)},MA.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},MA.prototype.setUneditable=function(){},MA.prototype.needsContentAttribute=!1;function El(a,y){if(y=y?$t(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 E=et();y.autofocus=E==a||a.getAttribute("autofocus")!=null&&E==document.body}function x(){a.value=Ce.getValue()}var z;if(a.form&&(tt(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var ce=a.form;z=ce.submit;try{var pe=ce.submit=function(){x(),ce.submit=z,ce.submit(),ce.submit=pe}}catch(Se){}}y.finishInit=function(Se){Se.save=x,Se.getTextArea=function(){return a},Se.toTextArea=function(){Se.toTextArea=isNaN,x(),a.parentNode.removeChild(Se.getWrapperElement()),a.style.display="",a.form&&(jt(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var Ce=PA(function(Se){return a.parentNode.insertBefore(Se,a.nextSibling)},y);return Ce}function Wo(a){a.off=jt,a.on=tt,a.wheelEventPixels=Ll,a.Doc=ba,a.splitLines=Qr,a.countColumn=Re,a.findColumn=jn,a.isWordChar=b,a.Pass=hn,a.signal=qt,a.Line=Tr,a.changeEnd=Eo,a.scrollbarModel=fo,a.Pos=Ot,a.cmpPos=kn,a.modes=Wn,a.mimeModes=cn,a.resolveMode=ir,a.getMode=lr,a.modeExtensions=xr,a.extendMode=Wr,a.copyState=Dr,a.startState=Rr,a.innerMode=Fr,a.commands=Zi,a.keyMap=vr,a.keyName=Ri,a.isModifierKey=Ki,a.lookupKey=Pi,a.normalizeKeyMap=bA,a.StringStream=Xn,a.SharedTextMarker=As,a.TextMarker=go,a.LineWidget=Oo,a.e_preventDefault=Mn,a.e_stopPropagation=sr,a.e_stop=cr,a.addClass=ft,a.contains=ht,a.rmClass=ke,a.keyNames=Pt}Yu(PA),Hu(PA);var Ou="iter insert remove copy getEditor constructor".split(" ");for(var bl in ba.prototype)ba.prototype.hasOwnProperty(bl)&&Lt(Ou,bl)<0&&(PA.prototype[bl]=function(a){return function(){return a.apply(this.doc,arguments)}}(ba.prototype[bl]));return Cn(ba),PA.inputStyles={textarea:MA,contenteditable:QA},PA.defineMode=function(a){!PA.defaults.mode&&a!="null"&&(PA.defaults.mode=a),Sn.apply(this,arguments)},PA.defineMIME=fr,PA.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),PA.defineMIME("text/plain","null"),PA.defineExtension=function(a,y){PA.prototype[a]=y},PA.defineDocExtension=function(a,y){ba.prototype[a]=y},PA.fromTextArea=El,Wo(PA),PA.version="5.58.2",PA})},25419:function(xn,dt,fe){(function(re){re(fe(89780),fe(15525),fe(98101))})(function(re){"use strict";re.defineMode("markdown",function(Me,De){var Ze=re.getMode(Me,"text/html"),Ee=Ze.name=="null";function de(Re){if(re.findModeByName){var xe=re.findModeByName(Re);xe&&(Re=xe.mime||xe.mimes[0])}var Lt=re.getMode(Me,Re);return Lt.name=="null"?null:Lt}De.highlightFormatting===void 0&&(De.highlightFormatting=!1),De.maxBlockquoteDepth===void 0&&(De.maxBlockquoteDepth=0),De.taskLists===void 0&&(De.taskLists=!1),De.strikethrough===void 0&&(De.strikethrough=!1),De.emoji===void 0&&(De.emoji=!1),De.fencedCodeBlockHighlighting===void 0&&(De.fencedCodeBlockHighlighting=!0),De.fencedCodeBlockDefaultMode===void 0&&(De.fencedCodeBlockDefaultMode="text/plain"),De.xml===void 0&&(De.xml=!0),De.tokenTypeOverrides===void 0&&(De.tokenTypeOverrides={});var ze={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 Fe in ze)ze.hasOwnProperty(Fe)&&De.tokenTypeOverrides[Fe]&&(ze[Fe]=De.tokenTypeOverrides[Fe]);var Ie=/^([*\-_])(?:\s*\1){2,}\s*$/,ve=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ut=/^\[(x| )\](?=\s)/i,we=De.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ot=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Xe=/^[^#!\[\]*_\\<>` "'(~:]+/,Je=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,He=/^\s*\[[^\]]+?\]:.*$/,Te=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,at=" ";function Oe(Re,xe,Lt){return xe.f=xe.inline=Lt,Lt(Re,xe)}function We(Re,xe,Lt){return xe.f=xe.block=Lt,Lt(Re,xe)}function be(Re){return!Re||!/\S/.test(Re.string)}function Be(Re){if(Re.linkTitle=!1,Re.linkHref=!1,Re.linkText=!1,Re.em=!1,Re.strong=!1,Re.strikethrough=!1,Re.quote=0,Re.indentedCode=!1,Re.f==ke){var xe=Ee;if(!xe){var Lt=re.innerMode(Ze,Re.htmlState);xe=Lt.mode.name=="xml"&&Lt.state.tagStart===null&&!Lt.state.context&&Lt.state.tokenize.isInText}xe&&(Re.f=lt,Re.block=Ue,Re.htmlState=null)}return Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,Re.prevLine=Re.thisLine,Re.thisLine={stream:null},null}function Ue(Re,xe){var Lt=Re.column()===xe.indentation,Fn=be(xe.prevLine.stream),hn=xe.indentedCode,vt=xe.prevLine.hr,Jt=xe.list!==!1,Yt=(xe.listStack[xe.listStack.length-1]||0)+3;xe.indentedCode=!1;var jn=xe.indentation;if(xe.indentationDiff===null&&(xe.indentationDiff=xe.indentation,Jt)){for(xe.list=null;jn<xe.listStack[xe.listStack.length-1];)xe.listStack.pop(),xe.listStack.length?xe.indentation=xe.listStack[xe.listStack.length-1]:xe.list=!1;xe.list!==!1&&(xe.indentationDiff=jn-xe.listStack[xe.listStack.length-1])}var yt=!Fn&&!vt&&!xe.prevLine.header&&(!Jt||!hn)&&!xe.prevLine.fencedCodeEnd,wn=(xe.list===!1||vt||Fn)&&xe.indentation<=Yt&&Re.match(Ie),Dt=null;if(xe.indentationDiff>=4&&(hn||xe.prevLine.fencedCodeEnd||xe.prevLine.header||Fn))return Re.skipToEnd(),xe.indentedCode=!0,ze.code;if(Re.eatSpace())return null;if(Lt&&xe.indentation<=Yt&&(Dt=Re.match(we))&&Dt[1].length<=6)return xe.quote=0,xe.header=Dt[1].length,xe.thisLine.header=!0,De.highlightFormatting&&(xe.formatting="header"),xe.f=xe.inline,Pe(xe);if(xe.indentation<=Yt&&Re.eat(">"))return xe.quote=Lt?1:xe.quote+1,De.highlightFormatting&&(xe.formatting="quote"),Re.eatSpace(),Pe(xe);if(!wn&&!xe.setext&&Lt&&xe.indentation<=Yt&&(Dt=Re.match(ve))){var un=Dt[1]?"ol":"ul";return xe.indentation=jn+Re.current().length,xe.list=!0,xe.quote=0,xe.listStack.push(xe.indentation),xe.em=!1,xe.strong=!1,xe.code=!1,xe.strikethrough=!1,De.taskLists&&Re.match(ut,!1)&&(xe.taskList=!0),xe.f=xe.inline,De.highlightFormatting&&(xe.formatting=["list","list-"+un]),Pe(xe)}else{if(Lt&&xe.indentation<=Yt&&(Dt=Re.match(Je,!0)))return xe.quote=0,xe.fencedEndRE=new RegExp(Dt[1]+"+ *$"),xe.localMode=De.fencedCodeBlockHighlighting&&de(Dt[2]||De.fencedCodeBlockDefaultMode),xe.localMode&&(xe.localState=re.startState(xe.localMode)),xe.f=xe.block=qe,De.highlightFormatting&&(xe.formatting="code-block"),xe.code=-1,Pe(xe);if(xe.setext||(!yt||!Jt)&&!xe.quote&&xe.list===!1&&!xe.code&&!wn&&!He.test(Re.string)&&(Dt=Re.lookAhead(1))&&(Dt=Dt.match(ot)))return xe.setext?(xe.header=xe.setext,xe.setext=0,Re.skipToEnd(),De.highlightFormatting&&(xe.formatting="header")):(xe.header=Dt[0].charAt(0)=="="?1:2,xe.setext=xe.header),xe.thisLine.header=!0,xe.f=xe.inline,Pe(xe);if(wn)return Re.skipToEnd(),xe.hr=!0,xe.thisLine.hr=!0,ze.hr;if(Re.peek()==="[")return Oe(Re,xe,Tt)}return Oe(Re,xe,xe.inline)}function ke(Re,xe){var Lt=Ze.token(Re,xe.htmlState);if(!Ee){var Fn=re.innerMode(Ze,xe.htmlState);(Fn.mode.name=="xml"&&Fn.state.tagStart===null&&!Fn.state.context&&Fn.state.tokenize.isInText||xe.md_inside&&Re.current().indexOf(">")>-1)&&(xe.f=lt,xe.block=Ue,xe.htmlState=null)}return Lt}function qe(Re,xe){var Lt=xe.listStack[xe.listStack.length-1]||0,Fn=xe.indentation<Lt,hn=Lt+3;if(xe.fencedEndRE&&xe.indentation<=hn&&(Fn||Re.match(xe.fencedEndRE))){De.highlightFormatting&&(xe.formatting="code-block");var vt;return Fn||(vt=Pe(xe)),xe.localMode=xe.localState=null,xe.block=Ue,xe.f=lt,xe.fencedEndRE=null,xe.code=0,xe.thisLine.fencedCodeEnd=!0,Fn?We(Re,xe,xe.block):vt}else return xe.localMode?xe.localMode.token(Re,xe.localState):(Re.skipToEnd(),ze.code)}function Pe(Re){var xe=[];if(Re.formatting){xe.push(ze.formatting),typeof Re.formatting=="string"&&(Re.formatting=[Re.formatting]);for(var Lt=0;Lt<Re.formatting.length;Lt++)xe.push(ze.formatting+"-"+Re.formatting[Lt]),Re.formatting[Lt]==="header"&&xe.push(ze.formatting+"-"+Re.formatting[Lt]+"-"+Re.header),Re.formatting[Lt]==="quote"&&(!De.maxBlockquoteDepth||De.maxBlockquoteDepth>=Re.quote?xe.push(ze.formatting+"-"+Re.formatting[Lt]+"-"+Re.quote):xe.push("error"))}if(Re.taskOpen)return xe.push("meta"),xe.length?xe.join(" "):null;if(Re.taskClosed)return xe.push("property"),xe.length?xe.join(" "):null;if(Re.linkHref?xe.push(ze.linkHref,"url"):(Re.strong&&xe.push(ze.strong),Re.em&&xe.push(ze.em),Re.strikethrough&&xe.push(ze.strikethrough),Re.emoji&&xe.push(ze.emoji),Re.linkText&&xe.push(ze.linkText),Re.code&&xe.push(ze.code),Re.image&&xe.push(ze.image),Re.imageAltText&&xe.push(ze.imageAltText,"link"),Re.imageMarker&&xe.push(ze.imageMarker)),Re.header&&xe.push(ze.header,ze.header+"-"+Re.header),Re.quote&&(xe.push(ze.quote),!De.maxBlockquoteDepth||De.maxBlockquoteDepth>=Re.quote?xe.push(ze.quote+"-"+Re.quote):xe.push(ze.quote+"-"+De.maxBlockquoteDepth)),Re.list!==!1){var Fn=(Re.listStack.length-1)%3;Fn?Fn===1?xe.push(ze.list2):xe.push(ze.list3):xe.push(ze.list1)}return Re.trailingSpaceNewLine?xe.push("trailing-space-new-line"):Re.trailingSpace&&xe.push("trailing-space-"+(Re.trailingSpace%2?"a":"b")),xe.length?xe.join(" "):null}function Ge(Re,xe){if(Re.match(Xe,!0))return Pe(xe)}function lt(Re,xe){var Lt=xe.text(Re,xe);if(typeof Lt!="undefined")return Lt;if(xe.list)return xe.list=null,Pe(xe);if(xe.taskList){var Fn=Re.match(ut,!0)[1]===" ";return Fn?xe.taskOpen=!0:xe.taskClosed=!0,De.highlightFormatting&&(xe.formatting="task"),xe.taskList=!1,Pe(xe)}if(xe.taskOpen=!1,xe.taskClosed=!1,xe.header&&Re.match(/^#+$/,!0))return De.highlightFormatting&&(xe.formatting="header"),Pe(xe);var hn=Re.next();if(xe.linkTitle){xe.linkTitle=!1;var vt=hn;hn==="("&&(vt=")"),vt=(vt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Jt="^\\s*(?:[^"+vt+"\\\\]+|\\\\\\\\|\\\\.)"+vt;if(Re.match(new RegExp(Jt),!0))return ze.linkHref}if(hn==="`"){var Yt=xe.formatting;De.highlightFormatting&&(xe.formatting="code"),Re.eatWhile("`");var jn=Re.current().length;if(xe.code==0&&(!xe.quote||jn==1))return xe.code=jn,Pe(xe);if(jn==xe.code){var yt=Pe(xe);return xe.code=0,yt}else return xe.formatting=Yt,Pe(xe)}else if(xe.code)return Pe(xe);if(hn==="\\"&&(Re.next(),De.highlightFormatting)){var wn=Pe(xe),Dt=ze.formatting+"-escape";return wn?wn+" "+Dt:Dt}if(hn==="!"&&Re.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return xe.imageMarker=!0,xe.image=!0,De.highlightFormatting&&(xe.formatting="image"),Pe(xe);if(hn==="["&&xe.imageMarker&&Re.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return xe.imageMarker=!1,xe.imageAltText=!0,De.highlightFormatting&&(xe.formatting="image"),Pe(xe);if(hn==="]"&&xe.imageAltText){De.highlightFormatting&&(xe.formatting="image");var wn=Pe(xe);return xe.imageAltText=!1,xe.image=!1,xe.inline=xe.f=ht,wn}if(hn==="["&&!xe.image)return xe.linkText&&Re.match(/^.*?\]/)||(xe.linkText=!0,De.highlightFormatting&&(xe.formatting="link")),Pe(xe);if(hn==="]"&&xe.linkText){De.highlightFormatting&&(xe.formatting="link");var wn=Pe(xe);return xe.linkText=!1,xe.inline=xe.f=Re.match(/\(.*?\)| ?\[.*?\]/,!1)?ht:lt,wn}if(hn==="<"&&Re.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=je,De.highlightFormatting&&(xe.formatting="link");var wn=Pe(xe);return wn?wn+=" ":wn="",wn+ze.linkInline}if(hn==="<"&&Re.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=je,De.highlightFormatting&&(xe.formatting="link");var wn=Pe(xe);return wn?wn+=" ":wn="",wn+ze.linkEmail}if(De.xml&&hn==="<"&&Re.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var un=Re.string.indexOf(">",Re.pos);if(un!=-1){var ln=Re.string.substring(Re.start,un);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(ln)&&(xe.md_inside=!0)}return Re.backUp(1),xe.htmlState=re.startState(Ze),We(Re,xe,ke)}if(De.xml&&hn==="<"&&Re.match(/^\/\w*?>/))return xe.md_inside=!1,"tag";if(hn==="*"||hn==="_"){for(var ge=1,ue=Re.pos==1?" ":Re.string.charAt(Re.pos-2);ge<3&&Re.eat(hn);)ge++;var ee=Re.peek()||" ",b=!/\s/.test(ee)&&(!Te.test(ee)||/\s/.test(ue)||Te.test(ue)),ae=!/\s/.test(ue)&&(!Te.test(ue)||/\s/.test(ee)||Te.test(ee)),ie=null,he=null;if(ge%2&&(!xe.em&&b&&(hn==="*"||!ae||Te.test(ue))?ie=!0:xe.em==hn&&ae&&(hn==="*"||!b||Te.test(ee))&&(ie=!1)),ge>1&&(!xe.strong&&b&&(hn==="*"||!ae||Te.test(ue))?he=!0:xe.strong==hn&&ae&&(hn==="*"||!b||Te.test(ee))&&(he=!1)),he!=null||ie!=null){De.highlightFormatting&&(xe.formatting=ie==null?"strong":he==null?"em":"strong em"),ie===!0&&(xe.em=hn),he===!0&&(xe.strong=hn);var yt=Pe(xe);return ie===!1&&(xe.em=!1),he===!1&&(xe.strong=!1),yt}}else if(hn===" "&&(Re.eat("*")||Re.eat("_"))){if(Re.peek()===" ")return Pe(xe);Re.backUp(1)}if(De.strikethrough){if(hn==="~"&&Re.eatWhile(hn)){if(xe.strikethrough){De.highlightFormatting&&(xe.formatting="strikethrough");var yt=Pe(xe);return xe.strikethrough=!1,yt}else if(Re.match(/^[^\s]/,!1))return xe.strikethrough=!0,De.highlightFormatting&&(xe.formatting="strikethrough"),Pe(xe)}else if(hn===" "&&Re.match(/^~~/,!0)){if(Re.peek()===" ")return Pe(xe);Re.backUp(2)}}if(De.emoji&&hn===":"&&Re.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){xe.emoji=!0,De.highlightFormatting&&(xe.formatting="emoji");var Ye=Pe(xe);return xe.emoji=!1,Ye}return hn===" "&&(Re.match(/^ +$/,!1)?xe.trailingSpace++:xe.trailingSpace&&(xe.trailingSpaceNewLine=!0)),Pe(xe)}function je(Re,xe){var Lt=Re.next();if(Lt===">"){xe.f=xe.inline=lt,De.highlightFormatting&&(xe.formatting="link");var Fn=Pe(xe);return Fn?Fn+=" ":Fn="",Fn+ze.linkInline}return Re.match(/^[^>]+/,!0),ze.linkInline}function ht(Re,xe){if(Re.eatSpace())return null;var Lt=Re.next();return Lt==="("||Lt==="["?(xe.f=xe.inline=ft(Lt==="("?")":"]"),De.highlightFormatting&&(xe.formatting="link-string"),xe.linkHref=!0,Pe(xe)):"error"}var et={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ft(Re){return function(xe,Lt){var Fn=xe.next();if(Fn===Re){Lt.f=Lt.inline=lt,De.highlightFormatting&&(Lt.formatting="link-string");var hn=Pe(Lt);return Lt.linkHref=!1,hn}return xe.match(et[Re]),Lt.linkHref=!0,Pe(Lt)}}function Tt(Re,xe){return Re.match(/^([^\]\\]|\\.)*\]:/,!1)?(xe.f=Kt,Re.next(),De.highlightFormatting&&(xe.formatting="link"),xe.linkText=!0,Pe(xe)):Oe(Re,xe,lt)}function Kt(Re,xe){if(Re.match(/^\]:/,!0)){xe.f=xe.inline=fn,De.highlightFormatting&&(xe.formatting="link");var Lt=Pe(xe);return xe.linkText=!1,Lt}return Re.match(/^([^\]\\]|\\.)+/,!0),ze.linkText}function fn(Re,xe){return Re.eatSpace()?null:(Re.match(/^[^\s]+/,!0),Re.peek()===void 0?xe.linkTitle=!0:Re.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),xe.f=xe.inline=lt,ze.linkHref+" url")}var $t={startState:function(){return{f:Ue,prevLine:{stream:null},thisLine:{stream:null},block:Ue,htmlState:null,indentation:0,inline:lt,text:Ge,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(Re){return{f:Re.f,prevLine:Re.prevLine,thisLine:Re.thisLine,block:Re.block,htmlState:Re.htmlState&&re.copyState(Ze,Re.htmlState),indentation:Re.indentation,localMode:Re.localMode,localState:Re.localMode?re.copyState(Re.localMode,Re.localState):null,inline:Re.inline,text:Re.text,formatting:!1,linkText:Re.linkText,linkTitle:Re.linkTitle,linkHref:Re.linkHref,code:Re.code,em:Re.em,strong:Re.strong,strikethrough:Re.strikethrough,emoji:Re.emoji,header:Re.header,setext:Re.setext,hr:Re.hr,taskList:Re.taskList,list:Re.list,listStack:Re.listStack.slice(0),quote:Re.quote,indentedCode:Re.indentedCode,trailingSpace:Re.trailingSpace,trailingSpaceNewLine:Re.trailingSpaceNewLine,md_inside:Re.md_inside,fencedEndRE:Re.fencedEndRE}},token:function(Re,xe){if(xe.formatting=!1,Re!=xe.thisLine.stream){if(xe.header=0,xe.hr=!1,Re.match(/^\s*$/,!0))return Be(xe),null;if(xe.prevLine=xe.thisLine,xe.thisLine={stream:Re},xe.taskList=!1,xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,!xe.localState&&(xe.f=xe.block,xe.f!=ke)){var Lt=Re.match(/^\s*/,!0)[0].replace(/\t/g,at).length;if(xe.indentation=Lt,xe.indentationDiff=null,Lt>0)return null}}return xe.f(Re,xe)},innerMode:function(Re){return Re.block==ke?{state:Re.htmlState,mode:Ze}:Re.localState?{state:Re.localState,mode:Re.localMode}:{state:Re,mode:$t}},indent:function(Re,xe,Lt){return Re.block==ke&&Ze.indent?Ze.indent(Re.htmlState,xe,Lt):Re.localState&&Re.localMode.indent?Re.localMode.indent(Re.localState,xe,Lt):re.Pass},blankLine:Be,getType:Pe,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return $t},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},98101:function(xn,dt,fe){(function(re){re(fe(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 Me=0;Me<re.modeInfo.length;Me++){var De=re.modeInfo[Me];De.mimes&&(De.mime=De.mimes[0])}re.findModeByMIME=function(Ze){Ze=Ze.toLowerCase();for(var Ee=0;Ee<re.modeInfo.length;Ee++){var de=re.modeInfo[Ee];if(de.mime==Ze)return de;if(de.mimes){for(var ze=0;ze<de.mimes.length;ze++)if(de.mimes[ze]==Ze)return de}}if(/\+xml$/.test(Ze))return re.findModeByMIME("application/xml");if(/\+json$/.test(Ze))return re.findModeByMIME("application/json")},re.findModeByExtension=function(Ze){Ze=Ze.toLowerCase();for(var Ee=0;Ee<re.modeInfo.length;Ee++){var de=re.modeInfo[Ee];if(de.ext){for(var ze=0;ze<de.ext.length;ze++)if(de.ext[ze]==Ze)return de}}},re.findModeByFileName=function(Ze){for(var Ee=0;Ee<re.modeInfo.length;Ee++){var de=re.modeInfo[Ee];if(de.file&&de.file.test(Ze))return de}var ze=Ze.lastIndexOf("."),Fe=ze>-1&&Ze.substring(ze+1,Ze.length);if(Fe)return re.findModeByExtension(Fe)},re.findModeByName=function(Ze){Ze=Ze.toLowerCase();for(var Ee=0;Ee<re.modeInfo.length;Ee++){var de=re.modeInfo[Ee];if(de.name.toLowerCase()==Ze)return de;if(de.alias){for(var ze=0;ze<de.alias.length;ze++)if(de.alias[ze].toLowerCase()==Ze)return de}}}})},67549:function(xn,dt,fe){(function(re){re(fe(89780))})(function(re){"use strict";re.defineMode("stex",function(Me,De){"use strict";function Ze(Xe,Je){Xe.cmdState.push(Je)}function Ee(Xe){return Xe.cmdState.length>0?Xe.cmdState[Xe.cmdState.length-1]:null}function de(Xe){var Je=Xe.cmdState.pop();Je&&Je.closeBracket()}function ze(Xe){for(var Je=Xe.cmdState,He=Je.length-1;He>=0;He--){var Te=Je[He];if(Te.name!="DEFAULT")return Te}return{styleIdentifier:function(){return null}}}function Fe(Xe,Je,He){return function(){this.name=Xe,this.bracketNo=0,this.style=Je,this.styles=He,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Ie={};Ie.importmodule=Fe("importmodule","tag",["string","builtin"]),Ie.documentclass=Fe("documentclass","tag",["","atom"]),Ie.usepackage=Fe("usepackage","tag",["atom"]),Ie.begin=Fe("begin","tag",["atom"]),Ie.end=Fe("end","tag",["atom"]),Ie.label=Fe("label","tag",["atom"]),Ie.ref=Fe("ref","tag",["atom"]),Ie.eqref=Fe("eqref","tag",["atom"]),Ie.cite=Fe("cite","tag",["atom"]),Ie.bibitem=Fe("bibitem","tag",["atom"]),Ie.Bibitem=Fe("Bibitem","tag",["atom"]),Ie.RBibitem=Fe("RBibitem","tag",["atom"]),Ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ve(Xe,Je){Xe.f=Je}function ut(Xe,Je){var He;if(Xe.match(/^\\[a-zA-Z@]+/)){var Te=Xe.current().slice(1);return He=Ie.hasOwnProperty(Te)?Ie[Te]:Ie.DEFAULT,He=new He,Ze(Je,He),ve(Je,ot),He.style}if(Xe.match(/^\\[$&%#{}_]/)||Xe.match(/^\\[,;!\/\\]/))return"tag";if(Xe.match("\\["))return ve(Je,function(Oe,We){return we(Oe,We,"\\]")}),"keyword";if(Xe.match("\\("))return ve(Je,function(Oe,We){return we(Oe,We,"\\)")}),"keyword";if(Xe.match("$$"))return ve(Je,function(Oe,We){return we(Oe,We,"$$")}),"keyword";if(Xe.match("$"))return ve(Je,function(Oe,We){return we(Oe,We,"$")}),"keyword";var at=Xe.next();if(at=="%")return Xe.skipToEnd(),"comment";if(at=="}"||at=="]"){if(He=Ee(Je),He)He.closeBracket(at),ve(Je,ot);else return"error";return"bracket"}else return at=="{"||at=="["?(He=Ie.DEFAULT,He=new He,Ze(Je,He),"bracket"):/\d/.test(at)?(Xe.eatWhile(/[\w.%]/),"atom"):(Xe.eatWhile(/[\w\-_]/),He=ze(Je),He.name=="begin"&&(He.argument=Xe.current()),He.styleIdentifier())}function we(Xe,Je,He){if(Xe.eatSpace())return null;if(He&&Xe.match(He))return ve(Je,ut),"keyword";if(Xe.match(/^\\[a-zA-Z@]+/))return"tag";if(Xe.match(/^[a-zA-Z]+/))return"variable-2";if(Xe.match(/^\\[$&%#{}_]/)||Xe.match(/^\\[,;!\/]/)||Xe.match(/^[\^_&]/))return"tag";if(Xe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Xe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Te=Xe.next();return Te=="{"||Te=="}"||Te=="["||Te=="]"||Te=="("||Te==")"?"bracket":Te=="%"?(Xe.skipToEnd(),"comment"):"error"}function ot(Xe,Je){var He=Xe.peek(),Te;return He=="{"||He=="["?(Te=Ee(Je),Te.openBracket(He),Xe.eat(He),ve(Je,ut),"bracket"):/[ \t\r]/.test(He)?(Xe.eat(He),null):(ve(Je,ut),de(Je),ut(Xe,Je))}return{startState:function(){var Xe=De.inMathMode?function(Je,He){return we(Je,He)}:ut;return{cmdState:[],f:Xe}},copyState:function(Xe){return{cmdState:Xe.cmdState.slice(),f:Xe.f}},token:function(Xe,Je){return Je.f(Xe,Je)},blankLine:function(Xe){Xe.f=ut,Xe.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},15525:function(xn,dt,fe){(function(re){re(fe(89780))})(function(re){"use strict";var Me={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},De={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(Ze,Ee){var de=Ze.indentUnit,ze={},Fe=Ee.htmlMode?Me:De;for(var Ie in Fe)ze[Ie]=Fe[Ie];for(var Ie in Ee)ze[Ie]=Ee[Ie];var ve,ut;function we(je,ht){function et(Kt){return ht.tokenize=Kt,Kt(je,ht)}var ft=je.next();if(ft=="<")return je.eat("!")?je.eat("[")?je.match("CDATA[")?et(Je("atom","]]>")):null:je.match("--")?et(Je("comment","-->")):je.match("DOCTYPE",!0,!0)?(je.eatWhile(/[\w\._\-]/),et(He(1))):null:je.eat("?")?(je.eatWhile(/[\w\._\-]/),ht.tokenize=Je("meta","?>"),"meta"):(ve=je.eat("/")?"closeTag":"openTag",ht.tokenize=ot,"tag bracket");if(ft=="&"){var Tt;return je.eat("#")?je.eat("x")?Tt=je.eatWhile(/[a-fA-F\d]/)&&je.eat(";"):Tt=je.eatWhile(/[\d]/)&&je.eat(";"):Tt=je.eatWhile(/[\w\.\-:]/)&&je.eat(";"),Tt?"atom":"error"}else return je.eatWhile(/[^&<]/),null}we.isInText=!0;function ot(je,ht){var et=je.next();if(et==">"||et=="/"&&je.eat(">"))return ht.tokenize=we,ve=et==">"?"endTag":"selfcloseTag","tag bracket";if(et=="=")return ve="equals",null;if(et=="<"){ht.tokenize=we,ht.state=We,ht.tagName=ht.tagStart=null;var ft=ht.tokenize(je,ht);return ft?ft+" tag error":"tag error"}else return/[\'\"]/.test(et)?(ht.tokenize=Xe(et),ht.stringStartCol=je.column(),ht.tokenize(je,ht)):(je.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Xe(je){var ht=function(et,ft){for(;!et.eol();)if(et.next()==je){ft.tokenize=ot;break}return"string"};return ht.isInAttribute=!0,ht}function Je(je,ht){return function(et,ft){for(;!et.eol();){if(et.match(ht)){ft.tokenize=we;break}et.next()}return je}}function He(je){return function(ht,et){for(var ft;(ft=ht.next())!=null;){if(ft=="<")return et.tokenize=He(je+1),et.tokenize(ht,et);if(ft==">")if(je==1){et.tokenize=we;break}else return et.tokenize=He(je-1),et.tokenize(ht,et)}return"meta"}}function Te(je,ht,et){this.prev=je.context,this.tagName=ht,this.indent=je.indented,this.startOfLine=et,(ze.doNotIndent.hasOwnProperty(ht)||je.context&&je.context.noIndent)&&(this.noIndent=!0)}function at(je){je.context&&(je.context=je.context.prev)}function Oe(je,ht){for(var et;;){if(!je.context||(et=je.context.tagName,!ze.contextGrabbers.hasOwnProperty(et)||!ze.contextGrabbers[et].hasOwnProperty(ht)))return;at(je)}}function We(je,ht,et){return je=="openTag"?(et.tagStart=ht.column(),be):je=="closeTag"?Be:We}function be(je,ht,et){return je=="word"?(et.tagName=ht.current(),ut="tag",qe):ze.allowMissingTagName&&je=="endTag"?(ut="tag bracket",qe(je,ht,et)):(ut="error",be)}function Be(je,ht,et){if(je=="word"){var ft=ht.current();return et.context&&et.context.tagName!=ft&&ze.implicitlyClosed.hasOwnProperty(et.context.tagName)&&at(et),et.context&&et.context.tagName==ft||ze.matchClosing===!1?(ut="tag",Ue):(ut="tag error",ke)}else return ze.allowMissingTagName&&je=="endTag"?(ut="tag bracket",Ue(je,ht,et)):(ut="error",ke)}function Ue(je,ht,et){return je!="endTag"?(ut="error",Ue):(at(et),We)}function ke(je,ht,et){return ut="error",Ue(je,ht,et)}function qe(je,ht,et){if(je=="word")return ut="attribute",Pe;if(je=="endTag"||je=="selfcloseTag"){var ft=et.tagName,Tt=et.tagStart;return et.tagName=et.tagStart=null,je=="selfcloseTag"||ze.autoSelfClosers.hasOwnProperty(ft)?Oe(et,ft):(Oe(et,ft),et.context=new Te(et,ft,Tt==et.indented)),We}return ut="error",qe}function Pe(je,ht,et){return je=="equals"?Ge:(ze.allowMissing||(ut="error"),qe(je,ht,et))}function Ge(je,ht,et){return je=="string"?lt:je=="word"&&ze.allowUnquoted?(ut="string",qe):(ut="error",qe(je,ht,et))}function lt(je,ht,et){return je=="string"?lt:qe(je,ht,et)}return{startState:function(je){var ht={tokenize:we,state:We,indented:je||0,tagName:null,tagStart:null,context:null};return je!=null&&(ht.baseIndent=je),ht},token:function(je,ht){if(!ht.tagName&&je.sol()&&(ht.indented=je.indentation()),je.eatSpace())return null;ve=null;var et=ht.tokenize(je,ht);return(et||ve)&&et!="comment"&&(ut=null,ht.state=ht.state(ve||et,je,ht),ut&&(et=ut=="error"?et+" error":ut)),et},indent:function(je,ht,et){var ft=je.context;if(je.tokenize.isInAttribute)return je.tagStart==je.indented?je.stringStartCol+1:je.indented+de;if(ft&&ft.noIndent)return re.Pass;if(je.tokenize!=ot&&je.tokenize!=we)return et?et.match(/^(\s*)/)[0].length:0;if(je.tagName)return ze.multilineTagIndentPastTag!==!1?je.tagStart+je.tagName.length+2:je.tagStart+de*(ze.multilineTagIndentFactor||1);if(ze.alignCDATA&&/<!\[CDATA\[/.test(ht))return 0;var Tt=ht&&/^<(\/)?([\w_:\.-]*)/.exec(ht);if(Tt&&Tt[1])for(;ft;)if(ft.tagName==Tt[2]){ft=ft.prev;break}else if(ze.implicitlyClosed.hasOwnProperty(ft.tagName))ft=ft.prev;else break;else if(Tt)for(;ft;){var Kt=ze.contextGrabbers[ft.tagName];if(Kt&&Kt.hasOwnProperty(Tt[2]))ft=ft.prev;else break}for(;ft&&ft.prev&&!ft.startOfLine;)ft=ft.prev;return ft?ft.indent+de:je.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ze.htmlMode?"html":"xml",helperType:ze.htmlMode?"html":"xml",skipAttribute:function(je){je.state==Ge&&(je.state=qe)},xmlCurrentTag:function(je){return je.tagName?{name:je.tagName,close:je.type=="closeTag"}:null},xmlCurrentContext:function(je){for(var ht=[],et=je.context;et;et=et.prev)et.tagName&&ht.push(et.tagName);return ht.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},97774:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=void 0;var re=Object.assign||function(He){for(var Te=1;Te<arguments.length;Te++){var at=arguments[Te];for(var Oe in at)Object.prototype.hasOwnProperty.call(at,Oe)&&(He[Oe]=at[Oe])}return He},Me=function(){function He(Te,at){for(var Oe=0;Oe<at.length;Oe++){var We=at[Oe];We.enumerable=We.enumerable||!1,We.configurable=!0,"value"in We&&(We.writable=!0),Object.defineProperty(Te,We.key,We)}}return function(Te,at,Oe){return at&&He(Te.prototype,at),Oe&&He(Te,Oe),Te}}(),De=fe(59301),Ze=ut(De),Ee=fe(12708),de=ut(Ee),ze=fe(53291),Fe=ut(ze),Ie=fe(47242),ve=fe(65429);function ut(He){return He&&He.__esModule?He:{default:He}}function we(He,Te){if(!(He instanceof Te))throw new TypeError("Cannot call a class as a function")}function ot(He,Te){if(!He)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Te&&(typeof Te=="object"||typeof Te=="function")?Te:He}function Xe(He,Te){if(typeof Te!="function"&&Te!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Te);He.prototype=Object.create(Te&&Te.prototype,{constructor:{value:He,enumerable:!1,writable:!0,configurable:!0}}),Te&&(Object.setPrototypeOf?Object.setPrototypeOf(He,Te):He.__proto__=Te)}var Je=function(He){Xe(Te,He);function Te(at){we(this,Te);var Oe=ot(this,(Te.__proto__||Object.getPrototypeOf(Te)).call(this,at));return Oe.getEchartsInstance=function(){return Oe.echartsLib.getInstanceByDom(Oe.echartsElement)||Oe.echartsLib.init(Oe.echartsElement,Oe.props.theme,Oe.props.opts)},Oe.dispose=function(){if(Oe.echartsElement){try{(0,Ie.clear)(Oe.echartsElement)}catch(We){console.warn(We)}Oe.echartsLib.dispose(Oe.echartsElement)}},Oe.rerender=function(){var We=Oe.props,be=We.onEvents,Be=We.onChartReady,Ue=Oe.renderEchartDom();Oe.bindEvents(Ue,be||{}),typeof Be=="function"&&Oe.props.onChartReady(Ue),Oe.echartsElement&&(0,Ie.bind)(Oe.echartsElement,function(){try{Ue.resize()}catch(ke){console.warn(ke)}})},Oe.bindEvents=function(We,be){var Be=function(qe,Pe){typeof qe=="string"&&typeof Pe=="function"&&We.on(qe,function(Ge){Pe(Ge,We)})};for(var Ue in be)Object.prototype.hasOwnProperty.call(be,Ue)&&Be(Ue,be[Ue])},Oe.renderEchartDom=function(){var We=Oe.getEchartsInstance();return We.setOption(Oe.props.option,Oe.props.notMerge||!1,Oe.props.lazyUpdate||!1),Oe.props.showLoading?We.showLoading(Oe.props.loadingOption||null):We.hideLoading(),We},Oe.echartsLib=at.echarts,Oe.echartsElement=null,Oe}return Me(Te,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(Oe){if(!(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(Oe,this.props))){if(!(0,Fe.default)(Oe.theme,this.props.theme)||!(0,Fe.default)(Oe.opts,this.props.opts)||!(0,Fe.default)(Oe.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var We=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if(!(0,Fe.default)((0,ve.pick)(this.props,We),(0,ve.pick)(Oe,We))){var be=this.renderEchartDom();if(!(0,Fe.default)(Oe.style,this.props.style)||!(0,Fe.default)(Oe.className,this.props.className))try{be.resize()}catch(Be){console.warn(Be)}}}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var Oe=this,We=this.props,be=We.style,Be=We.className,Ue=re({height:300},be);return Ze.default.createElement("div",{ref:function(qe){Oe.echartsElement=qe},style:Ue,className:"echarts-for-react "+Be})}}]),Te}(De.Component);dt.default=Je,Je.propTypes={option:de.default.object.isRequired,echarts:de.default.object,notMerge:de.default.bool,lazyUpdate:de.default.bool,style:de.default.object,className:de.default.string,theme:de.default.oneOfType([de.default.string,de.default.object]),onChartReady:de.default.func,showLoading:de.default.bool,loadingOption:de.default.object,onEvents:de.default.object,opts:de.default.shape({devicePixelRatio:de.default.number,renderer:de.default.oneOf(["canvas","svg"]),width:de.default.oneOfType([de.default.number,de.default.oneOf([null,void 0,"auto"])]),height:de.default.oneOfType([de.default.number,de.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:de.default.func},Je.defaultProps={echarts:{},notMerge:!1,lazyUpdate:!1,style:{},className:"",theme:null,onChartReady:function(){},showLoading:!1,loadingOption:null,onEvents:{},opts:{},shouldSetOption:function(){return!0}}},42441:function(xn,dt,fe){"use strict";var re;re={value:!0},dt.Z=void 0;var Me=fe(76411),De=de(Me),Ze=fe(97774),Ee=de(Ze);function de(ut){return ut&&ut.__esModule?ut:{default:ut}}function ze(ut,we){if(!(ut instanceof we))throw new TypeError("Cannot call a class as a function")}function Fe(ut,we){if(!ut)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we&&(typeof we=="object"||typeof we=="function")?we:ut}function Ie(ut,we){if(typeof we!="function"&&we!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof we);ut.prototype=Object.create(we&&we.prototype,{constructor:{value:ut,enumerable:!1,writable:!0,configurable:!0}}),we&&(Object.setPrototypeOf?Object.setPrototypeOf(ut,we):ut.__proto__=we)}var ve=function(ut){Ie(we,ut);function we(ot){ze(this,we);var Xe=Fe(this,(we.__proto__||Object.getPrototypeOf(we)).call(this,ot));return Xe.echartsLib=De.default,Xe}return we}(Ee.default);dt.Z=ve},65429:function(xn,dt){"use strict";Object.defineProperty(dt,"__esModule",{value:!0});var fe=dt.pick=function(Me,De){var Ze={};return De.forEach(function(Ee){Ze[Ee]=Me[Ee]}),Ze}},86204:function(xn){"use strict";var dt=typeof Reflect=="object"?Reflect:null,fe=dt&&typeof dt.apply=="function"?dt.apply:function(We,be,Be){return Function.prototype.apply.call(We,be,Be)},re;dt&&typeof dt.ownKeys=="function"?re=dt.ownKeys:Object.getOwnPropertySymbols?re=function(We){return Object.getOwnPropertyNames(We).concat(Object.getOwnPropertySymbols(We))}:re=function(We){return Object.getOwnPropertyNames(We)};function Me(Oe){console&&console.warn&&console.warn(Oe)}var De=Number.isNaN||function(We){return We!==We};function Ze(){Ze.init.call(this)}xn.exports=Ze,xn.exports.once=He,Ze.EventEmitter=Ze,Ze.prototype._events=void 0,Ze.prototype._eventsCount=0,Ze.prototype._maxListeners=void 0;var Ee=10;function de(Oe){if(typeof Oe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof Oe)}Object.defineProperty(Ze,"defaultMaxListeners",{enumerable:!0,get:function(){return Ee},set:function(Oe){if(typeof Oe!="number"||Oe<0||De(Oe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+Oe+".");Ee=Oe}}),Ze.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Ze.prototype.setMaxListeners=function(We){if(typeof We!="number"||We<0||De(We))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+We+".");return this._maxListeners=We,this};function ze(Oe){return Oe._maxListeners===void 0?Ze.defaultMaxListeners:Oe._maxListeners}Ze.prototype.getMaxListeners=function(){return ze(this)},Ze.prototype.emit=function(We){for(var be=[],Be=1;Be<arguments.length;Be++)be.push(arguments[Be]);var Ue=We==="error",ke=this._events;if(ke!==void 0)Ue=Ue&&ke.error===void 0;else if(!Ue)return!1;if(Ue){var qe;if(be.length>0&&(qe=be[0]),qe instanceof Error)throw qe;var Pe=new Error("Unhandled error."+(qe?" ("+qe.message+")":""));throw Pe.context=qe,Pe}var Ge=ke[We];if(Ge===void 0)return!1;if(typeof Ge=="function")fe(Ge,this,be);else for(var lt=Ge.length,je=ot(Ge,lt),Be=0;Be<lt;++Be)fe(je[Be],this,be);return!0};function Fe(Oe,We,be,Be){var Ue,ke,qe;if(de(be),ke=Oe._events,ke===void 0?(ke=Oe._events=Object.create(null),Oe._eventsCount=0):(ke.newListener!==void 0&&(Oe.emit("newListener",We,be.listener?be.listener:be),ke=Oe._events),qe=ke[We]),qe===void 0)qe=ke[We]=be,++Oe._eventsCount;else if(typeof qe=="function"?qe=ke[We]=Be?[be,qe]:[qe,be]:Be?qe.unshift(be):qe.push(be),Ue=ze(Oe),Ue>0&&qe.length>Ue&&!qe.warned){qe.warned=!0;var Pe=new Error("Possible EventEmitter memory leak detected. "+qe.length+" "+String(We)+" listeners added. Use emitter.setMaxListeners() to increase limit");Pe.name="MaxListenersExceededWarning",Pe.emitter=Oe,Pe.type=We,Pe.count=qe.length,Me(Pe)}return Oe}Ze.prototype.addListener=function(We,be){return Fe(this,We,be,!1)},Ze.prototype.on=Ze.prototype.addListener,Ze.prototype.prependListener=function(We,be){return Fe(this,We,be,!0)};function Ie(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ve(Oe,We,be){var Be={fired:!1,wrapFn:void 0,target:Oe,type:We,listener:be},Ue=Ie.bind(Be);return Ue.listener=be,Be.wrapFn=Ue,Ue}Ze.prototype.once=function(We,be){return de(be),this.on(We,ve(this,We,be)),this},Ze.prototype.prependOnceListener=function(We,be){return de(be),this.prependListener(We,ve(this,We,be)),this},Ze.prototype.removeListener=function(We,be){var Be,Ue,ke,qe,Pe;if(de(be),Ue=this._events,Ue===void 0)return this;if(Be=Ue[We],Be===void 0)return this;if(Be===be||Be.listener===be)--this._eventsCount===0?this._events=Object.create(null):(delete Ue[We],Ue.removeListener&&this.emit("removeListener",We,Be.listener||be));else if(typeof Be!="function"){for(ke=-1,qe=Be.length-1;qe>=0;qe--)if(Be[qe]===be||Be[qe].listener===be){Pe=Be[qe].listener,ke=qe;break}if(ke<0)return this;ke===0?Be.shift():Xe(Be,ke),Be.length===1&&(Ue[We]=Be[0]),Ue.removeListener!==void 0&&this.emit("removeListener",We,Pe||be)}return this},Ze.prototype.off=Ze.prototype.removeListener,Ze.prototype.removeAllListeners=function(We){var be,Be,Ue;if(Be=this._events,Be===void 0)return this;if(Be.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Be[We]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Be[We]),this;if(arguments.length===0){var ke=Object.keys(Be),qe;for(Ue=0;Ue<ke.length;++Ue)qe=ke[Ue],qe!=="removeListener"&&this.removeAllListeners(qe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(be=Be[We],typeof be=="function")this.removeListener(We,be);else if(be!==void 0)for(Ue=be.length-1;Ue>=0;Ue--)this.removeListener(We,be[Ue]);return this};function ut(Oe,We,be){var Be=Oe._events;if(Be===void 0)return[];var Ue=Be[We];return Ue===void 0?[]:typeof Ue=="function"?be?[Ue.listener||Ue]:[Ue]:be?Je(Ue):ot(Ue,Ue.length)}Ze.prototype.listeners=function(We){return ut(this,We,!0)},Ze.prototype.rawListeners=function(We){return ut(this,We,!1)},Ze.listenerCount=function(Oe,We){return typeof Oe.listenerCount=="function"?Oe.listenerCount(We):we.call(Oe,We)},Ze.prototype.listenerCount=we;function we(Oe){var We=this._events;if(We!==void 0){var be=We[Oe];if(typeof be=="function")return 1;if(be!==void 0)return be.length}return 0}Ze.prototype.eventNames=function(){return this._eventsCount>0?re(this._events):[]};function ot(Oe,We){for(var be=new Array(We),Be=0;Be<We;++Be)be[Be]=Oe[Be];return be}function Xe(Oe,We){for(;We+1<Oe.length;We++)Oe[We]=Oe[We+1];Oe.pop()}function Je(Oe){for(var We=new Array(Oe.length),be=0;be<We.length;++be)We[be]=Oe[be].listener||Oe[be];return We}function He(Oe,We){return new Promise(function(be,Be){function Ue(qe){Oe.removeListener(We,ke),Be(qe)}function ke(){typeof Oe.removeListener=="function"&&Oe.removeListener("error",Ue),be([].slice.call(arguments))}at(Oe,We,ke,{once:!0}),We!=="error"&&Te(Oe,Ue,{once:!0})})}function Te(Oe,We,be){typeof Oe.on=="function"&&at(Oe,"error",We,be)}function at(Oe,We,be,Be){if(typeof Oe.on=="function")Be.once?Oe.once(We,be):Oe.on(We,be);else if(typeof Oe.addEventListener=="function")Oe.addEventListener(We,function Ue(ke){Be.once&&Oe.removeEventListener(We,Ue),be(ke)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof Oe)}},53291:function(xn){"use strict";var dt=Array.isArray,fe=Object.keys,re=Object.prototype.hasOwnProperty;xn.exports=function Me(De,Ze){if(De===Ze)return!0;if(De&&Ze&&typeof De=="object"&&typeof Ze=="object"){var Ee=dt(De),de=dt(Ze),ze,Fe,Ie;if(Ee&&de){if(Fe=De.length,Fe!=Ze.length)return!1;for(ze=Fe;ze--!==0;)if(!Me(De[ze],Ze[ze]))return!1;return!0}if(Ee!=de)return!1;var ve=De instanceof Date,ut=Ze instanceof Date;if(ve!=ut)return!1;if(ve&&ut)return De.getTime()==Ze.getTime();var we=De instanceof RegExp,ot=Ze instanceof RegExp;if(we!=ot)return!1;if(we&&ot)return De.toString()==Ze.toString();var Xe=fe(De);if(Fe=Xe.length,Fe!==fe(Ze).length)return!1;for(ze=Fe;ze--!==0;)if(!re.call(Ze,Xe[ze]))return!1;for(ze=Fe;ze--!==0;)if(Ie=Xe[ze],!Me(De[Ie],Ze[Ie]))return!1;return!0}return De!==De&&Ze!==Ze}},6341:function(xn,dt,fe){"use strict";fe.d(dt,{Jx:function(){return Kl}});function re(te,ye="utf8"){return new TextDecoder(ye).decode(te)}const Me=new TextEncoder;function De(te){return Me.encode(te)}const Ze=1024*8,Ee=(()=>{const te=new Uint8Array(4),ye=new Uint32Array(te.buffer);return!((ye[0]=1)&te[0])})(),de={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ze{constructor(ye=Ze,le={}){kA(this,"buffer");kA(this,"byteLength");kA(this,"byteOffset");kA(this,"length");kA(this,"offset");kA(this,"lastWrittenByte");kA(this,"littleEndian");kA(this,"_data");kA(this,"_mark");kA(this,"_marks");let Le=!1;typeof ye=="number"?ye=new ArrayBuffer(ye):(Le=!0,this.lastWrittenByte=ye.byteLength);const Ve=le.offset?le.offset>>>0:0,nt=ye.byteLength-Ve;let En=Ve;(ArrayBuffer.isView(ye)||ye instanceof ze)&&(ye.byteLength!==ye.buffer.byteLength&&(En=ye.byteOffset+Ve),ye=ye.buffer),Le?this.lastWrittenByte=nt:this.lastWrittenByte=0,this.buffer=ye,this.length=nt,this.byteLength=nt,this.byteOffset=En,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,En,nt),this._mark=0,this._marks=[]}available(ye=1){return this.offset+ye<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(ye=1){return this.offset+=ye,this}back(ye=1){return this.offset-=ye,this}seek(ye){return this.offset=ye,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const ye=this._marks.pop();if(ye===void 0)throw new Error("Mark stack empty");return this.seek(ye),this}rewind(){return this.offset=0,this}ensureAvailable(ye=1){if(!this.available(ye)){const Le=(this.offset+ye)*2,Ve=new Uint8Array(Le);Ve.set(new Uint8Array(this.buffer)),this.buffer=Ve.buffer,this.length=Le,this.byteLength=Le,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(ye=1){return this.readArray(ye,"uint8")}readArray(ye,le){const Le=de[le].BYTES_PER_ELEMENT*ye,Ve=this.byteOffset+this.offset,nt=this.buffer.slice(Ve,Ve+Le);if(this.littleEndian===Ee&&le!=="uint8"&&le!=="int8"){const Xt=new Uint8Array(this.buffer.slice(Ve,Ve+Le));Xt.reverse();const Ur=new de[le](Xt.buffer);return this.offset+=Le,Ur.reverse(),Ur}const En=new de[le](nt);return this.offset+=Le,En}readInt16(){const ye=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,ye}readUint16(){const ye=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,ye}readInt32(){const ye=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,ye}readUint32(){const ye=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,ye}readFloat32(){const ye=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,ye}readFloat64(){const ye=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,ye}readBigInt64(){const ye=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,ye}readBigUint64(){const ye=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,ye}readChar(){return String.fromCharCode(this.readInt8())}readChars(ye=1){let le="";for(let Le=0;Le<ye;Le++)le+=this.readChar();return le}readUtf8(ye=1){return re(this.readBytes(ye))}decodeText(ye=1,le="utf8"){return re(this.readBytes(ye),le)}writeBoolean(ye){return this.writeUint8(ye?255:0),this}writeInt8(ye){return this.ensureAvailable(1),this._data.setInt8(this.offset++,ye),this._updateLastWrittenByte(),this}writeUint8(ye){return this.ensureAvailable(1),this._data.setUint8(this.offset++,ye),this._updateLastWrittenByte(),this}writeByte(ye){return this.writeUint8(ye)}writeBytes(ye){this.ensureAvailable(ye.length);for(let le=0;le<ye.length;le++)this._data.setUint8(this.offset++,ye[le]);return this._updateLastWrittenByte(),this}writeInt16(ye){return this.ensureAvailable(2),this._data.setInt16(this.offset,ye,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(ye){return this.ensureAvailable(2),this._data.setUint16(this.offset,ye,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(ye){return this.ensureAvailable(4),this._data.setInt32(this.offset,ye,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(ye){return this.ensureAvailable(4),this._data.setUint32(this.offset,ye,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(ye){return this.ensureAvailable(4),this._data.setFloat32(this.offset,ye,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(ye){return this.ensureAvailable(8),this._data.setFloat64(this.offset,ye,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(ye){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,ye,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(ye){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,ye,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(ye){return this.writeUint8(ye.charCodeAt(0))}writeChars(ye){for(let le=0;le<ye.length;le++)this.writeUint8(ye.charCodeAt(le));return this}writeUtf8(ye){return this.writeBytes(De(ye))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const Fe=4,Ie=0,ve=1,ut=2;function we(te){let ye=te.length;for(;--ye>=0;)te[ye]=0}const ot=0,Xe=1,Je=2,He=3,Te=258,at=29,Oe=256,We=Oe+1+at,be=30,Be=19,Ue=2*We+1,ke=15,qe=16,Pe=7,Ge=256,lt=16,je=17,ht=18,et=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ft=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),Tt=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Kt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fn=512,$t=new Array((We+2)*2);we($t);const Re=new Array(be*2);we(Re);const xe=new Array(fn);we(xe);const Lt=new Array(Te-He+1);we(Lt);const Fn=new Array(at);we(Fn);const hn=new Array(be);we(hn);function vt(te,ye,le,Le,Ve){this.static_tree=te,this.extra_bits=ye,this.extra_base=le,this.elems=Le,this.max_length=Ve,this.has_stree=te&&te.length}let Jt,Yt,jn;function yt(te,ye){this.dyn_tree=te,this.max_code=0,this.stat_desc=ye}const wn=te=>te<256?xe[te]:xe[256+(te>>>7)],Dt=(te,ye)=>{te.pending_buf[te.pending++]=ye&255,te.pending_buf[te.pending++]=ye>>>8&255},un=(te,ye,le)=>{te.bi_valid>qe-le?(te.bi_buf|=ye<<te.bi_valid&65535,Dt(te,te.bi_buf),te.bi_buf=ye>>qe-te.bi_valid,te.bi_valid+=le-qe):(te.bi_buf|=ye<<te.bi_valid&65535,te.bi_valid+=le)},ln=(te,ye,le)=>{un(te,le[ye*2],le[ye*2+1])},ge=(te,ye)=>{let le=0;do le|=te&1,te>>>=1,le<<=1;while(--ye>0);return le>>>1},ue=te=>{te.bi_valid===16?(Dt(te,te.bi_buf),te.bi_buf=0,te.bi_valid=0):te.bi_valid>=8&&(te.pending_buf[te.pending++]=te.bi_buf&255,te.bi_buf>>=8,te.bi_valid-=8)},ee=(te,ye)=>{const le=ye.dyn_tree,Le=ye.max_code,Ve=ye.stat_desc.static_tree,nt=ye.stat_desc.has_stree,En=ye.stat_desc.extra_bits,Xt=ye.stat_desc.extra_base,Ur=ye.stat_desc.max_length;let Pt,_n,li,Nr,vr,xi,bA=0;for(Nr=0;Nr<=ke;Nr++)te.bl_count[Nr]=0;for(le[te.heap[te.heap_max]*2+1]=0,Pt=te.heap_max+1;Pt<Ue;Pt++)_n=te.heap[Pt],Nr=le[le[_n*2+1]*2+1]+1,Nr>Ur&&(Nr=Ur,bA++),le[_n*2+1]=Nr,!(_n>Le)&&(te.bl_count[Nr]++,vr=0,_n>=Xt&&(vr=En[_n-Xt]),xi=le[_n*2],te.opt_len+=xi*(Nr+vr),nt&&(te.static_len+=xi*(Ve[_n*2+1]+vr)));if(bA!==0){do{for(Nr=Ur-1;te.bl_count[Nr]===0;)Nr--;te.bl_count[Nr]--,te.bl_count[Nr+1]+=2,te.bl_count[Ur]--,bA-=2}while(bA>0);for(Nr=Ur;Nr!==0;Nr--)for(_n=te.bl_count[Nr];_n!==0;)li=te.heap[--Pt],!(li>Le)&&(le[li*2+1]!==Nr&&(te.opt_len+=(Nr-le[li*2+1])*le[li*2],le[li*2+1]=Nr),_n--)}},b=(te,ye,le)=>{const Le=new Array(ke+1);let Ve=0,nt,En;for(nt=1;nt<=ke;nt++)Ve=Ve+le[nt-1]<<1,Le[nt]=Ve;for(En=0;En<=ye;En++){let Xt=te[En*2+1];Xt!==0&&(te[En*2]=ge(Le[Xt]++,Xt))}},ae=()=>{let te,ye,le,Le,Ve;const nt=new Array(ke+1);for(le=0,Le=0;Le<at-1;Le++)for(Fn[Le]=le,te=0;te<1<<et[Le];te++)Lt[le++]=Le;for(Lt[le-1]=Le,Ve=0,Le=0;Le<16;Le++)for(hn[Le]=Ve,te=0;te<1<<ft[Le];te++)xe[Ve++]=Le;for(Ve>>=7;Le<be;Le++)for(hn[Le]=Ve<<7,te=0;te<1<<ft[Le]-7;te++)xe[256+Ve++]=Le;for(ye=0;ye<=ke;ye++)nt[ye]=0;for(te=0;te<=143;)$t[te*2+1]=8,te++,nt[8]++;for(;te<=255;)$t[te*2+1]=9,te++,nt[9]++;for(;te<=279;)$t[te*2+1]=7,te++,nt[7]++;for(;te<=287;)$t[te*2+1]=8,te++,nt[8]++;for(b($t,We+1,nt),te=0;te<be;te++)Re[te*2+1]=5,Re[te*2]=ge(te,5);Jt=new vt($t,et,Oe+1,We,ke),Yt=new vt(Re,ft,0,be,ke),jn=new vt(new Array(0),Tt,0,Be,Pe)},ie=te=>{let ye;for(ye=0;ye<We;ye++)te.dyn_ltree[ye*2]=0;for(ye=0;ye<be;ye++)te.dyn_dtree[ye*2]=0;for(ye=0;ye<Be;ye++)te.bl_tree[ye*2]=0;te.dyn_ltree[Ge*2]=1,te.opt_len=te.static_len=0,te.sym_next=te.matches=0},he=te=>{te.bi_valid>8?Dt(te,te.bi_buf):te.bi_valid>0&&(te.pending_buf[te.pending++]=te.bi_buf),te.bi_buf=0,te.bi_valid=0},Ye=(te,ye,le,Le)=>{const Ve=ye*2,nt=le*2;return te[Ve]<te[nt]||te[Ve]===te[nt]&&Le[ye]<=Le[le]},pt=(te,ye,le)=>{const Le=te.heap[le];let Ve=le<<1;for(;Ve<=te.heap_len&&(Ve<te.heap_len&&Ye(ye,te.heap[Ve+1],te.heap[Ve],te.depth)&&Ve++,!Ye(ye,Le,te.heap[Ve],te.depth));)te.heap[le]=te.heap[Ve],le=Ve,Ve<<=1;te.heap[le]=Le},zt=(te,ye,le)=>{let Le,Ve,nt=0,En,Xt;if(te.sym_next!==0)do Le=te.pending_buf[te.sym_buf+nt++]&255,Le+=(te.pending_buf[te.sym_buf+nt++]&255)<<8,Ve=te.pending_buf[te.sym_buf+nt++],Le===0?ln(te,Ve,ye):(En=Lt[Ve],ln(te,En+Oe+1,ye),Xt=et[En],Xt!==0&&(Ve-=Fn[En],un(te,Ve,Xt)),Le--,En=wn(Le),ln(te,En,le),Xt=ft[En],Xt!==0&&(Le-=hn[En],un(te,Le,Xt)));while(nt<te.sym_next);ln(te,Ge,ye)},ct=(te,ye)=>{const le=ye.dyn_tree,Le=ye.stat_desc.static_tree,Ve=ye.stat_desc.has_stree,nt=ye.stat_desc.elems;let En,Xt,Ur=-1,Pt;for(te.heap_len=0,te.heap_max=Ue,En=0;En<nt;En++)le[En*2]!==0?(te.heap[++te.heap_len]=Ur=En,te.depth[En]=0):le[En*2+1]=0;for(;te.heap_len<2;)Pt=te.heap[++te.heap_len]=Ur<2?++Ur:0,le[Pt*2]=1,te.depth[Pt]=0,te.opt_len--,Ve&&(te.static_len-=Le[Pt*2+1]);for(ye.max_code=Ur,En=te.heap_len>>1;En>=1;En--)pt(te,le,En);Pt=nt;do En=te.heap[1],te.heap[1]=te.heap[te.heap_len--],pt(te,le,1),Xt=te.heap[1],te.heap[--te.heap_max]=En,te.heap[--te.heap_max]=Xt,le[Pt*2]=le[En*2]+le[Xt*2],te.depth[Pt]=(te.depth[En]>=te.depth[Xt]?te.depth[En]:te.depth[Xt])+1,le[En*2+1]=le[Xt*2+1]=Pt,te.heap[1]=Pt++,pt(te,le,1);while(te.heap_len>=2);te.heap[--te.heap_max]=te.heap[1],ee(te,ye),b(le,Ur,te.bl_count)},bt=(te,ye,le)=>{let Le,Ve=-1,nt,En=ye[0*2+1],Xt=0,Ur=7,Pt=4;for(En===0&&(Ur=138,Pt=3),ye[(le+1)*2+1]=65535,Le=0;Le<=le;Le++)nt=En,En=ye[(Le+1)*2+1],!(++Xt<Ur&&nt===En)&&(Xt<Pt?te.bl_tree[nt*2]+=Xt:nt!==0?(nt!==Ve&&te.bl_tree[nt*2]++,te.bl_tree[lt*2]++):Xt<=10?te.bl_tree[je*2]++:te.bl_tree[ht*2]++,Xt=0,Ve=nt,En===0?(Ur=138,Pt=3):nt===En?(Ur=6,Pt=3):(Ur=7,Pt=4))},Et=(te,ye,le)=>{let Le,Ve=-1,nt,En=ye[0*2+1],Xt=0,Ur=7,Pt=4;for(En===0&&(Ur=138,Pt=3),Le=0;Le<=le;Le++)if(nt=En,En=ye[(Le+1)*2+1],!(++Xt<Ur&&nt===En)){if(Xt<Pt)do ln(te,nt,te.bl_tree);while(--Xt!==0);else nt!==0?(nt!==Ve&&(ln(te,nt,te.bl_tree),Xt--),ln(te,lt,te.bl_tree),un(te,Xt-3,2)):Xt<=10?(ln(te,je,te.bl_tree),un(te,Xt-3,3)):(ln(te,ht,te.bl_tree),un(te,Xt-11,7));Xt=0,Ve=nt,En===0?(Ur=138,Pt=3):nt===En?(Ur=6,Pt=3):(Ur=7,Pt=4)}},en=te=>{let ye;for(bt(te,te.dyn_ltree,te.l_desc.max_code),bt(te,te.dyn_dtree,te.d_desc.max_code),ct(te,te.bl_desc),ye=Be-1;ye>=3&&te.bl_tree[Kt[ye]*2+1]===0;ye--);return te.opt_len+=3*(ye+1)+5+5+4,ye},Dn=(te,ye,le,Le)=>{let Ve;for(un(te,ye-257,5),un(te,le-1,5),un(te,Le-4,4),Ve=0;Ve<Le;Ve++)un(te,te.bl_tree[Kt[Ve]*2+1],3);Et(te,te.dyn_ltree,ye-1),Et(te,te.dyn_dtree,le-1)},Mt=te=>{let ye=4093624447,le;for(le=0;le<=31;le++,ye>>>=1)if(ye&1&&te.dyn_ltree[le*2]!==0)return Ie;if(te.dyn_ltree[9*2]!==0||te.dyn_ltree[10*2]!==0||te.dyn_ltree[13*2]!==0)return ve;for(le=32;le<Oe;le++)if(te.dyn_ltree[le*2]!==0)return ve;return Ie};let tt=!1;const on=te=>{tt||(ae(),tt=!0),te.l_desc=new yt(te.dyn_ltree,Jt),te.d_desc=new yt(te.dyn_dtree,Yt),te.bl_desc=new yt(te.bl_tree,jn),te.bi_buf=0,te.bi_valid=0,ie(te)},jt=(te,ye,le,Le)=>{un(te,(ot<<1)+(Le?1:0),3),he(te),Dt(te,le),Dt(te,~le),le&&te.pending_buf.set(te.window.subarray(ye,ye+le),te.pending),te.pending+=le},qt=te=>{un(te,Xe<<1,3),ln(te,Ge,$t),ue(te)},wt=(te,ye,le,Le)=>{let Ve,nt,En=0;te.level>0?(te.strm.data_type===ut&&(te.strm.data_type=Mt(te)),ct(te,te.l_desc),ct(te,te.d_desc),En=en(te),Ve=te.opt_len+3+7>>>3,nt=te.static_len+3+7>>>3,nt<=Ve&&(Ve=nt)):Ve=nt=le+5,le+4<=Ve&&ye!==-1?jt(te,ye,le,Le):te.strategy===Fe||nt===Ve?(un(te,(Xe<<1)+(Le?1:0),3),zt(te,$t,Re)):(un(te,(Je<<1)+(Le?1:0),3),Dn(te,te.l_desc.max_code+1,te.d_desc.max_code+1,En+1),zt(te,te.dyn_ltree,te.dyn_dtree)),ie(te),Le&&he(te)},Rn=(te,ye,le)=>(te.pending_buf[te.sym_buf+te.sym_next++]=ye,te.pending_buf[te.sym_buf+te.sym_next++]=ye>>8,te.pending_buf[te.sym_buf+te.sym_next++]=le,ye===0?te.dyn_ltree[le*2]++:(te.matches++,ye--,te.dyn_ltree[(Lt[le]+Oe+1)*2]++,te.dyn_dtree[wn(ye)*2]++),te.sym_next===te.sym_end);var Wt=on,Cn=jt,Mn=wt,sr=Rn,vn=qt,cr={_tr_init:Wt,_tr_stored_block:Cn,_tr_flush_block:Mn,_tr_tally:sr,_tr_align:vn},mr=(te,ye,le,Le)=>{let Ve=te&65535|0,nt=te>>>16&65535|0,En=0;for(;le!==0;){En=le>2e3?2e3:le,le-=En;do Ve=Ve+ye[Le++]|0,nt=nt+Ve|0;while(--En);Ve%=65521,nt%=65521}return Ve|nt<<16|0};const $n=()=>{let te,ye=[];for(var le=0;le<256;le++){te=le;for(var Le=0;Le<8;Le++)te=te&1?3988292384^te>>>1:te>>>1;ye[le]=te}return ye},Xr=new Uint32Array($n());var Er=(te,ye,le,Le)=>{const Ve=Xr,nt=Le+le;te^=-1;for(let En=Le;En<nt;En++)te=te>>>8^Ve[(te^ye[En])&255];return te^-1},Ar={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Qr={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Vn,_tr_stored_block:qn,_tr_flush_block:Yn,_tr_tally:pn,_tr_align:Wn}=cr,{Z_NO_FLUSH:cn,Z_PARTIAL_FLUSH:Sn,Z_FULL_FLUSH:fr,Z_FINISH:ir,Z_BLOCK:lr,Z_OK:xr,Z_STREAM_END:Wr,Z_STREAM_ERROR:Dr,Z_DATA_ERROR:Fr,Z_BUF_ERROR:Rr,Z_DEFAULT_COMPRESSION:Xn,Z_FILTERED:yn,Z_HUFFMAN_ONLY:rt,Z_RLE:Sr,Z_FIXED:Kr,Z_DEFAULT_STRATEGY:_t,Z_UNKNOWN:St,Z_DEFLATED:Jn}=Qr,Hn=9,Ot=15,kn=8,er=256+1+29,ur=30,wr=19,It=2*er+1,an=15,mt=3,dn=258,Tn=dn+mt+1,Br=32,_r=42,Or=57,yr=69,kr=73,ii=91,jr=103,hi=113,gi=666,oi=1,vi=2,Ne=3,_e=4,it=3,gt=(te,ye)=>(te.msg=Ar[ye],ye),Vt=te=>te*2-(te>4?9:0),Nt=te=>{let ye=te.length;for(;--ye>=0;)te[ye]=0},Qn=te=>{let ye,le,Le,Ve=te.w_size;ye=te.hash_size,Le=ye;do le=te.head[--Le],te.head[Le]=le>=Ve?le-Ve:0;while(--ye);ye=Ve,Le=ye;do le=te.prev[--Le],te.prev[Le]=le>=Ve?le-Ve:0;while(--ye)};let Zn=(te,ye,le)=>(ye<<te.hash_shift^le)&te.hash_mask;const Gn=te=>{const ye=te.state;let le=ye.pending;le>te.avail_out&&(le=te.avail_out),le!==0&&(te.output.set(ye.pending_buf.subarray(ye.pending_out,ye.pending_out+le),te.next_out),te.next_out+=le,ye.pending_out+=le,te.total_out+=le,te.avail_out-=le,ye.pending-=le,ye.pending===0&&(ye.pending_out=0))},Kn=(te,ye)=>{Yn(te,te.block_start>=0?te.block_start:-1,te.strstart-te.block_start,ye),te.block_start=te.strstart,Gn(te.strm)},zn=(te,ye)=>{te.pending_buf[te.pending++]=ye},st=(te,ye)=>{te.pending_buf[te.pending++]=ye>>>8&255,te.pending_buf[te.pending++]=ye&255},Rt=(te,ye,le,Le)=>{let Ve=te.avail_in;return Ve>Le&&(Ve=Le),Ve===0?0:(te.avail_in-=Ve,ye.set(te.input.subarray(te.next_in,te.next_in+Ve),le),te.state.wrap===1?te.adler=mr(te.adler,ye,Ve,le):te.state.wrap===2&&(te.adler=Er(te.adler,ye,Ve,le)),te.next_in+=Ve,te.total_in+=Ve,Ve)},kt=(te,ye)=>{let le=te.max_chain_length,Le=te.strstart,Ve,nt,En=te.prev_length,Xt=te.nice_match;const Ur=te.strstart>te.w_size-Tn?te.strstart-(te.w_size-Tn):0,Pt=te.window,_n=te.w_mask,li=te.prev,Nr=te.strstart+dn;let vr=Pt[Le+En-1],xi=Pt[Le+En];te.prev_length>=te.good_match&&(le>>=2),Xt>te.lookahead&&(Xt=te.lookahead);do if(Ve=ye,!(Pt[Ve+En]!==xi||Pt[Ve+En-1]!==vr||Pt[Ve]!==Pt[Le]||Pt[++Ve]!==Pt[Le+1])){Le+=2,Ve++;do;while(Pt[++Le]===Pt[++Ve]&&Pt[++Le]===Pt[++Ve]&&Pt[++Le]===Pt[++Ve]&&Pt[++Le]===Pt[++Ve]&&Pt[++Le]===Pt[++Ve]&&Pt[++Le]===Pt[++Ve]&&Pt[++Le]===Pt[++Ve]&&Pt[++Le]===Pt[++Ve]&&Le<Nr);if(nt=dn-(Nr-Le),Le=Nr-dn,nt>En){if(te.match_start=ye,En=nt,nt>=Xt)break;vr=Pt[Le+En-1],xi=Pt[Le+En]}}while((ye=li[ye&_n])>Ur&&--le!==0);return En<=te.lookahead?En:te.lookahead},Ht=te=>{const ye=te.w_size;let le,Le,Ve;do{if(Le=te.window_size-te.lookahead-te.strstart,te.strstart>=ye+(ye-Tn)&&(te.window.set(te.window.subarray(ye,ye+ye-Le),0),te.match_start-=ye,te.strstart-=ye,te.block_start-=ye,te.insert>te.strstart&&(te.insert=te.strstart),Qn(te),Le+=ye),te.strm.avail_in===0)break;if(le=Rt(te.strm,te.window,te.strstart+te.lookahead,Le),te.lookahead+=le,te.lookahead+te.insert>=mt)for(Ve=te.strstart-te.insert,te.ins_h=te.window[Ve],te.ins_h=Zn(te,te.ins_h,te.window[Ve+1]);te.insert&&(te.ins_h=Zn(te,te.ins_h,te.window[Ve+mt-1]),te.prev[Ve&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=Ve,Ve++,te.insert--,!(te.lookahead+te.insert<mt)););}while(te.lookahead<Tn&&te.strm.avail_in!==0)},Zt=(te,ye)=>{let le=te.pending_buf_size-5>te.w_size?te.w_size:te.pending_buf_size-5,Le,Ve,nt,En=0,Xt=te.strm.avail_in;do{if(Le=65535,nt=te.bi_valid+42>>3,te.strm.avail_out<nt||(nt=te.strm.avail_out-nt,Ve=te.strstart-te.block_start,Le>Ve+te.strm.avail_in&&(Le=Ve+te.strm.avail_in),Le>nt&&(Le=nt),Le<le&&(Le===0&&ye!==ir||ye===cn||Le!==Ve+te.strm.avail_in)))break;En=ye===ir&&Le===Ve+te.strm.avail_in?1:0,qn(te,0,0,En),te.pending_buf[te.pending-4]=Le,te.pending_buf[te.pending-3]=Le>>8,te.pending_buf[te.pending-2]=~Le,te.pending_buf[te.pending-1]=~Le>>8,Gn(te.strm),Ve&&(Ve>Le&&(Ve=Le),te.strm.output.set(te.window.subarray(te.block_start,te.block_start+Ve),te.strm.next_out),te.strm.next_out+=Ve,te.strm.avail_out-=Ve,te.strm.total_out+=Ve,te.block_start+=Ve,Le-=Ve),Le&&(Rt(te.strm,te.strm.output,te.strm.next_out,Le),te.strm.next_out+=Le,te.strm.avail_out-=Le,te.strm.total_out+=Le)}while(En===0);return Xt-=te.strm.avail_in,Xt&&(Xt>=te.w_size?(te.matches=2,te.window.set(te.strm.input.subarray(te.strm.next_in-te.w_size,te.strm.next_in),0),te.strstart=te.w_size,te.insert=te.strstart):(te.window_size-te.strstart<=Xt&&(te.strstart-=te.w_size,te.window.set(te.window.subarray(te.w_size,te.w_size+te.strstart),0),te.matches<2&&te.matches++,te.insert>te.strstart&&(te.insert=te.strstart)),te.window.set(te.strm.input.subarray(te.strm.next_in-Xt,te.strm.next_in),te.strstart),te.strstart+=Xt,te.insert+=Xt>te.w_size-te.insert?te.w_size-te.insert:Xt),te.block_start=te.strstart),te.high_water<te.strstart&&(te.high_water=te.strstart),En?_e:ye!==cn&&ye!==ir&&te.strm.avail_in===0&&te.strstart===te.block_start?vi:(nt=te.window_size-te.strstart,te.strm.avail_in>nt&&te.block_start>=te.w_size&&(te.block_start-=te.w_size,te.strstart-=te.w_size,te.window.set(te.window.subarray(te.w_size,te.w_size+te.strstart),0),te.matches<2&&te.matches++,nt+=te.w_size,te.insert>te.strstart&&(te.insert=te.strstart)),nt>te.strm.avail_in&&(nt=te.strm.avail_in),nt&&(Rt(te.strm,te.window,te.strstart,nt),te.strstart+=nt,te.insert+=nt>te.w_size-te.insert?te.w_size-te.insert:nt),te.high_water<te.strstart&&(te.high_water=te.strstart),nt=te.bi_valid+42>>3,nt=te.pending_buf_size-nt>65535?65535:te.pending_buf_size-nt,le=nt>te.w_size?te.w_size:nt,Ve=te.strstart-te.block_start,(Ve>=le||(Ve||ye===ir)&&ye!==cn&&te.strm.avail_in===0&&Ve<=nt)&&(Le=Ve>nt?nt:Ve,En=ye===ir&&te.strm.avail_in===0&&Le===Ve?1:0,qn(te,te.block_start,Le,En),te.block_start+=Le,Gn(te.strm)),En?Ne:oi)},gn=(te,ye)=>{let le,Le;for(;;){if(te.lookahead<Tn){if(Ht(te),te.lookahead<Tn&&ye===cn)return oi;if(te.lookahead===0)break}if(le=0,te.lookahead>=mt&&(te.ins_h=Zn(te,te.ins_h,te.window[te.strstart+mt-1]),le=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),le!==0&&te.strstart-le<=te.w_size-Tn&&(te.match_length=kt(te,le)),te.match_length>=mt)if(Le=pn(te,te.strstart-te.match_start,te.match_length-mt),te.lookahead-=te.match_length,te.match_length<=te.max_lazy_match&&te.lookahead>=mt){te.match_length--;do te.strstart++,te.ins_h=Zn(te,te.ins_h,te.window[te.strstart+mt-1]),le=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart;while(--te.match_length!==0);te.strstart++}else te.strstart+=te.match_length,te.match_length=0,te.ins_h=te.window[te.strstart],te.ins_h=Zn(te,te.ins_h,te.window[te.strstart+1]);else Le=pn(te,0,te.window[te.strstart]),te.lookahead--,te.strstart++;if(Le&&(Kn(te,!1),te.strm.avail_out===0))return oi}return te.insert=te.strstart<mt-1?te.strstart:mt-1,ye===ir?(Kn(te,!0),te.strm.avail_out===0?Ne:_e):te.sym_next&&(Kn(te,!1),te.strm.avail_out===0)?oi:vi},On=(te,ye)=>{let le,Le,Ve;for(;;){if(te.lookahead<Tn){if(Ht(te),te.lookahead<Tn&&ye===cn)return oi;if(te.lookahead===0)break}if(le=0,te.lookahead>=mt&&(te.ins_h=Zn(te,te.ins_h,te.window[te.strstart+mt-1]),le=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),te.prev_length=te.match_length,te.prev_match=te.match_start,te.match_length=mt-1,le!==0&&te.prev_length<te.max_lazy_match&&te.strstart-le<=te.w_size-Tn&&(te.match_length=kt(te,le),te.match_length<=5&&(te.strategy===yn||te.match_length===mt&&te.strstart-te.match_start>4096)&&(te.match_length=mt-1)),te.prev_length>=mt&&te.match_length<=te.prev_length){Ve=te.strstart+te.lookahead-mt,Le=pn(te,te.strstart-1-te.prev_match,te.prev_length-mt),te.lookahead-=te.prev_length-1,te.prev_length-=2;do++te.strstart<=Ve&&(te.ins_h=Zn(te,te.ins_h,te.window[te.strstart+mt-1]),le=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart);while(--te.prev_length!==0);if(te.match_available=0,te.match_length=mt-1,te.strstart++,Le&&(Kn(te,!1),te.strm.avail_out===0))return oi}else if(te.match_available){if(Le=pn(te,0,te.window[te.strstart-1]),Le&&Kn(te,!1),te.strstart++,te.lookahead--,te.strm.avail_out===0)return oi}else te.match_available=1,te.strstart++,te.lookahead--}return te.match_available&&(Le=pn(te,0,te.window[te.strstart-1]),te.match_available=0),te.insert=te.strstart<mt-1?te.strstart:mt-1,ye===ir?(Kn(te,!0),te.strm.avail_out===0?Ne:_e):te.sym_next&&(Kn(te,!1),te.strm.avail_out===0)?oi:vi},$e=(te,ye)=>{let le,Le,Ve,nt;const En=te.window;for(;;){if(te.lookahead<=dn){if(Ht(te),te.lookahead<=dn&&ye===cn)return oi;if(te.lookahead===0)break}if(te.match_length=0,te.lookahead>=mt&&te.strstart>0&&(Ve=te.strstart-1,Le=En[Ve],Le===En[++Ve]&&Le===En[++Ve]&&Le===En[++Ve])){nt=te.strstart+dn;do;while(Le===En[++Ve]&&Le===En[++Ve]&&Le===En[++Ve]&&Le===En[++Ve]&&Le===En[++Ve]&&Le===En[++Ve]&&Le===En[++Ve]&&Le===En[++Ve]&&Ve<nt);te.match_length=dn-(nt-Ve),te.match_length>te.lookahead&&(te.match_length=te.lookahead)}if(te.match_length>=mt?(le=pn(te,1,te.match_length-mt),te.lookahead-=te.match_length,te.strstart+=te.match_length,te.match_length=0):(le=pn(te,0,te.window[te.strstart]),te.lookahead--,te.strstart++),le&&(Kn(te,!1),te.strm.avail_out===0))return oi}return te.insert=0,ye===ir?(Kn(te,!0),te.strm.avail_out===0?Ne:_e):te.sym_next&&(Kn(te,!1),te.strm.avail_out===0)?oi:vi},mn=(te,ye)=>{let le;for(;;){if(te.lookahead===0&&(Ht(te),te.lookahead===0)){if(ye===cn)return oi;break}if(te.match_length=0,le=pn(te,0,te.window[te.strstart]),te.lookahead--,te.strstart++,le&&(Kn(te,!1),te.strm.avail_out===0))return oi}return te.insert=0,ye===ir?(Kn(te,!0),te.strm.avail_out===0?Ne:_e):te.sym_next&&(Kn(te,!1),te.strm.avail_out===0)?oi:vi};function Ut(te,ye,le,Le,Ve){this.good_length=te,this.max_lazy=ye,this.nice_length=le,this.max_chain=Le,this.func=Ve}const tn=[new Ut(0,0,0,0,Zt),new Ut(4,4,8,4,gn),new Ut(4,5,16,8,gn),new Ut(4,6,32,32,gn),new Ut(4,4,16,16,On),new Ut(8,16,32,32,On),new Ut(8,16,128,128,On),new Ut(8,32,128,256,On),new Ut(32,128,258,1024,On),new Ut(32,258,258,4096,On)],sn=te=>{te.window_size=2*te.w_size,Nt(te.head),te.max_lazy_match=tn[te.level].max_lazy,te.good_match=tn[te.level].good_length,te.nice_match=tn[te.level].nice_length,te.max_chain_length=tn[te.level].max_chain,te.strstart=0,te.block_start=0,te.lookahead=0,te.insert=0,te.match_length=te.prev_length=mt-1,te.match_available=0,te.ins_h=0};function Gt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Jn,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(It*2),this.dyn_dtree=new Uint16Array((2*ur+1)*2),this.bl_tree=new Uint16Array((2*wr+1)*2),Nt(this.dyn_ltree),Nt(this.dyn_dtree),Nt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(an+1),this.heap=new Uint16Array(2*er+1),Nt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*er+1),Nt(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const nn=te=>{if(!te)return 1;const ye=te.state;return!ye||ye.strm!==te||ye.status!==_r&&ye.status!==Or&&ye.status!==yr&&ye.status!==kr&&ye.status!==ii&&ye.status!==jr&&ye.status!==hi&&ye.status!==gi?1:0},An=te=>{if(nn(te))return gt(te,Dr);te.total_in=te.total_out=0,te.data_type=St;const ye=te.state;return ye.pending=0,ye.pending_out=0,ye.wrap<0&&(ye.wrap=-ye.wrap),ye.status=ye.wrap===2?Or:ye.wrap?_r:hi,te.adler=ye.wrap===2?0:1,ye.last_flush=-2,Vn(ye),xr},Bt=te=>{const ye=An(te);return ye===xr&&sn(te.state),ye},rn=(te,ye)=>nn(te)||te.state.wrap!==2?Dr:(te.state.gzhead=ye,xr),Ln=(te,ye,le,Le,Ve,nt)=>{if(!te)return Dr;let En=1;if(ye===Xn&&(ye=6),Le<0?(En=0,Le=-Le):Le>15&&(En=2,Le-=16),Ve<1||Ve>Hn||le!==Jn||Le<8||Le>15||ye<0||ye>9||nt<0||nt>Kr||Le===8&&En!==1)return gt(te,Dr);Le===8&&(Le=9);const Xt=new Gt;return te.state=Xt,Xt.strm=te,Xt.status=_r,Xt.wrap=En,Xt.gzhead=null,Xt.w_bits=Le,Xt.w_size=1<<Xt.w_bits,Xt.w_mask=Xt.w_size-1,Xt.hash_bits=Ve+7,Xt.hash_size=1<<Xt.hash_bits,Xt.hash_mask=Xt.hash_size-1,Xt.hash_shift=~~((Xt.hash_bits+mt-1)/mt),Xt.window=new Uint8Array(Xt.w_size*2),Xt.head=new Uint16Array(Xt.hash_size),Xt.prev=new Uint16Array(Xt.w_size),Xt.lit_bufsize=1<<Ve+6,Xt.pending_buf_size=Xt.lit_bufsize*4,Xt.pending_buf=new Uint8Array(Xt.pending_buf_size),Xt.sym_buf=Xt.lit_bufsize,Xt.sym_end=(Xt.lit_bufsize-1)*3,Xt.level=ye,Xt.strategy=nt,Xt.method=le,Bt(te)},dr=(te,ye)=>Ln(te,ye,Jn,Ot,kn,_t),tr=(te,ye)=>{if(nn(te)||ye>lr||ye<0)return te?gt(te,Dr):Dr;const le=te.state;if(!te.output||te.avail_in!==0&&!te.input||le.status===gi&&ye!==ir)return gt(te,te.avail_out===0?Rr:Dr);const Le=le.last_flush;if(le.last_flush=ye,le.pending!==0){if(Gn(te),te.avail_out===0)return le.last_flush=-1,xr}else if(te.avail_in===0&&Vt(ye)<=Vt(Le)&&ye!==ir)return gt(te,Rr);if(le.status===gi&&te.avail_in!==0)return gt(te,Rr);if(le.status===_r&&le.wrap===0&&(le.status=hi),le.status===_r){let Ve=Jn+(le.w_bits-8<<4)<<8,nt=-1;if(le.strategy>=rt||le.level<2?nt=0:le.level<6?nt=1:le.level===6?nt=2:nt=3,Ve|=nt<<6,le.strstart!==0&&(Ve|=Br),Ve+=31-Ve%31,st(le,Ve),le.strstart!==0&&(st(le,te.adler>>>16),st(le,te.adler&65535)),te.adler=1,le.status=hi,Gn(te),le.pending!==0)return le.last_flush=-1,xr}if(le.status===Or){if(te.adler=0,zn(le,31),zn(le,139),zn(le,8),le.gzhead)zn(le,(le.gzhead.text?1:0)+(le.gzhead.hcrc?2:0)+(le.gzhead.extra?4:0)+(le.gzhead.name?8:0)+(le.gzhead.comment?16:0)),zn(le,le.gzhead.time&255),zn(le,le.gzhead.time>>8&255),zn(le,le.gzhead.time>>16&255),zn(le,le.gzhead.time>>24&255),zn(le,le.level===9?2:le.strategy>=rt||le.level<2?4:0),zn(le,le.gzhead.os&255),le.gzhead.extra&&le.gzhead.extra.length&&(zn(le,le.gzhead.extra.length&255),zn(le,le.gzhead.extra.length>>8&255)),le.gzhead.hcrc&&(te.adler=Er(te.adler,le.pending_buf,le.pending,0)),le.gzindex=0,le.status=yr;else if(zn(le,0),zn(le,0),zn(le,0),zn(le,0),zn(le,0),zn(le,le.level===9?2:le.strategy>=rt||le.level<2?4:0),zn(le,it),le.status=hi,Gn(te),le.pending!==0)return le.last_flush=-1,xr}if(le.status===yr){if(le.gzhead.extra){let Ve=le.pending,nt=(le.gzhead.extra.length&65535)-le.gzindex;for(;le.pending+nt>le.pending_buf_size;){let Xt=le.pending_buf_size-le.pending;if(le.pending_buf.set(le.gzhead.extra.subarray(le.gzindex,le.gzindex+Xt),le.pending),le.pending=le.pending_buf_size,le.gzhead.hcrc&&le.pending>Ve&&(te.adler=Er(te.adler,le.pending_buf,le.pending-Ve,Ve)),le.gzindex+=Xt,Gn(te),le.pending!==0)return le.last_flush=-1,xr;Ve=0,nt-=Xt}let En=new Uint8Array(le.gzhead.extra);le.pending_buf.set(En.subarray(le.gzindex,le.gzindex+nt),le.pending),le.pending+=nt,le.gzhead.hcrc&&le.pending>Ve&&(te.adler=Er(te.adler,le.pending_buf,le.pending-Ve,Ve)),le.gzindex=0}le.status=kr}if(le.status===kr){if(le.gzhead.name){let Ve=le.pending,nt;do{if(le.pending===le.pending_buf_size){if(le.gzhead.hcrc&&le.pending>Ve&&(te.adler=Er(te.adler,le.pending_buf,le.pending-Ve,Ve)),Gn(te),le.pending!==0)return le.last_flush=-1,xr;Ve=0}le.gzindex<le.gzhead.name.length?nt=le.gzhead.name.charCodeAt(le.gzindex++)&255:nt=0,zn(le,nt)}while(nt!==0);le.gzhead.hcrc&&le.pending>Ve&&(te.adler=Er(te.adler,le.pending_buf,le.pending-Ve,Ve)),le.gzindex=0}le.status=ii}if(le.status===ii){if(le.gzhead.comment){let Ve=le.pending,nt;do{if(le.pending===le.pending_buf_size){if(le.gzhead.hcrc&&le.pending>Ve&&(te.adler=Er(te.adler,le.pending_buf,le.pending-Ve,Ve)),Gn(te),le.pending!==0)return le.last_flush=-1,xr;Ve=0}le.gzindex<le.gzhead.comment.length?nt=le.gzhead.comment.charCodeAt(le.gzindex++)&255:nt=0,zn(le,nt)}while(nt!==0);le.gzhead.hcrc&&le.pending>Ve&&(te.adler=Er(te.adler,le.pending_buf,le.pending-Ve,Ve))}le.status=jr}if(le.status===jr){if(le.gzhead.hcrc){if(le.pending+2>le.pending_buf_size&&(Gn(te),le.pending!==0))return le.last_flush=-1,xr;zn(le,te.adler&255),zn(le,te.adler>>8&255),te.adler=0}if(le.status=hi,Gn(te),le.pending!==0)return le.last_flush=-1,xr}if(te.avail_in!==0||le.lookahead!==0||ye!==cn&&le.status!==gi){let Ve=le.level===0?Zt(le,ye):le.strategy===rt?mn(le,ye):le.strategy===Sr?$e(le,ye):tn[le.level].func(le,ye);if((Ve===Ne||Ve===_e)&&(le.status=gi),Ve===oi||Ve===Ne)return te.avail_out===0&&(le.last_flush=-1),xr;if(Ve===vi&&(ye===Sn?Wn(le):ye!==lr&&(qn(le,0,0,!1),ye===fr&&(Nt(le.head),le.lookahead===0&&(le.strstart=0,le.block_start=0,le.insert=0))),Gn(te),te.avail_out===0))return le.last_flush=-1,xr}return ye!==ir?xr:le.wrap<=0?Wr:(le.wrap===2?(zn(le,te.adler&255),zn(le,te.adler>>8&255),zn(le,te.adler>>16&255),zn(le,te.adler>>24&255),zn(le,te.total_in&255),zn(le,te.total_in>>8&255),zn(le,te.total_in>>16&255),zn(le,te.total_in>>24&255)):(st(le,te.adler>>>16),st(le,te.adler&65535)),Gn(te),le.wrap>0&&(le.wrap=-le.wrap),le.pending!==0?xr:Wr)},br=te=>{if(nn(te))return Dr;const ye=te.state.status;return te.state=null,ye===hi?gt(te,Fr):xr},hr=(te,ye)=>{let le=ye.length;if(nn(te))return Dr;const Le=te.state,Ve=Le.wrap;if(Ve===2||Ve===1&&Le.status!==_r||Le.lookahead)return Dr;if(Ve===1&&(te.adler=mr(te.adler,ye,le,0)),Le.wrap=0,le>=Le.w_size){Ve===0&&(Nt(Le.head),Le.strstart=0,Le.block_start=0,Le.insert=0);let Ur=new Uint8Array(Le.w_size);Ur.set(ye.subarray(le-Le.w_size,le),0),ye=Ur,le=Le.w_size}const nt=te.avail_in,En=te.next_in,Xt=te.input;for(te.avail_in=le,te.next_in=0,te.input=ye,Ht(Le);Le.lookahead>=mt;){let Ur=Le.strstart,Pt=Le.lookahead-(mt-1);do Le.ins_h=Zn(Le,Le.ins_h,Le.window[Ur+mt-1]),Le.prev[Ur&Le.w_mask]=Le.head[Le.ins_h],Le.head[Le.ins_h]=Ur,Ur++;while(--Pt);Le.strstart=Ur,Le.lookahead=mt-1,Ht(Le)}return Le.strstart+=Le.lookahead,Le.block_start=Le.strstart,Le.insert=Le.lookahead,Le.lookahead=0,Le.match_length=Le.prev_length=mt-1,Le.match_available=0,te.next_in=En,te.input=Xt,te.avail_in=nt,Le.wrap=Ve,xr};var Tr=dr,Hr=Ln,fi=Bt,Jr=An,Ai=rn,si=tr,ti=br,ei=hr,$r="pako deflate (from Nodeca project)",Lr={deflateInit:Tr,deflateInit2:Hr,deflateReset:fi,deflateResetKeep:Jr,deflateSetHeader:Ai,deflate:si,deflateEnd:ti,deflateSetDictionary:ei,deflateInfo:$r};const qr=(te,ye)=>Object.prototype.hasOwnProperty.call(te,ye);var Zr=function(te){const ye=Array.prototype.slice.call(arguments,1);for(;ye.length;){const le=ye.shift();if(le){if(typeof le!="object")throw new TypeError(le+"must be non-object");for(const Le in le)qr(le,Le)&&(te[Le]=le[Le])}}return te},bi=te=>{let ye=0;for(let Le=0,Ve=te.length;Le<Ve;Le++)ye+=te[Le].length;const le=new Uint8Array(ye);for(let Le=0,Ve=0,nt=te.length;Le<nt;Le++){let En=te[Le];le.set(En,Ve),Ve+=En.length}return le},ui={assign:Zr,flattenChunks:bi};let Ci=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(te){Ci=!1}const Ti=new Uint8Array(256);for(let te=0;te<256;te++)Ti[te]=te>=252?6:te>=248?5:te>=240?4:te>=224?3:te>=192?2:1;Ti[254]=Ti[254]=1;var xA=te=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(te);let ye,le,Le,Ve,nt,En=te.length,Xt=0;for(Ve=0;Ve<En;Ve++)le=te.charCodeAt(Ve),(le&64512)===55296&&Ve+1<En&&(Le=te.charCodeAt(Ve+1),(Le&64512)===56320&&(le=65536+(le-55296<<10)+(Le-56320),Ve++)),Xt+=le<128?1:le<2048?2:le<65536?3:4;for(ye=new Uint8Array(Xt),nt=0,Ve=0;nt<Xt;Ve++)le=te.charCodeAt(Ve),(le&64512)===55296&&Ve+1<En&&(Le=te.charCodeAt(Ve+1),(Le&64512)===56320&&(le=65536+(le-55296<<10)+(Le-56320),Ve++)),le<128?ye[nt++]=le:le<2048?(ye[nt++]=192|le>>>6,ye[nt++]=128|le&63):le<65536?(ye[nt++]=224|le>>>12,ye[nt++]=128|le>>>6&63,ye[nt++]=128|le&63):(ye[nt++]=240|le>>>18,ye[nt++]=128|le>>>12&63,ye[nt++]=128|le>>>6&63,ye[nt++]=128|le&63);return ye};const gA=(te,ye)=>{if(ye<65534&&te.subarray&&Ci)return String.fromCharCode.apply(null,te.length===ye?te:te.subarray(0,ye));let le="";for(let Le=0;Le<ye;Le++)le+=String.fromCharCode(te[Le]);return le};var la=(te,ye)=>{const le=ye||te.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(te.subarray(0,ye));let Le,Ve;const nt=new Array(le*2);for(Ve=0,Le=0;Le<le;){let En=te[Le++];if(En<128){nt[Ve++]=En;continue}let Xt=Ti[En];if(Xt>4){nt[Ve++]=65533,Le+=Xt-1;continue}for(En&=Xt===2?31:Xt===3?15:7;Xt>1&&Le<le;)En=En<<6|te[Le++]&63,Xt--;if(Xt>1){nt[Ve++]=65533;continue}En<65536?nt[Ve++]=En:(En-=65536,nt[Ve++]=55296|En>>10&1023,nt[Ve++]=56320|En&1023)}return gA(nt,Ve)},dA=(te,ye)=>{ye=ye||te.length,ye>te.length&&(ye=te.length);let le=ye-1;for(;le>=0&&(te[le]&192)===128;)le--;return le<0||le===0?ye:le+Ti[te[le]]>ye?le:ye},qi={string2buf:xA,buf2string:la,utf8border:dA};function tA(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var nA=tA;const EA=Object.prototype.toString,{Z_NO_FLUSH:hA,Z_SYNC_FLUSH:yA,Z_FULL_FLUSH:wA,Z_FINISH:ni,Z_OK:mi,Z_STREAM_END:Ei,Z_DEFAULT_COMPRESSION:Fi,Z_DEFAULT_STRATEGY:Ni,Z_DEFLATED:Xi}=Qr;function Mi(te){this.options=ui.assign({level:Fi,method:Xi,chunkSize:16384,windowBits:15,memLevel:8,strategy:Ni},te||{});let ye=this.options;ye.raw&&ye.windowBits>0?ye.windowBits=-ye.windowBits:ye.gzip&&ye.windowBits>0&&ye.windowBits<16&&(ye.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nA,this.strm.avail_out=0;let le=Lr.deflateInit2(this.strm,ye.level,ye.method,ye.windowBits,ye.memLevel,ye.strategy);if(le!==mi)throw new Error(Ar[le]);if(ye.header&&Lr.deflateSetHeader(this.strm,ye.header),ye.dictionary){let Le;if(typeof ye.dictionary=="string"?Le=qi.string2buf(ye.dictionary):EA.call(ye.dictionary)==="[object ArrayBuffer]"?Le=new Uint8Array(ye.dictionary):Le=ye.dictionary,le=Lr.deflateSetDictionary(this.strm,Le),le!==mi)throw new Error(Ar[le]);this._dict_set=!0}}Mi.prototype.push=function(te,ye){const le=this.strm,Le=this.options.chunkSize;let Ve,nt;if(this.ended)return!1;for(ye===~~ye?nt=ye:nt=ye===!0?ni:hA,typeof te=="string"?le.input=qi.string2buf(te):EA.call(te)==="[object ArrayBuffer]"?le.input=new Uint8Array(te):le.input=te,le.next_in=0,le.avail_in=le.input.length;;){if(le.avail_out===0&&(le.output=new Uint8Array(Le),le.next_out=0,le.avail_out=Le),(nt===yA||nt===wA)&&le.avail_out<=6){this.onData(le.output.subarray(0,le.next_out)),le.avail_out=0;continue}if(Ve=Lr.deflate(le,nt),Ve===Ei)return le.next_out>0&&this.onData(le.output.subarray(0,le.next_out)),Ve=Lr.deflateEnd(this.strm),this.onEnd(Ve),this.ended=!0,Ve===mi;if(le.avail_out===0){this.onData(le.output);continue}if(nt>0&&le.next_out>0){this.onData(le.output.subarray(0,le.next_out)),le.avail_out=0;continue}if(le.avail_in===0)break}return!0},Mi.prototype.onData=function(te){this.chunks.push(te)},Mi.prototype.onEnd=function(te){te===mi&&(this.result=ui.flattenChunks(this.chunks)),this.chunks=[],this.err=te,this.msg=this.strm.msg};function BA(te,ye){const le=new Mi(ye);if(le.push(te,!0),le.err)throw le.msg||Ar[le.err];return le.result}function CA(te,ye){return ye=ye||{},ye.raw=!0,BA(te,ye)}function Qi(te,ye){return ye=ye||{},ye.gzip=!0,BA(te,ye)}var pr=Mi,ai=BA,wi=CA,UA=Qi,ji=Qr,DA={Deflate:pr,deflate:ai,deflateRaw:wi,gzip:UA,constants:ji};const Li=16209,_a=16191;var fa=function(ye,le){let Le,Ve,nt,En,Xt,Ur,Pt,_n,li,Nr,vr,xi,bA,Pi,Ki,AA,Ri,Ir,Gi,TA,ki,FA,oA,Zi;const sA=ye.state;Le=ye.next_in,oA=ye.input,Ve=Le+(ye.avail_in-5),nt=ye.next_out,Zi=ye.output,En=nt-(le-ye.avail_out),Xt=nt+(ye.avail_out-257),Ur=sA.dmax,Pt=sA.wsize,_n=sA.whave,li=sA.wnext,Nr=sA.window,vr=sA.hold,xi=sA.bits,bA=sA.lencode,Pi=sA.distcode,Ki=(1<<sA.lenbits)-1,AA=(1<<sA.distbits)-1;e:do{xi<15&&(vr+=oA[Le++]<<xi,xi+=8,vr+=oA[Le++]<<xi,xi+=8),Ri=bA[vr&Ki];t:for(;;){if(Ir=Ri>>>24,vr>>>=Ir,xi-=Ir,Ir=Ri>>>16&255,Ir===0)Zi[nt++]=Ri&65535;else if(Ir&16){Gi=Ri&65535,Ir&=15,Ir&&(xi<Ir&&(vr+=oA[Le++]<<xi,xi+=8),Gi+=vr&(1<<Ir)-1,vr>>>=Ir,xi-=Ir),xi<15&&(vr+=oA[Le++]<<xi,xi+=8,vr+=oA[Le++]<<xi,xi+=8),Ri=Pi[vr&AA];n:for(;;){if(Ir=Ri>>>24,vr>>>=Ir,xi-=Ir,Ir=Ri>>>16&255,Ir&16){if(TA=Ri&65535,Ir&=15,xi<Ir&&(vr+=oA[Le++]<<xi,xi+=8,xi<Ir&&(vr+=oA[Le++]<<xi,xi+=8)),TA+=vr&(1<<Ir)-1,TA>Ur){ye.msg="invalid distance too far back",sA.mode=Li;break e}if(vr>>>=Ir,xi-=Ir,Ir=nt-En,TA>Ir){if(Ir=TA-Ir,Ir>_n&&sA.sane){ye.msg="invalid distance too far back",sA.mode=Li;break e}if(ki=0,FA=Nr,li===0){if(ki+=Pt-Ir,Ir<Gi){Gi-=Ir;do Zi[nt++]=Nr[ki++];while(--Ir);ki=nt-TA,FA=Zi}}else if(li<Ir){if(ki+=Pt+li-Ir,Ir-=li,Ir<Gi){Gi-=Ir;do Zi[nt++]=Nr[ki++];while(--Ir);if(ki=0,li<Gi){Ir=li,Gi-=Ir;do Zi[nt++]=Nr[ki++];while(--Ir);ki=nt-TA,FA=Zi}}}else if(ki+=li-Ir,Ir<Gi){Gi-=Ir;do Zi[nt++]=Nr[ki++];while(--Ir);ki=nt-TA,FA=Zi}for(;Gi>2;)Zi[nt++]=FA[ki++],Zi[nt++]=FA[ki++],Zi[nt++]=FA[ki++],Gi-=3;Gi&&(Zi[nt++]=FA[ki++],Gi>1&&(Zi[nt++]=FA[ki++]))}else{ki=nt-TA;do Zi[nt++]=Zi[ki++],Zi[nt++]=Zi[ki++],Zi[nt++]=Zi[ki++],Gi-=3;while(Gi>2);Gi&&(Zi[nt++]=Zi[ki++],Gi>1&&(Zi[nt++]=Zi[ki++]))}}else if(Ir&64){ye.msg="invalid distance code",sA.mode=Li;break e}else{Ri=Pi[(Ri&65535)+(vr&(1<<Ir)-1)];continue n}break}}else if(Ir&64)if(Ir&32){sA.mode=_a;break e}else{ye.msg="invalid literal/length code",sA.mode=Li;break e}else{Ri=bA[(Ri&65535)+(vr&(1<<Ir)-1)];continue t}break}}while(Le<Ve&&nt<Xt);Gi=xi>>3,Le-=Gi,xi-=Gi<<3,vr&=(1<<xi)-1,ye.next_in=Le,ye.next_out=nt,ye.avail_in=Le<Ve?5+(Ve-Le):5-(Le-Ve),ye.avail_out=nt<Xt?257+(Xt-nt):257-(nt-Xt),sA.hold=vr,sA.bits=xi};const KA=15,Vi=852,Oi=592,wa=0,Ba=1,ra=2,ZA=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Ka=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),ka=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),HA=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var vA=(te,ye,le,Le,Ve,nt,En,Xt)=>{const Ur=Xt.bits;let Pt=0,_n=0,li=0,Nr=0,vr=0,xi=0,bA=0,Pi=0,Ki=0,AA=0,Ri,Ir,Gi,TA,ki,FA=null,oA;const Zi=new Uint16Array(KA+1),sA=new Uint16Array(KA+1);let Po=null,vl,Ko,zs;for(Pt=0;Pt<=KA;Pt++)Zi[Pt]=0;for(_n=0;_n<Le;_n++)Zi[ye[le+_n]]++;for(vr=Ur,Nr=KA;Nr>=1&&Zi[Nr]===0;Nr--);if(vr>Nr&&(vr=Nr),Nr===0)return Ve[nt++]=1<<24|64<<16|0,Ve[nt++]=1<<24|64<<16|0,Xt.bits=1,0;for(li=1;li<Nr&&Zi[li]===0;li++);for(vr<li&&(vr=li),Pi=1,Pt=1;Pt<=KA;Pt++)if(Pi<<=1,Pi-=Zi[Pt],Pi<0)return-1;if(Pi>0&&(te===wa||Nr!==1))return-1;for(sA[1]=0,Pt=1;Pt<KA;Pt++)sA[Pt+1]=sA[Pt]+Zi[Pt];for(_n=0;_n<Le;_n++)ye[le+_n]!==0&&(En[sA[ye[le+_n]]++]=_n);if(te===wa?(FA=Po=En,oA=20):te===Ba?(FA=ZA,Po=Ka,oA=257):(FA=ka,Po=HA,oA=0),AA=0,_n=0,Pt=li,ki=nt,xi=vr,bA=0,Gi=-1,Ki=1<<vr,TA=Ki-1,te===Ba&&Ki>Vi||te===ra&&Ki>Oi)return 1;for(;;){vl=Pt-bA,En[_n]+1<oA?(Ko=0,zs=En[_n]):En[_n]>=oA?(Ko=Po[En[_n]-oA],zs=FA[En[_n]-oA]):(Ko=96,zs=0),Ri=1<<Pt-bA,Ir=1<<xi,li=Ir;do Ir-=Ri,Ve[ki+(AA>>bA)+Ir]=vl<<24|Ko<<16|zs|0;while(Ir!==0);for(Ri=1<<Pt-1;AA&Ri;)Ri>>=1;if(Ri!==0?(AA&=Ri-1,AA+=Ri):AA=0,_n++,--Zi[Pt]===0){if(Pt===Nr)break;Pt=ye[le+En[_n]]}if(Pt>vr&&(AA&TA)!==Gi){for(bA===0&&(bA=vr),ki+=li,xi=Pt-bA,Pi=1<<xi;xi+bA<Nr&&(Pi-=Zi[xi+bA],!(Pi<=0));)xi++,Pi<<=1;if(Ki+=1<<xi,te===Ba&&Ki>Vi||te===ra&&Ki>Oi)return 1;Gi=AA&TA,Ve[Gi]=vr<<24|xi<<16|ki-nt|0}}return AA!==0&&(Ve[ki+AA]=Pt-bA<<24|64<<16|0),Xt.bits=vr,0};const uA=0,ua=1,Ua=2,{Z_FINISH:Da,Z_BLOCK:JA,Z_TREES:fA,Z_OK:Hi,Z_STREAM_END:Di,Z_NEED_DICT:pA,Z_STREAM_ERROR:rA,Z_DATA_ERROR:OA,Z_MEM_ERROR:NA,Z_BUF_ERROR:Ia,Z_DEFLATED:Ca}=Qr,Qa=16180,iA=16181,qA=16182,ga=16183,La=16184,Va=16185,jo=16186,Do=16187,Za=16188,ja=16189,$A=16190,ea=16191,ca=16192,mo=16193,Io=16194,ls=16195,za=16196,us=16197,Yo=16198,Ta=16199,Qo=16200,Lo=16201,Xo=16202,Jo=16203,qo=16204,lo=16205,yo=16206,Ya=16207,to=16208,IA=16209,uo=16210,cs=16211,$o=852,es=592,no=15,fs=te=>(te>>>24&255)+(te>>>8&65280)+((te&65280)<<8)+((te&255)<<24);function Bo(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Xa=te=>{if(!te)return 1;const ye=te.state;return!ye||ye.strm!==te||ye.mode<Qa||ye.mode>cs?1:0},ro=te=>{if(Xa(te))return rA;const ye=te.state;return te.total_in=te.total_out=ye.total=0,te.msg="",ye.wrap&&(te.adler=ye.wrap&1),ye.mode=Qa,ye.last=0,ye.havedict=0,ye.flags=-1,ye.dmax=32768,ye.head=null,ye.hold=0,ye.bits=0,ye.lencode=ye.lendyn=new Int32Array($o),ye.distcode=ye.distdyn=new Int32Array(es),ye.sane=1,ye.back=-1,Hi},co=te=>{if(Xa(te))return rA;const ye=te.state;return ye.wsize=0,ye.whave=0,ye.wnext=0,ro(te)},io=(te,ye)=>{let le;if(Xa(te))return rA;const Le=te.state;return ye<0?(le=0,ye=-ye):(le=(ye>>4)+5,ye<48&&(ye&=15)),ye&&(ye<8||ye>15)?rA:(Le.window!==null&&Le.wbits!==ye&&(Le.window=null),Le.wrap=le,Le.wbits=ye,co(te))},zi=(te,ye)=>{if(!te)return rA;const le=new Bo;te.state=le,le.strm=te,le.window=null,le.mode=Qa;const Le=io(te,ye);return Le!==Hi&&(te.state=null),Le},Wi=te=>zi(te,no);let zA=!0,WA,ta;const fo=te=>{if(zA){WA=new Int32Array(512),ta=new Int32Array(32);let ye=0;for(;ye<144;)te.lens[ye++]=8;for(;ye<256;)te.lens[ye++]=9;for(;ye<280;)te.lens[ye++]=7;for(;ye<288;)te.lens[ye++]=8;for(vA(ua,te.lens,0,288,WA,0,te.work,{bits:9}),ye=0;ye<32;)te.lens[ye++]=5;vA(Ua,te.lens,0,32,ta,0,te.work,{bits:5}),zA=!1}te.lencode=WA,te.lenbits=9,te.distcode=ta,te.distbits=5},Ja=(te,ye,le,Le)=>{let Ve;const nt=te.state;return nt.window===null&&(nt.wsize=1<<nt.wbits,nt.wnext=0,nt.whave=0,nt.window=new Uint8Array(nt.wsize)),Le>=nt.wsize?(nt.window.set(ye.subarray(le-nt.wsize,le),0),nt.wnext=0,nt.whave=nt.wsize):(Ve=nt.wsize-nt.wnext,Ve>Le&&(Ve=Le),nt.window.set(ye.subarray(le-Le,le-Le+Ve),nt.wnext),Le-=Ve,Le?(nt.window.set(ye.subarray(le-Le,le),0),nt.wnext=Le,nt.whave=nt.wsize):(nt.wnext+=Ve,nt.wnext===nt.wsize&&(nt.wnext=0),nt.whave<nt.wsize&&(nt.whave+=Ve))),0},ho=(te,ye)=>{let le,Le,Ve,nt,En,Xt,Ur,Pt,_n,li,Nr,vr,xi,bA,Pi=0,Ki,AA,Ri,Ir,Gi,TA,ki,FA;const oA=new Uint8Array(4);let Zi,sA;const Po=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Xa(te)||!te.output||!te.input&&te.avail_in!==0)return rA;le=te.state,le.mode===ea&&(le.mode=ca),En=te.next_out,Ve=te.output,Ur=te.avail_out,nt=te.next_in,Le=te.input,Xt=te.avail_in,Pt=le.hold,_n=le.bits,li=Xt,Nr=Ur,FA=Hi;e:for(;;)switch(le.mode){case Qa:if(le.wrap===0){le.mode=ca;break}for(;_n<16;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(le.wrap&2&&Pt===35615){le.wbits===0&&(le.wbits=15),le.check=0,oA[0]=Pt&255,oA[1]=Pt>>>8&255,le.check=Er(le.check,oA,2,0),Pt=0,_n=0,le.mode=iA;break}if(le.head&&(le.head.done=!1),!(le.wrap&1)||(((Pt&255)<<8)+(Pt>>8))%31){te.msg="incorrect header check",le.mode=IA;break}if((Pt&15)!==Ca){te.msg="unknown compression method",le.mode=IA;break}if(Pt>>>=4,_n-=4,ki=(Pt&15)+8,le.wbits===0&&(le.wbits=ki),ki>15||ki>le.wbits){te.msg="invalid window size",le.mode=IA;break}le.dmax=1<<le.wbits,le.flags=0,te.adler=le.check=1,le.mode=Pt&512?ja:ea,Pt=0,_n=0;break;case iA:for(;_n<16;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(le.flags=Pt,(le.flags&255)!==Ca){te.msg="unknown compression method",le.mode=IA;break}if(le.flags&57344){te.msg="unknown header flags set",le.mode=IA;break}le.head&&(le.head.text=Pt>>8&1),le.flags&512&&le.wrap&4&&(oA[0]=Pt&255,oA[1]=Pt>>>8&255,le.check=Er(le.check,oA,2,0)),Pt=0,_n=0,le.mode=qA;case qA:for(;_n<32;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}le.head&&(le.head.time=Pt),le.flags&512&&le.wrap&4&&(oA[0]=Pt&255,oA[1]=Pt>>>8&255,oA[2]=Pt>>>16&255,oA[3]=Pt>>>24&255,le.check=Er(le.check,oA,4,0)),Pt=0,_n=0,le.mode=ga;case ga:for(;_n<16;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}le.head&&(le.head.xflags=Pt&255,le.head.os=Pt>>8),le.flags&512&&le.wrap&4&&(oA[0]=Pt&255,oA[1]=Pt>>>8&255,le.check=Er(le.check,oA,2,0)),Pt=0,_n=0,le.mode=La;case La:if(le.flags&1024){for(;_n<16;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}le.length=Pt,le.head&&(le.head.extra_len=Pt),le.flags&512&&le.wrap&4&&(oA[0]=Pt&255,oA[1]=Pt>>>8&255,le.check=Er(le.check,oA,2,0)),Pt=0,_n=0}else le.head&&(le.head.extra=null);le.mode=Va;case Va:if(le.flags&1024&&(vr=le.length,vr>Xt&&(vr=Xt),vr&&(le.head&&(ki=le.head.extra_len-le.length,le.head.extra||(le.head.extra=new Uint8Array(le.head.extra_len)),le.head.extra.set(Le.subarray(nt,nt+vr),ki)),le.flags&512&&le.wrap&4&&(le.check=Er(le.check,Le,vr,nt)),Xt-=vr,nt+=vr,le.length-=vr),le.length))break e;le.length=0,le.mode=jo;case jo:if(le.flags&2048){if(Xt===0)break e;vr=0;do ki=Le[nt+vr++],le.head&&ki&&le.length<65536&&(le.head.name+=String.fromCharCode(ki));while(ki&&vr<Xt);if(le.flags&512&&le.wrap&4&&(le.check=Er(le.check,Le,vr,nt)),Xt-=vr,nt+=vr,ki)break e}else le.head&&(le.head.name=null);le.length=0,le.mode=Do;case Do:if(le.flags&4096){if(Xt===0)break e;vr=0;do ki=Le[nt+vr++],le.head&&ki&&le.length<65536&&(le.head.comment+=String.fromCharCode(ki));while(ki&&vr<Xt);if(le.flags&512&&le.wrap&4&&(le.check=Er(le.check,Le,vr,nt)),Xt-=vr,nt+=vr,ki)break e}else le.head&&(le.head.comment=null);le.mode=Za;case Za:if(le.flags&512){for(;_n<16;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(le.wrap&4&&Pt!==(le.check&65535)){te.msg="header crc mismatch",le.mode=IA;break}Pt=0,_n=0}le.head&&(le.head.hcrc=le.flags>>9&1,le.head.done=!0),te.adler=le.check=0,le.mode=ea;break;case ja:for(;_n<32;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}te.adler=le.check=fs(Pt),Pt=0,_n=0,le.mode=$A;case $A:if(le.havedict===0)return te.next_out=En,te.avail_out=Ur,te.next_in=nt,te.avail_in=Xt,le.hold=Pt,le.bits=_n,pA;te.adler=le.check=1,le.mode=ea;case ea:if(ye===JA||ye===fA)break e;case ca:if(le.last){Pt>>>=_n&7,_n-=_n&7,le.mode=yo;break}for(;_n<3;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}switch(le.last=Pt&1,Pt>>>=1,_n-=1,Pt&3){case 0:le.mode=mo;break;case 1:if(fo(le),le.mode=Ta,ye===fA){Pt>>>=2,_n-=2;break e}break;case 2:le.mode=za;break;case 3:te.msg="invalid block type",le.mode=IA}Pt>>>=2,_n-=2;break;case mo:for(Pt>>>=_n&7,_n-=_n&7;_n<32;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if((Pt&65535)!==(Pt>>>16^65535)){te.msg="invalid stored block lengths",le.mode=IA;break}if(le.length=Pt&65535,Pt=0,_n=0,le.mode=Io,ye===fA)break e;case Io:le.mode=ls;case ls:if(vr=le.length,vr){if(vr>Xt&&(vr=Xt),vr>Ur&&(vr=Ur),vr===0)break e;Ve.set(Le.subarray(nt,nt+vr),En),Xt-=vr,nt+=vr,Ur-=vr,En+=vr,le.length-=vr;break}le.mode=ea;break;case za:for(;_n<14;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(le.nlen=(Pt&31)+257,Pt>>>=5,_n-=5,le.ndist=(Pt&31)+1,Pt>>>=5,_n-=5,le.ncode=(Pt&15)+4,Pt>>>=4,_n-=4,le.nlen>286||le.ndist>30){te.msg="too many length or distance symbols",le.mode=IA;break}le.have=0,le.mode=us;case us:for(;le.have<le.ncode;){for(;_n<3;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}le.lens[Po[le.have++]]=Pt&7,Pt>>>=3,_n-=3}for(;le.have<19;)le.lens[Po[le.have++]]=0;if(le.lencode=le.lendyn,le.lenbits=7,Zi={bits:le.lenbits},FA=vA(uA,le.lens,0,19,le.lencode,0,le.work,Zi),le.lenbits=Zi.bits,FA){te.msg="invalid code lengths set",le.mode=IA;break}le.have=0,le.mode=Yo;case Yo:for(;le.have<le.nlen+le.ndist;){for(;Pi=le.lencode[Pt&(1<<le.lenbits)-1],Ki=Pi>>>24,AA=Pi>>>16&255,Ri=Pi&65535,!(Ki<=_n);){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(Ri<16)Pt>>>=Ki,_n-=Ki,le.lens[le.have++]=Ri;else{if(Ri===16){for(sA=Ki+2;_n<sA;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(Pt>>>=Ki,_n-=Ki,le.have===0){te.msg="invalid bit length repeat",le.mode=IA;break}ki=le.lens[le.have-1],vr=3+(Pt&3),Pt>>>=2,_n-=2}else if(Ri===17){for(sA=Ki+3;_n<sA;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}Pt>>>=Ki,_n-=Ki,ki=0,vr=3+(Pt&7),Pt>>>=3,_n-=3}else{for(sA=Ki+7;_n<sA;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}Pt>>>=Ki,_n-=Ki,ki=0,vr=11+(Pt&127),Pt>>>=7,_n-=7}if(le.have+vr>le.nlen+le.ndist){te.msg="invalid bit length repeat",le.mode=IA;break}for(;vr--;)le.lens[le.have++]=ki}}if(le.mode===IA)break;if(le.lens[256]===0){te.msg="invalid code -- missing end-of-block",le.mode=IA;break}if(le.lenbits=9,Zi={bits:le.lenbits},FA=vA(ua,le.lens,0,le.nlen,le.lencode,0,le.work,Zi),le.lenbits=Zi.bits,FA){te.msg="invalid literal/lengths set",le.mode=IA;break}if(le.distbits=6,le.distcode=le.distdyn,Zi={bits:le.distbits},FA=vA(Ua,le.lens,le.nlen,le.ndist,le.distcode,0,le.work,Zi),le.distbits=Zi.bits,FA){te.msg="invalid distances set",le.mode=IA;break}if(le.mode=Ta,ye===fA)break e;case Ta:le.mode=Qo;case Qo:if(Xt>=6&&Ur>=258){te.next_out=En,te.avail_out=Ur,te.next_in=nt,te.avail_in=Xt,le.hold=Pt,le.bits=_n,fa(te,Nr),En=te.next_out,Ve=te.output,Ur=te.avail_out,nt=te.next_in,Le=te.input,Xt=te.avail_in,Pt=le.hold,_n=le.bits,le.mode===ea&&(le.back=-1);break}for(le.back=0;Pi=le.lencode[Pt&(1<<le.lenbits)-1],Ki=Pi>>>24,AA=Pi>>>16&255,Ri=Pi&65535,!(Ki<=_n);){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(AA&&!(AA&240)){for(Ir=Ki,Gi=AA,TA=Ri;Pi=le.lencode[TA+((Pt&(1<<Ir+Gi)-1)>>Ir)],Ki=Pi>>>24,AA=Pi>>>16&255,Ri=Pi&65535,!(Ir+Ki<=_n);){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}Pt>>>=Ir,_n-=Ir,le.back+=Ir}if(Pt>>>=Ki,_n-=Ki,le.back+=Ki,le.length=Ri,AA===0){le.mode=lo;break}if(AA&32){le.back=-1,le.mode=ea;break}if(AA&64){te.msg="invalid literal/length code",le.mode=IA;break}le.extra=AA&15,le.mode=Lo;case Lo:if(le.extra){for(sA=le.extra;_n<sA;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}le.length+=Pt&(1<<le.extra)-1,Pt>>>=le.extra,_n-=le.extra,le.back+=le.extra}le.was=le.length,le.mode=Xo;case Xo:for(;Pi=le.distcode[Pt&(1<<le.distbits)-1],Ki=Pi>>>24,AA=Pi>>>16&255,Ri=Pi&65535,!(Ki<=_n);){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(!(AA&240)){for(Ir=Ki,Gi=AA,TA=Ri;Pi=le.distcode[TA+((Pt&(1<<Ir+Gi)-1)>>Ir)],Ki=Pi>>>24,AA=Pi>>>16&255,Ri=Pi&65535,!(Ir+Ki<=_n);){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}Pt>>>=Ir,_n-=Ir,le.back+=Ir}if(Pt>>>=Ki,_n-=Ki,le.back+=Ki,AA&64){te.msg="invalid distance code",le.mode=IA;break}le.offset=Ri,le.extra=AA&15,le.mode=Jo;case Jo:if(le.extra){for(sA=le.extra;_n<sA;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}le.offset+=Pt&(1<<le.extra)-1,Pt>>>=le.extra,_n-=le.extra,le.back+=le.extra}if(le.offset>le.dmax){te.msg="invalid distance too far back",le.mode=IA;break}le.mode=qo;case qo:if(Ur===0)break e;if(vr=Nr-Ur,le.offset>vr){if(vr=le.offset-vr,vr>le.whave&&le.sane){te.msg="invalid distance too far back",le.mode=IA;break}vr>le.wnext?(vr-=le.wnext,xi=le.wsize-vr):xi=le.wnext-vr,vr>le.length&&(vr=le.length),bA=le.window}else bA=Ve,xi=En-le.offset,vr=le.length;vr>Ur&&(vr=Ur),Ur-=vr,le.length-=vr;do Ve[En++]=bA[xi++];while(--vr);le.length===0&&(le.mode=Qo);break;case lo:if(Ur===0)break e;Ve[En++]=le.length,Ur--,le.mode=Qo;break;case yo:if(le.wrap){for(;_n<32;){if(Xt===0)break e;Xt--,Pt|=Le[nt++]<<_n,_n+=8}if(Nr-=Ur,te.total_out+=Nr,le.total+=Nr,le.wrap&4&&Nr&&(te.adler=le.check=le.flags?Er(le.check,Ve,Nr,En-Nr):mr(le.check,Ve,Nr,En-Nr)),Nr=Ur,le.wrap&4&&(le.flags?Pt:fs(Pt))!==le.check){te.msg="incorrect data check",le.mode=IA;break}Pt=0,_n=0}le.mode=Ya;case Ya:if(le.wrap&&le.flags){for(;_n<32;){if(Xt===0)break e;Xt--,Pt+=Le[nt++]<<_n,_n+=8}if(le.wrap&4&&Pt!==(le.total&4294967295)){te.msg="incorrect length check",le.mode=IA;break}Pt=0,_n=0}le.mode=to;case to:FA=Di;break e;case IA:FA=OA;break e;case uo:return NA;case cs:default:return rA}return te.next_out=En,te.avail_out=Ur,te.next_in=nt,te.avail_in=Xt,le.hold=Pt,le.bits=_n,(le.wsize||Nr!==te.avail_out&&le.mode<IA&&(le.mode<yo||ye!==Da))&&Ja(te,te.output,te.next_out,Nr-te.avail_out),li-=te.avail_in,Nr-=te.avail_out,te.total_in+=li,te.total_out+=Nr,le.total+=Nr,le.wrap&4&&Nr&&(te.adler=le.check=le.flags?Er(le.check,Ve,Nr,te.next_out-Nr):mr(le.check,Ve,Nr,te.next_out-Nr)),te.data_type=le.bits+(le.last?64:0)+(le.mode===ea?128:0)+(le.mode===Ta||le.mode===Io?256:0),(li===0&&Nr===0||ye===Da)&&FA===Hi&&(FA=Ia),FA},Na=te=>{if(Xa(te))return rA;let ye=te.state;return ye.window&&(ye.window=null),te.state=null,Hi},qa=(te,ye)=>{if(Xa(te))return rA;const le=te.state;return le.wrap&2?(le.head=ye,ye.done=!1,Hi):rA},eu=(te,ye)=>{const le=ye.length;let Le,Ve,nt;return Xa(te)||(Le=te.state,Le.wrap!==0&&Le.mode!==$A)?rA:Le.mode===$A&&(Ve=1,Ve=mr(Ve,ye,le,0),Ve!==Le.check)?OA:(nt=Ja(te,ye,le,le),nt?(Le.mode=uo,NA):(Le.havedict=1,Hi))};var tu=co,nu=io,ru=ro,Ds=Wi,iu=zi,Ma=ho,Aa=Na,va=qa,oa=eu,To="pako inflate (from Nodeca project)",Wa={inflateReset:tu,inflateReset2:nu,inflateResetKeep:ru,inflateInit:Ds,inflateInit2:iu,inflate:Ma,inflateEnd:Aa,inflateGetHeader:va,inflateSetDictionary:oa,inflateInfo:To};function Is(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Au=Is;const Ul=Object.prototype.toString,{Z_NO_FLUSH:au,Z_FINISH:Js,Z_OK:ts,Z_STREAM_END:Co,Z_NEED_DICT:qs,Z_STREAM_ERROR:$s,Z_DATA_ERROR:Qs,Z_MEM_ERROR:Dl}=Qr;function ns(te){this.options=ui.assign({chunkSize:1024*64,windowBits:15,to:""},te||{});const ye=this.options;ye.raw&&ye.windowBits>=0&&ye.windowBits<16&&(ye.windowBits=-ye.windowBits,ye.windowBits===0&&(ye.windowBits=-15)),ye.windowBits>=0&&ye.windowBits<16&&!(te&&te.windowBits)&&(ye.windowBits+=32),ye.windowBits>15&&ye.windowBits<48&&(ye.windowBits&15||(ye.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new nA,this.strm.avail_out=0;let le=Wa.inflateInit2(this.strm,ye.windowBits);if(le!==ts)throw new Error(Ar[le]);if(this.header=new Au,Wa.inflateGetHeader(this.strm,this.header),ye.dictionary&&(typeof ye.dictionary=="string"?ye.dictionary=qi.string2buf(ye.dictionary):Ul.call(ye.dictionary)==="[object ArrayBuffer]"&&(ye.dictionary=new Uint8Array(ye.dictionary)),ye.raw&&(le=Wa.inflateSetDictionary(this.strm,ye.dictionary),le!==ts)))throw new Error(Ar[le])}ns.prototype.push=function(te,ye){const le=this.strm,Le=this.options.chunkSize,Ve=this.options.dictionary;let nt,En,Xt;if(this.ended)return!1;for(ye===~~ye?En=ye:En=ye===!0?Js:au,Ul.call(te)==="[object ArrayBuffer]"?le.input=new Uint8Array(te):le.input=te,le.next_in=0,le.avail_in=le.input.length;;){for(le.avail_out===0&&(le.output=new Uint8Array(Le),le.next_out=0,le.avail_out=Le),nt=Wa.inflate(le,En),nt===qs&&Ve&&(nt=Wa.inflateSetDictionary(le,Ve),nt===ts?nt=Wa.inflate(le,En):nt===Qs&&(nt=qs));le.avail_in>0&&nt===Co&&le.state.wrap>0&&te[le.next_in]!==0;)Wa.inflateReset(le),nt=Wa.inflate(le,En);switch(nt){case $s:case Qs:case qs:case Dl:return this.onEnd(nt),this.ended=!0,!1}if(Xt=le.avail_out,le.next_out&&(le.avail_out===0||nt===Co))if(this.options.to==="string"){let Ur=qi.utf8border(le.output,le.next_out),Pt=le.next_out-Ur,_n=qi.buf2string(le.output,Ur);le.next_out=Pt,le.avail_out=Le-Pt,Pt&&le.output.set(le.output.subarray(Ur,Ur+Pt),0),this.onData(_n)}else this.onData(le.output.length===le.next_out?le.output:le.output.subarray(0,le.next_out));if(!(nt===ts&&Xt===0)){if(nt===Co)return nt=Wa.inflateEnd(this.strm),this.onEnd(nt),this.ended=!0,!0;if(le.avail_in===0)break}}return!0},ns.prototype.onData=function(te){this.chunks.push(te)},ns.prototype.onEnd=function(te){te===ts&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ui.flattenChunks(this.chunks)),this.chunks=[],this.err=te,this.msg=this.strm.msg};function ds(te,ye){const le=new ns(ye);if(le.push(te),le.err)throw le.msg||Ar[le.err];return le.result}function Il(te,ye){return ye=ye||{},ye.raw=!0,ds(te,ye)}var hs=ns,ou=ds,Ls=Il,Ra=ds,Ql=Qr,Ll={Inflate:hs,inflate:ou,inflateRaw:Ls,ungzip:Ra,constants:Ql};const{Deflate:Tl,deflate:Oa,deflateRaw:mA,gzip:xa}=DA,{Inflate:xo,inflate:Eo,inflateRaw:el,ungzip:tl}=Ll;var Ml=Tl,su=Oa,nl=mA,ps=xa,Ts=xo,Ms=Eo,bo=el,aa=tl,Hl=Qr,wu={Deflate:Ml,deflate:su,deflateRaw:nl,gzip:ps,Inflate:Ts,inflate:Ms,inflateRaw:bo,ungzip:aa,constants:Hl};const gs=[];for(let te=0;te<256;te++){let ye=te;for(let le=0;le<8;le++)ye&1?ye=3988292384^ye>>>1:ye=ye>>>1;gs[te]=ye}const Hs=4294967295;function Nl(te,ye,le){let Le=te;for(let Ve=0;Ve<le;Ve++)Le=gs[(Le^ye[Ve])&255]^Le>>>8;return Le}function rl(te,ye){return(Nl(Hs,te,ye)^Hs)>>>0}function il(te,ye,le){const Le=te.readUint32(),Ve=rl(new Uint8Array(te.buffer,te.byteOffset+te.offset-ye-4,ye),ye);if(Ve!==Le)throw new Error(`CRC mismatch for chunk ${le}. Expected ${Le}, found ${Ve}`)}function Bu(te,ye){te.writeUint32(rl(new Uint8Array(te.buffer,te.byteOffset+te.offset-ye,ye),ye))}function Rl(te,ye,le){for(let Le=0;Le<le;Le++)ye[Le]=te[Le]}function vs(te,ye,le,Le){let Ve=0;for(;Ve<Le;Ve++)ye[Ve]=te[Ve];for(;Ve<le;Ve++)ye[Ve]=te[Ve]+ye[Ve-Le]&255}function Al(te,ye,le,Le){let Ve=0;if(le.length===0)for(;Ve<Le;Ve++)ye[Ve]=te[Ve];else for(;Ve<Le;Ve++)ye[Ve]=te[Ve]+le[Ve]&255}function Ol(te,ye,le,Le,Ve){let nt=0;if(le.length===0){for(;nt<Ve;nt++)ye[nt]=te[nt];for(;nt<Le;nt++)ye[nt]=te[nt]+(ye[nt-Ve]>>1)&255}else{for(;nt<Ve;nt++)ye[nt]=te[nt]+(le[nt]>>1)&255;for(;nt<Le;nt++)ye[nt]=te[nt]+(ye[nt-Ve]+le[nt]>>1)&255}}function al(te,ye,le,Le,Ve){let nt=0;if(le.length===0){for(;nt<Ve;nt++)ye[nt]=te[nt];for(;nt<Le;nt++)ye[nt]=te[nt]+ye[nt-Ve]&255}else{for(;nt<Ve;nt++)ye[nt]=te[nt]+le[nt]&255;for(;nt<Le;nt++)ye[nt]=te[nt]+di(ye[nt-Ve],le[nt],le[nt-Ve])&255}}function di(te,ye,le){const Le=te+ye-le,Ve=Math.abs(Le-te),nt=Math.abs(Le-ye),En=Math.abs(Le-le);return Ve<=nt&&Ve<=En?te:nt<=En?ye:le}function rs(te,ye,le,Le,Ve,nt){switch(te){case 0:Rl(ye,le,Ve);break;case 1:vs(ye,le,Ve,nt);break;case 2:Al(ye,le,Le,Ve);break;case 3:Ol(ye,le,Le,Ve,nt);break;case 4:al(ye,le,Le,Ve,nt);break;default:throw new Error(`Unsupported filter: ${te}`)}}const ol=new Uint16Array([255]),$a=new Uint8Array(ol.buffer)[0]===255;function sl(te){const{data:ye,width:le,height:Le,channels:Ve,depth:nt}=te,En=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],Xt=Math.ceil(nt/8)*Ve,Ur=new Uint8Array(Le*le*Xt);let Pt=0;for(let _n=0;_n<7;_n++){const li=En[_n],Nr=Math.ceil((le-li.x)/li.xStep),vr=Math.ceil((Le-li.y)/li.yStep);if(Nr<=0||vr<=0)continue;const xi=Nr*Xt,bA=new Uint8Array(xi);for(let Pi=0;Pi<vr;Pi++){const Ki=ye[Pt++],AA=ye.subarray(Pt,Pt+xi);Pt+=xi;const Ri=new Uint8Array(xi);rs(Ki,AA,Ri,bA,xi,Xt),bA.set(Ri);for(let Ir=0;Ir<Nr;Ir++){const Gi=li.x+Ir*li.xStep,TA=li.y+Pi*li.yStep;if(!(Gi>=le||TA>=Le))for(let ki=0;ki<Xt;ki++)Ur[(TA*le+Gi)*Xt+ki]=Ri[Ir*Xt+ki]}}}if(nt===16){const _n=new Uint16Array(Ur.buffer);if($a)for(let li=0;li<_n.length;li++)_n[li]=ll(_n[li]);return _n}else return Ur}function ll(te){return(te&255)<<8|te>>8&255}const ys=new Uint16Array([255]),da=new Uint8Array(ys.buffer)[0]===255,Rs=new Uint8Array(0);function ul(te){const{data:ye,width:le,height:Le,channels:Ve,depth:nt}=te,En=Math.ceil(nt/8)*Ve,Xt=Math.ceil(nt/8*Ve*le),Ur=new Uint8Array(Le*Xt);let Pt=Rs,_n=0,li,Nr;for(let vr=0;vr<Le;vr++){switch(li=ye.subarray(_n+1,_n+1+Xt),Nr=Ur.subarray(vr*Xt,(vr+1)*Xt),ye[_n]){case 0:Rl(li,Nr,Xt);break;case 1:vs(li,Nr,Xt,En);break;case 2:Al(li,Nr,Pt,Xt);break;case 3:Ol(li,Nr,Pt,Xt,En);break;case 4:al(li,Nr,Pt,Xt,En);break;default:throw new Error(`Unsupported filter: ${ye[_n]}`)}Pt=Nr,_n+=Xt+1}if(nt===16){const vr=new Uint16Array(Ur.buffer);if(da)for(let xi=0;xi<vr.length;xi++)vr[xi]=Fo(vr[xi]);return vr}else return Ur}function Fo(te){return(te&255)<<8|te>>8&255}const So=Uint8Array.of(137,80,78,71,13,10,26,10);function Mo(te){te.writeBytes(So)}function ws(te){if(!cl(te.readBytes(So.length)))throw new Error("wrong PNG signature")}function cl(te){if(te.length<So.length)return!1;for(let ye=0;ye<So.length;ye++)if(te[ye]!==So[ye])return!1;return!0}const fl="tEXt",Bs=0,Ho=new TextDecoder("latin1");function dl(te){if(hl(te),te.length===0||te.length>79)throw new Error("keyword length must be between 1 and 79")}const Os=/^[\u0000-\u00FF]*$/;function hl(te){if(!Os.test(te))throw new Error("invalid latin1 text")}function Cs(te,ye,le){const Le=No(ye);te[Le]=Pl(ye,le-Le.length-1)}function Cu(te,ye,le){dl(ye),hl(le);const Le=ye.length+1+le.length;te.writeUint32(Le),te.writeChars(fl),te.writeChars(ye),te.writeByte(Bs),te.writeChars(le),writeCrc(te,Le+4)}function No(te){for(te.mark();te.readByte()!==Bs;);const ye=te.offset;te.reset();const le=Ho.decode(te.readBytes(ye-te.offset-1));return te.skip(1),dl(le),le}function Pl(te,ye){return Ho.decode(te.readBytes(ye))}const Ea={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Ps={UNKNOWN:-1,DEFLATE:0},is={UNKNOWN:-1,ADAPTIVE:0},Ro={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},po={NONE:0,BACKGROUND:1,PREVIOUS:2},Oo={SOURCE:0,OVER:1};class xs extends ze{constructor(le,Le={}){super(le);kA(this,"_checkCrc");kA(this,"_inflator");kA(this,"_png");kA(this,"_apng");kA(this,"_end");kA(this,"_hasPalette");kA(this,"_palette");kA(this,"_hasTransparency");kA(this,"_transparency");kA(this,"_compressionMethod");kA(this,"_filterMethod");kA(this,"_interlaceMethod");kA(this,"_colorType");kA(this,"_isAnimated");kA(this,"_numberOfFrames");kA(this,"_numberOfPlays");kA(this,"_frames");kA(this,"_writingDataChunks");const{checkCrc:Ve=!1}=Le;this._checkCrc=Ve,this._inflator=new Ts,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Ps.UNKNOWN,this._filterMethod=is.UNKNOWN,this._interlaceMethod=Ro.UNKNOWN,this._colorType=Ea.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(ws(this);!this._end;){const le=this.readUint32(),Le=this.readChars(4);this.decodeChunk(le,Le)}return this.decodeImage(),this._png}decodeApng(){for(ws(this);!this._end;){const le=this.readUint32(),Le=this.readChars(4);this.decodeApngChunk(le,Le)}return this.decodeApngImage(),this._apng}decodeChunk(le,Le){const Ve=this.offset;switch(Le){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(le);break;case"IDAT":this.decodeIDAT(le);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(le);break;case"iCCP":this.decodeiCCP(le);break;case fl:Cs(this._png.text,this,le);break;case"pHYs":this.decodepHYs();break;default:this.skip(le);break}if(this.offset-Ve!==le)throw new Error(`Length mismatch while decoding chunk ${Le}`);this._checkCrc?il(this,le+4,Le):this.skip(4)}decodeApngChunk(le,Le){const Ve=this.offset;switch(Le!=="fdAT"&&Le!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),Le){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(le);break;default:this.decodeChunk(le,Le),this.offset=Ve+le;break}if(this.offset-Ve!==le)throw new Error(`Length mismatch while decoding chunk ${Le}`);this._checkCrc?il(this,le+4,Le):this.skip(4)}decodeIHDR(){const le=this._png;le.width=this.readUint32(),le.height=this.readUint32(),le.depth=lu(this.readUint8());const Le=this.readUint8();this._colorType=Le;let Ve;switch(Le){case Ea.GREYSCALE:Ve=1;break;case Ea.TRUECOLOUR:Ve=3;break;case Ea.INDEXED_COLOUR:Ve=1;break;case Ea.GREYSCALE_ALPHA:Ve=2;break;case Ea.TRUECOLOUR_ALPHA:Ve=4;break;case Ea.UNKNOWN:default:throw new Error(`Unknown color type: ${Le}`)}if(this._png.channels=Ve,this._compressionMethod=this.readUint8(),this._compressionMethod!==Ps.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const le={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(le)}decodePLTE(le){if(le%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${le}`);const Le=le/3;this._hasPalette=!0;const Ve=[];this._palette=Ve;for(let nt=0;nt<Le;nt++)Ve.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(le){this._writingDataChunks=!0;const Le=le,Ve=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,Ve,Le)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(le)}decodeFDAT(le){this._writingDataChunks=!0;let Le=le,Ve=this.offset+this.byteOffset;if(Ve+=4,Le-=4,this._inflator.push(new Uint8Array(this.buffer,Ve,Le)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(le)}decodetRNS(le){switch(this._colorType){case Ea.GREYSCALE:case Ea.TRUECOLOUR:{if(le%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${le}`);if(le/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${le/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(le/2);for(let Le=0;Le<le/2;Le++)this._transparency[Le]=this.readUint16();break}case Ea.INDEXED_COLOUR:{if(le>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${le} vs ${this._palette.length})`);let Le=0;for(;Le<le;Le++){const Ve=this.readByte();this._palette[Le].push(Ve)}for(;Le<this._palette.length;Le++)this._palette[Le].push(255);break}case Ea.UNKNOWN:case Ea.GREYSCALE_ALPHA:case Ea.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(le){const Le=No(this),Ve=this.readUint8();if(Ve!==Ps.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${Ve}`);const nt=this.readBytes(le-Le.length-2);this._png.iccEmbeddedProfile={name:Le,profile:Ms(nt)}}decodepHYs(){const le=this.readUint32(),Le=this.readUint32(),Ve=this.readByte();this._png.resolution={x:le,y:Le,unit:Ve}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let le=0;le<this._numberOfFrames;le++){const Le={sequenceNumber:this._frames[le].sequenceNumber,delayNumber:this._frames[le].delayNumber,delayDenominator:this._frames[le].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},Ve=this._frames.at(le);if(Ve){if(Ve.data=ul({data:Ve.data,width:Ve.width,height:Ve.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),le===0||Ve.xOffset===0&&Ve.yOffset===0&&Ve.width===this._png.width&&Ve.height===this._png.height)Le.data=Ve.data;else{const nt=this._apng.frames.at(le-1);this.disposeFrame(Ve,nt,Le),this.addFrameDataToCanvas(Le,Ve)}this._apng.frames.push(Le)}}return this._apng}disposeFrame(le,Le,Ve){switch(le.disposeOp){case po.NONE:break;case po.BACKGROUND:for(let nt=0;nt<this._png.height;nt++)for(let En=0;En<this._png.width;En++){const Xt=(nt*le.width+En)*this._png.channels;for(let Ur=0;Ur<this._png.channels;Ur++)Ve.data[Xt+Ur]=0}break;case po.PREVIOUS:Ve.data.set(Le.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(le,Le){const Ve=1<<this._png.depth,nt=(En,Xt)=>{const Ur=((En+Le.yOffset)*this._png.width+Le.xOffset+Xt)*this._png.channels,Pt=(En*Le.width+Xt)*this._png.channels;return{index:Ur,frameIndex:Pt}};switch(Le.blendOp){case Oo.SOURCE:for(let En=0;En<Le.height;En++)for(let Xt=0;Xt<Le.width;Xt++){const{index:Ur,frameIndex:Pt}=nt(En,Xt);for(let _n=0;_n<this._png.channels;_n++)le.data[Ur+_n]=Le.data[Pt+_n]}break;case Oo.OVER:for(let En=0;En<Le.height;En++)for(let Xt=0;Xt<Le.width;Xt++){const{index:Ur,frameIndex:Pt}=nt(En,Xt);for(let _n=0;_n<this._png.channels;_n++){const li=Le.data[Pt+this._png.channels-1]/Ve,Nr=_n%(this._png.channels-1)===0?1:Le.data[Pt+_n],vr=Math.floor(li*Nr+(1-li)*le.data[Ur+_n]);le.data[Ur+_n]+=vr}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var Le;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const le=this._isAnimated?((Le=this._frames)==null?void 0:Le.at(0)).data:this._inflator.result;if(this._filterMethod!==is.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===Ro.NO_INTERLACE)this._png.data=ul({data:le,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===Ro.ADAM7)this._png.data=sl({data:le,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const le=this._inflator.result,Le=this._frames.at(-1);Le?Le.data=le:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:po.NONE,blendOp:Oo.SOURCE,data:le}),this._inflator=new Ts,this._writingDataChunks=!1}}function lu(te){if(te!==1&&te!==2&&te!==4&&te!==8&&te!==16)throw new Error(`invalid bit depth: ${te}`);return te}const Ks={level:3};class go extends null{constructor(le,Le={}){var Ve;super();kA(this,"_png");kA(this,"_zlibOptions");kA(this,"_colorType");kA(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=Vo(Vo({},Ks),Le.zlib),this._png=this._checkData(le),this._interlaceMethod=(Ve=Le.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?Ve:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[le,Le]of Object.entries(this._png.text))encodetEXt(this,le,Le);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var Le;const le=((Le=this._png.palette)==null?void 0:Le.length)*3;this.writeUint32(le),this.writeChars("PLTE");for(const Ve of this._png.palette)this.writeByte(Ve[0]),this.writeByte(Ve[1]),this.writeByte(Ve[2]);writeCrc(this,4+le)}encodeTRNS(){const le=this._png.palette.filter(Le=>Le.at(-1)!==255);this.writeUint32(le.length),this.writeChars("tRNS");for(const Le of le)this.writeByte(Le.at(-1));writeCrc(this,4+le.length)}encodeIDAT(le){this.writeUint32(le.length),this.writeChars("IDAT"),this.writeBytes(le),writeCrc(this,le.length+4)}encodeData(){const{width:le,height:Le,channels:Ve,depth:nt,data:En}=this._png,Xt=nt<=8?Math.ceil(le*nt/8)*Ve:Math.ceil(le*nt/8*Ve/2),Ur=new IOBuffer().setBigEndian();let Pt=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Nr=0;Nr<Le;Nr++)Ur.writeByte(0),nt===16?Pt=gl(En,Ur,Xt,Pt):Pt=uu(En,Ur,Xt,Pt);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Pt=pl(this._png,En,Ur,Pt));const _n=Ur.toArray(),li=deflate(_n,this._zlibOptions);this.encodeIDAT(li)}_checkData(le){const{colorType:Le,channels:Ve,depth:nt}=As(le,le.palette),En={width:_o(le.width,"width"),height:_o(le.height,"height"),channels:Ve,data:le.data,depth:nt,text:le.text,palette:le.palette};this._colorType=Le;const Xt=nt<8?Math.ceil(En.width*nt/8)*En.height*Ve:En.width*En.height*Ve;if(En.data.length!==Xt)throw new RangeError(`wrong data size. Found ${En.data.length}, expected ${Xt}`);return En}}function _o(te,ye){if(Number.isInteger(te)&&te>0)return te;throw new TypeError(`${ye} must be a positive integer`)}function As(te,ye){const{channels:le=4,depth:Le=8}=te;if(le!==4&&le!==3&&le!==2&&le!==1)throw new RangeError(`unsupported number of channels: ${le}`);const Ve={channels:le,depth:Le,colorType:ColorType.UNKNOWN};switch(le){case 4:Ve.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:Ve.colorType=ColorType.TRUECOLOUR;break;case 1:ye?Ve.colorType=ColorType.INDEXED_COLOUR:Ve.colorType=ColorType.GREYSCALE;break;case 2:Ve.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return Ve}function uu(te,ye,le,Le){for(let Ve=0;Ve<le;Ve++)ye.writeByte(te[Le++]);return Le}function pl(te,ye,le,Le){const Ve=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:nt,height:En,channels:Xt,depth:Ur}=te;let Pt=0;Ur===16?Pt=Xt*Ur/8/2:Pt=Xt*Ur/8;for(let _n=0;_n<7;_n++){const li=Ve[_n],Nr=Math.floor((nt-li.x+li.xStep-1)/li.xStep),vr=Math.floor((En-li.y+li.yStep-1)/li.yStep);if(Nr<=0||vr<=0)continue;const xi=Nr*Pt;for(let bA=0;bA<vr;bA++){const Pi=li.y+bA*li.yStep,Ki=Ur<=8?new Uint8Array(xi):new Uint16Array(xi);let AA=0;for(let Ri=0;Ri<Nr;Ri++){const Ir=li.x+Ri*li.xStep;if(Ir<nt&&Pi<En){const Gi=(Pi*nt+Ir)*Pt;for(let TA=0;TA<Pt;TA++)Ki[AA++]=ye[Gi+TA]}}if(le.writeByte(0),Ur===8)le.writeBytes(Ki);else if(Ur===16)for(const Ri of Ki)le.writeByte(Ri>>8&255),le.writeByte(Ri&255)}}return Le}function gl(te,ye,le,Le){for(let Ve=0;Ve<le;Ve++)ye.writeUint16(te[Le++]);return Le}var Zs;(function(te){te[te.UNKNOWN=0]="UNKNOWN",te[te.METRE=1]="METRE"})(Zs||(Zs={}));function Kl(te,ye){return new xs(te,ye).decode()}function ba(te,ye){return new PngEncoder(te,ye).encode()}function Zl(te,ye){return new PngDecoder(te,ye).decodeApng()}},6330:function(xn,dt,fe){"use strict";fe.d(dt,{iZ:function(){return lr}});var re={},Me=function(Ne,_e,it,gt,Vt){var Nt=new Worker(re[_e]||(re[_e]=URL.createObjectURL(new Blob([Ne+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return Nt.onmessage=function(Qn){var Nn=Qn.data,Zn=Nn.$e$;if(Zn){var Gn=new Error(Zn[0]);Gn.code=Zn[1],Gn.stack=Zn[2],Vt(Gn,null)}else Vt(null,Nn)},Nt.postMessage(it,gt),Nt},De=Uint8Array,Ze=Uint16Array,Ee=Int32Array,de=new De([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ze=new De([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Fe=new De([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ie=function(Ne,_e){for(var it=new Ze(31),gt=0;gt<31;++gt)it[gt]=_e+=1<<Ne[gt-1];for(var Vt=new Ee(it[30]),gt=1;gt<30;++gt)for(var Nt=it[gt];Nt<it[gt+1];++Nt)Vt[Nt]=Nt-it[gt]<<5|gt;return{b:it,r:Vt}},ve=Ie(de,2),ut=ve.b,we=ve.r;ut[28]=258,we[258]=28;for(var ot=Ie(ze,0),Xe=ot.b,Je=ot.r,He=new Ze(32768),Te=0;Te<32768;++Te){var at=(Te&43690)>>1|(Te&21845)<<1;at=(at&52428)>>2|(at&13107)<<2,at=(at&61680)>>4|(at&3855)<<4,He[Te]=((at&65280)>>8|(at&255)<<8)>>1}for(var Oe=function(Ne,_e,it){for(var gt=Ne.length,Vt=0,Nt=new Ze(_e);Vt<gt;++Vt)Ne[Vt]&&++Nt[Ne[Vt]-1];var Qn=new Ze(_e);for(Vt=1;Vt<_e;++Vt)Qn[Vt]=Qn[Vt-1]+Nt[Vt-1]<<1;var Nn;if(it){Nn=new Ze(1<<_e);var Zn=15-_e;for(Vt=0;Vt<gt;++Vt)if(Ne[Vt])for(var Gn=Vt<<4|Ne[Vt],Kn=_e-Ne[Vt],zn=Qn[Ne[Vt]-1]++<<Kn,st=zn|(1<<Kn)-1;zn<=st;++zn)Nn[He[zn]>>Zn]=Gn}else for(Nn=new Ze(gt),Vt=0;Vt<gt;++Vt)Ne[Vt]&&(Nn[Vt]=He[Qn[Ne[Vt]-1]++]>>15-Ne[Vt]);return Nn},We=new De(288),Te=0;Te<144;++Te)We[Te]=8;for(var Te=144;Te<256;++Te)We[Te]=9;for(var Te=256;Te<280;++Te)We[Te]=7;for(var Te=280;Te<288;++Te)We[Te]=8;for(var be=new De(32),Te=0;Te<32;++Te)be[Te]=5;var Be=Oe(We,9,0),Ue=null,ke=Oe(be,5,0),qe=null,Pe=function(Ne){for(var _e=Ne[0],it=1;it<Ne.length;++it)Ne[it]>_e&&(_e=Ne[it]);return _e},Ge=function(Ne,_e,it){var gt=_e/8|0;return(Ne[gt]|Ne[gt+1]<<8)>>(_e&7)&it},lt=function(Ne,_e){var it=_e/8|0;return(Ne[it]|Ne[it+1]<<8|Ne[it+2]<<16)>>(_e&7)},je=function(Ne){return(Ne+7)/8|0},ht=function(Ne,_e,it){return(_e==null||_e<0)&&(_e=0),(it==null||it>Ne.length)&&(it=Ne.length),new De(Ne.subarray(_e,it))},et={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},ft=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Tt=function(Ne,_e,it){var gt=new Error(_e||ft[Ne]);if(gt.code=Ne,Error.captureStackTrace&&Error.captureStackTrace(gt,Tt),!it)throw gt;return gt},Kt=function(Ne,_e,it,gt){var Vt=Ne.length,Nt=gt?gt.length:0;if(!Vt||_e.f&&!_e.l)return it||new De(0);var Qn=!it,Nn=Qn||_e.i!=2,Zn=_e.i;Qn&&(it=new De(Vt*3));var Gn=function(ui){var Ci=it.length;if(ui>Ci){var Ti=new De(Math.max(Ci*2,ui));Ti.set(it),it=Ti}},Kn=_e.f||0,zn=_e.p||0,st=_e.b||0,Rt=_e.l,kt=_e.d,Ht=_e.m,Zt=_e.n,gn=Vt*8;do{if(!Rt){Kn=Ge(Ne,zn,1);var On=Ge(Ne,zn+1,3);if(zn+=3,On)if(On==1)Rt=Ue,kt=qe,Ht=9,Zt=5;else if(On==2){var tn=Ge(Ne,zn,31)+257,sn=Ge(Ne,zn+10,15)+4,Gt=tn+Ge(Ne,zn+5,31)+1;zn+=14;for(var nn=new De(Gt),An=new De(19),Bt=0;Bt<sn;++Bt)An[Fe[Bt]]=Ge(Ne,zn+Bt*3,7);zn+=sn*3;for(var rn=Pe(An),Ln=(1<<rn)-1,dr=Oe(An,rn,1),Bt=0;Bt<Gt;){var tr=dr[Ge(Ne,zn,Ln)];zn+=tr&15;var $e=tr>>4;if($e<16)nn[Bt++]=$e;else{var br=0,hr=0;for($e==16?(hr=3+Ge(Ne,zn,3),zn+=2,br=nn[Bt-1]):$e==17?(hr=3+Ge(Ne,zn,7),zn+=3):$e==18&&(hr=11+Ge(Ne,zn,127),zn+=7);hr--;)nn[Bt++]=br}}var Tr=nn.subarray(0,tn),Hr=nn.subarray(tn);Ht=Pe(Tr),Zt=Pe(Hr),Rt=Oe(Tr,Ht,1),kt=Oe(Hr,Zt,1)}else Tt(1);else{var $e=je(zn)+4,mn=Ne[$e-4]|Ne[$e-3]<<8,Ut=$e+mn;if(Ut>Vt){Zn&&Tt(0);break}Nn&&Gn(st+mn),it.set(Ne.subarray($e,Ut),st),_e.b=st+=mn,_e.p=zn=Ut*8,_e.f=Kn;continue}if(zn>gn){Zn&&Tt(0);break}}Nn&&Gn(st+131072);for(var fi=(1<<Ht)-1,Jr=(1<<Zt)-1,Ai=zn;;Ai=zn){var br=Rt[lt(Ne,zn)&fi],si=br>>4;if(zn+=br&15,zn>gn){Zn&&Tt(0);break}if(br||Tt(2),si<256)it[st++]=si;else if(si==256){Ai=zn,Rt=null;break}else{var ti=si-254;if(si>264){var Bt=si-257,ei=de[Bt];ti=Ge(Ne,zn,(1<<ei)-1)+ut[Bt],zn+=ei}var $r=kt[lt(Ne,zn)&Jr],Lr=$r>>4;$r||Tt(3),zn+=$r&15;var Hr=Xe[Lr];if(Lr>3){var ei=ze[Lr];Hr+=lt(Ne,zn)&(1<<ei)-1,zn+=ei}if(zn>gn){Zn&&Tt(0);break}Nn&&Gn(st+131072);var qr=st+ti;if(st<Hr){var Zr=Nt-Hr,bi=Math.min(Hr,qr);for(Zr+st<0&&Tt(3);st<bi;++st)it[st]=gt[Zr+st]}for(;st<qr;++st)it[st]=it[st-Hr]}}_e.l=Rt,_e.p=Ai,_e.b=st,_e.f=Kn,Rt&&(Kn=1,_e.m=Ht,_e.d=kt,_e.n=Zt)}while(!Kn);return st!=it.length&&Qn?ht(it,0,st):it.subarray(0,st)},fn=function(Ne,_e,it){it<<=_e&7;var gt=_e/8|0;Ne[gt]|=it,Ne[gt+1]|=it>>8},$t=function(Ne,_e,it){it<<=_e&7;var gt=_e/8|0;Ne[gt]|=it,Ne[gt+1]|=it>>8,Ne[gt+2]|=it>>16},Re=function(Ne,_e){for(var it=[],gt=0;gt<Ne.length;++gt)Ne[gt]&&it.push({s:gt,f:Ne[gt]});var Vt=it.length,Nt=it.slice();if(!Vt)return{t:Yt,l:0};if(Vt==1){var Qn=new De(it[0].s+1);return Qn[it[0].s]=1,{t:Qn,l:1}}it.sort(function(Ut,tn){return Ut.f-tn.f}),it.push({s:-1,f:25001});var Nn=it[0],Zn=it[1],Gn=0,Kn=1,zn=2;for(it[0]={s:-1,f:Nn.f+Zn.f,l:Nn,r:Zn};Kn!=Vt-1;)Nn=it[it[Gn].f<it[zn].f?Gn++:zn++],Zn=it[Gn!=Kn&&it[Gn].f<it[zn].f?Gn++:zn++],it[Kn++]={s:-1,f:Nn.f+Zn.f,l:Nn,r:Zn};for(var st=Nt[0].s,gt=1;gt<Vt;++gt)Nt[gt].s>st&&(st=Nt[gt].s);var Rt=new Ze(st+1),kt=xe(it[Kn-1],Rt,0);if(kt>_e){var gt=0,Ht=0,Zt=kt-_e,gn=1<<Zt;for(Nt.sort(function(tn,sn){return Rt[sn.s]-Rt[tn.s]||tn.f-sn.f});gt<Vt;++gt){var On=Nt[gt].s;if(Rt[On]>_e)Ht+=gn-(1<<kt-Rt[On]),Rt[On]=_e;else break}for(Ht>>=Zt;Ht>0;){var $e=Nt[gt].s;Rt[$e]<_e?Ht-=1<<_e-Rt[$e]++-1:++gt}for(;gt>=0&&Ht;--gt){var mn=Nt[gt].s;Rt[mn]==_e&&(--Rt[mn],++Ht)}kt=_e}return{t:new De(Rt),l:kt}},xe=function(Ne,_e,it){return Ne.s==-1?Math.max(xe(Ne.l,_e,it+1),xe(Ne.r,_e,it+1)):_e[Ne.s]=it},Lt=function(Ne){for(var _e=Ne.length;_e&&!Ne[--_e];);for(var it=new Ze(++_e),gt=0,Vt=Ne[0],Nt=1,Qn=function(Zn){it[gt++]=Zn},Nn=1;Nn<=_e;++Nn)if(Ne[Nn]==Vt&&Nn!=_e)++Nt;else{if(!Vt&&Nt>2){for(;Nt>138;Nt-=138)Qn(32754);Nt>2&&(Qn(Nt>10?Nt-11<<5|28690:Nt-3<<5|12305),Nt=0)}else if(Nt>3){for(Qn(Vt),--Nt;Nt>6;Nt-=6)Qn(8304);Nt>2&&(Qn(Nt-3<<5|8208),Nt=0)}for(;Nt--;)Qn(Vt);Nt=1,Vt=Ne[Nn]}return{c:it.subarray(0,gt),n:_e}},Fn=function(Ne,_e){for(var it=0,gt=0;gt<_e.length;++gt)it+=Ne[gt]*_e[gt];return it},hn=function(Ne,_e,it){var gt=it.length,Vt=je(_e+2);Ne[Vt]=gt&255,Ne[Vt+1]=gt>>8,Ne[Vt+2]=Ne[Vt]^255,Ne[Vt+3]=Ne[Vt+1]^255;for(var Nt=0;Nt<gt;++Nt)Ne[Vt+Nt+4]=it[Nt];return(Vt+4+gt)*8},vt=function(Ne,_e,it,gt,Vt,Nt,Qn,Nn,Zn,Gn,Kn){fn(_e,Kn++,it),++Vt[256];for(var zn=Re(Vt,15),st=zn.t,Rt=zn.l,kt=Re(Nt,15),Ht=kt.t,Zt=kt.l,gn=Lt(st),On=gn.c,$e=gn.n,mn=Lt(Ht),Ut=mn.c,tn=mn.n,sn=new Ze(19),Gt=0;Gt<On.length;++Gt)++sn[On[Gt]&31];for(var Gt=0;Gt<Ut.length;++Gt)++sn[Ut[Gt]&31];for(var nn=Re(sn,7),An=nn.t,Bt=nn.l,rn=19;rn>4&&!An[Fe[rn-1]];--rn);var Ln=Gn+5<<3,dr=Fn(Vt,We)+Fn(Nt,be)+Qn,tr=Fn(Vt,st)+Fn(Nt,Ht)+Qn+14+3*rn+Fn(sn,An)+2*sn[16]+3*sn[17]+7*sn[18];if(Zn>=0&&Ln<=dr&&Ln<=tr)return hn(_e,Kn,Ne.subarray(Zn,Zn+Gn));var br,hr,Tr,Hr;if(fn(_e,Kn,1+(tr<dr)),Kn+=2,tr<dr){br=Oe(st,Rt,0),hr=st,Tr=Oe(Ht,Zt,0),Hr=Ht;var fi=Oe(An,Bt,0);fn(_e,Kn,$e-257),fn(_e,Kn+5,tn-1),fn(_e,Kn+10,rn-4),Kn+=14;for(var Gt=0;Gt<rn;++Gt)fn(_e,Kn+3*Gt,An[Fe[Gt]]);Kn+=3*rn;for(var Jr=[On,Ut],Ai=0;Ai<2;++Ai)for(var si=Jr[Ai],Gt=0;Gt<si.length;++Gt){var ti=si[Gt]&31;fn(_e,Kn,fi[ti]),Kn+=An[ti],ti>15&&(fn(_e,Kn,si[Gt]>>5&127),Kn+=si[Gt]>>12)}}else br=Be,hr=We,Tr=ke,Hr=be;for(var Gt=0;Gt<Nn;++Gt){var ei=gt[Gt];if(ei>255){var ti=ei>>18&31;$t(_e,Kn,br[ti+257]),Kn+=hr[ti+257],ti>7&&(fn(_e,Kn,ei>>23&31),Kn+=de[ti]);var $r=ei&31;$t(_e,Kn,Tr[$r]),Kn+=Hr[$r],$r>3&&($t(_e,Kn,ei>>5&8191),Kn+=ze[$r])}else $t(_e,Kn,br[ei]),Kn+=hr[ei]}return $t(_e,Kn,br[256]),Kn+hr[256]},Jt=new Ee([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Yt=new De(0),jn=function(Ne,_e,it,gt,Vt,Nt){var Qn=Nt.z||Ne.length,Nn=new De(gt+Qn+5*(1+Math.ceil(Qn/7e3))+Vt),Zn=Nn.subarray(gt,Nn.length-Vt),Gn=Nt.l,Kn=(Nt.r||0)&7;if(_e){Kn&&(Zn[0]=Nt.r>>3);for(var zn=Jt[_e-1],st=zn>>13,Rt=zn&8191,kt=(1<<it)-1,Ht=Nt.p||new Ze(32768),Zt=Nt.h||new Ze(kt+1),gn=Math.ceil(it/3),On=2*gn,$e=function(xA){return(Ne[xA]^Ne[xA+1]<<gn^Ne[xA+2]<<On)&kt},mn=new Ee(25e3),Ut=new Ze(288),tn=new Ze(32),sn=0,Gt=0,nn=Nt.i||0,An=0,Bt=Nt.w||0,rn=0;nn+2<Qn;++nn){var Ln=$e(nn),dr=nn&32767,tr=Zt[Ln];if(Ht[dr]=tr,Zt[Ln]=dr,Bt<=nn){var br=Qn-nn;if((sn>7e3||An>24576)&&(br>423||!Gn)){Kn=vt(Ne,Zn,0,mn,Ut,tn,Gt,An,rn,nn-rn,Kn),An=sn=Gt=0,rn=nn;for(var hr=0;hr<286;++hr)Ut[hr]=0;for(var hr=0;hr<30;++hr)tn[hr]=0}var Tr=2,Hr=0,fi=Rt,Jr=dr-tr&32767;if(br>2&&Ln==$e(nn-Jr))for(var Ai=Math.min(st,br)-1,si=Math.min(32767,nn),ti=Math.min(258,br);Jr<=si&&--fi&&dr!=tr;){if(Ne[nn+Tr]==Ne[nn+Tr-Jr]){for(var ei=0;ei<ti&&Ne[nn+ei]==Ne[nn+ei-Jr];++ei);if(ei>Tr){if(Tr=ei,Hr=Jr,ei>Ai)break;for(var $r=Math.min(Jr,ei-2),Lr=0,hr=0;hr<$r;++hr){var qr=nn-Jr+hr&32767,Zr=Ht[qr],bi=qr-Zr&32767;bi>Lr&&(Lr=bi,tr=qr)}}}dr=tr,tr=Ht[dr],Jr+=dr-tr&32767}if(Hr){mn[An++]=268435456|we[Tr]<<18|Je[Hr];var ui=we[Tr]&31,Ci=Je[Hr]&31;Gt+=de[ui]+ze[Ci],++Ut[257+ui],++tn[Ci],Bt=nn+Tr,++sn}else mn[An++]=Ne[nn],++Ut[Ne[nn]]}}for(nn=Math.max(nn,Bt);nn<Qn;++nn)mn[An++]=Ne[nn],++Ut[Ne[nn]];Kn=vt(Ne,Zn,Gn,mn,Ut,tn,Gt,An,rn,nn-rn,Kn),Gn||(Nt.r=Kn&7|Zn[Kn/8|0]<<3,Kn-=7,Nt.h=Zt,Nt.p=Ht,Nt.i=nn,Nt.w=Bt)}else{for(var nn=Nt.w||0;nn<Qn+Gn;nn+=65535){var Ti=nn+65535;Ti>=Qn&&(Zn[Kn/8|0]=Gn,Ti=Qn),Kn=hn(Zn,Kn+1,Ne.subarray(nn,Ti))}Nt.i=Qn}return ht(Nn,0,gt+je(Kn)+Vt)},yt=null,wn=function(){var Ne=-1;return{p:function(_e){for(var it=Ne,gt=0;gt<_e.length;++gt)it=yt[it&255^_e[gt]]^it>>>8;Ne=it},d:function(){return~Ne}}},Dt=function(){var Ne=1,_e=0;return{p:function(it){for(var gt=Ne,Vt=_e,Nt=it.length|0,Qn=0;Qn!=Nt;){for(var Nn=Math.min(Qn+2655,Nt);Qn<Nn;++Qn)Vt+=gt+=it[Qn];gt=(gt&65535)+15*(gt>>16),Vt=(Vt&65535)+15*(Vt>>16)}Ne=gt,_e=Vt},d:function(){return Ne%=65521,_e%=65521,(Ne&255)<<24|(Ne&65280)<<8|(_e&255)<<8|_e>>8}}},un=function(Ne,_e,it,gt,Vt){if(!Vt&&(Vt={l:1},_e.dictionary)){var Nt=_e.dictionary.subarray(-32768),Qn=new De(Nt.length+Ne.length);Qn.set(Nt),Qn.set(Ne,Nt.length),Ne=Qn,Vt.w=Nt.length}return jn(Ne,_e.level==null?6:_e.level,_e.mem==null?Vt.l?Math.ceil(Math.max(8,Math.min(13,Math.log(Ne.length)))*1.5):20:12+_e.mem,it,gt,Vt)},ln=function(Ne,_e){var it={};for(var gt in Ne)it[gt]=Ne[gt];for(var gt in _e)it[gt]=_e[gt];return it},ge=function(Ne,_e,it){for(var gt=Ne(),Vt=Ne.toString(),Nt=Vt.slice(Vt.indexOf("[")+1,Vt.lastIndexOf("]")).replace(/\s+/g,"").split(","),Qn=0;Qn<gt.length;++Qn){var Nn=gt[Qn],Zn=Nt[Qn];if(typeof Nn=="function"){_e+=";"+Zn+"=";var Gn=Nn.toString();if(Nn.prototype)if(Gn.indexOf("[native code]")!=-1){var Kn=Gn.indexOf(" ",8)+1;_e+=Gn.slice(Kn,Gn.indexOf("(",Kn))}else{_e+=Gn;for(var zn in Nn.prototype)_e+=";"+Zn+".prototype."+zn+"="+Nn.prototype[zn].toString()}else _e+=Gn}else it[Zn]=Nn}return _e},ue=null,ee=function(Ne){var _e=[];for(var it in Ne)Ne[it].buffer&&_e.push((Ne[it]=new Ne[it].constructor(Ne[it])).buffer);return _e},b=function(Ne,_e,it,gt){if(!ue[it]){for(var Vt="",Nt={},Qn=Ne.length-1,Nn=0;Nn<Qn;++Nn)Vt=ge(Ne[Nn],Vt,Nt);ue[it]={c:ge(Ne[Qn],Vt,Nt),e:Nt}}var Zn=ln({},ue[it].e);return Me(ue[it].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+_e.toString()+"}",it,Zn,ee(Zn),gt)},ae=function(){return[De,Ze,Ee,de,ze,Fe,ut,Xe,Ue,qe,He,ft,Oe,Pe,Ge,lt,je,ht,Tt,Kt,Er,ct,bt]},ie=function(){return[De,Ze,Ee,de,ze,Fe,we,Je,Be,We,ke,be,He,Jt,Yt,Oe,fn,$t,Re,xe,Lt,Fn,hn,vt,je,ht,jn,un,mr,ct]},he=function(){return[qt,Wt,jt,wn,yt]},Ye=function(){return[wt,Rn]},pt=function(){return[Cn,jt,Dt]},zt=function(){return[Mn]},ct=function(Ne){return postMessage(Ne,[Ne.buffer])},bt=function(Ne){return Ne&&{out:Ne.size&&new De(Ne.size),dictionary:Ne.dictionary}},Et=function(Ne,_e,it,gt,Vt,Nt){var Qn=b(it,gt,Vt,function(Nn,Zn){Qn.terminate(),Nt(Nn,Zn)});return Qn.postMessage([Ne,_e],_e.consume?[Ne.buffer]:[]),function(){Qn.terminate()}},en=function(Ne){return Ne.ondata=function(_e,it){return postMessage([_e,it],[_e.buffer])},function(_e){_e.data.length?(Ne.push(_e.data[0],_e.data[1]),postMessage([_e.data[0].length])):Ne.flush()}},Dn=function(Ne,_e,it,gt,Vt,Nt,Qn){var Nn,Zn=b(Ne,gt,Vt,function(Gn,Kn){Gn?(Zn.terminate(),_e.ondata.call(_e,Gn)):Array.isArray(Kn)?Kn.length==1?(_e.queuedSize-=Kn[0],_e.ondrain&&_e.ondrain(Kn[0])):(Kn[1]&&Zn.terminate(),_e.ondata.call(_e,Gn,Kn[0],Kn[1])):Qn(Kn)});Zn.postMessage(it),_e.queuedSize=0,_e.push=function(Gn,Kn){_e.ondata||Tt(5),Nn&&_e.ondata(Tt(4,0,1),null,!!Kn),_e.queuedSize+=Gn.length,Zn.postMessage([Gn,Nn=Kn],[Gn.buffer])},_e.terminate=function(){Zn.terminate()},Nt&&(_e.flush=function(){Zn.postMessage([])})},Mt=function(Ne,_e){return Ne[_e]|Ne[_e+1]<<8},tt=function(Ne,_e){return(Ne[_e]|Ne[_e+1]<<8|Ne[_e+2]<<16|Ne[_e+3]<<24)>>>0},on=function(Ne,_e){return tt(Ne,_e)+tt(Ne,_e+4)*4294967296},jt=function(Ne,_e,it){for(;it;++_e)Ne[_e]=it,it>>>=8},qt=function(Ne,_e){var it=_e.filename;if(Ne[0]=31,Ne[1]=139,Ne[2]=8,Ne[8]=_e.level<2?4:_e.level==9?2:0,Ne[9]=3,_e.mtime!=0&&jt(Ne,4,Math.floor(new Date(_e.mtime||Date.now())/1e3)),it){Ne[3]=8;for(var gt=0;gt<=it.length;++gt)Ne[gt+10]=it.charCodeAt(gt)}},wt=function(Ne){(Ne[0]!=31||Ne[1]!=139||Ne[2]!=8)&&Tt(6,"invalid gzip data");var _e=Ne[3],it=10;_e&4&&(it+=(Ne[10]|Ne[11]<<8)+2);for(var gt=(_e>>3&1)+(_e>>4&1);gt>0;gt-=!Ne[it++]);return it+(_e&2)},Rn=function(Ne){var _e=Ne.length;return(Ne[_e-4]|Ne[_e-3]<<8|Ne[_e-2]<<16|Ne[_e-1]<<24)>>>0},Wt=function(Ne){return 10+(Ne.filename?Ne.filename.length+1:0)},Cn=function(Ne,_e){var it=_e.level,gt=it==0?0:it<6?1:it==9?3:2;if(Ne[0]=120,Ne[1]=gt<<6|(_e.dictionary&&32),Ne[1]|=31-(Ne[0]<<8|Ne[1])%31,_e.dictionary){var Vt=Dt();Vt.p(_e.dictionary),jt(Ne,2,Vt.d())}},Mn=function(Ne,_e){return((Ne[0]&15)!=8||Ne[0]>>4>7||(Ne[0]<<8|Ne[1])%31)&&Tt(6,"invalid zlib data"),(Ne[1]>>5&1)==+!_e&&Tt(6,"invalid zlib data: "+(Ne[1]&32?"need":"unexpected")+" dictionary"),(Ne[1]>>3&4)+2};function sr(Ne,_e){return typeof Ne=="function"&&(_e=Ne,Ne={}),this.ondata=_e,Ne}var vn=null,cr=null;function ar(Ne,_e,it){return it||(it=_e,_e={}),typeof it!="function"&&Tt(7),Et(Ne,_e,[ie],function(gt){return ct(mr(gt.data[0],gt.data[1]))},0,it)}function mr(Ne,_e){return un(Ne,_e||{},0,0)}var $n=null,Xr=null;function Pr(Ne,_e,it){return it||(it=_e,_e={}),typeof it!="function"&&Tt(7),Et(Ne,_e,[ae],function(gt){return ct(Er(gt.data[0],bt(gt.data[1])))},1,it)}function Er(Ne,_e){return Kt(Ne,{i:2},_e&&_e.out,_e&&_e.dictionary)}var Ar=null,Qr=null;function Vn(Ne,_e,it){return it||(it=_e,_e={}),typeof it!="function"&&Tt(7),Et(Ne,_e,[ie,he,function(){return[qn]}],function(gt){return ct(qn(gt.data[0],gt.data[1]))},2,it)}function qn(Ne,_e){_e||(_e={});var it=wn(),gt=Ne.length;it.p(Ne);var Vt=un(Ne,_e,Wt(_e),8),Nt=Vt.length;return qt(Vt,_e),jt(Vt,Nt-8,it.d()),jt(Vt,Nt-4,gt),Vt}var Yn=null,pn=null;function Wn(Ne,_e,it){return it||(it=_e,_e={}),typeof it!="function"&&Tt(7),Et(Ne,_e,[ae,Ye,function(){return[cn]}],function(gt){return ct(cn(gt.data[0],gt.data[1]))},3,it)}function cn(Ne,_e){var it=wt(Ne);return it+8>Ne.length&&Tt(6,"invalid gzip data"),Kt(Ne.subarray(it,-8),{i:2},_e&&_e.out||new De(Rn(Ne)),_e&&_e.dictionary)}var Sn=null,fr=null;function ir(Ne,_e,it){return it||(it=_e,_e={}),typeof it!="function"&&Tt(7),Et(Ne,_e,[ie,pt,function(){return[lr]}],function(gt){return ct(lr(gt.data[0],gt.data[1]))},4,it)}function lr(Ne,_e){_e||(_e={});var it=Dt();it.p(Ne);var gt=un(Ne,_e,_e.dictionary?6:2,4);return Cn(gt,_e),jt(gt,gt.length-4,it.d()),gt}var xr=null,Wr=null;function Dr(Ne,_e,it){return it||(it=_e,_e={}),typeof it!="function"&&Tt(7),Et(Ne,_e,[ae,zt,function(){return[Fr]}],function(gt){return ct(Fr(gt.data[0],bt(gt.data[1])))},5,it)}function Fr(Ne,_e){return Kt(Ne.subarray(Mn(Ne,_e&&_e.dictionary),-4),{i:2},_e&&_e.out,_e&&_e.dictionary)}var Rr=null,Xn=null;function yn(Ne,_e,it){return it||(it=_e,_e={}),typeof it!="function"&&Tt(7),Ne[0]==31&&Ne[1]==139&&Ne[2]==8?Wn(Ne,_e,it):(Ne[0]&15)!=8||Ne[0]>>4>7||(Ne[0]<<8|Ne[1])%31?Pr(Ne,_e,it):Dr(Ne,_e,it)}function rt(Ne,_e){return Ne[0]==31&&Ne[1]==139&&Ne[2]==8?cn(Ne,_e):(Ne[0]&15)!=8||Ne[0]>>4>7||(Ne[0]<<8|Ne[1])%31?Er(Ne,_e):Fr(Ne,_e)}var Sr=function(Ne,_e,it,gt){for(var Vt in Ne){var Nt=Ne[Vt],Qn=_e+Vt,Nn=gt;Array.isArray(Nt)&&(Nn=ln(gt,Nt[1]),Nt=Nt[0]),Nt instanceof De?it[Qn]=[Nt,Nn]:(it[Qn+="/"]=[new De(0),Nn],Sr(Nt,Qn,it,gt))}},Kr=typeof TextEncoder!="undefined"&&new TextEncoder,_t=typeof TextDecoder!="undefined"&&new TextDecoder,St=0;try{_t.decode(Yt,{stream:!0}),St=1}catch(Ne){}var Jn=function(Ne){for(var _e="",it=0;;){var gt=Ne[it++],Vt=(gt>127)+(gt>223)+(gt>239);if(it+Vt>Ne.length)return{s:_e,r:ht(Ne,it-1)};Vt?Vt==3?(gt=((gt&15)<<18|(Ne[it++]&63)<<12|(Ne[it++]&63)<<6|Ne[it++]&63)-65536,_e+=String.fromCharCode(55296|gt>>10,56320|gt&1023)):Vt&1?_e+=String.fromCharCode((gt&31)<<6|Ne[it++]&63):_e+=String.fromCharCode((gt&15)<<12|(Ne[it++]&63)<<6|Ne[it++]&63):_e+=String.fromCharCode(gt)}},Hn=null,Ot=null;function kn(Ne,_e){if(_e){for(var it=new De(Ne.length),gt=0;gt<Ne.length;++gt)it[gt]=Ne.charCodeAt(gt);return it}if(Kr)return Kr.encode(Ne);for(var Vt=Ne.length,Nt=new De(Ne.length+(Ne.length>>1)),Qn=0,Nn=function(Kn){Nt[Qn++]=Kn},gt=0;gt<Vt;++gt){if(Qn+5>Nt.length){var Zn=new De(Qn+8+(Vt-gt<<1));Zn.set(Nt),Nt=Zn}var Gn=Ne.charCodeAt(gt);Gn<128||_e?Nn(Gn):Gn<2048?(Nn(192|Gn>>6),Nn(128|Gn&63)):Gn>55295&&Gn<57344?(Gn=65536+(Gn&1047552)|Ne.charCodeAt(++gt)&1023,Nn(240|Gn>>18),Nn(128|Gn>>12&63),Nn(128|Gn>>6&63),Nn(128|Gn&63)):(Nn(224|Gn>>12),Nn(128|Gn>>6&63),Nn(128|Gn&63))}return ht(Nt,0,Qn)}function nr(Ne,_e){if(_e){for(var it="",gt=0;gt<Ne.length;gt+=16384)it+=String.fromCharCode.apply(null,Ne.subarray(gt,gt+16384));return it}else{if(_t)return _t.decode(Ne);var Vt=Jn(Ne),Nt=Vt.s,it=Vt.r;return it.length&&Tt(8),Nt}}var rr=function(Ne){return Ne==1?3:Ne<6?2:Ne==9?1:0},er=function(Ne,_e){return _e+30+Mt(Ne,_e+26)+Mt(Ne,_e+28)},ur=function(Ne,_e,it){var gt=Mt(Ne,_e+28),Vt=nr(Ne.subarray(_e+46,_e+46+gt),!(Mt(Ne,_e+8)&2048)),Nt=_e+46+gt,Qn=tt(Ne,_e+20),Nn=it&&Qn==4294967295?wr(Ne,Nt):[Qn,tt(Ne,_e+24),tt(Ne,_e+42)],Zn=Nn[0],Gn=Nn[1],Kn=Nn[2];return[Mt(Ne,_e+10),Zn,Gn,Vt,Nt+Mt(Ne,_e+30)+Mt(Ne,_e+32),Kn]},wr=function(Ne,_e){for(;Mt(Ne,_e)!=1;_e+=4+Mt(Ne,_e+2));return[on(Ne,_e+12),on(Ne,_e+4),on(Ne,_e+20)]},It=function(Ne){var _e=0;if(Ne)for(var it in Ne){var gt=Ne[it].length;gt>65535&&Tt(9),_e+=gt+4}return _e},an=function(Ne,_e,it,gt,Vt,Nt,Qn,Nn){var Zn=gt.length,Gn=it.extra,Kn=Nn&&Nn.length,zn=It(Gn);jt(Ne,_e,Qn!=null?33639248:67324752),_e+=4,Qn!=null&&(Ne[_e++]=20,Ne[_e++]=it.os),Ne[_e]=20,_e+=2,Ne[_e++]=it.flag<<1|(Nt<0&&8),Ne[_e++]=Vt&&8,Ne[_e++]=it.compression&255,Ne[_e++]=it.compression>>8;var st=new Date(it.mtime==null?Date.now():it.mtime),Rt=st.getFullYear()-1980;if((Rt<0||Rt>119)&&Tt(10),jt(Ne,_e,Rt<<25|st.getMonth()+1<<21|st.getDate()<<16|st.getHours()<<11|st.getMinutes()<<5|st.getSeconds()>>1),_e+=4,Nt!=-1&&(jt(Ne,_e,it.crc),jt(Ne,_e+4,Nt<0?-Nt-2:Nt),jt(Ne,_e+8,it.size)),jt(Ne,_e+12,Zn),jt(Ne,_e+14,zn),_e+=16,Qn!=null&&(jt(Ne,_e,Kn),jt(Ne,_e+6,it.attrs),jt(Ne,_e+10,Qn),_e+=14),Ne.set(gt,_e),_e+=Zn,zn)for(var kt in Gn){var Ht=Gn[kt],Zt=Ht.length;jt(Ne,_e,+kt),jt(Ne,_e+2,Zt),Ne.set(Ht,_e+4),_e+=4+Zt}return Kn&&(Ne.set(Nn,_e),_e+=Kn),_e},mt=function(Ne,_e,it,gt,Vt){jt(Ne,_e,101010256),jt(Ne,_e+8,it),jt(Ne,_e+10,it),jt(Ne,_e+12,gt),jt(Ne,_e+16,Vt)},dn=null,Tn=null,Br=null,_r=null;function Or(Ne,_e,it){it||(it=_e,_e={}),typeof it!="function"&&Tt(7);var gt={};Sr(Ne,"",gt,_e);var Vt=Object.keys(gt),Nt=Vt.length,Qn=0,Nn=0,Zn=Nt,Gn=new Array(Nt),Kn=[],zn=function(){for(var Zt=0;Zt<Kn.length;++Zt)Kn[Zt]()},st=function(Zt,gn){gi(function(){it(Zt,gn)})};gi(function(){st=it});var Rt=function(){var Zt=new De(Nn+22),gn=Qn,On=Nn-Qn;Nn=0;for(var $e=0;$e<Zn;++$e){var mn=Gn[$e];try{var Ut=mn.c.length;an(Zt,Nn,mn,mn.f,mn.u,Ut);var tn=30+mn.f.length+It(mn.extra),sn=Nn+tn;Zt.set(mn.c,sn),an(Zt,Qn,mn,mn.f,mn.u,Ut,Nn,mn.m),Qn+=16+tn+(mn.m?mn.m.length:0),Nn=sn+Ut}catch(Gt){return st(Gt,null)}}mt(Zt,Qn,Gn.length,On,gn),st(null,Zt)};Nt||Rt();for(var kt=function(Zt){var gn=Vt[Zt],On=gt[gn],$e=On[0],mn=On[1],Ut=wn(),tn=$e.length;Ut.p($e);var sn=kn(gn),Gt=sn.length,nn=mn.comment,An=nn&&kn(nn),Bt=An&&An.length,rn=It(mn.extra),Ln=mn.level==0?0:8,dr=function(tr,br){if(tr)zn(),st(tr,null);else{var hr=br.length;Gn[Zt]=ln(mn,{size:tn,crc:Ut.d(),c:br,f:sn,m:An,u:Gt!=gn.length||An&&nn.length!=Bt,compression:Ln}),Qn+=30+Gt+rn+hr,Nn+=76+2*(Gt+rn)+(Bt||0)+hr,--Nt||Rt()}};if(Gt>65535&&dr(Tt(11,0,1),null),!Ln)dr(null,$e);else if(tn<16e4)try{dr(null,mr($e,mn))}catch(tr){dr(tr,null)}else Kn.push(ar($e,mn,dr))},Ht=0;Ht<Zn;++Ht)kt(Ht);return zn}function yr(Ne,_e){_e||(_e={});var it={},gt=[];Sr(Ne,"",it,_e);var Vt=0,Nt=0;for(var Qn in it){var Nn=it[Qn],Zn=Nn[0],Gn=Nn[1],Kn=Gn.level==0?0:8,zn=kn(Qn),st=zn.length,Rt=Gn.comment,kt=Rt&&kn(Rt),Ht=kt&&kt.length,Zt=It(Gn.extra);st>65535&&Tt(11);var gn=Kn?mr(Zn,Gn):Zn,On=gn.length,$e=wn();$e.p(Zn),gt.push(ln(Gn,{size:Zn.length,crc:$e.d(),c:gn,f:zn,m:kt,u:st!=Qn.length||kt&&Rt.length!=Ht,o:Vt,compression:Kn})),Vt+=30+st+Zt+On,Nt+=76+2*(st+Zt)+(Ht||0)+On}for(var mn=new De(Nt+22),Ut=Vt,tn=Nt-Vt,sn=0;sn<gt.length;++sn){var zn=gt[sn];an(mn,zn.o,zn,zn.f,zn.u,zn.c.length);var Gt=30+zn.f.length+It(zn.extra);mn.set(zn.c,zn.o+Gt),an(mn,Vt,zn,zn.f,zn.u,zn.c.length,zn.o,zn.m),Vt+=16+Gt+(zn.m?zn.m.length:0)}return mt(mn,Vt,gt.length,tn,Ut),mn}var kr=null,ii=null,jr=null,hi=null,gi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(Ne){Ne()};function oi(Ne,_e,it){it||(it=_e,_e={}),typeof it!="function"&&Tt(7);var gt=[],Vt=function(){for(var Zt=0;Zt<gt.length;++Zt)gt[Zt]()},Nt={},Qn=function(Zt,gn){gi(function(){it(Zt,gn)})};gi(function(){Qn=it});for(var Nn=Ne.length-22;tt(Ne,Nn)!=101010256;--Nn)if(!Nn||Ne.length-Nn>65558)return Qn(Tt(13,0,1),null),Vt;var Zn=Mt(Ne,Nn+8);if(Zn){var Gn=Zn,Kn=tt(Ne,Nn+16),zn=Kn==4294967295||Gn==65535;if(zn){var st=tt(Ne,Nn-12);zn=tt(Ne,st)==101075792,zn&&(Gn=Zn=tt(Ne,st+32),Kn=tt(Ne,st+48))}for(var Rt=_e&&_e.filter,kt=function(Zt){var gn=ur(Ne,Kn,zn),On=gn[0],$e=gn[1],mn=gn[2],Ut=gn[3],tn=gn[4],sn=gn[5],Gt=er(Ne,sn);Kn=tn;var nn=function(Bt,rn){Bt?(Vt(),Qn(Bt,null)):(rn&&(Nt[Ut]=rn),--Zn||Qn(null,Nt))};if(!Rt||Rt({name:Ut,size:$e,originalSize:mn,compression:On}))if(!On)nn(null,ht(Ne,Gt,Gt+$e));else if(On==8){var An=Ne.subarray(Gt,Gt+$e);if(mn<524288||$e>.8*mn)try{nn(null,Er(An,{out:new De(mn)}))}catch(Bt){nn(Bt,null)}else gt.push(Pr(An,{size:mn},nn))}else nn(Tt(14,"unknown compression type "+On,1),null);else nn(null,null)},Ht=0;Ht<Gn;++Ht)kt(Ht)}else Qn(null,{});return Vt}function vi(Ne,_e){for(var it={},gt=Ne.length-22;tt(Ne,gt)!=101010256;--gt)(!gt||Ne.length-gt>65558)&&Tt(13);var Vt=Mt(Ne,gt+8);if(!Vt)return{};var Nt=tt(Ne,gt+16),Qn=Nt==4294967295||Vt==65535;if(Qn){var Nn=tt(Ne,gt-12);Qn=tt(Ne,Nn)==101075792,Qn&&(Vt=tt(Ne,Nn+32),Nt=tt(Ne,Nn+48))}for(var Zn=_e&&_e.filter,Gn=0;Gn<Vt;++Gn){var Kn=ur(Ne,Nt,Qn),zn=Kn[0],st=Kn[1],Rt=Kn[2],kt=Kn[3],Ht=Kn[4],Zt=Kn[5],gn=er(Ne,Zt);Nt=Ht,(!Zn||Zn({name:kt,size:st,originalSize:Rt,compression:zn}))&&(zn?zn==8?it[kt]=Er(Ne.subarray(gn,gn+st),{out:new De(Rt)}):Tt(14,"unknown compression type "+zn):it[kt]=ht(Ne,gn,gn+st))}return it}},64270:function(xn){(function(dt,fe){xn.exports=fe()})(this,function(){"use strict";var dt=function(Ae,ne){return dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,oe){se.__proto__=oe}||function(se,oe){for(var me in oe)Object.prototype.hasOwnProperty.call(oe,me)&&(se[me]=oe[me])},dt(Ae,ne)};function fe(Ae,ne){if(typeof ne!="function"&&ne!==null)throw new TypeError("Class extends value "+String(ne)+" is not a constructor or null");dt(Ae,ne);function se(){this.constructor=Ae}Ae.prototype=ne===null?Object.create(ne):(se.prototype=ne.prototype,new se)}var re=function(){return re=Object.assign||function(ne){for(var se,oe=1,me=arguments.length;oe<me;oe++){se=arguments[oe];for(var Qe in se)Object.prototype.hasOwnProperty.call(se,Qe)&&(ne[Qe]=se[Qe])}return ne},re.apply(this,arguments)};function Me(Ae,ne,se,oe){function me(Qe){return Qe instanceof se?Qe:new se(function(At){At(Qe)})}return new(se||(se=Promise))(function(Qe,At){function xt(In){try{Bn(oe.next(In))}catch(Pn){At(Pn)}}function Ct(In){try{Bn(oe.throw(In))}catch(Pn){At(Pn)}}function Bn(In){In.done?Qe(In.value):me(In.value).then(xt,Ct)}Bn((oe=oe.apply(Ae,ne||[])).next())})}function De(Ae,ne){var se={label:0,sent:function(){if(Qe[0]&1)throw Qe[1];return Qe[1]},trys:[],ops:[]},oe,me,Qe,At;return At={next:xt(0),throw:xt(1),return:xt(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function xt(Bn){return function(In){return Ct([Bn,In])}}function Ct(Bn){if(oe)throw new TypeError("Generator is already executing.");for(;se;)try{if(oe=1,me&&(Qe=Bn[0]&2?me.return:Bn[0]?me.throw||((Qe=me.return)&&Qe.call(me),0):me.next)&&!(Qe=Qe.call(me,Bn[1])).done)return Qe;switch(me=0,Qe&&(Bn=[Bn[0]&2,Qe.value]),Bn[0]){case 0:case 1:Qe=Bn;break;case 4:return se.label++,{value:Bn[1],done:!1};case 5:se.label++,me=Bn[1],Bn=[0];continue;case 7:Bn=se.ops.pop(),se.trys.pop();continue;default:if(Qe=se.trys,!(Qe=Qe.length>0&&Qe[Qe.length-1])&&(Bn[0]===6||Bn[0]===2)){se=0;continue}if(Bn[0]===3&&(!Qe||Bn[1]>Qe[0]&&Bn[1]<Qe[3])){se.label=Bn[1];break}if(Bn[0]===6&&se.label<Qe[1]){se.label=Qe[1],Qe=Bn;break}if(Qe&&se.label<Qe[2]){se.label=Qe[2],se.ops.push(Bn);break}Qe[2]&&se.ops.pop(),se.trys.pop();continue}Bn=ne.call(Ae,se)}catch(In){Bn=[6,In],me=0}finally{oe=Qe=0}if(Bn[0]&5)throw Bn[1];return{value:Bn[0]?Bn[1]:void 0,done:!0}}}function Ze(Ae,ne,se){if(se||arguments.length===2)for(var oe=0,me=ne.length,Qe;oe<me;oe++)(Qe||!(oe in ne))&&(Qe||(Qe=Array.prototype.slice.call(ne,0,oe)),Qe[oe]=ne[oe]);return Ae.concat(Qe||ne)}for(var Ee=function(){function Ae(ne,se,oe,me){this.left=ne,this.top=se,this.width=oe,this.height=me}return Ae.prototype.add=function(ne,se,oe,me){return new Ae(this.left+ne,this.top+se,this.width+oe,this.height+me)},Ae.fromClientRect=function(ne,se){return new Ae(se.left+ne.windowBounds.left,se.top+ne.windowBounds.top,se.width,se.height)},Ae.fromDOMRectList=function(ne,se){var oe=Array.from(se).find(function(me){return me.width!==0});return oe?new Ae(oe.left+ne.windowBounds.left,oe.top+ne.windowBounds.top,oe.width,oe.height):Ae.EMPTY},Ae.EMPTY=new Ae(0,0,0,0),Ae}(),de=function(Ae,ne){return Ee.fromClientRect(Ae,ne.getBoundingClientRect())},ze=function(Ae){var ne=Ae.body,se=Ae.documentElement;if(!ne||!se)throw new Error("Unable to get document size");var oe=Math.max(Math.max(ne.scrollWidth,se.scrollWidth),Math.max(ne.offsetWidth,se.offsetWidth),Math.max(ne.clientWidth,se.clientWidth)),me=Math.max(Math.max(ne.scrollHeight,se.scrollHeight),Math.max(ne.offsetHeight,se.offsetHeight),Math.max(ne.clientHeight,se.clientHeight));return new Ee(0,0,oe,me)},Fe=function(Ae){for(var ne=[],se=0,oe=Ae.length;se<oe;){var me=Ae.charCodeAt(se++);if(me>=55296&&me<=56319&&se<oe){var Qe=Ae.charCodeAt(se++);(Qe&64512)===56320?ne.push(((me&1023)<<10)+(Qe&1023)+65536):(ne.push(me),se--)}else ne.push(me)}return ne},Ie=function(){for(var Ae=[],ne=0;ne<arguments.length;ne++)Ae[ne]=arguments[ne];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ae);var se=Ae.length;if(!se)return"";for(var oe=[],me=-1,Qe="";++me<se;){var At=Ae[me];At<=65535?oe.push(At):(At-=65536,oe.push((At>>10)+55296,At%1024+56320)),(me+1===se||oe.length>16384)&&(Qe+=String.fromCharCode.apply(String,oe),oe.length=0)}return Qe},ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ut=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),we=0;we<ve.length;we++)ut[ve.charCodeAt(we)]=we;for(var ot="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Xe=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Je=0;Je<ot.length;Je++)Xe[ot.charCodeAt(Je)]=Je;for(var He=function(Ae){var ne=Ae.length*.75,se=Ae.length,oe,me=0,Qe,At,xt,Ct;Ae[Ae.length-1]==="="&&(ne--,Ae[Ae.length-2]==="="&&ne--);var Bn=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(ne):new Array(ne),In=Array.isArray(Bn)?Bn:new Uint8Array(Bn);for(oe=0;oe<se;oe+=4)Qe=Xe[Ae.charCodeAt(oe)],At=Xe[Ae.charCodeAt(oe+1)],xt=Xe[Ae.charCodeAt(oe+2)],Ct=Xe[Ae.charCodeAt(oe+3)],In[me++]=Qe<<2|At>>4,In[me++]=(At&15)<<4|xt>>2,In[me++]=(xt&3)<<6|Ct&63;return Bn},Te=function(Ae){for(var ne=Ae.length,se=[],oe=0;oe<ne;oe+=2)se.push(Ae[oe+1]<<8|Ae[oe]);return se},at=function(Ae){for(var ne=Ae.length,se=[],oe=0;oe<ne;oe+=4)se.push(Ae[oe+3]<<24|Ae[oe+2]<<16|Ae[oe+1]<<8|Ae[oe]);return se},Oe=5,We=11,be=2,Be=We-Oe,Ue=65536>>Oe,ke=1<<Oe,qe=ke-1,Pe=1024>>Oe,Ge=Ue+Pe,lt=Ge,je=32,ht=lt+je,et=65536>>We,ft=1<<Be,Tt=ft-1,Kt=function(Ae,ne,se){return Ae.slice?Ae.slice(ne,se):new Uint16Array(Array.prototype.slice.call(Ae,ne,se))},fn=function(Ae,ne,se){return Ae.slice?Ae.slice(ne,se):new Uint32Array(Array.prototype.slice.call(Ae,ne,se))},$t=function(Ae,ne){var se=He(Ae),oe=Array.isArray(se)?at(se):new Uint32Array(se),me=Array.isArray(se)?Te(se):new Uint16Array(se),Qe=24,At=Kt(me,Qe/2,oe[4]/2),xt=oe[5]===2?Kt(me,(Qe+oe[4])/2):fn(oe,Math.ceil((Qe+oe[4])/4));return new Re(oe[0],oe[1],oe[2],oe[3],At,xt)},Re=function(){function Ae(ne,se,oe,me,Qe,At){this.initialValue=ne,this.errorValue=se,this.highStart=oe,this.highValueIndex=me,this.index=Qe,this.data=At}return Ae.prototype.get=function(ne){var se;if(ne>=0){if(ne<55296||ne>56319&&ne<=65535)return se=this.index[ne>>Oe],se=(se<<be)+(ne&qe),this.data[se];if(ne<=65535)return se=this.index[Ue+(ne-55296>>Oe)],se=(se<<be)+(ne&qe),this.data[se];if(ne<this.highStart)return se=ht-et+(ne>>We),se=this.index[se],se+=ne>>Oe&Tt,se=this.index[se],se=(se<<be)+(ne&qe),this.data[se];if(ne<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Ae}(),xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lt=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Fn=0;Fn<xe.length;Fn++)Lt[xe.charCod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0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHL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IZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHA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HUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADA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QAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsA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AB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeA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ACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlAC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4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",vt=50,Jt=1,Yt=2,jn=3,yt=4,wn=5,Dt=7,un=8,ln=9,ge=10,ue=11,ee=12,b=13,ae=14,ie=15,he=16,Ye=17,pt=18,zt=19,ct=20,bt=21,Et=22,en=23,Dn=24,Mt=25,tt=26,on=27,jt=28,qt=29,wt=30,Rn=31,Wt=32,Cn=33,Mn=34,sr=35,vn=36,cr=37,ar=38,mr=39,$n=40,Xr=41,Pr=42,Er=43,Ar=[9001,65288],Qr="!",Vn="\xD7",qn="\xF7",Yn=$t(hn),pn=[wt,vn],Wn=[Jt,Yt,jn,wn],cn=[ge,un],Sn=[on,tt],fr=Wn.concat(cn),ir=[ar,mr,$n,Mn,sr],lr=[ie,b],xr=function(Ae,ne){ne===void 0&&(ne="strict");var se=[],oe=[],me=[];return Ae.forEach(function(Qe,At){var xt=Yn.get(Qe);if(xt>vt?(me.push(!0),xt-=vt):me.push(!1),["normal","auto","loose"].indexOf(ne)!==-1&&[8208,8211,12316,12448].indexOf(Qe)!==-1)return oe.push(At),se.push(he);if(xt===yt||xt===ue){if(At===0)return oe.push(At),se.push(wt);var Ct=se[At-1];return fr.indexOf(Ct)===-1?(oe.push(oe[At-1]),se.push(Ct)):(oe.push(At),se.push(wt))}if(oe.push(At),xt===Rn)return se.push(ne==="strict"?bt:cr);if(xt===Pr||xt===qt)return se.push(wt);if(xt===Er)return Qe>=131072&&Qe<=196605||Qe>=196608&&Qe<=262141?se.push(cr):se.push(wt);se.push(xt)}),[oe,se,me]},Wr=function(Ae,ne,se,oe){var me=oe[se];if(Array.isArray(Ae)?Ae.indexOf(me)!==-1:Ae===me)for(var Qe=se;Qe<=oe.length;){Qe++;var At=oe[Qe];if(At===ne)return!0;if(At!==ge)break}if(me===ge)for(var Qe=se;Qe>0;){Qe--;var xt=oe[Qe];if(Array.isArray(Ae)?Ae.indexOf(xt)!==-1:Ae===xt)for(var Ct=se;Ct<=oe.length;){Ct++;var At=oe[Ct];if(At===ne)return!0;if(At!==ge)break}if(xt!==ge)break}return!1},Dr=function(Ae,ne){for(var se=Ae;se>=0;){var oe=ne[se];if(oe===ge)se--;else return oe}return 0},Fr=function(Ae,ne,se,oe,me){if(se[oe]===0)return Vn;var Qe=oe-1;if(Array.isArray(me)&&me[Qe]===!0)return Vn;var At=Qe-1,xt=Qe+1,Ct=ne[Qe],Bn=At>=0?ne[At]:0,In=ne[xt];if(Ct===Yt&&In===jn)return Vn;if(Wn.indexOf(Ct)!==-1)return Qr;if(Wn.indexOf(In)!==-1||cn.indexOf(In)!==-1)return Vn;if(Dr(Qe,ne)===un)return qn;if(Yn.get(Ae[Qe])===ue||(Ct===Wt||Ct===Cn)&&Yn.get(Ae[xt])===ue||Ct===Dt||In===Dt||Ct===ln||[ge,b,ie].indexOf(Ct)===-1&&In===ln||[Ye,pt,zt,Dn,jt].indexOf(In)!==-1||Dr(Qe,ne)===Et||Wr(en,Et,Qe,ne)||Wr([Ye,pt],bt,Qe,ne)||Wr(ee,ee,Qe,ne))return Vn;if(Ct===ge)return qn;if(Ct===en||In===en)return Vn;if(In===he||Ct===he)return qn;if([b,ie,bt].indexOf(In)!==-1||Ct===ae||Bn===vn&&lr.indexOf(Ct)!==-1||Ct===jt&&In===vn||In===ct||pn.indexOf(In)!==-1&&Ct===Mt||pn.indexOf(Ct)!==-1&&In===Mt||Ct===on&&[cr,Wt,Cn].indexOf(In)!==-1||[cr,Wt,Cn].indexOf(Ct)!==-1&&In===tt||pn.indexOf(Ct)!==-1&&Sn.indexOf(In)!==-1||Sn.indexOf(Ct)!==-1&&pn.indexOf(In)!==-1||[on,tt].indexOf(Ct)!==-1&&(In===Mt||[Et,ie].indexOf(In)!==-1&&ne[xt+1]===Mt)||[Et,ie].indexOf(Ct)!==-1&&In===Mt||Ct===Mt&&[Mt,jt,Dn].indexOf(In)!==-1)return Vn;if([Mt,jt,Dn,Ye,pt].indexOf(In)!==-1)for(var Pn=Qe;Pn>=0;){var gr=ne[Pn];if(gr===Mt)return Vn;if([jt,Dn].indexOf(gr)!==-1)Pn--;else break}if([on,tt].indexOf(In)!==-1)for(var Pn=[Ye,pt].indexOf(Ct)!==-1?At:Qe;Pn>=0;){var gr=ne[Pn];if(gr===Mt)return Vn;if([jt,Dn].indexOf(gr)!==-1)Pn--;else break}if(ar===Ct&&[ar,mr,Mn,sr].indexOf(In)!==-1||[mr,Mn].indexOf(Ct)!==-1&&[mr,$n].indexOf(In)!==-1||[$n,sr].indexOf(Ct)!==-1&&In===$n||ir.indexOf(Ct)!==-1&&[ct,tt].indexOf(In)!==-1||ir.indexOf(In)!==-1&&Ct===on||pn.indexOf(Ct)!==-1&&pn.indexOf(In)!==-1||Ct===Dn&&pn.indexOf(In)!==-1||pn.concat(Mt).indexOf(Ct)!==-1&&In===Et&&Ar.indexOf(Ae[xt])===-1||pn.concat(Mt).indexOf(In)!==-1&&Ct===pt)return Vn;if(Ct===Xr&&In===Xr){for(var Bi=se[Qe],Yr=1;Bi>0&&(Bi--,ne[Bi]===Xr);)Yr++;if(Yr%2!==0)return Vn}return Ct===Wt&&In===Cn?Vn:qn},Rr=function(Ae,ne){ne||(ne={lineBreak:"normal",wordBreak:"normal"});var se=xr(Ae,ne.lineBreak),oe=se[0],me=se[1],Qe=se[2];(ne.wordBreak==="break-all"||ne.wordBreak==="break-word")&&(me=me.map(function(xt){return[Mt,wt,Pr].indexOf(xt)!==-1?cr:xt}));var At=ne.wordBreak==="keep-all"?Qe.map(function(xt,Ct){return xt&&Ae[Ct]>=19968&&Ae[Ct]<=40959}):void 0;return[oe,me,At]},Xn=function(){function Ae(ne,se,oe,me){this.codePoints=ne,this.required=se===Qr,this.start=oe,this.end=me}return Ae.prototype.slice=function(){return Ie.apply(void 0,this.codePoints.slice(this.start,this.end))},Ae}(),yn=function(Ae,ne){var se=Fe(Ae),oe=Rr(se,ne),me=oe[0],Qe=oe[1],At=oe[2],xt=se.length,Ct=0,Bn=0;return{next:function(){if(Bn>=xt)return{done:!0,value:null};for(var In=Vn;Bn<xt&&(In=Fr(se,Qe,me,++Bn,At))===Vn;);if(In!==Vn||Bn===xt){var Pn=new Xn(se,In,Ct,Bn);return Ct=Bn,{value:Pn,done:!1}}return{done:!0,value:null}}}},rt=1,Sr=2,Kr=4,_t=8,St=10,Jn=47,Hn=92,Ot=9,kn=32,nr=34,rr=61,er=35,ur=36,wr=37,It=39,an=40,mt=41,dn=95,Tn=45,Br=33,_r=60,Or=62,yr=64,kr=91,ii=93,jr=61,hi=123,gi=63,oi=125,vi=124,Ne=126,_e=128,it=65533,gt=42,Vt=43,Nt=44,Qn=58,Nn=59,Zn=46,Gn=0,Kn=8,zn=11,st=14,Rt=31,kt=127,Ht=-1,Zt=48,gn=97,On=101,$e=102,mn=117,Ut=122,tn=65,sn=69,Gt=70,nn=85,An=90,Bt=function(Ae){return Ae>=Zt&&Ae<=57},rn=function(Ae){return Ae>=55296&&Ae<=57343},Ln=function(Ae){return Bt(Ae)||Ae>=tn&&Ae<=Gt||Ae>=gn&&Ae<=$e},dr=function(Ae){return Ae>=gn&&Ae<=Ut},tr=function(Ae){return Ae>=tn&&Ae<=An},br=function(Ae){return dr(Ae)||tr(Ae)},hr=function(Ae){return Ae>=_e},Tr=function(Ae){return Ae===St||Ae===Ot||Ae===kn},Hr=function(Ae){return br(Ae)||hr(Ae)||Ae===dn},fi=function(Ae){return Hr(Ae)||Bt(Ae)||Ae===Tn},Jr=function(Ae){return Ae>=Gn&&Ae<=Kn||Ae===zn||Ae>=st&&Ae<=Rt||Ae===kt},Ai=function(Ae,ne){return Ae!==Hn?!1:ne!==St},si=function(Ae,ne,se){return Ae===Tn?Hr(ne)||Ai(ne,se):Hr(Ae)?!0:!!(Ae===Hn&&Ai(Ae,ne))},ti=function(Ae,ne,se){return Ae===Vt||Ae===Tn?Bt(ne)?!0:ne===Zn&&Bt(se):Bt(Ae===Zn?ne:Ae)},ei=function(Ae){var ne=0,se=1;(Ae[ne]===Vt||Ae[ne]===Tn)&&(Ae[ne]===Tn&&(se=-1),ne++);for(var oe=[];Bt(Ae[ne]);)oe.push(Ae[ne++]);var me=oe.length?parseInt(Ie.apply(void 0,oe),10):0;Ae[ne]===Zn&&ne++;for(var Qe=[];Bt(Ae[ne]);)Qe.push(Ae[ne++]);var At=Qe.length,xt=At?parseInt(Ie.apply(void 0,Qe),10):0;(Ae[ne]===sn||Ae[ne]===On)&&ne++;var Ct=1;(Ae[ne]===Vt||Ae[ne]===Tn)&&(Ae[ne]===Tn&&(Ct=-1),ne++);for(var Bn=[];Bt(Ae[ne]);)Bn.push(Ae[ne++]);var In=Bn.length?parseInt(Ie.apply(void 0,Bn),10):0;return se*(me+xt*Math.pow(10,-At))*Math.pow(10,Ct*In)},$r={type:2},Lr={type:3},qr={type:4},Zr={type:13},bi={type:8},ui={type:21},Ci={type:9},Ti={type:10},xA={type:11},gA={type:12},la={type:14},dA={type:23},qi={type:1},tA={type:25},nA={type:24},EA={type:26},hA={type:27},yA={type:28},wA={type:29},ni={type:31},mi={type:32},Ei=function(){function Ae(){this._value=[]}return Ae.prototype.write=function(ne){this._value=this._value.concat(Fe(ne))},Ae.prototype.read=function(){for(var ne=[],se=this.consumeToken();se!==mi;)ne.push(se),se=this.consumeToken();return ne},Ae.prototype.consumeToken=function(){var ne=this.consumeCodePoint();switch(ne){case nr:return this.consumeStringToken(nr);case er:var se=this.peekCodePoint(0),oe=this.peekCodePoint(1),me=this.peekCodePoint(2);if(fi(se)||Ai(oe,me)){var Qe=si(se,oe,me)?Sr:rt,At=this.consumeName();return{type:5,value:At,flags:Qe}}break;case ur:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Zr;break;case It:return this.consumeStringToken(It);case an:return $r;case mt:return Lr;case gt:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),la;break;case Vt:if(ti(ne,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ne),this.consumeNumericToken();break;case Nt:return qr;case Tn:var xt=ne,Ct=this.peekCodePoint(0),Bn=this.peekCodePoint(1);if(ti(xt,Ct,Bn))return this.reconsumeCodePoint(ne),this.consumeNumericToken();if(si(xt,Ct,Bn))return this.reconsumeCodePoint(ne),this.consumeIdentLikeToken();if(Ct===Tn&&Bn===Or)return this.consumeCodePoint(),this.consumeCodePoint(),nA;break;case Zn:if(ti(ne,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ne),this.consumeNumericToken();break;case Jn:if(this.peekCodePoint(0)===gt)for(this.consumeCodePoint();;){var In=this.consumeCodePoint();if(In===gt&&(In=this.consumeCodePoint(),In===Jn))return this.consumeToken();if(In===Ht)return this.consumeToken()}break;case Qn:return EA;case Nn:return hA;case _r:if(this.peekCodePoint(0)===Br&&this.peekCodePoint(1)===Tn&&this.peekCodePoint(2)===Tn)return this.consumeCodePoint(),this.consumeCodePoint(),tA;break;case yr:var Pn=this.peekCodePoint(0),gr=this.peekCodePoint(1),Bi=this.peekCodePoint(2);if(si(Pn,gr,Bi)){var At=this.consumeName();return{type:7,value:At}}break;case kr:return yA;case Hn:if(Ai(ne,this.peekCodePoint(0)))return this.reconsumeCodePoint(ne),this.consumeIdentLikeToken();break;case ii:return wA;case jr:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),bi;break;case hi:return xA;case oi:return gA;case mn:case nn:var Yr=this.peekCodePoint(0),ci=this.peekCodePoint(1);return Yr===Vt&&(Ln(ci)||ci===gi)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ne),this.consumeIdentLikeToken();case vi:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Ci;if(this.peekCodePoint(0)===vi)return this.consumeCodePoint(),ui;break;case Ne:if(this.peekCodePoint(0)===rr)return this.consumeCodePoint(),Ti;break;case Ht:return mi}return Tr(ne)?(this.consumeWhiteSpace(),ni):Bt(ne)?(this.reconsumeCodePoint(ne),this.consumeNumericToken()):Hr(ne)?(this.reconsumeCodePoint(ne),this.consumeIdentLikeToken()):{type:6,value:Ie(ne)}},Ae.prototype.consumeCodePoint=function(){var ne=this._value.shift();return typeof ne=="undefined"?-1:ne},Ae.prototype.reconsumeCodePoint=function(ne){this._value.unshift(ne)},Ae.prototype.peekCodePoint=function(ne){return ne>=this._value.length?-1:this._value[ne]},Ae.prototype.consumeUnicodeRangeToken=function(){for(var ne=[],se=this.consumeCodePoint();Ln(se)&&ne.length<6;)ne.push(se),se=this.consumeCodePoint();for(var oe=!1;se===gi&&ne.length<6;)ne.push(se),se=this.consumeCodePoint(),oe=!0;if(oe){var me=parseInt(Ie.apply(void 0,ne.map(function(Ct){return Ct===gi?Zt:Ct})),16),Qe=parseInt(Ie.apply(void 0,ne.map(function(Ct){return Ct===gi?Gt:Ct})),16);return{type:30,start:me,end:Qe}}var At=parseInt(Ie.apply(void 0,ne),16);if(this.peekCodePoint(0)===Tn&&Ln(this.peekCodePoint(1))){this.consumeCodePoint(),se=this.consumeCodePoint();for(var xt=[];Ln(se)&&xt.length<6;)xt.push(se),se=this.consumeCodePoint();var Qe=parseInt(Ie.apply(void 0,xt),16);return{type:30,start:At,end:Qe}}else return{type:30,start:At,end:At}},Ae.prototype.consumeIdentLikeToken=function(){var ne=this.consumeName();return ne.toLowerCase()==="url"&&this.peekCodePoint(0)===an?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===an?(this.consumeCodePoint(),{type:19,value:ne}):{type:20,value:ne}},Ae.prototype.consumeUrlToken=function(){var ne=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ht)return{type:22,value:""};var se=this.peekCodePoint(0);if(se===It||se===nr){var oe=this.consumeStringToken(this.consumeCodePoint());return oe.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ht||this.peekCodePoint(0)===mt)?(this.consumeCodePoint(),{type:22,value:oe.value}):(this.consumeBadUrlRemnants(),dA)}for(;;){var me=this.consumeCodePoint();if(me===Ht||me===mt)return{type:22,value:Ie.apply(void 0,ne)};if(Tr(me))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ht||this.peekCodePoint(0)===mt?(this.consumeCodePoint(),{type:22,value:Ie.apply(void 0,ne)}):(this.consumeBadUrlRemnants(),dA);if(me===nr||me===It||me===an||Jr(me))return this.consumeBadUrlRemnants(),dA;if(me===Hn)if(Ai(me,this.peekCodePoint(0)))ne.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),dA;else ne.push(me)}},Ae.prototype.consumeWhiteSpace=function(){for(;Tr(this.peekCodePoint(0));)this.consumeCodePoint()},Ae.prototype.consumeBadUrlRemnants=function(){for(;;){var ne=this.consumeCodePoint();if(ne===mt||ne===Ht)return;Ai(ne,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Ae.prototype.consumeStringSlice=function(ne){for(var se=5e4,oe="";ne>0;){var me=Math.min(se,ne);oe+=Ie.apply(void 0,this._value.splice(0,me)),ne-=me}return this._value.shift(),oe},Ae.prototype.consumeStringToken=function(ne){var se="",oe=0;do{var me=this._value[oe];if(me===Ht||me===void 0||me===ne)return se+=this.consumeStringSlice(oe),{type:0,value:se};if(me===St)return this._value.splice(0,oe),qi;if(me===Hn){var Qe=this._value[oe+1];Qe!==Ht&&Qe!==void 0&&(Qe===St?(se+=this.consumeStringSlice(oe),oe=-1,this._value.shift()):Ai(me,Qe)&&(se+=this.consumeStringSlice(oe),se+=Ie(this.consumeEscapedCodePoint()),oe=-1))}oe++}while(!0)},Ae.prototype.consumeNumber=function(){var ne=[],se=Kr,oe=this.peekCodePoint(0);for((oe===Vt||oe===Tn)&&ne.push(this.consumeCodePoint());Bt(this.peekCodePoint(0));)ne.push(this.consumeCodePoint());oe=this.peekCodePoint(0);var me=this.peekCodePoint(1);if(oe===Zn&&Bt(me))for(ne.push(this.consumeCodePoint(),this.consumeCodePoint()),se=_t;Bt(this.peekCodePoint(0));)ne.push(this.consumeCodePoint());oe=this.peekCodePoint(0),me=this.peekCodePoint(1);var Qe=this.peekCodePoint(2);if((oe===sn||oe===On)&&((me===Vt||me===Tn)&&Bt(Qe)||Bt(me)))for(ne.push(this.consumeCodePoint(),this.consumeCodePoint()),se=_t;Bt(this.peekCodePoint(0));)ne.push(this.consumeCodePoint());return[ei(ne),se]},Ae.prototype.consumeNumericToken=function(){var ne=this.consumeNumber(),se=ne[0],oe=ne[1],me=this.peekCodePoint(0),Qe=this.peekCodePoint(1),At=this.peekCodePoint(2);if(si(me,Qe,At)){var xt=this.consumeName();return{type:15,number:se,flags:oe,unit:xt}}return me===wr?(this.consumeCodePoint(),{type:16,number:se,flags:oe}):{type:17,number:se,flags:oe}},Ae.prototype.consumeEscapedCodePoint=function(){var ne=this.consumeCodePoint();if(Ln(ne)){for(var se=Ie(ne);Ln(this.peekCodePoint(0))&&se.length<6;)se+=Ie(this.consumeCodePoint());Tr(this.peekCodePoint(0))&&this.consumeCodePoint();var oe=parseInt(se,16);return oe===0||rn(oe)||oe>1114111?it:oe}return ne===Ht?it:ne},Ae.prototype.consumeName=function(){for(var ne="";;){var se=this.consumeCodePoint();if(fi(se))ne+=Ie(se);else if(Ai(se,this.peekCodePoint(0)))ne+=Ie(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(se),ne}},Ae}(),Fi=function(){function Ae(ne){this._tokens=ne}return Ae.create=function(ne){var se=new Ei;return se.write(ne),new Ae(se.read())},Ae.parseValue=function(ne){return Ae.create(ne).parseComponentValue()},Ae.parseValues=function(ne){return Ae.create(ne).parseComponentValues()},Ae.prototype.parseComponentValue=function(){for(var ne=this.consumeToken();ne.type===31;)ne=this.consumeToken();if(ne.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ne);var se=this.consumeComponentValue();do ne=this.consumeToken();while(ne.type===31);if(ne.type===32)return se;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Ae.prototype.parseComponentValues=function(){for(var ne=[];;){var se=this.consumeComponentValue();if(se.type===32)return ne;ne.push(se),ne.push()}},Ae.prototype.consumeComponentValue=function(){var ne=this.consumeToken();switch(ne.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ne.type);case 19:return this.consumeFunction(ne)}return ne},Ae.prototype.consumeSimpleBlock=function(ne){for(var se={type:ne,values:[]},oe=this.consumeToken();;){if(oe.type===32||wi(oe,ne))return se;this.reconsumeToken(oe),se.values.push(this.consumeComponentValue()),oe=this.consumeToken()}},Ae.prototype.consumeFunction=function(ne){for(var se={name:ne.value,values:[],type:18};;){var oe=this.consumeToken();if(oe.type===32||oe.type===3)return se;this.reconsumeToken(oe),se.values.push(this.consumeComponentValue())}},Ae.prototype.consumeToken=function(){var ne=this._tokens.shift();return typeof ne=="undefined"?mi:ne},Ae.prototype.reconsumeToken=function(ne){this._tokens.unshift(ne)},Ae}(),Ni=function(Ae){return Ae.type===15},Xi=function(Ae){return Ae.type===17},Mi=function(Ae){return Ae.type===20},BA=function(Ae){return Ae.type===0},CA=function(Ae,ne){return Mi(Ae)&&Ae.value===ne},Qi=function(Ae){return Ae.type!==31},pr=function(Ae){return Ae.type!==31&&Ae.type!==4},ai=function(Ae){var ne=[],se=[];return Ae.forEach(function(oe){if(oe.type===4){if(se.length===0)throw new Error("Error parsing function args, zero tokens for arg");ne.push(se),se=[];return}oe.type!==31&&se.push(oe)}),se.length&&ne.push(se),ne},wi=function(Ae,ne){return ne===11&&Ae.type===12||ne===28&&Ae.type===29?!0:ne===2&&Ae.type===3},UA=function(Ae){return Ae.type===17||Ae.type===15},ji=function(Ae){return Ae.type===16||UA(Ae)},DA=function(Ae){return Ae.length>1?[Ae[0],Ae[1]]:[Ae[0]]},Li={type:17,number:0,flags:Kr},_a={type:16,number:50,flags:Kr},fa={type:16,number:100,flags:Kr},KA=function(Ae,ne,se){var oe=Ae[0],me=Ae[1];return[Vi(oe,ne),Vi(typeof me!="undefined"?me:oe,se)]},Vi=function(Ae,ne){if(Ae.type===16)return Ae.number/100*ne;if(Ni(Ae))switch(Ae.unit){case"rem":case"em":return 16*Ae.number;case"px":default:return Ae.number}return Ae.number},Oi="deg",wa="grad",Ba="rad",ra="turn",ZA={name:"angle",parse:function(Ae,ne){if(ne.type===15)switch(ne.unit){case Oi:return Math.PI*ne.number/180;case wa:return Math.PI/200*ne.number;case Ba:return ne.number;case ra:return Math.PI*2*ne.number}throw new Error("Unsupported angle type")}},Ka=function(Ae){return Ae.type===15&&(Ae.unit===Oi||Ae.unit===wa||Ae.unit===Ba||Ae.unit===ra)},ka=function(Ae){var ne=Ae.filter(Mi).map(function(se){return se.value}).join(" ");switch(ne){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Li,Li];case"to top":case"bottom":return HA(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Li,fa];case"to right":case"left":return HA(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fa,fa];case"to bottom":case"top":return HA(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fa,Li];case"to left":case"right":return HA(270)}return 0},HA=function(Ae){return Math.PI*Ae/180},ia={name:"color",parse:function(Ae,ne){if(ne.type===18){var se=Hi[ne.name];if(typeof se=="undefined")throw new Error('Attempting to parse an unsupported color function "'+ne.name+'"');return se(Ae,ne.values)}if(ne.type===5){if(ne.value.length===3){var oe=ne.value.substring(0,1),me=ne.value.substring(1,2),Qe=ne.value.substring(2,3);return ua(parseInt(oe+oe,16),parseInt(me+me,16),parseInt(Qe+Qe,16),1)}if(ne.value.length===4){var oe=ne.value.substring(0,1),me=ne.value.substring(1,2),Qe=ne.value.substring(2,3),At=ne.value.substring(3,4);return ua(parseInt(oe+oe,16),parseInt(me+me,16),parseInt(Qe+Qe,16),parseInt(At+At,16)/255)}if(ne.value.length===6){var oe=ne.value.substring(0,2),me=ne.value.substring(2,4),Qe=ne.value.substring(4,6);return ua(parseInt(oe,16),parseInt(me,16),parseInt(Qe,16),1)}if(ne.value.length===8){var oe=ne.value.substring(0,2),me=ne.value.substring(2,4),Qe=ne.value.substring(4,6),At=ne.value.substring(6,8);return ua(parseInt(oe,16),parseInt(me,16),parseInt(Qe,16),parseInt(At,16)/255)}}if(ne.type===20){var xt=pA[ne.value.toUpperCase()];if(typeof xt!="undefined")return xt}return pA.TRANSPARENT}},vA=function(Ae){return(255&Ae)===0},uA=function(Ae){var ne=255&Ae,se=255&Ae>>8,oe=255&Ae>>16,me=255&Ae>>24;return ne<255?"rgba("+me+","+oe+","+se+","+ne/255+")":"rgb("+me+","+oe+","+se+")"},ua=function(Ae,ne,se,oe){return(Ae<<24|ne<<16|se<<8|Math.round(oe*255)<<0)>>>0},Ua=function(Ae,ne){if(Ae.type===17)return Ae.number;if(Ae.type===16){var se=ne===3?1:255;return ne===3?Ae.number/100*se:Math.round(Ae.number/100*se)}return 0},Da=function(Ae,ne){var se=ne.filter(pr);if(se.length===3){var oe=se.map(Ua),me=oe[0],Qe=oe[1],At=oe[2];return ua(me,Qe,At,1)}if(se.length===4){var xt=se.map(Ua),me=xt[0],Qe=xt[1],At=xt[2],Ct=xt[3];return ua(me,Qe,At,Ct)}return 0};function JA(Ae,ne,se){return se<0&&(se+=1),se>=1&&(se-=1),se<1/6?(ne-Ae)*se*6+Ae:se<1/2?ne:se<2/3?(ne-Ae)*6*(2/3-se)+Ae:Ae}var fA=function(Ae,ne){var se=ne.filter(pr),oe=se[0],me=se[1],Qe=se[2],At=se[3],xt=(oe.type===17?HA(oe.number):ZA.parse(Ae,oe))/(Math.PI*2),Ct=ji(me)?me.number/100:0,Bn=ji(Qe)?Qe.number/100:0,In=typeof At!="undefined"&&ji(At)?Vi(At,1):1;if(Ct===0)return ua(Bn*255,Bn*255,Bn*255,1);var Pn=Bn<=.5?Bn*(Ct+1):Bn+Ct-Bn*Ct,gr=Bn*2-Pn,Bi=JA(gr,Pn,xt+1/3),Yr=JA(gr,Pn,xt),ci=JA(gr,Pn,xt-1/3);return ua(Bi*255,Yr*255,ci*255,In)},Hi={hsl:fA,hsla:fA,rgb:Da,rgba:Da},Di=function(Ae,ne){return ia.parse(Ae,Fi.create(ne).parseComponentValue())},pA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},rA={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Ae,ne){return ne.map(function(se){if(Mi(se))switch(se.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},OA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},NA=function(Ae,ne){var se=ia.parse(Ae,ne[0]),oe=ne[1];return oe&&ji(oe)?{color:se,stop:oe}:{color:se,stop:null}},Ia=function(Ae,ne){var se=Ae[0],oe=Ae[Ae.length-1];se.stop===null&&(se.stop=Li),oe.stop===null&&(oe.stop=fa);for(var me=[],Qe=0,At=0;At<Ae.length;At++){var xt=Ae[At].stop;if(xt!==null){var Ct=Vi(xt,ne);Ct>Qe?me.push(Ct):me.push(Qe),Qe=Ct}else me.push(null)}for(var Bn=null,At=0;At<me.length;At++){var In=me[At];if(In===null)Bn===null&&(Bn=At);else if(Bn!==null){for(var Pn=At-Bn,gr=me[Bn-1],Bi=(In-gr)/(Pn+1),Yr=1;Yr<=Pn;Yr++)me[Bn+Yr-1]=Bi*Yr;Bn=null}}return Ae.map(function(ci,aA){var Ui=ci.color;return{color:Ui,stop:Math.max(Math.min(1,me[aA]/ne),0)}})},Ca=function(Ae,ne,se){var oe=ne/2,me=se/2,Qe=Vi(Ae[0],ne)-oe,At=me-Vi(Ae[1],se);return(Math.atan2(At,Qe)+Math.PI*2)%(Math.PI*2)},Qa=function(Ae,ne,se){var oe=typeof Ae=="number"?Ae:Ca(Ae,ne,se),me=Math.abs(ne*Math.sin(oe))+Math.abs(se*Math.cos(oe)),Qe=ne/2,At=se/2,xt=me/2,Ct=Math.sin(oe-Math.PI/2)*xt,Bn=Math.cos(oe-Math.PI/2)*xt;return[me,Qe-Bn,Qe+Bn,At-Ct,At+Ct]},iA=function(Ae,ne){return Math.sqrt(Ae*Ae+ne*ne)},qA=function(Ae,ne,se,oe,me){var Qe=[[0,0],[0,ne],[Ae,0],[Ae,ne]];return Qe.reduce(function(At,xt){var Ct=xt[0],Bn=xt[1],In=iA(se-Ct,oe-Bn);return(me?In<At.optimumDistance:In>At.optimumDistance)?{optimumCorner:xt,optimumDistance:In}:At},{optimumDistance:me?1/0:-1/0,optimumCorner:null}).optimumCorner},ga=function(Ae,ne,se,oe,me){var Qe=0,At=0;switch(Ae.size){case 0:Ae.shape===0?Qe=At=Math.min(Math.abs(ne),Math.abs(ne-oe),Math.abs(se),Math.abs(se-me)):Ae.shape===1&&(Qe=Math.min(Math.abs(ne),Math.abs(ne-oe)),At=Math.min(Math.abs(se),Math.abs(se-me)));break;case 2:if(Ae.shape===0)Qe=At=Math.min(iA(ne,se),iA(ne,se-me),iA(ne-oe,se),iA(ne-oe,se-me));else if(Ae.shape===1){var xt=Math.min(Math.abs(se),Math.abs(se-me))/Math.min(Math.abs(ne),Math.abs(ne-oe)),Ct=qA(oe,me,ne,se,!0),Bn=Ct[0],In=Ct[1];Qe=iA(Bn-ne,(In-se)/xt),At=xt*Qe}break;case 1:Ae.shape===0?Qe=At=Math.max(Math.abs(ne),Math.abs(ne-oe),Math.abs(se),Math.abs(se-me)):Ae.shape===1&&(Qe=Math.max(Math.abs(ne),Math.abs(ne-oe)),At=Math.max(Math.abs(se),Math.abs(se-me)));break;case 3:if(Ae.shape===0)Qe=At=Math.max(iA(ne,se),iA(ne,se-me),iA(ne-oe,se),iA(ne-oe,se-me));else if(Ae.shape===1){var xt=Math.max(Math.abs(se),Math.abs(se-me))/Math.max(Math.abs(ne),Math.abs(ne-oe)),Pn=qA(oe,me,ne,se,!1),Bn=Pn[0],In=Pn[1];Qe=iA(Bn-ne,(In-se)/xt),At=xt*Qe}break}return Array.isArray(Ae.size)&&(Qe=Vi(Ae.size[0],oe),At=Ae.size.length===2?Vi(Ae.size[1],me):Qe),[Qe,At]},La=function(Ae,ne){var se=HA(180),oe=[];return ai(ne).forEach(function(me,Qe){if(Qe===0){var At=me[0];if(At.type===20&&At.value==="to"){se=ka(me);return}else if(Ka(At)){se=ZA.parse(Ae,At);return}}var xt=NA(Ae,me);oe.push(xt)}),{angle:se,stops:oe,type:1}},Va=function(Ae,ne){var se=HA(180),oe=[];return ai(ne).forEach(function(me,Qe){if(Qe===0){var At=me[0];if(At.type===20&&["top","left","right","bottom"].indexOf(At.value)!==-1){se=ka(me);return}else if(Ka(At)){se=(ZA.parse(Ae,At)+HA(270))%HA(360);return}}var xt=NA(Ae,me);oe.push(xt)}),{angle:se,stops:oe,type:1}},jo=function(Ae,ne){var se=HA(180),oe=[],me=1,Qe=0,At=3,xt=[];return ai(ne).forEach(function(Ct,Bn){var In=Ct[0];if(Bn===0){if(Mi(In)&&In.value==="linear"){me=1;return}else if(Mi(In)&&In.value==="radial"){me=2;return}}if(In.type===18){if(In.name==="from"){var Pn=ia.parse(Ae,In.values[0]);oe.push({stop:Li,color:Pn})}else if(In.name==="to"){var Pn=ia.parse(Ae,In.values[0]);oe.push({stop:fa,color:Pn})}else if(In.name==="color-stop"){var gr=In.values.filter(pr);if(gr.length===2){var Pn=ia.parse(Ae,gr[1]),Bi=gr[0];Xi(Bi)&&oe.push({stop:{type:16,number:Bi.number*100,flags:Bi.flags},color:Pn})}}}}),me===1?{angle:(se+HA(180))%HA(360),stops:oe,type:me}:{size:At,shape:Qe,stops:oe,position:xt,type:me}},Do="closest-side",Za="farthest-side",ja="closest-corner",$A="farthest-corner",ea="circle",ca="ellipse",mo="cover",Io="contain",ls=function(Ae,ne){var se=0,oe=3,me=[],Qe=[];return ai(ne).forEach(function(At,xt){var Ct=!0;if(xt===0){var Bn=!1;Ct=At.reduce(function(Pn,gr){if(Bn)if(Mi(gr))switch(gr.value){case"center":return Qe.push(_a),Pn;case"top":case"left":return Qe.push(Li),Pn;case"right":case"bottom":return Qe.push(fa),Pn}else(ji(gr)||UA(gr))&&Qe.push(gr);else if(Mi(gr))switch(gr.value){case ea:return se=0,!1;case ca:return se=1,!1;case"at":return Bn=!0,!1;case Do:return oe=0,!1;case mo:case Za:return oe=1,!1;case Io:case ja:return oe=2,!1;case $A:return oe=3,!1}else if(UA(gr)||ji(gr))return Array.isArray(oe)||(oe=[]),oe.push(gr),!1;return Pn},Ct)}if(Ct){var In=NA(Ae,At);me.push(In)}}),{size:oe,shape:se,stops:me,position:Qe,type:2}},za=function(Ae,ne){var se=0,oe=3,me=[],Qe=[];return ai(ne).forEach(function(At,xt){var Ct=!0;if(xt===0?Ct=At.reduce(function(In,Pn){if(Mi(Pn))switch(Pn.value){case"center":return Qe.push(_a),!1;case"top":case"left":return Qe.push(Li),!1;case"right":case"bottom":return Qe.push(fa),!1}else if(ji(Pn)||UA(Pn))return Qe.push(Pn),!1;return In},Ct):xt===1&&(Ct=At.reduce(function(In,Pn){if(Mi(Pn))switch(Pn.value){case ea:return se=0,!1;case ca:return se=1,!1;case Io:case Do:return oe=0,!1;case Za:return oe=1,!1;case ja:return oe=2,!1;case mo:case $A:return oe=3,!1}else if(UA(Pn)||ji(Pn))return Array.isArray(oe)||(oe=[]),oe.push(Pn),!1;return In},Ct)),Ct){var Bn=NA(Ae,At);me.push(Bn)}}),{size:oe,shape:se,stops:me,position:Qe,type:2}},us=function(Ae){return Ae.type===1},Yo=function(Ae){return Ae.type===2},Ta={name:"image",parse:function(Ae,ne){if(ne.type===22){var se={url:ne.value,type:0};return Ae.cache.addImage(ne.value),se}if(ne.type===18){var oe=Lo[ne.name];if(typeof oe=="undefined")throw new Error('Attempting to parse an unsupported image function "'+ne.name+'"');return oe(Ae,ne.values)}throw new Error("Unsupported image type "+ne.type)}};function Qo(Ae){return!(Ae.type===20&&Ae.value==="none")&&(Ae.type!==18||!!Lo[Ae.name])}var Lo={"linear-gradient":La,"-moz-linear-gradient":Va,"-ms-linear-gradient":Va,"-o-linear-gradient":Va,"-webkit-linear-gradient":Va,"radial-gradient":ls,"-moz-radial-gradient":za,"-ms-radial-gradient":za,"-o-radial-gradient":za,"-webkit-radial-gradient":za,"-webkit-gradient":jo},Xo={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ne){if(ne.length===0)return[];var se=ne[0];return se.type===20&&se.value==="none"?[]:ne.filter(function(oe){return pr(oe)&&Qo(oe)}).map(function(oe){return Ta.parse(Ae,oe)})}},Jo={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Ae,ne){return ne.map(function(se){if(Mi(se))switch(se.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},qo={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Ae,ne){return ai(ne).map(function(se){return se.filter(ji)}).map(DA)}},lo={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Ae,ne){return ai(ne).map(function(se){return se.filter(Mi).map(function(oe){return oe.value}).join(" ")}).map(yo)}},yo=function(Ae){switch(Ae){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Ya;(function(Ae){Ae.AUTO="auto",Ae.CONTAIN="contain",Ae.COVER="cover"})(Ya||(Ya={}));var to={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Ae,ne){return ai(ne).map(function(se){return se.filter(IA)})}},IA=function(Ae){return Mi(Ae)||ji(Ae)},uo=function(Ae){return{name:"border-"+Ae+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},cs=uo("top"),$o=uo("right"),es=uo("bottom"),wo=uo("left"),no=function(Ae){return{name:"border-radius-"+Ae,initialValue:"0 0",prefix:!1,type:1,parse:function(ne,se){return DA(se.filter(ji))}}},fs=no("top-left"),Bo=no("top-right"),Xa=no("bottom-right"),ro=no("bottom-left"),co=function(Ae){return{name:"border-"+Ae+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(ne,se){switch(se){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},io=co("top"),zi=co("right"),Wi=co("bottom"),zA=co("left"),WA=function(Ae){return{name:"border-"+Ae+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ne,se){return Ni(se)?se.number:0}}},ta=WA("top"),fo=WA("right"),Ja=WA("bottom"),ho=WA("left"),Na={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},qa={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"rtl":return 1;case"ltr":default:return 0}}},eu={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Ae,ne){return ne.filter(Mi).reduce(function(se,oe){return se|tu(oe.value)},0)}},tu=function(Ae){switch(Ae){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},nu={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},ru={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Ae,ne){return ne.type===20&&ne.value==="normal"?0:ne.type===17||ne.type===15?ne.number:0}},Ds;(function(Ae){Ae.NORMAL="normal",Ae.STRICT="strict"})(Ds||(Ds={}));var iu={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"strict":return Ds.STRICT;case"normal":default:return Ds.NORMAL}}},Ma={name:"line-height",initialValue:"normal",prefix:!1,type:4},Aa=function(Ae,ne){return Mi(Ae)&&Ae.value==="normal"?1.2*ne:Ae.type===17?ne*Ae.number:ji(Ae)?Vi(Ae,ne):ne},va={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Ae,ne){return ne.type===20&&ne.value==="none"?null:Ta.parse(Ae,ne)}},oa={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"inside":return 0;case"outside":default:return 1}}},To={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Wa=function(Ae){return{name:"margin-"+Ae,initialValue:"0",prefix:!1,type:4}},Is=Wa("top"),Au=Wa("right"),Ul=Wa("bottom"),au=Wa("left"),Js={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Ae,ne){return ne.filter(Mi).map(function(se){switch(se.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},ts={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"break-word":return"break-word";case"normal":default:return"normal"}}},Co=function(Ae){return{name:"padding-"+Ae,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},qs=Co("top"),$s=Co("right"),Qs=Co("bottom"),Dl=Co("left"),ns={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},ds={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Il={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ne){return ne.length===1&&CA(ne[0],"none")?[]:ai(ne).map(function(se){for(var oe={color:pA.TRANSPARENT,offsetX:Li,offsetY:Li,blur:Li},me=0,Qe=0;Qe<se.length;Qe++){var At=se[Qe];UA(At)?(me===0?oe.offsetX=At:me===1?oe.offsetY=At:oe.blur=At,me++):oe.color=ia.parse(Ae,At)}return oe})}},hs={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},ou={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Ae,ne){if(ne.type===20&&ne.value==="none")return null;if(ne.type===18){var se=Ql[ne.name];if(typeof se=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+ne.name+'"');return se(ne.values)}return null}},Ls=function(Ae){var ne=Ae.filter(function(se){return se.type===17}).map(function(se){return se.number});return ne.length===6?ne:null},Ra=function(Ae){var ne=Ae.filter(function(Ct){return Ct.type===17}).map(function(Ct){return Ct.number}),se=ne[0],oe=ne[1];ne[2],ne[3];var me=ne[4],Qe=ne[5];ne[6],ne[7],ne[8],ne[9],ne[10],ne[11];var At=ne[12],xt=ne[13];return ne[14],ne[15],ne.length===16?[se,oe,me,Qe,At,xt]:null},Ql={matrix:Ls,matrix3d:Ra},Ll={type:16,number:50,flags:Kr},Tl=[Ll,Ll],Oa={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Ae,ne){var se=ne.filter(ji);return se.length!==2?Tl:[se[0],se[1]]}},mA={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},xa;(function(Ae){Ae.NORMAL="normal",Ae.BREAK_ALL="break-all",Ae.KEEP_ALL="keep-all"})(xa||(xa={}));for(var xo={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"break-all":return xa.BREAK_ALL;case"keep-all":return xa.KEEP_ALL;case"normal":default:return xa.NORMAL}}},Eo={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Ae,ne){if(ne.type===20)return{auto:!0,order:0};if(Xi(ne))return{auto:!1,order:ne.number};throw new Error("Invalid z-index number parsed")}},el={name:"time",parse:function(Ae,ne){if(ne.type===15)switch(ne.unit.toLowerCase()){case"s":return 1e3*ne.number;case"ms":return ne.number}throw new Error("Unsupported time type")}},tl={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Ae,ne){return Xi(ne)?ne.number:1}},Ml={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},su={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Ae,ne){return ne.filter(Mi).map(function(se){switch(se.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(se){return se!==0})}},nl={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Ae,ne){var se=[],oe=[];return ne.forEach(function(me){switch(me.type){case 20:case 0:se.push(me.value);break;case 17:se.push(me.number.toString());break;case 4:oe.push(se.join(" ")),se.length=0;break}}),se.length&&oe.push(se.join(" ")),oe.map(function(me){return me.indexOf(" ")===-1?me:"'"+me+"'"})}},ps={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ts={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Ae,ne){if(Xi(ne))return ne.number;if(Mi(ne))switch(ne.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ms={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ne){return ne.filter(Mi).map(function(se){return se.value})}},bo={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,ne){switch(ne){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},aa=function(Ae,ne){return(Ae&ne)!==0},Hl={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ne){if(ne.length===0)return[];var se=ne[0];return se.type===20&&se.value==="none"?[]:ne}},wu={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Ae,ne){if(ne.length===0)return null;var se=ne[0];if(se.type===20&&se.value==="none")return null;for(var oe=[],me=ne.filter(Qi),Qe=0;Qe<me.length;Qe++){var At=me[Qe],xt=me[Qe+1];if(At.type===20){var Ct=xt&&Xi(xt)?xt.number:1;oe.push({counter:At.value,increment:Ct})}}return oe}},gs={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Ae,ne){if(ne.length===0)return[];for(var se=[],oe=ne.filter(Qi),me=0;me<oe.length;me++){var Qe=oe[me],At=oe[me+1];if(Mi(Qe)&&Qe.value!=="none"){var xt=At&&Xi(At)?At.number:0;se.push({counter:Qe.value,reset:xt})}}return se}},Hs={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Ae,ne){return ne.filter(Ni).map(function(se){return el.parse(Ae,se)})}},Nl={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Ae,ne){if(ne.length===0)return null;var se=ne[0];if(se.type===20&&se.value==="none")return null;var oe=[],me=ne.filter(BA);if(me.length%2!==0)return null;for(var Qe=0;Qe<me.length;Qe+=2){var At=me[Qe].value,xt=me[Qe+1].value;oe.push({open:At,close:xt})}return oe}},rl=function(Ae,ne,se){if(!Ae)return"";var oe=Ae[Math.min(ne,Ae.length-1)];return oe?se?oe.open:oe.close:""},il={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ne){return ne.length===1&&CA(ne[0],"none")?[]:ai(ne).map(function(se){for(var oe={color:255,offsetX:Li,offsetY:Li,blur:Li,spread:Li,inset:!1},me=0,Qe=0;Qe<se.length;Qe++){var At=se[Qe];CA(At,"inset")?oe.inset=!0:UA(At)?(me===0?oe.offsetX=At:me===1?oe.offsetY=At:me===2?oe.blur=At:oe.spread=At,me++):oe.color=ia.parse(Ae,At)}return oe})}},Bu={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Ae,ne){var se=[0,1,2],oe=[];return ne.filter(Mi).forEach(function(me){switch(me.value){case"stroke":oe.push(1);break;case"fill":oe.push(0);break;case"markers":oe.push(2);break}}),se.forEach(function(me){oe.indexOf(me)===-1&&oe.push(me)}),oe}},Rl={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},vs={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Ae,ne){return Ni(ne)?ne.number:0}},Al=function(){function Ae(ne,se){var oe,me;this.animationDuration=di(ne,Hs,se.animationDuration),this.backgroundClip=di(ne,rA,se.backgroundClip),this.backgroundColor=di(ne,OA,se.backgroundColor),this.backgroundImage=di(ne,Xo,se.backgroundImage),this.backgroundOrigin=di(ne,Jo,se.backgroundOrigin),this.backgroundPosition=di(ne,qo,se.backgroundPosition),this.backgroundRepeat=di(ne,lo,se.backgroundRepeat),this.backgroundSize=di(ne,to,se.backgroundSize),this.borderTopColor=di(ne,cs,se.borderTopColor),this.borderRightColor=di(ne,$o,se.borderRightColor),this.borderBottomColor=di(ne,es,se.borderBottomColor),this.borderLeftColor=di(ne,wo,se.borderLeftColor),this.borderTopLeftRadius=di(ne,fs,se.borderTopLeftRadius),this.borderTopRightRadius=di(ne,Bo,se.borderTopRightRadius),this.borderBottomRightRadius=di(ne,Xa,se.borderBottomRightRadius),this.borderBottomLeftRadius=di(ne,ro,se.borderBottomLeftRadius),this.borderTopStyle=di(ne,io,se.borderTopStyle),this.borderRightStyle=di(ne,zi,se.borderRightStyle),this.borderBottomStyle=di(ne,Wi,se.borderBottomStyle),this.borderLeftStyle=di(ne,zA,se.borderLeftStyle),this.borderTopWidth=di(ne,ta,se.borderTopWidth),this.borderRightWidth=di(ne,fo,se.borderRightWidth),this.borderBottomWidth=di(ne,Ja,se.borderBottomWidth),this.borderLeftWidth=di(ne,ho,se.borderLeftWidth),this.boxShadow=di(ne,il,se.boxShadow),this.color=di(ne,Na,se.color),this.direction=di(ne,qa,se.direction),this.display=di(ne,eu,se.display),this.float=di(ne,nu,se.cssFloat),this.fontFamily=di(ne,nl,se.fontFamily),this.fontSize=di(ne,ps,se.fontSize),this.fontStyle=di(ne,bo,se.fontStyle),this.fontVariant=di(ne,Ms,se.fontVariant),this.fontWeight=di(ne,Ts,se.fontWeight),this.letterSpacing=di(ne,ru,se.letterSpacing),this.lineBreak=di(ne,iu,se.lineBreak),this.lineHeight=di(ne,Ma,se.lineHeight),this.listStyleImage=di(ne,va,se.listStyleImage),this.listStylePosition=di(ne,oa,se.listStylePosition),this.listStyleType=di(ne,To,se.listStyleType),this.marginTop=di(ne,Is,se.marginTop),this.marginRight=di(ne,Au,se.marginRight),this.marginBottom=di(ne,Ul,se.marginBottom),this.marginLeft=di(ne,au,se.marginLeft),this.opacity=di(ne,tl,se.opacity);var Qe=di(ne,Js,se.overflow);this.overflowX=Qe[0],this.overflowY=Qe[Qe.length>1?1:0],this.overflowWrap=di(ne,ts,se.overflowWrap),this.paddingTop=di(ne,qs,se.paddingTop),this.paddingRight=di(ne,$s,se.paddingRight),this.paddingBottom=di(ne,Qs,se.paddingBottom),this.paddingLeft=di(ne,Dl,se.paddingLeft),this.paintOrder=di(ne,Bu,se.paintOrder),this.position=di(ne,ds,se.position),this.textAlign=di(ne,ns,se.textAlign),this.textDecorationColor=di(ne,Ml,(oe=se.textDecorationColor)!==null&&oe!==void 0?oe:se.color),this.textDecorationLine=di(ne,su,(me=se.textDecorationLine)!==null&&me!==void 0?me:se.textDecoration),this.textShadow=di(ne,Il,se.textShadow),this.textTransform=di(ne,hs,se.textTransform),this.transform=di(ne,ou,se.transform),this.transformOrigin=di(ne,Oa,se.transformOrigin),this.visibility=di(ne,mA,se.visibility),this.webkitTextStrokeColor=di(ne,Rl,se.webkitTextStrokeColor),this.webkitTextStrokeWidth=di(ne,vs,se.webkitTextStrokeWidth),this.wordBreak=di(ne,xo,se.wordBreak),this.zIndex=di(ne,Eo,se.zIndex)}return Ae.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Ae.prototype.isTransparent=function(){return vA(this.backgroundColor)},Ae.prototype.isTransformed=function(){return this.transform!==null},Ae.prototype.isPositioned=function(){return this.position!==0},Ae.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Ae.prototype.isFloating=function(){return this.float!==0},Ae.prototype.isInlineLevel=function(){return aa(this.display,4)||aa(this.display,33554432)||aa(this.display,268435456)||aa(this.display,536870912)||aa(this.display,67108864)||aa(this.display,134217728)},Ae}(),Ol=function(){function Ae(ne,se){this.content=di(ne,Hl,se.content),this.quotes=di(ne,Nl,se.quotes)}return Ae}(),al=function(){function Ae(ne,se){this.counterIncrement=di(ne,wu,se.counterIncrement),this.counterReset=di(ne,gs,se.counterReset)}return Ae}(),di=function(Ae,ne,se){var oe=new Ei,me=se!==null&&typeof se!="undefined"?se.toString():ne.initialValue;oe.write(me);var Qe=new Fi(oe.read());switch(ne.type){case 2:var At=Qe.parseComponentValue();return ne.parse(Ae,Mi(At)?At.value:ne.initialValue);case 0:return ne.parse(Ae,Qe.parseComponentValue());case 1:return ne.parse(Ae,Qe.parseComponentValues());case 4:return Qe.parseComponentValue();case 3:switch(ne.format){case"angle":return ZA.parse(Ae,Qe.parseComponentValue());case"color":return ia.parse(Ae,Qe.parseComponentValue());case"image":return Ta.parse(Ae,Qe.parseComponentValue());case"length":var xt=Qe.parseComponentValue();return UA(xt)?xt:Li;case"length-percentage":var Ct=Qe.parseComponentValue();return ji(Ct)?Ct:Li;case"time":return el.parse(Ae,Qe.parseComponentValue())}break}},rs="data-html2canvas-debug",ol=function(Ae){var ne=Ae.getAttribute(rs);switch(ne){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ms=function(Ae,ne){var se=ol(Ae);return se===1||ne===se},$a=function(){function Ae(ne,se){if(this.context=ne,this.textNodes=[],this.elements=[],this.flags=0,ms(se,3))debugger;this.styles=new Al(ne,window.getComputedStyle(se,null)),Vl(se)&&(this.styles.animationDuration.some(function(oe){return oe>0})&&(se.style.animationDuration="0s"),this.styles.transform!==null&&(se.style.transform="none")),this.bounds=de(this.context,se),ms(se,4)&&(this.flags|=16)}return Ae}(),sl="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIA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gACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAI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AAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ll="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ys=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ns=0;Ns<ll.length;Ns++)ys[ll.charCodeAt(Ns)]=Ns;for(var da=function(Ae){var ne=Ae.length*.75,se=Ae.length,oe,me=0,Qe,At,xt,Ct;Ae[Ae.length-1]==="="&&(ne--,Ae[Ae.length-2]==="="&&ne--);var Bn=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(ne):new Array(ne),In=Array.isArray(Bn)?Bn:new Uint8Array(Bn);for(oe=0;oe<se;oe+=4)Qe=ys[Ae.charCodeAt(oe)],At=ys[Ae.charCodeAt(oe+1)],xt=ys[Ae.charCodeAt(oe+2)],Ct=ys[Ae.charCodeAt(oe+3)],In[me++]=Qe<<2|At>>4,In[me++]=(At&15)<<4|xt>>2,In[me++]=(xt&3)<<6|Ct&63;return Bn},Rs=function(Ae){for(var ne=Ae.length,se=[],oe=0;oe<ne;oe+=2)se.push(Ae[oe+1]<<8|Ae[oe]);return se},ul=function(Ae){for(var ne=Ae.length,se=[],oe=0;oe<ne;oe+=4)se.push(Ae[oe+3]<<24|Ae[oe+2]<<16|Ae[oe+1]<<8|Ae[oe]);return se},Fo=5,So=11,Mo=2,ws=So-Fo,cl=65536>>Fo,fl=1<<Fo,Bs=fl-1,Ho=1024>>Fo,dl=cl+Ho,Os=dl,hl=32,Cs=Os+hl,Cu=65536>>So,No=1<<ws,Pl=No-1,Ea=function(Ae,ne,se){return Ae.slice?Ae.slice(ne,se):new Uint16Array(Array.prototype.slice.call(Ae,ne,se))},Ps=function(Ae,ne,se){return Ae.slice?Ae.slice(ne,se):new Uint32Array(Array.prototype.slice.call(Ae,ne,se))},is=function(Ae,ne){var se=da(Ae),oe=Array.isArray(se)?ul(se):new Uint32Array(se),me=Array.isArray(se)?Rs(se):new Uint16Array(se),Qe=24,At=Ea(me,Qe/2,oe[4]/2),xt=oe[5]===2?Ea(me,(Qe+oe[4])/2):Ps(oe,Math.ceil((Qe+oe[4])/4));return new Ro(oe[0],oe[1],oe[2],oe[3],At,xt)},Ro=function(){function Ae(ne,se,oe,me,Qe,At){this.initialValue=ne,this.errorValue=se,this.highStart=oe,this.highValueIndex=me,this.index=Qe,this.data=At}return Ae.prototype.get=function(ne){var se;if(ne>=0){if(ne<55296||ne>56319&&ne<=65535)return se=this.index[ne>>Fo],se=(se<<Mo)+(ne&Bs),this.data[se];if(ne<=65535)return se=this.index[cl+(ne-55296>>Fo)],se=(se<<Mo)+(ne&Bs),this.data[se];if(ne<this.highStart)return se=Cs-Cu+(ne>>So),se=this.index[se],se+=ne>>Fo&Pl,se=this.index[se],se=(se<<Mo)+(ne&Bs),this.data[se];if(ne<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Ae}(),po="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oo=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),xs=0;xs<po.length;xs++)Oo[po.charCodeAt(xs)]=xs;var lu=1,Ks=2,go=3,_o=4,As=5,uu=7,pl=8,gl=9,Zs=10,Kl=11,ba=12,Zl=13,te=14,ye=15,le=function(Ae){for(var ne=[],se=0,oe=Ae.length;se<oe;){var me=Ae.charCodeAt(se++);if(me>=55296&&me<=56319&&se<oe){var Qe=Ae.charCodeAt(se++);(Qe&64512)===56320?ne.push(((me&1023)<<10)+(Qe&1023)+65536):(ne.push(me),se--)}else ne.push(me)}return ne},Le=function(){for(var Ae=[],ne=0;ne<arguments.length;ne++)Ae[ne]=arguments[ne];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ae);var se=Ae.length;if(!se)return"";for(var oe=[],me=-1,Qe="";++me<se;){var At=Ae[me];At<=65535?oe.push(At):(At-=65536,oe.push((At>>10)+55296,At%1024+56320)),(me+1===se||oe.length>16384)&&(Qe+=String.fromCharCode.apply(String,oe),oe.length=0)}return Qe},Ve=is(sl),nt="\xD7",En="\xF7",Xt=function(Ae){return Ve.get(Ae)},Ur=function(Ae,ne,se){var oe=se-2,me=ne[oe],Qe=ne[se-1],At=ne[se];if(Qe===Ks&&At===go)return nt;if(Qe===Ks||Qe===go||Qe===_o||At===Ks||At===go||At===_o)return En;if(Qe===pl&&[pl,gl,Kl,ba].indexOf(At)!==-1||(Qe===Kl||Qe===gl)&&(At===gl||At===Zs)||(Qe===ba||Qe===Zs)&&At===Zs||At===Zl||At===As||At===uu||Qe===lu)return nt;if(Qe===Zl&&At===te){for(;me===As;)me=ne[--oe];if(me===te)return nt}if(Qe===ye&&At===ye){for(var xt=0;me===ye;)xt++,me=ne[--oe];if(xt%2===0)return nt}return En},Pt=function(Ae){var ne=le(Ae),se=ne.length,oe=0,me=0,Qe=ne.map(Xt);return{next:function(){if(oe>=se)return{done:!0,value:null};for(var At=nt;oe<se&&(At=Ur(ne,Qe,++oe))===nt;);if(At!==nt||oe===se){var xt=Le.apply(null,ne.slice(me,oe));return me=oe,{value:xt,done:!1}}return{done:!0,value:null}}}},_n=function(Ae){for(var ne=Pt(Ae),se=[],oe;!(oe=ne.next()).done;)oe.value&&se.push(oe.value.slice());return se},li=function(Ae){var ne=123;if(Ae.createRange){var se=Ae.createRange();if(se.getBoundingClientRect){var oe=Ae.createElement("boundtest");oe.style.height=ne+"px",oe.style.display="block",Ae.body.appendChild(oe),se.selectNode(oe);var me=se.getBoundingClientRect(),Qe=Math.round(me.height);if(Ae.body.removeChild(oe),Qe===ne)return!0}}return!1},Nr=function(Ae){var ne=Ae.createElement("boundtest");ne.style.width="50px",ne.style.display="block",ne.style.fontSize="12px",ne.style.letterSpacing="0px",ne.style.wordSpacing="0px",Ae.body.appendChild(ne);var se=Ae.createRange();ne.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var oe=ne.firstChild,me=Fe(oe.data).map(function(Ct){return Ie(Ct)}),Qe=0,At={},xt=me.every(function(Ct,Bn){se.setStart(oe,Qe),se.setEnd(oe,Qe+Ct.length);var In=se.getBoundingClientRect();Qe+=Ct.length;var Pn=In.x>At.x||In.y>At.y;return At=In,Bn===0?!0:Pn});return Ae.body.removeChild(ne),xt},vr=function(){return typeof new Image().crossOrigin!="undefined"},xi=function(){return typeof new XMLHttpRequest().responseType=="string"},bA=function(Ae){var ne=new Image,se=Ae.createElement("canvas"),oe=se.getContext("2d");if(!oe)return!1;ne.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{oe.drawImage(ne,0,0),se.toDataURL()}catch(me){return!1}return!0},Pi=function(Ae){return Ae[0]===0&&Ae[1]===255&&Ae[2]===0&&Ae[3]===255},Ki=function(Ae){var ne=Ae.createElement("canvas"),se=100;ne.width=se,ne.height=se;var oe=ne.getContext("2d");if(!oe)return Promise.reject(!1);oe.fillStyle="rgb(0, 255, 0)",oe.fillRect(0,0,se,se);var me=new Image,Qe=ne.toDataURL();me.src=Qe;var At=AA(se,se,0,0,me);return oe.fillStyle="red",oe.fillRect(0,0,se,se),Ri(At).then(function(xt){oe.drawImage(xt,0,0);var Ct=oe.getImageData(0,0,se,se).data;oe.fillStyle="red",oe.fillRect(0,0,se,se);var Bn=Ae.createElement("div");return Bn.style.backgroundImage="url("+Qe+")",Bn.style.height=se+"px",Pi(Ct)?Ri(AA(se,se,0,0,Bn)):Promise.reject(!1)}).then(function(xt){return oe.drawImage(xt,0,0),Pi(oe.getImageData(0,0,se,se).data)}).catch(function(){return!1})},AA=function(Ae,ne,se,oe,me){var Qe="http://www.w3.org/2000/svg",At=document.createElementNS(Qe,"svg"),xt=document.createElementNS(Qe,"foreignObject");return At.setAttributeNS(null,"width",Ae.toString()),At.setAttributeNS(null,"height",ne.toString()),xt.setAttributeNS(null,"width","100%"),xt.setAttributeNS(null,"height","100%"),xt.setAttributeNS(null,"x",se.toString()),xt.setAttributeNS(null,"y",oe.toString()),xt.setAttributeNS(null,"externalResourcesRequired","true"),At.appendChild(xt),xt.appendChild(me),At},Ri=function(Ae){return new Promise(function(ne,se){var oe=new Image;oe.onload=function(){return ne(oe)},oe.onerror=se,oe.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ae))})},Ir={get SUPPORT_RANGE_BOUNDS(){var Ae=li(document);return Object.defineProperty(Ir,"SUPPORT_RANGE_BOUNDS",{value:Ae}),Ae},get SUPPORT_WORD_BREAKING(){var Ae=Ir.SUPPORT_RANGE_BOUNDS&&Nr(document);return Object.defineProperty(Ir,"SUPPORT_WORD_BREAKING",{value:Ae}),Ae},get SUPPORT_SVG_DRAWING(){var Ae=bA(document);return Object.defineProperty(Ir,"SUPPORT_SVG_DRAWING",{value:Ae}),Ae},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Ae=typeof Array.from=="function"&&typeof window.fetch=="function"?Ki(document):Promise.resolve(!1);return Object.defineProperty(Ir,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Ae}),Ae},get SUPPORT_CORS_IMAGES(){var Ae=vr();return Object.defineProperty(Ir,"SUPPORT_CORS_IMAGES",{value:Ae}),Ae},get SUPPORT_RESPONSE_TYPE(){var Ae=xi();return Object.defineProperty(Ir,"SUPPORT_RESPONSE_TYPE",{value:Ae}),Ae},get SUPPORT_CORS_XHR(){var Ae="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ir,"SUPPORT_CORS_XHR",{value:Ae}),Ae},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Ae=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Ir,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Ae}),Ae}},Gi=function(){function Ae(ne,se){this.text=ne,this.bounds=se}return Ae}(),TA=function(Ae,ne,se,oe){var me=sA(ne,se),Qe=[],At=0;return me.forEach(function(xt){if(se.textDecorationLine.length||xt.trim().length>0)if(Ir.SUPPORT_RANGE_BOUNDS){var Ct=FA(oe,At,xt.length).getClientRects();if(Ct.length>1){var Bn=oA(xt),In=0;Bn.forEach(function(gr){Qe.push(new Gi(gr,Ee.fromDOMRectList(Ae,FA(oe,In+At,gr.length).getClientRects()))),In+=gr.length})}else Qe.push(new Gi(xt,Ee.fromDOMRectList(Ae,Ct)))}else{var Pn=oe.splitText(xt.length);Qe.push(new Gi(xt,ki(Ae,oe))),oe=Pn}else Ir.SUPPORT_RANGE_BOUNDS||(oe=oe.splitText(xt.length));At+=xt.length}),Qe},ki=function(Ae,ne){var se=ne.ownerDocument;if(se){var oe=se.createElement("html2canvaswrapper");oe.appendChild(ne.cloneNode(!0));var me=ne.parentNode;if(me){me.replaceChild(oe,ne);var Qe=de(Ae,oe);return oe.firstChild&&me.replaceChild(oe.firstChild,oe),Qe}}return Ee.EMPTY},FA=function(Ae,ne,se){var oe=Ae.ownerDocument;if(!oe)throw new Error("Node has no owner document");var me=oe.createRange();return me.setStart(Ae,ne),me.setEnd(Ae,ne+se),me},oA=function(Ae){if(Ir.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ne=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(ne.segment(Ae)).map(function(se){return se.segment})}return _n(Ae)},Zi=function(Ae,ne){if(Ir.SUPPORT_NATIVE_TEXT_SEGMENTATION){var se=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(se.segment(Ae)).map(function(oe){return oe.segment})}return vl(Ae,ne)},sA=function(Ae,ne){return ne.letterSpacing!==0?oA(Ae):Zi(Ae,ne)},Po=[32,160,4961,65792,65793,4153,4241],vl=function(Ae,ne){for(var se=yn(Ae,{lineBreak:ne.lineBreak,wordBreak:ne.overflowWrap==="break-word"?"break-word":ne.wordBreak}),oe=[],me,Qe=function(){if(me.value){var At=me.value.slice(),xt=Fe(At),Ct="";xt.forEach(function(Bn){Po.indexOf(Bn)===-1?Ct+=Ie(Bn):(Ct.length&&oe.push(Ct),oe.push(Ie(Bn)),Ct="")}),Ct.length&&oe.push(Ct)}};!(me=se.next()).done;)Qe();return oe},Ko=function(){function Ae(ne,se,oe){this.text=zs(se.data,oe.textTransform),this.textBounds=TA(ne,this.text,oe,se)}return Ae}(),zs=function(Ae,ne){switch(ne){case 1:return Ae.toLowerCase();case 3:return Ae.replace(Wu,ml);case 2:return Ae.toUpperCase();default:return Ae}},Wu=/(^|\s|:|-|\(|\))([a-z])/g,ml=function(Ae,ne,se){return Ae.length>0?ne+se.toUpperCase():Ae},cu=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;return me.src=oe.currentSrc||oe.src,me.intrinsicWidth=oe.naturalWidth,me.intrinsicHeight=oe.naturalHeight,me.context.cache.addImage(me.src),me}return ne}($a),fu=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;return me.canvas=oe,me.intrinsicWidth=oe.width,me.intrinsicHeight=oe.height,me}return ne}($a),xu=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this,Qe=new XMLSerializer,At=de(se,oe);return oe.setAttribute("width",At.width+"px"),oe.setAttribute("height",At.height+"px"),me.svg="data:image/svg+xml,"+encodeURIComponent(Qe.serializeToString(oe)),me.intrinsicWidth=oe.width.baseVal.value,me.intrinsicHeight=oe.height.baseVal.value,me.context.cache.addImage(me.svg),me}return ne}($a),zl=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;return me.value=oe.value,me}return ne}($a),Wl=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;return me.start=oe.start,me.reversed=typeof oe.reversed=="boolean"&&oe.reversed===!0,me}return ne}($a),Gu=[{type:15,flags:0,unit:"px",number:3}],Eu=[{type:16,flags:0,number:50}],bu=function(Ae){return Ae.width>Ae.height?new Ee(Ae.left+(Ae.width-Ae.height)/2,Ae.top,Ae.height,Ae.height):Ae.width<Ae.height?new Ee(Ae.left,Ae.top+(Ae.height-Ae.width)/2,Ae.width,Ae.width):Ae},Vu=function(Ae){var ne=Ae.type===yl?new Array(Ae.value.length+1).join("\u2022"):Ae.value;return ne.length===0?Ae.placeholder||"":ne},Ws="checkbox",as="radio",yl="password",Fu=707406591,Gl=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;switch(me.type=oe.type.toLowerCase(),me.checked=oe.checked,me.value=Vu(oe),(me.type===Ws||me.type===as)&&(me.styles.backgroundColor=3739148031,me.styles.borderTopColor=me.styles.borderRightColor=me.styles.borderBottomColor=me.styles.borderLeftColor=2779096575,me.styles.borderTopWidth=me.styles.borderRightWidth=me.styles.borderBottomWidth=me.styles.borderLeftWidth=1,me.styles.borderTopStyle=me.styles.borderRightStyle=me.styles.borderBottomStyle=me.styles.borderLeftStyle=1,me.styles.backgroundClip=[0],me.styles.backgroundOrigin=[0],me.bounds=bu(me.bounds)),me.type){case Ws:me.styles.borderTopRightRadius=me.styles.borderTopLeftRadius=me.styles.borderBottomRightRadius=me.styles.borderBottomLeftRadius=Gu;break;case as:me.styles.borderTopRightRadius=me.styles.borderTopLeftRadius=me.styles.borderBottomRightRadius=me.styles.borderBottomLeftRadius=Eu;break}return me}return ne}($a),Su=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this,Qe=oe.options[oe.selectedIndex||0];return me.value=Qe&&Qe.text||"",me}return ne}($a),_u=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;return me.value=oe.value,me}return ne}($a),ku=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;me.src=oe.src,me.width=parseInt(oe.width,10)||0,me.height=parseInt(oe.height,10)||0,me.backgroundColor=me.styles.backgroundColor;try{if(oe.contentWindow&&oe.contentWindow.document&&oe.contentWindow.document.documentElement){me.tree=Du(se,oe.contentWindow.document.documentElement);var Qe=oe.contentWindow.document.documentElement?Di(se,getComputedStyle(oe.contentWindow.document.documentElement).backgroundColor):pA.TRANSPARENT,At=oe.contentWindow.document.body?Di(se,getComputedStyle(oe.contentWindow.document.body).backgroundColor):pA.TRANSPARENT;me.backgroundColor=vA(Qe)?vA(At)?me.styles.backgroundColor:At:Qe}}catch(xt){}return me}return ne}($a),ju=["OL","UL","MENU"],wl=function(Ae,ne,se,oe){for(var me=ne.firstChild,Qe=void 0;me;me=Qe)if(Qe=me.nextSibling,hu(me)&&me.data.trim().length>0)se.textNodes.push(new Ko(Ae,me,se.styles));else if(Gs(me))if(gu(me)&&me.assignedNodes)me.assignedNodes().forEach(function(xt){return wl(Ae,xt,se,oe)});else{var At=Uu(Ae,me);At.styles.isVisible()&&(Iu(me,At,oe)?At.flags|=4:du(At.styles)&&(At.flags|=2),ju.indexOf(me.tagName)!==-1&&(At.flags|=8),se.elements.push(At),me.slot,me.shadowRoot?wl(Ae,me.shadowRoot,At,oe):!Cl(me)&&!Lu(me)&&!xl(me)&&wl(Ae,me,At,oe))}},Uu=function(Ae,ne){return Es(ne)?new cu(Ae,ne):Tu(ne)?new fu(Ae,ne):Lu(ne)?new xu(Ae,ne):Qu(ne)?new zl(Ae,ne):jl(ne)?new Wl(Ae,ne):Yu(ne)?new Gl(Ae,ne):xl(ne)?new Su(Ae,ne):Cl(ne)?new _u(Ae,ne):Ao(ne)?new ku(Ae,ne):new $a(Ae,ne)},Du=function(Ae,ne){var se=Uu(Ae,ne);return se.flags|=4,wl(Ae,ne,se,se),se},Iu=function(Ae,ne,se){return ne.styles.isPositionedWithZIndex()||ne.styles.opacity<1||ne.styles.isTransformed()||PA(Ae)&&se.styles.isTransparent()},du=function(Ae){return Ae.isPositioned()||Ae.isFloating()},hu=function(Ae){return Ae.nodeType===Node.TEXT_NODE},Gs=function(Ae){return Ae.nodeType===Node.ELEMENT_NODE},Vl=function(Ae){return Gs(Ae)&&typeof Ae.style!="undefined"&&!Zo(Ae)},Zo=function(Ae){return typeof Ae.className=="object"},Qu=function(Ae){return Ae.tagName==="LI"},jl=function(Ae){return Ae.tagName==="OL"},Yu=function(Ae){return Ae.tagName==="INPUT"},Xu=function(Ae){return Ae.tagName==="HTML"},Lu=function(Ae){return Ae.tagName==="svg"},PA=function(Ae){return Ae.tagName==="BODY"},Tu=function(Ae){return Ae.tagName==="CANVAS"},Yl=function(Ae){return Ae.tagName==="VIDEO"},Es=function(Ae){return Ae.tagName==="IMG"},Ao=function(Ae){return Ae.tagName==="IFRAME"},Bl=function(Ae){return Ae.tagName==="STYLE"},pu=function(Ae){return Ae.tagName==="SCRIPT"},Cl=function(Ae){return Ae.tagName==="TEXTAREA"},xl=function(Ae){return Ae.tagName==="SELECT"},gu=function(Ae){return Ae.tagName==="SLOT"},vu=function(Ae){return Ae.tagName.indexOf("-")>0},Mu=function(){function Ae(){this.counters={}}return Ae.prototype.getCounterValue=function(ne){var se=this.counters[ne];return se&&se.length?se[se.length-1]:1},Ae.prototype.getCounterValues=function(ne){var se=this.counters[ne];return se||[]},Ae.prototype.pop=function(ne){var se=this;ne.forEach(function(oe){return se.counters[oe].pop()})},Ae.prototype.parse=function(ne){var se=this,oe=ne.counterIncrement,me=ne.counterReset,Qe=!0;oe!==null&&oe.forEach(function(xt){var Ct=se.counters[xt.counter];Ct&&xt.increment!==0&&(Qe=!1,Ct.length||Ct.push(1),Ct[Math.max(0,Ct.length-1)]+=xt.increment)});var At=[];return Qe&&me.forEach(function(xt){var Ct=se.counters[xt.counter];At.push(xt.counter),Ct||(Ct=se.counters[xt.counter]=[]),Ct.push(xt.reset)}),At},Ae}(),Hu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Xl={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Nu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},QA={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},bs=function(Ae,ne,se,oe,me,Qe){return Ae<ne||Ae>se?E(Ae,me,Qe.length>0):oe.integers.reduce(function(At,xt,Ct){for(;Ae>=xt;)Ae-=xt,At+=oe.values[Ct];return At},"")+Qe},Ru=function(Ae,ne,se,oe){var me="";do se||Ae--,me=oe(Ae)+me,Ae/=ne;while(Ae*ne>=ne);return me},GA=function(Ae,ne,se,oe,me){var Qe=se-ne+1;return(Ae<0?"-":"")+(Ru(Math.abs(Ae),Qe,oe,function(At){return Ie(Math.floor(At%Qe)+ne)})+me)},Fs=function(Ae,ne,se){se===void 0&&(se=". ");var oe=ne.length;return Ru(Math.abs(Ae),oe,!1,function(me){return ne[Math.floor(me%oe)]})+se},zo=1,os=2,MA=4,El=8,Wo=function(Ae,ne,se,oe,me,Qe){if(Ae<-9999||Ae>9999)return E(Ae,4,me.length>0);var At=Math.abs(Ae),xt=me;if(At===0)return ne[0]+xt;for(var Ct=0;At>0&&Ct<=4;Ct++){var Bn=At%10;Bn===0&&aa(Qe,zo)&&xt!==""?xt=ne[Bn]+xt:Bn>1||Bn===1&&Ct===0||Bn===1&&Ct===1&&aa(Qe,os)||Bn===1&&Ct===1&&aa(Qe,MA)&&Ae>100||Bn===1&&Ct>1&&aa(Qe,El)?xt=ne[Bn]+(Ct>0?se[Ct-1]:"")+xt:Bn===1&&Ct>0&&(xt=se[Ct-1]+xt),At=Math.floor(At/10)}return(Ae<0?oe:"")+xt},Ou="\u5341\u767E\u5343\u842C",bl="\u62FE\u4F70\u4EDF\u842C",a="\u30DE\u30A4\u30CA\u30B9",y="\uB9C8\uC774\uB108\uC2A4",E=function(Ae,ne,se){var oe=se?". ":"",me=se?"\u3001":"",Qe=se?", ":"",At=se?" ":"";switch(ne){case 0:return"\u2022"+At;case 1:return"\u25E6"+At;case 2:return"\u25FE"+At;case 5:var xt=GA(Ae,48,57,!0,oe);return xt.length<4?"0"+xt:xt;case 4:return Fs(Ae,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",me);case 6:return bs(Ae,1,3999,Hu,3,oe).toLowerCase();case 7:return bs(Ae,1,3999,Hu,3,oe);case 8:return GA(Ae,945,969,!1,oe);case 9:return GA(Ae,97,122,!1,oe);case 10:return GA(Ae,65,90,!1,oe);case 11:return GA(Ae,1632,1641,!0,oe);case 12:case 49:return bs(Ae,1,9999,Xl,3,oe);case 35:return bs(Ae,1,9999,Xl,3,oe).toLowerCase();case 13:return GA(Ae,2534,2543,!0,oe);case 14:case 30:return GA(Ae,6112,6121,!0,oe);case 15:return Fs(Ae,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",me);case 16:return Fs(Ae,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",me);case 17:case 48:return Wo(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ou,"\u8CA0",me,os|MA|El);case 47:return Wo(Ae,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",bl,"\u8CA0",me,zo|os|MA|El);case 42:return Wo(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ou,"\u8D1F",me,os|MA|El);case 41:return Wo(Ae,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",bl,"\u8D1F",me,zo|os|MA|El);case 26:return Wo(Ae,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",a,me,0);case 25:return Wo(Ae,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",a,me,zo|os|MA);case 31:return Wo(Ae,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",y,Qe,zo|os|MA);case 33:return Wo(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",y,Qe,0);case 32:return Wo(Ae,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",y,Qe,zo|os|MA);case 18:return GA(Ae,2406,2415,!0,oe);case 20:return bs(Ae,1,19999,QA,3,oe);case 21:return GA(Ae,2790,2799,!0,oe);case 22:return GA(Ae,2662,2671,!0,oe);case 22:return bs(Ae,1,10999,Nu,3,oe);case 23:return Fs(Ae,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Fs(Ae,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return GA(Ae,3302,3311,!0,oe);case 28:return Fs(Ae,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",me);case 29:return Fs(Ae,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",me);case 34:return GA(Ae,3792,3801,!0,oe);case 37:return GA(Ae,6160,6169,!0,oe);case 38:return GA(Ae,4160,4169,!0,oe);case 39:return GA(Ae,2918,2927,!0,oe);case 40:return GA(Ae,1776,1785,!0,oe);case 43:return GA(Ae,3046,3055,!0,oe);case 44:return GA(Ae,3174,3183,!0,oe);case 45:return GA(Ae,3664,3673,!0,oe);case 46:return GA(Ae,3872,3881,!0,oe);case 3:default:return GA(Ae,48,57,!0,oe)}},x="data-html2canvas-ignore",z=function(){function Ae(ne,se,oe){if(this.context=ne,this.options=oe,this.scrolledElements=[],this.referenceElement=se,this.counters=new Mu,this.quoteDepth=0,!se.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(se.ownerDocument.documentElement,!1)}return Ae.prototype.toIFrame=function(ne,se){var oe=this,me=pe(ne,se);if(!me.contentWindow)return Promise.reject("Unable to find iframe window");var Qe=ne.defaultView.pageXOffset,At=ne.defaultView.pageYOffset,xt=me.contentWindow,Ct=xt.document,Bn=Ke(me).then(function(){return Me(oe,void 0,void 0,function(){var In,Pn;return De(this,function(gr){switch(gr.label){case 0:return this.scrolledElements.forEach(or),xt&&(xt.scrollTo(se.left,se.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(xt.scrollY!==se.top||xt.scrollX!==se.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(xt.scrollX-se.left,xt.scrollY-se.top,0,0))),In=this.options.onclone,Pn=this.clonedReferenceElement,typeof Pn=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Ct.fonts&&Ct.fonts.ready?[4,Ct.fonts.ready]:[3,2];case 1:gr.sent(),gr.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Se(Ct)]:[3,4];case 3:gr.sent(),gr.label=4;case 4:return typeof In=="function"?[2,Promise.resolve().then(function(){return In(Ct,Pn)}).then(function(){return me})]:[2,me]}})})});return Ct.open(),Ct.write(Un(document.doctype)+"<html></html>"),bn(this.referenceElement.ownerDocument,Qe,At),Ct.replaceChild(Ct.adoptNode(this.documentElement),Ct.documentElement),Ct.close(),Bn},Ae.prototype.createElementClone=function(ne){if(ms(ne,2))debugger;if(Tu(ne))return this.createCanvasClone(ne);if(Yl(ne))return this.createVideoClone(ne);if(Bl(ne))return this.createStyleClone(ne);var se=ne.cloneNode(!1);return Es(se)&&(Es(ne)&&ne.currentSrc&&ne.currentSrc!==ne.src&&(se.src=ne.currentSrc,se.srcset=""),se.loading==="lazy"&&(se.loading="eager")),vu(se)?this.createCustomElementClone(se):se},Ae.prototype.createCustomElementClone=function(ne){var se=document.createElement("html2canvascustomelement");return Qt(ne.style,se),se},Ae.prototype.createStyleClone=function(ne){try{var se=ne.sheet;if(se&&se.cssRules){var oe=[].slice.call(se.cssRules,0).reduce(function(Qe,At){return At&&typeof At.cssText=="string"?Qe+At.cssText:Qe},""),me=ne.cloneNode(!1);return me.textContent=oe,me}}catch(Qe){if(this.context.logger.error("Unable to access cssRules property",Qe),Qe.name!=="SecurityError")throw Qe}return ne.cloneNode(!1)},Ae.prototype.createCanvasClone=function(ne){var se;if(this.options.inlineImages&&ne.ownerDocument){var oe=ne.ownerDocument.createElement("img");try{return oe.src=ne.toDataURL(),oe}catch(Bn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ne)}}var me=ne.cloneNode(!1);try{me.width=ne.width,me.height=ne.height;var Qe=ne.getContext("2d"),At=me.getContext("2d");if(At)if(!this.options.allowTaint&&Qe)At.putImageData(Qe.getImageData(0,0,ne.width,ne.height),0,0);else{var xt=(se=ne.getContext("webgl2"))!==null&&se!==void 0?se:ne.getContext("webgl");if(xt){var Ct=xt.getContextAttributes();(Ct==null?void 0:Ct.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ne)}At.drawImage(ne,0,0)}return me}catch(Bn){this.context.logger.info("Unable to clone canvas as it is tainted",ne)}return me},Ae.prototype.createVideoClone=function(ne){var se=ne.ownerDocument.createElement("canvas");se.width=ne.offsetWidth,se.height=ne.offsetHeight;var oe=se.getContext("2d");try{return oe&&(oe.drawImage(ne,0,0,se.width,se.height),this.options.allowTaint||oe.getImageData(0,0,se.width,se.height)),se}catch(Qe){this.context.logger.info("Unable to clone video as it is tainted",ne)}var me=ne.ownerDocument.createElement("canvas");return me.width=ne.offsetWidth,me.height=ne.offsetHeight,me},Ae.prototype.appendChildNode=function(ne,se,oe){(!Gs(se)||!pu(se)&&!se.hasAttribute(x)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(se)))&&(!this.options.copyStyles||!Gs(se)||!Bl(se))&&ne.appendChild(this.cloneNode(se,oe))},Ae.prototype.cloneChildNodes=function(ne,se,oe){for(var me=this,Qe=ne.shadowRoot?ne.shadowRoot.firstChild:ne.firstChild;Qe;Qe=Qe.nextSibling)if(Gs(Qe)&&gu(Qe)&&typeof Qe.assignedNodes=="function"){var At=Qe.assignedNodes();At.length&&At.forEach(function(xt){return me.appendChildNode(se,xt,oe)})}else this.appendChildNode(se,Qe,oe)},Ae.prototype.cloneNode=function(ne,se){if(hu(ne))return document.createTextNode(ne.data);if(!ne.ownerDocument)return ne.cloneNode(!1);var oe=ne.ownerDocument.defaultView;if(oe&&Gs(ne)&&(Vl(ne)||Zo(ne))){var me=this.createElementClone(ne);me.style.transitionProperty="none";var Qe=oe.getComputedStyle(ne),At=oe.getComputedStyle(ne,":before"),xt=oe.getComputedStyle(ne,":after");this.referenceElement===ne&&Vl(me)&&(this.clonedReferenceElement=me),PA(me)&&pi(me);var Ct=this.counters.parse(new al(this.context,Qe)),Bn=this.resolvePseudoContent(ne,me,At,ce.BEFORE);vu(ne)&&(se=!0),Yl(ne)||this.cloneChildNodes(ne,me,se),Bn&&me.insertBefore(Bn,me.firstChild);var In=this.resolvePseudoContent(ne,me,xt,ce.AFTER);return In&&me.appendChild(In),this.counters.pop(Ct),(Qe&&(this.options.copyStyles||Zo(ne))&&!Ao(ne)||se)&&Qt(Qe,me),(ne.scrollTop!==0||ne.scrollLeft!==0)&&this.scrolledElements.push([me,ne.scrollLeft,ne.scrollTop]),(Cl(ne)||xl(ne))&&(Cl(me)||xl(me))&&(me.value=ne.value),me}return ne.cloneNode(!1)},Ae.prototype.resolvePseudoContent=function(ne,se,oe,me){var Qe=this;if(oe){var At=oe.content,xt=se.ownerDocument;if(!(!xt||!At||At==="none"||At==="-moz-alt-content"||oe.display==="none")){this.counters.parse(new al(this.context,oe));var Ct=new Ol(this.context,oe),Bn=xt.createElement("html2canvaspseudoelement");Qt(oe,Bn),Ct.content.forEach(function(Pn){if(Pn.type===0)Bn.appendChild(xt.createTextNode(Pn.value));else if(Pn.type===22){var gr=xt.createElement("img");gr.src=Pn.value,gr.style.opacity="1",Bn.appendChild(gr)}else if(Pn.type===18){if(Pn.name==="attr"){var Bi=Pn.values.filter(Mi);Bi.length&&Bn.appendChild(xt.createTextNode(ne.getAttribute(Bi[0].value)||""))}else if(Pn.name==="counter"){var Yr=Pn.values.filter(pr),ci=Yr[0],aA=Yr[1];if(ci&&Mi(ci)){var Ui=Qe.counters.getCounterValue(ci.value),Si=aA&&Mi(aA)?To.parse(Qe.context,aA.value):3;Bn.appendChild(xt.createTextNode(E(Ui,Si,!1)))}}else if(Pn.name==="counters"){var LA=Pn.values.filter(pr),ci=LA[0],lA=LA[1],aA=LA[2];if(ci&&Mi(ci)){var Yi=Qe.counters.getCounterValues(ci.value),yi=aA&&Mi(aA)?To.parse(Qe.context,aA.value):3,SA=lA&&lA.type===0?lA.value:"",_A=Yi.map(function(ao){return E(ao,yi,!1)}).join(SA);Bn.appendChild(xt.createTextNode(_A))}}}else if(Pn.type===20)switch(Pn.value){case"open-quote":Bn.appendChild(xt.createTextNode(rl(Ct.quotes,Qe.quoteDepth++,!0)));break;case"close-quote":Bn.appendChild(xt.createTextNode(rl(Ct.quotes,--Qe.quoteDepth,!1)));break;default:Bn.appendChild(xt.createTextNode(Pn.value))}}),Bn.className=Gr+" "+ri;var In=me===ce.BEFORE?" "+Gr:" "+ri;return Zo(se)?se.className.baseValue+=In:se.className+=In,Bn}}},Ae.destroy=function(ne){return ne.parentNode?(ne.parentNode.removeChild(ne),!0):!1},Ae}(),ce;(function(Ae){Ae[Ae.BEFORE=0]="BEFORE",Ae[Ae.AFTER=1]="AFTER"})(ce||(ce={}));var pe=function(Ae,ne){var se=Ae.createElement("iframe");return se.className="html2canvas-container",se.style.visibility="hidden",se.style.position="fixed",se.style.left="-10000px",se.style.top="0px",se.style.border="0",se.width=ne.width.toString(),se.height=ne.height.toString(),se.scrolling="no",se.setAttribute(x,"true"),Ae.body.appendChild(se),se},Ce=function(Ae){return new Promise(function(ne){if(Ae.complete){ne();return}if(!Ae.src){ne();return}Ae.onload=ne,Ae.onerror=ne})},Se=function(Ae){return Promise.all([].slice.call(Ae.images,0).map(Ce))},Ke=function(Ae){return new Promise(function(ne,se){var oe=Ae.contentWindow;if(!oe)return se("No window assigned for iframe");var me=oe.document;oe.onload=Ae.onload=function(){oe.onload=Ae.onload=null;var Qe=setInterval(function(){me.body.childNodes.length>0&&me.readyState==="complete"&&(clearInterval(Qe),ne(Ae))},50)}})},Ft=["all","d","content"],Qt=function(Ae,ne){for(var se=Ae.length-1;se>=0;se--){var oe=Ae.item(se);Ft.indexOf(oe)===-1&&ne.style.setProperty(oe,Ae.getPropertyValue(oe))}return ne},Un=function(Ae){var ne="";return Ae&&(ne+="<!DOCTYPE ",Ae.name&&(ne+=Ae.name),Ae.internalSubset&&(ne+=Ae.internalSubset),Ae.publicId&&(ne+='"'+Ae.publicId+'"'),Ae.systemId&&(ne+='"'+Ae.systemId+'"'),ne+=">"),ne},bn=function(Ae,ne,se){Ae&&Ae.defaultView&&(ne!==Ae.defaultView.pageXOffset||se!==Ae.defaultView.pageYOffset)&&Ae.defaultView.scrollTo(ne,se)},or=function(Ae){var ne=Ae[0],se=Ae[1],oe=Ae[2];ne.scrollLeft=se,ne.scrollTop=oe},Cr=":before",Mr=":after",Gr="___html2canvas___pseudoelement_before",ri="___html2canvas___pseudoelement_after",Vr=`{
content: "" !important;
display: none !important;
}`,pi=function(Ae){Ii(Ae,"."+Gr+Cr+Vr+`
.`+ri+Mr+Vr)},Ii=function(Ae,ne){var se=Ae.ownerDocument;if(se){var oe=se.createElement("style");oe.textContent=ne,Ae.appendChild(oe)}},_i=function(){function Ae(){}return Ae.getOrigin=function(ne){var se=Ae._link;return se?(se.href=ne,se.href=se.href,se.protocol+se.hostname+se.port):"about:blank"},Ae.isSameOrigin=function(ne){return Ae.getOrigin(ne)===Ae._origin},Ae.setContext=function(ne){Ae._link=ne.document.createElement("a"),Ae._origin=Ae.getOrigin(ne.location.href)},Ae._origin="about:blank",Ae}(),$i=function(){function Ae(ne,se){this.context=ne,this._options=se,this._cache={}}return Ae.prototype.addImage=function(ne){var se=Promise.resolve();return this.has(ne)||(Sa(ne)||Ga(ne))&&(this._cache[ne]=this.loadImage(ne)).catch(function(){}),se},Ae.prototype.match=function(ne){return this._cache[ne]},Ae.prototype.loadImage=function(ne){return Me(this,void 0,void 0,function(){var se,oe,me,Qe,At=this;return De(this,function(xt){switch(xt.label){case 0:return se=_i.isSameOrigin(ne),oe=!Fa(ne)&&this._options.useCORS===!0&&Ir.SUPPORT_CORS_IMAGES&&!se,me=!Fa(ne)&&!se&&!Sa(ne)&&typeof this._options.proxy=="string"&&Ir.SUPPORT_CORS_XHR&&!oe,!se&&this._options.allowTaint===!1&&!Fa(ne)&&!Sa(ne)&&!me&&!oe?[2]:(Qe=ne,me?[4,this.proxy(Qe)]:[3,2]);case 1:Qe=xt.sent(),xt.label=2;case 2:return this.context.logger.debug("Added image "+ne.substring(0,256)),[4,new Promise(function(Ct,Bn){var In=new Image;In.onload=function(){return Ct(In)},In.onerror=Bn,(sa(Qe)||oe)&&(In.crossOrigin="anonymous"),In.src=Qe,In.complete===!0&&setTimeout(function(){return Ct(In)},500),At._options.imageTimeout>0&&setTimeout(function(){return Bn("Timed out ("+At._options.imageTimeout+"ms) loading image")},At._options.imageTimeout)})];case 3:return[2,xt.sent()]}})})},Ae.prototype.has=function(ne){return typeof this._cache[ne]!="undefined"},Ae.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Ae.prototype.proxy=function(ne){var se=this,oe=this._options.proxy;if(!oe)throw new Error("No proxy defined");var me=ne.substring(0,256);return new Promise(function(Qe,At){var xt=Ir.SUPPORT_RESPONSE_TYPE?"blob":"text",Ct=new XMLHttpRequest;Ct.onload=function(){if(Ct.status===200)if(xt==="text")Qe(Ct.response);else{var Pn=new FileReader;Pn.addEventListener("load",function(){return Qe(Pn.result)},!1),Pn.addEventListener("error",function(gr){return At(gr)},!1),Pn.readAsDataURL(Ct.response)}else At("Failed to proxy resource "+me+" with status code "+Ct.status)},Ct.onerror=At;var Bn=oe.indexOf("?")>-1?"&":"?";if(Ct.open("GET",""+oe+Bn+"url="+encodeURIComponent(ne)+"&responseType="+xt),xt!=="text"&&Ct instanceof XMLHttpRequest&&(Ct.responseType=xt),se._options.imageTimeout){var In=se._options.imageTimeout;Ct.timeout=In,Ct.ontimeout=function(){return At("Timed out ("+In+"ms) proxying "+me)}}Ct.send()})},Ae}(),RA=/^data:image\/svg\+xml/i,ha=/^data:image\/.*;base64,/i,na=/^data:image\/.*/i,Ga=function(Ae){return Ir.SUPPORT_SVG_DRAWING||!ma(Ae)},Fa=function(Ae){return na.test(Ae)},sa=function(Ae){return ha.test(Ae)},Sa=function(Ae){return Ae.substr(0,4)==="blob"},ma=function(Ae){return Ae.substr(-3).toLowerCase()==="svg"||RA.test(Ae)},zr=function(){function Ae(ne,se){this.type=0,this.x=ne,this.y=se}return Ae.prototype.add=function(ne,se){return new Ae(this.x+ne,this.y+se)},Ae}(),VA=function(Ae,ne,se){return new zr(Ae.x+(ne.x-Ae.x)*se,Ae.y+(ne.y-Ae.y)*se)},jA=function(){function Ae(ne,se,oe,me){this.type=1,this.start=ne,this.startControl=se,this.endControl=oe,this.end=me}return Ae.prototype.subdivide=function(ne,se){var oe=VA(this.start,this.startControl,ne),me=VA(this.startControl,this.endControl,ne),Qe=VA(this.endControl,this.end,ne),At=VA(oe,me,ne),xt=VA(me,Qe,ne),Ct=VA(At,xt,ne);return se?new Ae(this.start,oe,At,Ct):new Ae(Ct,xt,Qe,this.end)},Ae.prototype.add=function(ne,se){return new Ae(this.start.add(ne,se),this.startControl.add(ne,se),this.endControl.add(ne,se),this.end.add(ne,se))},Ae.prototype.reverse=function(){return new Ae(this.end,this.endControl,this.startControl,this.start)},Ae}(),YA=function(Ae){return Ae.type===1},Vs=function(){function Ae(ne){var se=ne.styles,oe=ne.bounds,me=KA(se.borderTopLeftRadius,oe.width,oe.height),Qe=me[0],At=me[1],xt=KA(se.borderTopRightRadius,oe.width,oe.height),Ct=xt[0],Bn=xt[1],In=KA(se.borderBottomRightRadius,oe.width,oe.height),Pn=In[0],gr=In[1],Bi=KA(se.borderBottomLeftRadius,oe.width,oe.height),Yr=Bi[0],ci=Bi[1],aA=[];aA.push((Qe+Ct)/oe.width),aA.push((Yr+Pn)/oe.width),aA.push((At+ci)/oe.height),aA.push((Bn+gr)/oe.height);var Ui=Math.max.apply(Math,aA);Ui>1&&(Qe/=Ui,At/=Ui,Ct/=Ui,Bn/=Ui,Pn/=Ui,gr/=Ui,Yr/=Ui,ci/=Ui);var Si=oe.width-Ct,LA=oe.height-gr,lA=oe.width-Pn,Yi=oe.height-ci,yi=se.borderTopWidth,SA=se.borderRightWidth,_A=se.borderBottomWidth,Ji=se.borderLeftWidth,ya=Vi(se.paddingTop,ne.bounds.width),ao=Vi(se.paddingRight,ne.bounds.width),vo=Vi(se.paddingBottom,ne.bounds.width),XA=Vi(se.paddingLeft,ne.bounds.width);this.topLeftBorderDoubleOuterBox=Qe>0||At>0?eA(oe.left+Ji/3,oe.top+yi/3,Qe-Ji/3,At-yi/3,cA.TOP_LEFT):new zr(oe.left+Ji/3,oe.top+yi/3),this.topRightBorderDoubleOuterBox=Qe>0||At>0?eA(oe.left+Si,oe.top+yi/3,Ct-SA/3,Bn-yi/3,cA.TOP_RIGHT):new zr(oe.left+oe.width-SA/3,oe.top+yi/3),this.bottomRightBorderDoubleOuterBox=Pn>0||gr>0?eA(oe.left+lA,oe.top+LA,Pn-SA/3,gr-_A/3,cA.BOTTOM_RIGHT):new zr(oe.left+oe.width-SA/3,oe.top+oe.height-_A/3),this.bottomLeftBorderDoubleOuterBox=Yr>0||ci>0?eA(oe.left+Ji/3,oe.top+Yi,Yr-Ji/3,ci-_A/3,cA.BOTTOM_LEFT):new zr(oe.left+Ji/3,oe.top+oe.height-_A/3),this.topLeftBorderDoubleInnerBox=Qe>0||At>0?eA(oe.left+Ji*2/3,oe.top+yi*2/3,Qe-Ji*2/3,At-yi*2/3,cA.TOP_LEFT):new zr(oe.left+Ji*2/3,oe.top+yi*2/3),this.topRightBorderDoubleInnerBox=Qe>0||At>0?eA(oe.left+Si,oe.top+yi*2/3,Ct-SA*2/3,Bn-yi*2/3,cA.TOP_RIGHT):new zr(oe.left+oe.width-SA*2/3,oe.top+yi*2/3),this.bottomRightBorderDoubleInnerBox=Pn>0||gr>0?eA(oe.left+lA,oe.top+LA,Pn-SA*2/3,gr-_A*2/3,cA.BOTTOM_RIGHT):new zr(oe.left+oe.width-SA*2/3,oe.top+oe.height-_A*2/3),this.bottomLeftBorderDoubleInnerBox=Yr>0||ci>0?eA(oe.left+Ji*2/3,oe.top+Yi,Yr-Ji*2/3,ci-_A*2/3,cA.BOTTOM_LEFT):new zr(oe.left+Ji*2/3,oe.top+oe.height-_A*2/3),this.topLeftBorderStroke=Qe>0||At>0?eA(oe.left+Ji/2,oe.top+yi/2,Qe-Ji/2,At-yi/2,cA.TOP_LEFT):new zr(oe.left+Ji/2,oe.top+yi/2),this.topRightBorderStroke=Qe>0||At>0?eA(oe.left+Si,oe.top+yi/2,Ct-SA/2,Bn-yi/2,cA.TOP_RIGHT):new zr(oe.left+oe.width-SA/2,oe.top+yi/2),this.bottomRightBorderStroke=Pn>0||gr>0?eA(oe.left+lA,oe.top+LA,Pn-SA/2,gr-_A/2,cA.BOTTOM_RIGHT):new zr(oe.left+oe.width-SA/2,oe.top+oe.height-_A/2),this.bottomLeftBorderStroke=Yr>0||ci>0?eA(oe.left+Ji/2,oe.top+Yi,Yr-Ji/2,ci-_A/2,cA.BOTTOM_LEFT):new zr(oe.left+Ji/2,oe.top+oe.height-_A/2),this.topLeftBorderBox=Qe>0||At>0?eA(oe.left,oe.top,Qe,At,cA.TOP_LEFT):new zr(oe.left,oe.top),this.topRightBorderBox=Ct>0||Bn>0?eA(oe.left+Si,oe.top,Ct,Bn,cA.TOP_RIGHT):new zr(oe.left+oe.width,oe.top),this.bottomRightBorderBox=Pn>0||gr>0?eA(oe.left+lA,oe.top+LA,Pn,gr,cA.BOTTOM_RIGHT):new zr(oe.left+oe.width,oe.top+oe.height),this.bottomLeftBorderBox=Yr>0||ci>0?eA(oe.left,oe.top+Yi,Yr,ci,cA.BOTTOM_LEFT):new zr(oe.left,oe.top+oe.height),this.topLeftPaddingBox=Qe>0||At>0?eA(oe.left+Ji,oe.top+yi,Math.max(0,Qe-Ji),Math.max(0,At-yi),cA.TOP_LEFT):new zr(oe.left+Ji,oe.top+yi),this.topRightPaddingBox=Ct>0||Bn>0?eA(oe.left+Math.min(Si,oe.width-SA),oe.top+yi,Si>oe.width+SA?0:Math.max(0,Ct-SA),Math.max(0,Bn-yi),cA.TOP_RIGHT):new zr(oe.left+oe.width-SA,oe.top+yi),this.bottomRightPaddingBox=Pn>0||gr>0?eA(oe.left+Math.min(lA,oe.width-Ji),oe.top+Math.min(LA,oe.height-_A),Math.max(0,Pn-SA),Math.max(0,gr-_A),cA.BOTTOM_RIGHT):new zr(oe.left+oe.width-SA,oe.top+oe.height-_A),this.bottomLeftPaddingBox=Yr>0||ci>0?eA(oe.left+Ji,oe.top+Math.min(Yi,oe.height-_A),Math.max(0,Yr-Ji),Math.max(0,ci-_A),cA.BOTTOM_LEFT):new zr(oe.left+Ji,oe.top+oe.height-_A),this.topLeftContentBox=Qe>0||At>0?eA(oe.left+Ji+XA,oe.top+yi+ya,Math.max(0,Qe-(Ji+XA)),Math.max(0,At-(yi+ya)),cA.TOP_LEFT):new zr(oe.left+Ji+XA,oe.top+yi+ya),this.topRightContentBox=Ct>0||Bn>0?eA(oe.left+Math.min(Si,oe.width+Ji+XA),oe.top+yi+ya,Si>oe.width+Ji+XA?0:Ct-Ji+XA,Bn-(yi+ya),cA.TOP_RIGHT):new zr(oe.left+oe.width-(SA+ao),oe.top+yi+ya),this.bottomRightContentBox=Pn>0||gr>0?eA(oe.left+Math.min(lA,oe.width-(Ji+XA)),oe.top+Math.min(LA,oe.height+yi+ya),Math.max(0,Pn-(SA+ao)),gr-(_A+vo),cA.BOTTOM_RIGHT):new zr(oe.left+oe.width-(SA+ao),oe.top+oe.height-(_A+vo)),this.bottomLeftContentBox=Yr>0||ci>0?eA(oe.left+Ji+XA,oe.top+Yi,Math.max(0,Yr-(Ji+XA)),ci-(_A+vo),cA.BOTTOM_LEFT):new zr(oe.left+Ji+XA,oe.top+oe.height-(_A+vo))}return Ae}(),cA;(function(Ae){Ae[Ae.TOP_LEFT=0]="TOP_LEFT",Ae[Ae.TOP_RIGHT=1]="TOP_RIGHT",Ae[Ae.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Ae[Ae.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(cA||(cA={}));var eA=function(Ae,ne,se,oe,me){var Qe=4*((Math.sqrt(2)-1)/3),At=se*Qe,xt=oe*Qe,Ct=Ae+se,Bn=ne+oe;switch(me){case cA.TOP_LEFT:return new jA(new zr(Ae,Bn),new zr(Ae,Bn-xt),new zr(Ct-At,ne),new zr(Ct,ne));case cA.TOP_RIGHT:return new jA(new zr(Ae,ne),new zr(Ae+At,ne),new zr(Ct,Bn-xt),new zr(Ct,Bn));case cA.BOTTOM_RIGHT:return new jA(new zr(Ct,ne),new zr(Ct,ne+xt),new zr(Ae+At,Bn),new zr(Ae,Bn));case cA.BOTTOM_LEFT:default:return new jA(new zr(Ct,Bn),new zr(Ct-At,Bn),new zr(Ae,ne+xt),new zr(Ae,ne))}},eo=function(Ae){return[Ae.topLeftBorderBox,Ae.topRightBorderBox,Ae.bottomRightBorderBox,Ae.bottomLeftBorderBox]},pa=function(Ae){return[Ae.topLeftContentBox,Ae.topRightContentBox,Ae.bottomRightContentBox,Ae.bottomLeftContentBox]},js=function(Ae){return[Ae.topLeftPaddingBox,Ae.topRightPaddingBox,Ae.bottomRightPaddingBox,Ae.bottomLeftPaddingBox]},Go=function(){function Ae(ne,se,oe){this.offsetX=ne,this.offsetY=se,this.matrix=oe,this.type=0,this.target=6}return Ae}(),ko=function(){function Ae(ne,se){this.path=ne,this.target=se,this.type=1}return Ae}(),Ss=function(){function Ae(ne){this.opacity=ne,this.type=2,this.target=6}return Ae}(),Ha=function(Ae){return Ae.type===0},_s=function(Ae){return Ae.type===1},mu=function(Ae){return Ae.type===2},tc=function(Ae,ne){return Ae.length===ne.length?Ae.some(function(se,oe){return se===ne[oe]}):!1},dc=function(Ae,ne,se,oe,me){return Ae.map(function(Qe,At){switch(At){case 0:return Qe.add(ne,se);case 1:return Qe.add(ne+oe,se);case 2:return Qe.add(ne+oe,se+me);case 3:return Qe.add(ne,se+me)}return Qe})},nc=function(){function Ae(ne){this.element=ne,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Ae}(),rc=function(){function Ae(ne,se){if(this.container=ne,this.parent=se,this.effects=[],this.curves=new Vs(this.container),this.container.styles.opacity<1&&this.effects.push(new Ss(this.container.styles.opacity)),this.container.styles.transform!==null){var oe=this.container.bounds.left+this.container.styles.transformOrigin[0].number,me=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Qe=this.container.styles.transform;this.effects.push(new Go(oe,me,Qe))}if(this.container.styles.overflowX!==0){var At=eo(this.curves),xt=js(this.curves);tc(At,xt)?this.effects.push(new ko(At,6)):(this.effects.push(new ko(At,2)),this.effects.push(new ko(xt,4)))}}return Ae.prototype.getEffects=function(ne){for(var se=[2,3].indexOf(this.container.styles.position)===-1,oe=this.parent,me=this.effects.slice(0);oe;){var Qe=oe.effects.filter(function(Ct){return!_s(Ct)});if(se||oe.container.styles.position!==0||!oe.parent){if(me.unshift.apply(me,Qe),se=[2,3].indexOf(oe.container.styles.position)===-1,oe.container.styles.overflowX!==0){var At=eo(oe.curves),xt=js(oe.curves);tc(At,xt)||me.unshift(new ko(xt,6))}}else me.unshift.apply(me,Qe);oe=oe.parent}return me.filter(function(Ct){return aa(Ct.target,ne)})},Ae}(),Ju=function(Ae,ne,se,oe){Ae.container.elements.forEach(function(me){var Qe=aa(me.flags,4),At=aa(me.flags,2),xt=new rc(me,Ae);aa(me.styles.display,2048)&&oe.push(xt);var Ct=aa(me.flags,8)?[]:oe;if(Qe||At){var Bn=Qe||me.styles.isPositioned()?se:ne,In=new nc(xt);if(me.styles.isPositioned()||me.styles.opacity<1||me.styles.isTransformed()){var Pn=me.styles.zIndex.order;if(Pn<0){var gr=0;Bn.negativeZIndex.some(function(Yr,ci){return Pn>Yr.element.container.styles.zIndex.order?(gr=ci,!1):gr>0}),Bn.negativeZIndex.splice(gr,0,In)}else if(Pn>0){var Bi=0;Bn.positiveZIndex.some(function(Yr,ci){return Pn>=Yr.element.container.styles.zIndex.order?(Bi=ci+1,!1):Bi>0}),Bn.positiveZIndex.splice(Bi,0,In)}else Bn.zeroOrAutoZIndexOrTransformedOrOpacity.push(In)}else me.styles.isFloating()?Bn.nonPositionedFloats.push(In):Bn.nonPositionedInlineLevel.push(In);Ju(xt,In,Qe?In:se,Ct)}else me.styles.isInlineLevel()?ne.inlineLevel.push(xt):ne.nonInlineLevel.push(xt),Ju(xt,ne,se,Ct);aa(me.flags,8)&&ic(me,Ct)})},ic=function(Ae,ne){for(var se=Ae instanceof Wl?Ae.start:1,oe=Ae instanceof Wl?Ae.reversed:!1,me=0;me<ne.length;me++){var Qe=ne[me];Qe.container instanceof zl&&typeof Qe.container.value=="number"&&Qe.container.value!==0&&(se=Qe.container.value),Qe.listValue=E(se,Qe.container.styles.listStyleType,!0),se+=oe?-1:1}},hc=function(Ae){var ne=new rc(Ae,null),se=new nc(ne),oe=[];return Ju(ne,se,se,oe),ic(ne.container,oe),se},Ac=function(Ae,ne){switch(ne){case 0:return Uo(Ae.topLeftBorderBox,Ae.topLeftPaddingBox,Ae.topRightBorderBox,Ae.topRightPaddingBox);case 1:return Uo(Ae.topRightBorderBox,Ae.topRightPaddingBox,Ae.bottomRightBorderBox,Ae.bottomRightPaddingBox);case 2:return Uo(Ae.bottomRightBorderBox,Ae.bottomRightPaddingBox,Ae.bottomLeftBorderBox,Ae.bottomLeftPaddingBox);case 3:default:return Uo(Ae.bottomLeftBorderBox,Ae.bottomLeftPaddingBox,Ae.topLeftBorderBox,Ae.topLeftPaddingBox)}},pc=function(Ae,ne){switch(ne){case 0:return Uo(Ae.topLeftBorderBox,Ae.topLeftBorderDoubleOuterBox,Ae.topRightBorderBox,Ae.topRightBorderDoubleOuterBox);case 1:return Uo(Ae.topRightBorderBox,Ae.topRightBorderDoubleOuterBox,Ae.bottomRightBorderBox,Ae.bottomRightBorderDoubleOuterBox);case 2:return Uo(Ae.bottomRightBorderBox,Ae.bottomRightBorderDoubleOuterBox,Ae.bottomLeftBorderBox,Ae.bottomLeftBorderDoubleOuterBox);case 3:default:return Uo(Ae.bottomLeftBorderBox,Ae.bottomLeftBorderDoubleOuterBox,Ae.topLeftBorderBox,Ae.topLeftBorderDoubleOuterBox)}},gc=function(Ae,ne){switch(ne){case 0:return Uo(Ae.topLeftBorderDoubleInnerBox,Ae.topLeftPaddingBox,Ae.topRightBorderDoubleInnerBox,Ae.topRightPaddingBox);case 1:return Uo(Ae.topRightBorderDoubleInnerBox,Ae.topRightPaddingBox,Ae.bottomRightBorderDoubleInnerBox,Ae.bottomRightPaddingBox);case 2:return Uo(Ae.bottomRightBorderDoubleInnerBox,Ae.bottomRightPaddingBox,Ae.bottomLeftBorderDoubleInnerBox,Ae.bottomLeftPaddingBox);case 3:default:return Uo(Ae.bottomLeftBorderDoubleInnerBox,Ae.bottomLeftPaddingBox,Ae.topLeftBorderDoubleInnerBox,Ae.topLeftPaddingBox)}},vc=function(Ae,ne){switch(ne){case 0:return Pu(Ae.topLeftBorderStroke,Ae.topRightBorderStroke);case 1:return Pu(Ae.topRightBorderStroke,Ae.bottomRightBorderStroke);case 2:return Pu(Ae.bottomRightBorderStroke,Ae.bottomLeftBorderStroke);case 3:default:return Pu(Ae.bottomLeftBorderStroke,Ae.topLeftBorderStroke)}},Pu=function(Ae,ne){var se=[];return YA(Ae)?se.push(Ae.subdivide(.5,!1)):se.push(Ae),YA(ne)?se.push(ne.subdivide(.5,!0)):se.push(ne),se},Uo=function(Ae,ne,se,oe){var me=[];return YA(Ae)?me.push(Ae.subdivide(.5,!1)):me.push(Ae),YA(se)?me.push(se.subdivide(.5,!0)):me.push(se),YA(oe)?me.push(oe.subdivide(.5,!0).reverse()):me.push(oe),YA(ne)?me.push(ne.subdivide(.5,!1).reverse()):me.push(ne),me},ac=function(Ae){var ne=Ae.bounds,se=Ae.styles;return ne.add(se.borderLeftWidth,se.borderTopWidth,-(se.borderRightWidth+se.borderLeftWidth),-(se.borderTopWidth+se.borderBottomWidth))},Ku=function(Ae){var ne=Ae.styles,se=Ae.bounds,oe=Vi(ne.paddingLeft,se.width),me=Vi(ne.paddingRight,se.width),Qe=Vi(ne.paddingTop,se.width),At=Vi(ne.paddingBottom,se.width);return se.add(oe+ne.borderLeftWidth,Qe+ne.borderTopWidth,-(ne.borderRightWidth+ne.borderLeftWidth+oe+me),-(ne.borderTopWidth+ne.borderBottomWidth+Qe+At))},mc=function(Ae,ne){return Ae===0?ne.bounds:Ae===2?Ku(ne):ac(ne)},yc=function(Ae,ne){return Ae===0?ne.bounds:Ae===2?Ku(ne):ac(ne)},qu=function(Ae,ne,se){var oe=mc(ql(Ae.styles.backgroundOrigin,ne),Ae),me=yc(ql(Ae.styles.backgroundClip,ne),Ae),Qe=wc(ql(Ae.styles.backgroundSize,ne),se,oe),At=Qe[0],xt=Qe[1],Ct=KA(ql(Ae.styles.backgroundPosition,ne),oe.width-At,oe.height-xt),Bn=Bc(ql(Ae.styles.backgroundRepeat,ne),Ct,Qe,oe,me),In=Math.round(oe.left+Ct[0]),Pn=Math.round(oe.top+Ct[1]);return[Bn,In,Pn,At,xt]},Jl=function(Ae){return Mi(Ae)&&Ae.value===Ya.AUTO},Zu=function(Ae){return typeof Ae=="number"},wc=function(Ae,ne,se){var oe=ne[0],me=ne[1],Qe=ne[2],At=Ae[0],xt=Ae[1];if(!At)return[0,0];if(ji(At)&&xt&&ji(xt))return[Vi(At,se.width),Vi(xt,se.height)];var Ct=Zu(Qe);if(Mi(At)&&(At.value===Ya.CONTAIN||At.value===Ya.COVER)){if(Zu(Qe)){var Bn=se.width/se.height;return Bn<Qe!=(At.value===Ya.COVER)?[se.width,se.width/Qe]:[se.height*Qe,se.height]}return[se.width,se.height]}var In=Zu(oe),Pn=Zu(me),gr=In||Pn;if(Jl(At)&&(!xt||Jl(xt))){if(In&&Pn)return[oe,me];if(!Ct&&!gr)return[se.width,se.height];if(gr&&Ct){var Bi=In?oe:me*Qe,Yr=Pn?me:oe/Qe;return[Bi,Yr]}var ci=In?oe:se.width,aA=Pn?me:se.height;return[ci,aA]}if(Ct){var Ui=0,Si=0;return ji(At)?Ui=Vi(At,se.width):ji(xt)&&(Si=Vi(xt,se.height)),Jl(At)?Ui=Si*Qe:(!xt||Jl(xt))&&(Si=Ui/Qe),[Ui,Si]}var LA=null,lA=null;if(ji(At)?LA=Vi(At,se.width):xt&&ji(xt)&&(lA=Vi(xt,se.height)),LA!==null&&(!xt||Jl(xt))&&(lA=In&&Pn?LA/oe*me:se.height),lA!==null&&Jl(At)&&(LA=In&&Pn?lA/me*oe:se.width),LA!==null&&lA!==null)return[LA,lA];throw new Error("Unable to calculate background-size for element")},ql=function(Ae,ne){var se=Ae[ne];return typeof se=="undefined"?Ae[0]:se},Bc=function(Ae,ne,se,oe,me){var Qe=ne[0],At=ne[1],xt=se[0],Ct=se[1];switch(Ae){case 2:return[new zr(Math.round(oe.left),Math.round(oe.top+At)),new zr(Math.round(oe.left+oe.width),Math.round(oe.top+At)),new zr(Math.round(oe.left+oe.width),Math.round(Ct+oe.top+At)),new zr(Math.round(oe.left),Math.round(Ct+oe.top+At))];case 3:return[new zr(Math.round(oe.left+Qe),Math.round(oe.top)),new zr(Math.round(oe.left+Qe+xt),Math.round(oe.top)),new zr(Math.round(oe.left+Qe+xt),Math.round(oe.height+oe.top)),new zr(Math.round(oe.left+Qe),Math.round(oe.height+oe.top))];case 1:return[new zr(Math.round(oe.left+Qe),Math.round(oe.top+At)),new zr(Math.round(oe.left+Qe+xt),Math.round(oe.top+At)),new zr(Math.round(oe.left+Qe+xt),Math.round(oe.top+At+Ct)),new zr(Math.round(oe.left+Qe),Math.round(oe.top+At+Ct))];default:return[new zr(Math.round(me.left),Math.round(me.top)),new zr(Math.round(me.left+me.width),Math.round(me.top)),new zr(Math.round(me.left+me.width),Math.round(me.height+me.top)),new zr(Math.round(me.left),Math.round(me.height+me.top))]}},Cc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",oc="Hidden Text",xc=function(){function Ae(ne){this._data={},this._document=ne}return Ae.prototype.parseMetrics=function(ne,se){var oe=this._document.createElement("div"),me=this._document.createElement("img"),Qe=this._document.createElement("span"),At=this._document.body;oe.style.visibility="hidden",oe.style.fontFamily=ne,oe.style.fontSize=se,oe.style.margin="0",oe.style.padding="0",oe.style.whiteSpace="nowrap",At.appendChild(oe),me.src=Cc,me.width=1,me.height=1,me.style.margin="0",me.style.padding="0",me.style.verticalAlign="baseline",Qe.style.fontFamily=ne,Qe.style.fontSize=se,Qe.style.margin="0",Qe.style.padding="0",Qe.appendChild(this._document.createTextNode(oc)),oe.appendChild(Qe),oe.appendChild(me);var xt=me.offsetTop-Qe.offsetTop+2;oe.removeChild(Qe),oe.appendChild(this._document.createTextNode(oc)),oe.style.lineHeight="normal",me.style.verticalAlign="super";var Ct=me.offsetTop-oe.offsetTop+2;return At.removeChild(oe),{baseline:xt,middle:Ct}},Ae.prototype.getMetrics=function(ne,se){var oe=ne+" "+se;return typeof this._data[oe]=="undefined"&&(this._data[oe]=this.parseMetrics(ne,se)),this._data[oe]},Ae}(),sc=function(){function Ae(ne,se){this.context=ne,this.options=se}return Ae}(),Ec=1e4,bc=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;return me._activeEffects=[],me.canvas=oe.canvas?oe.canvas:document.createElement("canvas"),me.ctx=me.canvas.getContext("2d"),oe.canvas||(me.canvas.width=Math.floor(oe.width*oe.scale),me.canvas.height=Math.floor(oe.height*oe.scale),me.canvas.style.width=oe.width+"px",me.canvas.style.height=oe.height+"px"),me.fontMetrics=new xc(document),me.ctx.scale(me.options.scale,me.options.scale),me.ctx.translate(-oe.x,-oe.y),me.ctx.textBaseline="bottom",me._activeEffects=[],me.context.logger.debug("Canvas renderer initialized ("+oe.width+"x"+oe.height+") with scale "+oe.scale),me}return ne.prototype.applyEffects=function(se){for(var oe=this;this._activeEffects.length;)this.popEffect();se.forEach(function(me){return oe.applyEffect(me)})},ne.prototype.applyEffect=function(se){this.ctx.save(),mu(se)&&(this.ctx.globalAlpha=se.opacity),Ha(se)&&(this.ctx.translate(se.offsetX,se.offsetY),this.ctx.transform(se.matrix[0],se.matrix[1],se.matrix[2],se.matrix[3],se.matrix[4],se.matrix[5]),this.ctx.translate(-se.offsetX,-se.offsetY)),_s(se)&&(this.path(se.path),this.ctx.clip()),this._activeEffects.push(se)},ne.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ne.prototype.renderStack=function(se){return Me(this,void 0,void 0,function(){var oe;return De(this,function(me){switch(me.label){case 0:return oe=se.element.container.styles,oe.isVisible()?[4,this.renderStackContent(se)]:[3,2];case 1:me.sent(),me.label=2;case 2:return[2]}})})},ne.prototype.renderNode=function(se){return Me(this,void 0,void 0,function(){return De(this,function(oe){switch(oe.label){case 0:if(aa(se.container.flags,16))debugger;return se.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(se)]:[3,3];case 1:return oe.sent(),[4,this.renderNodeContent(se)];case 2:oe.sent(),oe.label=3;case 3:return[2]}})})},ne.prototype.renderTextWithLetterSpacing=function(se,oe,me){var Qe=this;if(oe===0)this.ctx.fillText(se.text,se.bounds.left,se.bounds.top+me);else{var At=oA(se.text);At.reduce(function(xt,Ct){return Qe.ctx.fillText(Ct,xt,se.bounds.top+me),xt+Qe.ctx.measureText(Ct).width},se.bounds.left)}},ne.prototype.createFontStyle=function(se){var oe=se.fontVariant.filter(function(At){return At==="normal"||At==="small-caps"}).join(""),me=Uc(se.fontFamily).join(", "),Qe=Ni(se.fontSize)?""+se.fontSize.number+se.fontSize.unit:se.fontSize.number+"px";return[[se.fontStyle,oe,se.fontWeight,Qe,me].join(" "),me,Qe]},ne.prototype.renderTextNode=function(se,oe){return Me(this,void 0,void 0,function(){var me,Qe,At,xt,Ct,Bn,In,Pn,gr=this;return De(this,function(Bi){return me=this.createFontStyle(oe),Qe=me[0],At=me[1],xt=me[2],this.ctx.font=Qe,this.ctx.direction=oe.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Ct=this.fontMetrics.getMetrics(At,xt),Bn=Ct.baseline,In=Ct.middle,Pn=oe.paintOrder,se.textBounds.forEach(function(Yr){Pn.forEach(function(ci){switch(ci){case 0:gr.ctx.fillStyle=uA(oe.color),gr.renderTextWithLetterSpacing(Yr,oe.letterSpacing,Bn);var aA=oe.textShadow;aA.length&&Yr.text.trim().length&&(aA.slice(0).reverse().forEach(function(Ui){gr.ctx.shadowColor=uA(Ui.color),gr.ctx.shadowOffsetX=Ui.offsetX.number*gr.options.scale,gr.ctx.shadowOffsetY=Ui.offsetY.number*gr.options.scale,gr.ctx.shadowBlur=Ui.blur.number,gr.renderTextWithLetterSpacing(Yr,oe.letterSpacing,Bn)}),gr.ctx.shadowColor="",gr.ctx.shadowOffsetX=0,gr.ctx.shadowOffsetY=0,gr.ctx.shadowBlur=0),oe.textDecorationLine.length&&(gr.ctx.fillStyle=uA(oe.textDecorationColor||oe.color),oe.textDecorationLine.forEach(function(Ui){switch(Ui){case 1:gr.ctx.fillRect(Yr.bounds.left,Math.round(Yr.bounds.top+Bn),Yr.bounds.width,1);break;case 2:gr.ctx.fillRect(Yr.bounds.left,Math.round(Yr.bounds.top),Yr.bounds.width,1);break;case 3:gr.ctx.fillRect(Yr.bounds.left,Math.ceil(Yr.bounds.top+In),Yr.bounds.width,1);break}}));break;case 1:oe.webkitTextStrokeWidth&&Yr.text.trim().length&&(gr.ctx.strokeStyle=uA(oe.webkitTextStrokeColor),gr.ctx.lineWidth=oe.webkitTextStrokeWidth,gr.ctx.lineJoin=window.chrome?"miter":"round",gr.ctx.strokeText(Yr.text,Yr.bounds.left,Yr.bounds.top+Bn)),gr.ctx.strokeStyle="",gr.ctx.lineWidth=0,gr.ctx.lineJoin="miter";break}})}),[2]})})},ne.prototype.renderReplacedElement=function(se,oe,me){if(me&&se.intrinsicWidth>0&&se.intrinsicHeight>0){var Qe=Ku(se),At=js(oe);this.path(At),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(me,0,0,se.intrinsicWidth,se.intrinsicHeight,Qe.left,Qe.top,Qe.width,Qe.height),this.ctx.restore()}},ne.prototype.renderNodeContent=function(se){return Me(this,void 0,void 0,function(){var oe,me,Qe,At,xt,Ct,Si,Si,Bn,In,Pn,gr,lA,Bi,Yr,Yi,ci,aA,Ui,Si,LA,lA,Yi;return De(this,function(yi){switch(yi.label){case 0:this.applyEffects(se.getEffects(4)),oe=se.container,me=se.curves,Qe=oe.styles,At=0,xt=oe.textNodes,yi.label=1;case 1:return At<xt.length?(Ct=xt[At],[4,this.renderTextNode(Ct,Qe)]):[3,4];case 2:yi.sent(),yi.label=3;case 3:return At++,[3,1];case 4:if(!(oe instanceof cu))return[3,8];yi.label=5;case 5:return yi.trys.push([5,7,,8]),[4,this.context.cache.match(oe.src)];case 6:return Si=yi.sent(),this.renderReplacedElement(oe,me,Si),[3,8];case 7:return yi.sent(),this.context.logger.error("Error loading image "+oe.src),[3,8];case 8:if(oe instanceof fu&&this.renderReplacedElement(oe,me,oe.canvas),!(oe instanceof xu))return[3,12];yi.label=9;case 9:return yi.trys.push([9,11,,12]),[4,this.context.cache.match(oe.svg)];case 10:return Si=yi.sent(),this.renderReplacedElement(oe,me,Si),[3,12];case 11:return yi.sent(),this.context.logger.error("Error loading svg "+oe.svg.substring(0,255)),[3,12];case 12:return oe instanceof ku&&oe.tree?(Bn=new ne(this.context,{scale:this.options.scale,backgroundColor:oe.backgroundColor,x:0,y:0,width:oe.width,height:oe.height}),[4,Bn.render(oe.tree)]):[3,14];case 13:In=yi.sent(),oe.width&&oe.height&&this.ctx.drawImage(In,0,0,oe.width,oe.height,oe.bounds.left,oe.bounds.top,oe.bounds.width,oe.bounds.height),yi.label=14;case 14:if(oe instanceof Gl&&(Pn=Math.min(oe.bounds.width,oe.bounds.height),oe.type===Ws?oe.checked&&(this.ctx.save(),this.path([new zr(oe.bounds.left+Pn*.39363,oe.bounds.top+Pn*.79),new zr(oe.bounds.left+Pn*.16,oe.bounds.top+Pn*.5549),new zr(oe.bounds.left+Pn*.27347,oe.bounds.top+Pn*.44071),new zr(oe.bounds.left+Pn*.39694,oe.bounds.top+Pn*.5649),new zr(oe.bounds.left+Pn*.72983,oe.bounds.top+Pn*.23),new zr(oe.bounds.left+Pn*.84,oe.bounds.top+Pn*.34085),new zr(oe.bounds.left+Pn*.39363,oe.bounds.top+Pn*.79)]),this.ctx.fillStyle=uA(Fu),this.ctx.fill(),this.ctx.restore()):oe.type===as&&oe.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(oe.bounds.left+Pn/2,oe.bounds.top+Pn/2,Pn/4,0,Math.PI*2,!0),this.ctx.fillStyle=uA(Fu),this.ctx.fill(),this.ctx.restore())),Fc(oe)&&oe.value.length){switch(gr=this.createFontStyle(Qe),lA=gr[0],Bi=gr[1],Yr=this.fontMetrics.getMetrics(lA,Bi).baseline,this.ctx.font=lA,this.ctx.fillStyle=uA(Qe.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=_c(oe.styles.textAlign),Yi=Ku(oe),ci=0,oe.styles.textAlign){case 1:ci+=Yi.width/2;break;case 2:ci+=Yi.width;break}aA=Yi.add(ci,0,0,-Yi.height/2+1),this.ctx.save(),this.path([new zr(Yi.left,Yi.top),new zr(Yi.left+Yi.width,Yi.top),new zr(Yi.left+Yi.width,Yi.top+Yi.height),new zr(Yi.left,Yi.top+Yi.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Gi(oe.value,aA),Qe.letterSpacing,Yr),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!aa(oe.styles.display,2048))return[3,20];if(oe.styles.listStyleImage===null)return[3,19];if(Ui=oe.styles.listStyleImage,Ui.type!==0)return[3,18];Si=void 0,LA=Ui.url,yi.label=15;case 15:return yi.trys.push([15,17,,18]),[4,this.context.cache.match(LA)];case 16:return Si=yi.sent(),this.ctx.drawImage(Si,oe.bounds.left-(Si.width+10),oe.bounds.top),[3,18];case 17:return yi.sent(),this.context.logger.error("Error loading list-style-image "+LA),[3,18];case 18:return[3,20];case 19:se.listValue&&oe.styles.listStyleType!==-1&&(lA=this.createFontStyle(Qe)[0],this.ctx.font=lA,this.ctx.fillStyle=uA(Qe.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yi=new Ee(oe.bounds.left,oe.bounds.top+Vi(oe.styles.paddingTop,oe.bounds.width),oe.bounds.width,Aa(Qe.lineHeight,Qe.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Gi(se.listValue,Yi),Qe.letterSpacing,Aa(Qe.lineHeight,Qe.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),yi.label=20;case 20:return[2]}})})},ne.prototype.renderStackContent=function(se){return Me(this,void 0,void 0,function(){var oe,me,Ui,Qe,At,Ui,xt,Ct,Ui,Bn,In,Ui,Pn,gr,Ui,Bi,Yr,Ui,ci,aA,Ui;return De(this,function(Si){switch(Si.label){case 0:if(aa(se.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(se.element)];case 1:Si.sent(),oe=0,me=se.negativeZIndex,Si.label=2;case 2:return oe<me.length?(Ui=me[oe],[4,this.renderStack(Ui)]):[3,5];case 3:Si.sent(),Si.label=4;case 4:return oe++,[3,2];case 5:return[4,this.renderNodeContent(se.element)];case 6:Si.sent(),Qe=0,At=se.nonInlineLevel,Si.label=7;case 7:return Qe<At.length?(Ui=At[Qe],[4,this.renderNode(Ui)]):[3,10];case 8:Si.sent(),Si.label=9;case 9:return Qe++,[3,7];case 10:xt=0,Ct=se.nonPositionedFloats,Si.label=11;case 11:return xt<Ct.length?(Ui=Ct[xt],[4,this.renderStack(Ui)]):[3,14];case 12:Si.sent(),Si.label=13;case 13:return xt++,[3,11];case 14:Bn=0,In=se.nonPositionedInlineLevel,Si.label=15;case 15:return Bn<In.length?(Ui=In[Bn],[4,this.renderStack(Ui)]):[3,18];case 16:Si.sent(),Si.label=17;case 17:return Bn++,[3,15];case 18:Pn=0,gr=se.inlineLevel,Si.label=19;case 19:return Pn<gr.length?(Ui=gr[Pn],[4,this.renderNode(Ui)]):[3,22];case 20:Si.sent(),Si.label=21;case 21:return Pn++,[3,19];case 22:Bi=0,Yr=se.zeroOrAutoZIndexOrTransformedOrOpacity,Si.label=23;case 23:return Bi<Yr.length?(Ui=Yr[Bi],[4,this.renderStack(Ui)]):[3,26];case 24:Si.sent(),Si.label=25;case 25:return Bi++,[3,23];case 26:ci=0,aA=se.positiveZIndex,Si.label=27;case 27:return ci<aA.length?(Ui=aA[ci],[4,this.renderStack(Ui)]):[3,30];case 28:Si.sent(),Si.label=29;case 29:return ci++,[3,27];case 30:return[2]}})})},ne.prototype.mask=function(se){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(se.slice(0).reverse()),this.ctx.closePath()},ne.prototype.path=function(se){this.ctx.beginPath(),this.formatPath(se),this.ctx.closePath()},ne.prototype.formatPath=function(se){var oe=this;se.forEach(function(me,Qe){var At=YA(me)?me.start:me;Qe===0?oe.ctx.moveTo(At.x,At.y):oe.ctx.lineTo(At.x,At.y),YA(me)&&oe.ctx.bezierCurveTo(me.startControl.x,me.startControl.y,me.endControl.x,me.endControl.y,me.end.x,me.end.y)})},ne.prototype.renderRepeat=function(se,oe,me,Qe){this.path(se),this.ctx.fillStyle=oe,this.ctx.translate(me,Qe),this.ctx.fill(),this.ctx.translate(-me,-Qe)},ne.prototype.resizeImage=function(se,oe,me){var Qe;if(se.width===oe&&se.height===me)return se;var At=(Qe=this.canvas.ownerDocument)!==null&&Qe!==void 0?Qe:document,xt=At.createElement("canvas");xt.width=Math.max(1,oe),xt.height=Math.max(1,me);var Ct=xt.getContext("2d");return Ct.drawImage(se,0,0,se.width,se.height,0,0,oe,me),xt},ne.prototype.renderBackgroundImage=function(se){return Me(this,void 0,void 0,function(){var oe,me,Qe,At,xt,Ct;return De(this,function(Bn){switch(Bn.label){case 0:oe=se.styles.backgroundImage.length-1,me=function(In){var Pn,gr,Bi,ya,oo,so,XA,Pa,_A,Yr,ya,oo,so,XA,Pa,ci,aA,Ui,Si,LA,lA,Yi,yi,SA,_A,Ji,ya,ao,vo,XA,Pa,Ys,oo,so,Fl,ss,Xs,Sl,_l,ks,kl,Us;return De(this,function($l){switch($l.label){case 0:if(In.type!==0)return[3,5];Pn=void 0,gr=In.url,$l.label=1;case 1:return $l.trys.push([1,3,,4]),[4,Qe.context.cache.match(gr)];case 2:return Pn=$l.sent(),[3,4];case 3:return $l.sent(),Qe.context.logger.error("Error loading background-image "+gr),[3,4];case 4:return Pn&&(Bi=qu(se,oe,[Pn.width,Pn.height,Pn.width/Pn.height]),ya=Bi[0],oo=Bi[1],so=Bi[2],XA=Bi[3],Pa=Bi[4],_A=Qe.ctx.createPattern(Qe.resizeImage(Pn,XA,Pa),"repeat"),Qe.renderRepeat(ya,_A,oo,so)),[3,6];case 5:us(In)?(Yr=qu(se,oe,[null,null,null]),ya=Yr[0],oo=Yr[1],so=Yr[2],XA=Yr[3],Pa=Yr[4],ci=Qa(In.angle,XA,Pa),aA=ci[0],Ui=ci[1],Si=ci[2],LA=ci[3],lA=ci[4],Yi=document.createElement("canvas"),Yi.width=XA,Yi.height=Pa,yi=Yi.getContext("2d"),SA=yi.createLinearGradient(Ui,LA,Si,lA),Ia(In.stops,aA).forEach(function(yu){return SA.addColorStop(yu.stop,uA(yu.color))}),yi.fillStyle=SA,yi.fillRect(0,0,XA,Pa),XA>0&&Pa>0&&(_A=Qe.ctx.createPattern(Yi,"repeat"),Qe.renderRepeat(ya,_A,oo,so))):Yo(In)&&(Ji=qu(se,oe,[null,null,null]),ya=Ji[0],ao=Ji[1],vo=Ji[2],XA=Ji[3],Pa=Ji[4],Ys=In.position.length===0?[_a]:In.position,oo=Vi(Ys[0],XA),so=Vi(Ys[Ys.length-1],Pa),Fl=ga(In,oo,so,XA,Pa),ss=Fl[0],Xs=Fl[1],ss>0&&Xs>0&&(Sl=Qe.ctx.createRadialGradient(ao+oo,vo+so,0,ao+oo,vo+so,ss),Ia(In.stops,ss*2).forEach(function(yu){return Sl.addColorStop(yu.stop,uA(yu.color))}),Qe.path(ya),Qe.ctx.fillStyle=Sl,ss!==Xs?(_l=se.bounds.left+.5*se.bounds.width,ks=se.bounds.top+.5*se.bounds.height,kl=Xs/ss,Us=1/kl,Qe.ctx.save(),Qe.ctx.translate(_l,ks),Qe.ctx.transform(1,0,0,kl,0,0),Qe.ctx.translate(-_l,-ks),Qe.ctx.fillRect(ao,Us*(vo-ks)+ks,XA,Pa*Us),Qe.ctx.restore()):Qe.ctx.fill())),$l.label=6;case 6:return oe--,[2]}})},Qe=this,At=0,xt=se.styles.backgroundImage.slice(0).reverse(),Bn.label=1;case 1:return At<xt.length?(Ct=xt[At],[5,me(Ct)]):[3,4];case 2:Bn.sent(),Bn.label=3;case 3:return At++,[3,1];case 4:return[2]}})})},ne.prototype.renderSolidBorder=function(se,oe,me){return Me(this,void 0,void 0,function(){return De(this,function(Qe){return this.path(Ac(me,oe)),this.ctx.fillStyle=uA(se),this.ctx.fill(),[2]})})},ne.prototype.renderDoubleBorder=function(se,oe,me,Qe){return Me(this,void 0,void 0,function(){var At,xt;return De(this,function(Ct){switch(Ct.label){case 0:return oe<3?[4,this.renderSolidBorder(se,me,Qe)]:[3,2];case 1:return Ct.sent(),[2];case 2:return At=pc(Qe,me),this.path(At),this.ctx.fillStyle=uA(se),this.ctx.fill(),xt=gc(Qe,me),this.path(xt),this.ctx.fill(),[2]}})})},ne.prototype.renderNodeBackgroundAndBorders=function(se){return Me(this,void 0,void 0,function(){var oe,me,Qe,At,xt,Ct,Bn,In,Pn=this;return De(this,function(gr){switch(gr.label){case 0:return this.applyEffects(se.getEffects(2)),oe=se.container.styles,me=!vA(oe.backgroundColor)||oe.backgroundImage.length,Qe=[{style:oe.borderTopStyle,color:oe.borderTopColor,width:oe.borderTopWidth},{style:oe.borderRightStyle,color:oe.borderRightColor,width:oe.borderRightWidth},{style:oe.borderBottomStyle,color:oe.borderBottomColor,width:oe.borderBottomWidth},{style:oe.borderLeftStyle,color:oe.borderLeftColor,width:oe.borderLeftWidth}],At=Sc(ql(oe.backgroundClip,0),se.curves),me||oe.boxShadow.length?(this.ctx.save(),this.path(At),this.ctx.clip(),vA(oe.backgroundColor)||(this.ctx.fillStyle=uA(oe.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(se.container)]):[3,2];case 1:gr.sent(),this.ctx.restore(),oe.boxShadow.slice(0).reverse().forEach(function(Bi){Pn.ctx.save();var Yr=eo(se.curves),ci=Bi.inset?0:Ec,aA=dc(Yr,-ci+(Bi.inset?1:-1)*Bi.spread.number,(Bi.inset?1:-1)*Bi.spread.number,Bi.spread.number*(Bi.inset?-2:2),Bi.spread.number*(Bi.inset?-2:2));Bi.inset?(Pn.path(Yr),Pn.ctx.clip(),Pn.mask(aA)):(Pn.mask(Yr),Pn.ctx.clip(),Pn.path(aA)),Pn.ctx.shadowOffsetX=Bi.offsetX.number+ci,Pn.ctx.shadowOffsetY=Bi.offsetY.number,Pn.ctx.shadowColor=uA(Bi.color),Pn.ctx.shadowBlur=Bi.blur.number,Pn.ctx.fillStyle=Bi.inset?uA(Bi.color):"rgba(0,0,0,1)",Pn.ctx.fill(),Pn.ctx.restore()}),gr.label=2;case 2:xt=0,Ct=0,Bn=Qe,gr.label=3;case 3:return Ct<Bn.length?(In=Bn[Ct],In.style!==0&&!vA(In.color)&&In.width>0?In.style!==2?[3,5]:[4,this.renderDashedDottedBorder(In.color,In.width,xt,se.curves,2)]:[3,11]):[3,13];case 4:return gr.sent(),[3,11];case 5:return In.style!==3?[3,7]:[4,this.renderDashedDottedBorder(In.color,In.width,xt,se.curves,3)];case 6:return gr.sent(),[3,11];case 7:return In.style!==4?[3,9]:[4,this.renderDoubleBorder(In.color,In.width,xt,se.curves)];case 8:return gr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(In.color,xt,se.curves)];case 10:gr.sent(),gr.label=11;case 11:xt++,gr.label=12;case 12:return Ct++,[3,3];case 13:return[2]}})})},ne.prototype.renderDashedDottedBorder=function(se,oe,me,Qe,At){return Me(this,void 0,void 0,function(){var xt,Ct,Bn,In,Pn,gr,Bi,Yr,ci,aA,Ui,Si,LA,lA,Yi,yi,Yi,yi;return De(this,function(SA){return this.ctx.save(),xt=vc(Qe,me),Ct=Ac(Qe,me),At===2&&(this.path(Ct),this.ctx.clip()),YA(Ct[0])?(Bn=Ct[0].start.x,In=Ct[0].start.y):(Bn=Ct[0].x,In=Ct[0].y),YA(Ct[1])?(Pn=Ct[1].end.x,gr=Ct[1].end.y):(Pn=Ct[1].x,gr=Ct[1].y),me===0||me===2?Bi=Math.abs(Bn-Pn):Bi=Math.abs(In-gr),this.ctx.beginPath(),At===3?this.formatPath(xt):this.formatPath(Ct.slice(0,2)),Yr=oe<3?oe*3:oe*2,ci=oe<3?oe*2:oe,At===3&&(Yr=oe,ci=oe),aA=!0,Bi<=Yr*2?aA=!1:Bi<=Yr*2+ci?(Ui=Bi/(2*Yr+ci),Yr*=Ui,ci*=Ui):(Si=Math.floor((Bi+ci)/(Yr+ci)),LA=(Bi-Si*Yr)/(Si-1),lA=(Bi-(Si+1)*Yr)/Si,ci=lA<=0||Math.abs(ci-LA)<Math.abs(ci-lA)?LA:lA),aA&&(At===3?this.ctx.setLineDash([0,Yr+ci]):this.ctx.setLineDash([Yr,ci])),At===3?(this.ctx.lineCap="round",this.ctx.lineWidth=oe):this.ctx.lineWidth=oe*2+1.1,this.ctx.strokeStyle=uA(se),this.ctx.stroke(),this.ctx.setLineDash([]),At===2&&(YA(Ct[0])&&(Yi=Ct[3],yi=Ct[0],this.ctx.beginPath(),this.formatPath([new zr(Yi.end.x,Yi.end.y),new zr(yi.start.x,yi.start.y)]),this.ctx.stroke()),YA(Ct[1])&&(Yi=Ct[1],yi=Ct[2],this.ctx.beginPath(),this.formatPath([new zr(Yi.end.x,Yi.end.y),new zr(yi.start.x,yi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ne.prototype.render=function(se){return Me(this,void 0,void 0,function(){var oe;return De(this,function(me){switch(me.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=uA(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),oe=hc(se),[4,this.renderStack(oe)];case 1:return me.sent(),this.applyEffects([]),[2,this.canvas]}})})},ne}(sc),Fc=function(Ae){return Ae instanceof _u||Ae instanceof Su?!0:Ae instanceof Gl&&Ae.type!==as&&Ae.type!==Ws},Sc=function(Ae,ne){switch(Ae){case 0:return eo(ne);case 2:return pa(ne);case 1:default:return js(ne)}},_c=function(Ae){switch(Ae){case 1:return"center";case 2:return"right";case 0:default:return"left"}},kc=["-apple-system","system-ui"],Uc=function(Ae){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Ae.filter(function(ne){return kc.indexOf(ne)===-1}):Ae},Dc=function(Ae){fe(ne,Ae);function ne(se,oe){var me=Ae.call(this,se,oe)||this;return me.canvas=oe.canvas?oe.canvas:document.createElement("canvas"),me.ctx=me.canvas.getContext("2d"),me.options=oe,me.canvas.width=Math.floor(oe.width*oe.scale),me.canvas.height=Math.floor(oe.height*oe.scale),me.canvas.style.width=oe.width+"px",me.canvas.style.height=oe.height+"px",me.ctx.scale(me.options.scale,me.options.scale),me.ctx.translate(-oe.x,-oe.y),me.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+oe.width+"x"+oe.height+" at "+oe.x+","+oe.y+") with scale "+oe.scale),me}return ne.prototype.render=function(se){return Me(this,void 0,void 0,function(){var oe,me;return De(this,function(Qe){switch(Qe.label){case 0:return oe=AA(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,se),[4,Ic(oe)];case 1:return me=Qe.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=uA(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(me,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ne}(sc),Ic=function(Ae){return new Promise(function(ne,se){var oe=new Image;oe.onload=function(){ne(oe)},oe.onerror=se,oe.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ae))})},Qc=function(){function Ae(ne){var se=ne.id,oe=ne.enabled;this.id=se,this.enabled=oe,this.start=Date.now()}return Ae.prototype.debug=function(){for(var ne=[],se=0;se<arguments.length;se++)ne[se]=arguments[se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ze([this.id,this.getTime()+"ms"],ne)):this.info.apply(this,ne))},Ae.prototype.getTime=function(){return Date.now()-this.start},Ae.prototype.info=function(){for(var ne=[],se=0;se<arguments.length;se++)ne[se]=arguments[se];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ze([this.id,this.getTime()+"ms"],ne))},Ae.prototype.warn=function(){for(var ne=[],se=0;se<arguments.length;se++)ne[se]=arguments[se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ze([this.id,this.getTime()+"ms"],ne)):this.info.apply(this,ne))},Ae.prototype.error=function(){for(var ne=[],se=0;se<arguments.length;se++)ne[se]=arguments[se];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ze([this.id,this.getTime()+"ms"],ne)):this.info.apply(this,ne))},Ae.instances={},Ae}(),Lc=function(){function Ae(ne,se){var oe;this.windowBounds=se,this.instanceName="#"+Ae.instanceCount++,this.logger=new Qc({id:this.instanceName,enabled:ne.logging}),this.cache=(oe=ne.cache)!==null&&oe!==void 0?oe:new $i(this,ne)}return Ae.instanceCount=1,Ae}(),Tc=function(Ae,ne){return ne===void 0&&(ne={}),Mc(Ae,ne)};typeof window!="undefined"&&_i.setContext(window);var Mc=function(Ae,ne){return Me(void 0,void 0,void 0,function(){var se,oe,me,Qe,At,xt,Ct,Bn,In,Pn,gr,Bi,Yr,ci,aA,Ui,Si,LA,lA,Yi,SA,yi,SA,_A,Ji,ya,ao,vo,XA,Pa,Ys,oo,so,Fl,ss,Xs,Sl,_l,ks,kl;return De(this,function(Us){switch(Us.label){case 0:if(!Ae||typeof Ae!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(se=Ae.ownerDocument,!se)throw new Error("Element is not attached to a Document");if(oe=se.defaultView,!oe)throw new Error("Document is not attached to a Window");return me={allowTaint:(_A=ne.allowTaint)!==null&&_A!==void 0?_A:!1,imageTimeout:(Ji=ne.imageTimeout)!==null&&Ji!==void 0?Ji:15e3,proxy:ne.proxy,useCORS:(ya=ne.useCORS)!==null&&ya!==void 0?ya:!1},Qe=re({logging:(ao=ne.logging)!==null&&ao!==void 0?ao:!0,cache:ne.cache},me),At={windowWidth:(vo=ne.windowWidth)!==null&&vo!==void 0?vo:oe.innerWidth,windowHeight:(XA=ne.windowHeight)!==null&&XA!==void 0?XA:oe.innerHeight,scrollX:(Pa=ne.scrollX)!==null&&Pa!==void 0?Pa:oe.pageXOffset,scrollY:(Ys=ne.scrollY)!==null&&Ys!==void 0?Ys:oe.pageYOffset},xt=new Ee(At.scrollX,At.scrollY,At.windowWidth,At.windowHeight),Ct=new Lc(Qe,xt),Bn=(oo=ne.foreignObjectRendering)!==null&&oo!==void 0?oo:!1,In={allowTaint:(so=ne.allowTaint)!==null&&so!==void 0?so:!1,onclone:ne.onclone,ignoreElements:ne.ignoreElements,inlineImages:Bn,copyStyles:Bn},Ct.logger.debug("Starting document clone with size "+xt.width+"x"+xt.height+" scrolled to "+-xt.left+","+-xt.top),Pn=new z(Ct,Ae,In),gr=Pn.clonedReferenceElement,gr?[4,Pn.toIFrame(se,xt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Bi=Us.sent(),Yr=PA(gr)||Xu(gr)?ze(gr.ownerDocument):de(Ct,gr),ci=Yr.width,aA=Yr.height,Ui=Yr.left,Si=Yr.top,LA=Hc(Ct,gr,ne.backgroundColor),lA={canvas:ne.canvas,backgroundColor:LA,scale:(ss=(Fl=ne.scale)!==null&&Fl!==void 0?Fl:oe.devicePixelRatio)!==null&&ss!==void 0?ss:1,x:((Xs=ne.x)!==null&&Xs!==void 0?Xs:0)+Ui,y:((Sl=ne.y)!==null&&Sl!==void 0?Sl:0)+Si,width:(_l=ne.width)!==null&&_l!==void 0?_l:Math.ceil(ci),height:(ks=ne.height)!==null&&ks!==void 0?ks:Math.ceil(aA)},Bn?(Ct.logger.debug("Document cloned, using foreign object rendering"),SA=new Dc(Ct,lA),[4,SA.render(gr)]):[3,3];case 2:return Yi=Us.sent(),[3,5];case 3:return Ct.logger.debug("Document cloned, element located at "+Ui+","+Si+" with size "+ci+"x"+aA+" using computed rendering"),Ct.logger.debug("Starting DOM parsing"),yi=Du(Ct,gr),LA===yi.styles.backgroundColor&&(yi.styles.backgroundColor=pA.TRANSPARENT),Ct.logger.debug("Starting renderer for element at "+lA.x+","+lA.y+" with size "+lA.width+"x"+lA.height),SA=new bc(Ct,lA),[4,SA.render(yi)];case 4:Yi=Us.sent(),Us.label=5;case 5:return(!((kl=ne.removeContainer)!==null&&kl!==void 0)||kl)&&(z.destroy(Bi)||Ct.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Ct.logger.debug("Finished rendering"),[2,Yi]}})})},Hc=function(Ae,ne,se){var oe=ne.ownerDocument,me=oe.documentElement?Di(Ae,getComputedStyle(oe.documentElement).backgroundColor):pA.TRANSPARENT,Qe=oe.body?Di(Ae,getComputedStyle(oe.body).backgroundColor):pA.TRANSPARENT,At=typeof se=="string"?Di(Ae,se):se===null?pA.TRANSPARENT:4294967295;return ne===oe.documentElement?vA(me)?vA(Qe)?At:Qe:me:At};return Tc})},67467:function(xn,dt){dt.read=function(fe,re,Me,De,Ze){var Ee,de,ze=Ze*8-De-1,Fe=(1<<ze)-1,Ie=Fe>>1,ve=-7,ut=Me?Ze-1:0,we=Me?-1:1,ot=fe[re+ut];for(ut+=we,Ee=ot&(1<<-ve)-1,ot>>=-ve,ve+=ze;ve>0;Ee=Ee*256+fe[re+ut],ut+=we,ve-=8);for(de=Ee&(1<<-ve)-1,Ee>>=-ve,ve+=De;ve>0;de=de*256+fe[re+ut],ut+=we,ve-=8);if(Ee===0)Ee=1-Ie;else{if(Ee===Fe)return de?NaN:(ot?-1:1)*(1/0);de=de+Math.pow(2,De),Ee=Ee-Ie}return(ot?-1:1)*de*Math.pow(2,Ee-De)},dt.write=function(fe,re,Me,De,Ze,Ee){var de,ze,Fe,Ie=Ee*8-Ze-1,ve=(1<<Ie)-1,ut=ve>>1,we=Ze===23?Math.pow(2,-24)-Math.pow(2,-77):0,ot=De?0:Ee-1,Xe=De?1:-1,Je=re<0||re===0&&1/re<0?1:0;for(re=Math.abs(re),isNaN(re)||re===1/0?(ze=isNaN(re)?1:0,de=ve):(de=Math.floor(Math.log(re)/Math.LN2),re*(Fe=Math.pow(2,-de))<1&&(de--,Fe*=2),de+ut>=1?re+=we/Fe:re+=we*Math.pow(2,1-ut),re*Fe>=2&&(de++,Fe/=2),de+ut>=ve?(ze=0,de=ve):de+ut>=1?(ze=(re*Fe-1)*Math.pow(2,Ze),de=de+ut):(ze=re*Math.pow(2,ut-1)*Math.pow(2,Ze),de=0));Ze>=8;fe[Me+ot]=ze&255,ot+=Xe,ze/=256,Ze-=8);for(de=de<<Ze|ze,Ie+=Ze;Ie>0;fe[Me+ot]=de&255,ot+=Xe,de/=256,Ie-=8);fe[Me+ot-Xe]|=Je*128}},2859:function(xn,dt,fe){"use strict";fe.d(dt,{hP:function(){return ln}});var re=function(ge,ue){return(re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,b){ee.__proto__=b}||function(ee,b){for(var ae in b)Object.prototype.hasOwnProperty.call(b,ae)&&(ee[ae]=b[ae])})(ge,ue)};function Me(ge,ue){function ee(){this.constructor=ge}re(ge,ue),ge.prototype=ue===null?Object.create(ue):(ee.prototype=ue.prototype,new ee)}function De(ge,ue,ee,b){return new(ee||(ee=Promise))(function(ae,ie){function he(zt){try{pt(b.next(zt))}catch(ct){ie(ct)}}function Ye(zt){try{pt(b.throw(zt))}catch(ct){ie(ct)}}function pt(zt){var ct;zt.done?ae(zt.value):(ct=zt.value,ct instanceof ee?ct:new ee(function(bt){bt(ct)})).then(he,Ye)}pt((b=b.apply(ge,ue||[])).next())})}function Ze(ge,ue){var ee,b,ae,ie,he={label:0,sent:function(){if(1&ae[0])throw ae[1];return ae[1]},trys:[],ops:[]};return ie={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(ie[Symbol.iterator]=function(){return this}),ie;function Ye(pt){return function(zt){return function(ct){if(ee)throw new TypeError("Generator is already executing.");for(;he;)try{if(ee=1,b&&(ae=2&ct[0]?b.return:ct[0]?b.throw||((ae=b.return)&&ae.call(b),0):b.next)&&!(ae=ae.call(b,ct[1])).done)return ae;switch(b=0,ae&&(ct=[2&ct[0],ae.value]),ct[0]){case 0:case 1:ae=ct;break;case 4:return he.label++,{value:ct[1],done:!1};case 5:he.label++,b=ct[1],ct=[0];continue;case 7:ct=he.ops.pop(),he.trys.pop();continue;default:if(ae=he.trys,!((ae=ae.length>0&&ae[ae.length-1])||ct[0]!==6&&ct[0]!==2)){he=0;continue}if(ct[0]===3&&(!ae||ct[1]>ae[0]&&ct[1]<ae[3])){he.label=ct[1];break}if(ct[0]===6&&he.label<ae[1]){he.label=ae[1],ae=ct;break}if(ae&&he.label<ae[2]){he.label=ae[2],he.ops.push(ct);break}ae[2]&&he.ops.pop(),he.trys.pop();continue}ct=ue.call(ge,he)}catch(bt){ct=[6,bt],b=0}finally{ee=ae=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([pt,zt])}}}function Ee(){for(var ge=0,ue=0,ee=arguments.length;ue<ee;ue++)ge+=arguments[ue].length;var b=Array(ge),ae=0;for(ue=0;ue<ee;ue++)for(var ie=arguments[ue],he=0,Ye=ie.length;he<Ye;he++,ae++)b[ae]=ie[he];return b}var de=function(){function ge(){}return ge.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ge.setAttributes=function(ue,ee){for(var b=0,ae=ee;b<ae.length;b++){var ie=ae[b],he=ie[0],Ye=ie[1];ue.setAttribute(he,Ye)}},ge.createRect=function(ue,ee,b){var ae=document.createElementNS("http://www.w3.org/2000/svg","rect");return ae.setAttribute("width",ue.toString()),ae.setAttribute("height",ee.toString()),b&&ge.setAttributes(ae,b),ae},ge.createLine=function(ue,ee,b,ae,ie){var he=document.createElementNS("http://www.w3.org/2000/svg","line");return he.setAttribute("x1",ue.toString()),he.setAttribute("y1",ee.toString()),he.setAttribute("x2",b.toString()),he.setAttribute("y2",ae.toString()),ie&&ge.setAttributes(he,ie),he},ge.createPolygon=function(ue,ee){var b=document.createElementNS("http://www.w3.org/2000/svg","polygon");return b.setAttribute("points",ue),ee&&ge.setAttributes(b,ee),b},ge.createCircle=function(ue,ee){var b=document.createElementNS("http://www.w3.org/2000/svg","circle");return b.setAttribute("cx",(ue/2).toString()),b.setAttribute("cy",(ue/2).toString()),b.setAttribute("r",ue.toString()),ee&&ge.setAttributes(b,ee),b},ge.createEllipse=function(ue,ee,b){var ae=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ae.setAttribute("cx",(ue/2).toString()),ae.setAttribute("cy",(ee/2).toString()),ae.setAttribute("rx",(ue/2).toString()),ae.setAttribute("ry",(ee/2).toString()),b&&ge.setAttributes(ae,b),ae},ge.createGroup=function(ue){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return ue&&ge.setAttributes(ee,ue),ee},ge.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ge.createMarker=function(ue,ee,b,ae,ie,he,Ye){var pt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ge.setAttributes(pt,[["id",ue],["orient",ee],["markerWidth",b.toString()],["markerHeight",ae.toString()],["refX",ie.toString()],["refY",he.toString()]]),pt.appendChild(Ye),pt},ge.createText=function(ue){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),ue&&ge.setAttributes(ee,ue),ee},ge.createTSpan=function(ue,ee){var b=document.createElementNS("http://www.w3.org/2000/svg","tspan");return b.textContent=ue,ee&&ge.setAttributes(b,ee),b},ge.createImage=function(ue){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return ue&&ge.setAttributes(ee,ue),ee},ge.createPoint=function(ue,ee){var b=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return b.x=ue,b.y=ee,b},ge.createPath=function(ue,ee){var b=document.createElementNS("http://www.w3.org/2000/svg","path");return b.setAttribute("d",ue),ee&&ge.setAttributes(b,ee),b},ge}(),ze=function(){function ge(){}return ge.addKey=function(ue){ge.key=ue},Object.defineProperty(ge,"isLicensed",{get:function(){return!!ge.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ge.key)},enumerable:!1,configurable:!0}),ge}(),Fe=function(){function ge(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ge.prototype.rasterize=function(ue,ee,b){var ae=this;return new Promise(function(ie){var he=b!==void 0?b:document.createElement("canvas");ue===null&&(ae.markersOnly=!0,ae.naturalSize=!1);var Ye=document.createElementNS("http://www.w3.org/2000/svg","svg");Ye.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ye.setAttribute("width",ee.width.baseVal.valueAsString),Ye.setAttribute("height",ee.height.baseVal.valueAsString),Ye.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),Ye.innerHTML=ee.innerHTML,ae.naturalSize===!0?(Ye.width.baseVal.value=ue.naturalWidth,Ye.height.baseVal.value=ue.naturalHeight):ae.width!==void 0&&ae.height!==void 0&&(Ye.width.baseVal.value=ae.width,Ye.height.baseVal.value=ae.height),he.width=Ye.width.baseVal.value,he.height=Ye.height.baseVal.value;var pt=Ye.outerHTML,zt=he.getContext("2d");ae.markersOnly!==!0&&zt.drawImage(ue,0,0,he.width,he.height);var ct=window.URL,bt=new Image(he.width,he.height);bt.setAttribute("crossOrigin","anonymous");var Et=new Blob([pt],{type:"image/svg+xml"}),en=ct.createObjectURL(Et);bt.onload=function(){zt.drawImage(bt,0,0),ct.revokeObjectURL(en);var Dn=he.toDataURL(ae.imageType,ae.imageQuality);ie(Dn)},bt.src=en})},ge}(),Ie=function(){},ve=function(){function ge(ue){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ue+"_"}return Object.defineProperty(ge.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ge.prototype.addClass=function(ue){return this.styleSheet===void 0&&this.addStyleSheet(),ue.name=""+this.classNamePrefix+ue.localName,this.classes.push(ue),this.styleSheet.sheet.insertRule("."+ue.name+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length),ue},ge.prototype.addRule=function(ue){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ue),this.styleSheet.sheet.insertRule(ue.selector+" {"+ue.style+"}",this.styleSheet.sheet.cssRules.length)},ge.prototype.addStyleSheet=function(){var ue;this.styleSheet=document.createElement("style"),((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).appendChild(this.styleSheet),this.addRule(new ut("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ut("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ut("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new we("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new we("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ge.prototype.removeStyleSheet=function(){var ue;this.styleSheet&&(((ue=this.styleSheetRoot)!==null&&ue!==void 0?ue:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ge}(),ut=function(ge,ue){this.selector=ge,this.style=ue},we=function(ge,ue){this.localName=ge,this.style=ue},ot=function(){function ge(ue,ee,b,ae,ie){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ue,this.displayMode=ee,this.markerItems=b,this.uiStyleSettings=ae,this.styles=ie,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ge.prototype.show=function(ue){var ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var b=document.createElement("div");b.className=this.toolbarBlockStyleClass.name,b.style.whiteSpace="nowrap",this.uiContainer.appendChild(b),this.addActionButton(b,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(b,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(b,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(b,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(b,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(b,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(b,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(b,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ie){var he=document.createElement("div");he.className=""+ee.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",ie.typeName),he.innerHTML=ie.icon,he.addEventListener("click",function(){ee.markerToolbarButtonClicked(he,ie)}),ee.buttons.push(he),ee.markerButtons.push(he)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ae=document.createElement("div");ae.className=this.toolbarBlockStyleClass.name,ae.style.whiteSpace="nowrap",ae.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ae),this.addActionButton(ae,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ae,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},ge.prototype.addButtonClickListener=function(ue){this.buttonClickListeners.push(ue)},ge.prototype.removeButtonClickListener=function(ue){this.buttonClickListeners.indexOf(ue)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ue),1)},ge.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ge.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ue=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee<this.markerButtons.length;ee++)ee<ue||ee===ue&&this.markerButtons.length-1===ue?this.markerButtonBlock.appendChild(this.markerButtons[ee]):(ee===ue&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ee]))}},ge.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},ge.prototype.resetButtonStyles=function(){var ue=this;this.buttons.forEach(function(ee){ee.className=ee.className.replace(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name,"").trim(),ee.className=ee.className.replace(ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ue.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ue.toolbarActiveButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(ue.uiStyleSettings.toolbarButtonStyleColorsClassName?ue.uiStyleSettings.toolbarButtonStyleColorsClassName:ue.toolbarButtonStyleColorsClass.name)})},ge.prototype.addActionButton=function(ue,ee,b){var ae=this,ie=document.createElement("div");switch(ie.className=""+this.toolbarButtonStyleClass.name,ie.innerHTML=ee,ie.setAttribute("data-action",b),ie.addEventListener("click",function(){ae.actionToolbarButtonClicked(ie,b)}),b){case"select":ie.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ie.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ie.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ie.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ie.style.fill=this.uiStyleSettings.closeButtonColor}ue.appendChild(ie),this.buttons.push(ie)},ge.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new we("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new we("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new we("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new we("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new we("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ue=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new we("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ue)+`px;
padding: `+ue+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new we("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ut("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ut("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ge.prototype.markerToolbarButtonClicked=function(ue,ee){this.setActiveButton(ue),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(b){return b("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ge.prototype.actionToolbarButtonClicked=function(ue,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(b){return b("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ge.prototype.setActiveButton=function(ue){this.resetButtonStyles(),ue.className=ue.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ue.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ge.prototype.setActiveMarkerButton=function(ue){var ee=this.markerButtons.find(function(b){return b.getAttribute("data-type-name")===ue});ee&&this.setActiveButton(ee)},ge.prototype.setCurrentMarker=function(ue){var ee=this;this.currentMarker=ue,this.buttons.filter(function(b){return/delete|notes/.test(b.getAttribute("data-action"))}).forEach(function(b){ee.currentMarker===void 0?(b.style.fillOpacity="0.4",b.style.pointerEvents="none"):(b.style.fillOpacity="1",b.style.pointerEvents="all")})},ge}(),Xe=function(){function ge(ue,ee,b,ae){this.panels=[],this.panelButtons=[],this.markerjsContainer=ue,this.displayMode=ee,this.uiStyleSettings=b,this.styles=ae,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ge.prototype.addStyles=function(){var ue;this.toolboxStyleClass=this.styles.addClass(new we("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 we("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new we("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new we("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new we("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 we("toolbox-panel-row_colors",`
background-color: `+((ue=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ue!==void 0?ue:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new we("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
padding: `+ee+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new we("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new we("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ut("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ut("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ge.prototype.show=function(ue){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ue,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ge.prototype.setPanelButtons=function(ue){var ee,b,ae=this;this.panels=ue,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((b=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&b!==void 0?b:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ie){var he;ie.uiStyleSettings=ae.uiStyleSettings;var Ye=document.createElement("div");Ye.className=ae.toolboxButtonStyleClass.name+" "+((he=ae.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:ae.toolboxButtonStyleColorsClass.name),Ye.innerHTML=ie.icon,Ye.title=ie.title,Ye.addEventListener("click",function(){ae.panelButtonClick(ie)}),ae.panelButtons.push(Ye),ae.buttonRow.appendChild(Ye)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ge.prototype.panelButtonClick=function(ue){var ee=this,b=-1;if(ue!==this.activePanel){b=this.panels.indexOf(ue),this.panelRow.innerHTML="";var ae=ue.getUi();ae.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ae),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=ue}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ie,he){var Ye,pt;ie.className=ee.toolboxButtonStyleClass.name+" "+(he===b?""+((Ye=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ye!==void 0?Ye:ee.toolboxActiveButtonStyleColorsClass.name):""+((pt=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pt!==void 0?pt:ee.toolboxButtonStyleColorsClass.name))})},ge}(),Je=function(ge,ue){this.title=ge,this.icon=ue},He=function(ge){function ue(ee,b,ae,ie){var he=ge.call(this,ee,ie||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=b,he.currentColor=ae,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return Me(ue,ge),ue.prototype.getUi=function(){var ee=this,b=document.createElement("div");return b.style.overflow="hidden",b.style.whiteSpace="nowrap",this.colors.forEach(function(ae){var ie=ee.getColorBox(ae);b.appendChild(ie),ee.colorBoxes.push(ie)}),b},ue.prototype.getColorBox=function(ee){var b=this,ae=this.uiStyleSettings.toolbarHeight/4,ie=this.uiStyleSettings.toolbarHeight-ae,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=ie-2+"px",he.style.height=ie-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(ie+2)/2+"px",he.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){b.setCurrentColor(ee,he)});var Ye=document.createElement("div");return Ye.style.display="inline-block",Ye.style.width=ie-2+"px",Ye.style.height=ie-2+"px",Ye.style.backgroundColor=ee,Ye.style.borderRadius=ie/2+"px",ee==="transparent"&&(Ye.style.fill=this.uiStyleSettings.toolboxAccentColor,Ye.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),he.appendChild(Ye),he},ue.prototype.setCurrentColor=function(ee,b){var ae=this;this.currentColor=ee,this.colorBoxes.forEach(function(ie){ie.style.borderColor=ie===b?ae.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},ue}(Je),Te=function(){function ge(ue,ee,b){this._state="new",this._isSelected=!1,this._container=ue,this._overlayContainer=ee,this.globalSettings=b,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ge.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ge.prototype.ownsTarget=function(ue){return!1},Object.defineProperty(ge.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ge.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ge.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ge.prototype.pointerDown=function(ue,ee){},ge.prototype.dblClick=function(ue,ee){},ge.prototype.manipulate=function(ue){},ge.prototype.pointerUp=function(ue){this.stateChanged()},ge.prototype.dispose=function(){},ge.prototype.addMarkerVisualToContainer=function(ue){this.container.childNodes.length>0?this.container.insertBefore(ue,this.container.childNodes[0]):this.container.appendChild(ue)},ge.prototype.getState=function(){return{typeName:ge.typeName,state:this.state,notes:this.notes}},ge.prototype.restoreState=function(ue){this._state=ue.state,this.notes=ue.notes},ge.prototype.scale=function(ue,ee){},ge.prototype.colorChanged=function(ue){this.onColorChanged&&this.onColorChanged(ue),this.stateChanged()},ge.prototype.fillColorChanged=function(ue){this.onFillColorChanged&&this.onFillColorChanged(ue),this.stateChanged()},ge.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ue=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ue.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ue)&&this.onStateChanged(this)}},ge.typeName="MarkerBase",ge}(),at=function(){function ge(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ge.prototype.findGripByVisual=function(ue){return this.topLeft.ownsTarget(ue)?this.topLeft:this.topCenter.ownsTarget(ue)?this.topCenter:this.topRight.ownsTarget(ue)?this.topRight:this.centerLeft.ownsTarget(ue)?this.centerLeft:this.centerRight.ownsTarget(ue)?this.centerRight:this.bottomLeft.ownsTarget(ue)?this.bottomLeft:this.bottomCenter.ownsTarget(ue)?this.bottomCenter:this.bottomRight.ownsTarget(ue)?this.bottomRight:void 0},ge}(),Oe=function(){function ge(){this.GRIP_SIZE=10,this.visual=de.createGroup(),this.visual.appendChild(de.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(de.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ge.prototype.ownsTarget=function(ue){return ue===this.visual||ue===this.visual.childNodes[0]||ue===this.visual.childNodes[1]},ge}(),We=function(){function ge(){}return ge.toITransformMatrix=function(ue){return{a:ue.a,b:ue.b,c:ue.c,d:ue.d,e:ue.e,f:ue.f}},ge.toSVGMatrix=function(ue,ee){return ue.a=ee.a,ue.b=ee.b,ue.c=ee.c,ue.d=ee.d,ue.e=ee.e,ue.f=ee.f,ue},ge}(),be=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.left=0,ie.top=0,ie.width=0,ie.height=0,ie.defaultSize={x:50,y:20},ie.offsetX=0,ie.offsetY=0,ie.rotationAngle=0,ie.CB_DISTANCE=10,ie._suppressMarkerCreateEvent=!1,ie.container.transform.baseVal.appendItem(de.createTransform()),ie.setupControlBox(),ie}return Me(ue,ge),Object.defineProperty(ue.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ue.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var b=de.createTransform();this._visual.transform.baseVal.appendItem(b)},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ee){return!!ge.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ae=this.unrotatePoint(ee);if(this.manipulationStartX=ae.x,this.manipulationStartY=ae.y,this.offsetX=ae.x-this.left,this.offsetY=ae.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(b),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(b)){this.activeGrip=this.rotatorGrip;var ie=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ie.x-this.width/2,this.top=ie.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ue.prototype.pointerUp=function(ee){var b=this.state;ge.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",b==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ue.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},ue.prototype.manipulate=function(ee){var b=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(b.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(b.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(b):this.state==="rotate"&&this.rotate(ee)},ue.prototype.resize=function(ee){var b=this.manipulationStartLeft,ae=this.manipulationStartWidth,ie=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:b=this.manipulationStartLeft+ee.x-this.manipulationStartX,ae=this.manipulationStartWidth+this.manipulationStartLeft-b;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ae=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ie=this.manipulationStartTop+ee.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-ie;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+ee.y-this.manipulationStartY}ae>=0?(this.left=b,this.width=ae):(this.left=b+ae,this.width=-ae),he>=0?(this.top=ie,this.height=he):(this.top=ie+he,this.height=-he),this.setSize()},ue.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ue.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var b=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*b,this.applyRotation()}},ue.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},ue.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var b=this.container.getCTM(),ae=de.createPoint(ee.x,ee.y);return{x:(ae=ae.matrixTransform(b)).x,y:ae.y}},ue.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var b=this.container.getCTM();b=b.inverse();var ae=de.createPoint(ee.x,ee.y);return{x:(ae=ae.matrixTransform(b)).x,y:ae.y}},ue.prototype.select=function(){ge.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ge.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=de.createGroup();var ee=de.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=de.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=de.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 at,this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},ue.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()},ue.prototype.createGrip=function(){var ee=new Oe;return ee.visual.transform.baseVal.appendItem(de.createTransform()),this.controlBox.appendChild(ee.visual),ee},ue.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,b=-ee/2,ae=b,ie=(this.width+this.CB_DISTANCE)/2-ee/2,he=(this.height+this.CB_DISTANCE)/2-ee/2,Ye=this.height+this.CB_DISTANCE-ee/2,pt=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,b,ae),this.positionGrip(this.controlGrips.topCenter.visual,ie,ae),this.positionGrip(this.controlGrips.topRight.visual,pt,ae),this.positionGrip(this.controlGrips.centerLeft.visual,b,he),this.positionGrip(this.controlGrips.centerRight.visual,pt,he),this.positionGrip(this.controlGrips.bottomLeft.visual,b,Ye),this.positionGrip(this.controlGrips.bottomCenter.visual,ie,Ye),this.positionGrip(this.controlGrips.bottomRight.visual,pt,Ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ie,ae-3*this.CB_DISTANCE)},ue.prototype.positionGrip=function(ee,b,ae){var ie=ee.transform.baseVal.getItem(0);ie.setTranslate(b,ae),ee.transform.baseVal.replaceItem(ie,0)},ue.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ue.prototype.showControlBox=function(){this.controlBox.style.display=""},ue.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:We.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:We.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ge.prototype.getState.call(this))},ue.prototype.restoreState=function(ee){ge.prototype.restoreState.call(this,ee);var b=ee;this.left=b.left,this.top=b.top,this.width=b.width,this.height=b.height,this.rotationAngle=b.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(We.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,b.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(We.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,b.containerTransformMatrix))},ue.prototype.scale=function(ee,b){ge.prototype.scale.call(this,ee,b);var ae=this.rotatePoint({x:this.left,y:this.top}),ie=this.unrotatePoint({x:ae.x*ee,y:ae.y*b});this.left=ie.x,this.top=ie.y,this.width=this.width*ee,this.height=this.height*b,this.adjustControlBox()},ue}(Te),Be=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.fillColor="transparent",ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.opacity=1,ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setFillColor=ie.setFillColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.createVisual=ie.createVisual.bind(ie),ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return!(!ge.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},ue.prototype.createVisual=function(){this.visual=de.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)},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},ue.prototype.manipulate=function(ee){ge.prototype.manipulate.call(this,ee)},ue.prototype.resize=function(ee){ge.prototype.resize.call(this,ee),this.setSize()},ue.prototype.setSize=function(){ge.prototype.setSize.call(this),de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(ee){ge.prototype.pointerUp.call(this,ee),this.setSize()},ue.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&de.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},ue.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&de.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ue.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&de.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&de.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ge.prototype.getState.call(this))},ue.prototype.restoreState=function(ee){var b=ee;this.fillColor=b.fillColor,this.strokeColor=b.strokeColor,this.strokeWidth=b.strokeWidth,this.strokeDasharray=b.strokeDasharray,this.opacity=b.opacity,this.createVisual(),ge.prototype.restoreState.call(this,ee),this.setSize()},ue.prototype.scale=function(ee,b){ge.prototype.scale.call(this,ee,b),this.setSize()},ue.title="Rectangle marker",ue}(be),Ue=function(ge){function ue(ee,b,ae,ie){var he=ge.call(this,ee,ie||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return he.widths=[],he.widthBoxes=[],he.widths=b,he.currentWidth=ae,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return Me(ue,ge),ue.prototype.getUi=function(){var ee=this,b=document.createElement("div");return b.style.display="flex",b.style.overflow="hidden",b.style.flexGrow="2",this.widths.forEach(function(ae){var ie=document.createElement("div");ie.style.display="flex",ie.style.flexGrow="2",ie.style.alignItems="center",ie.style.justifyContent="space-between",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.borderColor=ae===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){ee.setCurrentWidth(ae,ie)}),b.appendChild(ie);var he=document.createElement("div");he.innerText=ae.toString(),he.style.marginRight="5px",ie.appendChild(he);var Ye=document.createElement("div");Ye.style.minHeight="20px",Ye.style.flexGrow="2",Ye.style.display="flex",Ye.style.alignItems="center";var pt=document.createElement("hr");pt.style.minWidth="20px",pt.style.border="0px",pt.style.borderTop=ae+"px solid "+ee.uiStyleSettings.toolboxColor,pt.style.flexGrow="2",Ye.appendChild(pt),ie.appendChild(Ye),ee.widthBoxes.push(ie)}),b},ue.prototype.setCurrentWidth=function(ee,b){var ae=this;this.currentWidth=ee,this.widthBoxes.forEach(function(ie){ie.style.borderColor=ie===b?ae.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ue}(Je),ke=function(ge){function ue(ee,b,ae,ie){var he=ge.call(this,ee,ie||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return he.styles=[],he.styleBoxes=[],he.styles=b,he.currentStyle=ae,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return Me(ue,ge),ue.prototype.getUi=function(){var ee=this,b=document.createElement("div");return b.style.display="flex",b.style.overflow="hidden",b.style.flexGrow="2",this.styles.forEach(function(ae){var ie=document.createElement("div");ie.style.display="flex",ie.style.alignItems="center",ie.style.justifyContent="space-between",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.overflow="hidden",ie.style.maxWidth=100/ee.styles.length-5+"%",ie.style.borderColor=ae===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){ee.setCurrentStyle(ae,ie)}),b.appendChild(ie);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var Ye=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ae!==""?'stroke-dasharray="'+ae+'"':"")+` />
</svg>`;he.innerHTML=Ye,ie.appendChild(he),ee.styleBoxes.push(ie)}),b},ue.prototype.setCurrentStyle=function(ee,b){var ae=this;this.currentStyle=ee,this.styleBoxes.forEach(function(ie){ie.style.borderColor=ie===b?ae.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ue}(Je),qe=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.strokeColor=ae.defaultColor,ie.strokeWidth=ae.defaultStrokeWidth,ie.strokeDasharray=ae.defaultStrokeDasharray,ie.strokePanel=new He("Line color",ae.defaultColorSet,ae.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new Ue("Line width",ae.defaultStrokeWidths,ae.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new ke("Line style",ae.defaultStrokeDasharrays,ae.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie}return Me(ue,ge),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=ge.prototype.getState.call(this);return ee.typeName=ue.typeName,ee},ue.typeName="FrameMarker",ue.title="Frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ue}(Be),Pe=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"},Ge=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.x1=0,ie.y1=0,ie.x2=0,ie.y2=0,ie.defaultLength=50,ie.manipulationStartX=0,ie.manipulationStartY=0,ie.manipulationStartX1=0,ie.manipulationStartY1=0,ie.manipulationStartX2=0,ie.manipulationStartY2=0,ie.setupControlBox(),ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return!!ge.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(b)?this.activeGrip=this.grip1:this.grip2.ownsTarget(b)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ue.prototype.pointerUp=function(ee){var b=this.state;ge.prototype.pointerUp.call(this,ee),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ee),this._state="select",b==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ue.prototype.adjustVisual=function(){},ue.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},ue.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},ue.prototype.select=function(){ge.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ue.prototype.deselect=function(){ge.prototype.deselect.call(this),this.controlBox.style.display="none"},ue.prototype.setupControlBox=function(){this.controlBox=de.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ue.prototype.adjustControlBox=function(){this.positionGrips()},ue.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ue.prototype.createGrip=function(){var ee=new Oe;return ee.visual.transform.baseVal.appendItem(de.createTransform()),this.controlBox.appendChild(ee.visual),ee},ue.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},ue.prototype.positionGrip=function(ee,b,ae){var ie=ee.transform.baseVal.getItem(0);ie.setTranslate(b,ae),ee.transform.baseVal.replaceItem(ie,0)},ue.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ge.prototype.getState.call(this))},ue.prototype.restoreState=function(ee){ge.prototype.restoreState.call(this,ee);var b=ee;this.x1=b.x1,this.y1=b.y1,this.x2=b.x2,this.y2=b.y2},ue.prototype.scale=function(ee,b){ge.prototype.scale.call(this,ee,b),this.x1=this.x1*ee,this.y1=this.y1*b,this.x2=this.x2*ee,this.y2=this.y2*b,this.adjustVisual(),this.adjustControlBox()},ue}(Te),lt=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.strokeColor=ae.defaultColor,ie.strokeWidth=ae.defaultStrokeWidth,ie.strokeDasharray=ae.defaultStrokeDasharray,ie.strokePanel=new He("Line color",ae.defaultColorSet,ae.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new Ue("Line width",ae.defaultStrokeWidths,ae.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new ke("Line style",ae.defaultStrokeDasharrays,ae.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return!(!ge.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},ue.prototype.createVisual=function(){this.visual=de.createGroup(),this.selectorLine=de.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=de.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)},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ue.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()),de.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),de.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),de.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},ue.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ge.prototype.getState.call(this));return ee.typeName=ue.typeName,ee},ue.prototype.restoreState=function(ee){ge.prototype.restoreState.call(this,ee);var b=ee;this.strokeColor=b.strokeColor,this.strokeWidth=b.strokeWidth,this.strokeDasharray=b.strokeDasharray,this.createVisual(),this.adjustVisual()},ue.typeName="LineMarker",ue.title="Line marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ue}(Ge),je=function(ge){function ue(ee,b,ae,ie){var he=ge.call(this,ee,ie||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return he.fonts=[],he.fontBoxes=[],he.fonts=b,he.currentFont=ae,he.setCurrentFont=he.setCurrentFont.bind(he),he}return Me(ue,ge),ue.prototype.getUi=function(){var ee=this,b=document.createElement("div");return b.style.overflow="hidden",b.style.flexGrow="2",this.fonts.forEach(function(ae){var ie=document.createElement("div");ie.style.display="inline-block",ie.style.alignItems="center",ie.style.justifyContent="space-between",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.overflow="hidden",ie.style.maxWidth=100/ee.fonts.length-5+"%",ie.style.borderColor=ae===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){ee.setCurrentFont(ae,ie)}),b.appendChild(ie);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=ae,he.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(Ye),ie.appendChild(he),ee.fontBoxes.push(ie)}),b},ue.prototype.setCurrentFont=function(ee,b){var ae=this;this.currentFont=ee,this.fontBoxes.forEach(function(ie){ie.style.borderColor=ie===b?ae.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ue}(Je),ht=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.color="transparent",ie.padding=5,ie.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ie.text=ie.DEFAULT_TEXT,ie.isMoved=!1,ie.color=ae.defaultColor,ie.fontFamily=ae.defaultFontFamily,ie.defaultSize={x:100,y:30},ie.setColor=ie.setColor.bind(ie),ie.setFont=ie.setFont.bind(ie),ie.renderText=ie.renderText.bind(ie),ie.sizeText=ie.sizeText.bind(ie),ie.textEditDivClicked=ie.textEditDivClicked.bind(ie),ie.showTextEditor=ie.showTextEditor.bind(ie),ie.setSize=ie.setSize.bind(ie),ie.positionTextEditor=ie.positionTextEditor.bind(ie),ie.colorPanel=new He("Color",ae.defaultColorSet,ae.defaultColor),ie.colorPanel.onColorChanged=ie.setColor,ie.fontFamilyPanel=new je("Font",ae.defaultFontFamilies,ae.defaultFontFamily),ie.fontFamilyPanel.onFontChanged=ie.setFont,ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){if(ge.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var b=!1;return this.textElement.childNodes.forEach(function(ae){ae===ee&&(b=!0)}),b},ue.prototype.createVisual=function(){this.visual=de.createGroup(),this.bgRectangle=de.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=de.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(de.createTransform()),this.textElement.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},ue.prototype.renderText=function(){var ee=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(b){ee.textElement.appendChild(de.createTSpan(b.trim()===""?" ":b.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ue.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),b=1;if(ee.width>0&&ee.height>0){var ae=(1*this.width-this.width*this.padding*2/100)/ee.width,ie=(1*this.height-this.height*this.padding*2/100)/ee.height;b=Math.min(ae,ie)}return b},ue.prototype.getTextPosition=function(ee){var b=this.textElement.getBBox(),ae=0,ie=0;return b.width>0&&b.height>0&&(ae=(this.width-b.width*ee)/2,ie=this.height/2-b.height*ee/2),{x:ae,y:ie}},ue.prototype.sizeText=function(){var ee=this.textElement.getBBox(),b=this.getTextScale(),ae=this.getTextPosition(b);ae.y-=ee.y*b,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ae.x+"px, "+ae.y+"px) scale("+b+", "+b+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ae.x,ae.y),this.textElement.transform.baseVal.getItem(1).setScale(b,b))},ue.prototype.manipulate=function(ee){ge.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(ee){ge.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},ue.prototype.setSize=function(){ge.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ue.prototype.pointerUp=function(ee){var b=this.state;b==="creating"&&(this._suppressMarkerCreateEvent=!0),ge.prototype.pointerUp.call(this,ee),this.setSize(),(b==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(b){b.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var b=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&b>.9;)b-=.1,ee.textEditor.style.fontSize=Math.max(b,.9)+"em"}),this.textEditor.addEventListener("keyup",function(b){b.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(b){if(b.clipboardData){var ae=b.clipboardData.getData("text"),ie=window.getSelection();if(!ie.rangeCount)return!1;ie.deleteFromDocument(),ie.getRangeAt(0).insertNode(document.createTextNode(ae)),b.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ue.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),b=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ae=this.textElement.getBBox(),ie={x:ae.width*ee,y:ae.height*ee};b.x-=ie.x/2,b.y-=ie.y/2,this.textEditor.style.top=b.y+"px",this.textEditor.style.left=b.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-b.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},ue.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ue.prototype.select=function(){ge.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ue.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ge.prototype.deselect.call(this)},ue.prototype.dblClick=function(ee,b){ge.prototype.dblClick.call(this,ee,b),this.showTextEditor()},ue.prototype.setColor=function(ee){this.textElement&&de.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},ue.prototype.setFont=function(ee){this.textElement&&de.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ue.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ue.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ge.prototype.getState.call(this));return ee.typeName=ue.typeName,ee},ue.prototype.restoreState=function(ee){var b=ee;this.color=b.color,this.fontFamily=b.fontFamily,this.padding=b.padding,this.text=b.text,this.createVisual(),ge.prototype.restoreState.call(this,ee),this.setSize()},ue.prototype.scale=function(ee,b){ge.prototype.scale.call(this,ee,b),this.setSize(),this.sizeText(),this.positionTextEditor()},ue.typeName="TextMarker",ue.title="Text marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',ue}(be),et=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.color="transparent",ie.lineWidth=3,ie.drawing=!1,ie.pixelRatio=1,ie.color=ae.defaultColor,ie.lineWidth=ae.defaultStrokeWidth,ie.pixelRatio=ae.freehandPixelRatio,ie.setColor=ie.setColor.bind(ie),ie.addCanvas=ie.addCanvas.bind(ie),ie.finishCreation=ie.finishCreation.bind(ie),ie.setLineWidth=ie.setLineWidth.bind(ie),ie.colorPanel=new He("Color",ae.defaultColorSet,ae.defaultColor),ie.colorPanel.onColorChanged=ie.setColor,ie.lineWidthPanel=new Ue("Line width",ae.defaultStrokeWidths,ae.defaultStrokeWidth),ie.lineWidthPanel.onWidthChanged=ie.setLineWidth,ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return!(!ge.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},ue.prototype.createVisual=function(){this.visual=de.createGroup(),this.drawingImage=de.createImage(),this.visual.appendChild(this.drawingImage);var ee=de.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ee,b){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ee.x,ee.y),this.drawing=!0):ge.prototype.pointerDown.call(this,ee,b)},ue.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ge.prototype.manipulate.call(this,ee)},ue.prototype.resize=function(ee){ge.prototype.resize.call(this,ee),de.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ue.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ge.prototype.pointerUp.call(this,ee)},ue.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)},ue.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ge.prototype.select.call(this)},ue.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ge.prototype.deselect.call(this)},ue.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),b=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ae=b[0],ie=b[1],he=b[2],Ye=b[3],pt=!1,zt=0;zt<this.canvasElement.height;zt++)for(var ct=0;ct<this.canvasElement.width;ct++)ee.data[zt*this.canvasElement.width*4+4*ct+3]>0&&(pt=!0,zt<ie&&(ie=zt),ct<ae&&(ae=ct),zt>Ye&&(Ye=zt),ct>he&&(he=ct));if(pt){this.left=ae/this.pixelRatio,this.top=ie/this.pixelRatio,this.width=(he-ae)/this.pixelRatio,this.height=(Ye-ie)/this.pixelRatio;var bt=document.createElement("canvas");bt.width=he-ae,bt.height=Ye-ie,bt.getContext("2d").putImageData(this.canvasContext.getImageData(ae,ie,he-ae,Ye-ie),0,0),this.drawingImgUrl=bt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ue.prototype.setDrawingImage=function(){de.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),de.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ue.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},ue.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ge.prototype.getState.call(this));return ee.typeName=ue.typeName,ee},ue.prototype.restoreState=function(ee){this.createVisual(),ge.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},ue.prototype.scale=function(ee,b){ge.prototype.scale.call(this,ee,b),this.setDrawingImage()},ue.typeName="FreehandMarker",ue.title="Freehand marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',ue}(be),ft=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,ae||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ie.typeBoxes=[],ie.currentType=b,ie.setCurrentType=ie.setCurrentType.bind(ie),ie}return Me(ue,ge),ue.prototype.getUi=function(){var ee=this,b=document.createElement("div");b.style.display="flex",b.style.overflow="hidden",b.style.flexGrow="2";for(var ae=function(Ye){var pt="both";switch(Ye){case 0:pt="both";break;case 1:pt="start";break;case 2:pt="end";break;case 3:pt="none"}var zt=document.createElement("div");if(zt.style.display="flex",zt.style.flexGrow="2",zt.style.alignItems="center",zt.style.justifyContent="space-between",zt.style.padding="5px",zt.style.borderWidth="2px",zt.style.borderStyle="solid",zt.style.borderColor=pt===ie.currentType?ie.uiStyleSettings.toolboxAccentColor:"transparent",zt.addEventListener("click",function(){ee.setCurrentType(pt,zt)}),b.appendChild(zt),pt==="both"||pt==="start"){var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(ie.uiStyleSettings!==void 0?ie.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ct.style.marginLeft="5px",zt.appendChild(ct)}var bt=document.createElement("div");bt.style.display="flex",bt.style.alignItems="center",bt.style.minHeight="20px",bt.style.flexGrow="2";var Et=document.createElement("hr");if(Et.style.minWidth="20px",Et.style.border="0px",Et.style.borderTop="3px solid "+(ie.uiStyleSettings!==void 0?ie.uiStyleSettings.toolboxColor:"#eeeeee"),Et.style.flexGrow="2",bt.appendChild(Et),zt.appendChild(bt),pt==="both"||pt==="end"){var en=document.createElement("div");en.style.display="flex",en.style.alignItems="center",en.style.minHeight="20px",en.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(ie.uiStyleSettings!==void 0?ie.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,en.style.marginRight="5px",zt.appendChild(en)}ie.typeBoxes.push(zt)},ie=this,he=0;he<4;he++)ae(he);return b},ue.prototype.setCurrentType=function(ee,b){var ae=this;this.currentType=ee,this.typeBoxes.forEach(function(ie){ie.style.borderColor=ie===b?ae.uiStyleSettings!==void 0?ae.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ue}(Je),Tt=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.arrowType="end",ie.arrowBaseHeight=10,ie.arrowBaseWidth=10,ie.getArrowPoints=ie.getArrowPoints.bind(ie),ie.setArrowType=ie.setArrowType.bind(ie),ie.arrowTypePanel=new ft("Arrow type","end"),ie.arrowTypePanel.onArrowTypeChanged=ie.setArrowType,ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return!(!ge.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},ue.prototype.getArrowPoints=function(ee,b){var ae=this.arrowBaseWidth+2*this.strokeWidth,ie=this.arrowBaseHeight+2*this.strokeWidth;return ee-ae/2+","+(b+ie/2)+" "+ee+","+(b-ie/2)+" "+(ee+ae/2)+","+(b+ie/2)},ue.prototype.createTips=function(){this.arrow1=de.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=de.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.arrow2)},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ge.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",de.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),de.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var b=this.arrow1.transform.baseVal.getItem(0);b.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(b,0);var ae=this.arrow2.transform.baseVal.getItem(0);ae.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ae,0)}},ue.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ge.prototype.getState.call(this));return ee.typeName=ue.typeName,ee},ue.prototype.restoreState=function(ee){ge.prototype.restoreState.call(this,ee);var b=ee;this.arrowType=b.arrowType,this.createTips(),this.adjustVisual()},ue.typeName="ArrowMarker",ue.title="Arrow marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ue}(lt),Kt=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.fillColor=ae.defaultFillColor,ie.strokeWidth=0,ie.fillPanel=new He("Color",ae.defaultColorSet,ae.defaultFillColor),ie.fillPanel.onColorChanged=ie.setFillColor,ie}return Me(ue,ge),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=ge.prototype.getState.call(this);return ee.typeName=ue.typeName,ee},ue.typeName="CoverMarker",ue.title="Cover marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ue}(Be),fn=function(ge){function ue(ee,b,ae,ie){var he=ge.call(this,ee,ie||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return he.opacities=[],he.opacityBoxes=[],he.opacities=b,he.currentOpacity=ae,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return Me(ue,ge),ue.prototype.getUi=function(){var ee=this,b=document.createElement("div");return b.style.display="flex",b.style.overflow="hidden",b.style.flexGrow="2",b.style.justifyContent="space-between",this.opacities.forEach(function(ae){var ie=document.createElement("div");ie.style.display="flex",ie.style.alignItems="center",ie.style.justifyContent="center",ie.style.padding="5px",ie.style.borderWidth="2px",ie.style.borderStyle="solid",ie.style.borderColor=ae===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",ie.addEventListener("click",function(){ee.setCurrentOpacity(ae,ie)}),b.appendChild(ie);var he=document.createElement("div");he.innerText=100*ae+"%",ie.appendChild(he),ee.opacityBoxes.push(ie)}),b},ue.prototype.setCurrentOpacity=function(ee,b){var ae=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(ie){ie.style.borderColor=ie===b?ae.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ue}(Je),$t=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.setOpacity=ie.setOpacity.bind(ie),ie.fillColor=ae.defaultHighlightColor,ie.strokeWidth=0,ie.opacity=ae.defaultHighlightOpacity,ie.fillPanel=new He("Color",ae.defaultColorSet,ie.fillColor),ie.fillPanel.onColorChanged=ie.setFillColor,ie.opacityPanel=new fn("Opacity",ae.defaultOpacitySteps,ie.opacity),ie.opacityPanel.onOpacityChanged=ie.setOpacity,ie}return Me(ue,ge),ue.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&de.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=ge.prototype.getState.call(this);return ee.typeName=ue.typeName,ee},ue.typeName="HighlightMarker",ue.title="Highlight marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',ue}(Kt),Re='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',xe='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',Lt=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.bgColor="transparent",ie.tipPosition={x:0,y:0},ie.tipBase1Position={x:0,y:0},ie.tipBase2Position={x:0,y:0},ie.tipMoving=!1,ie.color=ae.defaultStrokeColor,ie.bgColor=ae.defaultFillColor,ie.fontFamily=ae.defaultFontFamily,ie.defaultSize={x:100,y:30},ie.setBgColor=ie.setBgColor.bind(ie),ie.getTipPoints=ie.getTipPoints.bind(ie),ie.positionTip=ie.positionTip.bind(ie),ie.setTipPoints=ie.setTipPoints.bind(ie),ie.colorPanel=new He("Text color",ae.defaultColorSet,ie.color,Re),ie.colorPanel.onColorChanged=ie.setColor,ie.bgColorPanel=new He("Fill color",ae.defaultColorSet,ie.bgColor,xe),ie.bgColorPanel.onColorChanged=ie.setBgColor,ie.fontFamilyPanel=new je("Font",ae.defaultFontFamilies,ae.defaultFontFamily),ie.fontFamilyPanel.onFontChanged=ie.setFont,ie.tipGrip=new Oe,ie.tipGrip.visual.transform.baseVal.appendItem(de.createTransform()),ie.controlBox.appendChild(ie.tipGrip.visual),ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return ge.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},ue.prototype.createTip=function(){de.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=de.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ue.prototype.pointerDown=function(ee,b){this.state==="new"&&ge.prototype.pointerDown.call(this,ee,b),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(b)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ge.prototype.pointerDown.call(this,ee,b)},ue.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ge.prototype.pointerUp.call(this,ee);else{var b=this.state==="creating";ge.prototype.pointerUp.call(this,ee),this.setTipPoints(b),this.positionTip()}},ue.prototype.manipulate=function(ee){if(this.tipMoving){var b=this.unrotatePoint(ee);this.tipPosition={x:b.x-this.manipulationStartLeft,y:b.y-this.manipulationStartTop},this.positionTip()}else ge.prototype.manipulate.call(this,ee)},ue.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(de.setAttributes(this.bgRectangle,[["fill",ee]]),de.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},ue.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},ue.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var b=Math.min(this.height/2,15),ae=this.height/5;ee&&(this.tipPosition={x:b+ae/2,y:this.height+20});var ie=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ie<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ae=this.width/5,b=Math.min(this.width/2,15),this.tipBase1Position={x:b,y:0},this.tipBase2Position={x:b+ae,y:0}):(this.tipBase1Position={x:0,y:b},this.tipBase2Position={x:0,y:b+ae}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ie<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ae=this.width/5,b=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-b-ae,y:0},this.tipBase2Position={x:this.width-b,y:0}):(this.tipBase1Position={x:this.width,y:b},this.tipBase2Position={x:this.width,y:b+ae}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ie<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ae=this.width/5,b=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-b-ae,y:this.height},this.tipBase2Position={x:this.width-b,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-b-ae},this.tipBase2Position={x:this.width,y:this.height-b}):ie<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ae=this.width/5,b=Math.min(this.width/2,15),this.tipBase1Position={x:b,y:this.height},this.tipBase2Position={x:b+ae,y:this.height}):(this.tipBase1Position={x:0,y:this.height-b},this.tipBase2Position={x:0,y:this.height-b-ae})},ue.prototype.resize=function(ee){ge.prototype.resize.call(this,ee),this.positionTip()},ue.prototype.positionTip=function(){de.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ee=this.tipGrip.visual.transform.baseVal.getItem(0);ee.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ee,0)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ue.prototype.select=function(){this.positionTip(),ge.prototype.select.call(this)},ue.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ge.prototype.getState.call(this));return ee.typeName=ue.typeName,ee},ue.prototype.restoreState=function(ee){var b=ee;this.bgColor=b.bgColor,this.tipPosition=b.tipPosition,ge.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},ue.prototype.scale=function(ee,b){ge.prototype.scale.call(this,ee,b),this.tipPosition={x:this.tipPosition.x*ee,y:this.tipPosition.y*b},this.positionTip()},ue.typeName="CalloutMarker",ue.title="Callout marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',ue}(ht),Fn=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.fillColor="transparent",ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.opacity=1,ie.strokeColor=ae.defaultColor,ie.strokeWidth=ae.defaultStrokeWidth,ie.strokeDasharray=ae.defaultStrokeDasharray,ie.fillColor=ae.defaultFillColor,ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setFillColor=ie.setFillColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.setOpacity=ie.setOpacity.bind(ie),ie.createVisual=ie.createVisual.bind(ie),ie.strokePanel=new He("Line color",Ee(ae.defaultColorSet,["transparent"]),ae.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.fillPanel=new He("Fill color",Ee(ae.defaultColorSet,["transparent"]),ie.fillColor,xe),ie.fillPanel.onColorChanged=ie.setFillColor,ie.strokeWidthPanel=new Ue("Line width",ae.defaultStrokeWidths,ae.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new ke("Line style",ae.defaultStrokeDasharrays,ae.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie.opacityPanel=new fn("Opacity",ae.defaultOpacitySteps,ie.opacity),ie.opacityPanel.onOpacityChanged=ie.setOpacity,ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return!(!ge.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},ue.prototype.createVisual=function(){this.visual=de.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},ue.prototype.manipulate=function(ee){ge.prototype.manipulate.call(this,ee)},ue.prototype.resize=function(ee){ge.prototype.resize.call(this,ee),this.setSize()},ue.prototype.setSize=function(){ge.prototype.setSize.call(this),de.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ue.prototype.pointerUp=function(ee){ge.prototype.pointerUp.call(this,ee),this.setSize()},ue.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&de.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},ue.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&de.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},ue.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&de.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&de.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ue.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&de.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ge.prototype.getState.call(this));return ee.typeName=ue.typeName,ee},ue.prototype.restoreState=function(ee){var b=ee;this.fillColor=b.fillColor,this.strokeColor=b.strokeColor,this.strokeWidth=b.strokeWidth,this.strokeDasharray=b.strokeDasharray,this.opacity=b.opacity,this.createVisual(),ge.prototype.restoreState.call(this,ee),this.setSize()},ue.prototype.scale=function(ee,b){ge.prototype.scale.call(this,ee,b),this.setSize()},ue.typeName="EllipseMarker",ue.title="Ellipse marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ue}(be),hn=function(ge){function ue(ee,b,ae){return ge.call(this,ee,b,ae)||this}return Me(ue,ge),Object.defineProperty(ue.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ue.prototype.ownsTarget=function(ee){return!(!ge.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},ue.prototype.createTips=function(){this.tip1=de.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.tip1),this.tip2=de.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(de.createTransform()),this.visual.appendChild(this.tip2)},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.state==="creating"&&this.createTips()},ue.prototype.adjustVisual=function(){if(ge.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(de.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),de.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),b=this.tip1.transform.baseVal.getItem(0);b.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(b,0);var ae=this.tip2.transform.baseVal.getItem(0);ae.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ae,0)}},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=ge.prototype.getState.call(this);return ee.typeName=ue.typeName,ee},ue.prototype.restoreState=function(ee){ge.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},ue.typeName="MeasurementMarker",ue.title="Measurement marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',ue}(lt),vt=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.strokePanel.colors=ae.defaultColorSet,ie.fillColor="transparent",ie}return Me(ue,ge),Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=ge.prototype.getState.call(this);return ee.typeName=ue.typeName,ee},ue.typeName="EllipseFrameMarker",ue.title="Ellipse frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',ue}(Fn),Jt=function(){function ge(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ge.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ge.prototype.addUndoStep=function(ue){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ue)||(this.undoStack.push(ue),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ue)&&this.redoStack.splice(0,this.redoStack.length))},ge.prototype.replaceLastUndoStep=function(ue){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ue)},ge.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ge.prototype.undo=function(){if(this.undoStack.length>1){var ue=this.undoStack.pop();return ue!==void 0&&this.redoStack.push(ue),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ge.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ge}(),Yt=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.curveX=0,ie.curveY=0,ie.manipulationStartCurveX=0,ie.manipulationStartCurveY=0,ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.positionGrips=ie.positionGrips.bind(ie),ie.addControlGrips=ie.addControlGrips.bind(ie),ie.adjustVisual=ie.adjustVisual.bind(ie),ie.setupControlBox=ie.setupControlBox.bind(ie),ie.resize=ie.resize.bind(ie),ie.strokeColor=ae.defaultColor,ie.strokeWidth=ae.defaultStrokeWidth,ie.strokeDasharray=ae.defaultStrokeDasharray,ie.strokePanel=new He("Line color",ae.defaultColorSet,ae.defaultColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.strokeWidthPanel=new Ue("Line width",ae.defaultStrokeWidths,ae.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new ke("Line style",ae.defaultStrokeDasharrays,ae.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return!(!ge.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},ue.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ue.prototype.createVisual=function(){this.visual=de.createGroup(),this.selectorCurve=de.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=de.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)},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(b)&&(this.activeGrip=this.curveGrip,this._state="resize")},ue.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),de.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),de.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),de.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ue.prototype.setupControlBox=function(){ge.prototype.setupControlBox.call(this),this.curveControlLine1=de.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=de.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)},ue.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ge.prototype.addControlGrips.call(this)},ue.prototype.positionGrips=function(){ge.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},ue.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ge.prototype.manipulate.call(this,ee)},ue.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ge.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ue.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},ue.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},ue.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},ue.prototype.scale=function(ee,b){this.curveX=this.curveX*ee,this.curveY=this.curveY*b,ge.prototype.scale.call(this,ee,b)},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ge.prototype.getState.call(this));return ee.typeName=ue.typeName,ee},ue.prototype.restoreState=function(ee){ge.prototype.restoreState.call(this,ee);var b=ee;this.strokeColor=b.strokeColor,this.strokeWidth=b.strokeWidth,this.strokeDasharray=b.strokeDasharray,this.curveX=b.curveX,this.curveY=b.curveY,this.createVisual(),this.adjustVisual()},ue.typeName="CurveMarker",ue.title="Curve marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',ue}(Ge),jn=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,b,ae)||this;return ie.fillColor="transparent",ie.strokeColor="transparent",ie.strokeWidth=0,ie.strokeDasharray="",ie.textColor="transparent",ie.fontSize="1rem",ie.isMoved=!1,ie.captionText="Caption",ie.PADDING=5,ie.captionBoxWidth=0,ie.captionBoxHeight=0,ie.strokeColor=ae.defaultColor,ie.strokeWidth=ae.defaultStrokeWidth,ie.strokeDasharray=ae.defaultStrokeDasharray,ie.fillColor=ae.defaultFillColor,ie.textColor=ae.defaultStrokeColor,ie.fontFamily=ae.defaultFontFamily,ie.fontSize=ae.defaultCaptionFontSize,ie.captionText=ae.defaultCaptionText,ie.setStrokeColor=ie.setStrokeColor.bind(ie),ie.setFillColor=ie.setFillColor.bind(ie),ie.setStrokeWidth=ie.setStrokeWidth.bind(ie),ie.setStrokeDasharray=ie.setStrokeDasharray.bind(ie),ie.createVisual=ie.createVisual.bind(ie),ie.sizeCaption=ie.sizeCaption.bind(ie),ie.setCaptionText=ie.setCaptionText.bind(ie),ie.showTextEditor=ie.showTextEditor.bind(ie),ie.positionTextEditor=ie.positionTextEditor.bind(ie),ie.finishTextEditing=ie.finishTextEditing.bind(ie),ie.setFont=ie.setFont.bind(ie),ie.setTextColor=ie.setTextColor.bind(ie),ie.strokePanel=new He("Line color",Ee(ae.defaultColorSet,["transparent"]),ie.strokeColor),ie.strokePanel.onColorChanged=ie.setStrokeColor,ie.fillPanel=new He("Fill color",Ee(ae.defaultColorSet,["transparent"]),ie.fillColor,xe),ie.fillPanel.onColorChanged=ie.setFillColor,ie.strokeWidthPanel=new Ue("Line width",ae.defaultStrokeWidths,ae.defaultStrokeWidth),ie.strokeWidthPanel.onWidthChanged=ie.setStrokeWidth,ie.strokeStylePanel=new ke("Line style",ae.defaultStrokeDasharrays,ae.defaultStrokeDasharray),ie.strokeStylePanel.onStyleChanged=ie.setStrokeDasharray,ie.fontFamilyPanel=new je("Font",ae.defaultFontFamilies,ae.defaultFontFamily),ie.fontFamilyPanel.onFontChanged=ie.setFont,ie.textColorPanel=new He("Text color",ae.defaultColorSet,ie.textColor,Re),ie.textColorPanel.onColorChanged=ie.setTextColor,ie}return Me(ue,ge),ue.prototype.ownsTarget=function(ee){return!(!ge.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},ue.prototype.createVisual=function(){this.visual=de.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=de.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=de.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=de.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()},ue.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},ue.prototype.pointerDown=function(ee,b){ge.prototype.pointerDown.call(this,ee,b),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},ue.prototype.manipulate=function(ee){ge.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},ue.prototype.resize=function(ee){ge.prototype.resize.call(this,ee),this.setSize()},ue.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),de.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')"]]),de.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')"]])},ue.prototype.showTextEditor=function(){var ee=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(b){b.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(b){b.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(b){b.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ue.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"))},ue.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ue.prototype.setFont=function(ee){this.captionElement&&de.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ue.prototype.setTextColor=function(ee){this.captionElement&&de.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ue.prototype.setSize=function(){ge.prototype.setSize.call(this),de.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ue.prototype.pointerUp=function(ee){ge.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ue.prototype.dblClick=function(ee,b){ge.prototype.dblClick.call(this,ee,b),this.showTextEditor()},ue.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&de.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},ue.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&de.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},ue.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&de.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ue.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&de.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ue.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ue.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},ge.prototype.getState.call(this));return ee.typeName=this.typeName,ee},ue.prototype.restoreState=function(ee){var b=ee;this.fillColor=b.fillColor,this.strokeColor=b.strokeColor,this.strokeWidth=b.strokeWidth,this.strokeDasharray=b.strokeDasharray,this.textColor=b.textColor,this.fontFamily=b.fontFamily,this.captionText=b.captionText,this.fontSize=b.fontSize,this.createVisual(),ge.prototype.restoreState.call(this,ee),this.setSize()},ue.prototype.scale=function(ee,b){ge.prototype.scale.call(this,ee,b),this.setSize()},ue.typeName="CaptionFrameMarker",ue.title="Caption frame marker",ue.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',ue}(be),yt=function(){function ge(ue,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ue,this.cancelable=ee}return Object.defineProperty(ge.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ge.prototype.preventDefault=function(){this._defaultPrevented=!0},ge}(),wn=function(ge){function ue(ee,b,ae){var ie=ge.call(this,ee,!1)||this;return ie.dataUrl=b,ie.state=ae,ie}return Me(ue,ge),ue}(yt),Dt=function(ge){function ue(ee,b,ae){ae===void 0&&(ae=!1);var ie=ge.call(this,ee,ae)||this;return ie.marker=b,ie}return Me(ue,ge),ue}(yt),un=function(){function ge(){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 ge.prototype.addEventListener=function(ue,ee){this[ue].push(ee)},ge.prototype.removeEventListener=function(ue,ee){var b=this[ue].indexOf(ee);b>-1&&this[ue].splice(b,1)},ge}(),ln=function(){function ge(ue){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Pe,this._isOpen=!1,this.undoRedoManager=new Jt,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 un,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ge.instanceCounter++,this.styles=new ve(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ue,this.targetRoot=document.body,this.width=ue.clientWidth,this.height=ue.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(ge.prototype,"ALL_MARKER_TYPES",{get:function(){return[qe,et,Tt,ht,vt,Fn,$t,Lt,hn,Kt,lt,Yt,jn]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[qe,et,Tt,ht,Fn,$t,Lt]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"BASIC_MARKER_TYPES",{get:function(){return[qe,et,Tt,ht,$t]},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ue){var ee=this;this._availableMarkerTypes.splice(0),ue.forEach(function(b){if(typeof b=="string"){var ae=ee.ALL_MARKER_TYPES.find(function(ie){return ie.typeName===b});ae!==void 0&&ee._availableMarkerTypes.push(ae)}else ee._availableMarkerTypes.push(b)})},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ge.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ue){this._zoomLevel=ue,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(ge.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ge.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ze.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ge.prototype.show=function(){var ue=this;this.styles.styleSheetRoot===void 0&&Ie.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Ie.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new yt(ue))})},ge.prototype.render=function(){return De(this,void 0,void 0,function(){var ue;return Ze(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(ue=new Fe).naturalSize=this.renderAtNaturalSize,ue.imageType=this.renderImageType,ue.imageQuality=this.renderImageQuality,ue.markersOnly=this.renderMarkersOnly,ue.width=this.renderWidth,ue.height=this.renderHeight,[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,ue.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ge.prototype.close=function(ue){var ee=this;if(ue===void 0&&(ue=!1),this.isOpen){var b=!1;ue||this.eventListeners.beforeclose.forEach(function(ae){var ie=new yt(ee,!0);ae(ie),ie.defaultPrevented&&(b=!0)}),b||(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(ae){return ae(new yt(ee))}),this.detachEvents(),this._isOpen=!1)}},ge.prototype.addMarkersToToolbar=function(){for(var ue,ee=[],b=0;b<arguments.length;b++)ee[b]=arguments[b];(ue=this._availableMarkerTypes).push.apply(ue,ee)},ge.prototype.addRenderEventListener=function(ue){this.addEventListener("render",function(ee){ue(ee.dataUrl,ee.state)})},ge.prototype.removeRenderEventListener=function(ue){},ge.prototype.addCloseEventListener=function(ue){this.addEventListener("close",function(){ue()})},ge.prototype.removeCloseEventListener=function(ue){},ge.prototype.setupResizeObserver=function(){var ue=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ue.resize(ue.target.clientWidth,ue.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ue.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ge.prototype.onPopupTargetResize=function(){var ue=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/ue>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ue:this.editorCanvas.clientWidth,b=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ue;this.resize(ee,b)},ge.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ge.prototype.resize=function(ue,ee){this._isResizing=!0;var b=ue/this.imageWidth,ae=ee/this.imageHeight;this.imageWidth=Math.round(ue),this.imageHeight=Math.round(ee),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(b,ae),this._isResizing=!1},ge.prototype.scaleMarkers=function(ue,ee){var b,ae=this;this._currentMarker&&this._currentMarker instanceof ht?this._currentMarker.scale(ue,ee):(b=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ie){ie!==ae._currentMarker&&ie.scale(ue,ee)}),b!==void 0&&this.setCurrentMarker(b)},ge.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},ge.prototype.setTopLeft=function(){var ue=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=ue.left-ee.left,this.top=ue.top-ee.top},ge.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},ge.prototype.addDefs=function(){for(var ue,ee=[],b=0;b<arguments.length;b++)ee[b]=arguments[b];this.defs=de.createDefs(),this.addDefsToImage(),(ue=this.defs).append.apply(ue,ee)},ge.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ge.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},ge.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ge.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ge.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},ge.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ge.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},ge.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var ue=document.createElement("a");ue.href="https://markerjs.com/",ue.target="_blank",ue.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',ue.title="Powered by marker.js",ue.style.display="grid",ue.style.alignItems="center",ue.style.justifyItems="center",ue.style.padding="3px",ue.style.width="20px",ue.style.height="20px",this.logoUI.appendChild(ue),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ge.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")},ge.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"},ge.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ge.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 ue=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=ue+"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<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Xe(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ge.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ge.prototype.removeMarker=function(ue){this.markerImage.removeChild(ue.container),this.markers.indexOf(ue)>-1&&this.markers.splice(this.markers.indexOf(ue),1),ue.dispose()},ge.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())},ge.prototype.toolbarButtonClicked=function(ue,ee){if(ue==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(ue==="action")switch(ee){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},ge.prototype.deleteSelectedMarker=function(){var ue=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ae){var ie=new Dt(ue,ue._currentMarker,!0);ae(ie),ie.defaultPrevented&&(ee=!0)}),!ee){var b=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(ae){return ae(new Dt(ue,b))})}}},ge.prototype.clear=function(){var ue=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var Ye=new Dt(ue,void 0,!0);he(Ye),Ye.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var b=function(he){var Ye=ae.markers[he];ae.setCurrentMarker(ae.markers[he]),ae._currentMarker.dispose(),ae.markerImage.removeChild(ae._currentMarker.container),ae.markers.splice(ae.markers.indexOf(ae._currentMarker),1),ae.eventListeners.markerdelete.forEach(function(pt){return pt(new Dt(ue,Ye))})},ae=this,ie=this.markers.length-1;ie>=0;ie--)b(ie);this.addUndoStep()}},Object.defineProperty(ge.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ge.prototype.showNotesEditor=function(){var ue;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=(ue=this._currentMarker.notes)!==null&&ue!==void 0?ue:"",this.overlayContainer.appendChild(this.notesArea))},ge.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)},ge.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ge.prototype.addUndoStep=function(){var ue=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),b=this.undoRedoManager.getLastUndoStep();if(!b||b.width===ee.width&&b.height===ee.height){var ae=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),ae<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ie){return ie(new yt(ue))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(ie){return ie(new yt(ue))})}},ge.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ge.prototype.undoStep=function(){var ue=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(b){return b(new yt(ue))}))},ge.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ge.prototype.redoStep=function(){var ue=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(b){return b(new yt(ue))}))},ge.prototype.stepZoom=function(){var ue=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ue<this.zoomSteps.length-1?this.zoomSteps[ue+1]:this.zoomSteps[0]},ge.prototype.panTo=function(ue){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ue.x,top:this.prevPanPoint.y-ue.y}),this.prevPanPoint=ue},ge.prototype.startRenderAndClose=function(){return De(this,void 0,void 0,function(){var ue,ee,b=this;return Ze(this,function(ae){switch(ae.label){case 0:return[4,this.render()];case 1:return ue=ae.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(ie){return ie(new wn(b,ue,ee))}),this.close(!0),[2]}})})},ge.prototype.getState=function(ue){ue===!0&&this.setCurrentMarker();var ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(b){return ee.markers.push(b.getState())}),ee},ge.prototype.restoreState=function(ue){var ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ue.markers.forEach(function(b){var ae=ee._availableMarkerTypes.find(function(he){return he.typeName===b.typeName});if(ae!==void 0){var ie=ee.addNewMarker(ae);ie.restoreState(b),ee.markers.push(ie)}}),ue.width&&ue.height&&(ue.width!==this.imageWidth||ue.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ue.width,this.imageHeight/ue.height),this.eventListeners.restorestate.forEach(function(b){return b(new yt(ee))})},ge.prototype.addNewMarker=function(ue){var ee=de.createGroup();return this.markerImage.appendChild(ee),new ue(ee,this.overlayContainer,this.settings)},ge.prototype.createNewMarker=function(ue){var ee,b=this;(ee=typeof ue=="string"?this._availableMarkerTypes.find(function(ae){return ae.typeName===ue}):ue)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ee),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ae){return ae(new Dt(b,b._currentMarker))}))},ge.prototype.markerCreated=function(ue){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ue),this.setCurrentMarker(ue),ue instanceof et&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(et):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(b){return b(new Dt(ee,ee._currentMarker))})},ge.prototype.colorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ue,this.settings.defaultStrokeColor=ue)},ge.prototype.fillColorChanged=function(ue){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ue)},ge.prototype.markerStateChanged=function(ue){var ee=this;this.eventListeners.markerchange.forEach(function(b){return b(new Dt(ee,ue))})},ge.prototype.setCurrentMarker=function(ue){var ee=this;this._currentMarker!==ue&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(b){return b(new Dt(ee,ee._currentMarker))})),this._currentMarker=ue,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(b){return b(new Dt(ee,ee._currentMarker))}))},ge.prototype.onPointerDown=function(ue){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ue.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(b){return b.ownsTarget(ue.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ue.clientX,y:ue.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ue.clientX,ue.clientY))},ge.prototype.onDblClick=function(ue){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(b){return b.ownsTarget(ue.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ue.clientX,ue.clientY),ue.target):this.setCurrentMarker()}},ge.prototype.onPointerMove=function(ue){this.touchPoints!==1&&ue.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ue.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ue.clientX,ue.clientY)):this.zoomLevel>1&&this.panTo({x:ue.clientX,y:ue.clientY}))},ge.prototype.onPointerUp=function(ue){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ue.clientX,ue.clientY)),this.isDragging=!1,this.addUndoStep()},ge.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ge.prototype.onKeyUp=function(ue){this._currentMarker===void 0||this.notesArea!==void 0||ue.key!=="Delete"&&ue.key!=="Backspace"||this.deleteSelectedMarker()},ge.prototype.clientToLocalCoordinates=function(ue,ee){var b=this.markerImage.getBoundingClientRect();return{x:(ue-b.left)/this.zoomLevel,y:(ee-b.top)/this.zoomLevel}},ge.prototype.onWindowResize=function(){this.positionUI()},ge.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ue=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ue+"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()},ge.prototype.addLicenseKey=function(ue){ze.addKey(ue)},ge.prototype.addEventListener=function(ue,ee){this.eventListeners.addEventListener(ue,ee)},ge.prototype.removeEventListener=function(ue,ee){this.eventListeners.removeEventListener(ue,ee)},ge.prototype.renderState=function(ue){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ue),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ge.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ge.prototype.focus=function(){var ue=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new yt(ue))}))},ge.prototype.blur=function(){var ue=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new yt(ue))}))},ge.instanceCounter=0,ge}()},66042:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return ht}});var re=fe(27247),Me=fe(11913),De=fe(43403),Ze=fe(34280),Ee=fe(59301),de=Ee.createContext(null),ze=Ee.createContext({}),Fe=de,Ie=fe(74430),ve=fe(32855),ut=fe(92310),we=fe.n(ut),ot=fe(77900),Xe=fe(10228),Je=fe(26112),He=fe(43079),Te=fe(8654),at=["prefixCls","className","containerRef"],Oe=function(ft){var Tt=ft.prefixCls,Kt=ft.className,fn=ft.containerRef,$t=(0,He.Z)(ft,at),Re=Ee.useContext(ze),xe=Re.panel,Lt=(0,Te.x1)(xe,fn);return Ee.createElement("div",(0,ve.Z)({className:we()("".concat(Tt,"-content"),Kt),role:"dialog",ref:Lt},(0,Je.Z)(ft,{aria:!0}),{"aria-modal":"true"},$t))},We=Oe,be=fe(48736);function Be(et){return typeof et=="string"&&String(Number(et))===et?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(et)):et}function Ue(et){warning(!("wrapperClassName"in et),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!et.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var ke={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function qe(et,ft){var Tt,Kt,fn,$t=et.prefixCls,Re=et.open,xe=et.placement,Lt=et.inline,Fn=et.push,hn=et.forceRender,vt=et.autoFocus,Jt=et.keyboard,Yt=et.classNames,jn=et.rootClassName,yt=et.rootStyle,wn=et.zIndex,Dt=et.className,un=et.id,ln=et.style,ge=et.motion,ue=et.width,ee=et.height,b=et.children,ae=et.mask,ie=et.maskClosable,he=et.maskMotion,Ye=et.maskClassName,pt=et.maskStyle,zt=et.afterOpenChange,ct=et.onClose,bt=et.onMouseEnter,Et=et.onMouseOver,en=et.onMouseLeave,Dn=et.onClick,Mt=et.onKeyDown,tt=et.onKeyUp,on=et.styles,jt=et.drawerRender,qt=Ee.useRef(),wt=Ee.useRef(),Rn=Ee.useRef();Ee.useImperativeHandle(ft,function(){return qt.current});var Wt=function(Yn){var pn=Yn.keyCode,Wn=Yn.shiftKey;switch(pn){case Xe.Z.TAB:{if(pn===Xe.Z.TAB){if(!Wn&&document.activeElement===Rn.current){var cn;(cn=wt.current)===null||cn===void 0||cn.focus({preventScroll:!0})}else if(Wn&&document.activeElement===wt.current){var Sn;(Sn=Rn.current)===null||Sn===void 0||Sn.focus({preventScroll:!0})}}break}case Xe.Z.ESC:{ct&&Jt&&(Yn.stopPropagation(),ct(Yn));break}}};Ee.useEffect(function(){if(Re&&vt){var qn;(qn=qt.current)===null||qn===void 0||qn.focus({preventScroll:!0})}},[Re]);var Cn=Ee.useState(!1),Mn=(0,Me.Z)(Cn,2),sr=Mn[0],vn=Mn[1],cr=Ee.useContext(Fe),ar;typeof Fn=="boolean"?ar=Fn?{}:{distance:0}:ar=Fn||{};var mr=(Tt=(Kt=(fn=ar)===null||fn===void 0?void 0:fn.distance)!==null&&Kt!==void 0?Kt:cr==null?void 0:cr.pushDistance)!==null&&Tt!==void 0?Tt:180,$n=Ee.useMemo(function(){return{pushDistance:mr,push:function(){vn(!0)},pull:function(){vn(!1)}}},[mr]);Ee.useEffect(function(){if(Re){var qn;cr==null||(qn=cr.push)===null||qn===void 0||qn.call(cr)}else{var Yn;cr==null||(Yn=cr.pull)===null||Yn===void 0||Yn.call(cr)}},[Re]),Ee.useEffect(function(){return function(){var qn;cr==null||(qn=cr.pull)===null||qn===void 0||qn.call(cr)}},[]);var Xr=ae&&Ee.createElement(ot.default,(0,ve.Z)({key:"mask"},he,{visible:Re}),function(qn,Yn){var pn=qn.className,Wn=qn.style;return Ee.createElement("div",{className:we()("".concat($t,"-mask"),pn,Yt==null?void 0:Yt.mask,Ye),style:(0,re.Z)((0,re.Z)((0,re.Z)({},Wn),pt),on==null?void 0:on.mask),onClick:ie&&Re?ct:void 0,ref:Yn})}),Pr=typeof ge=="function"?ge(xe):ge,Er={};if(sr&&mr)switch(xe){case"top":Er.transform="translateY(".concat(mr,"px)");break;case"bottom":Er.transform="translateY(".concat(-mr,"px)");break;case"left":Er.transform="translateX(".concat(mr,"px)");break;default:Er.transform="translateX(".concat(-mr,"px)");break}xe==="left"||xe==="right"?Er.width=Be(ue):Er.height=Be(ee);var Ar={onMouseEnter:bt,onMouseOver:Et,onMouseLeave:en,onClick:Dn,onKeyDown:Mt,onKeyUp:tt},Qr=Ee.createElement(ot.default,(0,ve.Z)({key:"panel"},Pr,{visible:Re,forceRender:hn,onVisibleChanged:function(Yn){zt==null||zt(Yn)},removeOnLeave:!1,leavedClassName:"".concat($t,"-content-wrapper-hidden")}),function(qn,Yn){var pn=qn.className,Wn=qn.style,cn=Ee.createElement(We,(0,ve.Z)({id:un,containerRef:Yn,prefixCls:$t,className:we()(Dt,Yt==null?void 0:Yt.content),style:(0,re.Z)((0,re.Z)({},ln),on==null?void 0:on.content)},(0,Je.Z)(et,{aria:!0}),Ar),b);return Ee.createElement("div",(0,ve.Z)({className:we()("".concat($t,"-content-wrapper"),Yt==null?void 0:Yt.wrapper,pn),style:(0,re.Z)((0,re.Z)((0,re.Z)({},Er),Wn),on==null?void 0:on.wrapper)},(0,Je.Z)(et,{data:!0})),jt?jt(cn):cn)}),Vn=(0,re.Z)({},yt);return wn&&(Vn.zIndex=wn),Ee.createElement(Fe.Provider,{value:$n},Ee.createElement("div",{className:we()($t,"".concat($t,"-").concat(xe),jn,(0,Ie.Z)((0,Ie.Z)({},"".concat($t,"-open"),Re),"".concat($t,"-inline"),Lt)),style:Vn,tabIndex:-1,ref:qt,onKeyDown:Wt},Xr,Ee.createElement("div",{tabIndex:0,ref:wt,style:ke,"aria-hidden":"true","data-sentinel":"start"}),Qr,Ee.createElement("div",{tabIndex:0,ref:Rn,style:ke,"aria-hidden":"true","data-sentinel":"end"})))}var Pe=Ee.forwardRef(qe),Ge=Pe,lt=function(ft){var Tt=ft.open,Kt=Tt===void 0?!1:Tt,fn=ft.prefixCls,$t=fn===void 0?"rc-drawer":fn,Re=ft.placement,xe=Re===void 0?"right":Re,Lt=ft.autoFocus,Fn=Lt===void 0?!0:Lt,hn=ft.keyboard,vt=hn===void 0?!0:hn,Jt=ft.width,Yt=Jt===void 0?378:Jt,jn=ft.mask,yt=jn===void 0?!0:jn,wn=ft.maskClosable,Dt=wn===void 0?!0:wn,un=ft.getContainer,ln=ft.forceRender,ge=ft.afterOpenChange,ue=ft.destroyOnClose,ee=ft.onMouseEnter,b=ft.onMouseOver,ae=ft.onMouseLeave,ie=ft.onClick,he=ft.onKeyDown,Ye=ft.onKeyUp,pt=ft.panelRef,zt=Ee.useState(!1),ct=(0,Me.Z)(zt,2),bt=ct[0],Et=ct[1],en=Ee.useState(!1),Dn=(0,Me.Z)(en,2),Mt=Dn[0],tt=Dn[1];(0,Ze.Z)(function(){tt(!0)},[]);var on=Mt?Kt:!1,jt=Ee.useRef(),qt=Ee.useRef();(0,Ze.Z)(function(){on&&(qt.current=document.activeElement)},[on]);var wt=function(sr){var vn;if(Et(sr),ge==null||ge(sr),!sr&&qt.current&&!((vn=jt.current)!==null&&vn!==void 0&&vn.contains(qt.current))){var cr;(cr=qt.current)===null||cr===void 0||cr.focus({preventScroll:!0})}},Rn=Ee.useMemo(function(){return{panel:pt}},[pt]);if(!ln&&!bt&&!on&&ue)return null;var Wt={onMouseEnter:ee,onMouseOver:b,onMouseLeave:ae,onClick:ie,onKeyDown:he,onKeyUp:Ye},Cn=(0,re.Z)((0,re.Z)({},ft),{},{open:on,prefixCls:$t,placement:xe,autoFocus:Fn,keyboard:vt,width:Yt,mask:yt,maskClosable:Dt,inline:un===!1,afterOpenChange:wt,ref:jt},Wt);return Ee.createElement(ze.Provider,{value:Rn},Ee.createElement(De.Z,{open:on||ln||bt,autoDestroy:!1,getContainer:un,autoLock:yt&&(on||bt)},Ee.createElement(Ge,Cn)))},je=lt,ht=je},91574:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Dn}});var re=fe(32855),Me=fe(27247),De=fe(74430),Ze=fe(11913),Ee=fe(34666),de=fe(43079),ze=fe(92310),Fe=fe.n(ze),Ie=/margin|padding|width|height|max|min|offset/,ve={left:!0,top:!0},ut={cssFloat:1,styleFloat:1,float:1};function we(Mt){return Mt.nodeType===1?Mt.ownerDocument.defaultView.getComputedStyle(Mt,null):{}}function ot(Mt,tt,on){if(tt=tt.toLowerCase(),on==="auto"){if(tt==="height")return Mt.offsetHeight;if(tt==="width")return Mt.offsetWidth}return tt in ve||(ve[tt]=Ie.test(tt)),ve[tt]?parseFloat(on)||0:on}function Xe(Mt,tt){var on=arguments.length,jt=we(Mt);return tt=ut[tt]?"cssFloat"in Mt.style?"cssFloat":"styleFloat":tt,on===1?jt:ot(Mt,tt,jt[tt]||Mt.style[tt])}function Je(Mt,tt,on){var jt=arguments.length;if(tt=ut[tt]?"cssFloat"in Mt.style?"cssFloat":"styleFloat":tt,jt===3)return typeof on=="number"&&Ie.test(tt)&&(on="".concat(on,"px")),Mt.style[tt]=on,on;for(var qt in tt)tt.hasOwnProperty(qt)&&Je(Mt,qt,tt[qt]);return we(Mt)}function He(Mt){return Mt===document.body?document.documentElement.clientWidth:Mt.offsetWidth}function Te(Mt){return Mt===document.body?window.innerHeight||document.documentElement.clientHeight:Mt.offsetHeight}function at(){var Mt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),tt=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Mt,height:tt}}function Oe(){var Mt=document.documentElement.clientWidth,tt=window.innerHeight||document.documentElement.clientHeight;return{width:Mt,height:tt}}function We(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function be(Mt){var tt=Mt.getBoundingClientRect(),on=document.documentElement;return{left:tt.left+(window.pageXOffset||on.scrollLeft)-(on.clientLeft||document.body.clientLeft||0),top:tt.top+(window.pageYOffset||on.scrollTop)-(on.clientTop||document.body.clientTop||0)}}var Be=fe(18929),Ue=fe(59301),ke=fe(55311),qe=fe(8224),Pe=fe(10228),Ge=fe(43403),lt=fe(77900),je=Ue.createContext(null),ht=function(tt){var on=tt.visible,jt=tt.maskTransitionName,qt=tt.getContainer,wt=tt.prefixCls,Rn=tt.rootClassName,Wt=tt.icons,Cn=tt.countRender,Mn=tt.showSwitch,sr=tt.showProgress,vn=tt.current,cr=tt.transform,ar=tt.count,mr=tt.scale,$n=tt.minScale,Xr=tt.maxScale,Pr=tt.closeIcon,Er=tt.onActive,Ar=tt.onClose,Qr=tt.onZoomIn,Vn=tt.onZoomOut,qn=tt.onRotateRight,Yn=tt.onRotateLeft,pn=tt.onFlipX,Wn=tt.onFlipY,cn=tt.onReset,Sn=tt.toolbarRender,fr=tt.zIndex,ir=tt.image,lr=(0,Ue.useContext)(je),xr=Wt.rotateLeft,Wr=Wt.rotateRight,Dr=Wt.zoomIn,Fr=Wt.zoomOut,Rr=Wt.close,Xn=Wt.left,yn=Wt.right,rt=Wt.flipX,Sr=Wt.flipY,Kr="".concat(wt,"-operations-operation");Ue.useEffect(function(){var It=function(mt){mt.keyCode===Pe.Z.ESC&&Ar()};return on&&window.addEventListener("keydown",It),function(){window.removeEventListener("keydown",It)}},[on]);var _t=function(an,mt){an.preventDefault(),an.stopPropagation(),Er(mt)},St=Ue.useCallback(function(It){var an=It.type,mt=It.disabled,dn=It.onClick,Tn=It.icon;return Ue.createElement("div",{key:an,className:Fe()(Kr,"".concat(wt,"-operations-operation-").concat(an),(0,De.Z)({},"".concat(wt,"-operations-operation-disabled"),!!mt)),onClick:dn},Tn)},[Kr,wt]),Jn=Mn?St({icon:Xn,onClick:function(an){return _t(an,-1)},type:"prev",disabled:vn===0}):void 0,Hn=Mn?St({icon:yn,onClick:function(an){return _t(an,1)},type:"next",disabled:vn===ar-1}):void 0,Ot=St({icon:Sr,onClick:Wn,type:"flipY"}),kn=St({icon:rt,onClick:pn,type:"flipX"}),nr=St({icon:xr,onClick:Yn,type:"rotateLeft"}),rr=St({icon:Wr,onClick:qn,type:"rotateRight"}),er=St({icon:Fr,onClick:Vn,type:"zoomOut",disabled:mr<=$n}),ur=St({icon:Dr,onClick:Qr,type:"zoomIn",disabled:mr===Xr}),wr=Ue.createElement("div",{className:"".concat(wt,"-operations")},Ot,kn,nr,rr,er,ur);return Ue.createElement(lt.default,{visible:on,motionName:jt},function(It){var an=It.className,mt=It.style;return Ue.createElement(Ge.Z,{open:!0,getContainer:qt!=null?qt:document.body},Ue.createElement("div",{className:Fe()("".concat(wt,"-operations-wrapper"),an,Rn),style:(0,Me.Z)((0,Me.Z)({},mt),{},{zIndex:fr})},Pr===null?null:Ue.createElement("button",{className:"".concat(wt,"-close"),onClick:Ar},Pr||Rr),Mn&&Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{className:Fe()("".concat(wt,"-switch-left"),(0,De.Z)({},"".concat(wt,"-switch-left-disabled"),vn===0)),onClick:function(Tn){return _t(Tn,-1)}},Xn),Ue.createElement("div",{className:Fe()("".concat(wt,"-switch-right"),(0,De.Z)({},"".concat(wt,"-switch-right-disabled"),vn===ar-1)),onClick:function(Tn){return _t(Tn,1)}},yn)),Ue.createElement("div",{className:"".concat(wt,"-footer")},sr&&Ue.createElement("div",{className:"".concat(wt,"-progress")},Cn?Cn(vn+1,ar):"".concat(vn+1," / ").concat(ar)),Sn?Sn(wr,(0,Me.Z)((0,Me.Z)({icons:{prevIcon:Jn,nextIcon:Hn,flipYIcon:Ot,flipXIcon:kn,rotateLeftIcon:nr,rotateRightIcon:rr,zoomOutIcon:er,zoomInIcon:ur},actions:{onActive:Er,onFlipY:Wn,onFlipX:pn,onRotateLeft:Yn,onRotateRight:qn,onZoomOut:Vn,onZoomIn:Qr,onReset:cn,onClose:Ar},transform:cr},lr?{current:vn,total:ar}:{}),{},{image:ir})):wr)))})},et=ht,ft=fe(13697),Tt=fe(16089),Kt={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function fn(Mt,tt,on,jt){var qt=(0,Ue.useRef)(null),wt=(0,Ue.useRef)([]),Rn=(0,Ue.useState)(Kt),Wt=(0,Ze.Z)(Rn,2),Cn=Wt[0],Mn=Wt[1],sr=function(mr){Mn(Kt),(0,ft.Z)(Kt,Cn)||jt==null||jt({transform:Kt,action:mr})},vn=function(mr,$n){qt.current===null&&(wt.current=[],qt.current=(0,Tt.Z)(function(){Mn(function(Xr){var Pr=Xr;return wt.current.forEach(function(Er){Pr=(0,Me.Z)((0,Me.Z)({},Pr),Er)}),qt.current=null,jt==null||jt({transform:Pr,action:$n}),Pr})})),wt.current.push((0,Me.Z)((0,Me.Z)({},Cn),mr))},cr=function(mr,$n,Xr,Pr,Er){var Ar=Mt.current,Qr=Ar.width,Vn=Ar.height,qn=Ar.offsetWidth,Yn=Ar.offsetHeight,pn=Ar.offsetLeft,Wn=Ar.offsetTop,cn=mr,Sn=Cn.scale*mr;Sn>on?(Sn=on,cn=on/Cn.scale):Sn<tt&&(Sn=Er?Sn:tt,cn=Sn/Cn.scale);var fr=Xr!=null?Xr:innerWidth/2,ir=Pr!=null?Pr:innerHeight/2,lr=cn-1,xr=lr*Qr*.5,Wr=lr*Vn*.5,Dr=lr*(fr-Cn.x-pn),Fr=lr*(ir-Cn.y-Wn),Rr=Cn.x-(Dr-xr),Xn=Cn.y-(Fr-Wr);if(mr<1&&Sn===1){var yn=qn*Sn,rt=Yn*Sn,Sr=Oe(),Kr=Sr.width,_t=Sr.height;yn<=Kr&&rt<=_t&&(Rr=0,Xn=0)}vn({x:Rr,y:Xn,scale:Sn},$n)};return{transform:Cn,resetTransform:sr,updateTransform:vn,dispatchZoomChange:cr}}var $t=fe(48736);function Re(Mt,tt,on,jt){var qt=tt+on,wt=(on-jt)/2;if(on>jt){if(tt>0)return(0,De.Z)({},Mt,wt);if(tt<0&&qt<jt)return(0,De.Z)({},Mt,-wt)}else if(tt<0||qt>jt)return(0,De.Z)({},Mt,tt<0?wt:-wt);return{}}function xe(Mt,tt,on,jt){var qt=Oe(),wt=qt.width,Rn=qt.height,Wt=null;return Mt<=wt&&tt<=Rn?Wt={x:0,y:0}:(Mt>wt||tt>Rn)&&(Wt=(0,Me.Z)((0,Me.Z)({},Re("x",on,Mt,wt)),Re("y",jt,tt,Rn))),Wt}var Lt=1,Fn=1;function hn(Mt,tt,on,jt,qt,wt,Rn){var Wt=qt.rotate,Cn=qt.scale,Mn=qt.x,sr=qt.y,vn=(0,Ue.useState)(!1),cr=(0,Ze.Z)(vn,2),ar=cr[0],mr=cr[1],$n=(0,Ue.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),Xr=function(Vn){!tt||Vn.button!==0||(Vn.preventDefault(),Vn.stopPropagation(),$n.current={diffX:Vn.pageX-Mn,diffY:Vn.pageY-sr,transformX:Mn,transformY:sr},mr(!0))},Pr=function(Vn){on&&ar&&wt({x:Vn.pageX-$n.current.diffX,y:Vn.pageY-$n.current.diffY},"move")},Er=function(){if(on&&ar){mr(!1);var Vn=$n.current,qn=Vn.transformX,Yn=Vn.transformY,pn=Mn!==qn&&sr!==Yn;if(!pn)return;var Wn=Mt.current.offsetWidth*Cn,cn=Mt.current.offsetHeight*Cn,Sn=Mt.current.getBoundingClientRect(),fr=Sn.left,ir=Sn.top,lr=Wt%180!==0,xr=xe(lr?cn:Wn,lr?Wn:cn,fr,ir);xr&&wt((0,Me.Z)({},xr),"dragRebound")}},Ar=function(Vn){if(!(!on||Vn.deltaY==0)){var qn=Math.abs(Vn.deltaY/100),Yn=Math.min(qn,Fn),pn=Lt+Yn*jt;Vn.deltaY>0&&(pn=Lt/pn),Rn(pn,"wheel",Vn.clientX,Vn.clientY)}};return(0,Ue.useEffect)(function(){var Qr,Vn,qn,Yn;if(tt){qn=(0,qe.Z)(window,"mouseup",Er,!1),Yn=(0,qe.Z)(window,"mousemove",Pr,!1);try{window.top!==window.self&&(Qr=(0,qe.Z)(window.top,"mouseup",Er,!1),Vn=(0,qe.Z)(window.top,"mousemove",Pr,!1))}catch(pn){(0,$t.Kp)(!1,"[rc-image] ".concat(pn))}}return function(){var pn,Wn,cn,Sn;(pn=qn)===null||pn===void 0||pn.remove(),(Wn=Yn)===null||Wn===void 0||Wn.remove(),(cn=Qr)===null||cn===void 0||cn.remove(),(Sn=Vn)===null||Sn===void 0||Sn.remove()}},[on,ar,Mn,sr,Wt,tt]),{isMoving:ar,onMouseDown:Xr,onMouseMove:Pr,onMouseUp:Er,onWheel:Ar}}function vt(Mt){return new Promise(function(tt){if(!Mt){tt(!1);return}var on=document.createElement("img");on.onerror=function(){return tt(!1)},on.onload=function(){return tt(!0)},on.src=Mt})}function Jt(Mt){var tt=Mt.src,on=Mt.isCustomPlaceholder,jt=Mt.fallback,qt=(0,Ue.useState)(on?"loading":"normal"),wt=(0,Ze.Z)(qt,2),Rn=wt[0],Wt=wt[1],Cn=(0,Ue.useRef)(!1),Mn=Rn==="error";(0,Ue.useEffect)(function(){var ar=!0;return vt(tt).then(function(mr){!mr&&ar&&Wt("error")}),function(){ar=!1}},[tt]),(0,Ue.useEffect)(function(){on&&!Cn.current?Wt("loading"):Mn&&Wt("normal")},[tt]);var sr=function(){Wt("normal")},vn=function(mr){Cn.current=!1,Rn==="loading"&&mr!==null&&mr!==void 0&&mr.complete&&(mr.naturalWidth||mr.naturalHeight)&&(Cn.current=!0,sr())},cr=Mn&&jt?{src:jt}:{onLoad:sr,src:tt};return[vn,cr,Rn]}function Yt(Mt,tt){var on=Mt.x-tt.x,jt=Mt.y-tt.y;return Math.hypot(on,jt)}function jn(Mt,tt,on,jt){var qt=Yt(Mt,on),wt=Yt(tt,jt);if(qt===0&&wt===0)return[Mt.x,Mt.y];var Rn=qt/(qt+wt),Wt=Mt.x+Rn*(tt.x-Mt.x),Cn=Mt.y+Rn*(tt.y-Mt.y);return[Wt,Cn]}function yt(Mt,tt,on,jt,qt,wt,Rn){var Wt=qt.rotate,Cn=qt.scale,Mn=qt.x,sr=qt.y,vn=(0,Ue.useState)(!1),cr=(0,Ze.Z)(vn,2),ar=cr[0],mr=cr[1],$n=(0,Ue.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),Xr=function(Vn){$n.current=(0,Me.Z)((0,Me.Z)({},$n.current),Vn)},Pr=function(Vn){if(tt){Vn.stopPropagation(),mr(!0);var qn=Vn.touches,Yn=qn===void 0?[]:qn;Yn.length>1?Xr({point1:{x:Yn[0].clientX,y:Yn[0].clientY},point2:{x:Yn[1].clientX,y:Yn[1].clientY},eventType:"touchZoom"}):Xr({point1:{x:Yn[0].clientX-Mn,y:Yn[0].clientY-sr},eventType:"move"})}},Er=function(Vn){var qn=Vn.touches,Yn=qn===void 0?[]:qn,pn=$n.current,Wn=pn.point1,cn=pn.point2,Sn=pn.eventType;if(Yn.length>1&&Sn==="touchZoom"){var fr={x:Yn[0].clientX,y:Yn[0].clientY},ir={x:Yn[1].clientX,y:Yn[1].clientY},lr=jn(Wn,cn,fr,ir),xr=(0,Ze.Z)(lr,2),Wr=xr[0],Dr=xr[1],Fr=Yt(fr,ir)/Yt(Wn,cn);Rn(Fr,"touchZoom",Wr,Dr,!0),Xr({point1:fr,point2:ir,eventType:"touchZoom"})}else Sn==="move"&&(wt({x:Yn[0].clientX-Wn.x,y:Yn[0].clientY-Wn.y},"move"),Xr({eventType:"move"}))},Ar=function(){if(on){if(ar&&mr(!1),Xr({eventType:"none"}),jt>Cn)return wt({x:0,y:0,scale:jt},"touchZoom");var Vn=Mt.current.offsetWidth*Cn,qn=Mt.current.offsetHeight*Cn,Yn=Mt.current.getBoundingClientRect(),pn=Yn.left,Wn=Yn.top,cn=Wt%180!==0,Sn=xe(cn?qn:Vn,cn?Vn:qn,pn,Wn);Sn&&wt((0,Me.Z)({},Sn),"dragRebound")}};return(0,Ue.useEffect)(function(){var Qr;return on&&tt&&(Qr=(0,qe.Z)(window,"touchmove",function(Vn){return Vn.preventDefault()},{passive:!1})),function(){var Vn;(Vn=Qr)===null||Vn===void 0||Vn.remove()}},[on,tt]),{isTouching:ar,onTouchStart:Pr,onTouchMove:Er,onTouchEnd:Ar}}var wn=["fallback","src","imgRef"],Dt=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],un=function(tt){var on=tt.fallback,jt=tt.src,qt=tt.imgRef,wt=(0,de.Z)(tt,wn),Rn=Jt({src:jt,fallback:on}),Wt=(0,Ze.Z)(Rn,2),Cn=Wt[0],Mn=Wt[1];return Ue.createElement("img",(0,re.Z)({ref:function(vn){qt.current=vn,Cn(vn)}},wt,Mn))},ln=function(tt){var on=tt.prefixCls,jt=tt.src,qt=tt.alt,wt=tt.imageInfo,Rn=tt.fallback,Wt=tt.movable,Cn=Wt===void 0?!0:Wt,Mn=tt.onClose,sr=tt.visible,vn=tt.icons,cr=vn===void 0?{}:vn,ar=tt.rootClassName,mr=tt.closeIcon,$n=tt.getContainer,Xr=tt.current,Pr=Xr===void 0?0:Xr,Er=tt.count,Ar=Er===void 0?1:Er,Qr=tt.countRender,Vn=tt.scaleStep,qn=Vn===void 0?.5:Vn,Yn=tt.minScale,pn=Yn===void 0?1:Yn,Wn=tt.maxScale,cn=Wn===void 0?50:Wn,Sn=tt.transitionName,fr=Sn===void 0?"zoom":Sn,ir=tt.maskTransitionName,lr=ir===void 0?"fade":ir,xr=tt.imageRender,Wr=tt.imgCommonProps,Dr=tt.toolbarRender,Fr=tt.onTransform,Rr=tt.onChange,Xn=(0,de.Z)(tt,Dt),yn=(0,Ue.useRef)(),rt=(0,Ue.useContext)(je),Sr=rt&&Ar>1,Kr=rt&&Ar>=1,_t=(0,Ue.useState)(!0),St=(0,Ze.Z)(_t,2),Jn=St[0],Hn=St[1],Ot=fn(yn,pn,cn,Fr),kn=Ot.transform,nr=Ot.resetTransform,rr=Ot.updateTransform,er=Ot.dispatchZoomChange,ur=hn(yn,Cn,sr,qn,kn,rr,er),wr=ur.isMoving,It=ur.onMouseDown,an=ur.onWheel,mt=yt(yn,Cn,sr,pn,kn,rr,er),dn=mt.isTouching,Tn=mt.onTouchStart,Br=mt.onTouchMove,_r=mt.onTouchEnd,Or=kn.rotate,yr=kn.scale,kr=Fe()((0,De.Z)({},"".concat(on,"-moving"),wr));(0,Ue.useEffect)(function(){Jn||Hn(!0)},[Jn]);var ii=function(){nr("close")},jr=function(){er(Lt+qn,"zoomIn")},hi=function(){er(Lt/(Lt+qn),"zoomOut")},gi=function(){rr({rotate:Or+90},"rotateRight")},oi=function(){rr({rotate:Or-90},"rotateLeft")},vi=function(){rr({flipX:!kn.flipX},"flipX")},Ne=function(){rr({flipY:!kn.flipY},"flipY")},_e=function(){nr("reset")},it=function(Zn){var Gn=Pr+Zn;!Number.isInteger(Gn)||Gn<0||Gn>Ar-1||(Hn(!1),nr(Zn<0?"prev":"next"),Rr==null||Rr(Gn,Pr))},gt=function(Zn){!sr||!Sr||(Zn.keyCode===Pe.Z.LEFT?it(-1):Zn.keyCode===Pe.Z.RIGHT&&it(1))},Vt=function(Zn){sr&&(yr!==1?rr({x:0,y:0,scale:1},"doubleClick"):er(Lt+qn,"doubleClick",Zn.clientX,Zn.clientY))};(0,Ue.useEffect)(function(){var Nn=(0,qe.Z)(window,"keydown",gt,!1);return function(){Nn.remove()}},[sr,Sr,Pr]);var Nt=Ue.createElement(un,(0,re.Z)({},Wr,{width:tt.width,height:tt.height,imgRef:yn,className:"".concat(on,"-img"),alt:qt,style:{transform:"translate3d(".concat(kn.x,"px, ").concat(kn.y,"px, 0) scale3d(").concat(kn.flipX?"-":"").concat(yr,", ").concat(kn.flipY?"-":"").concat(yr,", 1) rotate(").concat(Or,"deg)"),transitionDuration:(!Jn||dn)&&"0s"},fallback:Rn,src:jt,onWheel:an,onMouseDown:It,onDoubleClick:Vt,onTouchStart:Tn,onTouchMove:Br,onTouchEnd:_r,onTouchCancel:_r})),Qn=(0,Me.Z)({url:jt,alt:qt},wt);return Ue.createElement(Ue.Fragment,null,Ue.createElement(ke.Z,(0,re.Z)({transitionName:fr,maskTransitionName:lr,closable:!1,keyboard:!0,prefixCls:on,onClose:Mn,visible:sr,classNames:{wrapper:kr},rootClassName:ar,getContainer:$n},Xn,{afterClose:ii}),Ue.createElement("div",{className:"".concat(on,"-img-wrapper")},xr?xr(Nt,(0,Me.Z)({transform:kn,image:Qn},rt?{current:Pr}:{})):Nt)),Ue.createElement(et,{visible:sr,transform:kn,maskTransitionName:lr,closeIcon:mr,getContainer:$n,prefixCls:on,rootClassName:ar,icons:cr,countRender:Qr,showSwitch:Sr,showProgress:Kr,current:Pr,count:Ar,scale:yr,minScale:pn,maxScale:cn,toolbarRender:Dr,onActive:it,onZoomIn:jr,onZoomOut:hi,onRotateRight:gi,onRotateLeft:oi,onFlipX:vi,onFlipY:Ne,onClose:Mn,onReset:_e,zIndex:Xn.zIndex!==void 0?Xn.zIndex+1:void 0,image:Qn}))},ge=ln,ue=fe(3300),ee=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];function b(Mt){var tt=Ue.useState({}),on=(0,Ze.Z)(tt,2),jt=on[0],qt=on[1],wt=Ue.useCallback(function(Wt,Cn){return qt(function(Mn){return(0,Me.Z)((0,Me.Z)({},Mn),{},(0,De.Z)({},Wt,Cn))}),function(){qt(function(Mn){var sr=(0,Me.Z)({},Mn);return delete sr[Wt],sr})}},[]),Rn=Ue.useMemo(function(){return Mt?Mt.map(function(Wt){if(typeof Wt=="string")return{data:{src:Wt}};var Cn={};return Object.keys(Wt).forEach(function(Mn){["src"].concat((0,ue.Z)(ee)).includes(Mn)&&(Cn[Mn]=Wt[Mn])}),{data:Cn}}):Object.keys(jt).reduce(function(Wt,Cn){var Mn=jt[Cn],sr=Mn.canPreview,vn=Mn.data;return sr&&Wt.push({data:vn,id:Cn}),Wt},[])},[Mt,jt]);return[Rn,wt,!!Mt]}var ae=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],ie=["src"],he=function(tt){var on,jt=tt.previewPrefixCls,qt=jt===void 0?"rc-image-preview":jt,wt=tt.children,Rn=tt.icons,Wt=Rn===void 0?{}:Rn,Cn=tt.items,Mn=tt.preview,sr=tt.fallback,vn=(0,Ee.Z)(Mn)==="object"?Mn:{},cr=vn.visible,ar=vn.onVisibleChange,mr=vn.getContainer,$n=vn.current,Xr=vn.movable,Pr=vn.minScale,Er=vn.maxScale,Ar=vn.countRender,Qr=vn.closeIcon,Vn=vn.onChange,qn=vn.onTransform,Yn=vn.toolbarRender,pn=vn.imageRender,Wn=(0,de.Z)(vn,ae),cn=b(Cn),Sn=(0,Ze.Z)(cn,3),fr=Sn[0],ir=Sn[1],lr=Sn[2],xr=(0,Be.Z)(0,{value:$n}),Wr=(0,Ze.Z)(xr,2),Dr=Wr[0],Fr=Wr[1],Rr=(0,Ue.useState)(!1),Xn=(0,Ze.Z)(Rr,2),yn=Xn[0],rt=Xn[1],Sr=((on=fr[Dr])===null||on===void 0?void 0:on.data)||{},Kr=Sr.src,_t=(0,de.Z)(Sr,ie),St=(0,Be.Z)(!!cr,{value:cr,onChange:function(dn,Tn){ar==null||ar(dn,Tn,Dr)}}),Jn=(0,Ze.Z)(St,2),Hn=Jn[0],Ot=Jn[1],kn=(0,Ue.useState)(null),nr=(0,Ze.Z)(kn,2),rr=nr[0],er=nr[1],ur=Ue.useCallback(function(mt,dn,Tn,Br){var _r=lr?fr.findIndex(function(Or){return Or.data.src===dn}):fr.findIndex(function(Or){return Or.id===mt});Fr(_r<0?0:_r),Ot(!0),er({x:Tn,y:Br}),rt(!0)},[fr,lr]);Ue.useEffect(function(){Hn?yn||Fr(0):rt(!1)},[Hn]);var wr=function(dn,Tn){Fr(dn),Vn==null||Vn(dn,Tn)},It=function(){Ot(!1),er(null)},an=Ue.useMemo(function(){return{register:ir,onPreview:ur}},[ir,ur]);return Ue.createElement(je.Provider,{value:an},wt,Ue.createElement(ge,(0,re.Z)({"aria-hidden":!Hn,movable:Xr,visible:Hn,prefixCls:qt,closeIcon:Qr,onClose:It,mousePosition:rr,imgCommonProps:_t,src:Kr,fallback:sr,icons:Wt,minScale:Pr,maxScale:Er,getContainer:mr,current:Dr,count:fr.length,countRender:Ar,onTransform:qn,toolbarRender:Yn,imageRender:pn,onChange:wr},Wn)))},Ye=he,pt=0;function zt(Mt,tt){var on=Ue.useState(function(){return pt+=1,String(pt)}),jt=(0,Ze.Z)(on,1),qt=jt[0],wt=Ue.useContext(je),Rn={data:tt,canPreview:Mt};return Ue.useEffect(function(){if(wt)return wt.register(qt,Rn)},[]),Ue.useEffect(function(){wt&&wt.register(qt,Rn)},[Mt,tt]),qt}var ct=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],bt=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Et=function(tt){var on=tt.src,jt=tt.alt,qt=tt.onPreviewClose,wt=tt.prefixCls,Rn=wt===void 0?"rc-image":wt,Wt=tt.previewPrefixCls,Cn=Wt===void 0?"".concat(Rn,"-preview"):Wt,Mn=tt.placeholder,sr=tt.fallback,vn=tt.width,cr=tt.height,ar=tt.style,mr=tt.preview,$n=mr===void 0?!0:mr,Xr=tt.className,Pr=tt.onClick,Er=tt.onError,Ar=tt.wrapperClassName,Qr=tt.wrapperStyle,Vn=tt.rootClassName,qn=(0,de.Z)(tt,ct),Yn=Mn&&Mn!==!0,pn=(0,Ee.Z)($n)==="object"?$n:{},Wn=pn.src,cn=pn.visible,Sn=cn===void 0?void 0:cn,fr=pn.onVisibleChange,ir=fr===void 0?qt:fr,lr=pn.getContainer,xr=lr===void 0?void 0:lr,Wr=pn.mask,Dr=pn.maskClassName,Fr=pn.movable,Rr=pn.icons,Xn=pn.scaleStep,yn=pn.minScale,rt=pn.maxScale,Sr=pn.imageRender,Kr=pn.toolbarRender,_t=(0,de.Z)(pn,bt),St=Wn!=null?Wn:on,Jn=(0,Be.Z)(!!Sn,{value:Sn,onChange:ir}),Hn=(0,Ze.Z)(Jn,2),Ot=Hn[0],kn=Hn[1],nr=Jt({src:on,isCustomPlaceholder:Yn,fallback:sr}),rr=(0,Ze.Z)(nr,3),er=rr[0],ur=rr[1],wr=rr[2],It=(0,Ue.useState)(null),an=(0,Ze.Z)(It,2),mt=an[0],dn=an[1],Tn=(0,Ue.useContext)(je),Br=!!$n,_r=function(){kn(!1),dn(null)},Or=Fe()(Rn,Ar,Vn,(0,De.Z)({},"".concat(Rn,"-error"),wr==="error")),yr=(0,Ue.useMemo)(function(){var hi={};return ee.forEach(function(gi){tt[gi]!==void 0&&(hi[gi]=tt[gi])}),hi},ee.map(function(hi){return tt[hi]})),kr=(0,Ue.useMemo)(function(){return(0,Me.Z)((0,Me.Z)({},yr),{},{src:St})},[St,yr]),ii=zt(Br,kr),jr=function(gi){var oi=be(gi.target),vi=oi.left,Ne=oi.top;Tn?Tn.onPreview(ii,St,vi,Ne):(dn({x:vi,y:Ne}),kn(!0)),Pr==null||Pr(gi)};return Ue.createElement(Ue.Fragment,null,Ue.createElement("div",(0,re.Z)({},qn,{className:Or,onClick:Br?jr:Pr,style:(0,Me.Z)({width:vn,height:cr},Qr)}),Ue.createElement("img",(0,re.Z)({},yr,{className:Fe()("".concat(Rn,"-img"),(0,De.Z)({},"".concat(Rn,"-img-placeholder"),Mn===!0),Xr),style:(0,Me.Z)({height:cr},ar),ref:er},ur,{width:vn,height:cr,onError:Er})),wr==="loading"&&Ue.createElement("div",{"aria-hidden":"true",className:"".concat(Rn,"-placeholder")},Mn),Wr&&Br&&Ue.createElement("div",{className:Fe()("".concat(Rn,"-mask"),Dr),style:{display:(ar==null?void 0:ar.display)==="none"?"none":void 0}},Wr)),!Tn&&Br&&Ue.createElement(ge,(0,re.Z)({"aria-hidden":!Ot,visible:Ot,prefixCls:Cn,onClose:_r,mousePosition:mt,src:St,alt:jt,imageInfo:{width:vn,height:cr},fallback:sr,getContainer:xr,icons:Rr,movable:Fr,scaleStep:Xn,minScale:yn,maxScale:rt,rootClassName:Vn,imageRender:Sr,imgCommonProps:yr,toolbarRender:Kr},_t)))};Et.PreviewGroup=Ye;var en=Et,Dn=en},23425:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return ke}});var re=fe(74430),Me=fe(32855),De=fe(34666),Ze=fe(27247),Ee=fe(11913),de=fe(92310),ze=fe.n(de),Fe=fe(18929),Ie=fe(10228),ve=fe(26112),ut=fe(48736),we=fe(59301),ot=fe(17119),Xe=[10,20,50,100],Je=function(Pe){var Ge=Pe.pageSizeOptions,lt=Ge===void 0?Xe:Ge,je=Pe.locale,ht=Pe.changeSize,et=Pe.pageSize,ft=Pe.goButton,Tt=Pe.quickGo,Kt=Pe.rootPrefixCls,fn=Pe.disabled,$t=Pe.buildOptionText,Re=Pe.showSizeChanger,xe=Pe.sizeChangerRender,Lt=we.useState(""),Fn=(0,Ee.Z)(Lt,2),hn=Fn[0],vt=Fn[1],Jt=function(){return!hn||Number.isNaN(hn)?void 0:Number(hn)},Yt=typeof $t=="function"?$t:function(ee){return"".concat(ee," ").concat(je.items_per_page)},jn=function(b){vt(b.target.value)},yt=function(b){ft||hn===""||(vt(""),!(b.relatedTarget&&(b.relatedTarget.className.indexOf("".concat(Kt,"-item-link"))>=0||b.relatedTarget.className.indexOf("".concat(Kt,"-item"))>=0))&&(Tt==null||Tt(Jt())))},wn=function(b){hn!==""&&(b.keyCode===Ie.Z.ENTER||b.type==="click")&&(vt(""),Tt==null||Tt(Jt()))},Dt=function(){return lt.some(function(b){return b.toString()===et.toString()})?lt:lt.concat([et]).sort(function(b,ae){var ie=Number.isNaN(Number(b))?0:Number(b),he=Number.isNaN(Number(ae))?0:Number(ae);return ie-he})},un="".concat(Kt,"-options");if(!Re&&!Tt)return null;var ln=null,ge=null,ue=null;return Re&&xe&&(ln=xe({disabled:fn,size:et,onSizeChange:function(b){ht==null||ht(Number(b))},"aria-label":je.page_size,className:"".concat(un,"-size-changer"),options:Dt().map(function(ee){return{label:Yt(ee),value:ee}})})),Tt&&(ft&&(ue=typeof ft=="boolean"?we.createElement("button",{type:"button",onClick:wn,onKeyUp:wn,disabled:fn,className:"".concat(un,"-quick-jumper-button")},je.jump_to_confirm):we.createElement("span",{onClick:wn,onKeyUp:wn},ft)),ge=we.createElement("div",{className:"".concat(un,"-quick-jumper")},je.jump_to,we.createElement("input",{disabled:fn,type:"text",value:hn,onChange:jn,onKeyUp:wn,onBlur:yt,"aria-label":je.page}),je.page,ue)),we.createElement("li",{className:un},ln,ge)},He=Je,Te=function(Pe){var Ge=Pe.rootPrefixCls,lt=Pe.page,je=Pe.active,ht=Pe.className,et=Pe.showTitle,ft=Pe.onClick,Tt=Pe.onKeyPress,Kt=Pe.itemRender,fn="".concat(Ge,"-item"),$t=ze()(fn,"".concat(fn,"-").concat(lt),(0,re.Z)((0,re.Z)({},"".concat(fn,"-active"),je),"".concat(fn,"-disabled"),!lt),ht),Re=function(){ft(lt)},xe=function(hn){Tt(hn,ft,lt)},Lt=Kt(lt,"page",we.createElement("a",{rel:"nofollow"},lt));return Lt?we.createElement("li",{title:et?String(lt):null,className:$t,onClick:Re,onKeyDown:xe,tabIndex:0},Lt):null},at=Te,Oe=function(Pe,Ge,lt){return lt};function We(){}function be(qe){var Pe=Number(qe);return typeof Pe=="number"&&!Number.isNaN(Pe)&&isFinite(Pe)&&Math.floor(Pe)===Pe}function Be(qe,Pe,Ge){var lt=typeof qe=="undefined"?Pe:qe;return Math.floor((Ge-1)/lt)+1}var Ue=function(Pe){var Ge=Pe.prefixCls,lt=Ge===void 0?"rc-pagination":Ge,je=Pe.selectPrefixCls,ht=je===void 0?"rc-select":je,et=Pe.className,ft=Pe.current,Tt=Pe.defaultCurrent,Kt=Tt===void 0?1:Tt,fn=Pe.total,$t=fn===void 0?0:fn,Re=Pe.pageSize,xe=Pe.defaultPageSize,Lt=xe===void 0?10:xe,Fn=Pe.onChange,hn=Fn===void 0?We:Fn,vt=Pe.hideOnSinglePage,Jt=Pe.align,Yt=Pe.showPrevNextJumpers,jn=Yt===void 0?!0:Yt,yt=Pe.showQuickJumper,wn=Pe.showLessItems,Dt=Pe.showTitle,un=Dt===void 0?!0:Dt,ln=Pe.onShowSizeChange,ge=ln===void 0?We:ln,ue=Pe.locale,ee=ue===void 0?ot.Z:ue,b=Pe.style,ae=Pe.totalBoundaryShowSizeChanger,ie=ae===void 0?50:ae,he=Pe.disabled,Ye=Pe.simple,pt=Pe.showTotal,zt=Pe.showSizeChanger,ct=zt===void 0?$t>ie:zt,bt=Pe.sizeChangerRender,Et=Pe.pageSizeOptions,en=Pe.itemRender,Dn=en===void 0?Oe:en,Mt=Pe.jumpPrevIcon,tt=Pe.jumpNextIcon,on=Pe.prevIcon,jt=Pe.nextIcon,qt=we.useRef(null),wt=(0,Fe.Z)(10,{value:Re,defaultValue:Lt}),Rn=(0,Ee.Z)(wt,2),Wt=Rn[0],Cn=Rn[1],Mn=(0,Fe.Z)(1,{value:ft,defaultValue:Kt,postState:function(Qn){return Math.max(1,Math.min(Qn,Be(void 0,Wt,$t)))}}),sr=(0,Ee.Z)(Mn,2),vn=sr[0],cr=sr[1],ar=we.useState(vn),mr=(0,Ee.Z)(ar,2),$n=mr[0],Xr=mr[1];(0,we.useEffect)(function(){Xr(vn)},[vn]);var Pr=hn!==We,Er="current"in Pe,Ar=Math.max(1,vn-(wn?3:5)),Qr=Math.min(Be(void 0,Wt,$t),vn+(wn?3:5));function Vn(Nt,Qn){var Nn=Nt||we.createElement("button",{type:"button","aria-label":Qn,className:"".concat(lt,"-item-link")});return typeof Nt=="function"&&(Nn=we.createElement(Nt,(0,Ze.Z)({},Pe))),Nn}function qn(Nt){var Qn=Nt.target.value,Nn=Be(void 0,Wt,$t),Zn;return Qn===""?Zn=Qn:Number.isNaN(Number(Qn))?Zn=$n:Qn>=Nn?Zn=Nn:Zn=Number(Qn),Zn}function Yn(Nt){return be(Nt)&&Nt!==vn&&be($t)&&$t>0}var pn=$t>Wt?yt:!1;function Wn(Nt){(Nt.keyCode===Ie.Z.UP||Nt.keyCode===Ie.Z.DOWN)&&Nt.preventDefault()}function cn(Nt){var Qn=qn(Nt);switch(Qn!==$n&&Xr(Qn),Nt.keyCode){case Ie.Z.ENTER:ir(Qn);break;case Ie.Z.UP:ir(Qn-1);break;case Ie.Z.DOWN:ir(Qn+1);break;default:break}}function Sn(Nt){ir(qn(Nt))}function fr(Nt){var Qn=Be(Nt,Wt,$t),Nn=vn>Qn&&Qn!==0?Qn:vn;Cn(Nt),Xr(Nn),ge==null||ge(vn,Nt),cr(Nn),hn==null||hn(Nn,Nt)}function ir(Nt){if(Yn(Nt)&&!he){var Qn=Be(void 0,Wt,$t),Nn=Nt;return Nt>Qn?Nn=Qn:Nt<1&&(Nn=1),Nn!==$n&&Xr(Nn),cr(Nn),hn==null||hn(Nn,Wt),Nn}return vn}var lr=vn>1,xr=vn<Be(void 0,Wt,$t);function Wr(){lr&&ir(vn-1)}function Dr(){xr&&ir(vn+1)}function Fr(){ir(Ar)}function Rr(){ir(Qr)}function Xn(Nt,Qn){if(Nt.key==="Enter"||Nt.charCode===Ie.Z.ENTER||Nt.keyCode===Ie.Z.ENTER){for(var Nn=arguments.length,Zn=new Array(Nn>2?Nn-2:0),Gn=2;Gn<Nn;Gn++)Zn[Gn-2]=arguments[Gn];Qn.apply(void 0,Zn)}}function yn(Nt){Xn(Nt,Wr)}function rt(Nt){Xn(Nt,Dr)}function Sr(Nt){Xn(Nt,Fr)}function Kr(Nt){Xn(Nt,Rr)}function _t(Nt){var Qn=Dn(Nt,"prev",Vn(on,"prev page"));return we.isValidElement(Qn)?we.cloneElement(Qn,{disabled:!lr}):Qn}function St(Nt){var Qn=Dn(Nt,"next",Vn(jt,"next page"));return we.isValidElement(Qn)?we.cloneElement(Qn,{disabled:!xr}):Qn}function Jn(Nt){(Nt.type==="click"||Nt.keyCode===Ie.Z.ENTER)&&ir($n)}var Hn=null,Ot=(0,ve.Z)(Pe,{aria:!0,data:!0}),kn=pt&&we.createElement("li",{className:"".concat(lt,"-total-text")},pt($t,[$t===0?0:(vn-1)*Wt+1,vn*Wt>$t?$t:vn*Wt])),nr=null,rr=Be(void 0,Wt,$t);if(vt&&$t<=Wt)return null;var er=[],ur={rootPrefixCls:lt,onClick:ir,onKeyPress:Xn,showTitle:un,itemRender:Dn,page:-1},wr=vn-1>0?vn-1:0,It=vn+1<rr?vn+1:rr,an=yt&&yt.goButton,mt=(0,De.Z)(Ye)==="object"?Ye.readOnly:!Ye,dn=an,Tn=null;Ye&&(an&&(typeof an=="boolean"?dn=we.createElement("button",{type:"button",onClick:Jn,onKeyUp:Jn},ee.jump_to_confirm):dn=we.createElement("span",{onClick:Jn,onKeyUp:Jn},an),dn=we.createElement("li",{title:un?"".concat(ee.jump_to).concat(vn,"/").concat(rr):null,className:"".concat(lt,"-simple-pager")},dn)),Tn=we.createElement("li",{title:un?"".concat(vn,"/").concat(rr):null,className:"".concat(lt,"-simple-pager")},mt?$n:we.createElement("input",{type:"text","aria-label":ee.jump_to,value:$n,disabled:he,onKeyDown:Wn,onKeyUp:cn,onChange:cn,onBlur:Sn,size:3}),we.createElement("span",{className:"".concat(lt,"-slash")},"/"),rr));var Br=wn?1:2;if(rr<=3+Br*2){rr||er.push(we.createElement(at,(0,Me.Z)({},ur,{key:"noPager",page:1,className:"".concat(lt,"-item-disabled")})));for(var _r=1;_r<=rr;_r+=1)er.push(we.createElement(at,(0,Me.Z)({},ur,{key:_r,page:_r,active:vn===_r})))}else{var Or=wn?ee.prev_3:ee.prev_5,yr=wn?ee.next_3:ee.next_5,kr=Dn(Ar,"jump-prev",Vn(Mt,"prev page")),ii=Dn(Qr,"jump-next",Vn(tt,"next page"));jn&&(Hn=kr?we.createElement("li",{title:un?Or:null,key:"prev",onClick:Fr,tabIndex:0,onKeyDown:Sr,className:ze()("".concat(lt,"-jump-prev"),(0,re.Z)({},"".concat(lt,"-jump-prev-custom-icon"),!!Mt))},kr):null,nr=ii?we.createElement("li",{title:un?yr:null,key:"next",onClick:Rr,tabIndex:0,onKeyDown:Kr,className:ze()("".concat(lt,"-jump-next"),(0,re.Z)({},"".concat(lt,"-jump-next-custom-icon"),!!tt))},ii):null);var jr=Math.max(1,vn-Br),hi=Math.min(vn+Br,rr);vn-1<=Br&&(hi=1+Br*2),rr-vn<=Br&&(jr=rr-Br*2);for(var gi=jr;gi<=hi;gi+=1)er.push(we.createElement(at,(0,Me.Z)({},ur,{key:gi,page:gi,active:vn===gi})));if(vn-1>=Br*2&&vn!==3&&(er[0]=we.cloneElement(er[0],{className:ze()("".concat(lt,"-item-after-jump-prev"),er[0].props.className)}),er.unshift(Hn)),rr-vn>=Br*2&&vn!==rr-2){var oi=er[er.length-1];er[er.length-1]=we.cloneElement(oi,{className:ze()("".concat(lt,"-item-before-jump-next"),oi.props.className)}),er.push(nr)}jr!==1&&er.unshift(we.createElement(at,(0,Me.Z)({},ur,{key:1,page:1}))),hi!==rr&&er.push(we.createElement(at,(0,Me.Z)({},ur,{key:rr,page:rr})))}var vi=_t(wr);if(vi){var Ne=!lr||!rr;vi=we.createElement("li",{title:un?ee.prev_page:null,onClick:Wr,tabIndex:Ne?null:0,onKeyDown:yn,className:ze()("".concat(lt,"-prev"),(0,re.Z)({},"".concat(lt,"-disabled"),Ne)),"aria-disabled":Ne},vi)}var _e=St(It);if(_e){var it,gt;Ye?(it=!xr,gt=lr?0:null):(it=!xr||!rr,gt=it?null:0),_e=we.createElement("li",{title:un?ee.next_page:null,onClick:Dr,tabIndex:gt,onKeyDown:rt,className:ze()("".concat(lt,"-next"),(0,re.Z)({},"".concat(lt,"-disabled"),it)),"aria-disabled":it},_e)}var Vt=ze()(lt,et,(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(lt,"-start"),Jt==="start"),"".concat(lt,"-center"),Jt==="center"),"".concat(lt,"-end"),Jt==="end"),"".concat(lt,"-simple"),Ye),"".concat(lt,"-disabled"),he));return we.createElement("ul",(0,Me.Z)({className:Vt,style:b,ref:qt},Ot),kn,vi,Ye?Tn:er,_e,we.createElement(He,{locale:ee,rootPrefixCls:lt,disabled:he,selectPrefixCls:ht,changeSize:fr,pageSize:Wt,pageSizeOptions:Et,quickGo:pn?ir:null,goButton:dn,showSizeChanger:ct,sizeChangerRender:bt}))},ke=Ue},25930:function(xn,dt,fe){"use strict";fe.d(dt,{Cd:function(){return lt}});var re=fe(32855),Me=fe(27247),De=fe(43079),Ze=fe(59301),Ee=fe(92310),de=fe.n(Ee),ze={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Fe=function(){var et=(0,Ze.useRef)([]),ft=(0,Ze.useRef)(null);return(0,Ze.useEffect)(function(){var Tt=Date.now(),Kt=!1;et.current.forEach(function(fn){if(fn){Kt=!0;var $t=fn.style;$t.transitionDuration=".3s, .3s, .3s, .06s",ft.current&&Tt-ft.current<100&&($t.transitionDuration="0s, 0s")}}),Kt&&(ft.current=Date.now())}),et.current},Ie=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ve=function(et){var ft=(0,Me.Z)((0,Me.Z)({},ze),et),Tt=ft.className,Kt=ft.percent,fn=ft.prefixCls,$t=ft.strokeColor,Re=ft.strokeLinecap,xe=ft.strokeWidth,Lt=ft.style,Fn=ft.trailColor,hn=ft.trailWidth,vt=ft.transition,Jt=(0,De.Z)(ft,Ie);delete Jt.gapPosition;var Yt=Array.isArray(Kt)?Kt:[Kt],jn=Array.isArray($t)?$t:[$t],yt=Fe(),wn=xe/2,Dt=100-xe/2,un="M ".concat(Re==="round"?wn:0,",").concat(wn,`
L `).concat(Re==="round"?Dt:100,",").concat(wn),ln="0 0 100 ".concat(xe),ge=0;return Ze.createElement("svg",(0,re.Z)({className:de()("".concat(fn,"-line"),Tt),viewBox:ln,preserveAspectRatio:"none",style:Lt},Jt),Ze.createElement("path",{className:"".concat(fn,"-line-trail"),d:un,strokeLinecap:Re,stroke:Fn,strokeWidth:hn||xe,fillOpacity:"0"}),Yt.map(function(ue,ee){var b=1;switch(Re){case"round":b=1-xe/100;break;case"square":b=1-xe/2/100;break;default:b=1;break}var ae={strokeDasharray:"".concat(ue*b,"px, 100px"),strokeDashoffset:"-".concat(ge,"px"),transition:vt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ie=jn[ee]||jn[jn.length-1];return ge+=ue,Ze.createElement("path",{key:ee,className:"".concat(fn,"-line-path"),d:un,strokeLinecap:Re,stroke:ie,strokeWidth:xe,fillOpacity:"0",ref:function(Ye){yt[ee]=Ye},style:ae})}))},ut=ve,we=fe(34666),ot=fe(11913),Xe=fe(47273),Je=0,He=(0,Xe.Z)();function Te(){var ht;return He?(ht=Je,Je+=1):ht="TEST_OR_SSR",ht}var at=function(ht){var et=Ze.useState(),ft=(0,ot.Z)(et,2),Tt=ft[0],Kt=ft[1];return Ze.useEffect(function(){Kt("rc_progress_".concat(Te()))},[]),ht||Tt},Oe=function(et){var ft=et.bg,Tt=et.children;return Ze.createElement("div",{style:{width:"100%",height:"100%",background:ft}},Tt)};function We(ht,et){return Object.keys(ht).map(function(ft){var Tt=parseFloat(ft),Kt="".concat(Math.floor(Tt*et),"%");return"".concat(ht[ft]," ").concat(Kt)})}var be=Ze.forwardRef(function(ht,et){var ft=ht.prefixCls,Tt=ht.color,Kt=ht.gradientId,fn=ht.radius,$t=ht.style,Re=ht.ptg,xe=ht.strokeLinecap,Lt=ht.strokeWidth,Fn=ht.size,hn=ht.gapDegree,vt=Tt&&(0,we.Z)(Tt)==="object",Jt=vt?"#FFF":void 0,Yt=Fn/2,jn=Ze.createElement("circle",{className:"".concat(ft,"-circle-path"),r:fn,cx:Yt,cy:Yt,stroke:Jt,strokeLinecap:xe,strokeWidth:Lt,opacity:Re===0?0:1,style:$t,ref:et});if(!vt)return jn;var yt="".concat(Kt,"-conic"),wn=hn?"".concat(180+hn/2,"deg"):"0deg",Dt=We(Tt,(360-hn)/360),un=We(Tt,1),ln="conic-gradient(from ".concat(wn,", ").concat(Dt.join(", "),")"),ge="linear-gradient(to ".concat(hn?"bottom":"top",", ").concat(un.join(", "),")");return Ze.createElement(Ze.Fragment,null,Ze.createElement("mask",{id:yt},jn),Ze.createElement("foreignObject",{x:0,y:0,width:Fn,height:Fn,mask:"url(#".concat(yt,")")},Ze.createElement(Oe,{bg:ge},Ze.createElement(Oe,{bg:ln}))))}),Be=be,Ue=100,ke=function(et,ft,Tt,Kt,fn,$t,Re,xe,Lt,Fn){var hn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,vt=Tt/100*360*((360-$t)/360),Jt=$t===0?0:{bottom:0,top:180,left:90,right:-90}[Re],Yt=(100-Kt)/100*ft;Lt==="round"&&Kt!==100&&(Yt+=Fn/2,Yt>=ft&&(Yt=ft-.01));var jn=Ue/2;return{stroke:typeof xe=="string"?xe:void 0,strokeDasharray:"".concat(ft,"px ").concat(et),strokeDashoffset:Yt+hn,transform:"rotate(".concat(fn+vt+Jt,"deg)"),transformOrigin:"".concat(jn,"px ").concat(jn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},qe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Pe(ht){var et=ht!=null?ht:[];return Array.isArray(et)?et:[et]}var Ge=function(et){var ft=(0,Me.Z)((0,Me.Z)({},ze),et),Tt=ft.id,Kt=ft.prefixCls,fn=ft.steps,$t=ft.strokeWidth,Re=ft.trailWidth,xe=ft.gapDegree,Lt=xe===void 0?0:xe,Fn=ft.gapPosition,hn=ft.trailColor,vt=ft.strokeLinecap,Jt=ft.style,Yt=ft.className,jn=ft.strokeColor,yt=ft.percent,wn=(0,De.Z)(ft,qe),Dt=Ue/2,un=at(Tt),ln="".concat(un,"-gradient"),ge=Dt-$t/2,ue=Math.PI*2*ge,ee=Lt>0?90+Lt/2:-90,b=ue*((360-Lt)/360),ae=(0,we.Z)(fn)==="object"?fn:{count:fn,gap:2},ie=ae.count,he=ae.gap,Ye=Pe(yt),pt=Pe(jn),zt=pt.find(function(tt){return tt&&(0,we.Z)(tt)==="object"}),ct=zt&&(0,we.Z)(zt)==="object",bt=ct?"butt":vt,Et=ke(ue,b,0,100,ee,Lt,Fn,hn,bt,$t),en=Fe(),Dn=function(){var on=0;return Ye.map(function(jt,qt){var wt=pt[qt]||pt[pt.length-1],Rn=ke(ue,b,on,jt,ee,Lt,Fn,wt,bt,$t);return on+=jt,Ze.createElement(Be,{key:qt,color:wt,ptg:jt,radius:ge,prefixCls:Kt,gradientId:ln,style:Rn,strokeLinecap:bt,strokeWidth:$t,gapDegree:Lt,ref:function(Cn){en[qt]=Cn},size:Ue})}).reverse()},Mt=function(){var on=Math.round(ie*(Ye[0]/100)),jt=100/ie,qt=0;return new Array(ie).fill(null).map(function(wt,Rn){var Wt=Rn<=on-1?pt[0]:hn,Cn=Wt&&(0,we.Z)(Wt)==="object"?"url(#".concat(ln,")"):void 0,Mn=ke(ue,b,qt,jt,ee,Lt,Fn,Wt,"butt",$t,he);return qt+=(b-Mn.strokeDashoffset+he)*100/b,Ze.createElement("circle",{key:Rn,className:"".concat(Kt,"-circle-path"),r:ge,cx:Dt,cy:Dt,stroke:Cn,strokeWidth:$t,opacity:1,style:Mn,ref:function(vn){en[Rn]=vn}})})};return Ze.createElement("svg",(0,re.Z)({className:de()("".concat(Kt,"-circle"),Yt),viewBox:"0 0 ".concat(Ue," ").concat(Ue),style:Jt,id:Tt,role:"presentation"},wn),!ie&&Ze.createElement("circle",{className:"".concat(Kt,"-circle-trail"),r:ge,cx:Dt,cy:Dt,stroke:hn,strokeLinecap:bt,strokeWidth:Re||$t,style:Et}),ie?Mt():Dn())},lt=Ge,je={Line:ut,Circle:lt}},738:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return We}});var re=fe(32855),Me=fe(74430),De=fe(11913),Ze=fe(43079),Ee=fe(92310),de=fe.n(Ee),ze=fe(18929),Fe=fe(10228),Ie=fe(26112),ve=fe(59301);function ut(be,Be){var Ue=be.disabled,ke=be.prefixCls,qe=be.character,Pe=be.characterRender,Ge=be.index,lt=be.count,je=be.value,ht=be.allowHalf,et=be.focused,ft=be.onHover,Tt=be.onClick,Kt=function(vt){ft(vt,Ge)},fn=function(vt){Tt(vt,Ge)},$t=function(vt){vt.keyCode===Fe.Z.ENTER&&Tt(vt,Ge)},Re=Ge+1,xe=new Set([ke]);je===0&&Ge===0&&et?xe.add("".concat(ke,"-focused")):ht&&je+.5>=Re&&je<Re?(xe.add("".concat(ke,"-half")),xe.add("".concat(ke,"-active")),et&&xe.add("".concat(ke,"-focused"))):(Re<=je?xe.add("".concat(ke,"-full")):xe.add("".concat(ke,"-zero")),Re===je&&et&&xe.add("".concat(ke,"-focused")));var Lt=typeof qe=="function"?qe(be):qe,Fn=ve.createElement("li",{className:de()(Array.from(xe)),ref:Be},ve.createElement("div",{onClick:Ue?null:fn,onKeyDown:Ue?null:$t,onMouseMove:Ue?null:Kt,role:"radio","aria-checked":je>Ge?"true":"false","aria-posinset":Ge+1,"aria-setsize":lt,tabIndex:Ue?-1:0},ve.createElement("div",{className:"".concat(ke,"-first")},Lt),ve.createElement("div",{className:"".concat(ke,"-second")},Lt)));return Pe&&(Fn=Pe(Fn,be)),Fn}var we=ve.forwardRef(ut);function ot(){var be=ve.useRef({});function Be(ke){return be.current[ke]}function Ue(ke){return function(qe){be.current[ke]=qe}}return[Be,Ue]}function Xe(be){var Be=be.pageXOffset,Ue="scrollLeft";if(typeof Be!="number"){var ke=be.document;Be=ke.documentElement[Ue],typeof Be!="number"&&(Be=ke.body[Ue])}return Be}function Je(be){var Be,Ue,ke=be.ownerDocument,qe=ke.body,Pe=ke&&ke.documentElement,Ge=be.getBoundingClientRect();return Be=Ge.left,Ue=Ge.top,Be-=Pe.clientLeft||qe.clientLeft||0,Ue-=Pe.clientTop||qe.clientTop||0,{left:Be,top:Ue}}function He(be){var Be=Je(be),Ue=be.ownerDocument,ke=Ue.defaultView||Ue.parentWindow;return Be.left+=Xe(ke),Be.left}var Te=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function at(be,Be){var Ue=be.prefixCls,ke=Ue===void 0?"rc-rate":Ue,qe=be.className,Pe=be.defaultValue,Ge=be.value,lt=be.count,je=lt===void 0?5:lt,ht=be.allowHalf,et=ht===void 0?!1:ht,ft=be.allowClear,Tt=ft===void 0?!0:ft,Kt=be.keyboard,fn=Kt===void 0?!0:Kt,$t=be.character,Re=$t===void 0?"\u2605":$t,xe=be.characterRender,Lt=be.disabled,Fn=be.direction,hn=Fn===void 0?"ltr":Fn,vt=be.tabIndex,Jt=vt===void 0?0:vt,Yt=be.autoFocus,jn=be.onHoverChange,yt=be.onChange,wn=be.onFocus,Dt=be.onBlur,un=be.onKeyDown,ln=be.onMouseLeave,ge=(0,Ze.Z)(be,Te),ue=ot(),ee=(0,De.Z)(ue,2),b=ee[0],ae=ee[1],ie=ve.useRef(null),he=function(){if(!Lt){var Ar;(Ar=ie.current)===null||Ar===void 0||Ar.focus()}};ve.useImperativeHandle(Be,function(){return{focus:he,blur:function(){if(!Lt){var Ar;(Ar=ie.current)===null||Ar===void 0||Ar.blur()}}}});var Ye=(0,ze.Z)(Pe||0,{value:Ge}),pt=(0,De.Z)(Ye,2),zt=pt[0],ct=pt[1],bt=(0,ze.Z)(null),Et=(0,De.Z)(bt,2),en=Et[0],Dn=Et[1],Mt=function(Ar,Qr){var Vn=hn==="rtl",qn=Ar+1;if(et){var Yn=b(Ar),pn=He(Yn),Wn=Yn.clientWidth;(Vn&&Qr-pn>Wn/2||!Vn&&Qr-pn<Wn/2)&&(qn-=.5)}return qn},tt=function(Ar){ct(Ar),yt==null||yt(Ar)},on=ve.useState(!1),jt=(0,De.Z)(on,2),qt=jt[0],wt=jt[1],Rn=function(){wt(!0),wn==null||wn()},Wt=function(){wt(!1),Dt==null||Dt()},Cn=ve.useState(null),Mn=(0,De.Z)(Cn,2),sr=Mn[0],vn=Mn[1],cr=function(Ar,Qr){var Vn=Mt(Qr,Ar.pageX);Vn!==en&&(vn(Vn),Dn(null)),jn==null||jn(Vn)},ar=function(Ar){Lt||(vn(null),Dn(null),jn==null||jn(void 0)),Ar&&(ln==null||ln(Ar))},mr=function(Ar,Qr){var Vn=Mt(Qr,Ar.pageX),qn=!1;Tt&&(qn=Vn===zt),ar(),tt(qn?0:Vn),Dn(qn?Vn:null)},$n=function(Ar){var Qr=Ar.keyCode,Vn=hn==="rtl",qn=et?.5:1;fn&&(Qr===Fe.Z.RIGHT&&zt<je&&!Vn?(tt(zt+qn),Ar.preventDefault()):Qr===Fe.Z.LEFT&&zt>0&&!Vn||Qr===Fe.Z.RIGHT&&zt>0&&Vn?(tt(zt-qn),Ar.preventDefault()):Qr===Fe.Z.LEFT&&zt<je&&Vn&&(tt(zt+qn),Ar.preventDefault())),un==null||un(Ar)};ve.useEffect(function(){Yt&&!Lt&&he()},[]);var Xr=new Array(je).fill(0).map(function(Er,Ar){return ve.createElement(we,{ref:ae(Ar),index:Ar,count:je,disabled:Lt,prefixCls:"".concat(ke,"-star"),allowHalf:et,value:sr===null?zt:sr,onClick:mr,onHover:cr,key:Er||Ar,character:Re,characterRender:xe,focused:qt})}),Pr=de()(ke,qe,(0,Me.Z)((0,Me.Z)({},"".concat(ke,"-disabled"),Lt),"".concat(ke,"-rtl"),hn==="rtl"));return ve.createElement("ul",(0,re.Z)({className:Pr,onMouseLeave:ar,tabIndex:Lt?-1:Jt,onFocus:Lt?null:Rn,onBlur:Lt?null:Wt,onKeyDown:Lt?null:$n,ref:ie},(0,Ie.Z)(ge,{aria:!0,data:!0,attr:!0})),Xr)}var Oe=ve.forwardRef(at),We=Oe},6551:function(xn,dt,fe){"use strict";fe.d(dt,{ZP:function(){return ze}});var re=fe(11913),Me=fe(59301),De=fe(47273),Ze=0,Ee=(0,De.Z)();function de(){var Fe;return Ee?(Fe=Ze,Ze+=1):Fe="TEST_OR_SSR",Fe}function ze(Fe){var Ie=Me.useState(),ve=(0,re.Z)(Ie,2),ut=ve[0],we=ve[1];return Me.useEffect(function(){we("rc_select_".concat(de()))},[]),Fe||ut}},37463:function(xn,dt,fe){"use strict";fe.d(dt,{Ac:function(){return wt},Xo:function(){return Wt},Wx:function(){return Mn},ZP:function(){return Kr},lk:function(){return We}});var re=fe(32855),Me=fe(3300),De=fe(74430),Ze=fe(27247),Ee=fe(11913),de=fe(43079),ze=fe(34666),Fe=fe(18929),Ie=fe(48736),ve=fe(59301),ut=fe(92310),we=fe.n(ut),ot=fe(34280),Xe=fe(49658),Je=fe(8654),He=function(St){var Jn=St.className,Hn=St.customizeIcon,Ot=St.customizeIconProps,kn=St.children,nr=St.onMouseDown,rr=St.onClick,er=typeof Hn=="function"?Hn(Ot):Hn;return ve.createElement("span",{className:Jn,onMouseDown:function(wr){wr.preventDefault(),nr==null||nr(wr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:rr,"aria-hidden":!0},er!==void 0?er:ve.createElement("span",{className:we()(Jn.split(/\s+/).map(function(ur){return"".concat(ur,"-icon")}))},kn))},Te=He,at=function(St,Jn,Hn,Ot,kn){var nr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,rr=arguments.length>6?arguments[6]:void 0,er=arguments.length>7?arguments[7]:void 0,ur=ve.useMemo(function(){if((0,ze.Z)(Ot)==="object")return Ot.clearIcon;if(kn)return kn},[Ot,kn]),wr=ve.useMemo(function(){return!!(!nr&&Ot&&(Hn.length||rr)&&!(er==="combobox"&&rr===""))},[Ot,nr,Hn.length,rr,er]);return{allowClear:wr,clearIcon:ve.createElement(Te,{className:"".concat(St,"-clear"),onMouseDown:Jn,customizeIcon:ur},"\xD7")}},Oe=ve.createContext(null);function We(){return ve.useContext(Oe)}function be(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,St=ve.useState(!1),Jn=(0,Ee.Z)(St,2),Hn=Jn[0],Ot=Jn[1],kn=ve.useRef(null),nr=function(){window.clearTimeout(kn.current)};ve.useEffect(function(){return nr},[]);var rr=function(ur,wr){nr(),kn.current=window.setTimeout(function(){Ot(ur),wr&&wr()},_t)};return[Hn,rr,nr]}function Be(){var _t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,St=ve.useRef(null),Jn=ve.useRef(null);ve.useEffect(function(){return function(){window.clearTimeout(Jn.current)}},[]);function Hn(Ot){(Ot||St.current===null)&&(St.current=Ot),window.clearTimeout(Jn.current),Jn.current=window.setTimeout(function(){St.current=null},_t)}return[function(){return St.current},Hn]}function Ue(_t,St,Jn,Hn){var Ot=ve.useRef(null);Ot.current={open:St,triggerOpen:Jn,customizedTrigger:Hn},ve.useEffect(function(){function kn(nr){var rr;if(!((rr=Ot.current)!==null&&rr!==void 0&&rr.customizedTrigger)){var er=nr.target;er.shadowRoot&&nr.composed&&(er=nr.composedPath()[0]||er),Ot.current.open&&_t().filter(function(ur){return ur}).every(function(ur){return!ur.contains(er)&&ur!==er})&&Ot.current.triggerOpen(!1)}}return window.addEventListener("mousedown",kn),function(){return window.removeEventListener("mousedown",kn)}},[])}var ke=fe(10228);function qe(_t){return _t&&![ke.Z.ESC,ke.Z.SHIFT,ke.Z.BACKSPACE,ke.Z.TAB,ke.Z.WIN_KEY,ke.Z.ALT,ke.Z.META,ke.Z.WIN_KEY_RIGHT,ke.Z.CTRL,ke.Z.SEMICOLON,ke.Z.EQUALS,ke.Z.CAPS_LOCK,ke.Z.CONTEXT_MENU,ke.Z.F1,ke.Z.F2,ke.Z.F3,ke.Z.F4,ke.Z.F5,ke.Z.F6,ke.Z.F7,ke.Z.F8,ke.Z.F9,ke.Z.F10,ke.Z.F11,ke.Z.F12].includes(_t)}var Pe=fe(26112),Ge=fe(11780);function lt(_t,St,Jn){var Hn=(0,Ze.Z)((0,Ze.Z)({},_t),Jn?St:{});return Object.keys(St).forEach(function(Ot){var kn=St[Ot];typeof kn=="function"&&(Hn[Ot]=function(){for(var nr,rr=arguments.length,er=new Array(rr),ur=0;ur<rr;ur++)er[ur]=arguments[ur];return kn.apply(void 0,er),(nr=_t[Ot])===null||nr===void 0?void 0:nr.call.apply(nr,[_t].concat(er))})}),Hn}var je=lt,ht=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],et=function(St,Jn){var Hn=St.prefixCls,Ot=St.id,kn=St.inputElement,nr=St.autoFocus,rr=St.autoComplete,er=St.editable,ur=St.activeDescendantId,wr=St.value,It=St.open,an=St.attrs,mt=(0,de.Z)(St,ht),dn=kn||ve.createElement("input",null),Tn=dn,Br=Tn.ref,_r=Tn.props;return(0,Ie.Kp)(!("maxLength"in dn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),dn=ve.cloneElement(dn,(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({type:"search"},je(mt,_r,!0)),{},{id:Ot,ref:(0,Je.sQ)(Jn,Br),autoComplete:rr||"off",autoFocus:nr,className:we()("".concat(Hn,"-selection-search-input"),_r==null?void 0:_r.className),role:"combobox","aria-expanded":It||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ot,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ot,"_list"),"aria-activedescendant":It?ur:void 0},an),{},{value:er?wr:"",readOnly:!er,unselectable:er?null:"on",style:(0,Ze.Z)((0,Ze.Z)({},_r.style),{},{opacity:er?null:0})})),dn},ft=ve.forwardRef(et),Tt=ft;function Kt(_t){return Array.isArray(_t)?_t:_t!==void 0?[_t]:[]}var fn=typeof window!="undefined"&&window.document&&window.document.documentElement,$t=fn;function Re(_t){return _t!=null}function xe(_t){return!_t&&_t!==0}function Lt(_t){return["string","number"].includes((0,ze.Z)(_t))}function Fn(_t){var St=void 0;return _t&&(Lt(_t.title)?St=_t.title.toString():Lt(_t.label)&&(St=_t.label.toString())),St}function hn(_t,St){$t?ve.useLayoutEffect(_t,St):ve.useEffect(_t,St)}function vt(_t){var St;return(St=_t.key)!==null&&St!==void 0?St:_t.value}var Jt=function(St){St.preventDefault(),St.stopPropagation()},Yt=function(St){var Jn=St.id,Hn=St.prefixCls,Ot=St.values,kn=St.open,nr=St.searchValue,rr=St.autoClearSearchValue,er=St.inputRef,ur=St.placeholder,wr=St.disabled,It=St.mode,an=St.showSearch,mt=St.autoFocus,dn=St.autoComplete,Tn=St.activeDescendantId,Br=St.tabIndex,_r=St.removeIcon,Or=St.maxTagCount,yr=St.maxTagTextLength,kr=St.maxTagPlaceholder,ii=kr===void 0?function(sn){return"+ ".concat(sn.length," ...")}:kr,jr=St.tagRender,hi=St.onToggleOpen,gi=St.onRemove,oi=St.onInputChange,vi=St.onInputPaste,Ne=St.onInputKeyDown,_e=St.onInputMouseDown,it=St.onInputCompositionStart,gt=St.onInputCompositionEnd,Vt=St.onInputBlur,Nt=ve.useRef(null),Qn=(0,ve.useState)(0),Nn=(0,Ee.Z)(Qn,2),Zn=Nn[0],Gn=Nn[1],Kn=(0,ve.useState)(!1),zn=(0,Ee.Z)(Kn,2),st=zn[0],Rt=zn[1],kt="".concat(Hn,"-selection"),Ht=kn||It==="multiple"&&rr===!1||It==="tags"?nr:"",Zt=It==="tags"||It==="multiple"&&rr===!1||an&&(kn||st);hn(function(){Gn(Nt.current.scrollWidth)},[Ht]);var gn=function(Gt,nn,An,Bt,rn){return ve.createElement("span",{title:Fn(Gt),className:we()("".concat(kt,"-item"),(0,De.Z)({},"".concat(kt,"-item-disabled"),An))},ve.createElement("span",{className:"".concat(kt,"-item-content")},nn),Bt&&ve.createElement(Te,{className:"".concat(kt,"-item-remove"),onMouseDown:Jt,onClick:rn,customizeIcon:_r},"\xD7"))},On=function(Gt,nn,An,Bt,rn,Ln){var dr=function(br){Jt(br),hi(!kn)};return ve.createElement("span",{onMouseDown:dr},jr({label:nn,value:Gt,disabled:An,closable:Bt,onClose:rn,isMaxTag:!!Ln}))},$e=function(Gt){var nn=Gt.disabled,An=Gt.label,Bt=Gt.value,rn=!wr&&!nn,Ln=An;if(typeof yr=="number"&&(typeof An=="string"||typeof An=="number")){var dr=String(Ln);dr.length>yr&&(Ln="".concat(dr.slice(0,yr),"..."))}var tr=function(hr){hr&&hr.stopPropagation(),gi(Gt)};return typeof jr=="function"?On(Bt,Ln,nn,rn,tr):gn(Gt,Ln,nn,rn,tr)},mn=function(Gt){if(!Ot.length)return null;var nn=typeof ii=="function"?ii(Gt):ii;return typeof jr=="function"?On(void 0,nn,!1,!1,void 0,!0):gn({title:nn},nn,!1)},Ut=ve.createElement("div",{className:"".concat(kt,"-search"),style:{width:Zn},onFocus:function(){Rt(!0)},onBlur:function(){Rt(!1)}},ve.createElement(Tt,{ref:er,open:kn,prefixCls:Hn,id:Jn,inputElement:null,disabled:wr,autoFocus:mt,autoComplete:dn,editable:Zt,activeDescendantId:Tn,value:Ht,onKeyDown:Ne,onMouseDown:_e,onChange:oi,onPaste:vi,onCompositionStart:it,onCompositionEnd:gt,onBlur:Vt,tabIndex:Br,attrs:(0,Pe.Z)(St,!0)}),ve.createElement("span",{ref:Nt,className:"".concat(kt,"-search-mirror"),"aria-hidden":!0},Ht,"\xA0")),tn=ve.createElement(Ge.Z,{prefixCls:"".concat(kt,"-overflow"),data:Ot,renderItem:$e,renderRest:mn,suffix:Ut,itemKey:vt,maxCount:Or});return ve.createElement("span",{className:"".concat(kt,"-wrap")},tn,!Ot.length&&!Ht&&ve.createElement("span",{className:"".concat(kt,"-placeholder")},ur))},jn=Yt,yt=function(St){var Jn=St.inputElement,Hn=St.prefixCls,Ot=St.id,kn=St.inputRef,nr=St.disabled,rr=St.autoFocus,er=St.autoComplete,ur=St.activeDescendantId,wr=St.mode,It=St.open,an=St.values,mt=St.placeholder,dn=St.tabIndex,Tn=St.showSearch,Br=St.searchValue,_r=St.activeValue,Or=St.maxLength,yr=St.onInputKeyDown,kr=St.onInputMouseDown,ii=St.onInputChange,jr=St.onInputPaste,hi=St.onInputCompositionStart,gi=St.onInputCompositionEnd,oi=St.onInputBlur,vi=St.title,Ne=ve.useState(!1),_e=(0,Ee.Z)(Ne,2),it=_e[0],gt=_e[1],Vt=wr==="combobox",Nt=Vt||Tn,Qn=an[0],Nn=Br||"";Vt&&_r&&!it&&(Nn=_r),ve.useEffect(function(){Vt&&gt(!1)},[Vt,_r]);var Zn=wr!=="combobox"&&!It&&!Tn?!1:!!Nn,Gn=vi===void 0?Fn(Qn):vi,Kn=ve.useMemo(function(){return Qn?null:ve.createElement("span",{className:"".concat(Hn,"-selection-placeholder"),style:Zn?{visibility:"hidden"}:void 0},mt)},[Qn,Zn,mt,Hn]);return ve.createElement("span",{className:"".concat(Hn,"-selection-wrap")},ve.createElement("span",{className:"".concat(Hn,"-selection-search")},ve.createElement(Tt,{ref:kn,prefixCls:Hn,id:Ot,open:It,inputElement:Jn,disabled:nr,autoFocus:rr,autoComplete:er,editable:Nt,activeDescendantId:ur,value:Nn,onKeyDown:yr,onMouseDown:kr,onChange:function(st){gt(!0),ii(st)},onPaste:jr,onCompositionStart:hi,onCompositionEnd:gi,onBlur:oi,tabIndex:dn,attrs:(0,Pe.Z)(St,!0),maxLength:Vt?Or:void 0})),!Vt&&Qn?ve.createElement("span",{className:"".concat(Hn,"-selection-item"),title:Gn,style:Zn?{visibility:"hidden"}:void 0},Qn.label):null,Kn)},wn=yt,Dt=function(St,Jn){var Hn=(0,ve.useRef)(null),Ot=(0,ve.useRef)(!1),kn=St.prefixCls,nr=St.open,rr=St.mode,er=St.showSearch,ur=St.tokenWithEnter,wr=St.disabled,It=St.prefix,an=St.autoClearSearchValue,mt=St.onSearch,dn=St.onSearchSubmit,Tn=St.onToggleOpen,Br=St.onInputKeyDown,_r=St.onInputBlur,Or=St.domRef;ve.useImperativeHandle(Jn,function(){return{focus:function(Gn){Hn.current.focus(Gn)},blur:function(){Hn.current.blur()}}});var yr=Be(0),kr=(0,Ee.Z)(yr,2),ii=kr[0],jr=kr[1],hi=function(Gn){var Kn=Gn.which,zn=Hn.current instanceof HTMLTextAreaElement;!zn&&nr&&(Kn===ke.Z.UP||Kn===ke.Z.DOWN)&&Gn.preventDefault(),Br&&Br(Gn),Kn===ke.Z.ENTER&&rr==="tags"&&!Ot.current&&!nr&&(dn==null||dn(Gn.target.value)),!(zn&&!nr&&~[ke.Z.UP,ke.Z.DOWN,ke.Z.LEFT,ke.Z.RIGHT].indexOf(Kn))&&qe(Kn)&&Tn(!0)},gi=function(){jr(!0)},oi=(0,ve.useRef)(null),vi=function(Gn){mt(Gn,!0,Ot.current)!==!1&&Tn(!0)},Ne=function(){Ot.current=!0},_e=function(Gn){Ot.current=!1,rr!=="combobox"&&vi(Gn.target.value)},it=function(Gn){var Kn=Gn.target.value;if(ur&&oi.current&&/[\r\n]/.test(oi.current)){var zn=oi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Kn=Kn.replace(zn,oi.current)}oi.current=null,vi(Kn)},gt=function(Gn){var Kn=Gn.clipboardData,zn=Kn==null?void 0:Kn.getData("text");oi.current=zn||""},Vt=function(Gn){var Kn=Gn.target;if(Kn!==Hn.current){var zn=document.body.style.msTouchAction!==void 0;zn?setTimeout(function(){Hn.current.focus()}):Hn.current.focus()}},Nt=function(Gn){var Kn=ii();Gn.target!==Hn.current&&!Kn&&!(rr==="combobox"&&wr)&&Gn.preventDefault(),(rr!=="combobox"&&(!er||!Kn)||!nr)&&(nr&&an!==!1&&mt("",!0,!1),Tn())},Qn={inputRef:Hn,onInputKeyDown:hi,onInputMouseDown:gi,onInputChange:it,onInputPaste:gt,onInputCompositionStart:Ne,onInputCompositionEnd:_e,onInputBlur:_r},Nn=rr==="multiple"||rr==="tags"?ve.createElement(jn,(0,re.Z)({},St,Qn)):ve.createElement(wn,(0,re.Z)({},St,Qn));return ve.createElement("div",{ref:Or,className:"".concat(kn,"-selector"),onClick:Vt,onMouseDown:Nt},It&&ve.createElement("div",{className:"".concat(kn,"-prefix")},It),Nn)},un=ve.forwardRef(Dt),ln=un,ge=fe(65030),ue=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(St){var Jn=St===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Jn,adjustY:1},htmlRegion:"scroll"}}},b=function(St,Jn){var Hn=St.prefixCls,Ot=St.disabled,kn=St.visible,nr=St.children,rr=St.popupElement,er=St.animation,ur=St.transitionName,wr=St.dropdownStyle,It=St.dropdownClassName,an=St.direction,mt=an===void 0?"ltr":an,dn=St.placement,Tn=St.builtinPlacements,Br=St.dropdownMatchSelectWidth,_r=St.dropdownRender,Or=St.dropdownAlign,yr=St.getPopupContainer,kr=St.empty,ii=St.getTriggerDOMNode,jr=St.onPopupVisibleChange,hi=St.onPopupMouseEnter,gi=(0,de.Z)(St,ue),oi="".concat(Hn,"-dropdown"),vi=rr;_r&&(vi=_r(rr));var Ne=ve.useMemo(function(){return Tn||ee(Br)},[Tn,Br]),_e=er?"".concat(oi,"-").concat(er):ur,it=typeof Br=="number",gt=ve.useMemo(function(){return it?null:Br===!1?"minWidth":"width"},[Br,it]),Vt=wr;it&&(Vt=(0,Ze.Z)((0,Ze.Z)({},Vt),{},{width:Br}));var Nt=ve.useRef(null);return ve.useImperativeHandle(Jn,function(){return{getPopupElement:function(){var Nn;return(Nn=Nt.current)===null||Nn===void 0?void 0:Nn.popupElement}}}),ve.createElement(ge.Z,(0,re.Z)({},gi,{showAction:jr?["click"]:[],hideAction:jr?["click"]:[],popupPlacement:dn||(mt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ne,prefixCls:oi,popupTransitionName:_e,popup:ve.createElement("div",{onMouseEnter:hi},vi),ref:Nt,stretch:gt,popupAlign:Or,popupVisible:kn,getPopupContainer:yr,popupClassName:we()(It,(0,De.Z)({},"".concat(oi,"-empty"),kr)),popupStyle:Vt,getTriggerDOMNode:ii,onPopupVisibleChange:jr}),nr)},ae=ve.forwardRef(b),ie=ae,he=fe(40954);function Ye(_t,St){var Jn=_t.key,Hn;return"value"in _t&&(Hn=_t.value),Jn!=null?Jn:Hn!==void 0?Hn:"rc-index-key-".concat(St)}function pt(_t){return typeof _t!="undefined"&&!Number.isNaN(_t)}function zt(_t,St){var Jn=_t||{},Hn=Jn.label,Ot=Jn.value,kn=Jn.options,nr=Jn.groupLabel,rr=Hn||(St?"children":"label");return{label:rr,value:Ot||"value",options:kn||"options",groupLabel:nr||rr}}function ct(_t){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Jn=St.fieldNames,Hn=St.childrenAsData,Ot=[],kn=zt(Jn,!1),nr=kn.label,rr=kn.value,er=kn.options,ur=kn.groupLabel;function wr(It,an){Array.isArray(It)&&It.forEach(function(mt){if(an||!(er in mt)){var dn=mt[rr];Ot.push({key:Ye(mt,Ot.length),groupOption:an,data:mt,label:mt[nr],value:dn})}else{var Tn=mt[ur];Tn===void 0&&Hn&&(Tn=mt.label),Ot.push({key:Ye(mt,Ot.length),group:!0,data:mt,label:Tn}),wr(mt[er],!0)}})}return wr(_t,!1),Ot}function bt(_t){var St=(0,Ze.Z)({},_t);return"props"in St||Object.defineProperty(St,"props",{get:function(){return(0,Ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),St}}),St}var Et=function(St,Jn,Hn){if(!Jn||!Jn.length)return null;var Ot=!1,kn=function rr(er,ur){var wr=(0,he.Z)(ur),It=wr[0],an=wr.slice(1);if(!It)return[er];var mt=er.split(It);return Ot=Ot||mt.length>1,mt.reduce(function(dn,Tn){return[].concat((0,Me.Z)(dn),(0,Me.Z)(rr(Tn,an)))},[]).filter(Boolean)},nr=kn(St,Jn);return Ot?typeof Hn!="undefined"?nr.slice(0,Hn):nr:null},en=ve.createContext(null),Dn=en;function Mt(_t){var St=_t.visible,Jn=_t.values;if(!St)return null;var Hn=50;return ve.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Jn.slice(0,Hn).map(function(Ot){var kn=Ot.label,nr=Ot.value;return["number","string"].includes((0,ze.Z)(kn))?kn:nr}).join(", ")),Jn.length>Hn?", ...":null)}var tt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],on=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],jt=function(St){return St==="tags"||St==="multiple"},qt=ve.forwardRef(function(_t,St){var Jn,Hn=_t.id,Ot=_t.prefixCls,kn=_t.className,nr=_t.showSearch,rr=_t.tagRender,er=_t.direction,ur=_t.omitDomProps,wr=_t.displayValues,It=_t.onDisplayValuesChange,an=_t.emptyOptions,mt=_t.notFoundContent,dn=mt===void 0?"Not Found":mt,Tn=_t.onClear,Br=_t.mode,_r=_t.disabled,Or=_t.loading,yr=_t.getInputElement,kr=_t.getRawInputElement,ii=_t.open,jr=_t.defaultOpen,hi=_t.onDropdownVisibleChange,gi=_t.activeValue,oi=_t.onActiveValueChange,vi=_t.activeDescendantId,Ne=_t.searchValue,_e=_t.autoClearSearchValue,it=_t.onSearch,gt=_t.onSearchSplit,Vt=_t.tokenSeparators,Nt=_t.allowClear,Qn=_t.prefix,Nn=_t.suffixIcon,Zn=_t.clearIcon,Gn=_t.OptionList,Kn=_t.animation,zn=_t.transitionName,st=_t.dropdownStyle,Rt=_t.dropdownClassName,kt=_t.dropdownMatchSelectWidth,Ht=_t.dropdownRender,Zt=_t.dropdownAlign,gn=_t.placement,On=_t.builtinPlacements,$e=_t.getPopupContainer,mn=_t.showAction,Ut=mn===void 0?[]:mn,tn=_t.onFocus,sn=_t.onBlur,Gt=_t.onKeyUp,nn=_t.onKeyDown,An=_t.onMouseDown,Bt=(0,de.Z)(_t,tt),rn=jt(Br),Ln=(nr!==void 0?nr:rn)||Br==="combobox",dr=(0,Ze.Z)({},Bt);on.forEach(function(Hi){delete dr[Hi]}),ur==null||ur.forEach(function(Hi){delete dr[Hi]});var tr=ve.useState(!1),br=(0,Ee.Z)(tr,2),hr=br[0],Tr=br[1];ve.useEffect(function(){Tr((0,Xe.Z)())},[]);var Hr=ve.useRef(null),fi=ve.useRef(null),Jr=ve.useRef(null),Ai=ve.useRef(null),si=ve.useRef(null),ti=ve.useRef(!1),ei=be(),$r=(0,Ee.Z)(ei,3),Lr=$r[0],qr=$r[1],Zr=$r[2];ve.useImperativeHandle(St,function(){var Hi,Di;return{focus:(Hi=Ai.current)===null||Hi===void 0?void 0:Hi.focus,blur:(Di=Ai.current)===null||Di===void 0?void 0:Di.blur,scrollTo:function(rA){var OA;return(OA=si.current)===null||OA===void 0?void 0:OA.scrollTo(rA)},nativeElement:Hr.current||fi.current}});var bi=ve.useMemo(function(){var Hi;if(Br!=="combobox")return Ne;var Di=(Hi=wr[0])===null||Hi===void 0?void 0:Hi.value;return typeof Di=="string"||typeof Di=="number"?String(Di):""},[Ne,Br,wr]),ui=Br==="combobox"&&typeof yr=="function"&&yr()||null,Ci=typeof kr=="function"&&kr(),Ti=(0,Je.x1)(fi,Ci==null||(Jn=Ci.props)===null||Jn===void 0?void 0:Jn.ref),xA=ve.useState(!1),gA=(0,Ee.Z)(xA,2),la=gA[0],dA=gA[1];(0,ot.Z)(function(){dA(!0)},[]);var qi=(0,Fe.Z)(!1,{defaultValue:jr,value:ii}),tA=(0,Ee.Z)(qi,2),nA=tA[0],EA=tA[1],hA=la?nA:!1,yA=!dn&&an;(_r||yA&&hA&&Br==="combobox")&&(hA=!1);var wA=yA?!1:hA,ni=ve.useCallback(function(Hi){var Di=Hi!==void 0?Hi:!hA;_r||(EA(Di),hA!==Di&&(hi==null||hi(Di)))},[_r,hA,EA,hi]),mi=ve.useMemo(function(){return(Vt||[]).some(function(Hi){return[`
`,`\r
`].includes(Hi)})},[Vt]),Ei=ve.useContext(Dn)||{},Fi=Ei.maxCount,Ni=Ei.rawValues,Xi=function(Di,pA,rA){if(!(rn&&pt(Fi)&&(Ni==null?void 0:Ni.size)>=Fi)){var OA=!0,NA=Di;oi==null||oi(null);var Ia=Et(Di,Vt,pt(Fi)?Fi-Ni.size:void 0),Ca=rA?null:Ia;return Br!=="combobox"&&Ca&&(NA="",gt==null||gt(Ca),ni(!1),OA=!1),it&&bi!==NA&&it(NA,{source:pA?"typing":"effect"}),OA}},Mi=function(Di){!Di||!Di.trim()||it(Di,{source:"submit"})};ve.useEffect(function(){!hA&&!rn&&Br!=="combobox"&&Xi("",!1,!1)},[hA]),ve.useEffect(function(){nA&&_r&&EA(!1),_r&&!ti.current&&qr(!1)},[_r]);var BA=Be(),CA=(0,Ee.Z)(BA,2),Qi=CA[0],pr=CA[1],ai=ve.useRef(!1),wi=function(Di){var pA=Qi(),rA=Di.key,OA=rA==="Enter";if(OA&&(Br!=="combobox"&&Di.preventDefault(),hA||ni(!0)),pr(!!bi),rA==="Backspace"&&!pA&&rn&&!bi&&wr.length){for(var NA=(0,Me.Z)(wr),Ia=null,Ca=NA.length-1;Ca>=0;Ca-=1){var Qa=NA[Ca];if(!Qa.disabled){NA.splice(Ca,1),Ia=Qa;break}}Ia&&It(NA,{type:"remove",values:[Ia]})}for(var iA=arguments.length,qA=new Array(iA>1?iA-1:0),ga=1;ga<iA;ga++)qA[ga-1]=arguments[ga];if(hA&&(!OA||!ai.current)){var La;OA&&(ai.current=!0),(La=si.current)===null||La===void 0||La.onKeyDown.apply(La,[Di].concat(qA))}nn==null||nn.apply(void 0,[Di].concat(qA))},UA=function(Di){for(var pA=arguments.length,rA=new Array(pA>1?pA-1:0),OA=1;OA<pA;OA++)rA[OA-1]=arguments[OA];if(hA){var NA;(NA=si.current)===null||NA===void 0||NA.onKeyUp.apply(NA,[Di].concat(rA))}Di.key==="Enter"&&(ai.current=!1),Gt==null||Gt.apply(void 0,[Di].concat(rA))},ji=function(Di){var pA=wr.filter(function(rA){return rA!==Di});It(pA,{type:"remove",values:[Di]})},DA=function(){ai.current=!1},Li=ve.useRef(!1),_a=function(){qr(!0),_r||(tn&&!Li.current&&tn.apply(void 0,arguments),Ut.includes("focus")&&ni(!0)),Li.current=!0},fa=function(){ti.current=!0,qr(!1,function(){Li.current=!1,ti.current=!1,ni(!1)}),!_r&&(bi&&(Br==="tags"?it(bi,{source:"submit"}):Br==="multiple"&&it("",{source:"blur"})),sn&&sn.apply(void 0,arguments))},KA=[];ve.useEffect(function(){return function(){KA.forEach(function(Hi){return clearTimeout(Hi)}),KA.splice(0,KA.length)}},[]);var Vi=function(Di){var pA,rA=Di.target,OA=(pA=Jr.current)===null||pA===void 0?void 0:pA.getPopupElement();if(OA&&OA.contains(rA)){var NA=setTimeout(function(){var iA=KA.indexOf(NA);if(iA!==-1&&KA.splice(iA,1),Zr(),!hr&&!OA.contains(document.activeElement)){var qA;(qA=Ai.current)===null||qA===void 0||qA.focus()}});KA.push(NA)}for(var Ia=arguments.length,Ca=new Array(Ia>1?Ia-1:0),Qa=1;Qa<Ia;Qa++)Ca[Qa-1]=arguments[Qa];An==null||An.apply(void 0,[Di].concat(Ca))},Oi=ve.useState({}),wa=(0,Ee.Z)(Oi,2),Ba=wa[1];function ra(){Ba({})}var ZA;Ci&&(ZA=function(Di){ni(Di)}),Ue(function(){var Hi;return[Hr.current,(Hi=Jr.current)===null||Hi===void 0?void 0:Hi.getPopupElement()]},wA,ni,!!Ci);var Ka=ve.useMemo(function(){return(0,Ze.Z)((0,Ze.Z)({},_t),{},{notFoundContent:dn,open:hA,triggerOpen:wA,id:Hn,showSearch:Ln,multiple:rn,toggleOpen:ni})},[_t,dn,wA,hA,Hn,Ln,rn,ni]),ka=!!Nn||Or,HA;ka&&(HA=ve.createElement(Te,{className:we()("".concat(Ot,"-arrow"),(0,De.Z)({},"".concat(Ot,"-arrow-loading"),Or)),customizeIcon:Nn,customizeIconProps:{loading:Or,searchValue:bi,open:hA,focused:Lr,showSearch:Ln}}));var ia=function(){var Di;Tn==null||Tn(),(Di=Ai.current)===null||Di===void 0||Di.focus(),It([],{type:"clear",values:wr}),Xi("",!1,!1)},vA=at(Ot,ia,wr,Nt,Zn,_r,bi,Br),uA=vA.allowClear,ua=vA.clearIcon,Ua=ve.createElement(Gn,{ref:si}),Da=we()(Ot,kn,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(Ot,"-focused"),Lr),"".concat(Ot,"-multiple"),rn),"".concat(Ot,"-single"),!rn),"".concat(Ot,"-allow-clear"),Nt),"".concat(Ot,"-show-arrow"),ka),"".concat(Ot,"-disabled"),_r),"".concat(Ot,"-loading"),Or),"".concat(Ot,"-open"),hA),"".concat(Ot,"-customize-input"),ui),"".concat(Ot,"-show-search"),Ln)),JA=ve.createElement(ie,{ref:Jr,disabled:_r,prefixCls:Ot,visible:wA,popupElement:Ua,animation:Kn,transitionName:zn,dropdownStyle:st,dropdownClassName:Rt,direction:er,dropdownMatchSelectWidth:kt,dropdownRender:Ht,dropdownAlign:Zt,placement:gn,builtinPlacements:On,getPopupContainer:$e,empty:an,getTriggerDOMNode:function(Di){return fi.current||Di},onPopupVisibleChange:ZA,onPopupMouseEnter:ra},Ci?ve.cloneElement(Ci,{ref:Ti}):ve.createElement(ln,(0,re.Z)({},_t,{domRef:fi,prefixCls:Ot,inputElement:ui,ref:Ai,id:Hn,prefix:Qn,showSearch:Ln,autoClearSearchValue:_e,mode:Br,activeDescendantId:vi,tagRender:rr,values:wr,open:hA,onToggleOpen:ni,activeValue:gi,searchValue:bi,onSearch:Xi,onSearchSubmit:Mi,onRemove:ji,tokenWithEnter:mi,onInputBlur:DA}))),fA;return Ci?fA=JA:fA=ve.createElement("div",(0,re.Z)({className:Da},dr,{ref:Hr,onMouseDown:Vi,onKeyDown:wi,onKeyUp:UA,onFocus:_a,onBlur:fa}),ve.createElement(Mt,{visible:Lr&&!hA,values:wr}),JA,HA,uA&&ua),ve.createElement(Oe.Provider,{value:Ka},fA)}),wt=qt,Rn=function(){return null};Rn.isSelectOptGroup=!0;var Wt=Rn,Cn=function(){return null};Cn.isSelectOption=!0;var Mn=Cn,sr=fe(80547),vn=fe(2738),cr=fe(6790);function ar(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var mr=["disabled","title","children","style","className"];function $n(_t){return typeof _t=="string"||typeof _t=="number"}var Xr=function(St,Jn){var Hn=We(),Ot=Hn.prefixCls,kn=Hn.id,nr=Hn.open,rr=Hn.multiple,er=Hn.mode,ur=Hn.searchValue,wr=Hn.toggleOpen,It=Hn.notFoundContent,an=Hn.onPopupScroll,mt=ve.useContext(Dn),dn=mt.maxCount,Tn=mt.flattenOptions,Br=mt.onActiveValue,_r=mt.defaultActiveFirstOption,Or=mt.onSelect,yr=mt.menuItemSelectedIcon,kr=mt.rawValues,ii=mt.fieldNames,jr=mt.virtual,hi=mt.direction,gi=mt.listHeight,oi=mt.listItemHeight,vi=mt.optionRender,Ne="".concat(Ot,"-item"),_e=(0,sr.Z)(function(){return Tn},[nr,Tn],function(mn,Ut){return Ut[0]&&mn[1]!==Ut[1]}),it=ve.useRef(null),gt=ve.useMemo(function(){return rr&&pt(dn)&&(kr==null?void 0:kr.size)>=dn},[rr,dn,kr==null?void 0:kr.size]),Vt=function(Ut){Ut.preventDefault()},Nt=function(Ut){var tn;(tn=it.current)===null||tn===void 0||tn.scrollTo(typeof Ut=="number"?{index:Ut}:Ut)},Qn=ve.useCallback(function(mn){return er==="combobox"?!1:kr.has(mn)},[er,(0,Me.Z)(kr).toString(),kr.size]),Nn=function(Ut){for(var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,sn=_e.length,Gt=0;Gt<sn;Gt+=1){var nn=(Ut+Gt*tn+sn)%sn,An=_e[nn]||{},Bt=An.group,rn=An.data;if(!Bt&&!(rn!=null&&rn.disabled)&&(Qn(rn.value)||!gt))return nn}return-1},Zn=ve.useState(function(){return Nn(0)}),Gn=(0,Ee.Z)(Zn,2),Kn=Gn[0],zn=Gn[1],st=function(Ut){var tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;zn(Ut);var sn={source:tn?"keyboard":"mouse"},Gt=_e[Ut];if(!Gt){Br(null,-1,sn);return}Br(Gt.value,Ut,sn)};(0,ve.useEffect)(function(){st(_r!==!1?Nn(0):-1)},[_e.length,ur]);var Rt=ve.useCallback(function(mn){return er==="combobox"?String(mn).toLowerCase()===ur.toLowerCase():kr.has(mn)},[er,ur,(0,Me.Z)(kr).toString(),kr.size]);(0,ve.useEffect)(function(){var mn=setTimeout(function(){if(!rr&&nr&&kr.size===1){var tn=Array.from(kr)[0],sn=_e.findIndex(function(Gt){var nn=Gt.data;return ur?String(nn.value).startsWith(ur):nn.value===tn});sn!==-1&&(st(sn),Nt(sn))}});if(nr){var Ut;(Ut=it.current)===null||Ut===void 0||Ut.scrollTo(void 0)}return function(){return clearTimeout(mn)}},[nr,ur]);var kt=function(Ut){Ut!==void 0&&Or(Ut,{selected:!kr.has(Ut)}),rr||wr(!1)};if(ve.useImperativeHandle(Jn,function(){return{onKeyDown:function(Ut){var tn=Ut.which,sn=Ut.ctrlKey;switch(tn){case ke.Z.N:case ke.Z.P:case ke.Z.UP:case ke.Z.DOWN:{var Gt=0;if(tn===ke.Z.UP?Gt=-1:tn===ke.Z.DOWN?Gt=1:ar()&&sn&&(tn===ke.Z.N?Gt=1:tn===ke.Z.P&&(Gt=-1)),Gt!==0){var nn=Nn(Kn+Gt,Gt);Nt(nn),st(nn,!0)}break}case ke.Z.TAB:case ke.Z.ENTER:{var An,Bt=_e[Kn];Bt&&!(Bt!=null&&(An=Bt.data)!==null&&An!==void 0&&An.disabled)&&!gt?kt(Bt.value):kt(void 0),nr&&Ut.preventDefault();break}case ke.Z.ESC:wr(!1),nr&&Ut.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ut){Nt(Ut)}}}),_e.length===0)return ve.createElement("div",{role:"listbox",id:"".concat(kn,"_list"),className:"".concat(Ne,"-empty"),onMouseDown:Vt},It);var Ht=Object.keys(ii).map(function(mn){return ii[mn]}),Zt=function(Ut){return Ut.label};function gn(mn,Ut){var tn=mn.group;return{role:tn?"presentation":"option",id:"".concat(kn,"_list_").concat(Ut)}}var On=function(Ut){var tn=_e[Ut];if(!tn)return null;var sn=tn.data||{},Gt=sn.value,nn=tn.group,An=(0,Pe.Z)(sn,!0),Bt=Zt(tn);return tn?ve.createElement("div",(0,re.Z)({"aria-label":typeof Bt=="string"&&!nn?Bt:null},An,{key:Ut},gn(tn,Ut),{"aria-selected":Rt(Gt)}),Gt):null},$e={role:"listbox",id:"".concat(kn,"_list")};return ve.createElement(ve.Fragment,null,jr&&ve.createElement("div",(0,re.Z)({},$e,{style:{height:0,width:0,overflow:"hidden"}}),On(Kn-1),On(Kn),On(Kn+1)),ve.createElement(cr.Z,{itemKey:"key",ref:it,data:_e,height:gi,itemHeight:oi,fullHeight:!1,onMouseDown:Vt,onScroll:an,virtual:jr,direction:hi,innerProps:jr?null:$e},function(mn,Ut){var tn=mn.group,sn=mn.groupOption,Gt=mn.data,nn=mn.label,An=mn.value,Bt=Gt.key;if(tn){var rn,Ln=(rn=Gt.title)!==null&&rn!==void 0?rn:$n(nn)?nn.toString():void 0;return ve.createElement("div",{className:we()(Ne,"".concat(Ne,"-group"),Gt.className),title:Ln},nn!==void 0?nn:Bt)}var dr=Gt.disabled,tr=Gt.title,br=Gt.children,hr=Gt.style,Tr=Gt.className,Hr=(0,de.Z)(Gt,mr),fi=(0,vn.Z)(Hr,Ht),Jr=Qn(An),Ai=dr||!Jr&&gt,si="".concat(Ne,"-option"),ti=we()(Ne,si,Tr,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(si,"-grouped"),sn),"".concat(si,"-active"),Kn===Ut&&!Ai),"".concat(si,"-disabled"),Ai),"".concat(si,"-selected"),Jr)),ei=Zt(mn),$r=!yr||typeof yr=="function"||Jr,Lr=typeof ei=="number"?ei:ei||An,qr=$n(Lr)?Lr.toString():void 0;return tr!==void 0&&(qr=tr),ve.createElement("div",(0,re.Z)({},(0,Pe.Z)(fi),jr?{}:gn(mn,Ut),{"aria-selected":Rt(An),className:ti,title:qr,onMouseMove:function(){Kn===Ut||Ai||st(Ut)},onClick:function(){Ai||kt(An)},style:hr}),ve.createElement("div",{className:"".concat(si,"-content")},typeof vi=="function"?vi(mn,{index:Ut}):Lr),ve.isValidElement(yr)||Jr,$r&&ve.createElement(Te,{className:"".concat(Ne,"-option-state"),customizeIcon:yr,customizeIconProps:{value:An,disabled:Ai,isSelected:Jr}},Jr?"\u2713":null))}))},Pr=ve.forwardRef(Xr),Er=Pr,Ar=function(_t,St){var Jn=ve.useRef({values:new Map,options:new Map}),Hn=ve.useMemo(function(){var kn=Jn.current,nr=kn.values,rr=kn.options,er=_t.map(function(It){if(It.label===void 0){var an;return(0,Ze.Z)((0,Ze.Z)({},It),{},{label:(an=nr.get(It.value))===null||an===void 0?void 0:an.label})}return It}),ur=new Map,wr=new Map;return er.forEach(function(It){ur.set(It.value,It),wr.set(It.value,St.get(It.value)||rr.get(It.value))}),Jn.current.values=ur,Jn.current.options=wr,er},[_t,St]),Ot=ve.useCallback(function(kn){return St.get(kn)||Jn.current.options.get(kn)},[St]);return[Hn,Ot]};function Qr(_t,St){return Kt(_t).join("").toUpperCase().includes(St)}var Vn=function(_t,St,Jn,Hn,Ot){return ve.useMemo(function(){if(!Jn||Hn===!1)return _t;var kn=St.options,nr=St.label,rr=St.value,er=[],ur=typeof Hn=="function",wr=Jn.toUpperCase(),It=ur?Hn:function(mt,dn){return Ot?Qr(dn[Ot],wr):dn[kn]?Qr(dn[nr!=="children"?nr:"label"],wr):Qr(dn[rr],wr)},an=ur?function(mt){return bt(mt)}:function(mt){return mt};return _t.forEach(function(mt){if(mt[kn]){var dn=It(Jn,an(mt));if(dn)er.push(mt);else{var Tn=mt[kn].filter(function(Br){return It(Jn,an(Br))});Tn.length&&er.push((0,Ze.Z)((0,Ze.Z)({},mt),{},(0,De.Z)({},kn,Tn)))}return}It(Jn,an(mt))&&er.push(mt)}),er},[_t,Hn,Ot,Jn,St])},qn=fe(6551),Yn=fe(11592),pn=["children","value"],Wn=["children"];function cn(_t){var St=_t,Jn=St.key,Hn=St.props,Ot=Hn.children,kn=Hn.value,nr=(0,de.Z)(Hn,pn);return(0,Ze.Z)({key:Jn,value:kn!==void 0?kn:Jn,children:Ot},nr)}function Sn(_t){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Yn.Z)(_t).map(function(Jn,Hn){if(!ve.isValidElement(Jn)||!Jn.type)return null;var Ot=Jn,kn=Ot.type.isSelectOptGroup,nr=Ot.key,rr=Ot.props,er=rr.children,ur=(0,de.Z)(rr,Wn);return St||!kn?cn(Jn):(0,Ze.Z)((0,Ze.Z)({key:"__RC_SELECT_GRP__".concat(nr===null?Hn:nr,"__"),label:nr},ur),{},{options:Sn(er)})}).filter(function(Jn){return Jn})}var fr=function(St,Jn,Hn,Ot,kn){return ve.useMemo(function(){var nr=St,rr=!St;rr&&(nr=Sn(Jn));var er=new Map,ur=new Map,wr=function(mt,dn,Tn){Tn&&typeof Tn=="string"&&mt.set(dn[Tn],dn)},It=function an(mt){for(var dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tn=0;Tn<mt.length;Tn+=1){var Br=mt[Tn];!Br[Hn.options]||dn?(er.set(Br[Hn.value],Br),wr(ur,Br,Hn.label),wr(ur,Br,Ot),wr(ur,Br,kn)):an(Br[Hn.options],!0)}};return It(nr),{options:nr,valueOptions:er,labelOptions:ur}},[St,Jn,Hn,Ot,kn])},ir=fr;function lr(_t){var St=ve.useRef();St.current=_t;var Jn=ve.useCallback(function(){return St.current.apply(St,arguments)},[]);return Jn}function xr(_t){var St=_t.mode,Jn=_t.options,Hn=_t.children,Ot=_t.backfill,kn=_t.allowClear,nr=_t.placeholder,rr=_t.getInputElement,er=_t.showSearch,ur=_t.onSearch,wr=_t.defaultOpen,It=_t.autoFocus,an=_t.labelInValue,mt=_t.value,dn=_t.inputValue,Tn=_t.optionLabelProp,Br=isMultiple(St),_r=er!==void 0?er:Br||St==="combobox",Or=Jn||convertChildrenToData(Hn);if(warning(St!=="tags"||Or.every(function(jr){return!jr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),St==="tags"||St==="combobox"){var yr=Or.some(function(jr){return jr.options?jr.options.some(function(hi){return typeof("value"in hi?hi.value:hi.key)=="number"}):typeof("value"in jr?jr.value:jr.key)=="number"});warning(!yr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(St!=="combobox"||!Tn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(St==="combobox"||!Ot,"`backfill` only works with `combobox` mode."),warning(St==="combobox"||!rr,"`getInputElement` only work with `combobox` mode."),noteOnce(St!=="combobox"||!rr||!kn||!nr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ur&&!_r&&St!=="combobox"&&St!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!wr||It,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),mt!=null){var kr=toArray(mt);warning(!an||kr.every(function(jr){return _typeof(jr)==="object"&&("key"in jr||"value"in jr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Br||Array.isArray(mt),"`value` should be array when `mode` is `multiple` or `tags`")}if(Hn){var ii=null;toNodeArray(Hn).some(function(jr){if(!React.isValidElement(jr)||!jr.type)return!1;var hi=jr,gi=hi.type;if(gi.isSelectOption)return!1;if(gi.isSelectOptGroup){var oi=toNodeArray(jr.props.children).every(function(vi){return!React.isValidElement(vi)||!jr.type||vi.type.isSelectOption?!0:(ii=vi.type,!1)});return!oi}return ii=gi,!0}),ii&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ii.displayName||ii.name||ii,"`.")),warning(dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Wr(_t,St){if(_t){var Jn=function Hn(Ot){for(var kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,nr=0;nr<Ot.length;nr++){var rr=Ot[nr];if(rr[St==null?void 0:St.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!kn&&Array.isArray(rr[St==null?void 0:St.options])&&Hn(rr[St==null?void 0:St.options],!0))break}};Jn(_t)}}var Dr=null,Fr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Rr=["inputValue"];function Xn(_t){return!_t||(0,ze.Z)(_t)!=="object"}var yn=ve.forwardRef(function(_t,St){var Jn=_t.id,Hn=_t.mode,Ot=_t.prefixCls,kn=Ot===void 0?"rc-select":Ot,nr=_t.backfill,rr=_t.fieldNames,er=_t.inputValue,ur=_t.searchValue,wr=_t.onSearch,It=_t.autoClearSearchValue,an=It===void 0?!0:It,mt=_t.onSelect,dn=_t.onDeselect,Tn=_t.dropdownMatchSelectWidth,Br=Tn===void 0?!0:Tn,_r=_t.filterOption,Or=_t.filterSort,yr=_t.optionFilterProp,kr=_t.optionLabelProp,ii=_t.options,jr=_t.optionRender,hi=_t.children,gi=_t.defaultActiveFirstOption,oi=_t.menuItemSelectedIcon,vi=_t.virtual,Ne=_t.direction,_e=_t.listHeight,it=_e===void 0?200:_e,gt=_t.listItemHeight,Vt=gt===void 0?20:gt,Nt=_t.labelRender,Qn=_t.value,Nn=_t.defaultValue,Zn=_t.labelInValue,Gn=_t.onChange,Kn=_t.maxCount,zn=(0,de.Z)(_t,Fr),st=(0,qn.ZP)(Jn),Rt=jt(Hn),kt=!!(!ii&&hi),Ht=ve.useMemo(function(){return _r===void 0&&Hn==="combobox"?!1:_r},[_r,Hn]),Zt=ve.useMemo(function(){return zt(rr,kt)},[JSON.stringify(rr),kt]),gn=(0,Fe.Z)("",{value:ur!==void 0?ur:er,postState:function(mi){return mi||""}}),On=(0,Ee.Z)(gn,2),$e=On[0],mn=On[1],Ut=ir(ii,hi,Zt,yr,kr),tn=Ut.valueOptions,sn=Ut.labelOptions,Gt=Ut.options,nn=ve.useCallback(function(ni){var mi=Kt(ni);return mi.map(function(Ei){var Fi,Ni,Xi,Mi,BA;if(Xn(Ei))Fi=Ei;else{var CA;Xi=Ei.key,Ni=Ei.label,Fi=(CA=Ei.value)!==null&&CA!==void 0?CA:Xi}var Qi=tn.get(Fi);if(Qi){var pr;if(Ni===void 0&&(Ni=Qi==null?void 0:Qi[kr||Zt.label]),Xi===void 0&&(Xi=(pr=Qi==null?void 0:Qi.key)!==null&&pr!==void 0?pr:Fi),Mi=Qi==null?void 0:Qi.disabled,BA=Qi==null?void 0:Qi.title,0)var ai}return{label:Ni,value:Fi,key:Xi,disabled:Mi,title:BA}})},[Zt,kr,tn]),An=(0,Fe.Z)(Nn,{value:Qn}),Bt=(0,Ee.Z)(An,2),rn=Bt[0],Ln=Bt[1],dr=ve.useMemo(function(){var ni,mi=Rt&&rn===null?[]:rn,Ei=nn(mi);return Hn==="combobox"&&xe((ni=Ei[0])===null||ni===void 0?void 0:ni.value)?[]:Ei},[rn,nn,Hn,Rt]),tr=Ar(dr,tn),br=(0,Ee.Z)(tr,2),hr=br[0],Tr=br[1],Hr=ve.useMemo(function(){if(!Hn&&hr.length===1){var ni=hr[0];if(ni.value===null&&(ni.label===null||ni.label===void 0))return[]}return hr.map(function(mi){var Ei;return(0,Ze.Z)((0,Ze.Z)({},mi),{},{label:(Ei=typeof Nt=="function"?Nt(mi):mi.label)!==null&&Ei!==void 0?Ei:mi.value})})},[Hn,hr,Nt]),fi=ve.useMemo(function(){return new Set(hr.map(function(ni){return ni.value}))},[hr]);ve.useEffect(function(){if(Hn==="combobox"){var ni,mi=(ni=hr[0])===null||ni===void 0?void 0:ni.value;mn(Re(mi)?String(mi):"")}},[hr]);var Jr=lr(function(ni,mi){var Ei=mi!=null?mi:ni;return(0,De.Z)((0,De.Z)({},Zt.value,ni),Zt.label,Ei)}),Ai=ve.useMemo(function(){if(Hn!=="tags")return Gt;var ni=(0,Me.Z)(Gt),mi=function(Fi){return tn.has(Fi)};return(0,Me.Z)(hr).sort(function(Ei,Fi){return Ei.value<Fi.value?-1:1}).forEach(function(Ei){var Fi=Ei.value;mi(Fi)||ni.push(Jr(Fi,Ei.label))}),ni},[Jr,Gt,tn,hr,Hn]),si=Vn(Ai,Zt,$e,Ht,yr),ti=ve.useMemo(function(){return Hn!=="tags"||!$e||si.some(function(ni){return ni[yr||"value"]===$e})||si.some(function(ni){return ni[Zt.value]===$e})?si:[Jr($e)].concat((0,Me.Z)(si))},[Jr,yr,Hn,si,$e,Zt]),ei=function ni(mi){var Ei=(0,Me.Z)(mi).sort(function(Fi,Ni){return Or(Fi,Ni,{searchValue:$e})});return Ei.map(function(Fi){return Array.isArray(Fi.options)?(0,Ze.Z)((0,Ze.Z)({},Fi),{},{options:Fi.options.length>0?ni(Fi.options):Fi.options}):Fi})},$r=ve.useMemo(function(){return Or?ei(ti):ti},[ti,Or,$e]),Lr=ve.useMemo(function(){return ct($r,{fieldNames:Zt,childrenAsData:kt})},[$r,Zt,kt]),qr=function(mi){var Ei=nn(mi);if(Ln(Ei),Gn&&(Ei.length!==hr.length||Ei.some(function(Xi,Mi){var BA;return((BA=hr[Mi])===null||BA===void 0?void 0:BA.value)!==(Xi==null?void 0:Xi.value)}))){var Fi=Zn?Ei:Ei.map(function(Xi){return Xi.value}),Ni=Ei.map(function(Xi){return bt(Tr(Xi.value))});Gn(Rt?Fi:Fi[0],Rt?Ni:Ni[0])}},Zr=ve.useState(null),bi=(0,Ee.Z)(Zr,2),ui=bi[0],Ci=bi[1],Ti=ve.useState(0),xA=(0,Ee.Z)(Ti,2),gA=xA[0],la=xA[1],dA=gi!==void 0?gi:Hn!=="combobox",qi=ve.useCallback(function(ni,mi){var Ei=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Fi=Ei.source,Ni=Fi===void 0?"keyboard":Fi;la(mi),nr&&Hn==="combobox"&&ni!==null&&Ni==="keyboard"&&Ci(String(ni))},[nr,Hn]),tA=function(mi,Ei,Fi){var Ni=function(){var ji,DA=Tr(mi);return[Zn?{label:DA==null?void 0:DA[Zt.label],value:mi,key:(ji=DA==null?void 0:DA.key)!==null&&ji!==void 0?ji:mi}:mi,bt(DA)]};if(Ei&&mt){var Xi=Ni(),Mi=(0,Ee.Z)(Xi,2),BA=Mi[0],CA=Mi[1];mt(BA,CA)}else if(!Ei&&dn&&Fi!=="clear"){var Qi=Ni(),pr=(0,Ee.Z)(Qi,2),ai=pr[0],wi=pr[1];dn(ai,wi)}},nA=lr(function(ni,mi){var Ei,Fi=Rt?mi.selected:!0;Fi?Ei=Rt?[].concat((0,Me.Z)(hr),[ni]):[ni]:Ei=hr.filter(function(Ni){return Ni.value!==ni}),qr(Ei),tA(ni,Fi),Hn==="combobox"?Ci(""):(!jt||an)&&(mn(""),Ci(""))}),EA=function(mi,Ei){qr(mi);var Fi=Ei.type,Ni=Ei.values;(Fi==="remove"||Fi==="clear")&&Ni.forEach(function(Xi){tA(Xi.value,!1,Fi)})},hA=function(mi,Ei){if(mn(mi),Ci(null),Ei.source==="submit"){var Fi=(mi||"").trim();if(Fi){var Ni=Array.from(new Set([].concat((0,Me.Z)(fi),[Fi])));qr(Ni),tA(Fi,!0),mn("")}return}Ei.source!=="blur"&&(Hn==="combobox"&&qr(mi),wr==null||wr(mi))},yA=function(mi){var Ei=mi;Hn!=="tags"&&(Ei=mi.map(function(Ni){var Xi=sn.get(Ni);return Xi==null?void 0:Xi.value}).filter(function(Ni){return Ni!==void 0}));var Fi=Array.from(new Set([].concat((0,Me.Z)(fi),(0,Me.Z)(Ei))));qr(Fi),Fi.forEach(function(Ni){tA(Ni,!0)})},wA=ve.useMemo(function(){var ni=vi!==!1&&Br!==!1;return(0,Ze.Z)((0,Ze.Z)({},Ut),{},{flattenOptions:Lr,onActiveValue:qi,defaultActiveFirstOption:dA,onSelect:nA,menuItemSelectedIcon:oi,rawValues:fi,fieldNames:Zt,virtual:ni,direction:Ne,listHeight:it,listItemHeight:Vt,childrenAsData:kt,maxCount:Kn,optionRender:jr})},[Kn,Ut,Lr,qi,dA,nA,oi,fi,Zt,vi,Br,Ne,it,Vt,kt,jr]);return ve.createElement(Dn.Provider,{value:wA},ve.createElement(wt,(0,re.Z)({},zn,{id:st,prefixCls:kn,ref:St,omitDomProps:Rr,mode:Hn,displayValues:Hr,onDisplayValuesChange:EA,direction:Ne,searchValue:$e,onSearch:hA,autoClearSearchValue:an,onSearchSplit:yA,dropdownMatchSelectWidth:Br,OptionList:Er,emptyOptions:!Lr.length,activeValue:ui,activeDescendantId:"".concat(st,"_list_").concat(gA)})))}),rt=yn;rt.Option=Mn,rt.OptGroup=Wt;var Sr=rt,Kr=Sr},63158:function(xn,dt,fe){"use strict";var re=fe(32855),Me=fe(74430),De=fe(11913),Ze=fe(43079),Ee=fe(59301),de=fe(92310),ze=fe.n(de),Fe=fe(18929),Ie=fe(10228),ve=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ut=Ee.forwardRef(function(we,ot){var Xe,Je=we.prefixCls,He=Je===void 0?"rc-switch":Je,Te=we.className,at=we.checked,Oe=we.defaultChecked,We=we.disabled,be=we.loadingIcon,Be=we.checkedChildren,Ue=we.unCheckedChildren,ke=we.onClick,qe=we.onChange,Pe=we.onKeyDown,Ge=(0,Ze.Z)(we,ve),lt=(0,Fe.Z)(!1,{value:at,defaultValue:Oe}),je=(0,De.Z)(lt,2),ht=je[0],et=je[1];function ft($t,Re){var xe=ht;return We||(xe=$t,et(xe),qe==null||qe(xe,Re)),xe}function Tt($t){$t.which===Ie.Z.LEFT?ft(!1,$t):$t.which===Ie.Z.RIGHT&&ft(!0,$t),Pe==null||Pe($t)}function Kt($t){var Re=ft(!ht,$t);ke==null||ke(Re,$t)}var fn=ze()(He,Te,(Xe={},(0,Me.Z)(Xe,"".concat(He,"-checked"),ht),(0,Me.Z)(Xe,"".concat(He,"-disabled"),We),Xe));return Ee.createElement("button",(0,re.Z)({},Ge,{type:"button",role:"switch","aria-checked":ht,disabled:We,className:fn,ref:ot,onKeyDown:Tt,onClick:Kt}),be,Ee.createElement("span",{className:"".concat(He,"-inner")},Ee.createElement("span",{className:"".concat(He,"-inner-checked")},Be),Ee.createElement("span",{className:"".concat(He,"-inner-unchecked")},Ue)))});ut.displayName="Switch",dt.Z=ut},86351:function(xn,dt,fe){"use strict";fe.d(dt,{R:function(){return Me},w:function(){return re}});var re={},Me="rc-table-internal-hook"},97347:function(xn,dt,fe){"use strict";fe.d(dt,{L:function(){return He},Z:function(){return be}});var re=fe(11913),Me=fe(74430),De=fe(3300),Ze=fe(34666),Ee=fe(27247),de=fe(43079),ze=fe(11592),Fe=fe(48736),Ie=fe(59301),ve=fe(86351),ut=fe(54451);function we(Be){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ue=="number"?Ue:Ue.endsWith("%")?Be*parseFloat(Ue)/100:null}function ot(Be,Ue,ke){return Ie.useMemo(function(){if(Ue&&Ue>0){var qe=0,Pe=0;Be.forEach(function(Kt){var fn=we(Ue,Kt.width);fn?qe+=fn:Pe+=1});var Ge=Math.max(Ue,ke),lt=Math.max(Ge-qe,Pe),je=Pe,ht=lt/Pe,et=0,ft=Be.map(function(Kt){var fn=(0,Ee.Z)({},Kt),$t=we(Ue,fn.width);if($t)fn.width=$t;else{var Re=Math.floor(ht);fn.width=je===1?lt:Re,lt-=Re,je-=1}return et+=fn.width,fn});if(et<Ge){var Tt=Ge/et;lt=Ge,ft.forEach(function(Kt,fn){var $t=Math.floor(Kt.width*Tt);Kt.width=fn===ft.length-1?lt:$t,lt-=$t})}return[ft,Math.max(et,Ge)]}return[Be,Ue]},[Be,Ue,ke])}var Xe=["children"],Je=["fixed"];function He(Be){return(0,ze.Z)(Be).filter(function(Ue){return Ie.isValidElement(Ue)}).map(function(Ue){var ke=Ue.key,qe=Ue.props,Pe=qe.children,Ge=(0,de.Z)(qe,Xe),lt=(0,Ee.Z)({key:ke},Ge);return Pe&&(lt.children=He(Pe)),lt})}function Te(Be){return Be.filter(function(Ue){return Ue&&(0,Ze.Z)(Ue)==="object"&&!Ue.hidden}).map(function(Ue){var ke=Ue.children;return ke&&ke.length>0?(0,Ee.Z)((0,Ee.Z)({},Ue),{},{children:Te(ke)}):Ue})}function at(Be){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Be.filter(function(ke){return ke&&(0,Ze.Z)(ke)==="object"}).reduce(function(ke,qe,Pe){var Ge=qe.fixed,lt=Ge===!0?"left":Ge,je="".concat(Ue,"-").concat(Pe),ht=qe.children;return ht&&ht.length>0?[].concat((0,De.Z)(ke),(0,De.Z)(at(ht,je).map(function(et){return(0,Ee.Z)({fixed:lt},et)}))):[].concat((0,De.Z)(ke),[(0,Ee.Z)((0,Ee.Z)({key:je},qe),{},{fixed:lt})])},[])}function Oe(Be){return Be.map(function(Ue){var ke=Ue.fixed,qe=(0,de.Z)(Ue,Je),Pe=ke;return ke==="left"?Pe="right":ke==="right"&&(Pe="left"),(0,Ee.Z)({fixed:Pe},qe)})}function We(Be,Ue){var ke=Be.prefixCls,qe=Be.columns,Pe=Be.children,Ge=Be.expandable,lt=Be.expandedKeys,je=Be.columnTitle,ht=Be.getRowKey,et=Be.onTriggerExpand,ft=Be.expandIcon,Tt=Be.rowExpandable,Kt=Be.expandIconColumnIndex,fn=Be.direction,$t=Be.expandRowByClick,Re=Be.columnWidth,xe=Be.fixed,Lt=Be.scrollWidth,Fn=Be.clientWidth,hn=Ie.useMemo(function(){var ln=qe||He(Pe)||[];return Te(ln.slice())},[qe,Pe]),vt=Ie.useMemo(function(){if(Ge){var ln=hn.slice();if(!ln.includes(ve.w)){var ge=Kt||0;ge>=0&&(ge||xe==="left"||!xe)&&ln.splice(ge,0,ve.w),xe==="right"&&ln.splice(hn.length,0,ve.w)}var ue=ln.indexOf(ve.w);ln=ln.filter(function(ie,he){return ie!==ve.w||he===ue});var ee=hn[ue],b;xe?b=xe:b=ee?ee.fixed:null;var ae=(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)({},ut.v,{className:"".concat(ke,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",je),"fixed",b),"className","".concat(ke,"-row-expand-icon-cell")),"width",Re),"render",function(he,Ye,pt){var zt=ht(Ye,pt),ct=lt.has(zt),bt=Tt?Tt(Ye):!0,Et=ft({prefixCls:ke,expanded:ct,expandable:bt,record:Ye,onExpand:et});return $t?Ie.createElement("span",{onClick:function(Dn){return Dn.stopPropagation()}},Et):Et});return ln.map(function(ie){return ie===ve.w?ae:ie})}return hn.filter(function(ie){return ie!==ve.w})},[Ge,hn,ht,lt,ft,fn]),Jt=Ie.useMemo(function(){var ln=vt;return Ue&&(ln=Ue(ln)),ln.length||(ln=[{render:function(){return null}}]),ln},[Ue,vt,fn]),Yt=Ie.useMemo(function(){return fn==="rtl"?Oe(at(Jt)):at(Jt)},[Jt,fn,Lt]),jn=Ie.useMemo(function(){for(var ln=-1,ge=Yt.length-1;ge>=0;ge-=1){var ue=Yt[ge].fixed;if(ue==="left"||ue===!0){ln=ge;break}}if(ln>=0)for(var ee=0;ee<=ln;ee+=1){var b=Yt[ee].fixed;if(b!=="left"&&b!==!0)return!0}var ae=Yt.findIndex(function(Ye){var pt=Ye.fixed;return pt==="right"});if(ae>=0)for(var ie=ae;ie<Yt.length;ie+=1){var he=Yt[ie].fixed;if(he!=="right")return!0}return!1},[Yt]),yt=ot(Yt,Lt,Fn),wn=(0,re.Z)(yt,2),Dt=wn[0],un=wn[1];return[Jt,Dt,un,jn]}var be=We},4030:function(xn,dt,fe){"use strict";fe.d(dt,{w2:function(){return re.w},vP:function(){return $n.v},RQ:function(){return re.R},ER:function(){return zt},Q$:function(){return _r},TN:function(){return Gn}});var re=fe(86351),Me=fe(11913),De=fe(6089),Ze=fe(34280),Ee=fe(13697),de=fe(59301),ze=fe(4676);function Fe(st){var Rt=de.createContext(void 0),kt=function(Zt){var gn=Zt.value,On=Zt.children,$e=de.useRef(gn);$e.current=gn;var mn=de.useState(function(){return{getValue:function(){return $e.current},listeners:new Set}}),Ut=(0,Me.Z)(mn,1),tn=Ut[0];return(0,Ze.Z)(function(){(0,ze.unstable_batchedUpdates)(function(){tn.listeners.forEach(function(sn){sn(gn)})})},[gn]),de.createElement(Rt.Provider,{value:tn},On)};return{Context:Rt,Provider:kt,defaultValue:st}}function Ie(st,Rt){var kt=(0,De.Z)(typeof Rt=="function"?Rt:function(sn){if(Rt===void 0)return sn;if(!Array.isArray(Rt))return sn[Rt];var Gt={};return Rt.forEach(function(nn){Gt[nn]=sn[nn]}),Gt}),Ht=de.useContext(st==null?void 0:st.Context),Zt=Ht||{},gn=Zt.listeners,On=Zt.getValue,$e=de.useRef();$e.current=kt(Ht?On():st==null?void 0:st.defaultValue);var mn=de.useState({}),Ut=(0,Me.Z)(mn,2),tn=Ut[1];return(0,Ze.Z)(function(){if(!Ht)return;function sn(Gt){var nn=kt(Gt);(0,Ee.Z)($e.current,nn,!0)||tn({})}return gn.add(sn),function(){gn.delete(sn)}},[Ht]),$e.current}var ve=fe(32855),ut=fe(8654);function we(){var st=de.createContext(null);function Rt(){return de.useContext(st)}function kt(Zt,gn){var On=(0,ut.Yr)(Zt),$e=function(Ut,tn){var sn=On?{ref:tn}:{},Gt=de.useRef(0),nn=de.useRef(Ut),An=Rt();return An!==null?de.createElement(Zt,(0,ve.Z)({},Ut,sn)):((!gn||gn(nn.current,Ut))&&(Gt.current+=1),nn.current=Ut,de.createElement(st.Provider,{value:Gt.current},de.createElement(Zt,(0,ve.Z)({},Ut,sn))))};return On?de.forwardRef($e):$e}function Ht(Zt,gn){var On=(0,ut.Yr)(Zt),$e=function(Ut,tn){var sn=On?{ref:tn}:{};return Rt(),de.createElement(Zt,(0,ve.Z)({},Ut,sn))};return On?de.memo(de.forwardRef($e),gn):de.memo($e,gn)}return{makeImmutable:kt,responseImmutable:Ht,useImmutableMark:Rt}}var ot=we(),Xe=ot.makeImmutable,Je=ot.responseImmutable,He=ot.useImmutableMark,Te=we(),at=Te.makeImmutable,Oe=Te.responseImmutable,We=Te.useImmutableMark,be=Fe(),Be=be;function Ue(st,Rt){var kt=React.useRef(0);kt.current+=1;var Ht=React.useRef(st),Zt=[];Object.keys(st||{}).map(function(On){var $e;(st==null?void 0:st[On])!==(($e=Ht.current)===null||$e===void 0?void 0:$e[On])&&Zt.push(On)}),Ht.current=st;var gn=React.useRef([]);return Zt.length&&(gn.current=Zt),React.useDebugValue(kt.current),React.useDebugValue(gn.current.join(", ")),Rt&&console.log("".concat(Rt,":"),kt.current,gn.current),kt.current}var ke=null,qe=null,Pe=fe(34666),Ge=fe(27247),lt=fe(74430),je=fe(92310),ht=fe.n(je),et=fe(80547),ft=fe(97938),Tt=fe(48736),Kt=de.createContext({renderWithProps:!1}),fn=Kt,$t="RC_TABLE_KEY";function Re(st){return st==null?[]:Array.isArray(st)?st:[st]}function xe(st){var Rt=[],kt={};return st.forEach(function(Ht){for(var Zt=Ht||{},gn=Zt.key,On=Zt.dataIndex,$e=gn||Re(On).join("-")||$t;kt[$e];)$e="".concat($e,"_next");kt[$e]=!0,Rt.push($e)}),Rt}function Lt(st){return st!=null}function Fn(st){return typeof st=="number"&&!Number.isNaN(st)}function hn(st){return st&&(0,Pe.Z)(st)==="object"&&!Array.isArray(st)&&!de.isValidElement(st)}function vt(st,Rt,kt,Ht,Zt,gn){var On=de.useContext(fn),$e=We(),mn=(0,et.Z)(function(){if(Lt(Ht))return[Ht];var Ut=Rt==null||Rt===""?[]:Array.isArray(Rt)?Rt:[Rt],tn=(0,ft.Z)(st,Ut),sn=tn,Gt=void 0;if(Zt){var nn=Zt(tn,st,kt);hn(nn)?(sn=nn.children,Gt=nn.props,On.renderWithProps=!0):sn=nn}return[sn,Gt]},[$e,st,Ht,Rt,Zt,kt],function(Ut,tn){if(gn){var sn=(0,Me.Z)(Ut,2),Gt=sn[1],nn=(0,Me.Z)(tn,2),An=nn[1];return gn(An,Gt)}return On.renderWithProps?!0:!(0,Ee.Z)(Ut,tn,!0)});return mn}function Jt(st,Rt,kt,Ht){var Zt=st+Rt-1;return st<=Ht&&Zt>=kt}function Yt(st,Rt){return Ie(Be,function(kt){var Ht=Jt(st,Rt||1,kt.hoverStartRow,kt.hoverEndRow);return[Ht,kt.onHover]})}var jn=fe(70425),yt=function(Rt){var kt=Rt.ellipsis,Ht=Rt.rowType,Zt=Rt.children,gn,On=kt===!0?{showTitle:!0}:kt;return On&&(On.showTitle||Ht==="header")&&(typeof Zt=="string"||typeof Zt=="number"?gn=Zt.toString():de.isValidElement(Zt)&&typeof Zt.props.children=="string"&&(gn=Zt.props.children)),gn};function wn(st){var Rt,kt,Ht,Zt,gn,On,$e,mn,Ut=st.component,tn=st.children,sn=st.ellipsis,Gt=st.scope,nn=st.prefixCls,An=st.className,Bt=st.align,rn=st.record,Ln=st.render,dr=st.dataIndex,tr=st.renderIndex,br=st.shouldCellUpdate,hr=st.index,Tr=st.rowType,Hr=st.colSpan,fi=st.rowSpan,Jr=st.fixLeft,Ai=st.fixRight,si=st.firstFixLeft,ti=st.lastFixLeft,ei=st.firstFixRight,$r=st.lastFixRight,Lr=st.appendNode,qr=st.additionalProps,Zr=qr===void 0?{}:qr,bi=st.isSticky,ui="".concat(nn,"-cell"),Ci=Ie(Be,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Ti=Ci.supportSticky,xA=Ci.allColumnsFixedLeft,gA=Ci.rowHoverable,la=vt(rn,dr,tr,tn,Ln,br),dA=(0,Me.Z)(la,2),qi=dA[0],tA=dA[1],nA={},EA=typeof Jr=="number"&&Ti,hA=typeof Ai=="number"&&Ti;EA&&(nA.position="sticky",nA.left=Jr),hA&&(nA.position="sticky",nA.right=Ai);var yA=(Rt=(kt=(Ht=tA==null?void 0:tA.colSpan)!==null&&Ht!==void 0?Ht:Zr.colSpan)!==null&&kt!==void 0?kt:Hr)!==null&&Rt!==void 0?Rt:1,wA=(Zt=(gn=(On=tA==null?void 0:tA.rowSpan)!==null&&On!==void 0?On:Zr.rowSpan)!==null&&gn!==void 0?gn:fi)!==null&&Zt!==void 0?Zt:1,ni=Yt(hr,wA),mi=(0,Me.Z)(ni,2),Ei=mi[0],Fi=mi[1],Ni=(0,jn.zX)(function(ai){var wi;rn&&Fi(hr,hr+wA-1),Zr==null||(wi=Zr.onMouseEnter)===null||wi===void 0||wi.call(Zr,ai)}),Xi=(0,jn.zX)(function(ai){var wi;rn&&Fi(-1,-1),Zr==null||(wi=Zr.onMouseLeave)===null||wi===void 0||wi.call(Zr,ai)});if(yA===0||wA===0)return null;var Mi=($e=Zr.title)!==null&&$e!==void 0?$e:yt({rowType:Tr,ellipsis:sn,children:qi}),BA=ht()(ui,An,(mn={},(0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)(mn,"".concat(ui,"-fix-left"),EA&&Ti),"".concat(ui,"-fix-left-first"),si&&Ti),"".concat(ui,"-fix-left-last"),ti&&Ti),"".concat(ui,"-fix-left-all"),ti&&xA&&Ti),"".concat(ui,"-fix-right"),hA&&Ti),"".concat(ui,"-fix-right-first"),ei&&Ti),"".concat(ui,"-fix-right-last"),$r&&Ti),"".concat(ui,"-ellipsis"),sn),"".concat(ui,"-with-append"),Lr),"".concat(ui,"-fix-sticky"),(EA||hA)&&bi&&Ti),(0,lt.Z)(mn,"".concat(ui,"-row-hover"),!tA&&Ei)),Zr.className,tA==null?void 0:tA.className),CA={};Bt&&(CA.textAlign=Bt);var Qi=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},tA==null?void 0:tA.style),nA),CA),Zr.style),pr=qi;return(0,Pe.Z)(pr)==="object"&&!Array.isArray(pr)&&!de.isValidElement(pr)&&(pr=null),sn&&(ti||ei)&&(pr=de.createElement("span",{className:"".concat(ui,"-content")},pr)),de.createElement(Ut,(0,ve.Z)({},tA,Zr,{className:BA,style:Qi,title:Mi,scope:Gt,onMouseEnter:gA?Ni:void 0,onMouseLeave:gA?Xi:void 0,colSpan:yA!==1?yA:null,rowSpan:wA!==1?wA:null}),Lr,pr)}var Dt=de.memo(wn);function un(st,Rt,kt,Ht,Zt){var gn=kt[st]||{},On=kt[Rt]||{},$e,mn;gn.fixed==="left"?$e=Ht.left[Zt==="rtl"?Rt:st]:On.fixed==="right"&&(mn=Ht.right[Zt==="rtl"?st:Rt]);var Ut=!1,tn=!1,sn=!1,Gt=!1,nn=kt[Rt+1],An=kt[st-1],Bt=nn&&!nn.fixed||An&&!An.fixed||kt.every(function(br){return br.fixed==="left"});if(Zt==="rtl"){if($e!==void 0){var rn=An&&An.fixed==="left";Gt=!rn&&Bt}else if(mn!==void 0){var Ln=nn&&nn.fixed==="right";sn=!Ln&&Bt}}else if($e!==void 0){var dr=nn&&nn.fixed==="left";Ut=!dr&&Bt}else if(mn!==void 0){var tr=An&&An.fixed==="right";tn=!tr&&Bt}return{fixLeft:$e,fixRight:mn,lastFixLeft:Ut,firstFixRight:tn,lastFixRight:sn,firstFixLeft:Gt,isSticky:Ht.isSticky}}var ln=de.createContext({}),ge=ln;function ue(st){var Rt=st.className,kt=st.index,Ht=st.children,Zt=st.colSpan,gn=Zt===void 0?1:Zt,On=st.rowSpan,$e=st.align,mn=Ie(Be,["prefixCls","direction"]),Ut=mn.prefixCls,tn=mn.direction,sn=de.useContext(ge),Gt=sn.scrollColumnIndex,nn=sn.stickyOffsets,An=sn.flattenColumns,Bt=kt+gn-1,rn=Bt+1===Gt?gn+1:gn,Ln=un(kt,kt+rn-1,An,nn,tn);return de.createElement(Dt,(0,ve.Z)({className:Rt,index:kt,component:"td",prefixCls:Ut,record:null,dataIndex:null,align:$e,colSpan:rn,rowSpan:On,render:function(){return Ht}},Ln))}var ee=fe(43079),b=["children"];function ae(st){var Rt=st.children,kt=(0,ee.Z)(st,b);return de.createElement("tr",kt,Rt)}function ie(st){var Rt=st.children;return Rt}ie.Row=ae,ie.Cell=ue;var he=ie;function Ye(st){var Rt=st.children,kt=st.stickyOffsets,Ht=st.flattenColumns,Zt=Ie(Be,"prefixCls"),gn=Ht.length-1,On=Ht[gn],$e=de.useMemo(function(){return{stickyOffsets:kt,flattenColumns:Ht,scrollColumnIndex:On!=null&&On.scrollbar?gn:null}},[On,Ht,gn,kt]);return de.createElement(ge.Provider,{value:$e},de.createElement("tfoot",{className:"".concat(Zt,"-summary")},Rt))}var pt=Oe(Ye),zt=he,ct=fe(29301),bt=fe(24514),Et=fe(75152),en=fe(26112);function Dn(st,Rt,kt,Ht,Zt,gn,On){st.push({record:Rt,indent:kt,index:On});var $e=gn(Rt),mn=Zt==null?void 0:Zt.has($e);if(Rt&&Array.isArray(Rt[Ht])&&mn)for(var Ut=0;Ut<Rt[Ht].length;Ut+=1)Dn(st,Rt[Ht][Ut],kt+1,Ht,Zt,gn,Ut)}function Mt(st,Rt,kt,Ht){var Zt=de.useMemo(function(){if(kt!=null&&kt.size){for(var gn=[],On=0;On<(st==null?void 0:st.length);On+=1){var $e=st[On];Dn(gn,$e,0,Rt,kt,Ht,On)}return gn}return st==null?void 0:st.map(function(mn,Ut){return{record:mn,indent:0,index:Ut}})},[st,Rt,kt,Ht]);return Zt}function tt(st,Rt,kt,Ht){var Zt=Ie(Be,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),gn=Zt.flattenColumns,On=Zt.expandableType,$e=Zt.expandedKeys,mn=Zt.childrenColumnName,Ut=Zt.onTriggerExpand,tn=Zt.rowExpandable,sn=Zt.onRow,Gt=Zt.expandRowByClick,nn=Zt.rowClassName,An=On==="nest",Bt=On==="row"&&(!tn||tn(st)),rn=Bt||An,Ln=$e&&$e.has(Rt),dr=mn&&st&&st[mn],tr=(0,jn.zX)(Ut),br=sn==null?void 0:sn(st,kt),hr=br==null?void 0:br.onClick,Tr=function(Ai){Gt&&rn&&Ut(st,Ai);for(var si=arguments.length,ti=new Array(si>1?si-1:0),ei=1;ei<si;ei++)ti[ei-1]=arguments[ei];hr==null||hr.apply(void 0,[Ai].concat(ti))},Hr;typeof nn=="string"?Hr=nn:typeof nn=="function"&&(Hr=nn(st,kt,Ht));var fi=xe(gn);return(0,Ge.Z)((0,Ge.Z)({},Zt),{},{columnsKey:fi,nestExpandable:An,expanded:Ln,hasNestChildren:dr,record:st,onTriggerExpand:tr,rowSupportExpand:Bt,expandable:rn,rowProps:(0,Ge.Z)((0,Ge.Z)({},br),{},{className:ht()(Hr,br==null?void 0:br.className),onClick:Tr})})}function on(st){var Rt=st.prefixCls,kt=st.children,Ht=st.component,Zt=st.cellComponent,gn=st.className,On=st.expanded,$e=st.colSpan,mn=st.isEmpty,Ut=Ie(Be,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),tn=Ut.scrollbarSize,sn=Ut.fixHeader,Gt=Ut.fixColumn,nn=Ut.componentWidth,An=Ut.horizonScroll,Bt=kt;return(mn?An&&nn:Gt)&&(Bt=de.createElement("div",{style:{width:nn-(sn&&!mn?tn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Rt,"-expanded-row-fixed")},Bt)),de.createElement(Ht,{className:gn,style:{display:On?null:"none"}},de.createElement(Dt,{component:Zt,prefixCls:Rt,colSpan:$e},Bt))}var jt=on;function qt(st){var Rt=st.prefixCls,kt=st.record,Ht=st.onExpand,Zt=st.expanded,gn=st.expandable,On="".concat(Rt,"-row-expand-icon");if(!gn)return de.createElement("span",{className:ht()(On,"".concat(Rt,"-row-spaced"))});var $e=function(Ut){Ht(kt,Ut),Ut.stopPropagation()};return de.createElement("span",{className:ht()(On,(0,lt.Z)((0,lt.Z)({},"".concat(Rt,"-row-expanded"),Zt),"".concat(Rt,"-row-collapsed"),!Zt)),onClick:$e})}function wt(st,Rt,kt){var Ht=[];function Zt(gn){(gn||[]).forEach(function(On,$e){Ht.push(Rt(On,$e)),Zt(On[kt])})}return Zt(st),Ht}function Rn(st,Rt,kt,Ht){return typeof st=="string"?st:typeof st=="function"?st(Rt,kt,Ht):""}function Wt(st,Rt,kt,Ht,Zt){var gn=st.record,On=st.prefixCls,$e=st.columnsKey,mn=st.fixedInfoList,Ut=st.expandIconColumnIndex,tn=st.nestExpandable,sn=st.indentSize,Gt=st.expandIcon,nn=st.expanded,An=st.hasNestChildren,Bt=st.onTriggerExpand,rn=$e[kt],Ln=mn[kt],dr;kt===(Ut||0)&&tn&&(dr=de.createElement(de.Fragment,null,de.createElement("span",{style:{paddingLeft:"".concat(sn*Ht,"px")},className:"".concat(On,"-row-indent indent-level-").concat(Ht)}),Gt({prefixCls:On,expanded:nn,expandable:An,record:gn,onExpand:Bt})));var tr;return Rt.onCell&&(tr=Rt.onCell(gn,Zt)),{key:rn,fixedInfo:Ln,appendCellNode:dr,additionalCellProps:tr||{}}}function Cn(st){var Rt=st.className,kt=st.style,Ht=st.record,Zt=st.index,gn=st.renderIndex,On=st.rowKey,$e=st.indent,mn=$e===void 0?0:$e,Ut=st.rowComponent,tn=st.cellComponent,sn=st.scopeCellComponent,Gt=tt(Ht,On,Zt,mn),nn=Gt.prefixCls,An=Gt.flattenColumns,Bt=Gt.expandedRowClassName,rn=Gt.expandedRowRender,Ln=Gt.rowProps,dr=Gt.expanded,tr=Gt.rowSupportExpand,br=de.useRef(!1);br.current||(br.current=dr);var hr=Rn(Bt,Ht,Zt,mn),Tr=de.createElement(Ut,(0,ve.Z)({},Ln,{"data-row-key":On,className:ht()(Rt,"".concat(nn,"-row"),"".concat(nn,"-row-level-").concat(mn),Ln==null?void 0:Ln.className,(0,lt.Z)({},hr,mn>=1)),style:(0,Ge.Z)((0,Ge.Z)({},kt),Ln==null?void 0:Ln.style)}),An.map(function(Jr,Ai){var si=Jr.render,ti=Jr.dataIndex,ei=Jr.className,$r=Wt(Gt,Jr,Ai,mn,Zt),Lr=$r.key,qr=$r.fixedInfo,Zr=$r.appendCellNode,bi=$r.additionalCellProps;return de.createElement(Dt,(0,ve.Z)({className:ei,ellipsis:Jr.ellipsis,align:Jr.align,scope:Jr.rowScope,component:Jr.rowScope?sn:tn,prefixCls:nn,key:Lr,record:Ht,index:Zt,renderIndex:gn,dataIndex:ti,render:si,shouldCellUpdate:Jr.shouldCellUpdate},qr,{appendNode:Zr,additionalProps:bi}))})),Hr;if(tr&&(br.current||dr)){var fi=rn(Ht,Zt,mn+1,dr);Hr=de.createElement(jt,{expanded:dr,className:ht()("".concat(nn,"-expanded-row"),"".concat(nn,"-expanded-row-level-").concat(mn+1),hr),prefixCls:nn,component:Ut,cellComponent:tn,colSpan:An.length,isEmpty:!1},fi)}return de.createElement(de.Fragment,null,Tr,Hr)}var Mn=Oe(Cn);function sr(st){var Rt=st.columnKey,kt=st.onColumnResize,Ht=de.useRef();return(0,Ze.Z)(function(){Ht.current&&kt(Rt,Ht.current.offsetWidth)},[]),de.createElement(ct.Z,{data:Rt},de.createElement("td",{ref:Ht,style:{padding:0,border:0,height:0}},de.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var vn=fe(29194);function cr(st){var Rt=st.prefixCls,kt=st.columnsKey,Ht=st.onColumnResize,Zt=de.useRef(null);return de.createElement("tr",{"aria-hidden":"true",className:"".concat(Rt,"-measure-row"),style:{height:0,fontSize:0},ref:Zt},de.createElement(ct.Z.Collection,{onBatchResize:function(On){(0,vn.Z)(Zt.current)&&On.forEach(function($e){var mn=$e.data,Ut=$e.size;Ht(mn,Ut.offsetWidth)})}},kt.map(function(gn){return de.createElement(sr,{key:gn,columnKey:gn,onColumnResize:Ht})})))}function ar(st){var Rt=st.data,kt=st.measureColumnWidth,Ht=Ie(Be,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Zt=Ht.prefixCls,gn=Ht.getComponent,On=Ht.onColumnResize,$e=Ht.flattenColumns,mn=Ht.getRowKey,Ut=Ht.expandedKeys,tn=Ht.childrenColumnName,sn=Ht.emptyNode,Gt=Mt(Rt,tn,Ut,mn),nn=de.useRef({renderWithProps:!1}),An=gn(["body","wrapper"],"tbody"),Bt=gn(["body","row"],"tr"),rn=gn(["body","cell"],"td"),Ln=gn(["body","cell"],"th"),dr;Rt.length?dr=Gt.map(function(br,hr){var Tr=br.record,Hr=br.indent,fi=br.index,Jr=mn(Tr,hr);return de.createElement(Mn,{key:Jr,rowKey:Jr,record:Tr,index:hr,renderIndex:fi,rowComponent:Bt,cellComponent:rn,scopeCellComponent:Ln,indent:Hr})}):dr=de.createElement(jt,{expanded:!0,className:"".concat(Zt,"-placeholder"),prefixCls:Zt,component:Bt,cellComponent:rn,colSpan:$e.length,isEmpty:!0},sn);var tr=xe($e);return de.createElement(fn.Provider,{value:nn.current},de.createElement(An,{className:"".concat(Zt,"-tbody")},kt&&de.createElement(cr,{prefixCls:Zt,columnsKey:tr,onColumnResize:On}),dr))}var mr=Oe(ar),$n=fe(54451),Xr=["columnType"];function Pr(st){for(var Rt=st.colWidths,kt=st.columns,Ht=st.columCount,Zt=Ie(Be,["tableLayout"]),gn=Zt.tableLayout,On=[],$e=Ht||kt.length,mn=!1,Ut=$e-1;Ut>=0;Ut-=1){var tn=Rt[Ut],sn=kt&&kt[Ut],Gt=void 0,nn=void 0;if(sn&&(Gt=sn[$n.v],gn==="auto"&&(nn=sn.minWidth)),tn||nn||Gt||mn){var An=Gt||{},Bt=An.columnType,rn=(0,ee.Z)(An,Xr);On.unshift(de.createElement("col",(0,ve.Z)({key:Ut,style:{width:tn,minWidth:nn}},rn))),mn=!0}}return de.createElement("colgroup",null,On)}var Er=Pr,Ar=fe(3300),Qr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Vn(st,Rt){return(0,de.useMemo)(function(){for(var kt=[],Ht=0;Ht<Rt;Ht+=1){var Zt=st[Ht];if(Zt!==void 0)kt[Ht]=Zt;else return null}return kt},[st.join("_"),Rt])}var qn=de.forwardRef(function(st,Rt){var kt=st.className,Ht=st.noData,Zt=st.columns,gn=st.flattenColumns,On=st.colWidths,$e=st.columCount,mn=st.stickyOffsets,Ut=st.direction,tn=st.fixHeader,sn=st.stickyTopOffset,Gt=st.stickyBottomOffset,nn=st.stickyClassName,An=st.onScroll,Bt=st.maxContentScroll,rn=st.children,Ln=(0,ee.Z)(st,Qr),dr=Ie(Be,["prefixCls","scrollbarSize","isSticky","getComponent"]),tr=dr.prefixCls,br=dr.scrollbarSize,hr=dr.isSticky,Tr=dr.getComponent,Hr=Tr(["header","table"],"table"),fi=hr&&!tn?0:br,Jr=de.useRef(null),Ai=de.useCallback(function(bi){(0,ut.mH)(Rt,bi),(0,ut.mH)(Jr,bi)},[]);de.useEffect(function(){var bi;function ui(Ci){var Ti=Ci,xA=Ti.currentTarget,gA=Ti.deltaX;gA&&(An({currentTarget:xA,scrollLeft:xA.scrollLeft+gA}),Ci.preventDefault())}return(bi=Jr.current)===null||bi===void 0||bi.addEventListener("wheel",ui,{passive:!1}),function(){var Ci;(Ci=Jr.current)===null||Ci===void 0||Ci.removeEventListener("wheel",ui)}},[]);var si=de.useMemo(function(){return gn.every(function(bi){return bi.width})},[gn]),ti=gn[gn.length-1],ei={fixed:ti?ti.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(tr,"-cell-scrollbar")}}},$r=(0,de.useMemo)(function(){return fi?[].concat((0,Ar.Z)(Zt),[ei]):Zt},[fi,Zt]),Lr=(0,de.useMemo)(function(){return fi?[].concat((0,Ar.Z)(gn),[ei]):gn},[fi,gn]),qr=(0,de.useMemo)(function(){var bi=mn.right,ui=mn.left;return(0,Ge.Z)((0,Ge.Z)({},mn),{},{left:Ut==="rtl"?[].concat((0,Ar.Z)(ui.map(function(Ci){return Ci+fi})),[0]):ui,right:Ut==="rtl"?bi:[].concat((0,Ar.Z)(bi.map(function(Ci){return Ci+fi})),[0]),isSticky:hr})},[fi,mn,hr]),Zr=Vn(On,$e);return de.createElement("div",{style:(0,Ge.Z)({overflow:"hidden"},hr?{top:sn,bottom:Gt}:{}),ref:Ai,className:ht()(kt,(0,lt.Z)({},nn,!!nn))},de.createElement(Hr,{style:{tableLayout:"fixed",visibility:Ht||Zr?null:"hidden"}},(!Ht||!Bt||si)&&de.createElement(Er,{colWidths:Zr?[].concat((0,Ar.Z)(Zr),[fi]):[],columCount:$e+1,columns:Lr}),rn((0,Ge.Z)((0,Ge.Z)({},Ln),{},{stickyOffsets:qr,columns:$r,flattenColumns:Lr}))))}),Yn=de.memo(qn),pn=function(Rt){var kt=Rt.cells,Ht=Rt.stickyOffsets,Zt=Rt.flattenColumns,gn=Rt.rowComponent,On=Rt.cellComponent,$e=Rt.onHeaderRow,mn=Rt.index,Ut=Ie(Be,["prefixCls","direction"]),tn=Ut.prefixCls,sn=Ut.direction,Gt;$e&&(Gt=$e(kt.map(function(An){return An.column}),mn));var nn=xe(kt.map(function(An){return An.column}));return de.createElement(gn,Gt,kt.map(function(An,Bt){var rn=An.column,Ln=un(An.colStart,An.colEnd,Zt,Ht,sn),dr;return rn&&rn.onHeaderCell&&(dr=An.column.onHeaderCell(rn)),de.createElement(Dt,(0,ve.Z)({},An,{scope:rn.title?An.colSpan>1?"colgroup":"col":null,ellipsis:rn.ellipsis,align:rn.align,component:On,prefixCls:tn,key:nn[Bt]},Ln,{additionalProps:dr,rowType:"header"}))}))},Wn=pn;function cn(st){var Rt=[];function kt(On,$e){var mn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Rt[mn]=Rt[mn]||[];var Ut=$e,tn=On.filter(Boolean).map(function(sn){var Gt={key:sn.key,className:sn.className||"",children:sn.title,column:sn,colStart:Ut},nn=1,An=sn.children;return An&&An.length>0&&(nn=kt(An,Ut,mn+1).reduce(function(Bt,rn){return Bt+rn},0),Gt.hasSubColumns=!0),"colSpan"in sn&&(nn=sn.colSpan),"rowSpan"in sn&&(Gt.rowSpan=sn.rowSpan),Gt.colSpan=nn,Gt.colEnd=Gt.colStart+nn-1,Rt[mn].push(Gt),Ut+=nn,nn});return tn}kt(st,0);for(var Ht=Rt.length,Zt=function($e){Rt[$e].forEach(function(mn){!("rowSpan"in mn)&&!mn.hasSubColumns&&(mn.rowSpan=Ht-$e)})},gn=0;gn<Ht;gn+=1)Zt(gn);return Rt}var Sn=function(Rt){var kt=Rt.stickyOffsets,Ht=Rt.columns,Zt=Rt.flattenColumns,gn=Rt.onHeaderRow,On=Ie(Be,["prefixCls","getComponent"]),$e=On.prefixCls,mn=On.getComponent,Ut=de.useMemo(function(){return cn(Ht)},[Ht]),tn=mn(["header","wrapper"],"thead"),sn=mn(["header","row"],"tr"),Gt=mn(["header","cell"],"th");return de.createElement(tn,{className:"".concat($e,"-thead")},Ut.map(function(nn,An){var Bt=de.createElement(Wn,{key:An,flattenColumns:Zt,cells:nn,stickyOffsets:kt,rowComponent:sn,cellComponent:Gt,onHeaderRow:gn,index:An});return Bt}))},fr=Oe(Sn),ir=fe(97347);function lr(st,Rt,kt){var Ht=(0,$n.g)(st),Zt=Ht.expandIcon,gn=Ht.expandedRowKeys,On=Ht.defaultExpandedRowKeys,$e=Ht.defaultExpandAllRows,mn=Ht.expandedRowRender,Ut=Ht.onExpand,tn=Ht.onExpandedRowsChange,sn=Ht.childrenColumnName,Gt=Zt||qt,nn=sn||"children",An=de.useMemo(function(){return mn?"row":st.expandable&&st.internalHooks===re.R&&st.expandable.__PARENT_RENDER_ICON__||Rt.some(function(hr){return hr&&(0,Pe.Z)(hr)==="object"&&hr[nn]})?"nest":!1},[!!mn,Rt]),Bt=de.useState(function(){return On||($e?wt(Rt,kt,nn):[])}),rn=(0,Me.Z)(Bt,2),Ln=rn[0],dr=rn[1],tr=de.useMemo(function(){return new Set(gn||Ln||[])},[gn,Ln]),br=de.useCallback(function(hr){var Tr=kt(hr,Rt.indexOf(hr)),Hr,fi=tr.has(Tr);fi?(tr.delete(Tr),Hr=(0,Ar.Z)(tr)):Hr=[].concat((0,Ar.Z)(tr),[Tr]),dr(Hr),Ut&&Ut(!fi,hr),tn&&tn(Hr)},[kt,tr,Rt,Ut,tn]);return[Ht,An,tr,Gt,nn,br]}function xr(st,Rt,kt){var Ht=st.map(function(Zt,gn){return un(gn,gn,st,Rt,kt)});return(0,et.Z)(function(){return Ht},[Ht],function(Zt,gn){return!(0,Ee.Z)(Zt,gn)})}function Wr(st){var Rt=(0,de.useRef)(st),kt=(0,de.useState)({}),Ht=(0,Me.Z)(kt,2),Zt=Ht[1],gn=(0,de.useRef)(null),On=(0,de.useRef)([]);function $e(mn){On.current.push(mn);var Ut=Promise.resolve();gn.current=Ut,Ut.then(function(){if(gn.current===Ut){var tn=On.current,sn=Rt.current;On.current=[],tn.forEach(function(Gt){Rt.current=Gt(Rt.current)}),gn.current=null,sn!==Rt.current&&Zt({})}})}return(0,de.useEffect)(function(){return function(){gn.current=null}},[]),[Rt.current,$e]}function Dr(st){var Rt=(0,de.useRef)(st||null),kt=(0,de.useRef)();function Ht(){window.clearTimeout(kt.current)}function Zt(On){Rt.current=On,Ht(),kt.current=window.setTimeout(function(){Rt.current=null,kt.current=void 0},100)}function gn(){return Rt.current}return(0,de.useEffect)(function(){return Ht},[]),[Zt,gn]}function Fr(){var st=de.useState(-1),Rt=(0,Me.Z)(st,2),kt=Rt[0],Ht=Rt[1],Zt=de.useState(-1),gn=(0,Me.Z)(Zt,2),On=gn[0],$e=gn[1],mn=de.useCallback(function(Ut,tn){Ht(Ut),$e(tn)},[]);return[kt,On,mn]}var Rr=fe(47273),Xn=(0,Rr.Z)()?window:null;function yn(st,Rt){var kt=(0,Pe.Z)(st)==="object"?st:{},Ht=kt.offsetHeader,Zt=Ht===void 0?0:Ht,gn=kt.offsetSummary,On=gn===void 0?0:gn,$e=kt.offsetScroll,mn=$e===void 0?0:$e,Ut=kt.getContainer,tn=Ut===void 0?function(){return Xn}:Ut,sn=tn()||Xn,Gt=!!st;return de.useMemo(function(){return{isSticky:Gt,stickyClassName:Gt?"".concat(Rt,"-sticky-holder"):"",offsetHeader:Zt,offsetSummary:On,offsetScroll:mn,container:sn}},[Gt,mn,Zt,On,Rt,sn])}function rt(st,Rt,kt){var Ht=(0,de.useMemo)(function(){var Zt=Rt.length,gn=function(Ut,tn,sn){for(var Gt=[],nn=0,An=Ut;An!==tn;An+=sn)Gt.push(nn),Rt[An].fixed&&(nn+=st[An]||0);return Gt},On=gn(0,Zt,1),$e=gn(Zt-1,-1,-1).reverse();return kt==="rtl"?{left:$e,right:On}:{left:On,right:$e}},[st,Rt,kt]);return Ht}var Sr=rt;function Kr(st){var Rt=st.className,kt=st.children;return de.createElement("div",{className:Rt},kt)}var _t=Kr,St=fe(8224),Jn=fe(16089),Hn=fe(76846);function Ot(st){var Rt=(0,Hn.bn)(st),kt=Rt.getBoundingClientRect(),Ht=document.documentElement;return{left:kt.left+(window.pageXOffset||Ht.scrollLeft)-(Ht.clientLeft||document.body.clientLeft||0),top:kt.top+(window.pageYOffset||Ht.scrollTop)-(Ht.clientTop||document.body.clientTop||0)}}var kn=function(Rt,kt){var Ht,Zt,gn=Rt.scrollBodyRef,On=Rt.onScroll,$e=Rt.offsetScroll,mn=Rt.container,Ut=Rt.direction,tn=Ie(Be,"prefixCls"),sn=((Ht=gn.current)===null||Ht===void 0?void 0:Ht.scrollWidth)||0,Gt=((Zt=gn.current)===null||Zt===void 0?void 0:Zt.clientWidth)||0,nn=sn&&Gt*(Gt/sn),An=de.useRef(),Bt=Wr({scrollLeft:0,isHiddenScrollBar:!0}),rn=(0,Me.Z)(Bt,2),Ln=rn[0],dr=rn[1],tr=de.useRef({delta:0,x:0}),br=de.useState(!1),hr=(0,Me.Z)(br,2),Tr=hr[0],Hr=hr[1],fi=de.useRef(null);de.useEffect(function(){return function(){Jn.Z.cancel(fi.current)}},[]);var Jr=function(){Hr(!1)},Ai=function(Lr){Lr.persist(),tr.current.delta=Lr.pageX-Ln.scrollLeft,tr.current.x=0,Hr(!0),Lr.preventDefault()},si=function(Lr){var qr,Zr=Lr||((qr=window)===null||qr===void 0?void 0:qr.event),bi=Zr.buttons;if(!Tr||bi===0){Tr&&Hr(!1);return}var ui=tr.current.x+Lr.pageX-tr.current.x-tr.current.delta,Ci=Ut==="rtl";ui=Math.max(Ci?nn-Gt:0,Math.min(Ci?0:Gt-nn,ui));var Ti=!Ci||Math.abs(ui)+Math.abs(nn)<Gt;Ti&&(On({scrollLeft:ui/Gt*(sn+2)}),tr.current.x=Lr.pageX)},ti=function(){Jn.Z.cancel(fi.current),fi.current=(0,Jn.Z)(function(){if(gn.current){var Lr=Ot(gn.current).top,qr=Lr+gn.current.offsetHeight,Zr=mn===window?document.documentElement.scrollTop+window.innerHeight:Ot(mn).top+mn.clientHeight;qr-(0,Et.Z)()<=Zr||Lr>=Zr-$e?dr(function(bi){return(0,Ge.Z)((0,Ge.Z)({},bi),{},{isHiddenScrollBar:!0})}):dr(function(bi){return(0,Ge.Z)((0,Ge.Z)({},bi),{},{isHiddenScrollBar:!1})})}})},ei=function(Lr){dr(function(qr){return(0,Ge.Z)((0,Ge.Z)({},qr),{},{scrollLeft:Lr/sn*Gt||0})})};return de.useImperativeHandle(kt,function(){return{setScrollLeft:ei,checkScrollBarVisible:ti}}),de.useEffect(function(){var $r=(0,St.Z)(document.body,"mouseup",Jr,!1),Lr=(0,St.Z)(document.body,"mousemove",si,!1);return ti(),function(){$r.remove(),Lr.remove()}},[nn,Tr]),de.useEffect(function(){if(gn.current){for(var $r=[],Lr=(0,Hn.bn)(gn.current);Lr;)$r.push(Lr),Lr=Lr.parentElement;return $r.forEach(function(qr){return qr.addEventListener("scroll",ti,!1)}),window.addEventListener("resize",ti,!1),window.addEventListener("scroll",ti,!1),mn.addEventListener("scroll",ti,!1),function(){$r.forEach(function(qr){return qr.removeEventListener("scroll",ti)}),window.removeEventListener("resize",ti),window.removeEventListener("scroll",ti),mn.removeEventListener("scroll",ti)}}},[mn]),de.useEffect(function(){Ln.isHiddenScrollBar||dr(function($r){var Lr=gn.current;return Lr?(0,Ge.Z)((0,Ge.Z)({},$r),{},{scrollLeft:Lr.scrollLeft/Lr.scrollWidth*Lr.clientWidth}):$r})},[Ln.isHiddenScrollBar]),sn<=Gt||!nn||Ln.isHiddenScrollBar?null:de.createElement("div",{style:{height:(0,Et.Z)(),width:Gt,bottom:$e},className:"".concat(tn,"-sticky-scroll")},de.createElement("div",{onMouseDown:Ai,ref:An,className:ht()("".concat(tn,"-sticky-scroll-bar"),(0,lt.Z)({},"".concat(tn,"-sticky-scroll-bar-active"),Tr)),style:{width:"".concat(nn,"px"),transform:"translate3d(".concat(Ln.scrollLeft,"px, 0, 0)")}}))},nr=de.forwardRef(kn);function rr(st){return null}var er=rr;function ur(st){return null}var wr=ur,It="rc-table",an=[],mt={};function dn(){return"No Data"}function Tn(st,Rt){var kt=(0,Ge.Z)({rowKey:"key",prefixCls:It,emptyText:dn},st),Ht=kt.prefixCls,Zt=kt.className,gn=kt.rowClassName,On=kt.style,$e=kt.data,mn=kt.rowKey,Ut=kt.scroll,tn=kt.tableLayout,sn=kt.direction,Gt=kt.title,nn=kt.footer,An=kt.summary,Bt=kt.caption,rn=kt.id,Ln=kt.showHeader,dr=kt.components,tr=kt.emptyText,br=kt.onRow,hr=kt.onHeaderRow,Tr=kt.onScroll,Hr=kt.internalHooks,fi=kt.transformColumns,Jr=kt.internalRefs,Ai=kt.tailor,si=kt.getContainerWidth,ti=kt.sticky,ei=kt.rowHoverable,$r=ei===void 0?!0:ei,Lr=$e||an,qr=!!Lr.length,Zr=Hr===re.R,bi=de.useCallback(function(zi,Wi){return(0,ft.Z)(dr,zi)||Wi},[dr]),ui=de.useMemo(function(){return typeof mn=="function"?mn:function(zi){var Wi=zi&&zi[mn];return Wi}},[mn]),Ci=bi(["body"]),Ti=Fr(),xA=(0,Me.Z)(Ti,3),gA=xA[0],la=xA[1],dA=xA[2],qi=lr(kt,Lr,ui),tA=(0,Me.Z)(qi,6),nA=tA[0],EA=tA[1],hA=tA[2],yA=tA[3],wA=tA[4],ni=tA[5],mi=Ut==null?void 0:Ut.x,Ei=de.useState(0),Fi=(0,Me.Z)(Ei,2),Ni=Fi[0],Xi=Fi[1],Mi=(0,ir.Z)((0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},kt),nA),{},{expandable:!!nA.expandedRowRender,columnTitle:nA.columnTitle,expandedKeys:hA,getRowKey:ui,onTriggerExpand:ni,expandIcon:yA,expandIconColumnIndex:nA.expandIconColumnIndex,direction:sn,scrollWidth:Zr&&Ai&&typeof mi=="number"?mi:null,clientWidth:Ni}),Zr?fi:null),BA=(0,Me.Z)(Mi,4),CA=BA[0],Qi=BA[1],pr=BA[2],ai=BA[3],wi=pr!=null?pr:mi,UA=de.useMemo(function(){return{columns:CA,flattenColumns:Qi}},[CA,Qi]),ji=de.useRef(),DA=de.useRef(),Li=de.useRef(),_a=de.useRef();de.useImperativeHandle(Rt,function(){return{nativeElement:ji.current,scrollTo:function(Wi){var zA;if(Li.current instanceof HTMLElement){var WA=Wi.index,ta=Wi.top,fo=Wi.key;if(Fn(ta)){var Ja;(Ja=Li.current)===null||Ja===void 0||Ja.scrollTo({top:ta})}else{var ho,Na=fo!=null?fo:ui(Lr[WA]);(ho=Li.current.querySelector('[data-row-key="'.concat(Na,'"]')))===null||ho===void 0||ho.scrollIntoView()}}else(zA=Li.current)!==null&&zA!==void 0&&zA.scrollTo&&Li.current.scrollTo(Wi)}}});var fa=de.useRef(),KA=de.useState(!1),Vi=(0,Me.Z)(KA,2),Oi=Vi[0],wa=Vi[1],Ba=de.useState(!1),ra=(0,Me.Z)(Ba,2),ZA=ra[0],Ka=ra[1],ka=de.useState(new Map),HA=(0,Me.Z)(ka,2),ia=HA[0],vA=HA[1],uA=xe(Qi),ua=uA.map(function(zi){return ia.get(zi)}),Ua=de.useMemo(function(){return ua},[ua.join("_")]),Da=Sr(Ua,Qi,sn),JA=Ut&&Lt(Ut.y),fA=Ut&&Lt(wi)||!!nA.fixed,Hi=fA&&Qi.some(function(zi){var Wi=zi.fixed;return Wi}),Di=de.useRef(),pA=yn(ti,Ht),rA=pA.isSticky,OA=pA.offsetHeader,NA=pA.offsetSummary,Ia=pA.offsetScroll,Ca=pA.stickyClassName,Qa=pA.container,iA=de.useMemo(function(){return An==null?void 0:An(Lr)},[An,Lr]),qA=(JA||rA)&&de.isValidElement(iA)&&iA.type===he&&iA.props.fixed,ga,La,Va;JA&&(La={overflowY:qr?"scroll":"auto",maxHeight:Ut.y}),fA&&(ga={overflowX:"auto"},JA||(La={overflowY:"hidden"}),Va={width:wi===!0?"auto":wi,minWidth:"100%"});var jo=de.useCallback(function(zi,Wi){vA(function(zA){if(zA.get(zi)!==Wi){var WA=new Map(zA);return WA.set(zi,Wi),WA}return zA})},[]),Do=Dr(null),Za=(0,Me.Z)(Do,2),ja=Za[0],$A=Za[1];function ea(zi,Wi){Wi&&(typeof Wi=="function"?Wi(zi):Wi.scrollLeft!==zi&&(Wi.scrollLeft=zi,Wi.scrollLeft!==zi&&setTimeout(function(){Wi.scrollLeft=zi},0)))}var ca=(0,De.Z)(function(zi){var Wi=zi.currentTarget,zA=zi.scrollLeft,WA=sn==="rtl",ta=typeof zA=="number"?zA:Wi.scrollLeft,fo=Wi||mt;if(!$A()||$A()===fo){var Ja;ja(fo),ea(ta,DA.current),ea(ta,Li.current),ea(ta,fa.current),ea(ta,(Ja=Di.current)===null||Ja===void 0?void 0:Ja.setScrollLeft)}var ho=Wi||DA.current;if(ho){var Na=Zr&&Ai&&typeof wi=="number"?wi:ho.scrollWidth,qa=ho.clientWidth;if(Na===qa){wa(!1),Ka(!1);return}WA?(wa(-ta<Na-qa),Ka(-ta>0)):(wa(ta>0),Ka(ta<Na-qa))}}),mo=(0,De.Z)(function(zi){ca(zi),Tr==null||Tr(zi)}),Io=function(){if(fA&&Li.current){var Wi;ca({currentTarget:(0,Hn.bn)(Li.current),scrollLeft:(Wi=Li.current)===null||Wi===void 0?void 0:Wi.scrollLeft})}else wa(!1),Ka(!1)},ls=function(Wi){var zA,WA=Wi.width;(zA=Di.current)===null||zA===void 0||zA.checkScrollBarVisible();var ta=ji.current?ji.current.offsetWidth:WA;Zr&&si&&ji.current&&(ta=si(ji.current,ta)||ta),ta!==Ni&&(Io(),Xi(ta))},za=de.useRef(!1);de.useEffect(function(){za.current&&Io()},[fA,$e,CA.length]),de.useEffect(function(){za.current=!0},[]);var us=de.useState(0),Yo=(0,Me.Z)(us,2),Ta=Yo[0],Qo=Yo[1],Lo=de.useState(!0),Xo=(0,Me.Z)(Lo,2),Jo=Xo[0],qo=Xo[1];(0,Ze.Z)(function(){(!Ai||!Zr)&&(Li.current instanceof Element?Qo((0,Et.o)(Li.current).width):Qo((0,Et.o)(_a.current).width)),qo((0,bt.G)("position","sticky"))},[]),de.useEffect(function(){Zr&&Jr&&(Jr.body.current=Li.current)});var lo=de.useCallback(function(zi){return de.createElement(de.Fragment,null,de.createElement(fr,zi),qA==="top"&&de.createElement(pt,zi,iA))},[qA,iA]),yo=de.useCallback(function(zi){return de.createElement(pt,zi,iA)},[iA]),Ya=bi(["table"],"table"),to=de.useMemo(function(){return tn||(Hi?wi==="max-content"?"auto":"fixed":JA||rA||Qi.some(function(zi){var Wi=zi.ellipsis;return Wi})?"fixed":"auto")},[JA,Hi,Qi,tn,rA]),IA,uo={colWidths:Ua,columCount:Qi.length,stickyOffsets:Da,onHeaderRow:hr,fixHeader:JA,scroll:Ut},cs=de.useMemo(function(){return qr?null:typeof tr=="function"?tr():tr},[qr,tr]),$o=de.createElement(mr,{data:Lr,measureColumnWidth:JA||fA||rA}),es=de.createElement(Er,{colWidths:Qi.map(function(zi){var Wi=zi.width;return Wi}),columns:Qi}),wo=Bt!=null?de.createElement("caption",{className:"".concat(Ht,"-caption")},Bt):void 0,no=(0,en.Z)(kt,{data:!0}),fs=(0,en.Z)(kt,{aria:!0});if(JA||rA){var Bo;typeof Ci=="function"?(Bo=Ci(Lr,{scrollbarSize:Ta,ref:Li,onScroll:ca}),uo.colWidths=Qi.map(function(zi,Wi){var zA=zi.width,WA=Wi===Qi.length-1?zA-Ta:zA;return typeof WA=="number"&&!Number.isNaN(WA)?WA:0})):Bo=de.createElement("div",{style:(0,Ge.Z)((0,Ge.Z)({},ga),La),onScroll:mo,ref:Li,className:ht()("".concat(Ht,"-body"))},de.createElement(Ya,(0,ve.Z)({style:(0,Ge.Z)((0,Ge.Z)({},Va),{},{tableLayout:to})},fs),wo,es,$o,!qA&&iA&&de.createElement(pt,{stickyOffsets:Da,flattenColumns:Qi},iA)));var Xa=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({noData:!Lr.length,maxContentScroll:fA&&wi==="max-content"},uo),UA),{},{direction:sn,stickyClassName:Ca,onScroll:ca});IA=de.createElement(de.Fragment,null,Ln!==!1&&de.createElement(Yn,(0,ve.Z)({},Xa,{stickyTopOffset:OA,className:"".concat(Ht,"-header"),ref:DA}),lo),Bo,qA&&qA!=="top"&&de.createElement(Yn,(0,ve.Z)({},Xa,{stickyBottomOffset:NA,className:"".concat(Ht,"-summary"),ref:fa}),yo),rA&&Li.current&&Li.current instanceof Element&&de.createElement(nr,{ref:Di,offsetScroll:Ia,scrollBodyRef:Li,onScroll:ca,container:Qa,direction:sn}))}else IA=de.createElement("div",{style:(0,Ge.Z)((0,Ge.Z)({},ga),La),className:ht()("".concat(Ht,"-content")),onScroll:ca,ref:Li},de.createElement(Ya,(0,ve.Z)({style:(0,Ge.Z)((0,Ge.Z)({},Va),{},{tableLayout:to})},fs),wo,es,Ln!==!1&&de.createElement(fr,(0,ve.Z)({},uo,UA)),$o,iA&&de.createElement(pt,{stickyOffsets:Da,flattenColumns:Qi},iA)));var ro=de.createElement("div",(0,ve.Z)({className:ht()(Ht,Zt,(0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)((0,lt.Z)({},"".concat(Ht,"-rtl"),sn==="rtl"),"".concat(Ht,"-ping-left"),Oi),"".concat(Ht,"-ping-right"),ZA),"".concat(Ht,"-layout-fixed"),tn==="fixed"),"".concat(Ht,"-fixed-header"),JA),"".concat(Ht,"-fixed-column"),Hi),"".concat(Ht,"-fixed-column-gapped"),Hi&&ai),"".concat(Ht,"-scroll-horizontal"),fA),"".concat(Ht,"-has-fix-left"),Qi[0]&&Qi[0].fixed),"".concat(Ht,"-has-fix-right"),Qi[Qi.length-1]&&Qi[Qi.length-1].fixed==="right")),style:On,id:rn,ref:ji},no),Gt&&de.createElement(_t,{className:"".concat(Ht,"-title")},Gt(Lr)),de.createElement("div",{ref:_a,className:"".concat(Ht,"-container")},IA),nn&&de.createElement(_t,{className:"".concat(Ht,"-footer")},nn(Lr)));fA&&(ro=de.createElement(ct.Z,{onResize:ls},ro));var co=xr(Qi,Da,sn),io=de.useMemo(function(){return{scrollX:wi,prefixCls:Ht,getComponent:bi,scrollbarSize:Ta,direction:sn,fixedInfoList:co,isSticky:rA,supportSticky:Jo,componentWidth:Ni,fixHeader:JA,fixColumn:Hi,horizonScroll:fA,tableLayout:to,rowClassName:gn,expandedRowClassName:nA.expandedRowClassName,expandIcon:yA,expandableType:EA,expandRowByClick:nA.expandRowByClick,expandedRowRender:nA.expandedRowRender,onTriggerExpand:ni,expandIconColumnIndex:nA.expandIconColumnIndex,indentSize:nA.indentSize,allColumnsFixedLeft:Qi.every(function(zi){return zi.fixed==="left"}),emptyNode:cs,columns:CA,flattenColumns:Qi,onColumnResize:jo,hoverStartRow:gA,hoverEndRow:la,onHover:dA,rowExpandable:nA.rowExpandable,onRow:br,getRowKey:ui,expandedKeys:hA,childrenColumnName:wA,rowHoverable:$r}},[wi,Ht,bi,Ta,sn,co,rA,Jo,Ni,JA,Hi,fA,to,gn,nA.expandedRowClassName,yA,EA,nA.expandRowByClick,nA.expandedRowRender,ni,nA.expandIconColumnIndex,nA.indentSize,cs,CA,Qi,jo,gA,la,dA,nA.rowExpandable,br,ui,hA,wA,$r]);return de.createElement(Be.Provider,{value:io},ro)}var Br=de.forwardRef(Tn);function _r(st){return at(Br,st)}var Or=_r();Or.EXPAND_COLUMN=re.w,Or.INTERNAL_HOOKS=re.R,Or.Column=er,Or.ColumnGroup=wr,Or.Summary=zt;var yr=Or,kr=fe(6790),ii=Fe(null),jr=Fe(null);function hi(st,Rt,kt){var Ht=Rt||1;return kt[st+Ht]-(kt[st]||0)}function gi(st){var Rt=st.rowInfo,kt=st.column,Ht=st.colIndex,Zt=st.indent,gn=st.index,On=st.component,$e=st.renderIndex,mn=st.record,Ut=st.style,tn=st.className,sn=st.inverse,Gt=st.getHeight,nn=kt.render,An=kt.dataIndex,Bt=kt.className,rn=kt.width,Ln=Ie(jr,["columnsOffset"]),dr=Ln.columnsOffset,tr=Wt(Rt,kt,Ht,Zt,gn),br=tr.key,hr=tr.fixedInfo,Tr=tr.appendCellNode,Hr=tr.additionalCellProps,fi=Hr.style,Jr=Hr.colSpan,Ai=Jr===void 0?1:Jr,si=Hr.rowSpan,ti=si===void 0?1:si,ei=Ht-1,$r=hi(ei,Ai,dr),Lr=Ai>1?rn-$r:0,qr=(0,Ge.Z)((0,Ge.Z)((0,Ge.Z)({},fi),Ut),{},{flex:"0 0 ".concat($r,"px"),width:"".concat($r,"px"),marginRight:Lr,pointerEvents:"auto"}),Zr=de.useMemo(function(){return sn?ti<=1:Ai===0||ti===0||ti>1},[ti,Ai,sn]);Zr?qr.visibility="hidden":sn&&(qr.height=Gt==null?void 0:Gt(ti));var bi=Zr?function(){return null}:nn,ui={};return(ti===0||Ai===0)&&(ui.rowSpan=1,ui.colSpan=1),de.createElement(Dt,(0,ve.Z)({className:ht()(Bt,tn),ellipsis:kt.ellipsis,align:kt.align,scope:kt.rowScope,component:On,prefixCls:Rt.prefixCls,key:br,record:mn,index:gn,renderIndex:$e,dataIndex:An,render:bi,shouldCellUpdate:kt.shouldCellUpdate},hr,{appendNode:Tr,additionalProps:(0,Ge.Z)((0,Ge.Z)({},Hr),{},{style:qr},ui)}))}var oi=gi,vi=["data","index","className","rowKey","style","extra","getHeight"],Ne=de.forwardRef(function(st,Rt){var kt=st.data,Ht=st.index,Zt=st.className,gn=st.rowKey,On=st.style,$e=st.extra,mn=st.getHeight,Ut=(0,ee.Z)(st,vi),tn=kt.record,sn=kt.indent,Gt=kt.index,nn=Ie(Be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),An=nn.scrollX,Bt=nn.flattenColumns,rn=nn.prefixCls,Ln=nn.fixColumn,dr=nn.componentWidth,tr=Ie(ii,["getComponent"]),br=tr.getComponent,hr=tt(tn,gn,Ht,sn),Tr=br(["body","row"],"div"),Hr=br(["body","cell"],"div"),fi=hr.rowSupportExpand,Jr=hr.expanded,Ai=hr.rowProps,si=hr.expandedRowRender,ti=hr.expandedRowClassName,ei;if(fi&&Jr){var $r=si(tn,Ht,sn+1,Jr),Lr=Rn(ti,tn,Ht,sn),qr={};Ln&&(qr={style:(0,lt.Z)({},"--virtual-width","".concat(dr,"px"))});var Zr="".concat(rn,"-expanded-row-cell");ei=de.createElement(Tr,{className:ht()("".concat(rn,"-expanded-row"),"".concat(rn,"-expanded-row-level-").concat(sn+1),Lr)},de.createElement(Dt,{component:Hr,prefixCls:rn,className:ht()(Zr,(0,lt.Z)({},"".concat(Zr,"-fixed"),Ln)),additionalProps:qr},$r))}var bi=(0,Ge.Z)((0,Ge.Z)({},On),{},{width:An});$e&&(bi.position="absolute",bi.pointerEvents="none");var ui=de.createElement(Tr,(0,ve.Z)({},Ai,Ut,{"data-row-key":gn,ref:fi?null:Rt,className:ht()(Zt,"".concat(rn,"-row"),Ai==null?void 0:Ai.className,(0,lt.Z)({},"".concat(rn,"-row-extra"),$e)),style:(0,Ge.Z)((0,Ge.Z)({},bi),Ai==null?void 0:Ai.style)}),Bt.map(function(Ci,Ti){return de.createElement(oi,{key:Ti,component:Hr,rowInfo:hr,column:Ci,colIndex:Ti,indent:sn,index:Ht,renderIndex:Gt,record:tn,inverse:$e,getHeight:mn})}));return fi?de.createElement("div",{ref:Rt},ui,ei):ui}),_e=Oe(Ne),it=_e,gt=de.forwardRef(function(st,Rt){var kt=st.data,Ht=st.onScroll,Zt=Ie(Be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),gn=Zt.flattenColumns,On=Zt.onColumnResize,$e=Zt.getRowKey,mn=Zt.expandedKeys,Ut=Zt.prefixCls,tn=Zt.childrenColumnName,sn=Zt.scrollX,Gt=Zt.direction,nn=Ie(ii),An=nn.sticky,Bt=nn.scrollY,rn=nn.listItemHeight,Ln=nn.getComponent,dr=nn.onScroll,tr=de.useRef(),br=Mt(kt,tn,mn,$e),hr=de.useMemo(function(){var ei=0;return gn.map(function($r){var Lr=$r.width,qr=$r.key;return ei+=Lr,[qr,Lr,ei]})},[gn]),Tr=de.useMemo(function(){return hr.map(function(ei){return ei[2]})},[hr]);de.useEffect(function(){hr.forEach(function(ei){var $r=(0,Me.Z)(ei,2),Lr=$r[0],qr=$r[1];On(Lr,qr)})},[hr]),de.useImperativeHandle(Rt,function(){var ei,$r={scrollTo:function(qr){var Zr;(Zr=tr.current)===null||Zr===void 0||Zr.scrollTo(qr)},nativeElement:(ei=tr.current)===null||ei===void 0?void 0:ei.nativeElement};return Object.defineProperty($r,"scrollLeft",{get:function(){var qr;return((qr=tr.current)===null||qr===void 0?void 0:qr.getScrollInfo().x)||0},set:function(qr){var Zr;(Zr=tr.current)===null||Zr===void 0||Zr.scrollTo({left:qr})}}),$r});var Hr=function($r,Lr){var qr,Zr=(qr=br[Lr])===null||qr===void 0?void 0:qr.record,bi=$r.onCell;if(bi){var ui,Ci=bi(Zr,Lr);return(ui=Ci==null?void 0:Ci.rowSpan)!==null&&ui!==void 0?ui:1}return 1},fi=function($r){var Lr=$r.start,qr=$r.end,Zr=$r.getSize,bi=$r.offsetY;if(qr<0)return null;for(var ui=gn.filter(function(yA){return Hr(yA,Lr)===0}),Ci=Lr,Ti=function(wA){if(ui=ui.filter(function(ni){return Hr(ni,wA)===0}),!ui.length)return Ci=wA,1},xA=Lr;xA>=0&&!Ti(xA);xA-=1);for(var gA=gn.filter(function(yA){return Hr(yA,qr)!==1}),la=qr,dA=function(wA){if(gA=gA.filter(function(ni){return Hr(ni,wA)!==1}),!gA.length)return la=Math.max(wA-1,qr),1},qi=qr;qi<br.length&&!dA(qi);qi+=1);for(var tA=[],nA=function(wA){var ni=br[wA];if(!ni)return 1;gn.some(function(mi){return Hr(mi,wA)>1})&&tA.push(wA)},EA=Ci;EA<=la;EA+=1)nA(EA);var hA=tA.map(function(yA){var wA=br[yA],ni=$e(wA.record,yA),mi=function(Ni){var Xi=yA+Ni-1,Mi=$e(br[Xi].record,Xi),BA=Zr(ni,Mi);return BA.bottom-BA.top},Ei=Zr(ni);return de.createElement(it,{key:yA,data:wA,rowKey:ni,index:yA,style:{top:-bi+Ei.top},extra:!0,getHeight:mi})});return hA},Jr=de.useMemo(function(){return{columnsOffset:Tr}},[Tr]),Ai="".concat(Ut,"-tbody"),si=Ln(["body","wrapper"]),ti={};return An&&(ti.position="sticky",ti.bottom=0,(0,Pe.Z)(An)==="object"&&An.offsetScroll&&(ti.bottom=An.offsetScroll)),de.createElement(jr.Provider,{value:Jr},de.createElement(kr.Z,{fullHeight:!1,ref:tr,prefixCls:"".concat(Ai,"-virtual"),styles:{horizontalScrollBar:ti},className:Ai,height:Bt,itemHeight:rn||24,data:br,itemKey:function($r){return $e($r.record)},component:si,scrollWidth:sn,direction:Gt,onVirtualScroll:function($r){var Lr,qr=$r.x;Ht({currentTarget:(Lr=tr.current)===null||Lr===void 0?void 0:Lr.nativeElement,scrollLeft:qr})},onScroll:dr,extraRender:fi},function(ei,$r,Lr){var qr=$e(ei.record,$r);return de.createElement(it,{data:ei,rowKey:qr,index:$r,style:Lr.style})}))}),Vt=Oe(gt),Nt=Vt,Qn=function(Rt,kt){var Ht=kt.ref,Zt=kt.onScroll;return de.createElement(Nt,{ref:Ht,data:Rt,onScroll:Zt})};function Nn(st,Rt){var kt=st.data,Ht=st.columns,Zt=st.scroll,gn=st.sticky,On=st.prefixCls,$e=On===void 0?It:On,mn=st.className,Ut=st.listItemHeight,tn=st.components,sn=st.onScroll,Gt=Zt||{},nn=Gt.x,An=Gt.y;typeof nn!="number"&&(nn=1),typeof An!="number"&&(An=500);var Bt=(0,jn.zX)(function(dr,tr){return(0,ft.Z)(tn,dr)||tr}),rn=(0,jn.zX)(sn),Ln=de.useMemo(function(){return{sticky:gn,scrollY:An,listItemHeight:Ut,getComponent:Bt,onScroll:rn}},[gn,An,Ut,Bt,rn]);return de.createElement(ii.Provider,{value:Ln},de.createElement(yr,(0,ve.Z)({},st,{className:ht()(mn,"".concat($e,"-virtual")),scroll:(0,Ge.Z)((0,Ge.Z)({},Zt),{},{x:nn}),components:(0,Ge.Z)((0,Ge.Z)({},tn),{},{body:kt!=null&&kt.length?Qn:void 0}),columns:Ht,internalHooks:re.R,tailor:!0,ref:Rt})))}var Zn=de.forwardRef(Nn);function Gn(st){return at(Zn,st)}var Kn=Gn(),zn=null},54451:function(xn,dt,fe){"use strict";fe.d(dt,{g:function(){return de},v:function(){return Ee}});var re=fe(27247),Me=fe(43079),De=fe(48736),Ze=["expandable"],Ee="RC_TABLE_INTERNAL_COL_DEFINE";function de(ze){var Fe=ze.expandable,Ie=(0,Me.Z)(ze,Ze),ve;return"expandable"in ze?ve=(0,re.Z)((0,re.Z)({},Ie),Fe):ve=Ie,ve.showExpandColumn===!1&&(ve.expandIconColumnIndex=-1),ve}},22711:function(xn,dt,fe){"use strict";fe.r(dt),fe.d(dt,{ResizableTextArea:function(){return je},default:function(){return Tt}});var re=fe(32855),Me=fe(74430),De=fe(27247),Ze=fe(3300),Ee=fe(11913),de=fe(43079),ze=fe(92310),Fe=fe.n(ze),Ie=fe(36901),ve=fe(66003),ut=fe(30292),we=fe(18929),ot=fe(59301),Xe=fe(34666),Je=fe(29301),He=fe(34280),Te=fe(16089),at=`
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;
`,Oe=["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"],We={},be;function Be(Kt){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=Kt.getAttribute("id")||Kt.getAttribute("data-reactid")||Kt.getAttribute("name");if(fn&&We[$t])return We[$t];var Re=window.getComputedStyle(Kt),xe=Re.getPropertyValue("box-sizing")||Re.getPropertyValue("-moz-box-sizing")||Re.getPropertyValue("-webkit-box-sizing"),Lt=parseFloat(Re.getPropertyValue("padding-bottom"))+parseFloat(Re.getPropertyValue("padding-top")),Fn=parseFloat(Re.getPropertyValue("border-bottom-width"))+parseFloat(Re.getPropertyValue("border-top-width")),hn=Oe.map(function(Jt){return"".concat(Jt,":").concat(Re.getPropertyValue(Jt))}).join(";"),vt={sizingStyle:hn,paddingSize:Lt,borderSize:Fn,boxSizing:xe};return fn&&$t&&(We[$t]=vt),vt}function Ue(Kt){var fn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),be.setAttribute("name","hiddenTextarea"),document.body.appendChild(be)),Kt.getAttribute("wrap")?be.setAttribute("wrap",Kt.getAttribute("wrap")):be.removeAttribute("wrap");var xe=Be(Kt,fn),Lt=xe.paddingSize,Fn=xe.borderSize,hn=xe.boxSizing,vt=xe.sizingStyle;be.setAttribute("style","".concat(vt,";").concat(at)),be.value=Kt.value||Kt.placeholder||"";var Jt=void 0,Yt=void 0,jn,yt=be.scrollHeight;if(hn==="border-box"?yt+=Fn:hn==="content-box"&&(yt-=Lt),$t!==null||Re!==null){be.value=" ";var wn=be.scrollHeight-Lt;$t!==null&&(Jt=wn*$t,hn==="border-box"&&(Jt=Jt+Lt+Fn),yt=Math.max(Jt,yt)),Re!==null&&(Yt=wn*Re,hn==="border-box"&&(Yt=Yt+Lt+Fn),jn=yt>Yt?"":"hidden",yt=Math.min(Yt,yt))}var Dt={height:yt,overflowY:jn,resize:"none"};return Jt&&(Dt.minHeight=Jt),Yt&&(Dt.maxHeight=Yt),Dt}var ke=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],qe=0,Pe=1,Ge=2,lt=ot.forwardRef(function(Kt,fn){var $t=Kt,Re=$t.prefixCls,xe=$t.defaultValue,Lt=$t.value,Fn=$t.autoSize,hn=$t.onResize,vt=$t.className,Jt=$t.style,Yt=$t.disabled,jn=$t.onChange,yt=$t.onInternalAutoSize,wn=(0,de.Z)($t,ke),Dt=(0,we.Z)(xe,{value:Lt,postState:function(Mn){return Mn!=null?Mn:""}}),un=(0,Ee.Z)(Dt,2),ln=un[0],ge=un[1],ue=function(Mn){ge(Mn.target.value),jn==null||jn(Mn)},ee=ot.useRef();ot.useImperativeHandle(fn,function(){return{textArea:ee.current}});var b=ot.useMemo(function(){return Fn&&(0,Xe.Z)(Fn)==="object"?[Fn.minRows,Fn.maxRows]:[]},[Fn]),ae=(0,Ee.Z)(b,2),ie=ae[0],he=ae[1],Ye=!!Fn,pt=function(){try{if(document.activeElement===ee.current){var Mn=ee.current,sr=Mn.selectionStart,vn=Mn.selectionEnd,cr=Mn.scrollTop;ee.current.setSelectionRange(sr,vn),ee.current.scrollTop=cr}}catch(ar){}},zt=ot.useState(Ge),ct=(0,Ee.Z)(zt,2),bt=ct[0],Et=ct[1],en=ot.useState(),Dn=(0,Ee.Z)(en,2),Mt=Dn[0],tt=Dn[1],on=function(){Et(qe)};(0,He.Z)(function(){Ye&&on()},[Lt,ie,he,Ye]),(0,He.Z)(function(){if(bt===qe)Et(Pe);else if(bt===Pe){var Cn=Ue(ee.current,!1,ie,he);Et(Ge),tt(Cn)}else pt()},[bt]);var jt=ot.useRef(),qt=function(){Te.Z.cancel(jt.current)},wt=function(Mn){bt===Ge&&(hn==null||hn(Mn),Fn&&(qt(),jt.current=(0,Te.Z)(function(){on()})))};ot.useEffect(function(){return qt},[]);var Rn=Ye?Mt:null,Wt=(0,De.Z)((0,De.Z)({},Jt),Rn);return(bt===qe||bt===Pe)&&(Wt.overflowY="hidden",Wt.overflowX="hidden"),ot.createElement(Je.Z,{onResize:wt,disabled:!(Fn||hn)},ot.createElement("textarea",(0,re.Z)({},wn,{ref:ee,style:Wt,className:Fe()(Re,vt,(0,Me.Z)({},"".concat(Re,"-disabled"),Yt)),disabled:Yt,value:ln,onChange:ue})))}),je=lt,ht=["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"],et=ot.forwardRef(function(Kt,fn){var $t,Re=Kt.defaultValue,xe=Kt.value,Lt=Kt.onFocus,Fn=Kt.onBlur,hn=Kt.onChange,vt=Kt.allowClear,Jt=Kt.maxLength,Yt=Kt.onCompositionStart,jn=Kt.onCompositionEnd,yt=Kt.suffix,wn=Kt.prefixCls,Dt=wn===void 0?"rc-textarea":wn,un=Kt.showCount,ln=Kt.count,ge=Kt.className,ue=Kt.style,ee=Kt.disabled,b=Kt.hidden,ae=Kt.classNames,ie=Kt.styles,he=Kt.onResize,Ye=Kt.onClear,pt=Kt.onPressEnter,zt=Kt.readOnly,ct=Kt.autoSize,bt=Kt.onKeyDown,Et=(0,de.Z)(Kt,ht),en=(0,we.Z)(Re,{value:xe,defaultValue:Re}),Dn=(0,Ee.Z)(en,2),Mt=Dn[0],tt=Dn[1],on=Mt==null?"":String(Mt),jt=ot.useState(!1),qt=(0,Ee.Z)(jt,2),wt=qt[0],Rn=qt[1],Wt=ot.useRef(!1),Cn=ot.useState(null),Mn=(0,Ee.Z)(Cn,2),sr=Mn[0],vn=Mn[1],cr=(0,ot.useRef)(null),ar=(0,ot.useRef)(null),mr=function(){var rt;return(rt=ar.current)===null||rt===void 0?void 0:rt.textArea},$n=function(){mr().focus()};(0,ot.useImperativeHandle)(fn,function(){var yn;return{resizableTextArea:ar.current,focus:$n,blur:function(){mr().blur()},nativeElement:((yn=cr.current)===null||yn===void 0?void 0:yn.nativeElement)||mr()}}),(0,ot.useEffect)(function(){Rn(function(yn){return!ee&&yn})},[ee]);var Xr=ot.useState(null),Pr=(0,Ee.Z)(Xr,2),Er=Pr[0],Ar=Pr[1];ot.useEffect(function(){if(Er){var yn;(yn=mr()).setSelectionRange.apply(yn,(0,Ze.Z)(Er))}},[Er]);var Qr=(0,ve.Z)(ln,un),Vn=($t=Qr.max)!==null&&$t!==void 0?$t:Jt,qn=Number(Vn)>0,Yn=Qr.strategy(on),pn=!!Vn&&Yn>Vn,Wn=function(rt,Sr){var Kr=Sr;!Wt.current&&Qr.exceedFormatter&&Qr.max&&Qr.strategy(Sr)>Qr.max&&(Kr=Qr.exceedFormatter(Sr,{max:Qr.max}),Sr!==Kr&&Ar([mr().selectionStart||0,mr().selectionEnd||0])),tt(Kr),(0,ut.rJ)(rt.currentTarget,rt,hn,Kr)},cn=function(rt){Wt.current=!0,Yt==null||Yt(rt)},Sn=function(rt){Wt.current=!1,Wn(rt,rt.currentTarget.value),jn==null||jn(rt)},fr=function(rt){Wn(rt,rt.target.value)},ir=function(rt){rt.key==="Enter"&&pt&&pt(rt),bt==null||bt(rt)},lr=function(rt){Rn(!0),Lt==null||Lt(rt)},xr=function(rt){Rn(!1),Fn==null||Fn(rt)},Wr=function(rt){tt(""),$n(),(0,ut.rJ)(mr(),rt,hn)},Dr=yt,Fr;Qr.show&&(Qr.showFormatter?Fr=Qr.showFormatter({value:on,count:Yn,maxLength:Vn}):Fr="".concat(Yn).concat(qn?" / ".concat(Vn):""),Dr=ot.createElement(ot.Fragment,null,Dr,ot.createElement("span",{className:Fe()("".concat(Dt,"-data-count"),ae==null?void 0:ae.count),style:ie==null?void 0:ie.count},Fr)));var Rr=function(rt){var Sr;he==null||he(rt),(Sr=mr())!==null&&Sr!==void 0&&Sr.style.height&&vn(!0)},Xn=!ct&&!un&&!vt;return ot.createElement(Ie.BaseInput,{ref:cr,value:on,allowClear:vt,handleReset:Wr,suffix:Dr,prefixCls:Dt,classNames:(0,De.Z)((0,De.Z)({},ae),{},{affixWrapper:Fe()(ae==null?void 0:ae.affixWrapper,(0,Me.Z)((0,Me.Z)({},"".concat(Dt,"-show-count"),un),"".concat(Dt,"-textarea-allow-clear"),vt))}),disabled:ee,focused:wt,className:Fe()(ge,pn&&"".concat(Dt,"-out-of-range")),style:(0,De.Z)((0,De.Z)({},ue),sr&&!Xn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Fr=="string"?Fr:void 0}},hidden:b,readOnly:zt,onClear:Ye},ot.createElement(je,(0,re.Z)({},Et,{autoSize:ct,maxLength:Jt,onKeyDown:ir,onChange:fr,onFocus:lr,onBlur:xr,onCompositionStart:cn,onCompositionEnd:Sn,className:Fe()(ae==null?void 0:ae.textarea),style:(0,De.Z)((0,De.Z)({},ie==null?void 0:ie.textarea),{},{resize:ue==null?void 0:ue.resize}),disabled:ee,prefixCls:Dt,onResize:Rr,ref:ar,readOnly:zt})))}),ft=et,Tt=ft},639:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return We}});var re=fe(32855),Me=fe(74430),De=fe(27247),Ze=fe(11913),Ee=fe(43079),de=fe(59301),ze=fe(92310),Fe=fe.n(ze),Ie=fe(26112),ve=fe(30699),ut=function(Be){for(var Ue=Be.prefixCls,ke=Be.level,qe=Be.isStart,Pe=Be.isEnd,Ge="".concat(Ue,"-indent-unit"),lt=[],je=0;je<ke;je+=1)lt.push(de.createElement("span",{key:je,className:Fe()(Ge,(0,Me.Z)((0,Me.Z)({},"".concat(Ge,"-start"),qe[je]),"".concat(Ge,"-end"),Pe[je]))}));return de.createElement("span",{"aria-hidden":"true",className:"".concat(Ue,"-indent")},lt)},we=de.memo(ut),ot=fe(65065),Xe=fe(34061),Je=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],He="open",Te="close",at="---",Oe=function(Be){var Ue,ke,qe,Pe=Be.eventKey,Ge=Be.className,lt=Be.style,je=Be.dragOver,ht=Be.dragOverGapTop,et=Be.dragOverGapBottom,ft=Be.isLeaf,Tt=Be.isStart,Kt=Be.isEnd,fn=Be.expanded,$t=Be.selected,Re=Be.checked,xe=Be.halfChecked,Lt=Be.loading,Fn=Be.domRef,hn=Be.active,vt=Be.data,Jt=Be.onMouseMove,Yt=Be.selectable,jn=(0,Ee.Z)(Be,Je),yt=de.useContext(ve.k),wn=de.useContext(ve.y),Dt=de.useRef(null),un=de.useState(!1),ln=(0,Ze.Z)(un,2),ge=ln[0],ue=ln[1],ee=!!(yt.disabled||Be.disabled||(Ue=wn.nodeDisabled)!==null&&Ue!==void 0&&Ue.call(wn,vt)),b=de.useMemo(function(){return!yt.checkable||Be.checkable===!1?!1:yt.checkable},[yt.checkable,Be.checkable]),ae=function(Yn){ee||yt.onNodeSelect(Yn,(0,Xe.F)(Be))},ie=function(Yn){ee||!b||Be.disableCheckbox||yt.onNodeCheck(Yn,(0,Xe.F)(Be),!Re)},he=de.useMemo(function(){return typeof Yt=="boolean"?Yt:yt.selectable},[Yt,yt.selectable]),Ye=function(Yn){yt.onNodeClick(Yn,(0,Xe.F)(Be)),he?ae(Yn):ie(Yn)},pt=function(Yn){yt.onNodeDoubleClick(Yn,(0,Xe.F)(Be))},zt=function(Yn){yt.onNodeMouseEnter(Yn,(0,Xe.F)(Be))},ct=function(Yn){yt.onNodeMouseLeave(Yn,(0,Xe.F)(Be))},bt=function(Yn){yt.onNodeContextMenu(Yn,(0,Xe.F)(Be))},Et=de.useMemo(function(){return!!(yt.draggable&&(!yt.draggable.nodeDraggable||yt.draggable.nodeDraggable(vt)))},[yt.draggable,vt]),en=function(Yn){Yn.stopPropagation(),ue(!0),yt.onNodeDragStart(Yn,Be);try{Yn.dataTransfer.setData("text/plain","")}catch(pn){}},Dn=function(Yn){Yn.preventDefault(),Yn.stopPropagation(),yt.onNodeDragEnter(Yn,Be)},Mt=function(Yn){Yn.preventDefault(),Yn.stopPropagation(),yt.onNodeDragOver(Yn,Be)},tt=function(Yn){Yn.stopPropagation(),yt.onNodeDragLeave(Yn,Be)},on=function(Yn){Yn.stopPropagation(),ue(!1),yt.onNodeDragEnd(Yn,Be)},jt=function(Yn){Yn.preventDefault(),Yn.stopPropagation(),ue(!1),yt.onNodeDrop(Yn,Be)},qt=function(Yn){Lt||yt.onNodeExpand(Yn,(0,Xe.F)(Be))},wt=de.useMemo(function(){var qn=(0,ot.Z)(yt.keyEntities,Pe)||{},Yn=qn.children;return!!(Yn||[]).length},[yt.keyEntities,Pe]),Rn=de.useMemo(function(){return ft===!1?!1:ft||!yt.loadData&&!wt||yt.loadData&&Be.loaded&&!wt},[ft,yt.loadData,wt,Be.loaded]);de.useEffect(function(){Lt||typeof yt.loadData=="function"&&fn&&!Rn&&!Be.loaded&&yt.onNodeLoad((0,Xe.F)(Be))},[Lt,yt.loadData,yt.onNodeLoad,fn,Rn,Be]);var Wt=de.useMemo(function(){var qn;return(qn=yt.draggable)!==null&&qn!==void 0&&qn.icon?de.createElement("span",{className:"".concat(yt.prefixCls,"-draggable-icon")},yt.draggable.icon):null},[yt.draggable]),Cn=function(Yn){var pn=Be.switcherIcon||yt.switcherIcon;return typeof pn=="function"?pn((0,De.Z)((0,De.Z)({},Be),{},{isLeaf:Yn})):pn},Mn=function(){if(Rn){var Yn=Cn(!0);return Yn!==!1?de.createElement("span",{className:Fe()("".concat(yt.prefixCls,"-switcher"),"".concat(yt.prefixCls,"-switcher-noop"))},Yn):null}var pn=Cn(!1);return pn!==!1?de.createElement("span",{onClick:qt,className:Fe()("".concat(yt.prefixCls,"-switcher"),"".concat(yt.prefixCls,"-switcher_").concat(fn?He:Te))},pn):null},sr=de.useMemo(function(){if(!b)return null;var qn=typeof b!="boolean"?b:null;return de.createElement("span",{className:Fe()("".concat(yt.prefixCls,"-checkbox"),(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(yt.prefixCls,"-checkbox-checked"),Re),"".concat(yt.prefixCls,"-checkbox-indeterminate"),!Re&&xe),"".concat(yt.prefixCls,"-checkbox-disabled"),ee||Be.disableCheckbox)),onClick:ie,role:"checkbox","aria-checked":xe?"mixed":Re,"aria-disabled":ee||Be.disableCheckbox,"aria-label":"Select ".concat(typeof Be.title=="string"?Be.title:"tree node")},qn)},[b,Re,xe,ee,Be.disableCheckbox,Be.title]),vn=de.useMemo(function(){return Rn?null:fn?He:Te},[Rn,fn]),cr=de.useMemo(function(){return de.createElement("span",{className:Fe()("".concat(yt.prefixCls,"-iconEle"),"".concat(yt.prefixCls,"-icon__").concat(vn||"docu"),(0,Me.Z)({},"".concat(yt.prefixCls,"-icon_loading"),Lt))})},[yt.prefixCls,vn,Lt]),ar=de.useMemo(function(){var qn=!!yt.draggable,Yn=!Be.disabled&&qn&&yt.dragOverNodeKey===Pe;return Yn?yt.dropIndicatorRender({dropPosition:yt.dropPosition,dropLevelOffset:yt.dropLevelOffset,indent:yt.indent,prefixCls:yt.prefixCls,direction:yt.direction}):null},[yt.dropPosition,yt.dropLevelOffset,yt.indent,yt.prefixCls,yt.direction,yt.draggable,yt.dragOverNodeKey,yt.dropIndicatorRender]),mr=de.useMemo(function(){var qn=Be.title,Yn=qn===void 0?at:qn,pn="".concat(yt.prefixCls,"-node-content-wrapper"),Wn;if(yt.showIcon){var cn=Be.icon||yt.icon;Wn=cn?de.createElement("span",{className:Fe()("".concat(yt.prefixCls,"-iconEle"),"".concat(yt.prefixCls,"-icon__customize"))},typeof cn=="function"?cn(Be):cn):cr}else yt.loadData&&Lt&&(Wn=cr);var Sn;return typeof Yn=="function"?Sn=Yn(vt):yt.titleRender?Sn=yt.titleRender(vt):Sn=Yn,de.createElement("span",{ref:Dt,title:typeof Yn=="string"?Yn:"",className:Fe()(pn,"".concat(pn,"-").concat(vn||"normal"),(0,Me.Z)({},"".concat(yt.prefixCls,"-node-selected"),!ee&&($t||ge))),onMouseEnter:zt,onMouseLeave:ct,onContextMenu:bt,onClick:Ye,onDoubleClick:pt},Wn,de.createElement("span",{className:"".concat(yt.prefixCls,"-title")},Sn),ar)},[yt.prefixCls,yt.showIcon,Be,yt.icon,cr,yt.titleRender,vt,vn,zt,ct,bt,Ye,pt]),$n=(0,Ie.Z)(jn,{aria:!0,data:!0}),Xr=(0,ot.Z)(yt.keyEntities,Pe)||{},Pr=Xr.level,Er=Kt[Kt.length-1],Ar=!ee&&Et,Qr=yt.draggingNodeKey===Pe,Vn=Yt!==void 0?{"aria-selected":!!Yt}:void 0;return de.createElement("div",(0,re.Z)({ref:Fn,role:"treeitem","aria-expanded":ft?void 0:fn,className:Fe()(Ge,"".concat(yt.prefixCls,"-treenode"),(qe={},(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)(qe,"".concat(yt.prefixCls,"-treenode-disabled"),ee),"".concat(yt.prefixCls,"-treenode-switcher-").concat(fn?"open":"close"),!ft),"".concat(yt.prefixCls,"-treenode-checkbox-checked"),Re),"".concat(yt.prefixCls,"-treenode-checkbox-indeterminate"),xe),"".concat(yt.prefixCls,"-treenode-selected"),$t),"".concat(yt.prefixCls,"-treenode-loading"),Lt),"".concat(yt.prefixCls,"-treenode-active"),hn),"".concat(yt.prefixCls,"-treenode-leaf-last"),Er),"".concat(yt.prefixCls,"-treenode-draggable"),Et),"dragging",Qr),(0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)((0,Me.Z)(qe,"drop-target",yt.dropTargetKey===Pe),"drop-container",yt.dropContainerKey===Pe),"drag-over",!ee&&je),"drag-over-gap-top",!ee&&ht),"drag-over-gap-bottom",!ee&&et),"filter-node",(ke=yt.filterTreeNode)===null||ke===void 0?void 0:ke.call(yt,(0,Xe.F)(Be))),"".concat(yt.prefixCls,"-treenode-leaf"),Rn))),style:lt,draggable:Ar,onDragStart:Ar?en:void 0,onDragEnter:Et?Dn:void 0,onDragOver:Et?Mt:void 0,onDragLeave:Et?tt:void 0,onDrop:Et?jt:void 0,onDragEnd:Et?on:void 0,onMouseMove:Jt},Vn,$n),de.createElement(we,{prefixCls:yt.prefixCls,level:Pr,isStart:Tt,isEnd:Kt}),Wt,Mn(),sr,mr)};Oe.isTreeNode=1;var We=Oe},30699:function(xn,dt,fe){"use strict";fe.d(dt,{k:function(){return Me},y:function(){return De}});var re=fe(59301),Me=re.createContext(null),De=re.createContext({})},89149:function(xn,dt,fe){"use strict";fe.d(dt,{OF:function(){return Pe.Z},y6:function(){return Te.y},ZP:function(){return ee}});var re=fe(32855),Me=fe(34666),De=fe(27247),Ze=fe(3300),Ee=fe(33377),de=fe(93912),ze=fe(83383),Fe=fe(18881),Ie=fe(85461),ve=fe(74430),ut=fe(92310),we=fe.n(ut),ot=fe(10228),Xe=fe(26112),Je=fe(48736),He=fe(59301),Te=fe(30699),at=function(ae){var ie=ae.dropPosition,he=ae.dropLevelOffset,Ye=ae.indent,pt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ie){case-1:pt.top=0,pt.left=-he*Ye;break;case 1:pt.bottom=0,pt.left=-he*Ye;break;case 0:pt.bottom=0,pt.left=Ye;break}return He.createElement("div",{style:pt})},Oe=at;function We(b){if(b==null)throw new TypeError("Cannot destructure "+b)}var be=fe(11913),Be=fe(43079),Ue=fe(34280),ke=fe(6790),qe=fe(77900),Pe=fe(639);function Ge(b,ae){var ie=He.useState(!1),he=(0,be.Z)(ie,2),Ye=he[0],pt=he[1];(0,Ue.Z)(function(){if(Ye)return b(),function(){ae()}},[Ye]),(0,Ue.Z)(function(){return pt(!0),function(){pt(!1)}},[])}var lt=Ge,je=fe(34061),ht=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],et=He.forwardRef(function(b,ae){var ie=b.className,he=b.style,Ye=b.motion,pt=b.motionNodes,zt=b.motionType,ct=b.onMotionStart,bt=b.onMotionEnd,Et=b.active,en=b.treeNodeRequiredProps,Dn=(0,Be.Z)(b,ht),Mt=He.useState(!0),tt=(0,be.Z)(Mt,2),on=tt[0],jt=tt[1],qt=He.useContext(Te.k),wt=qt.prefixCls,Rn=pt&&zt!=="hide";(0,Ue.Z)(function(){pt&&Rn!==on&&jt(Rn)},[pt]);var Wt=function(){pt&&ct()},Cn=He.useRef(!1),Mn=function(){pt&&!Cn.current&&(Cn.current=!0,bt())};lt(Wt,Mn);var sr=function(cr){Rn===cr&&Mn()};return pt?He.createElement(qe.default,(0,re.Z)({ref:ae,visible:on},Ye,{motionAppear:zt==="show",onVisibleChanged:sr}),function(vn,cr){var ar=vn.className,mr=vn.style;return He.createElement("div",{ref:cr,className:we()("".concat(wt,"-treenode-motion"),ar),style:mr},pt.map(function($n){var Xr=Object.assign({},(We($n.data),$n.data)),Pr=$n.title,Er=$n.key,Ar=$n.isStart,Qr=$n.isEnd;delete Xr.children;var Vn=(0,je.H8)(Er,en);return He.createElement(Pe.Z,(0,re.Z)({},Xr,Vn,{title:Pr,active:Et,data:$n.data,key:Er,isStart:Ar,isEnd:Qr}))}))}):He.createElement(Pe.Z,(0,re.Z)({domRef:ae,className:ie,style:he},Dn,{active:Et}))}),ft=et;function Tt(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=b.length,he=ae.length;if(Math.abs(ie-he)!==1)return{add:!1,key:null};function Ye(pt,zt){var ct=new Map;pt.forEach(function(Et){ct.set(Et,!0)});var bt=zt.filter(function(Et){return!ct.has(Et)});return bt.length===1?bt[0]:null}return ie<he?{add:!0,key:Ye(b,ae)}:{add:!1,key:Ye(ae,b)}}function Kt(b,ae,ie){var he=b.findIndex(function(ct){return ct.key===ie}),Ye=b[he+1],pt=ae.findIndex(function(ct){return ct.key===ie});if(Ye){var zt=ae.findIndex(function(ct){return ct.key===Ye.key});return ae.slice(pt+1,zt)}return ae.slice(pt+1)}var fn=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],$t={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Re=function(){},xe="RC_TREE_MOTION_".concat(Math.random()),Lt={key:xe},Fn={key:xe,level:0,index:0,pos:"0",node:Lt,nodes:[Lt]},hn={parent:null,children:[],pos:Fn.pos,data:Lt,title:null,key:xe,isStart:[],isEnd:[]};function vt(b,ae,ie,he){return ae===!1||!ie?b:b.slice(0,Math.ceil(ie/he)+1)}function Jt(b){var ae=b.key,ie=b.pos;return(0,je.km)(ae,ie)}function Yt(b){for(var ae=String(b.data.key),ie=b;ie.parent;)ie=ie.parent,ae="".concat(ie.data.key," > ").concat(ae);return ae}var jn=He.forwardRef(function(b,ae){var ie=b.prefixCls,he=b.data,Ye=b.selectable,pt=b.checkable,zt=b.expandedKeys,ct=b.selectedKeys,bt=b.checkedKeys,Et=b.loadedKeys,en=b.loadingKeys,Dn=b.halfCheckedKeys,Mt=b.keyEntities,tt=b.disabled,on=b.dragging,jt=b.dragOverNodeKey,qt=b.dropPosition,wt=b.motion,Rn=b.height,Wt=b.itemHeight,Cn=b.virtual,Mn=b.scrollWidth,sr=b.focusable,vn=b.activeItem,cr=b.focused,ar=b.tabIndex,mr=b.onKeyDown,$n=b.onFocus,Xr=b.onBlur,Pr=b.onActiveChange,Er=b.onListChangeStart,Ar=b.onListChangeEnd,Qr=(0,Be.Z)(b,fn),Vn=He.useRef(null),qn=He.useRef(null);He.useImperativeHandle(ae,function(){return{scrollTo:function(rr){Vn.current.scrollTo(rr)},getIndentWidth:function(){return qn.current.offsetWidth}}});var Yn=He.useState(zt),pn=(0,be.Z)(Yn,2),Wn=pn[0],cn=pn[1],Sn=He.useState(he),fr=(0,be.Z)(Sn,2),ir=fr[0],lr=fr[1],xr=He.useState(he),Wr=(0,be.Z)(xr,2),Dr=Wr[0],Fr=Wr[1],Rr=He.useState([]),Xn=(0,be.Z)(Rr,2),yn=Xn[0],rt=Xn[1],Sr=He.useState(null),Kr=(0,be.Z)(Sr,2),_t=Kr[0],St=Kr[1],Jn=He.useRef(he);Jn.current=he;function Hn(){var nr=Jn.current;lr(nr),Fr(nr),rt([]),St(null),Ar()}(0,Ue.Z)(function(){cn(zt);var nr=Tt(Wn,zt);if(nr.key!==null)if(nr.add){var rr=ir.findIndex(function(mt){var dn=mt.key;return dn===nr.key}),er=vt(Kt(ir,he,nr.key),Cn,Rn,Wt),ur=ir.slice();ur.splice(rr+1,0,hn),Fr(ur),rt(er),St("show")}else{var wr=he.findIndex(function(mt){var dn=mt.key;return dn===nr.key}),It=vt(Kt(he,ir,nr.key),Cn,Rn,Wt),an=he.slice();an.splice(wr+1,0,hn),Fr(an),rt(It),St("hide")}else ir!==he&&(lr(he),Fr(he))},[zt,he]),He.useEffect(function(){on||Hn()},[on]);var Ot=wt?Dr:he,kn={expandedKeys:zt,selectedKeys:ct,loadedKeys:Et,loadingKeys:en,checkedKeys:bt,halfCheckedKeys:Dn,dragOverNodeKey:jt,dropPosition:qt,keyEntities:Mt};return He.createElement(He.Fragment,null,cr&&vn&&He.createElement("span",{style:$t,"aria-live":"assertive"},Yt(vn)),He.createElement("div",null,He.createElement("input",{style:$t,disabled:sr===!1||tt,tabIndex:sr!==!1?ar:null,onKeyDown:mr,onFocus:$n,onBlur:Xr,value:"",onChange:Re,"aria-label":"for screen reader"})),He.createElement("div",{className:"".concat(ie,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},He.createElement("div",{className:"".concat(ie,"-indent")},He.createElement("div",{ref:qn,className:"".concat(ie,"-indent-unit")}))),He.createElement(ke.Z,(0,re.Z)({},Qr,{data:Ot,itemKey:Jt,height:Rn,fullHeight:!1,virtual:Cn,itemHeight:Wt,scrollWidth:Mn,prefixCls:"".concat(ie,"-list"),ref:Vn,role:"tree",onVisibleChange:function(rr){rr.every(function(er){return Jt(er)!==xe})&&Hn()}}),function(nr){var rr=nr.pos,er=Object.assign({},(We(nr.data),nr.data)),ur=nr.title,wr=nr.key,It=nr.isStart,an=nr.isEnd,mt=(0,je.km)(wr,rr);delete er.key,delete er.children;var dn=(0,je.H8)(mt,kn);return He.createElement(ft,(0,re.Z)({},er,dn,{title:ur,active:!!vn&&wr===vn.key,pos:rr,data:nr.data,isStart:It,isEnd:an,motion:wt,motionNodes:wr===xe?yn:null,motionType:_t,onMotionStart:Er,onMotionEnd:Hn,treeNodeRequiredProps:kn,onMouseMove:function(){Pr(null)}}))}))}),yt=jn,wn=fe(82661),Dt=fe(34643),un=fe(65065),ln=10,ge=function(b){(0,Fe.Z)(ie,b);var ae=(0,Ie.Z)(ie);function ie(){var he;(0,Ee.Z)(this,ie);for(var Ye=arguments.length,pt=new Array(Ye),zt=0;zt<Ye;zt++)pt[zt]=arguments[zt];return he=ae.call.apply(ae,[this].concat(pt)),(0,ve.Z)((0,ze.Z)(he),"destroyed",!1),(0,ve.Z)((0,ze.Z)(he),"delayedDragEnterLogic",void 0),(0,ve.Z)((0,ze.Z)(he),"loadingRetryTimes",{}),(0,ve.Z)((0,ze.Z)(he),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,je.w$)()}),(0,ve.Z)((0,ze.Z)(he),"dragStartMousePosition",null),(0,ve.Z)((0,ze.Z)(he),"dragNodeProps",null),(0,ve.Z)((0,ze.Z)(he),"currentMouseOverDroppableNodeKey",null),(0,ve.Z)((0,ze.Z)(he),"listRef",He.createRef()),(0,ve.Z)((0,ze.Z)(he),"onNodeDragStart",function(ct,bt){var Et=he.state,en=Et.expandedKeys,Dn=Et.keyEntities,Mt=he.props.onDragStart,tt=bt.eventKey;he.dragNodeProps=bt,he.dragStartMousePosition={x:ct.clientX,y:ct.clientY};var on=(0,wn._5)(en,tt);he.setState({draggingNodeKey:tt,dragChildrenKeys:(0,wn.wA)(tt,Dn),indent:he.listRef.current.getIndentWidth()}),he.setExpandedKeys(on),window.addEventListener("dragend",he.onWindowDragEnd),Mt==null||Mt({event:ct,node:(0,je.F)(bt)})}),(0,ve.Z)((0,ze.Z)(he),"onNodeDragEnter",function(ct,bt){var Et=he.state,en=Et.expandedKeys,Dn=Et.keyEntities,Mt=Et.dragChildrenKeys,tt=Et.flattenNodes,on=Et.indent,jt=he.props,qt=jt.onDragEnter,wt=jt.onExpand,Rn=jt.allowDrop,Wt=jt.direction,Cn=bt.pos,Mn=bt.eventKey;if(he.currentMouseOverDroppableNodeKey!==Mn&&(he.currentMouseOverDroppableNodeKey=Mn),!he.dragNodeProps){he.resetDragState();return}var sr=(0,wn.OM)(ct,he.dragNodeProps,bt,on,he.dragStartMousePosition,Rn,tt,Dn,en,Wt),vn=sr.dropPosition,cr=sr.dropLevelOffset,ar=sr.dropTargetKey,mr=sr.dropContainerKey,$n=sr.dropTargetPos,Xr=sr.dropAllowed,Pr=sr.dragOverNodeKey;if(Mt.includes(ar)||!Xr){he.resetDragState();return}if(he.delayedDragEnterLogic||(he.delayedDragEnterLogic={}),Object.keys(he.delayedDragEnterLogic).forEach(function(Er){clearTimeout(he.delayedDragEnterLogic[Er])}),he.dragNodeProps.eventKey!==bt.eventKey&&(ct.persist(),he.delayedDragEnterLogic[Cn]=window.setTimeout(function(){if(he.state.draggingNodeKey!==null){var Er=(0,Ze.Z)(en),Ar=(0,un.Z)(Dn,bt.eventKey);Ar&&(Ar.children||[]).length&&(Er=(0,wn.L0)(en,bt.eventKey)),he.props.hasOwnProperty("expandedKeys")||he.setExpandedKeys(Er),wt==null||wt(Er,{node:(0,je.F)(bt),expanded:!0,nativeEvent:ct.nativeEvent})}},800)),he.dragNodeProps.eventKey===ar&&cr===0){he.resetDragState();return}he.setState({dragOverNodeKey:Pr,dropPosition:vn,dropLevelOffset:cr,dropTargetKey:ar,dropContainerKey:mr,dropTargetPos:$n,dropAllowed:Xr}),qt==null||qt({event:ct,node:(0,je.F)(bt),expandedKeys:en})}),(0,ve.Z)((0,ze.Z)(he),"onNodeDragOver",function(ct,bt){var Et=he.state,en=Et.dragChildrenKeys,Dn=Et.flattenNodes,Mt=Et.keyEntities,tt=Et.expandedKeys,on=Et.indent,jt=he.props,qt=jt.onDragOver,wt=jt.allowDrop,Rn=jt.direction;if(he.dragNodeProps){var Wt=(0,wn.OM)(ct,he.dragNodeProps,bt,on,he.dragStartMousePosition,wt,Dn,Mt,tt,Rn),Cn=Wt.dropPosition,Mn=Wt.dropLevelOffset,sr=Wt.dropTargetKey,vn=Wt.dropContainerKey,cr=Wt.dropTargetPos,ar=Wt.dropAllowed,mr=Wt.dragOverNodeKey;en.includes(sr)||!ar||(he.dragNodeProps.eventKey===sr&&Mn===0?he.state.dropPosition===null&&he.state.dropLevelOffset===null&&he.state.dropTargetKey===null&&he.state.dropContainerKey===null&&he.state.dropTargetPos===null&&he.state.dropAllowed===!1&&he.state.dragOverNodeKey===null||he.resetDragState():Cn===he.state.dropPosition&&Mn===he.state.dropLevelOffset&&sr===he.state.dropTargetKey&&vn===he.state.dropContainerKey&&cr===he.state.dropTargetPos&&ar===he.state.dropAllowed&&mr===he.state.dragOverNodeKey||he.setState({dropPosition:Cn,dropLevelOffset:Mn,dropTargetKey:sr,dropContainerKey:vn,dropTargetPos:cr,dropAllowed:ar,dragOverNodeKey:mr}),qt==null||qt({event:ct,node:(0,je.F)(bt)}))}}),(0,ve.Z)((0,ze.Z)(he),"onNodeDragLeave",function(ct,bt){he.currentMouseOverDroppableNodeKey===bt.eventKey&&!ct.currentTarget.contains(ct.relatedTarget)&&(he.resetDragState(),he.currentMouseOverDroppableNodeKey=null);var Et=he.props.onDragLeave;Et==null||Et({event:ct,node:(0,je.F)(bt)})}),(0,ve.Z)((0,ze.Z)(he),"onWindowDragEnd",function(ct){he.onNodeDragEnd(ct,null,!0),window.removeEventListener("dragend",he.onWindowDragEnd)}),(0,ve.Z)((0,ze.Z)(he),"onNodeDragEnd",function(ct,bt){var Et=he.props.onDragEnd;he.setState({dragOverNodeKey:null}),he.cleanDragState(),Et==null||Et({event:ct,node:(0,je.F)(bt)}),he.dragNodeProps=null,window.removeEventListener("dragend",he.onWindowDragEnd)}),(0,ve.Z)((0,ze.Z)(he),"onNodeDrop",function(ct,bt){var Et,en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Dn=he.state,Mt=Dn.dragChildrenKeys,tt=Dn.dropPosition,on=Dn.dropTargetKey,jt=Dn.dropTargetPos,qt=Dn.dropAllowed;if(qt){var wt=he.props.onDrop;if(he.setState({dragOverNodeKey:null}),he.cleanDragState(),on!==null){var Rn=(0,De.Z)((0,De.Z)({},(0,je.H8)(on,he.getTreeNodeRequiredProps())),{},{active:((Et=he.getActiveItem())===null||Et===void 0?void 0:Et.key)===on,data:(0,un.Z)(he.state.keyEntities,on).node}),Wt=Mt.includes(on);(0,Je.ZP)(!Wt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Cn=(0,wn.yx)(jt),Mn={event:ct,node:(0,je.F)(Rn),dragNode:he.dragNodeProps?(0,je.F)(he.dragNodeProps):null,dragNodesKeys:[he.dragNodeProps.eventKey].concat(Mt),dropToGap:tt!==0,dropPosition:tt+Number(Cn[Cn.length-1])};en||wt==null||wt(Mn),he.dragNodeProps=null}}}),(0,ve.Z)((0,ze.Z)(he),"cleanDragState",function(){var ct=he.state.draggingNodeKey;ct!==null&&he.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),he.dragStartMousePosition=null,he.currentMouseOverDroppableNodeKey=null}),(0,ve.Z)((0,ze.Z)(he),"triggerExpandActionExpand",function(ct,bt){var Et=he.state,en=Et.expandedKeys,Dn=Et.flattenNodes,Mt=bt.expanded,tt=bt.key,on=bt.isLeaf;if(!(on||ct.shiftKey||ct.metaKey||ct.ctrlKey)){var jt=Dn.filter(function(wt){return wt.key===tt})[0],qt=(0,je.F)((0,De.Z)((0,De.Z)({},(0,je.H8)(tt,he.getTreeNodeRequiredProps())),{},{data:jt.data}));he.setExpandedKeys(Mt?(0,wn._5)(en,tt):(0,wn.L0)(en,tt)),he.onNodeExpand(ct,qt)}}),(0,ve.Z)((0,ze.Z)(he),"onNodeClick",function(ct,bt){var Et=he.props,en=Et.onClick,Dn=Et.expandAction;Dn==="click"&&he.triggerExpandActionExpand(ct,bt),en==null||en(ct,bt)}),(0,ve.Z)((0,ze.Z)(he),"onNodeDoubleClick",function(ct,bt){var Et=he.props,en=Et.onDoubleClick,Dn=Et.expandAction;Dn==="doubleClick"&&he.triggerExpandActionExpand(ct,bt),en==null||en(ct,bt)}),(0,ve.Z)((0,ze.Z)(he),"onNodeSelect",function(ct,bt){var Et=he.state.selectedKeys,en=he.state,Dn=en.keyEntities,Mt=en.fieldNames,tt=he.props,on=tt.onSelect,jt=tt.multiple,qt=bt.selected,wt=bt[Mt.key],Rn=!qt;Rn?jt?Et=(0,wn.L0)(Et,wt):Et=[wt]:Et=(0,wn._5)(Et,wt);var Wt=Et.map(function(Cn){var Mn=(0,un.Z)(Dn,Cn);return Mn?Mn.node:null}).filter(Boolean);he.setUncontrolledState({selectedKeys:Et}),on==null||on(Et,{event:"select",selected:Rn,node:bt,selectedNodes:Wt,nativeEvent:ct.nativeEvent})}),(0,ve.Z)((0,ze.Z)(he),"onNodeCheck",function(ct,bt,Et){var en=he.state,Dn=en.keyEntities,Mt=en.checkedKeys,tt=en.halfCheckedKeys,on=he.props,jt=on.checkStrictly,qt=on.onCheck,wt=bt.key,Rn,Wt={event:"check",node:bt,checked:Et,nativeEvent:ct.nativeEvent};if(jt){var Cn=Et?(0,wn.L0)(Mt,wt):(0,wn._5)(Mt,wt),Mn=(0,wn._5)(tt,wt);Rn={checked:Cn,halfChecked:Mn},Wt.checkedNodes=Cn.map(function($n){return(0,un.Z)(Dn,$n)}).filter(Boolean).map(function($n){return $n.node}),he.setUncontrolledState({checkedKeys:Cn})}else{var sr=(0,Dt.S)([].concat((0,Ze.Z)(Mt),[wt]),!0,Dn),vn=sr.checkedKeys,cr=sr.halfCheckedKeys;if(!Et){var ar=new Set(vn);ar.delete(wt);var mr=(0,Dt.S)(Array.from(ar),{checked:!1,halfCheckedKeys:cr},Dn);vn=mr.checkedKeys,cr=mr.halfCheckedKeys}Rn=vn,Wt.checkedNodes=[],Wt.checkedNodesPositions=[],Wt.halfCheckedKeys=cr,vn.forEach(function($n){var Xr=(0,un.Z)(Dn,$n);if(Xr){var Pr=Xr.node,Er=Xr.pos;Wt.checkedNodes.push(Pr),Wt.checkedNodesPositions.push({node:Pr,pos:Er})}}),he.setUncontrolledState({checkedKeys:vn},!1,{halfCheckedKeys:cr})}qt==null||qt(Rn,Wt)}),(0,ve.Z)((0,ze.Z)(he),"onNodeLoad",function(ct){var bt,Et=ct.key,en=he.state.keyEntities,Dn=(0,un.Z)(en,Et);if(!(Dn!=null&&(bt=Dn.children)!==null&&bt!==void 0&&bt.length)){var Mt=new Promise(function(tt,on){he.setState(function(jt){var qt=jt.loadedKeys,wt=qt===void 0?[]:qt,Rn=jt.loadingKeys,Wt=Rn===void 0?[]:Rn,Cn=he.props,Mn=Cn.loadData,sr=Cn.onLoad;if(!Mn||wt.includes(Et)||Wt.includes(Et))return null;var vn=Mn(ct);return vn.then(function(){var cr=he.state.loadedKeys,ar=(0,wn.L0)(cr,Et);sr==null||sr(ar,{event:"load",node:ct}),he.setUncontrolledState({loadedKeys:ar}),he.setState(function(mr){return{loadingKeys:(0,wn._5)(mr.loadingKeys,Et)}}),tt()}).catch(function(cr){if(he.setState(function(mr){return{loadingKeys:(0,wn._5)(mr.loadingKeys,Et)}}),he.loadingRetryTimes[Et]=(he.loadingRetryTimes[Et]||0)+1,he.loadingRetryTimes[Et]>=ln){var ar=he.state.loadedKeys;(0,Je.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),he.setUncontrolledState({loadedKeys:(0,wn.L0)(ar,Et)}),tt()}on(cr)}),{loadingKeys:(0,wn.L0)(Wt,Et)}})});return Mt.catch(function(){}),Mt}}),(0,ve.Z)((0,ze.Z)(he),"onNodeMouseEnter",function(ct,bt){var Et=he.props.onMouseEnter;Et==null||Et({event:ct,node:bt})}),(0,ve.Z)((0,ze.Z)(he),"onNodeMouseLeave",function(ct,bt){var Et=he.props.onMouseLeave;Et==null||Et({event:ct,node:bt})}),(0,ve.Z)((0,ze.Z)(he),"onNodeContextMenu",function(ct,bt){var Et=he.props.onRightClick;Et&&(ct.preventDefault(),Et({event:ct,node:bt}))}),(0,ve.Z)((0,ze.Z)(he),"onFocus",function(){var ct=he.props.onFocus;he.setState({focused:!0});for(var bt=arguments.length,Et=new Array(bt),en=0;en<bt;en++)Et[en]=arguments[en];ct==null||ct.apply(void 0,Et)}),(0,ve.Z)((0,ze.Z)(he),"onBlur",function(){var ct=he.props.onBlur;he.setState({focused:!1}),he.onActiveChange(null);for(var bt=arguments.length,Et=new Array(bt),en=0;en<bt;en++)Et[en]=arguments[en];ct==null||ct.apply(void 0,Et)}),(0,ve.Z)((0,ze.Z)(he),"getTreeNodeRequiredProps",function(){var ct=he.state,bt=ct.expandedKeys,Et=ct.selectedKeys,en=ct.loadedKeys,Dn=ct.loadingKeys,Mt=ct.checkedKeys,tt=ct.halfCheckedKeys,on=ct.dragOverNodeKey,jt=ct.dropPosition,qt=ct.keyEntities;return{expandedKeys:bt||[],selectedKeys:Et||[],loadedKeys:en||[],loadingKeys:Dn||[],checkedKeys:Mt||[],halfCheckedKeys:tt||[],dragOverNodeKey:on,dropPosition:jt,keyEntities:qt}}),(0,ve.Z)((0,ze.Z)(he),"setExpandedKeys",function(ct){var bt=he.state,Et=bt.treeData,en=bt.fieldNames,Dn=(0,je.oH)(Et,ct,en);he.setUncontrolledState({expandedKeys:ct,flattenNodes:Dn},!0)}),(0,ve.Z)((0,ze.Z)(he),"onNodeExpand",function(ct,bt){var Et=he.state.expandedKeys,en=he.state,Dn=en.listChanging,Mt=en.fieldNames,tt=he.props,on=tt.onExpand,jt=tt.loadData,qt=bt.expanded,wt=bt[Mt.key];if(!Dn){var Rn=Et.includes(wt),Wt=!qt;if((0,Je.ZP)(qt&&Rn||!qt&&!Rn,"Expand state not sync with index check"),Et=Wt?(0,wn.L0)(Et,wt):(0,wn._5)(Et,wt),he.setExpandedKeys(Et),on==null||on(Et,{node:bt,expanded:Wt,nativeEvent:ct.nativeEvent}),Wt&&jt){var Cn=he.onNodeLoad(bt);Cn&&Cn.then(function(){var Mn=(0,je.oH)(he.state.treeData,Et,Mt);he.setUncontrolledState({flattenNodes:Mn})}).catch(function(){var Mn=he.state.expandedKeys,sr=(0,wn._5)(Mn,wt);he.setExpandedKeys(sr)})}}}),(0,ve.Z)((0,ze.Z)(he),"onListChangeStart",function(){he.setUncontrolledState({listChanging:!0})}),(0,ve.Z)((0,ze.Z)(he),"onListChangeEnd",function(){setTimeout(function(){he.setUncontrolledState({listChanging:!1})})}),(0,ve.Z)((0,ze.Z)(he),"onActiveChange",function(ct){var bt=he.state.activeKey,Et=he.props,en=Et.onActiveChange,Dn=Et.itemScrollOffset,Mt=Dn===void 0?0:Dn;bt!==ct&&(he.setState({activeKey:ct}),ct!==null&&he.scrollTo({key:ct,offset:Mt}),en==null||en(ct))}),(0,ve.Z)((0,ze.Z)(he),"getActiveItem",function(){var ct=he.state,bt=ct.activeKey,Et=ct.flattenNodes;return bt===null?null:Et.find(function(en){var Dn=en.key;return Dn===bt})||null}),(0,ve.Z)((0,ze.Z)(he),"offsetActiveKey",function(ct){var bt=he.state,Et=bt.flattenNodes,en=bt.activeKey,Dn=Et.findIndex(function(on){var jt=on.key;return jt===en});Dn===-1&&ct<0&&(Dn=Et.length),Dn=(Dn+ct+Et.length)%Et.length;var Mt=Et[Dn];if(Mt){var tt=Mt.key;he.onActiveChange(tt)}else he.onActiveChange(null)}),(0,ve.Z)((0,ze.Z)(he),"onKeyDown",function(ct){var bt=he.state,Et=bt.activeKey,en=bt.expandedKeys,Dn=bt.checkedKeys,Mt=bt.fieldNames,tt=he.props,on=tt.onKeyDown,jt=tt.checkable,qt=tt.selectable;switch(ct.which){case ot.Z.UP:{he.offsetActiveKey(-1),ct.preventDefault();break}case ot.Z.DOWN:{he.offsetActiveKey(1),ct.preventDefault();break}}var wt=he.getActiveItem();if(wt&&wt.data){var Rn=he.getTreeNodeRequiredProps(),Wt=wt.data.isLeaf===!1||!!(wt.data[Mt.children]||[]).length,Cn=(0,je.F)((0,De.Z)((0,De.Z)({},(0,je.H8)(Et,Rn)),{},{data:wt.data,active:!0}));switch(ct.which){case ot.Z.LEFT:{Wt&&en.includes(Et)?he.onNodeExpand({},Cn):wt.parent&&he.onActiveChange(wt.parent.key),ct.preventDefault();break}case ot.Z.RIGHT:{Wt&&!en.includes(Et)?he.onNodeExpand({},Cn):wt.children&&wt.children.length&&he.onActiveChange(wt.children[0].key),ct.preventDefault();break}case ot.Z.ENTER:case ot.Z.SPACE:{jt&&!Cn.disabled&&Cn.checkable!==!1&&!Cn.disableCheckbox?he.onNodeCheck({},Cn,!Dn.includes(Et)):!jt&&qt&&!Cn.disabled&&Cn.selectable!==!1&&he.onNodeSelect({},Cn);break}}}on==null||on(ct)}),(0,ve.Z)((0,ze.Z)(he),"setUncontrolledState",function(ct){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Et=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!he.destroyed){var en=!1,Dn=!0,Mt={};Object.keys(ct).forEach(function(tt){if(he.props.hasOwnProperty(tt)){Dn=!1;return}en=!0,Mt[tt]=ct[tt]}),en&&(!bt||Dn)&&he.setState((0,De.Z)((0,De.Z)({},Mt),Et))}}),(0,ve.Z)((0,ze.Z)(he),"scrollTo",function(ct){he.listRef.current.scrollTo(ct)}),he}return(0,de.Z)(ie,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ye=this.props,pt=Ye.activeKey,zt=Ye.itemScrollOffset,ct=zt===void 0?0:zt;pt!==void 0&&pt!==this.state.activeKey&&(this.setState({activeKey:pt}),pt!==null&&this.scrollTo({key:pt,offset:ct}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Ye=this.state,pt=Ye.focused,zt=Ye.flattenNodes,ct=Ye.keyEntities,bt=Ye.draggingNodeKey,Et=Ye.activeKey,en=Ye.dropLevelOffset,Dn=Ye.dropContainerKey,Mt=Ye.dropTargetKey,tt=Ye.dropPosition,on=Ye.dragOverNodeKey,jt=Ye.indent,qt=this.props,wt=qt.prefixCls,Rn=qt.className,Wt=qt.style,Cn=qt.showLine,Mn=qt.focusable,sr=qt.tabIndex,vn=sr===void 0?0:sr,cr=qt.selectable,ar=qt.showIcon,mr=qt.icon,$n=qt.switcherIcon,Xr=qt.draggable,Pr=qt.checkable,Er=qt.checkStrictly,Ar=qt.disabled,Qr=qt.motion,Vn=qt.loadData,qn=qt.filterTreeNode,Yn=qt.height,pn=qt.itemHeight,Wn=qt.scrollWidth,cn=qt.virtual,Sn=qt.titleRender,fr=qt.dropIndicatorRender,ir=qt.onContextMenu,lr=qt.onScroll,xr=qt.direction,Wr=qt.rootClassName,Dr=qt.rootStyle,Fr=(0,Xe.Z)(this.props,{aria:!0,data:!0}),Rr;Xr&&((0,Me.Z)(Xr)==="object"?Rr=Xr:typeof Xr=="function"?Rr={nodeDraggable:Xr}:Rr={});var Xn={prefixCls:wt,selectable:cr,showIcon:ar,icon:mr,switcherIcon:$n,draggable:Rr,draggingNodeKey:bt,checkable:Pr,checkStrictly:Er,disabled:Ar,keyEntities:ct,dropLevelOffset:en,dropContainerKey:Dn,dropTargetKey:Mt,dropPosition:tt,dragOverNodeKey:on,indent:jt,direction:xr,dropIndicatorRender:fr,loadData:Vn,filterTreeNode:qn,titleRender:Sn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return He.createElement(Te.k.Provider,{value:Xn},He.createElement("div",{className:we()(wt,Rn,Wr,(0,ve.Z)((0,ve.Z)((0,ve.Z)({},"".concat(wt,"-show-line"),Cn),"".concat(wt,"-focused"),pt),"".concat(wt,"-active-focused"),Et!==null)),style:Dr},He.createElement(yt,(0,re.Z)({ref:this.listRef,prefixCls:wt,style:Wt,data:zt,disabled:Ar,selectable:cr,checkable:!!Pr,motion:Qr,dragging:bt!==null,height:Yn,itemHeight:pn,virtual:cn,focusable:Mn,focused:pt,tabIndex:vn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ir,onScroll:lr,scrollWidth:Wn},this.getTreeNodeRequiredProps(),Fr))))}}],[{key:"getDerivedStateFromProps",value:function(Ye,pt){var zt=pt.prevProps,ct={prevProps:Ye};function bt(vn){return!zt&&Ye.hasOwnProperty(vn)||zt&&zt[vn]!==Ye[vn]}var Et,en=pt.fieldNames;if(bt("fieldNames")&&(en=(0,je.w$)(Ye.fieldNames),ct.fieldNames=en),bt("treeData")?Et=Ye.treeData:bt("children")&&((0,Je.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Et=(0,je.zn)(Ye.children)),Et){ct.treeData=Et;var Dn=(0,je.I8)(Et,{fieldNames:en});ct.keyEntities=(0,De.Z)((0,ve.Z)({},xe,Fn),Dn.keyEntities)}var Mt=ct.keyEntities||pt.keyEntities;if(bt("expandedKeys")||zt&&bt("autoExpandParent"))ct.expandedKeys=Ye.autoExpandParent||!zt&&Ye.defaultExpandParent?(0,wn.r7)(Ye.expandedKeys,Mt):Ye.expandedKeys;else if(!zt&&Ye.defaultExpandAll){var tt=(0,De.Z)({},Mt);delete tt[xe];var on=[];Object.keys(tt).forEach(function(vn){var cr=tt[vn];cr.children&&cr.children.length&&on.push(cr.key)}),ct.expandedKeys=on}else!zt&&Ye.defaultExpandedKeys&&(ct.expandedKeys=Ye.autoExpandParent||Ye.defaultExpandParent?(0,wn.r7)(Ye.defaultExpandedKeys,Mt):Ye.defaultExpandedKeys);if(ct.expandedKeys||delete ct.expandedKeys,Et||ct.expandedKeys){var jt=(0,je.oH)(Et||pt.treeData,ct.expandedKeys||pt.expandedKeys,en);ct.flattenNodes=jt}if(Ye.selectable&&(bt("selectedKeys")?ct.selectedKeys=(0,wn.BT)(Ye.selectedKeys,Ye):!zt&&Ye.defaultSelectedKeys&&(ct.selectedKeys=(0,wn.BT)(Ye.defaultSelectedKeys,Ye))),Ye.checkable){var qt;if(bt("checkedKeys")?qt=(0,wn.E6)(Ye.checkedKeys)||{}:!zt&&Ye.defaultCheckedKeys?qt=(0,wn.E6)(Ye.defaultCheckedKeys)||{}:Et&&(qt=(0,wn.E6)(Ye.checkedKeys)||{checkedKeys:pt.checkedKeys,halfCheckedKeys:pt.halfCheckedKeys}),qt){var wt=qt,Rn=wt.checkedKeys,Wt=Rn===void 0?[]:Rn,Cn=wt.halfCheckedKeys,Mn=Cn===void 0?[]:Cn;if(!Ye.checkStrictly){var sr=(0,Dt.S)(Wt,!0,Mt);Wt=sr.checkedKeys,Mn=sr.halfCheckedKeys}ct.checkedKeys=Wt,ct.halfCheckedKeys=Mn}}return bt("loadedKeys")&&(ct.loadedKeys=Ye.loadedKeys),ct}}]),ie}(He.Component);(0,ve.Z)(ge,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Oe,allowDrop:function(){return!0},expandAction:!1}),(0,ve.Z)(ge,"TreeNode",Pe.Z);var ue=ge,ee=ue},82661:function(xn,dt,fe){"use strict";fe.d(dt,{BT:function(){return He},E6:function(){return Oe},L0:function(){return ve},OM:function(){return Je},_5:function(){return Ie},r7:function(){return We},wA:function(){return we},yx:function(){return ut}});var re=fe(3300),Me=fe(34666),De=fe(48736),Ze=fe(59301),Ee=fe(639),de=fe(65065),ze=fe(34061),Fe=null;function Ie(be,Be){if(!be)return[];var Ue=be.slice(),ke=Ue.indexOf(Be);return ke>=0&&Ue.splice(ke,1),Ue}function ve(be,Be){var Ue=(be||[]).slice();return Ue.indexOf(Be)===-1&&Ue.push(Be),Ue}function ut(be){return be.split("-")}function we(be,Be){var Ue=[],ke=(0,de.Z)(Be,be);function qe(){var Pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Pe.forEach(function(Ge){var lt=Ge.key,je=Ge.children;Ue.push(lt),qe(je)})}return qe(ke.children),Ue}function ot(be){if(be.parent){var Be=ut(be.pos);return Number(Be[Be.length-1])===be.parent.children.length-1}return!1}function Xe(be){var Be=ut(be.pos);return Number(Be[Be.length-1])===0}function Je(be,Be,Ue,ke,qe,Pe,Ge,lt,je,ht){var et,ft=be.clientX,Tt=be.clientY,Kt=be.target.getBoundingClientRect(),fn=Kt.top,$t=Kt.height,Re=(ht==="rtl"?-1:1)*(((qe==null?void 0:qe.x)||0)-ft),xe=(Re-12)/ke,Lt=je.filter(function(ee){var b;return(b=lt[ee])===null||b===void 0||(b=b.children)===null||b===void 0?void 0:b.length}),Fn=(0,de.Z)(lt,Ue.eventKey);if(Tt<fn+$t/2){var hn=Ge.findIndex(function(ee){return ee.key===Fn.key}),vt=hn<=0?0:hn-1,Jt=Ge[vt].key;Fn=(0,de.Z)(lt,Jt)}var Yt=Fn.key,jn=Fn,yt=Fn.key,wn=0,Dt=0;if(!Lt.includes(Yt))for(var un=0;un<xe&&ot(Fn);un+=1)Fn=Fn.parent,Dt+=1;var ln=Be.data,ge=Fn.node,ue=!0;return Xe(Fn)&&Fn.level===0&&Tt<fn+$t/2&&Pe({dragNode:ln,dropNode:ge,dropPosition:-1})&&Fn.key===Ue.eventKey?wn=-1:(jn.children||[]).length&&Lt.includes(yt)?Pe({dragNode:ln,dropNode:ge,dropPosition:0})?wn=0:ue=!1:Dt===0?xe>-1.5?Pe({dragNode:ln,dropNode:ge,dropPosition:1})?wn=1:ue=!1:Pe({dragNode:ln,dropNode:ge,dropPosition:0})?wn=0:Pe({dragNode:ln,dropNode:ge,dropPosition:1})?wn=1:ue=!1:Pe({dragNode:ln,dropNode:ge,dropPosition:1})?wn=1:ue=!1,{dropPosition:wn,dropLevelOffset:Dt,dropTargetKey:Fn.key,dropTargetPos:Fn.pos,dragOverNodeKey:yt,dropContainerKey:wn===0?null:((et=Fn.parent)===null||et===void 0?void 0:et.key)||null,dropAllowed:ue}}function He(be,Be){if(be){var Ue=Be.multiple;return Ue?be.slice():be.length?[be[0]]:be}}var Te=function(Be){return Be};function at(be,Be){if(!be)return[];var Ue=Be||{},ke=Ue.processProps,qe=ke===void 0?Te:ke,Pe=Array.isArray(be)?be:[be];return Pe.map(function(Ge){var lt=Ge.children,je=_objectWithoutProperties(Ge,Fe),ht=at(lt,Be);return React.createElement(TreeNode,_extends({key:je.key},qe(je)),ht)})}function Oe(be){if(!be)return null;var Be;if(Array.isArray(be))Be={checkedKeys:be,halfCheckedKeys:void 0};else if((0,Me.Z)(be)==="object")Be={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,De.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Be}function We(be,Be){var Ue=new Set;function ke(qe){if(!Ue.has(qe)){var Pe=(0,de.Z)(Be,qe);if(Pe){Ue.add(qe);var Ge=Pe.parent,lt=Pe.node;lt.disabled||Ge&&ke(Ge.key)}}}return(be||[]).forEach(function(qe){ke(qe)}),(0,re.Z)(Ue)}},34643:function(xn,dt,fe){"use strict";fe.d(dt,{S:function(){return ze}});var re=fe(48736),Me=fe(65065);function De(Fe,Ie){var ve=new Set;return Fe.forEach(function(ut){Ie.has(ut)||ve.add(ut)}),ve}function Ze(Fe){var Ie=Fe||{},ve=Ie.disabled,ut=Ie.disableCheckbox,we=Ie.checkable;return!!(ve||ut)||we===!1}function Ee(Fe,Ie,ve,ut){for(var we=new Set(Fe),ot=new Set,Xe=0;Xe<=ve;Xe+=1){var Je=Ie.get(Xe)||new Set;Je.forEach(function(Oe){var We=Oe.key,be=Oe.node,Be=Oe.children,Ue=Be===void 0?[]:Be;we.has(We)&&!ut(be)&&Ue.filter(function(ke){return!ut(ke.node)}).forEach(function(ke){we.add(ke.key)})})}for(var He=new Set,Te=ve;Te>=0;Te-=1){var at=Ie.get(Te)||new Set;at.forEach(function(Oe){var We=Oe.parent,be=Oe.node;if(!(ut(be)||!Oe.parent||He.has(Oe.parent.key))){if(ut(Oe.parent.node)){He.add(We.key);return}var Be=!0,Ue=!1;(We.children||[]).filter(function(ke){return!ut(ke.node)}).forEach(function(ke){var qe=ke.key,Pe=we.has(qe);Be&&!Pe&&(Be=!1),!Ue&&(Pe||ot.has(qe))&&(Ue=!0)}),Be&&we.add(We.key),Ue&&ot.add(We.key),He.add(We.key)}})}return{checkedKeys:Array.from(we),halfCheckedKeys:Array.from(De(ot,we))}}function de(Fe,Ie,ve,ut,we){for(var ot=new Set(Fe),Xe=new Set(Ie),Je=0;Je<=ut;Je+=1){var He=ve.get(Je)||new Set;He.forEach(function(We){var be=We.key,Be=We.node,Ue=We.children,ke=Ue===void 0?[]:Ue;!ot.has(be)&&!Xe.has(be)&&!we(Be)&&ke.filter(function(qe){return!we(qe.node)}).forEach(function(qe){ot.delete(qe.key)})})}Xe=new Set;for(var Te=new Set,at=ut;at>=0;at-=1){var Oe=ve.get(at)||new Set;Oe.forEach(function(We){var be=We.parent,Be=We.node;if(!(we(Be)||!We.parent||Te.has(We.parent.key))){if(we(We.parent.node)){Te.add(be.key);return}var Ue=!0,ke=!1;(be.children||[]).filter(function(qe){return!we(qe.node)}).forEach(function(qe){var Pe=qe.key,Ge=ot.has(Pe);Ue&&!Ge&&(Ue=!1),!ke&&(Ge||Xe.has(Pe))&&(ke=!0)}),Ue||ot.delete(be.key),ke&&Xe.add(be.key),Te.add(be.key)}})}return{checkedKeys:Array.from(ot),halfCheckedKeys:Array.from(De(Xe,ot))}}function ze(Fe,Ie,ve,ut){var we=[],ot;ut?ot=ut:ot=Ze;var Xe=new Set(Fe.filter(function(at){var Oe=!!(0,Me.Z)(ve,at);return Oe||we.push(at),Oe})),Je=new Map,He=0;Object.keys(ve).forEach(function(at){var Oe=ve[at],We=Oe.level,be=Je.get(We);be||(be=new Set,Je.set(We,be)),be.add(Oe),He=Math.max(He,We)}),(0,re.ZP)(!we.length,"Tree missing follow keys: ".concat(we.slice(0,100).map(function(at){return"'".concat(at,"'")}).join(", ")));var Te;return Ie===!0?Te=Ee(Xe,Je,He,ot):Te=de(Xe,Ie.halfCheckedKeys,Je,He,ot),Te}},65065:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return re}});function re(Me,De){return Me[De]}},34061:function(xn,dt,fe){"use strict";fe.d(dt,{F:function(){return We},H8:function(){return Oe},I8:function(){return at},km:function(){return we},oH:function(){return He},w$:function(){return ot},zn:function(){return Je}});var re=fe(34666),Me=fe(3300),De=fe(27247),Ze=fe(43079),Ee=fe(11592),de=fe(2738),ze=fe(48736),Fe=fe(65065),Ie=["children"];function ve(be,Be){return"".concat(be,"-").concat(Be)}function ut(be){return be&&be.type&&be.type.isTreeNode}function we(be,Be){return be!=null?be:Be}function ot(be){var Be=be||{},Ue=Be.title,ke=Be._title,qe=Be.key,Pe=Be.children,Ge=Ue||"title";return{title:Ge,_title:ke||[Ge],key:qe||"key",children:Pe||"children"}}function Xe(be,Be){var Ue=new Map;function ke(qe){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(qe||[]).forEach(function(Ge){var lt=Ge[Be.key],je=Ge[Be.children];warning(lt!=null,"Tree node must have a certain key: [".concat(Pe).concat(lt,"]"));var ht=String(lt);warning(!Ue.has(ht)||lt===null||lt===void 0,"Same 'key' exist in the Tree: ".concat(ht)),Ue.set(ht,!0),ke(je,"".concat(Pe).concat(ht," > "))})}ke(be)}function Je(be){function Be(Ue){var ke=(0,Ee.Z)(Ue);return ke.map(function(qe){if(!ut(qe))return(0,ze.ZP)(!qe,"Tree/TreeNode can only accept TreeNode as children."),null;var Pe=qe.key,Ge=qe.props,lt=Ge.children,je=(0,Ze.Z)(Ge,Ie),ht=(0,De.Z)({key:Pe},je),et=Be(lt);return et.length&&(ht.children=et),ht}).filter(function(qe){return qe})}return Be(be)}function He(be,Be,Ue){var ke=ot(Ue),qe=ke._title,Pe=ke.key,Ge=ke.children,lt=new Set(Be===!0?[]:Be),je=[];function ht(et){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return et.map(function(Tt,Kt){for(var fn=ve(ft?ft.pos:"0",Kt),$t=we(Tt[Pe],fn),Re,xe=0;xe<qe.length;xe+=1){var Lt=qe[xe];if(Tt[Lt]!==void 0){Re=Tt[Lt];break}}var Fn=Object.assign((0,de.Z)(Tt,[].concat((0,Me.Z)(qe),[Pe,Ge])),{title:Re,key:$t,parent:ft,pos:fn,children:null,data:Tt,isStart:[].concat((0,Me.Z)(ft?ft.isStart:[]),[Kt===0]),isEnd:[].concat((0,Me.Z)(ft?ft.isEnd:[]),[Kt===et.length-1])});return je.push(Fn),Be===!0||lt.has($t)?Fn.children=ht(Tt[Ge]||[],Fn):Fn.children=[],Fn})}return ht(be),je}function Te(be,Be,Ue){var ke={};(0,re.Z)(Ue)==="object"?ke=Ue:ke={externalGetKey:Ue},ke=ke||{};var qe=ke,Pe=qe.childrenPropName,Ge=qe.externalGetKey,lt=qe.fieldNames,je=ot(lt),ht=je.key,et=je.children,ft=Pe||et,Tt;Ge?typeof Ge=="string"?Tt=function($t){return $t[Ge]}:typeof Ge=="function"&&(Tt=function($t){return Ge($t)}):Tt=function($t,Re){return we($t[ht],Re)};function Kt(fn,$t,Re,xe){var Lt=fn?fn[ft]:be,Fn=fn?ve(Re.pos,$t):"0",hn=fn?[].concat((0,Me.Z)(xe),[fn]):[];if(fn){var vt=Tt(fn,Fn),Jt={node:fn,index:$t,pos:Fn,key:vt,parentPos:Re.node?Re.pos:null,level:Re.level+1,nodes:hn};Be(Jt)}Lt&&Lt.forEach(function(Yt,jn){Kt(Yt,jn,{node:fn,pos:Fn,level:Re?Re.level+1:-1},hn)})}Kt(null)}function at(be){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ue=Be.initWrapper,ke=Be.processEntity,qe=Be.onProcessFinished,Pe=Be.externalGetKey,Ge=Be.childrenPropName,lt=Be.fieldNames,je=arguments.length>2?arguments[2]:void 0,ht=Pe||je,et={},ft={},Tt={posEntities:et,keyEntities:ft};return Ue&&(Tt=Ue(Tt)||Tt),Te(be,function(Kt){var fn=Kt.node,$t=Kt.index,Re=Kt.pos,xe=Kt.key,Lt=Kt.parentPos,Fn=Kt.level,hn=Kt.nodes,vt={node:fn,nodes:hn,index:$t,key:xe,pos:Re,level:Fn},Jt=we(xe,Re);et[Re]=vt,ft[Jt]=vt,vt.parent=et[Lt],vt.parent&&(vt.parent.children=vt.parent.children||[],vt.parent.children.push(vt)),ke&&ke(vt,Tt)},{externalGetKey:ht,childrenPropName:Ge,fieldNames:lt}),qe&&qe(Tt),Tt}function Oe(be,Be){var Ue=Be.expandedKeys,ke=Be.selectedKeys,qe=Be.loadedKeys,Pe=Be.loadingKeys,Ge=Be.checkedKeys,lt=Be.halfCheckedKeys,je=Be.dragOverNodeKey,ht=Be.dropPosition,et=Be.keyEntities,ft=(0,Fe.Z)(et,be),Tt={eventKey:be,expanded:Ue.indexOf(be)!==-1,selected:ke.indexOf(be)!==-1,loaded:qe.indexOf(be)!==-1,loading:Pe.indexOf(be)!==-1,checked:Ge.indexOf(be)!==-1,halfChecked:lt.indexOf(be)!==-1,pos:String(ft?ft.pos:""),dragOver:je===be&&ht===0,dragOverGapTop:je===be&&ht===-1,dragOverGapBottom:je===be&&ht===1};return Tt}function We(be){var Be=be.data,Ue=be.expanded,ke=be.selected,qe=be.checked,Pe=be.loaded,Ge=be.loading,lt=be.halfChecked,je=be.dragOver,ht=be.dragOverGapTop,et=be.dragOverGapBottom,ft=be.pos,Tt=be.active,Kt=be.eventKey,fn=(0,De.Z)((0,De.Z)({},Be),{},{expanded:Ue,selected:ke,checked:qe,loaded:Pe,loading:Ge,halfChecked:lt,dragOver:je,dragOverGapTop:ht,dragOverGapBottom:et,pos:ft,active:Tt,key:Kt});return"props"in fn||Object.defineProperty(fn,"props",{get:function(){return(0,ze.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),fn}},8224:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Me}});var re=fe(4676);function Me(De,Ze,Ee,de){var ze=re.unstable_batchedUpdates?function(Ie){re.unstable_batchedUpdates(Ee,Ie)}:Ee;return De!=null&&De.addEventListener&&De.addEventListener(Ze,ze,de),{remove:function(){De!=null&&De.removeEventListener&&De.removeEventListener(Ze,ze,de)}}}},24514:function(xn,dt,fe){"use strict";fe.d(dt,{G:function(){return Ze}});var re=fe(47273),Me=function(de){if((0,re.Z)()&&window.document.documentElement){var ze=Array.isArray(de)?de:[de],Fe=window.document.documentElement;return ze.some(function(Ie){return Ie in Fe.style})}return!1},De=function(de,ze){if(!Me(de))return!1;var Fe=document.createElement("div"),Ie=Fe.style[de];return Fe.style[de]=ze,Fe.style[de]!==Ie};function Ze(Ee,de){return!Array.isArray(Ee)&&de!==void 0?De(Ee,de):Me(Ee)}},6790:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return ln}});var re=fe(32855),Me=fe(34666),De=fe(27247),Ze=fe(74430),Ee=fe(11913),de=fe(43079),ze=fe(92310),Fe=fe.n(ze),Ie=fe(29301),ve=fe(70425),ut=fe(34280),we=fe(59301),ot=fe(4676),Xe=we.forwardRef(function(ge,ue){var ee=ge.height,b=ge.offsetY,ae=ge.offsetX,ie=ge.children,he=ge.prefixCls,Ye=ge.onInnerResize,pt=ge.innerProps,zt=ge.rtl,ct=ge.extra,bt={},Et={display:"flex",flexDirection:"column"};return b!==void 0&&(bt={height:ee,position:"relative",overflow:"hidden"},Et=(0,De.Z)((0,De.Z)({},Et),{},(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({transform:"translateY(".concat(b,"px)")},zt?"marginRight":"marginLeft",-ae),"position","absolute"),"left",0),"right",0),"top",0))),we.createElement("div",{style:bt},we.createElement(Ie.Z,{onResize:function(Dn){var Mt=Dn.offsetHeight;Mt&&Ye&&Ye()}},we.createElement("div",(0,re.Z)({style:Et,className:Fe()((0,Ze.Z)({},"".concat(he,"-holder-inner"),he)),ref:ue},pt),ie,ct)))});Xe.displayName="Filler";var Je=Xe;function He(ge){var ue=ge.children,ee=ge.setRef,b=we.useCallback(function(ae){ee(ae)},[]);return we.cloneElement(ue,{ref:b})}function Te(ge,ue,ee,b,ae,ie,he,Ye){var pt=Ye.getKey;return ge.slice(ue,ee+1).map(function(zt,ct){var bt=ue+ct,Et=he(zt,bt,{style:{width:b},offsetX:ae}),en=pt(zt);return we.createElement(He,{key:en,setRef:function(Mt){return ie(zt,Mt)}},Et)})}function at(ge,ue,ee,b){var ae=ee-ge,ie=ue-ee,he=Math.min(ae,ie)*2;if(b<=he){var Ye=Math.floor(b/2);return b%2?ee+Ye+1:ee-Ye}return ae>ie?ee-(b-ie):ee+(b-ae)}function Oe(ge,ue,ee){var b=ge.length,ae=ue.length,ie,he;if(b===0&&ae===0)return null;b<ae?(ie=ge,he=ue):(ie=ue,he=ge);var Ye={__EMPTY_ITEM__:!0};function pt(Dn){return Dn!==void 0?ee(Dn):Ye}for(var zt=null,ct=Math.abs(b-ae)!==1,bt=0;bt<he.length;bt+=1){var Et=pt(ie[bt]),en=pt(he[bt]);if(Et!==en){zt=bt,ct=ct||Et!==pt(he[bt+1]);break}}return zt===null?null:{index:zt,multiple:ct}}function We(ge,ue,ee){var b=we.useState(ge),ae=(0,Ee.Z)(b,2),ie=ae[0],he=ae[1],Ye=we.useState(null),pt=(0,Ee.Z)(Ye,2),zt=pt[0],ct=pt[1];return we.useEffect(function(){var bt=Oe(ie||[],ge||[],ue);(bt==null?void 0:bt.index)!==void 0&&(ee==null||ee(bt.index),ct(ge[bt.index])),he(ge)},[ge]),[zt]}var be=fe(16089),Be=(typeof navigator=="undefined"?"undefined":(0,Me.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ue=Be,ke=function(ge,ue,ee,b){var ae=(0,we.useRef)(!1),ie=(0,we.useRef)(null);function he(){clearTimeout(ie.current),ae.current=!0,ie.current=setTimeout(function(){ae.current=!1},50)}var Ye=(0,we.useRef)({top:ge,bottom:ue,left:ee,right:b});return Ye.current.top=ge,Ye.current.bottom=ue,Ye.current.left=ee,Ye.current.right=b,function(pt,zt){var ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,bt=pt?zt<0&&Ye.current.left||zt>0&&Ye.current.right:zt<0&&Ye.current.top||zt>0&&Ye.current.bottom;return ct&&bt?(clearTimeout(ie.current),ae.current=!1):(!bt||ae.current)&&he(),!ae.current&&bt}};function qe(ge,ue,ee,b,ae,ie,he){var Ye=(0,we.useRef)(0),pt=(0,we.useRef)(null),zt=(0,we.useRef)(null),ct=(0,we.useRef)(!1),bt=ke(ue,ee,b,ae);function Et(jt,qt){if(be.Z.cancel(pt.current),!bt(!1,qt)){var wt=jt;if(!wt._virtualHandled)wt._virtualHandled=!0;else return;Ye.current+=qt,zt.current=qt,Ue||wt.preventDefault(),pt.current=(0,be.Z)(function(){var Rn=ct.current?10:1;he(Ye.current*Rn,!1),Ye.current=0})}}function en(jt,qt){he(qt,!0),Ue||jt.preventDefault()}var Dn=(0,we.useRef)(null),Mt=(0,we.useRef)(null);function tt(jt){if(ge){be.Z.cancel(Mt.current),Mt.current=(0,be.Z)(function(){Dn.current=null},2);var qt=jt.deltaX,wt=jt.deltaY,Rn=jt.shiftKey,Wt=qt,Cn=wt;(Dn.current==="sx"||!Dn.current&&Rn&&wt&&!qt)&&(Wt=wt,Cn=0,Dn.current="sx");var Mn=Math.abs(Wt),sr=Math.abs(Cn);Dn.current===null&&(Dn.current=ie&&Mn>sr?"x":"y"),Dn.current==="y"?Et(jt,Cn):en(jt,Wt)}}function on(jt){ge&&(ct.current=jt.detail===zt.current)}return[tt,on]}function Pe(ge,ue,ee,b){var ae=we.useMemo(function(){return[new Map,[]]},[ge,ee.id,b]),ie=(0,Ee.Z)(ae,2),he=ie[0],Ye=ie[1],pt=function(ct){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ct,Et=he.get(ct),en=he.get(bt);if(Et===void 0||en===void 0)for(var Dn=ge.length,Mt=Ye.length;Mt<Dn;Mt+=1){var tt,on=ge[Mt],jt=ue(on);he.set(jt,Mt);var qt=(tt=ee.get(jt))!==null&&tt!==void 0?tt:b;if(Ye[Mt]=(Ye[Mt-1]||0)+qt,jt===ct&&(Et=Mt),jt===bt&&(en=Mt),Et!==void 0&&en!==void 0)break}return{top:Ye[Et-1]||0,bottom:Ye[en]}};return pt}var Ge=fe(33377),lt=fe(93912),je=function(){function ge(){(0,Ge.Z)(this,ge),(0,Ze.Z)(this,"maps",void 0),(0,Ze.Z)(this,"id",0),(0,Ze.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,lt.Z)(ge,[{key:"set",value:function(ee,b){this.diffRecords.set(ee,this.maps[ee]),this.maps[ee]=b,this.id+=1}},{key:"get",value:function(ee){return this.maps[ee]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ge}(),ht=je;function et(ge){var ue=parseFloat(ge);return isNaN(ue)?0:ue}function ft(ge,ue,ee){var b=we.useState(0),ae=(0,Ee.Z)(b,2),ie=ae[0],he=ae[1],Ye=(0,we.useRef)(new Map),pt=(0,we.useRef)(new ht),zt=(0,we.useRef)(0);function ct(){zt.current+=1}function bt(){var en=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ct();var Dn=function(){var on=!1;Ye.current.forEach(function(jt,qt){if(jt&&jt.offsetParent){var wt=jt.offsetHeight,Rn=getComputedStyle(jt),Wt=Rn.marginTop,Cn=Rn.marginBottom,Mn=et(Wt),sr=et(Cn),vn=wt+Mn+sr;pt.current.get(qt)!==vn&&(pt.current.set(qt,vn),on=!0)}}),on&&he(function(jt){return jt+1})};if(en)Dn();else{zt.current+=1;var Mt=zt.current;Promise.resolve().then(function(){Mt===zt.current&&Dn()})}}function Et(en,Dn){var Mt=ge(en),tt=Ye.current.get(Mt);Dn?(Ye.current.set(Mt,Dn),bt()):Ye.current.delete(Mt),!tt!=!Dn&&(Dn?ue==null||ue(en):ee==null||ee(en))}return(0,we.useEffect)(function(){return ct},[]),[Et,bt,pt.current,ie]}var Tt=14/15;function Kt(ge,ue,ee){var b=(0,we.useRef)(!1),ae=(0,we.useRef)(0),ie=(0,we.useRef)(0),he=(0,we.useRef)(null),Ye=(0,we.useRef)(null),pt,zt=function(en){if(b.current){var Dn=Math.ceil(en.touches[0].pageX),Mt=Math.ceil(en.touches[0].pageY),tt=ae.current-Dn,on=ie.current-Mt,jt=Math.abs(tt)>Math.abs(on);jt?ae.current=Dn:ie.current=Mt;var qt=ee(jt,jt?tt:on,!1,en);qt&&en.preventDefault(),clearInterval(Ye.current),qt&&(Ye.current=setInterval(function(){jt?tt*=Tt:on*=Tt;var wt=Math.floor(jt?tt:on);(!ee(jt,wt,!0)||Math.abs(wt)<=.1)&&clearInterval(Ye.current)},16))}},ct=function(){b.current=!1,pt()},bt=function(en){pt(),en.touches.length===1&&!b.current&&(b.current=!0,ae.current=Math.ceil(en.touches[0].pageX),ie.current=Math.ceil(en.touches[0].pageY),he.current=en.target,he.current.addEventListener("touchmove",zt,{passive:!1}),he.current.addEventListener("touchend",ct,{passive:!0}))};pt=function(){he.current&&(he.current.removeEventListener("touchmove",zt),he.current.removeEventListener("touchend",ct))},(0,ut.Z)(function(){return ge&&ue.current.addEventListener("touchstart",bt,{passive:!0}),function(){var Et;(Et=ue.current)===null||Et===void 0||Et.removeEventListener("touchstart",bt),pt(),clearInterval(Ye.current)}},[ge])}function fn(ge){return Math.floor(Math.pow(ge,.5))}function $t(ge,ue){var ee="touches"in ge?ge.touches[0]:ge;return ee[ue?"pageX":"pageY"]-window[ue?"scrollX":"scrollY"]}function Re(ge,ue,ee){we.useEffect(function(){var b=ue.current;if(ge&&b){var ae=!1,ie,he,Ye=function(){be.Z.cancel(ie)},pt=function Et(){Ye(),ie=(0,be.Z)(function(){ee(he),Et()})},zt=function(en){if(!(en.target.draggable||en.button!==0)){var Dn=en;Dn._virtualHandled||(Dn._virtualHandled=!0,ae=!0)}},ct=function(){ae=!1,Ye()},bt=function(en){if(ae){var Dn=$t(en,!1),Mt=b.getBoundingClientRect(),tt=Mt.top,on=Mt.bottom;if(Dn<=tt){var jt=tt-Dn;he=-fn(jt),pt()}else if(Dn>=on){var qt=Dn-on;he=fn(qt),pt()}else Ye()}};return b.addEventListener("mousedown",zt),b.ownerDocument.addEventListener("mouseup",ct),b.ownerDocument.addEventListener("mousemove",bt),function(){b.removeEventListener("mousedown",zt),b.ownerDocument.removeEventListener("mouseup",ct),b.ownerDocument.removeEventListener("mousemove",bt),Ye()}}},[ge])}var xe=10;function Lt(ge,ue,ee,b,ae,ie,he,Ye){var pt=we.useRef(),zt=we.useState(null),ct=(0,Ee.Z)(zt,2),bt=ct[0],Et=ct[1];return(0,ut.Z)(function(){if(bt&&bt.times<xe){if(!ge.current){Et(function(Qr){return(0,De.Z)({},Qr)});return}ie();var en=bt.targetAlign,Dn=bt.originAlign,Mt=bt.index,tt=bt.offset,on=ge.current.clientHeight,jt=!1,qt=en,wt=null;if(on){for(var Rn=en||Dn,Wt=0,Cn=0,Mn=0,sr=Math.min(ue.length-1,Mt),vn=0;vn<=sr;vn+=1){var cr=ae(ue[vn]);Cn=Wt;var ar=ee.get(cr);Mn=Cn+(ar===void 0?b:ar),Wt=Mn}for(var mr=Rn==="top"?tt:on-tt,$n=sr;$n>=0;$n-=1){var Xr=ae(ue[$n]),Pr=ee.get(Xr);if(Pr===void 0){jt=!0;break}if(mr-=Pr,mr<=0)break}switch(Rn){case"top":wt=Cn-tt;break;case"bottom":wt=Mn-on+tt;break;default:{var Er=ge.current.scrollTop,Ar=Er+on;Cn<Er?qt="top":Mn>Ar&&(qt="bottom")}}wt!==null&&he(wt),wt!==bt.lastTop&&(jt=!0)}jt&&Et((0,De.Z)((0,De.Z)({},bt),{},{times:bt.times+1,targetAlign:qt,lastTop:wt}))}},[bt,ge.current]),function(en){if(en==null){Ye();return}if(be.Z.cancel(pt.current),typeof en=="number")he(en);else if(en&&(0,Me.Z)(en)==="object"){var Dn,Mt=en.align;"index"in en?Dn=en.index:Dn=ue.findIndex(function(jt){return ae(jt)===en.key});var tt=en.offset,on=tt===void 0?0:tt;Et({times:0,index:Dn,offset:on,originAlign:Mt})}}}var Fn=we.forwardRef(function(ge,ue){var ee=ge.prefixCls,b=ge.rtl,ae=ge.scrollOffset,ie=ge.scrollRange,he=ge.onStartMove,Ye=ge.onStopMove,pt=ge.onScroll,zt=ge.horizontal,ct=ge.spinSize,bt=ge.containerSize,Et=ge.style,en=ge.thumbStyle,Dn=ge.showScrollBar,Mt=we.useState(!1),tt=(0,Ee.Z)(Mt,2),on=tt[0],jt=tt[1],qt=we.useState(null),wt=(0,Ee.Z)(qt,2),Rn=wt[0],Wt=wt[1],Cn=we.useState(null),Mn=(0,Ee.Z)(Cn,2),sr=Mn[0],vn=Mn[1],cr=!b,ar=we.useRef(),mr=we.useRef(),$n=we.useState(Dn),Xr=(0,Ee.Z)($n,2),Pr=Xr[0],Er=Xr[1],Ar=we.useRef(),Qr=function(){Dn===!0||Dn===!1||(clearTimeout(Ar.current),Er(!0),Ar.current=setTimeout(function(){Er(!1)},3e3))},Vn=ie-bt||0,qn=bt-ct||0,Yn=we.useMemo(function(){if(ae===0||Vn===0)return 0;var Wr=ae/Vn;return Wr*qn},[ae,Vn,qn]),pn=function(Dr){Dr.stopPropagation(),Dr.preventDefault()},Wn=we.useRef({top:Yn,dragging:on,pageY:Rn,startTop:sr});Wn.current={top:Yn,dragging:on,pageY:Rn,startTop:sr};var cn=function(Dr){jt(!0),Wt($t(Dr,zt)),vn(Wn.current.top),he(),Dr.stopPropagation(),Dr.preventDefault()};we.useEffect(function(){var Wr=function(Xn){Xn.preventDefault()},Dr=ar.current,Fr=mr.current;return Dr.addEventListener("touchstart",Wr,{passive:!1}),Fr.addEventListener("touchstart",cn,{passive:!1}),function(){Dr.removeEventListener("touchstart",Wr),Fr.removeEventListener("touchstart",cn)}},[]);var Sn=we.useRef();Sn.current=Vn;var fr=we.useRef();fr.current=qn,we.useEffect(function(){if(on){var Wr,Dr=function(Xn){var yn=Wn.current,rt=yn.dragging,Sr=yn.pageY,Kr=yn.startTop;be.Z.cancel(Wr);var _t=ar.current.getBoundingClientRect(),St=bt/(zt?_t.width:_t.height);if(rt){var Jn=($t(Xn,zt)-Sr)*St,Hn=Kr;!cr&&zt?Hn-=Jn:Hn+=Jn;var Ot=Sn.current,kn=fr.current,nr=kn?Hn/kn:0,rr=Math.ceil(nr*Ot);rr=Math.max(rr,0),rr=Math.min(rr,Ot),Wr=(0,be.Z)(function(){pt(rr,zt)})}},Fr=function(){jt(!1),Ye()};return window.addEventListener("mousemove",Dr,{passive:!0}),window.addEventListener("touchmove",Dr,{passive:!0}),window.addEventListener("mouseup",Fr,{passive:!0}),window.addEventListener("touchend",Fr,{passive:!0}),function(){window.removeEventListener("mousemove",Dr),window.removeEventListener("touchmove",Dr),window.removeEventListener("mouseup",Fr),window.removeEventListener("touchend",Fr),be.Z.cancel(Wr)}}},[on]),we.useEffect(function(){return Qr(),function(){clearTimeout(Ar.current)}},[ae]),we.useImperativeHandle(ue,function(){return{delayHidden:Qr}});var ir="".concat(ee,"-scrollbar"),lr={position:"absolute",visibility:Pr?null:"hidden"},xr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return zt?(Object.assign(lr,{height:8,left:0,right:0,bottom:0}),Object.assign(xr,(0,Ze.Z)({height:"100%",width:ct},cr?"left":"right",Yn))):(Object.assign(lr,(0,Ze.Z)({width:8,top:0,bottom:0},cr?"right":"left",0)),Object.assign(xr,{width:"100%",height:ct,top:Yn})),we.createElement("div",{ref:ar,className:Fe()(ir,(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},"".concat(ir,"-horizontal"),zt),"".concat(ir,"-vertical"),!zt),"".concat(ir,"-visible"),Pr)),style:(0,De.Z)((0,De.Z)({},lr),Et),onMouseDown:pn,onMouseMove:Qr},we.createElement("div",{ref:mr,className:Fe()("".concat(ir,"-thumb"),(0,Ze.Z)({},"".concat(ir,"-thumb-moving"),on)),style:(0,De.Z)((0,De.Z)({},xr),en),onMouseDown:cn}))}),hn=Fn,vt=20;function Jt(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ge/ue*ge;return isNaN(ee)&&(ee=0),ee=Math.max(ee,vt),Math.floor(ee)}var Yt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],jn=[],yt={overflowY:"auto",overflowAnchor:"none"};function wn(ge,ue){var ee=ge.prefixCls,b=ee===void 0?"rc-virtual-list":ee,ae=ge.className,ie=ge.height,he=ge.itemHeight,Ye=ge.fullHeight,pt=Ye===void 0?!0:Ye,zt=ge.style,ct=ge.data,bt=ge.children,Et=ge.itemKey,en=ge.virtual,Dn=ge.direction,Mt=ge.scrollWidth,tt=ge.component,on=tt===void 0?"div":tt,jt=ge.onScroll,qt=ge.onVirtualScroll,wt=ge.onVisibleChange,Rn=ge.innerProps,Wt=ge.extraRender,Cn=ge.styles,Mn=ge.showScrollBar,sr=Mn===void 0?"optional":Mn,vn=(0,de.Z)(ge,Yt),cr=we.useCallback(function(Ut){return typeof Et=="function"?Et(Ut):Ut==null?void 0:Ut[Et]},[Et]),ar=ft(cr,null,null),mr=(0,Ee.Z)(ar,4),$n=mr[0],Xr=mr[1],Pr=mr[2],Er=mr[3],Ar=!!(en!==!1&&ie&&he),Qr=we.useMemo(function(){return Object.values(Pr.maps).reduce(function(Ut,tn){return Ut+tn},0)},[Pr.id,Pr.maps]),Vn=Ar&&ct&&(Math.max(he*ct.length,Qr)>ie||!!Mt),qn=Dn==="rtl",Yn=Fe()(b,(0,Ze.Z)({},"".concat(b,"-rtl"),qn),ae),pn=ct||jn,Wn=(0,we.useRef)(),cn=(0,we.useRef)(),Sn=(0,we.useRef)(),fr=(0,we.useState)(0),ir=(0,Ee.Z)(fr,2),lr=ir[0],xr=ir[1],Wr=(0,we.useState)(0),Dr=(0,Ee.Z)(Wr,2),Fr=Dr[0],Rr=Dr[1],Xn=(0,we.useState)(!1),yn=(0,Ee.Z)(Xn,2),rt=yn[0],Sr=yn[1],Kr=function(){Sr(!0)},_t=function(){Sr(!1)},St={getKey:cr};function Jn(Ut){xr(function(tn){var sn;typeof Ut=="function"?sn=Ut(tn):sn=Ut;var Gt=gi(sn);return Wn.current.scrollTop=Gt,Gt})}var Hn=(0,we.useRef)({start:0,end:pn.length}),Ot=(0,we.useRef)(),kn=We(pn,cr),nr=(0,Ee.Z)(kn,1),rr=nr[0];Ot.current=rr;var er=we.useMemo(function(){if(!Ar)return{scrollHeight:void 0,start:0,end:pn.length-1,offset:void 0};if(!Vn){var Ut;return{scrollHeight:((Ut=cn.current)===null||Ut===void 0?void 0:Ut.offsetHeight)||0,start:0,end:pn.length-1,offset:void 0}}for(var tn=0,sn,Gt,nn,An=pn.length,Bt=0;Bt<An;Bt+=1){var rn=pn[Bt],Ln=cr(rn),dr=Pr.get(Ln),tr=tn+(dr===void 0?he:dr);tr>=lr&&sn===void 0&&(sn=Bt,Gt=tn),tr>lr+ie&&nn===void 0&&(nn=Bt),tn=tr}return sn===void 0&&(sn=0,Gt=0,nn=Math.ceil(ie/he)),nn===void 0&&(nn=pn.length-1),nn=Math.min(nn+1,pn.length-1),{scrollHeight:tn,start:sn,end:nn,offset:Gt}},[Vn,Ar,lr,pn,Er,ie]),ur=er.scrollHeight,wr=er.start,It=er.end,an=er.offset;Hn.current.start=wr,Hn.current.end=It,we.useLayoutEffect(function(){var Ut=Pr.getRecord();if(Ut.size===1){var tn=Array.from(Ut.keys())[0],sn=Ut.get(tn),Gt=pn[wr];if(Gt&&sn===void 0){var nn=cr(Gt);if(nn===tn){var An=Pr.get(tn),Bt=An-he;Jn(function(rn){return rn+Bt})}}}Pr.resetRecord()},[ur]);var mt=we.useState({width:0,height:ie}),dn=(0,Ee.Z)(mt,2),Tn=dn[0],Br=dn[1],_r=function(tn){Br({width:tn.offsetWidth,height:tn.offsetHeight})},Or=(0,we.useRef)(),yr=(0,we.useRef)(),kr=we.useMemo(function(){return Jt(Tn.width,Mt)},[Tn.width,Mt]),ii=we.useMemo(function(){return Jt(Tn.height,ur)},[Tn.height,ur]),jr=ur-ie,hi=(0,we.useRef)(jr);hi.current=jr;function gi(Ut){var tn=Ut;return Number.isNaN(hi.current)||(tn=Math.min(tn,hi.current)),tn=Math.max(tn,0),tn}var oi=lr<=0,vi=lr>=jr,Ne=Fr<=0,_e=Fr>=Mt,it=ke(oi,vi,Ne,_e),gt=function(){return{x:qn?-Fr:Fr,y:lr}},Vt=(0,we.useRef)(gt()),Nt=(0,ve.zX)(function(Ut){if(qt){var tn=(0,De.Z)((0,De.Z)({},gt()),Ut);(Vt.current.x!==tn.x||Vt.current.y!==tn.y)&&(qt(tn),Vt.current=tn)}});function Qn(Ut,tn){var sn=Ut;tn?((0,ot.flushSync)(function(){Rr(sn)}),Nt()):Jn(sn)}function Nn(Ut){var tn=Ut.currentTarget.scrollTop;tn!==lr&&Jn(tn),jt==null||jt(Ut),Nt()}var Zn=function(tn){var sn=tn,Gt=Mt?Mt-Tn.width:0;return sn=Math.max(sn,0),sn=Math.min(sn,Gt),sn},Gn=(0,ve.zX)(function(Ut,tn){tn?((0,ot.flushSync)(function(){Rr(function(sn){var Gt=sn+(qn?-Ut:Ut);return Zn(Gt)})}),Nt()):Jn(function(sn){var Gt=sn+Ut;return Gt})}),Kn=qe(Ar,oi,vi,Ne,_e,!!Mt,Gn),zn=(0,Ee.Z)(Kn,2),st=zn[0],Rt=zn[1];Kt(Ar,Wn,function(Ut,tn,sn,Gt){var nn=Gt;return it(Ut,tn,sn)?!1:!nn||!nn._virtualHandled?(nn&&(nn._virtualHandled=!0),st({preventDefault:function(){},deltaX:Ut?tn:0,deltaY:Ut?0:tn}),!0):!1}),Re(Vn,Wn,function(Ut){Jn(function(tn){return tn+Ut})}),(0,ut.Z)(function(){function Ut(sn){var Gt=oi&&sn.detail<0,nn=vi&&sn.detail>0;Ar&&!Gt&&!nn&&sn.preventDefault()}var tn=Wn.current;return tn.addEventListener("wheel",st,{passive:!1}),tn.addEventListener("DOMMouseScroll",Rt,{passive:!0}),tn.addEventListener("MozMousePixelScroll",Ut,{passive:!1}),function(){tn.removeEventListener("wheel",st),tn.removeEventListener("DOMMouseScroll",Rt),tn.removeEventListener("MozMousePixelScroll",Ut)}},[Ar,oi,vi]),(0,ut.Z)(function(){if(Mt){var Ut=Zn(Fr);Rr(Ut),Nt({x:Ut})}},[Tn.width,Mt]);var kt=function(){var tn,sn;(tn=Or.current)===null||tn===void 0||tn.delayHidden(),(sn=yr.current)===null||sn===void 0||sn.delayHidden()},Ht=Lt(Wn,pn,Pr,he,cr,function(){return Xr(!0)},Jn,kt);we.useImperativeHandle(ue,function(){return{nativeElement:Sn.current,getScrollInfo:gt,scrollTo:function(tn){function sn(Gt){return Gt&&(0,Me.Z)(Gt)==="object"&&("left"in Gt||"top"in Gt)}sn(tn)?(tn.left!==void 0&&Rr(Zn(tn.left)),Ht(tn.top)):Ht(tn)}}}),(0,ut.Z)(function(){if(wt){var Ut=pn.slice(wr,It+1);wt(Ut,pn)}},[wr,It,pn]);var Zt=Pe(pn,cr,Pr,he),gn=Wt==null?void 0:Wt({start:wr,end:It,virtual:Vn,offsetX:Fr,offsetY:an,rtl:qn,getSize:Zt}),On=Te(pn,wr,It,Mt,Fr,$n,bt,St),$e=null;ie&&($e=(0,De.Z)((0,Ze.Z)({},pt?"height":"maxHeight",ie),yt),Ar&&($e.overflowY="hidden",Mt&&($e.overflowX="hidden"),rt&&($e.pointerEvents="none")));var mn={};return qn&&(mn.dir="rtl"),we.createElement("div",(0,re.Z)({ref:Sn,style:(0,De.Z)((0,De.Z)({},zt),{},{position:"relative"}),className:Yn},mn,vn),we.createElement(Ie.Z,{onResize:_r},we.createElement(on,{className:"".concat(b,"-holder"),style:$e,ref:Wn,onScroll:Nn,onMouseEnter:kt},we.createElement(Je,{prefixCls:b,height:ur,offsetX:Fr,offsetY:an,scrollWidth:Mt,onInnerResize:Xr,ref:cn,innerProps:Rn,rtl:qn,extra:gn},On))),Vn&&ur>ie&&we.createElement(hn,{ref:Or,prefixCls:b,scrollOffset:lr,scrollRange:ur,rtl:qn,onScroll:Qn,onStartMove:Kr,onStopMove:_t,spinSize:ii,containerSize:Tn.height,style:Cn==null?void 0:Cn.verticalScrollBar,thumbStyle:Cn==null?void 0:Cn.verticalScrollBarThumb,showScrollBar:sr}),Vn&&Mt>Tn.width&&we.createElement(hn,{ref:yr,prefixCls:b,scrollOffset:Fr,scrollRange:Mt,rtl:qn,onScroll:Qn,onStartMove:Kr,onStopMove:_t,spinSize:kr,containerSize:Tn.width,horizontal:!0,style:Cn==null?void 0:Cn.horizontalScrollBar,thumbStyle:Cn==null?void 0:Cn.horizontalScrollBarThumb,showScrollBar:sr}))}var Dt=we.forwardRef(wn);Dt.displayName="List";var un=Dt,ln=un},51353:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),Object.defineProperty(dt,"DraggableCore",{enumerable:!0,get:function(){return Fe.default}}),dt.default=void 0;var re=ut(fe(59301)),Me=ve(fe(12708)),De=ve(fe(4676)),Ze=fe(14625),Ee=fe(77026),de=fe(22013),ze=fe(80217),Fe=ve(fe(68555)),Ie=ve(fe(97510));function ve(Te){return Te&&Te.__esModule?Te:{default:Te}}function ut(Te,at){if(typeof WeakMap=="function")var Oe=new WeakMap,We=new WeakMap;return(ut=function(be,Be){if(!Be&&be&&be.__esModule)return be;var Ue,ke,qe={__proto__:null,default:be};if(be===null||typeof be!="object"&&typeof be!="function")return qe;if(Ue=Be?We:Oe){if(Ue.has(be))return Ue.get(be);Ue.set(be,qe)}for(const Pe in be)Pe!=="default"&&{}.hasOwnProperty.call(be,Pe)&&((ke=(Ue=Object.defineProperty)&&Object.getOwnPropertyDescriptor(be,Pe))&&(ke.get||ke.set)?Ue(qe,Pe,ke):qe[Pe]=be[Pe]);return qe})(Te,at)}function we(){return we=Object.assign?Object.assign.bind():function(Te){for(var at=1;at<arguments.length;at++){var Oe=arguments[at];for(var We in Oe)({}).hasOwnProperty.call(Oe,We)&&(Te[We]=Oe[We])}return Te},we.apply(null,arguments)}function ot(Te,at,Oe){return(at=Xe(at))in Te?Object.defineProperty(Te,at,{value:Oe,enumerable:!0,configurable:!0,writable:!0}):Te[at]=Oe,Te}function Xe(Te){var at=Je(Te,"string");return typeof at=="symbol"?at:at+""}function Je(Te,at){if(typeof Te!="object"||!Te)return Te;var Oe=Te[Symbol.toPrimitive];if(Oe!==void 0){var We=Oe.call(Te,at||"default");if(typeof We!="object")return We;throw new TypeError("@@toPrimitive must return a primitive value.")}return(at==="string"?String:Number)(Te)}class He extends re.Component{static getDerivedStateFromProps(at,Oe){let{position:We}=at,{prevPropsPosition:be}=Oe;return We&&(!be||We.x!==be.x||We.y!==be.y)?((0,Ie.default)("Draggable: getDerivedStateFromProps %j",{position:We,prevPropsPosition:be}),{x:We.x,y:We.y,prevPropsPosition:Vo({},We)}):null}constructor(at){super(at),ot(this,"onDragStart",(Oe,We)=>{if((0,Ie.default)("Draggable: onDragStart: %j",We),this.props.onStart(Oe,(0,de.createDraggableData)(this,We))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),ot(this,"onDrag",(Oe,We)=>{if(!this.state.dragging)return!1;(0,Ie.default)("Draggable: onDrag: %j",We);const be=(0,de.createDraggableData)(this,We),Be={x:be.x,y:be.y,slackX:0,slackY:0};if(this.props.bounds){const{x:ke,y:qe}=Be;Be.x+=this.state.slackX,Be.y+=this.state.slackY;const[Pe,Ge]=(0,de.getBoundPosition)(this,Be.x,Be.y);Be.x=Pe,Be.y=Ge,Be.slackX=this.state.slackX+(ke-Be.x),Be.slackY=this.state.slackY+(qe-Be.y),be.x=Be.x,be.y=Be.y,be.deltaX=Be.x-this.state.x,be.deltaY=Be.y-this.state.y}if(this.props.onDrag(Oe,be)===!1)return!1;this.setState(Be)}),ot(this,"onDragStop",(Oe,We)=>{if(!this.state.dragging||this.props.onStop(Oe,(0,de.createDraggableData)(this,We))===!1)return!1;(0,Ie.default)("Draggable: onDragStop: %j",We);const Be={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:ke,y:qe}=this.props.position;Be.x=ke,Be.y=qe}this.setState(Be)}),this.state={dragging:!1,dragged:!1,x:at.position?at.position.x:at.defaultPosition.x,y:at.position?at.position.y:at.defaultPosition.y,prevPropsPosition:Vo({},at.position),slackX:0,slackY:0,isElementSVG:!1},at.position&&!(at.onDrag||at.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var at,Oe,We;return(We=(Oe=(at=this.props)==null?void 0:at.nodeRef)==null?void 0:Oe.current)!=null?We:De.default.findDOMNode(this)}render(){const $t=this.props,{axis:at,bounds:Oe,children:We,defaultPosition:be,defaultClassName:Be,defaultClassNameDragging:Ue,defaultClassNameDragged:ke,position:qe,positionOffset:Pe,scale:Ge}=$t,lt=cc($t,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let je={},ht=null;const ft=!!!qe||this.state.dragging,Tt=qe||be,Kt={x:(0,de.canDragX)(this)&&ft?this.state.x:Tt.x,y:(0,de.canDragY)(this)&&ft?this.state.y:Tt.y};this.state.isElementSVG?ht=(0,Ee.createSVGTransform)(Kt,Pe):je=(0,Ee.createCSSTransform)(Kt,Pe);const fn=(0,Ze.clsx)(We.props.className||"",Be,{[Ue]:this.state.dragging,[ke]:this.state.dragged});return re.createElement(Fe.default,we({},lt,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),re.cloneElement(re.Children.only(We),{className:fn,style:Vo(Vo({},We.props.style),je),transform:ht}))}}dt.default=He,ot(He,"displayName","Draggable"),ot(He,"propTypes",ec(Vo({},Fe.default.propTypes),{axis:Me.default.oneOf(["both","x","y","none"]),bounds:Me.default.oneOfType([Me.default.shape({left:Me.default.number,right:Me.default.number,top:Me.default.number,bottom:Me.default.number}),Me.default.string,Me.default.oneOf([!1])]),defaultClassName:Me.default.string,defaultClassNameDragging:Me.default.string,defaultClassNameDragged:Me.default.string,defaultPosition:Me.default.shape({x:Me.default.number,y:Me.default.number}),positionOffset:Me.default.shape({x:Me.default.oneOfType([Me.default.number,Me.default.string]),y:Me.default.oneOfType([Me.default.number,Me.default.string])}),position:Me.default.shape({x:Me.default.number,y:Me.default.number}),className:ze.dontSetMe,style:ze.dontSetMe,transform:ze.dontSetMe})),ot(He,"defaultProps",ec(Vo({},Fe.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=void 0;var re=Ie(fe(59301)),Me=Fe(fe(12708)),De=Fe(fe(4676)),Ze=fe(77026),Ee=fe(22013),de=fe(80217),ze=Fe(fe(97510));function Fe(He){return He&&He.__esModule?He:{default:He}}function Ie(He,Te){if(typeof WeakMap=="function")var at=new WeakMap,Oe=new WeakMap;return(Ie=function(We,be){if(!be&&We&&We.__esModule)return We;var Be,Ue,ke={__proto__:null,default:We};if(We===null||typeof We!="object"&&typeof We!="function")return ke;if(Be=be?Oe:at){if(Be.has(We))return Be.get(We);Be.set(We,ke)}for(const qe in We)qe!=="default"&&{}.hasOwnProperty.call(We,qe)&&((Ue=(Be=Object.defineProperty)&&Object.getOwnPropertyDescriptor(We,qe))&&(Ue.get||Ue.set)?Be(ke,qe,Ue):ke[qe]=We[qe]);return ke})(He,Te)}function ve(He,Te,at){return(Te=ut(Te))in He?Object.defineProperty(He,Te,{value:at,enumerable:!0,configurable:!0,writable:!0}):He[Te]=at,He}function ut(He){var Te=we(He,"string");return typeof Te=="symbol"?Te:Te+""}function we(He,Te){if(typeof He!="object"||!He)return He;var at=He[Symbol.toPrimitive];if(at!==void 0){var Oe=at.call(He,Te||"default");if(typeof Oe!="object")return Oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Te==="string"?String:Number)(He)}const ot={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let Xe=ot.mouse;class Je extends re.Component{constructor(){super(...arguments),ve(this,"dragging",!1),ve(this,"lastX",NaN),ve(this,"lastY",NaN),ve(this,"touchIdentifier",null),ve(this,"mounted",!1),ve(this,"handleDragStart",Te=>{if(this.props.onMouseDown(Te),!this.props.allowAnyClick&&typeof Te.button=="number"&&Te.button!==0)return!1;const at=this.findDOMNode();if(!at||!at.ownerDocument||!at.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:Oe}=at;if(this.props.disabled||!(Te.target instanceof Oe.defaultView.Node)||this.props.handle&&!(0,Ze.matchesSelectorAndParentsTo)(Te.target,this.props.handle,at)||this.props.cancel&&(0,Ze.matchesSelectorAndParentsTo)(Te.target,this.props.cancel,at))return;Te.type==="touchstart"&&!this.props.allowMobileScroll&&Te.preventDefault();const We=(0,Ze.getTouchIdentifier)(Te);this.touchIdentifier=We;const be=(0,Ee.getControlPosition)(Te,We,this);if(be==null)return;const{x:Be,y:Ue}=be,ke=(0,Ee.createCoreData)(this,Be,Ue);(0,ze.default)("DraggableCore: handleDragStart: %j",ke),(0,ze.default)("calling",this.props.onStart),!(this.props.onStart(Te,ke)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Ze.addUserSelectStyles)(Oe),this.dragging=!0,this.lastX=Be,this.lastY=Ue,(0,Ze.addEvent)(Oe,Xe.move,this.handleDrag),(0,Ze.addEvent)(Oe,Xe.stop,this.handleDragStop))}),ve(this,"handleDrag",Te=>{const at=(0,Ee.getControlPosition)(Te,this.touchIdentifier,this);if(at==null)return;let{x:Oe,y:We}=at;if(Array.isArray(this.props.grid)){let Ue=Oe-this.lastX,ke=We-this.lastY;if([Ue,ke]=(0,Ee.snapToGrid)(this.props.grid,Ue,ke),!Ue&&!ke)return;Oe=this.lastX+Ue,We=this.lastY+ke}const be=(0,Ee.createCoreData)(this,Oe,We);if((0,ze.default)("DraggableCore: handleDrag: %j",be),this.props.onDrag(Te,be)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(Ue){const ke=document.createEvent("MouseEvents");ke.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(ke)}return}this.lastX=Oe,this.lastY=We}),ve(this,"handleDragStop",Te=>{if(!this.dragging)return;const at=(0,Ee.getControlPosition)(Te,this.touchIdentifier,this);if(at==null)return;let{x:Oe,y:We}=at;if(Array.isArray(this.props.grid)){let ke=Oe-this.lastX||0,qe=We-this.lastY||0;[ke,qe]=(0,Ee.snapToGrid)(this.props.grid,ke,qe),Oe=this.lastX+ke,We=this.lastY+qe}const be=(0,Ee.createCoreData)(this,Oe,We);if(this.props.onStop(Te,be)===!1||this.mounted===!1)return!1;const Ue=this.findDOMNode();Ue&&this.props.enableUserSelectHack&&(0,Ze.scheduleRemoveUserSelectStyles)(Ue.ownerDocument),(0,ze.default)("DraggableCore: handleDragStop: %j",be),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,Ue&&((0,ze.default)("DraggableCore: Removing handlers"),(0,Ze.removeEvent)(Ue.ownerDocument,Xe.move,this.handleDrag),(0,Ze.removeEvent)(Ue.ownerDocument,Xe.stop,this.handleDragStop))}),ve(this,"onMouseDown",Te=>(Xe=ot.mouse,this.handleDragStart(Te))),ve(this,"onMouseUp",Te=>(Xe=ot.mouse,this.handleDragStop(Te))),ve(this,"onTouchStart",Te=>(Xe=ot.touch,this.handleDragStart(Te))),ve(this,"onTouchEnd",Te=>(Xe=ot.touch,this.handleDragStop(Te)))}componentDidMount(){this.mounted=!0;const Te=this.findDOMNode();Te&&(0,Ze.addEvent)(Te,ot.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const Te=this.findDOMNode();if(Te){const{ownerDocument:at}=Te;(0,Ze.removeEvent)(at,ot.mouse.move,this.handleDrag),(0,Ze.removeEvent)(at,ot.touch.move,this.handleDrag),(0,Ze.removeEvent)(at,ot.mouse.stop,this.handleDragStop),(0,Ze.removeEvent)(at,ot.touch.stop,this.handleDragStop),(0,Ze.removeEvent)(Te,ot.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Ze.scheduleRemoveUserSelectStyles)(at)}}findDOMNode(){var Te,at,Oe;return(Te=this.props)!=null&&Te.nodeRef?(Oe=(at=this.props)==null?void 0:at.nodeRef)==null?void 0:Oe.current:De.default.findDOMNode(this)}render(){return re.cloneElement(re.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}dt.default=Je,ve(Je,"displayName","DraggableCore"),ve(Je,"propTypes",{allowAnyClick:Me.default.bool,allowMobileScroll:Me.default.bool,children:Me.default.node.isRequired,disabled:Me.default.bool,enableUserSelectHack:Me.default.bool,offsetParent:function(He,Te){if(He[Te]&&He[Te].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Me.default.arrayOf(Me.default.number),handle:Me.default.string,cancel:Me.default.string,nodeRef:Me.default.object,onStart:Me.default.func,onDrag:Me.default.func,onStop:Me.default.func,onMouseDown:Me.default.func,scale:Me.default.number,className:de.dontSetMe,style:de.dontSetMe,transform:de.dontSetMe}),ve(Je,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(xn,dt,fe){"use strict";const{default:re,DraggableCore:Me}=fe(51353);xn.exports=re,xn.exports.default=re,xn.exports.DraggableCore=Me},77026:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.addClassName=Be,dt.addEvent=ze,dt.addUserSelectStyles=Oe,dt.createCSSTransform=Xe,dt.createSVGTransform=Je,dt.getTouch=Te,dt.getTouchIdentifier=at,dt.getTranslation=He,dt.innerHeight=ut,dt.innerWidth=we,dt.matchesSelector=Ee,dt.matchesSelectorAndParentsTo=de,dt.offsetXYFromParent=ot,dt.outerHeight=Ie,dt.outerWidth=ve,dt.removeClassName=Ue,dt.removeEvent=Fe,dt.scheduleRemoveUserSelectStyles=We;var re=fe(80217),Me=De(fe(76172));function De(ke,qe){if(typeof WeakMap=="function")var Pe=new WeakMap,Ge=new WeakMap;return(De=function(lt,je){if(!je&&lt&&lt.__esModule)return lt;var ht,et,ft={__proto__:null,default:lt};if(lt===null||typeof lt!="object"&&typeof lt!="function")return ft;if(ht=je?Ge:Pe){if(ht.has(lt))return ht.get(lt);ht.set(lt,ft)}for(const Tt in lt)Tt!=="default"&&{}.hasOwnProperty.call(lt,Tt)&&((et=(ht=Object.defineProperty)&&Object.getOwnPropertyDescriptor(lt,Tt))&&(et.get||et.set)?ht(ft,Tt,et):ft[Tt]=lt[Tt]);return ft})(ke,qe)}let Ze="";function Ee(ke,qe){return Ze||(Ze=(0,re.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(Pe){return(0,re.isFunction)(ke[Pe])})),(0,re.isFunction)(ke[Ze])?ke[Ze](qe):!1}function de(ke,qe,Pe){let Ge=ke;do{if(Ee(Ge,qe))return!0;if(Ge===Pe)return!1;Ge=Ge.parentNode}while(Ge);return!1}function ze(ke,qe,Pe,Ge){if(!ke)return;const lt=Vo({capture:!0},Ge);ke.addEventListener?ke.addEventListener(qe,Pe,lt):ke.attachEvent?ke.attachEvent("on"+qe,Pe):ke["on"+qe]=Pe}function Fe(ke,qe,Pe,Ge){if(!ke)return;const lt=Vo({capture:!0},Ge);ke.removeEventListener?ke.removeEventListener(qe,Pe,lt):ke.detachEvent?ke.detachEvent("on"+qe,Pe):ke["on"+qe]=null}function Ie(ke){let qe=ke.clientHeight;const Pe=ke.ownerDocument.defaultView.getComputedStyle(ke);return qe+=(0,re.int)(Pe.borderTopWidth),qe+=(0,re.int)(Pe.borderBottomWidth),qe}function ve(ke){let qe=ke.clientWidth;const Pe=ke.ownerDocument.defaultView.getComputedStyle(ke);return qe+=(0,re.int)(Pe.borderLeftWidth),qe+=(0,re.int)(Pe.borderRightWidth),qe}function ut(ke){let qe=ke.clientHeight;const Pe=ke.ownerDocument.defaultView.getComputedStyle(ke);return qe-=(0,re.int)(Pe.paddingTop),qe-=(0,re.int)(Pe.paddingBottom),qe}function we(ke){let qe=ke.clientWidth;const Pe=ke.ownerDocument.defaultView.getComputedStyle(ke);return qe-=(0,re.int)(Pe.paddingLeft),qe-=(0,re.int)(Pe.paddingRight),qe}function ot(ke,qe,Pe){const lt=qe===qe.ownerDocument.body?{left:0,top:0}:qe.getBoundingClientRect(),je=(ke.clientX+qe.scrollLeft-lt.left)/Pe,ht=(ke.clientY+qe.scrollTop-lt.top)/Pe;return{x:je,y:ht}}function Xe(ke,qe){const Pe=He(ke,qe,"px");return{[(0,Me.browserPrefixToKey)("transform",Me.default)]:Pe}}function Je(ke,qe){return He(ke,qe,"")}function He(ke,qe,Pe){let{x:Ge,y:lt}=ke,je=`translate(${Ge}${Pe},${lt}${Pe})`;if(qe){const ht=`${typeof qe.x=="string"?qe.x:qe.x+Pe}`,et=`${typeof qe.y=="string"?qe.y:qe.y+Pe}`;je=`translate(${ht}, ${et})`+je}return je}function Te(ke,qe){return ke.targetTouches&&(0,re.findInArray)(ke.targetTouches,Pe=>qe===Pe.identifier)||ke.changedTouches&&(0,re.findInArray)(ke.changedTouches,Pe=>qe===Pe.identifier)}function at(ke){if(ke.targetTouches&&ke.targetTouches[0])return ke.targetTouches[0].identifier;if(ke.changedTouches&&ke.changedTouches[0])return ke.changedTouches[0].identifier}function Oe(ke){if(!ke)return;let qe=ke.getElementById("react-draggable-style-el");qe||(qe=ke.createElement("style"),qe.type="text/css",qe.id="react-draggable-style-el",qe.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,qe.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,ke.getElementsByTagName("head")[0].appendChild(qe)),ke.body&&Be(ke.body,"react-draggable-transparent-selection")}function We(ke){window.requestAnimationFrame?window.requestAnimationFrame(()=>{be(ke)}):be(ke)}function be(ke){if(ke)try{if(ke.body&&Ue(ke.body,"react-draggable-transparent-selection"),ke.selection)ke.selection.empty();else{const qe=(ke.defaultView||window).getSelection();qe&&qe.type!=="Caret"&&qe.removeAllRanges()}}catch(qe){}}function Be(ke,qe){ke.classList?ke.classList.add(qe):ke.className.match(new RegExp(`(?:^|\\s)${qe}(?!\\S)`))||(ke.className+=` ${qe}`)}function Ue(ke,qe){ke.classList?ke.classList.remove(qe):ke.className=ke.className.replace(new RegExp(`(?:^|\\s)${qe}(?!\\S)`,"g"),"")}},76172:function(xn,dt){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.browserPrefixToKey=Me,dt.browserPrefixToStyle=De,dt.default=void 0,dt.getPrefix=re;const fe=["Moz","Webkit","O","ms"];function re(){var Fe,Ie;let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const ze=(Ie=(Fe=window.document)==null?void 0:Fe.documentElement)==null?void 0:Ie.style;if(!ze||de in ze)return"";for(let ve=0;ve<fe.length;ve++)if(Me(de,fe[ve])in ze)return fe[ve];return""}function Me(de,ze){return ze?`${ze}${Ze(de)}`:de}function De(de,ze){return ze?`-${ze.toLowerCase()}-${de}`:de}function Ze(de){let ze="",Fe=!0;for(let Ie=0;Ie<de.length;Ie++)Fe?(ze+=de[Ie].toUpperCase(),Fe=!1):de[Ie]==="-"?Fe=!0:ze+=de[Ie];return ze}var Ee=dt.default=re()},97510:function(xn,dt){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=fe;function fe(){}},22013:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.canDragX=Ee,dt.canDragY=de,dt.createCoreData=Fe,dt.createDraggableData=Ie,dt.getBoundPosition=De,dt.getControlPosition=ze,dt.snapToGrid=Ze;var re=fe(80217),Me=fe(77026);function De(we,ot,Xe){if(!we.props.bounds)return[ot,Xe];let{bounds:Je}=we.props;Je=typeof Je=="string"?Je:ve(Je);const He=ut(we);if(typeof Je=="string"){const{ownerDocument:Te}=He,at=Te.defaultView;let Oe;if(Je==="parent"?Oe=He.parentNode:Oe=He.getRootNode().querySelector(Je),!(Oe instanceof at.HTMLElement))throw new Error('Bounds selector "'+Je+'" could not find an element.');const We=Oe,be=at.getComputedStyle(He),Be=at.getComputedStyle(We);Je={left:-He.offsetLeft+(0,re.int)(Be.paddingLeft)+(0,re.int)(be.marginLeft),top:-He.offsetTop+(0,re.int)(Be.paddingTop)+(0,re.int)(be.marginTop),right:(0,Me.innerWidth)(We)-(0,Me.outerWidth)(He)-He.offsetLeft+(0,re.int)(Be.paddingRight)-(0,re.int)(be.marginRight),bottom:(0,Me.innerHeight)(We)-(0,Me.outerHeight)(He)-He.offsetTop+(0,re.int)(Be.paddingBottom)-(0,re.int)(be.marginBottom)}}return(0,re.isNum)(Je.right)&&(ot=Math.min(ot,Je.right)),(0,re.isNum)(Je.bottom)&&(Xe=Math.min(Xe,Je.bottom)),(0,re.isNum)(Je.left)&&(ot=Math.max(ot,Je.left)),(0,re.isNum)(Je.top)&&(Xe=Math.max(Xe,Je.top)),[ot,Xe]}function Ze(we,ot,Xe){const Je=Math.round(ot/we[0])*we[0],He=Math.round(Xe/we[1])*we[1];return[Je,He]}function Ee(we){return we.props.axis==="both"||we.props.axis==="x"}function de(we){return we.props.axis==="both"||we.props.axis==="y"}function ze(we,ot,Xe){const Je=typeof ot=="number"?(0,Me.getTouch)(we,ot):null;if(typeof ot=="number"&&!Je)return null;const He=ut(Xe),Te=Xe.props.offsetParent||He.offsetParent||He.ownerDocument.body;return(0,Me.offsetXYFromParent)(Je||we,Te,Xe.props.scale)}function Fe(we,ot,Xe){const Je=!(0,re.isNum)(we.lastX),He=ut(we);return Je?{node:He,deltaX:0,deltaY:0,lastX:ot,lastY:Xe,x:ot,y:Xe}:{node:He,deltaX:ot-we.lastX,deltaY:Xe-we.lastY,lastX:we.lastX,lastY:we.lastY,x:ot,y:Xe}}function Ie(we,ot){const Xe=we.props.scale;return{node:ot.node,x:we.state.x+ot.deltaX/Xe,y:we.state.y+ot.deltaY/Xe,deltaX:ot.deltaX/Xe,deltaY:ot.deltaY/Xe,lastX:we.state.x,lastY:we.state.y}}function ve(we){return{left:we.left,top:we.top,right:we.right,bottom:we.bottom}}function ut(we){const ot=we.findDOMNode();if(!ot)throw new Error("<DraggableCore>: Unmounted during event!");return ot}},80217:function(xn,dt){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.dontSetMe=Ze,dt.findInArray=fe,dt.int=De,dt.isFunction=re,dt.isNum=Me;function fe(Ee,de){for(let ze=0,Fe=Ee.length;ze<Fe;ze++)if(de.apply(de,[Ee[ze],ze,Ee]))return Ee[ze]}function re(Ee){return typeof Ee=="function"||Object.prototype.toString.call(Ee)==="[object Function]"}function Me(Ee){return typeof Ee=="number"&&!isNaN(Ee)}function De(Ee){return parseInt(Ee,10)}function Ze(Ee,de,ze){if(Ee[de])return new Error(`Invalid prop ${de} passed to ${ze} - do not set this, set it on the child.`)}},27774:function(xn,dt){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.SizeSensorId=dt.SensorTabIndex=dt.SensorClassName=void 0;var fe="size-sensor-id";dt.SizeSensorId=fe;var re="size-sensor-object";dt.SensorClassName=re;var Me="-1";dt.SensorTabIndex=Me},79301:function(xn,dt){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=void 0;var fe=function(Me){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,Ze=null;return function(){for(var Ee=this,de=arguments.length,ze=new Array(de),Fe=0;Fe<de;Fe++)ze[Fe]=arguments[Fe];clearTimeout(Ze),Ze=setTimeout(function(){Me.apply(Ee,ze)},De)}};dt.default=fe},79789:function(xn,dt){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.default=void 0;var fe=1,re=function(){return"".concat(fe++)};dt.default=re},47242:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.ver=dt.clear=dt.bind=void 0;var re=fe(16478),Me=function(de,ze){var Fe=(0,re.getSensor)(de);return Fe.bind(ze),function(){Fe.unbind(ze)}};dt.bind=Me;var De=function(de){var ze=(0,re.getSensor)(de);(0,re.removeSensor)(ze)};dt.clear=De;var Ze="1.0.2";dt.ver=Ze},16478:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.removeSensor=dt.getSensor=dt.Sensors=void 0;var re=Ze(fe(79789)),Me=fe(57829),De=fe(27774);function Ze(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}var Ee={};dt.Sensors=Ee;function de(Ie){Ie&&Ee[Ie]&&delete Ee[Ie]}var ze=function(ve){var ut=ve.getAttribute(De.SizeSensorId);if(ut&&Ee[ut])return Ee[ut];var we=(0,re.default)();ve.setAttribute(De.SizeSensorId,we);var ot=(0,Me.createSensor)(ve,function(){return de(we)});return Ee[we]=ot,ot};dt.getSensor=ze;var Fe=function(ve){var ut=ve.element.getAttribute(De.SizeSensorId);ve.destroy(),de(ut)};dt.removeSensor=Fe},57829:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.createSensor=void 0;var re=fe(20953),Me=fe(55202),De=typeof ResizeObserver!="undefined"?Me.createSensor:re.createSensor;dt.createSensor=De},20953:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.createSensor=void 0;var re=De(fe(79301)),Me=fe(27774);function De(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}var Ze=function(de,ze){var Fe=void 0,Ie=[],ve=function(){getComputedStyle(de).position==="static"&&(de.style.position="relative");var He=document.createElement("object");return He.onload=function(){He.contentDocument.defaultView.addEventListener("resize",ut),ut()},He.style.display="block",He.style.position="absolute",He.style.top="0",He.style.left="0",He.style.height="100%",He.style.width="100%",He.style.overflow="hidden",He.style.pointerEvents="none",He.style.zIndex="-1",He.style.opacity="0",He.setAttribute("class",Me.SensorClassName),He.setAttribute("tabindex",Me.SensorTabIndex),He.type="text/html",de.appendChild(He),He.data="about:blank",He},ut=(0,re.default)(function(){Ie.forEach(function(Je){Je(de)})}),we=function(He){Fe||(Fe=ve()),Ie.indexOf(He)===-1&&Ie.push(He)},ot=function(){Fe&&Fe.parentNode&&(Fe.contentDocument&&Fe.contentDocument.defaultView.removeEventListener("resize",ut),Fe.parentNode.removeChild(Fe),de.removeAttribute(Me.SizeSensorId),Fe=void 0,Ie=[],ze&&ze())},Xe=function(He){var Te=Ie.indexOf(He);Te!==-1&&Ie.splice(Te,1),Ie.length===0&&Fe&&ot()};return{element:de,bind:we,destroy:ot,unbind:Xe}};dt.createSensor=Ze},55202:function(xn,dt,fe){"use strict";Object.defineProperty(dt,"__esModule",{value:!0}),dt.createSensor=void 0;var re=fe(27774),Me=De(fe(79301));function De(Ee){return Ee&&Ee.__esModule?Ee:{default:Ee}}var Ze=function(de,ze){var Fe=void 0,Ie=[],ve=(0,Me.default)(function(){Ie.forEach(function(Je){Je(de)})}),ut=function(){var He=new ResizeObserver(ve);return He.observe(de),ve(),He},we=function(He){Fe||(Fe=ut()),Ie.indexOf(He)===-1&&Ie.push(He)},ot=function(){Fe.disconnect(),Ie=[],Fe=void 0,de.removeAttribute(re.SizeSensorId),ze&&ze()},Xe=function(He){var Te=Ie.indexOf(He);Te!==-1&&Ie.splice(Te,1),Ie.length===0&&Fe&&ot()};return{element:de,bind:we,destroy:ot,unbind:Xe}};dt.createSensor=Ze},93314:function(xn){"use strict";xn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3M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+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(xn,dt,fe){"use strict";fe.d(dt,{Z:function(){return Fe}});const re=Ie=>typeof Ie=="object"&&Ie!=null&&Ie.nodeType===1,Me=(Ie,ve)=>(!ve||Ie!=="hidden")&&Ie!=="visible"&&Ie!=="clip",De=(Ie,ve)=>{if(Ie.clientHeight<Ie.scrollHeight||Ie.clientWidth<Ie.scrollWidth){const ut=getComputedStyle(Ie,null);return Me(ut.overflowY,ve)||Me(ut.overflowX,ve)||(we=>{const ot=(Xe=>{if(!Xe.ownerDocument||!Xe.ownerDocument.defaultView)return null;try{return Xe.ownerDocument.defaultView.frameElement}catch(Je){return null}})(we);return!!ot&&(ot.clientHeight<we.scrollHeight||ot.clientWidth<we.scrollWidth)})(Ie)}return!1},Ze=(Ie,ve,ut,we,ot,Xe,Je,He)=>Xe<Ie&&Je>ve||Xe>Ie&&Je<ve?0:Xe<=Ie&&He<=ut||Je>=ve&&He>=ut?Xe-Ie-we:Je>ve&&He<ut||Xe<Ie&&He>ut?Je-ve+ot:0,Ee=Ie=>{const ve=Ie.parentElement;return ve==null?Ie.getRootNode().host||null:ve},de=(Ie,ve)=>{var ut,we,ot,Xe;if(typeof document=="undefined")return[];const{scrollMode:Je,block:He,inline:Te,boundary:at,skipOverflowHiddenElements:Oe}=ve,We=typeof at=="function"?at:hn=>hn!==at;if(!re(Ie))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Be=[];let Ue=Ie;for(;re(Ue)&&We(Ue);){if(Ue=Ee(Ue),Ue===be){Be.push(Ue);break}Ue!=null&&Ue===document.body&&De(Ue)&&!De(document.documentElement)||Ue!=null&&De(Ue,Oe)&&Be.push(Ue)}const ke=(we=(ut=window.visualViewport)==null?void 0:ut.width)!=null?we:innerWidth,qe=(Xe=(ot=window.visualViewport)==null?void 0:ot.height)!=null?Xe:innerHeight,{scrollX:Pe,scrollY:Ge}=window,{height:lt,width:je,top:ht,right:et,bottom:ft,left:Tt}=Ie.getBoundingClientRect(),{top:Kt,right:fn,bottom:$t,left:Re}=(hn=>{const vt=window.getComputedStyle(hn);return{top:parseFloat(vt.scrollMarginTop)||0,right:parseFloat(vt.scrollMarginRight)||0,bottom:parseFloat(vt.scrollMarginBottom)||0,left:parseFloat(vt.scrollMarginLeft)||0}})(Ie);let xe=He==="start"||He==="nearest"?ht-Kt:He==="end"?ft+$t:ht+lt/2-Kt+$t,Lt=Te==="center"?Tt+je/2-Re+fn:Te==="end"?et+fn:Tt-Re;const Fn=[];for(let hn=0;hn<Be.length;hn++){const vt=Be[hn],{height:Jt,width:Yt,top:jn,right:yt,bottom:wn,left:Dt}=vt.getBoundingClientRect();if(Je==="if-needed"&&ht>=0&&Tt>=0&&ft<=qe&&et<=ke&&(vt===be&&!De(vt)||ht>=jn&&ft<=wn&&Tt>=Dt&&et<=yt))return Fn;const un=getComputedStyle(vt),ln=parseInt(un.borderLeftWidth,10),ge=parseInt(un.borderTopWidth,10),ue=parseInt(un.borderRightWidth,10),ee=parseInt(un.borderBottomWidth,10);let b=0,ae=0;const ie="offsetWidth"in vt?vt.offsetWidth-vt.clientWidth-ln-ue:0,he="offsetHeight"in vt?vt.offsetHeight-vt.clientHeight-ge-ee:0,Ye="offsetWidth"in vt?vt.offsetWidth===0?0:Yt/vt.offsetWidth:0,pt="offsetHeight"in vt?vt.offsetHeight===0?0:Jt/vt.offsetHeight:0;if(be===vt)b=He==="start"?xe:He==="end"?xe-qe:He==="nearest"?Ze(Ge,Ge+qe,qe,ge,ee,Ge+xe,Ge+xe+lt,lt):xe-qe/2,ae=Te==="start"?Lt:Te==="center"?Lt-ke/2:Te==="end"?Lt-ke:Ze(Pe,Pe+ke,ke,ln,ue,Pe+Lt,Pe+Lt+je,je),b=Math.max(0,b+Ge),ae=Math.max(0,ae+Pe);else{b=He==="start"?xe-jn-ge:He==="end"?xe-wn+ee+he:He==="nearest"?Ze(jn,wn,Jt,ge,ee+he,xe,xe+lt,lt):xe-(jn+Jt/2)+he/2,ae=Te==="start"?Lt-Dt-ln:Te==="center"?Lt-(Dt+Yt/2)+ie/2:Te==="end"?Lt-yt+ue+ie:Ze(Dt,yt,Yt,ln,ue+ie,Lt,Lt+je,je);const{scrollLeft:zt,scrollTop:ct}=vt;b=pt===0?0:Math.max(0,Math.min(ct+b/pt,vt.scrollHeight-Jt/pt+he)),ae=Ye===0?0:Math.max(0,Math.min(zt+ae/Ye,vt.scrollWidth-Yt/Ye+ie)),xe+=ct-b,Lt+=zt-ae}Fn.push({el:vt,top:b,left:ae})}return Fn},ze=Ie=>Ie===!1?{block:"end",inline:"nearest"}:(ve=>ve===Object(ve)&&Object.keys(ve).length!==0)(Ie)?Ie:{block:"start",inline:"nearest"};function Fe(Ie,ve){if(!Ie.isConnected||!(ot=>{let Xe=ot;for(;Xe&&Xe.parentNode;){if(Xe.parentNode===document)return!0;Xe=Xe.parentNode instanceof ShadowRoot?Xe.parentNode.host:Xe.parentNode}return!1})(Ie))return;const ut=(ot=>{const Xe=window.getComputedStyle(ot);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(Ie);if((ot=>typeof ot=="object"&&typeof ot.behavior=="function")(ve))return ve.behavior(de(Ie,ve));const we=typeof ve=="boolean"||ve==null?void 0:ve.behavior;for(const{el:ot,top:Xe,left:Je}of de(Ie,ze(ve))){const He=Xe-ut.top+ut.bottom,Te=Je-ut.left+ut.right;ot.scroll({top:He,left:Te,behavior:we})}}}}]);
}());