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__Problems__OjForm__index....

1174 lines
1.5 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[4994],{65363:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return oe}});var Ze=ze(32855),yt=ze(59301),y={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},Se=y,ye=ze(7657),E=function(ee,de){return yt.createElement(ye.Z,(0,Ze.Z)({},ee,{ref:de,icon:Se}))},z=yt.forwardRef(E),oe=z},76618:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return oe}});var Ze=ze(32855),yt=ze(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M705.6 124.9a8 8 0 00-11.6 7.2v64.2c0 5.5 2.9 10.6 7.5 13.6a352.2 352.2 0 0162.2 49.8c32.7 32.8 58.4 70.9 76.3 113.3a355 355 0 0127.9 138.7c0 48.1-9.4 94.8-27.9 138.7a355.92 355.92 0 01-76.3 113.3 353.06 353.06 0 01-113.2 76.4c-43.8 18.6-90.5 28-138.5 28s-94.7-9.4-138.5-28a353.06 353.06 0 01-113.2-76.4A355.92 355.92 0 01184 650.4a355 355 0 01-27.9-138.7c0-48.1 9.4-94.8 27.9-138.7 17.9-42.4 43.6-80.5 76.3-113.3 19-19 39.8-35.6 62.2-49.8 4.7-2.9 7.5-8.1 7.5-13.6V132c0-6-6.3-9.8-11.6-7.2C178.5 195.2 82 339.3 80 506.3 77.2 745.1 272.5 943.5 511.2 944c239 .5 432.8-193.3 432.8-432.4 0-169.2-97-315.7-238.4-386.7zM480 560h64c4.4 0 8-3.6 8-8V88c0-4.4-3.6-8-8-8h-64c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8z"}}]},name:"poweroff",theme:"outlined"},Se=y,ye=ze(7657),E=function(ee,de){return yt.createElement(ye.Z,(0,Ze.Z)({},ee,{ref:de,icon:Se}))},z=yt.forwardRef(E),oe=z},66543:function(){"use strict"},59598:function(){"use strict"},21697:function(Lt,Ot){"use strict";Ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},69092:function(Lt,Ot){"use strict";Ot.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},12085:function(Lt,Ot){"use strict";Ot.Z={header:"header___HqHSe",checkboxs:"checkboxs___ObBnD",field:"field___w_sM6","oj-form-container":"oj-form-container____odYP","oj-left-panel":"oj-left-panel___emEB2","oj-form-info":"oj-form-info___m00Ag",footer:"footer___O4iSJ",collapse:"collapse___Ltfkj","test-case-name":"test-case-name___miZcb","btn-remove-case":"btn-remove-case___cHap2","icon-tag":"icon-tag___gmyTb",btn_back:"btn_back___tNmX3",testJi:"testJi___L3fHb",upBtn:"upBtn___RGH6X",djs:"djs____TS0n",time:"time___IAdHc"}},45298:function(){"use strict"},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 Lt={},Ot="5.0",ze={},Ze=null,yt=!1,y=!1,Se=null,ye=!1,E=null,z=null,oe=0;oe<arguments.length;oe++){var se=arguments[oe];if(se!==null)switch(typeof se){case"number":Ot=se.toFixed(1);break;case"string":se.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ot=se:Se=se;break;case"object":typeof se.is3D!="undefined"?Ze=se:ze=se;break;case"boolean":yt=se,y=!0;break}}Ze===null&&(Ze={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ze.material_id!==void 0&&!y&&(yt=!0)),Se!==null&&ze.id===void 0&&(ze.id=Se);var ee="",de="",x=!1,te=null,re=null,ae=null,ue=!1,he=null,pe=null,me=null,fe=null,ve=null;ze.height!==void 0&&(ze.height=Math.round(ze.height)),ze.width!==void 0&&(ze.width=Math.round(ze.width));var ke=function(Xe){return parseFloat(Xe)>4?parseFloat(Xe):5};Lt.setHTML5Codebase=function(Xe,Je){z=Xe,et(Xe,Je)},Lt.setJavaCodebase=Lt.setJavaCodebaseVersion=Lt.isCompiledInstalled=Lt.setPreCompiledScriptPath=Lt.setPreCompiledResourcePath=function(){},Lt.setHTML5CodebaseVersion=function(Xe,Je){var Ve=parseFloat(Xe);if(Ve!==NaN&&Ve<5){console.log("The GeoGebra HTML5 codebase version "+Ve+" is deprecated. Using version latest instead.");return}E=Xe,We(Xe,Je)},Lt.getHTML5CodebaseVersion=function(){return re},Lt.getParameters=function(){return ze},Lt.setFontsCSSURL=function(Xe){fe=Xe},Lt.setGiacJSURL=function(Xe){},Lt.setJNLPFile=function(Xe){ee=Xe},Lt.setJNLPBaseDir=function(Xe){},Lt.inject=function(){function Xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Je="auto",Ve=ze.id,at,Qe=!1,ut=0;ut<arguments.length;ut++){var st=arguments[ut];typeof st=="string"?(st=st.toLowerCase(),st.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Je=st:Ve=arguments[ut]):typeof st=="boolean"?Qe=st:st instanceof HTMLElement&&(at=st)}$e();function $e(){if(!ye){setTimeout($e,200);return}Je=it(Je);var Ne=at||document.getElementById(Ve);if(!Ne){console.log("possibly bug on ajax loading? ");return}if(Lt.removeExistingApplet(Ne,!1),ze.width===void 0&&Ne.clientWidth&&(ze.width=Ne.clientWidth),ze.height===void 0&&Ne.clientHeight&&(ze.height=Ne.clientHeight),!(ze.width&&ze.height)&&Je==="html5"&&(delete ze.width,delete ze.height),te=Je,Je==="screenshot")Ce(Ne,ze);else{var je=!1;ze.hasOwnProperty("playButton")&&ze.playButton||ze.hasOwnProperty("clickToLoad")&&ze.clickToLoad?je=!0:ze.hasOwnProperty("playButtonAutoDecide")&&ze.playButtonAutoDecide&&(je=(!Te()||Xe())&&Pe()),je?(te="screenshot",He(Ne,ze,Qe,Je)):Be(Ne,ze,Qe)}}};function Te(){try{return window.self!==window.top}catch(Xe){return!0}}function Pe(){return ze.hasOwnProperty("screenshotGenerator")&&ze.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Lt.getViews=function(){return Ze},Lt.isJavaInstalled=function(){return!1};var _e=function(Xe){var Je=function(ut){var st=JSON.parse(ut),$e=function(ne){return ne.type=="G"||ne.type=="E"},Ne=st.elements?st.elements.filter($e)[0]:st;if(!Ne||!Ne.url){Ve();return}ze.fileName=Ne.url,be(Ne.settings||{}),Ze.is3D=!0;var je="https://www.geogebra.org/images/";Lt.setPreviewImage(he||Ne.previewUrl,je+"GeoGebra_loading.png",je+"applet_play.png"),Xe()},Ve=function(){ze.onError&&ze.onError(),nt("Error: Fetching material (id "+ze.material_id+") failed.",ze)},at=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Qe="/materials/"+ze.material_id+"?scope=basic";xe("https://"+at+"/api/proxy.php?path="+encodeURIComponent(Qe),Je,Ve)};function be(Xe){var Je=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ve){Xe[Ve]=!!Xe[Ve]}),Je.forEach(function(Ve){ze[Ve]===void 0&&Xe[Ve]!==void 0&&(ze[Ve]=Xe[Ve])}),ze.showToolBarHelp===void 0&&(ze.showToolBarHelp=ze.showToolBar)}function xe(Xe,Je,Ve){var at=new XMLHttpRequest;at.open("GET",Xe),at.onload=function(){Je(at.responseText)},at.onerror=Ve,at.send()}Lt.isHTML5Installed=function(){return!0},Lt.getLoadedAppletType=function(){return te},Lt.setPreviewImage=function(Xe,Je,Ve){he=Xe,pe=Je,me=Ve},Lt.removeExistingApplet=function(Xe,Je){var Ve;typeof Xe=="string"&&(Xe=document.getElementById(Xe)),te=null;var at=null;for(Ve=0;Ve<Xe.childNodes.length;Ve++){var Qe=Xe.childNodes[Ve],ut=Qe.className;ut==="applet_screenshot"?Je?(Qe.style.display="block",te="screenshot"):Qe.style.display="none":ut!=="applet_scaler prerender"&&(Xe.removeChild(Qe),at=ut&&ut.indexOf("appletParameters")!=-1?Qe.id:null,Ve--)}var st=ze.id!==void 0?ze.id:at,$e=window[st];$e&&typeof $e.getBase64=="function"&&($e.remove(),window[st]=null)},Lt.refreshHitPoints=function(){if(ke(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Xe=Lt.getAppletObject();return Xe&&typeof Xe.recalculateEnvironments=="function"?(Xe.recalculateEnvironments(),!0):!1},Lt.startAnimation=function(){var Xe=Lt.getAppletObject();return Xe&&typeof Xe.startAnimation=="function"?(Xe.startAnimation(),!0):!1},Lt.stopAnimation=function(){var Xe=Lt.getAppletObject();return Xe&&typeof Xe.stopAnimation=="function"?(Xe.stopAnimation(),!0):!1},Lt.getAppletObject=function(){var Xe=ze.id!==void 0?ze.id:"ggbApplet";return window[Xe]},Lt.resize=function(){};var Ae=function(Xe,Je,Ve){var at=document.createElement("param");at.setAttribute("name",Je),at.setAttribute("value",Ve),Xe.appendChild(at)},Me=function(Xe){return Xe&&Xe!=="false"},Be=function(Xe,Je,Ve){ke(re)<=4.2&&(Ve=!0);var at=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!ue)&&(at=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ut=Je.width,st=Je.height;if(Je.disableAutoScale=Je.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Je.disableAutoScale,Je.width!==void 0)if(ke(re)<=4.4)Me(Je.showToolBar)&&(Je.height-=7),Me(Je.showAlgebraInput)&&(Je.height-=37),Je.width<605&&Me(Je.showToolBar)&&(Je.width=605,ut=605);else{var $e=100;(Me(Je.showToolBar)||Me(Je.showMenuBar))&&(Je.hasOwnProperty("customToolBar")&&(Je.customToolbar=Je.customToolBar),$e=Me(Je.showMenuBar)?245:155),ut<$e&&(Je.width=$e,ut=$e)}Qe.style.border="none",Qe.style.display="inline-block";for(var Ne in Je)Je.hasOwnProperty(Ne)&&Ne!=="appletOnLoad"&&Qe.setAttribute("data-param-"+Ne,Je[Ne]);fe&&Qe.setAttribute("data-param-fontscssurl",fe),Lt.resize=function(){GGBAppletUtils.responsiveResize(Xe,Je)},window.addEventListener("resize",function(ct){Lt.resize()});var je=typeof Je.appletOnLoad=="function"?Je.appletOnLoad:function(){};if(!Ve&&Je.width!==void 0){Je.hasOwnProperty("showSplash")||Qe.setAttribute("data-param-showSplash","false");var ne=Xe.querySelector(".applet_scaler.prerender"),ce=ne!==null;if(ce)var Ie=ne.querySelector(".ggb_preview");else{var Ie=Ye(ut,st,Je.borderColor,!1);ne=document.createElement("div"),ne.className="applet_scaler",ne.style.position="relative",ne.style.display="block",ne.style.width=ut+"px",ne.style.height=st+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ne,"66%"),ke(re)>=5?(Je.appletOnLoad=function(ct){var vt=Xe.querySelector(".ggb_preview");vt&&vt.parentNode.removeChild(vt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),je(ct)},ce||ne.appendChild(Ie)):Qe.appendChild(Ie),ne.appendChild(Qe),ce||Xe.appendChild(ne),setTimeout(function(){Lt.resize()},1)}else{var Fe=document.createElement("div");Fe.className="applet_scaler",Fe.style.position="relative",Fe.style.display="block",Fe.appendChild(Qe),Xe.appendChild(Fe),Je.appletOnLoad=function(ct){Lt.resize(),je(ct)}}function we(ct,vt){vt&&typeof vt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ct,vt.appletOnLoad):renderGGBElement(ct),nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",vt)}function Ee(ct,vt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ct,params:vt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(kt){we(kt.article,kt.params)}),html5AppletsToProcess=null)},ke(re)<5&&(ct.className+=" geogebraweb")):we(ct,vt)}if(at){scriptLoadStarted=!0;for(var Oe=0;Oe<Qe.childNodes.length;Oe++){var Ue=Qe.childNodes[Oe].tagName;Ue==="TABLE"&&(Qe.removeChild(Qe.childNodes[Oe]),Oe--)}if(ggbHTML5LoadedScript!==null){var tt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');tt!=null&&tt.parentNode.removeChild(tt)}var Ge=document.createElement("script"),ft=function(){Ee(Qe,Je)};Ge.src=de+ae,ggbHTML5LoadedCodebaseIsWebSimple=ue,ggbHTML5LoadedCodebaseVersion=re,ggbHTML5LoadedScript=Ge.src,nt("GeoGebra HTML5 codebase loaded: '"+de+"'.",Je),!z&&(!E||E=="5.0")?(ue?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ft()):de.requirejs?__webpack_require__.e(981).then(function(){var ct=[__webpack_require__(60981)];ft.apply(null,ct)}.bind(this)).catch(__webpack_require__.oe):(Ge.onload=ft,Xe.appendChild(Ge))}else Ee(Qe,Je);Je.height=st,Je.width=ut},Ce=function(Xe,Je,Ve){var at=Ye(Je.width,Je.height,Je.borderColor,Ve),Qe=document.createElement("div");Qe.style.position="relative",Qe.style.display="block",Qe.style.width=Je.width+"px",Qe.style.height=Je.height+"px",Qe.className="applet_screenshot applet_scaler"+(Ve?" applet_screenshot_play":""),Qe.appendChild(at);var ut=GGBAppletUtils.getScale(Je,Xe,Ve);Ve?(Xe.appendChild(Ke()),window.GGBT_wsf_view||(Xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Qe,"66%"),Xe.appendChild(Qe),ut!==1&&!isNaN(ut)&&(GGBAppletUtils.scaleElement(Qe,ut),Qe.style.width=Je.width+"px",Qe.style.height=Je.height+"px",Qe.parentNode.style.width=Je.width*ut+"px",Qe.parentNode.style.height=Je.height*ut+"px"),Lt.resize=function(){De(Xe,at,Qe,Ve)},window.addEventListener("resize",function(st){Lt.resize()}),Lt.resize()};function De(Xe,Je,Ve,at){if(Xe.contains(Je)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Xe)}var Qe=GGBAppletUtils.getScale(ze,Xe,at);Ve.parentNode!==null&&(!isNaN(Qe)&&Qe!==1?(GGBAppletUtils.scaleElement(Ve,Qe),Ve.parentNode.style.width=ze.width*Qe+"px",Ve.parentNode.style.height=ze.height*Qe+"px"):(GGBAppletUtils.scaleElement(Ve,1),Ve.parentNode.style.width=ze.width+"px",Ve.parentNode.style.height=ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Lt.onExitFullscreen=function(Xe,Je){Je.appendChild(Xe)};var He=function(Xe,Je,Ve,at){Ce(Xe,Je,!0);for(var Qe=function(){var $e=[];for(st=0;st<Xe.childNodes.length;st++)$e.push(Xe.childNodes[st]);if(window.GGBT_wsf_view){var Ne=window.GGBT_wsf_view.renderFullScreen(Xe,Je.id),je=document.getElementById("fullscreencontainer"),ne=jQuery(Xe).find(".fullscreencontent");ne.length>0?(Ne.remove(),ne.attr("id","fullscreencontent").show(),jQuery(je).append(ne),window.dispatchEvent(new Event("resize"))):Be(Ne,Je,!1),window.GGBT_wsf_view.launchFullScreen(je)}else te=at,Be(Xe,Je,!1);if(!window.GGBT_wsf_view)for(st=0;st<$e.length;st++)Xe.removeChild($e[st])},ut=Xe.getElementsByClassName("ggb_preview_play"),st=0;st<ut.length;st++)ut[st].addEventListener("click",Qe,!1),ut[st].addEventListener("ontouchstart",Qe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Xe),Pe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ke=function(){var Xe=document.createElement("div");if(Xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Je='.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");}',Ve=document.createElement("style");Ve.styleSheet?Ve.styleSheet.cssText=Je:Ve.appendChild(document.createTextNode(Je)),document.getElementsByTagName("head")[0].appendChild(Ve)}return Xe},Ye=function(Xe,Je,Ve,at){var Qe=document.createElement("div");Qe.className="ggb_preview",Qe.style.position="absolute",Qe.style.zIndex="90",Qe.style.width=Xe-2+"px",Qe.style.height=Je-2+"px",Qe.style.top="0px",Qe.style.left="0px",Qe.style.overflow="hidden",Qe.style.backgroundColor="white";var ut="lightgrey";Ve!==void 0&&(Ve==="none"?ut="transparent":ut=Ve),Qe.style.border="1px solid "+ut;var st=document.createElement("img");if(st.style.position="relative",st.style.zIndex="1000",st.style.top="-1px",st.style.left="-1px",he!==null&&st.setAttribute("src",he),st.style.opacity=.7,pe!==null){var $e,Ne,je;if(!at){$e=document.createElement("img"),$e.style.position="absolute",$e.style.zIndex="1001",$e.style.opacity=1,st.style.opacity=.3,Ne=360,Ne>Xe/4*3&&(Ne=Xe/4*3),je=Ne/5.8,$e.setAttribute("src",pe),$e.setAttribute("width",Ne),$e.setAttribute("height",je);var ne=(Xe-Ne)/2,ce=(Je-je)/2;$e.style.left=ne+"px",$e.style.top=ce+"px",Qe.appendChild($e)}}return Qe.appendChild(st),Qe},it=function(Xe){return Xe=Xe.toLowerCase(),Xe==="html5"||Xe==="screenshot"?Xe:"html5"},Re=["web","webSimple","web3d","tablet","tablet3d","phone"],We=function(Xe,Je){if(re=Xe,Je){et(re,!0);return}var Ve=!yt;if(Ve){var at=ke(re);!isNaN(at)&&at<4.4&&(Ve=!1)}var Qe,ut;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var st=re.indexOf("//");st>0?ut=re:st===0?ut=Qe+re:ut="https://www.geogebra.org/apps/5.2.814.0/";for(var $e in Re)if(re.slice(Re[$e].length*-1)===Re[$e]||re.slice((Re[$e].length+1)*-1)===Re[$e]+"/"){et(ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ve&&!Ze.is3D&&!Ze.AV&&!Ze.SV&&!Ze.CV&&!Ze.EV2&&!Ze.CP&&!Ze.PC&&!Ze.DA&&!Ze.FI&&!Ze.PV&&!Me(ze.showToolBar)&&!Me(ze.showMenuBar)&&!Me(ze.showAlgebraInput)&&!Me(ze.enableRightClick)&&(!ze.appName||ze.appName=="classic")?ut+="webSimple/":ut+="web3d/",et(ut,!1)},et=function(Xe,Je){if(Xe.requirejs){de=Xe;return}Xe.slice(-1)!=="/"&&(Xe+="/"),de=Xe,Je===null&&(Je=Xe.indexOf("http")===-1),x=Je,ae="web.nocache.js",ue=!1;var Ve=de.split("/");Ve.length>1&&(!Je&&Ve[Ve.length-2]==="webSimple"?(ae="webSimple.nocache.js",ue=!0):Re.indexOf(Ve[Ve.length-2])>=0&&(ae=Ve[Ve.length-2]+".nocache.js")),Ve=Xe.split("/"),re=Ve[Ve.length-3],re.substr(0,4)==="test"?re=re.substr(4,1)+"."+re.substr(5,1):(re.substr(0,3)==="war"||re.substr(0,4)==="beta")&&(re="5.0");var at=parseFloat(re);at!==NaN&&at<5&&Xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead."),We("5.0",Je))},nt=function(Xe,Je){window.console&&window.console.log&&(!Je||typeof Je.showLogging=="undefined"||Je.showLogging&&Je.showLogging!=="false")&&console.log(Xe)};ze.material_id!==void 0?_e(rt):rt();function rt(){var Xe=Ot;E!==null?Xe=E:parseFloat(Xe)<5&&(Xe="5.0"),We(Xe,!1),z!==null&&et(z,x),ye=!0}return Lt},GGBAppletUtils=function(){"use strict";function Lt(){return window.GGBT_wsf_edit!==void 0}function Ot(ye,E){E!=1?(ye.style.transformOrigin="0% 0% 0px",ye.style.webkitTransformOrigin="0% 0% 0px",ye.style.transform="scale("+E+","+E+")",ye.style.webkitTransform="scale("+E+","+E+")",ye.style.maxWidth="initial",ye.querySelector(".ggb_preview")!==null&&(ye.querySelector(".ggb_preview").style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ye.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ye.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ye.style.transform="none",ye.style.webkitTransform="none")}function ze(ye,E,z,oe,se,ee){var de=null;if(ee!=null&&ee!="")for(var x=ye.parentNode;x!=null;)if((" "+x.className+" ").indexOf(" "+ee+" ")>-1){de=x;break}else x=x.parentNode;var te=0,re=0,ae=0,ue=0,he=0,pe=0,me=0;if(de)te=de.offsetWidth,re=Math.max(oe?de.offsetWidth:0,de.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(te=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),ae=te):(te=window.innerWidth,re=window.innerHeight,ae=window.innerWidth),ye){var fe=ye.getBoundingClientRect();fe.left>0&&fe.left<=te&&(se===void 0||!se)&&(document.dir==="rtl"?(he=te-fe.width-fe.left,pe=ae<=480?10:30):(pe=fe.left,he=ae<=480?10:30),ue=pe+he)}if(ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ve=ye.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ue=40,me=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue=0,me=40)}}return ye&&((z===void 0||!z)&&E>0&&E+ue<te?te=E:te-=ue,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(re-=me)),{width:te,height:re}}function Ze(ye,E,z,oe,se){if(ye.isScreenshoGenerator)return 1;var ee=oe!==void 0&&oe,de=ye.noScaleMargin!=null&&ye.noScaleMargin,x=function(ve){return ve&&ve!=="false"},te=x(ye.autoHeight),re=ze(E,ye.width,z,te,ee&&window.GGBT_wsf_view||de,se),ae=parseInt(re.width),ue=ye.width,he=ye.height;if(ue===void 0){var pe=E.querySelector(".appletParameters");pe&&(ue=pe.offsetWidth,he=pe.offsetHeight)}var me=ae/ue,fe=ee?1:re.height/he;return z!==void 0&&!z&&(me=Math.min(1,me),fe=Math.min(1,fe)),Math.min(me,fe)}function yt(ye,E,z){var oe=1,se,ee=!1;if(ye.hasOwnProperty("allowUpscale")&&(ee=ye.allowUpscale),ye.hasOwnProperty("scale")&&(oe=parseFloat(ye.scale),(isNaN(oe)||oe===null||oe===0)&&(oe=1),oe>1&&(ee=!0)),E&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(ye.hasOwnProperty("disableAutoScale")&&ye.disableAutoScale))se=Ze(ye,E,ee,z,ye.scaleContainerClass);else return oe;return ee&&(!ye.hasOwnProperty("scale")||oe===1)?se:Math.min(oe,se)}function y(ye){var E=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),oe=ye.getBoundingClientRect(),se=(E-oe.width)/2,ee=(z-oe.height)/2;ee<0&&(ee=0),ye.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(se<40?ye.style.left="40px":ye.style.left=se+"px",ye.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?ye.style.top="40px":ye.style.top=ee+"px",ye.style.left=se+"px")}function Se(ye,E){var z=ye.querySelector(".appletParameters");if(z){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(E.id!==z.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var oe=yt(E,ye);Lt()&&z.setAttribute("data-param-scale",oe);for(var se=null,ee=0;ee<ye.childNodes.length;ee++)if(ye.childNodes[ee].className!==void 0&&ye.childNodes[ee].className.match(/^applet_scaler/)){se=ye.childNodes[ee];break}if(se!==null&&se.querySelector(".noscale")!==null)return;var de=E.id!==void 0?E.id:"ggbApplet",x=window[de];(x==null||!x.recalculateEnvironments)&&se!==null&&!se.className.match(/fullscreen/)&&(se.parentNode.style.transform="",!isNaN(oe)&&oe!==1?(se.parentNode.style.width=E.width*oe+"px",se.parentNode.style.height=E.height*oe+"px",Ot(se,oe)):(Ot(se,1),se.parentNode.style.width=E.width+"px",se.parentNode.style.height=E.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&y(ye),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:Se,isFlexibleWorksheetEditor:Lt,positionCenter:y,getScale:yt,scaleElement:Ot}}();__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 Lt=n.location.search;return Lt.indexOf(J)!=-1||Lt.indexOf(K)!=-1}function q(Lt,Ot){}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(Lt){var Ot=s[L].bindings;s[L].bindings=function(){for(var ze=Ot?Ot():{},Ze=Lt[webModule.__softPermutationId],yt=O;yt<Ze.length;yt++){var y=Ze[yt];ze[y[O]]=y[P]}return ze}};var t;function u(){return v(),t}function v(){if(!t){var Lt=o.createElement(Q);if(Lt.id=L,Lt.style.cssText=R+S,Lt.tabIndex=-1,o.body.appendChild(Lt),t=Lt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ot=document.compatMode==U?V:W;t.write(Ot+X),t.close()}}}function w(Lt){function Ot(Ze){function yt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var y=yt();if(y){Ze();return}function Se(){if(!y){if(!yt())return;y=!0,Ze(),o.removeEventListener&&o.removeEventListener(Z,Se,!1),ye&&clearInterval(ye)}}o.addEventListener&&o.addEventListener(Z,Se,!1);var ye=setInterval(function(){Se()},$)}function ze(Ze){var yt=u(),y=yt.body,Se=yt.createElement(_);Se.language=ab,Se.crossOrigin=W,Se.src=Ze,webModule.__errFn&&(Se.onerror=function(){webModule.__errFn(L,new Error(bb+Ze))}),y.appendChild(Se)}Ot(function(){ze(Lt)})}webModule.__startLoadingFragment=function(Lt){return C(Lt)},webModule.__installRunAsyncCode=function(Lt){var Ot=u(),ze=Ot.body,Ze=Ot.createElement(_);Ze.language=ab,Ze.text=Lt,ze.appendChild(Ze),ze.removeChild(Ze)};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(Lt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Lt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Lt){var Ot=c[Lt];return Ot==null?null:Ot},r=d,webModule.__errFn=e}function B(){function Lt(ye){var E=ye.lastIndexOf(rb);E==-1&&(E=ye.length);var z=ye.indexOf(sb);z==-1&&(z=ye.length);var oe=ye.lastIndexOf(tb,Math.min(z,E));return oe>=O?ye.substring(O,oe+P):W}function Ot(ye){if(!ye.match(/^\w+:\/\//)){var E=o.createElement(ub);E.src=ye+vb,ye=Lt(E.src)}return ye}function ze(){var ye=__gwt_getMetaProperty(wb);return ye!=null?ye:W}function Ze(){for(var ye=o.getElementsByTagName(_),E=O;E<ye.length;++E)if(ye[E].src.indexOf(xb)!=-1)return Lt(ye[E].src);return W}function yt(){var ye=o.getElementsByTagName(yb);return ye.length>O?ye[ye.length-P].href:W}function y(){var ye=o.location;return ye.href==ye.protocol+zb+ye.host+ye.pathname+ye.search+ye.hash}var Se=ze();return Se==W&&(Se=Ze()),Se==W&&(Se=yt()),Se==W&&y()&&(Se=Lt(o.location.href)),Se=Ot(Se),Se}function C(Lt){return Lt.match(/^\//)||Lt.match(/^[a-zA-Z]+:\/\//)?Lt:webModule.__moduleBase+Lt}function D(){var Lt=[],Ot=O,ze=[],Ze=[];function yt(ye){var E=Ze[ye](),z=ze[ye];if(E in z)return E;var oe=[];for(var se in z)oe[z[se]]=se;throw r&&r(ye,oe,E),null}if(__gwt_isKnownPropertyValue=function(ye,E){return E in ze[ye]},webModule.__getPropMap=function(){var ye={};for(var E in ze)ze.hasOwnProperty(E)&&(ye[E]=yt(E));return ye},webModule.__computePropValue=yt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var Se=y.indexOf(Db);Se!=-1&&(Ot=parseInt(y.substring(Se+P),$),y=y.substring(O,Se))}catch(ye){}return webModule.__softPermutationId=Ot,C(y+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(Lt,Ot,ze){"use strict";ze.d(Ot,{Ax:function(){return Se},Ds:function(){return ye},KI:function(){return z},SI:function(){return y},f1:function(){return yt}});var Ze=ze(90524);function yt(oe){let se=!0;if(oe.length>0){for(let ee=0;ee<oe.length;ee++)if(oe[ee].compile_success==0||!oe[ee].compile_success){se=!1;break}}else se=!1;return se}function y(oe,se=""){let ee=[];for(let de=0;de<oe.length;de++){let x=oe[de],te=se?`${se}/${x.name}`:`${x.name}`;ee.push({title:x.name,type:x.type,isLeaf:x.type!=="tree",key:te})}return ee}function Se(oe,se,ee){for(let de=0;de<oe.length;de++){let x=oe[de];if(x.key===se){x.children=ee;break}x.children&&Se(x.children,se,ee)}return oe}function ye(oe,se,ee){let de;return function(){let x=this,te=arguments,re=function(){de=null,ee||oe.apply(x,te)},ae=ee&&!de;clearTimeout(de),de=setTimeout(re,se),ae&&oe.apply(x,te)}}const E=!0,z=Ze.Z.API_SERVER},15395:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return he}});var Ze=ze(59301),yt=ze(18287),y=ze(70610),Se={flex_box_center:"flex_box_center___SFmJH",flex_space_between:"flex_space_between___f2H1D",flex_box_vertical_center:"flex_box_vertical_center___hW_hp",flex_box_center_end:"flex_box_center_end___yklmJ",flex_box_column:"flex_box_column___m0oUw",customTree:"customTree___ZhEHU",name:"name___RIkn2"},ye=Object.defineProperty,E=Object.defineProperties,z=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,de=(pe,me,fe)=>me in pe?ye(pe,me,{enumerable:!0,configurable:!0,writable:!0,value:fe}):pe[me]=fe,x=(pe,me)=>{for(var fe in me||(me={}))se.call(me,fe)&&de(pe,fe,me[fe]);if(oe)for(var fe of oe(me))ee.call(me,fe)&&de(pe,fe,me[fe]);return pe},te=(pe,me)=>E(pe,z(me)),re=(pe,me)=>{var fe={};for(var ve in pe)se.call(pe,ve)&&me.indexOf(ve)<0&&(fe[ve]=pe[ve]);if(pe!=null&&oe)for(var ve of oe(pe))me.indexOf(ve)<0&&ee.call(pe,ve)&&(fe[ve]=pe[ve]);return fe},ae=(pe,me,fe)=>new Promise((ve,ke)=>{var Te=be=>{try{_e(fe.next(be))}catch(xe){ke(xe)}},Pe=be=>{try{_e(fe.throw(be))}catch(xe){ke(xe)}},_e=be=>be.done?ve(be.value):Promise.resolve(be.value).then(Te,Pe);_e((fe=fe.apply(pe,me)).next())}),he=pe=>{var me=pe,{value:fe,onChange:ve,defaultValue:ke,disabled:Te}=me,Pe=re(me,["value","onChange","defaultValue","disabled"]);const[_e,be]=(0,Ze.useState)([]),[xe,Ae]=(0,Ze.useState)("1");(0,Ze.useEffect)(()=>{Me()},[]);const Me=()=>ae(void 0,null,function*(){const De=yield(0,y.NZ)({});if(De!=null&&De.data){const He=[{title:Ze.createElement("div",{title:"\u6839\u76EE\u5F55",className:Se.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:Ze.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Be(De.data||[])}];be(He),Ae("2")}}),Be=De=>{function He(Ke){const Ye=Ke.children,it=Array.isArray(Ye)&&Ye.length>0,Re=Ke==null?void 0:Ke.group_id;return{title:Ze.createElement("div",{title:Ke==null?void 0:Ke.name,className:Se.name},Ke==null?void 0:Ke.name),value:Re,key:Re,icon:Ze.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:it?Ye==null?void 0:Ye.map(We=>He(We)):[]}}return De==null?void 0:De.map(Ke=>He(Ke))},Ce=ke?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:fe,defaultExpandedKeys:fe};return Ze.createElement("div",{className:Se.customTree},Ze.createElement(yt.default,x(te(x({key:xe},Ce),{showIcon:!0,treeData:_e,onSelect:ve,disabled:Te}),Pe)))}},6077:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return de}});var Ze=ze(59301),yt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=ze(92310),Se=ze.n(y),ye=ze(29787),E=ze(2859),z=ze(82093),oe=ze(49661),se=(x,te,re)=>new Promise((ae,ue)=>{var he=fe=>{try{me(re.next(fe))}catch(ve){ue(ve)}},pe=fe=>{try{me(re.throw(fe))}catch(ve){ue(ve)}},me=fe=>fe.done?ae(fe.value):Promise.resolve(fe.value).then(he,pe);me((re=re.apply(x,te)).next())}),de=({data:x,className:te,fullWidth:re,style:ae={},onClose:ue,onOk:he,showFullTools:pe,noAssociationId:me})=>{const fe=(0,Ze.useRef)(null),ve=(0,Ze.useRef)(null),ke=(0,Ze.useRef)(null),Te=(0,Ze.useRef)(null),[Pe,_e]=(0,Ze.useState)(!1),[be,xe]=(0,Ze.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ze.useEffect)(()=>(ke.current||(ke.current=document.createElement("style"),document.head.appendChild(ke.current)),x!=null&&x.visible?(document.body.setAttribute("data-custom","y-hidden"),ke.current.innerHTML=" html { overflow-y: hidden; }",x!=null&&x.src&&Ae()):(document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null)),()=>{document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null)}),[x==null?void 0:x.visible]);const Ae=()=>se(void 0,null,function*(){_e(!0),xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const De=yield(0,oe.ZJ)(x==null?void 0:x.src);fe.current.src="",fe.current.src=De,fe.current.onload=function(){Ce()},_e(!1),xe("")}),Me=De=>se(void 0,null,function*(){_e(!0),xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const He=yield(0,z.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:x.title,file:De.dataUrl}});He!=null&&He.id&&!me?(yield(0,z.ZP)(`/api/attachments/${x.id}/add_subitem.json`,{method:"post",body:{subitem_id:He==null?void 0:He.id,settings:JSON.stringify(De.state)}})).status===0&&he():He!=null&&He.id&&he(He),_e(!1),xe("")}),Be=()=>{const De=document.querySelector('a[href="https://markerjs.com/"]');De&&De.parentNode&&(De.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ke=>{const Ye=document.querySelector(Ke.name);Ye&&Ye.setAttribute("title",Ke.title)})},Ce=()=>{ve.current=new E.hP(fe.current),ve.current.targetRoot=Te.current,ve.current.addEventListener("render",Me),ve.current.addEventListener("beforeclose",ue),pe&&(ve.current.availableMarkerTypes=ve.current.ALL_MARKER_TYPES,ve.current.uiStyleSettings.redoButtonVisible=!0,ve.current.uiStyleSettings.notesButtonVisible=!0,ve.current.uiStyleSettings.zoomButtonVisible=!0,ve.current.uiStyleSettings.zoomOutButtonVisible=!0,ve.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ve.current.uiStyleSettings,ve.current.show(),x!=null&&x.snapshotData&&ve.current.restoreState(x.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Be()},300)};return Ze.createElement(Ze.Fragment,null,(x==null?void 0:x.visible)&&Ze.createElement(ye.Z,{spinning:Pe,tip:be,style:{position:"absolute",width:"100vw"}},Ze.createElement("div",{ref:Te,className:Se()(yt.imageDimensions,te,re?yt.fullWidth:""),style:ae},Ze.createElement("img",{className:yt.img,ref:fe}))))}},62363:function(Lt,Ot,ze){"use strict";ze.d(Ot,{N:function(){return ue}});var Ze=ze(59301),yt=ze(82326),y=ze(62957),Se=ze(37568),ye=ze(6767),E=ze(77019),z=ze(5269),oe=ze(82093),se={wrap:"wrap___F7E3F",selectWrapper:"selectWrapper____kESB",tips:"tips___aHjQY",linkBtn:"linkBtn___uggVr",mainText:"mainText____S1I0",public_tips:"public_tips___sZVWd",inputCss:"inputCss___t66EO",bt:"bt___lXptu",add_style:"add_style___knrMF"},ee=ze(92310),de=ze.n(ee),x=ze(87169),te=ze(59301),re=(he,pe,me)=>new Promise((fe,ve)=>{var ke=_e=>{try{Pe(me.next(_e))}catch(be){ve(be)}},Te=_e=>{try{Pe(me.throw(_e))}catch(be){ve(be)}},Pe=_e=>_e.done?fe(_e.value):Promise.resolve(_e.value).then(ke,Te);Pe((me=me.apply(he,pe)).next())});const{Option:ae}=yt.default,ue=({subId:he,value:pe,selectvalues:me,disabled:fe,knowledgeOptions:ve=[],className:ke,height:Te,onChange:Pe=()=>{},onAddKnowledgeFinish:_e=()=>{},zIndex:be=1e3})=>{const xe=(0,Ze.useRef)(),[Ae,Me]=(0,Ze.useState)([]);pe=pe||[];const Be=(De,He)=>{De?(Me([...He]),Pe([...He])):(Me([]),Pe([]))};(0,Ze.useEffect)(()=>{(me==null?void 0:me.length)>0?(Me([...me]),Pe([...me])):(Me([]),Pe([]))},[ve]),(0,Ze.useEffect)(()=>{(pe==null?void 0:pe.length)>0&&Pe([...pe])},[ve]);const Ce=De=>{De.preventDefault(),xe.current="",y.default.confirm({centered:!0,width:585,zIndex:be,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:te.createElement("div",{className:"font14"},te.createElement("div",{className:se.public_tips},te.createElement(x.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),te.createElement("div",{style:{display:"flex",alignItems:"center"}},te.createElement("div",{style:{width:"95px"}},te.createElement("span",{className:se.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),te.createElement(Se.default,{className:se.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:xe.current,onChange:He=>{xe.current=He.target.value}}))),onOk:()=>new Promise((He,Ke)=>re(void 0,null,function*(){if(!xe.current)return ye.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),Ke();if(xe.current.length>20)return ye.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),Ke();const Ye=yield(0,oe.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:xe.current,sub_discipline_id:he}});if((Ye==null?void 0:Ye.status)===0){_e({id:Ye.tag_discipline_id,name:xe.current,type:"personal"});let it=me||[];it.push(Ye.tag_discipline_id),Pe([...it]),Me([...it]),Pe([...it])}return He()}))})};return te.createElement(E.Z,{wrap:!1,align:"middle",className:de()(se.wrap,ke)},te.createElement(z.Z,null,te.createElement(yt.default,{mode:"multiple",disabled:!he||fe,className:se.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Be,style:{width:Te||490},showSearch:!0,allowClear:!0,value:Ae,filterOption:(De,He)=>He.label.indexOf(De.toLowerCase())>=0},ve==null?void 0:ve.map(De=>te.createElement(ae,{key:De.id,value:De.id,label:De.name},te.createElement("div",{style:{display:"flex",alignItems:"center"}},te.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},De.name),(De==null?void 0:De.type)==="personal"&&te.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),he&&te.createElement(z.Z,{className:`ml20 ${Te&&se.add_style}`},te.createElement("span",{className:se.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),te.createElement("span",{className:se.linkBtn,onClick:Ce},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},88615:function(Lt,Ot,ze){"use strict";var Ze=ze(59301),yt=ze(77019),y=ze(5269),Se=ze(20554),ye=ze(99571),E=ze(38394),z=ze(21697),oe=ze(48136),se=ze(59301);const ee=(0,Ze.forwardRef)(({callback:de,showSaveButton:x,value:te=""},re)=>{const ae=(0,Ze.useRef)(),ue=[{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 "}]}]}],he=[{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}`}]}]}],pe=ve=>{ae.current.setValue(ae.current.getValue()+" "+ve.value+" ")},me=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:se.createElement(yt.Z,{className:z.Z.lists,gutter:[10,10]},ue.map((ve,ke)=>se.createElement(y.Z,{flex:"110px",className:z.Z.item},se.createElement("div",null,se.createElement(E.Z,{value:`$$${ve.value}$$`}),ve.name),se.createElement("div",{className:z.Z.children},ve.children.map((Te,Pe)=>se.createElement("div",{key:Pe},se.createElement("h1",null,Te.name),se.createElement(yt.Z,{gutter:[10,10]},Te.data.map((_e,be)=>se.createElement(y.Z,{key:be,onClick:()=>pe(_e),className:z.Z.diamond},se.createElement(E.Z,{value:"`$$"+_e.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:se.createElement(yt.Z,{className:z.Z.lists,gutter:[10,10]},he.map((ve,ke)=>se.createElement(y.Z,{flex:"110px",className:z.Z.item},se.createElement("div",null,se.createElement(E.Z,{value:"`$$"+ve.value+"$$`"}),ve.name),se.createElement("div",{className:z.Z.children},ve.children.map((Te,Pe)=>se.createElement("div",{key:Pe},Te.name&&se.createElement("h1",null,Te.name),se.createElement(yt.Z,{gutter:[10,10]},Te.data.map((_e,be)=>se.createElement(y.Z,{key:be,onClick:()=>pe(_e),className:z.Z.diamond},se.createElement(E.Z,{value:"`$$"+_e.value+"$$`"}))))))))))}],fe=()=>{var ve=document.createElement("div");ve.innerHTML=ae.current.getValue();var ke=ve.innerText;return de&&de(ke),ke};return(0,Ze.useImperativeHandle)(re,()=>({getData:fe})),se.createElement("div",{className:z.Z.mathWrap},se.createElement(Se.default,{defaultActiveKey:"1",items:me}),se.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ae,style:{width:800,marginTop:30,fontSize:18}},te||""),x&&se.createElement("div",{className:z.Z.button},se.createElement(ye.ZP,{size:"large",onClick:fe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ot.Z=ee},57884:function(Lt,Ot,ze){"use strict";var Ze=ze(59301),yt=ze(93314),y=ze(99571),Se=Object.defineProperty,ye=Object.defineProperties,E=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ee=(re,ae,ue)=>ae in re?Se(re,ae,{enumerable:!0,configurable:!0,writable:!0,value:ue}):re[ae]=ue,de=(re,ae)=>{for(var ue in ae||(ae={}))oe.call(ae,ue)&&ee(re,ue,ae[ue]);if(z)for(var ue of z(ae))se.call(ae,ue)&&ee(re,ue,ae[ue]);return re},x=(re,ae)=>ye(re,E(ae));const te=({img:re,buttonProps:ae={},styles:ue={},customText:he,ButtonText:pe,ButtonClick:me,Buttonclass:fe,ButtonTwo:ve,imgStyles:ke,loading:Te=!1,className:Pe=""})=>Ze.createElement("section",{className:`tc animated fadeIn ${Pe}`,style:de({color:"#999",margin:"100px auto",visibility:Te?"hidden":"visible"},ue)},Ze.createElement("img",{src:re||yt,style:x(de({},ke),{pointerEvents:"none",userSelect:"none"})}),Ze.createElement("p",{className:"mt20 font14"},he||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),pe&&Ze.createElement(y.ZP,de({className:fe,onClick:me},ae),pe),ve&&ve);Ot.Z=te},41550:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return fe}});var Ze=ze(59301),yt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},y=ze(99571),Se=ze(70557),ye=ze(51124),E=ze(25399),z=ze(49661),oe=ze(72664),se=ze(57884),ee=ze(90524),de=ze(14794),x=ze(59301),te=Object.defineProperty,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,he=(ve,ke,Te)=>ke in ve?te(ve,ke,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ve[ke]=Te,pe=(ve,ke)=>{for(var Te in ke||(ke={}))ae.call(ke,Te)&&he(ve,Te,ke[Te]);if(re)for(var Te of re(ke))ue.call(ke,Te)&&he(ve,Te,ke[Te]);return ve},me=(ve,ke,Te)=>new Promise((Pe,_e)=>{var be=Me=>{try{Ae(Te.next(Me))}catch(Be){_e(Be)}},xe=Me=>{try{Ae(Te.throw(Me))}catch(Be){_e(Be)}},Ae=Me=>Me.done?Pe(Me.value):Promise.resolve(Me.value).then(be,xe);Ae((Te=Te.apply(ve,ke)).next())}),fe=({editOffice:ve="view",data:ke,issaver:Te,onSaver:Pe,theme:_e,type:be,filename:xe,monacoEditor:Ae,className:Me,style:Be,close:Ce,onClose:De,hasMask:He,disabledDownload:Ke,onImgDimensions:Ye,showNodata:it,recordInfo:Re})=>{const[We,et]=(0,Ze.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[nt,rt]=(0,Ze.useState)(""),[Xe,Je]=(0,Ze.useState)(),Ve=window.ENV==="build"?"/react/build":"",at=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ut=10*(1024*1024),st=(0,Ze.useRef)();ke!=null&&ke.startsWith("/api")&&be!=="txt"&&(ke=ee.Z.API_SERVER+ke);const $e=Ie=>Ie.substring(Ie.lastIndexOf("/")+1).split(".").pop();xe&&Ae&&(Ae.filename=xe),(0,Ze.useEffect)(()=>{var Ie,Fe;const we=(Fe=(Ie=document.cookie)==null?void 0:Ie.replace(/\s/g,""))==null?void 0:Fe.split(";");we==null||we.map(Ee=>{let Oe=Ee.split("=");Oe[0]==="_educoder_session"&&rt(Oe[1])})},[]),(0,Ze.useEffect)(()=>{be==="office"&&(ke.indexOf("bigfilescdn.")>-1||ke.indexOf("bigfiles1")>-1?Je({url:ke,fileType:$e(ke),model:ke.indexOf("model=edit")?"edit":"view"}):je())},[be,ke]);function Ne(Ie){return me(this,null,function*(){Ie.data.type==="pdfdata"&&(Pe(Ie.data.data),window.removeEventListener("message",Ne,!1)),console.log("mess---:",Ie.data)})}const je=()=>me(void 0,null,function*(){console.log("data:",ke);let Ie=ke;ke.startsWith("http")||(Ie=location.origin+Ie);let Fe=new URL(Ie).pathname.split("/").pop();const we=yield(0,oe.gJ)({attachment_id:Fe});we.url=at+we.url,Je(we)}),ne=()=>{if(ke.startsWith("http")||ke.startsWith("blob:")){ce();return}(0,z.Sv)(xe||"educoder",ke,xe)},ce=()=>{Re&&(0,de.fc)({id:Re==null?void 0:Re.id,watch_type:1,course_id:Re==null?void 0:Re.course_id}),(0,z.Nd)(xe||"educoder",decodeURIComponent(ke))};return x.createElement("div",{style:pe({},Be||{}),className:`${He&&yt.bgBlack} ${be?yt.wrp:"hide"}`},Ce&&x.createElement("div",{className:yt.close,ref:st},!!Ye&&x.createElement(E.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>st.current},x.createElement("span",{onClick:()=>{De(),Ye()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!Ke&&x.createElement(E.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>st.current},x.createElement("span",{onClick:ce},x.createElement("i",{className:"icon-quxiaozhiding"}))),Te&&x.createElement(E.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>st.current},x.createElement("span",{className:"",onClick:()=>{const Ie=document.getElementById("pdfiframe");window.addEventListener("message",Ne,!1),setTimeout(()=>{Ie.contentWindow.postMessage("getData","*")},300)}},x.createElement("i",{className:"icon-baocun"}))),x.createElement(E.Z,{title:"\u5173\u95ED",getPopupContainer:()=>st.current},x.createElement("span",{className:"",onClick:()=>{De()}},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${yt[Me]} ${Me} ${yt.monaco} ${be==="txt"?"show":"hide"}`},be==="txt"&&x.createElement(x.Fragment,null,x.createElement(ye.ZP,pe({},Ae)))),be==="audio"&&x.createElement("audio",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ke}`,autoPlay:!0}),be==="video"&&x.createElement(x.Fragment,null,(ke==null?void 0:ke.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${ke}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ke}`,autoPlay:!0})),be==="office"&&Xe&&x.createElement("iframe",{src:`${Ve}/office.html?key=${Xe.key}&url=${btoa(Xe.url)}&callbackUrl=${at+(Xe.callbackUrl||"")}&fileType=${Xe.fileType}&title=${Xe.title||""}&model=${ve}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!Ke}`}),be==="html"&&x.createElement("iframe",{src:ke+"&disposition=inline"}),be==="pdf"&&x.createElement("iframe",{id:"pdfiframe",src:`${Ve}/js/pdfview/index.html?filename=${xe||"educoder.pdf"}&url=${encodeURIComponent(ke)}&disabledDownload=${!!Ke}&model=${ve}`}),be==="image"&&x.createElement("img",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ke}`}),(be==="other"||be==="download")&&x.createElement(x.Fragment,null,it?x.createElement(se.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:x.createElement(y.ZP,{icon:x.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:Ke},"\u4E0B\u8F7D")}):x.createElement(y.ZP,{type:"primary",size:"middle",onClick:ne,disabled:Ke},x.createElement(Se.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),be==="flowChart"&&x.createElement("div",{className:"embed"},x.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${ke||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},54657:function(Lt,Ot,ze){"use strict";ze.d(Ot,{h:function(){return ae},x:function(){return ue}});var Ze=ze(2978),yt=ze(69092),y=ze(38394),Se=ze(59301),ye=Object.defineProperty,E=Object.defineProperties,z=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,de=(he,pe,me)=>pe in he?ye(he,pe,{enumerable:!0,configurable:!0,writable:!0,value:me}):he[pe]=me,x=(he,pe)=>{for(var me in pe||(pe={}))se.call(pe,me)&&de(he,me,pe[me]);if(oe)for(var me of oe(pe))ee.call(pe,me)&&de(he,me,pe[me]);return he},te=(he,pe)=>E(he,z(pe)),re=(he,pe)=>{var me={};for(var fe in he)se.call(he,fe)&&pe.indexOf(fe)<0&&(me[fe]=he[fe]);if(he!=null&&oe)for(var fe of oe(he))pe.indexOf(fe)<0&&ee.call(he,fe)&&(me[fe]=he[fe]);return me};const ae=he=>{var pe=he,{value:me,onChange:fe,scrollId:ve}=pe,ke=re(pe,["value","onChange","scrollId"]);return Se.createElement("div",{id:ve||""},Se.createElement(Ze.Z,te(x({},ke),{defaultValue:me,onChange:(Te,Pe)=>{Pe!=null&&Pe.length?fe(Te,Pe):fe(Te)}})))},ue=({value:he,onChange:pe,placeholder:me,height:fe=140,isEdit:ve,miniToolbar:ke,watch:Te=!0})=>ve?Se.createElement(Ze.Z,{watch:Te,isFocus:!0,height:fe||void 0,placeholder:me,defaultValue:he,onChange:pe,miniToolbar:ke}):Se.createElement("div",{style:{cursor:"pointer"}},he?Se.createElement(y.Z,{className:yt.Z.inputBorder,value:he}):Se.createElement("div",{className:`${yt.Z.inputBorder} ${yt.Z.placeholder} inputBorderError`},me))},38394:function(Lt,Ot,ze){"use strict";ze.d(Ot,{z:function(){return Ae},Z:function(){return Me}});var Ze=ze(59301),yt=ze(88831),y=ze(90290),Se=ze(64018),ye=ze(81098),E=ze(90524),z=ze(49661),oe=ze(15342),se=ze(77736),ee=ze(99571),de=ze(1012),x=ze(41550),te=ze(59301),ae=({html:Be})=>{const Ce=(0,Ze.useRef)(null),De=(0,Ze.useRef)(null),He=`.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,Ze.useEffect)(()=>{const Ke=Ce.current.attachShadow({mode:"open"});De.current=document.createElement("div"),De.current.className="markdown-body",De.current.innerHTML=Be,Ke.appendChild(De.current);const Ye=document.createElement("style");return Ye.textContent=He,Ke.appendChild(Ye),()=>{Ke.innerHTML=""}},[]),(0,Ze.useEffect)(()=>{De.current&&(De.current.innerHTML=Be)},[Be]),te.createElement("div",{ref:Ce})};function ue(Be){const Ce=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],De=new RegExp(`\\b(${Ce.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Be.replace(De,"").trim()}var he={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},pe=Object.defineProperty,me=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,ke=(Be,Ce,De)=>Ce in Be?pe(Be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:De}):Be[Ce]=De,Te=(Be,Ce)=>{for(var De in Ce||(Ce={}))fe.call(Ce,De)&&ke(Be,De,Ce[De]);if(me)for(var De of me(Ce))ve.call(Ce,De)&&ke(Be,De,Ce[De]);return Be};const Pe="@\u2581\u2581@",_e="@\u2581@",be=/<pre[^>]*>/g;function xe(Be){let Ce=document.createElement("div");return Ce.innerHTML=Be,Ce.childNodes.length===0?"":Ce.childNodes[0].nodeValue}const Ae=(Be,Ce)=>{Be=Be||"";const De=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ke=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ye=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ce?Be.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(De,(it,Re,We,et,nt,rt,Xe)=>{const Je=Re||et||rt,Ve=We||nt||Xe||"?";return E.Z.API_SERVER+"/api/attachments/"+Je+Ve+"&t="+(0,z.Jn)(Je,Date.now())+(it.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Be=Be.replace(Ye,(it,Re,We,et,nt,rt,Xe)=>{const Je=Re||et||rt,Ve=We||nt||Xe||"?";return E.Z.API_SERVER+"/attachments/download/"+Je+Ve+"&t="+(0,z.Jn)(Je,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(De,(it,Re,We,et,nt,rt,Xe)=>{const Je=Re||et||rt,Ve=We||nt||Xe||"?";return E.Z.API_SERVER+"/api/attachments/"+Je+Ve+"&t="+(0,z.Jn)(Je,Date.now())+(it.indexOf(")")>-1?")":"&")}).replace(He,(it,Re,We,et,nt)=>{const rt=Re||et,Xe=We||nt||"";return'"'+E.Z.API_SERVER+"/api/attachments/"+rt+Xe+rt+Xe+"&t="+(0,z.Jn)(rt,Date.now())}).replace(Ke,(it,Re,We,et,nt)=>{const rt=Re||et,Xe=We||nt||"";return"("+E.Z.API_SERVER+"/files/uploads/"+rt+Xe+rt+Xe+"&t="+(0,z.Jn)(rt,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,`
`),Be)};var Me=({value:Be="",edit:Ce=!1,className:De,showTextOnly:He,showLines:Ke,style:Ye={},stylesPrev:it={},highlightKeywords:Re,showProgramFill:We,isProgramFill:et,disabledFill:nt=!1,programFillValue:rt,openEditor:Xe=()=>{},onFillChange:Je=Qe=>{},onFillBlur:Ve=()=>{},onFillFocus:at=()=>{}})=>{let Qe=ue(String(Be||""));const ut=(0,Ze.useRef)(),st=(0,Ze.useRef)(),[$e,Ne]=(0,Ze.useState)(""),[je,ne]=(0,Ze.useState)("office"),[ce,Ie]=(0,Ze.useState)([]),Fe=(0,Ze.useRef)("a"+(0,de.Z)()),we={},Ee=dt=>/<style[\s\S]*?>/i.test(dt||""),Oe=(dt,bt,wt)=>{const At=document.createElement(dt===_e?"input":"textarea");At.style.width="100%",At.style.height=dt===_e?"40px":"151px",At.rows=5,At.spellcheck=!1,At.name="edu-program-fill",At.placeholder="\u8BF7\u8F93\u5165",At.dataset.id=bt;const jt=Object.keys(we).length;return we[jt]=At,`<span class="edu-program-fill-wrap ${dt===_e?"":"show"}" style="width:${dt===_e?"600px":"100%"}" title=${wt||""}><span>${At.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ue(dt){return dt=dt.replace(/!\[.*?\]\(.*?\)/g,""),dt=dt.replace(/\[.*?\]\(.*?\)/g,""),dt=dt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),dt=dt.replace(/<embed.*?>/g,""),dt=dt.replace(/<img.*?>/g,""),dt=dt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),dt=dt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),dt=dt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),dt=dt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),dt}const tt=dt=>!He&&Ee(Qe)?dt:dt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(bt,wt){let At=wt.replace(/(\n|\r)/g,"").split("}"),jt=[];return At.map(Zt=>{Zt!=""&&jt.push(`.${Fe.current} ${Zt}`)}),`<style>${jt.join("}")}</style>`}),Ge=(0,Ze.useMemo)(()=>{try{const At=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,jt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Zt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Wt=/\(\/attachments\/download\//g;Qe=Qe.replace(Wt,"("+E.Z.API_SERVER+"/attachments/download/").replace(At,"("+E.Z.API_SERVER+"/api/attachments/").replace(jt,'"'+E.Z.API_SERVER+"/api/attachments/").replace(Zt,'"'+E.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,`
`),ut.current.style.display="none"}catch(At){}if(We){let At=-1;return Qe=Qe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(jt,Zt,Wt){var $t;return++At,Oe(jt,At,($t=rt==null?void 0:rt[At])==null?void 0:$t.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${tt(Qe||"")}</pre>`}let dt=tt(Qe);dt=(0,y.ZP)(dt);const bt=(0,y.ez)();Qe.match(/\[TOC\]/)&&(dt=dt.replace("<p>[TOC]</p>",(0,y.Qv)()),(0,y.Iy)()),dt=dt.replace(/(__special_katext_id_\d+__)/g,(At,jt)=>{const{type:Zt,expression:Wt}=bt[jt];return(0,oe.renderToString)(xe(Wt)||"",{displayMode:Zt==="block",throwOnError:!1,output:"html"})}),dt=dt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const wt=document.createElement("div");if(wt.innerHTML=dt,He)return wt.innerText;if(Re){const At=Re.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return kt(wt,At),wt.innerHTML}return setTimeout(()=>gt(),500),wt.innerHTML},[Qe,Re]);(0,Ze.useEffect)(()=>{xt.current&&xt.current.querySelectorAll(["input","textarea"]).forEach(bt=>{bt.oninput=ft,bt.onblur=ct,bt.onfocus=vt})},[ce]),(0,Ze.useEffect)(()=>{var dt,bt,wt,At,jt;if(rt!=null&&rt.length)try{const Zt=xt.current.querySelectorAll(".edu-program-fill-score"),Wt=xt.current.querySelectorAll('[name="edu-program-fill"]');for(const[$t,Er]of Wt.entries())Er.value=((dt=rt==null?void 0:rt[$t])==null?void 0:dt.value)||"",((bt=rt==null?void 0:rt[$t])==null?void 0:bt.type)==="warning"?Er.className="program-fill-warning":((wt=rt==null?void 0:rt[$t])==null?void 0:wt.type)==="success"?Er.className="program-fill-success":Er.className="";for(const[$t,Er]of Zt.entries())Er.innerHTML=(At=rt==null?void 0:rt[$t])!=null&&At.score?`${(jt=rt==null?void 0:rt[$t])==null?void 0:jt.score}\u5206`:"";Ie(rt)}catch(Zt){console.log(Zt,"error")}},[rt]);const ft=dt=>{ce[dt.target.dataset.id]=ce[dt.target.dataset.id]||{},ce[dt.target.dataset.id].value=dt.target.value,Ie([...ce]),Je(ce,dt.target.dataset.id)},ct=dt=>{ce[dt.target.dataset.id]=ce[dt.target.dataset.id]||{},ce[dt.target.dataset.id].value=dt.target.value,Ie([...ce]),Ve(ce,dt.target.dataset.id)},vt=dt=>{ce[dt.target.dataset.id]=ce[dt.target.dataset.id]||{},ce[dt.target.dataset.id].value=dt.target.value,Ie([...ce]),at(ce,dt.target.dataset.id)};function kt(dt,bt){return dt.childNodes.forEach(wt=>{var At;if(wt.childNodes.length>0)kt(wt,bt);else if(wt.nodeName!=="IMG")if(wt.innerHTML)wt.innerHTML=(At=wt.innerHTML)==null?void 0:At.replace(new RegExp(bt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const jt=document.createElement("span");jt.innerHTML=wt.textContent.replace(new RegExp(bt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),wt.replaceWith(jt)}})}const xt=(0,Ze.useRef)();y.jb.WebkitLineClamp=Ke,Ke&&(Ye=Te(Te({},Ye),y.jb));function Et(dt){let bt=dt.target;if(bt.tagName.toUpperCase()==="A"){let wt=bt.getAttribute("href");if(wt.indexOf("office")>-1)dt.preventDefault(),Ne(wt),ne("office");else if(wt.indexOf("application/pdf")>-1)dt.preventDefault(),Ne(wt),ne("pdf");else if(wt.indexOf("text/html")>-1)dt.preventDefault(),Ne(wt),ne("html");else if(wt.startsWith("#")){dt.preventDefault();let At=document.getElementById(wt.replace("#",""));At&&At.scrollIntoView(!0)}}}const gt=()=>{var dt;const bt=(dt=xt.current)==null?void 0:dt.querySelectorAll("video");bt==null||bt.forEach(wt=>{if(wt.oncontextmenu=()=>!1,wt.src.indexOf(".m3u8")>-1&&!wt.canPlayType("application/vnd.apple.mpegurl")){if(ye.ZP.isSupported()){var At=new ye.ZP;At.loadSource(wt.src),At.attachMedia(wt)}}})};(0,Ze.useEffect)(()=>{if(xt.current&&Ge&&Ge.match(be)&&window.PR.prettyPrint(),xt.current)return xt.current.addEventListener("click",Et),()=>{var dt;(dt=xt.current)==null||dt.removeEventListener("click",Et),(0,y.AL)(),(0,y.Iy)()}},[Ge,xt.current,Et]);const pt=dt=>{dt.target.nodeName==="IMG"&&dt.target.className.indexOf("draw-flowchart")>-1?(ut.current.style.zIndex=1,ut.current.style.display="flex",ut.current.style.width=dt.target.clientWidth+"px",ut.current.style.height=dt.target.clientHeight+"px",ut.current.style.top=dt.target.offsetTop+"px",ut.current.style.left=dt.target.offsetLeft+"px",dt.target.id&&(st.current=dt.target.id)):ut.current.style.display="none"},mt=()=>{ut.current.style.display="none"};return(0,Ze.useEffect)(()=>{var dt;const bt=wt=>{wt.preventDefault(),wt.clipboardData.setData("text",window.getSelection().toString())};return(dt=xt.current)==null||dt.addEventListener("copy",bt),()=>{var wt;(wt=xt.current)==null||wt.removeEventListener("copy",bt)}},[xt.current]),Ze.createElement("div",{style:{position:"relative"},onMouseLeave:mt},He&&Ze.createElement("div",{ref:xt,className:`${he.mdBody} `},Ge),!He&&!Ee(Ge)&&Ze.createElement("div",{ref:xt,style:Te({},Ye),onMouseOver:pt,className:`${De||""} ${nt?"disabled-fill":""} markdown-body ${he.mdBody} ${Fe.current}`,dangerouslySetInnerHTML:{__html:Ge}}),!He&&Ee(Ge)&&Ze.createElement(ae,{html:Ge}),Ze.createElement("div",{ref:ut,className:`${he.button} ${Ce?"":he.previewFlowChart}`},Ze.createElement(se.Z,null,Ze.createElement(ee.ZP,{onClick:()=>{Ce?Xe(st.current):(Ne(st.current),ne("flowChart"))}},Ce?"\u7F16\u8F91":"\u9884\u89C8"))),Ze.createElement(x.Z,{close:!0,data:$e,type:$e!=null&&$e.length?je:"",style:Te({},it),onClose:()=>Ne("")}))}},72015:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return Se}});var Ze=ze(59301),yt=ze(33796),y=ze(59301),Se=({defaultX:ye="40%",leftChild:E,rightChild:z,className:oe,hideResize:se=!1})=>{const[ee,de]=(0,Ze.useState)(ye),x=(0,Ze.useRef)();function te(){x.current=!0}(0,Ze.useEffect)(()=>{function ue(pe){x.current&&(yt.Z.publish("resize-move-bar",pe),de(pe.pageX))}function he(){x.current=!1}return window.addEventListener("mousemove",ue),window.addEventListener("mouseup",he),()=>{window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",he)}},[]);const re=typeof ee=="number"&&ee!==.01?`${ee}px`:ye,ae=`calc(100% - ${se?"0px":"4px"} - ${re})`;return y.createElement("div",{className:`split-panel-container ${oe}`},y.createElement("section",{style:{width:re,display:ee===.01?"none":""}},E),y.createElement("section",{className:"resize-x-bar",onMouseDown:te},y.createElement("a",{className:"btn-resize"},y.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},y.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),y.createElement("section",{style:{width:ae}},z))}},25992:function(Lt,Ot,ze){"use strict";ze.d(Ot,{cT:function(){return be},pe:function(){return Te}});var Ze=ze(59301),yt=ze(14566),y=ze(6767),Se=ze(82093),ye=ze(28209),E=ze.n(ye),z=ze(1012),oe=ze(76560),se=ze(47257),ee=ze.n(se),de=Object.defineProperty,x=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,he=(Ae,Me,Be)=>Me in Ae?de(Ae,Me,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ae[Me]=Be,pe=(Ae,Me)=>{for(var Be in Me||(Me={}))ae.call(Me,Be)&&he(Ae,Be,Me[Be]);if(re)for(var Be of re(Me))ue.call(Me,Be)&&he(Ae,Be,Me[Be]);return Ae},me=(Ae,Me)=>x(Ae,te(Me)),fe=(Ae,Me)=>{var Be={};for(var Ce in Ae)ae.call(Ae,Ce)&&Me.indexOf(Ce)<0&&(Be[Ce]=Ae[Ce]);if(Ae!=null&&re)for(var Ce of re(Ae))Me.indexOf(Ce)<0&&ue.call(Ae,Ce)&&(Be[Ce]=Ae[Ce]);return Be},ve=(Ae,Me,Be)=>new Promise((Ce,De)=>{var He=it=>{try{Ye(Be.next(it))}catch(Re){De(Re)}},Ke=it=>{try{Ye(Be.throw(it))}catch(Re){De(Re)}},Ye=it=>it.done?Ce(it.value):Promise.resolve(it.value).then(He,Ke);Ye((Be=Be.apply(Ae,Me)).next())});const{Dragger:ke}=yt.default,Te=Ae=>{const Me="bf3c199c2470cb477d907b1e0917c17b",Be="5183666c72eec9e4";var Ce=E().enc.Utf8.parse(Me);let De=E().enc.Utf8.parse(Be);var He=E().AES.decrypt(Ae,Ce,{iv:De,mode:E().mode.CBC});return He.toString(E().enc.Utf8)};let Pe;const _e=Ae=>ve(void 0,[Ae],function*({identifier:Me,oldFilename:Be,newFilename:Ce}){var De,He,Ke,Ye,it,Re;const We=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});We.data=JSON.parse(Te(We.data));const et=new OSS({endpoint:(De=We==null?void 0:We.data)==null?void 0:De.end_point,region:(He=We==null?void 0:We.data)==null?void 0:He.region,accessKeyId:(Ke=We==null?void 0:We.data)==null?void 0:Ke.access_key_id,accessKeySecret:(Ye=We==null?void 0:We.data)==null?void 0:Ye.access_key_secret,bucket:(it=We==null?void 0:We.data)==null?void 0:it.bucket,stsToken:(Re=We==null?void 0:We.data)==null?void 0:Re.security_token});return new Promise((nt,rt)=>{console.log(11111,`${Me}/${Be}`,`${Me}/${Ce}`,We.data),et.copy(`/${Me}/${Be}`,`/${Me}/${Ce}`).then(Xe=>{console.log("\u62F7\u8D1D\u6210\u529F",Xe)}).catch(Xe=>{console.log(Xe)})})}),be=(Ae,Me,Be)=>ve(void 0,null,function*(){var Ce,De,He,Ke,Ye,it;Me.file_name=Ae.name;const Re=yield(0,Se.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Te(Re.data)),Re.data=JSON.parse(Te(Re.data));const We=Ae.name.split(".");We.pop();const et=Me.realFileName?We.join(""):(0,z.Z)(),nt=new(ee())({endpoint:(Ce=Re==null?void 0:Re.data)==null?void 0:Ce.end_point,region:(De=Re==null?void 0:Re.data)==null?void 0:De.region,accessKeyId:(He=Re==null?void 0:Re.data)==null?void 0:He.access_key_id,accessKeySecret:(Ke=Re==null?void 0:Re.data)==null?void 0:Ke.access_key_secret,bucket:(Ye=Re==null?void 0:Re.data)==null?void 0:Ye.bucket,stsToken:(it=Re==null?void 0:Re.data)==null?void 0:it.security_token});return new Promise((rt,Xe)=>{var Je;nt.multipartUpload(`${et}`,new Blob([Ae],{type:Ae.type}),me(pe({timeout:200*1e3,partSize:102400},Be),{callback:{url:(Je=Re==null?void 0:Re.data)==null?void 0:Je.callback_url,host:Re==null?void 0:Re.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Se.rz)(Me)}})).then(function(Ve){var at;Ae.response=(at=Ve.data)==null?void 0:at.data,rt(Ve==null?void 0:Ve.data)}).catch(function(Ve){Xe(Ve),console.log("err:",Ve)})})}),xe=Ae=>{var Me=Ae,{user:Be,cancelUpload:Ce}=Me,De=fe(Me,["user","cancelUpload"]);const[He,Ke]=(0,Ze.useState)([]);let[Ye,it]=(0,Ze.useState)();const Re={onRemove:et=>{Ke([...He.filter(nt=>nt.name!==et.name)]),De.onChange(He.filter(nt=>nt.name!==et.name))},disabled:De.disabled,multiple:!0,fileList:He==null?void 0:He.map(et=>et.file),customRequest:()=>{},beforeUpload:et=>ve(void 0,null,function*(){let nt=De.maxSize||1073741824;if(He.filter(rt=>rt.name===et.name).length){y.ZP.info(`${et.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(et==null?void 0:et.size)>nt?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${nt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(He.push({name:et.name,file:et}),Ke([...He]),De.onChange(He),!1)})},We=(et,nt)=>ve(void 0,null,function*(){var rt,Xe,Je,Ve,at,Qe;nt.file_name=et.name;const ut=et.name,st=yield(0,Se.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(st.data=JSON.parse(Te(st.data)),(st==null?void 0:st.status)!==0){He[He.findIndex(je=>je.name===ut)].status="error",He[He.findIndex(je=>je.name===ut)].file.status="error",De.onChange(He),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Ye=new(ee())({endpoint:(rt=st==null?void 0:st.data)==null?void 0:rt.end_point,region:(Xe=st==null?void 0:st.data)==null?void 0:Xe.region,accessKeyId:(Je=st==null?void 0:st.data)==null?void 0:Je.access_key_id,accessKeySecret:(Ve=st==null?void 0:st.data)==null?void 0:Ve.access_key_secret,bucket:(at=st==null?void 0:st.data)==null?void 0:at.bucket,stsToken:(Qe=st==null?void 0:st.data)==null?void 0:Qe.security_token}),console.log(et,"file"),it(Ye);const $e=et.name.split(".");$e.pop();const Ne=ut.indexOf(".")>-1?nt.realFileName?$e.join("."):(0,z.Z)():ut;return new Promise((je,ne)=>{var ce;try{Ye.multipartUpload(`${De.identifier}/${Ne}${ut.indexOf(".")>-1?"."+ut.split(".").pop():""}`,new Blob([et.file],{type:et.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Ie,Fe,we)=>{try{console.log("\u8FDB\u5EA6",Ie,Fe,we);const Ee=He.findIndex(Oe=>Oe.name===ut);He[Ee].file.percent=Ie*100,He[Ee].tempCheckpoint=Fe,Ke([...He])}catch(Ee){}},checkpoint:He[He.findIndex(Ie=>Ie.name===ut)].tempCheckpoint,callback:{customValue:{id:ut+""},url:(ce=st==null?void 0:st.data)==null?void 0:ce.callback_url,host:st==null?void 0:st.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Se.rz)(nt)}}).then(function(Ie){var Fe,we,Ee;const Oe=He.findIndex(tt=>tt.name===ut);let Ue="done";if(((Fe=Ie.data)==null?void 0:Fe.status)===0){et.response=(we=Ie.data)==null?void 0:we.data;const tt=He.findIndex(Ge=>Ge.name===ut);He[tt].status="done",He[tt].file.status="done"}else y.ZP.warning((Ee=Ie.data)==null?void 0:Ee.message),Ue="error";He[Oe].status=Ue,He[Oe].file.status=Ue,De.onChange(He),je(Ie==null?void 0:Ie.data)}).catch(function(Ie){He[He.findIndex(Fe=>Fe.name===ut)].status="error",He[He.findIndex(Fe=>Fe.name===ut)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ke([...He]),De.onChange(He),ne(Ie),console.log("err:",Ie)})}catch(Ie){}})});return(0,Ze.useEffect)(()=>{He.every(et=>et==="done"||et==="error")&&De.onComplete(He)},[He]),(0,Ze.useEffect)(()=>{Ce&&(Ye==null||Ye.cancel())},[Ce]),(0,Ze.useEffect)(()=>{De.uploading&&He.map(et=>ve(void 0,null,function*(){var nt;if((!et.status||et.status==="error")&&!Ce){et.status="uploading",et.file.status="uploading";const rt=yield We(et,{login:(nt=Be==null?void 0:Be.userInfo)==null?void 0:nt.login,container_type:De.container_type,container_id:De.container_id,description:De.description,realFileName:De.realFileName})}}))},[De.uploading]),Ze.createElement(ke,me(pe({},Re),{height:De.height,className:De.className}),Ze.createElement("p",{className:"ant-upload-hint"},De.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Ot.ZP=(0,oe.connect)(({loading:Ae,globalSetting:Me,user:Be})=>({globalSetting:Me,loading:Ae.models.competitions,user:Be}))(xe)},44905:function(Lt,Ot,ze){"use strict";ze.d(Ot,{h:function(){return ve}});var Ze=ze(59301),yt=ze(82326),y=ze(28284),Se=ze(99571),ye=ze(89780),E=ze.n(ye),z=ze(66543),oe=ze(59598),se=Object.defineProperty,ee=Object.defineProperties,de=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ae=(ke,Te,Pe)=>Te in ke?se(ke,Te,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ke[Te]=Pe,ue=(ke,Te)=>{for(var Pe in Te||(Te={}))te.call(Te,Pe)&&ae(ke,Pe,Te[Pe]);if(x)for(var Pe of x(Te))re.call(Te,Pe)&&ae(ke,Pe,Te[Pe]);return ke},he=(ke,Te)=>ee(ke,de(Te));const pe=yt.default.Option,me={labelCol:{span:4},wrapperCol:{span:20}},fe={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"]};Ot.Z=({callback:ke,onCancel:Te})=>{const[Pe,_e]=(0,Ze.useState)("python");function be(Ae){_e(fe[Ae][1])}function xe(Ae){ke(Ae)}return Ze.createElement(y.default,he(ue({},me),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:xe,style:{width:500}}),Ze.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ze.createElement(yt.default,{getPopupContainer:Ae=>Ae.parentNode,onChange:be},Object.keys(fe).map(Ae=>Ze.createElement(pe,{key:Ae,value:Ae},fe[Ae][0])))),Ze.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ze.createElement(ve,{mode:Pe})),Ze.createElement("div",{className:"flex-container flex-end"},Ze.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ze.createElement(Se.ZP,{type:"ghost",onClick:Te},"\u53D6\u6D88")))};function ve({value:ke,onChange:Te,mode:Pe,options:_e={}}){const be=(0,Ze.useRef)(),[xe,Ae]=(0,Ze.useState)();return(0,Ze.useEffect)(()=>{if(xe){let Me=function(Be){const Ce=Be.getValue();Te&&Te(Ce)};return xe.on("change",Me),()=>{xe.off("change",Me)}}},[xe,Te]),(0,Ze.useEffect)(()=>{xe&&xe.setOption("mode",Pe)},[xe,Pe]),(0,Ze.useEffect)(()=>{xe&&(ke!==xe.getValue()||ke==="")&&setTimeout(()=>{xe.setValue(ke||"")},300)},[xe,ke]),(0,Ze.useEffect)(()=>{if(be.current&&!xe){const Me=E().fromTextArea(be.current,ue({mode:Pe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},_e));Ae(Me)}},[be.current,xe]),Ze.createElement("div",{className:"my-codemirror-container"},Ze.createElement("textarea",{ref:be}))}},2978:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return Kt}});var Ze=ze(59301),yt=ze(89780),y=ze.n(yt),Se=ze(76374),ye=ze(66543),E=ze(6313),z=ze(25717),oe=ze(99498),se=ze(25419),ee=ze(67549),de=ze(38394),x=({value:It="",className:Rt,showTextOnly:Bt,showLines:Vt,style:lr={}})=>{const wr=(0,Ze.useMemo)(()=>"",[It]);return Ze.createElement(Ze.Fragment,null,Ze.createElement("div",{dangerouslySetInnerHTML:{__html:wr}}))},te=Object.defineProperty,re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,me=(It,Rt,Bt)=>Rt in It?te(It,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):It[Rt]=Bt,fe=(It,Rt)=>{for(var Bt in Rt||(Rt={}))he.call(Rt,Bt)&&me(It,Bt,Rt[Bt]);if(ue)for(var Bt of ue(Rt))pe.call(Rt,Bt)&&me(It,Bt,Rt[Bt]);return It},ve=(It,Rt)=>re(It,ae(Rt));let ke=[{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 Te({onActionCallback:It,title:Rt,icon:Bt,actionName:Vt,className:lr="",children:wr}){function Ut(){It(Vt)}return Ze.createElement("a",{title:Rt,className:lr,onClick:Ut},Ze.createElement("i",{className:`${Bt}`}),wr)}var Pe=({watch:It,showNullButton:Rt,showNullProgramButton:Bt,onActionCallback:Vt,fullScreen:lr,insertTemp:wr,hidetoolBar:Ut,extraUse:Or})=>{const _r=[...ke,{title:`${It?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${It?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ze.createElement("ul",{className:"markdown-toolbar-container"},!Ut&&_r.map((Pr,Dr)=>Ze.createElement("li",{key:Dr},Pr.actionName?Ze.createElement(Te,ve(fe({},Pr),{onActionCallback:Vt})):Ze.createElement("span",{className:"v-line"}))),Rt?Ze.createElement("li",null,Ze.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Vt},Ze.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Bt?Ze.createElement(Ze.Fragment,null,Ze.createElement("li",null,Ze.createElement(Te,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Vt},Ze.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Ze.createElement("li",null,Ze.createElement(Te,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Vt},Ze.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,wr&&Ze.createElement("li",null,Ze.createElement(Te,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${wr}`,onActionCallback:Vt},Ze.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Or&&Ze.createElement("li",null,Or),Ze.createElement("li",{className:"btn-full-screen"},Ze.createElement(Te,{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:Vt})))},_e=ze(75790),be=ze(28284),xe=ze(37568),Ae=ze(99571),Me=Object.defineProperty,Be=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Ye=(It,Rt,Bt)=>Rt in It?Me(It,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):It[Rt]=Bt,it=(It,Rt)=>{for(var Bt in Rt||(Rt={}))He.call(Rt,Bt)&&Ye(It,Bt,Rt[Bt]);if(De)for(var Bt of De(Rt))Ke.call(Rt,Bt)&&Ye(It,Bt,Rt[Bt]);return It},Re=(It,Rt)=>Be(It,Ce(Rt));const We={labelCol:{span:4},wrapperCol:{span:20}};var et=({callback:It,onCancel:Rt})=>{function Bt(Vt){It(Vt)}return Ze.createElement(be.default,Re(it({},We),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Bt,style:{width:500}}),Ze.createElement(be.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ze.createElement(xe.default,null)),Ze.createElement(be.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ze.createElement(xe.default,null)),Ze.createElement("div",{className:"flex-container flex-end"},Ze.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ze.createElement(Ae.ZP,{type:"ghost",onClick:Rt},"\u53D6\u6D88")))},nt=ze(44905),rt=ze(45596),Xe=ze(62957),Je=ze(77019),Ve=ze(6077),at=ze(59301),Qe=({callback:It,onCancel:Rt})=>{const Bt=document.createElement("canvas"),Vt=Bt.getContext("2d");Bt.width=1e3,Bt.height=800,Vt.fillStyle="#ffffff",Vt.fillRect(0,0,Bt.width,Bt.height);const lr=Bt.toDataURL("image/png");return at.createElement(Xe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},at.createElement(Je.Z,{style:{height:"100vh"}},at.createElement(Ve.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:lr,visible:!0,title:String(Date.now())},onOk:wr=>{It({src:wr.url})},onClose:Rt})))},ut=ze(30641),st=ze(5269),$e=ze(6767),Ne={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},je=ze(59301),ce=(0,Ze.forwardRef)(({onCancel:It,editImgId:Rt,callback:Bt},Vt)=>{let lr=(0,Ze.useRef)(),wr=(0,Ze.useRef)(),Ut=(0,Ze.useRef)(),Or=(0,Ze.useRef)(!1);const _r=(0,Ze.useRef)(!1);console.log("ref:",Vt);const[Pr,Dr]=(0,Ze.useState)(0),[yr,qt]=(0,Ze.useState)("100vh");return(0,Ze.useEffect)(()=>{Dr(1)},[]),(0,Ze.useImperativeHandle)(Vt,()=>({setHeight:qt})),je.createElement("div",{ref:_r,className:"body-overflow-initial"},je.createElement(ut.Z,{width:"100vw",height:yr,footer:null,closable:!0,placement:"bottom",open:!!Pr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ne.drawerWrap}`,onClose:()=>{window.saveDrawData(Mt=>{Bt({src:`/api/attachments/${Mt}`,id:Mt})})},title:je.createElement(Je.Z,{align:"middle"},je.createElement(st.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),je.createElement(st.Z,{onClick:()=>{qt(yr==="60px"?"100vh":"60px")}},je.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),je.createElement(st.Z,{onClick:()=>{window.saveDrawData(Mt=>{if(Mt===null){$e.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}$e.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Bt({src:`/api/attachments/${Mt}`,id:Mt,disabledClose:!0})})}},je.createElement(Ae.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},je.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Rt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:wr})))}),Ie=ze(90524),Fe=ze(47889),we=ze(71051);const Ee=Fe.ZP.Group,Oe={margin:"0 8px"};var Ue=({callback:It,onCancel:Rt})=>{function Bt(Vt){It(Vt)}return Ze.createElement(be.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Bt},Ze.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ze.createElement("span",{style:Oe},"\u5355\u5143\u683C\u6570\uFF1A"),Ze.createElement("span",{style:Oe},"\u884C\u6570"),Ze.createElement(be.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ze.createElement(we.Z,null)),Ze.createElement("span",{style:Oe},"\u5217\u6570"),Ze.createElement(be.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ze.createElement(we.Z,null))),Ze.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ze.createElement("span",{style:Oe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ze.createElement(be.default.Item,{name:"align"},Ze.createElement(Ee,null,Ze.createElement(Fe.ZP,{value:"default"},Ze.createElement("i",{className:"fa fa-align-justify"})),Ze.createElement(Fe.ZP,{value:"left"},Ze.createElement("i",{className:"fa fa-align-left"})),Ze.createElement(Fe.ZP,{value:"center"},Ze.createElement("i",{className:"fa fa-align-center"})),Ze.createElement(Fe.ZP,{value:"right"},Ze.createElement("i",{className:"fa fa-align-right"}))))),Ze.createElement("div",{className:"flex-container flex-end"},Ze.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ze.createElement(Ae.ZP,{type:"ghost",onClick:Rt},"\u53D6\u6D88")))},tt=ze(71411),Ge=ze(11081),ft=ze.n(Ge),vt=(0,Ze.forwardRef)(({use3d:It,width:Rt,height:Bt,callback:Vt,showSaveButton:lr},wr)=>{const Ut=(0,Ze.useRef)(),Or=(0,Ze.useRef)(),[_r,Pr]=(0,Ze.useState)(!1),Dr=(0,Ze.useRef)({id:Ut,appName:"graphing",width:Rt||1e3,height:Bt||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ze.useEffect)(()=>{Or.current=new(ft())(Dr.current,!0),window.onload=function(){Or.current.inject("applet_container")}},[]);const yr=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return Vt&&Vt(qt),qt};return(0,Ze.useEffect)(()=>{Dr.current.appName=_r?"3D":"graphing",Or.current.inject("applet_container")},[_r]),(0,Ze.useEffect)(()=>{Pr(It)},[It]),(0,Ze.useImperativeHandle)(wr,()=>({getImgData:yr})),Ze.createElement(Ze.Fragment,null,Ze.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ut}),Ze.createElement(Je.Z,{align:"middle"},Ze.createElement(st.Z,{flex:1},Ze.createElement(tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:_r,onChange:qt=>Pr(qt)})),Ze.createElement(st.Z,null,Ze.createElement(Ae.ZP,{size:"large",onClick:yr,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),kt=ze(88615);const xt="link",Et="upload-image",gt="add-flowchart",pt="draw-image",mt="add-flowchart",dt="code-block",bt="add-table",wt="------------",At={default:wt,left:`:${wt}`,center:`:${wt}:`,right:`${wt}:`};var jt=ze(17904);function Zt(){}let Wt=0;const $t=1e4,Er="\u2581",vr="@\u2581\u2581@",Ht="@\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`,or=["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 hr(It){return/^\d+$/.test(It)?`${It}px`:It}const sr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ir={[sr+"-B"]:"bold",[sr+"-I"]:"italic"},Jt={[xt]:"\u6DFB\u52A0\u94FE\u63A5",[dt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Et]:"\u6DFB\u52A0\u56FE\u7247",[pt]:"\u6DFB\u52A0\u753B\u56FE",[gt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[bt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Kt=({defaultValue:It="",onChange:Rt,width:Bt="100%",height:Vt=400,miniToolbar:lr=!1,isFocus:wr=!1,watch:Ut,insertTemp:Or,mode:_r="markdown",id:Pr="markdown-editor-id",showResizeBar:Dr=!1,noStorage:yr=!1,showNullButton:qt=!1,showNullProgramButton:Mt=!1,hidetoolBar:cr=!1,fullScreen:Ar=!1,onBlur:Br,onCMBeforeChange:Ct,onFullScreen:Tt,className:ar="",disablePaste:Xt=!1,disabled:Dt=!1,disabledFill:Yt=!1,placeholder:rr="",values:gr="",extraUse:Mr})=>{const[Pt,br]=(0,Ze.useState)(null),[Gt,Sr]=(0,Ze.useState)(It),[ir,ur]=(0,Ze.useState)(Ut),[xr,Fr]=(0,Ze.useState)(Ar),[Ur,en]=(0,Ze.useState)(""),[un,ln]=(0,Ze.useState)(0),[gn,nn]=(0,Ze.useState)(Vt),[Tn,Mn]=(0,Ze.useState)(!1),[xn,_n]=(0,Ze.useState)(0),[Dn,En]=(0,Ze.useState)(0),cn=(0,Ze.useRef)(),On=(0,Ze.useRef)(),dr=(0,Ze.useRef)(),Rr=(0,Ze.useRef)(),zr=(0,Ze.useRef)(),Kr=(0,Ze.useRef)();(0,Ze.useEffect)(()=>{const tr=window.scrollY||window.pageYOffset;Sr(gr),Pt==null||Pt.setValue(gr),window.scrollTo(0,tr)},[gr]),(0,Ze.useEffect)(()=>{Tt==null||Tt(xr)},[xr]),(0,Ze.useEffect)(()=>{if(cn.current){let tr=function(pr,kr){var Gr;if(Xt){kr.preventDefault();return}const Xr=kr.clipboardData;if(Xr){const dn=Xr.types.toString(),mn=Xr.items;if(dn==="Files"||Xr.types.indexOf("Files")>-1){if(kr.preventDefault(),_r=="stex")return;try{let on=mn[1];((Gr=mn[0])==null?void 0:Gr.kind)==="file"&&(on=mn[0]);const jn=on.getAsFile(),kn=jn.name.split(".").pop();(0,rt.I)(jn,Bn=>{var Xn,Gn,Hn;Bn.id?((Xn=jn==null?void 0:jn.type)==null?void 0:Xn.indexOf("image"))>-1?zt.replaceSelection(`<img width="100%" src="/api/attachments/${Bn.id}?type=${Bn.content_type})" alt="" />`):((Gn=jn==null?void 0:jn.type)==null?void 0:Gn.indexOf("video"))>-1?zt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Bn.id}"></video>`):((Hn=jn==null?void 0:jn.type)==null?void 0:Hn.indexOf("pdf"))>-1?zt.replaceSelection(`<a href="/api/attachments/${Bn.id}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):or.includes(kn)?zt.replaceSelection(`<a href="/api/attachments/${Bn.id}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):zt.replaceSelection(`[${jn.name}](/api/attachments/${Bn.id}?type=${Bn.content_type})`):(Bn==null?void 0:Bn.status)===401&&(document.location.href="/user/login")})}catch(on){$e.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const zt=y().fromTextArea(cn.current,{mode:_r,lineNumbers:!lr,lineWrapping:!0,value:It,autoCloseTags:!0,autoCloseBrackets:!0});return zt.on("keyup",function(pr,kr){kr.keyCode===8&&(pr.getValue()==""?zt.setOption("placeholder",rr):zt.setOption("placeholder",null))}),zt.on("keydown",function(pr,kr){if(kr.keyCode===8){var Gr=Wr(pr);Gr&&kr.preventDefault()}}),wr&&zt.focus(),zt.on("paste",tr),Dt&&zt.on("beforeChange",function(pr,kr){(kr.origin==="paste"||kr.origin==="+input")&&kr.cancel()}),br(zt),()=>{zt.off("paste",tr)}}},[]);const Vr=(0,Ze.useCallback)(()=>{if(On.current)try{}catch(tr){console.log(tr,"---- to set md editor body height")}},[gn,On,xr]);(0,Ze.useEffect)(()=>{function tr(){let zt=new Se.Z(pr=>{for(let kr of pr)(kr.target.offsetHeight>0||kr.target.offsetWidth>0)&&(Vr(),Pt.setSize("100%","100%"),Pt.refresh())});return zt.observe(cn.current.parentElement),zt}if(Pt){const zt=tr();return()=>{var pr,kr;(pr=cn.current)!=null&&pr.parentElement&&zt.unobserve((kr=cn.current)==null?void 0:kr.parentElement)}}},[Pt,Vr]),(0,Ze.useEffect)(()=>{if(Pt){let tr=[];for(const[zt,pr]of Object.entries(Ir)){let kr={[zt]:()=>{Tr(pr)}};tr.push(kr),Pt.addKeyMap(kr)}return()=>{for(let zt of tr)Pt.removeKeyMap(zt)}}},[Pt]),(0,Ze.useEffect)(()=>{Ar!==xr&&Fr(Ar)},[Ar]),(0,jt.Z)(()=>{if(!yr&&un>0){let tr=new Date().getTime(),zt=window.sessionStorage.getItem(Pr);tr>=un+$t&&(!zt||zt!==Gt)&&(window.sessionStorage.setItem(Pr,Gt),Mn(!0))}},$t),(0,Ze.useEffect)(()=>{ur(Ut)},[Pt,Ut]),(0,Ze.useEffect)(()=>{Pt&&wr&&Pt.focus()},[Pt,wr]),(0,Ze.useEffect)(()=>{if(ir&&Pt){let tr=function(pr){let kr=pr.target;if(Rr.current){let Gr=kr.scrollTop/kr.scrollHeight;Rr.current.scrollTop=Rr.current.scrollHeight*Gr}};const zt=Pt.getScrollerElement();return zt.addEventListener("scroll",tr),()=>{zt.removeEventListener("scroll",tr)}}},[Pt,ir]),(0,Ze.useEffect)(()=>{if(Pt&&Ct){let tr=function(zt,pr){Ct(zt,pr)};return Pt.on("beforeChange",tr),()=>{Pt.off("beforeChange",tr)}}},[Pt,Ct]),(0,Ze.useEffect)(()=>{if(Pt&&Br){let tr=function(){Br(Pt.getValue())};return Pt.on("blur",tr),()=>{Pt.off("blur",tr)}}},[Pt,Br]);function Wr(tr,zt){var pr=tr.getDoc(),kr=pr.getCursor(),Gr=pr.getLine(kr.line),Xr=Gr.charAt(kr.ch-1),dn=Gr.lastIndexOf("@\u2581@",kr.ch),mn=Gr.lastIndexOf("@\u2581\u2581@",kr.ch),on=dn>mn?dn:mn,jn=dn>mn?3:4;if(vr.indexOf(Xr)===-1)return null;if(console.log("change1:",zt,tr,Gr,kr,on,dn,mn,Xr),on>=0&&kr.ch-on<5){var kn=on+jn;return pr.replaceRange("",{line:kr.line,ch:on},{line:kr.line,ch:kn}),{line:kr.line,ch:kn}}return null}(0,Ze.useEffect)(()=>{if(Pt){let tr=function(zt,pr){const kr=zt.getValue();Sr(kr),ln(new Date().getTime()),zt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Rt&&(Mt?Rt(kr,Yr(kr)):Rt(kr))};return Pt.on("change",tr),()=>{Pt.off("change",tr)}}},[Pt,Rt]),(0,Ze.useEffect)(()=>{if(Pt)if(It==null)Pt.setValue(""),Sr("");else{const tr=window.scrollY||window.pageYOffset;It!==Pt.getValue()&&(Pt.setValue(It),Sr(It),Pt.setCursor(Dt?1:Pt.lineCount(),0),window.scrollTo(0,tr))}},[Pt,It]);const Tr=(0,Ze.useCallback)(tr=>{const zt=Pt.getCursor(),pr=Pt.getSelection();let kr=pr.split(`
`);switch(tr){case"bold":return Pt.replaceSelection("**"+pr+"**"),pr===""&&Pt.setCursor(zt.line,zt.ch+2),Pt.focus();case"italic":return Pt.replaceSelection("*"+pr+"*"),pr===""&&Pt.setCursor(zt.line,zt.ch+1),Pt.focus();case"code":return Pt.replaceSelection("`"+pr+"`"),pr===""&&Pt.setCursor(zt.line,zt.ch+1),Pt.focus();case"inline-latex":return en("inline-latex"),Pt.focus();case"latex":return Pt.replaceSelection("```latex\n"+pr+"\n```"),Pt.setCursor(zt.line+1,pr.length+1),Pt.focus();case"line-break":return Pt.replaceSelection(`<br/>
`),Pt.focus();case"list-ul":return pr===""?Pt.replaceSelection("- "+pr):Pt.replaceSelection(kr.map(Gr=>Gr===""?"":`- ${Gr}`).join(`
`)),Pt.focus();case"list-ol":return pr===""?Pt.replaceSelection("1. "+pr):Pt.replaceSelection(kr.map((Gr,Xr)=>Gr===""?"":`${Xr+1}. ${Gr}`).join(`
`)),Pt.focus();case"add-null-ch":return pr===""&&Pt.setCursor(zt.line,zt.ch),Pt.replaceSelection(Er),Pt.focus();case"add-signal":return pr===""&&Pt.setCursor(zt.line,zt.ch),Pt.replaceSelection(Ht),Pt.focus();case"add-multiple":return pr===""&&Pt.setCursor(zt.line,zt.ch),Pt.replaceSelection(vr),Pt.focus();case"inster-template-1":return pr===""&&Pt.setCursor(zt.line,zt.ch),Pt.replaceSelection(er),Pt.focus();case"eraser":return Pt.setValue(""),Pt.focus();case"trigger-watch":return ur(!ir),Pt.focus();case"trigger-full-screen":return Fr(!xr),Pt.focus();case xt:en(xt);return;case dt:en(dt);return;case Et:en(Et);return;case pt:en(pt);return;case"maths-latex":en("maths-latex");return;case gt:zr.current="",sessionStorage.removeItem("file_id"),en(gt);return;case bt:en(bt);return;default:throw new Error}},[Pt,ir,xr]),Qr=(0,Ze.useCallback)((tr,zt)=>{var pr,kr,Gr,Xr,dn,mn;tr!=null&&tr.disabledClose||en("");const{src:on,alt:jn,id:kn}=tr||{};switch(Ur){case xt:const{title:ti,link:Un}=tr;return Pt.replaceSelection(`[${ti}](${Un})`),Pt.focus();case dt:const{language:li,content:Li}=tr;return Pt.replaceSelection(["```"+li,Li,"```"].join(`
`)),Pt.focus();case"maths-latex":for(var Bn=atob(tr),Xn=new Uint8Array(Bn.length),Gn=0;Gn<Bn.length;Gn++)Xn[Gn]=Bn.charCodeAt(Gn);var Hn=new Blob([Xn],{type:"image/png"});(0,rt.I)(Hn,Ln=>{Ln.id?Pt.replaceSelection(`![,](/api/attachments/${Ln.id}?type=${Ln.content_type})`):(Ln==null?void 0:Ln.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Pt.replaceSelection("`$$"+tr+"$$`");break;case mt:if(!kn)return;Pt.getValue().indexOf(on)===-1?Pt.replaceSelection(`<center><img id="${kn}" width="80%" src="${on}" class="draw-flowchart" alt="${jn||""}" /></center>`):document.getElementById(kn).src=Ie.Z.API_SERVER+on+"?t="+Date.now();break;case Et:case pt:const In=zt,bi=(Gr=(kr=(pr=In==null?void 0:In.name)==null?void 0:pr.split("."))==null?void 0:kr.pop)==null?void 0:Gr.call(kr);return((Xr=In==null?void 0:In.type)==null?void 0:Xr.indexOf("image"))>-1||!(In!=null&&In.type)?In!=null&&In.align||In!=null&&In.width?Pt.replaceSelection(`<p style="text-align:${In.align||"initial"}"><img width="${In.width?In.width+"%":"initial"}" src="${on}" alt="${jn||""}" /></p>`):Pt.replaceSelection(`<img width="100%" src="${on}" alt="${jn||""}" />`):((dn=In==null?void 0:In.type)==null?void 0:dn.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="${on}"></video>`):((mn=In==null?void 0:In.type)==null?void 0:mn.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="${on}?type=${In.type}&disposition=inline" target="_blank">${In.name}</a>`):or.includes(bi)?Pt.replaceSelection(`<a href="${on}?type=office&disposition=inline" target="_blank">${In.name}</a>`):Pt.replaceSelection(`[${In.name}](${on})`),Pt.focus();case bt:const{row:mi,col:Fi,align:wi}=tr;let Wi=`
`;for(let Ln=0;Ln<mi;Ln++){let Pi=[],qi=[];for(let ea=0;ea<Fi;ea++)Ln===1&&qi.push(At[wi]),Pi.push(" ");Ln===1&&(Wi+=`| ${qi.join(" | ")} |
`),Wi+=`| ${Pi.join(Fi===1?"":" | ")} |
`}return Pt.replaceSelection(Wi+`
`),Pt.focus();default:throw new Error}},[Pt,Ur]),yn=(0,Ze.useMemo)(()=>{switch(Ur){case xt:return Ze.createElement(et,{callback:Qr,onCancel:Sn});case dt:return Ze.createElement(nt.Z,{callback:Qr,onCancel:Sn});case Et:return Ze.createElement(rt.Z,{callback:Qr,onCancel:Sn});case gt:return Ze.createElement(ce,{editImgId:zr.current,callback:Qr,onCancel:Sn});case bt:return Ze.createElement(Ue,{callback:Qr,onCancel:Sn});case"maths-latex":return Ze.createElement(vt,{showSaveButton:!0,callback:Qr});case"inline-latex":return Ze.createElement(kt.Z,{showSaveButton:!0,callback:Qr});default:return null}},[Ur]);function Sn(){en("")}(0,Ze.useEffect)(()=>{if(dr.current){let tr=function(dn){Gr=!0,Xr=dn.pageY},zt=function(){Gr=!1},pr=function(dn){if(Gr){let mn=dn.pageY-Xr;mn<0&&(mn=0),mn>300&&(mn=300);let on=Vt+mn+"px";nn(on)}},kr=dr.current,Gr=!1,Xr=0;return kr.addEventListener("mousedown",tr),document.addEventListener("mousemove",pr),document.addEventListener("mouseup",zt),()=>{kr.removeEventListener("mousedown",tr),document.removeEventListener("mousemove",pr),document.removeEventListener("mouseup",zt)}}},[Pt,dr]),(0,Ze.useEffect)(()=>{nn(Vt)},[Vt]);const $r=hr(Bt),Cn=hr(gn),pn={width:$r,height:Cn},bn=(0,Ze.useMemo)(()=>{if(un){let tr=new Date(un),zt=tr.getHours(),pr=tr.getMinutes(),kr=tr.getSeconds();return zt=zt<10?"0"+zt:zt,pr=pr<10?"0"+pr:pr,kr=kr<10?"0"+kr:kr,`${zt}:${pr}:${kr}`}return 0},[un]),Yr=tr=>{const zt=[];if(Mt){let pr=-1;tr=tr.replace(/(@▁▁@|@▁@)/g,function(kr,Gr,Xr){zt.push({multiLine:kr!==Ht})})}return zt};function wn(){window.sessionStorage.removeItem(Pr),Mn(!1),ln(0)}function tn(){Mn(!1),ln(0),Pt.setValue(window.sessionStorage.getItem(Pr))}(0,Ze.useEffect)(()=>{Jt[Ur]&&Ur!==pt&&Ur!==gt&&setTimeout(()=>{const tr=document.getElementsByClassName("markdown-popup-form")[0],zt=window.innerWidth/2-tr.offsetWidth/2,pr=window.innerHeight/2-tr.offsetHeight/2;_n(zt),En(pr)},0)},[Ur]);const fr=tr=>{tr.preventDefault();const zt=tr.clientX-xn,pr=tr.clientY-Dn;document.body.onmousemove=kr=>{let Gr=kr.clientX-zt,Xr=kr.clientY-pr;const dn=document.getElementsByClassName("markdown-popup-form")[0],mn=window.innerWidth-dn.offsetWidth,on=window.innerHeight-dn.offsetHeight;Gr=Math.max(0,Math.min(Gr,mn)),Xr=Math.max(0,Math.min(Xr,on)),Cr(kr.clientX,kr.clientY,zt,pr)&&(_n(Gr),En(Xr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Cr=(tr,zt,pr,kr)=>{const Gr=document.body.clientHeight,Xr=document.body.clientWidth;return tr<20&&pr>tr||tr>Xr-20&&pr<tr||zt<20&&kr>zt||zt>Gr-20&&kr<zt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ze.createElement(Ze.Fragment,null,Ze.createElement("div",{className:"markdown-editor-wrapper",ref:On},Ze.createElement("div",{className:`markdown-editor-container ${ar} ${ir?"on-preview":""} ${lr?"mini":""} ${xr?"full-screen":""}`,style:pn},Ze.createElement(Pe,{insertTemp:Or,watch:ir,fullScreen:xr,showNullButton:qt,showNullProgramButton:Mt,onActionCallback:Tr,hidetoolBar:cr,extraUse:Mr}),Ze.createElement("div",{className:"markdown-editor-body"},Ze.createElement("div",{className:"codemirror-container"},Ze.createElement("textarea",{ref:cn,placeholder:rr})),ir?Ze.createElement("div",{ref:Rr,className:"preview-container"},_r==="stex"&&Ze.createElement(x,{value:Gt}),_r!=="stex"&&Ze.createElement(de.Z,{edit:!0,disabledFill:Yt,showProgramFill:Mt,value:Gt,openEditor:tr=>{var zt;zr.current=tr,(zt=Kr.current)==null||zt.setHeight("100vh"),setTimeout(()=>{en("add-flowchart")},150)}})):null))),Dr?Ze.createElement("a",{ref:dr,className:"editor-resize"}):null,Ur===pt&&Ze.createElement(Qe,{callback:Qr,onCancel:Sn}),Ur===gt&&Ze.createElement(ce,{ref:Kr,editImgId:zr.current,callback:Qr,onCancel:Sn}),Ze.createElement(_e.Z,null,Jt[Ur]&&Ur!==pt&&Ur!==gt?Ze.createElement(Xe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:xn,top:Dn},title:Ze.createElement("div",{style:{cursor:"move"},onMouseDown:fr},Jt[Ur]),open:!0,onCancel:Sn,footer:null,destroyOnClose:!0,width:Ur===gt?"1200px":null,height:Ur===gt?"80vh":null,className:"markdown-popup-form"},yn):null))}},45596:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return Te},I:function(){return _e}});var Ze=ze(28284),yt=ze(6767),y=ze(37568),Se=ze(77736),ye=ze(71051),E=ze(47889),z=ze(99571),oe=ze(67303),se=ze(59301),ee=ze(59301),de=Object.defineProperty,x=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,he=(be,xe,Ae)=>xe in be?de(be,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):be[xe]=Ae,pe=(be,xe)=>{for(var Ae in xe||(xe={}))ae.call(xe,Ae)&&he(be,Ae,xe[Ae]);if(re)for(var Ae of re(xe))ue.call(xe,Ae)&&he(be,Ae,xe[Ae]);return be},me=(be,xe)=>x(be,te(xe));const{useForm:fe}=Ze.default,ve={width:280,marginRight:10},ke={labelCol:{span:5},wrapperCol:{span:19}};var Te=({callback:be,onCancel:xe})=>{const[Ae]=fe();let Me=(0,se.useRef)();function Be(He){Me.current.width=Ae.getFieldValue("width"),Me.current.align=Ae.getFieldValue("align"),be(He,Me.current)}function Ce(He,Ke){if(He.status===-1){yt.ZP.error(He.message);return}Ae.setFieldsValue({src:`/api/attachments/${He.id}`,type:Ke.type})}function De(He){let Ke=He.target.files[0];Me.current=Ke,_e(Ke,Ce)}return ee.createElement(Ze.default,me(pe({form:Ae},ke),{className:"upload-image-panel",onFinish:Be,style:{width:470,overflow:"hidden"}}),ee.createElement(Ze.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(Ze.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(y.default,{style:ve})),ee.createElement(Pe,{onFileChange:De}))),ee.createElement(Ze.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(y.default,{style:{width:264}})),ee.createElement(Ze.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(Se.Z,null,ee.createElement(Ze.default.Item,{name:"width",style:{margin:0}},ee.createElement(ye.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(Ze.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(E.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"}]})),ee.createElement("aside",null,ee.createElement(Ze.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(z.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(z.ZP,{type:"default",onClick:xe},"\u53D6\u6D88"))))};function Pe({onFileChange:be}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:be}))}function _e(be,xe){if(!be)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ae=new FormData;Ae.append("editormd-image-file",be),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(Be){xe(JSON.parse(Be.target.responseText),be)},!1),Me.addEventListener("error",function(Be){console.error(Be)},!1),Me.open("POST",`${oe.KI}/api/attachments.json`),Me.send(Ae)}},75790:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return y}});var Ze=ze(59301),yt=ze(4676);class y extends Ze.Component{constructor(ye){super(ye);const E=window.document;this.node=E.createElement("div"),E.body.appendChild(this.node)}render(){const{children:ye}=this.props;return(0,yt.createPortal)(ye,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},51124:function(Lt,Ot,ze){"use strict";ze.d(Ot,{SV:function(){return ut},ZP:function(){return Qe}});var Ze=ze(59301),yt=ze(76374);const y={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"]},Se={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"]},ye={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(`
`)}]},E={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(`
`)}]},z={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 oe=ze(53184),se=ze.n(oe),ee=(st,$e,Ne)=>new Promise((je,ne)=>{var ce=we=>{try{Fe(Ne.next(we))}catch(Ee){ne(Ee)}},Ie=we=>{try{Fe(Ne.throw(we))}catch(Ee){ne(Ee)}},Fe=we=>we.done?je(we.value):Promise.resolve(we.value).then(ce,Ie);Fe((Ne=Ne.apply(st,$e)).next())});const de={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"]}},x=(st,$e,Ne,je)=>{const ne=$e.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Ne.lineNumber,endColumn:Ne.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(Ie=>({label:Ie,kind:st.languages.CompletionItemKind.Text,insertText:Ie,range:je}))},te=(st,$e,Ne,je)=>{st.languages.registerCompletionItemProvider($e,{provideCompletionItems(ne,ce){const Ie=ne.getWordUntilPosition(ce),Fe={startLineNumber:ce.lineNumber,endLineNumber:ce.lineNumber,startColumn:Ie.startColumn,endColumn:Ie.endColumn},we=ne.getLineContent(ce.lineNumber).substring(Ie.startColumn-2,Ie.endColumn);return{suggestions:[...x(st,ne,ce,Fe),...Ne.map(Oe=>({label:Oe,kind:st.languages.CompletionItemKind.Keyword,documentation:Oe,insertText:Oe,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Fe})),...je.map(Oe=>({label:Oe.label,kind:st.languages.CompletionItemKind.Snippet,documentation:Oe.content,insertText:we.startsWith("#")?Oe.content.replace(/#/,""):Oe.content,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Fe}))]}}})};var re=st=>{de.languages.forEach($e=>{st.languages.registerDocumentFormattingEditProvider($e,{provideDocumentFormattingEdits(Ne){return ee(this,null,function*(){const je=se()(Ne.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:Ne.getFullModelRange(),text:je}]})}})}),te(st,"java",Se.keywords,Se.quickKey),te(st,"cpp",ye.keywords,ye.quickKey),te(st,"c",y.keywords,[]),te(st,"python",E.keywords,E.quickKey),te(st,"scala",z.keywords,z.quickKey)};const ae="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ue=Object.defineProperty,he=(st,$e,Ne)=>$e in st?ue(st,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):st[$e]=Ne,pe=(st,$e,Ne)=>he(st,typeof $e!="symbol"?$e+"":$e,Ne);const me=class Fl{constructor($e,Ne,je){this.placeholder=$e,this.editor=Ne,this.monaco=je,Ne.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Fl.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)}};pe(me,"ID","editor.widget.placeholderHint");var ve=me,ke=ze(96236),Te=ze(6767),Pe=ze(25399),_e=ze(89392),be=ze(33796),xe=ze(56102),Ae=Object.defineProperty,Me=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Ke=(st,$e,Ne)=>$e in st?Ae(st,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):st[$e]=Ne,Ye=(st,$e)=>{for(var Ne in $e||($e={}))De.call($e,Ne)&&Ke(st,Ne,$e[Ne]);if(Ce)for(var Ne of Ce($e))He.call($e,Ne)&&Ke(st,Ne,$e[Ne]);return st},it=(st,$e)=>Me(st,Be($e)),Re=(st,$e)=>{var Ne={};for(var je in st)De.call(st,je)&&$e.indexOf(je)<0&&(Ne[je]=st[je]);if(st!=null&&Ce)for(var je of Ce(st))$e.indexOf(je)<0&&He.call(st,je)&&(Ne[je]=st[je]);return Ne},We=(st,$e,Ne)=>new Promise((je,ne)=>{var ce=we=>{try{Fe(Ne.next(we))}catch(Ee){ne(Ee)}},Ie=we=>{try{Fe(Ne.throw(we))}catch(Ee){ne(Ee)}},Fe=we=>we.done?je(we.value):Promise.resolve(we.value).then(ce,Ie);Fe((Ne=Ne.apply(st,$e)).next())});function et(st){return/^\d+$/.test(st)?`${st}px`:st}function nt(){}let rt=!1;const Xe={"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 Je(st=[]){let $e=st;if(Array.isArray(st)){for(let Ne=0;Ne<st.length;Ne++){let je=Xe[st[Ne]];if(je)return je}return $e[0]}return Xe[$e]||$e}let Ve=null;const at=()=>We(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(st){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",st)}});var Qe=st=>{var $e=st,{width:Ne="100%",height:je="100%",value:ne,language:ce="javascript",style:Ie={},options:Fe={},overrideServices:we={},theme:Ee="vs-dark",onEditBlur:Oe,isCopy:Ue=!1,onSave:tt,autoHeight:Ge=!1,forbidCopy:ft=!1,onChange:ct=nt,editorDidMount:vt=nt,onFocus:kt=nt,onBreakPoint:xt=nt,breakPointValue:Et=[],filename:gt="educoder.txt",errorLine:pt,errorContent:mt="",highlightLine:dt,openBreakPoint:bt=!1,placeholder:wt="",showMiniMap:At=!0}=$e,jt=Re($e,["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 Zt=(0,Ze.useRef)(),Wt=(0,Ze.useRef)({}),$t=(0,Ze.useRef)(),Er=(0,Ze.useRef)(),vr=(0,Ze.useRef)([]),Ht=(0,Ze.useRef)(!1),er=(0,Ze.useRef)(),or=(0,Ze.useRef)(),hr=(0,Ze.useRef)(!1),[Qt,sr]=(0,Ze.useState)(!1);function Ir(){let qt;return Zt.current&&(qt=new yt.Z(Mt=>{for(let cr of Mt)(cr.target.offsetHeight>0||cr.target.offsetWidth>0)&&Wt.current.instance.layout()}),qt.observe(Zt.current)),qt}function Jt(){Te.ZP.warning({content:decodeURIComponent(ae),key:"monaco-editor-tip"})}const Kt=()=>{let qt=Wt.current.instance;if(ne!=null&&qt&&Qt){const Mt=qt.getModel();Mt&&ne!==Mt.getValue()&&(rt=!0,Mt.setValue(ne),qt.layout(),rt=!1)}};(0,Ze.useEffect)(()=>{const qt=be.Z.subscribe("formatDocument",Mt=>{var cr;let Ar=Wt.current.instance;(cr=Ar==null?void 0:Ar.getAction)==null||cr.call(Ar,"editor.action.formatDocument").run()});return window.updateMonacoValue=Mt=>{ct(Mt)},qt},[]),(0,Ze.useEffect)(()=>{var qt;let Mt=Wt.current.instance;Er.current&&clearTimeout(Er.current),Er.current=setTimeout(()=>{Kt()},500),ne&&(ne!=null&&ne.length)&&((qt=Mt==null?void 0:Mt.updateOptions)==null||qt.call(Mt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,Qt,Wt.current]),(0,Ze.useEffect)(()=>{if(pt&&Wt.current&&Wt.current.instance){let Mt=Wt.current.instance;Mt.changeViewZones(function(cr){var Ar=document.createElement("div");Ar.style.padding="10px 20px",Ar.style.width="calc(100% - 20px)",Ar.className="my-error-line-wrp",Ar.innerHTML=mt,cr.addZone({afterLineNumber:pt||11,heightInLines:3,domNode:Ar})});var qt={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}};Mt.addOverlayWidget(qt),Mt.revealPositionInCenter({lineNumber:20,column:1})}},[pt,Wt.current,Qt]);const It=(qt="",Mt)=>{if(!qt||qt.trim()==="")return!0;const Ar=Wt.current.instance.getModel().getLineTokens(Mt);let Br=!1;for(let Ct=0;Ct<2;Ct++)Ar.getStandardTokenType(Ct)===1&&(Br=!0);return Br};(0,Ze.useEffect)(()=>{var qt;const Mt=(qt=Wt.current)==null?void 0:qt.instance;if(Mt&&Qt&&ft){const cr=Mt.onDidBlurEditorWidget(()=>{hr.current=!1}),Ar=Mt.onDidFocusEditorText(()=>{hr.current=!0});return()=>{cr.dispose(),Ar.dispose()}}},[Wt.current,Qt,ft]),(0,Ze.useEffect)(()=>{var qt;if((qt=Wt.current)!=null&&qt.instance&&Qt&&bt){let Mt=Wt.current.instance,cr=Mt.getModel();if(!cr)return;(()=>{var Pt;let br=[],Gt=[];const Sr=cr.getAllDecorations();for(let ur of Sr)ur.options.className==="highlighted-line"&&(br.push((Pt=ur==null?void 0:ur.range)==null?void 0:Pt.startLineNumber),Gt.push(ur==null?void 0:ur.id));if(dt===br[0])return;cr.deltaDecorations(Gt,[]);const ir=cr.getLineCount();dt&&dt<=ir&&(Mt.deltaDecorations([],[{range:new Ve.Range(dt,1,dt,cr.getLineMaxColumn(dt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Mt.revealLineInCenter(dt))})();const Br=(Pt=!1)=>{var br;let Gt=[],Sr=[];const ir=cr.getAllDecorations();for(let ur of ir)ur.options.linesDecorationsClassName==="breakpoints-select"&&(Gt.push((br=ur==null?void 0:ur.range)==null?void 0:br.startLineNumber),Sr.push(ur==null?void 0:ur.id));if(Pt)return{lines:Gt,ids:Sr};xt(Gt)},Ct=Pt=>We(void 0,null,function*(){let br={range:new Ve.Range(Pt,1,Pt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield cr.deltaDecorations([],[br]),Br()}),Tt=Pt=>We(void 0,null,function*(){let br=[];const Gt=Mt.getLineDecorations(Pt);for(let Sr of Gt)Sr.options.linesDecorationsClassName==="breakpoints-select"&&br.push(Sr.id);yield cr.deltaDecorations(br,[]),Br()}),ar=Pt=>{let br=Mt.getLineDecorations(Pt);for(let Gt of br)if(Gt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,_e.isEqual)(Et,Br(!0).lines)){cr.deltaDecorations(Br(!0).ids,[]);const Pt=Et.map(br=>({range:new Ve.Range(br,1,br,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));cr.deltaDecorations([],Pt)}const Xt=Mt.onDidChangeModelContent(Pt=>{let br=Mt.getPosition();if(br){let Gt=br.lineNumber;clearTimeout(or.current),or.current=setTimeout(()=>{It(cr.getLineContent(Gt),Gt)?Tt(Gt):ar(Gt)?(Tt(Gt),Ct(Gt)):Br()},100)}}),Dt=Mt.onMouseDown(Pt=>{var br,Gt,Sr;if(Pt.target.detail&&((Sr=(Gt=(br=Pt.target)==null?void 0:br.element)==null?void 0:Gt.className)!=null&&Sr.includes("line-numbers"))){let ir=Pt.target.position.lineNumber;if(It(cr.getLineContent(ir),ir))return;ar(ir)?Tt(ir):Ct(ir)}}),Yt=Pt=>{let br={range:new Ve.Range(Pt,1,Pt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};vr.current=Mt.deltaDecorations(vr.current,[br])},rr=()=>{vr.current=Mt.deltaDecorations(vr.current,[])},gr=Mt.onMouseMove(Pt=>{var br,Gt,Sr;if(rr(),Pt.target.detail&&((Sr=(Gt=(br=Pt.target)==null?void 0:br.element)==null?void 0:Gt.className)!=null&&Sr.includes("line-numbers"))){let ir=Pt.target.position.lineNumber;if(It(cr.getLineContent(ir),ir))return;Yt(ir)}}),Mr=Mt.onMouseLeave(()=>{rr()});return()=>{Xt.dispose(),Dt.dispose(),gr.dispose(),Mr.dispose()}}},[Wt.current,Qt,Et,dt,bt,ce]),(0,Ze.useEffect)(()=>{var qt;(qt=Wt.current)!=null&&qt.instance&&bt&&Wt.current.instance.setPosition({lineNumber:0,column:0})},[dt]);function Rt(){let qt=Wt.current.instance;if(qt){const Mt=qt.getSelection(),cr=Wt.current.pastePos||{},Ar=new Ve.Range(cr.startLineNumber||Mt.endLineNumber,cr.startColumn||Mt.endColumn,cr.endLineNumber||Mt.endLineNumber,cr.endColumn||Mt.endColumn);setTimeout(()=>{qt.executeEdits("",[{range:Ar,text:""}])},300)}}function Bt(qt){(window.navigator.platform.match("Mac")?qt.metaKey:qt.ctrlKey)&&qt.keyCode==83&&(qt.preventDefault(),tt())}const Vt=()=>{if(Ge&&Wt.current.instance){const qt=Wt.current.instance.getContentHeight();Dr(qt<je?je:qt)}else Dr(je)};function lr(qt){var Mt=document.createEvent("MouseEvents");Mt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),qt.dispatchEvent(Mt)}const wr=qt=>{if(!hr.current)return;const{keyCode:Mt,ctrlKey:cr,metaKey:Ar,target:Br,type:Ct}=qt;return(Ct==="paste"||(Mt===67||Mt===86)&&(Ar||cr))&&Br.nodeName==="TEXTAREA"&&(Jt(),qt.preventDefault()),!1};function Ut(qt,Mt){var cr=window.URL||window.webkitURL||window,Ar=new Blob([Mt]),Br=document.createElementNS("http://www.w3.org/1999/xhtml","a");Br.href=cr.createObjectURL(Ar),Br.download=qt,lr(Br)}(0,Ze.useEffect)(()=>{Vt()},[Vt]),(0,Ze.useEffect)(()=>{Zt.current&&!Qt&&Promise.all([ze.e(8909),ze.e(5028)]).then(ze.bind(ze,71448)).then(qt=>{try{Ve=qt,Wt.current.instance=Ve.editor.create(Zt.current,{value:ne,language:Je(ce),theme:Ee,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:At||!1}},we);const Mt=Wt.current.instance;let Br=[...ke.BH._menuItems].find(Xt=>Xt[0]._debugName=="EditorContext")[1],Ct=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Tt=(Xt,Dt)=>{var Yt,rr;let gr=Xt._first;do Dt.includes((rr=(Yt=gr.element)==null?void 0:Yt.command)==null?void 0:rr.id)&&Xt._remove(gr);while(gr=gr.next)};if(vt(Mt,Ve),setTimeout(()=>{Vt(),Wt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ut(gt||"educoder.txt",Mt.getValue())}})},500),Wt.current.subscription=Mt.onDidChangeModelContent(Xt=>{Ht.current?clearTimeout(er.current):(Vt(),ct(Mt.getValue(),Xt)),er.current=setTimeout(()=>{Ht.current=!1},500)}),window.Monaco||re(Ve,Je(ce)),ft&&(Tt(Br,Ct),Zt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",wr),window.removeEventListener("paste",wr),window.addEventListener("keydown",wr),window.addEventListener("paste",wr)),window.Monaco=Ve,Oe&&Mt.onDidBlurEditorWidget(()=>{Oe(Mt.getValue())}),kt&&Mt.onDidFocusEditorText(()=>{ft&&at(),kt(Mt.getValue())}),ft){at();try{Mt.onDidPaste(Xt=>{const Dt=Mt.getSelection(),Yt=Wt.current.pastePos||{},rr=new Ve.Range(Yt.startLineNumber||Dt.endLineNumber,Yt.startColumn||Dt.endColumn,Yt.endLineNumber||Dt.endLineNumber,Yt.endColumn||Dt.endColumn);Mt.executeEdits("",[{range:Xt.range,text:""}])})}catch(Xt){}}let ar=Ir();return wt&&typeof wt=="string"&&new ve(wt,Mt,Ve),sr(!0),()=>{const Xt=Wt.current.instance;Xt.dispose();const Dt=Xt.getModel();Dt&&Dt.dispose(),Wt.current.subscription&&Wt.current.subscription.dispose(),ar.unobserve(Zt.current)}}catch(Mt){}})},[]),(0,Ze.useEffect)(()=>{if(Wt.current.instance&&Qt)return document.addEventListener("keydown",Bt,!1),()=>{document.removeEventListener("keydown",Bt)}},[tt,Qt]),(0,Ze.useEffect)(()=>{let qt=Wt.current.instance;if(qt&&Qt){let Mt=Je(ce);Ve.editor.setModelLanguage(qt.getModel(),Mt)}},[ce,Qt]),(0,Ze.useEffect)(()=>{Wt.current.instance&&Qt&&Ve.editor.setTheme(Ee)},[Ee,Qt]),(0,Ze.useEffect)(()=>{let qt=Wt.current.instance;$t.current=Fe,qt&&Qt&&(qt.updateOptions(Ye({},Fe)),setTimeout(()=>{qt.getModel().updateOptions(Ye({},Fe))},200))},[JSON.stringify(Fe),Qt]),(0,Ze.useEffect)(()=>{let qt=Wt.current.instance;qt&&Qt&&qt.layout()},[Ne,je,Qt]);const[Or,_r]=(0,Ze.useState)(et(Ne)),[Pr,Dr]=(0,Ze.useState)(et(je)),yr=it(Ye({},Ie),{width:Or,height:Pr,position:"relative"});return Ze.createElement("div",{className:"my-monaco-editor",ref:Zt,style:yr},Ue&&Ze.createElement(xe.CopyToClipboard,{text:ne,onCopy:()=>Te.ZP.success("\u590D\u5236\u6210\u529F")},Ze.createElement(Pe.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ze.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ze.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ut({width:st="100%",height:$e="100%",original:Ne,modified:je,language:ne,options:ce={}}){const Ie=(0,Ze.useRef)(),[Fe,we]=(0,Ze.useState)(null);function Ee(Ge){let ft;return Ie.current&&(ft=new yt.Z(ct=>{for(let vt of ct)(vt.target.offsetHeight>0||vt.target.offsetWidth>0)&&Ge.layout()}),ft.observe(Ie.current)),ft}(0,Ze.useEffect)(()=>(Ie.current&&Promise.all([ze.e(8909),ze.e(9404)]).then(ze.bind(ze,2550)).then(Ge=>{Ve=Ge;const ft=Ve.editor.createDiffEditor(Ie.current,it(Ye({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},ce),{wordWrap:!0}));we(ft);let ct=Ee(ft);return()=>{ft.dispose();const vt=ft.getModel();vt&&vt.dispose(),ct.unobserve(Ie.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ze.useEffect)(()=>{Fe&&Fe.setModel({original:Ve.editor.createModel(Ne,ne),modified:Ve.editor.createModel(je,ne)})},[Ne,je,ne,Fe]);const Oe=et(st),Ue=et($e),tt={width:Oe,height:Ue};return Ze.createElement("div",{className:"my-diff-editor",ref:Ie,style:tt})}},64536:function(Lt,Ot,ze){"use strict";var Ze=ze(45298),yt=ze(82326),y=ze(71411),Se=ze(59301);const ye=yt.default.Option;Ot.Z=({isTheoretical:E,onFontSizeChange:z,cmFontSize:oe,cmCodeMode:se,autoFormat:ee,onCodeModeChange:de,onTabToSpace:x,onAutoFormat:te,formatDocument:re,className:ae="",tabToSpace:ue,children:he,code_editor:pe,challenge:me,shixun_environment_id:fe,shixun_environments:ve})=>{var ke;const Te={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Pe=(ke=ve==null?void 0:ve.find(_e=>_e.shixun_environment_id===fe))==null?void 0:ke.program_language;return console.log("----",Pe,ve,fe,pe),Se.createElement("div",{className:`tpi-code-setting ${ae}`},Se.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),Se.createElement("section",null,Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),Se.createElement(yt.default,{bordered:!1,size:"small",value:se,onChange:de},Se.createElement(ye,{value:"vs"},"\u767D\u8272\u80CC\u666F"),Se.createElement(ye,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!E&&Se.createElement(Se.Fragment,null,Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),Se.createElement(yt.default,{bordered:!1,size:"small",value:oe,onChange:z},Se.createElement(ye,{value:12},"12px"),Se.createElement(ye,{value:14},"14px"),Se.createElement(ye,{value:16},"16px"),Se.createElement(ye,{value:18},"18px"),Se.createElement(ye,{value:20},"20px"),Se.createElement(ye,{value:22},"22px"))),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"Tab\u8F6C\u6362"),Se.createElement(y.Z,{checked:ue,onChange:x})),Se.createElement("div",{className:"file-item",onClick:re},Se.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!E&&Se.createElement(Se.Fragment,null,Se.createElement("h3",null,"\u5FEB\u6377\u952E"),Se.createElement("section",null,Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),Se.createElement("span",null,"Ctrl + S")),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),Se.createElement("span",null,"F1 / Alt + F1")),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),Se.createElement("span",null,"Ctrl + ]/[")),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),Se.createElement("span",null,"Ctrl + Shift + \\")),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),Se.createElement("span",null,"Home")),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),Se.createElement("span",null,"End"))),he),!E&&Se.createElement(Se.Fragment,null,Se.createElement("h3",null,"\u5FEB\u6377\u952E"),Se.createElement("section",null,Pe&&Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),Se.createElement("span",null,Pe)),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),Se.createElement("span",null,Te[me==null?void 0:me.difficulty])),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),Se.createElement("span",null,pe==null?void 0:pe.name)),Se.createElement("div",{className:"file-item"},Se.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),Se.createElement("span",null,pe!=null&&pe.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},929:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return x}});var Ze={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"},yt=ze(29787),y=ze(25399),Se=ze(60242),ye=ze(92310),E=ze.n(ye),z=ze(49661),oe=ze(57884),se=ze(34055),ee=ze(59301),x=({className:te,dataSource:re=[],col:ae=4,right:ue,bottom:he=23,precision:pe=0,wrapWidth:me=1200,trackEventItems:fe,loading:ve,onRemove:ke=()=>{},isCurrent:Te=!0,showProgress:Pe=!1,showAlias:_e=!1})=>{const be=Math.floor((me-(ae-1)*ue)/ae),xe=[{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 ee.createElement(yt.Z,{spinning:ve},ee.createElement("div",{className:E()(Ze.list,te)},!!(re!=null&&re.length)&&(re==null?void 0:re.map((Ae,Me)=>{var Be,Ce,De,He,Ke,Ye;const{name:it,id:Re,identifier:We,featured:et,school_name:nt,image_url:rt,excellent:Xe,is_plan:Je}=Ae;return ee.createElement("div",{key:Re,className:Te&&Pe?Ze.wrapisCurrent:Ze.wrap,style:{width:be,marginRight:(1+Me)%ae===0?0:ue+pe,marginBottom:he}},ee.createElement("a",{className:Ze.li,onClick:Ve=>{Ve.preventDefault(),Ve.stopPropagation(),fe&&(0,z.L9)([fe]),(0,z.xg)(`/paths/${We}`)}},ee.createElement("div",{className:Ze.img},ee.createElement("img",{className:Ze.cover,src:`${rt}`}),Te&&(0,se.bg)()&&(Ae==null?void 0:Ae.studying)&&ee.createElement("div",{className:`${Ze.movebq} user-path-items`,onClick:Ve=>{Ve.stopPropagation(),ke(Ae)}},ee.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ee.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Be=Ae==null?void 0:Ae.subject_tags)==null?void 0:Be.map((Ve,at)=>{var Qe,ut;if(at===0){const $e=(Qe=xe.find(Ne=>Ne.name==Ve))==null?void 0:Qe.swimg;return ee.createElement("img",{className:Ze.sign,src:$e,style:{left:"-4px"}})}const st=(ut=xe.find($e=>$e.name==Ve))==null?void 0:ut.ptimg;return ee.createElement("img",{className:Ze.sign,src:st,style:{left:`${48+52*(at-1)+2*at}px`}})}),ee.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ae==null?void 0:Ae.excellent)&&ee.createElement("div",{className:Ze.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ee.createElement("div",{className:Ze.name},ee.createElement(y.Z,{title:_e&&(Ae!=null&&Ae.excellent_alias_name)?ee.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${it}`,ee.createElement("br",null),ee.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ae==null?void 0:Ae.excellent_alias_name}`)):it},ee.createElement("span",{className:Ze.e},_e&&(Ae==null?void 0:Ae.excellent_alias_name)||it))),Te&&Pe&&((Ce=Ae==null?void 0:Ae.progress)==null?void 0:Ce.all_score)!=0&&ee.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ee.createElement(Se.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((De=Ae==null?void 0:Ae.progress)==null?void 0:De.my_score)/((He=Ae==null?void 0:Ae.progress)==null?void 0:He.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ke=Ae==null?void 0:Ae.progress)==null?void 0:Ke.my_score,"/",(Ye=Ae==null?void 0:Ae.progress)==null?void 0:Ye.all_score),(!Te||!Pe)&&ee.createElement(y.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${nt}`},ee.createElement("div",{className:Ze.unit},ee.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),nt)),(!Te||!Pe)&&ee.createElement("div",{className:Ze.tags},ee.createElement("div",null,ee.createElement(y.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ee.createElement("span",null,Ae.stages_count))),ee.createElement(y.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ee.createElement("span",null,Ae.members_count)))))))})),!re.length&&ee.createElement(oe.Z,null)))}},71360:function(Lt,Ot,ze){"use strict";ze.d(Ot,{jL:function(){return ye},w9:function(){return et},QD:function(){return pt},cQ:function(){return Ke.Z},op:function(){return ct},O5:function(){return Kt},_b:function(){return jt},t7:function(){return pe},Gi:function(){return at},YG:function(){return Je},qp:function(){return de},vr:function(){return bt},qE:function(){return xt},Je:function(){return ve},wb:function(){return He},cq:function(){return je},tp:function(){return re}});var Ze=ze(59301),yt={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"},y="data:image/png;base64,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",ye=({dataSource:It=[],img:Rt,imgWidth:Bt=346,title:Vt,sunTitle:lr,bannerExtraContent:wr})=>Ze.createElement("div",{className:yt.banner},Ze.createElement("div",{className:yt.content},Ze.createElement("aside",null,Ze.createElement("p",null,Ze.createElement("b",null,Vt),Ze.createElement("span",null,lr)),It.length>0&&Ze.createElement("div",{className:yt.btns},It.map((Ut,Or)=>Ze.createElement("div",{key:Or,onClick:Ut.click},Ut.name,Ut.sign?Ze.createElement("img",{src:y,width:39}):null))),wr),Rt&&Ze.createElement("img",{style:{marginTop:33,marginRight:38},src:Rt,width:Bt}))),E={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"},z=ze(92310),oe=ze.n(z),se=ze(89392),de=({dataSource:It=[],value:Rt,onChange:Bt,onTitleChange:Vt,className:lr,title:wr,titleWidth:Ut=41,style:Or={},fontColor:_r="#6A7283",showCount:Pr})=>{const[Dr,yr]=(0,Ze.useState)(0),[qt,Mt]=(0,Ze.useState)(!1),cr=(0,Ze.useRef)(null),Ar=(0,Ze.useRef)(null);return(0,Ze.useEffect)(()=>{var Br;It.length!==0&&(((Br=cr==null?void 0:cr.current)==null?void 0:Br.clientHeight)>97?yr(1):yr(0)),It.length===0&&yr(0),Mt(!1)},[It]),Ze.createElement("div",{className:oe()(E.row,lr),style:Or},Ze.createElement("div",{onClick:(0,se.throttle)(()=>Vt==null?void 0:Vt(),2e3),style:{width:Ut,marginTop:qt?12:4},className:`${E.title} ${Vt?"current":""}`},wr),Ze.createElement("div",{className:qt?`${E.tagsWrap} ${E.tagsBorderWrap}`:E.tagsWrap},Ze.createElement("div",{className:E.bar,ref:Ar,style:Dr>0?{height:Dr===1?97:"auto",overflow:Dr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Ze.createElement("div",{className:E.tag,ref:cr},It==null?void 0:It.map(Br=>Ze.createElement("span",{onClick:()=>Bt(Br.id),key:Br.id,style:{color:_r},className:Rt===Br.id?E.active:""},Ze.createElement("span",{title:Br.name,className:E.name},Br.name),!!Pr&&Ze.createElement("span",{className:E.num},Br.count))))),!!Dr&&Ze.createElement(Ze.Fragment,null,Dr===1?Ze.createElement("div",{onClick:()=>{var Br;yr(2),((Br=cr==null?void 0:cr.current)==null?void 0:Br.clientHeight)>245?Mt(!0):Mt(!1)},className:E.action},"\u5C55\u5F00",Ze.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Ze.createElement("div",{onClick:()=>{Ar.current.scrollTop=0,yr(1),Mt(!1)},className:E.action},"\u6536\u8D77",Ze.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},x={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"},re=({dataSource:It=[],value:Rt,onChange:Bt,className:Vt,style:lr={}})=>Ze.createElement("div",{style:lr,className:oe()(x.tabs,Vt)},It.map(wr=>Ze.createElement("span",{onClick:()=>Bt(wr.id),className:Rt===wr.id?x.active:"",key:wr.id},wr.name))),ae={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"},ue=ze(37568),pe=({dataSource:It=[],value:Rt="",onChange:Bt,onInputChange:Vt=()=>{},className:lr,style:wr={},placeholder:Ut,allowClear:Or=!1})=>{var _r;const[Pr,Dr]=(0,Ze.useState)(""),[yr,qt]=(0,Ze.useState)("");(0,Ze.useEffect)(()=>{var Ar;let Br=Rt;(Ar=JSON.stringify(Rt))!=null&&Ar.includes("{")&&(Dr(Rt.id),Br=Rt.value||"");try{qt(decodeURIComponent(Br||""))}catch(Ct){qt(decodeURIComponent(Br||""))}},[Rt]);const Mt=()=>{Bt(encodeURIComponent(yr),Pr||null)},cr=Ar=>{Ar!==Pr&&(Dr(Ar),Bt(encodeURIComponent(yr),Ar))};return Ze.createElement("div",{className:oe()(ae.input,lr),style:wr},!!It.length&&Ze.createElement("div",{className:ae.dropdown},Ze.createElement("div",{className:ae.text},(_r=It.find(Ar=>Ar.id===Pr))==null?void 0:_r.name,Ze.createElement("i",{className:"iconfont icon-zhankai4"}),Ze.createElement("b",{className:ae.b1}),Ze.createElement("b",{className:ae.b2})),Ze.createElement("div",{className:ae.menu},It.map((Ar,Br)=>Ze.createElement("div",{key:Br,onClick:()=>cr(Ar.id)},Ar.name)))),Ze.createElement(ue.default,{onPressEnter:Mt,value:yr,onChange:Ar=>{qt(Ar.target.value),Vt(encodeURIComponent(Ar.target.value),Pr||null)},placeholder:Ut,variant:"borderless",allowClear:Or,onClear:()=>Bt("",Pr||null)}),Ze.createElement("i",{onClick:Mt,className:"iconfont icon-sousuo9 font14 current"}))},me={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"},ve=({value:It,onChange:Rt,className:Bt,total:Vt,pageSize:lr,style:wr={}})=>{const Ut=It<2,Or=It>=Math.ceil(Vt/lr);return Vt<=lr?Ze.createElement(Ze.Fragment,null):Ze.createElement("div",{className:oe()(me.quickPager,Bt),style:wr},Ze.createElement("div",{onClick:()=>{Ut||Rt(It-1,"prev")},className:Ut?me.disabled:""},"\u4E0A\u4E00\u9875"),Ze.createElement("div",{onClick:()=>{Or||Rt(It+1,"next")},className:Or?me.disabled:""},"\u4E0B\u4E00\u9875"))},ke={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"},Te=ze(29787),Pe=ze(25399),_e=ze(58018),be=ze(90524),xe=ze(49661),Ae=ze(96908),Me=ze(57177),Be=ze(81378),Ce=ze(57884),He=({className:It,dataSource:Rt=[],col:Bt=4,right:Vt,bottom:lr=23,precision:wr=0,wrapWidth:Ut=1200,trackEventItems:Or,loading:_r})=>{const Pr=Math.floor((Ut-(Bt-1)*Vt)/Bt);return Ze.createElement(Te.Z,{spinning:_r},Ze.createElement("div",{className:oe()(ke.list,It)},!!Rt.length&&Rt.map((Dr,yr)=>{const{name:qt,id:Mt,identifier:cr,power:Ar,cover_image_id:Br,pic:Ct}=Dr;return Ze.createElement("div",{className:ke.wrap,key:Mt,style:{width:Pr,marginRight:(1+yr)%Bt===0?0:Vt+wr,marginBottom:lr}},Ze.createElement("a",{target:"_blank",href:`/shixuns/${cr}/challenges`,className:ke.li,onClick:Tt=>{Tt.preventDefault(),Or&&(0,xe.L9)([Or]),Ar&&(0,xe.xg)(`/shixuns/${cr}/challenges`)}},Ze.createElement("div",{className:ke.img},Ze.createElement("img",{className:ke.cover,src:`${Ct}`}),Dr.is_jupyter&&Ze.createElement("img",{className:ke.sign,src:Ae}),Dr.is_jupyter_lab&&Ze.createElement("img",{className:ke.sign,src:Me}),Dr.is_unity_3d&&Ze.createElement("img",{className:ke.sign,src:Be})),Ze.createElement("div",{className:ke.name},Ze.createElement(Pe.Z,{title:qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Ze.createElement("span",{className:ke.e},qt||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Ze.createElement("div",{className:ke.tags},Ze.createElement(Pe.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Ze.createElement("span",null,Ze.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Ze.createElement("span",null,Dr.challenges_count))),!!Dr.myshixuns_count&&Ze.createElement(Pe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ze.createElement("span",null,Ze.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Ze.createElement("span",null,Dr.myshixuns_count))),Ze.createElement(Pe.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Ze.createElement("span",null,Ze.createElement("span",null,Dr.level))),Ze.createElement("div",{className:ke.rate},Ze.createElement(_e.Z,{allowHalf:!0,disabled:!0,defaultValue:Dr.score_info}),Ze.createElement("span",null,"\xA0",Dr.score_info?`${Dr.score_info}\u5206`:"5\u5206")))),!Ar&&Ze.createElement("div",{className:ke.lockWrap},Ze.createElement("img",{src:`${be.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ze.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rt.length&&Ze.createElement(Ce.Z,null)))},Ke=ze(929),Ye={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"},it="data:image/png;base64,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",Re=ze(59301),et=({className:It,dataSource:Rt=[],col:Bt=4,right:Vt,bottom:lr=23,precision:wr=0,wrapWidth:Ut=1200,trackEventItems:Or,loading:_r,handleVery:Pr=()=>!0})=>{const Dr=Math.floor((Ut-(Bt-1)*Vt)/Bt);return Re.createElement(Te.Z,{spinning:_r},Re.createElement("div",{className:oe()(Ye.list,It)},!!Rt.length&&Rt.map((yr,qt)=>{const{subject_identifier:Mt,id:cr,identifier:Ar,power:Br}=yr,Ct=yr.is_public!=0&&yr.is_public;return Re.createElement("div",{className:Ye.wrap,key:cr,style:{width:Dr,marginRight:(1+qt)%Bt===0?0:Vt+wr,marginBottom:lr}},Re.createElement("a",{className:Ye.li,onClick:Tt=>{Tt.preventDefault(),Pr(yr==null?void 0:yr.first_category_url)&&(Or&&(0,xe.L9)([Or]),(0,xe.xg)(yr.first_category_url))}},Re.createElement("div",{className:Ye.top},Re.createElement(Pe.Z,{title:yr.name},Re.createElement("div",{className:Ye.name},yr.name)),Re.createElement("img",{className:Ye.img,src:be.Z.IMG_SERVER+"/images/"+yr.avatar_url}),Re.createElement("div",{className:Ye.text,title:yr.creator},yr.creator),Mt&&Re.createElement("div",{className:Ye.btns},Re.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Re.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ct&&Re.createElement("div",{className:Ye.sign},"\u516C\u5F00")),Re.createElement("div",{className:Ye.bottom},yr.visits>0&&Re.createElement(Pe.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-liulanyan"}),Re.createElement("span",null,yr.visits))),yr.course_members_count>0&&Re.createElement(Pe.Z,{title:"\u6210\u5458",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-chengyuan"}),yr.course_members_count)),yr.tasks_count>0&&Re.createElement(Pe.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-zuoye"}),yr.tasks_count)),yr.is_end?Re.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Re.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!yr.is_accessible&&Re.createElement("div",{className:Ye.lockWrap},Re.createElement("img",{src:`${be.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")))}),!Rt.length&&Re.createElement(Ce.Z,null)))},nt={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"},rt=ze(76560),Je=({dataSource:It=[],value:Rt,onChange:Bt,className:Vt,style:lr={},tabBarExtraContent:wr})=>Ze.createElement("div",{className:oe()(nt.tabs,Vt),style:lr},Ze.createElement("div",{className:nt.tabsWrap},It.map((Ut,Or)=>!(Ut!=null&&Ut.hide)&&Ze.createElement("aside",{className:nt.tab,onClick:()=>{Bt(Ut.id),Ut.link&&rt.history.push(Ut.link)},key:Or},Ze.createElement("div",{className:Rt===Ut.id?nt.active:""},Ut.name),(Ut==null?void 0:Ut.resetCount)==null&&(Ut==null?void 0:Ut.total)!==void 0&&Ze.createElement("span",null,"\uFF08",Ut==null?void 0:Ut.total,"\uFF09"),(Ut==null?void 0:Ut.resetCount)!==void 0&&(Ut==null?void 0:Ut.total)!==void 0&&Ze.createElement(Pe.Z,{title:(Ut==null?void 0:Ut.tip)!=null?Ut==null?void 0:Ut.tip:""},Ze.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Ze.createElement("span",{style:{color:"#000"}},Ut==null?void 0:Ut.resetCount),"/",Ze.createElement("span",null,Ut==null?void 0:Ut.total),"\uFF09"))))),Ze.createElement("div",{className:nt.tabBar},wr)),at=({className:It,style:Rt={},children:Bt})=>Ze.createElement("div",{className:oe()(It),style:Rt},Bt),Qe={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"},ut=ze(75727),st=ze(93041);const $e=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var je=({sortValue:It,dropValue:Rt,className:Bt,onSort:Vt,onDrop:lr,dataSource:wr=$e})=>{var Ut;return Ze.createElement("div",{className:oe()(Qe.orderWrap,Bt)},Ze.createElement(ut.Z,{dropdownRender:()=>Ze.createElement(st.default,null,wr.map((Or,_r)=>Ze.createElement(st.default.Item,{key:_r,onClick:()=>lr(Or.id)},Or.name)))},Ze.createElement("span",{className:Qe.orderTextWrap},(Ut=wr.find(Or=>Rt===Or.id))==null?void 0:Ut.name)),Ze.createElement("span",{className:Qe.orderIconWrap},Ze.createElement("span",{className:Qe.orderAsc},Ze.createElement("i",{className:It==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Qe.cursorPointer} ${Qe.active}`:`iconfont icon-sanjiaoxing-up font12 ${Qe.cursorPointer}`,onClick:()=>Vt(It==="asc"?"desc":"asc")})),Ze.createElement("span",{className:Qe.orderDesc},Ze.createElement("i",{className:It==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Qe.cursorPointer} ${Qe.active}`:`iconfont icon-sanjiaoxing-down font12 ${Qe.cursorPointer}`,onClick:()=>Vt(It==="asc"?"desc":"asc")}))))},ne={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"},ce=ze(99571),Ie=Object.defineProperty,Fe=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Oe=(It,Rt,Bt)=>Rt in It?Ie(It,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):It[Rt]=Bt,Ue=(It,Rt)=>{for(var Bt in Rt||(Rt={}))we.call(Rt,Bt)&&Oe(It,Bt,Rt[Bt]);if(Fe)for(var Bt of Fe(Rt))Ee.call(Rt,Bt)&&Oe(It,Bt,Rt[Bt]);return It},tt=(It,Rt)=>{var Bt={};for(var Vt in It)we.call(It,Vt)&&Rt.indexOf(Vt)<0&&(Bt[Vt]=It[Vt]);if(It!=null&&Fe)for(var Vt of Fe(It))Rt.indexOf(Vt)<0&&Ee.call(It,Vt)&&(Bt[Vt]=It[Vt]);return Bt},Ge=(It,Rt,Bt)=>new Promise((Vt,lr)=>{var wr=_r=>{try{Or(Bt.next(_r))}catch(Pr){lr(Pr)}},Ut=_r=>{try{Or(Bt.throw(_r))}catch(Pr){lr(Pr)}},Or=_r=>_r.done?Vt(_r.value):Promise.resolve(_r.value).then(wr,Ut);Or((Bt=Bt.apply(It,Rt)).next())}),ct=It=>{var Rt=It,{className:Bt,style:Vt,children:lr,loading:wr=!1,openLoading:Ut,onClick:Or=()=>{},size:_r="middle",shape:Pr="round"}=Rt,Dr=tt(Rt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[yr,qt]=(0,Ze.useState)(!1);return Ze.createElement(ce.ZP,Ue({onClick:(0,se.throttle)(Mt=>Ge(void 0,null,function*(){Ut&&qt(!0);try{yield Or(Mt)}catch(cr){console.log("error",cr)}Ut&&qt(!1)}),2e3,{leading:!0,trailing:!1}),className:oe()(ne.btn,ne[`${_r}-${Pr}`],Bt),style:Vt,size:_r,shape:Pr,loading:yr||wr},Dr),lr)},vt={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"},xt=({className:It,style:Rt,children:Bt=null,onClick:Vt,title:lr})=>Ze.createElement("div",{className:oe()(vt.head,It),style:Rt},Ze.createElement("span",{className:"primary-hover",onClick:Vt},Ze.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Ze.createElement("b",{title:lr},lr),Ze.createElement("div",{className:vt.node},Bt)),Et={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},pt=({confirmShow:It=!0,confirmTitle:Rt,confirmClick:Bt,cancelShow:Vt=!0,cancelTitle:lr,cancelClick:wr,className:Ut,style:Or,confirmLoading:_r=!1})=>Ze.createElement("div",{className:oe()(Et.btns,Ut),style:Or},It&&Ze.createElement(ce.ZP,{loading:_r,onClick:Bt,type:"primary",className:Et.confirm},Rt),Vt&&Ze.createElement(ce.ZP,{onClick:wr,className:Et.cancel},lr)),mt={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"},bt=({className:It,style:Rt={},LeftContent:Bt,children:Vt,RightContent:lr})=>Ze.createElement("div",{className:oe()(mt.fixedBottom,It),style:Rt},Ze.createElement("div",{className:mt.wrap},Ze.createElement("div",{className:mt.left},Bt),Ze.createElement("div",{className:mt.center},Vt),Ze.createElement("div",{className:mt.right},lr))),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"},jt=({className:It,style:Rt={},dataSource:Bt=[]})=>Ze.createElement("div",{className:oe()(wt.crumbs,It),style:Rt},Bt.map((Vt,lr)=>lr<Bt.length-1?Ze.createElement(Ze.Fragment,{key:lr},Vt.path||Vt.onClick?Ze.createElement("span",{className:wt.hover,onClick:Vt!=null&&Vt.onClick?Vt.onClick:()=>rt.history.push(Vt.path)},Vt.name):Ze.createElement("span",null,Vt.name),Ze.createElement("span",null,"\xA0",">","\xA0")):Ze.createElement("span",{key:lr,style:{color:"#5F6368"}},Vt.name))),Zt=ze(11938),Wt=Object.defineProperty,$t=Object.defineProperties,Er=Object.getOwnPropertyDescriptors,vr=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,or=(It,Rt,Bt)=>Rt in It?Wt(It,Rt,{enumerable:!0,configurable:!0,writable:!0,value:Bt}):It[Rt]=Bt,hr=(It,Rt)=>{for(var Bt in Rt||(Rt={}))Ht.call(Rt,Bt)&&or(It,Bt,Rt[Bt]);if(vr)for(var Bt of vr(Rt))er.call(Rt,Bt)&&or(It,Bt,Rt[Bt]);return It},Qt=(It,Rt)=>$t(It,Er(Rt)),sr=(It,Rt)=>{var Bt={};for(var Vt in It)Ht.call(It,Vt)&&Rt.indexOf(Vt)<0&&(Bt[Vt]=It[Vt]);if(It!=null&&vr)for(var Vt of vr(It))Rt.indexOf(Vt)<0&&er.call(It,Vt)&&(Bt[Vt]=It[Vt]);return Bt};const{Countdown:Ir}=Zt.default;var Kt=It=>{var Rt=It,{onChange:Bt}=Rt,Vt=sr(Rt,["onChange"]);const[lr,wr]=(0,Ze.useState)(null);(0,Ze.useEffect)(()=>{typeof lr=="number"&&lr>=0&&Bt(lr)},[lr]);const Ut=Or=>{const _r=Math.floor(Or/1e3);wr(_r)};return Ze.createElement(Ir,Qt(hr({},Vt),{onChange:Ut}))}},17904:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return yt}});var Ze=ze(59301);function yt(y,Se){const ye=(0,Ze.useRef)();(0,Ze.useEffect)(()=>{ye.current=y}),(0,Ze.useEffect)(()=>{function E(){ye.current()}if(Se!==null){let z=setInterval(E,Se);return()=>clearInterval(z)}},[Se])}},33101:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return Ae}});var Ze=ze(59301),yt=ze(28284),y=ze(30641),Se=ze(62957),ye=ze(6767),E=ze(62673),z=ze(51124),oe=ze(64536),se=ze(75790),ee=ze(89613),de={"code-panel-container":"code-panel-container___RFtv_","action-oj-bar":"action-oj-bar___ByFmZ",active:"active___s9gT5",tip:"tip___XZhl7"},x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAcCAYAAAAJKR1YAAAAAXNSR0IArs4c6QAAA8pJREFUWEfdl1toHUUYx//f7p7LbnIuSU4bk2JqS3qxbTA9FsQXBamJNMVS8CEPAfGhakQFUaHQh2Kp4IPgBfTBBx9UUHyQGgslscGCIr2QHlpfWg1pktPW0rTunvttdqadTY85yUmTTXJSwe9pZ3dm/r/5f8PMtzQYs96FwEEI0Yj/KojGVUV5Y3dn8DgNnrduV8IQAWtCXty0iggYGmybI1vgiIS8MFNF2Hx1qInoRFc0vIcGR0xRKaEqQGuTH/GpPBqDHjDGkczaWBfxOZAlNqt77eiIznZHw09UAWkqIaCrEKDaiVXNJJDMMPDKtc0HJBE624PwaMoqwkxPnciUcDmemdGZD8irETrbQ6sOIwVKjCM2mvyfAp25VsTjLV7Ml9kEB0gAQXVho2vm0MCfOXwxksbeTTpe3VU/S5UBOJ6afvWMsTBUTYDKMA/Vq/hgdxgRvXrzT5SA03nAtwjUioHcwJTtcgO1IqClwLiFWjYQ48BbQyaumAz7thg4EK1zdSwUBPBzFkhz4DEv8KjMYUUsG0jOkSoIHPrFwpjJ0LujDn0dxoJQEuZUFjA5sN0HdHiru68IaClQbmBqdjBWOtXXUYfeHbOdkvfu8Bxn4qyAj1Pj2KgZ6NEjeETTHbtW7FDZdAl19NcEXuysx7aIVpWLWB7OgVlOk31X/JD1F+IsBxWE/kAbnvSFage02I5mEBhjOWzWZtyT7cPWKDgEfKTgw4atCHDlwdxl54pJfJqcwJFwOzbcS49cxDeZv3EiN+Wsp9dowXPepgcD9GP2Jr7P3kCbpuNoeBPKV9rZYgKfJCccoKf9jXjJ37o4kELT9ZAmy8ZlxnD+H3yZvuqM3m804wWjGb8VLHyVuY4Ml7cdsFdfix6K4NJkekblfhWjz6MgWFe9Wd3ymcTwkTqOcultQEUWcmvPxAF7HYJJDcyuKBkrgBIAgm4F3fQ7bSRwxpDTzh99ZguabM/sj0Qnu6PhZ2loxHpfEN6GEHMOdzfS9+8T01OQYEWq/k1pK/mxP7H238FEZAlQf3c09J1Tyf8eF3ohm1r0kmJ58R5n/DW3qNwvXvmh3hzLodBqonREAOvLY0PQ3nw5//C3sh3YHEjsIirJZ9e/FsPnc+sZCpeX5CTRaNPO0DYptmfy4lMATkEIR5MASzV8bQNrtt4r6aZRXQMNxcyvBUefW3fK/UhRXu/aGfpMtnsmL3wuBPodYcJ1TyC4/VjDBqtyTldAJ/9IN/MiOyYISz4PCOJGV7RhnxR9fupSwM4VBwBMKJrvnZ9at9yau8A7ulgdO7eZq+0AAAAASUVORK5CYII=",te=ze(89392),re=ze(71360),ae=ze(59301),ue=Object.defineProperty,he=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,ke=(Be,Ce,De)=>Ce in Be?ue(Be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:De}):Be[Ce]=De,Te=(Be,Ce)=>{for(var De in Ce||(Ce={}))fe.call(Ce,De)&&ke(Be,De,Ce[De]);if(me)for(var De of me(Ce))ve.call(Ce,De)&&ke(Be,De,Ce[De]);return Be},Pe=(Be,Ce)=>he(Be,pe(Ce));const _e={theme:(0,ee.G)("cmCodeMode","vs-dark"),fontSize:(0,ee.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,ee.G)("cmTabToSpace",!0)};var be=(Be=>(Be[Be.set_font_size=0]="set_font_size",Be[Be.set_theme=1]="set_theme",Be[Be.on_tab_to_space=2]="on_tab_to_space",Be[Be.set_show_editor_setting=3]="set_show_editor_setting",Be))(be||{});function xe(Be,Ce){switch(Ce.type){case 3:return Pe(Te({},Be),{showEditorSetting:Ce.payload});case 1:return Pe(Te({},Be),{theme:Ce.payload});case 0:return Pe(Te({},Be),{fontSize:Ce.payload});case 2:return Pe(Te({},Be),{tabToSpace:Ce.payload});default:throw new Error}}var Ae=({isLoading:Be,value:Ce=[],onChange:De,form:He})=>{var Ke;const[Ye,it]=(0,Ze.useReducer)(xe,_e),{theme:Re,fontSize:We,showEditorSetting:et,tabToSpace:nt}=Ye,[rt,Xe]=(0,Ze.useState)("C"),[Je,Ve]=(0,Ze.useState)(!1),[at,Qe]=(0,Ze.useState)([]),ut=(0,Ze.useRef)([]),st=yt.default.useWatch(["hack","languages"],He);(0,Ze.useEffect)(()=>{Ce!=null&&Ce.length&&(ut.current=(0,te.cloneDeep)(Ce))},[Ce]),(0,Ze.useEffect)(()=>{Je&&Qe(st)},[Je]),(0,Ze.useEffect)(()=>{Xe(st==null?void 0:st[0])},[st]);const $e={onFontSizeChange:Fe=>{it({type:0,payload:Fe}),(0,ee.t)("cmFontSize",Fe)},tabToSpace:nt,cmFontSize:We,className:"oj",cmCodeMode:Re,onTabToSpace:Fe=>{it({type:2,payload:Fe}),(0,ee.t)("cmTabToSpace",Fe)},onCodeModeChange:Fe=>{it({type:1,payload:Fe}),(0,ee.t)("cmCodeMode",Fe)}};function Ne(){it({type:3,payload:!1})}function je(){it({type:3,payload:!0})}function ne(Fe){var we;const Ee=(we=ut.current)==null?void 0:we.map(Oe=>(Oe.language===rt&&(Oe.code=Fe),Oe));ut.current=(0,te.cloneDeep)(Ee),De(Ee)}const ce={key:rt,value:(Ke=Ce==null?void 0:Ce.find(Fe=>Fe.language===rt))==null?void 0:Ke.code,language:rt,onChange:ne,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:We,insertSpaces:nt}};console.log(888,Ce,st);const Ie=Ce.filter(Fe=>st==null?void 0:st.includes(Fe.language));return ae.createElement(Ze.Fragment,null,ae.createElement("div",{className:de["code-panel-container"]},ae.createElement(Me,{setVisible:Ve,languageItems:Ie,onLanguage:Fe=>Xe(Fe),language:rt,onShowCodeSetting:je}),!Be&&ae.createElement(z.ZP,Te({},ce))),ae.createElement(se.Z,null,ae.createElement(y.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:et,onClose:Ne},ae.createElement(oe.Z,Te({},$e)))),ae.createElement(Se.default,{centered:!0,open:Je,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!at.length){ye.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}He.setFieldValue(["hack","languages"],at),Ve(!1)},onCancel:()=>Ve(!1)},ae.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},ae.createElement(E.default.Group,{value:at,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:Fe=>{Qe(Fe)}}))))};function Me({languageItems:Be,language:Ce,onShowCodeSetting:De,onLanguage:He,setVisible:Ke}){return ae.createElement("div",{className:de["action-oj-bar"]},Be==null?void 0:Be.map(Ye=>ae.createElement("aside",{className:Ce===(Ye==null?void 0:Ye.language)?de.active:"",onClick:()=>He(Ye==null?void 0:Ye.language),key:Ye==null?void 0:Ye.language},ae.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),ae.createElement("span",null,Ye==null?void 0:Ye.language))),ae.createElement("div",{className:de.tip},ae.createElement("i",{className:"iconfont icon-tishi12 font14",style:{color:"#FEB636",marginRight:3}}),ae.createElement("span",null,"\u8BBE\u7F6E\u521D\u59CB\u4EE3\u7801\uFF0C\u4E3A\u5B66\u751F\u63D0\u4F9B\u660E\u786E\u7F16\u8BD1\u8D77\u70B9")),ae.createElement(re.op,{onClick:()=>Ke(!0),shape:"default"},ae.createElement("img",{src:x,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},71130:function(Lt,Ot,ze){"use strict";ze.r(Ot),ze.d(Ot,{Types:function(){return Wt},default:function(){return Er}});var Ze=ze(59301),yt=ze(12085),y=ze(37568),Se=ze(62957),ye=ze(8848),E=ze(28284),z=ze(6767),oe=ze(29787),se=ze(99571),ee=ze(82326),de=ze(17149),x=ze(71051),te=ze(62673),re=ze(47889),ae=ze(77736),ue=ze(93725);const{Option:he}=ee.default;var pe=(Ht=>(Ht[Ht.language=0]="language",Ht[Ht.difficult=1]="difficult",Ht[Ht.category=2]="category",Ht[Ht.openOrNot=3]="openOrNot",Ht))(pe||{});const me={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u4E2D\u7B49",key:2},{title:"\u56F0\u96BE",key:3}],2:[{title:"\u7A0B\u5E8F\u8BBE\u8BA1",key:1},{title:"\u7B97\u6CD5",key:2}],3:[{title:"\u516C\u5F00",key:1},{title:"\u79C1\u6709",key:0}]};function fe(Ht){return me[Ht].map(er=>Ze.createElement(he,{key:er.title,value:er.key}," ",er.title," "))}function ve(Ht,er){Ht.map(or=>{const{id:hr,name:Qt,sub_disciplines:sr}=or;let Ir={value:hr,label:Qt};er.push(Ir),sr&&sr.length>0&&(Ir.children=[],ve(sr,Ir.children))})}function ke(Ht,er){var or;let hr=[];for(let Qt=0;Qt<Ht.length;Qt++){const sr=Ht[Qt];if(((or=sr.sub_disciplines)==null?void 0:or.length)>0){hr[0]=sr.id;for(let Ir=0;Ir<sr.sub_disciplines.length;Ir++){const Jt=sr.sub_disciplines[Ir];if(Jt.id===er)return hr[1]=Jt.id,[hr,Jt.tag_disciplines||Jt.sub_disciplines||[]]}}}return[hr,[]]}var Te=ze(76560),Pe=ze(24334),_e=ze(76618),be=ze(65363),xe=ze(2978),Ae=ze(16502),Me=ze(72664),Be=ze(72015),Ce=ze(30641),De=ze(51124),He=ze(75790),Ke=ze(89613),Ye=ze(64536),it={"code-panel-container":"code-panel-container___rlI_l","action-oj-bar":"action-oj-bar___WLV9q",active:"active___CLsJG"},Re=ze(59301),We=Object.defineProperty,et=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Ve=(Ht,er,or)=>er in Ht?We(Ht,er,{enumerable:!0,configurable:!0,writable:!0,value:or}):Ht[er]=or,at=(Ht,er)=>{for(var or in er||(er={}))Xe.call(er,or)&&Ve(Ht,or,er[or]);if(rt)for(var or of rt(er))Je.call(er,or)&&Ve(Ht,or,er[or]);return Ht},Qe=(Ht,er)=>et(Ht,nt(er));const ut={theme:(0,Ke.G)("cmCodeMode","vs-dark"),fontSize:(0,Ke.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,Ke.G)("cmTabToSpace",!0)};var st=(Ht=>(Ht[Ht.set_font_size=0]="set_font_size",Ht[Ht.set_theme=1]="set_theme",Ht[Ht.on_tab_to_space=2]="on_tab_to_space",Ht[Ht.set_show_editor_setting=3]="set_show_editor_setting",Ht))(st||{});function $e(Ht,er){switch(er.type){case 3:return Qe(at({},Ht),{showEditorSetting:er.payload});case 1:return Qe(at({},Ht),{theme:er.payload});case 0:return Qe(at({},Ht),{fontSize:er.payload});case 2:return Qe(at({},Ht),{tabToSpace:er.payload});default:throw new Error}}var Ne=({isLoading:Ht,value:er,onChange:or,language:hr,onUpdateCode:Qt,form:sr})=>{var Ir;const[Jt,Kt]=(0,Ze.useReducer)($e,ut),{theme:It,fontSize:Rt,showEditorSetting:Bt,tabToSpace:Vt}=Jt,lr=(0,Ze.useRef)(),wr=(0,Ze.useRef)(),Ut=E.default.useWatch(["hack_codes","language"],sr),Or={onFontSizeChange:yr=>{Kt({type:0,payload:yr}),(0,Ke.t)("cmFontSize",yr)},tabToSpace:Vt,cmFontSize:Rt,className:"oj",cmCodeMode:It,onTabToSpace:yr=>{Kt({type:2,payload:yr}),(0,Ke.t)("cmTabToSpace",yr)},onCodeModeChange:yr=>{Kt({type:1,payload:yr}),(0,Ke.t)("cmCodeMode",yr)}};function _r(){Kt({type:3,payload:!1})}function Pr(){Kt({type:3,payload:!0})}const Dr={value:er,language:hr,theme:"vs",height:"calc(100% - 56px)",options:{fontSize:Rt,insertSpaces:Vt},onChange:yr=>{or(yr),wr.current=yr,clearTimeout(lr.current),lr.current=setTimeout(()=>{Qt(wr.current)},1e4)},onEditBlur:yr=>{wr.current&&Qt(wr.current)}};return Re.createElement(Ze.Fragment,null,Re.createElement("div",{className:it["code-panel-container"]},Re.createElement("div",{className:it["action-oj-bar"]},(Ir=[Ut])==null?void 0:Ir.map(yr=>Re.createElement("aside",{className:it.active,key:yr},Re.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),Re.createElement("span",null,yr)))),!Ht&&Re.createElement(De.ZP,at({},Dr))),Re.createElement(He.Z,null,Re.createElement(Ce.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Bt,onClose:_r},Re.createElement(Ye.Z,at({},Or)))))},je=ze(33101),ne=ze(82093),ce=ze(49661),Ie=ze(90524),Fe=ze(62363),we=ze(15395),Ee=ze(12062),Oe=ze(47580),Ue=ze(16837),tt=ze(54657),Ge=ze(59301),ft=Object.defineProperty,ct=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,kt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,gt=(Ht,er,or)=>er in Ht?ft(Ht,er,{enumerable:!0,configurable:!0,writable:!0,value:or}):Ht[er]=or,pt=(Ht,er)=>{for(var or in er||(er={}))xt.call(er,or)&&gt(Ht,or,er[or]);if(kt)for(var or of kt(er))Et.call(er,or)&&gt(Ht,or,er[or]);return Ht},mt=(Ht,er)=>ct(Ht,vt(er)),dt=(Ht,er,or)=>new Promise((hr,Qt)=>{var sr=Kt=>{try{Jt(or.next(Kt))}catch(It){Qt(It)}},Ir=Kt=>{try{Jt(or.throw(Kt))}catch(It){Qt(It)}},Jt=Kt=>Kt.done?hr(Kt.value):Promise.resolve(Kt.value).then(sr,Ir);Jt((or=or.apply(Ht,er)).next())});const{TextArea:bt}=y.default,{confirm:wt}=Se.default,{Panel:At}=ye.default;function jt(){return new Date().getTime()}const Zt={loading:!0,user:null,disciplines:[],dicts:null,status:0,data:void 0,lastedUpdateTime:0};var Wt=(Ht=>(Ht[Ht.SET_INITAL_DATA=0]="SET_INITAL_DATA",Ht[Ht.SET_LOADING=1]="SET_LOADING",Ht[Ht.SET_STATUS=2]="SET_STATUS",Ht))(Wt||{});function $t(Ht,er){switch(er.type){case 0:return pt(pt({},Ht),er.payload);case 1:return mt(pt({},Ht),{loading:er.payload});case 2:return mt(pt({},Ht),{status:er.payload});default:throw new Error}}var Er=()=>{var Ht,er;const[or]=(0,Te.useSearchParams)(),hr=(0,Te.useLocation)(),{id:Qt}=(0,Te.useParams)(),[sr]=E.default.useForm(),[Ir,Jt]=(0,Ze.useState)(),[Kt,It]=(0,Ze.useState)([]),[Rt,Bt]=(0,Ze.useState)([]),[Vt,lr]=(0,Ze.useReducer)($t,Zt),{loading:wr,data:Ut,user:Or,disciplines:_r,dicts:Pr,status:Dr}=Vt,yr=Ut==null?void 0:Ut.hack_sets,qt=(Ht=Ut==null?void 0:Ut.hack)==null?void 0:Ht.test_set_average,{callback_url:Mt,express_id:cr,score:Ar,question_id:Br,type:Ct}=(0,ce.oP)(),[Tt,ar]=(0,Ze.useState)([]),[Xt,Dt]=(0,Ze.useState)(!1),[Yt,rr]=(0,Ze.useState)(!1),gr=Ct==="1",Mr=(0,Ze.useMemo)(()=>{let dr=[];return _r&&ve(_r,dr),dr},[_r]),Pt=(0,Ze.useCallback)((dr=0)=>dt(void 0,null,function*(){var Rr,zr;let Kr=_r;if(Kr.length===0&&(Kr=(yield(0,Ae.d1)("new_question")).disciplines),Qt){let Vr={disciplines:Kr};const Wr=yield(0,Ae.fu)(Qt);if(Wr.message)Wr.status==="401"&&(document.location.href="/user/login");else{const{category:Tr,user:Qr,code:yn,language:Sn,hack_sets:$r,description:Cn,difficult:pn,name:bn,open_or_not:Yr,sub_discipline_id:wn,tag_discipline_id:tn,analysis:fr,time_limit:Cr,test_set_average:tr,test_set_score:zt,status:pr,tag_discipline_ids:kr,item_banks_group_id:Gr,is_file:Xr=!1,hide_actual_output:dn,code_compile_score:mn,languages:on,is_my:jn,codes:kn,submit_rule:Bn}=Wr,[Xn,Gn]=ke(Kr,wn);Dt(dn);const Hn=Xr?[{input:"",output:"",score:100,position:1}]:$r;Xr?(Bt($r),sr.setFieldsValue({hack_sets:Hn})):Bt([]);const{lastedUpdateTime:ti}=(0,ce.oP)(),Un=kn==null?void 0:kn.map(li=>mt(pt({},li),{code:Pe.Base64.decode(li==null?void 0:li.code)}));Vr=mt(pt({},Vr),{loading:!1,user:Qr,dicts:Gn,status:pr,lastedUpdateTime:dr||ti||0,data:{hack_codes:{language:Sn,code:Pe.Base64.decode(yn)},hack:{category:Tr,difficult:pn,name:bn,description:Cn,open_or_not:Yr,time_limit:Cr,test_set_average:tr,test_set_score:zt,sub_discipline_id:Xn,tag_discipline_ids:kr,languages:on,score:Ar||1,item_banks_group_ids:Gr,is_file:Xr,is_my:jn,code_compile_score:mn,analysis:fr,submit_rule:Bn},hack_sets:Hn,tags:kr,codes:Un}}),parseInt(mn)>0&&rr(!0),lr({type:0,payload:Vr}),Jt({hack:{category:Tr,difficult:pn,name:bn,description:Cn,open_or_not:Yr,time_limit:Cr,test_set_average:tr,test_set_score:zt,sub_discipline_id:Xn,tag_discipline_ids:kr,score:Ar||1,item_banks_group_ids:Gr,is_file:Xr,analysis:fr},codes:Un}),br(Xn==null?void 0:Xn[0],Xn==null?void 0:Xn[1],Kr)}}else{const{user:Vr}=yield(0,Ae.PR)(),{difficult:Wr,sub_discipline_id:Tr,tag_discipline_id:Qr,tagIds:yn,banksIds:Sn}=(0,ce.oP)(),[$r,Cn]=ke(Kr,parseInt(Tr,10));let pn=[Number(Sn)];lr({type:0,payload:{loading:!1,user:Vr,disciplines:Kr,status:0,dicts:Cn,data:{hack_codes:{language:"C",code:""},hack:{category:null,difficult:parseInt(Wr,10),time_limit:3,description:"",test_set_score:!0,test_set_average:!0,open_or_not:!0,sub_discipline_id:$r,tag_discipline_id:yn&&((Rr=yn==null?void 0:yn.split(","))==null?void 0:Rr.map(bn=>Number(bn))),name:"",item_banks_group_ids:pn,is_file:!1},tags:Qr?Qr==null?void 0:Qr.split(",").map(bn=>parseInt(bn,10)):[],hack_sets:[{input:"",output:"",score:100,position:1}]}}}),Jt({hack:{category:null,difficult:parseInt(Wr,10),time_limit:3,description:"",test_set_average:!0,open_or_not:!0,sub_discipline_id:$r,tag_discipline_id:yn&&((zr=yn==null?void 0:yn.split(","))==null?void 0:zr.map(bn=>Number(bn))),name:"",item_banks_group_id:pn,is_file:!1}}),br($r==null?void 0:$r[0],$r==null?void 0:$r[1],Kr)}}),[Qt,_r]);(0,Ze.useEffect)(()=>{try{Pt()}catch(dr){console.log(dr,"----")}},[]),(0,Ze.useEffect)(()=>{function dr(){return dt(this,null,function*(){let Rr=yield(0,ne.U2)("item_banks_groups/mine.json");ar(Rr)})}dr()},[]);const br=(dr,Rr,zr)=>{var Kr,Vr,Wr;const Tr=(Wr=(Vr=(Kr=zr==null?void 0:zr.find(Qr=>Qr.id===dr))==null?void 0:Kr.sub_disciplines)==null?void 0:Vr.find(Qr=>Qr.id===Rr))==null?void 0:Wr.tag_disciplines};function Gt(dr,Rr,zr){return dt(this,null,function*(){var Kr;const{hack_sets:Vr,hack_codes:Wr,hack:Tr,tags:Qr,codes:yn}=pt({},dr);Tr.hide_actual_output=Xt;let Sn=[],$r=[],Cn=0;const pn=Tr!=null&&Tr.is_file?Rt.map((Yr,wn)=>mt(pt({},Yr),{position:wn+1})):Vr.map(Yr=>mt(pt({},Yr),{is_file:!1}));for(let Yr of pn)Cn+=Yr.score,Yr.id&&Yr.id>=0?Sn.push(Yr):$r.push(Yr);if(!(pn!=null&&pn.length)){z.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(Cn+=parseInt(Tr.code_compile_score||0),Cn!==100&&!Tr.test_set_score){z.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(pn!=null&&pn.some(Yr=>!Yr.output)){z.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}let bn={};if(gr?yn==null||yn.forEach(Yr=>{bn[Yr.language]=Yr!=null&&Yr.code?Pe.Base64.encode(Yr==null?void 0:Yr.code):""}):Wr.code=Pe.Base64.encode(Wr==null?void 0:Wr.code),Tr.sub_discipline_id=(Kr=Tr.sub_discipline_id)==null?void 0:Kr[1],lr({type:1,payload:!0}),Mt||(Tr.score=Tr.difficult*100),Qt){if(yield(0,Ae.l_)(Qt,{hack:Tr,hack_codes:Wr,hack_sets:$r,update_hack_sets:Sn,tags:Qr,is_cover:zr,languages:Tr.languages,codes:bn}),Mt){if(yield(0,Ae.j2)(Qt),Mt.includes("paperlibrary")){(yield(0,Oe.oF)({id:cr,question_id:Br,item_type:Ue.c.Program,name:Tr.name,question_score:Tr.score,difficulty:Tr.difficult,sub_discipline_id:Tr.sub_discipline_id,tag_discipline_ids:Tr.tag_discipline_ids,item_banks_group_ids:Tr.item_banks_group_ids,analysis:Tr.analysis})).status===0&&Te.history.replace(Mt);return}const{status:Yr}=yield(0,Ae.GM)(Br,{question_type:6,question_score:Tr.score,question_title:Tr.name,description:Tr.description,sub_discipline_id:Tr.sub_discipline_id,tag_discipline_ids:Tr.tag_discipline_ids,item_banks_group_ids:Tr.item_banks_group_ids,identifier:Qt,analysis:Tr.analysis});if(Yr===0){if(Rr==="start")return;Te.history.replace(Mt)}}else z.ZP.success("\u4FDD\u5B58\u6210\u529F"),Pt(jt());lr({type:1,payload:!1})}else{const{identifier:Yr,exam_identifier:wn}=yield(0,Ae.zQ)({hack:Tr,hack_codes:Wr,hack_sets:pn,tags:Qr,examination_bank_id:cr||null});if(lr({type:1,payload:!1}),Rr==="start")return;if(Yr)if(!Mt)Te.history.replace(`/problems/${Yr}/edit?lastedUpdateTime=${jt()}`);else if(yield(0,Ae.j2)(Yr),Qt)Te.history.replace(Mt);else{if(Mt.includes("paperlibrary")){(yield(0,Oe.oF)({id:cr,item_type:Ue.c.Program,name:Tr.name,question_score:Tr.score,difficulty:Tr.difficult,sub_discipline_id:Tr.sub_discipline_id,tag_discipline_ids:Tr.tag_discipline_ids,identifier:wn,analysis:Tr.analysis})).status===0&&Te.history.replace(Mt);return}const{status:tn}=yield(0,Ae.MK)(parseInt(cr,10),{question_type:6,question_score:Tr.score,question_title:Tr.name,identifier:Yr,tag_discipline_ids:Tr.tag_discipline_ids,analysis:Tr.analysis});tn===0&&Te.history.replace(Mt)}}})}function Sr(){sr.submit(),setTimeout(()=>dt(this,null,function*(){const dr=yield(0,Ae.j2)(Qt);dr.status===0?(z.ZP.success("\u53D1\u5E03\u6210\u529F"),lr({type:2,payload:1})):z.ZP.info(dr.message)}),400)}function ir(){return dt(this,null,function*(){const dr=yield(0,Ae.ZS)(Qt);dr.status===0?(z.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F"),lr({type:2,payload:0})):z.ZP.info(dr.message)})}function ur(){wt(Dr===0?{title:"\u63D0\u793A",content:Ge.createElement(Ze.Fragment,null," ",Ge.createElement("div",null,"\u53D1\u5E03\u540E\u5373\u53EF\u5E94\u7528\u5230\u81EA\u5DF1\u7BA1\u7406\u7684\u8BFE\u5802")," ",Ge.createElement("div",null," \u662F\u5426\u786E\u8BA4\u53D1\u5E03?")," "),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk(){Sr()}}:{title:"\u63D0\u793A",content:Ge.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk(){ir()}})}function xr(){return dt(this,null,function*(){Gt(yield sr.getFieldValue(),"start"),setTimeout(()=>dt(this,null,function*(){const{identifier:dr}=yield(0,Ae.uE)(Qt);gr?window.location.href=`/myproblems/${dr}?type=1`:window.location.href=`/myproblems/${dr}`}),400)})}function Fr(){var dr;if(Mt)Te.history.replace(Mt);else if(gr){let Rr=(dr=localStorage.getItem("program_homework"))==null?void 0:dr.split(",");Te.history.push(`/classrooms/${Rr==null?void 0:Rr[0]}/program_homework/${Rr==null?void 0:Rr[1]}/detail`)}else Te.history.replace("/problemset")}const Ur=dr=>{let Rr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const zr=Math.floor((100-Rr)/dr.length),Kr=zr+(100-Rr)%dr.length;dr=dr.map((Vr,Wr)=>Wr===dr.length-1?mt(pt({},Vr),{score:Kr}):mt(pt({},Vr),{score:zr})),Bt(dr)};function en(dr){dr.target.value||Ur(Rt),lr({type:0,payload:{data:mt(pt({},Ut),{hack:mt(pt({},Ut.hack),{test_set_score:dr.target.value})})}})}function un(dr){lr({type:0,payload:{data:mt(pt({},Ut),{hack:mt(pt({},Ut.hack),{is_file:dr.target.value})})}})}function ln(dr){Dt(dr.target.checked)}function gn(dr){const Rr=dr.target.value;Rr&&Ur(Rt),lr({type:0,payload:{data:mt(pt({},Ut),{hack:mt(pt({},Ut.hack),{test_set_average:Rr})})}})}function nn(){let dr=sr.getFieldValue("hack_sets"),Rr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const zr=dr.length+1,Kr=Math.floor((100-Rr)/zr),Vr=(100-Rr)%zr;dr.map((Wr,Tr)=>(qt&&(Wr.score=Kr),Wr.position=Tr+1,Wr)),dr.push({input:"",output:"",position:zr,score:qt?Kr+Vr:0}),sr.setFieldsValue({hack_sets:dr}),lr({type:0,payload:{data:mt(pt({},Ut),{hack_sets:dr})}})}function Tn(){let dr=sr.getFieldValue("hack_sets"),Rr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const zr=dr.length,Kr=Math.floor((100-Rr)/zr),Vr=(100-Rr)%zr;dr.map((Wr,Tr)=>(qt&&(Wr.score=Kr,Tr===dr.length-1&&(Wr.score=Kr+Vr)),Wr.position=Tr+1,Wr)),sr.setFieldsValue({hack_sets:dr}),lr({type:0,payload:{data:mt(pt({},Ut),{hack_sets:dr})}})}(0,Ze.useEffect)(()=>{if(qt){let dr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const Rr=yr==null?void 0:yr.length,zr=Math.floor((100-dr)/Rr),Kr=(100-dr)%Rr;yr==null||yr.map((Vr,Wr)=>(Vr.score=zr,Vr.position=Wr+1,Wr===Rr-1&&(Vr.score=zr+Kr),Vr)),lr({type:0,payload:{data:mt(pt({},Ut),{hack_sets:yr})}}),sr.setFieldsValue({hack_sets:yr})}},[qt]);function Mn(dr){let Rr=sr.getFieldValue("hack_sets"),zr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const Kr=(Rr==null?void 0:Rr.length)-1,Vr=Math.floor((100-zr)/Kr),Wr=(100-zr)%Kr;Rr.splice(dr,1),Rr==null||Rr.map((Tr,Qr)=>(qt&&(Tr.score=Vr,Qr===Kr-1&&(Tr.score=Vr+Wr)),Tr.position=Qr+1,Tr)),lr({type:0,payload:{data:mt(pt({},Ut),{hack_sets:Rr})}}),sr.setFieldsValue({hack_sets:Rr})}function xn(dr){lr({type:0,payload:{data:mt(pt({},Ut),{hack_codes:mt(pt({},Ut.hack_codes),{language:dr})})}})}const _n=dr=>{var Rr,zr,Kr,Vr,Wr,Tr;if((Rr=dr==null?void 0:dr.hack)!=null&&Rr.sub_discipline_id){const[Qr,yn]=(zr=dr==null?void 0:dr.hack)==null?void 0:zr.sub_discipline_id,Sn=(Wr=(Vr=(Kr=_r==null?void 0:_r.find(Cn=>Cn.id===Qr))==null?void 0:Kr.sub_disciplines)==null?void 0:Vr.find(Cn=>Cn.id===yn))==null?void 0:Wr.tag_disciplines,$r=mt(pt({},sr.getFieldsValue()),{hack:mt(pt({},(Tr=sr.getFieldsValue())==null?void 0:Tr.hack),{tag_discipline_ids:[]})});sr.setFieldsValue($r),Jt($r)}else Jt(pt({},sr.getFieldsValue()))},Dn=dr=>{It([...Kt,pt({},dr)])};(0,Ze.useEffect)(()=>{var dr,Rr,zr,Kr;(Rr=(dr=Ut==null?void 0:Ut.hack)==null?void 0:dr.sub_discipline_id)!=null&&Rr[1]&&En((Kr=(zr=Ut==null?void 0:Ut.hack)==null?void 0:zr.sub_discipline_id)==null?void 0:Kr[1])},[(er=Ut==null?void 0:Ut.hack)==null?void 0:er.sub_discipline_id]);const En=dr=>dt(void 0,null,function*(){const Rr=yield(0,Me.YY)({sub_discipline_id:dr});It(Rr.tag_disciplines)});function cn(dr){let Rr=dr[1];const[,zr]=ke(_r,Rr);sr.setFieldsValue({tags:[]}),lr({type:0,payload:{dicts:zr,data:mt(pt({},Ut),{hack:mt(pt({},Ut.hack),{sub_discipline_id:dr}),tags:[]})}})}const On=(dr,Rr=!1)=>{var zr,Kr;if(Rr)return()=>{lr({type:0,payload:{data:mt(pt({},Ut),{hack:mt(pt({},Ut.hack),{is_file:!0})})}}),sr.setFieldsValue({hack:{is_file:!0}})};const Vr=dr==null?void 0:dr.map($r=>({input:$r.input,output:$r.output,score:0,position:1}));let Wr=(Kr=(zr=sr.getFieldValue("hack_sets"))==null?void 0:zr.filter($r=>$r.input||$r.output))==null?void 0:Kr.concat(Vr),Tr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const Qr=Wr==null?void 0:Wr.length,yn=Math.floor((100-Tr)/Qr),Sn=(100-Tr)%Qr;Wr==null||Wr.map(($r,Cn)=>(qt&&($r.score=yn,Cn===Qr-1&&($r.score=yn+Sn)),$r.position=Cn+1,$r)),lr({type:0,payload:{data:mt(pt({},Ut),{hack_sets:Wr,hack:mt(pt({},Ut.hack),{is_file:!1})})}}),sr.setFieldsValue({hack_sets:Wr,hack:{is_file:!1}})};return Ge.createElement(oe.Z,{spinning:wr,delay:500},Ut?Ge.createElement(Ze.Fragment,null,Ge.createElement("header",{className:yt.Z.header},Ge.createElement("div",null,Ge.createElement("img",{src:`${Ie.Z.IMG_SERVER}/images/${Or==null?void 0:Or.image_url}`,alt:"user",width:30}),Ge.createElement("span",null,Or==null?void 0:Or.name)),Ge.createElement("h2",null," ",Ut==null?void 0:Ut.hack.name," "),Qt?Ge.createElement("a",{className:yt.Z.btn_back,onClick:Fr}," ",Ge.createElement(_e.Z,null),"\u9000\u51FA"):null),Ge.createElement(E.default,{form:sr,initialValues:Ut,layout:"vertical",className:yt.Z["oj-form-container"],onValuesChange:_n,onFinish:(dr,Rr)=>{if(or.get("exercise")&&!Mt.includes("paperlibrary")){Se.default.confirm({title:"\u4FDD\u5B58\u63D0\u793A",content:"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u8BD5\u9898\u5E93\u4E2D\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u8BD5\u9898\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F",okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",onOk:()=>Gt(dr,Rr,1),onCancel:()=>Gt(dr,Rr,0)});return}Gt(dr,Rr)}},Ge.createElement(Be.Z,{leftChild:Ge.createElement(vr,{onAddTestCases:Tn,form:sr,handleAddKnowledgeFinish:Dn,MyGroup:Tt,formValue:Ir,knowledgeOptions:Kt,onChangeLanguage:xn,onChangeSubDiscipline:cn,onRemoveTestCase:Mn,onAddTestCase:nn,dicts:Pr,categorys:Mr,callback_url:Mt,hack:Ut.hack,onChangeScore:en,onChangehide:ln,onChangeAverage:gn,onChangeFile:un,uploadData:Rt,setUploadData:Bt,handleUploadRatio:Ur,ischecked:Xt,isshows:Yt,isProgram:gr,addUploadFnc:On}),rightChild:gr?Ge.createElement(E.default.Item,{name:"codes",style:{marginBottom:0}},Ge.createElement(je.Z,null)):Ge.createElement(E.default.Item,{name:["hack_codes","code"],style:{marginBottom:0}},Ge.createElement(Ne,{language:Ut.hack_codes.language}))}),Ge.createElement("div",{className:yt.Z.footer},Qt?Ge.createElement(Ze.Fragment,null,gr&&Ge.createElement(se.ZP,{onClick:Fr,type:"primary",ghost:!0},"\u9000\u51FA\u7F16\u8F91"),Mt||gr?null:Ge.createElement(se.ZP,{type:Dr?"default":"primary",onClick:ur},Dr?"\u64A4\u9500\u53D1\u5E03":"\u7ACB\u5373\u53D1\u5E03"),Ge.createElement(se.ZP,{loading:wr,type:"primary",htmlType:"submit"},"\u4FDD\u5B58"),Ge.createElement(se.ZP,{type:"primary",onClick:xr},Dr?"\u5F00\u59CB\u6311\u6218":"\u6A21\u62DF\u6311\u6218")):Ge.createElement(Ze.Fragment,null,Ge.createElement(se.ZP,{onClick:Fr},"\u53D6\u6D88"),Ge.createElement(se.ZP,{loading:wr,type:"primary",htmlType:"submit"},"\u4FDD\u5B58"))))):null)};function vr({form:Ht,onAddTestCases:er,handleAddKnowledgeFinish:or,ischecked:hr,MyGroup:Qt,formValue:sr,knowledgeOptions:Ir,categorys:Jt,hack:Kt,callback_url:It,onChangeAverage:Rt,onChangeScore:Bt,onChangehide:Vt,onChangeFile:lr,onAddTestCase:wr,onRemoveTestCase:Ut,onChangeSubDiscipline:Or,onChangeLanguage:_r,uploadData:Pr,setUploadData:Dr,handleUploadRatio:yr,isshows:qt,isProgram:Mt,addUploadFnc:cr}){var Ar,Br,Ct;const Tt=((Ar=location==null?void 0:location.search)==null?void 0:Ar.includes("select"))||!1,[ar,Xt]=(0,Ze.useState)(qt),[Dt,Yt]=(0,Ze.useState)(!1),{test_set_average:rr,test_set_score:gr}=Kt,[Mr,Pt]=(0,Ze.useState)(!1),br=(ur,xr)=>{const Fr=[...Pr];Fr.splice(xr,1),rr?yr(Fr):Dr(Fr)},Gt=(ur,xr)=>{console.log(ur,xr);const Fr=Pr.map((Ur,en)=>en===xr?mt(pt({},Ur),{score:ur.target.value?Number(ur.target.value):0}):Ur);Dr(Fr)},Sr=ur=>{if(ur!=null&&ur.length){if(ur!=null&&ur[0].is_file){cr(ur,!0)();const xr=Pr.concat(ur);Kt.test_set_average?yr(xr):Dr(xr)}ur!=null&&ur[0].is_file||cr(ur)}};function ir(ur){ur.stopPropagation()}return Ge.createElement("div",{className:yt.Z["oj-left-panel"]},Ge.createElement("div",{className:yt.Z["oj-form-info"]},Ge.createElement("div",{className:yt.Z.field},Ge.createElement(E.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficult"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},Ge.createElement(ee.default,{disabled:Tt},fe(pe.difficult))),Ge.createElement(E.default.Item,{label:"\u8BFE\u7A0B(\u5408\u7406\u7684\u8BFE\u7A0B\u5206\u7C7B\u6709\u5229\u4E8E\u5FEB\u901F\u68C0\u7D22)",name:["hack","sub_discipline_id"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},Ge.createElement(de.Z,{disabled:Tt,allowClear:!1,options:Jt,placeholder:"\u8BF7\u9009\u62E9",onChange:Or}))),Ge.createElement("div",{className:yt.Z.field},It&&Ge.createElement(E.default.Item,{label:"\u5206\u6570",name:["hack","score"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}],extra:Ge.createElement("span",{style:{position:"absolute",left:100,top:5}},"\u5206")},Ge.createElement(x.Z,{disabled:Tt,min:1,max:100})),Ge.createElement(E.default.Item,{label:Ge.createElement("div",null,"\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236 "),name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:1,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F1\u79D2"}],extra:Ge.createElement("span",{style:{position:"absolute",left:100,top:5}},"\u79D2")},Ge.createElement(x.Z,{min:1})),Mt?Ge.createElement(E.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{paddingBottom:16},name:["hack","languages"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Ge.createElement(te.default.Group,null,Ge.createElement(te.default,{value:"C"},"C"),Ge.createElement(te.default,{value:"C++"},"C++"),Ge.createElement(te.default,{value:"Java"},"Java"),Ge.createElement(te.default,{value:"Python"},"Python"))):Ge.createElement(E.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",name:["hack_codes","language"],style:{paddingBottom:16},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Ge.createElement(ee.default,{onChange:_r},fe(pe.language)))),Ge.createElement(E.default.Item,{label:Ge.createElement("span",null,"\u77E5\u8BC6\u70B9\uFF1A",Ge.createElement("span",{className:"c-grey-999"},"\uFF08\u6240\u6709\u81EA\u5EFA\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u88ABEduCoder\u5E73\u53F0\u5BA1\u6838\u901A\u8FC7\u4E3A\u5B98\u65B9\u77E5\u8BC6\u70B9\u540E\u6240\u6709\u7528\u6237\u53EF\u89C1\uFF09")),name:["hack","tag_discipline_ids"]},Ge.createElement(Fe.N,{selectvalues:(Kt==null?void 0:Kt.tag_discipline_id)||(Kt==null?void 0:Kt.tag_discipline_ids),disabled:Tt,subId:(Ct=(Br=sr==null?void 0:sr.hack)==null?void 0:Br.sub_discipline_id)==null?void 0:Ct[1],knowledgeOptions:Ir,onAddKnowledgeFinish:or})),Ge.createElement(E.default.Item,{label:"\u52A0\u5165\u6587\u4EF6\u5939\u76EE\u5F55",name:["hack","item_banks_group_ids"],labelCol:{span:24},wrapperCol:{span:24}},Ge.createElement(we.Z,{disabled:Tt})),Ge.createElement(E.default.Item,{label:"\u4EFB\u52A1\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},Ge.createElement(y.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",suffix:Ge.createElement("span",null,60-Kt.name.length)})),Ge.createElement(E.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},Ge.createElement(xe.Z,{miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),Ge.createElement("div",{onClick:()=>Yt(!0)},Ge.createElement(E.default.Item,{label:"\u9898\u76EE\u89E3\u6790",name:["hack","analysis"],className:`${yt.Z.baseLineHeight}`},Ge.createElement(tt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Dt}))),Ge.createElement("div",{className:"tst-case-info"},Ge.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," \u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!Kt.is_file&&Ge.createElement(se.ZP,{type:"primary",ghost:!0,onClick:wr},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),Ge.createElement(E.default.Item,{name:["hack","test_set_score"]},Ge.createElement(re.ZP.Group,{onChange:Bt},Ge.createElement(re.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",Ge.createElement("span",{className:"tip"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u4EC5\u5F53\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u83B7\u5F97\u4E00\u6B21\u6027\u5956\u52B1\uFF09")),Ge.createElement(re.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",Ge.createElement("span",{className:"tip"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),Ge.createElement(te.default,{style:{marginBottom:"5px"},checked:hr,onChange:Vt},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u65E0\u6CD5\u770B\u5230\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\uFF0C\u4EC5\u5C55\u793A\u662F\u5426\u8BC4\u6D4B\u662F\u5426\u901A\u8FC7\uFF09"),Ge.createElement(E.default.Item,{className:yt.Z.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},Ge.createElement(re.ZP.Group,{onChange:lr},Ge.createElement(ae.Z,{direction:"horizontal"},Ge.createElement(re.ZP,{value:!1},"\u6587\u672C"),Ge.createElement(re.ZP,{value:!0},"\u6587\u4EF6")))),Ge.createElement(E.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0}]},Ge.createElement(re.ZP.Group,null,Ge.createElement(re.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Ge.createElement(re.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Ge.createElement(re.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),!Kt.test_set_score&&Ge.createElement(E.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},Ge.createElement(re.ZP.Group,{onChange:Rt},Ge.createElement(re.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),Ge.createElement(re.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),!Kt.test_set_score&&Ge.createElement("div",{style:{marginBottom:"20px",marginTop:"-10px"}},Ge.createElement("div",{style:{display:"flex",height:"30px",marginBottom:"10px"}},Ge.createElement(te.default,{checked:ar,style:{display:"flex",alignItems:"center"},className:yt.Z.checkboxs,onChange:ur=>{Xt(ur.target.checked),Ht.setFieldsValue({hack:{code_compile_score:0}}),Kt.test_set_average&&(Kt.is_file?yr(Pr):er())}},"\u542F\u7528\u7F16\u8BD1\u901A\u8FC7\u5373\u53EF\u5F97\u5206"),ar&&Ge.createElement("span",{style:{display:"flex"}},Ge.createElement(E.default.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F16\u8BD1\u5F97\u5206"}],name:["hack","code_compile_score"]},Ge.createElement(x.Z,{onChange:()=>{Kt.test_set_average&&(Kt.is_file?yr(Pr):er())},parser:ur=>isNaN(parseInt(ur))?"":parseInt(ur),min:0,max:100,style:{width:"90px",margin:"5px 0px"}}))," ",Ge.createElement("span",{style:{display:"flex",alignItems:"center",marginLeft:"5px"}},"%"))),Ge.createElement("span",{style:{color:"#999",fontSize:"12px",marginLeft:"-8px"}},"\uFF08\u8BF7\u6CE8\u610F\u8BE5\u5B9E\u8BAD\u9898\u662F\u5426\u6709\u7F16\u8BD1\u8FC7\u7A0B\uFF0C\u82E5\u6CA1\u6709\u5219\u65E0\u6CD5\u83B7\u5F97\u7F16\u8BD1\u5F97\u5206\uFF09")),Ge.createElement("div",{className:yt.Z.upBtn},Ge.createElement(se.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>Pt(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),(Kt==null?void 0:Kt.is_file)&&Ge.createElement(Ee.Y2,{disabled:Kt==null?void 0:Kt.test_set_average,inputChange:Gt,showScore:!Kt.test_set_score,data:Pr,onRemove:br})),!Kt.is_file&&Ge.createElement(E.default.List,{name:"hack_sets"},(ur,{})=>Ge.createElement(ye.default,{accordion:!0,className:yt.Z.collapse},ur.map((xr,Fr)=>Ge.createElement(At,{key:`${xr.key}--${Fr}`,header:Ge.createElement("a",{className:yt.Z["test-case-name"]},Ge.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Fr+1),gr?null:Ge.createElement(Ge.Fragment,null,Ge.createElement(E.default.Item,{name:[xr.name,"score"],style:{marginBottom:0},fieldKey:[xr.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${Fr+1}\u8BC4\u5206`}]},Ge.createElement(x.Z,{onClick:ir,min:0,max:100,disabled:rr})),Ge.createElement("span",null,"%"))),extra:Fr>0?Ge.createElement("div",{onClick:ir},Ge.createElement(ue.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6"+(Fr+1),onConfirm:()=>{Ut(Fr)}},Ge.createElement(be.Z,{className:yt.Z["btn-remove-case"]}))):null},Ge.createElement(E.default.Item,{label:"\u8F93\u5165",name:[xr.name,"input"],fieldKey:[xr.fieldKey,"input"]},Ge.createElement(bt,null)),Ge.createElement(E.default.Item,{label:"\u8F93\u51FA",name:[xr.name,"output"],fieldKey:[xr.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Ge.createElement(bt,null)))))))),Ge.createElement(Ee.ZP,{rootIdentifier:null,visible:Mr,onClose:()=>Pt(!1),onOK:Sr,multiple:!0,defaultMultipleValue:Kt==null?void 0:Kt.is_file}))}},16502:function(Lt,Ot,ze){"use strict";ze.d(Ot,{GM:function(){return oe},MK:function(){return z},PR:function(){return yt},ZS:function(){return ee},d1:function(){return y},fu:function(){return Se},j2:function(){return se},l_:function(){return ye},uE:function(){return de},zQ:function(){return E}});var Ze=ze(82093);function yt(){return(0,Ze.U2)("problems/new.json")}function y(te="question"){return(0,Ze.U2)("disciplines.json",{source:te})}function Se(te){return(0,Ze.U2)(`problems/${te}/edit.json`)}function ye(te,re){return(0,Ze.gz)(`problems/${te}.json`,re)}function E(te){return(0,Ze.v_)("problems.json",te)}function z(te,re){return(0,Ze.v_)(`exercises/${te}/exercise_questions.json`,re)}function oe(te,re){return(0,Ze.gz)(`exercise_questions/${te}.json`,re)}function se(te){return(0,Ze.v_)(`problems/${te}/publish.json`)}function ee(te){return(0,Ze.v_)(`problems/${te}/cancel_publish.json`)}function de(te){return(0,Ze.U2)(`problems/${te}/start.json`)}function x(te,re){return post("tag_disciplines.json",{name:re,sub_discipline_id:te})}},12062:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Y2:function(){return Ke},ZP:function(){return Ye}});var Ze=ze(59301),yt=ze(14566),y=ze(6767),Se=ze(62957),ye=ze(77019),E=ze(47889),z=ze(99571),oe=ze(62673),se=ze(25399),ee=ze(37568),de={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},x="data:image/png;base64,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",te=ze(47257),re=ze.n(te),ae=ze(25992),ue=ze(82093),he=ze(1012),pe=ze(49661),me=ze(41550),fe=ze(59301),ve=Object.defineProperty,ke=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,xe=(it,Re,We)=>Re in it?ve(it,Re,{enumerable:!0,configurable:!0,writable:!0,value:We}):it[Re]=We,Ae=(it,Re)=>{for(var We in Re||(Re={}))_e.call(Re,We)&&xe(it,We,Re[We]);if(Pe)for(var We of Pe(Re))be.call(Re,We)&&xe(it,We,Re[We]);return it},Me=(it,Re)=>ke(it,Te(Re)),Be=(it,Re,We)=>new Promise((et,nt)=>{var rt=Ve=>{try{Je(We.next(Ve))}catch(at){nt(at)}},Xe=Ve=>{try{Je(We.throw(Ve))}catch(at){nt(at)}},Je=Ve=>Ve.done?et(Ve.value):Promise.resolve(Ve.value).then(rt,Xe);Je((We=We.apply(it,Re)).next())});const{Dragger:Ce}=yt.default,De=it=>{const Re=at=>at&&at.substring(0,at.lastIndexOf("."));for(var We=[...it],et=0,nt=[],rt=0;rt<We.length;rt++){for(var Xe="",Je=0;Je<nt.length;Je++)if(Re(nt[Je][0].name)==Re(We[rt].name)){et=1,Xe=Je;break}if(et==1)nt[Xe].push(We[rt]),et=0;else if(et==0){let at=new Array;at.push(We[rt]),nt.push(at)}}return nt.map(at=>{if(at.forEach(Qe=>{let ut=Qe.name.split(/\.(?=[^\.]+$)/);Qe.name=`${ut[0]}.${ut[1].toLowerCase()}`}),at[0].name.includes(".in"))return at.length===2?at:[at[0],{}];if(at[0].name.includes(".out"))return at.length===2?at.reverse():[{},at[0]]})},He=({onClose:it,onOK:Re,visible:We,wrapClassName:et,rootIdentifier:nt,multiple:rt=!1,defaultMultipleValue:Xe=!0})=>{const[Je,Ve]=(0,Ze.useState)([]),[at,Qe]=(0,Ze.useState)({}),[ut,st]=(0,Ze.useState)(!1),[$e,Ne]=(0,Ze.useState)(!0),je=(0,Ze.useRef)([]),ne=(0,Ze.useRef)(0),ce=()=>{it()};(0,Ze.useEffect)(()=>{Ie()},[]),(0,Ze.useEffect)(()=>{We&&(je.current=[],ne.current=0,Ve([]),Ne(Xe))},[We]);const Ie=()=>Be(void 0,null,function*(){try{const ft=yield(0,ue.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),ct=JSON.parse((0,ae.pe)(ft.data));Qe(ct)}catch(ft){}}),Fe=ft=>ft&&ft.substring(0,ft.lastIndexOf(".")),we=ft=>{var ct,vt;const kt=Fe((ct=ft[0])==null?void 0:ct.name)||Fe((vt=ft[1])==null?void 0:vt.name),xt=Je.filter(Et=>Fe(Et.name)!==kt);je.current=[...xt],Ve([...xt])},Ee=ft=>{if(!$e){const gt=new FormData;gt.append("file",ft.file),(0,ue.ZP)("/api/attachments/get_file_content.json",{method:"post",body:gt},!0).then(mt=>{if(mt.status===0){ne.current=ne.current+1;const dt=je.current.map(bt=>{var wt;if(bt.name===ft.name){const At=Ae({},bt);return(wt=ft==null?void 0:ft.name)!=null&&wt.includes(".in")?At.input=mt==null?void 0:mt.content:At.output=mt==null?void 0:mt.content,At}return bt});if(je.current=[...dt],Ve([...dt]),ne.current>0&&ne.current===Je.length){st(!1);let bt=De(dt);bt=bt.filter(wt=>{var At,jt;return!!((At=wt[0])!=null&&At.name&&((jt=wt[1])!=null&&jt.name))}),bt=bt.map(wt=>Me(Ae(Ae({},wt[0]),wt[1]),{is_file:!1})),Re(bt),it()}}else st(!1),it()});return}const ct=new(re())({endpoint:at.end_point,region:at.region,accessKeyId:at.access_key_id,accessKeySecret:at.access_key_secret,bucket:at.bucket,stsToken:at.security_token}),vt=ft.name,kt={container_type:"TestSet",file_name:vt},xt=(0,he.Z)();let Et=`testsets/${nt}/${xt}${vt.indexOf(".")>-1?"."+vt.split(".").pop():""}`;nt===null&&(Et=`testsets/${xt}${vt.indexOf(".")>-1?"."+vt.split(".").pop():""}`),ct.multipartUpload(Et,new Blob([ft.file],{type:ft.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:vt+""},url:at==null?void 0:at.callback_url,host:at==null?void 0:at.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ue.rz)(kt)}}).then(function(gt){if(gt.data.status===0){ne.current=ne.current+1;const pt=je.current.map(mt=>{var dt,bt,wt,At,jt,Zt,Wt,$t,Er,vr,Ht,er,or,hr,Qt,sr,Ir;if(mt.name===((bt=(dt=gt.data)==null?void 0:dt.data)==null?void 0:bt.file_name)){const Jt=Ae({},mt);return(jt=(At=(wt=gt.data)==null?void 0:wt.data)==null?void 0:At.file_name)!=null&&jt.includes(".in")?(Jt.in_object_key=(Wt=(Zt=gt.data)==null?void 0:Zt.data)==null?void 0:Wt.object,Jt.in_object_size=(Er=($t=gt.data)==null?void 0:$t.data)==null?void 0:Er.size,Jt.input=(Ht=(vr=gt.data)==null?void 0:vr.data)==null?void 0:Ht.file_name,Jt.in_file=ft):(Jt.out_object_key=(or=(er=gt.data)==null?void 0:er.data)==null?void 0:or.object,Jt.out_object_size=(Qt=(hr=gt.data)==null?void 0:hr.data)==null?void 0:Qt.size,Jt.output=(Ir=(sr=gt.data)==null?void 0:sr.data)==null?void 0:Ir.file_name,Jt.out_file=ft),Jt}return mt});if(je.current=[...pt],Ve([...pt]),ne.current>0&&ne.current===Je.length){st(!1);let mt=De(pt);mt=mt.filter(dt=>{var bt,wt;return!!((bt=dt[0])!=null&&bt.name&&((wt=dt[1])!=null&&wt.name))}),mt=mt.map(dt=>Me(Ae(Ae({},dt[0]),dt[1]),{is_file:!0})),Re(mt),it()}}})},Oe=ft=>new Promise((ct,vt)=>{let kt=0,xt=[];for(let Et=0;Et<ft.length;Et++)ft[Et].file.slice(0,1).arrayBuffer().then(()=>{kt++,kt===ft.length&&(xt.length?(y.ZP.warning(`${xt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),vt()):ct(ft))}).catch(gt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",gt),kt++,xt.push(ft[Et].name),kt===ft.length&&(xt.length?(y.ZP.warning(`${xt.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),vt()):ct(ft))})}),Ue=()=>Be(void 0,null,function*(){if(Je.length===0){y.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Oe(Je),st(!0),De(Je).some(ct=>{var vt,kt;return!((vt=ct[0])!=null&&vt.name&&((kt=ct[1])!=null&&kt.name))})){Se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>Be(void 0,null,function*(){Je.map(ct=>Be(void 0,null,function*(){Ee(ct)}))}),onCancel:()=>{st(!1)}});return}Je.map(ct=>Be(void 0,null,function*(){Ee(ct)}))}),tt={name:"file",fileList:Je,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:ft=>{if(Je!=null&&Je.some(vt=>vt.name===ft.name))return y.ZP.info(`${ft.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(ft.size/1024/1024>100)return y.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(ft.name))return y.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const ct={name:ft.name,uid:ft.uid,file:ft,percent:0};return Je.push(ct),je.current=[...Je],Ve([...Je]),!1}},Ge=De(Je);return console.log(Je,Ge,"fileList"),fe.createElement(Se.default,{open:We,wrapClassName:et,onOk:Ue,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:ut},onCancel:ce,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},fe.createElement("div",{className:de.wrap},Je.length?fe.createElement("div",null,fe.createElement(ye.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},fe.createElement("div",{style:{visibility:rt?"visible":"hidden"}},fe.createElement("span",{className:de.greyText},"\u7528\u4F8B\u7C7B\u578B"),fe.createElement(E.ZP.Group,{className:`ml20 ${de.testCaseRadio}`,optionType:"button",value:$e,onChange:ft=>Ne(ft.target.value)},fe.createElement(E.ZP,{value:!1},"\u6587\u672C"),fe.createElement(E.ZP,{value:!0},"\u6587\u4EF6"))),fe.createElement(yt.default,Ae({},tt),fe.createElement(z.ZP,{type:"primary",className:de.btnS},fe.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),fe.createElement(Ke,{data:Ge,onRemove:we})):fe.createElement("div",{className:`${de.noData} mb30`},fe.createElement(yt.default.Dragger,Me(Ae({},tt),{className:de.dragger}),fe.createElement("img",{src:x,alt:"",className:"mb20"}),fe.createElement("div",null,fe.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),fe.createElement("span",{className:de.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),fe.createElement("div",{className:de.text},fe.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),fe.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",fe.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",fe.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",fe.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",fe.createElement("br",null))))},Ke=({data:it=[],onRemove:Re,width:We="auto",showScore:et=!1,disabled:nt=!1,inputChange:rt,onEvaluatingChange:Xe,onSelectAll:Je,checkAll1:Ve,checkAll2:at,checkAll3:Qe,checkAll4:ut,checkAll5:st,showEvaluatingSetting:$e=!1,className:Ne="",isProgramHomework:je=!1})=>{const ne={value:"",filename:"",dataUrl:""},[ce,Ie]=(0,Ze.useState)(Ae({},ne)),Fe=Oe=>{let Ue=document.createElement("a");document.body.appendChild(Ue);let tt=URL.createObjectURL(Oe.file);Ue.href=tt,Ue.download=Oe.name,Ue.click(),URL.revokeObjectURL(tt),document.body.removeChild(Ue)},we=(Oe,Ue)=>{(0,pe.LR)(Oe,Ue)},Ee=(Oe,Ue)=>{Se.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:fe.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Re(Oe,Ue)},onCancel:()=>{}})};return it.length?fe.createElement("div",{className:Ne,style:{width:We}},fe.createElement("div",{className:`${je?de.headProgram:de.head}`},$e&&fe.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:Ve,onChange:Oe=>{Je(Oe.target.checked,"hidden")}}),fe.createElement(se.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},fe.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),fe.createElement("div",{style:{width:je?"25%":"15%"}},"\u7528\u4F8B"),fe.createElement("div",{style:{width:et?je?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),fe.createElement("div",{style:{width:et?je?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),et&&fe.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),$e&&fe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:ut,onChange:Oe=>{Je(Oe.target.checked,"input_visible")}}),fe.createElement(se.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},fe.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),$e&&fe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:at,onChange:Oe=>{Je(Oe.target.checked,"is_invisible")}}),fe.createElement(se.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},fe.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),$e&&fe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:st,onChange:Oe=>{Je(Oe.target.checked,"actual_output_visible")}}),fe.createElement(se.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},fe.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),$e&&fe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:Qe,onChange:Oe=>{Je(Oe.target.checked,"last_match_rule")}}),fe.createElement(se.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},fe.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),fe.createElement("div",{className:de.operation,style:je?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),fe.createElement("div",{className:de.listWrapper,style:{boxShadow:je?"0px 2px 4px 0px #EAEEF4":"unset"}},it.map((Oe,Ue)=>{var tt,Ge,ft,ct;return fe.createElement("div",{key:Ue,className:de.list,style:je?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},$e&&fe.createElement("div",{style:{width:"15%"}},fe.createElement(oe.default,{checked:!!Oe.hidden,onChange:vt=>{Xe(vt.target.checked,Ue,"hidden")}})),fe.createElement("div",{style:{width:je?"25%":"15%",paddingLeft:je?"5px":"0px",paddingRight:je?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",Ue+1),fe.createElement("div",{className:de.info,style:{width:et?je?"20%":"15%":"25%"}},fe.createElement("span",{title:Oe.input||((tt=Oe[0])==null?void 0:tt.name),onClick:()=>Be(void 0,null,function*(){let vt;Oe.input?Oe.input_file_url?vt=Oe.input_file_url:vt=Oe.in_file:vt=Oe[0];let kt;typeof vt=="string"?(kt=yield fetch(vt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ie({value:yield kt.text(),filename:"",dataUrl:vt})):(kt=yield(0,pe.db)(vt.file),Ie({value:kt.text,filename:vt.name,dataUrl:kt.link}))})},Oe.input||((Ge=Oe[0])==null?void 0:Ge.name))),fe.createElement("div",{className:de.info,style:{width:et?je?"20%":"15%":"25%"}},fe.createElement("span",{title:Oe.output||((ft=Oe[1])==null?void 0:ft.name),onClick:()=>Be(void 0,null,function*(){let vt;Oe.input?Oe.output_file_url?vt=Oe.output_file_url:vt=Oe.out_file:vt=Oe[1];let kt;typeof vt=="string"?(kt=yield fetch(vt,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Ie({value:yield kt.text(),filename:"",dataUrl:vt})):(kt=yield(0,pe.db)(vt.file),Ie({value:kt.text,filename:vt.name,dataUrl:kt.link}))})},Oe.output||((ct=Oe[1])==null?void 0:ct.name))),et&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(ee.default,{size:"large",addonAfter:je?"%":null,disabled:nt,style:{width:"80%"},onChange:vt=>rt(vt,Ue),value:Oe.score}),!je&&fe.createElement("span",null,"\xA0%")),$e&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(oe.default,{checked:Oe.input_visible||!1,onChange:vt=>{Xe(vt.target.checked,Ue,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),$e&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(oe.default,{checked:Oe.is_invisible||!1,onChange:vt=>{Xe(vt.target.checked,Ue,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),$e&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(oe.default,{checked:Oe.actual_output_visible||!1,onChange:vt=>{Xe(vt.target.checked,Ue,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),$e&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(oe.default,{checked:Oe.last_match_rule||!1,onChange:vt=>{Xe(vt.target.checked,Ue,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),fe.createElement("div",{onClick:()=>Ee(Oe,Ue),style:je?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},fe.createElement("span",{className:de.del},"\u5220\u9664")))})),fe.createElement(me.Z,{close:!0,data:ce.dataUrl,filename:ce.filename,type:ce.dataUrl.length?"txt":"",onClose:()=>Ie(Ae({},ne)),monacoEditor:{value:ce.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):fe.createElement(fe.Fragment,null)};var Ye=He},16837:function(Lt,Ot,ze){"use strict";ze.d(Ot,{c:function(){return yt}});var Ze=(y=>(y.FirstPage="firstPage",y.PrevPage="prevPage",y.NextPage="nextPage",y))(Ze||{}),yt=(y=>(y[y.Single=0]="Single",y[y.Multiple=1]="Multiple",y[y.Judge=2]="Judge",y[y.Fill=3]="Fill",y[y.Subjective=4]="Subjective",y[y.Shixun=5]="Shixun",y[y.Program=6]="Program",y[y.Combine=7]="Combine",y))(yt||{})},90290:function(Lt,Ot,ze){"use strict";ze.d(Ot,{AL:function(){return ve},Iy:function(){return de},Qv:function(){return re},ez:function(){return fe},jb:function(){return x}});var Ze=ze(32834),yt=ze.n(Ze),y=ze(11690),Se=ze.n(y);let ye=1;function E(be,xe){const Ae=be.match(/^(\s+)(?:```)/);if(Ae===null)return xe;const Me=Ae[1];return xe.split(`
`).map(Be=>{const Ce=Be.match(/^\s+/);if(Ce===null)return Be;const[De]=Ce;return De.length>=Me.length?Be.slice(Me.length):Be}).join(`
`)}let z=[],oe=["<ul>"];const se=new(yt()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function de(){z.length=0,oe=["<ul>"]}const x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function te(be,xe,Ae,Me){if(xe>=be.length||be[xe].level<=Ae)return xe;var Be=be[xe];Me.push("<li><a href='#"+ye+Be.anchor+"'>"+Be.text+"</a>"),xe++;var Ce=[];return xe=te(be,xe,Be.level,Ce),Ce.length>0&&(Me.push("<ul>"),Ce.forEach(function(De){Me.push(De)}),Me.push("</ul>")),Me.push("</li>"),xe=te(be,xe,Ae,Me),xe}function re(){return te(z,0,0,oe),oe.push("</ul>"),oe.join("")}const ae={heading(be){const xe=ee.exec(be);if(ye+=1,xe)return{type:"heading",raw:xe[0],depth:xe[1].length,text:xe[2]}},fences(be){const xe=this.rules.block.fences.exec(be);if(xe){const Ae=xe[0];let Me=E(Ae,xe[3]||"");const Be=xe[2]?xe[2].trim():xe[2];if(["latex","katex","math"].indexOf(Be)>=0){const Ce=pe(),De=Me;Me=Ce,me[Ce]={type:"block",expression:De}}return{type:"code",raw:Ae,lang:Be,text:Me}}}},ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let he=0;const pe=()=>`__special_katext_id_${he++}__`;let me={};function fe(){return me}function ve(){he=0,me={}}function ke(be){return be=be.replace(ue,(xe,Ae)=>{const Me=pe();return me[Me]={type:"inline",expression:Ae},Me}),be}const Te=se.listitem;se.listitem=function(be){return Te(ke(be))};const Pe=se.paragraph;se.paragraph=function(be){return Pe(ke(be))};const _e=se.tablecell;se.tablecell=function(be,xe){return _e(ke(be),xe)},se.code=function(be,xe,Ae){const Me=(xe||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${be}</p>`:`<pre class="prettyprint linenums"><code class="language-${xe}">${Ae?be:(0,y.escape)(be,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ae?be:(0,y.escape)(be,!0))+"</code></pre>"},se.heading=function(be,xe,Ae){let Me=this.options.headerPrefix+Ae.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return z.push({anchor:Me,level:xe,text:be}),"<h"+xe+' id="'+ye+Me+'">'+be+"</h"+xe+">"},yt().setOptions({silent:!0,gfm:!0,pedantic:!1}),yt().use({tokenizer:ae,renderer:se}),Ot.ZP=yt()},89613:function(Lt,Ot,ze){"use strict";ze.d(Ot,{G:function(){return ye},t:function(){return Se}});var Ze=ze(7062),yt=ze.n(Ze);const y=null;function Se(E,z){let oe=yt().get("__ec");oe||(oe={}),oe[E]=z,yt().set("__ec",oe)}function ye(E,z){let oe=yt().get("__ec");return oe?oe[E]===void 0?z:oe[E]:z}},47257:function(Lt){(function(Ot){(function(ze){if(1)Lt.exports=ze();else var Ze})(function(){var ze,Ze,yt;return function(){function y(Se,ye,E){function z(ee,de){if(!ye[ee]){if(!Se[ee]){var x=void 0;if(!de&&x)return require(ee,!0);if(oe)return oe(ee,!0);var te=new Error("Cannot find module '"+ee+"'");throw te.code="MODULE_NOT_FOUND",te}var re=ye[ee]={exports:{}};Se[ee][0].call(re.exports,function(ae){var ue=Se[ee][1][ae];return z(ue||ae)},re,re.exports,y,Se,ye,E)}return ye[ee].exports}for(var oe=void 0,se=0;se<E.length;se++)z(E[se]);return z}return y}()({1:[function(y,Se,ye){"use strict";var E=y("./browser/client");E.Buffer=y("buffer").Buffer,E.urllib=y("../shims/xhr"),E.version=y("./browser/version").version,Se.exports=E},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.slice.js");var se=y("assert"),ee=y("../common/utils/checkBucketName"),de=ee.checkBucketName,x=ye;function te(ae){return Array.isArray?Array.isArray(ae):Object.prototype.toString.call(ae)==="[object Array]"}function re(ae){return ae?te(ae)?ae:[ae]:[]}x.useBucket=function(ue){return de(ue),this.options.bucket=ue,this},x.setBucket=function(ue){return de(ue),this.options.bucket=ue,this},x.getBucket=function(){return this.options.bucket},x.deleteBucket=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me){var fe,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return fe=this._bucketRequestParams("DELETE",pe,"",me),Te.next=3,this.request(fe);case 3:if(ve=Te.sent,!(ve.status===200||ve.status===204)){Te.next=6;break}return Te.abrupt("return",{res:ve.res});case 6:return Te.next=8,this.requestError(ve);case 8:throw Te.sent;case 9:case"end":return Te.stop()}},he,this)}));function ue(he,pe){return ae.apply(this,arguments)}return ue}(),x.putBucketACL=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me,fe){var ve,ke;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ve=this._bucketRequestParams("PUT",pe,"acl",fe),ve.headers={"x-oss-acl":me},ve.successStatuses=[200],Pe.next=5,this.request(ve);case 5:return ke=Pe.sent,Pe.abrupt("return",{bucket:ke.headers.location&&ke.headers.location.substring(1)||null,res:ke.res});case 7:case"end":return Pe.stop()}},he,this)}));function ue(he,pe,me){return ae.apply(this,arguments)}return ue}(),x.getBucketACL=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me){var fe,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return fe=this._bucketRequestParams("GET",pe,"acl",me),fe.successStatuses=[200],fe.xmlResponse=!0,Te.next=5,this.request(fe);case 5:return ve=Te.sent,Te.abrupt("return",{acl:ve.data.AccessControlList.Grant,owner:{id:ve.data.Owner.ID,displayName:ve.data.Owner.DisplayName},res:ve.res});case 7:case"end":return Te.stop()}},he,this)}));function ue(he,pe){return ae.apply(this,arguments)}return ue}(),x.putBucketLogging=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me,fe){var ve,ke,Te;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ve=this._bucketRequestParams("PUT",pe,"logging",fe),ke=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(pe,`</TargetBucket>
`),me&&(ke+="<TargetPrefix>".concat(me,`</TargetPrefix>
`)),ke+=`</LoggingEnabled>
</BucketLoggingStatus>`,ve.content=ke,ve.mime="xml",ve.successStatuses=[200],_e.next=9,this.request(ve);case 9:return Te=_e.sent,_e.abrupt("return",{res:Te.res});case 11:case"end":return _e.stop()}},he,this)}));function ue(he,pe,me){return ae.apply(this,arguments)}return ue}(),x.getBucketLogging=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me){var fe,ve,ke;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return fe=this._bucketRequestParams("GET",pe,"logging",me),fe.successStatuses=[200],fe.xmlResponse=!0,Pe.next=5,this.request(fe);case 5:return ve=Pe.sent,ke=ve.data.LoggingEnabled,Pe.abrupt("return",{enable:!!ke,prefix:ke&&ke.TargetPrefix||null,res:ve.res});case 8:case"end":return Pe.stop()}},he,this)}));function ue(he,pe){return ae.apply(this,arguments)}return ue}(),x.deleteBucketLogging=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me){var fe,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return fe=this._bucketRequestParams("DELETE",pe,"logging",me),fe.successStatuses=[204,200],Te.next=4,this.request(fe);case 4:return ve=Te.sent,Te.abrupt("return",{res:ve.res});case 6:case"end":return Te.stop()}},he,this)}));function ue(he,pe){return ae.apply(this,arguments)}return ue}(),x.putBucketCORS=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me,fe){var ve,ke,Te,Pe,_e,be,xe,Ae,Me,Be;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:for(me=me||[],se(me.length,"rules is required"),me.forEach(function(He){se(He.allowedOrigin,"allowedOrigin is required"),se(He.allowedMethod,"allowedMethod is required")}),ve=this._bucketRequestParams("PUT",pe,"cors",fe),ke=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,Te=function(Ke){ke+="<AllowedOrigin>".concat(Ke,"</AllowedOrigin>")},Pe=function(Ke){ke+="<AllowedMethod>".concat(Ke,"</AllowedMethod>")},_e=function(Ke){ke+="<AllowedHeader>".concat(Ke,"</AllowedHeader>")},be=function(Ke){ke+="<ExposeHeader>".concat(Ke,"</ExposeHeader>")},xe=0,Ae=me.length;xe<Ae;xe++)Me=me[xe],ke+="<CORSRule>",re(Me.allowedOrigin).forEach(Te),re(Me.allowedMethod).forEach(Pe),re(Me.allowedHeader).forEach(_e),re(Me.exposeHeader).forEach(be),Me.maxAgeSeconds&&(ke+="<MaxAgeSeconds>".concat(Me.maxAgeSeconds,"</MaxAgeSeconds>")),ke+="</CORSRule>";return ke+="</CORSConfiguration>",ve.content=ke,ve.mime="xml",ve.successStatuses=[200],De.next=16,this.request(ve);case 16:return Be=De.sent,De.abrupt("return",{res:Be.res});case 18:case"end":return De.stop()}},he,this)}));function ue(he,pe,me){return ae.apply(this,arguments)}return ue}(),x.getBucketCORS=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me){var fe,ve,ke,Te;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return fe=this._bucketRequestParams("GET",pe,"cors",me),fe.successStatuses=[200],fe.xmlResponse=!0,_e.next=5,this.request(fe);case 5:return ve=_e.sent,ke=[],ve.data&&ve.data.CORSRule&&(Te=ve.data.CORSRule,te(Te)||(Te=[Te]),Te.forEach(function(be){var xe={};Object.keys(be).forEach(function(Ae){xe[Ae.slice(0,1).toLowerCase()+Ae.slice(1,Ae.length)]=be[Ae]}),ke.push(xe)})),_e.abrupt("return",{rules:ke,res:ve.res});case 9:case"end":return _e.stop()}},he,this)}));function ue(he,pe){return ae.apply(this,arguments)}return ue}(),x.deleteBucketCORS=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me){var fe,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return fe=this._bucketRequestParams("DELETE",pe,"cors",me),fe.successStatuses=[204],Te.next=4,this.request(fe);case 4:return ve=Te.sent,Te.abrupt("return",{res:ve.res});case 6:case"end":return Te.stop()}},he,this)}));function ue(he,pe){return ae.apply(this,arguments)}return ue}(),x.putBucketReferer=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me,fe,ve){var ke,Te,Pe,_e;return z.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(ke=this._bucketRequestParams("PUT",pe,"referer",ve),Te=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,Te+=" <AllowEmptyReferer>".concat(me?"true":"false",`</AllowEmptyReferer>
`),fe&&fe.length>0){for(Te+=` <RefererList>
`,Pe=0;Pe<fe.length;Pe++)Te+=" <Referer>".concat(fe[Pe],`</Referer>
`);Te+=` </RefererList>
`}else Te+=` <RefererList />
`;return Te+="</RefererConfiguration>",ke.content=Te,ke.mime="xml",ke.successStatuses=[200],xe.next=10,this.request(ke);case 10:return _e=xe.sent,xe.abrupt("return",{res:_e.res});case 12:case"end":return xe.stop()}},he,this)}));function ue(he,pe,me,fe){return ae.apply(this,arguments)}return ue}(),x.getBucketReferer=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me){var fe,ve,ke;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return fe=this._bucketRequestParams("GET",pe,"referer",me),fe.successStatuses=[200],fe.xmlResponse=!0,Pe.next=5,this.request(fe);case 5:return ve=Pe.sent,ke=ve.data.RefererList.Referer||null,ke&&(te(ke)||(ke=[ke])),Pe.abrupt("return",{allowEmpty:ve.data.AllowEmptyReferer==="true",referers:ke,res:ve.res});case 9:case"end":return Pe.stop()}},he,this)}));function ue(he,pe){return ae.apply(this,arguments)}return ue}(),x.deleteBucketReferer=function(){var ae=(0,oe.default)(z.default.mark(function he(pe,me){return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ve.next=2,this.putBucketReferer(pe,!0,null,me);case 2:return ve.abrupt("return",ve.sent);case 3:case"end":return ve.stop()}},he,this)}));function ue(he,pe){return ae.apply(this,arguments)}return ue}(),x._bucketRequestParams=function(ue,he,pe,me){return{method:ue,bucket:he,subres:pe,timeout:me&&me.timeout,ctx:me&&me.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(y,Se,ye){(function(E,z){(function(){"use strict";var oe=y("@babel/runtime/helpers/interopRequireDefault"),se=oe(y("@babel/runtime/regenerator")),ee=oe(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.to-string.js");var de=y("debug")("ali-oss"),x=y("xml2js"),te=y("agentkeepalive"),re=y("merge-descriptors"),ae=y("platform"),ue=y("utility"),he=y("urllib"),pe=y("./version"),me=y("bowser"),fe=y("../common/signUtils"),ve=y("../common/client/initOptions"),ke=y("../common/utils/createRequest"),Te=ke.createRequest,Pe=y("../common/utils/encoder"),_e=Pe.encoder,be=y("../common/client/getReqUrl"),xe=be.getReqUrl,Ae=y("../common/utils/setSTSToken"),Me=Ae.setSTSToken,Be=y("../common/utils/retry"),Ce=Be.retry,De=y("../common/utils/isFunction"),He=De.isFunction,Ke=new te;function Ye(){var rt=ae.name,Xe=ae.version;rt&&rt.toLowerCase&&rt.toLowerCase()==="ie"&&Xe.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function it(){return location&&location.protocol==="https:"}function Re(rt,Xe){if(Ye(),!(this instanceof Re))return new Re(rt,Xe);rt&&rt.inited?this.options=rt:this.options=Re.initOptions(rt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=he,this.agent=this.options.agent||Ke),this.ctx=Xe,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Se.exports=Re,Re.initOptions=function(Xe){Xe.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Je=Object.assign({secure:it(),useFetch:!1},Xe);return ve(Je)};var We=Re.prototype;We.debug=de,re(We,y("./object")),re(We,y("./bucket")),re(We,y("../common/bucket/getBucketWebsite")),re(We,y("../common/bucket/putBucketWebsite")),re(We,y("../common/bucket/deleteBucketWebsite")),re(We,y("../common/bucket/getBucketLifecycle")),re(We,y("../common/bucket/putBucketLifecycle")),re(We,y("../common/bucket/deleteBucketLifecycle")),re(We,y("../common/bucket/putBucketVersioning")),re(We,y("../common/bucket/getBucketVersioning")),re(We,y("../common/bucket/getBucketInventory")),re(We,y("../common/bucket/deleteBucketInventory")),re(We,y("../common/bucket/listBucketInventory")),re(We,y("../common/bucket/putBucketInventory")),re(We,y("../common/bucket/abortBucketWorm")),re(We,y("../common/bucket/completeBucketWorm")),re(We,y("../common/bucket/extendBucketWorm")),re(We,y("../common/bucket/getBucketWorm")),re(We,y("../common/bucket/initiateBucketWorm")),re(We,y("./managed-upload")),re(We,y("../common/multipart-copy")),re(We,y("../common/multipart")),re(We,y("../common/parallel")),We.signature=function(Xe){return this.debug("authorization stringToSign: %s",Xe,"info"),fe.computeSignature(this.options.accessKeySecret,Xe,this.options.headerEncoding)},We._getReqUrl=xe,We.authorization=function(Xe,Je,Ve,at){var Qe=fe.buildCanonicalString(Xe.toUpperCase(),Je,{headers:at,parameters:Ve});return fe.authorization(this.options.accessKeyId,this.options.accessKeySecret,Qe,this.options.headerEncoding)},We.request=function(){var rt=(0,ee.default)(se.default.mark(function Xe(Je){var Ve=this;return se.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!this.options.retryMax){Qe.next=6;break}return Qe.next=3,Ce(et.bind(this),this.options.retryMax,{errorHandler:function(st){var $e=function(je){if(Je.stream)return!1;var ne=[-1,-2].includes(je.status),ce=Ve.options.requestErrorRetryHandle||function(){return!0};return ne&&ce(je)};return!!$e(st)}})(Je);case 3:return Qe.abrupt("return",Qe.sent);case 6:return Qe.abrupt("return",et.call(this,Je));case 7:case"end":return Qe.stop()}},Xe,this)}));return function(Xe){return rt.apply(this,arguments)}}();function et(rt){return nt.apply(this,arguments)}function nt(){return nt=(0,ee.default)(se.default.mark(function rt(Xe){var Je,Ve,at,Qe,ut,st;return se.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!(this.options.stsToken&&He(this.options.refreshSTSToken))){Ne.next=3;break}return Ne.next=3,Me.call(this);case 3:return Je=Te.call(this,Xe),this.options.useFetch||(Je.params.mode="disable-fetch"),Qe=!!Xe.stream,Ne.prev=6,Ne.next=9,this.urllib.request(Je.url,Je.params);case 9:Ve=Ne.sent,this.debug("response %s %s, got %s, headers: %j",Xe.method,Je.url,Ve.status,Ve.headers,"info"),Ne.next=16;break;case 13:Ne.prev=13,Ne.t0=Ne.catch(6),at=Ne.t0;case 16:if(!(Ve&&Xe.successStatuses&&Xe.successStatuses.indexOf(Ve.status)===-1)){Ne.next=28;break}return Ne.next=19,this.requestError(Ve);case 19:if(ut=Ne.sent,!(ut.code==="RequestTimeTooSkewed"&&!Qe)){Ne.next=25;break}return this.options.amendTimeSkewed=+new Date(ut.serverTime)-new Date,Ne.next=24,this.request(Xe);case 24:return Ne.abrupt("return",Ne.sent);case 25:ut.params=Xe,Ne.next=32;break;case 28:if(!at){Ne.next=32;break}return Ne.next=31,this.requestError(at);case 31:ut=Ne.sent;case 32:if(!ut){Ne.next=34;break}throw ut;case 34:if(!Xe.xmlResponse){Ne.next=39;break}return Ne.next=37,this.parseXML(Ve.data);case 37:st=Ne.sent,Ve.data=st;case 39:return Ne.abrupt("return",Ve);case 40:case"end":return Ne.stop()}},rt,this,[[6,13]])})),nt.apply(this,arguments)}We._getResource=function(Xe){var Je="/";return Xe.bucket&&(Je+="".concat(Xe.bucket,"/")),Xe.object&&(Je+=_e(Xe.object,this.options.headerEncoding)),Je},We._escape=function(Xe){return ue.encodeURIComponent(Xe).replace(/%2F/g,"/")},We._getUserAgent=function(){var Xe=z&&z.browser?"js":"nodejs",Je="aliyun-sdk-".concat(Xe,"/").concat(pe.version),Ve=ae.description;return!Ve&&z&&(Ve="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat(Je," ").concat(Ve))},We._checkUserAgent=function(Xe){var Je=Xe.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Je},We.checkBrowserAndVersion=function(Xe,Je){return me.name===Xe&&me.version.split(".")[0]===Je},We.parseXML=function(Xe){return new Promise(function(Je,Ve){E.isBuffer(Xe)&&(Xe=Xe.toString()),x.parseString(Xe,{explicitRoot:!1,explicitArray:!1},function(at,Qe){at?Ve(at):Je(Qe)})})},We.requestError=function(){var rt=(0,ee.default)(se.default.mark(function Je(Ve){var at,Qe,ut,st;return se.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(at=null,!(!Ve.data||!Ve.data.length)){Ne.next=5;break}Ve.status===-1||Ve.status===-2?(at=new Error(Ve.message),at.name=Ve.name,at.status=Ve.status,at.code=Ve.name):(Ve.status===404?(at=new Error("Object not exists"),at.name="NoSuchKeyError",at.status=404,at.code="NoSuchKey"):Ve.status===412?(at=new Error("Pre condition failed"),at.name="PreconditionFailedError",at.status=412,at.code="PreconditionFailed"):(at=new Error("Unknow error, status: ".concat(Ve.status)),at.name="UnknownError",at.status=Ve.status),at.requestId=Ve.headers["x-oss-request-id"],at.host=""),Ne.next=32;break;case 5:return Qe=String(Ve.data),this.debug("request response error data: %s",Qe,"error"),Ne.prev=7,Ne.next=10,this.parseXML(Qe);case 10:if(Ne.t0=Ne.sent,Ne.t0){Ne.next=13;break}Ne.t0={};case 13:ut=Ne.t0,Ne.next=23;break;case 16:return Ne.prev=16,Ne.t1=Ne.catch(7),this.debug(Qe,"error"),Ne.t1.message+=`
raw xml: `.concat(Qe),Ne.t1.status=Ve.status,Ne.t1.requestId=Ve.headers["x-oss-request-id"],Ne.abrupt("return",Ne.t1);case 23:st=ut.Message||"unknow request error, status: ".concat(Ve.status),ut.Condition&&(st+=" (condition: ".concat(ut.Condition,")")),at=new Error(st),at.name=ut.Code?"".concat(ut.Code,"Error"):"UnknownError",at.status=Ve.status,at.code=ut.Code,at.requestId=ut.RequestId,at.hostId=ut.HostId,at.serverTime=ut.ServerTime;case 32:return this.debug("generate error %j",at,"error"),Ne.abrupt("return",at);case 34:case"end":return Ne.stop()}},Je,this,[[7,16]])}));function Xe(Je){return rt.apply(this,arguments)}return Xe}()}).call(this)}).call(this,{isBuffer:y("../../node_modules/is-buffer/index.js")},y("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(y,Se,ye){(function(E){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js");var se=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("util"),de=y("path"),x=y("mime"),te=y("copy-to"),re=y("../common/utils/isBlob"),ae=re.isBlob,ue=y("../common/utils/isFile"),he=ue.isFile,pe=y("../common/utils/isBuffer"),me=pe.isBuffer,fe=ye;fe.multipartUpload=function(){var _e=(0,se.default)(oe.default.mark(function xe(Ae,Me){var Be,Ce,De,He,Ke,Ye,it,Re,We,et=arguments;return oe.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(Be=et.length>2&&et[2]!==void 0?et[2]:{},this.resetCancelFlag(),Be.disabledMD5=Be.disabledMD5===void 0?!0:!!Be.disabledMD5,!(Be.checkpoint&&Be.checkpoint.uploadId)){rt.next=8;break}return Me&&he(Me)&&(Be.checkpoint.file=Me),rt.next=7,this._resumeMultipart(Be.checkpoint,Be);case 7:return rt.abrupt("return",rt.sent);case 8:return Ce=102400,Be.mime||(he(Me)?Be.mime=x.getType(de.extname(Me.name)):ae(Me)?Be.mime=Me.type:me(Me)?Be.mime="":Be.mime=x.getType(de.extname(Me))),Be.headers=Be.headers||{},this._convertMetaToHeaders(Be.meta,Be.headers),rt.next=14,this._getFileSize(Me);case 14:if(De=rt.sent,!(De<Ce)){rt.next=26;break}return Be.contentLength=De,rt.next=19,this.put(Ae,Me,Be);case 19:if(He=rt.sent,!(Be&&Be.progress)){rt.next=23;break}return rt.next=23,Be.progress(1);case 23:return Ke={res:He.res,bucket:this.options.bucket,name:Ae,etag:He.res.headers.etag},(Be.headers&&Be.headers["x-oss-callback"]||Be.callback)&&(Ke.data=He.data),rt.abrupt("return",Ke);case 26:if(!(Be.partSize&&parseInt(Be.partSize,10)!==Be.partSize)){rt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Be.partSize&&Be.partSize<Ce)){rt.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ce));case 30:return rt.next=32,this.initMultipartUpload(Ae,Be);case 32:if(Ye=rt.sent,it=Ye.uploadId,Re=this._getPartSize(De,Be.partSize),We={file:Me,name:Ae,fileSize:De,partSize:Re,uploadId:it,doneParts:[]},!(Be&&Be.progress)){rt.next=39;break}return rt.next=39,Be.progress(0,We,Ye.res);case 39:return rt.next=41,this._resumeMultipart(We,Be);case 41:return rt.abrupt("return",rt.sent);case 42:case"end":return rt.stop()}},xe,this)}));function be(xe,Ae){return _e.apply(this,arguments)}return be}(),fe._resumeMultipart=function(){var _e=(0,se.default)(oe.default.mark(function xe(Ae,Me){var Be,Ce,De,He,Ke,Ye,it,Re,We,et,nt,rt,Xe,Je,Ve,at,Qe,ut,st;return oe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(Be=this,!this.isCancel()){Ne.next=3;break}throw this._makeCancelEvent();case 3:return Ce=Ae.file,De=Ae.fileSize,He=Ae.partSize,Ke=Ae.uploadId,Ye=Ae.doneParts,it=Ae.name,Re=[],Ye.length>0&&te(Ye).to(Re),We=this._divideParts(De,He),et=We.length,nt=!1,rt=function(ne,ce){return new Promise(function(){var Ie=(0,se.default)(oe.default.mark(function Fe(we,Ee){var Oe,Ue,tt,Ge,ft;return oe.default.wrap(function(vt){for(;;)switch(vt.prev=vt.next){case 0:if(vt.prev=0,ne.isCancel()){vt.next=29;break}return Oe=We[ce-1],vt.next=5,ne._createBuffer(Ce,Oe.start,Oe.end);case 5:return Ue=vt.sent,tt={content:Ue,size:Oe.end-Oe.start},vt.prev=7,vt.next=10,ne._uploadPart(it,Ke,ce,tt,Me);case 10:Ge=vt.sent,vt.next=18;break;case 13:if(vt.prev=13,vt.t0=vt.catch(7),vt.t0.status!==404){vt.next=17;break}throw ne._makeAbortEvent();case 17:throw vt.t0;case 18:if(!(!ne.isCancel()&&!nt)){vt.next=26;break}if(Ae.doneParts.push({number:ce,etag:Ge.res.headers.etag}),!Me.progress){vt.next=23;break}return vt.next=23,Me.progress(Ye.length/(et+1),Ae,Ge.res);case 23:we({number:ce,etag:Ge.res.headers.etag}),vt.next=27;break;case 26:we();case 27:vt.next=30;break;case 29:we();case 30:vt.next=41;break;case 32:vt.prev=32,vt.t1=vt.catch(0),ft=new Error,ft.name=vt.t1.name,ft.message=vt.t1.message,ft.stack=vt.t1.stack,ft.partNum=ce,te(vt.t1).to(ft),Ee(ft);case 41:case"end":return vt.stop()}},Fe,null,[[0,32],[7,13]])}));return function(Fe,we){return Ie.apply(this,arguments)}}())},Xe=Array.from(new Array(et),function(je,ne){return ne+1}),Je=Re.map(function(je){return je.number}),Ve=Xe.filter(function(je){return Je.indexOf(je)<0}),at=5,Qe=Me.parallel||at,Ne.next=17,this._parallel(Ve,Qe,function(je){return new Promise(function(ne,ce){rt(Be,je).then(function(Ie){Ie&&Re.push(Ie),ne()}).catch(function(Ie){ce(Ie)})})});case 17:if(ut=Ne.sent,nt=!0,st=ut.find(function(je){return je.name==="abort"}),!st){Ne.next=22;break}throw st;case 22:if(!this.isCancel()){Ne.next=25;break}throw rt=null,this._makeCancelEvent();case 25:if(!(ut&&ut.length>0)){Ne.next=28;break}throw ut[0].message="Failed to upload some parts with error: ".concat(ut[0].toString()," part_num: ").concat(ut[0].partNum),ut[0];case 28:return Ne.next=30,this.completeMultipartUpload(it,Ke,Re,Me);case 30:return Ne.abrupt("return",Ne.sent);case 31:case"end":return Ne.stop()}},xe,this)}));function be(xe,Ae){return _e.apply(this,arguments)}return be}(),fe._getFileSize=function(){var _e=(0,se.default)(oe.default.mark(function xe(Ae){return oe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(!me(Ae)){Be.next=4;break}return Be.abrupt("return",Ae.length);case 4:if(!(ae(Ae)||he(Ae))){Be.next=6;break}return Be.abrupt("return",Ae.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Be.stop()}},xe)}));function be(xe){return _e.apply(this,arguments)}return be}();var ve=y("stream"),ke=ve.Readable;function Te(_e,be){if(!(this instanceof Te))return new Te(_e,be);ke.call(this,be),this.file=_e,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(Te,ke),Te.prototype.readFileAndPush=function(be){if(this.fileBuffer)for(var xe=!0;xe&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Ae=this.start,Me=Ae+be;Me=Me>this.fileBuffer.length?this.fileBuffer.length:Me,this.start=Me,xe=this.push(this.fileBuffer.slice(Ae,Me))}},Te.prototype._read=function(be){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var xe=16*1024;be=be||xe;var Ae=this;this.reader.onload=function(Be){Ae.fileBuffer=E.from(new Uint8Array(Be.target.result)),Ae.file=null,Ae.readFileAndPush(be)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(be)};function Pe(_e){return _e.arrayBuffer?_e.arrayBuffer():new Promise(function(be,xe){var Ae=new FileReader;Ae.onload=function(Me){be(Me.target.result)},Ae.onerror=function(Me){xe(Me)},Ae.readAsArrayBuffer(_e)})}fe._createBuffer=function(){var _e=(0,se.default)(oe.default.mark(function xe(Ae,Me,Be){var Ce,De;return oe.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(!(ae(Ae)||he(Ae))){Ke.next=8;break}return Ce=Ae.slice(Me,Be),Ke.next=4,Pe(Ce);case 4:return De=Ke.sent,Ke.abrupt("return",E.from(De));case 8:if(!me(Ae)){Ke.next=12;break}return Ke.abrupt("return",Ae.subarray(Me,Be));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Ke.stop()}},xe)}));function be(xe,Ae,Me){return _e.apply(this,arguments)}return be}(),fe._getPartSize=function(be,xe){var Ae=1e4,Me=1*1024*1024;xe||(xe=Me);var Be=Math.ceil(be/Ae);return xe<Be&&(xe=Be,console.warn("partSize has been set to ".concat(xe,", because the partSize you provided causes partNumber to be greater than 10,000"))),xe},fe._divideParts=function(be,xe){for(var Ae=Math.ceil(be/xe),Me=[],Be=0;Be<Ae;Be++){var Ce=xe*Be,De=Math.min(Ce+xe,be);Me.push({start:Ce,end:De})}return Me}}).call(this)}).call(this,y("buffer").Buffer)},{"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,buffer:90,"copy-to":94,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,mime:374,path:378,stream:398,util:419}],5:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.promise.js");var z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("fs"),ee=y("copy-to"),de=y("path"),x=y("mime"),te=y("../common/callback"),re=y("merge-descriptors"),ae=y("../common/utils/isBlob"),ue=ae.isBlob,he=y("../common/utils/isFile"),pe=he.isFile,me=y("../common/utils/isBuffer"),fe=me.isBuffer,ve=y("../common/utils/obj2xml"),ke=ve.obj2xml,Te=ye;Te.append=function(){var Pe=(0,oe.default)(z.default.mark(function be(xe,Ae,Me){var Be;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return Me=Me||{},Me.position===void 0&&(Me.position="0"),Me.subres={append:"",position:Me.position},Me.method="POST",De.next=6,this.put(xe,Ae,Me);case 6:return Be=De.sent,Be.nextAppendPosition=Be.res.headers["x-oss-next-append-position"],De.abrupt("return",Be);case 9:case"end":return De.stop()}},be,this)}));function _e(be,xe,Ae){return Pe.apply(this,arguments)}return _e}(),Te.put=function(){var Pe=(0,oe.default)(z.default.mark(function be(xe,Ae,Me){var Be,Ce,De,He,Ke;return z.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(Me=Me||{},Me.disabledMD5=Me.disabledMD5===void 0?!0:!!Me.disabledMD5,Me.headers=Me.headers||{},xe=this._objectName(xe),!fe(Ae)){it.next=8;break}Be=Ae,it.next=19;break;case 8:if(!(ue(Ae)||pe(Ae))){it.next=18;break}return Me.mime||(pe(Ae)?Me.mime=x.getType(de.extname(Ae.name)):Me.mime=Ae.type),it.next=12,this._createBuffer(Ae,0,Ae.size);case 12:return Be=it.sent,it.next=15,this._getFileSize(Ae);case 15:Me.contentLength=it.sent,it.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Me.meta,Me.headers),Ce=Me.method||"PUT",De=this._objectRequestParams(Ce,xe,Me),te.encodeCallback(De,Me),De.mime=Me.mime,De.disabledMD5=Me.disabledMD5,De.content=Be,De.successStatuses=[200],it.next=29,this.request(De);case 29:return He=it.sent,Ke={name:xe,url:this._objectUrl(xe),res:He.res},De.headers&&De.headers["x-oss-callback"]&&(Ke.data=JSON.parse(He.data.toString())),it.abrupt("return",Ke);case 33:case"end":return it.stop()}},be,this)}));function _e(be,xe,Ae){return Pe.apply(this,arguments)}return _e}(),Te.putStream=function(){var Pe=(0,oe.default)(z.default.mark(function be(xe,Ae,Me){var Be,Ce,De,He;return z.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Me=Me||{},Me.headers=Me.headers||{},xe=this._objectName(xe),Me.contentLength?Me.headers["Content-Length"]=Me.contentLength:Me.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Me.meta,Me.headers),Be=Me.method||"PUT",Ce=this._objectRequestParams(Be,xe,Me),te.encodeCallback(Ce,Me),Ce.mime=Me.mime,Ce.stream=Ae,Ce.successStatuses=[200],Ye.next=13,this.request(Ce);case 13:return De=Ye.sent,He={name:xe,url:this._objectUrl(xe),res:De.res},Ce.headers&&Ce.headers["x-oss-callback"]&&(He.data=JSON.parse(De.data.toString())),Ye.abrupt("return",He);case 17:case"end":return Ye.stop()}},be,this)}));function _e(be,xe,Ae){return Pe.apply(this,arguments)}return _e}(),re(Te,y("../common/object/copyObject")),re(Te,y("../common/object/getObjectTagging")),re(Te,y("../common/object/putObjectTagging")),re(Te,y("../common/object/deleteObjectTagging")),re(Te,y("../common/image")),re(Te,y("../common/object/getBucketVersions")),re(Te,y("../common/object/getACL")),re(Te,y("../common/object/putACL")),re(Te,y("../common/object/head")),re(Te,y("../common/object/delete")),re(Te,y("../common/object/get")),re(Te,y("../common/object/putSymlink")),re(Te,y("../common/object/getSymlink")),re(Te,y("../common/object/deleteMulti")),re(Te,y("../common/object/getObjectMeta")),re(Te,y("../common/object/getObjectUrl")),re(Te,y("../common/object/generateObjectUrl")),re(Te,y("../common/object/signatureUrl")),re(Te,y("../common/object/asyncSignatureUrl")),Te.putMeta=function(){var Pe=(0,oe.default)(z.default.mark(function be(xe,Ae,Me){var Be;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return De.next=2,this.copy(xe,xe,{meta:Ae||{},timeout:Me&&Me.timeout,ctx:Me&&Me.ctx});case 2:return Be=De.sent,De.abrupt("return",Be);case 4:case"end":return De.stop()}},be,this)}));function _e(be,xe,Ae){return Pe.apply(this,arguments)}return _e}(),Te.list=function(){var Pe=(0,oe.default)(z.default.mark(function be(xe,Ae){var Me,Be,Ce,De,He;return z.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Me=this._objectRequestParams("GET","",Ae),Me.query=xe,Me.xmlResponse=!0,Me.successStatuses=[200],Ye.next=6,this.request(Me);case 6:return Be=Ye.sent,Ce=Be.data.Contents||[],De=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(it){return{name:it.Key,url:De._objectUrl(it.Key),lastModified:it.LastModified,etag:it.ETag,type:it.Type,size:Number(it.Size),storageClass:it.StorageClass,owner:{id:it.Owner.ID,displayName:it.Owner.DisplayName}}})),He=Be.data.CommonPrefixes||null,He&&(Array.isArray(He)||(He=[He]),He=He.map(function(it){return it.Prefix})),Ye.abrupt("return",{res:Be.res,objects:Ce,prefixes:He,nextMarker:Be.data.NextMarker||null,isTruncated:Be.data.IsTruncated==="true"});case 13:case"end":return Ye.stop()}},be,this)}));function _e(be,xe){return Pe.apply(this,arguments)}return _e}(),Te.listV2=function(){var Pe=(0,oe.default)(z.default.mark(function be(xe){var Ae,Me,Be,Ce,De,He,Ke,Ye=arguments;return z.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ae=Ye.length>1&&Ye[1]!==void 0?Ye[1]:{},Me=xe["continuation-token"]||xe.continuationToken,Me&&(Ae.subres=Object.assign({"continuation-token":Me},Ae.subres)),Be=this._objectRequestParams("GET","",Ae),Be.query=Object.assign({"list-type":2},xe),delete Be.query["continuation-token"],delete Be.query.continuationToken,Be.xmlResponse=!0,Be.successStatuses=[200],Re.next=11,this.request(Be);case 11:return Ce=Re.sent,De=Ce.data.Contents||[],He=this,De&&(Array.isArray(De)||(De=[De]),De=De.map(function(We){var et=null;return We.Owner&&(et={id:We.Owner.ID,displayName:We.Owner.DisplayName}),{name:We.Key,url:He._objectUrl(We.Key),lastModified:We.LastModified,etag:We.ETag,type:We.Type,size:Number(We.Size),storageClass:We.StorageClass,owner:et}})),Ke=Ce.data.CommonPrefixes||null,Ke&&(Array.isArray(Ke)||(Ke=[Ke]),Ke=Ke.map(function(We){return We.Prefix})),Re.abrupt("return",{res:Ce.res,objects:De,prefixes:Ke,isTruncated:Ce.data.IsTruncated==="true",keyCount:+Ce.data.KeyCount,continuationToken:Ce.data.ContinuationToken||null,nextContinuationToken:Ce.data.NextContinuationToken||null});case 18:case"end":return Re.stop()}},be,this)}));function _e(be){return Pe.apply(this,arguments)}return _e}(),Te.restore=function(){var Pe=(0,oe.default)(z.default.mark(function be(xe){var Ae,Me,Be,Ce,De=arguments;return z.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ae=De.length>1&&De[1]!==void 0?De[1]:{type:"Archive"},Ae=Ae||{},Ae.subres=Object.assign({restore:""},Ae.subres),Ae.versionId&&(Ae.subres.versionId=Ae.versionId),Me=this._objectRequestParams("POST",xe,Ae),Ae.type==="ColdArchive"&&(Be={RestoreRequest:{Days:Ae.Days?Ae.Days:2,JobParameters:{Tier:Ae.JobParameters?Ae.JobParameters:"Standard"}}},Me.content=ke(Be,{headers:!0}),Me.mime="xml"),Me.successStatuses=[202],Ke.next=9,this.request(Me);case 9:return Ce=Ke.sent,Ke.abrupt("return",{res:Ce.res});case 11:case"end":return Ke.stop()}},be,this)}));function _e(be){return Pe.apply(this,arguments)}return _e}(),Te._objectUrl=function(_e){return this._getReqUrl({bucket:this.options.bucket,object:_e})},Te._objectRequestParams=function(_e,be,xe){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");xe=xe||{},be=this._objectName(be);var Ae={object:be,bucket:this.options.bucket,method:_e,subres:xe&&xe.subres,timeout:xe&&xe.timeout,ctx:xe&&xe.ctx};return xe.headers&&(Ae.headers={},ee(xe.headers).to(Ae.headers)),Ae},Te._objectName=function(_e){return _e.replace(/^\/+/,"")},Te._convertMetaToHeaders=function(_e,be){_e&&Object.keys(_e).forEach(function(xe){be["x-oss-meta-".concat(xe)]=_e[xe]})},Te._deleteFileSafe=function(_e){var be=this;return new Promise(function(xe){se.exists(_e,function(Ae){Ae?se.unlink(_e,function(Me){Me&&be.debug("unlink %j error: %s",_e,Me,"error"),xe()}):xe()})})}},{"../common/callback":24,"../common/image":27,"../common/object/asyncSignatureUrl":31,"../common/object/copyObject":32,"../common/object/delete":33,"../common/object/deleteMulti":34,"../common/object/deleteObjectTagging":35,"../common/object/generateObjectUrl":36,"../common/object/get":37,"../common/object/getACL":38,"../common/object/getBucketVersions":39,"../common/object/getObjectMeta":40,"../common/object/getObjectTagging":41,"../common/object/getObjectUrl":42,"../common/object/getSymlink":43,"../common/object/head":44,"../common/object/putACL":45,"../common/object/putObjectTagging":46,"../common/object/putSymlink":47,"../common/object/signatureUrl":48,"../common/utils/isBlob":64,"../common/utils/isBuffer":65,"../common/utils/isFile":67,"../common/utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,fs:89,"merge-descriptors":372,mime:374,path:378}],6:[function(y,Se,ye){"use strict";ye.version="6.18.1"},{}],7:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.abortBucketWorm=void 0;var se=y("../utils/checkBucketName");function ee(x,te){return de.apply(this,arguments)}function de(){return de=(0,oe.default)(z.default.mark(function x(te,re){var ae,ue;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return se.checkBucketName(te),ae=this._bucketRequestParams("DELETE",te,"worm",re),pe.next=4,this.request(ae);case 4:return ue=pe.sent,pe.abrupt("return",{res:ue.res,status:ue.status});case 6:case"end":return pe.stop()}},x,this)})),de.apply(this,arguments)}ye.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.completeBucketWorm=void 0;var se=y("../utils/checkBucketName");function ee(x,te,re){return de.apply(this,arguments)}function de(){return de=(0,oe.default)(z.default.mark(function x(te,re,ae){var ue,he;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return se.checkBucketName(te),ue=this._bucketRequestParams("POST",te,{wormId:re},ae),me.next=4,this.request(ue);case 4:return he=me.sent,me.abrupt("return",{res:he.res,status:he.status});case 6:case"end":return me.stop()}},x,this)})),de.apply(this,arguments)}ye.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.deleteBucketInventory=void 0;var se=y("../utils/checkBucketName");function ee(x,te){return de.apply(this,arguments)}function de(){return de=(0,oe.default)(z.default.mark(function x(te,re){var ae,ue,he,pe,me=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ae=me.length>2&&me[2]!==void 0?me[2]:{},ue=Object.assign({inventory:"",inventoryId:re},ae.subres),se.checkBucketName(te),he=this._bucketRequestParams("DELETE",te,ue,ae),he.successStatuses=[204],ve.next=7,this.request(he);case 7:return pe=ve.sent,ve.abrupt("return",{status:pe.status,res:pe.res});case 9:case"end":return ve.stop()}},x,this)})),de.apply(this,arguments)}ye.deleteBucketInventory=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=ye;de.deleteBucketLifecycle=function(){var x=(0,oe.default)(z.default.mark(function re(ae,ue){var he,pe;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ee(ae),he=this._bucketRequestParams("DELETE",ae,"lifecycle",ue),he.successStatuses=[204],fe.next=5,this.request(he);case 5:return pe=fe.sent,fe.abrupt("return",{res:pe.res});case 7:case"end":return fe.stop()}},re,this)}));function te(re,ae){return x.apply(this,arguments)}return te}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=ye;de.deleteBucketWebsite=function(){var x=(0,oe.default)(z.default.mark(function re(ae,ue){var he,pe;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ee(ae),he=this._bucketRequestParams("DELETE",ae,"website",ue),he.successStatuses=[204],fe.next=5,this.request(he);case 5:return pe=fe.sent,fe.abrupt("return",{res:pe.res});case 7:case"end":return fe.stop()}},re,this)}));function te(re,ae){return x.apply(this,arguments)}return te}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.extendBucketWorm=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function de(te,re,ae,ue){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(z.default.mark(function te(re,ae,ue,he){var pe,me,fe;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return se.checkBucketName(re),pe=this._bucketRequestParams("POST",re,{wormExtend:"",wormId:ae},he),me={ExtendWormConfiguration:{RetentionPeriodInDays:ue}},pe.mime="xml",pe.content=ee.obj2xml(me,{headers:!0}),pe.successStatuses=[200],ke.next=8,this.request(pe);case 8:return fe=ke.sent,ke.abrupt("return",{res:fe.res,status:fe.status});case 10:case"end":return ke.stop()}},te,this)})),x.apply(this,arguments)}ye.extendBucketWorm=de},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.getBucketInventory=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function de(te,re){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(z.default.mark(function te(re,ae){var ue,he,pe,me,fe=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ue=fe.length>2&&fe[2]!==void 0?fe[2]:{},he=Object.assign({inventory:"",inventoryId:ae},ue.subres),se.checkBucketName(re),pe=this._bucketRequestParams("GET",re,he,ue),pe.successStatuses=[200],pe.xmlResponse=!0,ke.next=8,this.request(pe);case 8:return me=ke.sent,ke.abrupt("return",{status:me.status,res:me.res,inventory:ee.formatInventoryConfig(me.data)});case 10:case"end":return ke.stop()}},te,this)})),x.apply(this,arguments)}ye.getBucketInventory=de},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],14:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=y("../utils/isArray"),x=de.isArray,te=y("../utils/formatObjKey"),re=te.formatObjKey,ae=ye;ae.getBucketLifecycle=function(){var ue=(0,oe.default)(z.default.mark(function pe(me,fe){var ve,ke,Te;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ee(me),ve=this._bucketRequestParams("GET",me,"lifecycle",fe),ve.successStatuses=[200],ve.xmlResponse=!0,_e.next=6,this.request(ve);case 6:return ke=_e.sent,Te=ke.data.Rule||null,Te&&(x(Te)||(Te=[Te]),Te=Te.map(function(be){return be.ID&&(be.id=be.ID,delete be.ID),be.Tag&&!x(be.Tag)&&(be.Tag=[be.Tag]),re(be,"firstLowerCase")})),_e.abrupt("return",{rules:Te,res:ke.res});case 10:case"end":return _e.stop()}},pe,this)}));function he(pe,me){return ue.apply(this,arguments)}return he}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=ye;de.getBucketVersioning=function(){var x=(0,oe.default)(z.default.mark(function re(ae,ue){var he,pe,me;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ee(ae),he=this._bucketRequestParams("GET",ae,"versioning",ue),he.xmlResponse=!0,he.successStatuses=[200],ve.next=6,this.request(he);case 6:return pe=ve.sent,me=pe.data.Status,ve.abrupt("return",{status:pe.status,versionStatus:me,res:pe.res});case 9:case"end":return ve.stop()}},re,this)}));function te(re,ae){return x.apply(this,arguments)}return te}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=y("../utils/isObject"),x=de.isObject,te=ye;te.getBucketWebsite=function(){var re=(0,oe.default)(z.default.mark(function ue(he,pe){var me,fe,ve;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ee(he),me=this._bucketRequestParams("GET",he,"website",pe),me.successStatuses=[200],me.xmlResponse=!0,Te.next=6,this.request(me);case 6:return fe=Te.sent,ve=[],fe.data.RoutingRules&&fe.data.RoutingRules.RoutingRule&&(x(fe.data.RoutingRules.RoutingRule)?ve=[fe.data.RoutingRules.RoutingRule]:ve=fe.data.RoutingRules.RoutingRule),Te.abrupt("return",{index:fe.data.IndexDocument&&fe.data.IndexDocument.Suffix||"",supportSubDir:fe.data.IndexDocument&&fe.data.IndexDocument.SupportSubDir||"false",type:fe.data.IndexDocument&&fe.data.IndexDocument.Type,routingRules:ve,error:fe.data.ErrorDocument&&fe.data.ErrorDocument.Key||null,res:fe.res});case 10:case"end":return Te.stop()}},ue,this)}));function ae(ue,he){return re.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.getBucketWorm=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/dataFix");function de(te,re){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(z.default.mark(function te(re,ae){var ue,he;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return se.checkBucketName(re),ue=this._bucketRequestParams("GET",re,"worm",ae),ue.successStatuses=[200],ue.xmlResponse=!0,me.next=6,this.request(ue);case 6:return he=me.sent,ee.dataFix(he.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),me.abrupt("return",Object.assign(Object.assign({},he.data),{res:he.res,status:he.status}));case 9:case"end":return me.stop()}},te,this)})),x.apply(this,arguments)}ye.getBucketWorm=de},{"../utils/checkBucketName":51,"../utils/dataFix":57,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],18:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.initiateBucketWorm=void 0;var se=y("../utils/obj2xml"),ee=y("../utils/checkBucketName");function de(te,re,ae){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(z.default.mark(function te(re,ae,ue){var he,pe,me;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ee.checkBucketName(re),he=this._bucketRequestParams("POST",re,"worm",ue),pe={InitiateWormConfiguration:{RetentionPeriodInDays:ae}},he.mime="xml",he.content=se.obj2xml(pe,{headers:!0}),he.successStatuses=[200],ve.next=8,this.request(he);case 8:return me=ve.sent,ve.abrupt("return",{res:me.res,wormId:me.res.headers["x-oss-worm-id"],status:me.status});case 10:case"end":return ve.stop()}},te,this)})),x.apply(this,arguments)}ye.initiateBucketWorm=de},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.listBucketInventory=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function de(te){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(z.default.mark(function te(re){var ae,ue,he,pe,me,fe,ve,ke,Te=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ae=Te.length>1&&Te[1]!==void 0?Te[1]:{},ue=ae.continuationToken,he=Object.assign({inventory:""},ue&&{"continuation-token":ue},ae.subres),se.checkBucketName(re),pe=this._bucketRequestParams("GET",re,he,ae),pe.successStatuses=[200],pe.xmlResponse=!0,_e.next=9,this.request(pe);case 9:return me=_e.sent,fe=me.data,ve=me.res,ke=me.status,_e.abrupt("return",{isTruncated:fe.IsTruncated==="true",nextContinuationToken:fe.NextContinuationToken,inventoryList:ee.formatInventoryConfig(fe.InventoryConfiguration,!0),status:ke,res:ve});case 12:case"end":return _e.stop()}},te,this)})),x.apply(this,arguments)}ye.listBucketInventory=de},{"../utils/checkBucketName":51,"../utils/formatInventoryConfig":60,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],20:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.putBucketInventory=void 0;var se=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function de(te,re){return x.apply(this,arguments)}function x(){return x=(0,oe.default)(z.default.mark(function te(re,ae){var ue,he,pe,me,fe,ve,ke,Te,Pe,_e,be,xe=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return ue=xe.length>2&&xe[2]!==void 0?xe[2]:{},he=Object.assign({inventory:"",inventoryId:ae.id},ue.subres),se.checkBucketName(re),pe=ae.OSSBucketDestination,me=ae.optionalFields,fe=ae.includedObjectVersions,ve="acs:oss:::",ke="acs:ram::".concat(pe.accountId,":role/"),Te={InventoryConfiguration:{Id:ae.id,IsEnabled:ae.isEnabled,Filter:{Prefix:ae.prefix||""},Destination:{OSSBucketDestination:{Format:pe.format,AccountId:pe.accountId,RoleArn:"".concat(ke).concat(pe.rolename),Bucket:"".concat(ve).concat(pe.bucket),Prefix:pe.prefix||"",Encryption:pe.encryption||""}},Schedule:{Frequency:ae.frequency},IncludedObjectVersions:fe,OptionalFields:{Field:(me==null?void 0:me.field)||[]}}},Pe=ee.obj2xml(Te,{headers:!0,firstUpperCase:!0}),_e=this._bucketRequestParams("PUT",re,he,ue),_e.successStatuses=[200],_e.mime="xml",_e.content=Pe,Me.next=14,this.request(_e);case 14:return be=Me.sent,Me.abrupt("return",{status:be.status,res:be.res});case 16:case"end":return Me.stop()}},te,this)})),x.apply(this,arguments)}ye.putBucketInventory=de},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.array.includes.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=y("../utils/isArray"),x=de.isArray,te=y("../utils/deepCopy"),re=te.deepCopy,ae=y("../utils/isObject"),ue=ae.isObject,he=y("../utils/obj2xml"),pe=he.obj2xml,me=y("../utils/checkObjectTag"),fe=me.checkObjectTag,ve=y("../utils/getStrBytesCount"),ke=ve.getStrBytesCount,Te=ye;Te.putBucketLifecycle=function(){var Ae=(0,oe.default)(z.default.mark(function Be(Ce,De,He){var Ke,Ye,it,Re,We;return z.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(ee(Ce),x(De)){nt.next=3;break}throw new Error("rules must be Array");case 3:return Ke=this._bucketRequestParams("PUT",Ce,"lifecycle",He),Ye=[],it={LifecycleConfiguration:{Rule:Ye}},De.forEach(function(rt){Pe(rt),xe(rt),rt.id&&(rt.ID=rt.id,delete rt.id),Ye.push(rt)}),Re=pe(it,{headers:!0,firstUpperCase:!0}),Ke.content=Re,Ke.mime="xml",Ke.successStatuses=[200],nt.next=13,this.request(Ke);case 13:return We=nt.sent,nt.abrupt("return",{res:We.res});case 15:case"end":return nt.stop()}},Be,this)}));function Me(Be,Ce,De){return Ae.apply(this,arguments)}return Me}();function Pe(Ae){Ae.days&&(Ae.expiration={days:Ae.days}),Ae.date&&(Ae.expiration={createdBeforeDate:Ae.date})}function _e(Ae,Me){var Be=Ae.days,Ce=Ae.createdBeforeDate;if(!Be&&!Ce)throw new Error("".concat(Me," must includes days or createdBeforeDate"));if(Be&&!/^[1-9][0-9]*$/.test(Be))throw new Error("days must be a positive integer");if(Ce&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ce))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function be(Ae){if(!x(Ae)&&!ue(Ae))throw new Error("tag must be Object or Array");Ae=ue(Ae)?[Ae]:Ae;var Me={},Be=re(Ae);Be.forEach(function(Ce){Me[Ce.key]=Ce.value}),fe(Me)}function xe(Ae){if(Ae.id&&ke(Ae.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Ae.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Ae.status))throw new Error("Status must be Enabled or Disabled");if(Ae.transition){if(!["IA","Archive"].includes(Ae.transition.storageClass))throw new Error("StorageClass must be IA or Archive");_e(Ae.transition,"Transition")}if(Ae.expiration){if(!Ae.expiration.expiredObjectDeleteMarker)_e(Ae.expiration,"Expiration");else if(Ae.expiration.days||Ae.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Ae.abortMultipartUpload&&_e(Ae.abortMultipartUpload,"AbortMultipartUpload"),!Ae.expiration&&!Ae.abortMultipartUpload&&!Ae.transition&&!Ae.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Ae.tag){if(Ae.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");be(Ae.tag)}}},{"../utils/checkBucketName":51,"../utils/checkObjectTag":54,"../utils/deepCopy":58,"../utils/getStrBytesCount":62,"../utils/isArray":63,"../utils/isObject":70,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],22:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=y("../utils/obj2xml"),x=de.obj2xml,te=ye;te.putBucketVersioning=function(){var re=(0,oe.default)(z.default.mark(function ue(he,pe){var me,fe,ve,ke,Te=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(me=Te.length>2&&Te[2]!==void 0?Te[2]:{},ee(he),["Enabled","Suspended"].includes(pe)){_e.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return fe=this._bucketRequestParams("PUT",he,"versioning",me),ve={VersioningConfiguration:{Status:pe}},fe.mime="xml",fe.content=x(ve,{headers:!0}),_e.next=10,this.request(fe);case 10:return ke=_e.sent,_e.abrupt("return",{res:ke.res,status:ke.status});case 12:case"end":return _e.stop()}},ue,this)}));function ae(ue,he){return re.apply(this,arguments)}return ae}()},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.includes.js":277}],23:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=y("../utils/obj2xml"),x=de.obj2xml,te=y("../utils/isArray"),re=te.isArray,ae=ye;ae.putBucketWebsite=function(){var ue=(0,oe.default)(z.default.mark(function pe(me){var fe,ve,ke,Te,Pe,_e,be,xe=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(fe=xe.length>1&&xe[1]!==void 0?xe[1]:{},ve=xe.length>2?xe[2]:void 0,ee(me),ke=this._bucketRequestParams("PUT",me,"website",ve),Te={Suffix:fe.index||"index.html"},Pe={IndexDocument:Te},_e={WebsiteConfiguration:Pe},fe.supportSubDir&&(Te.SupportSubDir=fe.supportSubDir),fe.type&&(Te.Type=fe.type),fe.error&&(Pe.ErrorDocument={Key:fe.error}),fe.routingRules===void 0){Me.next=14;break}if(re(fe.routingRules)){Me.next=13;break}throw new Error("RoutingRules must be Array");case 13:Pe.RoutingRules={RoutingRule:fe.routingRules};case 14:return _e=x(_e),ke.content=_e,ke.mime="xml",ke.successStatuses=[200],Me.next=20,this.request(ke);case 20:return be=Me.sent,Me.abrupt("return",{res:be.res});case 22:case"end":return Me.stop()}},pe,this)}));function he(pe){return ue.apply(this,arguments)}return he}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(y,Se,ye){(function(E){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),ye.encodeCallback=function(oe,se){if(oe.headers=oe.headers||{},!Object.prototype.hasOwnProperty.call(oe.headers,"x-oss-callback")&&se.callback){var ee={callbackUrl:encodeURI(se.callback.url),callbackBody:se.callback.body};se.callback.host&&(ee.callbackHost=se.callback.host),se.callback.contentType&&(ee.callbackBodyType=se.callback.contentType);var de=E.from(JSON.stringify(ee)).toString("base64");if(oe.headers["x-oss-callback"]=de,se.callback.customValue){var x={};Object.keys(se.callback.customValue).forEach(function(te){x["x:".concat(te)]=se.callback.customValue[te].toString()}),oe.headers["x-oss-callback-var"]=E.from(JSON.stringify(x)).toString("base64")}}}}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/web.dom-collections.for-each.js":339}],25:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var E=function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.getReqUrl=void 0;var z=E(y("copy-to")),oe=E(y("url")),se=E(y("merge-descriptors")),ee=E(y("is-type-of")),de=y("../utils/isIP"),x=y("../utils/checkConfigValid");function te(re){var ae={},ue=this.options.cname;x.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(ae),re.bucket&&!ue&&!de.isIP(ae.hostname)&&!this.options.sldEnable&&(ae.host="".concat(re.bucket,".").concat(ae.host));var he="/";re.bucket&&this.options.sldEnable&&(he+="".concat(re.bucket,"/")),re.object&&(he+=this._escape(re.object).replace(/\+/g,"%2B")),ae.pathname=he;var pe={};if(re.query&&se.default(pe,re.query),re.subres){var me={};ee.default.string(re.subres)?me[re.subres]="":ee.default.array(re.subres)?re.subres.forEach(function(fe){me[fe]=""}):me=re.subres,se.default(pe,me)}return ae.query=pe,oe.default.format(ae)}ye.getReqUrl=te},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.string.trim.js");var E=y("humanize-ms"),z=y("url"),oe=y("../utils/checkBucketName"),se=oe.checkBucketName,ee=y("../utils/setRegion"),de=ee.setRegion,x=y("../utils/checkConfigValid"),te=x.checkConfigValid;function re(ae,ue){te(ae,"endpoint");var he=z.parse(ae);if(he.protocol||(he=z.parse("http".concat(ue?"s":"","://").concat(ae))),he.protocol!=="http:"&&he.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return he}Se.exports=function(ae){if(!ae||!ae.accessKeyId||!ae.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");ae.stsToken&&!ae.refreshSTSToken&&!ae.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),ae.bucket&&se(ae.bucket);var ue=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},ae);if(ue.accessKeyId=ue.accessKeyId.trim(),ue.accessKeySecret=ue.accessKeySecret.trim(),ue.timeout&&(ue.timeout=E(ue.timeout)),ue.endpoint)ue.endpoint=re(ue.endpoint,ue.secure);else if(ue.region)ue.endpoint=de(ue.region,ue.internal,ue.secure);else throw new Error("require options.endpoint or options.region");return ue.inited=!0,ue}},{"../utils/checkBucketName":51,"../utils/checkConfigValid":52,"../utils/setRegion":75,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.trim.js":308,"humanize-ms":356,url:472}],27:[function(y,Se,ye){"use strict";var E=y("merge-descriptors"),z=ye;E(z,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkBucketName"),ee=se.checkBucketName,de=y("querystring"),x=y("js-base64"),te=x.Base64.encode,re=ye;re.processObjectSave=function(){var ue=(0,oe.default)(z.default.mark(function pe(me,fe,ve,ke){var Te,Pe,_e,be;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ae(me,"sourceObject"),ae(fe,"targetObject"),ae(ve,"process"),fe=this._objectName(fe),ke&&ee(ke),Te=this._objectRequestParams("POST",me,{subres:"x-oss-process"}),Pe=ke?",b_".concat(te(ke)):"",fe=te(fe),_e={"x-oss-process":"".concat(ve,"|sys/saveas,o_").concat(fe).concat(Pe)},Te.content=de.stringify(_e),Ae.next=12,this.request(Te);case 12:return be=Ae.sent,Ae.abrupt("return",{res:be.res,status:be.res.status});case 14:case"end":return Ae.stop()}},pe,this)}));function he(pe,me,fe,ve){return ue.apply(this,arguments)}return he}();function ae(ue,he){if(!ue)throw new Error("".concat(he," is required"));if(typeof ue!="string")throw new Error("".concat(he," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.regexp.to-string.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("debug")("ali-oss:multipart-copy"),ee=y("copy-to"),de=ye;de.uploadPartCopy=function(){var x=(0,oe.default)(z.default.mark(function re(ae,ue,he,pe,me){var fe,ve,ke,Te,Pe,_e=arguments;return z.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return fe=_e.length>5&&_e[5]!==void 0?_e[5]:{},fe.headers=fe.headers||{},ve=fe.versionId||fe.subres&&fe.subres.versionId||null,ve?ke="/".concat(me.sourceBucketName,"/").concat(encodeURIComponent(me.sourceKey),"?versionId=").concat(ve):ke="/".concat(me.sourceBucketName,"/").concat(encodeURIComponent(me.sourceKey)),fe.headers["x-oss-copy-source"]=ke,pe&&(fe.headers["x-oss-copy-source-range"]="bytes=".concat(pe)),fe.subres={partNumber:he,uploadId:ue},Te=this._objectRequestParams("PUT",ae,fe),Te.mime=fe.mime,Te.successStatuses=[200],xe.next=12,this.request(Te);case 12:return Pe=xe.sent,xe.abrupt("return",{name:ae,etag:Pe.res.headers.etag,res:Pe.res});case 14:case"end":return xe.stop()}},re,this)}));function te(re,ae,ue,he,pe){return x.apply(this,arguments)}return te}(),de.multipartUploadCopy=function(){var x=(0,oe.default)(z.default.mark(function re(ae,ue){var he,pe,me,fe,ve,ke,Te,Pe,_e,be,xe,Ae,Me=arguments;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return he=Me.length>2&&Me[2]!==void 0?Me[2]:{},this.resetCancelFlag(),pe=he.versionId,me=pe===void 0?null:pe,fe={versionId:me},Ce.next=6,this._getObjectMeta(ue.sourceBucketName,ue.sourceKey,fe);case 6:if(ve=Ce.sent,ke=ve.res.headers["content-length"],ue.startOffset=ue.startOffset||0,ue.endOffset=ue.endOffset||ke,!(he.checkpoint&&he.checkpoint.uploadId)){Ce.next=14;break}return Ce.next=13,this._resumeMultipartCopy(he.checkpoint,ue,he);case 13:return Ce.abrupt("return",Ce.sent);case 14:if(Te=102400,Pe=ue.endOffset-ue.startOffset,!(Pe<Te)){Ce.next=18;break}throw new Error("copySize must not be smaller than ".concat(Te));case 18:if(!(he.partSize&&he.partSize<Te)){Ce.next=20;break}throw new Error("partSize must not be smaller than ".concat(Te));case 20:return Ce.next=22,this.initMultipartUpload(ae,he);case 22:if(_e=Ce.sent,be=_e.uploadId,xe=this._getPartSize(Pe,he.partSize),Ae={name:ae,copySize:Pe,partSize:xe,uploadId:be,doneParts:[]},!(he&&he.progress)){Ce.next=29;break}return Ce.next=29,he.progress(0,Ae,_e.res);case 29:return Ce.next=31,this._resumeMultipartCopy(Ae,ue,he);case 31:return Ce.abrupt("return",Ce.sent);case 32:case"end":return Ce.stop()}},re,this)}));function te(re,ae){return x.apply(this,arguments)}return te}(),de._resumeMultipartCopy=function(){var x=(0,oe.default)(z.default.mark(function re(ae,ue,he){var pe,me,fe,ve,ke,Te,Pe,_e,be,xe,Ae,Me,Be,Ce,De,He,Ke,Ye,it,Re,We;return z.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(!this.isCancel()){nt.next=2;break}throw this._makeCancelEvent();case 2:if(pe=he.versionId,me=pe===void 0?null:pe,fe={versionId:me},ve=ae.copySize,ke=ae.partSize,Te=ae.uploadId,Pe=ae.doneParts,_e=ae.name,be=this._divideMultipartCopyParts(ve,ke,ue.startOffset),xe=be.length,Ae={headers:{}},he.copyheaders&&ee(he.copyheaders).to(Ae.headers),me&&ee(fe).to(Ae),Me=function(Xe,Je,Ve){return new Promise(function(){var at=(0,oe.default)(z.default.mark(function Qe(ut,st){var $e,Ne,je;return z.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(ce.prev=0,Xe.isCancel()){ce.next=22;break}return $e=be[Je-1],Ne="".concat($e.start,"-").concat($e.end-1),ce.prev=4,ce.next=7,Xe.uploadPartCopy(_e,Te,Je,Ne,Ve,Ae);case 7:je=ce.sent,ce.next=15;break;case 10:if(ce.prev=10,ce.t0=ce.catch(4),ce.t0.status!==404){ce.next=14;break}throw Xe._makeAbortEvent();case 14:throw ce.t0;case 15:if(Xe.isCancel()){ce.next=22;break}if(se("content-range ".concat(je.res.headers["content-range"])),Pe.push({number:Je,etag:je.res.headers.etag}),ae.doneParts=Pe,!(he&&he.progress)){ce.next=22;break}return ce.next=22,he.progress(Pe.length/xe,ae,je.res);case 22:ut(),ce.next=29;break;case 25:ce.prev=25,ce.t1=ce.catch(0),ce.t1.partNum=Je,st(ce.t1);case 29:case"end":return ce.stop()}},Qe,null,[[0,25],[4,10]])}));return function(Qe,ut){return at.apply(this,arguments)}}())},Be=Array.from(new Array(xe),function(rt,Xe){return Xe+1}),Ce=Pe.map(function(rt){return rt.number}),De=Be.filter(function(rt){return Ce.indexOf(rt)<0}),He=5,Ke=he.parallel||He,!(this.checkBrowserAndVersion("Internet Explorer","10")||Ke===1)){nt.next=28;break}Ye=0;case 18:if(!(Ye<De.length)){nt.next=26;break}if(!this.isCancel()){nt.next=21;break}throw this._makeCancelEvent();case 21:return nt.next=23,Me(this,De[Ye],ue);case 23:Ye++,nt.next=18;break;case 26:nt.next=40;break;case 28:return nt.next=30,this._parallelNode(De,Ke,Me,ue);case 30:if(it=nt.sent,Re=it.find(function(rt){return rt.name==="abort"}),!Re){nt.next=34;break}throw Re;case 34:if(!this.isCancel()){nt.next=36;break}throw this._makeCancelEvent();case 36:if(!(it&&it.length>0)){nt.next=40;break}throw We=it[0],We.message="Failed to copy some parts with error: ".concat(We.toString()," part_num: ").concat(We.partNum),We;case 40:return nt.next=42,this.completeMultipartUpload(_e,Te,Pe,he);case 42:return nt.abrupt("return",nt.sent);case 43:case"end":return nt.stop()}},re,this)}));function te(re,ae,ue){return x.apply(this,arguments)}return te}(),de._divideMultipartCopyParts=function(te,re,ae){for(var ue=Math.ceil(te/re),he=[],pe=0;pe<ue;pe++){var me=re*pe+ae,fe=Math.min(me+re,te+ae);he.push({start:me,end:fe})}return he},de._getObjectMeta=function(){var x=(0,oe.default)(z.default.mark(function re(ae,ue,he){var pe,me;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return pe=this.getBucket(),this.setBucket(ae),ve.next=4,this.head(ue,he);case 4:return me=ve.sent,this.setBucket(pe),ve.abrupt("return",me);case 7:case"end":return ve.stop()}},re,this)}));function te(re,ae,ue){return x.apply(this,arguments)}return te}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(y,Se,ye){(function(E){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var se=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("copy-to"),de=y("./callback"),x=y("./utils/deepCopy"),te=x.deepCopyWith,re=y("./utils/isBuffer"),ae=re.isBuffer,ue=y("./utils/omit"),he=ue.omit,pe=ye;pe.listUploads=function(){var me=(0,se.default)(oe.default.mark(function ve(ke,Te){var Pe,_e,be,xe;return oe.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Te=Te||{},Pe={},ee(Te).to(Pe),Pe.subres="uploads",_e=this._objectRequestParams("GET","",Pe),_e.query=ke,_e.xmlResponse=!0,_e.successStatuses=[200],Me.next=10,this.request(_e);case 10:return be=Me.sent,xe=be.data.Upload||[],Array.isArray(xe)||(xe=[xe]),xe=xe.map(function(Be){return{name:Be.Key,uploadId:Be.UploadId,initiated:Be.Initiated}}),Me.abrupt("return",{res:be.res,uploads:xe,bucket:be.data.Bucket,nextKeyMarker:be.data.NextKeyMarker,nextUploadIdMarker:be.data.NextUploadIdMarker,isTruncated:be.data.IsTruncated==="true"});case 15:case"end":return Me.stop()}},ve,this)}));function fe(ve,ke){return me.apply(this,arguments)}return fe}(),pe.listParts=function(){var me=(0,se.default)(oe.default.mark(function ve(ke,Te,Pe,_e){var be,xe,Ae;return oe.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return _e=_e||{},be={},ee(_e).to(be),be.subres={uploadId:Te},xe=this._objectRequestParams("GET",ke,be),xe.query=Pe,xe.xmlResponse=!0,xe.successStatuses=[200],Be.next=10,this.request(xe);case 10:return Ae=Be.sent,Be.abrupt("return",{res:Ae.res,uploadId:Ae.data.UploadId,bucket:Ae.data.Bucket,name:Ae.data.Key,partNumberMarker:Ae.data.PartNumberMarker,nextPartNumberMarker:Ae.data.NextPartNumberMarker,maxParts:Ae.data.MaxParts,isTruncated:Ae.data.IsTruncated,parts:Ae.data.Part||[]});case 12:case"end":return Be.stop()}},ve,this)}));function fe(ve,ke,Te,Pe){return me.apply(this,arguments)}return fe}(),pe.abortMultipartUpload=function(){var me=(0,se.default)(oe.default.mark(function ve(ke,Te,Pe){var _e,be,xe;return oe.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return this._stop(),Pe=Pe||{},_e={},ee(Pe).to(_e),_e.subres={uploadId:Te},be=this._objectRequestParams("DELETE",ke,_e),be.successStatuses=[204],Me.next=9,this.request(be);case 9:return xe=Me.sent,Me.abrupt("return",{res:xe.res});case 11:case"end":return Me.stop()}},ve,this)}));function fe(ve,ke,Te){return me.apply(this,arguments)}return fe}(),pe.initMultipartUpload=function(){var me=(0,se.default)(oe.default.mark(function ve(ke,Te){var Pe,_e,be;return oe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Te=Te||{},Pe={},ee(Te).to(Pe),Pe.headers=Pe.headers||{},this._convertMetaToHeaders(Te.meta,Pe.headers),Pe.subres="uploads",_e=this._objectRequestParams("POST",ke,Pe),_e.mime=Te.mime,_e.xmlResponse=!0,_e.successStatuses=[200],Ae.next=12,this.request(_e);case 12:return be=Ae.sent,Ae.abrupt("return",{res:be.res,bucket:be.data.Bucket,name:be.data.Key,uploadId:be.data.UploadId});case 14:case"end":return Ae.stop()}},ve,this)}));function fe(ve,ke){return me.apply(this,arguments)}return fe}(),pe.uploadPart=function(){var me=(0,se.default)(oe.default.mark(function ve(ke,Te,Pe,_e,be,xe,Ae){var Me,Be;return oe.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(Me={size:xe-be},Be=E&&E.browser,!Be){De.next=8;break}return De.next=5,this._createBuffer(_e,be,xe);case 5:Me.content=De.sent,De.next=11;break;case 8:return De.next=10,this._createStream(_e,be,xe);case 10:Me.stream=De.sent;case 11:return De.next=13,this._uploadPart(ke,Te,Pe,Me,Ae);case 13:return De.abrupt("return",De.sent);case 14:case"end":return De.stop()}},ve,this)}));function fe(ve,ke,Te,Pe,_e,be,xe){return me.apply(this,arguments)}return fe}(),pe.completeMultipartUpload=function(){var me=(0,se.default)(oe.default.mark(function ve(ke,Te,Pe,_e){var be,xe,Ae,Me,Be,Ce,De,He;return oe.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:for(be=Pe.concat().sort(function(it,Re){return it.number-Re.number}).filter(function(it,Re,We){return!Re||it.number!==We[Re-1].number}),xe=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Ae=0;Ae<be.length;Ae++)Me=be[Ae],xe+=`<Part>
`,xe+="<PartNumber>".concat(Me.number,`</PartNumber>
`),xe+="<ETag>".concat(Me.etag,`</ETag>
`),xe+=`</Part>
`;return xe+="</CompleteMultipartUpload>",_e=_e||{},Be={},Be=te(_e,function(it){if(ae(it))return null}),Be.subres={uploadId:Te},Be.headers=he(Be.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ce=this._objectRequestParams("POST",ke,Be),de.encodeCallback(Ce,Be),Ce.mime="xml",Ce.content=xe,Ce.headers&&Ce.headers["x-oss-callback"]||(Ce.xmlResponse=!0),Ce.successStatuses=[200],Ye.next=17,this.request(Ce);case 17:if(De=Ye.sent,!_e.progress){Ye.next=21;break}return Ye.next=21,_e.progress(1,null,De.res);case 21:return He={res:De.res,bucket:Ce.bucket,name:ke,etag:De.res.headers.etag},Ce.headers&&Ce.headers["x-oss-callback"]&&(He.data=JSON.parse(De.data.toString())),Ye.abrupt("return",He);case 24:case"end":return Ye.stop()}},ve,this)}));function fe(ve,ke,Te,Pe){return me.apply(this,arguments)}return fe}(),pe._uploadPart=function(){var me=(0,se.default)(oe.default.mark(function ve(ke,Te,Pe,_e,be){var xe,Ae,Me,Be;return oe.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return be=be||{},xe={},ee(be).to(xe),xe.headers=xe.headers||{},xe.headers["Content-Length"]=_e.size,xe.headers=he(xe.headers,["x-oss-server-side-encryption"]),xe.subres={partNumber:Pe,uploadId:Te},Ae=this._objectRequestParams("PUT",ke,xe),Ae.mime=xe.mime,Me=E&&E.browser,Me?Ae.content=_e.content:Ae.stream=_e.stream,Ae.successStatuses=[200],Ae.disabledMD5=be.disabledMD5,De.next=15,this.request(Ae);case 15:if(Be=De.sent,Be.res.headers.etag){De.next=18;break}throw new Error(`Please set the etag of expose-headers in OSS
https://help.aliyun.com/document_detail/32069.html`);case 18:return _e.stream&&(_e.stream=null,Ae.stream=null),De.abrupt("return",{name:ke,etag:Be.res.headers.etag,res:Be.res});case 20:case"end":return De.stop()}},ve,this)}));function fe(ve,ke,Te,Pe,_e){return me.apply(this,arguments)}return fe}()}).call(this)}).call(this,y("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator")),oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("url"),ee=y("utility"),de=y("copy-to"),x=y("../../common/signUtils"),te=y("../utils/isIP"),re=te.isIP,ae=y("../utils/setSTSToken"),ue=ae.setSTSToken,he=y("../utils/isFunction"),pe=he.isFunction,me=ye;me.asyncSignatureUrl=function(){var fe=(0,oe.default)(z.default.mark(function ke(Te,Pe){var _e,be,xe,Ae,Me;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(!re(this.options.endpoint.hostname)){Ce.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Pe=Pe||{},Te=this._objectName(Te),Pe.method=Pe.method||"GET",_e=ee.timestamp()+(Pe.expires||1800),be={bucket:this.options.bucket,object:Te},xe=this._getResource(be),!(this.options.stsToken&&pe(this.options.refreshSTSToken))){Ce.next=11;break}return Ce.next=11,ue.call(this);case 11:return this.options.stsToken&&(Pe["security-token"]=this.options.stsToken),Ae=x._signatureForURL(this.options.accessKeySecret,Pe,xe,_e),Me=se.parse(this._getReqUrl(be)),Me.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_e,Signature:Ae.Signature},de(Ae.subResource).to(Me.query),Ce.abrupt("return",Me.format());case 17:case"end":return Ce.stop()}},ke,this)}));function ve(ke,Te){return fe.apply(this,arguments)}return ve}()},{"../../common/signUtils":50,"../utils/isFunction":68,"../utils/isIP":69,"../utils/setSTSToken":76,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,url:472,utility:474}],32:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var oe=E(y("@babel/runtime/helpers/typeof")),se=E(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("../utils/checkBucketName"),de=ee.checkBucketName,x=ye,te=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];x.copy=function(){var re=(0,se.default)(z.default.mark(function ue(he,pe,me,fe){var ve,ke,Te;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return(0,oe.default)(me)==="object"&&(fe=me),fe=fe||{},fe.headers=fe.headers||{},Object.keys(fe.headers).forEach(function(be){fe.headers["x-oss-copy-source-".concat(be.toLowerCase())]=fe.headers[be]}),(fe.meta||Object.keys(fe.headers).find(function(be){return te.includes(be.toLowerCase())}))&&(fe.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(fe.meta,fe.headers),pe=this._getSourceName(pe,me),fe.versionId&&(pe="".concat(pe,"?versionId=").concat(fe.versionId)),fe.headers["x-oss-copy-source"]=pe,ve=this._objectRequestParams("PUT",he,fe),ve.xmlResponse=!0,ve.successStatuses=[200,304],_e.next=14,this.request(ve);case 14:return ke=_e.sent,Te=ke.data,Te&&(Te={etag:Te.ETag,lastModified:Te.LastModified}),_e.abrupt("return",{data:Te,res:ke.res});case 18:case"end":return _e.stop()}},ue,this)}));function ae(ue,he,pe,me){return re.apply(this,arguments)}return ae}(),x._getSourceName=function(ae,ue){return typeof ue=="string"?ae=this._objectName(ae):ae[0]!=="/"?ue=this.options.bucket:(ue=ae.replace(/\/(.+?)(\/.*)/,"$1"),ae=ae.replace(/(\/.+?\/)(.*)/,"$2")),de(ue),ae=encodeURIComponent(ae),ae="/".concat(ue,"/").concat(ae),ae}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],33:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye;se.delete=function(){var ee=(0,oe.default)(z.default.mark(function x(te){var re,ae,ue,he=arguments;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=he.length>1&&he[1]!==void 0?he[1]:{},re.subres=Object.assign({},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectRequestParams("DELETE",te,re),ae.successStatuses=[204],me.next=7,this.request(ae);case 7:return ue=me.sent,me.abrupt("return",{res:ue.res});case 9:case"end":return me.stop()}},x,this)}));function de(x){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],34:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("utility"),ee=y("../utils/obj2xml"),de=ee.obj2xml,x=ye;x.deleteMulti=function(){var te=(0,oe.default)(z.default.mark(function ae(ue){var he,pe,me,fe,ve,ke,Te,Pe,_e,be,xe,Ae,Me,Be=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(he=Be.length>1&&Be[1]!==void 0?Be[1]:{},pe=[],!(!ue||!ue.length)){De.next=4;break}throw new Error("names is required");case 4:for(me=0;me<ue.length;me++)fe={},typeof ue[me]=="string"?fe.Key=se.escape(this._objectName(ue[me])):(ve=ue[me],ke=ve.key,Te=ve.versionId,fe.Key=se.escape(this._objectName(ke)),fe.VersionId=Te),pe.push(fe);return Pe={Delete:{Quiet:!!he.quiet,Object:pe}},_e=de(Pe,{headers:!0}),he.subres=Object.assign({delete:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),be=this._objectRequestParams("POST","",he),be.mime="xml",be.content=_e,be.xmlResponse=!0,be.successStatuses=[200],De.next=16,this.request(be);case 16:return xe=De.sent,Ae=xe.data,Me=Ae&&Ae.Deleted||null,Me&&(Array.isArray(Me)||(Me=[Me])),De.abrupt("return",{res:xe.res,deleted:Me||[]});case 21:case"end":return De.stop()}},ae,this)}));function re(ae){return te.apply(this,arguments)}return re}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye;se.deleteObjectTagging=function(){var ee=(0,oe.default)(z.default.mark(function x(te){var re,ae,ue,he=arguments;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=he.length>1&&he[1]!==void 0?he[1]:{},re.subres=Object.assign({tagging:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),te=this._objectName(te),ae=this._objectRequestParams("DELETE",te,re),ae.successStatuses=[204],me.next=8,this.request(ae);case 8:return ue=me.sent,me.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return me.stop()}},x,this)}));function de(x){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],36:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.concat.js");var E=y("url"),z=y("../utils/isIP"),oe=z.isIP,se=ye;se.generateObjectUrl=function(de,x){if(oe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(x)x[x.length-1]!=="/"&&(x+="/");else{x=this.options.endpoint.format();var te=E.parse(x),re=this.options.bucket;te.hostname="".concat(re,".").concat(te.hostname),te.host="".concat(re,".").concat(te.host),x=te.format()}return x+this._escape(this._objectName(de))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,Se,ye){(function(E){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var se=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("fs"),de=y("is-type-of"),x=ye;x.get=function(){var te=(0,se.default)(oe.default.mark(function ae(ue,he){var pe,me,fe,ve,ke,Te,Pe,_e,be=arguments;return oe.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return pe=be.length>2&&be[2]!==void 0?be[2]:{},me=null,fe=!1,de.writableStream(he)?me=he:de.string(he)?(me=ee.createWriteStream(he),fe=!0):pe=he,pe=pe||{},ve=E&&E.browser,ke=pe.responseCacheControl===null?"":"no-cache",Te=ve&&ke?{"response-cache-control":ke}:{},pe.subres=Object.assign(Te,pe.subres),pe.versionId&&(pe.subres.versionId=pe.versionId),pe.process&&(pe.subres["x-oss-process"]=pe.process),Ae.prev=11,_e=this._objectRequestParams("GET",ue,pe),_e.writeStream=me,_e.successStatuses=[200,206,304],Ae.next=17,this.request(_e);case 17:Pe=Ae.sent,fe&&me.destroy(),Ae.next=28;break;case 21:if(Ae.prev=21,Ae.t0=Ae.catch(11),!fe){Ae.next=27;break}return me.destroy(),Ae.next=27,this._deleteFileSafe(he);case 27:throw Ae.t0;case 28:return Ae.abrupt("return",{res:Pe.res,content:Pe.data});case 29:case"end":return Ae.stop()}},ae,this,[[11,21]])}));function re(ae,ue){return te.apply(this,arguments)}return re}()}).call(this)}).call(this,y("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye;se.getACL=function(){var ee=(0,oe.default)(z.default.mark(function x(te){var re,ae,ue,he=arguments;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=he.length>1&&he[1]!==void 0?he[1]:{},re.subres=Object.assign({acl:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),te=this._objectName(te),ae=this._objectRequestParams("GET",te,re),ae.successStatuses=[200],ae.xmlResponse=!0,me.next=9,this.request(ae);case 9:return ue=me.sent,me.abrupt("return",{acl:ue.data.AccessControlList.Grant,owner:{id:ue.data.Owner.ID,displayName:ue.data.Owner.DisplayName},res:ue.res});case 11:case"end":return me.stop()}},x,this)}));function de(x){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],39:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye,ee=y("../utils/isObject"),de=ee.isObject,x=y("../utils/isArray"),te=x.isArray;se.getBucketVersions=re,se.listObjectVersions=re;function re(){return ae.apply(this,arguments)}function ae(){return ae=(0,oe.default)(z.default.mark(function pe(){var me,fe,ve,ke,Te,Pe,_e,be,xe=arguments;return z.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(me=xe.length>0&&xe[0]!==void 0?xe[0]:{},fe=xe.length>1&&xe[1]!==void 0?xe[1]:{},!(me.versionIdMarker&&me.keyMarker===void 0)){Me.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return fe.subres=Object.assign({versions:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),ve=this._objectRequestParams("GET","",fe),ve.xmlResponse=!0,ve.successStatuses=[200],ve.query=he(me),Me.next=12,this.request(ve);case 12:return ke=Me.sent,Te=ke.data.Version||[],Pe=ke.data.DeleteMarker||[],_e=this,Te&&(Array.isArray(Te)||(Te=[Te]),Te=Te.map(function(Be){return{name:Be.Key,url:_e._objectUrl(Be.Key),lastModified:Be.LastModified,isLatest:Be.IsLatest==="true",versionId:Be.VersionId,etag:Be.ETag,type:Be.Type,size:Number(Be.Size),storageClass:Be.StorageClass,owner:{id:Be.Owner.ID,displayName:Be.Owner.DisplayName}}})),Pe&&(te(Pe)||(Pe=[Pe]),Pe=Pe.map(function(Be){return{name:Be.Key,lastModified:Be.LastModified,versionId:Be.VersionId,owner:{id:Be.Owner.ID,displayName:Be.Owner.DisplayName}}})),be=ke.data.CommonPrefixes||null,be&&(te(be)||(be=[be]),be=be.map(function(Be){return Be.Prefix})),Me.abrupt("return",{res:ke.res,objects:Te,deleteMarker:Pe,prefixes:be,nextMarker:ke.data.NextKeyMarker||null,NextVersionIdMarker:ke.data.NextVersionIdMarker||null,nextKeyMarker:ke.data.NextKeyMarker||null,nextVersionIdMarker:ke.data.NextVersionIdMarker||null,isTruncated:ke.data.IsTruncated==="true"});case 21:case"end":return Me.stop()}},pe,this)})),ae.apply(this,arguments)}function ue(pe){return pe.replace(/([A-Z])/g,"-$1").toLowerCase()}function he(){var pe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},me={};return de(pe)&&Object.keys(pe).forEach(function(fe){me[ue(fe)]=pe[fe]}),me}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye;se.getObjectMeta=function(){var ee=(0,oe.default)(z.default.mark(function x(te,re){var ae,ue;return z.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return re=re||{},te=this._objectName(te),re.subres=Object.assign({objectMeta:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),ae=this._objectRequestParams("HEAD",te,re),ae.successStatuses=[200],pe.next=8,this.request(ae);case 8:return ue=pe.sent,pe.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return pe.stop()}},x,this)}));function de(x,te){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],41:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye,ee=y("../utils/isObject"),de=ee.isObject;se.getObjectTagging=function(){var x=(0,oe.default)(z.default.mark(function re(ae){var ue,he,pe,me,fe,ve,ke=arguments;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return ue=ke.length>1&&ke[1]!==void 0?ke[1]:{},ue.subres=Object.assign({tagging:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),ae=this._objectName(ae),he=this._objectRequestParams("GET",ae,ue),he.successStatuses=[200],Pe.next=8,this.request(he);case 8:return pe=Pe.sent,Pe.next=11,this.parseXML(pe.data);case 11:return me=Pe.sent,fe=me.TagSet.Tag,fe=fe&&de(fe)?[fe]:fe||[],ve={},fe.forEach(function(_e){ve[_e.Key]=_e.Value}),Pe.abrupt("return",{status:pe.status,res:pe.res,tag:ve});case 17:case"end":return Pe.stop()}},re,this)}));function te(re){return x.apply(this,arguments)}return te}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(y,Se,ye){"use strict";var E=y("../utils/isIP"),z=E.isIP,oe=ye;oe.getObjectUrl=function(ee,de){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return de?de[de.length-1]!=="/"&&(de+="/"):de=this.options.endpoint.format(),de+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye;se.getSymlink=function(){var ee=(0,oe.default)(z.default.mark(function x(te){var re,ae,ue,he,pe=arguments;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return re=pe.length>1&&pe[1]!==void 0?pe[1]:{},re.subres=Object.assign({symlink:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),te=this._objectName(te),ae=this._objectRequestParams("GET",te,re),ae.successStatuses=[200],fe.next=8,this.request(ae);case 8:return ue=fe.sent,he=ue.res.headers["x-oss-symlink-target"],fe.abrupt("return",{targetName:decodeURIComponent(he),res:ue.res});case 11:case"end":return fe.stop()}},x,this)}));function de(x){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],44:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/checkEnv"),ee=se.checkEnv,de=ye;de.head=function(){var x=(0,oe.default)(z.default.mark(function re(ae){var ue,he,pe,me,fe=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ue=fe.length>1&&fe[1]!==void 0?fe[1]:{},ee("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ue.subres=Object.assign({},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),he=this._objectRequestParams("HEAD",ae,ue),he.successStatuses=[200,304],ke.next=8,this.request(he);case 8:return pe=ke.sent,me={meta:null,res:pe.res,status:pe.status},pe.status===200&&Object.keys(pe.headers).forEach(function(Te){Te.indexOf("x-oss-meta-")===0&&(me.meta||(me.meta={}),me.meta[Te.substring(11)]=pe.headers[Te])}),ke.abrupt("return",me);case 12:case"end":return ke.stop()}},re,this)}));function te(re){return x.apply(this,arguments)}return te}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye;se.putACL=function(){var ee=(0,oe.default)(z.default.mark(function x(te,re,ae){var ue,he;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ae=ae||{},ae.subres=Object.assign({acl:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ae.headers=ae.headers||{},ae.headers["x-oss-object-acl"]=re,te=this._objectName(te),ue=this._objectRequestParams("PUT",te,ae),ue.successStatuses=[200],me.next=10,this.request(ue);case 10:return he=me.sent,me.abrupt("return",{res:he.res});case 12:case"end":return me.stop()}},x,this)}));function de(x,te,re){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],46:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.object.keys.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("../utils/obj2xml"),ee=se.obj2xml,de=y("../utils/checkObjectTag"),x=de.checkObjectTag,te=ye;te.putObjectTagging=function(){var re=(0,oe.default)(z.default.mark(function ue(he,pe){var me,fe,ve,ke,Te=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return me=Te.length>2&&Te[2]!==void 0?Te[2]:{},x(pe),me.subres=Object.assign({tagging:""},me.subres),me.versionId&&(me.subres.versionId=me.versionId),he=this._objectName(he),fe=this._objectRequestParams("PUT",he,me),fe.successStatuses=[200],pe=Object.keys(pe).map(function(be){return{Key:be,Value:pe[be]}}),ve={Tagging:{TagSet:{Tag:pe}}},fe.mime="xml",fe.content=ee(ve),_e.next=13,this.request(fe);case 13:return ke=_e.sent,_e.abrupt("return",{res:ke.res,status:ke.status});case 15:case"end":return _e.stop()}},ue,this)}));function ae(ue,he){return re.apply(this,arguments)}return ae}()},{"../utils/checkObjectTag":54,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290}],47:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=ye;se.putSymlink=function(){var ee=(0,oe.default)(z.default.mark(function x(te,re,ae){var ue,he;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ae=ae||{},ae.headers=ae.headers||{},re=this._escape(this._objectName(re)),this._convertMetaToHeaders(ae.meta,ae.headers),ae.headers["x-oss-symlink-target"]=re,ae.subres=Object.assign({symlink:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ae.storageClass&&(ae.headers["x-oss-storage-class"]=ae.storageClass),te=this._objectName(te),ue=this._objectRequestParams("PUT",te,ae),ue.successStatuses=[200],me.next=13,this.request(ue);case 13:return he=me.sent,me.abrupt("return",{res:he.res});case 15:case"end":return me.stop()}},x,this)}));function de(x,te,re){return ee.apply(this,arguments)}return de}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],48:[function(y,Se,ye){"use strict";var E=y("url"),z=y("utility"),oe=y("copy-to"),se=y("../../common/signUtils"),ee=y("../utils/isIP"),de=ee.isIP,x=ye;x.signatureUrl=function(re,ae){if(de(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");ae=ae||{},re=this._objectName(re),ae.method=ae.method||"GET";var ue=z.timestamp()+(ae.expires||1800),he={bucket:this.options.bucket,object:re},pe=this._getResource(he);this.options.stsToken&&(ae["security-token"]=this.options.stsToken);var me=se._signatureForURL(this.options.accessKeySecret,ae,pe,ue),fe=E.parse(this._getReqUrl(he));return fe.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ue,Signature:me.Signature},oe(me.subResource).to(fe.query),fe.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.function.name.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator")),se=y("./utils/isArray"),ee=se.isArray,de=ye;de._parallelNode=function(){var x=(0,oe.default)(z.default.mark(function re(ae,ue,he,pe){var me,fe,ve,ke,Te,Pe,_e,be;return z.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:me=this,fe=[],ve=[],ke=ae.length/ue,Te=ae.length%ue,Pe=Te===0?ke:(ae.length-Te)/ue+1,_e=1,be=0;case 8:if(!(be<ae.length)){Ae.next=26;break}if(!me.isCancel()){Ae.next=11;break}return Ae.abrupt("break",26);case 11:if(pe?ve.push(he(me,ae[be],pe)):ve.push(he(me,ae[be])),!(ve.length===ue||_e===Pe&&be===ae.length-1)){Ae.next=23;break}return Ae.prev=13,_e+=1,Ae.next=17,Promise.all(ve);case 17:Ae.next=22;break;case 19:Ae.prev=19,Ae.t0=Ae.catch(13),fe.push(Ae.t0);case 22:ve=[];case 23:be++,Ae.next=8;break;case 26:return Ae.abrupt("return",fe);case 27:case"end":return Ae.stop()}},re,this,[[13,19]])}));function te(re,ae,ue,he){return x.apply(this,arguments)}return te}(),de._parallel=function(te,re,ae){var ue=this;return new Promise(function(he){var pe=[];if(re<=0||!te){he(pe);return}function me(Ae){return function(){if(Ae===null)throw new Error("Callback was already called.");var Me=Ae;Ae=null;for(var Be=arguments.length,Ce=new Array(Be),De=0;De<Be;De++)Ce[De]=arguments[De];Me.apply(this,Ce)}}function fe(Ae){var Me=-1,Be=Ae.length;return function(){return++Me<Be&&!ue.isCancel()?{value:Ae[Me],key:Me}:null}}var ve=fe(te),ke=!1,Te=0,Pe=!1;function _e(Ae){Te-=1,Ae?(ke=!0,pe.push(Ae),he(pe)):ke&&Te<=0?(ke=!0,he(pe)):Pe||(ue.isCancel()?he(pe):xe())}function be(Ae,Me){ae(Ae).then(function(Be){Me(null,Be)}).catch(function(Be){Me(Be)})}function xe(){for(Pe=!0;Te<re&&!ke&&!ue.isCancel();){var Ae=ve();if(Ae===null||pe.length>0){ke=!0,Te<=0&&he(pe);return}Te+=1,be(Ae.value,me(_e))}Pe=!1}xe()})},de.cancel=function(te){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(re){if(re.destroyed===!1){var ae={name:"cancel",message:"cancel"};re.destroy(ae)}}),this.multipartUploadStreams=[],te&&this.abortMultipartUpload(te.name,te.uploadId,te.options)},de.isCancel=function(){return this.options.cancelFlag},de.resetCancelFlag=function(){this.options.cancelFlag=!1},de._stop=function(){this.options.cancelFlag=!0},de._makeCancelEvent=function(){var te={status:0,name:"cancel"};return te},de._makeAbortEvent=function(){var te={status:0,name:"abort",message:"upload task has been abort"};return te}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(y,Se,ye){(function(E){(function(){"use strict";y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var z=y("./../../shims/crypto/crypto.js"),oe=y("is-type-of"),se=y("./utils/lowercaseKeyHeader"),ee=se.lowercaseKeyHeader;ye.buildCanonicalizedResource=function(x,te){var re="".concat(x),ae="?";if(oe.string(te)&&te.trim()!=="")re+=ae+te;else if(oe.array(te))te.sort(),re+=ae+te.join("&");else if(te){var ue=function(me,fe){return me[0]>fe[0]?1:me[0]<fe[0]?-1:0},he=function(me){re+=ae+me,(te[me]||te[me]===0)&&(re+="=".concat(te[me])),ae="&"};Object.keys(te).sort(ue).forEach(he)}return re},ye.buildCanonicalString=function(x,te,re,ae){re=re||{};var ue=ee(re.headers),he="x-oss-",pe=[],me={},fe=[x.toUpperCase(),ue["content-md5"]||"",ue["content-type"],ae||ue["x-oss-date"]];return Object.keys(ue).forEach(function(ve){var ke=ve.toLowerCase();ke.indexOf(he)===0&&(me[ke]=String(ue[ve]).trim())}),Object.keys(me).sort().forEach(function(ve){pe.push("".concat(ve,":").concat(me[ve]))}),fe=fe.concat(pe),fe.push(this.buildCanonicalizedResource(te,re.parameters)),fe.join(`
`)},ye.computeSignature=function(x,te){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",ae=z.createHmac("sha1",x);return ae.update(E.from(te,re)).digest("base64")},ye.authorization=function(x,te,re,ae){return"OSS ".concat(x,":").concat(this.computeSignature(te,re,ae))},ye._signatureForURL=function(x){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2?arguments[2]:void 0,ae=arguments.length>3?arguments[3]:void 0,ue=arguments.length>4?arguments[4]:void 0,he={},pe=te.subResource,me=pe===void 0?{}:pe;if(te.process){var fe="x-oss-process";me[fe]=te.process}if(te.trafficLimit){var ve="x-oss-traffic-limit";me[ve]=te.trafficLimit}if(te.response&&Object.keys(te.response).forEach(function(_e){var be="response-".concat(_e.toLowerCase());me[be]=te.response[_e]}),Object.keys(te).forEach(function(_e){var be=_e.toLowerCase(),xe=te[_e];be.indexOf("x-oss-")===0?he[be]=xe:(be.indexOf("content-md5")===0||be.indexOf("content-type")===0)&&(he[_e]=xe)}),Object.prototype.hasOwnProperty.call(te,"security-token")&&(me["security-token"]=te["security-token"]),Object.prototype.hasOwnProperty.call(te,"callback")){var ke={callbackUrl:encodeURI(te.callback.url),callbackBody:te.callback.body};if(te.callback.host&&(ke.callbackHost=te.callback.host),te.callback.contentType&&(ke.callbackBodyType=te.callback.contentType),me.callback=E.from(JSON.stringify(ke)).toString("base64"),te.callback.customValue){var Te={};Object.keys(te.callback.customValue).forEach(function(_e){Te["x:".concat(_e)]=te.callback.customValue[_e]}),me["callback-var"]=E.from(JSON.stringify(Te)).toString("base64")}}var Pe=this.buildCanonicalString(te.method,re,{headers:he,parameters:me},ae.toString());return{Signature:this.computeSignature(x,Pe,ue),subResource:me}}}).call(this)}).call(this,y("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(y,Se,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkBucketName=void 0,ye.checkBucketName=function(E){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!oe.test(E))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,Se,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkConfigValid=void 0;var E={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(oe){return typeof oe=="string"?/^[a-zA-Z0-9._:/-]+$/.test(oe):oe.host?/^[a-zA-Z0-9._:/-]+$/.test(oe.host):!1}ye.checkConfigValid=function(oe,se){if(E[se]){var ee=!0;if(E[se]instanceof Function?ee=E[se](oe):ee=E[se].test(oe),!ee)throw new Error("The ".concat(se," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,Se,ye){(function(E){(function(){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkEnv=void 0;function z(oe){E.browser&&console.warn(oe)}ye.checkEnv=z}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.entries.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkObjectTag=void 0;var E=y("./checkValid"),z=E.checkValid,oe=y("./isObject"),se=oe.isObject,ee=[{validator:function(re){if(typeof re!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],de={key:[].concat(ee,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ee,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function x(te){if(!se(te))throw new Error("tag must be Object");var re=Object.entries(te);if(re.length>10)throw new Error("maximum of 10 tags for a object");var ae=["key","value"];re.forEach(function(ue){ue.forEach(function(he,pe){z(he,de[ae[pe]])})})}ye.checkObjectTag=x},{"./checkValid":55,"./isObject":70,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],55:[function(y,Se,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkValid=void 0;function E(z,oe){oe.forEach(function(se){if(se.validator)se.validator(z);else if(se.pattern&&!se.pattern.test(z))throw new Error(se.msg)})}ye.checkValid=E},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/web.dom-collections.for-each.js":339}],56:[function(y,Se,ye){(function(E){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.createRequest=void 0;var z=y("./../../../shims/crypto/crypto.js"),oe=y("debug")("ali-oss"),se=y("mime"),ee=y("dateformat"),de=y("copy-to"),x=y("path"),te=y("./encoder"),re=te.encoder,ae=y("./isIP"),ue=ae.isIP,he=y("./setRegion"),pe=he.setRegion,me=y("../client/getReqUrl"),fe=me.getReqUrl,ve=y("./isDingTalk"),ke=ve.isDingTalk;function Te(be,xe){return be[xe]||be[xe.toLowerCase()]}function Pe(be,xe){delete be[xe],delete be[xe.toLowerCase()]}function _e(be){var xe=new Date;this.options.amendTimeSkewed&&(xe=+new Date+this.options.amendTimeSkewed);var Ae={"x-oss-date":ee(xe,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Ae["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Ae["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Ae,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Ae["x-oss-security-token"]=this.options.stsToken),de(be.headers).to(Ae),Te(Ae,"Content-Type")||(be.mime&&be.mime.indexOf("/")>0?Ae["Content-Type"]=be.mime:ke()?Ae["Content-Type"]="application/octet-stream":Ae["Content-Type"]=se.getType(be.mime||x.extname(be.object||""))),Te(Ae,"Content-Type")||Pe(Ae,"Content-Type"),be.content&&(be.disabledMD5||(!be.headers||!be.headers["Content-MD5"]?Ae["Content-MD5"]=z.createHash("md5").update(E.from(be.content,"utf8")).digest("base64"):Ae["Content-MD5"]=be.headers["Content-MD5"]),Ae["Content-Length"]||(Ae["Content-Length"]=be.content.length));var Me=Object.prototype.hasOwnProperty;for(var Be in Ae)Ae[Be]&&Me.call(Ae,Be)&&(Ae[Be]=re(String(Ae[Be]),this.options.headerEncoding));var Ce=this._getResource(be);if(Ae.authorization=this.authorization(be.method,Ce,be.subres,Ae,this.options.headerEncoding),ue(this.options.endpoint.hostname)){var De=this.options,He=De.region,Ke=De.internal,Ye=De.secure,it=pe(He,Ke,Ye);Ae.host="".concat(be.bucket,".").concat(it.host)}var Re=fe.bind(this)(be);oe("request %s %s, with headers %j, !!stream: %s",be.method,Re,Ae,!!be.stream);var We=be.timeout||this.options.timeout,et={method:be.method,content:be.content,stream:be.stream,headers:Ae,timeout:We,writeStream:be.writeStream,customResponse:be.customResponse,ctx:be.ctx||this.ctx};return this.agent&&(et.agent=this.agent),this.httpsAgent&&(et.httpsAgent=this.httpsAgent),et.enableProxy=!!this.options.enableProxy,et.proxy=this.options.proxy?this.options.proxy:null,{url:Re,params:et}}ye.createRequest=_e}).call(this)}).call(this,y("buffer").Buffer)},{"../client/getReqUrl":25,"./../../../shims/crypto/crypto.js":461,"./encoder":59,"./isDingTalk":66,"./isIP":69,"./setRegion":75,buffer:90,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.string.includes.js":302,dateformat:342,debug:465,mime:374,path:378}],57:[function(y,Se,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.entries.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.object.keys.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.dataFix=void 0;var E=y("./isObject"),z=["true","TRUE","1",1],oe=["false","FALSE","0",0];function se(x,te,re){if(E.isObject(x)){var ae=te.remove,ue=ae===void 0?[]:ae,he=te.rename,pe=he===void 0?{}:he,me=te.camel,fe=me===void 0?[]:me,ve=te.bool,ke=ve===void 0?[]:ve,Te=te.lowerFirst,Pe=Te===void 0?!1:Te;return ue.forEach(function(_e){return delete x[_e]}),Object.entries(pe).forEach(function(_e){x[_e[0]]&&(x[_e[1]]||(x[_e[1]]=x[_e[0]],delete x[_e[0]]))}),fe.forEach(function(_e){if(x[_e]){var be=_e.replace(/^(.)/,function(xe){return xe.toLowerCase()}).replace(/-(\w)/g,function(xe,Ae){return Ae.toUpperCase()});x[be]||(x[be]=x[_e])}}),ke.forEach(function(_e){x[_e]=ee(x[_e])}),typeof re=="function"&&re(x),de(x,Pe),se}}ye.dataFix=se;function ee(x){return x?z.includes(x)?!0:oe.includes(x)?!1:x:!1}function de(x,te){te&&Object.keys(x).forEach(function(re){var ae=re.replace(/^\w/,function(ue){return ue.toLowerCase()});typeof x[ae]=="undefined"&&(x[ae]=x[re],delete x[re])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var z=E(y("@babel/runtime/helpers/typeof"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.deepCopyWith=ye.deepCopy=void 0;var oe=y("./isBuffer");ye.deepCopy=function(se){if(se===null||(0,z.default)(se)!=="object")return se;if(oe.isBuffer(se))return se.slice();var ee=Array.isArray(se)?[]:{};return Object.keys(se).forEach(function(de){ee[de]=ye.deepCopy(se[de])}),ee},ye.deepCopyWith=function(se,ee){function de(x,te,re){var ae=ee(x,te,re);if(ae!==void 0)return ae;if(x===null||(0,z.default)(x)!=="object")return x;if(oe.isBuffer(x))return x.slice();var ue=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(he){ue[he]=de(x[he],he,x)}),ue}return ee?de(se,"",null):ye.deepCopy(se)}},{"./isBuffer":65,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],59:[function(y,Se,ye){(function(E){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.encoder=void 0;function z(oe){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return se==="utf-8"?oe:E.from(oe).toString("latin1")}ye.encoder=z}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.formatInventoryConfig=void 0;var E=y("../utils/dataFix"),z=y("../utils/isObject"),oe=y("../utils/isArray"),se=y("../utils/formatObjKey");function ee(x){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return te&&z.isObject(x)&&(x=[x]),oe.isArray(x)?x=x.map(de):x=de(x),x}ye.formatInventoryConfig=ee;function de(x){return E.dataFix(x,{bool:["IsEnabled"]},function(te){var re,ae;te.prefix=te.Filter.Prefix,delete te.Filter,te.OSSBucketDestination=te.Destination.OSSBucketDestination,te.OSSBucketDestination.rolename=te.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete te.OSSBucketDestination.RoleArn,te.OSSBucketDestination.bucket=te.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete te.OSSBucketDestination.Bucket,delete te.Destination,te.frequency=te.Schedule.Frequency,delete te.Schedule.Frequency,!((re=te==null?void 0:te.OptionalFields)===null||re===void 0)&&re.Field&&!oe.isArray((ae=te.OptionalFields)===null||ae===void 0?void 0:ae.Field)&&(te.OptionalFields.Field=[te.OptionalFields.Field])}),x=se.formatObjKey(x,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),x}},{"../utils/dataFix":57,"../utils/formatObjKey":61,"../utils/isArray":63,"../utils/isObject":70,"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305}],61:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var z=E(y("@babel/runtime/helpers/typeof"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.formatObjKey=void 0;function oe(ee,de,x){if(ee===null||(0,z.default)(ee)!=="object")return ee;var te;if(Array.isArray(ee)){te=[];for(var re=0;re<ee.length;re++)te.push(oe(ee[re],de,x))}else te={},Object.keys(ee).forEach(function(ae){te[se(ae,de,x)]=oe(ee[ae],de,x)});return te}ye.formatObjKey=oe;function se(ee,de,x){return x&&x.exclude&&x.exclude.includes(ee)||(de==="firstUpperCase"?ee=ee.replace(/^./,function(te){return te.toUpperCase()}):de==="firstLowerCase"&&(ee=ee.replace(/^./,function(te){return te.toLowerCase()}))),ee}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(y,Se,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.getStrBytesCount=void 0;function E(z){for(var oe=0,se=0;se<z.length;se++){var ee=z.charAt(se);/^[\u00-\uff]$/.test(ee)?oe+=1:oe+=2}return oe}ye.getStrBytesCount=E},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,Se,ye){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isArray=void 0,ye.isArray=function(E){return Object.prototype.toString.call(E)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,Se,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isBlob=void 0;function E(z){return typeof Blob!="undefined"&&z instanceof Blob}ye.isBlob=E},{}],65:[function(y,Se,ye){(function(E){(function(){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isBuffer=void 0;function z(oe){return E.isBuffer(oe)}ye.isBuffer=z}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,Se,ye){(function(E){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isDingTalk=void 0;function z(){return!!(E.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}ye.isDingTalk=z}).call(this)}).call(this,y("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(y,Se,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isFile=void 0,ye.isFile=function(E){return typeof File!="undefined"&&E instanceof File}},{}],68:[function(y,Se,ye){"use strict";Object.defineProperty(ye,"__esModule",{value:!0}),ye.isFunction=void 0,ye.isFunction=function(E){return typeof E=="function"}},{}],69:[function(y,Se,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isIP=void 0,ye.isIP=function(E){var z=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,oe=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return z.test(E)||oe.test(E)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,Se,ye){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.isObject=void 0,ye.isObject=function(E){return Object.prototype.toString.call(E)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,Se,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.lowercaseKeyHeader=void 0;var E=y("./isObject");function z(oe){var se={};return E.isObject(oe)&&Object.keys(oe).forEach(function(ee){se[ee.toLowerCase()]=oe[ee]}),se}ye.lowercaseKeyHeader=z},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(y,Se,ye){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.obj2xml=void 0;var E=y("./formatObjKey");function z(se){return Object.prototype.toString.call(se).replace(/(.*? |])/g,"").toLowerCase()}function oe(se,ee){var de="";return ee&&ee.headers&&(de=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(se=E.formatObjKey(se,"firstUpperCase")),z(se)==="object"?Object.keys(se).forEach(function(x){z(se[x])!=="undefined"&&z(se[x])!=="null"&&(z(se[x])==="string"||z(se[x])==="number"?de+="<".concat(x,">").concat(se[x],"</").concat(x,">"):z(se[x])==="object"?de+="<".concat(x,">").concat(oe(se[x]),"</").concat(x,">"):z(se[x])==="array"?de+=se[x].map(function(te){return"<".concat(x,">").concat(oe(te),"</").concat(x,">")}).join(""):de+="<".concat(x,">").concat(se[x].toString(),"</").concat(x,">"))}):de+=se.toString(),de}ye.obj2xml=oe},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.symbol.iterator.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/es.object.assign.js");function E(ee,de){var x=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!x){if(Array.isArray(ee)||(x=z(ee))||de&&ee&&typeof ee.length=="number"){x&&(ee=x);var te=0,re=function(){};return{s:re,n:function(){return te>=ee.length?{done:!0}:{done:!1,value:ee[te++]}},e:function(me){throw me},f:re}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae=!0,ue=!1,he;return{s:function(){x=x.call(ee)},n:function(){var me=x.next();return ae=me.done,me},e:function(me){ue=!0,he=me},f:function(){try{!ae&&x.return!=null&&x.return()}finally{if(ue)throw he}}}}function z(ee,de){if(ee){if(typeof ee=="string")return oe(ee,de);var x=Object.prototype.toString.call(ee).slice(8,-1);if(x==="Object"&&ee.constructor&&(x=ee.constructor.name),x==="Map"||x==="Set")return Array.from(ee);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return oe(ee,de)}}function oe(ee,de){(de==null||de>ee.length)&&(de=ee.length);for(var x=0,te=new Array(de);x<de;x++)te[x]=ee[x];return te}Object.defineProperty(ye,"__esModule",{value:!0}),ye.omit=void 0;function se(ee,de){var x=Object.assign({},ee),te=E(de),re;try{for(te.s();!(re=te.n()).done;){var ae=re.value;delete x[ae]}}catch(ue){te.e(ue)}finally{te.f()}return x}ye.omit=se},{"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.iterator.js":303,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.iterator.js":312,"core-js/modules/es.symbol.js":313,"core-js/modules/web.dom-collections.iterator.js":340}],74:[function(y,Se,ye){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(ye,"__esModule",{value:!0}),ye.retry=void 0;function E(z,oe){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,de=se.retryDelay,x=de===void 0?500:de,te=se.errorHandler,re=te===void 0?function(){return!0}:te,ae=function ue(){for(var he=arguments.length,pe=new Array(he),me=0;me<he;me++)pe[me]=arguments[me];return new Promise(function(fe,ve){z.apply(void 0,pe).then(function(ke){ee=0,fe(ke)}).catch(function(ke){ee<oe&&re(ke)?(ee++,setTimeout(function(){fe(ue.apply(void 0,pe))},x)):(ee=0,ve(ke))})})};return ae}ye.retry=E},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,Se,ye){"use strict";var E=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(ye,"__esModule",{value:!0}),ye.setRegion=void 0;var z=E(y("url")),oe=y("./checkConfigValid");function se(ee){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;oe.checkConfigValid(ee,"region");var te=x?"https://":"http://",re=de?"-internal.aliyuncs.com":".aliyuncs.com",ae="vpc100-oss-cn-";return ee.substr(0,ae.length)===ae&&(re=".aliyuncs.com"),z.default.parse(te+ee+re)}ye.setRegion=se},{"./checkConfigValid":52,url:472}],76:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.object.assign.js");var oe=E(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ye,"__esModule",{value:!0}),ye.checkCredentials=ye.setSTSToken=void 0;var se=y("./formatObjKey");function ee(){return de.apply(this,arguments)}function de(){return de=(0,oe.default)(z.default.mark(function te(){var re,ae;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:if(this.options||(this.options={}),re=new Date,!this.stsTokenFreshTime){he.next=14;break}if(!(+re-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){he.next=12;break}return this.stsTokenFreshTime=re,he.next=7,this.options.refreshSTSToken();case 7:ae=he.sent,ae=se.formatObjKey(ae,"firstLowerCase"),ae.securityToken&&(ae.stsToken=ae.securityToken),x(ae),Object.assign(this.options,ae);case 12:he.next=15;break;case 14:this.stsTokenFreshTime=re;case 15:return he.abrupt("return",null);case 16:case"end":return he.stop()}},te,this)})),de.apply(this,arguments)}ye.setSTSToken=ee;function x(te){var re=["accessKeySecret","accessKeyId","stsToken"],ae=Object.keys(te);re.forEach(function(ue){if(!ae.find(function(he){return he===ue}))throw Error("refreshSTSToken must return contains ".concat(ue))})}ye.checkCredentials=x},{"./formatObjKey":61,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.find.js":275,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291}],77:[function(y,Se,ye){function E(oe,se,ee,de,x,te,re){try{var ae=oe[te](re),ue=ae.value}catch(he){ee(he);return}ae.done?se(ue):Promise.resolve(ue).then(de,x)}function z(oe){return function(){var se=this,ee=arguments;return new Promise(function(de,x){var te=oe.apply(se,ee);function re(ue){E(te,de,x,re,ae,"next",ue)}function ae(ue){E(te,de,x,re,ae,"throw",ue)}re(void 0)})}}Se.exports=z,Se.exports.__esModule=!0,Se.exports.default=Se.exports},{}],78:[function(y,Se,ye){function E(z){return z&&z.__esModule?z:{default:z}}Se.exports=E,Se.exports.__esModule=!0,Se.exports.default=Se.exports},{}],79:[function(y,Se,ye){function E(z){"@babel/helpers - typeof";return Se.exports=E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},Se.exports.__esModule=!0,Se.exports.default=Se.exports,E(z)}Se.exports=E,Se.exports.__esModule=!0,Se.exports.default=Se.exports},{}],80:[function(y,Se,ye){Se.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,Se,ye){Se.exports=E,Se.exports.HttpsAgent=E;function E(){}},{}],82:[function(y,Se,ye){(function(E){(function(){"use strict";var z=y("object-assign");function oe(He,Ke){if(He===Ke)return 0;for(var Ye=He.length,it=Ke.length,Re=0,We=Math.min(Ye,it);Re<We;++Re)if(He[Re]!==Ke[Re]){Ye=He[Re],it=Ke[Re];break}return Ye<it?-1:it<Ye?1:0}function se(He){return E.Buffer&&typeof E.Buffer.isBuffer=="function"?E.Buffer.isBuffer(He):!!(He!=null&&He._isBuffer)}var ee=y("util/"),de=Object.prototype.hasOwnProperty,x=Array.prototype.slice,te=function(){return function(){}.name==="foo"}();function re(He){return Object.prototype.toString.call(He)}function ae(He){return se(He)||typeof E.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(He):He?!!(He instanceof DataView||He.buffer&&He.buffer instanceof ArrayBuffer):!1}var ue=Se.exports=Te,he=/\s*function\s+([^\(\s]*)\s*/;function pe(He){if(ee.isFunction(He)){if(te)return He.name;var Ke=He.toString(),Ye=Ke.match(he);return Ye&&Ye[1]}}ue.AssertionError=function(Ke){this.name="AssertionError",this.actual=Ke.actual,this.expected=Ke.expected,this.operator=Ke.operator,Ke.message?(this.message=Ke.message,this.generatedMessage=!1):(this.message=ve(this),this.generatedMessage=!0);var Ye=Ke.stackStartFunction||ke;if(Error.captureStackTrace)Error.captureStackTrace(this,Ye);else{var it=new Error;if(it.stack){var Re=it.stack,We=pe(Ye),et=Re.indexOf(`
`+We);if(et>=0){var nt=Re.indexOf(`
`,et+1);Re=Re.substring(nt+1)}this.stack=Re}}},ee.inherits(ue.AssertionError,Error);function me(He,Ke){return typeof He=="string"?He.length<Ke?He:He.slice(0,Ke):He}function fe(He){if(te||!ee.isFunction(He))return ee.inspect(He);var Ke=pe(He),Ye=Ke?": "+Ke:"";return"[Function"+Ye+"]"}function ve(He){return me(fe(He.actual),128)+" "+He.operator+" "+me(fe(He.expected),128)}function ke(He,Ke,Ye,it,Re){throw new ue.AssertionError({message:Ye,actual:He,expected:Ke,operator:it,stackStartFunction:Re})}ue.fail=ke;function Te(He,Ke){He||ke(He,!0,Ke,"==",ue.ok)}ue.ok=Te,ue.equal=function(Ke,Ye,it){Ke!=Ye&&ke(Ke,Ye,it,"==",ue.equal)},ue.notEqual=function(Ke,Ye,it){Ke==Ye&&ke(Ke,Ye,it,"!=",ue.notEqual)},ue.deepEqual=function(Ke,Ye,it){Pe(Ke,Ye,!1)||ke(Ke,Ye,it,"deepEqual",ue.deepEqual)},ue.deepStrictEqual=function(Ke,Ye,it){Pe(Ke,Ye,!0)||ke(Ke,Ye,it,"deepStrictEqual",ue.deepStrictEqual)};function Pe(He,Ke,Ye,it){if(He===Ke)return!0;if(se(He)&&se(Ke))return oe(He,Ke)===0;if(ee.isDate(He)&&ee.isDate(Ke))return He.getTime()===Ke.getTime();if(ee.isRegExp(He)&&ee.isRegExp(Ke))return He.source===Ke.source&&He.global===Ke.global&&He.multiline===Ke.multiline&&He.lastIndex===Ke.lastIndex&&He.ignoreCase===Ke.ignoreCase;if((He===null||typeof He!="object")&&(Ke===null||typeof Ke!="object"))return Ye?He===Ke:He==Ke;if(ae(He)&&ae(Ke)&&re(He)===re(Ke)&&!(He instanceof Float32Array||He instanceof Float64Array))return oe(new Uint8Array(He.buffer),new Uint8Array(Ke.buffer))===0;if(se(He)!==se(Ke))return!1;it=it||{actual:[],expected:[]};var Re=it.actual.indexOf(He);return Re!==-1&&Re===it.expected.indexOf(Ke)?!0:(it.actual.push(He),it.expected.push(Ke),be(He,Ke,Ye,it))}function _e(He){return Object.prototype.toString.call(He)=="[object Arguments]"}function be(He,Ke,Ye,it){if(He==null||Ke===null||Ke===void 0)return!1;if(ee.isPrimitive(He)||ee.isPrimitive(Ke))return He===Ke;if(Ye&&Object.getPrototypeOf(He)!==Object.getPrototypeOf(Ke))return!1;var Re=_e(He),We=_e(Ke);if(Re&&!We||!Re&&We)return!1;if(Re)return He=x.call(He),Ke=x.call(Ke),Pe(He,Ke,Ye);var et=De(He),nt=De(Ke),rt,Xe;if(et.length!==nt.length)return!1;for(et.sort(),nt.sort(),Xe=et.length-1;Xe>=0;Xe--)if(et[Xe]!==nt[Xe])return!1;for(Xe=et.length-1;Xe>=0;Xe--)if(rt=et[Xe],!Pe(He[rt],Ke[rt],Ye,it))return!1;return!0}ue.notDeepEqual=function(Ke,Ye,it){Pe(Ke,Ye,!1)&&ke(Ke,Ye,it,"notDeepEqual",ue.notDeepEqual)},ue.notDeepStrictEqual=xe;function xe(He,Ke,Ye){Pe(He,Ke,!0)&&ke(He,Ke,Ye,"notDeepStrictEqual",xe)}ue.strictEqual=function(Ke,Ye,it){Ke!==Ye&&ke(Ke,Ye,it,"===",ue.strictEqual)},ue.notStrictEqual=function(Ke,Ye,it){Ke===Ye&&ke(Ke,Ye,it,"!==",ue.notStrictEqual)};function Ae(He,Ke){if(!He||!Ke)return!1;if(Object.prototype.toString.call(Ke)=="[object RegExp]")return Ke.test(He);try{if(He instanceof Ke)return!0}catch(Ye){}return Error.isPrototypeOf(Ke)?!1:Ke.call({},He)===!0}function Me(He){var Ke;try{He()}catch(Ye){Ke=Ye}return Ke}function Be(He,Ke,Ye,it){var Re;if(typeof Ke!="function")throw new TypeError('"block" argument must be a function');typeof Ye=="string"&&(it=Ye,Ye=null),Re=Me(Ke),it=(Ye&&Ye.name?" ("+Ye.name+").":".")+(it?" "+it:"."),He&&!Re&&ke(Re,Ye,"Missing expected exception"+it);var We=typeof it=="string",et=!He&&ee.isError(Re),nt=!He&&Re&&!Ye;if((et&&We&&Ae(Re,Ye)||nt)&&ke(Re,Ye,"Got unwanted exception"+it),He&&Re&&Ye&&!Ae(Re,Ye)||!He&&Re)throw Re}ue.throws=function(He,Ke,Ye){Be(!0,He,Ke,Ye)},ue.doesNotThrow=function(He,Ke,Ye){Be(!1,He,Ke,Ye)},ue.ifError=function(He){if(He)throw He};function Ce(He,Ke){He||ke(He,!0,Ke,"==",Ce)}ue.strict=z(Ce,ue,{equal:ue.strictEqual,deepEqual:ue.deepStrictEqual,notEqual:ue.notStrictEqual,notDeepEqual:ue.notDeepStrictEqual}),ue.strict.strict=ue.strict;var De=Object.keys||function(He){var Ke=[];for(var Ye in He)de.call(He,Ye)&&Ke.push(Ye);return Ke}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,Se,ye){typeof Object.create=="function"?Se.exports=function(z,oe){z.super_=oe,z.prototype=Object.create(oe.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:Se.exports=function(z,oe){z.super_=oe;var se=function(){};se.prototype=oe.prototype,z.prototype=new se,z.prototype.constructor=z}},{}],84:[function(y,Se,ye){Se.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(y,Se,ye){(function(E,z){(function(){var oe=/%[sdj%]/g;ye.format=function(nt){if(!be(nt)){for(var rt=[],Xe=0;Xe<arguments.length;Xe++)rt.push(de(arguments[Xe]));return rt.join(" ")}for(var Xe=1,Je=arguments,Ve=Je.length,at=String(nt).replace(oe,function(ut){if(ut==="%%")return"%";if(Xe>=Ve)return ut;switch(ut){case"%s":return String(Je[Xe++]);case"%d":return Number(Je[Xe++]);case"%j":try{return JSON.stringify(Je[Xe++])}catch(st){return"[Circular]"}default:return ut}}),Qe=Je[Xe];Xe<Ve;Qe=Je[++Xe])Te(Qe)||!Be(Qe)?at+=" "+Qe:at+=" "+de(Qe);return at},ye.deprecate=function(nt,rt){if(Ae(z.process))return function(){return ye.deprecate(nt,rt).apply(this,arguments)};if(E.noDeprecation===!0)return nt;var Xe=!1;function Je(){if(!Xe){if(E.throwDeprecation)throw new Error(rt);E.traceDeprecation?console.trace(rt):console.error(rt),Xe=!0}return nt.apply(this,arguments)}return Je};var se={},ee;ye.debuglog=function(nt){if(Ae(ee)&&(ee=E.env.NODE_DEBUG||""),nt=nt.toUpperCase(),!se[nt])if(new RegExp("\\b"+nt+"\\b","i").test(ee)){var rt=E.pid;se[nt]=function(){var Xe=ye.format.apply(ye,arguments);console.error("%s %d: %s",nt,rt,Xe)}}else se[nt]=function(){};return se[nt]};function de(nt,rt){var Xe={seen:[],stylize:te};return arguments.length>=3&&(Xe.depth=arguments[2]),arguments.length>=4&&(Xe.colors=arguments[3]),ke(rt)?Xe.showHidden=rt:rt&&ye._extend(Xe,rt),Ae(Xe.showHidden)&&(Xe.showHidden=!1),Ae(Xe.depth)&&(Xe.depth=2),Ae(Xe.colors)&&(Xe.colors=!1),Ae(Xe.customInspect)&&(Xe.customInspect=!0),Xe.colors&&(Xe.stylize=x),ae(Xe,nt,Xe.depth)}ye.inspect=de,de.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},de.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function x(nt,rt){var Xe=de.styles[rt];return Xe?"\x1B["+de.colors[Xe][0]+"m"+nt+"\x1B["+de.colors[Xe][1]+"m":nt}function te(nt,rt){return nt}function re(nt){var rt={};return nt.forEach(function(Xe,Je){rt[Xe]=!0}),rt}function ae(nt,rt,Xe){if(nt.customInspect&&rt&&He(rt.inspect)&&rt.inspect!==ye.inspect&&!(rt.constructor&&rt.constructor.prototype===rt)){var Je=rt.inspect(Xe,nt);return be(Je)||(Je=ae(nt,Je,Xe)),Je}var Ve=ue(nt,rt);if(Ve)return Ve;var at=Object.keys(rt),Qe=re(at);if(nt.showHidden&&(at=Object.getOwnPropertyNames(rt)),De(rt)&&(at.indexOf("message")>=0||at.indexOf("description")>=0))return he(rt);if(at.length===0){if(He(rt)){var ut=rt.name?": "+rt.name:"";return nt.stylize("[Function"+ut+"]","special")}if(Me(rt))return nt.stylize(RegExp.prototype.toString.call(rt),"regexp");if(Ce(rt))return nt.stylize(Date.prototype.toString.call(rt),"date");if(De(rt))return he(rt)}var st="",$e=!1,Ne=["{","}"];if(ve(rt)&&($e=!0,Ne=["[","]"]),He(rt)){var je=rt.name?": "+rt.name:"";st=" [Function"+je+"]"}if(Me(rt)&&(st=" "+RegExp.prototype.toString.call(rt)),Ce(rt)&&(st=" "+Date.prototype.toUTCString.call(rt)),De(rt)&&(st=" "+he(rt)),at.length===0&&(!$e||rt.length==0))return Ne[0]+st+Ne[1];if(Xe<0)return Me(rt)?nt.stylize(RegExp.prototype.toString.call(rt),"regexp"):nt.stylize("[Object]","special");nt.seen.push(rt);var ne;return $e?ne=pe(nt,rt,Xe,Qe,at):ne=at.map(function(ce){return me(nt,rt,Xe,Qe,ce,$e)}),nt.seen.pop(),fe(ne,st,Ne)}function ue(nt,rt){if(Ae(rt))return nt.stylize("undefined","undefined");if(be(rt)){var Xe="'"+JSON.stringify(rt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return nt.stylize(Xe,"string")}if(_e(rt))return nt.stylize(""+rt,"number");if(ke(rt))return nt.stylize(""+rt,"boolean");if(Te(rt))return nt.stylize("null","null")}function he(nt){return"["+Error.prototype.toString.call(nt)+"]"}function pe(nt,rt,Xe,Je,Ve){for(var at=[],Qe=0,ut=rt.length;Qe<ut;++Qe)et(rt,String(Qe))?at.push(me(nt,rt,Xe,Je,String(Qe),!0)):at.push("");return Ve.forEach(function(st){st.match(/^\d+$/)||at.push(me(nt,rt,Xe,Je,st,!0))}),at}function me(nt,rt,Xe,Je,Ve,at){var Qe,ut,st;if(st=Object.getOwnPropertyDescriptor(rt,Ve)||{value:rt[Ve]},st.get?st.set?ut=nt.stylize("[Getter/Setter]","special"):ut=nt.stylize("[Getter]","special"):st.set&&(ut=nt.stylize("[Setter]","special")),et(Je,Ve)||(Qe="["+Ve+"]"),ut||(nt.seen.indexOf(st.value)<0?(Te(Xe)?ut=ae(nt,st.value,null):ut=ae(nt,st.value,Xe-1),ut.indexOf(`
`)>-1&&(at?ut=ut.split(`
`).map(function($e){return" "+$e}).join(`
`).substr(2):ut=`
`+ut.split(`
`).map(function($e){return" "+$e}).join(`
`))):ut=nt.stylize("[Circular]","special")),Ae(Qe)){if(at&&Ve.match(/^\d+$/))return ut;Qe=JSON.stringify(""+Ve),Qe.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Qe=Qe.substr(1,Qe.length-2),Qe=nt.stylize(Qe,"name")):(Qe=Qe.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Qe=nt.stylize(Qe,"string"))}return Qe+": "+ut}function fe(nt,rt,Xe){var Je=0,Ve=nt.reduce(function(at,Qe){return Je++,Qe.indexOf(`
`)>=0&&Je++,at+Qe.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ve>60?Xe[0]+(rt===""?"":rt+`
`)+" "+nt.join(`,
`)+" "+Xe[1]:Xe[0]+rt+" "+nt.join(", ")+" "+Xe[1]}function ve(nt){return Array.isArray(nt)}ye.isArray=ve;function ke(nt){return typeof nt=="boolean"}ye.isBoolean=ke;function Te(nt){return nt===null}ye.isNull=Te;function Pe(nt){return nt==null}ye.isNullOrUndefined=Pe;function _e(nt){return typeof nt=="number"}ye.isNumber=_e;function be(nt){return typeof nt=="string"}ye.isString=be;function xe(nt){return typeof nt=="symbol"}ye.isSymbol=xe;function Ae(nt){return nt===void 0}ye.isUndefined=Ae;function Me(nt){return Be(nt)&&Ye(nt)==="[object RegExp]"}ye.isRegExp=Me;function Be(nt){return typeof nt=="object"&&nt!==null}ye.isObject=Be;function Ce(nt){return Be(nt)&&Ye(nt)==="[object Date]"}ye.isDate=Ce;function De(nt){return Be(nt)&&(Ye(nt)==="[object Error]"||nt instanceof Error)}ye.isError=De;function He(nt){return typeof nt=="function"}ye.isFunction=He;function Ke(nt){return nt===null||typeof nt=="boolean"||typeof nt=="number"||typeof nt=="string"||typeof nt=="symbol"||typeof nt=="undefined"}ye.isPrimitive=Ke,ye.isBuffer=y("./support/isBuffer");function Ye(nt){return Object.prototype.toString.call(nt)}function it(nt){return nt<10?"0"+nt.toString(10):nt.toString(10)}var Re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function We(){var nt=new Date,rt=[it(nt.getHours()),it(nt.getMinutes()),it(nt.getSeconds())].join(":");return[nt.getDate(),Re[nt.getMonth()],rt].join(" ")}ye.log=function(){console.log("%s - %s",We(),ye.format.apply(ye,arguments))},ye.inherits=y("inherits"),ye._extend=function(nt,rt){if(!rt||!Be(rt))return nt;for(var Xe=Object.keys(rt),Je=Xe.length;Je--;)nt[Xe[Je]]=rt[Xe[Je]];return nt};function et(nt,rt){return Object.prototype.hasOwnProperty.call(nt,rt)}}).call(this)}).call(this,y("_process"),typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(y,Se,ye){(function(E){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],oe=typeof globalThis=="undefined"?E:globalThis;Se.exports=function(){for(var ee=[],de=0;de<z.length;de++)typeof oe[z[de]]=="function"&&(ee[ee.length]=z[de]);return ee}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,Se,ye){"use strict";ye.byteLength=te,ye.toByteArray=ae,ye.fromByteArray=pe;for(var E=[],z=[],oe=typeof Uint8Array!="undefined"?Uint8Array:Array,se="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,de=se.length;ee<de;++ee)E[ee]=se[ee],z[se.charCodeAt(ee)]=ee;z[45]=62,z[95]=63;function x(me){var fe=me.length;if(fe%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ve=me.indexOf("=");ve===-1&&(ve=fe);var ke=ve===fe?0:4-ve%4;return[ve,ke]}function te(me){var fe=x(me),ve=fe[0],ke=fe[1];return(ve+ke)*3/4-ke}function re(me,fe,ve){return(fe+ve)*3/4-ve}function ae(me){var fe,ve=x(me),ke=ve[0],Te=ve[1],Pe=new oe(re(me,ke,Te)),_e=0,be=Te>0?ke-4:ke,xe;for(xe=0;xe<be;xe+=4)fe=z[me.charCodeAt(xe)]<<18|z[me.charCodeAt(xe+1)]<<12|z[me.charCodeAt(xe+2)]<<6|z[me.charCodeAt(xe+3)],Pe[_e++]=fe>>16&255,Pe[_e++]=fe>>8&255,Pe[_e++]=fe&255;return Te===2&&(fe=z[me.charCodeAt(xe)]<<2|z[me.charCodeAt(xe+1)]>>4,Pe[_e++]=fe&255),Te===1&&(fe=z[me.charCodeAt(xe)]<<10|z[me.charCodeAt(xe+1)]<<4|z[me.charCodeAt(xe+2)]>>2,Pe[_e++]=fe>>8&255,Pe[_e++]=fe&255),Pe}function ue(me){return E[me>>18&63]+E[me>>12&63]+E[me>>6&63]+E[me&63]}function he(me,fe,ve){for(var ke,Te=[],Pe=fe;Pe<ve;Pe+=3)ke=(me[Pe]<<16&16711680)+(me[Pe+1]<<8&65280)+(me[Pe+2]&255),Te.push(ue(ke));return Te.join("")}function pe(me){for(var fe,ve=me.length,ke=ve%3,Te=[],Pe=16383,_e=0,be=ve-ke;_e<be;_e+=Pe)Te.push(he(me,_e,_e+Pe>be?be:_e+Pe));return ke===1?(fe=me[ve-1],Te.push(E[fe>>2]+E[fe<<4&63]+"==")):ke===2&&(fe=(me[ve-2]<<8)+me[ve-1],Te.push(E[fe>>10]+E[fe>>4&63]+E[fe<<2&63]+"=")),Te.join("")}},{}],88:[function(y,Se,ye){(function(E,z,oe){typeof Se!="undefined"&&Se.exports?Se.exports=oe():typeof ze=="function"&&ze.amd?ze(z,oe):E[z]=oe()})(this,"bowser",function(){var E=!0;function z(re){function ae(rt){var Xe=re.match(rt);return Xe&&Xe.length>1&&Xe[1]||""}function ue(rt){var Xe=re.match(rt);return Xe&&Xe.length>1&&Xe[2]||""}var he=ae(/(ipod|iphone|ipad)/i).toLowerCase(),pe=/like android/i.test(re),me=!pe&&/android/i.test(re),fe=/nexus\s*[0-6]\s*/i.test(re),ve=!fe&&/nexus\s*[0-9]+/i.test(re),ke=/CrOS/.test(re),Te=/silk/i.test(re),Pe=/sailfish/i.test(re),_e=/tizen/i.test(re),be=/(web|hpw)(o|0)s/i.test(re),xe=/windows phone/i.test(re),Ae=/SamsungBrowser/i.test(re),Me=!xe&&/windows/i.test(re),Be=!he&&!Te&&/macintosh/i.test(re),Ce=!me&&!Pe&&!_e&&!be&&/linux/i.test(re),De=ue(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),He=ae(/version\/(\d+(\.\d+)?)/i),Ke=/tablet/i.test(re)&&!/tablet pc/i.test(re),Ye=!Ke&&/[^-]mobi/i.test(re),it=/xbox/i.test(re),Re;/opera/i.test(re)?Re={name:"Opera",opera:E,version:He||ae(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(re)?Re={name:"Opera",opera:E,version:ae(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||He}:/SamsungBrowser/i.test(re)?Re={name:"Samsung Internet for Android",samsungBrowser:E,version:He||ae(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(re)?Re={name:"NAVER Whale browser",whale:E,version:ae(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(re)?Re={name:"MZ Browser",mzbrowser:E,version:ae(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(re)?Re={name:"Opera Coast",coast:E,version:He||ae(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(re)?Re={name:"Focus",focus:E,version:ae(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(re)?Re={name:"Yandex Browser",yandexbrowser:E,version:He||ae(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(re)?Re={name:"UC Browser",ucbrowser:E,version:ae(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(re)?Re={name:"Maxthon",maxthon:E,version:ae(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(re)?Re={name:"Epiphany",epiphany:E,version:ae(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(re)?Re={name:"Puffin",puffin:E,version:ae(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(re)?Re={name:"Sleipnir",sleipnir:E,version:ae(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(re)?Re={name:"K-Meleon",kMeleon:E,version:ae(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:xe?(Re={name:"Windows Phone",osname:"Windows Phone",windowsphone:E},De?(Re.msedge=E,Re.version=De):(Re.msie=E,Re.version=ae(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(re)?Re={name:"Internet Explorer",msie:E,version:ae(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:ke?Re={name:"Chrome",osname:"Chrome OS",chromeos:E,chromeBook:E,chrome:E,version:ae(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(re)?Re={name:"Microsoft Edge",msedge:E,version:De}:/vivaldi/i.test(re)?Re={name:"Vivaldi",vivaldi:E,version:ae(/vivaldi\/(\d+(\.\d+)?)/i)||He}:Pe?Re={name:"Sailfish",osname:"Sailfish OS",sailfish:E,version:ae(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(re)?Re={name:"SeaMonkey",seamonkey:E,version:ae(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(re)?(Re={name:"Firefox",firefox:E,version:ae(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(re)&&(Re.firefoxos=E,Re.osname="Firefox OS")):Te?Re={name:"Amazon Silk",silk:E,version:ae(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(re)?Re={name:"PhantomJS",phantom:E,version:ae(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(re)?Re={name:"SlimerJS",slimer:E,version:ae(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(re)||/rim\stablet/i.test(re)?Re={name:"BlackBerry",osname:"BlackBerry OS",blackberry:E,version:He||ae(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:be?(Re={name:"WebOS",osname:"WebOS",webos:E,version:He||ae(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(re)&&(Re.touchpad=E)):/bada/i.test(re)?Re={name:"Bada",osname:"Bada",bada:E,version:ae(/dolfin\/(\d+(\.\d+)?)/i)}:_e?Re={name:"Tizen",osname:"Tizen",tizen:E,version:ae(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||He}:/qupzilla/i.test(re)?Re={name:"QupZilla",qupzilla:E,version:ae(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||He}:/chromium/i.test(re)?Re={name:"Chromium",chromium:E,version:ae(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||He}:/chrome|crios|crmo/i.test(re)?Re={name:"Chrome",chrome:E,version:ae(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:me?Re={name:"Android",version:He}:/safari|applewebkit/i.test(re)?(Re={name:"Safari",safari:E},He&&(Re.version=He)):he?(Re={name:he=="iphone"?"iPhone":he=="ipad"?"iPad":"iPod"},He&&(Re.version=He)):/googlebot/i.test(re)?Re={name:"Googlebot",googlebot:E,version:ae(/googlebot\/(\d+(\.\d+))/i)||He}:Re={name:ae(/^(.*)\/(.*) /),version:ue(/^(.*)\/(.*) /)},!Re.msedge&&/(apple)?webkit/i.test(re)?(/(apple)?webkit\/537\.36/i.test(re)?(Re.name=Re.name||"Blink",Re.blink=E):(Re.name=Re.name||"Webkit",Re.webkit=E),!Re.version&&He&&(Re.version=He)):!Re.opera&&/gecko\//i.test(re)&&(Re.name=Re.name||"Gecko",Re.gecko=E,Re.version=Re.version||ae(/gecko\/(\d+(\.\d+)?)/i)),!Re.windowsphone&&(me||Re.silk)?(Re.android=E,Re.osname="Android"):!Re.windowsphone&&he?(Re[he]=E,Re.ios=E,Re.osname="iOS"):Be?(Re.mac=E,Re.osname="macOS"):it?(Re.xbox=E,Re.osname="Xbox"):Me?(Re.windows=E,Re.osname="Windows"):Ce&&(Re.linux=E,Re.osname="Linux");function We(rt){switch(rt){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var et="";Re.windows?et=We(ae(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Re.windowsphone?et=ae(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Re.mac?(et=ae(/Mac OS X (\d+([_\.\s]\d+)*)/i),et=et.replace(/[_\s]/g,".")):he?(et=ae(/os (\d+([_\s]\d+)*) like mac os x/i),et=et.replace(/[_\s]/g,".")):me?et=ae(/android[ \/-](\d+(\.\d+)*)/i):Re.webos?et=ae(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Re.blackberry?et=ae(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Re.bada?et=ae(/bada\/(\d+(\.\d+)*)/i):Re.tizen&&(et=ae(/tizen[\/\s](\d+(\.\d+)*)/i)),et&&(Re.osversion=et);var nt=!Re.windows&&et.split(".")[0];return Ke||ve||he=="ipad"||me&&(nt==3||nt>=4&&!Ye)||Re.silk?Re.tablet=E:(Ye||he=="iphone"||he=="ipod"||me||fe||Re.blackberry||Re.webos||Re.bada)&&(Re.mobile=E),Re.msedge||Re.msie&&Re.version>=10||Re.yandexbrowser&&Re.version>=15||Re.vivaldi&&Re.version>=1||Re.chrome&&Re.version>=20||Re.samsungBrowser&&Re.version>=4||Re.whale&&de([Re.version,"1.0"])===1||Re.mzbrowser&&de([Re.version,"6.0"])===1||Re.focus&&de([Re.version,"1.0"])===1||Re.firefox&&Re.version>=20||Re.safari&&Re.version>=6||Re.opera&&Re.version>=10||Re.ios&&Re.osversion&&Re.osversion.split(".")[0]>=6||Re.blackberry&&Re.version>=10.1||Re.chromium&&Re.version>=20?Re.a=E:Re.msie&&Re.version<10||Re.chrome&&Re.version<20||Re.firefox&&Re.version<20||Re.safari&&Re.version<6||Re.opera&&Re.version<10||Re.ios&&Re.osversion&&Re.osversion.split(".")[0]<6||Re.chromium&&Re.version<20?Re.c=E:Re.x=E,Re}var oe=z(typeof navigator!="undefined"&&navigator.userAgent||"");oe.test=function(re){for(var ae=0;ae<re.length;++ae){var ue=re[ae];if(typeof ue=="string"&&ue in oe)return!0}return!1};function se(re){return re.split(".").length}function ee(re,ae){var ue=[],he;if(Array.prototype.map)return Array.prototype.map.call(re,ae);for(he=0;he<re.length;he++)ue.push(ae(re[he]));return ue}function de(re){for(var ae=Math.max(se(re[0]),se(re[1])),ue=ee(re,function(he){var pe=ae-se(he);return he=he+new Array(pe+1).join(".0"),ee(he.split("."),function(me){return new Array(20-me.length).join("0")+me}).reverse()});--ae>=0;){if(ue[0][ae]>ue[1][ae])return 1;if(ue[0][ae]===ue[1][ae]){if(ae===0)return 0}else return-1}}function x(re,ae,ue){var he=oe;typeof ae=="string"&&(ue=ae,ae=void 0),ae===void 0&&(ae=!1),ue&&(he=z(ue));var pe=""+he.version;for(var me in re)if(re.hasOwnProperty(me)&&he[me]){if(typeof re[me]!="string")throw new Error("Browser version in the minVersion map should be a string: "+me+": "+String(re));return de([pe,re[me]])<0}return ae}function te(re,ae,ue){return!x(re,ae,ue)}return oe.isUnsupportedBrowser=x,oe.compareVersions=de,oe.check=te,oe._detect=z,oe.detect=z,oe})},{}],89:[function(y,Se,ye){},{}],90:[function(y,Se,ye){(function(E){(function(){"use strict";var z=y("base64-js"),oe=y("ieee754");ye.Buffer=x,ye.SlowBuffer=ke,ye.INSPECT_MAX_BYTES=50;var se=2147483647;ye.kMaxLength=se,x.TYPED_ARRAY_SUPPORT=ee(),!x.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 ee(){try{var Ee=new Uint8Array(1);return Ee.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ee.foo()===42}catch(Oe){return!1}}Object.defineProperty(x.prototype,"parent",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.buffer}}),Object.defineProperty(x.prototype,"offset",{enumerable:!0,get:function(){if(x.isBuffer(this))return this.byteOffset}});function de(Ee){if(Ee>se)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');var Oe=new Uint8Array(Ee);return Oe.__proto__=x.prototype,Oe}function x(Ee,Oe,Ue){if(typeof Ee=="number"){if(typeof Oe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(Ee)}return te(Ee,Oe,Ue)}typeof Symbol!="undefined"&&Symbol.species!=null&&x[Symbol.species]===x&&Object.defineProperty(x,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),x.poolSize=8192;function te(Ee,Oe,Ue){if(typeof Ee=="string")return he(Ee,Oe);if(ArrayBuffer.isView(Ee))return pe(Ee);if(Ee==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee);if(Fe(Ee,ArrayBuffer)||Ee&&Fe(Ee.buffer,ArrayBuffer))return me(Ee,Oe,Ue);if(typeof Ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var tt=Ee.valueOf&&Ee.valueOf();if(tt!=null&&tt!==Ee)return x.from(tt,Oe,Ue);var Ge=fe(Ee);if(Ge)return Ge;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ee[Symbol.toPrimitive]=="function")return x.from(Ee[Symbol.toPrimitive]("string"),Oe,Ue);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee)}x.from=function(Ee,Oe,Ue){return te(Ee,Oe,Ue)},x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array;function re(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 ae(Ee,Oe,Ue){return re(Ee),Ee<=0?de(Ee):Oe!==void 0?typeof Ue=="string"?de(Ee).fill(Oe,Ue):de(Ee).fill(Oe):de(Ee)}x.alloc=function(Ee,Oe,Ue){return ae(Ee,Oe,Ue)};function ue(Ee){return re(Ee),de(Ee<0?0:ve(Ee)|0)}x.allocUnsafe=function(Ee){return ue(Ee)},x.allocUnsafeSlow=function(Ee){return ue(Ee)};function he(Ee,Oe){if((typeof Oe!="string"||Oe==="")&&(Oe="utf8"),!x.isEncoding(Oe))throw new TypeError("Unknown encoding: "+Oe);var Ue=Te(Ee,Oe)|0,tt=de(Ue),Ge=tt.write(Ee,Oe);return Ge!==Ue&&(tt=tt.slice(0,Ge)),tt}function pe(Ee){for(var Oe=Ee.length<0?0:ve(Ee.length)|0,Ue=de(Oe),tt=0;tt<Oe;tt+=1)Ue[tt]=Ee[tt]&255;return Ue}function me(Ee,Oe,Ue){if(Oe<0||Ee.byteLength<Oe)throw new RangeError('"offset" is outside of buffer bounds');if(Ee.byteLength<Oe+(Ue||0))throw new RangeError('"length" is outside of buffer bounds');var tt;return Oe===void 0&&Ue===void 0?tt=new Uint8Array(Ee):Ue===void 0?tt=new Uint8Array(Ee,Oe):tt=new Uint8Array(Ee,Oe,Ue),tt.__proto__=x.prototype,tt}function fe(Ee){if(x.isBuffer(Ee)){var Oe=ve(Ee.length)|0,Ue=de(Oe);return Ue.length===0||Ee.copy(Ue,0,0,Oe),Ue}if(Ee.length!==void 0)return typeof Ee.length!="number"||we(Ee.length)?de(0):pe(Ee);if(Ee.type==="Buffer"&&Array.isArray(Ee.data))return pe(Ee.data)}function ve(Ee){if(Ee>=se)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+se.toString(16)+" bytes");return Ee|0}function ke(Ee){return+Ee!=Ee&&(Ee=0),x.alloc(+Ee)}x.isBuffer=function(Oe){return Oe!=null&&Oe._isBuffer===!0&&Oe!==x.prototype},x.compare=function(Oe,Ue){if(Fe(Oe,Uint8Array)&&(Oe=x.from(Oe,Oe.offset,Oe.byteLength)),Fe(Ue,Uint8Array)&&(Ue=x.from(Ue,Ue.offset,Ue.byteLength)),!x.isBuffer(Oe)||!x.isBuffer(Ue))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Oe===Ue)return 0;for(var tt=Oe.length,Ge=Ue.length,ft=0,ct=Math.min(tt,Ge);ft<ct;++ft)if(Oe[ft]!==Ue[ft]){tt=Oe[ft],Ge=Ue[ft];break}return tt<Ge?-1:Ge<tt?1:0},x.isEncoding=function(Oe){switch(String(Oe).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}},x.concat=function(Oe,Ue){if(!Array.isArray(Oe))throw new TypeError('"list" argument must be an Array of Buffers');if(Oe.length===0)return x.alloc(0);var tt;if(Ue===void 0)for(Ue=0,tt=0;tt<Oe.length;++tt)Ue+=Oe[tt].length;var Ge=x.allocUnsafe(Ue),ft=0;for(tt=0;tt<Oe.length;++tt){var ct=Oe[tt];if(Fe(ct,Uint8Array)&&(ct=x.from(ct)),!x.isBuffer(ct))throw new TypeError('"list" argument must be an Array of Buffers');ct.copy(Ge,ft),ft+=ct.length}return Ge};function Te(Ee,Oe){if(x.isBuffer(Ee))return Ee.length;if(ArrayBuffer.isView(Ee)||Fe(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 Ue=Ee.length,tt=arguments.length>2&&arguments[2]===!0;if(!tt&&Ue===0)return 0;for(var Ge=!1;;)switch(Oe){case"ascii":case"latin1":case"binary":return Ue;case"utf8":case"utf-8":return Ne(Ee).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue*2;case"hex":return Ue>>>1;case"base64":return ce(Ee).length;default:if(Ge)return tt?-1:Ne(Ee).length;Oe=(""+Oe).toLowerCase(),Ge=!0}}x.byteLength=Te;function Pe(Ee,Oe,Ue){var tt=!1;if((Oe===void 0||Oe<0)&&(Oe=0),Oe>this.length||((Ue===void 0||Ue>this.length)&&(Ue=this.length),Ue<=0)||(Ue>>>=0,Oe>>>=0,Ue<=Oe))return"";for(Ee||(Ee="utf8");;)switch(Ee){case"hex":return nt(this,Oe,Ue);case"utf8":case"utf-8":return Ye(this,Oe,Ue);case"ascii":return We(this,Oe,Ue);case"latin1":case"binary":return et(this,Oe,Ue);case"base64":return Ke(this,Oe,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return rt(this,Oe,Ue);default:if(tt)throw new TypeError("Unknown encoding: "+Ee);Ee=(Ee+"").toLowerCase(),tt=!0}}x.prototype._isBuffer=!0;function _e(Ee,Oe,Ue){var tt=Ee[Oe];Ee[Oe]=Ee[Ue],Ee[Ue]=tt}x.prototype.swap16=function(){var Oe=this.length;if(Oe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ue=0;Ue<Oe;Ue+=2)_e(this,Ue,Ue+1);return this},x.prototype.swap32=function(){var Oe=this.length;if(Oe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ue=0;Ue<Oe;Ue+=4)_e(this,Ue,Ue+3),_e(this,Ue+1,Ue+2);return this},x.prototype.swap64=function(){var Oe=this.length;if(Oe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ue=0;Ue<Oe;Ue+=8)_e(this,Ue,Ue+7),_e(this,Ue+1,Ue+6),_e(this,Ue+2,Ue+5),_e(this,Ue+3,Ue+4);return this},x.prototype.toString=function(){var Oe=this.length;return Oe===0?"":arguments.length===0?Ye(this,0,Oe):Pe.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(Oe){if(!x.isBuffer(Oe))throw new TypeError("Argument must be a Buffer");return this===Oe?!0:x.compare(this,Oe)===0},x.prototype.inspect=function(){var Oe="",Ue=ye.INSPECT_MAX_BYTES;return Oe=this.toString("hex",0,Ue).replace(/(.{2})/g,"$1 ").trim(),this.length>Ue&&(Oe+=" ... "),"<Buffer "+Oe+">"},x.prototype.compare=function(Oe,Ue,tt,Ge,ft){if(Fe(Oe,Uint8Array)&&(Oe=x.from(Oe,Oe.offset,Oe.byteLength)),!x.isBuffer(Oe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Oe);if(Ue===void 0&&(Ue=0),tt===void 0&&(tt=Oe?Oe.length:0),Ge===void 0&&(Ge=0),ft===void 0&&(ft=this.length),Ue<0||tt>Oe.length||Ge<0||ft>this.length)throw new RangeError("out of range index");if(Ge>=ft&&Ue>=tt)return 0;if(Ge>=ft)return-1;if(Ue>=tt)return 1;if(Ue>>>=0,tt>>>=0,Ge>>>=0,ft>>>=0,this===Oe)return 0;for(var ct=ft-Ge,vt=tt-Ue,kt=Math.min(ct,vt),xt=this.slice(Ge,ft),Et=Oe.slice(Ue,tt),gt=0;gt<kt;++gt)if(xt[gt]!==Et[gt]){ct=xt[gt],vt=Et[gt];break}return ct<vt?-1:vt<ct?1:0};function be(Ee,Oe,Ue,tt,Ge){if(Ee.length===0)return-1;if(typeof Ue=="string"?(tt=Ue,Ue=0):Ue>2147483647?Ue=2147483647:Ue<-2147483648&&(Ue=-2147483648),Ue=+Ue,we(Ue)&&(Ue=Ge?0:Ee.length-1),Ue<0&&(Ue=Ee.length+Ue),Ue>=Ee.length){if(Ge)return-1;Ue=Ee.length-1}else if(Ue<0)if(Ge)Ue=0;else return-1;if(typeof Oe=="string"&&(Oe=x.from(Oe,tt)),x.isBuffer(Oe))return Oe.length===0?-1:xe(Ee,Oe,Ue,tt,Ge);if(typeof Oe=="number")return Oe=Oe&255,typeof Uint8Array.prototype.indexOf=="function"?Ge?Uint8Array.prototype.indexOf.call(Ee,Oe,Ue):Uint8Array.prototype.lastIndexOf.call(Ee,Oe,Ue):xe(Ee,[Oe],Ue,tt,Ge);throw new TypeError("val must be string, number or Buffer")}function xe(Ee,Oe,Ue,tt,Ge){var ft=1,ct=Ee.length,vt=Oe.length;if(tt!==void 0&&(tt=String(tt).toLowerCase(),tt==="ucs2"||tt==="ucs-2"||tt==="utf16le"||tt==="utf-16le")){if(Ee.length<2||Oe.length<2)return-1;ft=2,ct/=2,vt/=2,Ue/=2}function kt(mt,dt){return ft===1?mt[dt]:mt.readUInt16BE(dt*ft)}var xt;if(Ge){var Et=-1;for(xt=Ue;xt<ct;xt++)if(kt(Ee,xt)===kt(Oe,Et===-1?0:xt-Et)){if(Et===-1&&(Et=xt),xt-Et+1===vt)return Et*ft}else Et!==-1&&(xt-=xt-Et),Et=-1}else for(Ue+vt>ct&&(Ue=ct-vt),xt=Ue;xt>=0;xt--){for(var gt=!0,pt=0;pt<vt;pt++)if(kt(Ee,xt+pt)!==kt(Oe,pt)){gt=!1;break}if(gt)return xt}return-1}x.prototype.includes=function(Oe,Ue,tt){return this.indexOf(Oe,Ue,tt)!==-1},x.prototype.indexOf=function(Oe,Ue,tt){return be(this,Oe,Ue,tt,!0)},x.prototype.lastIndexOf=function(Oe,Ue,tt){return be(this,Oe,Ue,tt,!1)};function Ae(Ee,Oe,Ue,tt){Ue=Number(Ue)||0;var Ge=Ee.length-Ue;tt?(tt=Number(tt),tt>Ge&&(tt=Ge)):tt=Ge;var ft=Oe.length;tt>ft/2&&(tt=ft/2);for(var ct=0;ct<tt;++ct){var vt=parseInt(Oe.substr(ct*2,2),16);if(we(vt))return ct;Ee[Ue+ct]=vt}return ct}function Me(Ee,Oe,Ue,tt){return Ie(Ne(Oe,Ee.length-Ue),Ee,Ue,tt)}function Be(Ee,Oe,Ue,tt){return Ie(je(Oe),Ee,Ue,tt)}function Ce(Ee,Oe,Ue,tt){return Be(Ee,Oe,Ue,tt)}function De(Ee,Oe,Ue,tt){return Ie(ce(Oe),Ee,Ue,tt)}function He(Ee,Oe,Ue,tt){return Ie(ne(Oe,Ee.length-Ue),Ee,Ue,tt)}x.prototype.write=function(Oe,Ue,tt,Ge){if(Ue===void 0)Ge="utf8",tt=this.length,Ue=0;else if(tt===void 0&&typeof Ue=="string")Ge=Ue,tt=this.length,Ue=0;else if(isFinite(Ue))Ue=Ue>>>0,isFinite(tt)?(tt=tt>>>0,Ge===void 0&&(Ge="utf8")):(Ge=tt,tt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ft=this.length-Ue;if((tt===void 0||tt>ft)&&(tt=ft),Oe.length>0&&(tt<0||Ue<0)||Ue>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ge||(Ge="utf8");for(var ct=!1;;)switch(Ge){case"hex":return Ae(this,Oe,Ue,tt);case"utf8":case"utf-8":return Me(this,Oe,Ue,tt);case"ascii":return Be(this,Oe,Ue,tt);case"latin1":case"binary":return Ce(this,Oe,Ue,tt);case"base64":return De(this,Oe,Ue,tt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,Oe,Ue,tt);default:if(ct)throw new TypeError("Unknown encoding: "+Ge);Ge=(""+Ge).toLowerCase(),ct=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ke(Ee,Oe,Ue){return Oe===0&&Ue===Ee.length?z.fromByteArray(Ee):z.fromByteArray(Ee.slice(Oe,Ue))}function Ye(Ee,Oe,Ue){Ue=Math.min(Ee.length,Ue);for(var tt=[],Ge=Oe;Ge<Ue;){var ft=Ee[Ge],ct=null,vt=ft>239?4:ft>223?3:ft>191?2:1;if(Ge+vt<=Ue){var kt,xt,Et,gt;switch(vt){case 1:ft<128&&(ct=ft);break;case 2:kt=Ee[Ge+1],(kt&192)===128&&(gt=(ft&31)<<6|kt&63,gt>127&&(ct=gt));break;case 3:kt=Ee[Ge+1],xt=Ee[Ge+2],(kt&192)===128&&(xt&192)===128&&(gt=(ft&15)<<12|(kt&63)<<6|xt&63,gt>2047&&(gt<55296||gt>57343)&&(ct=gt));break;case 4:kt=Ee[Ge+1],xt=Ee[Ge+2],Et=Ee[Ge+3],(kt&192)===128&&(xt&192)===128&&(Et&192)===128&&(gt=(ft&15)<<18|(kt&63)<<12|(xt&63)<<6|Et&63,gt>65535&&gt<1114112&&(ct=gt))}}ct===null?(ct=65533,vt=1):ct>65535&&(ct-=65536,tt.push(ct>>>10&1023|55296),ct=56320|ct&1023),tt.push(ct),Ge+=vt}return Re(tt)}var it=4096;function Re(Ee){var Oe=Ee.length;if(Oe<=it)return String.fromCharCode.apply(String,Ee);for(var Ue="",tt=0;tt<Oe;)Ue+=String.fromCharCode.apply(String,Ee.slice(tt,tt+=it));return Ue}function We(Ee,Oe,Ue){var tt="";Ue=Math.min(Ee.length,Ue);for(var Ge=Oe;Ge<Ue;++Ge)tt+=String.fromCharCode(Ee[Ge]&127);return tt}function et(Ee,Oe,Ue){var tt="";Ue=Math.min(Ee.length,Ue);for(var Ge=Oe;Ge<Ue;++Ge)tt+=String.fromCharCode(Ee[Ge]);return tt}function nt(Ee,Oe,Ue){var tt=Ee.length;(!Oe||Oe<0)&&(Oe=0),(!Ue||Ue<0||Ue>tt)&&(Ue=tt);for(var Ge="",ft=Oe;ft<Ue;++ft)Ge+=$e(Ee[ft]);return Ge}function rt(Ee,Oe,Ue){for(var tt=Ee.slice(Oe,Ue),Ge="",ft=0;ft<tt.length;ft+=2)Ge+=String.fromCharCode(tt[ft]+tt[ft+1]*256);return Ge}x.prototype.slice=function(Oe,Ue){var tt=this.length;Oe=~~Oe,Ue=Ue===void 0?tt:~~Ue,Oe<0?(Oe+=tt,Oe<0&&(Oe=0)):Oe>tt&&(Oe=tt),Ue<0?(Ue+=tt,Ue<0&&(Ue=0)):Ue>tt&&(Ue=tt),Ue<Oe&&(Ue=Oe);var Ge=this.subarray(Oe,Ue);return Ge.__proto__=x.prototype,Ge};function Xe(Ee,Oe,Ue){if(Ee%1!==0||Ee<0)throw new RangeError("offset is not uint");if(Ee+Oe>Ue)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(Oe,Ue,tt){Oe=Oe>>>0,Ue=Ue>>>0,tt||Xe(Oe,Ue,this.length);for(var Ge=this[Oe],ft=1,ct=0;++ct<Ue&&(ft*=256);)Ge+=this[Oe+ct]*ft;return Ge},x.prototype.readUIntBE=function(Oe,Ue,tt){Oe=Oe>>>0,Ue=Ue>>>0,tt||Xe(Oe,Ue,this.length);for(var Ge=this[Oe+--Ue],ft=1;Ue>0&&(ft*=256);)Ge+=this[Oe+--Ue]*ft;return Ge},x.prototype.readUInt8=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,1,this.length),this[Oe]},x.prototype.readUInt16LE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,2,this.length),this[Oe]|this[Oe+1]<<8},x.prototype.readUInt16BE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,2,this.length),this[Oe]<<8|this[Oe+1]},x.prototype.readUInt32LE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,4,this.length),(this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16)+this[Oe+3]*16777216},x.prototype.readUInt32BE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,4,this.length),this[Oe]*16777216+(this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3])},x.prototype.readIntLE=function(Oe,Ue,tt){Oe=Oe>>>0,Ue=Ue>>>0,tt||Xe(Oe,Ue,this.length);for(var Ge=this[Oe],ft=1,ct=0;++ct<Ue&&(ft*=256);)Ge+=this[Oe+ct]*ft;return ft*=128,Ge>=ft&&(Ge-=Math.pow(2,8*Ue)),Ge},x.prototype.readIntBE=function(Oe,Ue,tt){Oe=Oe>>>0,Ue=Ue>>>0,tt||Xe(Oe,Ue,this.length);for(var Ge=Ue,ft=1,ct=this[Oe+--Ge];Ge>0&&(ft*=256);)ct+=this[Oe+--Ge]*ft;return ft*=128,ct>=ft&&(ct-=Math.pow(2,8*Ue)),ct},x.prototype.readInt8=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,1,this.length),this[Oe]&128?(255-this[Oe]+1)*-1:this[Oe]},x.prototype.readInt16LE=function(Oe,Ue){Oe=Oe>>>0,Ue||Xe(Oe,2,this.length);var tt=this[Oe]|this[Oe+1]<<8;return tt&32768?tt|4294901760:tt},x.prototype.readInt16BE=function(Oe,Ue){Oe=Oe>>>0,Ue||Xe(Oe,2,this.length);var tt=this[Oe+1]|this[Oe]<<8;return tt&32768?tt|4294901760:tt},x.prototype.readInt32LE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,4,this.length),this[Oe]|this[Oe+1]<<8|this[Oe+2]<<16|this[Oe+3]<<24},x.prototype.readInt32BE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,4,this.length),this[Oe]<<24|this[Oe+1]<<16|this[Oe+2]<<8|this[Oe+3]},x.prototype.readFloatLE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,4,this.length),oe.read(this,Oe,!0,23,4)},x.prototype.readFloatBE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,4,this.length),oe.read(this,Oe,!1,23,4)},x.prototype.readDoubleLE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,8,this.length),oe.read(this,Oe,!0,52,8)},x.prototype.readDoubleBE=function(Oe,Ue){return Oe=Oe>>>0,Ue||Xe(Oe,8,this.length),oe.read(this,Oe,!1,52,8)};function Je(Ee,Oe,Ue,tt,Ge,ft){if(!x.isBuffer(Ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(Oe>Ge||Oe<ft)throw new RangeError('"value" argument is out of bounds');if(Ue+tt>Ee.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(Oe,Ue,tt,Ge){if(Oe=+Oe,Ue=Ue>>>0,tt=tt>>>0,!Ge){var ft=Math.pow(2,8*tt)-1;Je(this,Oe,Ue,tt,ft,0)}var ct=1,vt=0;for(this[Ue]=Oe&255;++vt<tt&&(ct*=256);)this[Ue+vt]=Oe/ct&255;return Ue+tt},x.prototype.writeUIntBE=function(Oe,Ue,tt,Ge){if(Oe=+Oe,Ue=Ue>>>0,tt=tt>>>0,!Ge){var ft=Math.pow(2,8*tt)-1;Je(this,Oe,Ue,tt,ft,0)}var ct=tt-1,vt=1;for(this[Ue+ct]=Oe&255;--ct>=0&&(vt*=256);)this[Ue+ct]=Oe/vt&255;return Ue+tt},x.prototype.writeUInt8=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,1,255,0),this[Ue]=Oe&255,Ue+1},x.prototype.writeUInt16LE=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,2,65535,0),this[Ue]=Oe&255,this[Ue+1]=Oe>>>8,Ue+2},x.prototype.writeUInt16BE=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,2,65535,0),this[Ue]=Oe>>>8,this[Ue+1]=Oe&255,Ue+2},x.prototype.writeUInt32LE=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,4,4294967295,0),this[Ue+3]=Oe>>>24,this[Ue+2]=Oe>>>16,this[Ue+1]=Oe>>>8,this[Ue]=Oe&255,Ue+4},x.prototype.writeUInt32BE=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,4,4294967295,0),this[Ue]=Oe>>>24,this[Ue+1]=Oe>>>16,this[Ue+2]=Oe>>>8,this[Ue+3]=Oe&255,Ue+4},x.prototype.writeIntLE=function(Oe,Ue,tt,Ge){if(Oe=+Oe,Ue=Ue>>>0,!Ge){var ft=Math.pow(2,8*tt-1);Je(this,Oe,Ue,tt,ft-1,-ft)}var ct=0,vt=1,kt=0;for(this[Ue]=Oe&255;++ct<tt&&(vt*=256);)Oe<0&&kt===0&&this[Ue+ct-1]!==0&&(kt=1),this[Ue+ct]=(Oe/vt>>0)-kt&255;return Ue+tt},x.prototype.writeIntBE=function(Oe,Ue,tt,Ge){if(Oe=+Oe,Ue=Ue>>>0,!Ge){var ft=Math.pow(2,8*tt-1);Je(this,Oe,Ue,tt,ft-1,-ft)}var ct=tt-1,vt=1,kt=0;for(this[Ue+ct]=Oe&255;--ct>=0&&(vt*=256);)Oe<0&&kt===0&&this[Ue+ct+1]!==0&&(kt=1),this[Ue+ct]=(Oe/vt>>0)-kt&255;return Ue+tt},x.prototype.writeInt8=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,1,127,-128),Oe<0&&(Oe=255+Oe+1),this[Ue]=Oe&255,Ue+1},x.prototype.writeInt16LE=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,2,32767,-32768),this[Ue]=Oe&255,this[Ue+1]=Oe>>>8,Ue+2},x.prototype.writeInt16BE=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,2,32767,-32768),this[Ue]=Oe>>>8,this[Ue+1]=Oe&255,Ue+2},x.prototype.writeInt32LE=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,4,2147483647,-2147483648),this[Ue]=Oe&255,this[Ue+1]=Oe>>>8,this[Ue+2]=Oe>>>16,this[Ue+3]=Oe>>>24,Ue+4},x.prototype.writeInt32BE=function(Oe,Ue,tt){return Oe=+Oe,Ue=Ue>>>0,tt||Je(this,Oe,Ue,4,2147483647,-2147483648),Oe<0&&(Oe=4294967295+Oe+1),this[Ue]=Oe>>>24,this[Ue+1]=Oe>>>16,this[Ue+2]=Oe>>>8,this[Ue+3]=Oe&255,Ue+4};function Ve(Ee,Oe,Ue,tt,Ge,ft){if(Ue+tt>Ee.length)throw new RangeError("Index out of range");if(Ue<0)throw new RangeError("Index out of range")}function at(Ee,Oe,Ue,tt,Ge){return Oe=+Oe,Ue=Ue>>>0,Ge||Ve(Ee,Oe,Ue,4,34028234663852886e22,-34028234663852886e22),oe.write(Ee,Oe,Ue,tt,23,4),Ue+4}x.prototype.writeFloatLE=function(Oe,Ue,tt){return at(this,Oe,Ue,!0,tt)},x.prototype.writeFloatBE=function(Oe,Ue,tt){return at(this,Oe,Ue,!1,tt)};function Qe(Ee,Oe,Ue,tt,Ge){return Oe=+Oe,Ue=Ue>>>0,Ge||Ve(Ee,Oe,Ue,8,17976931348623157e292,-17976931348623157e292),oe.write(Ee,Oe,Ue,tt,52,8),Ue+8}x.prototype.writeDoubleLE=function(Oe,Ue,tt){return Qe(this,Oe,Ue,!0,tt)},x.prototype.writeDoubleBE=function(Oe,Ue,tt){return Qe(this,Oe,Ue,!1,tt)},x.prototype.copy=function(Oe,Ue,tt,Ge){if(!x.isBuffer(Oe))throw new TypeError("argument should be a Buffer");if(tt||(tt=0),!Ge&&Ge!==0&&(Ge=this.length),Ue>=Oe.length&&(Ue=Oe.length),Ue||(Ue=0),Ge>0&&Ge<tt&&(Ge=tt),Ge===tt||Oe.length===0||this.length===0)return 0;if(Ue<0)throw new RangeError("targetStart out of bounds");if(tt<0||tt>=this.length)throw new RangeError("Index out of range");if(Ge<0)throw new RangeError("sourceEnd out of bounds");Ge>this.length&&(Ge=this.length),Oe.length-Ue<Ge-tt&&(Ge=Oe.length-Ue+tt);var ft=Ge-tt;if(this===Oe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ue,tt,Ge);else if(this===Oe&&tt<Ue&&Ue<Ge)for(var ct=ft-1;ct>=0;--ct)Oe[ct+Ue]=this[ct+tt];else Uint8Array.prototype.set.call(Oe,this.subarray(tt,Ge),Ue);return ft},x.prototype.fill=function(Oe,Ue,tt,Ge){if(typeof Oe=="string"){if(typeof Ue=="string"?(Ge=Ue,Ue=0,tt=this.length):typeof tt=="string"&&(Ge=tt,tt=this.length),Ge!==void 0&&typeof Ge!="string")throw new TypeError("encoding must be a string");if(typeof Ge=="string"&&!x.isEncoding(Ge))throw new TypeError("Unknown encoding: "+Ge);if(Oe.length===1){var ft=Oe.charCodeAt(0);(Ge==="utf8"&&ft<128||Ge==="latin1")&&(Oe=ft)}}else typeof Oe=="number"&&(Oe=Oe&255);if(Ue<0||this.length<Ue||this.length<tt)throw new RangeError("Out of range index");if(tt<=Ue)return this;Ue=Ue>>>0,tt=tt===void 0?this.length:tt>>>0,Oe||(Oe=0);var ct;if(typeof Oe=="number")for(ct=Ue;ct<tt;++ct)this[ct]=Oe;else{var vt=x.isBuffer(Oe)?Oe:x.from(Oe,Ge),kt=vt.length;if(kt===0)throw new TypeError('The value "'+Oe+'" is invalid for argument "value"');for(ct=0;ct<tt-Ue;++ct)this[ct+Ue]=vt[ct%kt]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function st(Ee){if(Ee=Ee.split("=")[0],Ee=Ee.trim().replace(ut,""),Ee.length<2)return"";for(;Ee.length%4!==0;)Ee=Ee+"=";return Ee}function $e(Ee){return Ee<16?"0"+Ee.toString(16):Ee.toString(16)}function Ne(Ee,Oe){Oe=Oe||1/0;for(var Ue,tt=Ee.length,Ge=null,ft=[],ct=0;ct<tt;++ct){if(Ue=Ee.charCodeAt(ct),Ue>55295&&Ue<57344){if(!Ge){if(Ue>56319){(Oe-=3)>-1&&ft.push(239,191,189);continue}else if(ct+1===tt){(Oe-=3)>-1&&ft.push(239,191,189);continue}Ge=Ue;continue}if(Ue<56320){(Oe-=3)>-1&&ft.push(239,191,189),Ge=Ue;continue}Ue=(Ge-55296<<10|Ue-56320)+65536}else Ge&&(Oe-=3)>-1&&ft.push(239,191,189);if(Ge=null,Ue<128){if((Oe-=1)<0)break;ft.push(Ue)}else if(Ue<2048){if((Oe-=2)<0)break;ft.push(Ue>>6|192,Ue&63|128)}else if(Ue<65536){if((Oe-=3)<0)break;ft.push(Ue>>12|224,Ue>>6&63|128,Ue&63|128)}else if(Ue<1114112){if((Oe-=4)<0)break;ft.push(Ue>>18|240,Ue>>12&63|128,Ue>>6&63|128,Ue&63|128)}else throw new Error("Invalid code point")}return ft}function je(Ee){for(var Oe=[],Ue=0;Ue<Ee.length;++Ue)Oe.push(Ee.charCodeAt(Ue)&255);return Oe}function ne(Ee,Oe){for(var Ue,tt,Ge,ft=[],ct=0;ct<Ee.length&&!((Oe-=2)<0);++ct)Ue=Ee.charCodeAt(ct),tt=Ue>>8,Ge=Ue%256,ft.push(Ge),ft.push(tt);return ft}function ce(Ee){return z.toByteArray(st(Ee))}function Ie(Ee,Oe,Ue,tt){for(var Ge=0;Ge<tt&&!(Ge+Ue>=Oe.length||Ge>=Ee.length);++Ge)Oe[Ge+Ue]=Ee[Ge];return Ge}function Fe(Ee,Oe){return Ee instanceof Oe||Ee!=null&&Ee.constructor!=null&&Ee.constructor.name!=null&&Ee.constructor.name===Oe.name}function we(Ee){return Ee!==Ee}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,Se,ye){Se.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],92:[function(y,Se,ye){"use strict";var E=y("get-intrinsic"),z=y("./"),oe=z(E("String.prototype.indexOf"));Se.exports=function(ee,de){var x=E(ee,!!de);return typeof x=="function"&&oe(ee,".prototype.")>-1?z(x):x}},{"./":93,"get-intrinsic":348}],93:[function(y,Se,ye){"use strict";var E=y("function-bind"),z=y("get-intrinsic"),oe=z("%Function.prototype.apply%"),se=z("%Function.prototype.call%"),ee=z("%Reflect.apply%",!0)||E.call(se,oe),de=z("%Object.getOwnPropertyDescriptor%",!0),x=z("%Object.defineProperty%",!0),te=z("%Math.max%");if(x)try{x({},"a",{value:1})}catch(ae){x=null}Se.exports=function(ue){var he=ee(E,se,arguments);if(de&&x){var pe=de(he,"length");pe.configurable&&x(he,"length",{value:1+te(0,ue.length-(arguments.length-1))})}return he};var re=function(){return ee(E,oe,arguments)};x?x(Se.exports,"apply",{value:re}):Se.exports.apply=re},{"function-bind":347,"get-intrinsic":348}],94:[function(y,Se,ye){"use strict";var E=Array.prototype.slice;Se.exports=z;function z(se,ee){if(!(this instanceof z))return new z(se,ee);this.src=se,this._withAccess=ee}z.prototype.withAccess=function(se){return this._withAccess=se!==!1,this},z.prototype.pick=function(se){return Array.isArray(se)||(se=E.call(arguments)),se.length&&(this.keys=se),this},z.prototype.to=function(se){if(se=se||{},!this.src)return se;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var de=0;de<ee.length;de++)x=ee[de],se[x]===void 0&&(se[x]=this.src[x]);return se}for(var de=0;de<ee.length;de++){var x=ee[de];if(oe(se,x)){var te=this.src.__lookupGetter__(x),re=this.src.__lookupSetter__(x);te&&se.__defineGetter__(x,te),re&&se.__defineSetter__(x,re),!te&&!re&&(se[x]=this.src[x])}}return se},z.prototype.toCover=function(se){for(var ee=this.keys||Object.keys(this.src),de=0;de<ee.length;de++){var x=ee[de];delete se[x];var te=this.src.__lookupGetter__(x),re=this.src.__lookupSetter__(x);te&&se.__defineGetter__(x,te),re&&se.__defineSetter__(x,re),!te&&!re&&(se[x]=this.src[x])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(se){var ee={};return this.to(ee),this.src=se,this.to(ee),this.src=ee,this};function oe(se,ee){return se[ee]===void 0&&se.__lookupGetter__(ee)===void 0&&se.__lookupSetter__(ee)===void 0}},{}],95:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/try-to-string"),se=E.TypeError;Se.exports=function(ee){if(z(ee))return ee;throw se(oe(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-constructor"),oe=y("../internals/try-to-string"),se=E.TypeError;Se.exports=function(ee){if(z(ee))return ee;throw se(oe(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-callable"),oe=E.String,se=E.TypeError;Se.exports=function(ee){if(typeof ee=="object"||z(ee))return ee;throw se("Can't set "+oe(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,Se,ye){var E=y("../internals/well-known-symbol"),z=y("../internals/object-create"),oe=y("../internals/object-define-property"),se=E("unscopables"),ee=Array.prototype;ee[se]==null&&oe.f(ee,se,{configurable:!0,value:z(null)}),Se.exports=function(de){ee[se][de]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,Se,ye){"use strict";var E=y("../internals/string-multibyte").charAt;Se.exports=function(z,oe,se){return oe+(se?E(z,oe).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/object-is-prototype-of"),oe=E.TypeError;Se.exports=function(se,ee){if(z(ee,se))return se;throw oe("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-object"),oe=E.String,se=E.TypeError;Se.exports=function(ee){if(z(ee))return ee;throw se(oe(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,Se,ye){Se.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-native"),z=y("../internals/descriptors"),oe=y("../internals/global"),se=y("../internals/is-callable"),ee=y("../internals/is-object"),de=y("../internals/has-own-property"),x=y("../internals/classof"),te=y("../internals/try-to-string"),re=y("../internals/create-non-enumerable-property"),ae=y("../internals/redefine"),ue=y("../internals/object-define-property").f,he=y("../internals/object-is-prototype-of"),pe=y("../internals/object-get-prototype-of"),me=y("../internals/object-set-prototype-of"),fe=y("../internals/well-known-symbol"),ve=y("../internals/uid"),ke=oe.Int8Array,Te=ke&&ke.prototype,Pe=oe.Uint8ClampedArray,_e=Pe&&Pe.prototype,be=ke&&pe(ke),xe=Te&&pe(Te),Ae=Object.prototype,Me=oe.TypeError,Be=fe("toStringTag"),Ce=ve("TYPED_ARRAY_TAG"),De=ve("TYPED_ARRAY_CONSTRUCTOR"),He=E&&!!me&&x(oe.opera)!=="Opera",Ke=!1,Ye,it,Re,We={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},et={BigInt64Array:8,BigUint64Array:8},nt=function(ut){if(!ee(ut))return!1;var st=x(ut);return st==="DataView"||de(We,st)||de(et,st)},rt=function(Qe){if(!ee(Qe))return!1;var ut=x(Qe);return de(We,ut)||de(et,ut)},Xe=function(Qe){if(rt(Qe))return Qe;throw Me("Target is not a typed array")},Je=function(Qe){if(se(Qe)&&(!me||he(be,Qe)))return Qe;throw Me(te(Qe)+" is not a typed array constructor")},Ve=function(Qe,ut,st,$e){if(z){if(st)for(var Ne in We){var je=oe[Ne];if(je&&de(je.prototype,Qe))try{delete je.prototype[Qe]}catch(ne){try{je.prototype[Qe]=ut}catch(ce){}}}(!xe[Qe]||st)&&ae(xe,Qe,st?ut:He&&Te[Qe]||ut,$e)}},at=function(Qe,ut,st){var $e,Ne;if(z){if(me){if(st){for($e in We)if(Ne=oe[$e],Ne&&de(Ne,Qe))try{delete Ne[Qe]}catch(je){}}if(!be[Qe]||st)try{return ae(be,Qe,st?ut:He&&be[Qe]||ut)}catch(je){}else return}for($e in We)Ne=oe[$e],Ne&&(!Ne[Qe]||st)&&ae(Ne,Qe,ut)}};for(Ye in We)it=oe[Ye],Re=it&&it.prototype,Re?re(Re,De,it):He=!1;for(Ye in et)it=oe[Ye],Re=it&&it.prototype,Re&&re(Re,De,it);if((!He||!se(be)||be===Function.prototype)&&(be=function(){throw Me("Incorrect invocation")},He))for(Ye in We)oe[Ye]&&me(oe[Ye],be);if((!He||!xe||xe===Ae)&&(xe=be.prototype,He))for(Ye in We)oe[Ye]&&me(oe[Ye].prototype,xe);if(He&&pe(_e)!==xe&&me(_e,xe),z&&!de(xe,Be)){Ke=!0,ue(xe,Be,{get:function(){return ee(this)?this[Ce]:void 0}});for(Ye in We)oe[Ye]&&re(oe[Ye],Ce,Ye)}Se.exports={NATIVE_ARRAY_BUFFER_VIEWS:He,TYPED_ARRAY_CONSTRUCTOR:De,TYPED_ARRAY_TAG:Ke&&Ce,aTypedArray:Xe,aTypedArrayConstructor:Je,exportTypedArrayMethod:Ve,exportTypedArrayStaticMethod:at,isView:nt,isTypedArray:rt,TypedArray:be,TypedArrayPrototype:xe}},{"../internals/array-buffer-native":102,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-define-property":198,"../internals/object-get-prototype-of":203,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/try-to-string":257,"../internals/uid":263,"../internals/well-known-symbol":268}],104:[function(y,Se,ye){"use strict";var E=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/descriptors"),se=y("../internals/array-buffer-native"),ee=y("../internals/function-name"),de=y("../internals/create-non-enumerable-property"),x=y("../internals/redefine-all"),te=y("../internals/fails"),re=y("../internals/an-instance"),ae=y("../internals/to-integer-or-infinity"),ue=y("../internals/to-length"),he=y("../internals/to-index"),pe=y("../internals/ieee754"),me=y("../internals/object-get-prototype-of"),fe=y("../internals/object-set-prototype-of"),ve=y("../internals/object-get-own-property-names").f,ke=y("../internals/object-define-property").f,Te=y("../internals/array-fill"),Pe=y("../internals/array-slice-simple"),_e=y("../internals/set-to-string-tag"),be=y("../internals/internal-state"),xe=ee.PROPER,Ae=ee.CONFIGURABLE,Me=be.get,Be=be.set,Ce="ArrayBuffer",De="DataView",He="prototype",Ke="Wrong length",Ye="Wrong index",it=E[Ce],Re=it,We=Re&&Re[He],et=E[De],nt=et&&et[He],rt=Object.prototype,Xe=E.Array,Je=E.RangeError,Ve=z(Te),at=z([].reverse),Qe=pe.pack,ut=pe.unpack,st=function(ct){return[ct&255]},$e=function(ct){return[ct&255,ct>>8&255]},Ne=function(ct){return[ct&255,ct>>8&255,ct>>16&255,ct>>24&255]},je=function(ct){return ct[3]<<24|ct[2]<<16|ct[1]<<8|ct[0]},ne=function(ct){return Qe(ct,23,4)},ce=function(ct){return Qe(ct,52,8)},Ie=function(ct,vt){ke(ct[He],vt,{get:function(){return Me(this)[vt]}})},Fe=function(ct,vt,kt,xt){var Et=he(kt),gt=Me(ct);if(Et+vt>gt.byteLength)throw Je(Ye);var pt=Me(gt.buffer).bytes,mt=Et+gt.byteOffset,dt=Pe(pt,mt,mt+vt);return xt?dt:at(dt)},we=function(ct,vt,kt,xt,Et,gt){var pt=he(kt),mt=Me(ct);if(pt+vt>mt.byteLength)throw Je(Ye);for(var dt=Me(mt.buffer).bytes,bt=pt+mt.byteOffset,wt=xt(+Et),At=0;At<vt;At++)dt[bt+At]=wt[gt?At:vt-At-1]};if(!se)Re=function(vt){re(this,We);var kt=he(vt);Be(this,{bytes:Ve(Xe(kt),0),byteLength:kt}),oe||(this.byteLength=kt)},We=Re[He],et=function(vt,kt,xt){re(this,nt),re(vt,We);var Et=Me(vt).byteLength,gt=ae(kt);if(gt<0||gt>Et)throw Je("Wrong offset");if(xt=xt===void 0?Et-gt:ue(xt),gt+xt>Et)throw Je(Ke);Be(this,{buffer:vt,byteLength:xt,byteOffset:gt}),oe||(this.buffer=vt,this.byteLength=xt,this.byteOffset=gt)},nt=et[He],oe&&(Ie(Re,"byteLength"),Ie(et,"buffer"),Ie(et,"byteLength"),Ie(et,"byteOffset")),x(nt,{getInt8:function(vt){return Fe(this,1,vt)[0]<<24>>24},getUint8:function(vt){return Fe(this,1,vt)[0]},getInt16:function(vt){var kt=Fe(this,2,vt,arguments.length>1?arguments[1]:void 0);return(kt[1]<<8|kt[0])<<16>>16},getUint16:function(vt){var kt=Fe(this,2,vt,arguments.length>1?arguments[1]:void 0);return kt[1]<<8|kt[0]},getInt32:function(vt){return je(Fe(this,4,vt,arguments.length>1?arguments[1]:void 0))},getUint32:function(vt){return je(Fe(this,4,vt,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(vt){return ut(Fe(this,4,vt,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(vt){return ut(Fe(this,8,vt,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(vt,kt){we(this,1,vt,st,kt)},setUint8:function(vt,kt){we(this,1,vt,st,kt)},setInt16:function(vt,kt){we(this,2,vt,$e,kt,arguments.length>2?arguments[2]:void 0)},setUint16:function(vt,kt){we(this,2,vt,$e,kt,arguments.length>2?arguments[2]:void 0)},setInt32:function(vt,kt){we(this,4,vt,Ne,kt,arguments.length>2?arguments[2]:void 0)},setUint32:function(vt,kt){we(this,4,vt,Ne,kt,arguments.length>2?arguments[2]:void 0)},setFloat32:function(vt,kt){we(this,4,vt,ne,kt,arguments.length>2?arguments[2]:void 0)},setFloat64:function(vt,kt){we(this,8,vt,ce,kt,arguments.length>2?arguments[2]:void 0)}});else{var Ee=xe&&it.name!==Ce;if(!te(function(){it(1)})||!te(function(){new it(-1)})||te(function(){return new it,new it(1.5),new it(NaN),Ee&&!Ae})){Re=function(vt){return re(this,We),new it(he(vt))},Re[He]=We;for(var Oe=ve(it),Ue=0,tt;Oe.length>Ue;)(tt=Oe[Ue++])in Re||de(Re,tt,it[tt]);We.constructor=Re}else Ee&&Ae&&de(it,"name",Ce);fe&&me(nt)!==rt&&fe(nt,rt);var Ge=new et(new Re(2)),ft=z(nt.setInt8);Ge.setInt8(0,2147483648),Ge.setInt8(1,2147483649),(Ge.getInt8(0)||!Ge.getInt8(1))&&x(nt,{setInt8:function(vt,kt){ft(this,vt,kt<<24>>24)},setUint8:function(vt,kt){ft(this,vt,kt<<24>>24)}},{unsafe:!0})}_e(Re,Ce),_e(et,De),Se.exports={ArrayBuffer:Re,DataView:et}},{"../internals/an-instance":100,"../internals/array-buffer-native":102,"../internals/array-fill":106,"../internals/array-slice-simple":116,"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/ieee754":169,"../internals/internal-state":173,"../internals/object-define-property":198,"../internals/object-get-own-property-names":201,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine-all":221,"../internals/set-to-string-tag":234,"../internals/to-index":246,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],105:[function(y,Se,ye){"use strict";var E=y("../internals/to-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),se=Math.min;Se.exports=[].copyWithin||function(de,x){var te=E(this),re=oe(te),ae=z(de,re),ue=z(x,re),he=arguments.length>2?arguments[2]:void 0,pe=se((he===void 0?re:z(he,re))-ue,re-ae),me=1;for(ue<ae&&ae<ue+pe&&(me=-1,ue+=pe-1,ae+=pe-1);pe-- >0;)ue in te?te[ae]=te[ue]:delete te[ae],ae+=me,ue+=me;return te}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,Se,ye){"use strict";var E=y("../internals/to-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like");Se.exports=function(ee){for(var de=E(this),x=oe(de),te=arguments.length,re=z(te>1?arguments[1]:void 0,x),ae=te>2?arguments[2]:void 0,ue=ae===void 0?x:z(ae,x);ue>re;)de[re++]=ee;return de}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,Se,ye){"use strict";var E=y("../internals/array-iteration").forEach,z=y("../internals/array-method-is-strict"),oe=z("forEach");Se.exports=oe?[].forEach:function(ee){return E(this,ee,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(y,Se,ye){var E=y("../internals/length-of-array-like");Se.exports=function(z,oe){for(var se=0,ee=E(oe),de=new z(ee);ee>se;)de[se]=oe[se++];return de}},{"../internals/length-of-array-like":188}],109:[function(y,Se,ye){"use strict";var E=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/function-call"),se=y("../internals/to-object"),ee=y("../internals/call-with-safe-iteration-closing"),de=y("../internals/is-array-iterator-method"),x=y("../internals/is-constructor"),te=y("../internals/length-of-array-like"),re=y("../internals/create-property"),ae=y("../internals/get-iterator"),ue=y("../internals/get-iterator-method"),he=E.Array;Se.exports=function(me){var fe=se(me),ve=x(this),ke=arguments.length,Te=ke>1?arguments[1]:void 0,Pe=Te!==void 0;Pe&&(Te=z(Te,ke>2?arguments[2]:void 0));var _e=ue(fe),be=0,xe,Ae,Me,Be,Ce,De;if(_e&&!(this==he&&de(_e)))for(Be=ae(fe,_e),Ce=Be.next,Ae=ve?new this:[];!(Me=oe(Ce,Be)).done;be++)De=Pe?ee(Be,Te,[Me.value,be],!0):Me.value,re(Ae,be,De);else for(xe=te(fe),Ae=ve?new this(xe):he(xe);xe>be;be++)De=Pe?Te(fe[be],be):fe[be],re(Ae,be,De);return Ae.length=be,Ae}},{"../internals/call-with-safe-iteration-closing":121,"../internals/create-property":131,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/is-constructor":177,"../internals/length-of-array-like":188,"../internals/to-object":250}],110:[function(y,Se,ye){var E=y("../internals/to-indexed-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),se=function(ee){return function(de,x,te){var re=E(de),ae=oe(re),ue=z(te,ae),he;if(ee&&x!=x){for(;ae>ue;)if(he=re[ue++],he!=he)return!0}else for(;ae>ue;ue++)if((ee||ue in re)&&re[ue]===x)return ee||ue||0;return!ee&&-1}};Se.exports={includes:se(!0),indexOf:se(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(y,Se,ye){var E=y("../internals/function-bind-context"),z=y("../internals/function-uncurry-this"),oe=y("../internals/indexed-object"),se=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/array-species-create"),x=z([].push),te=function(re){var ae=re==1,ue=re==2,he=re==3,pe=re==4,me=re==6,fe=re==7,ve=re==5||me;return function(ke,Te,Pe,_e){for(var be=se(ke),xe=oe(be),Ae=E(Te,Pe),Me=ee(xe),Be=0,Ce=_e||de,De=ae?Ce(ke,Me):ue||fe?Ce(ke,0):void 0,He,Ke;Me>Be;Be++)if((ve||Be in xe)&&(He=xe[Be],Ke=Ae(He,Be,be),re))if(ae)De[Be]=Ke;else if(Ke)switch(re){case 3:return!0;case 5:return He;case 6:return Be;case 2:x(De,He)}else switch(re){case 4:return!1;case 7:x(De,He)}return me?-1:he||pe?pe:De}};Se.exports={forEach:te(0),map:te(1),filter:te(2),some:te(3),every:te(4),find:te(5),findIndex:te(6),filterReject:te(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(y,Se,ye){"use strict";var E=y("../internals/function-apply"),z=y("../internals/to-indexed-object"),oe=y("../internals/to-integer-or-infinity"),se=y("../internals/length-of-array-like"),ee=y("../internals/array-method-is-strict"),de=Math.min,x=[].lastIndexOf,te=!!x&&1/[1].lastIndexOf(1,-0)<0,re=ee("lastIndexOf"),ae=te||!re;Se.exports=ae?function(he){if(te)return E(x,this,arguments)||0;var pe=z(this),me=se(pe),fe=me-1;for(arguments.length>1&&(fe=de(fe,oe(arguments[1]))),fe<0&&(fe=me+fe);fe>=0;fe--)if(fe in pe&&pe[fe]===he)return fe||0;return-1}:x},{"../internals/array-method-is-strict":114,"../internals/function-apply":152,"../internals/length-of-array-like":188,"../internals/to-indexed-object":247,"../internals/to-integer-or-infinity":248}],113:[function(y,Se,ye){var E=y("../internals/fails"),z=y("../internals/well-known-symbol"),oe=y("../internals/engine-v8-version"),se=z("species");Se.exports=function(ee){return oe>=51||!E(function(){var de=[],x=de.constructor={};return x[se]=function(){return{foo:1}},de[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,Se,ye){"use strict";var E=y("../internals/fails");Se.exports=function(z,oe){var se=[][z];return!!se&&E(function(){se.call(null,oe||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/a-callable"),oe=y("../internals/to-object"),se=y("../internals/indexed-object"),ee=y("../internals/length-of-array-like"),de=E.TypeError,x=function(te){return function(re,ae,ue,he){z(ae);var pe=oe(re),me=se(pe),fe=ee(pe),ve=te?fe-1:0,ke=te?-1:1;if(ue<2)for(;;){if(ve in me){he=me[ve],ve+=ke;break}if(ve+=ke,te?ve<0:fe<=ve)throw de("Reduce of empty array with no initial value")}for(;te?ve>=0:fe>ve;ve+=ke)ve in me&&(he=ae(he,me[ve],ve,pe));return he}};Se.exports={left:x(!1),right:x(!0)}},{"../internals/a-callable":95,"../internals/global":163,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],116:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),se=y("../internals/create-property"),ee=E.Array,de=Math.max;Se.exports=function(x,te,re){for(var ae=oe(x),ue=z(te,ae),he=z(re===void 0?ae:re,ae),pe=ee(de(he-ue,0)),me=0;ue<he;ue++,me++)se(pe,me,x[ue]);return pe.length=me,pe}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,Se,ye){var E=y("../internals/function-uncurry-this");Se.exports=E([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,Se,ye){var E=y("../internals/array-slice-simple"),z=Math.floor,oe=function(de,x){var te=de.length,re=z(te/2);return te<8?se(de,x):ee(de,oe(E(de,0,re),x),oe(E(de,re),x),x)},se=function(de,x){for(var te=de.length,re=1,ae,ue;re<te;){for(ue=re,ae=de[re];ue&&x(de[ue-1],ae)>0;)de[ue]=de[--ue];ue!==re++&&(de[ue]=ae)}return de},ee=function(de,x,te,re){for(var ae=x.length,ue=te.length,he=0,pe=0;he<ae||pe<ue;)de[he+pe]=he<ae&&pe<ue?re(x[he],te[pe])<=0?x[he++]:te[pe++]:he<ae?x[he++]:te[pe++];return de};Se.exports=oe},{"../internals/array-slice-simple":116}],119:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-array"),oe=y("../internals/is-constructor"),se=y("../internals/is-object"),ee=y("../internals/well-known-symbol"),de=ee("species"),x=E.Array;Se.exports=function(te){var re;return z(te)&&(re=te.constructor,oe(re)&&(re===x||z(re.prototype))?re=void 0:se(re)&&(re=re[de],re===null&&(re=void 0))),re===void 0?x:re}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(y,Se,ye){var E=y("../internals/array-species-constructor");Se.exports=function(z,oe){return new(E(z))(oe===0?0:oe)}},{"../internals/array-species-constructor":119}],121:[function(y,Se,ye){var E=y("../internals/an-object"),z=y("../internals/iterator-close");Se.exports=function(oe,se,ee,de){try{return de?se(E(ee)[0],ee[1]):se(ee)}catch(x){z(oe,"throw",x)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,Se,ye){var E=y("../internals/well-known-symbol"),z=E("iterator"),oe=!1;try{var se=0,ee={next:function(){return{done:!!se++}},return:function(){oe=!0}};ee[z]=function(){return this},Array.from(ee,function(){throw 2})}catch(de){}Se.exports=function(de,x){if(!x&&!oe)return!1;var te=!1;try{var re={};re[z]=function(){return{next:function(){return{done:te=!0}}}},de(re)}catch(ae){}return te}},{"../internals/well-known-symbol":268}],123:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=E({}.toString),oe=E("".slice);Se.exports=function(se){return oe(z(se),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/to-string-tag-support"),oe=y("../internals/is-callable"),se=y("../internals/classof-raw"),ee=y("../internals/well-known-symbol"),de=ee("toStringTag"),x=E.Object,te=se(function(){return arguments}())=="Arguments",re=function(ae,ue){try{return ae[ue]}catch(he){}};Se.exports=z?se:function(ae){var ue,he,pe;return ae===void 0?"Undefined":ae===null?"Null":typeof(he=re(ue=x(ae),de))=="string"?he:te?se(ue):(pe=se(ue))=="Object"&&oe(ue.callee)?"Arguments":pe}},{"../internals/classof-raw":123,"../internals/global":163,"../internals/is-callable":176,"../internals/to-string-tag-support":255,"../internals/well-known-symbol":268}],125:[function(y,Se,ye){var E=y("../internals/has-own-property"),z=y("../internals/own-keys"),oe=y("../internals/object-get-own-property-descriptor"),se=y("../internals/object-define-property");Se.exports=function(ee,de,x){for(var te=z(de),re=se.f,ae=oe.f,ue=0;ue<te.length;ue++){var he=te[ue];!E(ee,he)&&!(x&&E(x,he))&&re(ee,he,ae(de,he))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(y,Se,ye){var E=y("../internals/well-known-symbol"),z=E("match");Se.exports=function(oe){var se=/./;try{"/./"[oe](se)}catch(ee){try{return se[z]=!1,"/./"[oe](se)}catch(de){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,Se,ye){var E=y("../internals/fails");Se.exports=!E(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(y,Se,ye){"use strict";var E=y("../internals/iterators-core").IteratorPrototype,z=y("../internals/object-create"),oe=y("../internals/create-property-descriptor"),se=y("../internals/set-to-string-tag"),ee=y("../internals/iterators"),de=function(){return this};Se.exports=function(x,te,re,ae){var ue=te+" Iterator";return x.prototype=z(E,{next:oe(+!ae,re)}),se(x,ue,!1,!0),ee[ue]=de,x}},{"../internals/create-property-descriptor":130,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-create":196,"../internals/set-to-string-tag":234}],129:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/object-define-property"),oe=y("../internals/create-property-descriptor");Se.exports=E?function(se,ee,de){return z.f(se,ee,oe(1,de))}:function(se,ee,de){return se[ee]=de,se}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,Se,ye){Se.exports=function(E,z){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:z}}},{}],131:[function(y,Se,ye){"use strict";var E=y("../internals/to-property-key"),z=y("../internals/object-define-property"),oe=y("../internals/create-property-descriptor");Se.exports=function(se,ee,de){var x=E(ee);x in se?z.f(se,x,oe(0,de)):se[x]=de}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/is-pure"),se=y("../internals/function-name"),ee=y("../internals/is-callable"),de=y("../internals/create-iterator-constructor"),x=y("../internals/object-get-prototype-of"),te=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),ae=y("../internals/create-non-enumerable-property"),ue=y("../internals/redefine"),he=y("../internals/well-known-symbol"),pe=y("../internals/iterators"),me=y("../internals/iterators-core"),fe=se.PROPER,ve=se.CONFIGURABLE,ke=me.IteratorPrototype,Te=me.BUGGY_SAFARI_ITERATORS,Pe=he("iterator"),_e="keys",be="values",xe="entries",Ae=function(){return this};Se.exports=function(Me,Be,Ce,De,He,Ke,Ye){de(Ce,Be,De);var it=function(Qe){if(Qe===He&&rt)return rt;if(!Te&&Qe in et)return et[Qe];switch(Qe){case _e:return function(){return new Ce(this,Qe)};case be:return function(){return new Ce(this,Qe)};case xe:return function(){return new Ce(this,Qe)}}return function(){return new Ce(this)}},Re=Be+" Iterator",We=!1,et=Me.prototype,nt=et[Pe]||et["@@iterator"]||He&&et[He],rt=!Te&&nt||it(He),Xe=Be=="Array"&&et.entries||nt,Je,Ve,at;if(Xe&&(Je=x(Xe.call(new Me)),Je!==Object.prototype&&Je.next&&(!oe&&x(Je)!==ke&&(te?te(Je,ke):ee(Je[Pe])||ue(Je,Pe,Ae)),re(Je,Re,!0,!0),oe&&(pe[Re]=Ae))),fe&&He==be&&nt&&nt.name!==be&&(!oe&&ve?ae(et,"name",be):(We=!0,rt=function(){return z(nt,this)})),He)if(Ve={values:it(be),keys:Ke?rt:it(_e),entries:it(xe)},Ye)for(at in Ve)(Te||We||!(at in et))&&ue(et,at,Ve[at]);else E({target:Be,proto:!0,forced:Te||We},Ve);return(!oe||Ye)&&et[Pe]!==rt&&ue(et,Pe,rt,{name:He}),pe[Be]=rt,Ve}},{"../internals/create-iterator-constructor":128,"../internals/create-non-enumerable-property":129,"../internals/export":149,"../internals/function-call":155,"../internals/function-name":156,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/iterators":187,"../internals/iterators-core":186,"../internals/object-get-prototype-of":203,"../internals/object-set-prototype-of":208,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/well-known-symbol":268}],133:[function(y,Se,ye){var E=y("../internals/path"),z=y("../internals/has-own-property"),oe=y("../internals/well-known-symbol-wrapped"),se=y("../internals/object-define-property").f;Se.exports=function(ee){var de=E.Symbol||(E.Symbol={});z(de,ee)||se(de,ee,{value:oe.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,Se,ye){var E=y("../internals/fails");Se.exports=!E(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-object"),oe=E.document,se=z(oe)&&z(oe.createElement);Se.exports=function(ee){return se?oe.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,Se,ye){Se.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},{}],137:[function(y,Se,ye){var E=y("../internals/document-create-element"),z=E("span").classList,oe=z&&z.constructor&&z.constructor.prototype;Se.exports=oe===Object.prototype?void 0:oe},{"../internals/document-create-element":135}],138:[function(y,Se,ye){var E=y("../internals/engine-user-agent"),z=E.match(/firefox\/(\d+)/i);Se.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(y,Se,ye){Se.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,Se,ye){var E=y("../internals/engine-user-agent");Se.exports=/MSIE|Trident/.test(E)},{"../internals/engine-user-agent":145}],141:[function(y,Se,ye){var E=y("../internals/engine-user-agent"),z=y("../internals/global");Se.exports=/ipad|iphone|ipod/i.test(E)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,Se,ye){var E=y("../internals/engine-user-agent");Se.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(E)},{"../internals/engine-user-agent":145}],143:[function(y,Se,ye){var E=y("../internals/classof-raw"),z=y("../internals/global");Se.exports=E(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,Se,ye){var E=y("../internals/engine-user-agent");Se.exports=/web0s(?!.*chrome)/i.test(E)},{"../internals/engine-user-agent":145}],145:[function(y,Se,ye){var E=y("../internals/get-built-in");Se.exports=E("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/engine-user-agent"),oe=E.process,se=E.Deno,ee=oe&&oe.versions||se&&se.version,de=ee&&ee.v8,x,te;de&&(x=de.split("."),te=x[0]>0&&x[0]<4?1:+(x[0]+x[1])),!te&&z&&(x=z.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=z.match(/Chrome\/(\d+)/),x&&(te=+x[1]))),Se.exports=te},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,Se,ye){var E=y("../internals/engine-user-agent"),z=E.match(/AppleWebKit\/(\d+)\./);Se.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(y,Se,ye){Se.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/object-get-own-property-descriptor").f,oe=y("../internals/create-non-enumerable-property"),se=y("../internals/redefine"),ee=y("../internals/set-global"),de=y("../internals/copy-constructor-properties"),x=y("../internals/is-forced");Se.exports=function(te,re){var ae=te.target,ue=te.global,he=te.stat,pe,me,fe,ve,ke,Te;if(ue?me=E:he?me=E[ae]||ee(ae,{}):me=(E[ae]||{}).prototype,me)for(fe in re){if(ke=re[fe],te.noTargetGet?(Te=z(me,fe),ve=Te&&Te.value):ve=me[fe],pe=x(ue?fe:ae+(he?".":"#")+fe,te.forced),!pe&&ve!==void 0){if(typeof ke==typeof ve)continue;de(ke,ve)}(te.sham||ve&&ve.sham)&&oe(ke,"sham",!0),se(me,fe,ke,te)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(y,Se,ye){Se.exports=function(E){try{return!!E()}catch(z){return!0}}},{}],151:[function(y,Se,ye){"use strict";y("../modules/es.regexp.exec");var E=y("../internals/function-uncurry-this"),z=y("../internals/redefine"),oe=y("../internals/regexp-exec"),se=y("../internals/fails"),ee=y("../internals/well-known-symbol"),de=y("../internals/create-non-enumerable-property"),x=ee("species"),te=RegExp.prototype;Se.exports=function(re,ae,ue,he){var pe=ee(re),me=!se(function(){var Te={};return Te[pe]=function(){return 7},""[re](Te)!=7}),fe=me&&!se(function(){var Te=!1,Pe=/a/;return re==="split"&&(Pe={},Pe.constructor={},Pe.constructor[x]=function(){return Pe},Pe.flags="",Pe[pe]=/./[pe]),Pe.exec=function(){return Te=!0,null},Pe[pe](""),!Te});if(!me||!fe||ue){var ve=E(/./[pe]),ke=ae(pe,""[re],function(Te,Pe,_e,be,xe){var Ae=E(Te),Me=Pe.exec;return Me===oe||Me===te.exec?me&&!xe?{done:!0,value:ve(Pe,_e,be)}:{done:!0,value:Ae(_e,Pe,be)}:{done:!1}});z(String.prototype,re,ke[0]),z(te,pe,ke[1])}he&&de(te[pe],"sham",!0)}},{"../internals/create-non-enumerable-property":129,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/redefine":222,"../internals/regexp-exec":224,"../internals/well-known-symbol":268,"../modules/es.regexp.exec":300}],152:[function(y,Se,ye){var E=y("../internals/function-bind-native"),z=Function.prototype,oe=z.apply,se=z.call;Se.exports=typeof Reflect=="object"&&Reflect.apply||(E?se.bind(oe):function(){return se.apply(oe,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/a-callable"),oe=y("../internals/function-bind-native"),se=E(E.bind);Se.exports=function(ee,de){return z(ee),de===void 0?ee:oe?se(ee,de):function(){return ee.apply(de,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,Se,ye){var E=y("../internals/fails");Se.exports=!E(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,Se,ye){var E=y("../internals/function-bind-native"),z=Function.prototype.call;Se.exports=E?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/has-own-property"),oe=Function.prototype,se=E&&Object.getOwnPropertyDescriptor,ee=z(oe,"name"),de=ee&&function(){}.name==="something",x=ee&&(!E||E&&se(oe,"name").configurable);Se.exports={EXISTS:ee,PROPER:de,CONFIGURABLE:x}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,Se,ye){var E=y("../internals/function-bind-native"),z=Function.prototype,oe=z.bind,se=z.call,ee=E&&oe.bind(se,se);Se.exports=E?function(de){return de&&ee(de)}:function(de){return de&&function(){return se.apply(de,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-callable"),oe=function(se){return z(se)?se:void 0};Se.exports=function(se,ee){return arguments.length<2?oe(E[se]):E[se]&&E[se][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,Se,ye){var E=y("../internals/classof"),z=y("../internals/get-method"),oe=y("../internals/iterators"),se=y("../internals/well-known-symbol"),ee=se("iterator");Se.exports=function(de){if(de!=null)return z(de,ee)||z(de,"@@iterator")||oe[E(de)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),se=y("../internals/an-object"),ee=y("../internals/try-to-string"),de=y("../internals/get-iterator-method"),x=E.TypeError;Se.exports=function(te,re){var ae=arguments.length<2?de(te):re;if(oe(ae))return se(z(ae,te));throw x(ee(te)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(y,Se,ye){var E=y("../internals/a-callable");Se.exports=function(z,oe){var se=z[oe];return se==null?void 0:E(se)}},{"../internals/a-callable":95}],162:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),oe=Math.floor,se=E("".charAt),ee=E("".replace),de=E("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,te=/\$([$&'`]|\d{1,2})/g;Se.exports=function(re,ae,ue,he,pe,me){var fe=ue+re.length,ve=he.length,ke=te;return pe!==void 0&&(pe=z(pe),ke=x),ee(me,ke,function(Te,Pe){var _e;switch(se(Pe,0)){case"$":return"$";case"&":return re;case"`":return de(ae,0,ue);case"'":return de(ae,fe);case"<":_e=pe[de(Pe,1,-1)];break;default:var be=+Pe;if(be===0)return Te;if(be>ve){var xe=oe(be/10);return xe===0?Te:xe<=ve?he[xe-1]===void 0?se(Pe,1):he[xe-1]+se(Pe,1):Te}_e=he[be-1]}return _e===void 0?"":_e})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,Se,ye){(function(E){(function(){var z=function(oe){return oe&&oe.Math==Math&&oe};Se.exports=z(typeof globalThis=="object"&&globalThis)||z(typeof window=="object"&&window)||z(typeof self=="object"&&self)||z(typeof E=="object"&&E)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),oe=E({}.hasOwnProperty);Se.exports=Object.hasOwn||function(ee,de){return oe(z(ee),de)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,Se,ye){Se.exports={}},{}],166:[function(y,Se,ye){var E=y("../internals/global");Se.exports=function(z,oe){var se=E.console;se&&se.error&&(arguments.length==1?se.error(z):se.error(z,oe))}},{"../internals/global":163}],167:[function(y,Se,ye){var E=y("../internals/get-built-in");Se.exports=E("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/fails"),oe=y("../internals/document-create-element");Se.exports=!E&&!z(function(){return Object.defineProperty(oe("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,Se,ye){var E=y("../internals/global"),z=E.Array,oe=Math.abs,se=Math.pow,ee=Math.floor,de=Math.log,x=Math.LN2,te=function(ae,ue,he){var pe=z(he),me=he*8-ue-1,fe=(1<<me)-1,ve=fe>>1,ke=ue===23?se(2,-24)-se(2,-77):0,Te=ae<0||ae===0&&1/ae<0?1:0,Pe=0,_e,be,xe;for(ae=oe(ae),ae!=ae||ae===1/0?(be=ae!=ae?1:0,_e=fe):(_e=ee(de(ae)/x),xe=se(2,-_e),ae*xe<1&&(_e--,xe*=2),_e+ve>=1?ae+=ke/xe:ae+=ke*se(2,1-ve),ae*xe>=2&&(_e++,xe/=2),_e+ve>=fe?(be=0,_e=fe):_e+ve>=1?(be=(ae*xe-1)*se(2,ue),_e=_e+ve):(be=ae*se(2,ve-1)*se(2,ue),_e=0));ue>=8;)pe[Pe++]=be&255,be/=256,ue-=8;for(_e=_e<<ue|be,me+=ue;me>0;)pe[Pe++]=_e&255,_e/=256,me-=8;return pe[--Pe]|=Te*128,pe},re=function(ae,ue){var he=ae.length,pe=he*8-ue-1,me=(1<<pe)-1,fe=me>>1,ve=pe-7,ke=he-1,Te=ae[ke--],Pe=Te&127,_e;for(Te>>=7;ve>0;)Pe=Pe*256+ae[ke--],ve-=8;for(_e=Pe&(1<<-ve)-1,Pe>>=-ve,ve+=ue;ve>0;)_e=_e*256+ae[ke--],ve-=8;if(Pe===0)Pe=1-fe;else{if(Pe===me)return _e?NaN:Te?-1/0:1/0;_e=_e+se(2,ue),Pe=Pe-fe}return(Te?-1:1)*_e*se(2,Pe-ue)};Se.exports={pack:te,unpack:re}},{"../internals/global":163}],170:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),se=y("../internals/classof-raw"),ee=E.Object,de=z("".split);Se.exports=oe(function(){return!ee("z").propertyIsEnumerable(0)})?function(x){return se(x)=="String"?de(x,""):ee(x)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,Se,ye){var E=y("../internals/is-callable"),z=y("../internals/is-object"),oe=y("../internals/object-set-prototype-of");Se.exports=function(se,ee,de){var x,te;return oe&&E(x=ee.constructor)&&x!==de&&z(te=x.prototype)&&te!==de.prototype&&oe(se,te),se}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/is-callable"),oe=y("../internals/shared-store"),se=E(Function.toString);z(oe.inspectSource)||(oe.inspectSource=function(ee){return se(ee)}),Se.exports=oe.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,Se,ye){var E=y("../internals/native-weak-map"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),se=y("../internals/is-object"),ee=y("../internals/create-non-enumerable-property"),de=y("../internals/has-own-property"),x=y("../internals/shared-store"),te=y("../internals/shared-key"),re=y("../internals/hidden-keys"),ae="Object already initialized",ue=z.TypeError,he=z.WeakMap,pe,me,fe,ve=function(Ae){return fe(Ae)?me(Ae):pe(Ae,{})},ke=function(Ae){return function(Me){var Be;if(!se(Me)||(Be=me(Me)).type!==Ae)throw ue("Incompatible receiver, "+Ae+" required");return Be}};if(E||x.state){var Te=x.state||(x.state=new he),Pe=oe(Te.get),_e=oe(Te.has),be=oe(Te.set);pe=function(Ae,Me){if(_e(Te,Ae))throw new ue(ae);return Me.facade=Ae,be(Te,Ae,Me),Me},me=function(Ae){return Pe(Te,Ae)||{}},fe=function(Ae){return _e(Te,Ae)}}else{var xe=te("state");re[xe]=!0,pe=function(Ae,Me){if(de(Ae,xe))throw new ue(ae);return Me.facade=Ae,ee(Ae,xe,Me),Me},me=function(Ae){return de(Ae,xe)?Ae[xe]:{}},fe=function(Ae){return de(Ae,xe)}}Se.exports={set:pe,get:me,has:fe,enforce:ve,getterFor:ke}},{"../internals/create-non-enumerable-property":129,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/is-object":180,"../internals/native-weak-map":192,"../internals/shared-key":235,"../internals/shared-store":236}],174:[function(y,Se,ye){var E=y("../internals/well-known-symbol"),z=y("../internals/iterators"),oe=E("iterator"),se=Array.prototype;Se.exports=function(ee){return ee!==void 0&&(z.Array===ee||se[oe]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,Se,ye){var E=y("../internals/classof-raw");Se.exports=Array.isArray||function(oe){return E(oe)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,Se,ye){Se.exports=function(E){return typeof E=="function"}},{}],177:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/fails"),oe=y("../internals/is-callable"),se=y("../internals/classof"),ee=y("../internals/get-built-in"),de=y("../internals/inspect-source"),x=function(){},te=[],re=ee("Reflect","construct"),ae=/^\s*(?:class|function)\b/,ue=E(ae.exec),he=!ae.exec(x),pe=function(ve){if(!oe(ve))return!1;try{return re(x,te,ve),!0}catch(ke){return!1}},me=function(ve){if(!oe(ve))return!1;switch(se(ve)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return he||!!ue(ae,de(ve))}catch(ke){return!0}};me.sham=!0,Se.exports=!re||z(function(){var fe;return pe(pe.call)||!pe(Object)||!pe(function(){fe=!0})||fe})?me:pe},{"../internals/classof":124,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/inspect-source":172,"../internals/is-callable":176}],178:[function(y,Se,ye){var E=y("../internals/fails"),z=y("../internals/is-callable"),oe=/#|\.prototype\./,se=function(re,ae){var ue=de[ee(re)];return ue==te?!0:ue==x?!1:z(ae)?E(ae):!!ae},ee=se.normalize=function(re){return String(re).replace(oe,".").toLowerCase()},de=se.data={},x=se.NATIVE="N",te=se.POLYFILL="P";Se.exports=se},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,Se,ye){var E=y("../internals/is-object"),z=Math.floor;Se.exports=Number.isInteger||function(se){return!E(se)&&isFinite(se)&&z(se)===se}},{"../internals/is-object":180}],180:[function(y,Se,ye){var E=y("../internals/is-callable");Se.exports=function(z){return typeof z=="object"?z!==null:E(z)}},{"../internals/is-callable":176}],181:[function(y,Se,ye){Se.exports=!1},{}],182:[function(y,Se,ye){var E=y("../internals/is-object"),z=y("../internals/classof-raw"),oe=y("../internals/well-known-symbol"),se=oe("match");Se.exports=function(ee){var de;return E(ee)&&((de=ee[se])!==void 0?!!de:z(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/get-built-in"),oe=y("../internals/is-callable"),se=y("../internals/object-is-prototype-of"),ee=y("../internals/use-symbol-as-uid"),de=E.Object;Se.exports=ee?function(x){return typeof x=="symbol"}:function(x){var te=z("Symbol");return oe(te)&&se(te.prototype,de(x))}},{"../internals/get-built-in":158,"../internals/global":163,"../internals/is-callable":176,"../internals/object-is-prototype-of":204,"../internals/use-symbol-as-uid":264}],184:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/function-call"),se=y("../internals/an-object"),ee=y("../internals/try-to-string"),de=y("../internals/is-array-iterator-method"),x=y("../internals/length-of-array-like"),te=y("../internals/object-is-prototype-of"),re=y("../internals/get-iterator"),ae=y("../internals/get-iterator-method"),ue=y("../internals/iterator-close"),he=E.TypeError,pe=function(fe,ve){this.stopped=fe,this.result=ve},me=pe.prototype;Se.exports=function(fe,ve,ke){var Te=ke&&ke.that,Pe=!!(ke&&ke.AS_ENTRIES),_e=!!(ke&&ke.IS_ITERATOR),be=!!(ke&&ke.INTERRUPTED),xe=z(ve,Te),Ae,Me,Be,Ce,De,He,Ke,Ye=function(Re){return Ae&&ue(Ae,"normal",Re),new pe(!0,Re)},it=function(Re){return Pe?(se(Re),be?xe(Re[0],Re[1],Ye):xe(Re[0],Re[1])):be?xe(Re,Ye):xe(Re)};if(_e)Ae=fe;else{if(Me=ae(fe),!Me)throw he(ee(fe)+" is not iterable");if(de(Me)){for(Be=0,Ce=x(fe);Ce>Be;Be++)if(De=it(fe[Be]),De&&te(me,De))return De;return new pe(!1)}Ae=re(fe,Me)}for(He=Ae.next;!(Ke=oe(He,Ae)).done;){try{De=it(Ke.value)}catch(Re){ue(Ae,"throw",Re)}if(typeof De=="object"&&De&&te(me,De))return De}return new pe(!1)}},{"../internals/an-object":101,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/is-array-iterator-method":174,"../internals/iterator-close":185,"../internals/length-of-array-like":188,"../internals/object-is-prototype-of":204,"../internals/try-to-string":257}],185:[function(y,Se,ye){var E=y("../internals/function-call"),z=y("../internals/an-object"),oe=y("../internals/get-method");Se.exports=function(se,ee,de){var x,te;z(se);try{if(x=oe(se,"return"),!x){if(ee==="throw")throw de;return de}x=E(x,se)}catch(re){te=!0,x=re}if(ee==="throw")throw de;if(te)throw x;return z(x),de}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,Se,ye){"use strict";var E=y("../internals/fails"),z=y("../internals/is-callable"),oe=y("../internals/object-create"),se=y("../internals/object-get-prototype-of"),ee=y("../internals/redefine"),de=y("../internals/well-known-symbol"),x=y("../internals/is-pure"),te=de("iterator"),re=!1,ae,ue,he;[].keys&&(he=[].keys(),"next"in he?(ue=se(se(he)),ue!==Object.prototype&&(ae=ue)):re=!0);var pe=ae==null||E(function(){var me={};return ae[te].call(me)!==me});pe?ae={}:x&&(ae=oe(ae)),z(ae[te])||ee(ae,te,function(){return this}),Se.exports={IteratorPrototype:ae,BUGGY_SAFARI_ITERATORS:re}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(y,Se,ye){arguments[4][165][0].apply(ye,arguments)},{dup:165}],188:[function(y,Se,ye){var E=y("../internals/to-length");Se.exports=function(z){return E(z.length)}},{"../internals/to-length":249}],189:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/object-get-own-property-descriptor").f,se=y("../internals/task").set,ee=y("../internals/engine-is-ios"),de=y("../internals/engine-is-ios-pebble"),x=y("../internals/engine-is-webos-webkit"),te=y("../internals/engine-is-node"),re=E.MutationObserver||E.WebKitMutationObserver,ae=E.document,ue=E.process,he=E.Promise,pe=oe(E,"queueMicrotask"),me=pe&&pe.value,fe,ve,ke,Te,Pe,_e,be,xe;me||(fe=function(){var Ae,Me;for(te&&(Ae=ue.domain)&&Ae.exit();ve;){Me=ve.fn,ve=ve.next;try{Me()}catch(Be){throw ve?Te():ke=void 0,Be}}ke=void 0,Ae&&Ae.enter()},!ee&&!te&&!x&&re&&ae?(Pe=!0,_e=ae.createTextNode(""),new re(fe).observe(_e,{characterData:!0}),Te=function(){_e.data=Pe=!Pe}):!de&&he&&he.resolve?(be=he.resolve(void 0),be.constructor=he,xe=z(be.then,be),Te=function(){xe(fe)}):te?Te=function(){ue.nextTick(fe)}:(se=z(se,E),Te=function(){se(fe)})),Se.exports=me||function(Ae){var Me={fn:Ae,next:void 0};ke&&(ke.next=Me),ve||(ve=Me,Te()),ke=Me}},{"../internals/engine-is-ios":142,"../internals/engine-is-ios-pebble":141,"../internals/engine-is-node":143,"../internals/engine-is-webos-webkit":144,"../internals/function-bind-context":153,"../internals/global":163,"../internals/object-get-own-property-descriptor":199,"../internals/task":243}],190:[function(y,Se,ye){var E=y("../internals/native-symbol");Se.exports=E&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,Se,ye){var E=y("../internals/engine-v8-version"),z=y("../internals/fails");Se.exports=!!Object.getOwnPropertySymbols&&!z(function(){var oe=Symbol();return!String(oe)||!(Object(oe)instanceof Symbol)||!Symbol.sham&&E&&E<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/inspect-source"),se=E.WeakMap;Se.exports=z(se)&&/native code/.test(oe(se))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,Se,ye){"use strict";var E=y("../internals/a-callable"),z=function(oe){var se,ee;this.promise=new oe(function(de,x){if(se!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");se=de,ee=x}),this.resolve=E(se),this.reject=E(ee)};Se.exports.f=function(oe){return new z(oe)}},{"../internals/a-callable":95}],194:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-regexp"),oe=E.TypeError;Se.exports=function(se){if(z(se))throw oe("The method doesn't accept regular expressions");return se}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,Se,ye){"use strict";var E=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),oe=y("../internals/function-call"),se=y("../internals/fails"),ee=y("../internals/object-keys"),de=y("../internals/object-get-own-property-symbols"),x=y("../internals/object-property-is-enumerable"),te=y("../internals/to-object"),re=y("../internals/indexed-object"),ae=Object.assign,ue=Object.defineProperty,he=z([].concat);Se.exports=!ae||se(function(){if(E&&ae({b:1},ae(ue({},"a",{enumerable:!0,get:function(){ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var pe={},me={},fe=Symbol(),ve="abcdefghijklmnopqrst";return pe[fe]=7,ve.split("").forEach(function(ke){me[ke]=ke}),ae({},pe)[fe]!=7||ee(ae({},me)).join("")!=ve})?function(me,fe){for(var ve=te(me),ke=arguments.length,Te=1,Pe=de.f,_e=x.f;ke>Te;)for(var be=re(arguments[Te++]),xe=Pe?he(ee(be),Pe(be)):ee(be),Ae=xe.length,Me=0,Be;Ae>Me;)Be=xe[Me++],(!E||oe(_e,be,Be))&&(ve[Be]=be[Be]);return ve}:ae},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/object-get-own-property-symbols":202,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-object":250}],196:[function(y,Se,ye){var E=y("../internals/an-object"),z=y("../internals/object-define-properties"),oe=y("../internals/enum-bug-keys"),se=y("../internals/hidden-keys"),ee=y("../internals/html"),de=y("../internals/document-create-element"),x=y("../internals/shared-key"),te=">",re="<",ae="prototype",ue="script",he=x("IE_PROTO"),pe=function(){},me=function(Pe){return re+ue+te+Pe+re+"/"+ue+te},fe=function(Pe){Pe.write(me("")),Pe.close();var _e=Pe.parentWindow.Object;return Pe=null,_e},ve=function(){var Pe=de("iframe"),_e="java"+ue+":",be;return Pe.style.display="none",ee.appendChild(Pe),Pe.src=String(_e),be=Pe.contentWindow.document,be.open(),be.write(me("document.F=Object")),be.close(),be.F},ke,Te=function(){try{ke=new ActiveXObject("htmlfile")}catch(_e){}Te=typeof document!="undefined"?document.domain&&ke?fe(ke):ve():fe(ke);for(var Pe=oe.length;Pe--;)delete Te[ae][oe[Pe]];return Te()};se[he]=!0,Se.exports=Object.create||function(_e,be){var xe;return _e!==null?(pe[ae]=E(_e),xe=new pe,pe[ae]=null,xe[he]=_e):xe=Te(),be===void 0?xe:z.f(xe,be)}},{"../internals/an-object":101,"../internals/document-create-element":135,"../internals/enum-bug-keys":148,"../internals/hidden-keys":165,"../internals/html":167,"../internals/object-define-properties":197,"../internals/shared-key":235}],197:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/v8-prototype-define-bug"),oe=y("../internals/object-define-property"),se=y("../internals/an-object"),ee=y("../internals/to-indexed-object"),de=y("../internals/object-keys");ye.f=E&&!z?Object.defineProperties:function(te,re){se(te);for(var ae=ee(re),ue=de(re),he=ue.length,pe=0,me;he>pe;)oe.f(te,me=ue[pe++],ae[me]);return te}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/descriptors"),oe=y("../internals/ie8-dom-define"),se=y("../internals/v8-prototype-define-bug"),ee=y("../internals/an-object"),de=y("../internals/to-property-key"),x=E.TypeError,te=Object.defineProperty,re=Object.getOwnPropertyDescriptor,ae="enumerable",ue="configurable",he="writable";ye.f=z?se?function(me,fe,ve){if(ee(me),fe=de(fe),ee(ve),typeof me=="function"&&fe==="prototype"&&"value"in ve&&he in ve&&!ve[he]){var ke=re(me,fe);ke&&ke[he]&&(me[fe]=ve.value,ve={configurable:ue in ve?ve[ue]:ke[ue],enumerable:ae in ve?ve[ae]:ke[ae],writable:!1})}return te(me,fe,ve)}:te:function(me,fe,ve){if(ee(me),fe=de(fe),ee(ve),oe)try{return te(me,fe,ve)}catch(ke){}if("get"in ve||"set"in ve)throw x("Accessors not supported");return"value"in ve&&(me[fe]=ve.value),me}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/function-call"),oe=y("../internals/object-property-is-enumerable"),se=y("../internals/create-property-descriptor"),ee=y("../internals/to-indexed-object"),de=y("../internals/to-property-key"),x=y("../internals/has-own-property"),te=y("../internals/ie8-dom-define"),re=Object.getOwnPropertyDescriptor;ye.f=E?re:function(ue,he){if(ue=ee(ue),he=de(he),te)try{return re(ue,he)}catch(pe){}if(x(ue,he))return se(!z(oe.f,ue,he),ue[he])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(y,Se,ye){var E=y("../internals/classof-raw"),z=y("../internals/to-indexed-object"),oe=y("../internals/object-get-own-property-names").f,se=y("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],de=function(x){try{return oe(x)}catch(te){return se(ee)}};Se.exports.f=function(te){return ee&&E(te)=="Window"?de(te):oe(z(te))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(y,Se,ye){var E=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys"),oe=z.concat("length","prototype");ye.f=Object.getOwnPropertyNames||function(ee){return E(ee,oe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,Se,ye){ye.f=Object.getOwnPropertySymbols},{}],203:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/has-own-property"),oe=y("../internals/is-callable"),se=y("../internals/to-object"),ee=y("../internals/shared-key"),de=y("../internals/correct-prototype-getter"),x=ee("IE_PROTO"),te=E.Object,re=te.prototype;Se.exports=de?te.getPrototypeOf:function(ae){var ue=se(ae);if(z(ue,x))return ue[x];var he=ue.constructor;return oe(he)&&ue instanceof he?he.prototype:ue instanceof te?re:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(y,Se,ye){var E=y("../internals/function-uncurry-this");Se.exports=E({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/has-own-property"),oe=y("../internals/to-indexed-object"),se=y("../internals/array-includes").indexOf,ee=y("../internals/hidden-keys"),de=E([].push);Se.exports=function(x,te){var re=oe(x),ae=0,ue=[],he;for(he in re)!z(ee,he)&&z(re,he)&&de(ue,he);for(;te.length>ae;)z(re,he=te[ae++])&&(~se(ue,he)||de(ue,he));return ue}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(y,Se,ye){var E=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys");Se.exports=Object.keys||function(se){return E(se,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,Se,ye){"use strict";var E={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,oe=z&&!E.call({1:2},1);ye.f=oe?function(ee){var de=z(this,ee);return!!de&&de.enumerable}:E},{}],208:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/an-object"),oe=y("../internals/a-possible-prototype");Se.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var se=!1,ee={},de;try{de=E(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),de(ee,[]),se=ee instanceof Array}catch(x){}return function(te,re){return z(te),oe(re),se?de(te,re):te.__proto__=re,te}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),oe=y("../internals/object-keys"),se=y("../internals/to-indexed-object"),ee=y("../internals/object-property-is-enumerable").f,de=z(ee),x=z([].push),te=function(re){return function(ae){for(var ue=se(ae),he=oe(ue),pe=he.length,me=0,fe=[],ve;pe>me;)ve=he[me++],(!E||de(ue,ve))&&x(fe,re?[ve,ue[ve]]:ue[ve]);return fe}};Se.exports={entries:te(!0),values:te(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(y,Se,ye){"use strict";var E=y("../internals/to-string-tag-support"),z=y("../internals/classof");Se.exports=E?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/is-callable"),se=y("../internals/is-object"),ee=E.TypeError;Se.exports=function(de,x){var te,re;if(x==="string"&&oe(te=de.toString)&&!se(re=z(te,de))||oe(te=de.valueOf)&&!se(re=z(te,de))||x!=="string"&&oe(te=de.toString)&&!se(re=z(te,de)))return re;throw ee("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(y,Se,ye){var E=y("../internals/get-built-in"),z=y("../internals/function-uncurry-this"),oe=y("../internals/object-get-own-property-names"),se=y("../internals/object-get-own-property-symbols"),ee=y("../internals/an-object"),de=z([].concat);Se.exports=E("Reflect","ownKeys")||function(te){var re=oe.f(ee(te)),ae=se.f;return ae?de(re,ae(te)):re}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(y,Se,ye){var E=y("../internals/global");Se.exports=E},{"../internals/global":163}],214:[function(y,Se,ye){Se.exports=function(E){try{return{error:!1,value:E()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/promise-native-constructor"),oe=y("../internals/is-callable"),se=y("../internals/is-forced"),ee=y("../internals/inspect-source"),de=y("../internals/well-known-symbol"),x=y("../internals/engine-is-browser"),te=y("../internals/is-pure"),re=y("../internals/engine-v8-version"),ae=z&&z.prototype,ue=de("species"),he=!1,pe=oe(E.PromiseRejectionEvent),me=se("Promise",function(){var fe=ee(z),ve=fe!==String(z);if(!ve&&re===66||te&&!(ae.catch&&ae.finally))return!0;if(re>=51&&/native code/.test(fe))return!1;var ke=new z(function(_e){_e(1)}),Te=function(_e){_e(function(){},function(){})},Pe=ke.constructor={};return Pe[ue]=Te,he=ke.then(function(){})instanceof Te,he?!ve&&x&&!pe:!0});Se.exports={CONSTRUCTOR:me,REJECTION_EVENT:pe,SUBCLASSING:he}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(y,Se,ye){var E=y("../internals/global");Se.exports=E.Promise},{"../internals/global":163}],217:[function(y,Se,ye){var E=y("../internals/an-object"),z=y("../internals/is-object"),oe=y("../internals/new-promise-capability");Se.exports=function(se,ee){if(E(se),z(ee)&&ee.constructor===se)return ee;var de=oe.f(se),x=de.resolve;return x(ee),de.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,Se,ye){var E=y("../internals/promise-native-constructor"),z=y("../internals/check-correctness-of-iteration"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR;Se.exports=oe||!z(function(se){E.all(se).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(y,Se,ye){var E=y("../internals/object-define-property").f;Se.exports=function(z,oe,se){se in z||E(z,se,{configurable:!0,get:function(){return oe[se]},set:function(ee){oe[se]=ee}})}},{"../internals/object-define-property":198}],220:[function(y,Se,ye){var E=function(){this.head=null,this.tail=null};E.prototype={add:function(z){var oe={item:z,next:null};this.head?this.tail.next=oe:this.head=oe,this.tail=oe},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},Se.exports=E},{}],221:[function(y,Se,ye){var E=y("../internals/redefine");Se.exports=function(z,oe,se){for(var ee in oe)E(z,ee,oe[ee],se);return z}},{"../internals/redefine":222}],222:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/has-own-property"),se=y("../internals/create-non-enumerable-property"),ee=y("../internals/set-global"),de=y("../internals/inspect-source"),x=y("../internals/internal-state"),te=y("../internals/function-name").CONFIGURABLE,re=x.get,ae=x.enforce,ue=String(String).split("String");(Se.exports=function(he,pe,me,fe){var ve=fe?!!fe.unsafe:!1,ke=fe?!!fe.enumerable:!1,Te=fe?!!fe.noTargetGet:!1,Pe=fe&&fe.name!==void 0?fe.name:pe,_e;if(z(me)&&(String(Pe).slice(0,7)==="Symbol("&&(Pe="["+String(Pe).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!oe(me,"name")||te&&me.name!==Pe)&&se(me,"name",Pe),_e=ae(me),_e.source||(_e.source=ue.join(typeof Pe=="string"?Pe:""))),he===E){ke?he[pe]=me:ee(pe,me);return}else ve?!Te&&he[pe]&&(ke=!0):delete he[pe];ke?he[pe]=me:se(he,pe,me)})(Function.prototype,"toString",function(){return z(this)&&re(this).source||de(this)})},{"../internals/create-non-enumerable-property":129,"../internals/function-name":156,"../internals/global":163,"../internals/has-own-property":164,"../internals/inspect-source":172,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/set-global":232}],223:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/an-object"),se=y("../internals/is-callable"),ee=y("../internals/classof-raw"),de=y("../internals/regexp-exec"),x=E.TypeError;Se.exports=function(te,re){var ae=te.exec;if(se(ae)){var ue=z(ae,te,re);return ue!==null&&oe(ue),ue}if(ee(te)==="RegExp")return z(de,te,re);throw x("RegExp#exec called on incompatible receiver")}},{"../internals/an-object":101,"../internals/classof-raw":123,"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/regexp-exec":224}],224:[function(y,Se,ye){"use strict";var E=y("../internals/function-call"),z=y("../internals/function-uncurry-this"),oe=y("../internals/to-string"),se=y("../internals/regexp-flags"),ee=y("../internals/regexp-sticky-helpers"),de=y("../internals/shared"),x=y("../internals/object-create"),te=y("../internals/internal-state").get,re=y("../internals/regexp-unsupported-dot-all"),ae=y("../internals/regexp-unsupported-ncg"),ue=de("native-string-replace",String.prototype.replace),he=RegExp.prototype.exec,pe=he,me=z("".charAt),fe=z("".indexOf),ve=z("".replace),ke=z("".slice),Te=function(){var xe=/a/,Ae=/b*/g;return E(he,xe,"a"),E(he,Ae,"a"),xe.lastIndex!==0||Ae.lastIndex!==0}(),Pe=ee.BROKEN_CARET,_e=/()??/.exec("")[1]!==void 0,be=Te||_e||Pe||re||ae;be&&(pe=function(Ae){var Me=this,Be=te(Me),Ce=oe(Ae),De=Be.raw,He,Ke,Ye,it,Re,We,et;if(De)return De.lastIndex=Me.lastIndex,He=E(pe,De,Ce),Me.lastIndex=De.lastIndex,He;var nt=Be.groups,rt=Pe&&Me.sticky,Xe=E(se,Me),Je=Me.source,Ve=0,at=Ce;if(rt&&(Xe=ve(Xe,"y",""),fe(Xe,"g")===-1&&(Xe+="g"),at=ke(Ce,Me.lastIndex),Me.lastIndex>0&&(!Me.multiline||Me.multiline&&me(Ce,Me.lastIndex-1)!==`
`)&&(Je="(?: "+Je+")",at=" "+at,Ve++),Ke=new RegExp("^(?:"+Je+")",Xe)),_e&&(Ke=new RegExp("^"+Je+"$(?!\\s)",Xe)),Te&&(Ye=Me.lastIndex),it=E(he,rt?Ke:Me,at),rt?it?(it.input=ke(it.input,Ve),it[0]=ke(it[0],Ve),it.index=Me.lastIndex,Me.lastIndex+=it[0].length):Me.lastIndex=0:Te&&it&&(Me.lastIndex=Me.global?it.index+it[0].length:Ye),_e&&it&&it.length>1&&E(ue,it[0],Ke,function(){for(Re=1;Re<arguments.length-2;Re++)arguments[Re]===void 0&&(it[Re]=void 0)}),it&&nt)for(it.groups=We=x(null),Re=0;Re<nt.length;Re++)et=nt[Re],We[et[0]]=it[et[1]];return it}),Se.exports=pe},{"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/internal-state":173,"../internals/object-create":196,"../internals/regexp-flags":225,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/shared":237,"../internals/to-string":256}],225:[function(y,Se,ye){"use strict";var E=y("../internals/an-object");Se.exports=function(){var z=E(this),oe="";return z.hasIndices&&(oe+="d"),z.global&&(oe+="g"),z.ignoreCase&&(oe+="i"),z.multiline&&(oe+="m"),z.dotAll&&(oe+="s"),z.unicode&&(oe+="u"),z.sticky&&(oe+="y"),oe}},{"../internals/an-object":101}],226:[function(y,Se,ye){var E=y("../internals/function-call"),z=y("../internals/has-own-property"),oe=y("../internals/object-is-prototype-of"),se=y("../internals/regexp-flags"),ee=RegExp.prototype;Se.exports=function(de){var x=de.flags;return x===void 0&&!("flags"in ee)&&!z(de,"flags")&&oe(ee,de)?E(se,de):x}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,Se,ye){var E=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp,se=E(function(){var x=oe("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),ee=se||E(function(){return!oe("a","y").sticky}),de=se||E(function(){var x=oe("^r","gy");return x.lastIndex=2,x.exec("str")!=null});Se.exports={BROKEN_CARET:de,MISSED_STICKY:ee,UNSUPPORTED_Y:se}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,Se,ye){var E=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp;Se.exports=E(function(){var se=oe(".","s");return!(se.dotAll&&se.exec(`
`)&&se.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,Se,ye){var E=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp;Se.exports=E(function(){var se=oe("(?<a>b)","g");return se.exec("b").groups.a!=="b"||"b".replace(se,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(y,Se,ye){var E=y("../internals/global"),z=E.TypeError;Se.exports=function(oe){if(oe==null)throw z("Can't call method on "+oe);return oe}},{"../internals/global":163}],231:[function(y,Se,ye){Se.exports=Object.is||function(z,oe){return z===oe?z!==0||1/z===1/oe:z!=z&&oe!=oe}},{}],232:[function(y,Se,ye){var E=y("../internals/global"),z=Object.defineProperty;Se.exports=function(oe,se){try{z(E,oe,{value:se,configurable:!0,writable:!0})}catch(ee){E[oe]=se}return se}},{"../internals/global":163}],233:[function(y,Se,ye){"use strict";var E=y("../internals/get-built-in"),z=y("../internals/object-define-property"),oe=y("../internals/well-known-symbol"),se=y("../internals/descriptors"),ee=oe("species");Se.exports=function(de){var x=E(de),te=z.f;se&&x&&!x[ee]&&te(x,ee,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(y,Se,ye){var E=y("../internals/object-define-property").f,z=y("../internals/has-own-property"),oe=y("../internals/well-known-symbol"),se=oe("toStringTag");Se.exports=function(ee,de,x){ee&&!x&&(ee=ee.prototype),ee&&!z(ee,se)&&E(ee,se,{configurable:!0,value:de})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,Se,ye){var E=y("../internals/shared"),z=y("../internals/uid"),oe=E("keys");Se.exports=function(se){return oe[se]||(oe[se]=z(se))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/set-global"),oe="__core-js_shared__",se=E[oe]||z(oe,{});Se.exports=se},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,Se,ye){var E=y("../internals/is-pure"),z=y("../internals/shared-store");(Se.exports=function(oe,se){return z[oe]||(z[oe]=se!==void 0?se:{})})("versions",[]).push({version:"3.22.1",mode:E?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE",source:"https://github.com/zloirock/core-js"})},{"../internals/is-pure":181,"../internals/shared-store":236}],238:[function(y,Se,ye){var E=y("../internals/an-object"),z=y("../internals/a-constructor"),oe=y("../internals/well-known-symbol"),se=oe("species");Se.exports=function(ee,de){var x=E(ee).constructor,te;return x===void 0||(te=E(x)[se])==null?de:z(te)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/to-integer-or-infinity"),oe=y("../internals/to-string"),se=y("../internals/require-object-coercible"),ee=E("".charAt),de=E("".charCodeAt),x=E("".slice),te=function(re){return function(ae,ue){var he=oe(se(ae)),pe=z(ue),me=he.length,fe,ve;return pe<0||pe>=me?re?"":void 0:(fe=de(he,pe),fe<55296||fe>56319||pe+1===me||(ve=de(he,pe+1))<56320||ve>57343?re?ee(he,pe):fe:re?x(he,pe,pe+2):(fe-55296<<10)+(ve-56320)+65536)}};Se.exports={codeAt:te(!1),charAt:te(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(y,Se,ye){var E=y("../internals/function-name").PROPER,z=y("../internals/fails"),oe=y("../internals/whitespaces"),se="\u200B\x85\u180E";Se.exports=function(ee){return z(function(){return!!oe[ee]()||se[ee]()!==se||E&&oe[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=y("../internals/require-object-coercible"),oe=y("../internals/to-string"),se=y("../internals/whitespaces"),ee=E("".replace),de="["+se+"]",x=RegExp("^"+de+de+"*"),te=RegExp(de+de+"*$"),re=function(ae){return function(ue){var he=oe(z(ue));return ae&1&&(he=ee(he,x,"")),ae&2&&(he=ee(he,te,"")),he}};Se.exports={start:re(1),end:re(2),trim:re(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(y,Se,ye){var E=y("../internals/function-call"),z=y("../internals/get-built-in"),oe=y("../internals/well-known-symbol"),se=y("../internals/redefine");Se.exports=function(){var ee=z("Symbol"),de=ee&&ee.prototype,x=de&&de.valueOf,te=oe("toPrimitive");de&&!de[te]&&se(de,te,function(re){return E(x,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/function-apply"),oe=y("../internals/function-bind-context"),se=y("../internals/is-callable"),ee=y("../internals/has-own-property"),de=y("../internals/fails"),x=y("../internals/html"),te=y("../internals/array-slice"),re=y("../internals/document-create-element"),ae=y("../internals/validate-arguments-length"),ue=y("../internals/engine-is-ios"),he=y("../internals/engine-is-node"),pe=E.setImmediate,me=E.clearImmediate,fe=E.process,ve=E.Dispatch,ke=E.Function,Te=E.MessageChannel,Pe=E.String,_e=0,be={},xe="onreadystatechange",Ae,Me,Be,Ce;try{Ae=E.location}catch(it){}var De=function(it){if(ee(be,it)){var Re=be[it];delete be[it],Re()}},He=function(it){return function(){De(it)}},Ke=function(it){De(it.data)},Ye=function(it){E.postMessage(Pe(it),Ae.protocol+"//"+Ae.host)};(!pe||!me)&&(pe=function(Re){ae(arguments.length,1);var We=se(Re)?Re:ke(Re),et=te(arguments,1);return be[++_e]=function(){z(We,void 0,et)},Me(_e),_e},me=function(Re){delete be[Re]},he?Me=function(it){fe.nextTick(He(it))}:ve&&ve.now?Me=function(it){ve.now(He(it))}:Te&&!ue?(Be=new Te,Ce=Be.port2,Be.port1.onmessage=Ke,Me=oe(Ce.postMessage,Ce)):E.addEventListener&&se(E.postMessage)&&!E.importScripts&&Ae&&Ae.protocol!=="file:"&&!de(Ye)?(Me=Ye,E.addEventListener("message",Ke,!1)):xe in re("script")?Me=function(it){x.appendChild(re("script"))[xe]=function(){x.removeChild(this),De(it)}}:Me=function(it){setTimeout(He(it),0)}),Se.exports={set:pe,clear:me}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(y,Se,ye){var E=y("../internals/function-uncurry-this");Se.exports=E(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,Se,ye){var E=y("../internals/to-integer-or-infinity"),z=Math.max,oe=Math.min;Se.exports=function(se,ee){var de=E(se);return de<0?z(de+ee,0):oe(de,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),oe=y("../internals/to-length"),se=E.RangeError;Se.exports=function(ee){if(ee===void 0)return 0;var de=z(ee),x=oe(de);if(de!==x)throw se("Wrong length or index");return x}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(y,Se,ye){var E=y("../internals/indexed-object"),z=y("../internals/require-object-coercible");Se.exports=function(oe){return E(z(oe))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,Se,ye){var E=Math.ceil,z=Math.floor;Se.exports=function(oe){var se=+oe;return se!==se||se===0?0:(se>0?z:E)(se)}},{}],249:[function(y,Se,ye){var E=y("../internals/to-integer-or-infinity"),z=Math.min;Se.exports=function(oe){return oe>0?z(E(oe),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/require-object-coercible"),oe=E.Object;Se.exports=function(se){return oe(z(se))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/to-positive-integer"),oe=E.RangeError;Se.exports=function(se,ee){var de=z(se);if(de%ee)throw oe("Wrong offset");return de}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),oe=E.RangeError;Se.exports=function(se){var ee=z(se);if(ee<0)throw oe("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/is-object"),se=y("../internals/is-symbol"),ee=y("../internals/get-method"),de=y("../internals/ordinary-to-primitive"),x=y("../internals/well-known-symbol"),te=E.TypeError,re=x("toPrimitive");Se.exports=function(ae,ue){if(!oe(ae)||se(ae))return ae;var he=ee(ae,re),pe;if(he){if(ue===void 0&&(ue="default"),pe=z(he,ae,ue),!oe(pe)||se(pe))return pe;throw te("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),de(ae,ue)}},{"../internals/function-call":155,"../internals/get-method":161,"../internals/global":163,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/ordinary-to-primitive":211,"../internals/well-known-symbol":268}],254:[function(y,Se,ye){var E=y("../internals/to-primitive"),z=y("../internals/is-symbol");Se.exports=function(oe){var se=E(oe,"string");return z(se)?se:se+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,Se,ye){var E=y("../internals/well-known-symbol"),z=E("toStringTag"),oe={};oe[z]="z",Se.exports=String(oe)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/classof"),oe=E.String;Se.exports=function(se){if(z(se)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return oe(se)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,Se,ye){var E=y("../internals/global"),z=E.String;Se.exports=function(oe){try{return z(oe)}catch(se){return"Object"}}},{"../internals/global":163}],258:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/function-call"),se=y("../internals/descriptors"),ee=y("../internals/typed-array-constructors-require-wrappers"),de=y("../internals/array-buffer-view-core"),x=y("../internals/array-buffer"),te=y("../internals/an-instance"),re=y("../internals/create-property-descriptor"),ae=y("../internals/create-non-enumerable-property"),ue=y("../internals/is-integral-number"),he=y("../internals/to-length"),pe=y("../internals/to-index"),me=y("../internals/to-offset"),fe=y("../internals/to-property-key"),ve=y("../internals/has-own-property"),ke=y("../internals/classof"),Te=y("../internals/is-object"),Pe=y("../internals/is-symbol"),_e=y("../internals/object-create"),be=y("../internals/object-is-prototype-of"),xe=y("../internals/object-set-prototype-of"),Ae=y("../internals/object-get-own-property-names").f,Me=y("../internals/typed-array-from"),Be=y("../internals/array-iteration").forEach,Ce=y("../internals/set-species"),De=y("../internals/object-define-property"),He=y("../internals/object-get-own-property-descriptor"),Ke=y("../internals/internal-state"),Ye=y("../internals/inherit-if-required"),it=Ke.get,Re=Ke.set,We=De.f,et=He.f,nt=Math.round,rt=z.RangeError,Xe=x.ArrayBuffer,Je=Xe.prototype,Ve=x.DataView,at=de.NATIVE_ARRAY_BUFFER_VIEWS,Qe=de.TYPED_ARRAY_CONSTRUCTOR,ut=de.TYPED_ARRAY_TAG,st=de.TypedArray,$e=de.TypedArrayPrototype,Ne=de.aTypedArrayConstructor,je=de.isTypedArray,ne="BYTES_PER_ELEMENT",ce="Wrong length",Ie=function(tt,Ge){Ne(tt);for(var ft=0,ct=Ge.length,vt=new tt(ct);ct>ft;)vt[ft]=Ge[ft++];return vt},Fe=function(tt,Ge){We(tt,Ge,{get:function(){return it(this)[Ge]}})},we=function(tt){var Ge;return be(Je,tt)||(Ge=ke(tt))=="ArrayBuffer"||Ge=="SharedArrayBuffer"},Ee=function(tt,Ge){return je(tt)&&!Pe(Ge)&&Ge in tt&&ue(+Ge)&&Ge>=0},Oe=function(Ge,ft){return ft=fe(ft),Ee(Ge,ft)?re(2,Ge[ft]):et(Ge,ft)},Ue=function(Ge,ft,ct){return ft=fe(ft),Ee(Ge,ft)&&Te(ct)&&ve(ct,"value")&&!ve(ct,"get")&&!ve(ct,"set")&&!ct.configurable&&(!ve(ct,"writable")||ct.writable)&&(!ve(ct,"enumerable")||ct.enumerable)?(Ge[ft]=ct.value,Ge):We(Ge,ft,ct)};se?(at||(He.f=Oe,De.f=Ue,Fe($e,"buffer"),Fe($e,"byteOffset"),Fe($e,"byteLength"),Fe($e,"length")),E({target:"Object",stat:!0,forced:!at},{getOwnPropertyDescriptor:Oe,defineProperty:Ue}),Se.exports=function(tt,Ge,ft){var ct=tt.match(/\d+$/)[0]/8,vt=tt+(ft?"Clamped":"")+"Array",kt="get"+tt,xt="set"+tt,Et=z[vt],gt=Et,pt=gt&&gt.prototype,mt={},dt=function(At,jt){var Zt=it(At);return Zt.view[kt](jt*ct+Zt.byteOffset,!0)},bt=function(At,jt,Zt){var Wt=it(At);ft&&(Zt=(Zt=nt(Zt))<0?0:Zt>255?255:Zt&255),Wt.view[xt](jt*ct+Wt.byteOffset,Zt,!0)},wt=function(At,jt){We(At,jt,{get:function(){return dt(this,jt)},set:function(Zt){return bt(this,jt,Zt)},enumerable:!0})};at?ee&&(gt=Ge(function(At,jt,Zt,Wt){return te(At,pt),Ye(function(){return Te(jt)?we(jt)?Wt!==void 0?new Et(jt,me(Zt,ct),Wt):Zt!==void 0?new Et(jt,me(Zt,ct)):new Et(jt):je(jt)?Ie(gt,jt):oe(Me,gt,jt):new Et(pe(jt))}(),At,gt)}),xe&&xe(gt,st),Be(Ae(Et),function(At){At in gt||ae(gt,At,Et[At])}),gt.prototype=pt):(gt=Ge(function(At,jt,Zt,Wt){te(At,pt);var $t=0,Er=0,vr,Ht,er;if(!Te(jt))er=pe(jt),Ht=er*ct,vr=new Xe(Ht);else if(we(jt)){vr=jt,Er=me(Zt,ct);var or=jt.byteLength;if(Wt===void 0){if(or%ct||(Ht=or-Er,Ht<0))throw rt(ce)}else if(Ht=he(Wt)*ct,Ht+Er>or)throw rt(ce);er=Ht/ct}else return je(jt)?Ie(gt,jt):oe(Me,gt,jt);for(Re(At,{buffer:vr,byteOffset:Er,byteLength:Ht,length:er,view:new Ve(vr)});$t<er;)wt(At,$t++)}),xe&&xe(gt,st),pt=gt.prototype=_e($e)),pt.constructor!==gt&&ae(pt,"constructor",gt),ae(pt,Qe,gt),ut&&ae(pt,ut,vt),mt[vt]=gt,E({global:!0,forced:gt!=Et,sham:!at},mt),ne in gt||ae(gt,ne,ct),ne in pt||ae(pt,ne,ct),Ce(vt)}):Se.exports=function(){}},{"../internals/an-instance":100,"../internals/array-buffer":104,"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/classof":124,"../internals/create-non-enumerable-property":129,"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-integral-number":179,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/object-create":196,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/object-set-prototype-of":208,"../internals/set-species":233,"../internals/to-index":246,"../internals/to-length":249,"../internals/to-offset":251,"../internals/to-property-key":254,"../internals/typed-array-constructors-require-wrappers":259,"../internals/typed-array-from":261}],259:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/fails"),oe=y("../internals/check-correctness-of-iteration"),se=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=E.ArrayBuffer,de=E.Int8Array;Se.exports=!se||!z(function(){de(1)})||!z(function(){new de(-1)})||!oe(function(x){new de,new de(null),new de(1.5),new de(x)},!0)||z(function(){return new de(new ee(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(y,Se,ye){var E=y("../internals/array-from-constructor-and-list"),z=y("../internals/typed-array-species-constructor");Se.exports=function(oe,se){return E(z(oe),se)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,Se,ye){var E=y("../internals/function-bind-context"),z=y("../internals/function-call"),oe=y("../internals/a-constructor"),se=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/get-iterator"),x=y("../internals/get-iterator-method"),te=y("../internals/is-array-iterator-method"),re=y("../internals/array-buffer-view-core").aTypedArrayConstructor;Se.exports=function(ue){var he=oe(this),pe=se(ue),me=arguments.length,fe=me>1?arguments[1]:void 0,ve=fe!==void 0,ke=x(pe),Te,Pe,_e,be,xe,Ae;if(ke&&!te(ke))for(xe=de(pe,ke),Ae=xe.next,pe=[];!(be=z(Ae,xe)).done;)pe.push(be.value);for(ve&&me>2&&(fe=E(fe,arguments[2])),Pe=ee(pe),_e=new(re(he))(Pe),Te=0;Pe>Te;Te++)_e[Te]=ve?fe(pe[Te],Te):pe[Te];return _e}},{"../internals/a-constructor":96,"../internals/array-buffer-view-core":103,"../internals/function-bind-context":153,"../internals/function-call":155,"../internals/get-iterator":160,"../internals/get-iterator-method":159,"../internals/is-array-iterator-method":174,"../internals/length-of-array-like":188,"../internals/to-object":250}],262:[function(y,Se,ye){var E=y("../internals/array-buffer-view-core"),z=y("../internals/species-constructor"),oe=E.TYPED_ARRAY_CONSTRUCTOR,se=E.aTypedArrayConstructor;Se.exports=function(ee){return se(z(ee,ee[oe]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,Se,ye){var E=y("../internals/function-uncurry-this"),z=0,oe=Math.random(),se=E(1 .toString);Se.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+se(++z+oe,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,Se,ye){var E=y("../internals/native-symbol");Se.exports=E&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/fails");Se.exports=E&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,Se,ye){var E=y("../internals/global"),z=E.TypeError;Se.exports=function(oe,se){if(oe<se)throw z("Not enough arguments");return oe}},{"../internals/global":163}],267:[function(y,Se,ye){var E=y("../internals/well-known-symbol");ye.f=E},{"../internals/well-known-symbol":268}],268:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/shared"),oe=y("../internals/has-own-property"),se=y("../internals/uid"),ee=y("../internals/native-symbol"),de=y("../internals/use-symbol-as-uid"),x=z("wks"),te=E.Symbol,re=te&&te.for,ae=de?te:te&&te.withoutSetter||se;Se.exports=function(ue){if(!oe(x,ue)||!(ee||typeof x[ue]=="string")){var he="Symbol."+ue;ee&&oe(te,ue)?x[ue]=te[ue]:de&&re?x[ue]=re(he):x[ue]=ae(he)}return x[ue]}},{"../internals/global":163,"../internals/has-own-property":164,"../internals/native-symbol":191,"../internals/shared":237,"../internals/uid":263,"../internals/use-symbol-as-uid":264}],269:[function(y,Se,ye){Se.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},{}],270:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/array-buffer"),se=y("../internals/set-species"),ee="ArrayBuffer",de=oe[ee],x=z[ee];E({global:!0,forced:x!==de},{ArrayBuffer:de}),se(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),se=y("../internals/array-buffer"),ee=y("../internals/an-object"),de=y("../internals/to-absolute-index"),x=y("../internals/to-length"),te=y("../internals/species-constructor"),re=se.ArrayBuffer,ae=se.DataView,ue=ae.prototype,he=z(re.prototype.slice),pe=z(ue.getUint8),me=z(ue.setUint8),fe=oe(function(){return!new re(2).slice(1,void 0).byteLength});E({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:fe},{slice:function(ke,Te){if(he&&Te===void 0)return he(ee(this),ke);for(var Pe=ee(this).byteLength,_e=de(ke,Pe),be=de(Te===void 0?Pe:Te,Pe),xe=new(te(this,re))(x(be-_e)),Ae=new ae(this),Me=new ae(xe),Be=0;_e<be;)me(Me,Be++,pe(Ae,_e++));return xe}})},{"../internals/an-object":101,"../internals/array-buffer":104,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/species-constructor":238,"../internals/to-absolute-index":245,"../internals/to-length":249}],272:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/fails"),se=y("../internals/is-array"),ee=y("../internals/is-object"),de=y("../internals/to-object"),x=y("../internals/length-of-array-like"),te=y("../internals/create-property"),re=y("../internals/array-species-create"),ae=y("../internals/array-method-has-species-support"),ue=y("../internals/well-known-symbol"),he=y("../internals/engine-v8-version"),pe=ue("isConcatSpreadable"),me=9007199254740991,fe="Maximum allowed index exceeded",ve=z.TypeError,ke=he>=51||!oe(function(){var be=[];return be[pe]=!1,be.concat()[0]!==be}),Te=ae("concat"),Pe=function(be){if(!ee(be))return!1;var xe=be[pe];return xe!==void 0?!!xe:se(be)},_e=!ke||!Te;E({target:"Array",proto:!0,forced:_e},{concat:function(xe){var Ae=de(this),Me=re(Ae,0),Be=0,Ce,De,He,Ke,Ye;for(Ce=-1,He=arguments.length;Ce<He;Ce++)if(Ye=Ce===-1?Ae:arguments[Ce],Pe(Ye)){if(Ke=x(Ye),Be+Ke>me)throw ve(fe);for(De=0;De<Ke;De++,Be++)De in Ye&&te(Me,Be,Ye[De])}else{if(Be>=me)throw ve(fe);te(Me,Be++,Ye)}return Me.length=Be,Me}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/engine-v8-version":146,"../internals/export":149,"../internals/fails":150,"../internals/global":163,"../internals/is-array":175,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/well-known-symbol":268}],273:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/array-fill"),oe=y("../internals/add-to-unscopables");E({target:"Array",proto:!0},{fill:z}),oe("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/array-iteration").filter,oe=y("../internals/array-method-has-species-support"),se=oe("filter");E({target:"Array",proto:!0,forced:!se},{filter:function(de){return z(this,de,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/array-iteration").find,oe=y("../internals/add-to-unscopables"),se="find",ee=!0;se in[]&&Array(1)[se](function(){ee=!1}),E({target:"Array",proto:!0,forced:ee},{find:function(x){return z(this,x,arguments.length>1?arguments[1]:void 0)}}),oe(se)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/array-from"),oe=y("../internals/check-correctness-of-iteration"),se=!oe(function(ee){Array.from(ee)});E({target:"Array",stat:!0,forced:se},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/array-includes").includes,oe=y("../internals/add-to-unscopables");E({target:"Array",proto:!0},{includes:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}}),oe("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,Se,ye){"use strict";var E=y("../internals/to-indexed-object"),z=y("../internals/add-to-unscopables"),oe=y("../internals/iterators"),se=y("../internals/internal-state"),ee=y("../internals/object-define-property").f,de=y("../internals/define-iterator"),x=y("../internals/is-pure"),te=y("../internals/descriptors"),re="Array Iterator",ae=se.set,ue=se.getterFor(re);Se.exports=de(Array,"Array",function(pe,me){ae(this,{type:re,target:E(pe),index:0,kind:me})},function(){var pe=ue(this),me=pe.target,fe=pe.kind,ve=pe.index++;return!me||ve>=me.length?(pe.target=void 0,{value:void 0,done:!0}):fe=="keys"?{value:ve,done:!1}:fe=="values"?{value:me[ve],done:!1}:{value:[ve,me[ve]],done:!1}},"values");var he=oe.Arguments=oe.Array;if(z("keys"),z("values"),z("entries"),!x&&te&&he.name!=="values")try{ee(he,"name",{value:"values"})}catch(pe){}},{"../internals/add-to-unscopables":98,"../internals/define-iterator":132,"../internals/descriptors":134,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/iterators":187,"../internals/object-define-property":198,"../internals/to-indexed-object":247}],279:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/indexed-object"),se=y("../internals/to-indexed-object"),ee=y("../internals/array-method-is-strict"),de=z([].join),x=oe!=Object,te=ee("join",",");E({target:"Array",proto:!0,forced:x||!te},{join:function(ae){return de(se(this),ae===void 0?",":ae)}})},{"../internals/array-method-is-strict":114,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/to-indexed-object":247}],280:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/array-iteration").map,oe=y("../internals/array-method-has-species-support"),se=oe("map");E({target:"Array",proto:!0,forced:!se},{map:function(de){return z(this,de,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/is-array"),se=y("../internals/is-constructor"),ee=y("../internals/is-object"),de=y("../internals/to-absolute-index"),x=y("../internals/length-of-array-like"),te=y("../internals/to-indexed-object"),re=y("../internals/create-property"),ae=y("../internals/well-known-symbol"),ue=y("../internals/array-method-has-species-support"),he=y("../internals/array-slice"),pe=ue("slice"),me=ae("species"),fe=z.Array,ve=Math.max;E({target:"Array",proto:!0,forced:!pe},{slice:function(Te,Pe){var _e=te(this),be=x(_e),xe=de(Te,be),Ae=de(Pe===void 0?be:Pe,be),Me,Be,Ce;if(oe(_e)&&(Me=_e.constructor,se(Me)&&(Me===fe||oe(Me.prototype))?Me=void 0:ee(Me)&&(Me=Me[me],Me===null&&(Me=void 0)),Me===fe||Me===void 0))return he(_e,xe,Ae);for(Be=new(Me===void 0?fe:Me)(ve(Ae-xe,0)),Ce=0;xe<Ae;xe++,Ce++)xe in _e&&re(Be,Ce,_e[xe]);return Be.length=Ce,Be}})},{"../internals/array-method-has-species-support":113,"../internals/array-slice":117,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247,"../internals/well-known-symbol":268}],282:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/a-callable"),se=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),de=y("../internals/to-string"),x=y("../internals/fails"),te=y("../internals/array-sort"),re=y("../internals/array-method-is-strict"),ae=y("../internals/engine-ff-version"),ue=y("../internals/engine-is-ie-or-edge"),he=y("../internals/engine-v8-version"),pe=y("../internals/engine-webkit-version"),me=[],fe=z(me.sort),ve=z(me.push),ke=x(function(){me.sort(void 0)}),Te=x(function(){me.sort(null)}),Pe=re("sort"),_e=!x(function(){if(he)return he<70;if(!(ae&&ae>3)){if(ue)return!0;if(pe)return pe<603;var Ae="",Me,Be,Ce,De;for(Me=65;Me<76;Me++){switch(Be=String.fromCharCode(Me),Me){case 66:case 69:case 70:case 72:Ce=3;break;case 68:case 71:Ce=4;break;default:Ce=2}for(De=0;De<47;De++)me.push({k:Be+De,v:Ce})}for(me.sort(function(He,Ke){return Ke.v-He.v}),De=0;De<me.length;De++)Be=me[De].k.charAt(0),Ae.charAt(Ae.length-1)!==Be&&(Ae+=Be);return Ae!=="DGBEFHACIJK"}}),be=ke||!Te||!Pe||!_e,xe=function(Ae){return function(Me,Be){return Be===void 0?-1:Me===void 0?1:Ae!==void 0?+Ae(Me,Be)||0:de(Me)>de(Be)?1:-1}};E({target:"Array",proto:!0,forced:be},{sort:function(Me){Me!==void 0&&oe(Me);var Be=se(this);if(_e)return Me===void 0?fe(Be):fe(Be,Me);var Ce=[],De=ee(Be),He,Ke;for(Ke=0;Ke<De;Ke++)Ke in Be&&ve(Ce,Be[Ke]);for(te(Ce,xe(Me)),He=Ce.length,Ke=0;Ke<He;)Be[Ke]=Ce[Ke++];for(;Ke<De;)delete Be[Ke++];return Be}})},{"../internals/a-callable":95,"../internals/array-method-is-strict":114,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/export":149,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-string":256}],283:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/to-absolute-index"),se=y("../internals/to-integer-or-infinity"),ee=y("../internals/length-of-array-like"),de=y("../internals/to-object"),x=y("../internals/array-species-create"),te=y("../internals/create-property"),re=y("../internals/array-method-has-species-support"),ae=re("splice"),ue=z.TypeError,he=Math.max,pe=Math.min,me=9007199254740991,fe="Maximum allowed length exceeded";E({target:"Array",proto:!0,forced:!ae},{splice:function(ke,Te){var Pe=de(this),_e=ee(Pe),be=oe(ke,_e),xe=arguments.length,Ae,Me,Be,Ce,De,He;if(xe===0?Ae=Me=0:xe===1?(Ae=0,Me=_e-be):(Ae=xe-2,Me=pe(he(se(Te),0),_e-be)),_e+Ae-Me>me)throw ue(fe);for(Be=x(Pe,Me),Ce=0;Ce<Me;Ce++)De=be+Ce,De in Pe&&te(Be,Ce,Pe[De]);if(Be.length=Me,Ae<Me){for(Ce=be;Ce<_e-Me;Ce++)De=Ce+Me,He=Ce+Ae,De in Pe?Pe[He]=Pe[De]:delete Pe[He];for(Ce=_e;Ce>_e-Me+Ae;Ce--)delete Pe[Ce-1]}else if(Ae>Me)for(Ce=_e-Me;Ce>be;Ce--)De=Ce+Me-1,He=Ce+Ae-1,De in Pe?Pe[He]=Pe[De]:delete Pe[He];for(Ce=0;Ce<Ae;Ce++)Pe[Ce+be]=arguments[Ce+2];return Pe.length=_e-Me+Ae,Be}})},{"../internals/array-method-has-species-support":113,"../internals/array-species-create":120,"../internals/create-property":131,"../internals/export":149,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-integer-or-infinity":248,"../internals/to-object":250}],284:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/function-name").EXISTS,oe=y("../internals/function-uncurry-this"),se=y("../internals/object-define-property").f,ee=Function.prototype,de=oe(ee.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,te=oe(x.exec),re="name";E&&!z&&se(ee,re,{configurable:!0,get:function(){try{return te(x,de(this))[1]}catch(ae){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/function-apply"),se=y("../internals/function-call"),ee=y("../internals/function-uncurry-this"),de=y("../internals/fails"),x=y("../internals/is-array"),te=y("../internals/is-callable"),re=y("../internals/is-object"),ae=y("../internals/is-symbol"),ue=y("../internals/array-slice"),he=y("../internals/native-symbol"),pe=z("JSON","stringify"),me=ee(/./.exec),fe=ee("".charAt),ve=ee("".charCodeAt),ke=ee("".replace),Te=ee(1 .toString),Pe=/[\uD800-\uDFFF]/g,_e=/^[\uD800-\uDBFF]$/,be=/^[\uDC00-\uDFFF]$/,xe=!he||de(function(){var Ce=z("Symbol")();return pe([Ce])!="[null]"||pe({a:Ce})!="{}"||pe(Object(Ce))!="{}"}),Ae=de(function(){return pe("\uDF06\uD834")!=='"\\udf06\\ud834"'||pe("\uDEAD")!=='"\\udead"'}),Me=function(Ce,De){var He=ue(arguments),Ke=De;if(!(!re(De)&&Ce===void 0||ae(Ce)))return x(De)||(De=function(Ye,it){if(te(Ke)&&(it=se(Ke,this,Ye,it)),!ae(it))return it}),He[1]=De,oe(pe,null,He)},Be=function(Ce,De,He){var Ke=fe(He,De-1),Ye=fe(He,De+1);return me(_e,Ce)&&!me(be,Ye)||me(be,Ce)&&!me(_e,Ke)?"\\u"+Te(ve(Ce,0),16):Ce};pe&&E({target:"JSON",stat:!0,forced:xe||Ae},{stringify:function(De,He,Ke){var Ye=ue(arguments),it=oe(xe?Me:pe,null,Ye);return Ae&&typeof it=="string"?ke(it,Pe,Be):it}})},{"../internals/array-slice":117,"../internals/export":149,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/is-array":175,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-symbol":183,"../internals/native-symbol":191}],286:[function(y,Se,ye){"use strict";var E=y("../internals/descriptors"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),se=y("../internals/is-forced"),ee=y("../internals/redefine"),de=y("../internals/has-own-property"),x=y("../internals/inherit-if-required"),te=y("../internals/object-is-prototype-of"),re=y("../internals/is-symbol"),ae=y("../internals/to-primitive"),ue=y("../internals/fails"),he=y("../internals/object-get-own-property-names").f,pe=y("../internals/object-get-own-property-descriptor").f,me=y("../internals/object-define-property").f,fe=y("../internals/this-number-value"),ve=y("../internals/string-trim").trim,ke="Number",Te=z[ke],Pe=Te.prototype,_e=z.TypeError,be=oe("".slice),xe=oe("".charCodeAt),Ae=function(Ke){var Ye=ae(Ke,"number");return typeof Ye=="bigint"?Ye:Me(Ye)},Me=function(Ke){var Ye=ae(Ke,"number"),it,Re,We,et,nt,rt,Xe,Je;if(re(Ye))throw _e("Cannot convert a Symbol value to a number");if(typeof Ye=="string"&&Ye.length>2){if(Ye=ve(Ye),it=xe(Ye,0),it===43||it===45){if(Re=xe(Ye,2),Re===88||Re===120)return NaN}else if(it===48){switch(xe(Ye,1)){case 66:case 98:We=2,et=49;break;case 79:case 111:We=8,et=55;break;default:return+Ye}for(nt=be(Ye,2),rt=nt.length,Xe=0;Xe<rt;Xe++)if(Je=xe(nt,Xe),Je<48||Je>et)return NaN;return parseInt(nt,We)}}return+Ye};if(se(ke,!Te(" 0o1")||!Te("0b1")||Te("+0x1"))){for(var Be=function(Ye){var it=arguments.length<1?0:Te(Ae(Ye)),Re=this;return te(Pe,Re)&&ue(function(){fe(Re)})?x(Object(it),Re,Be):it},Ce=E?he(Te):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),De=0,He;Ce.length>De;De++)de(Te,He=Ce[De])&&!de(Be,He)&&me(Be,He,pe(Te,He));Be.prototype=Pe,Pe.constructor=Be,ee(z,ke,Be)}},{"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/is-forced":178,"../internals/is-symbol":183,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/redefine":222,"../internals/string-trim":241,"../internals/this-number-value":244,"../internals/to-primitive":253}],287:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/object-assign");E({target:"Object",stat:!0,forced:Object.assign!==z},{assign:z})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/object-to-array").entries;E({target:"Object",stat:!0},{entries:function(se){return z(se)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/native-symbol"),oe=y("../internals/fails"),se=y("../internals/object-get-own-property-symbols"),ee=y("../internals/to-object"),de=!z||oe(function(){se.f(1)});E({target:"Object",stat:!0,forced:de},{getOwnPropertySymbols:function(te){var re=se.f;return re?re(ee(te)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/to-object"),oe=y("../internals/object-keys"),se=y("../internals/fails"),ee=se(function(){oe(1)});E({target:"Object",stat:!0,forced:ee},{keys:function(x){return oe(z(x))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,Se,ye){var E=y("../internals/to-string-tag-support"),z=y("../internals/redefine"),oe=y("../internals/object-to-string");E||z(Object.prototype,"toString",oe,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),se=y("../internals/new-promise-capability"),ee=y("../internals/perform"),de=y("../internals/iterate"),x=y("../internals/promise-statics-incorrect-iteration");E({target:"Promise",stat:!0,forced:x},{all:function(re){var ae=this,ue=se.f(ae),he=ue.resolve,pe=ue.reject,me=ee(function(){var fe=oe(ae.resolve),ve=[],ke=0,Te=1;de(re,function(Pe){var _e=ke++,be=!1;Te++,z(fe,ae,Pe).then(function(xe){be||(be=!0,ve[_e]=xe,--Te||he(ve))},pe)}),--Te||he(ve)});return me.error&&pe(me.value),ue.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/is-pure"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR,se=y("../internals/promise-native-constructor"),ee=y("../internals/get-built-in"),de=y("../internals/is-callable"),x=y("../internals/redefine"),te=se&&se.prototype;if(E({target:"Promise",proto:!0,forced:oe,real:!0},{catch:function(ae){return this.then(void 0,ae)}}),!z&&de(se)){var re=ee("Promise").prototype.catch;te.catch!==re&&x(te,"catch",re,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/is-pure"),oe=y("../internals/engine-is-node"),se=y("../internals/global"),ee=y("../internals/function-call"),de=y("../internals/redefine"),x=y("../internals/redefine-all"),te=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),ae=y("../internals/set-species"),ue=y("../internals/a-callable"),he=y("../internals/is-callable"),pe=y("../internals/is-object"),me=y("../internals/an-instance"),fe=y("../internals/species-constructor"),ve=y("../internals/task").set,ke=y("../internals/microtask"),Te=y("../internals/host-report-errors"),Pe=y("../internals/perform"),_e=y("../internals/queue"),be=y("../internals/internal-state"),xe=y("../internals/promise-native-constructor"),Ae=y("../internals/promise-constructor-detection"),Me=y("../internals/new-promise-capability"),Be="Promise",Ce=Ae.CONSTRUCTOR,De=Ae.REJECTION_EVENT,He=Ae.SUBCLASSING,Ke=be.getterFor(Be),Ye=be.set,it=xe&&xe.prototype,Re=xe,We=it,et=se.TypeError,nt=se.document,rt=se.process,Xe=Me.f,Je=Xe,Ve=!!(nt&&nt.createEvent&&se.dispatchEvent),at="unhandledrejection",Qe="rejectionhandled",ut=0,st=1,$e=2,Ne=1,je=2,ne,ce,Ie,Fe,we=function(xt){var Et;return pe(xt)&&he(Et=xt.then)?Et:!1},Ee=function(xt,Et){var gt=Et.value,pt=Et.state==st,mt=pt?xt.ok:xt.fail,dt=xt.resolve,bt=xt.reject,wt=xt.domain,At,jt,Zt;try{mt?(pt||(Et.rejection===je&&ft(Et),Et.rejection=Ne),mt===!0?At=gt:(wt&&wt.enter(),At=mt(gt),wt&&(wt.exit(),Zt=!0)),At===xt.promise?bt(et("Promise-chain cycle")):(jt=we(At))?ee(jt,At,dt,bt):dt(At)):bt(gt)}catch(Wt){wt&&!Zt&&wt.exit(),bt(Wt)}},Oe=function(xt,Et){xt.notified||(xt.notified=!0,ke(function(){for(var gt=xt.reactions,pt;pt=gt.get();)Ee(pt,xt);xt.notified=!1,Et&&!xt.rejection&&tt(xt)}))},Ue=function(xt,Et,gt){var pt,mt;Ve?(pt=nt.createEvent("Event"),pt.promise=Et,pt.reason=gt,pt.initEvent(xt,!1,!0),se.dispatchEvent(pt)):pt={promise:Et,reason:gt},!De&&(mt=se["on"+xt])?mt(pt):xt===at&&Te("Unhandled promise rejection",gt)},tt=function(xt){ee(ve,se,function(){var Et=xt.facade,gt=xt.value,pt=Ge(xt),mt;if(pt&&(mt=Pe(function(){oe?rt.emit("unhandledRejection",gt,Et):Ue(at,Et,gt)}),xt.rejection=oe||Ge(xt)?je:Ne,mt.error))throw mt.value})},Ge=function(xt){return xt.rejection!==Ne&&!xt.parent},ft=function(xt){ee(ve,se,function(){var Et=xt.facade;oe?rt.emit("rejectionHandled",Et):Ue(Qe,Et,xt.value)})},ct=function(xt,Et,gt){return function(pt){xt(Et,pt,gt)}},vt=function(xt,Et,gt){xt.done||(xt.done=!0,gt&&(xt=gt),xt.value=Et,xt.state=$e,Oe(xt,!0))},kt=function(xt,Et,gt){if(!xt.done){xt.done=!0,gt&&(xt=gt);try{if(xt.facade===Et)throw et("Promise can't be resolved itself");var pt=we(Et);pt?ke(function(){var mt={done:!1};try{ee(pt,Et,ct(kt,mt,xt),ct(vt,mt,xt))}catch(dt){vt(mt,dt,xt)}}):(xt.value=Et,xt.state=st,Oe(xt,!1))}catch(mt){vt({done:!1},mt,xt)}}};if(Ce&&(Re=function(Et){me(this,We),ue(Et),ee(ne,this);var gt=Ke(this);try{Et(ct(kt,gt),ct(vt,gt))}catch(pt){vt(gt,pt)}},We=Re.prototype,ne=function(Et){Ye(this,{type:Be,done:!1,notified:!1,parent:!1,reactions:new _e,rejection:!1,state:ut,value:void 0})},ne.prototype=x(We,{then:function(Et,gt){var pt=Ke(this),mt=Xe(fe(this,Re));return pt.parent=!0,mt.ok=he(Et)?Et:!0,mt.fail=he(gt)&&gt,mt.domain=oe?rt.domain:void 0,pt.state==ut?pt.reactions.add(mt):ke(function(){Ee(mt,pt)}),mt.promise}}),ce=function(){var xt=new ne,Et=Ke(xt);this.promise=xt,this.resolve=ct(kt,Et),this.reject=ct(vt,Et)},Me.f=Xe=function(xt){return xt===Re||xt===Ie?new ce(xt):Je(xt)},!z&&he(xe)&&it!==Object.prototype)){Fe=it.then,He||de(it,"then",function(Et,gt){var pt=this;return new Re(function(mt,dt){ee(Fe,pt,mt,dt)}).then(Et,gt)},{unsafe:!0});try{delete it.constructor}catch(xt){}te&&te(it,We)}E({global:!0,wrap:!0,forced:Ce},{Promise:Re}),re(Re,Be,!1,!0),ae(Be)},{"../internals/a-callable":95,"../internals/an-instance":100,"../internals/engine-is-node":143,"../internals/export":149,"../internals/function-call":155,"../internals/global":163,"../internals/host-report-errors":166,"../internals/internal-state":173,"../internals/is-callable":176,"../internals/is-object":180,"../internals/is-pure":181,"../internals/microtask":189,"../internals/new-promise-capability":193,"../internals/object-set-prototype-of":208,"../internals/perform":214,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/queue":220,"../internals/redefine":222,"../internals/redefine-all":221,"../internals/set-species":233,"../internals/set-to-string-tag":234,"../internals/species-constructor":238,"../internals/task":243}],295:[function(y,Se,ye){y("../modules/es.promise.constructor"),y("../modules/es.promise.all"),y("../modules/es.promise.catch"),y("../modules/es.promise.race"),y("../modules/es.promise.reject"),y("../modules/es.promise.resolve")},{"../modules/es.promise.all":292,"../modules/es.promise.catch":293,"../modules/es.promise.constructor":294,"../modules/es.promise.race":296,"../modules/es.promise.reject":297,"../modules/es.promise.resolve":298}],296:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),se=y("../internals/new-promise-capability"),ee=y("../internals/perform"),de=y("../internals/iterate"),x=y("../internals/promise-statics-incorrect-iteration");E({target:"Promise",stat:!0,forced:x},{race:function(re){var ae=this,ue=se.f(ae),he=ue.reject,pe=ee(function(){var me=oe(ae.resolve);de(re,function(fe){z(me,ae,fe).then(ue.resolve,he)})});return pe.error&&he(pe.value),ue.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],297:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/new-promise-capability"),se=y("../internals/promise-constructor-detection").CONSTRUCTOR;E({target:"Promise",stat:!0,forced:se},{reject:function(de){var x=oe.f(this);return z(x.reject,void 0,de),x.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/is-pure"),se=y("../internals/promise-native-constructor"),ee=y("../internals/promise-constructor-detection").CONSTRUCTOR,de=y("../internals/promise-resolve"),x=z("Promise"),te=oe&&!ee;E({target:"Promise",stat:!0,forced:oe||ee},{resolve:function(ae){return de(te&&this===x?se:this,ae)}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/promise-resolve":217}],299:[function(y,Se,ye){var E=y("../internals/descriptors"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),se=y("../internals/is-forced"),ee=y("../internals/inherit-if-required"),de=y("../internals/create-non-enumerable-property"),x=y("../internals/object-get-own-property-names").f,te=y("../internals/object-is-prototype-of"),re=y("../internals/is-regexp"),ae=y("../internals/to-string"),ue=y("../internals/regexp-get-flags"),he=y("../internals/regexp-sticky-helpers"),pe=y("../internals/proxy-accessor"),me=y("../internals/redefine"),fe=y("../internals/fails"),ve=y("../internals/has-own-property"),ke=y("../internals/internal-state").enforce,Te=y("../internals/set-species"),Pe=y("../internals/well-known-symbol"),_e=y("../internals/regexp-unsupported-dot-all"),be=y("../internals/regexp-unsupported-ncg"),xe=Pe("match"),Ae=z.RegExp,Me=Ae.prototype,Be=z.SyntaxError,Ce=oe(Me.exec),De=oe("".charAt),He=oe("".replace),Ke=oe("".indexOf),Ye=oe("".slice),it=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Re=/a/g,We=/a/g,et=new Ae(Re)!==Re,nt=he.MISSED_STICKY,rt=he.UNSUPPORTED_Y,Xe=E&&(!et||nt||_e||be||fe(function(){return We[xe]=!1,Ae(Re)!=Re||Ae(We)==We||Ae(Re,"i")!="/a/i"})),Je=function(st){for(var $e=st.length,Ne=0,je="",ne=!1,ce;Ne<=$e;Ne++){if(ce=De(st,Ne),ce==="\\"){je+=ce+De(st,++Ne);continue}!ne&&ce==="."?je+="[\\s\\S]":(ce==="["?ne=!0:ce==="]"&&(ne=!1),je+=ce)}return je},Ve=function(st){for(var $e=st.length,Ne=0,je="",ne=[],ce={},Ie=!1,Fe=!1,we=0,Ee="",Oe;Ne<=$e;Ne++){if(Oe=De(st,Ne),Oe==="\\")Oe=Oe+De(st,++Ne);else if(Oe==="]")Ie=!1;else if(!Ie)switch(!0){case Oe==="[":Ie=!0;break;case Oe==="(":Ce(it,Ye(st,Ne+1))&&(Ne+=2,Fe=!0),je+=Oe,we++;continue;case(Oe===">"&&Fe):if(Ee===""||ve(ce,Ee))throw new Be("Invalid capture group name");ce[Ee]=!0,ne[ne.length]=[Ee,we],Fe=!1,Ee="";continue}Fe?Ee+=Oe:je+=Oe}return[je,ne]};if(se("RegExp",Xe)){for(var at=function($e,Ne){var je=te(Me,this),ne=re($e),ce=Ne===void 0,Ie=[],Fe=$e,we,Ee,Oe,Ue,tt,Ge;if(!je&&ne&&ce&&$e.constructor===at)return $e;if((ne||te(Me,$e))&&($e=$e.source,ce&&(Ne=ue(Fe))),$e=$e===void 0?"":ae($e),Ne=Ne===void 0?"":ae(Ne),Fe=$e,_e&&"dotAll"in Re&&(Ee=!!Ne&&Ke(Ne,"s")>-1,Ee&&(Ne=He(Ne,/s/g,""))),we=Ne,nt&&"sticky"in Re&&(Oe=!!Ne&&Ke(Ne,"y")>-1,Oe&&rt&&(Ne=He(Ne,/y/g,""))),be&&(Ue=Ve($e),$e=Ue[0],Ie=Ue[1]),tt=ee(Ae($e,Ne),je?this:Me,at),(Ee||Oe||Ie.length)&&(Ge=ke(tt),Ee&&(Ge.dotAll=!0,Ge.raw=at(Je($e),we)),Oe&&(Ge.sticky=!0),Ie.length&&(Ge.groups=Ie)),$e!==Fe)try{de(tt,"source",Fe===""?"(?:)":Fe)}catch(ft){}return tt},Qe=x(Ae),ut=0;Qe.length>ut;)pe(at,Ae,Qe[ut++]);Me.constructor=at,at.prototype=Me,me(z,"RegExp",at)}Te("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/regexp-exec");E({target:"RegExp",proto:!0,forced:/./.exec!==z},{exec:z})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(y,Se,ye){"use strict";var E=y("../internals/function-name").PROPER,z=y("../internals/redefine"),oe=y("../internals/an-object"),se=y("../internals/to-string"),ee=y("../internals/fails"),de=y("../internals/regexp-get-flags"),x="toString",te=RegExp.prototype,re=te[x],ae=ee(function(){return re.call({source:"a",flags:"b"})!="/a/b"}),ue=E&&re.name!=x;(ae||ue)&&z(RegExp.prototype,x,function(){var pe=oe(this),me=se(pe.source),fe=se(de(pe));return"/"+me+"/"+fe},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/not-a-regexp"),se=y("../internals/require-object-coercible"),ee=y("../internals/to-string"),de=y("../internals/correct-is-regexp-logic"),x=z("".indexOf);E({target:"String",proto:!0,forced:!de("includes")},{includes:function(re){return!!~x(ee(se(this)),ee(oe(re)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(y,Se,ye){"use strict";var E=y("../internals/string-multibyte").charAt,z=y("../internals/to-string"),oe=y("../internals/internal-state"),se=y("../internals/define-iterator"),ee="String Iterator",de=oe.set,x=oe.getterFor(ee);se(String,"String",function(te){de(this,{type:ee,string:z(te),index:0})},function(){var re=x(this),ae=re.string,ue=re.index,he;return ue>=ae.length?{value:void 0,done:!0}:(he=E(ae,ue),re.index+=he.length,{value:he,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(y,Se,ye){"use strict";var E=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),oe=y("../internals/an-object"),se=y("../internals/to-length"),ee=y("../internals/to-string"),de=y("../internals/require-object-coercible"),x=y("../internals/get-method"),te=y("../internals/advance-string-index"),re=y("../internals/regexp-exec-abstract");z("match",function(ae,ue,he){return[function(me){var fe=de(this),ve=me==null?void 0:x(me,ae);return ve?E(ve,me,fe):new RegExp(me)[ae](ee(fe))},function(pe){var me=oe(this),fe=ee(pe),ve=he(ue,me,fe);if(ve.done)return ve.value;if(!me.global)return re(me,fe);var ke=me.unicode;me.lastIndex=0;for(var Te=[],Pe=0,_e;(_e=re(me,fe))!==null;){var be=ee(_e[0]);Te[Pe]=be,be===""&&(me.lastIndex=te(fe,se(me.lastIndex),ke)),Pe++}return Pe===0?null:Te}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(y,Se,ye){"use strict";var E=y("../internals/function-apply"),z=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),se=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/fails"),de=y("../internals/an-object"),x=y("../internals/is-callable"),te=y("../internals/to-integer-or-infinity"),re=y("../internals/to-length"),ae=y("../internals/to-string"),ue=y("../internals/require-object-coercible"),he=y("../internals/advance-string-index"),pe=y("../internals/get-method"),me=y("../internals/get-substitution"),fe=y("../internals/regexp-exec-abstract"),ve=y("../internals/well-known-symbol"),ke=ve("replace"),Te=Math.max,Pe=Math.min,_e=oe([].concat),be=oe([].push),xe=oe("".indexOf),Ae=oe("".slice),Me=function(He){return He===void 0?He:String(He)},Be=function(){return"a".replace(/./,"$0")==="$0"}(),Ce=function(){return/./[ke]?/./[ke]("a","$0")==="":!1}(),De=!ee(function(){var He=/./;return He.exec=function(){var Ke=[];return Ke.groups={a:"7"},Ke},"".replace(He,"$<a>")!=="7"});se("replace",function(He,Ke,Ye){var it=Ce?"$":"$0";return[function(We,et){var nt=ue(this),rt=We==null?void 0:pe(We,ke);return rt?z(rt,We,nt,et):z(Ke,ae(nt),We,et)},function(Re,We){var et=de(this),nt=ae(Re);if(typeof We=="string"&&xe(We,it)===-1&&xe(We,"$<")===-1){var rt=Ye(Ke,et,nt,We);if(rt.done)return rt.value}var Xe=x(We);Xe||(We=ae(We));var Je=et.global;if(Je){var Ve=et.unicode;et.lastIndex=0}for(var at=[];;){var Qe=fe(et,nt);if(Qe===null||(be(at,Qe),!Je))break;var ut=ae(Qe[0]);ut===""&&(et.lastIndex=he(nt,re(et.lastIndex),Ve))}for(var st="",$e=0,Ne=0;Ne<at.length;Ne++){Qe=at[Ne];for(var je=ae(Qe[0]),ne=Te(Pe(te(Qe.index),nt.length),0),ce=[],Ie=1;Ie<Qe.length;Ie++)be(ce,Me(Qe[Ie]));var Fe=Qe.groups;if(Xe){var we=_e([je],ce,ne,nt);Fe!==void 0&&be(we,Fe);var Ee=ae(E(We,void 0,we))}else Ee=me(je,nt,ne,ce,Fe,We);ne>=$e&&(st+=Ae(nt,$e,ne)+Ee,$e=ne+je.length)}return st+Ae(nt,$e)}]},!De||!Be||Ce)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/get-substitution":162,"../internals/is-callable":176,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-length":249,"../internals/to-string":256,"../internals/well-known-symbol":268}],306:[function(y,Se,ye){"use strict";var E=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),oe=y("../internals/an-object"),se=y("../internals/require-object-coercible"),ee=y("../internals/same-value"),de=y("../internals/to-string"),x=y("../internals/get-method"),te=y("../internals/regexp-exec-abstract");z("search",function(re,ae,ue){return[function(pe){var me=se(this),fe=pe==null?void 0:x(pe,re);return fe?E(fe,pe,me):new RegExp(pe)[re](de(me))},function(he){var pe=oe(this),me=de(he),fe=ue(ae,pe,me);if(fe.done)return fe.value;var ve=pe.lastIndex;ee(ve,0)||(pe.lastIndex=0);var ke=te(pe,me);return ee(pe.lastIndex,ve)||(pe.lastIndex=ve),ke===null?-1:ke.index}]})},{"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/same-value":231,"../internals/to-string":256}],307:[function(y,Se,ye){"use strict";var E=y("../internals/function-apply"),z=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),se=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/is-regexp"),de=y("../internals/an-object"),x=y("../internals/require-object-coercible"),te=y("../internals/species-constructor"),re=y("../internals/advance-string-index"),ae=y("../internals/to-length"),ue=y("../internals/to-string"),he=y("../internals/get-method"),pe=y("../internals/array-slice-simple"),me=y("../internals/regexp-exec-abstract"),fe=y("../internals/regexp-exec"),ve=y("../internals/regexp-sticky-helpers"),ke=y("../internals/fails"),Te=ve.UNSUPPORTED_Y,Pe=4294967295,_e=Math.min,be=[].push,xe=oe(/./.exec),Ae=oe(be),Me=oe("".slice),Be=!ke(function(){var Ce=/(?:)/,De=Ce.exec;Ce.exec=function(){return De.apply(this,arguments)};var He="ab".split(Ce);return He.length!==2||He[0]!=="a"||He[1]!=="b"});se("split",function(Ce,De,He){var Ke;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Ke=function(Ye,it){var Re=ue(x(this)),We=it===void 0?Pe:it>>>0;if(We===0)return[];if(Ye===void 0)return[Re];if(!ee(Ye))return z(De,Re,Ye,We);for(var et=[],nt=(Ye.ignoreCase?"i":"")+(Ye.multiline?"m":"")+(Ye.unicode?"u":"")+(Ye.sticky?"y":""),rt=0,Xe=new RegExp(Ye.source,nt+"g"),Je,Ve,at;(Je=z(fe,Xe,Re))&&(Ve=Xe.lastIndex,!(Ve>rt&&(Ae(et,Me(Re,rt,Je.index)),Je.length>1&&Je.index<Re.length&&E(be,et,pe(Je,1)),at=Je[0].length,rt=Ve,et.length>=We)));)Xe.lastIndex===Je.index&&Xe.lastIndex++;return rt===Re.length?(at||!xe(Xe,""))&&Ae(et,""):Ae(et,Me(Re,rt)),et.length>We?pe(et,0,We):et}:"0".split(void 0,0).length?Ke=function(Ye,it){return Ye===void 0&&it===0?[]:z(De,this,Ye,it)}:Ke=De,[function(it,Re){var We=x(this),et=it==null?void 0:he(it,Ce);return et?z(et,it,We,Re):z(Ke,ue(We),it,Re)},function(Ye,it){var Re=de(this),We=ue(Ye),et=He(Ke,Re,We,it,Ke!==De);if(et.done)return et.value;var nt=te(Re,RegExp),rt=Re.unicode,Xe=(Re.ignoreCase?"i":"")+(Re.multiline?"m":"")+(Re.unicode?"u":"")+(Te?"g":"y"),Je=new nt(Te?"^(?:"+Re.source+")":Re,Xe),Ve=it===void 0?Pe:it>>>0;if(Ve===0)return[];if(We.length===0)return me(Je,We)===null?[We]:[];for(var at=0,Qe=0,ut=[];Qe<We.length;){Je.lastIndex=Te?0:Qe;var st=me(Je,Te?Me(We,Qe):We),$e;if(st===null||($e=_e(ae(Je.lastIndex+(Te?Qe:0)),We.length))===at)Qe=re(We,Qe,rt);else{if(Ae(ut,Me(We,at,Qe)),ut.length===Ve)return ut;for(var Ne=1;Ne<=st.length-1;Ne++)if(Ae(ut,st[Ne]),ut.length===Ve)return ut;Qe=at=$e}}return Ae(ut,Me(We,at)),ut}]},!Be,Te)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/string-trim").trim,oe=y("../internals/string-trim-forced");E({target:"String",proto:!0,forced:oe("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/function-call"),se=y("../internals/function-uncurry-this"),ee=y("../internals/is-pure"),de=y("../internals/descriptors"),x=y("../internals/native-symbol"),te=y("../internals/fails"),re=y("../internals/has-own-property"),ae=y("../internals/object-is-prototype-of"),ue=y("../internals/an-object"),he=y("../internals/to-indexed-object"),pe=y("../internals/to-property-key"),me=y("../internals/to-string"),fe=y("../internals/create-property-descriptor"),ve=y("../internals/object-create"),ke=y("../internals/object-keys"),Te=y("../internals/object-get-own-property-names"),Pe=y("../internals/object-get-own-property-names-external"),_e=y("../internals/object-get-own-property-symbols"),be=y("../internals/object-get-own-property-descriptor"),xe=y("../internals/object-define-property"),Ae=y("../internals/object-define-properties"),Me=y("../internals/object-property-is-enumerable"),Be=y("../internals/redefine"),Ce=y("../internals/shared"),De=y("../internals/shared-key"),He=y("../internals/hidden-keys"),Ke=y("../internals/uid"),Ye=y("../internals/well-known-symbol"),it=y("../internals/well-known-symbol-wrapped"),Re=y("../internals/define-well-known-symbol"),We=y("../internals/symbol-define-to-primitive"),et=y("../internals/set-to-string-tag"),nt=y("../internals/internal-state"),rt=y("../internals/array-iteration").forEach,Xe=De("hidden"),Je="Symbol",Ve="prototype",at=nt.set,Qe=nt.getterFor(Je),ut=Object[Ve],st=z.Symbol,$e=st&&st[Ve],Ne=z.TypeError,je=z.QObject,ne=be.f,ce=xe.f,Ie=Pe.f,Fe=Me.f,we=se([].push),Ee=Ce("symbols"),Oe=Ce("op-symbols"),Ue=Ce("wks"),tt=!je||!je[Ve]||!je[Ve].findChild,Ge=de&&te(function(){return ve(ce({},"a",{get:function(){return ce(this,"a",{value:7}).a}})).a!=7})?function(mt,dt,bt){var wt=ne(ut,dt);wt&&delete ut[dt],ce(mt,dt,bt),wt&&mt!==ut&&ce(ut,dt,wt)}:ce,ft=function(mt,dt){var bt=Ee[mt]=ve($e);return at(bt,{type:Je,tag:mt,description:dt}),de||(bt.description=dt),bt},ct=function(dt,bt,wt){dt===ut&&ct(Oe,bt,wt),ue(dt);var At=pe(bt);return ue(wt),re(Ee,At)?(wt.enumerable?(re(dt,Xe)&&dt[Xe][At]&&(dt[Xe][At]=!1),wt=ve(wt,{enumerable:fe(0,!1)})):(re(dt,Xe)||ce(dt,Xe,fe(1,{})),dt[Xe][At]=!0),Ge(dt,At,wt)):ce(dt,At,wt)},vt=function(dt,bt){ue(dt);var wt=he(bt),At=ke(wt).concat(pt(wt));return rt(At,function(jt){(!de||oe(xt,wt,jt))&&ct(dt,jt,wt[jt])}),dt},kt=function(dt,bt){return bt===void 0?ve(dt):vt(ve(dt),bt)},xt=function(dt){var bt=pe(dt),wt=oe(Fe,this,bt);return this===ut&&re(Ee,bt)&&!re(Oe,bt)?!1:wt||!re(this,bt)||!re(Ee,bt)||re(this,Xe)&&this[Xe][bt]?wt:!0},Et=function(dt,bt){var wt=he(dt),At=pe(bt);if(!(wt===ut&&re(Ee,At)&&!re(Oe,At))){var jt=ne(wt,At);return jt&&re(Ee,At)&&!(re(wt,Xe)&&wt[Xe][At])&&(jt.enumerable=!0),jt}},gt=function(dt){var bt=Ie(he(dt)),wt=[];return rt(bt,function(At){!re(Ee,At)&&!re(He,At)&&we(wt,At)}),wt},pt=function(mt){var dt=mt===ut,bt=Ie(dt?Oe:he(mt)),wt=[];return rt(bt,function(At){re(Ee,At)&&(!dt||re(ut,At))&&we(wt,Ee[At])}),wt};x||(st=function(){if(ae($e,this))throw Ne("Symbol is not a constructor");var dt=!arguments.length||arguments[0]===void 0?void 0:me(arguments[0]),bt=Ke(dt),wt=function(At){this===ut&&oe(wt,Oe,At),re(this,Xe)&&re(this[Xe],bt)&&(this[Xe][bt]=!1),Ge(this,bt,fe(1,At))};return de&&tt&&Ge(ut,bt,{configurable:!0,set:wt}),ft(bt,dt)},$e=st[Ve],Be($e,"toString",function(){return Qe(this).tag}),Be(st,"withoutSetter",function(mt){return ft(Ke(mt),mt)}),Me.f=xt,xe.f=ct,Ae.f=vt,be.f=Et,Te.f=Pe.f=gt,_e.f=pt,it.f=function(mt){return ft(Ye(mt),mt)},de&&(ce($e,"description",{configurable:!0,get:function(){return Qe(this).description}}),ee||Be(ut,"propertyIsEnumerable",xt,{unsafe:!0}))),E({global:!0,wrap:!0,forced:!x,sham:!x},{Symbol:st}),rt(ke(Ue),function(mt){Re(mt)}),E({target:Je,stat:!0,forced:!x},{useSetter:function(){tt=!0},useSimple:function(){tt=!1}}),E({target:"Object",stat:!0,forced:!x,sham:!de},{create:kt,defineProperty:ct,defineProperties:vt,getOwnPropertyDescriptor:Et}),E({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:gt}),We(),et(st,Je),He[Xe]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(y,Se,ye){"use strict";var E=y("../internals/export"),z=y("../internals/descriptors"),oe=y("../internals/global"),se=y("../internals/function-uncurry-this"),ee=y("../internals/has-own-property"),de=y("../internals/is-callable"),x=y("../internals/object-is-prototype-of"),te=y("../internals/to-string"),re=y("../internals/object-define-property").f,ae=y("../internals/copy-constructor-properties"),ue=oe.Symbol,he=ue&&ue.prototype;if(z&&de(ue)&&(!("description"in he)||ue().description!==void 0)){var pe={},me=function(){var xe=arguments.length<1||arguments[0]===void 0?void 0:te(arguments[0]),Ae=x(he,this)?new ue(xe):xe===void 0?ue():ue(xe);return xe===""&&(pe[Ae]=!0),Ae};ae(me,ue),me.prototype=he,he.constructor=me;var fe=String(ue("test"))=="Symbol(test)",ve=se(he.toString),ke=se(he.valueOf),Te=/^Symbol\((.*)\)[^)]+$/,Pe=se("".replace),_e=se("".slice);re(he,"description",{configurable:!0,get:function(){var xe=ke(this),Ae=ve(xe);if(ee(pe,xe))return"";var Me=fe?_e(Ae,7,-1):Pe(Ae,Te,"$1");return Me===""?void 0:Me}}),E({global:!0,forced:!0},{Symbol:me})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/has-own-property"),se=y("../internals/to-string"),ee=y("../internals/shared"),de=y("../internals/native-symbol-registry"),x=ee("string-to-symbol-registry"),te=ee("symbol-to-string-registry");E({target:"Symbol",stat:!0,forced:!de},{for:function(re){var ae=se(re);if(oe(x,ae))return x[ae];var ue=z("Symbol")(ae);return x[ae]=ue,te[ue]=ae,ue}})},{"../internals/export":149,"../internals/get-built-in":158,"../internals/has-own-property":164,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/to-string":256}],312:[function(y,Se,ye){var E=y("../internals/define-well-known-symbol");E("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,Se,ye){y("../modules/es.symbol.constructor"),y("../modules/es.symbol.for"),y("../modules/es.symbol.key-for"),y("../modules/es.json.stringify"),y("../modules/es.object.get-own-property-symbols")},{"../modules/es.json.stringify":285,"../modules/es.object.get-own-property-symbols":289,"../modules/es.symbol.constructor":309,"../modules/es.symbol.for":311,"../modules/es.symbol.key-for":314}],314:[function(y,Se,ye){var E=y("../internals/export"),z=y("../internals/has-own-property"),oe=y("../internals/is-symbol"),se=y("../internals/try-to-string"),ee=y("../internals/shared"),de=y("../internals/native-symbol-registry"),x=ee("symbol-to-string-registry");E({target:"Symbol",stat:!0,forced:!de},{keyFor:function(re){if(!oe(re))throw TypeError(se(re)+" is not a symbol");if(z(x,re))return x[re]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(y,Se,ye){"use strict";var E=y("../internals/function-uncurry-this"),z=y("../internals/array-buffer-view-core"),oe=y("../internals/array-copy-within"),se=E(oe),ee=z.aTypedArray,de=z.exportTypedArrayMethod;de("copyWithin",function(te,re){return se(ee(this),te,re,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").every,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("every",function(de){return z(oe(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/function-call"),oe=y("../internals/array-fill"),se=E.aTypedArray,ee=E.exportTypedArrayMethod;ee("fill",function(x){var te=arguments.length;return z(oe,se(this),x,te>1?arguments[1]:void 0,te>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").filter,oe=y("../internals/typed-array-from-species-and-list"),se=E.aTypedArray,ee=E.exportTypedArrayMethod;ee("filter",function(x){var te=z(se(this),x,arguments.length>1?arguments[1]:void 0);return oe(this,te)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").findIndex,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("findIndex",function(de){return z(oe(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").find,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("find",function(de){return z(oe(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").forEach,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("forEach",function(de){z(oe(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").includes,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("includes",function(de){return z(oe(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").indexOf,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("indexOf",function(de){return z(oe(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,Se,ye){"use strict";var E=y("../internals/global"),z=y("../internals/fails"),oe=y("../internals/function-uncurry-this"),se=y("../internals/array-buffer-view-core"),ee=y("../modules/es.array.iterator"),de=y("../internals/well-known-symbol"),x=de("iterator"),te=E.Uint8Array,re=oe(ee.values),ae=oe(ee.keys),ue=oe(ee.entries),he=se.aTypedArray,pe=se.exportTypedArrayMethod,me=te&&te.prototype,fe=!z(function(){me[x].call([1])}),ve=!!me&&me.values&&me[x]===me.values&&me.values.name==="values",ke=function(){return re(he(this))};pe("entries",function(){return ue(he(this))},fe),pe("keys",function(){return ae(he(this))},fe),pe("values",ke,fe||!ve,{name:"values"}),pe(x,ke,fe||!ve,{name:"values"})},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],325:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/function-uncurry-this"),oe=E.aTypedArray,se=E.exportTypedArrayMethod,ee=z([].join);se("join",function(x){return ee(oe(this),x)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/function-apply"),oe=y("../internals/array-last-index-of"),se=E.aTypedArray,ee=E.exportTypedArrayMethod;ee("lastIndexOf",function(x){var te=arguments.length;return z(oe,se(this),te>1?[x,arguments[1]]:[x])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").map,oe=y("../internals/typed-array-species-constructor"),se=E.aTypedArray,ee=E.exportTypedArrayMethod;ee("map",function(x){return z(se(this),x,arguments.length>1?arguments[1]:void 0,function(te,re){return new(oe(te))(re)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").right,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("reduceRight",function(de){var x=arguments.length;return z(oe(this),de,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").left,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("reduce",function(de){var x=arguments.length;return z(oe(this),de,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=E.aTypedArray,oe=E.exportTypedArrayMethod,se=Math.floor;oe("reverse",function(){for(var de=this,x=z(de).length,te=se(x/2),re=0,ae;re<te;)ae=de[re],de[re++]=de[--x],de[x]=ae;return de})},{"../internals/array-buffer-view-core":103}],331:[function(y,Se,ye){"use strict";var E=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/array-buffer-view-core"),se=y("../internals/length-of-array-like"),ee=y("../internals/to-offset"),de=y("../internals/to-object"),x=y("../internals/fails"),te=E.RangeError,re=E.Int8Array,ae=re&&re.prototype,ue=ae&&ae.set,he=oe.aTypedArray,pe=oe.exportTypedArrayMethod,me=!x(function(){var ve=new Uint8ClampedArray(2);return z(ue,ve,{length:1,0:3},1),ve[1]!==3}),fe=me&&oe.NATIVE_ARRAY_BUFFER_VIEWS&&x(function(){var ve=new re(2);return ve.set(1),ve.set("2",1),ve[0]!==0||ve[1]!==2});pe("set",function(ke){he(this);var Te=ee(arguments.length>1?arguments[1]:void 0,1),Pe=de(ke);if(me)return z(ue,this,Pe,Te);var _e=this.length,be=se(Pe),xe=0;if(be+Te>_e)throw te("Wrong length");for(;xe<be;)this[Te+xe]=Pe[xe++]},!me||fe)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/typed-array-species-constructor"),oe=y("../internals/fails"),se=y("../internals/array-slice"),ee=E.aTypedArray,de=E.exportTypedArrayMethod,x=oe(function(){new Int8Array(1).slice()});de("slice",function(re,ae){for(var ue=se(ee(this),re,ae),he=z(this),pe=0,me=ue.length,fe=new he(me);me>pe;)fe[pe]=ue[pe++];return fe},x)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").some,oe=E.aTypedArray,se=E.exportTypedArrayMethod;se("some",function(de){return z(oe(this),de,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,Se,ye){"use strict";var E=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),se=y("../internals/a-callable"),ee=y("../internals/array-sort"),de=y("../internals/array-buffer-view-core"),x=y("../internals/engine-ff-version"),te=y("../internals/engine-is-ie-or-edge"),re=y("../internals/engine-v8-version"),ae=y("../internals/engine-webkit-version"),ue=de.aTypedArray,he=de.exportTypedArrayMethod,pe=E.Uint16Array,me=pe&&z(pe.prototype.sort),fe=!!me&&!(oe(function(){me(new pe(2),null)})&&oe(function(){me(new pe(2),{})})),ve=!!me&&!oe(function(){if(re)return re<74;if(x)return x<67;if(te)return!0;if(ae)return ae<602;var Te=new pe(516),Pe=Array(516),_e,be;for(_e=0;_e<516;_e++)be=_e%4,Te[_e]=515-_e,Pe[_e]=_e-2*be+3;for(me(Te,function(xe,Ae){return(xe/4|0)-(Ae/4|0)}),_e=0;_e<516;_e++)if(Te[_e]!==Pe[_e])return!0}),ke=function(Te){return function(Pe,_e){return Te!==void 0?+Te(Pe,_e)||0:_e!==_e?-1:Pe!==Pe?1:Pe===0&&_e===0?1/Pe>0&&1/_e<0?1:-1:Pe>_e}};he("sort",function(Pe){return Pe!==void 0&&se(Pe),ve?me(this,Pe):ee(ue(this),ke(Pe))},!ve||fe)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core"),z=y("../internals/to-length"),oe=y("../internals/to-absolute-index"),se=y("../internals/typed-array-species-constructor"),ee=E.aTypedArray,de=E.exportTypedArrayMethod;de("subarray",function(te,re){var ae=ee(this),ue=ae.length,he=oe(te,ue),pe=se(ae);return new pe(ae.buffer,ae.byteOffset+he*ae.BYTES_PER_ELEMENT,z((re===void 0?ue:oe(re,ue))-he))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(y,Se,ye){"use strict";var E=y("../internals/global"),z=y("../internals/function-apply"),oe=y("../internals/array-buffer-view-core"),se=y("../internals/fails"),ee=y("../internals/array-slice"),de=E.Int8Array,x=oe.aTypedArray,te=oe.exportTypedArrayMethod,re=[].toLocaleString,ae=!!de&&se(function(){re.call(new de(1))}),ue=se(function(){return[1,2].toLocaleString()!=new de([1,2]).toLocaleString()})||!se(function(){de.prototype.toLocaleString.call([1,2])});te("toLocaleString",function(){return z(re,ae?ee(x(this)):x(this),ee(arguments))},ue)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(y,Se,ye){"use strict";var E=y("../internals/array-buffer-view-core").exportTypedArrayMethod,z=y("../internals/fails"),oe=y("../internals/global"),se=y("../internals/function-uncurry-this"),ee=oe.Uint8Array,de=ee&&ee.prototype||{},x=[].toString,te=se([].join);z(function(){x.call({})})&&(x=function(){return te(this)});var re=de.toString!=x;E("toString",x,re)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(y,Se,ye){var E=y("../internals/typed-array-constructor");E("Uint8",function(z){return function(se,ee,de){return z(this,se,ee,de)}})},{"../internals/typed-array-constructor":258}],339:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/dom-iterables"),oe=y("../internals/dom-token-list-prototype"),se=y("../internals/array-for-each"),ee=y("../internals/create-non-enumerable-property"),de=function(te){if(te&&te.forEach!==se)try{ee(te,"forEach",se)}catch(re){te.forEach=se}};for(var x in z)z[x]&&de(E[x]&&E[x].prototype);de(oe)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(y,Se,ye){var E=y("../internals/global"),z=y("../internals/dom-iterables"),oe=y("../internals/dom-token-list-prototype"),se=y("../modules/es.array.iterator"),ee=y("../internals/create-non-enumerable-property"),de=y("../internals/well-known-symbol"),x=de("iterator"),te=de("toStringTag"),re=se.values,ae=function(he,pe){if(he){if(he[x]!==re)try{ee(he,x,re)}catch(fe){he[x]=re}if(he[te]||ee(he,te,pe),z[pe]){for(var me in se)if(he[me]!==se[me])try{ee(he,me,se[me])}catch(fe){he[me]=se[me]}}}};for(var ue in z)ae(E[ue]&&E[ue].prototype,ue);ae(oe,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(y,Se,ye){function E(ve){return Array.isArray?Array.isArray(ve):fe(ve)==="[object Array]"}ye.isArray=E;function z(ve){return typeof ve=="boolean"}ye.isBoolean=z;function oe(ve){return ve===null}ye.isNull=oe;function se(ve){return ve==null}ye.isNullOrUndefined=se;function ee(ve){return typeof ve=="number"}ye.isNumber=ee;function de(ve){return typeof ve=="string"}ye.isString=de;function x(ve){return typeof ve=="symbol"}ye.isSymbol=x;function te(ve){return ve===void 0}ye.isUndefined=te;function re(ve){return fe(ve)==="[object RegExp]"}ye.isRegExp=re;function ae(ve){return typeof ve=="object"&&ve!==null}ye.isObject=ae;function ue(ve){return fe(ve)==="[object Date]"}ye.isDate=ue;function he(ve){return fe(ve)==="[object Error]"||ve instanceof Error}ye.isError=he;function pe(ve){return typeof ve=="function"}ye.isFunction=pe;function me(ve){return ve===null||typeof ve=="boolean"||typeof ve=="number"||typeof ve=="string"||typeof ve=="symbol"||typeof ve=="undefined"}ye.isPrimitive=me,ye.isBuffer=y("buffer").Buffer.isBuffer;function fe(ve){return Object.prototype.toString.call(ve)}},{buffer:90}],342:[function(y,Se,ye){(function(E){"use strict";var z=function(){var x=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,te=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,re=/[^-+\dA-Z]/g;return function(ae,ue,he,pe){if(arguments.length===1&&de(ae)==="string"&&!/\d/.test(ae)&&(ue=ae,ae=void 0),ae=ae||new Date,ae instanceof Date||(ae=new Date(ae)),isNaN(ae))throw TypeError("Invalid date");ue=String(z.masks[ue]||ue||z.masks.default);var me=ue.slice(0,4);(me==="UTC:"||me==="GMT:")&&(ue=ue.slice(4),he=!0,me==="GMT:"&&(pe=!0));var fe=he?"getUTC":"get",ve=ae[fe+"Date"](),ke=ae[fe+"Day"](),Te=ae[fe+"Month"](),Pe=ae[fe+"FullYear"](),_e=ae[fe+"Hours"](),be=ae[fe+"Minutes"](),xe=ae[fe+"Seconds"](),Ae=ae[fe+"Milliseconds"](),Me=he?0:ae.getTimezoneOffset(),Be=se(ae),Ce=ee(ae),De={d:ve,dd:oe(ve),ddd:z.i18n.dayNames[ke],dddd:z.i18n.dayNames[ke+7],m:Te+1,mm:oe(Te+1),mmm:z.i18n.monthNames[Te],mmmm:z.i18n.monthNames[Te+12],yy:String(Pe).slice(2),yyyy:Pe,h:_e%12||12,hh:oe(_e%12||12),H:_e,HH:oe(_e),M:be,MM:oe(be),s:xe,ss:oe(xe),l:oe(Ae,3),L:oe(Math.round(Ae/10)),t:_e<12?"a":"p",tt:_e<12?"am":"pm",T:_e<12?"A":"P",TT:_e<12?"AM":"PM",Z:pe?"GMT":he?"UTC":(String(ae).match(te)||[""]).pop().replace(re,""),o:(Me>0?"-":"+")+oe(Math.floor(Math.abs(Me)/60)*100+Math.abs(Me)%60,4),S:["th","st","nd","rd"][ve%10>3?0:(ve%100-ve%10!=10)*ve%10],W:Be,N:Ce};return ue.replace(x,function(He){return He in De?De[He]:He.slice(1,He.length-1)})}}();z.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},z.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function oe(x,te){for(x=String(x),te=te||2;x.length<te;)x="0"+x;return x}function se(x){var te=new Date(x.getFullYear(),x.getMonth(),x.getDate());te.setDate(te.getDate()-(te.getDay()+6)%7+3);var re=new Date(te.getFullYear(),0,4);re.setDate(re.getDate()-(re.getDay()+6)%7+3);var ae=te.getTimezoneOffset()-re.getTimezoneOffset();te.setHours(te.getHours()-ae);var ue=(te-re)/(864e5*7);return 1+Math.floor(ue)}function ee(x){var te=x.getDay();return te===0&&(te=7),te}function de(x){return x===null?"null":x===void 0?"undefined":typeof x!="object"?typeof x:Array.isArray(x)?"array":{}.toString.call(x).slice(8,-1).toLowerCase()}typeof ze=="function"&&ze.amd?ze(function(){return z}):typeof ye=="object"?Se.exports=z:E.dateFormat=z})(this)},{}],343:[function(y,Se,ye){"use strict";var E=/["'&<>]/;Se.exports=z;function z(oe){var se=""+oe,ee=E.exec(se);if(!ee)return se;var de,x="",te=0,re=0;for(te=ee.index;te<se.length;te++){switch(se.charCodeAt(te)){case 34:de="&quot;";break;case 38:de="&amp;";break;case 39:de="&#39;";break;case 60:de="&lt;";break;case 62:de="&gt;";break;default:continue}re!==te&&(x+=se.substring(re,te)),re=te+1,x+=de}return re!==te?x+se.substring(re,te):x}},{}],344:[function(y,Se,ye){"use strict";var E=typeof Reflect=="object"?Reflect:null,z=E&&typeof E.apply=="function"?E.apply:function(xe,Ae,Me){return Function.prototype.apply.call(xe,Ae,Me)},oe;E&&typeof E.ownKeys=="function"?oe=E.ownKeys:Object.getOwnPropertySymbols?oe=function(xe){return Object.getOwnPropertyNames(xe).concat(Object.getOwnPropertySymbols(xe))}:oe=function(xe){return Object.getOwnPropertyNames(xe)};function se(be){console&&console.warn&&console.warn(be)}var ee=Number.isNaN||function(xe){return xe!==xe};function de(){de.init.call(this)}Se.exports=de,Se.exports.once=Te,de.EventEmitter=de,de.prototype._events=void 0,de.prototype._eventsCount=0,de.prototype._maxListeners=void 0;var x=10;function te(be){if(typeof be!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof be)}Object.defineProperty(de,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(be){if(typeof be!="number"||be<0||ee(be))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+be+".");x=be}}),de.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},de.prototype.setMaxListeners=function(xe){if(typeof xe!="number"||xe<0||ee(xe))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+xe+".");return this._maxListeners=xe,this};function re(be){return be._maxListeners===void 0?de.defaultMaxListeners:be._maxListeners}de.prototype.getMaxListeners=function(){return re(this)},de.prototype.emit=function(xe){for(var Ae=[],Me=1;Me<arguments.length;Me++)Ae.push(arguments[Me]);var Be=xe==="error",Ce=this._events;if(Ce!==void 0)Be=Be&&Ce.error===void 0;else if(!Be)return!1;if(Be){var De;if(Ae.length>0&&(De=Ae[0]),De instanceof Error)throw De;var He=new Error("Unhandled error."+(De?" ("+De.message+")":""));throw He.context=De,He}var Ke=Ce[xe];if(Ke===void 0)return!1;if(typeof Ke=="function")z(Ke,this,Ae);else for(var Ye=Ke.length,it=fe(Ke,Ye),Me=0;Me<Ye;++Me)z(it[Me],this,Ae);return!0};function ae(be,xe,Ae,Me){var Be,Ce,De;if(te(Ae),Ce=be._events,Ce===void 0?(Ce=be._events=Object.create(null),be._eventsCount=0):(Ce.newListener!==void 0&&(be.emit("newListener",xe,Ae.listener?Ae.listener:Ae),Ce=be._events),De=Ce[xe]),De===void 0)De=Ce[xe]=Ae,++be._eventsCount;else if(typeof De=="function"?De=Ce[xe]=Me?[Ae,De]:[De,Ae]:Me?De.unshift(Ae):De.push(Ae),Be=re(be),Be>0&&De.length>Be&&!De.warned){De.warned=!0;var He=new Error("Possible EventEmitter memory leak detected. "+De.length+" "+String(xe)+" listeners added. Use emitter.setMaxListeners() to increase limit");He.name="MaxListenersExceededWarning",He.emitter=be,He.type=xe,He.count=De.length,se(He)}return be}de.prototype.addListener=function(xe,Ae){return ae(this,xe,Ae,!1)},de.prototype.on=de.prototype.addListener,de.prototype.prependListener=function(xe,Ae){return ae(this,xe,Ae,!0)};function ue(){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 he(be,xe,Ae){var Me={fired:!1,wrapFn:void 0,target:be,type:xe,listener:Ae},Be=ue.bind(Me);return Be.listener=Ae,Me.wrapFn=Be,Be}de.prototype.once=function(xe,Ae){return te(Ae),this.on(xe,he(this,xe,Ae)),this},de.prototype.prependOnceListener=function(xe,Ae){return te(Ae),this.prependListener(xe,he(this,xe,Ae)),this},de.prototype.removeListener=function(xe,Ae){var Me,Be,Ce,De,He;if(te(Ae),Be=this._events,Be===void 0)return this;if(Me=Be[xe],Me===void 0)return this;if(Me===Ae||Me.listener===Ae)--this._eventsCount===0?this._events=Object.create(null):(delete Be[xe],Be.removeListener&&this.emit("removeListener",xe,Me.listener||Ae));else if(typeof Me!="function"){for(Ce=-1,De=Me.length-1;De>=0;De--)if(Me[De]===Ae||Me[De].listener===Ae){He=Me[De].listener,Ce=De;break}if(Ce<0)return this;Ce===0?Me.shift():ve(Me,Ce),Me.length===1&&(Be[xe]=Me[0]),Be.removeListener!==void 0&&this.emit("removeListener",xe,He||Ae)}return this},de.prototype.off=de.prototype.removeListener,de.prototype.removeAllListeners=function(xe){var Ae,Me,Be;if(Me=this._events,Me===void 0)return this;if(Me.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Me[xe]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Me[xe]),this;if(arguments.length===0){var Ce=Object.keys(Me),De;for(Be=0;Be<Ce.length;++Be)De=Ce[Be],De!=="removeListener"&&this.removeAllListeners(De);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ae=Me[xe],typeof Ae=="function")this.removeListener(xe,Ae);else if(Ae!==void 0)for(Be=Ae.length-1;Be>=0;Be--)this.removeListener(xe,Ae[Be]);return this};function pe(be,xe,Ae){var Me=be._events;if(Me===void 0)return[];var Be=Me[xe];return Be===void 0?[]:typeof Be=="function"?Ae?[Be.listener||Be]:[Be]:Ae?ke(Be):fe(Be,Be.length)}de.prototype.listeners=function(xe){return pe(this,xe,!0)},de.prototype.rawListeners=function(xe){return pe(this,xe,!1)},de.listenerCount=function(be,xe){return typeof be.listenerCount=="function"?be.listenerCount(xe):me.call(be,xe)},de.prototype.listenerCount=me;function me(be){var xe=this._events;if(xe!==void 0){var Ae=xe[be];if(typeof Ae=="function")return 1;if(Ae!==void 0)return Ae.length}return 0}de.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function fe(be,xe){for(var Ae=new Array(xe),Me=0;Me<xe;++Me)Ae[Me]=be[Me];return Ae}function ve(be,xe){for(;xe+1<be.length;xe++)be[xe]=be[xe+1];be.pop()}function ke(be){for(var xe=new Array(be.length),Ae=0;Ae<xe.length;++Ae)xe[Ae]=be[Ae].listener||be[Ae];return xe}function Te(be,xe){return new Promise(function(Ae,Me){function Be(De){be.removeListener(xe,Ce),Me(De)}function Ce(){typeof be.removeListener=="function"&&be.removeListener("error",Be),Ae([].slice.call(arguments))}_e(be,xe,Ce,{once:!0}),xe!=="error"&&Pe(be,Be,{once:!0})})}function Pe(be,xe,Ae){typeof be.on=="function"&&_e(be,"error",xe,Ae)}function _e(be,xe,Ae,Me){if(typeof be.on=="function")Me.once?be.once(xe,Ae):be.on(xe,Ae);else if(typeof be.addEventListener=="function")be.addEventListener(xe,function Be(Ce){Me.once&&be.removeEventListener(xe,Be),Ae(Ce)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof be)}},{}],345:[function(y,Se,ye){"use strict";var E=y("is-callable"),z=Object.prototype.toString,oe=Object.prototype.hasOwnProperty,se=function(re,ae,ue){for(var he=0,pe=re.length;he<pe;he++)oe.call(re,he)&&(ue==null?ae(re[he],he,re):ae.call(ue,re[he],he,re))},ee=function(re,ae,ue){for(var he=0,pe=re.length;he<pe;he++)ue==null?ae(re.charAt(he),he,re):ae.call(ue,re.charAt(he),he,re)},de=function(re,ae,ue){for(var he in re)oe.call(re,he)&&(ue==null?ae(re[he],he,re):ae.call(ue,re[he],he,re))},x=function(re,ae,ue){if(!E(ae))throw new TypeError("iterator must be a function");var he;arguments.length>=3&&(he=ue),z.call(re)==="[object Array]"?se(re,ae,he):typeof re=="string"?ee(re,ae,he):de(re,ae,he)};Se.exports=x},{"is-callable":367}],346:[function(y,Se,ye){"use strict";var E="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,oe=Object.prototype.toString,se="[object Function]";Se.exports=function(de){var x=this;if(typeof x!="function"||oe.call(x)!==se)throw new TypeError(E+x);for(var te=z.call(arguments,1),re,ae=function(){if(this instanceof re){var fe=x.apply(this,te.concat(z.call(arguments)));return Object(fe)===fe?fe:this}else return x.apply(de,te.concat(z.call(arguments)))},ue=Math.max(0,x.length-te.length),he=[],pe=0;pe<ue;pe++)he.push("$"+pe);if(re=Function("binder","return function ("+he.join(",")+"){ return binder.apply(this,arguments); }")(ae),x.prototype){var me=function(){};me.prototype=x.prototype,re.prototype=new me,me.prototype=null}return re}},{}],347:[function(y,Se,ye){"use strict";var E=y("./implementation");Se.exports=Function.prototype.bind||E},{"./implementation":346}],348:[function(y,Se,ye){"use strict";var E,z=SyntaxError,oe=Function,se=TypeError,ee=function(Ke){try{return oe('"use strict"; return ('+Ke+").constructor;")()}catch(Ye){}},de=Object.getOwnPropertyDescriptor;if(de)try{de({},"")}catch(Ke){de=null}var x=function(){throw new se},te=de?function(){try{return arguments.callee,x}catch(Ke){try{return de(arguments,"callee").get}catch(Ye){return x}}}():x,re=y("has-symbols")(),ae=y("has-proto")(),ue=Object.getPrototypeOf||(ae?function(Ke){return Ke.__proto__}:null),he={},pe=typeof Uint8Array=="undefined"||!ue?E:ue(Uint8Array),me={"%AggregateError%":typeof AggregateError=="undefined"?E:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?E:ArrayBuffer,"%ArrayIteratorPrototype%":re&&ue?ue([][Symbol.iterator]()):E,"%AsyncFromSyncIteratorPrototype%":E,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics=="undefined"?E:Atomics,"%BigInt%":typeof BigInt=="undefined"?E:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?E:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?E:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?E:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?E:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?E:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?E:FinalizationRegistry,"%Function%":oe,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array=="undefined"?E:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?E:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?E:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&ue?ue(ue([][Symbol.iterator]())):E,"%JSON%":typeof JSON=="object"?JSON:E,"%Map%":typeof Map=="undefined"?E:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re||!ue?E:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?E:Promise,"%Proxy%":typeof Proxy=="undefined"?E:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?E:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?E:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re||!ue?E:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?E:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&ue?ue(""[Symbol.iterator]()):E,"%Symbol%":re?Symbol:E,"%SyntaxError%":z,"%ThrowTypeError%":te,"%TypedArray%":pe,"%TypeError%":se,"%Uint8Array%":typeof Uint8Array=="undefined"?E:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?E:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?E:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?E:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?E:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?E:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?E:WeakSet};if(ue)try{null.error}catch(Ke){var fe=ue(ue(Ke));me["%Error.prototype%"]=fe}var ve=function Ke(Ye){var it;if(Ye==="%AsyncFunction%")it=ee("async function () {}");else if(Ye==="%GeneratorFunction%")it=ee("function* () {}");else if(Ye==="%AsyncGeneratorFunction%")it=ee("async function* () {}");else if(Ye==="%AsyncGenerator%"){var Re=Ke("%AsyncGeneratorFunction%");Re&&(it=Re.prototype)}else if(Ye==="%AsyncIteratorPrototype%"){var We=Ke("%AsyncGenerator%");We&&ue&&(it=ue(We.prototype))}return me[Ye]=it,it},ke={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Te=y("function-bind"),Pe=y("has"),_e=Te.call(Function.call,Array.prototype.concat),be=Te.call(Function.apply,Array.prototype.splice),xe=Te.call(Function.call,String.prototype.replace),Ae=Te.call(Function.call,String.prototype.slice),Me=Te.call(Function.call,RegExp.prototype.exec),Be=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ce=/\\(\\)?/g,De=function(Ye){var it=Ae(Ye,0,1),Re=Ae(Ye,-1);if(it==="%"&&Re!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(Re==="%"&&it!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var We=[];return xe(Ye,Be,function(et,nt,rt,Xe){We[We.length]=rt?xe(Xe,Ce,"$1"):nt||et}),We},He=function(Ye,it){var Re=Ye,We;if(Pe(ke,Re)&&(We=ke[Re],Re="%"+We[0]+"%"),Pe(me,Re)){var et=me[Re];if(et===he&&(et=ve(Re)),typeof et=="undefined"&&!it)throw new se("intrinsic "+Ye+" exists, but is not available. Please file an issue!");return{alias:We,name:Re,value:et}}throw new z("intrinsic "+Ye+" does not exist!")};Se.exports=function(Ye,it){if(typeof Ye!="string"||Ye.length===0)throw new se("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof it!="boolean")throw new se('"allowMissing" argument must be a boolean');if(Me(/^%?[^%]*%?$/,Ye)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Re=De(Ye),We=Re.length>0?Re[0]:"",et=He("%"+We+"%",it),nt=et.name,rt=et.value,Xe=!1,Je=et.alias;Je&&(We=Je[0],be(Re,_e([0,1],Je)));for(var Ve=1,at=!0;Ve<Re.length;Ve+=1){var Qe=Re[Ve],ut=Ae(Qe,0,1),st=Ae(Qe,-1);if((ut==='"'||ut==="'"||ut==="`"||st==='"'||st==="'"||st==="`")&&ut!==st)throw new z("property names with quotes must have matching quotes");if((Qe==="constructor"||!at)&&(Xe=!0),We+="."+Qe,nt="%"+We+"%",Pe(me,nt))rt=me[nt];else if(rt!=null){if(!(Qe in rt)){if(!it)throw new se("base intrinsic for "+Ye+" exists, but the property is not available.");return}if(de&&Ve+1>=Re.length){var $e=de(rt,Qe);at=!!$e,at&&"get"in $e&&!("originalValue"in $e.get)?rt=$e.get:rt=rt[Qe]}else at=Pe(rt,Qe),rt=rt[Qe];at&&!Xe&&(me[nt]=rt)}}return rt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,Se,ye){"use strict";var E=y("get-intrinsic"),z=E("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(oe){z=null}Se.exports=z},{"get-intrinsic":348}],350:[function(y,Se,ye){"use strict";var E={foo:{}},z=Object;Se.exports=function(){return{__proto__:E}.foo===E.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(y,Se,ye){"use strict";var E=typeof Symbol!="undefined"&&Symbol,z=y("./shams");Se.exports=function(){return typeof E!="function"||typeof Symbol!="function"||typeof E("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(y,Se,ye){"use strict";Se.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},oe=Symbol("test"),se=Object(oe);if(typeof oe=="string"||Object.prototype.toString.call(oe)!=="[object Symbol]"||Object.prototype.toString.call(se)!=="[object Symbol]")return!1;var ee=42;z[oe]=ee;for(oe in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var de=Object.getOwnPropertySymbols(z);if(de.length!==1||de[0]!==oe||!Object.prototype.propertyIsEnumerable.call(z,oe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(z,oe);if(x.value!==ee||x.enumerable!==!0)return!1}return!0}},{}],353:[function(y,Se,ye){"use strict";var E=y("has-symbols/shams");Se.exports=function(){return E()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,Se,ye){"use strict";var E=y("function-bind");Se.exports=E.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,Se,ye){var E=y("http"),z=y("url"),oe=Se.exports;for(var se in E)E.hasOwnProperty(se)&&(oe[se]=E[se]);oe.request=function(de,x){return de=ee(de),E.request.call(this,de,x)},oe.get=function(de,x){return de=ee(de),E.get.call(this,de,x)};function ee(de){if(typeof de=="string"&&(de=z.parse(de)),de.protocol||(de.protocol="https:"),de.protocol!=="https:")throw new Error('Protocol "'+de.protocol+'" not supported. Expected "https:"');return de}},{http:468,url:472}],356:[function(y,Se,ye){"use strict";var E=y("util"),z=y("ms");Se.exports=function(oe){if(typeof oe=="number")return oe;var se=z(oe);if(se===void 0){var ee=new Error(E.format("humanize-ms(%j) result undefined",oe));console.warn(ee.stack)}return se}},{ms:376,util:419}],357:[function(y,Se,ye){ye.read=function(E,z,oe,se,ee){var de,x,te=ee*8-se-1,re=(1<<te)-1,ae=re>>1,ue=-7,he=oe?ee-1:0,pe=oe?-1:1,me=E[z+he];for(he+=pe,de=me&(1<<-ue)-1,me>>=-ue,ue+=te;ue>0;de=de*256+E[z+he],he+=pe,ue-=8);for(x=de&(1<<-ue)-1,de>>=-ue,ue+=se;ue>0;x=x*256+E[z+he],he+=pe,ue-=8);if(de===0)de=1-ae;else{if(de===re)return x?NaN:(me?-1:1)*(1/0);x=x+Math.pow(2,se),de=de-ae}return(me?-1:1)*x*Math.pow(2,de-se)},ye.write=function(E,z,oe,se,ee,de){var x,te,re,ae=de*8-ee-1,ue=(1<<ae)-1,he=ue>>1,pe=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,me=se?0:de-1,fe=se?1:-1,ve=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(te=isNaN(z)?1:0,x=ue):(x=Math.floor(Math.log(z)/Math.LN2),z*(re=Math.pow(2,-x))<1&&(x--,re*=2),x+he>=1?z+=pe/re:z+=pe*Math.pow(2,1-he),z*re>=2&&(x++,re/=2),x+he>=ue?(te=0,x=ue):x+he>=1?(te=(z*re-1)*Math.pow(2,ee),x=x+he):(te=z*Math.pow(2,he-1)*Math.pow(2,ee),x=0));ee>=8;E[oe+me]=te&255,me+=fe,te/=256,ee-=8);for(x=x<<ee|te,ae+=ee;ae>0;E[oe+me]=x&255,me+=fe,x/=256,ae-=8);E[oe+me-fe]|=ve*128}},{}],358:[function(y,Se,ye){"use strict";var E=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],z,oe,se=-1,ee=[],de=!1;function x(){!z||!oe||(z=!1,oe.length?ee=oe.concat(ee):se=-1,ee.length&&te())}function te(){if(!z){de=!1,z=!0;for(var me=ee.length,fe=setTimeout(x);me;){for(oe=ee,ee=[];oe&&++se<me;)oe[se].run();se=-1,me=ee.length}oe=null,se=-1,z=!1,clearTimeout(fe)}}for(var re,ae=-1,ue=E.length;++ae<ue;)if(E[ae]&&E[ae].test&&E[ae].test()){re=E[ae].install(te);break}function he(me,fe){this.fun=me,this.array=fe}he.prototype.run=function(){var me=this.fun,fe=this.array;switch(fe.length){case 0:return me();case 1:return me(fe[0]);case 2:return me(fe[0],fe[1]);case 3:return me(fe[0],fe[1],fe[2]);default:return me.apply(null,fe)}},Se.exports=pe;function pe(me){var fe=new Array(arguments.length-1);if(arguments.length>1)for(var ve=1;ve<arguments.length;ve++)fe[ve-1]=arguments[ve];ee.push(new he(me,fe)),!de&&!z&&(de=!0,re())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,Se,ye){(function(E){(function(){"use strict";ye.test=function(){return E.setImmediate?!1:typeof E.MessageChannel!="undefined"},ye.install=function(z){var oe=new E.MessageChannel;return oe.port1.onmessage=z,function(){oe.port2.postMessage(0)}}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,Se,ye){(function(E){(function(){"use strict";var z=E.MutationObserver||E.WebKitMutationObserver;ye.test=function(){return z},ye.install=function(oe){var se=0,ee=new z(oe),de=E.document.createTextNode("");return ee.observe(de,{characterData:!0}),function(){de.data=se=++se%2}}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,Se,ye){(function(E){(function(){"use strict";ye.test=function(){return typeof E.queueMicrotask=="function"},ye.install=function(z){return function(){E.queueMicrotask(z)}}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(y,Se,ye){(function(E){(function(){"use strict";ye.test=function(){return"document"in E&&"onreadystatechange"in E.document.createElement("script")},ye.install=function(z){return function(){var oe=E.document.createElement("script");return oe.onreadystatechange=function(){z(),oe.onreadystatechange=null,oe.parentNode.removeChild(oe),oe=null},E.document.documentElement.appendChild(oe),z}}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,Se,ye){"use strict";ye.test=function(){return!0},ye.install=function(E){return function(){setTimeout(E,0)}}},{}],364:[function(y,Se,ye){typeof Object.create=="function"?Se.exports=function(z,oe){oe&&(z.super_=oe,z.prototype=Object.create(oe.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:Se.exports=function(z,oe){if(oe){z.super_=oe;var se=function(){};se.prototype=oe.prototype,z.prototype=new se,z.prototype.constructor=z}}},{}],365:[function(y,Se,ye){"use strict";var E=y("has-tostringtag/shams")(),z=y("call-bind/callBound"),oe=z("Object.prototype.toString"),se=function(te){return E&&te&&typeof te=="object"&&Symbol.toStringTag in te?!1:oe(te)==="[object Arguments]"},ee=function(te){return se(te)?!0:te!==null&&typeof te=="object"&&typeof te.length=="number"&&te.length>=0&&oe(te)!=="[object Array]"&&oe(te.callee)==="[object Function]"},de=function(){return se(arguments)}();se.isLegacyArguments=ee,Se.exports=de?se:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,Se,ye){Se.exports=function(oe){return oe!=null&&(E(oe)||z(oe)||!!oe._isBuffer)};function E(oe){return!!oe.constructor&&typeof oe.constructor.isBuffer=="function"&&oe.constructor.isBuffer(oe)}function z(oe){return typeof oe.readFloatLE=="function"&&typeof oe.slice=="function"&&E(oe.slice(0,0))}},{}],367:[function(y,Se,ye){"use strict";var E=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,oe,se;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{oe=Object.defineProperty({},"length",{get:function(){throw se}}),se={},z(function(){throw 42},null,oe)}catch(Pe){Pe!==se&&(z=null)}else z=null;var ee=/^\s*class\b/,de=function(_e){try{var be=E.call(_e);return ee.test(be)}catch(xe){return!1}},x=function(_e){try{return de(_e)?!1:(E.call(_e),!0)}catch(be){return!1}},te=Object.prototype.toString,re="[object Object]",ae="[object Function]",ue="[object GeneratorFunction]",he="[object HTMLAllCollection]",pe="[object HTML document.all class]",me="[object HTMLCollection]",fe=typeof Symbol=="function"&&!!Symbol.toStringTag,ve=!(0 in[,]),ke=function(){return!1};if(typeof document=="object"){var Te=document.all;te.call(Te)===te.call(document.all)&&(ke=function(_e){if((ve||!_e)&&(typeof _e=="undefined"||typeof _e=="object"))try{var be=te.call(_e);return(be===he||be===pe||be===me||be===re)&&_e("")==null}catch(xe){}return!1})}Se.exports=z?function(_e){if(ke(_e))return!0;if(!_e||typeof _e!="function"&&typeof _e!="object")return!1;try{z(_e,null,oe)}catch(be){if(be!==se)return!1}return!de(_e)&&x(_e)}:function(_e){if(ke(_e))return!0;if(!_e||typeof _e!="function"&&typeof _e!="object")return!1;if(fe)return x(_e);if(de(_e))return!1;var be=te.call(_e);return be!==ae&&be!==ue&&!/^\[object HTML/.test(be)?!1:x(_e)}},{}],368:[function(y,Se,ye){"use strict";var E=Object.prototype.toString,z=Function.prototype.toString,oe=/^\s*(?:function)?\*/,se=y("has-tostringtag/shams")(),ee=Object.getPrototypeOf,de=function(){if(!se)return!1;try{return Function("return function*() {}")()}catch(te){}},x;Se.exports=function(re){if(typeof re!="function")return!1;if(oe.test(z.call(re)))return!0;if(!se){var ae=E.call(re);return ae==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof x=="undefined"){var ue=de();x=ue?ee(ue):!1}return ee(re)===x}},{"has-tostringtag/shams":353}],369:[function(y,Se,ye){"use strict";var E=y("which-typed-array");Se.exports=function(oe){return!!E(oe)}},{"which-typed-array":420}],370:[function(y,Se,ye){var E={}.toString;Se.exports=Array.isArray||function(z){return E.call(z)=="[object Array]"}},{}],371:[function(y,Se,ye){(function(E){(function(){(function(z,oe){typeof ye=="object"&&typeof Se!="undefined"?Se.exports=oe(z):typeof ze=="function"&&ze.amd?ze(oe):oe(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof E!="undefined"?E:this,function(z){"use strict";z=z||{};var oe=z.Base64,se="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de=function(Ye){for(var it={},Re=0,We=Ye.length;Re<We;Re++)it[Ye.charAt(Re)]=Re;return it}(ee),x=String.fromCharCode,te=function(Ye){if(Ye.length<2){var it=Ye.charCodeAt(0);return it<128?Ye:it<2048?x(192|it>>>6)+x(128|it&63):x(224|it>>>12&15)+x(128|it>>>6&63)+x(128|it&63)}else{var it=65536+(Ye.charCodeAt(0)-55296)*1024+(Ye.charCodeAt(1)-56320);return x(240|it>>>18&7)+x(128|it>>>12&63)+x(128|it>>>6&63)+x(128|it&63)}},re=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(Ye){return Ye.replace(re,te)},ue=function(Ye){var it=[0,2,1][Ye.length%3],Re=Ye.charCodeAt(0)<<16|(Ye.length>1?Ye.charCodeAt(1):0)<<8|(Ye.length>2?Ye.charCodeAt(2):0),We=[ee.charAt(Re>>>18),ee.charAt(Re>>>12&63),it>=2?"=":ee.charAt(Re>>>6&63),it>=1?"=":ee.charAt(Re&63)];return We.join("")},he=z.btoa&&typeof z.btoa=="function"?function(Ye){return z.btoa(Ye)}:function(Ye){if(Ye.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ye.replace(/[\s\S]{1,3}/g,ue)},pe=function(Ye){return he(ae(String(Ye)))},me=function(Ye){return Ye.replace(/[+\/]/g,function(it){return it=="+"?"-":"_"}).replace(/=/g,"")},fe=function(Ye,it){return it?me(pe(Ye)):pe(Ye)},ve=function(Ye){return fe(Ye,!0)},ke;z.Uint8Array&&(ke=function(Ye,it){for(var Re="",We=0,et=Ye.length;We<et;We+=3){var nt=Ye[We],rt=Ye[We+1],Xe=Ye[We+2],Je=nt<<16|rt<<8|Xe;Re+=ee.charAt(Je>>>18)+ee.charAt(Je>>>12&63)+(typeof rt!="undefined"?ee.charAt(Je>>>6&63):"=")+(typeof Xe!="undefined"?ee.charAt(Je&63):"=")}return it?me(Re):Re});var Te=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Pe=function(Ye){switch(Ye.length){case 4:var it=(7&Ye.charCodeAt(0))<<18|(63&Ye.charCodeAt(1))<<12|(63&Ye.charCodeAt(2))<<6|63&Ye.charCodeAt(3),Re=it-65536;return x((Re>>>10)+55296)+x((Re&1023)+56320);case 3:return x((15&Ye.charCodeAt(0))<<12|(63&Ye.charCodeAt(1))<<6|63&Ye.charCodeAt(2));default:return x((31&Ye.charCodeAt(0))<<6|63&Ye.charCodeAt(1))}},_e=function(Ye){return Ye.replace(Te,Pe)},be=function(Ye){var it=Ye.length,Re=it%4,We=(it>0?de[Ye.charAt(0)]<<18:0)|(it>1?de[Ye.charAt(1)]<<12:0)|(it>2?de[Ye.charAt(2)]<<6:0)|(it>3?de[Ye.charAt(3)]:0),et=[x(We>>>16),x(We>>>8&255),x(We&255)];return et.length-=[0,0,2,1][Re],et.join("")},xe=z.atob&&typeof z.atob=="function"?function(Ye){return z.atob(Ye)}:function(Ye){return Ye.replace(/\S{1,4}/g,be)},Ae=function(Ye){return xe(String(Ye).replace(/[^A-Za-z0-9\+\/]/g,""))},Me=function(Ye){return _e(xe(Ye))},Be=function(Ye){return String(Ye).replace(/[-_]/g,function(it){return it=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ce=function(Ye){return Me(Be(Ye))},De;z.Uint8Array&&(De=function(Ye){return Uint8Array.from(Ae(Be(Ye)),function(it){return it.charCodeAt(0)})});var He=function(){var Ye=z.Base64;return z.Base64=oe,Ye};if(z.Base64={VERSION:se,atob:Ae,btoa:he,fromBase64:Ce,toBase64:fe,utob:ae,encode:fe,encodeURI:ve,btou:_e,decode:Ce,noConflict:He,fromUint8Array:ke,toUint8Array:De},typeof Object.defineProperty=="function"){var Ke=function(Ye){return{value:Ye,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ke(function(){return Ce(this)})),Object.defineProperty(String.prototype,"toBase64",Ke(function(Ye){return fe(this,Ye)})),Object.defineProperty(String.prototype,"toBase64URI",Ke(function(){return fe(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof Se!="undefined"&&Se.exports?Se.exports.Base64=z.Base64:typeof ze=="function"&&ze.amd&&ze([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(y,Se,ye){"use strict";Se.exports=z;var E=Object.prototype.hasOwnProperty;function z(oe,se,ee){if(!oe)throw new TypeError("argument dest is required");if(!se)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(se).forEach(function(x){if(!(!ee&&E.call(oe,x))){var te=Object.getOwnPropertyDescriptor(se,x);Object.defineProperty(oe,x,te)}}),oe}},{}],373:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.map.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.regexp.constructor.js"),y("core-js/modules/es.regexp.to-string.js");function E(){this._types=Object.create(null),this._extensions=Object.create(null);for(var z=0;z<arguments.length;z++)this.define(arguments[z]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}E.prototype.define=function(z,oe){for(var se in z){var ee=z[se].map(function(re){return re.toLowerCase()});se=se.toLowerCase();for(var de=0;de<ee.length;de++){var x=ee[de];if(x[0]!=="*"){if(!oe&&x in this._types)throw new Error('Attempt to change mapping for "'+x+'" extension from "'+this._types[x]+'" to "'+se+'". Pass `force=true` to allow this, otherwise remove "'+x+'" from the list of extensions for "'+se+'".');this._types[x]=se}}if(oe||!this._extensions[se]){var te=ee[0];this._extensions[se]=te[0]!=="*"?te:te.substr(1)}}},E.prototype.getType=function(z){z=String(z);var oe=z.replace(/^.*[/\\]/,"").toLowerCase(),se=oe.replace(/^.*\./,"").toLowerCase(),ee=oe.length<z.length,de=se.length<oe.length-1;return(de||!ee)&&this._types[se]||null},E.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},Se.exports=E},{"core-js/modules/es.array.map.js":280,"core-js/modules/es.regexp.constructor.js":299,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305}],374:[function(y,Se,ye){"use strict";var E=y("./Mime");Se.exports=new E(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,Se,ye){"use strict";Se.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["es","ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avif":["avif"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],376:[function(y,Se,ye){var E=1e3,z=E*60,oe=z*60,se=oe*24,ee=se*7,de=se*365.25;Se.exports=function(ue,he){he=he||{};var pe=typeof ue;if(pe==="string"&&ue.length>0)return x(ue);if(pe==="number"&&isFinite(ue))return he.long?re(ue):te(ue);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ue))};function x(ue){if(ue=String(ue),!(ue.length>100)){var he=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ue);if(he){var pe=parseFloat(he[1]),me=(he[2]||"ms").toLowerCase();switch(me){case"years":case"year":case"yrs":case"yr":case"y":return pe*de;case"weeks":case"week":case"w":return pe*ee;case"days":case"day":case"d":return pe*se;case"hours":case"hour":case"hrs":case"hr":case"h":return pe*oe;case"minutes":case"minute":case"mins":case"min":case"m":return pe*z;case"seconds":case"second":case"secs":case"sec":case"s":return pe*E;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return pe;default:return}}}}function te(ue){var he=Math.abs(ue);return he>=se?Math.round(ue/se)+"d":he>=oe?Math.round(ue/oe)+"h":he>=z?Math.round(ue/z)+"m":he>=E?Math.round(ue/E)+"s":ue+"ms"}function re(ue){var he=Math.abs(ue);return he>=se?ae(ue,he,se,"day"):he>=oe?ae(ue,he,oe,"hour"):he>=z?ae(ue,he,z,"minute"):he>=E?ae(ue,he,E,"second"):ue+" ms"}function ae(ue,he,pe,me){var fe=he>=pe*1.5;return Math.round(ue/pe)+" "+me+(fe?"s":"")}},{}],377:[function(y,Se,ye){"use strict";var E=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;function se(de){if(de==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(de)}function ee(){try{if(!Object.assign)return!1;var de=new String("abc");if(de[5]="de",Object.getOwnPropertyNames(de)[0]==="5")return!1;for(var x={},te=0;te<10;te++)x["_"+String.fromCharCode(te)]=te;var re=Object.getOwnPropertyNames(x).map(function(ue){return x[ue]});if(re.join("")!=="0123456789")return!1;var ae={};return"abcdefghijklmnopqrst".split("").forEach(function(ue){ae[ue]=ue}),Object.keys(Object.assign({},ae)).join("")==="abcdefghijklmnopqrst"}catch(ue){return!1}}Se.exports=ee()?Object.assign:function(de,x){for(var te,re=se(de),ae,ue=1;ue<arguments.length;ue++){te=Object(arguments[ue]);for(var he in te)z.call(te,he)&&(re[he]=te[he]);if(E){ae=E(te);for(var pe=0;pe<ae.length;pe++)oe.call(te,ae[pe])&&(re[ae[pe]]=te[ae[pe]])}}return re}},{}],378:[function(y,Se,ye){(function(E){(function(){"use strict";function z(de){if(typeof de!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(de))}function oe(de,x){for(var te="",re=0,ae=-1,ue=0,he,pe=0;pe<=de.length;++pe){if(pe<de.length)he=de.charCodeAt(pe);else{if(he===47)break;he=47}if(he===47){if(!(ae===pe-1||ue===1))if(ae!==pe-1&&ue===2){if(te.length<2||re!==2||te.charCodeAt(te.length-1)!==46||te.charCodeAt(te.length-2)!==46){if(te.length>2){var me=te.lastIndexOf("/");if(me!==te.length-1){me===-1?(te="",re=0):(te=te.slice(0,me),re=te.length-1-te.lastIndexOf("/")),ae=pe,ue=0;continue}}else if(te.length===2||te.length===1){te="",re=0,ae=pe,ue=0;continue}}x&&(te.length>0?te+="/..":te="..",re=2)}else te.length>0?te+="/"+de.slice(ae+1,pe):te=de.slice(ae+1,pe),re=pe-ae-1;ae=pe,ue=0}else he===46&&ue!==-1?++ue:ue=-1}return te}function se(de,x){var te=x.dir||x.root,re=x.base||(x.name||"")+(x.ext||"");return te?te===x.root?te+re:te+de+re:re}var ee={resolve:function(){for(var x="",te=!1,re,ae=arguments.length-1;ae>=-1&&!te;ae--){var ue;ae>=0?ue=arguments[ae]:(re===void 0&&(re=E.cwd()),ue=re),z(ue),ue.length!==0&&(x=ue+"/"+x,te=ue.charCodeAt(0)===47)}return x=oe(x,!te),te?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(x){if(z(x),x.length===0)return".";var te=x.charCodeAt(0)===47,re=x.charCodeAt(x.length-1)===47;return x=oe(x,!te),x.length===0&&!te&&(x="."),x.length>0&&re&&(x+="/"),te?"/"+x:x},isAbsolute:function(x){return z(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,te=0;te<arguments.length;++te){var re=arguments[te];z(re),re.length>0&&(x===void 0?x=re:x+="/"+re)}return x===void 0?".":ee.normalize(x)},relative:function(x,te){if(z(x),z(te),x===te||(x=ee.resolve(x),te=ee.resolve(te),x===te))return"";for(var re=1;re<x.length&&x.charCodeAt(re)===47;++re);for(var ae=x.length,ue=ae-re,he=1;he<te.length&&te.charCodeAt(he)===47;++he);for(var pe=te.length,me=pe-he,fe=ue<me?ue:me,ve=-1,ke=0;ke<=fe;++ke){if(ke===fe){if(me>fe){if(te.charCodeAt(he+ke)===47)return te.slice(he+ke+1);if(ke===0)return te.slice(he+ke)}else ue>fe&&(x.charCodeAt(re+ke)===47?ve=ke:ke===0&&(ve=0));break}var Te=x.charCodeAt(re+ke),Pe=te.charCodeAt(he+ke);if(Te!==Pe)break;Te===47&&(ve=ke)}var _e="";for(ke=re+ve+1;ke<=ae;++ke)(ke===ae||x.charCodeAt(ke)===47)&&(_e.length===0?_e+="..":_e+="/..");return _e.length>0?_e+te.slice(he+ve):(he+=ve,te.charCodeAt(he)===47&&++he,te.slice(he))},_makeLong:function(x){return x},dirname:function(x){if(z(x),x.length===0)return".";for(var te=x.charCodeAt(0),re=te===47,ae=-1,ue=!0,he=x.length-1;he>=1;--he)if(te=x.charCodeAt(he),te===47){if(!ue){ae=he;break}}else ue=!1;return ae===-1?re?"/":".":re&&ae===1?"//":x.slice(0,ae)},basename:function(x,te){if(te!==void 0&&typeof te!="string")throw new TypeError('"ext" argument must be a string');z(x);var re=0,ae=-1,ue=!0,he;if(te!==void 0&&te.length>0&&te.length<=x.length){if(te.length===x.length&&te===x)return"";var pe=te.length-1,me=-1;for(he=x.length-1;he>=0;--he){var fe=x.charCodeAt(he);if(fe===47){if(!ue){re=he+1;break}}else me===-1&&(ue=!1,me=he+1),pe>=0&&(fe===te.charCodeAt(pe)?--pe===-1&&(ae=he):(pe=-1,ae=me))}return re===ae?ae=me:ae===-1&&(ae=x.length),x.slice(re,ae)}else{for(he=x.length-1;he>=0;--he)if(x.charCodeAt(he)===47){if(!ue){re=he+1;break}}else ae===-1&&(ue=!1,ae=he+1);return ae===-1?"":x.slice(re,ae)}},extname:function(x){z(x);for(var te=-1,re=0,ae=-1,ue=!0,he=0,pe=x.length-1;pe>=0;--pe){var me=x.charCodeAt(pe);if(me===47){if(!ue){re=pe+1;break}continue}ae===-1&&(ue=!1,ae=pe+1),me===46?te===-1?te=pe:he!==1&&(he=1):te!==-1&&(he=-1)}return te===-1||ae===-1||he===0||he===1&&te===ae-1&&te===re+1?"":x.slice(te,ae)},format:function(x){if(x===null||typeof x!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof x);return se("/",x)},parse:function(x){z(x);var te={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return te;var re=x.charCodeAt(0),ae=re===47,ue;ae?(te.root="/",ue=1):ue=0;for(var he=-1,pe=0,me=-1,fe=!0,ve=x.length-1,ke=0;ve>=ue;--ve){if(re=x.charCodeAt(ve),re===47){if(!fe){pe=ve+1;break}continue}me===-1&&(fe=!1,me=ve+1),re===46?he===-1?he=ve:ke!==1&&(ke=1):he!==-1&&(ke=-1)}return he===-1||me===-1||ke===0||ke===1&&he===me-1&&he===pe+1?me!==-1&&(pe===0&&ae?te.base=te.name=x.slice(1,me):te.base=te.name=x.slice(pe,me)):(pe===0&&ae?(te.name=x.slice(1,he),te.base=x.slice(1,me)):(te.name=x.slice(pe,he),te.base=x.slice(pe,me)),te.ext=x.slice(he,me)),pe>0?te.dir=x.slice(0,pe-1):ae&&(te.dir="/"),te},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,Se.exports=ee}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,Se,ye){(function(E){(function(){(function(){"use strict";var z={function:!0,object:!0},oe=z[typeof window]&&window||this,se=oe,ee=z[typeof ye]&&ye,de=z[typeof Se]&&Se&&!Se.nodeType&&Se,x=ee&&de&&typeof E=="object"&&E;x&&(x.global===x||x.window===x||x.self===x)&&(oe=x);var te=Math.pow(2,53)-1,re=/\bOpera/,ae=this,ue=Object.prototype,he=ue.hasOwnProperty,pe=ue.toString;function me(Ce){return Ce=String(Ce),Ce.charAt(0).toUpperCase()+Ce.slice(1)}function fe(Ce,De,He){var Ke={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return De&&He&&/^Win/i.test(Ce)&&!/^Windows Phone /i.test(Ce)&&(Ke=Ke[/[\d.]+$/.exec(Ce)])&&(Ce="Windows "+Ke),Ce=String(Ce),De&&He&&(Ce=Ce.replace(RegExp(De,"i"),He)),Ce=ke(Ce.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),Ce}function ve(Ce,De){var He=-1,Ke=Ce?Ce.length:0;if(typeof Ke=="number"&&Ke>-1&&Ke<=te)for(;++He<Ke;)De(Ce[He],He,Ce);else Te(Ce,De)}function ke(Ce){return Ce=Ae(Ce),/^(?:webOS|i(?:OS|P))/.test(Ce)?Ce:me(Ce)}function Te(Ce,De){for(var He in Ce)he.call(Ce,He)&&De(Ce[He],He,Ce)}function Pe(Ce){return Ce==null?me(Ce):pe.call(Ce).slice(8,-1)}function _e(Ce,De){var He=Ce!=null?typeof Ce[De]:"number";return!/^(?:boolean|number|string|undefined)$/.test(He)&&(He=="object"?!!Ce[De]:!0)}function be(Ce){return String(Ce).replace(/([ -])(?!$)/g,"$1?")}function xe(Ce,De){var He=null;return ve(Ce,function(Ke,Ye){He=De(He,Ke,Ye,Ce)}),He}function Ae(Ce){return String(Ce).replace(/^ +| +$/g,"")}function Me(Ce){var De=oe,He=Ce&&typeof Ce=="object"&&Pe(Ce)!="String";He&&(De=Ce,Ce=null);var Ke=De.navigator||{},Ye=Ke.userAgent||"";Ce||(Ce=Ye);var it=He||ae==se,Re=He?!!Ke.likeChrome:/\bChrome\b/.test(Ce)&&!/internal|\n/i.test(pe.toString()),We="Object",et=He?We:"ScriptBridgingProxyObject",nt=He?We:"Environment",rt=He&&De.java?"JavaPackage":Pe(De.java),Xe=He?We:"RuntimeObject",Je=/\bJava/.test(rt)&&De.java,Ve=Je&&Pe(De.environment)==nt,at=Je?"a":"\u03B1",Qe=Je?"b":"\u03B2",ut=De.document||{},st=De.operamini||De.opera,$e=re.test($e=He&&st?st["[[Class]]"]:Pe(st))?$e:st=null,Ne,je=Ce,ne=[],ce=null,Ie=Ce==Ye,Fe=Ie&&st&&typeof st.version=="function"&&st.version(),we,Ee=ft([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Oe=vt(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Ue=xt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),tt=ct({Apple:{iPad:1,iPhone:1,iPod:1},Alcatel:{},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},Huawei:{},Lenovo:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Oppo:{},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1},Xiaomi:{Mi:1,Redmi:1}}),Ge=kt(["Windows Phone","KaiOS","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian",{label:"DragonFly BSD",pattern:"DragonFly"},"Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);function ft(mt){return xe(mt,function(dt,bt){return dt||RegExp("\\b"+(bt.pattern||be(bt))+"\\b","i").exec(Ce)&&(bt.label||bt)})}function ct(mt){return xe(mt,function(dt,bt,wt){return dt||(bt[Ue]||bt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ue)]||RegExp("\\b"+be(wt)+"(?:\\b|\\w*\\d)","i").exec(Ce))&&wt})}function vt(mt){return xe(mt,function(dt,bt){return dt||RegExp("\\b"+(bt.pattern||be(bt))+"\\b","i").exec(Ce)&&(bt.label||bt)})}function kt(mt){return xe(mt,function(dt,bt){var wt=bt.pattern||be(bt);return!dt&&(dt=RegExp("\\b"+wt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ce))&&(dt=fe(dt,wt,bt.label||bt)),dt})}function xt(mt){return xe(mt,function(dt,bt){var wt=bt.pattern||be(bt);return!dt&&(dt=RegExp("\\b"+wt+" *\\d+[.\\w_]*","i").exec(Ce)||RegExp("\\b"+wt+" *\\w+-[\\w]*","i").exec(Ce)||RegExp("\\b"+wt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ce))&&((dt=String(bt.label&&!RegExp(wt,"i").test(bt.label)?bt.label:dt).split("/"))[1]&&!/[\d.]+/.test(dt[0])&&(dt[0]+=" "+dt[1]),bt=bt.label||bt,dt=ke(dt[0].replace(RegExp(wt,"i"),bt).replace(RegExp("; *(?:"+bt+"[_-])?","i")," ").replace(RegExp("("+bt+")[-_.]?(\\w)","i"),"$1 $2"))),dt})}function Et(mt){return xe(mt,function(dt,bt){return dt||(RegExp(bt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ce)||0)[1]||null})}function gt(){return this.description||""}if(Ee&&(Ee=[Ee]),/\bAndroid\b/.test(Ge)&&!Ue&&(Ne=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ce))&&(Ue=Ae(Ne[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),tt&&!Ue?Ue=xt([tt]):tt&&Ue&&(Ue=Ue.replace(RegExp("^("+be(tt)+")[-_.\\s]","i"),tt+" ").replace(RegExp("^("+be(tt)+")[-_.]?(\\w)","i"),tt+" $2")),(Ne=/\bGoogle TV\b/.exec(Ue))&&(Ue=Ne[0]),/\bSimulator\b/i.test(Ce)&&(Ue=(Ue?Ue+" ":"")+"Simulator"),Oe=="Opera Mini"&&/\bOPiOS\b/.test(Ce)&&ne.push("running in Turbo/Uncompressed mode"),Oe=="IE"&&/\blike iPhone OS\b/.test(Ce)?(Ne=Me(Ce.replace(/like iPhone OS/,"")),tt=Ne.manufacturer,Ue=Ne.product):/^iP/.test(Ue)?(Oe||(Oe="Safari"),Ge="iOS"+((Ne=/ OS ([\d_]+)/i.exec(Ce))?" "+Ne[1].replace(/_/g,"."):"")):Oe=="Konqueror"&&/^Linux\b/i.test(Ge)?Ge="Kubuntu":tt&&tt!="Google"&&(/Chrome/.test(Oe)&&!/\bMobile Safari\b/i.test(Ce)||/\bVita\b/.test(Ue))||/\bAndroid\b/.test(Ge)&&/^Chrome/.test(Oe)&&/\bVersion\//i.test(Ce)?(Oe="Android Browser",Ge=/\bAndroid\b/.test(Ge)?Ge:"Android"):Oe=="Silk"?(/\bMobi/i.test(Ce)||(Ge="Android",ne.unshift("desktop mode")),/Accelerated *= *true/i.test(Ce)&&ne.unshift("accelerated")):Oe=="UC Browser"&&/\bUCWEB\b/.test(Ce)?ne.push("speed mode"):Oe=="PaleMoon"&&(Ne=/\bFirefox\/([\d.]+)\b/.exec(Ce))?ne.push("identifying as Firefox "+Ne[1]):Oe=="Firefox"&&(Ne=/\b(Mobile|Tablet|TV)\b/i.exec(Ce))?(Ge||(Ge="Firefox OS"),Ue||(Ue=Ne[1])):!Oe||(Ne=!/\bMinefield\b/i.test(Ce)&&/\b(?:Firefox|Safari)\b/.exec(Oe))?(Oe&&!Ue&&/[\/,]|^[^(]+?\)/.test(Ce.slice(Ce.indexOf(Ne+"/")+8))&&(Oe=null),(Ne=Ue||tt||Ge)&&(Ue||tt||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Ge))&&(Oe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Ge)?Ge:Ne)+" Browser")):Oe=="Electron"&&(Ne=(/\bChrome\/([\d.]+)\b/.exec(Ce)||0)[1])&&ne.push("Chromium "+Ne),Fe||(Fe=Et(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",be(Oe),"(?:Firefox|Minefield|NetFront)"])),(Ne=Ee=="iCab"&&parseFloat(Fe)>3&&"WebKit"||/\bOpera\b/.test(Oe)&&(/\bOPR\b/.test(Ce)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ce)&&!/^(?:Trident|EdgeHTML)$/.test(Ee)&&"WebKit"||!Ee&&/\bMSIE\b/i.test(Ce)&&(Ge=="Mac OS"?"Tasman":"Trident")||Ee=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Oe)&&"NetFront")&&(Ee=[Ne]),Oe=="IE"&&(Ne=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ce)||0)[1])?(Oe+=" Mobile",Ge="Windows Phone "+(/\+$/.test(Ne)?Ne:Ne+".x"),ne.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ce)?(Oe="IE Mobile",Ge="Windows Phone 8.x",ne.unshift("desktop mode"),Fe||(Fe=(/\brv:([\d.]+)/.exec(Ce)||0)[1])):Oe!="IE"&&Ee=="Trident"&&(Ne=/\brv:([\d.]+)/.exec(Ce))&&(Oe&&ne.push("identifying as "+Oe+(Fe?" "+Fe:"")),Oe="IE",Fe=Ne[1]),Ie){if(_e(De,"global"))if(Je&&(Ne=Je.lang.System,je=Ne.getProperty("os.arch"),Ge=Ge||Ne.getProperty("os.name")+" "+Ne.getProperty("os.version")),Ve){try{Fe=De.require("ringo/engine").version.join("."),Oe="RingoJS"}catch(mt){(Ne=De.system)&&Ne.global.system==De.system&&(Oe="Narwhal",Ge||(Ge=Ne[0].os||null))}Oe||(Oe="Rhino")}else typeof De.process=="object"&&!De.process.browser&&(Ne=De.process)&&(typeof Ne.versions=="object"&&(typeof Ne.versions.electron=="string"?(ne.push("Node "+Ne.versions.node),Oe="Electron",Fe=Ne.versions.electron):typeof Ne.versions.nw=="string"&&(ne.push("Chromium "+Fe,"Node "+Ne.versions.node),Oe="NW.js",Fe=Ne.versions.nw)),Oe||(Oe="Node.js",je=Ne.arch,Ge=Ne.platform,Fe=/[\d.]+/.exec(Ne.version),Fe=Fe?Fe[0]:null));else Pe(Ne=De.runtime)==et?(Oe="Adobe AIR",Ge=Ne.flash.system.Capabilities.os):Pe(Ne=De.phantom)==Xe?(Oe="PhantomJS",Fe=(Ne=Ne.version||null)&&Ne.major+"."+Ne.minor+"."+Ne.patch):typeof ut.documentMode=="number"&&(Ne=/\bTrident\/(\d+)/i.exec(Ce))?(Fe=[Fe,ut.documentMode],(Ne=+Ne[1]+4)!=Fe[1]&&(ne.push("IE "+Fe[1]+" mode"),Ee&&(Ee[1]=""),Fe[1]=Ne),Fe=Oe=="IE"?String(Fe[1].toFixed(1)):Fe[0]):typeof ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Oe)&&(ne.push("masking as "+Oe+" "+Fe),Oe="IE",Fe="11.0",Ee=["Trident"],Ge="Windows");Ge=Ge&&ke(Ge)}if(Fe&&(Ne=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Fe)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ce+";"+(Ie&&Ke.appMinorVersion))||/\bMinefield\b/i.test(Ce)&&"a")&&(ce=/b/i.test(Ne)?"beta":"alpha",Fe=Fe.replace(RegExp(Ne+"\\+?$"),"")+(ce=="beta"?Qe:at)+(/\d+\+?/.exec(Ne)||"")),Oe=="Fennec"||Oe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Ge))Oe="Firefox Mobile";else if(Oe=="Maxthon"&&Fe)Fe=Fe.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ue))Ue=="Xbox 360"&&(Ge=null),Ue=="Xbox 360"&&/\bIEMobile\b/.test(Ce)&&ne.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Oe)||Oe&&!Ue&&!/Browser|Mobi/.test(Oe))&&(Ge=="Windows CE"||/Mobi/i.test(Ce)))Oe+=" Mobile";else if(Oe=="IE"&&Ie)try{De.external===null&&ne.unshift("platform preview")}catch(mt){ne.unshift("embedded")}else(/\bBlackBerry\b/.test(Ue)||/\bBB10\b/.test(Ce))&&(Ne=(RegExp(Ue.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ce)||0)[1]||Fe)?(Ne=[Ne,/BB10/.test(Ce)],Ge=(Ne[1]?(Ue=null,tt="BlackBerry"):"Device Software")+" "+Ne[0],Fe=null):this!=Te&&Ue!="Wii"&&(Ie&&st||/Opera/.test(Oe)&&/\b(?:MSIE|Firefox)\b/i.test(Ce)||Oe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Ge)||Oe=="IE"&&(Ge&&!/^Win/.test(Ge)&&Fe>5.5||/\bWindows XP\b/.test(Ge)&&Fe>8||Fe==8&&!/\bTrident\b/.test(Ce)))&&!re.test(Ne=Me.call(Te,Ce.replace(re,"")+";"))&&Ne.name&&(Ne="ing as "+Ne.name+((Ne=Ne.version)?" "+Ne:""),re.test(Oe)?(/\bIE\b/.test(Ne)&&Ge=="Mac OS"&&(Ge=null),Ne="identify"+Ne):(Ne="mask"+Ne,$e?Oe=ke($e.replace(/([a-z])([A-Z])/g,"$1 $2")):Oe="Opera",/\bIE\b/.test(Ne)&&(Ge=null),Ie||(Fe=null)),Ee=["Presto"],ne.push(Ne));(Ne=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ce)||0)[1])&&(Ne=[parseFloat(Ne.replace(/\.(\d)$/,".0$1")),Ne],Oe=="Safari"&&Ne[1].slice(-1)=="+"?(Oe="WebKit Nightly",ce="alpha",Fe=Ne[1].slice(0,-1)):(Fe==Ne[1]||Fe==(Ne[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ce)||0)[1]))&&(Fe=null),Ne[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ce)||0)[1],Ne[0]==537.36&&Ne[2]==537.36&&parseFloat(Ne[1])>=28&&Ee=="WebKit"&&(Ee=["Blink"]),!Ie||!Re&&!Ne[1]?(Ee&&(Ee[1]="like Safari"),Ne=(Ne=Ne[0],Ne<400?1:Ne<500?2:Ne<526?3:Ne<533?4:Ne<534?"4+":Ne<535?5:Ne<537?6:Ne<538?7:Ne<601?8:Ne<602?9:Ne<604?10:Ne<606?11:Ne<608?12:"12")):(Ee&&(Ee[1]="like Chrome"),Ne=Ne[1]||(Ne=Ne[0],Ne<530?1:Ne<532?2:Ne<532.05?3:Ne<533?4:Ne<534.03?5:Ne<534.07?6:Ne<534.1?7:Ne<534.13?8:Ne<534.16?9:Ne<534.24?10:Ne<534.3?11:Ne<535.01?12:Ne<535.02?"13+":Ne<535.07?15:Ne<535.11?16:Ne<535.19?17:Ne<536.05?18:Ne<536.1?19:Ne<537.01?20:Ne<537.11?"21+":Ne<537.13?23:Ne<537.18?24:Ne<537.24?25:Ne<537.36?26:Ee!="Blink"?"27":"28")),Ee&&(Ee[1]+=" "+(Ne+=typeof Ne=="number"?".x":/[.+]/.test(Ne)?"":"+")),Oe=="Safari"&&(!Fe||parseInt(Fe)>45)?Fe=Ne:Oe=="Chrome"&&/\bHeadlessChrome/i.test(Ce)&&ne.unshift("headless")),Oe=="Opera"&&(Ne=/\bzbov|zvav$/.exec(Ge))?(Oe+=" ",ne.unshift("desktop mode"),Ne=="zvav"?(Oe+="Mini",Fe=null):Oe+="Mobile",Ge=Ge.replace(RegExp(" *"+Ne+"$"),"")):Oe=="Safari"&&/\bChrome\b/.exec(Ee&&Ee[1])?(ne.unshift("desktop mode"),Oe="Chrome Mobile",Fe=null,/\bOS X\b/.test(Ge)?(tt="Apple",Ge="iOS 4.3+"):Ge=null):/\bSRWare Iron\b/.test(Oe)&&!Fe&&(Fe=Et("Chrome")),Fe&&Fe.indexOf(Ne=/[\d.]+$/.exec(Ge))==0&&Ce.indexOf("/"+Ne+"-")>-1&&(Ge=Ae(Ge.replace(Ne,""))),Ge&&Ge.indexOf(Oe)!=-1&&!RegExp(Oe+" OS").test(Ge)&&(Ge=Ge.replace(RegExp(" *"+be(Oe)+" *"),"")),Ee&&!/\b(?:Avant|Nook)\b/.test(Oe)&&(/Browser|Lunascape|Maxthon/.test(Oe)||Oe!="Safari"&&/^iOS/.test(Ge)&&/\bSafari\b/.test(Ee[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Oe)&&Ee[1])&&(Ne=Ee[Ee.length-1])&&ne.push(Ne),ne.length&&(ne=["("+ne.join("; ")+")"]),tt&&Ue&&Ue.indexOf(tt)<0&&ne.push("on "+tt),Ue&&ne.push((/^on /.test(ne[ne.length-1])?"":"on ")+Ue),Ge&&(Ne=/ ([\d.+]+)$/.exec(Ge),we=Ne&&Ge.charAt(Ge.length-Ne[0].length-1)=="/",Ge={architecture:32,family:Ne&&!we?Ge.replace(Ne[0],""):Ge,version:Ne?Ne[1]:null,toString:function(){var mt=this.version;return this.family+(mt&&!we?" "+mt:"")+(this.architecture==64?" 64-bit":"")}}),(Ne=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(je))&&!/\bi686\b/i.test(je)?(Ge&&(Ge.architecture=64,Ge.family=Ge.family.replace(RegExp(" *"+Ne),"")),Oe&&(/\bWOW64\b/i.test(Ce)||Ie&&/\w(?:86|32)$/.test(Ke.cpuClass||Ke.platform)&&!/\bWin64; x64\b/i.test(Ce))&&ne.unshift("32-bit")):Ge&&/^OS X/.test(Ge.family)&&Oe=="Chrome"&&parseFloat(Fe)>=39&&(Ge.architecture=64),Ce||(Ce=null);var pt={};return pt.description=Ce,pt.layout=Ee&&Ee[0],pt.manufacturer=tt,pt.name=Oe,pt.prerelease=ce,pt.product=Ue,pt.ua=Ce,pt.version=Oe&&Fe,pt.os=Ge||{architecture:null,family:null,version:null,toString:function(){return"null"}},pt.parse=Me,pt.toString=gt,pt.version&&ne.unshift(Fe),pt.name&&ne.unshift(Oe),Ge&&Oe&&!(Ge==String(Ge).split(" ")[0]&&(Ge==Oe.split(" ")[0]||Ue))&&ne.push(Ue?"("+Ge+")":"on "+Ge),ne.length&&(pt.description=ne.join(" ")),pt}var Be=Me();typeof ze=="function"&&typeof ze.amd=="object"&&ze.amd?(oe.platform=Be,ze(function(){return Be})):ee&&de?Te(Be,function(Ce,De){ee[De]=Ce}):oe.platform=Be}).call(this)}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,Se,ye){(function(E){(function(){"use strict";typeof E=="undefined"||!E.version||E.version.indexOf("v0.")===0||E.version.indexOf("v1.")===0&&E.version.indexOf("v1.8.")!==0?Se.exports={nextTick:z}:Se.exports=E;function z(oe,se,ee,de){if(typeof oe!="function")throw new TypeError('"callback" argument must be a function');var x=arguments.length,te,re;switch(x){case 0:case 1:return E.nextTick(oe);case 2:return E.nextTick(function(){oe.call(null,se)});case 3:return E.nextTick(function(){oe.call(null,se,ee)});case 4:return E.nextTick(function(){oe.call(null,se,ee,de)});default:for(te=new Array(x-1),re=0;re<te.length;)te[re++]=arguments[re];return E.nextTick(function(){oe.apply(null,te)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,Se,ye){var E=Se.exports={},z,oe;function se(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=se}catch(ve){z=se}try{typeof clearTimeout=="function"?oe=clearTimeout:oe=ee}catch(ve){oe=ee}})();function de(ve){if(z===setTimeout)return setTimeout(ve,0);if((z===se||!z)&&setTimeout)return z=setTimeout,setTimeout(ve,0);try{return z(ve,0)}catch(ke){try{return z.call(null,ve,0)}catch(Te){return z.call(this,ve,0)}}}function x(ve){if(oe===clearTimeout)return clearTimeout(ve);if((oe===ee||!oe)&&clearTimeout)return oe=clearTimeout,clearTimeout(ve);try{return oe(ve)}catch(ke){try{return oe.call(null,ve)}catch(Te){return oe.call(this,ve)}}}var te=[],re=!1,ae,ue=-1;function he(){!re||!ae||(re=!1,ae.length?te=ae.concat(te):ue=-1,te.length&&pe())}function pe(){if(!re){var ve=de(he);re=!0;for(var ke=te.length;ke;){for(ae=te,te=[];++ue<ke;)ae&&ae[ue].run();ue=-1,ke=te.length}ae=null,re=!1,x(ve)}}E.nextTick=function(ve){var ke=new Array(arguments.length-1);if(arguments.length>1)for(var Te=1;Te<arguments.length;Te++)ke[Te-1]=arguments[Te];te.push(new me(ve,ke)),te.length===1&&!re&&de(pe)};function me(ve,ke){this.fun=ve,this.array=ke}me.prototype.run=function(){this.fun.apply(null,this.array)},E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={};function fe(){}E.on=fe,E.addListener=fe,E.once=fe,E.off=fe,E.removeListener=fe,E.removeAllListeners=fe,E.emit=fe,E.prependListener=fe,E.prependOnceListener=fe,E.listeners=function(ve){return[]},E.binding=function(ve){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(ve){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}},{}],382:[function(y,Se,ye){(function(E){(function(){(function(z){var oe=typeof ye=="object"&&ye&&!ye.nodeType&&ye,se=typeof Se=="object"&&Se&&!Se.nodeType&&Se,ee=typeof E=="object"&&E;(ee.global===ee||ee.window===ee||ee.self===ee)&&(z=ee);var de,x=2147483647,te=36,re=1,ae=26,ue=38,he=700,pe=72,me=128,fe="-",ve=/^xn--/,ke=/[^\x20-\x7E]/,Te=/[\x2E\u3002\uFF0E\uFF61]/g,Pe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_e=te-re,be=Math.floor,xe=String.fromCharCode,Ae;function Me(rt){throw new RangeError(Pe[rt])}function Be(rt,Xe){for(var Je=rt.length,Ve=[];Je--;)Ve[Je]=Xe(rt[Je]);return Ve}function Ce(rt,Xe){var Je=rt.split("@"),Ve="";Je.length>1&&(Ve=Je[0]+"@",rt=Je[1]),rt=rt.replace(Te,".");var at=rt.split("."),Qe=Be(at,Xe).join(".");return Ve+Qe}function De(rt){for(var Xe=[],Je=0,Ve=rt.length,at,Qe;Je<Ve;)at=rt.charCodeAt(Je++),at>=55296&&at<=56319&&Je<Ve?(Qe=rt.charCodeAt(Je++),(Qe&64512)==56320?Xe.push(((at&1023)<<10)+(Qe&1023)+65536):(Xe.push(at),Je--)):Xe.push(at);return Xe}function He(rt){return Be(rt,function(Xe){var Je="";return Xe>65535&&(Xe-=65536,Je+=xe(Xe>>>10&1023|55296),Xe=56320|Xe&1023),Je+=xe(Xe),Je}).join("")}function Ke(rt){return rt-48<10?rt-22:rt-65<26?rt-65:rt-97<26?rt-97:te}function Ye(rt,Xe){return rt+22+75*(rt<26)-((Xe!=0)<<5)}function it(rt,Xe,Je){var Ve=0;for(rt=Je?be(rt/he):rt>>1,rt+=be(rt/Xe);rt>_e*ae>>1;Ve+=te)rt=be(rt/_e);return be(Ve+(_e+1)*rt/(rt+ue))}function Re(rt){var Xe=[],Je=rt.length,Ve,at=0,Qe=me,ut=pe,st,$e,Ne,je,ne,ce,Ie,Fe,we;for(st=rt.lastIndexOf(fe),st<0&&(st=0),$e=0;$e<st;++$e)rt.charCodeAt($e)>=128&&Me("not-basic"),Xe.push(rt.charCodeAt($e));for(Ne=st>0?st+1:0;Ne<Je;){for(je=at,ne=1,ce=te;Ne>=Je&&Me("invalid-input"),Ie=Ke(rt.charCodeAt(Ne++)),(Ie>=te||Ie>be((x-at)/ne))&&Me("overflow"),at+=Ie*ne,Fe=ce<=ut?re:ce>=ut+ae?ae:ce-ut,!(Ie<Fe);ce+=te)we=te-Fe,ne>be(x/we)&&Me("overflow"),ne*=we;Ve=Xe.length+1,ut=it(at-je,Ve,je==0),be(at/Ve)>x-Qe&&Me("overflow"),Qe+=be(at/Ve),at%=Ve,Xe.splice(at++,0,Qe)}return He(Xe)}function We(rt){var Xe,Je,Ve,at,Qe,ut,st,$e,Ne,je,ne,ce=[],Ie,Fe,we,Ee;for(rt=De(rt),Ie=rt.length,Xe=me,Je=0,Qe=pe,ut=0;ut<Ie;++ut)ne=rt[ut],ne<128&&ce.push(xe(ne));for(Ve=at=ce.length,at&&ce.push(fe);Ve<Ie;){for(st=x,ut=0;ut<Ie;++ut)ne=rt[ut],ne>=Xe&&ne<st&&(st=ne);for(Fe=Ve+1,st-Xe>be((x-Je)/Fe)&&Me("overflow"),Je+=(st-Xe)*Fe,Xe=st,ut=0;ut<Ie;++ut)if(ne=rt[ut],ne<Xe&&++Je>x&&Me("overflow"),ne==Xe){for($e=Je,Ne=te;je=Ne<=Qe?re:Ne>=Qe+ae?ae:Ne-Qe,!($e<je);Ne+=te)Ee=$e-je,we=te-je,ce.push(xe(Ye(je+Ee%we,0))),$e=be(Ee/we);ce.push(xe(Ye($e,0))),Qe=it(Je,Fe,Ve==at),Je=0,++Ve}++Je,++Xe}return ce.join("")}function et(rt){return Ce(rt,function(Xe){return ve.test(Xe)?Re(Xe.slice(4).toLowerCase()):Xe})}function nt(rt){return Ce(rt,function(Xe){return ke.test(Xe)?"xn--"+We(Xe):Xe})}if(de={version:"1.4.1",ucs2:{decode:De,encode:He},decode:Re,encode:We,toASCII:nt,toUnicode:et},typeof ze=="function"&&typeof ze.amd=="object"&&ze.amd)ze("punycode",function(){return de});else if(oe&&se)if(Se.exports==oe)se.exports=de;else for(Ae in de)de.hasOwnProperty(Ae)&&(oe[Ae]=de[Ae]);else z.punycode=de})(this)}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,Se,ye){"use strict";function E(oe,se){return Object.prototype.hasOwnProperty.call(oe,se)}Se.exports=function(oe,se,ee,de){se=se||"&",ee=ee||"=";var x={};if(typeof oe!="string"||oe.length===0)return x;var te=/\+/g;oe=oe.split(se);var re=1e3;de&&typeof de.maxKeys=="number"&&(re=de.maxKeys);var ae=oe.length;re>0&&ae>re&&(ae=re);for(var ue=0;ue<ae;++ue){var he=oe[ue].replace(te,"%20"),pe=he.indexOf(ee),me,fe,ve,ke;pe>=0?(me=he.substr(0,pe),fe=he.substr(pe+1)):(me=he,fe=""),ve=decodeURIComponent(me),ke=decodeURIComponent(fe),E(x,ve)?z(x[ve])?x[ve].push(ke):x[ve]=[x[ve],ke]:x[ve]=ke}return x};var z=Array.isArray||function(oe){return Object.prototype.toString.call(oe)==="[object Array]"}},{}],384:[function(y,Se,ye){"use strict";var E=function(ee){switch(typeof ee){case"string":return ee;case"boolean":return ee?"true":"false";case"number":return isFinite(ee)?ee:"";default:return""}};Se.exports=function(ee,de,x,te){return de=de||"&",x=x||"=",ee===null&&(ee=void 0),typeof ee=="object"?oe(se(ee),function(re){var ae=encodeURIComponent(E(re))+x;return z(ee[re])?oe(ee[re],function(ue){return ae+encodeURIComponent(E(ue))}).join(de):ae+encodeURIComponent(E(ee[re]))}).join(de):te?encodeURIComponent(E(te))+x+encodeURIComponent(E(ee)):""};var z=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function oe(ee,de){if(ee.map)return ee.map(de);for(var x=[],te=0;te<ee.length;te++)x.push(de(ee[te],te));return x}var se=Object.keys||function(ee){var de=[];for(var x in ee)Object.prototype.hasOwnProperty.call(ee,x)&&de.push(x);return de}},{}],385:[function(y,Se,ye){"use strict";ye.decode=ye.parse=y("./decode"),ye.encode=ye.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,Se,ye){"use strict";var E=y("process-nextick-args"),z=Object.keys||function(he){var pe=[];for(var me in he)pe.push(me);return pe};Se.exports=re;var oe=Object.create(y("core-util-is"));oe.inherits=y("inherits");var se=y("./_stream_readable"),ee=y("./_stream_writable");oe.inherits(re,se);for(var de=z(ee.prototype),x=0;x<de.length;x++){var te=de[x];re.prototype[te]||(re.prototype[te]=ee.prototype[te])}function re(he){if(!(this instanceof re))return new re(he);se.call(this,he),ee.call(this,he),he&&he.readable===!1&&(this.readable=!1),he&&he.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,he&&he.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",ae)}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ae(){this.allowHalfOpen||this._writableState.ended||E.nextTick(ue,this)}function ue(he){he.end()}Object.defineProperty(re.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(he){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=he,this._writableState.destroyed=he)}}),re.prototype._destroy=function(he,pe){this.push(null),this.end(),E.nextTick(pe,he)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(y,Se,ye){"use strict";Se.exports=oe;var E=y("./_stream_transform"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(oe,E);function oe(se){if(!(this instanceof oe))return new oe(se);E.call(this,se)}oe.prototype._transform=function(se,ee,de){de(null,se)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,Se,ye){(function(E,z){(function(){"use strict";var oe=y("process-nextick-args");Se.exports=xe;var se=y("isarray"),ee;xe.ReadableState=be;var de=y("events").EventEmitter,x=function(ne,ce){return ne.listeners(ce).length},te=y("./internal/streams/stream"),re=y("safe-buffer").Buffer,ae=z.Uint8Array||function(){};function ue(ne){return re.from(ne)}function he(ne){return re.isBuffer(ne)||ne instanceof ae}var pe=Object.create(y("core-util-is"));pe.inherits=y("inherits");var me=y("util"),fe=void 0;me&&me.debuglog?fe=me.debuglog("stream"):fe=function(){};var ve=y("./internal/streams/BufferList"),ke=y("./internal/streams/destroy"),Te;pe.inherits(xe,te);var Pe=["error","close","destroy","pause","resume"];function _e(ne,ce,Ie){if(typeof ne.prependListener=="function")return ne.prependListener(ce,Ie);!ne._events||!ne._events[ce]?ne.on(ce,Ie):se(ne._events[ce])?ne._events[ce].unshift(Ie):ne._events[ce]=[Ie,ne._events[ce]]}function be(ne,ce){ee=ee||y("./_stream_duplex"),ne=ne||{};var Ie=ce instanceof ee;this.objectMode=!!ne.objectMode,Ie&&(this.objectMode=this.objectMode||!!ne.readableObjectMode);var Fe=ne.highWaterMark,we=ne.readableHighWaterMark,Ee=this.objectMode?16:16*1024;Fe||Fe===0?this.highWaterMark=Fe:Ie&&(we||we===0)?this.highWaterMark=we:this.highWaterMark=Ee,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ve,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=ne.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,ne.encoding&&(Te||(Te=y("string_decoder/").StringDecoder),this.decoder=new Te(ne.encoding),this.encoding=ne.encoding)}function xe(ne){if(ee=ee||y("./_stream_duplex"),!(this instanceof xe))return new xe(ne);this._readableState=new be(ne,this),this.readable=!0,ne&&(typeof ne.read=="function"&&(this._read=ne.read),typeof ne.destroy=="function"&&(this._destroy=ne.destroy)),te.call(this)}Object.defineProperty(xe.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ne){this._readableState&&(this._readableState.destroyed=ne)}}),xe.prototype.destroy=ke.destroy,xe.prototype._undestroy=ke.undestroy,xe.prototype._destroy=function(ne,ce){this.push(null),ce(ne)},xe.prototype.push=function(ne,ce){var Ie=this._readableState,Fe;return Ie.objectMode?Fe=!0:typeof ne=="string"&&(ce=ce||Ie.defaultEncoding,ce!==Ie.encoding&&(ne=re.from(ne,ce),ce=""),Fe=!0),Ae(this,ne,ce,!1,Fe)},xe.prototype.unshift=function(ne){return Ae(this,ne,null,!0,!1)};function Ae(ne,ce,Ie,Fe,we){var Ee=ne._readableState;if(ce===null)Ee.reading=!1,Ye(ne,Ee);else{var Oe;we||(Oe=Be(Ee,ce)),Oe?ne.emit("error",Oe):Ee.objectMode||ce&&ce.length>0?(typeof ce!="string"&&!Ee.objectMode&&Object.getPrototypeOf(ce)!==re.prototype&&(ce=ue(ce)),Fe?Ee.endEmitted?ne.emit("error",new Error("stream.unshift() after end event")):Me(ne,Ee,ce,!0):Ee.ended?ne.emit("error",new Error("stream.push() after EOF")):(Ee.reading=!1,Ee.decoder&&!Ie?(ce=Ee.decoder.write(ce),Ee.objectMode||ce.length!==0?Me(ne,Ee,ce,!1):We(ne,Ee)):Me(ne,Ee,ce,!1))):Fe||(Ee.reading=!1)}return Ce(Ee)}function Me(ne,ce,Ie,Fe){ce.flowing&&ce.length===0&&!ce.sync?(ne.emit("data",Ie),ne.read(0)):(ce.length+=ce.objectMode?1:Ie.length,Fe?ce.buffer.unshift(Ie):ce.buffer.push(Ie),ce.needReadable&&it(ne)),We(ne,ce)}function Be(ne,ce){var Ie;return!he(ce)&&typeof ce!="string"&&ce!==void 0&&!ne.objectMode&&(Ie=new TypeError("Invalid non-string/buffer chunk")),Ie}function Ce(ne){return!ne.ended&&(ne.needReadable||ne.length<ne.highWaterMark||ne.length===0)}xe.prototype.isPaused=function(){return this._readableState.flowing===!1},xe.prototype.setEncoding=function(ne){return Te||(Te=y("string_decoder/").StringDecoder),this._readableState.decoder=new Te(ne),this._readableState.encoding=ne,this};var De=8388608;function He(ne){return ne>=De?ne=De:(ne--,ne|=ne>>>1,ne|=ne>>>2,ne|=ne>>>4,ne|=ne>>>8,ne|=ne>>>16,ne++),ne}function Ke(ne,ce){return ne<=0||ce.length===0&&ce.ended?0:ce.objectMode?1:ne!==ne?ce.flowing&&ce.length?ce.buffer.head.data.length:ce.length:(ne>ce.highWaterMark&&(ce.highWaterMark=He(ne)),ne<=ce.length?ne:ce.ended?ce.length:(ce.needReadable=!0,0))}xe.prototype.read=function(ne){fe("read",ne),ne=parseInt(ne,10);var ce=this._readableState,Ie=ne;if(ne!==0&&(ce.emittedReadable=!1),ne===0&&ce.needReadable&&(ce.length>=ce.highWaterMark||ce.ended))return fe("read: emitReadable",ce.length,ce.ended),ce.length===0&&ce.ended?$e(this):it(this),null;if(ne=Ke(ne,ce),ne===0&&ce.ended)return ce.length===0&&$e(this),null;var Fe=ce.needReadable;fe("need readable",Fe),(ce.length===0||ce.length-ne<ce.highWaterMark)&&(Fe=!0,fe("length less than watermark",Fe)),ce.ended||ce.reading?(Fe=!1,fe("reading or ended",Fe)):Fe&&(fe("do read"),ce.reading=!0,ce.sync=!0,ce.length===0&&(ce.needReadable=!0),this._read(ce.highWaterMark),ce.sync=!1,ce.reading||(ne=Ke(Ie,ce)));var we;return ne>0?we=at(ne,ce):we=null,we===null?(ce.needReadable=!0,ne=0):ce.length-=ne,ce.length===0&&(ce.ended||(ce.needReadable=!0),Ie!==ne&&ce.ended&&$e(this)),we!==null&&this.emit("data",we),we};function Ye(ne,ce){if(!ce.ended){if(ce.decoder){var Ie=ce.decoder.end();Ie&&Ie.length&&(ce.buffer.push(Ie),ce.length+=ce.objectMode?1:Ie.length)}ce.ended=!0,it(ne)}}function it(ne){var ce=ne._readableState;ce.needReadable=!1,ce.emittedReadable||(fe("emitReadable",ce.flowing),ce.emittedReadable=!0,ce.sync?oe.nextTick(Re,ne):Re(ne))}function Re(ne){fe("emit readable"),ne.emit("readable"),Ve(ne)}function We(ne,ce){ce.readingMore||(ce.readingMore=!0,oe.nextTick(et,ne,ce))}function et(ne,ce){for(var Ie=ce.length;!ce.reading&&!ce.flowing&&!ce.ended&&ce.length<ce.highWaterMark&&(fe("maybeReadMore read 0"),ne.read(0),Ie!==ce.length);)Ie=ce.length;ce.readingMore=!1}xe.prototype._read=function(ne){this.emit("error",new Error("_read() is not implemented"))},xe.prototype.pipe=function(ne,ce){var Ie=this,Fe=this._readableState;switch(Fe.pipesCount){case 0:Fe.pipes=ne;break;case 1:Fe.pipes=[Fe.pipes,ne];break;default:Fe.pipes.push(ne);break}Fe.pipesCount+=1,fe("pipe count=%d opts=%j",Fe.pipesCount,ce);var we=(!ce||ce.end!==!1)&&ne!==E.stdout&&ne!==E.stderr,Ee=we?Ue:gt;Fe.endEmitted?oe.nextTick(Ee):Ie.once("end",Ee),ne.on("unpipe",Oe);function Oe(pt,mt){fe("onunpipe"),pt===Ie&&mt&&mt.hasUnpiped===!1&&(mt.hasUnpiped=!0,ft())}function Ue(){fe("onend"),ne.end()}var tt=nt(Ie);ne.on("drain",tt);var Ge=!1;function ft(){fe("cleanup"),ne.removeListener("close",xt),ne.removeListener("finish",Et),ne.removeListener("drain",tt),ne.removeListener("error",kt),ne.removeListener("unpipe",Oe),Ie.removeListener("end",Ue),Ie.removeListener("end",gt),Ie.removeListener("data",vt),Ge=!0,Fe.awaitDrain&&(!ne._writableState||ne._writableState.needDrain)&&tt()}var ct=!1;Ie.on("data",vt);function vt(pt){fe("ondata"),ct=!1;var mt=ne.write(pt);mt===!1&&!ct&&((Fe.pipesCount===1&&Fe.pipes===ne||Fe.pipesCount>1&&je(Fe.pipes,ne)!==-1)&&!Ge&&(fe("false write response, pause",Ie._readableState.awaitDrain),Ie._readableState.awaitDrain++,ct=!0),Ie.pause())}function kt(pt){fe("onerror",pt),gt(),ne.removeListener("error",kt),x(ne,"error")===0&&ne.emit("error",pt)}_e(ne,"error",kt);function xt(){ne.removeListener("finish",Et),gt()}ne.once("close",xt);function Et(){fe("onfinish"),ne.removeListener("close",xt),gt()}ne.once("finish",Et);function gt(){fe("unpipe"),Ie.unpipe(ne)}return ne.emit("pipe",Ie),Fe.flowing||(fe("pipe resume"),Ie.resume()),ne};function nt(ne){return function(){var ce=ne._readableState;fe("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,ce.awaitDrain===0&&x(ne,"data")&&(ce.flowing=!0,Ve(ne))}}xe.prototype.unpipe=function(ne){var ce=this._readableState,Ie={hasUnpiped:!1};if(ce.pipesCount===0)return this;if(ce.pipesCount===1)return ne&&ne!==ce.pipes?this:(ne||(ne=ce.pipes),ce.pipes=null,ce.pipesCount=0,ce.flowing=!1,ne&&ne.emit("unpipe",this,Ie),this);if(!ne){var Fe=ce.pipes,we=ce.pipesCount;ce.pipes=null,ce.pipesCount=0,ce.flowing=!1;for(var Ee=0;Ee<we;Ee++)Fe[Ee].emit("unpipe",this,Ie);return this}var Oe=je(ce.pipes,ne);return Oe===-1?this:(ce.pipes.splice(Oe,1),ce.pipesCount-=1,ce.pipesCount===1&&(ce.pipes=ce.pipes[0]),ne.emit("unpipe",this,Ie),this)},xe.prototype.on=function(ne,ce){var Ie=te.prototype.on.call(this,ne,ce);if(ne==="data")this._readableState.flowing!==!1&&this.resume();else if(ne==="readable"){var Fe=this._readableState;!Fe.endEmitted&&!Fe.readableListening&&(Fe.readableListening=Fe.needReadable=!0,Fe.emittedReadable=!1,Fe.reading?Fe.length&&it(this):oe.nextTick(rt,this))}return Ie},xe.prototype.addListener=xe.prototype.on;function rt(ne){fe("readable nexttick read 0"),ne.read(0)}xe.prototype.resume=function(){var ne=this._readableState;return ne.flowing||(fe("resume"),ne.flowing=!0,Xe(this,ne)),this};function Xe(ne,ce){ce.resumeScheduled||(ce.resumeScheduled=!0,oe.nextTick(Je,ne,ce))}function Je(ne,ce){ce.reading||(fe("resume read 0"),ne.read(0)),ce.resumeScheduled=!1,ce.awaitDrain=0,ne.emit("resume"),Ve(ne),ce.flowing&&!ce.reading&&ne.read(0)}xe.prototype.pause=function(){return fe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(fe("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ve(ne){var ce=ne._readableState;for(fe("flow",ce.flowing);ce.flowing&&ne.read()!==null;);}xe.prototype.wrap=function(ne){var ce=this,Ie=this._readableState,Fe=!1;ne.on("end",function(){if(fe("wrapped end"),Ie.decoder&&!Ie.ended){var Oe=Ie.decoder.end();Oe&&Oe.length&&ce.push(Oe)}ce.push(null)}),ne.on("data",function(Oe){if(fe("wrapped data"),Ie.decoder&&(Oe=Ie.decoder.write(Oe)),!(Ie.objectMode&&Oe==null)&&!(!Ie.objectMode&&(!Oe||!Oe.length))){var Ue=ce.push(Oe);Ue||(Fe=!0,ne.pause())}});for(var we in ne)this[we]===void 0&&typeof ne[we]=="function"&&(this[we]=function(Oe){return function(){return ne[Oe].apply(ne,arguments)}}(we));for(var Ee=0;Ee<Pe.length;Ee++)ne.on(Pe[Ee],this.emit.bind(this,Pe[Ee]));return this._read=function(Oe){fe("wrapped _read",Oe),Fe&&(Fe=!1,ne.resume())},this},Object.defineProperty(xe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),xe._fromList=at;function at(ne,ce){if(ce.length===0)return null;var Ie;return ce.objectMode?Ie=ce.buffer.shift():!ne||ne>=ce.length?(ce.decoder?Ie=ce.buffer.join(""):ce.buffer.length===1?Ie=ce.buffer.head.data:Ie=ce.buffer.concat(ce.length),ce.buffer.clear()):Ie=Qe(ne,ce.buffer,ce.decoder),Ie}function Qe(ne,ce,Ie){var Fe;return ne<ce.head.data.length?(Fe=ce.head.data.slice(0,ne),ce.head.data=ce.head.data.slice(ne)):ne===ce.head.data.length?Fe=ce.shift():Fe=Ie?ut(ne,ce):st(ne,ce),Fe}function ut(ne,ce){var Ie=ce.head,Fe=1,we=Ie.data;for(ne-=we.length;Ie=Ie.next;){var Ee=Ie.data,Oe=ne>Ee.length?Ee.length:ne;if(Oe===Ee.length?we+=Ee:we+=Ee.slice(0,ne),ne-=Oe,ne===0){Oe===Ee.length?(++Fe,Ie.next?ce.head=Ie.next:ce.head=ce.tail=null):(ce.head=Ie,Ie.data=Ee.slice(Oe));break}++Fe}return ce.length-=Fe,we}function st(ne,ce){var Ie=re.allocUnsafe(ne),Fe=ce.head,we=1;for(Fe.data.copy(Ie),ne-=Fe.data.length;Fe=Fe.next;){var Ee=Fe.data,Oe=ne>Ee.length?Ee.length:ne;if(Ee.copy(Ie,Ie.length-ne,0,Oe),ne-=Oe,ne===0){Oe===Ee.length?(++we,Fe.next?ce.head=Fe.next:ce.head=ce.tail=null):(ce.head=Fe,Fe.data=Ee.slice(Oe));break}++we}return ce.length-=we,Ie}function $e(ne){var ce=ne._readableState;if(ce.length>0)throw new Error('"endReadable()" called on non-empty stream');ce.endEmitted||(ce.ended=!0,oe.nextTick(Ne,ce,ne))}function Ne(ne,ce){!ne.endEmitted&&ne.length===0&&(ne.endEmitted=!0,ce.readable=!1,ce.emit("end"))}function je(ne,ce){for(var Ie=0,Fe=ne.length;Ie<Fe;Ie++)if(ne[Ie]===ce)return Ie;return-1}}).call(this)}).call(this,y("_process"),typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":386,"./internal/streams/BufferList":391,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,events:344,inherits:364,isarray:370,"process-nextick-args":380,"safe-buffer":396,"string_decoder/":413,util:89}],389:[function(y,Se,ye){"use strict";Se.exports=se;var E=y("./_stream_duplex"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(se,E);function oe(x,te){var re=this._transformState;re.transforming=!1;var ae=re.writecb;if(!ae)return this.emit("error",new Error("write callback called multiple times"));re.writechunk=null,re.writecb=null,te!=null&&this.push(te),ae(x);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function se(x){if(!(this instanceof se))return new se(x);E.call(this,x),this._transformState={afterTransform:oe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,x&&(typeof x.transform=="function"&&(this._transform=x.transform),typeof x.flush=="function"&&(this._flush=x.flush)),this.on("prefinish",ee)}function ee(){var x=this;typeof this._flush=="function"?this._flush(function(te,re){de(x,te,re)}):de(this,null,null)}se.prototype.push=function(x,te){return this._transformState.needTransform=!1,E.prototype.push.call(this,x,te)},se.prototype._transform=function(x,te,re){throw new Error("_transform() is not implemented")},se.prototype._write=function(x,te,re){var ae=this._transformState;if(ae.writecb=re,ae.writechunk=x,ae.writeencoding=te,!ae.transforming){var ue=this._readableState;(ae.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},se.prototype._read=function(x){var te=this._transformState;te.writechunk!==null&&te.writecb&&!te.transforming?(te.transforming=!0,this._transform(te.writechunk,te.writeencoding,te.afterTransform)):te.needTransform=!0},se.prototype._destroy=function(x,te){var re=this;E.prototype._destroy.call(this,x,function(ae){te(ae),re.emit("close")})};function de(x,te,re){if(te)return x.emit("error",te);if(re!=null&&x.push(re),x._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(x._transformState.transforming)throw new Error("Calling transform done when still transforming");return x.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(y,Se,ye){(function(E,z,oe){(function(){"use strict";var se=y("process-nextick-args");Se.exports=_e;function ee(Je,Ve,at){this.chunk=Je,this.encoding=Ve,this.callback=at,this.next=null}function de(Je){var Ve=this;this.next=null,this.entry=null,this.finish=function(){Xe(Ve,Je)}}var x=!E.browser&&["v0.10","v0.9."].indexOf(E.version.slice(0,5))>-1?oe:se.nextTick,te;_e.WritableState=Te;var re=Object.create(y("core-util-is"));re.inherits=y("inherits");var ae={deprecate:y("util-deprecate")},ue=y("./internal/streams/stream"),he=y("safe-buffer").Buffer,pe=z.Uint8Array||function(){};function me(Je){return he.from(Je)}function fe(Je){return he.isBuffer(Je)||Je instanceof pe}var ve=y("./internal/streams/destroy");re.inherits(_e,ue);function ke(){}function Te(Je,Ve){te=te||y("./_stream_duplex"),Je=Je||{};var at=Ve instanceof te;this.objectMode=!!Je.objectMode,at&&(this.objectMode=this.objectMode||!!Je.writableObjectMode);var Qe=Je.highWaterMark,ut=Je.writableHighWaterMark,st=this.objectMode?16:16*1024;Qe||Qe===0?this.highWaterMark=Qe:at&&(ut||ut===0)?this.highWaterMark=ut:this.highWaterMark=st,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var $e=Je.decodeStrings===!1;this.decodeStrings=!$e,this.defaultEncoding=Je.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ne){He(Ve,Ne)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new de(this)}Te.prototype.getBuffer=function(){for(var Ve=this.bufferedRequest,at=[];Ve;)at.push(Ve),Ve=Ve.next;return at},function(){try{Object.defineProperty(Te.prototype,"buffer",{get:ae.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Je){}}();var Pe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pe=Function.prototype[Symbol.hasInstance],Object.defineProperty(_e,Symbol.hasInstance,{value:function(Je){return Pe.call(this,Je)?!0:this!==_e?!1:Je&&Je._writableState instanceof Te}})):Pe=function(Je){return Je instanceof this};function _e(Je){if(te=te||y("./_stream_duplex"),!Pe.call(_e,this)&&!(this instanceof te))return new _e(Je);this._writableState=new Te(Je,this),this.writable=!0,Je&&(typeof Je.write=="function"&&(this._write=Je.write),typeof Je.writev=="function"&&(this._writev=Je.writev),typeof Je.destroy=="function"&&(this._destroy=Je.destroy),typeof Je.final=="function"&&(this._final=Je.final)),ue.call(this)}_e.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function be(Je,Ve){var at=new Error("write after end");Je.emit("error",at),se.nextTick(Ve,at)}function xe(Je,Ve,at,Qe){var ut=!0,st=!1;return at===null?st=new TypeError("May not write null values to stream"):typeof at!="string"&&at!==void 0&&!Ve.objectMode&&(st=new TypeError("Invalid non-string/buffer chunk")),st&&(Je.emit("error",st),se.nextTick(Qe,st),ut=!1),ut}_e.prototype.write=function(Je,Ve,at){var Qe=this._writableState,ut=!1,st=!Qe.objectMode&&fe(Je);return st&&!he.isBuffer(Je)&&(Je=me(Je)),typeof Ve=="function"&&(at=Ve,Ve=null),st?Ve="buffer":Ve||(Ve=Qe.defaultEncoding),typeof at!="function"&&(at=ke),Qe.ended?be(this,at):(st||xe(this,Qe,Je,at))&&(Qe.pendingcb++,ut=Me(this,Qe,st,Je,Ve,at)),ut},_e.prototype.cork=function(){var Je=this._writableState;Je.corked++},_e.prototype.uncork=function(){var Je=this._writableState;Je.corked&&(Je.corked--,!Je.writing&&!Je.corked&&!Je.finished&&!Je.bufferProcessing&&Je.bufferedRequest&&it(this,Je))},_e.prototype.setDefaultEncoding=function(Ve){if(typeof Ve=="string"&&(Ve=Ve.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ve+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ve);return this._writableState.defaultEncoding=Ve,this};function Ae(Je,Ve,at){return!Je.objectMode&&Je.decodeStrings!==!1&&typeof Ve=="string"&&(Ve=he.from(Ve,at)),Ve}Object.defineProperty(_e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Me(Je,Ve,at,Qe,ut,st){if(!at){var $e=Ae(Ve,Qe,ut);Qe!==$e&&(at=!0,ut="buffer",Qe=$e)}var Ne=Ve.objectMode?1:Qe.length;Ve.length+=Ne;var je=Ve.length<Ve.highWaterMark;if(je||(Ve.needDrain=!0),Ve.writing||Ve.corked){var ne=Ve.lastBufferedRequest;Ve.lastBufferedRequest={chunk:Qe,encoding:ut,isBuf:at,callback:st,next:null},ne?ne.next=Ve.lastBufferedRequest:Ve.bufferedRequest=Ve.lastBufferedRequest,Ve.bufferedRequestCount+=1}else Be(Je,Ve,!1,Ne,Qe,ut,st);return je}function Be(Je,Ve,at,Qe,ut,st,$e){Ve.writelen=Qe,Ve.writecb=$e,Ve.writing=!0,Ve.sync=!0,at?Je._writev(ut,Ve.onwrite):Je._write(ut,st,Ve.onwrite),Ve.sync=!1}function Ce(Je,Ve,at,Qe,ut){--Ve.pendingcb,at?(se.nextTick(ut,Qe),se.nextTick(nt,Je,Ve),Je._writableState.errorEmitted=!0,Je.emit("error",Qe)):(ut(Qe),Je._writableState.errorEmitted=!0,Je.emit("error",Qe),nt(Je,Ve))}function De(Je){Je.writing=!1,Je.writecb=null,Je.length-=Je.writelen,Je.writelen=0}function He(Je,Ve){var at=Je._writableState,Qe=at.sync,ut=at.writecb;if(De(at),Ve)Ce(Je,at,Qe,Ve,ut);else{var st=Re(at);!st&&!at.corked&&!at.bufferProcessing&&at.bufferedRequest&&it(Je,at),Qe?x(Ke,Je,at,st,ut):Ke(Je,at,st,ut)}}function Ke(Je,Ve,at,Qe){at||Ye(Je,Ve),Ve.pendingcb--,Qe(),nt(Je,Ve)}function Ye(Je,Ve){Ve.length===0&&Ve.needDrain&&(Ve.needDrain=!1,Je.emit("drain"))}function it(Je,Ve){Ve.bufferProcessing=!0;var at=Ve.bufferedRequest;if(Je._writev&&at&&at.next){var Qe=Ve.bufferedRequestCount,ut=new Array(Qe),st=Ve.corkedRequestsFree;st.entry=at;for(var $e=0,Ne=!0;at;)ut[$e]=at,at.isBuf||(Ne=!1),at=at.next,$e+=1;ut.allBuffers=Ne,Be(Je,Ve,!0,Ve.length,ut,"",st.finish),Ve.pendingcb++,Ve.lastBufferedRequest=null,st.next?(Ve.corkedRequestsFree=st.next,st.next=null):Ve.corkedRequestsFree=new de(Ve),Ve.bufferedRequestCount=0}else{for(;at;){var je=at.chunk,ne=at.encoding,ce=at.callback,Ie=Ve.objectMode?1:je.length;if(Be(Je,Ve,!1,Ie,je,ne,ce),at=at.next,Ve.bufferedRequestCount--,Ve.writing)break}at===null&&(Ve.lastBufferedRequest=null)}Ve.bufferedRequest=at,Ve.bufferProcessing=!1}_e.prototype._write=function(Je,Ve,at){at(new Error("_write() is not implemented"))},_e.prototype._writev=null,_e.prototype.end=function(Je,Ve,at){var Qe=this._writableState;typeof Je=="function"?(at=Je,Je=null,Ve=null):typeof Ve=="function"&&(at=Ve,Ve=null),Je!=null&&this.write(Je,Ve),Qe.corked&&(Qe.corked=1,this.uncork()),!Qe.ending&&!Qe.finished&&rt(this,Qe,at)};function Re(Je){return Je.ending&&Je.length===0&&Je.bufferedRequest===null&&!Je.finished&&!Je.writing}function We(Je,Ve){Je._final(function(at){Ve.pendingcb--,at&&Je.emit("error",at),Ve.prefinished=!0,Je.emit("prefinish"),nt(Je,Ve)})}function et(Je,Ve){!Ve.prefinished&&!Ve.finalCalled&&(typeof Je._final=="function"?(Ve.pendingcb++,Ve.finalCalled=!0,se.nextTick(We,Je,Ve)):(Ve.prefinished=!0,Je.emit("prefinish")))}function nt(Je,Ve){var at=Re(Ve);return at&&(et(Je,Ve),Ve.pendingcb===0&&(Ve.finished=!0,Je.emit("finish"))),at}function rt(Je,Ve,at){Ve.ending=!0,nt(Je,Ve),at&&(Ve.finished?se.nextTick(at):Je.once("finish",at)),Ve.ended=!0,Je.writable=!1}function Xe(Je,Ve,at){var Qe=Je.entry;for(Je.entry=null;Qe;){var ut=Qe.callback;Ve.pendingcb--,ut(at),Qe=Qe.next}Ve.corkedRequestsFree?Ve.corkedRequestsFree.next=Je:Ve.corkedRequestsFree=Je}Object.defineProperty(_e.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Je){this._writableState&&(this._writableState.destroyed=Je)}}),_e.prototype.destroy=ve.destroy,_e.prototype._undestroy=ve.undestroy,_e.prototype._destroy=function(Je,Ve){this.end(),Ve(Je)}}).call(this)}).call(this,y("_process"),typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("timers").setImmediate)},{"./_stream_duplex":386,"./internal/streams/destroy":392,"./internal/streams/stream":393,_process:467,"core-util-is":341,inherits:364,"process-nextick-args":380,"safe-buffer":396,timers:414,"util-deprecate":416}],391:[function(y,Se,ye){"use strict";function E(ee,de){if(!(ee instanceof de))throw new TypeError("Cannot call a class as a function")}var z=y("safe-buffer").Buffer,oe=y("util");function se(ee,de,x){ee.copy(de,x)}Se.exports=function(){function ee(){E(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(x){var te={data:x,next:null};this.length>0?this.tail.next=te:this.head=te,this.tail=te,++this.length},ee.prototype.unshift=function(x){var te={data:x,next:this.head};this.length===0&&(this.tail=te),this.head=te,++this.length},ee.prototype.shift=function(){if(this.length!==0){var x=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,x}},ee.prototype.clear=function(){this.head=this.tail=null,this.length=0},ee.prototype.join=function(x){if(this.length===0)return"";for(var te=this.head,re=""+te.data;te=te.next;)re+=x+te.data;return re},ee.prototype.concat=function(x){if(this.length===0)return z.alloc(0);if(this.length===1)return this.head.data;for(var te=z.allocUnsafe(x>>>0),re=this.head,ae=0;re;)se(re.data,te,ae),ae+=re.data.length,re=re.next;return te},ee}(),oe&&oe.inspect&&oe.inspect.custom&&(Se.exports.prototype[oe.inspect.custom]=function(){var ee=oe.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(y,Se,ye){"use strict";var E=y("process-nextick-args");function z(ee,de){var x=this,te=this._readableState&&this._readableState.destroyed,re=this._writableState&&this._writableState.destroyed;return te||re?(de?de(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&E.nextTick(se,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(ae){!de&&ae?(E.nextTick(se,x,ae),x._writableState&&(x._writableState.errorEmitted=!0)):de&&de(ae)}),this)}function oe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function se(ee,de){ee.emit("error",de)}Se.exports={destroy:z,undestroy:oe}},{"process-nextick-args":380}],393:[function(y,Se,ye){Se.exports=y("events").EventEmitter},{events:344}],394:[function(y,Se,ye){ye=Se.exports=y("./lib/_stream_readable.js"),ye.Stream=ye,ye.Readable=ye,ye.Writable=y("./lib/_stream_writable.js"),ye.Duplex=y("./lib/_stream_duplex.js"),ye.Transform=y("./lib/_stream_transform.js"),ye.PassThrough=y("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":386,"./lib/_stream_passthrough.js":387,"./lib/_stream_readable.js":388,"./lib/_stream_transform.js":389,"./lib/_stream_writable.js":390}],395:[function(y,Se,ye){var E=function(z){"use strict";var oe=Object.prototype,se=oe.hasOwnProperty,ee,de=typeof Symbol=="function"?Symbol:{},x=de.iterator||"@@iterator",te=de.asyncIterator||"@@asyncIterator",re=de.toStringTag||"@@toStringTag";function ae(et,nt,rt){return Object.defineProperty(et,nt,{value:rt,enumerable:!0,configurable:!0,writable:!0}),et[nt]}try{ae({},"")}catch(et){ae=function(nt,rt,Xe){return nt[rt]=Xe}}function ue(et,nt,rt,Xe){var Je=nt&&nt.prototype instanceof Te?nt:Te,Ve=Object.create(Je.prototype),at=new it(Xe||[]);return Ve._invoke=De(et,rt,at),Ve}z.wrap=ue;function he(et,nt,rt){try{return{type:"normal",arg:et.call(nt,rt)}}catch(Xe){return{type:"throw",arg:Xe}}}var pe="suspendedStart",me="suspendedYield",fe="executing",ve="completed",ke={};function Te(){}function Pe(){}function _e(){}var be={};ae(be,x,function(){return this});var xe=Object.getPrototypeOf,Ae=xe&&xe(xe(Re([])));Ae&&Ae!==oe&&se.call(Ae,x)&&(be=Ae);var Me=_e.prototype=Te.prototype=Object.create(be);Pe.prototype=_e,ae(Me,"constructor",_e),ae(_e,"constructor",Pe),Pe.displayName=ae(_e,re,"GeneratorFunction");function Be(et){["next","throw","return"].forEach(function(nt){ae(et,nt,function(rt){return this._invoke(nt,rt)})})}z.isGeneratorFunction=function(et){var nt=typeof et=="function"&&et.constructor;return nt?nt===Pe||(nt.displayName||nt.name)==="GeneratorFunction":!1},z.mark=function(et){return Object.setPrototypeOf?Object.setPrototypeOf(et,_e):(et.__proto__=_e,ae(et,re,"GeneratorFunction")),et.prototype=Object.create(Me),et},z.awrap=function(et){return{__await:et}};function Ce(et,nt){function rt(Ve,at,Qe,ut){var st=he(et[Ve],et,at);if(st.type==="throw")ut(st.arg);else{var $e=st.arg,Ne=$e.value;return Ne&&typeof Ne=="object"&&se.call(Ne,"__await")?nt.resolve(Ne.__await).then(function(je){rt("next",je,Qe,ut)},function(je){rt("throw",je,Qe,ut)}):nt.resolve(Ne).then(function(je){$e.value=je,Qe($e)},function(je){return rt("throw",je,Qe,ut)})}}var Xe;function Je(Ve,at){function Qe(){return new nt(function(ut,st){rt(Ve,at,ut,st)})}return Xe=Xe?Xe.then(Qe,Qe):Qe()}this._invoke=Je}Be(Ce.prototype),ae(Ce.prototype,te,function(){return this}),z.AsyncIterator=Ce,z.async=function(et,nt,rt,Xe,Je){Je===void 0&&(Je=Promise);var Ve=new Ce(ue(et,nt,rt,Xe),Je);return z.isGeneratorFunction(nt)?Ve:Ve.next().then(function(at){return at.done?at.value:Ve.next()})};function De(et,nt,rt){var Xe=pe;return function(Ve,at){if(Xe===fe)throw new Error("Generator is already running");if(Xe===ve){if(Ve==="throw")throw at;return We()}for(rt.method=Ve,rt.arg=at;;){var Qe=rt.delegate;if(Qe){var ut=He(Qe,rt);if(ut){if(ut===ke)continue;return ut}}if(rt.method==="next")rt.sent=rt._sent=rt.arg;else if(rt.method==="throw"){if(Xe===pe)throw Xe=ve,rt.arg;rt.dispatchException(rt.arg)}else rt.method==="return"&&rt.abrupt("return",rt.arg);Xe=fe;var st=he(et,nt,rt);if(st.type==="normal"){if(Xe=rt.done?ve:me,st.arg===ke)continue;return{value:st.arg,done:rt.done}}else st.type==="throw"&&(Xe=ve,rt.method="throw",rt.arg=st.arg)}}}function He(et,nt){var rt=et.iterator[nt.method];if(rt===ee){if(nt.delegate=null,nt.method==="throw"){if(et.iterator.return&&(nt.method="return",nt.arg=ee,He(et,nt),nt.method==="throw"))return ke;nt.method="throw",nt.arg=new TypeError("The iterator does not provide a 'throw' method")}return ke}var Xe=he(rt,et.iterator,nt.arg);if(Xe.type==="throw")return nt.method="throw",nt.arg=Xe.arg,nt.delegate=null,ke;var Je=Xe.arg;if(!Je)return nt.method="throw",nt.arg=new TypeError("iterator result is not an object"),nt.delegate=null,ke;if(Je.done)nt[et.resultName]=Je.value,nt.next=et.nextLoc,nt.method!=="return"&&(nt.method="next",nt.arg=ee);else return Je;return nt.delegate=null,ke}Be(Me),ae(Me,re,"Generator"),ae(Me,x,function(){return this}),ae(Me,"toString",function(){return"[object Generator]"});function Ke(et){var nt={tryLoc:et[0]};1 in et&&(nt.catchLoc=et[1]),2 in et&&(nt.finallyLoc=et[2],nt.afterLoc=et[3]),this.tryEntries.push(nt)}function Ye(et){var nt=et.completion||{};nt.type="normal",delete nt.arg,et.completion=nt}function it(et){this.tryEntries=[{tryLoc:"root"}],et.forEach(Ke,this),this.reset(!0)}z.keys=function(et){var nt=[];for(var rt in et)nt.push(rt);return nt.reverse(),function Xe(){for(;nt.length;){var Je=nt.pop();if(Je in et)return Xe.value=Je,Xe.done=!1,Xe}return Xe.done=!0,Xe}};function Re(et){if(et){var nt=et[x];if(nt)return nt.call(et);if(typeof et.next=="function")return et;if(!isNaN(et.length)){var rt=-1,Xe=function Je(){for(;++rt<et.length;)if(se.call(et,rt))return Je.value=et[rt],Je.done=!1,Je;return Je.value=ee,Je.done=!0,Je};return Xe.next=Xe}}return{next:We}}z.values=Re;function We(){return{value:ee,done:!0}}return it.prototype={constructor:it,reset:function(et){if(this.prev=0,this.next=0,this.sent=this._sent=ee,this.done=!1,this.delegate=null,this.method="next",this.arg=ee,this.tryEntries.forEach(Ye),!et)for(var nt in this)nt.charAt(0)==="t"&&se.call(this,nt)&&!isNaN(+nt.slice(1))&&(this[nt]=ee)},stop:function(){this.done=!0;var et=this.tryEntries[0],nt=et.completion;if(nt.type==="throw")throw nt.arg;return this.rval},dispatchException:function(et){if(this.done)throw et;var nt=this;function rt(ut,st){return Ve.type="throw",Ve.arg=et,nt.next=ut,st&&(nt.method="next",nt.arg=ee),!!st}for(var Xe=this.tryEntries.length-1;Xe>=0;--Xe){var Je=this.tryEntries[Xe],Ve=Je.completion;if(Je.tryLoc==="root")return rt("end");if(Je.tryLoc<=this.prev){var at=se.call(Je,"catchLoc"),Qe=se.call(Je,"finallyLoc");if(at&&Qe){if(this.prev<Je.catchLoc)return rt(Je.catchLoc,!0);if(this.prev<Je.finallyLoc)return rt(Je.finallyLoc)}else if(at){if(this.prev<Je.catchLoc)return rt(Je.catchLoc,!0)}else if(Qe){if(this.prev<Je.finallyLoc)return rt(Je.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(et,nt){for(var rt=this.tryEntries.length-1;rt>=0;--rt){var Xe=this.tryEntries[rt];if(Xe.tryLoc<=this.prev&&se.call(Xe,"finallyLoc")&&this.prev<Xe.finallyLoc){var Je=Xe;break}}Je&&(et==="break"||et==="continue")&&Je.tryLoc<=nt&&nt<=Je.finallyLoc&&(Je=null);var Ve=Je?Je.completion:{};return Ve.type=et,Ve.arg=nt,Je?(this.method="next",this.next=Je.finallyLoc,ke):this.complete(Ve)},complete:function(et,nt){if(et.type==="throw")throw et.arg;return et.type==="break"||et.type==="continue"?this.next=et.arg:et.type==="return"?(this.rval=this.arg=et.arg,this.method="return",this.next="end"):et.type==="normal"&&nt&&(this.next=nt),ke},finish:function(et){for(var nt=this.tryEntries.length-1;nt>=0;--nt){var rt=this.tryEntries[nt];if(rt.finallyLoc===et)return this.complete(rt.completion,rt.afterLoc),Ye(rt),ke}},catch:function(et){for(var nt=this.tryEntries.length-1;nt>=0;--nt){var rt=this.tryEntries[nt];if(rt.tryLoc===et){var Xe=rt.completion;if(Xe.type==="throw"){var Je=Xe.arg;Ye(rt)}return Je}}throw new Error("illegal catch attempt")},delegateYield:function(et,nt,rt){return this.delegate={iterator:Re(et),resultName:nt,nextLoc:rt},this.method==="next"&&(this.arg=ee),ke}},z}(typeof Se=="object"?Se.exports:{});try{regeneratorRuntime=E}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=E:Function("r","regeneratorRuntime = r")(E)}},{}],396:[function(y,Se,ye){var E=y("buffer"),z=E.Buffer;function oe(ee,de){for(var x in ee)de[x]=ee[x]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?Se.exports=E:(oe(E,ye),ye.Buffer=se);function se(ee,de,x){return z(ee,de,x)}oe(z,se),se.from=function(ee,de,x){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return z(ee,de,x)},se.alloc=function(ee,de,x){if(typeof ee!="number")throw new TypeError("Argument must be a number");var te=z(ee);return de!==void 0?typeof x=="string"?te.fill(de,x):te.fill(de):te.fill(0),te},se.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z(ee)},se.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return E.SlowBuffer(ee)}},{buffer:90}],397:[function(y,Se,ye){(function(E){(function(){(function(z){z.parser=function($e,Ne){return new se($e,Ne)},z.SAXParser=se,z.SAXStream=ue,z.createStream=ae,z.MAX_BUFFER_LENGTH=64*1024;var oe=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];z.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function se($e,Ne){if(!(this instanceof se))return new se($e,Ne);var je=this;de(je),je.q=je.c="",je.bufferCheckPosition=z.MAX_BUFFER_LENGTH,je.opt=Ne||{},je.opt.lowercase=je.opt.lowercase||je.opt.lowercasetags,je.looseCase=je.opt.lowercase?"toLowerCase":"toUpperCase",je.tags=[],je.closed=je.closedRoot=je.sawRoot=!1,je.tag=je.error=null,je.strict=!!$e,je.noscript=!!($e||je.opt.noscript),je.state=Ce.BEGIN,je.strictEntities=je.opt.strictEntities,je.ENTITIES=je.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),je.attribList=[],je.opt.xmlns&&(je.ns=Object.create(ve)),je.trackPosition=je.opt.position!==!1,je.trackPosition&&(je.position=je.line=je.column=0),He(je,"onready")}Object.create||(Object.create=function($e){function Ne(){}Ne.prototype=$e;var je=new Ne;return je}),Object.keys||(Object.keys=function($e){var Ne=[];for(var je in $e)$e.hasOwnProperty(je)&&Ne.push(je);return Ne});function ee($e){for(var Ne=Math.max(z.MAX_BUFFER_LENGTH,10),je=0,ne=0,ce=oe.length;ne<ce;ne++){var Ie=$e[oe[ne]].length;if(Ie>Ne)switch(oe[ne]){case"textNode":Ye($e);break;case"cdata":Ke($e,"oncdata",$e.cdata),$e.cdata="";break;case"script":Ke($e,"onscript",$e.script),$e.script="";break;default:Re($e,"Max buffer length exceeded: "+oe[ne])}je=Math.max(je,Ie)}var Fe=z.MAX_BUFFER_LENGTH-je;$e.bufferCheckPosition=Fe+$e.position}function de($e){for(var Ne=0,je=oe.length;Ne<je;Ne++)$e[oe[Ne]]=""}function x($e){Ye($e),$e.cdata!==""&&(Ke($e,"oncdata",$e.cdata),$e.cdata=""),$e.script!==""&&(Ke($e,"onscript",$e.script),$e.script="")}se.prototype={end:function(){We(this)},write:st,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){x(this)}};var te;try{te=y("stream").Stream}catch($e){te=function(){}}var re=z.EVENTS.filter(function($e){return $e!=="error"&&$e!=="end"});function ae($e,Ne){return new ue($e,Ne)}function ue($e,Ne){if(!(this instanceof ue))return new ue($e,Ne);te.apply(this),this._parser=new se($e,Ne),this.writable=!0,this.readable=!0;var je=this;this._parser.onend=function(){je.emit("end")},this._parser.onerror=function(ne){je.emit("error",ne),je._parser.error=null},this._decoder=null,re.forEach(function(ne){Object.defineProperty(je,"on"+ne,{get:function(){return je._parser["on"+ne]},set:function(ce){if(!ce)return je.removeAllListeners(ne),je._parser["on"+ne]=ce,ce;je.on(ne,ce)},enumerable:!0,configurable:!1})})}ue.prototype=Object.create(te.prototype,{constructor:{value:ue}}),ue.prototype.write=function($e){if(typeof E=="function"&&typeof E.isBuffer=="function"&&E.isBuffer($e)){if(!this._decoder){var Ne=y("string_decoder").StringDecoder;this._decoder=new Ne("utf8")}$e=this._decoder.write($e)}return this._parser.write($e.toString()),this.emit("data",$e),!0},ue.prototype.end=function($e){return $e&&$e.length&&this.write($e),this._parser.end(),!0},ue.prototype.on=function($e,Ne){var je=this;return!je._parser["on"+$e]&&re.indexOf($e)!==-1&&(je._parser["on"+$e]=function(){var ne=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ne.splice(0,0,$e),je.emit.apply(je,ne)}),te.prototype.on.call(je,$e,Ne)};var he="[CDATA[",pe="DOCTYPE",me="http://www.w3.org/XML/1998/namespace",fe="http://www.w3.org/2000/xmlns/",ve={xml:me,xmlns:fe},ke=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Te=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Pe=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,_e=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function be($e){return $e===" "||$e===`
`||$e==="\r"||$e===" "}function xe($e){return $e==='"'||$e==="'"}function Ae($e){return $e===">"||be($e)}function Me($e,Ne){return $e.test(Ne)}function Be($e,Ne){return!Me($e,Ne)}var Ce=0;z.STATE={BEGIN:Ce++,BEGIN_WHITESPACE:Ce++,TEXT:Ce++,TEXT_ENTITY:Ce++,OPEN_WAKA:Ce++,SGML_DECL:Ce++,SGML_DECL_QUOTED:Ce++,DOCTYPE:Ce++,DOCTYPE_QUOTED:Ce++,DOCTYPE_DTD:Ce++,DOCTYPE_DTD_QUOTED:Ce++,COMMENT_STARTING:Ce++,COMMENT:Ce++,COMMENT_ENDING:Ce++,COMMENT_ENDED:Ce++,CDATA:Ce++,CDATA_ENDING:Ce++,CDATA_ENDING_2:Ce++,PROC_INST:Ce++,PROC_INST_BODY:Ce++,PROC_INST_ENDING:Ce++,OPEN_TAG:Ce++,OPEN_TAG_SLASH:Ce++,ATTRIB:Ce++,ATTRIB_NAME:Ce++,ATTRIB_NAME_SAW_WHITE:Ce++,ATTRIB_VALUE:Ce++,ATTRIB_VALUE_QUOTED:Ce++,ATTRIB_VALUE_CLOSED:Ce++,ATTRIB_VALUE_UNQUOTED:Ce++,ATTRIB_VALUE_ENTITY_Q:Ce++,ATTRIB_VALUE_ENTITY_U:Ce++,CLOSE_TAG:Ce++,CLOSE_TAG_SAW_WHITE:Ce++,SCRIPT:Ce++,SCRIPT_ENDING:Ce++},z.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},z.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(z.ENTITIES).forEach(function($e){var Ne=z.ENTITIES[$e],je=typeof Ne=="number"?String.fromCharCode(Ne):Ne;z.ENTITIES[$e]=je});for(var De in z.STATE)z.STATE[z.STATE[De]]=De;Ce=z.STATE;function He($e,Ne,je){$e[Ne]&&$e[Ne](je)}function Ke($e,Ne,je){$e.textNode&&Ye($e),He($e,Ne,je)}function Ye($e){$e.textNode=it($e.opt,$e.textNode),$e.textNode&&He($e,"ontext",$e.textNode),$e.textNode=""}function it($e,Ne){return $e.trim&&(Ne=Ne.trim()),$e.normalize&&(Ne=Ne.replace(/\s+/g," ")),Ne}function Re($e,Ne){return Ye($e),$e.trackPosition&&(Ne+=`
Line: `+$e.line+`
Column: `+$e.column+`
Char: `+$e.c),Ne=new Error(Ne),$e.error=Ne,He($e,"onerror",Ne),$e}function We($e){return $e.sawRoot&&!$e.closedRoot&&et($e,"Unclosed root tag"),$e.state!==Ce.BEGIN&&$e.state!==Ce.BEGIN_WHITESPACE&&$e.state!==Ce.TEXT&&Re($e,"Unexpected end"),Ye($e),$e.c="",$e.closed=!0,He($e,"onend"),se.call($e,$e.strict,$e.opt),$e}function et($e,Ne){if(typeof $e!="object"||!($e instanceof se))throw new Error("bad call to strictFail");$e.strict&&Re($e,Ne)}function nt($e){$e.strict||($e.tagName=$e.tagName[$e.looseCase]());var Ne=$e.tags[$e.tags.length-1]||$e,je=$e.tag={name:$e.tagName,attributes:{}};$e.opt.xmlns&&(je.ns=Ne.ns),$e.attribList.length=0,Ke($e,"onopentagstart",je)}function rt($e,Ne){var je=$e.indexOf(":"),ne=je<0?["",$e]:$e.split(":"),ce=ne[0],Ie=ne[1];return Ne&&$e==="xmlns"&&(ce="xmlns",Ie=""),{prefix:ce,local:Ie}}function Xe($e){if($e.strict||($e.attribName=$e.attribName[$e.looseCase]()),$e.attribList.indexOf($e.attribName)!==-1||$e.tag.attributes.hasOwnProperty($e.attribName)){$e.attribName=$e.attribValue="";return}if($e.opt.xmlns){var Ne=rt($e.attribName,!0),je=Ne.prefix,ne=Ne.local;if(je==="xmlns")if(ne==="xml"&&$e.attribValue!==me)et($e,"xml: prefix must be bound to "+me+`
Actual: `+$e.attribValue);else if(ne==="xmlns"&&$e.attribValue!==fe)et($e,"xmlns: prefix must be bound to "+fe+`
Actual: `+$e.attribValue);else{var ce=$e.tag,Ie=$e.tags[$e.tags.length-1]||$e;ce.ns===Ie.ns&&(ce.ns=Object.create(Ie.ns)),ce.ns[ne]=$e.attribValue}$e.attribList.push([$e.attribName,$e.attribValue])}else $e.tag.attributes[$e.attribName]=$e.attribValue,Ke($e,"onattribute",{name:$e.attribName,value:$e.attribValue});$e.attribName=$e.attribValue=""}function Je($e,Ne){if($e.opt.xmlns){var je=$e.tag,ne=rt($e.tagName);je.prefix=ne.prefix,je.local=ne.local,je.uri=je.ns[ne.prefix]||"",je.prefix&&!je.uri&&(et($e,"Unbound namespace prefix: "+JSON.stringify($e.tagName)),je.uri=ne.prefix);var ce=$e.tags[$e.tags.length-1]||$e;je.ns&&ce.ns!==je.ns&&Object.keys(je.ns).forEach(function(vt){Ke($e,"onopennamespace",{prefix:vt,uri:je.ns[vt]})});for(var Ie=0,Fe=$e.attribList.length;Ie<Fe;Ie++){var we=$e.attribList[Ie],Ee=we[0],Oe=we[1],Ue=rt(Ee,!0),tt=Ue.prefix,Ge=Ue.local,ft=tt===""?"":je.ns[tt]||"",ct={name:Ee,value:Oe,prefix:tt,local:Ge,uri:ft};tt&&tt!=="xmlns"&&!ft&&(et($e,"Unbound namespace prefix: "+JSON.stringify(tt)),ct.uri=tt),$e.tag.attributes[Ee]=ct,Ke($e,"onattribute",ct)}$e.attribList.length=0}$e.tag.isSelfClosing=!!Ne,$e.sawRoot=!0,$e.tags.push($e.tag),Ke($e,"onopentag",$e.tag),Ne||(!$e.noscript&&$e.tagName.toLowerCase()==="script"?$e.state=Ce.SCRIPT:$e.state=Ce.TEXT,$e.tag=null,$e.tagName=""),$e.attribName=$e.attribValue="",$e.attribList.length=0}function Ve($e){if(!$e.tagName){et($e,"Weird empty close tag."),$e.textNode+="</>",$e.state=Ce.TEXT;return}if($e.script){if($e.tagName!=="script"){$e.script+="</"+$e.tagName+">",$e.tagName="",$e.state=Ce.SCRIPT;return}Ke($e,"onscript",$e.script),$e.script=""}var Ne=$e.tags.length,je=$e.tagName;$e.strict||(je=je[$e.looseCase]());for(var ne=je;Ne--;){var ce=$e.tags[Ne];if(ce.name!==ne)et($e,"Unexpected close tag");else break}if(Ne<0){et($e,"Unmatched closing tag: "+$e.tagName),$e.textNode+="</"+$e.tagName+">",$e.state=Ce.TEXT;return}$e.tagName=je;for(var Ie=$e.tags.length;Ie-- >Ne;){var Fe=$e.tag=$e.tags.pop();$e.tagName=$e.tag.name,Ke($e,"onclosetag",$e.tagName);var we={};for(var Ee in Fe.ns)we[Ee]=Fe.ns[Ee];var Oe=$e.tags[$e.tags.length-1]||$e;$e.opt.xmlns&&Fe.ns!==Oe.ns&&Object.keys(Fe.ns).forEach(function(Ue){var tt=Fe.ns[Ue];Ke($e,"onclosenamespace",{prefix:Ue,uri:tt})})}Ne===0&&($e.closedRoot=!0),$e.tagName=$e.attribValue=$e.attribName="",$e.attribList.length=0,$e.state=Ce.TEXT}function at($e){var Ne=$e.entity,je=Ne.toLowerCase(),ne,ce="";return $e.ENTITIES[Ne]?$e.ENTITIES[Ne]:$e.ENTITIES[je]?$e.ENTITIES[je]:(Ne=je,Ne.charAt(0)==="#"&&(Ne.charAt(1)==="x"?(Ne=Ne.slice(2),ne=parseInt(Ne,16),ce=ne.toString(16)):(Ne=Ne.slice(1),ne=parseInt(Ne,10),ce=ne.toString(10))),Ne=Ne.replace(/^0+/,""),isNaN(ne)||ce.toLowerCase()!==Ne?(et($e,"Invalid character entity"),"&"+$e.entity+";"):String.fromCodePoint(ne))}function Qe($e,Ne){Ne==="<"?($e.state=Ce.OPEN_WAKA,$e.startTagPosition=$e.position):be(Ne)||(et($e,"Non-whitespace before first tag."),$e.textNode=Ne,$e.state=Ce.TEXT)}function ut($e,Ne){var je="";return Ne<$e.length&&(je=$e.charAt(Ne)),je}function st($e){var Ne=this;if(this.error)throw this.error;if(Ne.closed)return Re(Ne,"Cannot write after close. Assign an onready handler.");if($e===null)return We(Ne);typeof $e=="object"&&($e=$e.toString());for(var je=0,ne="";ne=ut($e,je++),Ne.c=ne,!!ne;)switch(Ne.trackPosition&&(Ne.position++,ne===`
`?(Ne.line++,Ne.column=0):Ne.column++),Ne.state){case Ce.BEGIN:if(Ne.state=Ce.BEGIN_WHITESPACE,ne==="\uFEFF")continue;Qe(Ne,ne);continue;case Ce.BEGIN_WHITESPACE:Qe(Ne,ne);continue;case Ce.TEXT:if(Ne.sawRoot&&!Ne.closedRoot){for(var ce=je-1;ne&&ne!=="<"&&ne!=="&";)ne=ut($e,je++),ne&&Ne.trackPosition&&(Ne.position++,ne===`
`?(Ne.line++,Ne.column=0):Ne.column++);Ne.textNode+=$e.substring(ce,je-1)}ne==="<"&&!(Ne.sawRoot&&Ne.closedRoot&&!Ne.strict)?(Ne.state=Ce.OPEN_WAKA,Ne.startTagPosition=Ne.position):(!be(ne)&&(!Ne.sawRoot||Ne.closedRoot)&&et(Ne,"Text data outside of root node."),ne==="&"?Ne.state=Ce.TEXT_ENTITY:Ne.textNode+=ne);continue;case Ce.SCRIPT:ne==="<"?Ne.state=Ce.SCRIPT_ENDING:Ne.script+=ne;continue;case Ce.SCRIPT_ENDING:ne==="/"?Ne.state=Ce.CLOSE_TAG:(Ne.script+="<"+ne,Ne.state=Ce.SCRIPT);continue;case Ce.OPEN_WAKA:if(ne==="!")Ne.state=Ce.SGML_DECL,Ne.sgmlDecl="";else if(!be(ne))if(Me(ke,ne))Ne.state=Ce.OPEN_TAG,Ne.tagName=ne;else if(ne==="/")Ne.state=Ce.CLOSE_TAG,Ne.tagName="";else if(ne==="?")Ne.state=Ce.PROC_INST,Ne.procInstName=Ne.procInstBody="";else{if(et(Ne,"Unencoded <"),Ne.startTagPosition+1<Ne.position){var Ie=Ne.position-Ne.startTagPosition;ne=new Array(Ie).join(" ")+ne}Ne.textNode+="<"+ne,Ne.state=Ce.TEXT}continue;case Ce.SGML_DECL:(Ne.sgmlDecl+ne).toUpperCase()===he?(Ke(Ne,"onopencdata"),Ne.state=Ce.CDATA,Ne.sgmlDecl="",Ne.cdata=""):Ne.sgmlDecl+ne==="--"?(Ne.state=Ce.COMMENT,Ne.comment="",Ne.sgmlDecl=""):(Ne.sgmlDecl+ne).toUpperCase()===pe?(Ne.state=Ce.DOCTYPE,(Ne.doctype||Ne.sawRoot)&&et(Ne,"Inappropriately located doctype declaration"),Ne.doctype="",Ne.sgmlDecl=""):ne===">"?(Ke(Ne,"onsgmldeclaration",Ne.sgmlDecl),Ne.sgmlDecl="",Ne.state=Ce.TEXT):(xe(ne)&&(Ne.state=Ce.SGML_DECL_QUOTED),Ne.sgmlDecl+=ne);continue;case Ce.SGML_DECL_QUOTED:ne===Ne.q&&(Ne.state=Ce.SGML_DECL,Ne.q=""),Ne.sgmlDecl+=ne;continue;case Ce.DOCTYPE:ne===">"?(Ne.state=Ce.TEXT,Ke(Ne,"ondoctype",Ne.doctype),Ne.doctype=!0):(Ne.doctype+=ne,ne==="["?Ne.state=Ce.DOCTYPE_DTD:xe(ne)&&(Ne.state=Ce.DOCTYPE_QUOTED,Ne.q=ne));continue;case Ce.DOCTYPE_QUOTED:Ne.doctype+=ne,ne===Ne.q&&(Ne.q="",Ne.state=Ce.DOCTYPE);continue;case Ce.DOCTYPE_DTD:Ne.doctype+=ne,ne==="]"?Ne.state=Ce.DOCTYPE:xe(ne)&&(Ne.state=Ce.DOCTYPE_DTD_QUOTED,Ne.q=ne);continue;case Ce.DOCTYPE_DTD_QUOTED:Ne.doctype+=ne,ne===Ne.q&&(Ne.state=Ce.DOCTYPE_DTD,Ne.q="");continue;case Ce.COMMENT:ne==="-"?Ne.state=Ce.COMMENT_ENDING:Ne.comment+=ne;continue;case Ce.COMMENT_ENDING:ne==="-"?(Ne.state=Ce.COMMENT_ENDED,Ne.comment=it(Ne.opt,Ne.comment),Ne.comment&&Ke(Ne,"oncomment",Ne.comment),Ne.comment=""):(Ne.comment+="-"+ne,Ne.state=Ce.COMMENT);continue;case Ce.COMMENT_ENDED:ne!==">"?(et(Ne,"Malformed comment"),Ne.comment+="--"+ne,Ne.state=Ce.COMMENT):Ne.state=Ce.TEXT;continue;case Ce.CDATA:ne==="]"?Ne.state=Ce.CDATA_ENDING:Ne.cdata+=ne;continue;case Ce.CDATA_ENDING:ne==="]"?Ne.state=Ce.CDATA_ENDING_2:(Ne.cdata+="]"+ne,Ne.state=Ce.CDATA);continue;case Ce.CDATA_ENDING_2:ne===">"?(Ne.cdata&&Ke(Ne,"oncdata",Ne.cdata),Ke(Ne,"onclosecdata"),Ne.cdata="",Ne.state=Ce.TEXT):ne==="]"?Ne.cdata+="]":(Ne.cdata+="]]"+ne,Ne.state=Ce.CDATA);continue;case Ce.PROC_INST:ne==="?"?Ne.state=Ce.PROC_INST_ENDING:be(ne)?Ne.state=Ce.PROC_INST_BODY:Ne.procInstName+=ne;continue;case Ce.PROC_INST_BODY:if(!Ne.procInstBody&&be(ne))continue;ne==="?"?Ne.state=Ce.PROC_INST_ENDING:Ne.procInstBody+=ne;continue;case Ce.PROC_INST_ENDING:ne===">"?(Ke(Ne,"onprocessinginstruction",{name:Ne.procInstName,body:Ne.procInstBody}),Ne.procInstName=Ne.procInstBody="",Ne.state=Ce.TEXT):(Ne.procInstBody+="?"+ne,Ne.state=Ce.PROC_INST_BODY);continue;case Ce.OPEN_TAG:Me(Te,ne)?Ne.tagName+=ne:(nt(Ne),ne===">"?Je(Ne):ne==="/"?Ne.state=Ce.OPEN_TAG_SLASH:(be(ne)||et(Ne,"Invalid character in tag name"),Ne.state=Ce.ATTRIB));continue;case Ce.OPEN_TAG_SLASH:ne===">"?(Je(Ne,!0),Ve(Ne)):(et(Ne,"Forward-slash in opening tag not followed by >"),Ne.state=Ce.ATTRIB);continue;case Ce.ATTRIB:if(be(ne))continue;ne===">"?Je(Ne):ne==="/"?Ne.state=Ce.OPEN_TAG_SLASH:Me(ke,ne)?(Ne.attribName=ne,Ne.attribValue="",Ne.state=Ce.ATTRIB_NAME):et(Ne,"Invalid attribute name");continue;case Ce.ATTRIB_NAME:ne==="="?Ne.state=Ce.ATTRIB_VALUE:ne===">"?(et(Ne,"Attribute without value"),Ne.attribValue=Ne.attribName,Xe(Ne),Je(Ne)):be(ne)?Ne.state=Ce.ATTRIB_NAME_SAW_WHITE:Me(Te,ne)?Ne.attribName+=ne:et(Ne,"Invalid attribute name");continue;case Ce.ATTRIB_NAME_SAW_WHITE:if(ne==="=")Ne.state=Ce.ATTRIB_VALUE;else{if(be(ne))continue;et(Ne,"Attribute without value"),Ne.tag.attributes[Ne.attribName]="",Ne.attribValue="",Ke(Ne,"onattribute",{name:Ne.attribName,value:""}),Ne.attribName="",ne===">"?Je(Ne):Me(ke,ne)?(Ne.attribName=ne,Ne.state=Ce.ATTRIB_NAME):(et(Ne,"Invalid attribute name"),Ne.state=Ce.ATTRIB)}continue;case Ce.ATTRIB_VALUE:if(be(ne))continue;xe(ne)?(Ne.q=ne,Ne.state=Ce.ATTRIB_VALUE_QUOTED):(et(Ne,"Unquoted attribute value"),Ne.state=Ce.ATTRIB_VALUE_UNQUOTED,Ne.attribValue=ne);continue;case Ce.ATTRIB_VALUE_QUOTED:if(ne!==Ne.q){ne==="&"?Ne.state=Ce.ATTRIB_VALUE_ENTITY_Q:Ne.attribValue+=ne;continue}Xe(Ne),Ne.q="",Ne.state=Ce.ATTRIB_VALUE_CLOSED;continue;case Ce.ATTRIB_VALUE_CLOSED:be(ne)?Ne.state=Ce.ATTRIB:ne===">"?Je(Ne):ne==="/"?Ne.state=Ce.OPEN_TAG_SLASH:Me(ke,ne)?(et(Ne,"No whitespace between attributes"),Ne.attribName=ne,Ne.attribValue="",Ne.state=Ce.ATTRIB_NAME):et(Ne,"Invalid attribute name");continue;case Ce.ATTRIB_VALUE_UNQUOTED:if(!Ae(ne)){ne==="&"?Ne.state=Ce.ATTRIB_VALUE_ENTITY_U:Ne.attribValue+=ne;continue}Xe(Ne),ne===">"?Je(Ne):Ne.state=Ce.ATTRIB;continue;case Ce.CLOSE_TAG:if(Ne.tagName)ne===">"?Ve(Ne):Me(Te,ne)?Ne.tagName+=ne:Ne.script?(Ne.script+="</"+Ne.tagName,Ne.tagName="",Ne.state=Ce.SCRIPT):(be(ne)||et(Ne,"Invalid tagname in closing tag"),Ne.state=Ce.CLOSE_TAG_SAW_WHITE);else{if(be(ne))continue;Be(ke,ne)?Ne.script?(Ne.script+="</"+ne,Ne.state=Ce.SCRIPT):et(Ne,"Invalid tagname in closing tag."):Ne.tagName=ne}continue;case Ce.CLOSE_TAG_SAW_WHITE:if(be(ne))continue;ne===">"?Ve(Ne):et(Ne,"Invalid characters in closing tag");continue;case Ce.TEXT_ENTITY:case Ce.ATTRIB_VALUE_ENTITY_Q:case Ce.ATTRIB_VALUE_ENTITY_U:var Fe,we;switch(Ne.state){case Ce.TEXT_ENTITY:Fe=Ce.TEXT,we="textNode";break;case Ce.ATTRIB_VALUE_ENTITY_Q:Fe=Ce.ATTRIB_VALUE_QUOTED,we="attribValue";break;case Ce.ATTRIB_VALUE_ENTITY_U:Fe=Ce.ATTRIB_VALUE_UNQUOTED,we="attribValue";break}ne===";"?(Ne[we]+=at(Ne),Ne.entity="",Ne.state=Fe):Me(Ne.entity.length?_e:Pe,ne)?Ne.entity+=ne:(et(Ne,"Invalid character in entity name"),Ne[we]+="&"+Ne.entity+ne,Ne.entity="",Ne.state=Fe);continue;default:throw new Error(Ne,"Unknown state: "+Ne.state)}return Ne.position>=Ne.bufferCheckPosition&&ee(Ne),Ne}String.fromCodePoint||function(){var $e=String.fromCharCode,Ne=Math.floor,je=function(){var ne=16384,ce=[],Ie,Fe,we=-1,Ee=arguments.length;if(!Ee)return"";for(var Oe="";++we<Ee;){var Ue=Number(arguments[we]);if(!isFinite(Ue)||Ue<0||Ue>1114111||Ne(Ue)!==Ue)throw RangeError("Invalid code point: "+Ue);Ue<=65535?ce.push(Ue):(Ue-=65536,Ie=(Ue>>10)+55296,Fe=Ue%1024+56320,ce.push(Ie,Fe)),(we+1===Ee||ce.length>ne)&&(Oe+=$e.apply(null,ce),ce.length=0)}return Oe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:je,configurable:!0,writable:!0}):String.fromCodePoint=je}()})(typeof ye=="undefined"?this.sax={}:ye)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,Se,ye){Se.exports=oe;var E=y("events").EventEmitter,z=y("inherits");z(oe,E),oe.Readable=y("readable-stream/lib/_stream_readable.js"),oe.Writable=y("readable-stream/lib/_stream_writable.js"),oe.Duplex=y("readable-stream/lib/_stream_duplex.js"),oe.Transform=y("readable-stream/lib/_stream_transform.js"),oe.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),oe.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),oe.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),oe.Stream=oe;function oe(){E.call(this)}oe.prototype.pipe=function(se,ee){var de=this;function x(me){se.writable&&se.write(me)===!1&&de.pause&&de.pause()}de.on("data",x);function te(){de.readable&&de.resume&&de.resume()}se.on("drain",te),!se._isStdio&&(!ee||ee.end!==!1)&&(de.on("end",ae),de.on("close",ue));var re=!1;function ae(){re||(re=!0,se.end())}function ue(){re||(re=!0,typeof se.destroy=="function"&&se.destroy())}function he(me){if(pe(),E.listenerCount(this,"error")===0)throw me}de.on("error",he),se.on("error",he);function pe(){de.removeListener("data",x),se.removeListener("drain",te),de.removeListener("end",ae),de.removeListener("close",ue),de.removeListener("error",he),se.removeListener("error",he),de.removeListener("end",pe),de.removeListener("close",pe),se.removeListener("close",pe)}return de.on("end",pe),de.on("close",pe),se.on("close",pe),se.emit("pipe",de),se}},{events:344,inherits:364,"readable-stream/lib/_stream_duplex.js":400,"readable-stream/lib/_stream_passthrough.js":401,"readable-stream/lib/_stream_readable.js":402,"readable-stream/lib/_stream_transform.js":403,"readable-stream/lib/_stream_writable.js":404,"readable-stream/lib/internal/streams/end-of-stream.js":408,"readable-stream/lib/internal/streams/pipeline.js":410}],399:[function(y,Se,ye){"use strict";function E(te,re){te.prototype=Object.create(re.prototype),te.prototype.constructor=te,te.__proto__=re}var z={};function oe(te,re,ae){ae||(ae=Error);function ue(pe,me,fe){return typeof re=="string"?re:re(pe,me,fe)}var he=function(pe){E(me,pe);function me(fe,ve,ke){return pe.call(this,ue(fe,ve,ke))||this}return me}(ae);he.prototype.name=ae.name,he.prototype.code=te,z[te]=he}function se(te,re){if(Array.isArray(te)){var ae=te.length;return te=te.map(function(ue){return String(ue)}),ae>2?"one of ".concat(re," ").concat(te.slice(0,ae-1).join(", "),", or ")+te[ae-1]:ae===2?"one of ".concat(re," ").concat(te[0]," or ").concat(te[1]):"of ".concat(re," ").concat(te[0])}else return"of ".concat(re," ").concat(String(te))}function ee(te,re,ae){return te.substr(!ae||ae<0?0:+ae,re.length)===re}function de(te,re,ae){return(ae===void 0||ae>te.length)&&(ae=te.length),te.substring(ae-re.length,ae)===re}function x(te,re,ae){return typeof ae!="number"&&(ae=0),ae+re.length>te.length?!1:te.indexOf(re,ae)!==-1}oe("ERR_INVALID_OPT_VALUE",function(te,re){return'The value "'+re+'" is invalid for option "'+te+'"'},TypeError),oe("ERR_INVALID_ARG_TYPE",function(te,re,ae){var ue;typeof re=="string"&&ee(re,"not ")?(ue="must not be",re=re.replace(/^not /,"")):ue="must be";var he;if(de(te," argument"))he="The ".concat(te," ").concat(ue," ").concat(se(re,"type"));else{var pe=x(te,".")?"property":"argument";he='The "'.concat(te,'" ').concat(pe," ").concat(ue," ").concat(se(re,"type"))}return he+=". Received type ".concat(typeof ae),he},TypeError),oe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),oe("ERR_METHOD_NOT_IMPLEMENTED",function(te){return"The "+te+" method is not implemented"}),oe("ERR_STREAM_PREMATURE_CLOSE","Premature close"),oe("ERR_STREAM_DESTROYED",function(te){return"Cannot call "+te+" after a stream was destroyed"}),oe("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),oe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),oe("ERR_STREAM_WRITE_AFTER_END","write after end"),oe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),oe("ERR_UNKNOWN_ENCODING",function(te){return"Unknown encoding: "+te},TypeError),oe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Se.exports.codes=z},{}],400:[function(y,Se,ye){(function(E){(function(){"use strict";var z=Object.keys||function(ue){var he=[];for(var pe in ue)he.push(pe);return he};Se.exports=te;var oe=y("./_stream_readable"),se=y("./_stream_writable");y("inherits")(te,oe);for(var ee=z(se.prototype),de=0;de<ee.length;de++){var x=ee[de];te.prototype[x]||(te.prototype[x]=se.prototype[x])}function te(ue){if(!(this instanceof te))return new te(ue);oe.call(this,ue),se.call(this,ue),this.allowHalfOpen=!0,ue&&(ue.readable===!1&&(this.readable=!1),ue.writable===!1&&(this.writable=!1),ue.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",re)))}Object.defineProperty(te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(te.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(te.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function re(){this._writableState.ended||E.nextTick(ae,this)}function ae(ue){ue.end()}Object.defineProperty(te.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(he){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=he,this._writableState.destroyed=he)}})}).call(this)}).call(this,y("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(y,Se,ye){"use strict";Se.exports=z;var E=y("./_stream_transform");y("inherits")(z,E);function z(oe){if(!(this instanceof z))return new z(oe);E.call(this,oe)}z.prototype._transform=function(oe,se,ee){ee(null,oe)}},{"./_stream_transform":403,inherits:364}],402:[function(y,Se,ye){(function(E,z){(function(){"use strict";Se.exports=Ke;var oe;Ke.ReadableState=He;var se=y("events").EventEmitter,ee=function(Ee,Oe){return Ee.listeners(Oe).length},de=y("./internal/streams/stream"),x=y("buffer").Buffer,te=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function re(we){return x.from(we)}function ae(we){return x.isBuffer(we)||we instanceof te}var ue=y("util"),he;ue&&ue.debuglog?he=ue.debuglog("stream"):he=function(){};var pe=y("./internal/streams/buffer_list"),me=y("./internal/streams/destroy"),fe=y("./internal/streams/state"),ve=fe.getHighWaterMark,ke=y("../errors").codes,Te=ke.ERR_INVALID_ARG_TYPE,Pe=ke.ERR_STREAM_PUSH_AFTER_EOF,_e=ke.ERR_METHOD_NOT_IMPLEMENTED,be=ke.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,xe,Ae,Me;y("inherits")(Ke,de);var Be=me.errorOrDestroy,Ce=["error","close","destroy","pause","resume"];function De(we,Ee,Oe){if(typeof we.prependListener=="function")return we.prependListener(Ee,Oe);!we._events||!we._events[Ee]?we.on(Ee,Oe):Array.isArray(we._events[Ee])?we._events[Ee].unshift(Oe):we._events[Ee]=[Oe,we._events[Ee]]}function He(we,Ee,Oe){oe=oe||y("./_stream_duplex"),we=we||{},typeof Oe!="boolean"&&(Oe=Ee instanceof oe),this.objectMode=!!we.objectMode,Oe&&(this.objectMode=this.objectMode||!!we.readableObjectMode),this.highWaterMark=ve(this,we,"readableHighWaterMark",Oe),this.buffer=new pe,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=we.emitClose!==!1,this.autoDestroy=!!we.autoDestroy,this.destroyed=!1,this.defaultEncoding=we.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,we.encoding&&(xe||(xe=y("string_decoder/").StringDecoder),this.decoder=new xe(we.encoding),this.encoding=we.encoding)}function Ke(we){if(oe=oe||y("./_stream_duplex"),!(this instanceof Ke))return new Ke(we);var Ee=this instanceof oe;this._readableState=new He(we,this,Ee),this.readable=!0,we&&(typeof we.read=="function"&&(this._read=we.read),typeof we.destroy=="function"&&(this._destroy=we.destroy)),de.call(this)}Object.defineProperty(Ke.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ee){this._readableState&&(this._readableState.destroyed=Ee)}}),Ke.prototype.destroy=me.destroy,Ke.prototype._undestroy=me.undestroy,Ke.prototype._destroy=function(we,Ee){Ee(we)},Ke.prototype.push=function(we,Ee){var Oe=this._readableState,Ue;return Oe.objectMode?Ue=!0:typeof we=="string"&&(Ee=Ee||Oe.defaultEncoding,Ee!==Oe.encoding&&(we=x.from(we,Ee),Ee=""),Ue=!0),Ye(this,we,Ee,!1,Ue)},Ke.prototype.unshift=function(we){return Ye(this,we,null,!0,!1)};function Ye(we,Ee,Oe,Ue,tt){he("readableAddChunk",Ee);var Ge=we._readableState;if(Ee===null)Ge.reading=!1,rt(we,Ge);else{var ft;if(tt||(ft=Re(Ge,Ee)),ft)Be(we,ft);else if(Ge.objectMode||Ee&&Ee.length>0)if(typeof Ee!="string"&&!Ge.objectMode&&Object.getPrototypeOf(Ee)!==x.prototype&&(Ee=re(Ee)),Ue)Ge.endEmitted?Be(we,new be):it(we,Ge,Ee,!0);else if(Ge.ended)Be(we,new Pe);else{if(Ge.destroyed)return!1;Ge.reading=!1,Ge.decoder&&!Oe?(Ee=Ge.decoder.write(Ee),Ge.objectMode||Ee.length!==0?it(we,Ge,Ee,!1):Ve(we,Ge)):it(we,Ge,Ee,!1)}else Ue||(Ge.reading=!1,Ve(we,Ge))}return!Ge.ended&&(Ge.length<Ge.highWaterMark||Ge.length===0)}function it(we,Ee,Oe,Ue){Ee.flowing&&Ee.length===0&&!Ee.sync?(Ee.awaitDrain=0,we.emit("data",Oe)):(Ee.length+=Ee.objectMode?1:Oe.length,Ue?Ee.buffer.unshift(Oe):Ee.buffer.push(Oe),Ee.needReadable&&Xe(we)),Ve(we,Ee)}function Re(we,Ee){var Oe;return!ae(Ee)&&typeof Ee!="string"&&Ee!==void 0&&!we.objectMode&&(Oe=new Te("chunk",["string","Buffer","Uint8Array"],Ee)),Oe}Ke.prototype.isPaused=function(){return this._readableState.flowing===!1},Ke.prototype.setEncoding=function(we){xe||(xe=y("string_decoder/").StringDecoder);var Ee=new xe(we);this._readableState.decoder=Ee,this._readableState.encoding=this._readableState.decoder.encoding;for(var Oe=this._readableState.buffer.head,Ue="";Oe!==null;)Ue+=Ee.write(Oe.data),Oe=Oe.next;return this._readableState.buffer.clear(),Ue!==""&&this._readableState.buffer.push(Ue),this._readableState.length=Ue.length,this};var We=1073741824;function et(we){return we>=We?we=We:(we--,we|=we>>>1,we|=we>>>2,we|=we>>>4,we|=we>>>8,we|=we>>>16,we++),we}function nt(we,Ee){return we<=0||Ee.length===0&&Ee.ended?0:Ee.objectMode?1:we!==we?Ee.flowing&&Ee.length?Ee.buffer.head.data.length:Ee.length:(we>Ee.highWaterMark&&(Ee.highWaterMark=et(we)),we<=Ee.length?we:Ee.ended?Ee.length:(Ee.needReadable=!0,0))}Ke.prototype.read=function(we){he("read",we),we=parseInt(we,10);var Ee=this._readableState,Oe=we;if(we!==0&&(Ee.emittedReadable=!1),we===0&&Ee.needReadable&&((Ee.highWaterMark!==0?Ee.length>=Ee.highWaterMark:Ee.length>0)||Ee.ended))return he("read: emitReadable",Ee.length,Ee.ended),Ee.length===0&&Ee.ended?ce(this):Xe(this),null;if(we=nt(we,Ee),we===0&&Ee.ended)return Ee.length===0&&ce(this),null;var Ue=Ee.needReadable;he("need readable",Ue),(Ee.length===0||Ee.length-we<Ee.highWaterMark)&&(Ue=!0,he("length less than watermark",Ue)),Ee.ended||Ee.reading?(Ue=!1,he("reading or ended",Ue)):Ue&&(he("do read"),Ee.reading=!0,Ee.sync=!0,Ee.length===0&&(Ee.needReadable=!0),this._read(Ee.highWaterMark),Ee.sync=!1,Ee.reading||(we=nt(Oe,Ee)));var tt;return we>0?tt=ne(we,Ee):tt=null,tt===null?(Ee.needReadable=Ee.length<=Ee.highWaterMark,we=0):(Ee.length-=we,Ee.awaitDrain=0),Ee.length===0&&(Ee.ended||(Ee.needReadable=!0),Oe!==we&&Ee.ended&&ce(this)),tt!==null&&this.emit("data",tt),tt};function rt(we,Ee){if(he("onEofChunk"),!Ee.ended){if(Ee.decoder){var Oe=Ee.decoder.end();Oe&&Oe.length&&(Ee.buffer.push(Oe),Ee.length+=Ee.objectMode?1:Oe.length)}Ee.ended=!0,Ee.sync?Xe(we):(Ee.needReadable=!1,Ee.emittedReadable||(Ee.emittedReadable=!0,Je(we)))}}function Xe(we){var Ee=we._readableState;he("emitReadable",Ee.needReadable,Ee.emittedReadable),Ee.needReadable=!1,Ee.emittedReadable||(he("emitReadable",Ee.flowing),Ee.emittedReadable=!0,E.nextTick(Je,we))}function Je(we){var Ee=we._readableState;he("emitReadable_",Ee.destroyed,Ee.length,Ee.ended),!Ee.destroyed&&(Ee.length||Ee.ended)&&(we.emit("readable"),Ee.emittedReadable=!1),Ee.needReadable=!Ee.flowing&&!Ee.ended&&Ee.length<=Ee.highWaterMark,je(we)}function Ve(we,Ee){Ee.readingMore||(Ee.readingMore=!0,E.nextTick(at,we,Ee))}function at(we,Ee){for(;!Ee.reading&&!Ee.ended&&(Ee.length<Ee.highWaterMark||Ee.flowing&&Ee.length===0);){var Oe=Ee.length;if(he("maybeReadMore read 0"),we.read(0),Oe===Ee.length)break}Ee.readingMore=!1}Ke.prototype._read=function(we){Be(this,new _e("_read()"))},Ke.prototype.pipe=function(we,Ee){var Oe=this,Ue=this._readableState;switch(Ue.pipesCount){case 0:Ue.pipes=we;break;case 1:Ue.pipes=[Ue.pipes,we];break;default:Ue.pipes.push(we);break}Ue.pipesCount+=1,he("pipe count=%d opts=%j",Ue.pipesCount,Ee);var tt=(!Ee||Ee.end!==!1)&&we!==E.stdout&&we!==E.stderr,Ge=tt?ct:dt;Ue.endEmitted?E.nextTick(Ge):Oe.once("end",Ge),we.on("unpipe",ft);function ft(bt,wt){he("onunpipe"),bt===Oe&&wt&&wt.hasUnpiped===!1&&(wt.hasUnpiped=!0,xt())}function ct(){he("onend"),we.end()}var vt=Qe(Oe);we.on("drain",vt);var kt=!1;function xt(){he("cleanup"),we.removeListener("close",pt),we.removeListener("finish",mt),we.removeListener("drain",vt),we.removeListener("error",gt),we.removeListener("unpipe",ft),Oe.removeListener("end",ct),Oe.removeListener("end",dt),Oe.removeListener("data",Et),kt=!0,Ue.awaitDrain&&(!we._writableState||we._writableState.needDrain)&&vt()}Oe.on("data",Et);function Et(bt){he("ondata");var wt=we.write(bt);he("dest.write",wt),wt===!1&&((Ue.pipesCount===1&&Ue.pipes===we||Ue.pipesCount>1&&Fe(Ue.pipes,we)!==-1)&&!kt&&(he("false write response, pause",Ue.awaitDrain),Ue.awaitDrain++),Oe.pause())}function gt(bt){he("onerror",bt),dt(),we.removeListener("error",gt),ee(we,"error")===0&&Be(we,bt)}De(we,"error",gt);function pt(){we.removeListener("finish",mt),dt()}we.once("close",pt);function mt(){he("onfinish"),we.removeListener("close",pt),dt()}we.once("finish",mt);function dt(){he("unpipe"),Oe.unpipe(we)}return we.emit("pipe",Oe),Ue.flowing||(he("pipe resume"),Oe.resume()),we};function Qe(we){return function(){var Oe=we._readableState;he("pipeOnDrain",Oe.awaitDrain),Oe.awaitDrain&&Oe.awaitDrain--,Oe.awaitDrain===0&&ee(we,"data")&&(Oe.flowing=!0,je(we))}}Ke.prototype.unpipe=function(we){var Ee=this._readableState,Oe={hasUnpiped:!1};if(Ee.pipesCount===0)return this;if(Ee.pipesCount===1)return we&&we!==Ee.pipes?this:(we||(we=Ee.pipes),Ee.pipes=null,Ee.pipesCount=0,Ee.flowing=!1,we&&we.emit("unpipe",this,Oe),this);if(!we){var Ue=Ee.pipes,tt=Ee.pipesCount;Ee.pipes=null,Ee.pipesCount=0,Ee.flowing=!1;for(var Ge=0;Ge<tt;Ge++)Ue[Ge].emit("unpipe",this,{hasUnpiped:!1});return this}var ft=Fe(Ee.pipes,we);return ft===-1?this:(Ee.pipes.splice(ft,1),Ee.pipesCount-=1,Ee.pipesCount===1&&(Ee.pipes=Ee.pipes[0]),we.emit("unpipe",this,Oe),this)},Ke.prototype.on=function(we,Ee){var Oe=de.prototype.on.call(this,we,Ee),Ue=this._readableState;return we==="data"?(Ue.readableListening=this.listenerCount("readable")>0,Ue.flowing!==!1&&this.resume()):we==="readable"&&!Ue.endEmitted&&!Ue.readableListening&&(Ue.readableListening=Ue.needReadable=!0,Ue.flowing=!1,Ue.emittedReadable=!1,he("on readable",Ue.length,Ue.reading),Ue.length?Xe(this):Ue.reading||E.nextTick(st,this)),Oe},Ke.prototype.addListener=Ke.prototype.on,Ke.prototype.removeListener=function(we,Ee){var Oe=de.prototype.removeListener.call(this,we,Ee);return we==="readable"&&E.nextTick(ut,this),Oe},Ke.prototype.removeAllListeners=function(we){var Ee=de.prototype.removeAllListeners.apply(this,arguments);return(we==="readable"||we===void 0)&&E.nextTick(ut,this),Ee};function ut(we){var Ee=we._readableState;Ee.readableListening=we.listenerCount("readable")>0,Ee.resumeScheduled&&!Ee.paused?Ee.flowing=!0:we.listenerCount("data")>0&&we.resume()}function st(we){he("readable nexttick read 0"),we.read(0)}Ke.prototype.resume=function(){var we=this._readableState;return we.flowing||(he("resume"),we.flowing=!we.readableListening,$e(this,we)),we.paused=!1,this};function $e(we,Ee){Ee.resumeScheduled||(Ee.resumeScheduled=!0,E.nextTick(Ne,we,Ee))}function Ne(we,Ee){he("resume",Ee.reading),Ee.reading||we.read(0),Ee.resumeScheduled=!1,we.emit("resume"),je(we),Ee.flowing&&!Ee.reading&&we.read(0)}Ke.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function je(we){var Ee=we._readableState;for(he("flow",Ee.flowing);Ee.flowing&&we.read()!==null;);}Ke.prototype.wrap=function(we){var Ee=this,Oe=this._readableState,Ue=!1;we.on("end",function(){if(he("wrapped end"),Oe.decoder&&!Oe.ended){var ft=Oe.decoder.end();ft&&ft.length&&Ee.push(ft)}Ee.push(null)}),we.on("data",function(ft){if(he("wrapped data"),Oe.decoder&&(ft=Oe.decoder.write(ft)),!(Oe.objectMode&&ft==null)&&!(!Oe.objectMode&&(!ft||!ft.length))){var ct=Ee.push(ft);ct||(Ue=!0,we.pause())}});for(var tt in we)this[tt]===void 0&&typeof we[tt]=="function"&&(this[tt]=function(ct){return function(){return we[ct].apply(we,arguments)}}(tt));for(var Ge=0;Ge<Ce.length;Ge++)we.on(Ce[Ge],this.emit.bind(this,Ce[Ge]));return this._read=function(ft){he("wrapped _read",ft),Ue&&(Ue=!1,we.resume())},this},typeof Symbol=="function"&&(Ke.prototype[Symbol.asyncIterator]=function(){return Ae===void 0&&(Ae=y("./internal/streams/async_iterator")),Ae(this)}),Object.defineProperty(Ke.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ke.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ke.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ee){this._readableState&&(this._readableState.flowing=Ee)}}),Ke._fromList=ne,Object.defineProperty(Ke.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ne(we,Ee){if(Ee.length===0)return null;var Oe;return Ee.objectMode?Oe=Ee.buffer.shift():!we||we>=Ee.length?(Ee.decoder?Oe=Ee.buffer.join(""):Ee.buffer.length===1?Oe=Ee.buffer.first():Oe=Ee.buffer.concat(Ee.length),Ee.buffer.clear()):Oe=Ee.buffer.consume(we,Ee.decoder),Oe}function ce(we){var Ee=we._readableState;he("endReadable",Ee.endEmitted),Ee.endEmitted||(Ee.ended=!0,E.nextTick(Ie,Ee,we))}function Ie(we,Ee){if(he("endReadableNT",we.endEmitted,we.length),!we.endEmitted&&we.length===0&&(we.endEmitted=!0,Ee.readable=!1,Ee.emit("end"),we.autoDestroy)){var Oe=Ee._writableState;(!Oe||Oe.autoDestroy&&Oe.finished)&&Ee.destroy()}}typeof Symbol=="function"&&(Ke.from=function(we,Ee){return Me===void 0&&(Me=y("./internal/streams/from")),Me(Ke,we,Ee)});function Fe(we,Ee){for(var Oe=0,Ue=we.length;Oe<Ue;Oe++)if(we[Oe]===Ee)return Oe;return-1}}).call(this)}).call(this,y("_process"),typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/async_iterator":405,"./internal/streams/buffer_list":406,"./internal/streams/destroy":407,"./internal/streams/from":409,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,events:344,inherits:364,"string_decoder/":413,util:89}],403:[function(y,Se,ye){"use strict";Se.exports=te;var E=y("../errors").codes,z=E.ERR_METHOD_NOT_IMPLEMENTED,oe=E.ERR_MULTIPLE_CALLBACK,se=E.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=E.ERR_TRANSFORM_WITH_LENGTH_0,de=y("./_stream_duplex");y("inherits")(te,de);function x(ue,he){var pe=this._transformState;pe.transforming=!1;var me=pe.writecb;if(me===null)return this.emit("error",new oe);pe.writechunk=null,pe.writecb=null,he!=null&&this.push(he),me(ue);var fe=this._readableState;fe.reading=!1,(fe.needReadable||fe.length<fe.highWaterMark)&&this._read(fe.highWaterMark)}function te(ue){if(!(this instanceof te))return new te(ue);de.call(this,ue),this._transformState={afterTransform:x.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ue&&(typeof ue.transform=="function"&&(this._transform=ue.transform),typeof ue.flush=="function"&&(this._flush=ue.flush)),this.on("prefinish",re)}function re(){var ue=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(he,pe){ae(ue,he,pe)}):ae(this,null,null)}te.prototype.push=function(ue,he){return this._transformState.needTransform=!1,de.prototype.push.call(this,ue,he)},te.prototype._transform=function(ue,he,pe){pe(new z("_transform()"))},te.prototype._write=function(ue,he,pe){var me=this._transformState;if(me.writecb=pe,me.writechunk=ue,me.writeencoding=he,!me.transforming){var fe=this._readableState;(me.needTransform||fe.needReadable||fe.length<fe.highWaterMark)&&this._read(fe.highWaterMark)}},te.prototype._read=function(ue){var he=this._transformState;he.writechunk!==null&&!he.transforming?(he.transforming=!0,this._transform(he.writechunk,he.writeencoding,he.afterTransform)):he.needTransform=!0},te.prototype._destroy=function(ue,he){de.prototype._destroy.call(this,ue,function(pe){he(pe)})};function ae(ue,he,pe){if(he)return ue.emit("error",he);if(pe!=null&&ue.push(pe),ue._writableState.length)throw new ee;if(ue._transformState.transforming)throw new se;return ue.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(y,Se,ye){(function(E,z){(function(){"use strict";Se.exports=He;function oe(je,ne,ce){this.chunk=je,this.encoding=ne,this.callback=ce,this.next=null}function se(je){var ne=this;this.next=null,this.entry=null,this.finish=function(){Ne(ne,je)}}var ee;He.WritableState=Ce;var de={deprecate:y("util-deprecate")},x=y("./internal/streams/stream"),te=y("buffer").Buffer,re=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ae(je){return te.from(je)}function ue(je){return te.isBuffer(je)||je instanceof re}var he=y("./internal/streams/destroy"),pe=y("./internal/streams/state"),me=pe.getHighWaterMark,fe=y("../errors").codes,ve=fe.ERR_INVALID_ARG_TYPE,ke=fe.ERR_METHOD_NOT_IMPLEMENTED,Te=fe.ERR_MULTIPLE_CALLBACK,Pe=fe.ERR_STREAM_CANNOT_PIPE,_e=fe.ERR_STREAM_DESTROYED,be=fe.ERR_STREAM_NULL_VALUES,xe=fe.ERR_STREAM_WRITE_AFTER_END,Ae=fe.ERR_UNKNOWN_ENCODING,Me=he.errorOrDestroy;y("inherits")(He,x);function Be(){}function Ce(je,ne,ce){ee=ee||y("./_stream_duplex"),je=je||{},typeof ce!="boolean"&&(ce=ne instanceof ee),this.objectMode=!!je.objectMode,ce&&(this.objectMode=this.objectMode||!!je.writableObjectMode),this.highWaterMark=me(this,je,"writableHighWaterMark",ce),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Ie=je.decodeStrings===!1;this.decodeStrings=!Ie,this.defaultEncoding=je.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Fe){rt(ne,Fe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=je.emitClose!==!1,this.autoDestroy=!!je.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new se(this)}Ce.prototype.getBuffer=function(){for(var ne=this.bufferedRequest,ce=[];ne;)ce.push(ne),ne=ne.next;return ce},function(){try{Object.defineProperty(Ce.prototype,"buffer",{get:de.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(je){}}();var De;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(De=Function.prototype[Symbol.hasInstance],Object.defineProperty(He,Symbol.hasInstance,{value:function(ne){return De.call(this,ne)?!0:this!==He?!1:ne&&ne._writableState instanceof Ce}})):De=function(ne){return ne instanceof this};function He(je){ee=ee||y("./_stream_duplex");var ne=this instanceof ee;if(!ne&&!De.call(He,this))return new He(je);this._writableState=new Ce(je,this,ne),this.writable=!0,je&&(typeof je.write=="function"&&(this._write=je.write),typeof je.writev=="function"&&(this._writev=je.writev),typeof je.destroy=="function"&&(this._destroy=je.destroy),typeof je.final=="function"&&(this._final=je.final)),x.call(this)}He.prototype.pipe=function(){Me(this,new Pe)};function Ke(je,ne){var ce=new xe;Me(je,ce),E.nextTick(ne,ce)}function Ye(je,ne,ce,Ie){var Fe;return ce===null?Fe=new be:typeof ce!="string"&&!ne.objectMode&&(Fe=new ve("chunk",["string","Buffer"],ce)),Fe?(Me(je,Fe),E.nextTick(Ie,Fe),!1):!0}He.prototype.write=function(je,ne,ce){var Ie=this._writableState,Fe=!1,we=!Ie.objectMode&&ue(je);return we&&!te.isBuffer(je)&&(je=ae(je)),typeof ne=="function"&&(ce=ne,ne=null),we?ne="buffer":ne||(ne=Ie.defaultEncoding),typeof ce!="function"&&(ce=Be),Ie.ending?Ke(this,ce):(we||Ye(this,Ie,je,ce))&&(Ie.pendingcb++,Fe=Re(this,Ie,we,je,ne,ce)),Fe},He.prototype.cork=function(){this._writableState.corked++},He.prototype.uncork=function(){var je=this._writableState;je.corked&&(je.corked--,!je.writing&&!je.corked&&!je.bufferProcessing&&je.bufferedRequest&&Ve(this,je))},He.prototype.setDefaultEncoding=function(ne){if(typeof ne=="string"&&(ne=ne.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ne+"").toLowerCase())>-1))throw new Ae(ne);return this._writableState.defaultEncoding=ne,this},Object.defineProperty(He.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function it(je,ne,ce){return!je.objectMode&&je.decodeStrings!==!1&&typeof ne=="string"&&(ne=te.from(ne,ce)),ne}Object.defineProperty(He.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Re(je,ne,ce,Ie,Fe,we){if(!ce){var Ee=it(ne,Ie,Fe);Ie!==Ee&&(ce=!0,Fe="buffer",Ie=Ee)}var Oe=ne.objectMode?1:Ie.length;ne.length+=Oe;var Ue=ne.length<ne.highWaterMark;if(Ue||(ne.needDrain=!0),ne.writing||ne.corked){var tt=ne.lastBufferedRequest;ne.lastBufferedRequest={chunk:Ie,encoding:Fe,isBuf:ce,callback:we,next:null},tt?tt.next=ne.lastBufferedRequest:ne.bufferedRequest=ne.lastBufferedRequest,ne.bufferedRequestCount+=1}else We(je,ne,!1,Oe,Ie,Fe,we);return Ue}function We(je,ne,ce,Ie,Fe,we,Ee){ne.writelen=Ie,ne.writecb=Ee,ne.writing=!0,ne.sync=!0,ne.destroyed?ne.onwrite(new _e("write")):ce?je._writev(Fe,ne.onwrite):je._write(Fe,we,ne.onwrite),ne.sync=!1}function et(je,ne,ce,Ie,Fe){--ne.pendingcb,ce?(E.nextTick(Fe,Ie),E.nextTick(st,je,ne),je._writableState.errorEmitted=!0,Me(je,Ie)):(Fe(Ie),je._writableState.errorEmitted=!0,Me(je,Ie),st(je,ne))}function nt(je){je.writing=!1,je.writecb=null,je.length-=je.writelen,je.writelen=0}function rt(je,ne){var ce=je._writableState,Ie=ce.sync,Fe=ce.writecb;if(typeof Fe!="function")throw new Te;if(nt(ce),ne)et(je,ce,Ie,ne,Fe);else{var we=at(ce)||je.destroyed;!we&&!ce.corked&&!ce.bufferProcessing&&ce.bufferedRequest&&Ve(je,ce),Ie?E.nextTick(Xe,je,ce,we,Fe):Xe(je,ce,we,Fe)}}function Xe(je,ne,ce,Ie){ce||Je(je,ne),ne.pendingcb--,Ie(),st(je,ne)}function Je(je,ne){ne.length===0&&ne.needDrain&&(ne.needDrain=!1,je.emit("drain"))}function Ve(je,ne){ne.bufferProcessing=!0;var ce=ne.bufferedRequest;if(je._writev&&ce&&ce.next){var Ie=ne.bufferedRequestCount,Fe=new Array(Ie),we=ne.corkedRequestsFree;we.entry=ce;for(var Ee=0,Oe=!0;ce;)Fe[Ee]=ce,ce.isBuf||(Oe=!1),ce=ce.next,Ee+=1;Fe.allBuffers=Oe,We(je,ne,!0,ne.length,Fe,"",we.finish),ne.pendingcb++,ne.lastBufferedRequest=null,we.next?(ne.corkedRequestsFree=we.next,we.next=null):ne.corkedRequestsFree=new se(ne),ne.bufferedRequestCount=0}else{for(;ce;){var Ue=ce.chunk,tt=ce.encoding,Ge=ce.callback,ft=ne.objectMode?1:Ue.length;if(We(je,ne,!1,ft,Ue,tt,Ge),ce=ce.next,ne.bufferedRequestCount--,ne.writing)break}ce===null&&(ne.lastBufferedRequest=null)}ne.bufferedRequest=ce,ne.bufferProcessing=!1}He.prototype._write=function(je,ne,ce){ce(new ke("_write()"))},He.prototype._writev=null,He.prototype.end=function(je,ne,ce){var Ie=this._writableState;return typeof je=="function"?(ce=je,je=null,ne=null):typeof ne=="function"&&(ce=ne,ne=null),je!=null&&this.write(je,ne),Ie.corked&&(Ie.corked=1,this.uncork()),Ie.ending||$e(this,Ie,ce),this},Object.defineProperty(He.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function at(je){return je.ending&&je.length===0&&je.bufferedRequest===null&&!je.finished&&!je.writing}function Qe(je,ne){je._final(function(ce){ne.pendingcb--,ce&&Me(je,ce),ne.prefinished=!0,je.emit("prefinish"),st(je,ne)})}function ut(je,ne){!ne.prefinished&&!ne.finalCalled&&(typeof je._final=="function"&&!ne.destroyed?(ne.pendingcb++,ne.finalCalled=!0,E.nextTick(Qe,je,ne)):(ne.prefinished=!0,je.emit("prefinish")))}function st(je,ne){var ce=at(ne);if(ce&&(ut(je,ne),ne.pendingcb===0&&(ne.finished=!0,je.emit("finish"),ne.autoDestroy))){var Ie=je._readableState;(!Ie||Ie.autoDestroy&&Ie.endEmitted)&&je.destroy()}return ce}function $e(je,ne,ce){ne.ending=!0,st(je,ne),ce&&(ne.finished?E.nextTick(ce):je.once("finish",ce)),ne.ended=!0,je.writable=!1}function Ne(je,ne,ce){var Ie=je.entry;for(je.entry=null;Ie;){var Fe=Ie.callback;ne.pendingcb--,Fe(ce),Ie=Ie.next}ne.corkedRequestsFree.next=je}Object.defineProperty(He.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(ne){this._writableState&&(this._writableState.destroyed=ne)}}),He.prototype.destroy=he.destroy,He.prototype._undestroy=he.undestroy,He.prototype._destroy=function(je,ne){ne(je)}}).call(this)}).call(this,y("_process"),typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"../errors":399,"./_stream_duplex":400,"./internal/streams/destroy":407,"./internal/streams/state":411,"./internal/streams/stream":412,_process:467,buffer:90,inherits:364,"util-deprecate":416}],405:[function(y,Se,ye){(function(E){(function(){"use strict";var z;function oe(be,xe,Ae){return xe=se(xe),xe in be?Object.defineProperty(be,xe,{value:Ae,enumerable:!0,configurable:!0,writable:!0}):be[xe]=Ae,be}function se(be){var xe=ee(be,"string");return typeof xe=="symbol"?xe:String(xe)}function ee(be,xe){if(typeof be!="object"||be===null)return be;var Ae=be[Symbol.toPrimitive];if(Ae!==void 0){var Me=Ae.call(be,xe||"default");if(typeof Me!="object")return Me;throw new TypeError("@@toPrimitive must return a primitive value.")}return(xe==="string"?String:Number)(be)}var de=y("./end-of-stream"),x=Symbol("lastResolve"),te=Symbol("lastReject"),re=Symbol("error"),ae=Symbol("ended"),ue=Symbol("lastPromise"),he=Symbol("handlePromise"),pe=Symbol("stream");function me(be,xe){return{value:be,done:xe}}function fe(be){var xe=be[x];if(xe!==null){var Ae=be[pe].read();Ae!==null&&(be[ue]=null,be[x]=null,be[te]=null,xe(me(Ae,!1)))}}function ve(be){E.nextTick(fe,be)}function ke(be,xe){return function(Ae,Me){be.then(function(){if(xe[ae]){Ae(me(void 0,!0));return}xe[he](Ae,Me)},Me)}}var Te=Object.getPrototypeOf(function(){}),Pe=Object.setPrototypeOf((z={get stream(){return this[pe]},next:function(){var xe=this,Ae=this[re];if(Ae!==null)return Promise.reject(Ae);if(this[ae])return Promise.resolve(me(void 0,!0));if(this[pe].destroyed)return new Promise(function(De,He){E.nextTick(function(){xe[re]?He(xe[re]):De(me(void 0,!0))})});var Me=this[ue],Be;if(Me)Be=new Promise(ke(Me,this));else{var Ce=this[pe].read();if(Ce!==null)return Promise.resolve(me(Ce,!1));Be=new Promise(this[he])}return this[ue]=Be,Be}},oe(z,Symbol.asyncIterator,function(){return this}),oe(z,"return",function(){var xe=this;return new Promise(function(Ae,Me){xe[pe].destroy(null,function(Be){if(Be){Me(Be);return}Ae(me(void 0,!0))})})}),z),Te),_e=function(xe){var Ae,Me=Object.create(Pe,(Ae={},oe(Ae,pe,{value:xe,writable:!0}),oe(Ae,x,{value:null,writable:!0}),oe(Ae,te,{value:null,writable:!0}),oe(Ae,re,{value:null,writable:!0}),oe(Ae,ae,{value:xe._readableState.endEmitted,writable:!0}),oe(Ae,he,{value:function(Ce,De){var He=Me[pe].read();He?(Me[ue]=null,Me[x]=null,Me[te]=null,Ce(me(He,!1))):(Me[x]=Ce,Me[te]=De)},writable:!0}),Ae));return Me[ue]=null,de(xe,function(Be){if(Be&&Be.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ce=Me[te];Ce!==null&&(Me[ue]=null,Me[x]=null,Me[te]=null,Ce(Be)),Me[re]=Be;return}var De=Me[x];De!==null&&(Me[ue]=null,Me[x]=null,Me[te]=null,De(me(void 0,!0))),Me[ae]=!0}),xe.on("readable",ve.bind(null,Me)),Me};Se.exports=_e}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,Se,ye){"use strict";function E(fe,ve){var ke=Object.keys(fe);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(fe);ve&&(Te=Te.filter(function(Pe){return Object.getOwnPropertyDescriptor(fe,Pe).enumerable})),ke.push.apply(ke,Te)}return ke}function z(fe){for(var ve=1;ve<arguments.length;ve++){var ke=arguments[ve]!=null?arguments[ve]:{};ve%2?E(Object(ke),!0).forEach(function(Te){oe(fe,Te,ke[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(fe,Object.getOwnPropertyDescriptors(ke)):E(Object(ke)).forEach(function(Te){Object.defineProperty(fe,Te,Object.getOwnPropertyDescriptor(ke,Te))})}return fe}function oe(fe,ve,ke){return ve=x(ve),ve in fe?Object.defineProperty(fe,ve,{value:ke,enumerable:!0,configurable:!0,writable:!0}):fe[ve]=ke,fe}function se(fe,ve){if(!(fe instanceof ve))throw new TypeError("Cannot call a class as a function")}function ee(fe,ve){for(var ke=0;ke<ve.length;ke++){var Te=ve[ke];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(fe,x(Te.key),Te)}}function de(fe,ve,ke){return ve&&ee(fe.prototype,ve),ke&&ee(fe,ke),Object.defineProperty(fe,"prototype",{writable:!1}),fe}function x(fe){var ve=te(fe,"string");return typeof ve=="symbol"?ve:String(ve)}function te(fe,ve){if(typeof fe!="object"||fe===null)return fe;var ke=fe[Symbol.toPrimitive];if(ke!==void 0){var Te=ke.call(fe,ve||"default");if(typeof Te!="object")return Te;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ve==="string"?String:Number)(fe)}var re=y("buffer"),ae=re.Buffer,ue=y("util"),he=ue.inspect,pe=he&&he.custom||"inspect";function me(fe,ve,ke){ae.prototype.copy.call(fe,ve,ke)}Se.exports=function(){function fe(){se(this,fe),this.head=null,this.tail=null,this.length=0}return de(fe,[{key:"push",value:function(ke){var Te={data:ke,next:null};this.length>0?this.tail.next=Te:this.head=Te,this.tail=Te,++this.length}},{key:"unshift",value:function(ke){var Te={data:ke,next:this.head};this.length===0&&(this.tail=Te),this.head=Te,++this.length}},{key:"shift",value:function(){if(this.length!==0){var ke=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,ke}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(ke){if(this.length===0)return"";for(var Te=this.head,Pe=""+Te.data;Te=Te.next;)Pe+=ke+Te.data;return Pe}},{key:"concat",value:function(ke){if(this.length===0)return ae.alloc(0);for(var Te=ae.allocUnsafe(ke>>>0),Pe=this.head,_e=0;Pe;)me(Pe.data,Te,_e),_e+=Pe.data.length,Pe=Pe.next;return Te}},{key:"consume",value:function(ke,Te){var Pe;return ke<this.head.data.length?(Pe=this.head.data.slice(0,ke),this.head.data=this.head.data.slice(ke)):ke===this.head.data.length?Pe=this.shift():Pe=Te?this._getString(ke):this._getBuffer(ke),Pe}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(ke){var Te=this.head,Pe=1,_e=Te.data;for(ke-=_e.length;Te=Te.next;){var be=Te.data,xe=ke>be.length?be.length:ke;if(xe===be.length?_e+=be:_e+=be.slice(0,ke),ke-=xe,ke===0){xe===be.length?(++Pe,Te.next?this.head=Te.next:this.head=this.tail=null):(this.head=Te,Te.data=be.slice(xe));break}++Pe}return this.length-=Pe,_e}},{key:"_getBuffer",value:function(ke){var Te=ae.allocUnsafe(ke),Pe=this.head,_e=1;for(Pe.data.copy(Te),ke-=Pe.data.length;Pe=Pe.next;){var be=Pe.data,xe=ke>be.length?be.length:ke;if(be.copy(Te,Te.length-ke,0,xe),ke-=xe,ke===0){xe===be.length?(++_e,Pe.next?this.head=Pe.next:this.head=this.tail=null):(this.head=Pe,Pe.data=be.slice(xe));break}++_e}return this.length-=_e,Te}},{key:pe,value:function(ke,Te){return he(this,z(z({},Te),{},{depth:0,customInspect:!1}))}}]),fe}()},{buffer:90,util:89}],407:[function(y,Se,ye){(function(E){(function(){"use strict";function z(te,re){var ae=this,ue=this._readableState&&this._readableState.destroyed,he=this._writableState&&this._writableState.destroyed;return ue||he?(re?re(te):te&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,E.nextTick(de,this,te)):E.nextTick(de,this,te)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(te||null,function(pe){!re&&pe?ae._writableState?ae._writableState.errorEmitted?E.nextTick(se,ae):(ae._writableState.errorEmitted=!0,E.nextTick(oe,ae,pe)):E.nextTick(oe,ae,pe):re?(E.nextTick(se,ae),re(pe)):E.nextTick(se,ae)}),this)}function oe(te,re){de(te,re),se(te)}function se(te){te._writableState&&!te._writableState.emitClose||te._readableState&&!te._readableState.emitClose||te.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function de(te,re){te.emit("error",re)}function x(te,re){var ae=te._readableState,ue=te._writableState;ae&&ae.autoDestroy||ue&&ue.autoDestroy?te.destroy(re):te.emit("error",re)}Se.exports={destroy:z,undestroy:ee,errorOrDestroy:x}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,Se,ye){"use strict";var E=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(de){var x=!1;return function(){if(!x){x=!0;for(var te=arguments.length,re=new Array(te),ae=0;ae<te;ae++)re[ae]=arguments[ae];de.apply(this,re)}}}function oe(){}function se(de){return de.setHeader&&typeof de.abort=="function"}function ee(de,x,te){if(typeof x=="function")return ee(de,null,x);x||(x={}),te=z(te||oe);var re=x.readable||x.readable!==!1&&de.readable,ae=x.writable||x.writable!==!1&&de.writable,ue=function(){de.writable||pe()},he=de._writableState&&de._writableState.finished,pe=function(){ae=!1,he=!0,re||te.call(de)},me=de._readableState&&de._readableState.endEmitted,fe=function(){re=!1,me=!0,ae||te.call(de)},ve=function(_e){te.call(de,_e)},ke=function(){var _e;if(re&&!me)return(!de._readableState||!de._readableState.ended)&&(_e=new E),te.call(de,_e);if(ae&&!he)return(!de._writableState||!de._writableState.ended)&&(_e=new E),te.call(de,_e)},Te=function(){de.req.on("finish",pe)};return se(de)?(de.on("complete",pe),de.on("abort",ke),de.req?Te():de.on("request",Te)):ae&&!de._writableState&&(de.on("end",ue),de.on("close",ue)),de.on("end",fe),de.on("finish",pe),x.error!==!1&&de.on("error",ve),de.on("close",ke),function(){de.removeListener("complete",pe),de.removeListener("abort",ke),de.removeListener("request",Te),de.req&&de.req.removeListener("finish",pe),de.removeListener("end",ue),de.removeListener("close",ue),de.removeListener("finish",pe),de.removeListener("end",fe),de.removeListener("error",ve),de.removeListener("close",ke)}}Se.exports=ee},{"../../../errors":399}],409:[function(y,Se,ye){Se.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,Se,ye){"use strict";var E;function z(pe){var me=!1;return function(){me||(me=!0,pe.apply(void 0,arguments))}}var oe=y("../../../errors").codes,se=oe.ERR_MISSING_ARGS,ee=oe.ERR_STREAM_DESTROYED;function de(pe){if(pe)throw pe}function x(pe){return pe.setHeader&&typeof pe.abort=="function"}function te(pe,me,fe,ve){ve=z(ve);var ke=!1;pe.on("close",function(){ke=!0}),E===void 0&&(E=y("./end-of-stream")),E(pe,{readable:me,writable:fe},function(Pe){if(Pe)return ve(Pe);ke=!0,ve()});var Te=!1;return function(Pe){if(!ke&&!Te){if(Te=!0,x(pe))return pe.abort();if(typeof pe.destroy=="function")return pe.destroy();ve(Pe||new ee("pipe"))}}}function re(pe){pe()}function ae(pe,me){return pe.pipe(me)}function ue(pe){return!pe.length||typeof pe[pe.length-1]!="function"?de:pe.pop()}function he(){for(var pe=arguments.length,me=new Array(pe),fe=0;fe<pe;fe++)me[fe]=arguments[fe];var ve=ue(me);if(Array.isArray(me[0])&&(me=me[0]),me.length<2)throw new se("streams");var ke,Te=me.map(function(Pe,_e){var be=_e<me.length-1,xe=_e>0;return te(Pe,be,xe,function(Ae){ke||(ke=Ae),Ae&&Te.forEach(re),!be&&(Te.forEach(re),ve(ke))})});return me.reduce(ae)}Se.exports=he},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,Se,ye){"use strict";var E=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(se,ee,de){return se.highWaterMark!=null?se.highWaterMark:ee?se[de]:null}function oe(se,ee,de,x){var te=z(ee,x,de);if(te!=null){if(!(isFinite(te)&&Math.floor(te)===te)||te<0){var re=x?de:"highWaterMark";throw new E(re,te)}return Math.floor(te)}return se.objectMode?16:16*1024}Se.exports={getHighWaterMark:oe}},{"../../../errors":399}],412:[function(y,Se,ye){arguments[4][393][0].apply(ye,arguments)},{dup:393,events:344}],413:[function(y,Se,ye){"use strict";var E=y("safe-buffer").Buffer,z=E.isEncoding||function(Te){switch(Te=""+Te,Te&&Te.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function oe(Te){if(!Te)return"utf8";for(var Pe;;)switch(Te){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Te;default:if(Pe)return;Te=(""+Te).toLowerCase(),Pe=!0}}function se(Te){var Pe=oe(Te);if(typeof Pe!="string"&&(E.isEncoding===z||!z(Te)))throw new Error("Unknown encoding: "+Te);return Pe||Te}ye.StringDecoder=ee;function ee(Te){this.encoding=se(Te);var Pe;switch(this.encoding){case"utf16le":this.text=he,this.end=pe,Pe=4;break;case"utf8":this.fillLast=re,Pe=4;break;case"base64":this.text=me,this.end=fe,Pe=3;break;default:this.write=ve,this.end=ke;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=E.allocUnsafe(Pe)}ee.prototype.write=function(Te){if(Te.length===0)return"";var Pe,_e;if(this.lastNeed){if(Pe=this.fillLast(Te),Pe===void 0)return"";_e=this.lastNeed,this.lastNeed=0}else _e=0;return _e<Te.length?Pe?Pe+this.text(Te,_e):this.text(Te,_e):Pe||""},ee.prototype.end=ue,ee.prototype.text=ae,ee.prototype.fillLast=function(Te){if(this.lastNeed<=Te.length)return Te.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Te.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Te.length),this.lastNeed-=Te.length};function de(Te){return Te<=127?0:Te>>5===6?2:Te>>4===14?3:Te>>3===30?4:Te>>6===2?-1:-2}function x(Te,Pe,_e){var be=Pe.length-1;if(be<_e)return 0;var xe=de(Pe[be]);return xe>=0?(xe>0&&(Te.lastNeed=xe-1),xe):--be<_e||xe===-2?0:(xe=de(Pe[be]),xe>=0?(xe>0&&(Te.lastNeed=xe-2),xe):--be<_e||xe===-2?0:(xe=de(Pe[be]),xe>=0?(xe>0&&(xe===2?xe=0:Te.lastNeed=xe-3),xe):0))}function te(Te,Pe,_e){if((Pe[0]&192)!==128)return Te.lastNeed=0,"\uFFFD";if(Te.lastNeed>1&&Pe.length>1){if((Pe[1]&192)!==128)return Te.lastNeed=1,"\uFFFD";if(Te.lastNeed>2&&Pe.length>2&&(Pe[2]&192)!==128)return Te.lastNeed=2,"\uFFFD"}}function re(Te){var Pe=this.lastTotal-this.lastNeed,_e=te(this,Te,Pe);if(_e!==void 0)return _e;if(this.lastNeed<=Te.length)return Te.copy(this.lastChar,Pe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Te.copy(this.lastChar,Pe,0,Te.length),this.lastNeed-=Te.length}function ae(Te,Pe){var _e=x(this,Te,Pe);if(!this.lastNeed)return Te.toString("utf8",Pe);this.lastTotal=_e;var be=Te.length-(_e-this.lastNeed);return Te.copy(this.lastChar,0,be),Te.toString("utf8",Pe,be)}function ue(Te){var Pe=Te&&Te.length?this.write(Te):"";return this.lastNeed?Pe+"\uFFFD":Pe}function he(Te,Pe){if((Te.length-Pe)%2===0){var _e=Te.toString("utf16le",Pe);if(_e){var be=_e.charCodeAt(_e.length-1);if(be>=55296&&be<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Te[Te.length-2],this.lastChar[1]=Te[Te.length-1],_e.slice(0,-1)}return _e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Te[Te.length-1],Te.toString("utf16le",Pe,Te.length-1)}function pe(Te){var Pe=Te&&Te.length?this.write(Te):"";if(this.lastNeed){var _e=this.lastTotal-this.lastNeed;return Pe+this.lastChar.toString("utf16le",0,_e)}return Pe}function me(Te,Pe){var _e=(Te.length-Pe)%3;return _e===0?Te.toString("base64",Pe):(this.lastNeed=3-_e,this.lastTotal=3,_e===1?this.lastChar[0]=Te[Te.length-1]:(this.lastChar[0]=Te[Te.length-2],this.lastChar[1]=Te[Te.length-1]),Te.toString("base64",Pe,Te.length-_e))}function fe(Te){var Pe=Te&&Te.length?this.write(Te):"";return this.lastNeed?Pe+this.lastChar.toString("base64",0,3-this.lastNeed):Pe}function ve(Te){return Te.toString(this.encoding)}function ke(Te){return Te&&Te.length?this.write(Te):""}},{"safe-buffer":396}],414:[function(y,Se,ye){(function(E,z){(function(){var oe=y("process/browser.js").nextTick,se=Function.prototype.apply,ee=Array.prototype.slice,de={},x=0;ye.setTimeout=function(){return new te(se.call(setTimeout,window,arguments),clearTimeout)},ye.setInterval=function(){return new te(se.call(setInterval,window,arguments),clearInterval)},ye.clearTimeout=ye.clearInterval=function(re){re.close()};function te(re,ae){this._id=re,this._clearFn=ae}te.prototype.unref=te.prototype.ref=function(){},te.prototype.close=function(){this._clearFn.call(window,this._id)},ye.enroll=function(re,ae){clearTimeout(re._idleTimeoutId),re._idleTimeout=ae},ye.unenroll=function(re){clearTimeout(re._idleTimeoutId),re._idleTimeout=-1},ye._unrefActive=ye.active=function(re){clearTimeout(re._idleTimeoutId);var ae=re._idleTimeout;ae>=0&&(re._idleTimeoutId=setTimeout(function(){re._onTimeout&&re._onTimeout()},ae))},ye.setImmediate=typeof E=="function"?E:function(re){var ae=x++,ue=arguments.length<2?!1:ee.call(arguments,1);return de[ae]=!0,oe(function(){de[ae]&&(ue?re.apply(null,ue):re.call(null),ye.clearImmediate(ae))}),ae},ye.clearImmediate=typeof z=="function"?z:function(re){delete de[re]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,Se,ye){var E=y("buffer").Buffer;Se.exports=function(z){if(z instanceof Uint8Array){if(z.byteOffset===0&&z.byteLength===z.buffer.byteLength)return z.buffer;if(typeof z.buffer.slice=="function")return z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength)}if(E.isBuffer(z)){for(var oe=new Uint8Array(z.length),se=z.length,ee=0;ee<se;ee++)oe[ee]=z[ee];return oe.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,Se,ye){(function(E){(function(){Se.exports=z;function z(se,ee){if(oe("noDeprecation"))return se;var de=!1;function x(){if(!de){if(oe("throwDeprecation"))throw new Error(ee);oe("traceDeprecation")?console.trace(ee):console.warn(ee),de=!0}return se.apply(this,arguments)}return x}function oe(se){try{if(!E.localStorage)return!1}catch(de){return!1}var ee=E.localStorage[se];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(y,Se,ye){arguments[4][84][0].apply(ye,arguments)},{dup:84}],418:[function(y,Se,ye){"use strict";var E=y("is-arguments"),z=y("is-generator-function"),oe=y("which-typed-array"),se=y("is-typed-array");function ee(tt){return tt.call.bind(tt)}var de=typeof BigInt!="undefined",x=typeof Symbol!="undefined",te=ee(Object.prototype.toString),re=ee(Number.prototype.valueOf),ae=ee(String.prototype.valueOf),ue=ee(Boolean.prototype.valueOf);if(de)var he=ee(BigInt.prototype.valueOf);if(x)var pe=ee(Symbol.prototype.valueOf);function me(tt,Ge){if(typeof tt!="object")return!1;try{return Ge(tt),!0}catch(ft){return!1}}ye.isArgumentsObject=E,ye.isGeneratorFunction=z,ye.isTypedArray=se;function fe(tt){return typeof Promise!="undefined"&&tt instanceof Promise||tt!==null&&typeof tt=="object"&&typeof tt.then=="function"&&typeof tt.catch=="function"}ye.isPromise=fe;function ve(tt){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(tt):se(tt)||Ve(tt)}ye.isArrayBufferView=ve;function ke(tt){return oe(tt)==="Uint8Array"}ye.isUint8Array=ke;function Te(tt){return oe(tt)==="Uint8ClampedArray"}ye.isUint8ClampedArray=Te;function Pe(tt){return oe(tt)==="Uint16Array"}ye.isUint16Array=Pe;function _e(tt){return oe(tt)==="Uint32Array"}ye.isUint32Array=_e;function be(tt){return oe(tt)==="Int8Array"}ye.isInt8Array=be;function xe(tt){return oe(tt)==="Int16Array"}ye.isInt16Array=xe;function Ae(tt){return oe(tt)==="Int32Array"}ye.isInt32Array=Ae;function Me(tt){return oe(tt)==="Float32Array"}ye.isFloat32Array=Me;function Be(tt){return oe(tt)==="Float64Array"}ye.isFloat64Array=Be;function Ce(tt){return oe(tt)==="BigInt64Array"}ye.isBigInt64Array=Ce;function De(tt){return oe(tt)==="BigUint64Array"}ye.isBigUint64Array=De;function He(tt){return te(tt)==="[object Map]"}He.working=typeof Map!="undefined"&&He(new Map);function Ke(tt){return typeof Map=="undefined"?!1:He.working?He(tt):tt instanceof Map}ye.isMap=Ke;function Ye(tt){return te(tt)==="[object Set]"}Ye.working=typeof Set!="undefined"&&Ye(new Set);function it(tt){return typeof Set=="undefined"?!1:Ye.working?Ye(tt):tt instanceof Set}ye.isSet=it;function Re(tt){return te(tt)==="[object WeakMap]"}Re.working=typeof WeakMap!="undefined"&&Re(new WeakMap);function We(tt){return typeof WeakMap=="undefined"?!1:Re.working?Re(tt):tt instanceof WeakMap}ye.isWeakMap=We;function et(tt){return te(tt)==="[object WeakSet]"}et.working=typeof WeakSet!="undefined"&&et(new WeakSet);function nt(tt){return et(tt)}ye.isWeakSet=nt;function rt(tt){return te(tt)==="[object ArrayBuffer]"}rt.working=typeof ArrayBuffer!="undefined"&&rt(new ArrayBuffer);function Xe(tt){return typeof ArrayBuffer=="undefined"?!1:rt.working?rt(tt):tt instanceof ArrayBuffer}ye.isArrayBuffer=Xe;function Je(tt){return te(tt)==="[object DataView]"}Je.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Je(new DataView(new ArrayBuffer(1),0,1));function Ve(tt){return typeof DataView=="undefined"?!1:Je.working?Je(tt):tt instanceof DataView}ye.isDataView=Ve;var at=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function Qe(tt){return te(tt)==="[object SharedArrayBuffer]"}function ut(tt){return typeof at=="undefined"?!1:(typeof Qe.working=="undefined"&&(Qe.working=Qe(new at)),Qe.working?Qe(tt):tt instanceof at)}ye.isSharedArrayBuffer=ut;function st(tt){return te(tt)==="[object AsyncFunction]"}ye.isAsyncFunction=st;function $e(tt){return te(tt)==="[object Map Iterator]"}ye.isMapIterator=$e;function Ne(tt){return te(tt)==="[object Set Iterator]"}ye.isSetIterator=Ne;function je(tt){return te(tt)==="[object Generator]"}ye.isGeneratorObject=je;function ne(tt){return te(tt)==="[object WebAssembly.Module]"}ye.isWebAssemblyCompiledModule=ne;function ce(tt){return me(tt,re)}ye.isNumberObject=ce;function Ie(tt){return me(tt,ae)}ye.isStringObject=Ie;function Fe(tt){return me(tt,ue)}ye.isBooleanObject=Fe;function we(tt){return de&&me(tt,he)}ye.isBigIntObject=we;function Ee(tt){return x&&me(tt,pe)}ye.isSymbolObject=Ee;function Oe(tt){return ce(tt)||Ie(tt)||Fe(tt)||we(tt)||Ee(tt)}ye.isBoxedPrimitive=Oe;function Ue(tt){return typeof Uint8Array!="undefined"&&(Xe(tt)||ut(tt))}ye.isAnyArrayBuffer=Ue,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(tt){Object.defineProperty(ye,tt,{enumerable:!1,value:function(){throw new Error(tt+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,Se,ye){(function(E){(function(){var z=Object.getOwnPropertyDescriptors||function(at){for(var Qe=Object.keys(at),ut={},st=0;st<Qe.length;st++)ut[Qe[st]]=Object.getOwnPropertyDescriptor(at,Qe[st]);return ut},oe=/%[sdj%]/g;ye.format=function(Ve){if(!xe(Ve)){for(var at=[],Qe=0;Qe<arguments.length;Qe++)at.push(x(arguments[Qe]));return at.join(" ")}for(var Qe=1,ut=arguments,st=ut.length,$e=String(Ve).replace(oe,function(je){if(je==="%%")return"%";if(Qe>=st)return je;switch(je){case"%s":return String(ut[Qe++]);case"%d":return Number(ut[Qe++]);case"%j":try{return JSON.stringify(ut[Qe++])}catch(ne){return"[Circular]"}default:return je}}),Ne=ut[Qe];Qe<st;Ne=ut[++Qe])Pe(Ne)||!Ce(Ne)?$e+=" "+Ne:$e+=" "+x(Ne);return $e},ye.deprecate=function(Ve,at){if(typeof E!="undefined"&&E.noDeprecation===!0)return Ve;if(typeof E=="undefined")return function(){return ye.deprecate(Ve,at).apply(this,arguments)};var Qe=!1;function ut(){if(!Qe){if(E.throwDeprecation)throw new Error(at);E.traceDeprecation?console.trace(at):console.error(at),Qe=!0}return Ve.apply(this,arguments)}return ut};var se={},ee=/^$/;if(E.env.NODE_DEBUG){var de=E.env.NODE_DEBUG;de=de.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+de+"$","i")}ye.debuglog=function(Ve){if(Ve=Ve.toUpperCase(),!se[Ve])if(ee.test(Ve)){var at=E.pid;se[Ve]=function(){var Qe=ye.format.apply(ye,arguments);console.error("%s %d: %s",Ve,at,Qe)}}else se[Ve]=function(){};return se[Ve]};function x(Ve,at){var Qe={seen:[],stylize:re};return arguments.length>=3&&(Qe.depth=arguments[2]),arguments.length>=4&&(Qe.colors=arguments[3]),Te(at)?Qe.showHidden=at:at&&ye._extend(Qe,at),Me(Qe.showHidden)&&(Qe.showHidden=!1),Me(Qe.depth)&&(Qe.depth=2),Me(Qe.colors)&&(Qe.colors=!1),Me(Qe.customInspect)&&(Qe.customInspect=!0),Qe.colors&&(Qe.stylize=te),ue(Qe,Ve,Qe.depth)}ye.inspect=x,x.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},x.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function te(Ve,at){var Qe=x.styles[at];return Qe?"\x1B["+x.colors[Qe][0]+"m"+Ve+"\x1B["+x.colors[Qe][1]+"m":Ve}function re(Ve,at){return Ve}function ae(Ve){var at={};return Ve.forEach(function(Qe,ut){at[Qe]=!0}),at}function ue(Ve,at,Qe){if(Ve.customInspect&&at&&Ke(at.inspect)&&at.inspect!==ye.inspect&&!(at.constructor&&at.constructor.prototype===at)){var ut=at.inspect(Qe,Ve);return xe(ut)||(ut=ue(Ve,ut,Qe)),ut}var st=he(Ve,at);if(st)return st;var $e=Object.keys(at),Ne=ae($e);if(Ve.showHidden&&($e=Object.getOwnPropertyNames(at)),He(at)&&($e.indexOf("message")>=0||$e.indexOf("description")>=0))return pe(at);if($e.length===0){if(Ke(at)){var je=at.name?": "+at.name:"";return Ve.stylize("[Function"+je+"]","special")}if(Be(at))return Ve.stylize(RegExp.prototype.toString.call(at),"regexp");if(De(at))return Ve.stylize(Date.prototype.toString.call(at),"date");if(He(at))return pe(at)}var ne="",ce=!1,Ie=["{","}"];if(ke(at)&&(ce=!0,Ie=["[","]"]),Ke(at)){var Fe=at.name?": "+at.name:"";ne=" [Function"+Fe+"]"}if(Be(at)&&(ne=" "+RegExp.prototype.toString.call(at)),De(at)&&(ne=" "+Date.prototype.toUTCString.call(at)),He(at)&&(ne=" "+pe(at)),$e.length===0&&(!ce||at.length==0))return Ie[0]+ne+Ie[1];if(Qe<0)return Be(at)?Ve.stylize(RegExp.prototype.toString.call(at),"regexp"):Ve.stylize("[Object]","special");Ve.seen.push(at);var we;return ce?we=me(Ve,at,Qe,Ne,$e):we=$e.map(function(Ee){return fe(Ve,at,Qe,Ne,Ee,ce)}),Ve.seen.pop(),ve(we,ne,Ie)}function he(Ve,at){if(Me(at))return Ve.stylize("undefined","undefined");if(xe(at)){var Qe="'"+JSON.stringify(at).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ve.stylize(Qe,"string")}if(be(at))return Ve.stylize(""+at,"number");if(Te(at))return Ve.stylize(""+at,"boolean");if(Pe(at))return Ve.stylize("null","null")}function pe(Ve){return"["+Error.prototype.toString.call(Ve)+"]"}function me(Ve,at,Qe,ut,st){for(var $e=[],Ne=0,je=at.length;Ne<je;++Ne)nt(at,String(Ne))?$e.push(fe(Ve,at,Qe,ut,String(Ne),!0)):$e.push("");return st.forEach(function(ne){ne.match(/^\d+$/)||$e.push(fe(Ve,at,Qe,ut,ne,!0))}),$e}function fe(Ve,at,Qe,ut,st,$e){var Ne,je,ne;if(ne=Object.getOwnPropertyDescriptor(at,st)||{value:at[st]},ne.get?ne.set?je=Ve.stylize("[Getter/Setter]","special"):je=Ve.stylize("[Getter]","special"):ne.set&&(je=Ve.stylize("[Setter]","special")),nt(ut,st)||(Ne="["+st+"]"),je||(Ve.seen.indexOf(ne.value)<0?(Pe(Qe)?je=ue(Ve,ne.value,null):je=ue(Ve,ne.value,Qe-1),je.indexOf(`
`)>-1&&($e?je=je.split(`
`).map(function(ce){return" "+ce}).join(`
`).slice(2):je=`
`+je.split(`
`).map(function(ce){return" "+ce}).join(`
`))):je=Ve.stylize("[Circular]","special")),Me(Ne)){if($e&&st.match(/^\d+$/))return je;Ne=JSON.stringify(""+st),Ne.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ne=Ne.slice(1,-1),Ne=Ve.stylize(Ne,"name")):(Ne=Ne.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ne=Ve.stylize(Ne,"string"))}return Ne+": "+je}function ve(Ve,at,Qe){var ut=0,st=Ve.reduce(function($e,Ne){return ut++,Ne.indexOf(`
`)>=0&&ut++,$e+Ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return st>60?Qe[0]+(at===""?"":at+`
`)+" "+Ve.join(`,
`)+" "+Qe[1]:Qe[0]+at+" "+Ve.join(", ")+" "+Qe[1]}ye.types=y("./support/types");function ke(Ve){return Array.isArray(Ve)}ye.isArray=ke;function Te(Ve){return typeof Ve=="boolean"}ye.isBoolean=Te;function Pe(Ve){return Ve===null}ye.isNull=Pe;function _e(Ve){return Ve==null}ye.isNullOrUndefined=_e;function be(Ve){return typeof Ve=="number"}ye.isNumber=be;function xe(Ve){return typeof Ve=="string"}ye.isString=xe;function Ae(Ve){return typeof Ve=="symbol"}ye.isSymbol=Ae;function Me(Ve){return Ve===void 0}ye.isUndefined=Me;function Be(Ve){return Ce(Ve)&&it(Ve)==="[object RegExp]"}ye.isRegExp=Be,ye.types.isRegExp=Be;function Ce(Ve){return typeof Ve=="object"&&Ve!==null}ye.isObject=Ce;function De(Ve){return Ce(Ve)&&it(Ve)==="[object Date]"}ye.isDate=De,ye.types.isDate=De;function He(Ve){return Ce(Ve)&&(it(Ve)==="[object Error]"||Ve instanceof Error)}ye.isError=He,ye.types.isNativeError=He;function Ke(Ve){return typeof Ve=="function"}ye.isFunction=Ke;function Ye(Ve){return Ve===null||typeof Ve=="boolean"||typeof Ve=="number"||typeof Ve=="string"||typeof Ve=="symbol"||typeof Ve=="undefined"}ye.isPrimitive=Ye,ye.isBuffer=y("./support/isBuffer");function it(Ve){return Object.prototype.toString.call(Ve)}function Re(Ve){return Ve<10?"0"+Ve.toString(10):Ve.toString(10)}var We=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function et(){var Ve=new Date,at=[Re(Ve.getHours()),Re(Ve.getMinutes()),Re(Ve.getSeconds())].join(":");return[Ve.getDate(),We[Ve.getMonth()],at].join(" ")}ye.log=function(){console.log("%s - %s",et(),ye.format.apply(ye,arguments))},ye.inherits=y("inherits"),ye._extend=function(Ve,at){if(!at||!Ce(at))return Ve;for(var Qe=Object.keys(at),ut=Qe.length;ut--;)Ve[Qe[ut]]=at[Qe[ut]];return Ve};function nt(Ve,at){return Object.prototype.hasOwnProperty.call(Ve,at)}var rt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ye.promisify=function(at){if(typeof at!="function")throw new TypeError('The "original" argument must be of type Function');if(rt&&at[rt]){var Qe=at[rt];if(typeof Qe!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(Qe,rt,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Qe}function Qe(){for(var ut,st,$e=new Promise(function(ne,ce){ut=ne,st=ce}),Ne=[],je=0;je<arguments.length;je++)Ne.push(arguments[je]);Ne.push(function(ne,ce){ne?st(ne):ut(ce)});try{at.apply(this,Ne)}catch(ne){st(ne)}return $e}return Object.setPrototypeOf(Qe,Object.getPrototypeOf(at)),rt&&Object.defineProperty(Qe,rt,{value:Qe,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(Qe,z(at))},ye.promisify.custom=rt;function Xe(Ve,at){if(!Ve){var Qe=new Error("Promise was rejected with a falsy value");Qe.reason=Ve,Ve=Qe}return at(Ve)}function Je(Ve){if(typeof Ve!="function")throw new TypeError('The "original" argument must be of type Function');function at(){for(var Qe=[],ut=0;ut<arguments.length;ut++)Qe.push(arguments[ut]);var st=Qe.pop();if(typeof st!="function")throw new TypeError("The last argument must be of type Function");var $e=this,Ne=function(){return st.apply($e,arguments)};Ve.apply(this,Qe).then(function(je){E.nextTick(Ne.bind(null,null,je))},function(je){E.nextTick(Xe.bind(null,je,Ne))})}return Object.setPrototypeOf(at,Object.getPrototypeOf(Ve)),Object.defineProperties(at,z(Ve)),at}ye.callbackify=Je}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,Se,ye){(function(E){(function(){"use strict";var z=y("for-each"),oe=y("available-typed-arrays"),se=y("call-bind"),ee=y("call-bind/callBound"),de=y("gopd"),x=ee("Object.prototype.toString"),te=y("has-tostringtag/shams")(),re=typeof globalThis=="undefined"?E:globalThis,ae=oe(),ue=ee("String.prototype.slice"),he=Object.getPrototypeOf,pe=ee("Array.prototype.indexOf",!0)||function(Te,Pe){for(var _e=0;_e<Te.length;_e+=1)if(Te[_e]===Pe)return _e;return-1},me={__proto__:null};te&&de&&he?z(ae,function(ke){var Te=new re[ke];if(Symbol.toStringTag in Te){var Pe=he(Te),_e=de(Pe,Symbol.toStringTag);if(!_e){var be=he(Pe);_e=de(be,Symbol.toStringTag)}me["$"+ke]=se(_e.get)}}):z(ae,function(ke){var Te=new re[ke];me["$"+ke]=se(Te.slice)});var fe=function(Te){var Pe=!1;return z(me,function(_e,be){if(!Pe)try{"$"+_e(Te)===be&&(Pe=ue(be,1))}catch(xe){}}),Pe},ve=function(Te){var Pe=!1;return z(me,function(_e,be){if(!Pe)try{_e(Te),Pe=ue(be,1)}catch(xe){}}),Pe};Se.exports=function(Te){if(!Te||typeof Te!="object")return!1;if(!te){var Pe=ue(x(Te),8,-1);return pe(ae,Pe)>-1?Pe:Pe!=="Object"?!1:ve(Te)}return de?fe(Te):null}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"available-typed-arrays":86,"call-bind":93,"call-bind/callBound":92,"for-each":345,gopd:349,"has-tostringtag/shams":353}],421:[function(y,Se,ye){(function(){"use strict";ye.stripBOM=function(E){return E[0]==="\uFEFF"?E.substring(1):E}}).call(this)},{}],422:[function(y,Se,ye){(function(){"use strict";var E,z,oe,se,ee,de={}.hasOwnProperty;E=y("xmlbuilder"),z=y("./defaults").defaults,se=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},ee=function(x){return"<![CDATA["+oe(x)+"]]>"},oe=function(x){return x.replace("]]>","]]]]><![CDATA[>")},ye.Builder=function(){function x(te){var re,ae,ue;this.options={},ae=z["0.2"];for(re in ae)de.call(ae,re)&&(ue=ae[re],this.options[re]=ue);for(re in te)de.call(te,re)&&(ue=te[re],this.options[re]=ue)}return x.prototype.buildObject=function(te){var re,ae,ue,he,pe;return re=this.options.attrkey,ae=this.options.charkey,Object.keys(te).length===1&&this.options.rootName===z["0.2"].rootName?(pe=Object.keys(te)[0],te=te[pe]):pe=this.options.rootName,ue=function(me){return function(fe,ve){var ke,Te,Pe,_e,be,xe;if(typeof ve!="object")me.options.cdata&&se(ve)?fe.raw(ee(ve)):fe.txt(ve);else if(Array.isArray(ve)){for(_e in ve)if(de.call(ve,_e)){Te=ve[_e];for(be in Te)Pe=Te[be],fe=ue(fe.ele(be),Pe).up()}}else for(be in ve)if(de.call(ve,be))if(Te=ve[be],be===re){if(typeof Te=="object")for(ke in Te)xe=Te[ke],fe=fe.att(ke,xe)}else if(be===ae)me.options.cdata&&se(Te)?fe=fe.raw(ee(Te)):fe=fe.txt(Te);else if(Array.isArray(Te))for(_e in Te)de.call(Te,_e)&&(Pe=Te[_e],typeof Pe=="string"?me.options.cdata&&se(Pe)?fe=fe.ele(be).raw(ee(Pe)).up():fe=fe.ele(be,Pe).up():fe=ue(fe.ele(be),Pe).up());else typeof Te=="object"?fe=ue(fe.ele(be),Te).up():typeof Te=="string"&&me.options.cdata&&se(Te)?fe=fe.ele(be).raw(ee(Te)).up():(Te==null&&(Te=""),fe=fe.ele(be,Te.toString()).up());return fe}}(this),he=E.create(pe,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ue(he,te).end(this.options.renderOpts)},x}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(y,Se,ye){(function(){ye.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(this)},{}],424:[function(y,Se,ye){(function(){"use strict";var E,z,oe,se,ee,de,x,te,re,ae=function(pe,me){return function(){return pe.apply(me,arguments)}},ue=function(pe,me){for(var fe in me)he.call(me,fe)&&(pe[fe]=me[fe]);function ve(){this.constructor=pe}return ve.prototype=me.prototype,pe.prototype=new ve,pe.__super__=me.prototype,pe},he={}.hasOwnProperty;te=y("sax"),se=y("events"),E=y("./bom"),x=y("./processors"),re=y("timers").setImmediate,z=y("./defaults").defaults,ee=function(pe){return typeof pe=="object"&&pe!=null&&Object.keys(pe).length===0},de=function(pe,me,fe){var ve,ke,Te;for(ve=0,ke=pe.length;ve<ke;ve++)Te=pe[ve],me=Te(me,fe);return me},oe=function(pe,me,fe){var ve;return ve=Object.create(null),ve.value=fe,ve.writable=!0,ve.enumerable=!0,ve.configurable=!0,Object.defineProperty(pe,me,ve)},ye.Parser=function(pe){ue(me,pe);function me(fe){this.parseStringPromise=ae(this.parseStringPromise,this),this.parseString=ae(this.parseString,this),this.reset=ae(this.reset,this),this.assignOrPush=ae(this.assignOrPush,this),this.processAsync=ae(this.processAsync,this);var ve,ke,Te;if(!(this instanceof ye.Parser))return new ye.Parser(fe);this.options={},ke=z["0.2"];for(ve in ke)he.call(ke,ve)&&(Te=ke[ve],this.options[ve]=Te);for(ve in fe)he.call(fe,ve)&&(Te=fe[ve],this.options[ve]=Te);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(x.normalize)),this.reset()}return me.prototype.processAsync=function(){var fe,ve;try{return this.remaining.length<=this.options.chunkSize?(fe=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(fe),this.saxParser.close()):(fe=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(fe),re(this.processAsync))}catch(ke){if(ve=ke,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(ve)}},me.prototype.assignOrPush=function(fe,ve,ke){return ve in fe?(fe[ve]instanceof Array||oe(fe,ve,[fe[ve]]),fe[ve].push(ke)):this.options.explicitArray?oe(fe,ve,[ke]):oe(fe,ve,ke)},me.prototype.reset=function(){var fe,ve,ke,Te;return this.removeAllListeners(),this.saxParser=te.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Pe){return function(_e){if(Pe.saxParser.resume(),!Pe.saxParser.errThrown)return Pe.saxParser.errThrown=!0,Pe.emit("error",_e)}}(this),this.saxParser.onend=function(Pe){return function(){if(!Pe.saxParser.ended)return Pe.saxParser.ended=!0,Pe.emit("end",Pe.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Te=[],fe=this.options.attrkey,ve=this.options.charkey,this.saxParser.onopentag=function(Pe){return function(_e){var be,xe,Ae,Me,Be;if(Ae={},Ae[ve]="",!Pe.options.ignoreAttrs){Be=_e.attributes;for(be in Be)he.call(Be,be)&&(!(fe in Ae)&&!Pe.options.mergeAttrs&&(Ae[fe]={}),xe=Pe.options.attrValueProcessors?de(Pe.options.attrValueProcessors,_e.attributes[be],be):_e.attributes[be],Me=Pe.options.attrNameProcessors?de(Pe.options.attrNameProcessors,be):be,Pe.options.mergeAttrs?Pe.assignOrPush(Ae,Me,xe):oe(Ae[fe],Me,xe))}return Ae["#name"]=Pe.options.tagNameProcessors?de(Pe.options.tagNameProcessors,_e.name):_e.name,Pe.options.xmlns&&(Ae[Pe.options.xmlnskey]={uri:_e.uri,local:_e.local}),Te.push(Ae)}}(this),this.saxParser.onclosetag=function(Pe){return function(){var _e,be,xe,Ae,Me,Be,Ce,De,He,Ke;if(Be=Te.pop(),Me=Be["#name"],(!Pe.options.explicitChildren||!Pe.options.preserveChildrenOrder)&&delete Be["#name"],Be.cdata===!0&&(_e=Be.cdata,delete Be.cdata),He=Te[Te.length-1],Be[ve].match(/^\s*$/)&&!_e?(be=Be[ve],delete Be[ve]):(Pe.options.trim&&(Be[ve]=Be[ve].trim()),Pe.options.normalize&&(Be[ve]=Be[ve].replace(/\s{2,}/g," ").trim()),Be[ve]=Pe.options.valueProcessors?de(Pe.options.valueProcessors,Be[ve],Me):Be[ve],Object.keys(Be).length===1&&ve in Be&&!Pe.EXPLICIT_CHARKEY&&(Be=Be[ve])),ee(Be)&&(typeof Pe.options.emptyTag=="function"?Be=Pe.options.emptyTag():Be=Pe.options.emptyTag!==""?Pe.options.emptyTag:be),Pe.options.validator!=null&&(Ke="/"+function(){var Ye,it,Re;for(Re=[],Ye=0,it=Te.length;Ye<it;Ye++)Ae=Te[Ye],Re.push(Ae["#name"]);return Re}().concat(Me).join("/"),function(){var Ye;try{return Be=Pe.options.validator(Ke,He&&He[Me],Be)}catch(it){return Ye=it,Pe.emit("error",Ye)}}()),Pe.options.explicitChildren&&!Pe.options.mergeAttrs&&typeof Be=="object"){if(!Pe.options.preserveChildrenOrder)Ae={},Pe.options.attrkey in Be&&(Ae[Pe.options.attrkey]=Be[Pe.options.attrkey],delete Be[Pe.options.attrkey]),!Pe.options.charsAsChildren&&Pe.options.charkey in Be&&(Ae[Pe.options.charkey]=Be[Pe.options.charkey],delete Be[Pe.options.charkey]),Object.getOwnPropertyNames(Be).length>0&&(Ae[Pe.options.childkey]=Be),Be=Ae;else if(He){He[Pe.options.childkey]=He[Pe.options.childkey]||[],Ce={};for(xe in Be)he.call(Be,xe)&&oe(Ce,xe,Be[xe]);He[Pe.options.childkey].push(Ce),delete Be["#name"],Object.keys(Be).length===1&&ve in Be&&!Pe.EXPLICIT_CHARKEY&&(Be=Be[ve])}}return Te.length>0?Pe.assignOrPush(He,Me,Be):(Pe.options.explicitRoot&&(De=Be,Be={},oe(Be,Me,De)),Pe.resultObject=Be,Pe.saxParser.ended=!0,Pe.emit("end",Pe.resultObject))}}(this),ke=function(Pe){return function(_e){var be,xe;if(xe=Te[Te.length-1],xe)return xe[ve]+=_e,Pe.options.explicitChildren&&Pe.options.preserveChildrenOrder&&Pe.options.charsAsChildren&&(Pe.options.includeWhiteChars||_e.replace(/\\n/g,"").trim()!=="")&&(xe[Pe.options.childkey]=xe[Pe.options.childkey]||[],be={"#name":"__text__"},be[ve]=_e,Pe.options.normalize&&(be[ve]=be[ve].replace(/\s{2,}/g," ").trim()),xe[Pe.options.childkey].push(be)),xe}}(this),this.saxParser.ontext=ke,this.saxParser.oncdata=function(Pe){return function(_e){var be;if(be=ke(_e),be)return be.cdata=!0}}(this)},me.prototype.parseString=function(fe,ve){var ke;ve!=null&&typeof ve=="function"&&(this.on("end",function(Te){return this.reset(),ve(null,Te)}),this.on("error",function(Te){return this.reset(),ve(Te)}));try{return fe=fe.toString(),fe.trim()===""?(this.emit("end",null),!0):(fe=E.stripBOM(fe),this.options.async?(this.remaining=fe,re(this.processAsync),this.saxParser):this.saxParser.write(fe).close())}catch(Te){if(ke=Te,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw ke}else return this.emit("error",ke),this.saxParser.errThrown=!0}},me.prototype.parseStringPromise=function(fe){return new Promise(function(ve){return function(ke,Te){return ve.parseString(fe,function(Pe,_e){return Pe?Te(Pe):ke(_e)})}}(this))},me}(se),ye.parseString=function(pe,me,fe){var ve,ke,Te;return fe!=null?(typeof fe=="function"&&(ve=fe),typeof me=="object"&&(ke=me)):(typeof me=="function"&&(ve=me),ke={}),Te=new ye.Parser(ke),Te.parseString(pe,ve)},ye.parseStringPromise=function(pe,me){var fe,ve;return typeof me=="object"&&(fe=me),ve=new ye.Parser(fe),ve.parseStringPromise(pe)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,Se,ye){(function(){"use strict";var E;E=new RegExp(/(?!xmlns)^.*:/),ye.normalize=function(z){return z.toLowerCase()},ye.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},ye.stripPrefix=function(z){return z.replace(E,"")},ye.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},ye.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(y,Se,ye){(function(){"use strict";var E,z,oe,se,ee=function(x,te){for(var re in te)de.call(te,re)&&(x[re]=te[re]);function ae(){this.constructor=x}return ae.prototype=te.prototype,x.prototype=new ae,x.__super__=te.prototype,x},de={}.hasOwnProperty;z=y("./defaults"),E=y("./builder"),oe=y("./parser"),se=y("./processors"),ye.defaults=z.defaults,ye.processors=se,ye.ValidationError=function(x){ee(te,x);function te(re){this.message=re}return te}(Error),ye.Builder=E.Builder,ye.Parser=oe.Parser,ye.parseString=oe.parseString,ye.parseStringPromise=oe.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,Se,ye){(function(){Se.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,Se,ye){(function(){Se.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(this)},{}],429:[function(y,Se,ye){(function(){var E,z,oe,se,ee,de,x,te=[].slice,re={}.hasOwnProperty;E=function(){var ae,ue,he,pe,me,fe;if(fe=arguments[0],me=2<=arguments.length?te.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(ae=0,he=me.length;ae<he;ae++)if(pe=me[ae],pe!=null)for(ue in pe)re.call(pe,ue)&&(fe[ue]=pe[ue]);return fe},ee=function(ae){return!!ae&&Object.prototype.toString.call(ae)==="[object Function]"},de=function(ae){var ue;return!!ae&&((ue=typeof ae)=="function"||ue==="object")},oe=function(ae){return ee(Array.isArray)?Array.isArray(ae):Object.prototype.toString.call(ae)==="[object Array]"},se=function(ae){var ue;if(oe(ae))return!ae.length;for(ue in ae)if(re.call(ae,ue))return!1;return!0},x=function(ae){var ue,he;return de(ae)&&(he=Object.getPrototypeOf(ae))&&(ue=he.constructor)&&typeof ue=="function"&&ue instanceof ue&&Function.prototype.toString.call(ue)===Function.prototype.toString.call(Object)},z=function(ae){return ee(ae.valueOf)?ae.valueOf():ae},Se.exports.assign=E,Se.exports.isFunction=ee,Se.exports.isObject=de,Se.exports.isArray=oe,Se.exports.isEmpty=se,Se.exports.isPlainObject=x,Se.exports.getValue=z}).call(this)},{}],430:[function(y,Se,ye){(function(){Se.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,Se,ye){(function(){var E,z,oe;E=y("./NodeType"),oe=y("./XMLNode"),Se.exports=z=function(){function se(ee,de,x){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),de==null)throw new Error("Missing attribute name. "+this.debugInfo(de));this.name=this.stringify.name(de),this.value=this.stringify.attValue(x),this.type=E.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(se.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(se.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(se.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(se.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(se.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(se.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(se.prototype,"specified",{get:function(){return!0}}),se.prototype.clone=function(){return Object.create(this)},se.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},se.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},se.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},se}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;E=y("./NodeType"),oe=y("./XMLCharacterData"),Se.exports=z=function(de){se(x,de);function x(te,re){if(x.__super__.constructor.call(this,te),re==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=E.CData,this.value=this.stringify.cdata(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(te){return this.options.writer.cdata(this,this.options.writer.filterOptions(te))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,Se,ye){(function(){var E,z,oe=function(ee,de){for(var x in de)se.call(de,x)&&(ee[x]=de[x]);function te(){this.constructor=ee}return te.prototype=de.prototype,ee.prototype=new te,ee.__super__=de.prototype,ee},se={}.hasOwnProperty;z=y("./XMLNode"),Se.exports=E=function(ee){oe(de,ee);function de(x){de.__super__.constructor.call(this,x),this.value=""}return Object.defineProperty(de.prototype,"data",{get:function(){return this.value},set:function(x){return this.value=x||""}}),Object.defineProperty(de.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(de.prototype,"textContent",{get:function(){return this.value},set:function(x){return this.value=x||""}}),de.prototype.clone=function(){return Object.create(this)},de.prototype.substringData=function(x,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.appendData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.insertData=function(x,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.deleteData=function(x,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.replaceData=function(x,te,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isEqualNode=function(x){return!(!de.__super__.isEqualNode.apply(this,arguments).isEqualNode(x)||x.data!==this.data)},de}(z)}).call(this)},{"./XMLNode":450}],434:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;E=y("./NodeType"),z=y("./XMLCharacterData"),Se.exports=oe=function(de){se(x,de);function x(te,re){if(x.__super__.constructor.call(this,te),re==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=E.Comment,this.value=this.stringify.comment(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(te){return this.options.writer.comment(this,this.options.writer.filterOptions(te))},x}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(y,Se,ye){(function(){var E,z,oe;z=y("./XMLDOMErrorHandler"),oe=y("./XMLDOMStringList"),Se.exports=E=function(){function se(){var ee;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ee=Object.create(this.defaultParams)}return Object.defineProperty(se.prototype,"parameterNames",{get:function(){return new oe(Object.keys(this.defaultParams))}}),se.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},se.prototype.canSetParameter=function(ee,de){return!0},se.prototype.setParameter=function(ee,de){return de!=null?this.params[ee]=de:delete this.params[ee]},se}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,Se,ye){(function(){var E;Se.exports=E=function(){function z(){}return z.prototype.handleError=function(oe){throw new Error(oe)},z}()}).call(this)},{}],437:[function(y,Se,ye){(function(){var E;Se.exports=E=function(){function z(){}return z.prototype.hasFeature=function(oe,se){return!0},z.prototype.createDocumentType=function(oe,se,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(oe,se,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(oe){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(oe,se){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(y,Se,ye){(function(){var E;Se.exports=E=function(){function z(oe){this.arr=oe||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(oe){return this.arr[oe]||null},z.prototype.contains=function(oe){return this.arr.indexOf(oe)!==-1},z}()}).call(this)},{}],439:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;oe=y("./XMLNode"),E=y("./NodeType"),Se.exports=z=function(de){se(x,de);function x(te,re,ae,ue,he,pe){if(x.__super__.constructor.call(this,te),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(ae==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(re));if(!ue)throw new Error("Missing DTD attribute type. "+this.debugInfo(re));if(!he)throw new Error("Missing DTD attribute default. "+this.debugInfo(re));if(he.indexOf("#")!==0&&(he="#"+he),!he.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(re));if(pe&&!he.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(re));this.elementName=this.stringify.name(re),this.type=E.AttributeDeclaration,this.attributeName=this.stringify.name(ae),this.attributeType=this.stringify.dtdAttType(ue),pe&&(this.defaultValue=this.stringify.dtdAttDefault(pe)),this.defaultValueType=he}return x.prototype.toString=function(te){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(te))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;oe=y("./XMLNode"),E=y("./NodeType"),Se.exports=z=function(de){se(x,de);function x(te,re,ae){if(x.__super__.constructor.call(this,te),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());ae||(ae="(#PCDATA)"),Array.isArray(ae)&&(ae="("+ae.join(",")+")"),this.name=this.stringify.name(re),this.type=E.ElementDeclaration,this.value=this.stringify.dtdElementValue(ae)}return x.prototype.toString=function(te){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(te))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,Se,ye){(function(){var E,z,oe,se,ee=function(x,te){for(var re in te)de.call(te,re)&&(x[re]=te[re]);function ae(){this.constructor=x}return ae.prototype=te.prototype,x.prototype=new ae,x.__super__=te.prototype,x},de={}.hasOwnProperty;se=y("./Utility").isObject,oe=y("./XMLNode"),E=y("./NodeType"),Se.exports=z=function(x){ee(te,x);function te(re,ae,ue,he){if(te.__super__.constructor.call(this,re),ue==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ue));if(he==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ue));if(this.pe=!!ae,this.name=this.stringify.name(ue),this.type=E.EntityDeclaration,!se(he))this.value=this.stringify.dtdEntityValue(he),this.internal=!0;else{if(!he.pubID&&!he.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ue));if(he.pubID&&!he.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ue));if(this.internal=!1,he.pubID!=null&&(this.pubID=this.stringify.dtdPubID(he.pubID)),he.sysID!=null&&(this.sysID=this.stringify.dtdSysID(he.sysID)),he.nData!=null&&(this.nData=this.stringify.dtdNData(he.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ue))}}return Object.defineProperty(te.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(te.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(te.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(te.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(te.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(te.prototype,"xmlVersion",{get:function(){return null}}),te.prototype.toString=function(re){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(re))},te}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;oe=y("./XMLNode"),E=y("./NodeType"),Se.exports=z=function(de){se(x,de);function x(te,re,ae){if(x.__super__.constructor.call(this,te),re==null)throw new Error("Missing DTD notation name. "+this.debugInfo(re));if(!ae.pubID&&!ae.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(re));this.name=this.stringify.name(re),this.type=E.NotationDeclaration,ae.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ae.pubID)),ae.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ae.sysID))}return Object.defineProperty(x.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(x.prototype,"systemId",{get:function(){return this.sysID}}),x.prototype.toString=function(te){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(te))},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,Se,ye){(function(){var E,z,oe,se,ee=function(x,te){for(var re in te)de.call(te,re)&&(x[re]=te[re]);function ae(){this.constructor=x}return ae.prototype=te.prototype,x.prototype=new ae,x.__super__=te.prototype,x},de={}.hasOwnProperty;se=y("./Utility").isObject,oe=y("./XMLNode"),E=y("./NodeType"),Se.exports=z=function(x){ee(te,x);function te(re,ae,ue,he){var pe;te.__super__.constructor.call(this,re),se(ae)&&(pe=ae,ae=pe.version,ue=pe.encoding,he=pe.standalone),ae||(ae="1.0"),this.type=E.Declaration,this.version=this.stringify.xmlVersion(ae),ue!=null&&(this.encoding=this.stringify.xmlEncoding(ue)),he!=null&&(this.standalone=this.stringify.xmlStandalone(he))}return te.prototype.toString=function(re){return this.options.writer.declaration(this,this.options.writer.filterOptions(re))},te}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,Se,ye){(function(){var E,z,oe,se,ee,de,x,te,re,ae=function(he,pe){for(var me in pe)ue.call(pe,me)&&(he[me]=pe[me]);function fe(){this.constructor=he}return fe.prototype=pe.prototype,he.prototype=new fe,he.__super__=pe.prototype,he},ue={}.hasOwnProperty;re=y("./Utility").isObject,te=y("./XMLNode"),E=y("./NodeType"),z=y("./XMLDTDAttList"),se=y("./XMLDTDEntity"),oe=y("./XMLDTDElement"),ee=y("./XMLDTDNotation"),x=y("./XMLNamedNodeMap"),Se.exports=de=function(he){ae(pe,he);function pe(me,fe,ve){var ke,Te,Pe,_e,be,xe;if(pe.__super__.constructor.call(this,me),this.type=E.DocType,me.children){for(_e=me.children,Te=0,Pe=_e.length;Te<Pe;Te++)if(ke=_e[Te],ke.type===E.Element){this.name=ke.name;break}}this.documentObject=me,re(fe)&&(be=fe,fe=be.pubID,ve=be.sysID),ve==null&&(xe=[fe,ve],ve=xe[0],fe=xe[1]),fe!=null&&(this.pubID=this.stringify.dtdPubID(fe)),ve!=null&&(this.sysID=this.stringify.dtdSysID(ve))}return Object.defineProperty(pe.prototype,"entities",{get:function(){var me,fe,ve,ke,Te;for(ke={},Te=this.children,fe=0,ve=Te.length;fe<ve;fe++)me=Te[fe],me.type===E.EntityDeclaration&&!me.pe&&(ke[me.name]=me);return new x(ke)}}),Object.defineProperty(pe.prototype,"notations",{get:function(){var me,fe,ve,ke,Te;for(ke={},Te=this.children,fe=0,ve=Te.length;fe<ve;fe++)me=Te[fe],me.type===E.NotationDeclaration&&(ke[me.name]=me);return new x(ke)}}),Object.defineProperty(pe.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(pe.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(pe.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),pe.prototype.element=function(me,fe){var ve;return ve=new oe(this,me,fe),this.children.push(ve),this},pe.prototype.attList=function(me,fe,ve,ke,Te){var Pe;return Pe=new z(this,me,fe,ve,ke,Te),this.children.push(Pe),this},pe.prototype.entity=function(me,fe){var ve;return ve=new se(this,!1,me,fe),this.children.push(ve),this},pe.prototype.pEntity=function(me,fe){var ve;return ve=new se(this,!0,me,fe),this.children.push(ve),this},pe.prototype.notation=function(me,fe){var ve;return ve=new ee(this,me,fe),this.children.push(ve),this},pe.prototype.toString=function(me){return this.options.writer.docType(this,this.options.writer.filterOptions(me))},pe.prototype.ele=function(me,fe){return this.element(me,fe)},pe.prototype.att=function(me,fe,ve,ke,Te){return this.attList(me,fe,ve,ke,Te)},pe.prototype.ent=function(me,fe){return this.entity(me,fe)},pe.prototype.pent=function(me,fe){return this.pEntity(me,fe)},pe.prototype.not=function(me,fe){return this.notation(me,fe)},pe.prototype.up=function(){return this.root()||this.documentObject},pe.prototype.isEqualNode=function(me){return!(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.name!==this.name||me.publicId!==this.publicId||me.systemId!==this.systemId)},pe}(te)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(y,Se,ye){(function(){var E,z,oe,se,ee,de,x,te,re=function(ue,he){for(var pe in he)ae.call(he,pe)&&(ue[pe]=he[pe]);function me(){this.constructor=ue}return me.prototype=he.prototype,ue.prototype=new me,ue.__super__=he.prototype,ue},ae={}.hasOwnProperty;te=y("./Utility").isPlainObject,oe=y("./XMLDOMImplementation"),z=y("./XMLDOMConfiguration"),ee=y("./XMLNode"),E=y("./NodeType"),x=y("./XMLStringifier"),de=y("./XMLStringWriter"),Se.exports=se=function(ue){re(he,ue);function he(pe){he.__super__.constructor.call(this,null),this.name="#document",this.type=E.Document,this.documentURI=null,this.domConfig=new z,pe||(pe={}),pe.writer||(pe.writer=new de),this.options=pe,this.stringify=new x(pe)}return Object.defineProperty(he.prototype,"implementation",{value:new oe}),Object.defineProperty(he.prototype,"doctype",{get:function(){var pe,me,fe,ve;for(ve=this.children,me=0,fe=ve.length;me<fe;me++)if(pe=ve[me],pe.type===E.DocType)return pe;return null}}),Object.defineProperty(he.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(he.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(he.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(he.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===E.Declaration?this.children[0].encoding:null}}),Object.defineProperty(he.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===E.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(he.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===E.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(he.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(he.prototype,"origin",{get:function(){return null}}),Object.defineProperty(he.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(he.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(he.prototype,"contentType",{get:function(){return null}}),he.prototype.end=function(pe){var me;return me={},pe?te(pe)&&(me=pe,pe=this.options.writer):pe=this.options.writer,pe.document(this,pe.filterOptions(me))},he.prototype.toString=function(pe){return this.options.writer.document(this,this.options.writer.filterOptions(pe))},he.prototype.createElement=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTextNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createComment=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createCDATASection=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createProcessingInstruction=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttribute=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEntityReference=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.importNode=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createElementNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createAttributeNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(pe,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementById=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.adoptNode=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.renameNode=function(pe,me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByClassName=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createEvent=function(pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createNodeIterator=function(pe,me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.createTreeWalker=function(pe,me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(y,Se,ye){(function(){var E,z,oe,se,ee,de,x,te,re,ae,ue,he,pe,me,fe,ve,ke,Te,Pe,_e,be,xe,Ae,Me,Be={}.hasOwnProperty;Me=y("./Utility"),xe=Me.isObject,be=Me.isFunction,Ae=Me.isPlainObject,_e=Me.getValue,E=y("./NodeType"),he=y("./XMLDocument"),me=y("./XMLElement"),se=y("./XMLCData"),ee=y("./XMLComment"),ve=y("./XMLRaw"),Pe=y("./XMLText"),fe=y("./XMLProcessingInstruction"),ae=y("./XMLDeclaration"),ue=y("./XMLDocType"),de=y("./XMLDTDAttList"),te=y("./XMLDTDEntity"),x=y("./XMLDTDElement"),re=y("./XMLDTDNotation"),oe=y("./XMLAttribute"),Te=y("./XMLStringifier"),ke=y("./XMLStringWriter"),z=y("./WriterState"),Se.exports=pe=function(){function Ce(De,He,Ke){var Ye;this.name="?xml",this.type=E.Document,De||(De={}),Ye={},De.writer?Ae(De.writer)&&(Ye=De.writer,De.writer=new ke):De.writer=new ke,this.options=De,this.writer=De.writer,this.writerOptions=this.writer.filterOptions(Ye),this.stringify=new Te(De),this.onDataCallback=He||function(){},this.onEndCallback=Ke||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ce.prototype.createChildNode=function(De){var He,Ke,Ye,it,Re,We,et,nt;switch(De.type){case E.CData:this.cdata(De.value);break;case E.Comment:this.comment(De.value);break;case E.Element:Ye={},et=De.attribs;for(Ke in et)Be.call(et,Ke)&&(He=et[Ke],Ye[Ke]=He.value);this.node(De.name,Ye);break;case E.Dummy:this.dummy();break;case E.Raw:this.raw(De.value);break;case E.Text:this.text(De.value);break;case E.ProcessingInstruction:this.instruction(De.target,De.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+De.constructor.name)}for(nt=De.children,Re=0,We=nt.length;Re<We;Re++)it=nt[Re],this.createChildNode(it),it.type===E.Element&&this.up();return this},Ce.prototype.dummy=function(){return this},Ce.prototype.node=function(De,He,Ke){var Ye;if(De==null)throw new Error("Missing node name.");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node. "+this.debugInfo(De));return this.openCurrent(),De=_e(De),He==null&&(He={}),He=_e(He),xe(He)||(Ye=[He,Ke],Ke=Ye[0],He=Ye[1]),this.currentNode=new me(this,De,He),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Ke!=null&&this.text(Ke),this},Ce.prototype.element=function(De,He,Ke){var Ye,it,Re,We,et,nt;if(this.currentNode&&this.currentNode.type===E.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(De)||xe(De)||be(De))for(We=this.options.noValidation,this.options.noValidation=!0,nt=new he(this.options).element("TEMP_ROOT"),nt.element(De),this.options.noValidation=We,et=nt.children,it=0,Re=et.length;it<Re;it++)Ye=et[it],this.createChildNode(Ye),Ye.type===E.Element&&this.up();else this.node(De,He,Ke);return this},Ce.prototype.attribute=function(De,He){var Ke,Ye;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(De));if(De!=null&&(De=_e(De)),xe(De))for(Ke in De)Be.call(De,Ke)&&(Ye=De[Ke],this.attribute(Ke,Ye));else be(He)&&(He=He.apply()),this.options.keepNullAttributes&&He==null?this.currentNode.attribs[De]=new oe(this,De,""):He!=null&&(this.currentNode.attribs[De]=new oe(this,De,He));return this},Ce.prototype.text=function(De){var He;return this.openCurrent(),He=new Pe(this,De),this.onData(this.writer.text(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.cdata=function(De){var He;return this.openCurrent(),He=new se(this,De),this.onData(this.writer.cdata(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.comment=function(De){var He;return this.openCurrent(),He=new ee(this,De),this.onData(this.writer.comment(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.raw=function(De){var He;return this.openCurrent(),He=new ve(this,De),this.onData(this.writer.raw(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.instruction=function(De,He){var Ke,Ye,it,Re,We;if(this.openCurrent(),De!=null&&(De=_e(De)),He!=null&&(He=_e(He)),Array.isArray(De))for(Ke=0,Re=De.length;Ke<Re;Ke++)Ye=De[Ke],this.instruction(Ye);else if(xe(De))for(Ye in De)Be.call(De,Ye)&&(it=De[Ye],this.instruction(Ye,it));else be(He)&&(He=He.apply()),We=new fe(this,De,He),this.onData(this.writer.processingInstruction(We,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ce.prototype.declaration=function(De,He,Ke){var Ye;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Ye=new ae(this,De,He,Ke),this.onData(this.writer.declaration(Ye,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.doctype=function(De,He,Ke){if(this.openCurrent(),De==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ue(this,He,Ke),this.currentNode.rootNodeName=De,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ce.prototype.dtdElement=function(De,He){var Ke;return this.openCurrent(),Ke=new x(this,De,He),this.onData(this.writer.dtdElement(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.attList=function(De,He,Ke,Ye,it){var Re;return this.openCurrent(),Re=new de(this,De,He,Ke,Ye,it),this.onData(this.writer.dtdAttList(Re,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.entity=function(De,He){var Ke;return this.openCurrent(),Ke=new te(this,!1,De,He),this.onData(this.writer.dtdEntity(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.pEntity=function(De,He){var Ke;return this.openCurrent(),Ke=new te(this,!0,De,He),this.onData(this.writer.dtdEntity(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.notation=function(De,He){var Ke;return this.openCurrent(),Ke=new re(this,De,He),this.onData(this.writer.dtdNotation(Ke,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ce.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Ce.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ce.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ce.prototype.openNode=function(De){var He,Ke,Ye,it;if(!De.isOpen){if(!this.root&&this.currentLevel===0&&De.type===E.Element&&(this.root=De),Ke="",De.type===E.Element){this.writerOptions.state=z.OpenTag,Ke=this.writer.indent(De,this.writerOptions,this.currentLevel)+"<"+De.name,it=De.attribs;for(Ye in it)Be.call(it,Ye)&&(He=it[Ye],Ke+=this.writer.attribute(He,this.writerOptions,this.currentLevel));Ke+=(De.children?">":"/>")+this.writer.endline(De,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,Ke=this.writer.indent(De,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+De.rootNodeName,De.pubID&&De.sysID?Ke+=' PUBLIC "'+De.pubID+'" "'+De.sysID+'"':De.sysID&&(Ke+=' SYSTEM "'+De.sysID+'"'),De.children?(Ke+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,Ke+=">"),Ke+=this.writer.endline(De,this.writerOptions,this.currentLevel);return this.onData(Ke,this.currentLevel),De.isOpen=!0}},Ce.prototype.closeNode=function(De){var He;if(!De.isClosed)return He="",this.writerOptions.state=z.CloseTag,De.type===E.Element?He=this.writer.indent(De,this.writerOptions,this.currentLevel)+"</"+De.name+">"+this.writer.endline(De,this.writerOptions,this.currentLevel):He=this.writer.indent(De,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(De,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(He,this.currentLevel),De.isClosed=!0},Ce.prototype.onData=function(De,He){return this.documentStarted=!0,this.onDataCallback(De,He+1)},Ce.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ce.prototype.debugInfo=function(De){return De==null?"":"node: <"+De+">"},Ce.prototype.ele=function(){return this.element.apply(this,arguments)},Ce.prototype.nod=function(De,He,Ke){return this.node(De,He,Ke)},Ce.prototype.txt=function(De){return this.text(De)},Ce.prototype.dat=function(De){return this.cdata(De)},Ce.prototype.com=function(De){return this.comment(De)},Ce.prototype.ins=function(De,He){return this.instruction(De,He)},Ce.prototype.dec=function(De,He,Ke){return this.declaration(De,He,Ke)},Ce.prototype.dtd=function(De,He,Ke){return this.doctype(De,He,Ke)},Ce.prototype.e=function(De,He,Ke){return this.element(De,He,Ke)},Ce.prototype.n=function(De,He,Ke){return this.node(De,He,Ke)},Ce.prototype.t=function(De){return this.text(De)},Ce.prototype.d=function(De){return this.cdata(De)},Ce.prototype.c=function(De){return this.comment(De)},Ce.prototype.r=function(De){return this.raw(De)},Ce.prototype.i=function(De,He){return this.instruction(De,He)},Ce.prototype.att=function(){return this.currentNode&&this.currentNode.type===E.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ce.prototype.a=function(){return this.currentNode&&this.currentNode.type===E.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ce.prototype.ent=function(De,He){return this.entity(De,He)},Ce.prototype.pent=function(De,He){return this.pEntity(De,He)},Ce.prototype.not=function(De,He){return this.notation(De,He)},Ce}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLAttribute":431,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDocument":445,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLStringWriter":455,"./XMLStringifier":456,"./XMLText":457}],447:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;oe=y("./XMLNode"),E=y("./NodeType"),Se.exports=z=function(de){se(x,de);function x(te){x.__super__.constructor.call(this,te),this.type=E.Dummy}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(te){return""},x}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,Se,ye){(function(){var E,z,oe,se,ee,de,x,te,re,ae=function(he,pe){for(var me in pe)ue.call(pe,me)&&(he[me]=pe[me]);function fe(){this.constructor=he}return fe.prototype=pe.prototype,he.prototype=new fe,he.__super__=pe.prototype,he},ue={}.hasOwnProperty;re=y("./Utility"),te=re.isObject,x=re.isFunction,de=re.getValue,ee=y("./XMLNode"),E=y("./NodeType"),z=y("./XMLAttribute"),se=y("./XMLNamedNodeMap"),Se.exports=oe=function(he){ae(pe,he);function pe(me,fe,ve){var ke,Te,Pe,_e;if(pe.__super__.constructor.call(this,me),fe==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(fe),this.type=E.Element,this.attribs={},this.schemaTypeInfo=null,ve!=null&&this.attribute(ve),me.type===E.Document&&(this.isRoot=!0,this.documentObject=me,me.rootObject=this,me.children)){for(_e=me.children,Te=0,Pe=_e.length;Te<Pe;Te++)if(ke=_e[Te],ke.type===E.DocType){ke.name=this.name;break}}}return Object.defineProperty(pe.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(pe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(pe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(pe.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(pe.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new se(this.attribs)),this.attributeMap}}),pe.prototype.clone=function(){var me,fe,ve,ke;ve=Object.create(this),ve.isRoot&&(ve.documentObject=null),ve.attribs={},ke=this.attribs;for(fe in ke)ue.call(ke,fe)&&(me=ke[fe],ve.attribs[fe]=me.clone());return ve.children=[],this.children.forEach(function(Te){var Pe;return Pe=Te.clone(),Pe.parent=ve,ve.children.push(Pe)}),ve},pe.prototype.attribute=function(me,fe){var ve,ke;if(me!=null&&(me=de(me)),te(me))for(ve in me)ue.call(me,ve)&&(ke=me[ve],this.attribute(ve,ke));else x(fe)&&(fe=fe.apply()),this.options.keepNullAttributes&&fe==null?this.attribs[me]=new z(this,me,""):fe!=null&&(this.attribs[me]=new z(this,me,fe));return this},pe.prototype.removeAttribute=function(me){var fe,ve,ke;if(me==null)throw new Error("Missing attribute name. "+this.debugInfo());if(me=de(me),Array.isArray(me))for(ve=0,ke=me.length;ve<ke;ve++)fe=me[ve],delete this.attribs[fe];else delete this.attribs[me];return this},pe.prototype.toString=function(me){return this.options.writer.element(this,this.options.writer.filterOptions(me))},pe.prototype.att=function(me,fe){return this.attribute(me,fe)},pe.prototype.a=function(me,fe){return this.attribute(me,fe)},pe.prototype.getAttribute=function(me){return this.attribs.hasOwnProperty(me)?this.attribs[me].value:null},pe.prototype.setAttribute=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNode=function(me){return this.attribs.hasOwnProperty(me)?this.attribs[me]:null},pe.prototype.setAttributeNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNS=function(me,fe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.removeAttributeNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getAttributeNodeNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setAttributeNodeNS=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.hasAttribute=function(me){return this.attribs.hasOwnProperty(me)},pe.prototype.hasAttributeNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttribute=function(me,fe){return this.attribs.hasOwnProperty(me)?this.attribs[me].isId:fe},pe.prototype.setIdAttributeNS=function(me,fe,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.setIdAttributeNode=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByTagNameNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.getElementsByClassName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},pe.prototype.isEqualNode=function(me){var fe,ve,ke;if(!pe.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.namespaceURI!==this.namespaceURI||me.prefix!==this.prefix||me.localName!==this.localName||me.attribs.length!==this.attribs.length)return!1;for(fe=ve=0,ke=this.attribs.length-1;0<=ke?ve<=ke:ve>=ke;fe=0<=ke?++ve:--ve)if(!this.attribs[fe].isEqualNode(me.attribs[fe]))return!1;return!0},pe}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,Se,ye){(function(){var E;Se.exports=E=function(){function z(oe){this.nodes=oe}return Object.defineProperty(z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.getNamedItem=function(oe){return this.nodes[oe]},z.prototype.setNamedItem=function(oe){var se;return se=this.nodes[oe.nodeName],this.nodes[oe.nodeName]=oe,se||null},z.prototype.removeNamedItem=function(oe){var se;return se=this.nodes[oe],delete this.nodes[oe],se||null},z.prototype.item=function(oe){return this.nodes[Object.keys(this.nodes)[oe]]||null},z.prototype.getNamedItemNS=function(oe,se){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(oe){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(oe,se){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(y,Se,ye){(function(){var E,z,oe,se,ee,de,x,te,re,ae,ue,he,pe,me,fe,ve,ke,Te,Pe,_e={}.hasOwnProperty;Pe=y("./Utility"),Te=Pe.isObject,ke=Pe.isFunction,ve=Pe.isEmpty,fe=Pe.getValue,te=null,oe=null,se=null,ee=null,de=null,pe=null,me=null,he=null,x=null,z=null,ue=null,re=null,E=null,Se.exports=ae=function(){function be(xe){this.parent=xe,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,te||(te=y("./XMLElement"),oe=y("./XMLCData"),se=y("./XMLComment"),ee=y("./XMLDeclaration"),de=y("./XMLDocType"),pe=y("./XMLRaw"),me=y("./XMLText"),he=y("./XMLProcessingInstruction"),x=y("./XMLDummy"),z=y("./NodeType"),ue=y("./XMLNodeList"),re=y("./XMLNamedNodeMap"),E=y("./DocumentPosition"))}return Object.defineProperty(be.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(be.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(be.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(be.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(be.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ue(this.children)),this.childNodeList}}),Object.defineProperty(be.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(be.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(be.prototype,"previousSibling",{get:function(){var xe;return xe=this.parent.children.indexOf(this),this.parent.children[xe-1]||null}}),Object.defineProperty(be.prototype,"nextSibling",{get:function(){var xe;return xe=this.parent.children.indexOf(this),this.parent.children[xe+1]||null}}),Object.defineProperty(be.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(be.prototype,"textContent",{get:function(){var xe,Ae,Me,Be,Ce;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(Ce="",Be=this.children,Ae=0,Me=Be.length;Ae<Me;Ae++)xe=Be[Ae],xe.textContent&&(Ce+=xe.textContent);return Ce}else return null},set:function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),be.prototype.setParent=function(xe){var Ae,Me,Be,Ce,De;for(this.parent=xe,xe&&(this.options=xe.options,this.stringify=xe.stringify),Ce=this.children,De=[],Me=0,Be=Ce.length;Me<Be;Me++)Ae=Ce[Me],De.push(Ae.setParent(this));return De},be.prototype.element=function(xe,Ae,Me){var Be,Ce,De,He,Ke,Ye,it,Re,We,et,nt;if(Ye=null,Ae===null&&Me==null&&(We=[{},null],Ae=We[0],Me=We[1]),Ae==null&&(Ae={}),Ae=fe(Ae),Te(Ae)||(et=[Ae,Me],Me=et[0],Ae=et[1]),xe!=null&&(xe=fe(xe)),Array.isArray(xe))for(De=0,it=xe.length;De<it;De++)Ce=xe[De],Ye=this.element(Ce);else if(ke(xe))Ye=this.element(xe.apply());else if(Te(xe)){for(Ke in xe)if(_e.call(xe,Ke))if(nt=xe[Ke],ke(nt)&&(nt=nt.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ke.indexOf(this.stringify.convertAttKey)===0)Ye=this.attribute(Ke.substr(this.stringify.convertAttKey.length),nt);else if(!this.options.separateArrayItems&&Array.isArray(nt)&&ve(nt))Ye=this.dummy();else if(Te(nt)&&ve(nt))Ye=this.element(Ke);else if(!this.options.keepNullNodes&&nt==null)Ye=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(nt))for(He=0,Re=nt.length;He<Re;He++)Ce=nt[He],Be={},Be[Ke]=Ce,Ye=this.element(Be);else Te(nt)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ke.indexOf(this.stringify.convertTextKey)===0?Ye=this.element(nt):(Ye=this.element(Ke),Ye.element(nt)):Ye=this.element(Ke,nt)}else!this.options.keepNullNodes&&Me===null?Ye=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&xe.indexOf(this.stringify.convertTextKey)===0?Ye=this.text(Me):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&xe.indexOf(this.stringify.convertCDataKey)===0?Ye=this.cdata(Me):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&xe.indexOf(this.stringify.convertCommentKey)===0?Ye=this.comment(Me):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&xe.indexOf(this.stringify.convertRawKey)===0?Ye=this.raw(Me):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&xe.indexOf(this.stringify.convertPIKey)===0?Ye=this.instruction(xe.substr(this.stringify.convertPIKey.length),Me):Ye=this.node(xe,Ae,Me);if(Ye==null)throw new Error("Could not create any elements with: "+xe+". "+this.debugInfo());return Ye},be.prototype.insertBefore=function(xe,Ae,Me){var Be,Ce,De,He,Ke;if(xe!=null&&xe.type)return De=xe,He=Ae,De.setParent(this),He?(Ce=children.indexOf(He),Ke=children.splice(Ce),children.push(De),Array.prototype.push.apply(children,Ke)):children.push(De),De;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(xe));return Ce=this.parent.children.indexOf(this),Ke=this.parent.children.splice(Ce),Be=this.parent.element(xe,Ae,Me),Array.prototype.push.apply(this.parent.children,Ke),Be},be.prototype.insertAfter=function(xe,Ae,Me){var Be,Ce,De;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(xe));return Ce=this.parent.children.indexOf(this),De=this.parent.children.splice(Ce+1),Be=this.parent.element(xe,Ae,Me),Array.prototype.push.apply(this.parent.children,De),Be},be.prototype.remove=function(){var xe,Ae;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return xe=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[xe,xe-xe+1].concat(Ae=[])),this.parent},be.prototype.node=function(xe,Ae,Me){var Be,Ce;return xe!=null&&(xe=fe(xe)),Ae||(Ae={}),Ae=fe(Ae),Te(Ae)||(Ce=[Ae,Me],Me=Ce[0],Ae=Ce[1]),Be=new te(this,xe,Ae),Me!=null&&Be.text(Me),this.children.push(Be),Be},be.prototype.text=function(xe){var Ae;return Te(xe)&&this.element(xe),Ae=new me(this,xe),this.children.push(Ae),this},be.prototype.cdata=function(xe){var Ae;return Ae=new oe(this,xe),this.children.push(Ae),this},be.prototype.comment=function(xe){var Ae;return Ae=new se(this,xe),this.children.push(Ae),this},be.prototype.commentBefore=function(xe){var Ae,Me,Be;return Me=this.parent.children.indexOf(this),Be=this.parent.children.splice(Me),Ae=this.parent.comment(xe),Array.prototype.push.apply(this.parent.children,Be),this},be.prototype.commentAfter=function(xe){var Ae,Me,Be;return Me=this.parent.children.indexOf(this),Be=this.parent.children.splice(Me+1),Ae=this.parent.comment(xe),Array.prototype.push.apply(this.parent.children,Be),this},be.prototype.raw=function(xe){var Ae;return Ae=new pe(this,xe),this.children.push(Ae),this},be.prototype.dummy=function(){var xe;return xe=new x(this),xe},be.prototype.instruction=function(xe,Ae){var Me,Be,Ce,De,He;if(xe!=null&&(xe=fe(xe)),Ae!=null&&(Ae=fe(Ae)),Array.isArray(xe))for(De=0,He=xe.length;De<He;De++)Me=xe[De],this.instruction(Me);else if(Te(xe))for(Me in xe)_e.call(xe,Me)&&(Be=xe[Me],this.instruction(Me,Be));else ke(Ae)&&(Ae=Ae.apply()),Ce=new he(this,xe,Ae),this.children.push(Ce);return this},be.prototype.instructionBefore=function(xe,Ae){var Me,Be,Ce;return Be=this.parent.children.indexOf(this),Ce=this.parent.children.splice(Be),Me=this.parent.instruction(xe,Ae),Array.prototype.push.apply(this.parent.children,Ce),this},be.prototype.instructionAfter=function(xe,Ae){var Me,Be,Ce;return Be=this.parent.children.indexOf(this),Ce=this.parent.children.splice(Be+1),Me=this.parent.instruction(xe,Ae),Array.prototype.push.apply(this.parent.children,Ce),this},be.prototype.declaration=function(xe,Ae,Me){var Be,Ce;return Be=this.document(),Ce=new ee(Be,xe,Ae,Me),Be.children.length===0?Be.children.unshift(Ce):Be.children[0].type===z.Declaration?Be.children[0]=Ce:Be.children.unshift(Ce),Be.root()||Be},be.prototype.dtd=function(xe,Ae){var Me,Be,Ce,De,He,Ke,Ye,it,Re,We;for(Be=this.document(),Ce=new de(Be,xe,Ae),Re=Be.children,De=He=0,Ye=Re.length;He<Ye;De=++He)if(Me=Re[De],Me.type===z.DocType)return Be.children[De]=Ce,Ce;for(We=Be.children,De=Ke=0,it=We.length;Ke<it;De=++Ke)if(Me=We[De],Me.isRoot)return Be.children.splice(De,0,Ce),Ce;return Be.children.push(Ce),Ce},be.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},be.prototype.root=function(){var xe;for(xe=this;xe;){if(xe.type===z.Document)return xe.rootObject;if(xe.isRoot)return xe;xe=xe.parent}},be.prototype.document=function(){var xe;for(xe=this;xe;){if(xe.type===z.Document)return xe;xe=xe.parent}},be.prototype.end=function(xe){return this.document().end(xe)},be.prototype.prev=function(){var xe;if(xe=this.parent.children.indexOf(this),xe<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[xe-1]},be.prototype.next=function(){var xe;if(xe=this.parent.children.indexOf(this),xe===-1||xe===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[xe+1]},be.prototype.importDocument=function(xe){var Ae;return Ae=xe.root().clone(),Ae.parent=this,Ae.isRoot=!1,this.children.push(Ae),this},be.prototype.debugInfo=function(xe){var Ae,Me;return xe=xe||this.name,xe==null&&!((Ae=this.parent)!=null&&Ae.name)?"":xe==null?"parent: <"+this.parent.name+">":(Me=this.parent)!=null&&Me.name?"node: <"+xe+">, parent: <"+this.parent.name+">":"node: <"+xe+">"},be.prototype.ele=function(xe,Ae,Me){return this.element(xe,Ae,Me)},be.prototype.nod=function(xe,Ae,Me){return this.node(xe,Ae,Me)},be.prototype.txt=function(xe){return this.text(xe)},be.prototype.dat=function(xe){return this.cdata(xe)},be.prototype.com=function(xe){return this.comment(xe)},be.prototype.ins=function(xe,Ae){return this.instruction(xe,Ae)},be.prototype.doc=function(){return this.document()},be.prototype.dec=function(xe,Ae,Me){return this.declaration(xe,Ae,Me)},be.prototype.e=function(xe,Ae,Me){return this.element(xe,Ae,Me)},be.prototype.n=function(xe,Ae,Me){return this.node(xe,Ae,Me)},be.prototype.t=function(xe){return this.text(xe)},be.prototype.d=function(xe){return this.cdata(xe)},be.prototype.c=function(xe){return this.comment(xe)},be.prototype.r=function(xe){return this.raw(xe)},be.prototype.i=function(xe,Ae){return this.instruction(xe,Ae)},be.prototype.u=function(){return this.up()},be.prototype.importXMLBuilder=function(xe){return this.importDocument(xe)},be.prototype.replaceChild=function(xe,Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.removeChild=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.appendChild=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.hasChildNodes=function(){return this.children.length!==0},be.prototype.cloneNode=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.isSupported=function(xe,Ae){return!0},be.prototype.hasAttributes=function(){return this.attribs.length!==0},be.prototype.compareDocumentPosition=function(xe){var Ae,Me;return Ae=this,Ae===xe?0:this.document()!==xe.document()?(Me=E.Disconnected|E.ImplementationSpecific,Math.random()<.5?Me|=E.Preceding:Me|=E.Following,Me):Ae.isAncestor(xe)?E.Contains|E.Preceding:Ae.isDescendant(xe)?E.Contains|E.Following:Ae.isPreceding(xe)?E.Preceding:E.Following},be.prototype.isSameNode=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.lookupPrefix=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.isDefaultNamespace=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.lookupNamespaceURI=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.isEqualNode=function(xe){var Ae,Me,Be;if(xe.nodeType!==this.nodeType||xe.children.length!==this.children.length)return!1;for(Ae=Me=0,Be=this.children.length-1;0<=Be?Me<=Be:Me>=Be;Ae=0<=Be?++Me:--Me)if(!this.children[Ae].isEqualNode(xe.children[Ae]))return!1;return!0},be.prototype.getFeature=function(xe,Ae){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.setUserData=function(xe,Ae,Me){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.getUserData=function(xe){throw new Error("This DOM method is not implemented."+this.debugInfo())},be.prototype.contains=function(xe){return xe?xe===this||this.isDescendant(xe):!1},be.prototype.isDescendant=function(xe){var Ae,Me,Be,Ce,De;for(De=this.children,Be=0,Ce=De.length;Be<Ce;Be++)if(Ae=De[Be],xe===Ae||(Me=Ae.isDescendant(xe),Me))return!0;return!1},be.prototype.isAncestor=function(xe){return xe.isDescendant(this)},be.prototype.isPreceding=function(xe){var Ae,Me;return Ae=this.treePosition(xe),Me=this.treePosition(this),Ae===-1||Me===-1?!1:Ae<Me},be.prototype.isFollowing=function(xe){var Ae,Me;return Ae=this.treePosition(xe),Me=this.treePosition(this),Ae===-1||Me===-1?!1:Ae>Me},be.prototype.treePosition=function(xe){var Ae,Me;return Me=0,Ae=!1,this.foreachTreeNode(this.document(),function(Be){if(Me++,!Ae&&Be===xe)return Ae=!0}),Ae?Me:-1},be.prototype.foreachTreeNode=function(xe,Ae){var Me,Be,Ce,De,He;for(xe||(xe=this.document()),De=xe.children,Be=0,Ce=De.length;Be<Ce;Be++){if(Me=De[Be],He=Ae(Me))return He;if(He=this.foreachTreeNode(Me,Ae),He)return He}},be}()}).call(this)},{"./DocumentPosition":427,"./NodeType":428,"./Utility":429,"./XMLCData":432,"./XMLComment":434,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLNamedNodeMap":449,"./XMLNodeList":451,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],451:[function(y,Se,ye){(function(){var E;Se.exports=E=function(){function z(oe){this.nodes=oe}return Object.defineProperty(z.prototype,"length",{get:function(){return this.nodes.length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.item=function(oe){return this.nodes[oe]||null},z}()}).call(this)},{}],452:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;E=y("./NodeType"),z=y("./XMLCharacterData"),Se.exports=oe=function(de){se(x,de);function x(te,re,ae){if(x.__super__.constructor.call(this,te),re==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=E.ProcessingInstruction,this.target=this.stringify.insTarget(re),this.name=this.target,ae&&(this.value=this.stringify.insValue(ae))}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(te){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(te))},x.prototype.isEqualNode=function(te){return!(!x.__super__.isEqualNode.apply(this,arguments).isEqualNode(te)||te.target!==this.target)},x}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;E=y("./NodeType"),z=y("./XMLNode"),Se.exports=oe=function(de){se(x,de);function x(te,re){if(x.__super__.constructor.call(this,te),re==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=E.Raw,this.value=this.stringify.raw(re)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(te){return this.options.writer.raw(this,this.options.writer.filterOptions(te))},x}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(y,Se,ye){(function(){var E,z,oe,se,ee=function(x,te){for(var re in te)de.call(te,re)&&(x[re]=te[re]);function ae(){this.constructor=x}return ae.prototype=te.prototype,x.prototype=new ae,x.__super__=te.prototype,x},de={}.hasOwnProperty;E=y("./NodeType"),se=y("./XMLWriterBase"),z=y("./WriterState"),Se.exports=oe=function(x){ee(te,x);function te(re,ae){this.stream=re,te.__super__.constructor.call(this,ae)}return te.prototype.endline=function(re,ae,ue){return re.isLastRootNode&&ae.state===z.CloseTag?"":te.__super__.endline.call(this,re,ae,ue)},te.prototype.document=function(re,ae){var ue,he,pe,me,fe,ve,ke,Te,Pe;for(ke=re.children,he=pe=0,fe=ke.length;pe<fe;he=++pe)ue=ke[he],ue.isLastRootNode=he===re.children.length-1;for(ae=this.filterOptions(ae),Te=re.children,Pe=[],me=0,ve=Te.length;me<ve;me++)ue=Te[me],Pe.push(this.writeChildNode(ue,ae,0));return Pe},te.prototype.attribute=function(re,ae,ue){return this.stream.write(te.__super__.attribute.call(this,re,ae,ue))},te.prototype.cdata=function(re,ae,ue){return this.stream.write(te.__super__.cdata.call(this,re,ae,ue))},te.prototype.comment=function(re,ae,ue){return this.stream.write(te.__super__.comment.call(this,re,ae,ue))},te.prototype.declaration=function(re,ae,ue){return this.stream.write(te.__super__.declaration.call(this,re,ae,ue))},te.prototype.docType=function(re,ae,ue){var he,pe,me,fe;if(ue||(ue=0),this.openNode(re,ae,ue),ae.state=z.OpenTag,this.stream.write(this.indent(re,ae,ue)),this.stream.write("<!DOCTYPE "+re.root().name),re.pubID&&re.sysID?this.stream.write(' PUBLIC "'+re.pubID+'" "'+re.sysID+'"'):re.sysID&&this.stream.write(' SYSTEM "'+re.sysID+'"'),re.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(re,ae,ue)),ae.state=z.InsideTag,fe=re.children,pe=0,me=fe.length;pe<me;pe++)he=fe[pe],this.writeChildNode(he,ae,ue+1);ae.state=z.CloseTag,this.stream.write("]")}return ae.state=z.CloseTag,this.stream.write(ae.spaceBeforeSlash+">"),this.stream.write(this.endline(re,ae,ue)),ae.state=z.None,this.closeNode(re,ae,ue)},te.prototype.element=function(re,ae,ue){var he,pe,me,fe,ve,ke,Te,Pe,_e,be;ue||(ue=0),this.openNode(re,ae,ue),ae.state=z.OpenTag,this.stream.write(this.indent(re,ae,ue)+"<"+re.name),_e=re.attribs;for(Te in _e)de.call(_e,Te)&&(he=_e[Te],this.attribute(he,ae,ue));if(me=re.children.length,fe=me===0?null:re.children[0],me===0||re.children.every(function(xe){return(xe.type===E.Text||xe.type===E.Raw)&&xe.value===""}))ae.allowEmpty?(this.stream.write(">"),ae.state=z.CloseTag,this.stream.write("</"+re.name+">")):(ae.state=z.CloseTag,this.stream.write(ae.spaceBeforeSlash+"/>"));else if(ae.pretty&&me===1&&(fe.type===E.Text||fe.type===E.Raw)&&fe.value!=null)this.stream.write(">"),ae.state=z.InsideTag,ae.suppressPrettyCount++,Pe=!0,this.writeChildNode(fe,ae,ue+1),ae.suppressPrettyCount--,Pe=!1,ae.state=z.CloseTag,this.stream.write("</"+re.name+">");else{for(this.stream.write(">"+this.endline(re,ae,ue)),ae.state=z.InsideTag,be=re.children,ve=0,ke=be.length;ve<ke;ve++)pe=be[ve],this.writeChildNode(pe,ae,ue+1);ae.state=z.CloseTag,this.stream.write(this.indent(re,ae,ue)+"</"+re.name+">")}return this.stream.write(this.endline(re,ae,ue)),ae.state=z.None,this.closeNode(re,ae,ue)},te.prototype.processingInstruction=function(re,ae,ue){return this.stream.write(te.__super__.processingInstruction.call(this,re,ae,ue))},te.prototype.raw=function(re,ae,ue){return this.stream.write(te.__super__.raw.call(this,re,ae,ue))},te.prototype.text=function(re,ae,ue){return this.stream.write(te.__super__.text.call(this,re,ae,ue))},te.prototype.dtdAttList=function(re,ae,ue){return this.stream.write(te.__super__.dtdAttList.call(this,re,ae,ue))},te.prototype.dtdElement=function(re,ae,ue){return this.stream.write(te.__super__.dtdElement.call(this,re,ae,ue))},te.prototype.dtdEntity=function(re,ae,ue){return this.stream.write(te.__super__.dtdEntity.call(this,re,ae,ue))},te.prototype.dtdNotation=function(re,ae,ue){return this.stream.write(te.__super__.dtdNotation.call(this,re,ae,ue))},te}(se)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,Se,ye){(function(){var E,z,oe=function(ee,de){for(var x in de)se.call(de,x)&&(ee[x]=de[x]);function te(){this.constructor=ee}return te.prototype=de.prototype,ee.prototype=new te,ee.__super__=de.prototype,ee},se={}.hasOwnProperty;z=y("./XMLWriterBase"),Se.exports=E=function(ee){oe(de,ee);function de(x){de.__super__.constructor.call(this,x)}return de.prototype.document=function(x,te){var re,ae,ue,he,pe;for(te=this.filterOptions(te),he="",pe=x.children,ae=0,ue=pe.length;ae<ue;ae++)re=pe[ae],he+=this.writeChildNode(re,te,0);return te.pretty&&he.slice(-te.newline.length)===te.newline&&(he=he.slice(0,-te.newline.length)),he},de}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,Se,ye){(function(){var E,z=function(se,ee){return function(){return se.apply(ee,arguments)}},oe={}.hasOwnProperty;Se.exports=E=function(){function se(ee){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var de,x,te;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),x=ee.stringify||{};for(de in x)oe.call(x,de)&&(te=x[de],this[de]=te)}return se.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},se.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},se.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},se.prototype.comment=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ee);return this.assertLegalChar(ee)},se.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},se.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},se.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.insValue=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/\?>/))throw new Error("Invalid processing instruction value: "+ee);return this.assertLegalChar(ee)},se.prototype.xmlVersion=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ee);return ee},se.prototype.xmlEncoding=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ee);return this.assertLegalChar(ee)},se.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},se.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},se.prototype.convertAttKey="@",se.prototype.convertPIKey="?",se.prototype.convertTextKey="#text",se.prototype.convertCDataKey="#cdata",se.prototype.convertCommentKey="#comment",se.prototype.convertRawKey="#raw",se.prototype.assertLegalChar=function(ee){var de,x;if(this.options.noValidation)return ee;if(de="",this.options.version==="1.0"){if(de=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(de))throw new Error("Invalid character in string: "+ee+" at index "+x.index)}else if(this.options.version==="1.1"&&(de=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=ee.match(de)))throw new Error("Invalid character in string: "+ee+" at index "+x.index);return ee},se.prototype.assertLegalName=function(ee){var de;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),de=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!ee.match(de))throw new Error("Invalid character in name");return ee},se.prototype.textEscape=function(ee){var de;return this.options.noValidation?ee:(de=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(de,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},se.prototype.attEscape=function(ee){var de;return this.options.noValidation?ee:(de=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(de,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},se}()}).call(this)},{}],457:[function(y,Se,ye){(function(){var E,z,oe,se=function(de,x){for(var te in x)ee.call(x,te)&&(de[te]=x[te]);function re(){this.constructor=de}return re.prototype=x.prototype,de.prototype=new re,de.__super__=x.prototype,de},ee={}.hasOwnProperty;E=y("./NodeType"),z=y("./XMLCharacterData"),Se.exports=oe=function(de){se(x,de);function x(te,re){if(x.__super__.constructor.call(this,te),re==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=E.Text,this.value=this.stringify.text(re)}return Object.defineProperty(x.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(x.prototype,"wholeText",{get:function(){var te,re,ae;for(ae="",re=this.previousSibling;re;)ae=re.data+ae,re=re.previousSibling;for(ae+=this.data,te=this.nextSibling;te;)ae=ae+te.data,te=te.nextSibling;return ae}}),x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(te){return this.options.writer.text(this,this.options.writer.filterOptions(te))},x.prototype.splitText=function(te){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.replaceWholeText=function(te){throw new Error("This DOM method is not implemented."+this.debugInfo())},x}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(y,Se,ye){(function(){var E,z,oe,se,ee,de,x,te,re,ae,ue,he,pe,me,fe,ve,ke,Te={}.hasOwnProperty;ke=y("./Utility").assign,E=y("./NodeType"),re=y("./XMLDeclaration"),ae=y("./XMLDocType"),oe=y("./XMLCData"),se=y("./XMLComment"),he=y("./XMLElement"),me=y("./XMLRaw"),fe=y("./XMLText"),pe=y("./XMLProcessingInstruction"),ue=y("./XMLDummy"),ee=y("./XMLDTDAttList"),de=y("./XMLDTDElement"),x=y("./XMLDTDEntity"),te=y("./XMLDTDNotation"),z=y("./WriterState"),Se.exports=ve=function(){function Pe(_e){var be,xe,Ae;_e||(_e={}),this.options=_e,xe=_e.writer||{};for(be in xe)Te.call(xe,be)&&(Ae=xe[be],this["_"+be]=this[be],this[be]=Ae)}return Pe.prototype.filterOptions=function(_e){var be,xe,Ae,Me,Be,Ce,De,He;return _e||(_e={}),_e=ke({},this.options,_e),be={writer:this},be.pretty=_e.pretty||!1,be.allowEmpty=_e.allowEmpty||!1,be.indent=(xe=_e.indent)!=null?xe:" ",be.newline=(Ae=_e.newline)!=null?Ae:`
`,be.offset=(Me=_e.offset)!=null?Me:0,be.dontPrettyTextNodes=(Be=(Ce=_e.dontPrettyTextNodes)!=null?Ce:_e.dontprettytextnodes)!=null?Be:0,be.spaceBeforeSlash=(De=(He=_e.spaceBeforeSlash)!=null?He:_e.spacebeforeslash)!=null?De:"",be.spaceBeforeSlash===!0&&(be.spaceBeforeSlash=" "),be.suppressPrettyCount=0,be.user={},be.state=z.None,be},Pe.prototype.indent=function(_e,be,xe){var Ae;return!be.pretty||be.suppressPrettyCount?"":be.pretty&&(Ae=(xe||0)+be.offset+1,Ae>0)?new Array(Ae).join(be.indent):""},Pe.prototype.endline=function(_e,be,xe){return!be.pretty||be.suppressPrettyCount?"":be.newline},Pe.prototype.attribute=function(_e,be,xe){var Ae;return this.openAttribute(_e,be,xe),Ae=" "+_e.name+'="'+_e.value+'"',this.closeAttribute(_e,be,xe),Ae},Pe.prototype.cdata=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe)+"<![CDATA[",be.state=z.InsideTag,Ae+=_e.value,be.state=z.CloseTag,Ae+="]]>"+this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.comment=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe)+"<!-- ",be.state=z.InsideTag,Ae+=_e.value,be.state=z.CloseTag,Ae+=" -->"+this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.declaration=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe)+"<?xml",be.state=z.InsideTag,Ae+=' version="'+_e.version+'"',_e.encoding!=null&&(Ae+=' encoding="'+_e.encoding+'"'),_e.standalone!=null&&(Ae+=' standalone="'+_e.standalone+'"'),be.state=z.CloseTag,Ae+=be.spaceBeforeSlash+"?>",Ae+=this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.docType=function(_e,be,xe){var Ae,Me,Be,Ce,De;if(xe||(xe=0),this.openNode(_e,be,xe),be.state=z.OpenTag,Ce=this.indent(_e,be,xe),Ce+="<!DOCTYPE "+_e.root().name,_e.pubID&&_e.sysID?Ce+=' PUBLIC "'+_e.pubID+'" "'+_e.sysID+'"':_e.sysID&&(Ce+=' SYSTEM "'+_e.sysID+'"'),_e.children.length>0){for(Ce+=" [",Ce+=this.endline(_e,be,xe),be.state=z.InsideTag,De=_e.children,Me=0,Be=De.length;Me<Be;Me++)Ae=De[Me],Ce+=this.writeChildNode(Ae,be,xe+1);be.state=z.CloseTag,Ce+="]"}return be.state=z.CloseTag,Ce+=be.spaceBeforeSlash+">",Ce+=this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ce},Pe.prototype.element=function(_e,be,xe){var Ae,Me,Be,Ce,De,He,Ke,Ye,it,Re,We,et,nt,rt;xe||(xe=0),Re=!1,We="",this.openNode(_e,be,xe),be.state=z.OpenTag,We+=this.indent(_e,be,xe)+"<"+_e.name,et=_e.attribs;for(it in et)Te.call(et,it)&&(Ae=et[it],We+=this.attribute(Ae,be,xe));if(Be=_e.children.length,Ce=Be===0?null:_e.children[0],Be===0||_e.children.every(function(Xe){return(Xe.type===E.Text||Xe.type===E.Raw)&&Xe.value===""}))be.allowEmpty?(We+=">",be.state=z.CloseTag,We+="</"+_e.name+">"+this.endline(_e,be,xe)):(be.state=z.CloseTag,We+=be.spaceBeforeSlash+"/>"+this.endline(_e,be,xe));else if(be.pretty&&Be===1&&(Ce.type===E.Text||Ce.type===E.Raw)&&Ce.value!=null)We+=">",be.state=z.InsideTag,be.suppressPrettyCount++,Re=!0,We+=this.writeChildNode(Ce,be,xe+1),be.suppressPrettyCount--,Re=!1,be.state=z.CloseTag,We+="</"+_e.name+">"+this.endline(_e,be,xe);else{if(be.dontPrettyTextNodes){for(nt=_e.children,De=0,Ke=nt.length;De<Ke;De++)if(Me=nt[De],(Me.type===E.Text||Me.type===E.Raw)&&Me.value!=null){be.suppressPrettyCount++,Re=!0;break}}for(We+=">"+this.endline(_e,be,xe),be.state=z.InsideTag,rt=_e.children,He=0,Ye=rt.length;He<Ye;He++)Me=rt[He],We+=this.writeChildNode(Me,be,xe+1);be.state=z.CloseTag,We+=this.indent(_e,be,xe)+"</"+_e.name+">",Re&&be.suppressPrettyCount--,We+=this.endline(_e,be,xe),be.state=z.None}return this.closeNode(_e,be,xe),We},Pe.prototype.writeChildNode=function(_e,be,xe){switch(_e.type){case E.CData:return this.cdata(_e,be,xe);case E.Comment:return this.comment(_e,be,xe);case E.Element:return this.element(_e,be,xe);case E.Raw:return this.raw(_e,be,xe);case E.Text:return this.text(_e,be,xe);case E.ProcessingInstruction:return this.processingInstruction(_e,be,xe);case E.Dummy:return"";case E.Declaration:return this.declaration(_e,be,xe);case E.DocType:return this.docType(_e,be,xe);case E.AttributeDeclaration:return this.dtdAttList(_e,be,xe);case E.ElementDeclaration:return this.dtdElement(_e,be,xe);case E.EntityDeclaration:return this.dtdEntity(_e,be,xe);case E.NotationDeclaration:return this.dtdNotation(_e,be,xe);default:throw new Error("Unknown XML node type: "+_e.constructor.name)}},Pe.prototype.processingInstruction=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe)+"<?",be.state=z.InsideTag,Ae+=_e.target,_e.value&&(Ae+=" "+_e.value),be.state=z.CloseTag,Ae+=be.spaceBeforeSlash+"?>",Ae+=this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.raw=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe),be.state=z.InsideTag,Ae+=_e.value,be.state=z.CloseTag,Ae+=this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.text=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe),be.state=z.InsideTag,Ae+=_e.value,be.state=z.CloseTag,Ae+=this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.dtdAttList=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe)+"<!ATTLIST",be.state=z.InsideTag,Ae+=" "+_e.elementName+" "+_e.attributeName+" "+_e.attributeType,_e.defaultValueType!=="#DEFAULT"&&(Ae+=" "+_e.defaultValueType),_e.defaultValue&&(Ae+=' "'+_e.defaultValue+'"'),be.state=z.CloseTag,Ae+=be.spaceBeforeSlash+">"+this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.dtdElement=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe)+"<!ELEMENT",be.state=z.InsideTag,Ae+=" "+_e.name+" "+_e.value,be.state=z.CloseTag,Ae+=be.spaceBeforeSlash+">"+this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.dtdEntity=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe)+"<!ENTITY",be.state=z.InsideTag,_e.pe&&(Ae+=" %"),Ae+=" "+_e.name,_e.value?Ae+=' "'+_e.value+'"':(_e.pubID&&_e.sysID?Ae+=' PUBLIC "'+_e.pubID+'" "'+_e.sysID+'"':_e.sysID&&(Ae+=' SYSTEM "'+_e.sysID+'"'),_e.nData&&(Ae+=" NDATA "+_e.nData)),be.state=z.CloseTag,Ae+=be.spaceBeforeSlash+">"+this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.dtdNotation=function(_e,be,xe){var Ae;return this.openNode(_e,be,xe),be.state=z.OpenTag,Ae=this.indent(_e,be,xe)+"<!NOTATION",be.state=z.InsideTag,Ae+=" "+_e.name,_e.pubID&&_e.sysID?Ae+=' PUBLIC "'+_e.pubID+'" "'+_e.sysID+'"':_e.pubID?Ae+=' PUBLIC "'+_e.pubID+'"':_e.sysID&&(Ae+=' SYSTEM "'+_e.sysID+'"'),be.state=z.CloseTag,Ae+=be.spaceBeforeSlash+">"+this.endline(_e,be,xe),be.state=z.None,this.closeNode(_e,be,xe),Ae},Pe.prototype.openNode=function(_e,be,xe){},Pe.prototype.closeNode=function(_e,be,xe){},Pe.prototype.openAttribute=function(_e,be,xe){},Pe.prototype.closeAttribute=function(_e,be,xe){},Pe}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(y,Se,ye){(function(){var E,z,oe,se,ee,de,x,te,re,ae;ae=y("./Utility"),te=ae.assign,re=ae.isFunction,oe=y("./XMLDOMImplementation"),se=y("./XMLDocument"),ee=y("./XMLDocumentCB"),x=y("./XMLStringWriter"),de=y("./XMLStreamWriter"),E=y("./NodeType"),z=y("./WriterState"),Se.exports.create=function(ue,he,pe,me){var fe,ve;if(ue==null)throw new Error("Root element needs a name.");return me=te({},he,pe,me),fe=new se(me),ve=fe.element(ue),me.headless||(fe.declaration(me),(me.pubID!=null||me.sysID!=null)&&fe.dtd(me)),ve},Se.exports.begin=function(ue,he,pe){var me;return re(ue)&&(me=[ue,he],he=me[0],pe=me[1],ue={}),he?new ee(ue,he,pe):new se(ue)},Se.exports.stringWriter=function(ue){return new x(ue)},Se.exports.streamWriter=function(ue,he){return new de(ue,he)},Se.exports.implementation=new oe,Se.exports.nodeType=E,Se.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,Se,ye){Se.exports=z;var E=Object.prototype.hasOwnProperty;function z(){for(var oe={},se=0;se<arguments.length;se++){var ee=arguments[se];for(var de in ee)E.call(ee,de)&&(oe[de]=ee[de])}return oe}},{}],461:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.array.slice.js");var E=y("buffer").Buffer,z=y("./sha"),oe=y("./md5"),se={sha1:z,md5:oe},ee=64,de=E.alloc(ee);de.fill(0);function x(ae,ue,he){E.isBuffer(ue)||(ue=E.from(ue)),E.isBuffer(he)||(he=E.from(he)),ue.length>ee?ue=ae(ue):ue.length<ee&&(ue=E.concat([ue,de],ee));for(var pe=E.alloc(ee),me=E.alloc(ee),fe=0;fe<ee;fe++)pe[fe]=ue[fe]^54,me[fe]=ue[fe]^92;var ve=ae(E.concat([pe,he]));return ae(E.concat([me,ve]))}function te(ae,ue){ae=ae||"sha1";var he=se[ae],pe=[],me=0;return he||re("algorithm:",ae,"is not yet supported"),{update:function(ve){return E.isBuffer(ve)||(ve=E.from(ve)),pe.push(ve),me+=ve.length,this},digest:function(ve){var ke=E.concat(pe),Te=ue?x(he,ue,ke):he(ke);return pe=null,ve?Te.toString(ve):Te}}}function re(){var ae=[].slice.call(arguments).join(" ");throw new Error([ae,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}ye.createHash=function(ae){return te(ae)},ye.createHmac=function(ae,ue){return te(ae,ue)},ye.createCredentials=function(){re("sorry,createCredentials is not implemented yet")},ye.createCipher=function(){re("sorry,createCipher is not implemented yet")},ye.createCipheriv=function(){re("sorry,createCipheriv is not implemented yet")},ye.createDecipher=function(){re("sorry,createDecipher is not implemented yet")},ye.createDecipheriv=function(){re("sorry,createDecipheriv is not implemented yet")},ye.createSign=function(){re("sorry,createSign is not implemented yet")},ye.createVerify=function(){re("sorry,createVerify is not implemented yet")},ye.createDiffieHellman=function(){re("sorry,createDiffieHellman is not implemented yet")},ye.pbkdf2=function(){re("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(y,Se,ye){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js");var E=y("buffer").Buffer,z=4,oe=E.alloc(z);oe.fill(0);var se=8;function ee(te,re){if(te.length%z!==0){var ae=te.length+(z-te.length%z);te=E.concat([te,oe],ae)}for(var ue=[],he=re?te.readInt32BE:te.readInt32LE,pe=0;pe<te.length;pe+=z)ue.push(he.call(te,pe));return ue}function de(te,re,ae){for(var ue=E.alloc(re),he=ae?ue.writeInt32BE:ue.writeInt32LE,pe=0;pe<te.length;pe++)he.call(ue,te[pe],pe*4,!0);return ue}function x(te,re,ae,ue){E.isBuffer(te)||(te=E.from(te));var he=re(ee(te,ue),te.length*se);return de(he,ae,ue)}Se.exports={hash:x}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,Se,ye){"use strict";var E=y("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function oe(ue,he){ue[he>>5]|=128<<he%32,ue[(he+64>>>9<<4)+14]=he;for(var pe=1732584193,me=-271733879,fe=-1732584194,ve=271733878,ke=0;ke<ue.length;ke+=16){var Te=pe,Pe=me,_e=fe,be=ve;pe=ee(pe,me,fe,ve,ue[ke+0],7,-680876936),ve=ee(ve,pe,me,fe,ue[ke+1],12,-389564586),fe=ee(fe,ve,pe,me,ue[ke+2],17,606105819),me=ee(me,fe,ve,pe,ue[ke+3],22,-1044525330),pe=ee(pe,me,fe,ve,ue[ke+4],7,-176418897),ve=ee(ve,pe,me,fe,ue[ke+5],12,1200080426),fe=ee(fe,ve,pe,me,ue[ke+6],17,-1473231341),me=ee(me,fe,ve,pe,ue[ke+7],22,-45705983),pe=ee(pe,me,fe,ve,ue[ke+8],7,1770035416),ve=ee(ve,pe,me,fe,ue[ke+9],12,-1958414417),fe=ee(fe,ve,pe,me,ue[ke+10],17,-42063),me=ee(me,fe,ve,pe,ue[ke+11],22,-1990404162),pe=ee(pe,me,fe,ve,ue[ke+12],7,1804603682),ve=ee(ve,pe,me,fe,ue[ke+13],12,-40341101),fe=ee(fe,ve,pe,me,ue[ke+14],17,-1502002290),me=ee(me,fe,ve,pe,ue[ke+15],22,1236535329),pe=de(pe,me,fe,ve,ue[ke+1],5,-165796510),ve=de(ve,pe,me,fe,ue[ke+6],9,-1069501632),fe=de(fe,ve,pe,me,ue[ke+11],14,643717713),me=de(me,fe,ve,pe,ue[ke+0],20,-373897302),pe=de(pe,me,fe,ve,ue[ke+5],5,-701558691),ve=de(ve,pe,me,fe,ue[ke+10],9,38016083),fe=de(fe,ve,pe,me,ue[ke+15],14,-660478335),me=de(me,fe,ve,pe,ue[ke+4],20,-405537848),pe=de(pe,me,fe,ve,ue[ke+9],5,568446438),ve=de(ve,pe,me,fe,ue[ke+14],9,-1019803690),fe=de(fe,ve,pe,me,ue[ke+3],14,-187363961),me=de(me,fe,ve,pe,ue[ke+8],20,1163531501),pe=de(pe,me,fe,ve,ue[ke+13],5,-1444681467),ve=de(ve,pe,me,fe,ue[ke+2],9,-51403784),fe=de(fe,ve,pe,me,ue[ke+7],14,1735328473),me=de(me,fe,ve,pe,ue[ke+12],20,-1926607734),pe=x(pe,me,fe,ve,ue[ke+5],4,-378558),ve=x(ve,pe,me,fe,ue[ke+8],11,-2022574463),fe=x(fe,ve,pe,me,ue[ke+11],16,1839030562),me=x(me,fe,ve,pe,ue[ke+14],23,-35309556),pe=x(pe,me,fe,ve,ue[ke+1],4,-1530992060),ve=x(ve,pe,me,fe,ue[ke+4],11,1272893353),fe=x(fe,ve,pe,me,ue[ke+7],16,-155497632),me=x(me,fe,ve,pe,ue[ke+10],23,-1094730640),pe=x(pe,me,fe,ve,ue[ke+13],4,681279174),ve=x(ve,pe,me,fe,ue[ke+0],11,-358537222),fe=x(fe,ve,pe,me,ue[ke+3],16,-722521979),me=x(me,fe,ve,pe,ue[ke+6],23,76029189),pe=x(pe,me,fe,ve,ue[ke+9],4,-640364487),ve=x(ve,pe,me,fe,ue[ke+12],11,-421815835),fe=x(fe,ve,pe,me,ue[ke+15],16,530742520),me=x(me,fe,ve,pe,ue[ke+2],23,-995338651),pe=te(pe,me,fe,ve,ue[ke+0],6,-198630844),ve=te(ve,pe,me,fe,ue[ke+7],10,1126891415),fe=te(fe,ve,pe,me,ue[ke+14],15,-1416354905),me=te(me,fe,ve,pe,ue[ke+5],21,-57434055),pe=te(pe,me,fe,ve,ue[ke+12],6,1700485571),ve=te(ve,pe,me,fe,ue[ke+3],10,-1894986606),fe=te(fe,ve,pe,me,ue[ke+10],15,-1051523),me=te(me,fe,ve,pe,ue[ke+1],21,-2054922799),pe=te(pe,me,fe,ve,ue[ke+8],6,1873313359),ve=te(ve,pe,me,fe,ue[ke+15],10,-30611744),fe=te(fe,ve,pe,me,ue[ke+6],15,-1560198380),me=te(me,fe,ve,pe,ue[ke+13],21,1309151649),pe=te(pe,me,fe,ve,ue[ke+4],6,-145523070),ve=te(ve,pe,me,fe,ue[ke+11],10,-1120210379),fe=te(fe,ve,pe,me,ue[ke+2],15,718787259),me=te(me,fe,ve,pe,ue[ke+9],21,-343485551),pe=re(pe,Te),me=re(me,Pe),fe=re(fe,_e),ve=re(ve,be)}return Array(pe,me,fe,ve)}function se(ue,he,pe,me,fe,ve){return re(ae(re(re(he,ue),re(me,ve)),fe),pe)}function ee(ue,he,pe,me,fe,ve,ke){return se(he&pe|~he&me,ue,he,fe,ve,ke)}function de(ue,he,pe,me,fe,ve,ke){return se(he&me|pe&~me,ue,he,fe,ve,ke)}function x(ue,he,pe,me,fe,ve,ke){return se(he^pe^me,ue,he,fe,ve,ke)}function te(ue,he,pe,me,fe,ve,ke){return se(pe^(he|~me),ue,he,fe,ve,ke)}function re(ue,he){var pe=(ue&65535)+(he&65535),me=(ue>>16)+(he>>16)+(pe>>16);return me<<16|pe&65535}function ae(ue,he){return ue<<he|ue>>>32-he}Se.exports=function(he){return E.hash(he,oe,16)}},{"./helpers":462}],464:[function(y,Se,ye){"use strict";var E=y("./helpers");function z(x,te){x[te>>5]|=128<<24-te%32,x[(te+64>>9<<4)+15]=te;for(var re=Array(80),ae=1732584193,ue=-271733879,he=-1732584194,pe=271733878,me=-1009589776,fe=0;fe<x.length;fe+=16){for(var ve=ae,ke=ue,Te=he,Pe=pe,_e=me,be=0;be<80;be++){be<16?re[be]=x[fe+be]:re[be]=de(re[be-3]^re[be-8]^re[be-14]^re[be-16],1);var xe=ee(ee(de(ae,5),oe(be,ue,he,pe)),ee(ee(me,re[be]),se(be)));me=pe,pe=he,he=de(ue,30),ue=ae,ae=xe}ae=ee(ae,ve),ue=ee(ue,ke),he=ee(he,Te),pe=ee(pe,Pe),me=ee(me,_e)}return Array(ae,ue,he,pe,me)}function oe(x,te,re,ae){return x<20?te&re|~te&ae:x<40?te^re^ae:x<60?te&re|te&ae|re&ae:te^re^ae}function se(x){return x<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514}function ee(x,te){var re=(x&65535)+(te&65535),ae=(x>>16)+(te>>16)+(re>>16);return ae<<16|re&65535}function de(x,te){return x<<te|x>>>32-te}Se.exports=function(te){return E.hash(te,z,20,!0)}},{"./helpers":462}],465:[function(y,Se,ye){"use strict";Se.exports=function(){return function(){}}},{}],466:[function(y,Se,ye){(function(E){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/helpers/typeof")),se=y("stream"),ee=se.Stream,de=y("../lib/common/utils/isArray"),x=de.isArray;Se.exports.string=function(ae){return typeof ae=="string"},Se.exports.array=x,Se.exports.buffer=E.isBuffer;function te(re){return re instanceof ee}Se.exports.writableStream=function(ae){return te(ae)&&typeof ae._write=="function"&&(0,oe.default)(ae._writableState)==="object"}}).call(this)}).call(this,{isBuffer:y("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":63,"../node_modules/is-buffer/index.js":366,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,stream:398}],467:[function(y,Se,ye){"use strict";var E=y("immediate"),z=Se.exports={};z.nextTick=E,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function oe(){}z.on=oe,z.addListener=oe,z.once=oe,z.off=oe,z.removeListener=oe,z.removeAllListeners=oe,z.emit=oe,z.prependListener=oe,z.prependOnceListener=oe,z.listeners=function(se){return[]},z.binding=function(se){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(se){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(y,Se,ye){(function(E){(function(){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js");var z=y("./lib/request"),oe=y("./lib/response"),se=y("xtend"),ee=y("builtin-status-codes"),de=y("url"),x=ye;x.request=function(te,re){typeof te=="string"?te=de.parse(te):te=se(te);var ae=E.location.protocol.search(/^https?:$/)===-1?"http:":"",ue=te.protocol||ae,he=te.hostname||te.host,pe=te.port,me=te.path||"/";he&&he.indexOf(":")!==-1&&(he="["+he+"]"),te.url=(he?ue+"//"+he:"")+(pe?":"+pe:"")+me,te.method=(te.method||"GET").toUpperCase(),te.headers=te.headers||{};var fe=new z(te);return re&&fe.on("response",re),fe},x.get=function(re,ae){var ue=x.request(re,ae);return ue.end(),ue},x.ClientRequest=z,x.IncomingMessage=oe.IncomingMessage,x.Agent=function(){},x.Agent.defaultMaxSockets=4,x.globalAgent=new x.Agent,x.STATUS_CODES=ee,x.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":470,"./lib/response":471,"builtin-status-codes":91,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.search.js":306,url:472,xtend:460}],469:[function(y,Se,ye){(function(E){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array-buffer.constructor.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.array.slice.js"),ye.fetch=x(E.fetch)&&x(E.ReadableStream),ye.writableStream=x(E.WritableStream),ye.abortController=x(E.AbortController),ye.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),ye.blobConstructor=!0}catch(te){}var z;function oe(){if(z!==void 0)return z;if(E.XMLHttpRequest){z=new E.XMLHttpRequest;try{z.open("GET",E.XDomainRequest?"/":"https://example.com")}catch(te){z=null}}else z=null;return z}function se(te){var re=oe();if(!re)return!1;try{return re.responseType=te,re.responseType===te}catch(ae){}return!1}var ee=typeof E.ArrayBuffer!="undefined",de=ee&&x(E.ArrayBuffer.prototype.slice);ye.arraybuffer=ye.fetch||ee&&se("arraybuffer"),ye.msstream=!ye.fetch&&de&&se("ms-stream"),ye.mozchunkedarraybuffer=!ye.fetch&&ee&&se("moz-chunked-arraybuffer"),ye.overrideMimeType=ye.fetch||(oe()?x(oe().overrideMimeType):!1),ye.vbArray=x(E.VBArray);function x(te){return typeof te=="function"}z=null}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"core-js/modules/es.array-buffer.constructor.js":270,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],470:[function(y,Se,ye){(function(E,z,oe){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js");var se=y("./capability"),ee=y("inherits"),de=y("./response"),x=y("readable-stream"),te=y("to-arraybuffer"),re=de.IncomingMessage,ae=de.readyStates;function ue(fe,ve){return se.fetch&&ve?"fetch":se.mozchunkedarraybuffer?"moz-chunked-arraybuffer":se.msstream?"ms-stream":se.arraybuffer&&fe?"arraybuffer":se.vbArray&&fe?"text:vbarray":"text"}var he=Se.exports=function(fe){var ve=this;x.Writable.call(ve),ve._opts=fe,ve._body=[],ve._headers={},fe.auth&&ve.setHeader("Authorization","Basic "+new oe(fe.auth).toString("base64")),Object.keys(fe.headers).forEach(function(Pe){ve.setHeader(Pe,fe.headers[Pe])});var ke,Te=!0;if(fe.mode==="disable-fetch"||"requestTimeout"in fe&&!se.abortController)Te=!1,ke=!0;else if(fe.mode==="prefer-streaming")ke=!1;else if(fe.mode==="allow-wrong-content-type")ke=!se.overrideMimeType;else if(!fe.mode||fe.mode==="default"||fe.mode==="prefer-fast")ke=!0;else throw new Error("Invalid value for opts.mode");ve._mode=ue(ke,Te),ve._fetchTimer=null,ve.on("finish",function(){ve._onFinish()})};ee(he,x.Writable),he.prototype.setHeader=function(fe,ve){var ke=this,Te=fe.toLowerCase();me.indexOf(Te)===-1&&(ke._headers[Te]={name:fe,value:ve})},he.prototype.getHeader=function(fe){var ve=this._headers[fe.toLowerCase()];return ve?ve.value:null},he.prototype.removeHeader=function(fe){var ve=this;delete ve._headers[fe.toLowerCase()]},he.prototype._onFinish=function(){var fe=this;if(!fe._destroyed){var ve=fe._opts,ke=fe._headers,Te=null;ve.method!=="GET"&&ve.method!=="HEAD"&&(se.arraybuffer?Te=te(oe.concat(fe._body)):se.blobConstructor?Te=new z.Blob(fe._body.map(function(Me){return te(Me)}),{type:(ke["content-type"]||{}).value||""}):Te=oe.concat(fe._body).toString());var Pe=[];if(Object.keys(ke).forEach(function(Me){var Be=ke[Me].name,Ce=ke[Me].value;Array.isArray(Ce)?Ce.forEach(function(De){Pe.push([Be,De])}):Pe.push([Be,Ce])}),fe._mode==="fetch"){var _e=null,be=null;if(se.abortController){var xe=new AbortController;_e=xe.signal,fe._fetchAbortController=xe,"requestTimeout"in ve&&ve.requestTimeout!==0&&(fe._fetchTimer=z.setTimeout(function(){fe.emit("requestTimeout"),fe._fetchAbortController&&fe._fetchAbortController.abort()},ve.requestTimeout))}z.fetch(fe._opts.url,{method:fe._opts.method,headers:Pe,body:Te||void 0,mode:"cors",credentials:ve.withCredentials?"include":"same-origin",signal:_e}).then(function(Me){fe._fetchResponse=Me,fe._connect()},function(Me){z.clearTimeout(fe._fetchTimer),fe._destroyed||fe.emit("error",Me)})}else{var Ae=fe._xhr=new z.XMLHttpRequest;try{Ae.open(fe._opts.method,fe._opts.url,!0)}catch(Me){E.nextTick(function(){fe.emit("error",Me)});return}"responseType"in Ae&&(Ae.responseType=fe._mode.split(":")[0]),"withCredentials"in Ae&&(Ae.withCredentials=!!ve.withCredentials),fe._mode==="text"&&"overrideMimeType"in Ae&&Ae.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in ve&&(Ae.timeout=ve.requestTimeout,Ae.ontimeout=function(){fe.emit("requestTimeout")}),Pe.forEach(function(Me){Ae.setRequestHeader(Me[0],Me[1])}),fe._response=null,Ae.onreadystatechange=function(){switch(Ae.readyState){case ae.LOADING:case ae.DONE:fe._onXHRProgress();break}},fe._mode==="moz-chunked-arraybuffer"&&(Ae.onprogress=function(){fe._onXHRProgress()}),Ae.onerror=function(){fe._destroyed||fe.emit("error",new Error("XHR error"))};try{Ae.send(Te)}catch(Me){E.nextTick(function(){fe.emit("error",Me)});return}}}};function pe(fe){try{var ve=fe.status;return ve!==null&&ve!==0}catch(ke){return!1}}he.prototype._onXHRProgress=function(){var fe=this;!pe(fe._xhr)||fe._destroyed||(fe._response||fe._connect(),fe._response._onXHRProgress())},he.prototype._connect=function(){var fe=this;fe._destroyed||(fe._response=new re(fe._xhr,fe._fetchResponse,fe._mode,fe._fetchTimer),fe._response.on("error",function(ve){fe.emit("error",ve)}),fe.emit("response",fe._response))},he.prototype._write=function(fe,ve,ke){var Te=this;Te._body.push(fe),ke()},he.prototype.abort=he.prototype.destroy=function(){var fe=this;fe._destroyed=!0,z.clearTimeout(fe._fetchTimer),fe._response&&(fe._response._destroyed=!0),fe._xhr?fe._xhr.abort():fe._fetchAbortController&&fe._fetchAbortController.abort()},he.prototype.end=function(fe,ve,ke){var Te=this;typeof fe=="function"&&(ke=fe,fe=void 0),x.Writable.prototype.end.call(Te,fe,ve,ke)},he.prototype.flushHeaders=function(){},he.prototype.setTimeout=function(){},he.prototype.setNoDelay=function(){},he.prototype.setSocketKeepAlive=function(){};var me=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,y("_process"),typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":469,"./response":471,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.split.js":307,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394,"to-arraybuffer":415}],471:[function(y,Se,ye){(function(E,z,oe){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js"),y("core-js/modules/es.array.slice.js");var se=y("./capability"),ee=y("inherits"),de=y("readable-stream"),x=ye.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},te=ye.IncomingMessage=function(re,ae,ue,he){var pe=this;if(de.Readable.call(pe),pe._mode=ue,pe.headers={},pe.rawHeaders=[],pe.trailers={},pe.rawTrailers=[],pe.on("end",function(){E.nextTick(function(){pe.emit("close")})}),ue==="fetch"){var me=function _e(){ve.read().then(function(be){if(!pe._destroyed){if(be.done){z.clearTimeout(he),pe.push(null);return}pe.push(new oe(be.value)),_e()}}).catch(function(be){z.clearTimeout(he),pe._destroyed||pe.emit("error",be)})};if(pe._fetchResponse=ae,pe.url=ae.url,pe.statusCode=ae.status,pe.statusMessage=ae.statusText,ae.headers.forEach(function(_e,be){pe.headers[be.toLowerCase()]=_e,pe.rawHeaders.push(be,_e)}),se.writableStream){var fe=new WritableStream({write:function(be){return new Promise(function(xe,Ae){pe._destroyed?Ae():pe.push(new oe(be))?xe():pe._resumeFetch=xe})},close:function(){z.clearTimeout(he),pe._destroyed||pe.push(null)},abort:function(be){pe._destroyed||pe.emit("error",be)}});try{ae.body.pipeTo(fe).catch(function(_e){z.clearTimeout(he),pe._destroyed||pe.emit("error",_e)});return}catch(_e){}}var ve=ae.body.getReader();me()}else{pe._xhr=re,pe._pos=0,pe.url=re.responseURL,pe.statusCode=re.status,pe.statusMessage=re.statusText;var ke=re.getAllResponseHeaders().split(/\r?\n/);if(ke.forEach(function(_e){var be=_e.match(/^([^:]+):\s*(.*)/);if(be){var xe=be[1].toLowerCase();xe==="set-cookie"?(pe.headers[xe]===void 0&&(pe.headers[xe]=[]),pe.headers[xe].push(be[2])):pe.headers[xe]!==void 0?pe.headers[xe]+=", "+be[2]:pe.headers[xe]=be[2],pe.rawHeaders.push(be[1],be[2])}}),pe._charset="x-user-defined",!se.overrideMimeType){var Te=pe.rawHeaders["mime-type"];if(Te){var Pe=Te.match(/;\s*charset=([^;])(;|$)/);Pe&&(pe._charset=Pe[1].toLowerCase())}pe._charset||(pe._charset="utf-8")}}};ee(te,de.Readable),te.prototype._read=function(){var re=this,ae=re._resumeFetch;ae&&(re._resumeFetch=null,ae())},te.prototype._onXHRProgress=function(){var re=this,ae=re._xhr,ue=null;switch(re._mode){case"text:vbarray":if(ae.readyState!==x.DONE)break;try{ue=new z.VBArray(ae.responseBody).toArray()}catch(ve){}if(ue!==null){re.push(new oe(ue));break}case"text":try{ue=ae.responseText}catch(ve){re._mode="text:vbarray";break}if(ue.length>re._pos){var he=ue.substr(re._pos);if(re._charset==="x-user-defined"){for(var pe=new oe(he.length),me=0;me<he.length;me++)pe[me]=he.charCodeAt(me)&255;re.push(pe)}else re.push(he,re._charset);re._pos=ue.length}break;case"arraybuffer":if(ae.readyState!==x.DONE||!ae.response)break;ue=ae.response,re.push(new oe(new Uint8Array(ue)));break;case"moz-chunked-arraybuffer":if(ue=ae.response,ae.readyState!==x.LOADING||!ue)break;re.push(new oe(new Uint8Array(ue)));break;case"ms-stream":if(ue=ae.response,ae.readyState!==x.LOADING)break;var fe=new z.MSStreamReader;fe.onprogress=function(){fe.result.byteLength>re._pos&&(re.push(new oe(new Uint8Array(fe.result.slice(re._pos)))),re._pos=fe.result.byteLength)},fe.onload=function(){re.push(null)},fe.readAsArrayBuffer(ue);break}re._xhr.readyState===x.DONE&&re._mode!=="ms-stream"&&re.push(null)}}).call(this)}).call(this,y("_process"),typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{},y("buffer").Buffer)},{"./capability":469,_process:467,buffer:90,"core-js/modules/es.array-buffer.slice.js":271,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.split.js":307,"core-js/modules/es.typed-array.copy-within.js":315,"core-js/modules/es.typed-array.every.js":316,"core-js/modules/es.typed-array.fill.js":317,"core-js/modules/es.typed-array.filter.js":318,"core-js/modules/es.typed-array.find-index.js":319,"core-js/modules/es.typed-array.find.js":320,"core-js/modules/es.typed-array.for-each.js":321,"core-js/modules/es.typed-array.includes.js":322,"core-js/modules/es.typed-array.index-of.js":323,"core-js/modules/es.typed-array.iterator.js":324,"core-js/modules/es.typed-array.join.js":325,"core-js/modules/es.typed-array.last-index-of.js":326,"core-js/modules/es.typed-array.map.js":327,"core-js/modules/es.typed-array.reduce-right.js":328,"core-js/modules/es.typed-array.reduce.js":329,"core-js/modules/es.typed-array.reverse.js":330,"core-js/modules/es.typed-array.set.js":331,"core-js/modules/es.typed-array.slice.js":332,"core-js/modules/es.typed-array.some.js":333,"core-js/modules/es.typed-array.sort.js":334,"core-js/modules/es.typed-array.subarray.js":335,"core-js/modules/es.typed-array.to-locale-string.js":336,"core-js/modules/es.typed-array.to-string.js":337,"core-js/modules/es.typed-array.uint8-array.js":338,"core-js/modules/web.dom-collections.for-each.js":339,inherits:364,"readable-stream":394}],472:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.splice.js");var oe=y("punycode"),se=y("./util");ye.parse=be,ye.resolve=Ae,ye.resolveObject=Me,ye.format=xe,ye.Url=ee;function ee(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var de=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,te=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,re=["<",">",'"',"`"," ","\r",`
`," "],ae=["{","}","|","\\","^","`"].concat(re),ue=["'"].concat(ae),he=["%","/","?",";","#"].concat(ue),pe=["/","?","#"],me=255,fe=/^[+a-z0-9A-Z_-]{0,63}$/,ve=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ke={javascript:!0,"javascript:":!0},Te={javascript:!0,"javascript:":!0},Pe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_e=y("querystring");function be(Be,Ce,De){if(Be&&se.isObject(Be)&&Be instanceof ee)return Be;var He=new ee;return He.parse(Be,Ce,De),He}ee.prototype.parse=function(Be,Ce,De){if(!se.isString(Be))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(Be));var He=Be.indexOf("?"),Ke=He!==-1&&He<Be.indexOf("#")?"?":"#",Ye=Be.split(Ke),it=/\\/g;Ye[0]=Ye[0].replace(it,"/"),Be=Ye.join(Ke);var Re=Be;if(Re=Re.trim(),!De&&Be.split("#").length===1){var We=te.exec(Re);if(We)return this.path=Re,this.href=Re,this.pathname=We[1],We[2]?(this.search=We[2],Ce?this.query=_e.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ce&&(this.search="",this.query={}),this}var et=de.exec(Re);if(et){et=et[0];var nt=et.toLowerCase();this.protocol=nt,Re=Re.substr(et.length)}if(De||et||Re.match(/^\/\/[^@\/]+@[^@\/]+/)){var rt=Re.substr(0,2)==="//";rt&&!(et&&Te[et])&&(Re=Re.substr(2),this.slashes=!0)}if(!Te[et]&&(rt||et&&!Pe[et])){for(var Xe=-1,Je=0;Je<pe.length;Je++){var Ve=Re.indexOf(pe[Je]);Ve!==-1&&(Xe===-1||Ve<Xe)&&(Xe=Ve)}var at,Qe;Xe===-1?Qe=Re.lastIndexOf("@"):Qe=Re.lastIndexOf("@",Xe),Qe!==-1&&(at=Re.slice(0,Qe),Re=Re.slice(Qe+1),this.auth=decodeURIComponent(at)),Xe=-1;for(var Je=0;Je<he.length;Je++){var Ve=Re.indexOf(he[Je]);Ve!==-1&&(Xe===-1||Ve<Xe)&&(Xe=Ve)}Xe===-1&&(Xe=Re.length),this.host=Re.slice(0,Xe),Re=Re.slice(Xe),this.parseHost(),this.hostname=this.hostname||"";var ut=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ut)for(var st=this.hostname.split("."),Je=0,$e=st.length;Je<$e;Je++){var Ne=st[Je];if(Ne&&!Ne.match(fe)){for(var je="",ne=0,ce=Ne.length;ne<ce;ne++)Ne.charCodeAt(ne)>127?je+="x":je+=Ne[ne];if(!je.match(fe)){var Ie=st.slice(0,Je),Fe=st.slice(Je+1),we=Ne.match(ve);we&&(Ie.push(we[1]),Fe.unshift(we[2])),Fe.length&&(Re="/"+Fe.join(".")+Re),this.hostname=Ie.join(".");break}}}this.hostname.length>me?this.hostname="":this.hostname=this.hostname.toLowerCase(),ut||(this.hostname=oe.toASCII(this.hostname));var Ee=this.port?":"+this.port:"",Oe=this.hostname||"";this.host=Oe+Ee,this.href+=this.host,ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Re[0]!=="/"&&(Re="/"+Re))}if(!ke[nt])for(var Je=0,$e=ue.length;Je<$e;Je++){var Ue=ue[Je];if(Re.indexOf(Ue)!==-1){var tt=encodeURIComponent(Ue);tt===Ue&&(tt=escape(Ue)),Re=Re.split(Ue).join(tt)}}var Ge=Re.indexOf("#");Ge!==-1&&(this.hash=Re.substr(Ge),Re=Re.slice(0,Ge));var ft=Re.indexOf("?");if(ft!==-1?(this.search=Re.substr(ft),this.query=Re.substr(ft+1),Ce&&(this.query=_e.parse(this.query)),Re=Re.slice(0,ft)):Ce&&(this.search="",this.query={}),Re&&(this.pathname=Re),Pe[nt]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ee=this.pathname||"",ct=this.search||"";this.path=Ee+ct}return this.href=this.format(),this};function xe(Be){return se.isString(Be)&&(Be=be(Be)),Be instanceof ee?Be.format():ee.prototype.format.call(Be)}ee.prototype.format=function(){var Be=this.auth||"";Be&&(Be=encodeURIComponent(Be),Be=Be.replace(/%3A/i,":"),Be+="@");var Ce=this.protocol||"",De=this.pathname||"",He=this.hash||"",Ke=!1,Ye="";this.host?Ke=Be+this.host:this.hostname&&(Ke=Be+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Ke+=":"+this.port)),this.query&&se.isObject(this.query)&&Object.keys(this.query).length&&(Ye=_e.stringify(this.query));var it=this.search||Ye&&"?"+Ye||"";return Ce&&Ce.substr(-1)!==":"&&(Ce+=":"),this.slashes||(!Ce||Pe[Ce])&&Ke!==!1?(Ke="//"+(Ke||""),De&&De.charAt(0)!=="/"&&(De="/"+De)):Ke||(Ke=""),He&&He.charAt(0)!=="#"&&(He="#"+He),it&&it.charAt(0)!=="?"&&(it="?"+it),De=De.replace(/[?#]/g,function(Re){return encodeURIComponent(Re)}),it=it.replace("#","%23"),Ce+Ke+De+it+He};function Ae(Be,Ce){return be(Be,!1,!0).resolve(Ce)}ee.prototype.resolve=function(Be){return this.resolveObject(be(Be,!1,!0)).format()};function Me(Be,Ce){return Be?be(Be,!1,!0).resolveObject(Ce):Ce}ee.prototype.resolveObject=function(Be){if(se.isString(Be)){var Ce=new ee;Ce.parse(Be,!1,!0),Be=Ce}for(var De=new ee,He=Object.keys(this),Ke=0;Ke<He.length;Ke++){var Ye=He[Ke];De[Ye]=this[Ye]}if(De.hash=Be.hash,Be.href==="")return De.href=De.format(),De;if(Be.slashes&&!Be.protocol){for(var it=Object.keys(Be),Re=0;Re<it.length;Re++){var We=it[Re];We!=="protocol"&&(De[We]=Be[We])}return Pe[De.protocol]&&De.hostname&&!De.pathname&&(De.path=De.pathname="/"),De.href=De.format(),De}if(Be.protocol&&Be.protocol!==De.protocol){if(!Pe[Be.protocol]){for(var et=Object.keys(Be),nt=0;nt<et.length;nt++){var rt=et[nt];De[rt]=Be[rt]}return De.href=De.format(),De}if(De.protocol=Be.protocol,!Be.host&&!Te[Be.protocol]){for(var $e=(Be.pathname||"").split("/");$e.length&&!(Be.host=$e.shift()););Be.host||(Be.host=""),Be.hostname||(Be.hostname=""),$e[0]!==""&&$e.unshift(""),$e.length<2&&$e.unshift(""),De.pathname=$e.join("/")}else De.pathname=Be.pathname;if(De.search=Be.search,De.query=Be.query,De.host=Be.host||"",De.auth=Be.auth,De.hostname=Be.hostname||Be.host,De.port=Be.port,De.pathname||De.search){var Xe=De.pathname||"",Je=De.search||"";De.path=Xe+Je}return De.slashes=De.slashes||Be.slashes,De.href=De.format(),De}var Ve=De.pathname&&De.pathname.charAt(0)==="/",at=Be.host||Be.pathname&&Be.pathname.charAt(0)==="/",Qe=at||Ve||De.host&&Be.pathname,ut=Qe,st=De.pathname&&De.pathname.split("/")||[],$e=Be.pathname&&Be.pathname.split("/")||[],Ne=De.protocol&&!Pe[De.protocol];if(Ne&&(De.hostname="",De.port=null,De.host&&(st[0]===""?st[0]=De.host:st.unshift(De.host)),De.host="",Be.protocol&&(Be.hostname=null,Be.port=null,Be.host&&($e[0]===""?$e[0]=Be.host:$e.unshift(Be.host)),Be.host=null),Qe=Qe&&($e[0]===""||st[0]==="")),at)De.host=Be.host||Be.host===""?Be.host:De.host,De.hostname=Be.hostname||Be.hostname===""?Be.hostname:De.hostname,De.search=Be.search,De.query=Be.query,st=$e;else if($e.length)st||(st=[]),st.pop(),st=st.concat($e),De.search=Be.search,De.query=Be.query;else if(!se.isNullOrUndefined(Be.search)){if(Ne){De.hostname=De.host=st.shift();var je=De.host&&De.host.indexOf("@")>0?De.host.split("@"):!1;je&&(De.auth=je.shift(),De.host=De.hostname=je.shift())}return De.search=Be.search,De.query=Be.query,(!se.isNull(De.pathname)||!se.isNull(De.search))&&(De.path=(De.pathname?De.pathname:"")+(De.search?De.search:"")),De.href=De.format(),De}if(!st.length)return De.pathname=null,De.search?De.path="/"+De.search:De.path=null,De.href=De.format(),De;for(var ne=st.slice(-1)[0],ce=(De.host||Be.host||st.length>1)&&(ne==="."||ne==="..")||ne==="",Ie=0,Fe=st.length;Fe>=0;Fe--)ne=st[Fe],ne==="."?st.splice(Fe,1):ne===".."?(st.splice(Fe,1),Ie++):Ie&&(st.splice(Fe,1),Ie--);if(!Qe&&!ut)for(;Ie--;Ie)st.unshift("..");Qe&&st[0]!==""&&(!st[0]||st[0].charAt(0)!=="/")&&st.unshift(""),ce&&st.join("/").substr(-1)!=="/"&&st.push("");var we=st[0]===""||st[0]&&st[0].charAt(0)==="/";if(Ne){De.hostname=De.host=we?"":st.length?st.shift():"";var je=De.host&&De.host.indexOf("@")>0?De.host.split("@"):!1;je&&(De.auth=je.shift(),De.host=De.hostname=je.shift())}return Qe=Qe||De.host&&st.length,Qe&&!we&&st.unshift(""),st.length?De.pathname=st.join("/"):(De.pathname=null,De.path=null),(!se.isNull(De.pathname)||!se.isNull(De.search))&&(De.path=(De.pathname?De.pathname:"")+(De.search?De.search:"")),De.auth=Be.auth||De.auth,De.slashes=De.slashes||Be.slashes,De.href=De.format(),De},ee.prototype.parseHost=function(){var Be=this.host,Ce=x.exec(Be);Ce&&(Ce=Ce[0],Ce!==":"&&(this.port=Ce.substr(1)),Be=Be.substr(0,Be.length-Ce.length)),Be&&(this.hostname=Be)}},{"./util":473,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.array.splice.js":283,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.match.js":304,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.search.js":306,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,punycode:382,querystring:385}],473:[function(y,Se,ye){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),z=E(y("@babel/runtime/helpers/typeof"));Se.exports={isString:function(se){return typeof se=="string"},isObject:function(se){return(0,z.default)(se)==="object"&&se!==null},isNull:function(se){return se===null},isNullOrUndefined:function(se){return se==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(y,Se,ye){"use strict";y("core-js/modules/es.number.constructor.js"),ye.encodeURIComponent=function(E){try{return encodeURIComponent(E)}catch(z){return E}},ye.escape=y("escape-html"),ye.timestamp=function(z){if(z){var oe=z;return typeof oe=="string"&&(oe=Number(oe)),String(z).length===10&&(oe*=1e3),new Date(oe)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,Se,ye){(function(E,z){(function(){"use strict";var oe=y("@babel/runtime/helpers/interopRequireDefault"),se=oe(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.concat.js");var ee=y("util"),de=y("url"),x=y("http"),te=y("https"),re=y("debug")("urllib"),ae=y("humanize-ms"),ue=0,he=Math.pow(2,31)-10,pe=/^https?:\/\//i;function me(Te,Pe){return Te===void 0?Pe:Te}function fe(Te){return Te?Te.split(";")[0].trim().toLowerCase():""}function ve(Te,Pe){return function(_e,be,xe){if(_e)return Pe(_e);Te({data:be,status:xe.statusCode,headers:xe.headers,res:xe})}}ye.TIMEOUTS=[ae("300s"),ae("300s")];var ke=["json","text"];ye.request=function(Pe,_e,be){return arguments.length===2&&typeof _e=="function"&&(be=_e,_e=null),typeof be=="function"?ye.requestWithCallback(Pe,_e,be):new Promise(function(xe,Ae){ye.requestWithCallback(Pe,_e,ve(xe,Ae))})},ye.requestWithCallback=function(Pe,_e,be){if(!Pe||typeof Pe!="string"&&(0,se.default)(Pe)!=="object"){var xe=ee.format("expect request url to be a string or a http request options, but got %j",Pe);throw new Error(xe)}arguments.length===2&&typeof _e=="function"&&(be=_e,_e=null),_e=_e||{},ue>=he&&(ue=0);var Ae=++ue;_e.requestUrls=_e.requestUrls||[];var Me={requestId:Ae,url:Pe,args:_e,ctx:_e.ctx};_e.emitter&&_e.emitter.emit("request",Me),_e.timeout=_e.timeout||ye.TIMEOUTS,_e.maxRedirects=_e.maxRedirects||10,_e.streaming=_e.streaming||_e.customResponse;var Be=Date.now(),Ce;typeof Pe=="string"?(pe.test(Pe)||(Pe="https://"+Pe),Ce=de.parse(Pe)):Ce=Pe;var De=(_e.type||_e.method||Ce.method||"GET").toUpperCase(),He=Ce.port||80,Ke=x,Ye=me(_e.agent,ye.agent),it=_e.fixJSONCtlChars;Ce.protocol==="https:"&&(Ke=te,Ye=me(_e.httpsAgent,ye.httpsAgent),Ce.port||(He=443));var Re={host:Ce.hostname||Ce.host||"localhost",path:Ce.path||"/",method:De,port:He,agent:Ye,headers:_e.headers||{},lookup:_e.lookup};Array.isArray(_e.timeout)?Re.requestTimeout=_e.timeout[_e.timeout.length-1]:typeof _e.timeout!="undefined"&&(Re.requestTimeout=_e.timeout);var We=_e.auth||Ce.auth;We&&(Re.auth=We);var et=_e.content||_e.data,nt=De==="GET"||De==="HEAD"||_e.dataAsQueryString;if(!_e.content&&et&&!(typeof et=="string"||z.isBuffer(et)))if(nt)et=_e.nestedQuerystring?qs.stringify(et):querystring.stringify(et);else{var rt=Re.headers["Content-Type"]||Re.headers["content-type"];rt||(_e.contentType==="json"?rt="application/json":rt="application/x-www-form-urlencoded",Re.headers["Content-Type"]=rt),fe(rt)==="application/json"?et=JSON.stringify(et):et=_e.nestedQuerystring?qs.stringify(et):querystring.stringify(et)}nt&&et&&(Re.path+=(Ce.query?"&":"?")+et,et=null);var Xe=0;if(et){var Je=et.length;z.isBuffer(et)||(Je=z.byteLength(et)),Xe=Re.headers["Content-Length"]=Je}_e.dataType==="json"&&(Re.headers.Accept="application/json"),typeof _e.beforeRequest=="function"&&_e.beforeRequest(Re);var Ve=null,at=null,Qe=null,ut=!1,st=!1,$e=0,Ne=-1,je=!1,ne="",ce="",Ie=null;_e.timing&&(Ie={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Fe(){Ve&&(clearTimeout(Ve),Ve=null)}function we(){at&&(clearTimeout(at),at=null)}function Ee(gt,pt,mt){if(we(),!be){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Ae,E.pid,Re.method,Pe),gt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Ae,E.pid,gt.name,gt.message,gt.stack);return}var dt=be;be=null;var bt={};mt&&(Ne=mt.statusCode,bt=mt.headers);var wt=Date.now()-Be;Ie&&(Ie.contentDownload=wt),re("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",wt,$e,Ne,Re.method,Re.host,Re.path,st,Ie);var At={status:Ne,statusCode:Ne,headers:bt,size:$e,aborted:je,rt:wt,keepAliveSocket:st,data:pt,requestUrls:_e.requestUrls,timing:Ie,remoteAddress:ne,remotePort:ce};if(gt){var jt="";Ye&&typeof Ye.getCurrentStatus=="function"&&(jt=", agent status: "+JSON.stringify(Ye.getCurrentStatus())),gt.message+=", "+Re.method+" "+Pe+" "+Ne+" (connected: "+ut+", keepalive socket: "+st+jt+`)
headers: `+JSON.stringify(bt),gt.data=pt,gt.path=Re.path,gt.status=Ne,gt.headers=bt,gt.res=At}dt(gt,pt,_e.streaming?mt:At),_e.emitter&&(Me.url=Pe,Me.socket=xt&&xt.connection,Me.options=Re,Me.size=Xe,_e.emitter.emit("response",{requestId:Ae,error:gt,ctx:_e.ctx,req:Me,res:At}))}function Oe(gt){var pt=null;if(_e.followRedirect&&statuses.redirect[gt.statusCode]){_e._followRedirectCount=(_e._followRedirectCount||0)+1;var mt=gt.headers.location;if(!mt)pt=new Error("Got statusCode "+gt.statusCode+" but cannot resolve next location from headers"),pt.name="FollowRedirectError";else if(_e._followRedirectCount>_e.maxRedirects)pt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Pe),pt.name="MaxRedirectError";else{var dt=_e.formatRedirectUrl?_e.formatRedirectUrl(Pe,mt):de.resolve(Pe,mt);re("Request#%d %s: `redirected` from %s to %s",Ae,Re.path,Pe,dt),we(),_e.headers&&_e.headers.Host&&pe.test(mt)&&(_e.headers.Host=null);var bt=be;return be=null,ye.requestWithCallback(dt,_e,bt),{redirect:!0,error:null}}}return{redirect:!1,error:pt}}_e.gzip&&!Re.headers["Accept-Encoding"]&&!Re.headers["accept-encoding"]&&(Re.headers["Accept-Encoding"]="gzip");function Ue(gt,pt,mt){var dt=gt.headers["content-encoding"];return mt(null,pt,dt)}var tt=_e.writeStream;re("Request#%d %s %s with headers %j, options.path: %s",Ae,De,Pe,Re.headers,Re.path),_e.requestUrls.push(Pe);function Ge(gt){if(Ie&&(Ie.waiting=Date.now()-Be),re("Request#%d %s `req response` event emit: status %d, headers: %j",Ae,Pe,gt.statusCode,gt.headers),_e.streaming){var pt=Oe(gt);if(pt.redirect){gt.resume();return}return pt.error?(gt.resume(),Ee(pt.error,null,gt)):Ee(null,null,gt)}if(gt.on("close",function(){re("Request#%d %s: `res close` event emit, total size %d",Ae,Pe,$e)}),gt.on("error",function(){re("Request#%d %s: `res error` event emit, total size %d",Ae,Pe,$e)}),gt.on("aborted",function(){je=!0,re("Request#%d %s: `res aborted` event emit, total size %d",Ae,Pe,$e)}),tt){var mt=Oe(gt);if(mt.redirect){gt.resume();return}return mt.error?(gt.resume(),tt.end(),Ee(mt.error,null,gt)):(_e.consumeWriteStream===!1?gt.on("end",Ee.bind(null,null,null,gt)):tt.on("close",function(){re("Request#%d %s: writeStream close event emitted",Ae,Pe),Ee(Qe||null,null,gt)}),gt.pipe(tt))}var dt=[];gt.on("data",function(bt){re("Request#%d %s: `res data` event emit, size %d",Ae,Pe,bt.length),$e+=bt.length,dt.push(bt)}),gt.on("end",function(){var bt=z.concat(dt,$e);if(re("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Ae,Pe,$e,gt._dumped),Qe)return Ee(Qe,bt,gt);var wt=Oe(gt);if(wt.error)return Ee(wt.error,bt,gt);wt.redirect||Ue(gt,bt,function(At,jt,Zt){if(At)return Ee(At,bt,gt);if(!Zt&&ke.indexOf(_e.dataType)>=0){try{jt=decodeBodyByCharset(jt,gt)}catch($t){return re("decodeBodyByCharset error: %s",$t),Ee(null,jt,gt)}if(_e.dataType==="json")if($e===0)jt=null;else{var Wt=parseJSON(jt,it);Wt.error?At=Wt.error:jt=Wt.data}}je&&re("Request#%d %s: Remote socket was terminated before `response.end()` was called",Ae,Pe),Ee(At,jt,gt)})})}var ft,ct;Array.isArray(_e.timeout)?(ft=ae(_e.timeout[0]),ct=ae(_e.timeout[1])):ft=ct=ae(_e.timeout),re("ConnectTimeout: %d, ResponseTimeout: %d",ft,ct);function vt(){re("Connect timer ticking, timeout: %d",ft),Ve=setTimeout(function(){Ve=null,Ne===-1&&(Ne=-2);var gt="Connect timeout for "+ft+"ms",pt="ConnectionTimeoutError";xt.socket||(pt="SocketAssignTimeoutError",gt+=", working sockets is full"),Qe=new Error(gt),Qe.name=pt,Qe.requestId=Ae,re("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Ae,Pe,Qe.name,gt,ut),Et()},ft)}function kt(){re("Response timer ticking, timeout: %d",ct),at=setTimeout(function(){at=null;var gt="Response timeout for "+ct+"ms",pt="ResponseTimeoutError";Qe=new Error(gt),Qe.name=pt,Qe.requestId=Ae,re("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Ae,Pe,Qe.name,gt,ut),Et()},ct)}var xt;Re.mode=_e.mode?_e.mode:"";try{xt=Ke.request(Re,Ge)}catch(gt){return Ee(gt)}typeof window=="undefined"?vt():xt.on("requestTimeout",function(){Ne===-1&&(Ne=-2);var gt="Connect timeout for "+ft+"ms",pt="ConnectionTimeoutError";Qe=new Error(gt),Qe.name=pt,Qe.requestId=Ae,Et()});function Et(){re("Request#%d %s abort, connected: %s",Ae,Pe,ut),xt.socket||(Qe.noSocket=!0,Ee(Qe)),xt.abort()}return Ie&&xt.on("finish",function(){Ie.requestSent=Date.now()-Be}),xt.once("socket",function(gt){Ie&&(Ie.queuing=Date.now()-Be);var pt=gt.readyState;if(pt==="opening"){gt.once("lookup",function(mt,dt,bt){re("Request#%d %s lookup: %s, %s, %s",Ae,Pe,mt,dt,bt),Ie&&(Ie.dnslookup=Date.now()-Be),dt&&(ne=dt)}),gt.once("connect",function(){Ie&&(Ie.connected=Date.now()-Be),Fe(),kt(),re("Request#%d %s new socket connected",Ae,Pe),ut=!0,ne||(ne=gt.remoteAddress),ce=gt.remotePort});return}re("Request#%d %s reuse socket connected, readyState: %s",Ae,Pe,pt),ut=!0,st=!0,ne||(ne=gt.remoteAddress),ce=gt.remotePort,Fe(),kt()}),xt.on("error",function(gt){(gt.name==="Error"||gt.name==="TypeError")&&(gt.name=ut?"ResponseError":"RequestError"),gt.message+=' (req "error")',re("Request#%d %s `req error` event emit, %s: %s",Ae,Pe,gt.name,gt.message),Ee(Qe||gt)}),tt&&tt.once("error",function(gt){gt.message+=' (writeStream "error")',Qe=gt,re("Request#%d %s `writeStream error` event emit, %s: %s",Ae,Pe,gt.name,gt.message),Et()}),_e.stream?(_e.stream.pipe(xt),_e.stream.once("error",function(gt){gt.message+=' (stream "error")',Qe=gt,re("Request#%d %s `readStream error` event emit, %s: %s",Ae,Pe,gt.name,gt.message),Et()})):xt.end(et),xt.requestId=Ae,xt}}).call(this)}).call(this,y("_process"),y("buffer").Buffer)},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,_process:467,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.split.js":307,"core-js/modules/es.string.trim.js":308,debug:465,http:468,https:355,"humanize-ms":356,url:472,util:419}]},{},[1])(1)})})(window)},99498:function(Lt,Ot,ze){(function(Ze){Ze(ze(89780))})(function(Ze){Ze.defineOption("placeholder","",function(oe,se,ee){var de=ee&&ee!=Ze.Init;if(se&&!de)oe.on("blur",ye),oe.on("change",E),oe.on("swapDoc",E),Ze.on(oe.getInputField(),"compositionupdate",oe.state.placeholderCompose=function(){Se(oe)}),E(oe);else if(!se&&de){oe.off("blur",ye),oe.off("change",E),oe.off("swapDoc",E),Ze.off(oe.getInputField(),"compositionupdate",oe.state.placeholderCompose),yt(oe);var x=oe.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}se&&!oe.hasFocus()&&ye(oe)});function yt(oe){oe.state.placeholder&&(oe.state.placeholder.parentNode.removeChild(oe.state.placeholder),oe.state.placeholder=null)}function y(oe){yt(oe);var se=oe.state.placeholder=document.createElement("pre");se.style.cssText="height: 0; overflow: visible",se.style.direction=oe.getOption("direction"),se.className="CodeMirror-placeholder CodeMirror-line-like";var ee=oe.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),se.appendChild(ee),oe.display.lineSpace.insertBefore(se,oe.display.lineSpace.firstChild)}function Se(oe){setTimeout(function(){var se=!1,ee=oe.getInputField();ee.nodeName=="TEXTAREA"?se=!ee.value:oe.lineCount()==1&&(se=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),se?y(oe):yt(oe)},20)}function ye(oe){z(oe)&&y(oe)}function E(oe){var se=oe.getWrapperElement(),ee=z(oe);se.className=se.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?y(oe):yt(oe)}function z(oe){return oe.lineCount()===1&&oe.getLine(0)===""}})},25717:function(Lt,Ot,ze){(function(Ze){Ze(ze(89780))})(function(Ze){var yt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},y=Ze.Pos;Ze.defineOption("autoCloseBrackets",!1,function(ae,ue,he){he&&he!=Ze.Init&&(ae.removeKeyMap(ye),ae.state.closeBrackets=null),ue&&(E(Se(ue,"pairs")),ae.state.closeBrackets=ue,ae.addKeyMap(ye))});function Se(ae,ue){return ue=="pairs"&&typeof ae=="string"?ae:typeof ae=="object"&&ae[ue]!=null?ae[ue]:yt[ue]}var ye={Backspace:se,Enter:ee};function E(ae){for(var ue=0;ue<ae.length;ue++){var he=ae.charAt(ue),pe="'"+he+"'";ye[pe]||(ye[pe]=z(he))}}E(yt.pairs+"`");function z(ae){return function(ue){return x(ue,ae)}}function oe(ae){var ue=ae.state.closeBrackets;if(!ue||ue.override)return ue;var he=ae.getModeAt(ae.getCursor());return he.closeBrackets||ue}function se(ae){var ue=oe(ae);if(!ue||ae.getOption("disableInput"))return Ze.Pass;for(var he=Se(ue,"pairs"),pe=ae.listSelections(),me=0;me<pe.length;me++){if(!pe[me].empty())return Ze.Pass;var fe=te(ae,pe[me].head);if(!fe||he.indexOf(fe)%2!=0)return Ze.Pass}for(var me=pe.length-1;me>=0;me--){var ve=pe[me].head;ae.replaceRange("",y(ve.line,ve.ch-1),y(ve.line,ve.ch+1),"+delete")}}function ee(ae){var ue=oe(ae),he=ue&&Se(ue,"explode");if(!he||ae.getOption("disableInput"))return Ze.Pass;for(var pe=ae.listSelections(),me=0;me<pe.length;me++){if(!pe[me].empty())return Ze.Pass;var fe=te(ae,pe[me].head);if(!fe||he.indexOf(fe)%2!=0)return Ze.Pass}ae.operation(function(){var ve=ae.lineSeparator()||`
`;ae.replaceSelection(ve+ve,null),ae.execCommand("goCharLeft"),pe=ae.listSelections();for(var ke=0;ke<pe.length;ke++){var Te=pe[ke].head.line;ae.indentLine(Te,null,!0),ae.indentLine(Te+1,null,!0)}})}function de(ae){var ue=Ze.cmpPos(ae.anchor,ae.head)>0;return{anchor:new y(ae.anchor.line,ae.anchor.ch+(ue?-1:1)),head:new y(ae.head.line,ae.head.ch+(ue?1:-1))}}function x(ae,ue){var he=oe(ae);if(!he||ae.getOption("disableInput"))return Ze.Pass;var pe=Se(he,"pairs"),me=pe.indexOf(ue);if(me==-1)return Ze.Pass;for(var fe=Se(he,"closeBefore"),ve=Se(he,"triples"),ke=pe.charAt(me+1)==ue,Te=ae.listSelections(),Pe=me%2==0,_e,be=0;be<Te.length;be++){var xe=Te[be],Ae=xe.head,Me,Be=ae.getRange(Ae,y(Ae.line,Ae.ch+1));if(Pe&&!xe.empty())Me="surround";else if((ke||!Pe)&&Be==ue)ke&&re(ae,Ae)?Me="both":ve.indexOf(ue)>=0&&ae.getRange(Ae,y(Ae.line,Ae.ch+3))==ue+ue+ue?Me="skipThree":Me="skip";else if(ke&&Ae.ch>1&&ve.indexOf(ue)>=0&&ae.getRange(y(Ae.line,Ae.ch-2),Ae)==ue+ue){if(Ae.ch>2&&/\bstring/.test(ae.getTokenTypeAt(y(Ae.line,Ae.ch-2))))return Ze.Pass;Me="addFour"}else if(ke){var Ce=Ae.ch==0?" ":ae.getRange(y(Ae.line,Ae.ch-1),Ae);if(!Ze.isWordChar(Be)&&Ce!=ue&&!Ze.isWordChar(Ce))Me="both";else return Ze.Pass}else if(Pe&&(Be.length===0||/\s/.test(Be)||fe.indexOf(Be)>-1))Me="both";else return Ze.Pass;if(!_e)_e=Me;else if(_e!=Me)return Ze.Pass}var De=me%2?pe.charAt(me-1):ue,He=me%2?ue:pe.charAt(me+1);ae.operation(function(){if(_e=="skip")ae.execCommand("goCharRight");else if(_e=="skipThree")for(var Ke=0;Ke<3;Ke++)ae.execCommand("goCharRight");else if(_e=="surround"){for(var Ye=ae.getSelections(),Ke=0;Ke<Ye.length;Ke++)Ye[Ke]=De+Ye[Ke]+He;ae.replaceSelections(Ye,"around"),Ye=ae.listSelections().slice();for(var Ke=0;Ke<Ye.length;Ke++)Ye[Ke]=de(Ye[Ke]);ae.setSelections(Ye)}else _e=="both"?(ae.replaceSelection(De+He,null),ae.triggerElectric(De+He),ae.execCommand("goCharLeft")):_e=="addFour"&&(ae.replaceSelection(De+De+De+De,"before"),ae.execCommand("goCharRight"))})}function te(ae,ue){var he=ae.getRange(y(ue.line,ue.ch-1),y(ue.line,ue.ch+1));return he.length==2?he:null}function re(ae,ue){var he=ae.getTokenAt(y(ue.line,ue.ch+1));return/\bstring/.test(he.type)&&he.start==ue.ch&&(ue.ch==0||!/\bstring/.test(ae.getTokenTypeAt(ue)))}})},6313:function(Lt,Ot,ze){(function(Ze){Ze(ze(89780),ze(52730))})(function(Ze){Ze.defineOption("autoCloseTags",!1,function(se,ee,de){if(de!=Ze.Init&&de&&se.removeKeyMap("autoCloseTags"),!!ee){var x={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(x["'/'"]=function(te){return E(te)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(x["'>'"]=function(te){return Se(te)}),se.addKeyMap(x)}});var yt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],y=["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 Se(se){if(se.getOption("disableInput"))return Ze.Pass;for(var ee=se.listSelections(),de=[],x=se.getOption("autoCloseTags"),te=0;te<ee.length;te++){if(!ee[te].empty())return Ze.Pass;var re=ee[te].head,ae=se.getTokenAt(re),ue=Ze.innerMode(se.getMode(),ae.state),he=ue.state,pe=ue.mode.xmlCurrentTag&&ue.mode.xmlCurrentTag(he),me=pe&&pe.name;if(!me)return Ze.Pass;var fe=ue.mode.configuration=="html",ve=typeof x=="object"&&x.dontCloseTags||fe&&yt,ke=typeof x=="object"&&x.indentTags||fe&&y;ae.end>re.ch&&(me=me.slice(0,me.length-ae.end+re.ch));var Te=me.toLowerCase();if(!me||ae.type=="string"&&(ae.end!=re.ch||!/[\"\']/.test(ae.string.charAt(ae.string.length-1))||ae.string.length==1)||ae.type=="tag"&&pe.close||ae.string.indexOf("/")==re.ch-ae.start-1||ve&&z(ve,Te)>-1||oe(se,ue.mode.xmlCurrentContext&&ue.mode.xmlCurrentContext(he)||[],me,re,!0))return Ze.Pass;var Pe=typeof x=="object"&&x.emptyTags;if(Pe&&z(Pe,me)>-1){de[te]={text:"/>",newPos:Ze.Pos(re.line,re.ch+2)};continue}var _e=ke&&z(ke,Te)>-1;de[te]={indent:_e,text:">"+(_e?`
`:"")+"</"+me+">",newPos:_e?Ze.Pos(re.line+1,0):Ze.Pos(re.line,re.ch+1)}}for(var be=typeof x=="object"&&x.dontIndentOnAutoClose,te=ee.length-1;te>=0;te--){var xe=de[te];se.replaceRange(xe.text,ee[te].head,ee[te].anchor,"+insert");var Ae=se.listSelections().slice(0);Ae[te]={head:xe.newPos,anchor:xe.newPos},se.setSelections(Ae),!be&&xe.indent&&(se.indentLine(xe.newPos.line,null,!0),se.indentLine(xe.newPos.line+1,null,!0))}}function ye(se,ee){for(var de=se.listSelections(),x=[],te=ee?"/":"</",re=se.getOption("autoCloseTags"),ae=typeof re=="object"&&re.dontIndentOnSlash,ue=0;ue<de.length;ue++){if(!de[ue].empty())return Ze.Pass;var he=de[ue].head,pe=se.getTokenAt(he),me=Ze.innerMode(se.getMode(),pe.state),fe=me.state;if(ee&&(pe.type=="string"||pe.string.charAt(0)!="<"||pe.start!=he.ch-1))return Ze.Pass;var ve,ke=me.mode.name!="xml"&&se.getMode().name=="htmlmixed";if(ke&&me.mode.name=="javascript")ve=te+"script";else if(ke&&me.mode.name=="css")ve=te+"style";else{var Te=me.mode.xmlCurrentContext&&me.mode.xmlCurrentContext(fe);if(!Te||Te.length&&oe(se,Te,Te[Te.length-1],he))return Ze.Pass;ve=te+Te[Te.length-1]}se.getLine(he.line).charAt(pe.end)!=">"&&(ve+=">"),x[ue]=ve}if(se.replaceSelections(x),de=se.listSelections(),!ae)for(var ue=0;ue<de.length;ue++)(ue==de.length-1||de[ue].head.line<de[ue+1].head.line)&&se.indentLine(de[ue].head.line)}function E(se){return se.getOption("disableInput")?Ze.Pass:ye(se,!0)}Ze.commands.closeTag=function(se){return ye(se)};function z(se,ee){if(se.indexOf)return se.indexOf(ee);for(var de=0,x=se.length;de<x;++de)if(se[de]==ee)return de;return-1}function oe(se,ee,de,x,te){if(!Ze.scanForClosingTag)return!1;var re=Math.min(se.lastLine()+1,x.line+500),ae=Ze.scanForClosingTag(se,x,null,re);if(!ae||ae.tag!=de)return!1;for(var ue=te?1:0,he=ee.length-1;he>=0&&ee[he]==de;he--)++ue;x=ae.to;for(var he=1;he<ue;he++){var pe=Ze.scanForClosingTag(se,x,null,re);if(!pe||pe.tag!=de)return!1;x=pe.to}return!0}})},52730:function(Lt,Ot,ze){(function(Ze){Ze(ze(89780))})(function(Ze){"use strict";var yt=Ze.Pos;function y(he,pe){return he.line-pe.line||he.ch-pe.ch}var Se="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",ye=Se+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",E=new RegExp("<(/?)(["+Se+"]["+ye+"]*)","g");function z(he,pe,me,fe){this.line=pe,this.ch=me,this.cm=he,this.text=he.getLine(pe),this.min=fe?Math.max(fe.from,he.firstLine()):he.firstLine(),this.max=fe?Math.min(fe.to-1,he.lastLine()):he.lastLine()}function oe(he,pe){var me=he.cm.getTokenTypeAt(yt(he.line,pe));return me&&/\btag\b/.test(me)}function se(he){if(!(he.line>=he.max))return he.ch=0,he.text=he.cm.getLine(++he.line),!0}function ee(he){if(!(he.line<=he.min))return he.text=he.cm.getLine(--he.line),he.ch=he.text.length,!0}function de(he){for(;;){var pe=he.text.indexOf(">",he.ch);if(pe==-1){if(se(he))continue;return}if(!oe(he,pe+1)){he.ch=pe+1;continue}var me=he.text.lastIndexOf("/",pe),fe=me>-1&&!/\S/.test(he.text.slice(me+1,pe));return he.ch=pe+1,fe?"selfClose":"regular"}}function x(he){for(;;){var pe=he.ch?he.text.lastIndexOf("<",he.ch-1):-1;if(pe==-1){if(ee(he))continue;return}if(!oe(he,pe+1)){he.ch=pe;continue}E.lastIndex=pe,he.ch=pe;var me=E.exec(he.text);if(me&&me.index==pe)return me}}function te(he){for(;;){E.lastIndex=he.ch;var pe=E.exec(he.text);if(!pe){if(se(he))continue;return}if(!oe(he,pe.index+1)){he.ch=pe.index+1;continue}return he.ch=pe.index+pe[0].length,pe}}function re(he){for(;;){var pe=he.ch?he.text.lastIndexOf(">",he.ch-1):-1;if(pe==-1){if(ee(he))continue;return}if(!oe(he,pe+1)){he.ch=pe;continue}var me=he.text.lastIndexOf("/",pe),fe=me>-1&&!/\S/.test(he.text.slice(me+1,pe));return he.ch=pe+1,fe?"selfClose":"regular"}}function ae(he,pe){for(var me=[];;){var fe=te(he),ve,ke=he.line,Te=he.ch-(fe?fe[0].length:0);if(!fe||!(ve=de(he)))return;if(ve!="selfClose")if(fe[1]){for(var Pe=me.length-1;Pe>=0;--Pe)if(me[Pe]==fe[2]){me.length=Pe;break}if(Pe<0&&(!pe||pe==fe[2]))return{tag:fe[2],from:yt(ke,Te),to:yt(he.line,he.ch)}}else me.push(fe[2])}}function ue(he,pe){for(var me=[];;){var fe=re(he);if(!fe)return;if(fe=="selfClose"){x(he);continue}var ve=he.line,ke=he.ch,Te=x(he);if(!Te)return;if(Te[1])me.push(Te[2]);else{for(var Pe=me.length-1;Pe>=0;--Pe)if(me[Pe]==Te[2]){me.length=Pe;break}if(Pe<0&&(!pe||pe==Te[2]))return{tag:Te[2],from:yt(he.line,he.ch),to:yt(ve,ke)}}}}Ze.registerHelper("fold","xml",function(he,pe){for(var me=new z(he,pe.line,0);;){var fe=te(me);if(!fe||me.line!=pe.line)return;var ve=de(me);if(!ve)return;if(!fe[1]&&ve!="selfClose"){var ke=yt(me.line,me.ch),Te=ae(me,fe[2]);return Te&&y(Te.from,ke)>0?{from:ke,to:Te.from}:null}}}),Ze.findMatchingTag=function(he,pe,me){var fe=new z(he,pe.line,pe.ch,me);if(!(fe.text.indexOf(">")==-1&&fe.text.indexOf("<")==-1)){var ve=de(fe),ke=ve&&yt(fe.line,fe.ch),Te=ve&&x(fe);if(!(!ve||!Te||y(fe,pe)>0)){var Pe={from:yt(fe.line,fe.ch),to:ke,tag:Te[2]};return ve=="selfClose"?{open:Pe,close:null,at:"open"}:Te[1]?{open:ue(fe,Te[2]),close:Pe,at:"close"}:(fe=new z(he,ke.line,ke.ch,me),{open:Pe,close:ae(fe,Te[2]),at:"open"})}}},Ze.findEnclosingTag=function(he,pe,me,fe){for(var ve=new z(he,pe.line,pe.ch,me);;){var ke=ue(ve,fe);if(!ke)break;var Te=new z(he,pe.line,pe.ch,me),Pe=ae(Te,ke.tag);if(Pe)return{open:ke,close:Pe}}},Ze.scanForClosingTag=function(he,pe,me,fe){var ve=new z(he,pe.line,pe.ch,fe?{from:0,to:fe}:null);return ae(ve,me)}})},89780:function(Lt){(function(Ot,ze){Lt.exports=ze()})(this,function(){"use strict";var Ot=navigator.userAgent,ze=navigator.platform,Ze=/gecko\/\d/i.test(Ot),yt=/MSIE \d/.test(Ot),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ot),Se=/Edge\/(\d+)/.exec(Ot),ye=yt||y||Se,E=ye&&(yt?document.documentMode||6:+(Se||y)[1]),z=!Se&&/WebKit\//.test(Ot),oe=z&&/Qt\/\d+\.\d+/.test(Ot),se=!Se&&/Chrome\//.test(Ot),ee=/Opera\//.test(Ot),de=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ot),te=/PhantomJS/.test(Ot),re=!Se&&/AppleWebKit/.test(Ot)&&/Mobile\/\w+/.test(Ot),ae=/Android/.test(Ot),ue=re||ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ot),he=re||/Mac/.test(ze),pe=/\bCrOS\b/.test(Ot),me=/win/i.test(ze),fe=ee&&Ot.match(/Version\/(\d*\.\d*)/);fe&&(fe=Number(fe[1])),fe&&fe>=15&&(ee=!1,z=!0);var ve=he&&(oe||ee&&(fe==null||fe<12.11)),ke=Ze||ye&&E>=9;function Te(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Pe=function(a,b){var le=a.className,ie=Te(b).exec(le);if(ie){var ge=le.slice(ie.index+ie[0].length);a.className=le.slice(0,ie.index)+(ge?ie[1]+ge:"")}};function _e(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function be(a,b){return _e(a).appendChild(b)}function xe(a,b,le,ie){var ge=document.createElement(a);if(le&&(ge.className=le),ie&&(ge.style.cssText=ie),typeof b=="string")ge.appendChild(document.createTextNode(b));else if(b)for(var Le=0;Le<b.length;++Le)ge.appendChild(b[Le]);return ge}function Ae(a,b,le,ie){var ge=xe(a,b,le,ie);return ge.setAttribute("role","presentation"),ge}var Me;document.createRange?Me=function(a,b,le,ie){var ge=document.createRange();return ge.setEnd(ie||a,le),ge.setStart(a,b),ge}:Me=function(a,b,le){var ie=document.body.createTextRange();try{ie.moveToElementText(a.parentNode)}catch(ge){return ie}return ie.collapse(!0),ie.moveEnd("character",le),ie.moveStart("character",b),ie};function Be(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function Ce(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function De(a,b){var le=a.className;Te(b).test(le)||(a.className+=(le?" ":"")+b)}function He(a,b){for(var le=a.split(" "),ie=0;ie<le.length;ie++)le[ie]&&!Te(le[ie]).test(b)&&(b+=" "+le[ie]);return b}var Ke=function(a){a.select()};re?Ke=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ye&&(Ke=function(a){try{a.select()}catch(b){}});function Ye(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function it(a,b,le){b||(b={});for(var ie in a)a.hasOwnProperty(ie)&&(le!==!1||!b.hasOwnProperty(ie))&&(b[ie]=a[ie]);return b}function Re(a,b,le,ie,ge){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Le=ie||0,qe=ge||0;;){var ot=a.indexOf(" ",Le);if(ot<0||ot>=b)return qe+(b-Le);qe+=ot-Le,qe+=le-qe%le,Le=ot+1}}var We=function(){this.id=null,this.f=null,this.time=0,this.handler=Ye(this.onTimeout,this)};We.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},We.prototype.set=function(a,b){this.f=b;var le=+new Date+a;(!this.id||le<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=le)};function et(a,b){for(var le=0;le<a.length;++le)if(a[le]==b)return le;return-1}var nt=50,rt={toString:function(){return"CodeMirror.Pass"}},Xe={scroll:!1},Je={origin:"*mouse"},Ve={origin:"+move"};function at(a,b,le){for(var ie=0,ge=0;;){var Le=a.indexOf(" ",ie);Le==-1&&(Le=a.length);var qe=Le-ie;if(Le==a.length||ge+qe>=b)return ie+Math.min(qe,b-ge);if(ge+=Le-ie,ge+=le-ge%le,ie=Le+1,ge>=b)return ie}}var Qe=[""];function ut(a){for(;Qe.length<=a;)Qe.push(st(Qe)+" ");return Qe[a]}function st(a){return a[a.length-1]}function $e(a,b){for(var le=[],ie=0;ie<a.length;ie++)le[ie]=b(a[ie],ie);return le}function Ne(a,b,le){for(var ie=0,ge=le(b);ie<a.length&&le(a[ie])<=ge;)ie++;a.splice(ie,0,b)}function je(){}function ne(a,b){var le;return Object.create?le=Object.create(a):(je.prototype=a,le=new je),b&&it(b,le),le}var ce=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ie(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ce.test(a))}function Fe(a,b){return b?b.source.indexOf("\\w")>-1&&Ie(a)?!0:b.test(a):Ie(a)}function we(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var Ee=/[\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 Oe(a){return a.charCodeAt(0)>=768&&Ee.test(a)}function Ue(a,b,le){for(;(le<0?b>0:b<a.length)&&Oe(a.charAt(b));)b+=le;return b}function tt(a,b,le){for(var ie=b>le?-1:1;;){if(b==le)return b;var ge=(b+le)/2,Le=ie<0?Math.ceil(ge):Math.floor(ge);if(Le==b)return a(Le)?b:le;a(Le)?le=Le:b=Le+ie}}function Ge(a,b,le,ie){if(!a)return ie(b,le,"ltr",0);for(var ge=!1,Le=0;Le<a.length;++Le){var qe=a[Le];(qe.from<le&&qe.to>b||b==le&&qe.to==b)&&(ie(Math.max(qe.from,b),Math.min(qe.to,le),qe.level==1?"rtl":"ltr",Le),ge=!0)}ge||ie(b,le,"ltr")}var ft=null;function ct(a,b,le){var ie;ft=null;for(var ge=0;ge<a.length;++ge){var Le=a[ge];if(Le.from<b&&Le.to>b)return ge;Le.to==b&&(Le.from!=Le.to&&le=="before"?ie=ge:ft=ge),Le.from==b&&(Le.from!=Le.to&&le!="before"?ie=ge:ft=ge)}return ie!=null?ie:ft}var vt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function le(ht){return ht<=247?a.charAt(ht):1424<=ht&&ht<=1524?"R":1536<=ht&&ht<=1785?b.charAt(ht-1536):1774<=ht&&ht<=2220?"r":8192<=ht&&ht<=8203?"w":ht==8204?"b":"L"}var ie=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ge=/[stwN]/,Le=/[LRr]/,qe=/[Lb1n]/,ot=/[1n]/;function lt(ht,St,_t){this.level=ht,this.from=St,this.to=_t}return function(ht,St){var _t=St=="ltr"?"L":"R";if(ht.length==0||St=="ltr"&&!ie.test(ht))return!1;for(var Ft=ht.length,Nt=[],nr=0;nr<Ft;++nr)Nt.push(le(ht.charCodeAt(nr)));for(var mr=0,jr=_t;mr<Ft;++mr){var Nr=Nt[mr];Nr=="m"?Nt[mr]=jr:jr=Nr}for(var Hr=0,Lr=_t;Hr<Ft;++Hr){var Zr=Nt[Hr];Zr=="1"&&Lr=="r"?Nt[Hr]="n":Le.test(Zr)&&(Lr=Zr,Zr=="r"&&(Nt[Hr]="R"))}for(var rn=1,Jr=Nt[0];rn<Ft-1;++rn){var vn=Nt[rn];vn=="+"&&Jr=="1"&&Nt[rn+1]=="1"?Nt[rn]="1":vn==","&&Jr==Nt[rn+1]&&(Jr=="1"||Jr=="n")&&(Nt[rn]=Jr),Jr=vn}for(var Wn=0;Wn<Ft;++Wn){var oi=Nt[Wn];if(oi==",")Nt[Wn]="N";else if(oi=="%"){var zn=void 0;for(zn=Wn+1;zn<Ft&&Nt[zn]=="%";++zn);for(var ji=Wn&&Nt[Wn-1]=="!"||zn<Ft&&Nt[zn]=="1"?"1":"N",Ci=Wn;Ci<zn;++Ci)Nt[Ci]=ji;Wn=zn-1}}for(var qn=0,ki=_t;qn<Ft;++qn){var fi=Nt[qn];ki=="L"&&fi=="1"?Nt[qn]="L":Le.test(fi)&&(ki=fi)}for(var ni=0;ni<Ft;++ni)if(ge.test(Nt[ni])){var ei=void 0;for(ei=ni+1;ei<Ft&&ge.test(Nt[ei]);++ei);for(var Vn=(ni?Nt[ni-1]:_t)=="L",Ai=(ei<Ft?Nt[ei]:_t)=="L",Za=Vn==Ai?Vn?"L":"R":_t,ga=ni;ga<ei;++ga)Nt[ga]=Za;ni=ei-1}for(var pi=[],$i,si=0;si<Ft;)if(qe.test(Nt[si])){var bs=si;for(++si;si<Ft&&qe.test(Nt[si]);++si);pi.push(new lt(0,bs,si))}else{var aa=si,Aa=pi.length,Ta=St=="rtl"?1:0;for(++si;si<Ft&&Nt[si]!="L";++si);for(var yi=aa;yi<si;)if(ot.test(Nt[yi])){aa<yi&&(pi.splice(Aa,0,new lt(1,aa,yi)),Aa+=Ta);var za=yi;for(++yi;yi<si&&ot.test(Nt[yi]);++yi);pi.splice(Aa,0,new lt(2,za,yi)),Aa+=Ta,aa=yi}else++yi;aa<si&&pi.splice(Aa,0,new lt(1,aa,si))}return St=="ltr"&&(pi[0].level==1&&($i=ht.match(/^\s+/))&&(pi[0].from=$i[0].length,pi.unshift(new lt(0,0,$i[0].length))),st(pi).level==1&&($i=ht.match(/\s+$/))&&(st(pi).to-=$i[0].length,pi.push(new lt(0,Ft-$i[0].length,Ft)))),St=="rtl"?pi.reverse():pi}}();function kt(a,b){var le=a.order;return le==null&&(le=a.order=vt(a.text,b)),le}var xt=[],Et=function(a,b,le){if(a.addEventListener)a.addEventListener(b,le,!1);else if(a.attachEvent)a.attachEvent("on"+b,le);else{var ie=a._handlers||(a._handlers={});ie[b]=(ie[b]||xt).concat(le)}};function gt(a,b){return a._handlers&&a._handlers[b]||xt}function pt(a,b,le){if(a.removeEventListener)a.removeEventListener(b,le,!1);else if(a.detachEvent)a.detachEvent("on"+b,le);else{var ie=a._handlers,ge=ie&&ie[b];if(ge){var Le=et(ge,le);Le>-1&&(ie[b]=ge.slice(0,Le).concat(ge.slice(Le+1)))}}}function mt(a,b){var le=gt(a,b);if(le.length)for(var ie=Array.prototype.slice.call(arguments,2),ge=0;ge<le.length;++ge)le[ge].apply(null,ie)}function dt(a,b,le){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),mt(a,le||b.type,a,b),Wt(b)||b.codemirrorIgnore}function bt(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var le=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),ie=0;ie<b.length;++ie)et(le,b[ie])==-1&&le.push(b[ie])}function wt(a,b){return gt(a,b).length>0}function At(a){a.prototype.on=function(b,le){Et(this,b,le)},a.prototype.off=function(b,le){pt(this,b,le)}}function jt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Zt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Wt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function $t(a){jt(a),Zt(a)}function Er(a){return a.target||a.srcElement}function vr(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),he&&a.ctrlKey&&b==1&&(b=3),b}var Ht=function(){if(ye&&E<9)return!1;var a=xe("div");return"draggable"in a||"dragDrop"in a}(),er;function or(a){if(er==null){var b=xe("span","\u200B");be(a,xe("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(er=b.offsetWidth<=1&&b.offsetHeight>2&&!(ye&&E<8))}var le=er?xe("span","\u200B"):xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return le.setAttribute("cm-text",""),le}var hr;function Qt(a){if(hr!=null)return hr;var b=be(a,document.createTextNode("A\u062EA")),le=Me(b,0,1).getBoundingClientRect(),ie=Me(b,1,2).getBoundingClientRect();return _e(a),!le||le.left==le.right?!1:hr=ie.right-le.right<3}var sr=`
b`.split(/\n/).length!=3?function(a){for(var b=0,le=[],ie=a.length;b<=ie;){var ge=a.indexOf(`
`,b);ge==-1&&(ge=a.length);var Le=a.slice(b,a.charAt(ge-1)=="\r"?ge-1:ge),qe=Le.indexOf("\r");qe!=-1?(le.push(Le.slice(0,qe)),b+=qe+1):(le.push(Le),b=ge+1)}return le}:function(a){return a.split(/\r\n?|\n/)},Ir=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(le){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Jt=function(){var a=xe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Kt=null;function It(a){if(Kt!=null)return Kt;var b=be(a,xe("span","x")),le=b.getBoundingClientRect(),ie=Me(b,0,1).getBoundingClientRect();return Kt=Math.abs(le.left-ie.left)>1}var Rt={},Bt={};function Vt(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),Rt[a]=b}function lr(a,b){Bt[a]=b}function wr(a){if(typeof a=="string"&&Bt.hasOwnProperty(a))a=Bt[a];else if(a&&typeof a.name=="string"&&Bt.hasOwnProperty(a.name)){var b=Bt[a.name];typeof b=="string"&&(b={name:b}),a=ne(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return wr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return wr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Ut(a,b){b=wr(b);var le=Rt[b.name];if(!le)return Ut(a,"text/plain");var ie=le(a,b);if(Or.hasOwnProperty(b.name)){var ge=Or[b.name];for(var Le in ge)ge.hasOwnProperty(Le)&&(ie.hasOwnProperty(Le)&&(ie["_"+Le]=ie[Le]),ie[Le]=ge[Le])}if(ie.name=b.name,b.helperType&&(ie.helperType=b.helperType),b.modeProps)for(var qe in b.modeProps)ie[qe]=b.modeProps[qe];return ie}var Or={};function _r(a,b){var le=Or.hasOwnProperty(a)?Or[a]:Or[a]={};it(b,le)}function Pr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var le={};for(var ie in b){var ge=b[ie];ge instanceof Array&&(ge=ge.concat([])),le[ie]=ge}return le}function Dr(a,b){for(var le;a.innerMode&&(le=a.innerMode(b),!(!le||le.mode==a));)b=le.state,a=le.mode;return le||{mode:a,state:b}}function yr(a,b,le){return a.startState?a.startState(b,le):!0}var qt=function(a,b,le){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=le};qt.prototype.eol=function(){return this.pos>=this.string.length},qt.prototype.sol=function(){return this.pos==this.lineStart},qt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qt.prototype.eat=function(a){var b=this.string.charAt(this.pos),le;if(typeof a=="string"?le=b==a:le=b&&(a.test?a.test(b):a(b)),le)return++this.pos,b},qt.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},qt.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},qt.prototype.skipToEnd=function(){this.pos=this.string.length},qt.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},qt.prototype.backUp=function(a){this.pos-=a},qt.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)},qt.prototype.indentation=function(){return Re(this.string,null,this.tabSize)-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},qt.prototype.match=function(a,b,le){if(typeof a=="string"){var ie=function(qe){return le?qe.toLowerCase():qe},ge=this.string.substr(this.pos,a.length);if(ie(ge)==ie(a))return b!==!1&&(this.pos+=a.length),!0}else{var Le=this.string.slice(this.pos).match(a);return Le&&Le.index>0?null:(Le&&b!==!1&&(this.pos+=Le[0].length),Le)}},qt.prototype.current=function(){return this.string.slice(this.start,this.pos)},qt.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},qt.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},qt.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Mt(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var le=a;!le.lines;)for(var ie=0;;++ie){var ge=le.children[ie],Le=ge.chunkSize();if(b<Le){le=ge;break}b-=Le}return le.lines[b]}function cr(a,b,le){var ie=[],ge=b.line;return a.iter(b.line,le.line+1,function(Le){var qe=Le.text;ge==le.line&&(qe=qe.slice(0,le.ch)),ge==b.line&&(qe=qe.slice(b.ch)),ie.push(qe),++ge}),ie}function Ar(a,b,le){var ie=[];return a.iter(b,le,function(ge){ie.push(ge.text)}),ie}function Br(a,b){var le=b-a.height;if(le)for(var ie=a;ie;ie=ie.parent)ie.height+=le}function Ct(a){if(a.parent==null)return null;for(var b=a.parent,le=et(b.lines,a),ie=b.parent;ie;b=ie,ie=ie.parent)for(var ge=0;ie.children[ge]!=b;++ge)le+=ie.children[ge].chunkSize();return le+b.first}function Tt(a,b){var le=a.first;e:do{for(var ie=0;ie<a.children.length;++ie){var ge=a.children[ie],Le=ge.height;if(b<Le){a=ge;continue e}b-=Le,le+=ge.chunkSize()}return le}while(!a.lines);for(var qe=0;qe<a.lines.length;++qe){var ot=a.lines[qe],lt=ot.height;if(b<lt)break;b-=lt}return le+qe}function ar(a,b){return b>=a.first&&b<a.first+a.size}function Xt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Dt(a,b,le){if(le===void 0&&(le=null),!(this instanceof Dt))return new Dt(a,b,le);this.line=a,this.ch=b,this.sticky=le}function Yt(a,b){return a.line-b.line||a.ch-b.ch}function rr(a,b){return a.sticky==b.sticky&&Yt(a,b)==0}function gr(a){return Dt(a.line,a.ch)}function Mr(a,b){return Yt(a,b)<0?b:a}function Pt(a,b){return Yt(a,b)<0?a:b}function br(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function Gt(a,b){if(b.line<a.first)return Dt(a.first,0);var le=a.first+a.size-1;return b.line>le?Dt(le,Mt(a,le).text.length):Sr(b,Mt(a,b.line).text.length)}function Sr(a,b){var le=a.ch;return le==null||le>b?Dt(a.line,b):le<0?Dt(a.line,0):a}function ir(a,b){for(var le=[],ie=0;ie<b.length;ie++)le[ie]=Gt(a,b[ie]);return le}var ur=function(a,b){this.state=a,this.lookAhead=b},xr=function(a,b,le,ie){this.state=b,this.doc=a,this.line=le,this.maxLookAhead=ie||0,this.baseTokens=null,this.baseTokenPos=1};xr.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},xr.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},xr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xr.fromSaved=function(a,b,le){return b instanceof ur?new xr(a,Pr(a.mode,b.state),le,b.lookAhead):new xr(a,Pr(a.mode,b),le)},xr.prototype.save=function(a){var b=a!==!1?Pr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ur(b,this.maxLookAhead):b};function Fr(a,b,le,ie){var ge=[a.state.modeGen],Le={};xn(a,b.text,a.doc.mode,le,function(ht,St){return ge.push(ht,St)},Le,ie);for(var qe=le.state,ot=function(ht){le.baseTokens=ge;var St=a.state.overlays[ht],_t=1,Ft=0;le.state=!0,xn(a,b.text,St.mode,le,function(Nt,nr){for(var mr=_t;Ft<Nt;){var jr=ge[_t];jr>Nt&&ge.splice(_t,1,Nt,ge[_t+1],jr),_t+=2,Ft=Math.min(Nt,jr)}if(nr)if(St.opaque)ge.splice(mr,_t-mr,Nt,"overlay "+nr),_t=mr+2;else for(;mr<_t;mr+=2){var Nr=ge[mr+1];ge[mr+1]=(Nr?Nr+" ":"")+"overlay "+nr}},Le),le.state=qe,le.baseTokens=null,le.baseTokenPos=1},lt=0;lt<a.state.overlays.length;++lt)ot(lt);return{styles:ge,classes:Le.bgClass||Le.textClass?Le:null}}function Ur(a,b,le){if(!b.styles||b.styles[0]!=a.state.modeGen){var ie=en(a,Ct(b)),ge=b.text.length>a.options.maxHighlightLength&&Pr(a.doc.mode,ie.state),Le=Fr(a,b,ie);ge&&(ie.state=ge),b.stateAfter=ie.save(!ge),b.styles=Le.styles,Le.classes?b.styleClasses=Le.classes:b.styleClasses&&(b.styleClasses=null),le===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function en(a,b,le){var ie=a.doc,ge=a.display;if(!ie.mode.startState)return new xr(ie,!0,b);var Le=_n(a,b,le),qe=Le>ie.first&&Mt(ie,Le-1).stateAfter,ot=qe?xr.fromSaved(ie,qe,Le):new xr(ie,yr(ie.mode),Le);return ie.iter(Le,b,function(lt){un(a,lt.text,ot);var ht=ot.line;lt.stateAfter=ht==b-1||ht%5==0||ht>=ge.viewFrom&&ht<ge.viewTo?ot.save():null,ot.nextLine()}),le&&(ie.modeFrontier=ot.line),ot}function un(a,b,le,ie){var ge=a.doc.mode,Le=new qt(b,a.options.tabSize,le);for(Le.start=Le.pos=ie||0,b==""&&ln(ge,le.state);!Le.eol();)gn(ge,Le,le.state),Le.start=Le.pos}function ln(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var le=Dr(a,b);if(le.mode.blankLine)return le.mode.blankLine(le.state)}}function gn(a,b,le,ie){for(var ge=0;ge<10;ge++){ie&&(ie[0]=Dr(a,le).mode);var Le=a.token(b,le);if(b.pos>b.start)return Le}throw new Error("Mode "+a.name+" failed to advance stream.")}var nn=function(a,b,le){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=le};function Tn(a,b,le,ie){var ge=a.doc,Le=ge.mode,qe;b=Gt(ge,b);var ot=Mt(ge,b.line),lt=en(a,b.line,le),ht=new qt(ot.text,a.options.tabSize,lt),St;for(ie&&(St=[]);(ie||ht.pos<b.ch)&&!ht.eol();)ht.start=ht.pos,qe=gn(Le,ht,lt.state),ie&&St.push(new nn(ht,qe,Pr(ge.mode,lt.state)));return ie?St:new nn(ht,qe,lt.state)}function Mn(a,b){if(a)for(;;){var le=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!le)break;a=a.slice(0,le.index)+a.slice(le.index+le[0].length);var ie=le[1]?"bgClass":"textClass";b[ie]==null?b[ie]=le[2]:new RegExp("(?:^|\\s)"+le[2]+"(?:$|\\s)").test(b[ie])||(b[ie]+=" "+le[2])}return a}function xn(a,b,le,ie,ge,Le,qe){var ot=le.flattenSpans;ot==null&&(ot=a.options.flattenSpans);var lt=0,ht=null,St=new qt(b,a.options.tabSize,ie),_t,Ft=a.options.addModeClass&&[null];for(b==""&&Mn(ln(le,ie.state),Le);!St.eol();){if(St.pos>a.options.maxHighlightLength?(ot=!1,qe&&un(a,b,ie,St.pos),St.pos=b.length,_t=null):_t=Mn(gn(le,St,ie.state,Ft),Le),Ft){var Nt=Ft[0].name;Nt&&(_t="m-"+(_t?Nt+" "+_t:Nt))}if(!ot||ht!=_t){for(;lt<St.start;)lt=Math.min(St.start,lt+5e3),ge(lt,ht);ht=_t}St.start=St.pos}for(;lt<St.pos;){var nr=Math.min(St.pos,lt+5e3);ge(nr,ht),lt=nr}}function _n(a,b,le){for(var ie,ge,Le=a.doc,qe=le?-1:b-(a.doc.mode.innerMode?1e3:100),ot=b;ot>qe;--ot){if(ot<=Le.first)return Le.first;var lt=Mt(Le,ot-1),ht=lt.stateAfter;if(ht&&(!le||ot+(ht instanceof ur?ht.lookAhead:0)<=Le.modeFrontier))return ot;var St=Re(lt.text,null,a.options.tabSize);(ge==null||ie>St)&&(ge=ot-1,ie=St)}return ge}function Dn(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var le=a.first,ie=b-1;ie>le;ie--){var ge=Mt(a,ie).stateAfter;if(ge&&(!(ge instanceof ur)||ie+ge.lookAhead<b)){le=ie+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,le)}}var En=!1,cn=!1;function On(){En=!0}function dr(){cn=!0}function Rr(a,b,le){this.marker=a,this.from=b,this.to=le}function zr(a,b){if(a)for(var le=0;le<a.length;++le){var ie=a[le];if(ie.marker==b)return ie}}function Kr(a,b){for(var le,ie=0;ie<a.length;++ie)a[ie]!=b&&(le||(le=[])).push(a[ie]);return le}function Vr(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Wr(a,b,le){var ie;if(a)for(var ge=0;ge<a.length;++ge){var Le=a[ge],qe=Le.marker,ot=Le.from==null||(qe.inclusiveLeft?Le.from<=b:Le.from<b);if(ot||Le.from==b&&qe.type=="bookmark"&&(!le||!Le.marker.insertLeft)){var lt=Le.to==null||(qe.inclusiveRight?Le.to>=b:Le.to>b);(ie||(ie=[])).push(new Rr(qe,Le.from,lt?null:Le.to))}}return ie}function Tr(a,b,le){var ie;if(a)for(var ge=0;ge<a.length;++ge){var Le=a[ge],qe=Le.marker,ot=Le.to==null||(qe.inclusiveRight?Le.to>=b:Le.to>b);if(ot||Le.from==b&&qe.type=="bookmark"&&(!le||Le.marker.insertLeft)){var lt=Le.from==null||(qe.inclusiveLeft?Le.from<=b:Le.from<b);(ie||(ie=[])).push(new Rr(qe,lt?null:Le.from-b,Le.to==null?null:Le.to-b))}}return ie}function Qr(a,b){if(b.full)return null;var le=ar(a,b.from.line)&&Mt(a,b.from.line).markedSpans,ie=ar(a,b.to.line)&&Mt(a,b.to.line).markedSpans;if(!le&&!ie)return null;var ge=b.from.ch,Le=b.to.ch,qe=Yt(b.from,b.to)==0,ot=Wr(le,ge,qe),lt=Tr(ie,Le,qe),ht=b.text.length==1,St=st(b.text).length+(ht?ge:0);if(ot)for(var _t=0;_t<ot.length;++_t){var Ft=ot[_t];if(Ft.to==null){var Nt=zr(lt,Ft.marker);Nt?ht&&(Ft.to=Nt.to==null?null:Nt.to+St):Ft.to=ge}}if(lt)for(var nr=0;nr<lt.length;++nr){var mr=lt[nr];if(mr.to!=null&&(mr.to+=St),mr.from==null){var jr=zr(ot,mr.marker);jr||(mr.from=St,ht&&(ot||(ot=[])).push(mr))}else mr.from+=St,ht&&(ot||(ot=[])).push(mr)}ot&&(ot=yn(ot)),lt&&lt!=ot&&(lt=yn(lt));var Nr=[ot];if(!ht){var Hr=b.text.length-2,Lr;if(Hr>0&&ot)for(var Zr=0;Zr<ot.length;++Zr)ot[Zr].to==null&&(Lr||(Lr=[])).push(new Rr(ot[Zr].marker,null,null));for(var rn=0;rn<Hr;++rn)Nr.push(Lr);Nr.push(lt)}return Nr}function yn(a){for(var b=0;b<a.length;++b){var le=a[b];le.from!=null&&le.from==le.to&&le.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Sn(a,b,le){var ie=null;if(a.iter(b.line,le.line+1,function(Nt){if(Nt.markedSpans)for(var nr=0;nr<Nt.markedSpans.length;++nr){var mr=Nt.markedSpans[nr].marker;mr.readOnly&&(!ie||et(ie,mr)==-1)&&(ie||(ie=[])).push(mr)}}),!ie)return null;for(var ge=[{from:b,to:le}],Le=0;Le<ie.length;++Le)for(var qe=ie[Le],ot=qe.find(0),lt=0;lt<ge.length;++lt){var ht=ge[lt];if(!(Yt(ht.to,ot.from)<0||Yt(ht.from,ot.to)>0)){var St=[lt,1],_t=Yt(ht.from,ot.from),Ft=Yt(ht.to,ot.to);(_t<0||!qe.inclusiveLeft&&!_t)&&St.push({from:ht.from,to:ot.from}),(Ft>0||!qe.inclusiveRight&&!Ft)&&St.push({from:ot.to,to:ht.to}),ge.splice.apply(ge,St),lt+=St.length-3}}return ge}function $r(a){var b=a.markedSpans;if(b){for(var le=0;le<b.length;++le)b[le].marker.detachLine(a);a.markedSpans=null}}function Cn(a,b){if(b){for(var le=0;le<b.length;++le)b[le].marker.attachLine(a);a.markedSpans=b}}function pn(a){return a.inclusiveLeft?-1:0}function bn(a){return a.inclusiveRight?1:0}function Yr(a,b){var le=a.lines.length-b.lines.length;if(le!=0)return le;var ie=a.find(),ge=b.find(),Le=Yt(ie.from,ge.from)||pn(a)-pn(b);if(Le)return-Le;var qe=Yt(ie.to,ge.to)||bn(a)-bn(b);return qe||b.id-a.id}function wn(a,b){var le=cn&&a.markedSpans,ie;if(le)for(var ge=void 0,Le=0;Le<le.length;++Le)ge=le[Le],ge.marker.collapsed&&(b?ge.from:ge.to)==null&&(!ie||Yr(ie,ge.marker)<0)&&(ie=ge.marker);return ie}function tn(a){return wn(a,!0)}function fr(a){return wn(a,!1)}function Cr(a,b){var le=cn&&a.markedSpans,ie;if(le)for(var ge=0;ge<le.length;++ge){var Le=le[ge];Le.marker.collapsed&&(Le.from==null||Le.from<b)&&(Le.to==null||Le.to>b)&&(!ie||Yr(ie,Le.marker)<0)&&(ie=Le.marker)}return ie}function tr(a,b,le,ie,ge){var Le=Mt(a,b),qe=cn&&Le.markedSpans;if(qe)for(var ot=0;ot<qe.length;++ot){var lt=qe[ot];if(lt.marker.collapsed){var ht=lt.marker.find(0),St=Yt(ht.from,le)||pn(lt.marker)-pn(ge),_t=Yt(ht.to,ie)||bn(lt.marker)-bn(ge);if(!(St>=0&&_t<=0||St<=0&&_t>=0)&&(St<=0&&(lt.marker.inclusiveRight&&ge.inclusiveLeft?Yt(ht.to,le)>=0:Yt(ht.to,le)>0)||St>=0&&(lt.marker.inclusiveRight&&ge.inclusiveLeft?Yt(ht.from,ie)<=0:Yt(ht.from,ie)<0)))return!0}}}function zt(a){for(var b;b=tn(a);)a=b.find(-1,!0).line;return a}function pr(a){for(var b;b=fr(a);)a=b.find(1,!0).line;return a}function kr(a){for(var b,le;b=fr(a);)a=b.find(1,!0).line,(le||(le=[])).push(a);return le}function Gr(a,b){var le=Mt(a,b),ie=zt(le);return le==ie?b:Ct(ie)}function Xr(a,b){if(b>a.lastLine())return b;var le=Mt(a,b),ie;if(!dn(a,le))return b;for(;ie=fr(le);)le=ie.find(1,!0).line;return Ct(le)+1}function dn(a,b){var le=cn&&b.markedSpans;if(le){for(var ie=void 0,ge=0;ge<le.length;++ge)if(ie=le[ge],!!ie.marker.collapsed){if(ie.from==null)return!0;if(!ie.marker.widgetNode&&ie.from==0&&ie.marker.inclusiveLeft&&mn(a,b,ie))return!0}}}function mn(a,b,le){if(le.to==null){var ie=le.marker.find(1,!0);return mn(a,ie.line,zr(ie.line.markedSpans,le.marker))}if(le.marker.inclusiveRight&&le.to==b.text.length)return!0;for(var ge=void 0,Le=0;Le<b.markedSpans.length;++Le)if(ge=b.markedSpans[Le],ge.marker.collapsed&&!ge.marker.widgetNode&&ge.from==le.to&&(ge.to==null||ge.to!=le.from)&&(ge.marker.inclusiveLeft||le.marker.inclusiveRight)&&mn(a,b,ge))return!0}function on(a){a=zt(a);for(var b=0,le=a.parent,ie=0;ie<le.lines.length;++ie){var ge=le.lines[ie];if(ge==a)break;b+=ge.height}for(var Le=le.parent;Le;le=Le,Le=le.parent)for(var qe=0;qe<Le.children.length;++qe){var ot=Le.children[qe];if(ot==le)break;b+=ot.height}return b}function jn(a){if(a.height==0)return 0;for(var b=a.text.length,le,ie=a;le=tn(ie);){var ge=le.find(0,!0);ie=ge.from.line,b+=ge.from.ch-ge.to.ch}for(ie=a;le=fr(ie);){var Le=le.find(0,!0);b-=ie.text.length-Le.from.ch,ie=Le.to.line,b+=ie.text.length-Le.to.ch}return b}function kn(a){var b=a.display,le=a.doc;b.maxLine=Mt(le,le.first),b.maxLineLength=jn(b.maxLine),b.maxLineChanged=!0,le.iter(function(ie){var ge=jn(ie);ge>b.maxLineLength&&(b.maxLineLength=ge,b.maxLine=ie)})}var Bn=function(a,b,le){this.text=a,Cn(this,b),this.height=le?le(this):1};Bn.prototype.lineNo=function(){return Ct(this)},At(Bn);function Xn(a,b,le,ie){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),$r(a),Cn(a,le);var ge=ie?ie(a):1;ge!=a.height&&Br(a,ge)}function Gn(a){a.parent=null,$r(a)}var Hn={},ti={};function Un(a,b){if(!a||/^\s*$/.test(a))return null;var le=b.addModeClass?ti:Hn;return le[a]||(le[a]=a.replace(/\S+/g,"cm-$&"))}function li(a,b){var le=Ae("span",null,null,z?"padding-right: .1px":null),ie={pre:Ae("pre",[le],"CodeMirror-line"),content:le,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ge=0;ge<=(b.rest?b.rest.length:0);ge++){var Le=ge?b.rest[ge-1]:b.line,qe=void 0;ie.pos=0,ie.addToken=In,Qt(a.display.measure)&&(qe=kt(Le,a.doc.direction))&&(ie.addToken=mi(ie.addToken,qe)),ie.map=[];var ot=b!=a.display.externalMeasured&&Ct(Le);wi(Le,ie,Ur(a,Le,ot)),Le.styleClasses&&(Le.styleClasses.bgClass&&(ie.bgClass=He(Le.styleClasses.bgClass,ie.bgClass||"")),Le.styleClasses.textClass&&(ie.textClass=He(Le.styleClasses.textClass,ie.textClass||""))),ie.map.length==0&&ie.map.push(0,0,ie.content.appendChild(or(a.display.measure))),ge==0?(b.measure.map=ie.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(ie.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(z){var lt=ie.content.lastChild;(/\bcm-tab\b/.test(lt.className)||lt.querySelector&&lt.querySelector(".cm-tab"))&&(ie.content.className="cm-tab-wrap-hack")}return mt(a,"renderLine",a,b.line,ie.pre),ie.pre.className&&(ie.textClass=He(ie.pre.className,ie.textClass||"")),ie}function Li(a){var b=xe("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function In(a,b,le,ie,ge,Le,qe){if(b){var ot=a.splitSpaces?bi(b,a.trailingSpace):b,lt=a.cm.state.specialChars,ht=!1,St;if(!lt.test(b))a.col+=b.length,St=document.createTextNode(ot),a.map.push(a.pos,a.pos+b.length,St),ye&&E<9&&(ht=!0),a.pos+=b.length;else{St=document.createDocumentFragment();for(var _t=0;;){lt.lastIndex=_t;var Ft=lt.exec(b),Nt=Ft?Ft.index-_t:b.length-_t;if(Nt){var nr=document.createTextNode(ot.slice(_t,_t+Nt));ye&&E<9?St.appendChild(xe("span",[nr])):St.appendChild(nr),a.map.push(a.pos,a.pos+Nt,nr),a.col+=Nt,a.pos+=Nt}if(!Ft)break;_t+=Nt+1;var mr=void 0;if(Ft[0]==" "){var jr=a.cm.options.tabSize,Nr=jr-a.col%jr;mr=St.appendChild(xe("span",ut(Nr),"cm-tab")),mr.setAttribute("role","presentation"),mr.setAttribute("cm-text"," "),a.col+=Nr}else Ft[0]=="\r"||Ft[0]==`
`?(mr=St.appendChild(xe("span",Ft[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),mr.setAttribute("cm-text",Ft[0]),a.col+=1):(mr=a.cm.options.specialCharPlaceholder(Ft[0]),mr.setAttribute("cm-text",Ft[0]),ye&&E<9?St.appendChild(xe("span",[mr])):St.appendChild(mr),a.col+=1);a.map.push(a.pos,a.pos+1,mr),a.pos++}}if(a.trailingSpace=ot.charCodeAt(b.length-1)==32,le||ie||ge||ht||Le||qe){var Hr=le||"";ie&&(Hr+=ie),ge&&(Hr+=ge);var Lr=xe("span",[St],Hr,Le);if(qe)for(var Zr in qe)qe.hasOwnProperty(Zr)&&Zr!="style"&&Zr!="class"&&Lr.setAttribute(Zr,qe[Zr]);return a.content.appendChild(Lr)}a.content.appendChild(St)}}function bi(a,b){if(a.length>1&&!/ /.test(a))return a;for(var le=b,ie="",ge=0;ge<a.length;ge++){var Le=a.charAt(ge);Le==" "&&le&&(ge==a.length-1||a.charCodeAt(ge+1)==32)&&(Le="\xA0"),ie+=Le,le=Le==" "}return ie}function mi(a,b){return function(le,ie,ge,Le,qe,ot,lt){ge=ge?ge+" cm-force-border":"cm-force-border";for(var ht=le.pos,St=ht+ie.length;;){for(var _t=void 0,Ft=0;Ft<b.length&&(_t=b[Ft],!(_t.to>ht&&_t.from<=ht));Ft++);if(_t.to>=St)return a(le,ie,ge,Le,qe,ot,lt);a(le,ie.slice(0,_t.to-ht),ge,Le,null,ot,lt),Le=null,ie=ie.slice(_t.to-ht),ht=_t.to}}}function Fi(a,b,le,ie){var ge=!ie&&le.widgetNode;ge&&a.map.push(a.pos,a.pos+b,ge),!ie&&a.cm.display.input.needsContentAttribute&&(ge||(ge=a.content.appendChild(document.createElement("span"))),ge.setAttribute("cm-marker",le.id)),ge&&(a.cm.display.input.setUneditable(ge),a.content.appendChild(ge)),a.pos+=b,a.trailingSpace=!1}function wi(a,b,le){var ie=a.markedSpans,ge=a.text,Le=0;if(!ie){for(var qe=1;qe<le.length;qe+=2)b.addToken(b,ge.slice(Le,Le=le[qe]),Un(le[qe+1],b.cm.options));return}for(var ot=ge.length,lt=0,ht=1,St="",_t,Ft,Nt=0,nr,mr,jr,Nr,Hr;;){if(Nt==lt){nr=mr=jr=Ft="",Hr=null,Nr=null,Nt=1/0;for(var Lr=[],Zr=void 0,rn=0;rn<ie.length;++rn){var Jr=ie[rn],vn=Jr.marker;if(vn.type=="bookmark"&&Jr.from==lt&&vn.widgetNode)Lr.push(vn);else if(Jr.from<=lt&&(Jr.to==null||Jr.to>lt||vn.collapsed&&Jr.to==lt&&Jr.from==lt)){if(Jr.to!=null&&Jr.to!=lt&&Nt>Jr.to&&(Nt=Jr.to,mr=""),vn.className&&(nr+=" "+vn.className),vn.css&&(Ft=(Ft?Ft+";":"")+vn.css),vn.startStyle&&Jr.from==lt&&(jr+=" "+vn.startStyle),vn.endStyle&&Jr.to==Nt&&(Zr||(Zr=[])).push(vn.endStyle,Jr.to),vn.title&&((Hr||(Hr={})).title=vn.title),vn.attributes)for(var Wn in vn.attributes)(Hr||(Hr={}))[Wn]=vn.attributes[Wn];vn.collapsed&&(!Nr||Yr(Nr.marker,vn)<0)&&(Nr=Jr)}else Jr.from>lt&&Nt>Jr.from&&(Nt=Jr.from)}if(Zr)for(var oi=0;oi<Zr.length;oi+=2)Zr[oi+1]==Nt&&(mr+=" "+Zr[oi]);if(!Nr||Nr.from==lt)for(var zn=0;zn<Lr.length;++zn)Fi(b,0,Lr[zn]);if(Nr&&(Nr.from||0)==lt){if(Fi(b,(Nr.to==null?ot+1:Nr.to)-lt,Nr.marker,Nr.from==null),Nr.to==null)return;Nr.to==lt&&(Nr=!1)}}if(lt>=ot)break;for(var ji=Math.min(ot,Nt);;){if(St){var Ci=lt+St.length;if(!Nr){var qn=Ci>ji?St.slice(0,ji-lt):St;b.addToken(b,qn,_t?_t+nr:nr,jr,lt+qn.length==Nt?mr:"",Ft,Hr)}if(Ci>=ji){St=St.slice(ji-lt),lt=ji;break}lt=Ci,jr=""}St=ge.slice(Le,Le=le[ht++]),_t=Un(le[ht++],b.cm.options)}}}function Wi(a,b,le){this.line=b,this.rest=kr(b),this.size=this.rest?Ct(st(this.rest))-le+1:1,this.node=this.text=null,this.hidden=dn(a,b)}function Ln(a,b,le){for(var ie=[],ge,Le=b;Le<le;Le=ge){var qe=new Wi(a.doc,Mt(a.doc,Le),Le);ge=Le+qe.size,ie.push(qe)}return ie}var Pi=null;function qi(a){Pi?Pi.ops.push(a):a.ownsGroup=Pi={ops:[a],delayedCallbacks:[]}}function ea(a){var b=a.delayedCallbacks,le=0;do{for(;le<b.length;le++)b[le].call(null);for(var ie=0;ie<a.ops.length;ie++){var ge=a.ops[ie];if(ge.cursorActivityHandlers)for(;ge.cursorActivityCalled<ge.cursorActivityHandlers.length;)ge.cursorActivityHandlers[ge.cursorActivityCalled++].call(null,ge.cm)}}while(le<b.length)}function Ga(a,b){var le=a.ownsGroup;if(le)try{ea(le)}finally{Pi=null,b(le)}}var Xi=null;function Kn(a,b){var le=gt(a,b);if(le.length){var ie=Array.prototype.slice.call(arguments,2),ge;Pi?ge=Pi.delayedCallbacks:Xi?ge=Xi:(ge=Xi=[],setTimeout(ta,0));for(var Le=function(ot){ge.push(function(){return le[ot].apply(null,ie)})},qe=0;qe<le.length;++qe)Le(qe)}}function ta(){var a=Xi;Xi=null;for(var b=0;b<a.length;++b)a[b]()}function oa(a,b,le,ie){for(var ge=0;ge<b.changes.length;ge++){var Le=b.changes[ge];Le=="text"?sa(a,b):Le=="gutter"?fn(a,b,le,ie):Le=="class"?qr(a,b):Le=="widget"&&an(a,b,ie)}b.changes=null}function Ui(a){return a.node==a.text&&(a.node=xe("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ye&&E<8&&(a.node.style.zIndex=2)),a.node}function $n(a,b){var le=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(le&&(le+=" CodeMirror-linebackground"),b.background)le?b.background.className=le:(b.background.parentNode.removeChild(b.background),b.background=null);else if(le){var ie=Ui(b);b.background=ie.insertBefore(xe("div",null,le),ie.firstChild),a.display.input.setUneditable(b.background)}}function ya(a,b){var le=a.display.externalMeasured;return le&&le.line==b.line?(a.display.externalMeasured=null,b.measure=le.measure,le.built):li(a,b)}function sa(a,b){var le=b.text.className,ie=ya(a,b);b.text==b.node&&(b.node=ie.pre),b.text.parentNode.replaceChild(ie.pre,b.text),b.text=ie.pre,ie.bgClass!=b.bgClass||ie.textClass!=b.textClass?(b.bgClass=ie.bgClass,b.textClass=ie.textClass,qr(a,b)):le&&(b.text.className=le)}function qr(a,b){$n(a,b),b.line.wrapClass?Ui(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var le=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=le||""}function fn(a,b,le,ie){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ge=Ui(b);b.gutterBackground=xe("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?ie.fixedPos:-ie.gutterTotalWidth)+"px; width: "+ie.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ge.insertBefore(b.gutterBackground,b.text)}var Le=b.line.gutterMarkers;if(a.options.lineNumbers||Le){var qe=Ui(b),ot=b.gutter=xe("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?ie.fixedPos:-ie.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ot),qe.insertBefore(ot,b.text),b.line.gutterClass&&(ot.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!Le||!Le["CodeMirror-linenumbers"])&&(b.lineNumber=ot.appendChild(xe("div",Xt(a.options,le),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ie.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Le)for(var lt=0;lt<a.display.gutterSpecs.length;++lt){var ht=a.display.gutterSpecs[lt].className,St=Le.hasOwnProperty(ht)&&Le[ht];St&&ot.appendChild(xe("div",[St],"CodeMirror-gutter-elt","left: "+ie.gutterLeft[ht]+"px; width: "+ie.gutterWidth[ht]+"px"))}}}function an(a,b,le){b.alignable&&(b.alignable=null);for(var ie=Te("CodeMirror-linewidget"),ge=b.node.firstChild,Le=void 0;ge;ge=Le)Le=ge.nextSibling,ie.test(ge.className)&&b.node.removeChild(ge);Pn(a,b,le)}function sn(a,b,le,ie){var ge=ya(a,b);return b.text=b.node=ge.pre,ge.bgClass&&(b.bgClass=ge.bgClass),ge.textClass&&(b.textClass=ge.textClass),qr(a,b),fn(a,b,le,ie),Pn(a,b,ie),b.node}function Pn(a,b,le){if(Fn(a,b.line,b,le,!0),b.rest)for(var ie=0;ie<b.rest.length;ie++)Fn(a,b.rest[ie],b,le,!1)}function Fn(a,b,le,ie,ge){if(b.widgets)for(var Le=Ui(le),qe=0,ot=b.widgets;qe<ot.length;++qe){var lt=ot[qe],ht=xe("div",[lt.node],"CodeMirror-linewidget"+(lt.className?" "+lt.className:""));lt.handleMouseEvents||ht.setAttribute("cm-ignore-events","true"),Hi(lt,ht,le,ie),a.display.input.setUneditable(ht),ge&&lt.above?Le.insertBefore(ht,le.gutter||le.text):Le.appendChild(ht),Kn(lt,"redraw")}}function Hi(a,b,le,ie){if(a.noHScroll){(le.alignable||(le.alignable=[])).push(b);var ge=ie.wrapperWidth;b.style.left=ie.fixedPos+"px",a.coverGutter||(ge-=ie.gutterTotalWidth,b.style.paddingLeft=ie.gutterTotalWidth+"px"),b.style.width=ge+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-ie.gutterTotalWidth+"px"))}function vi(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Be(document.body,a.node)){var le="position: relative;";a.coverGutter&&(le+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(le+="width: "+b.display.wrapper.clientWidth+"px;"),be(b.display.measure,xe("div",[a.node],null,le))}return a.height=a.node.parentNode.offsetHeight}function ui(a,b){for(var le=Er(b);le!=a.wrapper;le=le.parentNode)if(!le||le.nodeType==1&&le.getAttribute("cm-ignore-events")=="true"||le.parentNode==a.sizer&&le!=a.mover)return!0}function Yn(a){return a.lineSpace.offsetTop}function Ri(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Yi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=be(a.measure,xe("pre","x","CodeMirror-line-like")),le=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,ie={left:parseInt(le.paddingLeft),right:parseInt(le.paddingRight)};return!isNaN(ie.left)&&!isNaN(ie.right)&&(a.cachedPaddingH=ie),ie}function Ti(a){return nt-a.display.nativeBarWidth}function Ji(a){return a.display.scroller.clientWidth-Ti(a)-a.display.barWidth}function ra(a){return a.display.scroller.clientHeight-Ti(a)-a.display.barHeight}function Zi(a,b,le){var ie=a.options.lineWrapping,ge=ie&&Ji(a);if(!b.measure.heights||ie&&b.measure.width!=ge){var Le=b.measure.heights=[];if(ie){b.measure.width=ge;for(var qe=b.text.firstChild.getClientRects(),ot=0;ot<qe.length-1;ot++){var lt=qe[ot],ht=qe[ot+1];Math.abs(lt.bottom-ht.bottom)>2&&Le.push((lt.bottom+ht.top)/2-le.top)}}Le.push(le.bottom-le.top)}}function _a(a,b,le){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var ie=0;ie<a.rest.length;ie++)if(a.rest[ie]==b)return{map:a.measure.maps[ie],cache:a.measure.caches[ie]};for(var ge=0;ge<a.rest.length;ge++)if(Ct(a.rest[ge])>le)return{map:a.measure.maps[ge],cache:a.measure.caches[ge],before:!0}}function zo(a,b){b=zt(b);var le=Ct(b),ie=a.display.externalMeasured=new Wi(a.doc,b,le);ie.lineN=le;var ge=ie.built=li(a,ie);return ie.text=ge.pre,be(a.display.lineMeasure,ge.pre),ie}function yo(a,b,le,ie){return Bi(a,la(a,b),le,ie)}function Qi(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[xa(a,b)];var le=a.display.externalMeasured;if(le&&b>=le.lineN&&b<le.lineN+le.size)return le}function la(a,b){var le=Ct(b),ie=Qi(a,le);ie&&!ie.text?ie=null:ie&&ie.changes&&(oa(a,ie,le,ua(a)),a.curOp.forceUpdate=!0),ie||(ie=zo(a,b));var ge=_a(ie,b,le);return{line:b,view:ie,rect:null,map:ge.map,cache:ge.cache,before:ge.before,hasHeights:!1}}function Bi(a,b,le,ie,ge){b.before&&(le=-1);var Le=le+(ie||""),qe;return b.cache.hasOwnProperty(Le)?qe=b.cache[Le]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Zi(a,b.view,b.rect),b.hasHeights=!0),qe=xo(a,b,le,ie),qe.bogus||(b.cache[Le]=qe)),{left:qe.left,right:qe.right,top:ge?qe.rtop:qe.top,bottom:ge?qe.rbottom:qe.bottom}}var bo={left:0,right:0,top:0,bottom:0};function wo(a,b,le){for(var ie,ge,Le,qe,ot,lt,ht=0;ht<a.length;ht+=3)if(ot=a[ht],lt=a[ht+1],b<ot?(ge=0,Le=1,qe="left"):b<lt?(ge=b-ot,Le=ge+1):(ht==a.length-3||b==lt&&a[ht+3]>b)&&(Le=lt-ot,ge=Le-1,b>=lt&&(qe="right")),ge!=null){if(ie=a[ht+2],ot==lt&&le==(ie.insertLeft?"left":"right")&&(qe=le),le=="left"&&ge==0)for(;ht&&a[ht-2]==a[ht-3]&&a[ht-1].insertLeft;)ie=a[(ht-=3)+2],qe="left";if(le=="right"&&ge==lt-ot)for(;ht<a.length-3&&a[ht+3]==a[ht+4]&&!a[ht+5].insertLeft;)ie=a[(ht+=3)+2],qe="right";break}return{node:ie,start:ge,end:Le,collapse:qe,coverStart:ot,coverEnd:lt}}function Go(a,b){var le=bo;if(b=="left")for(var ie=0;ie<a.length&&(le=a[ie]).left==le.right;ie++);else for(var ge=a.length-1;ge>=0&&(le=a[ge]).left==le.right;ge--);return le}function xo(a,b,le,ie){var ge=wo(b.map,le,ie),Le=ge.node,qe=ge.start,ot=ge.end,lt=ge.collapse,ht;if(Le.nodeType==3){for(var St=0;St<4;St++){for(;qe&&Oe(b.line.text.charAt(ge.coverStart+qe));)--qe;for(;ge.coverStart+ot<ge.coverEnd&&Oe(b.line.text.charAt(ge.coverStart+ot));)++ot;if(ye&&E<9&&qe==0&&ot==ge.coverEnd-ge.coverStart?ht=Le.parentNode.getBoundingClientRect():ht=Go(Me(Le,qe,ot).getClientRects(),ie),ht.left||ht.right||qe==0)break;ot=qe,qe=qe-1,lt="right"}ye&&E<11&&(ht=Ko(a.display.measure,ht))}else{qe>0&&(lt=ie="right");var _t;a.options.lineWrapping&&(_t=Le.getClientRects()).length>1?ht=_t[ie=="right"?_t.length-1:0]:ht=Le.getBoundingClientRect()}if(ye&&E<9&&!qe&&(!ht||!ht.left&&!ht.right)){var Ft=Le.parentNode.getClientRects()[0];Ft?ht={left:Ft.left,right:Ft.left+Gi(a.display),top:Ft.top,bottom:Ft.bottom}:ht=bo}for(var Nt=ht.top-b.rect.top,nr=ht.bottom-b.rect.top,mr=(Nt+nr)/2,jr=b.view.measure.heights,Nr=0;Nr<jr.length-1&&!(mr<jr[Nr]);Nr++);var Hr=Nr?jr[Nr-1]:0,Lr=jr[Nr],Zr={left:(lt=="right"?ht.right:ht.left)-b.rect.left,right:(lt=="left"?ht.left:ht.right)-b.rect.left,top:Hr,bottom:Lr};return!ht.left&&!ht.right&&(Zr.bogus=!0),a.options.singleCursorHeightPerLine||(Zr.rtop=Nt,Zr.rbottom=nr),Zr}function Ko(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!It(a))return b;var le=screen.logicalXDPI/screen.deviceXDPI,ie=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*le,right:b.right*le,top:b.top*ie,bottom:b.bottom*ie}}function Ka(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function Va(a){a.display.externalMeasure=null,_e(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Ka(a.display.view[b])}function ba(a){Va(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xa(){return se&&ae?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Eo(){return se&&ae?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ya(a){var b=0;if(a.widgets)for(var le=0;le<a.widgets.length;++le)a.widgets[le].above&&(b+=vi(a.widgets[le]));return b}function Da(a,b,le,ie,ge){if(!ge){var Le=Ya(b);le.top+=Le,le.bottom+=Le}if(ie=="line")return le;ie||(ie="local");var qe=on(b);if(ie=="local"?qe+=Yn(a.display):qe-=a.display.viewOffset,ie=="page"||ie=="window"){var ot=a.display.lineSpace.getBoundingClientRect();qe+=ot.top+(ie=="window"?0:Eo());var lt=ot.left+(ie=="window"?0:Xa());le.left+=lt,le.right+=lt}return le.top+=qe,le.bottom+=qe,le}function So(a,b,le){if(le=="div")return b;var ie=b.left,ge=b.top;if(le=="page")ie-=Xa(),ge-=Eo();else if(le=="local"||!le){var Le=a.display.sizer.getBoundingClientRect();ie+=Le.left,ge+=Le.top}var qe=a.display.lineSpace.getBoundingClientRect();return{left:ie-qe.left,top:ge-qe.top}}function Oa(a,b,le,ie,ge){return ie||(ie=Mt(a.doc,b.line)),Da(a,ie,yo(a,ie,b.ch,ge),le)}function xi(a,b,le,ie,ge,Le){ie=ie||Mt(a.doc,b.line),ge||(ge=la(a,ie));function qe(nr,mr){var jr=Bi(a,ge,nr,mr?"right":"left",Le);return mr?jr.left=jr.right:jr.right=jr.left,Da(a,ie,jr,le)}var ot=kt(ie,a.doc.direction),lt=b.ch,ht=b.sticky;if(lt>=ie.text.length?(lt=ie.text.length,ht="before"):lt<=0&&(lt=0,ht="after"),!ot)return qe(ht=="before"?lt-1:lt,ht=="before");function St(nr,mr,jr){var Nr=ot[mr],Hr=Nr.level==1;return qe(jr?nr-1:nr,Hr!=jr)}var _t=ct(ot,lt,ht),Ft=ft,Nt=St(lt,_t,ht=="before");return Ft!=null&&(Nt.other=St(lt,Ft,ht!="before")),Nt}function An(a,b){var le=0;b=Gt(a.doc,b),a.options.lineWrapping||(le=Gi(a.display)*b.ch);var ie=Mt(a.doc,b.line),ge=on(ie)+Yn(a.display);return{left:le,right:le,top:ge,bottom:ge+ie.height}}function hn(a,b,le,ie,ge){var Le=Dt(a,b,le);return Le.xRel=ge,ie&&(Le.outside=ie),Le}function ci(a,b,le){var ie=a.doc;if(le+=a.display.viewOffset,le<0)return hn(ie.first,0,null,-1,-1);var ge=Tt(ie,le),Le=ie.first+ie.size-1;if(ge>Le)return hn(ie.first+ie.size-1,Mt(ie,Le).text.length,null,1,1);b<0&&(b=0);for(var qe=Mt(ie,ge);;){var ot=zi(a,qe,ge,b,le),lt=Cr(qe,ot.ch+(ot.xRel>0||ot.outside>0?1:0));if(!lt)return ot;var ht=lt.find(1);if(ht.line==ge)return ht;qe=Mt(ie,ge=ht.line)}}function di(a,b,le,ie){ie-=Ya(b);var ge=b.text.length,Le=tt(function(qe){return Bi(a,le,qe-1).bottom<=ie},ge,0);return ge=tt(function(qe){return Bi(a,le,qe).top>ie},Le,ge),{begin:Le,end:ge}}function Jn(a,b,le,ie){le||(le=la(a,b));var ge=Da(a,b,Bi(a,le,ie),"line").top;return di(a,b,le,ge)}function ri(a,b,le,ie){return a.bottom<=le?!1:a.top>le?!0:(ie?a.left:a.right)>b}function zi(a,b,le,ie,ge){ge-=on(b);var Le=la(a,b),qe=Ya(b),ot=0,lt=b.text.length,ht=!0,St=kt(b,a.doc.direction);if(St){var _t=(a.options.lineWrapping?na:Ni)(a,b,le,Le,St,ie,ge);ht=_t.level!=1,ot=ht?_t.from:_t.to-1,lt=ht?_t.to:_t.from-1}var Ft=null,Nt=null,nr=tt(function(rn){var Jr=Bi(a,Le,rn);return Jr.top+=qe,Jr.bottom+=qe,ri(Jr,ie,ge,!1)?(Jr.top<=ge&&Jr.left<=ie&&(Ft=rn,Nt=Jr),!0):!1},ot,lt),mr,jr,Nr=!1;if(Nt){var Hr=ie-Nt.left<Nt.right-ie,Lr=Hr==ht;nr=Ft+(Lr?0:1),jr=Lr?"after":"before",mr=Hr?Nt.left:Nt.right}else{!ht&&(nr==lt||nr==ot)&&nr++,jr=nr==0?"after":nr==b.text.length?"before":Bi(a,Le,nr-(ht?1:0)).bottom+qe<=ge==ht?"after":"before";var Zr=xi(a,Dt(le,nr,jr),"line",b,Le);mr=Zr.left,Nr=ge<Zr.top?-1:ge>=Zr.bottom?1:0}return nr=Ue(b.text,nr,1),hn(le,nr,jr,Nr,ie-mr)}function Ni(a,b,le,ie,ge,Le,qe){var ot=tt(function(_t){var Ft=ge[_t],Nt=Ft.level!=1;return ri(xi(a,Dt(le,Nt?Ft.to:Ft.from,Nt?"before":"after"),"line",b,ie),Le,qe,!0)},0,ge.length-1),lt=ge[ot];if(ot>0){var ht=lt.level!=1,St=xi(a,Dt(le,ht?lt.from:lt.to,ht?"after":"before"),"line",b,ie);ri(St,Le,qe,!0)&&St.top>qe&&(lt=ge[ot-1])}return lt}function na(a,b,le,ie,ge,Le,qe){var ot=di(a,b,ie,qe),lt=ot.begin,ht=ot.end;/\s/.test(b.text.charAt(ht-1))&&ht--;for(var St=null,_t=null,Ft=0;Ft<ge.length;Ft++){var Nt=ge[Ft];if(!(Nt.from>=ht||Nt.to<=lt)){var nr=Nt.level!=1,mr=Bi(a,ie,nr?Math.min(ht,Nt.to)-1:Math.max(lt,Nt.from)).right,jr=mr<Le?Le-mr+1e9:mr-Le;(!St||_t>jr)&&(St=Nt,_t=jr)}}return St||(St=ge[ge.length-1]),St.from<lt&&(St={from:lt,to:St.to,level:St.level}),St.to>ht&&(St={from:St.from,to:ht,level:St.level}),St}var _i;function Di(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(_i==null){_i=xe("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)_i.appendChild(document.createTextNode("x")),_i.appendChild(xe("br"));_i.appendChild(document.createTextNode("x"))}be(a.measure,_i);var le=_i.offsetHeight/50;return le>3&&(a.cachedTextHeight=le),_e(a.measure),le||1}function Gi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=xe("span","xxxxxxxxxx"),le=xe("pre",[b],"CodeMirror-line-like");be(a.measure,le);var ie=b.getBoundingClientRect(),ge=(ie.right-ie.left)/10;return ge>2&&(a.cachedCharWidth=ge),ge||10}function ua(a){for(var b=a.display,le={},ie={},ge=b.gutters.clientLeft,Le=b.gutters.firstChild,qe=0;Le;Le=Le.nextSibling,++qe){var ot=a.display.gutterSpecs[qe].className;le[ot]=Le.offsetLeft+Le.clientLeft+ge,ie[ot]=Le.clientWidth}return{fixedPos:Vo(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:le,gutterWidth:ie,wrapperWidth:b.wrapper.clientWidth}}function Vo(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function xs(a){var b=Di(a.display),le=a.options.lineWrapping,ie=le&&Math.max(5,a.display.scroller.clientWidth/Gi(a.display)-3);return function(ge){if(dn(a.doc,ge))return 0;var Le=0;if(ge.widgets)for(var qe=0;qe<ge.widgets.length;qe++)ge.widgets[qe].height&&(Le+=ge.widgets[qe].height);return le?Le+(Math.ceil(ge.text.length/ie)||1)*b:Le+b}}function Xo(a){var b=a.doc,le=xs(a);b.iter(function(ie){var ge=le(ie);ge!=ie.height&&Br(ie,ge)})}function wa(a,b,le,ie){var ge=a.display;if(!le&&Er(b).getAttribute("cm-not-content")=="true")return null;var Le,qe,ot=ge.lineSpace.getBoundingClientRect();try{Le=b.clientX-ot.left,qe=b.clientY-ot.top}catch(_t){return null}var lt=ci(a,Le,qe),ht;if(ie&&lt.xRel>0&&(ht=Mt(a.doc,lt.line).text).length==lt.ch){var St=Re(ht,ht.length,a.options.tabSize)-ht.length;lt=Dt(lt.line,Math.max(0,Math.round((Le-Yi(a.display).left)/Gi(a.display))-St))}return lt}function xa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var le=a.display.view,ie=0;ie<le.length;ie++)if(b-=le[ie].size,b<0)return ie}function Ei(a,b,le,ie){b==null&&(b=a.doc.first),le==null&&(le=a.doc.first+a.doc.size),ie||(ie=0);var ge=a.display;if(ie&&le<ge.viewTo&&(ge.updateLineNumbers==null||ge.updateLineNumbers>b)&&(ge.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ge.viewTo)cn&&Gr(a.doc,b)<ge.viewTo&&fa(a);else if(le<=ge.viewFrom)cn&&Xr(a.doc,le+ie)>ge.viewFrom?fa(a):(ge.viewFrom+=ie,ge.viewTo+=ie);else if(b<=ge.viewFrom&&le>=ge.viewTo)fa(a);else if(b<=ge.viewFrom){var Le=Co(a,le,le+ie,1);Le?(ge.view=ge.view.slice(Le.index),ge.viewFrom=Le.lineN,ge.viewTo+=ie):fa(a)}else if(le>=ge.viewTo){var qe=Co(a,b,b,-1);qe?(ge.view=ge.view.slice(0,qe.index),ge.viewTo=qe.lineN):fa(a)}else{var ot=Co(a,b,b,-1),lt=Co(a,le,le+ie,1);ot&&lt?(ge.view=ge.view.slice(0,ot.index).concat(Ln(a,ot.lineN,lt.lineN)).concat(ge.view.slice(lt.index)),ge.viewTo+=ie):fa(a)}var ht=ge.externalMeasured;ht&&(le<ht.lineN?ht.lineN+=ie:b<ht.lineN+ht.size&&(ge.externalMeasured=null))}function ca(a,b,le){a.curOp.viewChanged=!0;var ie=a.display,ge=a.display.externalMeasured;if(ge&&b>=ge.lineN&&b<ge.lineN+ge.size&&(ie.externalMeasured=null),!(b<ie.viewFrom||b>=ie.viewTo)){var Le=ie.view[xa(a,b)];if(Le.node!=null){var qe=Le.changes||(Le.changes=[]);et(qe,le)==-1&&qe.push(le)}}}function fa(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Co(a,b,le,ie){var ge=xa(a,b),Le,qe=a.display.view;if(!cn||le==a.doc.first+a.doc.size)return{index:ge,lineN:le};for(var ot=a.display.viewFrom,lt=0;lt<ge;lt++)ot+=qe[lt].size;if(ot!=b){if(ie>0){if(ge==qe.length-1)return null;Le=ot+qe[ge].size-b,ge++}else Le=ot-b;b+=Le,le+=Le}for(;Gr(a.doc,le)!=le;){if(ge==(ie<0?0:qe.length-1))return null;le+=ie*qe[ge-(ie<0?1:0)].size,ge+=ie}return{index:ge,lineN:le}}function Wl(a,b,le){var ie=a.display,ge=ie.view;ge.length==0||b>=ie.viewTo||le<=ie.viewFrom?(ie.view=Ln(a,b,le),ie.viewFrom=b):(ie.viewFrom>b?ie.view=Ln(a,b,ie.viewFrom).concat(ie.view):ie.viewFrom<b&&(ie.view=ie.view.slice(xa(a,b))),ie.viewFrom=b,ie.viewTo<le?ie.view=ie.view.concat(Ln(a,ie.viewTo,le)):ie.viewTo>le&&(ie.view=ie.view.slice(0,xa(a,le)))),ie.viewTo=le}function Es(a){for(var b=a.display.view,le=0,ie=0;ie<b.length;ie++){var ge=b[ie];!ge.hidden&&(!ge.node||ge.changes)&&++le}return le}function Ja(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Ss(a,b){b===void 0&&(b=!0);for(var le=a.doc,ie={},ge=ie.cursors=document.createDocumentFragment(),Le=ie.selection=document.createDocumentFragment(),qe=0;qe<le.sel.ranges.length;qe++)if(!(!b&&qe==le.sel.primIndex)){var ot=le.sel.ranges[qe];if(!(ot.from().line>=a.display.viewTo||ot.to().line<a.display.viewFrom)){var lt=ot.empty();(lt||a.options.showCursorWhenSelecting)&&Cs(a,ot.head,ge),lt||Ul(a,ot,Le)}}return ie}function Cs(a,b,le){var ie=xi(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ge=le.appendChild(xe("div","\xA0","CodeMirror-cursor"));if(ge.style.left=ie.left+"px",ge.style.top=ie.top+"px",ge.style.height=Math.max(0,ie.bottom-ie.top)*a.options.cursorHeight+"px",ie.other){var Le=le.appendChild(xe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Le.style.display="",Le.style.left=ie.other.left+"px",Le.style.top=ie.other.top+"px",Le.style.height=(ie.other.bottom-ie.other.top)*.85+"px"}}function ko(a,b){return a.top-b.top||a.left-b.left}function Ul(a,b,le){var ie=a.display,ge=a.doc,Le=document.createDocumentFragment(),qe=Yi(a.display),ot=qe.left,lt=Math.max(ie.sizerWidth,Ji(a)-ie.sizer.offsetLeft)-qe.right,ht=ge.direction=="ltr";function St(Lr,Zr,rn,Jr){Zr<0&&(Zr=0),Zr=Math.round(Zr),Jr=Math.round(Jr),Le.appendChild(xe("div",null,"CodeMirror-selected","position: absolute; left: "+Lr+`px;
top: `+Zr+"px; width: "+(rn==null?lt-Lr:rn)+`px;
height: `+(Jr-Zr)+"px"))}function _t(Lr,Zr,rn){var Jr=Mt(ge,Lr),vn=Jr.text.length,Wn,oi;function zn(qn,ki){return Oa(a,Dt(Lr,qn),"div",Jr,ki)}function ji(qn,ki,fi){var ni=Jn(a,Jr,null,qn),ei=ki=="ltr"==(fi=="after")?"left":"right",Vn=fi=="after"?ni.begin:ni.end-(/\s/.test(Jr.text.charAt(ni.end-1))?2:1);return zn(Vn,ei)[ei]}var Ci=kt(Jr,ge.direction);return Ge(Ci,Zr||0,rn==null?vn:rn,function(qn,ki,fi,ni){var ei=fi=="ltr",Vn=zn(qn,ei?"left":"right"),Ai=zn(ki-1,ei?"right":"left"),Za=Zr==null&&qn==0,ga=rn==null&&ki==vn,pi=ni==0,$i=!Ci||ni==Ci.length-1;if(Ai.top-Vn.top<=3){var si=(ht?Za:ga)&&pi,bs=(ht?ga:Za)&&$i,aa=si?ot:(ei?Vn:Ai).left,Aa=bs?lt:(ei?Ai:Vn).right;St(aa,Vn.top,Aa-aa,Vn.bottom)}else{var Ta,yi,za,ws;ei?(Ta=ht&&Za&&pi?ot:Vn.left,yi=ht?lt:ji(qn,fi,"before"),za=ht?ot:ji(ki,fi,"after"),ws=ht&&ga&&$i?lt:Ai.right):(Ta=ht?ji(qn,fi,"before"):ot,yi=!ht&&Za&&pi?lt:Vn.right,za=!ht&&ga&&$i?ot:Ai.left,ws=ht?ji(ki,fi,"after"):lt),St(Ta,Vn.top,yi-Ta,Vn.bottom),Vn.bottom<Ai.top&&St(ot,Vn.bottom,null,Ai.top),St(za,Ai.top,ws-za,Ai.bottom)}(!Wn||ko(Vn,Wn)<0)&&(Wn=Vn),ko(Ai,Wn)<0&&(Wn=Ai),(!oi||ko(Vn,oi)<0)&&(oi=Vn),ko(Ai,oi)<0&&(oi=Ai)}),{start:Wn,end:oi}}var Ft=b.from(),Nt=b.to();if(Ft.line==Nt.line)_t(Ft.line,Ft.ch,Nt.ch);else{var nr=Mt(ge,Ft.line),mr=Mt(ge,Nt.line),jr=zt(nr)==zt(mr),Nr=_t(Ft.line,Ft.ch,jr?nr.text.length+1:null).end,Hr=_t(Nt.line,jr?0:null,Nt.ch).start;jr&&(Nr.top<Hr.top-2?(St(Nr.right,Nr.top,null,Nr.bottom),St(ot,Hr.top,Hr.left,Hr.bottom)):St(Nr.right,Nr.top,Hr.left-Nr.right,Nr.bottom)),Nr.bottom<Hr.top&&St(ot,Nr.bottom,null,Hr.top)}le.appendChild(Le)}function Yo(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var le=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||ja(a),b.cursorDiv.style.visibility=(le=!le)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function ks(a){a.state.focused||(a.display.input.focus(),Jo(a))}function As(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,ja(a))},100)}function Jo(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(mt(a,"focus",a,b),a.state.focused=!0,De(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),z&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Yo(a))}function ja(a,b){a.state.delayingBlurEvent||(a.state.focused&&(mt(a,"blur",a,b),a.state.focused=!1,Pe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Ao(a){for(var b=a.display,le=b.lineDiv.offsetTop,ie=0;ie<b.view.length;ie++){var ge=b.view[ie],Le=a.options.lineWrapping,qe=void 0,ot=0;if(!ge.hidden){if(ye&&E<8){var lt=ge.node.offsetTop+ge.node.offsetHeight;qe=lt-le,le=lt}else{var ht=ge.node.getBoundingClientRect();qe=ht.bottom-ht.top,!Le&&ge.text.firstChild&&(ot=ge.text.firstChild.getBoundingClientRect().right-ht.left-1)}var St=ge.line.height-qe;if((St>.005||St<-.005)&&(Br(ge.line,qe),Ts(ge.line),ge.rest))for(var _t=0;_t<ge.rest.length;_t++)Ts(ge.rest[_t]);if(ot>a.display.sizerWidth){var Ft=Math.ceil(ot/Gi(a.display));Ft>a.display.maxLineLength&&(a.display.maxLineLength=Ft,a.display.maxLine=ge.line,a.display.maxLineChanged=!0)}}}}function Ts(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var le=a.widgets[b],ie=le.node.parentNode;ie&&(le.height=ie.offsetHeight)}}function To(a,b,le){var ie=le&&le.top!=null?Math.max(0,le.top):a.scroller.scrollTop;ie=Math.floor(ie-Yn(a));var ge=le&&le.bottom!=null?le.bottom:ie+a.wrapper.clientHeight,Le=Tt(b,ie),qe=Tt(b,ge);if(le&&le.ensure){var ot=le.ensure.from.line,lt=le.ensure.to.line;ot<Le?(Le=ot,qe=Tt(b,on(Mt(b,ot))+a.wrapper.clientHeight)):Math.min(lt,b.lastLine())>=qe&&(Le=Tt(b,on(Mt(b,lt))-a.wrapper.clientHeight),qe=lt)}return{from:Le,to:Math.max(qe,Le+1)}}function Hl(a,b){if(!dt(a,"scrollCursorIntoView")){var le=a.display,ie=le.sizer.getBoundingClientRect(),ge=null;if(b.top+ie.top<0?ge=!0:b.bottom+ie.top>(window.innerHeight||document.documentElement.clientHeight)&&(ge=!1),ge!=null&&!te){var Le=xe("div","\u200B",null,`position: absolute;
top: `+(b.top-le.viewOffset-Yn(a.display))+`px;
height: `+(b.bottom-b.top+Ti(a)+le.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(Le),Le.scrollIntoView(ge),a.display.lineSpace.removeChild(Le)}}}function Zl(a,b,le,ie){ie==null&&(ie=0);var ge;!a.options.lineWrapping&&b==le&&(b=b.ch?Dt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,le=b.sticky=="before"?Dt(b.line,b.ch+1,"before"):b);for(var Le=0;Le<5;Le++){var qe=!1,ot=xi(a,b),lt=!le||le==b?ot:xi(a,le);ge={left:Math.min(ot.left,lt.left),top:Math.min(ot.top,lt.top)-ie,right:Math.max(ot.left,lt.left),bottom:Math.max(ot.bottom,lt.bottom)+ie};var ht=Qo(a,ge),St=a.doc.scrollTop,_t=a.doc.scrollLeft;if(ht.scrollTop!=null&&($a(a,ht.scrollTop),Math.abs(a.doc.scrollTop-St)>1&&(qe=!0)),ht.scrollLeft!=null&&(Ea(a,ht.scrollLeft),Math.abs(a.doc.scrollLeft-_t)>1&&(qe=!0)),!qe)break}return ge}function zl(a,b){var le=Qo(a,b);le.scrollTop!=null&&$a(a,le.scrollTop),le.scrollLeft!=null&&Ea(a,le.scrollLeft)}function Qo(a,b){var le=a.display,ie=Di(a.display);b.top<0&&(b.top=0);var ge=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:le.scroller.scrollTop,Le=ra(a),qe={};b.bottom-b.top>Le&&(b.bottom=b.top+Le);var ot=a.doc.height+Ri(le),lt=b.top<ie,ht=b.bottom>ot-ie;if(b.top<ge)qe.scrollTop=lt?0:b.top;else if(b.bottom>ge+Le){var St=Math.min(b.top,(ht?ot:b.bottom)-Le);St!=ge&&(qe.scrollTop=St)}var _t=a.options.fixedGutter?0:le.gutters.offsetWidth,Ft=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:le.scroller.scrollLeft-_t,Nt=Ji(a)-le.gutters.offsetWidth,nr=b.right-b.left>Nt;return nr&&(b.right=b.left+Nt),b.left<10?qe.scrollLeft=0:b.left<Ft?qe.scrollLeft=Math.max(0,b.left+_t-(nr?0:10)):b.right>Nt+Ft-3&&(qe.scrollLeft=b.right+(nr?0:10)-Nt),qe}function $o(a,b){b!=null&&(_o(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Pa(a){_o(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function Qa(a,b,le){(b!=null||le!=null)&&_o(a),b!=null&&(a.curOp.scrollLeft=b),le!=null&&(a.curOp.scrollTop=le)}function Gl(a,b){_o(a),a.curOp.scrollToPos=b}function _o(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var le=An(a,b.from),ie=An(a,b.to);_s(a,le,ie,b.margin)}}function _s(a,b,le,ie){var ge=Qo(a,{left:Math.min(b.left,le.left),top:Math.min(b.top,le.top)-ie,right:Math.max(b.right,le.right),bottom:Math.max(b.bottom,le.bottom)+ie});Qa(a,ge.scrollLeft,ge.scrollTop)}function $a(a,b){Math.abs(a.doc.scrollTop-b)<2||(Ze||es(a,{top:b}),Ds(a,b,!0),Ze&&es(a),to(a,100))}function Ds(a,b,le){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!le)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function Ea(a,b,le,ie){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((le?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!ie)&&(a.doc.scrollLeft=b,Is(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function qa(a){var b=a.display,le=b.gutters.offsetWidth,ie=Math.round(a.doc.height+Ri(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?le:0,docHeight:ie,scrollHeight:ie+Ti(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:le}}var Sa=function(a,b,le){this.cm=le;var ie=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ge=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ie.tabIndex=ge.tabIndex=-1,a(ie),a(ge),Et(ie,"scroll",function(){ie.clientHeight&&b(ie.scrollTop,"vertical")}),Et(ge,"scroll",function(){ge.clientWidth&&b(ge.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ye&&E<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sa.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,le=a.scrollHeight>a.clientHeight+1,ie=a.nativeBarWidth;if(le){this.vert.style.display="block",this.vert.style.bottom=b?ie+"px":"0";var ge=a.viewHeight-(b?ie:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ge)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=le?ie+"px":"0",this.horiz.style.left=a.barLeft+"px";var Le=a.viewWidth-a.barLeft-(le?ie:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Le)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(ie==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:le?ie:0,bottom:b?ie:0}},Sa.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Sa.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Sa.prototype.zeroWidthHack=function(){var a=he&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new We,this.disableVert=new We},Sa.prototype.enableZeroWidthBar=function(a,b,le){a.style.pointerEvents="auto";function ie(){var ge=a.getBoundingClientRect(),Le=le=="vert"?document.elementFromPoint(ge.right-1,(ge.top+ge.bottom)/2):document.elementFromPoint((ge.right+ge.left)/2,ge.bottom-1);Le!=a?a.style.pointerEvents="none":b.set(1e3,ie)}b.set(1e3,ie)},Sa.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var eo=function(){};eo.prototype.update=function(){return{bottom:0,right:0}},eo.prototype.setScrollLeft=function(){},eo.prototype.setScrollTop=function(){},eo.prototype.clear=function(){};function Ma(a,b){b||(b=qa(a));var le=a.display.barWidth,ie=a.display.barHeight;Os(a,b);for(var ge=0;ge<4&&le!=a.display.barWidth||ie!=a.display.barHeight;ge++)le!=a.display.barWidth&&a.options.lineWrapping&&Ao(a),Os(a,qa(a)),le=a.display.barWidth,ie=a.display.barHeight}function Os(a,b){var le=a.display,ie=le.scrollbars.update(b);le.sizer.style.paddingRight=(le.barWidth=ie.right)+"px",le.sizer.style.paddingBottom=(le.barHeight=ie.bottom)+"px",le.heightForcer.style.borderBottom=ie.bottom+"px solid transparent",ie.right&&ie.bottom?(le.scrollbarFiller.style.display="block",le.scrollbarFiller.style.height=ie.bottom+"px",le.scrollbarFiller.style.width=ie.right+"px"):le.scrollbarFiller.style.display="",ie.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(le.gutterFiller.style.display="block",le.gutterFiller.style.height=ie.bottom+"px",le.gutterFiller.style.width=b.gutterWidth+"px"):le.gutterFiller.style.display=""}var js={native:Sa,null:eo};function Ps(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Pe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new js[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),Et(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,le){le=="horizontal"?Ea(a,b):$a(a,b)},a),a.display.scrollbars.addClass&&De(a.display.wrapper,a.display.scrollbars.addClass)}var Kl=0;function Ca(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:++Kl},qi(a.curOp)}function ka(a){var b=a.curOp;b&&Ga(b,function(le){for(var ie=0;ie<le.ops.length;ie++)le.ops[ie].cm.curOp=null;Vl(le)})}function Vl(a){for(var b=a.ops,le=0;le<b.length;le++)Xl(b[le]);for(var ie=0;ie<b.length;ie++)Yl(b[ie]);for(var ge=0;ge<b.length;ge++)Jl(b[ge]);for(var Le=0;Le<b.length;Le++)Ql(b[Le]);for(var qe=0;qe<b.length;qe++)$l(b[qe])}function Xl(a){var b=a.cm,le=b.display;eu(b),a.updateMaxLine&&kn(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<le.viewFrom||a.scrollToPos.to.line>=le.viewTo)||le.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new Do(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Yl(a){a.updatedDisplay=a.mustUpdate&&qo(a.cm,a.update)}function Jl(a){var b=a.cm,le=b.display;a.updatedDisplay&&Ao(b),a.barMeasure=qa(b),le.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=yo(b,le.maxLine,le.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(le.scroller.clientWidth,le.sizer.offsetLeft+a.adjustWidthTo+Ti(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,le.sizer.offsetLeft+a.adjustWidthTo-Ji(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=le.input.prepareSelection())}function Ql(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&Ea(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var le=a.focus&&a.focus==Ce();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,le),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Ma(b,a.barMeasure),a.updatedDisplay&&rs(b,a.barMeasure),a.selectionChanged&&Yo(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),le&&ks(a.cm)}function $l(a){var b=a.cm,le=b.display,ie=b.doc;if(a.updatedDisplay&&Ms(b,a.update),le.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(le.wheelStartX=le.wheelStartY=null),a.scrollTop!=null&&Ds(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Ea(b,a.scrollLeft,!0,!0),a.scrollToPos){var ge=Zl(b,Gt(ie,a.scrollToPos.from),Gt(ie,a.scrollToPos.to),a.scrollToPos.margin);Hl(b,ge)}var Le=a.maybeHiddenMarkers,qe=a.maybeUnhiddenMarkers;if(Le)for(var ot=0;ot<Le.length;++ot)Le[ot].lines.length||mt(Le[ot],"hide");if(qe)for(var lt=0;lt<qe.length;++lt)qe[lt].lines.length&&mt(qe[lt],"unhide");le.wrapper.offsetHeight&&(ie.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&mt(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function Oi(a,b){if(a.curOp)return b();Ca(a);try{return b()}finally{ka(a)}}function ii(a,b){return function(){if(a.curOp)return b.apply(a,arguments);Ca(a);try{return b.apply(a,arguments)}finally{ka(a)}}}function gi(a){return function(){if(this.curOp)return a.apply(this,arguments);Ca(this);try{return a.apply(this,arguments)}finally{ka(this)}}}function ai(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);Ca(b);try{return a.apply(this,arguments)}finally{ka(b)}}}function to(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,Ye(ql,a))}function ql(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var le=+new Date+a.options.workTime,ie=en(a,b.highlightFrontier),ge=[];b.iter(ie.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Le){if(ie.line>=a.display.viewFrom){var qe=Le.styles,ot=Le.text.length>a.options.maxHighlightLength?Pr(b.mode,ie.state):null,lt=Fr(a,Le,ie,!0);ot&&(ie.state=ot),Le.styles=lt.styles;var ht=Le.styleClasses,St=lt.classes;St?Le.styleClasses=St:ht&&(Le.styleClasses=null);for(var _t=!qe||qe.length!=Le.styles.length||ht!=St&&(!ht||!St||ht.bgClass!=St.bgClass||ht.textClass!=St.textClass),Ft=0;!_t&&Ft<qe.length;++Ft)_t=qe[Ft]!=Le.styles[Ft];_t&&ge.push(ie.line),Le.stateAfter=ie.save(),ie.nextLine()}else Le.text.length<=a.options.maxHighlightLength&&un(a,Le.text,ie),Le.stateAfter=ie.line%5==0?ie.save():null,ie.nextLine();if(+new Date>le)return to(a,a.options.workDelay),!0}),b.highlightFrontier=ie.line,b.modeFrontier=Math.max(b.modeFrontier,ie.line),ge.length&&Oi(a,function(){for(var Le=0;Le<ge.length;Le++)ca(a,ge[Le],"text")})}}var Do=function(a,b,le){var ie=a.display;this.viewport=b,this.visible=To(ie,a.doc,b),this.editorIsHidden=!ie.wrapper.offsetWidth,this.wrapperHeight=ie.wrapper.clientHeight,this.wrapperWidth=ie.wrapper.clientWidth,this.oldDisplayWidth=Ji(a),this.force=le,this.dims=ua(a),this.events=[]};Do.prototype.signal=function(a,b){wt(a,b)&&this.events.push(arguments)},Do.prototype.finish=function(){for(var a=0;a<this.events.length;a++)mt.apply(null,this.events[a])};function eu(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=Ti(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=Ti(a)+"px",b.scrollbarsClipped=!0)}function tu(a){if(a.hasFocus())return null;var b=Ce();if(!b||!Be(a.display.lineDiv,b))return null;var le={activeElt:b};if(window.getSelection){var ie=window.getSelection();ie.anchorNode&&ie.extend&&Be(a.display.lineDiv,ie.anchorNode)&&(le.anchorNode=ie.anchorNode,le.anchorOffset=ie.anchorOffset,le.focusNode=ie.focusNode,le.focusOffset=ie.focusOffset)}return le}function ru(a){if(!(!a||!a.activeElt||a.activeElt==Ce())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Be(document.body,a.anchorNode)&&Be(document.body,a.focusNode))){var b=window.getSelection(),le=document.createRange();le.setEnd(a.anchorNode,a.anchorOffset),le.collapse(!1),b.removeAllRanges(),b.addRange(le),b.extend(a.focusNode,a.focusOffset)}}function qo(a,b){var le=a.display,ie=a.doc;if(b.editorIsHidden)return fa(a),!1;if(!b.force&&b.visible.from>=le.viewFrom&&b.visible.to<=le.viewTo&&(le.updateLineNumbers==null||le.updateLineNumbers>=le.viewTo)&&le.renderedView==le.view&&Es(a)==0)return!1;Rs(a)&&(fa(a),b.dims=ua(a));var ge=ie.first+ie.size,Le=Math.max(b.visible.from-a.options.viewportMargin,ie.first),qe=Math.min(ge,b.visible.to+a.options.viewportMargin);le.viewFrom<Le&&Le-le.viewFrom<20&&(Le=Math.max(ie.first,le.viewFrom)),le.viewTo>qe&&le.viewTo-qe<20&&(qe=Math.min(ge,le.viewTo)),cn&&(Le=Gr(a.doc,Le),qe=Xr(a.doc,qe));var ot=Le!=le.viewFrom||qe!=le.viewTo||le.lastWrapHeight!=b.wrapperHeight||le.lastWrapWidth!=b.wrapperWidth;Wl(a,Le,qe),le.viewOffset=on(Mt(a.doc,le.viewFrom)),a.display.mover.style.top=le.viewOffset+"px";var lt=Es(a);if(!ot&&lt==0&&!b.force&&le.renderedView==le.view&&(le.updateLineNumbers==null||le.updateLineNumbers>=le.viewTo))return!1;var ht=tu(a);return lt>4&&(le.lineDiv.style.display="none"),nu(a,le.updateLineNumbers,b.dims),lt>4&&(le.lineDiv.style.display=""),le.renderedView=le.view,ru(ht),_e(le.cursorDiv),_e(le.selectionDiv),le.gutters.style.height=le.sizer.style.minHeight=0,ot&&(le.lastWrapHeight=b.wrapperHeight,le.lastWrapWidth=b.wrapperWidth,to(a,400)),le.updateLineNumbers=null,!0}function Ms(a,b){for(var le=b.viewport,ie=!0;;ie=!1){if(!ie||!a.options.lineWrapping||b.oldDisplayWidth==Ji(a)){if(le&&le.top!=null&&(le={top:Math.min(a.doc.height+Ri(a.display)-ra(a),le.top)}),b.visible=To(a.display,a.doc,le),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else ie&&(b.visible=To(a.display,a.doc,le));if(!qo(a,b))break;Ao(a);var ge=qa(a);Ja(a),Ma(a,ge),rs(a,ge),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function es(a,b){var le=new Do(a,b);if(qo(a,le)){Ao(a),Ms(a,le);var ie=qa(a);Ja(a),Ma(a,ie),rs(a,ie),le.finish()}}function nu(a,b,le){var ie=a.display,ge=a.options.lineNumbers,Le=ie.lineDiv,qe=Le.firstChild;function ot(nr){var mr=nr.nextSibling;return z&&he&&a.display.currentWheelTarget==nr?nr.style.display="none":nr.parentNode.removeChild(nr),mr}for(var lt=ie.view,ht=ie.viewFrom,St=0;St<lt.length;St++){var _t=lt[St];if(!_t.hidden)if(!_t.node||_t.node.parentNode!=Le){var Ft=sn(a,_t,ht,le);Le.insertBefore(Ft,qe)}else{for(;qe!=_t.node;)qe=ot(qe);var Nt=ge&&b!=null&&b<=ht&&_t.lineNumber;_t.changes&&(et(_t.changes,"gutter")>-1&&(Nt=!1),oa(a,_t,ht,le)),Nt&&(_e(_t.lineNumber),_t.lineNumber.appendChild(document.createTextNode(Xt(a.options,ht)))),qe=_t.node.nextSibling}ht+=_t.size}for(;qe;)qe=ot(qe)}function ts(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function rs(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+Ti(a)+"px"}function Is(a){var b=a.display,le=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var ie=Vo(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ge=b.gutters.offsetWidth,Le=ie+"px",qe=0;qe<le.length;qe++)if(!le[qe].hidden){a.options.fixedGutter&&(le[qe].gutter&&(le[qe].gutter.style.left=Le),le[qe].gutterBackground&&(le[qe].gutterBackground.style.left=Le));var ot=le[qe].alignable;if(ot)for(var lt=0;lt<ot.length;lt++)ot[lt].style.left=Le}a.options.fixedGutter&&(b.gutters.style.left=ie+ge+"px")}}function Rs(a){if(!a.options.lineNumbers)return!1;var b=a.doc,le=Xt(a.options,b.first+b.size-1),ie=a.display;if(le.length!=ie.lineNumChars){var ge=ie.measure.appendChild(xe("div",[xe("div",le)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Le=ge.firstChild.offsetWidth,qe=ge.offsetWidth-Le;return ie.lineGutter.style.width="",ie.lineNumInnerWidth=Math.max(Le,ie.lineGutter.offsetWidth-qe)+1,ie.lineNumWidth=ie.lineNumInnerWidth+qe,ie.lineNumChars=ie.lineNumInnerWidth?le.length:-1,ie.lineGutter.style.width=ie.lineNumWidth+"px",ts(a.display),!0}return!1}function ns(a,b){for(var le=[],ie=!1,ge=0;ge<a.length;ge++){var Le=a[ge],qe=null;if(typeof Le!="string"&&(qe=Le.style,Le=Le.className),Le=="CodeMirror-linenumbers")if(b)ie=!0;else continue;le.push({className:Le,style:qe})}return b&&!ie&&le.push({className:"CodeMirror-linenumbers",style:null}),le}function Bs(a){var b=a.gutters,le=a.gutterSpecs;_e(b),a.lineGutter=null;for(var ie=0;ie<le.length;++ie){var ge=le[ie],Le=ge.className,qe=ge.style,ot=b.appendChild(xe("div",null,"CodeMirror-gutter "+Le));qe&&(ot.style.cssText=qe),Le=="CodeMirror-linenumbers"&&(a.lineGutter=ot,ot.style.width=(a.lineNumWidth||1)+"px")}b.style.display=le.length?"":"none",ts(a)}function ro(a){Bs(a.display),Ei(a),Is(a)}function iu(a,b,le,ie){var ge=this;this.input=le,ge.scrollbarFiller=xe("div",null,"CodeMirror-scrollbar-filler"),ge.scrollbarFiller.setAttribute("cm-not-content","true"),ge.gutterFiller=xe("div",null,"CodeMirror-gutter-filler"),ge.gutterFiller.setAttribute("cm-not-content","true"),ge.lineDiv=Ae("div",null,"CodeMirror-code"),ge.selectionDiv=xe("div",null,null,"position: relative; z-index: 1"),ge.cursorDiv=xe("div",null,"CodeMirror-cursors"),ge.measure=xe("div",null,"CodeMirror-measure"),ge.lineMeasure=xe("div",null,"CodeMirror-measure"),ge.lineSpace=Ae("div",[ge.measure,ge.lineMeasure,ge.selectionDiv,ge.cursorDiv,ge.lineDiv],null,"position: relative; outline: none");var Le=Ae("div",[ge.lineSpace],"CodeMirror-lines");ge.mover=xe("div",[Le],null,"position: relative"),ge.sizer=xe("div",[ge.mover],"CodeMirror-sizer"),ge.sizerWidth=null,ge.heightForcer=xe("div",null,null,"position: absolute; height: "+nt+"px; width: 1px;"),ge.gutters=xe("div",null,"CodeMirror-gutters"),ge.lineGutter=null,ge.scroller=xe("div",[ge.sizer,ge.heightForcer,ge.gutters],"CodeMirror-scroll"),ge.scroller.setAttribute("tabIndex","-1"),ge.wrapper=xe("div",[ge.scrollbarFiller,ge.gutterFiller,ge.scroller],"CodeMirror"),ye&&E<8&&(ge.gutters.style.zIndex=-1,ge.scroller.style.paddingRight=0),!z&&!(Ze&&ue)&&(ge.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ge.wrapper):a(ge.wrapper)),ge.viewFrom=ge.viewTo=b.first,ge.reportedViewFrom=ge.reportedViewTo=b.first,ge.view=[],ge.renderedView=null,ge.externalMeasured=null,ge.viewOffset=0,ge.lastWrapHeight=ge.lastWrapWidth=0,ge.updateLineNumbers=null,ge.nativeBarWidth=ge.barHeight=ge.barWidth=0,ge.scrollbarsClipped=!1,ge.lineNumWidth=ge.lineNumInnerWidth=ge.lineNumChars=null,ge.alignWidgets=!1,ge.cachedCharWidth=ge.cachedTextHeight=ge.cachedPaddingH=null,ge.maxLine=null,ge.maxLineLength=0,ge.maxLineChanged=!1,ge.wheelDX=ge.wheelDY=ge.wheelStartX=ge.wheelStartY=null,ge.shift=!1,ge.selForContextMenu=null,ge.activeTouch=null,ge.gutterSpecs=ns(ie.gutters,ie.lineNumbers),Bs(ge),le.init(ge)}var Oo=0,Mi=null;ye?Mi=-.53:Ze?Mi=15:se?Mi=-.7:de&&(Mi=-1/3);function Ns(a){var b=a.wheelDeltaX,le=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),le==null&&a.detail&&a.axis==a.VERTICAL_AXIS?le=a.detail:le==null&&(le=a.wheelDelta),{x:b,y:le}}function au(a){var b=Ns(a);return b.x*=Mi,b.y*=Mi,b}function Ls(a,b){var le=Ns(b),ie=le.x,ge=le.y,Le=a.display,qe=Le.scroller,ot=qe.scrollWidth>qe.clientWidth,lt=qe.scrollHeight>qe.clientHeight;if(ie&&ot||ge&&lt){if(ge&&he&&z){e:for(var ht=b.target,St=Le.view;ht!=qe;ht=ht.parentNode)for(var _t=0;_t<St.length;_t++)if(St[_t].node==ht){a.display.currentWheelTarget=ht;break e}}if(ie&&!Ze&&!ee&&Mi!=null){ge&&lt&&$a(a,Math.max(0,qe.scrollTop+ge*Mi)),Ea(a,Math.max(0,qe.scrollLeft+ie*Mi)),(!ge||ge&&lt)&&jt(b),Le.wheelStartX=null;return}if(ge&&Mi!=null){var Ft=ge*Mi,Nt=a.doc.scrollTop,nr=Nt+Le.wrapper.clientHeight;Ft<0?Nt=Math.max(0,Nt+Ft-50):nr=Math.min(a.doc.height,nr+Ft+50),es(a,{top:Nt,bottom:nr})}Oo<20&&(Le.wheelStartX==null?(Le.wheelStartX=qe.scrollLeft,Le.wheelStartY=qe.scrollTop,Le.wheelDX=ie,Le.wheelDY=ge,setTimeout(function(){if(Le.wheelStartX!=null){var mr=qe.scrollLeft-Le.wheelStartX,jr=qe.scrollTop-Le.wheelStartY,Nr=jr&&Le.wheelDY&&jr/Le.wheelDY||mr&&Le.wheelDX&&mr/Le.wheelDX;Le.wheelStartX=Le.wheelStartY=null,Nr&&(Mi=(Mi*Oo+Nr)/(Oo+1),++Oo)}},200)):(Le.wheelDX+=ie,Le.wheelDY+=ge))}}var Ii=function(a,b){this.ranges=a,this.primIndex=b};Ii.prototype.primary=function(){return this.ranges[this.primIndex]},Ii.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var le=this.ranges[b],ie=a.ranges[b];if(!rr(le.anchor,ie.anchor)||!rr(le.head,ie.head))return!1}return!0},Ii.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Rn(gr(this.ranges[b].anchor),gr(this.ranges[b].head));return new Ii(a,this.primIndex)},Ii.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Ii.prototype.contains=function(a,b){b||(b=a);for(var le=0;le<this.ranges.length;le++){var ie=this.ranges[le];if(Yt(b,ie.from())>=0&&Yt(a,ie.to())<=0)return le}return-1};var Rn=function(a,b){this.anchor=a,this.head=b};Rn.prototype.from=function(){return Pt(this.anchor,this.head)},Rn.prototype.to=function(){return Mr(this.anchor,this.head)},Rn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ki(a,b,le){var ie=a&&a.options.selectionsMayTouch,ge=b[le];b.sort(function(Ft,Nt){return Yt(Ft.from(),Nt.from())}),le=et(b,ge);for(var Le=1;Le<b.length;Le++){var qe=b[Le],ot=b[Le-1],lt=Yt(ot.to(),qe.from());if(ie&&!qe.empty()?lt>0:lt>=0){var ht=Pt(ot.from(),qe.from()),St=Mr(ot.to(),qe.to()),_t=ot.empty()?qe.from()==qe.head:ot.from()==ot.head;Le<=le&&--le,b.splice(--Le,2,new Rn(_t?St:ht,_t?ht:St))}}return new Ii(b,le)}function da(a,b){return new Ii([new Rn(a,b||a)],0)}function ha(a){return a.text?Dt(a.from.line+a.text.length-1,st(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Fs(a,b){if(Yt(a,b.from)<0)return a;if(Yt(a,b.to)<=0)return ha(b);var le=a.line+b.text.length-(b.to.line-b.from.line)-1,ie=a.ch;return a.line==b.to.line&&(ie+=ha(b).ch-b.to.ch),Dt(le,ie)}function is(a,b){for(var le=[],ie=0;ie<a.sel.ranges.length;ie++){var ge=a.sel.ranges[ie];le.push(new Rn(Fs(ge.anchor,b),Fs(ge.head,b)))}return Ki(a.cm,le,a.sel.primIndex)}function Ws(a,b,le){return a.line==b.line?Dt(le.line,a.ch-b.ch+le.ch):Dt(le.line+(a.line-b.line),a.ch)}function ou(a,b,le){for(var ie=[],ge=Dt(a.first,0),Le=ge,qe=0;qe<b.length;qe++){var ot=b[qe],lt=Ws(ot.from,ge,Le),ht=Ws(ha(ot),ge,Le);if(ge=ot.to,Le=ht,le=="around"){var St=a.sel.ranges[qe],_t=Yt(St.head,St.anchor)<0;ie[qe]=new Rn(_t?ht:lt,_t?lt:ht)}else ie[qe]=new Rn(lt,lt)}return new Ii(ie,a.sel.primIndex)}function as(a){a.doc.mode=Ut(a.options,a.doc.modeOption),no(a)}function no(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,to(a,100),a.state.modeGen++,a.curOp&&Ei(a)}function Us(a,b){return b.from.ch==0&&b.to.ch==0&&st(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function os(a,b,le,ie){function ge(Hr){return le?le[Hr]:null}function Le(Hr,Lr,Zr){Xn(Hr,Lr,Zr,ie),Kn(Hr,"change",Hr,b)}function qe(Hr,Lr){for(var Zr=[],rn=Hr;rn<Lr;++rn)Zr.push(new Bn(ht[rn],ge(rn),ie));return Zr}var ot=b.from,lt=b.to,ht=b.text,St=Mt(a,ot.line),_t=Mt(a,lt.line),Ft=st(ht),Nt=ge(ht.length-1),nr=lt.line-ot.line;if(b.full)a.insert(0,qe(0,ht.length)),a.remove(ht.length,a.size-ht.length);else if(Us(a,b)){var mr=qe(0,ht.length-1);Le(_t,_t.text,Nt),nr&&a.remove(ot.line,nr),mr.length&&a.insert(ot.line,mr)}else if(St==_t)if(ht.length==1)Le(St,St.text.slice(0,ot.ch)+Ft+St.text.slice(lt.ch),Nt);else{var jr=qe(1,ht.length-1);jr.push(new Bn(Ft+St.text.slice(lt.ch),Nt,ie)),Le(St,St.text.slice(0,ot.ch)+ht[0],ge(0)),a.insert(ot.line+1,jr)}else if(ht.length==1)Le(St,St.text.slice(0,ot.ch)+ht[0]+_t.text.slice(lt.ch),ge(0)),a.remove(ot.line+1,nr);else{Le(St,St.text.slice(0,ot.ch)+ht[0],ge(0)),Le(_t,Ft+_t.text.slice(lt.ch),Nt);var Nr=qe(1,ht.length-1);nr>1&&a.remove(ot.line+1,nr-1),a.insert(ot.line+1,Nr)}Kn(a,"change",a,b)}function pa(a,b,le){function ie(ge,Le,qe){if(ge.linked)for(var ot=0;ot<ge.linked.length;++ot){var lt=ge.linked[ot];if(lt.doc!=Le){var ht=qe&&lt.sharedHist;le&&!ht||(b(lt.doc,ht),ie(lt.doc,ge,ht))}}}ie(a,null,!0)}function Hs(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,Xo(a),as(a),Zs(a),a.options.lineWrapping||kn(a),a.options.mode=b.modeOption,Ei(a)}function Zs(a){(a.doc.direction=="rtl"?De:Pe)(a.display.lineDiv,"CodeMirror-rtl")}function su(a){Oi(a,function(){Zs(a),Ei(a)})}function jo(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 ss(a,b){var le={from:gr(b.from),to:ha(b),text:cr(a,b.from,b.to)};return Ks(a,le,b.from.line,b.to.line+1),pa(a,function(ie){return Ks(ie,le,b.from.line,b.to.line+1)},!0),le}function zs(a){for(;a.length;){var b=st(a);if(b.ranges)a.pop();else break}}function lu(a,b){if(b)return zs(a.done),st(a.done);if(a.done.length&&!st(a.done).ranges)return st(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),st(a.done)}function Gs(a,b,le,ie){var ge=a.history;ge.undone.length=0;var Le=+new Date,qe,ot;if((ge.lastOp==ie||ge.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ge.lastModTime>Le-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(qe=lu(ge,ge.lastOp==ie)))ot=st(qe.changes),Yt(b.from,b.to)==0&&Yt(b.from,ot.to)==0?ot.to=ha(b):qe.changes.push(ss(a,b));else{var lt=st(ge.done);for((!lt||!lt.ranges)&&Po(a.sel,ge.done),qe={changes:[ss(a,b)],generation:ge.generation},ge.done.push(qe);ge.done.length>ge.undoDepth;)ge.done.shift(),ge.done[0].ranges||ge.done.shift()}ge.done.push(le),ge.generation=++ge.maxGeneration,ge.lastModTime=ge.lastSelTime=Le,ge.lastOp=ge.lastSelOp=ie,ge.lastOrigin=ge.lastSelOrigin=b.origin,ot||mt(a,"historyAdded")}function uu(a,b,le,ie){var ge=b.charAt(0);return ge=="*"||ge=="+"&&le.ranges.length==ie.ranges.length&&le.somethingSelected()==ie.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function cu(a,b,le,ie){var ge=a.history,Le=ie&&ie.origin;le==ge.lastSelOp||Le&&ge.lastSelOrigin==Le&&(ge.lastModTime==ge.lastSelTime&&ge.lastOrigin==Le||uu(a,Le,st(ge.done),b))?ge.done[ge.done.length-1]=b:Po(b,ge.done),ge.lastSelTime=+new Date,ge.lastSelOrigin=Le,ge.lastSelOp=le,ie&&ie.clearRedo!==!1&&zs(ge.undone)}function Po(a,b){var le=st(b);le&&le.ranges&&le.equals(a)||b.push(a)}function Ks(a,b,le,ie){var ge=b["spans_"+a.id],Le=0;a.iter(Math.max(a.first,le),Math.min(a.first+a.size,ie),function(qe){qe.markedSpans&&((ge||(ge=b["spans_"+a.id]={}))[Le]=qe.markedSpans),++Le})}function fu(a){if(!a)return null;for(var b,le=0;le<a.length;++le)a[le].marker.explicitlyCleared?b||(b=a.slice(0,le)):b&&b.push(a[le]);return b?b.length?b:null:a}function du(a,b){var le=b["spans_"+a.id];if(!le)return null;for(var ie=[],ge=0;ge<b.text.length;++ge)ie.push(fu(le[ge]));return ie}function Vs(a,b){var le=du(a,b),ie=Qr(a,b);if(!le)return ie;if(!ie)return le;for(var ge=0;ge<le.length;++ge){var Le=le[ge],qe=ie[ge];if(Le&&qe)e:for(var ot=0;ot<qe.length;++ot){for(var lt=qe[ot],ht=0;ht<Le.length;++ht)if(Le[ht].marker==lt.marker)continue e;Le.push(lt)}else qe&&(le[ge]=qe)}return le}function Ia(a,b,le){for(var ie=[],ge=0;ge<a.length;++ge){var Le=a[ge];if(Le.ranges){ie.push(le?Ii.prototype.deepCopy.call(Le):Le);continue}var qe=Le.changes,ot=[];ie.push({changes:ot});for(var lt=0;lt<qe.length;++lt){var ht=qe[lt],St=void 0;if(ot.push({from:ht.from,to:ht.to,text:ht.text}),b)for(var _t in ht)(St=_t.match(/^spans_(\d+)$/))&&et(b,Number(St[1]))>-1&&(st(ot)[_t]=ht[_t],delete ht[_t])}}return ie}function ls(a,b,le,ie){if(ie){var ge=a.anchor;if(le){var Le=Yt(b,ge)<0;Le!=Yt(le,ge)<0?(ge=b,b=le):Le!=Yt(b,le)<0&&(b=le)}return new Rn(ge,b)}else return new Rn(le||b,b)}function Mo(a,b,le,ie,ge){ge==null&&(ge=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ii([ls(a.sel.primary(),b,le,ge)],0),ie)}function Xs(a,b,le){for(var ie=[],ge=a.cm&&(a.cm.display.shift||a.extend),Le=0;Le<a.sel.ranges.length;Le++)ie[Le]=ls(a.sel.ranges[Le],b[Le],null,ge);var qe=Ki(a.cm,ie,a.sel.primIndex);hi(a,qe,le)}function us(a,b,le,ie){var ge=a.sel.ranges.slice(0);ge[b]=le,hi(a,Ki(a.cm,ge,a.sel.primIndex),ie)}function Ys(a,b,le,ie){hi(a,da(b,le),ie)}function hu(a,b,le){var ie={ranges:b.ranges,update:function(ge){this.ranges=[];for(var Le=0;Le<ge.length;Le++)this.ranges[Le]=new Rn(Gt(a,ge[Le].anchor),Gt(a,ge[Le].head))},origin:le&&le.origin};return mt(a,"beforeSelectionChange",a,ie),a.cm&&mt(a.cm,"beforeSelectionChange",a.cm,ie),ie.ranges!=b.ranges?Ki(a.cm,ie.ranges,ie.ranges.length-1):b}function Js(a,b,le){var ie=a.history.done,ge=st(ie);ge&&ge.ranges?(ie[ie.length-1]=b,Io(a,b,le)):hi(a,b,le)}function hi(a,b,le){Io(a,b,le),cu(a,a.sel,a.cm?a.cm.curOp.id:NaN,le)}function Io(a,b,le){(wt(a,"beforeSelectionChange")||a.cm&&wt(a.cm,"beforeSelectionChange"))&&(b=hu(a,b,le));var ie=le&&le.bias||(Yt(b.primary().head,a.sel.primary().head)<0?-1:1);Qs(a,el(a,b,ie,!0)),!(le&&le.scroll===!1)&&a.cm&&Pa(a.cm)}function Qs(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,bt(a.cm)),Kn(a,"cursorActivity",a))}function $s(a){Qs(a,el(a,a.sel,null,!1))}function el(a,b,le,ie){for(var ge,Le=0;Le<b.ranges.length;Le++){var qe=b.ranges[Le],ot=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Le],lt=Ro(a,qe.anchor,ot&&ot.anchor,le,ie),ht=Ro(a,qe.head,ot&&ot.head,le,ie);(ge||lt!=qe.anchor||ht!=qe.head)&&(ge||(ge=b.ranges.slice(0,Le)),ge[Le]=new Rn(lt,ht))}return ge?Ki(a.cm,ge,b.primIndex):b}function Ra(a,b,le,ie,ge){var Le=Mt(a,b.line);if(Le.markedSpans)for(var qe=0;qe<Le.markedSpans.length;++qe){var ot=Le.markedSpans[qe],lt=ot.marker,ht="selectLeft"in lt?!lt.selectLeft:lt.inclusiveLeft,St="selectRight"in lt?!lt.selectRight:lt.inclusiveRight;if((ot.from==null||(ht?ot.from<=b.ch:ot.from<b.ch))&&(ot.to==null||(St?ot.to>=b.ch:ot.to>b.ch))){if(ge&&(mt(lt,"beforeCursorEnter"),lt.explicitlyCleared))if(Le.markedSpans){--qe;continue}else break;if(!lt.atomic)continue;if(le){var _t=lt.find(ie<0?1:-1),Ft=void 0;if((ie<0?St:ht)&&(_t=tl(a,_t,-ie,_t&&_t.line==b.line?Le:null)),_t&&_t.line==b.line&&(Ft=Yt(_t,le))&&(ie<0?Ft<0:Ft>0))return Ra(a,_t,b,ie,ge)}var Nt=lt.find(ie<0?-1:1);return(ie<0?ht:St)&&(Nt=tl(a,Nt,ie,Nt.line==b.line?Le:null)),Nt?Ra(a,Nt,b,ie,ge):null}}return b}function Ro(a,b,le,ie,ge){var Le=ie||1,qe=Ra(a,b,le,Le,ge)||!ge&&Ra(a,b,le,Le,!0)||Ra(a,b,le,-Le,ge)||!ge&&Ra(a,b,le,-Le,!0);return qe||(a.cantEdit=!0,Dt(a.first,0))}function tl(a,b,le,ie){return le<0&&b.ch==0?b.line>a.first?Gt(a,Dt(b.line-1)):null:le>0&&b.ch==(ie||Mt(a,b.line)).text.length?b.line<a.first+a.size-1?Dt(b.line+1,0):null:new Dt(b.line,b.ch+le)}function rl(a){a.setSelection(Dt(a.firstLine(),0),Dt(a.lastLine()),Xe)}function nl(a,b,le){var ie={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return ie.canceled=!0}};return le&&(ie.update=function(ge,Le,qe,ot){ge&&(ie.from=Gt(a,ge)),Le&&(ie.to=Gt(a,Le)),qe&&(ie.text=qe),ot!==void 0&&(ie.origin=ot)}),mt(a,"beforeChange",a,ie),a.cm&&mt(a.cm,"beforeChange",a.cm,ie),ie.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:ie.from,to:ie.to,text:ie.text,origin:ie.origin}}function Ba(a,b,le){if(a.cm){if(!a.cm.curOp)return ii(a.cm,Ba)(a,b,le);if(a.cm.state.suppressEdits)return}if(!((wt(a,"beforeChange")||a.cm&&wt(a.cm,"beforeChange"))&&(b=nl(a,b,!0),!b))){var ie=En&&!le&&Sn(a,b.from,b.to);if(ie)for(var ge=ie.length-1;ge>=0;--ge)il(a,{from:ie[ge].from,to:ie[ge].to,text:ge?[""]:b.text,origin:b.origin});else il(a,b)}}function il(a,b){if(!(b.text.length==1&&b.text[0]==""&&Yt(b.from,b.to)==0)){var le=is(a,b);Gs(a,b,le,a.cm?a.cm.curOp.id:NaN),io(a,b,le,Qr(a,b));var ie=[];pa(a,function(ge,Le){!Le&&et(ie,ge.history)==-1&&(ll(ge.history,b),ie.push(ge.history)),io(ge,b,null,Qr(ge,b))})}}function Bo(a,b,le){var ie=a.cm&&a.cm.state.suppressEdits;if(!(ie&&!le)){for(var ge=a.history,Le,qe=a.sel,ot=b=="undo"?ge.done:ge.undone,lt=b=="undo"?ge.undone:ge.done,ht=0;ht<ot.length&&(Le=ot[ht],!(le?Le.ranges&&!Le.equals(a.sel):!Le.ranges));ht++);if(ht!=ot.length){for(ge.lastOrigin=ge.lastSelOrigin=null;;)if(Le=ot.pop(),Le.ranges){if(Po(Le,lt),le&&!Le.equals(a.sel)){hi(a,Le,{clearRedo:!1});return}qe=Le}else if(ie){ot.push(Le);return}else break;var St=[];Po(qe,lt),lt.push({changes:St,generation:ge.generation}),ge.generation=Le.generation||++ge.maxGeneration;for(var _t=wt(a,"beforeChange")||a.cm&&wt(a.cm,"beforeChange"),Ft=function(mr){var jr=Le.changes[mr];if(jr.origin=b,_t&&!nl(a,jr,!1))return ot.length=0,{};St.push(ss(a,jr));var Nr=mr?is(a,jr):st(ot);io(a,jr,Nr,Vs(a,jr)),!mr&&a.cm&&a.cm.scrollIntoView({from:jr.from,to:ha(jr)});var Hr=[];pa(a,function(Lr,Zr){!Zr&&et(Hr,Lr.history)==-1&&(ll(Lr.history,jr),Hr.push(Lr.history)),io(Lr,jr,null,Vs(Lr,jr))})},Nt=Le.changes.length-1;Nt>=0;--Nt){var nr=Ft(Nt);if(nr)return nr.v}}}}function al(a,b){if(b!=0&&(a.first+=b,a.sel=new Ii($e(a.sel.ranges,function(ge){return new Rn(Dt(ge.anchor.line+b,ge.anchor.ch),Dt(ge.head.line+b,ge.head.ch))}),a.sel.primIndex),a.cm)){Ei(a.cm,a.first,a.first-b,b);for(var le=a.cm.display,ie=le.viewFrom;ie<le.viewTo;ie++)ca(a.cm,ie,"gutter")}}function io(a,b,le,ie){if(a.cm&&!a.cm.curOp)return ii(a.cm,io)(a,b,le,ie);if(b.to.line<a.first){al(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ge=b.text.length-1-(a.first-b.from.line);al(a,ge),b={from:Dt(a.first,0),to:Dt(b.to.line+ge,b.to.ch),text:[st(b.text)],origin:b.origin}}var Le=a.lastLine();b.to.line>Le&&(b={from:b.from,to:Dt(Le,Mt(a,Le).text.length),text:[b.text[0]],origin:b.origin}),b.removed=cr(a,b.from,b.to),le||(le=is(a,b)),a.cm?pu(a.cm,b,ie):os(a,b,ie),Io(a,le,Xe),a.cantEdit&&Ro(a,Dt(a.firstLine(),0))&&(a.cantEdit=!1)}}function pu(a,b,le){var ie=a.doc,ge=a.display,Le=b.from,qe=b.to,ot=!1,lt=Le.line;a.options.lineWrapping||(lt=Ct(zt(Mt(ie,Le.line))),ie.iter(lt,qe.line+1,function(Nt){if(Nt==ge.maxLine)return ot=!0,!0})),ie.sel.contains(b.from,b.to)>-1&&bt(a),os(ie,b,le,xs(a)),a.options.lineWrapping||(ie.iter(lt,Le.line+b.text.length,function(Nt){var nr=jn(Nt);nr>ge.maxLineLength&&(ge.maxLine=Nt,ge.maxLineLength=nr,ge.maxLineChanged=!0,ot=!1)}),ot&&(a.curOp.updateMaxLine=!0)),Dn(ie,Le.line),to(a,400);var ht=b.text.length-(qe.line-Le.line)-1;b.full?Ei(a):Le.line==qe.line&&b.text.length==1&&!Us(a.doc,b)?ca(a,Le.line,"text"):Ei(a,Le.line,qe.line+1,ht);var St=wt(a,"changes"),_t=wt(a,"change");if(_t||St){var Ft={from:Le,to:qe,text:b.text,removed:b.removed,origin:b.origin};_t&&Kn(a,"change",a,Ft),St&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ft)}a.display.selForContextMenu=null}function Na(a,b,le,ie,ge){var Le;ie||(ie=le),Yt(ie,le)<0&&(Le=[ie,le],le=Le[0],ie=Le[1]),typeof b=="string"&&(b=a.splitLines(b)),Ba(a,{from:le,to:ie,text:b,origin:ge})}function ol(a,b,le,ie){le<a.line?a.line+=ie:b<a.line&&(a.line=b,a.ch=0)}function sl(a,b,le,ie){for(var ge=0;ge<a.length;++ge){var Le=a[ge],qe=!0;if(Le.ranges){Le.copied||(Le=a[ge]=Le.deepCopy(),Le.copied=!0);for(var ot=0;ot<Le.ranges.length;ot++)ol(Le.ranges[ot].anchor,b,le,ie),ol(Le.ranges[ot].head,b,le,ie);continue}for(var lt=0;lt<Le.changes.length;++lt){var ht=Le.changes[lt];if(le<ht.from.line)ht.from=Dt(ht.from.line+ie,ht.from.ch),ht.to=Dt(ht.to.line+ie,ht.to.ch);else if(b<=ht.to.line){qe=!1;break}}qe||(a.splice(0,ge+1),ge=0)}}function ll(a,b){var le=b.from.line,ie=b.to.line,ge=b.text.length-(ie-le)-1;sl(a.done,le,ie,ge),sl(a.undone,le,ie,ge)}function ao(a,b,le,ie){var ge=b,Le=b;return typeof b=="number"?Le=Mt(a,br(a,b)):ge=Ct(b),ge==null?null:(ie(Le,ge)&&a.cm&&ca(a.cm,ge,le),Le)}function oo(a){this.lines=a,this.parent=null;for(var b=0,le=0;le<a.length;++le)a[le].parent=this,b+=a[le].height;this.height=b}oo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var le=a,ie=a+b;le<ie;++le){var ge=this.lines[le];this.height-=ge.height,Gn(ge),Kn(ge,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,le){this.height+=le,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var ie=0;ie<b.length;++ie)b[ie].parent=this},iterN:function(a,b,le){for(var ie=a+b;a<ie;++a)if(le(this.lines[a]))return!0}};function so(a){this.children=a;for(var b=0,le=0,ie=0;ie<a.length;++ie){var ge=a[ie];b+=ge.chunkSize(),le+=ge.height,ge.parent=this}this.size=b,this.height=le,this.parent=null}so.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var le=0;le<this.children.length;++le){var ie=this.children[le],ge=ie.chunkSize();if(a<ge){var Le=Math.min(b,ge-a),qe=ie.height;if(ie.removeInner(a,Le),this.height-=qe-ie.height,ge==Le&&(this.children.splice(le--,1),ie.parent=null),(b-=Le)==0)break;a=0}else a-=ge}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof oo))){var ot=[];this.collapse(ot),this.children=[new oo(ot)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,le){this.size+=b.length,this.height+=le;for(var ie=0;ie<this.children.length;++ie){var ge=this.children[ie],Le=ge.chunkSize();if(a<=Le){if(ge.insertInner(a,b,le),ge.lines&&ge.lines.length>50){for(var qe=ge.lines.length%25+25,ot=qe;ot<ge.lines.length;){var lt=new oo(ge.lines.slice(ot,ot+=25));ge.height-=lt.height,this.children.splice(++ie,0,lt),lt.parent=this}ge.lines=ge.lines.slice(0,qe),this.maybeSpill()}break}a-=Le}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),le=new so(b);if(a.parent){a.size-=le.size,a.height-=le.height;var ge=et(a.parent.children,a);a.parent.children.splice(ge+1,0,le)}else{var ie=new so(a.children);ie.parent=a,a.children=[ie,le],a=ie}le.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,le){for(var ie=0;ie<this.children.length;++ie){var ge=this.children[ie],Le=ge.chunkSize();if(a<Le){var qe=Math.min(b,Le-a);if(ge.iterN(a,qe,le))return!0;if((b-=qe)==0)break;a=0}else a-=Le}}};var lo=function(a,b,le){if(le)for(var ie in le)le.hasOwnProperty(ie)&&(this[ie]=le[ie]);this.doc=a,this.node=b};lo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,le=this.line,ie=Ct(le);if(!(ie==null||!b)){for(var ge=0;ge<b.length;++ge)b[ge]==this&&b.splice(ge--,1);b.length||(le.widgets=null);var Le=vi(this);Br(le,Math.max(0,le.height-Le)),a&&(Oi(a,function(){ul(a,le,-Le),ca(a,ie,"widget")}),Kn(a,"lineWidgetCleared",a,this,ie))}},lo.prototype.changed=function(){var a=this,b=this.height,le=this.doc.cm,ie=this.line;this.height=null;var ge=vi(this)-b;ge&&(dn(this.doc,ie)||Br(ie,ie.height+ge),le&&Oi(le,function(){le.curOp.forceUpdate=!0,ul(le,ie,ge),Kn(le,"lineWidgetChanged",le,a,Ct(ie))}))},At(lo);function ul(a,b,le){on(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&$o(a,le)}function mu(a,b,le,ie){var ge=new lo(a,le,ie),Le=a.cm;return Le&&ge.noHScroll&&(Le.display.alignWidgets=!0),ao(a,b,"widget",function(qe){var ot=qe.widgets||(qe.widgets=[]);if(ge.insertAt==null?ot.push(ge):ot.splice(Math.min(ot.length-1,Math.max(0,ge.insertAt)),0,ge),ge.line=qe,Le&&!dn(a,qe)){var lt=on(qe)<a.scrollTop;Br(qe,qe.height+vi(ge)),lt&&$o(Le,ge.height),Le.curOp.forceUpdate=!0}return!0}),Le&&Kn(Le,"lineWidgetAdded",Le,ge,typeof b=="number"?b:Ct(b)),ge}var cl=0,ma=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++cl};ma.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&Ca(a),wt(this,"clear")){var le=this.find();le&&Kn(this,"clear",le.from,le.to)}for(var ie=null,ge=null,Le=0;Le<this.lines.length;++Le){var qe=this.lines[Le],ot=zr(qe.markedSpans,this);a&&!this.collapsed?ca(a,Ct(qe),"text"):a&&(ot.to!=null&&(ge=Ct(qe)),ot.from!=null&&(ie=Ct(qe))),qe.markedSpans=Kr(qe.markedSpans,ot),ot.from==null&&this.collapsed&&!dn(this.doc,qe)&&a&&Br(qe,Di(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var lt=0;lt<this.lines.length;++lt){var ht=zt(this.lines[lt]),St=jn(ht);St>a.display.maxLineLength&&(a.display.maxLine=ht,a.display.maxLineLength=St,a.display.maxLineChanged=!0)}ie!=null&&a&&this.collapsed&&Ei(a,ie,ge+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&$s(a.doc)),a&&Kn(a,"markerCleared",a,this,ie,ge),b&&ka(a),this.parent&&this.parent.clear()}},ma.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var le,ie,ge=0;ge<this.lines.length;++ge){var Le=this.lines[ge],qe=zr(Le.markedSpans,this);if(qe.from!=null&&(le=Dt(b?Le:Ct(Le),qe.from),a==-1))return le;if(qe.to!=null&&(ie=Dt(b?Le:Ct(Le),qe.to),a==1))return ie}return le&&{from:le,to:ie}},ma.prototype.changed=function(){var a=this,b=this.find(-1,!0),le=this,ie=this.doc.cm;!b||!ie||Oi(ie,function(){var ge=b.line,Le=Ct(b.line),qe=Qi(ie,Le);if(qe&&(Ka(qe),ie.curOp.selectionChanged=ie.curOp.forceUpdate=!0),ie.curOp.updateMaxLine=!0,!dn(le.doc,ge)&&le.height!=null){var ot=le.height;le.height=null;var lt=vi(le)-ot;lt&&Br(ge,ge.height+lt)}Kn(ie,"markerChanged",ie,a)})},ma.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||et(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},ma.prototype.detachLine=function(a){if(this.lines.splice(et(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},At(ma);function La(a,b,le,ie,ge){if(ie&&ie.shared)return vu(a,b,le,ie,ge);if(a.cm&&!a.cm.curOp)return ii(a.cm,La)(a,b,le,ie,ge);var Le=new ma(a,ge),qe=Yt(b,le);if(ie&&it(ie,Le,!1),qe>0||qe==0&&Le.clearWhenEmpty!==!1)return Le;if(Le.replacedWith&&(Le.collapsed=!0,Le.widgetNode=Ae("span",[Le.replacedWith],"CodeMirror-widget"),ie.handleMouseEvents||Le.widgetNode.setAttribute("cm-ignore-events","true"),ie.insertLeft&&(Le.widgetNode.insertLeft=!0)),Le.collapsed){if(tr(a,b.line,b,le,Le)||b.line!=le.line&&tr(a,le.line,b,le,Le))throw new Error("Inserting collapsed marker partially overlapping an existing one");dr()}Le.addToHistory&&Gs(a,{from:b,to:le,origin:"markText"},a.sel,NaN);var ot=b.line,lt=a.cm,ht;if(a.iter(ot,le.line+1,function(_t){lt&&Le.collapsed&&!lt.options.lineWrapping&&zt(_t)==lt.display.maxLine&&(ht=!0),Le.collapsed&&ot!=b.line&&Br(_t,0),Vr(_t,new Rr(Le,ot==b.line?b.ch:null,ot==le.line?le.ch:null)),++ot}),Le.collapsed&&a.iter(b.line,le.line+1,function(_t){dn(a,_t)&&Br(_t,0)}),Le.clearOnEnter&&Et(Le,"beforeCursorEnter",function(){return Le.clear()}),Le.readOnly&&(On(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Le.collapsed&&(Le.id=++cl,Le.atomic=!0),lt){if(ht&&(lt.curOp.updateMaxLine=!0),Le.collapsed)Ei(lt,b.line,le.line+1);else if(Le.className||Le.startStyle||Le.endStyle||Le.css||Le.attributes||Le.title)for(var St=b.line;St<=le.line;St++)ca(lt,St,"text");Le.atomic&&$s(lt.doc),Kn(lt,"markerAdded",lt,Le)}return Le}var uo=function(a,b){this.markers=a,this.primary=b;for(var le=0;le<a.length;++le)a[le].parent=this};uo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Kn(this,"clear")}},uo.prototype.find=function(a,b){return this.primary.find(a,b)},At(uo);function vu(a,b,le,ie,ge){ie=it(ie),ie.shared=!1;var Le=[La(a,b,le,ie,ge)],qe=Le[0],ot=ie.widgetNode;return pa(a,function(lt){ot&&(ie.widgetNode=ot.cloneNode(!0)),Le.push(La(lt,Gt(lt,b),Gt(lt,le),ie,ge));for(var ht=0;ht<lt.linked.length;++ht)if(lt.linked[ht].isParent)return;qe=st(Le)}),new uo(Le,qe)}function fl(a){return a.findMarks(Dt(a.first,0),a.clipPos(Dt(a.lastLine())),function(b){return b.parent})}function gu(a,b){for(var le=0;le<b.length;le++){var ie=b[le],ge=ie.find(),Le=a.clipPos(ge.from),qe=a.clipPos(ge.to);if(Yt(Le,qe)){var ot=La(a,Le,qe,ie.primary,ie.primary.type);ie.markers.push(ot),ot.parent=ie}}}function yu(a){for(var b=function(ie){var ge=a[ie],Le=[ge.primary.doc];pa(ge.primary.doc,function(lt){return Le.push(lt)});for(var qe=0;qe<ge.markers.length;qe++){var ot=ge.markers[qe];et(Le,ot.doc)==-1&&(ot.parent=null,ge.markers.splice(qe--,1))}},le=0;le<a.length;le++)b(le)}var bu=0,Si=function(a,b,le,ie,ge){if(!(this instanceof Si))return new Si(a,b,le,ie,ge);le==null&&(le=0),so.call(this,[new oo([new Bn("",null)])]),this.first=le,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=le;var Le=Dt(le,0);this.sel=da(Le),this.history=new jo(null),this.id=++bu,this.modeOption=b,this.lineSep=ie,this.direction=ge=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),os(this,{from:Le,to:Le,text:a}),hi(this,da(Le),Xe)};Si.prototype=ne(so.prototype,{constructor:Si,iter:function(a,b,le){le?this.iterN(a-this.first,b-a,le):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var le=0,ie=0;ie<b.length;++ie)le+=b[ie].height;this.insertInner(a-this.first,b,le)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Ar(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:ai(function(a){var b=Dt(this.first,0),le=this.first+this.size-1;Ba(this,{from:b,to:Dt(le,Mt(this,le).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qa(this.cm,0,0),hi(this,da(b),Xe)}),replaceRange:function(a,b,le,ie){b=Gt(this,b),le=le?Gt(this,le):b,Na(this,a,b,le,ie)},getRange:function(a,b,le){var ie=cr(this,Gt(this,a),Gt(this,b));return le===!1?ie:ie.join(le||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(ar(this,a))return Mt(this,a)},getLineNumber:function(a){return Ct(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Mt(this,a)),zt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Gt(this,a)},getCursor:function(a){var b=this.sel.primary(),le;return a==null||a=="head"?le=b.head:a=="anchor"?le=b.anchor:a=="end"||a=="to"||a===!1?le=b.to():le=b.from(),le},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ai(function(a,b,le){Ys(this,Gt(this,typeof a=="number"?Dt(a,b||0):a),null,le)}),setSelection:ai(function(a,b,le){Ys(this,Gt(this,a),Gt(this,b||a),le)}),extendSelection:ai(function(a,b,le){Mo(this,Gt(this,a),b&&Gt(this,b),le)}),extendSelections:ai(function(a,b){Xs(this,ir(this,a),b)}),extendSelectionsBy:ai(function(a,b){var le=$e(this.sel.ranges,a);Xs(this,ir(this,le),b)}),setSelections:ai(function(a,b,le){if(a.length){for(var ie=[],ge=0;ge<a.length;ge++)ie[ge]=new Rn(Gt(this,a[ge].anchor),Gt(this,a[ge].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),hi(this,Ki(this.cm,ie,b),le)}}),addSelection:ai(function(a,b,le){var ie=this.sel.ranges.slice(0);ie.push(new Rn(Gt(this,a),Gt(this,b||a))),hi(this,Ki(this.cm,ie,ie.length-1),le)}),getSelection:function(a){for(var b=this.sel.ranges,le,ie=0;ie<b.length;ie++){var ge=cr(this,b[ie].from(),b[ie].to());le=le?le.concat(ge):ge}return a===!1?le:le.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],le=this.sel.ranges,ie=0;ie<le.length;ie++){var ge=cr(this,le[ie].from(),le[ie].to());a!==!1&&(ge=ge.join(a||this.lineSeparator())),b[ie]=ge}return b},replaceSelection:function(a,b,le){for(var ie=[],ge=0;ge<this.sel.ranges.length;ge++)ie[ge]=a;this.replaceSelections(ie,b,le||"+input")},replaceSelections:ai(function(a,b,le){for(var ie=[],ge=this.sel,Le=0;Le<ge.ranges.length;Le++){var qe=ge.ranges[Le];ie[Le]={from:qe.from(),to:qe.to(),text:this.splitLines(a[Le]),origin:le}}for(var ot=b&&b!="end"&&ou(this,ie,b),lt=ie.length-1;lt>=0;lt--)Ba(this,ie[lt]);ot?Js(this,ot):this.cm&&Pa(this.cm)}),undo:ai(function(){Bo(this,"undo")}),redo:ai(function(){Bo(this,"redo")}),undoSelection:ai(function(){Bo(this,"undo",!0)}),redoSelection:ai(function(){Bo(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,le=0,ie=0;ie<a.done.length;ie++)a.done[ie].ranges||++b;for(var ge=0;ge<a.undone.length;ge++)a.undone[ge].ranges||++le;return{undo:b,redo:le}},clearHistory:function(){var a=this;this.history=new jo(this.history.maxGeneration),pa(this,function(b){return b.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:Ia(this.history.done),undone:Ia(this.history.undone)}},setHistory:function(a){var b=this.history=new jo(this.history.maxGeneration);b.done=Ia(a.done.slice(0),null,!0),b.undone=Ia(a.undone.slice(0),null,!0)},setGutterMarker:ai(function(a,b,le){return ao(this,a,"gutter",function(ie){var ge=ie.gutterMarkers||(ie.gutterMarkers={});return ge[b]=le,!le&&we(ge)&&(ie.gutterMarkers=null),!0})}),clearGutter:ai(function(a){var b=this;this.iter(function(le){le.gutterMarkers&&le.gutterMarkers[a]&&ao(b,le,"gutter",function(){return le.gutterMarkers[a]=null,we(le.gutterMarkers)&&(le.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!ar(this,a)||(b=a,a=Mt(this,a),!a))return null}else if(b=Ct(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:ai(function(a,b,le){return ao(this,a,b=="gutter"?"gutter":"class",function(ie){var ge=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!ie[ge])ie[ge]=le;else{if(Te(le).test(ie[ge]))return!1;ie[ge]+=" "+le}return!0})}),removeLineClass:ai(function(a,b,le){return ao(this,a,b=="gutter"?"gutter":"class",function(ie){var ge=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Le=ie[ge];if(Le)if(le==null)ie[ge]=null;else{var qe=Le.match(Te(le));if(!qe)return!1;var ot=qe.index+qe[0].length;ie[ge]=Le.slice(0,qe.index)+(!qe.index||ot==Le.length?"":" ")+Le.slice(ot)||null}else return!1;return!0})}),addLineWidget:ai(function(a,b,le){return mu(this,a,b,le)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,le){return La(this,Gt(this,a),Gt(this,b),le,le&&le.type||"range")},setBookmark:function(a,b){var le={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=Gt(this,a),La(this,a,a,le,"bookmark")},findMarksAt:function(a){a=Gt(this,a);var b=[],le=Mt(this,a.line).markedSpans;if(le)for(var ie=0;ie<le.length;++ie){var ge=le[ie];(ge.from==null||ge.from<=a.ch)&&(ge.to==null||ge.to>=a.ch)&&b.push(ge.marker.parent||ge.marker)}return b},findMarks:function(a,b,le){a=Gt(this,a),b=Gt(this,b);var ie=[],ge=a.line;return this.iter(a.line,b.line+1,function(Le){var qe=Le.markedSpans;if(qe)for(var ot=0;ot<qe.length;ot++){var lt=qe[ot];!(lt.to!=null&&ge==a.line&&a.ch>=lt.to||lt.from==null&&ge!=a.line||lt.from!=null&&ge==b.line&&lt.from>=b.ch)&&(!le||le(lt.marker))&&ie.push(lt.marker.parent||lt.marker)}++ge}),ie},getAllMarks:function(){var a=[];return this.iter(function(b){var le=b.markedSpans;if(le)for(var ie=0;ie<le.length;++ie)le[ie].from!=null&&a.push(le[ie].marker)}),a},posFromIndex:function(a){var b,le=this.first,ie=this.lineSeparator().length;return this.iter(function(ge){var Le=ge.text.length+ie;if(Le>a)return b=a,!0;a-=Le,++le}),Gt(this,Dt(le,b))},indexFromPos:function(a){a=Gt(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var le=this.lineSeparator().length;return this.iter(this.first,a.line,function(ie){b+=ie.text.length+le}),b},copy:function(a){var b=new Si(Ar(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,le=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<le&&(le=a.to);var ie=new Si(Ar(this,b,le),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(ie.history=this.history),(this.linked||(this.linked=[])).push({doc:ie,sharedHist:a.sharedHist}),ie.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(ie,fl(this)),ie},unlinkDoc:function(a){if(a instanceof Zn&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var le=this.linked[b];if(le.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),yu(fl(this));break}}if(a.history==this.history){var ie=[a.id];pa(a,function(ge){return ie.push(ge.id)},!0),a.history=new jo(null),a.history.done=Ia(this.history.done,ie),a.history.undone=Ia(this.history.undone,ie)}},iterLinkedDocs:function(a){pa(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):sr(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:ai(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&su(this.cm))})}),Si.prototype.eachLine=Si.prototype.iter;var dl=0;function wu(a){var b=this;if(hl(b),!(dt(b,a)||ui(b.display,a))){jt(a),ye&&(dl=+new Date);var le=wa(b,a,!0),ie=a.dataTransfer.files;if(!(!le||b.isReadOnly()))if(ie&&ie.length&&window.FileReader&&window.File)for(var ge=ie.length,Le=Array(ge),qe=0,ot=function(){++qe==ge&&ii(b,function(){le=Gt(b.doc,le);var Nt={from:le,to:le,text:b.doc.splitLines(Le.filter(function(nr){return nr!=null}).join(b.doc.lineSeparator())),origin:"paste"};Ba(b.doc,Nt),Js(b.doc,da(Gt(b.doc,le),Gt(b.doc,ha(Nt))))})()},lt=function(Nt,nr){if(b.options.allowDropFileTypes&&et(b.options.allowDropFileTypes,Nt.type)==-1){ot();return}var mr=new FileReader;mr.onerror=function(){return ot()},mr.onload=function(){var jr=mr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(jr)){ot();return}Le[nr]=jr,ot()},mr.readAsText(Nt)},ht=0;ht<ie.length;ht++)lt(ie[ht],ht);else{if(b.state.draggingText&&b.doc.sel.contains(le)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var St=a.dataTransfer.getData("Text");if(St){var _t;if(b.state.draggingText&&!b.state.draggingText.copy&&(_t=b.listSelections()),Io(b.doc,da(le,le)),_t)for(var Ft=0;Ft<_t.length;++Ft)Na(b.doc,"",_t[Ft].anchor,_t[Ft].head,"drag");b.replaceSelection(St,"around","paste"),b.display.input.focus()}}catch(Nt){}}}}function xu(a,b){if(ye&&(!a.state.draggingText||+new Date-dl<100)){$t(b);return}if(!(dt(a,b)||ui(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!de)){var le=xe("img",null,null,"position: fixed; left: 0; top: 0;");le.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(le.width=le.height=1,a.display.wrapper.appendChild(le),le._top=le.offsetTop),b.dataTransfer.setDragImage(le,0,0),ee&&le.parentNode.removeChild(le)}}function Eu(a,b){var le=wa(a,b);if(le){var ie=document.createDocumentFragment();Cs(a,le,ie),a.display.dragCursor||(a.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),be(a.display.dragCursor,ie)}}function hl(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function pl(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),le=[],ie=0;ie<b.length;ie++){var ge=b[ie].CodeMirror;ge&&le.push(ge)}le.length&&le[0].operation(function(){for(var Le=0;Le<le.length;Le++)a(le[Le])})}}var ml=!1;function Su(){ml||(Cu(),ml=!0)}function Cu(){var a;Et(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,pl(ku)},100))}),Et(window,"blur",function(){return pl(ja)})}function ku(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var va={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"},co=0;co<10;co++)va[co+48]=va[co+96]=String(co);for(var No=65;No<=90;No++)va[No]=String.fromCharCode(No);for(var fo=1;fo<=12;fo++)va[fo+111]=va[fo+63235]="F"+fo;var ia={};ia.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"},ia.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"},ia.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"},ia.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"]},ia.default=he?ia.macDefault:ia.pcDefault;function Au(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var le,ie,ge,Le,qe=0;qe<b.length-1;qe++){var ot=b[qe];if(/^(cmd|meta|m)$/i.test(ot))Le=!0;else if(/^a(lt)?$/i.test(ot))le=!0;else if(/^(c|ctrl|control)$/i.test(ot))ie=!0;else if(/^s(hift)?$/i.test(ot))ge=!0;else throw new Error("Unrecognized modifier name: "+ot)}return le&&(a="Alt-"+a),ie&&(a="Ctrl-"+a),Le&&(a="Cmd-"+a),ge&&(a="Shift-"+a),a}function Tu(a){var b={};for(var le in a)if(a.hasOwnProperty(le)){var ie=a[le];if(/^(name|fallthrough|(de|at)tach)$/.test(le))continue;if(ie=="..."){delete a[le];continue}for(var ge=$e(le.split(" "),Au),Le=0;Le<ge.length;Le++){var qe=void 0,ot=void 0;Le==ge.length-1?(ot=ge.join(" "),qe=ie):(ot=ge.slice(0,Le+1).join(" "),qe="...");var lt=b[ot];if(!lt)b[ot]=qe;else if(lt!=qe)throw new Error("Inconsistent bindings for "+ot)}delete a[le]}for(var ht in b)a[ht]=b[ht];return a}function Fa(a,b,le,ie){b=Lo(b);var ge=b.call?b.call(a,ie):b[a];if(ge===!1)return"nothing";if(ge==="...")return"multi";if(ge!=null&&le(ge))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return Fa(a,b.fallthrough,le,ie);for(var Le=0;Le<b.fallthrough.length;Le++){var qe=Fa(a,b.fallthrough[Le],le,ie);if(qe)return qe}}}function vl(a){var b=typeof a=="string"?a:va[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function gl(a,b,le){var ie=a;return b.altKey&&ie!="Alt"&&(a="Alt-"+a),(ve?b.metaKey:b.ctrlKey)&&ie!="Ctrl"&&(a="Ctrl-"+a),(ve?b.ctrlKey:b.metaKey)&&ie!="Mod"&&(a="Cmd-"+a),!le&&b.shiftKey&&ie!="Shift"&&(a="Shift-"+a),a}function yl(a,b){if(ee&&a.keyCode==34&&a.char)return!1;var le=va[a.keyCode];return le==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(le=a.code),gl(le,a,b))}function Lo(a){return typeof a=="string"?ia[a]:a}function Wa(a,b){for(var le=a.doc.sel.ranges,ie=[],ge=0;ge<le.length;ge++){for(var Le=b(le[ge]);ie.length&&Yt(Le.from,st(ie).to)<=0;){var qe=ie.pop();if(Yt(qe.from,Le.from)<0){Le.from=qe.from;break}}ie.push(Le)}Oi(a,function(){for(var ot=ie.length-1;ot>=0;ot--)Na(a.doc,"",ie[ot].from,ie[ot].to,"+delete");Pa(a)})}function cs(a,b,le){var ie=Ue(a.text,b+le,le);return ie<0||ie>a.text.length?null:ie}function fs(a,b,le){var ie=cs(a,b.ch,le);return ie==null?null:new Dt(b.line,ie,le<0?"after":"before")}function ds(a,b,le,ie,ge){if(a){b.doc.direction=="rtl"&&(ge=-ge);var Le=kt(le,b.doc.direction);if(Le){var qe=ge<0?st(Le):Le[0],ot=ge<0==(qe.level==1),lt=ot?"after":"before",ht;if(qe.level>0||b.doc.direction=="rtl"){var St=la(b,le);ht=ge<0?le.text.length-1:0;var _t=Bi(b,St,ht).top;ht=tt(function(Ft){return Bi(b,St,Ft).top==_t},ge<0==(qe.level==1)?qe.from:qe.to-1,ht),lt=="before"&&(ht=cs(le,ht,1))}else ht=ge<0?qe.to:qe.from;return new Dt(ie,ht,lt)}}return new Dt(ie,ge<0?le.text.length:0,ge<0?"before":"after")}function _u(a,b,le,ie){var ge=kt(b,a.doc.direction);if(!ge)return fs(b,le,ie);le.ch>=b.text.length?(le.ch=b.text.length,le.sticky="before"):le.ch<=0&&(le.ch=0,le.sticky="after");var Le=ct(ge,le.ch,le.sticky),qe=ge[Le];if(a.doc.direction=="ltr"&&qe.level%2==0&&(ie>0?qe.to>le.ch:qe.from<le.ch))return fs(b,le,ie);var ot=function(Nr,Hr){return cs(b,Nr instanceof Dt?Nr.ch:Nr,Hr)},lt,ht=function(Nr){return a.options.lineWrapping?(lt=lt||la(a,b),Jn(a,b,lt,Nr)):{begin:0,end:b.text.length}},St=ht(le.sticky=="before"?ot(le,-1):le.ch);if(a.doc.direction=="rtl"||qe.level==1){var _t=qe.level==1==ie<0,Ft=ot(le,_t?1:-1);if(Ft!=null&&(_t?Ft<=qe.to&&Ft<=St.end:Ft>=qe.from&&Ft>=St.begin)){var Nt=_t?"before":"after";return new Dt(le.line,Ft,Nt)}}var nr=function(Nr,Hr,Lr){for(var Zr=function(Wn,oi){return oi?new Dt(le.line,ot(Wn,1),"before"):new Dt(le.line,Wn,"after")};Nr>=0&&Nr<ge.length;Nr+=Hr){var rn=ge[Nr],Jr=Hr>0==(rn.level!=1),vn=Jr?Lr.begin:ot(Lr.end,-1);if(rn.from<=vn&&vn<rn.to||(vn=Jr?rn.from:ot(rn.to,-1),Lr.begin<=vn&&vn<Lr.end))return Zr(vn,Jr)}},mr=nr(Le+ie,ie,St);if(mr)return mr;var jr=ie>0?St.end:ot(St.begin,-1);return jr!=null&&!(ie>0&&jr==b.text.length)&&(mr=nr(ie>0?0:ge.length-1,ie,ht(jr)),mr)?mr:null}var ho={selectAll:rl,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Xe)},killLine:function(a){return Wa(a,function(b){if(b.empty()){var le=Mt(a.doc,b.head.line).text.length;return b.head.ch==le&&b.head.line<a.lastLine()?{from:b.head,to:Dt(b.head.line+1,0)}:{from:b.head,to:Dt(b.head.line,le)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return Wa(a,function(b){return{from:Dt(b.from().line,0),to:Gt(a.doc,Dt(b.to().line+1,0))}})},delLineLeft:function(a){return Wa(a,function(b){return{from:Dt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return Wa(a,function(b){var le=a.charCoords(b.head,"div").top+5,ie=a.coordsChar({left:0,top:le},"div");return{from:ie,to:b.from()}})},delWrappedLineRight:function(a){return Wa(a,function(b){var le=a.charCoords(b.head,"div").top+5,ie=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:le},"div");return{from:b.from(),to:ie}})},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(Dt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Dt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return bl(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return wl(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return Du(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var le=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:le},"div")},Ve)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var le=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:le},"div")},Ve)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var le=a.cursorCoords(b.head,"div").top+5,ie=a.coordsChar({left:0,top:le},"div");return ie.ch<a.getLine(ie.line).search(/\S/)?wl(a,b.head):ie},Ve)},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 b=[],le=a.listSelections(),ie=a.options.tabSize,ge=0;ge<le.length;ge++){var Le=le[ge].from(),qe=Re(a.getLine(Le.line),Le.ch,ie);b.push(ut(ie-qe%ie))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Oi(a,function(){for(var b=a.listSelections(),le=[],ie=0;ie<b.length;ie++)if(b[ie].empty()){var ge=b[ie].head,Le=Mt(a.doc,ge.line).text;if(Le){if(ge.ch==Le.length&&(ge=new Dt(ge.line,ge.ch-1)),ge.ch>0)ge=new Dt(ge.line,ge.ch+1),a.replaceRange(Le.charAt(ge.ch-1)+Le.charAt(ge.ch-2),Dt(ge.line,ge.ch-2),ge,"+transpose");else if(ge.line>a.doc.first){var qe=Mt(a.doc,ge.line-1).text;qe&&(ge=new Dt(ge.line,1),a.replaceRange(Le.charAt(0)+a.doc.lineSeparator()+qe.charAt(qe.length-1),Dt(ge.line-1,qe.length-1),ge,"+transpose"))}}le.push(new Rn(ge,ge))}a.setSelections(le)})},newlineAndIndent:function(a){return Oi(a,function(){for(var b=a.listSelections(),le=b.length-1;le>=0;le--)a.replaceRange(a.doc.lineSeparator(),b[le].anchor,b[le].head,"+input");b=a.listSelections();for(var ie=0;ie<b.length;ie++)a.indentLine(b[ie].from().line,null,!0);Pa(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function bl(a,b){var le=Mt(a.doc,b),ie=zt(le);return ie!=le&&(b=Ct(ie)),ds(!0,a,ie,b,1)}function Du(a,b){var le=Mt(a.doc,b),ie=pr(le);return ie!=le&&(b=Ct(ie)),ds(!0,a,le,b,-1)}function wl(a,b){var le=bl(a,b.line),ie=Mt(a.doc,le.line),ge=kt(ie,a.doc.direction);if(!ge||ge[0].level==0){var Le=Math.max(le.ch,ie.text.search(/\S/)),qe=b.line==le.line&&b.ch<=Le&&b.ch;return Dt(le.line,qe?0:Le,le.sticky)}return le}function Fo(a,b,le){if(typeof b=="string"&&(b=ho[b],!b))return!1;a.display.input.ensurePolled();var ie=a.display.shift,ge=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),le&&(a.display.shift=!1),ge=b(a)!=rt}finally{a.display.shift=ie,a.state.suppressEdits=!1}return ge}function Ou(a,b,le){for(var ie=0;ie<a.state.keyMaps.length;ie++){var ge=Fa(b,a.state.keyMaps[ie],le,a);if(ge)return ge}return a.options.extraKeys&&Fa(b,a.options.extraKeys,le,a)||Fa(b,a.options.keyMap,le,a)}var ju=new We;function po(a,b,le,ie){var ge=a.state.keySeq;if(ge){if(vl(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:ju.set(50,function(){a.state.keySeq==ge&&(a.state.keySeq=null,a.display.input.reset())}),xl(a,ge+" "+b,le,ie))return!0}return xl(a,b,le,ie)}function xl(a,b,le,ie){var ge=Ou(a,b,ie);return ge=="multi"&&(a.state.keySeq=b),ge=="handled"&&Kn(a,"keyHandled",a,b,le),(ge=="handled"||ge=="multi")&&(jt(le),Yo(a)),!!ge}function El(a,b){var le=yl(b,!0);return le?b.shiftKey&&!a.state.keySeq?po(a,"Shift-"+le,b,function(ie){return Fo(a,ie,!0)})||po(a,le,b,function(ie){if(typeof ie=="string"?/^go[A-Z]/.test(ie):ie.motion)return Fo(a,ie)}):po(a,le,b,function(ie){return Fo(a,ie)}):!1}function Pu(a,b,le){return po(a,"'"+le+"'",b,function(ie){return Fo(a,ie,!0)})}var hs=null;function Sl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Ce(),!dt(b,a))){ye&&E<11&&a.keyCode==27&&(a.returnValue=!1);var le=a.keyCode;b.display.shift=le==16||a.shiftKey;var ie=El(b,a);ee&&(hs=ie?le:null,!ie&&le==88&&!Jt&&(he?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),Ze&&!he&&!ie&&le==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),le==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Mu(b)}}function Mu(a){var b=a.display.lineDiv;De(b,"CodeMirror-crosshair");function le(ie){(ie.keyCode==18||!ie.altKey)&&(Pe(b,"CodeMirror-crosshair"),pt(document,"keyup",le),pt(document,"mouseover",le))}Et(document,"keyup",le),Et(document,"mouseover",le)}function Cl(a){a.keyCode==16&&(this.doc.sel.shift=!1),dt(this,a)}function kl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(ui(b.display,a)||dt(b,a)||a.ctrlKey&&!a.altKey||he&&a.metaKey)){var le=a.keyCode,ie=a.charCode;if(ee&&le==hs){hs=null,jt(a);return}if(!(ee&&(!a.which||a.which<10)&&El(b,a))){var ge=String.fromCharCode(ie==null?le:ie);ge!="\b"&&(Pu(b,a,ge)||b.display.input.onKeyPress(a))}}}var Iu=400,ps=function(a,b,le){this.time=a,this.pos=b,this.button=le};ps.prototype.compare=function(a,b,le){return this.time+Iu>a&&Yt(b,this.pos)==0&&le==this.button};var mo,vo;function Ru(a,b){var le=+new Date;return vo&&vo.compare(le,a,b)?(mo=vo=null,"triple"):mo&&mo.compare(le,a,b)?(vo=new ps(le,a,b),mo=null,"double"):(mo=new ps(le,a,b),vo=null,"single")}function Al(a){var b=this,le=b.display;if(!(dt(b,a)||le.activeTouch&&le.input.supportsTouch())){if(le.input.ensurePolled(),le.shift=a.shiftKey,ui(le,a)){z||(le.scroller.draggable=!1,setTimeout(function(){return le.scroller.draggable=!0},100));return}if(!ms(b,a)){var ie=wa(b,a),ge=vr(a),Le=ie?Ru(ie,ge):"single";window.focus(),ge==1&&b.state.selectingText&&b.state.selectingText(a),!(ie&&Bu(b,ge,ie,Le,a))&&(ge==1?ie?Lu(b,ie,Le,a):Er(a)==le.scroller&&jt(a):ge==2?(ie&&Mo(b.doc,ie),setTimeout(function(){return le.input.focus()},20)):ge==3&&(ke?b.display.input.onContextMenu(a):As(b)))}}}function Bu(a,b,le,ie,ge){var Le="Click";return ie=="double"?Le="Double"+Le:ie=="triple"&&(Le="Triple"+Le),Le=(b==1?"Left":b==2?"Middle":"Right")+Le,po(a,gl(Le,ge),ge,function(qe){if(typeof qe=="string"&&(qe=ho[qe]),!qe)return!1;var ot=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ot=qe(a,le)!=rt}finally{a.state.suppressEdits=!1}return ot})}function Nu(a,b,le){var ie=a.getOption("configureMouse"),ge=ie?ie(a,b,le):{};if(ge.unit==null){var Le=pe?le.shiftKey&&le.metaKey:le.altKey;ge.unit=Le?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ge.extend==null||a.doc.extend)&&(ge.extend=a.doc.extend||le.shiftKey),ge.addNew==null&&(ge.addNew=he?le.metaKey:le.ctrlKey),ge.moveOnDrag==null&&(ge.moveOnDrag=!(he?le.altKey:le.ctrlKey)),ge}function Lu(a,b,le,ie){ye?setTimeout(Ye(ks,a),0):a.curOp.focus=Ce();var ge=Nu(a,le,ie),Le=a.doc.sel,qe;a.options.dragDrop&&Ht&&!a.isReadOnly()&&le=="single"&&(qe=Le.contains(b))>-1&&(Yt((qe=Le.ranges[qe]).from(),b)<0||b.xRel>0)&&(Yt(qe.to(),b)>0||b.xRel<0)?Fu(a,ie,b,ge):Wu(a,ie,b,ge)}function Fu(a,b,le,ie){var ge=a.display,Le=!1,qe=ii(a,function(ht){z&&(ge.scroller.draggable=!1),a.state.draggingText=!1,pt(ge.wrapper.ownerDocument,"mouseup",qe),pt(ge.wrapper.ownerDocument,"mousemove",ot),pt(ge.scroller,"dragstart",lt),pt(ge.scroller,"drop",qe),Le||(jt(ht),ie.addNew||Mo(a.doc,le,null,null,ie.extend),z&&!de||ye&&E==9?setTimeout(function(){ge.wrapper.ownerDocument.body.focus({preventScroll:!0}),ge.input.focus()},20):ge.input.focus())}),ot=function(ht){Le=Le||Math.abs(b.clientX-ht.clientX)+Math.abs(b.clientY-ht.clientY)>=10},lt=function(){return Le=!0};z&&(ge.scroller.draggable=!0),a.state.draggingText=qe,qe.copy=!ie.moveOnDrag,ge.scroller.dragDrop&&ge.scroller.dragDrop(),Et(ge.wrapper.ownerDocument,"mouseup",qe),Et(ge.wrapper.ownerDocument,"mousemove",ot),Et(ge.scroller,"dragstart",lt),Et(ge.scroller,"drop",qe),As(a),setTimeout(function(){return ge.input.focus()},20)}function Tl(a,b,le){if(le=="char")return new Rn(b,b);if(le=="word")return a.findWordAt(b);if(le=="line")return new Rn(Dt(b.line,0),Gt(a.doc,Dt(b.line+1,0)));var ie=le(a,b);return new Rn(ie.from,ie.to)}function Wu(a,b,le,ie){var ge=a.display,Le=a.doc;jt(b);var qe,ot,lt=Le.sel,ht=lt.ranges;if(ie.addNew&&!ie.extend?(ot=Le.sel.contains(le),ot>-1?qe=ht[ot]:qe=new Rn(le,le)):(qe=Le.sel.primary(),ot=Le.sel.primIndex),ie.unit=="rectangle")ie.addNew||(qe=new Rn(le,le)),le=wa(a,b,!0,!0),ot=-1;else{var St=Tl(a,le,ie.unit);ie.extend?qe=ls(qe,St.anchor,St.head,ie.extend):qe=St}ie.addNew?ot==-1?(ot=ht.length,hi(Le,Ki(a,ht.concat([qe]),ot),{scroll:!1,origin:"*mouse"})):ht.length>1&&ht[ot].empty()&&ie.unit=="char"&&!ie.extend?(hi(Le,Ki(a,ht.slice(0,ot).concat(ht.slice(ot+1)),0),{scroll:!1,origin:"*mouse"}),lt=Le.sel):us(Le,ot,qe,Je):(ot=0,hi(Le,new Ii([qe],0),Je),lt=Le.sel);var _t=le;function Ft(Lr){if(Yt(_t,Lr)!=0)if(_t=Lr,ie.unit=="rectangle"){for(var Zr=[],rn=a.options.tabSize,Jr=Re(Mt(Le,le.line).text,le.ch,rn),vn=Re(Mt(Le,Lr.line).text,Lr.ch,rn),Wn=Math.min(Jr,vn),oi=Math.max(Jr,vn),zn=Math.min(le.line,Lr.line),ji=Math.min(a.lastLine(),Math.max(le.line,Lr.line));zn<=ji;zn++){var Ci=Mt(Le,zn).text,qn=at(Ci,Wn,rn);Wn==oi?Zr.push(new Rn(Dt(zn,qn),Dt(zn,qn))):Ci.length>qn&&Zr.push(new Rn(Dt(zn,qn),Dt(zn,at(Ci,oi,rn))))}Zr.length||Zr.push(new Rn(le,le)),hi(Le,Ki(a,lt.ranges.slice(0,ot).concat(Zr),ot),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Lr)}else{var ki=qe,fi=Tl(a,Lr,ie.unit),ni=ki.anchor,ei;Yt(fi.anchor,ni)>0?(ei=fi.head,ni=Pt(ki.from(),fi.anchor)):(ei=fi.anchor,ni=Mr(ki.to(),fi.head));var Vn=lt.ranges.slice(0);Vn[ot]=Uu(a,new Rn(Gt(Le,ni),ei)),hi(Le,Ki(a,Vn,ot),Je)}}var Nt=ge.wrapper.getBoundingClientRect(),nr=0;function mr(Lr){var Zr=++nr,rn=wa(a,Lr,!0,ie.unit=="rectangle");if(rn)if(Yt(rn,_t)!=0){a.curOp.focus=Ce(),Ft(rn);var Jr=To(ge,Le);(rn.line>=Jr.to||rn.line<Jr.from)&&setTimeout(ii(a,function(){nr==Zr&&mr(Lr)}),150)}else{var vn=Lr.clientY<Nt.top?-20:Lr.clientY>Nt.bottom?20:0;vn&&setTimeout(ii(a,function(){nr==Zr&&(ge.scroller.scrollTop+=vn,mr(Lr))}),50)}}function jr(Lr){a.state.selectingText=!1,nr=1/0,Lr&&(jt(Lr),ge.input.focus()),pt(ge.wrapper.ownerDocument,"mousemove",Nr),pt(ge.wrapper.ownerDocument,"mouseup",Hr),Le.history.lastSelOrigin=null}var Nr=ii(a,function(Lr){Lr.buttons===0||!vr(Lr)?jr(Lr):mr(Lr)}),Hr=ii(a,jr);a.state.selectingText=Hr,Et(ge.wrapper.ownerDocument,"mousemove",Nr),Et(ge.wrapper.ownerDocument,"mouseup",Hr)}function Uu(a,b){var le=b.anchor,ie=b.head,ge=Mt(a.doc,le.line);if(Yt(le,ie)==0&&le.sticky==ie.sticky)return b;var Le=kt(ge);if(!Le)return b;var qe=ct(Le,le.ch,le.sticky),ot=Le[qe];if(ot.from!=le.ch&&ot.to!=le.ch)return b;var lt=qe+(ot.from==le.ch==(ot.level!=1)?0:1);if(lt==0||lt==Le.length)return b;var ht;if(ie.line!=le.line)ht=(ie.line-le.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var St=ct(Le,ie.ch,ie.sticky),_t=St-qe||(ie.ch-le.ch)*(ot.level==1?-1:1);St==lt-1||St==lt?ht=_t<0:ht=_t>0}var Ft=Le[lt+(ht?-1:0)],Nt=ht==(Ft.level==1),nr=Nt?Ft.from:Ft.to,mr=Nt?"after":"before";return le.ch==nr&&le.sticky==mr?b:new Rn(new Dt(le.line,nr,mr),ie)}function _l(a,b,le,ie){var ge,Le;if(b.touches)ge=b.touches[0].clientX,Le=b.touches[0].clientY;else try{ge=b.clientX,Le=b.clientY}catch(Ft){return!1}if(ge>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;ie&&jt(b);var qe=a.display,ot=qe.lineDiv.getBoundingClientRect();if(Le>ot.bottom||!wt(a,le))return Wt(b);Le-=ot.top-qe.viewOffset;for(var lt=0;lt<a.display.gutterSpecs.length;++lt){var ht=qe.gutters.childNodes[lt];if(ht&&ht.getBoundingClientRect().right>=ge){var St=Tt(a.doc,Le),_t=a.display.gutterSpecs[lt];return mt(a,le,a,St,_t.className,b),Wt(b)}}}function ms(a,b){return _l(a,b,"gutterClick",!0)}function Dl(a,b){ui(a.display,b)||Hu(a,b)||dt(a,b,"contextmenu")||ke||a.display.input.onContextMenu(b)}function Hu(a,b){return wt(a,"gutterContextMenu")?_l(a,b,"gutterContextMenu",!1):!1}function Ol(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ba(a)}var Ua={toString:function(){return"CodeMirror.Init"}},jl={},Wo={};function Zu(a){var b=a.optionHandlers;function le(ie,ge,Le,qe){a.defaults[ie]=ge,Le&&(b[ie]=qe?function(ot,lt,ht){ht!=Ua&&Le(ot,lt,ht)}:Le)}a.defineOption=le,a.Init=Ua,le("value","",function(ie,ge){return ie.setValue(ge)},!0),le("mode",null,function(ie,ge){ie.doc.modeOption=ge,as(ie)},!0),le("indentUnit",2,as,!0),le("indentWithTabs",!1),le("smartIndent",!0),le("tabSize",4,function(ie){no(ie),ba(ie),Ei(ie)},!0),le("lineSeparator",null,function(ie,ge){if(ie.doc.lineSep=ge,!!ge){var Le=[],qe=ie.doc.first;ie.doc.iter(function(lt){for(var ht=0;;){var St=lt.text.indexOf(ge,ht);if(St==-1)break;ht=St+ge.length,Le.push(Dt(qe,St))}qe++});for(var ot=Le.length-1;ot>=0;ot--)Na(ie.doc,ge,Le[ot],Dt(Le[ot].line,Le[ot].ch+ge.length))}}),le("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ie,ge,Le){ie.state.specialChars=new RegExp(ge.source+(ge.test(" ")?"":"| "),"g"),Le!=Ua&&ie.refresh()}),le("specialCharPlaceholder",Li,function(ie){return ie.refresh()},!0),le("electricChars",!0),le("inputStyle",ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),le("spellcheck",!1,function(ie,ge){return ie.getInputField().spellcheck=ge},!0),le("autocorrect",!1,function(ie,ge){return ie.getInputField().autocorrect=ge},!0),le("autocapitalize",!1,function(ie,ge){return ie.getInputField().autocapitalize=ge},!0),le("rtlMoveVisually",!me),le("wholeLineUpdateBefore",!0),le("theme","default",function(ie){Ol(ie),ro(ie)},!0),le("keyMap","default",function(ie,ge,Le){var qe=Lo(ge),ot=Le!=Ua&&Lo(Le);ot&&ot.detach&&ot.detach(ie,qe),qe.attach&&qe.attach(ie,ot||null)}),le("extraKeys",null),le("configureMouse",null),le("lineWrapping",!1,Gu,!0),le("gutters",[],function(ie,ge){ie.display.gutterSpecs=ns(ge,ie.options.lineNumbers),ro(ie)},!0),le("fixedGutter",!0,function(ie,ge){ie.display.gutters.style.left=ge?Vo(ie.display)+"px":"0",ie.refresh()},!0),le("coverGutterNextToScrollbar",!1,function(ie){return Ma(ie)},!0),le("scrollbarStyle","native",function(ie){Ps(ie),Ma(ie),ie.display.scrollbars.setScrollTop(ie.doc.scrollTop),ie.display.scrollbars.setScrollLeft(ie.doc.scrollLeft)},!0),le("lineNumbers",!1,function(ie,ge){ie.display.gutterSpecs=ns(ie.options.gutters,ge),ro(ie)},!0),le("firstLineNumber",1,ro,!0),le("lineNumberFormatter",function(ie){return ie},ro,!0),le("showCursorWhenSelecting",!1,Ja,!0),le("resetSelectionOnContextMenu",!0),le("lineWiseCopyCut",!0),le("pasteLinesPerSelection",!0),le("selectionsMayTouch",!1),le("readOnly",!1,function(ie,ge){ge=="nocursor"&&(ja(ie),ie.display.input.blur()),ie.display.input.readOnlyChanged(ge)}),le("screenReaderLabel",null,function(ie,ge){ge=ge===""?null:ge,ie.display.input.screenReaderLabelChanged(ge)}),le("disableInput",!1,function(ie,ge){ge||ie.display.input.reset()},!0),le("dragDrop",!0,zu),le("allowDropFileTypes",null),le("cursorBlinkRate",530),le("cursorScrollMargin",0),le("cursorHeight",1,Ja,!0),le("singleCursorHeightPerLine",!0,Ja,!0),le("workTime",100),le("workDelay",100),le("flattenSpans",!0,no,!0),le("addModeClass",!1,no,!0),le("pollInterval",100),le("undoDepth",200,function(ie,ge){return ie.doc.history.undoDepth=ge}),le("historyEventDelay",1250),le("viewportMargin",10,function(ie){return ie.refresh()},!0),le("maxHighlightLength",1e4,no,!0),le("moveInputWithCursor",!0,function(ie,ge){ge||ie.display.input.resetPosition()}),le("tabindex",null,function(ie,ge){return ie.display.input.getField().tabIndex=ge||""}),le("autofocus",null),le("direction","ltr",function(ie,ge){return ie.doc.setDirection(ge)},!0),le("phrases",null)}function zu(a,b,le){var ie=le&&le!=Ua;if(!b!=!ie){var ge=a.display.dragFunctions,Le=b?Et:pt;Le(a.display.scroller,"dragstart",ge.start),Le(a.display.scroller,"dragenter",ge.enter),Le(a.display.scroller,"dragover",ge.over),Le(a.display.scroller,"dragleave",ge.leave),Le(a.display.scroller,"drop",ge.drop)}}function Gu(a){a.options.lineWrapping?(De(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Pe(a.display.wrapper,"CodeMirror-wrap"),kn(a)),Xo(a),Ei(a),ba(a),setTimeout(function(){return Ma(a)},100)}function Zn(a,b){var le=this;if(!(this instanceof Zn))return new Zn(a,b);this.options=b=b?it(b):{},it(jl,b,!1);var ie=b.value;typeof ie=="string"?ie=new Si(ie,b.mode,null,b.lineSeparator,b.direction):b.mode&&(ie.modeOption=b.mode),this.doc=ie;var ge=new Zn.inputStyles[b.inputStyle](this),Le=this.display=new iu(a,ie,ge,b);Le.wrapper.CodeMirror=this,Ol(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ps(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 We,keySeq:null,specialChars:null},b.autofocus&&!ue&&Le.input.focus(),ye&&E<11&&setTimeout(function(){return le.display.input.reset(!0)},20),Ku(this),Su(),Ca(this),this.curOp.forceUpdate=!0,Hs(this,ie),b.autofocus&&!ue||this.hasFocus()?setTimeout(function(){le.hasFocus()&&!le.state.focused&&Jo(le)},20):ja(this);for(var qe in Wo)Wo.hasOwnProperty(qe)&&Wo[qe](this,b[qe],Ua);Rs(this),b.finishInit&&b.finishInit(this);for(var ot=0;ot<vs.length;++ot)vs[ot](this);ka(this),z&&b.lineWrapping&&getComputedStyle(Le.lineDiv).textRendering=="optimizelegibility"&&(Le.lineDiv.style.textRendering="auto")}Zn.defaults=jl,Zn.optionHandlers=Wo;function Ku(a){var b=a.display;Et(b.scroller,"mousedown",ii(a,Al)),ye&&E<11?Et(b.scroller,"dblclick",ii(a,function(lt){if(!dt(a,lt)){var ht=wa(a,lt);if(!(!ht||ms(a,lt)||ui(a.display,lt))){jt(lt);var St=a.findWordAt(ht);Mo(a.doc,St.anchor,St.head)}}})):Et(b.scroller,"dblclick",function(lt){return dt(a,lt)||jt(lt)}),Et(b.scroller,"contextmenu",function(lt){return Dl(a,lt)}),Et(b.input.getField(),"contextmenu",function(lt){b.scroller.contains(lt.target)||Dl(a,lt)});var le,ie={end:0};function ge(){b.activeTouch&&(le=setTimeout(function(){return b.activeTouch=null},1e3),ie=b.activeTouch,ie.end=+new Date)}function Le(lt){if(lt.touches.length!=1)return!1;var ht=lt.touches[0];return ht.radiusX<=1&&ht.radiusY<=1}function qe(lt,ht){if(ht.left==null)return!0;var St=ht.left-lt.left,_t=ht.top-lt.top;return St*St+_t*_t>20*20}Et(b.scroller,"touchstart",function(lt){if(!dt(a,lt)&&!Le(lt)&&!ms(a,lt)){b.input.ensurePolled(),clearTimeout(le);var ht=+new Date;b.activeTouch={start:ht,moved:!1,prev:ht-ie.end<=300?ie:null},lt.touches.length==1&&(b.activeTouch.left=lt.touches[0].pageX,b.activeTouch.top=lt.touches[0].pageY)}}),Et(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),Et(b.scroller,"touchend",function(lt){var ht=b.activeTouch;if(ht&&!ui(b,lt)&&ht.left!=null&&!ht.moved&&new Date-ht.start<300){var St=a.coordsChar(b.activeTouch,"page"),_t;!ht.prev||qe(ht,ht.prev)?_t=new Rn(St,St):!ht.prev.prev||qe(ht,ht.prev.prev)?_t=a.findWordAt(St):_t=new Rn(Dt(St.line,0),Gt(a.doc,Dt(St.line+1,0))),a.setSelection(_t.anchor,_t.head),a.focus(),jt(lt)}ge()}),Et(b.scroller,"touchcancel",ge),Et(b.scroller,"scroll",function(){b.scroller.clientHeight&&($a(a,b.scroller.scrollTop),Ea(a,b.scroller.scrollLeft,!0),mt(a,"scroll",a))}),Et(b.scroller,"mousewheel",function(lt){return Ls(a,lt)}),Et(b.scroller,"DOMMouseScroll",function(lt){return Ls(a,lt)}),Et(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(lt){dt(a,lt)||$t(lt)},over:function(lt){dt(a,lt)||(Eu(a,lt),$t(lt))},start:function(lt){return xu(a,lt)},drop:ii(a,wu),leave:function(lt){dt(a,lt)||hl(a)}};var ot=b.input.getField();Et(ot,"keyup",function(lt){return Cl.call(a,lt)}),Et(ot,"keydown",ii(a,Sl)),Et(ot,"keypress",ii(a,kl)),Et(ot,"focus",function(lt){return Jo(a,lt)}),Et(ot,"blur",function(lt){return ja(a,lt)})}var vs=[];Zn.defineInitHook=function(a){return vs.push(a)};function go(a,b,le,ie){var ge=a.doc,Le;le==null&&(le="add"),le=="smart"&&(ge.mode.indent?Le=en(a,b).state:le="prev");var qe=a.options.tabSize,ot=Mt(ge,b),lt=Re(ot.text,null,qe);ot.stateAfter&&(ot.stateAfter=null);var ht=ot.text.match(/^\s*/)[0],St;if(!ie&&!/\S/.test(ot.text))St=0,le="not";else if(le=="smart"&&(St=ge.mode.indent(Le,ot.text.slice(ht.length),ot.text),St==rt||St>150)){if(!ie)return;le="prev"}le=="prev"?b>ge.first?St=Re(Mt(ge,b-1).text,null,qe):St=0:le=="add"?St=lt+a.options.indentUnit:le=="subtract"?St=lt-a.options.indentUnit:typeof le=="number"&&(St=lt+le),St=Math.max(0,St);var _t="",Ft=0;if(a.options.indentWithTabs)for(var Nt=Math.floor(St/qe);Nt;--Nt)Ft+=qe,_t+=" ";if(Ft<St&&(_t+=ut(St-Ft)),_t!=ht)return Na(ge,_t,Dt(b,0),Dt(b,ht.length),"+input"),ot.stateAfter=null,!0;for(var nr=0;nr<ge.sel.ranges.length;nr++){var mr=ge.sel.ranges[nr];if(mr.head.line==b&&mr.head.ch<ht.length){var jr=Dt(b,ht.length);us(ge,nr,new Rn(jr,jr));break}}}var Vi=null;function Uo(a){Vi=a}function gs(a,b,le,ie,ge){var Le=a.doc;a.display.shift=!1,ie||(ie=Le.sel);var qe=+new Date-200,ot=ge=="paste"||a.state.pasteIncoming>qe,lt=sr(b),ht=null;if(ot&&ie.ranges.length>1)if(Vi&&Vi.text.join(`
`)==b){if(ie.ranges.length%Vi.text.length==0){ht=[];for(var St=0;St<Vi.text.length;St++)ht.push(Le.splitLines(Vi.text[St]))}}else lt.length==ie.ranges.length&&a.options.pasteLinesPerSelection&&(ht=$e(lt,function(Nr){return[Nr]}));for(var _t=a.curOp.updateInput,Ft=ie.ranges.length-1;Ft>=0;Ft--){var Nt=ie.ranges[Ft],nr=Nt.from(),mr=Nt.to();Nt.empty()&&(le&&le>0?nr=Dt(nr.line,nr.ch-le):a.state.overwrite&&!ot?mr=Dt(mr.line,Math.min(Mt(Le,mr.line).text.length,mr.ch+st(lt).length)):ot&&Vi&&Vi.lineWise&&Vi.text.join(`
`)==lt.join(`
`)&&(nr=mr=Dt(nr.line,0)));var jr={from:nr,to:mr,text:ht?ht[Ft%ht.length]:lt,origin:ge||(ot?"paste":a.state.cutIncoming>qe?"cut":"+input")};Ba(a.doc,jr),Kn(a,"inputRead",a,jr)}b&&!ot&&Ml(a,b),Pa(a),a.curOp.updateInput<2&&(a.curOp.updateInput=_t),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Pl(a,b){var le=a.clipboardData&&a.clipboardData.getData("Text");if(le)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&Oi(b,function(){return gs(b,le,0,null,"paste")}),!0}function Ml(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var le=a.doc.sel,ie=le.ranges.length-1;ie>=0;ie--){var ge=le.ranges[ie];if(!(ge.head.ch>100||ie&&le.ranges[ie-1].head.line==ge.head.line)){var Le=a.getModeAt(ge.head),qe=!1;if(Le.electricChars){for(var ot=0;ot<Le.electricChars.length;ot++)if(b.indexOf(Le.electricChars.charAt(ot))>-1){qe=go(a,ge.head.line,"smart");break}}else Le.electricInput&&Le.electricInput.test(Mt(a.doc,ge.head.line).text.slice(0,ge.head.ch))&&(qe=go(a,ge.head.line,"smart"));qe&&Kn(a,"electricInput",a,ge.head.line)}}}function Il(a){for(var b=[],le=[],ie=0;ie<a.doc.sel.ranges.length;ie++){var ge=a.doc.sel.ranges[ie].head.line,Le={anchor:Dt(ge,0),head:Dt(ge+1,0)};le.push(Le),b.push(a.getRange(Le.anchor,Le.head))}return{text:b,ranges:le}}function Rl(a,b,le,ie){a.setAttribute("autocorrect",le?"":"off"),a.setAttribute("autocapitalize",ie?"":"off"),a.setAttribute("spellcheck",!!b)}function Bl(){var a=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=xe("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?a.style.width="1000px":a.setAttribute("wrap","off"),re&&(a.style.border="1px solid black"),Rl(a),b}function Vu(a){var b=a.optionHandlers,le=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ie,ge){var Le=this.options,qe=Le[ie];Le[ie]==ge&&ie!="mode"||(Le[ie]=ge,b.hasOwnProperty(ie)&&ii(this,b[ie])(this,ge,qe),mt(this,"optionChange",this,ie))},getOption:function(ie){return this.options[ie]},getDoc:function(){return this.doc},addKeyMap:function(ie,ge){this.state.keyMaps[ge?"push":"unshift"](Lo(ie))},removeKeyMap:function(ie){for(var ge=this.state.keyMaps,Le=0;Le<ge.length;++Le)if(ge[Le]==ie||ge[Le].name==ie)return ge.splice(Le,1),!0},addOverlay:gi(function(ie,ge){var Le=ie.token?ie:a.getMode(this.options,ie);if(Le.startState)throw new Error("Overlays may not be stateful.");Ne(this.state.overlays,{mode:Le,modeSpec:ie,opaque:ge&&ge.opaque,priority:ge&&ge.priority||0},function(qe){return qe.priority}),this.state.modeGen++,Ei(this)}),removeOverlay:gi(function(ie){for(var ge=this.state.overlays,Le=0;Le<ge.length;++Le){var qe=ge[Le].modeSpec;if(qe==ie||typeof ie=="string"&&qe.name==ie){ge.splice(Le,1),this.state.modeGen++,Ei(this);return}}}),indentLine:gi(function(ie,ge,Le){typeof ge!="string"&&typeof ge!="number"&&(ge==null?ge=this.options.smartIndent?"smart":"prev":ge=ge?"add":"subtract"),ar(this.doc,ie)&&go(this,ie,ge,Le)}),indentSelection:gi(function(ie){for(var ge=this.doc.sel.ranges,Le=-1,qe=0;qe<ge.length;qe++){var ot=ge[qe];if(ot.empty())ot.head.line>Le&&(go(this,ot.head.line,ie,!0),Le=ot.head.line,qe==this.doc.sel.primIndex&&Pa(this));else{var lt=ot.from(),ht=ot.to(),St=Math.max(Le,lt.line);Le=Math.min(this.lastLine(),ht.line-(ht.ch?0:1))+1;for(var _t=St;_t<Le;++_t)go(this,_t,ie);var Ft=this.doc.sel.ranges;lt.ch==0&&ge.length==Ft.length&&Ft[qe].from().ch>0&&us(this.doc,qe,new Rn(lt,Ft[qe].to()),Xe)}}}),getTokenAt:function(ie,ge){return Tn(this,ie,ge)},getLineTokens:function(ie,ge){return Tn(this,Dt(ie),ge,!0)},getTokenTypeAt:function(ie){ie=Gt(this.doc,ie);var ge=Ur(this,Mt(this.doc,ie.line)),Le=0,qe=(ge.length-1)/2,ot=ie.ch,lt;if(ot==0)lt=ge[2];else for(;;){var ht=Le+qe>>1;if((ht?ge[ht*2-1]:0)>=ot)qe=ht;else if(ge[ht*2+1]<ot)Le=ht+1;else{lt=ge[ht*2+2];break}}var St=lt?lt.indexOf("overlay "):-1;return St<0?lt:St==0?null:lt.slice(0,St-1)},getModeAt:function(ie){var ge=this.doc.mode;return ge.innerMode?a.innerMode(ge,this.getTokenAt(ie).state).mode:ge},getHelper:function(ie,ge){return this.getHelpers(ie,ge)[0]},getHelpers:function(ie,ge){var Le=[];if(!le.hasOwnProperty(ge))return Le;var qe=le[ge],ot=this.getModeAt(ie);if(typeof ot[ge]=="string")qe[ot[ge]]&&Le.push(qe[ot[ge]]);else if(ot[ge])for(var lt=0;lt<ot[ge].length;lt++){var ht=qe[ot[ge][lt]];ht&&Le.push(ht)}else ot.helperType&&qe[ot.helperType]?Le.push(qe[ot.helperType]):qe[ot.name]&&Le.push(qe[ot.name]);for(var St=0;St<qe._global.length;St++){var _t=qe._global[St];_t.pred(ot,this)&&et(Le,_t.val)==-1&&Le.push(_t.val)}return Le},getStateAfter:function(ie,ge){var Le=this.doc;return ie=br(Le,ie==null?Le.first+Le.size-1:ie),en(this,ie+1,ge).state},cursorCoords:function(ie,ge){var Le,qe=this.doc.sel.primary();return ie==null?Le=qe.head:typeof ie=="object"?Le=Gt(this.doc,ie):Le=ie?qe.from():qe.to(),xi(this,Le,ge||"page")},charCoords:function(ie,ge){return Oa(this,Gt(this.doc,ie),ge||"page")},coordsChar:function(ie,ge){return ie=So(this,ie,ge||"page"),ci(this,ie.left,ie.top)},lineAtHeight:function(ie,ge){return ie=So(this,{top:ie,left:0},ge||"page").top,Tt(this.doc,ie+this.display.viewOffset)},heightAtLine:function(ie,ge,Le){var qe=!1,ot;if(typeof ie=="number"){var lt=this.doc.first+this.doc.size-1;ie<this.doc.first?ie=this.doc.first:ie>lt&&(ie=lt,qe=!0),ot=Mt(this.doc,ie)}else ot=ie;return Da(this,ot,{top:0,left:0},ge||"page",Le||qe).top+(qe?this.doc.height-on(ot):0)},defaultTextHeight:function(){return Di(this.display)},defaultCharWidth:function(){return Gi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ie,ge,Le,qe,ot){var lt=this.display;ie=xi(this,Gt(this.doc,ie));var ht=ie.bottom,St=ie.left;if(ge.style.position="absolute",ge.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ge),lt.sizer.appendChild(ge),qe=="over")ht=ie.top;else if(qe=="above"||qe=="near"){var _t=Math.max(lt.wrapper.clientHeight,this.doc.height),Ft=Math.max(lt.sizer.clientWidth,lt.lineSpace.clientWidth);(qe=="above"||ie.bottom+ge.offsetHeight>_t)&&ie.top>ge.offsetHeight?ht=ie.top-ge.offsetHeight:ie.bottom+ge.offsetHeight<=_t&&(ht=ie.bottom),St+ge.offsetWidth>Ft&&(St=Ft-ge.offsetWidth)}ge.style.top=ht+"px",ge.style.left=ge.style.right="",ot=="right"?(St=lt.sizer.clientWidth-ge.offsetWidth,ge.style.right="0px"):(ot=="left"?St=0:ot=="middle"&&(St=(lt.sizer.clientWidth-ge.offsetWidth)/2),ge.style.left=St+"px"),Le&&zl(this,{left:St,top:ht,right:St+ge.offsetWidth,bottom:ht+ge.offsetHeight})},triggerOnKeyDown:gi(Sl),triggerOnKeyPress:gi(kl),triggerOnKeyUp:Cl,triggerOnMouseDown:gi(Al),execCommand:function(ie){if(ho.hasOwnProperty(ie))return ho[ie].call(null,this)},triggerElectric:gi(function(ie){Ml(this,ie)}),findPosH:function(ie,ge,Le,qe){var ot=1;ge<0&&(ot=-1,ge=-ge);for(var lt=Gt(this.doc,ie),ht=0;ht<ge&&(lt=ys(this.doc,lt,ot,Le,qe),!lt.hitSide);++ht);return lt},moveH:gi(function(ie,ge){var Le=this;this.extendSelectionsBy(function(qe){return Le.display.shift||Le.doc.extend||qe.empty()?ys(Le.doc,qe.head,ie,ge,Le.options.rtlMoveVisually):ie<0?qe.from():qe.to()},Ve)}),deleteH:gi(function(ie,ge){var Le=this.doc.sel,qe=this.doc;Le.somethingSelected()?qe.replaceSelection("",null,"+delete"):Wa(this,function(ot){var lt=ys(qe,ot.head,ie,ge,!1);return ie<0?{from:lt,to:ot.head}:{from:ot.head,to:lt}})}),findPosV:function(ie,ge,Le,qe){var ot=1,lt=qe;ge<0&&(ot=-1,ge=-ge);for(var ht=Gt(this.doc,ie),St=0;St<ge;++St){var _t=xi(this,ht,"div");if(lt==null?lt=_t.left:_t.left=lt,ht=Nl(this,_t,ot,Le),ht.hitSide)break}return ht},moveV:gi(function(ie,ge){var Le=this,qe=this.doc,ot=[],lt=!this.display.shift&&!qe.extend&&qe.sel.somethingSelected();if(qe.extendSelectionsBy(function(St){if(lt)return ie<0?St.from():St.to();var _t=xi(Le,St.head,"div");St.goalColumn!=null&&(_t.left=St.goalColumn),ot.push(_t.left);var Ft=Nl(Le,_t,ie,ge);return ge=="page"&&St==qe.sel.primary()&&$o(Le,Oa(Le,Ft,"div").top-_t.top),Ft},Ve),ot.length)for(var ht=0;ht<qe.sel.ranges.length;ht++)qe.sel.ranges[ht].goalColumn=ot[ht]}),findWordAt:function(ie){var ge=this.doc,Le=Mt(ge,ie.line).text,qe=ie.ch,ot=ie.ch;if(Le){var lt=this.getHelper(ie,"wordChars");(ie.sticky=="before"||ot==Le.length)&&qe?--qe:++ot;for(var ht=Le.charAt(qe),St=Fe(ht,lt)?function(_t){return Fe(_t,lt)}:/\s/.test(ht)?function(_t){return/\s/.test(_t)}:function(_t){return!/\s/.test(_t)&&!Fe(_t)};qe>0&&St(Le.charAt(qe-1));)--qe;for(;ot<Le.length&&St(Le.charAt(ot));)++ot}return new Rn(Dt(ie.line,qe),Dt(ie.line,ot))},toggleOverwrite:function(ie){ie!=null&&ie==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?De(this.display.cursorDiv,"CodeMirror-overwrite"):Pe(this.display.cursorDiv,"CodeMirror-overwrite"),mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ce()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:gi(function(ie,ge){Qa(this,ie,ge)}),getScrollInfo:function(){var ie=this.display.scroller;return{left:ie.scrollLeft,top:ie.scrollTop,height:ie.scrollHeight-Ti(this)-this.display.barHeight,width:ie.scrollWidth-Ti(this)-this.display.barWidth,clientHeight:ra(this),clientWidth:Ji(this)}},scrollIntoView:gi(function(ie,ge){ie==null?(ie={from:this.doc.sel.primary().head,to:null},ge==null&&(ge=this.options.cursorScrollMargin)):typeof ie=="number"?ie={from:Dt(ie,0),to:null}:ie.from==null&&(ie={from:ie,to:null}),ie.to||(ie.to=ie.from),ie.margin=ge||0,ie.from.line!=null?Gl(this,ie):_s(this,ie.from,ie.to,ie.margin)}),setSize:gi(function(ie,ge){var Le=this,qe=function(lt){return typeof lt=="number"||/^\d+$/.test(String(lt))?lt+"px":lt};ie!=null&&(this.display.wrapper.style.width=qe(ie)),ge!=null&&(this.display.wrapper.style.height=qe(ge)),this.options.lineWrapping&&Va(this);var ot=this.display.viewFrom;this.doc.iter(ot,this.display.viewTo,function(lt){if(lt.widgets){for(var ht=0;ht<lt.widgets.length;ht++)if(lt.widgets[ht].noHScroll){ca(Le,ot,"widget");break}}++ot}),this.curOp.forceUpdate=!0,mt(this,"refresh",this)}),operation:function(ie){return Oi(this,ie)},startOperation:function(){return Ca(this)},endOperation:function(){return ka(this)},refresh:gi(function(){var ie=this.display.cachedTextHeight;Ei(this),this.curOp.forceUpdate=!0,ba(this),Qa(this,this.doc.scrollLeft,this.doc.scrollTop),ts(this.display),(ie==null||Math.abs(ie-Di(this.display))>.5||this.options.lineWrapping)&&Xo(this),mt(this,"refresh",this)}),swapDoc:gi(function(ie){var ge=this.doc;return ge.cm=null,this.state.selectingText&&this.state.selectingText(),Hs(this,ie),ba(this),this.display.input.reset(),Qa(this,ie.scrollLeft,ie.scrollTop),this.curOp.forceScroll=!0,Kn(this,"swapDoc",this,ge),ge}),phrase:function(ie){var ge=this.options.phrases;return ge&&Object.prototype.hasOwnProperty.call(ge,ie)?ge[ie]:ie},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}},At(a),a.registerHelper=function(ie,ge,Le){le.hasOwnProperty(ie)||(le[ie]=a[ie]={_global:[]}),le[ie][ge]=Le},a.registerGlobalHelper=function(ie,ge,Le,qe){a.registerHelper(ie,ge,qe),le[ie]._global.push({pred:Le,val:qe})}}function ys(a,b,le,ie,ge){var Le=b,qe=le,ot=Mt(a,b.line),lt=ge&&a.direction=="rtl"?-le:le;function ht(){var Hr=b.line+lt;return Hr<a.first||Hr>=a.first+a.size?!1:(b=new Dt(Hr,b.ch,b.sticky),ot=Mt(a,Hr))}function St(Hr){var Lr;if(ie=="codepoint"){var Zr=ot.text.charCodeAt(b.ch+(ie>0?0:-1));isNaN(Zr)?Lr=null:Lr=new Dt(b.line,Math.max(0,Math.min(ot.text.length,b.ch+le*(Zr>=55296&&Zr<56320?2:1))),-le)}else ge?Lr=_u(a.cm,ot,b,le):Lr=fs(ot,b,le);if(Lr==null)if(!Hr&&ht())b=ds(ge,a.cm,ot,b.line,lt);else return!1;else b=Lr;return!0}if(ie=="char"||ie=="codepoint")St();else if(ie=="column")St(!0);else if(ie=="word"||ie=="group")for(var _t=null,Ft=ie=="group",Nt=a.cm&&a.cm.getHelper(b,"wordChars"),nr=!0;!(le<0&&!St(!nr));nr=!1){var mr=ot.text.charAt(b.ch)||`
`,jr=Fe(mr,Nt)?"w":Ft&&mr==`
`?"n":!Ft||/\s/.test(mr)?null:"p";if(Ft&&!nr&&!jr&&(jr="s"),_t&&_t!=jr){le<0&&(le=1,St(),b.sticky="after");break}if(jr&&(_t=jr),le>0&&!St(!nr))break}var Nr=Ro(a,b,Le,qe,!0);return rr(Le,Nr)&&(Nr.hitSide=!0),Nr}function Nl(a,b,le,ie){var ge=a.doc,Le=b.left,qe;if(ie=="page"){var ot=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),lt=Math.max(ot-.5*Di(a.display),3);qe=(le>0?b.bottom:b.top)+le*lt}else ie=="line"&&(qe=le>0?b.bottom+3:b.top-3);for(var ht;ht=ci(a,Le,qe),!!ht.outside;){if(le<0?qe<=0:qe>=ge.height){ht.hitSide=!0;break}qe+=le*5}return ht}var Nn=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new We,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Nn.prototype.init=function(a){var b=this,le=this,ie=le.cm,ge=le.div=a.lineDiv;Rl(ge,ie.options.spellcheck,ie.options.autocorrect,ie.options.autocapitalize);function Le(ot){for(var lt=ot.target;lt;lt=lt.parentNode){if(lt==ge)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(lt.className))break}return!1}Et(ge,"paste",function(ot){!Le(ot)||dt(ie,ot)||Pl(ot,ie)||E<=11&&setTimeout(ii(ie,function(){return b.updateFromDOM()}),20)}),Et(ge,"compositionstart",function(ot){b.composing={data:ot.data,done:!1}}),Et(ge,"compositionupdate",function(ot){b.composing||(b.composing={data:ot.data,done:!1})}),Et(ge,"compositionend",function(ot){b.composing&&(ot.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),Et(ge,"touchstart",function(){return le.forceCompositionEnd()}),Et(ge,"input",function(){b.composing||b.readFromDOMSoon()});function qe(ot){if(!(!Le(ot)||dt(ie,ot))){if(ie.somethingSelected())Uo({lineWise:!1,text:ie.getSelections()}),ot.type=="cut"&&ie.replaceSelection("",null,"cut");else if(ie.options.lineWiseCopyCut){var lt=Il(ie);Uo({lineWise:!0,text:lt.text}),ot.type=="cut"&&ie.operation(function(){ie.setSelections(lt.ranges,0,Xe),ie.replaceSelection("",null,"cut")})}else return;if(ot.clipboardData){ot.clipboardData.clearData();var ht=Vi.text.join(`
`);if(ot.clipboardData.setData("Text",ht),ot.clipboardData.getData("Text")==ht){ot.preventDefault();return}}var St=Bl(),_t=St.firstChild;ie.display.lineSpace.insertBefore(St,ie.display.lineSpace.firstChild),_t.value=Vi.text.join(`
`);var Ft=document.activeElement;Ke(_t),setTimeout(function(){ie.display.lineSpace.removeChild(St),Ft.focus(),Ft==ge&&le.showPrimarySelection()},50)}}Et(ge,"copy",qe),Et(ge,"cut",qe)},Nn.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Nn.prototype.prepareSelection=function(){var a=Ss(this.cm,!1);return a.focus=document.activeElement==this.div,a},Nn.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Nn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Nn.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,le=b.doc.sel.primary(),ie=le.from(),ge=le.to();if(b.display.viewTo==b.display.viewFrom||ie.line>=b.display.viewTo||ge.line<b.display.viewFrom){a.removeAllRanges();return}var Le=Ho(b,a.anchorNode,a.anchorOffset),qe=Ho(b,a.focusNode,a.focusOffset);if(!(Le&&!Le.bad&&qe&&!qe.bad&&Yt(Pt(Le,qe),ie)==0&&Yt(Mr(Le,qe),ge)==0)){var ot=b.display.view,lt=ie.line>=b.display.viewFrom&&Ll(b,ie)||{node:ot[0].measure.map[2],offset:0},ht=ge.line<b.display.viewTo&&Ll(b,ge);if(!ht){var St=ot[ot.length-1].measure,_t=St.maps?St.maps[St.maps.length-1]:St.map;ht={node:_t[_t.length-1],offset:_t[_t.length-2]-_t[_t.length-3]}}if(!lt||!ht){a.removeAllRanges();return}var Ft=a.rangeCount&&a.getRangeAt(0),Nt;try{Nt=Me(lt.node,lt.offset,ht.offset,ht.node)}catch(nr){}Nt&&(!Ze&&b.state.focused?(a.collapse(lt.node,lt.offset),Nt.collapsed||(a.removeAllRanges(),a.addRange(Nt))):(a.removeAllRanges(),a.addRange(Nt)),Ft&&a.anchorNode==null?a.addRange(Ft):Ze&&this.startGracePeriod()),this.rememberSelection()}},Nn.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)},Nn.prototype.showMultipleSelections=function(a){be(this.cm.display.cursorDiv,a.cursors),be(this.cm.display.selectionDiv,a.selection)},Nn.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Nn.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return Be(this.div,b)},Nn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Nn.prototype.blur=function(){this.div.blur()},Nn.prototype.getField=function(){return this.div},Nn.prototype.supportsTouch=function(){return!0},Nn.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Oi(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},Nn.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Nn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(ae&&se&&this.cm.display.gutterSpecs.length&&Xu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var le=Ho(b,a.anchorNode,a.anchorOffset),ie=Ho(b,a.focusNode,a.focusOffset);le&&ie&&Oi(b,function(){hi(b.doc,da(le,ie),Xe),(le.bad||ie.bad)&&(b.curOp.selectionChanged=!0)})}}},Nn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,le=a.doc.sel.primary(),ie=le.from(),ge=le.to();if(ie.ch==0&&ie.line>a.firstLine()&&(ie=Dt(ie.line-1,Mt(a.doc,ie.line-1).length)),ge.ch==Mt(a.doc,ge.line).text.length&&ge.line<a.lastLine()&&(ge=Dt(ge.line+1,0)),ie.line<b.viewFrom||ge.line>b.viewTo-1)return!1;var Le,qe,ot;ie.line==b.viewFrom||(Le=xa(a,ie.line))==0?(qe=Ct(b.view[0].line),ot=b.view[0].node):(qe=Ct(b.view[Le].line),ot=b.view[Le-1].node.nextSibling);var lt=xa(a,ge.line),ht,St;if(lt==b.view.length-1?(ht=b.viewTo-1,St=b.lineDiv.lastChild):(ht=Ct(b.view[lt+1].line)-1,St=b.view[lt+1].node.previousSibling),!ot)return!1;for(var _t=a.doc.splitLines(Yu(a,ot,St,qe,ht)),Ft=cr(a.doc,Dt(qe,0),Dt(ht,Mt(a.doc,ht).text.length));_t.length>1&&Ft.length>1;)if(st(_t)==st(Ft))_t.pop(),Ft.pop(),ht--;else if(_t[0]==Ft[0])_t.shift(),Ft.shift(),qe++;else break;for(var Nt=0,nr=0,mr=_t[0],jr=Ft[0],Nr=Math.min(mr.length,jr.length);Nt<Nr&&mr.charCodeAt(Nt)==jr.charCodeAt(Nt);)++Nt;for(var Hr=st(_t),Lr=st(Ft),Zr=Math.min(Hr.length-(_t.length==1?Nt:0),Lr.length-(Ft.length==1?Nt:0));nr<Zr&&Hr.charCodeAt(Hr.length-nr-1)==Lr.charCodeAt(Lr.length-nr-1);)++nr;if(_t.length==1&&Ft.length==1&&qe==ie.line)for(;Nt&&Nt>ie.ch&&Hr.charCodeAt(Hr.length-nr-1)==Lr.charCodeAt(Lr.length-nr-1);)Nt--,nr++;_t[_t.length-1]=Hr.slice(0,Hr.length-nr).replace(/^\u200b+/,""),_t[0]=_t[0].slice(Nt).replace(/\u200b+$/,"");var rn=Dt(qe,Nt),Jr=Dt(ht,Ft.length?st(Ft).length-nr:0);if(_t.length>1||_t[0]||Yt(rn,Jr))return Na(a.doc,_t,rn,Jr,"+input"),!0},Nn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Nn.prototype.reset=function(){this.forceCompositionEnd()},Nn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Nn.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))},Nn.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Oi(this.cm,function(){return Ei(a.cm)})},Nn.prototype.setUneditable=function(a){a.contentEditable="false"},Nn.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||ii(this.cm,gs)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Nn.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Nn.prototype.onContextMenu=function(){},Nn.prototype.resetPosition=function(){},Nn.prototype.needsContentAttribute=!0;function Ll(a,b){var le=Qi(a,b.line);if(!le||le.hidden)return null;var ie=Mt(a.doc,b.line),ge=_a(le,ie,b.line),Le=kt(ie,a.doc.direction),qe="left";if(Le){var ot=ct(Le,b.ch);qe=ot%2?"right":"left"}var lt=wo(ge.map,b.ch,qe);return lt.offset=lt.collapse=="right"?lt.end:lt.start,lt}function Xu(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Ha(a,b){return b&&(a.bad=!0),a}function Yu(a,b,le,ie,ge){var Le="",qe=!1,ot=a.doc.lineSeparator(),lt=!1;function ht(Nt){return function(nr){return nr.id==Nt}}function St(){qe&&(Le+=ot,lt&&(Le+=ot),qe=lt=!1)}function _t(Nt){Nt&&(St(),Le+=Nt)}function Ft(Nt){if(Nt.nodeType==1){var nr=Nt.getAttribute("cm-text");if(nr){_t(nr);return}var mr=Nt.getAttribute("cm-marker"),jr;if(mr){var Nr=a.findMarks(Dt(ie,0),Dt(ge+1,0),ht(+mr));Nr.length&&(jr=Nr[0].find(0))&&_t(cr(a.doc,jr.from,jr.to).join(ot));return}if(Nt.getAttribute("contenteditable")=="false")return;var Hr=/^(pre|div|p|li|table|br)$/i.test(Nt.nodeName);if(!/^br$/i.test(Nt.nodeName)&&Nt.textContent.length==0)return;Hr&&St();for(var Lr=0;Lr<Nt.childNodes.length;Lr++)Ft(Nt.childNodes[Lr]);/^(pre|p)$/i.test(Nt.nodeName)&&(lt=!0),Hr&&(qe=!0)}else Nt.nodeType==3&&_t(Nt.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ft(b),b!=le;)b=b.nextSibling,lt=!1;return Le}function Ho(a,b,le){var ie;if(b==a.display.lineDiv){if(ie=a.display.lineDiv.childNodes[le],!ie)return Ha(a.clipPos(Dt(a.display.viewTo-1)),!0);b=null,le=0}else for(ie=b;;ie=ie.parentNode){if(!ie||ie==a.display.lineDiv)return null;if(ie.parentNode&&ie.parentNode==a.display.lineDiv)break}for(var ge=0;ge<a.display.view.length;ge++){var Le=a.display.view[ge];if(Le.node==ie)return Ju(Le,b,le)}}function Ju(a,b,le){var ie=a.text.firstChild,ge=!1;if(!b||!Be(ie,b))return Ha(Dt(Ct(a.line),0),!0);if(b==ie&&(ge=!0,b=ie.childNodes[le],le=0,!b)){var Le=a.rest?st(a.rest):a.line;return Ha(Dt(Ct(Le),Le.text.length),ge)}var qe=b.nodeType==3?b:null,ot=b;for(!qe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(qe=b.firstChild,le&&(le=qe.nodeValue.length));ot.parentNode!=ie;)ot=ot.parentNode;var lt=a.measure,ht=lt.maps;function St(jr,Nr,Hr){for(var Lr=-1;Lr<(ht?ht.length:0);Lr++)for(var Zr=Lr<0?lt.map:ht[Lr],rn=0;rn<Zr.length;rn+=3){var Jr=Zr[rn+2];if(Jr==jr||Jr==Nr){var vn=Ct(Lr<0?a.line:a.rest[Lr]),Wn=Zr[rn]+Hr;return(Hr<0||Jr!=jr)&&(Wn=Zr[rn+(Hr?1:0)]),Dt(vn,Wn)}}}var _t=St(qe,ot,le);if(_t)return Ha(_t,ge);for(var Ft=ot.nextSibling,Nt=qe?qe.nodeValue.length-le:0;Ft;Ft=Ft.nextSibling){if(_t=St(Ft,Ft.firstChild,0),_t)return Ha(Dt(_t.line,_t.ch-Nt),ge);Nt+=Ft.textContent.length}for(var nr=ot.previousSibling,mr=le;nr;nr=nr.previousSibling){if(_t=St(nr,nr.firstChild,-1),_t)return Ha(Dt(_t.line,_t.ch+mr),ge);mr+=nr.textContent.length}}var Qn=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new We,this.hasSelection=!1,this.composing=null};Qn.prototype.init=function(a){var b=this,le=this,ie=this.cm;this.createField(a);var ge=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),re&&(ge.style.width="0px"),Et(ge,"input",function(){ye&&E>=9&&b.hasSelection&&(b.hasSelection=null),le.poll()}),Et(ge,"paste",function(qe){dt(ie,qe)||Pl(qe,ie)||(ie.state.pasteIncoming=+new Date,le.fastPoll())});function Le(qe){if(!dt(ie,qe)){if(ie.somethingSelected())Uo({lineWise:!1,text:ie.getSelections()});else if(ie.options.lineWiseCopyCut){var ot=Il(ie);Uo({lineWise:!0,text:ot.text}),qe.type=="cut"?ie.setSelections(ot.ranges,null,Xe):(le.prevInput="",ge.value=ot.text.join(`
`),Ke(ge))}else return;qe.type=="cut"&&(ie.state.cutIncoming=+new Date)}}Et(ge,"cut",Le),Et(ge,"copy",Le),Et(a.scroller,"paste",function(qe){if(!(ui(a,qe)||dt(ie,qe))){if(!ge.dispatchEvent){ie.state.pasteIncoming=+new Date,le.focus();return}var ot=new Event("paste");ot.clipboardData=qe.clipboardData,ge.dispatchEvent(ot)}}),Et(a.lineSpace,"selectstart",function(qe){ui(a,qe)||jt(qe)}),Et(ge,"compositionstart",function(){var qe=ie.getCursor("from");le.composing&&le.composing.range.clear(),le.composing={start:qe,range:ie.markText(qe,ie.getCursor("to"),{className:"CodeMirror-composing"})}}),Et(ge,"compositionend",function(){le.composing&&(le.poll(),le.composing.range.clear(),le.composing=null)})},Qn.prototype.createField=function(a){this.wrapper=Bl(),this.textarea=this.wrapper.firstChild},Qn.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Qn.prototype.prepareSelection=function(){var a=this.cm,b=a.display,le=a.doc,ie=Ss(a);if(a.options.moveInputWithCursor){var ge=xi(a,le.sel.primary().head,"div"),Le=b.wrapper.getBoundingClientRect(),qe=b.lineDiv.getBoundingClientRect();ie.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ge.top+qe.top-Le.top)),ie.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ge.left+qe.left-Le.left))}return ie},Qn.prototype.showSelection=function(a){var b=this.cm,le=b.display;be(le.cursorDiv,a.cursors),be(le.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Qn.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var le=b.getSelection();this.textarea.value=le,b.state.focused&&Ke(this.textarea),ye&&E>=9&&(this.hasSelection=le)}else a||(this.prevInput=this.textarea.value="",ye&&E>=9&&(this.hasSelection=null))}},Qn.prototype.getField=function(){return this.textarea},Qn.prototype.supportsTouch=function(){return!1},Qn.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ue||Ce()!=this.textarea))try{this.textarea.focus()}catch(a){}},Qn.prototype.blur=function(){this.textarea.blur()},Qn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Qn.prototype.receivedFocus=function(){this.slowPoll()},Qn.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Qn.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function le(){var ie=b.poll();!ie&&!a?(a=!0,b.polling.set(60,le)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,le)},Qn.prototype.poll=function(){var a=this,b=this.cm,le=this.textarea,ie=this.prevInput;if(this.contextMenuPending||!b.state.focused||Ir(le)&&!ie&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ge=le.value;if(ge==ie&&!b.somethingSelected())return!1;if(ye&&E>=9&&this.hasSelection===ge||he&&/[\uf700-\uf7ff]/.test(ge))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Le=ge.charCodeAt(0);if(Le==8203&&!ie&&(ie="\u200B"),Le==8666)return this.reset(),this.cm.execCommand("undo")}for(var qe=0,ot=Math.min(ie.length,ge.length);qe<ot&&ie.charCodeAt(qe)==ge.charCodeAt(qe);)++qe;return Oi(b,function(){gs(b,ge.slice(qe),ie.length-qe,null,a.composing?"*compose":null),ge.length>1e3||ge.indexOf(`
`)>-1?le.value=a.prevInput="":a.prevInput=ge,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Qn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Qn.prototype.onKeyPress=function(){ye&&E>=9&&(this.hasSelection=null),this.fastPoll()},Qn.prototype.onContextMenu=function(a){var b=this,le=b.cm,ie=le.display,ge=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Le=wa(le,a),qe=ie.scroller.scrollTop;if(!Le||ee)return;var ot=le.options.resetSelectionOnContextMenu;ot&&le.doc.sel.contains(Le)==-1&&ii(le,hi)(le.doc,da(Le),Xe);var lt=ge.style.cssText,ht=b.wrapper.style.cssText,St=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ge.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-St.top-5)+"px; left: "+(a.clientX-St.left-5)+`px;
z-index: 1000; background: `+(ye?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var _t;z&&(_t=window.scrollY),ie.input.focus(),z&&window.scrollTo(null,_t),ie.input.reset(),le.somethingSelected()||(ge.value=b.prevInput=" "),b.contextMenuPending=Nt,ie.selForContextMenu=le.doc.sel,clearTimeout(ie.detectingSelectAll);function Ft(){if(ge.selectionStart!=null){var mr=le.somethingSelected(),jr="\u200B"+(mr?ge.value:"");ge.value="\u21DA",ge.value=jr,b.prevInput=mr?"":"\u200B",ge.selectionStart=1,ge.selectionEnd=jr.length,ie.selForContextMenu=le.doc.sel}}function Nt(){if(b.contextMenuPending==Nt&&(b.contextMenuPending=!1,b.wrapper.style.cssText=ht,ge.style.cssText=lt,ye&&E<9&&ie.scrollbars.setScrollTop(ie.scroller.scrollTop=qe),ge.selectionStart!=null)){(!ye||ye&&E<9)&&Ft();var mr=0,jr=function(){ie.selForContextMenu==le.doc.sel&&ge.selectionStart==0&&ge.selectionEnd>0&&b.prevInput=="\u200B"?ii(le,rl)(le):mr++<10?ie.detectingSelectAll=setTimeout(jr,500):(ie.selForContextMenu=null,ie.input.reset())};ie.detectingSelectAll=setTimeout(jr,200)}}if(ye&&E>=9&&Ft(),ke){$t(a);var nr=function(){pt(window,"mouseup",nr),setTimeout(Nt,20)};Et(window,"mouseup",nr)}else setTimeout(Nt,50)},Qn.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Qn.prototype.setUneditable=function(){},Qn.prototype.needsContentAttribute=!1;function Qu(a,b){if(b=b?it(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var le=Ce();b.autofocus=le==a||a.getAttribute("autofocus")!=null&&le==document.body}function ie(){a.value=ot.getValue()}var ge;if(a.form&&(Et(a.form,"submit",ie),!b.leaveSubmitMethodAlone)){var Le=a.form;ge=Le.submit;try{var qe=Le.submit=function(){ie(),Le.submit=ge,Le.submit(),Le.submit=qe}}catch(lt){}}b.finishInit=function(lt){lt.save=ie,lt.getTextArea=function(){return a},lt.toTextArea=function(){lt.toTextArea=isNaN,ie(),a.parentNode.removeChild(lt.getWrapperElement()),a.style.display="",a.form&&(pt(a.form,"submit",ie),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ge))}},a.style.display="none";var ot=Zn(function(lt){return a.parentNode.insertBefore(lt,a.nextSibling)},b);return ot}function $u(a){a.off=pt,a.on=Et,a.wheelEventPixels=au,a.Doc=Si,a.splitLines=sr,a.countColumn=Re,a.findColumn=at,a.isWordChar=Ie,a.Pass=rt,a.signal=mt,a.Line=Bn,a.changeEnd=ha,a.scrollbarModel=js,a.Pos=Dt,a.cmpPos=Yt,a.modes=Rt,a.mimeModes=Bt,a.resolveMode=wr,a.getMode=Ut,a.modeExtensions=Or,a.extendMode=_r,a.copyState=Pr,a.startState=yr,a.innerMode=Dr,a.commands=ho,a.keyMap=ia,a.keyName=yl,a.isModifierKey=vl,a.lookupKey=Fa,a.normalizeKeyMap=Tu,a.StringStream=qt,a.SharedTextMarker=uo,a.TextMarker=ma,a.LineWidget=lo,a.e_preventDefault=jt,a.e_stopPropagation=Zt,a.e_stop=$t,a.addClass=De,a.contains=Be,a.rmClass=Pe,a.keyNames=va}Zu(Zn),Vu(Zn);var qu="iter insert remove copy getEditor constructor".split(" ");for(var Zo in Si.prototype)Si.prototype.hasOwnProperty(Zo)&&et(qu,Zo)<0&&(Zn.prototype[Zo]=function(a){return function(){return a.apply(this.doc,arguments)}}(Si.prototype[Zo]));return At(Si),Zn.inputStyles={textarea:Qn,contenteditable:Nn},Zn.defineMode=function(a){!Zn.defaults.mode&&a!="null"&&(Zn.defaults.mode=a),Vt.apply(this,arguments)},Zn.defineMIME=lr,Zn.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Zn.defineMIME("text/plain","null"),Zn.defineExtension=function(a,b){Zn.prototype[a]=b},Zn.defineDocExtension=function(a,b){Si.prototype[a]=b},Zn.fromTextArea=Qu,$u(Zn),Zn.version="5.58.2",Zn})},25419:function(Lt,Ot,ze){(function(Ze){Ze(ze(89780),ze(15525),ze(98101))})(function(Ze){"use strict";Ze.defineMode("markdown",function(yt,y){var Se=Ze.getMode(yt,"text/html"),ye=Se.name=="null";function E(Re){if(Ze.findModeByName){var We=Ze.findModeByName(Re);We&&(Re=We.mime||We.mimes[0])}var et=Ze.getMode(yt,Re);return et.name=="null"?null:et}y.highlightFormatting===void 0&&(y.highlightFormatting=!1),y.maxBlockquoteDepth===void 0&&(y.maxBlockquoteDepth=0),y.taskLists===void 0&&(y.taskLists=!1),y.strikethrough===void 0&&(y.strikethrough=!1),y.emoji===void 0&&(y.emoji=!1),y.fencedCodeBlockHighlighting===void 0&&(y.fencedCodeBlockHighlighting=!0),y.fencedCodeBlockDefaultMode===void 0&&(y.fencedCodeBlockDefaultMode="text/plain"),y.xml===void 0&&(y.xml=!0),y.tokenTypeOverrides===void 0&&(y.tokenTypeOverrides={});var z={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 oe in z)z.hasOwnProperty(oe)&&y.tokenTypeOverrides[oe]&&(z[oe]=y.tokenTypeOverrides[oe]);var se=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,de=/^\[(x| )\](?=\s)/i,x=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,te=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,ae=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ue=/^\s*\[[^\]]+?\]:.*$/,he=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,pe=" ";function me(Re,We,et){return We.f=We.inline=et,et(Re,We)}function fe(Re,We,et){return We.f=We.block=et,et(Re,We)}function ve(Re){return!Re||!/\S/.test(Re.string)}function ke(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==Pe){var We=ye;if(!We){var et=Ze.innerMode(Se,Re.htmlState);We=et.mode.name=="xml"&&et.state.tagStart===null&&!et.state.context&&et.state.tokenize.isInText}We&&(Re.f=Ae,Re.block=Te,Re.htmlState=null)}return Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,Re.prevLine=Re.thisLine,Re.thisLine={stream:null},null}function Te(Re,We){var et=Re.column()===We.indentation,nt=ve(We.prevLine.stream),rt=We.indentedCode,Xe=We.prevLine.hr,Je=We.list!==!1,Ve=(We.listStack[We.listStack.length-1]||0)+3;We.indentedCode=!1;var at=We.indentation;if(We.indentationDiff===null&&(We.indentationDiff=We.indentation,Je)){for(We.list=null;at<We.listStack[We.listStack.length-1];)We.listStack.pop(),We.listStack.length?We.indentation=We.listStack[We.listStack.length-1]:We.list=!1;We.list!==!1&&(We.indentationDiff=at-We.listStack[We.listStack.length-1])}var Qe=!nt&&!Xe&&!We.prevLine.header&&(!Je||!rt)&&!We.prevLine.fencedCodeEnd,ut=(We.list===!1||Xe||nt)&&We.indentation<=Ve&&Re.match(se),st=null;if(We.indentationDiff>=4&&(rt||We.prevLine.fencedCodeEnd||We.prevLine.header||nt))return Re.skipToEnd(),We.indentedCode=!0,z.code;if(Re.eatSpace())return null;if(et&&We.indentation<=Ve&&(st=Re.match(x))&&st[1].length<=6)return We.quote=0,We.header=st[1].length,We.thisLine.header=!0,y.highlightFormatting&&(We.formatting="header"),We.f=We.inline,be(We);if(We.indentation<=Ve&&Re.eat(">"))return We.quote=et?1:We.quote+1,y.highlightFormatting&&(We.formatting="quote"),Re.eatSpace(),be(We);if(!ut&&!We.setext&&et&&We.indentation<=Ve&&(st=Re.match(ee))){var $e=st[1]?"ol":"ul";return We.indentation=at+Re.current().length,We.list=!0,We.quote=0,We.listStack.push(We.indentation),We.em=!1,We.strong=!1,We.code=!1,We.strikethrough=!1,y.taskLists&&Re.match(de,!1)&&(We.taskList=!0),We.f=We.inline,y.highlightFormatting&&(We.formatting=["list","list-"+$e]),be(We)}else{if(et&&We.indentation<=Ve&&(st=Re.match(ae,!0)))return We.quote=0,We.fencedEndRE=new RegExp(st[1]+"+ *$"),We.localMode=y.fencedCodeBlockHighlighting&&E(st[2]||y.fencedCodeBlockDefaultMode),We.localMode&&(We.localState=Ze.startState(We.localMode)),We.f=We.block=_e,y.highlightFormatting&&(We.formatting="code-block"),We.code=-1,be(We);if(We.setext||(!Qe||!Je)&&!We.quote&&We.list===!1&&!We.code&&!ut&&!ue.test(Re.string)&&(st=Re.lookAhead(1))&&(st=st.match(te)))return We.setext?(We.header=We.setext,We.setext=0,Re.skipToEnd(),y.highlightFormatting&&(We.formatting="header")):(We.header=st[0].charAt(0)=="="?1:2,We.setext=We.header),We.thisLine.header=!0,We.f=We.inline,be(We);if(ut)return Re.skipToEnd(),We.hr=!0,We.thisLine.hr=!0,z.hr;if(Re.peek()==="[")return me(Re,We,He)}return me(Re,We,We.inline)}function Pe(Re,We){var et=Se.token(Re,We.htmlState);if(!ye){var nt=Ze.innerMode(Se,We.htmlState);(nt.mode.name=="xml"&&nt.state.tagStart===null&&!nt.state.context&&nt.state.tokenize.isInText||We.md_inside&&Re.current().indexOf(">")>-1)&&(We.f=Ae,We.block=Te,We.htmlState=null)}return et}function _e(Re,We){var et=We.listStack[We.listStack.length-1]||0,nt=We.indentation<et,rt=et+3;if(We.fencedEndRE&&We.indentation<=rt&&(nt||Re.match(We.fencedEndRE))){y.highlightFormatting&&(We.formatting="code-block");var Xe;return nt||(Xe=be(We)),We.localMode=We.localState=null,We.block=Te,We.f=Ae,We.fencedEndRE=null,We.code=0,We.thisLine.fencedCodeEnd=!0,nt?fe(Re,We,We.block):Xe}else return We.localMode?We.localMode.token(Re,We.localState):(Re.skipToEnd(),z.code)}function be(Re){var We=[];if(Re.formatting){We.push(z.formatting),typeof Re.formatting=="string"&&(Re.formatting=[Re.formatting]);for(var et=0;et<Re.formatting.length;et++)We.push(z.formatting+"-"+Re.formatting[et]),Re.formatting[et]==="header"&&We.push(z.formatting+"-"+Re.formatting[et]+"-"+Re.header),Re.formatting[et]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Re.quote?We.push(z.formatting+"-"+Re.formatting[et]+"-"+Re.quote):We.push("error"))}if(Re.taskOpen)return We.push("meta"),We.length?We.join(" "):null;if(Re.taskClosed)return We.push("property"),We.length?We.join(" "):null;if(Re.linkHref?We.push(z.linkHref,"url"):(Re.strong&&We.push(z.strong),Re.em&&We.push(z.em),Re.strikethrough&&We.push(z.strikethrough),Re.emoji&&We.push(z.emoji),Re.linkText&&We.push(z.linkText),Re.code&&We.push(z.code),Re.image&&We.push(z.image),Re.imageAltText&&We.push(z.imageAltText,"link"),Re.imageMarker&&We.push(z.imageMarker)),Re.header&&We.push(z.header,z.header+"-"+Re.header),Re.quote&&(We.push(z.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Re.quote?We.push(z.quote+"-"+Re.quote):We.push(z.quote+"-"+y.maxBlockquoteDepth)),Re.list!==!1){var nt=(Re.listStack.length-1)%3;nt?nt===1?We.push(z.list2):We.push(z.list3):We.push(z.list1)}return Re.trailingSpaceNewLine?We.push("trailing-space-new-line"):Re.trailingSpace&&We.push("trailing-space-"+(Re.trailingSpace%2?"a":"b")),We.length?We.join(" "):null}function xe(Re,We){if(Re.match(re,!0))return be(We)}function Ae(Re,We){var et=We.text(Re,We);if(typeof et!="undefined")return et;if(We.list)return We.list=null,be(We);if(We.taskList){var nt=Re.match(de,!0)[1]===" ";return nt?We.taskOpen=!0:We.taskClosed=!0,y.highlightFormatting&&(We.formatting="task"),We.taskList=!1,be(We)}if(We.taskOpen=!1,We.taskClosed=!1,We.header&&Re.match(/^#+$/,!0))return y.highlightFormatting&&(We.formatting="header"),be(We);var rt=Re.next();if(We.linkTitle){We.linkTitle=!1;var Xe=rt;rt==="("&&(Xe=")"),Xe=(Xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Je="^\\s*(?:[^"+Xe+"\\\\]+|\\\\\\\\|\\\\.)"+Xe;if(Re.match(new RegExp(Je),!0))return z.linkHref}if(rt==="`"){var Ve=We.formatting;y.highlightFormatting&&(We.formatting="code"),Re.eatWhile("`");var at=Re.current().length;if(We.code==0&&(!We.quote||at==1))return We.code=at,be(We);if(at==We.code){var Qe=be(We);return We.code=0,Qe}else return We.formatting=Ve,be(We)}else if(We.code)return be(We);if(rt==="\\"&&(Re.next(),y.highlightFormatting)){var ut=be(We),st=z.formatting+"-escape";return ut?ut+" "+st:st}if(rt==="!"&&Re.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return We.imageMarker=!0,We.image=!0,y.highlightFormatting&&(We.formatting="image"),be(We);if(rt==="["&&We.imageMarker&&Re.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return We.imageMarker=!1,We.imageAltText=!0,y.highlightFormatting&&(We.formatting="image"),be(We);if(rt==="]"&&We.imageAltText){y.highlightFormatting&&(We.formatting="image");var ut=be(We);return We.imageAltText=!1,We.image=!1,We.inline=We.f=Be,ut}if(rt==="["&&!We.image)return We.linkText&&Re.match(/^.*?\]/)||(We.linkText=!0,y.highlightFormatting&&(We.formatting="link")),be(We);if(rt==="]"&&We.linkText){y.highlightFormatting&&(We.formatting="link");var ut=be(We);return We.linkText=!1,We.inline=We.f=Re.match(/\(.*?\)| ?\[.*?\]/,!1)?Be:Ae,ut}if(rt==="<"&&Re.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Me,y.highlightFormatting&&(We.formatting="link");var ut=be(We);return ut?ut+=" ":ut="",ut+z.linkInline}if(rt==="<"&&Re.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Me,y.highlightFormatting&&(We.formatting="link");var ut=be(We);return ut?ut+=" ":ut="",ut+z.linkEmail}if(y.xml&&rt==="<"&&Re.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var $e=Re.string.indexOf(">",Re.pos);if($e!=-1){var Ne=Re.string.substring(Re.start,$e);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ne)&&(We.md_inside=!0)}return Re.backUp(1),We.htmlState=Ze.startState(Se),fe(Re,We,Pe)}if(y.xml&&rt==="<"&&Re.match(/^\/\w*?>/))return We.md_inside=!1,"tag";if(rt==="*"||rt==="_"){for(var je=1,ne=Re.pos==1?" ":Re.string.charAt(Re.pos-2);je<3&&Re.eat(rt);)je++;var ce=Re.peek()||" ",Ie=!/\s/.test(ce)&&(!he.test(ce)||/\s/.test(ne)||he.test(ne)),Fe=!/\s/.test(ne)&&(!he.test(ne)||/\s/.test(ce)||he.test(ce)),we=null,Ee=null;if(je%2&&(!We.em&&Ie&&(rt==="*"||!Fe||he.test(ne))?we=!0:We.em==rt&&Fe&&(rt==="*"||!Ie||he.test(ce))&&(we=!1)),je>1&&(!We.strong&&Ie&&(rt==="*"||!Fe||he.test(ne))?Ee=!0:We.strong==rt&&Fe&&(rt==="*"||!Ie||he.test(ce))&&(Ee=!1)),Ee!=null||we!=null){y.highlightFormatting&&(We.formatting=we==null?"strong":Ee==null?"em":"strong em"),we===!0&&(We.em=rt),Ee===!0&&(We.strong=rt);var Qe=be(We);return we===!1&&(We.em=!1),Ee===!1&&(We.strong=!1),Qe}}else if(rt===" "&&(Re.eat("*")||Re.eat("_"))){if(Re.peek()===" ")return be(We);Re.backUp(1)}if(y.strikethrough){if(rt==="~"&&Re.eatWhile(rt)){if(We.strikethrough){y.highlightFormatting&&(We.formatting="strikethrough");var Qe=be(We);return We.strikethrough=!1,Qe}else if(Re.match(/^[^\s]/,!1))return We.strikethrough=!0,y.highlightFormatting&&(We.formatting="strikethrough"),be(We)}else if(rt===" "&&Re.match(/^~~/,!0)){if(Re.peek()===" ")return be(We);Re.backUp(2)}}if(y.emoji&&rt===":"&&Re.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){We.emoji=!0,y.highlightFormatting&&(We.formatting="emoji");var Oe=be(We);return We.emoji=!1,Oe}return rt===" "&&(Re.match(/^ +$/,!1)?We.trailingSpace++:We.trailingSpace&&(We.trailingSpaceNewLine=!0)),be(We)}function Me(Re,We){var et=Re.next();if(et===">"){We.f=We.inline=Ae,y.highlightFormatting&&(We.formatting="link");var nt=be(We);return nt?nt+=" ":nt="",nt+z.linkInline}return Re.match(/^[^>]+/,!0),z.linkInline}function Be(Re,We){if(Re.eatSpace())return null;var et=Re.next();return et==="("||et==="["?(We.f=We.inline=De(et==="("?")":"]"),y.highlightFormatting&&(We.formatting="link-string"),We.linkHref=!0,be(We)):"error"}var Ce={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function De(Re){return function(We,et){var nt=We.next();if(nt===Re){et.f=et.inline=Ae,y.highlightFormatting&&(et.formatting="link-string");var rt=be(et);return et.linkHref=!1,rt}return We.match(Ce[Re]),et.linkHref=!0,be(et)}}function He(Re,We){return Re.match(/^([^\]\\]|\\.)*\]:/,!1)?(We.f=Ke,Re.next(),y.highlightFormatting&&(We.formatting="link"),We.linkText=!0,be(We)):me(Re,We,Ae)}function Ke(Re,We){if(Re.match(/^\]:/,!0)){We.f=We.inline=Ye,y.highlightFormatting&&(We.formatting="link");var et=be(We);return We.linkText=!1,et}return Re.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function Ye(Re,We){return Re.eatSpace()?null:(Re.match(/^[^\s]+/,!0),Re.peek()===void 0?We.linkTitle=!0:Re.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),We.f=We.inline=Ae,z.linkHref+" url")}var it={startState:function(){return{f:Te,prevLine:{stream:null},thisLine:{stream:null},block:Te,htmlState:null,indentation:0,inline:Ae,text:xe,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&&Ze.copyState(Se,Re.htmlState),indentation:Re.indentation,localMode:Re.localMode,localState:Re.localMode?Ze.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,We){if(We.formatting=!1,Re!=We.thisLine.stream){if(We.header=0,We.hr=!1,Re.match(/^\s*$/,!0))return ke(We),null;if(We.prevLine=We.thisLine,We.thisLine={stream:Re},We.taskList=!1,We.trailingSpace=0,We.trailingSpaceNewLine=!1,!We.localState&&(We.f=We.block,We.f!=Pe)){var et=Re.match(/^\s*/,!0)[0].replace(/\t/g,pe).length;if(We.indentation=et,We.indentationDiff=null,et>0)return null}}return We.f(Re,We)},innerMode:function(Re){return Re.block==Pe?{state:Re.htmlState,mode:Se}:Re.localState?{state:Re.localState,mode:Re.localMode}:{state:Re,mode:it}},indent:function(Re,We,et){return Re.block==Pe&&Se.indent?Se.indent(Re.htmlState,We,et):Re.localState&&Re.localMode.indent?Re.localMode.indent(Re.localState,We,et):Ze.Pass},blankLine:ke,getType:be,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return it},"xml"),Ze.defineMIME("text/markdown","markdown"),Ze.defineMIME("text/x-markdown","markdown")})},98101:function(Lt,Ot,ze){(function(Ze){Ze(ze(89780))})(function(Ze){"use strict";Ze.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 yt=0;yt<Ze.modeInfo.length;yt++){var y=Ze.modeInfo[yt];y.mimes&&(y.mime=y.mimes[0])}Ze.findModeByMIME=function(Se){Se=Se.toLowerCase();for(var ye=0;ye<Ze.modeInfo.length;ye++){var E=Ze.modeInfo[ye];if(E.mime==Se)return E;if(E.mimes){for(var z=0;z<E.mimes.length;z++)if(E.mimes[z]==Se)return E}}if(/\+xml$/.test(Se))return Ze.findModeByMIME("application/xml");if(/\+json$/.test(Se))return Ze.findModeByMIME("application/json")},Ze.findModeByExtension=function(Se){Se=Se.toLowerCase();for(var ye=0;ye<Ze.modeInfo.length;ye++){var E=Ze.modeInfo[ye];if(E.ext){for(var z=0;z<E.ext.length;z++)if(E.ext[z]==Se)return E}}},Ze.findModeByFileName=function(Se){for(var ye=0;ye<Ze.modeInfo.length;ye++){var E=Ze.modeInfo[ye];if(E.file&&E.file.test(Se))return E}var z=Se.lastIndexOf("."),oe=z>-1&&Se.substring(z+1,Se.length);if(oe)return Ze.findModeByExtension(oe)},Ze.findModeByName=function(Se){Se=Se.toLowerCase();for(var ye=0;ye<Ze.modeInfo.length;ye++){var E=Ze.modeInfo[ye];if(E.name.toLowerCase()==Se)return E;if(E.alias){for(var z=0;z<E.alias.length;z++)if(E.alias[z].toLowerCase()==Se)return E}}}})},67549:function(Lt,Ot,ze){(function(Ze){Ze(ze(89780))})(function(Ze){"use strict";Ze.defineMode("stex",function(yt,y){"use strict";function Se(re,ae){re.cmdState.push(ae)}function ye(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function E(re){var ae=re.cmdState.pop();ae&&ae.closeBracket()}function z(re){for(var ae=re.cmdState,ue=ae.length-1;ue>=0;ue--){var he=ae[ue];if(he.name!="DEFAULT")return he}return{styleIdentifier:function(){return null}}}function oe(re,ae,ue){return function(){this.name=re,this.bracketNo=0,this.style=ae,this.styles=ue,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var se={};se.importmodule=oe("importmodule","tag",["string","builtin"]),se.documentclass=oe("documentclass","tag",["","atom"]),se.usepackage=oe("usepackage","tag",["atom"]),se.begin=oe("begin","tag",["atom"]),se.end=oe("end","tag",["atom"]),se.label=oe("label","tag",["atom"]),se.ref=oe("ref","tag",["atom"]),se.eqref=oe("eqref","tag",["atom"]),se.cite=oe("cite","tag",["atom"]),se.bibitem=oe("bibitem","tag",["atom"]),se.Bibitem=oe("Bibitem","tag",["atom"]),se.RBibitem=oe("RBibitem","tag",["atom"]),se.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(re,ae){re.f=ae}function de(re,ae){var ue;if(re.match(/^\\[a-zA-Z@]+/)){var he=re.current().slice(1);return ue=se.hasOwnProperty(he)?se[he]:se.DEFAULT,ue=new ue,Se(ae,ue),ee(ae,te),ue.style}if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return ee(ae,function(me,fe){return x(me,fe,"\\]")}),"keyword";if(re.match("\\("))return ee(ae,function(me,fe){return x(me,fe,"\\)")}),"keyword";if(re.match("$$"))return ee(ae,function(me,fe){return x(me,fe,"$$")}),"keyword";if(re.match("$"))return ee(ae,function(me,fe){return x(me,fe,"$")}),"keyword";var pe=re.next();if(pe=="%")return re.skipToEnd(),"comment";if(pe=="}"||pe=="]"){if(ue=ye(ae),ue)ue.closeBracket(pe),ee(ae,te);else return"error";return"bracket"}else return pe=="{"||pe=="["?(ue=se.DEFAULT,ue=new ue,Se(ae,ue),"bracket"):/\d/.test(pe)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),ue=z(ae),ue.name=="begin"&&(ue.argument=re.current()),ue.styleIdentifier())}function x(re,ae,ue){if(re.eatSpace())return null;if(ue&&re.match(ue))return ee(ae,de),"keyword";if(re.match(/^\\[a-zA-Z@]+/))return"tag";if(re.match(/^[a-zA-Z]+/))return"variable-2";if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/]/)||re.match(/^[\^_&]/))return"tag";if(re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var he=re.next();return he=="{"||he=="}"||he=="["||he=="]"||he=="("||he==")"?"bracket":he=="%"?(re.skipToEnd(),"comment"):"error"}function te(re,ae){var ue=re.peek(),he;return ue=="{"||ue=="["?(he=ye(ae),he.openBracket(ue),re.eat(ue),ee(ae,de),"bracket"):/[ \t\r]/.test(ue)?(re.eat(ue),null):(ee(ae,de),E(ae),de(re,ae))}return{startState:function(){var re=y.inMathMode?function(ae,ue){return x(ae,ue)}:de;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,ae){return ae.f(re,ae)},blankLine:function(re){re.f=de,re.cmdState.length=0},lineComment:"%"}}),Ze.defineMIME("text/x-stex","stex"),Ze.defineMIME("text/x-latex","stex")})},15525:function(Lt,Ot,ze){(function(Ze){Ze(ze(89780))})(function(Ze){"use strict";var yt={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},y={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ze.defineMode("xml",function(Se,ye){var E=Se.indentUnit,z={},oe=ye.htmlMode?yt:y;for(var se in oe)z[se]=oe[se];for(var se in ye)z[se]=ye[se];var ee,de;function x(Me,Be){function Ce(Ke){return Be.tokenize=Ke,Ke(Me,Be)}var De=Me.next();if(De=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?Ce(ae("atom","]]>")):null:Me.match("--")?Ce(ae("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),Ce(ue(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),Be.tokenize=ae("meta","?>"),"meta"):(ee=Me.eat("/")?"closeTag":"openTag",Be.tokenize=te,"tag bracket");if(De=="&"){var He;return Me.eat("#")?Me.eat("x")?He=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):He=Me.eatWhile(/[\d]/)&&Me.eat(";"):He=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),He?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}x.isInText=!0;function te(Me,Be){var Ce=Me.next();if(Ce==">"||Ce=="/"&&Me.eat(">"))return Be.tokenize=x,ee=Ce==">"?"endTag":"selfcloseTag","tag bracket";if(Ce=="=")return ee="equals",null;if(Ce=="<"){Be.tokenize=x,Be.state=fe,Be.tagName=Be.tagStart=null;var De=Be.tokenize(Me,Be);return De?De+" tag error":"tag error"}else return/[\'\"]/.test(Ce)?(Be.tokenize=re(Ce),Be.stringStartCol=Me.column(),Be.tokenize(Me,Be)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(Me){var Be=function(Ce,De){for(;!Ce.eol();)if(Ce.next()==Me){De.tokenize=te;break}return"string"};return Be.isInAttribute=!0,Be}function ae(Me,Be){return function(Ce,De){for(;!Ce.eol();){if(Ce.match(Be)){De.tokenize=x;break}Ce.next()}return Me}}function ue(Me){return function(Be,Ce){for(var De;(De=Be.next())!=null;){if(De=="<")return Ce.tokenize=ue(Me+1),Ce.tokenize(Be,Ce);if(De==">")if(Me==1){Ce.tokenize=x;break}else return Ce.tokenize=ue(Me-1),Ce.tokenize(Be,Ce)}return"meta"}}function he(Me,Be,Ce){this.prev=Me.context,this.tagName=Be,this.indent=Me.indented,this.startOfLine=Ce,(z.doNotIndent.hasOwnProperty(Be)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function pe(Me){Me.context&&(Me.context=Me.context.prev)}function me(Me,Be){for(var Ce;;){if(!Me.context||(Ce=Me.context.tagName,!z.contextGrabbers.hasOwnProperty(Ce)||!z.contextGrabbers[Ce].hasOwnProperty(Be)))return;pe(Me)}}function fe(Me,Be,Ce){return Me=="openTag"?(Ce.tagStart=Be.column(),ve):Me=="closeTag"?ke:fe}function ve(Me,Be,Ce){return Me=="word"?(Ce.tagName=Be.current(),de="tag",_e):z.allowMissingTagName&&Me=="endTag"?(de="tag bracket",_e(Me,Be,Ce)):(de="error",ve)}function ke(Me,Be,Ce){if(Me=="word"){var De=Be.current();return Ce.context&&Ce.context.tagName!=De&&z.implicitlyClosed.hasOwnProperty(Ce.context.tagName)&&pe(Ce),Ce.context&&Ce.context.tagName==De||z.matchClosing===!1?(de="tag",Te):(de="tag error",Pe)}else return z.allowMissingTagName&&Me=="endTag"?(de="tag bracket",Te(Me,Be,Ce)):(de="error",Pe)}function Te(Me,Be,Ce){return Me!="endTag"?(de="error",Te):(pe(Ce),fe)}function Pe(Me,Be,Ce){return de="error",Te(Me,Be,Ce)}function _e(Me,Be,Ce){if(Me=="word")return de="attribute",be;if(Me=="endTag"||Me=="selfcloseTag"){var De=Ce.tagName,He=Ce.tagStart;return Ce.tagName=Ce.tagStart=null,Me=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(De)?me(Ce,De):(me(Ce,De),Ce.context=new he(Ce,De,He==Ce.indented)),fe}return de="error",_e}function be(Me,Be,Ce){return Me=="equals"?xe:(z.allowMissing||(de="error"),_e(Me,Be,Ce))}function xe(Me,Be,Ce){return Me=="string"?Ae:Me=="word"&&z.allowUnquoted?(de="string",_e):(de="error",_e(Me,Be,Ce))}function Ae(Me,Be,Ce){return Me=="string"?Ae:_e(Me,Be,Ce)}return{startState:function(Me){var Be={tokenize:x,state:fe,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(Be.baseIndent=Me),Be},token:function(Me,Be){if(!Be.tagName&&Me.sol()&&(Be.indented=Me.indentation()),Me.eatSpace())return null;ee=null;var Ce=Be.tokenize(Me,Be);return(Ce||ee)&&Ce!="comment"&&(de=null,Be.state=Be.state(ee||Ce,Me,Be),de&&(Ce=de=="error"?Ce+" error":de)),Ce},indent:function(Me,Be,Ce){var De=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+E;if(De&&De.noIndent)return Ze.Pass;if(Me.tokenize!=te&&Me.tokenize!=x)return Ce?Ce.match(/^(\s*)/)[0].length:0;if(Me.tagName)return z.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+E*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(Be))return 0;var He=Be&&/^<(\/)?([\w_:\.-]*)/.exec(Be);if(He&&He[1])for(;De;)if(De.tagName==He[2]){De=De.prev;break}else if(z.implicitlyClosed.hasOwnProperty(De.tagName))De=De.prev;else break;else if(He)for(;De;){var Ke=z.contextGrabbers[De.tagName];if(Ke&&Ke.hasOwnProperty(He[2]))De=De.prev;else break}for(;De&&De.prev&&!De.startOfLine;)De=De.prev;return De?De.indent+E:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==xe&&(Me.state=_e)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var Be=[],Ce=Me.context;Ce;Ce=Ce.prev)Ce.tagName&&Be.push(Ce.tagName);return Be.reverse()}}}),Ze.defineMIME("text/xml","xml"),Ze.defineMIME("application/xml","xml"),Ze.mimeModes.hasOwnProperty("text/html")||Ze.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Lt,Ot,ze){var Ze,yt;(function(y,Se){Lt.exports=Se(y)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ze.g!="undefined"?ze.g:this,function(y){"use strict";y=y||{};var Se=y.Base64,ye="2.6.4",E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=function(Ce){for(var De={},He=0,Ke=Ce.length;He<Ke;He++)De[Ce.charAt(He)]=He;return De}(E),oe=String.fromCharCode,se=function(Ce){if(Ce.length<2){var De=Ce.charCodeAt(0);return De<128?Ce:De<2048?oe(192|De>>>6)+oe(128|De&63):oe(224|De>>>12&15)+oe(128|De>>>6&63)+oe(128|De&63)}else{var De=65536+(Ce.charCodeAt(0)-55296)*1024+(Ce.charCodeAt(1)-56320);return oe(240|De>>>18&7)+oe(128|De>>>12&63)+oe(128|De>>>6&63)+oe(128|De&63)}},ee=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,de=function(Ce){return Ce.replace(ee,se)},x=function(Ce){var De=[0,2,1][Ce.length%3],He=Ce.charCodeAt(0)<<16|(Ce.length>1?Ce.charCodeAt(1):0)<<8|(Ce.length>2?Ce.charCodeAt(2):0),Ke=[E.charAt(He>>>18),E.charAt(He>>>12&63),De>=2?"=":E.charAt(He>>>6&63),De>=1?"=":E.charAt(He&63)];return Ke.join("")},te=y.btoa&&typeof y.btoa=="function"?function(Ce){return y.btoa(Ce)}:function(Ce){if(Ce.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ce.replace(/[\s\S]{1,3}/g,x)},re=function(Ce){return te(de(String(Ce)))},ae=function(Ce){return Ce.replace(/[+\/]/g,function(De){return De=="+"?"-":"_"}).replace(/=/g,"")},ue=function(Ce,De){return De?ae(re(Ce)):re(Ce)},he=function(Ce){return ue(Ce,!0)},pe;y.Uint8Array&&(pe=function(Ce,De){for(var He="",Ke=0,Ye=Ce.length;Ke<Ye;Ke+=3){var it=Ce[Ke],Re=Ce[Ke+1],We=Ce[Ke+2],et=it<<16|Re<<8|We;He+=E.charAt(et>>>18)+E.charAt(et>>>12&63)+(typeof Re!="undefined"?E.charAt(et>>>6&63):"=")+(typeof We!="undefined"?E.charAt(et&63):"=")}return De?ae(He):He});var me=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,fe=function(Ce){switch(Ce.length){case 4:var De=(7&Ce.charCodeAt(0))<<18|(63&Ce.charCodeAt(1))<<12|(63&Ce.charCodeAt(2))<<6|63&Ce.charCodeAt(3),He=De-65536;return oe((He>>>10)+55296)+oe((He&1023)+56320);case 3:return oe((15&Ce.charCodeAt(0))<<12|(63&Ce.charCodeAt(1))<<6|63&Ce.charCodeAt(2));default:return oe((31&Ce.charCodeAt(0))<<6|63&Ce.charCodeAt(1))}},ve=function(Ce){return Ce.replace(me,fe)},ke=function(Ce){var De=Ce.length,He=De%4,Ke=(De>0?z[Ce.charAt(0)]<<18:0)|(De>1?z[Ce.charAt(1)]<<12:0)|(De>2?z[Ce.charAt(2)]<<6:0)|(De>3?z[Ce.charAt(3)]:0),Ye=[oe(Ke>>>16),oe(Ke>>>8&255),oe(Ke&255)];return Ye.length-=[0,0,2,1][He],Ye.join("")},Te=y.atob&&typeof y.atob=="function"?function(Ce){return y.atob(Ce)}:function(Ce){return Ce.replace(/\S{1,4}/g,ke)},Pe=function(Ce){return Te(String(Ce).replace(/[^A-Za-z0-9\+\/]/g,""))},_e=function(Ce){return ve(Te(Ce))},be=function(Ce){return String(Ce).replace(/[-_]/g,function(De){return De=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},xe=function(Ce){return _e(be(Ce))},Ae;y.Uint8Array&&(Ae=function(Ce){return Uint8Array.from(Pe(be(Ce)),function(De){return De.charCodeAt(0)})});var Me=function(){var Ce=y.Base64;return y.Base64=Se,Ce};if(y.Base64={VERSION:ye,atob:Pe,btoa:te,fromBase64:xe,toBase64:ue,utob:de,encode:ue,encodeURI:he,btou:ve,decode:xe,noConflict:Me,fromUint8Array:pe,toUint8Array:Ae},typeof Object.defineProperty=="function"){var Be=function(Ce){return{value:Ce,enumerable:!1,writable:!0,configurable:!0}};y.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Be(function(){return xe(this)})),Object.defineProperty(String.prototype,"toBase64",Be(function(Ce){return ue(this,Ce)})),Object.defineProperty(String.prototype,"toBase64URI",Be(function(){return ue(this,!0)}))}}return y.Meteor&&(Base64=y.Base64),Lt.exports?Lt.exports.Base64=y.Base64:(Ze=[],yt=function(){return y.Base64}.apply(Ot,Ze),yt!==void 0&&(Lt.exports=yt)),{Base64:y.Base64}})},2859:function(Lt,Ot,ze){"use strict";ze.d(Ot,{hP:function(){return Ne}});var Ze=function(je,ne){return(Ze=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ce,Ie){ce.__proto__=Ie}||function(ce,Ie){for(var Fe in Ie)Object.prototype.hasOwnProperty.call(Ie,Fe)&&(ce[Fe]=Ie[Fe])})(je,ne)};function yt(je,ne){function ce(){this.constructor=je}Ze(je,ne),je.prototype=ne===null?Object.create(ne):(ce.prototype=ne.prototype,new ce)}function y(je,ne,ce,Ie){return new(ce||(ce=Promise))(function(Fe,we){function Ee(tt){try{Ue(Ie.next(tt))}catch(Ge){we(Ge)}}function Oe(tt){try{Ue(Ie.throw(tt))}catch(Ge){we(Ge)}}function Ue(tt){var Ge;tt.done?Fe(tt.value):(Ge=tt.value,Ge instanceof ce?Ge:new ce(function(ft){ft(Ge)})).then(Ee,Oe)}Ue((Ie=Ie.apply(je,ne||[])).next())})}function Se(je,ne){var ce,Ie,Fe,we,Ee={label:0,sent:function(){if(1&Fe[0])throw Fe[1];return Fe[1]},trys:[],ops:[]};return we={next:Oe(0),throw:Oe(1),return:Oe(2)},typeof Symbol=="function"&&(we[Symbol.iterator]=function(){return this}),we;function Oe(Ue){return function(tt){return function(Ge){if(ce)throw new TypeError("Generator is already executing.");for(;Ee;)try{if(ce=1,Ie&&(Fe=2&Ge[0]?Ie.return:Ge[0]?Ie.throw||((Fe=Ie.return)&&Fe.call(Ie),0):Ie.next)&&!(Fe=Fe.call(Ie,Ge[1])).done)return Fe;switch(Ie=0,Fe&&(Ge=[2&Ge[0],Fe.value]),Ge[0]){case 0:case 1:Fe=Ge;break;case 4:return Ee.label++,{value:Ge[1],done:!1};case 5:Ee.label++,Ie=Ge[1],Ge=[0];continue;case 7:Ge=Ee.ops.pop(),Ee.trys.pop();continue;default:if(Fe=Ee.trys,!((Fe=Fe.length>0&&Fe[Fe.length-1])||Ge[0]!==6&&Ge[0]!==2)){Ee=0;continue}if(Ge[0]===3&&(!Fe||Ge[1]>Fe[0]&&Ge[1]<Fe[3])){Ee.label=Ge[1];break}if(Ge[0]===6&&Ee.label<Fe[1]){Ee.label=Fe[1],Fe=Ge;break}if(Fe&&Ee.label<Fe[2]){Ee.label=Fe[2],Ee.ops.push(Ge);break}Fe[2]&&Ee.ops.pop(),Ee.trys.pop();continue}Ge=ne.call(je,Ee)}catch(ft){Ge=[6,ft],Ie=0}finally{ce=Fe=0}if(5&Ge[0])throw Ge[1];return{value:Ge[0]?Ge[1]:void 0,done:!0}}([Ue,tt])}}}function ye(){for(var je=0,ne=0,ce=arguments.length;ne<ce;ne++)je+=arguments[ne].length;var Ie=Array(je),Fe=0;for(ne=0;ne<ce;ne++)for(var we=arguments[ne],Ee=0,Oe=we.length;Ee<Oe;Ee++,Fe++)Ie[Fe]=we[Ee];return Ie}var E=function(){function je(){}return je.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},je.setAttributes=function(ne,ce){for(var Ie=0,Fe=ce;Ie<Fe.length;Ie++){var we=Fe[Ie],Ee=we[0],Oe=we[1];ne.setAttribute(Ee,Oe)}},je.createRect=function(ne,ce,Ie){var Fe=document.createElementNS("http://www.w3.org/2000/svg","rect");return Fe.setAttribute("width",ne.toString()),Fe.setAttribute("height",ce.toString()),Ie&&je.setAttributes(Fe,Ie),Fe},je.createLine=function(ne,ce,Ie,Fe,we){var Ee=document.createElementNS("http://www.w3.org/2000/svg","line");return Ee.setAttribute("x1",ne.toString()),Ee.setAttribute("y1",ce.toString()),Ee.setAttribute("x2",Ie.toString()),Ee.setAttribute("y2",Fe.toString()),we&&je.setAttributes(Ee,we),Ee},je.createPolygon=function(ne,ce){var Ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Ie.setAttribute("points",ne),ce&&je.setAttributes(Ie,ce),Ie},je.createCircle=function(ne,ce){var Ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return Ie.setAttribute("cx",(ne/2).toString()),Ie.setAttribute("cy",(ne/2).toString()),Ie.setAttribute("r",ne.toString()),ce&&je.setAttributes(Ie,ce),Ie},je.createEllipse=function(ne,ce,Ie){var Fe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Fe.setAttribute("cx",(ne/2).toString()),Fe.setAttribute("cy",(ce/2).toString()),Fe.setAttribute("rx",(ne/2).toString()),Fe.setAttribute("ry",(ce/2).toString()),Ie&&je.setAttributes(Fe,Ie),Fe},je.createGroup=function(ne){var ce=document.createElementNS("http://www.w3.org/2000/svg","g");return ne&&je.setAttributes(ce,ne),ce},je.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},je.createMarker=function(ne,ce,Ie,Fe,we,Ee,Oe){var Ue=document.createElementNS("http://www.w3.org/2000/svg","marker");return je.setAttributes(Ue,[["id",ne],["orient",ce],["markerWidth",Ie.toString()],["markerHeight",Fe.toString()],["refX",we.toString()],["refY",Ee.toString()]]),Ue.appendChild(Oe),Ue},je.createText=function(ne){var ce=document.createElementNS("http://www.w3.org/2000/svg","text");return ce.setAttribute("x","0"),ce.setAttribute("y","0"),ne&&je.setAttributes(ce,ne),ce},je.createTSpan=function(ne,ce){var Ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Ie.textContent=ne,ce&&je.setAttributes(Ie,ce),Ie},je.createImage=function(ne){var ce=document.createElementNS("http://www.w3.org/2000/svg","image");return ne&&je.setAttributes(ce,ne),ce},je.createPoint=function(ne,ce){var Ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Ie.x=ne,Ie.y=ce,Ie},je.createPath=function(ne,ce){var Ie=document.createElementNS("http://www.w3.org/2000/svg","path");return Ie.setAttribute("d",ne),ce&&je.setAttributes(Ie,ce),Ie},je}(),z=function(){function je(){}return je.addKey=function(ne){je.key=ne},Object.defineProperty(je,"isLicensed",{get:function(){return!!je.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(je.key)},enumerable:!1,configurable:!0}),je}(),oe=function(){function je(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return je.prototype.rasterize=function(ne,ce,Ie){var Fe=this;return new Promise(function(we){var Ee=Ie!==void 0?Ie:document.createElement("canvas");ne===null&&(Fe.markersOnly=!0,Fe.naturalSize=!1);var Oe=document.createElementNS("http://www.w3.org/2000/svg","svg");Oe.setAttribute("xmlns","http://www.w3.org/2000/svg"),Oe.setAttribute("width",ce.width.baseVal.valueAsString),Oe.setAttribute("height",ce.height.baseVal.valueAsString),Oe.setAttribute("viewBox","0 0 "+ce.viewBox.baseVal.width.toString()+" "+ce.viewBox.baseVal.height.toString()),Oe.innerHTML=ce.innerHTML,Fe.naturalSize===!0?(Oe.width.baseVal.value=ne.naturalWidth,Oe.height.baseVal.value=ne.naturalHeight):Fe.width!==void 0&&Fe.height!==void 0&&(Oe.width.baseVal.value=Fe.width,Oe.height.baseVal.value=Fe.height),Ee.width=Oe.width.baseVal.value,Ee.height=Oe.height.baseVal.value;var Ue=Oe.outerHTML,tt=Ee.getContext("2d");Fe.markersOnly!==!0&&tt.drawImage(ne,0,0,Ee.width,Ee.height);var Ge=window.URL,ft=new Image(Ee.width,Ee.height);ft.setAttribute("crossOrigin","anonymous");var ct=new Blob([Ue],{type:"image/svg+xml"}),vt=Ge.createObjectURL(ct);ft.onload=function(){tt.drawImage(ft,0,0),Ge.revokeObjectURL(vt);var kt=Ee.toDataURL(Fe.imageType,Fe.imageQuality);we(kt)},ft.src=vt})},je}(),se=function(){},ee=function(){function je(ne){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ne+"_"}return Object.defineProperty(je.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(je.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(je.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),je.prototype.addClass=function(ne){return this.styleSheet===void 0&&this.addStyleSheet(),ne.name=""+this.classNamePrefix+ne.localName,this.classes.push(ne),this.styleSheet.sheet.insertRule("."+ne.name+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length),ne},je.prototype.addRule=function(ne){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ne),this.styleSheet.sheet.insertRule(ne.selector+" {"+ne.style+"}",this.styleSheet.sheet.cssRules.length)},je.prototype.addStyleSheet=function(){var ne;this.styleSheet=document.createElement("style"),((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).appendChild(this.styleSheet),this.addRule(new de("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new de("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new de("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new x("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new x("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},je.prototype.removeStyleSheet=function(){var ne;this.styleSheet&&(((ne=this.styleSheetRoot)!==null&&ne!==void 0?ne:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},je}(),de=function(je,ne){this.selector=je,this.style=ne},x=function(je,ne){this.localName=je,this.style=ne},te=function(){function je(ne,ce,Ie,Fe,we){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ne,this.displayMode=ce,this.markerItems=Ie,this.uiStyleSettings=Fe,this.styles=we,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return je.prototype.show=function(ne){var ce=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Ie=document.createElement("div");Ie.className=this.toolbarBlockStyleClass.name,Ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(Ie),this.addActionButton(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(Ie,'<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(we){var Ee=document.createElement("div");Ee.className=""+ce.toolbarButtonStyleClass.name,Ee.setAttribute("data-type-name",we.typeName),Ee.innerHTML=we.icon,Ee.addEventListener("click",function(){ce.markerToolbarButtonClicked(Ee,we)}),ce.buttons.push(Ee),ce.markerButtons.push(Ee)}),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 Fe=document.createElement("div");Fe.className=this.toolbarBlockStyleClass.name,Fe.style.whiteSpace="nowrap",Fe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Fe),this.addActionButton(Fe,'<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(Fe,'<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()},je.prototype.addButtonClickListener=function(ne){this.buttonClickListeners.push(ne)},je.prototype.removeButtonClickListener=function(ne){this.buttonClickListeners.indexOf(ne)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ne),1)},je.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},je.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ne=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ce=0;ce<this.markerButtons.length;ce++)ce<ne||ce===ne&&this.markerButtons.length-1===ne?this.markerButtonBlock.appendChild(this.markerButtons[ce]):(ce===ne&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ce]))}},je.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")},je.prototype.resetButtonStyles=function(){var ne=this;this.buttons.forEach(function(ce){ce.className=ce.className.replace(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name,"").trim(),ce.className=ce.className.replace(ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ne.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ne.toolbarActiveButtonStyleColorsClass.name,"").trim(),ce.className+=" "+(ne.uiStyleSettings.toolbarButtonStyleColorsClassName?ne.uiStyleSettings.toolbarButtonStyleColorsClassName:ne.toolbarButtonStyleColorsClass.name)})},je.prototype.addActionButton=function(ne,ce,Ie){var Fe=this,we=document.createElement("div");switch(we.className=""+this.toolbarButtonStyleClass.name,we.innerHTML=ce,we.setAttribute("data-action",Ie),we.addEventListener("click",function(){Fe.actionToolbarButtonClicked(we,Ie)}),Ie){case"select":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":we.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":we.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":we.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":we.style.fill=this.uiStyleSettings.closeButtonColor}ne.appendChild(we),this.buttons.push(we)},je.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new x("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 x("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new x("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new x("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 x("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var ne=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new x("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ne)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ne)+`px;
padding: `+ne+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new x("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new x("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new de("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new de("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},je.prototype.markerToolbarButtonClicked=function(ne,ce){this.setActiveButton(ne),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ie){return Ie("marker",ce)}),this.markerButtonOverflowBlock.style.display="none"},je.prototype.actionToolbarButtonClicked=function(ne,ce){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Ie){return Ie("action",ce)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},je.prototype.setActiveButton=function(ne){this.resetButtonStyles(),ne.className=ne.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ne.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},je.prototype.setActiveMarkerButton=function(ne){var ce=this.markerButtons.find(function(Ie){return Ie.getAttribute("data-type-name")===ne});ce&&this.setActiveButton(ce)},je.prototype.setCurrentMarker=function(ne){var ce=this;this.currentMarker=ne,this.buttons.filter(function(Ie){return/delete|notes/.test(Ie.getAttribute("data-action"))}).forEach(function(Ie){ce.currentMarker===void 0?(Ie.style.fillOpacity="0.4",Ie.style.pointerEvents="none"):(Ie.style.fillOpacity="1",Ie.style.pointerEvents="all")})},je}(),re=function(){function je(ne,ce,Ie,Fe){this.panels=[],this.panelButtons=[],this.markerjsContainer=ne,this.displayMode=ce,this.uiStyleSettings=Ie,this.styles=Fe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return je.prototype.addStyles=function(){var ne;this.toolboxStyleClass=this.styles.addClass(new x("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 x("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ce=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new x("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new x("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new x("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 x("toolbox-panel-row_colors",`
background-color: `+((ne=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ne!==void 0?ne:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new x("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ce)+`px;
padding: `+ce+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new x("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new x("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new de("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new de("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},je.prototype.show=function(ne){var ce;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ne,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},je.prototype.setPanelButtons=function(ne){var ce,Ie,Fe=this;this.panels=ne,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ce=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ce!==void 0?ce:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Ie!==void 0?Ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(we){var Ee;we.uiStyleSettings=Fe.uiStyleSettings;var Oe=document.createElement("div");Oe.className=Fe.toolboxButtonStyleClass.name+" "+((Ee=Fe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ee!==void 0?Ee:Fe.toolboxButtonStyleColorsClass.name),Oe.innerHTML=we.icon,Oe.title=we.title,Oe.addEventListener("click",function(){Fe.panelButtonClick(we)}),Fe.panelButtons.push(Oe),Fe.buttonRow.appendChild(Oe)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},je.prototype.panelButtonClick=function(ne){var ce=this,Ie=-1;if(ne!==this.activePanel){Ie=this.panels.indexOf(ne),this.panelRow.innerHTML="";var Fe=ne.getUi();Fe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Fe),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=ne}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ce.displayMode==="inline"?ce.panelRow.style.display="none":ce.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(we,Ee){var Oe,Ue;we.className=ce.toolboxButtonStyleClass.name+" "+(Ee===Ie?""+((Oe=ce.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Oe!==void 0?Oe:ce.toolboxActiveButtonStyleColorsClass.name):""+((Ue=ce.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ue!==void 0?Ue:ce.toolboxButtonStyleColorsClass.name))})},je}(),ae=function(je,ne){this.title=je,this.icon=ne},ue=function(je){function ne(ce,Ie,Fe,we){var Ee=je.call(this,ce,we||'<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 Ee.colors=[],Ee.addTransparent=!1,Ee.colorBoxes=[],Ee.colors=Ie,Ee.currentColor=Fe,Ee.setCurrentColor=Ee.setCurrentColor.bind(Ee),Ee.getColorBox=Ee.getColorBox.bind(Ee),Ee}return yt(ne,je),ne.prototype.getUi=function(){var ce=this,Ie=document.createElement("div");return Ie.style.overflow="hidden",Ie.style.whiteSpace="nowrap",this.colors.forEach(function(Fe){var we=ce.getColorBox(Fe);Ie.appendChild(we),ce.colorBoxes.push(we)}),Ie},ne.prototype.getColorBox=function(ce){var Ie=this,Fe=this.uiStyleSettings.toolbarHeight/4,we=this.uiStyleSettings.toolbarHeight-Fe,Ee=document.createElement("div");Ee.style.display="inline-block",Ee.style.boxSizing="content-box",Ee.style.width=we-2+"px",Ee.style.height=we-2+"px",Ee.style.padding="1px",Ee.style.marginRight="2px",Ee.style.marginBottom="2px",Ee.style.borderWidth="2px",Ee.style.borderStyle="solid",Ee.style.borderRadius=(we+2)/2+"px",Ee.style.borderColor=ce===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ee.addEventListener("click",function(){Ie.setCurrentColor(ce,Ee)});var Oe=document.createElement("div");return Oe.style.display="inline-block",Oe.style.width=we-2+"px",Oe.style.height=we-2+"px",Oe.style.backgroundColor=ce,Oe.style.borderRadius=we/2+"px",ce==="transparent"&&(Oe.style.fill=this.uiStyleSettings.toolboxAccentColor,Oe.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>`),Ee.appendChild(Oe),Ee},ne.prototype.setCurrentColor=function(ce,Ie){var Fe=this;this.currentColor=ce,this.colorBoxes.forEach(function(we){we.style.borderColor=we===Ie?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ce)},ne}(ae),he=function(){function je(ne,ce,Ie){this._state="new",this._isSelected=!1,this._container=ne,this._overlayContainer=ce,this.globalSettings=Ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(je.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),je.prototype.ownsTarget=function(ne){return!1},Object.defineProperty(je.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),je.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},je.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},je.prototype.pointerDown=function(ne,ce){},je.prototype.dblClick=function(ne,ce){},je.prototype.manipulate=function(ne){},je.prototype.pointerUp=function(ne){this.stateChanged()},je.prototype.dispose=function(){},je.prototype.addMarkerVisualToContainer=function(ne){this.container.childNodes.length>0?this.container.insertBefore(ne,this.container.childNodes[0]):this.container.appendChild(ne)},je.prototype.getState=function(){return{typeName:je.typeName,state:this.state,notes:this.notes}},je.prototype.restoreState=function(ne){this._state=ne.state,this.notes=ne.notes},je.prototype.scale=function(ne,ce){},je.prototype.colorChanged=function(ne){this.onColorChanged&&this.onColorChanged(ne),this.stateChanged()},je.prototype.fillColorChanged=function(ne){this.onFillColorChanged&&this.onFillColorChanged(ne),this.stateChanged()},je.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ne=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ne.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ne)&&this.onStateChanged(this)}},je.typeName="MarkerBase",je}(),pe=function(){function je(){this.findGripByVisual=this.findGripByVisual.bind(this)}return je.prototype.findGripByVisual=function(ne){return this.topLeft.ownsTarget(ne)?this.topLeft:this.topCenter.ownsTarget(ne)?this.topCenter:this.topRight.ownsTarget(ne)?this.topRight:this.centerLeft.ownsTarget(ne)?this.centerLeft:this.centerRight.ownsTarget(ne)?this.centerRight:this.bottomLeft.ownsTarget(ne)?this.bottomLeft:this.bottomCenter.ownsTarget(ne)?this.bottomCenter:this.bottomRight.ownsTarget(ne)?this.bottomRight:void 0},je}(),me=function(){function je(){this.GRIP_SIZE=10,this.visual=E.createGroup(),this.visual.appendChild(E.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(E.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return je.prototype.ownsTarget=function(ne){return ne===this.visual||ne===this.visual.childNodes[0]||ne===this.visual.childNodes[1]},je}(),fe=function(){function je(){}return je.toITransformMatrix=function(ne){return{a:ne.a,b:ne.b,c:ne.c,d:ne.d,e:ne.e,f:ne.f}},je.toSVGMatrix=function(ne,ce){return ne.a=ce.a,ne.b=ce.b,ne.c=ce.c,ne.d=ce.d,ne.e=ce.e,ne.f=ce.f,ne},je}(),ve=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.left=0,we.top=0,we.width=0,we.height=0,we.defaultSize={x:50,y:20},we.offsetX=0,we.offsetY=0,we.rotationAngle=0,we.CB_DISTANCE=10,we._suppressMarkerCreateEvent=!1,we.container.transform.baseVal.appendItem(E.createTransform()),we.setupControlBox(),we}return yt(ne,je),Object.defineProperty(ne.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ne.prototype,"visual",{get:function(){return this._visual},set:function(ce){this._visual=ce;var Ie=E.createTransform();this._visual.transform.baseVal.appendItem(Ie)},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(ce){return!!je.prototype.ownsTarget.call(this,ce)||!!(this.controlGrips.findGripByVisual(ce)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ce))},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.state==="new"&&(this.left=ce.x,this.top=ce.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Fe=this.unrotatePoint(ce);if(this.manipulationStartX=Fe.x,this.manipulationStartY=Fe.y,this.offsetX=Fe.x-this.left,this.offsetY=Fe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Ie)){this.activeGrip=this.rotatorGrip;var we=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=we.x-this.width/2,this.top=we.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ee=this.container.transform.baseVal.getItem(0);Ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ee,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ne.prototype.pointerUp=function(ce){var Ie=this.state;je.prototype.pointerUp.call(this,ce),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ce),this._state="select",Ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ne.prototype.moveVisual=function(ce){this.visual.style.transform="translate("+ce.x+"px, "+ce.y+"px)"},ne.prototype.manipulate=function(ce){var Ie=this.unrotatePoint(ce);this.state==="creating"?this.resize(ce):this.state==="move"?(this.left=this.manipulationStartLeft+(Ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Ie):this.state==="rotate"&&this.rotate(ce)},ne.prototype.resize=function(ce){var Ie=this.manipulationStartLeft,Fe=this.manipulationStartWidth,we=this.manipulationStartTop,Ee=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Ie=this.manipulationStartLeft+ce.x-this.manipulationStartX,Fe=this.manipulationStartWidth+this.manipulationStartLeft-Ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Fe=this.manipulationStartWidth+ce.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:we=this.manipulationStartTop+ce.y-this.manipulationStartY,Ee=this.manipulationStartHeight+this.manipulationStartTop-we;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ee=this.manipulationStartHeight+ce.y-this.manipulationStartY}Fe>=0?(this.left=Ie,this.width=Fe):(this.left=Ie+Fe,this.width=-Fe),Ee>=0?(this.top=we,this.height=Ee):(this.top=we+Ee,this.height=-Ee),this.setSize()},ne.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ne.prototype.rotate=function(ce){if(Math.abs(ce.x-this.centerX)>.1){var Ie=Math.sign(ce.x-this.centerX);this.rotationAngle=180*Math.atan((ce.y-this.centerY)/(ce.x-this.centerX))/Math.PI+90*Ie,this.applyRotation()}},ne.prototype.applyRotation=function(){var ce=this.container.transform.baseVal.getItem(0);ce.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ce,0)},ne.prototype.rotatePoint=function(ce){if(this.rotationAngle===0)return ce;var Ie=this.container.getCTM(),Fe=E.createPoint(ce.x,ce.y);return{x:(Fe=Fe.matrixTransform(Ie)).x,y:Fe.y}},ne.prototype.unrotatePoint=function(ce){if(this.rotationAngle===0)return ce;var Ie=this.container.getCTM();Ie=Ie.inverse();var Fe=E.createPoint(ce.x,ce.y);return{x:(Fe=Fe.matrixTransform(Ie)).x,y:Fe.y}},ne.prototype.select=function(){je.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){je.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=E.createGroup();var ce=E.createTransform();ce.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ce),this.container.appendChild(this.controlBox),this.controlRect=E.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=E.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 pe,this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){var ce=this.controlBox.transform.baseVal.getItem(0);ce.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ce,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()},ne.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()},ne.prototype.createGrip=function(){var ce=new me;return ce.visual.transform.baseVal.appendItem(E.createTransform()),this.controlBox.appendChild(ce.visual),ce},ne.prototype.positionGrips=function(){var ce=this.controlGrips.topLeft.GRIP_SIZE,Ie=-ce/2,Fe=Ie,we=(this.width+this.CB_DISTANCE)/2-ce/2,Ee=(this.height+this.CB_DISTANCE)/2-ce/2,Oe=this.height+this.CB_DISTANCE-ce/2,Ue=this.width+this.CB_DISTANCE-ce/2;this.positionGrip(this.controlGrips.topLeft.visual,Ie,Fe),this.positionGrip(this.controlGrips.topCenter.visual,we,Fe),this.positionGrip(this.controlGrips.topRight.visual,Ue,Fe),this.positionGrip(this.controlGrips.centerLeft.visual,Ie,Ee),this.positionGrip(this.controlGrips.centerRight.visual,Ue,Ee),this.positionGrip(this.controlGrips.bottomLeft.visual,Ie,Oe),this.positionGrip(this.controlGrips.bottomCenter.visual,we,Oe),this.positionGrip(this.controlGrips.bottomRight.visual,Ue,Oe),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,we,Fe-3*this.CB_DISTANCE)},ne.prototype.positionGrip=function(ce,Ie,Fe){var we=ce.transform.baseVal.getItem(0);we.setTranslate(Ie,Fe),ce.transform.baseVal.replaceItem(we,0)},ne.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ne.prototype.showControlBox=function(){this.controlBox.style.display=""},ne.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:fe.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:fe.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},je.prototype.getState.call(this))},ne.prototype.restoreState=function(ce){je.prototype.restoreState.call(this,ce);var Ie=ce;this.left=Ie.left,this.top=Ie.top,this.width=Ie.width,this.height=Ie.height,this.rotationAngle=Ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(fe.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(fe.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Ie.containerTransformMatrix))},ne.prototype.scale=function(ce,Ie){je.prototype.scale.call(this,ce,Ie);var Fe=this.rotatePoint({x:this.left,y:this.top}),we=this.unrotatePoint({x:Fe.x*ce,y:Fe.y*Ie});this.left=we.x,this.top=we.y,this.width=this.width*ce,this.height=this.height*Ie,this.adjustControlBox()},ne}(he),ke=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return!(!je.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},ne.prototype.createVisual=function(){this.visual=E.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)},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ne.prototype.manipulate=function(ce){je.prototype.manipulate.call(this,ce)},ne.prototype.resize=function(ce){je.prototype.resize.call(this,ce),this.setSize()},ne.prototype.setSize=function(){je.prototype.setSize.call(this),E.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(ce){je.prototype.pointerUp.call(this,ce),this.setSize()},ne.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&E.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ne.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&E.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ne.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&E.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&E.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},je.prototype.getState.call(this))},ne.prototype.restoreState=function(ce){var Ie=ce;this.fillColor=Ie.fillColor,this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.opacity=Ie.opacity,this.createVisual(),je.prototype.restoreState.call(this,ce),this.setSize()},ne.prototype.scale=function(ce,Ie){je.prototype.scale.call(this,ce,Ie),this.setSize()},ne.title="Rectangle marker",ne}(ve),Te=function(je){function ne(ce,Ie,Fe,we){var Ee=je.call(this,ce,we||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ee.widths=[],Ee.widthBoxes=[],Ee.widths=Ie,Ee.currentWidth=Fe,Ee.setCurrentWidth=Ee.setCurrentWidth.bind(Ee),Ee}return yt(ne,je),ne.prototype.getUi=function(){var ce=this,Ie=document.createElement("div");return Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.widths.forEach(function(Fe){var we=document.createElement("div");we.style.display="flex",we.style.flexGrow="2",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=Fe===ce.currentWidth?ce.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ce.setCurrentWidth(Fe,we)}),Ie.appendChild(we);var Ee=document.createElement("div");Ee.innerText=Fe.toString(),Ee.style.marginRight="5px",we.appendChild(Ee);var Oe=document.createElement("div");Oe.style.minHeight="20px",Oe.style.flexGrow="2",Oe.style.display="flex",Oe.style.alignItems="center";var Ue=document.createElement("hr");Ue.style.minWidth="20px",Ue.style.border="0px",Ue.style.borderTop=Fe+"px solid "+ce.uiStyleSettings.toolboxColor,Ue.style.flexGrow="2",Oe.appendChild(Ue),we.appendChild(Oe),ce.widthBoxes.push(we)}),Ie},ne.prototype.setCurrentWidth=function(ce,Ie){var Fe=this;this.currentWidth=ce,this.widthBoxes.forEach(function(we){we.style.borderColor=we===Ie?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ne}(ae),Pe=function(je){function ne(ce,Ie,Fe,we){var Ee=je.call(this,ce,we||'<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 Ee.styles=[],Ee.styleBoxes=[],Ee.styles=Ie,Ee.currentStyle=Fe,Ee.setCurrentStyle=Ee.setCurrentStyle.bind(Ee),Ee}return yt(ne,je),ne.prototype.getUi=function(){var ce=this,Ie=document.createElement("div");return Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.styles.forEach(function(Fe){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/ce.styles.length-5+"%",we.style.borderColor=Fe===ce.currentStyle?ce.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ce.setCurrentStyle(Fe,we)}),Ie.appendChild(we);var Ee=document.createElement("div");Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.overflow="hidden";var Oe=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ce.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Fe!==""?'stroke-dasharray="'+Fe+'"':"")+` />
</svg>`;Ee.innerHTML=Oe,we.appendChild(Ee),ce.styleBoxes.push(we)}),Ie},ne.prototype.setCurrentStyle=function(ce,Ie){var Fe=this;this.currentStyle=ce,this.styleBoxes.forEach(function(we){we.style.borderColor=we===Ie?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ne}(ae),_e=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.strokePanel=new ue("Line color",Fe.defaultColorSet,Fe.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Pe("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return yt(ne,je),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=je.prototype.getState.call(this);return ce.typeName=ne.typeName,ce},ne.typeName="FrameMarker",ne.title="Frame marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ne}(ke),be=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"},xe=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.x1=0,we.y1=0,we.x2=0,we.y2=0,we.defaultLength=50,we.manipulationStartX=0,we.manipulationStartY=0,we.manipulationStartX1=0,we.manipulationStartY1=0,we.manipulationStartX2=0,we.manipulationStartY2=0,we.setupControlBox(),we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return!!je.prototype.ownsTarget.call(this,ce)||!(!this.grip1.ownsTarget(ce)&&!this.grip2.ownsTarget(ce))},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.manipulationStartX=ce.x,this.manipulationStartY=ce.y,this.state==="new"&&(this.x1=ce.x,this.y1=ce.y,this.x2=ce.x,this.y2=ce.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ne.prototype.pointerUp=function(ce){var Ie=this.state;je.prototype.pointerUp.call(this,ce),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(ce),this._state="select",Ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ne.prototype.adjustVisual=function(){},ne.prototype.manipulate=function(ce){this.state==="creating"?this.resize(ce):this.state==="move"?(this.x1=this.manipulationStartX1+ce.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ce.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ce.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ce.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ce)},ne.prototype.resize=function(ce){switch(this.activeGrip){case this.grip1:this.x1=ce.x,this.y1=ce.y;break;case this.grip2:case void 0:this.x2=ce.x,this.y2=ce.y}this.adjustVisual(),this.adjustControlBox()},ne.prototype.select=function(){je.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ne.prototype.deselect=function(){je.prototype.deselect.call(this),this.controlBox.style.display="none"},ne.prototype.setupControlBox=function(){this.controlBox=E.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ne.prototype.adjustControlBox=function(){this.positionGrips()},ne.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ne.prototype.createGrip=function(){var ce=new me;return ce.visual.transform.baseVal.appendItem(E.createTransform()),this.controlBox.appendChild(ce.visual),ce},ne.prototype.positionGrips=function(){var ce=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ce/2,this.y1-ce/2),this.positionGrip(this.grip2.visual,this.x2-ce/2,this.y2-ce/2)},ne.prototype.positionGrip=function(ce,Ie,Fe){var we=ce.transform.baseVal.getItem(0);we.setTranslate(Ie,Fe),ce.transform.baseVal.replaceItem(we,0)},ne.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},je.prototype.getState.call(this))},ne.prototype.restoreState=function(ce){je.prototype.restoreState.call(this,ce);var Ie=ce;this.x1=Ie.x1,this.y1=Ie.y1,this.x2=Ie.x2,this.y2=Ie.y2},ne.prototype.scale=function(ce,Ie){je.prototype.scale.call(this,ce,Ie),this.x1=this.x1*ce,this.y1=this.y1*Ie,this.x2=this.x2*ce,this.y2=this.y2*Ie,this.adjustVisual(),this.adjustControlBox()},ne}(he),Ae=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.strokePanel=new ue("Line color",Fe.defaultColorSet,Fe.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Pe("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return!(!je.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorLine&&ce!==this.visibleLine)},ne.prototype.createVisual=function(){this.visual=E.createGroup(),this.selectorLine=E.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=E.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)},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ne.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()),E.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),E.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),E.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},ne.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},je.prototype.getState.call(this));return ce.typeName=ne.typeName,ce},ne.prototype.restoreState=function(ce){je.prototype.restoreState.call(this,ce);var Ie=ce;this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.createVisual(),this.adjustVisual()},ne.typeName="LineMarker",ne.title="Line marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ne}(xe),Me=function(je){function ne(ce,Ie,Fe,we){var Ee=je.call(this,ce,we||'<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 Ee.fonts=[],Ee.fontBoxes=[],Ee.fonts=Ie,Ee.currentFont=Fe,Ee.setCurrentFont=Ee.setCurrentFont.bind(Ee),Ee}return yt(ne,je),ne.prototype.getUi=function(){var ce=this,Ie=document.createElement("div");return Ie.style.overflow="hidden",Ie.style.flexGrow="2",this.fonts.forEach(function(Fe){var we=document.createElement("div");we.style.display="inline-block",we.style.alignItems="center",we.style.justifyContent="space-between",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.overflow="hidden",we.style.maxWidth=100/ce.fonts.length-5+"%",we.style.borderColor=Fe===ce.currentFont?ce.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ce.setCurrentFont(Fe,we)}),Ie.appendChild(we);var Ee=document.createElement("div");Ee.style.display="flex",Ee.style.minHeight="20px",Ee.style.flexGrow="2",Ee.style.fontFamily=Fe,Ee.style.overflow="hidden";var Oe=document.createElement("div");Oe.style.whiteSpace="nowrap",Oe.style.overflow="hidden",Oe.style.textOverflow="ellipsis",Oe.innerHTML="The quick brown fox jumps over the lazy dog",Ee.appendChild(Oe),we.appendChild(Ee),ce.fontBoxes.push(we)}),Ie},ne.prototype.setCurrentFont=function(ce,Ie){var Fe=this;this.currentFont=ce,this.fontBoxes.forEach(function(we){we.style.borderColor=we===Ie?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ne}(ae),Be=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.color="transparent",we.padding=5,we.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",we.text=we.DEFAULT_TEXT,we.isMoved=!1,we.color=Fe.defaultColor,we.fontFamily=Fe.defaultFontFamily,we.defaultSize={x:100,y:30},we.setColor=we.setColor.bind(we),we.setFont=we.setFont.bind(we),we.renderText=we.renderText.bind(we),we.sizeText=we.sizeText.bind(we),we.textEditDivClicked=we.textEditDivClicked.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.setSize=we.setSize.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.colorPanel=new ue("Color",Fe.defaultColorSet,Fe.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.fontFamilyPanel=new Me("Font",Fe.defaultFontFamilies,Fe.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){if(je.prototype.ownsTarget.call(this,ce)||ce===this.visual||ce===this.textElement||ce===this.bgRectangle)return!0;var Ie=!1;return this.textElement.childNodes.forEach(function(Fe){Fe===ce&&(Ie=!0)}),Ie},ne.prototype.createVisual=function(){this.visual=E.createGroup(),this.bgRectangle=E.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=E.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(E.createTransform()),this.textElement.transform.baseVal.appendItem(E.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ne.prototype.renderText=function(){var ce=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Ie){ce.textElement.appendChild(E.createTSpan(Ie.trim()===""?" ":Ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ne.prototype.getTextScale=function(){var ce=this.textElement.getBBox(),Ie=1;if(ce.width>0&&ce.height>0){var Fe=(1*this.width-this.width*this.padding*2/100)/ce.width,we=(1*this.height-this.height*this.padding*2/100)/ce.height;Ie=Math.min(Fe,we)}return Ie},ne.prototype.getTextPosition=function(ce){var Ie=this.textElement.getBBox(),Fe=0,we=0;return Ie.width>0&&Ie.height>0&&(Fe=(this.width-Ie.width*ce)/2,we=this.height/2-Ie.height*ce/2),{x:Fe,y:we}},ne.prototype.sizeText=function(){var ce=this.textElement.getBBox(),Ie=this.getTextScale(),Fe=this.getTextPosition(Ie);Fe.y-=ce.y*Ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Fe.x+"px, "+Fe.y+"px) scale("+Ie+", "+Ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Fe.x,Fe.y),this.textElement.transform.baseVal.getItem(1).setScale(Ie,Ie))},ne.prototype.manipulate=function(ce){je.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(ce){je.prototype.resize.call(this,ce),this.isMoved=!0,this.setSize(),this.sizeText()},ne.prototype.setSize=function(){je.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(E.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),E.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ne.prototype.pointerUp=function(ce){var Ie=this.state;Ie==="creating"&&(this._suppressMarkerCreateEvent=!0),je.prototype.pointerUp.call(this,ce),this.setSize(),(Ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.showTextEditor=function(){var ce=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Ie){Ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Ie=Number.parseFloat(ce.textEditor.style.fontSize);ce.textEditor.clientWidth>=Number.parseInt(ce.textEditor.style.maxWidth)&&Ie>.9;)Ie-=.1,ce.textEditor.style.fontSize=Math.max(Ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Ie){Ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Ie){if(Ie.clipboardData){var Fe=Ie.clipboardData.getData("text"),we=window.getSelection();if(!we.rangeCount)return!1;we.deleteFromDocument(),we.getRangeAt(0).insertNode(document.createTextNode(Fe)),Ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ce.textEditDivClicked(ce.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ne.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ce=this.getTextScale(),Ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Fe=this.textElement.getBBox(),we={x:Fe.width*ce,y:Fe.height*ce};Ie.x-=we.x/2,Ie.y-=we.y/2,this.textEditor.style.top=Ie.y+"px",this.textEditor.style.left=Ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Ie.x+"px",this.textEditor.style.fontSize=Math.max(16*ce,12)+"px",this.textElement.style.display="none"}},ne.prototype.textEditDivClicked=function(ce){this.text=ce.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ne.prototype.select=function(){je.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ne.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),je.prototype.deselect.call(this)},ne.prototype.dblClick=function(ce,Ie){je.prototype.dblClick.call(this,ce,Ie),this.showTextEditor()},ne.prototype.setColor=function(ce){this.textElement&&E.setAttributes(this.textElement,[["fill",ce]]),this.color=ce,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ce)},ne.prototype.setFont=function(ce){this.textElement&&E.setAttributes(this.textElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ne.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ne.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},je.prototype.getState.call(this));return ce.typeName=ne.typeName,ce},ne.prototype.restoreState=function(ce){var Ie=ce;this.color=Ie.color,this.fontFamily=Ie.fontFamily,this.padding=Ie.padding,this.text=Ie.text,this.createVisual(),je.prototype.restoreState.call(this,ce),this.setSize()},ne.prototype.scale=function(ce,Ie){je.prototype.scale.call(this,ce,Ie),this.setSize(),this.sizeText(),this.positionTextEditor()},ne.typeName="TextMarker",ne.title="Text marker",ne.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>',ne}(ve),Ce=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.color="transparent",we.lineWidth=3,we.drawing=!1,we.pixelRatio=1,we.color=Fe.defaultColor,we.lineWidth=Fe.defaultStrokeWidth,we.pixelRatio=Fe.freehandPixelRatio,we.setColor=we.setColor.bind(we),we.addCanvas=we.addCanvas.bind(we),we.finishCreation=we.finishCreation.bind(we),we.setLineWidth=we.setLineWidth.bind(we),we.colorPanel=new ue("Color",Fe.defaultColorSet,Fe.defaultColor),we.colorPanel.onColorChanged=we.setColor,we.lineWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.lineWidthPanel.onWidthChanged=we.setLineWidth,we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return!(!je.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.drawingImage)},ne.prototype.createVisual=function(){this.visual=E.createGroup(),this.drawingImage=E.createImage(),this.visual.appendChild(this.drawingImage);var ce=E.createTransform();this.visual.transform.baseVal.appendItem(ce),this.addMarkerVisualToContainer(this.visual)},ne.prototype.pointerDown=function(ce,Ie){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ce.x,ce.y),this.drawing=!0):je.prototype.pointerDown.call(this,ce,Ie)},ne.prototype.manipulate=function(ce){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ce.x,ce.y),this.canvasContext.stroke()):je.prototype.manipulate.call(this,ce)},ne.prototype.resize=function(ce){je.prototype.resize.call(this,ce),E.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),E.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ne.prototype.pointerUp=function(ce){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):je.prototype.pointerUp.call(this,ce)},ne.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)},ne.prototype.select=function(){this.state==="creating"&&this.finishCreation(),je.prototype.select.call(this)},ne.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),je.prototype.deselect.call(this)},ne.prototype.finishCreation=function(){for(var ce=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Fe=Ie[0],we=Ie[1],Ee=Ie[2],Oe=Ie[3],Ue=!1,tt=0;tt<this.canvasElement.height;tt++)for(var Ge=0;Ge<this.canvasElement.width;Ge++)ce.data[tt*this.canvasElement.width*4+4*Ge+3]>0&&(Ue=!0,tt<we&&(we=tt),Ge<Fe&&(Fe=Ge),tt>Oe&&(Oe=tt),Ge>Ee&&(Ee=Ge));if(Ue){this.left=Fe/this.pixelRatio,this.top=we/this.pixelRatio,this.width=(Ee-Fe)/this.pixelRatio,this.height=(Oe-we)/this.pixelRatio;var ft=document.createElement("canvas");ft.width=Ee-Fe,ft.height=Oe-we,ft.getContext("2d").putImageData(this.canvasContext.getImageData(Fe,we,Ee-Fe,Oe-we),0,0),this.drawingImgUrl=ft.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ne.prototype.setDrawingImage=function(){E.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),E.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ne.prototype.setColor=function(ce){this.color=ce,this.colorChanged(ce)},ne.prototype.setLineWidth=function(ce){this.lineWidth=ce},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=Object.assign({drawingImgUrl:this.drawingImgUrl},je.prototype.getState.call(this));return ce.typeName=ne.typeName,ce},ne.prototype.restoreState=function(ce){this.createVisual(),je.prototype.restoreState.call(this,ce),this.drawingImgUrl=ce.drawingImgUrl,this.setDrawingImage()},ne.prototype.scale=function(ce,Ie){je.prototype.scale.call(this,ce,Ie),this.setDrawingImage()},ne.typeName="FreehandMarker",ne.title="Freehand marker",ne.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>',ne}(ve),De=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Fe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return we.typeBoxes=[],we.currentType=Ie,we.setCurrentType=we.setCurrentType.bind(we),we}return yt(ne,je),ne.prototype.getUi=function(){var ce=this,Ie=document.createElement("div");Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2";for(var Fe=function(Oe){var Ue="both";switch(Oe){case 0:Ue="both";break;case 1:Ue="start";break;case 2:Ue="end";break;case 3:Ue="none"}var tt=document.createElement("div");if(tt.style.display="flex",tt.style.flexGrow="2",tt.style.alignItems="center",tt.style.justifyContent="space-between",tt.style.padding="5px",tt.style.borderWidth="2px",tt.style.borderStyle="solid",tt.style.borderColor=Ue===we.currentType?we.uiStyleSettings.toolboxAccentColor:"transparent",tt.addEventListener("click",function(){ce.setCurrentType(Ue,tt)}),Ie.appendChild(tt),Ue==="both"||Ue==="start"){var Ge=document.createElement("div");Ge.style.display="flex",Ge.style.alignItems="center",Ge.style.minHeight="20px",Ge.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ge.style.marginLeft="5px",tt.appendChild(Ge)}var ft=document.createElement("div");ft.style.display="flex",ft.style.alignItems="center",ft.style.minHeight="20px",ft.style.flexGrow="2";var ct=document.createElement("hr");if(ct.style.minWidth="20px",ct.style.border="0px",ct.style.borderTop="3px solid "+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee"),ct.style.flexGrow="2",ft.appendChild(ct),tt.appendChild(ft),Ue==="both"||Ue==="end"){var vt=document.createElement("div");vt.style.display="flex",vt.style.alignItems="center",vt.style.minHeight="20px",vt.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="`+(we.uiStyleSettings!==void 0?we.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,vt.style.marginRight="5px",tt.appendChild(vt)}we.typeBoxes.push(tt)},we=this,Ee=0;Ee<4;Ee++)Fe(Ee);return Ie},ne.prototype.setCurrentType=function(ce,Ie){var Fe=this;this.currentType=ce,this.typeBoxes.forEach(function(we){we.style.borderColor=we===Ie?Fe.uiStyleSettings!==void 0?Fe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ne}(ae),He=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.arrowType="end",we.arrowBaseHeight=10,we.arrowBaseWidth=10,we.getArrowPoints=we.getArrowPoints.bind(we),we.setArrowType=we.setArrowType.bind(we),we.arrowTypePanel=new De("Arrow type","end"),we.arrowTypePanel.onArrowTypeChanged=we.setArrowType,we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return!(!je.prototype.ownsTarget.call(this,ce)&&ce!==this.arrow1&&ce!==this.arrow2)},ne.prototype.getArrowPoints=function(ce,Ie){var Fe=this.arrowBaseWidth+2*this.strokeWidth,we=this.arrowBaseHeight+2*this.strokeWidth;return ce-Fe/2+","+(Ie+we/2)+" "+ce+","+(Ie-we/2)+" "+(ce+Fe/2)+","+(Ie+we/2)},ne.prototype.createTips=function(){this.arrow1=E.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(E.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=E.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(E.createTransform()),this.visual.appendChild(this.arrow2)},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(je.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",E.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),E.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ce=0;Math.abs(this.x1-this.x2)>.1&&(ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Ie=this.arrow1.transform.baseVal.getItem(0);Ie.setRotate(ce,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Ie,0);var Fe=this.arrow2.transform.baseVal.getItem(0);Fe.setRotate(ce+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Fe,0)}},ne.prototype.setArrowType=function(ce){this.arrowType=ce,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=Object.assign({arrowType:this.arrowType},je.prototype.getState.call(this));return ce.typeName=ne.typeName,ce},ne.prototype.restoreState=function(ce){je.prototype.restoreState.call(this,ce);var Ie=ce;this.arrowType=Ie.arrowType,this.createTips(),this.adjustVisual()},ne.typeName="ArrowMarker",ne.title="Arrow marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ne}(Ae),Ke=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.fillColor=Fe.defaultFillColor,we.strokeWidth=0,we.fillPanel=new ue("Color",Fe.defaultColorSet,Fe.defaultFillColor),we.fillPanel.onColorChanged=we.setFillColor,we}return yt(ne,je),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=je.prototype.getState.call(this);return ce.typeName=ne.typeName,ce},ne.typeName="CoverMarker",ne.title="Cover marker",ne.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ne}(ke),Ye=function(je){function ne(ce,Ie,Fe,we){var Ee=je.call(this,ce,we||'<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 Ee.opacities=[],Ee.opacityBoxes=[],Ee.opacities=Ie,Ee.currentOpacity=Fe,Ee.setCurrentOpacity=Ee.setCurrentOpacity.bind(Ee),Ee}return yt(ne,je),ne.prototype.getUi=function(){var ce=this,Ie=document.createElement("div");return Ie.style.display="flex",Ie.style.overflow="hidden",Ie.style.flexGrow="2",Ie.style.justifyContent="space-between",this.opacities.forEach(function(Fe){var we=document.createElement("div");we.style.display="flex",we.style.alignItems="center",we.style.justifyContent="center",we.style.padding="5px",we.style.borderWidth="2px",we.style.borderStyle="solid",we.style.borderColor=Fe===ce.currentOpacity?ce.uiStyleSettings.toolboxAccentColor:"transparent",we.addEventListener("click",function(){ce.setCurrentOpacity(Fe,we)}),Ie.appendChild(we);var Ee=document.createElement("div");Ee.innerText=100*Fe+"%",we.appendChild(Ee),ce.opacityBoxes.push(we)}),Ie},ne.prototype.setCurrentOpacity=function(ce,Ie){var Fe=this;this.currentOpacity=ce,this.opacityBoxes.forEach(function(we){we.style.borderColor=we===Ie?Fe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ne}(ae),it=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.setOpacity=we.setOpacity.bind(we),we.fillColor=Fe.defaultHighlightColor,we.strokeWidth=0,we.opacity=Fe.defaultHighlightOpacity,we.fillPanel=new ue("Color",Fe.defaultColorSet,we.fillColor),we.fillPanel.onColorChanged=we.setFillColor,we.opacityPanel=new Ye("Opacity",Fe.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return yt(ne,je),ne.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&E.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=je.prototype.getState.call(this);return ce.typeName=ne.typeName,ce},ne.typeName="HighlightMarker",ne.title="Highlight marker",ne.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>',ne}(Ke),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>',We='<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>',et=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.bgColor="transparent",we.tipPosition={x:0,y:0},we.tipBase1Position={x:0,y:0},we.tipBase2Position={x:0,y:0},we.tipMoving=!1,we.color=Fe.defaultStrokeColor,we.bgColor=Fe.defaultFillColor,we.fontFamily=Fe.defaultFontFamily,we.defaultSize={x:100,y:30},we.setBgColor=we.setBgColor.bind(we),we.getTipPoints=we.getTipPoints.bind(we),we.positionTip=we.positionTip.bind(we),we.setTipPoints=we.setTipPoints.bind(we),we.colorPanel=new ue("Text color",Fe.defaultColorSet,we.color,Re),we.colorPanel.onColorChanged=we.setColor,we.bgColorPanel=new ue("Fill color",Fe.defaultColorSet,we.bgColor,We),we.bgColorPanel.onColorChanged=we.setBgColor,we.fontFamilyPanel=new Me("Font",Fe.defaultFontFamilies,Fe.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.tipGrip=new me,we.tipGrip.visual.transform.baseVal.appendItem(E.createTransform()),we.controlBox.appendChild(we.tipGrip.visual),we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return je.prototype.ownsTarget.call(this,ce)||this.tipGrip.ownsTarget(ce)||this.tip===ce},ne.prototype.createTip=function(){E.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=E.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ne.prototype.pointerDown=function(ce,Ie){this.state==="new"&&je.prototype.pointerDown.call(this,ce,Ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):je.prototype.pointerDown.call(this,ce,Ie)},ne.prototype.pointerUp=function(ce){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,je.prototype.pointerUp.call(this,ce);else{var Ie=this.state==="creating";je.prototype.pointerUp.call(this,ce),this.setTipPoints(Ie),this.positionTip()}},ne.prototype.manipulate=function(ce){if(this.tipMoving){var Ie=this.unrotatePoint(ce);this.tipPosition={x:Ie.x-this.manipulationStartLeft,y:Ie.y-this.manipulationStartTop},this.positionTip()}else je.prototype.manipulate.call(this,ce)},ne.prototype.setBgColor=function(ce){this.bgRectangle&&this.tip&&(E.setAttributes(this.bgRectangle,[["fill",ce]]),E.setAttributes(this.tip,[["fill",ce]])),this.bgColor=ce,this.fillColorChanged(ce)},ne.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},ne.prototype.setTipPoints=function(ce){ce===void 0&&(ce=!1);var Ie=Math.min(this.height/2,15),Fe=this.height/5;ce&&(this.tipPosition={x:Ie+Fe/2,y:this.height+20});var we=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Fe=this.width/5,Ie=Math.min(this.width/2,15),this.tipBase1Position={x:Ie,y:0},this.tipBase2Position={x:Ie+Fe,y:0}):(this.tipBase1Position={x:0,y:Ie},this.tipBase2Position={x:0,y:Ie+Fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?we<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Fe=this.width/5,Ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ie-Fe,y:0},this.tipBase2Position={x:this.width-Ie,y:0}):(this.tipBase1Position={x:this.width,y:Ie},this.tipBase2Position={x:this.width,y:Ie+Fe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?we<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Fe=this.width/5,Ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Ie-Fe,y:this.height},this.tipBase2Position={x:this.width-Ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Ie-Fe},this.tipBase2Position={x:this.width,y:this.height-Ie}):we<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Fe=this.width/5,Ie=Math.min(this.width/2,15),this.tipBase1Position={x:Ie,y:this.height},this.tipBase2Position={x:Ie+Fe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Ie},this.tipBase2Position={x:0,y:this.height-Ie-Fe})},ne.prototype.resize=function(ce){je.prototype.resize.call(this,ce),this.positionTip()},ne.prototype.positionTip=function(){E.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ce=this.tipGrip.visual.transform.baseVal.getItem(0);ce.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ce,0)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ne.prototype.select=function(){this.positionTip(),je.prototype.select.call(this)},ne.prototype.getState=function(){var ce=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},je.prototype.getState.call(this));return ce.typeName=ne.typeName,ce},ne.prototype.restoreState=function(ce){var Ie=ce;this.bgColor=Ie.bgColor,this.tipPosition=Ie.tipPosition,je.prototype.restoreState.call(this,ce),this.createTip(),this.setTipPoints()},ne.prototype.scale=function(ce,Ie){je.prototype.scale.call(this,ce,Ie),this.tipPosition={x:this.tipPosition.x*ce,y:this.tipPosition.y*Ie},this.positionTip()},ne.typeName="CalloutMarker",ne.title="Callout marker",ne.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>',ne}(Be),nt=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.opacity=1,we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.fillColor=Fe.defaultFillColor,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.setOpacity=we.setOpacity.bind(we),we.createVisual=we.createVisual.bind(we),we.strokePanel=new ue("Line color",ye(Fe.defaultColorSet,["transparent"]),Fe.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new ue("Fill color",ye(Fe.defaultColorSet,["transparent"]),we.fillColor,We),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Pe("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.opacityPanel=new Ye("Opacity",Fe.defaultOpacitySteps,we.opacity),we.opacityPanel.onOpacityChanged=we.setOpacity,we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return!(!je.prototype.ownsTarget.call(this,ce)&&ce!==this.visual)},ne.prototype.createVisual=function(){this.visual=E.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)},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ne.prototype.manipulate=function(ce){je.prototype.manipulate.call(this,ce)},ne.prototype.resize=function(ce){je.prototype.resize.call(this,ce),this.setSize()},ne.prototype.setSize=function(){je.prototype.setSize.call(this),E.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ne.prototype.pointerUp=function(ce){je.prototype.pointerUp.call(this,ce),this.setSize()},ne.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.visual&&E.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ne.prototype.setFillColor=function(ce){this.fillColor=ce,this.visual&&E.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},ne.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.visual&&E.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.visual&&E.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ne.prototype.setOpacity=function(ce){this.opacity=ce,this.visual&&E.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},je.prototype.getState.call(this));return ce.typeName=ne.typeName,ce},ne.prototype.restoreState=function(ce){var Ie=ce;this.fillColor=Ie.fillColor,this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.opacity=Ie.opacity,this.createVisual(),je.prototype.restoreState.call(this,ce),this.setSize()},ne.prototype.scale=function(ce,Ie){je.prototype.scale.call(this,ce,Ie),this.setSize()},ne.typeName="EllipseMarker",ne.title="Ellipse marker",ne.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>',ne}(ve),rt=function(je){function ne(ce,Ie,Fe){return je.call(this,ce,Ie,Fe)||this}return yt(ne,je),Object.defineProperty(ne.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ne.prototype.ownsTarget=function(ce){return!(!je.prototype.ownsTarget.call(this,ce)&&ce!==this.tip1&&ce!==this.tip2)},ne.prototype.createTips=function(){this.tip1=E.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(E.createTransform()),this.visual.appendChild(this.tip1),this.tip2=E.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(E.createTransform()),this.visual.appendChild(this.tip2)},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.state==="creating"&&this.createTips()},ne.prototype.adjustVisual=function(){if(je.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(E.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()]]),E.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 ce=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Ie=this.tip1.transform.baseVal.getItem(0);Ie.setRotate(ce,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Ie,0);var Fe=this.tip2.transform.baseVal.getItem(0);Fe.setRotate(ce+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Fe,0)}},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=je.prototype.getState.call(this);return ce.typeName=ne.typeName,ce},ne.prototype.restoreState=function(ce){je.prototype.restoreState.call(this,ce),this.createTips(),this.adjustVisual()},ne.typeName="MeasurementMarker",ne.title="Measurement marker",ne.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>',ne}(Ae),Xe=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.strokePanel.colors=Fe.defaultColorSet,we.fillColor="transparent",we}return yt(ne,je),Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=je.prototype.getState.call(this);return ce.typeName=ne.typeName,ce},ne.typeName="EllipseFrameMarker",ne.title="Ellipse frame marker",ne.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>',ne}(nt),Je=function(){function je(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(je.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),je.prototype.addUndoStep=function(ne){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ne)||(this.undoStack.push(ne),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ne)&&this.redoStack.splice(0,this.redoStack.length))},je.prototype.replaceLastUndoStep=function(ne){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ne)},je.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},je.prototype.undo=function(){if(this.undoStack.length>1){var ne=this.undoStack.pop();return ne!==void 0&&this.redoStack.push(ne),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},je.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},je}(),Ve=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.curveX=0,we.curveY=0,we.manipulationStartCurveX=0,we.manipulationStartCurveY=0,we.setStrokeColor=we.setStrokeColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.positionGrips=we.positionGrips.bind(we),we.addControlGrips=we.addControlGrips.bind(we),we.adjustVisual=we.adjustVisual.bind(we),we.setupControlBox=we.setupControlBox.bind(we),we.resize=we.resize.bind(we),we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.strokePanel=new ue("Line color",Fe.defaultColorSet,Fe.defaultColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Pe("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return!(!je.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.selectorCurve&&ce!==this.visibleCurve&&!this.curveGrip.ownsTarget(ce))},ne.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ne.prototype.createVisual=function(){this.visual=E.createGroup(),this.selectorCurve=E.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=E.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)},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ce.x,this.curveY=ce.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},ne.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),E.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),E.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),E.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ne.prototype.setupControlBox=function(){je.prototype.setupControlBox.call(this),this.curveControlLine1=E.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=E.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)},ne.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,je.prototype.addControlGrips.call(this)},ne.prototype.positionGrips=function(){je.prototype.positionGrips.call(this);var ce=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ce/2,this.curveY-ce/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()))},ne.prototype.manipulate=function(ce){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ce.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ce.y-this.manipulationStartY),je.prototype.manipulate.call(this,ce)},ne.prototype.resize=function(ce){this.activeGrip===this.curveGrip&&(this.curveX=ce.x,this.curveY=ce.y),je.prototype.resize.call(this,ce),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ne.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.adjustVisual(),this.colorChanged(ce)},ne.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.adjustVisual()},ne.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.adjustVisual()},ne.prototype.scale=function(ce,Ie){this.curveX=this.curveX*ce,this.curveY=this.curveY*Ie,je.prototype.scale.call(this,ce,Ie)},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},je.prototype.getState.call(this));return ce.typeName=ne.typeName,ce},ne.prototype.restoreState=function(ce){je.prototype.restoreState.call(this,ce);var Ie=ce;this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.curveX=Ie.curveX,this.curveY=Ie.curveY,this.createVisual(),this.adjustVisual()},ne.typeName="CurveMarker",ne.title="Curve marker",ne.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>',ne}(xe),at=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,Ie,Fe)||this;return we.fillColor="transparent",we.strokeColor="transparent",we.strokeWidth=0,we.strokeDasharray="",we.textColor="transparent",we.fontSize="1rem",we.isMoved=!1,we.captionText="Caption",we.PADDING=5,we.captionBoxWidth=0,we.captionBoxHeight=0,we.strokeColor=Fe.defaultColor,we.strokeWidth=Fe.defaultStrokeWidth,we.strokeDasharray=Fe.defaultStrokeDasharray,we.fillColor=Fe.defaultFillColor,we.textColor=Fe.defaultStrokeColor,we.fontFamily=Fe.defaultFontFamily,we.fontSize=Fe.defaultCaptionFontSize,we.captionText=Fe.defaultCaptionText,we.setStrokeColor=we.setStrokeColor.bind(we),we.setFillColor=we.setFillColor.bind(we),we.setStrokeWidth=we.setStrokeWidth.bind(we),we.setStrokeDasharray=we.setStrokeDasharray.bind(we),we.createVisual=we.createVisual.bind(we),we.sizeCaption=we.sizeCaption.bind(we),we.setCaptionText=we.setCaptionText.bind(we),we.showTextEditor=we.showTextEditor.bind(we),we.positionTextEditor=we.positionTextEditor.bind(we),we.finishTextEditing=we.finishTextEditing.bind(we),we.setFont=we.setFont.bind(we),we.setTextColor=we.setTextColor.bind(we),we.strokePanel=new ue("Line color",ye(Fe.defaultColorSet,["transparent"]),we.strokeColor),we.strokePanel.onColorChanged=we.setStrokeColor,we.fillPanel=new ue("Fill color",ye(Fe.defaultColorSet,["transparent"]),we.fillColor,We),we.fillPanel.onColorChanged=we.setFillColor,we.strokeWidthPanel=new Te("Line width",Fe.defaultStrokeWidths,Fe.defaultStrokeWidth),we.strokeWidthPanel.onWidthChanged=we.setStrokeWidth,we.strokeStylePanel=new Pe("Line style",Fe.defaultStrokeDasharrays,Fe.defaultStrokeDasharray),we.strokeStylePanel.onStyleChanged=we.setStrokeDasharray,we.fontFamilyPanel=new Me("Font",Fe.defaultFontFamilies,Fe.defaultFontFamily),we.fontFamilyPanel.onFontChanged=we.setFont,we.textColorPanel=new ue("Text color",Fe.defaultColorSet,we.textColor,Re),we.textColorPanel.onColorChanged=we.setTextColor,we}return yt(ne,je),ne.prototype.ownsTarget=function(ce){return!(!je.prototype.ownsTarget.call(this,ce)&&ce!==this.visual&&ce!==this.frame&&ce!==this.captionBg&&ce!==this.captionElement)},ne.prototype.createVisual=function(){this.visual=E.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=E.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=E.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=E.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()},ne.prototype.setCaptionText=function(ce){this.captionText=ce,this.captionElement.textContent=this.captionText,this.sizeCaption()},ne.prototype.pointerDown=function(ce,Ie){je.prototype.pointerDown.call(this,ce,Ie),this.isMoved=!1,this.pointerDownPoint=ce,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ce),this._state="creating")},ne.prototype.manipulate=function(ce){je.prototype.manipulate.call(this,ce),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ce.x-this.pointerDownPoint.x)>5||Math.abs(ce.y-this.pointerDownPoint.y)>5)},ne.prototype.resize=function(ce){je.prototype.resize.call(this,ce),this.setSize()},ne.prototype.sizeCaption=function(){var ce=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ce.width+2*this.PADDING,this.captionBoxHeight=ce.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),E.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')"]]),E.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')"]])},ne.prototype.showTextEditor=function(){var ce=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Ie){Ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Ie){Ie.key==="Enter"&&ce.finishTextEditing(ce.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Ie){Ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ce.finishTextEditing(ce.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ne.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"))},ne.prototype.finishTextEditing=function(ce){this.setCaptionText(ce.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ne.prototype.setFont=function(ce){this.captionElement&&E.setAttributes(this.captionElement,[["font-family",ce]]),this.fontFamily=ce,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ne.prototype.setTextColor=function(ce){this.captionElement&&E.setAttributes(this.captionElement,[["fill",ce]]),this.textColor=ce,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ne.prototype.setSize=function(){je.prototype.setSize.call(this),E.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ne.prototype.pointerUp=function(ce){je.prototype.pointerUp.call(this,ce),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ne.prototype.dblClick=function(ce,Ie){je.prototype.dblClick.call(this,ce,Ie),this.showTextEditor()},ne.prototype.setStrokeColor=function(ce){this.strokeColor=ce,this.frame&&E.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ce),this.stateChanged()},ne.prototype.setFillColor=function(ce){this.fillColor=ce,this.captionBg&&E.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ce),this.stateChanged()},ne.prototype.setStrokeWidth=function(ce){this.strokeWidth=ce,this.frame&&E.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ne.prototype.setStrokeDasharray=function(ce){this.strokeDasharray=ce,this.frame&&E.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ne.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ne.prototype.getState=function(){var ce=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},je.prototype.getState.call(this));return ce.typeName=this.typeName,ce},ne.prototype.restoreState=function(ce){var Ie=ce;this.fillColor=Ie.fillColor,this.strokeColor=Ie.strokeColor,this.strokeWidth=Ie.strokeWidth,this.strokeDasharray=Ie.strokeDasharray,this.textColor=Ie.textColor,this.fontFamily=Ie.fontFamily,this.captionText=Ie.captionText,this.fontSize=Ie.fontSize,this.createVisual(),je.prototype.restoreState.call(this,ce),this.setSize()},ne.prototype.scale=function(ce,Ie){je.prototype.scale.call(this,ce,Ie),this.setSize()},ne.typeName="CaptionFrameMarker",ne.title="Caption frame marker",ne.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>',ne}(ve),Qe=function(){function je(ne,ce){ce===void 0&&(ce=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ne,this.cancelable=ce}return Object.defineProperty(je.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),je.prototype.preventDefault=function(){this._defaultPrevented=!0},je}(),ut=function(je){function ne(ce,Ie,Fe){var we=je.call(this,ce,!1)||this;return we.dataUrl=Ie,we.state=Fe,we}return yt(ne,je),ne}(Qe),st=function(je){function ne(ce,Ie,Fe){Fe===void 0&&(Fe=!1);var we=je.call(this,ce,Fe)||this;return we.marker=Ie,we}return yt(ne,je),ne}(Qe),$e=function(){function je(){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 je.prototype.addEventListener=function(ne,ce){this[ne].push(ce)},je.prototype.removeEventListener=function(ne,ce){var Ie=this[ne].indexOf(ce);Ie>-1&&this[ne].splice(Ie,1)},je}(),Ne=function(){function je(ne){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new be,this._isOpen=!1,this.undoRedoManager=new Je,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 $e,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=je.instanceCounter++,this.styles=new ee(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ne,this.targetRoot=document.body,this.width=ne.clientWidth,this.height=ne.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(je.prototype,"ALL_MARKER_TYPES",{get:function(){return[_e,Ce,He,Be,Xe,nt,it,et,rt,Ke,Ae,Ve,at]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[_e,Ce,He,Be,nt,it,et]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"BASIC_MARKER_TYPES",{get:function(){return[_e,Ce,He,Be,it]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ne){var ce=this;this._availableMarkerTypes.splice(0),ne.forEach(function(Ie){if(typeof Ie=="string"){var Fe=ce.ALL_MARKER_TYPES.find(function(we){return we.typeName===Ie});Fe!==void 0&&ce._availableMarkerTypes.push(Fe)}else ce._availableMarkerTypes.push(Ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ne){this._zoomLevel=ne,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(je.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),je.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),z.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},je.prototype.show=function(){var ne=this;this.styles.styleSheetRoot===void 0&&se.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=se.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ce){return ce(new Qe(ne))})},je.prototype.render=function(){return y(this,void 0,void 0,function(){var ne;return Se(this,function(ce){switch(ce.label){case 0:return this.setCurrentMarker(),(ne=new oe).naturalSize=this.renderAtNaturalSize,ne.imageType=this.renderImageType,ne.imageQuality=this.renderImageQuality,ne.markersOnly=this.renderMarkersOnly,ne.width=this.renderWidth,ne.height=this.renderHeight,[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ce.sent(),[4,ne.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ce.sent()]}})})},je.prototype.close=function(ne){var ce=this;if(ne===void 0&&(ne=!1),this.isOpen){var Ie=!1;ne||this.eventListeners.beforeclose.forEach(function(Fe){var we=new Qe(ce,!0);Fe(we),we.defaultPrevented&&(Ie=!0)}),Ie||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Fe){return Fe(new Qe(ce))}),this.detachEvents(),this._isOpen=!1)}},je.prototype.addMarkersToToolbar=function(){for(var ne,ce=[],Ie=0;Ie<arguments.length;Ie++)ce[Ie]=arguments[Ie];(ne=this._availableMarkerTypes).push.apply(ne,ce)},je.prototype.addRenderEventListener=function(ne){this.addEventListener("render",function(ce){ne(ce.dataUrl,ce.state)})},je.prototype.removeRenderEventListener=function(ne){},je.prototype.addCloseEventListener=function(ne){this.addEventListener("close",function(){ne()})},je.prototype.removeCloseEventListener=function(ne){},je.prototype.setupResizeObserver=function(){var ne=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ne.resize(ne.target.clientWidth,ne.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ne.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},je.prototype.onPopupTargetResize=function(){var ne=1*this.target.clientWidth/this.target.clientHeight,ce=this.editorCanvas.clientWidth/ne>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ne:this.editorCanvas.clientWidth,Ie=ce<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ne;this.resize(ce,Ie)},je.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},je.prototype.resize=function(ne,ce){this._isResizing=!0;var Ie=ne/this.imageWidth,Fe=ce/this.imageHeight;this.imageWidth=Math.round(ne),this.imageHeight=Math.round(ce),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(Ie,Fe),this._isResizing=!1},je.prototype.scaleMarkers=function(ne,ce){var Ie,Fe=this;this._currentMarker&&this._currentMarker instanceof Be?this._currentMarker.scale(ne,ce):(Ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(we){we!==Fe._currentMarker&&we.scale(ne,ce)}),Ie!==void 0&&this.setCurrentMarker(Ie)},je.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"},je.prototype.setTopLeft=function(){var ne=this.editingTarget.getBoundingClientRect(),ce=this.editorCanvas.getBoundingClientRect();this.left=ne.left-ce.left,this.top=ne.top-ce.top},je.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)},je.prototype.addDefs=function(){for(var ne,ce=[],Ie=0;Ie<arguments.length;Ie++)ce[Ie]=arguments[Ie];this.defs=E.createDefs(),this.addDefsToImage(),(ne=this.defs).append.apply(ne,ce)},je.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},je.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)},je.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},je.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},je.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)},je.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},je.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)},je.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 ne=document.createElement("a");ne.href="https://markerjs.com/",ne.target="_blank",ne.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>',ne.title="Powered by marker.js",ne.style.display="grid",ne.style.alignItems="center",ne.style.justifyItems="center",ne.style.padding="3px",ne.style.width="20px",ne.style.height="20px",this.logoUI.appendChild(ne),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},je.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")},je.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"},je.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},je.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 ne=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=ne+"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 te(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 re(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},je.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},je.prototype.removeMarker=function(ne){this.markerImage.removeChild(ne.container),this.markers.indexOf(ne)>-1&&this.markers.splice(this.markers.indexOf(ne),1),ne.dispose()},je.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())},je.prototype.toolbarButtonClicked=function(ne,ce){if(ne==="marker"&&ce!==void 0)this.createNewMarker(ce);else if(ne==="action")switch(ce){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()}},je.prototype.deleteSelectedMarker=function(){var ne=this;if(this._currentMarker!==void 0){var ce=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Fe){var we=new st(ne,ne._currentMarker,!0);Fe(we),we.defaultPrevented&&(ce=!0)}),!ce){var Ie=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Fe){return Fe(new st(ne,Ie))})}}},je.prototype.clear=function(){var ne=this,ce=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ee){var Oe=new st(ne,void 0,!0);Ee(Oe),Oe.defaultPrevented&&(ce=!0)}),!ce)){this.setCurrentMarker();for(var Ie=function(Ee){var Oe=Fe.markers[Ee];Fe.setCurrentMarker(Fe.markers[Ee]),Fe._currentMarker.dispose(),Fe.markerImage.removeChild(Fe._currentMarker.container),Fe.markers.splice(Fe.markers.indexOf(Fe._currentMarker),1),Fe.eventListeners.markerdelete.forEach(function(Ue){return Ue(new st(ne,Oe))})},Fe=this,we=this.markers.length-1;we>=0;we--)Ie(we);this.addUndoStep()}},Object.defineProperty(je.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),je.prototype.showNotesEditor=function(){var ne;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=(ne=this._currentMarker.notes)!==null&&ne!==void 0?ne:"",this.overlayContainer.appendChild(this.notesArea))},je.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)},je.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},je.prototype.addUndoStep=function(){var ne=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ce=this.getState(),Ie=this.undoRedoManager.getLastUndoStep();if(!Ie||Ie.width===ce.width&&Ie.height===ce.height){var Fe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ce),Fe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(we){return we(new Qe(ne))})}else this.undoRedoManager.replaceLastUndoStep(ce),this.eventListeners.statechange.forEach(function(we){return we(new Qe(ne))})}},je.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},je.prototype.undoStep=function(){var ne=this,ce=this.undoRedoManager.undo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ie){return Ie(new Qe(ne))}))},je.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},je.prototype.redoStep=function(){var ne=this,ce=this.undoRedoManager.redo();ce!==void 0&&(this.restoreState(ce),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Ie){return Ie(new Qe(ne))}))},je.prototype.stepZoom=function(){var ne=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ne<this.zoomSteps.length-1?this.zoomSteps[ne+1]:this.zoomSteps[0]},je.prototype.panTo=function(ne){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ne.x,top:this.prevPanPoint.y-ne.y}),this.prevPanPoint=ne},je.prototype.startRenderAndClose=function(){return y(this,void 0,void 0,function(){var ne,ce,Ie=this;return Se(this,function(Fe){switch(Fe.label){case 0:return[4,this.render()];case 1:return ne=Fe.sent(),ce=this.getState(),this.eventListeners.render.forEach(function(we){return we(new ut(Ie,ne,ce))}),this.close(!0),[2]}})})},je.prototype.getState=function(ne){ne===!0&&this.setCurrentMarker();var ce={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Ie){return ce.markers.push(Ie.getState())}),ce},je.prototype.restoreState=function(ne){var ce=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ne.markers.forEach(function(Ie){var Fe=ce._availableMarkerTypes.find(function(Ee){return Ee.typeName===Ie.typeName});if(Fe!==void 0){var we=ce.addNewMarker(Fe);we.restoreState(Ie),ce.markers.push(we)}}),ne.width&&ne.height&&(ne.width!==this.imageWidth||ne.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ne.width,this.imageHeight/ne.height),this.eventListeners.restorestate.forEach(function(Ie){return Ie(new Qe(ce))})},je.prototype.addNewMarker=function(ne){var ce=E.createGroup();return this.markerImage.appendChild(ce),new ne(ce,this.overlayContainer,this.settings)},je.prototype.createNewMarker=function(ne){var ce,Ie=this;(ce=typeof ne=="string"?this._availableMarkerTypes.find(function(Fe){return Fe.typeName===ne}):ne)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ce),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(ce.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Fe){return Fe(new st(Ie,Ie._currentMarker))}))},je.prototype.markerCreated=function(ne){var ce=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ne),this.setCurrentMarker(ne),ne instanceof Ce&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ce):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Ie){return Ie(new st(ce,ce._currentMarker))})},je.prototype.colorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ne,this.settings.defaultStrokeColor=ne)},je.prototype.fillColorChanged=function(ne){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ne)},je.prototype.markerStateChanged=function(ne){var ce=this;this.eventListeners.markerchange.forEach(function(Ie){return Ie(new st(ce,ne))})},je.prototype.setCurrentMarker=function(ne){var ce=this;this._currentMarker!==ne&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Ie){return Ie(new st(ce,ce._currentMarker))})),this._currentMarker=ne,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(Ie){return Ie(new st(ce,ce._currentMarker))}))},je.prototype.onPointerDown=function(ne){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ne.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ce=this.markers.find(function(Ie){return Ie.ownsTarget(ne.target)});ce!==void 0?(this.setCurrentMarker(ce),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ne.clientX,y:ne.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ne.clientX,ne.clientY))},je.prototype.onDblClick=function(ne){if(this._isFocused||this.focus(),this.mode==="select"){var ce=this.markers.find(function(Ie){return Ie.ownsTarget(ne.target)});ce!==void 0&&ce!==this._currentMarker&&this.setCurrentMarker(ce),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ne.clientX,ne.clientY),ne.target):this.setCurrentMarker()}},je.prototype.onPointerMove=function(ne){this.touchPoints!==1&&ne.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ne.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ne.clientX,ne.clientY)):this.zoomLevel>1&&this.panTo({x:ne.clientX,y:ne.clientY}))},je.prototype.onPointerUp=function(ne){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ne.clientX,ne.clientY)),this.isDragging=!1,this.addUndoStep()},je.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},je.prototype.onKeyUp=function(ne){this._currentMarker===void 0||this.notesArea!==void 0||ne.key!=="Delete"&&ne.key!=="Backspace"||this.deleteSelectedMarker()},je.prototype.clientToLocalCoordinates=function(ne,ce){var Ie=this.markerImage.getBoundingClientRect();return{x:(ne-Ie.left)/this.zoomLevel,y:(ce-Ie.top)/this.zoomLevel}},je.prototype.onWindowResize=function(){this.positionUI()},je.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ne=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ne+"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()},je.prototype.addLicenseKey=function(ne){z.addKey(ne)},je.prototype.addEventListener=function(ne,ce){this.eventListeners.addEventListener(ne,ce)},je.prototype.removeEventListener=function(ne,ce){this.eventListeners.removeEventListener(ne,ce)},je.prototype.renderState=function(ne){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ne),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(je.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),je.prototype.focus=function(){var ne=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ce){return ce(new Qe(ne))}))},je.prototype.blur=function(){var ne=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ce){return ce(new Qe(ne))}))},je.instanceCounter=0,je}()},63727:function(Lt,Ot,ze){"use strict";ze.d(Ot,{s:function(){return Ge},default:function(){return gt}});var Ze=ze(32855),yt=ze(27247),y=ze(3300),Se=ze(11913),ye=ze(43079),E=ze(37463),z=ze(6551),oe=ze(6089),se=ze(18929),ee=ze(59301),de=ee.createContext({}),x=de,te=ze(34666),re=ze(74430),ae="__rc_cascader_search_mark__",ue=function(mt,dt,bt){var wt=bt.label,At=wt===void 0?"":wt;return dt.some(function(jt){return String(jt[At]).toLowerCase().includes(mt.toLowerCase())})},he=function(mt,dt,bt,wt){return dt.map(function(At){return At[wt.label]}).join(" / ")},pe=function(mt,dt,bt,wt,At,jt){var Zt=At.filter,Wt=Zt===void 0?ue:Zt,$t=At.render,Er=$t===void 0?he:$t,vr=At.limit,Ht=vr===void 0?50:vr,er=At.sort;return ee.useMemo(function(){var or=[];if(!mt)return[];function hr(Qt,sr){var Ir=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Qt.forEach(function(Jt){if(!(!er&&Ht!==!1&&Ht>0&&or.length>=Ht)){var Kt=[].concat((0,y.Z)(sr),[Jt]),It=Jt[bt.children],Rt=Ir||Jt.disabled;if((!It||It.length===0||jt)&&Wt(mt,Kt,{label:bt.label})){var Bt;or.push((0,yt.Z)((0,yt.Z)({},Jt),{},(Bt={disabled:Rt},(0,re.Z)(Bt,bt.label,Er(mt,Kt,wt,bt)),(0,re.Z)(Bt,ae,Kt),(0,re.Z)(Bt,bt.children,void 0),Bt)))}It&&hr(Jt[bt.children],Kt,Rt)}})}return hr(dt,[]),er&&or.sort(function(Qt,sr){return er(Qt[ae],sr[ae],mt,bt)}),Ht!==!1&&Ht>0?or.slice(0,Ht):or},[mt,dt,bt,wt,Er,jt,Wt,er,Ht])},me=pe,fe="__RC_CASCADER_SPLIT__",ve="SHOW_PARENT",ke="SHOW_CHILD";function Te(pt){return pt.join(fe)}function Pe(pt){return pt.map(Te)}function _e(pt){return pt.split(fe)}function be(pt){var mt=pt||{},dt=mt.label,bt=mt.value,wt=mt.children,At=bt||"value";return{label:dt||"label",value:At,key:At,children:wt||"children"}}function xe(pt,mt){var dt,bt;return(dt=pt.isLeaf)!==null&&dt!==void 0?dt:!((bt=pt[mt.children])!==null&&bt!==void 0&&bt.length)}function Ae(pt){var mt=pt.parentElement;if(mt){var dt=pt.offsetTop-mt.offsetTop;dt-mt.scrollTop<0?mt.scrollTo({top:dt}):dt+pt.offsetHeight-mt.scrollTop>mt.offsetHeight&&mt.scrollTo({top:dt+pt.offsetHeight-mt.offsetHeight})}}function Me(pt,mt){return pt.map(function(dt){var bt;return(bt=dt[ae])===null||bt===void 0?void 0:bt.map(function(wt){return wt[mt.value]})})}function Be(pt){return Array.isArray(pt)&&Array.isArray(pt[0])}function Ce(pt){return pt?Be(pt)?pt:(pt.length===0?[]:[pt]).map(function(mt){return Array.isArray(mt)?mt:[mt]}):[]}function De(pt,mt,dt){var bt=new Set(pt),wt=mt();return pt.filter(function(At){var jt=wt[At],Zt=jt?jt.parent:null,Wt=jt?jt.children:null;return jt&&jt.node.disabled?!0:dt===ke?!(Wt&&Wt.some(function($t){return $t.key&&bt.has($t.key)})):!(Zt&&!Zt.node.disabled&&bt.has(Zt.key))})}function He(pt,mt,dt){for(var bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,wt=mt,At=[],jt=function(){var $t,Er,vr,Ht=pt[Zt],er=($t=wt)===null||$t===void 0?void 0:$t.findIndex(function(hr){var Qt=hr[dt.value];return bt?String(Qt)===String(Ht):Qt===Ht}),or=er!==-1?(Er=wt)===null||Er===void 0?void 0:Er[er]:null;At.push({value:(vr=or==null?void 0:or[dt.value])!==null&&vr!==void 0?vr:Ht,index:er,option:or}),wt=or==null?void 0:or[dt.children]},Zt=0;Zt<pt.length;Zt+=1)jt();return At}var Ke=function(pt,mt,dt,bt,wt){return ee.useMemo(function(){var At=wt||function(jt){var Zt=bt?jt.slice(-1):jt,Wt=" / ";return Zt.every(function($t){return["string","number"].includes((0,te.Z)($t))})?Zt.join(Wt):Zt.reduce(function($t,Er,vr){var Ht=ee.isValidElement(Er)?ee.cloneElement(Er,{key:vr}):Er;return vr===0?[Ht]:[].concat((0,y.Z)($t),[Wt,Ht])},[])};return pt.map(function(jt){var Zt,Wt=He(jt,mt,dt),$t=At(Wt.map(function(vr){var Ht,er=vr.option,or=vr.value;return(Ht=er==null?void 0:er[dt.label])!==null&&Ht!==void 0?Ht:or}),Wt.map(function(vr){var Ht=vr.option;return Ht})),Er=Te(jt);return{label:$t,value:Er,key:Er,valueCells:jt,disabled:(Zt=Wt[Wt.length-1])===null||Zt===void 0||(Zt=Zt.option)===null||Zt===void 0?void 0:Zt.disabled}})},[pt,mt,dt,wt,bt])};function Ye(pt,mt){return ee.useCallback(function(dt){var bt=[],wt=[];return dt.forEach(function(At){var jt=He(At,pt,mt);jt.every(function(Zt){return Zt.option})?wt.push(At):bt.push(At)}),[wt,bt]},[pt,mt])}var it=ze(34061),Re=function(pt,mt){var dt=ee.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),bt=ee.useCallback(function(){return dt.current.options!==pt&&(dt.current.options=pt,dt.current.info=(0,it.I8)(pt,{fieldNames:mt,initWrapper:function(At){return(0,yt.Z)((0,yt.Z)({},At),{},{pathKeyEntities:{}})},processEntity:function(At,jt){var Zt=At.nodes.map(function(Wt){return Wt[mt.value]}).join(fe);jt.pathKeyEntities[Zt]=At,At.key=Zt}})),dt.current.info.pathKeyEntities},[mt,pt]);return bt};function We(pt,mt){var dt=ee.useMemo(function(){return mt||[]},[mt]),bt=Re(dt,pt),wt=ee.useCallback(function(At){var jt=bt();return At.map(function(Zt){var Wt=jt[Zt].nodes;return Wt.map(function($t){return $t[pt.value]})})},[bt,pt]);return[dt,bt,wt]}var et=ze(48736);function nt(pt){return ee.useMemo(function(){if(!pt)return[!1,{}];var mt={matchInputWidth:!0,limit:50};return pt&&(0,te.Z)(pt)==="object"&&(mt=(0,yt.Z)((0,yt.Z)({},mt),pt)),mt.limit<=0&&(mt.limit=!1),[!0,mt]},[pt])}var rt=ze(34643);function Xe(pt,mt,dt,bt,wt,At,jt,Zt){return function(Wt){if(!pt)mt(Wt);else{var $t=Te(Wt),Er=Pe(dt),vr=Pe(bt),Ht=Er.includes($t),er=wt.some(function(Rt){return Te(Rt)===$t}),or=dt,hr=wt;if(er&&!Ht)hr=wt.filter(function(Rt){return Te(Rt)!==$t});else{var Qt=Ht?Er.filter(function(Rt){return Rt!==$t}):[].concat((0,y.Z)(Er),[$t]),sr=At(),Ir;if(Ht){var Jt=(0,rt.S)(Qt,{checked:!1,halfCheckedKeys:vr},sr);Ir=Jt.checkedKeys}else{var Kt=(0,rt.S)(Qt,!0,sr);Ir=Kt.checkedKeys}var It=De(Ir,At,Zt);or=jt(It)}mt([].concat((0,y.Z)(hr),(0,y.Z)(or)))}}}function Je(pt,mt,dt,bt,wt){return ee.useMemo(function(){var At=wt(mt),jt=(0,Se.Z)(At,2),Zt=jt[0],Wt=jt[1];if(!pt||!mt.length)return[Zt,[],Wt];var $t=Pe(Zt),Er=dt(),vr=(0,rt.S)($t,!0,Er),Ht=vr.checkedKeys,er=vr.halfCheckedKeys;return[bt(Ht),bt(er),Wt]},[pt,mt,dt,bt,wt])}var Ve=ze(92310),at=ze.n(Ve),Qe=ee.memo(function(pt){var mt=pt.children;return mt},function(pt,mt){return!mt.open}),ut=Qe;function st(pt){var mt,dt=pt.prefixCls,bt=pt.checked,wt=pt.halfChecked,At=pt.disabled,jt=pt.onClick,Zt=pt.disableCheckbox,Wt=ee.useContext(x),$t=Wt.checkable,Er=typeof $t!="boolean"?$t:null;return ee.createElement("span",{className:at()("".concat(dt),(mt={},(0,re.Z)(mt,"".concat(dt,"-checked"),bt),(0,re.Z)(mt,"".concat(dt,"-indeterminate"),!bt&&wt),(0,re.Z)(mt,"".concat(dt,"-disabled"),At||Zt),mt)),onClick:jt},Er)}var $e="__cascader_fix_label__";function Ne(pt){var mt=pt.prefixCls,dt=pt.multiple,bt=pt.options,wt=pt.activeValue,At=pt.prevValuePath,jt=pt.onToggleOpen,Zt=pt.onSelect,Wt=pt.onActive,$t=pt.checkedSet,Er=pt.halfCheckedSet,vr=pt.loadingKeys,Ht=pt.isSelectable,er=pt.disabled,or="".concat(mt,"-menu"),hr="".concat(mt,"-menu-item"),Qt=ee.useContext(x),sr=Qt.fieldNames,Ir=Qt.changeOnSelect,Jt=Qt.expandTrigger,Kt=Qt.expandIcon,It=Qt.loadingIcon,Rt=Qt.dropdownMenuColumnStyle,Bt=Qt.optionRender,Vt=Jt==="hover",lr=function(Or){return er||Or},wr=ee.useMemo(function(){return bt.map(function(Ut){var Or,_r=Ut.disabled,Pr=Ut.disableCheckbox,Dr=Ut[ae],yr=(Or=Ut[$e])!==null&&Or!==void 0?Or:Ut[sr.label],qt=Ut[sr.value],Mt=xe(Ut,sr),cr=Dr?Dr.map(function(ar){return ar[sr.value]}):[].concat((0,y.Z)(At),[qt]),Ar=Te(cr),Br=vr.includes(Ar),Ct=$t.has(Ar),Tt=Er.has(Ar);return{disabled:_r,label:yr,value:qt,isLeaf:Mt,isLoading:Br,checked:Ct,halfChecked:Tt,option:Ut,disableCheckbox:Pr,fullPath:cr,fullPathKey:Ar}})},[bt,$t,sr,Er,vr,At]);return ee.createElement("ul",{className:or,role:"menu"},wr.map(function(Ut){var Or,_r=Ut.disabled,Pr=Ut.label,Dr=Ut.value,yr=Ut.isLeaf,qt=Ut.isLoading,Mt=Ut.checked,cr=Ut.halfChecked,Ar=Ut.option,Br=Ut.fullPath,Ct=Ut.fullPathKey,Tt=Ut.disableCheckbox,ar=function(){if(!lr(_r)){var rr=(0,y.Z)(Br);Vt&&yr&&rr.pop(),Wt(rr)}},Xt=function(){Ht(Ar)&&!lr(_r)&&Zt(Br,yr)},Dt;return typeof Ar.title=="string"?Dt=Ar.title:typeof Pr=="string"&&(Dt=Pr),ee.createElement("li",{key:Ct,className:at()(hr,(Or={},(0,re.Z)(Or,"".concat(hr,"-expand"),!yr),(0,re.Z)(Or,"".concat(hr,"-active"),wt===Dr||wt===Ct),(0,re.Z)(Or,"".concat(hr,"-disabled"),lr(_r)),(0,re.Z)(Or,"".concat(hr,"-loading"),qt),Or)),style:Rt,role:"menuitemcheckbox",title:Dt,"aria-checked":Mt,"data-path-key":Ct,onClick:function(){ar(),!Tt&&(!dt||yr)&&Xt()},onDoubleClick:function(){Ir&&jt(!1)},onMouseEnter:function(){Vt&&ar()},onMouseDown:function(rr){rr.preventDefault()}},dt&&ee.createElement(st,{prefixCls:"".concat(mt,"-checkbox"),checked:Mt,halfChecked:cr,disabled:lr(_r)||Tt,disableCheckbox:Tt,onClick:function(rr){Tt||(rr.stopPropagation(),Xt())}}),ee.createElement("div",{className:"".concat(hr,"-content")},Bt?Bt(Ar):Pr),!qt&&Kt&&!yr&&ee.createElement("div",{className:"".concat(hr,"-expand-icon")},Kt),qt&&It&&ee.createElement("div",{className:"".concat(hr,"-loading-icon")},It))}))}var je=function(mt,dt){var bt=ee.useContext(x),wt=bt.values,At=wt[0],jt=ee.useState([]),Zt=(0,Se.Z)(jt,2),Wt=Zt[0],$t=Zt[1];return ee.useEffect(function(){mt||$t(At||[])},[dt,At]),[Wt,$t]},ne=je,ce=ze(10228),Ie=function(pt,mt,dt,bt,wt,At,jt){var Zt=jt.direction,Wt=jt.searchValue,$t=jt.toggleOpen,Er=jt.open,vr=Zt==="rtl",Ht=ee.useMemo(function(){for(var Rt=-1,Bt=mt,Vt=[],lr=[],wr=bt.length,Ut=Me(mt,dt),Or=function(qt){var Mt=Bt.findIndex(function(cr,Ar){return(Ut[Ar]?Te(Ut[Ar]):cr[dt.value])===bt[qt]});if(Mt===-1)return 1;Rt=Mt,Vt.push(Rt),lr.push(bt[qt]),Bt=Bt[Rt][dt.children]},_r=0;_r<wr&&Bt&&!Or(_r);_r+=1);for(var Pr=mt,Dr=0;Dr<Vt.length-1;Dr+=1)Pr=Pr[Vt[Dr]][dt.children];return[lr,Rt,Pr,Ut]},[bt,dt,mt]),er=(0,Se.Z)(Ht,4),or=er[0],hr=er[1],Qt=er[2],sr=er[3],Ir=function(Bt){wt(Bt)},Jt=function(Bt){var Vt=Qt.length,lr=hr;lr===-1&&Bt<0&&(lr=Vt);for(var wr=0;wr<Vt;wr+=1){lr=(lr+Bt+Vt)%Vt;var Ut=Qt[lr];if(Ut&&!Ut.disabled){var Or=or.slice(0,-1).concat(sr[lr]?Te(sr[lr]):Ut[dt.value]);Ir(Or);return}}},Kt=function(){if(or.length>1){var Bt=or.slice(0,-1);Ir(Bt)}else $t(!1)},It=function(){var Bt,Vt=((Bt=Qt[hr])===null||Bt===void 0?void 0:Bt[dt.children])||[],lr=Vt.find(function(Ut){return!Ut.disabled});if(lr){var wr=[].concat((0,y.Z)(or),[lr[dt.value]]);Ir(wr)}};ee.useImperativeHandle(pt,function(){return{onKeyDown:function(Bt){var Vt=Bt.which;switch(Vt){case ce.Z.UP:case ce.Z.DOWN:{var lr=0;Vt===ce.Z.UP?lr=-1:Vt===ce.Z.DOWN&&(lr=1),lr!==0&&Jt(lr);break}case ce.Z.LEFT:{if(Wt)break;vr?It():Kt();break}case ce.Z.RIGHT:{if(Wt)break;vr?Kt():It();break}case ce.Z.BACKSPACE:{Wt||Kt();break}case ce.Z.ENTER:{if(or.length){var wr=Qt[hr],Ut=(wr==null?void 0:wr[ae])||[];Ut.length?At(Ut.map(function(Or){return Or[dt.value]}),Ut[Ut.length-1]):At(or,Qt[hr])}break}case ce.Z.ESC:$t(!1),Er&&Bt.stopPropagation()}},onKeyUp:function(){}}})},Fe=ee.forwardRef(function(pt,mt){var dt,bt,wt,At=pt.prefixCls,jt=pt.multiple,Zt=pt.searchValue,Wt=pt.toggleOpen,$t=pt.notFoundContent,Er=pt.direction,vr=pt.open,Ht=pt.disabled,er=ee.useRef(null),or=Er==="rtl",hr=ee.useContext(x),Qt=hr.options,sr=hr.values,Ir=hr.halfValues,Jt=hr.fieldNames,Kt=hr.changeOnSelect,It=hr.onSelect,Rt=hr.searchOptions,Bt=hr.dropdownPrefixCls,Vt=hr.loadData,lr=hr.expandTrigger,wr=Bt||At,Ut=ee.useState([]),Or=(0,Se.Z)(Ut,2),_r=Or[0],Pr=Or[1],Dr=function(Sr){if(!(!Vt||Zt)){var ir=He(Sr,Qt,Jt),ur=ir.map(function(Ur){var en=Ur.option;return en}),xr=ur[ur.length-1];if(xr&&!xe(xr,Jt)){var Fr=Te(Sr);Pr(function(Ur){return[].concat((0,y.Z)(Ur),[Fr])}),Vt(ur)}}};ee.useEffect(function(){_r.length&&_r.forEach(function(Gt){var Sr=_e(Gt),ir=He(Sr,Qt,Jt,!0).map(function(xr){var Fr=xr.option;return Fr}),ur=ir[ir.length-1];(!ur||ur[Jt.children]||xe(ur,Jt))&&Pr(function(xr){return xr.filter(function(Fr){return Fr!==Gt})})})},[Qt,_r,Jt]);var yr=ee.useMemo(function(){return new Set(Pe(sr))},[sr]),qt=ee.useMemo(function(){return new Set(Pe(Ir))},[Ir]),Mt=ne(jt,vr),cr=(0,Se.Z)(Mt,2),Ar=cr[0],Br=cr[1],Ct=function(Sr){Br(Sr),Dr(Sr)},Tt=function(Sr){if(Ht)return!1;var ir=Sr.disabled,ur=xe(Sr,Jt);return!ir&&(ur||Kt||jt)},ar=function(Sr,ir){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;It(Sr),!jt&&(ir||Kt&&(lr==="hover"||ur))&&Wt(!1)},Xt=ee.useMemo(function(){return Zt?Rt:Qt},[Zt,Rt,Qt]),Dt=ee.useMemo(function(){for(var Gt=[{options:Xt}],Sr=Xt,ir=Me(Sr,Jt),ur=function(){var Ur=Ar[xr],en=Sr.find(function(ln,gn){return(ir[gn]?Te(ir[gn]):ln[Jt.value])===Ur}),un=en==null?void 0:en[Jt.children];if(!(un!=null&&un.length))return 1;Sr=un,Gt.push({options:un})},xr=0;xr<Ar.length&&!ur();xr+=1);return Gt},[Xt,Ar,Jt]),Yt=function(Sr,ir){Tt(ir)&&ar(Sr,xe(ir,Jt),!0)};Ie(mt,Xt,Jt,Ar,Ct,Yt,{direction:Er,searchValue:Zt,toggleOpen:Wt,open:vr}),ee.useEffect(function(){if(!Zt)for(var Gt=0;Gt<Ar.length;Gt+=1){var Sr,ir=Ar.slice(0,Gt+1),ur=Te(ir),xr=(Sr=er.current)===null||Sr===void 0?void 0:Sr.querySelector('li[data-path-key="'.concat(ur.replace(/\\{0,2}"/g,'\\"'),'"]'));xr&&Ae(xr)}},[Ar,Zt]);var rr=!((dt=Dt[0])!==null&&dt!==void 0&&(dt=dt.options)!==null&&dt!==void 0&&dt.length),gr=[(bt={},(0,re.Z)(bt,Jt.value,"__EMPTY__"),(0,re.Z)(bt,$e,$t),(0,re.Z)(bt,"disabled",!0),bt)],Mr=(0,yt.Z)((0,yt.Z)({},pt),{},{multiple:!rr&&jt,onSelect:ar,onActive:Ct,onToggleOpen:Wt,checkedSet:yr,halfCheckedSet:qt,loadingKeys:_r,isSelectable:Tt}),Pt=rr?[{options:gr}]:Dt,br=Pt.map(function(Gt,Sr){var ir=Ar.slice(0,Sr),ur=Ar[Sr];return ee.createElement(Ne,(0,Ze.Z)({key:Sr},Mr,{prefixCls:wr,options:Gt.options,prevValuePath:ir,activeValue:ur}))});return ee.createElement(ut,{open:vr},ee.createElement("div",{className:at()("".concat(wr,"-menus"),(wt={},(0,re.Z)(wt,"".concat(wr,"-menu-empty"),rr),(0,re.Z)(wt,"".concat(wr,"-rtl"),or),wt)),ref:er},br))}),we=Fe,Ee=ee.forwardRef(function(pt,mt){var dt=(0,E.lk)();return ee.createElement(we,(0,Ze.Z)({},pt,dt,{ref:mt}))}),Oe=Ee,Ue=ze(70425);function tt(){}function Ge(pt){var mt,dt=pt,bt=dt.prefixCls,wt=bt===void 0?"rc-cascader":bt,At=dt.style,jt=dt.className,Zt=dt.options,Wt=dt.checkable,$t=dt.defaultValue,Er=dt.value,vr=dt.fieldNames,Ht=dt.changeOnSelect,er=dt.onChange,or=dt.showCheckedStrategy,hr=dt.loadData,Qt=dt.expandTrigger,sr=dt.expandIcon,Ir=sr===void 0?">":sr,Jt=dt.loadingIcon,Kt=dt.direction,It=dt.notFoundContent,Rt=It===void 0?"Not Found":It,Bt=dt.disabled,Vt=!!Wt,lr=(0,Ue.C8)($t,{value:Er,postState:Ce}),wr=(0,Se.Z)(lr,2),Ut=wr[0],Or=wr[1],_r=ee.useMemo(function(){return be(vr)},[JSON.stringify(vr)]),Pr=We(_r,Zt),Dr=(0,Se.Z)(Pr,3),yr=Dr[0],qt=Dr[1],Mt=Dr[2],cr=Ye(yr,_r),Ar=Je(Vt,Ut,qt,Mt,cr),Br=(0,Se.Z)(Ar,3),Ct=Br[0],Tt=Br[1],ar=Br[2],Xt=(0,Ue.zX)(function(Pt){if(Or(Pt),er){var br=Ce(Pt),Gt=br.map(function(ur){return He(ur,yr,_r).map(function(xr){return xr.option})}),Sr=Vt?br:br[0],ir=Vt?Gt:Gt[0];er(Sr,ir)}}),Dt=Xe(Vt,Xt,Ct,Tt,ar,qt,Mt,or),Yt=(0,Ue.zX)(function(Pt){Dt(Pt)}),rr=ee.useMemo(function(){return{options:yr,fieldNames:_r,values:Ct,halfValues:Tt,changeOnSelect:Ht,onSelect:Yt,checkable:Wt,searchOptions:[],dropdownPrefixCls:void 0,loadData:hr,expandTrigger:Qt,expandIcon:Ir,loadingIcon:Jt,dropdownMenuColumnStyle:void 0}},[yr,_r,Ct,Tt,Ht,Yt,Wt,hr,Qt,Ir,Jt]),gr="".concat(wt,"-panel"),Mr=!yr.length;return ee.createElement(x.Provider,{value:rr},ee.createElement("div",{className:at()(gr,(mt={},(0,re.Z)(mt,"".concat(gr,"-rtl"),Kt==="rtl"),(0,re.Z)(mt,"".concat(gr,"-empty"),Mr),mt),jt),style:At},Mr?Rt:ee.createElement(we,{prefixCls:wt,searchValue:"",multiple:Vt,toggleOpen:tt,open:!0,direction:Kt,disabled:Bt})))}function ft(pt){var mt=pt.onPopupVisibleChange,dt=pt.popupVisible,bt=pt.popupClassName,wt=pt.popupPlacement;warning(!mt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(dt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(bt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(wt===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ct(pt,mt){if(pt){var dt=function bt(wt){for(var At=0;At<wt.length;At++){var jt=wt[At];if(jt[mt==null?void 0:mt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(jt[mt==null?void 0:mt.children])&&bt(jt[mt==null?void 0:mt.children]))return!0}};dt(pt)}}var vt=null,kt=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],xt=ee.forwardRef(function(pt,mt){var dt=pt.id,bt=pt.prefixCls,wt=bt===void 0?"rc-cascader":bt,At=pt.fieldNames,jt=pt.defaultValue,Zt=pt.value,Wt=pt.changeOnSelect,$t=pt.onChange,Er=pt.displayRender,vr=pt.checkable,Ht=pt.autoClearSearchValue,er=Ht===void 0?!0:Ht,or=pt.searchValue,hr=pt.onSearch,Qt=pt.showSearch,sr=pt.expandTrigger,Ir=pt.options,Jt=pt.dropdownPrefixCls,Kt=pt.loadData,It=pt.popupVisible,Rt=pt.open,Bt=pt.popupClassName,Vt=pt.dropdownClassName,lr=pt.dropdownMenuColumnStyle,wr=pt.dropdownStyle,Ut=pt.popupPlacement,Or=pt.placement,_r=pt.onDropdownVisibleChange,Pr=pt.onPopupVisibleChange,Dr=pt.expandIcon,yr=Dr===void 0?">":Dr,qt=pt.loadingIcon,Mt=pt.children,cr=pt.dropdownMatchSelectWidth,Ar=cr===void 0?!1:cr,Br=pt.showCheckedStrategy,Ct=Br===void 0?ve:Br,Tt=pt.optionRender,ar=(0,ye.Z)(pt,kt),Xt=(0,z.ZP)(dt),Dt=!!vr,Yt=(0,se.Z)(jt,{value:Zt,postState:Ce}),rr=(0,Se.Z)(Yt,2),gr=rr[0],Mr=rr[1],Pt=ee.useMemo(function(){return be(At)},[JSON.stringify(At)]),br=We(Pt,Ir),Gt=(0,Se.Z)(br,3),Sr=Gt[0],ir=Gt[1],ur=Gt[2],xr=(0,se.Z)("",{value:or,postState:function(Yr){return Yr||""}}),Fr=(0,Se.Z)(xr,2),Ur=Fr[0],en=Fr[1],un=function(Yr,wn){en(Yr),wn.source!=="blur"&&hr&&hr(Yr)},ln=nt(Qt),gn=(0,Se.Z)(ln,2),nn=gn[0],Tn=gn[1],Mn=me(Ur,Sr,Pt,Jt||wt,Tn,Wt||Dt),xn=Ye(Sr,Pt),_n=Je(Dt,gr,ir,ur,xn),Dn=(0,Se.Z)(_n,3),En=Dn[0],cn=Dn[1],On=Dn[2],dr=ee.useMemo(function(){var bn=Pe(En),Yr=De(bn,ir,Ct);return[].concat((0,y.Z)(On),(0,y.Z)(ur(Yr)))},[En,ir,ur,On,Ct]),Rr=Ke(dr,Sr,Pt,Dt,Er),zr=(0,oe.Z)(function(bn){if(Mr(bn),$t){var Yr=Ce(bn),wn=Yr.map(function(Cr){return He(Cr,Sr,Pt).map(function(tr){return tr.option})}),tn=Dt?Yr:Yr[0],fr=Dt?wn:wn[0];$t(tn,fr)}}),Kr=Xe(Dt,zr,En,cn,On,ir,ur,Ct),Vr=(0,oe.Z)(function(bn){(!Dt||er)&&en(""),Kr(bn)}),Wr=function(Yr,wn){if(wn.type==="clear"){zr([]);return}var tn=wn.values[0],fr=tn.valueCells;Vr(fr)},Tr=Rt!==void 0?Rt:It,Qr=Vt||Bt,yn=Or||Ut,Sn=function(Yr){_r==null||_r(Yr),Pr==null||Pr(Yr)},$r=ee.useMemo(function(){return{options:Sr,fieldNames:Pt,values:En,halfValues:cn,changeOnSelect:Wt,onSelect:Vr,checkable:vr,searchOptions:Mn,dropdownPrefixCls:Jt,loadData:Kt,expandTrigger:sr,expandIcon:yr,loadingIcon:qt,dropdownMenuColumnStyle:lr,optionRender:Tt}},[Sr,Pt,En,cn,Wt,Vr,vr,Mn,Jt,Kt,sr,yr,qt,lr,Tt]),Cn=!(Ur?Mn:Sr).length,pn=Ur&&Tn.matchInputWidth||Cn?{}:{minWidth:"auto"};return ee.createElement(x.Provider,{value:$r},ee.createElement(E.Ac,(0,Ze.Z)({},ar,{ref:mt,id:Xt,prefixCls:wt,autoClearSearchValue:er,dropdownMatchSelectWidth:Ar,dropdownStyle:(0,yt.Z)((0,yt.Z)({},pn),wr),displayValues:Rr,onDisplayValuesChange:Wr,mode:Dt?"multiple":void 0,searchValue:Ur,onSearch:un,showSearch:nn,OptionList:Oe,emptyOptions:Cn,open:Tr,dropdownClassName:Qr,placement:yn,onDropdownVisibleChange:Sn,getRawInputElement:function(){return Mt}})))});xt.SHOW_PARENT=ve,xt.SHOW_CHILD=ke,xt.Panel=Ge;var Et=xt,gt=Et},98535:function(Lt,Ot,ze){"use strict";ze.r(Ot),ze.d(Ot,{Panel:function(){return Ce},default:function(){return Be}});var Ze=ze(32855),yt=ze(3300),y=ze(11913),Se=ze(34666),ye=ze(92310),E=ze.n(ye),z=ze(18929),oe=ze(48736),se=ze(59301),ee=ze(43079),de=ze(11592),x=ze(27247),te=ze(74430),re=ze(77900),ae=ze(10228),ue=se.forwardRef(function(De,He){var Ke=De.prefixCls,Ye=De.forceRender,it=De.className,Re=De.style,We=De.children,et=De.isActive,nt=De.role,rt=De.classNames,Xe=De.styles,Je=se.useState(et||Ye),Ve=(0,y.Z)(Je,2),at=Ve[0],Qe=Ve[1];return se.useEffect(function(){(Ye||et)&&Qe(!0)},[Ye,et]),at?se.createElement("div",{ref:He,className:E()("".concat(Ke,"-content"),(0,te.Z)((0,te.Z)({},"".concat(Ke,"-content-active"),et),"".concat(Ke,"-content-inactive"),!et),it),style:Re,role:nt},se.createElement("div",{className:E()("".concat(Ke,"-content-box"),rt==null?void 0:rt.body),style:Xe==null?void 0:Xe.body},We)):null});ue.displayName="PanelContent";var he=ue,pe=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],me=se.forwardRef(function(De,He){var Ke=De.showArrow,Ye=Ke===void 0?!0:Ke,it=De.headerClass,Re=De.isActive,We=De.onItemClick,et=De.forceRender,nt=De.className,rt=De.classNames,Xe=rt===void 0?{}:rt,Je=De.styles,Ve=Je===void 0?{}:Je,at=De.prefixCls,Qe=De.collapsible,ut=De.accordion,st=De.panelKey,$e=De.extra,Ne=De.header,je=De.expandIcon,ne=De.openMotion,ce=De.destroyInactivePanel,Ie=De.children,Fe=(0,ee.Z)(De,pe),we=Qe==="disabled",Ee=$e!=null&&typeof $e!="boolean",Oe=(0,te.Z)((0,te.Z)((0,te.Z)({onClick:function(){We==null||We(st)},onKeyDown:function(kt){(kt.key==="Enter"||kt.keyCode===ae.Z.ENTER||kt.which===ae.Z.ENTER)&&(We==null||We(st))},role:ut?"tab":"button"},"aria-expanded",Re),"aria-disabled",we),"tabIndex",we?-1:0),Ue=typeof je=="function"?je(De):se.createElement("i",{className:"arrow"}),tt=Ue&&se.createElement("div",(0,Ze.Z)({className:"".concat(at,"-expand-icon")},["header","icon"].includes(Qe)?Oe:{}),Ue),Ge=E()("".concat(at,"-item"),(0,te.Z)((0,te.Z)({},"".concat(at,"-item-active"),Re),"".concat(at,"-item-disabled"),we),nt),ft=E()(it,"".concat(at,"-header"),(0,te.Z)({},"".concat(at,"-collapsible-").concat(Qe),!!Qe),Xe.header),ct=(0,x.Z)({className:ft,style:Ve.header},["header","icon"].includes(Qe)?{}:Oe);return se.createElement("div",(0,Ze.Z)({},Fe,{ref:He,className:Ge}),se.createElement("div",ct,Ye&&tt,se.createElement("span",(0,Ze.Z)({className:"".concat(at,"-header-text")},Qe==="header"?Oe:{}),Ne),Ee&&se.createElement("div",{className:"".concat(at,"-extra")},$e)),se.createElement(re.default,(0,Ze.Z)({visible:Re,leavedClassName:"".concat(at,"-content-hidden")},ne,{forceRender:et,removeOnLeave:ce}),function(vt,kt){var xt=vt.className,Et=vt.style;return se.createElement(he,{ref:kt,prefixCls:at,className:xt,classNames:Xe,style:Et,styles:Ve,isActive:Re,forceRender:et,role:ut?"tabpanel":void 0},Ie)}))}),fe=me,ve=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ke=function(He,Ke){var Ye=Ke.prefixCls,it=Ke.accordion,Re=Ke.collapsible,We=Ke.destroyInactivePanel,et=Ke.onItemClick,nt=Ke.activeKey,rt=Ke.openMotion,Xe=Ke.expandIcon;return He.map(function(Je,Ve){var at=Je.children,Qe=Je.label,ut=Je.key,st=Je.collapsible,$e=Je.onItemClick,Ne=Je.destroyInactivePanel,je=(0,ee.Z)(Je,ve),ne=String(ut!=null?ut:Ve),ce=st!=null?st:Re,Ie=Ne!=null?Ne:We,Fe=function(Oe){ce!=="disabled"&&(et(Oe),$e==null||$e(Oe))},we=!1;return it?we=nt[0]===ne:we=nt.indexOf(ne)>-1,se.createElement(fe,(0,Ze.Z)({},je,{prefixCls:Ye,key:ne,panelKey:ne,isActive:we,accordion:it,openMotion:rt,expandIcon:Xe,header:Qe,collapsible:ce,onItemClick:Fe,destroyInactivePanel:Ie}),at)})},Te=function(He,Ke,Ye){if(!He)return null;var it=Ye.prefixCls,Re=Ye.accordion,We=Ye.collapsible,et=Ye.destroyInactivePanel,nt=Ye.onItemClick,rt=Ye.activeKey,Xe=Ye.openMotion,Je=Ye.expandIcon,Ve=He.key||String(Ke),at=He.props,Qe=at.header,ut=at.headerClass,st=at.destroyInactivePanel,$e=at.collapsible,Ne=at.onItemClick,je=!1;Re?je=rt[0]===Ve:je=rt.indexOf(Ve)>-1;var ne=$e!=null?$e:We,ce=function(we){ne!=="disabled"&&(nt(we),Ne==null||Ne(we))},Ie={key:Ve,panelKey:Ve,header:Qe,headerClass:ut,isActive:je,prefixCls:it,destroyInactivePanel:st!=null?st:et,openMotion:Xe,accordion:Re,children:He.props.children,onItemClick:ce,expandIcon:Je,collapsible:ne};return typeof He.type=="string"?He:(Object.keys(Ie).forEach(function(Fe){typeof Ie[Fe]=="undefined"&&delete Ie[Fe]}),se.cloneElement(He,Ie))};function Pe(De,He,Ke){return Array.isArray(De)?ke(De,Ke):(0,de.Z)(He).map(function(Ye,it){return Te(Ye,it,Ke)})}var _e=Pe,be=ze(26112);function xe(De){var He=De;if(!Array.isArray(He)){var Ke=(0,Se.Z)(He);He=Ke==="number"||Ke==="string"?[He]:[]}return He.map(function(Ye){return String(Ye)})}var Ae=se.forwardRef(function(De,He){var Ke=De.prefixCls,Ye=Ke===void 0?"rc-collapse":Ke,it=De.destroyInactivePanel,Re=it===void 0?!1:it,We=De.style,et=De.accordion,nt=De.className,rt=De.children,Xe=De.collapsible,Je=De.openMotion,Ve=De.expandIcon,at=De.activeKey,Qe=De.defaultActiveKey,ut=De.onChange,st=De.items,$e=E()(Ye,nt),Ne=(0,z.Z)([],{value:at,onChange:function(Ee){return ut==null?void 0:ut(Ee)},defaultValue:Qe,postState:xe}),je=(0,y.Z)(Ne,2),ne=je[0],ce=je[1],Ie=function(Ee){return ce(function(){if(et)return ne[0]===Ee?[]:[Ee];var Oe=ne.indexOf(Ee),Ue=Oe>-1;return Ue?ne.filter(function(tt){return tt!==Ee}):[].concat((0,yt.Z)(ne),[Ee])})};(0,oe.ZP)(!rt,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var Fe=_e(st,rt,{prefixCls:Ye,accordion:et,openMotion:Je,expandIcon:Ve,collapsible:Xe,destroyInactivePanel:Re,onItemClick:Ie,activeKey:ne});return se.createElement("div",(0,Ze.Z)({ref:He,className:$e,style:We,role:et?"tablist":void 0},(0,be.Z)(De,{aria:!0,data:!0})),Fe)}),Me=Object.assign(Ae,{Panel:fe}),Be=Me,Ce=Me.Panel},66042:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return Be}});var Ze=ze(27247),yt=ze(11913),y=ze(43403),Se=ze(34280),ye=ze(59301),E=ye.createContext(null),z=ye.createContext({}),oe=E,se=ze(74430),ee=ze(32855),de=ze(92310),x=ze.n(de),te=ze(77900),re=ze(10228),ae=ze(26112),ue=ze(43079),he=ze(8654),pe=["prefixCls","className","containerRef"],me=function(De){var He=De.prefixCls,Ke=De.className,Ye=De.containerRef,it=(0,ue.Z)(De,pe),Re=ye.useContext(z),We=Re.panel,et=(0,he.x1)(We,Ye);return ye.createElement("div",(0,ee.Z)({className:x()("".concat(He,"-content"),Ke),role:"dialog",ref:et},(0,ae.Z)(De,{aria:!0}),{"aria-modal":"true"},it))},fe=me,ve=ze(48736);function ke(Ce){return typeof Ce=="string"&&String(Number(Ce))===Ce?((0,ve.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ce)):Ce}function Te(Ce){warning(!("wrapperClassName"in Ce),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ce.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Pe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function _e(Ce,De){var He,Ke,Ye,it=Ce.prefixCls,Re=Ce.open,We=Ce.placement,et=Ce.inline,nt=Ce.push,rt=Ce.forceRender,Xe=Ce.autoFocus,Je=Ce.keyboard,Ve=Ce.classNames,at=Ce.rootClassName,Qe=Ce.rootStyle,ut=Ce.zIndex,st=Ce.className,$e=Ce.id,Ne=Ce.style,je=Ce.motion,ne=Ce.width,ce=Ce.height,Ie=Ce.children,Fe=Ce.mask,we=Ce.maskClosable,Ee=Ce.maskMotion,Oe=Ce.maskClassName,Ue=Ce.maskStyle,tt=Ce.afterOpenChange,Ge=Ce.onClose,ft=Ce.onMouseEnter,ct=Ce.onMouseOver,vt=Ce.onMouseLeave,kt=Ce.onClick,xt=Ce.onKeyDown,Et=Ce.onKeyUp,gt=Ce.styles,pt=Ce.drawerRender,mt=ye.useRef(),dt=ye.useRef(),bt=ye.useRef();ye.useImperativeHandle(De,function(){return mt.current});var wt=function(Kt){var It=Kt.keyCode,Rt=Kt.shiftKey;switch(It){case re.Z.TAB:{if(It===re.Z.TAB){if(!Rt&&document.activeElement===bt.current){var Bt;(Bt=dt.current)===null||Bt===void 0||Bt.focus({preventScroll:!0})}else if(Rt&&document.activeElement===dt.current){var Vt;(Vt=bt.current)===null||Vt===void 0||Vt.focus({preventScroll:!0})}}break}case re.Z.ESC:{Ge&&Je&&(Kt.stopPropagation(),Ge(Kt));break}}};ye.useEffect(function(){if(Re&&Xe){var Jt;(Jt=mt.current)===null||Jt===void 0||Jt.focus({preventScroll:!0})}},[Re]);var At=ye.useState(!1),jt=(0,yt.Z)(At,2),Zt=jt[0],Wt=jt[1],$t=ye.useContext(oe),Er;typeof nt=="boolean"?Er=nt?{}:{distance:0}:Er=nt||{};var vr=(He=(Ke=(Ye=Er)===null||Ye===void 0?void 0:Ye.distance)!==null&&Ke!==void 0?Ke:$t==null?void 0:$t.pushDistance)!==null&&He!==void 0?He:180,Ht=ye.useMemo(function(){return{pushDistance:vr,push:function(){Wt(!0)},pull:function(){Wt(!1)}}},[vr]);ye.useEffect(function(){if(Re){var Jt;$t==null||(Jt=$t.push)===null||Jt===void 0||Jt.call($t)}else{var Kt;$t==null||(Kt=$t.pull)===null||Kt===void 0||Kt.call($t)}},[Re]),ye.useEffect(function(){return function(){var Jt;$t==null||(Jt=$t.pull)===null||Jt===void 0||Jt.call($t)}},[]);var er=Fe&&ye.createElement(te.default,(0,ee.Z)({key:"mask"},Ee,{visible:Re}),function(Jt,Kt){var It=Jt.className,Rt=Jt.style;return ye.createElement("div",{className:x()("".concat(it,"-mask"),It,Ve==null?void 0:Ve.mask,Oe),style:(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},Rt),Ue),gt==null?void 0:gt.mask),onClick:we&&Re?Ge:void 0,ref:Kt})}),or=typeof je=="function"?je(We):je,hr={};if(Zt&&vr)switch(We){case"top":hr.transform="translateY(".concat(vr,"px)");break;case"bottom":hr.transform="translateY(".concat(-vr,"px)");break;case"left":hr.transform="translateX(".concat(vr,"px)");break;default:hr.transform="translateX(".concat(-vr,"px)");break}We==="left"||We==="right"?hr.width=ke(ne):hr.height=ke(ce);var Qt={onMouseEnter:ft,onMouseOver:ct,onMouseLeave:vt,onClick:kt,onKeyDown:xt,onKeyUp:Et},sr=ye.createElement(te.default,(0,ee.Z)({key:"panel"},or,{visible:Re,forceRender:rt,onVisibleChanged:function(Kt){tt==null||tt(Kt)},removeOnLeave:!1,leavedClassName:"".concat(it,"-content-wrapper-hidden")}),function(Jt,Kt){var It=Jt.className,Rt=Jt.style,Bt=ye.createElement(fe,(0,ee.Z)({id:$e,containerRef:Kt,prefixCls:it,className:x()(st,Ve==null?void 0:Ve.content),style:(0,Ze.Z)((0,Ze.Z)({},Ne),gt==null?void 0:gt.content)},(0,ae.Z)(Ce,{aria:!0}),Qt),Ie);return ye.createElement("div",(0,ee.Z)({className:x()("".concat(it,"-content-wrapper"),Ve==null?void 0:Ve.wrapper,It),style:(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},hr),Rt),gt==null?void 0:gt.wrapper)},(0,ae.Z)(Ce,{data:!0})),pt?pt(Bt):Bt)}),Ir=(0,Ze.Z)({},Qe);return ut&&(Ir.zIndex=ut),ye.createElement(oe.Provider,{value:Ht},ye.createElement("div",{className:x()(it,"".concat(it,"-").concat(We),at,(0,se.Z)((0,se.Z)({},"".concat(it,"-open"),Re),"".concat(it,"-inline"),et)),style:Ir,tabIndex:-1,ref:mt,onKeyDown:wt},er,ye.createElement("div",{tabIndex:0,ref:dt,style:Pe,"aria-hidden":"true","data-sentinel":"start"}),sr,ye.createElement("div",{tabIndex:0,ref:bt,style:Pe,"aria-hidden":"true","data-sentinel":"end"})))}var be=ye.forwardRef(_e),xe=be,Ae=function(De){var He=De.open,Ke=He===void 0?!1:He,Ye=De.prefixCls,it=Ye===void 0?"rc-drawer":Ye,Re=De.placement,We=Re===void 0?"right":Re,et=De.autoFocus,nt=et===void 0?!0:et,rt=De.keyboard,Xe=rt===void 0?!0:rt,Je=De.width,Ve=Je===void 0?378:Je,at=De.mask,Qe=at===void 0?!0:at,ut=De.maskClosable,st=ut===void 0?!0:ut,$e=De.getContainer,Ne=De.forceRender,je=De.afterOpenChange,ne=De.destroyOnClose,ce=De.onMouseEnter,Ie=De.onMouseOver,Fe=De.onMouseLeave,we=De.onClick,Ee=De.onKeyDown,Oe=De.onKeyUp,Ue=De.panelRef,tt=ye.useState(!1),Ge=(0,yt.Z)(tt,2),ft=Ge[0],ct=Ge[1],vt=ye.useState(!1),kt=(0,yt.Z)(vt,2),xt=kt[0],Et=kt[1];(0,Se.Z)(function(){Et(!0)},[]);var gt=xt?Ke:!1,pt=ye.useRef(),mt=ye.useRef();(0,Se.Z)(function(){gt&&(mt.current=document.activeElement)},[gt]);var dt=function(Zt){var Wt;if(ct(Zt),je==null||je(Zt),!Zt&&mt.current&&!((Wt=pt.current)!==null&&Wt!==void 0&&Wt.contains(mt.current))){var $t;($t=mt.current)===null||$t===void 0||$t.focus({preventScroll:!0})}},bt=ye.useMemo(function(){return{panel:Ue}},[Ue]);if(!Ne&&!ft&&!gt&&ne)return null;var wt={onMouseEnter:ce,onMouseOver:Ie,onMouseLeave:Fe,onClick:we,onKeyDown:Ee,onKeyUp:Oe},At=(0,Ze.Z)((0,Ze.Z)({},De),{},{open:gt,prefixCls:it,placement:We,autoFocus:nt,keyboard:Xe,width:Ve,mask:Qe,maskClosable:st,inline:$e===!1,afterOpenChange:dt,ref:pt},wt);return ye.createElement(z.Provider,{value:bt},ye.createElement(y.Z,{open:gt||Ne||ft,autoDestroy:!1,getContainer:$e,autoLock:Qe&&(gt||ft)},ye.createElement(xe,At)))},Me=Ae,Be=Me},25930:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Cd:function(){return Ae}});var Ze=ze(32855),yt=ze(27247),y=ze(43079),Se=ze(59301),ye=ze(92310),E=ze.n(ye),z={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},oe=function(){var Ce=(0,Se.useRef)([]),De=(0,Se.useRef)(null);return(0,Se.useEffect)(function(){var He=Date.now(),Ke=!1;Ce.current.forEach(function(Ye){if(Ye){Ke=!0;var it=Ye.style;it.transitionDuration=".3s, .3s, .3s, .06s",De.current&&He-De.current<100&&(it.transitionDuration="0s, 0s")}}),Ke&&(De.current=Date.now())}),Ce.current},se=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Ce){var De=(0,yt.Z)((0,yt.Z)({},z),Ce),He=De.className,Ke=De.percent,Ye=De.prefixCls,it=De.strokeColor,Re=De.strokeLinecap,We=De.strokeWidth,et=De.style,nt=De.trailColor,rt=De.trailWidth,Xe=De.transition,Je=(0,y.Z)(De,se);delete Je.gapPosition;var Ve=Array.isArray(Ke)?Ke:[Ke],at=Array.isArray(it)?it:[it],Qe=oe(),ut=We/2,st=100-We/2,$e="M ".concat(Re==="round"?ut:0,",").concat(ut,`
L `).concat(Re==="round"?st:100,",").concat(ut),Ne="0 0 100 ".concat(We),je=0;return Se.createElement("svg",(0,Ze.Z)({className:E()("".concat(Ye,"-line"),He),viewBox:Ne,preserveAspectRatio:"none",style:et},Je),Se.createElement("path",{className:"".concat(Ye,"-line-trail"),d:$e,strokeLinecap:Re,stroke:nt,strokeWidth:rt||We,fillOpacity:"0"}),Ve.map(function(ne,ce){var Ie=1;switch(Re){case"round":Ie=1-We/100;break;case"square":Ie=1-We/2/100;break;default:Ie=1;break}var Fe={strokeDasharray:"".concat(ne*Ie,"px, 100px"),strokeDashoffset:"-".concat(je,"px"),transition:Xe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},we=at[ce]||at[at.length-1];return je+=ne,Se.createElement("path",{key:ce,className:"".concat(Ye,"-line-path"),d:$e,strokeLinecap:Re,stroke:we,strokeWidth:We,fillOpacity:"0",ref:function(Oe){Qe[ce]=Oe},style:Fe})}))},de=ee,x=ze(34666),te=ze(11913),re=ze(47273),ae=0,ue=(0,re.Z)();function he(){var Be;return ue?(Be=ae,ae+=1):Be="TEST_OR_SSR",Be}var pe=function(Be){var Ce=Se.useState(),De=(0,te.Z)(Ce,2),He=De[0],Ke=De[1];return Se.useEffect(function(){Ke("rc_progress_".concat(he()))},[]),Be||He},me=function(Ce){var De=Ce.bg,He=Ce.children;return Se.createElement("div",{style:{width:"100%",height:"100%",background:De}},He)};function fe(Be,Ce){return Object.keys(Be).map(function(De){var He=parseFloat(De),Ke="".concat(Math.floor(He*Ce),"%");return"".concat(Be[De]," ").concat(Ke)})}var ve=Se.forwardRef(function(Be,Ce){var De=Be.prefixCls,He=Be.color,Ke=Be.gradientId,Ye=Be.radius,it=Be.style,Re=Be.ptg,We=Be.strokeLinecap,et=Be.strokeWidth,nt=Be.size,rt=Be.gapDegree,Xe=He&&(0,x.Z)(He)==="object",Je=Xe?"#FFF":void 0,Ve=nt/2,at=Se.createElement("circle",{className:"".concat(De,"-circle-path"),r:Ye,cx:Ve,cy:Ve,stroke:Je,strokeLinecap:We,strokeWidth:et,opacity:Re===0?0:1,style:it,ref:Ce});if(!Xe)return at;var Qe="".concat(Ke,"-conic"),ut=rt?"".concat(180+rt/2,"deg"):"0deg",st=fe(He,(360-rt)/360),$e=fe(He,1),Ne="conic-gradient(from ".concat(ut,", ").concat(st.join(", "),")"),je="linear-gradient(to ".concat(rt?"bottom":"top",", ").concat($e.join(", "),")");return Se.createElement(Se.Fragment,null,Se.createElement("mask",{id:Qe},at),Se.createElement("foreignObject",{x:0,y:0,width:nt,height:nt,mask:"url(#".concat(Qe,")")},Se.createElement(me,{bg:je},Se.createElement(me,{bg:Ne}))))}),ke=ve,Te=100,Pe=function(Ce,De,He,Ke,Ye,it,Re,We,et,nt){var rt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Xe=He/100*360*((360-it)/360),Je=it===0?0:{bottom:0,top:180,left:90,right:-90}[Re],Ve=(100-Ke)/100*De;et==="round"&&Ke!==100&&(Ve+=nt/2,Ve>=De&&(Ve=De-.01));var at=Te/2;return{stroke:typeof We=="string"?We:void 0,strokeDasharray:"".concat(De,"px ").concat(Ce),strokeDashoffset:Ve+rt,transform:"rotate(".concat(Ye+Xe+Je,"deg)"),transformOrigin:"".concat(at,"px ").concat(at,"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}},_e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function be(Be){var Ce=Be!=null?Be:[];return Array.isArray(Ce)?Ce:[Ce]}var xe=function(Ce){var De=(0,yt.Z)((0,yt.Z)({},z),Ce),He=De.id,Ke=De.prefixCls,Ye=De.steps,it=De.strokeWidth,Re=De.trailWidth,We=De.gapDegree,et=We===void 0?0:We,nt=De.gapPosition,rt=De.trailColor,Xe=De.strokeLinecap,Je=De.style,Ve=De.className,at=De.strokeColor,Qe=De.percent,ut=(0,y.Z)(De,_e),st=Te/2,$e=pe(He),Ne="".concat($e,"-gradient"),je=st-it/2,ne=Math.PI*2*je,ce=et>0?90+et/2:-90,Ie=ne*((360-et)/360),Fe=(0,x.Z)(Ye)==="object"?Ye:{count:Ye,gap:2},we=Fe.count,Ee=Fe.gap,Oe=be(Qe),Ue=be(at),tt=Ue.find(function(Et){return Et&&(0,x.Z)(Et)==="object"}),Ge=tt&&(0,x.Z)(tt)==="object",ft=Ge?"butt":Xe,ct=Pe(ne,Ie,0,100,ce,et,nt,rt,ft,it),vt=oe(),kt=function(){var gt=0;return Oe.map(function(pt,mt){var dt=Ue[mt]||Ue[Ue.length-1],bt=Pe(ne,Ie,gt,pt,ce,et,nt,dt,ft,it);return gt+=pt,Se.createElement(ke,{key:mt,color:dt,ptg:pt,radius:je,prefixCls:Ke,gradientId:Ne,style:bt,strokeLinecap:ft,strokeWidth:it,gapDegree:et,ref:function(At){vt[mt]=At},size:Te})}).reverse()},xt=function(){var gt=Math.round(we*(Oe[0]/100)),pt=100/we,mt=0;return new Array(we).fill(null).map(function(dt,bt){var wt=bt<=gt-1?Ue[0]:rt,At=wt&&(0,x.Z)(wt)==="object"?"url(#".concat(Ne,")"):void 0,jt=Pe(ne,Ie,mt,pt,ce,et,nt,wt,"butt",it,Ee);return mt+=(Ie-jt.strokeDashoffset+Ee)*100/Ie,Se.createElement("circle",{key:bt,className:"".concat(Ke,"-circle-path"),r:je,cx:st,cy:st,stroke:At,strokeWidth:it,opacity:1,style:jt,ref:function(Wt){vt[bt]=Wt}})})};return Se.createElement("svg",(0,Ze.Z)({className:E()("".concat(Ke,"-circle"),Ve),viewBox:"0 0 ".concat(Te," ").concat(Te),style:Je,id:He,role:"presentation"},ut),!we&&Se.createElement("circle",{className:"".concat(Ke,"-circle-trail"),r:je,cx:st,cy:st,stroke:rt,strokeLinecap:ft,strokeWidth:Re||it,style:ct}),we?xt():kt())},Ae=xe,Me={Line:de,Circle:Ae}},738:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return fe}});var Ze=ze(32855),yt=ze(74430),y=ze(11913),Se=ze(43079),ye=ze(92310),E=ze.n(ye),z=ze(18929),oe=ze(10228),se=ze(26112),ee=ze(59301);function de(ve,ke){var Te=ve.disabled,Pe=ve.prefixCls,_e=ve.character,be=ve.characterRender,xe=ve.index,Ae=ve.count,Me=ve.value,Be=ve.allowHalf,Ce=ve.focused,De=ve.onHover,He=ve.onClick,Ke=function(Xe){De(Xe,xe)},Ye=function(Xe){He(Xe,xe)},it=function(Xe){Xe.keyCode===oe.Z.ENTER&&He(Xe,xe)},Re=xe+1,We=new Set([Pe]);Me===0&&xe===0&&Ce?We.add("".concat(Pe,"-focused")):Be&&Me+.5>=Re&&Me<Re?(We.add("".concat(Pe,"-half")),We.add("".concat(Pe,"-active")),Ce&&We.add("".concat(Pe,"-focused"))):(Re<=Me?We.add("".concat(Pe,"-full")):We.add("".concat(Pe,"-zero")),Re===Me&&Ce&&We.add("".concat(Pe,"-focused")));var et=typeof _e=="function"?_e(ve):_e,nt=ee.createElement("li",{className:E()(Array.from(We)),ref:ke},ee.createElement("div",{onClick:Te?null:Ye,onKeyDown:Te?null:it,onMouseMove:Te?null:Ke,role:"radio","aria-checked":Me>xe?"true":"false","aria-posinset":xe+1,"aria-setsize":Ae,tabIndex:Te?-1:0},ee.createElement("div",{className:"".concat(Pe,"-first")},et),ee.createElement("div",{className:"".concat(Pe,"-second")},et)));return be&&(nt=be(nt,ve)),nt}var x=ee.forwardRef(de);function te(){var ve=ee.useRef({});function ke(Pe){return ve.current[Pe]}function Te(Pe){return function(_e){ve.current[Pe]=_e}}return[ke,Te]}function re(ve){var ke=ve.pageXOffset,Te="scrollLeft";if(typeof ke!="number"){var Pe=ve.document;ke=Pe.documentElement[Te],typeof ke!="number"&&(ke=Pe.body[Te])}return ke}function ae(ve){var ke,Te,Pe=ve.ownerDocument,_e=Pe.body,be=Pe&&Pe.documentElement,xe=ve.getBoundingClientRect();return ke=xe.left,Te=xe.top,ke-=be.clientLeft||_e.clientLeft||0,Te-=be.clientTop||_e.clientTop||0,{left:ke,top:Te}}function ue(ve){var ke=ae(ve),Te=ve.ownerDocument,Pe=Te.defaultView||Te.parentWindow;return ke.left+=re(Pe),ke.left}var he=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function pe(ve,ke){var Te=ve.prefixCls,Pe=Te===void 0?"rc-rate":Te,_e=ve.className,be=ve.defaultValue,xe=ve.value,Ae=ve.count,Me=Ae===void 0?5:Ae,Be=ve.allowHalf,Ce=Be===void 0?!1:Be,De=ve.allowClear,He=De===void 0?!0:De,Ke=ve.keyboard,Ye=Ke===void 0?!0:Ke,it=ve.character,Re=it===void 0?"\u2605":it,We=ve.characterRender,et=ve.disabled,nt=ve.direction,rt=nt===void 0?"ltr":nt,Xe=ve.tabIndex,Je=Xe===void 0?0:Xe,Ve=ve.autoFocus,at=ve.onHoverChange,Qe=ve.onChange,ut=ve.onFocus,st=ve.onBlur,$e=ve.onKeyDown,Ne=ve.onMouseLeave,je=(0,Se.Z)(ve,he),ne=te(),ce=(0,y.Z)(ne,2),Ie=ce[0],Fe=ce[1],we=ee.useRef(null),Ee=function(){if(!et){var Qt;(Qt=we.current)===null||Qt===void 0||Qt.focus()}};ee.useImperativeHandle(ke,function(){return{focus:Ee,blur:function(){if(!et){var Qt;(Qt=we.current)===null||Qt===void 0||Qt.blur()}}}});var Oe=(0,z.Z)(be||0,{value:xe}),Ue=(0,y.Z)(Oe,2),tt=Ue[0],Ge=Ue[1],ft=(0,z.Z)(null),ct=(0,y.Z)(ft,2),vt=ct[0],kt=ct[1],xt=function(Qt,sr){var Ir=rt==="rtl",Jt=Qt+1;if(Ce){var Kt=Ie(Qt),It=ue(Kt),Rt=Kt.clientWidth;(Ir&&sr-It>Rt/2||!Ir&&sr-It<Rt/2)&&(Jt-=.5)}return Jt},Et=function(Qt){Ge(Qt),Qe==null||Qe(Qt)},gt=ee.useState(!1),pt=(0,y.Z)(gt,2),mt=pt[0],dt=pt[1],bt=function(){dt(!0),ut==null||ut()},wt=function(){dt(!1),st==null||st()},At=ee.useState(null),jt=(0,y.Z)(At,2),Zt=jt[0],Wt=jt[1],$t=function(Qt,sr){var Ir=xt(sr,Qt.pageX);Ir!==vt&&(Wt(Ir),kt(null)),at==null||at(Ir)},Er=function(Qt){et||(Wt(null),kt(null),at==null||at(void 0)),Qt&&(Ne==null||Ne(Qt))},vr=function(Qt,sr){var Ir=xt(sr,Qt.pageX),Jt=!1;He&&(Jt=Ir===tt),Er(),Et(Jt?0:Ir),kt(Jt?Ir:null)},Ht=function(Qt){var sr=Qt.keyCode,Ir=rt==="rtl",Jt=Ce?.5:1;Ye&&(sr===oe.Z.RIGHT&&tt<Me&&!Ir?(Et(tt+Jt),Qt.preventDefault()):sr===oe.Z.LEFT&&tt>0&&!Ir||sr===oe.Z.RIGHT&&tt>0&&Ir?(Et(tt-Jt),Qt.preventDefault()):sr===oe.Z.LEFT&&tt<Me&&Ir&&(Et(tt+Jt),Qt.preventDefault())),$e==null||$e(Qt)};ee.useEffect(function(){Ve&&!et&&Ee()},[]);var er=new Array(Me).fill(0).map(function(hr,Qt){return ee.createElement(x,{ref:Fe(Qt),index:Qt,count:Me,disabled:et,prefixCls:"".concat(Pe,"-star"),allowHalf:Ce,value:Zt===null?tt:Zt,onClick:vr,onHover:$t,key:hr||Qt,character:Re,characterRender:We,focused:mt})}),or=E()(Pe,_e,(0,yt.Z)((0,yt.Z)({},"".concat(Pe,"-disabled"),et),"".concat(Pe,"-rtl"),rt==="rtl"));return ee.createElement("ul",(0,Ze.Z)({className:or,onMouseLeave:Er,tabIndex:et?-1:Je,onFocus:et?null:bt,onBlur:et?null:wt,onKeyDown:et?null:Ht,ref:we},(0,se.Z)(je,{aria:!0,data:!0,attr:!0})),er)}var me=ee.forwardRef(pe),fe=me},6551:function(Lt,Ot,ze){"use strict";ze.d(Ot,{ZP:function(){return z}});var Ze=ze(11913),yt=ze(59301),y=ze(47273),Se=0,ye=(0,y.Z)();function E(){var oe;return ye?(oe=Se,Se+=1):oe="TEST_OR_SSR",oe}function z(oe){var se=yt.useState(),ee=(0,Ze.Z)(se,2),de=ee[0],x=ee[1];return yt.useEffect(function(){x("rc_select_".concat(E()))},[]),oe||de}},37463:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Ac:function(){return dt},Xo:function(){return wt},Wx:function(){return jt},ZP:function(){return Br},lk:function(){return fe}});var Ze=ze(32855),yt=ze(3300),y=ze(74430),Se=ze(27247),ye=ze(11913),E=ze(43079),z=ze(34666),oe=ze(18929),se=ze(48736),ee=ze(59301),de=ze(92310),x=ze.n(de),te=ze(34280),re=ze(49658),ae=ze(8654),ue=function(Tt){var ar=Tt.className,Xt=Tt.customizeIcon,Dt=Tt.customizeIconProps,Yt=Tt.children,rr=Tt.onMouseDown,gr=Tt.onClick,Mr=typeof Xt=="function"?Xt(Dt):Xt;return ee.createElement("span",{className:ar,onMouseDown:function(br){br.preventDefault(),rr==null||rr(br)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gr,"aria-hidden":!0},Mr!==void 0?Mr:ee.createElement("span",{className:x()(ar.split(/\s+/).map(function(Pt){return"".concat(Pt,"-icon")}))},Yt))},he=ue,pe=function(Tt,ar,Xt,Dt,Yt){var rr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gr=arguments.length>6?arguments[6]:void 0,Mr=arguments.length>7?arguments[7]:void 0,Pt=ee.useMemo(function(){if((0,z.Z)(Dt)==="object")return Dt.clearIcon;if(Yt)return Yt},[Dt,Yt]),br=ee.useMemo(function(){return!!(!rr&&Dt&&(Xt.length||gr)&&!(Mr==="combobox"&&gr===""))},[Dt,rr,Xt.length,gr,Mr]);return{allowClear:br,clearIcon:ee.createElement(he,{className:"".concat(Tt,"-clear"),onMouseDown:ar,customizeIcon:Pt},"\xD7")}},me=ee.createContext(null);function fe(){return ee.useContext(me)}function ve(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Tt=ee.useState(!1),ar=(0,ye.Z)(Tt,2),Xt=ar[0],Dt=ar[1],Yt=ee.useRef(null),rr=function(){window.clearTimeout(Yt.current)};ee.useEffect(function(){return rr},[]);var gr=function(Pt,br){rr(),Yt.current=window.setTimeout(function(){Dt(Pt),br&&br()},Ct)};return[Xt,gr,rr]}function ke(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Tt=ee.useRef(null),ar=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(ar.current)}},[]);function Xt(Dt){(Dt||Tt.current===null)&&(Tt.current=Dt),window.clearTimeout(ar.current),ar.current=window.setTimeout(function(){Tt.current=null},Ct)}return[function(){return Tt.current},Xt]}function Te(Ct,Tt,ar,Xt){var Dt=ee.useRef(null);Dt.current={open:Tt,triggerOpen:ar,customizedTrigger:Xt},ee.useEffect(function(){function Yt(rr){var gr;if(!((gr=Dt.current)!==null&&gr!==void 0&&gr.customizedTrigger)){var Mr=rr.target;Mr.shadowRoot&&rr.composed&&(Mr=rr.composedPath()[0]||Mr),Dt.current.open&&Ct().filter(function(Pt){return Pt}).every(function(Pt){return!Pt.contains(Mr)&&Pt!==Mr})&&Dt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Yt),function(){return window.removeEventListener("mousedown",Yt)}},[])}var Pe=ze(10228);function _e(Ct){return Ct&&![Pe.Z.ESC,Pe.Z.SHIFT,Pe.Z.BACKSPACE,Pe.Z.TAB,Pe.Z.WIN_KEY,Pe.Z.ALT,Pe.Z.META,Pe.Z.WIN_KEY_RIGHT,Pe.Z.CTRL,Pe.Z.SEMICOLON,Pe.Z.EQUALS,Pe.Z.CAPS_LOCK,Pe.Z.CONTEXT_MENU,Pe.Z.F1,Pe.Z.F2,Pe.Z.F3,Pe.Z.F4,Pe.Z.F5,Pe.Z.F6,Pe.Z.F7,Pe.Z.F8,Pe.Z.F9,Pe.Z.F10,Pe.Z.F11,Pe.Z.F12].includes(Ct)}var be=ze(26112),xe=ze(11780);function Ae(Ct,Tt,ar){var Xt=(0,Se.Z)((0,Se.Z)({},Ct),ar?Tt:{});return Object.keys(Tt).forEach(function(Dt){var Yt=Tt[Dt];typeof Yt=="function"&&(Xt[Dt]=function(){for(var rr,gr=arguments.length,Mr=new Array(gr),Pt=0;Pt<gr;Pt++)Mr[Pt]=arguments[Pt];return Yt.apply(void 0,Mr),(rr=Ct[Dt])===null||rr===void 0?void 0:rr.call.apply(rr,[Ct].concat(Mr))})}),Xt}var Me=Ae,Be=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ce=function(Tt,ar){var Xt=Tt.prefixCls,Dt=Tt.id,Yt=Tt.inputElement,rr=Tt.autoFocus,gr=Tt.autoComplete,Mr=Tt.editable,Pt=Tt.activeDescendantId,br=Tt.value,Gt=Tt.open,Sr=Tt.attrs,ir=(0,E.Z)(Tt,Be),ur=Yt||ee.createElement("input",null),xr=ur,Fr=xr.ref,Ur=xr.props;return(0,se.Kp)(!("maxLength"in ur.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ur=ee.cloneElement(ur,(0,Se.Z)((0,Se.Z)((0,Se.Z)({type:"search"},Me(ir,Ur,!0)),{},{id:Dt,ref:(0,ae.sQ)(ar,Fr),autoComplete:gr||"off",autoFocus:rr,className:x()("".concat(Xt,"-selection-search-input"),Ur==null?void 0:Ur.className),role:"combobox","aria-expanded":Gt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Dt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Dt,"_list"),"aria-activedescendant":Gt?Pt:void 0},Sr),{},{value:Mr?br:"",readOnly:!Mr,unselectable:Mr?null:"on",style:(0,Se.Z)((0,Se.Z)({},Ur.style),{},{opacity:Mr?null:0})})),ur},De=ee.forwardRef(Ce),He=De;function Ke(Ct){return Array.isArray(Ct)?Ct:Ct!==void 0?[Ct]:[]}var Ye=typeof window!="undefined"&&window.document&&window.document.documentElement,it=Ye;function Re(Ct){return Ct!=null}function We(Ct){return!Ct&&Ct!==0}function et(Ct){return["string","number"].includes((0,z.Z)(Ct))}function nt(Ct){var Tt=void 0;return Ct&&(et(Ct.title)?Tt=Ct.title.toString():et(Ct.label)&&(Tt=Ct.label.toString())),Tt}function rt(Ct,Tt){it?ee.useLayoutEffect(Ct,Tt):ee.useEffect(Ct,Tt)}function Xe(Ct){var Tt;return(Tt=Ct.key)!==null&&Tt!==void 0?Tt:Ct.value}var Je=function(Tt){Tt.preventDefault(),Tt.stopPropagation()},Ve=function(Tt){var ar=Tt.id,Xt=Tt.prefixCls,Dt=Tt.values,Yt=Tt.open,rr=Tt.searchValue,gr=Tt.autoClearSearchValue,Mr=Tt.inputRef,Pt=Tt.placeholder,br=Tt.disabled,Gt=Tt.mode,Sr=Tt.showSearch,ir=Tt.autoFocus,ur=Tt.autoComplete,xr=Tt.activeDescendantId,Fr=Tt.tabIndex,Ur=Tt.removeIcon,en=Tt.maxTagCount,un=Tt.maxTagTextLength,ln=Tt.maxTagPlaceholder,gn=ln===void 0?function(tr){return"+ ".concat(tr.length," ...")}:ln,nn=Tt.tagRender,Tn=Tt.onToggleOpen,Mn=Tt.onRemove,xn=Tt.onInputChange,_n=Tt.onInputPaste,Dn=Tt.onInputKeyDown,En=Tt.onInputMouseDown,cn=Tt.onInputCompositionStart,On=Tt.onInputCompositionEnd,dr=Tt.onInputBlur,Rr=ee.useRef(null),zr=(0,ee.useState)(0),Kr=(0,ye.Z)(zr,2),Vr=Kr[0],Wr=Kr[1],Tr=(0,ee.useState)(!1),Qr=(0,ye.Z)(Tr,2),yn=Qr[0],Sn=Qr[1],$r="".concat(Xt,"-selection"),Cn=Yt||Gt==="multiple"&&gr===!1||Gt==="tags"?rr:"",pn=Gt==="tags"||Gt==="multiple"&&gr===!1||Sr&&(Yt||yn);rt(function(){Wr(Rr.current.scrollWidth)},[Cn]);var bn=function(zt,pr,kr,Gr,Xr){return ee.createElement("span",{title:nt(zt),className:x()("".concat($r,"-item"),(0,y.Z)({},"".concat($r,"-item-disabled"),kr))},ee.createElement("span",{className:"".concat($r,"-item-content")},pr),Gr&&ee.createElement(he,{className:"".concat($r,"-item-remove"),onMouseDown:Je,onClick:Xr,customizeIcon:Ur},"\xD7"))},Yr=function(zt,pr,kr,Gr,Xr,dn){var mn=function(jn){Je(jn),Tn(!Yt)};return ee.createElement("span",{onMouseDown:mn},nn({label:pr,value:zt,disabled:kr,closable:Gr,onClose:Xr,isMaxTag:!!dn}))},wn=function(zt){var pr=zt.disabled,kr=zt.label,Gr=zt.value,Xr=!br&&!pr,dn=kr;if(typeof un=="number"&&(typeof kr=="string"||typeof kr=="number")){var mn=String(dn);mn.length>un&&(dn="".concat(mn.slice(0,un),"..."))}var on=function(kn){kn&&kn.stopPropagation(),Mn(zt)};return typeof nn=="function"?Yr(Gr,dn,pr,Xr,on):bn(zt,dn,pr,Xr,on)},tn=function(zt){if(!Dt.length)return null;var pr=typeof gn=="function"?gn(zt):gn;return typeof nn=="function"?Yr(void 0,pr,!1,!1,void 0,!0):bn({title:pr},pr,!1)},fr=ee.createElement("div",{className:"".concat($r,"-search"),style:{width:Vr},onFocus:function(){Sn(!0)},onBlur:function(){Sn(!1)}},ee.createElement(He,{ref:Mr,open:Yt,prefixCls:Xt,id:ar,inputElement:null,disabled:br,autoFocus:ir,autoComplete:ur,editable:pn,activeDescendantId:xr,value:Cn,onKeyDown:Dn,onMouseDown:En,onChange:xn,onPaste:_n,onCompositionStart:cn,onCompositionEnd:On,onBlur:dr,tabIndex:Fr,attrs:(0,be.Z)(Tt,!0)}),ee.createElement("span",{ref:Rr,className:"".concat($r,"-search-mirror"),"aria-hidden":!0},Cn,"\xA0")),Cr=ee.createElement(xe.Z,{prefixCls:"".concat($r,"-overflow"),data:Dt,renderItem:wn,renderRest:tn,suffix:fr,itemKey:Xe,maxCount:en});return ee.createElement("span",{className:"".concat($r,"-wrap")},Cr,!Dt.length&&!Cn&&ee.createElement("span",{className:"".concat($r,"-placeholder")},Pt))},at=Ve,Qe=function(Tt){var ar=Tt.inputElement,Xt=Tt.prefixCls,Dt=Tt.id,Yt=Tt.inputRef,rr=Tt.disabled,gr=Tt.autoFocus,Mr=Tt.autoComplete,Pt=Tt.activeDescendantId,br=Tt.mode,Gt=Tt.open,Sr=Tt.values,ir=Tt.placeholder,ur=Tt.tabIndex,xr=Tt.showSearch,Fr=Tt.searchValue,Ur=Tt.activeValue,en=Tt.maxLength,un=Tt.onInputKeyDown,ln=Tt.onInputMouseDown,gn=Tt.onInputChange,nn=Tt.onInputPaste,Tn=Tt.onInputCompositionStart,Mn=Tt.onInputCompositionEnd,xn=Tt.onInputBlur,_n=Tt.title,Dn=ee.useState(!1),En=(0,ye.Z)(Dn,2),cn=En[0],On=En[1],dr=br==="combobox",Rr=dr||xr,zr=Sr[0],Kr=Fr||"";dr&&Ur&&!cn&&(Kr=Ur),ee.useEffect(function(){dr&&On(!1)},[dr,Ur]);var Vr=br!=="combobox"&&!Gt&&!xr?!1:!!Kr,Wr=_n===void 0?nt(zr):_n,Tr=ee.useMemo(function(){return zr?null:ee.createElement("span",{className:"".concat(Xt,"-selection-placeholder"),style:Vr?{visibility:"hidden"}:void 0},ir)},[zr,Vr,ir,Xt]);return ee.createElement("span",{className:"".concat(Xt,"-selection-wrap")},ee.createElement("span",{className:"".concat(Xt,"-selection-search")},ee.createElement(He,{ref:Yt,prefixCls:Xt,id:Dt,open:Gt,inputElement:ar,disabled:rr,autoFocus:gr,autoComplete:Mr,editable:Rr,activeDescendantId:Pt,value:Kr,onKeyDown:un,onMouseDown:ln,onChange:function(yn){On(!0),gn(yn)},onPaste:nn,onCompositionStart:Tn,onCompositionEnd:Mn,onBlur:xn,tabIndex:ur,attrs:(0,be.Z)(Tt,!0),maxLength:dr?en:void 0})),!dr&&zr?ee.createElement("span",{className:"".concat(Xt,"-selection-item"),title:Wr,style:Vr?{visibility:"hidden"}:void 0},zr.label):null,Tr)},ut=Qe,st=function(Tt,ar){var Xt=(0,ee.useRef)(null),Dt=(0,ee.useRef)(!1),Yt=Tt.prefixCls,rr=Tt.open,gr=Tt.mode,Mr=Tt.showSearch,Pt=Tt.tokenWithEnter,br=Tt.disabled,Gt=Tt.prefix,Sr=Tt.autoClearSearchValue,ir=Tt.onSearch,ur=Tt.onSearchSubmit,xr=Tt.onToggleOpen,Fr=Tt.onInputKeyDown,Ur=Tt.onInputBlur,en=Tt.domRef;ee.useImperativeHandle(ar,function(){return{focus:function(Wr){Xt.current.focus(Wr)},blur:function(){Xt.current.blur()}}});var un=ke(0),ln=(0,ye.Z)(un,2),gn=ln[0],nn=ln[1],Tn=function(Wr){var Tr=Wr.which,Qr=Xt.current instanceof HTMLTextAreaElement;!Qr&&rr&&(Tr===Pe.Z.UP||Tr===Pe.Z.DOWN)&&Wr.preventDefault(),Fr&&Fr(Wr),Tr===Pe.Z.ENTER&&gr==="tags"&&!Dt.current&&!rr&&(ur==null||ur(Wr.target.value)),!(Qr&&!rr&&~[Pe.Z.UP,Pe.Z.DOWN,Pe.Z.LEFT,Pe.Z.RIGHT].indexOf(Tr))&&_e(Tr)&&xr(!0)},Mn=function(){nn(!0)},xn=(0,ee.useRef)(null),_n=function(Wr){ir(Wr,!0,Dt.current)!==!1&&xr(!0)},Dn=function(){Dt.current=!0},En=function(Wr){Dt.current=!1,gr!=="combobox"&&_n(Wr.target.value)},cn=function(Wr){var Tr=Wr.target.value;if(Pt&&xn.current&&/[\r\n]/.test(xn.current)){var Qr=xn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Tr=Tr.replace(Qr,xn.current)}xn.current=null,_n(Tr)},On=function(Wr){var Tr=Wr.clipboardData,Qr=Tr==null?void 0:Tr.getData("text");xn.current=Qr||""},dr=function(Wr){var Tr=Wr.target;if(Tr!==Xt.current){var Qr=document.body.style.msTouchAction!==void 0;Qr?setTimeout(function(){Xt.current.focus()}):Xt.current.focus()}},Rr=function(Wr){var Tr=gn();Wr.target!==Xt.current&&!Tr&&!(gr==="combobox"&&br)&&Wr.preventDefault(),(gr!=="combobox"&&(!Mr||!Tr)||!rr)&&(rr&&Sr!==!1&&ir("",!0,!1),xr())},zr={inputRef:Xt,onInputKeyDown:Tn,onInputMouseDown:Mn,onInputChange:cn,onInputPaste:On,onInputCompositionStart:Dn,onInputCompositionEnd:En,onInputBlur:Ur},Kr=gr==="multiple"||gr==="tags"?ee.createElement(at,(0,Ze.Z)({},Tt,zr)):ee.createElement(ut,(0,Ze.Z)({},Tt,zr));return ee.createElement("div",{ref:en,className:"".concat(Yt,"-selector"),onClick:dr,onMouseDown:Rr},Gt&&ee.createElement("div",{className:"".concat(Yt,"-prefix")},Gt),Kr)},$e=ee.forwardRef(st),Ne=$e,je=ze(65030),ne=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ce=function(Tt){var ar=Tt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ar,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ar,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ar,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ar,adjustY:1},htmlRegion:"scroll"}}},Ie=function(Tt,ar){var Xt=Tt.prefixCls,Dt=Tt.disabled,Yt=Tt.visible,rr=Tt.children,gr=Tt.popupElement,Mr=Tt.animation,Pt=Tt.transitionName,br=Tt.dropdownStyle,Gt=Tt.dropdownClassName,Sr=Tt.direction,ir=Sr===void 0?"ltr":Sr,ur=Tt.placement,xr=Tt.builtinPlacements,Fr=Tt.dropdownMatchSelectWidth,Ur=Tt.dropdownRender,en=Tt.dropdownAlign,un=Tt.getPopupContainer,ln=Tt.empty,gn=Tt.getTriggerDOMNode,nn=Tt.onPopupVisibleChange,Tn=Tt.onPopupMouseEnter,Mn=(0,E.Z)(Tt,ne),xn="".concat(Xt,"-dropdown"),_n=gr;Ur&&(_n=Ur(gr));var Dn=ee.useMemo(function(){return xr||ce(Fr)},[xr,Fr]),En=Mr?"".concat(xn,"-").concat(Mr):Pt,cn=typeof Fr=="number",On=ee.useMemo(function(){return cn?null:Fr===!1?"minWidth":"width"},[Fr,cn]),dr=br;cn&&(dr=(0,Se.Z)((0,Se.Z)({},dr),{},{width:Fr}));var Rr=ee.useRef(null);return ee.useImperativeHandle(ar,function(){return{getPopupElement:function(){var Kr;return(Kr=Rr.current)===null||Kr===void 0?void 0:Kr.popupElement}}}),ee.createElement(je.Z,(0,Ze.Z)({},Mn,{showAction:nn?["click"]:[],hideAction:nn?["click"]:[],popupPlacement:ur||(ir==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Dn,prefixCls:xn,popupTransitionName:En,popup:ee.createElement("div",{onMouseEnter:Tn},_n),ref:Rr,stretch:On,popupAlign:en,popupVisible:Yt,getPopupContainer:un,popupClassName:x()(Gt,(0,y.Z)({},"".concat(xn,"-empty"),ln)),popupStyle:dr,getTriggerDOMNode:gn,onPopupVisibleChange:nn}),rr)},Fe=ee.forwardRef(Ie),we=Fe,Ee=ze(40954);function Oe(Ct,Tt){var ar=Ct.key,Xt;return"value"in Ct&&(Xt=Ct.value),ar!=null?ar:Xt!==void 0?Xt:"rc-index-key-".concat(Tt)}function Ue(Ct){return typeof Ct!="undefined"&&!Number.isNaN(Ct)}function tt(Ct,Tt){var ar=Ct||{},Xt=ar.label,Dt=ar.value,Yt=ar.options,rr=ar.groupLabel,gr=Xt||(Tt?"children":"label");return{label:gr,value:Dt||"value",options:Yt||"options",groupLabel:rr||gr}}function Ge(Ct){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ar=Tt.fieldNames,Xt=Tt.childrenAsData,Dt=[],Yt=tt(ar,!1),rr=Yt.label,gr=Yt.value,Mr=Yt.options,Pt=Yt.groupLabel;function br(Gt,Sr){Array.isArray(Gt)&&Gt.forEach(function(ir){if(Sr||!(Mr in ir)){var ur=ir[gr];Dt.push({key:Oe(ir,Dt.length),groupOption:Sr,data:ir,label:ir[rr],value:ur})}else{var xr=ir[Pt];xr===void 0&&Xt&&(xr=ir.label),Dt.push({key:Oe(ir,Dt.length),group:!0,data:ir,label:xr}),br(ir[Mr],!0)}})}return br(Ct,!1),Dt}function ft(Ct){var Tt=(0,Se.Z)({},Ct);return"props"in Tt||Object.defineProperty(Tt,"props",{get:function(){return(0,se.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Tt}}),Tt}var ct=function(Tt,ar,Xt){if(!ar||!ar.length)return null;var Dt=!1,Yt=function gr(Mr,Pt){var br=(0,Ee.Z)(Pt),Gt=br[0],Sr=br.slice(1);if(!Gt)return[Mr];var ir=Mr.split(Gt);return Dt=Dt||ir.length>1,ir.reduce(function(ur,xr){return[].concat((0,yt.Z)(ur),(0,yt.Z)(gr(xr,Sr)))},[]).filter(Boolean)},rr=Yt(Tt,ar);return Dt?typeof Xt!="undefined"?rr.slice(0,Xt):rr:null},vt=ee.createContext(null),kt=vt;function xt(Ct){var Tt=Ct.visible,ar=Ct.values;if(!Tt)return null;var Xt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ar.slice(0,Xt).map(function(Dt){var Yt=Dt.label,rr=Dt.value;return["number","string"].includes((0,z.Z)(Yt))?Yt:rr}).join(", ")),ar.length>Xt?", ...":null)}var Et=["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"],gt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],pt=function(Tt){return Tt==="tags"||Tt==="multiple"},mt=ee.forwardRef(function(Ct,Tt){var ar,Xt=Ct.id,Dt=Ct.prefixCls,Yt=Ct.className,rr=Ct.showSearch,gr=Ct.tagRender,Mr=Ct.direction,Pt=Ct.omitDomProps,br=Ct.displayValues,Gt=Ct.onDisplayValuesChange,Sr=Ct.emptyOptions,ir=Ct.notFoundContent,ur=ir===void 0?"Not Found":ir,xr=Ct.onClear,Fr=Ct.mode,Ur=Ct.disabled,en=Ct.loading,un=Ct.getInputElement,ln=Ct.getRawInputElement,gn=Ct.open,nn=Ct.defaultOpen,Tn=Ct.onDropdownVisibleChange,Mn=Ct.activeValue,xn=Ct.onActiveValueChange,_n=Ct.activeDescendantId,Dn=Ct.searchValue,En=Ct.autoClearSearchValue,cn=Ct.onSearch,On=Ct.onSearchSplit,dr=Ct.tokenSeparators,Rr=Ct.allowClear,zr=Ct.prefix,Kr=Ct.suffixIcon,Vr=Ct.clearIcon,Wr=Ct.OptionList,Tr=Ct.animation,Qr=Ct.transitionName,yn=Ct.dropdownStyle,Sn=Ct.dropdownClassName,$r=Ct.dropdownMatchSelectWidth,Cn=Ct.dropdownRender,pn=Ct.dropdownAlign,bn=Ct.placement,Yr=Ct.builtinPlacements,wn=Ct.getPopupContainer,tn=Ct.showAction,fr=tn===void 0?[]:tn,Cr=Ct.onFocus,tr=Ct.onBlur,zt=Ct.onKeyUp,pr=Ct.onKeyDown,kr=Ct.onMouseDown,Gr=(0,E.Z)(Ct,Et),Xr=pt(Fr),dn=(rr!==void 0?rr:Xr)||Fr==="combobox",mn=(0,Se.Z)({},Gr);gt.forEach(function(An){delete mn[An]}),Pt==null||Pt.forEach(function(An){delete mn[An]});var on=ee.useState(!1),jn=(0,ye.Z)(on,2),kn=jn[0],Bn=jn[1];ee.useEffect(function(){Bn((0,re.Z)())},[]);var Xn=ee.useRef(null),Gn=ee.useRef(null),Hn=ee.useRef(null),ti=ee.useRef(null),Un=ee.useRef(null),li=ee.useRef(!1),Li=ve(),In=(0,ye.Z)(Li,3),bi=In[0],mi=In[1],Fi=In[2];ee.useImperativeHandle(Tt,function(){var An,hn;return{focus:(An=ti.current)===null||An===void 0?void 0:An.focus,blur:(hn=ti.current)===null||hn===void 0?void 0:hn.blur,scrollTo:function(di){var Jn;return(Jn=Un.current)===null||Jn===void 0?void 0:Jn.scrollTo(di)},nativeElement:Xn.current||Gn.current}});var wi=ee.useMemo(function(){var An;if(Fr!=="combobox")return Dn;var hn=(An=br[0])===null||An===void 0?void 0:An.value;return typeof hn=="string"||typeof hn=="number"?String(hn):""},[Dn,Fr,br]),Wi=Fr==="combobox"&&typeof un=="function"&&un()||null,Ln=typeof ln=="function"&&ln(),Pi=(0,ae.x1)(Gn,Ln==null||(ar=Ln.props)===null||ar===void 0?void 0:ar.ref),qi=ee.useState(!1),ea=(0,ye.Z)(qi,2),Ga=ea[0],Xi=ea[1];(0,te.Z)(function(){Xi(!0)},[]);var Kn=(0,oe.Z)(!1,{defaultValue:nn,value:gn}),ta=(0,ye.Z)(Kn,2),oa=ta[0],Ui=ta[1],$n=Ga?oa:!1,ya=!ur&&Sr;(Ur||ya&&$n&&Fr==="combobox")&&($n=!1);var sa=ya?!1:$n,qr=ee.useCallback(function(An){var hn=An!==void 0?An:!$n;Ur||(Ui(hn),$n!==hn&&(Tn==null||Tn(hn)))},[Ur,$n,Ui,Tn]),fn=ee.useMemo(function(){return(dr||[]).some(function(An){return[`
`,`\r
`].includes(An)})},[dr]),an=ee.useContext(kt)||{},sn=an.maxCount,Pn=an.rawValues,Fn=function(hn,ci,di){if(!(Xr&&Ue(sn)&&(Pn==null?void 0:Pn.size)>=sn)){var Jn=!0,ri=hn;xn==null||xn(null);var zi=ct(hn,dr,Ue(sn)?sn-Pn.size:void 0),Ni=di?null:zi;return Fr!=="combobox"&&Ni&&(ri="",On==null||On(Ni),qr(!1),Jn=!1),cn&&wi!==ri&&cn(ri,{source:ci?"typing":"effect"}),Jn}},Hi=function(hn){!hn||!hn.trim()||cn(hn,{source:"submit"})};ee.useEffect(function(){!$n&&!Xr&&Fr!=="combobox"&&Fn("",!1,!1)},[$n]),ee.useEffect(function(){oa&&Ur&&Ui(!1),Ur&&!li.current&&mi(!1)},[Ur]);var vi=ke(),ui=(0,ye.Z)(vi,2),Yn=ui[0],Ri=ui[1],Yi=ee.useRef(!1),Ti=function(hn){var ci=Yn(),di=hn.key,Jn=di==="Enter";if(Jn&&(Fr!=="combobox"&&hn.preventDefault(),$n||qr(!0)),Ri(!!wi),di==="Backspace"&&!ci&&Xr&&!wi&&br.length){for(var ri=(0,yt.Z)(br),zi=null,Ni=ri.length-1;Ni>=0;Ni-=1){var na=ri[Ni];if(!na.disabled){ri.splice(Ni,1),zi=na;break}}zi&&Gt(ri,{type:"remove",values:[zi]})}for(var _i=arguments.length,Di=new Array(_i>1?_i-1:0),Gi=1;Gi<_i;Gi++)Di[Gi-1]=arguments[Gi];if($n&&(!Jn||!Yi.current)){var ua;Jn&&(Yi.current=!0),(ua=Un.current)===null||ua===void 0||ua.onKeyDown.apply(ua,[hn].concat(Di))}pr==null||pr.apply(void 0,[hn].concat(Di))},Ji=function(hn){for(var ci=arguments.length,di=new Array(ci>1?ci-1:0),Jn=1;Jn<ci;Jn++)di[Jn-1]=arguments[Jn];if($n){var ri;(ri=Un.current)===null||ri===void 0||ri.onKeyUp.apply(ri,[hn].concat(di))}hn.key==="Enter"&&(Yi.current=!1),zt==null||zt.apply(void 0,[hn].concat(di))},ra=function(hn){var ci=br.filter(function(di){return di!==hn});Gt(ci,{type:"remove",values:[hn]})},Zi=function(){Yi.current=!1},_a=ee.useRef(!1),zo=function(){mi(!0),Ur||(Cr&&!_a.current&&Cr.apply(void 0,arguments),fr.includes("focus")&&qr(!0)),_a.current=!0},yo=function(){li.current=!0,mi(!1,function(){_a.current=!1,li.current=!1,qr(!1)}),!Ur&&(wi&&(Fr==="tags"?cn(wi,{source:"submit"}):Fr==="multiple"&&cn("",{source:"blur"})),tr&&tr.apply(void 0,arguments))},Qi=[];ee.useEffect(function(){return function(){Qi.forEach(function(An){return clearTimeout(An)}),Qi.splice(0,Qi.length)}},[]);var la=function(hn){var ci,di=hn.target,Jn=(ci=Hn.current)===null||ci===void 0?void 0:ci.getPopupElement();if(Jn&&Jn.contains(di)){var ri=setTimeout(function(){var _i=Qi.indexOf(ri);if(_i!==-1&&Qi.splice(_i,1),Fi(),!kn&&!Jn.contains(document.activeElement)){var Di;(Di=ti.current)===null||Di===void 0||Di.focus()}});Qi.push(ri)}for(var zi=arguments.length,Ni=new Array(zi>1?zi-1:0),na=1;na<zi;na++)Ni[na-1]=arguments[na];kr==null||kr.apply(void 0,[hn].concat(Ni))},Bi=ee.useState({}),bo=(0,ye.Z)(Bi,2),wo=bo[1];function Go(){wo({})}var xo;Ln&&(xo=function(hn){qr(hn)}),Te(function(){var An;return[Xn.current,(An=Hn.current)===null||An===void 0?void 0:An.getPopupElement()]},sa,qr,!!Ln);var Ko=ee.useMemo(function(){return(0,Se.Z)((0,Se.Z)({},Ct),{},{notFoundContent:ur,open:$n,triggerOpen:sa,id:Xt,showSearch:dn,multiple:Xr,toggleOpen:qr})},[Ct,ur,sa,$n,Xt,dn,Xr,qr]),Ka=!!Kr||en,Va;Ka&&(Va=ee.createElement(he,{className:x()("".concat(Dt,"-arrow"),(0,y.Z)({},"".concat(Dt,"-arrow-loading"),en)),customizeIcon:Kr,customizeIconProps:{loading:en,searchValue:wi,open:$n,focused:bi,showSearch:dn}}));var ba=function(){var hn;xr==null||xr(),(hn=ti.current)===null||hn===void 0||hn.focus(),Gt([],{type:"clear",values:br}),Fn("",!1,!1)},Xa=pe(Dt,ba,br,Rr,Vr,Ur,wi,Fr),Eo=Xa.allowClear,Ya=Xa.clearIcon,Da=ee.createElement(Wr,{ref:Un}),So=x()(Dt,Yt,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Dt,"-focused"),bi),"".concat(Dt,"-multiple"),Xr),"".concat(Dt,"-single"),!Xr),"".concat(Dt,"-allow-clear"),Rr),"".concat(Dt,"-show-arrow"),Ka),"".concat(Dt,"-disabled"),Ur),"".concat(Dt,"-loading"),en),"".concat(Dt,"-open"),$n),"".concat(Dt,"-customize-input"),Wi),"".concat(Dt,"-show-search"),dn)),Oa=ee.createElement(we,{ref:Hn,disabled:Ur,prefixCls:Dt,visible:sa,popupElement:Da,animation:Tr,transitionName:Qr,dropdownStyle:yn,dropdownClassName:Sn,direction:Mr,dropdownMatchSelectWidth:$r,dropdownRender:Cn,dropdownAlign:pn,placement:bn,builtinPlacements:Yr,getPopupContainer:wn,empty:Sr,getTriggerDOMNode:function(hn){return Gn.current||hn},onPopupVisibleChange:xo,onPopupMouseEnter:Go},Ln?ee.cloneElement(Ln,{ref:Pi}):ee.createElement(Ne,(0,Ze.Z)({},Ct,{domRef:Gn,prefixCls:Dt,inputElement:Wi,ref:ti,id:Xt,prefix:zr,showSearch:dn,autoClearSearchValue:En,mode:Fr,activeDescendantId:_n,tagRender:gr,values:br,open:$n,onToggleOpen:qr,activeValue:Mn,searchValue:wi,onSearch:Fn,onSearchSubmit:Hi,onRemove:ra,tokenWithEnter:fn,onInputBlur:Zi}))),xi;return Ln?xi=Oa:xi=ee.createElement("div",(0,Ze.Z)({className:So},mn,{ref:Xn,onMouseDown:la,onKeyDown:Ti,onKeyUp:Ji,onFocus:zo,onBlur:yo}),ee.createElement(xt,{visible:bi&&!$n,values:br}),Oa,Va,Eo&&Ya),ee.createElement(me.Provider,{value:Ko},xi)}),dt=mt,bt=function(){return null};bt.isSelectOptGroup=!0;var wt=bt,At=function(){return null};At.isSelectOption=!0;var jt=At,Zt=ze(80547),Wt=ze(2738),$t=ze(6790);function Er(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var vr=["disabled","title","children","style","className"];function Ht(Ct){return typeof Ct=="string"||typeof Ct=="number"}var er=function(Tt,ar){var Xt=fe(),Dt=Xt.prefixCls,Yt=Xt.id,rr=Xt.open,gr=Xt.multiple,Mr=Xt.mode,Pt=Xt.searchValue,br=Xt.toggleOpen,Gt=Xt.notFoundContent,Sr=Xt.onPopupScroll,ir=ee.useContext(kt),ur=ir.maxCount,xr=ir.flattenOptions,Fr=ir.onActiveValue,Ur=ir.defaultActiveFirstOption,en=ir.onSelect,un=ir.menuItemSelectedIcon,ln=ir.rawValues,gn=ir.fieldNames,nn=ir.virtual,Tn=ir.direction,Mn=ir.listHeight,xn=ir.listItemHeight,_n=ir.optionRender,Dn="".concat(Dt,"-item"),En=(0,Zt.Z)(function(){return xr},[rr,xr],function(tn,fr){return fr[0]&&tn[1]!==fr[1]}),cn=ee.useRef(null),On=ee.useMemo(function(){return gr&&Ue(ur)&&(ln==null?void 0:ln.size)>=ur},[gr,ur,ln==null?void 0:ln.size]),dr=function(fr){fr.preventDefault()},Rr=function(fr){var Cr;(Cr=cn.current)===null||Cr===void 0||Cr.scrollTo(typeof fr=="number"?{index:fr}:fr)},zr=ee.useCallback(function(tn){return Mr==="combobox"?!1:ln.has(tn)},[Mr,(0,yt.Z)(ln).toString(),ln.size]),Kr=function(fr){for(var Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,tr=En.length,zt=0;zt<tr;zt+=1){var pr=(fr+zt*Cr+tr)%tr,kr=En[pr]||{},Gr=kr.group,Xr=kr.data;if(!Gr&&!(Xr!=null&&Xr.disabled)&&(zr(Xr.value)||!On))return pr}return-1},Vr=ee.useState(function(){return Kr(0)}),Wr=(0,ye.Z)(Vr,2),Tr=Wr[0],Qr=Wr[1],yn=function(fr){var Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Qr(fr);var tr={source:Cr?"keyboard":"mouse"},zt=En[fr];if(!zt){Fr(null,-1,tr);return}Fr(zt.value,fr,tr)};(0,ee.useEffect)(function(){yn(Ur!==!1?Kr(0):-1)},[En.length,Pt]);var Sn=ee.useCallback(function(tn){return Mr==="combobox"?String(tn).toLowerCase()===Pt.toLowerCase():ln.has(tn)},[Mr,Pt,(0,yt.Z)(ln).toString(),ln.size]);(0,ee.useEffect)(function(){var tn=setTimeout(function(){if(!gr&&rr&&ln.size===1){var Cr=Array.from(ln)[0],tr=En.findIndex(function(zt){var pr=zt.data;return Pt?String(pr.value).startsWith(Pt):pr.value===Cr});tr!==-1&&(yn(tr),Rr(tr))}});if(rr){var fr;(fr=cn.current)===null||fr===void 0||fr.scrollTo(void 0)}return function(){return clearTimeout(tn)}},[rr,Pt]);var $r=function(fr){fr!==void 0&&en(fr,{selected:!ln.has(fr)}),gr||br(!1)};if(ee.useImperativeHandle(ar,function(){return{onKeyDown:function(fr){var Cr=fr.which,tr=fr.ctrlKey;switch(Cr){case Pe.Z.N:case Pe.Z.P:case Pe.Z.UP:case Pe.Z.DOWN:{var zt=0;if(Cr===Pe.Z.UP?zt=-1:Cr===Pe.Z.DOWN?zt=1:Er()&&tr&&(Cr===Pe.Z.N?zt=1:Cr===Pe.Z.P&&(zt=-1)),zt!==0){var pr=Kr(Tr+zt,zt);Rr(pr),yn(pr,!0)}break}case Pe.Z.TAB:case Pe.Z.ENTER:{var kr,Gr=En[Tr];Gr&&!(Gr!=null&&(kr=Gr.data)!==null&&kr!==void 0&&kr.disabled)&&!On?$r(Gr.value):$r(void 0),rr&&fr.preventDefault();break}case Pe.Z.ESC:br(!1),rr&&fr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(fr){Rr(fr)}}}),En.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(Yt,"_list"),className:"".concat(Dn,"-empty"),onMouseDown:dr},Gt);var Cn=Object.keys(gn).map(function(tn){return gn[tn]}),pn=function(fr){return fr.label};function bn(tn,fr){var Cr=tn.group;return{role:Cr?"presentation":"option",id:"".concat(Yt,"_list_").concat(fr)}}var Yr=function(fr){var Cr=En[fr];if(!Cr)return null;var tr=Cr.data||{},zt=tr.value,pr=Cr.group,kr=(0,be.Z)(tr,!0),Gr=pn(Cr);return Cr?ee.createElement("div",(0,Ze.Z)({"aria-label":typeof Gr=="string"&&!pr?Gr:null},kr,{key:fr},bn(Cr,fr),{"aria-selected":Sn(zt)}),zt):null},wn={role:"listbox",id:"".concat(Yt,"_list")};return ee.createElement(ee.Fragment,null,nn&&ee.createElement("div",(0,Ze.Z)({},wn,{style:{height:0,width:0,overflow:"hidden"}}),Yr(Tr-1),Yr(Tr),Yr(Tr+1)),ee.createElement($t.Z,{itemKey:"key",ref:cn,data:En,height:Mn,itemHeight:xn,fullHeight:!1,onMouseDown:dr,onScroll:Sr,virtual:nn,direction:Tn,innerProps:nn?null:wn},function(tn,fr){var Cr=tn.group,tr=tn.groupOption,zt=tn.data,pr=tn.label,kr=tn.value,Gr=zt.key;if(Cr){var Xr,dn=(Xr=zt.title)!==null&&Xr!==void 0?Xr:Ht(pr)?pr.toString():void 0;return ee.createElement("div",{className:x()(Dn,"".concat(Dn,"-group"),zt.className),title:dn},pr!==void 0?pr:Gr)}var mn=zt.disabled,on=zt.title,jn=zt.children,kn=zt.style,Bn=zt.className,Xn=(0,E.Z)(zt,vr),Gn=(0,Wt.Z)(Xn,Cn),Hn=zr(kr),ti=mn||!Hn&&On,Un="".concat(Dn,"-option"),li=x()(Dn,Un,Bn,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Un,"-grouped"),tr),"".concat(Un,"-active"),Tr===fr&&!ti),"".concat(Un,"-disabled"),ti),"".concat(Un,"-selected"),Hn)),Li=pn(tn),In=!un||typeof un=="function"||Hn,bi=typeof Li=="number"?Li:Li||kr,mi=Ht(bi)?bi.toString():void 0;return on!==void 0&&(mi=on),ee.createElement("div",(0,Ze.Z)({},(0,be.Z)(Gn),nn?{}:bn(tn,fr),{"aria-selected":Sn(kr),className:li,title:mi,onMouseMove:function(){Tr===fr||ti||yn(fr)},onClick:function(){ti||$r(kr)},style:kn}),ee.createElement("div",{className:"".concat(Un,"-content")},typeof _n=="function"?_n(tn,{index:fr}):bi),ee.isValidElement(un)||Hn,In&&ee.createElement(he,{className:"".concat(Dn,"-option-state"),customizeIcon:un,customizeIconProps:{value:kr,disabled:ti,isSelected:Hn}},Hn?"\u2713":null))}))},or=ee.forwardRef(er),hr=or,Qt=function(Ct,Tt){var ar=ee.useRef({values:new Map,options:new Map}),Xt=ee.useMemo(function(){var Yt=ar.current,rr=Yt.values,gr=Yt.options,Mr=Ct.map(function(Gt){if(Gt.label===void 0){var Sr;return(0,Se.Z)((0,Se.Z)({},Gt),{},{label:(Sr=rr.get(Gt.value))===null||Sr===void 0?void 0:Sr.label})}return Gt}),Pt=new Map,br=new Map;return Mr.forEach(function(Gt){Pt.set(Gt.value,Gt),br.set(Gt.value,Tt.get(Gt.value)||gr.get(Gt.value))}),ar.current.values=Pt,ar.current.options=br,Mr},[Ct,Tt]),Dt=ee.useCallback(function(Yt){return Tt.get(Yt)||ar.current.options.get(Yt)},[Tt]);return[Xt,Dt]};function sr(Ct,Tt){return Ke(Ct).join("").toUpperCase().includes(Tt)}var Ir=function(Ct,Tt,ar,Xt,Dt){return ee.useMemo(function(){if(!ar||Xt===!1)return Ct;var Yt=Tt.options,rr=Tt.label,gr=Tt.value,Mr=[],Pt=typeof Xt=="function",br=ar.toUpperCase(),Gt=Pt?Xt:function(ir,ur){return Dt?sr(ur[Dt],br):ur[Yt]?sr(ur[rr!=="children"?rr:"label"],br):sr(ur[gr],br)},Sr=Pt?function(ir){return ft(ir)}:function(ir){return ir};return Ct.forEach(function(ir){if(ir[Yt]){var ur=Gt(ar,Sr(ir));if(ur)Mr.push(ir);else{var xr=ir[Yt].filter(function(Fr){return Gt(ar,Sr(Fr))});xr.length&&Mr.push((0,Se.Z)((0,Se.Z)({},ir),{},(0,y.Z)({},Yt,xr)))}return}Gt(ar,Sr(ir))&&Mr.push(ir)}),Mr},[Ct,Xt,Dt,ar,Tt])},Jt=ze(6551),Kt=ze(11592),It=["children","value"],Rt=["children"];function Bt(Ct){var Tt=Ct,ar=Tt.key,Xt=Tt.props,Dt=Xt.children,Yt=Xt.value,rr=(0,E.Z)(Xt,It);return(0,Se.Z)({key:ar,value:Yt!==void 0?Yt:ar,children:Dt},rr)}function Vt(Ct){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Kt.Z)(Ct).map(function(ar,Xt){if(!ee.isValidElement(ar)||!ar.type)return null;var Dt=ar,Yt=Dt.type.isSelectOptGroup,rr=Dt.key,gr=Dt.props,Mr=gr.children,Pt=(0,E.Z)(gr,Rt);return Tt||!Yt?Bt(ar):(0,Se.Z)((0,Se.Z)({key:"__RC_SELECT_GRP__".concat(rr===null?Xt:rr,"__"),label:rr},Pt),{},{options:Vt(Mr)})}).filter(function(ar){return ar})}var lr=function(Tt,ar,Xt,Dt,Yt){return ee.useMemo(function(){var rr=Tt,gr=!Tt;gr&&(rr=Vt(ar));var Mr=new Map,Pt=new Map,br=function(ir,ur,xr){xr&&typeof xr=="string"&&ir.set(ur[xr],ur)},Gt=function Sr(ir){for(var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xr=0;xr<ir.length;xr+=1){var Fr=ir[xr];!Fr[Xt.options]||ur?(Mr.set(Fr[Xt.value],Fr),br(Pt,Fr,Xt.label),br(Pt,Fr,Dt),br(Pt,Fr,Yt)):Sr(Fr[Xt.options],!0)}};return Gt(rr),{options:rr,valueOptions:Mr,labelOptions:Pt}},[Tt,ar,Xt,Dt,Yt])},wr=lr;function Ut(Ct){var Tt=ee.useRef();Tt.current=Ct;var ar=ee.useCallback(function(){return Tt.current.apply(Tt,arguments)},[]);return ar}function Or(Ct){var Tt=Ct.mode,ar=Ct.options,Xt=Ct.children,Dt=Ct.backfill,Yt=Ct.allowClear,rr=Ct.placeholder,gr=Ct.getInputElement,Mr=Ct.showSearch,Pt=Ct.onSearch,br=Ct.defaultOpen,Gt=Ct.autoFocus,Sr=Ct.labelInValue,ir=Ct.value,ur=Ct.inputValue,xr=Ct.optionLabelProp,Fr=isMultiple(Tt),Ur=Mr!==void 0?Mr:Fr||Tt==="combobox",en=ar||convertChildrenToData(Xt);if(warning(Tt!=="tags"||en.every(function(nn){return!nn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Tt==="tags"||Tt==="combobox"){var un=en.some(function(nn){return nn.options?nn.options.some(function(Tn){return typeof("value"in Tn?Tn.value:Tn.key)=="number"}):typeof("value"in nn?nn.value:nn.key)=="number"});warning(!un,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Tt!=="combobox"||!xr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Tt==="combobox"||!Dt,"`backfill` only works with `combobox` mode."),warning(Tt==="combobox"||!gr,"`getInputElement` only work with `combobox` mode."),noteOnce(Tt!=="combobox"||!gr||!Yt||!rr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Pt&&!Ur&&Tt!=="combobox"&&Tt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!br||Gt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ir!=null){var ln=toArray(ir);warning(!Sr||ln.every(function(nn){return _typeof(nn)==="object"&&("key"in nn||"value"in nn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Fr||Array.isArray(ir),"`value` should be array when `mode` is `multiple` or `tags`")}if(Xt){var gn=null;toNodeArray(Xt).some(function(nn){if(!React.isValidElement(nn)||!nn.type)return!1;var Tn=nn,Mn=Tn.type;if(Mn.isSelectOption)return!1;if(Mn.isSelectOptGroup){var xn=toNodeArray(nn.props.children).every(function(_n){return!React.isValidElement(_n)||!nn.type||_n.type.isSelectOption?!0:(gn=_n.type,!1)});return!xn}return gn=Mn,!0}),gn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(gn.displayName||gn.name||gn,"`.")),warning(ur===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _r(Ct,Tt){if(Ct){var ar=function Xt(Dt){for(var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rr=0;rr<Dt.length;rr++){var gr=Dt[rr];if(gr[Tt==null?void 0:Tt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Yt&&Array.isArray(gr[Tt==null?void 0:Tt.options])&&Xt(gr[Tt==null?void 0:Tt.options],!0))break}};ar(Ct)}}var Pr=null,Dr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],yr=["inputValue"];function qt(Ct){return!Ct||(0,z.Z)(Ct)!=="object"}var Mt=ee.forwardRef(function(Ct,Tt){var ar=Ct.id,Xt=Ct.mode,Dt=Ct.prefixCls,Yt=Dt===void 0?"rc-select":Dt,rr=Ct.backfill,gr=Ct.fieldNames,Mr=Ct.inputValue,Pt=Ct.searchValue,br=Ct.onSearch,Gt=Ct.autoClearSearchValue,Sr=Gt===void 0?!0:Gt,ir=Ct.onSelect,ur=Ct.onDeselect,xr=Ct.dropdownMatchSelectWidth,Fr=xr===void 0?!0:xr,Ur=Ct.filterOption,en=Ct.filterSort,un=Ct.optionFilterProp,ln=Ct.optionLabelProp,gn=Ct.options,nn=Ct.optionRender,Tn=Ct.children,Mn=Ct.defaultActiveFirstOption,xn=Ct.menuItemSelectedIcon,_n=Ct.virtual,Dn=Ct.direction,En=Ct.listHeight,cn=En===void 0?200:En,On=Ct.listItemHeight,dr=On===void 0?20:On,Rr=Ct.labelRender,zr=Ct.value,Kr=Ct.defaultValue,Vr=Ct.labelInValue,Wr=Ct.onChange,Tr=Ct.maxCount,Qr=(0,E.Z)(Ct,Dr),yn=(0,Jt.ZP)(ar),Sn=pt(Xt),$r=!!(!gn&&Tn),Cn=ee.useMemo(function(){return Ur===void 0&&Xt==="combobox"?!1:Ur},[Ur,Xt]),pn=ee.useMemo(function(){return tt(gr,$r)},[JSON.stringify(gr),$r]),bn=(0,oe.Z)("",{value:Pt!==void 0?Pt:Mr,postState:function(fn){return fn||""}}),Yr=(0,ye.Z)(bn,2),wn=Yr[0],tn=Yr[1],fr=wr(gn,Tn,pn,un,ln),Cr=fr.valueOptions,tr=fr.labelOptions,zt=fr.options,pr=ee.useCallback(function(qr){var fn=Ke(qr);return fn.map(function(an){var sn,Pn,Fn,Hi,vi;if(qt(an))sn=an;else{var ui;Fn=an.key,Pn=an.label,sn=(ui=an.value)!==null&&ui!==void 0?ui:Fn}var Yn=Cr.get(sn);if(Yn){var Ri;if(Pn===void 0&&(Pn=Yn==null?void 0:Yn[ln||pn.label]),Fn===void 0&&(Fn=(Ri=Yn==null?void 0:Yn.key)!==null&&Ri!==void 0?Ri:sn),Hi=Yn==null?void 0:Yn.disabled,vi=Yn==null?void 0:Yn.title,0)var Yi}return{label:Pn,value:sn,key:Fn,disabled:Hi,title:vi}})},[pn,ln,Cr]),kr=(0,oe.Z)(Kr,{value:zr}),Gr=(0,ye.Z)(kr,2),Xr=Gr[0],dn=Gr[1],mn=ee.useMemo(function(){var qr,fn=Sn&&Xr===null?[]:Xr,an=pr(fn);return Xt==="combobox"&&We((qr=an[0])===null||qr===void 0?void 0:qr.value)?[]:an},[Xr,pr,Xt,Sn]),on=Qt(mn,Cr),jn=(0,ye.Z)(on,2),kn=jn[0],Bn=jn[1],Xn=ee.useMemo(function(){if(!Xt&&kn.length===1){var qr=kn[0];if(qr.value===null&&(qr.label===null||qr.label===void 0))return[]}return kn.map(function(fn){var an;return(0,Se.Z)((0,Se.Z)({},fn),{},{label:(an=typeof Rr=="function"?Rr(fn):fn.label)!==null&&an!==void 0?an:fn.value})})},[Xt,kn,Rr]),Gn=ee.useMemo(function(){return new Set(kn.map(function(qr){return qr.value}))},[kn]);ee.useEffect(function(){if(Xt==="combobox"){var qr,fn=(qr=kn[0])===null||qr===void 0?void 0:qr.value;tn(Re(fn)?String(fn):"")}},[kn]);var Hn=Ut(function(qr,fn){var an=fn!=null?fn:qr;return(0,y.Z)((0,y.Z)({},pn.value,qr),pn.label,an)}),ti=ee.useMemo(function(){if(Xt!=="tags")return zt;var qr=(0,yt.Z)(zt),fn=function(sn){return Cr.has(sn)};return(0,yt.Z)(kn).sort(function(an,sn){return an.value<sn.value?-1:1}).forEach(function(an){var sn=an.value;fn(sn)||qr.push(Hn(sn,an.label))}),qr},[Hn,zt,Cr,kn,Xt]),Un=Ir(ti,pn,wn,Cn,un),li=ee.useMemo(function(){return Xt!=="tags"||!wn||Un.some(function(qr){return qr[un||"value"]===wn})||Un.some(function(qr){return qr[pn.value]===wn})?Un:[Hn(wn)].concat((0,yt.Z)(Un))},[Hn,un,Xt,Un,wn,pn]),Li=function qr(fn){var an=(0,yt.Z)(fn).sort(function(sn,Pn){return en(sn,Pn,{searchValue:wn})});return an.map(function(sn){return Array.isArray(sn.options)?(0,Se.Z)((0,Se.Z)({},sn),{},{options:sn.options.length>0?qr(sn.options):sn.options}):sn})},In=ee.useMemo(function(){return en?Li(li):li},[li,en,wn]),bi=ee.useMemo(function(){return Ge(In,{fieldNames:pn,childrenAsData:$r})},[In,pn,$r]),mi=function(fn){var an=pr(fn);if(dn(an),Wr&&(an.length!==kn.length||an.some(function(Fn,Hi){var vi;return((vi=kn[Hi])===null||vi===void 0?void 0:vi.value)!==(Fn==null?void 0:Fn.value)}))){var sn=Vr?an:an.map(function(Fn){return Fn.value}),Pn=an.map(function(Fn){return ft(Bn(Fn.value))});Wr(Sn?sn:sn[0],Sn?Pn:Pn[0])}},Fi=ee.useState(null),wi=(0,ye.Z)(Fi,2),Wi=wi[0],Ln=wi[1],Pi=ee.useState(0),qi=(0,ye.Z)(Pi,2),ea=qi[0],Ga=qi[1],Xi=Mn!==void 0?Mn:Xt!=="combobox",Kn=ee.useCallback(function(qr,fn){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},sn=an.source,Pn=sn===void 0?"keyboard":sn;Ga(fn),rr&&Xt==="combobox"&&qr!==null&&Pn==="keyboard"&&Ln(String(qr))},[rr,Xt]),ta=function(fn,an,sn){var Pn=function(){var ra,Zi=Bn(fn);return[Vr?{label:Zi==null?void 0:Zi[pn.label],value:fn,key:(ra=Zi==null?void 0:Zi.key)!==null&&ra!==void 0?ra:fn}:fn,ft(Zi)]};if(an&&ir){var Fn=Pn(),Hi=(0,ye.Z)(Fn,2),vi=Hi[0],ui=Hi[1];ir(vi,ui)}else if(!an&&ur&&sn!=="clear"){var Yn=Pn(),Ri=(0,ye.Z)(Yn,2),Yi=Ri[0],Ti=Ri[1];ur(Yi,Ti)}},oa=Ut(function(qr,fn){var an,sn=Sn?fn.selected:!0;sn?an=Sn?[].concat((0,yt.Z)(kn),[qr]):[qr]:an=kn.filter(function(Pn){return Pn.value!==qr}),mi(an),ta(qr,sn),Xt==="combobox"?Ln(""):(!pt||Sr)&&(tn(""),Ln(""))}),Ui=function(fn,an){mi(fn);var sn=an.type,Pn=an.values;(sn==="remove"||sn==="clear")&&Pn.forEach(function(Fn){ta(Fn.value,!1,sn)})},$n=function(fn,an){if(tn(fn),Ln(null),an.source==="submit"){var sn=(fn||"").trim();if(sn){var Pn=Array.from(new Set([].concat((0,yt.Z)(Gn),[sn])));mi(Pn),ta(sn,!0),tn("")}return}an.source!=="blur"&&(Xt==="combobox"&&mi(fn),br==null||br(fn))},ya=function(fn){var an=fn;Xt!=="tags"&&(an=fn.map(function(Pn){var Fn=tr.get(Pn);return Fn==null?void 0:Fn.value}).filter(function(Pn){return Pn!==void 0}));var sn=Array.from(new Set([].concat((0,yt.Z)(Gn),(0,yt.Z)(an))));mi(sn),sn.forEach(function(Pn){ta(Pn,!0)})},sa=ee.useMemo(function(){var qr=_n!==!1&&Fr!==!1;return(0,Se.Z)((0,Se.Z)({},fr),{},{flattenOptions:bi,onActiveValue:Kn,defaultActiveFirstOption:Xi,onSelect:oa,menuItemSelectedIcon:xn,rawValues:Gn,fieldNames:pn,virtual:qr,direction:Dn,listHeight:cn,listItemHeight:dr,childrenAsData:$r,maxCount:Tr,optionRender:nn})},[Tr,fr,bi,Kn,Xi,oa,xn,Gn,pn,_n,Fr,Dn,cn,dr,$r,nn]);return ee.createElement(kt.Provider,{value:sa},ee.createElement(dt,(0,Ze.Z)({},Qr,{id:yn,prefixCls:Yt,ref:Tt,omitDomProps:yr,mode:Xt,displayValues:Xn,onDisplayValuesChange:Ui,direction:Dn,searchValue:wn,onSearch:$n,autoClearSearchValue:Sr,onSearchSplit:ya,dropdownMatchSelectWidth:Fr,OptionList:hr,emptyOptions:!bi.length,activeValue:Wi,activeDescendantId:"".concat(yn,"_list_").concat(ea)})))}),cr=Mt;cr.Option=jt,cr.OptGroup=wt;var Ar=cr,Br=Ar},63158:function(Lt,Ot,ze){"use strict";var Ze=ze(32855),yt=ze(74430),y=ze(11913),Se=ze(43079),ye=ze(59301),E=ze(92310),z=ze.n(E),oe=ze(18929),se=ze(10228),ee=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],de=ye.forwardRef(function(x,te){var re,ae=x.prefixCls,ue=ae===void 0?"rc-switch":ae,he=x.className,pe=x.checked,me=x.defaultChecked,fe=x.disabled,ve=x.loadingIcon,ke=x.checkedChildren,Te=x.unCheckedChildren,Pe=x.onClick,_e=x.onChange,be=x.onKeyDown,xe=(0,Se.Z)(x,ee),Ae=(0,oe.Z)(!1,{value:pe,defaultValue:me}),Me=(0,y.Z)(Ae,2),Be=Me[0],Ce=Me[1];function De(it,Re){var We=Be;return fe||(We=it,Ce(We),_e==null||_e(We,Re)),We}function He(it){it.which===se.Z.LEFT?De(!1,it):it.which===se.Z.RIGHT&&De(!0,it),be==null||be(it)}function Ke(it){var Re=De(!Be,it);Pe==null||Pe(Re,it)}var Ye=z()(ue,he,(re={},(0,yt.Z)(re,"".concat(ue,"-checked"),Be),(0,yt.Z)(re,"".concat(ue,"-disabled"),fe),re));return ye.createElement("button",(0,Ze.Z)({},xe,{type:"button",role:"switch","aria-checked":Be,disabled:fe,className:Ye,ref:te,onKeyDown:He,onClick:Ke}),ve,ye.createElement("span",{className:"".concat(ue,"-inner")},ye.createElement("span",{className:"".concat(ue,"-inner-checked")},ke),ye.createElement("span",{className:"".concat(ue,"-inner-unchecked")},Te)))});de.displayName="Switch",Ot.Z=de},22711:function(Lt,Ot,ze){"use strict";ze.r(Ot),ze.d(Ot,{ResizableTextArea:function(){return Me},default:function(){return He}});var Ze=ze(32855),yt=ze(74430),y=ze(27247),Se=ze(3300),ye=ze(11913),E=ze(43079),z=ze(92310),oe=ze.n(z),se=ze(36901),ee=ze(66003),de=ze(30292),x=ze(18929),te=ze(59301),re=ze(34666),ae=ze(29301),ue=ze(34280),he=ze(16089),pe=`
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;
`,me=["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"],fe={},ve;function ke(Ke){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=Ke.getAttribute("id")||Ke.getAttribute("data-reactid")||Ke.getAttribute("name");if(Ye&&fe[it])return fe[it];var Re=window.getComputedStyle(Ke),We=Re.getPropertyValue("box-sizing")||Re.getPropertyValue("-moz-box-sizing")||Re.getPropertyValue("-webkit-box-sizing"),et=parseFloat(Re.getPropertyValue("padding-bottom"))+parseFloat(Re.getPropertyValue("padding-top")),nt=parseFloat(Re.getPropertyValue("border-bottom-width"))+parseFloat(Re.getPropertyValue("border-top-width")),rt=me.map(function(Je){return"".concat(Je,":").concat(Re.getPropertyValue(Je))}).join(";"),Xe={sizingStyle:rt,paddingSize:et,borderSize:nt,boxSizing:We};return Ye&&it&&(fe[it]=Xe),Xe}function Te(Ke){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ve||(ve=document.createElement("textarea"),ve.setAttribute("tab-index","-1"),ve.setAttribute("aria-hidden","true"),ve.setAttribute("name","hiddenTextarea"),document.body.appendChild(ve)),Ke.getAttribute("wrap")?ve.setAttribute("wrap",Ke.getAttribute("wrap")):ve.removeAttribute("wrap");var We=ke(Ke,Ye),et=We.paddingSize,nt=We.borderSize,rt=We.boxSizing,Xe=We.sizingStyle;ve.setAttribute("style","".concat(Xe,";").concat(pe)),ve.value=Ke.value||Ke.placeholder||"";var Je=void 0,Ve=void 0,at,Qe=ve.scrollHeight;if(rt==="border-box"?Qe+=nt:rt==="content-box"&&(Qe-=et),it!==null||Re!==null){ve.value=" ";var ut=ve.scrollHeight-et;it!==null&&(Je=ut*it,rt==="border-box"&&(Je=Je+et+nt),Qe=Math.max(Je,Qe)),Re!==null&&(Ve=ut*Re,rt==="border-box"&&(Ve=Ve+et+nt),at=Qe>Ve?"":"hidden",Qe=Math.min(Ve,Qe))}var st={height:Qe,overflowY:at,resize:"none"};return Je&&(st.minHeight=Je),Ve&&(st.maxHeight=Ve),st}var Pe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],_e=0,be=1,xe=2,Ae=te.forwardRef(function(Ke,Ye){var it=Ke,Re=it.prefixCls,We=it.defaultValue,et=it.value,nt=it.autoSize,rt=it.onResize,Xe=it.className,Je=it.style,Ve=it.disabled,at=it.onChange,Qe=it.onInternalAutoSize,ut=(0,E.Z)(it,Pe),st=(0,x.Z)(We,{value:et,postState:function(jt){return jt!=null?jt:""}}),$e=(0,ye.Z)(st,2),Ne=$e[0],je=$e[1],ne=function(jt){je(jt.target.value),at==null||at(jt)},ce=te.useRef();te.useImperativeHandle(Ye,function(){return{textArea:ce.current}});var Ie=te.useMemo(function(){return nt&&(0,re.Z)(nt)==="object"?[nt.minRows,nt.maxRows]:[]},[nt]),Fe=(0,ye.Z)(Ie,2),we=Fe[0],Ee=Fe[1],Oe=!!nt,Ue=function(){try{if(document.activeElement===ce.current){var jt=ce.current,Zt=jt.selectionStart,Wt=jt.selectionEnd,$t=jt.scrollTop;ce.current.setSelectionRange(Zt,Wt),ce.current.scrollTop=$t}}catch(Er){}},tt=te.useState(xe),Ge=(0,ye.Z)(tt,2),ft=Ge[0],ct=Ge[1],vt=te.useState(),kt=(0,ye.Z)(vt,2),xt=kt[0],Et=kt[1],gt=function(){ct(_e)};(0,ue.Z)(function(){Oe&&gt()},[et,we,Ee,Oe]),(0,ue.Z)(function(){if(ft===_e)ct(be);else if(ft===be){var At=Te(ce.current,!1,we,Ee);ct(xe),Et(At)}else Ue()},[ft]);var pt=te.useRef(),mt=function(){he.Z.cancel(pt.current)},dt=function(jt){ft===xe&&(rt==null||rt(jt),nt&&(mt(),pt.current=(0,he.Z)(function(){gt()})))};te.useEffect(function(){return mt},[]);var bt=Oe?xt:null,wt=(0,y.Z)((0,y.Z)({},Je),bt);return(ft===_e||ft===be)&&(wt.overflowY="hidden",wt.overflowX="hidden"),te.createElement(ae.Z,{onResize:dt,disabled:!(nt||rt)},te.createElement("textarea",(0,Ze.Z)({},ut,{ref:ce,style:wt,className:oe()(Re,Xe,(0,yt.Z)({},"".concat(Re,"-disabled"),Ve)),disabled:Ve,value:Ne,onChange:ne})))}),Me=Ae,Be=["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"],Ce=te.forwardRef(function(Ke,Ye){var it,Re=Ke.defaultValue,We=Ke.value,et=Ke.onFocus,nt=Ke.onBlur,rt=Ke.onChange,Xe=Ke.allowClear,Je=Ke.maxLength,Ve=Ke.onCompositionStart,at=Ke.onCompositionEnd,Qe=Ke.suffix,ut=Ke.prefixCls,st=ut===void 0?"rc-textarea":ut,$e=Ke.showCount,Ne=Ke.count,je=Ke.className,ne=Ke.style,ce=Ke.disabled,Ie=Ke.hidden,Fe=Ke.classNames,we=Ke.styles,Ee=Ke.onResize,Oe=Ke.onClear,Ue=Ke.onPressEnter,tt=Ke.readOnly,Ge=Ke.autoSize,ft=Ke.onKeyDown,ct=(0,E.Z)(Ke,Be),vt=(0,x.Z)(Re,{value:We,defaultValue:Re}),kt=(0,ye.Z)(vt,2),xt=kt[0],Et=kt[1],gt=xt==null?"":String(xt),pt=te.useState(!1),mt=(0,ye.Z)(pt,2),dt=mt[0],bt=mt[1],wt=te.useRef(!1),At=te.useState(null),jt=(0,ye.Z)(At,2),Zt=jt[0],Wt=jt[1],$t=(0,te.useRef)(null),Er=(0,te.useRef)(null),vr=function(){var cr;return(cr=Er.current)===null||cr===void 0?void 0:cr.textArea},Ht=function(){vr().focus()};(0,te.useImperativeHandle)(Ye,function(){var Mt;return{resizableTextArea:Er.current,focus:Ht,blur:function(){vr().blur()},nativeElement:((Mt=$t.current)===null||Mt===void 0?void 0:Mt.nativeElement)||vr()}}),(0,te.useEffect)(function(){bt(function(Mt){return!ce&&Mt})},[ce]);var er=te.useState(null),or=(0,ye.Z)(er,2),hr=or[0],Qt=or[1];te.useEffect(function(){if(hr){var Mt;(Mt=vr()).setSelectionRange.apply(Mt,(0,Se.Z)(hr))}},[hr]);var sr=(0,ee.Z)(Ne,$e),Ir=(it=sr.max)!==null&&it!==void 0?it:Je,Jt=Number(Ir)>0,Kt=sr.strategy(gt),It=!!Ir&&Kt>Ir,Rt=function(cr,Ar){var Br=Ar;!wt.current&&sr.exceedFormatter&&sr.max&&sr.strategy(Ar)>sr.max&&(Br=sr.exceedFormatter(Ar,{max:sr.max}),Ar!==Br&&Qt([vr().selectionStart||0,vr().selectionEnd||0])),Et(Br),(0,de.rJ)(cr.currentTarget,cr,rt,Br)},Bt=function(cr){wt.current=!0,Ve==null||Ve(cr)},Vt=function(cr){wt.current=!1,Rt(cr,cr.currentTarget.value),at==null||at(cr)},lr=function(cr){Rt(cr,cr.target.value)},wr=function(cr){cr.key==="Enter"&&Ue&&Ue(cr),ft==null||ft(cr)},Ut=function(cr){bt(!0),et==null||et(cr)},Or=function(cr){bt(!1),nt==null||nt(cr)},_r=function(cr){Et(""),Ht(),(0,de.rJ)(vr(),cr,rt)},Pr=Qe,Dr;sr.show&&(sr.showFormatter?Dr=sr.showFormatter({value:gt,count:Kt,maxLength:Ir}):Dr="".concat(Kt).concat(Jt?" / ".concat(Ir):""),Pr=te.createElement(te.Fragment,null,Pr,te.createElement("span",{className:oe()("".concat(st,"-data-count"),Fe==null?void 0:Fe.count),style:we==null?void 0:we.count},Dr)));var yr=function(cr){var Ar;Ee==null||Ee(cr),(Ar=vr())!==null&&Ar!==void 0&&Ar.style.height&&Wt(!0)},qt=!Ge&&!$e&&!Xe;return te.createElement(se.BaseInput,{ref:$t,value:gt,allowClear:Xe,handleReset:_r,suffix:Pr,prefixCls:st,classNames:(0,y.Z)((0,y.Z)({},Fe),{},{affixWrapper:oe()(Fe==null?void 0:Fe.affixWrapper,(0,yt.Z)((0,yt.Z)({},"".concat(st,"-show-count"),$e),"".concat(st,"-textarea-allow-clear"),Xe))}),disabled:ce,focused:dt,className:oe()(je,It&&"".concat(st,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},ne),Zt&&!qt?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Dr=="string"?Dr:void 0}},hidden:Ie,readOnly:tt,onClear:Oe},te.createElement(Me,(0,Ze.Z)({},ct,{autoSize:Ge,maxLength:Je,onKeyDown:wr,onChange:lr,onFocus:Ut,onBlur:Or,onCompositionStart:Bt,onCompositionEnd:Vt,className:oe()(Fe==null?void 0:Fe.textarea),style:(0,y.Z)((0,y.Z)({},we==null?void 0:we.textarea),{},{resize:ne==null?void 0:ne.resize}),disabled:ce,prefixCls:st,onResize:yr,ref:Er,readOnly:tt})))}),De=Ce,He=De},639:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return fe}});var Ze=ze(32855),yt=ze(74430),y=ze(27247),Se=ze(11913),ye=ze(43079),E=ze(59301),z=ze(92310),oe=ze.n(z),se=ze(26112),ee=ze(30699),de=function(ke){for(var Te=ke.prefixCls,Pe=ke.level,_e=ke.isStart,be=ke.isEnd,xe="".concat(Te,"-indent-unit"),Ae=[],Me=0;Me<Pe;Me+=1)Ae.push(E.createElement("span",{key:Me,className:oe()(xe,(0,yt.Z)((0,yt.Z)({},"".concat(xe,"-start"),_e[Me]),"".concat(xe,"-end"),be[Me]))}));return E.createElement("span",{"aria-hidden":"true",className:"".concat(Te,"-indent")},Ae)},x=E.memo(de),te=ze(65065),re=ze(34061),ae=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",he="close",pe="---",me=function(ke){var Te,Pe,_e,be=ke.eventKey,xe=ke.className,Ae=ke.style,Me=ke.dragOver,Be=ke.dragOverGapTop,Ce=ke.dragOverGapBottom,De=ke.isLeaf,He=ke.isStart,Ke=ke.isEnd,Ye=ke.expanded,it=ke.selected,Re=ke.checked,We=ke.halfChecked,et=ke.loading,nt=ke.domRef,rt=ke.active,Xe=ke.data,Je=ke.onMouseMove,Ve=ke.selectable,at=(0,ye.Z)(ke,ae),Qe=E.useContext(ee.k),ut=E.useContext(ee.y),st=E.useRef(null),$e=E.useState(!1),Ne=(0,Se.Z)($e,2),je=Ne[0],ne=Ne[1],ce=!!(Qe.disabled||ke.disabled||(Te=ut.nodeDisabled)!==null&&Te!==void 0&&Te.call(ut,Xe)),Ie=E.useMemo(function(){return!Qe.checkable||ke.checkable===!1?!1:Qe.checkable},[Qe.checkable,ke.checkable]),Fe=function(Kt){ce||Qe.onNodeSelect(Kt,(0,re.F)(ke))},we=function(Kt){ce||!Ie||ke.disableCheckbox||Qe.onNodeCheck(Kt,(0,re.F)(ke),!Re)},Ee=E.useMemo(function(){return typeof Ve=="boolean"?Ve:Qe.selectable},[Ve,Qe.selectable]),Oe=function(Kt){Qe.onNodeClick(Kt,(0,re.F)(ke)),Ee?Fe(Kt):we(Kt)},Ue=function(Kt){Qe.onNodeDoubleClick(Kt,(0,re.F)(ke))},tt=function(Kt){Qe.onNodeMouseEnter(Kt,(0,re.F)(ke))},Ge=function(Kt){Qe.onNodeMouseLeave(Kt,(0,re.F)(ke))},ft=function(Kt){Qe.onNodeContextMenu(Kt,(0,re.F)(ke))},ct=E.useMemo(function(){return!!(Qe.draggable&&(!Qe.draggable.nodeDraggable||Qe.draggable.nodeDraggable(Xe)))},[Qe.draggable,Xe]),vt=function(Kt){Kt.stopPropagation(),ne(!0),Qe.onNodeDragStart(Kt,ke);try{Kt.dataTransfer.setData("text/plain","")}catch(It){}},kt=function(Kt){Kt.preventDefault(),Kt.stopPropagation(),Qe.onNodeDragEnter(Kt,ke)},xt=function(Kt){Kt.preventDefault(),Kt.stopPropagation(),Qe.onNodeDragOver(Kt,ke)},Et=function(Kt){Kt.stopPropagation(),Qe.onNodeDragLeave(Kt,ke)},gt=function(Kt){Kt.stopPropagation(),ne(!1),Qe.onNodeDragEnd(Kt,ke)},pt=function(Kt){Kt.preventDefault(),Kt.stopPropagation(),ne(!1),Qe.onNodeDrop(Kt,ke)},mt=function(Kt){et||Qe.onNodeExpand(Kt,(0,re.F)(ke))},dt=E.useMemo(function(){var Jt=(0,te.Z)(Qe.keyEntities,be)||{},Kt=Jt.children;return!!(Kt||[]).length},[Qe.keyEntities,be]),bt=E.useMemo(function(){return De===!1?!1:De||!Qe.loadData&&!dt||Qe.loadData&&ke.loaded&&!dt},[De,Qe.loadData,dt,ke.loaded]);E.useEffect(function(){et||typeof Qe.loadData=="function"&&Ye&&!bt&&!ke.loaded&&Qe.onNodeLoad((0,re.F)(ke))},[et,Qe.loadData,Qe.onNodeLoad,Ye,bt,ke]);var wt=E.useMemo(function(){var Jt;return(Jt=Qe.draggable)!==null&&Jt!==void 0&&Jt.icon?E.createElement("span",{className:"".concat(Qe.prefixCls,"-draggable-icon")},Qe.draggable.icon):null},[Qe.draggable]),At=function(Kt){var It=ke.switcherIcon||Qe.switcherIcon;return typeof It=="function"?It((0,y.Z)((0,y.Z)({},ke),{},{isLeaf:Kt})):It},jt=function(){if(bt){var Kt=At(!0);return Kt!==!1?E.createElement("span",{className:oe()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher-noop"))},Kt):null}var It=At(!1);return It!==!1?E.createElement("span",{onClick:mt,className:oe()("".concat(Qe.prefixCls,"-switcher"),"".concat(Qe.prefixCls,"-switcher_").concat(Ye?ue:he))},It):null},Zt=E.useMemo(function(){if(!Ie)return null;var Jt=typeof Ie!="boolean"?Ie:null;return E.createElement("span",{className:oe()("".concat(Qe.prefixCls,"-checkbox"),(0,yt.Z)((0,yt.Z)((0,yt.Z)({},"".concat(Qe.prefixCls,"-checkbox-checked"),Re),"".concat(Qe.prefixCls,"-checkbox-indeterminate"),!Re&&We),"".concat(Qe.prefixCls,"-checkbox-disabled"),ce||ke.disableCheckbox)),onClick:we,role:"checkbox","aria-checked":We?"mixed":Re,"aria-disabled":ce||ke.disableCheckbox,"aria-label":"Select ".concat(typeof ke.title=="string"?ke.title:"tree node")},Jt)},[Ie,Re,We,ce,ke.disableCheckbox,ke.title]),Wt=E.useMemo(function(){return bt?null:Ye?ue:he},[bt,Ye]),$t=E.useMemo(function(){return E.createElement("span",{className:oe()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__").concat(Wt||"docu"),(0,yt.Z)({},"".concat(Qe.prefixCls,"-icon_loading"),et))})},[Qe.prefixCls,Wt,et]),Er=E.useMemo(function(){var Jt=!!Qe.draggable,Kt=!ke.disabled&&Jt&&Qe.dragOverNodeKey===be;return Kt?Qe.dropIndicatorRender({dropPosition:Qe.dropPosition,dropLevelOffset:Qe.dropLevelOffset,indent:Qe.indent,prefixCls:Qe.prefixCls,direction:Qe.direction}):null},[Qe.dropPosition,Qe.dropLevelOffset,Qe.indent,Qe.prefixCls,Qe.direction,Qe.draggable,Qe.dragOverNodeKey,Qe.dropIndicatorRender]),vr=E.useMemo(function(){var Jt=ke.title,Kt=Jt===void 0?pe:Jt,It="".concat(Qe.prefixCls,"-node-content-wrapper"),Rt;if(Qe.showIcon){var Bt=ke.icon||Qe.icon;Rt=Bt?E.createElement("span",{className:oe()("".concat(Qe.prefixCls,"-iconEle"),"".concat(Qe.prefixCls,"-icon__customize"))},typeof Bt=="function"?Bt(ke):Bt):$t}else Qe.loadData&&et&&(Rt=$t);var Vt;return typeof Kt=="function"?Vt=Kt(Xe):Qe.titleRender?Vt=Qe.titleRender(Xe):Vt=Kt,E.createElement("span",{ref:st,title:typeof Kt=="string"?Kt:"",className:oe()(It,"".concat(It,"-").concat(Wt||"normal"),(0,yt.Z)({},"".concat(Qe.prefixCls,"-node-selected"),!ce&&(it||je))),onMouseEnter:tt,onMouseLeave:Ge,onContextMenu:ft,onClick:Oe,onDoubleClick:Ue},Rt,E.createElement("span",{className:"".concat(Qe.prefixCls,"-title")},Vt),Er)},[Qe.prefixCls,Qe.showIcon,ke,Qe.icon,$t,Qe.titleRender,Xe,Wt,tt,Ge,ft,Oe,Ue]),Ht=(0,se.Z)(at,{aria:!0,data:!0}),er=(0,te.Z)(Qe.keyEntities,be)||{},or=er.level,hr=Ke[Ke.length-1],Qt=!ce&&ct,sr=Qe.draggingNodeKey===be,Ir=Ve!==void 0?{"aria-selected":!!Ve}:void 0;return E.createElement("div",(0,Ze.Z)({ref:nt,role:"treeitem","aria-expanded":De?void 0:Ye,className:oe()(xe,"".concat(Qe.prefixCls,"-treenode"),(_e={},(0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)(_e,"".concat(Qe.prefixCls,"-treenode-disabled"),ce),"".concat(Qe.prefixCls,"-treenode-switcher-").concat(Ye?"open":"close"),!De),"".concat(Qe.prefixCls,"-treenode-checkbox-checked"),Re),"".concat(Qe.prefixCls,"-treenode-checkbox-indeterminate"),We),"".concat(Qe.prefixCls,"-treenode-selected"),it),"".concat(Qe.prefixCls,"-treenode-loading"),et),"".concat(Qe.prefixCls,"-treenode-active"),rt),"".concat(Qe.prefixCls,"-treenode-leaf-last"),hr),"".concat(Qe.prefixCls,"-treenode-draggable"),ct),"dragging",sr),(0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)((0,yt.Z)(_e,"drop-target",Qe.dropTargetKey===be),"drop-container",Qe.dropContainerKey===be),"drag-over",!ce&&Me),"drag-over-gap-top",!ce&&Be),"drag-over-gap-bottom",!ce&&Ce),"filter-node",(Pe=Qe.filterTreeNode)===null||Pe===void 0?void 0:Pe.call(Qe,(0,re.F)(ke))),"".concat(Qe.prefixCls,"-treenode-leaf"),bt))),style:Ae,draggable:Qt,onDragStart:Qt?vt:void 0,onDragEnter:ct?kt:void 0,onDragOver:ct?xt:void 0,onDragLeave:ct?Et:void 0,onDrop:ct?pt:void 0,onDragEnd:ct?gt:void 0,onMouseMove:Je},Ir,Ht),E.createElement(x,{prefixCls:Qe.prefixCls,level:or,isStart:He,isEnd:Ke}),wt,jt(),Zt,vr)};me.isTreeNode=1;var fe=me},30699:function(Lt,Ot,ze){"use strict";ze.d(Ot,{k:function(){return yt},y:function(){return y}});var Ze=ze(59301),yt=Ze.createContext(null),y=Ze.createContext({})},89149:function(Lt,Ot,ze){"use strict";ze.d(Ot,{OF:function(){return be.Z},y6:function(){return he.y},ZP:function(){return ce}});var Ze=ze(32855),yt=ze(34666),y=ze(27247),Se=ze(3300),ye=ze(33377),E=ze(93912),z=ze(83383),oe=ze(18881),se=ze(85461),ee=ze(74430),de=ze(92310),x=ze.n(de),te=ze(10228),re=ze(26112),ae=ze(48736),ue=ze(59301),he=ze(30699),pe=function(Fe){var we=Fe.dropPosition,Ee=Fe.dropLevelOffset,Oe=Fe.indent,Ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(we){case-1:Ue.top=0,Ue.left=-Ee*Oe;break;case 1:Ue.bottom=0,Ue.left=-Ee*Oe;break;case 0:Ue.bottom=0,Ue.left=Oe;break}return ue.createElement("div",{style:Ue})},me=pe;function fe(Ie){if(Ie==null)throw new TypeError("Cannot destructure "+Ie)}var ve=ze(11913),ke=ze(43079),Te=ze(34280),Pe=ze(6790),_e=ze(77900),be=ze(639);function xe(Ie,Fe){var we=ue.useState(!1),Ee=(0,ve.Z)(we,2),Oe=Ee[0],Ue=Ee[1];(0,Te.Z)(function(){if(Oe)return Ie(),function(){Fe()}},[Oe]),(0,Te.Z)(function(){return Ue(!0),function(){Ue(!1)}},[])}var Ae=xe,Me=ze(34061),Be=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ce=ue.forwardRef(function(Ie,Fe){var we=Ie.className,Ee=Ie.style,Oe=Ie.motion,Ue=Ie.motionNodes,tt=Ie.motionType,Ge=Ie.onMotionStart,ft=Ie.onMotionEnd,ct=Ie.active,vt=Ie.treeNodeRequiredProps,kt=(0,ke.Z)(Ie,Be),xt=ue.useState(!0),Et=(0,ve.Z)(xt,2),gt=Et[0],pt=Et[1],mt=ue.useContext(he.k),dt=mt.prefixCls,bt=Ue&&tt!=="hide";(0,Te.Z)(function(){Ue&&bt!==gt&&pt(bt)},[Ue]);var wt=function(){Ue&&Ge()},At=ue.useRef(!1),jt=function(){Ue&&!At.current&&(At.current=!0,ft())};Ae(wt,jt);var Zt=function($t){bt===$t&&jt()};return Ue?ue.createElement(_e.default,(0,Ze.Z)({ref:Fe,visible:gt},Oe,{motionAppear:tt==="show",onVisibleChanged:Zt}),function(Wt,$t){var Er=Wt.className,vr=Wt.style;return ue.createElement("div",{ref:$t,className:x()("".concat(dt,"-treenode-motion"),Er),style:vr},Ue.map(function(Ht){var er=Object.assign({},(fe(Ht.data),Ht.data)),or=Ht.title,hr=Ht.key,Qt=Ht.isStart,sr=Ht.isEnd;delete er.children;var Ir=(0,Me.H8)(hr,vt);return ue.createElement(be.Z,(0,Ze.Z)({},er,Ir,{title:or,active:ct,data:Ht.data,key:hr,isStart:Qt,isEnd:sr}))}))}):ue.createElement(be.Z,(0,Ze.Z)({domRef:Fe,className:we,style:Ee},kt,{active:ct}))}),De=Ce;function He(){var Ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],we=Ie.length,Ee=Fe.length;if(Math.abs(we-Ee)!==1)return{add:!1,key:null};function Oe(Ue,tt){var Ge=new Map;Ue.forEach(function(ct){Ge.set(ct,!0)});var ft=tt.filter(function(ct){return!Ge.has(ct)});return ft.length===1?ft[0]:null}return we<Ee?{add:!0,key:Oe(Ie,Fe)}:{add:!1,key:Oe(Fe,Ie)}}function Ke(Ie,Fe,we){var Ee=Ie.findIndex(function(Ge){return Ge.key===we}),Oe=Ie[Ee+1],Ue=Fe.findIndex(function(Ge){return Ge.key===we});if(Oe){var tt=Fe.findIndex(function(Ge){return Ge.key===Oe.key});return Fe.slice(Ue+1,tt)}return Fe.slice(Ue+1)}var Ye=["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"],it={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Re=function(){},We="RC_TREE_MOTION_".concat(Math.random()),et={key:We},nt={key:We,level:0,index:0,pos:"0",node:et,nodes:[et]},rt={parent:null,children:[],pos:nt.pos,data:et,title:null,key:We,isStart:[],isEnd:[]};function Xe(Ie,Fe,we,Ee){return Fe===!1||!we?Ie:Ie.slice(0,Math.ceil(we/Ee)+1)}function Je(Ie){var Fe=Ie.key,we=Ie.pos;return(0,Me.km)(Fe,we)}function Ve(Ie){for(var Fe=String(Ie.data.key),we=Ie;we.parent;)we=we.parent,Fe="".concat(we.data.key," > ").concat(Fe);return Fe}var at=ue.forwardRef(function(Ie,Fe){var we=Ie.prefixCls,Ee=Ie.data,Oe=Ie.selectable,Ue=Ie.checkable,tt=Ie.expandedKeys,Ge=Ie.selectedKeys,ft=Ie.checkedKeys,ct=Ie.loadedKeys,vt=Ie.loadingKeys,kt=Ie.halfCheckedKeys,xt=Ie.keyEntities,Et=Ie.disabled,gt=Ie.dragging,pt=Ie.dragOverNodeKey,mt=Ie.dropPosition,dt=Ie.motion,bt=Ie.height,wt=Ie.itemHeight,At=Ie.virtual,jt=Ie.scrollWidth,Zt=Ie.focusable,Wt=Ie.activeItem,$t=Ie.focused,Er=Ie.tabIndex,vr=Ie.onKeyDown,Ht=Ie.onFocus,er=Ie.onBlur,or=Ie.onActiveChange,hr=Ie.onListChangeStart,Qt=Ie.onListChangeEnd,sr=(0,ke.Z)(Ie,Ye),Ir=ue.useRef(null),Jt=ue.useRef(null);ue.useImperativeHandle(Fe,function(){return{scrollTo:function(gr){Ir.current.scrollTo(gr)},getIndentWidth:function(){return Jt.current.offsetWidth}}});var Kt=ue.useState(tt),It=(0,ve.Z)(Kt,2),Rt=It[0],Bt=It[1],Vt=ue.useState(Ee),lr=(0,ve.Z)(Vt,2),wr=lr[0],Ut=lr[1],Or=ue.useState(Ee),_r=(0,ve.Z)(Or,2),Pr=_r[0],Dr=_r[1],yr=ue.useState([]),qt=(0,ve.Z)(yr,2),Mt=qt[0],cr=qt[1],Ar=ue.useState(null),Br=(0,ve.Z)(Ar,2),Ct=Br[0],Tt=Br[1],ar=ue.useRef(Ee);ar.current=Ee;function Xt(){var rr=ar.current;Ut(rr),Dr(rr),cr([]),Tt(null),Qt()}(0,Te.Z)(function(){Bt(tt);var rr=He(Rt,tt);if(rr.key!==null)if(rr.add){var gr=wr.findIndex(function(ir){var ur=ir.key;return ur===rr.key}),Mr=Xe(Ke(wr,Ee,rr.key),At,bt,wt),Pt=wr.slice();Pt.splice(gr+1,0,rt),Dr(Pt),cr(Mr),Tt("show")}else{var br=Ee.findIndex(function(ir){var ur=ir.key;return ur===rr.key}),Gt=Xe(Ke(Ee,wr,rr.key),At,bt,wt),Sr=Ee.slice();Sr.splice(br+1,0,rt),Dr(Sr),cr(Gt),Tt("hide")}else wr!==Ee&&(Ut(Ee),Dr(Ee))},[tt,Ee]),ue.useEffect(function(){gt||Xt()},[gt]);var Dt=dt?Pr:Ee,Yt={expandedKeys:tt,selectedKeys:Ge,loadedKeys:ct,loadingKeys:vt,checkedKeys:ft,halfCheckedKeys:kt,dragOverNodeKey:pt,dropPosition:mt,keyEntities:xt};return ue.createElement(ue.Fragment,null,$t&&Wt&&ue.createElement("span",{style:it,"aria-live":"assertive"},Ve(Wt)),ue.createElement("div",null,ue.createElement("input",{style:it,disabled:Zt===!1||Et,tabIndex:Zt!==!1?Er:null,onKeyDown:vr,onFocus:Ht,onBlur:er,value:"",onChange:Re,"aria-label":"for screen reader"})),ue.createElement("div",{className:"".concat(we,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ue.createElement("div",{className:"".concat(we,"-indent")},ue.createElement("div",{ref:Jt,className:"".concat(we,"-indent-unit")}))),ue.createElement(Pe.Z,(0,Ze.Z)({},sr,{data:Dt,itemKey:Je,height:bt,fullHeight:!1,virtual:At,itemHeight:wt,scrollWidth:jt,prefixCls:"".concat(we,"-list"),ref:Ir,role:"tree",onVisibleChange:function(gr){gr.every(function(Mr){return Je(Mr)!==We})&&Xt()}}),function(rr){var gr=rr.pos,Mr=Object.assign({},(fe(rr.data),rr.data)),Pt=rr.title,br=rr.key,Gt=rr.isStart,Sr=rr.isEnd,ir=(0,Me.km)(br,gr);delete Mr.key,delete Mr.children;var ur=(0,Me.H8)(ir,Yt);return ue.createElement(De,(0,Ze.Z)({},Mr,ur,{title:Pt,active:!!Wt&&br===Wt.key,pos:gr,data:rr.data,isStart:Gt,isEnd:Sr,motion:dt,motionNodes:br===We?Mt:null,motionType:Ct,onMotionStart:hr,onMotionEnd:Xt,treeNodeRequiredProps:Yt,onMouseMove:function(){or(null)}}))}))}),Qe=at,ut=ze(82661),st=ze(34643),$e=ze(65065),Ne=10,je=function(Ie){(0,oe.Z)(we,Ie);var Fe=(0,se.Z)(we);function we(){var Ee;(0,ye.Z)(this,we);for(var Oe=arguments.length,Ue=new Array(Oe),tt=0;tt<Oe;tt++)Ue[tt]=arguments[tt];return Ee=Fe.call.apply(Fe,[this].concat(Ue)),(0,ee.Z)((0,z.Z)(Ee),"destroyed",!1),(0,ee.Z)((0,z.Z)(Ee),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,z.Z)(Ee),"loadingRetryTimes",{}),(0,ee.Z)((0,z.Z)(Ee),"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,Me.w$)()}),(0,ee.Z)((0,z.Z)(Ee),"dragStartMousePosition",null),(0,ee.Z)((0,z.Z)(Ee),"dragNodeProps",null),(0,ee.Z)((0,z.Z)(Ee),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,z.Z)(Ee),"listRef",ue.createRef()),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragStart",function(Ge,ft){var ct=Ee.state,vt=ct.expandedKeys,kt=ct.keyEntities,xt=Ee.props.onDragStart,Et=ft.eventKey;Ee.dragNodeProps=ft,Ee.dragStartMousePosition={x:Ge.clientX,y:Ge.clientY};var gt=(0,ut._5)(vt,Et);Ee.setState({draggingNodeKey:Et,dragChildrenKeys:(0,ut.wA)(Et,kt),indent:Ee.listRef.current.getIndentWidth()}),Ee.setExpandedKeys(gt),window.addEventListener("dragend",Ee.onWindowDragEnd),xt==null||xt({event:Ge,node:(0,Me.F)(ft)})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragEnter",function(Ge,ft){var ct=Ee.state,vt=ct.expandedKeys,kt=ct.keyEntities,xt=ct.dragChildrenKeys,Et=ct.flattenNodes,gt=ct.indent,pt=Ee.props,mt=pt.onDragEnter,dt=pt.onExpand,bt=pt.allowDrop,wt=pt.direction,At=ft.pos,jt=ft.eventKey;if(Ee.currentMouseOverDroppableNodeKey!==jt&&(Ee.currentMouseOverDroppableNodeKey=jt),!Ee.dragNodeProps){Ee.resetDragState();return}var Zt=(0,ut.OM)(Ge,Ee.dragNodeProps,ft,gt,Ee.dragStartMousePosition,bt,Et,kt,vt,wt),Wt=Zt.dropPosition,$t=Zt.dropLevelOffset,Er=Zt.dropTargetKey,vr=Zt.dropContainerKey,Ht=Zt.dropTargetPos,er=Zt.dropAllowed,or=Zt.dragOverNodeKey;if(xt.includes(Er)||!er){Ee.resetDragState();return}if(Ee.delayedDragEnterLogic||(Ee.delayedDragEnterLogic={}),Object.keys(Ee.delayedDragEnterLogic).forEach(function(hr){clearTimeout(Ee.delayedDragEnterLogic[hr])}),Ee.dragNodeProps.eventKey!==ft.eventKey&&(Ge.persist(),Ee.delayedDragEnterLogic[At]=window.setTimeout(function(){if(Ee.state.draggingNodeKey!==null){var hr=(0,Se.Z)(vt),Qt=(0,$e.Z)(kt,ft.eventKey);Qt&&(Qt.children||[]).length&&(hr=(0,ut.L0)(vt,ft.eventKey)),Ee.props.hasOwnProperty("expandedKeys")||Ee.setExpandedKeys(hr),dt==null||dt(hr,{node:(0,Me.F)(ft),expanded:!0,nativeEvent:Ge.nativeEvent})}},800)),Ee.dragNodeProps.eventKey===Er&&$t===0){Ee.resetDragState();return}Ee.setState({dragOverNodeKey:or,dropPosition:Wt,dropLevelOffset:$t,dropTargetKey:Er,dropContainerKey:vr,dropTargetPos:Ht,dropAllowed:er}),mt==null||mt({event:Ge,node:(0,Me.F)(ft),expandedKeys:vt})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragOver",function(Ge,ft){var ct=Ee.state,vt=ct.dragChildrenKeys,kt=ct.flattenNodes,xt=ct.keyEntities,Et=ct.expandedKeys,gt=ct.indent,pt=Ee.props,mt=pt.onDragOver,dt=pt.allowDrop,bt=pt.direction;if(Ee.dragNodeProps){var wt=(0,ut.OM)(Ge,Ee.dragNodeProps,ft,gt,Ee.dragStartMousePosition,dt,kt,xt,Et,bt),At=wt.dropPosition,jt=wt.dropLevelOffset,Zt=wt.dropTargetKey,Wt=wt.dropContainerKey,$t=wt.dropTargetPos,Er=wt.dropAllowed,vr=wt.dragOverNodeKey;vt.includes(Zt)||!Er||(Ee.dragNodeProps.eventKey===Zt&&jt===0?Ee.state.dropPosition===null&&Ee.state.dropLevelOffset===null&&Ee.state.dropTargetKey===null&&Ee.state.dropContainerKey===null&&Ee.state.dropTargetPos===null&&Ee.state.dropAllowed===!1&&Ee.state.dragOverNodeKey===null||Ee.resetDragState():At===Ee.state.dropPosition&&jt===Ee.state.dropLevelOffset&&Zt===Ee.state.dropTargetKey&&Wt===Ee.state.dropContainerKey&&$t===Ee.state.dropTargetPos&&Er===Ee.state.dropAllowed&&vr===Ee.state.dragOverNodeKey||Ee.setState({dropPosition:At,dropLevelOffset:jt,dropTargetKey:Zt,dropContainerKey:Wt,dropTargetPos:$t,dropAllowed:Er,dragOverNodeKey:vr}),mt==null||mt({event:Ge,node:(0,Me.F)(ft)}))}}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragLeave",function(Ge,ft){Ee.currentMouseOverDroppableNodeKey===ft.eventKey&&!Ge.currentTarget.contains(Ge.relatedTarget)&&(Ee.resetDragState(),Ee.currentMouseOverDroppableNodeKey=null);var ct=Ee.props.onDragLeave;ct==null||ct({event:Ge,node:(0,Me.F)(ft)})}),(0,ee.Z)((0,z.Z)(Ee),"onWindowDragEnd",function(Ge){Ee.onNodeDragEnd(Ge,null,!0),window.removeEventListener("dragend",Ee.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDragEnd",function(Ge,ft){var ct=Ee.props.onDragEnd;Ee.setState({dragOverNodeKey:null}),Ee.cleanDragState(),ct==null||ct({event:Ge,node:(0,Me.F)(ft)}),Ee.dragNodeProps=null,window.removeEventListener("dragend",Ee.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDrop",function(Ge,ft){var ct,vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,kt=Ee.state,xt=kt.dragChildrenKeys,Et=kt.dropPosition,gt=kt.dropTargetKey,pt=kt.dropTargetPos,mt=kt.dropAllowed;if(mt){var dt=Ee.props.onDrop;if(Ee.setState({dragOverNodeKey:null}),Ee.cleanDragState(),gt!==null){var bt=(0,y.Z)((0,y.Z)({},(0,Me.H8)(gt,Ee.getTreeNodeRequiredProps())),{},{active:((ct=Ee.getActiveItem())===null||ct===void 0?void 0:ct.key)===gt,data:(0,$e.Z)(Ee.state.keyEntities,gt).node}),wt=xt.includes(gt);(0,ae.ZP)(!wt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var At=(0,ut.yx)(pt),jt={event:Ge,node:(0,Me.F)(bt),dragNode:Ee.dragNodeProps?(0,Me.F)(Ee.dragNodeProps):null,dragNodesKeys:[Ee.dragNodeProps.eventKey].concat(xt),dropToGap:Et!==0,dropPosition:Et+Number(At[At.length-1])};vt||dt==null||dt(jt),Ee.dragNodeProps=null}}}),(0,ee.Z)((0,z.Z)(Ee),"cleanDragState",function(){var Ge=Ee.state.draggingNodeKey;Ge!==null&&Ee.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ee.dragStartMousePosition=null,Ee.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,z.Z)(Ee),"triggerExpandActionExpand",function(Ge,ft){var ct=Ee.state,vt=ct.expandedKeys,kt=ct.flattenNodes,xt=ft.expanded,Et=ft.key,gt=ft.isLeaf;if(!(gt||Ge.shiftKey||Ge.metaKey||Ge.ctrlKey)){var pt=kt.filter(function(dt){return dt.key===Et})[0],mt=(0,Me.F)((0,y.Z)((0,y.Z)({},(0,Me.H8)(Et,Ee.getTreeNodeRequiredProps())),{},{data:pt.data}));Ee.setExpandedKeys(xt?(0,ut._5)(vt,Et):(0,ut.L0)(vt,Et)),Ee.onNodeExpand(Ge,mt)}}),(0,ee.Z)((0,z.Z)(Ee),"onNodeClick",function(Ge,ft){var ct=Ee.props,vt=ct.onClick,kt=ct.expandAction;kt==="click"&&Ee.triggerExpandActionExpand(Ge,ft),vt==null||vt(Ge,ft)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeDoubleClick",function(Ge,ft){var ct=Ee.props,vt=ct.onDoubleClick,kt=ct.expandAction;kt==="doubleClick"&&Ee.triggerExpandActionExpand(Ge,ft),vt==null||vt(Ge,ft)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeSelect",function(Ge,ft){var ct=Ee.state.selectedKeys,vt=Ee.state,kt=vt.keyEntities,xt=vt.fieldNames,Et=Ee.props,gt=Et.onSelect,pt=Et.multiple,mt=ft.selected,dt=ft[xt.key],bt=!mt;bt?pt?ct=(0,ut.L0)(ct,dt):ct=[dt]:ct=(0,ut._5)(ct,dt);var wt=ct.map(function(At){var jt=(0,$e.Z)(kt,At);return jt?jt.node:null}).filter(Boolean);Ee.setUncontrolledState({selectedKeys:ct}),gt==null||gt(ct,{event:"select",selected:bt,node:ft,selectedNodes:wt,nativeEvent:Ge.nativeEvent})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeCheck",function(Ge,ft,ct){var vt=Ee.state,kt=vt.keyEntities,xt=vt.checkedKeys,Et=vt.halfCheckedKeys,gt=Ee.props,pt=gt.checkStrictly,mt=gt.onCheck,dt=ft.key,bt,wt={event:"check",node:ft,checked:ct,nativeEvent:Ge.nativeEvent};if(pt){var At=ct?(0,ut.L0)(xt,dt):(0,ut._5)(xt,dt),jt=(0,ut._5)(Et,dt);bt={checked:At,halfChecked:jt},wt.checkedNodes=At.map(function(Ht){return(0,$e.Z)(kt,Ht)}).filter(Boolean).map(function(Ht){return Ht.node}),Ee.setUncontrolledState({checkedKeys:At})}else{var Zt=(0,st.S)([].concat((0,Se.Z)(xt),[dt]),!0,kt),Wt=Zt.checkedKeys,$t=Zt.halfCheckedKeys;if(!ct){var Er=new Set(Wt);Er.delete(dt);var vr=(0,st.S)(Array.from(Er),{checked:!1,halfCheckedKeys:$t},kt);Wt=vr.checkedKeys,$t=vr.halfCheckedKeys}bt=Wt,wt.checkedNodes=[],wt.checkedNodesPositions=[],wt.halfCheckedKeys=$t,Wt.forEach(function(Ht){var er=(0,$e.Z)(kt,Ht);if(er){var or=er.node,hr=er.pos;wt.checkedNodes.push(or),wt.checkedNodesPositions.push({node:or,pos:hr})}}),Ee.setUncontrolledState({checkedKeys:Wt},!1,{halfCheckedKeys:$t})}mt==null||mt(bt,wt)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeLoad",function(Ge){var ft,ct=Ge.key,vt=Ee.state.keyEntities,kt=(0,$e.Z)(vt,ct);if(!(kt!=null&&(ft=kt.children)!==null&&ft!==void 0&&ft.length)){var xt=new Promise(function(Et,gt){Ee.setState(function(pt){var mt=pt.loadedKeys,dt=mt===void 0?[]:mt,bt=pt.loadingKeys,wt=bt===void 0?[]:bt,At=Ee.props,jt=At.loadData,Zt=At.onLoad;if(!jt||dt.includes(ct)||wt.includes(ct))return null;var Wt=jt(Ge);return Wt.then(function(){var $t=Ee.state.loadedKeys,Er=(0,ut.L0)($t,ct);Zt==null||Zt(Er,{event:"load",node:Ge}),Ee.setUncontrolledState({loadedKeys:Er}),Ee.setState(function(vr){return{loadingKeys:(0,ut._5)(vr.loadingKeys,ct)}}),Et()}).catch(function($t){if(Ee.setState(function(vr){return{loadingKeys:(0,ut._5)(vr.loadingKeys,ct)}}),Ee.loadingRetryTimes[ct]=(Ee.loadingRetryTimes[ct]||0)+1,Ee.loadingRetryTimes[ct]>=Ne){var Er=Ee.state.loadedKeys;(0,ae.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ee.setUncontrolledState({loadedKeys:(0,ut.L0)(Er,ct)}),Et()}gt($t)}),{loadingKeys:(0,ut.L0)(wt,ct)}})});return xt.catch(function(){}),xt}}),(0,ee.Z)((0,z.Z)(Ee),"onNodeMouseEnter",function(Ge,ft){var ct=Ee.props.onMouseEnter;ct==null||ct({event:Ge,node:ft})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeMouseLeave",function(Ge,ft){var ct=Ee.props.onMouseLeave;ct==null||ct({event:Ge,node:ft})}),(0,ee.Z)((0,z.Z)(Ee),"onNodeContextMenu",function(Ge,ft){var ct=Ee.props.onRightClick;ct&&(Ge.preventDefault(),ct({event:Ge,node:ft}))}),(0,ee.Z)((0,z.Z)(Ee),"onFocus",function(){var Ge=Ee.props.onFocus;Ee.setState({focused:!0});for(var ft=arguments.length,ct=new Array(ft),vt=0;vt<ft;vt++)ct[vt]=arguments[vt];Ge==null||Ge.apply(void 0,ct)}),(0,ee.Z)((0,z.Z)(Ee),"onBlur",function(){var Ge=Ee.props.onBlur;Ee.setState({focused:!1}),Ee.onActiveChange(null);for(var ft=arguments.length,ct=new Array(ft),vt=0;vt<ft;vt++)ct[vt]=arguments[vt];Ge==null||Ge.apply(void 0,ct)}),(0,ee.Z)((0,z.Z)(Ee),"getTreeNodeRequiredProps",function(){var Ge=Ee.state,ft=Ge.expandedKeys,ct=Ge.selectedKeys,vt=Ge.loadedKeys,kt=Ge.loadingKeys,xt=Ge.checkedKeys,Et=Ge.halfCheckedKeys,gt=Ge.dragOverNodeKey,pt=Ge.dropPosition,mt=Ge.keyEntities;return{expandedKeys:ft||[],selectedKeys:ct||[],loadedKeys:vt||[],loadingKeys:kt||[],checkedKeys:xt||[],halfCheckedKeys:Et||[],dragOverNodeKey:gt,dropPosition:pt,keyEntities:mt}}),(0,ee.Z)((0,z.Z)(Ee),"setExpandedKeys",function(Ge){var ft=Ee.state,ct=ft.treeData,vt=ft.fieldNames,kt=(0,Me.oH)(ct,Ge,vt);Ee.setUncontrolledState({expandedKeys:Ge,flattenNodes:kt},!0)}),(0,ee.Z)((0,z.Z)(Ee),"onNodeExpand",function(Ge,ft){var ct=Ee.state.expandedKeys,vt=Ee.state,kt=vt.listChanging,xt=vt.fieldNames,Et=Ee.props,gt=Et.onExpand,pt=Et.loadData,mt=ft.expanded,dt=ft[xt.key];if(!kt){var bt=ct.includes(dt),wt=!mt;if((0,ae.ZP)(mt&&bt||!mt&&!bt,"Expand state not sync with index check"),ct=wt?(0,ut.L0)(ct,dt):(0,ut._5)(ct,dt),Ee.setExpandedKeys(ct),gt==null||gt(ct,{node:ft,expanded:wt,nativeEvent:Ge.nativeEvent}),wt&&pt){var At=Ee.onNodeLoad(ft);At&&At.then(function(){var jt=(0,Me.oH)(Ee.state.treeData,ct,xt);Ee.setUncontrolledState({flattenNodes:jt})}).catch(function(){var jt=Ee.state.expandedKeys,Zt=(0,ut._5)(jt,dt);Ee.setExpandedKeys(Zt)})}}}),(0,ee.Z)((0,z.Z)(Ee),"onListChangeStart",function(){Ee.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,z.Z)(Ee),"onListChangeEnd",function(){setTimeout(function(){Ee.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,z.Z)(Ee),"onActiveChange",function(Ge){var ft=Ee.state.activeKey,ct=Ee.props,vt=ct.onActiveChange,kt=ct.itemScrollOffset,xt=kt===void 0?0:kt;ft!==Ge&&(Ee.setState({activeKey:Ge}),Ge!==null&&Ee.scrollTo({key:Ge,offset:xt}),vt==null||vt(Ge))}),(0,ee.Z)((0,z.Z)(Ee),"getActiveItem",function(){var Ge=Ee.state,ft=Ge.activeKey,ct=Ge.flattenNodes;return ft===null?null:ct.find(function(vt){var kt=vt.key;return kt===ft})||null}),(0,ee.Z)((0,z.Z)(Ee),"offsetActiveKey",function(Ge){var ft=Ee.state,ct=ft.flattenNodes,vt=ft.activeKey,kt=ct.findIndex(function(gt){var pt=gt.key;return pt===vt});kt===-1&&Ge<0&&(kt=ct.length),kt=(kt+Ge+ct.length)%ct.length;var xt=ct[kt];if(xt){var Et=xt.key;Ee.onActiveChange(Et)}else Ee.onActiveChange(null)}),(0,ee.Z)((0,z.Z)(Ee),"onKeyDown",function(Ge){var ft=Ee.state,ct=ft.activeKey,vt=ft.expandedKeys,kt=ft.checkedKeys,xt=ft.fieldNames,Et=Ee.props,gt=Et.onKeyDown,pt=Et.checkable,mt=Et.selectable;switch(Ge.which){case te.Z.UP:{Ee.offsetActiveKey(-1),Ge.preventDefault();break}case te.Z.DOWN:{Ee.offsetActiveKey(1),Ge.preventDefault();break}}var dt=Ee.getActiveItem();if(dt&&dt.data){var bt=Ee.getTreeNodeRequiredProps(),wt=dt.data.isLeaf===!1||!!(dt.data[xt.children]||[]).length,At=(0,Me.F)((0,y.Z)((0,y.Z)({},(0,Me.H8)(ct,bt)),{},{data:dt.data,active:!0}));switch(Ge.which){case te.Z.LEFT:{wt&&vt.includes(ct)?Ee.onNodeExpand({},At):dt.parent&&Ee.onActiveChange(dt.parent.key),Ge.preventDefault();break}case te.Z.RIGHT:{wt&&!vt.includes(ct)?Ee.onNodeExpand({},At):dt.children&&dt.children.length&&Ee.onActiveChange(dt.children[0].key),Ge.preventDefault();break}case te.Z.ENTER:case te.Z.SPACE:{pt&&!At.disabled&&At.checkable!==!1&&!At.disableCheckbox?Ee.onNodeCheck({},At,!kt.includes(ct)):!pt&&mt&&!At.disabled&&At.selectable!==!1&&Ee.onNodeSelect({},At);break}}}gt==null||gt(Ge)}),(0,ee.Z)((0,z.Z)(Ee),"setUncontrolledState",function(Ge){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ee.destroyed){var vt=!1,kt=!0,xt={};Object.keys(Ge).forEach(function(Et){if(Ee.props.hasOwnProperty(Et)){kt=!1;return}vt=!0,xt[Et]=Ge[Et]}),vt&&(!ft||kt)&&Ee.setState((0,y.Z)((0,y.Z)({},xt),ct))}}),(0,ee.Z)((0,z.Z)(Ee),"scrollTo",function(Ge){Ee.listRef.current.scrollTo(Ge)}),Ee}return(0,E.Z)(we,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Oe=this.props,Ue=Oe.activeKey,tt=Oe.itemScrollOffset,Ge=tt===void 0?0:tt;Ue!==void 0&&Ue!==this.state.activeKey&&(this.setState({activeKey:Ue}),Ue!==null&&this.scrollTo({key:Ue,offset:Ge}))}},{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 Oe=this.state,Ue=Oe.focused,tt=Oe.flattenNodes,Ge=Oe.keyEntities,ft=Oe.draggingNodeKey,ct=Oe.activeKey,vt=Oe.dropLevelOffset,kt=Oe.dropContainerKey,xt=Oe.dropTargetKey,Et=Oe.dropPosition,gt=Oe.dragOverNodeKey,pt=Oe.indent,mt=this.props,dt=mt.prefixCls,bt=mt.className,wt=mt.style,At=mt.showLine,jt=mt.focusable,Zt=mt.tabIndex,Wt=Zt===void 0?0:Zt,$t=mt.selectable,Er=mt.showIcon,vr=mt.icon,Ht=mt.switcherIcon,er=mt.draggable,or=mt.checkable,hr=mt.checkStrictly,Qt=mt.disabled,sr=mt.motion,Ir=mt.loadData,Jt=mt.filterTreeNode,Kt=mt.height,It=mt.itemHeight,Rt=mt.scrollWidth,Bt=mt.virtual,Vt=mt.titleRender,lr=mt.dropIndicatorRender,wr=mt.onContextMenu,Ut=mt.onScroll,Or=mt.direction,_r=mt.rootClassName,Pr=mt.rootStyle,Dr=(0,re.Z)(this.props,{aria:!0,data:!0}),yr;er&&((0,yt.Z)(er)==="object"?yr=er:typeof er=="function"?yr={nodeDraggable:er}:yr={});var qt={prefixCls:dt,selectable:$t,showIcon:Er,icon:vr,switcherIcon:Ht,draggable:yr,draggingNodeKey:ft,checkable:or,checkStrictly:hr,disabled:Qt,keyEntities:Ge,dropLevelOffset:vt,dropContainerKey:kt,dropTargetKey:xt,dropPosition:Et,dragOverNodeKey:gt,indent:pt,direction:Or,dropIndicatorRender:lr,loadData:Ir,filterTreeNode:Jt,titleRender:Vt,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 ue.createElement(he.k.Provider,{value:qt},ue.createElement("div",{className:x()(dt,bt,_r,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(dt,"-show-line"),At),"".concat(dt,"-focused"),Ue),"".concat(dt,"-active-focused"),ct!==null)),style:Pr},ue.createElement(Qe,(0,Ze.Z)({ref:this.listRef,prefixCls:dt,style:wt,data:tt,disabled:Qt,selectable:$t,checkable:!!or,motion:sr,dragging:ft!==null,height:Kt,itemHeight:It,virtual:Bt,focusable:jt,focused:Ue,tabIndex:Wt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wr,onScroll:Ut,scrollWidth:Rt},this.getTreeNodeRequiredProps(),Dr))))}}],[{key:"getDerivedStateFromProps",value:function(Oe,Ue){var tt=Ue.prevProps,Ge={prevProps:Oe};function ft(Wt){return!tt&&Oe.hasOwnProperty(Wt)||tt&&tt[Wt]!==Oe[Wt]}var ct,vt=Ue.fieldNames;if(ft("fieldNames")&&(vt=(0,Me.w$)(Oe.fieldNames),Ge.fieldNames=vt),ft("treeData")?ct=Oe.treeData:ft("children")&&((0,ae.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ct=(0,Me.zn)(Oe.children)),ct){Ge.treeData=ct;var kt=(0,Me.I8)(ct,{fieldNames:vt});Ge.keyEntities=(0,y.Z)((0,ee.Z)({},We,nt),kt.keyEntities)}var xt=Ge.keyEntities||Ue.keyEntities;if(ft("expandedKeys")||tt&&ft("autoExpandParent"))Ge.expandedKeys=Oe.autoExpandParent||!tt&&Oe.defaultExpandParent?(0,ut.r7)(Oe.expandedKeys,xt):Oe.expandedKeys;else if(!tt&&Oe.defaultExpandAll){var Et=(0,y.Z)({},xt);delete Et[We];var gt=[];Object.keys(Et).forEach(function(Wt){var $t=Et[Wt];$t.children&&$t.children.length&&gt.push($t.key)}),Ge.expandedKeys=gt}else!tt&&Oe.defaultExpandedKeys&&(Ge.expandedKeys=Oe.autoExpandParent||Oe.defaultExpandParent?(0,ut.r7)(Oe.defaultExpandedKeys,xt):Oe.defaultExpandedKeys);if(Ge.expandedKeys||delete Ge.expandedKeys,ct||Ge.expandedKeys){var pt=(0,Me.oH)(ct||Ue.treeData,Ge.expandedKeys||Ue.expandedKeys,vt);Ge.flattenNodes=pt}if(Oe.selectable&&(ft("selectedKeys")?Ge.selectedKeys=(0,ut.BT)(Oe.selectedKeys,Oe):!tt&&Oe.defaultSelectedKeys&&(Ge.selectedKeys=(0,ut.BT)(Oe.defaultSelectedKeys,Oe))),Oe.checkable){var mt;if(ft("checkedKeys")?mt=(0,ut.E6)(Oe.checkedKeys)||{}:!tt&&Oe.defaultCheckedKeys?mt=(0,ut.E6)(Oe.defaultCheckedKeys)||{}:ct&&(mt=(0,ut.E6)(Oe.checkedKeys)||{checkedKeys:Ue.checkedKeys,halfCheckedKeys:Ue.halfCheckedKeys}),mt){var dt=mt,bt=dt.checkedKeys,wt=bt===void 0?[]:bt,At=dt.halfCheckedKeys,jt=At===void 0?[]:At;if(!Oe.checkStrictly){var Zt=(0,st.S)(wt,!0,xt);wt=Zt.checkedKeys,jt=Zt.halfCheckedKeys}Ge.checkedKeys=wt,Ge.halfCheckedKeys=jt}}return ft("loadedKeys")&&(Ge.loadedKeys=Oe.loadedKeys),Ge}}]),we}(ue.Component);(0,ee.Z)(je,"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:me,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(je,"TreeNode",be.Z);var ne=je,ce=ne},82661:function(Lt,Ot,ze){"use strict";ze.d(Ot,{BT:function(){return ue},E6:function(){return me},L0:function(){return ee},OM:function(){return ae},_5:function(){return se},r7:function(){return fe},wA:function(){return x},yx:function(){return de}});var Ze=ze(3300),yt=ze(34666),y=ze(48736),Se=ze(59301),ye=ze(639),E=ze(65065),z=ze(34061),oe=null;function se(ve,ke){if(!ve)return[];var Te=ve.slice(),Pe=Te.indexOf(ke);return Pe>=0&&Te.splice(Pe,1),Te}function ee(ve,ke){var Te=(ve||[]).slice();return Te.indexOf(ke)===-1&&Te.push(ke),Te}function de(ve){return ve.split("-")}function x(ve,ke){var Te=[],Pe=(0,E.Z)(ke,ve);function _e(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];be.forEach(function(xe){var Ae=xe.key,Me=xe.children;Te.push(Ae),_e(Me)})}return _e(Pe.children),Te}function te(ve){if(ve.parent){var ke=de(ve.pos);return Number(ke[ke.length-1])===ve.parent.children.length-1}return!1}function re(ve){var ke=de(ve.pos);return Number(ke[ke.length-1])===0}function ae(ve,ke,Te,Pe,_e,be,xe,Ae,Me,Be){var Ce,De=ve.clientX,He=ve.clientY,Ke=ve.target.getBoundingClientRect(),Ye=Ke.top,it=Ke.height,Re=(Be==="rtl"?-1:1)*(((_e==null?void 0:_e.x)||0)-De),We=(Re-12)/Pe,et=Me.filter(function(ce){var Ie;return(Ie=Ae[ce])===null||Ie===void 0||(Ie=Ie.children)===null||Ie===void 0?void 0:Ie.length}),nt=(0,E.Z)(Ae,Te.eventKey);if(He<Ye+it/2){var rt=xe.findIndex(function(ce){return ce.key===nt.key}),Xe=rt<=0?0:rt-1,Je=xe[Xe].key;nt=(0,E.Z)(Ae,Je)}var Ve=nt.key,at=nt,Qe=nt.key,ut=0,st=0;if(!et.includes(Ve))for(var $e=0;$e<We&&te(nt);$e+=1)nt=nt.parent,st+=1;var Ne=ke.data,je=nt.node,ne=!0;return re(nt)&&nt.level===0&&He<Ye+it/2&&be({dragNode:Ne,dropNode:je,dropPosition:-1})&&nt.key===Te.eventKey?ut=-1:(at.children||[]).length&&et.includes(Qe)?be({dragNode:Ne,dropNode:je,dropPosition:0})?ut=0:ne=!1:st===0?We>-1.5?be({dragNode:Ne,dropNode:je,dropPosition:1})?ut=1:ne=!1:be({dragNode:Ne,dropNode:je,dropPosition:0})?ut=0:be({dragNode:Ne,dropNode:je,dropPosition:1})?ut=1:ne=!1:be({dragNode:Ne,dropNode:je,dropPosition:1})?ut=1:ne=!1,{dropPosition:ut,dropLevelOffset:st,dropTargetKey:nt.key,dropTargetPos:nt.pos,dragOverNodeKey:Qe,dropContainerKey:ut===0?null:((Ce=nt.parent)===null||Ce===void 0?void 0:Ce.key)||null,dropAllowed:ne}}function ue(ve,ke){if(ve){var Te=ke.multiple;return Te?ve.slice():ve.length?[ve[0]]:ve}}var he=function(ke){return ke};function pe(ve,ke){if(!ve)return[];var Te=ke||{},Pe=Te.processProps,_e=Pe===void 0?he:Pe,be=Array.isArray(ve)?ve:[ve];return be.map(function(xe){var Ae=xe.children,Me=_objectWithoutProperties(xe,oe),Be=pe(Ae,ke);return React.createElement(TreeNode,_extends({key:Me.key},_e(Me)),Be)})}function me(ve){if(!ve)return null;var ke;if(Array.isArray(ve))ke={checkedKeys:ve,halfCheckedKeys:void 0};else if((0,yt.Z)(ve)==="object")ke={checkedKeys:ve.checked||void 0,halfCheckedKeys:ve.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return ke}function fe(ve,ke){var Te=new Set;function Pe(_e){if(!Te.has(_e)){var be=(0,E.Z)(ke,_e);if(be){Te.add(_e);var xe=be.parent,Ae=be.node;Ae.disabled||xe&&Pe(xe.key)}}}return(ve||[]).forEach(function(_e){Pe(_e)}),(0,Ze.Z)(Te)}},34643:function(Lt,Ot,ze){"use strict";ze.d(Ot,{S:function(){return z}});var Ze=ze(48736),yt=ze(65065);function y(oe,se){var ee=new Set;return oe.forEach(function(de){se.has(de)||ee.add(de)}),ee}function Se(oe){var se=oe||{},ee=se.disabled,de=se.disableCheckbox,x=se.checkable;return!!(ee||de)||x===!1}function ye(oe,se,ee,de){for(var x=new Set(oe),te=new Set,re=0;re<=ee;re+=1){var ae=se.get(re)||new Set;ae.forEach(function(me){var fe=me.key,ve=me.node,ke=me.children,Te=ke===void 0?[]:ke;x.has(fe)&&!de(ve)&&Te.filter(function(Pe){return!de(Pe.node)}).forEach(function(Pe){x.add(Pe.key)})})}for(var ue=new Set,he=ee;he>=0;he-=1){var pe=se.get(he)||new Set;pe.forEach(function(me){var fe=me.parent,ve=me.node;if(!(de(ve)||!me.parent||ue.has(me.parent.key))){if(de(me.parent.node)){ue.add(fe.key);return}var ke=!0,Te=!1;(fe.children||[]).filter(function(Pe){return!de(Pe.node)}).forEach(function(Pe){var _e=Pe.key,be=x.has(_e);ke&&!be&&(ke=!1),!Te&&(be||te.has(_e))&&(Te=!0)}),ke&&x.add(fe.key),Te&&te.add(fe.key),ue.add(fe.key)}})}return{checkedKeys:Array.from(x),halfCheckedKeys:Array.from(y(te,x))}}function E(oe,se,ee,de,x){for(var te=new Set(oe),re=new Set(se),ae=0;ae<=de;ae+=1){var ue=ee.get(ae)||new Set;ue.forEach(function(fe){var ve=fe.key,ke=fe.node,Te=fe.children,Pe=Te===void 0?[]:Te;!te.has(ve)&&!re.has(ve)&&!x(ke)&&Pe.filter(function(_e){return!x(_e.node)}).forEach(function(_e){te.delete(_e.key)})})}re=new Set;for(var he=new Set,pe=de;pe>=0;pe-=1){var me=ee.get(pe)||new Set;me.forEach(function(fe){var ve=fe.parent,ke=fe.node;if(!(x(ke)||!fe.parent||he.has(fe.parent.key))){if(x(fe.parent.node)){he.add(ve.key);return}var Te=!0,Pe=!1;(ve.children||[]).filter(function(_e){return!x(_e.node)}).forEach(function(_e){var be=_e.key,xe=te.has(be);Te&&!xe&&(Te=!1),!Pe&&(xe||re.has(be))&&(Pe=!0)}),Te||te.delete(ve.key),Pe&&re.add(ve.key),he.add(ve.key)}})}return{checkedKeys:Array.from(te),halfCheckedKeys:Array.from(y(re,te))}}function z(oe,se,ee,de){var x=[],te;de?te=de:te=Se;var re=new Set(oe.filter(function(pe){var me=!!(0,yt.Z)(ee,pe);return me||x.push(pe),me})),ae=new Map,ue=0;Object.keys(ee).forEach(function(pe){var me=ee[pe],fe=me.level,ve=ae.get(fe);ve||(ve=new Set,ae.set(fe,ve)),ve.add(me),ue=Math.max(ue,fe)}),(0,Ze.ZP)(!x.length,"Tree missing follow keys: ".concat(x.slice(0,100).map(function(pe){return"'".concat(pe,"'")}).join(", ")));var he;return se===!0?he=ye(re,ae,ue,te):he=E(re,se.halfCheckedKeys,ae,ue,te),he}},65065:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return Ze}});function Ze(yt,y){return yt[y]}},34061:function(Lt,Ot,ze){"use strict";ze.d(Ot,{F:function(){return fe},H8:function(){return me},I8:function(){return pe},km:function(){return x},oH:function(){return ue},w$:function(){return te},zn:function(){return ae}});var Ze=ze(34666),yt=ze(3300),y=ze(27247),Se=ze(43079),ye=ze(11592),E=ze(2738),z=ze(48736),oe=ze(65065),se=["children"];function ee(ve,ke){return"".concat(ve,"-").concat(ke)}function de(ve){return ve&&ve.type&&ve.type.isTreeNode}function x(ve,ke){return ve!=null?ve:ke}function te(ve){var ke=ve||{},Te=ke.title,Pe=ke._title,_e=ke.key,be=ke.children,xe=Te||"title";return{title:xe,_title:Pe||[xe],key:_e||"key",children:be||"children"}}function re(ve,ke){var Te=new Map;function Pe(_e){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(_e||[]).forEach(function(xe){var Ae=xe[ke.key],Me=xe[ke.children];warning(Ae!=null,"Tree node must have a certain key: [".concat(be).concat(Ae,"]"));var Be=String(Ae);warning(!Te.has(Be)||Ae===null||Ae===void 0,"Same 'key' exist in the Tree: ".concat(Be)),Te.set(Be,!0),Pe(Me,"".concat(be).concat(Be," > "))})}Pe(ve)}function ae(ve){function ke(Te){var Pe=(0,ye.Z)(Te);return Pe.map(function(_e){if(!de(_e))return(0,z.ZP)(!_e,"Tree/TreeNode can only accept TreeNode as children."),null;var be=_e.key,xe=_e.props,Ae=xe.children,Me=(0,Se.Z)(xe,se),Be=(0,y.Z)({key:be},Me),Ce=ke(Ae);return Ce.length&&(Be.children=Ce),Be}).filter(function(_e){return _e})}return ke(ve)}function ue(ve,ke,Te){var Pe=te(Te),_e=Pe._title,be=Pe.key,xe=Pe.children,Ae=new Set(ke===!0?[]:ke),Me=[];function Be(Ce){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ce.map(function(He,Ke){for(var Ye=ee(De?De.pos:"0",Ke),it=x(He[be],Ye),Re,We=0;We<_e.length;We+=1){var et=_e[We];if(He[et]!==void 0){Re=He[et];break}}var nt=Object.assign((0,E.Z)(He,[].concat((0,yt.Z)(_e),[be,xe])),{title:Re,key:it,parent:De,pos:Ye,children:null,data:He,isStart:[].concat((0,yt.Z)(De?De.isStart:[]),[Ke===0]),isEnd:[].concat((0,yt.Z)(De?De.isEnd:[]),[Ke===Ce.length-1])});return Me.push(nt),ke===!0||Ae.has(it)?nt.children=Be(He[xe]||[],nt):nt.children=[],nt})}return Be(ve),Me}function he(ve,ke,Te){var Pe={};(0,Ze.Z)(Te)==="object"?Pe=Te:Pe={externalGetKey:Te},Pe=Pe||{};var _e=Pe,be=_e.childrenPropName,xe=_e.externalGetKey,Ae=_e.fieldNames,Me=te(Ae),Be=Me.key,Ce=Me.children,De=be||Ce,He;xe?typeof xe=="string"?He=function(it){return it[xe]}:typeof xe=="function"&&(He=function(it){return xe(it)}):He=function(it,Re){return x(it[Be],Re)};function Ke(Ye,it,Re,We){var et=Ye?Ye[De]:ve,nt=Ye?ee(Re.pos,it):"0",rt=Ye?[].concat((0,yt.Z)(We),[Ye]):[];if(Ye){var Xe=He(Ye,nt),Je={node:Ye,index:it,pos:nt,key:Xe,parentPos:Re.node?Re.pos:null,level:Re.level+1,nodes:rt};ke(Je)}et&&et.forEach(function(Ve,at){Ke(Ve,at,{node:Ye,pos:nt,level:Re?Re.level+1:-1},rt)})}Ke(null)}function pe(ve){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=ke.initWrapper,Pe=ke.processEntity,_e=ke.onProcessFinished,be=ke.externalGetKey,xe=ke.childrenPropName,Ae=ke.fieldNames,Me=arguments.length>2?arguments[2]:void 0,Be=be||Me,Ce={},De={},He={posEntities:Ce,keyEntities:De};return Te&&(He=Te(He)||He),he(ve,function(Ke){var Ye=Ke.node,it=Ke.index,Re=Ke.pos,We=Ke.key,et=Ke.parentPos,nt=Ke.level,rt=Ke.nodes,Xe={node:Ye,nodes:rt,index:it,key:We,pos:Re,level:nt},Je=x(We,Re);Ce[Re]=Xe,De[Je]=Xe,Xe.parent=Ce[et],Xe.parent&&(Xe.parent.children=Xe.parent.children||[],Xe.parent.children.push(Xe)),Pe&&Pe(Xe,He)},{externalGetKey:Be,childrenPropName:xe,fieldNames:Ae}),_e&&_e(He),He}function me(ve,ke){var Te=ke.expandedKeys,Pe=ke.selectedKeys,_e=ke.loadedKeys,be=ke.loadingKeys,xe=ke.checkedKeys,Ae=ke.halfCheckedKeys,Me=ke.dragOverNodeKey,Be=ke.dropPosition,Ce=ke.keyEntities,De=(0,oe.Z)(Ce,ve),He={eventKey:ve,expanded:Te.indexOf(ve)!==-1,selected:Pe.indexOf(ve)!==-1,loaded:_e.indexOf(ve)!==-1,loading:be.indexOf(ve)!==-1,checked:xe.indexOf(ve)!==-1,halfChecked:Ae.indexOf(ve)!==-1,pos:String(De?De.pos:""),dragOver:Me===ve&&Be===0,dragOverGapTop:Me===ve&&Be===-1,dragOverGapBottom:Me===ve&&Be===1};return He}function fe(ve){var ke=ve.data,Te=ve.expanded,Pe=ve.selected,_e=ve.checked,be=ve.loaded,xe=ve.loading,Ae=ve.halfChecked,Me=ve.dragOver,Be=ve.dragOverGapTop,Ce=ve.dragOverGapBottom,De=ve.pos,He=ve.active,Ke=ve.eventKey,Ye=(0,y.Z)((0,y.Z)({},ke),{},{expanded:Te,selected:Pe,checked:_e,loaded:be,loading:xe,halfChecked:Ae,dragOver:Me,dragOverGapTop:Be,dragOverGapBottom:Ce,pos:De,active:He,key:Ke});return"props"in Ye||Object.defineProperty(Ye,"props",{get:function(){return(0,z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ve}}),Ye}},90472:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return Ke}});var Ze=ze(32855),yt=ze(33377),y=ze(93912),Se=ze(83383),ye=ze(18881),E=ze(85461),z=ze(74430),oe=ze(59301),se=ze(27247),ee=ze(43079),de=ze(34666),x=ze(13932),te=ze(68702),re=ze(3300),ae=ze(92310),ue=ze.n(ae),he=ze(26112),pe=ze(48736),me=function(Ye,it){if(Ye&&it){var Re=Array.isArray(it)?it:it.split(","),We=Ye.name||"",et=Ye.type||"",nt=et.replace(/\/.*$/,"");return Re.some(function(rt){var Xe=rt.trim();if(/^\*(\/\*)?$/.test(rt))return!0;if(Xe.charAt(0)==="."){var Je=We.toLowerCase(),Ve=Xe.toLowerCase(),at=[Ve];return(Ve===".jpg"||Ve===".jpeg")&&(at=[".jpg",".jpeg"]),at.some(function(Qe){return Je.endsWith(Qe)})}return/\/\*$/.test(Xe)?nt===Xe.replace(/\/.*$/,""):et===Xe?!0:/^\w+$/.test(Xe)?((0,pe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xe,"'.Skip for check.")),!0):!1})}return!0};function fe(Ye,it){var Re="cannot ".concat(Ye.method," ").concat(Ye.action," ").concat(it.status,"'"),We=new Error(Re);return We.status=it.status,We.method=Ye.method,We.url=Ye.action,We}function ve(Ye){var it=Ye.responseText||Ye.response;if(!it)return it;try{return JSON.parse(it)}catch(Re){return it}}function ke(Ye){var it=new XMLHttpRequest;Ye.onProgress&&it.upload&&(it.upload.onprogress=function(nt){nt.total>0&&(nt.percent=nt.loaded/nt.total*100),Ye.onProgress(nt)});var Re=new FormData;Ye.data&&Object.keys(Ye.data).forEach(function(et){var nt=Ye.data[et];if(Array.isArray(nt)){nt.forEach(function(rt){Re.append("".concat(et,"[]"),rt)});return}Re.append(et,nt)}),Ye.file instanceof Blob?Re.append(Ye.filename,Ye.file,Ye.file.name):Re.append(Ye.filename,Ye.file),it.onerror=function(nt){Ye.onError(nt)},it.onload=function(){return it.status<200||it.status>=300?Ye.onError(fe(Ye,it),ve(it)):Ye.onSuccess(ve(it),it)},it.open(Ye.method,Ye.action,!0),Ye.withCredentials&&"withCredentials"in it&&(it.withCredentials=!0);var We=Ye.headers||{};return We["X-Requested-With"]!==null&&it.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(We).forEach(function(et){We[et]!==null&&it.setRequestHeader(et,We[et])}),it.send(Re),{abort:function(){it.abort()}}}var Te=function(){var Ye=(0,te.Z)((0,x.Z)().mark(function it(Re,We){var et,nt,rt,Xe,Je,Ve,at,Qe;return(0,x.Z)().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:Ve=function(){return Ve=(0,te.Z)((0,x.Z)().mark(function Ne(je){return(0,x.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.abrupt("return",new Promise(function(Ie){je.file(function(Fe){We(Fe)?(je.fullPath&&!Fe.webkitRelativePath&&(Object.defineProperties(Fe,{webkitRelativePath:{writable:!0}}),Fe.webkitRelativePath=je.fullPath.replace(/^\//,""),Object.defineProperties(Fe,{webkitRelativePath:{writable:!1}})),Ie(Fe)):Ie(null)})}));case 1:case"end":return ce.stop()}},Ne)})),Ve.apply(this,arguments)},Je=function(Ne){return Ve.apply(this,arguments)},Xe=function(){return Xe=(0,te.Z)((0,x.Z)().mark(function Ne(je){var ne,ce,Ie,Fe,we;return(0,x.Z)().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:ne=je.createReader(),ce=[];case 2:return Oe.next=5,new Promise(function(Ue){ne.readEntries(Ue,function(){return Ue([])})});case 5:if(Ie=Oe.sent,Fe=Ie.length,Fe){Oe.next=9;break}return Oe.abrupt("break",12);case 9:for(we=0;we<Fe;we++)ce.push(Ie[we]);Oe.next=2;break;case 12:return Oe.abrupt("return",ce);case 13:case"end":return Oe.stop()}},Ne)})),Xe.apply(this,arguments)},rt=function(Ne){return Xe.apply(this,arguments)},et=[],nt=[],Re.forEach(function($e){return nt.push($e.webkitGetAsEntry())}),at=function(){var $e=(0,te.Z)((0,x.Z)().mark(function Ne(je,ne){var ce,Ie;return(0,x.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(je){we.next=2;break}return we.abrupt("return");case 2:if(je.path=ne||"",!je.isFile){we.next=10;break}return we.next=6,Je(je);case 6:ce=we.sent,ce&&et.push(ce),we.next=15;break;case 10:if(!je.isDirectory){we.next=15;break}return we.next=13,rt(je);case 13:Ie=we.sent,nt.push.apply(nt,(0,re.Z)(Ie));case 15:case"end":return we.stop()}},Ne)}));return function(je,ne){return $e.apply(this,arguments)}}(),Qe=0;case 9:if(!(Qe<nt.length)){st.next=15;break}return st.next=12,at(nt[Qe]);case 12:Qe++,st.next=9;break;case 15:return st.abrupt("return",et);case 16:case"end":return st.stop()}},it)}));return function(Re,We){return Ye.apply(this,arguments)}}(),Pe=Te,_e=+new Date,be=0;function xe(){return"rc-upload-".concat(_e,"-").concat(++be)}var Ae=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Me=function(Ye){(0,ye.Z)(Re,Ye);var it=(0,E.Z)(Re);function Re(){var We;(0,yt.Z)(this,Re);for(var et=arguments.length,nt=new Array(et),rt=0;rt<et;rt++)nt[rt]=arguments[rt];return We=it.call.apply(it,[this].concat(nt)),(0,z.Z)((0,Se.Z)(We),"state",{uid:xe()}),(0,z.Z)((0,Se.Z)(We),"reqs",{}),(0,z.Z)((0,Se.Z)(We),"fileInput",void 0),(0,z.Z)((0,Se.Z)(We),"_isMounted",void 0),(0,z.Z)((0,Se.Z)(We),"onChange",function(Xe){var Je=We.props,Ve=Je.accept,at=Je.directory,Qe=Xe.target.files,ut=(0,re.Z)(Qe).filter(function(st){return!at||me(st,Ve)});We.uploadFiles(ut),We.reset()}),(0,z.Z)((0,Se.Z)(We),"onClick",function(Xe){var Je=We.fileInput;if(Je){var Ve=Xe.target,at=We.props.onClick;if(Ve&&Ve.tagName==="BUTTON"){var Qe=Je.parentNode;Qe.focus(),Ve.blur()}Je.click(),at&&at(Xe)}}),(0,z.Z)((0,Se.Z)(We),"onKeyDown",function(Xe){Xe.key==="Enter"&&We.onClick(Xe)}),(0,z.Z)((0,Se.Z)(We),"onFileDrop",function(){var Xe=(0,te.Z)((0,x.Z)().mark(function Je(Ve){var at,Qe,ut;return(0,x.Z)().wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(at=We.props.multiple,Ve.preventDefault(),Ve.type!=="dragover"){$e.next=4;break}return $e.abrupt("return");case 4:if(!We.props.directory){$e.next=11;break}return $e.next=7,Pe(Array.prototype.slice.call(Ve.dataTransfer.items),function(Ne){return me(Ne,We.props.accept)});case 7:Qe=$e.sent,We.uploadFiles(Qe),$e.next=14;break;case 11:ut=(0,re.Z)(Ve.dataTransfer.files).filter(function(Ne){return me(Ne,We.props.accept)}),at===!1&&(ut=ut.slice(0,1)),We.uploadFiles(ut);case 14:case"end":return $e.stop()}},Je)}));return function(Je){return Xe.apply(this,arguments)}}()),(0,z.Z)((0,Se.Z)(We),"uploadFiles",function(Xe){var Je=(0,re.Z)(Xe),Ve=Je.map(function(at){return at.uid=xe(),We.processFile(at,Je)});Promise.all(Ve).then(function(at){var Qe=We.props.onBatchStart;Qe==null||Qe(at.map(function(ut){var st=ut.origin,$e=ut.parsedFile;return{file:st,parsedFile:$e}})),at.filter(function(ut){return ut.parsedFile!==null}).forEach(function(ut){We.post(ut)})})}),(0,z.Z)((0,Se.Z)(We),"processFile",function(){var Xe=(0,te.Z)((0,x.Z)().mark(function Je(Ve,at){var Qe,ut,st,$e,Ne,je,ne,ce,Ie;return(0,x.Z)().wrap(function(we){for(;;)switch(we.prev=we.next){case 0:if(Qe=We.props.beforeUpload,ut=Ve,!Qe){we.next=14;break}return we.prev=3,we.next=6,Qe(Ve,at);case 6:ut=we.sent,we.next=12;break;case 9:we.prev=9,we.t0=we.catch(3),ut=!1;case 12:if(ut!==!1){we.next=14;break}return we.abrupt("return",{origin:Ve,parsedFile:null,action:null,data:null});case 14:if(st=We.props.action,typeof st!="function"){we.next=21;break}return we.next=18,st(Ve);case 18:$e=we.sent,we.next=22;break;case 21:$e=st;case 22:if(Ne=We.props.data,typeof Ne!="function"){we.next=29;break}return we.next=26,Ne(Ve);case 26:je=we.sent,we.next=30;break;case 29:je=Ne;case 30:return ne=((0,de.Z)(ut)==="object"||typeof ut=="string")&&ut?ut:Ve,ne instanceof File?ce=ne:ce=new File([ne],Ve.name,{type:Ve.type}),Ie=ce,Ie.uid=Ve.uid,we.abrupt("return",{origin:Ve,data:je,parsedFile:Ie,action:$e});case 35:case"end":return we.stop()}},Je,null,[[3,9]])}));return function(Je,Ve){return Xe.apply(this,arguments)}}()),(0,z.Z)((0,Se.Z)(We),"saveFileInput",function(Xe){We.fileInput=Xe}),We}return(0,y.Z)(Re,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(et){var nt=this,rt=et.data,Xe=et.origin,Je=et.action,Ve=et.parsedFile;if(this._isMounted){var at=this.props,Qe=at.onStart,ut=at.customRequest,st=at.name,$e=at.headers,Ne=at.withCredentials,je=at.method,ne=Xe.uid,ce=ut||ke,Ie={action:Je,filename:st,data:rt,file:Ve,headers:$e,withCredentials:Ne,method:je||"post",onProgress:function(we){var Ee=nt.props.onProgress;Ee==null||Ee(we,Ve)},onSuccess:function(we,Ee){var Oe=nt.props.onSuccess;Oe==null||Oe(we,Ve,Ee),delete nt.reqs[ne]},onError:function(we,Ee){var Oe=nt.props.onError;Oe==null||Oe(we,Ee,Ve),delete nt.reqs[ne]}};Qe(Xe),this.reqs[ne]=ce(Ie)}}},{key:"reset",value:function(){this.setState({uid:xe()})}},{key:"abort",value:function(et){var nt=this.reqs;if(et){var rt=et.uid?et.uid:et;nt[rt]&&nt[rt].abort&&nt[rt].abort(),delete nt[rt]}else Object.keys(nt).forEach(function(Xe){nt[Xe]&&nt[Xe].abort&&nt[Xe].abort(),delete nt[Xe]})}},{key:"render",value:function(){var et=this.props,nt=et.component,rt=et.prefixCls,Xe=et.className,Je=et.classNames,Ve=Je===void 0?{}:Je,at=et.disabled,Qe=et.id,ut=et.name,st=et.style,$e=et.styles,Ne=$e===void 0?{}:$e,je=et.multiple,ne=et.accept,ce=et.capture,Ie=et.children,Fe=et.directory,we=et.openFileDialogOnClick,Ee=et.onMouseEnter,Oe=et.onMouseLeave,Ue=et.hasControlInside,tt=(0,ee.Z)(et,Ae),Ge=ue()((0,z.Z)((0,z.Z)((0,z.Z)({},rt,!0),"".concat(rt,"-disabled"),at),Xe,Xe)),ft=Fe?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ct=at?{}:{onClick:we?this.onClick:function(){},onKeyDown:we?this.onKeyDown:function(){},onMouseEnter:Ee,onMouseLeave:Oe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Ue?void 0:"0"};return oe.createElement(nt,(0,Ze.Z)({},ct,{className:Ge,role:Ue?void 0:"button",style:st}),oe.createElement("input",(0,Ze.Z)({},(0,he.Z)(tt,{aria:!0,data:!0}),{id:Qe,name:ut,disabled:at,type:"file",ref:this.saveFileInput,onClick:function(kt){return kt.stopPropagation()},key:this.state.uid,style:(0,se.Z)({display:"none"},Ne.input),className:Ve.input,accept:ne},ft,{multiple:je,onChange:this.onChange},ce!=null?{capture:ce}:{})),Ie)}}]),Re}(oe.Component),Be=Me;function Ce(){}var De=function(Ye){(0,ye.Z)(Re,Ye);var it=(0,E.Z)(Re);function Re(){var We;(0,yt.Z)(this,Re);for(var et=arguments.length,nt=new Array(et),rt=0;rt<et;rt++)nt[rt]=arguments[rt];return We=it.call.apply(it,[this].concat(nt)),(0,z.Z)((0,Se.Z)(We),"uploader",void 0),(0,z.Z)((0,Se.Z)(We),"saveUploader",function(Xe){We.uploader=Xe}),We}return(0,y.Z)(Re,[{key:"abort",value:function(et){this.uploader.abort(et)}},{key:"render",value:function(){return oe.createElement(Be,(0,Ze.Z)({},this.props,{ref:this.saveUploader}))}}]),Re}(oe.Component);(0,z.Z)(De,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ce,onError:Ce,onSuccess:Ce,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var He=De,Ke=He},6790:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return Ne}});var Ze=ze(32855),yt=ze(34666),y=ze(27247),Se=ze(74430),ye=ze(11913),E=ze(43079),z=ze(92310),oe=ze.n(z),se=ze(29301),ee=ze(70425),de=ze(34280),x=ze(59301),te=ze(4676),re=x.forwardRef(function(je,ne){var ce=je.height,Ie=je.offsetY,Fe=je.offsetX,we=je.children,Ee=je.prefixCls,Oe=je.onInnerResize,Ue=je.innerProps,tt=je.rtl,Ge=je.extra,ft={},ct={display:"flex",flexDirection:"column"};return Ie!==void 0&&(ft={height:ce,position:"relative",overflow:"hidden"},ct=(0,y.Z)((0,y.Z)({},ct),{},(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({transform:"translateY(".concat(Ie,"px)")},tt?"marginRight":"marginLeft",-Fe),"position","absolute"),"left",0),"right",0),"top",0))),x.createElement("div",{style:ft},x.createElement(se.Z,{onResize:function(kt){var xt=kt.offsetHeight;xt&&Oe&&Oe()}},x.createElement("div",(0,Ze.Z)({style:ct,className:oe()((0,Se.Z)({},"".concat(Ee,"-holder-inner"),Ee)),ref:ne},Ue),we,Ge)))});re.displayName="Filler";var ae=re;function ue(je){var ne=je.children,ce=je.setRef,Ie=x.useCallback(function(Fe){ce(Fe)},[]);return x.cloneElement(ne,{ref:Ie})}function he(je,ne,ce,Ie,Fe,we,Ee,Oe){var Ue=Oe.getKey;return je.slice(ne,ce+1).map(function(tt,Ge){var ft=ne+Ge,ct=Ee(tt,ft,{style:{width:Ie},offsetX:Fe}),vt=Ue(tt);return x.createElement(ue,{key:vt,setRef:function(xt){return we(tt,xt)}},ct)})}function pe(je,ne,ce,Ie){var Fe=ce-je,we=ne-ce,Ee=Math.min(Fe,we)*2;if(Ie<=Ee){var Oe=Math.floor(Ie/2);return Ie%2?ce+Oe+1:ce-Oe}return Fe>we?ce-(Ie-we):ce+(Ie-Fe)}function me(je,ne,ce){var Ie=je.length,Fe=ne.length,we,Ee;if(Ie===0&&Fe===0)return null;Ie<Fe?(we=je,Ee=ne):(we=ne,Ee=je);var Oe={__EMPTY_ITEM__:!0};function Ue(kt){return kt!==void 0?ce(kt):Oe}for(var tt=null,Ge=Math.abs(Ie-Fe)!==1,ft=0;ft<Ee.length;ft+=1){var ct=Ue(we[ft]),vt=Ue(Ee[ft]);if(ct!==vt){tt=ft,Ge=Ge||ct!==Ue(Ee[ft+1]);break}}return tt===null?null:{index:tt,multiple:Ge}}function fe(je,ne,ce){var Ie=x.useState(je),Fe=(0,ye.Z)(Ie,2),we=Fe[0],Ee=Fe[1],Oe=x.useState(null),Ue=(0,ye.Z)(Oe,2),tt=Ue[0],Ge=Ue[1];return x.useEffect(function(){var ft=me(we||[],je||[],ne);(ft==null?void 0:ft.index)!==void 0&&(ce==null||ce(ft.index),Ge(je[ft.index])),Ee(je)},[je]),[tt]}var ve=ze(16089),ke=(typeof navigator=="undefined"?"undefined":(0,yt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Te=ke,Pe=function(je,ne,ce,Ie){var Fe=(0,x.useRef)(!1),we=(0,x.useRef)(null);function Ee(){clearTimeout(we.current),Fe.current=!0,we.current=setTimeout(function(){Fe.current=!1},50)}var Oe=(0,x.useRef)({top:je,bottom:ne,left:ce,right:Ie});return Oe.current.top=je,Oe.current.bottom=ne,Oe.current.left=ce,Oe.current.right=Ie,function(Ue,tt){var Ge=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ft=Ue?tt<0&&Oe.current.left||tt>0&&Oe.current.right:tt<0&&Oe.current.top||tt>0&&Oe.current.bottom;return Ge&&ft?(clearTimeout(we.current),Fe.current=!1):(!ft||Fe.current)&&Ee(),!Fe.current&&ft}};function _e(je,ne,ce,Ie,Fe,we,Ee){var Oe=(0,x.useRef)(0),Ue=(0,x.useRef)(null),tt=(0,x.useRef)(null),Ge=(0,x.useRef)(!1),ft=Pe(ne,ce,Ie,Fe);function ct(pt,mt){if(ve.Z.cancel(Ue.current),!ft(!1,mt)){var dt=pt;if(!dt._virtualHandled)dt._virtualHandled=!0;else return;Oe.current+=mt,tt.current=mt,Te||dt.preventDefault(),Ue.current=(0,ve.Z)(function(){var bt=Ge.current?10:1;Ee(Oe.current*bt,!1),Oe.current=0})}}function vt(pt,mt){Ee(mt,!0),Te||pt.preventDefault()}var kt=(0,x.useRef)(null),xt=(0,x.useRef)(null);function Et(pt){if(je){ve.Z.cancel(xt.current),xt.current=(0,ve.Z)(function(){kt.current=null},2);var mt=pt.deltaX,dt=pt.deltaY,bt=pt.shiftKey,wt=mt,At=dt;(kt.current==="sx"||!kt.current&&bt&&dt&&!mt)&&(wt=dt,At=0,kt.current="sx");var jt=Math.abs(wt),Zt=Math.abs(At);kt.current===null&&(kt.current=we&&jt>Zt?"x":"y"),kt.current==="y"?ct(pt,At):vt(pt,wt)}}function gt(pt){je&&(Ge.current=pt.detail===tt.current)}return[Et,gt]}function be(je,ne,ce,Ie){var Fe=x.useMemo(function(){return[new Map,[]]},[je,ce.id,Ie]),we=(0,ye.Z)(Fe,2),Ee=we[0],Oe=we[1],Ue=function(Ge){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ge,ct=Ee.get(Ge),vt=Ee.get(ft);if(ct===void 0||vt===void 0)for(var kt=je.length,xt=Oe.length;xt<kt;xt+=1){var Et,gt=je[xt],pt=ne(gt);Ee.set(pt,xt);var mt=(Et=ce.get(pt))!==null&&Et!==void 0?Et:Ie;if(Oe[xt]=(Oe[xt-1]||0)+mt,pt===Ge&&(ct=xt),pt===ft&&(vt=xt),ct!==void 0&&vt!==void 0)break}return{top:Oe[ct-1]||0,bottom:Oe[vt]}};return Ue}var xe=ze(33377),Ae=ze(93912),Me=function(){function je(){(0,xe.Z)(this,je),(0,Se.Z)(this,"maps",void 0),(0,Se.Z)(this,"id",0),(0,Se.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ae.Z)(je,[{key:"set",value:function(ce,Ie){this.diffRecords.set(ce,this.maps[ce]),this.maps[ce]=Ie,this.id+=1}},{key:"get",value:function(ce){return this.maps[ce]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),je}(),Be=Me;function Ce(je){var ne=parseFloat(je);return isNaN(ne)?0:ne}function De(je,ne,ce){var Ie=x.useState(0),Fe=(0,ye.Z)(Ie,2),we=Fe[0],Ee=Fe[1],Oe=(0,x.useRef)(new Map),Ue=(0,x.useRef)(new Be),tt=(0,x.useRef)(0);function Ge(){tt.current+=1}function ft(){var vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ge();var kt=function(){var gt=!1;Oe.current.forEach(function(pt,mt){if(pt&&pt.offsetParent){var dt=pt.offsetHeight,bt=getComputedStyle(pt),wt=bt.marginTop,At=bt.marginBottom,jt=Ce(wt),Zt=Ce(At),Wt=dt+jt+Zt;Ue.current.get(mt)!==Wt&&(Ue.current.set(mt,Wt),gt=!0)}}),gt&&Ee(function(pt){return pt+1})};if(vt)kt();else{tt.current+=1;var xt=tt.current;Promise.resolve().then(function(){xt===tt.current&&kt()})}}function ct(vt,kt){var xt=je(vt),Et=Oe.current.get(xt);kt?(Oe.current.set(xt,kt),ft()):Oe.current.delete(xt),!Et!=!kt&&(kt?ne==null||ne(vt):ce==null||ce(vt))}return(0,x.useEffect)(function(){return Ge},[]),[ct,ft,Ue.current,we]}var He=14/15;function Ke(je,ne,ce){var Ie=(0,x.useRef)(!1),Fe=(0,x.useRef)(0),we=(0,x.useRef)(0),Ee=(0,x.useRef)(null),Oe=(0,x.useRef)(null),Ue,tt=function(vt){if(Ie.current){var kt=Math.ceil(vt.touches[0].pageX),xt=Math.ceil(vt.touches[0].pageY),Et=Fe.current-kt,gt=we.current-xt,pt=Math.abs(Et)>Math.abs(gt);pt?Fe.current=kt:we.current=xt;var mt=ce(pt,pt?Et:gt,!1,vt);mt&&vt.preventDefault(),clearInterval(Oe.current),mt&&(Oe.current=setInterval(function(){pt?Et*=He:gt*=He;var dt=Math.floor(pt?Et:gt);(!ce(pt,dt,!0)||Math.abs(dt)<=.1)&&clearInterval(Oe.current)},16))}},Ge=function(){Ie.current=!1,Ue()},ft=function(vt){Ue(),vt.touches.length===1&&!Ie.current&&(Ie.current=!0,Fe.current=Math.ceil(vt.touches[0].pageX),we.current=Math.ceil(vt.touches[0].pageY),Ee.current=vt.target,Ee.current.addEventListener("touchmove",tt,{passive:!1}),Ee.current.addEventListener("touchend",Ge,{passive:!0}))};Ue=function(){Ee.current&&(Ee.current.removeEventListener("touchmove",tt),Ee.current.removeEventListener("touchend",Ge))},(0,de.Z)(function(){return je&&ne.current.addEventListener("touchstart",ft,{passive:!0}),function(){var ct;(ct=ne.current)===null||ct===void 0||ct.removeEventListener("touchstart",ft),Ue(),clearInterval(Oe.current)}},[je])}function Ye(je){return Math.floor(Math.pow(je,.5))}function it(je,ne){var ce="touches"in je?je.touches[0]:je;return ce[ne?"pageX":"pageY"]-window[ne?"scrollX":"scrollY"]}function Re(je,ne,ce){x.useEffect(function(){var Ie=ne.current;if(je&&Ie){var Fe=!1,we,Ee,Oe=function(){ve.Z.cancel(we)},Ue=function ct(){Oe(),we=(0,ve.Z)(function(){ce(Ee),ct()})},tt=function(vt){if(!(vt.target.draggable||vt.button!==0)){var kt=vt;kt._virtualHandled||(kt._virtualHandled=!0,Fe=!0)}},Ge=function(){Fe=!1,Oe()},ft=function(vt){if(Fe){var kt=it(vt,!1),xt=Ie.getBoundingClientRect(),Et=xt.top,gt=xt.bottom;if(kt<=Et){var pt=Et-kt;Ee=-Ye(pt),Ue()}else if(kt>=gt){var mt=kt-gt;Ee=Ye(mt),Ue()}else Oe()}};return Ie.addEventListener("mousedown",tt),Ie.ownerDocument.addEventListener("mouseup",Ge),Ie.ownerDocument.addEventListener("mousemove",ft),function(){Ie.removeEventListener("mousedown",tt),Ie.ownerDocument.removeEventListener("mouseup",Ge),Ie.ownerDocument.removeEventListener("mousemove",ft),Oe()}}},[je])}var We=10;function et(je,ne,ce,Ie,Fe,we,Ee,Oe){var Ue=x.useRef(),tt=x.useState(null),Ge=(0,ye.Z)(tt,2),ft=Ge[0],ct=Ge[1];return(0,de.Z)(function(){if(ft&&ft.times<We){if(!je.current){ct(function(sr){return(0,y.Z)({},sr)});return}we();var vt=ft.targetAlign,kt=ft.originAlign,xt=ft.index,Et=ft.offset,gt=je.current.clientHeight,pt=!1,mt=vt,dt=null;if(gt){for(var bt=vt||kt,wt=0,At=0,jt=0,Zt=Math.min(ne.length-1,xt),Wt=0;Wt<=Zt;Wt+=1){var $t=Fe(ne[Wt]);At=wt;var Er=ce.get($t);jt=At+(Er===void 0?Ie:Er),wt=jt}for(var vr=bt==="top"?Et:gt-Et,Ht=Zt;Ht>=0;Ht-=1){var er=Fe(ne[Ht]),or=ce.get(er);if(or===void 0){pt=!0;break}if(vr-=or,vr<=0)break}switch(bt){case"top":dt=At-Et;break;case"bottom":dt=jt-gt+Et;break;default:{var hr=je.current.scrollTop,Qt=hr+gt;At<hr?mt="top":jt>Qt&&(mt="bottom")}}dt!==null&&Ee(dt),dt!==ft.lastTop&&(pt=!0)}pt&&ct((0,y.Z)((0,y.Z)({},ft),{},{times:ft.times+1,targetAlign:mt,lastTop:dt}))}},[ft,je.current]),function(vt){if(vt==null){Oe();return}if(ve.Z.cancel(Ue.current),typeof vt=="number")Ee(vt);else if(vt&&(0,yt.Z)(vt)==="object"){var kt,xt=vt.align;"index"in vt?kt=vt.index:kt=ne.findIndex(function(pt){return Fe(pt)===vt.key});var Et=vt.offset,gt=Et===void 0?0:Et;ct({times:0,index:kt,offset:gt,originAlign:xt})}}}var nt=x.forwardRef(function(je,ne){var ce=je.prefixCls,Ie=je.rtl,Fe=je.scrollOffset,we=je.scrollRange,Ee=je.onStartMove,Oe=je.onStopMove,Ue=je.onScroll,tt=je.horizontal,Ge=je.spinSize,ft=je.containerSize,ct=je.style,vt=je.thumbStyle,kt=je.showScrollBar,xt=x.useState(!1),Et=(0,ye.Z)(xt,2),gt=Et[0],pt=Et[1],mt=x.useState(null),dt=(0,ye.Z)(mt,2),bt=dt[0],wt=dt[1],At=x.useState(null),jt=(0,ye.Z)(At,2),Zt=jt[0],Wt=jt[1],$t=!Ie,Er=x.useRef(),vr=x.useRef(),Ht=x.useState(kt),er=(0,ye.Z)(Ht,2),or=er[0],hr=er[1],Qt=x.useRef(),sr=function(){kt===!0||kt===!1||(clearTimeout(Qt.current),hr(!0),Qt.current=setTimeout(function(){hr(!1)},3e3))},Ir=we-ft||0,Jt=ft-Ge||0,Kt=x.useMemo(function(){if(Fe===0||Ir===0)return 0;var _r=Fe/Ir;return _r*Jt},[Fe,Ir,Jt]),It=function(Pr){Pr.stopPropagation(),Pr.preventDefault()},Rt=x.useRef({top:Kt,dragging:gt,pageY:bt,startTop:Zt});Rt.current={top:Kt,dragging:gt,pageY:bt,startTop:Zt};var Bt=function(Pr){pt(!0),wt(it(Pr,tt)),Wt(Rt.current.top),Ee(),Pr.stopPropagation(),Pr.preventDefault()};x.useEffect(function(){var _r=function(qt){qt.preventDefault()},Pr=Er.current,Dr=vr.current;return Pr.addEventListener("touchstart",_r,{passive:!1}),Dr.addEventListener("touchstart",Bt,{passive:!1}),function(){Pr.removeEventListener("touchstart",_r),Dr.removeEventListener("touchstart",Bt)}},[]);var Vt=x.useRef();Vt.current=Ir;var lr=x.useRef();lr.current=Jt,x.useEffect(function(){if(gt){var _r,Pr=function(qt){var Mt=Rt.current,cr=Mt.dragging,Ar=Mt.pageY,Br=Mt.startTop;ve.Z.cancel(_r);var Ct=Er.current.getBoundingClientRect(),Tt=ft/(tt?Ct.width:Ct.height);if(cr){var ar=(it(qt,tt)-Ar)*Tt,Xt=Br;!$t&&tt?Xt-=ar:Xt+=ar;var Dt=Vt.current,Yt=lr.current,rr=Yt?Xt/Yt:0,gr=Math.ceil(rr*Dt);gr=Math.max(gr,0),gr=Math.min(gr,Dt),_r=(0,ve.Z)(function(){Ue(gr,tt)})}},Dr=function(){pt(!1),Oe()};return window.addEventListener("mousemove",Pr,{passive:!0}),window.addEventListener("touchmove",Pr,{passive:!0}),window.addEventListener("mouseup",Dr,{passive:!0}),window.addEventListener("touchend",Dr,{passive:!0}),function(){window.removeEventListener("mousemove",Pr),window.removeEventListener("touchmove",Pr),window.removeEventListener("mouseup",Dr),window.removeEventListener("touchend",Dr),ve.Z.cancel(_r)}}},[gt]),x.useEffect(function(){return sr(),function(){clearTimeout(Qt.current)}},[Fe]),x.useImperativeHandle(ne,function(){return{delayHidden:sr}});var wr="".concat(ce,"-scrollbar"),Ut={position:"absolute",visibility:or?null:"hidden"},Or={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return tt?(Object.assign(Ut,{height:8,left:0,right:0,bottom:0}),Object.assign(Or,(0,Se.Z)({height:"100%",width:Ge},$t?"left":"right",Kt))):(Object.assign(Ut,(0,Se.Z)({width:8,top:0,bottom:0},$t?"right":"left",0)),Object.assign(Or,{width:"100%",height:Ge,top:Kt})),x.createElement("div",{ref:Er,className:oe()(wr,(0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(wr,"-horizontal"),tt),"".concat(wr,"-vertical"),!tt),"".concat(wr,"-visible"),or)),style:(0,y.Z)((0,y.Z)({},Ut),ct),onMouseDown:It,onMouseMove:sr},x.createElement("div",{ref:vr,className:oe()("".concat(wr,"-thumb"),(0,Se.Z)({},"".concat(wr,"-thumb-moving"),gt)),style:(0,y.Z)((0,y.Z)({},Or),vt),onMouseDown:Bt}))}),rt=nt,Xe=20;function Je(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ce=je/ne*je;return isNaN(ce)&&(ce=0),ce=Math.max(ce,Xe),Math.floor(ce)}var Ve=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],at=[],Qe={overflowY:"auto",overflowAnchor:"none"};function ut(je,ne){var ce=je.prefixCls,Ie=ce===void 0?"rc-virtual-list":ce,Fe=je.className,we=je.height,Ee=je.itemHeight,Oe=je.fullHeight,Ue=Oe===void 0?!0:Oe,tt=je.style,Ge=je.data,ft=je.children,ct=je.itemKey,vt=je.virtual,kt=je.direction,xt=je.scrollWidth,Et=je.component,gt=Et===void 0?"div":Et,pt=je.onScroll,mt=je.onVirtualScroll,dt=je.onVisibleChange,bt=je.innerProps,wt=je.extraRender,At=je.styles,jt=je.showScrollBar,Zt=jt===void 0?"optional":jt,Wt=(0,E.Z)(je,Ve),$t=x.useCallback(function(fr){return typeof ct=="function"?ct(fr):fr==null?void 0:fr[ct]},[ct]),Er=De($t,null,null),vr=(0,ye.Z)(Er,4),Ht=vr[0],er=vr[1],or=vr[2],hr=vr[3],Qt=!!(vt!==!1&&we&&Ee),sr=x.useMemo(function(){return Object.values(or.maps).reduce(function(fr,Cr){return fr+Cr},0)},[or.id,or.maps]),Ir=Qt&&Ge&&(Math.max(Ee*Ge.length,sr)>we||!!xt),Jt=kt==="rtl",Kt=oe()(Ie,(0,Se.Z)({},"".concat(Ie,"-rtl"),Jt),Fe),It=Ge||at,Rt=(0,x.useRef)(),Bt=(0,x.useRef)(),Vt=(0,x.useRef)(),lr=(0,x.useState)(0),wr=(0,ye.Z)(lr,2),Ut=wr[0],Or=wr[1],_r=(0,x.useState)(0),Pr=(0,ye.Z)(_r,2),Dr=Pr[0],yr=Pr[1],qt=(0,x.useState)(!1),Mt=(0,ye.Z)(qt,2),cr=Mt[0],Ar=Mt[1],Br=function(){Ar(!0)},Ct=function(){Ar(!1)},Tt={getKey:$t};function ar(fr){Or(function(Cr){var tr;typeof fr=="function"?tr=fr(Cr):tr=fr;var zt=Mn(tr);return Rt.current.scrollTop=zt,zt})}var Xt=(0,x.useRef)({start:0,end:It.length}),Dt=(0,x.useRef)(),Yt=fe(It,$t),rr=(0,ye.Z)(Yt,1),gr=rr[0];Dt.current=gr;var Mr=x.useMemo(function(){if(!Qt)return{scrollHeight:void 0,start:0,end:It.length-1,offset:void 0};if(!Ir){var fr;return{scrollHeight:((fr=Bt.current)===null||fr===void 0?void 0:fr.offsetHeight)||0,start:0,end:It.length-1,offset:void 0}}for(var Cr=0,tr,zt,pr,kr=It.length,Gr=0;Gr<kr;Gr+=1){var Xr=It[Gr],dn=$t(Xr),mn=or.get(dn),on=Cr+(mn===void 0?Ee:mn);on>=Ut&&tr===void 0&&(tr=Gr,zt=Cr),on>Ut+we&&pr===void 0&&(pr=Gr),Cr=on}return tr===void 0&&(tr=0,zt=0,pr=Math.ceil(we/Ee)),pr===void 0&&(pr=It.length-1),pr=Math.min(pr+1,It.length-1),{scrollHeight:Cr,start:tr,end:pr,offset:zt}},[Ir,Qt,Ut,It,hr,we]),Pt=Mr.scrollHeight,br=Mr.start,Gt=Mr.end,Sr=Mr.offset;Xt.current.start=br,Xt.current.end=Gt,x.useLayoutEffect(function(){var fr=or.getRecord();if(fr.size===1){var Cr=Array.from(fr.keys())[0],tr=fr.get(Cr),zt=It[br];if(zt&&tr===void 0){var pr=$t(zt);if(pr===Cr){var kr=or.get(Cr),Gr=kr-Ee;ar(function(Xr){return Xr+Gr})}}}or.resetRecord()},[Pt]);var ir=x.useState({width:0,height:we}),ur=(0,ye.Z)(ir,2),xr=ur[0],Fr=ur[1],Ur=function(Cr){Fr({width:Cr.offsetWidth,height:Cr.offsetHeight})},en=(0,x.useRef)(),un=(0,x.useRef)(),ln=x.useMemo(function(){return Je(xr.width,xt)},[xr.width,xt]),gn=x.useMemo(function(){return Je(xr.height,Pt)},[xr.height,Pt]),nn=Pt-we,Tn=(0,x.useRef)(nn);Tn.current=nn;function Mn(fr){var Cr=fr;return Number.isNaN(Tn.current)||(Cr=Math.min(Cr,Tn.current)),Cr=Math.max(Cr,0),Cr}var xn=Ut<=0,_n=Ut>=nn,Dn=Dr<=0,En=Dr>=xt,cn=Pe(xn,_n,Dn,En),On=function(){return{x:Jt?-Dr:Dr,y:Ut}},dr=(0,x.useRef)(On()),Rr=(0,ee.zX)(function(fr){if(mt){var Cr=(0,y.Z)((0,y.Z)({},On()),fr);(dr.current.x!==Cr.x||dr.current.y!==Cr.y)&&(mt(Cr),dr.current=Cr)}});function zr(fr,Cr){var tr=fr;Cr?((0,te.flushSync)(function(){yr(tr)}),Rr()):ar(tr)}function Kr(fr){var Cr=fr.currentTarget.scrollTop;Cr!==Ut&&ar(Cr),pt==null||pt(fr),Rr()}var Vr=function(Cr){var tr=Cr,zt=xt?xt-xr.width:0;return tr=Math.max(tr,0),tr=Math.min(tr,zt),tr},Wr=(0,ee.zX)(function(fr,Cr){Cr?((0,te.flushSync)(function(){yr(function(tr){var zt=tr+(Jt?-fr:fr);return Vr(zt)})}),Rr()):ar(function(tr){var zt=tr+fr;return zt})}),Tr=_e(Qt,xn,_n,Dn,En,!!xt,Wr),Qr=(0,ye.Z)(Tr,2),yn=Qr[0],Sn=Qr[1];Ke(Qt,Rt,function(fr,Cr,tr,zt){var pr=zt;return cn(fr,Cr,tr)?!1:!pr||!pr._virtualHandled?(pr&&(pr._virtualHandled=!0),yn({preventDefault:function(){},deltaX:fr?Cr:0,deltaY:fr?0:Cr}),!0):!1}),Re(Ir,Rt,function(fr){ar(function(Cr){return Cr+fr})}),(0,de.Z)(function(){function fr(tr){var zt=xn&&tr.detail<0,pr=_n&&tr.detail>0;Qt&&!zt&&!pr&&tr.preventDefault()}var Cr=Rt.current;return Cr.addEventListener("wheel",yn,{passive:!1}),Cr.addEventListener("DOMMouseScroll",Sn,{passive:!0}),Cr.addEventListener("MozMousePixelScroll",fr,{passive:!1}),function(){Cr.removeEventListener("wheel",yn),Cr.removeEventListener("DOMMouseScroll",Sn),Cr.removeEventListener("MozMousePixelScroll",fr)}},[Qt,xn,_n]),(0,de.Z)(function(){if(xt){var fr=Vr(Dr);yr(fr),Rr({x:fr})}},[xr.width,xt]);var $r=function(){var Cr,tr;(Cr=en.current)===null||Cr===void 0||Cr.delayHidden(),(tr=un.current)===null||tr===void 0||tr.delayHidden()},Cn=et(Rt,It,or,Ee,$t,function(){return er(!0)},ar,$r);x.useImperativeHandle(ne,function(){return{nativeElement:Vt.current,getScrollInfo:On,scrollTo:function(Cr){function tr(zt){return zt&&(0,yt.Z)(zt)==="object"&&("left"in zt||"top"in zt)}tr(Cr)?(Cr.left!==void 0&&yr(Vr(Cr.left)),Cn(Cr.top)):Cn(Cr)}}}),(0,de.Z)(function(){if(dt){var fr=It.slice(br,Gt+1);dt(fr,It)}},[br,Gt,It]);var pn=be(It,$t,or,Ee),bn=wt==null?void 0:wt({start:br,end:Gt,virtual:Ir,offsetX:Dr,offsetY:Sr,rtl:Jt,getSize:pn}),Yr=he(It,br,Gt,xt,Dr,Ht,ft,Tt),wn=null;we&&(wn=(0,y.Z)((0,Se.Z)({},Ue?"height":"maxHeight",we),Qe),Qt&&(wn.overflowY="hidden",xt&&(wn.overflowX="hidden"),cr&&(wn.pointerEvents="none")));var tn={};return Jt&&(tn.dir="rtl"),x.createElement("div",(0,Ze.Z)({ref:Vt,style:(0,y.Z)((0,y.Z)({},tt),{},{position:"relative"}),className:Kt},tn,Wt),x.createElement(se.Z,{onResize:Ur},x.createElement(gt,{className:"".concat(Ie,"-holder"),style:wn,ref:Rt,onScroll:Kr,onMouseEnter:$r},x.createElement(ae,{prefixCls:Ie,height:Pt,offsetX:Dr,offsetY:Sr,scrollWidth:xt,onInnerResize:er,ref:Bt,innerProps:bt,rtl:Jt,extra:bn},Yr))),Ir&&Pt>we&&x.createElement(rt,{ref:en,prefixCls:Ie,scrollOffset:Ut,scrollRange:Pt,rtl:Jt,onScroll:zr,onStartMove:Br,onStopMove:Ct,spinSize:gn,containerSize:xr.height,style:At==null?void 0:At.verticalScrollBar,thumbStyle:At==null?void 0:At.verticalScrollBarThumb,showScrollBar:Zt}),Ir&&xt>xr.width&&x.createElement(rt,{ref:un,prefixCls:Ie,scrollOffset:Dr,scrollRange:xt,rtl:Jt,onScroll:zr,onStartMove:Br,onStopMove:Ct,spinSize:ln,containerSize:xr.width,horizontal:!0,style:At==null?void 0:At.horizontalScrollBar,thumbStyle:At==null?void 0:At.horizontalScrollBarThumb,showScrollBar:Zt}))}var st=x.forwardRef(ut);st.displayName="List";var $e=st,Ne=$e},7062:function(Lt,Ot,ze){var Ze=ze(19637),yt=ze(97573),y=[ze(96627)];Lt.exports=Ze.createStore(yt,y)},96627:function(Lt,Ot,ze){Lt.exports=Ze;function Ze(){return ze(42424),{}}},42424:function(){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(Lt){return Lt<10?"0"+Lt:Lt}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(Lt){return rx_escapable.lastIndex=0,rx_escapable.test(Lt)?'"'+Lt.replace(rx_escapable,function(Ot){var ze=meta[Ot];return typeof ze=="string"?ze:"\\u"+("0000"+Ot.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Lt+'"'}function str(Lt,Ot){var ze,Ze,yt,y,Se=gap,ye,E=Ot[Lt];switch(E&&typeof E=="object"&&typeof E.toJSON=="function"&&(E=E.toJSON(Lt)),typeof rep=="function"&&(E=rep.call(Ot,Lt,E)),typeof E){case"string":return quote(E);case"number":return isFinite(E)?String(E):"null";case"boolean":case"null":return String(E);case"object":if(!E)return"null";if(gap+=indent,ye=[],Object.prototype.toString.apply(E)==="[object Array]"){for(y=E.length,ze=0;ze<y;ze+=1)ye[ze]=str(ze,E)||"null";return yt=ye.length===0?"[]":gap?`[
`+gap+ye.join(`,
`+gap)+`
`+Se+"]":"["+ye.join(",")+"]",gap=Se,yt}if(rep&&typeof rep=="object")for(y=rep.length,ze=0;ze<y;ze+=1)typeof rep[ze]=="string"&&(Ze=rep[ze],yt=str(Ze,E),yt&&ye.push(quote(Ze)+(gap?": ":":")+yt));else for(Ze in E)Object.prototype.hasOwnProperty.call(E,Ze)&&(yt=str(Ze,E),yt&&ye.push(quote(Ze)+(gap?": ":":")+yt));return yt=ye.length===0?"{}":gap?`{
`+gap+ye.join(`,
`+gap)+`
`+Se+"}":"{"+ye.join(",")+"}",gap=Se,yt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Lt,Ot,ze){var Ze;if(gap="",indent="",typeof ze=="number")for(Ze=0;Ze<ze;Ze+=1)indent+=" ";else typeof ze=="string"&&(indent=ze);if(rep=Ot,Ot&&typeof Ot!="function"&&(typeof Ot!="object"||typeof Ot.length!="number"))throw new Error("JSON.stringify");return str("",{"":Lt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Lt,Ot){var ze,Ze,yt=Lt[Ot];if(yt&&typeof yt=="object")for(ze in yt)Object.prototype.hasOwnProperty.call(yt,ze)&&(Ze=walk(yt,ze),Ze!==void 0?yt[ze]=Ze:delete yt[ze]);return reviver.call(Lt,Ot,yt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Lt){return"\\u"+("0000"+Lt.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},19637:function(Lt,Ot,ze){var Ze=ze(67039),yt=Ze.slice,y=Ze.pluck,Se=Ze.each,ye=Ze.bind,E=Ze.create,z=Ze.isList,oe=Ze.isFunction,se=Ze.isObject;Lt.exports={createStore:x};var ee={version:"2.0.12",enabled:!1,get:function(te,re){var ae=this.storage.read(this._namespacePrefix+te);return this._deserialize(ae,re)},set:function(te,re){return re===void 0?this.remove(te):(this.storage.write(this._namespacePrefix+te,this._serialize(re)),re)},remove:function(te){this.storage.remove(this._namespacePrefix+te)},each:function(te){var re=this;this.storage.each(function(ae,ue){te.call(re,re._deserialize(ae),(ue||"").replace(re._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(te){return this._namespacePrefix=="__storejs_"+te+"_"},createStore:function(){return x.apply(this,arguments)},addPlugin:function(te){this._addPlugin(te)},namespace:function(te){return x(this.storage,this.plugins,te)}};function de(){var te=typeof console=="undefined"?null:console;if(te){var re=te.warn?te.warn:te.log;re.apply(te,arguments)}}function x(te,re,ae){ae||(ae=""),te&&!z(te)&&(te=[te]),re&&!z(re)&&(re=[re]);var ue=ae?"__storejs_"+ae+"_":"",he=ae?new RegExp("^"+ue):null,pe=/^[a-zA-Z0-9_\-]*$/;if(!pe.test(ae))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var me={_namespacePrefix:ue,_namespaceRegexp:he,_testStorage:function(ve){try{var ke="__storejs__test__";ve.write(ke,ke);var Te=ve.read(ke)===ke;return ve.remove(ke),Te}catch(Pe){return!1}},_assignPluginFnProp:function(ve,ke){var Te=this[ke];this[ke]=function(){var _e=yt(arguments,0),be=this;function xe(){if(Te)return Se(arguments,function(Me,Be){_e[Be]=Me}),Te.apply(be,_e)}var Ae=[xe].concat(_e);return ve.apply(be,Ae)}},_serialize:function(ve){return JSON.stringify(ve)},_deserialize:function(ve,ke){if(!ve)return ke;var Te="";try{Te=JSON.parse(ve)}catch(Pe){Te=ve}return Te!==void 0?Te:ke},_addStorage:function(ve){this.enabled||this._testStorage(ve)&&(this.storage=ve,this.enabled=!0)},_addPlugin:function(ve){var ke=this;if(z(ve)){Se(ve,function(_e){ke._addPlugin(_e)});return}var Te=y(this.plugins,function(_e){return ve===_e});if(!Te){if(this.plugins.push(ve),!oe(ve))throw new Error("Plugins must be function values that return objects");var Pe=ve.call(this);if(!se(Pe))throw new Error("Plugins must return an object of function properties");Se(Pe,function(_e,be){if(!oe(_e))throw new Error("Bad plugin property: "+be+" from plugin "+ve.name+". Plugins should only return functions.");ke._assignPluginFnProp(_e,be)})}},addStorage:function(ve){de("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(ve)}},fe=E(me,ee,{plugins:[]});return fe.raw={},Se(fe,function(ve,ke){oe(ve)&&(fe.raw[ke]=ye(fe,ve))}),Se(te,function(ve){fe._addStorage(ve)}),Se(re,function(ve){fe._addPlugin(ve)}),fe}},67039:function(Lt,Ot,ze){var Ze=ye(),yt=E(),y=z(),Se=typeof window!="undefined"?window:ze.g;Lt.exports={assign:Ze,create:yt,trim:y,bind:oe,slice:se,each:ee,map:de,pluck:x,isList:te,isFunction:re,isObject:ae,Global:Se};function ye(){return Object.assign?Object.assign:function(he,pe,me,fe){for(var ve=1;ve<arguments.length;ve++)ee(Object(arguments[ve]),function(ke,Te){he[Te]=ke});return he}}function E(){if(Object.create)return function(pe,me,fe,ve){var ke=se(arguments,1);return Ze.apply(this,[Object.create(pe)].concat(ke))};{let he=function(){};var ue=he;return function(me,fe,ve,ke){var Te=se(arguments,1);return he.prototype=me,Ze.apply(this,[new he].concat(Te))}}}function z(){return String.prototype.trim?function(he){return String.prototype.trim.call(he)}:function(he){return he.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function oe(ue,he){return function(){return he.apply(ue,Array.prototype.slice.call(arguments,0))}}function se(ue,he){return Array.prototype.slice.call(ue,he||0)}function ee(ue,he){x(ue,function(pe,me){return he(pe,me),!1})}function de(ue,he){var pe=te(ue)?[]:{};return x(ue,function(me,fe){return pe[fe]=he(me,fe),!1}),pe}function x(ue,he){if(te(ue)){for(var pe=0;pe<ue.length;pe++)if(he(ue[pe],pe))return ue[pe]}else for(var me in ue)if(ue.hasOwnProperty(me)&&he(ue[me],me))return ue[me]}function te(ue){return ue!=null&&typeof ue!="function"&&typeof ue.length=="number"}function re(ue){return ue&&{}.toString.call(ue)==="[object Function]"}function ae(ue){return ue&&{}.toString.call(ue)==="[object Object]"}},97573:function(Lt,Ot,ze){Lt.exports=[ze(52496),ze(16436),ze(76673),ze(35701),ze(65578),ze(65300)]},35701:function(Lt,Ot,ze){var Ze=ze(67039),yt=Ze.Global,y=Ze.trim;Lt.exports={name:"cookieStorage",read:ye,write:z,each:E,remove:oe,clearAll:se};var Se=yt.document;function ye(de){if(!de||!ee(de))return null;var x="(?:^|.*;\\s*)"+escape(de).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Se.cookie.replace(new RegExp(x),"$1"))}function E(de){for(var x=Se.cookie.split(/; ?/g),te=x.length-1;te>=0;te--)if(y(x[te])){var re=x[te].split("="),ae=unescape(re[0]),ue=unescape(re[1]);de(ue,ae)}}function z(de,x){de&&(Se.cookie=escape(de)+"="+escape(x)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function oe(de){!de||!ee(de)||(Se.cookie=escape(de)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function se(){E(function(de,x){oe(x)})}function ee(de){return new RegExp("(?:^|;\\s*)"+escape(de).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Se.cookie)}},52496:function(Lt,Ot,ze){var Ze=ze(67039),yt=Ze.Global;Lt.exports={name:"localStorage",read:Se,write:ye,each:E,remove:z,clearAll:oe};function y(){return yt.localStorage}function Se(se){return y().getItem(se)}function ye(se,ee){return y().setItem(se,ee)}function E(se){for(var ee=y().length-1;ee>=0;ee--){var de=y().key(ee);se(Se(de),de)}}function z(se){return y().removeItem(se)}function oe(){return y().clear()}},65300:function(Lt){Lt.exports={name:"memoryStorage",read:ze,write:Ze,each:yt,remove:y,clearAll:Se};var Ot={};function ze(ye){return Ot[ye]}function Ze(ye,E){Ot[ye]=E}function yt(ye){for(var E in Ot)Ot.hasOwnProperty(E)&&ye(Ot[E],E)}function y(ye){delete Ot[ye]}function Se(ye){Ot={}}},16436:function(Lt,Ot,ze){var Ze=ze(67039),yt=Ze.Global;Lt.exports={name:"oldFF-globalStorage",read:Se,write:ye,each:E,remove:z,clearAll:oe};var y=yt.globalStorage;function Se(se){return y[se]}function ye(se,ee){y[se]=ee}function E(se){for(var ee=y.length-1;ee>=0;ee--){var de=y.key(ee);se(y[de],de)}}function z(se){return y.removeItem(se)}function oe(){E(function(se,ee){delete y[se]})}},76673:function(Lt,Ot,ze){var Ze=ze(67039),yt=Ze.Global;Lt.exports={name:"oldIE-userDataStorage",write:z,read:oe,each:se,remove:ee,clearAll:de};var y="storejs",Se=yt.document,ye=re(),E=(yt.navigator?yt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function z(ae,ue){if(!E){var he=te(ae);ye(function(pe){pe.setAttribute(he,ue),pe.save(y)})}}function oe(ae){if(!E){var ue=te(ae),he=null;return ye(function(pe){he=pe.getAttribute(ue)}),he}}function se(ae){ye(function(ue){for(var he=ue.XMLDocument.documentElement.attributes,pe=he.length-1;pe>=0;pe--){var me=he[pe];ae(ue.getAttribute(me.name),me.name)}})}function ee(ae){var ue=te(ae);ye(function(he){he.removeAttribute(ue),he.save(y)})}function de(){ye(function(ae){var ue=ae.XMLDocument.documentElement.attributes;ae.load(y);for(var he=ue.length-1;he>=0;he--)ae.removeAttribute(ue[he].name);ae.save(y)})}var x=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function te(ae){return ae.replace(/^\d/,"___$&").replace(x,"___")}function re(){if(!Se||!Se.documentElement||!Se.documentElement.addBehavior)return null;var ae="script",ue,he,pe;try{he=new ActiveXObject("htmlfile"),he.open(),he.write("<"+ae+">document.w=window</"+ae+'><iframe src="/favicon.ico"></iframe>'),he.close(),ue=he.w.frames[0].document,pe=ue.createElement("div")}catch(me){pe=Se.createElement("div"),ue=Se.body}return function(me){var fe=[].slice.call(arguments,0);fe.unshift(pe),ue.appendChild(pe),pe.addBehavior("#default#userData"),pe.load(y),me.apply(this,fe),ue.removeChild(pe)}}},65578:function(Lt,Ot,ze){var Ze=ze(67039),yt=Ze.Global;Lt.exports={name:"sessionStorage",read:Se,write:ye,each:E,remove:z,clearAll:oe};function y(){return yt.sessionStorage}function Se(se){return y().getItem(se)}function ye(se,ee){return y().setItem(se,ee)}function E(se){for(var ee=y().length-1;ee>=0;ee--){var de=y().key(ee);se(Se(de),de)}}function z(se){return y().removeItem(se)}function oe(){return y().clear()}},93314:function(Lt){"use strict";Lt.exports="data:image/png;base64,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"},96908:function(Lt){"use strict";Lt.exports="data:image/png;base64,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"},57177:function(Lt){"use strict";Lt.exports="data:image/png;base64,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"},81378:function(Lt){"use strict";Lt.exports="data:image/png;base64,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"},16722:function(Lt,Ot,ze){"use strict";ze.d(Ot,{Z:function(){return oe}});const Ze=se=>typeof se=="object"&&se!=null&&se.nodeType===1,yt=(se,ee)=>(!ee||se!=="hidden")&&se!=="visible"&&se!=="clip",y=(se,ee)=>{if(se.clientHeight<se.scrollHeight||se.clientWidth<se.scrollWidth){const de=getComputedStyle(se,null);return yt(de.overflowY,ee)||yt(de.overflowX,ee)||(x=>{const te=(re=>{if(!re.ownerDocument||!re.ownerDocument.defaultView)return null;try{return re.ownerDocument.defaultView.frameElement}catch(ae){return null}})(x);return!!te&&(te.clientHeight<x.scrollHeight||te.clientWidth<x.scrollWidth)})(se)}return!1},Se=(se,ee,de,x,te,re,ae,ue)=>re<se&&ae>ee||re>se&&ae<ee?0:re<=se&&ue<=de||ae>=ee&&ue>=de?re-se-x:ae>ee&&ue<de||re<se&&ue>de?ae-ee+te:0,ye=se=>{const ee=se.parentElement;return ee==null?se.getRootNode().host||null:ee},E=(se,ee)=>{var de,x,te,re;if(typeof document=="undefined")return[];const{scrollMode:ae,block:ue,inline:he,boundary:pe,skipOverflowHiddenElements:me}=ee,fe=typeof pe=="function"?pe:rt=>rt!==pe;if(!Ze(se))throw new TypeError("Invalid target");const ve=document.scrollingElement||document.documentElement,ke=[];let Te=se;for(;Ze(Te)&&fe(Te);){if(Te=ye(Te),Te===ve){ke.push(Te);break}Te!=null&&Te===document.body&&y(Te)&&!y(document.documentElement)||Te!=null&&y(Te,me)&&ke.push(Te)}const Pe=(x=(de=window.visualViewport)==null?void 0:de.width)!=null?x:innerWidth,_e=(re=(te=window.visualViewport)==null?void 0:te.height)!=null?re:innerHeight,{scrollX:be,scrollY:xe}=window,{height:Ae,width:Me,top:Be,right:Ce,bottom:De,left:He}=se.getBoundingClientRect(),{top:Ke,right:Ye,bottom:it,left:Re}=(rt=>{const Xe=window.getComputedStyle(rt);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(se);let We=ue==="start"||ue==="nearest"?Be-Ke:ue==="end"?De+it:Be+Ae/2-Ke+it,et=he==="center"?He+Me/2-Re+Ye:he==="end"?Ce+Ye:He-Re;const nt=[];for(let rt=0;rt<ke.length;rt++){const Xe=ke[rt],{height:Je,width:Ve,top:at,right:Qe,bottom:ut,left:st}=Xe.getBoundingClientRect();if(ae==="if-needed"&&Be>=0&&He>=0&&De<=_e&&Ce<=Pe&&(Xe===ve&&!y(Xe)||Be>=at&&De<=ut&&He>=st&&Ce<=Qe))return nt;const $e=getComputedStyle(Xe),Ne=parseInt($e.borderLeftWidth,10),je=parseInt($e.borderTopWidth,10),ne=parseInt($e.borderRightWidth,10),ce=parseInt($e.borderBottomWidth,10);let Ie=0,Fe=0;const we="offsetWidth"in Xe?Xe.offsetWidth-Xe.clientWidth-Ne-ne:0,Ee="offsetHeight"in Xe?Xe.offsetHeight-Xe.clientHeight-je-ce:0,Oe="offsetWidth"in Xe?Xe.offsetWidth===0?0:Ve/Xe.offsetWidth:0,Ue="offsetHeight"in Xe?Xe.offsetHeight===0?0:Je/Xe.offsetHeight:0;if(ve===Xe)Ie=ue==="start"?We:ue==="end"?We-_e:ue==="nearest"?Se(xe,xe+_e,_e,je,ce,xe+We,xe+We+Ae,Ae):We-_e/2,Fe=he==="start"?et:he==="center"?et-Pe/2:he==="end"?et-Pe:Se(be,be+Pe,Pe,Ne,ne,be+et,be+et+Me,Me),Ie=Math.max(0,Ie+xe),Fe=Math.max(0,Fe+be);else{Ie=ue==="start"?We-at-je:ue==="end"?We-ut+ce+Ee:ue==="nearest"?Se(at,ut,Je,je,ce+Ee,We,We+Ae,Ae):We-(at+Je/2)+Ee/2,Fe=he==="start"?et-st-Ne:he==="center"?et-(st+Ve/2)+we/2:he==="end"?et-Qe+ne+we:Se(st,Qe,Ve,Ne,ne+we,et,et+Me,Me);const{scrollLeft:tt,scrollTop:Ge}=Xe;Ie=Ue===0?0:Math.max(0,Math.min(Ge+Ie/Ue,Xe.scrollHeight-Je/Ue+Ee)),Fe=Oe===0?0:Math.max(0,Math.min(tt+Fe/Oe,Xe.scrollWidth-Ve/Oe+we)),We+=Ge-Ie,et+=tt-Fe}nt.push({el:Xe,top:Ie,left:Fe})}return nt},z=se=>se===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(se)?se:{block:"start",inline:"nearest"};function oe(se,ee){if(!se.isConnected||!(te=>{let re=te;for(;re&&re.parentNode;){if(re.parentNode===document)return!0;re=re.parentNode instanceof ShadowRoot?re.parentNode.host:re.parentNode}return!1})(se))return;const de=(te=>{const re=window.getComputedStyle(te);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(se);if((te=>typeof te=="object"&&typeof te.behavior=="function")(ee))return ee.behavior(E(se,ee));const x=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:te,top:re,left:ae}of E(se,z(ee))){const ue=re-de.top+de.bottom,he=ae-de.left+de.right;te.scroll({top:ue,left:he,behavior:x})}}}}]);