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(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return ie}});var Ue=Ge(54476),Et=Ge(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"},we=y,ge=Ge(7657),ee=function(z,se){return Et.createElement(ge.Z,(0,Ue.Z)({},z,{ref:se,icon:we}))},E=Et.forwardRef(ee),ie=E},76618:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return ie}});var Ue=Ge(54476),Et=Ge(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"},we=y,ge=Ge(7657),ee=function(z,se){return Et.createElement(ge.Z,(0,Ue.Z)({},z,{ref:se,icon:we}))},E=Et.forwardRef(ee),ie=E},2018:function(){"use strict"},40862:function(Nt,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"}},86787:function(Nt,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"}},97197:function(Nt,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"}},94583:function(){"use strict"},75544: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 Nt={},Ot="5.0",Ge={},Ue=null,Et=!1,y=!1,we=null,ge=!1,ee=null,E=null,ie=0;ie<arguments.length;ie++){var le=arguments[ie];if(le!==null)switch(typeof le){case"number":Ot=le.toFixed(1);break;case"string":le.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ot=le:we=le;break;case"object":typeof le.is3D!="undefined"?Ue=le:Ge=le;break;case"boolean":Et=le,y=!0;break}}Ue===null&&(Ue={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ge.material_id!==void 0&&!y&&(Et=!0)),we!==null&&Ge.id===void 0&&(Ge.id=we);var z="",se="",x=!1,re=null,te=null,ae=null,ue=!1,fe=null,de=null,he=null,ce=null,pe=null;Ge.height!==void 0&&(Ge.height=Math.round(Ge.height)),Ge.width!==void 0&&(Ge.width=Math.round(Ge.width));var Ce=function(Je){return parseFloat(Je)>4?parseFloat(Je):5};Nt.setHTML5Codebase=function(Je,Qe){E=Je,rt(Je,Qe)},Nt.setJavaCodebase=Nt.setJavaCodebaseVersion=Nt.isCompiledInstalled=Nt.setPreCompiledScriptPath=Nt.setPreCompiledResourcePath=function(){},Nt.setHTML5CodebaseVersion=function(Je,Qe){var Ve=parseFloat(Je);if(Ve!==NaN&&Ve<5){console.log("The GeoGebra HTML5 codebase version "+Ve+" is deprecated. Using version latest instead.");return}ee=Je,We(Je,Qe)},Nt.getHTML5CodebaseVersion=function(){return te},Nt.getParameters=function(){return Ge},Nt.setFontsCSSURL=function(Je){ce=Je},Nt.setGiacJSURL=function(Je){},Nt.setJNLPFile=function(Je){z=Je},Nt.setJNLPBaseDir=function(Je){},Nt.inject=function(){function Je(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Qe="auto",Ve=Ge.id,ct,tt=!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)$/)?Qe=st:Ve=arguments[ut]):typeof st=="boolean"?tt=st:st instanceof HTMLElement&&(ct=st)}ze();function ze(){if(!ge){setTimeout(ze,200);return}Qe=lt(Qe);var Be=ct||document.getElementById(Ve);if(!Be){console.log("possibly bug on ajax loading? ");return}if(Nt.removeExistingApplet(Be,!1),Ge.width===void 0&&Be.clientWidth&&(Ge.width=Be.clientWidth),Ge.height===void 0&&Be.clientHeight&&(Ge.height=Be.clientHeight),!(Ge.width&&Ge.height)&&Qe==="html5"&&(delete Ge.width,delete Ge.height),re=Qe,Qe==="screenshot")Se(Be,Ge);else{var Ke=!1;Ge.hasOwnProperty("playButton")&&Ge.playButton||Ge.hasOwnProperty("clickToLoad")&&Ge.clickToLoad?Ke=!0:Ge.hasOwnProperty("playButtonAutoDecide")&&Ge.playButtonAutoDecide&&(Ke=(!ke()||Je())&&De()),Ke?(re="screenshot",Ze(Be,Ge,tt,Qe)):Me(Be,Ge,tt)}}};function ke(){try{return window.self!==window.top}catch(Je){return!0}}function De(){return Ge.hasOwnProperty("screenshotGenerator")&&Ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Nt.getViews=function(){return Ue},Nt.isJavaInstalled=function(){return!1};var Ae=function(Je){var Qe=function(ut){var st=JSON.parse(ut),ze=function(Ie){return Ie.type=="G"||Ie.type=="E"},Be=st.elements?st.elements.filter(ze)[0]:st;if(!Be||!Be.url){Ve();return}Ge.fileName=Be.url,ve(Be.settings||{}),Ue.is3D=!0;var Ke="https://www.geogebra.org/images/";Nt.setPreviewImage(fe||Be.previewUrl,Ke+"GeoGebra_loading.png",Ke+"applet_play.png"),Je()},Ve=function(){Ge.onError&&Ge.onError(),ot("Error: Fetching material (id "+Ge.material_id+") failed.",Ge)},ct=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",tt="/materials/"+Ge.material_id+"?scope=basic";be("https://"+ct+"/api/proxy.php?path="+encodeURIComponent(tt),Qe,Ve)};function ve(Je){var Qe=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ve){Je[Ve]=!!Je[Ve]}),Qe.forEach(function(Ve){Ge[Ve]===void 0&&Je[Ve]!==void 0&&(Ge[Ve]=Je[Ve])}),Ge.showToolBarHelp===void 0&&(Ge.showToolBarHelp=Ge.showToolBar)}function be(Je,Qe,Ve){var ct=new XMLHttpRequest;ct.open("GET",Je),ct.onload=function(){Qe(ct.responseText)},ct.onerror=Ve,ct.send()}Nt.isHTML5Installed=function(){return!0},Nt.getLoadedAppletType=function(){return re},Nt.setPreviewImage=function(Je,Qe,Ve){fe=Je,de=Qe,he=Ve},Nt.removeExistingApplet=function(Je,Qe){var Ve;typeof Je=="string"&&(Je=document.getElementById(Je)),re=null;var ct=null;for(Ve=0;Ve<Je.childNodes.length;Ve++){var tt=Je.childNodes[Ve],ut=tt.className;ut==="applet_screenshot"?Qe?(tt.style.display="block",re="screenshot"):tt.style.display="none":ut!=="applet_scaler prerender"&&(Je.removeChild(tt),ct=ut&&ut.indexOf("appletParameters")!=-1?tt.id:null,Ve--)}var st=Ge.id!==void 0?Ge.id:ct,ze=window[st];ze&&typeof ze.getBase64=="function"&&(ze.remove(),window[st]=null)},Nt.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Je=Nt.getAppletObject();return Je&&typeof Je.recalculateEnvironments=="function"?(Je.recalculateEnvironments(),!0):!1},Nt.startAnimation=function(){var Je=Nt.getAppletObject();return Je&&typeof Je.startAnimation=="function"?(Je.startAnimation(),!0):!1},Nt.stopAnimation=function(){var Je=Nt.getAppletObject();return Je&&typeof Je.stopAnimation=="function"?(Je.stopAnimation(),!0):!1},Nt.getAppletObject=function(){var Je=Ge.id!==void 0?Ge.id:"ggbApplet";return window[Je]},Nt.resize=function(){};var Ee=function(Je,Qe,Ve){var ct=document.createElement("param");ct.setAttribute("name",Qe),ct.setAttribute("value",Ve),Je.appendChild(ct)},Oe=function(Je){return Je&&Je!=="false"},Me=function(Je,Qe,Ve){Ce(te)<=4.2&&(Ve=!0);var ct=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!ue)&&(ct=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var tt=document.createElement("div");tt.classList.add("appletParameters","notranslate");var ut=Qe.width,st=Qe.height;if(Qe.disableAutoScale=Qe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Qe.disableAutoScale,Qe.width!==void 0)if(Ce(te)<=4.4)Oe(Qe.showToolBar)&&(Qe.height-=7),Oe(Qe.showAlgebraInput)&&(Qe.height-=37),Qe.width<605&&Oe(Qe.showToolBar)&&(Qe.width=605,ut=605);else{var ze=100;(Oe(Qe.showToolBar)||Oe(Qe.showMenuBar))&&(Qe.hasOwnProperty("customToolBar")&&(Qe.customToolbar=Qe.customToolBar),ze=Oe(Qe.showMenuBar)?245:155),ut<ze&&(Qe.width=ze,ut=ze)}tt.style.border="none",tt.style.display="inline-block";for(var Be in Qe)Qe.hasOwnProperty(Be)&&Be!=="appletOnLoad"&&tt.setAttribute("data-param-"+Be,Qe[Be]);ce&&tt.setAttribute("data-param-fontscssurl",ce),Nt.resize=function(){GGBAppletUtils.responsiveResize(Je,Qe)},window.addEventListener("resize",function(ye){Nt.resize()});var Ke=typeof Qe.appletOnLoad=="function"?Qe.appletOnLoad:function(){};if(!Ve&&Qe.width!==void 0){Qe.hasOwnProperty("showSplash")||tt.setAttribute("data-param-showSplash","false");var Ie=Je.querySelector(".applet_scaler.prerender"),Ye=Ie!==null;if(Ye)var ft=Ie.querySelector(".ggb_preview");else{var ft=$e(ut,st,Qe.borderColor,!1);Ie=document.createElement("div"),Ie.className="applet_scaler",Ie.style.position="relative",Ie.style.display="block",Ie.style.width=ut+"px",Ie.style.height=st+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ie,"66%"),Ce(te)>=5?(Qe.appletOnLoad=function(ye){var Le=Je.querySelector(".ggb_preview");Le&&Le.parentNode.removeChild(Le),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ie),window.GGBT_wsf_view&&$(window).trigger("resize"),Ke(ye)},Ye||Ie.appendChild(ft)):tt.appendChild(ft),Ie.appendChild(tt),Ye||Je.appendChild(Ie),setTimeout(function(){Nt.resize()},1)}else{var mt=document.createElement("div");mt.className="applet_scaler",mt.style.position="relative",mt.style.display="block",mt.appendChild(tt),Je.appendChild(mt),Qe.appletOnLoad=function(ye){Nt.resize(),Ke(ye)}}function nt(ye,Le){Le&&typeof Le.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ye,Le.appletOnLoad):renderGGBElement(ye),ot("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Le)}function _e(ye,Le){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ye,params:Le}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(et){nt(et.article,et.params)}),html5AppletsToProcess=null)},Ce(te)<5&&(ye.className+=" geogebraweb")):nt(ye,Le)}if(ct){scriptLoadStarted=!0;for(var Pe=0;Pe<tt.childNodes.length;Pe++){var He=tt.childNodes[Pe].tagName;He==="TABLE"&&(tt.removeChild(tt.childNodes[Pe]),Pe--)}if(ggbHTML5LoadedScript!==null){var it=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');it!=null&&it.parentNode.removeChild(it)}var Te=document.createElement("script"),xe=function(){_e(tt,Qe)};Te.src=se+ae,ggbHTML5LoadedCodebaseIsWebSimple=ue,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=Te.src,ot("GeoGebra HTML5 codebase loaded: '"+se+"'.",Qe),!E&&(!ee||ee=="5.0")?(ue?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),xe()):se.requirejs?__webpack_require__.e(7989).then(function(){var ye=[__webpack_require__(87989)];xe.apply(null,ye)}.bind(this)).catch(__webpack_require__.oe):(Te.onload=xe,Je.appendChild(Te))}else _e(tt,Qe);Qe.height=st,Qe.width=ut},Se=function(Je,Qe,Ve){var ct=$e(Qe.width,Qe.height,Qe.borderColor,Ve),tt=document.createElement("div");tt.style.position="relative",tt.style.display="block",tt.style.width=Qe.width+"px",tt.style.height=Qe.height+"px",tt.className="applet_screenshot applet_scaler"+(Ve?" applet_screenshot_play":""),tt.appendChild(ct);var ut=GGBAppletUtils.getScale(Qe,Je,Ve);Ve?(Je.appendChild(Xe()),window.GGBT_wsf_view||(Je.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(tt,"66%"),Je.appendChild(tt),ut!==1&&!isNaN(ut)&&(GGBAppletUtils.scaleElement(tt,ut),tt.style.width=Qe.width+"px",tt.style.height=Qe.height+"px",tt.parentNode.style.width=Qe.width*ut+"px",tt.parentNode.style.height=Qe.height*ut+"px"),Nt.resize=function(){je(Je,ct,tt,Ve)},window.addEventListener("resize",function(st){Nt.resize()}),Nt.resize()};function je(Je,Qe,Ve,ct){if(Je.contains(Qe)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Je.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Je)}var tt=GGBAppletUtils.getScale(Ge,Je,ct);Ve.parentNode!==null&&(!isNaN(tt)&&tt!==1?(GGBAppletUtils.scaleElement(Ve,tt),Ve.parentNode.style.width=Ge.width*tt+"px",Ve.parentNode.style.height=Ge.height*tt+"px"):(GGBAppletUtils.scaleElement(Ve,1),Ve.parentNode.style.width=Ge.width+"px",Ve.parentNode.style.height=Ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Je),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Nt.onExitFullscreen=function(Je,Qe){Qe.appendChild(Je)};var Ze=function(Je,Qe,Ve,ct){Se(Je,Qe,!0);for(var tt=function(){var ze=[];for(st=0;st<Je.childNodes.length;st++)ze.push(Je.childNodes[st]);if(window.GGBT_wsf_view){var Be=window.GGBT_wsf_view.renderFullScreen(Je,Qe.id),Ke=document.getElementById("fullscreencontainer"),Ie=jQuery(Je).find(".fullscreencontent");Ie.length>0?(Be.remove(),Ie.attr("id","fullscreencontent").show(),jQuery(Ke).append(Ie),window.dispatchEvent(new Event("resize"))):Me(Be,Qe,!1),window.GGBT_wsf_view.launchFullScreen(Ke)}else re=ct,Me(Je,Qe,!1);if(!window.GGBT_wsf_view)for(st=0;st<ze.length;st++)Je.removeChild(ze[st])},ut=Je.getElementsByClassName("ggb_preview_play"),st=0;st<ut.length;st++)ut[st].addEventListener("click",tt,!1),ut[st].addEventListener("ontouchstart",tt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Je),De()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Xe=function(){var Je=document.createElement("div");if(Je.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Qe='.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=Qe:Ve.appendChild(document.createTextNode(Qe)),document.getElementsByTagName("head")[0].appendChild(Ve)}return Je},$e=function(Je,Qe,Ve,ct){var tt=document.createElement("div");tt.className="ggb_preview",tt.style.position="absolute",tt.style.zIndex="90",tt.style.width=Je-2+"px",tt.style.height=Qe-2+"px",tt.style.top="0px",tt.style.left="0px",tt.style.overflow="hidden",tt.style.backgroundColor="white";var ut="lightgrey";Ve!==void 0&&(Ve==="none"?ut="transparent":ut=Ve),tt.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",fe!==null&&st.setAttribute("src",fe),st.style.opacity=.7,de!==null){var ze,Be,Ke;if(!ct){ze=document.createElement("img"),ze.style.position="absolute",ze.style.zIndex="1001",ze.style.opacity=1,st.style.opacity=.3,Be=360,Be>Je/4*3&&(Be=Je/4*3),Ke=Be/5.8,ze.setAttribute("src",de),ze.setAttribute("width",Be),ze.setAttribute("height",Ke);var Ie=(Je-Be)/2,Ye=(Qe-Ke)/2;ze.style.left=Ie+"px",ze.style.top=Ye+"px",tt.appendChild(ze)}}return tt.appendChild(st),tt},lt=function(Je){return Je=Je.toLowerCase(),Je==="html5"||Je==="screenshot"?Je:"html5"},Re=["web","webSimple","web3d","tablet","tablet3d","phone"],We=function(Je,Qe){if(te=Je,Qe){rt(te,!0);return}var Ve=!Et;if(Ve){var ct=Ce(te);!isNaN(ct)&&ct<4.4&&(Ve=!1)}var tt,ut;window.location.protocol.substr(0,4)==="http"?tt=window.location.protocol:tt="http:";var st=te.indexOf("//");st>0?ut=te:st===0?ut=tt+te:ut="https://www.geogebra.org/apps/5.2.814.0/";for(var ze in Re)if(te.slice(Re[ze].length*-1)===Re[ze]||te.slice((Re[ze].length+1)*-1)===Re[ze]+"/"){rt(ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ve&&!Ue.is3D&&!Ue.AV&&!Ue.SV&&!Ue.CV&&!Ue.EV2&&!Ue.CP&&!Ue.PC&&!Ue.DA&&!Ue.FI&&!Ue.PV&&!Oe(Ge.showToolBar)&&!Oe(Ge.showMenuBar)&&!Oe(Ge.showAlgebraInput)&&!Oe(Ge.enableRightClick)&&(!Ge.appName||Ge.appName=="classic")?ut+="webSimple/":ut+="web3d/",rt(ut,!1)},rt=function(Je,Qe){if(Je.requirejs){se=Je;return}Je.slice(-1)!=="/"&&(Je+="/"),se=Je,Qe===null&&(Qe=Je.indexOf("http")===-1),x=Qe,ae="web.nocache.js",ue=!1;var Ve=se.split("/");Ve.length>1&&(!Qe&&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=Je.split("/"),te=Ve[Ve.length-3],te.substr(0,4)==="test"?te=te.substr(4,1)+"."+te.substr(5,1):(te.substr(0,3)==="war"||te.substr(0,4)==="beta")&&(te="5.0");var ct=parseFloat(te);ct!==NaN&&ct<5&&Je.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ct+" is deprecated. Using version latest instead."),We("5.0",Qe))},ot=function(Je,Qe){window.console&&window.console.log&&(!Qe||typeof Qe.showLogging=="undefined"||Qe.showLogging&&Qe.showLogging!=="false")&&console.log(Je)};Ge.material_id!==void 0?Ae(at):at();function at(){var Je=Ot;ee!==null?Je=ee:parseFloat(Je)<5&&(Je="5.0"),We(Je,!1),E!==null&&rt(E,x),ge=!0}return Nt},GGBAppletUtils=function(){"use strict";function Nt(){return window.GGBT_wsf_edit!==void 0}function Ot(ge,ee){ee!=1?(ge.style.transformOrigin="0% 0% 0px",ge.style.webkitTransformOrigin="0% 0% 0px",ge.style.transform="scale("+ee+","+ee+")",ge.style.webkitTransform="scale("+ee+","+ee+")",ge.style.maxWidth="initial",ge.querySelector(".ggb_preview")!==null&&(ge.querySelector(".ggb_preview").style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ge.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ge.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ge.style.transform="none",ge.style.webkitTransform="none")}function Ge(ge,ee,E,ie,le,z){var se=null;if(z!=null&&z!="")for(var x=ge.parentNode;x!=null;)if((" "+x.className+" ").indexOf(" "+z+" ")>-1){se=x;break}else x=x.parentNode;var re=0,te=0,ae=0,ue=0,fe=0,de=0,he=0;if(se)re=se.offsetWidth,te=Math.max(ie?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(re=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),ae=re):(re=window.innerWidth,te=window.innerHeight,ae=window.innerWidth),ge){var ce=ge.getBoundingClientRect();ce.left>0&&ce.left<=re&&(le===void 0||!le)&&(document.dir==="rtl"?(fe=re-ce.width-ce.left,de=ae<=480?10:30):(de=ce.left,fe=ae<=480?10:30),ue=de+fe)}if(ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pe=ge.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ue=40,he=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue=0,he=40)}}return ge&&((E===void 0||!E)&&ee>0&&ee+ue<re?re=ee:re-=ue,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(E===void 0||!E)&&(te-=he)),{width:re,height:te}}function Ue(ge,ee,E,ie,le){if(ge.isScreenshoGenerator)return 1;var z=ie!==void 0&&ie,se=ge.noScaleMargin!=null&&ge.noScaleMargin,x=function(pe){return pe&&pe!=="false"},re=x(ge.autoHeight),te=Ge(ee,ge.width,E,re,z&&window.GGBT_wsf_view||se,le),ae=parseInt(te.width),ue=ge.width,fe=ge.height;if(ue===void 0){var de=ee.querySelector(".appletParameters");de&&(ue=de.offsetWidth,fe=de.offsetHeight)}var he=ae/ue,ce=z?1:te.height/fe;return E!==void 0&&!E&&(he=Math.min(1,he),ce=Math.min(1,ce)),Math.min(he,ce)}function Et(ge,ee,E){var ie=1,le,z=!1;if(ge.hasOwnProperty("allowUpscale")&&(z=ge.allowUpscale),ge.hasOwnProperty("scale")&&(ie=parseFloat(ge.scale),(isNaN(ie)||ie===null||ie===0)&&(ie=1),ie>1&&(z=!0)),ee&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z=!0),!(ge.hasOwnProperty("disableAutoScale")&&ge.disableAutoScale))le=Ue(ge,ee,z,E,ge.scaleContainerClass);else return ie;return z&&(!ge.hasOwnProperty("scale")||ie===1)?le:Math.min(ie,le)}function y(ge){var ee=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=ge.getBoundingClientRect(),le=(ee-ie.width)/2,z=(E-ie.height)/2;z<0&&(z=0),ge.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(le<40?ge.style.left="40px":ge.style.left=le+"px",ge.style.top=z+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(z<40?ge.style.top="40px":ge.style.top=z+"px",ge.style.left=le+"px")}function we(ge,ee){var E=ge.querySelector(".appletParameters");if(E){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ee.id!==E.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ge)}if(E.parentElement&&/fullscreen/.test(E.parentElement.className))return;var ie=Et(ee,ge);Nt()&&E.setAttribute("data-param-scale",ie);for(var le=null,z=0;z<ge.childNodes.length;z++)if(ge.childNodes[z].className!==void 0&&ge.childNodes[z].className.match(/^applet_scaler/)){le=ge.childNodes[z];break}if(le!==null&&le.querySelector(".noscale")!==null)return;var se=ee.id!==void 0?ee.id:"ggbApplet",x=window[se];(x==null||!x.recalculateEnvironments)&&le!==null&&!le.className.match(/fullscreen/)&&(le.parentNode.style.transform="",!isNaN(ie)&&ie!==1?(le.parentNode.style.width=ee.width*ie+"px",le.parentNode.style.height=ee.height*ie+"px",Ot(le,ie)):(Ot(le,1),le.parentNode.style.width=ee.width+"px",le.parentNode.style.height=ee.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&y(ge),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(E).parents(".content-added-content"))}}return{responsiveResize:we,isFlexibleWorksheetEditor:Nt,positionCenter:y,getScale:Et,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 Nt=n.location.search;return Nt.indexOf(J)!=-1||Nt.indexOf(K)!=-1}function q(Nt,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(Nt){var Ot=s[L].bindings;s[L].bindings=function(){for(var Ge=Ot?Ot():{},Ue=Nt[webModule.__softPermutationId],Et=O;Et<Ue.length;Et++){var y=Ue[Et];Ge[y[O]]=y[P]}return Ge}};var t;function u(){return v(),t}function v(){if(!t){var Nt=o.createElement(Q);if(Nt.id=L,Nt.style.cssText=R+S,Nt.tabIndex=-1,o.body.appendChild(Nt),t=Nt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Ot=document.compatMode==U?V:W;t.write(Ot+X),t.close()}}}function w(Nt){function Ot(Ue){function Et(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var y=Et();if(y){Ue();return}function we(){if(!y){if(!Et())return;y=!0,Ue(),o.removeEventListener&&o.removeEventListener(Z,we,!1),ge&&clearInterval(ge)}}o.addEventListener&&o.addEventListener(Z,we,!1);var ge=setInterval(function(){we()},$)}function Ge(Ue){var Et=u(),y=Et.body,we=Et.createElement(_);we.language=ab,we.crossOrigin=W,we.src=Ue,webModule.__errFn&&(we.onerror=function(){webModule.__errFn(L,new Error(bb+Ue))}),y.appendChild(we)}Ot(function(){Ge(Nt)})}webModule.__startLoadingFragment=function(Nt){return C(Nt)},webModule.__installRunAsyncCode=function(Nt){var Ot=u(),Ge=Ot.body,Ue=Ot.createElement(_);Ue.language=ab,Ue.text=Nt,Ge.appendChild(Ue),Ge.removeChild(Ue)};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(Nt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Nt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Nt){var Ot=c[Nt];return Ot==null?null:Ot},r=d,webModule.__errFn=e}function B(){function Nt(ge){var ee=ge.lastIndexOf(rb);ee==-1&&(ee=ge.length);var E=ge.indexOf(sb);E==-1&&(E=ge.length);var ie=ge.lastIndexOf(tb,Math.min(E,ee));return ie>=O?ge.substring(O,ie+P):W}function Ot(ge){if(!ge.match(/^\w+:\/\//)){var ee=o.createElement(ub);ee.src=ge+vb,ge=Nt(ee.src)}return ge}function Ge(){var ge=__gwt_getMetaProperty(wb);return ge!=null?ge:W}function Ue(){for(var ge=o.getElementsByTagName(_),ee=O;ee<ge.length;++ee)if(ge[ee].src.indexOf(xb)!=-1)return Nt(ge[ee].src);return W}function Et(){var ge=o.getElementsByTagName(yb);return ge.length>O?ge[ge.length-P].href:W}function y(){var ge=o.location;return ge.href==ge.protocol+zb+ge.host+ge.pathname+ge.search+ge.hash}var we=Ge();return we==W&&(we=Ue()),we==W&&(we=Et()),we==W&&y()&&(we=Nt(o.location.href)),we=Ot(we),we}function C(Nt){return Nt.match(/^\//)||Nt.match(/^[a-zA-Z]+:\/\//)?Nt:webModule.__moduleBase+Nt}function D(){var Nt=[],Ot=O,Ge=[],Ue=[];function Et(ge){var ee=Ue[ge](),E=Ge[ge];if(ee in E)return ee;var ie=[];for(var le in E)ie[E[le]]=le;throw r&&r(ge,ie,ee),null}if(__gwt_isKnownPropertyValue=function(ge,ee){return ee in Ge[ge]},webModule.__getPropMap=function(){var ge={};for(var ee in Ge)Ge.hasOwnProperty(ee)&&(ge[ee]=Et(ee));return ge},webModule.__computePropValue=Et,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var we=y.indexOf(Db);we!=-1&&(Ot=parseInt(y.substring(we+P),$),y=y.substring(O,we))}catch(ge){}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})()},52882:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Ax:function(){return we},Ds:function(){return ge},KI:function(){return E},SI:function(){return y},f1:function(){return Et}});var Ue=Ge(26869);function Et(ie){let le=!0;if(ie.length>0){for(let z=0;z<ie.length;z++)if(ie[z].compile_success==0||!ie[z].compile_success){le=!1;break}}else le=!1;return le}function y(ie,le=""){let z=[];for(let se=0;se<ie.length;se++){let x=ie[se],re=le?`${le}/${x.name}`:`${x.name}`;z.push({title:x.name,type:x.type,isLeaf:x.type!=="tree",key:re})}return z}function we(ie,le,z){for(let se=0;se<ie.length;se++){let x=ie[se];if(x.key===le){x.children=z;break}x.children&&we(x.children,le,z)}return ie}function ge(ie,le,z){let se;return function(){let x=this,re=arguments,te=function(){se=null,z||ie.apply(x,re)},ae=z&&!se;clearTimeout(se),se=setTimeout(te,le),ae&&ie.apply(x,re)}}const ee=!0,E=Ue.Z.API_SERVER},52697:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return fe}});var Ue=Ge(59301),Et=Ge(18287),y=Ge(89372),we={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"},ge=Object.defineProperty,ee=Object.defineProperties,E=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,se=(de,he,ce)=>he in de?ge(de,he,{enumerable:!0,configurable:!0,writable:!0,value:ce}):de[he]=ce,x=(de,he)=>{for(var ce in he||(he={}))le.call(he,ce)&&se(de,ce,he[ce]);if(ie)for(var ce of ie(he))z.call(he,ce)&&se(de,ce,he[ce]);return de},re=(de,he)=>ee(de,E(he)),te=(de,he)=>{var ce={};for(var pe in de)le.call(de,pe)&&he.indexOf(pe)<0&&(ce[pe]=de[pe]);if(de!=null&&ie)for(var pe of ie(de))he.indexOf(pe)<0&&z.call(de,pe)&&(ce[pe]=de[pe]);return ce},ae=(de,he,ce)=>new Promise((pe,Ce)=>{var ke=ve=>{try{Ae(ce.next(ve))}catch(be){Ce(be)}},De=ve=>{try{Ae(ce.throw(ve))}catch(be){Ce(be)}},Ae=ve=>ve.done?pe(ve.value):Promise.resolve(ve.value).then(ke,De);Ae((ce=ce.apply(de,he)).next())}),fe=de=>{var he=de,{value:ce,onChange:pe,defaultValue:Ce,disabled:ke}=he,De=te(he,["value","onChange","defaultValue","disabled"]);const[Ae,ve]=(0,Ue.useState)([]),[be,Ee]=(0,Ue.useState)("1");(0,Ue.useEffect)(()=>{Oe()},[]);const Oe=()=>ae(void 0,null,function*(){const je=yield(0,y.NZ)({});if(je!=null&&je.data){const Ze=[{title:Ue.createElement("div",{title:"\u6839\u76EE\u5F55",className:we.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:Ue.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Me(je.data||[])}];ve(Ze),Ee("2")}}),Me=je=>{function Ze(Xe){const $e=Xe.children,lt=Array.isArray($e)&&$e.length>0,Re=Xe==null?void 0:Xe.group_id;return{title:Ue.createElement("div",{title:Xe==null?void 0:Xe.name,className:we.name},Xe==null?void 0:Xe.name),value:Re,key:Re,icon:Ue.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:lt?$e==null?void 0:$e.map(We=>Ze(We)):[]}}return je==null?void 0:je.map(Xe=>Ze(Xe))},Se=Ce?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:ce,defaultExpandedKeys:ce};return Ue.createElement("div",{className:we.customTree},Ue.createElement(Et.default,x(re(x({key:be},Se),{showIcon:!0,treeData:Ae,onSelect:pe,disabled:ke}),De)))}},1986:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return it}});var Ue=Ge(59301),Et={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=Ge(92310),we=Ge.n(y),ge=Ge(29787);var ee=function(Te,xe){return(ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,Le){ye.__proto__=Le}||function(ye,Le){for(var et in Le)Object.prototype.hasOwnProperty.call(Le,et)&&(ye[et]=Le[et])})(Te,xe)};function E(Te,xe){function ye(){this.constructor=Te}ee(Te,xe),Te.prototype=xe===null?Object.create(xe):(ye.prototype=xe.prototype,new ye)}function ie(Te,xe,ye,Le){return new(ye||(ye=Promise))(function(et,Ne){function yt(gt){try{vt(Le.next(gt))}catch(ht){Ne(ht)}}function wt(gt){try{vt(Le.throw(gt))}catch(ht){Ne(ht)}}function vt(gt){var ht;gt.done?et(gt.value):(ht=gt.value,ht instanceof ye?ht:new ye(function(xt){xt(ht)})).then(yt,wt)}vt((Le=Le.apply(Te,xe||[])).next())})}function le(Te,xe){var ye,Le,et,Ne,yt={label:0,sent:function(){if(1&et[0])throw et[1];return et[1]},trys:[],ops:[]};return Ne={next:wt(0),throw:wt(1),return:wt(2)},typeof Symbol=="function"&&(Ne[Symbol.iterator]=function(){return this}),Ne;function wt(vt){return function(gt){return function(ht){if(ye)throw new TypeError("Generator is already executing.");for(;yt;)try{if(ye=1,Le&&(et=2&ht[0]?Le.return:ht[0]?Le.throw||((et=Le.return)&&et.call(Le),0):Le.next)&&!(et=et.call(Le,ht[1])).done)return et;switch(Le=0,et&&(ht=[2&ht[0],et.value]),ht[0]){case 0:case 1:et=ht;break;case 4:return yt.label++,{value:ht[1],done:!1};case 5:yt.label++,Le=ht[1],ht=[0];continue;case 7:ht=yt.ops.pop(),yt.trys.pop();continue;default:if(et=yt.trys,!((et=et.length>0&&et[et.length-1])||ht[0]!==6&&ht[0]!==2)){yt=0;continue}if(ht[0]===3&&(!et||ht[1]>et[0]&&ht[1]<et[3])){yt.label=ht[1];break}if(ht[0]===6&&yt.label<et[1]){yt.label=et[1],et=ht;break}if(et&&yt.label<et[2]){yt.label=et[2],yt.ops.push(ht);break}et[2]&&yt.ops.pop(),yt.trys.pop();continue}ht=xe.call(Te,yt)}catch(xt){ht=[6,xt],Le=0}finally{ye=et=0}if(5&ht[0])throw ht[1];return{value:ht[0]?ht[1]:void 0,done:!0}}([vt,gt])}}}function z(){for(var Te=0,xe=0,ye=arguments.length;xe<ye;xe++)Te+=arguments[xe].length;var Le=Array(Te),et=0;for(xe=0;xe<ye;xe++)for(var Ne=arguments[xe],yt=0,wt=Ne.length;yt<wt;yt++,et++)Le[et]=Ne[yt];return Le}var se=function(){function Te(){}return Te.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Te.setAttributes=function(xe,ye){for(var Le=0,et=ye;Le<et.length;Le++){var Ne=et[Le],yt=Ne[0],wt=Ne[1];xe.setAttribute(yt,wt)}},Te.createRect=function(xe,ye,Le){var et=document.createElementNS("http://www.w3.org/2000/svg","rect");return et.setAttribute("width",xe.toString()),et.setAttribute("height",ye.toString()),Le&&Te.setAttributes(et,Le),et},Te.createLine=function(xe,ye,Le,et,Ne){var yt=document.createElementNS("http://www.w3.org/2000/svg","line");return yt.setAttribute("x1",xe.toString()),yt.setAttribute("y1",ye.toString()),yt.setAttribute("x2",Le.toString()),yt.setAttribute("y2",et.toString()),Ne&&Te.setAttributes(yt,Ne),yt},Te.createPolygon=function(xe,ye){var Le=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Le.setAttribute("points",xe),ye&&Te.setAttributes(Le,ye),Le},Te.createCircle=function(xe,ye){var Le=document.createElementNS("http://www.w3.org/2000/svg","circle");return Le.setAttribute("cx",(xe/2).toString()),Le.setAttribute("cy",(xe/2).toString()),Le.setAttribute("r",xe.toString()),ye&&Te.setAttributes(Le,ye),Le},Te.createEllipse=function(xe,ye,Le){var et=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return et.setAttribute("cx",(xe/2).toString()),et.setAttribute("cy",(ye/2).toString()),et.setAttribute("rx",(xe/2).toString()),et.setAttribute("ry",(ye/2).toString()),Le&&Te.setAttributes(et,Le),et},Te.createGroup=function(xe){var ye=document.createElementNS("http://www.w3.org/2000/svg","g");return xe&&Te.setAttributes(ye,xe),ye},Te.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Te.createMarker=function(xe,ye,Le,et,Ne,yt,wt){var vt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Te.setAttributes(vt,[["id",xe],["orient",ye],["markerWidth",Le.toString()],["markerHeight",et.toString()],["refX",Ne.toString()],["refY",yt.toString()]]),vt.appendChild(wt),vt},Te.createText=function(xe){var ye=document.createElementNS("http://www.w3.org/2000/svg","text");return ye.setAttribute("x","0"),ye.setAttribute("y","0"),xe&&Te.setAttributes(ye,xe),ye},Te.createTSpan=function(xe,ye){var Le=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Le.textContent=xe,ye&&Te.setAttributes(Le,ye),Le},Te.createImage=function(xe){var ye=document.createElementNS("http://www.w3.org/2000/svg","image");return xe&&Te.setAttributes(ye,xe),ye},Te.createPoint=function(xe,ye){var Le=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Le.x=xe,Le.y=ye,Le},Te.createPath=function(xe,ye){var Le=document.createElementNS("http://www.w3.org/2000/svg","path");return Le.setAttribute("d",xe),ye&&Te.setAttributes(Le,ye),Le},Te}(),x=function(){function Te(){}return Te.addKey=function(xe){Te.key=xe},Object.defineProperty(Te,"isLicensed",{get:function(){return!!Te.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Te.key)},enumerable:!1,configurable:!0}),Te}(),re=function(){function Te(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Te.prototype.rasterize=function(xe,ye,Le){var et=this;return new Promise(function(Ne){var yt=Le!==void 0?Le:document.createElement("canvas");xe===null&&(et.markersOnly=!0,et.naturalSize=!1);var wt=document.createElementNS("http://www.w3.org/2000/svg","svg");wt.setAttribute("xmlns","http://www.w3.org/2000/svg"),wt.setAttribute("width",ye.width.baseVal.valueAsString),wt.setAttribute("height",ye.height.baseVal.valueAsString),wt.setAttribute("viewBox","0 0 "+ye.viewBox.baseVal.width.toString()+" "+ye.viewBox.baseVal.height.toString()),wt.innerHTML=ye.innerHTML,et.naturalSize===!0?(wt.width.baseVal.value=xe.naturalWidth,wt.height.baseVal.value=xe.naturalHeight):et.width!==void 0&&et.height!==void 0&&(wt.width.baseVal.value=et.width,wt.height.baseVal.value=et.height),yt.width=wt.width.baseVal.value,yt.height=wt.height.baseVal.value;var vt=wt.outerHTML,gt=yt.getContext("2d");et.markersOnly!==!0&&gt.drawImage(xe,0,0,yt.width,yt.height);var ht=window.URL,xt=new Image(yt.width,yt.height);xt.setAttribute("crossOrigin","anonymous");var St=new Blob([vt],{type:"image/svg+xml"}),Ct=ht.createObjectURL(St);xt.onload=function(){gt.drawImage(xt,0,0),ht.revokeObjectURL(Ct);var jt=yt.toDataURL(et.imageType,et.imageQuality);Ne(jt)},xt.src=Ct})},Te}(),te=function(){},ae=function(){function Te(xe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+xe+"_"}return Object.defineProperty(Te.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Te.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(Te.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Te.prototype.addClass=function(xe){return this.styleSheet===void 0&&this.addStyleSheet(),xe.name=""+this.classNamePrefix+xe.localName,this.classes.push(xe),this.styleSheet.sheet.insertRule("."+xe.name+" {"+xe.style+"}",this.styleSheet.sheet.cssRules.length),xe},Te.prototype.addRule=function(xe){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(xe),this.styleSheet.sheet.insertRule(xe.selector+" {"+xe.style+"}",this.styleSheet.sheet.cssRules.length)},Te.prototype.addStyleSheet=function(){var xe;this.styleSheet=document.createElement("style"),((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).appendChild(this.styleSheet),this.addRule(new ue("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ue("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ue("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new fe("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new fe("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Te.prototype.removeStyleSheet=function(){var xe;this.styleSheet&&(((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Te}(),ue=function(Te,xe){this.selector=Te,this.style=xe},fe=function(Te,xe){this.localName=Te,this.style=xe},de=function(){function Te(xe,ye,Le,et,Ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=xe,this.displayMode=ye,this.markerItems=Le,this.uiStyleSettings=et,this.styles=Ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Te.prototype.show=function(xe){var ye=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xe,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Le=document.createElement("div");Le.className=this.toolbarBlockStyleClass.name,Le.style.whiteSpace="nowrap",this.uiContainer.appendChild(Le),this.addActionButton(Le,'<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(Le,'<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(Le,'<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(Le,'<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(Le,'<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(Le,'<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(Le,'<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(Le,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Ne){var yt=document.createElement("div");yt.className=""+ye.toolbarButtonStyleClass.name,yt.setAttribute("data-type-name",Ne.typeName),yt.innerHTML=Ne.icon,yt.addEventListener("click",function(){ye.markerToolbarButtonClicked(yt,Ne)}),ye.buttons.push(yt),ye.markerButtons.push(yt)}),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 et=document.createElement("div");et.className=this.toolbarBlockStyleClass.name,et.style.whiteSpace="nowrap",et.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(et),this.addActionButton(et,'<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(et,'<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()},Te.prototype.addButtonClickListener=function(xe){this.buttonClickListeners.push(xe)},Te.prototype.removeButtonClickListener=function(xe){this.buttonClickListeners.indexOf(xe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(xe),1)},Te.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Te.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var xe=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ye=0;ye<this.markerButtons.length;ye++)ye<xe||ye===xe&&this.markerButtons.length-1===xe?this.markerButtonBlock.appendChild(this.markerButtons[ye]):(ye===xe&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ye]))}},Te.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")},Te.prototype.resetButtonStyles=function(){var xe=this;this.buttons.forEach(function(ye){ye.className=ye.className.replace(xe.uiStyleSettings.toolbarButtonStyleColorsClassName?xe.uiStyleSettings.toolbarButtonStyleColorsClassName:xe.toolbarButtonStyleColorsClass.name,"").trim(),ye.className=ye.className.replace(xe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?xe.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:xe.toolbarActiveButtonStyleColorsClass.name,"").trim(),ye.className+=" "+(xe.uiStyleSettings.toolbarButtonStyleColorsClassName?xe.uiStyleSettings.toolbarButtonStyleColorsClassName:xe.toolbarButtonStyleColorsClass.name)})},Te.prototype.addActionButton=function(xe,ye,Le){var et=this,Ne=document.createElement("div");switch(Ne.className=""+this.toolbarButtonStyleClass.name,Ne.innerHTML=ye,Ne.setAttribute("data-action",Le),Ne.addEventListener("click",function(){et.actionToolbarButtonClicked(Ne,Le)}),Le){case"select":Ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ne.style.fill=this.uiStyleSettings.closeButtonColor}xe.appendChild(Ne),this.buttons.push(Ne)},Te.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new fe("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 fe("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new fe("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new fe("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 fe("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new fe("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*xe)+`px;
padding: `+xe+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new fe("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new fe("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ue("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ue("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Te.prototype.markerToolbarButtonClicked=function(xe,ye){this.setActiveButton(xe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Le){return Le("marker",ye)}),this.markerButtonOverflowBlock.style.display="none"},Te.prototype.actionToolbarButtonClicked=function(xe,ye){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Le){return Le("action",ye)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Te.prototype.setActiveButton=function(xe){this.resetButtonStyles(),xe.className=xe.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),xe.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Te.prototype.setActiveMarkerButton=function(xe){var ye=this.markerButtons.find(function(Le){return Le.getAttribute("data-type-name")===xe});ye&&this.setActiveButton(ye)},Te.prototype.setCurrentMarker=function(xe){var ye=this;this.currentMarker=xe,this.buttons.filter(function(Le){return/delete|notes/.test(Le.getAttribute("data-action"))}).forEach(function(Le){ye.currentMarker===void 0?(Le.style.fillOpacity="0.4",Le.style.pointerEvents="none"):(Le.style.fillOpacity="1",Le.style.pointerEvents="all")})},Te}(),he=function(){function Te(xe,ye,Le,et){this.panels=[],this.panelButtons=[],this.markerjsContainer=xe,this.displayMode=ye,this.uiStyleSettings=Le,this.styles=et,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Te.prototype.addStyles=function(){var xe;this.toolboxStyleClass=this.styles.addClass(new fe("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 fe("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ye=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new fe("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new fe("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new fe("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 fe("toolbox-panel-row_colors",`
background-color: `+((xe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&xe!==void 0?xe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new fe("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ye)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ye)+`px;
padding: `+ye+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new fe("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new fe("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ue("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ue("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Te.prototype.show=function(xe){var ye;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=xe,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Te.prototype.setPanelButtons=function(xe){var ye,Le,et=this;this.panels=xe,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Le=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Le!==void 0?Le:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ne){var yt;Ne.uiStyleSettings=et.uiStyleSettings;var wt=document.createElement("div");wt.className=et.toolboxButtonStyleClass.name+" "+((yt=et.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&yt!==void 0?yt:et.toolboxButtonStyleColorsClass.name),wt.innerHTML=Ne.icon,wt.title=Ne.title,wt.addEventListener("click",function(){et.panelButtonClick(Ne)}),et.panelButtons.push(wt),et.buttonRow.appendChild(wt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Te.prototype.panelButtonClick=function(xe){var ye=this,Le=-1;if(xe!==this.activePanel){Le=this.panels.indexOf(xe),this.panelRow.innerHTML="";var et=xe.getUi();et.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(et),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=xe}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ye.displayMode==="inline"?ye.panelRow.style.display="none":ye.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Ne,yt){var wt,vt;Ne.className=ye.toolboxButtonStyleClass.name+" "+(yt===Le?""+((wt=ye.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&wt!==void 0?wt:ye.toolboxActiveButtonStyleColorsClass.name):""+((vt=ye.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:ye.toolboxButtonStyleColorsClass.name))})},Te}(),ce=function(Te,xe){this.title=Te,this.icon=xe},pe=function(Te){function xe(ye,Le,et,Ne){var yt=Te.call(this,ye,Ne||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return yt.colors=[],yt.addTransparent=!1,yt.colorBoxes=[],yt.colors=Le,yt.currentColor=et,yt.setCurrentColor=yt.setCurrentColor.bind(yt),yt.getColorBox=yt.getColorBox.bind(yt),yt}return E(xe,Te),xe.prototype.getUi=function(){var ye=this,Le=document.createElement("div");return Le.style.overflow="hidden",Le.style.whiteSpace="nowrap",this.colors.forEach(function(et){var Ne=ye.getColorBox(et);Le.appendChild(Ne),ye.colorBoxes.push(Ne)}),Le},xe.prototype.getColorBox=function(ye){var Le=this,et=this.uiStyleSettings.toolbarHeight/4,Ne=this.uiStyleSettings.toolbarHeight-et,yt=document.createElement("div");yt.style.display="inline-block",yt.style.boxSizing="content-box",yt.style.width=Ne-2+"px",yt.style.height=Ne-2+"px",yt.style.padding="1px",yt.style.marginRight="2px",yt.style.marginBottom="2px",yt.style.borderWidth="2px",yt.style.borderStyle="solid",yt.style.borderRadius=(Ne+2)/2+"px",yt.style.borderColor=ye===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",yt.addEventListener("click",function(){Le.setCurrentColor(ye,yt)});var wt=document.createElement("div");return wt.style.display="inline-block",wt.style.width=Ne-2+"px",wt.style.height=Ne-2+"px",wt.style.backgroundColor=ye,wt.style.borderRadius=Ne/2+"px",ye==="transparent"&&(wt.style.fill=this.uiStyleSettings.toolboxAccentColor,wt.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>`),yt.appendChild(wt),yt},xe.prototype.setCurrentColor=function(ye,Le){var et=this;this.currentColor=ye,this.colorBoxes.forEach(function(Ne){Ne.style.borderColor=Ne===Le?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ye)},xe}(ce),Ce=function(){function Te(xe,ye,Le){this._state="new",this._isSelected=!1,this._container=xe,this._overlayContainer=ye,this.globalSettings=Le,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Te.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Te.prototype.ownsTarget=function(xe){return!1},Object.defineProperty(Te.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Te.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Te.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Te.prototype.pointerDown=function(xe,ye){},Te.prototype.dblClick=function(xe,ye){},Te.prototype.manipulate=function(xe){},Te.prototype.pointerUp=function(xe){this.stateChanged()},Te.prototype.dispose=function(){},Te.prototype.addMarkerVisualToContainer=function(xe){this.container.childNodes.length>0?this.container.insertBefore(xe,this.container.childNodes[0]):this.container.appendChild(xe)},Te.prototype.getState=function(){return{typeName:Te.typeName,state:this.state,notes:this.notes}},Te.prototype.restoreState=function(xe){this._state=xe.state,this.notes=xe.notes},Te.prototype.scale=function(xe,ye){},Te.prototype.colorChanged=function(xe){this.onColorChanged&&this.onColorChanged(xe),this.stateChanged()},Te.prototype.fillColorChanged=function(xe){this.onFillColorChanged&&this.onFillColorChanged(xe),this.stateChanged()},Te.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var xe=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),xe.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(xe)&&this.onStateChanged(this)}},Te.typeName="MarkerBase",Te}(),ke=function(){function Te(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Te.prototype.findGripByVisual=function(xe){return this.topLeft.ownsTarget(xe)?this.topLeft:this.topCenter.ownsTarget(xe)?this.topCenter:this.topRight.ownsTarget(xe)?this.topRight:this.centerLeft.ownsTarget(xe)?this.centerLeft:this.centerRight.ownsTarget(xe)?this.centerRight:this.bottomLeft.ownsTarget(xe)?this.bottomLeft:this.bottomCenter.ownsTarget(xe)?this.bottomCenter:this.bottomRight.ownsTarget(xe)?this.bottomRight:void 0},Te}(),De=function(){function Te(){this.GRIP_SIZE=10,this.visual=se.createGroup(),this.visual.appendChild(se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(se.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Te.prototype.ownsTarget=function(xe){return xe===this.visual||xe===this.visual.childNodes[0]||xe===this.visual.childNodes[1]},Te}(),Ae=function(){function Te(){}return Te.toITransformMatrix=function(xe){return{a:xe.a,b:xe.b,c:xe.c,d:xe.d,e:xe.e,f:xe.f}},Te.toSVGMatrix=function(xe,ye){return xe.a=ye.a,xe.b=ye.b,xe.c=ye.c,xe.d=ye.d,xe.e=ye.e,xe.f=ye.f,xe},Te}(),ve=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.left=0,Ne.top=0,Ne.width=0,Ne.height=0,Ne.defaultSize={x:50,y:20},Ne.offsetX=0,Ne.offsetY=0,Ne.rotationAngle=0,Ne.CB_DISTANCE=10,Ne._suppressMarkerCreateEvent=!1,Ne.container.transform.baseVal.appendItem(se.createTransform()),Ne.setupControlBox(),Ne}return E(xe,Te),Object.defineProperty(xe.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"visual",{get:function(){return this._visual},set:function(ye){this._visual=ye;var Le=se.createTransform();this._visual.transform.baseVal.appendItem(Le)},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(ye){return!!Te.prototype.ownsTarget.call(this,ye)||!!(this.controlGrips.findGripByVisual(ye)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ye))},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.state==="new"&&(this.left=ye.x,this.top=ye.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var et=this.unrotatePoint(ye);if(this.manipulationStartX=et.x,this.manipulationStartY=et.y,this.offsetX=et.x-this.left,this.offsetY=et.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Le),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Le)){this.activeGrip=this.rotatorGrip;var Ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ne.x-this.width/2,this.top=Ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var yt=this.container.transform.baseVal.getItem(0);yt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(yt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},xe.prototype.pointerUp=function(ye){var Le=this.state;Te.prototype.pointerUp.call(this,ye),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ye),this._state="select",Le==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},xe.prototype.moveVisual=function(ye){this.visual.style.transform="translate("+ye.x+"px, "+ye.y+"px)"},xe.prototype.manipulate=function(ye){var Le=this.unrotatePoint(ye);this.state==="creating"?this.resize(ye):this.state==="move"?(this.left=this.manipulationStartLeft+(Le.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Le.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Le):this.state==="rotate"&&this.rotate(ye)},xe.prototype.resize=function(ye){var Le=this.manipulationStartLeft,et=this.manipulationStartWidth,Ne=this.manipulationStartTop,yt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Le=this.manipulationStartLeft+ye.x-this.manipulationStartX,et=this.manipulationStartWidth+this.manipulationStartLeft-Le;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:et=this.manipulationStartWidth+ye.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ne=this.manipulationStartTop+ye.y-this.manipulationStartY,yt=this.manipulationStartHeight+this.manipulationStartTop-Ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:yt=this.manipulationStartHeight+ye.y-this.manipulationStartY}et>=0?(this.left=Le,this.width=et):(this.left=Le+et,this.width=-et),yt>=0?(this.top=Ne,this.height=yt):(this.top=Ne+yt,this.height=-yt),this.setSize()},xe.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},xe.prototype.rotate=function(ye){if(Math.abs(ye.x-this.centerX)>.1){var Le=Math.sign(ye.x-this.centerX);this.rotationAngle=180*Math.atan((ye.y-this.centerY)/(ye.x-this.centerX))/Math.PI+90*Le,this.applyRotation()}},xe.prototype.applyRotation=function(){var ye=this.container.transform.baseVal.getItem(0);ye.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ye,0)},xe.prototype.rotatePoint=function(ye){if(this.rotationAngle===0)return ye;var Le=this.container.getCTM(),et=se.createPoint(ye.x,ye.y);return{x:(et=et.matrixTransform(Le)).x,y:et.y}},xe.prototype.unrotatePoint=function(ye){if(this.rotationAngle===0)return ye;var Le=this.container.getCTM();Le=Le.inverse();var et=se.createPoint(ye.x,ye.y);return{x:(et=et.matrixTransform(Le)).x,y:et.y}},xe.prototype.select=function(){Te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){Te.prototype.deselect.call(this),this.controlBox.style.display="none"},xe.prototype.setupControlBox=function(){this.controlBox=se.createGroup();var ye=se.createTransform();ye.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ye),this.container.appendChild(this.controlBox),this.controlRect=se.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=se.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 ke,this.addControlGrips(),this.controlBox.style.display="none"},xe.prototype.adjustControlBox=function(){var ye=this.controlBox.transform.baseVal.getItem(0);ye.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ye,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()},xe.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()},xe.prototype.createGrip=function(){var ye=new De;return ye.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(ye.visual),ye},xe.prototype.positionGrips=function(){var ye=this.controlGrips.topLeft.GRIP_SIZE,Le=-ye/2,et=Le,Ne=(this.width+this.CB_DISTANCE)/2-ye/2,yt=(this.height+this.CB_DISTANCE)/2-ye/2,wt=this.height+this.CB_DISTANCE-ye/2,vt=this.width+this.CB_DISTANCE-ye/2;this.positionGrip(this.controlGrips.topLeft.visual,Le,et),this.positionGrip(this.controlGrips.topCenter.visual,Ne,et),this.positionGrip(this.controlGrips.topRight.visual,vt,et),this.positionGrip(this.controlGrips.centerLeft.visual,Le,yt),this.positionGrip(this.controlGrips.centerRight.visual,vt,yt),this.positionGrip(this.controlGrips.bottomLeft.visual,Le,wt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ne,wt),this.positionGrip(this.controlGrips.bottomRight.visual,vt,wt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ne,et-3*this.CB_DISTANCE)},xe.prototype.positionGrip=function(ye,Le,et){var Ne=ye.transform.baseVal.getItem(0);Ne.setTranslate(Le,et),ye.transform.baseVal.replaceItem(Ne,0)},xe.prototype.hideControlBox=function(){this.controlBox.style.display="none"},xe.prototype.showControlBox=function(){this.controlBox.style.display=""},xe.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ae.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ae.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Te.prototype.getState.call(this))},xe.prototype.restoreState=function(ye){Te.prototype.restoreState.call(this,ye);var Le=ye;this.left=Le.left,this.top=Le.top,this.width=Le.width,this.height=Le.height,this.rotationAngle=Le.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ae.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Le.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ae.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Le.containerTransformMatrix))},xe.prototype.scale=function(ye,Le){Te.prototype.scale.call(this,ye,Le);var et=this.rotatePoint({x:this.left,y:this.top}),Ne=this.unrotatePoint({x:et.x*ye,y:et.y*Le});this.left=Ne.x,this.top=Ne.y,this.width=this.width*ye,this.height=this.height*Le,this.adjustControlBox()},xe}(Ce),be=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.fillColor="transparent",Ne.strokeColor="transparent",Ne.strokeWidth=0,Ne.strokeDasharray="",Ne.opacity=1,Ne.setStrokeColor=Ne.setStrokeColor.bind(Ne),Ne.setFillColor=Ne.setFillColor.bind(Ne),Ne.setStrokeWidth=Ne.setStrokeWidth.bind(Ne),Ne.setStrokeDasharray=Ne.setStrokeDasharray.bind(Ne),Ne.createVisual=Ne.createVisual.bind(Ne),Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return!(!Te.prototype.ownsTarget.call(this,ye)&&ye!==this.visual)},xe.prototype.createVisual=function(){this.visual=se.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)},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},xe.prototype.manipulate=function(ye){Te.prototype.manipulate.call(this,ye)},xe.prototype.resize=function(ye){Te.prototype.resize.call(this,ye),this.setSize()},xe.prototype.setSize=function(){Te.prototype.setSize.call(this),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(ye){Te.prototype.pointerUp.call(this,ye),this.setSize()},xe.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},xe.prototype.setFillColor=function(ye){this.fillColor=ye,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},xe.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xe.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Te.prototype.getState.call(this))},xe.prototype.restoreState=function(ye){var Le=ye;this.fillColor=Le.fillColor,this.strokeColor=Le.strokeColor,this.strokeWidth=Le.strokeWidth,this.strokeDasharray=Le.strokeDasharray,this.opacity=Le.opacity,this.createVisual(),Te.prototype.restoreState.call(this,ye),this.setSize()},xe.prototype.scale=function(ye,Le){Te.prototype.scale.call(this,ye,Le),this.setSize()},xe.title="Rectangle marker",xe}(ve),Ee=function(Te){function xe(ye,Le,et,Ne){var yt=Te.call(this,ye,Ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return yt.widths=[],yt.widthBoxes=[],yt.widths=Le,yt.currentWidth=et,yt.setCurrentWidth=yt.setCurrentWidth.bind(yt),yt}return E(xe,Te),xe.prototype.getUi=function(){var ye=this,Le=document.createElement("div");return Le.style.display="flex",Le.style.overflow="hidden",Le.style.flexGrow="2",this.widths.forEach(function(et){var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.flexGrow="2",Ne.style.alignItems="center",Ne.style.justifyContent="space-between",Ne.style.padding="5px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.borderColor=et===ye.currentWidth?ye.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){ye.setCurrentWidth(et,Ne)}),Le.appendChild(Ne);var yt=document.createElement("div");yt.innerText=et.toString(),yt.style.marginRight="5px",Ne.appendChild(yt);var wt=document.createElement("div");wt.style.minHeight="20px",wt.style.flexGrow="2",wt.style.display="flex",wt.style.alignItems="center";var vt=document.createElement("hr");vt.style.minWidth="20px",vt.style.border="0px",vt.style.borderTop=et+"px solid "+ye.uiStyleSettings.toolboxColor,vt.style.flexGrow="2",wt.appendChild(vt),Ne.appendChild(wt),ye.widthBoxes.push(Ne)}),Le},xe.prototype.setCurrentWidth=function(ye,Le){var et=this;this.currentWidth=ye,this.widthBoxes.forEach(function(Ne){Ne.style.borderColor=Ne===Le?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},xe}(ce),Oe=function(Te){function xe(ye,Le,et,Ne){var yt=Te.call(this,ye,Ne||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return yt.styles=[],yt.styleBoxes=[],yt.styles=Le,yt.currentStyle=et,yt.setCurrentStyle=yt.setCurrentStyle.bind(yt),yt}return E(xe,Te),xe.prototype.getUi=function(){var ye=this,Le=document.createElement("div");return Le.style.display="flex",Le.style.overflow="hidden",Le.style.flexGrow="2",this.styles.forEach(function(et){var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.alignItems="center",Ne.style.justifyContent="space-between",Ne.style.padding="5px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.overflow="hidden",Ne.style.maxWidth=100/ye.styles.length-5+"%",Ne.style.borderColor=et===ye.currentStyle?ye.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){ye.setCurrentStyle(et,Ne)}),Le.appendChild(Ne);var yt=document.createElement("div");yt.style.minHeight="20px",yt.style.flexGrow="2",yt.style.overflow="hidden";var wt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ye.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(et!==""?'stroke-dasharray="'+et+'"':"")+` />
</svg>`;yt.innerHTML=wt,Ne.appendChild(yt),ye.styleBoxes.push(Ne)}),Le},xe.prototype.setCurrentStyle=function(ye,Le){var et=this;this.currentStyle=ye,this.styleBoxes.forEach(function(Ne){Ne.style.borderColor=Ne===Le?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},xe}(ce),Me=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.strokeColor=et.defaultColor,Ne.strokeWidth=et.defaultStrokeWidth,Ne.strokeDasharray=et.defaultStrokeDasharray,Ne.strokePanel=new pe("Line color",et.defaultColorSet,et.defaultColor),Ne.strokePanel.onColorChanged=Ne.setStrokeColor,Ne.strokeWidthPanel=new Ee("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Ne.strokeWidthPanel.onWidthChanged=Ne.setStrokeWidth,Ne.strokeStylePanel=new Oe("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Ne.strokeStylePanel.onStyleChanged=Ne.setStrokeDasharray,Ne}return E(xe,Te),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Te.prototype.getState.call(this);return ye.typeName=xe.typeName,ye},xe.typeName="FrameMarker",xe.title="Frame marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',xe}(be),Se=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"},je=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.x1=0,Ne.y1=0,Ne.x2=0,Ne.y2=0,Ne.defaultLength=50,Ne.manipulationStartX=0,Ne.manipulationStartY=0,Ne.manipulationStartX1=0,Ne.manipulationStartY1=0,Ne.manipulationStartX2=0,Ne.manipulationStartY2=0,Ne.setupControlBox(),Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return!!Te.prototype.ownsTarget.call(this,ye)||!(!this.grip1.ownsTarget(ye)&&!this.grip2.ownsTarget(ye))},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.manipulationStartX=ye.x,this.manipulationStartY=ye.y,this.state==="new"&&(this.x1=ye.x,this.y1=ye.y,this.x2=ye.x,this.y2=ye.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(Le)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Le)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},xe.prototype.pointerUp=function(ye){var Le=this.state;Te.prototype.pointerUp.call(this,ye),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(ye),this._state="select",Le==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},xe.prototype.adjustVisual=function(){},xe.prototype.manipulate=function(ye){this.state==="creating"?this.resize(ye):this.state==="move"?(this.x1=this.manipulationStartX1+ye.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ye.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ye.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ye.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ye)},xe.prototype.resize=function(ye){switch(this.activeGrip){case this.grip1:this.x1=ye.x,this.y1=ye.y;break;case this.grip2:case void 0:this.x2=ye.x,this.y2=ye.y}this.adjustVisual(),this.adjustControlBox()},xe.prototype.select=function(){Te.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){Te.prototype.deselect.call(this),this.controlBox.style.display="none"},xe.prototype.setupControlBox=function(){this.controlBox=se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},xe.prototype.adjustControlBox=function(){this.positionGrips()},xe.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},xe.prototype.createGrip=function(){var ye=new De;return ye.visual.transform.baseVal.appendItem(se.createTransform()),this.controlBox.appendChild(ye.visual),ye},xe.prototype.positionGrips=function(){var ye=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ye/2,this.y1-ye/2),this.positionGrip(this.grip2.visual,this.x2-ye/2,this.y2-ye/2)},xe.prototype.positionGrip=function(ye,Le,et){var Ne=ye.transform.baseVal.getItem(0);Ne.setTranslate(Le,et),ye.transform.baseVal.replaceItem(Ne,0)},xe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Te.prototype.getState.call(this))},xe.prototype.restoreState=function(ye){Te.prototype.restoreState.call(this,ye);var Le=ye;this.x1=Le.x1,this.y1=Le.y1,this.x2=Le.x2,this.y2=Le.y2},xe.prototype.scale=function(ye,Le){Te.prototype.scale.call(this,ye,Le),this.x1=this.x1*ye,this.y1=this.y1*Le,this.x2=this.x2*ye,this.y2=this.y2*Le,this.adjustVisual(),this.adjustControlBox()},xe}(Ce),Ze=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.strokeColor="transparent",Ne.strokeWidth=0,Ne.strokeDasharray="",Ne.setStrokeColor=Ne.setStrokeColor.bind(Ne),Ne.setStrokeWidth=Ne.setStrokeWidth.bind(Ne),Ne.setStrokeDasharray=Ne.setStrokeDasharray.bind(Ne),Ne.strokeColor=et.defaultColor,Ne.strokeWidth=et.defaultStrokeWidth,Ne.strokeDasharray=et.defaultStrokeDasharray,Ne.strokePanel=new pe("Line color",et.defaultColorSet,et.defaultColor),Ne.strokePanel.onColorChanged=Ne.setStrokeColor,Ne.strokeWidthPanel=new Ee("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Ne.strokeWidthPanel.onWidthChanged=Ne.setStrokeWidth,Ne.strokeStylePanel=new Oe("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Ne.strokeStylePanel.onStyleChanged=Ne.setStrokeDasharray,Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return!(!Te.prototype.ownsTarget.call(this,ye)&&ye!==this.visual&&ye!==this.selectorLine&&ye!==this.visibleLine)},xe.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorLine=se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=se.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)},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},xe.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()),se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xe.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.adjustVisual(),this.colorChanged(ye)},xe.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.adjustVisual()},xe.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Te.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){Te.prototype.restoreState.call(this,ye);var Le=ye;this.strokeColor=Le.strokeColor,this.strokeWidth=Le.strokeWidth,this.strokeDasharray=Le.strokeDasharray,this.createVisual(),this.adjustVisual()},xe.typeName="LineMarker",xe.title="Line marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',xe}(je),Xe=function(Te){function xe(ye,Le,et,Ne){var yt=Te.call(this,ye,Ne||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return yt.fonts=[],yt.fontBoxes=[],yt.fonts=Le,yt.currentFont=et,yt.setCurrentFont=yt.setCurrentFont.bind(yt),yt}return E(xe,Te),xe.prototype.getUi=function(){var ye=this,Le=document.createElement("div");return Le.style.overflow="hidden",Le.style.flexGrow="2",this.fonts.forEach(function(et){var Ne=document.createElement("div");Ne.style.display="inline-block",Ne.style.alignItems="center",Ne.style.justifyContent="space-between",Ne.style.padding="5px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.overflow="hidden",Ne.style.maxWidth=100/ye.fonts.length-5+"%",Ne.style.borderColor=et===ye.currentFont?ye.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){ye.setCurrentFont(et,Ne)}),Le.appendChild(Ne);var yt=document.createElement("div");yt.style.display="flex",yt.style.minHeight="20px",yt.style.flexGrow="2",yt.style.fontFamily=et,yt.style.overflow="hidden";var wt=document.createElement("div");wt.style.whiteSpace="nowrap",wt.style.overflow="hidden",wt.style.textOverflow="ellipsis",wt.innerHTML="The quick brown fox jumps over the lazy dog",yt.appendChild(wt),Ne.appendChild(yt),ye.fontBoxes.push(Ne)}),Le},xe.prototype.setCurrentFont=function(ye,Le){var et=this;this.currentFont=ye,this.fontBoxes.forEach(function(Ne){Ne.style.borderColor=Ne===Le?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},xe}(ce),$e=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.color="transparent",Ne.padding=5,Ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ne.text=Ne.DEFAULT_TEXT,Ne.isMoved=!1,Ne.color=et.defaultColor,Ne.fontFamily=et.defaultFontFamily,Ne.defaultSize={x:100,y:30},Ne.setColor=Ne.setColor.bind(Ne),Ne.setFont=Ne.setFont.bind(Ne),Ne.renderText=Ne.renderText.bind(Ne),Ne.sizeText=Ne.sizeText.bind(Ne),Ne.textEditDivClicked=Ne.textEditDivClicked.bind(Ne),Ne.showTextEditor=Ne.showTextEditor.bind(Ne),Ne.setSize=Ne.setSize.bind(Ne),Ne.positionTextEditor=Ne.positionTextEditor.bind(Ne),Ne.colorPanel=new pe("Color",et.defaultColorSet,et.defaultColor),Ne.colorPanel.onColorChanged=Ne.setColor,Ne.fontFamilyPanel=new Xe("Font",et.defaultFontFamilies,et.defaultFontFamily),Ne.fontFamilyPanel.onFontChanged=Ne.setFont,Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){if(Te.prototype.ownsTarget.call(this,ye)||ye===this.visual||ye===this.textElement||ye===this.bgRectangle)return!0;var Le=!1;return this.textElement.childNodes.forEach(function(et){et===ye&&(Le=!0)}),Le},xe.prototype.createVisual=function(){this.visual=se.createGroup(),this.bgRectangle=se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.textElement.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.isMoved=!1,this.pointerDownPoint=ye,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},xe.prototype.renderText=function(){var ye=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(Le){ye.textElement.appendChild(se.createTSpan(Le.trim()===""?" ":Le.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},xe.prototype.getTextScale=function(){var ye=this.textElement.getBBox(),Le=1;if(ye.width>0&&ye.height>0){var et=(1*this.width-this.width*this.padding*2/100)/ye.width,Ne=(1*this.height-this.height*this.padding*2/100)/ye.height;Le=Math.min(et,Ne)}return Le},xe.prototype.getTextPosition=function(ye){var Le=this.textElement.getBBox(),et=0,Ne=0;return Le.width>0&&Le.height>0&&(et=(this.width-Le.width*ye)/2,Ne=this.height/2-Le.height*ye/2),{x:et,y:Ne}},xe.prototype.sizeText=function(){var ye=this.textElement.getBBox(),Le=this.getTextScale(),et=this.getTextPosition(Le);et.y-=ye.y*Le,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+et.x+"px, "+et.y+"px) scale("+Le+", "+Le+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(et.x,et.y),this.textElement.transform.baseVal.getItem(1).setScale(Le,Le))},xe.prototype.manipulate=function(ye){Te.prototype.manipulate.call(this,ye),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ye.x-this.pointerDownPoint.x)>5||Math.abs(ye.y-this.pointerDownPoint.y)>5)},xe.prototype.resize=function(ye){Te.prototype.resize.call(this,ye),this.isMoved=!0,this.setSize(),this.sizeText()},xe.prototype.setSize=function(){Te.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},xe.prototype.pointerUp=function(ye){var Le=this.state;Le==="creating"&&(this._suppressMarkerCreateEvent=!0),Te.prototype.pointerUp.call(this,ye),this.setSize(),(Le==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},xe.prototype.showTextEditor=function(){var ye=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(Le){Le.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Le=Number.parseFloat(ye.textEditor.style.fontSize);ye.textEditor.clientWidth>=Number.parseInt(ye.textEditor.style.maxWidth)&&Le>.9;)Le-=.1,ye.textEditor.style.fontSize=Math.max(Le,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Le){Le.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Le){if(Le.clipboardData){var et=Le.clipboardData.getData("text"),Ne=window.getSelection();if(!Ne.rangeCount)return!1;Ne.deleteFromDocument(),Ne.getRangeAt(0).insertNode(document.createTextNode(et)),Le.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ye.textEditDivClicked(ye.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},xe.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ye=this.getTextScale(),Le=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),et=this.textElement.getBBox(),Ne={x:et.width*ye,y:et.height*ye};Le.x-=Ne.x/2,Le.y-=Ne.y/2,this.textEditor.style.top=Le.y+"px",this.textEditor.style.left=Le.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Le.x+"px",this.textEditor.style.fontSize=Math.max(16*ye,12)+"px",this.textElement.style.display="none"}},xe.prototype.textEditDivClicked=function(ye){this.text=ye.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},xe.prototype.select=function(){Te.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},xe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Te.prototype.deselect.call(this)},xe.prototype.dblClick=function(ye,Le){Te.prototype.dblClick.call(this,ye,Le),this.showTextEditor()},xe.prototype.setColor=function(ye){this.textElement&&se.setAttributes(this.textElement,[["fill",ye]]),this.color=ye,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ye)},xe.prototype.setFont=function(ye){this.textElement&&se.setAttributes(this.textElement,[["font-family",ye]]),this.fontFamily=ye,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},xe.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},xe.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Te.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){var Le=ye;this.color=Le.color,this.fontFamily=Le.fontFamily,this.padding=Le.padding,this.text=Le.text,this.createVisual(),Te.prototype.restoreState.call(this,ye),this.setSize()},xe.prototype.scale=function(ye,Le){Te.prototype.scale.call(this,ye,Le),this.setSize(),this.sizeText(),this.positionTextEditor()},xe.typeName="TextMarker",xe.title="Text marker",xe.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>',xe}(ve),lt=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.color="transparent",Ne.lineWidth=3,Ne.drawing=!1,Ne.pixelRatio=1,Ne.color=et.defaultColor,Ne.lineWidth=et.defaultStrokeWidth,Ne.pixelRatio=et.freehandPixelRatio,Ne.setColor=Ne.setColor.bind(Ne),Ne.addCanvas=Ne.addCanvas.bind(Ne),Ne.finishCreation=Ne.finishCreation.bind(Ne),Ne.setLineWidth=Ne.setLineWidth.bind(Ne),Ne.colorPanel=new pe("Color",et.defaultColorSet,et.defaultColor),Ne.colorPanel.onColorChanged=Ne.setColor,Ne.lineWidthPanel=new Ee("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Ne.lineWidthPanel.onWidthChanged=Ne.setLineWidth,Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return!(!Te.prototype.ownsTarget.call(this,ye)&&ye!==this.visual&&ye!==this.drawingImage)},xe.prototype.createVisual=function(){this.visual=se.createGroup(),this.drawingImage=se.createImage(),this.visual.appendChild(this.drawingImage);var ye=se.createTransform();this.visual.transform.baseVal.appendItem(ye),this.addMarkerVisualToContainer(this.visual)},xe.prototype.pointerDown=function(ye,Le){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(ye.x,ye.y),this.drawing=!0):Te.prototype.pointerDown.call(this,ye,Le)},xe.prototype.manipulate=function(ye){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ye.x,ye.y),this.canvasContext.stroke()):Te.prototype.manipulate.call(this,ye)},xe.prototype.resize=function(ye){Te.prototype.resize.call(this,ye),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(ye){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Te.prototype.pointerUp.call(this,ye)},xe.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)},xe.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Te.prototype.select.call(this)},xe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Te.prototype.deselect.call(this)},xe.prototype.finishCreation=function(){for(var ye=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Le=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],et=Le[0],Ne=Le[1],yt=Le[2],wt=Le[3],vt=!1,gt=0;gt<this.canvasElement.height;gt++)for(var ht=0;ht<this.canvasElement.width;ht++)ye.data[gt*this.canvasElement.width*4+4*ht+3]>0&&(vt=!0,gt<Ne&&(Ne=gt),ht<et&&(et=ht),gt>wt&&(wt=gt),ht>yt&&(yt=ht));if(vt){this.left=et/this.pixelRatio,this.top=Ne/this.pixelRatio,this.width=(yt-et)/this.pixelRatio,this.height=(wt-Ne)/this.pixelRatio;var xt=document.createElement("canvas");xt.width=yt-et,xt.height=wt-Ne,xt.getContext("2d").putImageData(this.canvasContext.getImageData(et,Ne,yt-et,wt-Ne),0,0),this.drawingImgUrl=xt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},xe.prototype.setDrawingImage=function(){se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),se.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},xe.prototype.setColor=function(ye){this.color=ye,this.colorChanged(ye)},xe.prototype.setLineWidth=function(ye){this.lineWidth=ye},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Object.assign({drawingImgUrl:this.drawingImgUrl},Te.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){this.createVisual(),Te.prototype.restoreState.call(this,ye),this.drawingImgUrl=ye.drawingImgUrl,this.setDrawingImage()},xe.prototype.scale=function(ye,Le){Te.prototype.scale.call(this,ye,Le),this.setDrawingImage()},xe.typeName="FreehandMarker",xe.title="Freehand marker",xe.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>',xe}(ve),Re=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,et||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ne.typeBoxes=[],Ne.currentType=Le,Ne.setCurrentType=Ne.setCurrentType.bind(Ne),Ne}return E(xe,Te),xe.prototype.getUi=function(){var ye=this,Le=document.createElement("div");Le.style.display="flex",Le.style.overflow="hidden",Le.style.flexGrow="2";for(var et=function(wt){var vt="both";switch(wt){case 0:vt="both";break;case 1:vt="start";break;case 2:vt="end";break;case 3:vt="none"}var gt=document.createElement("div");if(gt.style.display="flex",gt.style.flexGrow="2",gt.style.alignItems="center",gt.style.justifyContent="space-between",gt.style.padding="5px",gt.style.borderWidth="2px",gt.style.borderStyle="solid",gt.style.borderColor=vt===Ne.currentType?Ne.uiStyleSettings.toolboxAccentColor:"transparent",gt.addEventListener("click",function(){ye.setCurrentType(vt,gt)}),Le.appendChild(gt),vt==="both"||vt==="start"){var ht=document.createElement("div");ht.style.display="flex",ht.style.alignItems="center",ht.style.minHeight="20px",ht.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(Ne.uiStyleSettings!==void 0?Ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ht.style.marginLeft="5px",gt.appendChild(ht)}var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.style.flexGrow="2";var St=document.createElement("hr");if(St.style.minWidth="20px",St.style.border="0px",St.style.borderTop="3px solid "+(Ne.uiStyleSettings!==void 0?Ne.uiStyleSettings.toolboxColor:"#eeeeee"),St.style.flexGrow="2",xt.appendChild(St),gt.appendChild(xt),vt==="both"||vt==="end"){var Ct=document.createElement("div");Ct.style.display="flex",Ct.style.alignItems="center",Ct.style.minHeight="20px",Ct.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Ne.uiStyleSettings!==void 0?Ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ct.style.marginRight="5px",gt.appendChild(Ct)}Ne.typeBoxes.push(gt)},Ne=this,yt=0;yt<4;yt++)et(yt);return Le},xe.prototype.setCurrentType=function(ye,Le){var et=this;this.currentType=ye,this.typeBoxes.forEach(function(Ne){Ne.style.borderColor=Ne===Le?et.uiStyleSettings!==void 0?et.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},xe}(ce),We=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.arrowType="end",Ne.arrowBaseHeight=10,Ne.arrowBaseWidth=10,Ne.getArrowPoints=Ne.getArrowPoints.bind(Ne),Ne.setArrowType=Ne.setArrowType.bind(Ne),Ne.arrowTypePanel=new Re("Arrow type","end"),Ne.arrowTypePanel.onArrowTypeChanged=Ne.setArrowType,Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return!(!Te.prototype.ownsTarget.call(this,ye)&&ye!==this.arrow1&&ye!==this.arrow2)},xe.prototype.getArrowPoints=function(ye,Le){var et=this.arrowBaseWidth+2*this.strokeWidth,Ne=this.arrowBaseHeight+2*this.strokeWidth;return ye-et/2+","+(Le+Ne/2)+" "+ye+","+(Le-Ne/2)+" "+(ye+et/2)+","+(Le+Ne/2)},xe.prototype.createTips=function(){this.arrow1=se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(se.createTransform()),this.visual.appendChild(this.arrow2)},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if(Te.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",se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),se.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ye=0;Math.abs(this.x1-this.x2)>.1&&(ye=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Le=this.arrow1.transform.baseVal.getItem(0);Le.setRotate(ye,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Le,0);var et=this.arrow2.transform.baseVal.getItem(0);et.setRotate(ye+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(et,0)}},xe.prototype.setArrowType=function(ye){this.arrowType=ye,this.adjustVisual(),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Object.assign({arrowType:this.arrowType},Te.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){Te.prototype.restoreState.call(this,ye);var Le=ye;this.arrowType=Le.arrowType,this.createTips(),this.adjustVisual()},xe.typeName="ArrowMarker",xe.title="Arrow marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',xe}(Ze),rt=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.fillColor=et.defaultFillColor,Ne.strokeWidth=0,Ne.fillPanel=new pe("Color",et.defaultColorSet,et.defaultFillColor),Ne.fillPanel.onColorChanged=Ne.setFillColor,Ne}return E(xe,Te),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Te.prototype.getState.call(this);return ye.typeName=xe.typeName,ye},xe.typeName="CoverMarker",xe.title="Cover marker",xe.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',xe}(be),ot=function(Te){function xe(ye,Le,et,Ne){var yt=Te.call(this,ye,Ne||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return yt.opacities=[],yt.opacityBoxes=[],yt.opacities=Le,yt.currentOpacity=et,yt.setCurrentOpacity=yt.setCurrentOpacity.bind(yt),yt}return E(xe,Te),xe.prototype.getUi=function(){var ye=this,Le=document.createElement("div");return Le.style.display="flex",Le.style.overflow="hidden",Le.style.flexGrow="2",Le.style.justifyContent="space-between",this.opacities.forEach(function(et){var Ne=document.createElement("div");Ne.style.display="flex",Ne.style.alignItems="center",Ne.style.justifyContent="center",Ne.style.padding="5px",Ne.style.borderWidth="2px",Ne.style.borderStyle="solid",Ne.style.borderColor=et===ye.currentOpacity?ye.uiStyleSettings.toolboxAccentColor:"transparent",Ne.addEventListener("click",function(){ye.setCurrentOpacity(et,Ne)}),Le.appendChild(Ne);var yt=document.createElement("div");yt.innerText=100*et+"%",Ne.appendChild(yt),ye.opacityBoxes.push(Ne)}),Le},xe.prototype.setCurrentOpacity=function(ye,Le){var et=this;this.currentOpacity=ye,this.opacityBoxes.forEach(function(Ne){Ne.style.borderColor=Ne===Le?et.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},xe}(ce),at=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.setOpacity=Ne.setOpacity.bind(Ne),Ne.fillColor=et.defaultHighlightColor,Ne.strokeWidth=0,Ne.opacity=et.defaultHighlightOpacity,Ne.fillPanel=new pe("Color",et.defaultColorSet,Ne.fillColor),Ne.fillPanel.onColorChanged=Ne.setFillColor,Ne.opacityPanel=new ot("Opacity",et.defaultOpacitySteps,Ne.opacity),Ne.opacityPanel.onOpacityChanged=Ne.setOpacity,Ne}return E(xe,Te),xe.prototype.setOpacity=function(ye){this.opacity=ye,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Te.prototype.getState.call(this);return ye.typeName=xe.typeName,ye},xe.typeName="HighlightMarker",xe.title="Highlight marker",xe.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>',xe}(rt),Je='<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>',Qe='<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>',Ve=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.bgColor="transparent",Ne.tipPosition={x:0,y:0},Ne.tipBase1Position={x:0,y:0},Ne.tipBase2Position={x:0,y:0},Ne.tipMoving=!1,Ne.color=et.defaultStrokeColor,Ne.bgColor=et.defaultFillColor,Ne.fontFamily=et.defaultFontFamily,Ne.defaultSize={x:100,y:30},Ne.setBgColor=Ne.setBgColor.bind(Ne),Ne.getTipPoints=Ne.getTipPoints.bind(Ne),Ne.positionTip=Ne.positionTip.bind(Ne),Ne.setTipPoints=Ne.setTipPoints.bind(Ne),Ne.colorPanel=new pe("Text color",et.defaultColorSet,Ne.color,Je),Ne.colorPanel.onColorChanged=Ne.setColor,Ne.bgColorPanel=new pe("Fill color",et.defaultColorSet,Ne.bgColor,Qe),Ne.bgColorPanel.onColorChanged=Ne.setBgColor,Ne.fontFamilyPanel=new Xe("Font",et.defaultFontFamilies,et.defaultFontFamily),Ne.fontFamilyPanel.onFontChanged=Ne.setFont,Ne.tipGrip=new De,Ne.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),Ne.controlBox.appendChild(Ne.tipGrip.visual),Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return Te.prototype.ownsTarget.call(this,ye)||this.tipGrip.ownsTarget(ye)||this.tip===ye},xe.prototype.createTip=function(){se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=se.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},xe.prototype.pointerDown=function(ye,Le){this.state==="new"&&Te.prototype.pointerDown.call(this,ye,Le),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Le)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Te.prototype.pointerDown.call(this,ye,Le)},xe.prototype.pointerUp=function(ye){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Te.prototype.pointerUp.call(this,ye);else{var Le=this.state==="creating";Te.prototype.pointerUp.call(this,ye),this.setTipPoints(Le),this.positionTip()}},xe.prototype.manipulate=function(ye){if(this.tipMoving){var Le=this.unrotatePoint(ye);this.tipPosition={x:Le.x-this.manipulationStartLeft,y:Le.y-this.manipulationStartTop},this.positionTip()}else Te.prototype.manipulate.call(this,ye)},xe.prototype.setBgColor=function(ye){this.bgRectangle&&this.tip&&(se.setAttributes(this.bgRectangle,[["fill",ye]]),se.setAttributes(this.tip,[["fill",ye]])),this.bgColor=ye,this.fillColorChanged(ye)},xe.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},xe.prototype.setTipPoints=function(ye){ye===void 0&&(ye=!1);var Le=Math.min(this.height/2,15),et=this.height/5;ye&&(this.tipPosition={x:Le+et/2,y:this.height+20});var Ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(et=this.width/5,Le=Math.min(this.width/2,15),this.tipBase1Position={x:Le,y:0},this.tipBase2Position={x:Le+et,y:0}):(this.tipBase1Position={x:0,y:Le},this.tipBase2Position={x:0,y:Le+et}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(et=this.width/5,Le=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Le-et,y:0},this.tipBase2Position={x:this.width-Le,y:0}):(this.tipBase1Position={x:this.width,y:Le},this.tipBase2Position={x:this.width,y:Le+et}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(et=this.width/5,Le=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Le-et,y:this.height},this.tipBase2Position={x:this.width-Le,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Le-et},this.tipBase2Position={x:this.width,y:this.height-Le}):Ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(et=this.width/5,Le=Math.min(this.width/2,15),this.tipBase1Position={x:Le,y:this.height},this.tipBase2Position={x:Le+et,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Le},this.tipBase2Position={x:0,y:this.height-Le-et})},xe.prototype.resize=function(ye){Te.prototype.resize.call(this,ye),this.positionTip()},xe.prototype.positionTip=function(){se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ye=this.tipGrip.visual.transform.baseVal.getItem(0);ye.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ye,0)},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),xe.prototype.select=function(){this.positionTip(),Te.prototype.select.call(this)},xe.prototype.getState=function(){var ye=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Te.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){var Le=ye;this.bgColor=Le.bgColor,this.tipPosition=Le.tipPosition,Te.prototype.restoreState.call(this,ye),this.createTip(),this.setTipPoints()},xe.prototype.scale=function(ye,Le){Te.prototype.scale.call(this,ye,Le),this.tipPosition={x:this.tipPosition.x*ye,y:this.tipPosition.y*Le},this.positionTip()},xe.typeName="CalloutMarker",xe.title="Callout marker",xe.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>',xe}($e),ct=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.fillColor="transparent",Ne.strokeColor="transparent",Ne.strokeWidth=0,Ne.strokeDasharray="",Ne.opacity=1,Ne.strokeColor=et.defaultColor,Ne.strokeWidth=et.defaultStrokeWidth,Ne.strokeDasharray=et.defaultStrokeDasharray,Ne.fillColor=et.defaultFillColor,Ne.setStrokeColor=Ne.setStrokeColor.bind(Ne),Ne.setFillColor=Ne.setFillColor.bind(Ne),Ne.setStrokeWidth=Ne.setStrokeWidth.bind(Ne),Ne.setStrokeDasharray=Ne.setStrokeDasharray.bind(Ne),Ne.setOpacity=Ne.setOpacity.bind(Ne),Ne.createVisual=Ne.createVisual.bind(Ne),Ne.strokePanel=new pe("Line color",z(et.defaultColorSet,["transparent"]),et.defaultColor),Ne.strokePanel.onColorChanged=Ne.setStrokeColor,Ne.fillPanel=new pe("Fill color",z(et.defaultColorSet,["transparent"]),Ne.fillColor,Qe),Ne.fillPanel.onColorChanged=Ne.setFillColor,Ne.strokeWidthPanel=new Ee("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Ne.strokeWidthPanel.onWidthChanged=Ne.setStrokeWidth,Ne.strokeStylePanel=new Oe("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Ne.strokeStylePanel.onStyleChanged=Ne.setStrokeDasharray,Ne.opacityPanel=new ot("Opacity",et.defaultOpacitySteps,Ne.opacity),Ne.opacityPanel.onOpacityChanged=Ne.setOpacity,Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return!(!Te.prototype.ownsTarget.call(this,ye)&&ye!==this.visual)},xe.prototype.createVisual=function(){this.visual=se.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)},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},xe.prototype.manipulate=function(ye){Te.prototype.manipulate.call(this,ye)},xe.prototype.resize=function(ye){Te.prototype.resize.call(this,ye),this.setSize()},xe.prototype.setSize=function(){Te.prototype.setSize.call(this),se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},xe.prototype.pointerUp=function(ye){Te.prototype.pointerUp.call(this,ye),this.setSize()},xe.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.visual&&se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},xe.prototype.setFillColor=function(ye){this.fillColor=ye,this.visual&&se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ye),this.stateChanged()},xe.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.visual&&se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.visual&&se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},xe.prototype.setOpacity=function(ye){this.opacity=ye,this.visual&&se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Te.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){var Le=ye;this.fillColor=Le.fillColor,this.strokeColor=Le.strokeColor,this.strokeWidth=Le.strokeWidth,this.strokeDasharray=Le.strokeDasharray,this.opacity=Le.opacity,this.createVisual(),Te.prototype.restoreState.call(this,ye),this.setSize()},xe.prototype.scale=function(ye,Le){Te.prototype.scale.call(this,ye,Le),this.setSize()},xe.typeName="EllipseMarker",xe.title="Ellipse marker",xe.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>',xe}(ve),tt=function(Te){function xe(ye,Le,et){return Te.call(this,ye,Le,et)||this}return E(xe,Te),Object.defineProperty(xe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(ye){return!(!Te.prototype.ownsTarget.call(this,ye)&&ye!==this.tip1&&ye!==this.tip2)},xe.prototype.createTips=function(){this.tip1=se.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(se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=se.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(se.createTransform()),this.visual.appendChild(this.tip2)},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if(Te.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(se.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()]]),se.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 ye=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Le=this.tip1.transform.baseVal.getItem(0);Le.setRotate(ye,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Le,0);var et=this.tip2.transform.baseVal.getItem(0);et.setRotate(ye+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(et,0)}},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Te.prototype.getState.call(this);return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){Te.prototype.restoreState.call(this,ye),this.createTips(),this.adjustVisual()},xe.typeName="MeasurementMarker",xe.title="Measurement marker",xe.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>',xe}(Ze),ut=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.strokePanel.colors=et.defaultColorSet,Ne.fillColor="transparent",Ne}return E(xe,Te),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Te.prototype.getState.call(this);return ye.typeName=xe.typeName,ye},xe.typeName="EllipseFrameMarker",xe.title="Ellipse frame marker",xe.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>',xe}(ct),st=function(){function Te(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Te.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Te.prototype.addUndoStep=function(xe){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(xe)||(this.undoStack.push(xe),JSON.stringify(this.lastRedoStep)!==JSON.stringify(xe)&&this.redoStack.splice(0,this.redoStack.length))},Te.prototype.replaceLastUndoStep=function(xe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=xe)},Te.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Te.prototype.undo=function(){if(this.undoStack.length>1){var xe=this.undoStack.pop();return xe!==void 0&&this.redoStack.push(xe),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Te.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Te}(),ze=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.strokeColor="transparent",Ne.strokeWidth=0,Ne.strokeDasharray="",Ne.curveX=0,Ne.curveY=0,Ne.manipulationStartCurveX=0,Ne.manipulationStartCurveY=0,Ne.setStrokeColor=Ne.setStrokeColor.bind(Ne),Ne.setStrokeWidth=Ne.setStrokeWidth.bind(Ne),Ne.setStrokeDasharray=Ne.setStrokeDasharray.bind(Ne),Ne.positionGrips=Ne.positionGrips.bind(Ne),Ne.addControlGrips=Ne.addControlGrips.bind(Ne),Ne.adjustVisual=Ne.adjustVisual.bind(Ne),Ne.setupControlBox=Ne.setupControlBox.bind(Ne),Ne.resize=Ne.resize.bind(Ne),Ne.strokeColor=et.defaultColor,Ne.strokeWidth=et.defaultStrokeWidth,Ne.strokeDasharray=et.defaultStrokeDasharray,Ne.strokePanel=new pe("Line color",et.defaultColorSet,et.defaultColor),Ne.strokePanel.onColorChanged=Ne.setStrokeColor,Ne.strokeWidthPanel=new Ee("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Ne.strokeWidthPanel.onWidthChanged=Ne.setStrokeWidth,Ne.strokeStylePanel=new Oe("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Ne.strokeStylePanel.onStyleChanged=Ne.setStrokeDasharray,Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return!(!Te.prototype.ownsTarget.call(this,ye)&&ye!==this.visual&&ye!==this.selectorCurve&&ye!==this.visibleCurve&&!this.curveGrip.ownsTarget(ye))},xe.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},xe.prototype.createVisual=function(){this.visual=se.createGroup(),this.selectorCurve=se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=se.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)},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ye.x,this.curveY=ye.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Le)&&(this.activeGrip=this.curveGrip,this._state="resize")},xe.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},xe.prototype.setupControlBox=function(){Te.prototype.setupControlBox.call(this),this.curveControlLine1=se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=se.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)},xe.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Te.prototype.addControlGrips.call(this)},xe.prototype.positionGrips=function(){Te.prototype.positionGrips.call(this);var ye=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ye/2,this.curveY-ye/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()))},xe.prototype.manipulate=function(ye){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ye.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ye.y-this.manipulationStartY),Te.prototype.manipulate.call(this,ye)},xe.prototype.resize=function(ye){this.activeGrip===this.curveGrip&&(this.curveX=ye.x,this.curveY=ye.y),Te.prototype.resize.call(this,ye),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},xe.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.adjustVisual(),this.colorChanged(ye)},xe.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.adjustVisual()},xe.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.adjustVisual()},xe.prototype.scale=function(ye,Le){this.curveX=this.curveX*ye,this.curveY=this.curveY*Le,Te.prototype.scale.call(this,ye,Le)},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Te.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){Te.prototype.restoreState.call(this,ye);var Le=ye;this.strokeColor=Le.strokeColor,this.strokeWidth=Le.strokeWidth,this.strokeDasharray=Le.strokeDasharray,this.curveX=Le.curveX,this.curveY=Le.curveY,this.createVisual(),this.adjustVisual()},xe.typeName="CurveMarker",xe.title="Curve marker",xe.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>',xe}(je),Be=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,Le,et)||this;return Ne.fillColor="transparent",Ne.strokeColor="transparent",Ne.strokeWidth=0,Ne.strokeDasharray="",Ne.textColor="transparent",Ne.fontSize="1rem",Ne.isMoved=!1,Ne.captionText="Caption",Ne.PADDING=5,Ne.captionBoxWidth=0,Ne.captionBoxHeight=0,Ne.strokeColor=et.defaultColor,Ne.strokeWidth=et.defaultStrokeWidth,Ne.strokeDasharray=et.defaultStrokeDasharray,Ne.fillColor=et.defaultFillColor,Ne.textColor=et.defaultStrokeColor,Ne.fontFamily=et.defaultFontFamily,Ne.fontSize=et.defaultCaptionFontSize,Ne.captionText=et.defaultCaptionText,Ne.setStrokeColor=Ne.setStrokeColor.bind(Ne),Ne.setFillColor=Ne.setFillColor.bind(Ne),Ne.setStrokeWidth=Ne.setStrokeWidth.bind(Ne),Ne.setStrokeDasharray=Ne.setStrokeDasharray.bind(Ne),Ne.createVisual=Ne.createVisual.bind(Ne),Ne.sizeCaption=Ne.sizeCaption.bind(Ne),Ne.setCaptionText=Ne.setCaptionText.bind(Ne),Ne.showTextEditor=Ne.showTextEditor.bind(Ne),Ne.positionTextEditor=Ne.positionTextEditor.bind(Ne),Ne.finishTextEditing=Ne.finishTextEditing.bind(Ne),Ne.setFont=Ne.setFont.bind(Ne),Ne.setTextColor=Ne.setTextColor.bind(Ne),Ne.strokePanel=new pe("Line color",z(et.defaultColorSet,["transparent"]),Ne.strokeColor),Ne.strokePanel.onColorChanged=Ne.setStrokeColor,Ne.fillPanel=new pe("Fill color",z(et.defaultColorSet,["transparent"]),Ne.fillColor,Qe),Ne.fillPanel.onColorChanged=Ne.setFillColor,Ne.strokeWidthPanel=new Ee("Line width",et.defaultStrokeWidths,et.defaultStrokeWidth),Ne.strokeWidthPanel.onWidthChanged=Ne.setStrokeWidth,Ne.strokeStylePanel=new Oe("Line style",et.defaultStrokeDasharrays,et.defaultStrokeDasharray),Ne.strokeStylePanel.onStyleChanged=Ne.setStrokeDasharray,Ne.fontFamilyPanel=new Xe("Font",et.defaultFontFamilies,et.defaultFontFamily),Ne.fontFamilyPanel.onFontChanged=Ne.setFont,Ne.textColorPanel=new pe("Text color",et.defaultColorSet,Ne.textColor,Je),Ne.textColorPanel.onColorChanged=Ne.setTextColor,Ne}return E(xe,Te),xe.prototype.ownsTarget=function(ye){return!(!Te.prototype.ownsTarget.call(this,ye)&&ye!==this.visual&&ye!==this.frame&&ye!==this.captionBg&&ye!==this.captionElement)},xe.prototype.createVisual=function(){this.visual=se.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=se.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=se.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=se.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()},xe.prototype.setCaptionText=function(ye){this.captionText=ye,this.captionElement.textContent=this.captionText,this.sizeCaption()},xe.prototype.pointerDown=function(ye,Le){Te.prototype.pointerDown.call(this,ye,Le),this.isMoved=!1,this.pointerDownPoint=ye,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},xe.prototype.manipulate=function(ye){Te.prototype.manipulate.call(this,ye),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ye.x-this.pointerDownPoint.x)>5||Math.abs(ye.y-this.pointerDownPoint.y)>5)},xe.prototype.resize=function(ye){Te.prototype.resize.call(this,ye),this.setSize()},xe.prototype.sizeCaption=function(){var ye=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ye.width+2*this.PADDING,this.captionBoxHeight=ye.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),se.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')"]]),se.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')"]])},xe.prototype.showTextEditor=function(){var ye=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(Le){Le.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Le){Le.key==="Enter"&&ye.finishTextEditing(ye.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Le){Le.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ye.finishTextEditing(ye.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ye.finishTextEditing(ye.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},xe.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"))},xe.prototype.finishTextEditing=function(ye){this.setCaptionText(ye.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},xe.prototype.setFont=function(ye){this.captionElement&&se.setAttributes(this.captionElement,[["font-family",ye]]),this.fontFamily=ye,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},xe.prototype.setTextColor=function(ye){this.captionElement&&se.setAttributes(this.captionElement,[["fill",ye]]),this.textColor=ye,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},xe.prototype.setSize=function(){Te.prototype.setSize.call(this),se.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},xe.prototype.pointerUp=function(ye){Te.prototype.pointerUp.call(this,ye),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},xe.prototype.dblClick=function(ye,Le){Te.prototype.dblClick.call(this,ye,Le),this.showTextEditor()},xe.prototype.setStrokeColor=function(ye){this.strokeColor=ye,this.frame&&se.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ye),this.stateChanged()},xe.prototype.setFillColor=function(ye){this.fillColor=ye,this.captionBg&&se.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ye),this.stateChanged()},xe.prototype.setStrokeWidth=function(ye){this.strokeWidth=ye,this.frame&&se.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},xe.prototype.setStrokeDasharray=function(ye){this.strokeDasharray=ye,this.frame&&se.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=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},Te.prototype.getState.call(this));return ye.typeName=this.typeName,ye},xe.prototype.restoreState=function(ye){var Le=ye;this.fillColor=Le.fillColor,this.strokeColor=Le.strokeColor,this.strokeWidth=Le.strokeWidth,this.strokeDasharray=Le.strokeDasharray,this.textColor=Le.textColor,this.fontFamily=Le.fontFamily,this.captionText=Le.captionText,this.fontSize=Le.fontSize,this.createVisual(),Te.prototype.restoreState.call(this,ye),this.setSize()},xe.prototype.scale=function(ye,Le){Te.prototype.scale.call(this,ye,Le),this.setSize()},xe.typeName="CaptionFrameMarker",xe.title="Caption frame marker",xe.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>',xe}(ve),Ke=function(){function Te(xe,ye){ye===void 0&&(ye=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=xe,this.cancelable=ye}return Object.defineProperty(Te.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Te.prototype.preventDefault=function(){this._defaultPrevented=!0},Te}(),Ie=function(Te){function xe(ye,Le,et){var Ne=Te.call(this,ye,!1)||this;return Ne.dataUrl=Le,Ne.state=et,Ne}return E(xe,Te),xe}(Ke),Ye=function(Te){function xe(ye,Le,et){et===void 0&&(et=!1);var Ne=Te.call(this,ye,et)||this;return Ne.marker=Le,Ne}return E(xe,Te),xe}(Ke),ft=function(){function Te(){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 Te.prototype.addEventListener=function(xe,ye){this[xe].push(ye)},Te.prototype.removeEventListener=function(xe,ye){var Le=this[xe].indexOf(ye);Le>-1&&this[xe].splice(Le,1)},Te}(),mt=function(){function Te(xe){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Se,this._isOpen=!1,this.undoRedoManager=new st,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 ft,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Te.instanceCounter++,this.styles=new ae(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=xe,this.targetRoot=document.body,this.width=xe.clientWidth,this.height=xe.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(Te.prototype,"ALL_MARKER_TYPES",{get:function(){return[Me,lt,We,$e,ut,ct,at,Ve,tt,rt,Ze,ze,Be]},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Me,lt,We,$e,ct,at,Ve]},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Me,lt,We,$e,at]},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(xe){var ye=this;this._availableMarkerTypes.splice(0),xe.forEach(function(Le){if(typeof Le=="string"){var et=ye.ALL_MARKER_TYPES.find(function(Ne){return Ne.typeName===Le});et!==void 0&&ye._availableMarkerTypes.push(et)}else ye._availableMarkerTypes.push(Le)})},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Te.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(xe){this._zoomLevel=xe,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(Te.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Te.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),x.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Te.prototype.show=function(){var xe=this;this.styles.styleSheetRoot===void 0&&te.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=te.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ye){return ye(new Ke(xe))})},Te.prototype.render=function(){return ie(this,void 0,void 0,function(){var xe;return le(this,function(ye){switch(ye.label){case 0:return this.setCurrentMarker(),(xe=new re).naturalSize=this.renderAtNaturalSize,xe.imageType=this.renderImageType,xe.imageQuality=this.renderImageQuality,xe.markersOnly=this.renderMarkersOnly,xe.width=this.renderWidth,xe.height=this.renderHeight,[4,xe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ye.sent(),[4,xe.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ye.sent()]}})})},Te.prototype.close=function(xe){var ye=this;if(xe===void 0&&(xe=!1),this.isOpen){var Le=!1;xe||this.eventListeners.beforeclose.forEach(function(et){var Ne=new Ke(ye,!0);et(Ne),Ne.defaultPrevented&&(Le=!0)}),Le||(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(et){return et(new Ke(ye))}),this.detachEvents(),this._isOpen=!1)}},Te.prototype.addMarkersToToolbar=function(){for(var xe,ye=[],Le=0;Le<arguments.length;Le++)ye[Le]=arguments[Le];(xe=this._availableMarkerTypes).push.apply(xe,ye)},Te.prototype.addRenderEventListener=function(xe){this.addEventListener("render",function(ye){xe(ye.dataUrl,ye.state)})},Te.prototype.removeRenderEventListener=function(xe){},Te.prototype.addCloseEventListener=function(xe){this.addEventListener("close",function(){xe()})},Te.prototype.removeCloseEventListener=function(xe){},Te.prototype.setupResizeObserver=function(){var xe=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){xe.resize(xe.target.clientWidth,xe.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return xe.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Te.prototype.onPopupTargetResize=function(){var xe=1*this.target.clientWidth/this.target.clientHeight,ye=this.editorCanvas.clientWidth/xe>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*xe:this.editorCanvas.clientWidth,Le=ye<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/xe;this.resize(ye,Le)},Te.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Te.prototype.resize=function(xe,ye){this._isResizing=!0;var Le=xe/this.imageWidth,et=ye/this.imageHeight;this.imageWidth=Math.round(xe),this.imageHeight=Math.round(ye),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(Le,et),this._isResizing=!1},Te.prototype.scaleMarkers=function(xe,ye){var Le,et=this;this._currentMarker&&this._currentMarker instanceof $e?this._currentMarker.scale(xe,ye):(Le=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ne){Ne!==et._currentMarker&&Ne.scale(xe,ye)}),Le!==void 0&&this.setCurrentMarker(Le)},Te.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"},Te.prototype.setTopLeft=function(){var xe=this.editingTarget.getBoundingClientRect(),ye=this.editorCanvas.getBoundingClientRect();this.left=xe.left-ye.left,this.top=xe.top-ye.top},Te.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)},Te.prototype.addDefs=function(){for(var xe,ye=[],Le=0;Le<arguments.length;Le++)ye[Le]=arguments[Le];this.defs=se.createDefs(),this.addDefsToImage(),(xe=this.defs).append.apply(xe,ye)},Te.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Te.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)},Te.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Te.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Te.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)},Te.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Te.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)},Te.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 xe=document.createElement("a");xe.href="https://markerjs.com/",xe.target="_blank",xe.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>',xe.title="Powered by marker.js",xe.style.display="grid",xe.style.alignItems="center",xe.style.justifyItems="center",xe.style.padding="3px",xe.style.width="20px",xe.style.height="20px",this.logoUI.appendChild(xe),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Te.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")},Te.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"},Te.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Te.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 xe=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=xe+"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 de(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 he(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Te.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Te.prototype.removeMarker=function(xe){this.markerImage.removeChild(xe.container),this.markers.indexOf(xe)>-1&&this.markers.splice(this.markers.indexOf(xe),1),xe.dispose()},Te.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())},Te.prototype.toolbarButtonClicked=function(xe,ye){if(xe==="marker"&&ye!==void 0)this.createNewMarker(ye);else if(xe==="action")switch(ye){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()}},Te.prototype.deleteSelectedMarker=function(){var xe=this;if(this._currentMarker!==void 0){var ye=!1;if(this.eventListeners.markerbeforedelete.forEach(function(et){var Ne=new Ye(xe,xe._currentMarker,!0);et(Ne),Ne.defaultPrevented&&(ye=!0)}),!ye){var Le=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(et){return et(new Ye(xe,Le))})}}},Te.prototype.clear=function(){var xe=this,ye=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(yt){var wt=new Ye(xe,void 0,!0);yt(wt),wt.defaultPrevented&&(ye=!0)}),!ye)){this.setCurrentMarker();for(var Le=function(yt){var wt=et.markers[yt];et.setCurrentMarker(et.markers[yt]),et._currentMarker.dispose(),et.markerImage.removeChild(et._currentMarker.container),et.markers.splice(et.markers.indexOf(et._currentMarker),1),et.eventListeners.markerdelete.forEach(function(vt){return vt(new Ye(xe,wt))})},et=this,Ne=this.markers.length-1;Ne>=0;Ne--)Le(Ne);this.addUndoStep()}},Object.defineProperty(Te.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Te.prototype.showNotesEditor=function(){var xe;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=(xe=this._currentMarker.notes)!==null&&xe!==void 0?xe:"",this.overlayContainer.appendChild(this.notesArea))},Te.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)},Te.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Te.prototype.addUndoStep=function(){var xe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ye=this.getState(),Le=this.undoRedoManager.getLastUndoStep();if(!Le||Le.width===ye.width&&Le.height===ye.height){var et=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ye),et<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ne){return Ne(new Ke(xe))})}else this.undoRedoManager.replaceLastUndoStep(ye),this.eventListeners.statechange.forEach(function(Ne){return Ne(new Ke(xe))})}},Te.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Te.prototype.undoStep=function(){var xe=this,ye=this.undoRedoManager.undo();ye!==void 0&&(this.restoreState(ye),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Le){return Le(new Ke(xe))}))},Te.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Te.prototype.redoStep=function(){var xe=this,ye=this.undoRedoManager.redo();ye!==void 0&&(this.restoreState(ye),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Le){return Le(new Ke(xe))}))},Te.prototype.stepZoom=function(){var xe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=xe<this.zoomSteps.length-1?this.zoomSteps[xe+1]:this.zoomSteps[0]},Te.prototype.panTo=function(xe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-xe.x,top:this.prevPanPoint.y-xe.y}),this.prevPanPoint=xe},Te.prototype.startRenderAndClose=function(){return ie(this,void 0,void 0,function(){var xe,ye,Le=this;return le(this,function(et){switch(et.label){case 0:return[4,this.render()];case 1:return xe=et.sent(),ye=this.getState(),this.eventListeners.render.forEach(function(Ne){return Ne(new Ie(Le,xe,ye))}),this.close(!0),[2]}})})},Te.prototype.getState=function(xe){xe===!0&&this.setCurrentMarker();var ye={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Le){return ye.markers.push(Le.getState())}),ye},Te.prototype.restoreState=function(xe){var ye=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);xe.markers.forEach(function(Le){var et=ye._availableMarkerTypes.find(function(yt){return yt.typeName===Le.typeName});if(et!==void 0){var Ne=ye.addNewMarker(et);Ne.restoreState(Le),ye.markers.push(Ne)}}),xe.width&&xe.height&&(xe.width!==this.imageWidth||xe.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/xe.width,this.imageHeight/xe.height),this.eventListeners.restorestate.forEach(function(Le){return Le(new Ke(ye))})},Te.prototype.addNewMarker=function(xe){var ye=se.createGroup();return this.markerImage.appendChild(ye),new xe(ye,this.overlayContainer,this.settings)},Te.prototype.createNewMarker=function(xe){var ye,Le=this;(ye=typeof xe=="string"?this._availableMarkerTypes.find(function(et){return et.typeName===xe}):xe)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ye),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(ye.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(et){return et(new Ye(Le,Le._currentMarker))}))},Te.prototype.markerCreated=function(xe){var ye=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(xe),this.setCurrentMarker(xe),xe instanceof lt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(lt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Le){return Le(new Ye(ye,ye._currentMarker))})},Te.prototype.colorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=xe,this.settings.defaultStrokeColor=xe)},Te.prototype.fillColorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=xe)},Te.prototype.markerStateChanged=function(xe){var ye=this;this.eventListeners.markerchange.forEach(function(Le){return Le(new Ye(ye,xe))})},Te.prototype.setCurrentMarker=function(xe){var ye=this;this._currentMarker!==xe&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Le){return Le(new Ye(ye,ye._currentMarker))})),this._currentMarker=xe,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(Le){return Le(new Ye(ye,ye._currentMarker))}))},Te.prototype.onPointerDown=function(xe){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||xe.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ye=this.markers.find(function(Le){return Le.ownsTarget(xe.target)});ye!==void 0?(this.setCurrentMarker(ye),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xe.clientX,xe.clientY),xe.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:xe.clientX,y:xe.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(xe.clientX,xe.clientY))},Te.prototype.onDblClick=function(xe){if(this._isFocused||this.focus(),this.mode==="select"){var ye=this.markers.find(function(Le){return Le.ownsTarget(xe.target)});ye!==void 0&&ye!==this._currentMarker&&this.setCurrentMarker(ye),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(xe.clientX,xe.clientY),xe.target):this.setCurrentMarker()}},Te.prototype.onPointerMove=function(xe){this.touchPoints!==1&&xe.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||xe.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(xe.clientX,xe.clientY)):this.zoomLevel>1&&this.panTo({x:xe.clientX,y:xe.clientY}))},Te.prototype.onPointerUp=function(xe){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(xe.clientX,xe.clientY)),this.isDragging=!1,this.addUndoStep()},Te.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Te.prototype.onKeyUp=function(xe){this._currentMarker===void 0||this.notesArea!==void 0||xe.key!=="Delete"&&xe.key!=="Backspace"||this.deleteSelectedMarker()},Te.prototype.clientToLocalCoordinates=function(xe,ye){var Le=this.markerImage.getBoundingClientRect();return{x:(xe-Le.left)/this.zoomLevel,y:(ye-Le.top)/this.zoomLevel}},Te.prototype.onWindowResize=function(){this.positionUI()},Te.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var xe=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=xe+"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()},Te.prototype.addLicenseKey=function(xe){x.addKey(xe)},Te.prototype.addEventListener=function(xe,ye){this.eventListeners.addEventListener(xe,ye)},Te.prototype.removeEventListener=function(xe,ye){this.eventListeners.removeEventListener(xe,ye)},Te.prototype.renderState=function(xe){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(xe),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Te.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Te.prototype.focus=function(){var xe=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ye){return ye(new Ke(xe))}))},Te.prototype.blur=function(){var xe=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ye){return ye(new Ke(xe))}))},Te.instanceCounter=0,Te}(),nt=Ge(97013),_e=Ge(31735),Pe=(Te,xe,ye)=>new Promise((Le,et)=>{var Ne=vt=>{try{wt(ye.next(vt))}catch(gt){et(gt)}},yt=vt=>{try{wt(ye.throw(vt))}catch(gt){et(gt)}},wt=vt=>vt.done?Le(vt.value):Promise.resolve(vt.value).then(Ne,yt);wt((ye=ye.apply(Te,xe)).next())}),it=({data:Te,className:xe,fullWidth:ye,style:Le={},onClose:et,onOk:Ne,showFullTools:yt,noAssociationId:wt})=>{const vt=(0,Ue.useRef)(null),gt=(0,Ue.useRef)(null),ht=(0,Ue.useRef)(null),xt=(0,Ue.useRef)(null),[St,Ct]=(0,Ue.useState)(!1),[jt,Ut]=(0,Ue.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Ue.useEffect)(()=>(ht.current||(ht.current=document.createElement("style"),document.head.appendChild(ht.current)),Te!=null&&Te.visible?(document.body.setAttribute("data-custom","y-hidden"),ht.current.innerHTML=" html { overflow-y: hidden; }",Te!=null&&Te.src&&Bt()):(document.body.removeAttribute("data-custom"),ht.current&&(document.head.removeChild(ht.current),ht.current=null)),()=>{document.body.removeAttribute("data-custom"),ht.current&&(document.head.removeChild(ht.current),ht.current=null)}),[Te==null?void 0:Te.visible]);const Bt=()=>Pe(void 0,null,function*(){Ct(!0),Ut("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Lt=yield(0,_e.ZJ)(Te==null?void 0:Te.src);vt.current.src="",vt.current.src=Lt,vt.current.onload=function(){pr()},Ct(!1),Ut("")}),qt=Lt=>Pe(void 0,null,function*(){Ct(!0),Ut("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Vt=yield(0,nt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Te.title,file:Lt.dataUrl}});Vt!=null&&Vt.id&&!wt?(yield(0,nt.ZP)(`/api/attachments/${Te.id}/add_subitem.json`,{method:"post",body:{subitem_id:Vt==null?void 0:Vt.id,settings:JSON.stringify(Lt.state)}})).status===0&&Ne():Vt!=null&&Vt.id&&Ne(Vt),Ct(!1),Ut("")}),xr=()=>{const Lt=document.querySelector('a[href="https://markerjs.com/"]');Lt&&Lt.parentNode&&(Lt.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(ar=>{const fr=document.querySelector(ar.name);fr&&fr.setAttribute("title",ar.title)})},pr=()=>{gt.current=new mt(vt.current),gt.current.targetRoot=xt.current,gt.current.addEventListener("render",qt),gt.current.addEventListener("beforeclose",et),yt&&(gt.current.availableMarkerTypes=gt.current.ALL_MARKER_TYPES,gt.current.uiStyleSettings.redoButtonVisible=!0,gt.current.uiStyleSettings.notesButtonVisible=!0,gt.current.uiStyleSettings.zoomButtonVisible=!0,gt.current.uiStyleSettings.zoomOutButtonVisible=!0,gt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=gt.current.uiStyleSettings,gt.current.show(),Te!=null&&Te.snapshotData&&gt.current.restoreState(Te.snapshotData),setTimeout(()=>{window.scrollTo(0,0),xr()},300)};return Ue.createElement(Ue.Fragment,null,(Te==null?void 0:Te.visible)&&Ue.createElement(ge.Z,{spinning:St,tip:jt,style:{position:"absolute",width:"100vw"}},Ue.createElement("div",{ref:xt,className:we()(Et.imageDimensions,xe,ye?Et.fullWidth:""),style:Le},Ue.createElement("img",{className:Et.img,ref:vt}))))}},73200:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{N:function(){return ue}});var Ue=Ge(59301),Et=Ge(82326),y=Ge(62957),we=Ge(37568),ge=Ge(6767),ee=Ge(77019),E=Ge(5269),ie=Ge(97013),le={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"},z=Ge(92310),se=Ge.n(z),x=Ge(87169),re=Ge(59301),te=(fe,de,he)=>new Promise((ce,pe)=>{var Ce=Ae=>{try{De(he.next(Ae))}catch(ve){pe(ve)}},ke=Ae=>{try{De(he.throw(Ae))}catch(ve){pe(ve)}},De=Ae=>Ae.done?ce(Ae.value):Promise.resolve(Ae.value).then(Ce,ke);De((he=he.apply(fe,de)).next())});const{Option:ae}=Et.default,ue=({subId:fe,value:de,selectvalues:he,disabled:ce,knowledgeOptions:pe=[],className:Ce,height:ke,onChange:De=()=>{},onAddKnowledgeFinish:Ae=()=>{},zIndex:ve=1e3})=>{const be=(0,Ue.useRef)(),[Ee,Oe]=(0,Ue.useState)([]);de=de||[];const Me=(je,Ze)=>{je?(Oe([...Ze]),De([...Ze])):(Oe([]),De([]))};(0,Ue.useEffect)(()=>{(he==null?void 0:he.length)>0?(Oe([...he]),De([...he])):(Oe([]),De([]))},[pe]),(0,Ue.useEffect)(()=>{(de==null?void 0:de.length)>0&&De([...de])},[pe]);const Se=je=>{je.preventDefault(),be.current="",y.default.confirm({centered:!0,width:585,zIndex:ve,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",icon:null,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",className:"custom-modal-divider",content:re.createElement("div",{className:"font14"},re.createElement("div",{className:le.public_tips},re.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"),re.createElement("div",{style:{display:"flex",alignItems:"center"}},re.createElement("div",{style:{width:"95px"}},re.createElement("span",{className:le.bt},"*"),"\u77E5\u8BC6\u70B9\u540D\u79F0"),re.createElement(we.default,{className:le.inputCss,style:{width:"calc(100% - 95px)"},maxLength:20,size:"middle",showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0",defaultValue:be.current,onChange:Ze=>{be.current=Ze.target.value}}))),onOk:()=>new Promise((Ze,Xe)=>te(void 0,null,function*(){if(!be.current)return ge.ZP.warning("\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"),Xe();if(be.current.length>20)return ge.ZP.warning("\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC720\u5B57\u7684\u77E5\u8BC6\u70B9\u540D\u79F0"),Xe();const $e=yield(0,ie.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:be.current,sub_discipline_id:fe}});if(($e==null?void 0:$e.status)===0){Ae({id:$e.tag_discipline_id,name:be.current,type:"personal"});let lt=he||[];lt.push($e.tag_discipline_id),De([...lt]),Oe([...lt]),De([...lt])}return Ze()}))})};return re.createElement(ee.Z,{wrap:!1,align:"middle",className:se()(le.wrap,Ce)},re.createElement(E.Z,null,re.createElement(Et.default,{mode:"multiple",disabled:!fe||ce,className:le.selectWrapper,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",onChange:Me,style:{width:ke||490},showSearch:!0,allowClear:!0,value:Ee,filterOption:(je,Ze)=>Ze.label.indexOf(je.toLowerCase())>=0},pe==null?void 0:pe.map(je=>re.createElement(ae,{key:je.id,value:je.id,label:je.name},re.createElement("div",{style:{display:"flex",alignItems:"center"}},re.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},je.name),(je==null?void 0:je.type)==="personal"&&re.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),fe&&re.createElement(E.Z,{className:`ml20 ${ke&&le.add_style}`},re.createElement("span",{className:le.tips},"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),re.createElement("span",{className:le.linkBtn,onClick:Se},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))}},50047:function(Nt,Ot,Ge){"use strict";var Ue=Ge(59301),Et=Ge(77019),y=Ge(5269),we=Ge(20554),ge=Ge(7939),ee=Ge(59944),E=Ge(40862),ie=Ge(48136),le=Ge(59301);const z=(0,Ue.forwardRef)(({callback:se,showSaveButton:x,value:re=""},te)=>{const ae=(0,Ue.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 "}]}]}],fe=[{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}`}]}]}],de=pe=>{ae.current.setValue(ae.current.getValue()+" "+pe.value+" ")},he=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:le.createElement(Et.Z,{className:E.Z.lists,gutter:[10,10]},ue.map((pe,Ce)=>le.createElement(y.Z,{flex:"110px",className:E.Z.item},le.createElement("div",null,le.createElement(ee.Z,{value:`$$${pe.value}$$`}),pe.name),le.createElement("div",{className:E.Z.children},pe.children.map((ke,De)=>le.createElement("div",{key:De},le.createElement("h1",null,ke.name),le.createElement(Et.Z,{gutter:[10,10]},ke.data.map((Ae,ve)=>le.createElement(y.Z,{key:ve,onClick:()=>de(Ae),className:E.Z.diamond},le.createElement(ee.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:le.createElement(Et.Z,{className:E.Z.lists,gutter:[10,10]},fe.map((pe,Ce)=>le.createElement(y.Z,{flex:"110px",className:E.Z.item},le.createElement("div",null,le.createElement(ee.Z,{value:"`$$"+pe.value+"$$`"}),pe.name),le.createElement("div",{className:E.Z.children},pe.children.map((ke,De)=>le.createElement("div",{key:De},ke.name&&le.createElement("h1",null,ke.name),le.createElement(Et.Z,{gutter:[10,10]},ke.data.map((Ae,ve)=>le.createElement(y.Z,{key:ve,onClick:()=>de(Ae),className:E.Z.diamond},le.createElement(ee.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],ce=()=>{var pe=document.createElement("div");pe.innerHTML=ae.current.getValue();var Ce=pe.innerText;return se&&se(Ce),Ce};return(0,Ue.useImperativeHandle)(te,()=>({getData:ce})),le.createElement("div",{className:E.Z.mathWrap},le.createElement(we.default,{defaultActiveKey:"1",items:he}),le.createElement("math-field",{locale:"zh_cn",className:E.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ae,style:{width:800,marginTop:30,fontSize:18}},re||""),x&&le.createElement("div",{className:E.Z.button},le.createElement(ge.ZP,{size:"large",onClick:ce,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ot.Z=z},59243:function(Nt,Ot,Ge){"use strict";var Ue=Ge(59301),Et=Ge(93314),y=Ge(7939),we=Object.defineProperty,ge=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,z=(te,ae,ue)=>ae in te?we(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:ue}):te[ae]=ue,se=(te,ae)=>{for(var ue in ae||(ae={}))ie.call(ae,ue)&&z(te,ue,ae[ue]);if(E)for(var ue of E(ae))le.call(ae,ue)&&z(te,ue,ae[ue]);return te},x=(te,ae)=>ge(te,ee(ae));const re=({img:te,buttonProps:ae={},styles:ue={},customText:fe,ButtonText:de,ButtonClick:he,Buttonclass:ce,ButtonTwo:pe,imgStyles:Ce,loading:ke=!1,className:De=""})=>Ue.createElement("section",{className:`tc animated fadeIn ${De}`,style:se({color:"#999",margin:"100px auto",visibility:ke?"hidden":"visible"},ue)},Ue.createElement("img",{src:te||Et,style:x(se({},Ce),{pointerEvents:"none",userSelect:"none"})}),Ue.createElement("p",{className:"mt20 font14"},fe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),de&&Ue.createElement(y.ZP,se({className:ce,onClick:he},ae),de),pe&&pe);Ot.Z=re},47199:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return ce}});var Ue=Ge(59301),Et={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},y=Ge(7939),we=Ge(70557),ge=Ge(58478),ee=Ge(25399),E=Ge(31735),ie=Ge(22167),le=Ge(59243),z=Ge(26869),se=Ge(38609),x=Ge(59301),re=Object.defineProperty,te=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(pe,Ce,ke)=>Ce in pe?re(pe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:ke}):pe[Ce]=ke,de=(pe,Ce)=>{for(var ke in Ce||(Ce={}))ae.call(Ce,ke)&&fe(pe,ke,Ce[ke]);if(te)for(var ke of te(Ce))ue.call(Ce,ke)&&fe(pe,ke,Ce[ke]);return pe},he=(pe,Ce,ke)=>new Promise((De,Ae)=>{var ve=Oe=>{try{Ee(ke.next(Oe))}catch(Me){Ae(Me)}},be=Oe=>{try{Ee(ke.throw(Oe))}catch(Me){Ae(Me)}},Ee=Oe=>Oe.done?De(Oe.value):Promise.resolve(Oe.value).then(ve,be);Ee((ke=ke.apply(pe,Ce)).next())}),ce=({editOffice:pe="view",data:Ce,issaver:ke,onSaver:De,theme:Ae,type:ve,filename:be,monacoEditor:Ee,className:Oe,style:Me,close:Se,onClose:je,hasMask:Ze,disabledDownload:Xe,onImgDimensions:$e,showNodata:lt,recordInfo:Re})=>{const[We,rt]=(0,Ue.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ot,at]=(0,Ue.useState)(""),[Je,Qe]=(0,Ue.useState)(),Ve=window.ENV==="build"?"/react/build":"",ct=location.host.startsWith("localhost")?z.Z.PROXY_SERVER:z.Z.API_SERVER,ut=10*(1024*1024),st=(0,Ue.useRef)();Ce!=null&&Ce.startsWith("/api")&&ve!=="txt"&&(Ce=z.Z.API_SERVER+Ce);const ze=ft=>ft.substring(ft.lastIndexOf("/")+1).split(".").pop();be&&Ee&&(Ee.filename=be),(0,Ue.useEffect)(()=>{var ft,mt;const nt=(mt=(ft=document.cookie)==null?void 0:ft.replace(/\s/g,""))==null?void 0:mt.split(";");nt==null||nt.map(_e=>{let Pe=_e.split("=");Pe[0]==="_educoder_session"&&at(Pe[1])})},[]),(0,Ue.useEffect)(()=>{ve==="office"&&(Ce.indexOf("bigfilescdn.")>-1||Ce.indexOf("bigfiles1")>-1?Qe({url:Ce,fileType:ze(Ce),model:Ce.indexOf("model=edit")?"edit":"view"}):Ke())},[ve,Ce]);function Be(ft){return he(this,null,function*(){ft.data.type==="pdfdata"&&(De(ft.data.data),window.removeEventListener("message",Be,!1)),console.log("mess---:",ft.data)})}const Ke=()=>he(void 0,null,function*(){console.log("data:",Ce);let ft=Ce;Ce.startsWith("http")||(ft=location.origin+ft);let mt=new URL(ft).pathname.split("/").pop();const nt=yield(0,ie.gJ)({attachment_id:mt});nt.url=ct+nt.url,Qe(nt)}),Ie=()=>{if(Ce.startsWith("http")||Ce.startsWith("blob:")){Ye();return}(0,E.Sv)(be||"educoder",Ce,be)},Ye=()=>{Re&&(0,se.fc)({id:Re==null?void 0:Re.id,watch_type:1,course_id:Re==null?void 0:Re.course_id}),(0,E.Nd)(be||"educoder",decodeURIComponent(Ce))};return x.createElement("div",{style:de({},Me||{}),className:`${Ze&&Et.bgBlack} ${ve?Et.wrp:"hide"}`},Se&&x.createElement("div",{className:Et.close,ref:st},!!$e&&x.createElement(ee.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>st.current},x.createElement("span",{onClick:()=>{je(),$e()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!Xe&&x.createElement(ee.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>st.current},x.createElement("span",{onClick:Ye},x.createElement("i",{className:"icon-quxiaozhiding"}))),ke&&x.createElement(ee.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>st.current},x.createElement("span",{className:"",onClick:()=>{const ft=document.getElementById("pdfiframe");window.addEventListener("message",Be,!1),setTimeout(()=>{ft.contentWindow.postMessage("getData","*")},300)}},x.createElement("i",{className:"icon-baocun"}))),x.createElement(ee.Z,{title:"\u5173\u95ED",getPopupContainer:()=>st.current},x.createElement("span",{className:"",onClick:()=>{je()}},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${Et[Oe]} ${Oe} ${Et.monaco} ${ve==="txt"?"show":"hide"}`},ve==="txt"&&x.createElement(x.Fragment,null,x.createElement(ge.ZP,de({},Ee)))),ve==="audio"&&x.createElement("audio",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${Ce}`,autoPlay:!0}),ve==="video"&&x.createElement(x.Fragment,null,(Ce==null?void 0:Ce.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${Ce}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ce}`,autoPlay:!0})),ve==="office"&&Je&&x.createElement("iframe",{src:`${Ve}/office.html?key=${Je.key}&url=${btoa(Je.url)}&callbackUrl=${ct+(Je.callbackUrl||"")}&fileType=${Je.fileType}&title=${Je.title||""}&model=${pe}&officeServer=${z.Z.ONLYOFFICE}&disabledDownload=${!!Xe}`}),ve==="html"&&x.createElement("iframe",{src:Ce+"&disposition=inline"}),ve==="pdf"&&ke&&x.createElement("iframe",{id:"pdfiframe",src:`${Ve}/js/pdfview/index.html?filename=${be||"educoder.pdf"}&url=${encodeURIComponent(Ce)}&disabledDownload=${!!Xe}&model=${pe}`}),ve==="pdf"&&!ke&&x.createElement("embed",{className:Et.embed,src:Ce+"#toolbar=0&statusbar=0&navpanes=0&scrollbars=0"}),ve==="image"&&x.createElement("img",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ce}`}),(ve==="other"||ve==="download")&&x.createElement(x.Fragment,null,lt?x.createElement(le.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:Ie,disabled:Xe},"\u4E0B\u8F7D")}):x.createElement(y.ZP,{type:"primary",size:"middle",onClick:Ie,disabled:Xe},x.createElement(we.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ve==="flowChart"&&x.createElement("div",{className:"embed"},x.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${Ce||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},94593:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{h:function(){return ae},x:function(){return ue}});var Ue=Ge(77834),Et=Ge(86787),y=Ge(59944),we=Ge(59301),ge=Object.defineProperty,ee=Object.defineProperties,E=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,se=(fe,de,he)=>de in fe?ge(fe,de,{enumerable:!0,configurable:!0,writable:!0,value:he}):fe[de]=he,x=(fe,de)=>{for(var he in de||(de={}))le.call(de,he)&&se(fe,he,de[he]);if(ie)for(var he of ie(de))z.call(de,he)&&se(fe,he,de[he]);return fe},re=(fe,de)=>ee(fe,E(de)),te=(fe,de)=>{var he={};for(var ce in fe)le.call(fe,ce)&&de.indexOf(ce)<0&&(he[ce]=fe[ce]);if(fe!=null&&ie)for(var ce of ie(fe))de.indexOf(ce)<0&&z.call(fe,ce)&&(he[ce]=fe[ce]);return he};const ae=fe=>{var de=fe,{value:he,onChange:ce,scrollId:pe}=de,Ce=te(de,["value","onChange","scrollId"]);return we.createElement("div",{id:pe||""},we.createElement(Ue.Z,re(x({},Ce),{defaultValue:he,onChange:(ke,De)=>{De!=null&&De.length?ce(ke,De):ce(ke)}})))},ue=({value:fe,onChange:de,placeholder:he,height:ce=140,isEdit:pe,miniToolbar:Ce,watch:ke=!0})=>pe?we.createElement(Ue.Z,{watch:ke,isFocus:!0,height:ce||void 0,placeholder:he,defaultValue:fe,onChange:de,miniToolbar:Ce}):we.createElement("div",{style:{cursor:"pointer"}},fe?we.createElement(y.Z,{className:Et.Z.inputBorder,value:fe}):we.createElement("div",{className:`${Et.Z.inputBorder} ${Et.Z.placeholder} inputBorderError`},he))},59944:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{z:function(){return Ee},Z:function(){return Oe}});var Ue=Ge(59301),Et=Ge(54196),y=Ge(58489),we=Ge(64018),ge=Ge(80360),ee=Ge(26869),E=Ge(31735),ie=Ge(15342),le=Ge(44104),z=Ge(7939),se=Ge(1012),x=Ge(47199),re=Ge(59301),ae=({html:Me})=>{const Se=(0,Ue.useRef)(null),je=(0,Ue.useRef)(null),Ze=`.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,Ue.useEffect)(()=>{const Xe=Se.current.attachShadow({mode:"open"});je.current=document.createElement("div"),je.current.className="markdown-body",je.current.innerHTML=Me,Xe.appendChild(je.current);const $e=document.createElement("style");return $e.textContent=Ze,Xe.appendChild($e),()=>{Xe.innerHTML=""}},[]),(0,Ue.useEffect)(()=>{je.current&&(je.current.innerHTML=Me)},[Me]),re.createElement("div",{ref:Se})};function ue(Me){const Se=["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"],je=new RegExp(`\\b(${Se.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Me.replace(je,"").trim()}var fe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},de=Object.defineProperty,he=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ce=(Me,Se,je)=>Se in Me?de(Me,Se,{enumerable:!0,configurable:!0,writable:!0,value:je}):Me[Se]=je,ke=(Me,Se)=>{for(var je in Se||(Se={}))ce.call(Se,je)&&Ce(Me,je,Se[je]);if(he)for(var je of he(Se))pe.call(Se,je)&&Ce(Me,je,Se[je]);return Me};const De="@\u2581\u2581@",Ae="@\u2581@",ve=/<pre[^>]*>/g;function be(Me){let Se=document.createElement("div");return Se.innerHTML=Me,Se.childNodes.length===0?"":Se.childNodes[0].nodeValue}const Ee=(Me,Se)=>{Me=Me||"";const je=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Se?Me.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(je,(lt,Re,We,rt,ot,at,Je)=>{const Qe=Re||rt||at,Ve=We||ot||Je||"?";return ee.Z.API_SERVER+"/api/attachments/"+Qe+Ve+"&t="+(0,E.Jn)(Qe,Date.now())+(lt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Me=Me.replace($e,(lt,Re,We,rt,ot,at,Je)=>{const Qe=Re||rt||at,Ve=We||ot||Je||"?";return ee.Z.API_SERVER+"/attachments/download/"+Qe+Ve+"&t="+(0,E.Jn)(Qe,Date.now())+(lt.indexOf(")")>-1?")":"&")}).replace(je,(lt,Re,We,rt,ot,at,Je)=>{const Qe=Re||rt||at,Ve=We||ot||Je||"?";return ee.Z.API_SERVER+"/api/attachments/"+Qe+Ve+"&t="+(0,E.Jn)(Qe,Date.now())+(lt.indexOf(")")>-1?")":"&")}).replace(Ze,(lt,Re,We,rt,ot)=>{const at=Re||rt,Je=We||ot||"";return'"'+ee.Z.API_SERVER+"/api/attachments/"+at+Je+at+Je+"&t="+(0,E.Jn)(at,Date.now())}).replace(Xe,(lt,Re,We,rt,ot)=>{const at=Re||rt,Je=We||ot||"";return"("+ee.Z.API_SERVER+"/files/uploads/"+at+Je+at+Je+"&t="+(0,E.Jn)(at,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,`
`),Me)};var Oe=({value:Me="",edit:Se=!1,className:je,showTextOnly:Ze,showLines:Xe,style:$e={},stylesPrev:lt={},highlightKeywords:Re,showProgramFill:We,isProgramFill:rt,disabledFill:ot=!1,programFillValue:at,openEditor:Je=()=>{},onFillChange:Qe=tt=>{},onFillBlur:Ve=()=>{},onFillFocus:ct=()=>{}})=>{let tt=ue(String(Me||""));const ut=(0,Ue.useRef)(),st=(0,Ue.useRef)(),[ze,Be]=(0,Ue.useState)(""),[Ke,Ie]=(0,Ue.useState)("office"),[Ye,ft]=(0,Ue.useState)([]),mt=(0,Ue.useRef)("a"+(0,se.Z)()),nt={},_e=ht=>/<style[\s\S]*?>/i.test(ht||""),Pe=(ht,xt,St)=>{const Ct=document.createElement(ht===Ae?"input":"textarea");Ct.style.width="100%",Ct.style.height=ht===Ae?"40px":"151px",Ct.rows=5,Ct.spellcheck=!1,Ct.name="edu-program-fill",Ct.placeholder="\u8BF7\u8F93\u5165",Ct.dataset.id=xt;const jt=Object.keys(nt).length;return nt[jt]=Ct,`<span class="edu-program-fill-wrap ${ht===Ae?"":"show"}" style="width:${ht===Ae?"600px":"100%"}" title=${St||""}><span>${Ct.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function He(ht){return ht=ht.replace(/!\[.*?\]\(.*?\)/g,""),ht=ht.replace(/\[.*?\]\(.*?\)/g,""),ht=ht.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),ht=ht.replace(/<embed.*?>/g,""),ht=ht.replace(/<img.*?>/g,""),ht=ht.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),ht=ht.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),ht=ht.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),ht=ht.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),ht}const it=ht=>!Ze&&_e(tt)?ht:ht.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(xt,St){let Ct=St.replace(/(\n|\r)/g,"").split("}"),jt=[];return Ct.map(Ut=>{Ut!=""&&jt.push(`.${mt.current} ${Ut}`)}),`<style>${jt.join("}")}</style>`}),Te=(0,Ue.useMemo)(()=>{try{const Ct=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,jt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ut=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Bt=/\(\/attachments\/download\//g;tt=tt.replace(Bt,"("+ee.Z.API_SERVER+"/attachments/download/").replace(Ct,"("+ee.Z.API_SERVER+"/api/attachments/").replace(jt,'"'+ee.Z.API_SERVER+"/api/attachments/").replace(Ut,'"'+ee.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(Ct){}if(We){let Ct=-1;return tt=tt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(jt,Ut,Bt){var qt;return++Ct,Pe(jt,Ct,(qt=at==null?void 0:at[Ct])==null?void 0:qt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${it(tt||"")}</pre>`}let ht=it(tt);ht=(0,y.ZP)(ht);const xt=(0,y.ez)();tt.match(/\[TOC\]/)&&(ht=ht.replace("<p>[TOC]</p>",(0,y.Qv)()),(0,y.Iy)()),ht=ht.replace(/(__special_katext_id_\d+__)/g,(Ct,jt)=>{const{type:Ut,expression:Bt}=xt[jt];return(0,ie.renderToString)(be(Bt)||"",{displayMode:Ut==="block",throwOnError:!1,output:"html"})}),ht=ht.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const St=document.createElement("div");if(St.innerHTML=ht,Ze)return St.innerText;if(Re){const Ct=Re.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return et(St,Ct),St.innerHTML}return setTimeout(()=>wt(),500),St.innerHTML},[tt,Re]);(0,Ue.useEffect)(()=>{Ne.current&&Ne.current.querySelectorAll(["input","textarea"]).forEach(xt=>{xt.oninput=xe,xt.onblur=ye,xt.onfocus=Le})},[Ye]),(0,Ue.useEffect)(()=>{var ht,xt,St,Ct,jt;if(at!=null&&at.length)try{const Ut=Ne.current.querySelectorAll(".edu-program-fill-score"),Bt=Ne.current.querySelectorAll('[name="edu-program-fill"]');for(const[qt,xr]of Bt.entries())xr.value=((ht=at==null?void 0:at[qt])==null?void 0:ht.value)||"",((xt=at==null?void 0:at[qt])==null?void 0:xt.type)==="warning"?xr.className="program-fill-warning":((St=at==null?void 0:at[qt])==null?void 0:St.type)==="success"?xr.className="program-fill-success":xr.className="";for(const[qt,xr]of Ut.entries())xr.innerHTML=(Ct=at==null?void 0:at[qt])!=null&&Ct.score?`${(jt=at==null?void 0:at[qt])==null?void 0:jt.score}\u5206`:"";ft(at)}catch(Ut){console.log(Ut,"error")}},[at]);const xe=ht=>{Ye[ht.target.dataset.id]=Ye[ht.target.dataset.id]||{},Ye[ht.target.dataset.id].value=ht.target.value,ft([...Ye]),Qe(Ye,ht.target.dataset.id)},ye=ht=>{Ye[ht.target.dataset.id]=Ye[ht.target.dataset.id]||{},Ye[ht.target.dataset.id].value=ht.target.value,ft([...Ye]),Ve(Ye,ht.target.dataset.id)},Le=ht=>{Ye[ht.target.dataset.id]=Ye[ht.target.dataset.id]||{},Ye[ht.target.dataset.id].value=ht.target.value,ft([...Ye]),ct(Ye,ht.target.dataset.id)};function et(ht,xt){return ht.childNodes.forEach(St=>{var Ct;if(St.childNodes.length>0)et(St,xt);else if(St.nodeName!=="IMG")if(St.innerHTML)St.innerHTML=(Ct=St.innerHTML)==null?void 0:Ct.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const jt=document.createElement("span");jt.innerHTML=St.textContent.replace(new RegExp(xt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),St.replaceWith(jt)}})}const Ne=(0,Ue.useRef)();y.jb.WebkitLineClamp=Xe,Xe&&($e=ke(ke({},$e),y.jb));function yt(ht){let xt=ht.target;if(xt.tagName.toUpperCase()==="A"){let St=xt.getAttribute("href");if(St.indexOf("office")>-1)ht.preventDefault(),Be(St),Ie("office");else if(St.indexOf("application/pdf")>-1)ht.preventDefault(),Be(St),Ie("pdf");else if(St.indexOf("text/html")>-1)ht.preventDefault(),Be(St),Ie("html");else if(St.startsWith("#")){ht.preventDefault();let Ct=document.getElementById(St.replace("#",""));Ct&&Ct.scrollIntoView(!0)}}}const wt=()=>{var ht;const xt=(ht=Ne.current)==null?void 0:ht.querySelectorAll("video");xt==null||xt.forEach(St=>{if(St.oncontextmenu=()=>!1,St.src.indexOf(".m3u8")>-1&&!St.canPlayType("application/vnd.apple.mpegurl")){if(ge.ZP.isSupported()){var Ct=new ge.ZP;Ct.loadSource(St.src),Ct.attachMedia(St)}}})};(0,Ue.useEffect)(()=>{if(Ne.current&&Te&&Te.match(ve)&&window.PR.prettyPrint(),Ne.current)return Ne.current.addEventListener("click",yt),()=>{var ht;(ht=Ne.current)==null||ht.removeEventListener("click",yt),(0,y.AL)(),(0,y.Iy)()}},[Te,Ne.current,yt]);const vt=ht=>{ht.target.nodeName==="IMG"&&ht.target.className.indexOf("draw-flowchart")>-1?(ut.current.style.zIndex=1,ut.current.style.display="flex",ut.current.style.width=ht.target.clientWidth+"px",ut.current.style.height=ht.target.clientHeight+"px",ut.current.style.top=ht.target.offsetTop+"px",ut.current.style.left=ht.target.offsetLeft+"px",ht.target.id&&(st.current=ht.target.id)):ut.current.style.display="none"},gt=()=>{ut.current.style.display="none"};return(0,Ue.useEffect)(()=>{var ht;const xt=St=>{St.preventDefault(),St.clipboardData.setData("text",window.getSelection().toString())};return(ht=Ne.current)==null||ht.addEventListener("copy",xt),()=>{var St;(St=Ne.current)==null||St.removeEventListener("copy",xt)}},[Ne.current]),Ue.createElement("div",{style:{position:"relative"},onMouseLeave:gt},Ze&&Ue.createElement("div",{ref:Ne,className:`${fe.mdBody} `},Te),!Ze&&!_e(Te)&&Ue.createElement("div",{ref:Ne,style:ke({},$e),onMouseOver:vt,className:`${je||""} ${ot?"disabled-fill":""} markdown-body ${fe.mdBody} ${mt.current}`,dangerouslySetInnerHTML:{__html:Te}}),!Ze&&_e(Te)&&Ue.createElement(ae,{html:Te}),Ue.createElement("div",{ref:ut,className:`${fe.button} ${Se?"":fe.previewFlowChart}`},Ue.createElement(le.Z,null,Ue.createElement(z.ZP,{onClick:()=>{Se?Je(st.current):(Be(st.current),Ie("flowChart"))}},Se?"\u7F16\u8F91":"\u9884\u89C8"))),Ue.createElement(x.Z,{close:!0,data:ze,type:ze!=null&&ze.length?Ke:"",style:ke({},lt),onClose:()=>Be("")}))}},34282:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return we}});var Ue=Ge(59301),Et=Ge(94276),y=Ge(59301),we=({defaultX:ge="40%",leftChild:ee,rightChild:E,className:ie,hideResize:le=!1})=>{const[z,se]=(0,Ue.useState)(ge),x=(0,Ue.useRef)();function re(){x.current=!0}(0,Ue.useEffect)(()=>{function ue(de){x.current&&(Et.Z.publish("resize-move-bar",de),se(de.pageX))}function fe(){x.current=!1}return window.addEventListener("mousemove",ue),window.addEventListener("mouseup",fe),()=>{window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",fe)}},[]);const te=typeof z=="number"&&z!==.01?`${z}px`:ge,ae=`calc(100% - ${le?"0px":"4px"} - ${te})`;return y.createElement("div",{className:`split-panel-container ${ie}`},y.createElement("section",{style:{width:te,display:z===.01?"none":""}},ee),y.createElement("section",{className:"resize-x-bar",onMouseDown:re},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}},E))}},13683:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{cT:function(){return ve},pe:function(){return ke}});var Ue=Ge(59301),Et=Ge(14566),y=Ge(6767),we=Ge(97013),ge=Ge(28209),ee=Ge.n(ge),E=Ge(1012),ie=Ge(58106),le=Ge(47257),z=Ge.n(le),se=Object.defineProperty,x=Object.defineProperties,re=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(Ee,Oe,Me)=>Oe in Ee?se(Ee,Oe,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ee[Oe]=Me,de=(Ee,Oe)=>{for(var Me in Oe||(Oe={}))ae.call(Oe,Me)&&fe(Ee,Me,Oe[Me]);if(te)for(var Me of te(Oe))ue.call(Oe,Me)&&fe(Ee,Me,Oe[Me]);return Ee},he=(Ee,Oe)=>x(Ee,re(Oe)),ce=(Ee,Oe)=>{var Me={};for(var Se in Ee)ae.call(Ee,Se)&&Oe.indexOf(Se)<0&&(Me[Se]=Ee[Se]);if(Ee!=null&&te)for(var Se of te(Ee))Oe.indexOf(Se)<0&&ue.call(Ee,Se)&&(Me[Se]=Ee[Se]);return Me},pe=(Ee,Oe,Me)=>new Promise((Se,je)=>{var Ze=lt=>{try{$e(Me.next(lt))}catch(Re){je(Re)}},Xe=lt=>{try{$e(Me.throw(lt))}catch(Re){je(Re)}},$e=lt=>lt.done?Se(lt.value):Promise.resolve(lt.value).then(Ze,Xe);$e((Me=Me.apply(Ee,Oe)).next())});const{Dragger:Ce}=Et.default,ke=Ee=>{const Oe="bf3c199c2470cb477d907b1e0917c17b",Me="5183666c72eec9e4";var Se=ee().enc.Utf8.parse(Oe);let je=ee().enc.Utf8.parse(Me);var Ze=ee().AES.decrypt(Ee,Se,{iv:je,mode:ee().mode.CBC});return Ze.toString(ee().enc.Utf8)};let De;const Ae=Ee=>pe(void 0,[Ee],function*({identifier:Oe,oldFilename:Me,newFilename:Se}){var je,Ze,Xe,$e,lt,Re;const We=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});We.data=JSON.parse(ke(We.data));const rt=new OSS({endpoint:(je=We==null?void 0:We.data)==null?void 0:je.end_point,region:(Ze=We==null?void 0:We.data)==null?void 0:Ze.region,accessKeyId:(Xe=We==null?void 0:We.data)==null?void 0:Xe.access_key_id,accessKeySecret:($e=We==null?void 0:We.data)==null?void 0:$e.access_key_secret,bucket:(lt=We==null?void 0:We.data)==null?void 0:lt.bucket,stsToken:(Re=We==null?void 0:We.data)==null?void 0:Re.security_token});return new Promise((ot,at)=>{console.log(11111,`${Oe}/${Me}`,`${Oe}/${Se}`,We.data),rt.copy(`/${Oe}/${Me}`,`/${Oe}/${Se}`).then(Je=>{console.log("\u62F7\u8D1D\u6210\u529F",Je)}).catch(Je=>{console.log(Je)})})}),ve=(Ee,Oe,Me)=>pe(void 0,null,function*(){var Se,je,Ze,Xe,$e,lt;Oe.file_name=Ee.name;const Re=yield(0,we.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",ke(Re.data)),Re.data=JSON.parse(ke(Re.data));const We=Ee.name.split(".");We.pop();const rt=Oe.realFileName?We.join(""):(0,E.Z)(),ot=new(z())({endpoint:(Se=Re==null?void 0:Re.data)==null?void 0:Se.end_point,region:(je=Re==null?void 0:Re.data)==null?void 0:je.region,accessKeyId:(Ze=Re==null?void 0:Re.data)==null?void 0:Ze.access_key_id,accessKeySecret:(Xe=Re==null?void 0:Re.data)==null?void 0:Xe.access_key_secret,bucket:($e=Re==null?void 0:Re.data)==null?void 0:$e.bucket,stsToken:(lt=Re==null?void 0:Re.data)==null?void 0:lt.security_token});return new Promise((at,Je)=>{var Qe;ot.multipartUpload(`${rt}`,new Blob([Ee],{type:Ee.type}),he(de({timeout:200*1e3,partSize:102400},Me),{callback:{url:(Qe=Re==null?void 0:Re.data)==null?void 0:Qe.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,we.rz)(Oe)}})).then(function(Ve){var ct;Ee.response=(ct=Ve.data)==null?void 0:ct.data,at(Ve==null?void 0:Ve.data)}).catch(function(Ve){Je(Ve),console.log("err:",Ve)})})}),be=Ee=>{var Oe=Ee,{user:Me,cancelUpload:Se}=Oe,je=ce(Oe,["user","cancelUpload"]);const[Ze,Xe]=(0,Ue.useState)([]);let[$e,lt]=(0,Ue.useState)();const Re={onRemove:rt=>{Xe([...Ze.filter(ot=>ot.name!==rt.name)]),je.onChange(Ze.filter(ot=>ot.name!==rt.name))},disabled:je.disabled,multiple:!0,fileList:Ze==null?void 0:Ze.map(rt=>rt.file),customRequest:()=>{},beforeUpload:rt=>pe(void 0,null,function*(){let ot=je.maxSize||1073741824;if(Ze.filter(at=>at.name===rt.name).length){y.ZP.info(`${rt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(rt==null?void 0:rt.size)>ot?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${ot/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ze.push({name:rt.name,file:rt}),Xe([...Ze]),je.onChange(Ze),!1)})},We=(rt,ot)=>pe(void 0,null,function*(){var at,Je,Qe,Ve,ct,tt;ot.file_name=rt.name;const ut=rt.name,st=yield(0,we.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(st.data=JSON.parse(ke(st.data)),(st==null?void 0:st.status)!==0){Ze[Ze.findIndex(Ke=>Ke.name===ut)].status="error",Ze[Ze.findIndex(Ke=>Ke.name===ut)].file.status="error",je.onChange(Ze),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}$e=new(z())({endpoint:(at=st==null?void 0:st.data)==null?void 0:at.end_point,region:(Je=st==null?void 0:st.data)==null?void 0:Je.region,accessKeyId:(Qe=st==null?void 0:st.data)==null?void 0:Qe.access_key_id,accessKeySecret:(Ve=st==null?void 0:st.data)==null?void 0:Ve.access_key_secret,bucket:(ct=st==null?void 0:st.data)==null?void 0:ct.bucket,stsToken:(tt=st==null?void 0:st.data)==null?void 0:tt.security_token}),console.log(rt,"file"),lt($e);const ze=rt.name.split(".");ze.pop();const Be=ut.indexOf(".")>-1?ot.realFileName?ze.join("."):(0,E.Z)():ut;return new Promise((Ke,Ie)=>{var Ye;try{$e.multipartUpload(`${je.identifier}/${Be}${ut.indexOf(".")>-1?"."+ut.split(".").pop():""}`,new Blob([rt.file],{type:rt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(ft,mt,nt)=>{try{console.log("\u8FDB\u5EA6",ft,mt,nt);const _e=Ze.findIndex(Pe=>Pe.name===ut);Ze[_e].file.percent=ft*100,Ze[_e].tempCheckpoint=mt,Xe([...Ze])}catch(_e){}},checkpoint:Ze[Ze.findIndex(ft=>ft.name===ut)].tempCheckpoint,callback:{customValue:{id:ut+""},url:(Ye=st==null?void 0:st.data)==null?void 0:Ye.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,we.rz)(ot)}}).then(function(ft){var mt,nt,_e;const Pe=Ze.findIndex(it=>it.name===ut);let He="done";if(((mt=ft.data)==null?void 0:mt.status)===0){rt.response=(nt=ft.data)==null?void 0:nt.data;const it=Ze.findIndex(Te=>Te.name===ut);Ze[it].status="done",Ze[it].file.status="done"}else y.ZP.warning((_e=ft.data)==null?void 0:_e.message),He="error";Ze[Pe].status=He,Ze[Pe].file.status=He,je.onChange(Ze),Ke(ft==null?void 0:ft.data)}).catch(function(ft){Ze[Ze.findIndex(mt=>mt.name===ut)].status="error",Ze[Ze.findIndex(mt=>mt.name===ut)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Xe([...Ze]),je.onChange(Ze),Ie(ft),console.log("err:",ft)})}catch(ft){}})});return(0,Ue.useEffect)(()=>{Ze.every(rt=>rt==="done"||rt==="error")&&je.onComplete(Ze)},[Ze]),(0,Ue.useEffect)(()=>{Se&&($e==null||$e.cancel())},[Se]),(0,Ue.useEffect)(()=>{je.uploading&&Ze.map(rt=>pe(void 0,null,function*(){var ot;if((!rt.status||rt.status==="error")&&!Se){rt.status="uploading",rt.file.status="uploading";const at=yield We(rt,{login:(ot=Me==null?void 0:Me.userInfo)==null?void 0:ot.login,container_type:je.container_type,container_id:je.container_id,description:je.description,realFileName:je.realFileName})}}))},[je.uploading]),Ue.createElement(Ce,he(de({},Re),{height:je.height,className:je.className}),Ue.createElement("p",{className:"ant-upload-hint"},je.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Ot.ZP=(0,ie.connect)(({loading:Ee,globalSetting:Oe,user:Me})=>({globalSetting:Oe,loading:Ee.models.competitions,user:Me}))(be)},52504:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{h:function(){return pe},Z:function(){return ce}});var Ue=Ge(59301),Et=Ge(82326),y=Ge(28284),we=Ge(7939),ge=Ge(89780),ee=Ge.n(ge),E=Ge(2018),ie=Object.defineProperty,le=Object.defineProperties,z=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,te=(Ce,ke,De)=>ke in Ce?ie(Ce,ke,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ce[ke]=De,ae=(Ce,ke)=>{for(var De in ke||(ke={}))x.call(ke,De)&&te(Ce,De,ke[De]);if(se)for(var De of se(ke))re.call(ke,De)&&te(Ce,De,ke[De]);return Ce},ue=(Ce,ke)=>le(Ce,z(ke));const fe=Et.default.Option,de={labelCol:{span:4},wrapperCol:{span:20}},he={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"]};var ce=({callback:Ce,onCancel:ke})=>{const[De,Ae]=(0,Ue.useState)("python");function ve(Ee){Ae(he[Ee][1])}function be(Ee){Ce(Ee)}return Ue.createElement(y.default,ue(ae({},de),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:be,style:{width:500}}),Ue.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Ue.createElement(Et.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:ve},Object.keys(he).map(Ee=>Ue.createElement(fe,{key:Ee,value:Ee},he[Ee][0])))),Ue.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Ue.createElement(pe,{mode:De})),Ue.createElement("div",{className:"flex-container flex-end"},Ue.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(we.ZP,{type:"ghost",onClick:ke},"\u53D6\u6D88")))};function pe({value:Ce,onChange:ke,mode:De,options:Ae={}}){const ve=(0,Ue.useRef)(),[be,Ee]=(0,Ue.useState)();return(0,Ue.useEffect)(()=>{if(be){let Oe=function(Me){const Se=Me.getValue();ke&&ke(Se)};return be.on("change",Oe),()=>{be.off("change",Oe)}}},[be,ke]),(0,Ue.useEffect)(()=>{be&&be.setOption("mode",De)},[be,De]),(0,Ue.useEffect)(()=>{be&&(Ce!==be.getValue()||Ce==="")&&setTimeout(()=>{be.setValue(Ce||"")},300)},[be,Ce]),(0,Ue.useEffect)(()=>{if(ve.current&&!be){const Oe=ee().fromTextArea(ve.current,ae({mode:De,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Ee(Oe)}},[ve.current,be]),Ue.createElement("div",{className:"my-codemirror-container"},Ue.createElement("textarea",{ref:ve}))}},77834:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return Yt}});var Ue=Ge(59301),Et=Ge(58106),y=Ge(89780),we=Ge.n(y),ge=Ge(76374),ee=Ge(2018),E=Ge(6313),ie=Ge(25717),le=Ge(99498),z=Ge(25419),se=Ge(67549),x=Ge(59944),re=({value:Pt="",className:Wt,showTextOnly:$t,showLines:cr,style:Ht={}})=>{const Er=(0,Ue.useMemo)(()=>"",[Pt]);return Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{dangerouslySetInnerHTML:{__html:Er}}))},te=Object.defineProperty,ae=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,ce=(Pt,Wt,$t)=>Wt in Pt?te(Pt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Pt[Wt]=$t,pe=(Pt,Wt)=>{for(var $t in Wt||(Wt={}))de.call(Wt,$t)&&ce(Pt,$t,Wt[$t]);if(fe)for(var $t of fe(Wt))he.call(Wt,$t)&&ce(Pt,$t,Wt[$t]);return Pt},Ce=(Pt,Wt)=>ae(Pt,ue(Wt));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 De({onActionCallback:Pt,title:Wt,icon:$t,actionName:cr,className:Ht="",children:Er}){function Tr(){Pt(cr)}return Ue.createElement("a",{title:Wt,className:Ht,onClick:Tr},Ue.createElement("i",{className:`${$t}`}),Er)}var Ae=({watch:Pt,showNullButton:Wt,showNullProgramButton:$t,onActionCallback:cr,fullScreen:Ht,insertTemp:Er,hidetoolBar:Tr,extraUse:Mr})=>{const Cr=[...ke,{title:`${Pt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Pt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ue.createElement("ul",{className:"markdown-toolbar-container"},!Tr&&Cr.map((dr,er)=>Ue.createElement("li",{key:er},dr.actionName?Ue.createElement(De,Ce(pe({},dr),{onActionCallback:cr})):Ue.createElement("span",{className:"v-line"}))),Wt?Ue.createElement("li",null,Ue.createElement(De,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:cr},Ue.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,$t?Ue.createElement(Ue.Fragment,null,Ue.createElement("li",null,Ue.createElement(De,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:cr},Ue.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Ue.createElement("li",null,Ue.createElement(De,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:cr},Ue.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Er&&Ue.createElement("li",null,Ue.createElement(De,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Er}`,onActionCallback:cr},Ue.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Mr&&Ue.createElement("li",null,Mr),Ue.createElement("li",{className:"btn-full-screen"},Ue.createElement(De,{icon:`${Ht?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ht?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:cr})))},ve=Ge(35990),be=Ge(28284),Ee=Ge(37568),Oe=Ge(7939),Me=Object.defineProperty,Se=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,lt=(Pt,Wt,$t)=>Wt in Pt?Me(Pt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Pt[Wt]=$t,Re=(Pt,Wt)=>{for(var $t in Wt||(Wt={}))Xe.call(Wt,$t)&&lt(Pt,$t,Wt[$t]);if(Ze)for(var $t of Ze(Wt))$e.call(Wt,$t)&&lt(Pt,$t,Wt[$t]);return Pt},We=(Pt,Wt)=>Se(Pt,je(Wt));const rt={labelCol:{span:4},wrapperCol:{span:20}};var ot=({callback:Pt,onCancel:Wt})=>{function $t(cr){Pt(cr)}return Ue.createElement(be.default,We(Re({},rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:$t,style:{width:500}}),Ue.createElement(be.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Ue.createElement(Ee.default,null)),Ue.createElement(be.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Ue.createElement(Ee.default,null)),Ue.createElement("div",{className:"flex-container flex-end"},Ue.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(Oe.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))},at=Ge(52504),Je=Ge(82441),Qe=Ge(62957),Ve=Ge(77019),ct=Ge(1986),tt=Ge(59301),ut=({callback:Pt,onCancel:Wt})=>{const $t=document.createElement("canvas"),cr=$t.getContext("2d");$t.width=1e3,$t.height=800,cr.fillStyle="#ffffff",cr.fillRect(0,0,$t.width,$t.height);const Ht=$t.toDataURL("image/png");return tt.createElement(Qe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},tt.createElement(Ve.Z,{style:{height:"100vh"}},tt.createElement(ct.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ht,visible:!0,title:String(Date.now())},onOk:Er=>{Pt({src:Er.url})},onClose:Wt})))},st=Ge(30641),ze=Ge(5269),Be=Ge(6767),Ke={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},Ie=Ge(59301),ft=(0,Ue.forwardRef)(({onCancel:Pt,editImgId:Wt,callback:$t},cr)=>{let Ht=(0,Ue.useRef)(),Er=(0,Ue.useRef)(),Tr=(0,Ue.useRef)(),Mr=(0,Ue.useRef)(!1);const Cr=(0,Ue.useRef)(!1);console.log("ref:",cr);const[dr,er]=(0,Ue.useState)(0),[Mt,rr]=(0,Ue.useState)("100vh");return(0,Ue.useEffect)(()=>{er(1)},[]),(0,Ue.useImperativeHandle)(cr,()=>({setHeight:rr})),Ie.createElement("div",{ref:Cr,className:"body-overflow-initial"},Ie.createElement(st.Z,{width:"100vw",height:Mt,footer:null,closable:!0,placement:"bottom",open:!!dr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ke.drawerWrap}`,onClose:()=>{window.saveDrawData(gr=>{$t({src:`/api/attachments/${gr}`,id:gr})})},title:Ie.createElement(Ve.Z,{align:"middle"},Ie.createElement(ze.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ie.createElement(ze.Z,{onClick:()=>{rr(Mt==="60px"?"100vh":"60px")}},Ie.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),Ie.createElement(ze.Z,{onClick:()=>{window.saveDrawData(gr=>{if(gr===null){Be.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Be.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),$t({src:`/api/attachments/${gr}`,id:gr,disabledClose:!0})})}},Ie.createElement(Oe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},Ie.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Wt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Er})))}),mt=Ge(26869),nt=Ge(47889),_e=Ge(71051);const Pe=nt.ZP.Group,He={margin:"0 8px"};var it=({callback:Pt,onCancel:Wt})=>{function $t(cr){Pt(cr)}return Ue.createElement(be.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:$t},Ue.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Ue.createElement("span",{style:He},"\u5355\u5143\u683C\u6570\uFF1A"),Ue.createElement("span",{style:He},"\u884C\u6570"),Ue.createElement(be.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Ue.createElement(_e.Z,null)),Ue.createElement("span",{style:He},"\u5217\u6570"),Ue.createElement(be.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Ue.createElement(_e.Z,null))),Ue.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Ue.createElement("span",{style:He},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Ue.createElement(be.default.Item,{name:"align"},Ue.createElement(Pe,null,Ue.createElement(nt.ZP,{value:"default"},Ue.createElement("i",{className:"fa fa-align-justify"})),Ue.createElement(nt.ZP,{value:"left"},Ue.createElement("i",{className:"fa fa-align-left"})),Ue.createElement(nt.ZP,{value:"center"},Ue.createElement("i",{className:"fa fa-align-center"})),Ue.createElement(nt.ZP,{value:"right"},Ue.createElement("i",{className:"fa fa-align-right"}))))),Ue.createElement("div",{className:"flex-container flex-end"},Ue.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(Oe.ZP,{type:"ghost",onClick:Wt},"\u53D6\u6D88")))},Te=Ge(71411),xe=Ge(75544),ye=Ge.n(xe),et=(0,Ue.forwardRef)(({use3d:Pt,width:Wt,height:$t,callback:cr,showSaveButton:Ht},Er)=>{const Tr=(0,Ue.useRef)(),Mr=(0,Ue.useRef)(),[Cr,dr]=(0,Ue.useState)(!1),er=(0,Ue.useRef)({id:Tr,appName:"graphing",width:Wt||1e3,height:$t||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Ue.useEffect)(()=>{Mr.current=new(ye())(er.current,!0),window.onload=function(){Mr.current.inject("applet_container")}},[]);const Mt=()=>{var rr=window.ggbApplet.getPNGBase64(1,!0,72);return cr&&cr(rr),rr};return(0,Ue.useEffect)(()=>{er.current.appName=Cr?"3D":"graphing",Mr.current.inject("applet_container")},[Cr]),(0,Ue.useEffect)(()=>{dr(Pt)},[Pt]),(0,Ue.useImperativeHandle)(Er,()=>({getImgData:Mt})),Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Tr}),Ue.createElement(Ve.Z,{align:"middle"},Ue.createElement(ze.Z,{flex:1},Ue.createElement(Te.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Cr,onChange:rr=>dr(rr)})),Ue.createElement(ze.Z,null,Ue.createElement(Oe.ZP,{size:"large",onClick:Mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ne=Ge(50047);const yt="link",wt="upload-image",vt="add-flowchart",gt="draw-image",ht="add-flowchart",xt="code-block",St="add-table",Ct="------------",jt={default:Ct,left:`:${Ct}`,center:`:${Ct}:`,right:`${Ct}:`};var Ut=Ge(61904),Bt=Ge(31735);function qt(){}let xr=0;const pr=1e4,Lt="\u2581",Vt="@\u2581\u2581@",ar="@\u2581@",fr=`
**\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`,Jt=["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 sr(Pt){return/^\d+$/.test(Pt)?`${Pt}px`:Pt}const Xt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",zt={[Xt+"-B"]:"bold",[Xt+"-I"]:"italic"},Zt={[yt]:"\u6DFB\u52A0\u94FE\u63A5",[xt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[wt]:"\u6DFB\u52A0\u56FE\u7247",[gt]:"\u6DFB\u52A0\u753B\u56FE",[vt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[St]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Yt=({defaultValue:Pt="",onChange:Wt,width:$t="100%",height:cr=400,miniToolbar:Ht=!1,isFocus:Er=!1,watch:Tr,insertTemp:Mr,mode:Cr="markdown",id:dr="markdown-editor-id",showResizeBar:er=!1,noStorage:Mt=!1,showNullButton:rr=!1,showNullProgramButton:gr=!1,hidetoolBar:Lr=!1,fullScreen:At=!1,onBlur:Tt,onCMBeforeChange:nr,onFullScreen:Kt,className:Dt="",disablePaste:Qt=!1,disabled:tr=!1,disabledFill:yr=!1,placeholder:jr="",values:or="",extraUse:wr,onAddBlank:Gt})=>{const[Rt,lr]=(0,Ue.useState)(null),[ur,kr]=(0,Ue.useState)(Pt),[Nr,$r]=(0,Ue.useState)(Tr),[ln,Zr]=(0,Ue.useState)(At),[Sr,Gr]=(0,Ue.useState)(""),[Ir,fn]=(0,Ue.useState)(0),[_n,yn]=(0,Ue.useState)(cr),[Mn,On]=(0,Ue.useState)(!1),[kn,wn]=(0,Ue.useState)(0),[Rn,mr]=(0,Ue.useState)(0),Rr=(0,Ue.useRef)(),Qr=(0,Ue.useRef)(),Yr=(0,Ue.useRef)(),Jr=(0,Ue.useRef)(),zr=(0,Ue.useRef)(),Or=(0,Ue.useRef)(),un=(0,Et.useDispatch)();(0,Ue.useEffect)(()=>{const _r=window.scrollY||window.pageYOffset;kr(or),Rt==null||Rt.setValue(or),window.scrollTo(0,_r)},[or]),(0,Ue.useEffect)(()=>{Kt==null||Kt(ln)},[ln]),(0,Ue.useEffect)(()=>{if(Rr.current){let _r=function(Fr,Wr){var nn;if(Qt){Wr.preventDefault();return}const Tn=Wr.clipboardData;if(Tn){const vn=Tn.types.toString(),jn=Tn.items;if(vn==="Files"||Tn.types.indexOf("Files")>-1){if(Wr.preventDefault(),Cr=="stex")return;try{let An=jn[1];((nn=jn[0])==null?void 0:nn.kind)==="file"&&(An=jn[0]);const In=An.getAsFile(),Hn=In.name.split(".").pop();(0,Je.I)(In,Fn=>{var Wn,Vn,Ti;Fn.id?((Wn=In==null?void 0:In.type)==null?void 0:Wn.indexOf("image"))>-1?vr.replaceSelection(`<img width="100%" src="/api/attachments/${Fn.id}?type=${Fn.content_type})" alt="" />`):((Vn=In==null?void 0:In.type)==null?void 0:Vn.indexOf("video"))>-1?vr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fn.id}"></video>`):((Ti=In==null?void 0:In.type)==null?void 0:Ti.indexOf("pdf"))>-1?vr.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=${In.type}&disposition=inline" target="_blank">${In.name}</a>`):Jt.includes(Hn)?vr.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=office&disposition=inline" target="_blank">${In.name}</a>`):vr.replaceSelection(`[${In.name}](/api/attachments/${Fn.id}?type=${Fn.content_type})`):(Fn==null?void 0:Fn.status)===401&&(document.location.href="/user/login")})}catch(An){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const vr=we().fromTextArea(Rr.current,{mode:Cr,lineNumbers:!Ht,lineWrapping:!0,value:Pt,autoCloseTags:!0,autoCloseBrackets:!0});return vr.on("keyup",function(Fr,Wr){Wr.keyCode===8&&(Fr.getValue()==""?vr.setOption("placeholder",jr):vr.setOption("placeholder",null))}),vr.on("keydown",function(Fr,Wr){if(Wr.keyCode===8){var nn=Bn(Fr);nn&&Wr.preventDefault()}}),Er&&vr.focus(),vr.on("paste",_r),tr&&vr.on("beforeChange",function(Fr,Wr){(Wr.origin==="paste"||Wr.origin==="+input")&&Wr.cancel()}),lr(vr),()=>{vr.off("paste",_r)}}},[]);const xn=(0,Ue.useCallback)(()=>{if(Qr.current)try{}catch(_r){console.log(_r,"---- to set md editor body height")}},[_n,Qr,ln]);(0,Ue.useEffect)(()=>{function _r(){let vr=new ge.Z(Fr=>{for(let Wr of Fr)(Wr.target.offsetHeight>0||Wr.target.offsetWidth>0)&&(xn(),Rt.setSize("100%","100%"),Rt.refresh())});return vr.observe(Rr.current.parentElement),vr}if(Rt){const vr=_r();return()=>{var Fr,Wr;(Fr=Rr.current)!=null&&Fr.parentElement&&vr.unobserve((Wr=Rr.current)==null?void 0:Wr.parentElement)}}},[Rt,xn]),(0,Ue.useEffect)(()=>{if(Rt){let _r=[];for(const[vr,Fr]of Object.entries(zt)){let Wr={[vr]:()=>{en(Fr)}};_r.push(Wr),Rt.addKeyMap(Wr)}return()=>{for(let vr of _r)Rt.removeKeyMap(vr)}}},[Rt]),(0,Ue.useEffect)(()=>{At!==ln&&Zr(At)},[At]),(0,Ut.Z)(()=>{if(!Mt&&Ir>0){let _r=new Date().getTime(),vr=window.sessionStorage.getItem(dr);_r>=Ir+pr&&(!vr||vr!==ur)&&(window.sessionStorage.setItem(dr,ur),On(!0))}},pr),(0,Ue.useEffect)(()=>{$r(Tr)},[Rt,Tr]),(0,Ue.useEffect)(()=>{Rt&&Er&&Rt.focus()},[Rt,Er]),(0,Ue.useEffect)(()=>{if(Nr&&Rt){let _r=function(Fr){let Wr=Fr.target;if(Jr.current){let nn=Wr.scrollTop/Wr.scrollHeight;Jr.current.scrollTop=Jr.current.scrollHeight*nn}};const vr=Rt.getScrollerElement();return vr.addEventListener("scroll",_r),()=>{vr.removeEventListener("scroll",_r)}}},[Rt,Nr]),(0,Ue.useEffect)(()=>{if(Rt&&nr){let _r=function(vr,Fr){nr(vr,Fr)};return Rt.on("beforeChange",_r),()=>{Rt.off("beforeChange",_r)}}},[Rt,nr]),(0,Ue.useEffect)(()=>{if(Rt&&Tt){let _r=function(){Tt(Rt.getValue())};return Rt.on("blur",_r),()=>{Rt.off("blur",_r)}}},[Rt,Tt]);function Bn(_r,vr){var Fr=_r.getDoc(),Wr=Fr.getCursor(),nn=Fr.getLine(Wr.line),Tn=nn.charAt(Wr.ch-1),vn=nn.lastIndexOf("@\u2581@",Wr.ch),jn=nn.lastIndexOf("@\u2581\u2581@",Wr.ch),An=vn>jn?vn:jn,In=vn>jn?3:4;if(Vt.indexOf(Tn)===-1)return null;if(console.log("change1:",vr,_r,nn,Wr,An,vn,jn,Tn),An>=0&&Wr.ch-An<5){var Hn=An+In;return Fr.replaceRange("",{line:Wr.line,ch:An},{line:Wr.line,ch:Hn}),{line:Wr.line,ch:Hn}}return null}(0,Ue.useEffect)(()=>{if(Rt){let _r=function(vr,Fr){const Wr=vr.getValue();kr(Wr),fn(new Date().getTime()),vr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Wt&&(gr?Wt(Wr,Ar(Wr)):Wt(Wr))};return Rt.on("change",_r),()=>{Rt.off("change",_r)}}},[Rt,Wt]),(0,Ue.useEffect)(()=>{if(Rt)if(Pt==null)Rt.setValue(""),kr("");else{const _r=window.scrollY||window.pageYOffset;Pt!==Rt.getValue()&&(Rt.setValue(Pt),kr(Pt),Rt.setCursor(tr?1:Rt.lineCount(),0),window.scrollTo(0,_r))}},[Rt,Pt]);const en=(0,Ue.useCallback)(_r=>{const vr=Rt.getCursor(),Fr=Rt.getSelection();let Wr=Fr.split(`
`);switch(_r){case"bold":return Rt.replaceSelection("**"+Fr+"**"),Fr===""&&Rt.setCursor(vr.line,vr.ch+2),Rt.focus();case"italic":return Rt.replaceSelection("*"+Fr+"*"),Fr===""&&Rt.setCursor(vr.line,vr.ch+1),Rt.focus();case"code":return Rt.replaceSelection("`"+Fr+"`"),Fr===""&&Rt.setCursor(vr.line,vr.ch+1),Rt.focus();case"inline-latex":return(0,Bt.Ye)(un)?void 0:(Gr("inline-latex"),Rt.focus());case"latex":return Rt.replaceSelection("```latex\n"+Fr+"\n```"),Rt.setCursor(vr.line+1,Fr.length+1),Rt.focus();case"line-break":return Rt.replaceSelection(`<br/>
`),Rt.focus();case"list-ul":return Fr===""?Rt.replaceSelection("- "+Fr):Rt.replaceSelection(Wr.map(nn=>nn===""?"":`- ${nn}`).join(`
`)),Rt.focus();case"list-ol":return Fr===""?Rt.replaceSelection("1. "+Fr):Rt.replaceSelection(Wr.map((nn,Tn)=>nn===""?"":`${Tn+1}. ${nn}`).join(`
`)),Rt.focus();case"add-null-ch":Gt==null||Gt();return;case"add-signal":return Fr===""&&Rt.setCursor(vr.line,vr.ch),Rt.replaceSelection(ar),Rt.focus();case"add-multiple":return Fr===""&&Rt.setCursor(vr.line,vr.ch),Rt.replaceSelection(Vt),Rt.focus();case"inster-template-1":return Fr===""&&Rt.setCursor(vr.line,vr.ch),Rt.replaceSelection(fr),Rt.focus();case"eraser":return Rt.setValue(""),Rt.focus();case"trigger-watch":return $r(!Nr),Rt.focus();case"trigger-full-screen":return Zr(!ln),Rt.focus();case yt:Gr(yt);return;case xt:Gr(xt);return;case wt:Gr(wt);return;case gt:Gr(gt);return;case"maths-latex":if((0,Bt.Ye)(un))return;Gr("maths-latex");return;case vt:zr.current="",sessionStorage.removeItem("file_id"),Gr(vt);return;case St:Gr(St);return;default:throw new Error}},[Rt,Nr,ln]),mn=(0,Ue.useCallback)((_r,vr)=>{var Fr,Wr,nn,Tn,vn,jn;_r!=null&&_r.disabledClose||Gr("");const{src:An,alt:In,id:Hn}=_r||{};switch(Sr){case yt:const{title:Bi,link:wi}=_r;return Rt.replaceSelection(`[${Bi}](${wi})`),Rt.focus();case xt:const{language:mi,content:Yi}=_r;return Rt.replaceSelection(["```"+mi,Yi,"```"].join(`
`)),Rt.focus();case"maths-latex":for(var Fn=atob(_r),Wn=new Uint8Array(Fn.length),Vn=0;Vn<Fn.length;Vn++)Wn[Vn]=Fn.charCodeAt(Vn);var Ti=new Blob([Wn],{type:"image/png"});(0,Je.I)(Ti,vi=>{vi.id?Rt.replaceSelection(`![,](/api/attachments/${vi.id}?type=${vi.content_type})`):(vi==null?void 0:vi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Bt.Ye)(un))return;Rt.replaceSelection("`$$"+_r+"$$`");break;case ht:if(!Hn)return;Rt.getValue().indexOf(An)===-1?Rt.replaceSelection(`<center><img id="${Hn}" width="80%" src="${An}" class="draw-flowchart" alt="${In||""}" /></center>`):document.getElementById(Hn).src=mt.Z.API_SERVER+An+"?t="+Date.now();break;case wt:case gt:const Pn=vr,ta=(nn=(Wr=(Fr=Pn==null?void 0:Pn.name)==null?void 0:Fr.split("."))==null?void 0:Wr.pop)==null?void 0:nn.call(Wr);return((Tn=Pn==null?void 0:Pn.type)==null?void 0:Tn.indexOf("image"))>-1||!(Pn!=null&&Pn.type)?Pn!=null&&Pn.align||Pn!=null&&Pn.width?Rt.replaceSelection(`<p style="text-align:${Pn.align||"initial"}"><img width="${Pn.width?Pn.width+"%":"initial"}" src="${An}" alt="${In||""}" /></p>`):Rt.replaceSelection(`<img width="100%" src="${An}" alt="${In||""}" />`):((vn=Pn==null?void 0:Pn.type)==null?void 0:vn.indexOf("video"))>-1?Rt.replaceSelection(`<video width="100%" controls src="${An}"></video>`):((jn=Pn==null?void 0:Pn.type)==null?void 0:jn.indexOf("pdf"))>-1?Rt.replaceSelection(`<a href="${An}?type=${Pn.type}&disposition=inline" target="_blank">${Pn.name}</a>`):Jt.includes(ta)?Rt.replaceSelection(`<a href="${An}?type=office&disposition=inline" target="_blank">${Pn.name}</a>`):Rt.replaceSelection(`[${Pn.name}](${An})`),Rt.focus();case St:const{row:ri,col:Mi,align:oa}=_r;let Ji=`
`;for(let vi=0;vi<ri;vi++){let Ri=[],Gn=[];for(let Fi=0;Fi<Mi;Fi++)vi===1&&Gn.push(jt[oa]),Ri.push(" ");vi===1&&(Ji+=`| ${Gn.join(" | ")} |
`),Ji+=`| ${Ri.join(Mi===1?"":" | ")} |
`}return Rt.replaceSelection(Ji+`
`),Rt.focus();default:throw new Error}},[Rt,Sr]),bn=(0,Ue.useMemo)(()=>{switch(Sr){case yt:return Ue.createElement(ot,{callback:mn,onCancel:hn});case xt:return Ue.createElement(at.Z,{callback:mn,onCancel:hn});case wt:return Ue.createElement(Je.Z,{callback:mn,onCancel:hn});case vt:return Ue.createElement(ft,{editImgId:zr.current,callback:mn,onCancel:hn});case St:return Ue.createElement(it,{callback:mn,onCancel:hn});case"maths-latex":return Ue.createElement(et,{showSaveButton:!0,callback:mn});case"inline-latex":return Ue.createElement(Ne.Z,{showSaveButton:!0,callback:mn});default:return null}},[Sr]);function hn(){Gr("")}(0,Ue.useEffect)(()=>{if(Yr.current){let _r=function(vn){nn=!0,Tn=vn.pageY},vr=function(){nn=!1},Fr=function(vn){if(nn){let jn=vn.pageY-Tn;jn<0&&(jn=0),jn>300&&(jn=300);let An=cr+jn+"px";yn(An)}},Wr=Yr.current,nn=!1,Tn=0;return Wr.addEventListener("mousedown",_r),document.addEventListener("mousemove",Fr),document.addEventListener("mouseup",vr),()=>{Wr.removeEventListener("mousedown",_r),document.removeEventListener("mousemove",Fr),document.removeEventListener("mouseup",vr)}}},[Rt,Yr]),(0,Ue.useEffect)(()=>{yn(cr)},[cr]);const qr=sr($t),Sn=sr(_n),on={width:qr,height:Sn},hr=(0,Ue.useMemo)(()=>{if(Ir){let _r=new Date(Ir),vr=_r.getHours(),Fr=_r.getMinutes(),Wr=_r.getSeconds();return vr=vr<10?"0"+vr:vr,Fr=Fr<10?"0"+Fr:Fr,Wr=Wr<10?"0"+Wr:Wr,`${vr}:${Fr}:${Wr}`}return 0},[Ir]),Ar=_r=>{const vr=[];if(gr){let Fr=-1;_r=_r.replace(/(@▁▁@|@▁@)/g,function(Wr,nn,Tn){vr.push({multiLine:Wr!==ar})})}return vr};function Kr(){window.sessionStorage.removeItem(dr),On(!1),fn(0)}function Br(){On(!1),fn(0),Rt.setValue(window.sessionStorage.getItem(dr))}(0,Ue.useEffect)(()=>{Zt[Sr]&&Sr!==gt&&Sr!==vt&&setTimeout(()=>{const _r=document.getElementsByClassName("markdown-popup-form")[0],vr=window.innerWidth/2-_r.offsetWidth/2,Fr=window.innerHeight/2-_r.offsetHeight/2;wn(vr),mr(Fr)},0)},[Sr]);const rn=_r=>{_r.preventDefault();const vr=_r.clientX-kn,Fr=_r.clientY-Rn;document.body.onmousemove=Wr=>{let nn=Wr.clientX-vr,Tn=Wr.clientY-Fr;const vn=document.getElementsByClassName("markdown-popup-form")[0],jn=window.innerWidth-vn.offsetWidth,An=window.innerHeight-vn.offsetHeight;nn=Math.max(0,Math.min(nn,jn)),Tn=Math.max(0,Math.min(Tn,An)),Cn(Wr.clientX,Wr.clientY,vr,Fr)&&(wn(nn),mr(Tn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Cn=(_r,vr,Fr,Wr)=>{const nn=document.body.clientHeight,Tn=document.body.clientWidth;return _r<20&&Fr>_r||_r>Tn-20&&Fr<_r||vr<20&&Wr>vr||vr>nn-20&&Wr<vr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Ue.createElement(Ue.Fragment,null,Ue.createElement("div",{className:"markdown-editor-wrapper",ref:Qr},Ue.createElement("div",{className:`markdown-editor-container ${Dt} ${Nr?"on-preview":""} ${Ht?"mini":""} ${ln?"full-screen":""}`,style:on},Ue.createElement(Ae,{insertTemp:Mr,watch:Nr,fullScreen:ln,showNullButton:rr,showNullProgramButton:gr,onActionCallback:en,hidetoolBar:Lr,extraUse:wr}),Ue.createElement("div",{className:"markdown-editor-body"},Ue.createElement("div",{className:"codemirror-container"},Ue.createElement("textarea",{ref:Rr,placeholder:jr})),Nr?Ue.createElement("div",{ref:Jr,className:"preview-container"},Cr==="stex"&&Ue.createElement(re,{value:ur}),Cr!=="stex"&&Ue.createElement(x.Z,{edit:!0,disabledFill:yr,showProgramFill:gr,value:ur,openEditor:_r=>{var vr;zr.current=_r,(vr=Or.current)==null||vr.setHeight("100vh"),setTimeout(()=>{Gr("add-flowchart")},150)}})):null))),er?Ue.createElement("a",{ref:Yr,className:"editor-resize"}):null,Sr===gt&&Ue.createElement(ut,{callback:mn,onCancel:hn}),Sr===vt&&Ue.createElement(ft,{ref:Or,editImgId:zr.current,callback:mn,onCancel:hn}),Ue.createElement(ve.Z,null,Zt[Sr]&&Sr!==gt&&Sr!==vt?Ue.createElement(Qe.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:kn,top:Rn},title:Ue.createElement("div",{style:{cursor:"move"},onMouseDown:rn},Zt[Sr]),open:!0,onCancel:hn,footer:null,destroyOnClose:!0,width:Sr===vt?"1200px":null,height:Sr===vt?"80vh":null,className:"markdown-popup-form"},bn):null))}},82441:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return ke},I:function(){return Ae}});var Ue=Ge(28284),Et=Ge(6767),y=Ge(37568),we=Ge(44104),ge=Ge(71051),ee=Ge(47889),E=Ge(7939),ie=Ge(52882),le=Ge(59301),z=Ge(59301),se=Object.defineProperty,x=Object.defineProperties,re=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(ve,be,Ee)=>be in ve?se(ve,be,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ve[be]=Ee,de=(ve,be)=>{for(var Ee in be||(be={}))ae.call(be,Ee)&&fe(ve,Ee,be[Ee]);if(te)for(var Ee of te(be))ue.call(be,Ee)&&fe(ve,Ee,be[Ee]);return ve},he=(ve,be)=>x(ve,re(be));const{useForm:ce}=Ue.default,pe={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var ke=({callback:ve,onCancel:be})=>{const[Ee]=ce();let Oe=(0,le.useRef)();function Me(Ze){Oe.current.width=Ee.getFieldValue("width"),Oe.current.align=Ee.getFieldValue("align"),ve(Ze,Oe.current)}function Se(Ze,Xe){if(Ze.status===-1){Et.ZP.error(Ze.message);return}Ee.setFieldsValue({src:`/api/attachments/${Ze.id}`,type:Xe.type})}function je(Ze){let Xe=Ze.target.files[0];Oe.current=Xe,Ae(Xe,Se)}return z.createElement(Ue.default,he(de({form:Ee},Ce),{className:"upload-image-panel",onFinish:Me,style:{width:470,overflow:"hidden"}}),z.createElement(Ue.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},z.createElement("div",{className:"flex-container"},z.createElement(Ue.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},z.createElement(y.default,{style:pe})),z.createElement(De,{onFileChange:je}))),z.createElement(Ue.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},z.createElement(y.default,{style:{width:264}})),z.createElement(Ue.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},z.createElement(we.Z,null,z.createElement(Ue.default.Item,{name:"width",style:{margin:0}},z.createElement(ge.Z,{style:{width:264}})),z.createElement("span",{className:"ml8"},"%"))),z.createElement(Ue.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},z.createElement(ee.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"}]})),z.createElement("aside",null,z.createElement(Ue.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},z.createElement(E.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(E.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function De({onFileChange:ve}){return z.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",z.createElement("input",{type:"file",onChange:ve}))}function Ae(ve,be){if(!ve)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ee=new FormData;Ee.append("editormd-image-file",ve),Ee.append("file_param_name","editormd-image-file"),Ee.append("byxhr","true");var Oe=new window.XMLHttpRequest;Oe.withCredentials=!0,Oe.addEventListener("load",function(Me){be(JSON.parse(Me.target.responseText),ve)},!1),Oe.addEventListener("error",function(Me){console.error(Me)},!1),Oe.open("POST",`${ie.KI}/api/attachments.json`),Oe.send(Ee)}},35990:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return y}});var Ue=Ge(59301),Et=Ge(4676);class y extends Ue.Component{constructor(ge){super(ge);const ee=window.document;this.node=ee.createElement("div"),ee.body.appendChild(this.node)}render(){const{children:ge}=this.props;return(0,Et.createPortal)(ge,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58478:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{SV:function(){return ut},ZP:function(){return tt}});var Ue=Ge(59301),Et=Ge(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"]},we={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},ge={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(`
`)}]},ee={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(`
`)}]},E={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 ie=Ge(53184),le=Ge.n(ie),z=(st,ze,Be)=>new Promise((Ke,Ie)=>{var Ye=nt=>{try{mt(Be.next(nt))}catch(_e){Ie(_e)}},ft=nt=>{try{mt(Be.throw(nt))}catch(_e){Ie(_e)}},mt=nt=>nt.done?Ke(nt.value):Promise.resolve(nt.value).then(Ye,ft);mt((Be=Be.apply(st,ze)).next())});const se={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,ze,Be,Ke)=>{const Ie=ze.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Be.lineNumber,endColumn:Be.column});return Array.from(new Set(Ie.match(/\b\w{2,}\b/g)||[])).map(ft=>({label:ft,kind:st.languages.CompletionItemKind.Text,insertText:ft,range:Ke}))},re=(st,ze,Be,Ke)=>{st.languages.registerCompletionItemProvider(ze,{provideCompletionItems(Ie,Ye){const ft=Ie.getWordUntilPosition(Ye),mt={startLineNumber:Ye.lineNumber,endLineNumber:Ye.lineNumber,startColumn:ft.startColumn,endColumn:ft.endColumn},nt=Ie.getLineContent(Ye.lineNumber).substring(ft.startColumn-2,ft.endColumn);return{suggestions:[...x(st,Ie,Ye,mt),...Be.map(Pe=>({label:Pe,kind:st.languages.CompletionItemKind.Keyword,documentation:Pe,insertText:Pe,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt})),...Ke.map(Pe=>({label:Pe.label,kind:st.languages.CompletionItemKind.Snippet,documentation:Pe.content,insertText:nt.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt}))]}}})};var te=st=>{se.languages.forEach(ze=>{st.languages.registerDocumentFormattingEditProvider(ze,{provideDocumentFormattingEdits(Be){return z(this,null,function*(){const Ke=le()(Be.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:Be.getFullModelRange(),text:Ke}]})}})}),re(st,"java",we.keywords,we.quickKey),re(st,"cpp",ge.keywords,ge.quickKey),re(st,"c",y.keywords,[]),re(st,"python",ee.keywords,ee.quickKey),re(st,"scala",E.keywords,E.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,fe=(st,ze,Be)=>ze in st?ue(st,ze,{enumerable:!0,configurable:!0,writable:!0,value:Be}):st[ze]=Be,de=(st,ze,Be)=>fe(st,typeof ze!="symbol"?ze+"":ze,Be);const he=class Ll{constructor(ze,Be,Ke){this.placeholder=ze,this.editor=Be,this.monaco=Ke,Be.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ll.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)}};de(he,"ID","editor.widget.placeholderHint");var pe=he,Ce=Ge(96236),ke=Ge(6767),De=Ge(25399),Ae=Ge(89392),ve=Ge(94276),be=Ge(56102),Ee=Object.defineProperty,Oe=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Xe=(st,ze,Be)=>ze in st?Ee(st,ze,{enumerable:!0,configurable:!0,writable:!0,value:Be}):st[ze]=Be,$e=(st,ze)=>{for(var Be in ze||(ze={}))je.call(ze,Be)&&Xe(st,Be,ze[Be]);if(Se)for(var Be of Se(ze))Ze.call(ze,Be)&&Xe(st,Be,ze[Be]);return st},lt=(st,ze)=>Oe(st,Me(ze)),Re=(st,ze)=>{var Be={};for(var Ke in st)je.call(st,Ke)&&ze.indexOf(Ke)<0&&(Be[Ke]=st[Ke]);if(st!=null&&Se)for(var Ke of Se(st))ze.indexOf(Ke)<0&&Ze.call(st,Ke)&&(Be[Ke]=st[Ke]);return Be},We=(st,ze,Be)=>new Promise((Ke,Ie)=>{var Ye=nt=>{try{mt(Be.next(nt))}catch(_e){Ie(_e)}},ft=nt=>{try{mt(Be.throw(nt))}catch(_e){Ie(_e)}},mt=nt=>nt.done?Ke(nt.value):Promise.resolve(nt.value).then(Ye,ft);mt((Be=Be.apply(st,ze)).next())});function rt(st){return/^\d+$/.test(st)?`${st}px`:st}function ot(){}let at=!1;const Je={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Qe(st=[]){let ze=st;if(Array.isArray(st)){for(let Be=0;Be<st.length;Be++){let Ke=Je[st[Be]];if(Ke)return Ke}return ze[0]}return Je[ze]||ze}let Ve=null;const ct=()=>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 tt=st=>{var ze=st,{width:Be="100%",height:Ke="100%",value:Ie,language:Ye="javascript",style:ft={},options:mt={},overrideServices:nt={},theme:_e="vs-dark",onEditBlur:Pe,isCopy:He=!1,onSave:it,autoHeight:Te=!1,forbidCopy:xe=!1,onChange:ye=ot,editorDidMount:Le=ot,onFocus:et=ot,onBreakPoint:Ne=ot,breakPointValue:yt=[],filename:wt="educoder.txt",errorLine:vt,errorContent:gt="",highlightLine:ht,openBreakPoint:xt=!1,placeholder:St="",showMiniMap:Ct=!0}=ze,jt=Re(ze,["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 Ut=(0,Ue.useRef)(),Bt=(0,Ue.useRef)({}),qt=(0,Ue.useRef)(),xr=(0,Ue.useRef)(),pr=(0,Ue.useRef)([]),Lt=(0,Ue.useRef)(!1),Vt=(0,Ue.useRef)(),ar=(0,Ue.useRef)(),fr=(0,Ue.useRef)(!1),[Jt,sr]=(0,Ue.useState)(!1);function Dr(){let er;return Ut.current&&(er=new Et.Z(Mt=>{for(let rr of Mt)(rr.target.offsetHeight>0||rr.target.offsetWidth>0)&&Bt.current.instance.layout()}),er.observe(Ut.current)),er}function Xt(){ke.ZP.warning({content:decodeURIComponent(ae),key:"monaco-editor-tip"})}const zt=()=>{let er=Bt.current.instance;if(Ie!=null&&er&&Jt){const Mt=er.getModel();Mt&&Ie!==Mt.getValue()&&(at=!0,Mt.setValue(Ie),er.layout(),at=!1)}};(0,Ue.useEffect)(()=>{const er=ve.Z.subscribe("formatDocument",Mt=>{var rr;let gr=Bt.current.instance;(rr=gr==null?void 0:gr.getAction)==null||rr.call(gr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Mt=>{ye(Mt)},er},[]),(0,Ue.useEffect)(()=>{var er;let Mt=Bt.current.instance;xr.current&&clearTimeout(xr.current),xr.current=setTimeout(()=>{zt()},500),Ie&&(Ie!=null&&Ie.length)&&((er=Mt==null?void 0:Mt.updateOptions)==null||er.call(Mt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Ie.split(/\r\n|\r|\n/g).length))+3,5)}))},[Ie,Jt,Bt.current]),(0,Ue.useEffect)(()=>{if(vt&&Bt.current&&Bt.current.instance){let Mt=Bt.current.instance;Mt.changeViewZones(function(rr){var gr=document.createElement("div");gr.style.padding="10px 20px",gr.style.width="calc(100% - 20px)",gr.className="my-error-line-wrp",gr.innerHTML=gt,rr.addZone({afterLineNumber:vt||11,heightInLines:3,domNode:gr})});var er={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(er),Mt.revealPositionInCenter({lineNumber:20,column:1})}},[vt,Bt.current,Jt]);const Zt=(er="",Mt)=>{if(!er||er.trim()==="")return!0;const gr=Bt.current.instance.getModel().getLineTokens(Mt);let Lr=!1;for(let At=0;At<2;At++)gr.getStandardTokenType(At)===1&&(Lr=!0);return Lr};(0,Ue.useEffect)(()=>{var er;const Mt=(er=Bt.current)==null?void 0:er.instance;if(Mt&&Jt&&xe){const rr=Mt.onDidBlurEditorWidget(()=>{fr.current=!1}),gr=Mt.onDidFocusEditorText(()=>{fr.current=!0});return()=>{rr.dispose(),gr.dispose()}}},[Bt.current,Jt,xe]),(0,Ue.useEffect)(()=>{var er;if((er=Bt.current)!=null&&er.instance&&Jt&&xt){let Mt=Bt.current.instance,rr=Mt.getModel();if(!rr)return;(()=>{var or;let wr=[],Gt=[];const Rt=rr.getAllDecorations();for(let ur of Rt)ur.options.className==="highlighted-line"&&(wr.push((or=ur==null?void 0:ur.range)==null?void 0:or.startLineNumber),Gt.push(ur==null?void 0:ur.id));if(ht===wr[0])return;rr.deltaDecorations(Gt,[]);const lr=rr.getLineCount();ht&&ht<=lr&&(Mt.deltaDecorations([],[{range:new Ve.Range(ht,1,ht,rr.getLineMaxColumn(ht)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Mt.revealLineInCenter(ht))})();const Lr=(or=!1)=>{var wr;let Gt=[],Rt=[];const lr=rr.getAllDecorations();for(let ur of lr)ur.options.linesDecorationsClassName==="breakpoints-select"&&(Gt.push((wr=ur==null?void 0:ur.range)==null?void 0:wr.startLineNumber),Rt.push(ur==null?void 0:ur.id));if(or)return{lines:Gt,ids:Rt};Ne(Gt)},At=or=>We(void 0,null,function*(){let wr={range:new Ve.Range(or,1,or,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield rr.deltaDecorations([],[wr]),Lr()}),Tt=or=>We(void 0,null,function*(){let wr=[];const Gt=Mt.getLineDecorations(or);for(let Rt of Gt)Rt.options.linesDecorationsClassName==="breakpoints-select"&&wr.push(Rt.id);yield rr.deltaDecorations(wr,[]),Lr()}),nr=or=>{let wr=Mt.getLineDecorations(or);for(let Gt of wr)if(Gt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ae.isEqual)(yt,Lr(!0).lines)){rr.deltaDecorations(Lr(!0).ids,[]);const or=yt.map(wr=>({range:new Ve.Range(wr,1,wr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));rr.deltaDecorations([],or)}const Kt=Mt.onDidChangeModelContent(or=>{let wr=Mt.getPosition();if(wr){let Gt=wr.lineNumber;clearTimeout(ar.current),ar.current=setTimeout(()=>{Zt(rr.getLineContent(Gt),Gt)?Tt(Gt):nr(Gt)?(Tt(Gt),At(Gt)):Lr()},100)}}),Dt=Mt.onMouseDown(or=>{var wr,Gt,Rt;if(or.target.detail&&((Rt=(Gt=(wr=or.target)==null?void 0:wr.element)==null?void 0:Gt.className)!=null&&Rt.includes("line-numbers"))){let lr=or.target.position.lineNumber;if(Zt(rr.getLineContent(lr),lr))return;nr(lr)?Tt(lr):At(lr)}}),Qt=or=>{let wr={range:new Ve.Range(or,1,or,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};pr.current=Mt.deltaDecorations(pr.current,[wr])},tr=()=>{pr.current=Mt.deltaDecorations(pr.current,[])},yr=Mt.onMouseMove(or=>{var wr,Gt,Rt;if(tr(),or.target.detail&&((Rt=(Gt=(wr=or.target)==null?void 0:wr.element)==null?void 0:Gt.className)!=null&&Rt.includes("line-numbers"))){let lr=or.target.position.lineNumber;if(Zt(rr.getLineContent(lr),lr))return;Qt(lr)}}),jr=Mt.onMouseLeave(()=>{tr()});return()=>{Kt.dispose(),Dt.dispose(),yr.dispose(),jr.dispose()}}},[Bt.current,Jt,yt,ht,xt,Ye]),(0,Ue.useEffect)(()=>{var er;(er=Bt.current)!=null&&er.instance&&xt&&Bt.current.instance.setPosition({lineNumber:0,column:0})},[ht]);function Yt(){let er=Bt.current.instance;if(er){const Mt=er.getSelection(),rr=Bt.current.pastePos||{},gr=new Ve.Range(rr.startLineNumber||Mt.endLineNumber,rr.startColumn||Mt.endColumn,rr.endLineNumber||Mt.endLineNumber,rr.endColumn||Mt.endColumn);setTimeout(()=>{er.executeEdits("",[{range:gr,text:""}])},300)}}function Pt(er){(window.navigator.platform.match("Mac")?er.metaKey:er.ctrlKey)&&er.keyCode==83&&(er.preventDefault(),it())}const Wt=()=>{if(Te&&Bt.current.instance){const er=Bt.current.instance.getContentHeight();Cr(er<Ke?Ke:er)}else Cr(Ke)};function $t(er){var Mt=document.createEvent("MouseEvents");Mt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),er.dispatchEvent(Mt)}const cr=er=>{if(!fr.current)return;const{keyCode:Mt,ctrlKey:rr,metaKey:gr,target:Lr,type:At}=er;return(At==="paste"||(Mt===67||Mt===86)&&(gr||rr))&&Lr.nodeName==="TEXTAREA"&&(Xt(),er.preventDefault()),!1};function Ht(er,Mt){var rr=window.URL||window.webkitURL||window,gr=new Blob([Mt]),Lr=document.createElementNS("http://www.w3.org/1999/xhtml","a");Lr.href=rr.createObjectURL(gr),Lr.download=er,$t(Lr)}(0,Ue.useEffect)(()=>{Wt()},[Wt]),(0,Ue.useEffect)(()=>{Ut.current&&!Jt&&Promise.all([Ge.e(8909),Ge.e(4474)]).then(Ge.bind(Ge,71448)).then(er=>{try{Ve=er,Bt.current.instance=Ve.editor.create(Ut.current,{value:Ie,language:Qe(Ye),theme:_e,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ct||!1}},nt);const Mt=Bt.current.instance;let Lr=[...Ce.BH._menuItems].find(Kt=>Kt[0]._debugName=="EditorContext")[1],At=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Tt=(Kt,Dt)=>{var Qt,tr;let yr=Kt._first;do Dt.includes((tr=(Qt=yr.element)==null?void 0:Qt.command)==null?void 0:tr.id)&&Kt._remove(yr);while(yr=yr.next)};if(Le(Mt,Ve),setTimeout(()=>{Wt(),Bt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ht(wt||"educoder.txt",Mt.getValue())}})},500),Bt.current.subscription=Mt.onDidChangeModelContent(Kt=>{Lt.current?clearTimeout(Vt.current):(Wt(),ye(Mt.getValue(),Kt)),Vt.current=setTimeout(()=>{Lt.current=!1},500)}),window.Monaco||te(Ve,Qe(Ye)),xe&&(Tt(Lr,At),Ut.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",cr),window.removeEventListener("paste",cr),window.addEventListener("keydown",cr),window.addEventListener("paste",cr)),window.Monaco=Ve,Pe&&Mt.onDidBlurEditorWidget(()=>{Pe(Mt.getValue())}),et&&Mt.onDidFocusEditorText(()=>{xe&&ct(),et(Mt.getValue())}),xe){ct();try{Mt.onDidPaste(Kt=>{const Dt=Mt.getSelection(),Qt=Bt.current.pastePos||{},tr=new Ve.Range(Qt.startLineNumber||Dt.endLineNumber,Qt.startColumn||Dt.endColumn,Qt.endLineNumber||Dt.endLineNumber,Qt.endColumn||Dt.endColumn);Mt.executeEdits("",[{range:Kt.range,text:""}])})}catch(Kt){}}let nr=Dr();return St&&typeof St=="string"&&new pe(St,Mt,Ve),sr(!0),()=>{const Kt=Bt.current.instance;Kt.dispose();const Dt=Kt.getModel();Dt&&Dt.dispose(),Bt.current.subscription&&Bt.current.subscription.dispose(),nr.unobserve(Ut.current)}}catch(Mt){}})},[]),(0,Ue.useEffect)(()=>{if(Bt.current.instance&&Jt)return document.addEventListener("keydown",Pt,!1),()=>{document.removeEventListener("keydown",Pt)}},[it,Jt]),(0,Ue.useEffect)(()=>{let er=Bt.current.instance;if(er&&Jt){let Mt=Qe(Ye);Ve.editor.setModelLanguage(er.getModel(),Mt)}},[Ye,Jt]),(0,Ue.useEffect)(()=>{Bt.current.instance&&Jt&&Ve.editor.setTheme(_e)},[_e,Jt]),(0,Ue.useEffect)(()=>{let er=Bt.current.instance;qt.current=mt,er&&Jt&&(er.updateOptions($e({},mt)),setTimeout(()=>{er.getModel().updateOptions($e({},mt))},200))},[JSON.stringify(mt),Jt]),(0,Ue.useEffect)(()=>{let er=Bt.current.instance;er&&Jt&&er.layout()},[Be,Ke,Jt]);const[Er,Tr]=(0,Ue.useState)(rt(Be)),[Mr,Cr]=(0,Ue.useState)(rt(Ke)),dr=lt($e({},ft),{width:Er,height:Mr,position:"relative"});return Ue.createElement("div",{className:"my-monaco-editor",ref:Ut,style:dr,onFocus:()=>{xe&&ct()}},He&&Ue.createElement(be.CopyToClipboard,{text:Ie,onCopy:()=>ke.ZP.success("\u590D\u5236\u6210\u529F")},Ue.createElement(De.Z,{title:"\u590D\u5236\u4EE3\u7801"},Ue.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Ue.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ut({width:st="100%",height:ze="100%",original:Be,modified:Ke,language:Ie,options:Ye={}}){const ft=(0,Ue.useRef)(),[mt,nt]=(0,Ue.useState)(null);function _e(Te){let xe;return ft.current&&(xe=new Et.Z(ye=>{for(let Le of ye)(Le.target.offsetHeight>0||Le.target.offsetWidth>0)&&Te.layout()}),xe.observe(ft.current)),xe}(0,Ue.useEffect)(()=>(ft.current&&Promise.all([Ge.e(8909),Ge.e(9404)]).then(Ge.bind(Ge,2550)).then(Te=>{Ve=Te;const xe=Ve.editor.createDiffEditor(ft.current,lt($e({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},Ye),{wordWrap:!0}));nt(xe);let ye=_e(xe);return()=>{xe.dispose();const Le=xe.getModel();Le&&Le.dispose(),ye.unobserve(ft.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Ue.useEffect)(()=>{mt&&mt.setModel({original:Ve.editor.createModel(Be,Ie),modified:Ve.editor.createModel(Ke,Ie)})},[Be,Ke,Ie,mt]);const Pe=rt(st),He=rt(ze),it={width:Pe,height:He};return Ue.createElement("div",{className:"my-diff-editor",ref:ft,style:it})}},74242:function(Nt,Ot,Ge){"use strict";var Ue=Ge(94583),Et=Ge(82326),y=Ge(71411),we=Ge(59301);const ge=Et.default.Option;Ot.Z=({isTheoretical:ee,onFontSizeChange:E,cmFontSize:ie,cmCodeMode:le,autoFormat:z,onCodeModeChange:se,onTabToSpace:x,onAutoFormat:re,formatDocument:te,className:ae="",tabToSpace:ue,children:fe,code_editor:de,challenge:he,shixun_environment_id:ce,shixun_environments:pe})=>{var Ce;const ke={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},De=(Ce=pe==null?void 0:pe.find(Ae=>Ae.shixun_environment_id===ce))==null?void 0:Ce.program_language;return console.log("----",De,pe,ce,de),we.createElement("div",{className:`tpi-code-setting ${ae}`},we.createElement("h3",null,"\u4EE3\u7801\u683C\u5F0F"),we.createElement("section",null,we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u663E\u793A\u6A21\u5F0F"),we.createElement(Et.default,{bordered:!1,size:"small",value:le,onChange:se},we.createElement(ge,{value:"vs"},"\u767D\u8272\u80CC\u666F"),we.createElement(ge,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!ee&&we.createElement(we.Fragment,null,we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),we.createElement(Et.default,{bordered:!1,size:"small",value:ie,onChange:E},we.createElement(ge,{value:12},"12px"),we.createElement(ge,{value:14},"14px"),we.createElement(ge,{value:16},"16px"),we.createElement(ge,{value:18},"18px"),we.createElement(ge,{value:20},"20px"),we.createElement(ge,{value:22},"22px"))),we.createElement("div",{className:"file-item"},we.createElement("b",null,"Tab\u8F6C\u6362"),we.createElement(y.Z,{checked:ue,onChange:x})),we.createElement("div",{className:"file-item",onClick:te},we.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!ee&&we.createElement(we.Fragment,null,we.createElement("h3",null,"\u5FEB\u6377\u952E"),we.createElement("section",null,we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u4FDD\u5B58\u4EE3\u7801"),we.createElement("span",null,"Ctrl + S")),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5524\u51FA\u5FEB\u6377\u952E\u5217\u8868"),we.createElement("span",null,"F1 / Alt + F1")),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5DE6\u53F3\u7F29\u8FDB"),we.createElement("span",null,"Ctrl + ]/[")),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u8DF3\u5230\u5339\u914D\u7684\u62EC\u53F7"),we.createElement("span",null,"Ctrl + Shift + \\")),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u8F6C\u5230\u884C\u9996"),we.createElement("span",null,"Home")),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u8F6C\u5230\u884C\u5C3E"),we.createElement("span",null,"End"))),fe),!ee&&we.createElement(we.Fragment,null,we.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),we.createElement("section",null,De&&we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),we.createElement("span",null,De)),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),we.createElement("span",null,ke[he==null?void 0:he.difficulty])),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),we.createElement("span",null,de==null?void 0:de.name)),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),we.createElement("span",null,de!=null&&de.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},87303:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return x}});var Ue={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",tagsDom:"tagsDom___COQg7"},Et=Ge(29787),y=Ge(25399),we=Ge(60242),ge=Ge(92310),ee=Ge.n(ge),E=Ge(31735),ie=Ge(59243),le=Ge(11968),z=Ge(59301),x=({className:re,dataSource:te=[],col:ae=4,right:ue,bottom:fe=23,precision:de=0,wrapWidth:he=1200,trackEventItems:ce,loading:pe,onRemove:Ce=()=>{},isCurrent:ke=!0,showProgress:De=!1,showAlias:Ae=!1})=>{const ve=Math.floor((he-(ae-1)*ue)/ae),be=[{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 z.createElement(Et.Z,{spinning:pe},z.createElement("div",{className:ee()(Ue.list,re)},!!(te!=null&&te.length)&&(te==null?void 0:te.map((Ee,Oe)=>{var Me,Se,je,Ze,Xe,$e,lt,Re,We,rt,ot,at,Je;const{name:Qe,id:Ve,identifier:ct,featured:tt,school_name:ut,image_url:st,excellent:ze,is_plan:Be}=Ee;return z.createElement("div",{key:Ve,className:ke&&De?Ue.wrapisCurrent:Ue.wrap,style:{width:ve,marginRight:(1+Oe)%ae===0?0:ue+de,marginBottom:fe}},z.createElement("a",{className:Ue.li,onClick:Ke=>{Ke.preventDefault(),Ke.stopPropagation(),ce&&(0,E.L9)([ce]),(0,E.xg)(`/paths/${ct}`)}},z.createElement("div",{className:Ue.img},z.createElement("img",{className:Ue.cover,src:`${st}`}),ke&&(0,le.bg)()&&(Ee==null?void 0:Ee.studying)&&z.createElement("div",{className:`${Ue.movebq} user-path-items`,onClick:Ke=>{Ke.stopPropagation(),Ce(Ee)}},z.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),z.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Me=Ee==null?void 0:Ee.subject_tags)==null?void 0:Me.map((Ke,Ie)=>{var Ye,ft;if(Ie===0){const nt=(Ye=be.find(_e=>_e.name==Ke))==null?void 0:Ye.swimg;return z.createElement("img",{className:Ue.sign,src:nt,style:{left:"-4px"}})}const mt=(ft=be.find(nt=>nt.name==Ke))==null?void 0:ft.ptimg;return z.createElement("img",{className:Ue.sign,src:mt,style:{left:`${48+52*(Ie-1)+2*Ie}px`}})}),z.createElement("div",{className:Ue.tagsDom},z.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Ee==null?void 0:Ee.excellent)&&z.createElement("div",{className:Ue.bq},"\u5F00\u653E\u8BFE\u7A0B"),((Se=Ee==null?void 0:Ee.custom_tags)==null?void 0:Se.length)>0&&z.createElement(y.Z,{title:(Xe=(Ze=Ee==null?void 0:Ee.custom_tags)==null?void 0:Ze[((je=Ee==null?void 0:Ee.custom_tags)==null?void 0:je.length)-1])==null?void 0:Xe.tag_name},z.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},z.createElement("span",{className:"multi-llipsis1e text-10px"},(Re=(lt=Ee==null?void 0:Ee.custom_tags)==null?void 0:lt[(($e=Ee==null?void 0:Ee.custom_tags)==null?void 0:$e.length)-1])==null?void 0:Re.tag_name)))))),z.createElement("div",{className:Ue.name},z.createElement(y.Z,{title:Ae&&(Ee!=null&&Ee.excellent_alias_name)?z.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Qe}`,z.createElement("br",null),z.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ee==null?void 0:Ee.excellent_alias_name}`)):Qe},z.createElement("span",{className:Ue.e},Ae&&(Ee==null?void 0:Ee.excellent_alias_name)||Qe))),ke&&De&&((We=Ee==null?void 0:Ee.progress)==null?void 0:We.all_score)!=0&&z.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},z.createElement(we.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((rt=Ee==null?void 0:Ee.progress)==null?void 0:rt.my_score)/((ot=Ee==null?void 0:Ee.progress)==null?void 0:ot.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(at=Ee==null?void 0:Ee.progress)==null?void 0:at.my_score,"/",(Je=Ee==null?void 0:Ee.progress)==null?void 0:Je.all_score),(!ke||!De)&&z.createElement(y.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${ut}`},z.createElement("div",{className:Ue.unit},z.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),ut)),(!ke||!De)&&z.createElement("div",{className:Ue.tags},z.createElement("div",null,z.createElement(y.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),z.createElement("span",null,Ee.stages_count))),z.createElement(y.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},z.createElement("span",null,z.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),z.createElement("span",null,Ee.members_count)))))))})),!te.length&&z.createElement(ie.Z,null)))}},18606:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{jL:function(){return ge},w9:function(){return rt},QD:function(){return vt},cQ:function(){return Xe.Z},op:function(){return ye},O5:function(){return zt},_b:function(){return jt},t7:function(){return de},Gi:function(){return ct},YG:function(){return Qe},qp:function(){return se},vr:function(){return xt},qE:function(){return Ne},Je:function(){return pe},wb:function(){return Ze},cq:function(){return Ke},tp:function(){return te}});var Ue=Ge(59301),Et={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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",ge=({dataSource:Zt=[],img:Yt,imgWidth:Pt=346,title:Wt,sunTitle:$t,bannerExtraContent:cr})=>Ue.createElement("div",{className:Et.banner},Ue.createElement("div",{className:Et.content},Ue.createElement("aside",null,Ue.createElement("p",null,Ue.createElement("b",null,Wt),Ue.createElement("span",null,$t)),Zt.length>0&&Ue.createElement("div",{className:Et.btns},Zt.map((Ht,Er)=>Ue.createElement("div",{key:Er,onClick:Ht.click},Ht.name,Ht.sign?Ue.createElement("img",{src:y,width:39}):null))),cr),Yt&&Ue.createElement("img",{style:{marginTop:33,marginRight:38},src:Yt,width:Pt}))),ee={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"},E=Ge(92310),ie=Ge.n(E),le=Ge(89392),se=({dataSource:Zt=[],value:Yt,onChange:Pt,onTitleChange:Wt,className:$t,title:cr,titleWidth:Ht=41,style:Er={},fontColor:Tr="#6A7283",showCount:Mr})=>{const[Cr,dr]=(0,Ue.useState)(1),[er,Mt]=(0,Ue.useState)(!1),rr=(0,Ue.useRef)(null),gr=(0,Ue.useRef)(null);return(0,Ue.useEffect)(()=>{var Lr;Zt.length!==0&&(((Lr=rr==null?void 0:rr.current)==null?void 0:Lr.clientHeight)>97?dr(1):dr(0)),Zt.length===0&&dr(0),Mt(!1)},[Zt]),Ue.createElement("div",{className:ie()(ee.row,$t,"fadeIn","animated"),style:Er},Ue.createElement("div",{onClick:(0,le.throttle)(()=>Wt==null?void 0:Wt(),2e3),style:{width:Ht,marginTop:er?12:4},className:`${ee.title} ${Wt?"current":""}`},cr),Ue.createElement("div",{className:er?`${ee.tagsWrap} ${ee.tagsBorderWrap}`:ee.tagsWrap},Ue.createElement("div",{className:ee.bar,ref:gr,style:Cr>0?{height:Cr===1?97:"auto",overflow:Cr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Ue.createElement("div",{className:ee.tag,ref:rr},Zt==null?void 0:Zt.map(Lr=>Ue.createElement("span",{onClick:()=>Pt(Lr.id),key:Lr.id,style:{color:Tr},className:Yt===Lr.id?ee.active:""},Ue.createElement("span",{title:Lr.name,className:ee.name},Lr.name),!!Mr&&Ue.createElement("span",{className:ee.num},Lr.count))))),!!Cr&&Ue.createElement(Ue.Fragment,null,Cr===1?Ue.createElement("div",{onClick:()=>{var Lr;dr(2),((Lr=rr==null?void 0:rr.current)==null?void 0:Lr.clientHeight)>245?Mt(!0):Mt(!1)},className:ee.action},"\u5C55\u5F00",Ue.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Ue.createElement("div",{onClick:()=>{gr.current.scrollTop=0,dr(1),Mt(!1)},className:ee.action},"\u6536\u8D77",Ue.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"},te=({dataSource:Zt=[],value:Yt,onChange:Pt,className:Wt,style:$t={}})=>Ue.createElement("div",{style:$t,className:ie()(x.tabs,Wt)},Zt.map(cr=>Ue.createElement("span",{onClick:()=>Pt(cr.id),className:Yt===cr.id?x.active:"",key:cr.id},cr.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=Ge(37568),de=({dataSource:Zt=[],value:Yt="",onChange:Pt,onInputChange:Wt=()=>{},className:$t,style:cr={},placeholder:Ht,allowClear:Er=!1})=>{var Tr;const[Mr,Cr]=(0,Ue.useState)(""),[dr,er]=(0,Ue.useState)("");(0,Ue.useEffect)(()=>{var gr;let Lr=Yt;(gr=JSON.stringify(Yt))!=null&&gr.includes("{")&&(Cr(Yt.id),Lr=Yt.value||"");try{er(decodeURIComponent(Lr||""))}catch(At){er(decodeURIComponent(Lr||""))}},[Yt]);const Mt=()=>{Pt(encodeURIComponent(dr),Mr||null)},rr=gr=>{gr!==Mr&&(Cr(gr),Pt(encodeURIComponent(dr),gr))};return Ue.createElement("div",{className:ie()(ae.input,$t),style:cr},!!Zt.length&&Ue.createElement("div",{className:ae.dropdown},Ue.createElement("div",{className:ae.text},(Tr=Zt.find(gr=>gr.id===Mr))==null?void 0:Tr.name,Ue.createElement("i",{className:"iconfont icon-zhankai4"}),Ue.createElement("b",{className:ae.b1}),Ue.createElement("b",{className:ae.b2})),Ue.createElement("div",{className:ae.menu},Zt.map((gr,Lr)=>Ue.createElement("div",{key:Lr,onClick:()=>rr(gr.id)},gr.name)))),Ue.createElement(ue.default,{onPressEnter:Mt,value:dr,onChange:gr=>{er(gr.target.value),Wt(encodeURIComponent(gr.target.value),Mr||null)},placeholder:Ht,variant:"borderless",allowClear:Er,onClear:()=>Pt("",Mr||null)}),Ue.createElement("i",{onClick:Mt,className:"iconfont icon-sousuo9 font14 current"}))},he={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"},pe=({value:Zt,onChange:Yt,className:Pt,total:Wt,pageSize:$t,style:cr={}})=>{const Ht=Zt<2,Er=Zt>=Math.ceil(Wt/$t);return Wt<=$t?Ue.createElement(Ue.Fragment,null):Ue.createElement("div",{className:ie()(he.quickPager,Pt),style:cr},Ue.createElement("div",{onClick:()=>{Ht||Yt(Zt-1,"prev")},className:Ht?he.disabled:""},"\u4E0A\u4E00\u9875"),Ue.createElement("div",{onClick:()=>{Er||Yt(Zt+1,"next")},className:Er?he.disabled:""},"\u4E0B\u4E00\u9875"))},Ce={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"},ke=Ge(29787),De=Ge(25399),Ae=Ge(58018),ve=Ge(26869),be=Ge(31735),Ee=Ge(96908),Oe=Ge(57177),Me=Ge(81378),Se=Ge(59243),Ze=({className:Zt,dataSource:Yt=[],col:Pt=4,right:Wt,bottom:$t=23,precision:cr=0,wrapWidth:Ht=1200,trackEventItems:Er,loading:Tr})=>{const Mr=Math.floor((Ht-(Pt-1)*Wt)/Pt);return Ue.createElement(ke.Z,{spinning:Tr},Ue.createElement("div",{className:ie()(Ce.list,Zt)},!!Yt.length&&Yt.map((Cr,dr)=>{const{name:er,id:Mt,identifier:rr,power:gr,cover_image_id:Lr,pic:At}=Cr;return Ue.createElement("div",{className:Ce.wrap,key:Mt,style:{width:Mr,marginRight:(1+dr)%Pt===0?0:Wt+cr,marginBottom:$t}},Ue.createElement("a",{target:"_blank",href:`/shixuns/${rr}/challenges`,className:Ce.li,onClick:Tt=>{Tt.preventDefault(),Er&&(0,be.L9)([Er]),gr&&(0,be.xg)(`/shixuns/${rr}/challenges`)}},Ue.createElement("div",{className:Ce.img},Ue.createElement("img",{className:Ce.cover,src:`${At}`}),Cr.is_jupyter&&Ue.createElement("img",{className:Ce.sign,src:Ee}),Cr.is_jupyter_lab&&Ue.createElement("img",{className:Ce.sign,src:Oe}),Cr.is_unity_3d&&Ue.createElement("img",{className:Ce.sign,src:Me})),Ue.createElement("div",{className:Ce.name},Ue.createElement(De.Z,{title:er||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Ue.createElement("span",{className:Ce.e},er||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Ue.createElement("div",{className:Ce.tags},Ue.createElement(De.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Ue.createElement("span",null,Cr.challenges_count))),!!Cr.myshixuns_count&&Ue.createElement(De.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Ue.createElement("span",null,Cr.myshixuns_count))),Ue.createElement(De.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Ue.createElement("span",null,Ue.createElement("span",null,Cr.level))),Ue.createElement("div",{className:Ce.rate},Ue.createElement(Ae.Z,{allowHalf:!0,disabled:!0,defaultValue:Cr.score_info}),Ue.createElement("span",null,"\xA0",Cr.score_info?`${Cr.score_info}\u5206`:"5\u5206")))),!gr&&Ue.createElement("div",{className:Ce.lockWrap},Ue.createElement("img",{src:`${ve.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ue.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Yt.length&&Ue.createElement(Se.Z,null)))},Xe=Ge(87303),$e={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"},lt="data:image/png;base64,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",Re=Ge(59301),rt=({className:Zt,dataSource:Yt=[],col:Pt=4,right:Wt,bottom:$t=23,precision:cr=0,wrapWidth:Ht=1200,trackEventItems:Er,loading:Tr,handleVery:Mr=()=>!0})=>{const Cr=Math.floor((Ht-(Pt-1)*Wt)/Pt);return Re.createElement(ke.Z,{spinning:Tr},Re.createElement("div",{className:ie()($e.list,Zt)},!!Yt.length&&Yt.map((dr,er)=>{const{subject_identifier:Mt,id:rr,identifier:gr,power:Lr}=dr,At=dr.is_public!=0&&dr.is_public;return Re.createElement("div",{className:$e.wrap,key:rr,style:{width:Cr,marginRight:(1+er)%Pt===0?0:Wt+cr,marginBottom:$t}},Re.createElement("a",{className:$e.li,onClick:Tt=>{Tt.preventDefault(),Mr(dr==null?void 0:dr.first_category_url)&&(Er&&(0,be.L9)([Er]),(0,be.xg)(dr.first_category_url))}},Re.createElement("div",{className:$e.top},Re.createElement(De.Z,{title:dr.name},Re.createElement("div",{className:$e.name},dr.name)),Re.createElement("img",{className:$e.img,src:ve.Z.IMG_SERVER+"/images/"+dr.avatar_url}),Re.createElement("div",{className:$e.text,title:dr.creator},dr.creator),Mt&&Re.createElement("div",{className:$e.btns},Re.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Re.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),At&&Re.createElement("div",{className:$e.sign},"\u516C\u5F00")),Re.createElement("div",{className:$e.bottom},dr.visits>0&&Re.createElement(De.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-liulanyan"}),Re.createElement("span",null,dr.visits))),dr.course_members_count>0&&Re.createElement(De.Z,{title:"\u6210\u5458",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-chengyuan"}),dr.course_members_count)),dr.tasks_count>0&&Re.createElement(De.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Re.createElement("span",null,Re.createElement("i",{className:"iconfont icon-zuoye"}),dr.tasks_count)),dr.is_end?Re.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Re.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!dr.is_accessible&&Re.createElement("div",{className:$e.lockWrap},Re.createElement("img",{src:`${ve.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")))}),!Yt.length&&Re.createElement(Se.Z,null)))},ot={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"},at=Ge(58106),Qe=({dataSource:Zt=[],value:Yt,onChange:Pt,className:Wt,style:$t={},tabBarExtraContent:cr})=>Ue.createElement("div",{className:ie()(ot.tabs,Wt),style:$t},Ue.createElement("div",{className:ot.tabsWrap},Zt.map((Ht,Er)=>!(Ht!=null&&Ht.hide)&&Ue.createElement("aside",{className:ot.tab,onClick:()=>{Pt(Ht.id),Ht.link&&at.history.push(Ht.link)},key:Er},Ue.createElement("div",{className:Yt===Ht.id?ot.active:""},Ht.name),(Ht==null?void 0:Ht.resetCount)==null&&(Ht==null?void 0:Ht.total)!==void 0&&Ue.createElement("span",null,"\uFF08",Ht==null?void 0:Ht.total,"\uFF09"),(Ht==null?void 0:Ht.resetCount)!==void 0&&(Ht==null?void 0:Ht.total)!==void 0&&Ue.createElement(De.Z,{title:(Ht==null?void 0:Ht.tip)!=null?Ht==null?void 0:Ht.tip:""},Ue.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Ue.createElement("span",{style:{color:"#000"}},Ht==null?void 0:Ht.resetCount),"/",Ue.createElement("span",null,Ht==null?void 0:Ht.total),"\uFF09"))))),Ue.createElement("div",{className:ot.tabBar},cr)),ct=({className:Zt,style:Yt={},children:Pt})=>Ue.createElement("div",{className:ie()(Zt),style:Yt},Pt),tt={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=Ge(75727),st=Ge(93041);const ze=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ke=({sortValue:Zt,dropValue:Yt,className:Pt,onSort:Wt,onDrop:$t,dataSource:cr=ze})=>{var Ht;return Ue.createElement("div",{className:ie()(tt.orderWrap,Pt)},Ue.createElement(ut.Z,{dropdownRender:()=>Ue.createElement(st.default,null,cr.map((Er,Tr)=>Ue.createElement(st.default.Item,{key:Tr,onClick:()=>$t(Er.id)},Er.name)))},Ue.createElement("span",{className:tt.orderTextWrap},(Ht=cr.find(Er=>Yt===Er.id))==null?void 0:Ht.name)),Ue.createElement("span",{className:tt.orderIconWrap},Ue.createElement("span",{className:tt.orderAsc},Ue.createElement("i",{className:Zt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer}`,onClick:()=>Wt(Zt==="asc"?"desc":"asc")})),Ue.createElement("span",{className:tt.orderDesc},Ue.createElement("i",{className:Zt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer}`,onClick:()=>Wt(Zt==="asc"?"desc":"asc")}))))},Ie={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"},Ye=Ge(7939),ft=Object.defineProperty,mt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable,Pe=(Zt,Yt,Pt)=>Yt in Zt?ft(Zt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):Zt[Yt]=Pt,He=(Zt,Yt)=>{for(var Pt in Yt||(Yt={}))nt.call(Yt,Pt)&&Pe(Zt,Pt,Yt[Pt]);if(mt)for(var Pt of mt(Yt))_e.call(Yt,Pt)&&Pe(Zt,Pt,Yt[Pt]);return Zt},it=(Zt,Yt)=>{var Pt={};for(var Wt in Zt)nt.call(Zt,Wt)&&Yt.indexOf(Wt)<0&&(Pt[Wt]=Zt[Wt]);if(Zt!=null&&mt)for(var Wt of mt(Zt))Yt.indexOf(Wt)<0&&_e.call(Zt,Wt)&&(Pt[Wt]=Zt[Wt]);return Pt},Te=(Zt,Yt,Pt)=>new Promise((Wt,$t)=>{var cr=Tr=>{try{Er(Pt.next(Tr))}catch(Mr){$t(Mr)}},Ht=Tr=>{try{Er(Pt.throw(Tr))}catch(Mr){$t(Mr)}},Er=Tr=>Tr.done?Wt(Tr.value):Promise.resolve(Tr.value).then(cr,Ht);Er((Pt=Pt.apply(Zt,Yt)).next())}),ye=Zt=>{var Yt=Zt,{className:Pt,style:Wt,children:$t,loading:cr=!1,openLoading:Ht,onClick:Er=()=>{},size:Tr="middle",shape:Mr="round"}=Yt,Cr=it(Yt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[dr,er]=(0,Ue.useState)(!1);return Ue.createElement(Ye.ZP,He({onClick:(0,le.throttle)(Mt=>Te(void 0,null,function*(){Ht&&er(!0);try{yield Er(Mt)}catch(rr){console.log("error",rr)}Ht&&er(!1)}),2e3,{leading:!0,trailing:!1}),className:ie()(Ie.btn,Ie[`${Tr}-${Mr}`],Pt),style:Wt,size:Tr,shape:Mr,loading:dr||cr},Cr),$t)},Le={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"},Ne=({className:Zt,style:Yt,children:Pt=null,onClick:Wt,title:$t})=>Ue.createElement("div",{className:ie()(Le.head,Zt),style:Yt},Ue.createElement("span",{className:"primary-hover",onClick:Wt},Ue.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Ue.createElement("b",{title:$t},$t),Ue.createElement("div",{className:Le.node},Pt)),yt={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"},vt=({confirmShow:Zt=!0,confirmTitle:Yt,confirmClick:Pt,cancelShow:Wt=!0,cancelTitle:$t,cancelClick:cr,className:Ht,style:Er,confirmLoading:Tr=!1})=>Ue.createElement("div",{className:ie()(yt.btns,Ht),style:Er},Zt&&Ue.createElement(Ye.ZP,{loading:Tr,onClick:Pt,type:"primary",className:yt.confirm},Yt),Wt&&Ue.createElement(Ye.ZP,{onClick:cr,className:yt.cancel},$t)),gt={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"},xt=({className:Zt,style:Yt={},LeftContent:Pt,children:Wt,RightContent:$t})=>Ue.createElement("div",{className:ie()(gt.fixedBottom,Zt),style:Yt},Ue.createElement("div",{className:gt.wrap},Ue.createElement("div",{className:gt.left},Pt),Ue.createElement("div",{className:gt.center},Wt),Ue.createElement("div",{className:gt.right},$t))),St={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:Zt,style:Yt={},dataSource:Pt=[]})=>Ue.createElement("div",{className:ie()(St.crumbs,Zt),style:Yt},Pt.map((Wt,$t)=>$t<Pt.length-1?Ue.createElement(Ue.Fragment,{key:$t},Wt.path||Wt.onClick?Ue.createElement("span",{className:St.hover,onClick:Wt!=null&&Wt.onClick?Wt.onClick:()=>at.history.push(Wt.path)},Wt.name):Ue.createElement("span",null,Wt.name),Ue.createElement("span",null,"\xA0",">","\xA0")):Ue.createElement("span",{key:$t,style:{color:"#5F6368"}},Wt.name))),Ut=Ge(11938),Bt=Object.defineProperty,qt=Object.defineProperties,xr=Object.getOwnPropertyDescriptors,pr=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,ar=(Zt,Yt,Pt)=>Yt in Zt?Bt(Zt,Yt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):Zt[Yt]=Pt,fr=(Zt,Yt)=>{for(var Pt in Yt||(Yt={}))Lt.call(Yt,Pt)&&ar(Zt,Pt,Yt[Pt]);if(pr)for(var Pt of pr(Yt))Vt.call(Yt,Pt)&&ar(Zt,Pt,Yt[Pt]);return Zt},Jt=(Zt,Yt)=>qt(Zt,xr(Yt)),sr=(Zt,Yt)=>{var Pt={};for(var Wt in Zt)Lt.call(Zt,Wt)&&Yt.indexOf(Wt)<0&&(Pt[Wt]=Zt[Wt]);if(Zt!=null&&pr)for(var Wt of pr(Zt))Yt.indexOf(Wt)<0&&Vt.call(Zt,Wt)&&(Pt[Wt]=Zt[Wt]);return Pt};const{Countdown:Dr}=Ut.default;var zt=Zt=>{var Yt=Zt,{onChange:Pt}=Yt,Wt=sr(Yt,["onChange"]);const[$t,cr]=(0,Ue.useState)(null);(0,Ue.useEffect)(()=>{typeof $t=="number"&&$t>=0&&Pt($t)},[$t]);const Ht=Er=>{const Tr=Math.floor(Er/1e3);cr(Tr)};return Ue.createElement(Dr,Jt(fr({},Wt),{onChange:Ht}))}},61904:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return Et}});var Ue=Ge(59301);function Et(y,we){const ge=(0,Ue.useRef)();(0,Ue.useEffect)(()=>{ge.current=y}),(0,Ue.useEffect)(()=>{function ee(){ge.current()}if(we!==null){let E=setInterval(ee,we);return()=>clearInterval(E)}},[we])}},4327:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return Ee}});var Ue=Ge(59301),Et=Ge(28284),y=Ge(30641),we=Ge(62957),ge=Ge(6767),ee=Ge(62673),E=Ge(58478),ie=Ge(74242),le=Ge(35990),z=Ge(519),se={"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=",re=Ge(89392),te=Ge(18606),ae=Ge(59301),ue=Object.defineProperty,fe=Object.defineProperties,de=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ce=(Me,Se,je)=>Se in Me?ue(Me,Se,{enumerable:!0,configurable:!0,writable:!0,value:je}):Me[Se]=je,ke=(Me,Se)=>{for(var je in Se||(Se={}))ce.call(Se,je)&&Ce(Me,je,Se[je]);if(he)for(var je of he(Se))pe.call(Se,je)&&Ce(Me,je,Se[je]);return Me},De=(Me,Se)=>fe(Me,de(Se));const Ae={theme:(0,z.G)("cmCodeMode","vs-dark"),fontSize:(0,z.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,z.G)("cmTabToSpace",!0)};var ve=(Me=>(Me[Me.set_font_size=0]="set_font_size",Me[Me.set_theme=1]="set_theme",Me[Me.on_tab_to_space=2]="on_tab_to_space",Me[Me.set_show_editor_setting=3]="set_show_editor_setting",Me))(ve||{});function be(Me,Se){switch(Se.type){case 3:return De(ke({},Me),{showEditorSetting:Se.payload});case 1:return De(ke({},Me),{theme:Se.payload});case 0:return De(ke({},Me),{fontSize:Se.payload});case 2:return De(ke({},Me),{tabToSpace:Se.payload});default:throw new Error}}var Ee=({isLoading:Me,value:Se=[],onChange:je,form:Ze})=>{var Xe;const[$e,lt]=(0,Ue.useReducer)(be,Ae),{theme:Re,fontSize:We,showEditorSetting:rt,tabToSpace:ot}=$e,[at,Je]=(0,Ue.useState)("C"),[Qe,Ve]=(0,Ue.useState)(!1),[ct,tt]=(0,Ue.useState)([]),ut=(0,Ue.useRef)([]),st=Et.default.useWatch(["hack","languages"],Ze);(0,Ue.useEffect)(()=>{Se!=null&&Se.length&&(ut.current=(0,re.cloneDeep)(Se))},[Se]),(0,Ue.useEffect)(()=>{Qe&&tt(st)},[Qe]),(0,Ue.useEffect)(()=>{Je(st==null?void 0:st[0])},[st]);const ze={onFontSizeChange:mt=>{lt({type:0,payload:mt}),(0,z.t)("cmFontSize",mt)},tabToSpace:ot,cmFontSize:We,className:"oj",cmCodeMode:Re,onTabToSpace:mt=>{lt({type:2,payload:mt}),(0,z.t)("cmTabToSpace",mt)},onCodeModeChange:mt=>{lt({type:1,payload:mt}),(0,z.t)("cmCodeMode",mt)}};function Be(){lt({type:3,payload:!1})}function Ke(){lt({type:3,payload:!0})}function Ie(mt){var nt;const _e=(nt=ut.current)==null?void 0:nt.map(Pe=>(Pe.language===at&&(Pe.code=mt),Pe));ut.current=(0,re.cloneDeep)(_e),je(_e)}const Ye={key:at,value:(Xe=Se==null?void 0:Se.find(mt=>mt.language===at))==null?void 0:Xe.code,language:at,onChange:Ie,theme:"vs",height:"calc(100% - 40px)",options:{fontSize:We,insertSpaces:ot}};console.log(888,Se,st);const ft=Se.filter(mt=>st==null?void 0:st.includes(mt.language));return ae.createElement(Ue.Fragment,null,ae.createElement("div",{className:se["code-panel-container"]},ae.createElement(Oe,{setVisible:Ve,languageItems:ft,onLanguage:mt=>Je(mt),language:at,onShowCodeSetting:Ke}),!Me&&ae.createElement(E.ZP,ke({},Ye))),ae.createElement(le.Z,null,ae.createElement(y.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:rt,onClose:Be},ae.createElement(ie.Z,ke({},ze)))),ae.createElement(we.default,{centered:!0,open:Qe,title:"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E",width:564,onOk:()=>{if(!ct.length){ge.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}Ze.setFieldValue(["hack","languages"],ct),Ve(!1)},onCancel:()=>Ve(!1)},ae.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},ae.createElement(ee.default.Group,{value:ct,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:mt=>{tt(mt)}}))))};function Oe({languageItems:Me,language:Se,onShowCodeSetting:je,onLanguage:Ze,setVisible:Xe}){return ae.createElement("div",{className:se["action-oj-bar"]},Me==null?void 0:Me.map($e=>ae.createElement("aside",{className:Se===($e==null?void 0:$e.language)?se.active:"",onClick:()=>Ze($e==null?void 0:$e.language),key:$e==null?void 0:$e.language},ae.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),ae.createElement("span",null,$e==null?void 0:$e.language))),ae.createElement("div",{className:se.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(te.op,{onClick:()=>Xe(!0),shape:"default"},ae.createElement("img",{src:x,width:18,style:{marginRight:8}}),"\u7F16\u7A0B\u8BED\u8A00\u914D\u7F6E"))}},3957:function(Nt,Ot,Ge){"use strict";Ge.r(Ot),Ge.d(Ot,{Types:function(){return Bt},default:function(){return xr}});var Ue=Ge(59301),Et=Ge(97197),y=Ge(37568),we=Ge(62957),ge=Ge(8848),ee=Ge(28284),E=Ge(6767),ie=Ge(29787),le=Ge(7939),z=Ge(82326),se=Ge(17149),x=Ge(71051),re=Ge(62673),te=Ge(47889),ae=Ge(44104),ue=Ge(93725);const{Option:fe}=z.default;var de=(Lt=>(Lt[Lt.language=0]="language",Lt[Lt.difficult=1]="difficult",Lt[Lt.category=2]="category",Lt[Lt.openOrNot=3]="openOrNot",Lt))(de||{});const he={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 ce(Lt){return he[Lt].map(Vt=>Ue.createElement(fe,{key:Vt.title,value:Vt.key}," ",Vt.title," "))}function pe(Lt,Vt){Lt.map(ar=>{const{id:fr,name:Jt,sub_disciplines:sr}=ar;let Dr={value:fr,label:Jt};Vt.push(Dr),sr&&sr.length>0&&(Dr.children=[],pe(sr,Dr.children))})}function Ce(Lt,Vt){var ar;let fr=[];for(let Jt=0;Jt<Lt.length;Jt++){const sr=Lt[Jt];if(((ar=sr.sub_disciplines)==null?void 0:ar.length)>0){fr[0]=sr.id;for(let Dr=0;Dr<sr.sub_disciplines.length;Dr++){const Xt=sr.sub_disciplines[Dr];if(Xt.id===Vt)return fr[1]=Xt.id,[fr,Xt.tag_disciplines||Xt.sub_disciplines||[]]}}}return[fr,[]]}var ke=Ge(58106),De=Ge(24334),Ae=Ge(76618),ve=Ge(65363),be=Ge(77834),Ee=Ge(33495),Oe=Ge(22167),Me=Ge(34282),Se=Ge(30641),je=Ge(58478),Ze=Ge(35990),Xe=Ge(519),$e=Ge(74242),lt={"code-panel-container":"code-panel-container___rlI_l","action-oj-bar":"action-oj-bar___WLV9q",active:"active___CLsJG"},Re=Ge(59301),We=Object.defineProperty,rt=Object.defineProperties,ot=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Ve=(Lt,Vt,ar)=>Vt in Lt?We(Lt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:ar}):Lt[Vt]=ar,ct=(Lt,Vt)=>{for(var ar in Vt||(Vt={}))Je.call(Vt,ar)&&Ve(Lt,ar,Vt[ar]);if(at)for(var ar of at(Vt))Qe.call(Vt,ar)&&Ve(Lt,ar,Vt[ar]);return Lt},tt=(Lt,Vt)=>rt(Lt,ot(Vt));const ut={theme:(0,Xe.G)("cmCodeMode","vs-dark"),fontSize:(0,Xe.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,Xe.G)("cmTabToSpace",!0)};var st=(Lt=>(Lt[Lt.set_font_size=0]="set_font_size",Lt[Lt.set_theme=1]="set_theme",Lt[Lt.on_tab_to_space=2]="on_tab_to_space",Lt[Lt.set_show_editor_setting=3]="set_show_editor_setting",Lt))(st||{});function ze(Lt,Vt){switch(Vt.type){case 3:return tt(ct({},Lt),{showEditorSetting:Vt.payload});case 1:return tt(ct({},Lt),{theme:Vt.payload});case 0:return tt(ct({},Lt),{fontSize:Vt.payload});case 2:return tt(ct({},Lt),{tabToSpace:Vt.payload});default:throw new Error}}var Be=({isLoading:Lt,value:Vt,onChange:ar,language:fr,onUpdateCode:Jt,form:sr})=>{var Dr;const[Xt,zt]=(0,Ue.useReducer)(ze,ut),{theme:Zt,fontSize:Yt,showEditorSetting:Pt,tabToSpace:Wt}=Xt,$t=(0,Ue.useRef)(),cr=(0,Ue.useRef)(),Ht=ee.default.useWatch(["hack_codes","language"],sr),Er={onFontSizeChange:dr=>{zt({type:0,payload:dr}),(0,Xe.t)("cmFontSize",dr)},tabToSpace:Wt,cmFontSize:Yt,className:"oj",cmCodeMode:Zt,onTabToSpace:dr=>{zt({type:2,payload:dr}),(0,Xe.t)("cmTabToSpace",dr)},onCodeModeChange:dr=>{zt({type:1,payload:dr}),(0,Xe.t)("cmCodeMode",dr)}};function Tr(){zt({type:3,payload:!1})}function Mr(){zt({type:3,payload:!0})}const Cr={value:Vt,language:fr,theme:"vs",height:"calc(100% - 56px)",options:{fontSize:Yt,insertSpaces:Wt},onChange:dr=>{ar(dr),cr.current=dr,clearTimeout($t.current),$t.current=setTimeout(()=>{Jt(cr.current)},1e4)},onEditBlur:dr=>{cr.current&&Jt(cr.current)}};return Re.createElement(Ue.Fragment,null,Re.createElement("div",{className:lt["code-panel-container"]},Re.createElement("div",{className:lt["action-oj-bar"]},(Dr=[Ht])==null?void 0:Dr.map(dr=>Re.createElement("aside",{className:lt.active,key:dr},Re.createElement("i",{className:"iconfont icon-bianchengyuyan1"}),Re.createElement("span",null,dr)))),!Lt&&Re.createElement(je.ZP,ct({},Cr))),Re.createElement(Ze.Z,null,Re.createElement(Se.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:Pt,onClose:Tr},Re.createElement($e.Z,ct({},Er)))))},Ke=Ge(4327),Ie=Ge(97013),Ye=Ge(31735),ft=Ge(26869),mt=Ge(73200),nt=Ge(52697),_e=Ge(68989),Pe=Ge(35790),He=Ge(51545),it=Ge(94593),Te=Ge(59301),xe=Object.defineProperty,ye=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,yt=Object.prototype.propertyIsEnumerable,wt=(Lt,Vt,ar)=>Vt in Lt?xe(Lt,Vt,{enumerable:!0,configurable:!0,writable:!0,value:ar}):Lt[Vt]=ar,vt=(Lt,Vt)=>{for(var ar in Vt||(Vt={}))Ne.call(Vt,ar)&&wt(Lt,ar,Vt[ar]);if(et)for(var ar of et(Vt))yt.call(Vt,ar)&&wt(Lt,ar,Vt[ar]);return Lt},gt=(Lt,Vt)=>ye(Lt,Le(Vt)),ht=(Lt,Vt,ar)=>new Promise((fr,Jt)=>{var sr=zt=>{try{Xt(ar.next(zt))}catch(Zt){Jt(Zt)}},Dr=zt=>{try{Xt(ar.throw(zt))}catch(Zt){Jt(Zt)}},Xt=zt=>zt.done?fr(zt.value):Promise.resolve(zt.value).then(sr,Dr);Xt((ar=ar.apply(Lt,Vt)).next())});const{TextArea:xt}=y.default,{confirm:St}=we.default,{Panel:Ct}=ge.default;function jt(){return new Date().getTime()}const Ut={loading:!0,user:null,disciplines:[],dicts:null,status:0,data:void 0,lastedUpdateTime:0};var Bt=(Lt=>(Lt[Lt.SET_INITAL_DATA=0]="SET_INITAL_DATA",Lt[Lt.SET_LOADING=1]="SET_LOADING",Lt[Lt.SET_STATUS=2]="SET_STATUS",Lt))(Bt||{});function qt(Lt,Vt){switch(Vt.type){case 0:return vt(vt({},Lt),Vt.payload);case 1:return gt(vt({},Lt),{loading:Vt.payload});case 2:return gt(vt({},Lt),{status:Vt.payload});default:throw new Error}}var xr=()=>{var Lt,Vt;const[ar]=(0,ke.useSearchParams)(),fr=(0,ke.useLocation)(),{id:Jt}=(0,ke.useParams)(),[sr]=ee.default.useForm(),[Dr,Xt]=(0,Ue.useState)(),[zt,Zt]=(0,Ue.useState)([]),[Yt,Pt]=(0,Ue.useState)([]),[Wt,$t]=(0,Ue.useReducer)(qt,Ut),{loading:cr,data:Ht,user:Er,disciplines:Tr,dicts:Mr,status:Cr}=Wt,dr=Ht==null?void 0:Ht.hack_sets,er=(Lt=Ht==null?void 0:Ht.hack)==null?void 0:Lt.test_set_average,{callback_url:Mt,express_id:rr,score:gr,question_id:Lr,type:At}=(0,Ye.oP)(),[Tt,nr]=(0,Ue.useState)([]),[Kt,Dt]=(0,Ue.useState)(!1),[Qt,tr]=(0,Ue.useState)(!1),yr=At==="1",jr=(0,Ue.useMemo)(()=>{let mr=[];return Tr&&pe(Tr,mr),mr},[Tr]),or=(0,Ue.useCallback)((mr=0)=>ht(void 0,null,function*(){var Rr,Qr;let Yr=Tr;if(Yr.length===0&&(Yr=(yield(0,Ee.d1)("new_question")).disciplines),Jt){let Jr={disciplines:Yr};const zr=yield(0,Ee.fu)(Jt);if(zr.message)zr.status==="401"&&(document.location.href="/user/login");else{const{category:Or,user:un,code:xn,language:Bn,hack_sets:en,description:mn,difficult:bn,name:hn,open_or_not:qr,sub_discipline_id:Sn,tag_discipline_id:on,analysis:hr,time_limit:Ar,test_set_average:Kr,test_set_score:Br,status:rn,tag_discipline_ids:Cn,item_banks_group_id:_r,is_file:vr=!1,hide_actual_output:Fr,code_compile_score:Wr,languages:nn,is_my:Tn,codes:vn,submit_rule:jn}=zr,[An,In]=Ce(Yr,Sn);Dt(Fr);const Hn=vr?[{input:"",output:"",score:100,position:1}]:en;vr?(Pt(en),sr.setFieldsValue({hack_sets:Hn})):Pt([]);const{lastedUpdateTime:Fn}=(0,Ye.oP)(),Wn=vn==null?void 0:vn.map(Vn=>gt(vt({},Vn),{code:De.Base64.decode(Vn==null?void 0:Vn.code)}));Jr=gt(vt({},Jr),{loading:!1,user:un,dicts:In,status:rn,lastedUpdateTime:mr||Fn||0,data:{hack_codes:{language:Bn,code:De.Base64.decode(xn)},hack:{category:Or,difficult:bn,name:hn,description:mn,open_or_not:qr,time_limit:Ar,test_set_average:Kr,test_set_score:Br,sub_discipline_id:An,tag_discipline_ids:Cn,languages:nn,score:gr||1,item_banks_group_ids:_r,is_file:vr,is_my:Tn,code_compile_score:Wr,analysis:hr,submit_rule:jn},hack_sets:Hn,tags:Cn,codes:Wn}}),parseInt(Wr)>0&&tr(!0),$t({type:0,payload:Jr}),Xt({hack:{category:Or,difficult:bn,name:hn,description:mn,open_or_not:qr,time_limit:Ar,test_set_average:Kr,test_set_score:Br,sub_discipline_id:An,tag_discipline_ids:Cn,score:gr||1,item_banks_group_ids:_r,is_file:vr,analysis:hr},codes:Wn}),wr(An==null?void 0:An[0],An==null?void 0:An[1],Yr)}}else{const{user:Jr}=yield(0,Ee.PR)(),{difficult:zr,sub_discipline_id:Or,tag_discipline_id:un,tagIds:xn,banksIds:Bn}=(0,Ye.oP)(),[en,mn]=Ce(Yr,parseInt(Or,10));let bn=[Number(Bn)];$t({type:0,payload:{loading:!1,user:Jr,disciplines:Yr,status:0,dicts:mn,data:{hack_codes:{language:"C",code:""},hack:{category:null,difficult:parseInt(zr,10),time_limit:3,description:"",test_set_score:!0,test_set_average:!0,open_or_not:!0,sub_discipline_id:en,tag_discipline_id:xn&&((Rr=xn==null?void 0:xn.split(","))==null?void 0:Rr.map(hn=>Number(hn))),name:"",item_banks_group_ids:bn,is_file:!1},tags:un?un==null?void 0:un.split(",").map(hn=>parseInt(hn,10)):[],hack_sets:[{input:"",output:"",score:100,position:1}]}}}),Xt({hack:{category:null,difficult:parseInt(zr,10),time_limit:3,description:"",test_set_average:!0,open_or_not:!0,sub_discipline_id:en,tag_discipline_id:xn&&((Qr=xn==null?void 0:xn.split(","))==null?void 0:Qr.map(hn=>Number(hn))),name:"",item_banks_group_id:bn,is_file:!1}}),wr(en==null?void 0:en[0],en==null?void 0:en[1],Yr)}}),[Jt,Tr]);(0,Ue.useEffect)(()=>{try{or()}catch(mr){console.log(mr,"----")}},[]),(0,Ue.useEffect)(()=>{function mr(){return ht(this,null,function*(){let Rr=yield(0,Ie.U2)("item_banks_groups/mine.json");nr(Rr)})}mr()},[]);const wr=(mr,Rr,Qr)=>{var Yr,Jr,zr;const Or=(zr=(Jr=(Yr=Qr==null?void 0:Qr.find(un=>un.id===mr))==null?void 0:Yr.sub_disciplines)==null?void 0:Jr.find(un=>un.id===Rr))==null?void 0:zr.tag_disciplines};function Gt(mr,Rr,Qr){return ht(this,null,function*(){var Yr;const{hack_sets:Jr,hack_codes:zr,hack:Or,tags:un,codes:xn}=vt({},mr);Or.hide_actual_output=Kt;let Bn=[],en=[],mn=0;const bn=Or!=null&&Or.is_file?Yt.map((qr,Sn)=>gt(vt({},qr),{position:Sn+1})):Jr.map(qr=>gt(vt({},qr),{is_file:!1}));for(let qr of bn)mn+=qr.score,qr.id&&qr.id>=0?Bn.push(qr):en.push(qr);if(!(bn!=null&&bn.length)){E.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(mn+=parseInt(Or.code_compile_score||0),mn!==100&&!Or.test_set_score){E.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(bn!=null&&bn.some(qr=>!qr.output)){E.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}let hn={};if(yr?xn==null||xn.forEach(qr=>{hn[qr.language]=qr!=null&&qr.code?De.Base64.encode(qr==null?void 0:qr.code):""}):zr.code=De.Base64.encode(zr==null?void 0:zr.code),Or.sub_discipline_id=(Yr=Or.sub_discipline_id)==null?void 0:Yr[1],$t({type:1,payload:!0}),Mt||(Or.score=Or.difficult*100),Jt){if(yield(0,Ee.l_)(Jt,{hack:Or,hack_codes:zr,hack_sets:en,update_hack_sets:Bn,tags:un,is_cover:Qr,languages:Or.languages,codes:hn}),Mt){if(yield(0,Ee.j2)(Jt),Mt.includes("paperlibrary")){(yield(0,Pe.oF)({id:rr,question_id:Lr,item_type:He.c.Program,name:Or.name,question_score:Or.score,difficulty:Or.difficult,sub_discipline_id:Or.sub_discipline_id,tag_discipline_ids:Or.tag_discipline_ids,item_banks_group_ids:Or.item_banks_group_ids,analysis:Or.analysis})).status===0&&ke.history.replace(Mt);return}const{status:qr}=yield(0,Ee.GM)(Lr,{question_type:6,question_score:Or.score,question_title:Or.name,description:Or.description,sub_discipline_id:Or.sub_discipline_id,tag_discipline_ids:Or.tag_discipline_ids,item_banks_group_ids:Or.item_banks_group_ids,identifier:Jt,analysis:Or.analysis});if(qr===0){if(Rr==="start")return;ke.history.replace(Mt)}}else E.ZP.success("\u4FDD\u5B58\u6210\u529F"),or(jt());$t({type:1,payload:!1})}else{const{identifier:qr,exam_identifier:Sn}=yield(0,Ee.zQ)({hack:Or,hack_codes:zr,hack_sets:bn,tags:un,examination_bank_id:rr||null});if($t({type:1,payload:!1}),Rr==="start")return;if(qr)if(!Mt)ke.history.replace(`/problems/${qr}/edit?lastedUpdateTime=${jt()}`);else if(yield(0,Ee.j2)(qr),Jt)ke.history.replace(Mt);else{if(Mt.includes("paperlibrary")){(yield(0,Pe.oF)({id:rr,item_type:He.c.Program,name:Or.name,question_score:Or.score,difficulty:Or.difficult,sub_discipline_id:Or.sub_discipline_id,tag_discipline_ids:Or.tag_discipline_ids,identifier:Sn,analysis:Or.analysis})).status===0&&ke.history.replace(Mt);return}const{status:on}=yield(0,Ee.MK)(parseInt(rr,10),{question_type:6,question_score:Or.score,question_title:Or.name,identifier:qr,tag_discipline_ids:Or.tag_discipline_ids,analysis:Or.analysis});on===0&&ke.history.replace(Mt)}}})}function Rt(){sr.submit(),setTimeout(()=>ht(this,null,function*(){const mr=yield(0,Ee.j2)(Jt);mr.status===0?(E.ZP.success("\u53D1\u5E03\u6210\u529F"),$t({type:2,payload:1})):E.ZP.info(mr.message)}),400)}function lr(){return ht(this,null,function*(){const mr=yield(0,Ee.ZS)(Jt);mr.status===0?(E.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F"),$t({type:2,payload:0})):E.ZP.info(mr.message)})}function ur(){St(Cr===0?{title:"\u63D0\u793A",content:Te.createElement(Ue.Fragment,null," ",Te.createElement("div",null,"\u53D1\u5E03\u540E\u5373\u53EF\u5E94\u7528\u5230\u81EA\u5DF1\u7BA1\u7406\u7684\u8BFE\u5802")," ",Te.createElement("div",null," \u662F\u5426\u786E\u8BA4\u53D1\u5E03?")," "),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk(){Rt()}}:{title:"\u63D0\u793A",content:Te.createElement("p",null,"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk(){lr()}})}function kr(){return ht(this,null,function*(){Gt(yield sr.getFieldValue(),"start"),setTimeout(()=>ht(this,null,function*(){const{identifier:mr}=yield(0,Ee.uE)(Jt);yr?window.location.href=`/myproblems/${mr}?type=1`:window.location.href=`/myproblems/${mr}`}),400)})}function Nr(){var mr;if(Mt)ke.history.replace(Mt);else if(yr){let Rr=(mr=localStorage.getItem("program_homework"))==null?void 0:mr.split(",");ke.history.push(`/classrooms/${Rr==null?void 0:Rr[0]}/program_homework/${Rr==null?void 0:Rr[1]}/detail`)}else ke.history.replace("/problemset")}const $r=mr=>{let Rr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const Qr=Math.floor((100-Rr)/mr.length),Yr=Qr+(100-Rr)%mr.length;mr=mr.map((Jr,zr)=>zr===mr.length-1?gt(vt({},Jr),{score:Yr}):gt(vt({},Jr),{score:Qr})),Pt(mr)};function ln(mr){mr.target.value||$r(Yt),$t({type:0,payload:{data:gt(vt({},Ht),{hack:gt(vt({},Ht.hack),{test_set_score:mr.target.value})})}})}function Zr(mr){$t({type:0,payload:{data:gt(vt({},Ht),{hack:gt(vt({},Ht.hack),{is_file:mr.target.value})})}})}function Sr(mr){Dt(mr.target.checked)}function Gr(mr){const Rr=mr.target.value;Rr&&$r(Yt),$t({type:0,payload:{data:gt(vt({},Ht),{hack:gt(vt({},Ht.hack),{test_set_average:Rr})})}})}function Ir(){let mr=sr.getFieldValue("hack_sets"),Rr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const Qr=mr.length+1,Yr=Math.floor((100-Rr)/Qr),Jr=(100-Rr)%Qr;mr.map((zr,Or)=>(er&&(zr.score=Yr),zr.position=Or+1,zr)),mr.push({input:"",output:"",position:Qr,score:er?Yr+Jr:0}),sr.setFieldsValue({hack_sets:mr}),$t({type:0,payload:{data:gt(vt({},Ht),{hack_sets:mr})}})}function fn(){let mr=sr.getFieldValue("hack_sets"),Rr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const Qr=mr.length,Yr=Math.floor((100-Rr)/Qr),Jr=(100-Rr)%Qr;mr.map((zr,Or)=>(er&&(zr.score=Yr,Or===mr.length-1&&(zr.score=Yr+Jr)),zr.position=Or+1,zr)),sr.setFieldsValue({hack_sets:mr}),$t({type:0,payload:{data:gt(vt({},Ht),{hack_sets:mr})}})}(0,Ue.useEffect)(()=>{if(er){let mr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const Rr=dr==null?void 0:dr.length,Qr=Math.floor((100-mr)/Rr),Yr=(100-mr)%Rr;dr==null||dr.map((Jr,zr)=>(Jr.score=Qr,Jr.position=zr+1,zr===Rr-1&&(Jr.score=Qr+Yr),Jr)),$t({type:0,payload:{data:gt(vt({},Ht),{hack_sets:dr})}}),sr.setFieldsValue({hack_sets:dr})}},[er]);function _n(mr){let Rr=sr.getFieldValue("hack_sets"),Qr=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const Yr=(Rr==null?void 0:Rr.length)-1,Jr=Math.floor((100-Qr)/Yr),zr=(100-Qr)%Yr;Rr.splice(mr,1),Rr==null||Rr.map((Or,un)=>(er&&(Or.score=Jr,un===Yr-1&&(Or.score=Jr+zr)),Or.position=un+1,Or)),$t({type:0,payload:{data:gt(vt({},Ht),{hack_sets:Rr})}}),sr.setFieldsValue({hack_sets:Rr})}function yn(mr){$t({type:0,payload:{data:gt(vt({},Ht),{hack_codes:gt(vt({},Ht.hack_codes),{language:mr})})}})}const Mn=mr=>{var Rr,Qr,Yr,Jr,zr,Or;if((Rr=mr==null?void 0:mr.hack)!=null&&Rr.sub_discipline_id){const[un,xn]=(Qr=mr==null?void 0:mr.hack)==null?void 0:Qr.sub_discipline_id,Bn=(zr=(Jr=(Yr=Tr==null?void 0:Tr.find(mn=>mn.id===un))==null?void 0:Yr.sub_disciplines)==null?void 0:Jr.find(mn=>mn.id===xn))==null?void 0:zr.tag_disciplines,en=gt(vt({},sr.getFieldsValue()),{hack:gt(vt({},(Or=sr.getFieldsValue())==null?void 0:Or.hack),{tag_discipline_ids:[]})});sr.setFieldsValue(en),Xt(en)}else Xt(vt({},sr.getFieldsValue()))},On=mr=>{Zt([...zt,vt({},mr)])};(0,Ue.useEffect)(()=>{var mr,Rr,Qr,Yr;(Rr=(mr=Ht==null?void 0:Ht.hack)==null?void 0:mr.sub_discipline_id)!=null&&Rr[1]&&kn((Yr=(Qr=Ht==null?void 0:Ht.hack)==null?void 0:Qr.sub_discipline_id)==null?void 0:Yr[1])},[(Vt=Ht==null?void 0:Ht.hack)==null?void 0:Vt.sub_discipline_id]);const kn=mr=>ht(void 0,null,function*(){const Rr=yield(0,Oe.YY)({sub_discipline_id:mr});Zt(Rr.tag_disciplines)});function wn(mr){let Rr=mr[1];const[,Qr]=Ce(Tr,Rr);sr.setFieldsValue({tags:[]}),$t({type:0,payload:{dicts:Qr,data:gt(vt({},Ht),{hack:gt(vt({},Ht.hack),{sub_discipline_id:mr}),tags:[]})}})}const Rn=(mr,Rr=!1)=>{var Qr,Yr;if(Rr)return()=>{$t({type:0,payload:{data:gt(vt({},Ht),{hack:gt(vt({},Ht.hack),{is_file:!0})})}}),sr.setFieldsValue({hack:{is_file:!0}})};const Jr=mr==null?void 0:mr.map(en=>({input:en.input,output:en.output,score:0,position:1}));let zr=(Yr=(Qr=sr.getFieldValue("hack_sets"))==null?void 0:Qr.filter(en=>en.input||en.output))==null?void 0:Yr.concat(Jr),Or=parseInt(sr.getFieldValue("hack").code_compile_score)||0;const un=zr==null?void 0:zr.length,xn=Math.floor((100-Or)/un),Bn=(100-Or)%un;zr==null||zr.map((en,mn)=>(er&&(en.score=xn,mn===un-1&&(en.score=xn+Bn)),en.position=mn+1,en)),$t({type:0,payload:{data:gt(vt({},Ht),{hack_sets:zr,hack:gt(vt({},Ht.hack),{is_file:!1})})}}),sr.setFieldsValue({hack_sets:zr,hack:{is_file:!1}})};return Te.createElement(ie.Z,{spinning:cr,delay:500},Ht?Te.createElement(Ue.Fragment,null,Te.createElement("header",{className:Et.Z.header},Te.createElement("div",null,Te.createElement("img",{src:`${ft.Z.IMG_SERVER}/images/${Er==null?void 0:Er.image_url}`,alt:"user",width:30}),Te.createElement("span",null,Er==null?void 0:Er.name)),Te.createElement("h2",null," ",Ht==null?void 0:Ht.hack.name," "),Jt?Te.createElement("a",{className:Et.Z.btn_back,onClick:Nr}," ",Te.createElement(Ae.Z,null),"\u9000\u51FA"):null),Te.createElement(ee.default,{form:sr,initialValues:Ht,layout:"vertical",className:Et.Z["oj-form-container"],onValuesChange:Mn,onFinish:(mr,Rr)=>{if(ar.get("exercise")&&!Mt.includes("paperlibrary")){we.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(mr,Rr,1),onCancel:()=>Gt(mr,Rr,0)});return}Gt(mr,Rr)}},Te.createElement(Me.Z,{leftChild:Te.createElement(pr,{onAddTestCases:fn,form:sr,handleAddKnowledgeFinish:On,MyGroup:Tt,formValue:Dr,knowledgeOptions:zt,onChangeLanguage:yn,onChangeSubDiscipline:wn,onRemoveTestCase:_n,onAddTestCase:Ir,dicts:Mr,categorys:jr,callback_url:Mt,hack:Ht.hack,onChangeScore:ln,onChangehide:Sr,onChangeAverage:Gr,onChangeFile:Zr,uploadData:Yt,setUploadData:Pt,handleUploadRatio:$r,ischecked:Kt,isshows:Qt,isProgram:yr,addUploadFnc:Rn}),rightChild:yr?Te.createElement(ee.default.Item,{name:"codes",style:{marginBottom:0}},Te.createElement(Ke.Z,null)):Te.createElement(ee.default.Item,{name:["hack_codes","code"],style:{marginBottom:0}},Te.createElement(Be,{language:Ht.hack_codes.language}))}),Te.createElement("div",{className:Et.Z.footer},Jt?Te.createElement(Ue.Fragment,null,yr&&Te.createElement(le.ZP,{onClick:Nr,type:"primary",ghost:!0},"\u9000\u51FA\u7F16\u8F91"),Mt||yr?null:Te.createElement(le.ZP,{type:Cr?"default":"primary",onClick:ur},Cr?"\u64A4\u9500\u53D1\u5E03":"\u7ACB\u5373\u53D1\u5E03"),Te.createElement(le.ZP,{loading:cr,type:"primary",htmlType:"submit"},"\u4FDD\u5B58"),Te.createElement(le.ZP,{type:"primary",onClick:kr},Cr?"\u5F00\u59CB\u6311\u6218":"\u6A21\u62DF\u6311\u6218")):Te.createElement(Ue.Fragment,null,Te.createElement(le.ZP,{onClick:Nr},"\u53D6\u6D88"),Te.createElement(le.ZP,{loading:cr,type:"primary",htmlType:"submit"},"\u4FDD\u5B58"))))):null)};function pr({form:Lt,onAddTestCases:Vt,handleAddKnowledgeFinish:ar,ischecked:fr,MyGroup:Jt,formValue:sr,knowledgeOptions:Dr,categorys:Xt,hack:zt,callback_url:Zt,onChangeAverage:Yt,onChangeScore:Pt,onChangehide:Wt,onChangeFile:$t,onAddTestCase:cr,onRemoveTestCase:Ht,onChangeSubDiscipline:Er,onChangeLanguage:Tr,uploadData:Mr,setUploadData:Cr,handleUploadRatio:dr,isshows:er,isProgram:Mt,addUploadFnc:rr}){var gr,Lr,At;const Tt=((gr=location==null?void 0:location.search)==null?void 0:gr.includes("select"))||!1,[nr,Kt]=(0,Ue.useState)(er),[Dt,Qt]=(0,Ue.useState)(!1),{test_set_average:tr,test_set_score:yr}=zt,[jr,or]=(0,Ue.useState)(!1),wr=(ur,kr)=>{const Nr=[...Mr];Nr.splice(kr,1),tr?dr(Nr):Cr(Nr)},Gt=(ur,kr)=>{console.log(ur,kr);const Nr=Mr.map(($r,ln)=>ln===kr?gt(vt({},$r),{score:ur.target.value?Number(ur.target.value):0}):$r);Cr(Nr)},Rt=ur=>{if(ur!=null&&ur.length){if(ur!=null&&ur[0].is_file){rr(ur,!0)();const kr=Mr.concat(ur);zt.test_set_average?dr(kr):Cr(kr)}ur!=null&&ur[0].is_file||rr(ur)}};function lr(ur){ur.stopPropagation()}return Te.createElement("div",{className:Et.Z["oj-left-panel"]},Te.createElement("div",{className:Et.Z["oj-form-info"]},Te.createElement("div",{className:Et.Z.field},Te.createElement(ee.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficult"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},Te.createElement(z.default,{disabled:Tt},ce(de.difficult))),Te.createElement(ee.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"}]},Te.createElement(se.Z,{disabled:Tt,allowClear:!1,options:Xt,placeholder:"\u8BF7\u9009\u62E9",onChange:Er}))),Te.createElement("div",{className:Et.Z.field},Zt&&Te.createElement(ee.default.Item,{label:"\u5206\u6570",name:["hack","score"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u6570"}],extra:Te.createElement("span",{style:{position:"absolute",left:100,top:5}},"\u5206")},Te.createElement(x.Z,{disabled:Tt,min:1,max:100})),Te.createElement(ee.default.Item,{label:Te.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:Te.createElement("span",{style:{position:"absolute",left:100,top:5}},"\u79D2")},Te.createElement(x.Z,{min:1})),Mt?Te.createElement(ee.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{paddingBottom:16},name:["hack","languages"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},Te.createElement(re.default.Group,null,Te.createElement(re.default,{value:"C"},"C"),Te.createElement(re.default,{value:"C++"},"C++"),Te.createElement(re.default,{value:"Java"},"Java"),Te.createElement(re.default,{value:"Python"},"Python"))):Te.createElement(ee.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"}]},Te.createElement(z.default,{onChange:Tr},ce(de.language)))),Te.createElement(ee.default.Item,{label:Te.createElement("span",null,"\u77E5\u8BC6\u70B9\uFF1A",Te.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"]},Te.createElement(mt.N,{selectvalues:(zt==null?void 0:zt.tag_discipline_id)||(zt==null?void 0:zt.tag_discipline_ids),disabled:Tt,subId:(At=(Lr=sr==null?void 0:sr.hack)==null?void 0:Lr.sub_discipline_id)==null?void 0:At[1],knowledgeOptions:Dr,onAddKnowledgeFinish:ar})),Te.createElement(ee.default.Item,{label:"\u52A0\u5165\u6587\u4EF6\u5939\u76EE\u5F55",name:["hack","item_banks_group_ids"],labelCol:{span:24},wrapperCol:{span:24}},Te.createElement(nt.Z,{disabled:Tt})),Te.createElement(ee.default.Item,{label:"\u4EFB\u52A1\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0"}]},Te.createElement(y.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u540D\u79F0",suffix:Te.createElement("span",null,60-zt.name.length)})),Te.createElement(ee.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},Te.createElement(be.Z,{miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),Te.createElement("div",{onClick:()=>Qt(!0)},Te.createElement(ee.default.Item,{label:"\u9898\u76EE\u89E3\u6790",name:["hack","analysis"],className:`${Et.Z.baseLineHeight}`},Te.createElement(it.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Dt}))),Te.createElement("div",{className:"tst-case-info"},Te.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," \u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!zt.is_file&&Te.createElement(le.ZP,{type:"primary",ghost:!0,onClick:cr},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),Te.createElement(ee.default.Item,{name:["hack","test_set_score"]},Te.createElement(te.ZP.Group,{onChange:Pt},Te.createElement(te.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",Te.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")),Te.createElement(te.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",Te.createElement("span",{className:"tip"}," \uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),Te.createElement(re.default,{style:{marginBottom:"5px"},checked:fr,onChange:Wt},"\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"),Te.createElement(ee.default.Item,{className:Et.Z.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},Te.createElement(te.ZP.Group,{onChange:$t},Te.createElement(ae.Z,{direction:"horizontal"},Te.createElement(te.ZP,{value:!1},"\u6587\u672C"),Te.createElement(te.ZP,{value:!0},"\u6587\u4EF6")))),Te.createElement(ee.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0}]},Te.createElement(te.ZP.Group,null,Te.createElement(te.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Te.createElement(te.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Te.createElement(te.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),!zt.test_set_score&&Te.createElement(ee.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},Te.createElement(te.ZP.Group,{onChange:Yt},Te.createElement(te.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),Te.createElement(te.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),!zt.test_set_score&&Te.createElement("div",{style:{marginBottom:"20px",marginTop:"-10px"}},Te.createElement("div",{style:{display:"flex",height:"30px",marginBottom:"10px"}},Te.createElement(re.default,{checked:nr,style:{display:"flex",alignItems:"center"},className:Et.Z.checkboxs,onChange:ur=>{Kt(ur.target.checked),Lt.setFieldsValue({hack:{code_compile_score:0}}),zt.test_set_average&&(zt.is_file?dr(Mr):Vt())}},"\u542F\u7528\u7F16\u8BD1\u901A\u8FC7\u5373\u53EF\u5F97\u5206"),nr&&Te.createElement("span",{style:{display:"flex"}},Te.createElement(ee.default.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F16\u8BD1\u5F97\u5206"}],name:["hack","code_compile_score"]},Te.createElement(x.Z,{onChange:()=>{zt.test_set_average&&(zt.is_file?dr(Mr):Vt())},parser:ur=>isNaN(parseInt(ur))?"":parseInt(ur),min:0,max:100,style:{width:"90px",margin:"5px 0px"}}))," ",Te.createElement("span",{style:{display:"flex",alignItems:"center",marginLeft:"5px"}},"%"))),Te.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")),Te.createElement("div",{className:Et.Z.upBtn},Te.createElement(le.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>or(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),(zt==null?void 0:zt.is_file)&&Te.createElement(_e.Y2,{disabled:zt==null?void 0:zt.test_set_average,inputChange:Gt,showScore:!zt.test_set_score,data:Mr,onRemove:wr})),!zt.is_file&&Te.createElement(ee.default.List,{name:"hack_sets"},(ur,{})=>Te.createElement(ge.default,{accordion:!0,className:Et.Z.collapse},ur.map((kr,Nr)=>Te.createElement(Ct,{key:`${kr.key}--${Nr}`,header:Te.createElement("a",{className:Et.Z["test-case-name"]},Te.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Nr+1),yr?null:Te.createElement(Te.Fragment,null,Te.createElement(ee.default.Item,{name:[kr.name,"score"],style:{marginBottom:0},fieldKey:[kr.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${Nr+1}\u8BC4\u5206`}]},Te.createElement(x.Z,{onClick:lr,min:0,max:100,disabled:tr})),Te.createElement("span",null,"%"))),extra:Nr>0?Te.createElement("div",{onClick:lr},Te.createElement(ue.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6"+(Nr+1),onConfirm:()=>{Ht(Nr)}},Te.createElement(ve.Z,{className:Et.Z["btn-remove-case"]}))):null},Te.createElement(ee.default.Item,{label:"\u8F93\u5165",name:[kr.name,"input"],fieldKey:[kr.fieldKey,"input"]},Te.createElement(xt,null)),Te.createElement(ee.default.Item,{label:"\u8F93\u51FA",name:[kr.name,"output"],fieldKey:[kr.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},Te.createElement(xt,null)))))))),Te.createElement(_e.ZP,{rootIdentifier:null,visible:jr,onClose:()=>or(!1),onOK:Rt,multiple:!0,defaultMultipleValue:zt==null?void 0:zt.is_file}))}},33495:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{GM:function(){return ie},MK:function(){return E},PR:function(){return Et},ZS:function(){return z},d1:function(){return y},fu:function(){return we},j2:function(){return le},l_:function(){return ge},uE:function(){return se},zQ:function(){return ee}});var Ue=Ge(97013);function Et(){return(0,Ue.U2)("problems/new.json")}function y(re="question"){return(0,Ue.U2)("disciplines.json",{source:re})}function we(re){return(0,Ue.U2)(`problems/${re}/edit.json`)}function ge(re,te){return(0,Ue.gz)(`problems/${re}.json`,te)}function ee(re){return(0,Ue.v_)("problems.json",re)}function E(re,te){return(0,Ue.v_)(`exercises/${re}/exercise_questions.json`,te)}function ie(re,te){return(0,Ue.gz)(`exercise_questions/${re}.json`,te)}function le(re){return(0,Ue.v_)(`problems/${re}/publish.json`)}function z(re){return(0,Ue.v_)(`problems/${re}/cancel_publish.json`)}function se(re){return(0,Ue.U2)(`problems/${re}/start.json`)}function x(re,te){return post("tag_disciplines.json",{name:te,sub_discipline_id:re})}},68989:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Y2:function(){return Xe},ZP:function(){return $e}});var Ue=Ge(59301),Et=Ge(14566),y=Ge(6767),we=Ge(62957),ge=Ge(77019),ee=Ge(47889),E=Ge(7939),ie=Ge(62673),le=Ge(25399),z=Ge(37568),se={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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",re=Ge(47257),te=Ge.n(re),ae=Ge(13683),ue=Ge(97013),fe=Ge(1012),de=Ge(31735),he=Ge(47199),ce=Ge(59301),pe=Object.defineProperty,Ce=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,be=(lt,Re,We)=>Re in lt?pe(lt,Re,{enumerable:!0,configurable:!0,writable:!0,value:We}):lt[Re]=We,Ee=(lt,Re)=>{for(var We in Re||(Re={}))Ae.call(Re,We)&&be(lt,We,Re[We]);if(De)for(var We of De(Re))ve.call(Re,We)&&be(lt,We,Re[We]);return lt},Oe=(lt,Re)=>Ce(lt,ke(Re)),Me=(lt,Re,We)=>new Promise((rt,ot)=>{var at=Ve=>{try{Qe(We.next(Ve))}catch(ct){ot(ct)}},Je=Ve=>{try{Qe(We.throw(Ve))}catch(ct){ot(ct)}},Qe=Ve=>Ve.done?rt(Ve.value):Promise.resolve(Ve.value).then(at,Je);Qe((We=We.apply(lt,Re)).next())});const{Dragger:Se}=Et.default,je=lt=>{const Re=ct=>ct&&ct.substring(0,ct.lastIndexOf("."));for(var We=[...lt],rt=0,ot=[],at=0;at<We.length;at++){for(var Je="",Qe=0;Qe<ot.length;Qe++)if(Re(ot[Qe][0].name)==Re(We[at].name)){rt=1,Je=Qe;break}if(rt==1)ot[Je].push(We[at]),rt=0;else if(rt==0){let ct=new Array;ct.push(We[at]),ot.push(ct)}}return ot.map(ct=>{if(ct.forEach(tt=>{let ut=tt.name.split(/\.(?=[^\.]+$)/);tt.name=`${ut[0]}.${ut[1].toLowerCase()}`}),ct[0].name.includes(".in"))return ct.length===2?ct:[ct[0],{}];if(ct[0].name.includes(".out"))return ct.length===2?ct.reverse():[{},ct[0]]})},Ze=({onClose:lt,onOK:Re,visible:We,wrapClassName:rt,rootIdentifier:ot,multiple:at=!1,defaultMultipleValue:Je=!0})=>{const[Qe,Ve]=(0,Ue.useState)([]),[ct,tt]=(0,Ue.useState)({}),[ut,st]=(0,Ue.useState)(!1),[ze,Be]=(0,Ue.useState)(!0),Ke=(0,Ue.useRef)([]),Ie=(0,Ue.useRef)(0),Ye=()=>{lt()};(0,Ue.useEffect)(()=>{ft()},[]),(0,Ue.useEffect)(()=>{We&&(Ke.current=[],Ie.current=0,Ve([]),Be(Je))},[We]);const ft=()=>Me(void 0,null,function*(){try{const xe=yield(0,ue.ZP)("/api/buckets/get_upload_token_for_big_files",{method:"get"}),ye=JSON.parse((0,ae.pe)(xe.data));tt(ye)}catch(xe){}}),mt=xe=>xe&&xe.substring(0,xe.lastIndexOf(".")),nt=xe=>{var ye,Le;const et=mt((ye=xe[0])==null?void 0:ye.name)||mt((Le=xe[1])==null?void 0:Le.name),Ne=Qe.filter(yt=>mt(yt.name)!==et);Ke.current=[...Ne],Ve([...Ne])},_e=xe=>{if(!ze){const wt=new FormData;wt.append("file",xe.file),(0,ue.ZP)("/api/attachments/get_file_content.json",{method:"post",body:wt},!0).then(gt=>{if(gt.status===0){Ie.current=Ie.current+1;const ht=Ke.current.map(xt=>{var St;if(xt.name===xe.name){const Ct=Ee({},xt);return(St=xe==null?void 0:xe.name)!=null&&St.includes(".in")?Ct.input=gt==null?void 0:gt.content:Ct.output=gt==null?void 0:gt.content,Ct}return xt});if(Ke.current=[...ht],Ve([...ht]),Ie.current>0&&Ie.current===Qe.length){st(!1);let xt=je(ht);xt=xt.filter(St=>{var Ct,jt;return!!((Ct=St[0])!=null&&Ct.name&&((jt=St[1])!=null&&jt.name))}),xt=xt.map(St=>Oe(Ee(Ee({},St[0]),St[1]),{is_file:!1})),Re(xt),lt()}}else st(!1),lt()});return}const ye=new(te())({endpoint:ct.end_point,region:ct.region,accessKeyId:ct.access_key_id,accessKeySecret:ct.access_key_secret,bucket:ct.bucket,stsToken:ct.security_token}),Le=xe.name,et={container_type:"TestSet",file_name:Le},Ne=(0,fe.Z)();let yt=`testsets/${ot}/${Ne}${Le.indexOf(".")>-1?"."+Le.split(".").pop():""}`;ot===null&&(yt=`testsets/${Ne}${Le.indexOf(".")>-1?"."+Le.split(".").pop():""}`),ye.multipartUpload(yt,new Blob([xe.file],{type:xe.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Le+""},url:ct==null?void 0:ct.callback_url,host:ct==null?void 0:ct.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ue.rz)(et)}}).then(function(wt){if(wt.data.status===0){Ie.current=Ie.current+1;const vt=Ke.current.map(gt=>{var ht,xt,St,Ct,jt,Ut,Bt,qt,xr,pr,Lt,Vt,ar,fr,Jt,sr,Dr;if(gt.name===((xt=(ht=wt.data)==null?void 0:ht.data)==null?void 0:xt.file_name)){const Xt=Ee({},gt);return(jt=(Ct=(St=wt.data)==null?void 0:St.data)==null?void 0:Ct.file_name)!=null&&jt.includes(".in")?(Xt.in_object_key=(Bt=(Ut=wt.data)==null?void 0:Ut.data)==null?void 0:Bt.object,Xt.in_object_size=(xr=(qt=wt.data)==null?void 0:qt.data)==null?void 0:xr.size,Xt.input=(Lt=(pr=wt.data)==null?void 0:pr.data)==null?void 0:Lt.file_name,Xt.in_file=xe):(Xt.out_object_key=(ar=(Vt=wt.data)==null?void 0:Vt.data)==null?void 0:ar.object,Xt.out_object_size=(Jt=(fr=wt.data)==null?void 0:fr.data)==null?void 0:Jt.size,Xt.output=(Dr=(sr=wt.data)==null?void 0:sr.data)==null?void 0:Dr.file_name,Xt.out_file=xe),Xt}return gt});if(Ke.current=[...vt],Ve([...vt]),Ie.current>0&&Ie.current===Qe.length){st(!1);let gt=je(vt);gt=gt.filter(ht=>{var xt,St;return!!((xt=ht[0])!=null&&xt.name&&((St=ht[1])!=null&&St.name))}),gt=gt.map(ht=>Oe(Ee(Ee({},ht[0]),ht[1]),{is_file:!0})),Re(gt),lt()}}})},Pe=xe=>new Promise((ye,Le)=>{let et=0,Ne=[];for(let yt=0;yt<xe.length;yt++)xe[yt].file.slice(0,1).arrayBuffer().then(()=>{et++,et===xe.length&&(Ne.length?(y.ZP.warning(`${Ne.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Le()):ye(xe))}).catch(wt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",wt),et++,Ne.push(xe[yt].name),et===xe.length&&(Ne.length?(y.ZP.warning(`${Ne.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Le()):ye(xe))})}),He=()=>Me(void 0,null,function*(){if(Qe.length===0){y.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield Pe(Qe),st(!0),je(Qe).some(ye=>{var Le,et;return!((Le=ye[0])!=null&&Le.name&&((et=ye[1])!=null&&et.name))})){we.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:()=>Me(void 0,null,function*(){Qe.map(ye=>Me(void 0,null,function*(){_e(ye)}))}),onCancel:()=>{st(!1)}});return}Qe.map(ye=>Me(void 0,null,function*(){_e(ye)}))}),it={name:"file",fileList:Qe,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:xe=>{if(Qe!=null&&Qe.some(Le=>Le.name===xe.name))return y.ZP.info(`${xe.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(xe.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(xe.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 ye={name:xe.name,uid:xe.uid,file:xe,percent:0};return Qe.push(ye),Ke.current=[...Qe],Ve([...Qe]),!1}},Te=je(Qe);return console.log(Qe,Te,"fileList"),ce.createElement(we.default,{open:We,wrapClassName:rt,onOk:He,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:ut},onCancel:Ye,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},ce.createElement("div",{className:se.wrap},Qe.length?ce.createElement("div",null,ce.createElement(ge.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},ce.createElement("div",{style:{visibility:at?"visible":"hidden"}},ce.createElement("span",{className:se.greyText},"\u7528\u4F8B\u7C7B\u578B"),ce.createElement(ee.ZP.Group,{className:`ml20 ${se.testCaseRadio}`,optionType:"button",value:ze,onChange:xe=>Be(xe.target.value)},ce.createElement(ee.ZP,{value:!1},"\u6587\u672C"),ce.createElement(ee.ZP,{value:!0},"\u6587\u4EF6"))),ce.createElement(Et.default,Ee({},it),ce.createElement(E.ZP,{type:"primary",className:se.btnS},ce.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),ce.createElement(Xe,{data:Te,onRemove:nt})):ce.createElement("div",{className:`${se.noData} mb30`},ce.createElement(Et.default.Dragger,Oe(Ee({},it),{className:se.dragger}),ce.createElement("img",{src:x,alt:"",className:"mb20"}),ce.createElement("div",null,ce.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),ce.createElement("span",{className:se.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),ce.createElement("div",{className:se.text},ce.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),ce.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",ce.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",ce.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",ce.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",ce.createElement("br",null))))},Xe=({data:lt=[],onRemove:Re,width:We="auto",showScore:rt=!1,disabled:ot=!1,inputChange:at,onEvaluatingChange:Je,onSelectAll:Qe,checkAll1:Ve,checkAll2:ct,checkAll3:tt,checkAll4:ut,checkAll5:st,showEvaluatingSetting:ze=!1,className:Be="",isProgramHomework:Ke=!1})=>{const Ie={value:"",filename:"",dataUrl:""},[Ye,ft]=(0,Ue.useState)(Ee({},Ie)),mt=Pe=>{let He=document.createElement("a");document.body.appendChild(He);let it=URL.createObjectURL(Pe.file);He.href=it,He.download=Pe.name,He.click(),URL.revokeObjectURL(it),document.body.removeChild(He)},nt=(Pe,He)=>{(0,de.LR)(Pe,He)},_e=(Pe,He)=>{we.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ce.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Re(Pe,He)},onCancel:()=>{}})};return lt.length?ce.createElement("div",{className:Be,style:{width:We}},ce.createElement("div",{className:`${Ke?se.headProgram:se.head}`},ze&&ce.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:Ve,onChange:Pe=>{Qe(Pe.target.checked,"hidden")}}),ce.createElement(le.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},ce.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ce.createElement("div",{style:{width:Ke?"25%":"15%"}},"\u7528\u4F8B"),ce.createElement("div",{style:{width:rt?Ke?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),ce.createElement("div",{style:{width:rt?Ke?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),rt&&ce.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),ze&&ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:ut,onChange:Pe=>{Qe(Pe.target.checked,"input_visible")}}),ce.createElement(le.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ce.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ze&&ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:ct,onChange:Pe=>{Qe(Pe.target.checked,"is_invisible")}}),ce.createElement(le.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ce.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ze&&ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:st,onChange:Pe=>{Qe(Pe.target.checked,"actual_output_visible")}}),ce.createElement(le.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},ce.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ze&&ce.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},ce.createElement(ie.default,{checked:tt,onChange:Pe=>{Qe(Pe.target.checked,"last_match_rule")}}),ce.createElement(le.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"},ce.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),ce.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),ce.createElement("div",{className:se.operation,style:Ke?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),ce.createElement("div",{className:se.listWrapper,style:{boxShadow:Ke?"0px 2px 4px 0px #EAEEF4":"unset"}},lt.map((Pe,He)=>{var it,Te,xe,ye;return ce.createElement("div",{key:He,className:se.list,style:Ke?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},ze&&ce.createElement("div",{style:{width:"15%"}},ce.createElement(ie.default,{checked:!!Pe.hidden,onChange:Le=>{Je(Le.target.checked,He,"hidden")}})),ce.createElement("div",{style:{width:Ke?"25%":"15%",paddingLeft:Ke?"5px":"0px",paddingRight:Ke?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",He+1),ce.createElement("div",{className:se.info,style:{width:rt?Ke?"20%":"15%":"25%"}},ce.createElement("span",{title:Pe.input||((it=Pe[0])==null?void 0:it.name),onClick:()=>Me(void 0,null,function*(){let Le;Pe.input?Pe.input_file_url?Le=Pe.input_file_url:Le=Pe.in_file:Le=Pe[0];let et;typeof Le=="string"?(et=yield fetch(Le,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),ft({value:yield et.text(),filename:"",dataUrl:Le})):(et=yield(0,de.db)(Le.file),ft({value:et.text,filename:Le.name,dataUrl:et.link}))})},Pe.input||((Te=Pe[0])==null?void 0:Te.name))),ce.createElement("div",{className:se.info,style:{width:rt?Ke?"20%":"15%":"25%"}},ce.createElement("span",{title:Pe.output||((xe=Pe[1])==null?void 0:xe.name),onClick:()=>Me(void 0,null,function*(){let Le;Pe.input?Pe.output_file_url?Le=Pe.output_file_url:Le=Pe.out_file:Le=Pe[1];let et;typeof Le=="string"?(et=yield fetch(Le,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),ft({value:yield et.text(),filename:"",dataUrl:Le})):(et=yield(0,de.db)(Le.file),ft({value:et.text,filename:Le.name,dataUrl:et.link}))})},Pe.output||((ye=Pe[1])==null?void 0:ye.name))),rt&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(z.default,{size:"large",addonAfter:Ke?"%":null,disabled:ot,style:{width:"80%"},onChange:Le=>at(Le,He),value:Pe.score}),!Ke&&ce.createElement("span",null,"\xA0%")),ze&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ie.default,{checked:Pe.input_visible||!1,onChange:Le=>{Je(Le.target.checked,He,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),ze&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ie.default,{checked:Pe.is_invisible||!1,onChange:Le=>{Je(Le.target.checked,He,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),ze&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ie.default,{checked:Pe.actual_output_visible||!1,onChange:Le=>{Je(Le.target.checked,He,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),ze&&ce.createElement("div",{style:{width:"20%"}},ce.createElement(ie.default,{checked:Pe.last_match_rule||!1,onChange:Le=>{Je(Le.target.checked,He,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),ce.createElement("div",{onClick:()=>_e(Pe,He),style:Ke?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},ce.createElement("span",{className:se.del},"\u5220\u9664")))})),ce.createElement(he.Z,{close:!0,data:Ye.dataUrl,filename:Ye.filename,type:Ye.dataUrl.length?"txt":"",onClose:()=>ft(Ee({},Ie)),monacoEditor:{value:Ye.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):ce.createElement(ce.Fragment,null)};var $e=Ze},51545:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{c:function(){return Et}});var Ue=(y=>(y.FirstPage="firstPage",y.PrevPage="prevPage",y.NextPage="nextPage",y))(Ue||{}),Et=(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))(Et||{})},58489:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{AL:function(){return pe},Iy:function(){return se},Qv:function(){return te},ez:function(){return ce},jb:function(){return x}});var Ue=Ge(32834),Et=Ge.n(Ue),y=Ge(11690),we=Ge.n(y);let ge=1;function ee(ve,be){const Ee=ve.match(/^(\s+)(?:```)/);if(Ee===null)return be;const Oe=Ee[1];return be.split(`
`).map(Me=>{const Se=Me.match(/^\s+/);if(Se===null)return Me;const[je]=Se;return je.length>=Oe.length?Me.slice(Oe.length):Me}).join(`
`)}let E=[],ie=["<ul>"];const le=new(Et()).Renderer,z=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function se(){E.length=0,ie=["<ul>"]}const x={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function re(ve,be,Ee,Oe){if(be>=ve.length||ve[be].level<=Ee)return be;var Me=ve[be];Oe.push("<li><a href='#"+ge+Me.anchor+"'>"+Me.text+"</a>"),be++;var Se=[];return be=re(ve,be,Me.level,Se),Se.length>0&&(Oe.push("<ul>"),Se.forEach(function(je){Oe.push(je)}),Oe.push("</ul>")),Oe.push("</li>"),be=re(ve,be,Ee,Oe),be}function te(){return re(E,0,0,ie),ie.push("</ul>"),ie.join("")}const ae={heading(ve){const be=z.exec(ve);if(ge+=1,be)return{type:"heading",raw:be[0],depth:be[1].length,text:be[2]}},fences(ve){const be=this.rules.block.fences.exec(ve);if(be){const Ee=be[0];let Oe=ee(Ee,be[3]||"");const Me=be[2]?be[2].trim():be[2];if(["latex","katex","math"].indexOf(Me)>=0){const Se=de(),je=Oe;Oe=Se,he[Se]={type:"block",expression:je}}return{type:"code",raw:Ee,lang:Me,text:Oe}}}},ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let fe=0;const de=()=>`__special_katext_id_${fe++}__`;let he={};function ce(){return he}function pe(){fe=0,he={}}function Ce(ve){return ve=ve.replace(ue,(be,Ee)=>{const Oe=de();return he[Oe]={type:"inline",expression:Ee},Oe}),ve}const ke=le.listitem;le.listitem=function(ve){return ke(Ce(ve))};const De=le.paragraph;le.paragraph=function(ve){return De(Ce(ve))};const Ae=le.tablecell;le.tablecell=function(ve,be){return Ae(Ce(ve),be)},le.code=function(ve,be,Ee){const Oe=(be||"").match(/\S*/)[0];return Oe?["latex","katex","math"].indexOf(Oe)>=0?`<p class='editormd-tex'>${ve}</p>`:`<pre class="prettyprint linenums"><code class="language-${be}">${Ee?ve:(0,y.escape)(ve,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ee?ve:(0,y.escape)(ve,!0))+"</code></pre>"},le.heading=function(ve,be,Ee){let Oe=this.options.headerPrefix+Ee.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return E.push({anchor:Oe,level:be,text:ve}),"<h"+be+' id="'+ge+Oe+'">'+ve+"</h"+be+">"},Et().setOptions({silent:!0,gfm:!0,pedantic:!1}),Et().use({tokenizer:ae,renderer:le}),Ot.ZP=Et()},519:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{G:function(){return ge},t:function(){return we}});var Ue=Ge(7062),Et=Ge.n(Ue);const y=null;function we(ee,E){let ie=Et().get("__ec");ie||(ie={}),ie[ee]=E,Et().set("__ec",ie)}function ge(ee,E){let ie=Et().get("__ec");return ie?ie[ee]===void 0?E:ie[ee]:E}},47257:function(Nt){(function(Ot){(function(Ge){if(1)Nt.exports=Ge();else var Ue})(function(){var Ge,Ue,Et;return function(){function y(we,ge,ee){function E(z,se){if(!ge[z]){if(!we[z]){var x=void 0;if(!se&&x)return require(z,!0);if(ie)return ie(z,!0);var re=new Error("Cannot find module '"+z+"'");throw re.code="MODULE_NOT_FOUND",re}var te=ge[z]={exports:{}};we[z][0].call(te.exports,function(ae){var ue=we[z][1][ae];return E(ue||ae)},te,te.exports,y,we,ge,ee)}return ge[z].exports}for(var ie=void 0,le=0;le<ee.length;le++)E(ee[le]);return E}return y}()({1:[function(y,we,ge){"use strict";var ee=y("./browser/client");ee.Buffer=y("buffer").Buffer,ee.urllib=y("../shims/xhr"),ee.version=y("./browser/version").version,we.exports=ee},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(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 le=y("assert"),z=y("../common/utils/checkBucketName"),se=z.checkBucketName,x=ge;function re(ae){return Array.isArray?Array.isArray(ae):Object.prototype.toString.call(ae)==="[object Array]"}function te(ae){return ae?re(ae)?ae:[ae]:[]}x.useBucket=function(ue){return se(ue),this.options.bucket=ue,this},x.setBucket=function(ue){return se(ue),this.options.bucket=ue,this},x.getBucket=function(){return this.options.bucket},x.deleteBucket=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he){var ce,pe;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ce=this._bucketRequestParams("DELETE",de,"",he),ke.next=3,this.request(ce);case 3:if(pe=ke.sent,!(pe.status===200||pe.status===204)){ke.next=6;break}return ke.abrupt("return",{res:pe.res});case 6:return ke.next=8,this.requestError(pe);case 8:throw ke.sent;case 9:case"end":return ke.stop()}},fe,this)}));function ue(fe,de){return ae.apply(this,arguments)}return ue}(),x.putBucketACL=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he,ce){var pe,Ce;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return pe=this._bucketRequestParams("PUT",de,"acl",ce),pe.headers={"x-oss-acl":he},pe.successStatuses=[200],De.next=5,this.request(pe);case 5:return Ce=De.sent,De.abrupt("return",{bucket:Ce.headers.location&&Ce.headers.location.substring(1)||null,res:Ce.res});case 7:case"end":return De.stop()}},fe,this)}));function ue(fe,de,he){return ae.apply(this,arguments)}return ue}(),x.getBucketACL=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he){var ce,pe;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ce=this._bucketRequestParams("GET",de,"acl",he),ce.successStatuses=[200],ce.xmlResponse=!0,ke.next=5,this.request(ce);case 5:return pe=ke.sent,ke.abrupt("return",{acl:pe.data.AccessControlList.Grant,owner:{id:pe.data.Owner.ID,displayName:pe.data.Owner.DisplayName},res:pe.res});case 7:case"end":return ke.stop()}},fe,this)}));function ue(fe,de){return ae.apply(this,arguments)}return ue}(),x.putBucketLogging=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he,ce){var pe,Ce,ke;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return pe=this._bucketRequestParams("PUT",de,"logging",ce),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(de,`</TargetBucket>
`),he&&(Ce+="<TargetPrefix>".concat(he,`</TargetPrefix>
`)),Ce+=`</LoggingEnabled>
</BucketLoggingStatus>`,pe.content=Ce,pe.mime="xml",pe.successStatuses=[200],Ae.next=9,this.request(pe);case 9:return ke=Ae.sent,Ae.abrupt("return",{res:ke.res});case 11:case"end":return Ae.stop()}},fe,this)}));function ue(fe,de,he){return ae.apply(this,arguments)}return ue}(),x.getBucketLogging=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he){var ce,pe,Ce;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ce=this._bucketRequestParams("GET",de,"logging",he),ce.successStatuses=[200],ce.xmlResponse=!0,De.next=5,this.request(ce);case 5:return pe=De.sent,Ce=pe.data.LoggingEnabled,De.abrupt("return",{enable:!!Ce,prefix:Ce&&Ce.TargetPrefix||null,res:pe.res});case 8:case"end":return De.stop()}},fe,this)}));function ue(fe,de){return ae.apply(this,arguments)}return ue}(),x.deleteBucketLogging=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he){var ce,pe;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ce=this._bucketRequestParams("DELETE",de,"logging",he),ce.successStatuses=[204,200],ke.next=4,this.request(ce);case 4:return pe=ke.sent,ke.abrupt("return",{res:pe.res});case 6:case"end":return ke.stop()}},fe,this)}));function ue(fe,de){return ae.apply(this,arguments)}return ue}(),x.putBucketCORS=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he,ce){var pe,Ce,ke,De,Ae,ve,be,Ee,Oe,Me;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:for(he=he||[],le(he.length,"rules is required"),he.forEach(function(Ze){le(Ze.allowedOrigin,"allowedOrigin is required"),le(Ze.allowedMethod,"allowedMethod is required")}),pe=this._bucketRequestParams("PUT",de,"cors",ce),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,ke=function(Xe){Ce+="<AllowedOrigin>".concat(Xe,"</AllowedOrigin>")},De=function(Xe){Ce+="<AllowedMethod>".concat(Xe,"</AllowedMethod>")},Ae=function(Xe){Ce+="<AllowedHeader>".concat(Xe,"</AllowedHeader>")},ve=function(Xe){Ce+="<ExposeHeader>".concat(Xe,"</ExposeHeader>")},be=0,Ee=he.length;be<Ee;be++)Oe=he[be],Ce+="<CORSRule>",te(Oe.allowedOrigin).forEach(ke),te(Oe.allowedMethod).forEach(De),te(Oe.allowedHeader).forEach(Ae),te(Oe.exposeHeader).forEach(ve),Oe.maxAgeSeconds&&(Ce+="<MaxAgeSeconds>".concat(Oe.maxAgeSeconds,"</MaxAgeSeconds>")),Ce+="</CORSRule>";return Ce+="</CORSConfiguration>",pe.content=Ce,pe.mime="xml",pe.successStatuses=[200],je.next=16,this.request(pe);case 16:return Me=je.sent,je.abrupt("return",{res:Me.res});case 18:case"end":return je.stop()}},fe,this)}));function ue(fe,de,he){return ae.apply(this,arguments)}return ue}(),x.getBucketCORS=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he){var ce,pe,Ce,ke;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ce=this._bucketRequestParams("GET",de,"cors",he),ce.successStatuses=[200],ce.xmlResponse=!0,Ae.next=5,this.request(ce);case 5:return pe=Ae.sent,Ce=[],pe.data&&pe.data.CORSRule&&(ke=pe.data.CORSRule,re(ke)||(ke=[ke]),ke.forEach(function(ve){var be={};Object.keys(ve).forEach(function(Ee){be[Ee.slice(0,1).toLowerCase()+Ee.slice(1,Ee.length)]=ve[Ee]}),Ce.push(be)})),Ae.abrupt("return",{rules:Ce,res:pe.res});case 9:case"end":return Ae.stop()}},fe,this)}));function ue(fe,de){return ae.apply(this,arguments)}return ue}(),x.deleteBucketCORS=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he){var ce,pe;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ce=this._bucketRequestParams("DELETE",de,"cors",he),ce.successStatuses=[204],ke.next=4,this.request(ce);case 4:return pe=ke.sent,ke.abrupt("return",{res:pe.res});case 6:case"end":return ke.stop()}},fe,this)}));function ue(fe,de){return ae.apply(this,arguments)}return ue}(),x.putBucketReferer=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he,ce,pe){var Ce,ke,De,Ae;return E.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:if(Ce=this._bucketRequestParams("PUT",de,"referer",pe),ke=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,ke+=" <AllowEmptyReferer>".concat(he?"true":"false",`</AllowEmptyReferer>
`),ce&&ce.length>0){for(ke+=` <RefererList>
`,De=0;De<ce.length;De++)ke+=" <Referer>".concat(ce[De],`</Referer>
`);ke+=` </RefererList>
`}else ke+=` <RefererList />
`;return ke+="</RefererConfiguration>",Ce.content=ke,Ce.mime="xml",Ce.successStatuses=[200],be.next=10,this.request(Ce);case 10:return Ae=be.sent,be.abrupt("return",{res:Ae.res});case 12:case"end":return be.stop()}},fe,this)}));function ue(fe,de,he,ce){return ae.apply(this,arguments)}return ue}(),x.getBucketReferer=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he){var ce,pe,Ce;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ce=this._bucketRequestParams("GET",de,"referer",he),ce.successStatuses=[200],ce.xmlResponse=!0,De.next=5,this.request(ce);case 5:return pe=De.sent,Ce=pe.data.RefererList.Referer||null,Ce&&(re(Ce)||(Ce=[Ce])),De.abrupt("return",{allowEmpty:pe.data.AllowEmptyReferer==="true",referers:Ce,res:pe.res});case 9:case"end":return De.stop()}},fe,this)}));function ue(fe,de){return ae.apply(this,arguments)}return ue}(),x.deleteBucketReferer=function(){var ae=(0,ie.default)(E.default.mark(function fe(de,he){return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,this.putBucketReferer(de,!0,null,he);case 2:return pe.abrupt("return",pe.sent);case 3:case"end":return pe.stop()}},fe,this)}));function ue(fe,de){return ae.apply(this,arguments)}return ue}(),x._bucketRequestParams=function(ue,fe,de,he){return{method:ue,bucket:fe,subres:de,timeout:he&&he.timeout,ctx:he&&he.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,we,ge){(function(ee,E){(function(){"use strict";var ie=y("@babel/runtime/helpers/interopRequireDefault"),le=ie(y("@babel/runtime/regenerator")),z=ie(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 se=y("debug")("ali-oss"),x=y("xml2js"),re=y("agentkeepalive"),te=y("merge-descriptors"),ae=y("platform"),ue=y("utility"),fe=y("urllib"),de=y("./version"),he=y("bowser"),ce=y("../common/signUtils"),pe=y("../common/client/initOptions"),Ce=y("../common/utils/createRequest"),ke=Ce.createRequest,De=y("../common/utils/encoder"),Ae=De.encoder,ve=y("../common/client/getReqUrl"),be=ve.getReqUrl,Ee=y("../common/utils/setSTSToken"),Oe=Ee.setSTSToken,Me=y("../common/utils/retry"),Se=Me.retry,je=y("../common/utils/isFunction"),Ze=je.isFunction,Xe=new re;function $e(){var at=ae.name,Je=ae.version;at&&at.toLowerCase&&at.toLowerCase()==="ie"&&Je.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function lt(){return location&&location.protocol==="https:"}function Re(at,Je){if($e(),!(this instanceof Re))return new Re(at,Je);at&&at.inited?this.options=at:this.options=Re.initOptions(at),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=fe,this.agent=this.options.agent||Xe),this.ctx=Je,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}we.exports=Re,Re.initOptions=function(Je){Je.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var Qe=Object.assign({secure:lt(),useFetch:!1},Je);return pe(Qe)};var We=Re.prototype;We.debug=se,te(We,y("./object")),te(We,y("./bucket")),te(We,y("../common/bucket/getBucketWebsite")),te(We,y("../common/bucket/putBucketWebsite")),te(We,y("../common/bucket/deleteBucketWebsite")),te(We,y("../common/bucket/getBucketLifecycle")),te(We,y("../common/bucket/putBucketLifecycle")),te(We,y("../common/bucket/deleteBucketLifecycle")),te(We,y("../common/bucket/putBucketVersioning")),te(We,y("../common/bucket/getBucketVersioning")),te(We,y("../common/bucket/getBucketInventory")),te(We,y("../common/bucket/deleteBucketInventory")),te(We,y("../common/bucket/listBucketInventory")),te(We,y("../common/bucket/putBucketInventory")),te(We,y("../common/bucket/abortBucketWorm")),te(We,y("../common/bucket/completeBucketWorm")),te(We,y("../common/bucket/extendBucketWorm")),te(We,y("../common/bucket/getBucketWorm")),te(We,y("../common/bucket/initiateBucketWorm")),te(We,y("./managed-upload")),te(We,y("../common/multipart-copy")),te(We,y("../common/multipart")),te(We,y("../common/parallel")),We.signature=function(Je){return this.debug("authorization stringToSign: %s",Je,"info"),ce.computeSignature(this.options.accessKeySecret,Je,this.options.headerEncoding)},We._getReqUrl=be,We.authorization=function(Je,Qe,Ve,ct){var tt=ce.buildCanonicalString(Je.toUpperCase(),Qe,{headers:ct,parameters:Ve});return ce.authorization(this.options.accessKeyId,this.options.accessKeySecret,tt,this.options.headerEncoding)},We.request=function(){var at=(0,z.default)(le.default.mark(function Je(Qe){var Ve=this;return le.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!this.options.retryMax){tt.next=6;break}return tt.next=3,Se(rt.bind(this),this.options.retryMax,{errorHandler:function(st){var ze=function(Ke){if(Qe.stream)return!1;var Ie=[-1,-2].includes(Ke.status),Ye=Ve.options.requestErrorRetryHandle||function(){return!0};return Ie&&Ye(Ke)};return!!ze(st)}})(Qe);case 3:return tt.abrupt("return",tt.sent);case 6:return tt.abrupt("return",rt.call(this,Qe));case 7:case"end":return tt.stop()}},Je,this)}));return function(Je){return at.apply(this,arguments)}}();function rt(at){return ot.apply(this,arguments)}function ot(){return ot=(0,z.default)(le.default.mark(function at(Je){var Qe,Ve,ct,tt,ut,st;return le.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(!(this.options.stsToken&&Ze(this.options.refreshSTSToken))){Be.next=3;break}return Be.next=3,Oe.call(this);case 3:return Qe=ke.call(this,Je),this.options.useFetch||(Qe.params.mode="disable-fetch"),tt=!!Je.stream,Be.prev=6,Be.next=9,this.urllib.request(Qe.url,Qe.params);case 9:Ve=Be.sent,this.debug("response %s %s, got %s, headers: %j",Je.method,Qe.url,Ve.status,Ve.headers,"info"),Be.next=16;break;case 13:Be.prev=13,Be.t0=Be.catch(6),ct=Be.t0;case 16:if(!(Ve&&Je.successStatuses&&Je.successStatuses.indexOf(Ve.status)===-1)){Be.next=28;break}return Be.next=19,this.requestError(Ve);case 19:if(ut=Be.sent,!(ut.code==="RequestTimeTooSkewed"&&!tt)){Be.next=25;break}return this.options.amendTimeSkewed=+new Date(ut.serverTime)-new Date,Be.next=24,this.request(Je);case 24:return Be.abrupt("return",Be.sent);case 25:ut.params=Je,Be.next=32;break;case 28:if(!ct){Be.next=32;break}return Be.next=31,this.requestError(ct);case 31:ut=Be.sent;case 32:if(!ut){Be.next=34;break}throw ut;case 34:if(!Je.xmlResponse){Be.next=39;break}return Be.next=37,this.parseXML(Ve.data);case 37:st=Be.sent,Ve.data=st;case 39:return Be.abrupt("return",Ve);case 40:case"end":return Be.stop()}},at,this,[[6,13]])})),ot.apply(this,arguments)}We._getResource=function(Je){var Qe="/";return Je.bucket&&(Qe+="".concat(Je.bucket,"/")),Je.object&&(Qe+=Ae(Je.object,this.options.headerEncoding)),Qe},We._escape=function(Je){return ue.encodeURIComponent(Je).replace(/%2F/g,"/")},We._getUserAgent=function(){var Je=E&&E.browser?"js":"nodejs",Qe="aliyun-sdk-".concat(Je,"/").concat(de.version),Ve=ae.description;return!Ve&&E&&(Ve="Node.js ".concat(E.version.slice(1)," on ").concat(E.platform," ").concat(E.arch)),this._checkUserAgent("".concat(Qe," ").concat(Ve))},We._checkUserAgent=function(Je){var Qe=Je.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return Qe},We.checkBrowserAndVersion=function(Je,Qe){return he.name===Je&&he.version.split(".")[0]===Qe},We.parseXML=function(Je){return new Promise(function(Qe,Ve){ee.isBuffer(Je)&&(Je=Je.toString()),x.parseString(Je,{explicitRoot:!1,explicitArray:!1},function(ct,tt){ct?Ve(ct):Qe(tt)})})},We.requestError=function(){var at=(0,z.default)(le.default.mark(function Qe(Ve){var ct,tt,ut,st;return le.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(ct=null,!(!Ve.data||!Ve.data.length)){Be.next=5;break}Ve.status===-1||Ve.status===-2?(ct=new Error(Ve.message),ct.name=Ve.name,ct.status=Ve.status,ct.code=Ve.name):(Ve.status===404?(ct=new Error("Object not exists"),ct.name="NoSuchKeyError",ct.status=404,ct.code="NoSuchKey"):Ve.status===412?(ct=new Error("Pre condition failed"),ct.name="PreconditionFailedError",ct.status=412,ct.code="PreconditionFailed"):(ct=new Error("Unknow error, status: ".concat(Ve.status)),ct.name="UnknownError",ct.status=Ve.status),ct.requestId=Ve.headers["x-oss-request-id"],ct.host=""),Be.next=32;break;case 5:return tt=String(Ve.data),this.debug("request response error data: %s",tt,"error"),Be.prev=7,Be.next=10,this.parseXML(tt);case 10:if(Be.t0=Be.sent,Be.t0){Be.next=13;break}Be.t0={};case 13:ut=Be.t0,Be.next=23;break;case 16:return Be.prev=16,Be.t1=Be.catch(7),this.debug(tt,"error"),Be.t1.message+=`
raw xml: `.concat(tt),Be.t1.status=Ve.status,Be.t1.requestId=Ve.headers["x-oss-request-id"],Be.abrupt("return",Be.t1);case 23:st=ut.Message||"unknow request error, status: ".concat(Ve.status),ut.Condition&&(st+=" (condition: ".concat(ut.Condition,")")),ct=new Error(st),ct.name=ut.Code?"".concat(ut.Code,"Error"):"UnknownError",ct.status=Ve.status,ct.code=ut.Code,ct.requestId=ut.RequestId,ct.hostId=ut.HostId,ct.serverTime=ut.ServerTime;case 32:return this.debug("generate error %j",ct,"error"),Be.abrupt("return",ct);case 34:case"end":return Be.stop()}},Qe,this,[[7,16]])}));function Je(Qe){return at.apply(this,arguments)}return Je}()}).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,we,ge){(function(ee){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),ie=E(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 le=E(y("@babel/runtime/helpers/asyncToGenerator")),z=y("util"),se=y("path"),x=y("mime"),re=y("copy-to"),te=y("../common/utils/isBlob"),ae=te.isBlob,ue=y("../common/utils/isFile"),fe=ue.isFile,de=y("../common/utils/isBuffer"),he=de.isBuffer,ce=ge;ce.multipartUpload=function(){var Ae=(0,le.default)(ie.default.mark(function be(Ee,Oe){var Me,Se,je,Ze,Xe,$e,lt,Re,We,rt=arguments;return ie.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(Me=rt.length>2&&rt[2]!==void 0?rt[2]:{},this.resetCancelFlag(),Me.disabledMD5=Me.disabledMD5===void 0?!0:!!Me.disabledMD5,!(Me.checkpoint&&Me.checkpoint.uploadId)){at.next=8;break}return Oe&&fe(Oe)&&(Me.checkpoint.file=Oe),at.next=7,this._resumeMultipart(Me.checkpoint,Me);case 7:return at.abrupt("return",at.sent);case 8:return Se=102400,Me.mime||(fe(Oe)?Me.mime=x.getType(se.extname(Oe.name)):ae(Oe)?Me.mime=Oe.type:he(Oe)?Me.mime="":Me.mime=x.getType(se.extname(Oe))),Me.headers=Me.headers||{},this._convertMetaToHeaders(Me.meta,Me.headers),at.next=14,this._getFileSize(Oe);case 14:if(je=at.sent,!(je<Se)){at.next=26;break}return Me.contentLength=je,at.next=19,this.put(Ee,Oe,Me);case 19:if(Ze=at.sent,!(Me&&Me.progress)){at.next=23;break}return at.next=23,Me.progress(1);case 23:return Xe={res:Ze.res,bucket:this.options.bucket,name:Ee,etag:Ze.res.headers.etag},(Me.headers&&Me.headers["x-oss-callback"]||Me.callback)&&(Xe.data=Ze.data),at.abrupt("return",Xe);case 26:if(!(Me.partSize&&parseInt(Me.partSize,10)!==Me.partSize)){at.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Me.partSize&&Me.partSize<Se)){at.next=30;break}throw new Error("partSize must not be smaller than ".concat(Se));case 30:return at.next=32,this.initMultipartUpload(Ee,Me);case 32:if($e=at.sent,lt=$e.uploadId,Re=this._getPartSize(je,Me.partSize),We={file:Oe,name:Ee,fileSize:je,partSize:Re,uploadId:lt,doneParts:[]},!(Me&&Me.progress)){at.next=39;break}return at.next=39,Me.progress(0,We,$e.res);case 39:return at.next=41,this._resumeMultipart(We,Me);case 41:return at.abrupt("return",at.sent);case 42:case"end":return at.stop()}},be,this)}));function ve(be,Ee){return Ae.apply(this,arguments)}return ve}(),ce._resumeMultipart=function(){var Ae=(0,le.default)(ie.default.mark(function be(Ee,Oe){var Me,Se,je,Ze,Xe,$e,lt,Re,We,rt,ot,at,Je,Qe,Ve,ct,tt,ut,st;return ie.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(Me=this,!this.isCancel()){Be.next=3;break}throw this._makeCancelEvent();case 3:return Se=Ee.file,je=Ee.fileSize,Ze=Ee.partSize,Xe=Ee.uploadId,$e=Ee.doneParts,lt=Ee.name,Re=[],$e.length>0&&re($e).to(Re),We=this._divideParts(je,Ze),rt=We.length,ot=!1,at=function(Ie,Ye){return new Promise(function(){var ft=(0,le.default)(ie.default.mark(function mt(nt,_e){var Pe,He,it,Te,xe;return ie.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:if(Le.prev=0,Ie.isCancel()){Le.next=29;break}return Pe=We[Ye-1],Le.next=5,Ie._createBuffer(Se,Pe.start,Pe.end);case 5:return He=Le.sent,it={content:He,size:Pe.end-Pe.start},Le.prev=7,Le.next=10,Ie._uploadPart(lt,Xe,Ye,it,Oe);case 10:Te=Le.sent,Le.next=18;break;case 13:if(Le.prev=13,Le.t0=Le.catch(7),Le.t0.status!==404){Le.next=17;break}throw Ie._makeAbortEvent();case 17:throw Le.t0;case 18:if(!(!Ie.isCancel()&&!ot)){Le.next=26;break}if(Ee.doneParts.push({number:Ye,etag:Te.res.headers.etag}),!Oe.progress){Le.next=23;break}return Le.next=23,Oe.progress($e.length/(rt+1),Ee,Te.res);case 23:nt({number:Ye,etag:Te.res.headers.etag}),Le.next=27;break;case 26:nt();case 27:Le.next=30;break;case 29:nt();case 30:Le.next=41;break;case 32:Le.prev=32,Le.t1=Le.catch(0),xe=new Error,xe.name=Le.t1.name,xe.message=Le.t1.message,xe.stack=Le.t1.stack,xe.partNum=Ye,re(Le.t1).to(xe),_e(xe);case 41:case"end":return Le.stop()}},mt,null,[[0,32],[7,13]])}));return function(mt,nt){return ft.apply(this,arguments)}}())},Je=Array.from(new Array(rt),function(Ke,Ie){return Ie+1}),Qe=Re.map(function(Ke){return Ke.number}),Ve=Je.filter(function(Ke){return Qe.indexOf(Ke)<0}),ct=5,tt=Oe.parallel||ct,Be.next=17,this._parallel(Ve,tt,function(Ke){return new Promise(function(Ie,Ye){at(Me,Ke).then(function(ft){ft&&Re.push(ft),Ie()}).catch(function(ft){Ye(ft)})})});case 17:if(ut=Be.sent,ot=!0,st=ut.find(function(Ke){return Ke.name==="abort"}),!st){Be.next=22;break}throw st;case 22:if(!this.isCancel()){Be.next=25;break}throw at=null,this._makeCancelEvent();case 25:if(!(ut&&ut.length>0)){Be.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 Be.next=30,this.completeMultipartUpload(lt,Xe,Re,Oe);case 30:return Be.abrupt("return",Be.sent);case 31:case"end":return Be.stop()}},be,this)}));function ve(be,Ee){return Ae.apply(this,arguments)}return ve}(),ce._getFileSize=function(){var Ae=(0,le.default)(ie.default.mark(function be(Ee){return ie.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:if(!he(Ee)){Me.next=4;break}return Me.abrupt("return",Ee.length);case 4:if(!(ae(Ee)||fe(Ee))){Me.next=6;break}return Me.abrupt("return",Ee.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Me.stop()}},be)}));function ve(be){return Ae.apply(this,arguments)}return ve}();var pe=y("stream"),Ce=pe.Readable;function ke(Ae,ve){if(!(this instanceof ke))return new ke(Ae,ve);Ce.call(this,ve),this.file=Ae,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}z.inherits(ke,Ce),ke.prototype.readFileAndPush=function(ve){if(this.fileBuffer)for(var be=!0;be&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Ee=this.start,Oe=Ee+ve;Oe=Oe>this.fileBuffer.length?this.fileBuffer.length:Oe,this.start=Oe,be=this.push(this.fileBuffer.slice(Ee,Oe))}},ke.prototype._read=function(ve){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 be=16*1024;ve=ve||be;var Ee=this;this.reader.onload=function(Me){Ee.fileBuffer=ee.from(new Uint8Array(Me.target.result)),Ee.file=null,Ee.readFileAndPush(ve)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ve)};function De(Ae){return Ae.arrayBuffer?Ae.arrayBuffer():new Promise(function(ve,be){var Ee=new FileReader;Ee.onload=function(Oe){ve(Oe.target.result)},Ee.onerror=function(Oe){be(Oe)},Ee.readAsArrayBuffer(Ae)})}ce._createBuffer=function(){var Ae=(0,le.default)(ie.default.mark(function be(Ee,Oe,Me){var Se,je;return ie.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(!(ae(Ee)||fe(Ee))){Xe.next=8;break}return Se=Ee.slice(Oe,Me),Xe.next=4,De(Se);case 4:return je=Xe.sent,Xe.abrupt("return",ee.from(je));case 8:if(!he(Ee)){Xe.next=12;break}return Xe.abrupt("return",Ee.subarray(Oe,Me));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Xe.stop()}},be)}));function ve(be,Ee,Oe){return Ae.apply(this,arguments)}return ve}(),ce._getPartSize=function(ve,be){var Ee=1e4,Oe=1*1024*1024;be||(be=Oe);var Me=Math.ceil(ve/Ee);return be<Me&&(be=Me,console.warn("partSize has been set to ".concat(be,", because the partSize you provided causes partNumber to be greater than 10,000"))),be},ce._divideParts=function(ve,be){for(var Ee=Math.ceil(ve/be),Oe=[],Me=0;Me<Ee;Me++){var Se=be*Me,je=Math.min(Se+be,ve);Oe.push({start:Se,end:je})}return Oe}}).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,we,ge){"use strict";var ee=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 E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("fs"),z=y("copy-to"),se=y("path"),x=y("mime"),re=y("../common/callback"),te=y("merge-descriptors"),ae=y("../common/utils/isBlob"),ue=ae.isBlob,fe=y("../common/utils/isFile"),de=fe.isFile,he=y("../common/utils/isBuffer"),ce=he.isBuffer,pe=y("../common/utils/obj2xml"),Ce=pe.obj2xml,ke=ge;ke.append=function(){var De=(0,ie.default)(E.default.mark(function ve(be,Ee,Oe){var Me;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return Oe=Oe||{},Oe.position===void 0&&(Oe.position="0"),Oe.subres={append:"",position:Oe.position},Oe.method="POST",je.next=6,this.put(be,Ee,Oe);case 6:return Me=je.sent,Me.nextAppendPosition=Me.res.headers["x-oss-next-append-position"],je.abrupt("return",Me);case 9:case"end":return je.stop()}},ve,this)}));function Ae(ve,be,Ee){return De.apply(this,arguments)}return Ae}(),ke.put=function(){var De=(0,ie.default)(E.default.mark(function ve(be,Ee,Oe){var Me,Se,je,Ze,Xe;return E.default.wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(Oe=Oe||{},Oe.disabledMD5=Oe.disabledMD5===void 0?!0:!!Oe.disabledMD5,Oe.headers=Oe.headers||{},be=this._objectName(be),!ce(Ee)){lt.next=8;break}Me=Ee,lt.next=19;break;case 8:if(!(ue(Ee)||de(Ee))){lt.next=18;break}return Oe.mime||(de(Ee)?Oe.mime=x.getType(se.extname(Ee.name)):Oe.mime=Ee.type),lt.next=12,this._createBuffer(Ee,0,Ee.size);case 12:return Me=lt.sent,lt.next=15,this._getFileSize(Ee);case 15:Oe.contentLength=lt.sent,lt.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(Oe.meta,Oe.headers),Se=Oe.method||"PUT",je=this._objectRequestParams(Se,be,Oe),re.encodeCallback(je,Oe),je.mime=Oe.mime,je.disabledMD5=Oe.disabledMD5,je.content=Me,je.successStatuses=[200],lt.next=29,this.request(je);case 29:return Ze=lt.sent,Xe={name:be,url:this._objectUrl(be),res:Ze.res},je.headers&&je.headers["x-oss-callback"]&&(Xe.data=JSON.parse(Ze.data.toString())),lt.abrupt("return",Xe);case 33:case"end":return lt.stop()}},ve,this)}));function Ae(ve,be,Ee){return De.apply(this,arguments)}return Ae}(),ke.putStream=function(){var De=(0,ie.default)(E.default.mark(function ve(be,Ee,Oe){var Me,Se,je,Ze;return E.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Oe=Oe||{},Oe.headers=Oe.headers||{},be=this._objectName(be),Oe.contentLength?Oe.headers["Content-Length"]=Oe.contentLength:Oe.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Oe.meta,Oe.headers),Me=Oe.method||"PUT",Se=this._objectRequestParams(Me,be,Oe),re.encodeCallback(Se,Oe),Se.mime=Oe.mime,Se.stream=Ee,Se.successStatuses=[200],$e.next=13,this.request(Se);case 13:return je=$e.sent,Ze={name:be,url:this._objectUrl(be),res:je.res},Se.headers&&Se.headers["x-oss-callback"]&&(Ze.data=JSON.parse(je.data.toString())),$e.abrupt("return",Ze);case 17:case"end":return $e.stop()}},ve,this)}));function Ae(ve,be,Ee){return De.apply(this,arguments)}return Ae}(),te(ke,y("../common/object/copyObject")),te(ke,y("../common/object/getObjectTagging")),te(ke,y("../common/object/putObjectTagging")),te(ke,y("../common/object/deleteObjectTagging")),te(ke,y("../common/image")),te(ke,y("../common/object/getBucketVersions")),te(ke,y("../common/object/getACL")),te(ke,y("../common/object/putACL")),te(ke,y("../common/object/head")),te(ke,y("../common/object/delete")),te(ke,y("../common/object/get")),te(ke,y("../common/object/putSymlink")),te(ke,y("../common/object/getSymlink")),te(ke,y("../common/object/deleteMulti")),te(ke,y("../common/object/getObjectMeta")),te(ke,y("../common/object/getObjectUrl")),te(ke,y("../common/object/generateObjectUrl")),te(ke,y("../common/object/signatureUrl")),te(ke,y("../common/object/asyncSignatureUrl")),ke.putMeta=function(){var De=(0,ie.default)(E.default.mark(function ve(be,Ee,Oe){var Me;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return je.next=2,this.copy(be,be,{meta:Ee||{},timeout:Oe&&Oe.timeout,ctx:Oe&&Oe.ctx});case 2:return Me=je.sent,je.abrupt("return",Me);case 4:case"end":return je.stop()}},ve,this)}));function Ae(ve,be,Ee){return De.apply(this,arguments)}return Ae}(),ke.list=function(){var De=(0,ie.default)(E.default.mark(function ve(be,Ee){var Oe,Me,Se,je,Ze;return E.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:return Oe=this._objectRequestParams("GET","",Ee),Oe.query=be,Oe.xmlResponse=!0,Oe.successStatuses=[200],$e.next=6,this.request(Oe);case 6:return Me=$e.sent,Se=Me.data.Contents||[],je=this,Se&&(Array.isArray(Se)||(Se=[Se]),Se=Se.map(function(lt){return{name:lt.Key,url:je._objectUrl(lt.Key),lastModified:lt.LastModified,etag:lt.ETag,type:lt.Type,size:Number(lt.Size),storageClass:lt.StorageClass,owner:{id:lt.Owner.ID,displayName:lt.Owner.DisplayName}}})),Ze=Me.data.CommonPrefixes||null,Ze&&(Array.isArray(Ze)||(Ze=[Ze]),Ze=Ze.map(function(lt){return lt.Prefix})),$e.abrupt("return",{res:Me.res,objects:Se,prefixes:Ze,nextMarker:Me.data.NextMarker||null,isTruncated:Me.data.IsTruncated==="true"});case 13:case"end":return $e.stop()}},ve,this)}));function Ae(ve,be){return De.apply(this,arguments)}return Ae}(),ke.listV2=function(){var De=(0,ie.default)(E.default.mark(function ve(be){var Ee,Oe,Me,Se,je,Ze,Xe,$e=arguments;return E.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ee=$e.length>1&&$e[1]!==void 0?$e[1]:{},Oe=be["continuation-token"]||be.continuationToken,Oe&&(Ee.subres=Object.assign({"continuation-token":Oe},Ee.subres)),Me=this._objectRequestParams("GET","",Ee),Me.query=Object.assign({"list-type":2},be),delete Me.query["continuation-token"],delete Me.query.continuationToken,Me.xmlResponse=!0,Me.successStatuses=[200],Re.next=11,this.request(Me);case 11:return Se=Re.sent,je=Se.data.Contents||[],Ze=this,je&&(Array.isArray(je)||(je=[je]),je=je.map(function(We){var rt=null;return We.Owner&&(rt={id:We.Owner.ID,displayName:We.Owner.DisplayName}),{name:We.Key,url:Ze._objectUrl(We.Key),lastModified:We.LastModified,etag:We.ETag,type:We.Type,size:Number(We.Size),storageClass:We.StorageClass,owner:rt}})),Xe=Se.data.CommonPrefixes||null,Xe&&(Array.isArray(Xe)||(Xe=[Xe]),Xe=Xe.map(function(We){return We.Prefix})),Re.abrupt("return",{res:Se.res,objects:je,prefixes:Xe,isTruncated:Se.data.IsTruncated==="true",keyCount:+Se.data.KeyCount,continuationToken:Se.data.ContinuationToken||null,nextContinuationToken:Se.data.NextContinuationToken||null});case 18:case"end":return Re.stop()}},ve,this)}));function Ae(ve){return De.apply(this,arguments)}return Ae}(),ke.restore=function(){var De=(0,ie.default)(E.default.mark(function ve(be){var Ee,Oe,Me,Se,je=arguments;return E.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Ee=je.length>1&&je[1]!==void 0?je[1]:{type:"Archive"},Ee=Ee||{},Ee.subres=Object.assign({restore:""},Ee.subres),Ee.versionId&&(Ee.subres.versionId=Ee.versionId),Oe=this._objectRequestParams("POST",be,Ee),Ee.type==="ColdArchive"&&(Me={RestoreRequest:{Days:Ee.Days?Ee.Days:2,JobParameters:{Tier:Ee.JobParameters?Ee.JobParameters:"Standard"}}},Oe.content=Ce(Me,{headers:!0}),Oe.mime="xml"),Oe.successStatuses=[202],Xe.next=9,this.request(Oe);case 9:return Se=Xe.sent,Xe.abrupt("return",{res:Se.res});case 11:case"end":return Xe.stop()}},ve,this)}));function Ae(ve){return De.apply(this,arguments)}return Ae}(),ke._objectUrl=function(Ae){return this._getReqUrl({bucket:this.options.bucket,object:Ae})},ke._objectRequestParams=function(Ae,ve,be){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");be=be||{},ve=this._objectName(ve);var Ee={object:ve,bucket:this.options.bucket,method:Ae,subres:be&&be.subres,timeout:be&&be.timeout,ctx:be&&be.ctx};return be.headers&&(Ee.headers={},z(be.headers).to(Ee.headers)),Ee},ke._objectName=function(Ae){return Ae.replace(/^\/+/,"")},ke._convertMetaToHeaders=function(Ae,ve){Ae&&Object.keys(Ae).forEach(function(be){ve["x-oss-meta-".concat(be)]=Ae[be]})},ke._deleteFileSafe=function(Ae){var ve=this;return new Promise(function(be){le.exists(Ae,function(Ee){Ee?le.unlink(Ae,function(Oe){Oe&&ve.debug("unlink %j error: %s",Ae,Oe,"error"),be()}):be()})})}},{"../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,we,ge){"use strict";ge.version="6.18.1"},{}],7:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.abortBucketWorm=void 0;var le=y("../utils/checkBucketName");function z(x,re){return se.apply(this,arguments)}function se(){return se=(0,ie.default)(E.default.mark(function x(re,te){var ae,ue;return E.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return le.checkBucketName(re),ae=this._bucketRequestParams("DELETE",re,"worm",te),de.next=4,this.request(ae);case 4:return ue=de.sent,de.abrupt("return",{res:ue.res,status:ue.status});case 6:case"end":return de.stop()}},x,this)})),se.apply(this,arguments)}ge.abortBucketWorm=z},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.completeBucketWorm=void 0;var le=y("../utils/checkBucketName");function z(x,re,te){return se.apply(this,arguments)}function se(){return se=(0,ie.default)(E.default.mark(function x(re,te,ae){var ue,fe;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return le.checkBucketName(re),ue=this._bucketRequestParams("POST",re,{wormId:te},ae),he.next=4,this.request(ue);case 4:return fe=he.sent,he.abrupt("return",{res:fe.res,status:fe.status});case 6:case"end":return he.stop()}},x,this)})),se.apply(this,arguments)}ge.completeBucketWorm=z},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.deleteBucketInventory=void 0;var le=y("../utils/checkBucketName");function z(x,re){return se.apply(this,arguments)}function se(){return se=(0,ie.default)(E.default.mark(function x(re,te){var ae,ue,fe,de,he=arguments;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return ae=he.length>2&&he[2]!==void 0?he[2]:{},ue=Object.assign({inventory:"",inventoryId:te},ae.subres),le.checkBucketName(re),fe=this._bucketRequestParams("DELETE",re,ue,ae),fe.successStatuses=[204],pe.next=7,this.request(fe);case 7:return de=pe.sent,pe.abrupt("return",{status:de.status,res:de.res});case 9:case"end":return pe.stop()}},x,this)})),se.apply(this,arguments)}ge.deleteBucketInventory=z},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=ge;se.deleteBucketLifecycle=function(){var x=(0,ie.default)(E.default.mark(function te(ae,ue){var fe,de;return E.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return z(ae),fe=this._bucketRequestParams("DELETE",ae,"lifecycle",ue),fe.successStatuses=[204],ce.next=5,this.request(fe);case 5:return de=ce.sent,ce.abrupt("return",{res:de.res});case 7:case"end":return ce.stop()}},te,this)}));function re(te,ae){return x.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=ge;se.deleteBucketWebsite=function(){var x=(0,ie.default)(E.default.mark(function te(ae,ue){var fe,de;return E.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return z(ae),fe=this._bucketRequestParams("DELETE",ae,"website",ue),fe.successStatuses=[204],ce.next=5,this.request(fe);case 5:return de=ce.sent,ce.abrupt("return",{res:de.res});case 7:case"end":return ce.stop()}},te,this)}));function re(te,ae){return x.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.extendBucketWorm=void 0;var le=y("../utils/checkBucketName"),z=y("../utils/obj2xml");function se(re,te,ae,ue){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function re(te,ae,ue,fe){var de,he,ce;return E.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return le.checkBucketName(te),de=this._bucketRequestParams("POST",te,{wormExtend:"",wormId:ae},fe),he={ExtendWormConfiguration:{RetentionPeriodInDays:ue}},de.mime="xml",de.content=z.obj2xml(he,{headers:!0}),de.successStatuses=[200],Ce.next=8,this.request(de);case 8:return ce=Ce.sent,Ce.abrupt("return",{res:ce.res,status:ce.status});case 10:case"end":return Ce.stop()}},re,this)})),x.apply(this,arguments)}ge.extendBucketWorm=se},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.getBucketInventory=void 0;var le=y("../utils/checkBucketName"),z=y("../utils/formatInventoryConfig");function se(re,te){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function re(te,ae){var ue,fe,de,he,ce=arguments;return E.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=ce.length>2&&ce[2]!==void 0?ce[2]:{},fe=Object.assign({inventory:"",inventoryId:ae},ue.subres),le.checkBucketName(te),de=this._bucketRequestParams("GET",te,fe,ue),de.successStatuses=[200],de.xmlResponse=!0,Ce.next=8,this.request(de);case 8:return he=Ce.sent,Ce.abrupt("return",{status:he.status,res:he.res,inventory:z.formatInventoryConfig(he.data)});case 10:case"end":return Ce.stop()}},re,this)})),x.apply(this,arguments)}ge.getBucketInventory=se},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=y("../utils/isArray"),x=se.isArray,re=y("../utils/formatObjKey"),te=re.formatObjKey,ae=ge;ae.getBucketLifecycle=function(){var ue=(0,ie.default)(E.default.mark(function de(he,ce){var pe,Ce,ke;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return z(he),pe=this._bucketRequestParams("GET",he,"lifecycle",ce),pe.successStatuses=[200],pe.xmlResponse=!0,Ae.next=6,this.request(pe);case 6:return Ce=Ae.sent,ke=Ce.data.Rule||null,ke&&(x(ke)||(ke=[ke]),ke=ke.map(function(ve){return ve.ID&&(ve.id=ve.ID,delete ve.ID),ve.Tag&&!x(ve.Tag)&&(ve.Tag=[ve.Tag]),te(ve,"firstLowerCase")})),Ae.abrupt("return",{rules:ke,res:Ce.res});case 10:case"end":return Ae.stop()}},de,this)}));function fe(de,he){return ue.apply(this,arguments)}return fe}()},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=ge;se.getBucketVersioning=function(){var x=(0,ie.default)(E.default.mark(function te(ae,ue){var fe,de,he;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return z(ae),fe=this._bucketRequestParams("GET",ae,"versioning",ue),fe.xmlResponse=!0,fe.successStatuses=[200],pe.next=6,this.request(fe);case 6:return de=pe.sent,he=de.data.Status,pe.abrupt("return",{status:de.status,versionStatus:he,res:de.res});case 9:case"end":return pe.stop()}},te,this)}));function re(te,ae){return x.apply(this,arguments)}return re}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=y("../utils/isObject"),x=se.isObject,re=ge;re.getBucketWebsite=function(){var te=(0,ie.default)(E.default.mark(function ue(fe,de){var he,ce,pe;return E.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return z(fe),he=this._bucketRequestParams("GET",fe,"website",de),he.successStatuses=[200],he.xmlResponse=!0,ke.next=6,this.request(he);case 6:return ce=ke.sent,pe=[],ce.data.RoutingRules&&ce.data.RoutingRules.RoutingRule&&(x(ce.data.RoutingRules.RoutingRule)?pe=[ce.data.RoutingRules.RoutingRule]:pe=ce.data.RoutingRules.RoutingRule),ke.abrupt("return",{index:ce.data.IndexDocument&&ce.data.IndexDocument.Suffix||"",supportSubDir:ce.data.IndexDocument&&ce.data.IndexDocument.SupportSubDir||"false",type:ce.data.IndexDocument&&ce.data.IndexDocument.Type,routingRules:pe,error:ce.data.ErrorDocument&&ce.data.ErrorDocument.Key||null,res:ce.res});case 10:case"end":return ke.stop()}},ue,this)}));function ae(ue,fe){return te.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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.getBucketWorm=void 0;var le=y("../utils/checkBucketName"),z=y("../utils/dataFix");function se(re,te){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function re(te,ae){var ue,fe;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return le.checkBucketName(te),ue=this._bucketRequestParams("GET",te,"worm",ae),ue.successStatuses=[200],ue.xmlResponse=!0,he.next=6,this.request(ue);case 6:return fe=he.sent,z.dataFix(fe.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),he.abrupt("return",Object.assign(Object.assign({},fe.data),{res:fe.res,status:fe.status}));case 9:case"end":return he.stop()}},re,this)})),x.apply(this,arguments)}ge.getBucketWorm=se},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.initiateBucketWorm=void 0;var le=y("../utils/obj2xml"),z=y("../utils/checkBucketName");function se(re,te,ae){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function re(te,ae,ue){var fe,de,he;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return z.checkBucketName(te),fe=this._bucketRequestParams("POST",te,"worm",ue),de={InitiateWormConfiguration:{RetentionPeriodInDays:ae}},fe.mime="xml",fe.content=le.obj2xml(de,{headers:!0}),fe.successStatuses=[200],pe.next=8,this.request(fe);case 8:return he=pe.sent,pe.abrupt("return",{res:he.res,wormId:he.res.headers["x-oss-worm-id"],status:he.status});case 10:case"end":return pe.stop()}},re,this)})),x.apply(this,arguments)}ge.initiateBucketWorm=se},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.listBucketInventory=void 0;var le=y("../utils/checkBucketName"),z=y("../utils/formatInventoryConfig");function se(re){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function re(te){var ae,ue,fe,de,he,ce,pe,Ce,ke=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return ae=ke.length>1&&ke[1]!==void 0?ke[1]:{},ue=ae.continuationToken,fe=Object.assign({inventory:""},ue&&{"continuation-token":ue},ae.subres),le.checkBucketName(te),de=this._bucketRequestParams("GET",te,fe,ae),de.successStatuses=[200],de.xmlResponse=!0,Ae.next=9,this.request(de);case 9:return he=Ae.sent,ce=he.data,pe=he.res,Ce=he.status,Ae.abrupt("return",{isTruncated:ce.IsTruncated==="true",nextContinuationToken:ce.NextContinuationToken,inventoryList:z.formatInventoryConfig(ce.InventoryConfiguration,!0),status:Ce,res:pe});case 12:case"end":return Ae.stop()}},re,this)})),x.apply(this,arguments)}ge.listBucketInventory=se},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.putBucketInventory=void 0;var le=y("../utils/checkBucketName"),z=y("../utils/obj2xml");function se(re,te){return x.apply(this,arguments)}function x(){return x=(0,ie.default)(E.default.mark(function re(te,ae){var ue,fe,de,he,ce,pe,Ce,ke,De,Ae,ve,be=arguments;return E.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ue=be.length>2&&be[2]!==void 0?be[2]:{},fe=Object.assign({inventory:"",inventoryId:ae.id},ue.subres),le.checkBucketName(te),de=ae.OSSBucketDestination,he=ae.optionalFields,ce=ae.includedObjectVersions,pe="acs:oss:::",Ce="acs:ram::".concat(de.accountId,":role/"),ke={InventoryConfiguration:{Id:ae.id,IsEnabled:ae.isEnabled,Filter:{Prefix:ae.prefix||""},Destination:{OSSBucketDestination:{Format:de.format,AccountId:de.accountId,RoleArn:"".concat(Ce).concat(de.rolename),Bucket:"".concat(pe).concat(de.bucket),Prefix:de.prefix||"",Encryption:de.encryption||""}},Schedule:{Frequency:ae.frequency},IncludedObjectVersions:ce,OptionalFields:{Field:(he==null?void 0:he.field)||[]}}},De=z.obj2xml(ke,{headers:!0,firstUpperCase:!0}),Ae=this._bucketRequestParams("PUT",te,fe,ue),Ae.successStatuses=[200],Ae.mime="xml",Ae.content=De,Oe.next=14,this.request(Ae);case 14:return ve=Oe.sent,Oe.abrupt("return",{status:ve.status,res:ve.res});case 16:case"end":return Oe.stop()}},re,this)})),x.apply(this,arguments)}ge.putBucketInventory=se},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=y("../utils/isArray"),x=se.isArray,re=y("../utils/deepCopy"),te=re.deepCopy,ae=y("../utils/isObject"),ue=ae.isObject,fe=y("../utils/obj2xml"),de=fe.obj2xml,he=y("../utils/checkObjectTag"),ce=he.checkObjectTag,pe=y("../utils/getStrBytesCount"),Ce=pe.getStrBytesCount,ke=ge;ke.putBucketLifecycle=function(){var Ee=(0,ie.default)(E.default.mark(function Me(Se,je,Ze){var Xe,$e,lt,Re,We;return E.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(z(Se),x(je)){ot.next=3;break}throw new Error("rules must be Array");case 3:return Xe=this._bucketRequestParams("PUT",Se,"lifecycle",Ze),$e=[],lt={LifecycleConfiguration:{Rule:$e}},je.forEach(function(at){De(at),be(at),at.id&&(at.ID=at.id,delete at.id),$e.push(at)}),Re=de(lt,{headers:!0,firstUpperCase:!0}),Xe.content=Re,Xe.mime="xml",Xe.successStatuses=[200],ot.next=13,this.request(Xe);case 13:return We=ot.sent,ot.abrupt("return",{res:We.res});case 15:case"end":return ot.stop()}},Me,this)}));function Oe(Me,Se,je){return Ee.apply(this,arguments)}return Oe}();function De(Ee){Ee.days&&(Ee.expiration={days:Ee.days}),Ee.date&&(Ee.expiration={createdBeforeDate:Ee.date})}function Ae(Ee,Oe){var Me=Ee.days,Se=Ee.createdBeforeDate;if(!Me&&!Se)throw new Error("".concat(Oe," must includes days or createdBeforeDate"));if(Me&&!/^[1-9][0-9]*$/.test(Me))throw new Error("days must be a positive integer");if(Se&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Se))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function ve(Ee){if(!x(Ee)&&!ue(Ee))throw new Error("tag must be Object or Array");Ee=ue(Ee)?[Ee]:Ee;var Oe={},Me=te(Ee);Me.forEach(function(Se){Oe[Se.key]=Se.value}),ce(Oe)}function be(Ee){if(Ee.id&&Ce(Ee.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Ee.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Ee.status))throw new Error("Status must be Enabled or Disabled");if(Ee.transition){if(!["IA","Archive"].includes(Ee.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Ae(Ee.transition,"Transition")}if(Ee.expiration){if(!Ee.expiration.expiredObjectDeleteMarker)Ae(Ee.expiration,"Expiration");else if(Ee.expiration.days||Ee.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Ee.abortMultipartUpload&&Ae(Ee.abortMultipartUpload,"AbortMultipartUpload"),!Ee.expiration&&!Ee.abortMultipartUpload&&!Ee.transition&&!Ee.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Ee.tag){if(Ee.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");ve(Ee.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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=y("../utils/obj2xml"),x=se.obj2xml,re=ge;re.putBucketVersioning=function(){var te=(0,ie.default)(E.default.mark(function ue(fe,de){var he,ce,pe,Ce,ke=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(he=ke.length>2&&ke[2]!==void 0?ke[2]:{},z(fe),["Enabled","Suspended"].includes(de)){Ae.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return ce=this._bucketRequestParams("PUT",fe,"versioning",he),pe={VersioningConfiguration:{Status:de}},ce.mime="xml",ce.content=x(pe,{headers:!0}),Ae.next=10,this.request(ce);case 10:return Ce=Ae.sent,Ae.abrupt("return",{res:Ce.res,status:Ce.status});case 12:case"end":return Ae.stop()}},ue,this)}));function ae(ue,fe){return te.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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=y("../utils/obj2xml"),x=se.obj2xml,re=y("../utils/isArray"),te=re.isArray,ae=ge;ae.putBucketWebsite=function(){var ue=(0,ie.default)(E.default.mark(function de(he){var ce,pe,Ce,ke,De,Ae,ve,be=arguments;return E.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(ce=be.length>1&&be[1]!==void 0?be[1]:{},pe=be.length>2?be[2]:void 0,z(he),Ce=this._bucketRequestParams("PUT",he,"website",pe),ke={Suffix:ce.index||"index.html"},De={IndexDocument:ke},Ae={WebsiteConfiguration:De},ce.supportSubDir&&(ke.SupportSubDir=ce.supportSubDir),ce.type&&(ke.Type=ce.type),ce.error&&(De.ErrorDocument={Key:ce.error}),ce.routingRules===void 0){Oe.next=14;break}if(te(ce.routingRules)){Oe.next=13;break}throw new Error("RoutingRules must be Array");case 13:De.RoutingRules={RoutingRule:ce.routingRules};case 14:return Ae=x(Ae),Ce.content=Ae,Ce.mime="xml",Ce.successStatuses=[200],Oe.next=20,this.request(Ce);case 20:return ve=Oe.sent,Oe.abrupt("return",{res:ve.res});case 22:case"end":return Oe.stop()}},de,this)}));function fe(de){return ue.apply(this,arguments)}return fe}()},{"../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,we,ge){(function(ee){(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"),ge.encodeCallback=function(ie,le){if(ie.headers=ie.headers||{},!Object.prototype.hasOwnProperty.call(ie.headers,"x-oss-callback")&&le.callback){var z={callbackUrl:encodeURI(le.callback.url),callbackBody:le.callback.body};le.callback.host&&(z.callbackHost=le.callback.host),le.callback.contentType&&(z.callbackBodyType=le.callback.contentType);var se=ee.from(JSON.stringify(z)).toString("base64");if(ie.headers["x-oss-callback"]=se,le.callback.customValue){var x={};Object.keys(le.callback.customValue).forEach(function(re){x["x:".concat(re)]=le.callback.customValue[re].toString()}),ie.headers["x-oss-callback-var"]=ee.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,we,ge){"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 ee=function(te){return te&&te.__esModule?te:{default:te}};Object.defineProperty(ge,"__esModule",{value:!0}),ge.getReqUrl=void 0;var E=ee(y("copy-to")),ie=ee(y("url")),le=ee(y("merge-descriptors")),z=ee(y("is-type-of")),se=y("../utils/isIP"),x=y("../utils/checkConfigValid");function re(te){var ae={},ue=this.options.cname;x.checkConfigValid(this.options.endpoint,"endpoint"),E.default(this.options.endpoint,!1).to(ae),te.bucket&&!ue&&!se.isIP(ae.hostname)&&!this.options.sldEnable&&(ae.host="".concat(te.bucket,".").concat(ae.host));var fe="/";te.bucket&&this.options.sldEnable&&(fe+="".concat(te.bucket,"/")),te.object&&(fe+=this._escape(te.object).replace(/\+/g,"%2B")),ae.pathname=fe;var de={};if(te.query&&le.default(de,te.query),te.subres){var he={};z.default.string(te.subres)?he[te.subres]="":z.default.array(te.subres)?te.subres.forEach(function(ce){he[ce]=""}):he=te.subres,le.default(de,he)}return ae.query=de,ie.default.format(ae)}ge.getReqUrl=re},{"../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,we,ge){"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 ee=y("humanize-ms"),E=y("url"),ie=y("../utils/checkBucketName"),le=ie.checkBucketName,z=y("../utils/setRegion"),se=z.setRegion,x=y("../utils/checkConfigValid"),re=x.checkConfigValid;function te(ae,ue){re(ae,"endpoint");var fe=E.parse(ae);if(fe.protocol||(fe=E.parse("http".concat(ue?"s":"","://").concat(ae))),fe.protocol!=="http:"&&fe.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return fe}we.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&&le(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=ee(ue.timeout)),ue.endpoint)ue.endpoint=te(ue.endpoint,ue.secure);else if(ue.region)ue.endpoint=se(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,we,ge){"use strict";var ee=y("merge-descriptors"),E=ge;ee(E,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkBucketName"),z=le.checkBucketName,se=y("querystring"),x=y("js-base64"),re=x.Base64.encode,te=ge;te.processObjectSave=function(){var ue=(0,ie.default)(E.default.mark(function de(he,ce,pe,Ce){var ke,De,Ae,ve;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ae(he,"sourceObject"),ae(ce,"targetObject"),ae(pe,"process"),ce=this._objectName(ce),Ce&&z(Ce),ke=this._objectRequestParams("POST",he,{subres:"x-oss-process"}),De=Ce?",b_".concat(re(Ce)):"",ce=re(ce),Ae={"x-oss-process":"".concat(pe,"|sys/saveas,o_").concat(ce).concat(De)},ke.content=se.stringify(Ae),Ee.next=12,this.request(ke);case 12:return ve=Ee.sent,Ee.abrupt("return",{res:ve.res,status:ve.res.status});case 14:case"end":return Ee.stop()}},de,this)}));function fe(de,he,ce,pe){return ue.apply(this,arguments)}return fe}();function ae(ue,fe){if(!ue)throw new Error("".concat(fe," is required"));if(typeof ue!="string")throw new Error("".concat(fe," 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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("debug")("ali-oss:multipart-copy"),z=y("copy-to"),se=ge;se.uploadPartCopy=function(){var x=(0,ie.default)(E.default.mark(function te(ae,ue,fe,de,he){var ce,pe,Ce,ke,De,Ae=arguments;return E.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ce=Ae.length>5&&Ae[5]!==void 0?Ae[5]:{},ce.headers=ce.headers||{},pe=ce.versionId||ce.subres&&ce.subres.versionId||null,pe?Ce="/".concat(he.sourceBucketName,"/").concat(encodeURIComponent(he.sourceKey),"?versionId=").concat(pe):Ce="/".concat(he.sourceBucketName,"/").concat(encodeURIComponent(he.sourceKey)),ce.headers["x-oss-copy-source"]=Ce,de&&(ce.headers["x-oss-copy-source-range"]="bytes=".concat(de)),ce.subres={partNumber:fe,uploadId:ue},ke=this._objectRequestParams("PUT",ae,ce),ke.mime=ce.mime,ke.successStatuses=[200],be.next=12,this.request(ke);case 12:return De=be.sent,be.abrupt("return",{name:ae,etag:De.res.headers.etag,res:De.res});case 14:case"end":return be.stop()}},te,this)}));function re(te,ae,ue,fe,de){return x.apply(this,arguments)}return re}(),se.multipartUploadCopy=function(){var x=(0,ie.default)(E.default.mark(function te(ae,ue){var fe,de,he,ce,pe,Ce,ke,De,Ae,ve,be,Ee,Oe=arguments;return E.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return fe=Oe.length>2&&Oe[2]!==void 0?Oe[2]:{},this.resetCancelFlag(),de=fe.versionId,he=de===void 0?null:de,ce={versionId:he},Se.next=6,this._getObjectMeta(ue.sourceBucketName,ue.sourceKey,ce);case 6:if(pe=Se.sent,Ce=pe.res.headers["content-length"],ue.startOffset=ue.startOffset||0,ue.endOffset=ue.endOffset||Ce,!(fe.checkpoint&&fe.checkpoint.uploadId)){Se.next=14;break}return Se.next=13,this._resumeMultipartCopy(fe.checkpoint,ue,fe);case 13:return Se.abrupt("return",Se.sent);case 14:if(ke=102400,De=ue.endOffset-ue.startOffset,!(De<ke)){Se.next=18;break}throw new Error("copySize must not be smaller than ".concat(ke));case 18:if(!(fe.partSize&&fe.partSize<ke)){Se.next=20;break}throw new Error("partSize must not be smaller than ".concat(ke));case 20:return Se.next=22,this.initMultipartUpload(ae,fe);case 22:if(Ae=Se.sent,ve=Ae.uploadId,be=this._getPartSize(De,fe.partSize),Ee={name:ae,copySize:De,partSize:be,uploadId:ve,doneParts:[]},!(fe&&fe.progress)){Se.next=29;break}return Se.next=29,fe.progress(0,Ee,Ae.res);case 29:return Se.next=31,this._resumeMultipartCopy(Ee,ue,fe);case 31:return Se.abrupt("return",Se.sent);case 32:case"end":return Se.stop()}},te,this)}));function re(te,ae){return x.apply(this,arguments)}return re}(),se._resumeMultipartCopy=function(){var x=(0,ie.default)(E.default.mark(function te(ae,ue,fe){var de,he,ce,pe,Ce,ke,De,Ae,ve,be,Ee,Oe,Me,Se,je,Ze,Xe,$e,lt,Re,We;return E.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(!this.isCancel()){ot.next=2;break}throw this._makeCancelEvent();case 2:if(de=fe.versionId,he=de===void 0?null:de,ce={versionId:he},pe=ae.copySize,Ce=ae.partSize,ke=ae.uploadId,De=ae.doneParts,Ae=ae.name,ve=this._divideMultipartCopyParts(pe,Ce,ue.startOffset),be=ve.length,Ee={headers:{}},fe.copyheaders&&z(fe.copyheaders).to(Ee.headers),he&&z(ce).to(Ee),Oe=function(Je,Qe,Ve){return new Promise(function(){var ct=(0,ie.default)(E.default.mark(function tt(ut,st){var ze,Be,Ke;return E.default.wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Ye.prev=0,Je.isCancel()){Ye.next=22;break}return ze=ve[Qe-1],Be="".concat(ze.start,"-").concat(ze.end-1),Ye.prev=4,Ye.next=7,Je.uploadPartCopy(Ae,ke,Qe,Be,Ve,Ee);case 7:Ke=Ye.sent,Ye.next=15;break;case 10:if(Ye.prev=10,Ye.t0=Ye.catch(4),Ye.t0.status!==404){Ye.next=14;break}throw Je._makeAbortEvent();case 14:throw Ye.t0;case 15:if(Je.isCancel()){Ye.next=22;break}if(le("content-range ".concat(Ke.res.headers["content-range"])),De.push({number:Qe,etag:Ke.res.headers.etag}),ae.doneParts=De,!(fe&&fe.progress)){Ye.next=22;break}return Ye.next=22,fe.progress(De.length/be,ae,Ke.res);case 22:ut(),Ye.next=29;break;case 25:Ye.prev=25,Ye.t1=Ye.catch(0),Ye.t1.partNum=Qe,st(Ye.t1);case 29:case"end":return Ye.stop()}},tt,null,[[0,25],[4,10]])}));return function(tt,ut){return ct.apply(this,arguments)}}())},Me=Array.from(new Array(be),function(at,Je){return Je+1}),Se=De.map(function(at){return at.number}),je=Me.filter(function(at){return Se.indexOf(at)<0}),Ze=5,Xe=fe.parallel||Ze,!(this.checkBrowserAndVersion("Internet Explorer","10")||Xe===1)){ot.next=28;break}$e=0;case 18:if(!($e<je.length)){ot.next=26;break}if(!this.isCancel()){ot.next=21;break}throw this._makeCancelEvent();case 21:return ot.next=23,Oe(this,je[$e],ue);case 23:$e++,ot.next=18;break;case 26:ot.next=40;break;case 28:return ot.next=30,this._parallelNode(je,Xe,Oe,ue);case 30:if(lt=ot.sent,Re=lt.find(function(at){return at.name==="abort"}),!Re){ot.next=34;break}throw Re;case 34:if(!this.isCancel()){ot.next=36;break}throw this._makeCancelEvent();case 36:if(!(lt&&lt.length>0)){ot.next=40;break}throw We=lt[0],We.message="Failed to copy some parts with error: ".concat(We.toString()," part_num: ").concat(We.partNum),We;case 40:return ot.next=42,this.completeMultipartUpload(Ae,ke,De,fe);case 42:return ot.abrupt("return",ot.sent);case 43:case"end":return ot.stop()}},te,this)}));function re(te,ae,ue){return x.apply(this,arguments)}return re}(),se._divideMultipartCopyParts=function(re,te,ae){for(var ue=Math.ceil(re/te),fe=[],de=0;de<ue;de++){var he=te*de+ae,ce=Math.min(he+te,re+ae);fe.push({start:he,end:ce})}return fe},se._getObjectMeta=function(){var x=(0,ie.default)(E.default.mark(function te(ae,ue,fe){var de,he;return E.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return de=this.getBucket(),this.setBucket(ae),pe.next=4,this.head(ue,fe);case 4:return he=pe.sent,this.setBucket(de),pe.abrupt("return",he);case 7:case"end":return pe.stop()}},te,this)}));function re(te,ae,ue){return x.apply(this,arguments)}return re}()},{"@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,we,ge){(function(ee){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),ie=E(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 le=E(y("@babel/runtime/helpers/asyncToGenerator")),z=y("copy-to"),se=y("./callback"),x=y("./utils/deepCopy"),re=x.deepCopyWith,te=y("./utils/isBuffer"),ae=te.isBuffer,ue=y("./utils/omit"),fe=ue.omit,de=ge;de.listUploads=function(){var he=(0,le.default)(ie.default.mark(function pe(Ce,ke){var De,Ae,ve,be;return ie.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ke=ke||{},De={},z(ke).to(De),De.subres="uploads",Ae=this._objectRequestParams("GET","",De),Ae.query=Ce,Ae.xmlResponse=!0,Ae.successStatuses=[200],Oe.next=10,this.request(Ae);case 10:return ve=Oe.sent,be=ve.data.Upload||[],Array.isArray(be)||(be=[be]),be=be.map(function(Me){return{name:Me.Key,uploadId:Me.UploadId,initiated:Me.Initiated}}),Oe.abrupt("return",{res:ve.res,uploads:be,bucket:ve.data.Bucket,nextKeyMarker:ve.data.NextKeyMarker,nextUploadIdMarker:ve.data.NextUploadIdMarker,isTruncated:ve.data.IsTruncated==="true"});case 15:case"end":return Oe.stop()}},pe,this)}));function ce(pe,Ce){return he.apply(this,arguments)}return ce}(),de.listParts=function(){var he=(0,le.default)(ie.default.mark(function pe(Ce,ke,De,Ae){var ve,be,Ee;return ie.default.wrap(function(Me){for(;;)switch(Me.prev=Me.next){case 0:return Ae=Ae||{},ve={},z(Ae).to(ve),ve.subres={uploadId:ke},be=this._objectRequestParams("GET",Ce,ve),be.query=De,be.xmlResponse=!0,be.successStatuses=[200],Me.next=10,this.request(be);case 10:return Ee=Me.sent,Me.abrupt("return",{res:Ee.res,uploadId:Ee.data.UploadId,bucket:Ee.data.Bucket,name:Ee.data.Key,partNumberMarker:Ee.data.PartNumberMarker,nextPartNumberMarker:Ee.data.NextPartNumberMarker,maxParts:Ee.data.MaxParts,isTruncated:Ee.data.IsTruncated,parts:Ee.data.Part||[]});case 12:case"end":return Me.stop()}},pe,this)}));function ce(pe,Ce,ke,De){return he.apply(this,arguments)}return ce}(),de.abortMultipartUpload=function(){var he=(0,le.default)(ie.default.mark(function pe(Ce,ke,De){var Ae,ve,be;return ie.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return this._stop(),De=De||{},Ae={},z(De).to(Ae),Ae.subres={uploadId:ke},ve=this._objectRequestParams("DELETE",Ce,Ae),ve.successStatuses=[204],Oe.next=9,this.request(ve);case 9:return be=Oe.sent,Oe.abrupt("return",{res:be.res});case 11:case"end":return Oe.stop()}},pe,this)}));function ce(pe,Ce,ke){return he.apply(this,arguments)}return ce}(),de.initMultipartUpload=function(){var he=(0,le.default)(ie.default.mark(function pe(Ce,ke){var De,Ae,ve;return ie.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ke=ke||{},De={},z(ke).to(De),De.headers=De.headers||{},this._convertMetaToHeaders(ke.meta,De.headers),De.subres="uploads",Ae=this._objectRequestParams("POST",Ce,De),Ae.mime=ke.mime,Ae.xmlResponse=!0,Ae.successStatuses=[200],Ee.next=12,this.request(Ae);case 12:return ve=Ee.sent,Ee.abrupt("return",{res:ve.res,bucket:ve.data.Bucket,name:ve.data.Key,uploadId:ve.data.UploadId});case 14:case"end":return Ee.stop()}},pe,this)}));function ce(pe,Ce){return he.apply(this,arguments)}return ce}(),de.uploadPart=function(){var he=(0,le.default)(ie.default.mark(function pe(Ce,ke,De,Ae,ve,be,Ee){var Oe,Me;return ie.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(Oe={size:be-ve},Me=ee&&ee.browser,!Me){je.next=8;break}return je.next=5,this._createBuffer(Ae,ve,be);case 5:Oe.content=je.sent,je.next=11;break;case 8:return je.next=10,this._createStream(Ae,ve,be);case 10:Oe.stream=je.sent;case 11:return je.next=13,this._uploadPart(Ce,ke,De,Oe,Ee);case 13:return je.abrupt("return",je.sent);case 14:case"end":return je.stop()}},pe,this)}));function ce(pe,Ce,ke,De,Ae,ve,be){return he.apply(this,arguments)}return ce}(),de.completeMultipartUpload=function(){var he=(0,le.default)(ie.default.mark(function pe(Ce,ke,De,Ae){var ve,be,Ee,Oe,Me,Se,je,Ze;return ie.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:for(ve=De.concat().sort(function(lt,Re){return lt.number-Re.number}).filter(function(lt,Re,We){return!Re||lt.number!==We[Re-1].number}),be=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Ee=0;Ee<ve.length;Ee++)Oe=ve[Ee],be+=`<Part>
`,be+="<PartNumber>".concat(Oe.number,`</PartNumber>
`),be+="<ETag>".concat(Oe.etag,`</ETag>
`),be+=`</Part>
`;return be+="</CompleteMultipartUpload>",Ae=Ae||{},Me={},Me=re(Ae,function(lt){if(ae(lt))return null}),Me.subres={uploadId:ke},Me.headers=fe(Me.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Se=this._objectRequestParams("POST",Ce,Me),se.encodeCallback(Se,Me),Se.mime="xml",Se.content=be,Se.headers&&Se.headers["x-oss-callback"]||(Se.xmlResponse=!0),Se.successStatuses=[200],$e.next=17,this.request(Se);case 17:if(je=$e.sent,!Ae.progress){$e.next=21;break}return $e.next=21,Ae.progress(1,null,je.res);case 21:return Ze={res:je.res,bucket:Se.bucket,name:Ce,etag:je.res.headers.etag},Se.headers&&Se.headers["x-oss-callback"]&&(Ze.data=JSON.parse(je.data.toString())),$e.abrupt("return",Ze);case 24:case"end":return $e.stop()}},pe,this)}));function ce(pe,Ce,ke,De){return he.apply(this,arguments)}return ce}(),de._uploadPart=function(){var he=(0,le.default)(ie.default.mark(function pe(Ce,ke,De,Ae,ve){var be,Ee,Oe,Me;return ie.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ve=ve||{},be={},z(ve).to(be),be.headers=be.headers||{},be.headers["Content-Length"]=Ae.size,be.headers=fe(be.headers,["x-oss-server-side-encryption"]),be.subres={partNumber:De,uploadId:ke},Ee=this._objectRequestParams("PUT",Ce,be),Ee.mime=be.mime,Oe=ee&&ee.browser,Oe?Ee.content=Ae.content:Ee.stream=Ae.stream,Ee.successStatuses=[200],Ee.disabledMD5=ve.disabledMD5,je.next=15,this.request(Ee);case 15:if(Me=je.sent,Me.res.headers.etag){je.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 Ae.stream&&(Ae.stream=null,Ee.stream=null),je.abrupt("return",{name:Ce,etag:Me.res.headers.etag,res:Me.res});case 20:case"end":return je.stop()}},pe,this)}));function ce(pe,Ce,ke,De,Ae){return he.apply(this,arguments)}return ce}()}).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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator")),ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("url"),z=y("utility"),se=y("copy-to"),x=y("../../common/signUtils"),re=y("../utils/isIP"),te=re.isIP,ae=y("../utils/setSTSToken"),ue=ae.setSTSToken,fe=y("../utils/isFunction"),de=fe.isFunction,he=ge;he.asyncSignatureUrl=function(){var ce=(0,ie.default)(E.default.mark(function Ce(ke,De){var Ae,ve,be,Ee,Oe;return E.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(!te(this.options.endpoint.hostname)){Se.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(De=De||{},ke=this._objectName(ke),De.method=De.method||"GET",Ae=z.timestamp()+(De.expires||1800),ve={bucket:this.options.bucket,object:ke},be=this._getResource(ve),!(this.options.stsToken&&de(this.options.refreshSTSToken))){Se.next=11;break}return Se.next=11,ue.call(this);case 11:return this.options.stsToken&&(De["security-token"]=this.options.stsToken),Ee=x._signatureForURL(this.options.accessKeySecret,De,be,Ae),Oe=le.parse(this._getReqUrl(ve)),Oe.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ae,Signature:Ee.Signature},se(Ee.subResource).to(Oe.query),Se.abrupt("return",Oe.format());case 17:case"end":return Se.stop()}},Ce,this)}));function pe(Ce,ke){return ce.apply(this,arguments)}return pe}()},{"../../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/typeof")),le=ee(y("@babel/runtime/helpers/asyncToGenerator")),z=y("../utils/checkBucketName"),se=z.checkBucketName,x=ge,re=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];x.copy=function(){var te=(0,le.default)(E.default.mark(function ue(fe,de,he,ce){var pe,Ce,ke;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return(0,ie.default)(he)==="object"&&(ce=he),ce=ce||{},ce.headers=ce.headers||{},Object.keys(ce.headers).forEach(function(ve){ce.headers["x-oss-copy-source-".concat(ve.toLowerCase())]=ce.headers[ve]}),(ce.meta||Object.keys(ce.headers).find(function(ve){return re.includes(ve.toLowerCase())}))&&(ce.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(ce.meta,ce.headers),de=this._getSourceName(de,he),ce.versionId&&(de="".concat(de,"?versionId=").concat(ce.versionId)),ce.headers["x-oss-copy-source"]=de,pe=this._objectRequestParams("PUT",fe,ce),pe.xmlResponse=!0,pe.successStatuses=[200,304],Ae.next=14,this.request(pe);case 14:return Ce=Ae.sent,ke=Ce.data,ke&&(ke={etag:ke.ETag,lastModified:ke.LastModified}),Ae.abrupt("return",{data:ke,res:Ce.res});case 18:case"end":return Ae.stop()}},ue,this)}));function ae(ue,fe,de,he){return te.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")),se(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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge;le.delete=function(){var z=(0,ie.default)(E.default.mark(function x(re){var te,ae,ue,fe=arguments;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=fe.length>1&&fe[1]!==void 0?fe[1]:{},te.subres=Object.assign({},te.subres),te.versionId&&(te.subres.versionId=te.versionId),ae=this._objectRequestParams("DELETE",re,te),ae.successStatuses=[204],he.next=7,this.request(ae);case 7:return ue=he.sent,he.abrupt("return",{res:ue.res});case 9:case"end":return he.stop()}},x,this)}));function se(x){return z.apply(this,arguments)}return se}()},{"@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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("utility"),z=y("../utils/obj2xml"),se=z.obj2xml,x=ge;x.deleteMulti=function(){var re=(0,ie.default)(E.default.mark(function ae(ue){var fe,de,he,ce,pe,Ce,ke,De,Ae,ve,be,Ee,Oe,Me=arguments;return E.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(fe=Me.length>1&&Me[1]!==void 0?Me[1]:{},de=[],!(!ue||!ue.length)){je.next=4;break}throw new Error("names is required");case 4:for(he=0;he<ue.length;he++)ce={},typeof ue[he]=="string"?ce.Key=le.escape(this._objectName(ue[he])):(pe=ue[he],Ce=pe.key,ke=pe.versionId,ce.Key=le.escape(this._objectName(Ce)),ce.VersionId=ke),de.push(ce);return De={Delete:{Quiet:!!fe.quiet,Object:de}},Ae=se(De,{headers:!0}),fe.subres=Object.assign({delete:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),ve=this._objectRequestParams("POST","",fe),ve.mime="xml",ve.content=Ae,ve.xmlResponse=!0,ve.successStatuses=[200],je.next=16,this.request(ve);case 16:return be=je.sent,Ee=be.data,Oe=Ee&&Ee.Deleted||null,Oe&&(Array.isArray(Oe)||(Oe=[Oe])),je.abrupt("return",{res:be.res,deleted:Oe||[]});case 21:case"end":return je.stop()}},ae,this)}));function te(ae){return re.apply(this,arguments)}return te}()},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge;le.deleteObjectTagging=function(){var z=(0,ie.default)(E.default.mark(function x(re){var te,ae,ue,fe=arguments;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=fe.length>1&&fe[1]!==void 0?fe[1]:{},te.subres=Object.assign({tagging:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),re=this._objectName(re),ae=this._objectRequestParams("DELETE",re,te),ae.successStatuses=[204],he.next=8,this.request(ae);case 8:return ue=he.sent,he.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return he.stop()}},x,this)}));function se(x){return z.apply(this,arguments)}return se}()},{"@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,we,ge){"use strict";y("core-js/modules/es.array.concat.js");var ee=y("url"),E=y("../utils/isIP"),ie=E.isIP,le=ge;le.generateObjectUrl=function(se,x){if(ie(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 re=ee.parse(x),te=this.options.bucket;re.hostname="".concat(te,".").concat(re.hostname),re.host="".concat(te,".").concat(re.host),x=re.format()}return x+this._escape(this._objectName(se))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,we,ge){(function(ee){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),ie=E(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var le=E(y("@babel/runtime/helpers/asyncToGenerator")),z=y("fs"),se=y("is-type-of"),x=ge;x.get=function(){var re=(0,le.default)(ie.default.mark(function ae(ue,fe){var de,he,ce,pe,Ce,ke,De,Ae,ve=arguments;return ie.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return de=ve.length>2&&ve[2]!==void 0?ve[2]:{},he=null,ce=!1,se.writableStream(fe)?he=fe:se.string(fe)?(he=z.createWriteStream(fe),ce=!0):de=fe,de=de||{},pe=ee&&ee.browser,Ce=de.responseCacheControl===null?"":"no-cache",ke=pe&&Ce?{"response-cache-control":Ce}:{},de.subres=Object.assign(ke,de.subres),de.versionId&&(de.subres.versionId=de.versionId),de.process&&(de.subres["x-oss-process"]=de.process),Ee.prev=11,Ae=this._objectRequestParams("GET",ue,de),Ae.writeStream=he,Ae.successStatuses=[200,206,304],Ee.next=17,this.request(Ae);case 17:De=Ee.sent,ce&&he.destroy(),Ee.next=28;break;case 21:if(Ee.prev=21,Ee.t0=Ee.catch(11),!ce){Ee.next=27;break}return he.destroy(),Ee.next=27,this._deleteFileSafe(fe);case 27:throw Ee.t0;case 28:return Ee.abrupt("return",{res:De.res,content:De.data});case 29:case"end":return Ee.stop()}},ae,this,[[11,21]])}));function te(ae,ue){return re.apply(this,arguments)}return te}()}).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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge;le.getACL=function(){var z=(0,ie.default)(E.default.mark(function x(re){var te,ae,ue,fe=arguments;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=fe.length>1&&fe[1]!==void 0?fe[1]:{},te.subres=Object.assign({acl:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),re=this._objectName(re),ae=this._objectRequestParams("GET",re,te),ae.successStatuses=[200],ae.xmlResponse=!0,he.next=9,this.request(ae);case 9:return ue=he.sent,he.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 he.stop()}},x,this)}));function se(x){return z.apply(this,arguments)}return se}()},{"@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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge,z=y("../utils/isObject"),se=z.isObject,x=y("../utils/isArray"),re=x.isArray;le.getBucketVersions=te,le.listObjectVersions=te;function te(){return ae.apply(this,arguments)}function ae(){return ae=(0,ie.default)(E.default.mark(function de(){var he,ce,pe,Ce,ke,De,Ae,ve,be=arguments;return E.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(he=be.length>0&&be[0]!==void 0?be[0]:{},ce=be.length>1&&be[1]!==void 0?be[1]:{},!(he.versionIdMarker&&he.keyMarker===void 0)){Oe.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return ce.subres=Object.assign({versions:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),pe=this._objectRequestParams("GET","",ce),pe.xmlResponse=!0,pe.successStatuses=[200],pe.query=fe(he),Oe.next=12,this.request(pe);case 12:return Ce=Oe.sent,ke=Ce.data.Version||[],De=Ce.data.DeleteMarker||[],Ae=this,ke&&(Array.isArray(ke)||(ke=[ke]),ke=ke.map(function(Me){return{name:Me.Key,url:Ae._objectUrl(Me.Key),lastModified:Me.LastModified,isLatest:Me.IsLatest==="true",versionId:Me.VersionId,etag:Me.ETag,type:Me.Type,size:Number(Me.Size),storageClass:Me.StorageClass,owner:{id:Me.Owner.ID,displayName:Me.Owner.DisplayName}}})),De&&(re(De)||(De=[De]),De=De.map(function(Me){return{name:Me.Key,lastModified:Me.LastModified,versionId:Me.VersionId,owner:{id:Me.Owner.ID,displayName:Me.Owner.DisplayName}}})),ve=Ce.data.CommonPrefixes||null,ve&&(re(ve)||(ve=[ve]),ve=ve.map(function(Me){return Me.Prefix})),Oe.abrupt("return",{res:Ce.res,objects:ke,deleteMarker:De,prefixes:ve,nextMarker:Ce.data.NextKeyMarker||null,NextVersionIdMarker:Ce.data.NextVersionIdMarker||null,nextKeyMarker:Ce.data.NextKeyMarker||null,nextVersionIdMarker:Ce.data.NextVersionIdMarker||null,isTruncated:Ce.data.IsTruncated==="true"});case 21:case"end":return Oe.stop()}},de,this)})),ae.apply(this,arguments)}function ue(de){return de.replace(/([A-Z])/g,"-$1").toLowerCase()}function fe(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},he={};return se(de)&&Object.keys(de).forEach(function(ce){he[ue(ce)]=de[ce]}),he}},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge;le.getObjectMeta=function(){var z=(0,ie.default)(E.default.mark(function x(re,te){var ae,ue;return E.default.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return te=te||{},re=this._objectName(re),te.subres=Object.assign({objectMeta:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),ae=this._objectRequestParams("HEAD",re,te),ae.successStatuses=[200],de.next=8,this.request(ae);case 8:return ue=de.sent,de.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return de.stop()}},x,this)}));function se(x,re){return z.apply(this,arguments)}return se}()},{"@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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge,z=y("../utils/isObject"),se=z.isObject;le.getObjectTagging=function(){var x=(0,ie.default)(E.default.mark(function te(ae){var ue,fe,de,he,ce,pe,Ce=arguments;return E.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ue=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},ue.subres=Object.assign({tagging:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),ae=this._objectName(ae),fe=this._objectRequestParams("GET",ae,ue),fe.successStatuses=[200],De.next=8,this.request(fe);case 8:return de=De.sent,De.next=11,this.parseXML(de.data);case 11:return he=De.sent,ce=he.TagSet.Tag,ce=ce&&se(ce)?[ce]:ce||[],pe={},ce.forEach(function(Ae){pe[Ae.Key]=Ae.Value}),De.abrupt("return",{status:de.status,res:de.res,tag:pe});case 17:case"end":return De.stop()}},te,this)}));function re(te){return x.apply(this,arguments)}return re}()},{"../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,we,ge){"use strict";var ee=y("../utils/isIP"),E=ee.isIP,ie=ge;ie.getObjectUrl=function(z,se){if(E(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return se?se[se.length-1]!=="/"&&(se+="/"):se=this.options.endpoint.format(),se+this._escape(this._objectName(z))}},{"../utils/isIP":69}],43:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge;le.getSymlink=function(){var z=(0,ie.default)(E.default.mark(function x(re){var te,ae,ue,fe,de=arguments;return E.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return te=de.length>1&&de[1]!==void 0?de[1]:{},te.subres=Object.assign({symlink:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),re=this._objectName(re),ae=this._objectRequestParams("GET",re,te),ae.successStatuses=[200],ce.next=8,this.request(ae);case 8:return ue=ce.sent,fe=ue.res.headers["x-oss-symlink-target"],ce.abrupt("return",{targetName:decodeURIComponent(fe),res:ue.res});case 11:case"end":return ce.stop()}},x,this)}));function se(x){return z.apply(this,arguments)}return se}()},{"@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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/checkEnv"),z=le.checkEnv,se=ge;se.head=function(){var x=(0,ie.default)(E.default.mark(function te(ae){var ue,fe,de,he,ce=arguments;return E.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=ce.length>1&&ce[1]!==void 0?ce[1]:{},z("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),fe=this._objectRequestParams("HEAD",ae,ue),fe.successStatuses=[200,304],Ce.next=8,this.request(fe);case 8:return de=Ce.sent,he={meta:null,res:de.res,status:de.status},de.status===200&&Object.keys(de.headers).forEach(function(ke){ke.indexOf("x-oss-meta-")===0&&(he.meta||(he.meta={}),he.meta[ke.substring(11)]=de.headers[ke])}),Ce.abrupt("return",he);case 12:case"end":return Ce.stop()}},te,this)}));function re(te){return x.apply(this,arguments)}return re}()},{"../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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge;le.putACL=function(){var z=(0,ie.default)(E.default.mark(function x(re,te,ae){var ue,fe;return E.default.wrap(function(he){for(;;)switch(he.prev=he.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"]=te,re=this._objectName(re),ue=this._objectRequestParams("PUT",re,ae),ue.successStatuses=[200],he.next=10,this.request(ue);case 10:return fe=he.sent,he.abrupt("return",{res:fe.res});case 12:case"end":return he.stop()}},x,this)}));function se(x,re,te){return z.apply(this,arguments)}return se}()},{"@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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("../utils/obj2xml"),z=le.obj2xml,se=y("../utils/checkObjectTag"),x=se.checkObjectTag,re=ge;re.putObjectTagging=function(){var te=(0,ie.default)(E.default.mark(function ue(fe,de){var he,ce,pe,Ce,ke=arguments;return E.default.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return he=ke.length>2&&ke[2]!==void 0?ke[2]:{},x(de),he.subres=Object.assign({tagging:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),fe=this._objectName(fe),ce=this._objectRequestParams("PUT",fe,he),ce.successStatuses=[200],de=Object.keys(de).map(function(ve){return{Key:ve,Value:de[ve]}}),pe={Tagging:{TagSet:{Tag:de}}},ce.mime="xml",ce.content=z(pe),Ae.next=13,this.request(ce);case 13:return Ce=Ae.sent,Ae.abrupt("return",{res:Ce.res,status:Ce.status});case 15:case"end":return Ae.stop()}},ue,this)}));function ae(ue,fe){return te.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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=ge;le.putSymlink=function(){var z=(0,ie.default)(E.default.mark(function x(re,te,ae){var ue,fe;return E.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ae=ae||{},ae.headers=ae.headers||{},te=this._escape(this._objectName(te)),this._convertMetaToHeaders(ae.meta,ae.headers),ae.headers["x-oss-symlink-target"]=te,ae.subres=Object.assign({symlink:""},ae.subres),ae.versionId&&(ae.subres.versionId=ae.versionId),ae.storageClass&&(ae.headers["x-oss-storage-class"]=ae.storageClass),re=this._objectName(re),ue=this._objectRequestParams("PUT",re,ae),ue.successStatuses=[200],he.next=13,this.request(ue);case 13:return fe=he.sent,he.abrupt("return",{res:fe.res});case 15:case"end":return he.stop()}},x,this)}));function se(x,re,te){return z.apply(this,arguments)}return se}()},{"@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,we,ge){"use strict";var ee=y("url"),E=y("utility"),ie=y("copy-to"),le=y("../../common/signUtils"),z=y("../utils/isIP"),se=z.isIP,x=ge;x.signatureUrl=function(te,ae){if(se(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");ae=ae||{},te=this._objectName(te),ae.method=ae.method||"GET";var ue=E.timestamp()+(ae.expires||1800),fe={bucket:this.options.bucket,object:te},de=this._getResource(fe);this.options.stsToken&&(ae["security-token"]=this.options.stsToken);var he=le._signatureForURL(this.options.accessKeySecret,ae,de,ue),ce=ee.parse(this._getReqUrl(fe));return ce.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ue,Signature:he.Signature},ie(he.subResource).to(ce.query),ce.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/asyncToGenerator")),le=y("./utils/isArray"),z=le.isArray,se=ge;se._parallelNode=function(){var x=(0,ie.default)(E.default.mark(function te(ae,ue,fe,de){var he,ce,pe,Ce,ke,De,Ae,ve;return E.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:he=this,ce=[],pe=[],Ce=ae.length/ue,ke=ae.length%ue,De=ke===0?Ce:(ae.length-ke)/ue+1,Ae=1,ve=0;case 8:if(!(ve<ae.length)){Ee.next=26;break}if(!he.isCancel()){Ee.next=11;break}return Ee.abrupt("break",26);case 11:if(de?pe.push(fe(he,ae[ve],de)):pe.push(fe(he,ae[ve])),!(pe.length===ue||Ae===De&&ve===ae.length-1)){Ee.next=23;break}return Ee.prev=13,Ae+=1,Ee.next=17,Promise.all(pe);case 17:Ee.next=22;break;case 19:Ee.prev=19,Ee.t0=Ee.catch(13),ce.push(Ee.t0);case 22:pe=[];case 23:ve++,Ee.next=8;break;case 26:return Ee.abrupt("return",ce);case 27:case"end":return Ee.stop()}},te,this,[[13,19]])}));function re(te,ae,ue,fe){return x.apply(this,arguments)}return re}(),se._parallel=function(re,te,ae){var ue=this;return new Promise(function(fe){var de=[];if(te<=0||!re){fe(de);return}function he(Ee){return function(){if(Ee===null)throw new Error("Callback was already called.");var Oe=Ee;Ee=null;for(var Me=arguments.length,Se=new Array(Me),je=0;je<Me;je++)Se[je]=arguments[je];Oe.apply(this,Se)}}function ce(Ee){var Oe=-1,Me=Ee.length;return function(){return++Oe<Me&&!ue.isCancel()?{value:Ee[Oe],key:Oe}:null}}var pe=ce(re),Ce=!1,ke=0,De=!1;function Ae(Ee){ke-=1,Ee?(Ce=!0,de.push(Ee),fe(de)):Ce&&ke<=0?(Ce=!0,fe(de)):De||(ue.isCancel()?fe(de):be())}function ve(Ee,Oe){ae(Ee).then(function(Me){Oe(null,Me)}).catch(function(Me){Oe(Me)})}function be(){for(De=!0;ke<te&&!Ce&&!ue.isCancel();){var Ee=pe();if(Ee===null||de.length>0){Ce=!0,ke<=0&&fe(de);return}ke+=1,ve(Ee.value,he(Ae))}De=!1}be()})},se.cancel=function(re){this.options.cancelFlag=!0,z(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(te){if(te.destroyed===!1){var ae={name:"cancel",message:"cancel"};te.destroy(ae)}}),this.multipartUploadStreams=[],re&&this.abortMultipartUpload(re.name,re.uploadId,re.options)},se.isCancel=function(){return this.options.cancelFlag},se.resetCancelFlag=function(){this.options.cancelFlag=!1},se._stop=function(){this.options.cancelFlag=!0},se._makeCancelEvent=function(){var re={status:0,name:"cancel"};return re},se._makeAbortEvent=function(){var re={status:0,name:"abort",message:"upload task has been abort"};return re}},{"./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,we,ge){(function(ee){(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 E=y("./../../shims/crypto/crypto.js"),ie=y("is-type-of"),le=y("./utils/lowercaseKeyHeader"),z=le.lowercaseKeyHeader;ge.buildCanonicalizedResource=function(x,re){var te="".concat(x),ae="?";if(ie.string(re)&&re.trim()!=="")te+=ae+re;else if(ie.array(re))re.sort(),te+=ae+re.join("&");else if(re){var ue=function(he,ce){return he[0]>ce[0]?1:he[0]<ce[0]?-1:0},fe=function(he){te+=ae+he,(re[he]||re[he]===0)&&(te+="=".concat(re[he])),ae="&"};Object.keys(re).sort(ue).forEach(fe)}return te},ge.buildCanonicalString=function(x,re,te,ae){te=te||{};var ue=z(te.headers),fe="x-oss-",de=[],he={},ce=[x.toUpperCase(),ue["content-md5"]||"",ue["content-type"],ae||ue["x-oss-date"]];return Object.keys(ue).forEach(function(pe){var Ce=pe.toLowerCase();Ce.indexOf(fe)===0&&(he[Ce]=String(ue[pe]).trim())}),Object.keys(he).sort().forEach(function(pe){de.push("".concat(pe,":").concat(he[pe]))}),ce=ce.concat(de),ce.push(this.buildCanonicalizedResource(re,te.parameters)),ce.join(`
`)},ge.computeSignature=function(x,re){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",ae=E.createHmac("sha1",x);return ae.update(ee.from(re,te)).digest("base64")},ge.authorization=function(x,re,te,ae){return"OSS ".concat(x,":").concat(this.computeSignature(re,te,ae))},ge._signatureForURL=function(x){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2?arguments[2]:void 0,ae=arguments.length>3?arguments[3]:void 0,ue=arguments.length>4?arguments[4]:void 0,fe={},de=re.subResource,he=de===void 0?{}:de;if(re.process){var ce="x-oss-process";he[ce]=re.process}if(re.trafficLimit){var pe="x-oss-traffic-limit";he[pe]=re.trafficLimit}if(re.response&&Object.keys(re.response).forEach(function(Ae){var ve="response-".concat(Ae.toLowerCase());he[ve]=re.response[Ae]}),Object.keys(re).forEach(function(Ae){var ve=Ae.toLowerCase(),be=re[Ae];ve.indexOf("x-oss-")===0?fe[ve]=be:(ve.indexOf("content-md5")===0||ve.indexOf("content-type")===0)&&(fe[Ae]=be)}),Object.prototype.hasOwnProperty.call(re,"security-token")&&(he["security-token"]=re["security-token"]),Object.prototype.hasOwnProperty.call(re,"callback")){var Ce={callbackUrl:encodeURI(re.callback.url),callbackBody:re.callback.body};if(re.callback.host&&(Ce.callbackHost=re.callback.host),re.callback.contentType&&(Ce.callbackBodyType=re.callback.contentType),he.callback=ee.from(JSON.stringify(Ce)).toString("base64"),re.callback.customValue){var ke={};Object.keys(re.callback.customValue).forEach(function(Ae){ke["x:".concat(Ae)]=re.callback.customValue[Ae]}),he["callback-var"]=ee.from(JSON.stringify(ke)).toString("base64")}}var De=this.buildCanonicalString(re.method,te,{headers:fe,parameters:he},ae.toString());return{Signature:this.computeSignature(x,De,ue),subResource:he}}}).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,we,ge){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkBucketName=void 0,ge.checkBucketName=function(ee){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=E?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ie.test(ee))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,we,ge){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkConfigValid=void 0;var ee={endpoint:E,region:/^[a-zA-Z0-9\-_]+$/};function E(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}ge.checkConfigValid=function(ie,le){if(ee[le]){var z=!0;if(ee[le]instanceof Function?z=ee[le](ie):z=ee[le].test(ie),!z)throw new Error("The ".concat(le," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,we,ge){(function(ee){(function(){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkEnv=void 0;function E(ie){ee.browser&&console.warn(ie)}ge.checkEnv=E}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,we,ge){"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(ge,"__esModule",{value:!0}),ge.checkObjectTag=void 0;var ee=y("./checkValid"),E=ee.checkValid,ie=y("./isObject"),le=ie.isObject,z=[{validator:function(te){if(typeof te!="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 (/)"}],se={key:[].concat(z,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(z,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function x(re){if(!le(re))throw new Error("tag must be Object");var te=Object.entries(re);if(te.length>10)throw new Error("maximum of 10 tags for a object");var ae=["key","value"];te.forEach(function(ue){ue.forEach(function(fe,de){E(fe,se[ae[de]])})})}ge.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,we,ge){"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(ge,"__esModule",{value:!0}),ge.checkValid=void 0;function ee(E,ie){ie.forEach(function(le){if(le.validator)le.validator(E);else if(le.pattern&&!le.pattern.test(E))throw new Error(le.msg)})}ge.checkValid=ee},{"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,we,ge){(function(ee){(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(ge,"__esModule",{value:!0}),ge.createRequest=void 0;var E=y("./../../../shims/crypto/crypto.js"),ie=y("debug")("ali-oss"),le=y("mime"),z=y("dateformat"),se=y("copy-to"),x=y("path"),re=y("./encoder"),te=re.encoder,ae=y("./isIP"),ue=ae.isIP,fe=y("./setRegion"),de=fe.setRegion,he=y("../client/getReqUrl"),ce=he.getReqUrl,pe=y("./isDingTalk"),Ce=pe.isDingTalk;function ke(ve,be){return ve[be]||ve[be.toLowerCase()]}function De(ve,be){delete ve[be],delete ve[be.toLowerCase()]}function Ae(ve){var be=new Date;this.options.amendTimeSkewed&&(be=+new Date+this.options.amendTimeSkewed);var Ee={"x-oss-date":z(be,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Ee["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Ee["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Ee,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Ee["x-oss-security-token"]=this.options.stsToken),se(ve.headers).to(Ee),ke(Ee,"Content-Type")||(ve.mime&&ve.mime.indexOf("/")>0?Ee["Content-Type"]=ve.mime:Ce()?Ee["Content-Type"]="application/octet-stream":Ee["Content-Type"]=le.getType(ve.mime||x.extname(ve.object||""))),ke(Ee,"Content-Type")||De(Ee,"Content-Type"),ve.content&&(ve.disabledMD5||(!ve.headers||!ve.headers["Content-MD5"]?Ee["Content-MD5"]=E.createHash("md5").update(ee.from(ve.content,"utf8")).digest("base64"):Ee["Content-MD5"]=ve.headers["Content-MD5"]),Ee["Content-Length"]||(Ee["Content-Length"]=ve.content.length));var Oe=Object.prototype.hasOwnProperty;for(var Me in Ee)Ee[Me]&&Oe.call(Ee,Me)&&(Ee[Me]=te(String(Ee[Me]),this.options.headerEncoding));var Se=this._getResource(ve);if(Ee.authorization=this.authorization(ve.method,Se,ve.subres,Ee,this.options.headerEncoding),ue(this.options.endpoint.hostname)){var je=this.options,Ze=je.region,Xe=je.internal,$e=je.secure,lt=de(Ze,Xe,$e);Ee.host="".concat(ve.bucket,".").concat(lt.host)}var Re=ce.bind(this)(ve);ie("request %s %s, with headers %j, !!stream: %s",ve.method,Re,Ee,!!ve.stream);var We=ve.timeout||this.options.timeout,rt={method:ve.method,content:ve.content,stream:ve.stream,headers:Ee,timeout:We,writeStream:ve.writeStream,customResponse:ve.customResponse,ctx:ve.ctx||this.ctx};return this.agent&&(rt.agent=this.agent),this.httpsAgent&&(rt.httpsAgent=this.httpsAgent),rt.enableProxy=!!this.options.enableProxy,rt.proxy=this.options.proxy?this.options.proxy:null,{url:Re,params:rt}}ge.createRequest=Ae}).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,we,ge){"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(ge,"__esModule",{value:!0}),ge.dataFix=void 0;var ee=y("./isObject"),E=["true","TRUE","1",1],ie=["false","FALSE","0",0];function le(x,re,te){if(ee.isObject(x)){var ae=re.remove,ue=ae===void 0?[]:ae,fe=re.rename,de=fe===void 0?{}:fe,he=re.camel,ce=he===void 0?[]:he,pe=re.bool,Ce=pe===void 0?[]:pe,ke=re.lowerFirst,De=ke===void 0?!1:ke;return ue.forEach(function(Ae){return delete x[Ae]}),Object.entries(de).forEach(function(Ae){x[Ae[0]]&&(x[Ae[1]]||(x[Ae[1]]=x[Ae[0]],delete x[Ae[0]]))}),ce.forEach(function(Ae){if(x[Ae]){var ve=Ae.replace(/^(.)/,function(be){return be.toLowerCase()}).replace(/-(\w)/g,function(be,Ee){return Ee.toUpperCase()});x[ve]||(x[ve]=x[Ae])}}),Ce.forEach(function(Ae){x[Ae]=z(x[Ae])}),typeof te=="function"&&te(x),se(x,De),le}}ge.dataFix=le;function z(x){return x?E.includes(x)?!0:ie.includes(x)?!1:x:!1}function se(x,re){re&&Object.keys(x).forEach(function(te){var ae=te.replace(/^\w/,function(ue){return ue.toLowerCase()});typeof x[ae]=="undefined"&&(x[ae]=x[te],delete x[te])})}},{"./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,we,ge){"use strict";var ee=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 E=ee(y("@babel/runtime/helpers/typeof"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.deepCopyWith=ge.deepCopy=void 0;var ie=y("./isBuffer");ge.deepCopy=function(le){if(le===null||(0,E.default)(le)!=="object")return le;if(ie.isBuffer(le))return le.slice();var z=Array.isArray(le)?[]:{};return Object.keys(le).forEach(function(se){z[se]=ge.deepCopy(le[se])}),z},ge.deepCopyWith=function(le,z){function se(x,re,te){var ae=z(x,re,te);if(ae!==void 0)return ae;if(x===null||(0,E.default)(x)!=="object")return x;if(ie.isBuffer(x))return x.slice();var ue=Array.isArray(x)?[]:{};return Object.keys(x).forEach(function(fe){ue[fe]=se(x[fe],fe,x)}),ue}return z?se(le,"",null):ge.deepCopy(le)}},{"./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,we,ge){(function(ee){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.encoder=void 0;function E(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return le==="utf-8"?ie:ee.from(ie).toString("latin1")}ge.encoder=E}).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,we,ge){"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(ge,"__esModule",{value:!0}),ge.formatInventoryConfig=void 0;var ee=y("../utils/dataFix"),E=y("../utils/isObject"),ie=y("../utils/isArray"),le=y("../utils/formatObjKey");function z(x){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return re&&E.isObject(x)&&(x=[x]),ie.isArray(x)?x=x.map(se):x=se(x),x}ge.formatInventoryConfig=z;function se(x){return ee.dataFix(x,{bool:["IsEnabled"]},function(re){var te,ae;re.prefix=re.Filter.Prefix,delete re.Filter,re.OSSBucketDestination=re.Destination.OSSBucketDestination,re.OSSBucketDestination.rolename=re.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete re.OSSBucketDestination.RoleArn,re.OSSBucketDestination.bucket=re.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete re.OSSBucketDestination.Bucket,delete re.Destination,re.frequency=re.Schedule.Frequency,delete re.Schedule.Frequency,!((te=re==null?void 0:re.OptionalFields)===null||te===void 0)&&te.Field&&!ie.isArray((ae=re.OptionalFields)===null||ae===void 0?void 0:ae.Field)&&(re.OptionalFields.Field=[re.OptionalFields.Field])}),x=le.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,we,ge){"use strict";var ee=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 E=ee(y("@babel/runtime/helpers/typeof"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.formatObjKey=void 0;function ie(z,se,x){if(z===null||(0,E.default)(z)!=="object")return z;var re;if(Array.isArray(z)){re=[];for(var te=0;te<z.length;te++)re.push(ie(z[te],se,x))}else re={},Object.keys(z).forEach(function(ae){re[le(ae,se,x)]=ie(z[ae],se,x)});return re}ge.formatObjKey=ie;function le(z,se,x){return x&&x.exclude&&x.exclude.includes(z)||(se==="firstUpperCase"?z=z.replace(/^./,function(re){return re.toUpperCase()}):se==="firstLowerCase"&&(z=z.replace(/^./,function(re){return re.toLowerCase()}))),z}},{"@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,we,ge){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.getStrBytesCount=void 0;function ee(E){for(var ie=0,le=0;le<E.length;le++){var z=E.charAt(le);/^[\u00-\uff]$/.test(z)?ie+=1:ie+=2}return ie}ge.getStrBytesCount=ee},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,we,ge){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.isArray=void 0,ge.isArray=function(ee){return Object.prototype.toString.call(ee)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,we,ge){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.isBlob=void 0;function ee(E){return typeof Blob!="undefined"&&E instanceof Blob}ge.isBlob=ee},{}],65:[function(y,we,ge){(function(ee){(function(){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.isBuffer=void 0;function E(ie){return ee.isBuffer(ie)}ge.isBuffer=E}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,we,ge){(function(ee){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.isDingTalk=void 0;function E(){return!!(ee.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}ge.isDingTalk=E}).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,we,ge){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.isFile=void 0,ge.isFile=function(ee){return typeof File!="undefined"&&ee instanceof File}},{}],68:[function(y,we,ge){"use strict";Object.defineProperty(ge,"__esModule",{value:!0}),ge.isFunction=void 0,ge.isFunction=function(ee){return typeof ee=="function"}},{}],69:[function(y,we,ge){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.isIP=void 0,ge.isIP=function(ee){var E=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,ie=/^\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 E.test(ee)||ie.test(ee)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,we,ge){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.isObject=void 0,ge.isObject=function(ee){return Object.prototype.toString.call(ee)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,we,ge){"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(ge,"__esModule",{value:!0}),ge.lowercaseKeyHeader=void 0;var ee=y("./isObject");function E(ie){var le={};return ee.isObject(ie)&&Object.keys(ie).forEach(function(z){le[z.toLowerCase()]=ie[z]}),le}ge.lowercaseKeyHeader=E},{"./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,we,ge){"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(ge,"__esModule",{value:!0}),ge.obj2xml=void 0;var ee=y("./formatObjKey");function E(le){return Object.prototype.toString.call(le).replace(/(.*? |])/g,"").toLowerCase()}function ie(le,z){var se="";return z&&z.headers&&(se=`<?xml version="1.0" encoding="UTF-8"?>
`),z&&z.firstUpperCase&&(le=ee.formatObjKey(le,"firstUpperCase")),E(le)==="object"?Object.keys(le).forEach(function(x){E(le[x])!=="undefined"&&E(le[x])!=="null"&&(E(le[x])==="string"||E(le[x])==="number"?se+="<".concat(x,">").concat(le[x],"</").concat(x,">"):E(le[x])==="object"?se+="<".concat(x,">").concat(ie(le[x]),"</").concat(x,">"):E(le[x])==="array"?se+=le[x].map(function(re){return"<".concat(x,">").concat(ie(re),"</").concat(x,">")}).join(""):se+="<".concat(x,">").concat(le[x].toString(),"</").concat(x,">"))}):se+=le.toString(),se}ge.obj2xml=ie},{"./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,we,ge){"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 ee(z,se){var x=typeof Symbol!="undefined"&&z[Symbol.iterator]||z["@@iterator"];if(!x){if(Array.isArray(z)||(x=E(z))||se&&z&&typeof z.length=="number"){x&&(z=x);var re=0,te=function(){};return{s:te,n:function(){return re>=z.length?{done:!0}:{done:!1,value:z[re++]}},e:function(he){throw he},f:te}}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,fe;return{s:function(){x=x.call(z)},n:function(){var he=x.next();return ae=he.done,he},e:function(he){ue=!0,fe=he},f:function(){try{!ae&&x.return!=null&&x.return()}finally{if(ue)throw fe}}}}function E(z,se){if(z){if(typeof z=="string")return ie(z,se);var x=Object.prototype.toString.call(z).slice(8,-1);if(x==="Object"&&z.constructor&&(x=z.constructor.name),x==="Map"||x==="Set")return Array.from(z);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return ie(z,se)}}function ie(z,se){(se==null||se>z.length)&&(se=z.length);for(var x=0,re=new Array(se);x<se;x++)re[x]=z[x];return re}Object.defineProperty(ge,"__esModule",{value:!0}),ge.omit=void 0;function le(z,se){var x=Object.assign({},z),re=ee(se),te;try{for(re.s();!(te=re.n()).done;){var ae=te.value;delete x[ae]}}catch(ue){re.e(ue)}finally{re.f()}return x}ge.omit=le},{"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,we,ge){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(ge,"__esModule",{value:!0}),ge.retry=void 0;function ee(E,ie){var le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=0,se=le.retryDelay,x=se===void 0?500:se,re=le.errorHandler,te=re===void 0?function(){return!0}:re,ae=function ue(){for(var fe=arguments.length,de=new Array(fe),he=0;he<fe;he++)de[he]=arguments[he];return new Promise(function(ce,pe){E.apply(void 0,de).then(function(Ce){z=0,ce(Ce)}).catch(function(Ce){z<ie&&te(Ce)?(z++,setTimeout(function(){ce(ue.apply(void 0,de))},x)):(z=0,pe(Ce))})})};return ae}ge.retry=ee},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,we,ge){"use strict";var ee=function(z){return z&&z.__esModule?z:{default:z}};Object.defineProperty(ge,"__esModule",{value:!0}),ge.setRegion=void 0;var E=ee(y("url")),ie=y("./checkConfigValid");function le(z){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(z,"region");var re=x?"https://":"http://",te=se?"-internal.aliyuncs.com":".aliyuncs.com",ae="vpc100-oss-cn-";return z.substr(0,ae.length)===ae&&(te=".aliyuncs.com"),E.default.parse(re+z+te)}ge.setRegion=le},{"./checkConfigValid":52,url:472}],76:[function(y,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=ee(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ge,"__esModule",{value:!0}),ge.checkCredentials=ge.setSTSToken=void 0;var le=y("./formatObjKey");function z(){return se.apply(this,arguments)}function se(){return se=(0,ie.default)(E.default.mark(function re(){var te,ae;return E.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(this.options||(this.options={}),te=new Date,!this.stsTokenFreshTime){fe.next=14;break}if(!(+te-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){fe.next=12;break}return this.stsTokenFreshTime=te,fe.next=7,this.options.refreshSTSToken();case 7:ae=fe.sent,ae=le.formatObjKey(ae,"firstLowerCase"),ae.securityToken&&(ae.stsToken=ae.securityToken),x(ae),Object.assign(this.options,ae);case 12:fe.next=15;break;case 14:this.stsTokenFreshTime=te;case 15:return fe.abrupt("return",null);case 16:case"end":return fe.stop()}},re,this)})),se.apply(this,arguments)}ge.setSTSToken=z;function x(re){var te=["accessKeySecret","accessKeyId","stsToken"],ae=Object.keys(re);te.forEach(function(ue){if(!ae.find(function(fe){return fe===ue}))throw Error("refreshSTSToken must return contains ".concat(ue))})}ge.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,we,ge){function ee(ie,le,z,se,x,re,te){try{var ae=ie[re](te),ue=ae.value}catch(fe){z(fe);return}ae.done?le(ue):Promise.resolve(ue).then(se,x)}function E(ie){return function(){var le=this,z=arguments;return new Promise(function(se,x){var re=ie.apply(le,z);function te(ue){ee(re,se,x,te,ae,"next",ue)}function ae(ue){ee(re,se,x,te,ae,"throw",ue)}te(void 0)})}}we.exports=E,we.exports.__esModule=!0,we.exports.default=we.exports},{}],78:[function(y,we,ge){function ee(E){return E&&E.__esModule?E:{default:E}}we.exports=ee,we.exports.__esModule=!0,we.exports.default=we.exports},{}],79:[function(y,we,ge){function ee(E){"@babel/helpers - typeof";return we.exports=ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},we.exports.__esModule=!0,we.exports.default=we.exports,ee(E)}we.exports=ee,we.exports.__esModule=!0,we.exports.default=we.exports},{}],80:[function(y,we,ge){we.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,we,ge){we.exports=ee,we.exports.HttpsAgent=ee;function ee(){}},{}],82:[function(y,we,ge){(function(ee){(function(){"use strict";var E=y("object-assign");function ie(Ze,Xe){if(Ze===Xe)return 0;for(var $e=Ze.length,lt=Xe.length,Re=0,We=Math.min($e,lt);Re<We;++Re)if(Ze[Re]!==Xe[Re]){$e=Ze[Re],lt=Xe[Re];break}return $e<lt?-1:lt<$e?1:0}function le(Ze){return ee.Buffer&&typeof ee.Buffer.isBuffer=="function"?ee.Buffer.isBuffer(Ze):!!(Ze!=null&&Ze._isBuffer)}var z=y("util/"),se=Object.prototype.hasOwnProperty,x=Array.prototype.slice,re=function(){return function(){}.name==="foo"}();function te(Ze){return Object.prototype.toString.call(Ze)}function ae(Ze){return le(Ze)||typeof ee.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ze):Ze?!!(Ze instanceof DataView||Ze.buffer&&Ze.buffer instanceof ArrayBuffer):!1}var ue=we.exports=ke,fe=/\s*function\s+([^\(\s]*)\s*/;function de(Ze){if(z.isFunction(Ze)){if(re)return Ze.name;var Xe=Ze.toString(),$e=Xe.match(fe);return $e&&$e[1]}}ue.AssertionError=function(Xe){this.name="AssertionError",this.actual=Xe.actual,this.expected=Xe.expected,this.operator=Xe.operator,Xe.message?(this.message=Xe.message,this.generatedMessage=!1):(this.message=pe(this),this.generatedMessage=!0);var $e=Xe.stackStartFunction||Ce;if(Error.captureStackTrace)Error.captureStackTrace(this,$e);else{var lt=new Error;if(lt.stack){var Re=lt.stack,We=de($e),rt=Re.indexOf(`
`+We);if(rt>=0){var ot=Re.indexOf(`
`,rt+1);Re=Re.substring(ot+1)}this.stack=Re}}},z.inherits(ue.AssertionError,Error);function he(Ze,Xe){return typeof Ze=="string"?Ze.length<Xe?Ze:Ze.slice(0,Xe):Ze}function ce(Ze){if(re||!z.isFunction(Ze))return z.inspect(Ze);var Xe=de(Ze),$e=Xe?": "+Xe:"";return"[Function"+$e+"]"}function pe(Ze){return he(ce(Ze.actual),128)+" "+Ze.operator+" "+he(ce(Ze.expected),128)}function Ce(Ze,Xe,$e,lt,Re){throw new ue.AssertionError({message:$e,actual:Ze,expected:Xe,operator:lt,stackStartFunction:Re})}ue.fail=Ce;function ke(Ze,Xe){Ze||Ce(Ze,!0,Xe,"==",ue.ok)}ue.ok=ke,ue.equal=function(Xe,$e,lt){Xe!=$e&&Ce(Xe,$e,lt,"==",ue.equal)},ue.notEqual=function(Xe,$e,lt){Xe==$e&&Ce(Xe,$e,lt,"!=",ue.notEqual)},ue.deepEqual=function(Xe,$e,lt){De(Xe,$e,!1)||Ce(Xe,$e,lt,"deepEqual",ue.deepEqual)},ue.deepStrictEqual=function(Xe,$e,lt){De(Xe,$e,!0)||Ce(Xe,$e,lt,"deepStrictEqual",ue.deepStrictEqual)};function De(Ze,Xe,$e,lt){if(Ze===Xe)return!0;if(le(Ze)&&le(Xe))return ie(Ze,Xe)===0;if(z.isDate(Ze)&&z.isDate(Xe))return Ze.getTime()===Xe.getTime();if(z.isRegExp(Ze)&&z.isRegExp(Xe))return Ze.source===Xe.source&&Ze.global===Xe.global&&Ze.multiline===Xe.multiline&&Ze.lastIndex===Xe.lastIndex&&Ze.ignoreCase===Xe.ignoreCase;if((Ze===null||typeof Ze!="object")&&(Xe===null||typeof Xe!="object"))return $e?Ze===Xe:Ze==Xe;if(ae(Ze)&&ae(Xe)&&te(Ze)===te(Xe)&&!(Ze instanceof Float32Array||Ze instanceof Float64Array))return ie(new Uint8Array(Ze.buffer),new Uint8Array(Xe.buffer))===0;if(le(Ze)!==le(Xe))return!1;lt=lt||{actual:[],expected:[]};var Re=lt.actual.indexOf(Ze);return Re!==-1&&Re===lt.expected.indexOf(Xe)?!0:(lt.actual.push(Ze),lt.expected.push(Xe),ve(Ze,Xe,$e,lt))}function Ae(Ze){return Object.prototype.toString.call(Ze)=="[object Arguments]"}function ve(Ze,Xe,$e,lt){if(Ze==null||Xe===null||Xe===void 0)return!1;if(z.isPrimitive(Ze)||z.isPrimitive(Xe))return Ze===Xe;if($e&&Object.getPrototypeOf(Ze)!==Object.getPrototypeOf(Xe))return!1;var Re=Ae(Ze),We=Ae(Xe);if(Re&&!We||!Re&&We)return!1;if(Re)return Ze=x.call(Ze),Xe=x.call(Xe),De(Ze,Xe,$e);var rt=je(Ze),ot=je(Xe),at,Je;if(rt.length!==ot.length)return!1;for(rt.sort(),ot.sort(),Je=rt.length-1;Je>=0;Je--)if(rt[Je]!==ot[Je])return!1;for(Je=rt.length-1;Je>=0;Je--)if(at=rt[Je],!De(Ze[at],Xe[at],$e,lt))return!1;return!0}ue.notDeepEqual=function(Xe,$e,lt){De(Xe,$e,!1)&&Ce(Xe,$e,lt,"notDeepEqual",ue.notDeepEqual)},ue.notDeepStrictEqual=be;function be(Ze,Xe,$e){De(Ze,Xe,!0)&&Ce(Ze,Xe,$e,"notDeepStrictEqual",be)}ue.strictEqual=function(Xe,$e,lt){Xe!==$e&&Ce(Xe,$e,lt,"===",ue.strictEqual)},ue.notStrictEqual=function(Xe,$e,lt){Xe===$e&&Ce(Xe,$e,lt,"!==",ue.notStrictEqual)};function Ee(Ze,Xe){if(!Ze||!Xe)return!1;if(Object.prototype.toString.call(Xe)=="[object RegExp]")return Xe.test(Ze);try{if(Ze instanceof Xe)return!0}catch($e){}return Error.isPrototypeOf(Xe)?!1:Xe.call({},Ze)===!0}function Oe(Ze){var Xe;try{Ze()}catch($e){Xe=$e}return Xe}function Me(Ze,Xe,$e,lt){var Re;if(typeof Xe!="function")throw new TypeError('"block" argument must be a function');typeof $e=="string"&&(lt=$e,$e=null),Re=Oe(Xe),lt=($e&&$e.name?" ("+$e.name+").":".")+(lt?" "+lt:"."),Ze&&!Re&&Ce(Re,$e,"Missing expected exception"+lt);var We=typeof lt=="string",rt=!Ze&&z.isError(Re),ot=!Ze&&Re&&!$e;if((rt&&We&&Ee(Re,$e)||ot)&&Ce(Re,$e,"Got unwanted exception"+lt),Ze&&Re&&$e&&!Ee(Re,$e)||!Ze&&Re)throw Re}ue.throws=function(Ze,Xe,$e){Me(!0,Ze,Xe,$e)},ue.doesNotThrow=function(Ze,Xe,$e){Me(!1,Ze,Xe,$e)},ue.ifError=function(Ze){if(Ze)throw Ze};function Se(Ze,Xe){Ze||Ce(Ze,!0,Xe,"==",Se)}ue.strict=E(Se,ue,{equal:ue.strictEqual,deepEqual:ue.deepStrictEqual,notEqual:ue.notStrictEqual,notDeepEqual:ue.notDeepStrictEqual}),ue.strict.strict=ue.strict;var je=Object.keys||function(Ze){var Xe=[];for(var $e in Ze)se.call(Ze,$e)&&Xe.push($e);return Xe}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,we,ge){typeof Object.create=="function"?we.exports=function(E,ie){E.super_=ie,E.prototype=Object.create(ie.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}})}:we.exports=function(E,ie){E.super_=ie;var le=function(){};le.prototype=ie.prototype,E.prototype=new le,E.prototype.constructor=E}},{}],84:[function(y,we,ge){we.exports=function(E){return E&&typeof E=="object"&&typeof E.copy=="function"&&typeof E.fill=="function"&&typeof E.readUInt8=="function"}},{}],85:[function(y,we,ge){(function(ee,E){(function(){var ie=/%[sdj%]/g;ge.format=function(ot){if(!ve(ot)){for(var at=[],Je=0;Je<arguments.length;Je++)at.push(se(arguments[Je]));return at.join(" ")}for(var Je=1,Qe=arguments,Ve=Qe.length,ct=String(ot).replace(ie,function(ut){if(ut==="%%")return"%";if(Je>=Ve)return ut;switch(ut){case"%s":return String(Qe[Je++]);case"%d":return Number(Qe[Je++]);case"%j":try{return JSON.stringify(Qe[Je++])}catch(st){return"[Circular]"}default:return ut}}),tt=Qe[Je];Je<Ve;tt=Qe[++Je])ke(tt)||!Me(tt)?ct+=" "+tt:ct+=" "+se(tt);return ct},ge.deprecate=function(ot,at){if(Ee(E.process))return function(){return ge.deprecate(ot,at).apply(this,arguments)};if(ee.noDeprecation===!0)return ot;var Je=!1;function Qe(){if(!Je){if(ee.throwDeprecation)throw new Error(at);ee.traceDeprecation?console.trace(at):console.error(at),Je=!0}return ot.apply(this,arguments)}return Qe};var le={},z;ge.debuglog=function(ot){if(Ee(z)&&(z=ee.env.NODE_DEBUG||""),ot=ot.toUpperCase(),!le[ot])if(new RegExp("\\b"+ot+"\\b","i").test(z)){var at=ee.pid;le[ot]=function(){var Je=ge.format.apply(ge,arguments);console.error("%s %d: %s",ot,at,Je)}}else le[ot]=function(){};return le[ot]};function se(ot,at){var Je={seen:[],stylize:re};return arguments.length>=3&&(Je.depth=arguments[2]),arguments.length>=4&&(Je.colors=arguments[3]),Ce(at)?Je.showHidden=at:at&&ge._extend(Je,at),Ee(Je.showHidden)&&(Je.showHidden=!1),Ee(Je.depth)&&(Je.depth=2),Ee(Je.colors)&&(Je.colors=!1),Ee(Je.customInspect)&&(Je.customInspect=!0),Je.colors&&(Je.stylize=x),ae(Je,ot,Je.depth)}ge.inspect=se,se.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]},se.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function x(ot,at){var Je=se.styles[at];return Je?"\x1B["+se.colors[Je][0]+"m"+ot+"\x1B["+se.colors[Je][1]+"m":ot}function re(ot,at){return ot}function te(ot){var at={};return ot.forEach(function(Je,Qe){at[Je]=!0}),at}function ae(ot,at,Je){if(ot.customInspect&&at&&Ze(at.inspect)&&at.inspect!==ge.inspect&&!(at.constructor&&at.constructor.prototype===at)){var Qe=at.inspect(Je,ot);return ve(Qe)||(Qe=ae(ot,Qe,Je)),Qe}var Ve=ue(ot,at);if(Ve)return Ve;var ct=Object.keys(at),tt=te(ct);if(ot.showHidden&&(ct=Object.getOwnPropertyNames(at)),je(at)&&(ct.indexOf("message")>=0||ct.indexOf("description")>=0))return fe(at);if(ct.length===0){if(Ze(at)){var ut=at.name?": "+at.name:"";return ot.stylize("[Function"+ut+"]","special")}if(Oe(at))return ot.stylize(RegExp.prototype.toString.call(at),"regexp");if(Se(at))return ot.stylize(Date.prototype.toString.call(at),"date");if(je(at))return fe(at)}var st="",ze=!1,Be=["{","}"];if(pe(at)&&(ze=!0,Be=["[","]"]),Ze(at)){var Ke=at.name?": "+at.name:"";st=" [Function"+Ke+"]"}if(Oe(at)&&(st=" "+RegExp.prototype.toString.call(at)),Se(at)&&(st=" "+Date.prototype.toUTCString.call(at)),je(at)&&(st=" "+fe(at)),ct.length===0&&(!ze||at.length==0))return Be[0]+st+Be[1];if(Je<0)return Oe(at)?ot.stylize(RegExp.prototype.toString.call(at),"regexp"):ot.stylize("[Object]","special");ot.seen.push(at);var Ie;return ze?Ie=de(ot,at,Je,tt,ct):Ie=ct.map(function(Ye){return he(ot,at,Je,tt,Ye,ze)}),ot.seen.pop(),ce(Ie,st,Be)}function ue(ot,at){if(Ee(at))return ot.stylize("undefined","undefined");if(ve(at)){var Je="'"+JSON.stringify(at).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ot.stylize(Je,"string")}if(Ae(at))return ot.stylize(""+at,"number");if(Ce(at))return ot.stylize(""+at,"boolean");if(ke(at))return ot.stylize("null","null")}function fe(ot){return"["+Error.prototype.toString.call(ot)+"]"}function de(ot,at,Je,Qe,Ve){for(var ct=[],tt=0,ut=at.length;tt<ut;++tt)rt(at,String(tt))?ct.push(he(ot,at,Je,Qe,String(tt),!0)):ct.push("");return Ve.forEach(function(st){st.match(/^\d+$/)||ct.push(he(ot,at,Je,Qe,st,!0))}),ct}function he(ot,at,Je,Qe,Ve,ct){var tt,ut,st;if(st=Object.getOwnPropertyDescriptor(at,Ve)||{value:at[Ve]},st.get?st.set?ut=ot.stylize("[Getter/Setter]","special"):ut=ot.stylize("[Getter]","special"):st.set&&(ut=ot.stylize("[Setter]","special")),rt(Qe,Ve)||(tt="["+Ve+"]"),ut||(ot.seen.indexOf(st.value)<0?(ke(Je)?ut=ae(ot,st.value,null):ut=ae(ot,st.value,Je-1),ut.indexOf(`
`)>-1&&(ct?ut=ut.split(`
`).map(function(ze){return" "+ze}).join(`
`).substr(2):ut=`
`+ut.split(`
`).map(function(ze){return" "+ze}).join(`
`))):ut=ot.stylize("[Circular]","special")),Ee(tt)){if(ct&&Ve.match(/^\d+$/))return ut;tt=JSON.stringify(""+Ve),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.substr(1,tt.length-2),tt=ot.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=ot.stylize(tt,"string"))}return tt+": "+ut}function ce(ot,at,Je){var Qe=0,Ve=ot.reduce(function(ct,tt){return Qe++,tt.indexOf(`
`)>=0&&Qe++,ct+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ve>60?Je[0]+(at===""?"":at+`
`)+" "+ot.join(`,
`)+" "+Je[1]:Je[0]+at+" "+ot.join(", ")+" "+Je[1]}function pe(ot){return Array.isArray(ot)}ge.isArray=pe;function Ce(ot){return typeof ot=="boolean"}ge.isBoolean=Ce;function ke(ot){return ot===null}ge.isNull=ke;function De(ot){return ot==null}ge.isNullOrUndefined=De;function Ae(ot){return typeof ot=="number"}ge.isNumber=Ae;function ve(ot){return typeof ot=="string"}ge.isString=ve;function be(ot){return typeof ot=="symbol"}ge.isSymbol=be;function Ee(ot){return ot===void 0}ge.isUndefined=Ee;function Oe(ot){return Me(ot)&&$e(ot)==="[object RegExp]"}ge.isRegExp=Oe;function Me(ot){return typeof ot=="object"&&ot!==null}ge.isObject=Me;function Se(ot){return Me(ot)&&$e(ot)==="[object Date]"}ge.isDate=Se;function je(ot){return Me(ot)&&($e(ot)==="[object Error]"||ot instanceof Error)}ge.isError=je;function Ze(ot){return typeof ot=="function"}ge.isFunction=Ze;function Xe(ot){return ot===null||typeof ot=="boolean"||typeof ot=="number"||typeof ot=="string"||typeof ot=="symbol"||typeof ot=="undefined"}ge.isPrimitive=Xe,ge.isBuffer=y("./support/isBuffer");function $e(ot){return Object.prototype.toString.call(ot)}function lt(ot){return ot<10?"0"+ot.toString(10):ot.toString(10)}var Re=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function We(){var ot=new Date,at=[lt(ot.getHours()),lt(ot.getMinutes()),lt(ot.getSeconds())].join(":");return[ot.getDate(),Re[ot.getMonth()],at].join(" ")}ge.log=function(){console.log("%s - %s",We(),ge.format.apply(ge,arguments))},ge.inherits=y("inherits"),ge._extend=function(ot,at){if(!at||!Me(at))return ot;for(var Je=Object.keys(at),Qe=Je.length;Qe--;)ot[Je[Qe]]=at[Je[Qe]];return ot};function rt(ot,at){return Object.prototype.hasOwnProperty.call(ot,at)}}).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,we,ge){(function(ee){(function(){"use strict";var E=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?ee:globalThis;we.exports=function(){for(var z=[],se=0;se<E.length;se++)typeof ie[E[se]]=="function"&&(z[z.length]=E[se]);return z}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,we,ge){"use strict";ge.byteLength=re,ge.toByteArray=ae,ge.fromByteArray=de;for(var ee=[],E=[],ie=typeof Uint8Array!="undefined"?Uint8Array:Array,le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=0,se=le.length;z<se;++z)ee[z]=le[z],E[le.charCodeAt(z)]=z;E[45]=62,E[95]=63;function x(he){var ce=he.length;if(ce%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var pe=he.indexOf("=");pe===-1&&(pe=ce);var Ce=pe===ce?0:4-pe%4;return[pe,Ce]}function re(he){var ce=x(he),pe=ce[0],Ce=ce[1];return(pe+Ce)*3/4-Ce}function te(he,ce,pe){return(ce+pe)*3/4-pe}function ae(he){var ce,pe=x(he),Ce=pe[0],ke=pe[1],De=new ie(te(he,Ce,ke)),Ae=0,ve=ke>0?Ce-4:Ce,be;for(be=0;be<ve;be+=4)ce=E[he.charCodeAt(be)]<<18|E[he.charCodeAt(be+1)]<<12|E[he.charCodeAt(be+2)]<<6|E[he.charCodeAt(be+3)],De[Ae++]=ce>>16&255,De[Ae++]=ce>>8&255,De[Ae++]=ce&255;return ke===2&&(ce=E[he.charCodeAt(be)]<<2|E[he.charCodeAt(be+1)]>>4,De[Ae++]=ce&255),ke===1&&(ce=E[he.charCodeAt(be)]<<10|E[he.charCodeAt(be+1)]<<4|E[he.charCodeAt(be+2)]>>2,De[Ae++]=ce>>8&255,De[Ae++]=ce&255),De}function ue(he){return ee[he>>18&63]+ee[he>>12&63]+ee[he>>6&63]+ee[he&63]}function fe(he,ce,pe){for(var Ce,ke=[],De=ce;De<pe;De+=3)Ce=(he[De]<<16&16711680)+(he[De+1]<<8&65280)+(he[De+2]&255),ke.push(ue(Ce));return ke.join("")}function de(he){for(var ce,pe=he.length,Ce=pe%3,ke=[],De=16383,Ae=0,ve=pe-Ce;Ae<ve;Ae+=De)ke.push(fe(he,Ae,Ae+De>ve?ve:Ae+De));return Ce===1?(ce=he[pe-1],ke.push(ee[ce>>2]+ee[ce<<4&63]+"==")):Ce===2&&(ce=(he[pe-2]<<8)+he[pe-1],ke.push(ee[ce>>10]+ee[ce>>4&63]+ee[ce<<2&63]+"=")),ke.join("")}},{}],88:[function(y,we,ge){(function(ee,E,ie){typeof we!="undefined"&&we.exports?we.exports=ie():typeof Ge=="function"&&Ge.amd?Ge(E,ie):ee[E]=ie()})(this,"bowser",function(){var ee=!0;function E(te){function ae(at){var Je=te.match(at);return Je&&Je.length>1&&Je[1]||""}function ue(at){var Je=te.match(at);return Je&&Je.length>1&&Je[2]||""}var fe=ae(/(ipod|iphone|ipad)/i).toLowerCase(),de=/like android/i.test(te),he=!de&&/android/i.test(te),ce=/nexus\s*[0-6]\s*/i.test(te),pe=!ce&&/nexus\s*[0-9]+/i.test(te),Ce=/CrOS/.test(te),ke=/silk/i.test(te),De=/sailfish/i.test(te),Ae=/tizen/i.test(te),ve=/(web|hpw)(o|0)s/i.test(te),be=/windows phone/i.test(te),Ee=/SamsungBrowser/i.test(te),Oe=!be&&/windows/i.test(te),Me=!fe&&!ke&&/macintosh/i.test(te),Se=!he&&!De&&!Ae&&!ve&&/linux/i.test(te),je=ue(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ze=ae(/version\/(\d+(\.\d+)?)/i),Xe=/tablet/i.test(te)&&!/tablet pc/i.test(te),$e=!Xe&&/[^-]mobi/i.test(te),lt=/xbox/i.test(te),Re;/opera/i.test(te)?Re={name:"Opera",opera:ee,version:Ze||ae(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(te)?Re={name:"Opera",opera:ee,version:ae(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ze}:/SamsungBrowser/i.test(te)?Re={name:"Samsung Internet for Android",samsungBrowser:ee,version:Ze||ae(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(te)?Re={name:"NAVER Whale browser",whale:ee,version:ae(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(te)?Re={name:"MZ Browser",mzbrowser:ee,version:ae(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(te)?Re={name:"Opera Coast",coast:ee,version:Ze||ae(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(te)?Re={name:"Focus",focus:ee,version:ae(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(te)?Re={name:"Yandex Browser",yandexbrowser:ee,version:Ze||ae(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(te)?Re={name:"UC Browser",ucbrowser:ee,version:ae(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(te)?Re={name:"Maxthon",maxthon:ee,version:ae(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(te)?Re={name:"Epiphany",epiphany:ee,version:ae(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(te)?Re={name:"Puffin",puffin:ee,version:ae(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(te)?Re={name:"Sleipnir",sleipnir:ee,version:ae(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(te)?Re={name:"K-Meleon",kMeleon:ee,version:ae(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:be?(Re={name:"Windows Phone",osname:"Windows Phone",windowsphone:ee},je?(Re.msedge=ee,Re.version=je):(Re.msie=ee,Re.version=ae(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(te)?Re={name:"Internet Explorer",msie:ee,version:ae(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ce?Re={name:"Chrome",osname:"Chrome OS",chromeos:ee,chromeBook:ee,chrome:ee,version:ae(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(te)?Re={name:"Microsoft Edge",msedge:ee,version:je}:/vivaldi/i.test(te)?Re={name:"Vivaldi",vivaldi:ee,version:ae(/vivaldi\/(\d+(\.\d+)?)/i)||Ze}:De?Re={name:"Sailfish",osname:"Sailfish OS",sailfish:ee,version:ae(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(te)?Re={name:"SeaMonkey",seamonkey:ee,version:ae(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(te)?(Re={name:"Firefox",firefox:ee,version:ae(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(te)&&(Re.firefoxos=ee,Re.osname="Firefox OS")):ke?Re={name:"Amazon Silk",silk:ee,version:ae(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(te)?Re={name:"PhantomJS",phantom:ee,version:ae(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(te)?Re={name:"SlimerJS",slimer:ee,version:ae(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(te)||/rim\stablet/i.test(te)?Re={name:"BlackBerry",osname:"BlackBerry OS",blackberry:ee,version:Ze||ae(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:ve?(Re={name:"WebOS",osname:"WebOS",webos:ee,version:Ze||ae(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(te)&&(Re.touchpad=ee)):/bada/i.test(te)?Re={name:"Bada",osname:"Bada",bada:ee,version:ae(/dolfin\/(\d+(\.\d+)?)/i)}:Ae?Re={name:"Tizen",osname:"Tizen",tizen:ee,version:ae(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ze}:/qupzilla/i.test(te)?Re={name:"QupZilla",qupzilla:ee,version:ae(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ze}:/chromium/i.test(te)?Re={name:"Chromium",chromium:ee,version:ae(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ze}:/chrome|crios|crmo/i.test(te)?Re={name:"Chrome",chrome:ee,version:ae(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:he?Re={name:"Android",version:Ze}:/safari|applewebkit/i.test(te)?(Re={name:"Safari",safari:ee},Ze&&(Re.version=Ze)):fe?(Re={name:fe=="iphone"?"iPhone":fe=="ipad"?"iPad":"iPod"},Ze&&(Re.version=Ze)):/googlebot/i.test(te)?Re={name:"Googlebot",googlebot:ee,version:ae(/googlebot\/(\d+(\.\d+))/i)||Ze}:Re={name:ae(/^(.*)\/(.*) /),version:ue(/^(.*)\/(.*) /)},!Re.msedge&&/(apple)?webkit/i.test(te)?(/(apple)?webkit\/537\.36/i.test(te)?(Re.name=Re.name||"Blink",Re.blink=ee):(Re.name=Re.name||"Webkit",Re.webkit=ee),!Re.version&&Ze&&(Re.version=Ze)):!Re.opera&&/gecko\//i.test(te)&&(Re.name=Re.name||"Gecko",Re.gecko=ee,Re.version=Re.version||ae(/gecko\/(\d+(\.\d+)?)/i)),!Re.windowsphone&&(he||Re.silk)?(Re.android=ee,Re.osname="Android"):!Re.windowsphone&&fe?(Re[fe]=ee,Re.ios=ee,Re.osname="iOS"):Me?(Re.mac=ee,Re.osname="macOS"):lt?(Re.xbox=ee,Re.osname="Xbox"):Oe?(Re.windows=ee,Re.osname="Windows"):Se&&(Re.linux=ee,Re.osname="Linux");function We(at){switch(at){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 rt="";Re.windows?rt=We(ae(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Re.windowsphone?rt=ae(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Re.mac?(rt=ae(/Mac OS X (\d+([_\.\s]\d+)*)/i),rt=rt.replace(/[_\s]/g,".")):fe?(rt=ae(/os (\d+([_\s]\d+)*) like mac os x/i),rt=rt.replace(/[_\s]/g,".")):he?rt=ae(/android[ \/-](\d+(\.\d+)*)/i):Re.webos?rt=ae(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Re.blackberry?rt=ae(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Re.bada?rt=ae(/bada\/(\d+(\.\d+)*)/i):Re.tizen&&(rt=ae(/tizen[\/\s](\d+(\.\d+)*)/i)),rt&&(Re.osversion=rt);var ot=!Re.windows&&rt.split(".")[0];return Xe||pe||fe=="ipad"||he&&(ot==3||ot>=4&&!$e)||Re.silk?Re.tablet=ee:($e||fe=="iphone"||fe=="ipod"||he||ce||Re.blackberry||Re.webos||Re.bada)&&(Re.mobile=ee),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&&se([Re.version,"1.0"])===1||Re.mzbrowser&&se([Re.version,"6.0"])===1||Re.focus&&se([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=ee: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=ee:Re.x=ee,Re}var ie=E(typeof navigator!="undefined"&&navigator.userAgent||"");ie.test=function(te){for(var ae=0;ae<te.length;++ae){var ue=te[ae];if(typeof ue=="string"&&ue in ie)return!0}return!1};function le(te){return te.split(".").length}function z(te,ae){var ue=[],fe;if(Array.prototype.map)return Array.prototype.map.call(te,ae);for(fe=0;fe<te.length;fe++)ue.push(ae(te[fe]));return ue}function se(te){for(var ae=Math.max(le(te[0]),le(te[1])),ue=z(te,function(fe){var de=ae-le(fe);return fe=fe+new Array(de+1).join(".0"),z(fe.split("."),function(he){return new Array(20-he.length).join("0")+he}).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(te,ae,ue){var fe=ie;typeof ae=="string"&&(ue=ae,ae=void 0),ae===void 0&&(ae=!1),ue&&(fe=E(ue));var de=""+fe.version;for(var he in te)if(te.hasOwnProperty(he)&&fe[he]){if(typeof te[he]!="string")throw new Error("Browser version in the minVersion map should be a string: "+he+": "+String(te));return se([de,te[he]])<0}return ae}function re(te,ae,ue){return!x(te,ae,ue)}return ie.isUnsupportedBrowser=x,ie.compareVersions=se,ie.check=re,ie._detect=E,ie.detect=E,ie})},{}],89:[function(y,we,ge){},{}],90:[function(y,we,ge){(function(ee){(function(){"use strict";var E=y("base64-js"),ie=y("ieee754");ge.Buffer=x,ge.SlowBuffer=Ce,ge.INSPECT_MAX_BYTES=50;var le=2147483647;ge.kMaxLength=le,x.TYPED_ARRAY_SUPPORT=z(),!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 z(){try{var _e=new Uint8Array(1);return _e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},_e.foo()===42}catch(Pe){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 se(_e){if(_e>le)throw new RangeError('The value "'+_e+'" is invalid for option "size"');var Pe=new Uint8Array(_e);return Pe.__proto__=x.prototype,Pe}function x(_e,Pe,He){if(typeof _e=="number"){if(typeof Pe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(_e)}return re(_e,Pe,He)}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 re(_e,Pe,He){if(typeof _e=="string")return fe(_e,Pe);if(ArrayBuffer.isView(_e))return de(_e);if(_e==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e);if(mt(_e,ArrayBuffer)||_e&&mt(_e.buffer,ArrayBuffer))return he(_e,Pe,He);if(typeof _e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var it=_e.valueOf&&_e.valueOf();if(it!=null&&it!==_e)return x.from(it,Pe,He);var Te=ce(_e);if(Te)return Te;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof _e[Symbol.toPrimitive]=="function")return x.from(_e[Symbol.toPrimitive]("string"),Pe,He);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _e)}x.from=function(_e,Pe,He){return re(_e,Pe,He)},x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array;function te(_e){if(typeof _e!="number")throw new TypeError('"size" argument must be of type number');if(_e<0)throw new RangeError('The value "'+_e+'" is invalid for option "size"')}function ae(_e,Pe,He){return te(_e),_e<=0?se(_e):Pe!==void 0?typeof He=="string"?se(_e).fill(Pe,He):se(_e).fill(Pe):se(_e)}x.alloc=function(_e,Pe,He){return ae(_e,Pe,He)};function ue(_e){return te(_e),se(_e<0?0:pe(_e)|0)}x.allocUnsafe=function(_e){return ue(_e)},x.allocUnsafeSlow=function(_e){return ue(_e)};function fe(_e,Pe){if((typeof Pe!="string"||Pe==="")&&(Pe="utf8"),!x.isEncoding(Pe))throw new TypeError("Unknown encoding: "+Pe);var He=ke(_e,Pe)|0,it=se(He),Te=it.write(_e,Pe);return Te!==He&&(it=it.slice(0,Te)),it}function de(_e){for(var Pe=_e.length<0?0:pe(_e.length)|0,He=se(Pe),it=0;it<Pe;it+=1)He[it]=_e[it]&255;return He}function he(_e,Pe,He){if(Pe<0||_e.byteLength<Pe)throw new RangeError('"offset" is outside of buffer bounds');if(_e.byteLength<Pe+(He||0))throw new RangeError('"length" is outside of buffer bounds');var it;return Pe===void 0&&He===void 0?it=new Uint8Array(_e):He===void 0?it=new Uint8Array(_e,Pe):it=new Uint8Array(_e,Pe,He),it.__proto__=x.prototype,it}function ce(_e){if(x.isBuffer(_e)){var Pe=pe(_e.length)|0,He=se(Pe);return He.length===0||_e.copy(He,0,0,Pe),He}if(_e.length!==void 0)return typeof _e.length!="number"||nt(_e.length)?se(0):de(_e);if(_e.type==="Buffer"&&Array.isArray(_e.data))return de(_e.data)}function pe(_e){if(_e>=le)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+le.toString(16)+" bytes");return _e|0}function Ce(_e){return+_e!=_e&&(_e=0),x.alloc(+_e)}x.isBuffer=function(Pe){return Pe!=null&&Pe._isBuffer===!0&&Pe!==x.prototype},x.compare=function(Pe,He){if(mt(Pe,Uint8Array)&&(Pe=x.from(Pe,Pe.offset,Pe.byteLength)),mt(He,Uint8Array)&&(He=x.from(He,He.offset,He.byteLength)),!x.isBuffer(Pe)||!x.isBuffer(He))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Pe===He)return 0;for(var it=Pe.length,Te=He.length,xe=0,ye=Math.min(it,Te);xe<ye;++xe)if(Pe[xe]!==He[xe]){it=Pe[xe],Te=He[xe];break}return it<Te?-1:Te<it?1:0},x.isEncoding=function(Pe){switch(String(Pe).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(Pe,He){if(!Array.isArray(Pe))throw new TypeError('"list" argument must be an Array of Buffers');if(Pe.length===0)return x.alloc(0);var it;if(He===void 0)for(He=0,it=0;it<Pe.length;++it)He+=Pe[it].length;var Te=x.allocUnsafe(He),xe=0;for(it=0;it<Pe.length;++it){var ye=Pe[it];if(mt(ye,Uint8Array)&&(ye=x.from(ye)),!x.isBuffer(ye))throw new TypeError('"list" argument must be an Array of Buffers');ye.copy(Te,xe),xe+=ye.length}return Te};function ke(_e,Pe){if(x.isBuffer(_e))return _e.length;if(ArrayBuffer.isView(_e)||mt(_e,ArrayBuffer))return _e.byteLength;if(typeof _e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _e);var He=_e.length,it=arguments.length>2&&arguments[2]===!0;if(!it&&He===0)return 0;for(var Te=!1;;)switch(Pe){case"ascii":case"latin1":case"binary":return He;case"utf8":case"utf-8":return Be(_e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He*2;case"hex":return He>>>1;case"base64":return Ye(_e).length;default:if(Te)return it?-1:Be(_e).length;Pe=(""+Pe).toLowerCase(),Te=!0}}x.byteLength=ke;function De(_e,Pe,He){var it=!1;if((Pe===void 0||Pe<0)&&(Pe=0),Pe>this.length||((He===void 0||He>this.length)&&(He=this.length),He<=0)||(He>>>=0,Pe>>>=0,He<=Pe))return"";for(_e||(_e="utf8");;)switch(_e){case"hex":return ot(this,Pe,He);case"utf8":case"utf-8":return $e(this,Pe,He);case"ascii":return We(this,Pe,He);case"latin1":case"binary":return rt(this,Pe,He);case"base64":return Xe(this,Pe,He);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,Pe,He);default:if(it)throw new TypeError("Unknown encoding: "+_e);_e=(_e+"").toLowerCase(),it=!0}}x.prototype._isBuffer=!0;function Ae(_e,Pe,He){var it=_e[Pe];_e[Pe]=_e[He],_e[He]=it}x.prototype.swap16=function(){var Pe=this.length;if(Pe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var He=0;He<Pe;He+=2)Ae(this,He,He+1);return this},x.prototype.swap32=function(){var Pe=this.length;if(Pe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var He=0;He<Pe;He+=4)Ae(this,He,He+3),Ae(this,He+1,He+2);return this},x.prototype.swap64=function(){var Pe=this.length;if(Pe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var He=0;He<Pe;He+=8)Ae(this,He,He+7),Ae(this,He+1,He+6),Ae(this,He+2,He+5),Ae(this,He+3,He+4);return this},x.prototype.toString=function(){var Pe=this.length;return Pe===0?"":arguments.length===0?$e(this,0,Pe):De.apply(this,arguments)},x.prototype.toLocaleString=x.prototype.toString,x.prototype.equals=function(Pe){if(!x.isBuffer(Pe))throw new TypeError("Argument must be a Buffer");return this===Pe?!0:x.compare(this,Pe)===0},x.prototype.inspect=function(){var Pe="",He=ge.INSPECT_MAX_BYTES;return Pe=this.toString("hex",0,He).replace(/(.{2})/g,"$1 ").trim(),this.length>He&&(Pe+=" ... "),"<Buffer "+Pe+">"},x.prototype.compare=function(Pe,He,it,Te,xe){if(mt(Pe,Uint8Array)&&(Pe=x.from(Pe,Pe.offset,Pe.byteLength)),!x.isBuffer(Pe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Pe);if(He===void 0&&(He=0),it===void 0&&(it=Pe?Pe.length:0),Te===void 0&&(Te=0),xe===void 0&&(xe=this.length),He<0||it>Pe.length||Te<0||xe>this.length)throw new RangeError("out of range index");if(Te>=xe&&He>=it)return 0;if(Te>=xe)return-1;if(He>=it)return 1;if(He>>>=0,it>>>=0,Te>>>=0,xe>>>=0,this===Pe)return 0;for(var ye=xe-Te,Le=it-He,et=Math.min(ye,Le),Ne=this.slice(Te,xe),yt=Pe.slice(He,it),wt=0;wt<et;++wt)if(Ne[wt]!==yt[wt]){ye=Ne[wt],Le=yt[wt];break}return ye<Le?-1:Le<ye?1:0};function ve(_e,Pe,He,it,Te){if(_e.length===0)return-1;if(typeof He=="string"?(it=He,He=0):He>2147483647?He=2147483647:He<-2147483648&&(He=-2147483648),He=+He,nt(He)&&(He=Te?0:_e.length-1),He<0&&(He=_e.length+He),He>=_e.length){if(Te)return-1;He=_e.length-1}else if(He<0)if(Te)He=0;else return-1;if(typeof Pe=="string"&&(Pe=x.from(Pe,it)),x.isBuffer(Pe))return Pe.length===0?-1:be(_e,Pe,He,it,Te);if(typeof Pe=="number")return Pe=Pe&255,typeof Uint8Array.prototype.indexOf=="function"?Te?Uint8Array.prototype.indexOf.call(_e,Pe,He):Uint8Array.prototype.lastIndexOf.call(_e,Pe,He):be(_e,[Pe],He,it,Te);throw new TypeError("val must be string, number or Buffer")}function be(_e,Pe,He,it,Te){var xe=1,ye=_e.length,Le=Pe.length;if(it!==void 0&&(it=String(it).toLowerCase(),it==="ucs2"||it==="ucs-2"||it==="utf16le"||it==="utf-16le")){if(_e.length<2||Pe.length<2)return-1;xe=2,ye/=2,Le/=2,He/=2}function et(gt,ht){return xe===1?gt[ht]:gt.readUInt16BE(ht*xe)}var Ne;if(Te){var yt=-1;for(Ne=He;Ne<ye;Ne++)if(et(_e,Ne)===et(Pe,yt===-1?0:Ne-yt)){if(yt===-1&&(yt=Ne),Ne-yt+1===Le)return yt*xe}else yt!==-1&&(Ne-=Ne-yt),yt=-1}else for(He+Le>ye&&(He=ye-Le),Ne=He;Ne>=0;Ne--){for(var wt=!0,vt=0;vt<Le;vt++)if(et(_e,Ne+vt)!==et(Pe,vt)){wt=!1;break}if(wt)return Ne}return-1}x.prototype.includes=function(Pe,He,it){return this.indexOf(Pe,He,it)!==-1},x.prototype.indexOf=function(Pe,He,it){return ve(this,Pe,He,it,!0)},x.prototype.lastIndexOf=function(Pe,He,it){return ve(this,Pe,He,it,!1)};function Ee(_e,Pe,He,it){He=Number(He)||0;var Te=_e.length-He;it?(it=Number(it),it>Te&&(it=Te)):it=Te;var xe=Pe.length;it>xe/2&&(it=xe/2);for(var ye=0;ye<it;++ye){var Le=parseInt(Pe.substr(ye*2,2),16);if(nt(Le))return ye;_e[He+ye]=Le}return ye}function Oe(_e,Pe,He,it){return ft(Be(Pe,_e.length-He),_e,He,it)}function Me(_e,Pe,He,it){return ft(Ke(Pe),_e,He,it)}function Se(_e,Pe,He,it){return Me(_e,Pe,He,it)}function je(_e,Pe,He,it){return ft(Ye(Pe),_e,He,it)}function Ze(_e,Pe,He,it){return ft(Ie(Pe,_e.length-He),_e,He,it)}x.prototype.write=function(Pe,He,it,Te){if(He===void 0)Te="utf8",it=this.length,He=0;else if(it===void 0&&typeof He=="string")Te=He,it=this.length,He=0;else if(isFinite(He))He=He>>>0,isFinite(it)?(it=it>>>0,Te===void 0&&(Te="utf8")):(Te=it,it=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var xe=this.length-He;if((it===void 0||it>xe)&&(it=xe),Pe.length>0&&(it<0||He<0)||He>this.length)throw new RangeError("Attempt to write outside buffer bounds");Te||(Te="utf8");for(var ye=!1;;)switch(Te){case"hex":return Ee(this,Pe,He,it);case"utf8":case"utf-8":return Oe(this,Pe,He,it);case"ascii":return Me(this,Pe,He,it);case"latin1":case"binary":return Se(this,Pe,He,it);case"base64":return je(this,Pe,He,it);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,Pe,He,it);default:if(ye)throw new TypeError("Unknown encoding: "+Te);Te=(""+Te).toLowerCase(),ye=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Xe(_e,Pe,He){return Pe===0&&He===_e.length?E.fromByteArray(_e):E.fromByteArray(_e.slice(Pe,He))}function $e(_e,Pe,He){He=Math.min(_e.length,He);for(var it=[],Te=Pe;Te<He;){var xe=_e[Te],ye=null,Le=xe>239?4:xe>223?3:xe>191?2:1;if(Te+Le<=He){var et,Ne,yt,wt;switch(Le){case 1:xe<128&&(ye=xe);break;case 2:et=_e[Te+1],(et&192)===128&&(wt=(xe&31)<<6|et&63,wt>127&&(ye=wt));break;case 3:et=_e[Te+1],Ne=_e[Te+2],(et&192)===128&&(Ne&192)===128&&(wt=(xe&15)<<12|(et&63)<<6|Ne&63,wt>2047&&(wt<55296||wt>57343)&&(ye=wt));break;case 4:et=_e[Te+1],Ne=_e[Te+2],yt=_e[Te+3],(et&192)===128&&(Ne&192)===128&&(yt&192)===128&&(wt=(xe&15)<<18|(et&63)<<12|(Ne&63)<<6|yt&63,wt>65535&&wt<1114112&&(ye=wt))}}ye===null?(ye=65533,Le=1):ye>65535&&(ye-=65536,it.push(ye>>>10&1023|55296),ye=56320|ye&1023),it.push(ye),Te+=Le}return Re(it)}var lt=4096;function Re(_e){var Pe=_e.length;if(Pe<=lt)return String.fromCharCode.apply(String,_e);for(var He="",it=0;it<Pe;)He+=String.fromCharCode.apply(String,_e.slice(it,it+=lt));return He}function We(_e,Pe,He){var it="";He=Math.min(_e.length,He);for(var Te=Pe;Te<He;++Te)it+=String.fromCharCode(_e[Te]&127);return it}function rt(_e,Pe,He){var it="";He=Math.min(_e.length,He);for(var Te=Pe;Te<He;++Te)it+=String.fromCharCode(_e[Te]);return it}function ot(_e,Pe,He){var it=_e.length;(!Pe||Pe<0)&&(Pe=0),(!He||He<0||He>it)&&(He=it);for(var Te="",xe=Pe;xe<He;++xe)Te+=ze(_e[xe]);return Te}function at(_e,Pe,He){for(var it=_e.slice(Pe,He),Te="",xe=0;xe<it.length;xe+=2)Te+=String.fromCharCode(it[xe]+it[xe+1]*256);return Te}x.prototype.slice=function(Pe,He){var it=this.length;Pe=~~Pe,He=He===void 0?it:~~He,Pe<0?(Pe+=it,Pe<0&&(Pe=0)):Pe>it&&(Pe=it),He<0?(He+=it,He<0&&(He=0)):He>it&&(He=it),He<Pe&&(He=Pe);var Te=this.subarray(Pe,He);return Te.__proto__=x.prototype,Te};function Je(_e,Pe,He){if(_e%1!==0||_e<0)throw new RangeError("offset is not uint");if(_e+Pe>He)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(Pe,He,it){Pe=Pe>>>0,He=He>>>0,it||Je(Pe,He,this.length);for(var Te=this[Pe],xe=1,ye=0;++ye<He&&(xe*=256);)Te+=this[Pe+ye]*xe;return Te},x.prototype.readUIntBE=function(Pe,He,it){Pe=Pe>>>0,He=He>>>0,it||Je(Pe,He,this.length);for(var Te=this[Pe+--He],xe=1;He>0&&(xe*=256);)Te+=this[Pe+--He]*xe;return Te},x.prototype.readUInt8=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,1,this.length),this[Pe]},x.prototype.readUInt16LE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,2,this.length),this[Pe]|this[Pe+1]<<8},x.prototype.readUInt16BE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,2,this.length),this[Pe]<<8|this[Pe+1]},x.prototype.readUInt32LE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,4,this.length),(this[Pe]|this[Pe+1]<<8|this[Pe+2]<<16)+this[Pe+3]*16777216},x.prototype.readUInt32BE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,4,this.length),this[Pe]*16777216+(this[Pe+1]<<16|this[Pe+2]<<8|this[Pe+3])},x.prototype.readIntLE=function(Pe,He,it){Pe=Pe>>>0,He=He>>>0,it||Je(Pe,He,this.length);for(var Te=this[Pe],xe=1,ye=0;++ye<He&&(xe*=256);)Te+=this[Pe+ye]*xe;return xe*=128,Te>=xe&&(Te-=Math.pow(2,8*He)),Te},x.prototype.readIntBE=function(Pe,He,it){Pe=Pe>>>0,He=He>>>0,it||Je(Pe,He,this.length);for(var Te=He,xe=1,ye=this[Pe+--Te];Te>0&&(xe*=256);)ye+=this[Pe+--Te]*xe;return xe*=128,ye>=xe&&(ye-=Math.pow(2,8*He)),ye},x.prototype.readInt8=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,1,this.length),this[Pe]&128?(255-this[Pe]+1)*-1:this[Pe]},x.prototype.readInt16LE=function(Pe,He){Pe=Pe>>>0,He||Je(Pe,2,this.length);var it=this[Pe]|this[Pe+1]<<8;return it&32768?it|4294901760:it},x.prototype.readInt16BE=function(Pe,He){Pe=Pe>>>0,He||Je(Pe,2,this.length);var it=this[Pe+1]|this[Pe]<<8;return it&32768?it|4294901760:it},x.prototype.readInt32LE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,4,this.length),this[Pe]|this[Pe+1]<<8|this[Pe+2]<<16|this[Pe+3]<<24},x.prototype.readInt32BE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,4,this.length),this[Pe]<<24|this[Pe+1]<<16|this[Pe+2]<<8|this[Pe+3]},x.prototype.readFloatLE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,4,this.length),ie.read(this,Pe,!0,23,4)},x.prototype.readFloatBE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,4,this.length),ie.read(this,Pe,!1,23,4)},x.prototype.readDoubleLE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,8,this.length),ie.read(this,Pe,!0,52,8)},x.prototype.readDoubleBE=function(Pe,He){return Pe=Pe>>>0,He||Je(Pe,8,this.length),ie.read(this,Pe,!1,52,8)};function Qe(_e,Pe,He,it,Te,xe){if(!x.isBuffer(_e))throw new TypeError('"buffer" argument must be a Buffer instance');if(Pe>Te||Pe<xe)throw new RangeError('"value" argument is out of bounds');if(He+it>_e.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(Pe,He,it,Te){if(Pe=+Pe,He=He>>>0,it=it>>>0,!Te){var xe=Math.pow(2,8*it)-1;Qe(this,Pe,He,it,xe,0)}var ye=1,Le=0;for(this[He]=Pe&255;++Le<it&&(ye*=256);)this[He+Le]=Pe/ye&255;return He+it},x.prototype.writeUIntBE=function(Pe,He,it,Te){if(Pe=+Pe,He=He>>>0,it=it>>>0,!Te){var xe=Math.pow(2,8*it)-1;Qe(this,Pe,He,it,xe,0)}var ye=it-1,Le=1;for(this[He+ye]=Pe&255;--ye>=0&&(Le*=256);)this[He+ye]=Pe/Le&255;return He+it},x.prototype.writeUInt8=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,1,255,0),this[He]=Pe&255,He+1},x.prototype.writeUInt16LE=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,2,65535,0),this[He]=Pe&255,this[He+1]=Pe>>>8,He+2},x.prototype.writeUInt16BE=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,2,65535,0),this[He]=Pe>>>8,this[He+1]=Pe&255,He+2},x.prototype.writeUInt32LE=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,4,4294967295,0),this[He+3]=Pe>>>24,this[He+2]=Pe>>>16,this[He+1]=Pe>>>8,this[He]=Pe&255,He+4},x.prototype.writeUInt32BE=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,4,4294967295,0),this[He]=Pe>>>24,this[He+1]=Pe>>>16,this[He+2]=Pe>>>8,this[He+3]=Pe&255,He+4},x.prototype.writeIntLE=function(Pe,He,it,Te){if(Pe=+Pe,He=He>>>0,!Te){var xe=Math.pow(2,8*it-1);Qe(this,Pe,He,it,xe-1,-xe)}var ye=0,Le=1,et=0;for(this[He]=Pe&255;++ye<it&&(Le*=256);)Pe<0&&et===0&&this[He+ye-1]!==0&&(et=1),this[He+ye]=(Pe/Le>>0)-et&255;return He+it},x.prototype.writeIntBE=function(Pe,He,it,Te){if(Pe=+Pe,He=He>>>0,!Te){var xe=Math.pow(2,8*it-1);Qe(this,Pe,He,it,xe-1,-xe)}var ye=it-1,Le=1,et=0;for(this[He+ye]=Pe&255;--ye>=0&&(Le*=256);)Pe<0&&et===0&&this[He+ye+1]!==0&&(et=1),this[He+ye]=(Pe/Le>>0)-et&255;return He+it},x.prototype.writeInt8=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,1,127,-128),Pe<0&&(Pe=255+Pe+1),this[He]=Pe&255,He+1},x.prototype.writeInt16LE=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,2,32767,-32768),this[He]=Pe&255,this[He+1]=Pe>>>8,He+2},x.prototype.writeInt16BE=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,2,32767,-32768),this[He]=Pe>>>8,this[He+1]=Pe&255,He+2},x.prototype.writeInt32LE=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,4,2147483647,-2147483648),this[He]=Pe&255,this[He+1]=Pe>>>8,this[He+2]=Pe>>>16,this[He+3]=Pe>>>24,He+4},x.prototype.writeInt32BE=function(Pe,He,it){return Pe=+Pe,He=He>>>0,it||Qe(this,Pe,He,4,2147483647,-2147483648),Pe<0&&(Pe=4294967295+Pe+1),this[He]=Pe>>>24,this[He+1]=Pe>>>16,this[He+2]=Pe>>>8,this[He+3]=Pe&255,He+4};function Ve(_e,Pe,He,it,Te,xe){if(He+it>_e.length)throw new RangeError("Index out of range");if(He<0)throw new RangeError("Index out of range")}function ct(_e,Pe,He,it,Te){return Pe=+Pe,He=He>>>0,Te||Ve(_e,Pe,He,4,34028234663852886e22,-34028234663852886e22),ie.write(_e,Pe,He,it,23,4),He+4}x.prototype.writeFloatLE=function(Pe,He,it){return ct(this,Pe,He,!0,it)},x.prototype.writeFloatBE=function(Pe,He,it){return ct(this,Pe,He,!1,it)};function tt(_e,Pe,He,it,Te){return Pe=+Pe,He=He>>>0,Te||Ve(_e,Pe,He,8,17976931348623157e292,-17976931348623157e292),ie.write(_e,Pe,He,it,52,8),He+8}x.prototype.writeDoubleLE=function(Pe,He,it){return tt(this,Pe,He,!0,it)},x.prototype.writeDoubleBE=function(Pe,He,it){return tt(this,Pe,He,!1,it)},x.prototype.copy=function(Pe,He,it,Te){if(!x.isBuffer(Pe))throw new TypeError("argument should be a Buffer");if(it||(it=0),!Te&&Te!==0&&(Te=this.length),He>=Pe.length&&(He=Pe.length),He||(He=0),Te>0&&Te<it&&(Te=it),Te===it||Pe.length===0||this.length===0)return 0;if(He<0)throw new RangeError("targetStart out of bounds");if(it<0||it>=this.length)throw new RangeError("Index out of range");if(Te<0)throw new RangeError("sourceEnd out of bounds");Te>this.length&&(Te=this.length),Pe.length-He<Te-it&&(Te=Pe.length-He+it);var xe=Te-it;if(this===Pe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(He,it,Te);else if(this===Pe&&it<He&&He<Te)for(var ye=xe-1;ye>=0;--ye)Pe[ye+He]=this[ye+it];else Uint8Array.prototype.set.call(Pe,this.subarray(it,Te),He);return xe},x.prototype.fill=function(Pe,He,it,Te){if(typeof Pe=="string"){if(typeof He=="string"?(Te=He,He=0,it=this.length):typeof it=="string"&&(Te=it,it=this.length),Te!==void 0&&typeof Te!="string")throw new TypeError("encoding must be a string");if(typeof Te=="string"&&!x.isEncoding(Te))throw new TypeError("Unknown encoding: "+Te);if(Pe.length===1){var xe=Pe.charCodeAt(0);(Te==="utf8"&&xe<128||Te==="latin1")&&(Pe=xe)}}else typeof Pe=="number"&&(Pe=Pe&255);if(He<0||this.length<He||this.length<it)throw new RangeError("Out of range index");if(it<=He)return this;He=He>>>0,it=it===void 0?this.length:it>>>0,Pe||(Pe=0);var ye;if(typeof Pe=="number")for(ye=He;ye<it;++ye)this[ye]=Pe;else{var Le=x.isBuffer(Pe)?Pe:x.from(Pe,Te),et=Le.length;if(et===0)throw new TypeError('The value "'+Pe+'" is invalid for argument "value"');for(ye=0;ye<it-He;++ye)this[ye+He]=Le[ye%et]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function st(_e){if(_e=_e.split("=")[0],_e=_e.trim().replace(ut,""),_e.length<2)return"";for(;_e.length%4!==0;)_e=_e+"=";return _e}function ze(_e){return _e<16?"0"+_e.toString(16):_e.toString(16)}function Be(_e,Pe){Pe=Pe||1/0;for(var He,it=_e.length,Te=null,xe=[],ye=0;ye<it;++ye){if(He=_e.charCodeAt(ye),He>55295&&He<57344){if(!Te){if(He>56319){(Pe-=3)>-1&&xe.push(239,191,189);continue}else if(ye+1===it){(Pe-=3)>-1&&xe.push(239,191,189);continue}Te=He;continue}if(He<56320){(Pe-=3)>-1&&xe.push(239,191,189),Te=He;continue}He=(Te-55296<<10|He-56320)+65536}else Te&&(Pe-=3)>-1&&xe.push(239,191,189);if(Te=null,He<128){if((Pe-=1)<0)break;xe.push(He)}else if(He<2048){if((Pe-=2)<0)break;xe.push(He>>6|192,He&63|128)}else if(He<65536){if((Pe-=3)<0)break;xe.push(He>>12|224,He>>6&63|128,He&63|128)}else if(He<1114112){if((Pe-=4)<0)break;xe.push(He>>18|240,He>>12&63|128,He>>6&63|128,He&63|128)}else throw new Error("Invalid code point")}return xe}function Ke(_e){for(var Pe=[],He=0;He<_e.length;++He)Pe.push(_e.charCodeAt(He)&255);return Pe}function Ie(_e,Pe){for(var He,it,Te,xe=[],ye=0;ye<_e.length&&!((Pe-=2)<0);++ye)He=_e.charCodeAt(ye),it=He>>8,Te=He%256,xe.push(Te),xe.push(it);return xe}function Ye(_e){return E.toByteArray(st(_e))}function ft(_e,Pe,He,it){for(var Te=0;Te<it&&!(Te+He>=Pe.length||Te>=_e.length);++Te)Pe[Te+He]=_e[Te];return Te}function mt(_e,Pe){return _e instanceof Pe||_e!=null&&_e.constructor!=null&&_e.constructor.name!=null&&_e.constructor.name===Pe.name}function nt(_e){return _e!==_e}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,we,ge){we.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,we,ge){"use strict";var ee=y("get-intrinsic"),E=y("./"),ie=E(ee("String.prototype.indexOf"));we.exports=function(z,se){var x=ee(z,!!se);return typeof x=="function"&&ie(z,".prototype.")>-1?E(x):x}},{"./":93,"get-intrinsic":348}],93:[function(y,we,ge){"use strict";var ee=y("function-bind"),E=y("get-intrinsic"),ie=E("%Function.prototype.apply%"),le=E("%Function.prototype.call%"),z=E("%Reflect.apply%",!0)||ee.call(le,ie),se=E("%Object.getOwnPropertyDescriptor%",!0),x=E("%Object.defineProperty%",!0),re=E("%Math.max%");if(x)try{x({},"a",{value:1})}catch(ae){x=null}we.exports=function(ue){var fe=z(ee,le,arguments);if(se&&x){var de=se(fe,"length");de.configurable&&x(fe,"length",{value:1+re(0,ue.length-(arguments.length-1))})}return fe};var te=function(){return z(ee,ie,arguments)};x?x(we.exports,"apply",{value:te}):we.exports.apply=te},{"function-bind":347,"get-intrinsic":348}],94:[function(y,we,ge){"use strict";var ee=Array.prototype.slice;we.exports=E;function E(le,z){if(!(this instanceof E))return new E(le,z);this.src=le,this._withAccess=z}E.prototype.withAccess=function(le){return this._withAccess=le!==!1,this},E.prototype.pick=function(le){return Array.isArray(le)||(le=ee.call(arguments)),le.length&&(this.keys=le),this},E.prototype.to=function(le){if(le=le||{},!this.src)return le;var z=this.keys||Object.keys(this.src);if(!this._withAccess){for(var se=0;se<z.length;se++)x=z[se],le[x]===void 0&&(le[x]=this.src[x]);return le}for(var se=0;se<z.length;se++){var x=z[se];if(ie(le,x)){var re=this.src.__lookupGetter__(x),te=this.src.__lookupSetter__(x);re&&le.__defineGetter__(x,re),te&&le.__defineSetter__(x,te),!re&&!te&&(le[x]=this.src[x])}}return le},E.prototype.toCover=function(le){for(var z=this.keys||Object.keys(this.src),se=0;se<z.length;se++){var x=z[se];delete le[x];var re=this.src.__lookupGetter__(x),te=this.src.__lookupSetter__(x);re&&le.__defineGetter__(x,re),te&&le.__defineSetter__(x,te),!re&&!te&&(le[x]=this.src[x])}},E.prototype.override=E.prototype.toCover,E.prototype.and=function(le){var z={};return this.to(z),this.src=le,this.to(z),this.src=z,this};function ie(le,z){return le[z]===void 0&&le.__lookupGetter__(z)===void 0&&le.__lookupSetter__(z)===void 0}},{}],95:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-callable"),ie=y("../internals/try-to-string"),le=ee.TypeError;we.exports=function(z){if(E(z))return z;throw le(ie(z)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-constructor"),ie=y("../internals/try-to-string"),le=ee.TypeError;we.exports=function(z){if(E(z))return z;throw le(ie(z)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-callable"),ie=ee.String,le=ee.TypeError;we.exports=function(z){if(typeof z=="object"||E(z))return z;throw le("Can't set "+ie(z)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,we,ge){var ee=y("../internals/well-known-symbol"),E=y("../internals/object-create"),ie=y("../internals/object-define-property"),le=ee("unscopables"),z=Array.prototype;z[le]==null&&ie.f(z,le,{configurable:!0,value:E(null)}),we.exports=function(se){z[le][se]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,we,ge){"use strict";var ee=y("../internals/string-multibyte").charAt;we.exports=function(E,ie,le){return ie+(le?ee(E,ie).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/object-is-prototype-of"),ie=ee.TypeError;we.exports=function(le,z){if(E(z,le))return le;throw ie("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-object"),ie=ee.String,le=ee.TypeError;we.exports=function(z){if(E(z))return z;throw le(ie(z)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,we,ge){we.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-native"),E=y("../internals/descriptors"),ie=y("../internals/global"),le=y("../internals/is-callable"),z=y("../internals/is-object"),se=y("../internals/has-own-property"),x=y("../internals/classof"),re=y("../internals/try-to-string"),te=y("../internals/create-non-enumerable-property"),ae=y("../internals/redefine"),ue=y("../internals/object-define-property").f,fe=y("../internals/object-is-prototype-of"),de=y("../internals/object-get-prototype-of"),he=y("../internals/object-set-prototype-of"),ce=y("../internals/well-known-symbol"),pe=y("../internals/uid"),Ce=ie.Int8Array,ke=Ce&&Ce.prototype,De=ie.Uint8ClampedArray,Ae=De&&De.prototype,ve=Ce&&de(Ce),be=ke&&de(ke),Ee=Object.prototype,Oe=ie.TypeError,Me=ce("toStringTag"),Se=pe("TYPED_ARRAY_TAG"),je=pe("TYPED_ARRAY_CONSTRUCTOR"),Ze=ee&&!!he&&x(ie.opera)!=="Opera",Xe=!1,$e,lt,Re,We={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},rt={BigInt64Array:8,BigUint64Array:8},ot=function(ut){if(!z(ut))return!1;var st=x(ut);return st==="DataView"||se(We,st)||se(rt,st)},at=function(tt){if(!z(tt))return!1;var ut=x(tt);return se(We,ut)||se(rt,ut)},Je=function(tt){if(at(tt))return tt;throw Oe("Target is not a typed array")},Qe=function(tt){if(le(tt)&&(!he||fe(ve,tt)))return tt;throw Oe(re(tt)+" is not a typed array constructor")},Ve=function(tt,ut,st,ze){if(E){if(st)for(var Be in We){var Ke=ie[Be];if(Ke&&se(Ke.prototype,tt))try{delete Ke.prototype[tt]}catch(Ie){try{Ke.prototype[tt]=ut}catch(Ye){}}}(!be[tt]||st)&&ae(be,tt,st?ut:Ze&&ke[tt]||ut,ze)}},ct=function(tt,ut,st){var ze,Be;if(E){if(he){if(st){for(ze in We)if(Be=ie[ze],Be&&se(Be,tt))try{delete Be[tt]}catch(Ke){}}if(!ve[tt]||st)try{return ae(ve,tt,st?ut:Ze&&ve[tt]||ut)}catch(Ke){}else return}for(ze in We)Be=ie[ze],Be&&(!Be[tt]||st)&&ae(Be,tt,ut)}};for($e in We)lt=ie[$e],Re=lt&&lt.prototype,Re?te(Re,je,lt):Ze=!1;for($e in rt)lt=ie[$e],Re=lt&&lt.prototype,Re&&te(Re,je,lt);if((!Ze||!le(ve)||ve===Function.prototype)&&(ve=function(){throw Oe("Incorrect invocation")},Ze))for($e in We)ie[$e]&&he(ie[$e],ve);if((!Ze||!be||be===Ee)&&(be=ve.prototype,Ze))for($e in We)ie[$e]&&he(ie[$e].prototype,be);if(Ze&&de(Ae)!==be&&he(Ae,be),E&&!se(be,Me)){Xe=!0,ue(be,Me,{get:function(){return z(this)?this[Se]:void 0}});for($e in We)ie[$e]&&te(ie[$e],Se,$e)}we.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ze,TYPED_ARRAY_CONSTRUCTOR:je,TYPED_ARRAY_TAG:Xe&&Se,aTypedArray:Je,aTypedArrayConstructor:Qe,exportTypedArrayMethod:Ve,exportTypedArrayStaticMethod:ct,isView:ot,isTypedArray:at,TypedArray:ve,TypedArrayPrototype:be}},{"../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,we,ge){"use strict";var ee=y("../internals/global"),E=y("../internals/function-uncurry-this"),ie=y("../internals/descriptors"),le=y("../internals/array-buffer-native"),z=y("../internals/function-name"),se=y("../internals/create-non-enumerable-property"),x=y("../internals/redefine-all"),re=y("../internals/fails"),te=y("../internals/an-instance"),ae=y("../internals/to-integer-or-infinity"),ue=y("../internals/to-length"),fe=y("../internals/to-index"),de=y("../internals/ieee754"),he=y("../internals/object-get-prototype-of"),ce=y("../internals/object-set-prototype-of"),pe=y("../internals/object-get-own-property-names").f,Ce=y("../internals/object-define-property").f,ke=y("../internals/array-fill"),De=y("../internals/array-slice-simple"),Ae=y("../internals/set-to-string-tag"),ve=y("../internals/internal-state"),be=z.PROPER,Ee=z.CONFIGURABLE,Oe=ve.get,Me=ve.set,Se="ArrayBuffer",je="DataView",Ze="prototype",Xe="Wrong length",$e="Wrong index",lt=ee[Se],Re=lt,We=Re&&Re[Ze],rt=ee[je],ot=rt&&rt[Ze],at=Object.prototype,Je=ee.Array,Qe=ee.RangeError,Ve=E(ke),ct=E([].reverse),tt=de.pack,ut=de.unpack,st=function(ye){return[ye&255]},ze=function(ye){return[ye&255,ye>>8&255]},Be=function(ye){return[ye&255,ye>>8&255,ye>>16&255,ye>>24&255]},Ke=function(ye){return ye[3]<<24|ye[2]<<16|ye[1]<<8|ye[0]},Ie=function(ye){return tt(ye,23,4)},Ye=function(ye){return tt(ye,52,8)},ft=function(ye,Le){Ce(ye[Ze],Le,{get:function(){return Oe(this)[Le]}})},mt=function(ye,Le,et,Ne){var yt=fe(et),wt=Oe(ye);if(yt+Le>wt.byteLength)throw Qe($e);var vt=Oe(wt.buffer).bytes,gt=yt+wt.byteOffset,ht=De(vt,gt,gt+Le);return Ne?ht:ct(ht)},nt=function(ye,Le,et,Ne,yt,wt){var vt=fe(et),gt=Oe(ye);if(vt+Le>gt.byteLength)throw Qe($e);for(var ht=Oe(gt.buffer).bytes,xt=vt+gt.byteOffset,St=Ne(+yt),Ct=0;Ct<Le;Ct++)ht[xt+Ct]=St[wt?Ct:Le-Ct-1]};if(!le)Re=function(Le){te(this,We);var et=fe(Le);Me(this,{bytes:Ve(Je(et),0),byteLength:et}),ie||(this.byteLength=et)},We=Re[Ze],rt=function(Le,et,Ne){te(this,ot),te(Le,We);var yt=Oe(Le).byteLength,wt=ae(et);if(wt<0||wt>yt)throw Qe("Wrong offset");if(Ne=Ne===void 0?yt-wt:ue(Ne),wt+Ne>yt)throw Qe(Xe);Me(this,{buffer:Le,byteLength:Ne,byteOffset:wt}),ie||(this.buffer=Le,this.byteLength=Ne,this.byteOffset=wt)},ot=rt[Ze],ie&&(ft(Re,"byteLength"),ft(rt,"buffer"),ft(rt,"byteLength"),ft(rt,"byteOffset")),x(ot,{getInt8:function(Le){return mt(this,1,Le)[0]<<24>>24},getUint8:function(Le){return mt(this,1,Le)[0]},getInt16:function(Le){var et=mt(this,2,Le,arguments.length>1?arguments[1]:void 0);return(et[1]<<8|et[0])<<16>>16},getUint16:function(Le){var et=mt(this,2,Le,arguments.length>1?arguments[1]:void 0);return et[1]<<8|et[0]},getInt32:function(Le){return Ke(mt(this,4,Le,arguments.length>1?arguments[1]:void 0))},getUint32:function(Le){return Ke(mt(this,4,Le,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Le){return ut(mt(this,4,Le,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Le){return ut(mt(this,8,Le,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Le,et){nt(this,1,Le,st,et)},setUint8:function(Le,et){nt(this,1,Le,st,et)},setInt16:function(Le,et){nt(this,2,Le,ze,et,arguments.length>2?arguments[2]:void 0)},setUint16:function(Le,et){nt(this,2,Le,ze,et,arguments.length>2?arguments[2]:void 0)},setInt32:function(Le,et){nt(this,4,Le,Be,et,arguments.length>2?arguments[2]:void 0)},setUint32:function(Le,et){nt(this,4,Le,Be,et,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Le,et){nt(this,4,Le,Ie,et,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Le,et){nt(this,8,Le,Ye,et,arguments.length>2?arguments[2]:void 0)}});else{var _e=be&&lt.name!==Se;if(!re(function(){lt(1)})||!re(function(){new lt(-1)})||re(function(){return new lt,new lt(1.5),new lt(NaN),_e&&!Ee})){Re=function(Le){return te(this,We),new lt(fe(Le))},Re[Ze]=We;for(var Pe=pe(lt),He=0,it;Pe.length>He;)(it=Pe[He++])in Re||se(Re,it,lt[it]);We.constructor=Re}else _e&&Ee&&se(lt,"name",Se);ce&&he(ot)!==at&&ce(ot,at);var Te=new rt(new Re(2)),xe=E(ot.setInt8);Te.setInt8(0,2147483648),Te.setInt8(1,2147483649),(Te.getInt8(0)||!Te.getInt8(1))&&x(ot,{setInt8:function(Le,et){xe(this,Le,et<<24>>24)},setUint8:function(Le,et){xe(this,Le,et<<24>>24)}},{unsafe:!0})}Ae(Re,Se),Ae(rt,je),we.exports={ArrayBuffer:Re,DataView:rt}},{"../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,we,ge){"use strict";var ee=y("../internals/to-object"),E=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),le=Math.min;we.exports=[].copyWithin||function(se,x){var re=ee(this),te=ie(re),ae=E(se,te),ue=E(x,te),fe=arguments.length>2?arguments[2]:void 0,de=le((fe===void 0?te:E(fe,te))-ue,te-ae),he=1;for(ue<ae&&ae<ue+de&&(he=-1,ue+=de-1,ae+=de-1);de-- >0;)ue in re?re[ae]=re[ue]:delete re[ae],ae+=he,ue+=he;return re}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,we,ge){"use strict";var ee=y("../internals/to-object"),E=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like");we.exports=function(z){for(var se=ee(this),x=ie(se),re=arguments.length,te=E(re>1?arguments[1]:void 0,x),ae=re>2?arguments[2]:void 0,ue=ae===void 0?x:E(ae,x);ue>te;)se[te++]=z;return se}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,we,ge){"use strict";var ee=y("../internals/array-iteration").forEach,E=y("../internals/array-method-is-strict"),ie=E("forEach");we.exports=ie?[].forEach:function(z){return ee(this,z,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(y,we,ge){var ee=y("../internals/length-of-array-like");we.exports=function(E,ie){for(var le=0,z=ee(ie),se=new E(z);z>le;)se[le]=ie[le++];return se}},{"../internals/length-of-array-like":188}],109:[function(y,we,ge){"use strict";var ee=y("../internals/global"),E=y("../internals/function-bind-context"),ie=y("../internals/function-call"),le=y("../internals/to-object"),z=y("../internals/call-with-safe-iteration-closing"),se=y("../internals/is-array-iterator-method"),x=y("../internals/is-constructor"),re=y("../internals/length-of-array-like"),te=y("../internals/create-property"),ae=y("../internals/get-iterator"),ue=y("../internals/get-iterator-method"),fe=ee.Array;we.exports=function(he){var ce=le(he),pe=x(this),Ce=arguments.length,ke=Ce>1?arguments[1]:void 0,De=ke!==void 0;De&&(ke=E(ke,Ce>2?arguments[2]:void 0));var Ae=ue(ce),ve=0,be,Ee,Oe,Me,Se,je;if(Ae&&!(this==fe&&se(Ae)))for(Me=ae(ce,Ae),Se=Me.next,Ee=pe?new this:[];!(Oe=ie(Se,Me)).done;ve++)je=De?z(Me,ke,[Oe.value,ve],!0):Oe.value,te(Ee,ve,je);else for(be=re(ce),Ee=pe?new this(be):fe(be);be>ve;ve++)je=De?ke(ce[ve],ve):ce[ve],te(Ee,ve,je);return Ee.length=ve,Ee}},{"../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,we,ge){var ee=y("../internals/to-indexed-object"),E=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),le=function(z){return function(se,x,re){var te=ee(se),ae=ie(te),ue=E(re,ae),fe;if(z&&x!=x){for(;ae>ue;)if(fe=te[ue++],fe!=fe)return!0}else for(;ae>ue;ue++)if((z||ue in te)&&te[ue]===x)return z||ue||0;return!z&&-1}};we.exports={includes:le(!0),indexOf:le(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(y,we,ge){var ee=y("../internals/function-bind-context"),E=y("../internals/function-uncurry-this"),ie=y("../internals/indexed-object"),le=y("../internals/to-object"),z=y("../internals/length-of-array-like"),se=y("../internals/array-species-create"),x=E([].push),re=function(te){var ae=te==1,ue=te==2,fe=te==3,de=te==4,he=te==6,ce=te==7,pe=te==5||he;return function(Ce,ke,De,Ae){for(var ve=le(Ce),be=ie(ve),Ee=ee(ke,De),Oe=z(be),Me=0,Se=Ae||se,je=ae?Se(Ce,Oe):ue||ce?Se(Ce,0):void 0,Ze,Xe;Oe>Me;Me++)if((pe||Me in be)&&(Ze=be[Me],Xe=Ee(Ze,Me,ve),te))if(ae)je[Me]=Xe;else if(Xe)switch(te){case 3:return!0;case 5:return Ze;case 6:return Me;case 2:x(je,Ze)}else switch(te){case 4:return!1;case 7:x(je,Ze)}return he?-1:fe||de?de:je}};we.exports={forEach:re(0),map:re(1),filter:re(2),some:re(3),every:re(4),find:re(5),findIndex:re(6),filterReject:re(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,we,ge){"use strict";var ee=y("../internals/function-apply"),E=y("../internals/to-indexed-object"),ie=y("../internals/to-integer-or-infinity"),le=y("../internals/length-of-array-like"),z=y("../internals/array-method-is-strict"),se=Math.min,x=[].lastIndexOf,re=!!x&&1/[1].lastIndexOf(1,-0)<0,te=z("lastIndexOf"),ae=re||!te;we.exports=ae?function(fe){if(re)return ee(x,this,arguments)||0;var de=E(this),he=le(de),ce=he-1;for(arguments.length>1&&(ce=se(ce,ie(arguments[1]))),ce<0&&(ce=he+ce);ce>=0;ce--)if(ce in de&&de[ce]===fe)return ce||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,we,ge){var ee=y("../internals/fails"),E=y("../internals/well-known-symbol"),ie=y("../internals/engine-v8-version"),le=E("species");we.exports=function(z){return ie>=51||!ee(function(){var se=[],x=se.constructor={};return x[le]=function(){return{foo:1}},se[z](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,we,ge){"use strict";var ee=y("../internals/fails");we.exports=function(E,ie){var le=[][E];return!!le&&ee(function(){le.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/a-callable"),ie=y("../internals/to-object"),le=y("../internals/indexed-object"),z=y("../internals/length-of-array-like"),se=ee.TypeError,x=function(re){return function(te,ae,ue,fe){E(ae);var de=ie(te),he=le(de),ce=z(de),pe=re?ce-1:0,Ce=re?-1:1;if(ue<2)for(;;){if(pe in he){fe=he[pe],pe+=Ce;break}if(pe+=Ce,re?pe<0:ce<=pe)throw se("Reduce of empty array with no initial value")}for(;re?pe>=0:ce>pe;pe+=Ce)pe in he&&(fe=ae(fe,he[pe],pe,de));return fe}};we.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,we,ge){var ee=y("../internals/global"),E=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),le=y("../internals/create-property"),z=ee.Array,se=Math.max;we.exports=function(x,re,te){for(var ae=ie(x),ue=E(re,ae),fe=E(te===void 0?ae:te,ae),de=z(se(fe-ue,0)),he=0;ue<fe;ue++,he++)le(de,he,x[ue]);return de.length=he,de}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,we,ge){var ee=y("../internals/function-uncurry-this");we.exports=ee([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,we,ge){var ee=y("../internals/array-slice-simple"),E=Math.floor,ie=function(se,x){var re=se.length,te=E(re/2);return re<8?le(se,x):z(se,ie(ee(se,0,te),x),ie(ee(se,te),x),x)},le=function(se,x){for(var re=se.length,te=1,ae,ue;te<re;){for(ue=te,ae=se[te];ue&&x(se[ue-1],ae)>0;)se[ue]=se[--ue];ue!==te++&&(se[ue]=ae)}return se},z=function(se,x,re,te){for(var ae=x.length,ue=re.length,fe=0,de=0;fe<ae||de<ue;)se[fe+de]=fe<ae&&de<ue?te(x[fe],re[de])<=0?x[fe++]:re[de++]:fe<ae?x[fe++]:re[de++];return se};we.exports=ie},{"../internals/array-slice-simple":116}],119:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-array"),ie=y("../internals/is-constructor"),le=y("../internals/is-object"),z=y("../internals/well-known-symbol"),se=z("species"),x=ee.Array;we.exports=function(re){var te;return E(re)&&(te=re.constructor,ie(te)&&(te===x||E(te.prototype))?te=void 0:le(te)&&(te=te[se],te===null&&(te=void 0))),te===void 0?x:te}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(y,we,ge){var ee=y("../internals/array-species-constructor");we.exports=function(E,ie){return new(ee(E))(ie===0?0:ie)}},{"../internals/array-species-constructor":119}],121:[function(y,we,ge){var ee=y("../internals/an-object"),E=y("../internals/iterator-close");we.exports=function(ie,le,z,se){try{return se?le(ee(z)[0],z[1]):le(z)}catch(x){E(ie,"throw",x)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,we,ge){var ee=y("../internals/well-known-symbol"),E=ee("iterator"),ie=!1;try{var le=0,z={next:function(){return{done:!!le++}},return:function(){ie=!0}};z[E]=function(){return this},Array.from(z,function(){throw 2})}catch(se){}we.exports=function(se,x){if(!x&&!ie)return!1;var re=!1;try{var te={};te[E]=function(){return{next:function(){return{done:re=!0}}}},se(te)}catch(ae){}return re}},{"../internals/well-known-symbol":268}],123:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=ee({}.toString),ie=ee("".slice);we.exports=function(le){return ie(E(le),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/to-string-tag-support"),ie=y("../internals/is-callable"),le=y("../internals/classof-raw"),z=y("../internals/well-known-symbol"),se=z("toStringTag"),x=ee.Object,re=le(function(){return arguments}())=="Arguments",te=function(ae,ue){try{return ae[ue]}catch(fe){}};we.exports=E?le:function(ae){var ue,fe,de;return ae===void 0?"Undefined":ae===null?"Null":typeof(fe=te(ue=x(ae),se))=="string"?fe:re?le(ue):(de=le(ue))=="Object"&&ie(ue.callee)?"Arguments":de}},{"../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,we,ge){var ee=y("../internals/has-own-property"),E=y("../internals/own-keys"),ie=y("../internals/object-get-own-property-descriptor"),le=y("../internals/object-define-property");we.exports=function(z,se,x){for(var re=E(se),te=le.f,ae=ie.f,ue=0;ue<re.length;ue++){var fe=re[ue];!ee(z,fe)&&!(x&&ee(x,fe))&&te(z,fe,ae(se,fe))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(y,we,ge){var ee=y("../internals/well-known-symbol"),E=ee("match");we.exports=function(ie){var le=/./;try{"/./"[ie](le)}catch(z){try{return le[E]=!1,"/./"[ie](le)}catch(se){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,we,ge){var ee=y("../internals/fails");we.exports=!ee(function(){function E(){}return E.prototype.constructor=null,Object.getPrototypeOf(new E)!==E.prototype})},{"../internals/fails":150}],128:[function(y,we,ge){"use strict";var ee=y("../internals/iterators-core").IteratorPrototype,E=y("../internals/object-create"),ie=y("../internals/create-property-descriptor"),le=y("../internals/set-to-string-tag"),z=y("../internals/iterators"),se=function(){return this};we.exports=function(x,re,te,ae){var ue=re+" Iterator";return x.prototype=E(ee,{next:ie(+!ae,te)}),le(x,ue,!1,!0),z[ue]=se,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,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/object-define-property"),ie=y("../internals/create-property-descriptor");we.exports=ee?function(le,z,se){return E.f(le,z,ie(1,se))}:function(le,z,se){return le[z]=se,le}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,we,ge){we.exports=function(ee,E){return{enumerable:!(ee&1),configurable:!(ee&2),writable:!(ee&4),value:E}}},{}],131:[function(y,we,ge){"use strict";var ee=y("../internals/to-property-key"),E=y("../internals/object-define-property"),ie=y("../internals/create-property-descriptor");we.exports=function(le,z,se){var x=ee(z);x in le?E.f(le,x,ie(0,se)):le[x]=se}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/function-call"),ie=y("../internals/is-pure"),le=y("../internals/function-name"),z=y("../internals/is-callable"),se=y("../internals/create-iterator-constructor"),x=y("../internals/object-get-prototype-of"),re=y("../internals/object-set-prototype-of"),te=y("../internals/set-to-string-tag"),ae=y("../internals/create-non-enumerable-property"),ue=y("../internals/redefine"),fe=y("../internals/well-known-symbol"),de=y("../internals/iterators"),he=y("../internals/iterators-core"),ce=le.PROPER,pe=le.CONFIGURABLE,Ce=he.IteratorPrototype,ke=he.BUGGY_SAFARI_ITERATORS,De=fe("iterator"),Ae="keys",ve="values",be="entries",Ee=function(){return this};we.exports=function(Oe,Me,Se,je,Ze,Xe,$e){se(Se,Me,je);var lt=function(tt){if(tt===Ze&&at)return at;if(!ke&&tt in rt)return rt[tt];switch(tt){case Ae:return function(){return new Se(this,tt)};case ve:return function(){return new Se(this,tt)};case be:return function(){return new Se(this,tt)}}return function(){return new Se(this)}},Re=Me+" Iterator",We=!1,rt=Oe.prototype,ot=rt[De]||rt["@@iterator"]||Ze&&rt[Ze],at=!ke&&ot||lt(Ze),Je=Me=="Array"&&rt.entries||ot,Qe,Ve,ct;if(Je&&(Qe=x(Je.call(new Oe)),Qe!==Object.prototype&&Qe.next&&(!ie&&x(Qe)!==Ce&&(re?re(Qe,Ce):z(Qe[De])||ue(Qe,De,Ee)),te(Qe,Re,!0,!0),ie&&(de[Re]=Ee))),ce&&Ze==ve&&ot&&ot.name!==ve&&(!ie&&pe?ae(rt,"name",ve):(We=!0,at=function(){return E(ot,this)})),Ze)if(Ve={values:lt(ve),keys:Xe?at:lt(Ae),entries:lt(be)},$e)for(ct in Ve)(ke||We||!(ct in rt))&&ue(rt,ct,Ve[ct]);else ee({target:Me,proto:!0,forced:ke||We},Ve);return(!ie||$e)&&rt[De]!==at&&ue(rt,De,at,{name:Ze}),de[Me]=at,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,we,ge){var ee=y("../internals/path"),E=y("../internals/has-own-property"),ie=y("../internals/well-known-symbol-wrapped"),le=y("../internals/object-define-property").f;we.exports=function(z){var se=ee.Symbol||(ee.Symbol={});E(se,z)||le(se,z,{value:ie.f(z)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,we,ge){var ee=y("../internals/fails");we.exports=!ee(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-object"),ie=ee.document,le=E(ie)&&E(ie.createElement);we.exports=function(z){return le?ie.createElement(z):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,we,ge){we.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,we,ge){var ee=y("../internals/document-create-element"),E=ee("span").classList,ie=E&&E.constructor&&E.constructor.prototype;we.exports=ie===Object.prototype?void 0:ie},{"../internals/document-create-element":135}],138:[function(y,we,ge){var ee=y("../internals/engine-user-agent"),E=ee.match(/firefox\/(\d+)/i);we.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],139:[function(y,we,ge){we.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,we,ge){var ee=y("../internals/engine-user-agent");we.exports=/MSIE|Trident/.test(ee)},{"../internals/engine-user-agent":145}],141:[function(y,we,ge){var ee=y("../internals/engine-user-agent"),E=y("../internals/global");we.exports=/ipad|iphone|ipod/i.test(ee)&&E.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,we,ge){var ee=y("../internals/engine-user-agent");we.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(ee)},{"../internals/engine-user-agent":145}],143:[function(y,we,ge){var ee=y("../internals/classof-raw"),E=y("../internals/global");we.exports=ee(E.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,we,ge){var ee=y("../internals/engine-user-agent");we.exports=/web0s(?!.*chrome)/i.test(ee)},{"../internals/engine-user-agent":145}],145:[function(y,we,ge){var ee=y("../internals/get-built-in");we.exports=ee("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/engine-user-agent"),ie=ee.process,le=ee.Deno,z=ie&&ie.versions||le&&le.version,se=z&&z.v8,x,re;se&&(x=se.split("."),re=x[0]>0&&x[0]<4?1:+(x[0]+x[1])),!re&&E&&(x=E.match(/Edge\/(\d+)/),(!x||x[1]>=74)&&(x=E.match(/Chrome\/(\d+)/),x&&(re=+x[1]))),we.exports=re},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,we,ge){var ee=y("../internals/engine-user-agent"),E=ee.match(/AppleWebKit\/(\d+)\./);we.exports=!!E&&+E[1]},{"../internals/engine-user-agent":145}],148:[function(y,we,ge){we.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/object-get-own-property-descriptor").f,ie=y("../internals/create-non-enumerable-property"),le=y("../internals/redefine"),z=y("../internals/set-global"),se=y("../internals/copy-constructor-properties"),x=y("../internals/is-forced");we.exports=function(re,te){var ae=re.target,ue=re.global,fe=re.stat,de,he,ce,pe,Ce,ke;if(ue?he=ee:fe?he=ee[ae]||z(ae,{}):he=(ee[ae]||{}).prototype,he)for(ce in te){if(Ce=te[ce],re.noTargetGet?(ke=E(he,ce),pe=ke&&ke.value):pe=he[ce],de=x(ue?ce:ae+(fe?".":"#")+ce,re.forced),!de&&pe!==void 0){if(typeof Ce==typeof pe)continue;se(Ce,pe)}(re.sham||pe&&pe.sham)&&ie(Ce,"sham",!0),le(he,ce,Ce,re)}}},{"../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,we,ge){we.exports=function(ee){try{return!!ee()}catch(E){return!0}}},{}],151:[function(y,we,ge){"use strict";y("../modules/es.regexp.exec");var ee=y("../internals/function-uncurry-this"),E=y("../internals/redefine"),ie=y("../internals/regexp-exec"),le=y("../internals/fails"),z=y("../internals/well-known-symbol"),se=y("../internals/create-non-enumerable-property"),x=z("species"),re=RegExp.prototype;we.exports=function(te,ae,ue,fe){var de=z(te),he=!le(function(){var ke={};return ke[de]=function(){return 7},""[te](ke)!=7}),ce=he&&!le(function(){var ke=!1,De=/a/;return te==="split"&&(De={},De.constructor={},De.constructor[x]=function(){return De},De.flags="",De[de]=/./[de]),De.exec=function(){return ke=!0,null},De[de](""),!ke});if(!he||!ce||ue){var pe=ee(/./[de]),Ce=ae(de,""[te],function(ke,De,Ae,ve,be){var Ee=ee(ke),Oe=De.exec;return Oe===ie||Oe===re.exec?he&&!be?{done:!0,value:pe(De,Ae,ve)}:{done:!0,value:Ee(Ae,De,ve)}:{done:!1}});E(String.prototype,te,Ce[0]),E(re,de,Ce[1])}fe&&se(re[de],"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,we,ge){var ee=y("../internals/function-bind-native"),E=Function.prototype,ie=E.apply,le=E.call;we.exports=typeof Reflect=="object"&&Reflect.apply||(ee?le.bind(ie):function(){return le.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/a-callable"),ie=y("../internals/function-bind-native"),le=ee(ee.bind);we.exports=function(z,se){return E(z),se===void 0?z:ie?le(z,se):function(){return z.apply(se,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,we,ge){var ee=y("../internals/fails");we.exports=!ee(function(){var E=function(){}.bind();return typeof E!="function"||E.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,we,ge){var ee=y("../internals/function-bind-native"),E=Function.prototype.call;we.exports=ee?E.bind(E):function(){return E.apply(E,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/has-own-property"),ie=Function.prototype,le=ee&&Object.getOwnPropertyDescriptor,z=E(ie,"name"),se=z&&function(){}.name==="something",x=z&&(!ee||ee&&le(ie,"name").configurable);we.exports={EXISTS:z,PROPER:se,CONFIGURABLE:x}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,we,ge){var ee=y("../internals/function-bind-native"),E=Function.prototype,ie=E.bind,le=E.call,z=ee&&ie.bind(le,le);we.exports=ee?function(se){return se&&z(se)}:function(se){return se&&function(){return le.apply(se,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-callable"),ie=function(le){return E(le)?le:void 0};we.exports=function(le,z){return arguments.length<2?ie(ee[le]):ee[le]&&ee[le][z]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,we,ge){var ee=y("../internals/classof"),E=y("../internals/get-method"),ie=y("../internals/iterators"),le=y("../internals/well-known-symbol"),z=le("iterator");we.exports=function(se){if(se!=null)return E(se,z)||E(se,"@@iterator")||ie[ee(se)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/a-callable"),le=y("../internals/an-object"),z=y("../internals/try-to-string"),se=y("../internals/get-iterator-method"),x=ee.TypeError;we.exports=function(re,te){var ae=arguments.length<2?se(re):te;if(ie(ae))return le(E(ae,re));throw x(z(re)+" 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,we,ge){var ee=y("../internals/a-callable");we.exports=function(E,ie){var le=E[ie];return le==null?void 0:ee(le)}},{"../internals/a-callable":95}],162:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/to-object"),ie=Math.floor,le=ee("".charAt),z=ee("".replace),se=ee("".slice),x=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,re=/\$([$&'`]|\d{1,2})/g;we.exports=function(te,ae,ue,fe,de,he){var ce=ue+te.length,pe=fe.length,Ce=re;return de!==void 0&&(de=E(de),Ce=x),z(he,Ce,function(ke,De){var Ae;switch(le(De,0)){case"$":return"$";case"&":return te;case"`":return se(ae,0,ue);case"'":return se(ae,ce);case"<":Ae=de[se(De,1,-1)];break;default:var ve=+De;if(ve===0)return ke;if(ve>pe){var be=ie(ve/10);return be===0?ke:be<=pe?fe[be-1]===void 0?le(De,1):fe[be-1]+le(De,1):ke}Ae=fe[ve-1]}return Ae===void 0?"":Ae})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,we,ge){(function(ee){(function(){var E=function(ie){return ie&&ie.Math==Math&&ie};we.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof ee=="object"&&ee)||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,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/to-object"),ie=ee({}.hasOwnProperty);we.exports=Object.hasOwn||function(z,se){return ie(E(z),se)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,we,ge){we.exports={}},{}],166:[function(y,we,ge){var ee=y("../internals/global");we.exports=function(E,ie){var le=ee.console;le&&le.error&&(arguments.length==1?le.error(E):le.error(E,ie))}},{"../internals/global":163}],167:[function(y,we,ge){var ee=y("../internals/get-built-in");we.exports=ee("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/fails"),ie=y("../internals/document-create-element");we.exports=!ee&&!E(function(){return Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,we,ge){var ee=y("../internals/global"),E=ee.Array,ie=Math.abs,le=Math.pow,z=Math.floor,se=Math.log,x=Math.LN2,re=function(ae,ue,fe){var de=E(fe),he=fe*8-ue-1,ce=(1<<he)-1,pe=ce>>1,Ce=ue===23?le(2,-24)-le(2,-77):0,ke=ae<0||ae===0&&1/ae<0?1:0,De=0,Ae,ve,be;for(ae=ie(ae),ae!=ae||ae===1/0?(ve=ae!=ae?1:0,Ae=ce):(Ae=z(se(ae)/x),be=le(2,-Ae),ae*be<1&&(Ae--,be*=2),Ae+pe>=1?ae+=Ce/be:ae+=Ce*le(2,1-pe),ae*be>=2&&(Ae++,be/=2),Ae+pe>=ce?(ve=0,Ae=ce):Ae+pe>=1?(ve=(ae*be-1)*le(2,ue),Ae=Ae+pe):(ve=ae*le(2,pe-1)*le(2,ue),Ae=0));ue>=8;)de[De++]=ve&255,ve/=256,ue-=8;for(Ae=Ae<<ue|ve,he+=ue;he>0;)de[De++]=Ae&255,Ae/=256,he-=8;return de[--De]|=ke*128,de},te=function(ae,ue){var fe=ae.length,de=fe*8-ue-1,he=(1<<de)-1,ce=he>>1,pe=de-7,Ce=fe-1,ke=ae[Ce--],De=ke&127,Ae;for(ke>>=7;pe>0;)De=De*256+ae[Ce--],pe-=8;for(Ae=De&(1<<-pe)-1,De>>=-pe,pe+=ue;pe>0;)Ae=Ae*256+ae[Ce--],pe-=8;if(De===0)De=1-ce;else{if(De===he)return Ae?NaN:ke?-1/0:1/0;Ae=Ae+le(2,ue),De=De-ce}return(ke?-1:1)*Ae*le(2,De-ue)};we.exports={pack:re,unpack:te}},{"../internals/global":163}],170:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),le=y("../internals/classof-raw"),z=ee.Object,se=E("".split);we.exports=ie(function(){return!z("z").propertyIsEnumerable(0)})?function(x){return le(x)=="String"?se(x,""):z(x)}:z},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,we,ge){var ee=y("../internals/is-callable"),E=y("../internals/is-object"),ie=y("../internals/object-set-prototype-of");we.exports=function(le,z,se){var x,re;return ie&&ee(x=z.constructor)&&x!==se&&E(re=x.prototype)&&re!==se.prototype&&ie(le,re),le}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/is-callable"),ie=y("../internals/shared-store"),le=ee(Function.toString);E(ie.inspectSource)||(ie.inspectSource=function(z){return le(z)}),we.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,we,ge){var ee=y("../internals/native-weak-map"),E=y("../internals/global"),ie=y("../internals/function-uncurry-this"),le=y("../internals/is-object"),z=y("../internals/create-non-enumerable-property"),se=y("../internals/has-own-property"),x=y("../internals/shared-store"),re=y("../internals/shared-key"),te=y("../internals/hidden-keys"),ae="Object already initialized",ue=E.TypeError,fe=E.WeakMap,de,he,ce,pe=function(Ee){return ce(Ee)?he(Ee):de(Ee,{})},Ce=function(Ee){return function(Oe){var Me;if(!le(Oe)||(Me=he(Oe)).type!==Ee)throw ue("Incompatible receiver, "+Ee+" required");return Me}};if(ee||x.state){var ke=x.state||(x.state=new fe),De=ie(ke.get),Ae=ie(ke.has),ve=ie(ke.set);de=function(Ee,Oe){if(Ae(ke,Ee))throw new ue(ae);return Oe.facade=Ee,ve(ke,Ee,Oe),Oe},he=function(Ee){return De(ke,Ee)||{}},ce=function(Ee){return Ae(ke,Ee)}}else{var be=re("state");te[be]=!0,de=function(Ee,Oe){if(se(Ee,be))throw new ue(ae);return Oe.facade=Ee,z(Ee,be,Oe),Oe},he=function(Ee){return se(Ee,be)?Ee[be]:{}},ce=function(Ee){return se(Ee,be)}}we.exports={set:de,get:he,has:ce,enforce:pe,getterFor:Ce}},{"../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,we,ge){var ee=y("../internals/well-known-symbol"),E=y("../internals/iterators"),ie=ee("iterator"),le=Array.prototype;we.exports=function(z){return z!==void 0&&(E.Array===z||le[ie]===z)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,we,ge){var ee=y("../internals/classof-raw");we.exports=Array.isArray||function(ie){return ee(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,we,ge){we.exports=function(ee){return typeof ee=="function"}},{}],177:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/fails"),ie=y("../internals/is-callable"),le=y("../internals/classof"),z=y("../internals/get-built-in"),se=y("../internals/inspect-source"),x=function(){},re=[],te=z("Reflect","construct"),ae=/^\s*(?:class|function)\b/,ue=ee(ae.exec),fe=!ae.exec(x),de=function(pe){if(!ie(pe))return!1;try{return te(x,re,pe),!0}catch(Ce){return!1}},he=function(pe){if(!ie(pe))return!1;switch(le(pe)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return fe||!!ue(ae,se(pe))}catch(Ce){return!0}};he.sham=!0,we.exports=!te||E(function(){var ce;return de(de.call)||!de(Object)||!de(function(){ce=!0})||ce})?he:de},{"../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,we,ge){var ee=y("../internals/fails"),E=y("../internals/is-callable"),ie=/#|\.prototype\./,le=function(te,ae){var ue=se[z(te)];return ue==re?!0:ue==x?!1:E(ae)?ee(ae):!!ae},z=le.normalize=function(te){return String(te).replace(ie,".").toLowerCase()},se=le.data={},x=le.NATIVE="N",re=le.POLYFILL="P";we.exports=le},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,we,ge){var ee=y("../internals/is-object"),E=Math.floor;we.exports=Number.isInteger||function(le){return!ee(le)&&isFinite(le)&&E(le)===le}},{"../internals/is-object":180}],180:[function(y,we,ge){var ee=y("../internals/is-callable");we.exports=function(E){return typeof E=="object"?E!==null:ee(E)}},{"../internals/is-callable":176}],181:[function(y,we,ge){we.exports=!1},{}],182:[function(y,we,ge){var ee=y("../internals/is-object"),E=y("../internals/classof-raw"),ie=y("../internals/well-known-symbol"),le=ie("match");we.exports=function(z){var se;return ee(z)&&((se=z[le])!==void 0?!!se:E(z)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/get-built-in"),ie=y("../internals/is-callable"),le=y("../internals/object-is-prototype-of"),z=y("../internals/use-symbol-as-uid"),se=ee.Object;we.exports=z?function(x){return typeof x=="symbol"}:function(x){var re=E("Symbol");return ie(re)&&le(re.prototype,se(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,we,ge){var ee=y("../internals/global"),E=y("../internals/function-bind-context"),ie=y("../internals/function-call"),le=y("../internals/an-object"),z=y("../internals/try-to-string"),se=y("../internals/is-array-iterator-method"),x=y("../internals/length-of-array-like"),re=y("../internals/object-is-prototype-of"),te=y("../internals/get-iterator"),ae=y("../internals/get-iterator-method"),ue=y("../internals/iterator-close"),fe=ee.TypeError,de=function(ce,pe){this.stopped=ce,this.result=pe},he=de.prototype;we.exports=function(ce,pe,Ce){var ke=Ce&&Ce.that,De=!!(Ce&&Ce.AS_ENTRIES),Ae=!!(Ce&&Ce.IS_ITERATOR),ve=!!(Ce&&Ce.INTERRUPTED),be=E(pe,ke),Ee,Oe,Me,Se,je,Ze,Xe,$e=function(Re){return Ee&&ue(Ee,"normal",Re),new de(!0,Re)},lt=function(Re){return De?(le(Re),ve?be(Re[0],Re[1],$e):be(Re[0],Re[1])):ve?be(Re,$e):be(Re)};if(Ae)Ee=ce;else{if(Oe=ae(ce),!Oe)throw fe(z(ce)+" is not iterable");if(se(Oe)){for(Me=0,Se=x(ce);Se>Me;Me++)if(je=lt(ce[Me]),je&&re(he,je))return je;return new de(!1)}Ee=te(ce,Oe)}for(Ze=Ee.next;!(Xe=ie(Ze,Ee)).done;){try{je=lt(Xe.value)}catch(Re){ue(Ee,"throw",Re)}if(typeof je=="object"&&je&&re(he,je))return je}return new de(!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,we,ge){var ee=y("../internals/function-call"),E=y("../internals/an-object"),ie=y("../internals/get-method");we.exports=function(le,z,se){var x,re;E(le);try{if(x=ie(le,"return"),!x){if(z==="throw")throw se;return se}x=ee(x,le)}catch(te){re=!0,x=te}if(z==="throw")throw se;if(re)throw x;return E(x),se}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,we,ge){"use strict";var ee=y("../internals/fails"),E=y("../internals/is-callable"),ie=y("../internals/object-create"),le=y("../internals/object-get-prototype-of"),z=y("../internals/redefine"),se=y("../internals/well-known-symbol"),x=y("../internals/is-pure"),re=se("iterator"),te=!1,ae,ue,fe;[].keys&&(fe=[].keys(),"next"in fe?(ue=le(le(fe)),ue!==Object.prototype&&(ae=ue)):te=!0);var de=ae==null||ee(function(){var he={};return ae[re].call(he)!==he});de?ae={}:x&&(ae=ie(ae)),E(ae[re])||z(ae,re,function(){return this}),we.exports={IteratorPrototype:ae,BUGGY_SAFARI_ITERATORS:te}},{"../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,we,ge){arguments[4][165][0].apply(ge,arguments)},{dup:165}],188:[function(y,we,ge){var ee=y("../internals/to-length");we.exports=function(E){return ee(E.length)}},{"../internals/to-length":249}],189:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/function-bind-context"),ie=y("../internals/object-get-own-property-descriptor").f,le=y("../internals/task").set,z=y("../internals/engine-is-ios"),se=y("../internals/engine-is-ios-pebble"),x=y("../internals/engine-is-webos-webkit"),re=y("../internals/engine-is-node"),te=ee.MutationObserver||ee.WebKitMutationObserver,ae=ee.document,ue=ee.process,fe=ee.Promise,de=ie(ee,"queueMicrotask"),he=de&&de.value,ce,pe,Ce,ke,De,Ae,ve,be;he||(ce=function(){var Ee,Oe;for(re&&(Ee=ue.domain)&&Ee.exit();pe;){Oe=pe.fn,pe=pe.next;try{Oe()}catch(Me){throw pe?ke():Ce=void 0,Me}}Ce=void 0,Ee&&Ee.enter()},!z&&!re&&!x&&te&&ae?(De=!0,Ae=ae.createTextNode(""),new te(ce).observe(Ae,{characterData:!0}),ke=function(){Ae.data=De=!De}):!se&&fe&&fe.resolve?(ve=fe.resolve(void 0),ve.constructor=fe,be=E(ve.then,ve),ke=function(){be(ce)}):re?ke=function(){ue.nextTick(ce)}:(le=E(le,ee),ke=function(){le(ce)})),we.exports=he||function(Ee){var Oe={fn:Ee,next:void 0};Ce&&(Ce.next=Oe),pe||(pe=Oe,ke()),Ce=Oe}},{"../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,we,ge){var ee=y("../internals/native-symbol");we.exports=ee&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,we,ge){var ee=y("../internals/engine-v8-version"),E=y("../internals/fails");we.exports=!!Object.getOwnPropertySymbols&&!E(function(){var ie=Symbol();return!String(ie)||!(Object(ie)instanceof Symbol)||!Symbol.sham&&ee&&ee<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-callable"),ie=y("../internals/inspect-source"),le=ee.WeakMap;we.exports=E(le)&&/native code/.test(ie(le))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,we,ge){"use strict";var ee=y("../internals/a-callable"),E=function(ie){var le,z;this.promise=new ie(function(se,x){if(le!==void 0||z!==void 0)throw TypeError("Bad Promise constructor");le=se,z=x}),this.resolve=ee(le),this.reject=ee(z)};we.exports.f=function(ie){return new E(ie)}},{"../internals/a-callable":95}],194:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-regexp"),ie=ee.TypeError;we.exports=function(le){if(E(le))throw ie("The method doesn't accept regular expressions");return le}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,we,ge){"use strict";var ee=y("../internals/descriptors"),E=y("../internals/function-uncurry-this"),ie=y("../internals/function-call"),le=y("../internals/fails"),z=y("../internals/object-keys"),se=y("../internals/object-get-own-property-symbols"),x=y("../internals/object-property-is-enumerable"),re=y("../internals/to-object"),te=y("../internals/indexed-object"),ae=Object.assign,ue=Object.defineProperty,fe=E([].concat);we.exports=!ae||le(function(){if(ee&&ae({b:1},ae(ue({},"a",{enumerable:!0,get:function(){ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var de={},he={},ce=Symbol(),pe="abcdefghijklmnopqrst";return de[ce]=7,pe.split("").forEach(function(Ce){he[Ce]=Ce}),ae({},de)[ce]!=7||z(ae({},he)).join("")!=pe})?function(he,ce){for(var pe=re(he),Ce=arguments.length,ke=1,De=se.f,Ae=x.f;Ce>ke;)for(var ve=te(arguments[ke++]),be=De?fe(z(ve),De(ve)):z(ve),Ee=be.length,Oe=0,Me;Ee>Oe;)Me=be[Oe++],(!ee||ie(Ae,ve,Me))&&(pe[Me]=ve[Me]);return pe}: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,we,ge){var ee=y("../internals/an-object"),E=y("../internals/object-define-properties"),ie=y("../internals/enum-bug-keys"),le=y("../internals/hidden-keys"),z=y("../internals/html"),se=y("../internals/document-create-element"),x=y("../internals/shared-key"),re=">",te="<",ae="prototype",ue="script",fe=x("IE_PROTO"),de=function(){},he=function(De){return te+ue+re+De+te+"/"+ue+re},ce=function(De){De.write(he("")),De.close();var Ae=De.parentWindow.Object;return De=null,Ae},pe=function(){var De=se("iframe"),Ae="java"+ue+":",ve;return De.style.display="none",z.appendChild(De),De.src=String(Ae),ve=De.contentWindow.document,ve.open(),ve.write(he("document.F=Object")),ve.close(),ve.F},Ce,ke=function(){try{Ce=new ActiveXObject("htmlfile")}catch(Ae){}ke=typeof document!="undefined"?document.domain&&Ce?ce(Ce):pe():ce(Ce);for(var De=ie.length;De--;)delete ke[ae][ie[De]];return ke()};le[fe]=!0,we.exports=Object.create||function(Ae,ve){var be;return Ae!==null?(de[ae]=ee(Ae),be=new de,de[ae]=null,be[fe]=Ae):be=ke(),ve===void 0?be:E.f(be,ve)}},{"../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,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/v8-prototype-define-bug"),ie=y("../internals/object-define-property"),le=y("../internals/an-object"),z=y("../internals/to-indexed-object"),se=y("../internals/object-keys");ge.f=ee&&!E?Object.defineProperties:function(re,te){le(re);for(var ae=z(te),ue=se(te),fe=ue.length,de=0,he;fe>de;)ie.f(re,he=ue[de++],ae[he]);return re}},{"../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,we,ge){var ee=y("../internals/global"),E=y("../internals/descriptors"),ie=y("../internals/ie8-dom-define"),le=y("../internals/v8-prototype-define-bug"),z=y("../internals/an-object"),se=y("../internals/to-property-key"),x=ee.TypeError,re=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ae="enumerable",ue="configurable",fe="writable";ge.f=E?le?function(he,ce,pe){if(z(he),ce=se(ce),z(pe),typeof he=="function"&&ce==="prototype"&&"value"in pe&&fe in pe&&!pe[fe]){var Ce=te(he,ce);Ce&&Ce[fe]&&(he[ce]=pe.value,pe={configurable:ue in pe?pe[ue]:Ce[ue],enumerable:ae in pe?pe[ae]:Ce[ae],writable:!1})}return re(he,ce,pe)}:re:function(he,ce,pe){if(z(he),ce=se(ce),z(pe),ie)try{return re(he,ce,pe)}catch(Ce){}if("get"in pe||"set"in pe)throw x("Accessors not supported");return"value"in pe&&(he[ce]=pe.value),he}},{"../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,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/function-call"),ie=y("../internals/object-property-is-enumerable"),le=y("../internals/create-property-descriptor"),z=y("../internals/to-indexed-object"),se=y("../internals/to-property-key"),x=y("../internals/has-own-property"),re=y("../internals/ie8-dom-define"),te=Object.getOwnPropertyDescriptor;ge.f=ee?te:function(ue,fe){if(ue=z(ue),fe=se(fe),re)try{return te(ue,fe)}catch(de){}if(x(ue,fe))return le(!E(ie.f,ue,fe),ue[fe])}},{"../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,we,ge){var ee=y("../internals/classof-raw"),E=y("../internals/to-indexed-object"),ie=y("../internals/object-get-own-property-names").f,le=y("../internals/array-slice-simple"),z=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],se=function(x){try{return ie(x)}catch(re){return le(z)}};we.exports.f=function(re){return z&&ee(re)=="Window"?se(re):ie(E(re))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(y,we,ge){var ee=y("../internals/object-keys-internal"),E=y("../internals/enum-bug-keys"),ie=E.concat("length","prototype");ge.f=Object.getOwnPropertyNames||function(z){return ee(z,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,we,ge){ge.f=Object.getOwnPropertySymbols},{}],203:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/has-own-property"),ie=y("../internals/is-callable"),le=y("../internals/to-object"),z=y("../internals/shared-key"),se=y("../internals/correct-prototype-getter"),x=z("IE_PROTO"),re=ee.Object,te=re.prototype;we.exports=se?re.getPrototypeOf:function(ae){var ue=le(ae);if(E(ue,x))return ue[x];var fe=ue.constructor;return ie(fe)&&ue instanceof fe?fe.prototype:ue instanceof re?te: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,we,ge){var ee=y("../internals/function-uncurry-this");we.exports=ee({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/has-own-property"),ie=y("../internals/to-indexed-object"),le=y("../internals/array-includes").indexOf,z=y("../internals/hidden-keys"),se=ee([].push);we.exports=function(x,re){var te=ie(x),ae=0,ue=[],fe;for(fe in te)!E(z,fe)&&E(te,fe)&&se(ue,fe);for(;re.length>ae;)E(te,fe=re[ae++])&&(~le(ue,fe)||se(ue,fe));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,we,ge){var ee=y("../internals/object-keys-internal"),E=y("../internals/enum-bug-keys");we.exports=Object.keys||function(le){return ee(le,E)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,we,ge){"use strict";var ee={}.propertyIsEnumerable,E=Object.getOwnPropertyDescriptor,ie=E&&!ee.call({1:2},1);ge.f=ie?function(z){var se=E(this,z);return!!se&&se.enumerable}:ee},{}],208:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/an-object"),ie=y("../internals/a-possible-prototype");we.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var le=!1,z={},se;try{se=ee(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),se(z,[]),le=z instanceof Array}catch(x){}return function(re,te){return E(re),ie(te),le?se(re,te):re.__proto__=te,re}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/function-uncurry-this"),ie=y("../internals/object-keys"),le=y("../internals/to-indexed-object"),z=y("../internals/object-property-is-enumerable").f,se=E(z),x=E([].push),re=function(te){return function(ae){for(var ue=le(ae),fe=ie(ue),de=fe.length,he=0,ce=[],pe;de>he;)pe=fe[he++],(!ee||se(ue,pe))&&x(ce,te?[pe,ue[pe]]:ue[pe]);return ce}};we.exports={entries:re(!0),values:re(!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,we,ge){"use strict";var ee=y("../internals/to-string-tag-support"),E=y("../internals/classof");we.exports=ee?{}.toString:function(){return"[object "+E(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/is-callable"),le=y("../internals/is-object"),z=ee.TypeError;we.exports=function(se,x){var re,te;if(x==="string"&&ie(re=se.toString)&&!le(te=E(re,se))||ie(re=se.valueOf)&&!le(te=E(re,se))||x!=="string"&&ie(re=se.toString)&&!le(te=E(re,se)))return te;throw z("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,we,ge){var ee=y("../internals/get-built-in"),E=y("../internals/function-uncurry-this"),ie=y("../internals/object-get-own-property-names"),le=y("../internals/object-get-own-property-symbols"),z=y("../internals/an-object"),se=E([].concat);we.exports=ee("Reflect","ownKeys")||function(re){var te=ie.f(z(re)),ae=le.f;return ae?se(te,ae(re)):te}},{"../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,we,ge){var ee=y("../internals/global");we.exports=ee},{"../internals/global":163}],214:[function(y,we,ge){we.exports=function(ee){try{return{error:!1,value:ee()}}catch(E){return{error:!0,value:E}}}},{}],215:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/promise-native-constructor"),ie=y("../internals/is-callable"),le=y("../internals/is-forced"),z=y("../internals/inspect-source"),se=y("../internals/well-known-symbol"),x=y("../internals/engine-is-browser"),re=y("../internals/is-pure"),te=y("../internals/engine-v8-version"),ae=E&&E.prototype,ue=se("species"),fe=!1,de=ie(ee.PromiseRejectionEvent),he=le("Promise",function(){var ce=z(E),pe=ce!==String(E);if(!pe&&te===66||re&&!(ae.catch&&ae.finally))return!0;if(te>=51&&/native code/.test(ce))return!1;var Ce=new E(function(Ae){Ae(1)}),ke=function(Ae){Ae(function(){},function(){})},De=Ce.constructor={};return De[ue]=ke,fe=Ce.then(function(){})instanceof ke,fe?!pe&&x&&!de:!0});we.exports={CONSTRUCTOR:he,REJECTION_EVENT:de,SUBCLASSING:fe}},{"../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,we,ge){var ee=y("../internals/global");we.exports=ee.Promise},{"../internals/global":163}],217:[function(y,we,ge){var ee=y("../internals/an-object"),E=y("../internals/is-object"),ie=y("../internals/new-promise-capability");we.exports=function(le,z){if(ee(le),E(z)&&z.constructor===le)return z;var se=ie.f(le),x=se.resolve;return x(z),se.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,we,ge){var ee=y("../internals/promise-native-constructor"),E=y("../internals/check-correctness-of-iteration"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR;we.exports=ie||!E(function(le){ee.all(le).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(y,we,ge){var ee=y("../internals/object-define-property").f;we.exports=function(E,ie,le){le in E||ee(E,le,{configurable:!0,get:function(){return ie[le]},set:function(z){ie[le]=z}})}},{"../internals/object-define-property":198}],220:[function(y,we,ge){var ee=function(){this.head=null,this.tail=null};ee.prototype={add:function(E){var ie={item:E,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var E=this.head;if(E)return this.head=E.next,this.tail===E&&(this.tail=null),E.item}},we.exports=ee},{}],221:[function(y,we,ge){var ee=y("../internals/redefine");we.exports=function(E,ie,le){for(var z in ie)ee(E,z,ie[z],le);return E}},{"../internals/redefine":222}],222:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/is-callable"),ie=y("../internals/has-own-property"),le=y("../internals/create-non-enumerable-property"),z=y("../internals/set-global"),se=y("../internals/inspect-source"),x=y("../internals/internal-state"),re=y("../internals/function-name").CONFIGURABLE,te=x.get,ae=x.enforce,ue=String(String).split("String");(we.exports=function(fe,de,he,ce){var pe=ce?!!ce.unsafe:!1,Ce=ce?!!ce.enumerable:!1,ke=ce?!!ce.noTargetGet:!1,De=ce&&ce.name!==void 0?ce.name:de,Ae;if(E(he)&&(String(De).slice(0,7)==="Symbol("&&(De="["+String(De).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(he,"name")||re&&he.name!==De)&&le(he,"name",De),Ae=ae(he),Ae.source||(Ae.source=ue.join(typeof De=="string"?De:""))),fe===ee){Ce?fe[de]=he:z(de,he);return}else pe?!ke&&fe[de]&&(Ce=!0):delete fe[de];Ce?fe[de]=he:le(fe,de,he)})(Function.prototype,"toString",function(){return E(this)&&te(this).source||se(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,we,ge){var ee=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/an-object"),le=y("../internals/is-callable"),z=y("../internals/classof-raw"),se=y("../internals/regexp-exec"),x=ee.TypeError;we.exports=function(re,te){var ae=re.exec;if(le(ae)){var ue=E(ae,re,te);return ue!==null&&ie(ue),ue}if(z(re)==="RegExp")return E(se,re,te);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,we,ge){"use strict";var ee=y("../internals/function-call"),E=y("../internals/function-uncurry-this"),ie=y("../internals/to-string"),le=y("../internals/regexp-flags"),z=y("../internals/regexp-sticky-helpers"),se=y("../internals/shared"),x=y("../internals/object-create"),re=y("../internals/internal-state").get,te=y("../internals/regexp-unsupported-dot-all"),ae=y("../internals/regexp-unsupported-ncg"),ue=se("native-string-replace",String.prototype.replace),fe=RegExp.prototype.exec,de=fe,he=E("".charAt),ce=E("".indexOf),pe=E("".replace),Ce=E("".slice),ke=function(){var be=/a/,Ee=/b*/g;return ee(fe,be,"a"),ee(fe,Ee,"a"),be.lastIndex!==0||Ee.lastIndex!==0}(),De=z.BROKEN_CARET,Ae=/()??/.exec("")[1]!==void 0,ve=ke||Ae||De||te||ae;ve&&(de=function(Ee){var Oe=this,Me=re(Oe),Se=ie(Ee),je=Me.raw,Ze,Xe,$e,lt,Re,We,rt;if(je)return je.lastIndex=Oe.lastIndex,Ze=ee(de,je,Se),Oe.lastIndex=je.lastIndex,Ze;var ot=Me.groups,at=De&&Oe.sticky,Je=ee(le,Oe),Qe=Oe.source,Ve=0,ct=Se;if(at&&(Je=pe(Je,"y",""),ce(Je,"g")===-1&&(Je+="g"),ct=Ce(Se,Oe.lastIndex),Oe.lastIndex>0&&(!Oe.multiline||Oe.multiline&&he(Se,Oe.lastIndex-1)!==`
`)&&(Qe="(?: "+Qe+")",ct=" "+ct,Ve++),Xe=new RegExp("^(?:"+Qe+")",Je)),Ae&&(Xe=new RegExp("^"+Qe+"$(?!\\s)",Je)),ke&&($e=Oe.lastIndex),lt=ee(fe,at?Xe:Oe,ct),at?lt?(lt.input=Ce(lt.input,Ve),lt[0]=Ce(lt[0],Ve),lt.index=Oe.lastIndex,Oe.lastIndex+=lt[0].length):Oe.lastIndex=0:ke&&lt&&(Oe.lastIndex=Oe.global?lt.index+lt[0].length:$e),Ae&&lt&&lt.length>1&&ee(ue,lt[0],Xe,function(){for(Re=1;Re<arguments.length-2;Re++)arguments[Re]===void 0&&(lt[Re]=void 0)}),lt&&ot)for(lt.groups=We=x(null),Re=0;Re<ot.length;Re++)rt=ot[Re],We[rt[0]]=lt[rt[1]];return lt}),we.exports=de},{"../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,we,ge){"use strict";var ee=y("../internals/an-object");we.exports=function(){var E=ee(this),ie="";return E.hasIndices&&(ie+="d"),E.global&&(ie+="g"),E.ignoreCase&&(ie+="i"),E.multiline&&(ie+="m"),E.dotAll&&(ie+="s"),E.unicode&&(ie+="u"),E.sticky&&(ie+="y"),ie}},{"../internals/an-object":101}],226:[function(y,we,ge){var ee=y("../internals/function-call"),E=y("../internals/has-own-property"),ie=y("../internals/object-is-prototype-of"),le=y("../internals/regexp-flags"),z=RegExp.prototype;we.exports=function(se){var x=se.flags;return x===void 0&&!("flags"in z)&&!E(se,"flags")&&ie(z,se)?ee(le,se):x}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,we,ge){var ee=y("../internals/fails"),E=y("../internals/global"),ie=E.RegExp,le=ee(function(){var x=ie("a","y");return x.lastIndex=2,x.exec("abcd")!=null}),z=le||ee(function(){return!ie("a","y").sticky}),se=le||ee(function(){var x=ie("^r","gy");return x.lastIndex=2,x.exec("str")!=null});we.exports={BROKEN_CARET:se,MISSED_STICKY:z,UNSUPPORTED_Y:le}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,we,ge){var ee=y("../internals/fails"),E=y("../internals/global"),ie=E.RegExp;we.exports=ee(function(){var le=ie(".","s");return!(le.dotAll&&le.exec(`
`)&&le.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,we,ge){var ee=y("../internals/fails"),E=y("../internals/global"),ie=E.RegExp;we.exports=ee(function(){var le=ie("(?<a>b)","g");return le.exec("b").groups.a!=="b"||"b".replace(le,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(y,we,ge){var ee=y("../internals/global"),E=ee.TypeError;we.exports=function(ie){if(ie==null)throw E("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(y,we,ge){we.exports=Object.is||function(E,ie){return E===ie?E!==0||1/E===1/ie:E!=E&&ie!=ie}},{}],232:[function(y,we,ge){var ee=y("../internals/global"),E=Object.defineProperty;we.exports=function(ie,le){try{E(ee,ie,{value:le,configurable:!0,writable:!0})}catch(z){ee[ie]=le}return le}},{"../internals/global":163}],233:[function(y,we,ge){"use strict";var ee=y("../internals/get-built-in"),E=y("../internals/object-define-property"),ie=y("../internals/well-known-symbol"),le=y("../internals/descriptors"),z=ie("species");we.exports=function(se){var x=ee(se),re=E.f;le&&x&&!x[z]&&re(x,z,{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,we,ge){var ee=y("../internals/object-define-property").f,E=y("../internals/has-own-property"),ie=y("../internals/well-known-symbol"),le=ie("toStringTag");we.exports=function(z,se,x){z&&!x&&(z=z.prototype),z&&!E(z,le)&&ee(z,le,{configurable:!0,value:se})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,we,ge){var ee=y("../internals/shared"),E=y("../internals/uid"),ie=ee("keys");we.exports=function(le){return ie[le]||(ie[le]=E(le))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/set-global"),ie="__core-js_shared__",le=ee[ie]||E(ie,{});we.exports=le},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,we,ge){var ee=y("../internals/is-pure"),E=y("../internals/shared-store");(we.exports=function(ie,le){return E[ie]||(E[ie]=le!==void 0?le:{})})("versions",[]).push({version:"3.22.1",mode:ee?"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,we,ge){var ee=y("../internals/an-object"),E=y("../internals/a-constructor"),ie=y("../internals/well-known-symbol"),le=ie("species");we.exports=function(z,se){var x=ee(z).constructor,re;return x===void 0||(re=ee(x)[le])==null?se:E(re)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/to-integer-or-infinity"),ie=y("../internals/to-string"),le=y("../internals/require-object-coercible"),z=ee("".charAt),se=ee("".charCodeAt),x=ee("".slice),re=function(te){return function(ae,ue){var fe=ie(le(ae)),de=E(ue),he=fe.length,ce,pe;return de<0||de>=he?te?"":void 0:(ce=se(fe,de),ce<55296||ce>56319||de+1===he||(pe=se(fe,de+1))<56320||pe>57343?te?z(fe,de):ce:te?x(fe,de,de+2):(ce-55296<<10)+(pe-56320)+65536)}};we.exports={codeAt:re(!1),charAt:re(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(y,we,ge){var ee=y("../internals/function-name").PROPER,E=y("../internals/fails"),ie=y("../internals/whitespaces"),le="\u200B\x85\u180E";we.exports=function(z){return E(function(){return!!ie[z]()||le[z]()!==le||ee&&ie[z].name!==z})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=y("../internals/require-object-coercible"),ie=y("../internals/to-string"),le=y("../internals/whitespaces"),z=ee("".replace),se="["+le+"]",x=RegExp("^"+se+se+"*"),re=RegExp(se+se+"*$"),te=function(ae){return function(ue){var fe=ie(E(ue));return ae&1&&(fe=z(fe,x,"")),ae&2&&(fe=z(fe,re,"")),fe}};we.exports={start:te(1),end:te(2),trim:te(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(y,we,ge){var ee=y("../internals/function-call"),E=y("../internals/get-built-in"),ie=y("../internals/well-known-symbol"),le=y("../internals/redefine");we.exports=function(){var z=E("Symbol"),se=z&&z.prototype,x=se&&se.valueOf,re=ie("toPrimitive");se&&!se[re]&&le(se,re,function(te){return ee(x,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/function-apply"),ie=y("../internals/function-bind-context"),le=y("../internals/is-callable"),z=y("../internals/has-own-property"),se=y("../internals/fails"),x=y("../internals/html"),re=y("../internals/array-slice"),te=y("../internals/document-create-element"),ae=y("../internals/validate-arguments-length"),ue=y("../internals/engine-is-ios"),fe=y("../internals/engine-is-node"),de=ee.setImmediate,he=ee.clearImmediate,ce=ee.process,pe=ee.Dispatch,Ce=ee.Function,ke=ee.MessageChannel,De=ee.String,Ae=0,ve={},be="onreadystatechange",Ee,Oe,Me,Se;try{Ee=ee.location}catch(lt){}var je=function(lt){if(z(ve,lt)){var Re=ve[lt];delete ve[lt],Re()}},Ze=function(lt){return function(){je(lt)}},Xe=function(lt){je(lt.data)},$e=function(lt){ee.postMessage(De(lt),Ee.protocol+"//"+Ee.host)};(!de||!he)&&(de=function(Re){ae(arguments.length,1);var We=le(Re)?Re:Ce(Re),rt=re(arguments,1);return ve[++Ae]=function(){E(We,void 0,rt)},Oe(Ae),Ae},he=function(Re){delete ve[Re]},fe?Oe=function(lt){ce.nextTick(Ze(lt))}:pe&&pe.now?Oe=function(lt){pe.now(Ze(lt))}:ke&&!ue?(Me=new ke,Se=Me.port2,Me.port1.onmessage=Xe,Oe=ie(Se.postMessage,Se)):ee.addEventListener&&le(ee.postMessage)&&!ee.importScripts&&Ee&&Ee.protocol!=="file:"&&!se($e)?(Oe=$e,ee.addEventListener("message",Xe,!1)):be in te("script")?Oe=function(lt){x.appendChild(te("script"))[be]=function(){x.removeChild(this),je(lt)}}:Oe=function(lt){setTimeout(Ze(lt),0)}),we.exports={set:de,clear:he}},{"../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,we,ge){var ee=y("../internals/function-uncurry-this");we.exports=ee(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,we,ge){var ee=y("../internals/to-integer-or-infinity"),E=Math.max,ie=Math.min;we.exports=function(le,z){var se=ee(le);return se<0?E(se+z,0):ie(se,z)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/to-integer-or-infinity"),ie=y("../internals/to-length"),le=ee.RangeError;we.exports=function(z){if(z===void 0)return 0;var se=E(z),x=ie(se);if(se!==x)throw le("Wrong length or index");return x}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(y,we,ge){var ee=y("../internals/indexed-object"),E=y("../internals/require-object-coercible");we.exports=function(ie){return ee(E(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,we,ge){var ee=Math.ceil,E=Math.floor;we.exports=function(ie){var le=+ie;return le!==le||le===0?0:(le>0?E:ee)(le)}},{}],249:[function(y,we,ge){var ee=y("../internals/to-integer-or-infinity"),E=Math.min;we.exports=function(ie){return ie>0?E(ee(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/require-object-coercible"),ie=ee.Object;we.exports=function(le){return ie(E(le))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/to-positive-integer"),ie=ee.RangeError;we.exports=function(le,z){var se=E(le);if(se%z)throw ie("Wrong offset");return se}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/to-integer-or-infinity"),ie=ee.RangeError;we.exports=function(le){var z=E(le);if(z<0)throw ie("The argument can't be less than 0");return z}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/is-object"),le=y("../internals/is-symbol"),z=y("../internals/get-method"),se=y("../internals/ordinary-to-primitive"),x=y("../internals/well-known-symbol"),re=ee.TypeError,te=x("toPrimitive");we.exports=function(ae,ue){if(!ie(ae)||le(ae))return ae;var fe=z(ae,te),de;if(fe){if(ue===void 0&&(ue="default"),de=E(fe,ae,ue),!ie(de)||le(de))return de;throw re("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),se(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,we,ge){var ee=y("../internals/to-primitive"),E=y("../internals/is-symbol");we.exports=function(ie){var le=ee(ie,"string");return E(le)?le:le+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,we,ge){var ee=y("../internals/well-known-symbol"),E=ee("toStringTag"),ie={};ie[E]="z",we.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/classof"),ie=ee.String;we.exports=function(le){if(E(le)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(le)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,we,ge){var ee=y("../internals/global"),E=ee.String;we.exports=function(ie){try{return E(ie)}catch(le){return"Object"}}},{"../internals/global":163}],258:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/function-call"),le=y("../internals/descriptors"),z=y("../internals/typed-array-constructors-require-wrappers"),se=y("../internals/array-buffer-view-core"),x=y("../internals/array-buffer"),re=y("../internals/an-instance"),te=y("../internals/create-property-descriptor"),ae=y("../internals/create-non-enumerable-property"),ue=y("../internals/is-integral-number"),fe=y("../internals/to-length"),de=y("../internals/to-index"),he=y("../internals/to-offset"),ce=y("../internals/to-property-key"),pe=y("../internals/has-own-property"),Ce=y("../internals/classof"),ke=y("../internals/is-object"),De=y("../internals/is-symbol"),Ae=y("../internals/object-create"),ve=y("../internals/object-is-prototype-of"),be=y("../internals/object-set-prototype-of"),Ee=y("../internals/object-get-own-property-names").f,Oe=y("../internals/typed-array-from"),Me=y("../internals/array-iteration").forEach,Se=y("../internals/set-species"),je=y("../internals/object-define-property"),Ze=y("../internals/object-get-own-property-descriptor"),Xe=y("../internals/internal-state"),$e=y("../internals/inherit-if-required"),lt=Xe.get,Re=Xe.set,We=je.f,rt=Ze.f,ot=Math.round,at=E.RangeError,Je=x.ArrayBuffer,Qe=Je.prototype,Ve=x.DataView,ct=se.NATIVE_ARRAY_BUFFER_VIEWS,tt=se.TYPED_ARRAY_CONSTRUCTOR,ut=se.TYPED_ARRAY_TAG,st=se.TypedArray,ze=se.TypedArrayPrototype,Be=se.aTypedArrayConstructor,Ke=se.isTypedArray,Ie="BYTES_PER_ELEMENT",Ye="Wrong length",ft=function(it,Te){Be(it);for(var xe=0,ye=Te.length,Le=new it(ye);ye>xe;)Le[xe]=Te[xe++];return Le},mt=function(it,Te){We(it,Te,{get:function(){return lt(this)[Te]}})},nt=function(it){var Te;return ve(Qe,it)||(Te=Ce(it))=="ArrayBuffer"||Te=="SharedArrayBuffer"},_e=function(it,Te){return Ke(it)&&!De(Te)&&Te in it&&ue(+Te)&&Te>=0},Pe=function(Te,xe){return xe=ce(xe),_e(Te,xe)?te(2,Te[xe]):rt(Te,xe)},He=function(Te,xe,ye){return xe=ce(xe),_e(Te,xe)&&ke(ye)&&pe(ye,"value")&&!pe(ye,"get")&&!pe(ye,"set")&&!ye.configurable&&(!pe(ye,"writable")||ye.writable)&&(!pe(ye,"enumerable")||ye.enumerable)?(Te[xe]=ye.value,Te):We(Te,xe,ye)};le?(ct||(Ze.f=Pe,je.f=He,mt(ze,"buffer"),mt(ze,"byteOffset"),mt(ze,"byteLength"),mt(ze,"length")),ee({target:"Object",stat:!0,forced:!ct},{getOwnPropertyDescriptor:Pe,defineProperty:He}),we.exports=function(it,Te,xe){var ye=it.match(/\d+$/)[0]/8,Le=it+(xe?"Clamped":"")+"Array",et="get"+it,Ne="set"+it,yt=E[Le],wt=yt,vt=wt&&wt.prototype,gt={},ht=function(Ct,jt){var Ut=lt(Ct);return Ut.view[et](jt*ye+Ut.byteOffset,!0)},xt=function(Ct,jt,Ut){var Bt=lt(Ct);xe&&(Ut=(Ut=ot(Ut))<0?0:Ut>255?255:Ut&255),Bt.view[Ne](jt*ye+Bt.byteOffset,Ut,!0)},St=function(Ct,jt){We(Ct,jt,{get:function(){return ht(this,jt)},set:function(Ut){return xt(this,jt,Ut)},enumerable:!0})};ct?z&&(wt=Te(function(Ct,jt,Ut,Bt){return re(Ct,vt),$e(function(){return ke(jt)?nt(jt)?Bt!==void 0?new yt(jt,he(Ut,ye),Bt):Ut!==void 0?new yt(jt,he(Ut,ye)):new yt(jt):Ke(jt)?ft(wt,jt):ie(Oe,wt,jt):new yt(de(jt))}(),Ct,wt)}),be&&be(wt,st),Me(Ee(yt),function(Ct){Ct in wt||ae(wt,Ct,yt[Ct])}),wt.prototype=vt):(wt=Te(function(Ct,jt,Ut,Bt){re(Ct,vt);var qt=0,xr=0,pr,Lt,Vt;if(!ke(jt))Vt=de(jt),Lt=Vt*ye,pr=new Je(Lt);else if(nt(jt)){pr=jt,xr=he(Ut,ye);var ar=jt.byteLength;if(Bt===void 0){if(ar%ye||(Lt=ar-xr,Lt<0))throw at(Ye)}else if(Lt=fe(Bt)*ye,Lt+xr>ar)throw at(Ye);Vt=Lt/ye}else return Ke(jt)?ft(wt,jt):ie(Oe,wt,jt);for(Re(Ct,{buffer:pr,byteOffset:xr,byteLength:Lt,length:Vt,view:new Ve(pr)});qt<Vt;)St(Ct,qt++)}),be&&be(wt,st),vt=wt.prototype=Ae(ze)),vt.constructor!==wt&&ae(vt,"constructor",wt),ae(vt,tt,wt),ut&&ae(vt,ut,Le),gt[Le]=wt,ee({global:!0,forced:wt!=yt,sham:!ct},gt),Ie in wt||ae(wt,Ie,ye),Ie in vt||ae(vt,Ie,ye),Se(Le)}):we.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,we,ge){var ee=y("../internals/global"),E=y("../internals/fails"),ie=y("../internals/check-correctness-of-iteration"),le=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,z=ee.ArrayBuffer,se=ee.Int8Array;we.exports=!le||!E(function(){se(1)})||!E(function(){new se(-1)})||!ie(function(x){new se,new se(null),new se(1.5),new se(x)},!0)||E(function(){return new se(new z(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,we,ge){var ee=y("../internals/array-from-constructor-and-list"),E=y("../internals/typed-array-species-constructor");we.exports=function(ie,le){return ee(E(ie),le)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,we,ge){var ee=y("../internals/function-bind-context"),E=y("../internals/function-call"),ie=y("../internals/a-constructor"),le=y("../internals/to-object"),z=y("../internals/length-of-array-like"),se=y("../internals/get-iterator"),x=y("../internals/get-iterator-method"),re=y("../internals/is-array-iterator-method"),te=y("../internals/array-buffer-view-core").aTypedArrayConstructor;we.exports=function(ue){var fe=ie(this),de=le(ue),he=arguments.length,ce=he>1?arguments[1]:void 0,pe=ce!==void 0,Ce=x(de),ke,De,Ae,ve,be,Ee;if(Ce&&!re(Ce))for(be=se(de,Ce),Ee=be.next,de=[];!(ve=E(Ee,be)).done;)de.push(ve.value);for(pe&&he>2&&(ce=ee(ce,arguments[2])),De=z(de),Ae=new(te(fe))(De),ke=0;De>ke;ke++)Ae[ke]=pe?ce(de[ke],ke):de[ke];return Ae}},{"../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,we,ge){var ee=y("../internals/array-buffer-view-core"),E=y("../internals/species-constructor"),ie=ee.TYPED_ARRAY_CONSTRUCTOR,le=ee.aTypedArrayConstructor;we.exports=function(z){return le(E(z,z[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,we,ge){var ee=y("../internals/function-uncurry-this"),E=0,ie=Math.random(),le=ee(1 .toString);we.exports=function(z){return"Symbol("+(z===void 0?"":z)+")_"+le(++E+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,we,ge){var ee=y("../internals/native-symbol");we.exports=ee&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/fails");we.exports=ee&&E(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,we,ge){var ee=y("../internals/global"),E=ee.TypeError;we.exports=function(ie,le){if(ie<le)throw E("Not enough arguments");return ie}},{"../internals/global":163}],267:[function(y,we,ge){var ee=y("../internals/well-known-symbol");ge.f=ee},{"../internals/well-known-symbol":268}],268:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/shared"),ie=y("../internals/has-own-property"),le=y("../internals/uid"),z=y("../internals/native-symbol"),se=y("../internals/use-symbol-as-uid"),x=E("wks"),re=ee.Symbol,te=re&&re.for,ae=se?re:re&&re.withoutSetter||le;we.exports=function(ue){if(!ie(x,ue)||!(z||typeof x[ue]=="string")){var fe="Symbol."+ue;z&&ie(re,ue)?x[ue]=re[ue]:se&&te?x[ue]=te(fe):x[ue]=ae(fe)}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,we,ge){we.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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/array-buffer"),le=y("../internals/set-species"),z="ArrayBuffer",se=ie[z],x=E[z];ee({global:!0,forced:x!==se},{ArrayBuffer:se}),le(z)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),le=y("../internals/array-buffer"),z=y("../internals/an-object"),se=y("../internals/to-absolute-index"),x=y("../internals/to-length"),re=y("../internals/species-constructor"),te=le.ArrayBuffer,ae=le.DataView,ue=ae.prototype,fe=E(te.prototype.slice),de=E(ue.getUint8),he=E(ue.setUint8),ce=ie(function(){return!new te(2).slice(1,void 0).byteLength});ee({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:ce},{slice:function(Ce,ke){if(fe&&ke===void 0)return fe(z(this),Ce);for(var De=z(this).byteLength,Ae=se(Ce,De),ve=se(ke===void 0?De:ke,De),be=new(re(this,te))(x(ve-Ae)),Ee=new ae(this),Oe=new ae(be),Me=0;Ae<ve;)he(Oe,Me++,de(Ee,Ae++));return be}})},{"../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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/fails"),le=y("../internals/is-array"),z=y("../internals/is-object"),se=y("../internals/to-object"),x=y("../internals/length-of-array-like"),re=y("../internals/create-property"),te=y("../internals/array-species-create"),ae=y("../internals/array-method-has-species-support"),ue=y("../internals/well-known-symbol"),fe=y("../internals/engine-v8-version"),de=ue("isConcatSpreadable"),he=9007199254740991,ce="Maximum allowed index exceeded",pe=E.TypeError,Ce=fe>=51||!ie(function(){var ve=[];return ve[de]=!1,ve.concat()[0]!==ve}),ke=ae("concat"),De=function(ve){if(!z(ve))return!1;var be=ve[de];return be!==void 0?!!be:le(ve)},Ae=!Ce||!ke;ee({target:"Array",proto:!0,forced:Ae},{concat:function(be){var Ee=se(this),Oe=te(Ee,0),Me=0,Se,je,Ze,Xe,$e;for(Se=-1,Ze=arguments.length;Se<Ze;Se++)if($e=Se===-1?Ee:arguments[Se],De($e)){if(Xe=x($e),Me+Xe>he)throw pe(ce);for(je=0;je<Xe;je++,Me++)je in $e&&re(Oe,Me,$e[je])}else{if(Me>=he)throw pe(ce);re(Oe,Me++,$e)}return Oe.length=Me,Oe}})},{"../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,we,ge){var ee=y("../internals/export"),E=y("../internals/array-fill"),ie=y("../internals/add-to-unscopables");ee({target:"Array",proto:!0},{fill:E}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/array-iteration").filter,ie=y("../internals/array-method-has-species-support"),le=ie("filter");ee({target:"Array",proto:!0,forced:!le},{filter:function(se){return E(this,se,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/array-iteration").find,ie=y("../internals/add-to-unscopables"),le="find",z=!0;le in[]&&Array(1)[le](function(){z=!1}),ee({target:"Array",proto:!0,forced:z},{find:function(x){return E(this,x,arguments.length>1?arguments[1]:void 0)}}),ie(le)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,we,ge){var ee=y("../internals/export"),E=y("../internals/array-from"),ie=y("../internals/check-correctness-of-iteration"),le=!ie(function(z){Array.from(z)});ee({target:"Array",stat:!0,forced:le},{from:E})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/array-includes").includes,ie=y("../internals/add-to-unscopables");ee({target:"Array",proto:!0},{includes:function(z){return E(this,z,arguments.length>1?arguments[1]:void 0)}}),ie("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,we,ge){"use strict";var ee=y("../internals/to-indexed-object"),E=y("../internals/add-to-unscopables"),ie=y("../internals/iterators"),le=y("../internals/internal-state"),z=y("../internals/object-define-property").f,se=y("../internals/define-iterator"),x=y("../internals/is-pure"),re=y("../internals/descriptors"),te="Array Iterator",ae=le.set,ue=le.getterFor(te);we.exports=se(Array,"Array",function(de,he){ae(this,{type:te,target:ee(de),index:0,kind:he})},function(){var de=ue(this),he=de.target,ce=de.kind,pe=de.index++;return!he||pe>=he.length?(de.target=void 0,{value:void 0,done:!0}):ce=="keys"?{value:pe,done:!1}:ce=="values"?{value:he[pe],done:!1}:{value:[pe,he[pe]],done:!1}},"values");var fe=ie.Arguments=ie.Array;if(E("keys"),E("values"),E("entries"),!x&&re&&fe.name!=="values")try{z(fe,"name",{value:"values"})}catch(de){}},{"../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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/function-uncurry-this"),ie=y("../internals/indexed-object"),le=y("../internals/to-indexed-object"),z=y("../internals/array-method-is-strict"),se=E([].join),x=ie!=Object,re=z("join",",");ee({target:"Array",proto:!0,forced:x||!re},{join:function(ae){return se(le(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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/array-iteration").map,ie=y("../internals/array-method-has-species-support"),le=ie("map");ee({target:"Array",proto:!0,forced:!le},{map:function(se){return E(this,se,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/is-array"),le=y("../internals/is-constructor"),z=y("../internals/is-object"),se=y("../internals/to-absolute-index"),x=y("../internals/length-of-array-like"),re=y("../internals/to-indexed-object"),te=y("../internals/create-property"),ae=y("../internals/well-known-symbol"),ue=y("../internals/array-method-has-species-support"),fe=y("../internals/array-slice"),de=ue("slice"),he=ae("species"),ce=E.Array,pe=Math.max;ee({target:"Array",proto:!0,forced:!de},{slice:function(ke,De){var Ae=re(this),ve=x(Ae),be=se(ke,ve),Ee=se(De===void 0?ve:De,ve),Oe,Me,Se;if(ie(Ae)&&(Oe=Ae.constructor,le(Oe)&&(Oe===ce||ie(Oe.prototype))?Oe=void 0:z(Oe)&&(Oe=Oe[he],Oe===null&&(Oe=void 0)),Oe===ce||Oe===void 0))return fe(Ae,be,Ee);for(Me=new(Oe===void 0?ce:Oe)(pe(Ee-be,0)),Se=0;be<Ee;be++,Se++)be in Ae&&te(Me,Se,Ae[be]);return Me.length=Se,Me}})},{"../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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/function-uncurry-this"),ie=y("../internals/a-callable"),le=y("../internals/to-object"),z=y("../internals/length-of-array-like"),se=y("../internals/to-string"),x=y("../internals/fails"),re=y("../internals/array-sort"),te=y("../internals/array-method-is-strict"),ae=y("../internals/engine-ff-version"),ue=y("../internals/engine-is-ie-or-edge"),fe=y("../internals/engine-v8-version"),de=y("../internals/engine-webkit-version"),he=[],ce=E(he.sort),pe=E(he.push),Ce=x(function(){he.sort(void 0)}),ke=x(function(){he.sort(null)}),De=te("sort"),Ae=!x(function(){if(fe)return fe<70;if(!(ae&&ae>3)){if(ue)return!0;if(de)return de<603;var Ee="",Oe,Me,Se,je;for(Oe=65;Oe<76;Oe++){switch(Me=String.fromCharCode(Oe),Oe){case 66:case 69:case 70:case 72:Se=3;break;case 68:case 71:Se=4;break;default:Se=2}for(je=0;je<47;je++)he.push({k:Me+je,v:Se})}for(he.sort(function(Ze,Xe){return Xe.v-Ze.v}),je=0;je<he.length;je++)Me=he[je].k.charAt(0),Ee.charAt(Ee.length-1)!==Me&&(Ee+=Me);return Ee!=="DGBEFHACIJK"}}),ve=Ce||!ke||!De||!Ae,be=function(Ee){return function(Oe,Me){return Me===void 0?-1:Oe===void 0?1:Ee!==void 0?+Ee(Oe,Me)||0:se(Oe)>se(Me)?1:-1}};ee({target:"Array",proto:!0,forced:ve},{sort:function(Oe){Oe!==void 0&&ie(Oe);var Me=le(this);if(Ae)return Oe===void 0?ce(Me):ce(Me,Oe);var Se=[],je=z(Me),Ze,Xe;for(Xe=0;Xe<je;Xe++)Xe in Me&&pe(Se,Me[Xe]);for(re(Se,be(Oe)),Ze=Se.length,Xe=0;Xe<Ze;)Me[Xe]=Se[Xe++];for(;Xe<je;)delete Me[Xe++];return Me}})},{"../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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/to-absolute-index"),le=y("../internals/to-integer-or-infinity"),z=y("../internals/length-of-array-like"),se=y("../internals/to-object"),x=y("../internals/array-species-create"),re=y("../internals/create-property"),te=y("../internals/array-method-has-species-support"),ae=te("splice"),ue=E.TypeError,fe=Math.max,de=Math.min,he=9007199254740991,ce="Maximum allowed length exceeded";ee({target:"Array",proto:!0,forced:!ae},{splice:function(Ce,ke){var De=se(this),Ae=z(De),ve=ie(Ce,Ae),be=arguments.length,Ee,Oe,Me,Se,je,Ze;if(be===0?Ee=Oe=0:be===1?(Ee=0,Oe=Ae-ve):(Ee=be-2,Oe=de(fe(le(ke),0),Ae-ve)),Ae+Ee-Oe>he)throw ue(ce);for(Me=x(De,Oe),Se=0;Se<Oe;Se++)je=ve+Se,je in De&&re(Me,Se,De[je]);if(Me.length=Oe,Ee<Oe){for(Se=ve;Se<Ae-Oe;Se++)je=Se+Oe,Ze=Se+Ee,je in De?De[Ze]=De[je]:delete De[Ze];for(Se=Ae;Se>Ae-Oe+Ee;Se--)delete De[Se-1]}else if(Ee>Oe)for(Se=Ae-Oe;Se>ve;Se--)je=Se+Oe-1,Ze=Se+Ee-1,je in De?De[Ze]=De[je]:delete De[Ze];for(Se=0;Se<Ee;Se++)De[Se+ve]=arguments[Se+2];return De.length=Ae-Oe+Ee,Me}})},{"../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,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/function-name").EXISTS,ie=y("../internals/function-uncurry-this"),le=y("../internals/object-define-property").f,z=Function.prototype,se=ie(z.toString),x=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,re=ie(x.exec),te="name";ee&&!E&&le(z,te,{configurable:!0,get:function(){try{return re(x,se(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,we,ge){var ee=y("../internals/export"),E=y("../internals/get-built-in"),ie=y("../internals/function-apply"),le=y("../internals/function-call"),z=y("../internals/function-uncurry-this"),se=y("../internals/fails"),x=y("../internals/is-array"),re=y("../internals/is-callable"),te=y("../internals/is-object"),ae=y("../internals/is-symbol"),ue=y("../internals/array-slice"),fe=y("../internals/native-symbol"),de=E("JSON","stringify"),he=z(/./.exec),ce=z("".charAt),pe=z("".charCodeAt),Ce=z("".replace),ke=z(1 .toString),De=/[\uD800-\uDFFF]/g,Ae=/^[\uD800-\uDBFF]$/,ve=/^[\uDC00-\uDFFF]$/,be=!fe||se(function(){var Se=E("Symbol")();return de([Se])!="[null]"||de({a:Se})!="{}"||de(Object(Se))!="{}"}),Ee=se(function(){return de("\uDF06\uD834")!=='"\\udf06\\ud834"'||de("\uDEAD")!=='"\\udead"'}),Oe=function(Se,je){var Ze=ue(arguments),Xe=je;if(!(!te(je)&&Se===void 0||ae(Se)))return x(je)||(je=function($e,lt){if(re(Xe)&&(lt=le(Xe,this,$e,lt)),!ae(lt))return lt}),Ze[1]=je,ie(de,null,Ze)},Me=function(Se,je,Ze){var Xe=ce(Ze,je-1),$e=ce(Ze,je+1);return he(Ae,Se)&&!he(ve,$e)||he(ve,Se)&&!he(Ae,Xe)?"\\u"+ke(pe(Se,0),16):Se};de&&ee({target:"JSON",stat:!0,forced:be||Ee},{stringify:function(je,Ze,Xe){var $e=ue(arguments),lt=ie(be?Oe:de,null,$e);return Ee&&typeof lt=="string"?Ce(lt,De,Me):lt}})},{"../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,we,ge){"use strict";var ee=y("../internals/descriptors"),E=y("../internals/global"),ie=y("../internals/function-uncurry-this"),le=y("../internals/is-forced"),z=y("../internals/redefine"),se=y("../internals/has-own-property"),x=y("../internals/inherit-if-required"),re=y("../internals/object-is-prototype-of"),te=y("../internals/is-symbol"),ae=y("../internals/to-primitive"),ue=y("../internals/fails"),fe=y("../internals/object-get-own-property-names").f,de=y("../internals/object-get-own-property-descriptor").f,he=y("../internals/object-define-property").f,ce=y("../internals/this-number-value"),pe=y("../internals/string-trim").trim,Ce="Number",ke=E[Ce],De=ke.prototype,Ae=E.TypeError,ve=ie("".slice),be=ie("".charCodeAt),Ee=function(Xe){var $e=ae(Xe,"number");return typeof $e=="bigint"?$e:Oe($e)},Oe=function(Xe){var $e=ae(Xe,"number"),lt,Re,We,rt,ot,at,Je,Qe;if(te($e))throw Ae("Cannot convert a Symbol value to a number");if(typeof $e=="string"&&$e.length>2){if($e=pe($e),lt=be($e,0),lt===43||lt===45){if(Re=be($e,2),Re===88||Re===120)return NaN}else if(lt===48){switch(be($e,1)){case 66:case 98:We=2,rt=49;break;case 79:case 111:We=8,rt=55;break;default:return+$e}for(ot=ve($e,2),at=ot.length,Je=0;Je<at;Je++)if(Qe=be(ot,Je),Qe<48||Qe>rt)return NaN;return parseInt(ot,We)}}return+$e};if(le(Ce,!ke(" 0o1")||!ke("0b1")||ke("+0x1"))){for(var Me=function($e){var lt=arguments.length<1?0:ke(Ee($e)),Re=this;return re(De,Re)&&ue(function(){ce(Re)})?x(Object(lt),Re,Me):lt},Se=ee?fe(ke):"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(","),je=0,Ze;Se.length>je;je++)se(ke,Ze=Se[je])&&!se(Me,Ze)&&he(Me,Ze,de(ke,Ze));Me.prototype=De,De.constructor=Me,z(E,Ce,Me)}},{"../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,we,ge){var ee=y("../internals/export"),E=y("../internals/object-assign");ee({target:"Object",stat:!0,forced:Object.assign!==E},{assign:E})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(y,we,ge){var ee=y("../internals/export"),E=y("../internals/object-to-array").entries;ee({target:"Object",stat:!0},{entries:function(le){return E(le)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(y,we,ge){var ee=y("../internals/export"),E=y("../internals/native-symbol"),ie=y("../internals/fails"),le=y("../internals/object-get-own-property-symbols"),z=y("../internals/to-object"),se=!E||ie(function(){le.f(1)});ee({target:"Object",stat:!0,forced:se},{getOwnPropertySymbols:function(re){var te=le.f;return te?te(z(re)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(y,we,ge){var ee=y("../internals/export"),E=y("../internals/to-object"),ie=y("../internals/object-keys"),le=y("../internals/fails"),z=le(function(){ie(1)});ee({target:"Object",stat:!0,forced:z},{keys:function(x){return ie(E(x))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,we,ge){var ee=y("../internals/to-string-tag-support"),E=y("../internals/redefine"),ie=y("../internals/object-to-string");ee||E(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/function-call"),ie=y("../internals/a-callable"),le=y("../internals/new-promise-capability"),z=y("../internals/perform"),se=y("../internals/iterate"),x=y("../internals/promise-statics-incorrect-iteration");ee({target:"Promise",stat:!0,forced:x},{all:function(te){var ae=this,ue=le.f(ae),fe=ue.resolve,de=ue.reject,he=z(function(){var ce=ie(ae.resolve),pe=[],Ce=0,ke=1;se(te,function(De){var Ae=Ce++,ve=!1;ke++,E(ce,ae,De).then(function(be){ve||(ve=!0,pe[Ae]=be,--ke||fe(pe))},de)}),--ke||fe(pe)});return he.error&&de(he.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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/is-pure"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR,le=y("../internals/promise-native-constructor"),z=y("../internals/get-built-in"),se=y("../internals/is-callable"),x=y("../internals/redefine"),re=le&&le.prototype;if(ee({target:"Promise",proto:!0,forced:ie,real:!0},{catch:function(ae){return this.then(void 0,ae)}}),!E&&se(le)){var te=z("Promise").prototype.catch;re.catch!==te&&x(re,"catch",te,{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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/is-pure"),ie=y("../internals/engine-is-node"),le=y("../internals/global"),z=y("../internals/function-call"),se=y("../internals/redefine"),x=y("../internals/redefine-all"),re=y("../internals/object-set-prototype-of"),te=y("../internals/set-to-string-tag"),ae=y("../internals/set-species"),ue=y("../internals/a-callable"),fe=y("../internals/is-callable"),de=y("../internals/is-object"),he=y("../internals/an-instance"),ce=y("../internals/species-constructor"),pe=y("../internals/task").set,Ce=y("../internals/microtask"),ke=y("../internals/host-report-errors"),De=y("../internals/perform"),Ae=y("../internals/queue"),ve=y("../internals/internal-state"),be=y("../internals/promise-native-constructor"),Ee=y("../internals/promise-constructor-detection"),Oe=y("../internals/new-promise-capability"),Me="Promise",Se=Ee.CONSTRUCTOR,je=Ee.REJECTION_EVENT,Ze=Ee.SUBCLASSING,Xe=ve.getterFor(Me),$e=ve.set,lt=be&&be.prototype,Re=be,We=lt,rt=le.TypeError,ot=le.document,at=le.process,Je=Oe.f,Qe=Je,Ve=!!(ot&&ot.createEvent&&le.dispatchEvent),ct="unhandledrejection",tt="rejectionhandled",ut=0,st=1,ze=2,Be=1,Ke=2,Ie,Ye,ft,mt,nt=function(Ne){var yt;return de(Ne)&&fe(yt=Ne.then)?yt:!1},_e=function(Ne,yt){var wt=yt.value,vt=yt.state==st,gt=vt?Ne.ok:Ne.fail,ht=Ne.resolve,xt=Ne.reject,St=Ne.domain,Ct,jt,Ut;try{gt?(vt||(yt.rejection===Ke&&xe(yt),yt.rejection=Be),gt===!0?Ct=wt:(St&&St.enter(),Ct=gt(wt),St&&(St.exit(),Ut=!0)),Ct===Ne.promise?xt(rt("Promise-chain cycle")):(jt=nt(Ct))?z(jt,Ct,ht,xt):ht(Ct)):xt(wt)}catch(Bt){St&&!Ut&&St.exit(),xt(Bt)}},Pe=function(Ne,yt){Ne.notified||(Ne.notified=!0,Ce(function(){for(var wt=Ne.reactions,vt;vt=wt.get();)_e(vt,Ne);Ne.notified=!1,yt&&!Ne.rejection&&it(Ne)}))},He=function(Ne,yt,wt){var vt,gt;Ve?(vt=ot.createEvent("Event"),vt.promise=yt,vt.reason=wt,vt.initEvent(Ne,!1,!0),le.dispatchEvent(vt)):vt={promise:yt,reason:wt},!je&&(gt=le["on"+Ne])?gt(vt):Ne===ct&&ke("Unhandled promise rejection",wt)},it=function(Ne){z(pe,le,function(){var yt=Ne.facade,wt=Ne.value,vt=Te(Ne),gt;if(vt&&(gt=De(function(){ie?at.emit("unhandledRejection",wt,yt):He(ct,yt,wt)}),Ne.rejection=ie||Te(Ne)?Ke:Be,gt.error))throw gt.value})},Te=function(Ne){return Ne.rejection!==Be&&!Ne.parent},xe=function(Ne){z(pe,le,function(){var yt=Ne.facade;ie?at.emit("rejectionHandled",yt):He(tt,yt,Ne.value)})},ye=function(Ne,yt,wt){return function(vt){Ne(yt,vt,wt)}},Le=function(Ne,yt,wt){Ne.done||(Ne.done=!0,wt&&(Ne=wt),Ne.value=yt,Ne.state=ze,Pe(Ne,!0))},et=function(Ne,yt,wt){if(!Ne.done){Ne.done=!0,wt&&(Ne=wt);try{if(Ne.facade===yt)throw rt("Promise can't be resolved itself");var vt=nt(yt);vt?Ce(function(){var gt={done:!1};try{z(vt,yt,ye(et,gt,Ne),ye(Le,gt,Ne))}catch(ht){Le(gt,ht,Ne)}}):(Ne.value=yt,Ne.state=st,Pe(Ne,!1))}catch(gt){Le({done:!1},gt,Ne)}}};if(Se&&(Re=function(yt){he(this,We),ue(yt),z(Ie,this);var wt=Xe(this);try{yt(ye(et,wt),ye(Le,wt))}catch(vt){Le(wt,vt)}},We=Re.prototype,Ie=function(yt){$e(this,{type:Me,done:!1,notified:!1,parent:!1,reactions:new Ae,rejection:!1,state:ut,value:void 0})},Ie.prototype=x(We,{then:function(yt,wt){var vt=Xe(this),gt=Je(ce(this,Re));return vt.parent=!0,gt.ok=fe(yt)?yt:!0,gt.fail=fe(wt)&&wt,gt.domain=ie?at.domain:void 0,vt.state==ut?vt.reactions.add(gt):Ce(function(){_e(gt,vt)}),gt.promise}}),Ye=function(){var Ne=new Ie,yt=Xe(Ne);this.promise=Ne,this.resolve=ye(et,yt),this.reject=ye(Le,yt)},Oe.f=Je=function(Ne){return Ne===Re||Ne===ft?new Ye(Ne):Qe(Ne)},!E&&fe(be)&&lt!==Object.prototype)){mt=lt.then,Ze||se(lt,"then",function(yt,wt){var vt=this;return new Re(function(gt,ht){z(mt,vt,gt,ht)}).then(yt,wt)},{unsafe:!0});try{delete lt.constructor}catch(Ne){}re&&re(lt,We)}ee({global:!0,wrap:!0,forced:Se},{Promise:Re}),te(Re,Me,!1,!0),ae(Me)},{"../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,we,ge){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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/function-call"),ie=y("../internals/a-callable"),le=y("../internals/new-promise-capability"),z=y("../internals/perform"),se=y("../internals/iterate"),x=y("../internals/promise-statics-incorrect-iteration");ee({target:"Promise",stat:!0,forced:x},{race:function(te){var ae=this,ue=le.f(ae),fe=ue.reject,de=z(function(){var he=ie(ae.resolve);se(te,function(ce){E(he,ae,ce).then(ue.resolve,fe)})});return de.error&&fe(de.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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/function-call"),ie=y("../internals/new-promise-capability"),le=y("../internals/promise-constructor-detection").CONSTRUCTOR;ee({target:"Promise",stat:!0,forced:le},{reject:function(se){var x=ie.f(this);return E(x.reject,void 0,se),x.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/get-built-in"),ie=y("../internals/is-pure"),le=y("../internals/promise-native-constructor"),z=y("../internals/promise-constructor-detection").CONSTRUCTOR,se=y("../internals/promise-resolve"),x=E("Promise"),re=ie&&!z;ee({target:"Promise",stat:!0,forced:ie||z},{resolve:function(ae){return se(re&&this===x?le: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,we,ge){var ee=y("../internals/descriptors"),E=y("../internals/global"),ie=y("../internals/function-uncurry-this"),le=y("../internals/is-forced"),z=y("../internals/inherit-if-required"),se=y("../internals/create-non-enumerable-property"),x=y("../internals/object-get-own-property-names").f,re=y("../internals/object-is-prototype-of"),te=y("../internals/is-regexp"),ae=y("../internals/to-string"),ue=y("../internals/regexp-get-flags"),fe=y("../internals/regexp-sticky-helpers"),de=y("../internals/proxy-accessor"),he=y("../internals/redefine"),ce=y("../internals/fails"),pe=y("../internals/has-own-property"),Ce=y("../internals/internal-state").enforce,ke=y("../internals/set-species"),De=y("../internals/well-known-symbol"),Ae=y("../internals/regexp-unsupported-dot-all"),ve=y("../internals/regexp-unsupported-ncg"),be=De("match"),Ee=E.RegExp,Oe=Ee.prototype,Me=E.SyntaxError,Se=ie(Oe.exec),je=ie("".charAt),Ze=ie("".replace),Xe=ie("".indexOf),$e=ie("".slice),lt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Re=/a/g,We=/a/g,rt=new Ee(Re)!==Re,ot=fe.MISSED_STICKY,at=fe.UNSUPPORTED_Y,Je=ee&&(!rt||ot||Ae||ve||ce(function(){return We[be]=!1,Ee(Re)!=Re||Ee(We)==We||Ee(Re,"i")!="/a/i"})),Qe=function(st){for(var ze=st.length,Be=0,Ke="",Ie=!1,Ye;Be<=ze;Be++){if(Ye=je(st,Be),Ye==="\\"){Ke+=Ye+je(st,++Be);continue}!Ie&&Ye==="."?Ke+="[\\s\\S]":(Ye==="["?Ie=!0:Ye==="]"&&(Ie=!1),Ke+=Ye)}return Ke},Ve=function(st){for(var ze=st.length,Be=0,Ke="",Ie=[],Ye={},ft=!1,mt=!1,nt=0,_e="",Pe;Be<=ze;Be++){if(Pe=je(st,Be),Pe==="\\")Pe=Pe+je(st,++Be);else if(Pe==="]")ft=!1;else if(!ft)switch(!0){case Pe==="[":ft=!0;break;case Pe==="(":Se(lt,$e(st,Be+1))&&(Be+=2,mt=!0),Ke+=Pe,nt++;continue;case(Pe===">"&&mt):if(_e===""||pe(Ye,_e))throw new Me("Invalid capture group name");Ye[_e]=!0,Ie[Ie.length]=[_e,nt],mt=!1,_e="";continue}mt?_e+=Pe:Ke+=Pe}return[Ke,Ie]};if(le("RegExp",Je)){for(var ct=function(ze,Be){var Ke=re(Oe,this),Ie=te(ze),Ye=Be===void 0,ft=[],mt=ze,nt,_e,Pe,He,it,Te;if(!Ke&&Ie&&Ye&&ze.constructor===ct)return ze;if((Ie||re(Oe,ze))&&(ze=ze.source,Ye&&(Be=ue(mt))),ze=ze===void 0?"":ae(ze),Be=Be===void 0?"":ae(Be),mt=ze,Ae&&"dotAll"in Re&&(_e=!!Be&&Xe(Be,"s")>-1,_e&&(Be=Ze(Be,/s/g,""))),nt=Be,ot&&"sticky"in Re&&(Pe=!!Be&&Xe(Be,"y")>-1,Pe&&at&&(Be=Ze(Be,/y/g,""))),ve&&(He=Ve(ze),ze=He[0],ft=He[1]),it=z(Ee(ze,Be),Ke?this:Oe,ct),(_e||Pe||ft.length)&&(Te=Ce(it),_e&&(Te.dotAll=!0,Te.raw=ct(Qe(ze),nt)),Pe&&(Te.sticky=!0),ft.length&&(Te.groups=ft)),ze!==mt)try{se(it,"source",mt===""?"(?:)":mt)}catch(xe){}return it},tt=x(Ee),ut=0;tt.length>ut;)de(ct,Ee,tt[ut++]);Oe.constructor=ct,ct.prototype=Oe,he(E,"RegExp",ct)}ke("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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/regexp-exec");ee({target:"RegExp",proto:!0,forced:/./.exec!==E},{exec:E})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(y,we,ge){"use strict";var ee=y("../internals/function-name").PROPER,E=y("../internals/redefine"),ie=y("../internals/an-object"),le=y("../internals/to-string"),z=y("../internals/fails"),se=y("../internals/regexp-get-flags"),x="toString",re=RegExp.prototype,te=re[x],ae=z(function(){return te.call({source:"a",flags:"b"})!="/a/b"}),ue=ee&&te.name!=x;(ae||ue)&&E(RegExp.prototype,x,function(){var de=ie(this),he=le(de.source),ce=le(se(de));return"/"+he+"/"+ce},{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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/function-uncurry-this"),ie=y("../internals/not-a-regexp"),le=y("../internals/require-object-coercible"),z=y("../internals/to-string"),se=y("../internals/correct-is-regexp-logic"),x=E("".indexOf);ee({target:"String",proto:!0,forced:!se("includes")},{includes:function(te){return!!~x(z(le(this)),z(ie(te)),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,we,ge){"use strict";var ee=y("../internals/string-multibyte").charAt,E=y("../internals/to-string"),ie=y("../internals/internal-state"),le=y("../internals/define-iterator"),z="String Iterator",se=ie.set,x=ie.getterFor(z);le(String,"String",function(re){se(this,{type:z,string:E(re),index:0})},function(){var te=x(this),ae=te.string,ue=te.index,fe;return ue>=ae.length?{value:void 0,done:!0}:(fe=ee(ae,ue),te.index+=fe.length,{value:fe,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(y,we,ge){"use strict";var ee=y("../internals/function-call"),E=y("../internals/fix-regexp-well-known-symbol-logic"),ie=y("../internals/an-object"),le=y("../internals/to-length"),z=y("../internals/to-string"),se=y("../internals/require-object-coercible"),x=y("../internals/get-method"),re=y("../internals/advance-string-index"),te=y("../internals/regexp-exec-abstract");E("match",function(ae,ue,fe){return[function(he){var ce=se(this),pe=he==null?void 0:x(he,ae);return pe?ee(pe,he,ce):new RegExp(he)[ae](z(ce))},function(de){var he=ie(this),ce=z(de),pe=fe(ue,he,ce);if(pe.done)return pe.value;if(!he.global)return te(he,ce);var Ce=he.unicode;he.lastIndex=0;for(var ke=[],De=0,Ae;(Ae=te(he,ce))!==null;){var ve=z(Ae[0]);ke[De]=ve,ve===""&&(he.lastIndex=re(ce,le(he.lastIndex),Ce)),De++}return De===0?null:ke}]})},{"../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,we,ge){"use strict";var ee=y("../internals/function-apply"),E=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),le=y("../internals/fix-regexp-well-known-symbol-logic"),z=y("../internals/fails"),se=y("../internals/an-object"),x=y("../internals/is-callable"),re=y("../internals/to-integer-or-infinity"),te=y("../internals/to-length"),ae=y("../internals/to-string"),ue=y("../internals/require-object-coercible"),fe=y("../internals/advance-string-index"),de=y("../internals/get-method"),he=y("../internals/get-substitution"),ce=y("../internals/regexp-exec-abstract"),pe=y("../internals/well-known-symbol"),Ce=pe("replace"),ke=Math.max,De=Math.min,Ae=ie([].concat),ve=ie([].push),be=ie("".indexOf),Ee=ie("".slice),Oe=function(Ze){return Ze===void 0?Ze:String(Ze)},Me=function(){return"a".replace(/./,"$0")==="$0"}(),Se=function(){return/./[Ce]?/./[Ce]("a","$0")==="":!1}(),je=!z(function(){var Ze=/./;return Ze.exec=function(){var Xe=[];return Xe.groups={a:"7"},Xe},"".replace(Ze,"$<a>")!=="7"});le("replace",function(Ze,Xe,$e){var lt=Se?"$":"$0";return[function(We,rt){var ot=ue(this),at=We==null?void 0:de(We,Ce);return at?E(at,We,ot,rt):E(Xe,ae(ot),We,rt)},function(Re,We){var rt=se(this),ot=ae(Re);if(typeof We=="string"&&be(We,lt)===-1&&be(We,"$<")===-1){var at=$e(Xe,rt,ot,We);if(at.done)return at.value}var Je=x(We);Je||(We=ae(We));var Qe=rt.global;if(Qe){var Ve=rt.unicode;rt.lastIndex=0}for(var ct=[];;){var tt=ce(rt,ot);if(tt===null||(ve(ct,tt),!Qe))break;var ut=ae(tt[0]);ut===""&&(rt.lastIndex=fe(ot,te(rt.lastIndex),Ve))}for(var st="",ze=0,Be=0;Be<ct.length;Be++){tt=ct[Be];for(var Ke=ae(tt[0]),Ie=ke(De(re(tt.index),ot.length),0),Ye=[],ft=1;ft<tt.length;ft++)ve(Ye,Oe(tt[ft]));var mt=tt.groups;if(Je){var nt=Ae([Ke],Ye,Ie,ot);mt!==void 0&&ve(nt,mt);var _e=ae(ee(We,void 0,nt))}else _e=he(Ke,ot,Ie,Ye,mt,We);Ie>=ze&&(st+=Ee(ot,ze,Ie)+_e,ze=Ie+Ke.length)}return st+Ee(ot,ze)}]},!je||!Me||Se)},{"../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,we,ge){"use strict";var ee=y("../internals/function-call"),E=y("../internals/fix-regexp-well-known-symbol-logic"),ie=y("../internals/an-object"),le=y("../internals/require-object-coercible"),z=y("../internals/same-value"),se=y("../internals/to-string"),x=y("../internals/get-method"),re=y("../internals/regexp-exec-abstract");E("search",function(te,ae,ue){return[function(de){var he=le(this),ce=de==null?void 0:x(de,te);return ce?ee(ce,de,he):new RegExp(de)[te](se(he))},function(fe){var de=ie(this),he=se(fe),ce=ue(ae,de,he);if(ce.done)return ce.value;var pe=de.lastIndex;z(pe,0)||(de.lastIndex=0);var Ce=re(de,he);return z(de.lastIndex,pe)||(de.lastIndex=pe),Ce===null?-1:Ce.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,we,ge){"use strict";var ee=y("../internals/function-apply"),E=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),le=y("../internals/fix-regexp-well-known-symbol-logic"),z=y("../internals/is-regexp"),se=y("../internals/an-object"),x=y("../internals/require-object-coercible"),re=y("../internals/species-constructor"),te=y("../internals/advance-string-index"),ae=y("../internals/to-length"),ue=y("../internals/to-string"),fe=y("../internals/get-method"),de=y("../internals/array-slice-simple"),he=y("../internals/regexp-exec-abstract"),ce=y("../internals/regexp-exec"),pe=y("../internals/regexp-sticky-helpers"),Ce=y("../internals/fails"),ke=pe.UNSUPPORTED_Y,De=4294967295,Ae=Math.min,ve=[].push,be=ie(/./.exec),Ee=ie(ve),Oe=ie("".slice),Me=!Ce(function(){var Se=/(?:)/,je=Se.exec;Se.exec=function(){return je.apply(this,arguments)};var Ze="ab".split(Se);return Ze.length!==2||Ze[0]!=="a"||Ze[1]!=="b"});le("split",function(Se,je,Ze){var Xe;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Xe=function($e,lt){var Re=ue(x(this)),We=lt===void 0?De:lt>>>0;if(We===0)return[];if($e===void 0)return[Re];if(!z($e))return E(je,Re,$e,We);for(var rt=[],ot=($e.ignoreCase?"i":"")+($e.multiline?"m":"")+($e.unicode?"u":"")+($e.sticky?"y":""),at=0,Je=new RegExp($e.source,ot+"g"),Qe,Ve,ct;(Qe=E(ce,Je,Re))&&(Ve=Je.lastIndex,!(Ve>at&&(Ee(rt,Oe(Re,at,Qe.index)),Qe.length>1&&Qe.index<Re.length&&ee(ve,rt,de(Qe,1)),ct=Qe[0].length,at=Ve,rt.length>=We)));)Je.lastIndex===Qe.index&&Je.lastIndex++;return at===Re.length?(ct||!be(Je,""))&&Ee(rt,""):Ee(rt,Oe(Re,at)),rt.length>We?de(rt,0,We):rt}:"0".split(void 0,0).length?Xe=function($e,lt){return $e===void 0&&lt===0?[]:E(je,this,$e,lt)}:Xe=je,[function(lt,Re){var We=x(this),rt=lt==null?void 0:fe(lt,Se);return rt?E(rt,lt,We,Re):E(Xe,ue(We),lt,Re)},function($e,lt){var Re=se(this),We=ue($e),rt=Ze(Xe,Re,We,lt,Xe!==je);if(rt.done)return rt.value;var ot=re(Re,RegExp),at=Re.unicode,Je=(Re.ignoreCase?"i":"")+(Re.multiline?"m":"")+(Re.unicode?"u":"")+(ke?"g":"y"),Qe=new ot(ke?"^(?:"+Re.source+")":Re,Je),Ve=lt===void 0?De:lt>>>0;if(Ve===0)return[];if(We.length===0)return he(Qe,We)===null?[We]:[];for(var ct=0,tt=0,ut=[];tt<We.length;){Qe.lastIndex=ke?0:tt;var st=he(Qe,ke?Oe(We,tt):We),ze;if(st===null||(ze=Ae(ae(Qe.lastIndex+(ke?tt:0)),We.length))===ct)tt=te(We,tt,at);else{if(Ee(ut,Oe(We,ct,tt)),ut.length===Ve)return ut;for(var Be=1;Be<=st.length-1;Be++)if(Ee(ut,st[Be]),ut.length===Ve)return ut;tt=ct=ze}}return Ee(ut,Oe(We,ct)),ut}]},!Me,ke)},{"../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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/string-trim").trim,ie=y("../internals/string-trim-forced");ee({target:"String",proto:!0,forced:ie("trim")},{trim:function(){return E(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/global"),ie=y("../internals/function-call"),le=y("../internals/function-uncurry-this"),z=y("../internals/is-pure"),se=y("../internals/descriptors"),x=y("../internals/native-symbol"),re=y("../internals/fails"),te=y("../internals/has-own-property"),ae=y("../internals/object-is-prototype-of"),ue=y("../internals/an-object"),fe=y("../internals/to-indexed-object"),de=y("../internals/to-property-key"),he=y("../internals/to-string"),ce=y("../internals/create-property-descriptor"),pe=y("../internals/object-create"),Ce=y("../internals/object-keys"),ke=y("../internals/object-get-own-property-names"),De=y("../internals/object-get-own-property-names-external"),Ae=y("../internals/object-get-own-property-symbols"),ve=y("../internals/object-get-own-property-descriptor"),be=y("../internals/object-define-property"),Ee=y("../internals/object-define-properties"),Oe=y("../internals/object-property-is-enumerable"),Me=y("../internals/redefine"),Se=y("../internals/shared"),je=y("../internals/shared-key"),Ze=y("../internals/hidden-keys"),Xe=y("../internals/uid"),$e=y("../internals/well-known-symbol"),lt=y("../internals/well-known-symbol-wrapped"),Re=y("../internals/define-well-known-symbol"),We=y("../internals/symbol-define-to-primitive"),rt=y("../internals/set-to-string-tag"),ot=y("../internals/internal-state"),at=y("../internals/array-iteration").forEach,Je=je("hidden"),Qe="Symbol",Ve="prototype",ct=ot.set,tt=ot.getterFor(Qe),ut=Object[Ve],st=E.Symbol,ze=st&&st[Ve],Be=E.TypeError,Ke=E.QObject,Ie=ve.f,Ye=be.f,ft=De.f,mt=Oe.f,nt=le([].push),_e=Se("symbols"),Pe=Se("op-symbols"),He=Se("wks"),it=!Ke||!Ke[Ve]||!Ke[Ve].findChild,Te=se&&re(function(){return pe(Ye({},"a",{get:function(){return Ye(this,"a",{value:7}).a}})).a!=7})?function(gt,ht,xt){var St=Ie(ut,ht);St&&delete ut[ht],Ye(gt,ht,xt),St&&gt!==ut&&Ye(ut,ht,St)}:Ye,xe=function(gt,ht){var xt=_e[gt]=pe(ze);return ct(xt,{type:Qe,tag:gt,description:ht}),se||(xt.description=ht),xt},ye=function(ht,xt,St){ht===ut&&ye(Pe,xt,St),ue(ht);var Ct=de(xt);return ue(St),te(_e,Ct)?(St.enumerable?(te(ht,Je)&&ht[Je][Ct]&&(ht[Je][Ct]=!1),St=pe(St,{enumerable:ce(0,!1)})):(te(ht,Je)||Ye(ht,Je,ce(1,{})),ht[Je][Ct]=!0),Te(ht,Ct,St)):Ye(ht,Ct,St)},Le=function(ht,xt){ue(ht);var St=fe(xt),Ct=Ce(St).concat(vt(St));return at(Ct,function(jt){(!se||ie(Ne,St,jt))&&ye(ht,jt,St[jt])}),ht},et=function(ht,xt){return xt===void 0?pe(ht):Le(pe(ht),xt)},Ne=function(ht){var xt=de(ht),St=ie(mt,this,xt);return this===ut&&te(_e,xt)&&!te(Pe,xt)?!1:St||!te(this,xt)||!te(_e,xt)||te(this,Je)&&this[Je][xt]?St:!0},yt=function(ht,xt){var St=fe(ht),Ct=de(xt);if(!(St===ut&&te(_e,Ct)&&!te(Pe,Ct))){var jt=Ie(St,Ct);return jt&&te(_e,Ct)&&!(te(St,Je)&&St[Je][Ct])&&(jt.enumerable=!0),jt}},wt=function(ht){var xt=ft(fe(ht)),St=[];return at(xt,function(Ct){!te(_e,Ct)&&!te(Ze,Ct)&&nt(St,Ct)}),St},vt=function(gt){var ht=gt===ut,xt=ft(ht?Pe:fe(gt)),St=[];return at(xt,function(Ct){te(_e,Ct)&&(!ht||te(ut,Ct))&&nt(St,_e[Ct])}),St};x||(st=function(){if(ae(ze,this))throw Be("Symbol is not a constructor");var ht=!arguments.length||arguments[0]===void 0?void 0:he(arguments[0]),xt=Xe(ht),St=function(Ct){this===ut&&ie(St,Pe,Ct),te(this,Je)&&te(this[Je],xt)&&(this[Je][xt]=!1),Te(this,xt,ce(1,Ct))};return se&&it&&Te(ut,xt,{configurable:!0,set:St}),xe(xt,ht)},ze=st[Ve],Me(ze,"toString",function(){return tt(this).tag}),Me(st,"withoutSetter",function(gt){return xe(Xe(gt),gt)}),Oe.f=Ne,be.f=ye,Ee.f=Le,ve.f=yt,ke.f=De.f=wt,Ae.f=vt,lt.f=function(gt){return xe($e(gt),gt)},se&&(Ye(ze,"description",{configurable:!0,get:function(){return tt(this).description}}),z||Me(ut,"propertyIsEnumerable",Ne,{unsafe:!0}))),ee({global:!0,wrap:!0,forced:!x,sham:!x},{Symbol:st}),at(Ce(He),function(gt){Re(gt)}),ee({target:Qe,stat:!0,forced:!x},{useSetter:function(){it=!0},useSimple:function(){it=!1}}),ee({target:"Object",stat:!0,forced:!x,sham:!se},{create:et,defineProperty:ye,defineProperties:Le,getOwnPropertyDescriptor:yt}),ee({target:"Object",stat:!0,forced:!x},{getOwnPropertyNames:wt}),We(),rt(st,Qe),Ze[Je]=!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,we,ge){"use strict";var ee=y("../internals/export"),E=y("../internals/descriptors"),ie=y("../internals/global"),le=y("../internals/function-uncurry-this"),z=y("../internals/has-own-property"),se=y("../internals/is-callable"),x=y("../internals/object-is-prototype-of"),re=y("../internals/to-string"),te=y("../internals/object-define-property").f,ae=y("../internals/copy-constructor-properties"),ue=ie.Symbol,fe=ue&&ue.prototype;if(E&&se(ue)&&(!("description"in fe)||ue().description!==void 0)){var de={},he=function(){var be=arguments.length<1||arguments[0]===void 0?void 0:re(arguments[0]),Ee=x(fe,this)?new ue(be):be===void 0?ue():ue(be);return be===""&&(de[Ee]=!0),Ee};ae(he,ue),he.prototype=fe,fe.constructor=he;var ce=String(ue("test"))=="Symbol(test)",pe=le(fe.toString),Ce=le(fe.valueOf),ke=/^Symbol\((.*)\)[^)]+$/,De=le("".replace),Ae=le("".slice);te(fe,"description",{configurable:!0,get:function(){var be=Ce(this),Ee=pe(be);if(z(de,be))return"";var Oe=ce?Ae(Ee,7,-1):De(Ee,ke,"$1");return Oe===""?void 0:Oe}}),ee({global:!0,forced:!0},{Symbol:he})}},{"../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,we,ge){var ee=y("../internals/export"),E=y("../internals/get-built-in"),ie=y("../internals/has-own-property"),le=y("../internals/to-string"),z=y("../internals/shared"),se=y("../internals/native-symbol-registry"),x=z("string-to-symbol-registry"),re=z("symbol-to-string-registry");ee({target:"Symbol",stat:!0,forced:!se},{for:function(te){var ae=le(te);if(ie(x,ae))return x[ae];var ue=E("Symbol")(ae);return x[ae]=ue,re[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,we,ge){var ee=y("../internals/define-well-known-symbol");ee("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,we,ge){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,we,ge){var ee=y("../internals/export"),E=y("../internals/has-own-property"),ie=y("../internals/is-symbol"),le=y("../internals/try-to-string"),z=y("../internals/shared"),se=y("../internals/native-symbol-registry"),x=z("symbol-to-string-registry");ee({target:"Symbol",stat:!0,forced:!se},{keyFor:function(te){if(!ie(te))throw TypeError(le(te)+" is not a symbol");if(E(x,te))return x[te]}})},{"../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,we,ge){"use strict";var ee=y("../internals/function-uncurry-this"),E=y("../internals/array-buffer-view-core"),ie=y("../internals/array-copy-within"),le=ee(ie),z=E.aTypedArray,se=E.exportTypedArrayMethod;se("copyWithin",function(re,te){return le(z(this),re,te,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,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").every,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("every",function(se){return E(ie(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/function-call"),ie=y("../internals/array-fill"),le=ee.aTypedArray,z=ee.exportTypedArrayMethod;z("fill",function(x){var re=arguments.length;return E(ie,le(this),x,re>1?arguments[1]:void 0,re>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").filter,ie=y("../internals/typed-array-from-species-and-list"),le=ee.aTypedArray,z=ee.exportTypedArrayMethod;z("filter",function(x){var re=E(le(this),x,arguments.length>1?arguments[1]:void 0);return ie(this,re)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").findIndex,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("findIndex",function(se){return E(ie(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").find,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("find",function(se){return E(ie(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").forEach,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("forEach",function(se){E(ie(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-includes").includes,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("includes",function(se){return E(ie(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-includes").indexOf,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("indexOf",function(se){return E(ie(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,we,ge){"use strict";var ee=y("../internals/global"),E=y("../internals/fails"),ie=y("../internals/function-uncurry-this"),le=y("../internals/array-buffer-view-core"),z=y("../modules/es.array.iterator"),se=y("../internals/well-known-symbol"),x=se("iterator"),re=ee.Uint8Array,te=ie(z.values),ae=ie(z.keys),ue=ie(z.entries),fe=le.aTypedArray,de=le.exportTypedArrayMethod,he=re&&re.prototype,ce=!E(function(){he[x].call([1])}),pe=!!he&&he.values&&he[x]===he.values&&he.values.name==="values",Ce=function(){return te(fe(this))};de("entries",function(){return ue(fe(this))},ce),de("keys",function(){return ae(fe(this))},ce),de("values",Ce,ce||!pe,{name:"values"}),de(x,Ce,ce||!pe,{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,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/function-uncurry-this"),ie=ee.aTypedArray,le=ee.exportTypedArrayMethod,z=E([].join);le("join",function(x){return z(ie(this),x)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/function-apply"),ie=y("../internals/array-last-index-of"),le=ee.aTypedArray,z=ee.exportTypedArrayMethod;z("lastIndexOf",function(x){var re=arguments.length;return E(ie,le(this),re>1?[x,arguments[1]]:[x])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").map,ie=y("../internals/typed-array-species-constructor"),le=ee.aTypedArray,z=ee.exportTypedArrayMethod;z("map",function(x){return E(le(this),x,arguments.length>1?arguments[1]:void 0,function(re,te){return new(ie(re))(te)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-reduce").right,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("reduceRight",function(se){var x=arguments.length;return E(ie(this),se,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-reduce").left,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("reduce",function(se){var x=arguments.length;return E(ie(this),se,x,x>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=ee.aTypedArray,ie=ee.exportTypedArrayMethod,le=Math.floor;ie("reverse",function(){for(var se=this,x=E(se).length,re=le(x/2),te=0,ae;te<re;)ae=se[te],se[te++]=se[--x],se[x]=ae;return se})},{"../internals/array-buffer-view-core":103}],331:[function(y,we,ge){"use strict";var ee=y("../internals/global"),E=y("../internals/function-call"),ie=y("../internals/array-buffer-view-core"),le=y("../internals/length-of-array-like"),z=y("../internals/to-offset"),se=y("../internals/to-object"),x=y("../internals/fails"),re=ee.RangeError,te=ee.Int8Array,ae=te&&te.prototype,ue=ae&&ae.set,fe=ie.aTypedArray,de=ie.exportTypedArrayMethod,he=!x(function(){var pe=new Uint8ClampedArray(2);return E(ue,pe,{length:1,0:3},1),pe[1]!==3}),ce=he&&ie.NATIVE_ARRAY_BUFFER_VIEWS&&x(function(){var pe=new te(2);return pe.set(1),pe.set("2",1),pe[0]!==0||pe[1]!==2});de("set",function(Ce){fe(this);var ke=z(arguments.length>1?arguments[1]:void 0,1),De=se(Ce);if(he)return E(ue,this,De,ke);var Ae=this.length,ve=le(De),be=0;if(ve+ke>Ae)throw re("Wrong length");for(;be<ve;)this[ke+be]=De[be++]},!he||ce)},{"../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,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/typed-array-species-constructor"),ie=y("../internals/fails"),le=y("../internals/array-slice"),z=ee.aTypedArray,se=ee.exportTypedArrayMethod,x=ie(function(){new Int8Array(1).slice()});se("slice",function(te,ae){for(var ue=le(z(this),te,ae),fe=E(this),de=0,he=ue.length,ce=new fe(he);he>de;)ce[de]=ue[de++];return ce},x)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/array-iteration").some,ie=ee.aTypedArray,le=ee.exportTypedArrayMethod;le("some",function(se){return E(ie(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,we,ge){"use strict";var ee=y("../internals/global"),E=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),le=y("../internals/a-callable"),z=y("../internals/array-sort"),se=y("../internals/array-buffer-view-core"),x=y("../internals/engine-ff-version"),re=y("../internals/engine-is-ie-or-edge"),te=y("../internals/engine-v8-version"),ae=y("../internals/engine-webkit-version"),ue=se.aTypedArray,fe=se.exportTypedArrayMethod,de=ee.Uint16Array,he=de&&E(de.prototype.sort),ce=!!he&&!(ie(function(){he(new de(2),null)})&&ie(function(){he(new de(2),{})})),pe=!!he&&!ie(function(){if(te)return te<74;if(x)return x<67;if(re)return!0;if(ae)return ae<602;var ke=new de(516),De=Array(516),Ae,ve;for(Ae=0;Ae<516;Ae++)ve=Ae%4,ke[Ae]=515-Ae,De[Ae]=Ae-2*ve+3;for(he(ke,function(be,Ee){return(be/4|0)-(Ee/4|0)}),Ae=0;Ae<516;Ae++)if(ke[Ae]!==De[Ae])return!0}),Ce=function(ke){return function(De,Ae){return ke!==void 0?+ke(De,Ae)||0:Ae!==Ae?-1:De!==De?1:De===0&&Ae===0?1/De>0&&1/Ae<0?1:-1:De>Ae}};fe("sort",function(De){return De!==void 0&&le(De),pe?he(this,De):z(ue(this),Ce(De))},!pe||ce)},{"../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,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core"),E=y("../internals/to-length"),ie=y("../internals/to-absolute-index"),le=y("../internals/typed-array-species-constructor"),z=ee.aTypedArray,se=ee.exportTypedArrayMethod;se("subarray",function(re,te){var ae=z(this),ue=ae.length,fe=ie(re,ue),de=le(ae);return new de(ae.buffer,ae.byteOffset+fe*ae.BYTES_PER_ELEMENT,E((te===void 0?ue:ie(te,ue))-fe))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(y,we,ge){"use strict";var ee=y("../internals/global"),E=y("../internals/function-apply"),ie=y("../internals/array-buffer-view-core"),le=y("../internals/fails"),z=y("../internals/array-slice"),se=ee.Int8Array,x=ie.aTypedArray,re=ie.exportTypedArrayMethod,te=[].toLocaleString,ae=!!se&&le(function(){te.call(new se(1))}),ue=le(function(){return[1,2].toLocaleString()!=new se([1,2]).toLocaleString()})||!le(function(){se.prototype.toLocaleString.call([1,2])});re("toLocaleString",function(){return E(te,ae?z(x(this)):x(this),z(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,we,ge){"use strict";var ee=y("../internals/array-buffer-view-core").exportTypedArrayMethod,E=y("../internals/fails"),ie=y("../internals/global"),le=y("../internals/function-uncurry-this"),z=ie.Uint8Array,se=z&&z.prototype||{},x=[].toString,re=le([].join);E(function(){x.call({})})&&(x=function(){return re(this)});var te=se.toString!=x;ee("toString",x,te)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(y,we,ge){var ee=y("../internals/typed-array-constructor");ee("Uint8",function(E){return function(le,z,se){return E(this,le,z,se)}})},{"../internals/typed-array-constructor":258}],339:[function(y,we,ge){var ee=y("../internals/global"),E=y("../internals/dom-iterables"),ie=y("../internals/dom-token-list-prototype"),le=y("../internals/array-for-each"),z=y("../internals/create-non-enumerable-property"),se=function(re){if(re&&re.forEach!==le)try{z(re,"forEach",le)}catch(te){re.forEach=le}};for(var x in E)E[x]&&se(ee[x]&&ee[x].prototype);se(ie)},{"../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,we,ge){var ee=y("../internals/global"),E=y("../internals/dom-iterables"),ie=y("../internals/dom-token-list-prototype"),le=y("../modules/es.array.iterator"),z=y("../internals/create-non-enumerable-property"),se=y("../internals/well-known-symbol"),x=se("iterator"),re=se("toStringTag"),te=le.values,ae=function(fe,de){if(fe){if(fe[x]!==te)try{z(fe,x,te)}catch(ce){fe[x]=te}if(fe[re]||z(fe,re,de),E[de]){for(var he in le)if(fe[he]!==le[he])try{z(fe,he,le[he])}catch(ce){fe[he]=le[he]}}}};for(var ue in E)ae(ee[ue]&&ee[ue].prototype,ue);ae(ie,"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,we,ge){function ee(pe){return Array.isArray?Array.isArray(pe):ce(pe)==="[object Array]"}ge.isArray=ee;function E(pe){return typeof pe=="boolean"}ge.isBoolean=E;function ie(pe){return pe===null}ge.isNull=ie;function le(pe){return pe==null}ge.isNullOrUndefined=le;function z(pe){return typeof pe=="number"}ge.isNumber=z;function se(pe){return typeof pe=="string"}ge.isString=se;function x(pe){return typeof pe=="symbol"}ge.isSymbol=x;function re(pe){return pe===void 0}ge.isUndefined=re;function te(pe){return ce(pe)==="[object RegExp]"}ge.isRegExp=te;function ae(pe){return typeof pe=="object"&&pe!==null}ge.isObject=ae;function ue(pe){return ce(pe)==="[object Date]"}ge.isDate=ue;function fe(pe){return ce(pe)==="[object Error]"||pe instanceof Error}ge.isError=fe;function de(pe){return typeof pe=="function"}ge.isFunction=de;function he(pe){return pe===null||typeof pe=="boolean"||typeof pe=="number"||typeof pe=="string"||typeof pe=="symbol"||typeof pe=="undefined"}ge.isPrimitive=he,ge.isBuffer=y("buffer").Buffer.isBuffer;function ce(pe){return Object.prototype.toString.call(pe)}},{buffer:90}],342:[function(y,we,ge){(function(ee){"use strict";var E=function(){var x=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,re=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,te=/[^-+\dA-Z]/g;return function(ae,ue,fe,de){if(arguments.length===1&&se(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(E.masks[ue]||ue||E.masks.default);var he=ue.slice(0,4);(he==="UTC:"||he==="GMT:")&&(ue=ue.slice(4),fe=!0,he==="GMT:"&&(de=!0));var ce=fe?"getUTC":"get",pe=ae[ce+"Date"](),Ce=ae[ce+"Day"](),ke=ae[ce+"Month"](),De=ae[ce+"FullYear"](),Ae=ae[ce+"Hours"](),ve=ae[ce+"Minutes"](),be=ae[ce+"Seconds"](),Ee=ae[ce+"Milliseconds"](),Oe=fe?0:ae.getTimezoneOffset(),Me=le(ae),Se=z(ae),je={d:pe,dd:ie(pe),ddd:E.i18n.dayNames[Ce],dddd:E.i18n.dayNames[Ce+7],m:ke+1,mm:ie(ke+1),mmm:E.i18n.monthNames[ke],mmmm:E.i18n.monthNames[ke+12],yy:String(De).slice(2),yyyy:De,h:Ae%12||12,hh:ie(Ae%12||12),H:Ae,HH:ie(Ae),M:ve,MM:ie(ve),s:be,ss:ie(be),l:ie(Ee,3),L:ie(Math.round(Ee/10)),t:Ae<12?"a":"p",tt:Ae<12?"am":"pm",T:Ae<12?"A":"P",TT:Ae<12?"AM":"PM",Z:de?"GMT":fe?"UTC":(String(ae).match(re)||[""]).pop().replace(te,""),o:(Oe>0?"-":"+")+ie(Math.floor(Math.abs(Oe)/60)*100+Math.abs(Oe)%60,4),S:["th","st","nd","rd"][pe%10>3?0:(pe%100-pe%10!=10)*pe%10],W:Me,N:Se};return ue.replace(x,function(Ze){return Ze in je?je[Ze]:Ze.slice(1,Ze.length-1)})}}();E.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"},E.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 ie(x,re){for(x=String(x),re=re||2;x.length<re;)x="0"+x;return x}function le(x){var re=new Date(x.getFullYear(),x.getMonth(),x.getDate());re.setDate(re.getDate()-(re.getDay()+6)%7+3);var te=new Date(re.getFullYear(),0,4);te.setDate(te.getDate()-(te.getDay()+6)%7+3);var ae=re.getTimezoneOffset()-te.getTimezoneOffset();re.setHours(re.getHours()-ae);var ue=(re-te)/(864e5*7);return 1+Math.floor(ue)}function z(x){var re=x.getDay();return re===0&&(re=7),re}function se(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 Ge=="function"&&Ge.amd?Ge(function(){return E}):typeof ge=="object"?we.exports=E:ee.dateFormat=E})(this)},{}],343:[function(y,we,ge){"use strict";var ee=/["'&<>]/;we.exports=E;function E(ie){var le=""+ie,z=ee.exec(le);if(!z)return le;var se,x="",re=0,te=0;for(re=z.index;re<le.length;re++){switch(le.charCodeAt(re)){case 34:se="&quot;";break;case 38:se="&amp;";break;case 39:se="&#39;";break;case 60:se="&lt;";break;case 62:se="&gt;";break;default:continue}te!==re&&(x+=le.substring(te,re)),te=re+1,x+=se}return te!==re?x+le.substring(te,re):x}},{}],344:[function(y,we,ge){"use strict";var ee=typeof Reflect=="object"?Reflect:null,E=ee&&typeof ee.apply=="function"?ee.apply:function(be,Ee,Oe){return Function.prototype.apply.call(be,Ee,Oe)},ie;ee&&typeof ee.ownKeys=="function"?ie=ee.ownKeys:Object.getOwnPropertySymbols?ie=function(be){return Object.getOwnPropertyNames(be).concat(Object.getOwnPropertySymbols(be))}:ie=function(be){return Object.getOwnPropertyNames(be)};function le(ve){console&&console.warn&&console.warn(ve)}var z=Number.isNaN||function(be){return be!==be};function se(){se.init.call(this)}we.exports=se,we.exports.once=ke,se.EventEmitter=se,se.prototype._events=void 0,se.prototype._eventsCount=0,se.prototype._maxListeners=void 0;var x=10;function re(ve){if(typeof ve!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ve)}Object.defineProperty(se,"defaultMaxListeners",{enumerable:!0,get:function(){return x},set:function(ve){if(typeof ve!="number"||ve<0||z(ve))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ve+".");x=ve}}),se.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},se.prototype.setMaxListeners=function(be){if(typeof be!="number"||be<0||z(be))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+be+".");return this._maxListeners=be,this};function te(ve){return ve._maxListeners===void 0?se.defaultMaxListeners:ve._maxListeners}se.prototype.getMaxListeners=function(){return te(this)},se.prototype.emit=function(be){for(var Ee=[],Oe=1;Oe<arguments.length;Oe++)Ee.push(arguments[Oe]);var Me=be==="error",Se=this._events;if(Se!==void 0)Me=Me&&Se.error===void 0;else if(!Me)return!1;if(Me){var je;if(Ee.length>0&&(je=Ee[0]),je instanceof Error)throw je;var Ze=new Error("Unhandled error."+(je?" ("+je.message+")":""));throw Ze.context=je,Ze}var Xe=Se[be];if(Xe===void 0)return!1;if(typeof Xe=="function")E(Xe,this,Ee);else for(var $e=Xe.length,lt=ce(Xe,$e),Oe=0;Oe<$e;++Oe)E(lt[Oe],this,Ee);return!0};function ae(ve,be,Ee,Oe){var Me,Se,je;if(re(Ee),Se=ve._events,Se===void 0?(Se=ve._events=Object.create(null),ve._eventsCount=0):(Se.newListener!==void 0&&(ve.emit("newListener",be,Ee.listener?Ee.listener:Ee),Se=ve._events),je=Se[be]),je===void 0)je=Se[be]=Ee,++ve._eventsCount;else if(typeof je=="function"?je=Se[be]=Oe?[Ee,je]:[je,Ee]:Oe?je.unshift(Ee):je.push(Ee),Me=te(ve),Me>0&&je.length>Me&&!je.warned){je.warned=!0;var Ze=new Error("Possible EventEmitter memory leak detected. "+je.length+" "+String(be)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ze.name="MaxListenersExceededWarning",Ze.emitter=ve,Ze.type=be,Ze.count=je.length,le(Ze)}return ve}se.prototype.addListener=function(be,Ee){return ae(this,be,Ee,!1)},se.prototype.on=se.prototype.addListener,se.prototype.prependListener=function(be,Ee){return ae(this,be,Ee,!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 fe(ve,be,Ee){var Oe={fired:!1,wrapFn:void 0,target:ve,type:be,listener:Ee},Me=ue.bind(Oe);return Me.listener=Ee,Oe.wrapFn=Me,Me}se.prototype.once=function(be,Ee){return re(Ee),this.on(be,fe(this,be,Ee)),this},se.prototype.prependOnceListener=function(be,Ee){return re(Ee),this.prependListener(be,fe(this,be,Ee)),this},se.prototype.removeListener=function(be,Ee){var Oe,Me,Se,je,Ze;if(re(Ee),Me=this._events,Me===void 0)return this;if(Oe=Me[be],Oe===void 0)return this;if(Oe===Ee||Oe.listener===Ee)--this._eventsCount===0?this._events=Object.create(null):(delete Me[be],Me.removeListener&&this.emit("removeListener",be,Oe.listener||Ee));else if(typeof Oe!="function"){for(Se=-1,je=Oe.length-1;je>=0;je--)if(Oe[je]===Ee||Oe[je].listener===Ee){Ze=Oe[je].listener,Se=je;break}if(Se<0)return this;Se===0?Oe.shift():pe(Oe,Se),Oe.length===1&&(Me[be]=Oe[0]),Me.removeListener!==void 0&&this.emit("removeListener",be,Ze||Ee)}return this},se.prototype.off=se.prototype.removeListener,se.prototype.removeAllListeners=function(be){var Ee,Oe,Me;if(Oe=this._events,Oe===void 0)return this;if(Oe.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Oe[be]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Oe[be]),this;if(arguments.length===0){var Se=Object.keys(Oe),je;for(Me=0;Me<Se.length;++Me)je=Se[Me],je!=="removeListener"&&this.removeAllListeners(je);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Ee=Oe[be],typeof Ee=="function")this.removeListener(be,Ee);else if(Ee!==void 0)for(Me=Ee.length-1;Me>=0;Me--)this.removeListener(be,Ee[Me]);return this};function de(ve,be,Ee){var Oe=ve._events;if(Oe===void 0)return[];var Me=Oe[be];return Me===void 0?[]:typeof Me=="function"?Ee?[Me.listener||Me]:[Me]:Ee?Ce(Me):ce(Me,Me.length)}se.prototype.listeners=function(be){return de(this,be,!0)},se.prototype.rawListeners=function(be){return de(this,be,!1)},se.listenerCount=function(ve,be){return typeof ve.listenerCount=="function"?ve.listenerCount(be):he.call(ve,be)},se.prototype.listenerCount=he;function he(ve){var be=this._events;if(be!==void 0){var Ee=be[ve];if(typeof Ee=="function")return 1;if(Ee!==void 0)return Ee.length}return 0}se.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function ce(ve,be){for(var Ee=new Array(be),Oe=0;Oe<be;++Oe)Ee[Oe]=ve[Oe];return Ee}function pe(ve,be){for(;be+1<ve.length;be++)ve[be]=ve[be+1];ve.pop()}function Ce(ve){for(var be=new Array(ve.length),Ee=0;Ee<be.length;++Ee)be[Ee]=ve[Ee].listener||ve[Ee];return be}function ke(ve,be){return new Promise(function(Ee,Oe){function Me(je){ve.removeListener(be,Se),Oe(je)}function Se(){typeof ve.removeListener=="function"&&ve.removeListener("error",Me),Ee([].slice.call(arguments))}Ae(ve,be,Se,{once:!0}),be!=="error"&&De(ve,Me,{once:!0})})}function De(ve,be,Ee){typeof ve.on=="function"&&Ae(ve,"error",be,Ee)}function Ae(ve,be,Ee,Oe){if(typeof ve.on=="function")Oe.once?ve.once(be,Ee):ve.on(be,Ee);else if(typeof ve.addEventListener=="function")ve.addEventListener(be,function Me(Se){Oe.once&&ve.removeEventListener(be,Me),Ee(Se)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ve)}},{}],345:[function(y,we,ge){"use strict";var ee=y("is-callable"),E=Object.prototype.toString,ie=Object.prototype.hasOwnProperty,le=function(te,ae,ue){for(var fe=0,de=te.length;fe<de;fe++)ie.call(te,fe)&&(ue==null?ae(te[fe],fe,te):ae.call(ue,te[fe],fe,te))},z=function(te,ae,ue){for(var fe=0,de=te.length;fe<de;fe++)ue==null?ae(te.charAt(fe),fe,te):ae.call(ue,te.charAt(fe),fe,te)},se=function(te,ae,ue){for(var fe in te)ie.call(te,fe)&&(ue==null?ae(te[fe],fe,te):ae.call(ue,te[fe],fe,te))},x=function(te,ae,ue){if(!ee(ae))throw new TypeError("iterator must be a function");var fe;arguments.length>=3&&(fe=ue),E.call(te)==="[object Array]"?le(te,ae,fe):typeof te=="string"?z(te,ae,fe):se(te,ae,fe)};we.exports=x},{"is-callable":367}],346:[function(y,we,ge){"use strict";var ee="Function.prototype.bind called on incompatible ",E=Array.prototype.slice,ie=Object.prototype.toString,le="[object Function]";we.exports=function(se){var x=this;if(typeof x!="function"||ie.call(x)!==le)throw new TypeError(ee+x);for(var re=E.call(arguments,1),te,ae=function(){if(this instanceof te){var ce=x.apply(this,re.concat(E.call(arguments)));return Object(ce)===ce?ce:this}else return x.apply(se,re.concat(E.call(arguments)))},ue=Math.max(0,x.length-re.length),fe=[],de=0;de<ue;de++)fe.push("$"+de);if(te=Function("binder","return function ("+fe.join(",")+"){ return binder.apply(this,arguments); }")(ae),x.prototype){var he=function(){};he.prototype=x.prototype,te.prototype=new he,he.prototype=null}return te}},{}],347:[function(y,we,ge){"use strict";var ee=y("./implementation");we.exports=Function.prototype.bind||ee},{"./implementation":346}],348:[function(y,we,ge){"use strict";var ee,E=SyntaxError,ie=Function,le=TypeError,z=function(Xe){try{return ie('"use strict"; return ('+Xe+").constructor;")()}catch($e){}},se=Object.getOwnPropertyDescriptor;if(se)try{se({},"")}catch(Xe){se=null}var x=function(){throw new le},re=se?function(){try{return arguments.callee,x}catch(Xe){try{return se(arguments,"callee").get}catch($e){return x}}}():x,te=y("has-symbols")(),ae=y("has-proto")(),ue=Object.getPrototypeOf||(ae?function(Xe){return Xe.__proto__}:null),fe={},de=typeof Uint8Array=="undefined"||!ue?ee:ue(Uint8Array),he={"%AggregateError%":typeof AggregateError=="undefined"?ee:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?ee:ArrayBuffer,"%ArrayIteratorPrototype%":te&&ue?ue([][Symbol.iterator]()):ee,"%AsyncFromSyncIteratorPrototype%":ee,"%AsyncFunction%":fe,"%AsyncGenerator%":fe,"%AsyncGeneratorFunction%":fe,"%AsyncIteratorPrototype%":fe,"%Atomics%":typeof Atomics=="undefined"?ee:Atomics,"%BigInt%":typeof BigInt=="undefined"?ee:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?ee:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?ee:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?ee:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?ee:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?ee:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?ee:FinalizationRegistry,"%Function%":ie,"%GeneratorFunction%":fe,"%Int8Array%":typeof Int8Array=="undefined"?ee:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?ee:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?ee:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":te&&ue?ue(ue([][Symbol.iterator]())):ee,"%JSON%":typeof JSON=="object"?JSON:ee,"%Map%":typeof Map=="undefined"?ee:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!te||!ue?ee:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?ee:Promise,"%Proxy%":typeof Proxy=="undefined"?ee:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?ee:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?ee:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!te||!ue?ee:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?ee:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":te&&ue?ue(""[Symbol.iterator]()):ee,"%Symbol%":te?Symbol:ee,"%SyntaxError%":E,"%ThrowTypeError%":re,"%TypedArray%":de,"%TypeError%":le,"%Uint8Array%":typeof Uint8Array=="undefined"?ee:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?ee:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?ee:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?ee:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?ee:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?ee:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?ee:WeakSet};if(ue)try{null.error}catch(Xe){var ce=ue(ue(Xe));he["%Error.prototype%"]=ce}var pe=function Xe($e){var lt;if($e==="%AsyncFunction%")lt=z("async function () {}");else if($e==="%GeneratorFunction%")lt=z("function* () {}");else if($e==="%AsyncGeneratorFunction%")lt=z("async function* () {}");else if($e==="%AsyncGenerator%"){var Re=Xe("%AsyncGeneratorFunction%");Re&&(lt=Re.prototype)}else if($e==="%AsyncIteratorPrototype%"){var We=Xe("%AsyncGenerator%");We&&ue&&(lt=ue(We.prototype))}return he[$e]=lt,lt},Ce={"%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"]},ke=y("function-bind"),De=y("has"),Ae=ke.call(Function.call,Array.prototype.concat),ve=ke.call(Function.apply,Array.prototype.splice),be=ke.call(Function.call,String.prototype.replace),Ee=ke.call(Function.call,String.prototype.slice),Oe=ke.call(Function.call,RegExp.prototype.exec),Me=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Se=/\\(\\)?/g,je=function($e){var lt=Ee($e,0,1),Re=Ee($e,-1);if(lt==="%"&&Re!=="%")throw new E("invalid intrinsic syntax, expected closing `%`");if(Re==="%"&&lt!=="%")throw new E("invalid intrinsic syntax, expected opening `%`");var We=[];return be($e,Me,function(rt,ot,at,Je){We[We.length]=at?be(Je,Se,"$1"):ot||rt}),We},Ze=function($e,lt){var Re=$e,We;if(De(Ce,Re)&&(We=Ce[Re],Re="%"+We[0]+"%"),De(he,Re)){var rt=he[Re];if(rt===fe&&(rt=pe(Re)),typeof rt=="undefined"&&!lt)throw new le("intrinsic "+$e+" exists, but is not available. Please file an issue!");return{alias:We,name:Re,value:rt}}throw new E("intrinsic "+$e+" does not exist!")};we.exports=function($e,lt){if(typeof $e!="string"||$e.length===0)throw new le("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof lt!="boolean")throw new le('"allowMissing" argument must be a boolean');if(Oe(/^%?[^%]*%?$/,$e)===null)throw new E("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Re=je($e),We=Re.length>0?Re[0]:"",rt=Ze("%"+We+"%",lt),ot=rt.name,at=rt.value,Je=!1,Qe=rt.alias;Qe&&(We=Qe[0],ve(Re,Ae([0,1],Qe)));for(var Ve=1,ct=!0;Ve<Re.length;Ve+=1){var tt=Re[Ve],ut=Ee(tt,0,1),st=Ee(tt,-1);if((ut==='"'||ut==="'"||ut==="`"||st==='"'||st==="'"||st==="`")&&ut!==st)throw new E("property names with quotes must have matching quotes");if((tt==="constructor"||!ct)&&(Je=!0),We+="."+tt,ot="%"+We+"%",De(he,ot))at=he[ot];else if(at!=null){if(!(tt in at)){if(!lt)throw new le("base intrinsic for "+$e+" exists, but the property is not available.");return}if(se&&Ve+1>=Re.length){var ze=se(at,tt);ct=!!ze,ct&&"get"in ze&&!("originalValue"in ze.get)?at=ze.get:at=at[tt]}else ct=De(at,tt),at=at[tt];ct&&!Je&&(he[ot]=at)}}return at}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,we,ge){"use strict";var ee=y("get-intrinsic"),E=ee("%Object.getOwnPropertyDescriptor%",!0);if(E)try{E([],"length")}catch(ie){E=null}we.exports=E},{"get-intrinsic":348}],350:[function(y,we,ge){"use strict";var ee={foo:{}},E=Object;we.exports=function(){return{__proto__:ee}.foo===ee.foo&&!({__proto__:null}instanceof E)}},{}],351:[function(y,we,ge){"use strict";var ee=typeof Symbol!="undefined"&&Symbol,E=y("./shams");we.exports=function(){return typeof ee!="function"||typeof Symbol!="function"||typeof ee("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:E()}},{"./shams":352}],352:[function(y,we,ge){"use strict";we.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var E={},ie=Symbol("test"),le=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(le)!=="[object Symbol]")return!1;var z=42;E[ie]=z;for(ie in E)return!1;if(typeof Object.keys=="function"&&Object.keys(E).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(E).length!==0)return!1;var se=Object.getOwnPropertySymbols(E);if(se.length!==1||se[0]!==ie||!Object.prototype.propertyIsEnumerable.call(E,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var x=Object.getOwnPropertyDescriptor(E,ie);if(x.value!==z||x.enumerable!==!0)return!1}return!0}},{}],353:[function(y,we,ge){"use strict";var ee=y("has-symbols/shams");we.exports=function(){return ee()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,we,ge){"use strict";var ee=y("function-bind");we.exports=ee.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,we,ge){var ee=y("http"),E=y("url"),ie=we.exports;for(var le in ee)ee.hasOwnProperty(le)&&(ie[le]=ee[le]);ie.request=function(se,x){return se=z(se),ee.request.call(this,se,x)},ie.get=function(se,x){return se=z(se),ee.get.call(this,se,x)};function z(se){if(typeof se=="string"&&(se=E.parse(se)),se.protocol||(se.protocol="https:"),se.protocol!=="https:")throw new Error('Protocol "'+se.protocol+'" not supported. Expected "https:"');return se}},{http:468,url:472}],356:[function(y,we,ge){"use strict";var ee=y("util"),E=y("ms");we.exports=function(ie){if(typeof ie=="number")return ie;var le=E(ie);if(le===void 0){var z=new Error(ee.format("humanize-ms(%j) result undefined",ie));console.warn(z.stack)}return le}},{ms:376,util:419}],357:[function(y,we,ge){ge.read=function(ee,E,ie,le,z){var se,x,re=z*8-le-1,te=(1<<re)-1,ae=te>>1,ue=-7,fe=ie?z-1:0,de=ie?-1:1,he=ee[E+fe];for(fe+=de,se=he&(1<<-ue)-1,he>>=-ue,ue+=re;ue>0;se=se*256+ee[E+fe],fe+=de,ue-=8);for(x=se&(1<<-ue)-1,se>>=-ue,ue+=le;ue>0;x=x*256+ee[E+fe],fe+=de,ue-=8);if(se===0)se=1-ae;else{if(se===te)return x?NaN:(he?-1:1)*(1/0);x=x+Math.pow(2,le),se=se-ae}return(he?-1:1)*x*Math.pow(2,se-le)},ge.write=function(ee,E,ie,le,z,se){var x,re,te,ae=se*8-z-1,ue=(1<<ae)-1,fe=ue>>1,de=z===23?Math.pow(2,-24)-Math.pow(2,-77):0,he=le?0:se-1,ce=le?1:-1,pe=E<0||E===0&&1/E<0?1:0;for(E=Math.abs(E),isNaN(E)||E===1/0?(re=isNaN(E)?1:0,x=ue):(x=Math.floor(Math.log(E)/Math.LN2),E*(te=Math.pow(2,-x))<1&&(x--,te*=2),x+fe>=1?E+=de/te:E+=de*Math.pow(2,1-fe),E*te>=2&&(x++,te/=2),x+fe>=ue?(re=0,x=ue):x+fe>=1?(re=(E*te-1)*Math.pow(2,z),x=x+fe):(re=E*Math.pow(2,fe-1)*Math.pow(2,z),x=0));z>=8;ee[ie+he]=re&255,he+=ce,re/=256,z-=8);for(x=x<<z|re,ae+=z;ae>0;ee[ie+he]=x&255,he+=ce,x/=256,ae-=8);ee[ie+he-ce]|=pe*128}},{}],358:[function(y,we,ge){"use strict";var ee=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],E,ie,le=-1,z=[],se=!1;function x(){!E||!ie||(E=!1,ie.length?z=ie.concat(z):le=-1,z.length&&re())}function re(){if(!E){se=!1,E=!0;for(var he=z.length,ce=setTimeout(x);he;){for(ie=z,z=[];ie&&++le<he;)ie[le].run();le=-1,he=z.length}ie=null,le=-1,E=!1,clearTimeout(ce)}}for(var te,ae=-1,ue=ee.length;++ae<ue;)if(ee[ae]&&ee[ae].test&&ee[ae].test()){te=ee[ae].install(re);break}function fe(he,ce){this.fun=he,this.array=ce}fe.prototype.run=function(){var he=this.fun,ce=this.array;switch(ce.length){case 0:return he();case 1:return he(ce[0]);case 2:return he(ce[0],ce[1]);case 3:return he(ce[0],ce[1],ce[2]);default:return he.apply(null,ce)}},we.exports=de;function de(he){var ce=new Array(arguments.length-1);if(arguments.length>1)for(var pe=1;pe<arguments.length;pe++)ce[pe-1]=arguments[pe];z.push(new fe(he,ce)),!se&&!E&&(se=!0,te())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,we,ge){(function(ee){(function(){"use strict";ge.test=function(){return ee.setImmediate?!1:typeof ee.MessageChannel!="undefined"},ge.install=function(E){var ie=new ee.MessageChannel;return ie.port1.onmessage=E,function(){ie.port2.postMessage(0)}}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,we,ge){(function(ee){(function(){"use strict";var E=ee.MutationObserver||ee.WebKitMutationObserver;ge.test=function(){return E},ge.install=function(ie){var le=0,z=new E(ie),se=ee.document.createTextNode("");return z.observe(se,{characterData:!0}),function(){se.data=le=++le%2}}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,we,ge){(function(ee){(function(){"use strict";ge.test=function(){return typeof ee.queueMicrotask=="function"},ge.install=function(E){return function(){ee.queueMicrotask(E)}}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(y,we,ge){(function(ee){(function(){"use strict";ge.test=function(){return"document"in ee&&"onreadystatechange"in ee.document.createElement("script")},ge.install=function(E){return function(){var ie=ee.document.createElement("script");return ie.onreadystatechange=function(){E(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},ee.document.documentElement.appendChild(ie),E}}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,we,ge){"use strict";ge.test=function(){return!0},ge.install=function(ee){return function(){setTimeout(ee,0)}}},{}],364:[function(y,we,ge){typeof Object.create=="function"?we.exports=function(E,ie){ie&&(E.super_=ie,E.prototype=Object.create(ie.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}))}:we.exports=function(E,ie){if(ie){E.super_=ie;var le=function(){};le.prototype=ie.prototype,E.prototype=new le,E.prototype.constructor=E}}},{}],365:[function(y,we,ge){"use strict";var ee=y("has-tostringtag/shams")(),E=y("call-bind/callBound"),ie=E("Object.prototype.toString"),le=function(re){return ee&&re&&typeof re=="object"&&Symbol.toStringTag in re?!1:ie(re)==="[object Arguments]"},z=function(re){return le(re)?!0:re!==null&&typeof re=="object"&&typeof re.length=="number"&&re.length>=0&&ie(re)!=="[object Array]"&&ie(re.callee)==="[object Function]"},se=function(){return le(arguments)}();le.isLegacyArguments=z,we.exports=se?le:z},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,we,ge){we.exports=function(ie){return ie!=null&&(ee(ie)||E(ie)||!!ie._isBuffer)};function ee(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function E(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&ee(ie.slice(0,0))}},{}],367:[function(y,we,ge){"use strict";var ee=Function.prototype.toString,E=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,le;if(typeof E=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw le}}),le={},E(function(){throw 42},null,ie)}catch(De){De!==le&&(E=null)}else E=null;var z=/^\s*class\b/,se=function(Ae){try{var ve=ee.call(Ae);return z.test(ve)}catch(be){return!1}},x=function(Ae){try{return se(Ae)?!1:(ee.call(Ae),!0)}catch(ve){return!1}},re=Object.prototype.toString,te="[object Object]",ae="[object Function]",ue="[object GeneratorFunction]",fe="[object HTMLAllCollection]",de="[object HTML document.all class]",he="[object HTMLCollection]",ce=typeof Symbol=="function"&&!!Symbol.toStringTag,pe=!(0 in[,]),Ce=function(){return!1};if(typeof document=="object"){var ke=document.all;re.call(ke)===re.call(document.all)&&(Ce=function(Ae){if((pe||!Ae)&&(typeof Ae=="undefined"||typeof Ae=="object"))try{var ve=re.call(Ae);return(ve===fe||ve===de||ve===he||ve===te)&&Ae("")==null}catch(be){}return!1})}we.exports=E?function(Ae){if(Ce(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;try{E(Ae,null,ie)}catch(ve){if(ve!==le)return!1}return!se(Ae)&&x(Ae)}:function(Ae){if(Ce(Ae))return!0;if(!Ae||typeof Ae!="function"&&typeof Ae!="object")return!1;if(ce)return x(Ae);if(se(Ae))return!1;var ve=re.call(Ae);return ve!==ae&&ve!==ue&&!/^\[object HTML/.test(ve)?!1:x(Ae)}},{}],368:[function(y,we,ge){"use strict";var ee=Object.prototype.toString,E=Function.prototype.toString,ie=/^\s*(?:function)?\*/,le=y("has-tostringtag/shams")(),z=Object.getPrototypeOf,se=function(){if(!le)return!1;try{return Function("return function*() {}")()}catch(re){}},x;we.exports=function(te){if(typeof te!="function")return!1;if(ie.test(E.call(te)))return!0;if(!le){var ae=ee.call(te);return ae==="[object GeneratorFunction]"}if(!z)return!1;if(typeof x=="undefined"){var ue=se();x=ue?z(ue):!1}return z(te)===x}},{"has-tostringtag/shams":353}],369:[function(y,we,ge){"use strict";var ee=y("which-typed-array");we.exports=function(ie){return!!ee(ie)}},{"which-typed-array":420}],370:[function(y,we,ge){var ee={}.toString;we.exports=Array.isArray||function(E){return ee.call(E)=="[object Array]"}},{}],371:[function(y,we,ge){(function(ee){(function(){(function(E,ie){typeof ge=="object"&&typeof we!="undefined"?we.exports=ie(E):typeof Ge=="function"&&Ge.amd?Ge(ie):ie(E)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ee!="undefined"?ee:this,function(E){"use strict";E=E||{};var ie=E.Base64,le="2.6.4",z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=function($e){for(var lt={},Re=0,We=$e.length;Re<We;Re++)lt[$e.charAt(Re)]=Re;return lt}(z),x=String.fromCharCode,re=function($e){if($e.length<2){var lt=$e.charCodeAt(0);return lt<128?$e:lt<2048?x(192|lt>>>6)+x(128|lt&63):x(224|lt>>>12&15)+x(128|lt>>>6&63)+x(128|lt&63)}else{var lt=65536+($e.charCodeAt(0)-55296)*1024+($e.charCodeAt(1)-56320);return x(240|lt>>>18&7)+x(128|lt>>>12&63)+x(128|lt>>>6&63)+x(128|lt&63)}},te=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function($e){return $e.replace(te,re)},ue=function($e){var lt=[0,2,1][$e.length%3],Re=$e.charCodeAt(0)<<16|($e.length>1?$e.charCodeAt(1):0)<<8|($e.length>2?$e.charCodeAt(2):0),We=[z.charAt(Re>>>18),z.charAt(Re>>>12&63),lt>=2?"=":z.charAt(Re>>>6&63),lt>=1?"=":z.charAt(Re&63)];return We.join("")},fe=E.btoa&&typeof E.btoa=="function"?function($e){return E.btoa($e)}:function($e){if($e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return $e.replace(/[\s\S]{1,3}/g,ue)},de=function($e){return fe(ae(String($e)))},he=function($e){return $e.replace(/[+\/]/g,function(lt){return lt=="+"?"-":"_"}).replace(/=/g,"")},ce=function($e,lt){return lt?he(de($e)):de($e)},pe=function($e){return ce($e,!0)},Ce;E.Uint8Array&&(Ce=function($e,lt){for(var Re="",We=0,rt=$e.length;We<rt;We+=3){var ot=$e[We],at=$e[We+1],Je=$e[We+2],Qe=ot<<16|at<<8|Je;Re+=z.charAt(Qe>>>18)+z.charAt(Qe>>>12&63)+(typeof at!="undefined"?z.charAt(Qe>>>6&63):"=")+(typeof Je!="undefined"?z.charAt(Qe&63):"=")}return lt?he(Re):Re});var ke=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,De=function($e){switch($e.length){case 4:var lt=(7&$e.charCodeAt(0))<<18|(63&$e.charCodeAt(1))<<12|(63&$e.charCodeAt(2))<<6|63&$e.charCodeAt(3),Re=lt-65536;return x((Re>>>10)+55296)+x((Re&1023)+56320);case 3:return x((15&$e.charCodeAt(0))<<12|(63&$e.charCodeAt(1))<<6|63&$e.charCodeAt(2));default:return x((31&$e.charCodeAt(0))<<6|63&$e.charCodeAt(1))}},Ae=function($e){return $e.replace(ke,De)},ve=function($e){var lt=$e.length,Re=lt%4,We=(lt>0?se[$e.charAt(0)]<<18:0)|(lt>1?se[$e.charAt(1)]<<12:0)|(lt>2?se[$e.charAt(2)]<<6:0)|(lt>3?se[$e.charAt(3)]:0),rt=[x(We>>>16),x(We>>>8&255),x(We&255)];return rt.length-=[0,0,2,1][Re],rt.join("")},be=E.atob&&typeof E.atob=="function"?function($e){return E.atob($e)}:function($e){return $e.replace(/\S{1,4}/g,ve)},Ee=function($e){return be(String($e).replace(/[^A-Za-z0-9\+\/]/g,""))},Oe=function($e){return Ae(be($e))},Me=function($e){return String($e).replace(/[-_]/g,function(lt){return lt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Se=function($e){return Oe(Me($e))},je;E.Uint8Array&&(je=function($e){return Uint8Array.from(Ee(Me($e)),function(lt){return lt.charCodeAt(0)})});var Ze=function(){var $e=E.Base64;return E.Base64=ie,$e};if(E.Base64={VERSION:le,atob:Ee,btoa:fe,fromBase64:Se,toBase64:ce,utob:ae,encode:ce,encodeURI:pe,btou:Ae,decode:Se,noConflict:Ze,fromUint8Array:Ce,toUint8Array:je},typeof Object.defineProperty=="function"){var Xe=function($e){return{value:$e,enumerable:!1,writable:!0,configurable:!0}};E.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Xe(function(){return Se(this)})),Object.defineProperty(String.prototype,"toBase64",Xe(function($e){return ce(this,$e)})),Object.defineProperty(String.prototype,"toBase64URI",Xe(function(){return ce(this,!0)}))}}return E.Meteor&&(Base64=E.Base64),typeof we!="undefined"&&we.exports?we.exports.Base64=E.Base64:typeof Ge=="function"&&Ge.amd&&Ge([],function(){return E.Base64}),{Base64:E.Base64}})}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(y,we,ge){"use strict";we.exports=E;var ee=Object.prototype.hasOwnProperty;function E(ie,le,z){if(!ie)throw new TypeError("argument dest is required");if(!le)throw new TypeError("argument src is required");return z===void 0&&(z=!0),Object.getOwnPropertyNames(le).forEach(function(x){if(!(!z&&ee.call(ie,x))){var re=Object.getOwnPropertyDescriptor(le,x);Object.defineProperty(ie,x,re)}}),ie}},{}],373:[function(y,we,ge){"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 ee(){this._types=Object.create(null),this._extensions=Object.create(null);for(var E=0;E<arguments.length;E++)this.define(arguments[E]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}ee.prototype.define=function(E,ie){for(var le in E){var z=E[le].map(function(te){return te.toLowerCase()});le=le.toLowerCase();for(var se=0;se<z.length;se++){var x=z[se];if(x[0]!=="*"){if(!ie&&x in this._types)throw new Error('Attempt to change mapping for "'+x+'" extension from "'+this._types[x]+'" to "'+le+'". Pass `force=true` to allow this, otherwise remove "'+x+'" from the list of extensions for "'+le+'".');this._types[x]=le}}if(ie||!this._extensions[le]){var re=z[0];this._extensions[le]=re[0]!=="*"?re:re.substr(1)}}},ee.prototype.getType=function(E){E=String(E);var ie=E.replace(/^.*[/\\]/,"").toLowerCase(),le=ie.replace(/^.*\./,"").toLowerCase(),z=ie.length<E.length,se=le.length<ie.length-1;return(se||!z)&&this._types[le]||null},ee.prototype.getExtension=function(E){return E=/^\s*([^;\s]*)/.test(E)&&RegExp.$1,E&&this._extensions[E.toLowerCase()]||null},we.exports=ee},{"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,we,ge){"use strict";var ee=y("./Mime");we.exports=new ee(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,we,ge){"use strict";we.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,we,ge){var ee=1e3,E=ee*60,ie=E*60,le=ie*24,z=le*7,se=le*365.25;we.exports=function(ue,fe){fe=fe||{};var de=typeof ue;if(de==="string"&&ue.length>0)return x(ue);if(de==="number"&&isFinite(ue))return fe.long?te(ue):re(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 fe=/^(-?(?:\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(fe){var de=parseFloat(fe[1]),he=(fe[2]||"ms").toLowerCase();switch(he){case"years":case"year":case"yrs":case"yr":case"y":return de*se;case"weeks":case"week":case"w":return de*z;case"days":case"day":case"d":return de*le;case"hours":case"hour":case"hrs":case"hr":case"h":return de*ie;case"minutes":case"minute":case"mins":case"min":case"m":return de*E;case"seconds":case"second":case"secs":case"sec":case"s":return de*ee;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return de;default:return}}}}function re(ue){var fe=Math.abs(ue);return fe>=le?Math.round(ue/le)+"d":fe>=ie?Math.round(ue/ie)+"h":fe>=E?Math.round(ue/E)+"m":fe>=ee?Math.round(ue/ee)+"s":ue+"ms"}function te(ue){var fe=Math.abs(ue);return fe>=le?ae(ue,fe,le,"day"):fe>=ie?ae(ue,fe,ie,"hour"):fe>=E?ae(ue,fe,E,"minute"):fe>=ee?ae(ue,fe,ee,"second"):ue+" ms"}function ae(ue,fe,de,he){var ce=fe>=de*1.5;return Math.round(ue/de)+" "+he+(ce?"s":"")}},{}],377:[function(y,we,ge){"use strict";var ee=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function le(se){if(se==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(se)}function z(){try{if(!Object.assign)return!1;var se=new String("abc");if(se[5]="de",Object.getOwnPropertyNames(se)[0]==="5")return!1;for(var x={},re=0;re<10;re++)x["_"+String.fromCharCode(re)]=re;var te=Object.getOwnPropertyNames(x).map(function(ue){return x[ue]});if(te.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}}we.exports=z()?Object.assign:function(se,x){for(var re,te=le(se),ae,ue=1;ue<arguments.length;ue++){re=Object(arguments[ue]);for(var fe in re)E.call(re,fe)&&(te[fe]=re[fe]);if(ee){ae=ee(re);for(var de=0;de<ae.length;de++)ie.call(re,ae[de])&&(te[ae[de]]=re[ae[de]])}}return te}},{}],378:[function(y,we,ge){(function(ee){(function(){"use strict";function E(se){if(typeof se!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(se))}function ie(se,x){for(var re="",te=0,ae=-1,ue=0,fe,de=0;de<=se.length;++de){if(de<se.length)fe=se.charCodeAt(de);else{if(fe===47)break;fe=47}if(fe===47){if(!(ae===de-1||ue===1))if(ae!==de-1&&ue===2){if(re.length<2||te!==2||re.charCodeAt(re.length-1)!==46||re.charCodeAt(re.length-2)!==46){if(re.length>2){var he=re.lastIndexOf("/");if(he!==re.length-1){he===-1?(re="",te=0):(re=re.slice(0,he),te=re.length-1-re.lastIndexOf("/")),ae=de,ue=0;continue}}else if(re.length===2||re.length===1){re="",te=0,ae=de,ue=0;continue}}x&&(re.length>0?re+="/..":re="..",te=2)}else re.length>0?re+="/"+se.slice(ae+1,de):re=se.slice(ae+1,de),te=de-ae-1;ae=de,ue=0}else fe===46&&ue!==-1?++ue:ue=-1}return re}function le(se,x){var re=x.dir||x.root,te=x.base||(x.name||"")+(x.ext||"");return re?re===x.root?re+te:re+se+te:te}var z={resolve:function(){for(var x="",re=!1,te,ae=arguments.length-1;ae>=-1&&!re;ae--){var ue;ae>=0?ue=arguments[ae]:(te===void 0&&(te=ee.cwd()),ue=te),E(ue),ue.length!==0&&(x=ue+"/"+x,re=ue.charCodeAt(0)===47)}return x=ie(x,!re),re?x.length>0?"/"+x:"/":x.length>0?x:"."},normalize:function(x){if(E(x),x.length===0)return".";var re=x.charCodeAt(0)===47,te=x.charCodeAt(x.length-1)===47;return x=ie(x,!re),x.length===0&&!re&&(x="."),x.length>0&&te&&(x+="/"),re?"/"+x:x},isAbsolute:function(x){return E(x),x.length>0&&x.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var x,re=0;re<arguments.length;++re){var te=arguments[re];E(te),te.length>0&&(x===void 0?x=te:x+="/"+te)}return x===void 0?".":z.normalize(x)},relative:function(x,re){if(E(x),E(re),x===re||(x=z.resolve(x),re=z.resolve(re),x===re))return"";for(var te=1;te<x.length&&x.charCodeAt(te)===47;++te);for(var ae=x.length,ue=ae-te,fe=1;fe<re.length&&re.charCodeAt(fe)===47;++fe);for(var de=re.length,he=de-fe,ce=ue<he?ue:he,pe=-1,Ce=0;Ce<=ce;++Ce){if(Ce===ce){if(he>ce){if(re.charCodeAt(fe+Ce)===47)return re.slice(fe+Ce+1);if(Ce===0)return re.slice(fe+Ce)}else ue>ce&&(x.charCodeAt(te+Ce)===47?pe=Ce:Ce===0&&(pe=0));break}var ke=x.charCodeAt(te+Ce),De=re.charCodeAt(fe+Ce);if(ke!==De)break;ke===47&&(pe=Ce)}var Ae="";for(Ce=te+pe+1;Ce<=ae;++Ce)(Ce===ae||x.charCodeAt(Ce)===47)&&(Ae.length===0?Ae+="..":Ae+="/..");return Ae.length>0?Ae+re.slice(fe+pe):(fe+=pe,re.charCodeAt(fe)===47&&++fe,re.slice(fe))},_makeLong:function(x){return x},dirname:function(x){if(E(x),x.length===0)return".";for(var re=x.charCodeAt(0),te=re===47,ae=-1,ue=!0,fe=x.length-1;fe>=1;--fe)if(re=x.charCodeAt(fe),re===47){if(!ue){ae=fe;break}}else ue=!1;return ae===-1?te?"/":".":te&&ae===1?"//":x.slice(0,ae)},basename:function(x,re){if(re!==void 0&&typeof re!="string")throw new TypeError('"ext" argument must be a string');E(x);var te=0,ae=-1,ue=!0,fe;if(re!==void 0&&re.length>0&&re.length<=x.length){if(re.length===x.length&&re===x)return"";var de=re.length-1,he=-1;for(fe=x.length-1;fe>=0;--fe){var ce=x.charCodeAt(fe);if(ce===47){if(!ue){te=fe+1;break}}else he===-1&&(ue=!1,he=fe+1),de>=0&&(ce===re.charCodeAt(de)?--de===-1&&(ae=fe):(de=-1,ae=he))}return te===ae?ae=he:ae===-1&&(ae=x.length),x.slice(te,ae)}else{for(fe=x.length-1;fe>=0;--fe)if(x.charCodeAt(fe)===47){if(!ue){te=fe+1;break}}else ae===-1&&(ue=!1,ae=fe+1);return ae===-1?"":x.slice(te,ae)}},extname:function(x){E(x);for(var re=-1,te=0,ae=-1,ue=!0,fe=0,de=x.length-1;de>=0;--de){var he=x.charCodeAt(de);if(he===47){if(!ue){te=de+1;break}continue}ae===-1&&(ue=!1,ae=de+1),he===46?re===-1?re=de:fe!==1&&(fe=1):re!==-1&&(fe=-1)}return re===-1||ae===-1||fe===0||fe===1&&re===ae-1&&re===te+1?"":x.slice(re,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 le("/",x)},parse:function(x){E(x);var re={root:"",dir:"",base:"",ext:"",name:""};if(x.length===0)return re;var te=x.charCodeAt(0),ae=te===47,ue;ae?(re.root="/",ue=1):ue=0;for(var fe=-1,de=0,he=-1,ce=!0,pe=x.length-1,Ce=0;pe>=ue;--pe){if(te=x.charCodeAt(pe),te===47){if(!ce){de=pe+1;break}continue}he===-1&&(ce=!1,he=pe+1),te===46?fe===-1?fe=pe:Ce!==1&&(Ce=1):fe!==-1&&(Ce=-1)}return fe===-1||he===-1||Ce===0||Ce===1&&fe===he-1&&fe===de+1?he!==-1&&(de===0&&ae?re.base=re.name=x.slice(1,he):re.base=re.name=x.slice(de,he)):(de===0&&ae?(re.name=x.slice(1,fe),re.base=x.slice(1,he)):(re.name=x.slice(de,fe),re.base=x.slice(de,he)),re.ext=x.slice(fe,he)),de>0?re.dir=x.slice(0,de-1):ae&&(re.dir="/"),re},sep:"/",delimiter:":",win32:null,posix:null};z.posix=z,we.exports=z}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,we,ge){(function(ee){(function(){(function(){"use strict";var E={function:!0,object:!0},ie=E[typeof window]&&window||this,le=ie,z=E[typeof ge]&&ge,se=E[typeof we]&&we&&!we.nodeType&&we,x=z&&se&&typeof ee=="object"&&ee;x&&(x.global===x||x.window===x||x.self===x)&&(ie=x);var re=Math.pow(2,53)-1,te=/\bOpera/,ae=this,ue=Object.prototype,fe=ue.hasOwnProperty,de=ue.toString;function he(Se){return Se=String(Se),Se.charAt(0).toUpperCase()+Se.slice(1)}function ce(Se,je,Ze){var Xe={"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 je&&Ze&&/^Win/i.test(Se)&&!/^Windows Phone /i.test(Se)&&(Xe=Xe[/[\d.]+$/.exec(Se)])&&(Se="Windows "+Xe),Se=String(Se),je&&Ze&&(Se=Se.replace(RegExp(je,"i"),Ze)),Se=Ce(Se.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]),Se}function pe(Se,je){var Ze=-1,Xe=Se?Se.length:0;if(typeof Xe=="number"&&Xe>-1&&Xe<=re)for(;++Ze<Xe;)je(Se[Ze],Ze,Se);else ke(Se,je)}function Ce(Se){return Se=Ee(Se),/^(?:webOS|i(?:OS|P))/.test(Se)?Se:he(Se)}function ke(Se,je){for(var Ze in Se)fe.call(Se,Ze)&&je(Se[Ze],Ze,Se)}function De(Se){return Se==null?he(Se):de.call(Se).slice(8,-1)}function Ae(Se,je){var Ze=Se!=null?typeof Se[je]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ze)&&(Ze=="object"?!!Se[je]:!0)}function ve(Se){return String(Se).replace(/([ -])(?!$)/g,"$1?")}function be(Se,je){var Ze=null;return pe(Se,function(Xe,$e){Ze=je(Ze,Xe,$e,Se)}),Ze}function Ee(Se){return String(Se).replace(/^ +| +$/g,"")}function Oe(Se){var je=ie,Ze=Se&&typeof Se=="object"&&De(Se)!="String";Ze&&(je=Se,Se=null);var Xe=je.navigator||{},$e=Xe.userAgent||"";Se||(Se=$e);var lt=Ze||ae==le,Re=Ze?!!Xe.likeChrome:/\bChrome\b/.test(Se)&&!/internal|\n/i.test(de.toString()),We="Object",rt=Ze?We:"ScriptBridgingProxyObject",ot=Ze?We:"Environment",at=Ze&&je.java?"JavaPackage":De(je.java),Je=Ze?We:"RuntimeObject",Qe=/\bJava/.test(at)&&je.java,Ve=Qe&&De(je.environment)==ot,ct=Qe?"a":"\u03B1",tt=Qe?"b":"\u03B2",ut=je.document||{},st=je.operamini||je.opera,ze=te.test(ze=Ze&&st?st["[[Class]]"]:De(st))?ze:st=null,Be,Ke=Se,Ie=[],Ye=null,ft=Se==$e,mt=ft&&st&&typeof st.version=="function"&&st.version(),nt,_e=xe([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Pe=Le(["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"]),He=Ne([{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"]),it=ye({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}}),Te=et(["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 xe(gt){return be(gt,function(ht,xt){return ht||RegExp("\\b"+(xt.pattern||ve(xt))+"\\b","i").exec(Se)&&(xt.label||xt)})}function ye(gt){return be(gt,function(ht,xt,St){return ht||(xt[He]||xt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(He)]||RegExp("\\b"+ve(St)+"(?:\\b|\\w*\\d)","i").exec(Se))&&St})}function Le(gt){return be(gt,function(ht,xt){return ht||RegExp("\\b"+(xt.pattern||ve(xt))+"\\b","i").exec(Se)&&(xt.label||xt)})}function et(gt){return be(gt,function(ht,xt){var St=xt.pattern||ve(xt);return!ht&&(ht=RegExp("\\b"+St+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Se))&&(ht=ce(ht,St,xt.label||xt)),ht})}function Ne(gt){return be(gt,function(ht,xt){var St=xt.pattern||ve(xt);return!ht&&(ht=RegExp("\\b"+St+" *\\d+[.\\w_]*","i").exec(Se)||RegExp("\\b"+St+" *\\w+-[\\w]*","i").exec(Se)||RegExp("\\b"+St+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Se))&&((ht=String(xt.label&&!RegExp(St,"i").test(xt.label)?xt.label:ht).split("/"))[1]&&!/[\d.]+/.test(ht[0])&&(ht[0]+=" "+ht[1]),xt=xt.label||xt,ht=Ce(ht[0].replace(RegExp(St,"i"),xt).replace(RegExp("; *(?:"+xt+"[_-])?","i")," ").replace(RegExp("("+xt+")[-_.]?(\\w)","i"),"$1 $2"))),ht})}function yt(gt){return be(gt,function(ht,xt){return ht||(RegExp(xt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Se)||0)[1]||null})}function wt(){return this.description||""}if(_e&&(_e=[_e]),/\bAndroid\b/.test(Te)&&!He&&(Be=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Se))&&(He=Ee(Be[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),it&&!He?He=Ne([it]):it&&He&&(He=He.replace(RegExp("^("+ve(it)+")[-_.\\s]","i"),it+" ").replace(RegExp("^("+ve(it)+")[-_.]?(\\w)","i"),it+" $2")),(Be=/\bGoogle TV\b/.exec(He))&&(He=Be[0]),/\bSimulator\b/i.test(Se)&&(He=(He?He+" ":"")+"Simulator"),Pe=="Opera Mini"&&/\bOPiOS\b/.test(Se)&&Ie.push("running in Turbo/Uncompressed mode"),Pe=="IE"&&/\blike iPhone OS\b/.test(Se)?(Be=Oe(Se.replace(/like iPhone OS/,"")),it=Be.manufacturer,He=Be.product):/^iP/.test(He)?(Pe||(Pe="Safari"),Te="iOS"+((Be=/ OS ([\d_]+)/i.exec(Se))?" "+Be[1].replace(/_/g,"."):"")):Pe=="Konqueror"&&/^Linux\b/i.test(Te)?Te="Kubuntu":it&&it!="Google"&&(/Chrome/.test(Pe)&&!/\bMobile Safari\b/i.test(Se)||/\bVita\b/.test(He))||/\bAndroid\b/.test(Te)&&/^Chrome/.test(Pe)&&/\bVersion\//i.test(Se)?(Pe="Android Browser",Te=/\bAndroid\b/.test(Te)?Te:"Android"):Pe=="Silk"?(/\bMobi/i.test(Se)||(Te="Android",Ie.unshift("desktop mode")),/Accelerated *= *true/i.test(Se)&&Ie.unshift("accelerated")):Pe=="UC Browser"&&/\bUCWEB\b/.test(Se)?Ie.push("speed mode"):Pe=="PaleMoon"&&(Be=/\bFirefox\/([\d.]+)\b/.exec(Se))?Ie.push("identifying as Firefox "+Be[1]):Pe=="Firefox"&&(Be=/\b(Mobile|Tablet|TV)\b/i.exec(Se))?(Te||(Te="Firefox OS"),He||(He=Be[1])):!Pe||(Be=!/\bMinefield\b/i.test(Se)&&/\b(?:Firefox|Safari)\b/.exec(Pe))?(Pe&&!He&&/[\/,]|^[^(]+?\)/.test(Se.slice(Se.indexOf(Be+"/")+8))&&(Pe=null),(Be=He||it||Te)&&(He||it||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Te))&&(Pe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Te)?Te:Be)+" Browser")):Pe=="Electron"&&(Be=(/\bChrome\/([\d.]+)\b/.exec(Se)||0)[1])&&Ie.push("Chromium "+Be),mt||(mt=yt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",ve(Pe),"(?:Firefox|Minefield|NetFront)"])),(Be=_e=="iCab"&&parseFloat(mt)>3&&"WebKit"||/\bOpera\b/.test(Pe)&&(/\bOPR\b/.test(Se)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Se)&&!/^(?:Trident|EdgeHTML)$/.test(_e)&&"WebKit"||!_e&&/\bMSIE\b/i.test(Se)&&(Te=="Mac OS"?"Tasman":"Trident")||_e=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Pe)&&"NetFront")&&(_e=[Be]),Pe=="IE"&&(Be=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Se)||0)[1])?(Pe+=" Mobile",Te="Windows Phone "+(/\+$/.test(Be)?Be:Be+".x"),Ie.unshift("desktop mode")):/\bWPDesktop\b/i.test(Se)?(Pe="IE Mobile",Te="Windows Phone 8.x",Ie.unshift("desktop mode"),mt||(mt=(/\brv:([\d.]+)/.exec(Se)||0)[1])):Pe!="IE"&&_e=="Trident"&&(Be=/\brv:([\d.]+)/.exec(Se))&&(Pe&&Ie.push("identifying as "+Pe+(mt?" "+mt:"")),Pe="IE",mt=Be[1]),ft){if(Ae(je,"global"))if(Qe&&(Be=Qe.lang.System,Ke=Be.getProperty("os.arch"),Te=Te||Be.getProperty("os.name")+" "+Be.getProperty("os.version")),Ve){try{mt=je.require("ringo/engine").version.join("."),Pe="RingoJS"}catch(gt){(Be=je.system)&&Be.global.system==je.system&&(Pe="Narwhal",Te||(Te=Be[0].os||null))}Pe||(Pe="Rhino")}else typeof je.process=="object"&&!je.process.browser&&(Be=je.process)&&(typeof Be.versions=="object"&&(typeof Be.versions.electron=="string"?(Ie.push("Node "+Be.versions.node),Pe="Electron",mt=Be.versions.electron):typeof Be.versions.nw=="string"&&(Ie.push("Chromium "+mt,"Node "+Be.versions.node),Pe="NW.js",mt=Be.versions.nw)),Pe||(Pe="Node.js",Ke=Be.arch,Te=Be.platform,mt=/[\d.]+/.exec(Be.version),mt=mt?mt[0]:null));else De(Be=je.runtime)==rt?(Pe="Adobe AIR",Te=Be.flash.system.Capabilities.os):De(Be=je.phantom)==Je?(Pe="PhantomJS",mt=(Be=Be.version||null)&&Be.major+"."+Be.minor+"."+Be.patch):typeof ut.documentMode=="number"&&(Be=/\bTrident\/(\d+)/i.exec(Se))?(mt=[mt,ut.documentMode],(Be=+Be[1]+4)!=mt[1]&&(Ie.push("IE "+mt[1]+" mode"),_e&&(_e[1]=""),mt[1]=Be),mt=Pe=="IE"?String(mt[1].toFixed(1)):mt[0]):typeof ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Pe)&&(Ie.push("masking as "+Pe+" "+mt),Pe="IE",mt="11.0",_e=["Trident"],Te="Windows");Te=Te&&Ce(Te)}if(mt&&(Be=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(mt)||/(?:alpha|beta)(?: ?\d)?/i.exec(Se+";"+(ft&&Xe.appMinorVersion))||/\bMinefield\b/i.test(Se)&&"a")&&(Ye=/b/i.test(Be)?"beta":"alpha",mt=mt.replace(RegExp(Be+"\\+?$"),"")+(Ye=="beta"?tt:ct)+(/\d+\+?/.exec(Be)||"")),Pe=="Fennec"||Pe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Te))Pe="Firefox Mobile";else if(Pe=="Maxthon"&&mt)mt=mt.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(He))He=="Xbox 360"&&(Te=null),He=="Xbox 360"&&/\bIEMobile\b/.test(Se)&&Ie.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Pe)||Pe&&!He&&!/Browser|Mobi/.test(Pe))&&(Te=="Windows CE"||/Mobi/i.test(Se)))Pe+=" Mobile";else if(Pe=="IE"&&ft)try{je.external===null&&Ie.unshift("platform preview")}catch(gt){Ie.unshift("embedded")}else(/\bBlackBerry\b/.test(He)||/\bBB10\b/.test(Se))&&(Be=(RegExp(He.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Se)||0)[1]||mt)?(Be=[Be,/BB10/.test(Se)],Te=(Be[1]?(He=null,it="BlackBerry"):"Device Software")+" "+Be[0],mt=null):this!=ke&&He!="Wii"&&(ft&&st||/Opera/.test(Pe)&&/\b(?:MSIE|Firefox)\b/i.test(Se)||Pe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Te)||Pe=="IE"&&(Te&&!/^Win/.test(Te)&&mt>5.5||/\bWindows XP\b/.test(Te)&&mt>8||mt==8&&!/\bTrident\b/.test(Se)))&&!te.test(Be=Oe.call(ke,Se.replace(te,"")+";"))&&Be.name&&(Be="ing as "+Be.name+((Be=Be.version)?" "+Be:""),te.test(Pe)?(/\bIE\b/.test(Be)&&Te=="Mac OS"&&(Te=null),Be="identify"+Be):(Be="mask"+Be,ze?Pe=Ce(ze.replace(/([a-z])([A-Z])/g,"$1 $2")):Pe="Opera",/\bIE\b/.test(Be)&&(Te=null),ft||(mt=null)),_e=["Presto"],Ie.push(Be));(Be=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Se)||0)[1])&&(Be=[parseFloat(Be.replace(/\.(\d)$/,".0$1")),Be],Pe=="Safari"&&Be[1].slice(-1)=="+"?(Pe="WebKit Nightly",Ye="alpha",mt=Be[1].slice(0,-1)):(mt==Be[1]||mt==(Be[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Se)||0)[1]))&&(mt=null),Be[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Se)||0)[1],Be[0]==537.36&&Be[2]==537.36&&parseFloat(Be[1])>=28&&_e=="WebKit"&&(_e=["Blink"]),!ft||!Re&&!Be[1]?(_e&&(_e[1]="like Safari"),Be=(Be=Be[0],Be<400?1:Be<500?2:Be<526?3:Be<533?4:Be<534?"4+":Be<535?5:Be<537?6:Be<538?7:Be<601?8:Be<602?9:Be<604?10:Be<606?11:Be<608?12:"12")):(_e&&(_e[1]="like Chrome"),Be=Be[1]||(Be=Be[0],Be<530?1:Be<532?2:Be<532.05?3:Be<533?4:Be<534.03?5:Be<534.07?6:Be<534.1?7:Be<534.13?8:Be<534.16?9:Be<534.24?10:Be<534.3?11:Be<535.01?12:Be<535.02?"13+":Be<535.07?15:Be<535.11?16:Be<535.19?17:Be<536.05?18:Be<536.1?19:Be<537.01?20:Be<537.11?"21+":Be<537.13?23:Be<537.18?24:Be<537.24?25:Be<537.36?26:_e!="Blink"?"27":"28")),_e&&(_e[1]+=" "+(Be+=typeof Be=="number"?".x":/[.+]/.test(Be)?"":"+")),Pe=="Safari"&&(!mt||parseInt(mt)>45)?mt=Be:Pe=="Chrome"&&/\bHeadlessChrome/i.test(Se)&&Ie.unshift("headless")),Pe=="Opera"&&(Be=/\bzbov|zvav$/.exec(Te))?(Pe+=" ",Ie.unshift("desktop mode"),Be=="zvav"?(Pe+="Mini",mt=null):Pe+="Mobile",Te=Te.replace(RegExp(" *"+Be+"$"),"")):Pe=="Safari"&&/\bChrome\b/.exec(_e&&_e[1])?(Ie.unshift("desktop mode"),Pe="Chrome Mobile",mt=null,/\bOS X\b/.test(Te)?(it="Apple",Te="iOS 4.3+"):Te=null):/\bSRWare Iron\b/.test(Pe)&&!mt&&(mt=yt("Chrome")),mt&&mt.indexOf(Be=/[\d.]+$/.exec(Te))==0&&Se.indexOf("/"+Be+"-")>-1&&(Te=Ee(Te.replace(Be,""))),Te&&Te.indexOf(Pe)!=-1&&!RegExp(Pe+" OS").test(Te)&&(Te=Te.replace(RegExp(" *"+ve(Pe)+" *"),"")),_e&&!/\b(?:Avant|Nook)\b/.test(Pe)&&(/Browser|Lunascape|Maxthon/.test(Pe)||Pe!="Safari"&&/^iOS/.test(Te)&&/\bSafari\b/.test(_e[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Pe)&&_e[1])&&(Be=_e[_e.length-1])&&Ie.push(Be),Ie.length&&(Ie=["("+Ie.join("; ")+")"]),it&&He&&He.indexOf(it)<0&&Ie.push("on "+it),He&&Ie.push((/^on /.test(Ie[Ie.length-1])?"":"on ")+He),Te&&(Be=/ ([\d.+]+)$/.exec(Te),nt=Be&&Te.charAt(Te.length-Be[0].length-1)=="/",Te={architecture:32,family:Be&&!nt?Te.replace(Be[0],""):Te,version:Be?Be[1]:null,toString:function(){var gt=this.version;return this.family+(gt&&!nt?" "+gt:"")+(this.architecture==64?" 64-bit":"")}}),(Be=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ke))&&!/\bi686\b/i.test(Ke)?(Te&&(Te.architecture=64,Te.family=Te.family.replace(RegExp(" *"+Be),"")),Pe&&(/\bWOW64\b/i.test(Se)||ft&&/\w(?:86|32)$/.test(Xe.cpuClass||Xe.platform)&&!/\bWin64; x64\b/i.test(Se))&&Ie.unshift("32-bit")):Te&&/^OS X/.test(Te.family)&&Pe=="Chrome"&&parseFloat(mt)>=39&&(Te.architecture=64),Se||(Se=null);var vt={};return vt.description=Se,vt.layout=_e&&_e[0],vt.manufacturer=it,vt.name=Pe,vt.prerelease=Ye,vt.product=He,vt.ua=Se,vt.version=Pe&&mt,vt.os=Te||{architecture:null,family:null,version:null,toString:function(){return"null"}},vt.parse=Oe,vt.toString=wt,vt.version&&Ie.unshift(mt),vt.name&&Ie.unshift(Pe),Te&&Pe&&!(Te==String(Te).split(" ")[0]&&(Te==Pe.split(" ")[0]||He))&&Ie.push(He?"("+Te+")":"on "+Te),Ie.length&&(vt.description=Ie.join(" ")),vt}var Me=Oe();typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd?(ie.platform=Me,Ge(function(){return Me})):z&&se?ke(Me,function(Se,je){z[je]=Se}):ie.platform=Me}).call(this)}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,we,ge){(function(ee){(function(){"use strict";typeof ee=="undefined"||!ee.version||ee.version.indexOf("v0.")===0||ee.version.indexOf("v1.")===0&&ee.version.indexOf("v1.8.")!==0?we.exports={nextTick:E}:we.exports=ee;function E(ie,le,z,se){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var x=arguments.length,re,te;switch(x){case 0:case 1:return ee.nextTick(ie);case 2:return ee.nextTick(function(){ie.call(null,le)});case 3:return ee.nextTick(function(){ie.call(null,le,z)});case 4:return ee.nextTick(function(){ie.call(null,le,z,se)});default:for(re=new Array(x-1),te=0;te<re.length;)re[te++]=arguments[te];return ee.nextTick(function(){ie.apply(null,re)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,we,ge){var ee=we.exports={},E,ie;function le(){throw new Error("setTimeout has not been defined")}function z(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?E=setTimeout:E=le}catch(pe){E=le}try{typeof clearTimeout=="function"?ie=clearTimeout:ie=z}catch(pe){ie=z}})();function se(pe){if(E===setTimeout)return setTimeout(pe,0);if((E===le||!E)&&setTimeout)return E=setTimeout,setTimeout(pe,0);try{return E(pe,0)}catch(Ce){try{return E.call(null,pe,0)}catch(ke){return E.call(this,pe,0)}}}function x(pe){if(ie===clearTimeout)return clearTimeout(pe);if((ie===z||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(pe);try{return ie(pe)}catch(Ce){try{return ie.call(null,pe)}catch(ke){return ie.call(this,pe)}}}var re=[],te=!1,ae,ue=-1;function fe(){!te||!ae||(te=!1,ae.length?re=ae.concat(re):ue=-1,re.length&&de())}function de(){if(!te){var pe=se(fe);te=!0;for(var Ce=re.length;Ce;){for(ae=re,re=[];++ue<Ce;)ae&&ae[ue].run();ue=-1,Ce=re.length}ae=null,te=!1,x(pe)}}ee.nextTick=function(pe){var Ce=new Array(arguments.length-1);if(arguments.length>1)for(var ke=1;ke<arguments.length;ke++)Ce[ke-1]=arguments[ke];re.push(new he(pe,Ce)),re.length===1&&!te&&se(de)};function he(pe,Ce){this.fun=pe,this.array=Ce}he.prototype.run=function(){this.fun.apply(null,this.array)},ee.title="browser",ee.browser=!0,ee.env={},ee.argv=[],ee.version="",ee.versions={};function ce(){}ee.on=ce,ee.addListener=ce,ee.once=ce,ee.off=ce,ee.removeListener=ce,ee.removeAllListeners=ce,ee.emit=ce,ee.prependListener=ce,ee.prependOnceListener=ce,ee.listeners=function(pe){return[]},ee.binding=function(pe){throw new Error("process.binding is not supported")},ee.cwd=function(){return"/"},ee.chdir=function(pe){throw new Error("process.chdir is not supported")},ee.umask=function(){return 0}},{}],382:[function(y,we,ge){(function(ee){(function(){(function(E){var ie=typeof ge=="object"&&ge&&!ge.nodeType&&ge,le=typeof we=="object"&&we&&!we.nodeType&&we,z=typeof ee=="object"&&ee;(z.global===z||z.window===z||z.self===z)&&(E=z);var se,x=2147483647,re=36,te=1,ae=26,ue=38,fe=700,de=72,he=128,ce="-",pe=/^xn--/,Ce=/[^\x20-\x7E]/,ke=/[\x2E\u3002\uFF0E\uFF61]/g,De={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ae=re-te,ve=Math.floor,be=String.fromCharCode,Ee;function Oe(at){throw new RangeError(De[at])}function Me(at,Je){for(var Qe=at.length,Ve=[];Qe--;)Ve[Qe]=Je(at[Qe]);return Ve}function Se(at,Je){var Qe=at.split("@"),Ve="";Qe.length>1&&(Ve=Qe[0]+"@",at=Qe[1]),at=at.replace(ke,".");var ct=at.split("."),tt=Me(ct,Je).join(".");return Ve+tt}function je(at){for(var Je=[],Qe=0,Ve=at.length,ct,tt;Qe<Ve;)ct=at.charCodeAt(Qe++),ct>=55296&&ct<=56319&&Qe<Ve?(tt=at.charCodeAt(Qe++),(tt&64512)==56320?Je.push(((ct&1023)<<10)+(tt&1023)+65536):(Je.push(ct),Qe--)):Je.push(ct);return Je}function Ze(at){return Me(at,function(Je){var Qe="";return Je>65535&&(Je-=65536,Qe+=be(Je>>>10&1023|55296),Je=56320|Je&1023),Qe+=be(Je),Qe}).join("")}function Xe(at){return at-48<10?at-22:at-65<26?at-65:at-97<26?at-97:re}function $e(at,Je){return at+22+75*(at<26)-((Je!=0)<<5)}function lt(at,Je,Qe){var Ve=0;for(at=Qe?ve(at/fe):at>>1,at+=ve(at/Je);at>Ae*ae>>1;Ve+=re)at=ve(at/Ae);return ve(Ve+(Ae+1)*at/(at+ue))}function Re(at){var Je=[],Qe=at.length,Ve,ct=0,tt=he,ut=de,st,ze,Be,Ke,Ie,Ye,ft,mt,nt;for(st=at.lastIndexOf(ce),st<0&&(st=0),ze=0;ze<st;++ze)at.charCodeAt(ze)>=128&&Oe("not-basic"),Je.push(at.charCodeAt(ze));for(Be=st>0?st+1:0;Be<Qe;){for(Ke=ct,Ie=1,Ye=re;Be>=Qe&&Oe("invalid-input"),ft=Xe(at.charCodeAt(Be++)),(ft>=re||ft>ve((x-ct)/Ie))&&Oe("overflow"),ct+=ft*Ie,mt=Ye<=ut?te:Ye>=ut+ae?ae:Ye-ut,!(ft<mt);Ye+=re)nt=re-mt,Ie>ve(x/nt)&&Oe("overflow"),Ie*=nt;Ve=Je.length+1,ut=lt(ct-Ke,Ve,Ke==0),ve(ct/Ve)>x-tt&&Oe("overflow"),tt+=ve(ct/Ve),ct%=Ve,Je.splice(ct++,0,tt)}return Ze(Je)}function We(at){var Je,Qe,Ve,ct,tt,ut,st,ze,Be,Ke,Ie,Ye=[],ft,mt,nt,_e;for(at=je(at),ft=at.length,Je=he,Qe=0,tt=de,ut=0;ut<ft;++ut)Ie=at[ut],Ie<128&&Ye.push(be(Ie));for(Ve=ct=Ye.length,ct&&Ye.push(ce);Ve<ft;){for(st=x,ut=0;ut<ft;++ut)Ie=at[ut],Ie>=Je&&Ie<st&&(st=Ie);for(mt=Ve+1,st-Je>ve((x-Qe)/mt)&&Oe("overflow"),Qe+=(st-Je)*mt,Je=st,ut=0;ut<ft;++ut)if(Ie=at[ut],Ie<Je&&++Qe>x&&Oe("overflow"),Ie==Je){for(ze=Qe,Be=re;Ke=Be<=tt?te:Be>=tt+ae?ae:Be-tt,!(ze<Ke);Be+=re)_e=ze-Ke,nt=re-Ke,Ye.push(be($e(Ke+_e%nt,0))),ze=ve(_e/nt);Ye.push(be($e(ze,0))),tt=lt(Qe,mt,Ve==ct),Qe=0,++Ve}++Qe,++Je}return Ye.join("")}function rt(at){return Se(at,function(Je){return pe.test(Je)?Re(Je.slice(4).toLowerCase()):Je})}function ot(at){return Se(at,function(Je){return Ce.test(Je)?"xn--"+We(Je):Je})}if(se={version:"1.4.1",ucs2:{decode:je,encode:Ze},decode:Re,encode:We,toASCII:ot,toUnicode:rt},typeof Ge=="function"&&typeof Ge.amd=="object"&&Ge.amd)Ge("punycode",function(){return se});else if(ie&&le)if(we.exports==ie)le.exports=se;else for(Ee in se)se.hasOwnProperty(Ee)&&(ie[Ee]=se[Ee]);else E.punycode=se})(this)}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,we,ge){"use strict";function ee(ie,le){return Object.prototype.hasOwnProperty.call(ie,le)}we.exports=function(ie,le,z,se){le=le||"&",z=z||"=";var x={};if(typeof ie!="string"||ie.length===0)return x;var re=/\+/g;ie=ie.split(le);var te=1e3;se&&typeof se.maxKeys=="number"&&(te=se.maxKeys);var ae=ie.length;te>0&&ae>te&&(ae=te);for(var ue=0;ue<ae;++ue){var fe=ie[ue].replace(re,"%20"),de=fe.indexOf(z),he,ce,pe,Ce;de>=0?(he=fe.substr(0,de),ce=fe.substr(de+1)):(he=fe,ce=""),pe=decodeURIComponent(he),Ce=decodeURIComponent(ce),ee(x,pe)?E(x[pe])?x[pe].push(Ce):x[pe]=[x[pe],Ce]:x[pe]=Ce}return x};var E=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(y,we,ge){"use strict";var ee=function(z){switch(typeof z){case"string":return z;case"boolean":return z?"true":"false";case"number":return isFinite(z)?z:"";default:return""}};we.exports=function(z,se,x,re){return se=se||"&",x=x||"=",z===null&&(z=void 0),typeof z=="object"?ie(le(z),function(te){var ae=encodeURIComponent(ee(te))+x;return E(z[te])?ie(z[te],function(ue){return ae+encodeURIComponent(ee(ue))}).join(se):ae+encodeURIComponent(ee(z[te]))}).join(se):re?encodeURIComponent(ee(re))+x+encodeURIComponent(ee(z)):""};var E=Array.isArray||function(z){return Object.prototype.toString.call(z)==="[object Array]"};function ie(z,se){if(z.map)return z.map(se);for(var x=[],re=0;re<z.length;re++)x.push(se(z[re],re));return x}var le=Object.keys||function(z){var se=[];for(var x in z)Object.prototype.hasOwnProperty.call(z,x)&&se.push(x);return se}},{}],385:[function(y,we,ge){"use strict";ge.decode=ge.parse=y("./decode"),ge.encode=ge.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,we,ge){"use strict";var ee=y("process-nextick-args"),E=Object.keys||function(fe){var de=[];for(var he in fe)de.push(he);return de};we.exports=te;var ie=Object.create(y("core-util-is"));ie.inherits=y("inherits");var le=y("./_stream_readable"),z=y("./_stream_writable");ie.inherits(te,le);for(var se=E(z.prototype),x=0;x<se.length;x++){var re=se[x];te.prototype[re]||(te.prototype[re]=z.prototype[re])}function te(fe){if(!(this instanceof te))return new te(fe);le.call(this,fe),z.call(this,fe),fe&&fe.readable===!1&&(this.readable=!1),fe&&fe.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,fe&&fe.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",ae)}Object.defineProperty(te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ae(){this.allowHalfOpen||this._writableState.ended||ee.nextTick(ue,this)}function ue(fe){fe.end()}Object.defineProperty(te.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(fe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=fe,this._writableState.destroyed=fe)}}),te.prototype._destroy=function(fe,de){this.push(null),this.end(),ee.nextTick(de,fe)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(y,we,ge){"use strict";we.exports=ie;var ee=y("./_stream_transform"),E=Object.create(y("core-util-is"));E.inherits=y("inherits"),E.inherits(ie,ee);function ie(le){if(!(this instanceof ie))return new ie(le);ee.call(this,le)}ie.prototype._transform=function(le,z,se){se(null,le)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,we,ge){(function(ee,E){(function(){"use strict";var ie=y("process-nextick-args");we.exports=be;var le=y("isarray"),z;be.ReadableState=ve;var se=y("events").EventEmitter,x=function(Ie,Ye){return Ie.listeners(Ye).length},re=y("./internal/streams/stream"),te=y("safe-buffer").Buffer,ae=E.Uint8Array||function(){};function ue(Ie){return te.from(Ie)}function fe(Ie){return te.isBuffer(Ie)||Ie instanceof ae}var de=Object.create(y("core-util-is"));de.inherits=y("inherits");var he=y("util"),ce=void 0;he&&he.debuglog?ce=he.debuglog("stream"):ce=function(){};var pe=y("./internal/streams/BufferList"),Ce=y("./internal/streams/destroy"),ke;de.inherits(be,re);var De=["error","close","destroy","pause","resume"];function Ae(Ie,Ye,ft){if(typeof Ie.prependListener=="function")return Ie.prependListener(Ye,ft);!Ie._events||!Ie._events[Ye]?Ie.on(Ye,ft):le(Ie._events[Ye])?Ie._events[Ye].unshift(ft):Ie._events[Ye]=[ft,Ie._events[Ye]]}function ve(Ie,Ye){z=z||y("./_stream_duplex"),Ie=Ie||{};var ft=Ye instanceof z;this.objectMode=!!Ie.objectMode,ft&&(this.objectMode=this.objectMode||!!Ie.readableObjectMode);var mt=Ie.highWaterMark,nt=Ie.readableHighWaterMark,_e=this.objectMode?16:16*1024;mt||mt===0?this.highWaterMark=mt:ft&&(nt||nt===0)?this.highWaterMark=nt:this.highWaterMark=_e,this.highWaterMark=Math.floor(this.highWaterMark),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.destroyed=!1,this.defaultEncoding=Ie.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ie.encoding&&(ke||(ke=y("string_decoder/").StringDecoder),this.decoder=new ke(Ie.encoding),this.encoding=Ie.encoding)}function be(Ie){if(z=z||y("./_stream_duplex"),!(this instanceof be))return new be(Ie);this._readableState=new ve(Ie,this),this.readable=!0,Ie&&(typeof Ie.read=="function"&&(this._read=Ie.read),typeof Ie.destroy=="function"&&(this._destroy=Ie.destroy)),re.call(this)}Object.defineProperty(be.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ie){this._readableState&&(this._readableState.destroyed=Ie)}}),be.prototype.destroy=Ce.destroy,be.prototype._undestroy=Ce.undestroy,be.prototype._destroy=function(Ie,Ye){this.push(null),Ye(Ie)},be.prototype.push=function(Ie,Ye){var ft=this._readableState,mt;return ft.objectMode?mt=!0:typeof Ie=="string"&&(Ye=Ye||ft.defaultEncoding,Ye!==ft.encoding&&(Ie=te.from(Ie,Ye),Ye=""),mt=!0),Ee(this,Ie,Ye,!1,mt)},be.prototype.unshift=function(Ie){return Ee(this,Ie,null,!0,!1)};function Ee(Ie,Ye,ft,mt,nt){var _e=Ie._readableState;if(Ye===null)_e.reading=!1,$e(Ie,_e);else{var Pe;nt||(Pe=Me(_e,Ye)),Pe?Ie.emit("error",Pe):_e.objectMode||Ye&&Ye.length>0?(typeof Ye!="string"&&!_e.objectMode&&Object.getPrototypeOf(Ye)!==te.prototype&&(Ye=ue(Ye)),mt?_e.endEmitted?Ie.emit("error",new Error("stream.unshift() after end event")):Oe(Ie,_e,Ye,!0):_e.ended?Ie.emit("error",new Error("stream.push() after EOF")):(_e.reading=!1,_e.decoder&&!ft?(Ye=_e.decoder.write(Ye),_e.objectMode||Ye.length!==0?Oe(Ie,_e,Ye,!1):We(Ie,_e)):Oe(Ie,_e,Ye,!1))):mt||(_e.reading=!1)}return Se(_e)}function Oe(Ie,Ye,ft,mt){Ye.flowing&&Ye.length===0&&!Ye.sync?(Ie.emit("data",ft),Ie.read(0)):(Ye.length+=Ye.objectMode?1:ft.length,mt?Ye.buffer.unshift(ft):Ye.buffer.push(ft),Ye.needReadable&&lt(Ie)),We(Ie,Ye)}function Me(Ie,Ye){var ft;return!fe(Ye)&&typeof Ye!="string"&&Ye!==void 0&&!Ie.objectMode&&(ft=new TypeError("Invalid non-string/buffer chunk")),ft}function Se(Ie){return!Ie.ended&&(Ie.needReadable||Ie.length<Ie.highWaterMark||Ie.length===0)}be.prototype.isPaused=function(){return this._readableState.flowing===!1},be.prototype.setEncoding=function(Ie){return ke||(ke=y("string_decoder/").StringDecoder),this._readableState.decoder=new ke(Ie),this._readableState.encoding=Ie,this};var je=8388608;function Ze(Ie){return Ie>=je?Ie=je:(Ie--,Ie|=Ie>>>1,Ie|=Ie>>>2,Ie|=Ie>>>4,Ie|=Ie>>>8,Ie|=Ie>>>16,Ie++),Ie}function Xe(Ie,Ye){return Ie<=0||Ye.length===0&&Ye.ended?0:Ye.objectMode?1:Ie!==Ie?Ye.flowing&&Ye.length?Ye.buffer.head.data.length:Ye.length:(Ie>Ye.highWaterMark&&(Ye.highWaterMark=Ze(Ie)),Ie<=Ye.length?Ie:Ye.ended?Ye.length:(Ye.needReadable=!0,0))}be.prototype.read=function(Ie){ce("read",Ie),Ie=parseInt(Ie,10);var Ye=this._readableState,ft=Ie;if(Ie!==0&&(Ye.emittedReadable=!1),Ie===0&&Ye.needReadable&&(Ye.length>=Ye.highWaterMark||Ye.ended))return ce("read: emitReadable",Ye.length,Ye.ended),Ye.length===0&&Ye.ended?ze(this):lt(this),null;if(Ie=Xe(Ie,Ye),Ie===0&&Ye.ended)return Ye.length===0&&ze(this),null;var mt=Ye.needReadable;ce("need readable",mt),(Ye.length===0||Ye.length-Ie<Ye.highWaterMark)&&(mt=!0,ce("length less than watermark",mt)),Ye.ended||Ye.reading?(mt=!1,ce("reading or ended",mt)):mt&&(ce("do read"),Ye.reading=!0,Ye.sync=!0,Ye.length===0&&(Ye.needReadable=!0),this._read(Ye.highWaterMark),Ye.sync=!1,Ye.reading||(Ie=Xe(ft,Ye)));var nt;return Ie>0?nt=ct(Ie,Ye):nt=null,nt===null?(Ye.needReadable=!0,Ie=0):Ye.length-=Ie,Ye.length===0&&(Ye.ended||(Ye.needReadable=!0),ft!==Ie&&Ye.ended&&ze(this)),nt!==null&&this.emit("data",nt),nt};function $e(Ie,Ye){if(!Ye.ended){if(Ye.decoder){var ft=Ye.decoder.end();ft&&ft.length&&(Ye.buffer.push(ft),Ye.length+=Ye.objectMode?1:ft.length)}Ye.ended=!0,lt(Ie)}}function lt(Ie){var Ye=Ie._readableState;Ye.needReadable=!1,Ye.emittedReadable||(ce("emitReadable",Ye.flowing),Ye.emittedReadable=!0,Ye.sync?ie.nextTick(Re,Ie):Re(Ie))}function Re(Ie){ce("emit readable"),Ie.emit("readable"),Ve(Ie)}function We(Ie,Ye){Ye.readingMore||(Ye.readingMore=!0,ie.nextTick(rt,Ie,Ye))}function rt(Ie,Ye){for(var ft=Ye.length;!Ye.reading&&!Ye.flowing&&!Ye.ended&&Ye.length<Ye.highWaterMark&&(ce("maybeReadMore read 0"),Ie.read(0),ft!==Ye.length);)ft=Ye.length;Ye.readingMore=!1}be.prototype._read=function(Ie){this.emit("error",new Error("_read() is not implemented"))},be.prototype.pipe=function(Ie,Ye){var ft=this,mt=this._readableState;switch(mt.pipesCount){case 0:mt.pipes=Ie;break;case 1:mt.pipes=[mt.pipes,Ie];break;default:mt.pipes.push(Ie);break}mt.pipesCount+=1,ce("pipe count=%d opts=%j",mt.pipesCount,Ye);var nt=(!Ye||Ye.end!==!1)&&Ie!==ee.stdout&&Ie!==ee.stderr,_e=nt?He:wt;mt.endEmitted?ie.nextTick(_e):ft.once("end",_e),Ie.on("unpipe",Pe);function Pe(vt,gt){ce("onunpipe"),vt===ft&&gt&&gt.hasUnpiped===!1&&(gt.hasUnpiped=!0,xe())}function He(){ce("onend"),Ie.end()}var it=ot(ft);Ie.on("drain",it);var Te=!1;function xe(){ce("cleanup"),Ie.removeListener("close",Ne),Ie.removeListener("finish",yt),Ie.removeListener("drain",it),Ie.removeListener("error",et),Ie.removeListener("unpipe",Pe),ft.removeListener("end",He),ft.removeListener("end",wt),ft.removeListener("data",Le),Te=!0,mt.awaitDrain&&(!Ie._writableState||Ie._writableState.needDrain)&&it()}var ye=!1;ft.on("data",Le);function Le(vt){ce("ondata"),ye=!1;var gt=Ie.write(vt);gt===!1&&!ye&&((mt.pipesCount===1&&mt.pipes===Ie||mt.pipesCount>1&&Ke(mt.pipes,Ie)!==-1)&&!Te&&(ce("false write response, pause",ft._readableState.awaitDrain),ft._readableState.awaitDrain++,ye=!0),ft.pause())}function et(vt){ce("onerror",vt),wt(),Ie.removeListener("error",et),x(Ie,"error")===0&&Ie.emit("error",vt)}Ae(Ie,"error",et);function Ne(){Ie.removeListener("finish",yt),wt()}Ie.once("close",Ne);function yt(){ce("onfinish"),Ie.removeListener("close",Ne),wt()}Ie.once("finish",yt);function wt(){ce("unpipe"),ft.unpipe(Ie)}return Ie.emit("pipe",ft),mt.flowing||(ce("pipe resume"),ft.resume()),Ie};function ot(Ie){return function(){var Ye=Ie._readableState;ce("pipeOnDrain",Ye.awaitDrain),Ye.awaitDrain&&Ye.awaitDrain--,Ye.awaitDrain===0&&x(Ie,"data")&&(Ye.flowing=!0,Ve(Ie))}}be.prototype.unpipe=function(Ie){var Ye=this._readableState,ft={hasUnpiped:!1};if(Ye.pipesCount===0)return this;if(Ye.pipesCount===1)return Ie&&Ie!==Ye.pipes?this:(Ie||(Ie=Ye.pipes),Ye.pipes=null,Ye.pipesCount=0,Ye.flowing=!1,Ie&&Ie.emit("unpipe",this,ft),this);if(!Ie){var mt=Ye.pipes,nt=Ye.pipesCount;Ye.pipes=null,Ye.pipesCount=0,Ye.flowing=!1;for(var _e=0;_e<nt;_e++)mt[_e].emit("unpipe",this,ft);return this}var Pe=Ke(Ye.pipes,Ie);return Pe===-1?this:(Ye.pipes.splice(Pe,1),Ye.pipesCount-=1,Ye.pipesCount===1&&(Ye.pipes=Ye.pipes[0]),Ie.emit("unpipe",this,ft),this)},be.prototype.on=function(Ie,Ye){var ft=re.prototype.on.call(this,Ie,Ye);if(Ie==="data")this._readableState.flowing!==!1&&this.resume();else if(Ie==="readable"){var mt=this._readableState;!mt.endEmitted&&!mt.readableListening&&(mt.readableListening=mt.needReadable=!0,mt.emittedReadable=!1,mt.reading?mt.length&&lt(this):ie.nextTick(at,this))}return ft},be.prototype.addListener=be.prototype.on;function at(Ie){ce("readable nexttick read 0"),Ie.read(0)}be.prototype.resume=function(){var Ie=this._readableState;return Ie.flowing||(ce("resume"),Ie.flowing=!0,Je(this,Ie)),this};function Je(Ie,Ye){Ye.resumeScheduled||(Ye.resumeScheduled=!0,ie.nextTick(Qe,Ie,Ye))}function Qe(Ie,Ye){Ye.reading||(ce("resume read 0"),Ie.read(0)),Ye.resumeScheduled=!1,Ye.awaitDrain=0,Ie.emit("resume"),Ve(Ie),Ye.flowing&&!Ye.reading&&Ie.read(0)}be.prototype.pause=function(){return ce("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(ce("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ve(Ie){var Ye=Ie._readableState;for(ce("flow",Ye.flowing);Ye.flowing&&Ie.read()!==null;);}be.prototype.wrap=function(Ie){var Ye=this,ft=this._readableState,mt=!1;Ie.on("end",function(){if(ce("wrapped end"),ft.decoder&&!ft.ended){var Pe=ft.decoder.end();Pe&&Pe.length&&Ye.push(Pe)}Ye.push(null)}),Ie.on("data",function(Pe){if(ce("wrapped data"),ft.decoder&&(Pe=ft.decoder.write(Pe)),!(ft.objectMode&&Pe==null)&&!(!ft.objectMode&&(!Pe||!Pe.length))){var He=Ye.push(Pe);He||(mt=!0,Ie.pause())}});for(var nt in Ie)this[nt]===void 0&&typeof Ie[nt]=="function"&&(this[nt]=function(Pe){return function(){return Ie[Pe].apply(Ie,arguments)}}(nt));for(var _e=0;_e<De.length;_e++)Ie.on(De[_e],this.emit.bind(this,De[_e]));return this._read=function(Pe){ce("wrapped _read",Pe),mt&&(mt=!1,Ie.resume())},this},Object.defineProperty(be.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),be._fromList=ct;function ct(Ie,Ye){if(Ye.length===0)return null;var ft;return Ye.objectMode?ft=Ye.buffer.shift():!Ie||Ie>=Ye.length?(Ye.decoder?ft=Ye.buffer.join(""):Ye.buffer.length===1?ft=Ye.buffer.head.data:ft=Ye.buffer.concat(Ye.length),Ye.buffer.clear()):ft=tt(Ie,Ye.buffer,Ye.decoder),ft}function tt(Ie,Ye,ft){var mt;return Ie<Ye.head.data.length?(mt=Ye.head.data.slice(0,Ie),Ye.head.data=Ye.head.data.slice(Ie)):Ie===Ye.head.data.length?mt=Ye.shift():mt=ft?ut(Ie,Ye):st(Ie,Ye),mt}function ut(Ie,Ye){var ft=Ye.head,mt=1,nt=ft.data;for(Ie-=nt.length;ft=ft.next;){var _e=ft.data,Pe=Ie>_e.length?_e.length:Ie;if(Pe===_e.length?nt+=_e:nt+=_e.slice(0,Ie),Ie-=Pe,Ie===0){Pe===_e.length?(++mt,ft.next?Ye.head=ft.next:Ye.head=Ye.tail=null):(Ye.head=ft,ft.data=_e.slice(Pe));break}++mt}return Ye.length-=mt,nt}function st(Ie,Ye){var ft=te.allocUnsafe(Ie),mt=Ye.head,nt=1;for(mt.data.copy(ft),Ie-=mt.data.length;mt=mt.next;){var _e=mt.data,Pe=Ie>_e.length?_e.length:Ie;if(_e.copy(ft,ft.length-Ie,0,Pe),Ie-=Pe,Ie===0){Pe===_e.length?(++nt,mt.next?Ye.head=mt.next:Ye.head=Ye.tail=null):(Ye.head=mt,mt.data=_e.slice(Pe));break}++nt}return Ye.length-=nt,ft}function ze(Ie){var Ye=Ie._readableState;if(Ye.length>0)throw new Error('"endReadable()" called on non-empty stream');Ye.endEmitted||(Ye.ended=!0,ie.nextTick(Be,Ye,Ie))}function Be(Ie,Ye){!Ie.endEmitted&&Ie.length===0&&(Ie.endEmitted=!0,Ye.readable=!1,Ye.emit("end"))}function Ke(Ie,Ye){for(var ft=0,mt=Ie.length;ft<mt;ft++)if(Ie[ft]===Ye)return ft;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,we,ge){"use strict";we.exports=le;var ee=y("./_stream_duplex"),E=Object.create(y("core-util-is"));E.inherits=y("inherits"),E.inherits(le,ee);function ie(x,re){var te=this._transformState;te.transforming=!1;var ae=te.writecb;if(!ae)return this.emit("error",new Error("write callback called multiple times"));te.writechunk=null,te.writecb=null,re!=null&&this.push(re),ae(x);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function le(x){if(!(this instanceof le))return new le(x);ee.call(this,x),this._transformState={afterTransform:ie.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",z)}function z(){var x=this;typeof this._flush=="function"?this._flush(function(re,te){se(x,re,te)}):se(this,null,null)}le.prototype.push=function(x,re){return this._transformState.needTransform=!1,ee.prototype.push.call(this,x,re)},le.prototype._transform=function(x,re,te){throw new Error("_transform() is not implemented")},le.prototype._write=function(x,re,te){var ae=this._transformState;if(ae.writecb=te,ae.writechunk=x,ae.writeencoding=re,!ae.transforming){var ue=this._readableState;(ae.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},le.prototype._read=function(x){var re=this._transformState;re.writechunk!==null&&re.writecb&&!re.transforming?(re.transforming=!0,this._transform(re.writechunk,re.writeencoding,re.afterTransform)):re.needTransform=!0},le.prototype._destroy=function(x,re){var te=this;ee.prototype._destroy.call(this,x,function(ae){re(ae),te.emit("close")})};function se(x,re,te){if(re)return x.emit("error",re);if(te!=null&&x.push(te),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,we,ge){(function(ee,E,ie){(function(){"use strict";var le=y("process-nextick-args");we.exports=Ae;function z(Qe,Ve,ct){this.chunk=Qe,this.encoding=Ve,this.callback=ct,this.next=null}function se(Qe){var Ve=this;this.next=null,this.entry=null,this.finish=function(){Je(Ve,Qe)}}var x=!ee.browser&&["v0.10","v0.9."].indexOf(ee.version.slice(0,5))>-1?ie:le.nextTick,re;Ae.WritableState=ke;var te=Object.create(y("core-util-is"));te.inherits=y("inherits");var ae={deprecate:y("util-deprecate")},ue=y("./internal/streams/stream"),fe=y("safe-buffer").Buffer,de=E.Uint8Array||function(){};function he(Qe){return fe.from(Qe)}function ce(Qe){return fe.isBuffer(Qe)||Qe instanceof de}var pe=y("./internal/streams/destroy");te.inherits(Ae,ue);function Ce(){}function ke(Qe,Ve){re=re||y("./_stream_duplex"),Qe=Qe||{};var ct=Ve instanceof re;this.objectMode=!!Qe.objectMode,ct&&(this.objectMode=this.objectMode||!!Qe.writableObjectMode);var tt=Qe.highWaterMark,ut=Qe.writableHighWaterMark,st=this.objectMode?16:16*1024;tt||tt===0?this.highWaterMark=tt:ct&&(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 ze=Qe.decodeStrings===!1;this.decodeStrings=!ze,this.defaultEncoding=Qe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Be){Ze(Ve,Be)},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 se(this)}ke.prototype.getBuffer=function(){for(var Ve=this.bufferedRequest,ct=[];Ve;)ct.push(Ve),Ve=Ve.next;return ct},function(){try{Object.defineProperty(ke.prototype,"buffer",{get:ae.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Qe){}}();var De;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(De=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ae,Symbol.hasInstance,{value:function(Qe){return De.call(this,Qe)?!0:this!==Ae?!1:Qe&&Qe._writableState instanceof ke}})):De=function(Qe){return Qe instanceof this};function Ae(Qe){if(re=re||y("./_stream_duplex"),!De.call(Ae,this)&&!(this instanceof re))return new Ae(Qe);this._writableState=new ke(Qe,this),this.writable=!0,Qe&&(typeof Qe.write=="function"&&(this._write=Qe.write),typeof Qe.writev=="function"&&(this._writev=Qe.writev),typeof Qe.destroy=="function"&&(this._destroy=Qe.destroy),typeof Qe.final=="function"&&(this._final=Qe.final)),ue.call(this)}Ae.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ve(Qe,Ve){var ct=new Error("write after end");Qe.emit("error",ct),le.nextTick(Ve,ct)}function be(Qe,Ve,ct,tt){var ut=!0,st=!1;return ct===null?st=new TypeError("May not write null values to stream"):typeof ct!="string"&&ct!==void 0&&!Ve.objectMode&&(st=new TypeError("Invalid non-string/buffer chunk")),st&&(Qe.emit("error",st),le.nextTick(tt,st),ut=!1),ut}Ae.prototype.write=function(Qe,Ve,ct){var tt=this._writableState,ut=!1,st=!tt.objectMode&&ce(Qe);return st&&!fe.isBuffer(Qe)&&(Qe=he(Qe)),typeof Ve=="function"&&(ct=Ve,Ve=null),st?Ve="buffer":Ve||(Ve=tt.defaultEncoding),typeof ct!="function"&&(ct=Ce),tt.ended?ve(this,ct):(st||be(this,tt,Qe,ct))&&(tt.pendingcb++,ut=Oe(this,tt,st,Qe,Ve,ct)),ut},Ae.prototype.cork=function(){var Qe=this._writableState;Qe.corked++},Ae.prototype.uncork=function(){var Qe=this._writableState;Qe.corked&&(Qe.corked--,!Qe.writing&&!Qe.corked&&!Qe.finished&&!Qe.bufferProcessing&&Qe.bufferedRequest&&lt(this,Qe))},Ae.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 Ee(Qe,Ve,ct){return!Qe.objectMode&&Qe.decodeStrings!==!1&&typeof Ve=="string"&&(Ve=fe.from(Ve,ct)),Ve}Object.defineProperty(Ae.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Oe(Qe,Ve,ct,tt,ut,st){if(!ct){var ze=Ee(Ve,tt,ut);tt!==ze&&(ct=!0,ut="buffer",tt=ze)}var Be=Ve.objectMode?1:tt.length;Ve.length+=Be;var Ke=Ve.length<Ve.highWaterMark;if(Ke||(Ve.needDrain=!0),Ve.writing||Ve.corked){var Ie=Ve.lastBufferedRequest;Ve.lastBufferedRequest={chunk:tt,encoding:ut,isBuf:ct,callback:st,next:null},Ie?Ie.next=Ve.lastBufferedRequest:Ve.bufferedRequest=Ve.lastBufferedRequest,Ve.bufferedRequestCount+=1}else Me(Qe,Ve,!1,Be,tt,ut,st);return Ke}function Me(Qe,Ve,ct,tt,ut,st,ze){Ve.writelen=tt,Ve.writecb=ze,Ve.writing=!0,Ve.sync=!0,ct?Qe._writev(ut,Ve.onwrite):Qe._write(ut,st,Ve.onwrite),Ve.sync=!1}function Se(Qe,Ve,ct,tt,ut){--Ve.pendingcb,ct?(le.nextTick(ut,tt),le.nextTick(ot,Qe,Ve),Qe._writableState.errorEmitted=!0,Qe.emit("error",tt)):(ut(tt),Qe._writableState.errorEmitted=!0,Qe.emit("error",tt),ot(Qe,Ve))}function je(Qe){Qe.writing=!1,Qe.writecb=null,Qe.length-=Qe.writelen,Qe.writelen=0}function Ze(Qe,Ve){var ct=Qe._writableState,tt=ct.sync,ut=ct.writecb;if(je(ct),Ve)Se(Qe,ct,tt,Ve,ut);else{var st=Re(ct);!st&&!ct.corked&&!ct.bufferProcessing&&ct.bufferedRequest&&lt(Qe,ct),tt?x(Xe,Qe,ct,st,ut):Xe(Qe,ct,st,ut)}}function Xe(Qe,Ve,ct,tt){ct||$e(Qe,Ve),Ve.pendingcb--,tt(),ot(Qe,Ve)}function $e(Qe,Ve){Ve.length===0&&Ve.needDrain&&(Ve.needDrain=!1,Qe.emit("drain"))}function lt(Qe,Ve){Ve.bufferProcessing=!0;var ct=Ve.bufferedRequest;if(Qe._writev&&ct&&ct.next){var tt=Ve.bufferedRequestCount,ut=new Array(tt),st=Ve.corkedRequestsFree;st.entry=ct;for(var ze=0,Be=!0;ct;)ut[ze]=ct,ct.isBuf||(Be=!1),ct=ct.next,ze+=1;ut.allBuffers=Be,Me(Qe,Ve,!0,Ve.length,ut,"",st.finish),Ve.pendingcb++,Ve.lastBufferedRequest=null,st.next?(Ve.corkedRequestsFree=st.next,st.next=null):Ve.corkedRequestsFree=new se(Ve),Ve.bufferedRequestCount=0}else{for(;ct;){var Ke=ct.chunk,Ie=ct.encoding,Ye=ct.callback,ft=Ve.objectMode?1:Ke.length;if(Me(Qe,Ve,!1,ft,Ke,Ie,Ye),ct=ct.next,Ve.bufferedRequestCount--,Ve.writing)break}ct===null&&(Ve.lastBufferedRequest=null)}Ve.bufferedRequest=ct,Ve.bufferProcessing=!1}Ae.prototype._write=function(Qe,Ve,ct){ct(new Error("_write() is not implemented"))},Ae.prototype._writev=null,Ae.prototype.end=function(Qe,Ve,ct){var tt=this._writableState;typeof Qe=="function"?(ct=Qe,Qe=null,Ve=null):typeof Ve=="function"&&(ct=Ve,Ve=null),Qe!=null&&this.write(Qe,Ve),tt.corked&&(tt.corked=1,this.uncork()),!tt.ending&&!tt.finished&&at(this,tt,ct)};function Re(Qe){return Qe.ending&&Qe.length===0&&Qe.bufferedRequest===null&&!Qe.finished&&!Qe.writing}function We(Qe,Ve){Qe._final(function(ct){Ve.pendingcb--,ct&&Qe.emit("error",ct),Ve.prefinished=!0,Qe.emit("prefinish"),ot(Qe,Ve)})}function rt(Qe,Ve){!Ve.prefinished&&!Ve.finalCalled&&(typeof Qe._final=="function"?(Ve.pendingcb++,Ve.finalCalled=!0,le.nextTick(We,Qe,Ve)):(Ve.prefinished=!0,Qe.emit("prefinish")))}function ot(Qe,Ve){var ct=Re(Ve);return ct&&(rt(Qe,Ve),Ve.pendingcb===0&&(Ve.finished=!0,Qe.emit("finish"))),ct}function at(Qe,Ve,ct){Ve.ending=!0,ot(Qe,Ve),ct&&(Ve.finished?le.nextTick(ct):Qe.once("finish",ct)),Ve.ended=!0,Qe.writable=!1}function Je(Qe,Ve,ct){var tt=Qe.entry;for(Qe.entry=null;tt;){var ut=tt.callback;Ve.pendingcb--,ut(ct),tt=tt.next}Ve.corkedRequestsFree?Ve.corkedRequestsFree.next=Qe:Ve.corkedRequestsFree=Qe}Object.defineProperty(Ae.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Qe){this._writableState&&(this._writableState.destroyed=Qe)}}),Ae.prototype.destroy=pe.destroy,Ae.prototype._undestroy=pe.undestroy,Ae.prototype._destroy=function(Qe,Ve){this.end(),Ve(Qe)}}).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,we,ge){"use strict";function ee(z,se){if(!(z instanceof se))throw new TypeError("Cannot call a class as a function")}var E=y("safe-buffer").Buffer,ie=y("util");function le(z,se,x){z.copy(se,x)}we.exports=function(){function z(){ee(this,z),this.head=null,this.tail=null,this.length=0}return z.prototype.push=function(x){var re={data:x,next:null};this.length>0?this.tail.next=re:this.head=re,this.tail=re,++this.length},z.prototype.unshift=function(x){var re={data:x,next:this.head};this.length===0&&(this.tail=re),this.head=re,++this.length},z.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}},z.prototype.clear=function(){this.head=this.tail=null,this.length=0},z.prototype.join=function(x){if(this.length===0)return"";for(var re=this.head,te=""+re.data;re=re.next;)te+=x+re.data;return te},z.prototype.concat=function(x){if(this.length===0)return E.alloc(0);if(this.length===1)return this.head.data;for(var re=E.allocUnsafe(x>>>0),te=this.head,ae=0;te;)le(te.data,re,ae),ae+=te.data.length,te=te.next;return re},z}(),ie&&ie.inspect&&ie.inspect.custom&&(we.exports.prototype[ie.inspect.custom]=function(){var z=ie.inspect({length:this.length});return this.constructor.name+" "+z})},{"safe-buffer":396,util:89}],392:[function(y,we,ge){"use strict";var ee=y("process-nextick-args");function E(z,se){var x=this,re=this._readableState&&this._readableState.destroyed,te=this._writableState&&this._writableState.destroyed;return re||te?(se?se(z):z&&(!this._writableState||!this._writableState.errorEmitted)&&ee.nextTick(le,this,z),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(z||null,function(ae){!se&&ae?(ee.nextTick(le,x,ae),x._writableState&&(x._writableState.errorEmitted=!0)):se&&se(ae)}),this)}function ie(){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 le(z,se){z.emit("error",se)}we.exports={destroy:E,undestroy:ie}},{"process-nextick-args":380}],393:[function(y,we,ge){we.exports=y("events").EventEmitter},{events:344}],394:[function(y,we,ge){ge=we.exports=y("./lib/_stream_readable.js"),ge.Stream=ge,ge.Readable=ge,ge.Writable=y("./lib/_stream_writable.js"),ge.Duplex=y("./lib/_stream_duplex.js"),ge.Transform=y("./lib/_stream_transform.js"),ge.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,we,ge){var ee=function(E){"use strict";var ie=Object.prototype,le=ie.hasOwnProperty,z,se=typeof Symbol=="function"?Symbol:{},x=se.iterator||"@@iterator",re=se.asyncIterator||"@@asyncIterator",te=se.toStringTag||"@@toStringTag";function ae(rt,ot,at){return Object.defineProperty(rt,ot,{value:at,enumerable:!0,configurable:!0,writable:!0}),rt[ot]}try{ae({},"")}catch(rt){ae=function(ot,at,Je){return ot[at]=Je}}function ue(rt,ot,at,Je){var Qe=ot&&ot.prototype instanceof ke?ot:ke,Ve=Object.create(Qe.prototype),ct=new lt(Je||[]);return Ve._invoke=je(rt,at,ct),Ve}E.wrap=ue;function fe(rt,ot,at){try{return{type:"normal",arg:rt.call(ot,at)}}catch(Je){return{type:"throw",arg:Je}}}var de="suspendedStart",he="suspendedYield",ce="executing",pe="completed",Ce={};function ke(){}function De(){}function Ae(){}var ve={};ae(ve,x,function(){return this});var be=Object.getPrototypeOf,Ee=be&&be(be(Re([])));Ee&&Ee!==ie&&le.call(Ee,x)&&(ve=Ee);var Oe=Ae.prototype=ke.prototype=Object.create(ve);De.prototype=Ae,ae(Oe,"constructor",Ae),ae(Ae,"constructor",De),De.displayName=ae(Ae,te,"GeneratorFunction");function Me(rt){["next","throw","return"].forEach(function(ot){ae(rt,ot,function(at){return this._invoke(ot,at)})})}E.isGeneratorFunction=function(rt){var ot=typeof rt=="function"&&rt.constructor;return ot?ot===De||(ot.displayName||ot.name)==="GeneratorFunction":!1},E.mark=function(rt){return Object.setPrototypeOf?Object.setPrototypeOf(rt,Ae):(rt.__proto__=Ae,ae(rt,te,"GeneratorFunction")),rt.prototype=Object.create(Oe),rt},E.awrap=function(rt){return{__await:rt}};function Se(rt,ot){function at(Ve,ct,tt,ut){var st=fe(rt[Ve],rt,ct);if(st.type==="throw")ut(st.arg);else{var ze=st.arg,Be=ze.value;return Be&&typeof Be=="object"&&le.call(Be,"__await")?ot.resolve(Be.__await).then(function(Ke){at("next",Ke,tt,ut)},function(Ke){at("throw",Ke,tt,ut)}):ot.resolve(Be).then(function(Ke){ze.value=Ke,tt(ze)},function(Ke){return at("throw",Ke,tt,ut)})}}var Je;function Qe(Ve,ct){function tt(){return new ot(function(ut,st){at(Ve,ct,ut,st)})}return Je=Je?Je.then(tt,tt):tt()}this._invoke=Qe}Me(Se.prototype),ae(Se.prototype,re,function(){return this}),E.AsyncIterator=Se,E.async=function(rt,ot,at,Je,Qe){Qe===void 0&&(Qe=Promise);var Ve=new Se(ue(rt,ot,at,Je),Qe);return E.isGeneratorFunction(ot)?Ve:Ve.next().then(function(ct){return ct.done?ct.value:Ve.next()})};function je(rt,ot,at){var Je=de;return function(Ve,ct){if(Je===ce)throw new Error("Generator is already running");if(Je===pe){if(Ve==="throw")throw ct;return We()}for(at.method=Ve,at.arg=ct;;){var tt=at.delegate;if(tt){var ut=Ze(tt,at);if(ut){if(ut===Ce)continue;return ut}}if(at.method==="next")at.sent=at._sent=at.arg;else if(at.method==="throw"){if(Je===de)throw Je=pe,at.arg;at.dispatchException(at.arg)}else at.method==="return"&&at.abrupt("return",at.arg);Je=ce;var st=fe(rt,ot,at);if(st.type==="normal"){if(Je=at.done?pe:he,st.arg===Ce)continue;return{value:st.arg,done:at.done}}else st.type==="throw"&&(Je=pe,at.method="throw",at.arg=st.arg)}}}function Ze(rt,ot){var at=rt.iterator[ot.method];if(at===z){if(ot.delegate=null,ot.method==="throw"){if(rt.iterator.return&&(ot.method="return",ot.arg=z,Ze(rt,ot),ot.method==="throw"))return Ce;ot.method="throw",ot.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ce}var Je=fe(at,rt.iterator,ot.arg);if(Je.type==="throw")return ot.method="throw",ot.arg=Je.arg,ot.delegate=null,Ce;var Qe=Je.arg;if(!Qe)return ot.method="throw",ot.arg=new TypeError("iterator result is not an object"),ot.delegate=null,Ce;if(Qe.done)ot[rt.resultName]=Qe.value,ot.next=rt.nextLoc,ot.method!=="return"&&(ot.method="next",ot.arg=z);else return Qe;return ot.delegate=null,Ce}Me(Oe),ae(Oe,te,"Generator"),ae(Oe,x,function(){return this}),ae(Oe,"toString",function(){return"[object Generator]"});function Xe(rt){var ot={tryLoc:rt[0]};1 in rt&&(ot.catchLoc=rt[1]),2 in rt&&(ot.finallyLoc=rt[2],ot.afterLoc=rt[3]),this.tryEntries.push(ot)}function $e(rt){var ot=rt.completion||{};ot.type="normal",delete ot.arg,rt.completion=ot}function lt(rt){this.tryEntries=[{tryLoc:"root"}],rt.forEach(Xe,this),this.reset(!0)}E.keys=function(rt){var ot=[];for(var at in rt)ot.push(at);return ot.reverse(),function Je(){for(;ot.length;){var Qe=ot.pop();if(Qe in rt)return Je.value=Qe,Je.done=!1,Je}return Je.done=!0,Je}};function Re(rt){if(rt){var ot=rt[x];if(ot)return ot.call(rt);if(typeof rt.next=="function")return rt;if(!isNaN(rt.length)){var at=-1,Je=function Qe(){for(;++at<rt.length;)if(le.call(rt,at))return Qe.value=rt[at],Qe.done=!1,Qe;return Qe.value=z,Qe.done=!0,Qe};return Je.next=Je}}return{next:We}}E.values=Re;function We(){return{value:z,done:!0}}return lt.prototype={constructor:lt,reset:function(rt){if(this.prev=0,this.next=0,this.sent=this._sent=z,this.done=!1,this.delegate=null,this.method="next",this.arg=z,this.tryEntries.forEach($e),!rt)for(var ot in this)ot.charAt(0)==="t"&&le.call(this,ot)&&!isNaN(+ot.slice(1))&&(this[ot]=z)},stop:function(){this.done=!0;var rt=this.tryEntries[0],ot=rt.completion;if(ot.type==="throw")throw ot.arg;return this.rval},dispatchException:function(rt){if(this.done)throw rt;var ot=this;function at(ut,st){return Ve.type="throw",Ve.arg=rt,ot.next=ut,st&&(ot.method="next",ot.arg=z),!!st}for(var Je=this.tryEntries.length-1;Je>=0;--Je){var Qe=this.tryEntries[Je],Ve=Qe.completion;if(Qe.tryLoc==="root")return at("end");if(Qe.tryLoc<=this.prev){var ct=le.call(Qe,"catchLoc"),tt=le.call(Qe,"finallyLoc");if(ct&&tt){if(this.prev<Qe.catchLoc)return at(Qe.catchLoc,!0);if(this.prev<Qe.finallyLoc)return at(Qe.finallyLoc)}else if(ct){if(this.prev<Qe.catchLoc)return at(Qe.catchLoc,!0)}else if(tt){if(this.prev<Qe.finallyLoc)return at(Qe.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(rt,ot){for(var at=this.tryEntries.length-1;at>=0;--at){var Je=this.tryEntries[at];if(Je.tryLoc<=this.prev&&le.call(Je,"finallyLoc")&&this.prev<Je.finallyLoc){var Qe=Je;break}}Qe&&(rt==="break"||rt==="continue")&&Qe.tryLoc<=ot&&ot<=Qe.finallyLoc&&(Qe=null);var Ve=Qe?Qe.completion:{};return Ve.type=rt,Ve.arg=ot,Qe?(this.method="next",this.next=Qe.finallyLoc,Ce):this.complete(Ve)},complete:function(rt,ot){if(rt.type==="throw")throw rt.arg;return rt.type==="break"||rt.type==="continue"?this.next=rt.arg:rt.type==="return"?(this.rval=this.arg=rt.arg,this.method="return",this.next="end"):rt.type==="normal"&&ot&&(this.next=ot),Ce},finish:function(rt){for(var ot=this.tryEntries.length-1;ot>=0;--ot){var at=this.tryEntries[ot];if(at.finallyLoc===rt)return this.complete(at.completion,at.afterLoc),$e(at),Ce}},catch:function(rt){for(var ot=this.tryEntries.length-1;ot>=0;--ot){var at=this.tryEntries[ot];if(at.tryLoc===rt){var Je=at.completion;if(Je.type==="throw"){var Qe=Je.arg;$e(at)}return Qe}}throw new Error("illegal catch attempt")},delegateYield:function(rt,ot,at){return this.delegate={iterator:Re(rt),resultName:ot,nextLoc:at},this.method==="next"&&(this.arg=z),Ce}},E}(typeof we=="object"?we.exports:{});try{regeneratorRuntime=ee}catch(E){typeof globalThis=="object"?globalThis.regeneratorRuntime=ee:Function("r","regeneratorRuntime = r")(ee)}},{}],396:[function(y,we,ge){var ee=y("buffer"),E=ee.Buffer;function ie(z,se){for(var x in z)se[x]=z[x]}E.from&&E.alloc&&E.allocUnsafe&&E.allocUnsafeSlow?we.exports=ee:(ie(ee,ge),ge.Buffer=le);function le(z,se,x){return E(z,se,x)}ie(E,le),le.from=function(z,se,x){if(typeof z=="number")throw new TypeError("Argument must not be a number");return E(z,se,x)},le.alloc=function(z,se,x){if(typeof z!="number")throw new TypeError("Argument must be a number");var re=E(z);return se!==void 0?typeof x=="string"?re.fill(se,x):re.fill(se):re.fill(0),re},le.allocUnsafe=function(z){if(typeof z!="number")throw new TypeError("Argument must be a number");return E(z)},le.allocUnsafeSlow=function(z){if(typeof z!="number")throw new TypeError("Argument must be a number");return ee.SlowBuffer(z)}},{buffer:90}],397:[function(y,we,ge){(function(ee){(function(){(function(E){E.parser=function(ze,Be){return new le(ze,Be)},E.SAXParser=le,E.SAXStream=ue,E.createStream=ae,E.MAX_BUFFER_LENGTH=64*1024;var ie=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];E.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function le(ze,Be){if(!(this instanceof le))return new le(ze,Be);var Ke=this;se(Ke),Ke.q=Ke.c="",Ke.bufferCheckPosition=E.MAX_BUFFER_LENGTH,Ke.opt=Be||{},Ke.opt.lowercase=Ke.opt.lowercase||Ke.opt.lowercasetags,Ke.looseCase=Ke.opt.lowercase?"toLowerCase":"toUpperCase",Ke.tags=[],Ke.closed=Ke.closedRoot=Ke.sawRoot=!1,Ke.tag=Ke.error=null,Ke.strict=!!ze,Ke.noscript=!!(ze||Ke.opt.noscript),Ke.state=Se.BEGIN,Ke.strictEntities=Ke.opt.strictEntities,Ke.ENTITIES=Ke.strictEntities?Object.create(E.XML_ENTITIES):Object.create(E.ENTITIES),Ke.attribList=[],Ke.opt.xmlns&&(Ke.ns=Object.create(pe)),Ke.trackPosition=Ke.opt.position!==!1,Ke.trackPosition&&(Ke.position=Ke.line=Ke.column=0),Ze(Ke,"onready")}Object.create||(Object.create=function(ze){function Be(){}Be.prototype=ze;var Ke=new Be;return Ke}),Object.keys||(Object.keys=function(ze){var Be=[];for(var Ke in ze)ze.hasOwnProperty(Ke)&&Be.push(Ke);return Be});function z(ze){for(var Be=Math.max(E.MAX_BUFFER_LENGTH,10),Ke=0,Ie=0,Ye=ie.length;Ie<Ye;Ie++){var ft=ze[ie[Ie]].length;if(ft>Be)switch(ie[Ie]){case"textNode":$e(ze);break;case"cdata":Xe(ze,"oncdata",ze.cdata),ze.cdata="";break;case"script":Xe(ze,"onscript",ze.script),ze.script="";break;default:Re(ze,"Max buffer length exceeded: "+ie[Ie])}Ke=Math.max(Ke,ft)}var mt=E.MAX_BUFFER_LENGTH-Ke;ze.bufferCheckPosition=mt+ze.position}function se(ze){for(var Be=0,Ke=ie.length;Be<Ke;Be++)ze[ie[Be]]=""}function x(ze){$e(ze),ze.cdata!==""&&(Xe(ze,"oncdata",ze.cdata),ze.cdata=""),ze.script!==""&&(Xe(ze,"onscript",ze.script),ze.script="")}le.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 re;try{re=y("stream").Stream}catch(ze){re=function(){}}var te=E.EVENTS.filter(function(ze){return ze!=="error"&&ze!=="end"});function ae(ze,Be){return new ue(ze,Be)}function ue(ze,Be){if(!(this instanceof ue))return new ue(ze,Be);re.apply(this),this._parser=new le(ze,Be),this.writable=!0,this.readable=!0;var Ke=this;this._parser.onend=function(){Ke.emit("end")},this._parser.onerror=function(Ie){Ke.emit("error",Ie),Ke._parser.error=null},this._decoder=null,te.forEach(function(Ie){Object.defineProperty(Ke,"on"+Ie,{get:function(){return Ke._parser["on"+Ie]},set:function(Ye){if(!Ye)return Ke.removeAllListeners(Ie),Ke._parser["on"+Ie]=Ye,Ye;Ke.on(Ie,Ye)},enumerable:!0,configurable:!1})})}ue.prototype=Object.create(re.prototype,{constructor:{value:ue}}),ue.prototype.write=function(ze){if(typeof ee=="function"&&typeof ee.isBuffer=="function"&&ee.isBuffer(ze)){if(!this._decoder){var Be=y("string_decoder").StringDecoder;this._decoder=new Be("utf8")}ze=this._decoder.write(ze)}return this._parser.write(ze.toString()),this.emit("data",ze),!0},ue.prototype.end=function(ze){return ze&&ze.length&&this.write(ze),this._parser.end(),!0},ue.prototype.on=function(ze,Be){var Ke=this;return!Ke._parser["on"+ze]&&te.indexOf(ze)!==-1&&(Ke._parser["on"+ze]=function(){var Ie=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Ie.splice(0,0,ze),Ke.emit.apply(Ke,Ie)}),re.prototype.on.call(Ke,ze,Be)};var fe="[CDATA[",de="DOCTYPE",he="http://www.w3.org/XML/1998/namespace",ce="http://www.w3.org/2000/xmlns/",pe={xml:he,xmlns:ce},Ce=/[:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,De=/[#:_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]/,Ae=/[#:_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 ve(ze){return ze===" "||ze===`
`||ze==="\r"||ze===" "}function be(ze){return ze==='"'||ze==="'"}function Ee(ze){return ze===">"||ve(ze)}function Oe(ze,Be){return ze.test(Be)}function Me(ze,Be){return!Oe(ze,Be)}var Se=0;E.STATE={BEGIN:Se++,BEGIN_WHITESPACE:Se++,TEXT:Se++,TEXT_ENTITY:Se++,OPEN_WAKA:Se++,SGML_DECL:Se++,SGML_DECL_QUOTED:Se++,DOCTYPE:Se++,DOCTYPE_QUOTED:Se++,DOCTYPE_DTD:Se++,DOCTYPE_DTD_QUOTED:Se++,COMMENT_STARTING:Se++,COMMENT:Se++,COMMENT_ENDING:Se++,COMMENT_ENDED:Se++,CDATA:Se++,CDATA_ENDING:Se++,CDATA_ENDING_2:Se++,PROC_INST:Se++,PROC_INST_BODY:Se++,PROC_INST_ENDING:Se++,OPEN_TAG:Se++,OPEN_TAG_SLASH:Se++,ATTRIB:Se++,ATTRIB_NAME:Se++,ATTRIB_NAME_SAW_WHITE:Se++,ATTRIB_VALUE:Se++,ATTRIB_VALUE_QUOTED:Se++,ATTRIB_VALUE_CLOSED:Se++,ATTRIB_VALUE_UNQUOTED:Se++,ATTRIB_VALUE_ENTITY_Q:Se++,ATTRIB_VALUE_ENTITY_U:Se++,CLOSE_TAG:Se++,CLOSE_TAG_SAW_WHITE:Se++,SCRIPT:Se++,SCRIPT_ENDING:Se++},E.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},E.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(E.ENTITIES).forEach(function(ze){var Be=E.ENTITIES[ze],Ke=typeof Be=="number"?String.fromCharCode(Be):Be;E.ENTITIES[ze]=Ke});for(var je in E.STATE)E.STATE[E.STATE[je]]=je;Se=E.STATE;function Ze(ze,Be,Ke){ze[Be]&&ze[Be](Ke)}function Xe(ze,Be,Ke){ze.textNode&&$e(ze),Ze(ze,Be,Ke)}function $e(ze){ze.textNode=lt(ze.opt,ze.textNode),ze.textNode&&Ze(ze,"ontext",ze.textNode),ze.textNode=""}function lt(ze,Be){return ze.trim&&(Be=Be.trim()),ze.normalize&&(Be=Be.replace(/\s+/g," ")),Be}function Re(ze,Be){return $e(ze),ze.trackPosition&&(Be+=`
Line: `+ze.line+`
Column: `+ze.column+`
Char: `+ze.c),Be=new Error(Be),ze.error=Be,Ze(ze,"onerror",Be),ze}function We(ze){return ze.sawRoot&&!ze.closedRoot&&rt(ze,"Unclosed root tag"),ze.state!==Se.BEGIN&&ze.state!==Se.BEGIN_WHITESPACE&&ze.state!==Se.TEXT&&Re(ze,"Unexpected end"),$e(ze),ze.c="",ze.closed=!0,Ze(ze,"onend"),le.call(ze,ze.strict,ze.opt),ze}function rt(ze,Be){if(typeof ze!="object"||!(ze instanceof le))throw new Error("bad call to strictFail");ze.strict&&Re(ze,Be)}function ot(ze){ze.strict||(ze.tagName=ze.tagName[ze.looseCase]());var Be=ze.tags[ze.tags.length-1]||ze,Ke=ze.tag={name:ze.tagName,attributes:{}};ze.opt.xmlns&&(Ke.ns=Be.ns),ze.attribList.length=0,Xe(ze,"onopentagstart",Ke)}function at(ze,Be){var Ke=ze.indexOf(":"),Ie=Ke<0?["",ze]:ze.split(":"),Ye=Ie[0],ft=Ie[1];return Be&&ze==="xmlns"&&(Ye="xmlns",ft=""),{prefix:Ye,local:ft}}function Je(ze){if(ze.strict||(ze.attribName=ze.attribName[ze.looseCase]()),ze.attribList.indexOf(ze.attribName)!==-1||ze.tag.attributes.hasOwnProperty(ze.attribName)){ze.attribName=ze.attribValue="";return}if(ze.opt.xmlns){var Be=at(ze.attribName,!0),Ke=Be.prefix,Ie=Be.local;if(Ke==="xmlns")if(Ie==="xml"&&ze.attribValue!==he)rt(ze,"xml: prefix must be bound to "+he+`
Actual: `+ze.attribValue);else if(Ie==="xmlns"&&ze.attribValue!==ce)rt(ze,"xmlns: prefix must be bound to "+ce+`
Actual: `+ze.attribValue);else{var Ye=ze.tag,ft=ze.tags[ze.tags.length-1]||ze;Ye.ns===ft.ns&&(Ye.ns=Object.create(ft.ns)),Ye.ns[Ie]=ze.attribValue}ze.attribList.push([ze.attribName,ze.attribValue])}else ze.tag.attributes[ze.attribName]=ze.attribValue,Xe(ze,"onattribute",{name:ze.attribName,value:ze.attribValue});ze.attribName=ze.attribValue=""}function Qe(ze,Be){if(ze.opt.xmlns){var Ke=ze.tag,Ie=at(ze.tagName);Ke.prefix=Ie.prefix,Ke.local=Ie.local,Ke.uri=Ke.ns[Ie.prefix]||"",Ke.prefix&&!Ke.uri&&(rt(ze,"Unbound namespace prefix: "+JSON.stringify(ze.tagName)),Ke.uri=Ie.prefix);var Ye=ze.tags[ze.tags.length-1]||ze;Ke.ns&&Ye.ns!==Ke.ns&&Object.keys(Ke.ns).forEach(function(Le){Xe(ze,"onopennamespace",{prefix:Le,uri:Ke.ns[Le]})});for(var ft=0,mt=ze.attribList.length;ft<mt;ft++){var nt=ze.attribList[ft],_e=nt[0],Pe=nt[1],He=at(_e,!0),it=He.prefix,Te=He.local,xe=it===""?"":Ke.ns[it]||"",ye={name:_e,value:Pe,prefix:it,local:Te,uri:xe};it&&it!=="xmlns"&&!xe&&(rt(ze,"Unbound namespace prefix: "+JSON.stringify(it)),ye.uri=it),ze.tag.attributes[_e]=ye,Xe(ze,"onattribute",ye)}ze.attribList.length=0}ze.tag.isSelfClosing=!!Be,ze.sawRoot=!0,ze.tags.push(ze.tag),Xe(ze,"onopentag",ze.tag),Be||(!ze.noscript&&ze.tagName.toLowerCase()==="script"?ze.state=Se.SCRIPT:ze.state=Se.TEXT,ze.tag=null,ze.tagName=""),ze.attribName=ze.attribValue="",ze.attribList.length=0}function Ve(ze){if(!ze.tagName){rt(ze,"Weird empty close tag."),ze.textNode+="</>",ze.state=Se.TEXT;return}if(ze.script){if(ze.tagName!=="script"){ze.script+="</"+ze.tagName+">",ze.tagName="",ze.state=Se.SCRIPT;return}Xe(ze,"onscript",ze.script),ze.script=""}var Be=ze.tags.length,Ke=ze.tagName;ze.strict||(Ke=Ke[ze.looseCase]());for(var Ie=Ke;Be--;){var Ye=ze.tags[Be];if(Ye.name!==Ie)rt(ze,"Unexpected close tag");else break}if(Be<0){rt(ze,"Unmatched closing tag: "+ze.tagName),ze.textNode+="</"+ze.tagName+">",ze.state=Se.TEXT;return}ze.tagName=Ke;for(var ft=ze.tags.length;ft-- >Be;){var mt=ze.tag=ze.tags.pop();ze.tagName=ze.tag.name,Xe(ze,"onclosetag",ze.tagName);var nt={};for(var _e in mt.ns)nt[_e]=mt.ns[_e];var Pe=ze.tags[ze.tags.length-1]||ze;ze.opt.xmlns&&mt.ns!==Pe.ns&&Object.keys(mt.ns).forEach(function(He){var it=mt.ns[He];Xe(ze,"onclosenamespace",{prefix:He,uri:it})})}Be===0&&(ze.closedRoot=!0),ze.tagName=ze.attribValue=ze.attribName="",ze.attribList.length=0,ze.state=Se.TEXT}function ct(ze){var Be=ze.entity,Ke=Be.toLowerCase(),Ie,Ye="";return ze.ENTITIES[Be]?ze.ENTITIES[Be]:ze.ENTITIES[Ke]?ze.ENTITIES[Ke]:(Be=Ke,Be.charAt(0)==="#"&&(Be.charAt(1)==="x"?(Be=Be.slice(2),Ie=parseInt(Be,16),Ye=Ie.toString(16)):(Be=Be.slice(1),Ie=parseInt(Be,10),Ye=Ie.toString(10))),Be=Be.replace(/^0+/,""),isNaN(Ie)||Ye.toLowerCase()!==Be?(rt(ze,"Invalid character entity"),"&"+ze.entity+";"):String.fromCodePoint(Ie))}function tt(ze,Be){Be==="<"?(ze.state=Se.OPEN_WAKA,ze.startTagPosition=ze.position):ve(Be)||(rt(ze,"Non-whitespace before first tag."),ze.textNode=Be,ze.state=Se.TEXT)}function ut(ze,Be){var Ke="";return Be<ze.length&&(Ke=ze.charAt(Be)),Ke}function st(ze){var Be=this;if(this.error)throw this.error;if(Be.closed)return Re(Be,"Cannot write after close. Assign an onready handler.");if(ze===null)return We(Be);typeof ze=="object"&&(ze=ze.toString());for(var Ke=0,Ie="";Ie=ut(ze,Ke++),Be.c=Ie,!!Ie;)switch(Be.trackPosition&&(Be.position++,Ie===`
`?(Be.line++,Be.column=0):Be.column++),Be.state){case Se.BEGIN:if(Be.state=Se.BEGIN_WHITESPACE,Ie==="\uFEFF")continue;tt(Be,Ie);continue;case Se.BEGIN_WHITESPACE:tt(Be,Ie);continue;case Se.TEXT:if(Be.sawRoot&&!Be.closedRoot){for(var Ye=Ke-1;Ie&&Ie!=="<"&&Ie!=="&";)Ie=ut(ze,Ke++),Ie&&Be.trackPosition&&(Be.position++,Ie===`
`?(Be.line++,Be.column=0):Be.column++);Be.textNode+=ze.substring(Ye,Ke-1)}Ie==="<"&&!(Be.sawRoot&&Be.closedRoot&&!Be.strict)?(Be.state=Se.OPEN_WAKA,Be.startTagPosition=Be.position):(!ve(Ie)&&(!Be.sawRoot||Be.closedRoot)&&rt(Be,"Text data outside of root node."),Ie==="&"?Be.state=Se.TEXT_ENTITY:Be.textNode+=Ie);continue;case Se.SCRIPT:Ie==="<"?Be.state=Se.SCRIPT_ENDING:Be.script+=Ie;continue;case Se.SCRIPT_ENDING:Ie==="/"?Be.state=Se.CLOSE_TAG:(Be.script+="<"+Ie,Be.state=Se.SCRIPT);continue;case Se.OPEN_WAKA:if(Ie==="!")Be.state=Se.SGML_DECL,Be.sgmlDecl="";else if(!ve(Ie))if(Oe(Ce,Ie))Be.state=Se.OPEN_TAG,Be.tagName=Ie;else if(Ie==="/")Be.state=Se.CLOSE_TAG,Be.tagName="";else if(Ie==="?")Be.state=Se.PROC_INST,Be.procInstName=Be.procInstBody="";else{if(rt(Be,"Unencoded <"),Be.startTagPosition+1<Be.position){var ft=Be.position-Be.startTagPosition;Ie=new Array(ft).join(" ")+Ie}Be.textNode+="<"+Ie,Be.state=Se.TEXT}continue;case Se.SGML_DECL:(Be.sgmlDecl+Ie).toUpperCase()===fe?(Xe(Be,"onopencdata"),Be.state=Se.CDATA,Be.sgmlDecl="",Be.cdata=""):Be.sgmlDecl+Ie==="--"?(Be.state=Se.COMMENT,Be.comment="",Be.sgmlDecl=""):(Be.sgmlDecl+Ie).toUpperCase()===de?(Be.state=Se.DOCTYPE,(Be.doctype||Be.sawRoot)&&rt(Be,"Inappropriately located doctype declaration"),Be.doctype="",Be.sgmlDecl=""):Ie===">"?(Xe(Be,"onsgmldeclaration",Be.sgmlDecl),Be.sgmlDecl="",Be.state=Se.TEXT):(be(Ie)&&(Be.state=Se.SGML_DECL_QUOTED),Be.sgmlDecl+=Ie);continue;case Se.SGML_DECL_QUOTED:Ie===Be.q&&(Be.state=Se.SGML_DECL,Be.q=""),Be.sgmlDecl+=Ie;continue;case Se.DOCTYPE:Ie===">"?(Be.state=Se.TEXT,Xe(Be,"ondoctype",Be.doctype),Be.doctype=!0):(Be.doctype+=Ie,Ie==="["?Be.state=Se.DOCTYPE_DTD:be(Ie)&&(Be.state=Se.DOCTYPE_QUOTED,Be.q=Ie));continue;case Se.DOCTYPE_QUOTED:Be.doctype+=Ie,Ie===Be.q&&(Be.q="",Be.state=Se.DOCTYPE);continue;case Se.DOCTYPE_DTD:Be.doctype+=Ie,Ie==="]"?Be.state=Se.DOCTYPE:be(Ie)&&(Be.state=Se.DOCTYPE_DTD_QUOTED,Be.q=Ie);continue;case Se.DOCTYPE_DTD_QUOTED:Be.doctype+=Ie,Ie===Be.q&&(Be.state=Se.DOCTYPE_DTD,Be.q="");continue;case Se.COMMENT:Ie==="-"?Be.state=Se.COMMENT_ENDING:Be.comment+=Ie;continue;case Se.COMMENT_ENDING:Ie==="-"?(Be.state=Se.COMMENT_ENDED,Be.comment=lt(Be.opt,Be.comment),Be.comment&&Xe(Be,"oncomment",Be.comment),Be.comment=""):(Be.comment+="-"+Ie,Be.state=Se.COMMENT);continue;case Se.COMMENT_ENDED:Ie!==">"?(rt(Be,"Malformed comment"),Be.comment+="--"+Ie,Be.state=Se.COMMENT):Be.state=Se.TEXT;continue;case Se.CDATA:Ie==="]"?Be.state=Se.CDATA_ENDING:Be.cdata+=Ie;continue;case Se.CDATA_ENDING:Ie==="]"?Be.state=Se.CDATA_ENDING_2:(Be.cdata+="]"+Ie,Be.state=Se.CDATA);continue;case Se.CDATA_ENDING_2:Ie===">"?(Be.cdata&&Xe(Be,"oncdata",Be.cdata),Xe(Be,"onclosecdata"),Be.cdata="",Be.state=Se.TEXT):Ie==="]"?Be.cdata+="]":(Be.cdata+="]]"+Ie,Be.state=Se.CDATA);continue;case Se.PROC_INST:Ie==="?"?Be.state=Se.PROC_INST_ENDING:ve(Ie)?Be.state=Se.PROC_INST_BODY:Be.procInstName+=Ie;continue;case Se.PROC_INST_BODY:if(!Be.procInstBody&&ve(Ie))continue;Ie==="?"?Be.state=Se.PROC_INST_ENDING:Be.procInstBody+=Ie;continue;case Se.PROC_INST_ENDING:Ie===">"?(Xe(Be,"onprocessinginstruction",{name:Be.procInstName,body:Be.procInstBody}),Be.procInstName=Be.procInstBody="",Be.state=Se.TEXT):(Be.procInstBody+="?"+Ie,Be.state=Se.PROC_INST_BODY);continue;case Se.OPEN_TAG:Oe(ke,Ie)?Be.tagName+=Ie:(ot(Be),Ie===">"?Qe(Be):Ie==="/"?Be.state=Se.OPEN_TAG_SLASH:(ve(Ie)||rt(Be,"Invalid character in tag name"),Be.state=Se.ATTRIB));continue;case Se.OPEN_TAG_SLASH:Ie===">"?(Qe(Be,!0),Ve(Be)):(rt(Be,"Forward-slash in opening tag not followed by >"),Be.state=Se.ATTRIB);continue;case Se.ATTRIB:if(ve(Ie))continue;Ie===">"?Qe(Be):Ie==="/"?Be.state=Se.OPEN_TAG_SLASH:Oe(Ce,Ie)?(Be.attribName=Ie,Be.attribValue="",Be.state=Se.ATTRIB_NAME):rt(Be,"Invalid attribute name");continue;case Se.ATTRIB_NAME:Ie==="="?Be.state=Se.ATTRIB_VALUE:Ie===">"?(rt(Be,"Attribute without value"),Be.attribValue=Be.attribName,Je(Be),Qe(Be)):ve(Ie)?Be.state=Se.ATTRIB_NAME_SAW_WHITE:Oe(ke,Ie)?Be.attribName+=Ie:rt(Be,"Invalid attribute name");continue;case Se.ATTRIB_NAME_SAW_WHITE:if(Ie==="=")Be.state=Se.ATTRIB_VALUE;else{if(ve(Ie))continue;rt(Be,"Attribute without value"),Be.tag.attributes[Be.attribName]="",Be.attribValue="",Xe(Be,"onattribute",{name:Be.attribName,value:""}),Be.attribName="",Ie===">"?Qe(Be):Oe(Ce,Ie)?(Be.attribName=Ie,Be.state=Se.ATTRIB_NAME):(rt(Be,"Invalid attribute name"),Be.state=Se.ATTRIB)}continue;case Se.ATTRIB_VALUE:if(ve(Ie))continue;be(Ie)?(Be.q=Ie,Be.state=Se.ATTRIB_VALUE_QUOTED):(rt(Be,"Unquoted attribute value"),Be.state=Se.ATTRIB_VALUE_UNQUOTED,Be.attribValue=Ie);continue;case Se.ATTRIB_VALUE_QUOTED:if(Ie!==Be.q){Ie==="&"?Be.state=Se.ATTRIB_VALUE_ENTITY_Q:Be.attribValue+=Ie;continue}Je(Be),Be.q="",Be.state=Se.ATTRIB_VALUE_CLOSED;continue;case Se.ATTRIB_VALUE_CLOSED:ve(Ie)?Be.state=Se.ATTRIB:Ie===">"?Qe(Be):Ie==="/"?Be.state=Se.OPEN_TAG_SLASH:Oe(Ce,Ie)?(rt(Be,"No whitespace between attributes"),Be.attribName=Ie,Be.attribValue="",Be.state=Se.ATTRIB_NAME):rt(Be,"Invalid attribute name");continue;case Se.ATTRIB_VALUE_UNQUOTED:if(!Ee(Ie)){Ie==="&"?Be.state=Se.ATTRIB_VALUE_ENTITY_U:Be.attribValue+=Ie;continue}Je(Be),Ie===">"?Qe(Be):Be.state=Se.ATTRIB;continue;case Se.CLOSE_TAG:if(Be.tagName)Ie===">"?Ve(Be):Oe(ke,Ie)?Be.tagName+=Ie:Be.script?(Be.script+="</"+Be.tagName,Be.tagName="",Be.state=Se.SCRIPT):(ve(Ie)||rt(Be,"Invalid tagname in closing tag"),Be.state=Se.CLOSE_TAG_SAW_WHITE);else{if(ve(Ie))continue;Me(Ce,Ie)?Be.script?(Be.script+="</"+Ie,Be.state=Se.SCRIPT):rt(Be,"Invalid tagname in closing tag."):Be.tagName=Ie}continue;case Se.CLOSE_TAG_SAW_WHITE:if(ve(Ie))continue;Ie===">"?Ve(Be):rt(Be,"Invalid characters in closing tag");continue;case Se.TEXT_ENTITY:case Se.ATTRIB_VALUE_ENTITY_Q:case Se.ATTRIB_VALUE_ENTITY_U:var mt,nt;switch(Be.state){case Se.TEXT_ENTITY:mt=Se.TEXT,nt="textNode";break;case Se.ATTRIB_VALUE_ENTITY_Q:mt=Se.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case Se.ATTRIB_VALUE_ENTITY_U:mt=Se.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}Ie===";"?(Be[nt]+=ct(Be),Be.entity="",Be.state=mt):Oe(Be.entity.length?Ae:De,Ie)?Be.entity+=Ie:(rt(Be,"Invalid character in entity name"),Be[nt]+="&"+Be.entity+Ie,Be.entity="",Be.state=mt);continue;default:throw new Error(Be,"Unknown state: "+Be.state)}return Be.position>=Be.bufferCheckPosition&&z(Be),Be}String.fromCodePoint||function(){var ze=String.fromCharCode,Be=Math.floor,Ke=function(){var Ie=16384,Ye=[],ft,mt,nt=-1,_e=arguments.length;if(!_e)return"";for(var Pe="";++nt<_e;){var He=Number(arguments[nt]);if(!isFinite(He)||He<0||He>1114111||Be(He)!==He)throw RangeError("Invalid code point: "+He);He<=65535?Ye.push(He):(He-=65536,ft=(He>>10)+55296,mt=He%1024+56320,Ye.push(ft,mt)),(nt+1===_e||Ye.length>Ie)&&(Pe+=ze.apply(null,Ye),Ye.length=0)}return Pe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ke,configurable:!0,writable:!0}):String.fromCodePoint=Ke}()})(typeof ge=="undefined"?this.sax={}:ge)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,we,ge){we.exports=ie;var ee=y("events").EventEmitter,E=y("inherits");E(ie,ee),ie.Readable=y("readable-stream/lib/_stream_readable.js"),ie.Writable=y("readable-stream/lib/_stream_writable.js"),ie.Duplex=y("readable-stream/lib/_stream_duplex.js"),ie.Transform=y("readable-stream/lib/_stream_transform.js"),ie.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),ie.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),ie.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),ie.Stream=ie;function ie(){ee.call(this)}ie.prototype.pipe=function(le,z){var se=this;function x(he){le.writable&&le.write(he)===!1&&se.pause&&se.pause()}se.on("data",x);function re(){se.readable&&se.resume&&se.resume()}le.on("drain",re),!le._isStdio&&(!z||z.end!==!1)&&(se.on("end",ae),se.on("close",ue));var te=!1;function ae(){te||(te=!0,le.end())}function ue(){te||(te=!0,typeof le.destroy=="function"&&le.destroy())}function fe(he){if(de(),ee.listenerCount(this,"error")===0)throw he}se.on("error",fe),le.on("error",fe);function de(){se.removeListener("data",x),le.removeListener("drain",re),se.removeListener("end",ae),se.removeListener("close",ue),se.removeListener("error",fe),le.removeListener("error",fe),se.removeListener("end",de),se.removeListener("close",de),le.removeListener("close",de)}return se.on("end",de),se.on("close",de),le.on("close",de),le.emit("pipe",se),le}},{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,we,ge){"use strict";function ee(re,te){re.prototype=Object.create(te.prototype),re.prototype.constructor=re,re.__proto__=te}var E={};function ie(re,te,ae){ae||(ae=Error);function ue(de,he,ce){return typeof te=="string"?te:te(de,he,ce)}var fe=function(de){ee(he,de);function he(ce,pe,Ce){return de.call(this,ue(ce,pe,Ce))||this}return he}(ae);fe.prototype.name=ae.name,fe.prototype.code=re,E[re]=fe}function le(re,te){if(Array.isArray(re)){var ae=re.length;return re=re.map(function(ue){return String(ue)}),ae>2?"one of ".concat(te," ").concat(re.slice(0,ae-1).join(", "),", or ")+re[ae-1]:ae===2?"one of ".concat(te," ").concat(re[0]," or ").concat(re[1]):"of ".concat(te," ").concat(re[0])}else return"of ".concat(te," ").concat(String(re))}function z(re,te,ae){return re.substr(!ae||ae<0?0:+ae,te.length)===te}function se(re,te,ae){return(ae===void 0||ae>re.length)&&(ae=re.length),re.substring(ae-te.length,ae)===te}function x(re,te,ae){return typeof ae!="number"&&(ae=0),ae+te.length>re.length?!1:re.indexOf(te,ae)!==-1}ie("ERR_INVALID_OPT_VALUE",function(re,te){return'The value "'+te+'" is invalid for option "'+re+'"'},TypeError),ie("ERR_INVALID_ARG_TYPE",function(re,te,ae){var ue;typeof te=="string"&&z(te,"not ")?(ue="must not be",te=te.replace(/^not /,"")):ue="must be";var fe;if(se(re," argument"))fe="The ".concat(re," ").concat(ue," ").concat(le(te,"type"));else{var de=x(re,".")?"property":"argument";fe='The "'.concat(re,'" ').concat(de," ").concat(ue," ").concat(le(te,"type"))}return fe+=". Received type ".concat(typeof ae),fe},TypeError),ie("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ie("ERR_METHOD_NOT_IMPLEMENTED",function(re){return"The "+re+" method is not implemented"}),ie("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ie("ERR_STREAM_DESTROYED",function(re){return"Cannot call "+re+" after a stream was destroyed"}),ie("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ie("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ie("ERR_STREAM_WRITE_AFTER_END","write after end"),ie("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ie("ERR_UNKNOWN_ENCODING",function(re){return"Unknown encoding: "+re},TypeError),ie("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),we.exports.codes=E},{}],400:[function(y,we,ge){(function(ee){(function(){"use strict";var E=Object.keys||function(ue){var fe=[];for(var de in ue)fe.push(de);return fe};we.exports=re;var ie=y("./_stream_readable"),le=y("./_stream_writable");y("inherits")(re,ie);for(var z=E(le.prototype),se=0;se<z.length;se++){var x=z[se];re.prototype[x]||(re.prototype[x]=le.prototype[x])}function re(ue){if(!(this instanceof re))return new re(ue);ie.call(this,ue),le.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",te)))}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(re.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(re.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function te(){this._writableState.ended||ee.nextTick(ae,this)}function ae(ue){ue.end()}Object.defineProperty(re.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(fe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=fe,this._writableState.destroyed=fe)}})}).call(this)}).call(this,y("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(y,we,ge){"use strict";we.exports=E;var ee=y("./_stream_transform");y("inherits")(E,ee);function E(ie){if(!(this instanceof E))return new E(ie);ee.call(this,ie)}E.prototype._transform=function(ie,le,z){z(null,ie)}},{"./_stream_transform":403,inherits:364}],402:[function(y,we,ge){(function(ee,E){(function(){"use strict";we.exports=Xe;var ie;Xe.ReadableState=Ze;var le=y("events").EventEmitter,z=function(_e,Pe){return _e.listeners(Pe).length},se=y("./internal/streams/stream"),x=y("buffer").Buffer,re=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function te(nt){return x.from(nt)}function ae(nt){return x.isBuffer(nt)||nt instanceof re}var ue=y("util"),fe;ue&&ue.debuglog?fe=ue.debuglog("stream"):fe=function(){};var de=y("./internal/streams/buffer_list"),he=y("./internal/streams/destroy"),ce=y("./internal/streams/state"),pe=ce.getHighWaterMark,Ce=y("../errors").codes,ke=Ce.ERR_INVALID_ARG_TYPE,De=Ce.ERR_STREAM_PUSH_AFTER_EOF,Ae=Ce.ERR_METHOD_NOT_IMPLEMENTED,ve=Ce.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,be,Ee,Oe;y("inherits")(Xe,se);var Me=he.errorOrDestroy,Se=["error","close","destroy","pause","resume"];function je(nt,_e,Pe){if(typeof nt.prependListener=="function")return nt.prependListener(_e,Pe);!nt._events||!nt._events[_e]?nt.on(_e,Pe):Array.isArray(nt._events[_e])?nt._events[_e].unshift(Pe):nt._events[_e]=[Pe,nt._events[_e]]}function Ze(nt,_e,Pe){ie=ie||y("./_stream_duplex"),nt=nt||{},typeof Pe!="boolean"&&(Pe=_e instanceof ie),this.objectMode=!!nt.objectMode,Pe&&(this.objectMode=this.objectMode||!!nt.readableObjectMode),this.highWaterMark=pe(this,nt,"readableHighWaterMark",Pe),this.buffer=new de,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=nt.emitClose!==!1,this.autoDestroy=!!nt.autoDestroy,this.destroyed=!1,this.defaultEncoding=nt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,nt.encoding&&(be||(be=y("string_decoder/").StringDecoder),this.decoder=new be(nt.encoding),this.encoding=nt.encoding)}function Xe(nt){if(ie=ie||y("./_stream_duplex"),!(this instanceof Xe))return new Xe(nt);var _e=this instanceof ie;this._readableState=new Ze(nt,this,_e),this.readable=!0,nt&&(typeof nt.read=="function"&&(this._read=nt.read),typeof nt.destroy=="function"&&(this._destroy=nt.destroy)),se.call(this)}Object.defineProperty(Xe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(_e){this._readableState&&(this._readableState.destroyed=_e)}}),Xe.prototype.destroy=he.destroy,Xe.prototype._undestroy=he.undestroy,Xe.prototype._destroy=function(nt,_e){_e(nt)},Xe.prototype.push=function(nt,_e){var Pe=this._readableState,He;return Pe.objectMode?He=!0:typeof nt=="string"&&(_e=_e||Pe.defaultEncoding,_e!==Pe.encoding&&(nt=x.from(nt,_e),_e=""),He=!0),$e(this,nt,_e,!1,He)},Xe.prototype.unshift=function(nt){return $e(this,nt,null,!0,!1)};function $e(nt,_e,Pe,He,it){fe("readableAddChunk",_e);var Te=nt._readableState;if(_e===null)Te.reading=!1,at(nt,Te);else{var xe;if(it||(xe=Re(Te,_e)),xe)Me(nt,xe);else if(Te.objectMode||_e&&_e.length>0)if(typeof _e!="string"&&!Te.objectMode&&Object.getPrototypeOf(_e)!==x.prototype&&(_e=te(_e)),He)Te.endEmitted?Me(nt,new ve):lt(nt,Te,_e,!0);else if(Te.ended)Me(nt,new De);else{if(Te.destroyed)return!1;Te.reading=!1,Te.decoder&&!Pe?(_e=Te.decoder.write(_e),Te.objectMode||_e.length!==0?lt(nt,Te,_e,!1):Ve(nt,Te)):lt(nt,Te,_e,!1)}else He||(Te.reading=!1,Ve(nt,Te))}return!Te.ended&&(Te.length<Te.highWaterMark||Te.length===0)}function lt(nt,_e,Pe,He){_e.flowing&&_e.length===0&&!_e.sync?(_e.awaitDrain=0,nt.emit("data",Pe)):(_e.length+=_e.objectMode?1:Pe.length,He?_e.buffer.unshift(Pe):_e.buffer.push(Pe),_e.needReadable&&Je(nt)),Ve(nt,_e)}function Re(nt,_e){var Pe;return!ae(_e)&&typeof _e!="string"&&_e!==void 0&&!nt.objectMode&&(Pe=new ke("chunk",["string","Buffer","Uint8Array"],_e)),Pe}Xe.prototype.isPaused=function(){return this._readableState.flowing===!1},Xe.prototype.setEncoding=function(nt){be||(be=y("string_decoder/").StringDecoder);var _e=new be(nt);this._readableState.decoder=_e,this._readableState.encoding=this._readableState.decoder.encoding;for(var Pe=this._readableState.buffer.head,He="";Pe!==null;)He+=_e.write(Pe.data),Pe=Pe.next;return this._readableState.buffer.clear(),He!==""&&this._readableState.buffer.push(He),this._readableState.length=He.length,this};var We=1073741824;function rt(nt){return nt>=We?nt=We:(nt--,nt|=nt>>>1,nt|=nt>>>2,nt|=nt>>>4,nt|=nt>>>8,nt|=nt>>>16,nt++),nt}function ot(nt,_e){return nt<=0||_e.length===0&&_e.ended?0:_e.objectMode?1:nt!==nt?_e.flowing&&_e.length?_e.buffer.head.data.length:_e.length:(nt>_e.highWaterMark&&(_e.highWaterMark=rt(nt)),nt<=_e.length?nt:_e.ended?_e.length:(_e.needReadable=!0,0))}Xe.prototype.read=function(nt){fe("read",nt),nt=parseInt(nt,10);var _e=this._readableState,Pe=nt;if(nt!==0&&(_e.emittedReadable=!1),nt===0&&_e.needReadable&&((_e.highWaterMark!==0?_e.length>=_e.highWaterMark:_e.length>0)||_e.ended))return fe("read: emitReadable",_e.length,_e.ended),_e.length===0&&_e.ended?Ye(this):Je(this),null;if(nt=ot(nt,_e),nt===0&&_e.ended)return _e.length===0&&Ye(this),null;var He=_e.needReadable;fe("need readable",He),(_e.length===0||_e.length-nt<_e.highWaterMark)&&(He=!0,fe("length less than watermark",He)),_e.ended||_e.reading?(He=!1,fe("reading or ended",He)):He&&(fe("do read"),_e.reading=!0,_e.sync=!0,_e.length===0&&(_e.needReadable=!0),this._read(_e.highWaterMark),_e.sync=!1,_e.reading||(nt=ot(Pe,_e)));var it;return nt>0?it=Ie(nt,_e):it=null,it===null?(_e.needReadable=_e.length<=_e.highWaterMark,nt=0):(_e.length-=nt,_e.awaitDrain=0),_e.length===0&&(_e.ended||(_e.needReadable=!0),Pe!==nt&&_e.ended&&Ye(this)),it!==null&&this.emit("data",it),it};function at(nt,_e){if(fe("onEofChunk"),!_e.ended){if(_e.decoder){var Pe=_e.decoder.end();Pe&&Pe.length&&(_e.buffer.push(Pe),_e.length+=_e.objectMode?1:Pe.length)}_e.ended=!0,_e.sync?Je(nt):(_e.needReadable=!1,_e.emittedReadable||(_e.emittedReadable=!0,Qe(nt)))}}function Je(nt){var _e=nt._readableState;fe("emitReadable",_e.needReadable,_e.emittedReadable),_e.needReadable=!1,_e.emittedReadable||(fe("emitReadable",_e.flowing),_e.emittedReadable=!0,ee.nextTick(Qe,nt))}function Qe(nt){var _e=nt._readableState;fe("emitReadable_",_e.destroyed,_e.length,_e.ended),!_e.destroyed&&(_e.length||_e.ended)&&(nt.emit("readable"),_e.emittedReadable=!1),_e.needReadable=!_e.flowing&&!_e.ended&&_e.length<=_e.highWaterMark,Ke(nt)}function Ve(nt,_e){_e.readingMore||(_e.readingMore=!0,ee.nextTick(ct,nt,_e))}function ct(nt,_e){for(;!_e.reading&&!_e.ended&&(_e.length<_e.highWaterMark||_e.flowing&&_e.length===0);){var Pe=_e.length;if(fe("maybeReadMore read 0"),nt.read(0),Pe===_e.length)break}_e.readingMore=!1}Xe.prototype._read=function(nt){Me(this,new Ae("_read()"))},Xe.prototype.pipe=function(nt,_e){var Pe=this,He=this._readableState;switch(He.pipesCount){case 0:He.pipes=nt;break;case 1:He.pipes=[He.pipes,nt];break;default:He.pipes.push(nt);break}He.pipesCount+=1,fe("pipe count=%d opts=%j",He.pipesCount,_e);var it=(!_e||_e.end!==!1)&&nt!==ee.stdout&&nt!==ee.stderr,Te=it?ye:ht;He.endEmitted?ee.nextTick(Te):Pe.once("end",Te),nt.on("unpipe",xe);function xe(xt,St){fe("onunpipe"),xt===Pe&&St&&St.hasUnpiped===!1&&(St.hasUnpiped=!0,Ne())}function ye(){fe("onend"),nt.end()}var Le=tt(Pe);nt.on("drain",Le);var et=!1;function Ne(){fe("cleanup"),nt.removeListener("close",vt),nt.removeListener("finish",gt),nt.removeListener("drain",Le),nt.removeListener("error",wt),nt.removeListener("unpipe",xe),Pe.removeListener("end",ye),Pe.removeListener("end",ht),Pe.removeListener("data",yt),et=!0,He.awaitDrain&&(!nt._writableState||nt._writableState.needDrain)&&Le()}Pe.on("data",yt);function yt(xt){fe("ondata");var St=nt.write(xt);fe("dest.write",St),St===!1&&((He.pipesCount===1&&He.pipes===nt||He.pipesCount>1&&mt(He.pipes,nt)!==-1)&&!et&&(fe("false write response, pause",He.awaitDrain),He.awaitDrain++),Pe.pause())}function wt(xt){fe("onerror",xt),ht(),nt.removeListener("error",wt),z(nt,"error")===0&&Me(nt,xt)}je(nt,"error",wt);function vt(){nt.removeListener("finish",gt),ht()}nt.once("close",vt);function gt(){fe("onfinish"),nt.removeListener("close",vt),ht()}nt.once("finish",gt);function ht(){fe("unpipe"),Pe.unpipe(nt)}return nt.emit("pipe",Pe),He.flowing||(fe("pipe resume"),Pe.resume()),nt};function tt(nt){return function(){var Pe=nt._readableState;fe("pipeOnDrain",Pe.awaitDrain),Pe.awaitDrain&&Pe.awaitDrain--,Pe.awaitDrain===0&&z(nt,"data")&&(Pe.flowing=!0,Ke(nt))}}Xe.prototype.unpipe=function(nt){var _e=this._readableState,Pe={hasUnpiped:!1};if(_e.pipesCount===0)return this;if(_e.pipesCount===1)return nt&&nt!==_e.pipes?this:(nt||(nt=_e.pipes),_e.pipes=null,_e.pipesCount=0,_e.flowing=!1,nt&&nt.emit("unpipe",this,Pe),this);if(!nt){var He=_e.pipes,it=_e.pipesCount;_e.pipes=null,_e.pipesCount=0,_e.flowing=!1;for(var Te=0;Te<it;Te++)He[Te].emit("unpipe",this,{hasUnpiped:!1});return this}var xe=mt(_e.pipes,nt);return xe===-1?this:(_e.pipes.splice(xe,1),_e.pipesCount-=1,_e.pipesCount===1&&(_e.pipes=_e.pipes[0]),nt.emit("unpipe",this,Pe),this)},Xe.prototype.on=function(nt,_e){var Pe=se.prototype.on.call(this,nt,_e),He=this._readableState;return nt==="data"?(He.readableListening=this.listenerCount("readable")>0,He.flowing!==!1&&this.resume()):nt==="readable"&&!He.endEmitted&&!He.readableListening&&(He.readableListening=He.needReadable=!0,He.flowing=!1,He.emittedReadable=!1,fe("on readable",He.length,He.reading),He.length?Je(this):He.reading||ee.nextTick(st,this)),Pe},Xe.prototype.addListener=Xe.prototype.on,Xe.prototype.removeListener=function(nt,_e){var Pe=se.prototype.removeListener.call(this,nt,_e);return nt==="readable"&&ee.nextTick(ut,this),Pe},Xe.prototype.removeAllListeners=function(nt){var _e=se.prototype.removeAllListeners.apply(this,arguments);return(nt==="readable"||nt===void 0)&&ee.nextTick(ut,this),_e};function ut(nt){var _e=nt._readableState;_e.readableListening=nt.listenerCount("readable")>0,_e.resumeScheduled&&!_e.paused?_e.flowing=!0:nt.listenerCount("data")>0&&nt.resume()}function st(nt){fe("readable nexttick read 0"),nt.read(0)}Xe.prototype.resume=function(){var nt=this._readableState;return nt.flowing||(fe("resume"),nt.flowing=!nt.readableListening,ze(this,nt)),nt.paused=!1,this};function ze(nt,_e){_e.resumeScheduled||(_e.resumeScheduled=!0,ee.nextTick(Be,nt,_e))}function Be(nt,_e){fe("resume",_e.reading),_e.reading||nt.read(0),_e.resumeScheduled=!1,nt.emit("resume"),Ke(nt),_e.flowing&&!_e.reading&&nt.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._readableState.paused=!0,this};function Ke(nt){var _e=nt._readableState;for(fe("flow",_e.flowing);_e.flowing&&nt.read()!==null;);}Xe.prototype.wrap=function(nt){var _e=this,Pe=this._readableState,He=!1;nt.on("end",function(){if(fe("wrapped end"),Pe.decoder&&!Pe.ended){var xe=Pe.decoder.end();xe&&xe.length&&_e.push(xe)}_e.push(null)}),nt.on("data",function(xe){if(fe("wrapped data"),Pe.decoder&&(xe=Pe.decoder.write(xe)),!(Pe.objectMode&&xe==null)&&!(!Pe.objectMode&&(!xe||!xe.length))){var ye=_e.push(xe);ye||(He=!0,nt.pause())}});for(var it in nt)this[it]===void 0&&typeof nt[it]=="function"&&(this[it]=function(ye){return function(){return nt[ye].apply(nt,arguments)}}(it));for(var Te=0;Te<Se.length;Te++)nt.on(Se[Te],this.emit.bind(this,Se[Te]));return this._read=function(xe){fe("wrapped _read",xe),He&&(He=!1,nt.resume())},this},typeof Symbol=="function"&&(Xe.prototype[Symbol.asyncIterator]=function(){return Ee===void 0&&(Ee=y("./internal/streams/async_iterator")),Ee(this)}),Object.defineProperty(Xe.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Xe.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Xe.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(_e){this._readableState&&(this._readableState.flowing=_e)}}),Xe._fromList=Ie,Object.defineProperty(Xe.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ie(nt,_e){if(_e.length===0)return null;var Pe;return _e.objectMode?Pe=_e.buffer.shift():!nt||nt>=_e.length?(_e.decoder?Pe=_e.buffer.join(""):_e.buffer.length===1?Pe=_e.buffer.first():Pe=_e.buffer.concat(_e.length),_e.buffer.clear()):Pe=_e.buffer.consume(nt,_e.decoder),Pe}function Ye(nt){var _e=nt._readableState;fe("endReadable",_e.endEmitted),_e.endEmitted||(_e.ended=!0,ee.nextTick(ft,_e,nt))}function ft(nt,_e){if(fe("endReadableNT",nt.endEmitted,nt.length),!nt.endEmitted&&nt.length===0&&(nt.endEmitted=!0,_e.readable=!1,_e.emit("end"),nt.autoDestroy)){var Pe=_e._writableState;(!Pe||Pe.autoDestroy&&Pe.finished)&&_e.destroy()}}typeof Symbol=="function"&&(Xe.from=function(nt,_e){return Oe===void 0&&(Oe=y("./internal/streams/from")),Oe(Xe,nt,_e)});function mt(nt,_e){for(var Pe=0,He=nt.length;Pe<He;Pe++)if(nt[Pe]===_e)return Pe;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,we,ge){"use strict";we.exports=re;var ee=y("../errors").codes,E=ee.ERR_METHOD_NOT_IMPLEMENTED,ie=ee.ERR_MULTIPLE_CALLBACK,le=ee.ERR_TRANSFORM_ALREADY_TRANSFORMING,z=ee.ERR_TRANSFORM_WITH_LENGTH_0,se=y("./_stream_duplex");y("inherits")(re,se);function x(ue,fe){var de=this._transformState;de.transforming=!1;var he=de.writecb;if(he===null)return this.emit("error",new ie);de.writechunk=null,de.writecb=null,fe!=null&&this.push(fe),he(ue);var ce=this._readableState;ce.reading=!1,(ce.needReadable||ce.length<ce.highWaterMark)&&this._read(ce.highWaterMark)}function re(ue){if(!(this instanceof re))return new re(ue);se.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",te)}function te(){var ue=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(fe,de){ae(ue,fe,de)}):ae(this,null,null)}re.prototype.push=function(ue,fe){return this._transformState.needTransform=!1,se.prototype.push.call(this,ue,fe)},re.prototype._transform=function(ue,fe,de){de(new E("_transform()"))},re.prototype._write=function(ue,fe,de){var he=this._transformState;if(he.writecb=de,he.writechunk=ue,he.writeencoding=fe,!he.transforming){var ce=this._readableState;(he.needTransform||ce.needReadable||ce.length<ce.highWaterMark)&&this._read(ce.highWaterMark)}},re.prototype._read=function(ue){var fe=this._transformState;fe.writechunk!==null&&!fe.transforming?(fe.transforming=!0,this._transform(fe.writechunk,fe.writeencoding,fe.afterTransform)):fe.needTransform=!0},re.prototype._destroy=function(ue,fe){se.prototype._destroy.call(this,ue,function(de){fe(de)})};function ae(ue,fe,de){if(fe)return ue.emit("error",fe);if(de!=null&&ue.push(de),ue._writableState.length)throw new z;if(ue._transformState.transforming)throw new le;return ue.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(y,we,ge){(function(ee,E){(function(){"use strict";we.exports=Ze;function ie(Ke,Ie,Ye){this.chunk=Ke,this.encoding=Ie,this.callback=Ye,this.next=null}function le(Ke){var Ie=this;this.next=null,this.entry=null,this.finish=function(){Be(Ie,Ke)}}var z;Ze.WritableState=Se;var se={deprecate:y("util-deprecate")},x=y("./internal/streams/stream"),re=y("buffer").Buffer,te=(typeof E!="undefined"?E:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function ae(Ke){return re.from(Ke)}function ue(Ke){return re.isBuffer(Ke)||Ke instanceof te}var fe=y("./internal/streams/destroy"),de=y("./internal/streams/state"),he=de.getHighWaterMark,ce=y("../errors").codes,pe=ce.ERR_INVALID_ARG_TYPE,Ce=ce.ERR_METHOD_NOT_IMPLEMENTED,ke=ce.ERR_MULTIPLE_CALLBACK,De=ce.ERR_STREAM_CANNOT_PIPE,Ae=ce.ERR_STREAM_DESTROYED,ve=ce.ERR_STREAM_NULL_VALUES,be=ce.ERR_STREAM_WRITE_AFTER_END,Ee=ce.ERR_UNKNOWN_ENCODING,Oe=fe.errorOrDestroy;y("inherits")(Ze,x);function Me(){}function Se(Ke,Ie,Ye){z=z||y("./_stream_duplex"),Ke=Ke||{},typeof Ye!="boolean"&&(Ye=Ie instanceof z),this.objectMode=!!Ke.objectMode,Ye&&(this.objectMode=this.objectMode||!!Ke.writableObjectMode),this.highWaterMark=he(this,Ke,"writableHighWaterMark",Ye),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ft=Ke.decodeStrings===!1;this.decodeStrings=!ft,this.defaultEncoding=Ke.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(mt){at(Ie,mt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ke.emitClose!==!1,this.autoDestroy=!!Ke.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new le(this)}Se.prototype.getBuffer=function(){for(var Ie=this.bufferedRequest,Ye=[];Ie;)Ye.push(Ie),Ie=Ie.next;return Ye},function(){try{Object.defineProperty(Se.prototype,"buffer",{get:se.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ke){}}();var je;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(je=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ze,Symbol.hasInstance,{value:function(Ie){return je.call(this,Ie)?!0:this!==Ze?!1:Ie&&Ie._writableState instanceof Se}})):je=function(Ie){return Ie instanceof this};function Ze(Ke){z=z||y("./_stream_duplex");var Ie=this instanceof z;if(!Ie&&!je.call(Ze,this))return new Ze(Ke);this._writableState=new Se(Ke,this,Ie),this.writable=!0,Ke&&(typeof Ke.write=="function"&&(this._write=Ke.write),typeof Ke.writev=="function"&&(this._writev=Ke.writev),typeof Ke.destroy=="function"&&(this._destroy=Ke.destroy),typeof Ke.final=="function"&&(this._final=Ke.final)),x.call(this)}Ze.prototype.pipe=function(){Oe(this,new De)};function Xe(Ke,Ie){var Ye=new be;Oe(Ke,Ye),ee.nextTick(Ie,Ye)}function $e(Ke,Ie,Ye,ft){var mt;return Ye===null?mt=new ve:typeof Ye!="string"&&!Ie.objectMode&&(mt=new pe("chunk",["string","Buffer"],Ye)),mt?(Oe(Ke,mt),ee.nextTick(ft,mt),!1):!0}Ze.prototype.write=function(Ke,Ie,Ye){var ft=this._writableState,mt=!1,nt=!ft.objectMode&&ue(Ke);return nt&&!re.isBuffer(Ke)&&(Ke=ae(Ke)),typeof Ie=="function"&&(Ye=Ie,Ie=null),nt?Ie="buffer":Ie||(Ie=ft.defaultEncoding),typeof Ye!="function"&&(Ye=Me),ft.ending?Xe(this,Ye):(nt||$e(this,ft,Ke,Ye))&&(ft.pendingcb++,mt=Re(this,ft,nt,Ke,Ie,Ye)),mt},Ze.prototype.cork=function(){this._writableState.corked++},Ze.prototype.uncork=function(){var Ke=this._writableState;Ke.corked&&(Ke.corked--,!Ke.writing&&!Ke.corked&&!Ke.bufferProcessing&&Ke.bufferedRequest&&Ve(this,Ke))},Ze.prototype.setDefaultEncoding=function(Ie){if(typeof Ie=="string"&&(Ie=Ie.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ie+"").toLowerCase())>-1))throw new Ee(Ie);return this._writableState.defaultEncoding=Ie,this},Object.defineProperty(Ze.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function lt(Ke,Ie,Ye){return!Ke.objectMode&&Ke.decodeStrings!==!1&&typeof Ie=="string"&&(Ie=re.from(Ie,Ye)),Ie}Object.defineProperty(Ze.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Re(Ke,Ie,Ye,ft,mt,nt){if(!Ye){var _e=lt(Ie,ft,mt);ft!==_e&&(Ye=!0,mt="buffer",ft=_e)}var Pe=Ie.objectMode?1:ft.length;Ie.length+=Pe;var He=Ie.length<Ie.highWaterMark;if(He||(Ie.needDrain=!0),Ie.writing||Ie.corked){var it=Ie.lastBufferedRequest;Ie.lastBufferedRequest={chunk:ft,encoding:mt,isBuf:Ye,callback:nt,next:null},it?it.next=Ie.lastBufferedRequest:Ie.bufferedRequest=Ie.lastBufferedRequest,Ie.bufferedRequestCount+=1}else We(Ke,Ie,!1,Pe,ft,mt,nt);return He}function We(Ke,Ie,Ye,ft,mt,nt,_e){Ie.writelen=ft,Ie.writecb=_e,Ie.writing=!0,Ie.sync=!0,Ie.destroyed?Ie.onwrite(new Ae("write")):Ye?Ke._writev(mt,Ie.onwrite):Ke._write(mt,nt,Ie.onwrite),Ie.sync=!1}function rt(Ke,Ie,Ye,ft,mt){--Ie.pendingcb,Ye?(ee.nextTick(mt,ft),ee.nextTick(st,Ke,Ie),Ke._writableState.errorEmitted=!0,Oe(Ke,ft)):(mt(ft),Ke._writableState.errorEmitted=!0,Oe(Ke,ft),st(Ke,Ie))}function ot(Ke){Ke.writing=!1,Ke.writecb=null,Ke.length-=Ke.writelen,Ke.writelen=0}function at(Ke,Ie){var Ye=Ke._writableState,ft=Ye.sync,mt=Ye.writecb;if(typeof mt!="function")throw new ke;if(ot(Ye),Ie)rt(Ke,Ye,ft,Ie,mt);else{var nt=ct(Ye)||Ke.destroyed;!nt&&!Ye.corked&&!Ye.bufferProcessing&&Ye.bufferedRequest&&Ve(Ke,Ye),ft?ee.nextTick(Je,Ke,Ye,nt,mt):Je(Ke,Ye,nt,mt)}}function Je(Ke,Ie,Ye,ft){Ye||Qe(Ke,Ie),Ie.pendingcb--,ft(),st(Ke,Ie)}function Qe(Ke,Ie){Ie.length===0&&Ie.needDrain&&(Ie.needDrain=!1,Ke.emit("drain"))}function Ve(Ke,Ie){Ie.bufferProcessing=!0;var Ye=Ie.bufferedRequest;if(Ke._writev&&Ye&&Ye.next){var ft=Ie.bufferedRequestCount,mt=new Array(ft),nt=Ie.corkedRequestsFree;nt.entry=Ye;for(var _e=0,Pe=!0;Ye;)mt[_e]=Ye,Ye.isBuf||(Pe=!1),Ye=Ye.next,_e+=1;mt.allBuffers=Pe,We(Ke,Ie,!0,Ie.length,mt,"",nt.finish),Ie.pendingcb++,Ie.lastBufferedRequest=null,nt.next?(Ie.corkedRequestsFree=nt.next,nt.next=null):Ie.corkedRequestsFree=new le(Ie),Ie.bufferedRequestCount=0}else{for(;Ye;){var He=Ye.chunk,it=Ye.encoding,Te=Ye.callback,xe=Ie.objectMode?1:He.length;if(We(Ke,Ie,!1,xe,He,it,Te),Ye=Ye.next,Ie.bufferedRequestCount--,Ie.writing)break}Ye===null&&(Ie.lastBufferedRequest=null)}Ie.bufferedRequest=Ye,Ie.bufferProcessing=!1}Ze.prototype._write=function(Ke,Ie,Ye){Ye(new Ce("_write()"))},Ze.prototype._writev=null,Ze.prototype.end=function(Ke,Ie,Ye){var ft=this._writableState;return typeof Ke=="function"?(Ye=Ke,Ke=null,Ie=null):typeof Ie=="function"&&(Ye=Ie,Ie=null),Ke!=null&&this.write(Ke,Ie),ft.corked&&(ft.corked=1,this.uncork()),ft.ending||ze(this,ft,Ye),this},Object.defineProperty(Ze.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ct(Ke){return Ke.ending&&Ke.length===0&&Ke.bufferedRequest===null&&!Ke.finished&&!Ke.writing}function tt(Ke,Ie){Ke._final(function(Ye){Ie.pendingcb--,Ye&&Oe(Ke,Ye),Ie.prefinished=!0,Ke.emit("prefinish"),st(Ke,Ie)})}function ut(Ke,Ie){!Ie.prefinished&&!Ie.finalCalled&&(typeof Ke._final=="function"&&!Ie.destroyed?(Ie.pendingcb++,Ie.finalCalled=!0,ee.nextTick(tt,Ke,Ie)):(Ie.prefinished=!0,Ke.emit("prefinish")))}function st(Ke,Ie){var Ye=ct(Ie);if(Ye&&(ut(Ke,Ie),Ie.pendingcb===0&&(Ie.finished=!0,Ke.emit("finish"),Ie.autoDestroy))){var ft=Ke._readableState;(!ft||ft.autoDestroy&&ft.endEmitted)&&Ke.destroy()}return Ye}function ze(Ke,Ie,Ye){Ie.ending=!0,st(Ke,Ie),Ye&&(Ie.finished?ee.nextTick(Ye):Ke.once("finish",Ye)),Ie.ended=!0,Ke.writable=!1}function Be(Ke,Ie,Ye){var ft=Ke.entry;for(Ke.entry=null;ft;){var mt=ft.callback;Ie.pendingcb--,mt(Ye),ft=ft.next}Ie.corkedRequestsFree.next=Ke}Object.defineProperty(Ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Ie){this._writableState&&(this._writableState.destroyed=Ie)}}),Ze.prototype.destroy=fe.destroy,Ze.prototype._undestroy=fe.undestroy,Ze.prototype._destroy=function(Ke,Ie){Ie(Ke)}}).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,we,ge){(function(ee){(function(){"use strict";var E;function ie(ve,be,Ee){return be=le(be),be in ve?Object.defineProperty(ve,be,{value:Ee,enumerable:!0,configurable:!0,writable:!0}):ve[be]=Ee,ve}function le(ve){var be=z(ve,"string");return typeof be=="symbol"?be:String(be)}function z(ve,be){if(typeof ve!="object"||ve===null)return ve;var Ee=ve[Symbol.toPrimitive];if(Ee!==void 0){var Oe=Ee.call(ve,be||"default");if(typeof Oe!="object")return Oe;throw new TypeError("@@toPrimitive must return a primitive value.")}return(be==="string"?String:Number)(ve)}var se=y("./end-of-stream"),x=Symbol("lastResolve"),re=Symbol("lastReject"),te=Symbol("error"),ae=Symbol("ended"),ue=Symbol("lastPromise"),fe=Symbol("handlePromise"),de=Symbol("stream");function he(ve,be){return{value:ve,done:be}}function ce(ve){var be=ve[x];if(be!==null){var Ee=ve[de].read();Ee!==null&&(ve[ue]=null,ve[x]=null,ve[re]=null,be(he(Ee,!1)))}}function pe(ve){ee.nextTick(ce,ve)}function Ce(ve,be){return function(Ee,Oe){ve.then(function(){if(be[ae]){Ee(he(void 0,!0));return}be[fe](Ee,Oe)},Oe)}}var ke=Object.getPrototypeOf(function(){}),De=Object.setPrototypeOf((E={get stream(){return this[de]},next:function(){var be=this,Ee=this[te];if(Ee!==null)return Promise.reject(Ee);if(this[ae])return Promise.resolve(he(void 0,!0));if(this[de].destroyed)return new Promise(function(je,Ze){ee.nextTick(function(){be[te]?Ze(be[te]):je(he(void 0,!0))})});var Oe=this[ue],Me;if(Oe)Me=new Promise(Ce(Oe,this));else{var Se=this[de].read();if(Se!==null)return Promise.resolve(he(Se,!1));Me=new Promise(this[fe])}return this[ue]=Me,Me}},ie(E,Symbol.asyncIterator,function(){return this}),ie(E,"return",function(){var be=this;return new Promise(function(Ee,Oe){be[de].destroy(null,function(Me){if(Me){Oe(Me);return}Ee(he(void 0,!0))})})}),E),ke),Ae=function(be){var Ee,Oe=Object.create(De,(Ee={},ie(Ee,de,{value:be,writable:!0}),ie(Ee,x,{value:null,writable:!0}),ie(Ee,re,{value:null,writable:!0}),ie(Ee,te,{value:null,writable:!0}),ie(Ee,ae,{value:be._readableState.endEmitted,writable:!0}),ie(Ee,fe,{value:function(Se,je){var Ze=Oe[de].read();Ze?(Oe[ue]=null,Oe[x]=null,Oe[re]=null,Se(he(Ze,!1))):(Oe[x]=Se,Oe[re]=je)},writable:!0}),Ee));return Oe[ue]=null,se(be,function(Me){if(Me&&Me.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Se=Oe[re];Se!==null&&(Oe[ue]=null,Oe[x]=null,Oe[re]=null,Se(Me)),Oe[te]=Me;return}var je=Oe[x];je!==null&&(Oe[ue]=null,Oe[x]=null,Oe[re]=null,je(he(void 0,!0))),Oe[ae]=!0}),be.on("readable",pe.bind(null,Oe)),Oe};we.exports=Ae}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,we,ge){"use strict";function ee(ce,pe){var Ce=Object.keys(ce);if(Object.getOwnPropertySymbols){var ke=Object.getOwnPropertySymbols(ce);pe&&(ke=ke.filter(function(De){return Object.getOwnPropertyDescriptor(ce,De).enumerable})),Ce.push.apply(Ce,ke)}return Ce}function E(ce){for(var pe=1;pe<arguments.length;pe++){var Ce=arguments[pe]!=null?arguments[pe]:{};pe%2?ee(Object(Ce),!0).forEach(function(ke){ie(ce,ke,Ce[ke])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ce,Object.getOwnPropertyDescriptors(Ce)):ee(Object(Ce)).forEach(function(ke){Object.defineProperty(ce,ke,Object.getOwnPropertyDescriptor(Ce,ke))})}return ce}function ie(ce,pe,Ce){return pe=x(pe),pe in ce?Object.defineProperty(ce,pe,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):ce[pe]=Ce,ce}function le(ce,pe){if(!(ce instanceof pe))throw new TypeError("Cannot call a class as a function")}function z(ce,pe){for(var Ce=0;Ce<pe.length;Ce++){var ke=pe[Ce];ke.enumerable=ke.enumerable||!1,ke.configurable=!0,"value"in ke&&(ke.writable=!0),Object.defineProperty(ce,x(ke.key),ke)}}function se(ce,pe,Ce){return pe&&z(ce.prototype,pe),Ce&&z(ce,Ce),Object.defineProperty(ce,"prototype",{writable:!1}),ce}function x(ce){var pe=re(ce,"string");return typeof pe=="symbol"?pe:String(pe)}function re(ce,pe){if(typeof ce!="object"||ce===null)return ce;var Ce=ce[Symbol.toPrimitive];if(Ce!==void 0){var ke=Ce.call(ce,pe||"default");if(typeof ke!="object")return ke;throw new TypeError("@@toPrimitive must return a primitive value.")}return(pe==="string"?String:Number)(ce)}var te=y("buffer"),ae=te.Buffer,ue=y("util"),fe=ue.inspect,de=fe&&fe.custom||"inspect";function he(ce,pe,Ce){ae.prototype.copy.call(ce,pe,Ce)}we.exports=function(){function ce(){le(this,ce),this.head=null,this.tail=null,this.length=0}return se(ce,[{key:"push",value:function(Ce){var ke={data:Ce,next:null};this.length>0?this.tail.next=ke:this.head=ke,this.tail=ke,++this.length}},{key:"unshift",value:function(Ce){var ke={data:Ce,next:this.head};this.length===0&&(this.tail=ke),this.head=ke,++this.length}},{key:"shift",value:function(){if(this.length!==0){var Ce=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ce}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(Ce){if(this.length===0)return"";for(var ke=this.head,De=""+ke.data;ke=ke.next;)De+=Ce+ke.data;return De}},{key:"concat",value:function(Ce){if(this.length===0)return ae.alloc(0);for(var ke=ae.allocUnsafe(Ce>>>0),De=this.head,Ae=0;De;)he(De.data,ke,Ae),Ae+=De.data.length,De=De.next;return ke}},{key:"consume",value:function(Ce,ke){var De;return Ce<this.head.data.length?(De=this.head.data.slice(0,Ce),this.head.data=this.head.data.slice(Ce)):Ce===this.head.data.length?De=this.shift():De=ke?this._getString(Ce):this._getBuffer(Ce),De}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ce){var ke=this.head,De=1,Ae=ke.data;for(Ce-=Ae.length;ke=ke.next;){var ve=ke.data,be=Ce>ve.length?ve.length:Ce;if(be===ve.length?Ae+=ve:Ae+=ve.slice(0,Ce),Ce-=be,Ce===0){be===ve.length?(++De,ke.next?this.head=ke.next:this.head=this.tail=null):(this.head=ke,ke.data=ve.slice(be));break}++De}return this.length-=De,Ae}},{key:"_getBuffer",value:function(Ce){var ke=ae.allocUnsafe(Ce),De=this.head,Ae=1;for(De.data.copy(ke),Ce-=De.data.length;De=De.next;){var ve=De.data,be=Ce>ve.length?ve.length:Ce;if(ve.copy(ke,ke.length-Ce,0,be),Ce-=be,Ce===0){be===ve.length?(++Ae,De.next?this.head=De.next:this.head=this.tail=null):(this.head=De,De.data=ve.slice(be));break}++Ae}return this.length-=Ae,ke}},{key:de,value:function(Ce,ke){return fe(this,E(E({},ke),{},{depth:0,customInspect:!1}))}}]),ce}()},{buffer:90,util:89}],407:[function(y,we,ge){(function(ee){(function(){"use strict";function E(re,te){var ae=this,ue=this._readableState&&this._readableState.destroyed,fe=this._writableState&&this._writableState.destroyed;return ue||fe?(te?te(re):re&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,ee.nextTick(se,this,re)):ee.nextTick(se,this,re)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(re||null,function(de){!te&&de?ae._writableState?ae._writableState.errorEmitted?ee.nextTick(le,ae):(ae._writableState.errorEmitted=!0,ee.nextTick(ie,ae,de)):ee.nextTick(ie,ae,de):te?(ee.nextTick(le,ae),te(de)):ee.nextTick(le,ae)}),this)}function ie(re,te){se(re,te),le(re)}function le(re){re._writableState&&!re._writableState.emitClose||re._readableState&&!re._readableState.emitClose||re.emit("close")}function z(){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 se(re,te){re.emit("error",te)}function x(re,te){var ae=re._readableState,ue=re._writableState;ae&&ae.autoDestroy||ue&&ue.autoDestroy?re.destroy(te):re.emit("error",te)}we.exports={destroy:E,undestroy:z,errorOrDestroy:x}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,we,ge){"use strict";var ee=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function E(se){var x=!1;return function(){if(!x){x=!0;for(var re=arguments.length,te=new Array(re),ae=0;ae<re;ae++)te[ae]=arguments[ae];se.apply(this,te)}}}function ie(){}function le(se){return se.setHeader&&typeof se.abort=="function"}function z(se,x,re){if(typeof x=="function")return z(se,null,x);x||(x={}),re=E(re||ie);var te=x.readable||x.readable!==!1&&se.readable,ae=x.writable||x.writable!==!1&&se.writable,ue=function(){se.writable||de()},fe=se._writableState&&se._writableState.finished,de=function(){ae=!1,fe=!0,te||re.call(se)},he=se._readableState&&se._readableState.endEmitted,ce=function(){te=!1,he=!0,ae||re.call(se)},pe=function(Ae){re.call(se,Ae)},Ce=function(){var Ae;if(te&&!he)return(!se._readableState||!se._readableState.ended)&&(Ae=new ee),re.call(se,Ae);if(ae&&!fe)return(!se._writableState||!se._writableState.ended)&&(Ae=new ee),re.call(se,Ae)},ke=function(){se.req.on("finish",de)};return le(se)?(se.on("complete",de),se.on("abort",Ce),se.req?ke():se.on("request",ke)):ae&&!se._writableState&&(se.on("end",ue),se.on("close",ue)),se.on("end",ce),se.on("finish",de),x.error!==!1&&se.on("error",pe),se.on("close",Ce),function(){se.removeListener("complete",de),se.removeListener("abort",Ce),se.removeListener("request",ke),se.req&&se.req.removeListener("finish",de),se.removeListener("end",ue),se.removeListener("close",ue),se.removeListener("finish",de),se.removeListener("end",ce),se.removeListener("error",pe),se.removeListener("close",Ce)}}we.exports=z},{"../../../errors":399}],409:[function(y,we,ge){we.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,we,ge){"use strict";var ee;function E(de){var he=!1;return function(){he||(he=!0,de.apply(void 0,arguments))}}var ie=y("../../../errors").codes,le=ie.ERR_MISSING_ARGS,z=ie.ERR_STREAM_DESTROYED;function se(de){if(de)throw de}function x(de){return de.setHeader&&typeof de.abort=="function"}function re(de,he,ce,pe){pe=E(pe);var Ce=!1;de.on("close",function(){Ce=!0}),ee===void 0&&(ee=y("./end-of-stream")),ee(de,{readable:he,writable:ce},function(De){if(De)return pe(De);Ce=!0,pe()});var ke=!1;return function(De){if(!Ce&&!ke){if(ke=!0,x(de))return de.abort();if(typeof de.destroy=="function")return de.destroy();pe(De||new z("pipe"))}}}function te(de){de()}function ae(de,he){return de.pipe(he)}function ue(de){return!de.length||typeof de[de.length-1]!="function"?se:de.pop()}function fe(){for(var de=arguments.length,he=new Array(de),ce=0;ce<de;ce++)he[ce]=arguments[ce];var pe=ue(he);if(Array.isArray(he[0])&&(he=he[0]),he.length<2)throw new le("streams");var Ce,ke=he.map(function(De,Ae){var ve=Ae<he.length-1,be=Ae>0;return re(De,ve,be,function(Ee){Ce||(Ce=Ee),Ee&&ke.forEach(te),!ve&&(ke.forEach(te),pe(Ce))})});return he.reduce(ae)}we.exports=fe},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,we,ge){"use strict";var ee=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function E(le,z,se){return le.highWaterMark!=null?le.highWaterMark:z?le[se]:null}function ie(le,z,se,x){var re=E(z,x,se);if(re!=null){if(!(isFinite(re)&&Math.floor(re)===re)||re<0){var te=x?se:"highWaterMark";throw new ee(te,re)}return Math.floor(re)}return le.objectMode?16:16*1024}we.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(y,we,ge){arguments[4][393][0].apply(ge,arguments)},{dup:393,events:344}],413:[function(y,we,ge){"use strict";var ee=y("safe-buffer").Buffer,E=ee.isEncoding||function(ke){switch(ke=""+ke,ke&&ke.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 ie(ke){if(!ke)return"utf8";for(var De;;)switch(ke){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 ke;default:if(De)return;ke=(""+ke).toLowerCase(),De=!0}}function le(ke){var De=ie(ke);if(typeof De!="string"&&(ee.isEncoding===E||!E(ke)))throw new Error("Unknown encoding: "+ke);return De||ke}ge.StringDecoder=z;function z(ke){this.encoding=le(ke);var De;switch(this.encoding){case"utf16le":this.text=fe,this.end=de,De=4;break;case"utf8":this.fillLast=te,De=4;break;case"base64":this.text=he,this.end=ce,De=3;break;default:this.write=pe,this.end=Ce;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ee.allocUnsafe(De)}z.prototype.write=function(ke){if(ke.length===0)return"";var De,Ae;if(this.lastNeed){if(De=this.fillLast(ke),De===void 0)return"";Ae=this.lastNeed,this.lastNeed=0}else Ae=0;return Ae<ke.length?De?De+this.text(ke,Ae):this.text(ke,Ae):De||""},z.prototype.end=ue,z.prototype.text=ae,z.prototype.fillLast=function(ke){if(this.lastNeed<=ke.length)return ke.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ke.copy(this.lastChar,this.lastTotal-this.lastNeed,0,ke.length),this.lastNeed-=ke.length};function se(ke){return ke<=127?0:ke>>5===6?2:ke>>4===14?3:ke>>3===30?4:ke>>6===2?-1:-2}function x(ke,De,Ae){var ve=De.length-1;if(ve<Ae)return 0;var be=se(De[ve]);return be>=0?(be>0&&(ke.lastNeed=be-1),be):--ve<Ae||be===-2?0:(be=se(De[ve]),be>=0?(be>0&&(ke.lastNeed=be-2),be):--ve<Ae||be===-2?0:(be=se(De[ve]),be>=0?(be>0&&(be===2?be=0:ke.lastNeed=be-3),be):0))}function re(ke,De,Ae){if((De[0]&192)!==128)return ke.lastNeed=0,"\uFFFD";if(ke.lastNeed>1&&De.length>1){if((De[1]&192)!==128)return ke.lastNeed=1,"\uFFFD";if(ke.lastNeed>2&&De.length>2&&(De[2]&192)!==128)return ke.lastNeed=2,"\uFFFD"}}function te(ke){var De=this.lastTotal-this.lastNeed,Ae=re(this,ke,De);if(Ae!==void 0)return Ae;if(this.lastNeed<=ke.length)return ke.copy(this.lastChar,De,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);ke.copy(this.lastChar,De,0,ke.length),this.lastNeed-=ke.length}function ae(ke,De){var Ae=x(this,ke,De);if(!this.lastNeed)return ke.toString("utf8",De);this.lastTotal=Ae;var ve=ke.length-(Ae-this.lastNeed);return ke.copy(this.lastChar,0,ve),ke.toString("utf8",De,ve)}function ue(ke){var De=ke&&ke.length?this.write(ke):"";return this.lastNeed?De+"\uFFFD":De}function fe(ke,De){if((ke.length-De)%2===0){var Ae=ke.toString("utf16le",De);if(Ae){var ve=Ae.charCodeAt(Ae.length-1);if(ve>=55296&&ve<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=ke[ke.length-2],this.lastChar[1]=ke[ke.length-1],Ae.slice(0,-1)}return Ae}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=ke[ke.length-1],ke.toString("utf16le",De,ke.length-1)}function de(ke){var De=ke&&ke.length?this.write(ke):"";if(this.lastNeed){var Ae=this.lastTotal-this.lastNeed;return De+this.lastChar.toString("utf16le",0,Ae)}return De}function he(ke,De){var Ae=(ke.length-De)%3;return Ae===0?ke.toString("base64",De):(this.lastNeed=3-Ae,this.lastTotal=3,Ae===1?this.lastChar[0]=ke[ke.length-1]:(this.lastChar[0]=ke[ke.length-2],this.lastChar[1]=ke[ke.length-1]),ke.toString("base64",De,ke.length-Ae))}function ce(ke){var De=ke&&ke.length?this.write(ke):"";return this.lastNeed?De+this.lastChar.toString("base64",0,3-this.lastNeed):De}function pe(ke){return ke.toString(this.encoding)}function Ce(ke){return ke&&ke.length?this.write(ke):""}},{"safe-buffer":396}],414:[function(y,we,ge){(function(ee,E){(function(){var ie=y("process/browser.js").nextTick,le=Function.prototype.apply,z=Array.prototype.slice,se={},x=0;ge.setTimeout=function(){return new re(le.call(setTimeout,window,arguments),clearTimeout)},ge.setInterval=function(){return new re(le.call(setInterval,window,arguments),clearInterval)},ge.clearTimeout=ge.clearInterval=function(te){te.close()};function re(te,ae){this._id=te,this._clearFn=ae}re.prototype.unref=re.prototype.ref=function(){},re.prototype.close=function(){this._clearFn.call(window,this._id)},ge.enroll=function(te,ae){clearTimeout(te._idleTimeoutId),te._idleTimeout=ae},ge.unenroll=function(te){clearTimeout(te._idleTimeoutId),te._idleTimeout=-1},ge._unrefActive=ge.active=function(te){clearTimeout(te._idleTimeoutId);var ae=te._idleTimeout;ae>=0&&(te._idleTimeoutId=setTimeout(function(){te._onTimeout&&te._onTimeout()},ae))},ge.setImmediate=typeof ee=="function"?ee:function(te){var ae=x++,ue=arguments.length<2?!1:z.call(arguments,1);return se[ae]=!0,ie(function(){se[ae]&&(ue?te.apply(null,ue):te.call(null),ge.clearImmediate(ae))}),ae},ge.clearImmediate=typeof E=="function"?E:function(te){delete se[te]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,we,ge){var ee=y("buffer").Buffer;we.exports=function(E){if(E instanceof Uint8Array){if(E.byteOffset===0&&E.byteLength===E.buffer.byteLength)return E.buffer;if(typeof E.buffer.slice=="function")return E.buffer.slice(E.byteOffset,E.byteOffset+E.byteLength)}if(ee.isBuffer(E)){for(var ie=new Uint8Array(E.length),le=E.length,z=0;z<le;z++)ie[z]=E[z];return ie.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,we,ge){(function(ee){(function(){we.exports=E;function E(le,z){if(ie("noDeprecation"))return le;var se=!1;function x(){if(!se){if(ie("throwDeprecation"))throw new Error(z);ie("traceDeprecation")?console.trace(z):console.warn(z),se=!0}return le.apply(this,arguments)}return x}function ie(le){try{if(!ee.localStorage)return!1}catch(se){return!1}var z=ee.localStorage[le];return z==null?!1:String(z).toLowerCase()==="true"}}).call(this)}).call(this,typeof Ot!="undefined"?Ot:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(y,we,ge){arguments[4][84][0].apply(ge,arguments)},{dup:84}],418:[function(y,we,ge){"use strict";var ee=y("is-arguments"),E=y("is-generator-function"),ie=y("which-typed-array"),le=y("is-typed-array");function z(it){return it.call.bind(it)}var se=typeof BigInt!="undefined",x=typeof Symbol!="undefined",re=z(Object.prototype.toString),te=z(Number.prototype.valueOf),ae=z(String.prototype.valueOf),ue=z(Boolean.prototype.valueOf);if(se)var fe=z(BigInt.prototype.valueOf);if(x)var de=z(Symbol.prototype.valueOf);function he(it,Te){if(typeof it!="object")return!1;try{return Te(it),!0}catch(xe){return!1}}ge.isArgumentsObject=ee,ge.isGeneratorFunction=E,ge.isTypedArray=le;function ce(it){return typeof Promise!="undefined"&&it instanceof Promise||it!==null&&typeof it=="object"&&typeof it.then=="function"&&typeof it.catch=="function"}ge.isPromise=ce;function pe(it){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(it):le(it)||Ve(it)}ge.isArrayBufferView=pe;function Ce(it){return ie(it)==="Uint8Array"}ge.isUint8Array=Ce;function ke(it){return ie(it)==="Uint8ClampedArray"}ge.isUint8ClampedArray=ke;function De(it){return ie(it)==="Uint16Array"}ge.isUint16Array=De;function Ae(it){return ie(it)==="Uint32Array"}ge.isUint32Array=Ae;function ve(it){return ie(it)==="Int8Array"}ge.isInt8Array=ve;function be(it){return ie(it)==="Int16Array"}ge.isInt16Array=be;function Ee(it){return ie(it)==="Int32Array"}ge.isInt32Array=Ee;function Oe(it){return ie(it)==="Float32Array"}ge.isFloat32Array=Oe;function Me(it){return ie(it)==="Float64Array"}ge.isFloat64Array=Me;function Se(it){return ie(it)==="BigInt64Array"}ge.isBigInt64Array=Se;function je(it){return ie(it)==="BigUint64Array"}ge.isBigUint64Array=je;function Ze(it){return re(it)==="[object Map]"}Ze.working=typeof Map!="undefined"&&Ze(new Map);function Xe(it){return typeof Map=="undefined"?!1:Ze.working?Ze(it):it instanceof Map}ge.isMap=Xe;function $e(it){return re(it)==="[object Set]"}$e.working=typeof Set!="undefined"&&$e(new Set);function lt(it){return typeof Set=="undefined"?!1:$e.working?$e(it):it instanceof Set}ge.isSet=lt;function Re(it){return re(it)==="[object WeakMap]"}Re.working=typeof WeakMap!="undefined"&&Re(new WeakMap);function We(it){return typeof WeakMap=="undefined"?!1:Re.working?Re(it):it instanceof WeakMap}ge.isWeakMap=We;function rt(it){return re(it)==="[object WeakSet]"}rt.working=typeof WeakSet!="undefined"&&rt(new WeakSet);function ot(it){return rt(it)}ge.isWeakSet=ot;function at(it){return re(it)==="[object ArrayBuffer]"}at.working=typeof ArrayBuffer!="undefined"&&at(new ArrayBuffer);function Je(it){return typeof ArrayBuffer=="undefined"?!1:at.working?at(it):it instanceof ArrayBuffer}ge.isArrayBuffer=Je;function Qe(it){return re(it)==="[object DataView]"}Qe.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&Qe(new DataView(new ArrayBuffer(1),0,1));function Ve(it){return typeof DataView=="undefined"?!1:Qe.working?Qe(it):it instanceof DataView}ge.isDataView=Ve;var ct=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function tt(it){return re(it)==="[object SharedArrayBuffer]"}function ut(it){return typeof ct=="undefined"?!1:(typeof tt.working=="undefined"&&(tt.working=tt(new ct)),tt.working?tt(it):it instanceof ct)}ge.isSharedArrayBuffer=ut;function st(it){return re(it)==="[object AsyncFunction]"}ge.isAsyncFunction=st;function ze(it){return re(it)==="[object Map Iterator]"}ge.isMapIterator=ze;function Be(it){return re(it)==="[object Set Iterator]"}ge.isSetIterator=Be;function Ke(it){return re(it)==="[object Generator]"}ge.isGeneratorObject=Ke;function Ie(it){return re(it)==="[object WebAssembly.Module]"}ge.isWebAssemblyCompiledModule=Ie;function Ye(it){return he(it,te)}ge.isNumberObject=Ye;function ft(it){return he(it,ae)}ge.isStringObject=ft;function mt(it){return he(it,ue)}ge.isBooleanObject=mt;function nt(it){return se&&he(it,fe)}ge.isBigIntObject=nt;function _e(it){return x&&he(it,de)}ge.isSymbolObject=_e;function Pe(it){return Ye(it)||ft(it)||mt(it)||nt(it)||_e(it)}ge.isBoxedPrimitive=Pe;function He(it){return typeof Uint8Array!="undefined"&&(Je(it)||ut(it))}ge.isAnyArrayBuffer=He,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(it){Object.defineProperty(ge,it,{enumerable:!1,value:function(){throw new Error(it+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,we,ge){(function(ee){(function(){var E=Object.getOwnPropertyDescriptors||function(ct){for(var tt=Object.keys(ct),ut={},st=0;st<tt.length;st++)ut[tt[st]]=Object.getOwnPropertyDescriptor(ct,tt[st]);return ut},ie=/%[sdj%]/g;ge.format=function(Ve){if(!be(Ve)){for(var ct=[],tt=0;tt<arguments.length;tt++)ct.push(x(arguments[tt]));return ct.join(" ")}for(var tt=1,ut=arguments,st=ut.length,ze=String(Ve).replace(ie,function(Ke){if(Ke==="%%")return"%";if(tt>=st)return Ke;switch(Ke){case"%s":return String(ut[tt++]);case"%d":return Number(ut[tt++]);case"%j":try{return JSON.stringify(ut[tt++])}catch(Ie){return"[Circular]"}default:return Ke}}),Be=ut[tt];tt<st;Be=ut[++tt])De(Be)||!Se(Be)?ze+=" "+Be:ze+=" "+x(Be);return ze},ge.deprecate=function(Ve,ct){if(typeof ee!="undefined"&&ee.noDeprecation===!0)return Ve;if(typeof ee=="undefined")return function(){return ge.deprecate(Ve,ct).apply(this,arguments)};var tt=!1;function ut(){if(!tt){if(ee.throwDeprecation)throw new Error(ct);ee.traceDeprecation?console.trace(ct):console.error(ct),tt=!0}return Ve.apply(this,arguments)}return ut};var le={},z=/^$/;if(ee.env.NODE_DEBUG){var se=ee.env.NODE_DEBUG;se=se.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),z=new RegExp("^"+se+"$","i")}ge.debuglog=function(Ve){if(Ve=Ve.toUpperCase(),!le[Ve])if(z.test(Ve)){var ct=ee.pid;le[Ve]=function(){var tt=ge.format.apply(ge,arguments);console.error("%s %d: %s",Ve,ct,tt)}}else le[Ve]=function(){};return le[Ve]};function x(Ve,ct){var tt={seen:[],stylize:te};return arguments.length>=3&&(tt.depth=arguments[2]),arguments.length>=4&&(tt.colors=arguments[3]),ke(ct)?tt.showHidden=ct:ct&&ge._extend(tt,ct),Oe(tt.showHidden)&&(tt.showHidden=!1),Oe(tt.depth)&&(tt.depth=2),Oe(tt.colors)&&(tt.colors=!1),Oe(tt.customInspect)&&(tt.customInspect=!0),tt.colors&&(tt.stylize=re),ue(tt,Ve,tt.depth)}ge.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 re(Ve,ct){var tt=x.styles[ct];return tt?"\x1B["+x.colors[tt][0]+"m"+Ve+"\x1B["+x.colors[tt][1]+"m":Ve}function te(Ve,ct){return Ve}function ae(Ve){var ct={};return Ve.forEach(function(tt,ut){ct[tt]=!0}),ct}function ue(Ve,ct,tt){if(Ve.customInspect&&ct&&Xe(ct.inspect)&&ct.inspect!==ge.inspect&&!(ct.constructor&&ct.constructor.prototype===ct)){var ut=ct.inspect(tt,Ve);return be(ut)||(ut=ue(Ve,ut,tt)),ut}var st=fe(Ve,ct);if(st)return st;var ze=Object.keys(ct),Be=ae(ze);if(Ve.showHidden&&(ze=Object.getOwnPropertyNames(ct)),Ze(ct)&&(ze.indexOf("message")>=0||ze.indexOf("description")>=0))return de(ct);if(ze.length===0){if(Xe(ct)){var Ke=ct.name?": "+ct.name:"";return Ve.stylize("[Function"+Ke+"]","special")}if(Me(ct))return Ve.stylize(RegExp.prototype.toString.call(ct),"regexp");if(je(ct))return Ve.stylize(Date.prototype.toString.call(ct),"date");if(Ze(ct))return de(ct)}var Ie="",Ye=!1,ft=["{","}"];if(Ce(ct)&&(Ye=!0,ft=["[","]"]),Xe(ct)){var mt=ct.name?": "+ct.name:"";Ie=" [Function"+mt+"]"}if(Me(ct)&&(Ie=" "+RegExp.prototype.toString.call(ct)),je(ct)&&(Ie=" "+Date.prototype.toUTCString.call(ct)),Ze(ct)&&(Ie=" "+de(ct)),ze.length===0&&(!Ye||ct.length==0))return ft[0]+Ie+ft[1];if(tt<0)return Me(ct)?Ve.stylize(RegExp.prototype.toString.call(ct),"regexp"):Ve.stylize("[Object]","special");Ve.seen.push(ct);var nt;return Ye?nt=he(Ve,ct,tt,Be,ze):nt=ze.map(function(_e){return ce(Ve,ct,tt,Be,_e,Ye)}),Ve.seen.pop(),pe(nt,Ie,ft)}function fe(Ve,ct){if(Oe(ct))return Ve.stylize("undefined","undefined");if(be(ct)){var tt="'"+JSON.stringify(ct).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ve.stylize(tt,"string")}if(ve(ct))return Ve.stylize(""+ct,"number");if(ke(ct))return Ve.stylize(""+ct,"boolean");if(De(ct))return Ve.stylize("null","null")}function de(Ve){return"["+Error.prototype.toString.call(Ve)+"]"}function he(Ve,ct,tt,ut,st){for(var ze=[],Be=0,Ke=ct.length;Be<Ke;++Be)ot(ct,String(Be))?ze.push(ce(Ve,ct,tt,ut,String(Be),!0)):ze.push("");return st.forEach(function(Ie){Ie.match(/^\d+$/)||ze.push(ce(Ve,ct,tt,ut,Ie,!0))}),ze}function ce(Ve,ct,tt,ut,st,ze){var Be,Ke,Ie;if(Ie=Object.getOwnPropertyDescriptor(ct,st)||{value:ct[st]},Ie.get?Ie.set?Ke=Ve.stylize("[Getter/Setter]","special"):Ke=Ve.stylize("[Getter]","special"):Ie.set&&(Ke=Ve.stylize("[Setter]","special")),ot(ut,st)||(Be="["+st+"]"),Ke||(Ve.seen.indexOf(Ie.value)<0?(De(tt)?Ke=ue(Ve,Ie.value,null):Ke=ue(Ve,Ie.value,tt-1),Ke.indexOf(`
`)>-1&&(ze?Ke=Ke.split(`
`).map(function(Ye){return" "+Ye}).join(`
`).slice(2):Ke=`
`+Ke.split(`
`).map(function(Ye){return" "+Ye}).join(`
`))):Ke=Ve.stylize("[Circular]","special")),Oe(Be)){if(ze&&st.match(/^\d+$/))return Ke;Be=JSON.stringify(""+st),Be.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Be=Be.slice(1,-1),Be=Ve.stylize(Be,"name")):(Be=Be.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Be=Ve.stylize(Be,"string"))}return Be+": "+Ke}function pe(Ve,ct,tt){var ut=0,st=Ve.reduce(function(ze,Be){return ut++,Be.indexOf(`
`)>=0&&ut++,ze+Be.replace(/\u001b\[\d\d?m/g,"").length+1},0);return st>60?tt[0]+(ct===""?"":ct+`
`)+" "+Ve.join(`,
`)+" "+tt[1]:tt[0]+ct+" "+Ve.join(", ")+" "+tt[1]}ge.types=y("./support/types");function Ce(Ve){return Array.isArray(Ve)}ge.isArray=Ce;function ke(Ve){return typeof Ve=="boolean"}ge.isBoolean=ke;function De(Ve){return Ve===null}ge.isNull=De;function Ae(Ve){return Ve==null}ge.isNullOrUndefined=Ae;function ve(Ve){return typeof Ve=="number"}ge.isNumber=ve;function be(Ve){return typeof Ve=="string"}ge.isString=be;function Ee(Ve){return typeof Ve=="symbol"}ge.isSymbol=Ee;function Oe(Ve){return Ve===void 0}ge.isUndefined=Oe;function Me(Ve){return Se(Ve)&&lt(Ve)==="[object RegExp]"}ge.isRegExp=Me,ge.types.isRegExp=Me;function Se(Ve){return typeof Ve=="object"&&Ve!==null}ge.isObject=Se;function je(Ve){return Se(Ve)&&lt(Ve)==="[object Date]"}ge.isDate=je,ge.types.isDate=je;function Ze(Ve){return Se(Ve)&&(lt(Ve)==="[object Error]"||Ve instanceof Error)}ge.isError=Ze,ge.types.isNativeError=Ze;function Xe(Ve){return typeof Ve=="function"}ge.isFunction=Xe;function $e(Ve){return Ve===null||typeof Ve=="boolean"||typeof Ve=="number"||typeof Ve=="string"||typeof Ve=="symbol"||typeof Ve=="undefined"}ge.isPrimitive=$e,ge.isBuffer=y("./support/isBuffer");function lt(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 rt(){var Ve=new Date,ct=[Re(Ve.getHours()),Re(Ve.getMinutes()),Re(Ve.getSeconds())].join(":");return[Ve.getDate(),We[Ve.getMonth()],ct].join(" ")}ge.log=function(){console.log("%s - %s",rt(),ge.format.apply(ge,arguments))},ge.inherits=y("inherits"),ge._extend=function(Ve,ct){if(!ct||!Se(ct))return Ve;for(var tt=Object.keys(ct),ut=tt.length;ut--;)Ve[tt[ut]]=ct[tt[ut]];return Ve};function ot(Ve,ct){return Object.prototype.hasOwnProperty.call(Ve,ct)}var at=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ge.promisify=function(ct){if(typeof ct!="function")throw new TypeError('The "original" argument must be of type Function');if(at&&ct[at]){var tt=ct[at];if(typeof tt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tt,at,{value:tt,enumerable:!1,writable:!1,configurable:!0}),tt}function tt(){for(var ut,st,ze=new Promise(function(Ie,Ye){ut=Ie,st=Ye}),Be=[],Ke=0;Ke<arguments.length;Ke++)Be.push(arguments[Ke]);Be.push(function(Ie,Ye){Ie?st(Ie):ut(Ye)});try{ct.apply(this,Be)}catch(Ie){st(Ie)}return ze}return Object.setPrototypeOf(tt,Object.getPrototypeOf(ct)),at&&Object.defineProperty(tt,at,{value:tt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(tt,E(ct))},ge.promisify.custom=at;function Je(Ve,ct){if(!Ve){var tt=new Error("Promise was rejected with a falsy value");tt.reason=Ve,Ve=tt}return ct(Ve)}function Qe(Ve){if(typeof Ve!="function")throw new TypeError('The "original" argument must be of type Function');function ct(){for(var tt=[],ut=0;ut<arguments.length;ut++)tt.push(arguments[ut]);var st=tt.pop();if(typeof st!="function")throw new TypeError("The last argument must be of type Function");var ze=this,Be=function(){return st.apply(ze,arguments)};Ve.apply(this,tt).then(function(Ke){ee.nextTick(Be.bind(null,null,Ke))},function(Ke){ee.nextTick(Je.bind(null,Ke,Be))})}return Object.setPrototypeOf(ct,Object.getPrototypeOf(Ve)),Object.defineProperties(ct,E(Ve)),ct}ge.callbackify=Qe}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,we,ge){(function(ee){(function(){"use strict";var E=y("for-each"),ie=y("available-typed-arrays"),le=y("call-bind"),z=y("call-bind/callBound"),se=y("gopd"),x=z("Object.prototype.toString"),re=y("has-tostringtag/shams")(),te=typeof globalThis=="undefined"?ee:globalThis,ae=ie(),ue=z("String.prototype.slice"),fe=Object.getPrototypeOf,de=z("Array.prototype.indexOf",!0)||function(ke,De){for(var Ae=0;Ae<ke.length;Ae+=1)if(ke[Ae]===De)return Ae;return-1},he={__proto__:null};re&&se&&fe?E(ae,function(Ce){var ke=new te[Ce];if(Symbol.toStringTag in ke){var De=fe(ke),Ae=se(De,Symbol.toStringTag);if(!Ae){var ve=fe(De);Ae=se(ve,Symbol.toStringTag)}he["$"+Ce]=le(Ae.get)}}):E(ae,function(Ce){var ke=new te[Ce];he["$"+Ce]=le(ke.slice)});var ce=function(ke){var De=!1;return E(he,function(Ae,ve){if(!De)try{"$"+Ae(ke)===ve&&(De=ue(ve,1))}catch(be){}}),De},pe=function(ke){var De=!1;return E(he,function(Ae,ve){if(!De)try{Ae(ke),De=ue(ve,1)}catch(be){}}),De};we.exports=function(ke){if(!ke||typeof ke!="object")return!1;if(!re){var De=ue(x(ke),8,-1);return de(ae,De)>-1?De:De!=="Object"?!1:pe(ke)}return se?ce(ke):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,we,ge){(function(){"use strict";ge.stripBOM=function(ee){return ee[0]==="\uFEFF"?ee.substring(1):ee}}).call(this)},{}],422:[function(y,we,ge){(function(){"use strict";var ee,E,ie,le,z,se={}.hasOwnProperty;ee=y("xmlbuilder"),E=y("./defaults").defaults,le=function(x){return typeof x=="string"&&(x.indexOf("&")>=0||x.indexOf(">")>=0||x.indexOf("<")>=0)},z=function(x){return"<![CDATA["+ie(x)+"]]>"},ie=function(x){return x.replace("]]>","]]]]><![CDATA[>")},ge.Builder=function(){function x(re){var te,ae,ue;this.options={},ae=E["0.2"];for(te in ae)se.call(ae,te)&&(ue=ae[te],this.options[te]=ue);for(te in re)se.call(re,te)&&(ue=re[te],this.options[te]=ue)}return x.prototype.buildObject=function(re){var te,ae,ue,fe,de;return te=this.options.attrkey,ae=this.options.charkey,Object.keys(re).length===1&&this.options.rootName===E["0.2"].rootName?(de=Object.keys(re)[0],re=re[de]):de=this.options.rootName,ue=function(he){return function(ce,pe){var Ce,ke,De,Ae,ve,be;if(typeof pe!="object")he.options.cdata&&le(pe)?ce.raw(z(pe)):ce.txt(pe);else if(Array.isArray(pe)){for(Ae in pe)if(se.call(pe,Ae)){ke=pe[Ae];for(ve in ke)De=ke[ve],ce=ue(ce.ele(ve),De).up()}}else for(ve in pe)if(se.call(pe,ve))if(ke=pe[ve],ve===te){if(typeof ke=="object")for(Ce in ke)be=ke[Ce],ce=ce.att(Ce,be)}else if(ve===ae)he.options.cdata&&le(ke)?ce=ce.raw(z(ke)):ce=ce.txt(ke);else if(Array.isArray(ke))for(Ae in ke)se.call(ke,Ae)&&(De=ke[Ae],typeof De=="string"?he.options.cdata&&le(De)?ce=ce.ele(ve).raw(z(De)).up():ce=ce.ele(ve,De).up():ce=ue(ce.ele(ve),De).up());else typeof ke=="object"?ce=ue(ce.ele(ve),ke).up():typeof ke=="string"&&he.options.cdata&&le(ke)?ce=ce.ele(ve).raw(z(ke)).up():(ke==null&&(ke=""),ce=ce.ele(ve,ke.toString()).up());return ce}}(this),fe=ee.create(de,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ue(fe,re).end(this.options.renderOpts)},x}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(y,we,ge){(function(){ge.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,we,ge){(function(){"use strict";var ee,E,ie,le,z,se,x,re,te,ae=function(de,he){return function(){return de.apply(he,arguments)}},ue=function(de,he){for(var ce in he)fe.call(he,ce)&&(de[ce]=he[ce]);function pe(){this.constructor=de}return pe.prototype=he.prototype,de.prototype=new pe,de.__super__=he.prototype,de},fe={}.hasOwnProperty;re=y("sax"),le=y("events"),ee=y("./bom"),x=y("./processors"),te=y("timers").setImmediate,E=y("./defaults").defaults,z=function(de){return typeof de=="object"&&de!=null&&Object.keys(de).length===0},se=function(de,he,ce){var pe,Ce,ke;for(pe=0,Ce=de.length;pe<Ce;pe++)ke=de[pe],he=ke(he,ce);return he},ie=function(de,he,ce){var pe;return pe=Object.create(null),pe.value=ce,pe.writable=!0,pe.enumerable=!0,pe.configurable=!0,Object.defineProperty(de,he,pe)},ge.Parser=function(de){ue(he,de);function he(ce){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 pe,Ce,ke;if(!(this instanceof ge.Parser))return new ge.Parser(ce);this.options={},Ce=E["0.2"];for(pe in Ce)fe.call(Ce,pe)&&(ke=Ce[pe],this.options[pe]=ke);for(pe in ce)fe.call(ce,pe)&&(ke=ce[pe],this.options[pe]=ke);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 he.prototype.processAsync=function(){var ce,pe;try{return this.remaining.length<=this.options.chunkSize?(ce=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(ce),this.saxParser.close()):(ce=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(ce),te(this.processAsync))}catch(Ce){if(pe=Ce,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(pe)}},he.prototype.assignOrPush=function(ce,pe,Ce){return pe in ce?(ce[pe]instanceof Array||ie(ce,pe,[ce[pe]]),ce[pe].push(Ce)):this.options.explicitArray?ie(ce,pe,[Ce]):ie(ce,pe,Ce)},he.prototype.reset=function(){var ce,pe,Ce,ke;return this.removeAllListeners(),this.saxParser=re.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(De){return function(Ae){if(De.saxParser.resume(),!De.saxParser.errThrown)return De.saxParser.errThrown=!0,De.emit("error",Ae)}}(this),this.saxParser.onend=function(De){return function(){if(!De.saxParser.ended)return De.saxParser.ended=!0,De.emit("end",De.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,ke=[],ce=this.options.attrkey,pe=this.options.charkey,this.saxParser.onopentag=function(De){return function(Ae){var ve,be,Ee,Oe,Me;if(Ee={},Ee[pe]="",!De.options.ignoreAttrs){Me=Ae.attributes;for(ve in Me)fe.call(Me,ve)&&(!(ce in Ee)&&!De.options.mergeAttrs&&(Ee[ce]={}),be=De.options.attrValueProcessors?se(De.options.attrValueProcessors,Ae.attributes[ve],ve):Ae.attributes[ve],Oe=De.options.attrNameProcessors?se(De.options.attrNameProcessors,ve):ve,De.options.mergeAttrs?De.assignOrPush(Ee,Oe,be):ie(Ee[ce],Oe,be))}return Ee["#name"]=De.options.tagNameProcessors?se(De.options.tagNameProcessors,Ae.name):Ae.name,De.options.xmlns&&(Ee[De.options.xmlnskey]={uri:Ae.uri,local:Ae.local}),ke.push(Ee)}}(this),this.saxParser.onclosetag=function(De){return function(){var Ae,ve,be,Ee,Oe,Me,Se,je,Ze,Xe;if(Me=ke.pop(),Oe=Me["#name"],(!De.options.explicitChildren||!De.options.preserveChildrenOrder)&&delete Me["#name"],Me.cdata===!0&&(Ae=Me.cdata,delete Me.cdata),Ze=ke[ke.length-1],Me[pe].match(/^\s*$/)&&!Ae?(ve=Me[pe],delete Me[pe]):(De.options.trim&&(Me[pe]=Me[pe].trim()),De.options.normalize&&(Me[pe]=Me[pe].replace(/\s{2,}/g," ").trim()),Me[pe]=De.options.valueProcessors?se(De.options.valueProcessors,Me[pe],Oe):Me[pe],Object.keys(Me).length===1&&pe in Me&&!De.EXPLICIT_CHARKEY&&(Me=Me[pe])),z(Me)&&(typeof De.options.emptyTag=="function"?Me=De.options.emptyTag():Me=De.options.emptyTag!==""?De.options.emptyTag:ve),De.options.validator!=null&&(Xe="/"+function(){var $e,lt,Re;for(Re=[],$e=0,lt=ke.length;$e<lt;$e++)Ee=ke[$e],Re.push(Ee["#name"]);return Re}().concat(Oe).join("/"),function(){var $e;try{return Me=De.options.validator(Xe,Ze&&Ze[Oe],Me)}catch(lt){return $e=lt,De.emit("error",$e)}}()),De.options.explicitChildren&&!De.options.mergeAttrs&&typeof Me=="object"){if(!De.options.preserveChildrenOrder)Ee={},De.options.attrkey in Me&&(Ee[De.options.attrkey]=Me[De.options.attrkey],delete Me[De.options.attrkey]),!De.options.charsAsChildren&&De.options.charkey in Me&&(Ee[De.options.charkey]=Me[De.options.charkey],delete Me[De.options.charkey]),Object.getOwnPropertyNames(Me).length>0&&(Ee[De.options.childkey]=Me),Me=Ee;else if(Ze){Ze[De.options.childkey]=Ze[De.options.childkey]||[],Se={};for(be in Me)fe.call(Me,be)&&ie(Se,be,Me[be]);Ze[De.options.childkey].push(Se),delete Me["#name"],Object.keys(Me).length===1&&pe in Me&&!De.EXPLICIT_CHARKEY&&(Me=Me[pe])}}return ke.length>0?De.assignOrPush(Ze,Oe,Me):(De.options.explicitRoot&&(je=Me,Me={},ie(Me,Oe,je)),De.resultObject=Me,De.saxParser.ended=!0,De.emit("end",De.resultObject))}}(this),Ce=function(De){return function(Ae){var ve,be;if(be=ke[ke.length-1],be)return be[pe]+=Ae,De.options.explicitChildren&&De.options.preserveChildrenOrder&&De.options.charsAsChildren&&(De.options.includeWhiteChars||Ae.replace(/\\n/g,"").trim()!=="")&&(be[De.options.childkey]=be[De.options.childkey]||[],ve={"#name":"__text__"},ve[pe]=Ae,De.options.normalize&&(ve[pe]=ve[pe].replace(/\s{2,}/g," ").trim()),be[De.options.childkey].push(ve)),be}}(this),this.saxParser.ontext=Ce,this.saxParser.oncdata=function(De){return function(Ae){var ve;if(ve=Ce(Ae),ve)return ve.cdata=!0}}(this)},he.prototype.parseString=function(ce,pe){var Ce;pe!=null&&typeof pe=="function"&&(this.on("end",function(ke){return this.reset(),pe(null,ke)}),this.on("error",function(ke){return this.reset(),pe(ke)}));try{return ce=ce.toString(),ce.trim()===""?(this.emit("end",null),!0):(ce=ee.stripBOM(ce),this.options.async?(this.remaining=ce,te(this.processAsync),this.saxParser):this.saxParser.write(ce).close())}catch(ke){if(Ce=ke,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ce}else return this.emit("error",Ce),this.saxParser.errThrown=!0}},he.prototype.parseStringPromise=function(ce){return new Promise(function(pe){return function(Ce,ke){return pe.parseString(ce,function(De,Ae){return De?ke(De):Ce(Ae)})}}(this))},he}(le),ge.parseString=function(de,he,ce){var pe,Ce,ke;return ce!=null?(typeof ce=="function"&&(pe=ce),typeof he=="object"&&(Ce=he)):(typeof he=="function"&&(pe=he),Ce={}),ke=new ge.Parser(Ce),ke.parseString(de,pe)},ge.parseStringPromise=function(de,he){var ce,pe;return typeof he=="object"&&(ce=he),pe=new ge.Parser(ce),pe.parseStringPromise(de)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,we,ge){(function(){"use strict";var ee;ee=new RegExp(/(?!xmlns)^.*:/),ge.normalize=function(E){return E.toLowerCase()},ge.firstCharLowerCase=function(E){return E.charAt(0).toLowerCase()+E.slice(1)},ge.stripPrefix=function(E){return E.replace(ee,"")},ge.parseNumbers=function(E){return isNaN(E)||(E=E%1===0?parseInt(E,10):parseFloat(E)),E},ge.parseBooleans=function(E){return/^(?:true|false)$/i.test(E)&&(E=E.toLowerCase()==="true"),E}}).call(this)},{}],426:[function(y,we,ge){(function(){"use strict";var ee,E,ie,le,z=function(x,re){for(var te in re)se.call(re,te)&&(x[te]=re[te]);function ae(){this.constructor=x}return ae.prototype=re.prototype,x.prototype=new ae,x.__super__=re.prototype,x},se={}.hasOwnProperty;E=y("./defaults"),ee=y("./builder"),ie=y("./parser"),le=y("./processors"),ge.defaults=E.defaults,ge.processors=le,ge.ValidationError=function(x){z(re,x);function re(te){this.message=te}return re}(Error),ge.Builder=ee.Builder,ge.Parser=ie.Parser,ge.parseString=ie.parseString,ge.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,we,ge){(function(){we.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,we,ge){(function(){we.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,we,ge){(function(){var ee,E,ie,le,z,se,x,re=[].slice,te={}.hasOwnProperty;ee=function(){var ae,ue,fe,de,he,ce;if(ce=arguments[0],he=2<=arguments.length?re.call(arguments,1):[],z(Object.assign))Object.assign.apply(null,arguments);else for(ae=0,fe=he.length;ae<fe;ae++)if(de=he[ae],de!=null)for(ue in de)te.call(de,ue)&&(ce[ue]=de[ue]);return ce},z=function(ae){return!!ae&&Object.prototype.toString.call(ae)==="[object Function]"},se=function(ae){var ue;return!!ae&&((ue=typeof ae)=="function"||ue==="object")},ie=function(ae){return z(Array.isArray)?Array.isArray(ae):Object.prototype.toString.call(ae)==="[object Array]"},le=function(ae){var ue;if(ie(ae))return!ae.length;for(ue in ae)if(te.call(ae,ue))return!1;return!0},x=function(ae){var ue,fe;return se(ae)&&(fe=Object.getPrototypeOf(ae))&&(ue=fe.constructor)&&typeof ue=="function"&&ue instanceof ue&&Function.prototype.toString.call(ue)===Function.prototype.toString.call(Object)},E=function(ae){return z(ae.valueOf)?ae.valueOf():ae},we.exports.assign=ee,we.exports.isFunction=z,we.exports.isObject=se,we.exports.isArray=ie,we.exports.isEmpty=le,we.exports.isPlainObject=x,we.exports.getValue=E}).call(this)},{}],430:[function(y,we,ge){(function(){we.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,we,ge){(function(){var ee,E,ie;ee=y("./NodeType"),ie=y("./XMLNode"),we.exports=E=function(){function le(z,se,x){if(this.parent=z,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),se==null)throw new Error("Missing attribute name. "+this.debugInfo(se));this.name=this.stringify.name(se),this.value=this.stringify.attValue(x),this.type=ee.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(le.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(le.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(le.prototype,"textContent",{get:function(){return this.value},set:function(z){return this.value=z||""}}),Object.defineProperty(le.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(le.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(le.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(le.prototype,"specified",{get:function(){return!0}}),le.prototype.clone=function(){return Object.create(this)},le.prototype.toString=function(z){return this.options.writer.attribute(this,this.options.writer.filterOptions(z))},le.prototype.debugInfo=function(z){return z=z||this.name,z==null?"parent: <"+this.parent.name+">":"attribute: {"+z+"}, parent: <"+this.parent.name+">"},le.prototype.isEqualNode=function(z){return!(z.namespaceURI!==this.namespaceURI||z.prefix!==this.prefix||z.localName!==this.localName||z.value!==this.value)},le}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(y,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ee=y("./NodeType"),ie=y("./XMLCharacterData"),we.exports=E=function(se){le(x,se);function x(re,te){if(x.__super__.constructor.call(this,re),te==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=ee.CData,this.value=this.stringify.cdata(te)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(re){return this.options.writer.cdata(this,this.options.writer.filterOptions(re))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,we,ge){(function(){var ee,E,ie=function(z,se){for(var x in se)le.call(se,x)&&(z[x]=se[x]);function re(){this.constructor=z}return re.prototype=se.prototype,z.prototype=new re,z.__super__=se.prototype,z},le={}.hasOwnProperty;E=y("./XMLNode"),we.exports=ee=function(z){ie(se,z);function se(x){se.__super__.constructor.call(this,x),this.value=""}return Object.defineProperty(se.prototype,"data",{get:function(){return this.value},set:function(x){return this.value=x||""}}),Object.defineProperty(se.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(se.prototype,"textContent",{get:function(){return this.value},set:function(x){return this.value=x||""}}),se.prototype.clone=function(){return Object.create(this)},se.prototype.substringData=function(x,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.appendData=function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.insertData=function(x,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.deleteData=function(x,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.replaceData=function(x,re,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.isEqualNode=function(x){return!(!se.__super__.isEqualNode.apply(this,arguments).isEqualNode(x)||x.data!==this.data)},se}(E)}).call(this)},{"./XMLNode":450}],434:[function(y,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ee=y("./NodeType"),E=y("./XMLCharacterData"),we.exports=ie=function(se){le(x,se);function x(re,te){if(x.__super__.constructor.call(this,re),te==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=ee.Comment,this.value=this.stringify.comment(te)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(re){return this.options.writer.comment(this,this.options.writer.filterOptions(re))},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(y,we,ge){(function(){var ee,E,ie;E=y("./XMLDOMErrorHandler"),ie=y("./XMLDOMStringList"),we.exports=ee=function(){function le(){var z;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new E,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=z=Object.create(this.defaultParams)}return Object.defineProperty(le.prototype,"parameterNames",{get:function(){return new ie(Object.keys(this.defaultParams))}}),le.prototype.getParameter=function(z){return this.params.hasOwnProperty(z)?this.params[z]:null},le.prototype.canSetParameter=function(z,se){return!0},le.prototype.setParameter=function(z,se){return se!=null?this.params[z]=se:delete this.params[z]},le}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,we,ge){(function(){var ee;we.exports=ee=function(){function E(){}return E.prototype.handleError=function(ie){throw new Error(ie)},E}()}).call(this)},{}],437:[function(y,we,ge){(function(){var ee;we.exports=ee=function(){function E(){}return E.prototype.hasFeature=function(ie,le){return!0},E.prototype.createDocumentType=function(ie,le,z){throw new Error("This DOM method is not implemented.")},E.prototype.createDocument=function(ie,le,z){throw new Error("This DOM method is not implemented.")},E.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},E.prototype.getFeature=function(ie,le){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],438:[function(y,we,ge){(function(){var ee;we.exports=ee=function(){function E(ie){this.arr=ie||[]}return Object.defineProperty(E.prototype,"length",{get:function(){return this.arr.length}}),E.prototype.item=function(ie){return this.arr[ie]||null},E.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},E}()}).call(this)},{}],439:[function(y,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ie=y("./XMLNode"),ee=y("./NodeType"),we.exports=E=function(se){le(x,se);function x(re,te,ae,ue,fe,de){if(x.__super__.constructor.call(this,re),te==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(ae==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(te));if(!ue)throw new Error("Missing DTD attribute type. "+this.debugInfo(te));if(!fe)throw new Error("Missing DTD attribute default. "+this.debugInfo(te));if(fe.indexOf("#")!==0&&(fe="#"+fe),!fe.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(te));if(de&&!fe.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(te));this.elementName=this.stringify.name(te),this.type=ee.AttributeDeclaration,this.attributeName=this.stringify.name(ae),this.attributeType=this.stringify.dtdAttType(ue),de&&(this.defaultValue=this.stringify.dtdAttDefault(de)),this.defaultValueType=fe}return x.prototype.toString=function(re){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(re))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ie=y("./XMLNode"),ee=y("./NodeType"),we.exports=E=function(se){le(x,se);function x(re,te,ae){if(x.__super__.constructor.call(this,re),te==null)throw new Error("Missing DTD element name. "+this.debugInfo());ae||(ae="(#PCDATA)"),Array.isArray(ae)&&(ae="("+ae.join(",")+")"),this.name=this.stringify.name(te),this.type=ee.ElementDeclaration,this.value=this.stringify.dtdElementValue(ae)}return x.prototype.toString=function(re){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(re))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,we,ge){(function(){var ee,E,ie,le,z=function(x,re){for(var te in re)se.call(re,te)&&(x[te]=re[te]);function ae(){this.constructor=x}return ae.prototype=re.prototype,x.prototype=new ae,x.__super__=re.prototype,x},se={}.hasOwnProperty;le=y("./Utility").isObject,ie=y("./XMLNode"),ee=y("./NodeType"),we.exports=E=function(x){z(re,x);function re(te,ae,ue,fe){if(re.__super__.constructor.call(this,te),ue==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ue));if(fe==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ue));if(this.pe=!!ae,this.name=this.stringify.name(ue),this.type=ee.EntityDeclaration,!le(fe))this.value=this.stringify.dtdEntityValue(fe),this.internal=!0;else{if(!fe.pubID&&!fe.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ue));if(fe.pubID&&!fe.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ue));if(this.internal=!1,fe.pubID!=null&&(this.pubID=this.stringify.dtdPubID(fe.pubID)),fe.sysID!=null&&(this.sysID=this.stringify.dtdSysID(fe.sysID)),fe.nData!=null&&(this.nData=this.stringify.dtdNData(fe.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ue))}}return Object.defineProperty(re.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(re.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(re.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(re.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(re.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(re.prototype,"xmlVersion",{get:function(){return null}}),re.prototype.toString=function(te){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(te))},re}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ie=y("./XMLNode"),ee=y("./NodeType"),we.exports=E=function(se){le(x,se);function x(re,te,ae){if(x.__super__.constructor.call(this,re),te==null)throw new Error("Missing DTD notation name. "+this.debugInfo(te));if(!ae.pubID&&!ae.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(te));this.name=this.stringify.name(te),this.type=ee.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(re){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(re))},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,we,ge){(function(){var ee,E,ie,le,z=function(x,re){for(var te in re)se.call(re,te)&&(x[te]=re[te]);function ae(){this.constructor=x}return ae.prototype=re.prototype,x.prototype=new ae,x.__super__=re.prototype,x},se={}.hasOwnProperty;le=y("./Utility").isObject,ie=y("./XMLNode"),ee=y("./NodeType"),we.exports=E=function(x){z(re,x);function re(te,ae,ue,fe){var de;re.__super__.constructor.call(this,te),le(ae)&&(de=ae,ae=de.version,ue=de.encoding,fe=de.standalone),ae||(ae="1.0"),this.type=ee.Declaration,this.version=this.stringify.xmlVersion(ae),ue!=null&&(this.encoding=this.stringify.xmlEncoding(ue)),fe!=null&&(this.standalone=this.stringify.xmlStandalone(fe))}return re.prototype.toString=function(te){return this.options.writer.declaration(this,this.options.writer.filterOptions(te))},re}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,we,ge){(function(){var ee,E,ie,le,z,se,x,re,te,ae=function(fe,de){for(var he in de)ue.call(de,he)&&(fe[he]=de[he]);function ce(){this.constructor=fe}return ce.prototype=de.prototype,fe.prototype=new ce,fe.__super__=de.prototype,fe},ue={}.hasOwnProperty;te=y("./Utility").isObject,re=y("./XMLNode"),ee=y("./NodeType"),E=y("./XMLDTDAttList"),le=y("./XMLDTDEntity"),ie=y("./XMLDTDElement"),z=y("./XMLDTDNotation"),x=y("./XMLNamedNodeMap"),we.exports=se=function(fe){ae(de,fe);function de(he,ce,pe){var Ce,ke,De,Ae,ve,be;if(de.__super__.constructor.call(this,he),this.type=ee.DocType,he.children){for(Ae=he.children,ke=0,De=Ae.length;ke<De;ke++)if(Ce=Ae[ke],Ce.type===ee.Element){this.name=Ce.name;break}}this.documentObject=he,te(ce)&&(ve=ce,ce=ve.pubID,pe=ve.sysID),pe==null&&(be=[ce,pe],pe=be[0],ce=be[1]),ce!=null&&(this.pubID=this.stringify.dtdPubID(ce)),pe!=null&&(this.sysID=this.stringify.dtdSysID(pe))}return Object.defineProperty(de.prototype,"entities",{get:function(){var he,ce,pe,Ce,ke;for(Ce={},ke=this.children,ce=0,pe=ke.length;ce<pe;ce++)he=ke[ce],he.type===ee.EntityDeclaration&&!he.pe&&(Ce[he.name]=he);return new x(Ce)}}),Object.defineProperty(de.prototype,"notations",{get:function(){var he,ce,pe,Ce,ke;for(Ce={},ke=this.children,ce=0,pe=ke.length;ce<pe;ce++)he=ke[ce],he.type===ee.NotationDeclaration&&(Ce[he.name]=he);return new x(Ce)}}),Object.defineProperty(de.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(de.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(de.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),de.prototype.element=function(he,ce){var pe;return pe=new ie(this,he,ce),this.children.push(pe),this},de.prototype.attList=function(he,ce,pe,Ce,ke){var De;return De=new E(this,he,ce,pe,Ce,ke),this.children.push(De),this},de.prototype.entity=function(he,ce){var pe;return pe=new le(this,!1,he,ce),this.children.push(pe),this},de.prototype.pEntity=function(he,ce){var pe;return pe=new le(this,!0,he,ce),this.children.push(pe),this},de.prototype.notation=function(he,ce){var pe;return pe=new z(this,he,ce),this.children.push(pe),this},de.prototype.toString=function(he){return this.options.writer.docType(this,this.options.writer.filterOptions(he))},de.prototype.ele=function(he,ce){return this.element(he,ce)},de.prototype.att=function(he,ce,pe,Ce,ke){return this.attList(he,ce,pe,Ce,ke)},de.prototype.ent=function(he,ce){return this.entity(he,ce)},de.prototype.pent=function(he,ce){return this.pEntity(he,ce)},de.prototype.not=function(he,ce){return this.notation(he,ce)},de.prototype.up=function(){return this.root()||this.documentObject},de.prototype.isEqualNode=function(he){return!(!de.__super__.isEqualNode.apply(this,arguments).isEqualNode(he)||he.name!==this.name||he.publicId!==this.publicId||he.systemId!==this.systemId)},de}(re)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(y,we,ge){(function(){var ee,E,ie,le,z,se,x,re,te=function(ue,fe){for(var de in fe)ae.call(fe,de)&&(ue[de]=fe[de]);function he(){this.constructor=ue}return he.prototype=fe.prototype,ue.prototype=new he,ue.__super__=fe.prototype,ue},ae={}.hasOwnProperty;re=y("./Utility").isPlainObject,ie=y("./XMLDOMImplementation"),E=y("./XMLDOMConfiguration"),z=y("./XMLNode"),ee=y("./NodeType"),x=y("./XMLStringifier"),se=y("./XMLStringWriter"),we.exports=le=function(ue){te(fe,ue);function fe(de){fe.__super__.constructor.call(this,null),this.name="#document",this.type=ee.Document,this.documentURI=null,this.domConfig=new E,de||(de={}),de.writer||(de.writer=new se),this.options=de,this.stringify=new x(de)}return Object.defineProperty(fe.prototype,"implementation",{value:new ie}),Object.defineProperty(fe.prototype,"doctype",{get:function(){var de,he,ce,pe;for(pe=this.children,he=0,ce=pe.length;he<ce;he++)if(de=pe[he],de.type===ee.DocType)return de;return null}}),Object.defineProperty(fe.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(fe.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(fe.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(fe.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===ee.Declaration?this.children[0].encoding:null}}),Object.defineProperty(fe.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===ee.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(fe.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===ee.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(fe.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(fe.prototype,"origin",{get:function(){return null}}),Object.defineProperty(fe.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(fe.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(fe.prototype,"contentType",{get:function(){return null}}),fe.prototype.end=function(de){var he;return he={},de?re(de)&&(he=de,de=this.options.writer):de=this.options.writer,de.document(this,de.filterOptions(he))},fe.prototype.toString=function(de){return this.options.writer.document(this,this.options.writer.filterOptions(de))},fe.prototype.createElement=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createTextNode=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createComment=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createCDATASection=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createProcessingInstruction=function(de,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createAttribute=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createEntityReference=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByTagName=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.importNode=function(de,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createElementNS=function(de,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createAttributeNS=function(de,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByTagNameNS=function(de,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementById=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.adoptNode=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.renameNode=function(de,he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByClassName=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createEvent=function(de){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createNodeIterator=function(de,he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createTreeWalker=function(de,he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe}(z)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(y,we,ge){(function(){var ee,E,ie,le,z,se,x,re,te,ae,ue,fe,de,he,ce,pe,Ce,ke,De,Ae,ve,be,Ee,Oe,Me={}.hasOwnProperty;Oe=y("./Utility"),be=Oe.isObject,ve=Oe.isFunction,Ee=Oe.isPlainObject,Ae=Oe.getValue,ee=y("./NodeType"),fe=y("./XMLDocument"),he=y("./XMLElement"),le=y("./XMLCData"),z=y("./XMLComment"),pe=y("./XMLRaw"),De=y("./XMLText"),ce=y("./XMLProcessingInstruction"),ae=y("./XMLDeclaration"),ue=y("./XMLDocType"),se=y("./XMLDTDAttList"),re=y("./XMLDTDEntity"),x=y("./XMLDTDElement"),te=y("./XMLDTDNotation"),ie=y("./XMLAttribute"),ke=y("./XMLStringifier"),Ce=y("./XMLStringWriter"),E=y("./WriterState"),we.exports=de=function(){function Se(je,Ze,Xe){var $e;this.name="?xml",this.type=ee.Document,je||(je={}),$e={},je.writer?Ee(je.writer)&&($e=je.writer,je.writer=new Ce):je.writer=new Ce,this.options=je,this.writer=je.writer,this.writerOptions=this.writer.filterOptions($e),this.stringify=new ke(je),this.onDataCallback=Ze||function(){},this.onEndCallback=Xe||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Se.prototype.createChildNode=function(je){var Ze,Xe,$e,lt,Re,We,rt,ot;switch(je.type){case ee.CData:this.cdata(je.value);break;case ee.Comment:this.comment(je.value);break;case ee.Element:$e={},rt=je.attribs;for(Xe in rt)Me.call(rt,Xe)&&(Ze=rt[Xe],$e[Xe]=Ze.value);this.node(je.name,$e);break;case ee.Dummy:this.dummy();break;case ee.Raw:this.raw(je.value);break;case ee.Text:this.text(je.value);break;case ee.ProcessingInstruction:this.instruction(je.target,je.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+je.constructor.name)}for(ot=je.children,Re=0,We=ot.length;Re<We;Re++)lt=ot[Re],this.createChildNode(lt),lt.type===ee.Element&&this.up();return this},Se.prototype.dummy=function(){return this},Se.prototype.node=function(je,Ze,Xe){var $e;if(je==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(je));return this.openCurrent(),je=Ae(je),Ze==null&&(Ze={}),Ze=Ae(Ze),be(Ze)||($e=[Ze,Xe],Xe=$e[0],Ze=$e[1]),this.currentNode=new he(this,je,Ze),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Xe!=null&&this.text(Xe),this},Se.prototype.element=function(je,Ze,Xe){var $e,lt,Re,We,rt,ot;if(this.currentNode&&this.currentNode.type===ee.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(je)||be(je)||ve(je))for(We=this.options.noValidation,this.options.noValidation=!0,ot=new fe(this.options).element("TEMP_ROOT"),ot.element(je),this.options.noValidation=We,rt=ot.children,lt=0,Re=rt.length;lt<Re;lt++)$e=rt[lt],this.createChildNode($e),$e.type===ee.Element&&this.up();else this.node(je,Ze,Xe);return this},Se.prototype.attribute=function(je,Ze){var Xe,$e;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(je));if(je!=null&&(je=Ae(je)),be(je))for(Xe in je)Me.call(je,Xe)&&($e=je[Xe],this.attribute(Xe,$e));else ve(Ze)&&(Ze=Ze.apply()),this.options.keepNullAttributes&&Ze==null?this.currentNode.attribs[je]=new ie(this,je,""):Ze!=null&&(this.currentNode.attribs[je]=new ie(this,je,Ze));return this},Se.prototype.text=function(je){var Ze;return this.openCurrent(),Ze=new De(this,je),this.onData(this.writer.text(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.cdata=function(je){var Ze;return this.openCurrent(),Ze=new le(this,je),this.onData(this.writer.cdata(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.comment=function(je){var Ze;return this.openCurrent(),Ze=new z(this,je),this.onData(this.writer.comment(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.raw=function(je){var Ze;return this.openCurrent(),Ze=new pe(this,je),this.onData(this.writer.raw(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.instruction=function(je,Ze){var Xe,$e,lt,Re,We;if(this.openCurrent(),je!=null&&(je=Ae(je)),Ze!=null&&(Ze=Ae(Ze)),Array.isArray(je))for(Xe=0,Re=je.length;Xe<Re;Xe++)$e=je[Xe],this.instruction($e);else if(be(je))for($e in je)Me.call(je,$e)&&(lt=je[$e],this.instruction($e,lt));else ve(Ze)&&(Ze=Ze.apply()),We=new ce(this,je,Ze),this.onData(this.writer.processingInstruction(We,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Se.prototype.declaration=function(je,Ze,Xe){var $e;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return $e=new ae(this,je,Ze,Xe),this.onData(this.writer.declaration($e,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.doctype=function(je,Ze,Xe){if(this.openCurrent(),je==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,Ze,Xe),this.currentNode.rootNodeName=je,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Se.prototype.dtdElement=function(je,Ze){var Xe;return this.openCurrent(),Xe=new x(this,je,Ze),this.onData(this.writer.dtdElement(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.attList=function(je,Ze,Xe,$e,lt){var Re;return this.openCurrent(),Re=new se(this,je,Ze,Xe,$e,lt),this.onData(this.writer.dtdAttList(Re,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.entity=function(je,Ze){var Xe;return this.openCurrent(),Xe=new re(this,!1,je,Ze),this.onData(this.writer.dtdEntity(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.pEntity=function(je,Ze){var Xe;return this.openCurrent(),Xe=new re(this,!0,je,Ze),this.onData(this.writer.dtdEntity(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.prototype.notation=function(je,Ze){var Xe;return this.openCurrent(),Xe=new te(this,je,Ze),this.onData(this.writer.dtdNotation(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Se.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},Se.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Se.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Se.prototype.openNode=function(je){var Ze,Xe,$e,lt;if(!je.isOpen){if(!this.root&&this.currentLevel===0&&je.type===ee.Element&&(this.root=je),Xe="",je.type===ee.Element){this.writerOptions.state=E.OpenTag,Xe=this.writer.indent(je,this.writerOptions,this.currentLevel)+"<"+je.name,lt=je.attribs;for($e in lt)Me.call(lt,$e)&&(Ze=lt[$e],Xe+=this.writer.attribute(Ze,this.writerOptions,this.currentLevel));Xe+=(je.children?">":"/>")+this.writer.endline(je,this.writerOptions,this.currentLevel),this.writerOptions.state=E.InsideTag}else this.writerOptions.state=E.OpenTag,Xe=this.writer.indent(je,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+je.rootNodeName,je.pubID&&je.sysID?Xe+=' PUBLIC "'+je.pubID+'" "'+je.sysID+'"':je.sysID&&(Xe+=' SYSTEM "'+je.sysID+'"'),je.children?(Xe+=" [",this.writerOptions.state=E.InsideTag):(this.writerOptions.state=E.CloseTag,Xe+=">"),Xe+=this.writer.endline(je,this.writerOptions,this.currentLevel);return this.onData(Xe,this.currentLevel),je.isOpen=!0}},Se.prototype.closeNode=function(je){var Ze;if(!je.isClosed)return Ze="",this.writerOptions.state=E.CloseTag,je.type===ee.Element?Ze=this.writer.indent(je,this.writerOptions,this.currentLevel)+"</"+je.name+">"+this.writer.endline(je,this.writerOptions,this.currentLevel):Ze=this.writer.indent(je,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(je,this.writerOptions,this.currentLevel),this.writerOptions.state=E.None,this.onData(Ze,this.currentLevel),je.isClosed=!0},Se.prototype.onData=function(je,Ze){return this.documentStarted=!0,this.onDataCallback(je,Ze+1)},Se.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Se.prototype.debugInfo=function(je){return je==null?"":"node: <"+je+">"},Se.prototype.ele=function(){return this.element.apply(this,arguments)},Se.prototype.nod=function(je,Ze,Xe){return this.node(je,Ze,Xe)},Se.prototype.txt=function(je){return this.text(je)},Se.prototype.dat=function(je){return this.cdata(je)},Se.prototype.com=function(je){return this.comment(je)},Se.prototype.ins=function(je,Ze){return this.instruction(je,Ze)},Se.prototype.dec=function(je,Ze,Xe){return this.declaration(je,Ze,Xe)},Se.prototype.dtd=function(je,Ze,Xe){return this.doctype(je,Ze,Xe)},Se.prototype.e=function(je,Ze,Xe){return this.element(je,Ze,Xe)},Se.prototype.n=function(je,Ze,Xe){return this.node(je,Ze,Xe)},Se.prototype.t=function(je){return this.text(je)},Se.prototype.d=function(je){return this.cdata(je)},Se.prototype.c=function(je){return this.comment(je)},Se.prototype.r=function(je){return this.raw(je)},Se.prototype.i=function(je,Ze){return this.instruction(je,Ze)},Se.prototype.att=function(){return this.currentNode&&this.currentNode.type===ee.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Se.prototype.a=function(){return this.currentNode&&this.currentNode.type===ee.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Se.prototype.ent=function(je,Ze){return this.entity(je,Ze)},Se.prototype.pent=function(je,Ze){return this.pEntity(je,Ze)},Se.prototype.not=function(je,Ze){return this.notation(je,Ze)},Se}()}).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,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ie=y("./XMLNode"),ee=y("./NodeType"),we.exports=E=function(se){le(x,se);function x(re){x.__super__.constructor.call(this,re),this.type=ee.Dummy}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(re){return""},x}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,we,ge){(function(){var ee,E,ie,le,z,se,x,re,te,ae=function(fe,de){for(var he in de)ue.call(de,he)&&(fe[he]=de[he]);function ce(){this.constructor=fe}return ce.prototype=de.prototype,fe.prototype=new ce,fe.__super__=de.prototype,fe},ue={}.hasOwnProperty;te=y("./Utility"),re=te.isObject,x=te.isFunction,se=te.getValue,z=y("./XMLNode"),ee=y("./NodeType"),E=y("./XMLAttribute"),le=y("./XMLNamedNodeMap"),we.exports=ie=function(fe){ae(de,fe);function de(he,ce,pe){var Ce,ke,De,Ae;if(de.__super__.constructor.call(this,he),ce==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(ce),this.type=ee.Element,this.attribs={},this.schemaTypeInfo=null,pe!=null&&this.attribute(pe),he.type===ee.Document&&(this.isRoot=!0,this.documentObject=he,he.rootObject=this,he.children)){for(Ae=he.children,ke=0,De=Ae.length;ke<De;ke++)if(Ce=Ae[ke],Ce.type===ee.DocType){Ce.name=this.name;break}}}return Object.defineProperty(de.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(de.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(de.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(de.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(de.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(de.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(de.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(de.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new le(this.attribs)),this.attributeMap}}),de.prototype.clone=function(){var he,ce,pe,Ce;pe=Object.create(this),pe.isRoot&&(pe.documentObject=null),pe.attribs={},Ce=this.attribs;for(ce in Ce)ue.call(Ce,ce)&&(he=Ce[ce],pe.attribs[ce]=he.clone());return pe.children=[],this.children.forEach(function(ke){var De;return De=ke.clone(),De.parent=pe,pe.children.push(De)}),pe},de.prototype.attribute=function(he,ce){var pe,Ce;if(he!=null&&(he=se(he)),re(he))for(pe in he)ue.call(he,pe)&&(Ce=he[pe],this.attribute(pe,Ce));else x(ce)&&(ce=ce.apply()),this.options.keepNullAttributes&&ce==null?this.attribs[he]=new E(this,he,""):ce!=null&&(this.attribs[he]=new E(this,he,ce));return this},de.prototype.removeAttribute=function(he){var ce,pe,Ce;if(he==null)throw new Error("Missing attribute name. "+this.debugInfo());if(he=se(he),Array.isArray(he))for(pe=0,Ce=he.length;pe<Ce;pe++)ce=he[pe],delete this.attribs[ce];else delete this.attribs[he];return this},de.prototype.toString=function(he){return this.options.writer.element(this,this.options.writer.filterOptions(he))},de.prototype.att=function(he,ce){return this.attribute(he,ce)},de.prototype.a=function(he,ce){return this.attribute(he,ce)},de.prototype.getAttribute=function(he){return this.attribs.hasOwnProperty(he)?this.attribs[he].value:null},de.prototype.setAttribute=function(he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getAttributeNode=function(he){return this.attribs.hasOwnProperty(he)?this.attribs[he]:null},de.prototype.setAttributeNode=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.removeAttributeNode=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getElementsByTagName=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getAttributeNS=function(he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.setAttributeNS=function(he,ce,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.removeAttributeNS=function(he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getAttributeNodeNS=function(he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.setAttributeNodeNS=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getElementsByTagNameNS=function(he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.hasAttribute=function(he){return this.attribs.hasOwnProperty(he)},de.prototype.hasAttributeNS=function(he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.setIdAttribute=function(he,ce){return this.attribs.hasOwnProperty(he)?this.attribs[he].isId:ce},de.prototype.setIdAttributeNS=function(he,ce,pe){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.setIdAttributeNode=function(he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getElementsByTagName=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getElementsByTagNameNS=function(he,ce){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getElementsByClassName=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isEqualNode=function(he){var ce,pe,Ce;if(!de.__super__.isEqualNode.apply(this,arguments).isEqualNode(he)||he.namespaceURI!==this.namespaceURI||he.prefix!==this.prefix||he.localName!==this.localName||he.attribs.length!==this.attribs.length)return!1;for(ce=pe=0,Ce=this.attribs.length-1;0<=Ce?pe<=Ce:pe>=Ce;ce=0<=Ce?++pe:--pe)if(!this.attribs[ce].isEqualNode(he.attribs[ce]))return!1;return!0},de}(z)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,we,ge){(function(){var ee;we.exports=ee=function(){function E(ie){this.nodes=ie}return Object.defineProperty(E.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.getNamedItem=function(ie){return this.nodes[ie]},E.prototype.setNamedItem=function(ie){var le;return le=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,le||null},E.prototype.removeNamedItem=function(ie){var le;return le=this.nodes[ie],delete this.nodes[ie],le||null},E.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},E.prototype.getNamedItemNS=function(ie,le){throw new Error("This DOM method is not implemented.")},E.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},E.prototype.removeNamedItemNS=function(ie,le){throw new Error("This DOM method is not implemented.")},E}()}).call(this)},{}],450:[function(y,we,ge){(function(){var ee,E,ie,le,z,se,x,re,te,ae,ue,fe,de,he,ce,pe,Ce,ke,De,Ae={}.hasOwnProperty;De=y("./Utility"),ke=De.isObject,Ce=De.isFunction,pe=De.isEmpty,ce=De.getValue,re=null,ie=null,le=null,z=null,se=null,de=null,he=null,fe=null,x=null,E=null,ue=null,te=null,ee=null,we.exports=ae=function(){function ve(be){this.parent=be,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,re||(re=y("./XMLElement"),ie=y("./XMLCData"),le=y("./XMLComment"),z=y("./XMLDeclaration"),se=y("./XMLDocType"),de=y("./XMLRaw"),he=y("./XMLText"),fe=y("./XMLProcessingInstruction"),x=y("./XMLDummy"),E=y("./NodeType"),ue=y("./XMLNodeList"),te=y("./XMLNamedNodeMap"),ee=y("./DocumentPosition"))}return Object.defineProperty(ve.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(ve.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ve.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(ve.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(ve.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ue(this.children)),this.childNodeList}}),Object.defineProperty(ve.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(ve.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(ve.prototype,"previousSibling",{get:function(){var be;return be=this.parent.children.indexOf(this),this.parent.children[be-1]||null}}),Object.defineProperty(ve.prototype,"nextSibling",{get:function(){var be;return be=this.parent.children.indexOf(this),this.parent.children[be+1]||null}}),Object.defineProperty(ve.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(ve.prototype,"textContent",{get:function(){var be,Ee,Oe,Me,Se;if(this.nodeType===E.Element||this.nodeType===E.DocumentFragment){for(Se="",Me=this.children,Ee=0,Oe=Me.length;Ee<Oe;Ee++)be=Me[Ee],be.textContent&&(Se+=be.textContent);return Se}else return null},set:function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),ve.prototype.setParent=function(be){var Ee,Oe,Me,Se,je;for(this.parent=be,be&&(this.options=be.options,this.stringify=be.stringify),Se=this.children,je=[],Oe=0,Me=Se.length;Oe<Me;Oe++)Ee=Se[Oe],je.push(Ee.setParent(this));return je},ve.prototype.element=function(be,Ee,Oe){var Me,Se,je,Ze,Xe,$e,lt,Re,We,rt,ot;if($e=null,Ee===null&&Oe==null&&(We=[{},null],Ee=We[0],Oe=We[1]),Ee==null&&(Ee={}),Ee=ce(Ee),ke(Ee)||(rt=[Ee,Oe],Oe=rt[0],Ee=rt[1]),be!=null&&(be=ce(be)),Array.isArray(be))for(je=0,lt=be.length;je<lt;je++)Se=be[je],$e=this.element(Se);else if(Ce(be))$e=this.element(be.apply());else if(ke(be)){for(Xe in be)if(Ae.call(be,Xe))if(ot=be[Xe],Ce(ot)&&(ot=ot.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Xe.indexOf(this.stringify.convertAttKey)===0)$e=this.attribute(Xe.substr(this.stringify.convertAttKey.length),ot);else if(!this.options.separateArrayItems&&Array.isArray(ot)&&pe(ot))$e=this.dummy();else if(ke(ot)&&pe(ot))$e=this.element(Xe);else if(!this.options.keepNullNodes&&ot==null)$e=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(ot))for(Ze=0,Re=ot.length;Ze<Re;Ze++)Se=ot[Ze],Me={},Me[Xe]=Se,$e=this.element(Me);else ke(ot)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Xe.indexOf(this.stringify.convertTextKey)===0?$e=this.element(ot):($e=this.element(Xe),$e.element(ot)):$e=this.element(Xe,ot)}else!this.options.keepNullNodes&&Oe===null?$e=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&be.indexOf(this.stringify.convertTextKey)===0?$e=this.text(Oe):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&be.indexOf(this.stringify.convertCDataKey)===0?$e=this.cdata(Oe):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&be.indexOf(this.stringify.convertCommentKey)===0?$e=this.comment(Oe):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&be.indexOf(this.stringify.convertRawKey)===0?$e=this.raw(Oe):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&be.indexOf(this.stringify.convertPIKey)===0?$e=this.instruction(be.substr(this.stringify.convertPIKey.length),Oe):$e=this.node(be,Ee,Oe);if($e==null)throw new Error("Could not create any elements with: "+be+". "+this.debugInfo());return $e},ve.prototype.insertBefore=function(be,Ee,Oe){var Me,Se,je,Ze,Xe;if(be!=null&&be.type)return je=be,Ze=Ee,je.setParent(this),Ze?(Se=children.indexOf(Ze),Xe=children.splice(Se),children.push(je),Array.prototype.push.apply(children,Xe)):children.push(je),je;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(be));return Se=this.parent.children.indexOf(this),Xe=this.parent.children.splice(Se),Me=this.parent.element(be,Ee,Oe),Array.prototype.push.apply(this.parent.children,Xe),Me},ve.prototype.insertAfter=function(be,Ee,Oe){var Me,Se,je;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(be));return Se=this.parent.children.indexOf(this),je=this.parent.children.splice(Se+1),Me=this.parent.element(be,Ee,Oe),Array.prototype.push.apply(this.parent.children,je),Me},ve.prototype.remove=function(){var be,Ee;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return be=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[be,be-be+1].concat(Ee=[])),this.parent},ve.prototype.node=function(be,Ee,Oe){var Me,Se;return be!=null&&(be=ce(be)),Ee||(Ee={}),Ee=ce(Ee),ke(Ee)||(Se=[Ee,Oe],Oe=Se[0],Ee=Se[1]),Me=new re(this,be,Ee),Oe!=null&&Me.text(Oe),this.children.push(Me),Me},ve.prototype.text=function(be){var Ee;return ke(be)&&this.element(be),Ee=new he(this,be),this.children.push(Ee),this},ve.prototype.cdata=function(be){var Ee;return Ee=new ie(this,be),this.children.push(Ee),this},ve.prototype.comment=function(be){var Ee;return Ee=new le(this,be),this.children.push(Ee),this},ve.prototype.commentBefore=function(be){var Ee,Oe,Me;return Oe=this.parent.children.indexOf(this),Me=this.parent.children.splice(Oe),Ee=this.parent.comment(be),Array.prototype.push.apply(this.parent.children,Me),this},ve.prototype.commentAfter=function(be){var Ee,Oe,Me;return Oe=this.parent.children.indexOf(this),Me=this.parent.children.splice(Oe+1),Ee=this.parent.comment(be),Array.prototype.push.apply(this.parent.children,Me),this},ve.prototype.raw=function(be){var Ee;return Ee=new de(this,be),this.children.push(Ee),this},ve.prototype.dummy=function(){var be;return be=new x(this),be},ve.prototype.instruction=function(be,Ee){var Oe,Me,Se,je,Ze;if(be!=null&&(be=ce(be)),Ee!=null&&(Ee=ce(Ee)),Array.isArray(be))for(je=0,Ze=be.length;je<Ze;je++)Oe=be[je],this.instruction(Oe);else if(ke(be))for(Oe in be)Ae.call(be,Oe)&&(Me=be[Oe],this.instruction(Oe,Me));else Ce(Ee)&&(Ee=Ee.apply()),Se=new fe(this,be,Ee),this.children.push(Se);return this},ve.prototype.instructionBefore=function(be,Ee){var Oe,Me,Se;return Me=this.parent.children.indexOf(this),Se=this.parent.children.splice(Me),Oe=this.parent.instruction(be,Ee),Array.prototype.push.apply(this.parent.children,Se),this},ve.prototype.instructionAfter=function(be,Ee){var Oe,Me,Se;return Me=this.parent.children.indexOf(this),Se=this.parent.children.splice(Me+1),Oe=this.parent.instruction(be,Ee),Array.prototype.push.apply(this.parent.children,Se),this},ve.prototype.declaration=function(be,Ee,Oe){var Me,Se;return Me=this.document(),Se=new z(Me,be,Ee,Oe),Me.children.length===0?Me.children.unshift(Se):Me.children[0].type===E.Declaration?Me.children[0]=Se:Me.children.unshift(Se),Me.root()||Me},ve.prototype.dtd=function(be,Ee){var Oe,Me,Se,je,Ze,Xe,$e,lt,Re,We;for(Me=this.document(),Se=new se(Me,be,Ee),Re=Me.children,je=Ze=0,$e=Re.length;Ze<$e;je=++Ze)if(Oe=Re[je],Oe.type===E.DocType)return Me.children[je]=Se,Se;for(We=Me.children,je=Xe=0,lt=We.length;Xe<lt;je=++Xe)if(Oe=We[je],Oe.isRoot)return Me.children.splice(je,0,Se),Se;return Me.children.push(Se),Se},ve.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},ve.prototype.root=function(){var be;for(be=this;be;){if(be.type===E.Document)return be.rootObject;if(be.isRoot)return be;be=be.parent}},ve.prototype.document=function(){var be;for(be=this;be;){if(be.type===E.Document)return be;be=be.parent}},ve.prototype.end=function(be){return this.document().end(be)},ve.prototype.prev=function(){var be;if(be=this.parent.children.indexOf(this),be<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[be-1]},ve.prototype.next=function(){var be;if(be=this.parent.children.indexOf(this),be===-1||be===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[be+1]},ve.prototype.importDocument=function(be){var Ee;return Ee=be.root().clone(),Ee.parent=this,Ee.isRoot=!1,this.children.push(Ee),this},ve.prototype.debugInfo=function(be){var Ee,Oe;return be=be||this.name,be==null&&!((Ee=this.parent)!=null&&Ee.name)?"":be==null?"parent: <"+this.parent.name+">":(Oe=this.parent)!=null&&Oe.name?"node: <"+be+">, parent: <"+this.parent.name+">":"node: <"+be+">"},ve.prototype.ele=function(be,Ee,Oe){return this.element(be,Ee,Oe)},ve.prototype.nod=function(be,Ee,Oe){return this.node(be,Ee,Oe)},ve.prototype.txt=function(be){return this.text(be)},ve.prototype.dat=function(be){return this.cdata(be)},ve.prototype.com=function(be){return this.comment(be)},ve.prototype.ins=function(be,Ee){return this.instruction(be,Ee)},ve.prototype.doc=function(){return this.document()},ve.prototype.dec=function(be,Ee,Oe){return this.declaration(be,Ee,Oe)},ve.prototype.e=function(be,Ee,Oe){return this.element(be,Ee,Oe)},ve.prototype.n=function(be,Ee,Oe){return this.node(be,Ee,Oe)},ve.prototype.t=function(be){return this.text(be)},ve.prototype.d=function(be){return this.cdata(be)},ve.prototype.c=function(be){return this.comment(be)},ve.prototype.r=function(be){return this.raw(be)},ve.prototype.i=function(be,Ee){return this.instruction(be,Ee)},ve.prototype.u=function(){return this.up()},ve.prototype.importXMLBuilder=function(be){return this.importDocument(be)},ve.prototype.replaceChild=function(be,Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.removeChild=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.appendChild=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.hasChildNodes=function(){return this.children.length!==0},ve.prototype.cloneNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.isSupported=function(be,Ee){return!0},ve.prototype.hasAttributes=function(){return this.attribs.length!==0},ve.prototype.compareDocumentPosition=function(be){var Ee,Oe;return Ee=this,Ee===be?0:this.document()!==be.document()?(Oe=ee.Disconnected|ee.ImplementationSpecific,Math.random()<.5?Oe|=ee.Preceding:Oe|=ee.Following,Oe):Ee.isAncestor(be)?ee.Contains|ee.Preceding:Ee.isDescendant(be)?ee.Contains|ee.Following:Ee.isPreceding(be)?ee.Preceding:ee.Following},ve.prototype.isSameNode=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.lookupPrefix=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.isDefaultNamespace=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.lookupNamespaceURI=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.isEqualNode=function(be){var Ee,Oe,Me;if(be.nodeType!==this.nodeType||be.children.length!==this.children.length)return!1;for(Ee=Oe=0,Me=this.children.length-1;0<=Me?Oe<=Me:Oe>=Me;Ee=0<=Me?++Oe:--Oe)if(!this.children[Ee].isEqualNode(be.children[Ee]))return!1;return!0},ve.prototype.getFeature=function(be,Ee){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.setUserData=function(be,Ee,Oe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.getUserData=function(be){throw new Error("This DOM method is not implemented."+this.debugInfo())},ve.prototype.contains=function(be){return be?be===this||this.isDescendant(be):!1},ve.prototype.isDescendant=function(be){var Ee,Oe,Me,Se,je;for(je=this.children,Me=0,Se=je.length;Me<Se;Me++)if(Ee=je[Me],be===Ee||(Oe=Ee.isDescendant(be),Oe))return!0;return!1},ve.prototype.isAncestor=function(be){return be.isDescendant(this)},ve.prototype.isPreceding=function(be){var Ee,Oe;return Ee=this.treePosition(be),Oe=this.treePosition(this),Ee===-1||Oe===-1?!1:Ee<Oe},ve.prototype.isFollowing=function(be){var Ee,Oe;return Ee=this.treePosition(be),Oe=this.treePosition(this),Ee===-1||Oe===-1?!1:Ee>Oe},ve.prototype.treePosition=function(be){var Ee,Oe;return Oe=0,Ee=!1,this.foreachTreeNode(this.document(),function(Me){if(Oe++,!Ee&&Me===be)return Ee=!0}),Ee?Oe:-1},ve.prototype.foreachTreeNode=function(be,Ee){var Oe,Me,Se,je,Ze;for(be||(be=this.document()),je=be.children,Me=0,Se=je.length;Me<Se;Me++){if(Oe=je[Me],Ze=Ee(Oe))return Ze;if(Ze=this.foreachTreeNode(Oe,Ee),Ze)return Ze}},ve}()}).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,we,ge){(function(){var ee;we.exports=ee=function(){function E(ie){this.nodes=ie}return Object.defineProperty(E.prototype,"length",{get:function(){return this.nodes.length||0}}),E.prototype.clone=function(){return this.nodes=null},E.prototype.item=function(ie){return this.nodes[ie]||null},E}()}).call(this)},{}],452:[function(y,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ee=y("./NodeType"),E=y("./XMLCharacterData"),we.exports=ie=function(se){le(x,se);function x(re,te,ae){if(x.__super__.constructor.call(this,re),te==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=ee.ProcessingInstruction,this.target=this.stringify.insTarget(te),this.name=this.target,ae&&(this.value=this.stringify.insValue(ae))}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(re){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(re))},x.prototype.isEqualNode=function(re){return!(!x.__super__.isEqualNode.apply(this,arguments).isEqualNode(re)||re.target!==this.target)},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(y,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ee=y("./NodeType"),E=y("./XMLNode"),we.exports=ie=function(se){le(x,se);function x(re,te){if(x.__super__.constructor.call(this,re),te==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=ee.Raw,this.value=this.stringify.raw(te)}return x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(re){return this.options.writer.raw(this,this.options.writer.filterOptions(re))},x}(E)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(y,we,ge){(function(){var ee,E,ie,le,z=function(x,re){for(var te in re)se.call(re,te)&&(x[te]=re[te]);function ae(){this.constructor=x}return ae.prototype=re.prototype,x.prototype=new ae,x.__super__=re.prototype,x},se={}.hasOwnProperty;ee=y("./NodeType"),le=y("./XMLWriterBase"),E=y("./WriterState"),we.exports=ie=function(x){z(re,x);function re(te,ae){this.stream=te,re.__super__.constructor.call(this,ae)}return re.prototype.endline=function(te,ae,ue){return te.isLastRootNode&&ae.state===E.CloseTag?"":re.__super__.endline.call(this,te,ae,ue)},re.prototype.document=function(te,ae){var ue,fe,de,he,ce,pe,Ce,ke,De;for(Ce=te.children,fe=de=0,ce=Ce.length;de<ce;fe=++de)ue=Ce[fe],ue.isLastRootNode=fe===te.children.length-1;for(ae=this.filterOptions(ae),ke=te.children,De=[],he=0,pe=ke.length;he<pe;he++)ue=ke[he],De.push(this.writeChildNode(ue,ae,0));return De},re.prototype.attribute=function(te,ae,ue){return this.stream.write(re.__super__.attribute.call(this,te,ae,ue))},re.prototype.cdata=function(te,ae,ue){return this.stream.write(re.__super__.cdata.call(this,te,ae,ue))},re.prototype.comment=function(te,ae,ue){return this.stream.write(re.__super__.comment.call(this,te,ae,ue))},re.prototype.declaration=function(te,ae,ue){return this.stream.write(re.__super__.declaration.call(this,te,ae,ue))},re.prototype.docType=function(te,ae,ue){var fe,de,he,ce;if(ue||(ue=0),this.openNode(te,ae,ue),ae.state=E.OpenTag,this.stream.write(this.indent(te,ae,ue)),this.stream.write("<!DOCTYPE "+te.root().name),te.pubID&&te.sysID?this.stream.write(' PUBLIC "'+te.pubID+'" "'+te.sysID+'"'):te.sysID&&this.stream.write(' SYSTEM "'+te.sysID+'"'),te.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(te,ae,ue)),ae.state=E.InsideTag,ce=te.children,de=0,he=ce.length;de<he;de++)fe=ce[de],this.writeChildNode(fe,ae,ue+1);ae.state=E.CloseTag,this.stream.write("]")}return ae.state=E.CloseTag,this.stream.write(ae.spaceBeforeSlash+">"),this.stream.write(this.endline(te,ae,ue)),ae.state=E.None,this.closeNode(te,ae,ue)},re.prototype.element=function(te,ae,ue){var fe,de,he,ce,pe,Ce,ke,De,Ae,ve;ue||(ue=0),this.openNode(te,ae,ue),ae.state=E.OpenTag,this.stream.write(this.indent(te,ae,ue)+"<"+te.name),Ae=te.attribs;for(ke in Ae)se.call(Ae,ke)&&(fe=Ae[ke],this.attribute(fe,ae,ue));if(he=te.children.length,ce=he===0?null:te.children[0],he===0||te.children.every(function(be){return(be.type===ee.Text||be.type===ee.Raw)&&be.value===""}))ae.allowEmpty?(this.stream.write(">"),ae.state=E.CloseTag,this.stream.write("</"+te.name+">")):(ae.state=E.CloseTag,this.stream.write(ae.spaceBeforeSlash+"/>"));else if(ae.pretty&&he===1&&(ce.type===ee.Text||ce.type===ee.Raw)&&ce.value!=null)this.stream.write(">"),ae.state=E.InsideTag,ae.suppressPrettyCount++,De=!0,this.writeChildNode(ce,ae,ue+1),ae.suppressPrettyCount--,De=!1,ae.state=E.CloseTag,this.stream.write("</"+te.name+">");else{for(this.stream.write(">"+this.endline(te,ae,ue)),ae.state=E.InsideTag,ve=te.children,pe=0,Ce=ve.length;pe<Ce;pe++)de=ve[pe],this.writeChildNode(de,ae,ue+1);ae.state=E.CloseTag,this.stream.write(this.indent(te,ae,ue)+"</"+te.name+">")}return this.stream.write(this.endline(te,ae,ue)),ae.state=E.None,this.closeNode(te,ae,ue)},re.prototype.processingInstruction=function(te,ae,ue){return this.stream.write(re.__super__.processingInstruction.call(this,te,ae,ue))},re.prototype.raw=function(te,ae,ue){return this.stream.write(re.__super__.raw.call(this,te,ae,ue))},re.prototype.text=function(te,ae,ue){return this.stream.write(re.__super__.text.call(this,te,ae,ue))},re.prototype.dtdAttList=function(te,ae,ue){return this.stream.write(re.__super__.dtdAttList.call(this,te,ae,ue))},re.prototype.dtdElement=function(te,ae,ue){return this.stream.write(re.__super__.dtdElement.call(this,te,ae,ue))},re.prototype.dtdEntity=function(te,ae,ue){return this.stream.write(re.__super__.dtdEntity.call(this,te,ae,ue))},re.prototype.dtdNotation=function(te,ae,ue){return this.stream.write(re.__super__.dtdNotation.call(this,te,ae,ue))},re}(le)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,we,ge){(function(){var ee,E,ie=function(z,se){for(var x in se)le.call(se,x)&&(z[x]=se[x]);function re(){this.constructor=z}return re.prototype=se.prototype,z.prototype=new re,z.__super__=se.prototype,z},le={}.hasOwnProperty;E=y("./XMLWriterBase"),we.exports=ee=function(z){ie(se,z);function se(x){se.__super__.constructor.call(this,x)}return se.prototype.document=function(x,re){var te,ae,ue,fe,de;for(re=this.filterOptions(re),fe="",de=x.children,ae=0,ue=de.length;ae<ue;ae++)te=de[ae],fe+=this.writeChildNode(te,re,0);return re.pretty&&fe.slice(-re.newline.length)===re.newline&&(fe=fe.slice(0,-re.newline.length)),fe},se}(E)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,we,ge){(function(){var ee,E=function(le,z){return function(){return le.apply(z,arguments)}},ie={}.hasOwnProperty;we.exports=ee=function(){function le(z){this.assertLegalName=E(this.assertLegalName,this),this.assertLegalChar=E(this.assertLegalChar,this);var se,x,re;z||(z={}),this.options=z,this.options.version||(this.options.version="1.0"),x=z.stringify||{};for(se in x)ie.call(x,se)&&(re=x[se],this[se]=re)}return le.prototype.name=function(z){return this.options.noValidation?z:this.assertLegalName(""+z||"")},le.prototype.text=function(z){return this.options.noValidation?z:this.assertLegalChar(this.textEscape(""+z||""))},le.prototype.cdata=function(z){return this.options.noValidation?z:(z=""+z||"",z=z.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(z))},le.prototype.comment=function(z){if(this.options.noValidation)return z;if(z=""+z||"",z.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+z);return this.assertLegalChar(z)},le.prototype.raw=function(z){return this.options.noValidation?z:""+z||""},le.prototype.attValue=function(z){return this.options.noValidation?z:this.assertLegalChar(this.attEscape(z=""+z||""))},le.prototype.insTarget=function(z){return this.options.noValidation?z:this.assertLegalChar(""+z||"")},le.prototype.insValue=function(z){if(this.options.noValidation)return z;if(z=""+z||"",z.match(/\?>/))throw new Error("Invalid processing instruction value: "+z);return this.assertLegalChar(z)},le.prototype.xmlVersion=function(z){if(this.options.noValidation)return z;if(z=""+z||"",!z.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+z);return z},le.prototype.xmlEncoding=function(z){if(this.options.noValidation)return z;if(z=""+z||"",!z.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+z);return this.assertLegalChar(z)},le.prototype.xmlStandalone=function(z){return this.options.noValidation?z:z?"yes":"no"},le.prototype.dtdPubID=function(z){return this.options.noValidation?z:this.assertLegalChar(""+z||"")},le.prototype.dtdSysID=function(z){return this.options.noValidation?z:this.assertLegalChar(""+z||"")},le.prototype.dtdElementValue=function(z){return this.options.noValidation?z:this.assertLegalChar(""+z||"")},le.prototype.dtdAttType=function(z){return this.options.noValidation?z:this.assertLegalChar(""+z||"")},le.prototype.dtdAttDefault=function(z){return this.options.noValidation?z:this.assertLegalChar(""+z||"")},le.prototype.dtdEntityValue=function(z){return this.options.noValidation?z:this.assertLegalChar(""+z||"")},le.prototype.dtdNData=function(z){return this.options.noValidation?z:this.assertLegalChar(""+z||"")},le.prototype.convertAttKey="@",le.prototype.convertPIKey="?",le.prototype.convertTextKey="#text",le.prototype.convertCDataKey="#cdata",le.prototype.convertCommentKey="#comment",le.prototype.convertRawKey="#raw",le.prototype.assertLegalChar=function(z){var se,x;if(this.options.noValidation)return z;if(se="",this.options.version==="1.0"){if(se=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=z.match(se))throw new Error("Invalid character in string: "+z+" at index "+x.index)}else if(this.options.version==="1.1"&&(se=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=z.match(se)))throw new Error("Invalid character in string: "+z+" at index "+x.index);return z},le.prototype.assertLegalName=function(z){var se;if(this.options.noValidation)return z;if(this.assertLegalChar(z),se=/^([: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])*$/,!z.match(se))throw new Error("Invalid character in name");return z},le.prototype.textEscape=function(z){var se;return this.options.noValidation?z:(se=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,z.replace(se,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},le.prototype.attEscape=function(z){var se;return this.options.noValidation?z:(se=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,z.replace(se,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},le}()}).call(this)},{}],457:[function(y,we,ge){(function(){var ee,E,ie,le=function(se,x){for(var re in x)z.call(x,re)&&(se[re]=x[re]);function te(){this.constructor=se}return te.prototype=x.prototype,se.prototype=new te,se.__super__=x.prototype,se},z={}.hasOwnProperty;ee=y("./NodeType"),E=y("./XMLCharacterData"),we.exports=ie=function(se){le(x,se);function x(re,te){if(x.__super__.constructor.call(this,re),te==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=ee.Text,this.value=this.stringify.text(te)}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 re,te,ae;for(ae="",te=this.previousSibling;te;)ae=te.data+ae,te=te.previousSibling;for(ae+=this.data,re=this.nextSibling;re;)ae=ae+re.data,re=re.nextSibling;return ae}}),x.prototype.clone=function(){return Object.create(this)},x.prototype.toString=function(re){return this.options.writer.text(this,this.options.writer.filterOptions(re))},x.prototype.splitText=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},x.prototype.replaceWholeText=function(re){throw new Error("This DOM method is not implemented."+this.debugInfo())},x}(E)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(y,we,ge){(function(){var ee,E,ie,le,z,se,x,re,te,ae,ue,fe,de,he,ce,pe,Ce,ke={}.hasOwnProperty;Ce=y("./Utility").assign,ee=y("./NodeType"),te=y("./XMLDeclaration"),ae=y("./XMLDocType"),ie=y("./XMLCData"),le=y("./XMLComment"),fe=y("./XMLElement"),he=y("./XMLRaw"),ce=y("./XMLText"),de=y("./XMLProcessingInstruction"),ue=y("./XMLDummy"),z=y("./XMLDTDAttList"),se=y("./XMLDTDElement"),x=y("./XMLDTDEntity"),re=y("./XMLDTDNotation"),E=y("./WriterState"),we.exports=pe=function(){function De(Ae){var ve,be,Ee;Ae||(Ae={}),this.options=Ae,be=Ae.writer||{};for(ve in be)ke.call(be,ve)&&(Ee=be[ve],this["_"+ve]=this[ve],this[ve]=Ee)}return De.prototype.filterOptions=function(Ae){var ve,be,Ee,Oe,Me,Se,je,Ze;return Ae||(Ae={}),Ae=Ce({},this.options,Ae),ve={writer:this},ve.pretty=Ae.pretty||!1,ve.allowEmpty=Ae.allowEmpty||!1,ve.indent=(be=Ae.indent)!=null?be:" ",ve.newline=(Ee=Ae.newline)!=null?Ee:`
`,ve.offset=(Oe=Ae.offset)!=null?Oe:0,ve.dontPrettyTextNodes=(Me=(Se=Ae.dontPrettyTextNodes)!=null?Se:Ae.dontprettytextnodes)!=null?Me:0,ve.spaceBeforeSlash=(je=(Ze=Ae.spaceBeforeSlash)!=null?Ze:Ae.spacebeforeslash)!=null?je:"",ve.spaceBeforeSlash===!0&&(ve.spaceBeforeSlash=" "),ve.suppressPrettyCount=0,ve.user={},ve.state=E.None,ve},De.prototype.indent=function(Ae,ve,be){var Ee;return!ve.pretty||ve.suppressPrettyCount?"":ve.pretty&&(Ee=(be||0)+ve.offset+1,Ee>0)?new Array(Ee).join(ve.indent):""},De.prototype.endline=function(Ae,ve,be){return!ve.pretty||ve.suppressPrettyCount?"":ve.newline},De.prototype.attribute=function(Ae,ve,be){var Ee;return this.openAttribute(Ae,ve,be),Ee=" "+Ae.name+'="'+Ae.value+'"',this.closeAttribute(Ae,ve,be),Ee},De.prototype.cdata=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be)+"<![CDATA[",ve.state=E.InsideTag,Ee+=Ae.value,ve.state=E.CloseTag,Ee+="]]>"+this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.comment=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be)+"<!-- ",ve.state=E.InsideTag,Ee+=Ae.value,ve.state=E.CloseTag,Ee+=" -->"+this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.declaration=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be)+"<?xml",ve.state=E.InsideTag,Ee+=' version="'+Ae.version+'"',Ae.encoding!=null&&(Ee+=' encoding="'+Ae.encoding+'"'),Ae.standalone!=null&&(Ee+=' standalone="'+Ae.standalone+'"'),ve.state=E.CloseTag,Ee+=ve.spaceBeforeSlash+"?>",Ee+=this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.docType=function(Ae,ve,be){var Ee,Oe,Me,Se,je;if(be||(be=0),this.openNode(Ae,ve,be),ve.state=E.OpenTag,Se=this.indent(Ae,ve,be),Se+="<!DOCTYPE "+Ae.root().name,Ae.pubID&&Ae.sysID?Se+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Se+=' SYSTEM "'+Ae.sysID+'"'),Ae.children.length>0){for(Se+=" [",Se+=this.endline(Ae,ve,be),ve.state=E.InsideTag,je=Ae.children,Oe=0,Me=je.length;Oe<Me;Oe++)Ee=je[Oe],Se+=this.writeChildNode(Ee,ve,be+1);ve.state=E.CloseTag,Se+="]"}return ve.state=E.CloseTag,Se+=ve.spaceBeforeSlash+">",Se+=this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Se},De.prototype.element=function(Ae,ve,be){var Ee,Oe,Me,Se,je,Ze,Xe,$e,lt,Re,We,rt,ot,at;be||(be=0),Re=!1,We="",this.openNode(Ae,ve,be),ve.state=E.OpenTag,We+=this.indent(Ae,ve,be)+"<"+Ae.name,rt=Ae.attribs;for(lt in rt)ke.call(rt,lt)&&(Ee=rt[lt],We+=this.attribute(Ee,ve,be));if(Me=Ae.children.length,Se=Me===0?null:Ae.children[0],Me===0||Ae.children.every(function(Je){return(Je.type===ee.Text||Je.type===ee.Raw)&&Je.value===""}))ve.allowEmpty?(We+=">",ve.state=E.CloseTag,We+="</"+Ae.name+">"+this.endline(Ae,ve,be)):(ve.state=E.CloseTag,We+=ve.spaceBeforeSlash+"/>"+this.endline(Ae,ve,be));else if(ve.pretty&&Me===1&&(Se.type===ee.Text||Se.type===ee.Raw)&&Se.value!=null)We+=">",ve.state=E.InsideTag,ve.suppressPrettyCount++,Re=!0,We+=this.writeChildNode(Se,ve,be+1),ve.suppressPrettyCount--,Re=!1,ve.state=E.CloseTag,We+="</"+Ae.name+">"+this.endline(Ae,ve,be);else{if(ve.dontPrettyTextNodes){for(ot=Ae.children,je=0,Xe=ot.length;je<Xe;je++)if(Oe=ot[je],(Oe.type===ee.Text||Oe.type===ee.Raw)&&Oe.value!=null){ve.suppressPrettyCount++,Re=!0;break}}for(We+=">"+this.endline(Ae,ve,be),ve.state=E.InsideTag,at=Ae.children,Ze=0,$e=at.length;Ze<$e;Ze++)Oe=at[Ze],We+=this.writeChildNode(Oe,ve,be+1);ve.state=E.CloseTag,We+=this.indent(Ae,ve,be)+"</"+Ae.name+">",Re&&ve.suppressPrettyCount--,We+=this.endline(Ae,ve,be),ve.state=E.None}return this.closeNode(Ae,ve,be),We},De.prototype.writeChildNode=function(Ae,ve,be){switch(Ae.type){case ee.CData:return this.cdata(Ae,ve,be);case ee.Comment:return this.comment(Ae,ve,be);case ee.Element:return this.element(Ae,ve,be);case ee.Raw:return this.raw(Ae,ve,be);case ee.Text:return this.text(Ae,ve,be);case ee.ProcessingInstruction:return this.processingInstruction(Ae,ve,be);case ee.Dummy:return"";case ee.Declaration:return this.declaration(Ae,ve,be);case ee.DocType:return this.docType(Ae,ve,be);case ee.AttributeDeclaration:return this.dtdAttList(Ae,ve,be);case ee.ElementDeclaration:return this.dtdElement(Ae,ve,be);case ee.EntityDeclaration:return this.dtdEntity(Ae,ve,be);case ee.NotationDeclaration:return this.dtdNotation(Ae,ve,be);default:throw new Error("Unknown XML node type: "+Ae.constructor.name)}},De.prototype.processingInstruction=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be)+"<?",ve.state=E.InsideTag,Ee+=Ae.target,Ae.value&&(Ee+=" "+Ae.value),ve.state=E.CloseTag,Ee+=ve.spaceBeforeSlash+"?>",Ee+=this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.raw=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be),ve.state=E.InsideTag,Ee+=Ae.value,ve.state=E.CloseTag,Ee+=this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.text=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be),ve.state=E.InsideTag,Ee+=Ae.value,ve.state=E.CloseTag,Ee+=this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.dtdAttList=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be)+"<!ATTLIST",ve.state=E.InsideTag,Ee+=" "+Ae.elementName+" "+Ae.attributeName+" "+Ae.attributeType,Ae.defaultValueType!=="#DEFAULT"&&(Ee+=" "+Ae.defaultValueType),Ae.defaultValue&&(Ee+=' "'+Ae.defaultValue+'"'),ve.state=E.CloseTag,Ee+=ve.spaceBeforeSlash+">"+this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.dtdElement=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be)+"<!ELEMENT",ve.state=E.InsideTag,Ee+=" "+Ae.name+" "+Ae.value,ve.state=E.CloseTag,Ee+=ve.spaceBeforeSlash+">"+this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.dtdEntity=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be)+"<!ENTITY",ve.state=E.InsideTag,Ae.pe&&(Ee+=" %"),Ee+=" "+Ae.name,Ae.value?Ee+=' "'+Ae.value+'"':(Ae.pubID&&Ae.sysID?Ee+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.sysID&&(Ee+=' SYSTEM "'+Ae.sysID+'"'),Ae.nData&&(Ee+=" NDATA "+Ae.nData)),ve.state=E.CloseTag,Ee+=ve.spaceBeforeSlash+">"+this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.dtdNotation=function(Ae,ve,be){var Ee;return this.openNode(Ae,ve,be),ve.state=E.OpenTag,Ee=this.indent(Ae,ve,be)+"<!NOTATION",ve.state=E.InsideTag,Ee+=" "+Ae.name,Ae.pubID&&Ae.sysID?Ee+=' PUBLIC "'+Ae.pubID+'" "'+Ae.sysID+'"':Ae.pubID?Ee+=' PUBLIC "'+Ae.pubID+'"':Ae.sysID&&(Ee+=' SYSTEM "'+Ae.sysID+'"'),ve.state=E.CloseTag,Ee+=ve.spaceBeforeSlash+">"+this.endline(Ae,ve,be),ve.state=E.None,this.closeNode(Ae,ve,be),Ee},De.prototype.openNode=function(Ae,ve,be){},De.prototype.closeNode=function(Ae,ve,be){},De.prototype.openAttribute=function(Ae,ve,be){},De.prototype.closeAttribute=function(Ae,ve,be){},De}()}).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,we,ge){(function(){var ee,E,ie,le,z,se,x,re,te,ae;ae=y("./Utility"),re=ae.assign,te=ae.isFunction,ie=y("./XMLDOMImplementation"),le=y("./XMLDocument"),z=y("./XMLDocumentCB"),x=y("./XMLStringWriter"),se=y("./XMLStreamWriter"),ee=y("./NodeType"),E=y("./WriterState"),we.exports.create=function(ue,fe,de,he){var ce,pe;if(ue==null)throw new Error("Root element needs a name.");return he=re({},fe,de,he),ce=new le(he),pe=ce.element(ue),he.headless||(ce.declaration(he),(he.pubID!=null||he.sysID!=null)&&ce.dtd(he)),pe},we.exports.begin=function(ue,fe,de){var he;return te(ue)&&(he=[ue,fe],fe=he[0],de=he[1],ue={}),fe?new z(ue,fe,de):new le(ue)},we.exports.stringWriter=function(ue){return new x(ue)},we.exports.streamWriter=function(ue,fe){return new se(ue,fe)},we.exports.implementation=new ie,we.exports.nodeType=ee,we.exports.writerState=E}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,we,ge){we.exports=E;var ee=Object.prototype.hasOwnProperty;function E(){for(var ie={},le=0;le<arguments.length;le++){var z=arguments[le];for(var se in z)ee.call(z,se)&&(ie[se]=z[se])}return ie}},{}],461:[function(y,we,ge){"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 ee=y("buffer").Buffer,E=y("./sha"),ie=y("./md5"),le={sha1:E,md5:ie},z=64,se=ee.alloc(z);se.fill(0);function x(ae,ue,fe){ee.isBuffer(ue)||(ue=ee.from(ue)),ee.isBuffer(fe)||(fe=ee.from(fe)),ue.length>z?ue=ae(ue):ue.length<z&&(ue=ee.concat([ue,se],z));for(var de=ee.alloc(z),he=ee.alloc(z),ce=0;ce<z;ce++)de[ce]=ue[ce]^54,he[ce]=ue[ce]^92;var pe=ae(ee.concat([de,fe]));return ae(ee.concat([he,pe]))}function re(ae,ue){ae=ae||"sha1";var fe=le[ae],de=[],he=0;return fe||te("algorithm:",ae,"is not yet supported"),{update:function(pe){return ee.isBuffer(pe)||(pe=ee.from(pe)),de.push(pe),he+=pe.length,this},digest:function(pe){var Ce=ee.concat(de),ke=ue?x(fe,ue,Ce):fe(Ce);return de=null,pe?ke.toString(pe):ke}}}function te(){var ae=[].slice.call(arguments).join(" ");throw new Error([ae,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}ge.createHash=function(ae){return re(ae)},ge.createHmac=function(ae,ue){return re(ae,ue)},ge.createCredentials=function(){te("sorry,createCredentials is not implemented yet")},ge.createCipher=function(){te("sorry,createCipher is not implemented yet")},ge.createCipheriv=function(){te("sorry,createCipheriv is not implemented yet")},ge.createDecipher=function(){te("sorry,createDecipher is not implemented yet")},ge.createDecipheriv=function(){te("sorry,createDecipheriv is not implemented yet")},ge.createSign=function(){te("sorry,createSign is not implemented yet")},ge.createVerify=function(){te("sorry,createVerify is not implemented yet")},ge.createDiffieHellman=function(){te("sorry,createDiffieHellman is not implemented yet")},ge.pbkdf2=function(){te("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,we,ge){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js");var ee=y("buffer").Buffer,E=4,ie=ee.alloc(E);ie.fill(0);var le=8;function z(re,te){if(re.length%E!==0){var ae=re.length+(E-re.length%E);re=ee.concat([re,ie],ae)}for(var ue=[],fe=te?re.readInt32BE:re.readInt32LE,de=0;de<re.length;de+=E)ue.push(fe.call(re,de));return ue}function se(re,te,ae){for(var ue=ee.alloc(te),fe=ae?ue.writeInt32BE:ue.writeInt32LE,de=0;de<re.length;de++)fe.call(ue,re[de],de*4,!0);return ue}function x(re,te,ae,ue){ee.isBuffer(re)||(re=ee.from(re));var fe=te(z(re,ue),re.length*le);return se(fe,ae,ue)}we.exports={hash:x}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,we,ge){"use strict";var ee=y("./helpers");function E(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ie(ue,fe){ue[fe>>5]|=128<<fe%32,ue[(fe+64>>>9<<4)+14]=fe;for(var de=1732584193,he=-271733879,ce=-1732584194,pe=271733878,Ce=0;Ce<ue.length;Ce+=16){var ke=de,De=he,Ae=ce,ve=pe;de=z(de,he,ce,pe,ue[Ce+0],7,-680876936),pe=z(pe,de,he,ce,ue[Ce+1],12,-389564586),ce=z(ce,pe,de,he,ue[Ce+2],17,606105819),he=z(he,ce,pe,de,ue[Ce+3],22,-1044525330),de=z(de,he,ce,pe,ue[Ce+4],7,-176418897),pe=z(pe,de,he,ce,ue[Ce+5],12,1200080426),ce=z(ce,pe,de,he,ue[Ce+6],17,-1473231341),he=z(he,ce,pe,de,ue[Ce+7],22,-45705983),de=z(de,he,ce,pe,ue[Ce+8],7,1770035416),pe=z(pe,de,he,ce,ue[Ce+9],12,-1958414417),ce=z(ce,pe,de,he,ue[Ce+10],17,-42063),he=z(he,ce,pe,de,ue[Ce+11],22,-1990404162),de=z(de,he,ce,pe,ue[Ce+12],7,1804603682),pe=z(pe,de,he,ce,ue[Ce+13],12,-40341101),ce=z(ce,pe,de,he,ue[Ce+14],17,-1502002290),he=z(he,ce,pe,de,ue[Ce+15],22,1236535329),de=se(de,he,ce,pe,ue[Ce+1],5,-165796510),pe=se(pe,de,he,ce,ue[Ce+6],9,-1069501632),ce=se(ce,pe,de,he,ue[Ce+11],14,643717713),he=se(he,ce,pe,de,ue[Ce+0],20,-373897302),de=se(de,he,ce,pe,ue[Ce+5],5,-701558691),pe=se(pe,de,he,ce,ue[Ce+10],9,38016083),ce=se(ce,pe,de,he,ue[Ce+15],14,-660478335),he=se(he,ce,pe,de,ue[Ce+4],20,-405537848),de=se(de,he,ce,pe,ue[Ce+9],5,568446438),pe=se(pe,de,he,ce,ue[Ce+14],9,-1019803690),ce=se(ce,pe,de,he,ue[Ce+3],14,-187363961),he=se(he,ce,pe,de,ue[Ce+8],20,1163531501),de=se(de,he,ce,pe,ue[Ce+13],5,-1444681467),pe=se(pe,de,he,ce,ue[Ce+2],9,-51403784),ce=se(ce,pe,de,he,ue[Ce+7],14,1735328473),he=se(he,ce,pe,de,ue[Ce+12],20,-1926607734),de=x(de,he,ce,pe,ue[Ce+5],4,-378558),pe=x(pe,de,he,ce,ue[Ce+8],11,-2022574463),ce=x(ce,pe,de,he,ue[Ce+11],16,1839030562),he=x(he,ce,pe,de,ue[Ce+14],23,-35309556),de=x(de,he,ce,pe,ue[Ce+1],4,-1530992060),pe=x(pe,de,he,ce,ue[Ce+4],11,1272893353),ce=x(ce,pe,de,he,ue[Ce+7],16,-155497632),he=x(he,ce,pe,de,ue[Ce+10],23,-1094730640),de=x(de,he,ce,pe,ue[Ce+13],4,681279174),pe=x(pe,de,he,ce,ue[Ce+0],11,-358537222),ce=x(ce,pe,de,he,ue[Ce+3],16,-722521979),he=x(he,ce,pe,de,ue[Ce+6],23,76029189),de=x(de,he,ce,pe,ue[Ce+9],4,-640364487),pe=x(pe,de,he,ce,ue[Ce+12],11,-421815835),ce=x(ce,pe,de,he,ue[Ce+15],16,530742520),he=x(he,ce,pe,de,ue[Ce+2],23,-995338651),de=re(de,he,ce,pe,ue[Ce+0],6,-198630844),pe=re(pe,de,he,ce,ue[Ce+7],10,1126891415),ce=re(ce,pe,de,he,ue[Ce+14],15,-1416354905),he=re(he,ce,pe,de,ue[Ce+5],21,-57434055),de=re(de,he,ce,pe,ue[Ce+12],6,1700485571),pe=re(pe,de,he,ce,ue[Ce+3],10,-1894986606),ce=re(ce,pe,de,he,ue[Ce+10],15,-1051523),he=re(he,ce,pe,de,ue[Ce+1],21,-2054922799),de=re(de,he,ce,pe,ue[Ce+8],6,1873313359),pe=re(pe,de,he,ce,ue[Ce+15],10,-30611744),ce=re(ce,pe,de,he,ue[Ce+6],15,-1560198380),he=re(he,ce,pe,de,ue[Ce+13],21,1309151649),de=re(de,he,ce,pe,ue[Ce+4],6,-145523070),pe=re(pe,de,he,ce,ue[Ce+11],10,-1120210379),ce=re(ce,pe,de,he,ue[Ce+2],15,718787259),he=re(he,ce,pe,de,ue[Ce+9],21,-343485551),de=te(de,ke),he=te(he,De),ce=te(ce,Ae),pe=te(pe,ve)}return Array(de,he,ce,pe)}function le(ue,fe,de,he,ce,pe){return te(ae(te(te(fe,ue),te(he,pe)),ce),de)}function z(ue,fe,de,he,ce,pe,Ce){return le(fe&de|~fe&he,ue,fe,ce,pe,Ce)}function se(ue,fe,de,he,ce,pe,Ce){return le(fe&he|de&~he,ue,fe,ce,pe,Ce)}function x(ue,fe,de,he,ce,pe,Ce){return le(fe^de^he,ue,fe,ce,pe,Ce)}function re(ue,fe,de,he,ce,pe,Ce){return le(de^(fe|~he),ue,fe,ce,pe,Ce)}function te(ue,fe){var de=(ue&65535)+(fe&65535),he=(ue>>16)+(fe>>16)+(de>>16);return he<<16|de&65535}function ae(ue,fe){return ue<<fe|ue>>>32-fe}we.exports=function(fe){return ee.hash(fe,ie,16)}},{"./helpers":462}],464:[function(y,we,ge){"use strict";var ee=y("./helpers");function E(x,re){x[re>>5]|=128<<24-re%32,x[(re+64>>9<<4)+15]=re;for(var te=Array(80),ae=1732584193,ue=-271733879,fe=-1732584194,de=271733878,he=-1009589776,ce=0;ce<x.length;ce+=16){for(var pe=ae,Ce=ue,ke=fe,De=de,Ae=he,ve=0;ve<80;ve++){ve<16?te[ve]=x[ce+ve]:te[ve]=se(te[ve-3]^te[ve-8]^te[ve-14]^te[ve-16],1);var be=z(z(se(ae,5),ie(ve,ue,fe,de)),z(z(he,te[ve]),le(ve)));he=de,de=fe,fe=se(ue,30),ue=ae,ae=be}ae=z(ae,pe),ue=z(ue,Ce),fe=z(fe,ke),de=z(de,De),he=z(he,Ae)}return Array(ae,ue,fe,de,he)}function ie(x,re,te,ae){return x<20?re&te|~re&ae:x<40?re^te^ae:x<60?re&te|re&ae|te&ae:re^te^ae}function le(x){return x<20?1518500249:x<40?1859775393:x<60?-1894007588:-899497514}function z(x,re){var te=(x&65535)+(re&65535),ae=(x>>16)+(re>>16)+(te>>16);return ae<<16|te&65535}function se(x,re){return x<<re|x>>>32-re}we.exports=function(re){return ee.hash(re,E,20,!0)}},{"./helpers":462}],465:[function(y,we,ge){"use strict";we.exports=function(){return function(){}}},{}],466:[function(y,we,ge){(function(ee){(function(){"use strict";var E=y("@babel/runtime/helpers/interopRequireDefault"),ie=E(y("@babel/runtime/helpers/typeof")),le=y("stream"),z=le.Stream,se=y("../lib/common/utils/isArray"),x=se.isArray;we.exports.string=function(ae){return typeof ae=="string"},we.exports.array=x,we.exports.buffer=ee.isBuffer;function re(te){return te instanceof z}we.exports.writableStream=function(ae){return re(ae)&&typeof ae._write=="function"&&(0,ie.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,we,ge){"use strict";var ee=y("immediate"),E=we.exports={};E.nextTick=ee,E.title="browser",E.browser=!0,E.env={},E.argv=[],E.version="",E.versions={};function ie(){}E.on=ie,E.addListener=ie,E.once=ie,E.off=ie,E.removeListener=ie,E.removeAllListeners=ie,E.emit=ie,E.prependListener=ie,E.prependOnceListener=ie,E.listeners=function(le){return[]},E.binding=function(le){throw new Error("process.binding is not supported")},E.cwd=function(){return"/"},E.chdir=function(le){throw new Error("process.chdir is not supported")},E.umask=function(){return 0}},{immediate:358}],468:[function(y,we,ge){(function(ee){(function(){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js");var E=y("./lib/request"),ie=y("./lib/response"),le=y("xtend"),z=y("builtin-status-codes"),se=y("url"),x=ge;x.request=function(re,te){typeof re=="string"?re=se.parse(re):re=le(re);var ae=ee.location.protocol.search(/^https?:$/)===-1?"http:":"",ue=re.protocol||ae,fe=re.hostname||re.host,de=re.port,he=re.path||"/";fe&&fe.indexOf(":")!==-1&&(fe="["+fe+"]"),re.url=(fe?ue+"//"+fe:"")+(de?":"+de:"")+he,re.method=(re.method||"GET").toUpperCase(),re.headers=re.headers||{};var ce=new E(re);return te&&ce.on("response",te),ce},x.get=function(te,ae){var ue=x.request(te,ae);return ue.end(),ue},x.ClientRequest=E,x.IncomingMessage=ie.IncomingMessage,x.Agent=function(){},x.Agent.defaultMaxSockets=4,x.globalAgent=new x.Agent,x.STATUS_CODES=z,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,we,ge){(function(ee){(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"),ge.fetch=x(ee.fetch)&&x(ee.ReadableStream),ge.writableStream=x(ee.WritableStream),ge.abortController=x(ee.AbortController),ge.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),ge.blobConstructor=!0}catch(re){}var E;function ie(){if(E!==void 0)return E;if(ee.XMLHttpRequest){E=new ee.XMLHttpRequest;try{E.open("GET",ee.XDomainRequest?"/":"https://example.com")}catch(re){E=null}}else E=null;return E}function le(re){var te=ie();if(!te)return!1;try{return te.responseType=re,te.responseType===re}catch(ae){}return!1}var z=typeof ee.ArrayBuffer!="undefined",se=z&&x(ee.ArrayBuffer.prototype.slice);ge.arraybuffer=ge.fetch||z&&le("arraybuffer"),ge.msstream=!ge.fetch&&se&&le("ms-stream"),ge.mozchunkedarraybuffer=!ge.fetch&&z&&le("moz-chunked-arraybuffer"),ge.overrideMimeType=ge.fetch||(ie()?x(ie().overrideMimeType):!1),ge.vbArray=x(ee.VBArray);function x(re){return typeof re=="function"}E=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,we,ge){(function(ee,E,ie){(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 le=y("./capability"),z=y("inherits"),se=y("./response"),x=y("readable-stream"),re=y("to-arraybuffer"),te=se.IncomingMessage,ae=se.readyStates;function ue(ce,pe){return le.fetch&&pe?"fetch":le.mozchunkedarraybuffer?"moz-chunked-arraybuffer":le.msstream?"ms-stream":le.arraybuffer&&ce?"arraybuffer":le.vbArray&&ce?"text:vbarray":"text"}var fe=we.exports=function(ce){var pe=this;x.Writable.call(pe),pe._opts=ce,pe._body=[],pe._headers={},ce.auth&&pe.setHeader("Authorization","Basic "+new ie(ce.auth).toString("base64")),Object.keys(ce.headers).forEach(function(De){pe.setHeader(De,ce.headers[De])});var Ce,ke=!0;if(ce.mode==="disable-fetch"||"requestTimeout"in ce&&!le.abortController)ke=!1,Ce=!0;else if(ce.mode==="prefer-streaming")Ce=!1;else if(ce.mode==="allow-wrong-content-type")Ce=!le.overrideMimeType;else if(!ce.mode||ce.mode==="default"||ce.mode==="prefer-fast")Ce=!0;else throw new Error("Invalid value for opts.mode");pe._mode=ue(Ce,ke),pe._fetchTimer=null,pe.on("finish",function(){pe._onFinish()})};z(fe,x.Writable),fe.prototype.setHeader=function(ce,pe){var Ce=this,ke=ce.toLowerCase();he.indexOf(ke)===-1&&(Ce._headers[ke]={name:ce,value:pe})},fe.prototype.getHeader=function(ce){var pe=this._headers[ce.toLowerCase()];return pe?pe.value:null},fe.prototype.removeHeader=function(ce){var pe=this;delete pe._headers[ce.toLowerCase()]},fe.prototype._onFinish=function(){var ce=this;if(!ce._destroyed){var pe=ce._opts,Ce=ce._headers,ke=null;pe.method!=="GET"&&pe.method!=="HEAD"&&(le.arraybuffer?ke=re(ie.concat(ce._body)):le.blobConstructor?ke=new E.Blob(ce._body.map(function(Oe){return re(Oe)}),{type:(Ce["content-type"]||{}).value||""}):ke=ie.concat(ce._body).toString());var De=[];if(Object.keys(Ce).forEach(function(Oe){var Me=Ce[Oe].name,Se=Ce[Oe].value;Array.isArray(Se)?Se.forEach(function(je){De.push([Me,je])}):De.push([Me,Se])}),ce._mode==="fetch"){var Ae=null,ve=null;if(le.abortController){var be=new AbortController;Ae=be.signal,ce._fetchAbortController=be,"requestTimeout"in pe&&pe.requestTimeout!==0&&(ce._fetchTimer=E.setTimeout(function(){ce.emit("requestTimeout"),ce._fetchAbortController&&ce._fetchAbortController.abort()},pe.requestTimeout))}E.fetch(ce._opts.url,{method:ce._opts.method,headers:De,body:ke||void 0,mode:"cors",credentials:pe.withCredentials?"include":"same-origin",signal:Ae}).then(function(Oe){ce._fetchResponse=Oe,ce._connect()},function(Oe){E.clearTimeout(ce._fetchTimer),ce._destroyed||ce.emit("error",Oe)})}else{var Ee=ce._xhr=new E.XMLHttpRequest;try{Ee.open(ce._opts.method,ce._opts.url,!0)}catch(Oe){ee.nextTick(function(){ce.emit("error",Oe)});return}"responseType"in Ee&&(Ee.responseType=ce._mode.split(":")[0]),"withCredentials"in Ee&&(Ee.withCredentials=!!pe.withCredentials),ce._mode==="text"&&"overrideMimeType"in Ee&&Ee.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pe&&(Ee.timeout=pe.requestTimeout,Ee.ontimeout=function(){ce.emit("requestTimeout")}),De.forEach(function(Oe){Ee.setRequestHeader(Oe[0],Oe[1])}),ce._response=null,Ee.onreadystatechange=function(){switch(Ee.readyState){case ae.LOADING:case ae.DONE:ce._onXHRProgress();break}},ce._mode==="moz-chunked-arraybuffer"&&(Ee.onprogress=function(){ce._onXHRProgress()}),Ee.onerror=function(){ce._destroyed||ce.emit("error",new Error("XHR error"))};try{Ee.send(ke)}catch(Oe){ee.nextTick(function(){ce.emit("error",Oe)});return}}}};function de(ce){try{var pe=ce.status;return pe!==null&&pe!==0}catch(Ce){return!1}}fe.prototype._onXHRProgress=function(){var ce=this;!de(ce._xhr)||ce._destroyed||(ce._response||ce._connect(),ce._response._onXHRProgress())},fe.prototype._connect=function(){var ce=this;ce._destroyed||(ce._response=new te(ce._xhr,ce._fetchResponse,ce._mode,ce._fetchTimer),ce._response.on("error",function(pe){ce.emit("error",pe)}),ce.emit("response",ce._response))},fe.prototype._write=function(ce,pe,Ce){var ke=this;ke._body.push(ce),Ce()},fe.prototype.abort=fe.prototype.destroy=function(){var ce=this;ce._destroyed=!0,E.clearTimeout(ce._fetchTimer),ce._response&&(ce._response._destroyed=!0),ce._xhr?ce._xhr.abort():ce._fetchAbortController&&ce._fetchAbortController.abort()},fe.prototype.end=function(ce,pe,Ce){var ke=this;typeof ce=="function"&&(Ce=ce,ce=void 0),x.Writable.prototype.end.call(ke,ce,pe,Ce)},fe.prototype.flushHeaders=function(){},fe.prototype.setTimeout=function(){},fe.prototype.setNoDelay=function(){},fe.prototype.setSocketKeepAlive=function(){};var he=["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,we,ge){(function(ee,E,ie){(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 le=y("./capability"),z=y("inherits"),se=y("readable-stream"),x=ge.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},re=ge.IncomingMessage=function(te,ae,ue,fe){var de=this;if(se.Readable.call(de),de._mode=ue,de.headers={},de.rawHeaders=[],de.trailers={},de.rawTrailers=[],de.on("end",function(){ee.nextTick(function(){de.emit("close")})}),ue==="fetch"){var he=function Ae(){pe.read().then(function(ve){if(!de._destroyed){if(ve.done){E.clearTimeout(fe),de.push(null);return}de.push(new ie(ve.value)),Ae()}}).catch(function(ve){E.clearTimeout(fe),de._destroyed||de.emit("error",ve)})};if(de._fetchResponse=ae,de.url=ae.url,de.statusCode=ae.status,de.statusMessage=ae.statusText,ae.headers.forEach(function(Ae,ve){de.headers[ve.toLowerCase()]=Ae,de.rawHeaders.push(ve,Ae)}),le.writableStream){var ce=new WritableStream({write:function(ve){return new Promise(function(be,Ee){de._destroyed?Ee():de.push(new ie(ve))?be():de._resumeFetch=be})},close:function(){E.clearTimeout(fe),de._destroyed||de.push(null)},abort:function(ve){de._destroyed||de.emit("error",ve)}});try{ae.body.pipeTo(ce).catch(function(Ae){E.clearTimeout(fe),de._destroyed||de.emit("error",Ae)});return}catch(Ae){}}var pe=ae.body.getReader();he()}else{de._xhr=te,de._pos=0,de.url=te.responseURL,de.statusCode=te.status,de.statusMessage=te.statusText;var Ce=te.getAllResponseHeaders().split(/\r?\n/);if(Ce.forEach(function(Ae){var ve=Ae.match(/^([^:]+):\s*(.*)/);if(ve){var be=ve[1].toLowerCase();be==="set-cookie"?(de.headers[be]===void 0&&(de.headers[be]=[]),de.headers[be].push(ve[2])):de.headers[be]!==void 0?de.headers[be]+=", "+ve[2]:de.headers[be]=ve[2],de.rawHeaders.push(ve[1],ve[2])}}),de._charset="x-user-defined",!le.overrideMimeType){var ke=de.rawHeaders["mime-type"];if(ke){var De=ke.match(/;\s*charset=([^;])(;|$)/);De&&(de._charset=De[1].toLowerCase())}de._charset||(de._charset="utf-8")}}};z(re,se.Readable),re.prototype._read=function(){var te=this,ae=te._resumeFetch;ae&&(te._resumeFetch=null,ae())},re.prototype._onXHRProgress=function(){var te=this,ae=te._xhr,ue=null;switch(te._mode){case"text:vbarray":if(ae.readyState!==x.DONE)break;try{ue=new E.VBArray(ae.responseBody).toArray()}catch(pe){}if(ue!==null){te.push(new ie(ue));break}case"text":try{ue=ae.responseText}catch(pe){te._mode="text:vbarray";break}if(ue.length>te._pos){var fe=ue.substr(te._pos);if(te._charset==="x-user-defined"){for(var de=new ie(fe.length),he=0;he<fe.length;he++)de[he]=fe.charCodeAt(he)&255;te.push(de)}else te.push(fe,te._charset);te._pos=ue.length}break;case"arraybuffer":if(ae.readyState!==x.DONE||!ae.response)break;ue=ae.response,te.push(new ie(new Uint8Array(ue)));break;case"moz-chunked-arraybuffer":if(ue=ae.response,ae.readyState!==x.LOADING||!ue)break;te.push(new ie(new Uint8Array(ue)));break;case"ms-stream":if(ue=ae.response,ae.readyState!==x.LOADING)break;var ce=new E.MSStreamReader;ce.onprogress=function(){ce.result.byteLength>te._pos&&(te.push(new ie(new Uint8Array(ce.result.slice(te._pos)))),te._pos=ce.result.byteLength)},ce.onload=function(){te.push(null)},ce.readAsArrayBuffer(ue);break}te._xhr.readyState===x.DONE&&te._mode!=="ms-stream"&&te.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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(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 ie=y("punycode"),le=y("./util");ge.parse=ve,ge.resolve=Ee,ge.resolveObject=Oe,ge.format=be,ge.Url=z;function z(){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 se=/^([a-z0-9.+-]+:)/i,x=/:[0-9]*$/,re=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,te=["<",">",'"',"`"," ","\r",`
`," "],ae=["{","}","|","\\","^","`"].concat(te),ue=["'"].concat(ae),fe=["%","/","?",";","#"].concat(ue),de=["/","?","#"],he=255,ce=/^[+a-z0-9A-Z_-]{0,63}$/,pe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ce={javascript:!0,"javascript:":!0},ke={javascript:!0,"javascript:":!0},De={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ae=y("querystring");function ve(Me,Se,je){if(Me&&le.isObject(Me)&&Me instanceof z)return Me;var Ze=new z;return Ze.parse(Me,Se,je),Ze}z.prototype.parse=function(Me,Se,je){if(!le.isString(Me))throw new TypeError("Parameter 'url' must be a string, not "+(0,E.default)(Me));var Ze=Me.indexOf("?"),Xe=Ze!==-1&&Ze<Me.indexOf("#")?"?":"#",$e=Me.split(Xe),lt=/\\/g;$e[0]=$e[0].replace(lt,"/"),Me=$e.join(Xe);var Re=Me;if(Re=Re.trim(),!je&&Me.split("#").length===1){var We=re.exec(Re);if(We)return this.path=Re,this.href=Re,this.pathname=We[1],We[2]?(this.search=We[2],Se?this.query=Ae.parse(this.search.substr(1)):this.query=this.search.substr(1)):Se&&(this.search="",this.query={}),this}var rt=se.exec(Re);if(rt){rt=rt[0];var ot=rt.toLowerCase();this.protocol=ot,Re=Re.substr(rt.length)}if(je||rt||Re.match(/^\/\/[^@\/]+@[^@\/]+/)){var at=Re.substr(0,2)==="//";at&&!(rt&&ke[rt])&&(Re=Re.substr(2),this.slashes=!0)}if(!ke[rt]&&(at||rt&&!De[rt])){for(var Je=-1,Qe=0;Qe<de.length;Qe++){var Ve=Re.indexOf(de[Qe]);Ve!==-1&&(Je===-1||Ve<Je)&&(Je=Ve)}var ct,tt;Je===-1?tt=Re.lastIndexOf("@"):tt=Re.lastIndexOf("@",Je),tt!==-1&&(ct=Re.slice(0,tt),Re=Re.slice(tt+1),this.auth=decodeURIComponent(ct)),Je=-1;for(var Qe=0;Qe<fe.length;Qe++){var Ve=Re.indexOf(fe[Qe]);Ve!==-1&&(Je===-1||Ve<Je)&&(Je=Ve)}Je===-1&&(Je=Re.length),this.host=Re.slice(0,Je),Re=Re.slice(Je),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("."),Qe=0,ze=st.length;Qe<ze;Qe++){var Be=st[Qe];if(Be&&!Be.match(ce)){for(var Ke="",Ie=0,Ye=Be.length;Ie<Ye;Ie++)Be.charCodeAt(Ie)>127?Ke+="x":Ke+=Be[Ie];if(!Ke.match(ce)){var ft=st.slice(0,Qe),mt=st.slice(Qe+1),nt=Be.match(pe);nt&&(ft.push(nt[1]),mt.unshift(nt[2])),mt.length&&(Re="/"+mt.join(".")+Re),this.hostname=ft.join(".");break}}}this.hostname.length>he?this.hostname="":this.hostname=this.hostname.toLowerCase(),ut||(this.hostname=ie.toASCII(this.hostname));var _e=this.port?":"+this.port:"",Pe=this.hostname||"";this.host=Pe+_e,this.href+=this.host,ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Re[0]!=="/"&&(Re="/"+Re))}if(!Ce[ot])for(var Qe=0,ze=ue.length;Qe<ze;Qe++){var He=ue[Qe];if(Re.indexOf(He)!==-1){var it=encodeURIComponent(He);it===He&&(it=escape(He)),Re=Re.split(He).join(it)}}var Te=Re.indexOf("#");Te!==-1&&(this.hash=Re.substr(Te),Re=Re.slice(0,Te));var xe=Re.indexOf("?");if(xe!==-1?(this.search=Re.substr(xe),this.query=Re.substr(xe+1),Se&&(this.query=Ae.parse(this.query)),Re=Re.slice(0,xe)):Se&&(this.search="",this.query={}),Re&&(this.pathname=Re),De[ot]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var _e=this.pathname||"",ye=this.search||"";this.path=_e+ye}return this.href=this.format(),this};function be(Me){return le.isString(Me)&&(Me=ve(Me)),Me instanceof z?Me.format():z.prototype.format.call(Me)}z.prototype.format=function(){var Me=this.auth||"";Me&&(Me=encodeURIComponent(Me),Me=Me.replace(/%3A/i,":"),Me+="@");var Se=this.protocol||"",je=this.pathname||"",Ze=this.hash||"",Xe=!1,$e="";this.host?Xe=Me+this.host:this.hostname&&(Xe=Me+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Xe+=":"+this.port)),this.query&&le.isObject(this.query)&&Object.keys(this.query).length&&($e=Ae.stringify(this.query));var lt=this.search||$e&&"?"+$e||"";return Se&&Se.substr(-1)!==":"&&(Se+=":"),this.slashes||(!Se||De[Se])&&Xe!==!1?(Xe="//"+(Xe||""),je&&je.charAt(0)!=="/"&&(je="/"+je)):Xe||(Xe=""),Ze&&Ze.charAt(0)!=="#"&&(Ze="#"+Ze),lt&&lt.charAt(0)!=="?"&&(lt="?"+lt),je=je.replace(/[?#]/g,function(Re){return encodeURIComponent(Re)}),lt=lt.replace("#","%23"),Se+Xe+je+lt+Ze};function Ee(Me,Se){return ve(Me,!1,!0).resolve(Se)}z.prototype.resolve=function(Me){return this.resolveObject(ve(Me,!1,!0)).format()};function Oe(Me,Se){return Me?ve(Me,!1,!0).resolveObject(Se):Se}z.prototype.resolveObject=function(Me){if(le.isString(Me)){var Se=new z;Se.parse(Me,!1,!0),Me=Se}for(var je=new z,Ze=Object.keys(this),Xe=0;Xe<Ze.length;Xe++){var $e=Ze[Xe];je[$e]=this[$e]}if(je.hash=Me.hash,Me.href==="")return je.href=je.format(),je;if(Me.slashes&&!Me.protocol){for(var lt=Object.keys(Me),Re=0;Re<lt.length;Re++){var We=lt[Re];We!=="protocol"&&(je[We]=Me[We])}return De[je.protocol]&&je.hostname&&!je.pathname&&(je.path=je.pathname="/"),je.href=je.format(),je}if(Me.protocol&&Me.protocol!==je.protocol){if(!De[Me.protocol]){for(var rt=Object.keys(Me),ot=0;ot<rt.length;ot++){var at=rt[ot];je[at]=Me[at]}return je.href=je.format(),je}if(je.protocol=Me.protocol,!Me.host&&!ke[Me.protocol]){for(var ze=(Me.pathname||"").split("/");ze.length&&!(Me.host=ze.shift()););Me.host||(Me.host=""),Me.hostname||(Me.hostname=""),ze[0]!==""&&ze.unshift(""),ze.length<2&&ze.unshift(""),je.pathname=ze.join("/")}else je.pathname=Me.pathname;if(je.search=Me.search,je.query=Me.query,je.host=Me.host||"",je.auth=Me.auth,je.hostname=Me.hostname||Me.host,je.port=Me.port,je.pathname||je.search){var Je=je.pathname||"",Qe=je.search||"";je.path=Je+Qe}return je.slashes=je.slashes||Me.slashes,je.href=je.format(),je}var Ve=je.pathname&&je.pathname.charAt(0)==="/",ct=Me.host||Me.pathname&&Me.pathname.charAt(0)==="/",tt=ct||Ve||je.host&&Me.pathname,ut=tt,st=je.pathname&&je.pathname.split("/")||[],ze=Me.pathname&&Me.pathname.split("/")||[],Be=je.protocol&&!De[je.protocol];if(Be&&(je.hostname="",je.port=null,je.host&&(st[0]===""?st[0]=je.host:st.unshift(je.host)),je.host="",Me.protocol&&(Me.hostname=null,Me.port=null,Me.host&&(ze[0]===""?ze[0]=Me.host:ze.unshift(Me.host)),Me.host=null),tt=tt&&(ze[0]===""||st[0]==="")),ct)je.host=Me.host||Me.host===""?Me.host:je.host,je.hostname=Me.hostname||Me.hostname===""?Me.hostname:je.hostname,je.search=Me.search,je.query=Me.query,st=ze;else if(ze.length)st||(st=[]),st.pop(),st=st.concat(ze),je.search=Me.search,je.query=Me.query;else if(!le.isNullOrUndefined(Me.search)){if(Be){je.hostname=je.host=st.shift();var Ke=je.host&&je.host.indexOf("@")>0?je.host.split("@"):!1;Ke&&(je.auth=Ke.shift(),je.host=je.hostname=Ke.shift())}return je.search=Me.search,je.query=Me.query,(!le.isNull(je.pathname)||!le.isNull(je.search))&&(je.path=(je.pathname?je.pathname:"")+(je.search?je.search:"")),je.href=je.format(),je}if(!st.length)return je.pathname=null,je.search?je.path="/"+je.search:je.path=null,je.href=je.format(),je;for(var Ie=st.slice(-1)[0],Ye=(je.host||Me.host||st.length>1)&&(Ie==="."||Ie==="..")||Ie==="",ft=0,mt=st.length;mt>=0;mt--)Ie=st[mt],Ie==="."?st.splice(mt,1):Ie===".."?(st.splice(mt,1),ft++):ft&&(st.splice(mt,1),ft--);if(!tt&&!ut)for(;ft--;ft)st.unshift("..");tt&&st[0]!==""&&(!st[0]||st[0].charAt(0)!=="/")&&st.unshift(""),Ye&&st.join("/").substr(-1)!=="/"&&st.push("");var nt=st[0]===""||st[0]&&st[0].charAt(0)==="/";if(Be){je.hostname=je.host=nt?"":st.length?st.shift():"";var Ke=je.host&&je.host.indexOf("@")>0?je.host.split("@"):!1;Ke&&(je.auth=Ke.shift(),je.host=je.hostname=Ke.shift())}return tt=tt||je.host&&st.length,tt&&!nt&&st.unshift(""),st.length?je.pathname=st.join("/"):(je.pathname=null,je.path=null),(!le.isNull(je.pathname)||!le.isNull(je.search))&&(je.path=(je.pathname?je.pathname:"")+(je.search?je.search:"")),je.auth=Me.auth||je.auth,je.slashes=je.slashes||Me.slashes,je.href=je.format(),je},z.prototype.parseHost=function(){var Me=this.host,Se=x.exec(Me);Se&&(Se=Se[0],Se!==":"&&(this.port=Se.substr(1)),Me=Me.substr(0,Me.length-Se.length)),Me&&(this.hostname=Me)}},{"./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,we,ge){"use strict";var ee=y("@babel/runtime/helpers/interopRequireDefault"),E=ee(y("@babel/runtime/helpers/typeof"));we.exports={isString:function(le){return typeof le=="string"},isObject:function(le){return(0,E.default)(le)==="object"&&le!==null},isNull:function(le){return le===null},isNullOrUndefined:function(le){return le==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(y,we,ge){"use strict";y("core-js/modules/es.number.constructor.js"),ge.encodeURIComponent=function(ee){try{return encodeURIComponent(ee)}catch(E){return ee}},ge.escape=y("escape-html"),ge.timestamp=function(E){if(E){var ie=E;return typeof ie=="string"&&(ie=Number(ie)),String(E).length===10&&(ie*=1e3),new Date(ie)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,we,ge){(function(ee,E){(function(){"use strict";var ie=y("@babel/runtime/helpers/interopRequireDefault"),le=ie(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 z=y("util"),se=y("url"),x=y("http"),re=y("https"),te=y("debug")("urllib"),ae=y("humanize-ms"),ue=0,fe=Math.pow(2,31)-10,de=/^https?:\/\//i;function he(ke,De){return ke===void 0?De:ke}function ce(ke){return ke?ke.split(";")[0].trim().toLowerCase():""}function pe(ke,De){return function(Ae,ve,be){if(Ae)return De(Ae);ke({data:ve,status:be.statusCode,headers:be.headers,res:be})}}ge.TIMEOUTS=[ae("300s"),ae("300s")];var Ce=["json","text"];ge.request=function(De,Ae,ve){return arguments.length===2&&typeof Ae=="function"&&(ve=Ae,Ae=null),typeof ve=="function"?ge.requestWithCallback(De,Ae,ve):new Promise(function(be,Ee){ge.requestWithCallback(De,Ae,pe(be,Ee))})},ge.requestWithCallback=function(De,Ae,ve){if(!De||typeof De!="string"&&(0,le.default)(De)!=="object"){var be=z.format("expect request url to be a string or a http request options, but got %j",De);throw new Error(be)}arguments.length===2&&typeof Ae=="function"&&(ve=Ae,Ae=null),Ae=Ae||{},ue>=fe&&(ue=0);var Ee=++ue;Ae.requestUrls=Ae.requestUrls||[];var Oe={requestId:Ee,url:De,args:Ae,ctx:Ae.ctx};Ae.emitter&&Ae.emitter.emit("request",Oe),Ae.timeout=Ae.timeout||ge.TIMEOUTS,Ae.maxRedirects=Ae.maxRedirects||10,Ae.streaming=Ae.streaming||Ae.customResponse;var Me=Date.now(),Se;typeof De=="string"?(de.test(De)||(De="https://"+De),Se=se.parse(De)):Se=De;var je=(Ae.type||Ae.method||Se.method||"GET").toUpperCase(),Ze=Se.port||80,Xe=x,$e=he(Ae.agent,ge.agent),lt=Ae.fixJSONCtlChars;Se.protocol==="https:"&&(Xe=re,$e=he(Ae.httpsAgent,ge.httpsAgent),Se.port||(Ze=443));var Re={host:Se.hostname||Se.host||"localhost",path:Se.path||"/",method:je,port:Ze,agent:$e,headers:Ae.headers||{},lookup:Ae.lookup};Array.isArray(Ae.timeout)?Re.requestTimeout=Ae.timeout[Ae.timeout.length-1]:typeof Ae.timeout!="undefined"&&(Re.requestTimeout=Ae.timeout);var We=Ae.auth||Se.auth;We&&(Re.auth=We);var rt=Ae.content||Ae.data,ot=je==="GET"||je==="HEAD"||Ae.dataAsQueryString;if(!Ae.content&&rt&&!(typeof rt=="string"||E.isBuffer(rt)))if(ot)rt=Ae.nestedQuerystring?qs.stringify(rt):querystring.stringify(rt);else{var at=Re.headers["Content-Type"]||Re.headers["content-type"];at||(Ae.contentType==="json"?at="application/json":at="application/x-www-form-urlencoded",Re.headers["Content-Type"]=at),ce(at)==="application/json"?rt=JSON.stringify(rt):rt=Ae.nestedQuerystring?qs.stringify(rt):querystring.stringify(rt)}ot&&rt&&(Re.path+=(Se.query?"&":"?")+rt,rt=null);var Je=0;if(rt){var Qe=rt.length;E.isBuffer(rt)||(Qe=E.byteLength(rt)),Je=Re.headers["Content-Length"]=Qe}Ae.dataType==="json"&&(Re.headers.Accept="application/json"),typeof Ae.beforeRequest=="function"&&Ae.beforeRequest(Re);var Ve=null,ct=null,tt=null,ut=!1,st=!1,ze=0,Be=-1,Ke=!1,Ie="",Ye="",ft=null;Ae.timing&&(ft={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function mt(){Ve&&(clearTimeout(Ve),Ve=null)}function nt(){ct&&(clearTimeout(ct),ct=null)}function _e(wt,vt,gt){if(nt(),!ve){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Ee,ee.pid,Re.method,De),wt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Ee,ee.pid,wt.name,wt.message,wt.stack);return}var ht=ve;ve=null;var xt={};gt&&(Be=gt.statusCode,xt=gt.headers);var St=Date.now()-Me;ft&&(ft.contentDownload=St),te("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",St,ze,Be,Re.method,Re.host,Re.path,st,ft);var Ct={status:Be,statusCode:Be,headers:xt,size:ze,aborted:Ke,rt:St,keepAliveSocket:st,data:vt,requestUrls:Ae.requestUrls,timing:ft,remoteAddress:Ie,remotePort:Ye};if(wt){var jt="";$e&&typeof $e.getCurrentStatus=="function"&&(jt=", agent status: "+JSON.stringify($e.getCurrentStatus())),wt.message+=", "+Re.method+" "+De+" "+Be+" (connected: "+ut+", keepalive socket: "+st+jt+`)
headers: `+JSON.stringify(xt),wt.data=vt,wt.path=Re.path,wt.status=Be,wt.headers=xt,wt.res=Ct}ht(wt,vt,Ae.streaming?gt:Ct),Ae.emitter&&(Oe.url=De,Oe.socket=Ne&&Ne.connection,Oe.options=Re,Oe.size=Je,Ae.emitter.emit("response",{requestId:Ee,error:wt,ctx:Ae.ctx,req:Oe,res:Ct}))}function Pe(wt){var vt=null;if(Ae.followRedirect&&statuses.redirect[wt.statusCode]){Ae._followRedirectCount=(Ae._followRedirectCount||0)+1;var gt=wt.headers.location;if(!gt)vt=new Error("Got statusCode "+wt.statusCode+" but cannot resolve next location from headers"),vt.name="FollowRedirectError";else if(Ae._followRedirectCount>Ae.maxRedirects)vt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+De),vt.name="MaxRedirectError";else{var ht=Ae.formatRedirectUrl?Ae.formatRedirectUrl(De,gt):se.resolve(De,gt);te("Request#%d %s: `redirected` from %s to %s",Ee,Re.path,De,ht),nt(),Ae.headers&&Ae.headers.Host&&de.test(gt)&&(Ae.headers.Host=null);var xt=ve;return ve=null,ge.requestWithCallback(ht,Ae,xt),{redirect:!0,error:null}}}return{redirect:!1,error:vt}}Ae.gzip&&!Re.headers["Accept-Encoding"]&&!Re.headers["accept-encoding"]&&(Re.headers["Accept-Encoding"]="gzip");function He(wt,vt,gt){var ht=wt.headers["content-encoding"];return gt(null,vt,ht)}var it=Ae.writeStream;te("Request#%d %s %s with headers %j, options.path: %s",Ee,je,De,Re.headers,Re.path),Ae.requestUrls.push(De);function Te(wt){if(ft&&(ft.waiting=Date.now()-Me),te("Request#%d %s `req response` event emit: status %d, headers: %j",Ee,De,wt.statusCode,wt.headers),Ae.streaming){var vt=Pe(wt);if(vt.redirect){wt.resume();return}return vt.error?(wt.resume(),_e(vt.error,null,wt)):_e(null,null,wt)}if(wt.on("close",function(){te("Request#%d %s: `res close` event emit, total size %d",Ee,De,ze)}),wt.on("error",function(){te("Request#%d %s: `res error` event emit, total size %d",Ee,De,ze)}),wt.on("aborted",function(){Ke=!0,te("Request#%d %s: `res aborted` event emit, total size %d",Ee,De,ze)}),it){var gt=Pe(wt);if(gt.redirect){wt.resume();return}return gt.error?(wt.resume(),it.end(),_e(gt.error,null,wt)):(Ae.consumeWriteStream===!1?wt.on("end",_e.bind(null,null,null,wt)):it.on("close",function(){te("Request#%d %s: writeStream close event emitted",Ee,De),_e(tt||null,null,wt)}),wt.pipe(it))}var ht=[];wt.on("data",function(xt){te("Request#%d %s: `res data` event emit, size %d",Ee,De,xt.length),ze+=xt.length,ht.push(xt)}),wt.on("end",function(){var xt=E.concat(ht,ze);if(te("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Ee,De,ze,wt._dumped),tt)return _e(tt,xt,wt);var St=Pe(wt);if(St.error)return _e(St.error,xt,wt);St.redirect||He(wt,xt,function(Ct,jt,Ut){if(Ct)return _e(Ct,xt,wt);if(!Ut&&Ce.indexOf(Ae.dataType)>=0){try{jt=decodeBodyByCharset(jt,wt)}catch(qt){return te("decodeBodyByCharset error: %s",qt),_e(null,jt,wt)}if(Ae.dataType==="json")if(ze===0)jt=null;else{var Bt=parseJSON(jt,lt);Bt.error?Ct=Bt.error:jt=Bt.data}}Ke&&te("Request#%d %s: Remote socket was terminated before `response.end()` was called",Ee,De),_e(Ct,jt,wt)})})}var xe,ye;Array.isArray(Ae.timeout)?(xe=ae(Ae.timeout[0]),ye=ae(Ae.timeout[1])):xe=ye=ae(Ae.timeout),te("ConnectTimeout: %d, ResponseTimeout: %d",xe,ye);function Le(){te("Connect timer ticking, timeout: %d",xe),Ve=setTimeout(function(){Ve=null,Be===-1&&(Be=-2);var wt="Connect timeout for "+xe+"ms",vt="ConnectionTimeoutError";Ne.socket||(vt="SocketAssignTimeoutError",wt+=", working sockets is full"),tt=new Error(wt),tt.name=vt,tt.requestId=Ee,te("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Ee,De,tt.name,wt,ut),yt()},xe)}function et(){te("Response timer ticking, timeout: %d",ye),ct=setTimeout(function(){ct=null;var wt="Response timeout for "+ye+"ms",vt="ResponseTimeoutError";tt=new Error(wt),tt.name=vt,tt.requestId=Ee,te("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Ee,De,tt.name,wt,ut),yt()},ye)}var Ne;Re.mode=Ae.mode?Ae.mode:"";try{Ne=Xe.request(Re,Te)}catch(wt){return _e(wt)}typeof window=="undefined"?Le():Ne.on("requestTimeout",function(){Be===-1&&(Be=-2);var wt="Connect timeout for "+xe+"ms",vt="ConnectionTimeoutError";tt=new Error(wt),tt.name=vt,tt.requestId=Ee,yt()});function yt(){te("Request#%d %s abort, connected: %s",Ee,De,ut),Ne.socket||(tt.noSocket=!0,_e(tt)),Ne.abort()}return ft&&Ne.on("finish",function(){ft.requestSent=Date.now()-Me}),Ne.once("socket",function(wt){ft&&(ft.queuing=Date.now()-Me);var vt=wt.readyState;if(vt==="opening"){wt.once("lookup",function(gt,ht,xt){te("Request#%d %s lookup: %s, %s, %s",Ee,De,gt,ht,xt),ft&&(ft.dnslookup=Date.now()-Me),ht&&(Ie=ht)}),wt.once("connect",function(){ft&&(ft.connected=Date.now()-Me),mt(),et(),te("Request#%d %s new socket connected",Ee,De),ut=!0,Ie||(Ie=wt.remoteAddress),Ye=wt.remotePort});return}te("Request#%d %s reuse socket connected, readyState: %s",Ee,De,vt),ut=!0,st=!0,Ie||(Ie=wt.remoteAddress),Ye=wt.remotePort,mt(),et()}),Ne.on("error",function(wt){(wt.name==="Error"||wt.name==="TypeError")&&(wt.name=ut?"ResponseError":"RequestError"),wt.message+=' (req "error")',te("Request#%d %s `req error` event emit, %s: %s",Ee,De,wt.name,wt.message),_e(tt||wt)}),it&&it.once("error",function(wt){wt.message+=' (writeStream "error")',tt=wt,te("Request#%d %s `writeStream error` event emit, %s: %s",Ee,De,wt.name,wt.message),yt()}),Ae.stream?(Ae.stream.pipe(Ne),Ae.stream.once("error",function(wt){wt.message+=' (stream "error")',tt=wt,te("Request#%d %s `readStream error` event emit, %s: %s",Ee,De,wt.name,wt.message),yt()})):Ne.end(rt),Ne.requestId=Ee,Ne}}).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(Nt,Ot,Ge){(function(Ue){Ue(Ge(89780))})(function(Ue){Ue.defineOption("placeholder","",function(ie,le,z){var se=z&&z!=Ue.Init;if(le&&!se)ie.on("blur",ge),ie.on("change",ee),ie.on("swapDoc",ee),Ue.on(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose=function(){we(ie)}),ee(ie);else if(!le&&se){ie.off("blur",ge),ie.off("change",ee),ie.off("swapDoc",ee),Ue.off(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose),Et(ie);var x=ie.getWrapperElement();x.className=x.className.replace(" CodeMirror-empty","")}le&&!ie.hasFocus()&&ge(ie)});function Et(ie){ie.state.placeholder&&(ie.state.placeholder.parentNode.removeChild(ie.state.placeholder),ie.state.placeholder=null)}function y(ie){Et(ie);var le=ie.state.placeholder=document.createElement("pre");le.style.cssText="height: 0; overflow: visible",le.style.direction=ie.getOption("direction"),le.className="CodeMirror-placeholder CodeMirror-line-like";var z=ie.getOption("placeholder");typeof z=="string"&&(z=document.createTextNode(z)),le.appendChild(z),ie.display.lineSpace.insertBefore(le,ie.display.lineSpace.firstChild)}function we(ie){setTimeout(function(){var le=!1,z=ie.getInputField();z.nodeName=="TEXTAREA"?le=!z.value:ie.lineCount()==1&&(le=!/[^\u200b]/.test(z.querySelector(".CodeMirror-line").textContent)),le?y(ie):Et(ie)},20)}function ge(ie){E(ie)&&y(ie)}function ee(ie){var le=ie.getWrapperElement(),z=E(ie);le.className=le.className.replace(" CodeMirror-empty","")+(z?" CodeMirror-empty":""),z?y(ie):Et(ie)}function E(ie){return ie.lineCount()===1&&ie.getLine(0)===""}})},25717:function(Nt,Ot,Ge){(function(Ue){Ue(Ge(89780))})(function(Ue){var Et={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},y=Ue.Pos;Ue.defineOption("autoCloseBrackets",!1,function(ae,ue,fe){fe&&fe!=Ue.Init&&(ae.removeKeyMap(ge),ae.state.closeBrackets=null),ue&&(ee(we(ue,"pairs")),ae.state.closeBrackets=ue,ae.addKeyMap(ge))});function we(ae,ue){return ue=="pairs"&&typeof ae=="string"?ae:typeof ae=="object"&&ae[ue]!=null?ae[ue]:Et[ue]}var ge={Backspace:le,Enter:z};function ee(ae){for(var ue=0;ue<ae.length;ue++){var fe=ae.charAt(ue),de="'"+fe+"'";ge[de]||(ge[de]=E(fe))}}ee(Et.pairs+"`");function E(ae){return function(ue){return x(ue,ae)}}function ie(ae){var ue=ae.state.closeBrackets;if(!ue||ue.override)return ue;var fe=ae.getModeAt(ae.getCursor());return fe.closeBrackets||ue}function le(ae){var ue=ie(ae);if(!ue||ae.getOption("disableInput"))return Ue.Pass;for(var fe=we(ue,"pairs"),de=ae.listSelections(),he=0;he<de.length;he++){if(!de[he].empty())return Ue.Pass;var ce=re(ae,de[he].head);if(!ce||fe.indexOf(ce)%2!=0)return Ue.Pass}for(var he=de.length-1;he>=0;he--){var pe=de[he].head;ae.replaceRange("",y(pe.line,pe.ch-1),y(pe.line,pe.ch+1),"+delete")}}function z(ae){var ue=ie(ae),fe=ue&&we(ue,"explode");if(!fe||ae.getOption("disableInput"))return Ue.Pass;for(var de=ae.listSelections(),he=0;he<de.length;he++){if(!de[he].empty())return Ue.Pass;var ce=re(ae,de[he].head);if(!ce||fe.indexOf(ce)%2!=0)return Ue.Pass}ae.operation(function(){var pe=ae.lineSeparator()||`
`;ae.replaceSelection(pe+pe,null),ae.execCommand("goCharLeft"),de=ae.listSelections();for(var Ce=0;Ce<de.length;Ce++){var ke=de[Ce].head.line;ae.indentLine(ke,null,!0),ae.indentLine(ke+1,null,!0)}})}function se(ae){var ue=Ue.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 fe=ie(ae);if(!fe||ae.getOption("disableInput"))return Ue.Pass;var de=we(fe,"pairs"),he=de.indexOf(ue);if(he==-1)return Ue.Pass;for(var ce=we(fe,"closeBefore"),pe=we(fe,"triples"),Ce=de.charAt(he+1)==ue,ke=ae.listSelections(),De=he%2==0,Ae,ve=0;ve<ke.length;ve++){var be=ke[ve],Ee=be.head,Oe,Me=ae.getRange(Ee,y(Ee.line,Ee.ch+1));if(De&&!be.empty())Oe="surround";else if((Ce||!De)&&Me==ue)Ce&&te(ae,Ee)?Oe="both":pe.indexOf(ue)>=0&&ae.getRange(Ee,y(Ee.line,Ee.ch+3))==ue+ue+ue?Oe="skipThree":Oe="skip";else if(Ce&&Ee.ch>1&&pe.indexOf(ue)>=0&&ae.getRange(y(Ee.line,Ee.ch-2),Ee)==ue+ue){if(Ee.ch>2&&/\bstring/.test(ae.getTokenTypeAt(y(Ee.line,Ee.ch-2))))return Ue.Pass;Oe="addFour"}else if(Ce){var Se=Ee.ch==0?" ":ae.getRange(y(Ee.line,Ee.ch-1),Ee);if(!Ue.isWordChar(Me)&&Se!=ue&&!Ue.isWordChar(Se))Oe="both";else return Ue.Pass}else if(De&&(Me.length===0||/\s/.test(Me)||ce.indexOf(Me)>-1))Oe="both";else return Ue.Pass;if(!Ae)Ae=Oe;else if(Ae!=Oe)return Ue.Pass}var je=he%2?de.charAt(he-1):ue,Ze=he%2?ue:de.charAt(he+1);ae.operation(function(){if(Ae=="skip")ae.execCommand("goCharRight");else if(Ae=="skipThree")for(var Xe=0;Xe<3;Xe++)ae.execCommand("goCharRight");else if(Ae=="surround"){for(var $e=ae.getSelections(),Xe=0;Xe<$e.length;Xe++)$e[Xe]=je+$e[Xe]+Ze;ae.replaceSelections($e,"around"),$e=ae.listSelections().slice();for(var Xe=0;Xe<$e.length;Xe++)$e[Xe]=se($e[Xe]);ae.setSelections($e)}else Ae=="both"?(ae.replaceSelection(je+Ze,null),ae.triggerElectric(je+Ze),ae.execCommand("goCharLeft")):Ae=="addFour"&&(ae.replaceSelection(je+je+je+je,"before"),ae.execCommand("goCharRight"))})}function re(ae,ue){var fe=ae.getRange(y(ue.line,ue.ch-1),y(ue.line,ue.ch+1));return fe.length==2?fe:null}function te(ae,ue){var fe=ae.getTokenAt(y(ue.line,ue.ch+1));return/\bstring/.test(fe.type)&&fe.start==ue.ch&&(ue.ch==0||!/\bstring/.test(ae.getTokenTypeAt(ue)))}})},6313:function(Nt,Ot,Ge){(function(Ue){Ue(Ge(89780),Ge(32855))})(function(Ue){Ue.defineOption("autoCloseTags",!1,function(le,z,se){if(se!=Ue.Init&&se&&le.removeKeyMap("autoCloseTags"),!!z){var x={name:"autoCloseTags"};(typeof z!="object"||z.whenClosing!==!1)&&(x["'/'"]=function(re){return ee(re)}),(typeof z!="object"||z.whenOpening!==!1)&&(x["'>'"]=function(re){return we(re)}),le.addKeyMap(x)}});var Et=["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 we(le){if(le.getOption("disableInput"))return Ue.Pass;for(var z=le.listSelections(),se=[],x=le.getOption("autoCloseTags"),re=0;re<z.length;re++){if(!z[re].empty())return Ue.Pass;var te=z[re].head,ae=le.getTokenAt(te),ue=Ue.innerMode(le.getMode(),ae.state),fe=ue.state,de=ue.mode.xmlCurrentTag&&ue.mode.xmlCurrentTag(fe),he=de&&de.name;if(!he)return Ue.Pass;var ce=ue.mode.configuration=="html",pe=typeof x=="object"&&x.dontCloseTags||ce&&Et,Ce=typeof x=="object"&&x.indentTags||ce&&y;ae.end>te.ch&&(he=he.slice(0,he.length-ae.end+te.ch));var ke=he.toLowerCase();if(!he||ae.type=="string"&&(ae.end!=te.ch||!/[\"\']/.test(ae.string.charAt(ae.string.length-1))||ae.string.length==1)||ae.type=="tag"&&de.close||ae.string.indexOf("/")==te.ch-ae.start-1||pe&&E(pe,ke)>-1||ie(le,ue.mode.xmlCurrentContext&&ue.mode.xmlCurrentContext(fe)||[],he,te,!0))return Ue.Pass;var De=typeof x=="object"&&x.emptyTags;if(De&&E(De,he)>-1){se[re]={text:"/>",newPos:Ue.Pos(te.line,te.ch+2)};continue}var Ae=Ce&&E(Ce,ke)>-1;se[re]={indent:Ae,text:">"+(Ae?`
`:"")+"</"+he+">",newPos:Ae?Ue.Pos(te.line+1,0):Ue.Pos(te.line,te.ch+1)}}for(var ve=typeof x=="object"&&x.dontIndentOnAutoClose,re=z.length-1;re>=0;re--){var be=se[re];le.replaceRange(be.text,z[re].head,z[re].anchor,"+insert");var Ee=le.listSelections().slice(0);Ee[re]={head:be.newPos,anchor:be.newPos},le.setSelections(Ee),!ve&&be.indent&&(le.indentLine(be.newPos.line,null,!0),le.indentLine(be.newPos.line+1,null,!0))}}function ge(le,z){for(var se=le.listSelections(),x=[],re=z?"/":"</",te=le.getOption("autoCloseTags"),ae=typeof te=="object"&&te.dontIndentOnSlash,ue=0;ue<se.length;ue++){if(!se[ue].empty())return Ue.Pass;var fe=se[ue].head,de=le.getTokenAt(fe),he=Ue.innerMode(le.getMode(),de.state),ce=he.state;if(z&&(de.type=="string"||de.string.charAt(0)!="<"||de.start!=fe.ch-1))return Ue.Pass;var pe,Ce=he.mode.name!="xml"&&le.getMode().name=="htmlmixed";if(Ce&&he.mode.name=="javascript")pe=re+"script";else if(Ce&&he.mode.name=="css")pe=re+"style";else{var ke=he.mode.xmlCurrentContext&&he.mode.xmlCurrentContext(ce);if(!ke||ke.length&&ie(le,ke,ke[ke.length-1],fe))return Ue.Pass;pe=re+ke[ke.length-1]}le.getLine(fe.line).charAt(de.end)!=">"&&(pe+=">"),x[ue]=pe}if(le.replaceSelections(x),se=le.listSelections(),!ae)for(var ue=0;ue<se.length;ue++)(ue==se.length-1||se[ue].head.line<se[ue+1].head.line)&&le.indentLine(se[ue].head.line)}function ee(le){return le.getOption("disableInput")?Ue.Pass:ge(le,!0)}Ue.commands.closeTag=function(le){return ge(le)};function E(le,z){if(le.indexOf)return le.indexOf(z);for(var se=0,x=le.length;se<x;++se)if(le[se]==z)return se;return-1}function ie(le,z,se,x,re){if(!Ue.scanForClosingTag)return!1;var te=Math.min(le.lastLine()+1,x.line+500),ae=Ue.scanForClosingTag(le,x,null,te);if(!ae||ae.tag!=se)return!1;for(var ue=re?1:0,fe=z.length-1;fe>=0&&z[fe]==se;fe--)++ue;x=ae.to;for(var fe=1;fe<ue;fe++){var de=Ue.scanForClosingTag(le,x,null,te);if(!de||de.tag!=se)return!1;x=de.to}return!0}})},32855:function(Nt,Ot,Ge){(function(Ue){Ue(Ge(89780))})(function(Ue){"use strict";var Et=Ue.Pos;function y(fe,de){return fe.line-de.line||fe.ch-de.ch}var we="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",ge=we+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ee=new RegExp("<(/?)(["+we+"]["+ge+"]*)","g");function E(fe,de,he,ce){this.line=de,this.ch=he,this.cm=fe,this.text=fe.getLine(de),this.min=ce?Math.max(ce.from,fe.firstLine()):fe.firstLine(),this.max=ce?Math.min(ce.to-1,fe.lastLine()):fe.lastLine()}function ie(fe,de){var he=fe.cm.getTokenTypeAt(Et(fe.line,de));return he&&/\btag\b/.test(he)}function le(fe){if(!(fe.line>=fe.max))return fe.ch=0,fe.text=fe.cm.getLine(++fe.line),!0}function z(fe){if(!(fe.line<=fe.min))return fe.text=fe.cm.getLine(--fe.line),fe.ch=fe.text.length,!0}function se(fe){for(;;){var de=fe.text.indexOf(">",fe.ch);if(de==-1){if(le(fe))continue;return}if(!ie(fe,de+1)){fe.ch=de+1;continue}var he=fe.text.lastIndexOf("/",de),ce=he>-1&&!/\S/.test(fe.text.slice(he+1,de));return fe.ch=de+1,ce?"selfClose":"regular"}}function x(fe){for(;;){var de=fe.ch?fe.text.lastIndexOf("<",fe.ch-1):-1;if(de==-1){if(z(fe))continue;return}if(!ie(fe,de+1)){fe.ch=de;continue}ee.lastIndex=de,fe.ch=de;var he=ee.exec(fe.text);if(he&&he.index==de)return he}}function re(fe){for(;;){ee.lastIndex=fe.ch;var de=ee.exec(fe.text);if(!de){if(le(fe))continue;return}if(!ie(fe,de.index+1)){fe.ch=de.index+1;continue}return fe.ch=de.index+de[0].length,de}}function te(fe){for(;;){var de=fe.ch?fe.text.lastIndexOf(">",fe.ch-1):-1;if(de==-1){if(z(fe))continue;return}if(!ie(fe,de+1)){fe.ch=de;continue}var he=fe.text.lastIndexOf("/",de),ce=he>-1&&!/\S/.test(fe.text.slice(he+1,de));return fe.ch=de+1,ce?"selfClose":"regular"}}function ae(fe,de){for(var he=[];;){var ce=re(fe),pe,Ce=fe.line,ke=fe.ch-(ce?ce[0].length:0);if(!ce||!(pe=se(fe)))return;if(pe!="selfClose")if(ce[1]){for(var De=he.length-1;De>=0;--De)if(he[De]==ce[2]){he.length=De;break}if(De<0&&(!de||de==ce[2]))return{tag:ce[2],from:Et(Ce,ke),to:Et(fe.line,fe.ch)}}else he.push(ce[2])}}function ue(fe,de){for(var he=[];;){var ce=te(fe);if(!ce)return;if(ce=="selfClose"){x(fe);continue}var pe=fe.line,Ce=fe.ch,ke=x(fe);if(!ke)return;if(ke[1])he.push(ke[2]);else{for(var De=he.length-1;De>=0;--De)if(he[De]==ke[2]){he.length=De;break}if(De<0&&(!de||de==ke[2]))return{tag:ke[2],from:Et(fe.line,fe.ch),to:Et(pe,Ce)}}}}Ue.registerHelper("fold","xml",function(fe,de){for(var he=new E(fe,de.line,0);;){var ce=re(he);if(!ce||he.line!=de.line)return;var pe=se(he);if(!pe)return;if(!ce[1]&&pe!="selfClose"){var Ce=Et(he.line,he.ch),ke=ae(he,ce[2]);return ke&&y(ke.from,Ce)>0?{from:Ce,to:ke.from}:null}}}),Ue.findMatchingTag=function(fe,de,he){var ce=new E(fe,de.line,de.ch,he);if(!(ce.text.indexOf(">")==-1&&ce.text.indexOf("<")==-1)){var pe=se(ce),Ce=pe&&Et(ce.line,ce.ch),ke=pe&&x(ce);if(!(!pe||!ke||y(ce,de)>0)){var De={from:Et(ce.line,ce.ch),to:Ce,tag:ke[2]};return pe=="selfClose"?{open:De,close:null,at:"open"}:ke[1]?{open:ue(ce,ke[2]),close:De,at:"close"}:(ce=new E(fe,Ce.line,Ce.ch,he),{open:De,close:ae(ce,ke[2]),at:"open"})}}},Ue.findEnclosingTag=function(fe,de,he,ce){for(var pe=new E(fe,de.line,de.ch,he);;){var Ce=ue(pe,ce);if(!Ce)break;var ke=new E(fe,de.line,de.ch,he),De=ae(ke,Ce.tag);if(De)return{open:Ce,close:De}}},Ue.scanForClosingTag=function(fe,de,he,ce){var pe=new E(fe,de.line,de.ch,ce?{from:0,to:ce}:null);return ae(pe,he)}})},89780:function(Nt){(function(Ot,Ge){Nt.exports=Ge()})(this,function(){"use strict";var Ot=navigator.userAgent,Ge=navigator.platform,Ue=/gecko\/\d/i.test(Ot),Et=/MSIE \d/.test(Ot),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ot),we=/Edge\/(\d+)/.exec(Ot),ge=Et||y||we,ee=ge&&(Et?document.documentMode||6:+(we||y)[1]),E=!we&&/WebKit\//.test(Ot),ie=E&&/Qt\/\d+\.\d+/.test(Ot),le=!we&&/Chrome\//.test(Ot),z=/Opera\//.test(Ot),se=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ot),re=/PhantomJS/.test(Ot),te=!we&&/AppleWebKit/.test(Ot)&&/Mobile\/\w+/.test(Ot),ae=/Android/.test(Ot),ue=te||ae||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ot),fe=te||/Mac/.test(Ge),de=/\bCrOS\b/.test(Ot),he=/win/i.test(Ge),ce=z&&Ot.match(/Version\/(\d*\.\d*)/);ce&&(ce=Number(ce[1])),ce&&ce>=15&&(z=!1,E=!0);var pe=fe&&(ie||z&&(ce==null||ce<12.11)),Ce=Ue||ge&&ee>=9;function ke(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var De=function(a,b){var oe=a.className,ne=ke(b).exec(oe);if(ne){var me=oe.slice(ne.index+ne[0].length);a.className=oe.slice(0,ne.index)+(me?ne[1]+me:"")}};function Ae(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function ve(a,b){return Ae(a).appendChild(b)}function be(a,b,oe,ne){var me=document.createElement(a);if(oe&&(me.className=oe),ne&&(me.style.cssText=ne),typeof b=="string")me.appendChild(document.createTextNode(b));else if(b)for(var Fe=0;Fe<b.length;++Fe)me.appendChild(b[Fe]);return me}function Ee(a,b,oe,ne){var me=be(a,b,oe,ne);return me.setAttribute("role","presentation"),me}var Oe;document.createRange?Oe=function(a,b,oe,ne){var me=document.createRange();return me.setEnd(ne||a,oe),me.setStart(a,b),me}:Oe=function(a,b,oe){var ne=document.body.createTextRange();try{ne.moveToElementText(a.parentNode)}catch(me){return ne}return ne.collapse(!0),ne.moveEnd("character",oe),ne.moveStart("character",b),ne};function Me(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 Se(){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 je(a,b){var oe=a.className;ke(b).test(oe)||(a.className+=(oe?" ":"")+b)}function Ze(a,b){for(var oe=a.split(" "),ne=0;ne<oe.length;ne++)oe[ne]&&!ke(oe[ne]).test(b)&&(b+=" "+oe[ne]);return b}var Xe=function(a){a.select()};te?Xe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ge&&(Xe=function(a){try{a.select()}catch(b){}});function $e(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function lt(a,b,oe){b||(b={});for(var ne in a)a.hasOwnProperty(ne)&&(oe!==!1||!b.hasOwnProperty(ne))&&(b[ne]=a[ne]);return b}function Re(a,b,oe,ne,me){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Fe=ne||0,qe=me||0;;){var dt=a.indexOf(" ",Fe);if(dt<0||dt>=b)return qe+(b-Fe);qe+=dt-Fe,qe+=oe-qe%oe,Fe=dt+1}}var We=function(){this.id=null,this.f=null,this.time=0,this.handler=$e(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 oe=+new Date+a;(!this.id||oe<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=oe)};function rt(a,b){for(var oe=0;oe<a.length;++oe)if(a[oe]==b)return oe;return-1}var ot=50,at={toString:function(){return"CodeMirror.Pass"}},Je={scroll:!1},Qe={origin:"*mouse"},Ve={origin:"+move"};function ct(a,b,oe){for(var ne=0,me=0;;){var Fe=a.indexOf(" ",ne);Fe==-1&&(Fe=a.length);var qe=Fe-ne;if(Fe==a.length||me+qe>=b)return ne+Math.min(qe,b-me);if(me+=Fe-ne,me+=oe-me%oe,ne=Fe+1,me>=b)return ne}}var tt=[""];function ut(a){for(;tt.length<=a;)tt.push(st(tt)+" ");return tt[a]}function st(a){return a[a.length-1]}function ze(a,b){for(var oe=[],ne=0;ne<a.length;ne++)oe[ne]=b(a[ne],ne);return oe}function Be(a,b,oe){for(var ne=0,me=oe(b);ne<a.length&&oe(a[ne])<=me;)ne++;a.splice(ne,0,b)}function Ke(){}function Ie(a,b){var oe;return Object.create?oe=Object.create(a):(Ke.prototype=a,oe=new Ke),b&&lt(b,oe),oe}var Ye=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ft(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||Ye.test(a))}function mt(a,b){return b?b.source.indexOf("\\w")>-1&&ft(a)?!0:b.test(a):ft(a)}function nt(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var _e=/[\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 Pe(a){return a.charCodeAt(0)>=768&&_e.test(a)}function He(a,b,oe){for(;(oe<0?b>0:b<a.length)&&Pe(a.charAt(b));)b+=oe;return b}function it(a,b,oe){for(var ne=b>oe?-1:1;;){if(b==oe)return b;var me=(b+oe)/2,Fe=ne<0?Math.ceil(me):Math.floor(me);if(Fe==b)return a(Fe)?b:oe;a(Fe)?oe=Fe:b=Fe+ne}}function Te(a,b,oe,ne){if(!a)return ne(b,oe,"ltr",0);for(var me=!1,Fe=0;Fe<a.length;++Fe){var qe=a[Fe];(qe.from<oe&&qe.to>b||b==oe&&qe.to==b)&&(ne(Math.max(qe.from,b),Math.min(qe.to,oe),qe.level==1?"rtl":"ltr",Fe),me=!0)}me||ne(b,oe,"ltr")}var xe=null;function ye(a,b,oe){var ne;xe=null;for(var me=0;me<a.length;++me){var Fe=a[me];if(Fe.from<b&&Fe.to>b)return me;Fe.to==b&&(Fe.from!=Fe.to&&oe=="before"?ne=me:xe=me),Fe.from==b&&(Fe.from!=Fe.to&&oe!="before"?ne=me:xe=me)}return ne!=null?ne:xe}var Le=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function oe(bt){return bt<=247?a.charAt(bt):1424<=bt&&bt<=1524?"R":1536<=bt&&bt<=1785?b.charAt(bt-1536):1774<=bt&&bt<=2220?"r":8192<=bt&&bt<=8203?"w":bt==8204?"b":"L"}var ne=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,me=/[stwN]/,Fe=/[LRr]/,qe=/[Lb1n]/,dt=/[1n]/;function pt(bt,kt,_t){this.level=bt,this.from=kt,this.to=_t}return function(bt,kt){var _t=kt=="ltr"?"L":"R";if(bt.length==0||kt=="ltr"&&!ne.test(bt))return!1;for(var Ft=bt.length,It=[],ir=0;ir<Ft;++ir)It.push(oe(bt.charCodeAt(ir)));for(var br=0,Pr=_t;br<Ft;++br){var Ur=It[br];Ur=="m"?It[br]=Pr:Pr=Ur}for(var Vr=0,Hr=_t;Vr<Ft;++Vr){var Xr=It[Vr];Xr=="1"&&Hr=="r"?It[Vr]="n":Fe.test(Xr)&&(Hr=Xr,Xr=="r"&&(It[Vr]="R"))}for(var sn=1,tn=It[0];sn<Ft-1;++sn){var En=It[sn];En=="+"&&tn=="1"&&It[sn+1]=="1"?It[sn]="1":En==","&&tn==It[sn+1]&&(tn=="1"||tn=="n")&&(It[sn]=tn),tn=En}for(var zn=0;zn<Ft;++zn){var si=It[zn];if(si==",")It[zn]="N";else if(si=="%"){var Xn=void 0;for(Xn=zn+1;Xn<Ft&&It[Xn]=="%";++Xn);for(var Pi=zn&&It[zn-1]=="!"||Xn<Ft&&It[Xn]=="1"?"1":"N",Ci=zn;Ci<Xn;++Ci)It[Ci]=Pi;zn=Xn-1}}for(var ei=0,ki=_t;ei<Ft;++ei){var fi=It[ei];ki=="L"&&fi=="1"?It[ei]="L":Fe.test(fi)&&(ki=fi)}for(var ii=0;ii<Ft;++ii)if(me.test(It[ii])){var ti=void 0;for(ti=ii+1;ti<Ft&&me.test(It[ti]);++ti);for(var Yn=(ii?It[ii-1]:_t)=="L",Ai=(ti<Ft?It[ti]:_t)=="L",za=Yn==Ai?Yn?"L":"R":_t,ya=ii;ya<ti;++ya)It[ya]=za;ii=ti-1}for(var pi=[],ea,li=0;li<Ft;)if(qe.test(It[li])){var bs=li;for(++li;li<Ft&&qe.test(It[li]);++li);pi.push(new pt(0,bs,li))}else{var aa=li,Ta=pi.length,_a=kt=="rtl"?1:0;for(++li;li<Ft&&It[li]!="L";++li);for(var bi=aa;bi<li;)if(dt.test(It[bi])){aa<bi&&(pi.splice(Ta,0,new pt(1,aa,bi)),Ta+=_a);var Ga=bi;for(++bi;bi<li&&dt.test(It[bi]);++bi);pi.splice(Ta,0,new pt(2,Ga,bi)),Ta+=_a,aa=bi}else++bi;aa<li&&pi.splice(Ta,0,new pt(1,aa,li))}return kt=="ltr"&&(pi[0].level==1&&(ea=bt.match(/^\s+/))&&(pi[0].from=ea[0].length,pi.unshift(new pt(0,0,ea[0].length))),st(pi).level==1&&(ea=bt.match(/\s+$/))&&(st(pi).to-=ea[0].length,pi.push(new pt(0,Ft-ea[0].length,Ft)))),kt=="rtl"?pi.reverse():pi}}();function et(a,b){var oe=a.order;return oe==null&&(oe=a.order=Le(a.text,b)),oe}var Ne=[],yt=function(a,b,oe){if(a.addEventListener)a.addEventListener(b,oe,!1);else if(a.attachEvent)a.attachEvent("on"+b,oe);else{var ne=a._handlers||(a._handlers={});ne[b]=(ne[b]||Ne).concat(oe)}};function wt(a,b){return a._handlers&&a._handlers[b]||Ne}function vt(a,b,oe){if(a.removeEventListener)a.removeEventListener(b,oe,!1);else if(a.detachEvent)a.detachEvent("on"+b,oe);else{var ne=a._handlers,me=ne&&ne[b];if(me){var Fe=rt(me,oe);Fe>-1&&(ne[b]=me.slice(0,Fe).concat(me.slice(Fe+1)))}}}function gt(a,b){var oe=wt(a,b);if(oe.length)for(var ne=Array.prototype.slice.call(arguments,2),me=0;me<oe.length;++me)oe[me].apply(null,ne)}function ht(a,b,oe){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),gt(a,oe||b.type,a,b),Bt(b)||b.codemirrorIgnore}function xt(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var oe=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),ne=0;ne<b.length;++ne)rt(oe,b[ne])==-1&&oe.push(b[ne])}function St(a,b){return wt(a,b).length>0}function Ct(a){a.prototype.on=function(b,oe){yt(this,b,oe)},a.prototype.off=function(b,oe){vt(this,b,oe)}}function jt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ut(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Bt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function qt(a){jt(a),Ut(a)}function xr(a){return a.target||a.srcElement}function pr(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),fe&&a.ctrlKey&&b==1&&(b=3),b}var Lt=function(){if(ge&&ee<9)return!1;var a=be("div");return"draggable"in a||"dragDrop"in a}(),Vt;function ar(a){if(Vt==null){var b=be("span","\u200B");ve(a,be("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Vt=b.offsetWidth<=1&&b.offsetHeight>2&&!(ge&&ee<8))}var oe=Vt?be("span","\u200B"):be("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return oe.setAttribute("cm-text",""),oe}var fr;function Jt(a){if(fr!=null)return fr;var b=ve(a,document.createTextNode("A\u062EA")),oe=Oe(b,0,1).getBoundingClientRect(),ne=Oe(b,1,2).getBoundingClientRect();return Ae(a),!oe||oe.left==oe.right?!1:fr=ne.right-oe.right<3}var sr=`
b`.split(/\n/).length!=3?function(a){for(var b=0,oe=[],ne=a.length;b<=ne;){var me=a.indexOf(`
`,b);me==-1&&(me=a.length);var Fe=a.slice(b,a.charAt(me-1)=="\r"?me-1:me),qe=Fe.indexOf("\r");qe!=-1?(oe.push(Fe.slice(0,qe)),b+=qe+1):(oe.push(Fe),b=me+1)}return oe}:function(a){return a.split(/\r\n?|\n/)},Dr=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(oe){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Xt=function(){var a=be("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),zt=null;function Zt(a){if(zt!=null)return zt;var b=ve(a,be("span","x")),oe=b.getBoundingClientRect(),ne=Oe(b,0,1).getBoundingClientRect();return zt=Math.abs(oe.left-ne.left)>1}var Yt={},Pt={};function Wt(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),Yt[a]=b}function $t(a,b){Pt[a]=b}function cr(a){if(typeof a=="string"&&Pt.hasOwnProperty(a))a=Pt[a];else if(a&&typeof a.name=="string"&&Pt.hasOwnProperty(a.name)){var b=Pt[a.name];typeof b=="string"&&(b={name:b}),a=Ie(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return cr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return cr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Ht(a,b){b=cr(b);var oe=Yt[b.name];if(!oe)return Ht(a,"text/plain");var ne=oe(a,b);if(Er.hasOwnProperty(b.name)){var me=Er[b.name];for(var Fe in me)me.hasOwnProperty(Fe)&&(ne.hasOwnProperty(Fe)&&(ne["_"+Fe]=ne[Fe]),ne[Fe]=me[Fe])}if(ne.name=b.name,b.helperType&&(ne.helperType=b.helperType),b.modeProps)for(var qe in b.modeProps)ne[qe]=b.modeProps[qe];return ne}var Er={};function Tr(a,b){var oe=Er.hasOwnProperty(a)?Er[a]:Er[a]={};lt(b,oe)}function Mr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var oe={};for(var ne in b){var me=b[ne];me instanceof Array&&(me=me.concat([])),oe[ne]=me}return oe}function Cr(a,b){for(var oe;a.innerMode&&(oe=a.innerMode(b),!(!oe||oe.mode==a));)b=oe.state,a=oe.mode;return oe||{mode:a,state:b}}function dr(a,b,oe){return a.startState?a.startState(b,oe):!0}var er=function(a,b,oe){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=oe};er.prototype.eol=function(){return this.pos>=this.string.length},er.prototype.sol=function(){return this.pos==this.lineStart},er.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},er.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},er.prototype.eat=function(a){var b=this.string.charAt(this.pos),oe;if(typeof a=="string"?oe=b==a:oe=b&&(a.test?a.test(b):a(b)),oe)return++this.pos,b},er.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},er.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},er.prototype.skipToEnd=function(){this.pos=this.string.length},er.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},er.prototype.backUp=function(a){this.pos-=a},er.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)},er.prototype.indentation=function(){return Re(this.string,null,this.tabSize)-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},er.prototype.match=function(a,b,oe){if(typeof a=="string"){var ne=function(qe){return oe?qe.toLowerCase():qe},me=this.string.substr(this.pos,a.length);if(ne(me)==ne(a))return b!==!1&&(this.pos+=a.length),!0}else{var Fe=this.string.slice(this.pos).match(a);return Fe&&Fe.index>0?null:(Fe&&b!==!1&&(this.pos+=Fe[0].length),Fe)}},er.prototype.current=function(){return this.string.slice(this.start,this.pos)},er.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},er.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},er.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 oe=a;!oe.lines;)for(var ne=0;;++ne){var me=oe.children[ne],Fe=me.chunkSize();if(b<Fe){oe=me;break}b-=Fe}return oe.lines[b]}function rr(a,b,oe){var ne=[],me=b.line;return a.iter(b.line,oe.line+1,function(Fe){var qe=Fe.text;me==oe.line&&(qe=qe.slice(0,oe.ch)),me==b.line&&(qe=qe.slice(b.ch)),ne.push(qe),++me}),ne}function gr(a,b,oe){var ne=[];return a.iter(b,oe,function(me){ne.push(me.text)}),ne}function Lr(a,b){var oe=b-a.height;if(oe)for(var ne=a;ne;ne=ne.parent)ne.height+=oe}function At(a){if(a.parent==null)return null;for(var b=a.parent,oe=rt(b.lines,a),ne=b.parent;ne;b=ne,ne=ne.parent)for(var me=0;ne.children[me]!=b;++me)oe+=ne.children[me].chunkSize();return oe+b.first}function Tt(a,b){var oe=a.first;e:do{for(var ne=0;ne<a.children.length;++ne){var me=a.children[ne],Fe=me.height;if(b<Fe){a=me;continue e}b-=Fe,oe+=me.chunkSize()}return oe}while(!a.lines);for(var qe=0;qe<a.lines.length;++qe){var dt=a.lines[qe],pt=dt.height;if(b<pt)break;b-=pt}return oe+qe}function nr(a,b){return b>=a.first&&b<a.first+a.size}function Kt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Dt(a,b,oe){if(oe===void 0&&(oe=null),!(this instanceof Dt))return new Dt(a,b,oe);this.line=a,this.ch=b,this.sticky=oe}function Qt(a,b){return a.line-b.line||a.ch-b.ch}function tr(a,b){return a.sticky==b.sticky&&Qt(a,b)==0}function yr(a){return Dt(a.line,a.ch)}function jr(a,b){return Qt(a,b)<0?b:a}function or(a,b){return Qt(a,b)<0?a:b}function wr(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 oe=a.first+a.size-1;return b.line>oe?Dt(oe,Mt(a,oe).text.length):Rt(b,Mt(a,b.line).text.length)}function Rt(a,b){var oe=a.ch;return oe==null||oe>b?Dt(a.line,b):oe<0?Dt(a.line,0):a}function lr(a,b){for(var oe=[],ne=0;ne<b.length;ne++)oe[ne]=Gt(a,b[ne]);return oe}var ur=function(a,b){this.state=a,this.lookAhead=b},kr=function(a,b,oe,ne){this.state=b,this.doc=a,this.line=oe,this.maxLookAhead=ne||0,this.baseTokens=null,this.baseTokenPos=1};kr.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},kr.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}},kr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},kr.fromSaved=function(a,b,oe){return b instanceof ur?new kr(a,Mr(a.mode,b.state),oe,b.lookAhead):new kr(a,Mr(a.mode,b),oe)},kr.prototype.save=function(a){var b=a!==!1?Mr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ur(b,this.maxLookAhead):b};function Nr(a,b,oe,ne){var me=[a.state.modeGen],Fe={};yn(a,b.text,a.doc.mode,oe,function(bt,kt){return me.push(bt,kt)},Fe,ne);for(var qe=oe.state,dt=function(bt){oe.baseTokens=me;var kt=a.state.overlays[bt],_t=1,Ft=0;oe.state=!0,yn(a,b.text,kt.mode,oe,function(It,ir){for(var br=_t;Ft<It;){var Pr=me[_t];Pr>It&&me.splice(_t,1,It,me[_t+1],Pr),_t+=2,Ft=Math.min(It,Pr)}if(ir)if(kt.opaque)me.splice(br,_t-br,It,"overlay "+ir),_t=br+2;else for(;br<_t;br+=2){var Ur=me[br+1];me[br+1]=(Ur?Ur+" ":"")+"overlay "+ir}},Fe),oe.state=qe,oe.baseTokens=null,oe.baseTokenPos=1},pt=0;pt<a.state.overlays.length;++pt)dt(pt);return{styles:me,classes:Fe.bgClass||Fe.textClass?Fe:null}}function $r(a,b,oe){if(!b.styles||b.styles[0]!=a.state.modeGen){var ne=ln(a,At(b)),me=b.text.length>a.options.maxHighlightLength&&Mr(a.doc.mode,ne.state),Fe=Nr(a,b,ne);me&&(ne.state=me),b.stateAfter=ne.save(!me),b.styles=Fe.styles,Fe.classes?b.styleClasses=Fe.classes:b.styleClasses&&(b.styleClasses=null),oe===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function ln(a,b,oe){var ne=a.doc,me=a.display;if(!ne.mode.startState)return new kr(ne,!0,b);var Fe=Mn(a,b,oe),qe=Fe>ne.first&&Mt(ne,Fe-1).stateAfter,dt=qe?kr.fromSaved(ne,qe,Fe):new kr(ne,dr(ne.mode),Fe);return ne.iter(Fe,b,function(pt){Zr(a,pt.text,dt);var bt=dt.line;pt.stateAfter=bt==b-1||bt%5==0||bt>=me.viewFrom&&bt<me.viewTo?dt.save():null,dt.nextLine()}),oe&&(ne.modeFrontier=dt.line),dt}function Zr(a,b,oe,ne){var me=a.doc.mode,Fe=new er(b,a.options.tabSize,oe);for(Fe.start=Fe.pos=ne||0,b==""&&Sr(me,oe.state);!Fe.eol();)Gr(me,Fe,oe.state),Fe.start=Fe.pos}function Sr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var oe=Cr(a,b);if(oe.mode.blankLine)return oe.mode.blankLine(oe.state)}}function Gr(a,b,oe,ne){for(var me=0;me<10;me++){ne&&(ne[0]=Cr(a,oe).mode);var Fe=a.token(b,oe);if(b.pos>b.start)return Fe}throw new Error("Mode "+a.name+" failed to advance stream.")}var Ir=function(a,b,oe){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=oe};function fn(a,b,oe,ne){var me=a.doc,Fe=me.mode,qe;b=Gt(me,b);var dt=Mt(me,b.line),pt=ln(a,b.line,oe),bt=new er(dt.text,a.options.tabSize,pt),kt;for(ne&&(kt=[]);(ne||bt.pos<b.ch)&&!bt.eol();)bt.start=bt.pos,qe=Gr(Fe,bt,pt.state),ne&&kt.push(new Ir(bt,qe,Mr(me.mode,pt.state)));return ne?kt:new Ir(bt,qe,pt.state)}function _n(a,b){if(a)for(;;){var oe=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!oe)break;a=a.slice(0,oe.index)+a.slice(oe.index+oe[0].length);var ne=oe[1]?"bgClass":"textClass";b[ne]==null?b[ne]=oe[2]:new RegExp("(?:^|\\s)"+oe[2]+"(?:$|\\s)").test(b[ne])||(b[ne]+=" "+oe[2])}return a}function yn(a,b,oe,ne,me,Fe,qe){var dt=oe.flattenSpans;dt==null&&(dt=a.options.flattenSpans);var pt=0,bt=null,kt=new er(b,a.options.tabSize,ne),_t,Ft=a.options.addModeClass&&[null];for(b==""&&_n(Sr(oe,ne.state),Fe);!kt.eol();){if(kt.pos>a.options.maxHighlightLength?(dt=!1,qe&&Zr(a,b,ne,kt.pos),kt.pos=b.length,_t=null):_t=_n(Gr(oe,kt,ne.state,Ft),Fe),Ft){var It=Ft[0].name;It&&(_t="m-"+(_t?It+" "+_t:It))}if(!dt||bt!=_t){for(;pt<kt.start;)pt=Math.min(kt.start,pt+5e3),me(pt,bt);bt=_t}kt.start=kt.pos}for(;pt<kt.pos;){var ir=Math.min(kt.pos,pt+5e3);me(ir,bt),pt=ir}}function Mn(a,b,oe){for(var ne,me,Fe=a.doc,qe=oe?-1:b-(a.doc.mode.innerMode?1e3:100),dt=b;dt>qe;--dt){if(dt<=Fe.first)return Fe.first;var pt=Mt(Fe,dt-1),bt=pt.stateAfter;if(bt&&(!oe||dt+(bt instanceof ur?bt.lookAhead:0)<=Fe.modeFrontier))return dt;var kt=Re(pt.text,null,a.options.tabSize);(me==null||ne>kt)&&(me=dt-1,ne=kt)}return me}function On(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var oe=a.first,ne=b-1;ne>oe;ne--){var me=Mt(a,ne).stateAfter;if(me&&(!(me instanceof ur)||ne+me.lookAhead<b)){oe=ne+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,oe)}}var kn=!1,wn=!1;function Rn(){kn=!0}function mr(){wn=!0}function Rr(a,b,oe){this.marker=a,this.from=b,this.to=oe}function Qr(a,b){if(a)for(var oe=0;oe<a.length;++oe){var ne=a[oe];if(ne.marker==b)return ne}}function Yr(a,b){for(var oe,ne=0;ne<a.length;++ne)a[ne]!=b&&(oe||(oe=[])).push(a[ne]);return oe}function Jr(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function zr(a,b,oe){var ne;if(a)for(var me=0;me<a.length;++me){var Fe=a[me],qe=Fe.marker,dt=Fe.from==null||(qe.inclusiveLeft?Fe.from<=b:Fe.from<b);if(dt||Fe.from==b&&qe.type=="bookmark"&&(!oe||!Fe.marker.insertLeft)){var pt=Fe.to==null||(qe.inclusiveRight?Fe.to>=b:Fe.to>b);(ne||(ne=[])).push(new Rr(qe,Fe.from,pt?null:Fe.to))}}return ne}function Or(a,b,oe){var ne;if(a)for(var me=0;me<a.length;++me){var Fe=a[me],qe=Fe.marker,dt=Fe.to==null||(qe.inclusiveRight?Fe.to>=b:Fe.to>b);if(dt||Fe.from==b&&qe.type=="bookmark"&&(!oe||Fe.marker.insertLeft)){var pt=Fe.from==null||(qe.inclusiveLeft?Fe.from<=b:Fe.from<b);(ne||(ne=[])).push(new Rr(qe,pt?null:Fe.from-b,Fe.to==null?null:Fe.to-b))}}return ne}function un(a,b){if(b.full)return null;var oe=nr(a,b.from.line)&&Mt(a,b.from.line).markedSpans,ne=nr(a,b.to.line)&&Mt(a,b.to.line).markedSpans;if(!oe&&!ne)return null;var me=b.from.ch,Fe=b.to.ch,qe=Qt(b.from,b.to)==0,dt=zr(oe,me,qe),pt=Or(ne,Fe,qe),bt=b.text.length==1,kt=st(b.text).length+(bt?me:0);if(dt)for(var _t=0;_t<dt.length;++_t){var Ft=dt[_t];if(Ft.to==null){var It=Qr(pt,Ft.marker);It?bt&&(Ft.to=It.to==null?null:It.to+kt):Ft.to=me}}if(pt)for(var ir=0;ir<pt.length;++ir){var br=pt[ir];if(br.to!=null&&(br.to+=kt),br.from==null){var Pr=Qr(dt,br.marker);Pr||(br.from=kt,bt&&(dt||(dt=[])).push(br))}else br.from+=kt,bt&&(dt||(dt=[])).push(br)}dt&&(dt=xn(dt)),pt&&pt!=dt&&(pt=xn(pt));var Ur=[dt];if(!bt){var Vr=b.text.length-2,Hr;if(Vr>0&&dt)for(var Xr=0;Xr<dt.length;++Xr)dt[Xr].to==null&&(Hr||(Hr=[])).push(new Rr(dt[Xr].marker,null,null));for(var sn=0;sn<Vr;++sn)Ur.push(Hr);Ur.push(pt)}return Ur}function xn(a){for(var b=0;b<a.length;++b){var oe=a[b];oe.from!=null&&oe.from==oe.to&&oe.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Bn(a,b,oe){var ne=null;if(a.iter(b.line,oe.line+1,function(It){if(It.markedSpans)for(var ir=0;ir<It.markedSpans.length;++ir){var br=It.markedSpans[ir].marker;br.readOnly&&(!ne||rt(ne,br)==-1)&&(ne||(ne=[])).push(br)}}),!ne)return null;for(var me=[{from:b,to:oe}],Fe=0;Fe<ne.length;++Fe)for(var qe=ne[Fe],dt=qe.find(0),pt=0;pt<me.length;++pt){var bt=me[pt];if(!(Qt(bt.to,dt.from)<0||Qt(bt.from,dt.to)>0)){var kt=[pt,1],_t=Qt(bt.from,dt.from),Ft=Qt(bt.to,dt.to);(_t<0||!qe.inclusiveLeft&&!_t)&&kt.push({from:bt.from,to:dt.from}),(Ft>0||!qe.inclusiveRight&&!Ft)&&kt.push({from:dt.to,to:bt.to}),me.splice.apply(me,kt),pt+=kt.length-3}}return me}function en(a){var b=a.markedSpans;if(b){for(var oe=0;oe<b.length;++oe)b[oe].marker.detachLine(a);a.markedSpans=null}}function mn(a,b){if(b){for(var oe=0;oe<b.length;++oe)b[oe].marker.attachLine(a);a.markedSpans=b}}function bn(a){return a.inclusiveLeft?-1:0}function hn(a){return a.inclusiveRight?1:0}function qr(a,b){var oe=a.lines.length-b.lines.length;if(oe!=0)return oe;var ne=a.find(),me=b.find(),Fe=Qt(ne.from,me.from)||bn(a)-bn(b);if(Fe)return-Fe;var qe=Qt(ne.to,me.to)||hn(a)-hn(b);return qe||b.id-a.id}function Sn(a,b){var oe=wn&&a.markedSpans,ne;if(oe)for(var me=void 0,Fe=0;Fe<oe.length;++Fe)me=oe[Fe],me.marker.collapsed&&(b?me.from:me.to)==null&&(!ne||qr(ne,me.marker)<0)&&(ne=me.marker);return ne}function on(a){return Sn(a,!0)}function hr(a){return Sn(a,!1)}function Ar(a,b){var oe=wn&&a.markedSpans,ne;if(oe)for(var me=0;me<oe.length;++me){var Fe=oe[me];Fe.marker.collapsed&&(Fe.from==null||Fe.from<b)&&(Fe.to==null||Fe.to>b)&&(!ne||qr(ne,Fe.marker)<0)&&(ne=Fe.marker)}return ne}function Kr(a,b,oe,ne,me){var Fe=Mt(a,b),qe=wn&&Fe.markedSpans;if(qe)for(var dt=0;dt<qe.length;++dt){var pt=qe[dt];if(pt.marker.collapsed){var bt=pt.marker.find(0),kt=Qt(bt.from,oe)||bn(pt.marker)-bn(me),_t=Qt(bt.to,ne)||hn(pt.marker)-hn(me);if(!(kt>=0&&_t<=0||kt<=0&&_t>=0)&&(kt<=0&&(pt.marker.inclusiveRight&&me.inclusiveLeft?Qt(bt.to,oe)>=0:Qt(bt.to,oe)>0)||kt>=0&&(pt.marker.inclusiveRight&&me.inclusiveLeft?Qt(bt.from,ne)<=0:Qt(bt.from,ne)<0)))return!0}}}function Br(a){for(var b;b=on(a);)a=b.find(-1,!0).line;return a}function rn(a){for(var b;b=hr(a);)a=b.find(1,!0).line;return a}function Cn(a){for(var b,oe;b=hr(a);)a=b.find(1,!0).line,(oe||(oe=[])).push(a);return oe}function _r(a,b){var oe=Mt(a,b),ne=Br(oe);return oe==ne?b:At(ne)}function vr(a,b){if(b>a.lastLine())return b;var oe=Mt(a,b),ne;if(!Fr(a,oe))return b;for(;ne=hr(oe);)oe=ne.find(1,!0).line;return At(oe)+1}function Fr(a,b){var oe=wn&&b.markedSpans;if(oe){for(var ne=void 0,me=0;me<oe.length;++me)if(ne=oe[me],!!ne.marker.collapsed){if(ne.from==null)return!0;if(!ne.marker.widgetNode&&ne.from==0&&ne.marker.inclusiveLeft&&Wr(a,b,ne))return!0}}}function Wr(a,b,oe){if(oe.to==null){var ne=oe.marker.find(1,!0);return Wr(a,ne.line,Qr(ne.line.markedSpans,oe.marker))}if(oe.marker.inclusiveRight&&oe.to==b.text.length)return!0;for(var me=void 0,Fe=0;Fe<b.markedSpans.length;++Fe)if(me=b.markedSpans[Fe],me.marker.collapsed&&!me.marker.widgetNode&&me.from==oe.to&&(me.to==null||me.to!=oe.from)&&(me.marker.inclusiveLeft||oe.marker.inclusiveRight)&&Wr(a,b,me))return!0}function nn(a){a=Br(a);for(var b=0,oe=a.parent,ne=0;ne<oe.lines.length;++ne){var me=oe.lines[ne];if(me==a)break;b+=me.height}for(var Fe=oe.parent;Fe;oe=Fe,Fe=oe.parent)for(var qe=0;qe<Fe.children.length;++qe){var dt=Fe.children[qe];if(dt==oe)break;b+=dt.height}return b}function Tn(a){if(a.height==0)return 0;for(var b=a.text.length,oe,ne=a;oe=on(ne);){var me=oe.find(0,!0);ne=me.from.line,b+=me.from.ch-me.to.ch}for(ne=a;oe=hr(ne);){var Fe=oe.find(0,!0);b-=ne.text.length-Fe.from.ch,ne=Fe.to.line,b+=ne.text.length-Fe.to.ch}return b}function vn(a){var b=a.display,oe=a.doc;b.maxLine=Mt(oe,oe.first),b.maxLineLength=Tn(b.maxLine),b.maxLineChanged=!0,oe.iter(function(ne){var me=Tn(ne);me>b.maxLineLength&&(b.maxLineLength=me,b.maxLine=ne)})}var jn=function(a,b,oe){this.text=a,mn(this,b),this.height=oe?oe(this):1};jn.prototype.lineNo=function(){return At(this)},Ct(jn);function An(a,b,oe,ne){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),en(a),mn(a,oe);var me=ne?ne(a):1;me!=a.height&&Lr(a,me)}function In(a){a.parent=null,en(a)}var Hn={},Fn={};function Wn(a,b){if(!a||/^\s*$/.test(a))return null;var oe=b.addModeClass?Fn:Hn;return oe[a]||(oe[a]=a.replace(/\S+/g,"cm-$&"))}function Vn(a,b){var oe=Ee("span",null,null,E?"padding-right: .1px":null),ne={pre:Ee("pre",[oe],"CodeMirror-line"),content:oe,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var me=0;me<=(b.rest?b.rest.length:0);me++){var Fe=me?b.rest[me-1]:b.line,qe=void 0;ne.pos=0,ne.addToken=Bi,Jt(a.display.measure)&&(qe=et(Fe,a.doc.direction))&&(ne.addToken=mi(ne.addToken,qe)),ne.map=[];var dt=b!=a.display.externalMeasured&&At(Fe);Pn(Fe,ne,$r(a,Fe,dt)),Fe.styleClasses&&(Fe.styleClasses.bgClass&&(ne.bgClass=Ze(Fe.styleClasses.bgClass,ne.bgClass||"")),Fe.styleClasses.textClass&&(ne.textClass=Ze(Fe.styleClasses.textClass,ne.textClass||""))),ne.map.length==0&&ne.map.push(0,0,ne.content.appendChild(ar(a.display.measure))),me==0?(b.measure.map=ne.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(ne.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(E){var pt=ne.content.lastChild;(/\bcm-tab\b/.test(pt.className)||pt.querySelector&&pt.querySelector(".cm-tab"))&&(ne.content.className="cm-tab-wrap-hack")}return gt(a,"renderLine",a,b.line,ne.pre),ne.pre.className&&(ne.textClass=Ze(ne.pre.className,ne.textClass||"")),ne}function Ti(a){var b=be("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function Bi(a,b,oe,ne,me,Fe,qe){if(b){var dt=a.splitSpaces?wi(b,a.trailingSpace):b,pt=a.cm.state.specialChars,bt=!1,kt;if(!pt.test(b))a.col+=b.length,kt=document.createTextNode(dt),a.map.push(a.pos,a.pos+b.length,kt),ge&&ee<9&&(bt=!0),a.pos+=b.length;else{kt=document.createDocumentFragment();for(var _t=0;;){pt.lastIndex=_t;var Ft=pt.exec(b),It=Ft?Ft.index-_t:b.length-_t;if(It){var ir=document.createTextNode(dt.slice(_t,_t+It));ge&&ee<9?kt.appendChild(be("span",[ir])):kt.appendChild(ir),a.map.push(a.pos,a.pos+It,ir),a.col+=It,a.pos+=It}if(!Ft)break;_t+=It+1;var br=void 0;if(Ft[0]==" "){var Pr=a.cm.options.tabSize,Ur=Pr-a.col%Pr;br=kt.appendChild(be("span",ut(Ur),"cm-tab")),br.setAttribute("role","presentation"),br.setAttribute("cm-text"," "),a.col+=Ur}else Ft[0]=="\r"||Ft[0]==`
`?(br=kt.appendChild(be("span",Ft[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),br.setAttribute("cm-text",Ft[0]),a.col+=1):(br=a.cm.options.specialCharPlaceholder(Ft[0]),br.setAttribute("cm-text",Ft[0]),ge&&ee<9?kt.appendChild(be("span",[br])):kt.appendChild(br),a.col+=1);a.map.push(a.pos,a.pos+1,br),a.pos++}}if(a.trailingSpace=dt.charCodeAt(b.length-1)==32,oe||ne||me||bt||Fe||qe){var Vr=oe||"";ne&&(Vr+=ne),me&&(Vr+=me);var Hr=be("span",[kt],Vr,Fe);if(qe)for(var Xr in qe)qe.hasOwnProperty(Xr)&&Xr!="style"&&Xr!="class"&&Hr.setAttribute(Xr,qe[Xr]);return a.content.appendChild(Hr)}a.content.appendChild(kt)}}function wi(a,b){if(a.length>1&&!/ /.test(a))return a;for(var oe=b,ne="",me=0;me<a.length;me++){var Fe=a.charAt(me);Fe==" "&&oe&&(me==a.length-1||a.charCodeAt(me+1)==32)&&(Fe="\xA0"),ne+=Fe,oe=Fe==" "}return ne}function mi(a,b){return function(oe,ne,me,Fe,qe,dt,pt){me=me?me+" cm-force-border":"cm-force-border";for(var bt=oe.pos,kt=bt+ne.length;;){for(var _t=void 0,Ft=0;Ft<b.length&&(_t=b[Ft],!(_t.to>bt&&_t.from<=bt));Ft++);if(_t.to>=kt)return a(oe,ne,me,Fe,qe,dt,pt);a(oe,ne.slice(0,_t.to-bt),me,Fe,null,dt,pt),Fe=null,ne=ne.slice(_t.to-bt),bt=_t.to}}}function Yi(a,b,oe,ne){var me=!ne&&oe.widgetNode;me&&a.map.push(a.pos,a.pos+b,me),!ne&&a.cm.display.input.needsContentAttribute&&(me||(me=a.content.appendChild(document.createElement("span"))),me.setAttribute("cm-marker",oe.id)),me&&(a.cm.display.input.setUneditable(me),a.content.appendChild(me)),a.pos+=b,a.trailingSpace=!1}function Pn(a,b,oe){var ne=a.markedSpans,me=a.text,Fe=0;if(!ne){for(var qe=1;qe<oe.length;qe+=2)b.addToken(b,me.slice(Fe,Fe=oe[qe]),Wn(oe[qe+1],b.cm.options));return}for(var dt=me.length,pt=0,bt=1,kt="",_t,Ft,It=0,ir,br,Pr,Ur,Vr;;){if(It==pt){ir=br=Pr=Ft="",Vr=null,Ur=null,It=1/0;for(var Hr=[],Xr=void 0,sn=0;sn<ne.length;++sn){var tn=ne[sn],En=tn.marker;if(En.type=="bookmark"&&tn.from==pt&&En.widgetNode)Hr.push(En);else if(tn.from<=pt&&(tn.to==null||tn.to>pt||En.collapsed&&tn.to==pt&&tn.from==pt)){if(tn.to!=null&&tn.to!=pt&&It>tn.to&&(It=tn.to,br=""),En.className&&(ir+=" "+En.className),En.css&&(Ft=(Ft?Ft+";":"")+En.css),En.startStyle&&tn.from==pt&&(Pr+=" "+En.startStyle),En.endStyle&&tn.to==It&&(Xr||(Xr=[])).push(En.endStyle,tn.to),En.title&&((Vr||(Vr={})).title=En.title),En.attributes)for(var zn in En.attributes)(Vr||(Vr={}))[zn]=En.attributes[zn];En.collapsed&&(!Ur||qr(Ur.marker,En)<0)&&(Ur=tn)}else tn.from>pt&&It>tn.from&&(It=tn.from)}if(Xr)for(var si=0;si<Xr.length;si+=2)Xr[si+1]==It&&(br+=" "+Xr[si]);if(!Ur||Ur.from==pt)for(var Xn=0;Xn<Hr.length;++Xn)Yi(b,0,Hr[Xn]);if(Ur&&(Ur.from||0)==pt){if(Yi(b,(Ur.to==null?dt+1:Ur.to)-pt,Ur.marker,Ur.from==null),Ur.to==null)return;Ur.to==pt&&(Ur=!1)}}if(pt>=dt)break;for(var Pi=Math.min(dt,It);;){if(kt){var Ci=pt+kt.length;if(!Ur){var ei=Ci>Pi?kt.slice(0,Pi-pt):kt;b.addToken(b,ei,_t?_t+ir:ir,Pr,pt+ei.length==It?br:"",Ft,Vr)}if(Ci>=Pi){kt=kt.slice(Pi-pt),pt=Pi;break}pt=Ci,Pr=""}kt=me.slice(Fe,Fe=oe[bt++]),_t=Wn(oe[bt++],b.cm.options)}}}function ta(a,b,oe){this.line=b,this.rest=Cn(b),this.size=this.rest?At(st(this.rest))-oe+1:1,this.node=this.text=null,this.hidden=Fr(a,b)}function ri(a,b,oe){for(var ne=[],me,Fe=b;Fe<oe;Fe=me){var qe=new ta(a.doc,Mt(a.doc,Fe),Fe);me=Fe+qe.size,ne.push(qe)}return ne}var Mi=null;function oa(a){Mi?Mi.ops.push(a):a.ownsGroup=Mi={ops:[a],delayedCallbacks:[]}}function Ji(a){var b=a.delayedCallbacks,oe=0;do{for(;oe<b.length;oe++)b[oe].call(null);for(var ne=0;ne<a.ops.length;ne++){var me=a.ops[ne];if(me.cursorActivityHandlers)for(;me.cursorActivityCalled<me.cursorActivityHandlers.length;)me.cursorActivityHandlers[me.cursorActivityCalled++].call(null,me.cm)}}while(oe<b.length)}function vi(a,b){var oe=a.ownsGroup;if(oe)try{Ji(oe)}finally{Mi=null,b(oe)}}var Ri=null;function Gn(a,b){var oe=wt(a,b);if(oe.length){var ne=Array.prototype.slice.call(arguments,2),me;Mi?me=Mi.delayedCallbacks:Ri?me=Ri:(me=Ri=[],setTimeout(Fi,0));for(var Fe=function(dt){me.push(function(){return oe[dt].apply(null,ne)})},qe=0;qe<oe.length;++qe)Fe(qe)}}function Fi(){var a=Ri;Ri=null;for(var b=0;b<a.length;++b)a[b]()}function sa(a,b,oe,ne){for(var me=0;me<b.changes.length;me++){var Fe=b.changes[me];Fe=="text"?la(a,b):Fe=="gutter"?pn(a,b,oe,ne):Fe=="class"?an(a,b):Fe=="widget"&&cn(a,b,ne)}b.changes=null}function Hi(a){return a.node==a.text&&(a.node=be("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ge&&ee<8&&(a.node.style.zIndex=2)),a.node}function qn(a,b){var oe=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(oe&&(oe+=" CodeMirror-linebackground"),b.background)oe?b.background.className=oe:(b.background.parentNode.removeChild(b.background),b.background=null);else if(oe){var ne=Hi(b);b.background=ne.insertBefore(be("div",null,oe),ne.firstChild),a.display.input.setUneditable(b.background)}}function ba(a,b){var oe=a.display.externalMeasured;return oe&&oe.line==b.line?(a.display.externalMeasured=null,b.measure=oe.measure,oe.built):Vn(a,b)}function la(a,b){var oe=b.text.className,ne=ba(a,b);b.text==b.node&&(b.node=ne.pre),b.text.parentNode.replaceChild(ne.pre,b.text),b.text=ne.pre,ne.bgClass!=b.bgClass||ne.textClass!=b.textClass?(b.bgClass=ne.bgClass,b.textClass=ne.textClass,an(a,b)):oe&&(b.text.className=oe)}function an(a,b){qn(a,b),b.line.wrapClass?Hi(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var oe=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=oe||""}function pn(a,b,oe,ne){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 me=Hi(b);b.gutterBackground=be("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px; width: "+ne.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),me.insertBefore(b.gutterBackground,b.text)}var Fe=b.line.gutterMarkers;if(a.options.lineNumbers||Fe){var qe=Hi(b),dt=b.gutter=be("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?ne.fixedPos:-ne.gutterTotalWidth)+"px");if(a.display.input.setUneditable(dt),qe.insertBefore(dt,b.text),b.line.gutterClass&&(dt.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!Fe||!Fe["CodeMirror-linenumbers"])&&(b.lineNumber=dt.appendChild(be("div",Kt(a.options,oe),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ne.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Fe)for(var pt=0;pt<a.display.gutterSpecs.length;++pt){var bt=a.display.gutterSpecs[pt].className,kt=Fe.hasOwnProperty(bt)&&Fe[bt];kt&&dt.appendChild(be("div",[kt],"CodeMirror-gutter-elt","left: "+ne.gutterLeft[bt]+"px; width: "+ne.gutterWidth[bt]+"px"))}}}function cn(a,b,oe){b.alignable&&(b.alignable=null);for(var ne=ke("CodeMirror-linewidget"),me=b.node.firstChild,Fe=void 0;me;me=Fe)Fe=me.nextSibling,ne.test(me.className)&&b.node.removeChild(me);Nn(a,b,oe)}function dn(a,b,oe,ne){var me=ba(a,b);return b.text=b.node=me.pre,me.bgClass&&(b.bgClass=me.bgClass),me.textClass&&(b.textClass=me.textClass),an(a,b),pn(a,b,oe,ne),Nn(a,b,ne),b.node}function Nn(a,b,oe){if(Zn(a,b.line,b,oe,!0),b.rest)for(var ne=0;ne<b.rest.length;ne++)Zn(a,b.rest[ne],b,oe,!1)}function Zn(a,b,oe,ne,me){if(b.widgets)for(var Fe=Hi(oe),qe=0,dt=b.widgets;qe<dt.length;++qe){var pt=dt[qe],bt=be("div",[pt.node],"CodeMirror-linewidget"+(pt.className?" "+pt.className:""));pt.handleMouseEvents||bt.setAttribute("cm-ignore-events","true"),Zi(pt,bt,oe,ne),a.display.input.setUneditable(bt),me&&pt.above?Fe.insertBefore(bt,oe.gutter||oe.text):Fe.appendChild(bt),Gn(pt,"redraw")}}function Zi(a,b,oe,ne){if(a.noHScroll){(oe.alignable||(oe.alignable=[])).push(b);var me=ne.wrapperWidth;b.style.left=ne.fixedPos+"px",a.coverGutter||(me-=ne.gutterTotalWidth,b.style.paddingLeft=ne.gutterTotalWidth+"px"),b.style.width=me+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-ne.gutterTotalWidth+"px"))}function gi(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Me(document.body,a.node)){var oe="position: relative;";a.coverGutter&&(oe+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(oe+="width: "+b.display.wrapper.clientWidth+"px;"),ve(b.display.measure,be("div",[a.node],null,oe))}return a.height=a.node.parentNode.offsetHeight}function ui(a,b){for(var oe=xr(b);oe!=a.wrapper;oe=oe.parentNode)if(!oe||oe.nodeType==1&&oe.getAttribute("cm-ignore-events")=="true"||oe.parentNode==a.sizer&&oe!=a.mover)return!0}function Jn(a){return a.lineSpace.offsetTop}function Li(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Qi(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=ve(a.measure,be("pre","x","CodeMirror-line-like")),oe=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,ne={left:parseInt(oe.paddingLeft),right:parseInt(oe.paddingRight)};return!isNaN(ne.left)&&!isNaN(ne.right)&&(a.cachedPaddingH=ne),ne}function _i(a){return ot-a.display.nativeBarWidth}function $i(a){return a.display.scroller.clientWidth-_i(a)-a.display.barWidth}function ra(a){return a.display.scroller.clientHeight-_i(a)-a.display.barHeight}function zi(a,b,oe){var ne=a.options.lineWrapping,me=ne&&$i(a);if(!b.measure.heights||ne&&b.measure.width!=me){var Fe=b.measure.heights=[];if(ne){b.measure.width=me;for(var qe=b.text.firstChild.getClientRects(),dt=0;dt<qe.length-1;dt++){var pt=qe[dt],bt=qe[dt+1];Math.abs(pt.bottom-bt.bottom)>2&&Fe.push((pt.bottom+bt.top)/2-oe.top)}}Fe.push(oe.bottom-oe.top)}}function Da(a,b,oe){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var ne=0;ne<a.rest.length;ne++)if(a.rest[ne]==b)return{map:a.measure.maps[ne],cache:a.measure.caches[ne]};for(var me=0;me<a.rest.length;me++)if(At(a.rest[me])>oe)return{map:a.measure.maps[me],cache:a.measure.caches[me],before:!0}}function zo(a,b){b=Br(b);var oe=At(b),ne=a.display.externalMeasured=new ta(a.doc,b,oe);ne.lineN=oe;var me=ne.built=Vn(a,ne);return ne.text=me.pre,ve(a.display.lineMeasure,me.pre),ne}function yo(a,b,oe,ne){return Wi(a,ua(a,b),oe,ne)}function qi(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Sa(a,b)];var oe=a.display.externalMeasured;if(oe&&b>=oe.lineN&&b<oe.lineN+oe.size)return oe}function ua(a,b){var oe=At(b),ne=qi(a,oe);ne&&!ne.text?ne=null:ne&&ne.changes&&(sa(a,ne,oe,ca(a)),a.curOp.forceUpdate=!0),ne||(ne=zo(a,b));var me=Da(ne,b,oe);return{line:b,view:ne,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function Wi(a,b,oe,ne,me){b.before&&(oe=-1);var Fe=oe+(ne||""),qe;return b.cache.hasOwnProperty(Fe)?qe=b.cache[Fe]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(zi(a,b.view,b.rect),b.hasHeights=!0),qe=xo(a,b,oe,ne),qe.bogus||(b.cache[Fe]=qe)),{left:qe.left,right:qe.right,top:me?qe.rtop:qe.top,bottom:me?qe.rbottom:qe.bottom}}var bo={left:0,right:0,top:0,bottom:0};function wo(a,b,oe){for(var ne,me,Fe,qe,dt,pt,bt=0;bt<a.length;bt+=3)if(dt=a[bt],pt=a[bt+1],b<dt?(me=0,Fe=1,qe="left"):b<pt?(me=b-dt,Fe=me+1):(bt==a.length-3||b==pt&&a[bt+3]>b)&&(Fe=pt-dt,me=Fe-1,b>=pt&&(qe="right")),me!=null){if(ne=a[bt+2],dt==pt&&oe==(ne.insertLeft?"left":"right")&&(qe=oe),oe=="left"&&me==0)for(;bt&&a[bt-2]==a[bt-3]&&a[bt-1].insertLeft;)ne=a[(bt-=3)+2],qe="left";if(oe=="right"&&me==pt-dt)for(;bt<a.length-3&&a[bt+3]==a[bt+4]&&!a[bt+5].insertLeft;)ne=a[(bt+=3)+2],qe="right";break}return{node:ne,start:me,end:Fe,collapse:qe,coverStart:dt,coverEnd:pt}}function Go(a,b){var oe=bo;if(b=="left")for(var ne=0;ne<a.length&&(oe=a[ne]).left==oe.right;ne++);else for(var me=a.length-1;me>=0&&(oe=a[me]).left==oe.right;me--);return oe}function xo(a,b,oe,ne){var me=wo(b.map,oe,ne),Fe=me.node,qe=me.start,dt=me.end,pt=me.collapse,bt;if(Fe.nodeType==3){for(var kt=0;kt<4;kt++){for(;qe&&Pe(b.line.text.charAt(me.coverStart+qe));)--qe;for(;me.coverStart+dt<me.coverEnd&&Pe(b.line.text.charAt(me.coverStart+dt));)++dt;if(ge&&ee<9&&qe==0&&dt==me.coverEnd-me.coverStart?bt=Fe.parentNode.getBoundingClientRect():bt=Go(Oe(Fe,qe,dt).getClientRects(),ne),bt.left||bt.right||qe==0)break;dt=qe,qe=qe-1,pt="right"}ge&&ee<11&&(bt=Ko(a.display.measure,bt))}else{qe>0&&(pt=ne="right");var _t;a.options.lineWrapping&&(_t=Fe.getClientRects()).length>1?bt=_t[ne=="right"?_t.length-1:0]:bt=Fe.getBoundingClientRect()}if(ge&&ee<9&&!qe&&(!bt||!bt.left&&!bt.right)){var Ft=Fe.parentNode.getClientRects()[0];Ft?bt={left:Ft.left,right:Ft.left+Ki(a.display),top:Ft.top,bottom:Ft.bottom}:bt=bo}for(var It=bt.top-b.rect.top,ir=bt.bottom-b.rect.top,br=(It+ir)/2,Pr=b.view.measure.heights,Ur=0;Ur<Pr.length-1&&!(br<Pr[Ur]);Ur++);var Vr=Ur?Pr[Ur-1]:0,Hr=Pr[Ur],Xr={left:(pt=="right"?bt.right:bt.left)-b.rect.left,right:(pt=="left"?bt.left:bt.right)-b.rect.left,top:Vr,bottom:Hr};return!bt.left&&!bt.right&&(Xr.bogus=!0),a.options.singleCursorHeightPerLine||(Xr.rtop=It,Xr.rbottom=ir),Xr}function Ko(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Zt(a))return b;var oe=screen.logicalXDPI/screen.deviceXDPI,ne=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*oe,right:b.right*oe,top:b.top*ne,bottom:b.bottom*ne}}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,Ae(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Ka(a.display.view[b])}function wa(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 le&&ae?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function So(){return le&&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 oe=0;oe<a.widgets.length;++oe)a.widgets[oe].above&&(b+=gi(a.widgets[oe]));return b}function Oa(a,b,oe,ne,me){if(!me){var Fe=Ya(b);oe.top+=Fe,oe.bottom+=Fe}if(ne=="line")return oe;ne||(ne="local");var qe=nn(b);if(ne=="local"?qe+=Jn(a.display):qe-=a.display.viewOffset,ne=="page"||ne=="window"){var dt=a.display.lineSpace.getBoundingClientRect();qe+=dt.top+(ne=="window"?0:So());var pt=dt.left+(ne=="window"?0:Xa());oe.left+=pt,oe.right+=pt}return oe.top+=qe,oe.bottom+=qe,oe}function Eo(a,b,oe){if(oe=="div")return b;var ne=b.left,me=b.top;if(oe=="page")ne-=Xa(),me-=So();else if(oe=="local"||!oe){var Fe=a.display.sizer.getBoundingClientRect();ne+=Fe.left,me+=Fe.top}var qe=a.display.lineSpace.getBoundingClientRect();return{left:ne-qe.left,top:me-qe.top}}function ja(a,b,oe,ne,me){return ne||(ne=Mt(a.doc,b.line)),Oa(a,ne,yo(a,ne,b.ch,me),oe)}function xi(a,b,oe,ne,me,Fe){ne=ne||Mt(a.doc,b.line),me||(me=ua(a,ne));function qe(ir,br){var Pr=Wi(a,me,ir,br?"right":"left",Fe);return br?Pr.left=Pr.right:Pr.right=Pr.left,Oa(a,ne,Pr,oe)}var dt=et(ne,a.doc.direction),pt=b.ch,bt=b.sticky;if(pt>=ne.text.length?(pt=ne.text.length,bt="before"):pt<=0&&(pt=0,bt="after"),!dt)return qe(bt=="before"?pt-1:pt,bt=="before");function kt(ir,br,Pr){var Ur=dt[br],Vr=Ur.level==1;return qe(Pr?ir-1:ir,Vr!=Pr)}var _t=ye(dt,pt,bt),Ft=xe,It=kt(pt,_t,bt=="before");return Ft!=null&&(It.other=kt(pt,Ft,bt!="before")),It}function Dn(a,b){var oe=0;b=Gt(a.doc,b),a.options.lineWrapping||(oe=Ki(a.display)*b.ch);var ne=Mt(a.doc,b.line),me=nn(ne)+Jn(a.display);return{left:oe,right:oe,top:me,bottom:me+ne.height}}function gn(a,b,oe,ne,me){var Fe=Dt(a,b,oe);return Fe.xRel=me,ne&&(Fe.outside=ne),Fe}function ci(a,b,oe){var ne=a.doc;if(oe+=a.display.viewOffset,oe<0)return gn(ne.first,0,null,-1,-1);var me=Tt(ne,oe),Fe=ne.first+ne.size-1;if(me>Fe)return gn(ne.first+ne.size-1,Mt(ne,Fe).text.length,null,1,1);b<0&&(b=0);for(var qe=Mt(ne,me);;){var dt=Gi(a,qe,me,b,oe),pt=Ar(qe,dt.ch+(dt.xRel>0||dt.outside>0?1:0));if(!pt)return dt;var bt=pt.find(1);if(bt.line==me)return bt;qe=Mt(ne,me=bt.line)}}function di(a,b,oe,ne){ne-=Ya(b);var me=b.text.length,Fe=it(function(qe){return Wi(a,oe,qe-1).bottom<=ne},me,0);return me=it(function(qe){return Wi(a,oe,qe).top>ne},Fe,me),{begin:Fe,end:me}}function Qn(a,b,oe,ne){oe||(oe=ua(a,b));var me=Oa(a,b,Wi(a,oe,ne),"line").top;return di(a,b,oe,me)}function ni(a,b,oe,ne){return a.bottom<=oe?!1:a.top>oe?!0:(ne?a.left:a.right)>b}function Gi(a,b,oe,ne,me){me-=nn(b);var Fe=ua(a,b),qe=Ya(b),dt=0,pt=b.text.length,bt=!0,kt=et(b,a.doc.direction);if(kt){var _t=(a.options.lineWrapping?na:Ui)(a,b,oe,Fe,kt,ne,me);bt=_t.level!=1,dt=bt?_t.from:_t.to-1,pt=bt?_t.to:_t.from-1}var Ft=null,It=null,ir=it(function(sn){var tn=Wi(a,Fe,sn);return tn.top+=qe,tn.bottom+=qe,ni(tn,ne,me,!1)?(tn.top<=me&&tn.left<=ne&&(Ft=sn,It=tn),!0):!1},dt,pt),br,Pr,Ur=!1;if(It){var Vr=ne-It.left<It.right-ne,Hr=Vr==bt;ir=Ft+(Hr?0:1),Pr=Hr?"after":"before",br=Vr?It.left:It.right}else{!bt&&(ir==pt||ir==dt)&&ir++,Pr=ir==0?"after":ir==b.text.length?"before":Wi(a,Fe,ir-(bt?1:0)).bottom+qe<=me==bt?"after":"before";var Xr=xi(a,Dt(oe,ir,Pr),"line",b,Fe);br=Xr.left,Ur=me<Xr.top?-1:me>=Xr.bottom?1:0}return ir=He(b.text,ir,1),gn(oe,ir,Pr,Ur,ne-br)}function Ui(a,b,oe,ne,me,Fe,qe){var dt=it(function(_t){var Ft=me[_t],It=Ft.level!=1;return ni(xi(a,Dt(oe,It?Ft.to:Ft.from,It?"before":"after"),"line",b,ne),Fe,qe,!0)},0,me.length-1),pt=me[dt];if(dt>0){var bt=pt.level!=1,kt=xi(a,Dt(oe,bt?pt.from:pt.to,bt?"after":"before"),"line",b,ne);ni(kt,Fe,qe,!0)&&kt.top>qe&&(pt=me[dt-1])}return pt}function na(a,b,oe,ne,me,Fe,qe){var dt=di(a,b,ne,qe),pt=dt.begin,bt=dt.end;/\s/.test(b.text.charAt(bt-1))&&bt--;for(var kt=null,_t=null,Ft=0;Ft<me.length;Ft++){var It=me[Ft];if(!(It.from>=bt||It.to<=pt)){var ir=It.level!=1,br=Wi(a,ne,ir?Math.min(bt,It.to)-1:Math.max(pt,It.from)).right,Pr=br<Fe?Fe-br+1e9:br-Fe;(!kt||_t>Pr)&&(kt=It,_t=Pr)}}return kt||(kt=me[me.length-1]),kt.from<pt&&(kt={from:pt,to:kt.to,level:kt.level}),kt.to>bt&&(kt={from:kt.from,to:bt,level:kt.level}),kt}var Di;function Oi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Di==null){Di=be("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)Di.appendChild(document.createTextNode("x")),Di.appendChild(be("br"));Di.appendChild(document.createTextNode("x"))}ve(a.measure,Di);var oe=Di.offsetHeight/50;return oe>3&&(a.cachedTextHeight=oe),Ae(a.measure),oe||1}function Ki(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=be("span","xxxxxxxxxx"),oe=be("pre",[b],"CodeMirror-line-like");ve(a.measure,oe);var ne=b.getBoundingClientRect(),me=(ne.right-ne.left)/10;return me>2&&(a.cachedCharWidth=me),me||10}function ca(a){for(var b=a.display,oe={},ne={},me=b.gutters.clientLeft,Fe=b.gutters.firstChild,qe=0;Fe;Fe=Fe.nextSibling,++qe){var dt=a.display.gutterSpecs[qe].className;oe[dt]=Fe.offsetLeft+Fe.clientLeft+me,ne[dt]=Fe.clientWidth}return{fixedPos:Vo(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:oe,gutterWidth:ne,wrapperWidth:b.wrapper.clientWidth}}function Vo(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function xs(a){var b=Oi(a.display),oe=a.options.lineWrapping,ne=oe&&Math.max(5,a.display.scroller.clientWidth/Ki(a.display)-3);return function(me){if(Fr(a.doc,me))return 0;var Fe=0;if(me.widgets)for(var qe=0;qe<me.widgets.length;qe++)me.widgets[qe].height&&(Fe+=me.widgets[qe].height);return oe?Fe+(Math.ceil(me.text.length/ne)||1)*b:Fe+b}}function Xo(a){var b=a.doc,oe=xs(a);b.iter(function(ne){var me=oe(ne);me!=ne.height&&Lr(ne,me)})}function xa(a,b,oe,ne){var me=a.display;if(!oe&&xr(b).getAttribute("cm-not-content")=="true")return null;var Fe,qe,dt=me.lineSpace.getBoundingClientRect();try{Fe=b.clientX-dt.left,qe=b.clientY-dt.top}catch(_t){return null}var pt=ci(a,Fe,qe),bt;if(ne&&pt.xRel>0&&(bt=Mt(a.doc,pt.line).text).length==pt.ch){var kt=Re(bt,bt.length,a.options.tabSize)-bt.length;pt=Dt(pt.line,Math.max(0,Math.round((Fe-Qi(a.display).left)/Ki(a.display))-kt))}return pt}function Sa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var oe=a.display.view,ne=0;ne<oe.length;ne++)if(b-=oe[ne].size,b<0)return ne}function Si(a,b,oe,ne){b==null&&(b=a.doc.first),oe==null&&(oe=a.doc.first+a.doc.size),ne||(ne=0);var me=a.display;if(ne&&oe<me.viewTo&&(me.updateLineNumbers==null||me.updateLineNumbers>b)&&(me.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=me.viewTo)wn&&_r(a.doc,b)<me.viewTo&&da(a);else if(oe<=me.viewFrom)wn&&vr(a.doc,oe+ne)>me.viewFrom?da(a):(me.viewFrom+=ne,me.viewTo+=ne);else if(b<=me.viewFrom&&oe>=me.viewTo)da(a);else if(b<=me.viewFrom){var Fe=Co(a,oe,oe+ne,1);Fe?(me.view=me.view.slice(Fe.index),me.viewFrom=Fe.lineN,me.viewTo+=ne):da(a)}else if(oe>=me.viewTo){var qe=Co(a,b,b,-1);qe?(me.view=me.view.slice(0,qe.index),me.viewTo=qe.lineN):da(a)}else{var dt=Co(a,b,b,-1),pt=Co(a,oe,oe+ne,1);dt&&pt?(me.view=me.view.slice(0,dt.index).concat(ri(a,dt.lineN,pt.lineN)).concat(me.view.slice(pt.index)),me.viewTo+=ne):da(a)}var bt=me.externalMeasured;bt&&(oe<bt.lineN?bt.lineN+=ne:b<bt.lineN+bt.size&&(me.externalMeasured=null))}function fa(a,b,oe){a.curOp.viewChanged=!0;var ne=a.display,me=a.display.externalMeasured;if(me&&b>=me.lineN&&b<me.lineN+me.size&&(ne.externalMeasured=null),!(b<ne.viewFrom||b>=ne.viewTo)){var Fe=ne.view[Sa(a,b)];if(Fe.node!=null){var qe=Fe.changes||(Fe.changes=[]);rt(qe,oe)==-1&&qe.push(oe)}}}function da(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Co(a,b,oe,ne){var me=Sa(a,b),Fe,qe=a.display.view;if(!wn||oe==a.doc.first+a.doc.size)return{index:me,lineN:oe};for(var dt=a.display.viewFrom,pt=0;pt<me;pt++)dt+=qe[pt].size;if(dt!=b){if(ne>0){if(me==qe.length-1)return null;Fe=dt+qe[me].size-b,me++}else Fe=dt-b;b+=Fe,oe+=Fe}for(;_r(a.doc,oe)!=oe;){if(me==(ne<0?0:qe.length-1))return null;oe+=ne*qe[me-(ne<0?1:0)].size,me+=ne}return{index:me,lineN:oe}}function Wl(a,b,oe){var ne=a.display,me=ne.view;me.length==0||b>=ne.viewTo||oe<=ne.viewFrom?(ne.view=ri(a,b,oe),ne.viewFrom=b):(ne.viewFrom>b?ne.view=ri(a,b,ne.viewFrom).concat(ne.view):ne.viewFrom<b&&(ne.view=ne.view.slice(Sa(a,b))),ne.viewFrom=b,ne.viewTo<oe?ne.view=ne.view.concat(ri(a,ne.viewTo,oe)):ne.viewTo>oe&&(ne.view=ne.view.slice(0,Sa(a,oe)))),ne.viewTo=oe}function Ss(a){for(var b=a.display.view,oe=0,ne=0;ne<b.length;ne++){var me=b[ne];!me.hidden&&(!me.node||me.changes)&&++oe}return oe}function Ja(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Es(a,b){b===void 0&&(b=!0);for(var oe=a.doc,ne={},me=ne.cursors=document.createDocumentFragment(),Fe=ne.selection=document.createDocumentFragment(),qe=0;qe<oe.sel.ranges.length;qe++)if(!(!b&&qe==oe.sel.primIndex)){var dt=oe.sel.ranges[qe];if(!(dt.from().line>=a.display.viewTo||dt.to().line<a.display.viewFrom)){var pt=dt.empty();(pt||a.options.showCursorWhenSelecting)&&Cs(a,dt.head,me),pt||Ul(a,dt,Fe)}}return ne}function Cs(a,b,oe){var ne=xi(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),me=oe.appendChild(be("div","\xA0","CodeMirror-cursor"));if(me.style.left=ne.left+"px",me.style.top=ne.top+"px",me.style.height=Math.max(0,ne.bottom-ne.top)*a.options.cursorHeight+"px",ne.other){var Fe=oe.appendChild(be("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Fe.style.display="",Fe.style.left=ne.other.left+"px",Fe.style.top=ne.other.top+"px",Fe.style.height=(ne.other.bottom-ne.other.top)*.85+"px"}}function ko(a,b){return a.top-b.top||a.left-b.left}function Ul(a,b,oe){var ne=a.display,me=a.doc,Fe=document.createDocumentFragment(),qe=Qi(a.display),dt=qe.left,pt=Math.max(ne.sizerWidth,$i(a)-ne.sizer.offsetLeft)-qe.right,bt=me.direction=="ltr";function kt(Hr,Xr,sn,tn){Xr<0&&(Xr=0),Xr=Math.round(Xr),tn=Math.round(tn),Fe.appendChild(be("div",null,"CodeMirror-selected","position: absolute; left: "+Hr+`px;
top: `+Xr+"px; width: "+(sn==null?pt-Hr:sn)+`px;
height: `+(tn-Xr)+"px"))}function _t(Hr,Xr,sn){var tn=Mt(me,Hr),En=tn.text.length,zn,si;function Xn(ei,ki){return ja(a,Dt(Hr,ei),"div",tn,ki)}function Pi(ei,ki,fi){var ii=Qn(a,tn,null,ei),ti=ki=="ltr"==(fi=="after")?"left":"right",Yn=fi=="after"?ii.begin:ii.end-(/\s/.test(tn.text.charAt(ii.end-1))?2:1);return Xn(Yn,ti)[ti]}var Ci=et(tn,me.direction);return Te(Ci,Xr||0,sn==null?En:sn,function(ei,ki,fi,ii){var ti=fi=="ltr",Yn=Xn(ei,ti?"left":"right"),Ai=Xn(ki-1,ti?"right":"left"),za=Xr==null&&ei==0,ya=sn==null&&ki==En,pi=ii==0,ea=!Ci||ii==Ci.length-1;if(Ai.top-Yn.top<=3){var li=(bt?za:ya)&&pi,bs=(bt?ya:za)&&ea,aa=li?dt:(ti?Yn:Ai).left,Ta=bs?pt:(ti?Ai:Yn).right;kt(aa,Yn.top,Ta-aa,Yn.bottom)}else{var _a,bi,Ga,ws;ti?(_a=bt&&za&&pi?dt:Yn.left,bi=bt?pt:Pi(ei,fi,"before"),Ga=bt?dt:Pi(ki,fi,"after"),ws=bt&&ya&&ea?pt:Ai.right):(_a=bt?Pi(ei,fi,"before"):dt,bi=!bt&&za&&pi?pt:Yn.right,Ga=!bt&&ya&&ea?dt:Ai.left,ws=bt?Pi(ki,fi,"after"):pt),kt(_a,Yn.top,bi-_a,Yn.bottom),Yn.bottom<Ai.top&&kt(dt,Yn.bottom,null,Ai.top),kt(Ga,Ai.top,ws-Ga,Ai.bottom)}(!zn||ko(Yn,zn)<0)&&(zn=Yn),ko(Ai,zn)<0&&(zn=Ai),(!si||ko(Yn,si)<0)&&(si=Yn),ko(Ai,si)<0&&(si=Ai)}),{start:zn,end:si}}var Ft=b.from(),It=b.to();if(Ft.line==It.line)_t(Ft.line,Ft.ch,It.ch);else{var ir=Mt(me,Ft.line),br=Mt(me,It.line),Pr=Br(ir)==Br(br),Ur=_t(Ft.line,Ft.ch,Pr?ir.text.length+1:null).end,Vr=_t(It.line,Pr?0:null,It.ch).start;Pr&&(Ur.top<Vr.top-2?(kt(Ur.right,Ur.top,null,Ur.bottom),kt(dt,Vr.top,Vr.left,Vr.bottom)):kt(Ur.right,Ur.top,Vr.left-Ur.right,Ur.bottom)),Ur.bottom<Vr.top&&kt(dt,Ur.bottom,null,Vr.top)}oe.appendChild(Fe)}function Yo(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var oe=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Pa(a),b.cursorDiv.style.visibility=(oe=!oe)?"":"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,Pa(a))},100)}function Jo(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(gt(a,"focus",a,b),a.state.focused=!0,je(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),E&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Yo(a))}function Pa(a,b){a.state.delayingBlurEvent||(a.state.focused&&(gt(a,"blur",a,b),a.state.focused=!1,De(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,oe=b.lineDiv.offsetTop,ne=0;ne<b.view.length;ne++){var me=b.view[ne],Fe=a.options.lineWrapping,qe=void 0,dt=0;if(!me.hidden){if(ge&&ee<8){var pt=me.node.offsetTop+me.node.offsetHeight;qe=pt-oe,oe=pt}else{var bt=me.node.getBoundingClientRect();qe=bt.bottom-bt.top,!Fe&&me.text.firstChild&&(dt=me.text.firstChild.getBoundingClientRect().right-bt.left-1)}var kt=me.line.height-qe;if((kt>.005||kt<-.005)&&(Lr(me.line,qe),Ts(me.line),me.rest))for(var _t=0;_t<me.rest.length;_t++)Ts(me.rest[_t]);if(dt>a.display.sizerWidth){var Ft=Math.ceil(dt/Ki(a.display));Ft>a.display.maxLineLength&&(a.display.maxLineLength=Ft,a.display.maxLine=me.line,a.display.maxLineChanged=!0)}}}}function Ts(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var oe=a.widgets[b],ne=oe.node.parentNode;ne&&(oe.height=ne.offsetHeight)}}function To(a,b,oe){var ne=oe&&oe.top!=null?Math.max(0,oe.top):a.scroller.scrollTop;ne=Math.floor(ne-Jn(a));var me=oe&&oe.bottom!=null?oe.bottom:ne+a.wrapper.clientHeight,Fe=Tt(b,ne),qe=Tt(b,me);if(oe&&oe.ensure){var dt=oe.ensure.from.line,pt=oe.ensure.to.line;dt<Fe?(Fe=dt,qe=Tt(b,nn(Mt(b,dt))+a.wrapper.clientHeight)):Math.min(pt,b.lastLine())>=qe&&(Fe=Tt(b,nn(Mt(b,pt))-a.wrapper.clientHeight),qe=pt)}return{from:Fe,to:Math.max(qe,Fe+1)}}function Hl(a,b){if(!ht(a,"scrollCursorIntoView")){var oe=a.display,ne=oe.sizer.getBoundingClientRect(),me=null;if(b.top+ne.top<0?me=!0:b.bottom+ne.top>(window.innerHeight||document.documentElement.clientHeight)&&(me=!1),me!=null&&!re){var Fe=be("div","\u200B",null,`position: absolute;
top: `+(b.top-oe.viewOffset-Jn(a.display))+`px;
height: `+(b.bottom-b.top+_i(a)+oe.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(Fe),Fe.scrollIntoView(me),a.display.lineSpace.removeChild(Fe)}}}function Zl(a,b,oe,ne){ne==null&&(ne=0);var me;!a.options.lineWrapping&&b==oe&&(b=b.ch?Dt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,oe=b.sticky=="before"?Dt(b.line,b.ch+1,"before"):b);for(var Fe=0;Fe<5;Fe++){var qe=!1,dt=xi(a,b),pt=!oe||oe==b?dt:xi(a,oe);me={left:Math.min(dt.left,pt.left),top:Math.min(dt.top,pt.top)-ne,right:Math.max(dt.left,pt.left),bottom:Math.max(dt.bottom,pt.bottom)+ne};var bt=Qo(a,me),kt=a.doc.scrollTop,_t=a.doc.scrollLeft;if(bt.scrollTop!=null&&($a(a,bt.scrollTop),Math.abs(a.doc.scrollTop-kt)>1&&(qe=!0)),bt.scrollLeft!=null&&(Ea(a,bt.scrollLeft),Math.abs(a.doc.scrollLeft-_t)>1&&(qe=!0)),!qe)break}return me}function zl(a,b){var oe=Qo(a,b);oe.scrollTop!=null&&$a(a,oe.scrollTop),oe.scrollLeft!=null&&Ea(a,oe.scrollLeft)}function Qo(a,b){var oe=a.display,ne=Oi(a.display);b.top<0&&(b.top=0);var me=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:oe.scroller.scrollTop,Fe=ra(a),qe={};b.bottom-b.top>Fe&&(b.bottom=b.top+Fe);var dt=a.doc.height+Li(oe),pt=b.top<ne,bt=b.bottom>dt-ne;if(b.top<me)qe.scrollTop=pt?0:b.top;else if(b.bottom>me+Fe){var kt=Math.min(b.top,(bt?dt:b.bottom)-Fe);kt!=me&&(qe.scrollTop=kt)}var _t=a.options.fixedGutter?0:oe.gutters.offsetWidth,Ft=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:oe.scroller.scrollLeft-_t,It=$i(a)-oe.gutters.offsetWidth,ir=b.right-b.left>It;return ir&&(b.right=b.left+It),b.left<10?qe.scrollLeft=0:b.left<Ft?qe.scrollLeft=Math.max(0,b.left+_t-(ir?0:10)):b.right>It+Ft-3&&(qe.scrollLeft=b.right+(ir?0:10)-It),qe}function $o(a,b){b!=null&&(_o(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Ma(a){_o(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function Qa(a,b,oe){(b!=null||oe!=null)&&_o(a),b!=null&&(a.curOp.scrollLeft=b),oe!=null&&(a.curOp.scrollTop=oe)}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 oe=Dn(a,b.from),ne=Dn(a,b.to);_s(a,oe,ne,b.margin)}}function _s(a,b,oe,ne){var me=Qo(a,{left:Math.min(b.left,oe.left),top:Math.min(b.top,oe.top)-ne,right:Math.max(b.right,oe.right),bottom:Math.max(b.bottom,oe.bottom)+ne});Qa(a,me.scrollLeft,me.scrollTop)}function $a(a,b){Math.abs(a.doc.scrollTop-b)<2||(Ue||es(a,{top:b}),Ds(a,b,!0),Ue&&es(a),to(a,100))}function Ds(a,b,oe){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!oe)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function Ea(a,b,oe,ne){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((oe?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!ne)&&(a.doc.scrollLeft=b,Rs(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function qa(a){var b=a.display,oe=b.gutters.offsetWidth,ne=Math.round(a.doc.height+Li(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?oe:0,docHeight:ne,scrollHeight:ne+_i(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:oe}}var Ca=function(a,b,oe){this.cm=oe;var ne=this.vert=be("div",[be("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),me=this.horiz=be("div",[be("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ne.tabIndex=me.tabIndex=-1,a(ne),a(me),yt(ne,"scroll",function(){ne.clientHeight&&b(ne.scrollTop,"vertical")}),yt(me,"scroll",function(){me.clientWidth&&b(me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ge&&ee<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ca.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,oe=a.scrollHeight>a.clientHeight+1,ne=a.nativeBarWidth;if(oe){this.vert.style.display="block",this.vert.style.bottom=b?ne+"px":"0";var me=a.viewHeight-(b?ne:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+me)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=oe?ne+"px":"0",this.horiz.style.left=a.barLeft+"px";var Fe=a.viewWidth-a.barLeft-(oe?ne:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Fe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(ne==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:oe?ne:0,bottom:b?ne:0}},Ca.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ca.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ca.prototype.zeroWidthHack=function(){var a=fe&&!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},Ca.prototype.enableZeroWidthBar=function(a,b,oe){a.style.pointerEvents="auto";function ne(){var me=a.getBoundingClientRect(),Fe=oe=="vert"?document.elementFromPoint(me.right-1,(me.top+me.bottom)/2):document.elementFromPoint((me.right+me.left)/2,me.bottom-1);Fe!=a?a.style.pointerEvents="none":b.set(1e3,ne)}b.set(1e3,ne)},Ca.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 Ra(a,b){b||(b=qa(a));var oe=a.display.barWidth,ne=a.display.barHeight;Os(a,b);for(var me=0;me<4&&oe!=a.display.barWidth||ne!=a.display.barHeight;me++)oe!=a.display.barWidth&&a.options.lineWrapping&&Ao(a),Os(a,qa(a)),oe=a.display.barWidth,ne=a.display.barHeight}function Os(a,b){var oe=a.display,ne=oe.scrollbars.update(b);oe.sizer.style.paddingRight=(oe.barWidth=ne.right)+"px",oe.sizer.style.paddingBottom=(oe.barHeight=ne.bottom)+"px",oe.heightForcer.style.borderBottom=ne.bottom+"px solid transparent",ne.right&&ne.bottom?(oe.scrollbarFiller.style.display="block",oe.scrollbarFiller.style.height=ne.bottom+"px",oe.scrollbarFiller.style.width=ne.right+"px"):oe.scrollbarFiller.style.display="",ne.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(oe.gutterFiller.style.display="block",oe.gutterFiller.style.height=ne.bottom+"px",oe.gutterFiller.style.width=b.gutterWidth+"px"):oe.gutterFiller.style.display=""}var js={native:Ca,null:eo};function Ps(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&De(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),yt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,oe){oe=="horizontal"?Ea(a,b):$a(a,b)},a),a.display.scrollbars.addClass&&je(a.display.wrapper,a.display.scrollbars.addClass)}var Kl=0;function ka(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},oa(a.curOp)}function Aa(a){var b=a.curOp;b&&vi(b,function(oe){for(var ne=0;ne<oe.ops.length;ne++)oe.ops[ne].cm.curOp=null;Vl(oe)})}function Vl(a){for(var b=a.ops,oe=0;oe<b.length;oe++)Xl(b[oe]);for(var ne=0;ne<b.length;ne++)Yl(b[ne]);for(var me=0;me<b.length;me++)Jl(b[me]);for(var Fe=0;Fe<b.length;Fe++)Ql(b[Fe]);for(var qe=0;qe<b.length;qe++)$l(b[qe])}function Xl(a){var b=a.cm,oe=b.display;eu(b),a.updateMaxLine&&vn(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<oe.viewFrom||a.scrollToPos.to.line>=oe.viewTo)||oe.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,oe=b.display;a.updatedDisplay&&Ao(b),a.barMeasure=qa(b),oe.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=yo(b,oe.maxLine,oe.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(oe.scroller.clientWidth,oe.sizer.offsetLeft+a.adjustWidthTo+_i(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,oe.sizer.offsetLeft+a.adjustWidthTo-$i(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=oe.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 oe=a.focus&&a.focus==Se();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,oe),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Ra(b,a.barMeasure),a.updatedDisplay&&rs(b,a.barMeasure),a.selectionChanged&&Yo(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),oe&&ks(a.cm)}function $l(a){var b=a.cm,oe=b.display,ne=b.doc;if(a.updatedDisplay&&Ms(b,a.update),oe.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(oe.wheelStartX=oe.wheelStartY=null),a.scrollTop!=null&&Ds(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Ea(b,a.scrollLeft,!0,!0),a.scrollToPos){var me=Zl(b,Gt(ne,a.scrollToPos.from),Gt(ne,a.scrollToPos.to),a.scrollToPos.margin);Hl(b,me)}var Fe=a.maybeHiddenMarkers,qe=a.maybeUnhiddenMarkers;if(Fe)for(var dt=0;dt<Fe.length;++dt)Fe[dt].lines.length||gt(Fe[dt],"hide");if(qe)for(var pt=0;pt<qe.length;++pt)qe[pt].lines.length&&gt(qe[pt],"unhide");oe.wrapper.offsetHeight&&(ne.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&gt(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function ji(a,b){if(a.curOp)return b();ka(a);try{return b()}finally{Aa(a)}}function ai(a,b){return function(){if(a.curOp)return b.apply(a,arguments);ka(a);try{return b.apply(a,arguments)}finally{Aa(a)}}}function yi(a){return function(){if(this.curOp)return a.apply(this,arguments);ka(this);try{return a.apply(this,arguments)}finally{Aa(this)}}}function oi(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);ka(b);try{return a.apply(this,arguments)}finally{Aa(b)}}}function to(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,$e(ql,a))}function ql(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var oe=+new Date+a.options.workTime,ne=ln(a,b.highlightFrontier),me=[];b.iter(ne.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Fe){if(ne.line>=a.display.viewFrom){var qe=Fe.styles,dt=Fe.text.length>a.options.maxHighlightLength?Mr(b.mode,ne.state):null,pt=Nr(a,Fe,ne,!0);dt&&(ne.state=dt),Fe.styles=pt.styles;var bt=Fe.styleClasses,kt=pt.classes;kt?Fe.styleClasses=kt:bt&&(Fe.styleClasses=null);for(var _t=!qe||qe.length!=Fe.styles.length||bt!=kt&&(!bt||!kt||bt.bgClass!=kt.bgClass||bt.textClass!=kt.textClass),Ft=0;!_t&&Ft<qe.length;++Ft)_t=qe[Ft]!=Fe.styles[Ft];_t&&me.push(ne.line),Fe.stateAfter=ne.save(),ne.nextLine()}else Fe.text.length<=a.options.maxHighlightLength&&Zr(a,Fe.text,ne),Fe.stateAfter=ne.line%5==0?ne.save():null,ne.nextLine();if(+new Date>oe)return to(a,a.options.workDelay),!0}),b.highlightFrontier=ne.line,b.modeFrontier=Math.max(b.modeFrontier,ne.line),me.length&&ji(a,function(){for(var Fe=0;Fe<me.length;Fe++)fa(a,me[Fe],"text")})}}var Do=function(a,b,oe){var ne=a.display;this.viewport=b,this.visible=To(ne,a.doc,b),this.editorIsHidden=!ne.wrapper.offsetWidth,this.wrapperHeight=ne.wrapper.clientHeight,this.wrapperWidth=ne.wrapper.clientWidth,this.oldDisplayWidth=$i(a),this.force=oe,this.dims=ca(a),this.events=[]};Do.prototype.signal=function(a,b){St(a,b)&&this.events.push(arguments)},Do.prototype.finish=function(){for(var a=0;a<this.events.length;a++)gt.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=_i(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=_i(a)+"px",b.scrollbarsClipped=!0)}function tu(a){if(a.hasFocus())return null;var b=Se();if(!b||!Me(a.display.lineDiv,b))return null;var oe={activeElt:b};if(window.getSelection){var ne=window.getSelection();ne.anchorNode&&ne.extend&&Me(a.display.lineDiv,ne.anchorNode)&&(oe.anchorNode=ne.anchorNode,oe.anchorOffset=ne.anchorOffset,oe.focusNode=ne.focusNode,oe.focusOffset=ne.focusOffset)}return oe}function ru(a){if(!(!a||!a.activeElt||a.activeElt==Se())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Me(document.body,a.anchorNode)&&Me(document.body,a.focusNode))){var b=window.getSelection(),oe=document.createRange();oe.setEnd(a.anchorNode,a.anchorOffset),oe.collapse(!1),b.removeAllRanges(),b.addRange(oe),b.extend(a.focusNode,a.focusOffset)}}function qo(a,b){var oe=a.display,ne=a.doc;if(b.editorIsHidden)return da(a),!1;if(!b.force&&b.visible.from>=oe.viewFrom&&b.visible.to<=oe.viewTo&&(oe.updateLineNumbers==null||oe.updateLineNumbers>=oe.viewTo)&&oe.renderedView==oe.view&&Ss(a)==0)return!1;Is(a)&&(da(a),b.dims=ca(a));var me=ne.first+ne.size,Fe=Math.max(b.visible.from-a.options.viewportMargin,ne.first),qe=Math.min(me,b.visible.to+a.options.viewportMargin);oe.viewFrom<Fe&&Fe-oe.viewFrom<20&&(Fe=Math.max(ne.first,oe.viewFrom)),oe.viewTo>qe&&oe.viewTo-qe<20&&(qe=Math.min(me,oe.viewTo)),wn&&(Fe=_r(a.doc,Fe),qe=vr(a.doc,qe));var dt=Fe!=oe.viewFrom||qe!=oe.viewTo||oe.lastWrapHeight!=b.wrapperHeight||oe.lastWrapWidth!=b.wrapperWidth;Wl(a,Fe,qe),oe.viewOffset=nn(Mt(a.doc,oe.viewFrom)),a.display.mover.style.top=oe.viewOffset+"px";var pt=Ss(a);if(!dt&&pt==0&&!b.force&&oe.renderedView==oe.view&&(oe.updateLineNumbers==null||oe.updateLineNumbers>=oe.viewTo))return!1;var bt=tu(a);return pt>4&&(oe.lineDiv.style.display="none"),nu(a,oe.updateLineNumbers,b.dims),pt>4&&(oe.lineDiv.style.display=""),oe.renderedView=oe.view,ru(bt),Ae(oe.cursorDiv),Ae(oe.selectionDiv),oe.gutters.style.height=oe.sizer.style.minHeight=0,dt&&(oe.lastWrapHeight=b.wrapperHeight,oe.lastWrapWidth=b.wrapperWidth,to(a,400)),oe.updateLineNumbers=null,!0}function Ms(a,b){for(var oe=b.viewport,ne=!0;;ne=!1){if(!ne||!a.options.lineWrapping||b.oldDisplayWidth==$i(a)){if(oe&&oe.top!=null&&(oe={top:Math.min(a.doc.height+Li(a.display)-ra(a),oe.top)}),b.visible=To(a.display,a.doc,oe),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else ne&&(b.visible=To(a.display,a.doc,oe));if(!qo(a,b))break;Ao(a);var me=qa(a);Ja(a),Ra(a,me),rs(a,me),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 oe=new Do(a,b);if(qo(a,oe)){Ao(a),Ms(a,oe);var ne=qa(a);Ja(a),Ra(a,ne),rs(a,ne),oe.finish()}}function nu(a,b,oe){var ne=a.display,me=a.options.lineNumbers,Fe=ne.lineDiv,qe=Fe.firstChild;function dt(ir){var br=ir.nextSibling;return E&&fe&&a.display.currentWheelTarget==ir?ir.style.display="none":ir.parentNode.removeChild(ir),br}for(var pt=ne.view,bt=ne.viewFrom,kt=0;kt<pt.length;kt++){var _t=pt[kt];if(!_t.hidden)if(!_t.node||_t.node.parentNode!=Fe){var Ft=dn(a,_t,bt,oe);Fe.insertBefore(Ft,qe)}else{for(;qe!=_t.node;)qe=dt(qe);var It=me&&b!=null&&b<=bt&&_t.lineNumber;_t.changes&&(rt(_t.changes,"gutter")>-1&&(It=!1),sa(a,_t,bt,oe)),It&&(Ae(_t.lineNumber),_t.lineNumber.appendChild(document.createTextNode(Kt(a.options,bt)))),qe=_t.node.nextSibling}bt+=_t.size}for(;qe;)qe=dt(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+_i(a)+"px"}function Rs(a){var b=a.display,oe=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var ne=Vo(b)-b.scroller.scrollLeft+a.doc.scrollLeft,me=b.gutters.offsetWidth,Fe=ne+"px",qe=0;qe<oe.length;qe++)if(!oe[qe].hidden){a.options.fixedGutter&&(oe[qe].gutter&&(oe[qe].gutter.style.left=Fe),oe[qe].gutterBackground&&(oe[qe].gutterBackground.style.left=Fe));var dt=oe[qe].alignable;if(dt)for(var pt=0;pt<dt.length;pt++)dt[pt].style.left=Fe}a.options.fixedGutter&&(b.gutters.style.left=ne+me+"px")}}function Is(a){if(!a.options.lineNumbers)return!1;var b=a.doc,oe=Kt(a.options,b.first+b.size-1),ne=a.display;if(oe.length!=ne.lineNumChars){var me=ne.measure.appendChild(be("div",[be("div",oe)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Fe=me.firstChild.offsetWidth,qe=me.offsetWidth-Fe;return ne.lineGutter.style.width="",ne.lineNumInnerWidth=Math.max(Fe,ne.lineGutter.offsetWidth-qe)+1,ne.lineNumWidth=ne.lineNumInnerWidth+qe,ne.lineNumChars=ne.lineNumInnerWidth?oe.length:-1,ne.lineGutter.style.width=ne.lineNumWidth+"px",ts(a.display),!0}return!1}function ns(a,b){for(var oe=[],ne=!1,me=0;me<a.length;me++){var Fe=a[me],qe=null;if(typeof Fe!="string"&&(qe=Fe.style,Fe=Fe.className),Fe=="CodeMirror-linenumbers")if(b)ne=!0;else continue;oe.push({className:Fe,style:qe})}return b&&!ne&&oe.push({className:"CodeMirror-linenumbers",style:null}),oe}function Ns(a){var b=a.gutters,oe=a.gutterSpecs;Ae(b),a.lineGutter=null;for(var ne=0;ne<oe.length;++ne){var me=oe[ne],Fe=me.className,qe=me.style,dt=b.appendChild(be("div",null,"CodeMirror-gutter "+Fe));qe&&(dt.style.cssText=qe),Fe=="CodeMirror-linenumbers"&&(a.lineGutter=dt,dt.style.width=(a.lineNumWidth||1)+"px")}b.style.display=oe.length?"":"none",ts(a)}function ro(a){Ns(a.display),Si(a),Rs(a)}function iu(a,b,oe,ne){var me=this;this.input=oe,me.scrollbarFiller=be("div",null,"CodeMirror-scrollbar-filler"),me.scrollbarFiller.setAttribute("cm-not-content","true"),me.gutterFiller=be("div",null,"CodeMirror-gutter-filler"),me.gutterFiller.setAttribute("cm-not-content","true"),me.lineDiv=Ee("div",null,"CodeMirror-code"),me.selectionDiv=be("div",null,null,"position: relative; z-index: 1"),me.cursorDiv=be("div",null,"CodeMirror-cursors"),me.measure=be("div",null,"CodeMirror-measure"),me.lineMeasure=be("div",null,"CodeMirror-measure"),me.lineSpace=Ee("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var Fe=Ee("div",[me.lineSpace],"CodeMirror-lines");me.mover=be("div",[Fe],null,"position: relative"),me.sizer=be("div",[me.mover],"CodeMirror-sizer"),me.sizerWidth=null,me.heightForcer=be("div",null,null,"position: absolute; height: "+ot+"px; width: 1px;"),me.gutters=be("div",null,"CodeMirror-gutters"),me.lineGutter=null,me.scroller=be("div",[me.sizer,me.heightForcer,me.gutters],"CodeMirror-scroll"),me.scroller.setAttribute("tabIndex","-1"),me.wrapper=be("div",[me.scrollbarFiller,me.gutterFiller,me.scroller],"CodeMirror"),ge&&ee<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!E&&!(Ue&&ue)&&(me.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(me.wrapper):a(me.wrapper)),me.viewFrom=me.viewTo=b.first,me.reportedViewFrom=me.reportedViewTo=b.first,me.view=[],me.renderedView=null,me.externalMeasured=null,me.viewOffset=0,me.lastWrapHeight=me.lastWrapWidth=0,me.updateLineNumbers=null,me.nativeBarWidth=me.barHeight=me.barWidth=0,me.scrollbarsClipped=!1,me.lineNumWidth=me.lineNumInnerWidth=me.lineNumChars=null,me.alignWidgets=!1,me.cachedCharWidth=me.cachedTextHeight=me.cachedPaddingH=null,me.maxLine=null,me.maxLineLength=0,me.maxLineChanged=!1,me.wheelDX=me.wheelDY=me.wheelStartX=me.wheelStartY=null,me.shift=!1,me.selForContextMenu=null,me.activeTouch=null,me.gutterSpecs=ns(ne.gutters,ne.lineNumbers),Ns(me),oe.init(me)}var Oo=0,Ii=null;ge?Ii=-.53:Ue?Ii=15:le?Ii=-.7:se&&(Ii=-1/3);function Bs(a){var b=a.wheelDeltaX,oe=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),oe==null&&a.detail&&a.axis==a.VERTICAL_AXIS?oe=a.detail:oe==null&&(oe=a.wheelDelta),{x:b,y:oe}}function au(a){var b=Bs(a);return b.x*=Ii,b.y*=Ii,b}function Fs(a,b){var oe=Bs(b),ne=oe.x,me=oe.y,Fe=a.display,qe=Fe.scroller,dt=qe.scrollWidth>qe.clientWidth,pt=qe.scrollHeight>qe.clientHeight;if(ne&&dt||me&&pt){if(me&&fe&&E){e:for(var bt=b.target,kt=Fe.view;bt!=qe;bt=bt.parentNode)for(var _t=0;_t<kt.length;_t++)if(kt[_t].node==bt){a.display.currentWheelTarget=bt;break e}}if(ne&&!Ue&&!z&&Ii!=null){me&&pt&&$a(a,Math.max(0,qe.scrollTop+me*Ii)),Ea(a,Math.max(0,qe.scrollLeft+ne*Ii)),(!me||me&&pt)&&jt(b),Fe.wheelStartX=null;return}if(me&&Ii!=null){var Ft=me*Ii,It=a.doc.scrollTop,ir=It+Fe.wrapper.clientHeight;Ft<0?It=Math.max(0,It+Ft-50):ir=Math.min(a.doc.height,ir+Ft+50),es(a,{top:It,bottom:ir})}Oo<20&&(Fe.wheelStartX==null?(Fe.wheelStartX=qe.scrollLeft,Fe.wheelStartY=qe.scrollTop,Fe.wheelDX=ne,Fe.wheelDY=me,setTimeout(function(){if(Fe.wheelStartX!=null){var br=qe.scrollLeft-Fe.wheelStartX,Pr=qe.scrollTop-Fe.wheelStartY,Ur=Pr&&Fe.wheelDY&&Pr/Fe.wheelDY||br&&Fe.wheelDX&&br/Fe.wheelDX;Fe.wheelStartX=Fe.wheelStartY=null,Ur&&(Ii=(Ii*Oo+Ur)/(Oo+1),++Oo)}},200)):(Fe.wheelDX+=ne,Fe.wheelDY+=me))}}var Ni=function(a,b){this.ranges=a,this.primIndex=b};Ni.prototype.primary=function(){return this.ranges[this.primIndex]},Ni.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 oe=this.ranges[b],ne=a.ranges[b];if(!tr(oe.anchor,ne.anchor)||!tr(oe.head,ne.head))return!1}return!0},Ni.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Ln(yr(this.ranges[b].anchor),yr(this.ranges[b].head));return new Ni(a,this.primIndex)},Ni.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Ni.prototype.contains=function(a,b){b||(b=a);for(var oe=0;oe<this.ranges.length;oe++){var ne=this.ranges[oe];if(Qt(b,ne.from())>=0&&Qt(a,ne.to())<=0)return oe}return-1};var Ln=function(a,b){this.anchor=a,this.head=b};Ln.prototype.from=function(){return or(this.anchor,this.head)},Ln.prototype.to=function(){return jr(this.anchor,this.head)},Ln.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Vi(a,b,oe){var ne=a&&a.options.selectionsMayTouch,me=b[oe];b.sort(function(Ft,It){return Qt(Ft.from(),It.from())}),oe=rt(b,me);for(var Fe=1;Fe<b.length;Fe++){var qe=b[Fe],dt=b[Fe-1],pt=Qt(dt.to(),qe.from());if(ne&&!qe.empty()?pt>0:pt>=0){var bt=or(dt.from(),qe.from()),kt=jr(dt.to(),qe.to()),_t=dt.empty()?qe.from()==qe.head:dt.from()==dt.head;Fe<=oe&&--oe,b.splice(--Fe,2,new Ln(_t?kt:bt,_t?bt:kt))}}return new Ni(b,oe)}function ha(a,b){return new Ni([new Ln(a,b||a)],0)}function pa(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 Ls(a,b){if(Qt(a,b.from)<0)return a;if(Qt(a,b.to)<=0)return pa(b);var oe=a.line+b.text.length-(b.to.line-b.from.line)-1,ne=a.ch;return a.line==b.to.line&&(ne+=pa(b).ch-b.to.ch),Dt(oe,ne)}function is(a,b){for(var oe=[],ne=0;ne<a.sel.ranges.length;ne++){var me=a.sel.ranges[ne];oe.push(new Ln(Ls(me.anchor,b),Ls(me.head,b)))}return Vi(a.cm,oe,a.sel.primIndex)}function Ws(a,b,oe){return a.line==b.line?Dt(oe.line,a.ch-b.ch+oe.ch):Dt(oe.line+(a.line-b.line),a.ch)}function ou(a,b,oe){for(var ne=[],me=Dt(a.first,0),Fe=me,qe=0;qe<b.length;qe++){var dt=b[qe],pt=Ws(dt.from,me,Fe),bt=Ws(pa(dt),me,Fe);if(me=dt.to,Fe=bt,oe=="around"){var kt=a.sel.ranges[qe],_t=Qt(kt.head,kt.anchor)<0;ne[qe]=new Ln(_t?bt:pt,_t?pt:bt)}else ne[qe]=new Ln(pt,pt)}return new Ni(ne,a.sel.primIndex)}function as(a){a.doc.mode=Ht(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&&Si(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,oe,ne){function me(Vr){return oe?oe[Vr]:null}function Fe(Vr,Hr,Xr){An(Vr,Hr,Xr,ne),Gn(Vr,"change",Vr,b)}function qe(Vr,Hr){for(var Xr=[],sn=Vr;sn<Hr;++sn)Xr.push(new jn(bt[sn],me(sn),ne));return Xr}var dt=b.from,pt=b.to,bt=b.text,kt=Mt(a,dt.line),_t=Mt(a,pt.line),Ft=st(bt),It=me(bt.length-1),ir=pt.line-dt.line;if(b.full)a.insert(0,qe(0,bt.length)),a.remove(bt.length,a.size-bt.length);else if(Us(a,b)){var br=qe(0,bt.length-1);Fe(_t,_t.text,It),ir&&a.remove(dt.line,ir),br.length&&a.insert(dt.line,br)}else if(kt==_t)if(bt.length==1)Fe(kt,kt.text.slice(0,dt.ch)+Ft+kt.text.slice(pt.ch),It);else{var Pr=qe(1,bt.length-1);Pr.push(new jn(Ft+kt.text.slice(pt.ch),It,ne)),Fe(kt,kt.text.slice(0,dt.ch)+bt[0],me(0)),a.insert(dt.line+1,Pr)}else if(bt.length==1)Fe(kt,kt.text.slice(0,dt.ch)+bt[0]+_t.text.slice(pt.ch),me(0)),a.remove(dt.line+1,ir);else{Fe(kt,kt.text.slice(0,dt.ch)+bt[0],me(0)),Fe(_t,Ft+_t.text.slice(pt.ch),It);var Ur=qe(1,bt.length-1);ir>1&&a.remove(dt.line+1,ir-1),a.insert(dt.line+1,Ur)}Gn(a,"change",a,b)}function ma(a,b,oe){function ne(me,Fe,qe){if(me.linked)for(var dt=0;dt<me.linked.length;++dt){var pt=me.linked[dt];if(pt.doc!=Fe){var bt=qe&&pt.sharedHist;oe&&!bt||(b(pt.doc,bt),ne(pt.doc,me,bt))}}}ne(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||vn(a),a.options.mode=b.modeOption,Si(a)}function Zs(a){(a.doc.direction=="rtl"?je:De)(a.display.lineDiv,"CodeMirror-rtl")}function su(a){ji(a,function(){Zs(a),Si(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 oe={from:yr(b.from),to:pa(b),text:rr(a,b.from,b.to)};return Ks(a,oe,b.from.line,b.to.line+1),ma(a,function(ne){return Ks(ne,oe,b.from.line,b.to.line+1)},!0),oe}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,oe,ne){var me=a.history;me.undone.length=0;var Fe=+new Date,qe,dt;if((me.lastOp==ne||me.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&me.lastModTime>Fe-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(qe=lu(me,me.lastOp==ne)))dt=st(qe.changes),Qt(b.from,b.to)==0&&Qt(b.from,dt.to)==0?dt.to=pa(b):qe.changes.push(ss(a,b));else{var pt=st(me.done);for((!pt||!pt.ranges)&&Po(a.sel,me.done),qe={changes:[ss(a,b)],generation:me.generation},me.done.push(qe);me.done.length>me.undoDepth;)me.done.shift(),me.done[0].ranges||me.done.shift()}me.done.push(oe),me.generation=++me.maxGeneration,me.lastModTime=me.lastSelTime=Fe,me.lastOp=me.lastSelOp=ne,me.lastOrigin=me.lastSelOrigin=b.origin,dt||gt(a,"historyAdded")}function uu(a,b,oe,ne){var me=b.charAt(0);return me=="*"||me=="+"&&oe.ranges.length==ne.ranges.length&&oe.somethingSelected()==ne.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function cu(a,b,oe,ne){var me=a.history,Fe=ne&&ne.origin;oe==me.lastSelOp||Fe&&me.lastSelOrigin==Fe&&(me.lastModTime==me.lastSelTime&&me.lastOrigin==Fe||uu(a,Fe,st(me.done),b))?me.done[me.done.length-1]=b:Po(b,me.done),me.lastSelTime=+new Date,me.lastSelOrigin=Fe,me.lastSelOp=oe,ne&&ne.clearRedo!==!1&&zs(me.undone)}function Po(a,b){var oe=st(b);oe&&oe.ranges&&oe.equals(a)||b.push(a)}function Ks(a,b,oe,ne){var me=b["spans_"+a.id],Fe=0;a.iter(Math.max(a.first,oe),Math.min(a.first+a.size,ne),function(qe){qe.markedSpans&&((me||(me=b["spans_"+a.id]={}))[Fe]=qe.markedSpans),++Fe})}function fu(a){if(!a)return null;for(var b,oe=0;oe<a.length;++oe)a[oe].marker.explicitlyCleared?b||(b=a.slice(0,oe)):b&&b.push(a[oe]);return b?b.length?b:null:a}function du(a,b){var oe=b["spans_"+a.id];if(!oe)return null;for(var ne=[],me=0;me<b.text.length;++me)ne.push(fu(oe[me]));return ne}function Vs(a,b){var oe=du(a,b),ne=un(a,b);if(!oe)return ne;if(!ne)return oe;for(var me=0;me<oe.length;++me){var Fe=oe[me],qe=ne[me];if(Fe&&qe)e:for(var dt=0;dt<qe.length;++dt){for(var pt=qe[dt],bt=0;bt<Fe.length;++bt)if(Fe[bt].marker==pt.marker)continue e;Fe.push(pt)}else qe&&(oe[me]=qe)}return oe}function Ia(a,b,oe){for(var ne=[],me=0;me<a.length;++me){var Fe=a[me];if(Fe.ranges){ne.push(oe?Ni.prototype.deepCopy.call(Fe):Fe);continue}var qe=Fe.changes,dt=[];ne.push({changes:dt});for(var pt=0;pt<qe.length;++pt){var bt=qe[pt],kt=void 0;if(dt.push({from:bt.from,to:bt.to,text:bt.text}),b)for(var _t in bt)(kt=_t.match(/^spans_(\d+)$/))&&rt(b,Number(kt[1]))>-1&&(st(dt)[_t]=bt[_t],delete bt[_t])}}return ne}function ls(a,b,oe,ne){if(ne){var me=a.anchor;if(oe){var Fe=Qt(b,me)<0;Fe!=Qt(oe,me)<0?(me=b,b=oe):Fe!=Qt(b,oe)<0&&(b=oe)}return new Ln(me,b)}else return new Ln(oe||b,b)}function Mo(a,b,oe,ne,me){me==null&&(me=a.cm&&(a.cm.display.shift||a.extend)),hi(a,new Ni([ls(a.sel.primary(),b,oe,me)],0),ne)}function Xs(a,b,oe){for(var ne=[],me=a.cm&&(a.cm.display.shift||a.extend),Fe=0;Fe<a.sel.ranges.length;Fe++)ne[Fe]=ls(a.sel.ranges[Fe],b[Fe],null,me);var qe=Vi(a.cm,ne,a.sel.primIndex);hi(a,qe,oe)}function us(a,b,oe,ne){var me=a.sel.ranges.slice(0);me[b]=oe,hi(a,Vi(a.cm,me,a.sel.primIndex),ne)}function Ys(a,b,oe,ne){hi(a,ha(b,oe),ne)}function hu(a,b,oe){var ne={ranges:b.ranges,update:function(me){this.ranges=[];for(var Fe=0;Fe<me.length;Fe++)this.ranges[Fe]=new Ln(Gt(a,me[Fe].anchor),Gt(a,me[Fe].head))},origin:oe&&oe.origin};return gt(a,"beforeSelectionChange",a,ne),a.cm&&gt(a.cm,"beforeSelectionChange",a.cm,ne),ne.ranges!=b.ranges?Vi(a.cm,ne.ranges,ne.ranges.length-1):b}function Js(a,b,oe){var ne=a.history.done,me=st(ne);me&&me.ranges?(ne[ne.length-1]=b,Ro(a,b,oe)):hi(a,b,oe)}function hi(a,b,oe){Ro(a,b,oe),cu(a,a.sel,a.cm?a.cm.curOp.id:NaN,oe)}function Ro(a,b,oe){(St(a,"beforeSelectionChange")||a.cm&&St(a.cm,"beforeSelectionChange"))&&(b=hu(a,b,oe));var ne=oe&&oe.bias||(Qt(b.primary().head,a.sel.primary().head)<0?-1:1);Qs(a,el(a,b,ne,!0)),!(oe&&oe.scroll===!1)&&a.cm&&Ma(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,xt(a.cm)),Gn(a,"cursorActivity",a))}function $s(a){Qs(a,el(a,a.sel,null,!1))}function el(a,b,oe,ne){for(var me,Fe=0;Fe<b.ranges.length;Fe++){var qe=b.ranges[Fe],dt=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Fe],pt=Io(a,qe.anchor,dt&&dt.anchor,oe,ne),bt=Io(a,qe.head,dt&&dt.head,oe,ne);(me||pt!=qe.anchor||bt!=qe.head)&&(me||(me=b.ranges.slice(0,Fe)),me[Fe]=new Ln(pt,bt))}return me?Vi(a.cm,me,b.primIndex):b}function Na(a,b,oe,ne,me){var Fe=Mt(a,b.line);if(Fe.markedSpans)for(var qe=0;qe<Fe.markedSpans.length;++qe){var dt=Fe.markedSpans[qe],pt=dt.marker,bt="selectLeft"in pt?!pt.selectLeft:pt.inclusiveLeft,kt="selectRight"in pt?!pt.selectRight:pt.inclusiveRight;if((dt.from==null||(bt?dt.from<=b.ch:dt.from<b.ch))&&(dt.to==null||(kt?dt.to>=b.ch:dt.to>b.ch))){if(me&&(gt(pt,"beforeCursorEnter"),pt.explicitlyCleared))if(Fe.markedSpans){--qe;continue}else break;if(!pt.atomic)continue;if(oe){var _t=pt.find(ne<0?1:-1),Ft=void 0;if((ne<0?kt:bt)&&(_t=tl(a,_t,-ne,_t&&_t.line==b.line?Fe:null)),_t&&_t.line==b.line&&(Ft=Qt(_t,oe))&&(ne<0?Ft<0:Ft>0))return Na(a,_t,b,ne,me)}var It=pt.find(ne<0?-1:1);return(ne<0?bt:kt)&&(It=tl(a,It,ne,It.line==b.line?Fe:null)),It?Na(a,It,b,ne,me):null}}return b}function Io(a,b,oe,ne,me){var Fe=ne||1,qe=Na(a,b,oe,Fe,me)||!me&&Na(a,b,oe,Fe,!0)||Na(a,b,oe,-Fe,me)||!me&&Na(a,b,oe,-Fe,!0);return qe||(a.cantEdit=!0,Dt(a.first,0))}function tl(a,b,oe,ne){return oe<0&&b.ch==0?b.line>a.first?Gt(a,Dt(b.line-1)):null:oe>0&&b.ch==(ne||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+oe)}function rl(a){a.setSelection(Dt(a.firstLine(),0),Dt(a.lastLine()),Je)}function nl(a,b,oe){var ne={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return ne.canceled=!0}};return oe&&(ne.update=function(me,Fe,qe,dt){me&&(ne.from=Gt(a,me)),Fe&&(ne.to=Gt(a,Fe)),qe&&(ne.text=qe),dt!==void 0&&(ne.origin=dt)}),gt(a,"beforeChange",a,ne),a.cm&&gt(a.cm,"beforeChange",a.cm,ne),ne.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:ne.from,to:ne.to,text:ne.text,origin:ne.origin}}function Ba(a,b,oe){if(a.cm){if(!a.cm.curOp)return ai(a.cm,Ba)(a,b,oe);if(a.cm.state.suppressEdits)return}if(!((St(a,"beforeChange")||a.cm&&St(a.cm,"beforeChange"))&&(b=nl(a,b,!0),!b))){var ne=kn&&!oe&&Bn(a,b.from,b.to);if(ne)for(var me=ne.length-1;me>=0;--me)il(a,{from:ne[me].from,to:ne[me].to,text:me?[""]:b.text,origin:b.origin});else il(a,b)}}function il(a,b){if(!(b.text.length==1&&b.text[0]==""&&Qt(b.from,b.to)==0)){var oe=is(a,b);Gs(a,b,oe,a.cm?a.cm.curOp.id:NaN),io(a,b,oe,un(a,b));var ne=[];ma(a,function(me,Fe){!Fe&&rt(ne,me.history)==-1&&(ll(me.history,b),ne.push(me.history)),io(me,b,null,un(me,b))})}}function No(a,b,oe){var ne=a.cm&&a.cm.state.suppressEdits;if(!(ne&&!oe)){for(var me=a.history,Fe,qe=a.sel,dt=b=="undo"?me.done:me.undone,pt=b=="undo"?me.undone:me.done,bt=0;bt<dt.length&&(Fe=dt[bt],!(oe?Fe.ranges&&!Fe.equals(a.sel):!Fe.ranges));bt++);if(bt!=dt.length){for(me.lastOrigin=me.lastSelOrigin=null;;)if(Fe=dt.pop(),Fe.ranges){if(Po(Fe,pt),oe&&!Fe.equals(a.sel)){hi(a,Fe,{clearRedo:!1});return}qe=Fe}else if(ne){dt.push(Fe);return}else break;var kt=[];Po(qe,pt),pt.push({changes:kt,generation:me.generation}),me.generation=Fe.generation||++me.maxGeneration;for(var _t=St(a,"beforeChange")||a.cm&&St(a.cm,"beforeChange"),Ft=function(br){var Pr=Fe.changes[br];if(Pr.origin=b,_t&&!nl(a,Pr,!1))return dt.length=0,{};kt.push(ss(a,Pr));var Ur=br?is(a,Pr):st(dt);io(a,Pr,Ur,Vs(a,Pr)),!br&&a.cm&&a.cm.scrollIntoView({from:Pr.from,to:pa(Pr)});var Vr=[];ma(a,function(Hr,Xr){!Xr&&rt(Vr,Hr.history)==-1&&(ll(Hr.history,Pr),Vr.push(Hr.history)),io(Hr,Pr,null,Vs(Hr,Pr))})},It=Fe.changes.length-1;It>=0;--It){var ir=Ft(It);if(ir)return ir.v}}}}function al(a,b){if(b!=0&&(a.first+=b,a.sel=new Ni(ze(a.sel.ranges,function(me){return new Ln(Dt(me.anchor.line+b,me.anchor.ch),Dt(me.head.line+b,me.head.ch))}),a.sel.primIndex),a.cm)){Si(a.cm,a.first,a.first-b,b);for(var oe=a.cm.display,ne=oe.viewFrom;ne<oe.viewTo;ne++)fa(a.cm,ne,"gutter")}}function io(a,b,oe,ne){if(a.cm&&!a.cm.curOp)return ai(a.cm,io)(a,b,oe,ne);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 me=b.text.length-1-(a.first-b.from.line);al(a,me),b={from:Dt(a.first,0),to:Dt(b.to.line+me,b.to.ch),text:[st(b.text)],origin:b.origin}}var Fe=a.lastLine();b.to.line>Fe&&(b={from:b.from,to:Dt(Fe,Mt(a,Fe).text.length),text:[b.text[0]],origin:b.origin}),b.removed=rr(a,b.from,b.to),oe||(oe=is(a,b)),a.cm?pu(a.cm,b,ne):os(a,b,ne),Ro(a,oe,Je),a.cantEdit&&Io(a,Dt(a.firstLine(),0))&&(a.cantEdit=!1)}}function pu(a,b,oe){var ne=a.doc,me=a.display,Fe=b.from,qe=b.to,dt=!1,pt=Fe.line;a.options.lineWrapping||(pt=At(Br(Mt(ne,Fe.line))),ne.iter(pt,qe.line+1,function(It){if(It==me.maxLine)return dt=!0,!0})),ne.sel.contains(b.from,b.to)>-1&&xt(a),os(ne,b,oe,xs(a)),a.options.lineWrapping||(ne.iter(pt,Fe.line+b.text.length,function(It){var ir=Tn(It);ir>me.maxLineLength&&(me.maxLine=It,me.maxLineLength=ir,me.maxLineChanged=!0,dt=!1)}),dt&&(a.curOp.updateMaxLine=!0)),On(ne,Fe.line),to(a,400);var bt=b.text.length-(qe.line-Fe.line)-1;b.full?Si(a):Fe.line==qe.line&&b.text.length==1&&!Us(a.doc,b)?fa(a,Fe.line,"text"):Si(a,Fe.line,qe.line+1,bt);var kt=St(a,"changes"),_t=St(a,"change");if(_t||kt){var Ft={from:Fe,to:qe,text:b.text,removed:b.removed,origin:b.origin};_t&&Gn(a,"change",a,Ft),kt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ft)}a.display.selForContextMenu=null}function Fa(a,b,oe,ne,me){var Fe;ne||(ne=oe),Qt(ne,oe)<0&&(Fe=[ne,oe],oe=Fe[0],ne=Fe[1]),typeof b=="string"&&(b=a.splitLines(b)),Ba(a,{from:oe,to:ne,text:b,origin:me})}function ol(a,b,oe,ne){oe<a.line?a.line+=ne:b<a.line&&(a.line=b,a.ch=0)}function sl(a,b,oe,ne){for(var me=0;me<a.length;++me){var Fe=a[me],qe=!0;if(Fe.ranges){Fe.copied||(Fe=a[me]=Fe.deepCopy(),Fe.copied=!0);for(var dt=0;dt<Fe.ranges.length;dt++)ol(Fe.ranges[dt].anchor,b,oe,ne),ol(Fe.ranges[dt].head,b,oe,ne);continue}for(var pt=0;pt<Fe.changes.length;++pt){var bt=Fe.changes[pt];if(oe<bt.from.line)bt.from=Dt(bt.from.line+ne,bt.from.ch),bt.to=Dt(bt.to.line+ne,bt.to.ch);else if(b<=bt.to.line){qe=!1;break}}qe||(a.splice(0,me+1),me=0)}}function ll(a,b){var oe=b.from.line,ne=b.to.line,me=b.text.length-(ne-oe)-1;sl(a.done,oe,ne,me),sl(a.undone,oe,ne,me)}function ao(a,b,oe,ne){var me=b,Fe=b;return typeof b=="number"?Fe=Mt(a,wr(a,b)):me=At(b),me==null?null:(ne(Fe,me)&&a.cm&&fa(a.cm,me,oe),Fe)}function oo(a){this.lines=a,this.parent=null;for(var b=0,oe=0;oe<a.length;++oe)a[oe].parent=this,b+=a[oe].height;this.height=b}oo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var oe=a,ne=a+b;oe<ne;++oe){var me=this.lines[oe];this.height-=me.height,In(me),Gn(me,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,oe){this.height+=oe,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var ne=0;ne<b.length;++ne)b[ne].parent=this},iterN:function(a,b,oe){for(var ne=a+b;a<ne;++a)if(oe(this.lines[a]))return!0}};function so(a){this.children=a;for(var b=0,oe=0,ne=0;ne<a.length;++ne){var me=a[ne];b+=me.chunkSize(),oe+=me.height,me.parent=this}this.size=b,this.height=oe,this.parent=null}so.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var oe=0;oe<this.children.length;++oe){var ne=this.children[oe],me=ne.chunkSize();if(a<me){var Fe=Math.min(b,me-a),qe=ne.height;if(ne.removeInner(a,Fe),this.height-=qe-ne.height,me==Fe&&(this.children.splice(oe--,1),ne.parent=null),(b-=Fe)==0)break;a=0}else a-=me}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof oo))){var dt=[];this.collapse(dt),this.children=[new oo(dt)],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,oe){this.size+=b.length,this.height+=oe;for(var ne=0;ne<this.children.length;++ne){var me=this.children[ne],Fe=me.chunkSize();if(a<=Fe){if(me.insertInner(a,b,oe),me.lines&&me.lines.length>50){for(var qe=me.lines.length%25+25,dt=qe;dt<me.lines.length;){var pt=new oo(me.lines.slice(dt,dt+=25));me.height-=pt.height,this.children.splice(++ne,0,pt),pt.parent=this}me.lines=me.lines.slice(0,qe),this.maybeSpill()}break}a-=Fe}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),oe=new so(b);if(a.parent){a.size-=oe.size,a.height-=oe.height;var me=rt(a.parent.children,a);a.parent.children.splice(me+1,0,oe)}else{var ne=new so(a.children);ne.parent=a,a.children=[ne,oe],a=ne}oe.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,oe){for(var ne=0;ne<this.children.length;++ne){var me=this.children[ne],Fe=me.chunkSize();if(a<Fe){var qe=Math.min(b,Fe-a);if(me.iterN(a,qe,oe))return!0;if((b-=qe)==0)break;a=0}else a-=Fe}}};var lo=function(a,b,oe){if(oe)for(var ne in oe)oe.hasOwnProperty(ne)&&(this[ne]=oe[ne]);this.doc=a,this.node=b};lo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,oe=this.line,ne=At(oe);if(!(ne==null||!b)){for(var me=0;me<b.length;++me)b[me]==this&&b.splice(me--,1);b.length||(oe.widgets=null);var Fe=gi(this);Lr(oe,Math.max(0,oe.height-Fe)),a&&(ji(a,function(){ul(a,oe,-Fe),fa(a,ne,"widget")}),Gn(a,"lineWidgetCleared",a,this,ne))}},lo.prototype.changed=function(){var a=this,b=this.height,oe=this.doc.cm,ne=this.line;this.height=null;var me=gi(this)-b;me&&(Fr(this.doc,ne)||Lr(ne,ne.height+me),oe&&ji(oe,function(){oe.curOp.forceUpdate=!0,ul(oe,ne,me),Gn(oe,"lineWidgetChanged",oe,a,At(ne))}))},Ct(lo);function ul(a,b,oe){nn(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&$o(a,oe)}function mu(a,b,oe,ne){var me=new lo(a,oe,ne),Fe=a.cm;return Fe&&me.noHScroll&&(Fe.display.alignWidgets=!0),ao(a,b,"widget",function(qe){var dt=qe.widgets||(qe.widgets=[]);if(me.insertAt==null?dt.push(me):dt.splice(Math.min(dt.length-1,Math.max(0,me.insertAt)),0,me),me.line=qe,Fe&&!Fr(a,qe)){var pt=nn(qe)<a.scrollTop;Lr(qe,qe.height+gi(me)),pt&&$o(Fe,me.height),Fe.curOp.forceUpdate=!0}return!0}),Fe&&Gn(Fe,"lineWidgetAdded",Fe,me,typeof b=="number"?b:At(b)),me}var cl=0,va=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++cl};va.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&ka(a),St(this,"clear")){var oe=this.find();oe&&Gn(this,"clear",oe.from,oe.to)}for(var ne=null,me=null,Fe=0;Fe<this.lines.length;++Fe){var qe=this.lines[Fe],dt=Qr(qe.markedSpans,this);a&&!this.collapsed?fa(a,At(qe),"text"):a&&(dt.to!=null&&(me=At(qe)),dt.from!=null&&(ne=At(qe))),qe.markedSpans=Yr(qe.markedSpans,dt),dt.from==null&&this.collapsed&&!Fr(this.doc,qe)&&a&&Lr(qe,Oi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var pt=0;pt<this.lines.length;++pt){var bt=Br(this.lines[pt]),kt=Tn(bt);kt>a.display.maxLineLength&&(a.display.maxLine=bt,a.display.maxLineLength=kt,a.display.maxLineChanged=!0)}ne!=null&&a&&this.collapsed&&Si(a,ne,me+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&$s(a.doc)),a&&Gn(a,"markerCleared",a,this,ne,me),b&&Aa(a),this.parent&&this.parent.clear()}},va.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var oe,ne,me=0;me<this.lines.length;++me){var Fe=this.lines[me],qe=Qr(Fe.markedSpans,this);if(qe.from!=null&&(oe=Dt(b?Fe:At(Fe),qe.from),a==-1))return oe;if(qe.to!=null&&(ne=Dt(b?Fe:At(Fe),qe.to),a==1))return ne}return oe&&{from:oe,to:ne}},va.prototype.changed=function(){var a=this,b=this.find(-1,!0),oe=this,ne=this.doc.cm;!b||!ne||ji(ne,function(){var me=b.line,Fe=At(b.line),qe=qi(ne,Fe);if(qe&&(Ka(qe),ne.curOp.selectionChanged=ne.curOp.forceUpdate=!0),ne.curOp.updateMaxLine=!0,!Fr(oe.doc,me)&&oe.height!=null){var dt=oe.height;oe.height=null;var pt=gi(oe)-dt;pt&&Lr(me,me.height+pt)}Gn(ne,"markerChanged",ne,a)})},va.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||rt(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},va.prototype.detachLine=function(a){if(this.lines.splice(rt(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Ct(va);function La(a,b,oe,ne,me){if(ne&&ne.shared)return vu(a,b,oe,ne,me);if(a.cm&&!a.cm.curOp)return ai(a.cm,La)(a,b,oe,ne,me);var Fe=new va(a,me),qe=Qt(b,oe);if(ne&&lt(ne,Fe,!1),qe>0||qe==0&&Fe.clearWhenEmpty!==!1)return Fe;if(Fe.replacedWith&&(Fe.collapsed=!0,Fe.widgetNode=Ee("span",[Fe.replacedWith],"CodeMirror-widget"),ne.handleMouseEvents||Fe.widgetNode.setAttribute("cm-ignore-events","true"),ne.insertLeft&&(Fe.widgetNode.insertLeft=!0)),Fe.collapsed){if(Kr(a,b.line,b,oe,Fe)||b.line!=oe.line&&Kr(a,oe.line,b,oe,Fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");mr()}Fe.addToHistory&&Gs(a,{from:b,to:oe,origin:"markText"},a.sel,NaN);var dt=b.line,pt=a.cm,bt;if(a.iter(dt,oe.line+1,function(_t){pt&&Fe.collapsed&&!pt.options.lineWrapping&&Br(_t)==pt.display.maxLine&&(bt=!0),Fe.collapsed&&dt!=b.line&&Lr(_t,0),Jr(_t,new Rr(Fe,dt==b.line?b.ch:null,dt==oe.line?oe.ch:null)),++dt}),Fe.collapsed&&a.iter(b.line,oe.line+1,function(_t){Fr(a,_t)&&Lr(_t,0)}),Fe.clearOnEnter&&yt(Fe,"beforeCursorEnter",function(){return Fe.clear()}),Fe.readOnly&&(Rn(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Fe.collapsed&&(Fe.id=++cl,Fe.atomic=!0),pt){if(bt&&(pt.curOp.updateMaxLine=!0),Fe.collapsed)Si(pt,b.line,oe.line+1);else if(Fe.className||Fe.startStyle||Fe.endStyle||Fe.css||Fe.attributes||Fe.title)for(var kt=b.line;kt<=oe.line;kt++)fa(pt,kt,"text");Fe.atomic&&$s(pt.doc),Gn(pt,"markerAdded",pt,Fe)}return Fe}var uo=function(a,b){this.markers=a,this.primary=b;for(var oe=0;oe<a.length;++oe)a[oe].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();Gn(this,"clear")}},uo.prototype.find=function(a,b){return this.primary.find(a,b)},Ct(uo);function vu(a,b,oe,ne,me){ne=lt(ne),ne.shared=!1;var Fe=[La(a,b,oe,ne,me)],qe=Fe[0],dt=ne.widgetNode;return ma(a,function(pt){dt&&(ne.widgetNode=dt.cloneNode(!0)),Fe.push(La(pt,Gt(pt,b),Gt(pt,oe),ne,me));for(var bt=0;bt<pt.linked.length;++bt)if(pt.linked[bt].isParent)return;qe=st(Fe)}),new uo(Fe,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 oe=0;oe<b.length;oe++){var ne=b[oe],me=ne.find(),Fe=a.clipPos(me.from),qe=a.clipPos(me.to);if(Qt(Fe,qe)){var dt=La(a,Fe,qe,ne.primary,ne.primary.type);ne.markers.push(dt),dt.parent=ne}}}function yu(a){for(var b=function(ne){var me=a[ne],Fe=[me.primary.doc];ma(me.primary.doc,function(pt){return Fe.push(pt)});for(var qe=0;qe<me.markers.length;qe++){var dt=me.markers[qe];rt(Fe,dt.doc)==-1&&(dt.parent=null,me.markers.splice(qe--,1))}},oe=0;oe<a.length;oe++)b(oe)}var bu=0,Ei=function(a,b,oe,ne,me){if(!(this instanceof Ei))return new Ei(a,b,oe,ne,me);oe==null&&(oe=0),so.call(this,[new oo([new jn("",null)])]),this.first=oe,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=oe;var Fe=Dt(oe,0);this.sel=ha(Fe),this.history=new jo(null),this.id=++bu,this.modeOption=b,this.lineSep=ne,this.direction=me=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),os(this,{from:Fe,to:Fe,text:a}),hi(this,ha(Fe),Je)};Ei.prototype=Ie(so.prototype,{constructor:Ei,iter:function(a,b,oe){oe?this.iterN(a-this.first,b-a,oe):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var oe=0,ne=0;ne<b.length;++ne)oe+=b[ne].height;this.insertInner(a-this.first,b,oe)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=gr(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:oi(function(a){var b=Dt(this.first,0),oe=this.first+this.size-1;Ba(this,{from:b,to:Dt(oe,Mt(this,oe).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qa(this.cm,0,0),hi(this,ha(b),Je)}),replaceRange:function(a,b,oe,ne){b=Gt(this,b),oe=oe?Gt(this,oe):b,Fa(this,a,b,oe,ne)},getRange:function(a,b,oe){var ne=rr(this,Gt(this,a),Gt(this,b));return oe===!1?ne:ne.join(oe||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(nr(this,a))return Mt(this,a)},getLineNumber:function(a){return At(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Mt(this,a)),Br(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(),oe;return a==null||a=="head"?oe=b.head:a=="anchor"?oe=b.anchor:a=="end"||a=="to"||a===!1?oe=b.to():oe=b.from(),oe},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:oi(function(a,b,oe){Ys(this,Gt(this,typeof a=="number"?Dt(a,b||0):a),null,oe)}),setSelection:oi(function(a,b,oe){Ys(this,Gt(this,a),Gt(this,b||a),oe)}),extendSelection:oi(function(a,b,oe){Mo(this,Gt(this,a),b&&Gt(this,b),oe)}),extendSelections:oi(function(a,b){Xs(this,lr(this,a),b)}),extendSelectionsBy:oi(function(a,b){var oe=ze(this.sel.ranges,a);Xs(this,lr(this,oe),b)}),setSelections:oi(function(a,b,oe){if(a.length){for(var ne=[],me=0;me<a.length;me++)ne[me]=new Ln(Gt(this,a[me].anchor),Gt(this,a[me].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),hi(this,Vi(this.cm,ne,b),oe)}}),addSelection:oi(function(a,b,oe){var ne=this.sel.ranges.slice(0);ne.push(new Ln(Gt(this,a),Gt(this,b||a))),hi(this,Vi(this.cm,ne,ne.length-1),oe)}),getSelection:function(a){for(var b=this.sel.ranges,oe,ne=0;ne<b.length;ne++){var me=rr(this,b[ne].from(),b[ne].to());oe=oe?oe.concat(me):me}return a===!1?oe:oe.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],oe=this.sel.ranges,ne=0;ne<oe.length;ne++){var me=rr(this,oe[ne].from(),oe[ne].to());a!==!1&&(me=me.join(a||this.lineSeparator())),b[ne]=me}return b},replaceSelection:function(a,b,oe){for(var ne=[],me=0;me<this.sel.ranges.length;me++)ne[me]=a;this.replaceSelections(ne,b,oe||"+input")},replaceSelections:oi(function(a,b,oe){for(var ne=[],me=this.sel,Fe=0;Fe<me.ranges.length;Fe++){var qe=me.ranges[Fe];ne[Fe]={from:qe.from(),to:qe.to(),text:this.splitLines(a[Fe]),origin:oe}}for(var dt=b&&b!="end"&&ou(this,ne,b),pt=ne.length-1;pt>=0;pt--)Ba(this,ne[pt]);dt?Js(this,dt):this.cm&&Ma(this.cm)}),undo:oi(function(){No(this,"undo")}),redo:oi(function(){No(this,"redo")}),undoSelection:oi(function(){No(this,"undo",!0)}),redoSelection:oi(function(){No(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,oe=0,ne=0;ne<a.done.length;ne++)a.done[ne].ranges||++b;for(var me=0;me<a.undone.length;me++)a.undone[me].ranges||++oe;return{undo:b,redo:oe}},clearHistory:function(){var a=this;this.history=new jo(this.history.maxGeneration),ma(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:oi(function(a,b,oe){return ao(this,a,"gutter",function(ne){var me=ne.gutterMarkers||(ne.gutterMarkers={});return me[b]=oe,!oe&&nt(me)&&(ne.gutterMarkers=null),!0})}),clearGutter:oi(function(a){var b=this;this.iter(function(oe){oe.gutterMarkers&&oe.gutterMarkers[a]&&ao(b,oe,"gutter",function(){return oe.gutterMarkers[a]=null,nt(oe.gutterMarkers)&&(oe.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!nr(this,a)||(b=a,a=Mt(this,a),!a))return null}else if(b=At(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:oi(function(a,b,oe){return ao(this,a,b=="gutter"?"gutter":"class",function(ne){var me=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!ne[me])ne[me]=oe;else{if(ke(oe).test(ne[me]))return!1;ne[me]+=" "+oe}return!0})}),removeLineClass:oi(function(a,b,oe){return ao(this,a,b=="gutter"?"gutter":"class",function(ne){var me=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Fe=ne[me];if(Fe)if(oe==null)ne[me]=null;else{var qe=Fe.match(ke(oe));if(!qe)return!1;var dt=qe.index+qe[0].length;ne[me]=Fe.slice(0,qe.index)+(!qe.index||dt==Fe.length?"":" ")+Fe.slice(dt)||null}else return!1;return!0})}),addLineWidget:oi(function(a,b,oe){return mu(this,a,b,oe)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,oe){return La(this,Gt(this,a),Gt(this,b),oe,oe&&oe.type||"range")},setBookmark:function(a,b){var oe={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,oe,"bookmark")},findMarksAt:function(a){a=Gt(this,a);var b=[],oe=Mt(this,a.line).markedSpans;if(oe)for(var ne=0;ne<oe.length;++ne){var me=oe[ne];(me.from==null||me.from<=a.ch)&&(me.to==null||me.to>=a.ch)&&b.push(me.marker.parent||me.marker)}return b},findMarks:function(a,b,oe){a=Gt(this,a),b=Gt(this,b);var ne=[],me=a.line;return this.iter(a.line,b.line+1,function(Fe){var qe=Fe.markedSpans;if(qe)for(var dt=0;dt<qe.length;dt++){var pt=qe[dt];!(pt.to!=null&&me==a.line&&a.ch>=pt.to||pt.from==null&&me!=a.line||pt.from!=null&&me==b.line&&pt.from>=b.ch)&&(!oe||oe(pt.marker))&&ne.push(pt.marker.parent||pt.marker)}++me}),ne},getAllMarks:function(){var a=[];return this.iter(function(b){var oe=b.markedSpans;if(oe)for(var ne=0;ne<oe.length;++ne)oe[ne].from!=null&&a.push(oe[ne].marker)}),a},posFromIndex:function(a){var b,oe=this.first,ne=this.lineSeparator().length;return this.iter(function(me){var Fe=me.text.length+ne;if(Fe>a)return b=a,!0;a-=Fe,++oe}),Gt(this,Dt(oe,b))},indexFromPos:function(a){a=Gt(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var oe=this.lineSeparator().length;return this.iter(this.first,a.line,function(ne){b+=ne.text.length+oe}),b},copy:function(a){var b=new Ei(gr(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,oe=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<oe&&(oe=a.to);var ne=new Ei(gr(this,b,oe),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(ne.history=this.history),(this.linked||(this.linked=[])).push({doc:ne,sharedHist:a.sharedHist}),ne.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(ne,fl(this)),ne},unlinkDoc:function(a){if(a instanceof Kn&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var oe=this.linked[b];if(oe.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),yu(fl(this));break}}if(a.history==this.history){var ne=[a.id];ma(a,function(me){return ne.push(me.id)},!0),a.history=new jo(null),a.history.done=Ia(this.history.done,ne),a.history.undone=Ia(this.history.undone,ne)}},iterLinkedDocs:function(a){ma(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:oi(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))})}),Ei.prototype.eachLine=Ei.prototype.iter;var dl=0;function wu(a){var b=this;if(hl(b),!(ht(b,a)||ui(b.display,a))){jt(a),ge&&(dl=+new Date);var oe=xa(b,a,!0),ne=a.dataTransfer.files;if(!(!oe||b.isReadOnly()))if(ne&&ne.length&&window.FileReader&&window.File)for(var me=ne.length,Fe=Array(me),qe=0,dt=function(){++qe==me&&ai(b,function(){oe=Gt(b.doc,oe);var It={from:oe,to:oe,text:b.doc.splitLines(Fe.filter(function(ir){return ir!=null}).join(b.doc.lineSeparator())),origin:"paste"};Ba(b.doc,It),Js(b.doc,ha(Gt(b.doc,oe),Gt(b.doc,pa(It))))})()},pt=function(It,ir){if(b.options.allowDropFileTypes&&rt(b.options.allowDropFileTypes,It.type)==-1){dt();return}var br=new FileReader;br.onerror=function(){return dt()},br.onload=function(){var Pr=br.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Pr)){dt();return}Fe[ir]=Pr,dt()},br.readAsText(It)},bt=0;bt<ne.length;bt++)pt(ne[bt],bt);else{if(b.state.draggingText&&b.doc.sel.contains(oe)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var kt=a.dataTransfer.getData("Text");if(kt){var _t;if(b.state.draggingText&&!b.state.draggingText.copy&&(_t=b.listSelections()),Ro(b.doc,ha(oe,oe)),_t)for(var Ft=0;Ft<_t.length;++Ft)Fa(b.doc,"",_t[Ft].anchor,_t[Ft].head,"drag");b.replaceSelection(kt,"around","paste"),b.display.input.focus()}}catch(It){}}}}function xu(a,b){if(ge&&(!a.state.draggingText||+new Date-dl<100)){qt(b);return}if(!(ht(a,b)||ui(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!se)){var oe=be("img",null,null,"position: fixed; left: 0; top: 0;");oe.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",z&&(oe.width=oe.height=1,a.display.wrapper.appendChild(oe),oe._top=oe.offsetTop),b.dataTransfer.setDragImage(oe,0,0),z&&oe.parentNode.removeChild(oe)}}function Su(a,b){var oe=xa(a,b);if(oe){var ne=document.createDocumentFragment();Cs(a,oe,ne),a.display.dragCursor||(a.display.dragCursor=be("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ve(a.display.dragCursor,ne)}}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"),oe=[],ne=0;ne<b.length;ne++){var me=b[ne].CodeMirror;me&&oe.push(me)}oe.length&&oe[0].operation(function(){for(var Fe=0;Fe<oe.length;Fe++)a(oe[Fe])})}}var ml=!1;function Eu(){ml||(Cu(),ml=!0)}function Cu(){var a;yt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,pl(ku)},100))}),yt(window,"blur",function(){return pl(Pa)})}function ku(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var ga={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++)ga[co+48]=ga[co+96]=String(co);for(var Bo=65;Bo<=90;Bo++)ga[Bo]=String.fromCharCode(Bo);for(var fo=1;fo<=12;fo++)ga[fo+111]=ga[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=fe?ia.macDefault:ia.pcDefault;function Au(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var oe,ne,me,Fe,qe=0;qe<b.length-1;qe++){var dt=b[qe];if(/^(cmd|meta|m)$/i.test(dt))Fe=!0;else if(/^a(lt)?$/i.test(dt))oe=!0;else if(/^(c|ctrl|control)$/i.test(dt))ne=!0;else if(/^s(hift)?$/i.test(dt))me=!0;else throw new Error("Unrecognized modifier name: "+dt)}return oe&&(a="Alt-"+a),ne&&(a="Ctrl-"+a),Fe&&(a="Cmd-"+a),me&&(a="Shift-"+a),a}function Tu(a){var b={};for(var oe in a)if(a.hasOwnProperty(oe)){var ne=a[oe];if(/^(name|fallthrough|(de|at)tach)$/.test(oe))continue;if(ne=="..."){delete a[oe];continue}for(var me=ze(oe.split(" "),Au),Fe=0;Fe<me.length;Fe++){var qe=void 0,dt=void 0;Fe==me.length-1?(dt=me.join(" "),qe=ne):(dt=me.slice(0,Fe+1).join(" "),qe="...");var pt=b[dt];if(!pt)b[dt]=qe;else if(pt!=qe)throw new Error("Inconsistent bindings for "+dt)}delete a[oe]}for(var bt in b)a[bt]=b[bt];return a}function Wa(a,b,oe,ne){b=Fo(b);var me=b.call?b.call(a,ne):b[a];if(me===!1)return"nothing";if(me==="...")return"multi";if(me!=null&&oe(me))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return Wa(a,b.fallthrough,oe,ne);for(var Fe=0;Fe<b.fallthrough.length;Fe++){var qe=Wa(a,b.fallthrough[Fe],oe,ne);if(qe)return qe}}}function vl(a){var b=typeof a=="string"?a:ga[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function gl(a,b,oe){var ne=a;return b.altKey&&ne!="Alt"&&(a="Alt-"+a),(pe?b.metaKey:b.ctrlKey)&&ne!="Ctrl"&&(a="Ctrl-"+a),(pe?b.ctrlKey:b.metaKey)&&ne!="Mod"&&(a="Cmd-"+a),!oe&&b.shiftKey&&ne!="Shift"&&(a="Shift-"+a),a}function yl(a,b){if(z&&a.keyCode==34&&a.char)return!1;var oe=ga[a.keyCode];return oe==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(oe=a.code),gl(oe,a,b))}function Fo(a){return typeof a=="string"?ia[a]:a}function Ua(a,b){for(var oe=a.doc.sel.ranges,ne=[],me=0;me<oe.length;me++){for(var Fe=b(oe[me]);ne.length&&Qt(Fe.from,st(ne).to)<=0;){var qe=ne.pop();if(Qt(qe.from,Fe.from)<0){Fe.from=qe.from;break}}ne.push(Fe)}ji(a,function(){for(var dt=ne.length-1;dt>=0;dt--)Fa(a.doc,"",ne[dt].from,ne[dt].to,"+delete");Ma(a)})}function cs(a,b,oe){var ne=He(a.text,b+oe,oe);return ne<0||ne>a.text.length?null:ne}function fs(a,b,oe){var ne=cs(a,b.ch,oe);return ne==null?null:new Dt(b.line,ne,oe<0?"after":"before")}function ds(a,b,oe,ne,me){if(a){b.doc.direction=="rtl"&&(me=-me);var Fe=et(oe,b.doc.direction);if(Fe){var qe=me<0?st(Fe):Fe[0],dt=me<0==(qe.level==1),pt=dt?"after":"before",bt;if(qe.level>0||b.doc.direction=="rtl"){var kt=ua(b,oe);bt=me<0?oe.text.length-1:0;var _t=Wi(b,kt,bt).top;bt=it(function(Ft){return Wi(b,kt,Ft).top==_t},me<0==(qe.level==1)?qe.from:qe.to-1,bt),pt=="before"&&(bt=cs(oe,bt,1))}else bt=me<0?qe.to:qe.from;return new Dt(ne,bt,pt)}}return new Dt(ne,me<0?oe.text.length:0,me<0?"before":"after")}function _u(a,b,oe,ne){var me=et(b,a.doc.direction);if(!me)return fs(b,oe,ne);oe.ch>=b.text.length?(oe.ch=b.text.length,oe.sticky="before"):oe.ch<=0&&(oe.ch=0,oe.sticky="after");var Fe=ye(me,oe.ch,oe.sticky),qe=me[Fe];if(a.doc.direction=="ltr"&&qe.level%2==0&&(ne>0?qe.to>oe.ch:qe.from<oe.ch))return fs(b,oe,ne);var dt=function(Ur,Vr){return cs(b,Ur instanceof Dt?Ur.ch:Ur,Vr)},pt,bt=function(Ur){return a.options.lineWrapping?(pt=pt||ua(a,b),Qn(a,b,pt,Ur)):{begin:0,end:b.text.length}},kt=bt(oe.sticky=="before"?dt(oe,-1):oe.ch);if(a.doc.direction=="rtl"||qe.level==1){var _t=qe.level==1==ne<0,Ft=dt(oe,_t?1:-1);if(Ft!=null&&(_t?Ft<=qe.to&&Ft<=kt.end:Ft>=qe.from&&Ft>=kt.begin)){var It=_t?"before":"after";return new Dt(oe.line,Ft,It)}}var ir=function(Ur,Vr,Hr){for(var Xr=function(zn,si){return si?new Dt(oe.line,dt(zn,1),"before"):new Dt(oe.line,zn,"after")};Ur>=0&&Ur<me.length;Ur+=Vr){var sn=me[Ur],tn=Vr>0==(sn.level!=1),En=tn?Hr.begin:dt(Hr.end,-1);if(sn.from<=En&&En<sn.to||(En=tn?sn.from:dt(sn.to,-1),Hr.begin<=En&&En<Hr.end))return Xr(En,tn)}},br=ir(Fe+ne,ne,kt);if(br)return br;var Pr=ne>0?kt.end:dt(kt.begin,-1);return Pr!=null&&!(ne>0&&Pr==b.text.length)&&(br=ir(ne>0?0:me.length-1,ne,bt(Pr)),br)?br:null}var ho={selectAll:rl,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Je)},killLine:function(a){return Ua(a,function(b){if(b.empty()){var oe=Mt(a.doc,b.head.line).text.length;return b.head.ch==oe&&b.head.line<a.lastLine()?{from:b.head,to:Dt(b.head.line+1,0)}:{from:b.head,to:Dt(b.head.line,oe)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return Ua(a,function(b){return{from:Dt(b.from().line,0),to:Gt(a.doc,Dt(b.to().line+1,0))}})},delLineLeft:function(a){return Ua(a,function(b){return{from:Dt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return Ua(a,function(b){var oe=a.charCoords(b.head,"div").top+5,ne=a.coordsChar({left:0,top:oe},"div");return{from:ne,to:b.from()}})},delWrappedLineRight:function(a){return Ua(a,function(b){var oe=a.charCoords(b.head,"div").top+5,ne=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:oe},"div");return{from:b.from(),to:ne}})},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 oe=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:oe},"div")},Ve)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var oe=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:oe},"div")},Ve)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var oe=a.cursorCoords(b.head,"div").top+5,ne=a.coordsChar({left:0,top:oe},"div");return ne.ch<a.getLine(ne.line).search(/\S/)?wl(a,b.head):ne},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=[],oe=a.listSelections(),ne=a.options.tabSize,me=0;me<oe.length;me++){var Fe=oe[me].from(),qe=Re(a.getLine(Fe.line),Fe.ch,ne);b.push(ut(ne-qe%ne))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return ji(a,function(){for(var b=a.listSelections(),oe=[],ne=0;ne<b.length;ne++)if(b[ne].empty()){var me=b[ne].head,Fe=Mt(a.doc,me.line).text;if(Fe){if(me.ch==Fe.length&&(me=new Dt(me.line,me.ch-1)),me.ch>0)me=new Dt(me.line,me.ch+1),a.replaceRange(Fe.charAt(me.ch-1)+Fe.charAt(me.ch-2),Dt(me.line,me.ch-2),me,"+transpose");else if(me.line>a.doc.first){var qe=Mt(a.doc,me.line-1).text;qe&&(me=new Dt(me.line,1),a.replaceRange(Fe.charAt(0)+a.doc.lineSeparator()+qe.charAt(qe.length-1),Dt(me.line-1,qe.length-1),me,"+transpose"))}}oe.push(new Ln(me,me))}a.setSelections(oe)})},newlineAndIndent:function(a){return ji(a,function(){for(var b=a.listSelections(),oe=b.length-1;oe>=0;oe--)a.replaceRange(a.doc.lineSeparator(),b[oe].anchor,b[oe].head,"+input");b=a.listSelections();for(var ne=0;ne<b.length;ne++)a.indentLine(b[ne].from().line,null,!0);Ma(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function bl(a,b){var oe=Mt(a.doc,b),ne=Br(oe);return ne!=oe&&(b=At(ne)),ds(!0,a,ne,b,1)}function Du(a,b){var oe=Mt(a.doc,b),ne=rn(oe);return ne!=oe&&(b=At(ne)),ds(!0,a,oe,b,-1)}function wl(a,b){var oe=bl(a,b.line),ne=Mt(a.doc,oe.line),me=et(ne,a.doc.direction);if(!me||me[0].level==0){var Fe=Math.max(oe.ch,ne.text.search(/\S/)),qe=b.line==oe.line&&b.ch<=Fe&&b.ch;return Dt(oe.line,qe?0:Fe,oe.sticky)}return oe}function Lo(a,b,oe){if(typeof b=="string"&&(b=ho[b],!b))return!1;a.display.input.ensurePolled();var ne=a.display.shift,me=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),oe&&(a.display.shift=!1),me=b(a)!=at}finally{a.display.shift=ne,a.state.suppressEdits=!1}return me}function Ou(a,b,oe){for(var ne=0;ne<a.state.keyMaps.length;ne++){var me=Wa(b,a.state.keyMaps[ne],oe,a);if(me)return me}return a.options.extraKeys&&Wa(b,a.options.extraKeys,oe,a)||Wa(b,a.options.keyMap,oe,a)}var ju=new We;function po(a,b,oe,ne){var me=a.state.keySeq;if(me){if(vl(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:ju.set(50,function(){a.state.keySeq==me&&(a.state.keySeq=null,a.display.input.reset())}),xl(a,me+" "+b,oe,ne))return!0}return xl(a,b,oe,ne)}function xl(a,b,oe,ne){var me=Ou(a,b,ne);return me=="multi"&&(a.state.keySeq=b),me=="handled"&&Gn(a,"keyHandled",a,b,oe),(me=="handled"||me=="multi")&&(jt(oe),Yo(a)),!!me}function Sl(a,b){var oe=yl(b,!0);return oe?b.shiftKey&&!a.state.keySeq?po(a,"Shift-"+oe,b,function(ne){return Lo(a,ne,!0)})||po(a,oe,b,function(ne){if(typeof ne=="string"?/^go[A-Z]/.test(ne):ne.motion)return Lo(a,ne)}):po(a,oe,b,function(ne){return Lo(a,ne)}):!1}function Pu(a,b,oe){return po(a,"'"+oe+"'",b,function(ne){return Lo(a,ne,!0)})}var hs=null;function El(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Se(),!ht(b,a))){ge&&ee<11&&a.keyCode==27&&(a.returnValue=!1);var oe=a.keyCode;b.display.shift=oe==16||a.shiftKey;var ne=Sl(b,a);z&&(hs=ne?oe:null,!ne&&oe==88&&!Xt&&(fe?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),Ue&&!fe&&!ne&&oe==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),oe==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Mu(b)}}function Mu(a){var b=a.display.lineDiv;je(b,"CodeMirror-crosshair");function oe(ne){(ne.keyCode==18||!ne.altKey)&&(De(b,"CodeMirror-crosshair"),vt(document,"keyup",oe),vt(document,"mouseover",oe))}yt(document,"keyup",oe),yt(document,"mouseover",oe)}function Cl(a){a.keyCode==16&&(this.doc.sel.shift=!1),ht(this,a)}function kl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(ui(b.display,a)||ht(b,a)||a.ctrlKey&&!a.altKey||fe&&a.metaKey)){var oe=a.keyCode,ne=a.charCode;if(z&&oe==hs){hs=null,jt(a);return}if(!(z&&(!a.which||a.which<10)&&Sl(b,a))){var me=String.fromCharCode(ne==null?oe:ne);me!="\b"&&(Pu(b,a,me)||b.display.input.onKeyPress(a))}}}var Ru=400,ps=function(a,b,oe){this.time=a,this.pos=b,this.button=oe};ps.prototype.compare=function(a,b,oe){return this.time+Ru>a&&Qt(b,this.pos)==0&&oe==this.button};var mo,vo;function Iu(a,b){var oe=+new Date;return vo&&vo.compare(oe,a,b)?(mo=vo=null,"triple"):mo&&mo.compare(oe,a,b)?(vo=new ps(oe,a,b),mo=null,"double"):(mo=new ps(oe,a,b),vo=null,"single")}function Al(a){var b=this,oe=b.display;if(!(ht(b,a)||oe.activeTouch&&oe.input.supportsTouch())){if(oe.input.ensurePolled(),oe.shift=a.shiftKey,ui(oe,a)){E||(oe.scroller.draggable=!1,setTimeout(function(){return oe.scroller.draggable=!0},100));return}if(!ms(b,a)){var ne=xa(b,a),me=pr(a),Fe=ne?Iu(ne,me):"single";window.focus(),me==1&&b.state.selectingText&&b.state.selectingText(a),!(ne&&Nu(b,me,ne,Fe,a))&&(me==1?ne?Fu(b,ne,Fe,a):xr(a)==oe.scroller&&jt(a):me==2?(ne&&Mo(b.doc,ne),setTimeout(function(){return oe.input.focus()},20)):me==3&&(Ce?b.display.input.onContextMenu(a):As(b)))}}}function Nu(a,b,oe,ne,me){var Fe="Click";return ne=="double"?Fe="Double"+Fe:ne=="triple"&&(Fe="Triple"+Fe),Fe=(b==1?"Left":b==2?"Middle":"Right")+Fe,po(a,gl(Fe,me),me,function(qe){if(typeof qe=="string"&&(qe=ho[qe]),!qe)return!1;var dt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),dt=qe(a,oe)!=at}finally{a.state.suppressEdits=!1}return dt})}function Bu(a,b,oe){var ne=a.getOption("configureMouse"),me=ne?ne(a,b,oe):{};if(me.unit==null){var Fe=de?oe.shiftKey&&oe.metaKey:oe.altKey;me.unit=Fe?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(me.extend==null||a.doc.extend)&&(me.extend=a.doc.extend||oe.shiftKey),me.addNew==null&&(me.addNew=fe?oe.metaKey:oe.ctrlKey),me.moveOnDrag==null&&(me.moveOnDrag=!(fe?oe.altKey:oe.ctrlKey)),me}function Fu(a,b,oe,ne){ge?setTimeout($e(ks,a),0):a.curOp.focus=Se();var me=Bu(a,oe,ne),Fe=a.doc.sel,qe;a.options.dragDrop&&Lt&&!a.isReadOnly()&&oe=="single"&&(qe=Fe.contains(b))>-1&&(Qt((qe=Fe.ranges[qe]).from(),b)<0||b.xRel>0)&&(Qt(qe.to(),b)>0||b.xRel<0)?Lu(a,ne,b,me):Wu(a,ne,b,me)}function Lu(a,b,oe,ne){var me=a.display,Fe=!1,qe=ai(a,function(bt){E&&(me.scroller.draggable=!1),a.state.draggingText=!1,vt(me.wrapper.ownerDocument,"mouseup",qe),vt(me.wrapper.ownerDocument,"mousemove",dt),vt(me.scroller,"dragstart",pt),vt(me.scroller,"drop",qe),Fe||(jt(bt),ne.addNew||Mo(a.doc,oe,null,null,ne.extend),E&&!se||ge&&ee==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),dt=function(bt){Fe=Fe||Math.abs(b.clientX-bt.clientX)+Math.abs(b.clientY-bt.clientY)>=10},pt=function(){return Fe=!0};E&&(me.scroller.draggable=!0),a.state.draggingText=qe,qe.copy=!ne.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),yt(me.wrapper.ownerDocument,"mouseup",qe),yt(me.wrapper.ownerDocument,"mousemove",dt),yt(me.scroller,"dragstart",pt),yt(me.scroller,"drop",qe),As(a),setTimeout(function(){return me.input.focus()},20)}function Tl(a,b,oe){if(oe=="char")return new Ln(b,b);if(oe=="word")return a.findWordAt(b);if(oe=="line")return new Ln(Dt(b.line,0),Gt(a.doc,Dt(b.line+1,0)));var ne=oe(a,b);return new Ln(ne.from,ne.to)}function Wu(a,b,oe,ne){var me=a.display,Fe=a.doc;jt(b);var qe,dt,pt=Fe.sel,bt=pt.ranges;if(ne.addNew&&!ne.extend?(dt=Fe.sel.contains(oe),dt>-1?qe=bt[dt]:qe=new Ln(oe,oe)):(qe=Fe.sel.primary(),dt=Fe.sel.primIndex),ne.unit=="rectangle")ne.addNew||(qe=new Ln(oe,oe)),oe=xa(a,b,!0,!0),dt=-1;else{var kt=Tl(a,oe,ne.unit);ne.extend?qe=ls(qe,kt.anchor,kt.head,ne.extend):qe=kt}ne.addNew?dt==-1?(dt=bt.length,hi(Fe,Vi(a,bt.concat([qe]),dt),{scroll:!1,origin:"*mouse"})):bt.length>1&&bt[dt].empty()&&ne.unit=="char"&&!ne.extend?(hi(Fe,Vi(a,bt.slice(0,dt).concat(bt.slice(dt+1)),0),{scroll:!1,origin:"*mouse"}),pt=Fe.sel):us(Fe,dt,qe,Qe):(dt=0,hi(Fe,new Ni([qe],0),Qe),pt=Fe.sel);var _t=oe;function Ft(Hr){if(Qt(_t,Hr)!=0)if(_t=Hr,ne.unit=="rectangle"){for(var Xr=[],sn=a.options.tabSize,tn=Re(Mt(Fe,oe.line).text,oe.ch,sn),En=Re(Mt(Fe,Hr.line).text,Hr.ch,sn),zn=Math.min(tn,En),si=Math.max(tn,En),Xn=Math.min(oe.line,Hr.line),Pi=Math.min(a.lastLine(),Math.max(oe.line,Hr.line));Xn<=Pi;Xn++){var Ci=Mt(Fe,Xn).text,ei=ct(Ci,zn,sn);zn==si?Xr.push(new Ln(Dt(Xn,ei),Dt(Xn,ei))):Ci.length>ei&&Xr.push(new Ln(Dt(Xn,ei),Dt(Xn,ct(Ci,si,sn))))}Xr.length||Xr.push(new Ln(oe,oe)),hi(Fe,Vi(a,pt.ranges.slice(0,dt).concat(Xr),dt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Hr)}else{var ki=qe,fi=Tl(a,Hr,ne.unit),ii=ki.anchor,ti;Qt(fi.anchor,ii)>0?(ti=fi.head,ii=or(ki.from(),fi.anchor)):(ti=fi.anchor,ii=jr(ki.to(),fi.head));var Yn=pt.ranges.slice(0);Yn[dt]=Uu(a,new Ln(Gt(Fe,ii),ti)),hi(Fe,Vi(a,Yn,dt),Qe)}}var It=me.wrapper.getBoundingClientRect(),ir=0;function br(Hr){var Xr=++ir,sn=xa(a,Hr,!0,ne.unit=="rectangle");if(sn)if(Qt(sn,_t)!=0){a.curOp.focus=Se(),Ft(sn);var tn=To(me,Fe);(sn.line>=tn.to||sn.line<tn.from)&&setTimeout(ai(a,function(){ir==Xr&&br(Hr)}),150)}else{var En=Hr.clientY<It.top?-20:Hr.clientY>It.bottom?20:0;En&&setTimeout(ai(a,function(){ir==Xr&&(me.scroller.scrollTop+=En,br(Hr))}),50)}}function Pr(Hr){a.state.selectingText=!1,ir=1/0,Hr&&(jt(Hr),me.input.focus()),vt(me.wrapper.ownerDocument,"mousemove",Ur),vt(me.wrapper.ownerDocument,"mouseup",Vr),Fe.history.lastSelOrigin=null}var Ur=ai(a,function(Hr){Hr.buttons===0||!pr(Hr)?Pr(Hr):br(Hr)}),Vr=ai(a,Pr);a.state.selectingText=Vr,yt(me.wrapper.ownerDocument,"mousemove",Ur),yt(me.wrapper.ownerDocument,"mouseup",Vr)}function Uu(a,b){var oe=b.anchor,ne=b.head,me=Mt(a.doc,oe.line);if(Qt(oe,ne)==0&&oe.sticky==ne.sticky)return b;var Fe=et(me);if(!Fe)return b;var qe=ye(Fe,oe.ch,oe.sticky),dt=Fe[qe];if(dt.from!=oe.ch&&dt.to!=oe.ch)return b;var pt=qe+(dt.from==oe.ch==(dt.level!=1)?0:1);if(pt==0||pt==Fe.length)return b;var bt;if(ne.line!=oe.line)bt=(ne.line-oe.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var kt=ye(Fe,ne.ch,ne.sticky),_t=kt-qe||(ne.ch-oe.ch)*(dt.level==1?-1:1);kt==pt-1||kt==pt?bt=_t<0:bt=_t>0}var Ft=Fe[pt+(bt?-1:0)],It=bt==(Ft.level==1),ir=It?Ft.from:Ft.to,br=It?"after":"before";return oe.ch==ir&&oe.sticky==br?b:new Ln(new Dt(oe.line,ir,br),ne)}function _l(a,b,oe,ne){var me,Fe;if(b.touches)me=b.touches[0].clientX,Fe=b.touches[0].clientY;else try{me=b.clientX,Fe=b.clientY}catch(Ft){return!1}if(me>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;ne&&jt(b);var qe=a.display,dt=qe.lineDiv.getBoundingClientRect();if(Fe>dt.bottom||!St(a,oe))return Bt(b);Fe-=dt.top-qe.viewOffset;for(var pt=0;pt<a.display.gutterSpecs.length;++pt){var bt=qe.gutters.childNodes[pt];if(bt&&bt.getBoundingClientRect().right>=me){var kt=Tt(a.doc,Fe),_t=a.display.gutterSpecs[pt];return gt(a,oe,a,kt,_t.className,b),Bt(b)}}}function ms(a,b){return _l(a,b,"gutterClick",!0)}function Dl(a,b){ui(a.display,b)||Hu(a,b)||ht(a,b,"contextmenu")||Ce||a.display.input.onContextMenu(b)}function Hu(a,b){return St(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-"),wa(a)}var Ha={toString:function(){return"CodeMirror.Init"}},jl={},Wo={};function Zu(a){var b=a.optionHandlers;function oe(ne,me,Fe,qe){a.defaults[ne]=me,Fe&&(b[ne]=qe?function(dt,pt,bt){bt!=Ha&&Fe(dt,pt,bt)}:Fe)}a.defineOption=oe,a.Init=Ha,oe("value","",function(ne,me){return ne.setValue(me)},!0),oe("mode",null,function(ne,me){ne.doc.modeOption=me,as(ne)},!0),oe("indentUnit",2,as,!0),oe("indentWithTabs",!1),oe("smartIndent",!0),oe("tabSize",4,function(ne){no(ne),wa(ne),Si(ne)},!0),oe("lineSeparator",null,function(ne,me){if(ne.doc.lineSep=me,!!me){var Fe=[],qe=ne.doc.first;ne.doc.iter(function(pt){for(var bt=0;;){var kt=pt.text.indexOf(me,bt);if(kt==-1)break;bt=kt+me.length,Fe.push(Dt(qe,kt))}qe++});for(var dt=Fe.length-1;dt>=0;dt--)Fa(ne.doc,me,Fe[dt],Dt(Fe[dt].line,Fe[dt].ch+me.length))}}),oe("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ne,me,Fe){ne.state.specialChars=new RegExp(me.source+(me.test(" ")?"":"| "),"g"),Fe!=Ha&&ne.refresh()}),oe("specialCharPlaceholder",Ti,function(ne){return ne.refresh()},!0),oe("electricChars",!0),oe("inputStyle",ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),oe("spellcheck",!1,function(ne,me){return ne.getInputField().spellcheck=me},!0),oe("autocorrect",!1,function(ne,me){return ne.getInputField().autocorrect=me},!0),oe("autocapitalize",!1,function(ne,me){return ne.getInputField().autocapitalize=me},!0),oe("rtlMoveVisually",!he),oe("wholeLineUpdateBefore",!0),oe("theme","default",function(ne){Ol(ne),ro(ne)},!0),oe("keyMap","default",function(ne,me,Fe){var qe=Fo(me),dt=Fe!=Ha&&Fo(Fe);dt&&dt.detach&&dt.detach(ne,qe),qe.attach&&qe.attach(ne,dt||null)}),oe("extraKeys",null),oe("configureMouse",null),oe("lineWrapping",!1,Gu,!0),oe("gutters",[],function(ne,me){ne.display.gutterSpecs=ns(me,ne.options.lineNumbers),ro(ne)},!0),oe("fixedGutter",!0,function(ne,me){ne.display.gutters.style.left=me?Vo(ne.display)+"px":"0",ne.refresh()},!0),oe("coverGutterNextToScrollbar",!1,function(ne){return Ra(ne)},!0),oe("scrollbarStyle","native",function(ne){Ps(ne),Ra(ne),ne.display.scrollbars.setScrollTop(ne.doc.scrollTop),ne.display.scrollbars.setScrollLeft(ne.doc.scrollLeft)},!0),oe("lineNumbers",!1,function(ne,me){ne.display.gutterSpecs=ns(ne.options.gutters,me),ro(ne)},!0),oe("firstLineNumber",1,ro,!0),oe("lineNumberFormatter",function(ne){return ne},ro,!0),oe("showCursorWhenSelecting",!1,Ja,!0),oe("resetSelectionOnContextMenu",!0),oe("lineWiseCopyCut",!0),oe("pasteLinesPerSelection",!0),oe("selectionsMayTouch",!1),oe("readOnly",!1,function(ne,me){me=="nocursor"&&(Pa(ne),ne.display.input.blur()),ne.display.input.readOnlyChanged(me)}),oe("screenReaderLabel",null,function(ne,me){me=me===""?null:me,ne.display.input.screenReaderLabelChanged(me)}),oe("disableInput",!1,function(ne,me){me||ne.display.input.reset()},!0),oe("dragDrop",!0,zu),oe("allowDropFileTypes",null),oe("cursorBlinkRate",530),oe("cursorScrollMargin",0),oe("cursorHeight",1,Ja,!0),oe("singleCursorHeightPerLine",!0,Ja,!0),oe("workTime",100),oe("workDelay",100),oe("flattenSpans",!0,no,!0),oe("addModeClass",!1,no,!0),oe("pollInterval",100),oe("undoDepth",200,function(ne,me){return ne.doc.history.undoDepth=me}),oe("historyEventDelay",1250),oe("viewportMargin",10,function(ne){return ne.refresh()},!0),oe("maxHighlightLength",1e4,no,!0),oe("moveInputWithCursor",!0,function(ne,me){me||ne.display.input.resetPosition()}),oe("tabindex",null,function(ne,me){return ne.display.input.getField().tabIndex=me||""}),oe("autofocus",null),oe("direction","ltr",function(ne,me){return ne.doc.setDirection(me)},!0),oe("phrases",null)}function zu(a,b,oe){var ne=oe&&oe!=Ha;if(!b!=!ne){var me=a.display.dragFunctions,Fe=b?yt:vt;Fe(a.display.scroller,"dragstart",me.start),Fe(a.display.scroller,"dragenter",me.enter),Fe(a.display.scroller,"dragover",me.over),Fe(a.display.scroller,"dragleave",me.leave),Fe(a.display.scroller,"drop",me.drop)}}function Gu(a){a.options.lineWrapping?(je(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(De(a.display.wrapper,"CodeMirror-wrap"),vn(a)),Xo(a),Si(a),wa(a),setTimeout(function(){return Ra(a)},100)}function Kn(a,b){var oe=this;if(!(this instanceof Kn))return new Kn(a,b);this.options=b=b?lt(b):{},lt(jl,b,!1);var ne=b.value;typeof ne=="string"?ne=new Ei(ne,b.mode,null,b.lineSeparator,b.direction):b.mode&&(ne.modeOption=b.mode),this.doc=ne;var me=new Kn.inputStyles[b.inputStyle](this),Fe=this.display=new iu(a,ne,me,b);Fe.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&&Fe.input.focus(),ge&&ee<11&&setTimeout(function(){return oe.display.input.reset(!0)},20),Ku(this),Eu(),ka(this),this.curOp.forceUpdate=!0,Hs(this,ne),b.autofocus&&!ue||this.hasFocus()?setTimeout(function(){oe.hasFocus()&&!oe.state.focused&&Jo(oe)},20):Pa(this);for(var qe in Wo)Wo.hasOwnProperty(qe)&&Wo[qe](this,b[qe],Ha);Is(this),b.finishInit&&b.finishInit(this);for(var dt=0;dt<vs.length;++dt)vs[dt](this);Aa(this),E&&b.lineWrapping&&getComputedStyle(Fe.lineDiv).textRendering=="optimizelegibility"&&(Fe.lineDiv.style.textRendering="auto")}Kn.defaults=jl,Kn.optionHandlers=Wo;function Ku(a){var b=a.display;yt(b.scroller,"mousedown",ai(a,Al)),ge&&ee<11?yt(b.scroller,"dblclick",ai(a,function(pt){if(!ht(a,pt)){var bt=xa(a,pt);if(!(!bt||ms(a,pt)||ui(a.display,pt))){jt(pt);var kt=a.findWordAt(bt);Mo(a.doc,kt.anchor,kt.head)}}})):yt(b.scroller,"dblclick",function(pt){return ht(a,pt)||jt(pt)}),yt(b.scroller,"contextmenu",function(pt){return Dl(a,pt)}),yt(b.input.getField(),"contextmenu",function(pt){b.scroller.contains(pt.target)||Dl(a,pt)});var oe,ne={end:0};function me(){b.activeTouch&&(oe=setTimeout(function(){return b.activeTouch=null},1e3),ne=b.activeTouch,ne.end=+new Date)}function Fe(pt){if(pt.touches.length!=1)return!1;var bt=pt.touches[0];return bt.radiusX<=1&&bt.radiusY<=1}function qe(pt,bt){if(bt.left==null)return!0;var kt=bt.left-pt.left,_t=bt.top-pt.top;return kt*kt+_t*_t>20*20}yt(b.scroller,"touchstart",function(pt){if(!ht(a,pt)&&!Fe(pt)&&!ms(a,pt)){b.input.ensurePolled(),clearTimeout(oe);var bt=+new Date;b.activeTouch={start:bt,moved:!1,prev:bt-ne.end<=300?ne:null},pt.touches.length==1&&(b.activeTouch.left=pt.touches[0].pageX,b.activeTouch.top=pt.touches[0].pageY)}}),yt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),yt(b.scroller,"touchend",function(pt){var bt=b.activeTouch;if(bt&&!ui(b,pt)&&bt.left!=null&&!bt.moved&&new Date-bt.start<300){var kt=a.coordsChar(b.activeTouch,"page"),_t;!bt.prev||qe(bt,bt.prev)?_t=new Ln(kt,kt):!bt.prev.prev||qe(bt,bt.prev.prev)?_t=a.findWordAt(kt):_t=new Ln(Dt(kt.line,0),Gt(a.doc,Dt(kt.line+1,0))),a.setSelection(_t.anchor,_t.head),a.focus(),jt(pt)}me()}),yt(b.scroller,"touchcancel",me),yt(b.scroller,"scroll",function(){b.scroller.clientHeight&&($a(a,b.scroller.scrollTop),Ea(a,b.scroller.scrollLeft,!0),gt(a,"scroll",a))}),yt(b.scroller,"mousewheel",function(pt){return Fs(a,pt)}),yt(b.scroller,"DOMMouseScroll",function(pt){return Fs(a,pt)}),yt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(pt){ht(a,pt)||qt(pt)},over:function(pt){ht(a,pt)||(Su(a,pt),qt(pt))},start:function(pt){return xu(a,pt)},drop:ai(a,wu),leave:function(pt){ht(a,pt)||hl(a)}};var dt=b.input.getField();yt(dt,"keyup",function(pt){return Cl.call(a,pt)}),yt(dt,"keydown",ai(a,El)),yt(dt,"keypress",ai(a,kl)),yt(dt,"focus",function(pt){return Jo(a,pt)}),yt(dt,"blur",function(pt){return Pa(a,pt)})}var vs=[];Kn.defineInitHook=function(a){return vs.push(a)};function go(a,b,oe,ne){var me=a.doc,Fe;oe==null&&(oe="add"),oe=="smart"&&(me.mode.indent?Fe=ln(a,b).state:oe="prev");var qe=a.options.tabSize,dt=Mt(me,b),pt=Re(dt.text,null,qe);dt.stateAfter&&(dt.stateAfter=null);var bt=dt.text.match(/^\s*/)[0],kt;if(!ne&&!/\S/.test(dt.text))kt=0,oe="not";else if(oe=="smart"&&(kt=me.mode.indent(Fe,dt.text.slice(bt.length),dt.text),kt==at||kt>150)){if(!ne)return;oe="prev"}oe=="prev"?b>me.first?kt=Re(Mt(me,b-1).text,null,qe):kt=0:oe=="add"?kt=pt+a.options.indentUnit:oe=="subtract"?kt=pt-a.options.indentUnit:typeof oe=="number"&&(kt=pt+oe),kt=Math.max(0,kt);var _t="",Ft=0;if(a.options.indentWithTabs)for(var It=Math.floor(kt/qe);It;--It)Ft+=qe,_t+=" ";if(Ft<kt&&(_t+=ut(kt-Ft)),_t!=bt)return Fa(me,_t,Dt(b,0),Dt(b,bt.length),"+input"),dt.stateAfter=null,!0;for(var ir=0;ir<me.sel.ranges.length;ir++){var br=me.sel.ranges[ir];if(br.head.line==b&&br.head.ch<bt.length){var Pr=Dt(b,bt.length);us(me,ir,new Ln(Pr,Pr));break}}}var Xi=null;function Uo(a){Xi=a}function gs(a,b,oe,ne,me){var Fe=a.doc;a.display.shift=!1,ne||(ne=Fe.sel);var qe=+new Date-200,dt=me=="paste"||a.state.pasteIncoming>qe,pt=sr(b),bt=null;if(dt&&ne.ranges.length>1)if(Xi&&Xi.text.join(`
`)==b){if(ne.ranges.length%Xi.text.length==0){bt=[];for(var kt=0;kt<Xi.text.length;kt++)bt.push(Fe.splitLines(Xi.text[kt]))}}else pt.length==ne.ranges.length&&a.options.pasteLinesPerSelection&&(bt=ze(pt,function(Ur){return[Ur]}));for(var _t=a.curOp.updateInput,Ft=ne.ranges.length-1;Ft>=0;Ft--){var It=ne.ranges[Ft],ir=It.from(),br=It.to();It.empty()&&(oe&&oe>0?ir=Dt(ir.line,ir.ch-oe):a.state.overwrite&&!dt?br=Dt(br.line,Math.min(Mt(Fe,br.line).text.length,br.ch+st(pt).length)):dt&&Xi&&Xi.lineWise&&Xi.text.join(`
`)==pt.join(`
`)&&(ir=br=Dt(ir.line,0)));var Pr={from:ir,to:br,text:bt?bt[Ft%bt.length]:pt,origin:me||(dt?"paste":a.state.cutIncoming>qe?"cut":"+input")};Ba(a.doc,Pr),Gn(a,"inputRead",a,Pr)}b&&!dt&&Ml(a,b),Ma(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 oe=a.clipboardData&&a.clipboardData.getData("Text");if(oe)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&ji(b,function(){return gs(b,oe,0,null,"paste")}),!0}function Ml(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var oe=a.doc.sel,ne=oe.ranges.length-1;ne>=0;ne--){var me=oe.ranges[ne];if(!(me.head.ch>100||ne&&oe.ranges[ne-1].head.line==me.head.line)){var Fe=a.getModeAt(me.head),qe=!1;if(Fe.electricChars){for(var dt=0;dt<Fe.electricChars.length;dt++)if(b.indexOf(Fe.electricChars.charAt(dt))>-1){qe=go(a,me.head.line,"smart");break}}else Fe.electricInput&&Fe.electricInput.test(Mt(a.doc,me.head.line).text.slice(0,me.head.ch))&&(qe=go(a,me.head.line,"smart"));qe&&Gn(a,"electricInput",a,me.head.line)}}}function Rl(a){for(var b=[],oe=[],ne=0;ne<a.doc.sel.ranges.length;ne++){var me=a.doc.sel.ranges[ne].head.line,Fe={anchor:Dt(me,0),head:Dt(me+1,0)};oe.push(Fe),b.push(a.getRange(Fe.anchor,Fe.head))}return{text:b,ranges:oe}}function Il(a,b,oe,ne){a.setAttribute("autocorrect",oe?"":"off"),a.setAttribute("autocapitalize",ne?"":"off"),a.setAttribute("spellcheck",!!b)}function Nl(){var a=be("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=be("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return E?a.style.width="1000px":a.setAttribute("wrap","off"),te&&(a.style.border="1px solid black"),Il(a),b}function Vu(a){var b=a.optionHandlers,oe=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ne,me){var Fe=this.options,qe=Fe[ne];Fe[ne]==me&&ne!="mode"||(Fe[ne]=me,b.hasOwnProperty(ne)&&ai(this,b[ne])(this,me,qe),gt(this,"optionChange",this,ne))},getOption:function(ne){return this.options[ne]},getDoc:function(){return this.doc},addKeyMap:function(ne,me){this.state.keyMaps[me?"push":"unshift"](Fo(ne))},removeKeyMap:function(ne){for(var me=this.state.keyMaps,Fe=0;Fe<me.length;++Fe)if(me[Fe]==ne||me[Fe].name==ne)return me.splice(Fe,1),!0},addOverlay:yi(function(ne,me){var Fe=ne.token?ne:a.getMode(this.options,ne);if(Fe.startState)throw new Error("Overlays may not be stateful.");Be(this.state.overlays,{mode:Fe,modeSpec:ne,opaque:me&&me.opaque,priority:me&&me.priority||0},function(qe){return qe.priority}),this.state.modeGen++,Si(this)}),removeOverlay:yi(function(ne){for(var me=this.state.overlays,Fe=0;Fe<me.length;++Fe){var qe=me[Fe].modeSpec;if(qe==ne||typeof ne=="string"&&qe.name==ne){me.splice(Fe,1),this.state.modeGen++,Si(this);return}}}),indentLine:yi(function(ne,me,Fe){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),nr(this.doc,ne)&&go(this,ne,me,Fe)}),indentSelection:yi(function(ne){for(var me=this.doc.sel.ranges,Fe=-1,qe=0;qe<me.length;qe++){var dt=me[qe];if(dt.empty())dt.head.line>Fe&&(go(this,dt.head.line,ne,!0),Fe=dt.head.line,qe==this.doc.sel.primIndex&&Ma(this));else{var pt=dt.from(),bt=dt.to(),kt=Math.max(Fe,pt.line);Fe=Math.min(this.lastLine(),bt.line-(bt.ch?0:1))+1;for(var _t=kt;_t<Fe;++_t)go(this,_t,ne);var Ft=this.doc.sel.ranges;pt.ch==0&&me.length==Ft.length&&Ft[qe].from().ch>0&&us(this.doc,qe,new Ln(pt,Ft[qe].to()),Je)}}}),getTokenAt:function(ne,me){return fn(this,ne,me)},getLineTokens:function(ne,me){return fn(this,Dt(ne),me,!0)},getTokenTypeAt:function(ne){ne=Gt(this.doc,ne);var me=$r(this,Mt(this.doc,ne.line)),Fe=0,qe=(me.length-1)/2,dt=ne.ch,pt;if(dt==0)pt=me[2];else for(;;){var bt=Fe+qe>>1;if((bt?me[bt*2-1]:0)>=dt)qe=bt;else if(me[bt*2+1]<dt)Fe=bt+1;else{pt=me[bt*2+2];break}}var kt=pt?pt.indexOf("overlay "):-1;return kt<0?pt:kt==0?null:pt.slice(0,kt-1)},getModeAt:function(ne){var me=this.doc.mode;return me.innerMode?a.innerMode(me,this.getTokenAt(ne).state).mode:me},getHelper:function(ne,me){return this.getHelpers(ne,me)[0]},getHelpers:function(ne,me){var Fe=[];if(!oe.hasOwnProperty(me))return Fe;var qe=oe[me],dt=this.getModeAt(ne);if(typeof dt[me]=="string")qe[dt[me]]&&Fe.push(qe[dt[me]]);else if(dt[me])for(var pt=0;pt<dt[me].length;pt++){var bt=qe[dt[me][pt]];bt&&Fe.push(bt)}else dt.helperType&&qe[dt.helperType]?Fe.push(qe[dt.helperType]):qe[dt.name]&&Fe.push(qe[dt.name]);for(var kt=0;kt<qe._global.length;kt++){var _t=qe._global[kt];_t.pred(dt,this)&&rt(Fe,_t.val)==-1&&Fe.push(_t.val)}return Fe},getStateAfter:function(ne,me){var Fe=this.doc;return ne=wr(Fe,ne==null?Fe.first+Fe.size-1:ne),ln(this,ne+1,me).state},cursorCoords:function(ne,me){var Fe,qe=this.doc.sel.primary();return ne==null?Fe=qe.head:typeof ne=="object"?Fe=Gt(this.doc,ne):Fe=ne?qe.from():qe.to(),xi(this,Fe,me||"page")},charCoords:function(ne,me){return ja(this,Gt(this.doc,ne),me||"page")},coordsChar:function(ne,me){return ne=Eo(this,ne,me||"page"),ci(this,ne.left,ne.top)},lineAtHeight:function(ne,me){return ne=Eo(this,{top:ne,left:0},me||"page").top,Tt(this.doc,ne+this.display.viewOffset)},heightAtLine:function(ne,me,Fe){var qe=!1,dt;if(typeof ne=="number"){var pt=this.doc.first+this.doc.size-1;ne<this.doc.first?ne=this.doc.first:ne>pt&&(ne=pt,qe=!0),dt=Mt(this.doc,ne)}else dt=ne;return Oa(this,dt,{top:0,left:0},me||"page",Fe||qe).top+(qe?this.doc.height-nn(dt):0)},defaultTextHeight:function(){return Oi(this.display)},defaultCharWidth:function(){return Ki(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ne,me,Fe,qe,dt){var pt=this.display;ne=xi(this,Gt(this.doc,ne));var bt=ne.bottom,kt=ne.left;if(me.style.position="absolute",me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(me),pt.sizer.appendChild(me),qe=="over")bt=ne.top;else if(qe=="above"||qe=="near"){var _t=Math.max(pt.wrapper.clientHeight,this.doc.height),Ft=Math.max(pt.sizer.clientWidth,pt.lineSpace.clientWidth);(qe=="above"||ne.bottom+me.offsetHeight>_t)&&ne.top>me.offsetHeight?bt=ne.top-me.offsetHeight:ne.bottom+me.offsetHeight<=_t&&(bt=ne.bottom),kt+me.offsetWidth>Ft&&(kt=Ft-me.offsetWidth)}me.style.top=bt+"px",me.style.left=me.style.right="",dt=="right"?(kt=pt.sizer.clientWidth-me.offsetWidth,me.style.right="0px"):(dt=="left"?kt=0:dt=="middle"&&(kt=(pt.sizer.clientWidth-me.offsetWidth)/2),me.style.left=kt+"px"),Fe&&zl(this,{left:kt,top:bt,right:kt+me.offsetWidth,bottom:bt+me.offsetHeight})},triggerOnKeyDown:yi(El),triggerOnKeyPress:yi(kl),triggerOnKeyUp:Cl,triggerOnMouseDown:yi(Al),execCommand:function(ne){if(ho.hasOwnProperty(ne))return ho[ne].call(null,this)},triggerElectric:yi(function(ne){Ml(this,ne)}),findPosH:function(ne,me,Fe,qe){var dt=1;me<0&&(dt=-1,me=-me);for(var pt=Gt(this.doc,ne),bt=0;bt<me&&(pt=ys(this.doc,pt,dt,Fe,qe),!pt.hitSide);++bt);return pt},moveH:yi(function(ne,me){var Fe=this;this.extendSelectionsBy(function(qe){return Fe.display.shift||Fe.doc.extend||qe.empty()?ys(Fe.doc,qe.head,ne,me,Fe.options.rtlMoveVisually):ne<0?qe.from():qe.to()},Ve)}),deleteH:yi(function(ne,me){var Fe=this.doc.sel,qe=this.doc;Fe.somethingSelected()?qe.replaceSelection("",null,"+delete"):Ua(this,function(dt){var pt=ys(qe,dt.head,ne,me,!1);return ne<0?{from:pt,to:dt.head}:{from:dt.head,to:pt}})}),findPosV:function(ne,me,Fe,qe){var dt=1,pt=qe;me<0&&(dt=-1,me=-me);for(var bt=Gt(this.doc,ne),kt=0;kt<me;++kt){var _t=xi(this,bt,"div");if(pt==null?pt=_t.left:_t.left=pt,bt=Bl(this,_t,dt,Fe),bt.hitSide)break}return bt},moveV:yi(function(ne,me){var Fe=this,qe=this.doc,dt=[],pt=!this.display.shift&&!qe.extend&&qe.sel.somethingSelected();if(qe.extendSelectionsBy(function(kt){if(pt)return ne<0?kt.from():kt.to();var _t=xi(Fe,kt.head,"div");kt.goalColumn!=null&&(_t.left=kt.goalColumn),dt.push(_t.left);var Ft=Bl(Fe,_t,ne,me);return me=="page"&&kt==qe.sel.primary()&&$o(Fe,ja(Fe,Ft,"div").top-_t.top),Ft},Ve),dt.length)for(var bt=0;bt<qe.sel.ranges.length;bt++)qe.sel.ranges[bt].goalColumn=dt[bt]}),findWordAt:function(ne){var me=this.doc,Fe=Mt(me,ne.line).text,qe=ne.ch,dt=ne.ch;if(Fe){var pt=this.getHelper(ne,"wordChars");(ne.sticky=="before"||dt==Fe.length)&&qe?--qe:++dt;for(var bt=Fe.charAt(qe),kt=mt(bt,pt)?function(_t){return mt(_t,pt)}:/\s/.test(bt)?function(_t){return/\s/.test(_t)}:function(_t){return!/\s/.test(_t)&&!mt(_t)};qe>0&&kt(Fe.charAt(qe-1));)--qe;for(;dt<Fe.length&&kt(Fe.charAt(dt));)++dt}return new Ln(Dt(ne.line,qe),Dt(ne.line,dt))},toggleOverwrite:function(ne){ne!=null&&ne==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):De(this.display.cursorDiv,"CodeMirror-overwrite"),gt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Se()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:yi(function(ne,me){Qa(this,ne,me)}),getScrollInfo:function(){var ne=this.display.scroller;return{left:ne.scrollLeft,top:ne.scrollTop,height:ne.scrollHeight-_i(this)-this.display.barHeight,width:ne.scrollWidth-_i(this)-this.display.barWidth,clientHeight:ra(this),clientWidth:$i(this)}},scrollIntoView:yi(function(ne,me){ne==null?(ne={from:this.doc.sel.primary().head,to:null},me==null&&(me=this.options.cursorScrollMargin)):typeof ne=="number"?ne={from:Dt(ne,0),to:null}:ne.from==null&&(ne={from:ne,to:null}),ne.to||(ne.to=ne.from),ne.margin=me||0,ne.from.line!=null?Gl(this,ne):_s(this,ne.from,ne.to,ne.margin)}),setSize:yi(function(ne,me){var Fe=this,qe=function(pt){return typeof pt=="number"||/^\d+$/.test(String(pt))?pt+"px":pt};ne!=null&&(this.display.wrapper.style.width=qe(ne)),me!=null&&(this.display.wrapper.style.height=qe(me)),this.options.lineWrapping&&Va(this);var dt=this.display.viewFrom;this.doc.iter(dt,this.display.viewTo,function(pt){if(pt.widgets){for(var bt=0;bt<pt.widgets.length;bt++)if(pt.widgets[bt].noHScroll){fa(Fe,dt,"widget");break}}++dt}),this.curOp.forceUpdate=!0,gt(this,"refresh",this)}),operation:function(ne){return ji(this,ne)},startOperation:function(){return ka(this)},endOperation:function(){return Aa(this)},refresh:yi(function(){var ne=this.display.cachedTextHeight;Si(this),this.curOp.forceUpdate=!0,wa(this),Qa(this,this.doc.scrollLeft,this.doc.scrollTop),ts(this.display),(ne==null||Math.abs(ne-Oi(this.display))>.5||this.options.lineWrapping)&&Xo(this),gt(this,"refresh",this)}),swapDoc:yi(function(ne){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),Hs(this,ne),wa(this),this.display.input.reset(),Qa(this,ne.scrollLeft,ne.scrollTop),this.curOp.forceScroll=!0,Gn(this,"swapDoc",this,me),me}),phrase:function(ne){var me=this.options.phrases;return me&&Object.prototype.hasOwnProperty.call(me,ne)?me[ne]:ne},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}},Ct(a),a.registerHelper=function(ne,me,Fe){oe.hasOwnProperty(ne)||(oe[ne]=a[ne]={_global:[]}),oe[ne][me]=Fe},a.registerGlobalHelper=function(ne,me,Fe,qe){a.registerHelper(ne,me,qe),oe[ne]._global.push({pred:Fe,val:qe})}}function ys(a,b,oe,ne,me){var Fe=b,qe=oe,dt=Mt(a,b.line),pt=me&&a.direction=="rtl"?-oe:oe;function bt(){var Vr=b.line+pt;return Vr<a.first||Vr>=a.first+a.size?!1:(b=new Dt(Vr,b.ch,b.sticky),dt=Mt(a,Vr))}function kt(Vr){var Hr;if(ne=="codepoint"){var Xr=dt.text.charCodeAt(b.ch+(ne>0?0:-1));isNaN(Xr)?Hr=null:Hr=new Dt(b.line,Math.max(0,Math.min(dt.text.length,b.ch+oe*(Xr>=55296&&Xr<56320?2:1))),-oe)}else me?Hr=_u(a.cm,dt,b,oe):Hr=fs(dt,b,oe);if(Hr==null)if(!Vr&&bt())b=ds(me,a.cm,dt,b.line,pt);else return!1;else b=Hr;return!0}if(ne=="char"||ne=="codepoint")kt();else if(ne=="column")kt(!0);else if(ne=="word"||ne=="group")for(var _t=null,Ft=ne=="group",It=a.cm&&a.cm.getHelper(b,"wordChars"),ir=!0;!(oe<0&&!kt(!ir));ir=!1){var br=dt.text.charAt(b.ch)||`
`,Pr=mt(br,It)?"w":Ft&&br==`
`?"n":!Ft||/\s/.test(br)?null:"p";if(Ft&&!ir&&!Pr&&(Pr="s"),_t&&_t!=Pr){oe<0&&(oe=1,kt(),b.sticky="after");break}if(Pr&&(_t=Pr),oe>0&&!kt(!ir))break}var Ur=Io(a,b,Fe,qe,!0);return tr(Fe,Ur)&&(Ur.hitSide=!0),Ur}function Bl(a,b,oe,ne){var me=a.doc,Fe=b.left,qe;if(ne=="page"){var dt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),pt=Math.max(dt-.5*Oi(a.display),3);qe=(oe>0?b.bottom:b.top)+oe*pt}else ne=="line"&&(qe=oe>0?b.bottom+3:b.top-3);for(var bt;bt=ci(a,Fe,qe),!!bt.outside;){if(oe<0?qe<=0:qe>=me.height){bt.hitSide=!0;break}qe+=oe*5}return bt}var Un=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};Un.prototype.init=function(a){var b=this,oe=this,ne=oe.cm,me=oe.div=a.lineDiv;Il(me,ne.options.spellcheck,ne.options.autocorrect,ne.options.autocapitalize);function Fe(dt){for(var pt=dt.target;pt;pt=pt.parentNode){if(pt==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(pt.className))break}return!1}yt(me,"paste",function(dt){!Fe(dt)||ht(ne,dt)||Pl(dt,ne)||ee<=11&&setTimeout(ai(ne,function(){return b.updateFromDOM()}),20)}),yt(me,"compositionstart",function(dt){b.composing={data:dt.data,done:!1}}),yt(me,"compositionupdate",function(dt){b.composing||(b.composing={data:dt.data,done:!1})}),yt(me,"compositionend",function(dt){b.composing&&(dt.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),yt(me,"touchstart",function(){return oe.forceCompositionEnd()}),yt(me,"input",function(){b.composing||b.readFromDOMSoon()});function qe(dt){if(!(!Fe(dt)||ht(ne,dt))){if(ne.somethingSelected())Uo({lineWise:!1,text:ne.getSelections()}),dt.type=="cut"&&ne.replaceSelection("",null,"cut");else if(ne.options.lineWiseCopyCut){var pt=Rl(ne);Uo({lineWise:!0,text:pt.text}),dt.type=="cut"&&ne.operation(function(){ne.setSelections(pt.ranges,0,Je),ne.replaceSelection("",null,"cut")})}else return;if(dt.clipboardData){dt.clipboardData.clearData();var bt=Xi.text.join(`
`);if(dt.clipboardData.setData("Text",bt),dt.clipboardData.getData("Text")==bt){dt.preventDefault();return}}var kt=Nl(),_t=kt.firstChild;ne.display.lineSpace.insertBefore(kt,ne.display.lineSpace.firstChild),_t.value=Xi.text.join(`
`);var Ft=document.activeElement;Xe(_t),setTimeout(function(){ne.display.lineSpace.removeChild(kt),Ft.focus(),Ft==me&&oe.showPrimarySelection()},50)}}yt(me,"copy",qe),yt(me,"cut",qe)},Un.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Un.prototype.prepareSelection=function(){var a=Es(this.cm,!1);return a.focus=document.activeElement==this.div,a},Un.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Un.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Un.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,oe=b.doc.sel.primary(),ne=oe.from(),me=oe.to();if(b.display.viewTo==b.display.viewFrom||ne.line>=b.display.viewTo||me.line<b.display.viewFrom){a.removeAllRanges();return}var Fe=Ho(b,a.anchorNode,a.anchorOffset),qe=Ho(b,a.focusNode,a.focusOffset);if(!(Fe&&!Fe.bad&&qe&&!qe.bad&&Qt(or(Fe,qe),ne)==0&&Qt(jr(Fe,qe),me)==0)){var dt=b.display.view,pt=ne.line>=b.display.viewFrom&&Fl(b,ne)||{node:dt[0].measure.map[2],offset:0},bt=me.line<b.display.viewTo&&Fl(b,me);if(!bt){var kt=dt[dt.length-1].measure,_t=kt.maps?kt.maps[kt.maps.length-1]:kt.map;bt={node:_t[_t.length-1],offset:_t[_t.length-2]-_t[_t.length-3]}}if(!pt||!bt){a.removeAllRanges();return}var Ft=a.rangeCount&&a.getRangeAt(0),It;try{It=Oe(pt.node,pt.offset,bt.offset,bt.node)}catch(ir){}It&&(!Ue&&b.state.focused?(a.collapse(pt.node,pt.offset),It.collapsed||(a.removeAllRanges(),a.addRange(It))):(a.removeAllRanges(),a.addRange(It)),Ft&&a.anchorNode==null?a.addRange(Ft):Ue&&this.startGracePeriod()),this.rememberSelection()}},Un.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)},Un.prototype.showMultipleSelections=function(a){ve(this.cm.display.cursorDiv,a.cursors),ve(this.cm.display.selectionDiv,a.selection)},Un.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Un.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return Me(this.div,b)},Un.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Un.prototype.blur=function(){this.div.blur()},Un.prototype.getField=function(){return this.div},Un.prototype.supportsTouch=function(){return!0},Un.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():ji(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)},Un.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Un.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(ae&&le&&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 oe=Ho(b,a.anchorNode,a.anchorOffset),ne=Ho(b,a.focusNode,a.focusOffset);oe&&ne&&ji(b,function(){hi(b.doc,ha(oe,ne),Je),(oe.bad||ne.bad)&&(b.curOp.selectionChanged=!0)})}}},Un.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,oe=a.doc.sel.primary(),ne=oe.from(),me=oe.to();if(ne.ch==0&&ne.line>a.firstLine()&&(ne=Dt(ne.line-1,Mt(a.doc,ne.line-1).length)),me.ch==Mt(a.doc,me.line).text.length&&me.line<a.lastLine()&&(me=Dt(me.line+1,0)),ne.line<b.viewFrom||me.line>b.viewTo-1)return!1;var Fe,qe,dt;ne.line==b.viewFrom||(Fe=Sa(a,ne.line))==0?(qe=At(b.view[0].line),dt=b.view[0].node):(qe=At(b.view[Fe].line),dt=b.view[Fe-1].node.nextSibling);var pt=Sa(a,me.line),bt,kt;if(pt==b.view.length-1?(bt=b.viewTo-1,kt=b.lineDiv.lastChild):(bt=At(b.view[pt+1].line)-1,kt=b.view[pt+1].node.previousSibling),!dt)return!1;for(var _t=a.doc.splitLines(Yu(a,dt,kt,qe,bt)),Ft=rr(a.doc,Dt(qe,0),Dt(bt,Mt(a.doc,bt).text.length));_t.length>1&&Ft.length>1;)if(st(_t)==st(Ft))_t.pop(),Ft.pop(),bt--;else if(_t[0]==Ft[0])_t.shift(),Ft.shift(),qe++;else break;for(var It=0,ir=0,br=_t[0],Pr=Ft[0],Ur=Math.min(br.length,Pr.length);It<Ur&&br.charCodeAt(It)==Pr.charCodeAt(It);)++It;for(var Vr=st(_t),Hr=st(Ft),Xr=Math.min(Vr.length-(_t.length==1?It:0),Hr.length-(Ft.length==1?It:0));ir<Xr&&Vr.charCodeAt(Vr.length-ir-1)==Hr.charCodeAt(Hr.length-ir-1);)++ir;if(_t.length==1&&Ft.length==1&&qe==ne.line)for(;It&&It>ne.ch&&Vr.charCodeAt(Vr.length-ir-1)==Hr.charCodeAt(Hr.length-ir-1);)It--,ir++;_t[_t.length-1]=Vr.slice(0,Vr.length-ir).replace(/^\u200b+/,""),_t[0]=_t[0].slice(It).replace(/\u200b+$/,"");var sn=Dt(qe,It),tn=Dt(bt,Ft.length?st(Ft).length-ir:0);if(_t.length>1||_t[0]||Qt(sn,tn))return Fa(a.doc,_t,sn,tn,"+input"),!0},Un.prototype.ensurePolled=function(){this.forceCompositionEnd()},Un.prototype.reset=function(){this.forceCompositionEnd()},Un.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Un.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))},Un.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&ji(this.cm,function(){return Si(a.cm)})},Un.prototype.setUneditable=function(a){a.contentEditable="false"},Un.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||ai(this.cm,gs)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Un.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Un.prototype.onContextMenu=function(){},Un.prototype.resetPosition=function(){},Un.prototype.needsContentAttribute=!0;function Fl(a,b){var oe=qi(a,b.line);if(!oe||oe.hidden)return null;var ne=Mt(a.doc,b.line),me=Da(oe,ne,b.line),Fe=et(ne,a.doc.direction),qe="left";if(Fe){var dt=ye(Fe,b.ch);qe=dt%2?"right":"left"}var pt=wo(me.map,b.ch,qe);return pt.offset=pt.collapse=="right"?pt.end:pt.start,pt}function Xu(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Za(a,b){return b&&(a.bad=!0),a}function Yu(a,b,oe,ne,me){var Fe="",qe=!1,dt=a.doc.lineSeparator(),pt=!1;function bt(It){return function(ir){return ir.id==It}}function kt(){qe&&(Fe+=dt,pt&&(Fe+=dt),qe=pt=!1)}function _t(It){It&&(kt(),Fe+=It)}function Ft(It){if(It.nodeType==1){var ir=It.getAttribute("cm-text");if(ir){_t(ir);return}var br=It.getAttribute("cm-marker"),Pr;if(br){var Ur=a.findMarks(Dt(ne,0),Dt(me+1,0),bt(+br));Ur.length&&(Pr=Ur[0].find(0))&&_t(rr(a.doc,Pr.from,Pr.to).join(dt));return}if(It.getAttribute("contenteditable")=="false")return;var Vr=/^(pre|div|p|li|table|br)$/i.test(It.nodeName);if(!/^br$/i.test(It.nodeName)&&It.textContent.length==0)return;Vr&&kt();for(var Hr=0;Hr<It.childNodes.length;Hr++)Ft(It.childNodes[Hr]);/^(pre|p)$/i.test(It.nodeName)&&(pt=!0),Vr&&(qe=!0)}else It.nodeType==3&&_t(It.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ft(b),b!=oe;)b=b.nextSibling,pt=!1;return Fe}function Ho(a,b,oe){var ne;if(b==a.display.lineDiv){if(ne=a.display.lineDiv.childNodes[oe],!ne)return Za(a.clipPos(Dt(a.display.viewTo-1)),!0);b=null,oe=0}else for(ne=b;;ne=ne.parentNode){if(!ne||ne==a.display.lineDiv)return null;if(ne.parentNode&&ne.parentNode==a.display.lineDiv)break}for(var me=0;me<a.display.view.length;me++){var Fe=a.display.view[me];if(Fe.node==ne)return Ju(Fe,b,oe)}}function Ju(a,b,oe){var ne=a.text.firstChild,me=!1;if(!b||!Me(ne,b))return Za(Dt(At(a.line),0),!0);if(b==ne&&(me=!0,b=ne.childNodes[oe],oe=0,!b)){var Fe=a.rest?st(a.rest):a.line;return Za(Dt(At(Fe),Fe.text.length),me)}var qe=b.nodeType==3?b:null,dt=b;for(!qe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(qe=b.firstChild,oe&&(oe=qe.nodeValue.length));dt.parentNode!=ne;)dt=dt.parentNode;var pt=a.measure,bt=pt.maps;function kt(Pr,Ur,Vr){for(var Hr=-1;Hr<(bt?bt.length:0);Hr++)for(var Xr=Hr<0?pt.map:bt[Hr],sn=0;sn<Xr.length;sn+=3){var tn=Xr[sn+2];if(tn==Pr||tn==Ur){var En=At(Hr<0?a.line:a.rest[Hr]),zn=Xr[sn]+Vr;return(Vr<0||tn!=Pr)&&(zn=Xr[sn+(Vr?1:0)]),Dt(En,zn)}}}var _t=kt(qe,dt,oe);if(_t)return Za(_t,me);for(var Ft=dt.nextSibling,It=qe?qe.nodeValue.length-oe:0;Ft;Ft=Ft.nextSibling){if(_t=kt(Ft,Ft.firstChild,0),_t)return Za(Dt(_t.line,_t.ch-It),me);It+=Ft.textContent.length}for(var ir=dt.previousSibling,br=oe;ir;ir=ir.previousSibling){if(_t=kt(ir,ir.firstChild,-1),_t)return Za(Dt(_t.line,_t.ch+br),me);br+=ir.textContent.length}}var $n=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new We,this.hasSelection=!1,this.composing=null};$n.prototype.init=function(a){var b=this,oe=this,ne=this.cm;this.createField(a);var me=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),te&&(me.style.width="0px"),yt(me,"input",function(){ge&&ee>=9&&b.hasSelection&&(b.hasSelection=null),oe.poll()}),yt(me,"paste",function(qe){ht(ne,qe)||Pl(qe,ne)||(ne.state.pasteIncoming=+new Date,oe.fastPoll())});function Fe(qe){if(!ht(ne,qe)){if(ne.somethingSelected())Uo({lineWise:!1,text:ne.getSelections()});else if(ne.options.lineWiseCopyCut){var dt=Rl(ne);Uo({lineWise:!0,text:dt.text}),qe.type=="cut"?ne.setSelections(dt.ranges,null,Je):(oe.prevInput="",me.value=dt.text.join(`
`),Xe(me))}else return;qe.type=="cut"&&(ne.state.cutIncoming=+new Date)}}yt(me,"cut",Fe),yt(me,"copy",Fe),yt(a.scroller,"paste",function(qe){if(!(ui(a,qe)||ht(ne,qe))){if(!me.dispatchEvent){ne.state.pasteIncoming=+new Date,oe.focus();return}var dt=new Event("paste");dt.clipboardData=qe.clipboardData,me.dispatchEvent(dt)}}),yt(a.lineSpace,"selectstart",function(qe){ui(a,qe)||jt(qe)}),yt(me,"compositionstart",function(){var qe=ne.getCursor("from");oe.composing&&oe.composing.range.clear(),oe.composing={start:qe,range:ne.markText(qe,ne.getCursor("to"),{className:"CodeMirror-composing"})}}),yt(me,"compositionend",function(){oe.composing&&(oe.poll(),oe.composing.range.clear(),oe.composing=null)})},$n.prototype.createField=function(a){this.wrapper=Nl(),this.textarea=this.wrapper.firstChild},$n.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},$n.prototype.prepareSelection=function(){var a=this.cm,b=a.display,oe=a.doc,ne=Es(a);if(a.options.moveInputWithCursor){var me=xi(a,oe.sel.primary().head,"div"),Fe=b.wrapper.getBoundingClientRect(),qe=b.lineDiv.getBoundingClientRect();ne.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,me.top+qe.top-Fe.top)),ne.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,me.left+qe.left-Fe.left))}return ne},$n.prototype.showSelection=function(a){var b=this.cm,oe=b.display;ve(oe.cursorDiv,a.cursors),ve(oe.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},$n.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var oe=b.getSelection();this.textarea.value=oe,b.state.focused&&Xe(this.textarea),ge&&ee>=9&&(this.hasSelection=oe)}else a||(this.prevInput=this.textarea.value="",ge&&ee>=9&&(this.hasSelection=null))}},$n.prototype.getField=function(){return this.textarea},$n.prototype.supportsTouch=function(){return!1},$n.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ue||Se()!=this.textarea))try{this.textarea.focus()}catch(a){}},$n.prototype.blur=function(){this.textarea.blur()},$n.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$n.prototype.receivedFocus=function(){this.slowPoll()},$n.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},$n.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function oe(){var ne=b.poll();!ne&&!a?(a=!0,b.polling.set(60,oe)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,oe)},$n.prototype.poll=function(){var a=this,b=this.cm,oe=this.textarea,ne=this.prevInput;if(this.contextMenuPending||!b.state.focused||Dr(oe)&&!ne&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var me=oe.value;if(me==ne&&!b.somethingSelected())return!1;if(ge&&ee>=9&&this.hasSelection===me||fe&&/[\uf700-\uf7ff]/.test(me))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Fe=me.charCodeAt(0);if(Fe==8203&&!ne&&(ne="\u200B"),Fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var qe=0,dt=Math.min(ne.length,me.length);qe<dt&&ne.charCodeAt(qe)==me.charCodeAt(qe);)++qe;return ji(b,function(){gs(b,me.slice(qe),ne.length-qe,null,a.composing?"*compose":null),me.length>1e3||me.indexOf(`
`)>-1?oe.value=a.prevInput="":a.prevInput=me,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},$n.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$n.prototype.onKeyPress=function(){ge&&ee>=9&&(this.hasSelection=null),this.fastPoll()},$n.prototype.onContextMenu=function(a){var b=this,oe=b.cm,ne=oe.display,me=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Fe=xa(oe,a),qe=ne.scroller.scrollTop;if(!Fe||z)return;var dt=oe.options.resetSelectionOnContextMenu;dt&&oe.doc.sel.contains(Fe)==-1&&ai(oe,hi)(oe.doc,ha(Fe),Je);var pt=me.style.cssText,bt=b.wrapper.style.cssText,kt=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-kt.top-5)+"px; left: "+(a.clientX-kt.left-5)+`px;
z-index: 1000; background: `+(ge?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var _t;E&&(_t=window.scrollY),ne.input.focus(),E&&window.scrollTo(null,_t),ne.input.reset(),oe.somethingSelected()||(me.value=b.prevInput=" "),b.contextMenuPending=It,ne.selForContextMenu=oe.doc.sel,clearTimeout(ne.detectingSelectAll);function Ft(){if(me.selectionStart!=null){var br=oe.somethingSelected(),Pr="\u200B"+(br?me.value:"");me.value="\u21DA",me.value=Pr,b.prevInput=br?"":"\u200B",me.selectionStart=1,me.selectionEnd=Pr.length,ne.selForContextMenu=oe.doc.sel}}function It(){if(b.contextMenuPending==It&&(b.contextMenuPending=!1,b.wrapper.style.cssText=bt,me.style.cssText=pt,ge&&ee<9&&ne.scrollbars.setScrollTop(ne.scroller.scrollTop=qe),me.selectionStart!=null)){(!ge||ge&&ee<9)&&Ft();var br=0,Pr=function(){ne.selForContextMenu==oe.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&b.prevInput=="\u200B"?ai(oe,rl)(oe):br++<10?ne.detectingSelectAll=setTimeout(Pr,500):(ne.selForContextMenu=null,ne.input.reset())};ne.detectingSelectAll=setTimeout(Pr,200)}}if(ge&&ee>=9&&Ft(),Ce){qt(a);var ir=function(){vt(window,"mouseup",ir),setTimeout(It,20)};yt(window,"mouseup",ir)}else setTimeout(It,50)},$n.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},$n.prototype.setUneditable=function(){},$n.prototype.needsContentAttribute=!1;function Qu(a,b){if(b=b?lt(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 oe=Se();b.autofocus=oe==a||a.getAttribute("autofocus")!=null&&oe==document.body}function ne(){a.value=dt.getValue()}var me;if(a.form&&(yt(a.form,"submit",ne),!b.leaveSubmitMethodAlone)){var Fe=a.form;me=Fe.submit;try{var qe=Fe.submit=function(){ne(),Fe.submit=me,Fe.submit(),Fe.submit=qe}}catch(pt){}}b.finishInit=function(pt){pt.save=ne,pt.getTextArea=function(){return a},pt.toTextArea=function(){pt.toTextArea=isNaN,ne(),a.parentNode.removeChild(pt.getWrapperElement()),a.style.display="",a.form&&(vt(a.form,"submit",ne),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=me))}},a.style.display="none";var dt=Kn(function(pt){return a.parentNode.insertBefore(pt,a.nextSibling)},b);return dt}function $u(a){a.off=vt,a.on=yt,a.wheelEventPixels=au,a.Doc=Ei,a.splitLines=sr,a.countColumn=Re,a.findColumn=ct,a.isWordChar=ft,a.Pass=at,a.signal=gt,a.Line=jn,a.changeEnd=pa,a.scrollbarModel=js,a.Pos=Dt,a.cmpPos=Qt,a.modes=Yt,a.mimeModes=Pt,a.resolveMode=cr,a.getMode=Ht,a.modeExtensions=Er,a.extendMode=Tr,a.copyState=Mr,a.startState=dr,a.innerMode=Cr,a.commands=ho,a.keyMap=ia,a.keyName=yl,a.isModifierKey=vl,a.lookupKey=Wa,a.normalizeKeyMap=Tu,a.StringStream=er,a.SharedTextMarker=uo,a.TextMarker=va,a.LineWidget=lo,a.e_preventDefault=jt,a.e_stopPropagation=Ut,a.e_stop=qt,a.addClass=je,a.contains=Me,a.rmClass=De,a.keyNames=ga}Zu(Kn),Vu(Kn);var qu="iter insert remove copy getEditor constructor".split(" ");for(var Zo in Ei.prototype)Ei.prototype.hasOwnProperty(Zo)&&rt(qu,Zo)<0&&(Kn.prototype[Zo]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ei.prototype[Zo]));return Ct(Ei),Kn.inputStyles={textarea:$n,contenteditable:Un},Kn.defineMode=function(a){!Kn.defaults.mode&&a!="null"&&(Kn.defaults.mode=a),Wt.apply(this,arguments)},Kn.defineMIME=$t,Kn.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Kn.defineMIME("text/plain","null"),Kn.defineExtension=function(a,b){Kn.prototype[a]=b},Kn.defineDocExtension=function(a,b){Ei.prototype[a]=b},Kn.fromTextArea=Qu,$u(Kn),Kn.version="5.58.2",Kn})},25419:function(Nt,Ot,Ge){(function(Ue){Ue(Ge(89780),Ge(15525),Ge(98101))})(function(Ue){"use strict";Ue.defineMode("markdown",function(Et,y){var we=Ue.getMode(Et,"text/html"),ge=we.name=="null";function ee(Re){if(Ue.findModeByName){var We=Ue.findModeByName(Re);We&&(Re=We.mime||We.mimes[0])}var rt=Ue.getMode(Et,Re);return rt.name=="null"?null:rt}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 E={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 ie in E)E.hasOwnProperty(ie)&&y.tokenTypeOverrides[ie]&&(E[ie]=y.tokenTypeOverrides[ie]);var le=/^([*\-_])(?:\s*\1){2,}\s*$/,z=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,se=/^\[(x| )\](?=\s)/i,x=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,re=/^ {0,3}(?:\={1,}|-{2,})\s*$/,te=/^[^#!\[\]*_\\<>` "'(~:]+/,ae=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ue=/^\s*\[[^\]]+?\]:.*$/,fe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,de=" ";function he(Re,We,rt){return We.f=We.inline=rt,rt(Re,We)}function ce(Re,We,rt){return We.f=We.block=rt,rt(Re,We)}function pe(Re){return!Re||!/\S/.test(Re.string)}function Ce(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==De){var We=ge;if(!We){var rt=Ue.innerMode(we,Re.htmlState);We=rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText}We&&(Re.f=Ee,Re.block=ke,Re.htmlState=null)}return Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,Re.prevLine=Re.thisLine,Re.thisLine={stream:null},null}function ke(Re,We){var rt=Re.column()===We.indentation,ot=pe(We.prevLine.stream),at=We.indentedCode,Je=We.prevLine.hr,Qe=We.list!==!1,Ve=(We.listStack[We.listStack.length-1]||0)+3;We.indentedCode=!1;var ct=We.indentation;if(We.indentationDiff===null&&(We.indentationDiff=We.indentation,Qe)){for(We.list=null;ct<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=ct-We.listStack[We.listStack.length-1])}var tt=!ot&&!Je&&!We.prevLine.header&&(!Qe||!at)&&!We.prevLine.fencedCodeEnd,ut=(We.list===!1||Je||ot)&&We.indentation<=Ve&&Re.match(le),st=null;if(We.indentationDiff>=4&&(at||We.prevLine.fencedCodeEnd||We.prevLine.header||ot))return Re.skipToEnd(),We.indentedCode=!0,E.code;if(Re.eatSpace())return null;if(rt&&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,ve(We);if(We.indentation<=Ve&&Re.eat(">"))return We.quote=rt?1:We.quote+1,y.highlightFormatting&&(We.formatting="quote"),Re.eatSpace(),ve(We);if(!ut&&!We.setext&&rt&&We.indentation<=Ve&&(st=Re.match(z))){var ze=st[1]?"ol":"ul";return We.indentation=ct+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(se,!1)&&(We.taskList=!0),We.f=We.inline,y.highlightFormatting&&(We.formatting=["list","list-"+ze]),ve(We)}else{if(rt&&We.indentation<=Ve&&(st=Re.match(ae,!0)))return We.quote=0,We.fencedEndRE=new RegExp(st[1]+"+ *$"),We.localMode=y.fencedCodeBlockHighlighting&&ee(st[2]||y.fencedCodeBlockDefaultMode),We.localMode&&(We.localState=Ue.startState(We.localMode)),We.f=We.block=Ae,y.highlightFormatting&&(We.formatting="code-block"),We.code=-1,ve(We);if(We.setext||(!tt||!Qe)&&!We.quote&&We.list===!1&&!We.code&&!ut&&!ue.test(Re.string)&&(st=Re.lookAhead(1))&&(st=st.match(re)))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,ve(We);if(ut)return Re.skipToEnd(),We.hr=!0,We.thisLine.hr=!0,E.hr;if(Re.peek()==="[")return he(Re,We,Ze)}return he(Re,We,We.inline)}function De(Re,We){var rt=we.token(Re,We.htmlState);if(!ge){var ot=Ue.innerMode(we,We.htmlState);(ot.mode.name=="xml"&&ot.state.tagStart===null&&!ot.state.context&&ot.state.tokenize.isInText||We.md_inside&&Re.current().indexOf(">")>-1)&&(We.f=Ee,We.block=ke,We.htmlState=null)}return rt}function Ae(Re,We){var rt=We.listStack[We.listStack.length-1]||0,ot=We.indentation<rt,at=rt+3;if(We.fencedEndRE&&We.indentation<=at&&(ot||Re.match(We.fencedEndRE))){y.highlightFormatting&&(We.formatting="code-block");var Je;return ot||(Je=ve(We)),We.localMode=We.localState=null,We.block=ke,We.f=Ee,We.fencedEndRE=null,We.code=0,We.thisLine.fencedCodeEnd=!0,ot?ce(Re,We,We.block):Je}else return We.localMode?We.localMode.token(Re,We.localState):(Re.skipToEnd(),E.code)}function ve(Re){var We=[];if(Re.formatting){We.push(E.formatting),typeof Re.formatting=="string"&&(Re.formatting=[Re.formatting]);for(var rt=0;rt<Re.formatting.length;rt++)We.push(E.formatting+"-"+Re.formatting[rt]),Re.formatting[rt]==="header"&&We.push(E.formatting+"-"+Re.formatting[rt]+"-"+Re.header),Re.formatting[rt]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Re.quote?We.push(E.formatting+"-"+Re.formatting[rt]+"-"+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(E.linkHref,"url"):(Re.strong&&We.push(E.strong),Re.em&&We.push(E.em),Re.strikethrough&&We.push(E.strikethrough),Re.emoji&&We.push(E.emoji),Re.linkText&&We.push(E.linkText),Re.code&&We.push(E.code),Re.image&&We.push(E.image),Re.imageAltText&&We.push(E.imageAltText,"link"),Re.imageMarker&&We.push(E.imageMarker)),Re.header&&We.push(E.header,E.header+"-"+Re.header),Re.quote&&(We.push(E.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Re.quote?We.push(E.quote+"-"+Re.quote):We.push(E.quote+"-"+y.maxBlockquoteDepth)),Re.list!==!1){var ot=(Re.listStack.length-1)%3;ot?ot===1?We.push(E.list2):We.push(E.list3):We.push(E.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 be(Re,We){if(Re.match(te,!0))return ve(We)}function Ee(Re,We){var rt=We.text(Re,We);if(typeof rt!="undefined")return rt;if(We.list)return We.list=null,ve(We);if(We.taskList){var ot=Re.match(se,!0)[1]===" ";return ot?We.taskOpen=!0:We.taskClosed=!0,y.highlightFormatting&&(We.formatting="task"),We.taskList=!1,ve(We)}if(We.taskOpen=!1,We.taskClosed=!1,We.header&&Re.match(/^#+$/,!0))return y.highlightFormatting&&(We.formatting="header"),ve(We);var at=Re.next();if(We.linkTitle){We.linkTitle=!1;var Je=at;at==="("&&(Je=")"),Je=(Je+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Qe="^\\s*(?:[^"+Je+"\\\\]+|\\\\\\\\|\\\\.)"+Je;if(Re.match(new RegExp(Qe),!0))return E.linkHref}if(at==="`"){var Ve=We.formatting;y.highlightFormatting&&(We.formatting="code"),Re.eatWhile("`");var ct=Re.current().length;if(We.code==0&&(!We.quote||ct==1))return We.code=ct,ve(We);if(ct==We.code){var tt=ve(We);return We.code=0,tt}else return We.formatting=Ve,ve(We)}else if(We.code)return ve(We);if(at==="\\"&&(Re.next(),y.highlightFormatting)){var ut=ve(We),st=E.formatting+"-escape";return ut?ut+" "+st:st}if(at==="!"&&Re.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return We.imageMarker=!0,We.image=!0,y.highlightFormatting&&(We.formatting="image"),ve(We);if(at==="["&&We.imageMarker&&Re.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return We.imageMarker=!1,We.imageAltText=!0,y.highlightFormatting&&(We.formatting="image"),ve(We);if(at==="]"&&We.imageAltText){y.highlightFormatting&&(We.formatting="image");var ut=ve(We);return We.imageAltText=!1,We.image=!1,We.inline=We.f=Me,ut}if(at==="["&&!We.image)return We.linkText&&Re.match(/^.*?\]/)||(We.linkText=!0,y.highlightFormatting&&(We.formatting="link")),ve(We);if(at==="]"&&We.linkText){y.highlightFormatting&&(We.formatting="link");var ut=ve(We);return We.linkText=!1,We.inline=We.f=Re.match(/\(.*?\)| ?\[.*?\]/,!1)?Me:Ee,ut}if(at==="<"&&Re.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Oe,y.highlightFormatting&&(We.formatting="link");var ut=ve(We);return ut?ut+=" ":ut="",ut+E.linkInline}if(at==="<"&&Re.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=Oe,y.highlightFormatting&&(We.formatting="link");var ut=ve(We);return ut?ut+=" ":ut="",ut+E.linkEmail}if(y.xml&&at==="<"&&Re.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ze=Re.string.indexOf(">",Re.pos);if(ze!=-1){var Be=Re.string.substring(Re.start,ze);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Be)&&(We.md_inside=!0)}return Re.backUp(1),We.htmlState=Ue.startState(we),ce(Re,We,De)}if(y.xml&&at==="<"&&Re.match(/^\/\w*?>/))return We.md_inside=!1,"tag";if(at==="*"||at==="_"){for(var Ke=1,Ie=Re.pos==1?" ":Re.string.charAt(Re.pos-2);Ke<3&&Re.eat(at);)Ke++;var Ye=Re.peek()||" ",ft=!/\s/.test(Ye)&&(!fe.test(Ye)||/\s/.test(Ie)||fe.test(Ie)),mt=!/\s/.test(Ie)&&(!fe.test(Ie)||/\s/.test(Ye)||fe.test(Ye)),nt=null,_e=null;if(Ke%2&&(!We.em&&ft&&(at==="*"||!mt||fe.test(Ie))?nt=!0:We.em==at&&mt&&(at==="*"||!ft||fe.test(Ye))&&(nt=!1)),Ke>1&&(!We.strong&&ft&&(at==="*"||!mt||fe.test(Ie))?_e=!0:We.strong==at&&mt&&(at==="*"||!ft||fe.test(Ye))&&(_e=!1)),_e!=null||nt!=null){y.highlightFormatting&&(We.formatting=nt==null?"strong":_e==null?"em":"strong em"),nt===!0&&(We.em=at),_e===!0&&(We.strong=at);var tt=ve(We);return nt===!1&&(We.em=!1),_e===!1&&(We.strong=!1),tt}}else if(at===" "&&(Re.eat("*")||Re.eat("_"))){if(Re.peek()===" ")return ve(We);Re.backUp(1)}if(y.strikethrough){if(at==="~"&&Re.eatWhile(at)){if(We.strikethrough){y.highlightFormatting&&(We.formatting="strikethrough");var tt=ve(We);return We.strikethrough=!1,tt}else if(Re.match(/^[^\s]/,!1))return We.strikethrough=!0,y.highlightFormatting&&(We.formatting="strikethrough"),ve(We)}else if(at===" "&&Re.match(/^~~/,!0)){if(Re.peek()===" ")return ve(We);Re.backUp(2)}}if(y.emoji&&at===":"&&Re.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){We.emoji=!0,y.highlightFormatting&&(We.formatting="emoji");var Pe=ve(We);return We.emoji=!1,Pe}return at===" "&&(Re.match(/^ +$/,!1)?We.trailingSpace++:We.trailingSpace&&(We.trailingSpaceNewLine=!0)),ve(We)}function Oe(Re,We){var rt=Re.next();if(rt===">"){We.f=We.inline=Ee,y.highlightFormatting&&(We.formatting="link");var ot=ve(We);return ot?ot+=" ":ot="",ot+E.linkInline}return Re.match(/^[^>]+/,!0),E.linkInline}function Me(Re,We){if(Re.eatSpace())return null;var rt=Re.next();return rt==="("||rt==="["?(We.f=We.inline=je(rt==="("?")":"]"),y.highlightFormatting&&(We.formatting="link-string"),We.linkHref=!0,ve(We)):"error"}var Se={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function je(Re){return function(We,rt){var ot=We.next();if(ot===Re){rt.f=rt.inline=Ee,y.highlightFormatting&&(rt.formatting="link-string");var at=ve(rt);return rt.linkHref=!1,at}return We.match(Se[Re]),rt.linkHref=!0,ve(rt)}}function Ze(Re,We){return Re.match(/^([^\]\\]|\\.)*\]:/,!1)?(We.f=Xe,Re.next(),y.highlightFormatting&&(We.formatting="link"),We.linkText=!0,ve(We)):he(Re,We,Ee)}function Xe(Re,We){if(Re.match(/^\]:/,!0)){We.f=We.inline=$e,y.highlightFormatting&&(We.formatting="link");var rt=ve(We);return We.linkText=!1,rt}return Re.match(/^([^\]\\]|\\.)+/,!0),E.linkText}function $e(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=Ee,E.linkHref+" url")}var lt={startState:function(){return{f:ke,prevLine:{stream:null},thisLine:{stream:null},block:ke,htmlState:null,indentation:0,inline:Ee,text:be,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&&Ue.copyState(we,Re.htmlState),indentation:Re.indentation,localMode:Re.localMode,localState:Re.localMode?Ue.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 Ce(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!=De)){var rt=Re.match(/^\s*/,!0)[0].replace(/\t/g,de).length;if(We.indentation=rt,We.indentationDiff=null,rt>0)return null}}return We.f(Re,We)},innerMode:function(Re){return Re.block==De?{state:Re.htmlState,mode:we}:Re.localState?{state:Re.localState,mode:Re.localMode}:{state:Re,mode:lt}},indent:function(Re,We,rt){return Re.block==De&&we.indent?we.indent(Re.htmlState,We,rt):Re.localState&&Re.localMode.indent?Re.localMode.indent(Re.localState,We,rt):Ue.Pass},blankLine:Ce,getType:ve,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return lt},"xml"),Ue.defineMIME("text/markdown","markdown"),Ue.defineMIME("text/x-markdown","markdown")})},98101:function(Nt,Ot,Ge){(function(Ue){Ue(Ge(89780))})(function(Ue){"use strict";Ue.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Et=0;Et<Ue.modeInfo.length;Et++){var y=Ue.modeInfo[Et];y.mimes&&(y.mime=y.mimes[0])}Ue.findModeByMIME=function(we){we=we.toLowerCase();for(var ge=0;ge<Ue.modeInfo.length;ge++){var ee=Ue.modeInfo[ge];if(ee.mime==we)return ee;if(ee.mimes){for(var E=0;E<ee.mimes.length;E++)if(ee.mimes[E]==we)return ee}}if(/\+xml$/.test(we))return Ue.findModeByMIME("application/xml");if(/\+json$/.test(we))return Ue.findModeByMIME("application/json")},Ue.findModeByExtension=function(we){we=we.toLowerCase();for(var ge=0;ge<Ue.modeInfo.length;ge++){var ee=Ue.modeInfo[ge];if(ee.ext){for(var E=0;E<ee.ext.length;E++)if(ee.ext[E]==we)return ee}}},Ue.findModeByFileName=function(we){for(var ge=0;ge<Ue.modeInfo.length;ge++){var ee=Ue.modeInfo[ge];if(ee.file&&ee.file.test(we))return ee}var E=we.lastIndexOf("."),ie=E>-1&&we.substring(E+1,we.length);if(ie)return Ue.findModeByExtension(ie)},Ue.findModeByName=function(we){we=we.toLowerCase();for(var ge=0;ge<Ue.modeInfo.length;ge++){var ee=Ue.modeInfo[ge];if(ee.name.toLowerCase()==we)return ee;if(ee.alias){for(var E=0;E<ee.alias.length;E++)if(ee.alias[E].toLowerCase()==we)return ee}}}})},67549:function(Nt,Ot,Ge){(function(Ue){Ue(Ge(89780))})(function(Ue){"use strict";Ue.defineMode("stex",function(Et,y){"use strict";function we(te,ae){te.cmdState.push(ae)}function ge(te){return te.cmdState.length>0?te.cmdState[te.cmdState.length-1]:null}function ee(te){var ae=te.cmdState.pop();ae&&ae.closeBracket()}function E(te){for(var ae=te.cmdState,ue=ae.length-1;ue>=0;ue--){var fe=ae[ue];if(fe.name!="DEFAULT")return fe}return{styleIdentifier:function(){return null}}}function ie(te,ae,ue){return function(){this.name=te,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 le={};le.importmodule=ie("importmodule","tag",["string","builtin"]),le.documentclass=ie("documentclass","tag",["","atom"]),le.usepackage=ie("usepackage","tag",["atom"]),le.begin=ie("begin","tag",["atom"]),le.end=ie("end","tag",["atom"]),le.label=ie("label","tag",["atom"]),le.ref=ie("ref","tag",["atom"]),le.eqref=ie("eqref","tag",["atom"]),le.cite=ie("cite","tag",["atom"]),le.bibitem=ie("bibitem","tag",["atom"]),le.Bibitem=ie("Bibitem","tag",["atom"]),le.RBibitem=ie("RBibitem","tag",["atom"]),le.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function z(te,ae){te.f=ae}function se(te,ae){var ue;if(te.match(/^\\[a-zA-Z@]+/)){var fe=te.current().slice(1);return ue=le.hasOwnProperty(fe)?le[fe]:le.DEFAULT,ue=new ue,we(ae,ue),z(ae,re),ue.style}if(te.match(/^\\[$&%#{}_]/)||te.match(/^\\[,;!\/\\]/))return"tag";if(te.match("\\["))return z(ae,function(he,ce){return x(he,ce,"\\]")}),"keyword";if(te.match("\\("))return z(ae,function(he,ce){return x(he,ce,"\\)")}),"keyword";if(te.match("$$"))return z(ae,function(he,ce){return x(he,ce,"$$")}),"keyword";if(te.match("$"))return z(ae,function(he,ce){return x(he,ce,"$")}),"keyword";var de=te.next();if(de=="%")return te.skipToEnd(),"comment";if(de=="}"||de=="]"){if(ue=ge(ae),ue)ue.closeBracket(de),z(ae,re);else return"error";return"bracket"}else return de=="{"||de=="["?(ue=le.DEFAULT,ue=new ue,we(ae,ue),"bracket"):/\d/.test(de)?(te.eatWhile(/[\w.%]/),"atom"):(te.eatWhile(/[\w\-_]/),ue=E(ae),ue.name=="begin"&&(ue.argument=te.current()),ue.styleIdentifier())}function x(te,ae,ue){if(te.eatSpace())return null;if(ue&&te.match(ue))return z(ae,se),"keyword";if(te.match(/^\\[a-zA-Z@]+/))return"tag";if(te.match(/^[a-zA-Z]+/))return"variable-2";if(te.match(/^\\[$&%#{}_]/)||te.match(/^\\[,;!\/]/)||te.match(/^[\^_&]/))return"tag";if(te.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(te.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var fe=te.next();return fe=="{"||fe=="}"||fe=="["||fe=="]"||fe=="("||fe==")"?"bracket":fe=="%"?(te.skipToEnd(),"comment"):"error"}function re(te,ae){var ue=te.peek(),fe;return ue=="{"||ue=="["?(fe=ge(ae),fe.openBracket(ue),te.eat(ue),z(ae,se),"bracket"):/[ \t\r]/.test(ue)?(te.eat(ue),null):(z(ae,se),ee(ae),se(te,ae))}return{startState:function(){var te=y.inMathMode?function(ae,ue){return x(ae,ue)}:se;return{cmdState:[],f:te}},copyState:function(te){return{cmdState:te.cmdState.slice(),f:te.f}},token:function(te,ae){return ae.f(te,ae)},blankLine:function(te){te.f=se,te.cmdState.length=0},lineComment:"%"}}),Ue.defineMIME("text/x-stex","stex"),Ue.defineMIME("text/x-latex","stex")})},15525:function(Nt,Ot,Ge){(function(Ue){Ue(Ge(89780))})(function(Ue){"use strict";var Et={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},y={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Ue.defineMode("xml",function(we,ge){var ee=we.indentUnit,E={},ie=ge.htmlMode?Et:y;for(var le in ie)E[le]=ie[le];for(var le in ge)E[le]=ge[le];var z,se;function x(Oe,Me){function Se(Xe){return Me.tokenize=Xe,Xe(Oe,Me)}var je=Oe.next();if(je=="<")return Oe.eat("!")?Oe.eat("[")?Oe.match("CDATA[")?Se(ae("atom","]]>")):null:Oe.match("--")?Se(ae("comment","-->")):Oe.match("DOCTYPE",!0,!0)?(Oe.eatWhile(/[\w\._\-]/),Se(ue(1))):null:Oe.eat("?")?(Oe.eatWhile(/[\w\._\-]/),Me.tokenize=ae("meta","?>"),"meta"):(z=Oe.eat("/")?"closeTag":"openTag",Me.tokenize=re,"tag bracket");if(je=="&"){var Ze;return Oe.eat("#")?Oe.eat("x")?Ze=Oe.eatWhile(/[a-fA-F\d]/)&&Oe.eat(";"):Ze=Oe.eatWhile(/[\d]/)&&Oe.eat(";"):Ze=Oe.eatWhile(/[\w\.\-:]/)&&Oe.eat(";"),Ze?"atom":"error"}else return Oe.eatWhile(/[^&<]/),null}x.isInText=!0;function re(Oe,Me){var Se=Oe.next();if(Se==">"||Se=="/"&&Oe.eat(">"))return Me.tokenize=x,z=Se==">"?"endTag":"selfcloseTag","tag bracket";if(Se=="=")return z="equals",null;if(Se=="<"){Me.tokenize=x,Me.state=ce,Me.tagName=Me.tagStart=null;var je=Me.tokenize(Oe,Me);return je?je+" tag error":"tag error"}else return/[\'\"]/.test(Se)?(Me.tokenize=te(Se),Me.stringStartCol=Oe.column(),Me.tokenize(Oe,Me)):(Oe.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function te(Oe){var Me=function(Se,je){for(;!Se.eol();)if(Se.next()==Oe){je.tokenize=re;break}return"string"};return Me.isInAttribute=!0,Me}function ae(Oe,Me){return function(Se,je){for(;!Se.eol();){if(Se.match(Me)){je.tokenize=x;break}Se.next()}return Oe}}function ue(Oe){return function(Me,Se){for(var je;(je=Me.next())!=null;){if(je=="<")return Se.tokenize=ue(Oe+1),Se.tokenize(Me,Se);if(je==">")if(Oe==1){Se.tokenize=x;break}else return Se.tokenize=ue(Oe-1),Se.tokenize(Me,Se)}return"meta"}}function fe(Oe,Me,Se){this.prev=Oe.context,this.tagName=Me,this.indent=Oe.indented,this.startOfLine=Se,(E.doNotIndent.hasOwnProperty(Me)||Oe.context&&Oe.context.noIndent)&&(this.noIndent=!0)}function de(Oe){Oe.context&&(Oe.context=Oe.context.prev)}function he(Oe,Me){for(var Se;;){if(!Oe.context||(Se=Oe.context.tagName,!E.contextGrabbers.hasOwnProperty(Se)||!E.contextGrabbers[Se].hasOwnProperty(Me)))return;de(Oe)}}function ce(Oe,Me,Se){return Oe=="openTag"?(Se.tagStart=Me.column(),pe):Oe=="closeTag"?Ce:ce}function pe(Oe,Me,Se){return Oe=="word"?(Se.tagName=Me.current(),se="tag",Ae):E.allowMissingTagName&&Oe=="endTag"?(se="tag bracket",Ae(Oe,Me,Se)):(se="error",pe)}function Ce(Oe,Me,Se){if(Oe=="word"){var je=Me.current();return Se.context&&Se.context.tagName!=je&&E.implicitlyClosed.hasOwnProperty(Se.context.tagName)&&de(Se),Se.context&&Se.context.tagName==je||E.matchClosing===!1?(se="tag",ke):(se="tag error",De)}else return E.allowMissingTagName&&Oe=="endTag"?(se="tag bracket",ke(Oe,Me,Se)):(se="error",De)}function ke(Oe,Me,Se){return Oe!="endTag"?(se="error",ke):(de(Se),ce)}function De(Oe,Me,Se){return se="error",ke(Oe,Me,Se)}function Ae(Oe,Me,Se){if(Oe=="word")return se="attribute",ve;if(Oe=="endTag"||Oe=="selfcloseTag"){var je=Se.tagName,Ze=Se.tagStart;return Se.tagName=Se.tagStart=null,Oe=="selfcloseTag"||E.autoSelfClosers.hasOwnProperty(je)?he(Se,je):(he(Se,je),Se.context=new fe(Se,je,Ze==Se.indented)),ce}return se="error",Ae}function ve(Oe,Me,Se){return Oe=="equals"?be:(E.allowMissing||(se="error"),Ae(Oe,Me,Se))}function be(Oe,Me,Se){return Oe=="string"?Ee:Oe=="word"&&E.allowUnquoted?(se="string",Ae):(se="error",Ae(Oe,Me,Se))}function Ee(Oe,Me,Se){return Oe=="string"?Ee:Ae(Oe,Me,Se)}return{startState:function(Oe){var Me={tokenize:x,state:ce,indented:Oe||0,tagName:null,tagStart:null,context:null};return Oe!=null&&(Me.baseIndent=Oe),Me},token:function(Oe,Me){if(!Me.tagName&&Oe.sol()&&(Me.indented=Oe.indentation()),Oe.eatSpace())return null;z=null;var Se=Me.tokenize(Oe,Me);return(Se||z)&&Se!="comment"&&(se=null,Me.state=Me.state(z||Se,Oe,Me),se&&(Se=se=="error"?Se+" error":se)),Se},indent:function(Oe,Me,Se){var je=Oe.context;if(Oe.tokenize.isInAttribute)return Oe.tagStart==Oe.indented?Oe.stringStartCol+1:Oe.indented+ee;if(je&&je.noIndent)return Ue.Pass;if(Oe.tokenize!=re&&Oe.tokenize!=x)return Se?Se.match(/^(\s*)/)[0].length:0;if(Oe.tagName)return E.multilineTagIndentPastTag!==!1?Oe.tagStart+Oe.tagName.length+2:Oe.tagStart+ee*(E.multilineTagIndentFactor||1);if(E.alignCDATA&&/<!\[CDATA\[/.test(Me))return 0;var Ze=Me&&/^<(\/)?([\w_:\.-]*)/.exec(Me);if(Ze&&Ze[1])for(;je;)if(je.tagName==Ze[2]){je=je.prev;break}else if(E.implicitlyClosed.hasOwnProperty(je.tagName))je=je.prev;else break;else if(Ze)for(;je;){var Xe=E.contextGrabbers[je.tagName];if(Xe&&Xe.hasOwnProperty(Ze[2]))je=je.prev;else break}for(;je&&je.prev&&!je.startOfLine;)je=je.prev;return je?je.indent+ee:Oe.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:E.htmlMode?"html":"xml",helperType:E.htmlMode?"html":"xml",skipAttribute:function(Oe){Oe.state==be&&(Oe.state=Ae)},xmlCurrentTag:function(Oe){return Oe.tagName?{name:Oe.tagName,close:Oe.type=="closeTag"}:null},xmlCurrentContext:function(Oe){for(var Me=[],Se=Oe.context;Se;Se=Se.prev)Se.tagName&&Me.push(Se.tagName);return Me.reverse()}}}),Ue.defineMIME("text/xml","xml"),Ue.defineMIME("application/xml","xml"),Ue.mimeModes.hasOwnProperty("text/html")||Ue.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Nt,Ot,Ge){var Ue,Et;(function(y,we){Nt.exports=we(y)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ge.g!="undefined"?Ge.g:this,function(y){"use strict";y=y||{};var we=y.Base64,ge="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",E=function(Se){for(var je={},Ze=0,Xe=Se.length;Ze<Xe;Ze++)je[Se.charAt(Ze)]=Ze;return je}(ee),ie=String.fromCharCode,le=function(Se){if(Se.length<2){var je=Se.charCodeAt(0);return je<128?Se:je<2048?ie(192|je>>>6)+ie(128|je&63):ie(224|je>>>12&15)+ie(128|je>>>6&63)+ie(128|je&63)}else{var je=65536+(Se.charCodeAt(0)-55296)*1024+(Se.charCodeAt(1)-56320);return ie(240|je>>>18&7)+ie(128|je>>>12&63)+ie(128|je>>>6&63)+ie(128|je&63)}},z=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Se){return Se.replace(z,le)},x=function(Se){var je=[0,2,1][Se.length%3],Ze=Se.charCodeAt(0)<<16|(Se.length>1?Se.charCodeAt(1):0)<<8|(Se.length>2?Se.charCodeAt(2):0),Xe=[ee.charAt(Ze>>>18),ee.charAt(Ze>>>12&63),je>=2?"=":ee.charAt(Ze>>>6&63),je>=1?"=":ee.charAt(Ze&63)];return Xe.join("")},re=y.btoa&&typeof y.btoa=="function"?function(Se){return y.btoa(Se)}:function(Se){if(Se.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Se.replace(/[\s\S]{1,3}/g,x)},te=function(Se){return re(se(String(Se)))},ae=function(Se){return Se.replace(/[+\/]/g,function(je){return je=="+"?"-":"_"}).replace(/=/g,"")},ue=function(Se,je){return je?ae(te(Se)):te(Se)},fe=function(Se){return ue(Se,!0)},de;y.Uint8Array&&(de=function(Se,je){for(var Ze="",Xe=0,$e=Se.length;Xe<$e;Xe+=3){var lt=Se[Xe],Re=Se[Xe+1],We=Se[Xe+2],rt=lt<<16|Re<<8|We;Ze+=ee.charAt(rt>>>18)+ee.charAt(rt>>>12&63)+(typeof Re!="undefined"?ee.charAt(rt>>>6&63):"=")+(typeof We!="undefined"?ee.charAt(rt&63):"=")}return je?ae(Ze):Ze});var he=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ce=function(Se){switch(Se.length){case 4:var je=(7&Se.charCodeAt(0))<<18|(63&Se.charCodeAt(1))<<12|(63&Se.charCodeAt(2))<<6|63&Se.charCodeAt(3),Ze=je-65536;return ie((Ze>>>10)+55296)+ie((Ze&1023)+56320);case 3:return ie((15&Se.charCodeAt(0))<<12|(63&Se.charCodeAt(1))<<6|63&Se.charCodeAt(2));default:return ie((31&Se.charCodeAt(0))<<6|63&Se.charCodeAt(1))}},pe=function(Se){return Se.replace(he,ce)},Ce=function(Se){var je=Se.length,Ze=je%4,Xe=(je>0?E[Se.charAt(0)]<<18:0)|(je>1?E[Se.charAt(1)]<<12:0)|(je>2?E[Se.charAt(2)]<<6:0)|(je>3?E[Se.charAt(3)]:0),$e=[ie(Xe>>>16),ie(Xe>>>8&255),ie(Xe&255)];return $e.length-=[0,0,2,1][Ze],$e.join("")},ke=y.atob&&typeof y.atob=="function"?function(Se){return y.atob(Se)}:function(Se){return Se.replace(/\S{1,4}/g,Ce)},De=function(Se){return ke(String(Se).replace(/[^A-Za-z0-9\+\/]/g,""))},Ae=function(Se){return pe(ke(Se))},ve=function(Se){return String(Se).replace(/[-_]/g,function(je){return je=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},be=function(Se){return Ae(ve(Se))},Ee;y.Uint8Array&&(Ee=function(Se){return Uint8Array.from(De(ve(Se)),function(je){return je.charCodeAt(0)})});var Oe=function(){var Se=y.Base64;return y.Base64=we,Se};if(y.Base64={VERSION:ge,atob:De,btoa:re,fromBase64:be,toBase64:ue,utob:se,encode:ue,encodeURI:fe,btou:pe,decode:be,noConflict:Oe,fromUint8Array:de,toUint8Array:Ee},typeof Object.defineProperty=="function"){var Me=function(Se){return{value:Se,enumerable:!1,writable:!0,configurable:!0}};y.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Me(function(){return be(this)})),Object.defineProperty(String.prototype,"toBase64",Me(function(Se){return ue(this,Se)})),Object.defineProperty(String.prototype,"toBase64URI",Me(function(){return ue(this,!0)}))}}return y.Meteor&&(Base64=y.Base64),Nt.exports?Nt.exports.Base64=y.Base64:(Ue=[],Et=function(){return y.Base64}.apply(Ot,Ue),Et!==void 0&&(Nt.exports=Et)),{Base64:y.Base64}})},63727:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{s:function(){return Te},default:function(){return wt}});var Ue=Ge(54476),Et=Ge(33885),y=Ge(94480),we=Ge(42978),ge=Ge(75931),ee=Ge(37463),E=Ge(6551),ie=Ge(6089),le=Ge(18929),z=Ge(59301),se=z.createContext({}),x=se,re=Ge(76190),te=Ge(20068),ae="__rc_cascader_search_mark__",ue=function(gt,ht,xt){var St=xt.label,Ct=St===void 0?"":St;return ht.some(function(jt){return String(jt[Ct]).toLowerCase().includes(gt.toLowerCase())})},fe=function(gt,ht,xt,St){return ht.map(function(Ct){return Ct[St.label]}).join(" / ")},de=function(gt,ht,xt,St,Ct,jt){var Ut=Ct.filter,Bt=Ut===void 0?ue:Ut,qt=Ct.render,xr=qt===void 0?fe:qt,pr=Ct.limit,Lt=pr===void 0?50:pr,Vt=Ct.sort;return z.useMemo(function(){var ar=[];if(!gt)return[];function fr(Jt,sr){var Dr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Jt.forEach(function(Xt){if(!(!Vt&&Lt!==!1&&Lt>0&&ar.length>=Lt)){var zt=[].concat((0,y.Z)(sr),[Xt]),Zt=Xt[xt.children],Yt=Dr||Xt.disabled;if((!Zt||Zt.length===0||jt)&&Bt(gt,zt,{label:xt.label})){var Pt;ar.push((0,Et.Z)((0,Et.Z)({},Xt),{},(Pt={disabled:Yt},(0,te.Z)(Pt,xt.label,xr(gt,zt,St,xt)),(0,te.Z)(Pt,ae,zt),(0,te.Z)(Pt,xt.children,void 0),Pt)))}Zt&&fr(Xt[xt.children],zt,Yt)}})}return fr(ht,[]),Vt&&ar.sort(function(Jt,sr){return Vt(Jt[ae],sr[ae],gt,xt)}),Lt!==!1&&Lt>0?ar.slice(0,Lt):ar},[gt,ht,xt,St,xr,jt,Bt,Vt,Lt])},he=de,ce="__RC_CASCADER_SPLIT__",pe="SHOW_PARENT",Ce="SHOW_CHILD";function ke(vt){return vt.join(ce)}function De(vt){return vt.map(ke)}function Ae(vt){return vt.split(ce)}function ve(vt){var gt=vt||{},ht=gt.label,xt=gt.value,St=gt.children,Ct=xt||"value";return{label:ht||"label",value:Ct,key:Ct,children:St||"children"}}function be(vt,gt){var ht,xt;return(ht=vt.isLeaf)!==null&&ht!==void 0?ht:!((xt=vt[gt.children])!==null&&xt!==void 0&&xt.length)}function Ee(vt){var gt=vt.parentElement;if(gt){var ht=vt.offsetTop-gt.offsetTop;ht-gt.scrollTop<0?gt.scrollTo({top:ht}):ht+vt.offsetHeight-gt.scrollTop>gt.offsetHeight&&gt.scrollTo({top:ht+vt.offsetHeight-gt.offsetHeight})}}function Oe(vt,gt){return vt.map(function(ht){var xt;return(xt=ht[ae])===null||xt===void 0?void 0:xt.map(function(St){return St[gt.value]})})}function Me(vt){return Array.isArray(vt)&&Array.isArray(vt[0])}function Se(vt){return vt?Me(vt)?vt:(vt.length===0?[]:[vt]).map(function(gt){return Array.isArray(gt)?gt:[gt]}):[]}function je(vt,gt,ht){var xt=new Set(vt),St=gt();return vt.filter(function(Ct){var jt=St[Ct],Ut=jt?jt.parent:null,Bt=jt?jt.children:null;return jt&&jt.node.disabled?!0:ht===Ce?!(Bt&&Bt.some(function(qt){return qt.key&&xt.has(qt.key)})):!(Ut&&!Ut.node.disabled&&xt.has(Ut.key))})}function Ze(vt,gt,ht){for(var xt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,St=gt,Ct=[],jt=function(){var qt,xr,pr,Lt=vt[Ut],Vt=(qt=St)===null||qt===void 0?void 0:qt.findIndex(function(fr){var Jt=fr[ht.value];return xt?String(Jt)===String(Lt):Jt===Lt}),ar=Vt!==-1?(xr=St)===null||xr===void 0?void 0:xr[Vt]:null;Ct.push({value:(pr=ar==null?void 0:ar[ht.value])!==null&&pr!==void 0?pr:Lt,index:Vt,option:ar}),St=ar==null?void 0:ar[ht.children]},Ut=0;Ut<vt.length;Ut+=1)jt();return Ct}var Xe=function(vt,gt,ht,xt,St){return z.useMemo(function(){var Ct=St||function(jt){var Ut=xt?jt.slice(-1):jt,Bt=" / ";return Ut.every(function(qt){return["string","number"].includes((0,re.Z)(qt))})?Ut.join(Bt):Ut.reduce(function(qt,xr,pr){var Lt=z.isValidElement(xr)?z.cloneElement(xr,{key:pr}):xr;return pr===0?[Lt]:[].concat((0,y.Z)(qt),[Bt,Lt])},[])};return vt.map(function(jt){var Ut,Bt=Ze(jt,gt,ht),qt=Ct(Bt.map(function(pr){var Lt,Vt=pr.option,ar=pr.value;return(Lt=Vt==null?void 0:Vt[ht.label])!==null&&Lt!==void 0?Lt:ar}),Bt.map(function(pr){var Lt=pr.option;return Lt})),xr=ke(jt);return{label:qt,value:xr,key:xr,valueCells:jt,disabled:(Ut=Bt[Bt.length-1])===null||Ut===void 0||(Ut=Ut.option)===null||Ut===void 0?void 0:Ut.disabled}})},[vt,gt,ht,St,xt])};function $e(vt,gt){return z.useCallback(function(ht){var xt=[],St=[];return ht.forEach(function(Ct){var jt=Ze(Ct,vt,gt);jt.every(function(Ut){return Ut.option})?St.push(Ct):xt.push(Ct)}),[St,xt]},[vt,gt])}var lt=Ge(34061),Re=function(vt,gt){var ht=z.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),xt=z.useCallback(function(){return ht.current.options!==vt&&(ht.current.options=vt,ht.current.info=(0,lt.I8)(vt,{fieldNames:gt,initWrapper:function(Ct){return(0,Et.Z)((0,Et.Z)({},Ct),{},{pathKeyEntities:{}})},processEntity:function(Ct,jt){var Ut=Ct.nodes.map(function(Bt){return Bt[gt.value]}).join(ce);jt.pathKeyEntities[Ut]=Ct,Ct.key=Ut}})),ht.current.info.pathKeyEntities},[gt,vt]);return xt};function We(vt,gt){var ht=z.useMemo(function(){return gt||[]},[gt]),xt=Re(ht,vt),St=z.useCallback(function(Ct){var jt=xt();return Ct.map(function(Ut){var Bt=jt[Ut].nodes;return Bt.map(function(qt){return qt[vt.value]})})},[xt,vt]);return[ht,xt,St]}var rt=Ge(48736);function ot(vt){return z.useMemo(function(){if(!vt)return[!1,{}];var gt={matchInputWidth:!0,limit:50};return vt&&(0,re.Z)(vt)==="object"&&(gt=(0,Et.Z)((0,Et.Z)({},gt),vt)),gt.limit<=0&&(gt.limit=!1),[!0,gt]},[vt])}var at=Ge(34643);function Je(vt,gt,ht,xt,St,Ct,jt,Ut){return function(Bt){if(!vt)gt(Bt);else{var qt=ke(Bt),xr=De(ht),pr=De(xt),Lt=xr.includes(qt),Vt=St.some(function(Yt){return ke(Yt)===qt}),ar=ht,fr=St;if(Vt&&!Lt)fr=St.filter(function(Yt){return ke(Yt)!==qt});else{var Jt=Lt?xr.filter(function(Yt){return Yt!==qt}):[].concat((0,y.Z)(xr),[qt]),sr=Ct(),Dr;if(Lt){var Xt=(0,at.S)(Jt,{checked:!1,halfCheckedKeys:pr},sr);Dr=Xt.checkedKeys}else{var zt=(0,at.S)(Jt,!0,sr);Dr=zt.checkedKeys}var Zt=je(Dr,Ct,Ut);ar=jt(Zt)}gt([].concat((0,y.Z)(fr),(0,y.Z)(ar)))}}}function Qe(vt,gt,ht,xt,St){return z.useMemo(function(){var Ct=St(gt),jt=(0,we.Z)(Ct,2),Ut=jt[0],Bt=jt[1];if(!vt||!gt.length)return[Ut,[],Bt];var qt=De(Ut),xr=ht(),pr=(0,at.S)(qt,!0,xr),Lt=pr.checkedKeys,Vt=pr.halfCheckedKeys;return[xt(Lt),xt(Vt),Bt]},[vt,gt,ht,xt,St])}var Ve=Ge(92310),ct=Ge.n(Ve),tt=z.memo(function(vt){var gt=vt.children;return gt},function(vt,gt){return!gt.open}),ut=tt;function st(vt){var gt,ht=vt.prefixCls,xt=vt.checked,St=vt.halfChecked,Ct=vt.disabled,jt=vt.onClick,Ut=vt.disableCheckbox,Bt=z.useContext(x),qt=Bt.checkable,xr=typeof qt!="boolean"?qt:null;return z.createElement("span",{className:ct()("".concat(ht),(gt={},(0,te.Z)(gt,"".concat(ht,"-checked"),xt),(0,te.Z)(gt,"".concat(ht,"-indeterminate"),!xt&&St),(0,te.Z)(gt,"".concat(ht,"-disabled"),Ct||Ut),gt)),onClick:jt},xr)}var ze="__cascader_fix_label__";function Be(vt){var gt=vt.prefixCls,ht=vt.multiple,xt=vt.options,St=vt.activeValue,Ct=vt.prevValuePath,jt=vt.onToggleOpen,Ut=vt.onSelect,Bt=vt.onActive,qt=vt.checkedSet,xr=vt.halfCheckedSet,pr=vt.loadingKeys,Lt=vt.isSelectable,Vt=vt.disabled,ar="".concat(gt,"-menu"),fr="".concat(gt,"-menu-item"),Jt=z.useContext(x),sr=Jt.fieldNames,Dr=Jt.changeOnSelect,Xt=Jt.expandTrigger,zt=Jt.expandIcon,Zt=Jt.loadingIcon,Yt=Jt.dropdownMenuColumnStyle,Pt=Jt.optionRender,Wt=Xt==="hover",$t=function(Er){return Vt||Er},cr=z.useMemo(function(){return xt.map(function(Ht){var Er,Tr=Ht.disabled,Mr=Ht.disableCheckbox,Cr=Ht[ae],dr=(Er=Ht[ze])!==null&&Er!==void 0?Er:Ht[sr.label],er=Ht[sr.value],Mt=be(Ht,sr),rr=Cr?Cr.map(function(nr){return nr[sr.value]}):[].concat((0,y.Z)(Ct),[er]),gr=ke(rr),Lr=pr.includes(gr),At=qt.has(gr),Tt=xr.has(gr);return{disabled:Tr,label:dr,value:er,isLeaf:Mt,isLoading:Lr,checked:At,halfChecked:Tt,option:Ht,disableCheckbox:Mr,fullPath:rr,fullPathKey:gr}})},[xt,qt,sr,xr,pr,Ct]);return z.createElement("ul",{className:ar,role:"menu"},cr.map(function(Ht){var Er,Tr=Ht.disabled,Mr=Ht.label,Cr=Ht.value,dr=Ht.isLeaf,er=Ht.isLoading,Mt=Ht.checked,rr=Ht.halfChecked,gr=Ht.option,Lr=Ht.fullPath,At=Ht.fullPathKey,Tt=Ht.disableCheckbox,nr=function(){if(!$t(Tr)){var tr=(0,y.Z)(Lr);Wt&&dr&&tr.pop(),Bt(tr)}},Kt=function(){Lt(gr)&&!$t(Tr)&&Ut(Lr,dr)},Dt;return typeof gr.title=="string"?Dt=gr.title:typeof Mr=="string"&&(Dt=Mr),z.createElement("li",{key:At,className:ct()(fr,(Er={},(0,te.Z)(Er,"".concat(fr,"-expand"),!dr),(0,te.Z)(Er,"".concat(fr,"-active"),St===Cr||St===At),(0,te.Z)(Er,"".concat(fr,"-disabled"),$t(Tr)),(0,te.Z)(Er,"".concat(fr,"-loading"),er),Er)),style:Yt,role:"menuitemcheckbox",title:Dt,"aria-checked":Mt,"data-path-key":At,onClick:function(){nr(),!Tt&&(!ht||dr)&&Kt()},onDoubleClick:function(){Dr&&jt(!1)},onMouseEnter:function(){Wt&&nr()},onMouseDown:function(tr){tr.preventDefault()}},ht&&z.createElement(st,{prefixCls:"".concat(gt,"-checkbox"),checked:Mt,halfChecked:rr,disabled:$t(Tr)||Tt,disableCheckbox:Tt,onClick:function(tr){Tt||(tr.stopPropagation(),Kt())}}),z.createElement("div",{className:"".concat(fr,"-content")},Pt?Pt(gr):Mr),!er&&zt&&!dr&&z.createElement("div",{className:"".concat(fr,"-expand-icon")},zt),er&&Zt&&z.createElement("div",{className:"".concat(fr,"-loading-icon")},Zt))}))}var Ke=function(gt,ht){var xt=z.useContext(x),St=xt.values,Ct=St[0],jt=z.useState([]),Ut=(0,we.Z)(jt,2),Bt=Ut[0],qt=Ut[1];return z.useEffect(function(){gt||qt(Ct||[])},[ht,Ct]),[Bt,qt]},Ie=Ke,Ye=Ge(10228),ft=function(vt,gt,ht,xt,St,Ct,jt){var Ut=jt.direction,Bt=jt.searchValue,qt=jt.toggleOpen,xr=jt.open,pr=Ut==="rtl",Lt=z.useMemo(function(){for(var Yt=-1,Pt=gt,Wt=[],$t=[],cr=xt.length,Ht=Oe(gt,ht),Er=function(er){var Mt=Pt.findIndex(function(rr,gr){return(Ht[gr]?ke(Ht[gr]):rr[ht.value])===xt[er]});if(Mt===-1)return 1;Yt=Mt,Wt.push(Yt),$t.push(xt[er]),Pt=Pt[Yt][ht.children]},Tr=0;Tr<cr&&Pt&&!Er(Tr);Tr+=1);for(var Mr=gt,Cr=0;Cr<Wt.length-1;Cr+=1)Mr=Mr[Wt[Cr]][ht.children];return[$t,Yt,Mr,Ht]},[xt,ht,gt]),Vt=(0,we.Z)(Lt,4),ar=Vt[0],fr=Vt[1],Jt=Vt[2],sr=Vt[3],Dr=function(Pt){St(Pt)},Xt=function(Pt){var Wt=Jt.length,$t=fr;$t===-1&&Pt<0&&($t=Wt);for(var cr=0;cr<Wt;cr+=1){$t=($t+Pt+Wt)%Wt;var Ht=Jt[$t];if(Ht&&!Ht.disabled){var Er=ar.slice(0,-1).concat(sr[$t]?ke(sr[$t]):Ht[ht.value]);Dr(Er);return}}},zt=function(){if(ar.length>1){var Pt=ar.slice(0,-1);Dr(Pt)}else qt(!1)},Zt=function(){var Pt,Wt=((Pt=Jt[fr])===null||Pt===void 0?void 0:Pt[ht.children])||[],$t=Wt.find(function(Ht){return!Ht.disabled});if($t){var cr=[].concat((0,y.Z)(ar),[$t[ht.value]]);Dr(cr)}};z.useImperativeHandle(vt,function(){return{onKeyDown:function(Pt){var Wt=Pt.which;switch(Wt){case Ye.Z.UP:case Ye.Z.DOWN:{var $t=0;Wt===Ye.Z.UP?$t=-1:Wt===Ye.Z.DOWN&&($t=1),$t!==0&&Xt($t);break}case Ye.Z.LEFT:{if(Bt)break;pr?Zt():zt();break}case Ye.Z.RIGHT:{if(Bt)break;pr?zt():Zt();break}case Ye.Z.BACKSPACE:{Bt||zt();break}case Ye.Z.ENTER:{if(ar.length){var cr=Jt[fr],Ht=(cr==null?void 0:cr[ae])||[];Ht.length?Ct(Ht.map(function(Er){return Er[ht.value]}),Ht[Ht.length-1]):Ct(ar,Jt[fr])}break}case Ye.Z.ESC:qt(!1),xr&&Pt.stopPropagation()}},onKeyUp:function(){}}})},mt=z.forwardRef(function(vt,gt){var ht,xt,St,Ct=vt.prefixCls,jt=vt.multiple,Ut=vt.searchValue,Bt=vt.toggleOpen,qt=vt.notFoundContent,xr=vt.direction,pr=vt.open,Lt=vt.disabled,Vt=z.useRef(null),ar=xr==="rtl",fr=z.useContext(x),Jt=fr.options,sr=fr.values,Dr=fr.halfValues,Xt=fr.fieldNames,zt=fr.changeOnSelect,Zt=fr.onSelect,Yt=fr.searchOptions,Pt=fr.dropdownPrefixCls,Wt=fr.loadData,$t=fr.expandTrigger,cr=Pt||Ct,Ht=z.useState([]),Er=(0,we.Z)(Ht,2),Tr=Er[0],Mr=Er[1],Cr=function(Rt){if(!(!Wt||Ut)){var lr=Ze(Rt,Jt,Xt),ur=lr.map(function($r){var ln=$r.option;return ln}),kr=ur[ur.length-1];if(kr&&!be(kr,Xt)){var Nr=ke(Rt);Mr(function($r){return[].concat((0,y.Z)($r),[Nr])}),Wt(ur)}}};z.useEffect(function(){Tr.length&&Tr.forEach(function(Gt){var Rt=Ae(Gt),lr=Ze(Rt,Jt,Xt,!0).map(function(kr){var Nr=kr.option;return Nr}),ur=lr[lr.length-1];(!ur||ur[Xt.children]||be(ur,Xt))&&Mr(function(kr){return kr.filter(function(Nr){return Nr!==Gt})})})},[Jt,Tr,Xt]);var dr=z.useMemo(function(){return new Set(De(sr))},[sr]),er=z.useMemo(function(){return new Set(De(Dr))},[Dr]),Mt=Ie(jt,pr),rr=(0,we.Z)(Mt,2),gr=rr[0],Lr=rr[1],At=function(Rt){Lr(Rt),Cr(Rt)},Tt=function(Rt){if(Lt)return!1;var lr=Rt.disabled,ur=be(Rt,Xt);return!lr&&(ur||zt||jt)},nr=function(Rt,lr){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Zt(Rt),!jt&&(lr||zt&&($t==="hover"||ur))&&Bt(!1)},Kt=z.useMemo(function(){return Ut?Yt:Jt},[Ut,Yt,Jt]),Dt=z.useMemo(function(){for(var Gt=[{options:Kt}],Rt=Kt,lr=Oe(Rt,Xt),ur=function(){var $r=gr[kr],ln=Rt.find(function(Sr,Gr){return(lr[Gr]?ke(lr[Gr]):Sr[Xt.value])===$r}),Zr=ln==null?void 0:ln[Xt.children];if(!(Zr!=null&&Zr.length))return 1;Rt=Zr,Gt.push({options:Zr})},kr=0;kr<gr.length&&!ur();kr+=1);return Gt},[Kt,gr,Xt]),Qt=function(Rt,lr){Tt(lr)&&nr(Rt,be(lr,Xt),!0)};ft(gt,Kt,Xt,gr,At,Qt,{direction:xr,searchValue:Ut,toggleOpen:Bt,open:pr}),z.useEffect(function(){if(!Ut)for(var Gt=0;Gt<gr.length;Gt+=1){var Rt,lr=gr.slice(0,Gt+1),ur=ke(lr),kr=(Rt=Vt.current)===null||Rt===void 0?void 0:Rt.querySelector('li[data-path-key="'.concat(ur.replace(/\\{0,2}"/g,'\\"'),'"]'));kr&&Ee(kr)}},[gr,Ut]);var tr=!((ht=Dt[0])!==null&&ht!==void 0&&(ht=ht.options)!==null&&ht!==void 0&&ht.length),yr=[(xt={},(0,te.Z)(xt,Xt.value,"__EMPTY__"),(0,te.Z)(xt,ze,qt),(0,te.Z)(xt,"disabled",!0),xt)],jr=(0,Et.Z)((0,Et.Z)({},vt),{},{multiple:!tr&&jt,onSelect:nr,onActive:At,onToggleOpen:Bt,checkedSet:dr,halfCheckedSet:er,loadingKeys:Tr,isSelectable:Tt}),or=tr?[{options:yr}]:Dt,wr=or.map(function(Gt,Rt){var lr=gr.slice(0,Rt),ur=gr[Rt];return z.createElement(Be,(0,Ue.Z)({key:Rt},jr,{prefixCls:cr,options:Gt.options,prevValuePath:lr,activeValue:ur}))});return z.createElement(ut,{open:pr},z.createElement("div",{className:ct()("".concat(cr,"-menus"),(St={},(0,te.Z)(St,"".concat(cr,"-menu-empty"),tr),(0,te.Z)(St,"".concat(cr,"-rtl"),ar),St)),ref:Vt},wr))}),nt=mt,_e=z.forwardRef(function(vt,gt){var ht=(0,ee.lk)();return z.createElement(nt,(0,Ue.Z)({},vt,ht,{ref:gt}))}),Pe=_e,He=Ge(70425);function it(){}function Te(vt){var gt,ht=vt,xt=ht.prefixCls,St=xt===void 0?"rc-cascader":xt,Ct=ht.style,jt=ht.className,Ut=ht.options,Bt=ht.checkable,qt=ht.defaultValue,xr=ht.value,pr=ht.fieldNames,Lt=ht.changeOnSelect,Vt=ht.onChange,ar=ht.showCheckedStrategy,fr=ht.loadData,Jt=ht.expandTrigger,sr=ht.expandIcon,Dr=sr===void 0?">":sr,Xt=ht.loadingIcon,zt=ht.direction,Zt=ht.notFoundContent,Yt=Zt===void 0?"Not Found":Zt,Pt=ht.disabled,Wt=!!Bt,$t=(0,He.C8)(qt,{value:xr,postState:Se}),cr=(0,we.Z)($t,2),Ht=cr[0],Er=cr[1],Tr=z.useMemo(function(){return ve(pr)},[JSON.stringify(pr)]),Mr=We(Tr,Ut),Cr=(0,we.Z)(Mr,3),dr=Cr[0],er=Cr[1],Mt=Cr[2],rr=$e(dr,Tr),gr=Qe(Wt,Ht,er,Mt,rr),Lr=(0,we.Z)(gr,3),At=Lr[0],Tt=Lr[1],nr=Lr[2],Kt=(0,He.zX)(function(or){if(Er(or),Vt){var wr=Se(or),Gt=wr.map(function(ur){return Ze(ur,dr,Tr).map(function(kr){return kr.option})}),Rt=Wt?wr:wr[0],lr=Wt?Gt:Gt[0];Vt(Rt,lr)}}),Dt=Je(Wt,Kt,At,Tt,nr,er,Mt,ar),Qt=(0,He.zX)(function(or){Dt(or)}),tr=z.useMemo(function(){return{options:dr,fieldNames:Tr,values:At,halfValues:Tt,changeOnSelect:Lt,onSelect:Qt,checkable:Bt,searchOptions:[],dropdownPrefixCls:void 0,loadData:fr,expandTrigger:Jt,expandIcon:Dr,loadingIcon:Xt,dropdownMenuColumnStyle:void 0}},[dr,Tr,At,Tt,Lt,Qt,Bt,fr,Jt,Dr,Xt]),yr="".concat(St,"-panel"),jr=!dr.length;return z.createElement(x.Provider,{value:tr},z.createElement("div",{className:ct()(yr,(gt={},(0,te.Z)(gt,"".concat(yr,"-rtl"),zt==="rtl"),(0,te.Z)(gt,"".concat(yr,"-empty"),jr),gt),jt),style:Ct},jr?Yt:z.createElement(nt,{prefixCls:St,searchValue:"",multiple:Wt,toggleOpen:it,open:!0,direction:zt,disabled:Pt})))}function xe(vt){var gt=vt.onPopupVisibleChange,ht=vt.popupVisible,xt=vt.popupClassName,St=vt.popupPlacement;warning(!gt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(ht===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(xt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(St===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ye(vt,gt){if(vt){var ht=function xt(St){for(var Ct=0;Ct<St.length;Ct++){var jt=St[Ct];if(jt[gt==null?void 0:gt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(jt[gt==null?void 0:gt.children])&&xt(jt[gt==null?void 0:gt.children]))return!0}};ht(vt)}}var Le=null,et=["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"],Ne=z.forwardRef(function(vt,gt){var ht=vt.id,xt=vt.prefixCls,St=xt===void 0?"rc-cascader":xt,Ct=vt.fieldNames,jt=vt.defaultValue,Ut=vt.value,Bt=vt.changeOnSelect,qt=vt.onChange,xr=vt.displayRender,pr=vt.checkable,Lt=vt.autoClearSearchValue,Vt=Lt===void 0?!0:Lt,ar=vt.searchValue,fr=vt.onSearch,Jt=vt.showSearch,sr=vt.expandTrigger,Dr=vt.options,Xt=vt.dropdownPrefixCls,zt=vt.loadData,Zt=vt.popupVisible,Yt=vt.open,Pt=vt.popupClassName,Wt=vt.dropdownClassName,$t=vt.dropdownMenuColumnStyle,cr=vt.dropdownStyle,Ht=vt.popupPlacement,Er=vt.placement,Tr=vt.onDropdownVisibleChange,Mr=vt.onPopupVisibleChange,Cr=vt.expandIcon,dr=Cr===void 0?">":Cr,er=vt.loadingIcon,Mt=vt.children,rr=vt.dropdownMatchSelectWidth,gr=rr===void 0?!1:rr,Lr=vt.showCheckedStrategy,At=Lr===void 0?pe:Lr,Tt=vt.optionRender,nr=(0,ge.Z)(vt,et),Kt=(0,E.ZP)(ht),Dt=!!pr,Qt=(0,le.Z)(jt,{value:Ut,postState:Se}),tr=(0,we.Z)(Qt,2),yr=tr[0],jr=tr[1],or=z.useMemo(function(){return ve(Ct)},[JSON.stringify(Ct)]),wr=We(or,Dr),Gt=(0,we.Z)(wr,3),Rt=Gt[0],lr=Gt[1],ur=Gt[2],kr=(0,le.Z)("",{value:ar,postState:function(qr){return qr||""}}),Nr=(0,we.Z)(kr,2),$r=Nr[0],ln=Nr[1],Zr=function(qr,Sn){ln(qr),Sn.source!=="blur"&&fr&&fr(qr)},Sr=ot(Jt),Gr=(0,we.Z)(Sr,2),Ir=Gr[0],fn=Gr[1],_n=he($r,Rt,or,Xt||St,fn,Bt||Dt),yn=$e(Rt,or),Mn=Qe(Dt,yr,lr,ur,yn),On=(0,we.Z)(Mn,3),kn=On[0],wn=On[1],Rn=On[2],mr=z.useMemo(function(){var hn=De(kn),qr=je(hn,lr,At);return[].concat((0,y.Z)(Rn),(0,y.Z)(ur(qr)))},[kn,lr,ur,Rn,At]),Rr=Xe(mr,Rt,or,Dt,xr),Qr=(0,ie.Z)(function(hn){if(jr(hn),qt){var qr=Se(hn),Sn=qr.map(function(Ar){return Ze(Ar,Rt,or).map(function(Kr){return Kr.option})}),on=Dt?qr:qr[0],hr=Dt?Sn:Sn[0];qt(on,hr)}}),Yr=Je(Dt,Qr,kn,wn,Rn,lr,ur,At),Jr=(0,ie.Z)(function(hn){(!Dt||Vt)&&ln(""),Yr(hn)}),zr=function(qr,Sn){if(Sn.type==="clear"){Qr([]);return}var on=Sn.values[0],hr=on.valueCells;Jr(hr)},Or=Yt!==void 0?Yt:Zt,un=Wt||Pt,xn=Er||Ht,Bn=function(qr){Tr==null||Tr(qr),Mr==null||Mr(qr)},en=z.useMemo(function(){return{options:Rt,fieldNames:or,values:kn,halfValues:wn,changeOnSelect:Bt,onSelect:Jr,checkable:pr,searchOptions:_n,dropdownPrefixCls:Xt,loadData:zt,expandTrigger:sr,expandIcon:dr,loadingIcon:er,dropdownMenuColumnStyle:$t,optionRender:Tt}},[Rt,or,kn,wn,Bt,Jr,pr,_n,Xt,zt,sr,dr,er,$t,Tt]),mn=!($r?_n:Rt).length,bn=$r&&fn.matchInputWidth||mn?{}:{minWidth:"auto"};return z.createElement(x.Provider,{value:en},z.createElement(ee.Ac,(0,Ue.Z)({},nr,{ref:gt,id:Kt,prefixCls:St,autoClearSearchValue:Vt,dropdownMatchSelectWidth:gr,dropdownStyle:(0,Et.Z)((0,Et.Z)({},bn),cr),displayValues:Rr,onDisplayValuesChange:zr,mode:Dt?"multiple":void 0,searchValue:$r,onSearch:Zr,showSearch:Ir,OptionList:Pe,emptyOptions:mn,open:Or,dropdownClassName:un,placement:xn,onDropdownVisibleChange:Bn,getRawInputElement:function(){return Mt}})))});Ne.SHOW_PARENT=pe,Ne.SHOW_CHILD=Ce,Ne.Panel=Te;var yt=Ne,wt=yt},66042:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return Me}});var Ue=Ge(33885),Et=Ge(42978),y=Ge(43403),we=Ge(34280),ge=Ge(59301),ee=ge.createContext(null),E=ge.createContext({}),ie=ee,le=Ge(20068),z=Ge(54476),se=Ge(92310),x=Ge.n(se),re=Ge(77900),te=Ge(10228),ae=Ge(26112),ue=Ge(75931),fe=Ge(8654),de=["prefixCls","className","containerRef"],he=function(je){var Ze=je.prefixCls,Xe=je.className,$e=je.containerRef,lt=(0,ue.Z)(je,de),Re=ge.useContext(E),We=Re.panel,rt=(0,fe.x1)(We,$e);return ge.createElement("div",(0,z.Z)({className:x()("".concat(Ze,"-content"),Xe),role:"dialog",ref:rt},(0,ae.Z)(je,{aria:!0}),{"aria-modal":"true"},lt))},ce=he,pe=Ge(48736);function Ce(Se){return typeof Se=="string"&&String(Number(Se))===Se?((0,pe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Se)):Se}function ke(Se){warning(!("wrapperClassName"in Se),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Se.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var De={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ae(Se,je){var Ze,Xe,$e,lt=Se.prefixCls,Re=Se.open,We=Se.placement,rt=Se.inline,ot=Se.push,at=Se.forceRender,Je=Se.autoFocus,Qe=Se.keyboard,Ve=Se.classNames,ct=Se.rootClassName,tt=Se.rootStyle,ut=Se.zIndex,st=Se.className,ze=Se.id,Be=Se.style,Ke=Se.motion,Ie=Se.width,Ye=Se.height,ft=Se.children,mt=Se.mask,nt=Se.maskClosable,_e=Se.maskMotion,Pe=Se.maskClassName,He=Se.maskStyle,it=Se.afterOpenChange,Te=Se.onClose,xe=Se.onMouseEnter,ye=Se.onMouseOver,Le=Se.onMouseLeave,et=Se.onClick,Ne=Se.onKeyDown,yt=Se.onKeyUp,wt=Se.styles,vt=Se.drawerRender,gt=ge.useRef(),ht=ge.useRef(),xt=ge.useRef();ge.useImperativeHandle(je,function(){return gt.current});var St=function(zt){var Zt=zt.keyCode,Yt=zt.shiftKey;switch(Zt){case te.Z.TAB:{if(Zt===te.Z.TAB){if(!Yt&&document.activeElement===xt.current){var Pt;(Pt=ht.current)===null||Pt===void 0||Pt.focus({preventScroll:!0})}else if(Yt&&document.activeElement===ht.current){var Wt;(Wt=xt.current)===null||Wt===void 0||Wt.focus({preventScroll:!0})}}break}case te.Z.ESC:{Te&&Qe&&(zt.stopPropagation(),Te(zt));break}}};ge.useEffect(function(){if(Re&&Je){var Xt;(Xt=gt.current)===null||Xt===void 0||Xt.focus({preventScroll:!0})}},[Re]);var Ct=ge.useState(!1),jt=(0,Et.Z)(Ct,2),Ut=jt[0],Bt=jt[1],qt=ge.useContext(ie),xr;typeof ot=="boolean"?xr=ot?{}:{distance:0}:xr=ot||{};var pr=(Ze=(Xe=($e=xr)===null||$e===void 0?void 0:$e.distance)!==null&&Xe!==void 0?Xe:qt==null?void 0:qt.pushDistance)!==null&&Ze!==void 0?Ze:180,Lt=ge.useMemo(function(){return{pushDistance:pr,push:function(){Bt(!0)},pull:function(){Bt(!1)}}},[pr]);ge.useEffect(function(){if(Re){var Xt;qt==null||(Xt=qt.push)===null||Xt===void 0||Xt.call(qt)}else{var zt;qt==null||(zt=qt.pull)===null||zt===void 0||zt.call(qt)}},[Re]),ge.useEffect(function(){return function(){var Xt;qt==null||(Xt=qt.pull)===null||Xt===void 0||Xt.call(qt)}},[]);var Vt=mt&&ge.createElement(re.default,(0,z.Z)({key:"mask"},_e,{visible:Re}),function(Xt,zt){var Zt=Xt.className,Yt=Xt.style;return ge.createElement("div",{className:x()("".concat(lt,"-mask"),Zt,Ve==null?void 0:Ve.mask,Pe),style:(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Yt),He),wt==null?void 0:wt.mask),onClick:nt&&Re?Te:void 0,ref:zt})}),ar=typeof Ke=="function"?Ke(We):Ke,fr={};if(Ut&&pr)switch(We){case"top":fr.transform="translateY(".concat(pr,"px)");break;case"bottom":fr.transform="translateY(".concat(-pr,"px)");break;case"left":fr.transform="translateX(".concat(pr,"px)");break;default:fr.transform="translateX(".concat(-pr,"px)");break}We==="left"||We==="right"?fr.width=Ce(Ie):fr.height=Ce(Ye);var Jt={onMouseEnter:xe,onMouseOver:ye,onMouseLeave:Le,onClick:et,onKeyDown:Ne,onKeyUp:yt},sr=ge.createElement(re.default,(0,z.Z)({key:"panel"},ar,{visible:Re,forceRender:at,onVisibleChanged:function(zt){it==null||it(zt)},removeOnLeave:!1,leavedClassName:"".concat(lt,"-content-wrapper-hidden")}),function(Xt,zt){var Zt=Xt.className,Yt=Xt.style,Pt=ge.createElement(ce,(0,z.Z)({id:ze,containerRef:zt,prefixCls:lt,className:x()(st,Ve==null?void 0:Ve.content),style:(0,Ue.Z)((0,Ue.Z)({},Be),wt==null?void 0:wt.content)},(0,ae.Z)(Se,{aria:!0}),Jt),ft);return ge.createElement("div",(0,z.Z)({className:x()("".concat(lt,"-content-wrapper"),Ve==null?void 0:Ve.wrapper,Zt),style:(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},fr),Yt),wt==null?void 0:wt.wrapper)},(0,ae.Z)(Se,{data:!0})),vt?vt(Pt):Pt)}),Dr=(0,Ue.Z)({},tt);return ut&&(Dr.zIndex=ut),ge.createElement(ie.Provider,{value:Lt},ge.createElement("div",{className:x()(lt,"".concat(lt,"-").concat(We),ct,(0,le.Z)((0,le.Z)({},"".concat(lt,"-open"),Re),"".concat(lt,"-inline"),rt)),style:Dr,tabIndex:-1,ref:gt,onKeyDown:St},Vt,ge.createElement("div",{tabIndex:0,ref:ht,style:De,"aria-hidden":"true","data-sentinel":"start"}),sr,ge.createElement("div",{tabIndex:0,ref:xt,style:De,"aria-hidden":"true","data-sentinel":"end"})))}var ve=ge.forwardRef(Ae),be=ve,Ee=function(je){var Ze=je.open,Xe=Ze===void 0?!1:Ze,$e=je.prefixCls,lt=$e===void 0?"rc-drawer":$e,Re=je.placement,We=Re===void 0?"right":Re,rt=je.autoFocus,ot=rt===void 0?!0:rt,at=je.keyboard,Je=at===void 0?!0:at,Qe=je.width,Ve=Qe===void 0?378:Qe,ct=je.mask,tt=ct===void 0?!0:ct,ut=je.maskClosable,st=ut===void 0?!0:ut,ze=je.getContainer,Be=je.forceRender,Ke=je.afterOpenChange,Ie=je.destroyOnClose,Ye=je.onMouseEnter,ft=je.onMouseOver,mt=je.onMouseLeave,nt=je.onClick,_e=je.onKeyDown,Pe=je.onKeyUp,He=je.panelRef,it=ge.useState(!1),Te=(0,Et.Z)(it,2),xe=Te[0],ye=Te[1],Le=ge.useState(!1),et=(0,Et.Z)(Le,2),Ne=et[0],yt=et[1];(0,we.Z)(function(){yt(!0)},[]);var wt=Ne?Xe:!1,vt=ge.useRef(),gt=ge.useRef();(0,we.Z)(function(){wt&&(gt.current=document.activeElement)},[wt]);var ht=function(Ut){var Bt;if(ye(Ut),Ke==null||Ke(Ut),!Ut&&gt.current&&!((Bt=vt.current)!==null&&Bt!==void 0&&Bt.contains(gt.current))){var qt;(qt=gt.current)===null||qt===void 0||qt.focus({preventScroll:!0})}},xt=ge.useMemo(function(){return{panel:He}},[He]);if(!Be&&!xe&&!wt&&Ie)return null;var St={onMouseEnter:Ye,onMouseOver:ft,onMouseLeave:mt,onClick:nt,onKeyDown:_e,onKeyUp:Pe},Ct=(0,Ue.Z)((0,Ue.Z)({},je),{},{open:wt,prefixCls:lt,placement:We,autoFocus:ot,keyboard:Je,width:Ve,mask:tt,maskClosable:st,inline:ze===!1,afterOpenChange:ht,ref:vt},St);return ge.createElement(E.Provider,{value:xt},ge.createElement(y.Z,{open:wt||Be||xe,autoDestroy:!1,getContainer:ze,autoLock:tt&&(wt||xe)},ge.createElement(be,Ct)))},Oe=Ee,Me=Oe},20922:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return tt}});var Ue=Ge(54476),Et=Ge(20068),y=Ge(76190),we=Ge(42978),ge=Ge(75931),ee=Ge(67732),E=Ge(83652);function ie(){return typeof BigInt=="function"}function le(ut){return!ut&&ut!==0&&!Number.isNaN(ut)||!String(ut).trim()}function z(ut){var st=ut.trim(),ze=st.startsWith("-");ze&&(st=st.slice(1)),st=st.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),st.startsWith(".")&&(st="0".concat(st));var Be=st||"0",Ke=Be.split("."),Ie=Ke[0]||"0",Ye=Ke[1]||"0";Ie==="0"&&Ye==="0"&&(ze=!1);var ft=ze?"-":"";return{negative:ze,negativeStr:ft,trimStr:Be,integerStr:Ie,decimalStr:Ye,fullStr:"".concat(ft).concat(Be)}}function se(ut){var st=String(ut);return!Number.isNaN(Number(st))&&st.includes("e")}function x(ut){var st=String(ut);if(se(ut)){var ze=Number(st.slice(st.indexOf("e-")+2)),Be=st.match(/\.(\d+)/);return Be!=null&&Be[1]&&(ze+=Be[1].length),ze}return st.includes(".")&&te(st)?st.length-st.indexOf(".")-1:0}function re(ut){var st=String(ut);if(se(ut)){if(ut>Number.MAX_SAFE_INTEGER)return String(ie()?BigInt(ut).toString():Number.MAX_SAFE_INTEGER);if(ut<Number.MIN_SAFE_INTEGER)return String(ie()?BigInt(ut).toString():Number.MIN_SAFE_INTEGER);st=ut.toFixed(x(st))}return z(st).fullStr}function te(ut){return typeof ut=="number"?!Number.isNaN(ut):ut?/^\s*-?\d+(\.\d+)?\s*$/.test(ut)||/^\s*-?\d+\.\s*$/.test(ut)||/^\s*-?\.\d+\s*$/.test(ut):!1}var ae=function(){function ut(st){if((0,ee.Z)(this,ut),(0,Et.Z)(this,"origin",""),(0,Et.Z)(this,"negative",void 0),(0,Et.Z)(this,"integer",void 0),(0,Et.Z)(this,"decimal",void 0),(0,Et.Z)(this,"decimalLen",void 0),(0,Et.Z)(this,"empty",void 0),(0,Et.Z)(this,"nan",void 0),le(st)){this.empty=!0;return}if(this.origin=String(st),st==="-"||Number.isNaN(st)){this.nan=!0;return}var ze=st;if(se(ze)&&(ze=Number(ze)),ze=typeof ze=="string"?ze:re(ze),te(ze)){var Be=z(ze);this.negative=Be.negative;var Ke=Be.trimStr.split(".");this.integer=BigInt(Ke[0]);var Ie=Ke[1]||"0";this.decimal=BigInt(Ie),this.decimalLen=Ie.length}else this.nan=!0}return(0,E.Z)(ut,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(ze){var Be="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(ze,"0"));return BigInt(Be)}},{key:"negate",value:function(){var ze=new ut(this.toString());return ze.negative=!ze.negative,ze}},{key:"cal",value:function(ze,Be,Ke){var Ie=Math.max(this.getDecimalStr().length,ze.getDecimalStr().length),Ye=this.alignDecimal(Ie),ft=ze.alignDecimal(Ie),mt=Be(Ye,ft).toString(),nt=Ke(Ie),_e=z(mt),Pe=_e.negativeStr,He=_e.trimStr,it="".concat(Pe).concat(He.padStart(nt+1,"0"));return new ut("".concat(it.slice(0,-nt),".").concat(it.slice(-nt)))}},{key:"add",value:function(ze){if(this.isInvalidate())return new ut(ze);var Be=new ut(ze);return Be.isInvalidate()?this:this.cal(Be,function(Ke,Ie){return Ke+Ie},function(Ke){return Ke})}},{key:"multi",value:function(ze){var Be=new ut(ze);return this.isInvalidate()||Be.isInvalidate()?new ut(NaN):this.cal(Be,function(Ke,Ie){return Ke*Ie},function(Ke){return Ke*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(ze){return this.toString()===(ze==null?void 0:ze.toString())}},{key:"lessEquals",value:function(ze){return this.add(ze.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ze?this.isInvalidate()?"":z("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ut}(),ue=function(){function ut(st){if((0,ee.Z)(this,ut),(0,Et.Z)(this,"origin",""),(0,Et.Z)(this,"number",void 0),(0,Et.Z)(this,"empty",void 0),le(st)){this.empty=!0;return}this.origin=String(st),this.number=Number(st)}return(0,E.Z)(ut,[{key:"negate",value:function(){return new ut(-this.toNumber())}},{key:"add",value:function(ze){if(this.isInvalidate())return new ut(ze);var Be=Number(ze);if(Number.isNaN(Be))return this;var Ke=this.number+Be;if(Ke>Number.MAX_SAFE_INTEGER)return new ut(Number.MAX_SAFE_INTEGER);if(Ke<Number.MIN_SAFE_INTEGER)return new ut(Number.MIN_SAFE_INTEGER);var Ie=Math.max(x(this.number),x(Be));return new ut(Ke.toFixed(Ie))}},{key:"multi",value:function(ze){var Be=Number(ze);if(this.isInvalidate()||Number.isNaN(Be))return new ut(NaN);var Ke=this.number*Be;if(Ke>Number.MAX_SAFE_INTEGER)return new ut(Number.MAX_SAFE_INTEGER);if(Ke<Number.MIN_SAFE_INTEGER)return new ut(Number.MIN_SAFE_INTEGER);var Ie=Math.max(x(this.number),x(Be));return new ut(Ke.toFixed(Ie))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(ze){return this.toNumber()===(ze==null?void 0:ze.toNumber())}},{key:"lessEquals",value:function(ze){return this.add(ze.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ze?this.isInvalidate()?"":re(this.number):this.origin}}]),ut}();function fe(ut){return ie()?new ae(ut):new ue(ut)}function de(ut,st,ze){var Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ut==="")return"";var Ke=z(ut),Ie=Ke.negativeStr,Ye=Ke.integerStr,ft=Ke.decimalStr,mt="".concat(st).concat(ft),nt="".concat(Ie).concat(Ye);if(ze>=0){var _e=Number(ft[ze]);if(_e>=5&&!Be){var Pe=fe(ut).add("".concat(Ie,"0.").concat("0".repeat(ze)).concat(10-_e));return de(Pe.toString(),st,ze,Be)}return ze===0?nt:"".concat(nt).concat(st).concat(ft.padEnd(ze,"0").slice(0,ze))}return mt===".0"?nt:"".concat(nt).concat(mt)}var he=fe,ce=Ge(92310),pe=Ge.n(ce),Ce=Ge(36901),ke=Ge(34280);function De(ut,st){return typeof Proxy!="undefined"&&ut?new Proxy(ut,{get:function(Be,Ke){if(st[Ke])return st[Ke];var Ie=Be[Ke];return typeof Ie=="function"?Ie.bind(Be):Ie}}):ut}var Ae=Ge(8654),ve=Ge(59301),be=Ge(48736);function Ee(ut,st){var ze=(0,ve.useRef)(null);function Be(){try{var Ie=ut.selectionStart,Ye=ut.selectionEnd,ft=ut.value,mt=ft.substring(0,Ie),nt=ft.substring(Ye);ze.current={start:Ie,end:Ye,value:ft,beforeTxt:mt,afterTxt:nt}}catch(_e){}}function Ke(){if(ut&&ze.current&&st)try{var Ie=ut.value,Ye=ze.current,ft=Ye.beforeTxt,mt=Ye.afterTxt,nt=Ye.start,_e=Ie.length;if(Ie.startsWith(ft))_e=ft.length;else if(Ie.endsWith(mt))_e=Ie.length-ze.current.afterTxt.length;else{var Pe=ft[nt-1],He=Ie.indexOf(Pe,nt-1);He!==-1&&(_e=He+1)}ut.setSelectionRange(_e,_e)}catch(it){(0,be.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(it.message))}}return[Be,Ke]}var Oe=Ge(49658),Me=function(){var st=(0,ve.useState)(!1),ze=(0,we.Z)(st,2),Be=ze[0],Ke=ze[1];return(0,ke.Z)(function(){Ke((0,Oe.Z)())},[]),Be},Se=Me,je=Ge(16089),Ze=200,Xe=600;function $e(ut){var st=ut.prefixCls,ze=ut.upNode,Be=ut.downNode,Ke=ut.upDisabled,Ie=ut.downDisabled,Ye=ut.onStep,ft=ve.useRef(),mt=ve.useRef([]),nt=ve.useRef();nt.current=Ye;var _e=function(){clearTimeout(ft.current)},Pe=function(Ne,yt){Ne.preventDefault(),_e(),nt.current(yt);function wt(){nt.current(yt),ft.current=setTimeout(wt,Ze)}ft.current=setTimeout(wt,Xe)};ve.useEffect(function(){return function(){_e(),mt.current.forEach(function(et){return je.Z.cancel(et)})}},[]);var He=Se();if(He)return null;var it="".concat(st,"-handler"),Te=pe()(it,"".concat(it,"-up"),(0,Et.Z)({},"".concat(it,"-up-disabled"),Ke)),xe=pe()(it,"".concat(it,"-down"),(0,Et.Z)({},"".concat(it,"-down-disabled"),Ie)),ye=function(){return mt.current.push((0,je.Z)(_e))},Le={unselectable:"on",role:"button",onMouseUp:ye,onMouseLeave:ye};return ve.createElement("div",{className:"".concat(it,"-wrap")},ve.createElement("span",(0,Ue.Z)({},Le,{onMouseDown:function(Ne){Pe(Ne,!0)},"aria-label":"Increase Value","aria-disabled":Ke,className:Te}),ze||ve.createElement("span",{unselectable:"on",className:"".concat(st,"-handler-up-inner")})),ve.createElement("span",(0,Ue.Z)({},Le,{onMouseDown:function(Ne){Pe(Ne,!1)},"aria-label":"Decrease Value","aria-disabled":Ie,className:xe}),Be||ve.createElement("span",{unselectable:"on",className:"".concat(st,"-handler-down-inner")})))}function lt(ut){var st=typeof ut=="number"?re(ut):z(ut).fullStr,ze=st.includes(".");return ze?z(st.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ut+"0"}var Re=Ge(30292),We=function(){var ut=(0,ve.useRef)(0),st=function(){je.Z.cancel(ut.current)};return(0,ve.useEffect)(function(){return st},[]),function(ze){st(),ut.current=(0,je.Z)(function(){ze()})}},rt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],ot=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],at=function(st,ze){return st||ze.isEmpty()?ze.toString():ze.toNumber()},Je=function(st){var ze=he(st);return ze.isInvalidate()?null:ze},Qe=ve.forwardRef(function(ut,st){var ze=ut.prefixCls,Be=ut.className,Ke=ut.style,Ie=ut.min,Ye=ut.max,ft=ut.step,mt=ft===void 0?1:ft,nt=ut.defaultValue,_e=ut.value,Pe=ut.disabled,He=ut.readOnly,it=ut.upHandler,Te=ut.downHandler,xe=ut.keyboard,ye=ut.changeOnWheel,Le=ye===void 0?!1:ye,et=ut.controls,Ne=et===void 0?!0:et,yt=ut.classNames,wt=ut.stringMode,vt=ut.parser,gt=ut.formatter,ht=ut.precision,xt=ut.decimalSeparator,St=ut.onChange,Ct=ut.onInput,jt=ut.onPressEnter,Ut=ut.onStep,Bt=ut.changeOnBlur,qt=Bt===void 0?!0:Bt,xr=ut.domRef,pr=(0,ge.Z)(ut,rt),Lt="".concat(ze,"-input"),Vt=ve.useRef(null),ar=ve.useState(!1),fr=(0,we.Z)(ar,2),Jt=fr[0],sr=fr[1],Dr=ve.useRef(!1),Xt=ve.useRef(!1),zt=ve.useRef(!1),Zt=ve.useState(function(){return he(_e!=null?_e:nt)}),Yt=(0,we.Z)(Zt,2),Pt=Yt[0],Wt=Yt[1];function $t(Zr){_e===void 0&&Wt(Zr)}var cr=ve.useCallback(function(Zr,Sr){if(!Sr)return ht>=0?ht:Math.max(x(Zr),x(mt))},[ht,mt]),Ht=ve.useCallback(function(Zr){var Sr=String(Zr);if(vt)return vt(Sr);var Gr=Sr;return xt&&(Gr=Gr.replace(xt,".")),Gr.replace(/[^\w.-]+/g,"")},[vt,xt]),Er=ve.useRef(""),Tr=ve.useCallback(function(Zr,Sr){if(gt)return gt(Zr,{userTyping:Sr,input:String(Er.current)});var Gr=typeof Zr=="number"?re(Zr):Zr;if(!Sr){var Ir=cr(Gr,Sr);if(te(Gr)&&(xt||Ir>=0)){var fn=xt||".";Gr=de(Gr,fn,Ir)}}return Gr},[gt,cr,xt]),Mr=ve.useState(function(){var Zr=nt!=null?nt:_e;return Pt.isInvalidate()&&["string","number"].includes((0,y.Z)(Zr))?Number.isNaN(Zr)?"":Zr:Tr(Pt.toString(),!1)}),Cr=(0,we.Z)(Mr,2),dr=Cr[0],er=Cr[1];Er.current=dr;function Mt(Zr,Sr){er(Tr(Zr.isInvalidate()?Zr.toString(!1):Zr.toString(!Sr),Sr))}var rr=ve.useMemo(function(){return Je(Ye)},[Ye,ht]),gr=ve.useMemo(function(){return Je(Ie)},[Ie,ht]),Lr=ve.useMemo(function(){return!rr||!Pt||Pt.isInvalidate()?!1:rr.lessEquals(Pt)},[rr,Pt]),At=ve.useMemo(function(){return!gr||!Pt||Pt.isInvalidate()?!1:Pt.lessEquals(gr)},[gr,Pt]),Tt=Ee(Vt.current,Jt),nr=(0,we.Z)(Tt,2),Kt=nr[0],Dt=nr[1],Qt=function(Sr){return rr&&!Sr.lessEquals(rr)?rr:gr&&!gr.lessEquals(Sr)?gr:null},tr=function(Sr){return!Qt(Sr)},yr=function(Sr,Gr){var Ir=Sr,fn=tr(Ir)||Ir.isEmpty();if(!Ir.isEmpty()&&!Gr&&(Ir=Qt(Ir)||Ir,fn=!0),!He&&!Pe&&fn){var _n=Ir.toString(),yn=cr(_n,Gr);return yn>=0&&(Ir=he(de(_n,".",yn)),tr(Ir)||(Ir=he(de(_n,".",yn,!0)))),Ir.equals(Pt)||($t(Ir),St==null||St(Ir.isEmpty()?null:at(wt,Ir)),_e===void 0&&Mt(Ir,Gr)),Ir}return Pt},jr=We(),or=function Zr(Sr){if(Kt(),Er.current=Sr,er(Sr),!Xt.current){var Gr=Ht(Sr),Ir=he(Gr);Ir.isNaN()||yr(Ir,!0)}Ct==null||Ct(Sr),jr(function(){var fn=Sr;vt||(fn=Sr.replace(/。/g,".")),fn!==Sr&&Zr(fn)})},wr=function(){Xt.current=!0},Gt=function(){Xt.current=!1,or(Vt.current.value)},Rt=function(Sr){or(Sr.target.value)},lr=function(Sr){var Gr;if(!(Sr&&Lr||!Sr&&At)){Dr.current=!1;var Ir=he(zt.current?lt(mt):mt);Sr||(Ir=Ir.negate());var fn=(Pt||he(0)).add(Ir.toString()),_n=yr(fn,!1);Ut==null||Ut(at(wt,_n),{offset:zt.current?lt(mt):mt,type:Sr?"up":"down"}),(Gr=Vt.current)===null||Gr===void 0||Gr.focus()}},ur=function(Sr){var Gr=he(Ht(dr)),Ir;Gr.isNaN()?Ir=yr(Pt,Sr):Ir=yr(Gr,Sr),_e!==void 0?Mt(Pt,!1):Ir.isNaN()||Mt(Ir,!1)},kr=function(){Dr.current=!0},Nr=function(Sr){var Gr=Sr.key,Ir=Sr.shiftKey;Dr.current=!0,zt.current=Ir,Gr==="Enter"&&(Xt.current||(Dr.current=!1),ur(!1),jt==null||jt(Sr)),xe!==!1&&!Xt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Gr)&&(lr(Gr==="Up"||Gr==="ArrowUp"),Sr.preventDefault())},$r=function(){Dr.current=!1,zt.current=!1};ve.useEffect(function(){if(Le&&Jt){var Zr=function(Ir){lr(Ir.deltaY<0),Ir.preventDefault()},Sr=Vt.current;if(Sr)return Sr.addEventListener("wheel",Zr,{passive:!1}),function(){return Sr.removeEventListener("wheel",Zr)}}});var ln=function(){qt&&ur(!1),sr(!1),Dr.current=!1};return(0,ke.o)(function(){Pt.isInvalidate()||Mt(Pt,!1)},[ht,gt]),(0,ke.o)(function(){var Zr=he(_e);Wt(Zr);var Sr=he(Ht(dr));(!Zr.equals(Sr)||!Dr.current||gt)&&Mt(Zr,Dr.current)},[_e]),(0,ke.o)(function(){gt&&Dt()},[dr]),ve.createElement("div",{ref:xr,className:pe()(ze,Be,(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)({},"".concat(ze,"-focused"),Jt),"".concat(ze,"-disabled"),Pe),"".concat(ze,"-readonly"),He),"".concat(ze,"-not-a-number"),Pt.isNaN()),"".concat(ze,"-out-of-range"),!Pt.isInvalidate()&&!tr(Pt))),style:Ke,onFocus:function(){sr(!0)},onBlur:ln,onKeyDown:Nr,onKeyUp:$r,onCompositionStart:wr,onCompositionEnd:Gt,onBeforeInput:kr},Ne&&ve.createElement($e,{prefixCls:ze,upNode:it,downNode:Te,upDisabled:Lr,downDisabled:At,onStep:lr}),ve.createElement("div",{className:"".concat(Lt,"-wrap")},ve.createElement("input",(0,Ue.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Ie,"aria-valuemax":Ye,"aria-valuenow":Pt.isInvalidate()?null:Pt.toString(),step:mt},pr,{ref:(0,Ae.sQ)(Vt,st),className:Lt,value:dr,onChange:Rt,disabled:Pe,readOnly:He}))))}),Ve=ve.forwardRef(function(ut,st){var ze=ut.disabled,Be=ut.style,Ke=ut.prefixCls,Ie=Ke===void 0?"rc-input-number":Ke,Ye=ut.value,ft=ut.prefix,mt=ut.suffix,nt=ut.addonBefore,_e=ut.addonAfter,Pe=ut.className,He=ut.classNames,it=(0,ge.Z)(ut,ot),Te=ve.useRef(null),xe=ve.useRef(null),ye=ve.useRef(null),Le=function(Ne){ye.current&&(0,Re.nH)(ye.current,Ne)};return ve.useImperativeHandle(st,function(){return De(ye.current,{focus:Le,nativeElement:Te.current.nativeElement||xe.current})}),ve.createElement(Ce.BaseInput,{className:Pe,triggerFocus:Le,prefixCls:Ie,value:Ye,disabled:ze,style:Be,prefix:ft,suffix:mt,addonAfter:_e,addonBefore:nt,classNames:He,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Te},ve.createElement(Qe,(0,Ue.Z)({prefixCls:Ie,disabled:ze,ref:ye,domRef:xe,className:He==null?void 0:He.input},it)))}),ct=Ve,tt=ct},25930:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Cd:function(){return Ee}});var Ue=Ge(54476),Et=Ge(33885),y=Ge(75931),we=Ge(59301),ge=Ge(92310),ee=Ge.n(ge),E={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ie=function(){var Se=(0,we.useRef)([]),je=(0,we.useRef)(null);return(0,we.useEffect)(function(){var Ze=Date.now(),Xe=!1;Se.current.forEach(function($e){if($e){Xe=!0;var lt=$e.style;lt.transitionDuration=".3s, .3s, .3s, .06s",je.current&&Ze-je.current<100&&(lt.transitionDuration="0s, 0s")}}),Xe&&(je.current=Date.now())}),Se.current},le=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],z=function(Se){var je=(0,Et.Z)((0,Et.Z)({},E),Se),Ze=je.className,Xe=je.percent,$e=je.prefixCls,lt=je.strokeColor,Re=je.strokeLinecap,We=je.strokeWidth,rt=je.style,ot=je.trailColor,at=je.trailWidth,Je=je.transition,Qe=(0,y.Z)(je,le);delete Qe.gapPosition;var Ve=Array.isArray(Xe)?Xe:[Xe],ct=Array.isArray(lt)?lt:[lt],tt=ie(),ut=We/2,st=100-We/2,ze="M ".concat(Re==="round"?ut:0,",").concat(ut,`
L `).concat(Re==="round"?st:100,",").concat(ut),Be="0 0 100 ".concat(We),Ke=0;return we.createElement("svg",(0,Ue.Z)({className:ee()("".concat($e,"-line"),Ze),viewBox:Be,preserveAspectRatio:"none",style:rt},Qe),we.createElement("path",{className:"".concat($e,"-line-trail"),d:ze,strokeLinecap:Re,stroke:ot,strokeWidth:at||We,fillOpacity:"0"}),Ve.map(function(Ie,Ye){var ft=1;switch(Re){case"round":ft=1-We/100;break;case"square":ft=1-We/2/100;break;default:ft=1;break}var mt={strokeDasharray:"".concat(Ie*ft,"px, 100px"),strokeDashoffset:"-".concat(Ke,"px"),transition:Je||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},nt=ct[Ye]||ct[ct.length-1];return Ke+=Ie,we.createElement("path",{key:Ye,className:"".concat($e,"-line-path"),d:ze,strokeLinecap:Re,stroke:nt,strokeWidth:We,fillOpacity:"0",ref:function(Pe){tt[Ye]=Pe},style:mt})}))},se=z,x=Ge(76190),re=Ge(42978),te=Ge(47273),ae=0,ue=(0,te.Z)();function fe(){var Me;return ue?(Me=ae,ae+=1):Me="TEST_OR_SSR",Me}var de=function(Me){var Se=we.useState(),je=(0,re.Z)(Se,2),Ze=je[0],Xe=je[1];return we.useEffect(function(){Xe("rc_progress_".concat(fe()))},[]),Me||Ze},he=function(Se){var je=Se.bg,Ze=Se.children;return we.createElement("div",{style:{width:"100%",height:"100%",background:je}},Ze)};function ce(Me,Se){return Object.keys(Me).map(function(je){var Ze=parseFloat(je),Xe="".concat(Math.floor(Ze*Se),"%");return"".concat(Me[je]," ").concat(Xe)})}var pe=we.forwardRef(function(Me,Se){var je=Me.prefixCls,Ze=Me.color,Xe=Me.gradientId,$e=Me.radius,lt=Me.style,Re=Me.ptg,We=Me.strokeLinecap,rt=Me.strokeWidth,ot=Me.size,at=Me.gapDegree,Je=Ze&&(0,x.Z)(Ze)==="object",Qe=Je?"#FFF":void 0,Ve=ot/2,ct=we.createElement("circle",{className:"".concat(je,"-circle-path"),r:$e,cx:Ve,cy:Ve,stroke:Qe,strokeLinecap:We,strokeWidth:rt,opacity:Re===0?0:1,style:lt,ref:Se});if(!Je)return ct;var tt="".concat(Xe,"-conic"),ut=at?"".concat(180+at/2,"deg"):"0deg",st=ce(Ze,(360-at)/360),ze=ce(Ze,1),Be="conic-gradient(from ".concat(ut,", ").concat(st.join(", "),")"),Ke="linear-gradient(to ".concat(at?"bottom":"top",", ").concat(ze.join(", "),")");return we.createElement(we.Fragment,null,we.createElement("mask",{id:tt},ct),we.createElement("foreignObject",{x:0,y:0,width:ot,height:ot,mask:"url(#".concat(tt,")")},we.createElement(he,{bg:Ke},we.createElement(he,{bg:Be}))))}),Ce=pe,ke=100,De=function(Se,je,Ze,Xe,$e,lt,Re,We,rt,ot){var at=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Je=Ze/100*360*((360-lt)/360),Qe=lt===0?0:{bottom:0,top:180,left:90,right:-90}[Re],Ve=(100-Xe)/100*je;rt==="round"&&Xe!==100&&(Ve+=ot/2,Ve>=je&&(Ve=je-.01));var ct=ke/2;return{stroke:typeof We=="string"?We:void 0,strokeDasharray:"".concat(je,"px ").concat(Se),strokeDashoffset:Ve+at,transform:"rotate(".concat($e+Je+Qe,"deg)"),transformOrigin:"".concat(ct,"px ").concat(ct,"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}},Ae=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ve(Me){var Se=Me!=null?Me:[];return Array.isArray(Se)?Se:[Se]}var be=function(Se){var je=(0,Et.Z)((0,Et.Z)({},E),Se),Ze=je.id,Xe=je.prefixCls,$e=je.steps,lt=je.strokeWidth,Re=je.trailWidth,We=je.gapDegree,rt=We===void 0?0:We,ot=je.gapPosition,at=je.trailColor,Je=je.strokeLinecap,Qe=je.style,Ve=je.className,ct=je.strokeColor,tt=je.percent,ut=(0,y.Z)(je,Ae),st=ke/2,ze=de(Ze),Be="".concat(ze,"-gradient"),Ke=st-lt/2,Ie=Math.PI*2*Ke,Ye=rt>0?90+rt/2:-90,ft=Ie*((360-rt)/360),mt=(0,x.Z)($e)==="object"?$e:{count:$e,gap:2},nt=mt.count,_e=mt.gap,Pe=ve(tt),He=ve(ct),it=He.find(function(yt){return yt&&(0,x.Z)(yt)==="object"}),Te=it&&(0,x.Z)(it)==="object",xe=Te?"butt":Je,ye=De(Ie,ft,0,100,Ye,rt,ot,at,xe,lt),Le=ie(),et=function(){var wt=0;return Pe.map(function(vt,gt){var ht=He[gt]||He[He.length-1],xt=De(Ie,ft,wt,vt,Ye,rt,ot,ht,xe,lt);return wt+=vt,we.createElement(Ce,{key:gt,color:ht,ptg:vt,radius:Ke,prefixCls:Xe,gradientId:Be,style:xt,strokeLinecap:xe,strokeWidth:lt,gapDegree:rt,ref:function(Ct){Le[gt]=Ct},size:ke})}).reverse()},Ne=function(){var wt=Math.round(nt*(Pe[0]/100)),vt=100/nt,gt=0;return new Array(nt).fill(null).map(function(ht,xt){var St=xt<=wt-1?He[0]:at,Ct=St&&(0,x.Z)(St)==="object"?"url(#".concat(Be,")"):void 0,jt=De(Ie,ft,gt,vt,Ye,rt,ot,St,"butt",lt,_e);return gt+=(ft-jt.strokeDashoffset+_e)*100/ft,we.createElement("circle",{key:xt,className:"".concat(Xe,"-circle-path"),r:Ke,cx:st,cy:st,stroke:Ct,strokeWidth:lt,opacity:1,style:jt,ref:function(Bt){Le[xt]=Bt}})})};return we.createElement("svg",(0,Ue.Z)({className:ee()("".concat(Xe,"-circle"),Ve),viewBox:"0 0 ".concat(ke," ").concat(ke),style:Qe,id:Ze,role:"presentation"},ut),!nt&&we.createElement("circle",{className:"".concat(Xe,"-circle-trail"),r:Ke,cx:st,cy:st,stroke:at,strokeLinecap:xe,strokeWidth:Re||lt,style:ye}),nt?Ne():et())},Ee=be,Oe={Line:se,Circle:Ee}},738:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return ce}});var Ue=Ge(54476),Et=Ge(20068),y=Ge(42978),we=Ge(75931),ge=Ge(92310),ee=Ge.n(ge),E=Ge(18929),ie=Ge(10228),le=Ge(26112),z=Ge(59301);function se(pe,Ce){var ke=pe.disabled,De=pe.prefixCls,Ae=pe.character,ve=pe.characterRender,be=pe.index,Ee=pe.count,Oe=pe.value,Me=pe.allowHalf,Se=pe.focused,je=pe.onHover,Ze=pe.onClick,Xe=function(Je){je(Je,be)},$e=function(Je){Ze(Je,be)},lt=function(Je){Je.keyCode===ie.Z.ENTER&&Ze(Je,be)},Re=be+1,We=new Set([De]);Oe===0&&be===0&&Se?We.add("".concat(De,"-focused")):Me&&Oe+.5>=Re&&Oe<Re?(We.add("".concat(De,"-half")),We.add("".concat(De,"-active")),Se&&We.add("".concat(De,"-focused"))):(Re<=Oe?We.add("".concat(De,"-full")):We.add("".concat(De,"-zero")),Re===Oe&&Se&&We.add("".concat(De,"-focused")));var rt=typeof Ae=="function"?Ae(pe):Ae,ot=z.createElement("li",{className:ee()(Array.from(We)),ref:Ce},z.createElement("div",{onClick:ke?null:$e,onKeyDown:ke?null:lt,onMouseMove:ke?null:Xe,role:"radio","aria-checked":Oe>be?"true":"false","aria-posinset":be+1,"aria-setsize":Ee,tabIndex:ke?-1:0},z.createElement("div",{className:"".concat(De,"-first")},rt),z.createElement("div",{className:"".concat(De,"-second")},rt)));return ve&&(ot=ve(ot,pe)),ot}var x=z.forwardRef(se);function re(){var pe=z.useRef({});function Ce(De){return pe.current[De]}function ke(De){return function(Ae){pe.current[De]=Ae}}return[Ce,ke]}function te(pe){var Ce=pe.pageXOffset,ke="scrollLeft";if(typeof Ce!="number"){var De=pe.document;Ce=De.documentElement[ke],typeof Ce!="number"&&(Ce=De.body[ke])}return Ce}function ae(pe){var Ce,ke,De=pe.ownerDocument,Ae=De.body,ve=De&&De.documentElement,be=pe.getBoundingClientRect();return Ce=be.left,ke=be.top,Ce-=ve.clientLeft||Ae.clientLeft||0,ke-=ve.clientTop||Ae.clientTop||0,{left:Ce,top:ke}}function ue(pe){var Ce=ae(pe),ke=pe.ownerDocument,De=ke.defaultView||ke.parentWindow;return Ce.left+=te(De),Ce.left}var fe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function de(pe,Ce){var ke=pe.prefixCls,De=ke===void 0?"rc-rate":ke,Ae=pe.className,ve=pe.defaultValue,be=pe.value,Ee=pe.count,Oe=Ee===void 0?5:Ee,Me=pe.allowHalf,Se=Me===void 0?!1:Me,je=pe.allowClear,Ze=je===void 0?!0:je,Xe=pe.keyboard,$e=Xe===void 0?!0:Xe,lt=pe.character,Re=lt===void 0?"\u2605":lt,We=pe.characterRender,rt=pe.disabled,ot=pe.direction,at=ot===void 0?"ltr":ot,Je=pe.tabIndex,Qe=Je===void 0?0:Je,Ve=pe.autoFocus,ct=pe.onHoverChange,tt=pe.onChange,ut=pe.onFocus,st=pe.onBlur,ze=pe.onKeyDown,Be=pe.onMouseLeave,Ke=(0,we.Z)(pe,fe),Ie=re(),Ye=(0,y.Z)(Ie,2),ft=Ye[0],mt=Ye[1],nt=z.useRef(null),_e=function(){if(!rt){var Jt;(Jt=nt.current)===null||Jt===void 0||Jt.focus()}};z.useImperativeHandle(Ce,function(){return{focus:_e,blur:function(){if(!rt){var Jt;(Jt=nt.current)===null||Jt===void 0||Jt.blur()}}}});var Pe=(0,E.Z)(ve||0,{value:be}),He=(0,y.Z)(Pe,2),it=He[0],Te=He[1],xe=(0,E.Z)(null),ye=(0,y.Z)(xe,2),Le=ye[0],et=ye[1],Ne=function(Jt,sr){var Dr=at==="rtl",Xt=Jt+1;if(Se){var zt=ft(Jt),Zt=ue(zt),Yt=zt.clientWidth;(Dr&&sr-Zt>Yt/2||!Dr&&sr-Zt<Yt/2)&&(Xt-=.5)}return Xt},yt=function(Jt){Te(Jt),tt==null||tt(Jt)},wt=z.useState(!1),vt=(0,y.Z)(wt,2),gt=vt[0],ht=vt[1],xt=function(){ht(!0),ut==null||ut()},St=function(){ht(!1),st==null||st()},Ct=z.useState(null),jt=(0,y.Z)(Ct,2),Ut=jt[0],Bt=jt[1],qt=function(Jt,sr){var Dr=Ne(sr,Jt.pageX);Dr!==Le&&(Bt(Dr),et(null)),ct==null||ct(Dr)},xr=function(Jt){rt||(Bt(null),et(null),ct==null||ct(void 0)),Jt&&(Be==null||Be(Jt))},pr=function(Jt,sr){var Dr=Ne(sr,Jt.pageX),Xt=!1;Ze&&(Xt=Dr===it),xr(),yt(Xt?0:Dr),et(Xt?Dr:null)},Lt=function(Jt){var sr=Jt.keyCode,Dr=at==="rtl",Xt=Se?.5:1;$e&&(sr===ie.Z.RIGHT&&it<Oe&&!Dr?(yt(it+Xt),Jt.preventDefault()):sr===ie.Z.LEFT&&it>0&&!Dr||sr===ie.Z.RIGHT&&it>0&&Dr?(yt(it-Xt),Jt.preventDefault()):sr===ie.Z.LEFT&&it<Oe&&Dr&&(yt(it+Xt),Jt.preventDefault())),ze==null||ze(Jt)};z.useEffect(function(){Ve&&!rt&&_e()},[]);var Vt=new Array(Oe).fill(0).map(function(fr,Jt){return z.createElement(x,{ref:mt(Jt),index:Jt,count:Oe,disabled:rt,prefixCls:"".concat(De,"-star"),allowHalf:Se,value:Ut===null?it:Ut,onClick:pr,onHover:qt,key:fr||Jt,character:Re,characterRender:We,focused:gt})}),ar=ee()(De,Ae,(0,Et.Z)((0,Et.Z)({},"".concat(De,"-disabled"),rt),"".concat(De,"-rtl"),at==="rtl"));return z.createElement("ul",(0,Ue.Z)({className:ar,onMouseLeave:xr,tabIndex:rt?-1:Qe,onFocus:rt?null:xt,onBlur:rt?null:St,onKeyDown:rt?null:Lt,ref:nt},(0,le.Z)(Ke,{aria:!0,data:!0,attr:!0})),Vt)}var he=z.forwardRef(de),ce=he},6551:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{ZP:function(){return E}});var Ue=Ge(42978),Et=Ge(59301),y=Ge(47273),we=0,ge=(0,y.Z)();function ee(){var ie;return ge?(ie=we,we+=1):ie="TEST_OR_SSR",ie}function E(ie){var le=Et.useState(),z=(0,Ue.Z)(le,2),se=z[0],x=z[1];return Et.useEffect(function(){x("rc_select_".concat(ee()))},[]),ie||se}},37463:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Ac:function(){return ht},Xo:function(){return St},Wx:function(){return jt},ZP:function(){return Lr},lk:function(){return ce}});var Ue=Ge(54476),Et=Ge(94480),y=Ge(20068),we=Ge(33885),ge=Ge(42978),ee=Ge(75931),E=Ge(76190),ie=Ge(18929),le=Ge(48736),z=Ge(59301),se=Ge(92310),x=Ge.n(se),re=Ge(34280),te=Ge(49658),ae=Ge(8654),ue=function(Tt){var nr=Tt.className,Kt=Tt.customizeIcon,Dt=Tt.customizeIconProps,Qt=Tt.children,tr=Tt.onMouseDown,yr=Tt.onClick,jr=typeof Kt=="function"?Kt(Dt):Kt;return z.createElement("span",{className:nr,onMouseDown:function(wr){wr.preventDefault(),tr==null||tr(wr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:yr,"aria-hidden":!0},jr!==void 0?jr:z.createElement("span",{className:x()(nr.split(/\s+/).map(function(or){return"".concat(or,"-icon")}))},Qt))},fe=ue,de=function(Tt,nr,Kt,Dt,Qt){var tr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,yr=arguments.length>6?arguments[6]:void 0,jr=arguments.length>7?arguments[7]:void 0,or=z.useMemo(function(){if((0,E.Z)(Dt)==="object")return Dt.clearIcon;if(Qt)return Qt},[Dt,Qt]),wr=z.useMemo(function(){return!!(!tr&&Dt&&(Kt.length||yr)&&!(jr==="combobox"&&yr===""))},[Dt,tr,Kt.length,yr,jr]);return{allowClear:wr,clearIcon:z.createElement(fe,{className:"".concat(Tt,"-clear"),onMouseDown:nr,customizeIcon:or},"\xD7")}},he=z.createContext(null);function ce(){return z.useContext(he)}function pe(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Tt=z.useState(!1),nr=(0,ge.Z)(Tt,2),Kt=nr[0],Dt=nr[1],Qt=z.useRef(null),tr=function(){window.clearTimeout(Qt.current)};z.useEffect(function(){return tr},[]);var yr=function(or,wr){tr(),Qt.current=window.setTimeout(function(){Dt(or),wr&&wr()},At)};return[Kt,yr,tr]}function Ce(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Tt=z.useRef(null),nr=z.useRef(null);z.useEffect(function(){return function(){window.clearTimeout(nr.current)}},[]);function Kt(Dt){(Dt||Tt.current===null)&&(Tt.current=Dt),window.clearTimeout(nr.current),nr.current=window.setTimeout(function(){Tt.current=null},At)}return[function(){return Tt.current},Kt]}function ke(At,Tt,nr,Kt){var Dt=z.useRef(null);Dt.current={open:Tt,triggerOpen:nr,customizedTrigger:Kt},z.useEffect(function(){function Qt(tr){var yr;if(!((yr=Dt.current)!==null&&yr!==void 0&&yr.customizedTrigger)){var jr=tr.target;jr.shadowRoot&&tr.composed&&(jr=tr.composedPath()[0]||jr),Dt.current.open&&At().filter(function(or){return or}).every(function(or){return!or.contains(jr)&&or!==jr})&&Dt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Qt),function(){return window.removeEventListener("mousedown",Qt)}},[])}var De=Ge(10228);function Ae(At){return At&&![De.Z.ESC,De.Z.SHIFT,De.Z.BACKSPACE,De.Z.TAB,De.Z.WIN_KEY,De.Z.ALT,De.Z.META,De.Z.WIN_KEY_RIGHT,De.Z.CTRL,De.Z.SEMICOLON,De.Z.EQUALS,De.Z.CAPS_LOCK,De.Z.CONTEXT_MENU,De.Z.F1,De.Z.F2,De.Z.F3,De.Z.F4,De.Z.F5,De.Z.F6,De.Z.F7,De.Z.F8,De.Z.F9,De.Z.F10,De.Z.F11,De.Z.F12].includes(At)}var ve=Ge(26112),be=Ge(11780);function Ee(At,Tt,nr){var Kt=(0,we.Z)((0,we.Z)({},At),nr?Tt:{});return Object.keys(Tt).forEach(function(Dt){var Qt=Tt[Dt];typeof Qt=="function"&&(Kt[Dt]=function(){for(var tr,yr=arguments.length,jr=new Array(yr),or=0;or<yr;or++)jr[or]=arguments[or];return Qt.apply(void 0,jr),(tr=At[Dt])===null||tr===void 0?void 0:tr.call.apply(tr,[At].concat(jr))})}),Kt}var Oe=Ee,Me=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Se=function(Tt,nr){var Kt=Tt.prefixCls,Dt=Tt.id,Qt=Tt.inputElement,tr=Tt.autoFocus,yr=Tt.autoComplete,jr=Tt.editable,or=Tt.activeDescendantId,wr=Tt.value,Gt=Tt.open,Rt=Tt.attrs,lr=(0,ee.Z)(Tt,Me),ur=Qt||z.createElement("input",null),kr=ur,Nr=kr.ref,$r=kr.props;return(0,le.Kp)(!("maxLength"in ur.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ur=z.cloneElement(ur,(0,we.Z)((0,we.Z)((0,we.Z)({type:"search"},Oe(lr,$r,!0)),{},{id:Dt,ref:(0,ae.sQ)(nr,Nr),autoComplete:yr||"off",autoFocus:tr,className:x()("".concat(Kt,"-selection-search-input"),$r==null?void 0:$r.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?or:void 0},Rt),{},{value:jr?wr:"",readOnly:!jr,unselectable:jr?null:"on",style:(0,we.Z)((0,we.Z)({},$r.style),{},{opacity:jr?null:0})})),ur},je=z.forwardRef(Se),Ze=je;function Xe(At){return Array.isArray(At)?At:At!==void 0?[At]:[]}var $e=typeof window!="undefined"&&window.document&&window.document.documentElement,lt=$e;function Re(At){return At!=null}function We(At){return!At&&At!==0}function rt(At){return["string","number"].includes((0,E.Z)(At))}function ot(At){var Tt=void 0;return At&&(rt(At.title)?Tt=At.title.toString():rt(At.label)&&(Tt=At.label.toString())),Tt}function at(At,Tt){lt?z.useLayoutEffect(At,Tt):z.useEffect(At,Tt)}function Je(At){var Tt;return(Tt=At.key)!==null&&Tt!==void 0?Tt:At.value}var Qe=function(Tt){Tt.preventDefault(),Tt.stopPropagation()},Ve=function(Tt){var nr=Tt.id,Kt=Tt.prefixCls,Dt=Tt.values,Qt=Tt.open,tr=Tt.searchValue,yr=Tt.autoClearSearchValue,jr=Tt.inputRef,or=Tt.placeholder,wr=Tt.disabled,Gt=Tt.mode,Rt=Tt.showSearch,lr=Tt.autoFocus,ur=Tt.autoComplete,kr=Tt.activeDescendantId,Nr=Tt.tabIndex,$r=Tt.removeIcon,ln=Tt.maxTagCount,Zr=Tt.maxTagTextLength,Sr=Tt.maxTagPlaceholder,Gr=Sr===void 0?function(Kr){return"+ ".concat(Kr.length," ...")}:Sr,Ir=Tt.tagRender,fn=Tt.onToggleOpen,_n=Tt.onRemove,yn=Tt.onInputChange,Mn=Tt.onInputPaste,On=Tt.onInputKeyDown,kn=Tt.onInputMouseDown,wn=Tt.onInputCompositionStart,Rn=Tt.onInputCompositionEnd,mr=Tt.onInputBlur,Rr=z.useRef(null),Qr=(0,z.useState)(0),Yr=(0,ge.Z)(Qr,2),Jr=Yr[0],zr=Yr[1],Or=(0,z.useState)(!1),un=(0,ge.Z)(Or,2),xn=un[0],Bn=un[1],en="".concat(Kt,"-selection"),mn=Qt||Gt==="multiple"&&yr===!1||Gt==="tags"?tr:"",bn=Gt==="tags"||Gt==="multiple"&&yr===!1||Rt&&(Qt||xn);at(function(){zr(Rr.current.scrollWidth)},[mn]);var hn=function(Br,rn,Cn,_r,vr){return z.createElement("span",{title:ot(Br),className:x()("".concat(en,"-item"),(0,y.Z)({},"".concat(en,"-item-disabled"),Cn))},z.createElement("span",{className:"".concat(en,"-item-content")},rn),_r&&z.createElement(fe,{className:"".concat(en,"-item-remove"),onMouseDown:Qe,onClick:vr,customizeIcon:$r},"\xD7"))},qr=function(Br,rn,Cn,_r,vr,Fr){var Wr=function(Tn){Qe(Tn),fn(!Qt)};return z.createElement("span",{onMouseDown:Wr},Ir({label:rn,value:Br,disabled:Cn,closable:_r,onClose:vr,isMaxTag:!!Fr}))},Sn=function(Br){var rn=Br.disabled,Cn=Br.label,_r=Br.value,vr=!wr&&!rn,Fr=Cn;if(typeof Zr=="number"&&(typeof Cn=="string"||typeof Cn=="number")){var Wr=String(Fr);Wr.length>Zr&&(Fr="".concat(Wr.slice(0,Zr),"..."))}var nn=function(vn){vn&&vn.stopPropagation(),_n(Br)};return typeof Ir=="function"?qr(_r,Fr,rn,vr,nn):hn(Br,Fr,rn,vr,nn)},on=function(Br){if(!Dt.length)return null;var rn=typeof Gr=="function"?Gr(Br):Gr;return typeof Ir=="function"?qr(void 0,rn,!1,!1,void 0,!0):hn({title:rn},rn,!1)},hr=z.createElement("div",{className:"".concat(en,"-search"),style:{width:Jr},onFocus:function(){Bn(!0)},onBlur:function(){Bn(!1)}},z.createElement(Ze,{ref:jr,open:Qt,prefixCls:Kt,id:nr,inputElement:null,disabled:wr,autoFocus:lr,autoComplete:ur,editable:bn,activeDescendantId:kr,value:mn,onKeyDown:On,onMouseDown:kn,onChange:yn,onPaste:Mn,onCompositionStart:wn,onCompositionEnd:Rn,onBlur:mr,tabIndex:Nr,attrs:(0,ve.Z)(Tt,!0)}),z.createElement("span",{ref:Rr,className:"".concat(en,"-search-mirror"),"aria-hidden":!0},mn,"\xA0")),Ar=z.createElement(be.Z,{prefixCls:"".concat(en,"-overflow"),data:Dt,renderItem:Sn,renderRest:on,suffix:hr,itemKey:Je,maxCount:ln});return z.createElement("span",{className:"".concat(en,"-wrap")},Ar,!Dt.length&&!mn&&z.createElement("span",{className:"".concat(en,"-placeholder")},or))},ct=Ve,tt=function(Tt){var nr=Tt.inputElement,Kt=Tt.prefixCls,Dt=Tt.id,Qt=Tt.inputRef,tr=Tt.disabled,yr=Tt.autoFocus,jr=Tt.autoComplete,or=Tt.activeDescendantId,wr=Tt.mode,Gt=Tt.open,Rt=Tt.values,lr=Tt.placeholder,ur=Tt.tabIndex,kr=Tt.showSearch,Nr=Tt.searchValue,$r=Tt.activeValue,ln=Tt.maxLength,Zr=Tt.onInputKeyDown,Sr=Tt.onInputMouseDown,Gr=Tt.onInputChange,Ir=Tt.onInputPaste,fn=Tt.onInputCompositionStart,_n=Tt.onInputCompositionEnd,yn=Tt.onInputBlur,Mn=Tt.title,On=z.useState(!1),kn=(0,ge.Z)(On,2),wn=kn[0],Rn=kn[1],mr=wr==="combobox",Rr=mr||kr,Qr=Rt[0],Yr=Nr||"";mr&&$r&&!wn&&(Yr=$r),z.useEffect(function(){mr&&Rn(!1)},[mr,$r]);var Jr=wr!=="combobox"&&!Gt&&!kr?!1:!!Yr,zr=Mn===void 0?ot(Qr):Mn,Or=z.useMemo(function(){return Qr?null:z.createElement("span",{className:"".concat(Kt,"-selection-placeholder"),style:Jr?{visibility:"hidden"}:void 0},lr)},[Qr,Jr,lr,Kt]);return z.createElement("span",{className:"".concat(Kt,"-selection-wrap")},z.createElement("span",{className:"".concat(Kt,"-selection-search")},z.createElement(Ze,{ref:Qt,prefixCls:Kt,id:Dt,open:Gt,inputElement:nr,disabled:tr,autoFocus:yr,autoComplete:jr,editable:Rr,activeDescendantId:or,value:Yr,onKeyDown:Zr,onMouseDown:Sr,onChange:function(xn){Rn(!0),Gr(xn)},onPaste:Ir,onCompositionStart:fn,onCompositionEnd:_n,onBlur:yn,tabIndex:ur,attrs:(0,ve.Z)(Tt,!0),maxLength:mr?ln:void 0})),!mr&&Qr?z.createElement("span",{className:"".concat(Kt,"-selection-item"),title:zr,style:Jr?{visibility:"hidden"}:void 0},Qr.label):null,Or)},ut=tt,st=function(Tt,nr){var Kt=(0,z.useRef)(null),Dt=(0,z.useRef)(!1),Qt=Tt.prefixCls,tr=Tt.open,yr=Tt.mode,jr=Tt.showSearch,or=Tt.tokenWithEnter,wr=Tt.disabled,Gt=Tt.prefix,Rt=Tt.autoClearSearchValue,lr=Tt.onSearch,ur=Tt.onSearchSubmit,kr=Tt.onToggleOpen,Nr=Tt.onInputKeyDown,$r=Tt.onInputBlur,ln=Tt.domRef;z.useImperativeHandle(nr,function(){return{focus:function(zr){Kt.current.focus(zr)},blur:function(){Kt.current.blur()}}});var Zr=Ce(0),Sr=(0,ge.Z)(Zr,2),Gr=Sr[0],Ir=Sr[1],fn=function(zr){var Or=zr.which,un=Kt.current instanceof HTMLTextAreaElement;!un&&tr&&(Or===De.Z.UP||Or===De.Z.DOWN)&&zr.preventDefault(),Nr&&Nr(zr),Or===De.Z.ENTER&&yr==="tags"&&!Dt.current&&!tr&&(ur==null||ur(zr.target.value)),!(un&&!tr&&~[De.Z.UP,De.Z.DOWN,De.Z.LEFT,De.Z.RIGHT].indexOf(Or))&&Ae(Or)&&kr(!0)},_n=function(){Ir(!0)},yn=(0,z.useRef)(null),Mn=function(zr){lr(zr,!0,Dt.current)!==!1&&kr(!0)},On=function(){Dt.current=!0},kn=function(zr){Dt.current=!1,yr!=="combobox"&&Mn(zr.target.value)},wn=function(zr){var Or=zr.target.value;if(or&&yn.current&&/[\r\n]/.test(yn.current)){var un=yn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Or=Or.replace(un,yn.current)}yn.current=null,Mn(Or)},Rn=function(zr){var Or=zr.clipboardData,un=Or==null?void 0:Or.getData("text");yn.current=un||""},mr=function(zr){var Or=zr.target;if(Or!==Kt.current){var un=document.body.style.msTouchAction!==void 0;un?setTimeout(function(){Kt.current.focus()}):Kt.current.focus()}},Rr=function(zr){var Or=Gr();zr.target!==Kt.current&&!Or&&!(yr==="combobox"&&wr)&&zr.preventDefault(),(yr!=="combobox"&&(!jr||!Or)||!tr)&&(tr&&Rt!==!1&&lr("",!0,!1),kr())},Qr={inputRef:Kt,onInputKeyDown:fn,onInputMouseDown:_n,onInputChange:wn,onInputPaste:Rn,onInputCompositionStart:On,onInputCompositionEnd:kn,onInputBlur:$r},Yr=yr==="multiple"||yr==="tags"?z.createElement(ct,(0,Ue.Z)({},Tt,Qr)):z.createElement(ut,(0,Ue.Z)({},Tt,Qr));return z.createElement("div",{ref:ln,className:"".concat(Qt,"-selector"),onClick:mr,onMouseDown:Rr},Gt&&z.createElement("div",{className:"".concat(Qt,"-prefix")},Gt),Yr)},ze=z.forwardRef(st),Be=ze,Ke=Ge(65030),Ie=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ye=function(Tt){var nr=Tt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:nr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:nr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:nr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:nr,adjustY:1},htmlRegion:"scroll"}}},ft=function(Tt,nr){var Kt=Tt.prefixCls,Dt=Tt.disabled,Qt=Tt.visible,tr=Tt.children,yr=Tt.popupElement,jr=Tt.animation,or=Tt.transitionName,wr=Tt.dropdownStyle,Gt=Tt.dropdownClassName,Rt=Tt.direction,lr=Rt===void 0?"ltr":Rt,ur=Tt.placement,kr=Tt.builtinPlacements,Nr=Tt.dropdownMatchSelectWidth,$r=Tt.dropdownRender,ln=Tt.dropdownAlign,Zr=Tt.getPopupContainer,Sr=Tt.empty,Gr=Tt.getTriggerDOMNode,Ir=Tt.onPopupVisibleChange,fn=Tt.onPopupMouseEnter,_n=(0,ee.Z)(Tt,Ie),yn="".concat(Kt,"-dropdown"),Mn=yr;$r&&(Mn=$r(yr));var On=z.useMemo(function(){return kr||Ye(Nr)},[kr,Nr]),kn=jr?"".concat(yn,"-").concat(jr):or,wn=typeof Nr=="number",Rn=z.useMemo(function(){return wn?null:Nr===!1?"minWidth":"width"},[Nr,wn]),mr=wr;wn&&(mr=(0,we.Z)((0,we.Z)({},mr),{},{width:Nr}));var Rr=z.useRef(null);return z.useImperativeHandle(nr,function(){return{getPopupElement:function(){var Yr;return(Yr=Rr.current)===null||Yr===void 0?void 0:Yr.popupElement}}}),z.createElement(Ke.Z,(0,Ue.Z)({},_n,{showAction:Ir?["click"]:[],hideAction:Ir?["click"]:[],popupPlacement:ur||(lr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:On,prefixCls:yn,popupTransitionName:kn,popup:z.createElement("div",{onMouseEnter:fn},Mn),ref:Rr,stretch:Rn,popupAlign:ln,popupVisible:Qt,getPopupContainer:Zr,popupClassName:x()(Gt,(0,y.Z)({},"".concat(yn,"-empty"),Sr)),popupStyle:mr,getTriggerDOMNode:Gr,onPopupVisibleChange:Ir}),tr)},mt=z.forwardRef(ft),nt=mt,_e=Ge(66712);function Pe(At,Tt){var nr=At.key,Kt;return"value"in At&&(Kt=At.value),nr!=null?nr:Kt!==void 0?Kt:"rc-index-key-".concat(Tt)}function He(At){return typeof At!="undefined"&&!Number.isNaN(At)}function it(At,Tt){var nr=At||{},Kt=nr.label,Dt=nr.value,Qt=nr.options,tr=nr.groupLabel,yr=Kt||(Tt?"children":"label");return{label:yr,value:Dt||"value",options:Qt||"options",groupLabel:tr||yr}}function Te(At){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nr=Tt.fieldNames,Kt=Tt.childrenAsData,Dt=[],Qt=it(nr,!1),tr=Qt.label,yr=Qt.value,jr=Qt.options,or=Qt.groupLabel;function wr(Gt,Rt){Array.isArray(Gt)&&Gt.forEach(function(lr){if(Rt||!(jr in lr)){var ur=lr[yr];Dt.push({key:Pe(lr,Dt.length),groupOption:Rt,data:lr,label:lr[tr],value:ur})}else{var kr=lr[or];kr===void 0&&Kt&&(kr=lr.label),Dt.push({key:Pe(lr,Dt.length),group:!0,data:lr,label:kr}),wr(lr[jr],!0)}})}return wr(At,!1),Dt}function xe(At){var Tt=(0,we.Z)({},At);return"props"in Tt||Object.defineProperty(Tt,"props",{get:function(){return(0,le.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Tt}}),Tt}var ye=function(Tt,nr,Kt){if(!nr||!nr.length)return null;var Dt=!1,Qt=function yr(jr,or){var wr=(0,_e.Z)(or),Gt=wr[0],Rt=wr.slice(1);if(!Gt)return[jr];var lr=jr.split(Gt);return Dt=Dt||lr.length>1,lr.reduce(function(ur,kr){return[].concat((0,Et.Z)(ur),(0,Et.Z)(yr(kr,Rt)))},[]).filter(Boolean)},tr=Qt(Tt,nr);return Dt?typeof Kt!="undefined"?tr.slice(0,Kt):tr:null},Le=z.createContext(null),et=Le;function Ne(At){var Tt=At.visible,nr=At.values;if(!Tt)return null;var Kt=50;return z.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(nr.slice(0,Kt).map(function(Dt){var Qt=Dt.label,tr=Dt.value;return["number","string"].includes((0,E.Z)(Qt))?Qt:tr}).join(", ")),nr.length>Kt?", ...":null)}var yt=["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"],wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],vt=function(Tt){return Tt==="tags"||Tt==="multiple"},gt=z.forwardRef(function(At,Tt){var nr,Kt=At.id,Dt=At.prefixCls,Qt=At.className,tr=At.showSearch,yr=At.tagRender,jr=At.direction,or=At.omitDomProps,wr=At.displayValues,Gt=At.onDisplayValuesChange,Rt=At.emptyOptions,lr=At.notFoundContent,ur=lr===void 0?"Not Found":lr,kr=At.onClear,Nr=At.mode,$r=At.disabled,ln=At.loading,Zr=At.getInputElement,Sr=At.getRawInputElement,Gr=At.open,Ir=At.defaultOpen,fn=At.onDropdownVisibleChange,_n=At.activeValue,yn=At.onActiveValueChange,Mn=At.activeDescendantId,On=At.searchValue,kn=At.autoClearSearchValue,wn=At.onSearch,Rn=At.onSearchSplit,mr=At.tokenSeparators,Rr=At.allowClear,Qr=At.prefix,Yr=At.suffixIcon,Jr=At.clearIcon,zr=At.OptionList,Or=At.animation,un=At.transitionName,xn=At.dropdownStyle,Bn=At.dropdownClassName,en=At.dropdownMatchSelectWidth,mn=At.dropdownRender,bn=At.dropdownAlign,hn=At.placement,qr=At.builtinPlacements,Sn=At.getPopupContainer,on=At.showAction,hr=on===void 0?[]:on,Ar=At.onFocus,Kr=At.onBlur,Br=At.onKeyUp,rn=At.onKeyDown,Cn=At.onMouseDown,_r=(0,ee.Z)(At,yt),vr=vt(Nr),Fr=(tr!==void 0?tr:vr)||Nr==="combobox",Wr=(0,we.Z)({},_r);wt.forEach(function(Dn){delete Wr[Dn]}),or==null||or.forEach(function(Dn){delete Wr[Dn]});var nn=z.useState(!1),Tn=(0,ge.Z)(nn,2),vn=Tn[0],jn=Tn[1];z.useEffect(function(){jn((0,te.Z)())},[]);var An=z.useRef(null),In=z.useRef(null),Hn=z.useRef(null),Fn=z.useRef(null),Wn=z.useRef(null),Vn=z.useRef(!1),Ti=pe(),Bi=(0,ge.Z)(Ti,3),wi=Bi[0],mi=Bi[1],Yi=Bi[2];z.useImperativeHandle(Tt,function(){var Dn,gn;return{focus:(Dn=Fn.current)===null||Dn===void 0?void 0:Dn.focus,blur:(gn=Fn.current)===null||gn===void 0?void 0:gn.blur,scrollTo:function(di){var Qn;return(Qn=Wn.current)===null||Qn===void 0?void 0:Qn.scrollTo(di)},nativeElement:An.current||In.current}});var Pn=z.useMemo(function(){var Dn;if(Nr!=="combobox")return On;var gn=(Dn=wr[0])===null||Dn===void 0?void 0:Dn.value;return typeof gn=="string"||typeof gn=="number"?String(gn):""},[On,Nr,wr]),ta=Nr==="combobox"&&typeof Zr=="function"&&Zr()||null,ri=typeof Sr=="function"&&Sr(),Mi=(0,ae.x1)(In,ri==null||(nr=ri.props)===null||nr===void 0?void 0:nr.ref),oa=z.useState(!1),Ji=(0,ge.Z)(oa,2),vi=Ji[0],Ri=Ji[1];(0,re.Z)(function(){Ri(!0)},[]);var Gn=(0,ie.Z)(!1,{defaultValue:Ir,value:Gr}),Fi=(0,ge.Z)(Gn,2),sa=Fi[0],Hi=Fi[1],qn=vi?sa:!1,ba=!ur&&Rt;($r||ba&&qn&&Nr==="combobox")&&(qn=!1);var la=ba?!1:qn,an=z.useCallback(function(Dn){var gn=Dn!==void 0?Dn:!qn;$r||(Hi(gn),qn!==gn&&(fn==null||fn(gn)))},[$r,qn,Hi,fn]),pn=z.useMemo(function(){return(mr||[]).some(function(Dn){return[`
`,`\r
`].includes(Dn)})},[mr]),cn=z.useContext(et)||{},dn=cn.maxCount,Nn=cn.rawValues,Zn=function(gn,ci,di){if(!(vr&&He(dn)&&(Nn==null?void 0:Nn.size)>=dn)){var Qn=!0,ni=gn;yn==null||yn(null);var Gi=ye(gn,mr,He(dn)?dn-Nn.size:void 0),Ui=di?null:Gi;return Nr!=="combobox"&&Ui&&(ni="",Rn==null||Rn(Ui),an(!1),Qn=!1),wn&&Pn!==ni&&wn(ni,{source:ci?"typing":"effect"}),Qn}},Zi=function(gn){!gn||!gn.trim()||wn(gn,{source:"submit"})};z.useEffect(function(){!qn&&!vr&&Nr!=="combobox"&&Zn("",!1,!1)},[qn]),z.useEffect(function(){sa&&$r&&Hi(!1),$r&&!Vn.current&&mi(!1)},[$r]);var gi=Ce(),ui=(0,ge.Z)(gi,2),Jn=ui[0],Li=ui[1],Qi=z.useRef(!1),_i=function(gn){var ci=Jn(),di=gn.key,Qn=di==="Enter";if(Qn&&(Nr!=="combobox"&&gn.preventDefault(),qn||an(!0)),Li(!!Pn),di==="Backspace"&&!ci&&vr&&!Pn&&wr.length){for(var ni=(0,Et.Z)(wr),Gi=null,Ui=ni.length-1;Ui>=0;Ui-=1){var na=ni[Ui];if(!na.disabled){ni.splice(Ui,1),Gi=na;break}}Gi&&Gt(ni,{type:"remove",values:[Gi]})}for(var Di=arguments.length,Oi=new Array(Di>1?Di-1:0),Ki=1;Ki<Di;Ki++)Oi[Ki-1]=arguments[Ki];if(qn&&(!Qn||!Qi.current)){var ca;Qn&&(Qi.current=!0),(ca=Wn.current)===null||ca===void 0||ca.onKeyDown.apply(ca,[gn].concat(Oi))}rn==null||rn.apply(void 0,[gn].concat(Oi))},$i=function(gn){for(var ci=arguments.length,di=new Array(ci>1?ci-1:0),Qn=1;Qn<ci;Qn++)di[Qn-1]=arguments[Qn];if(qn){var ni;(ni=Wn.current)===null||ni===void 0||ni.onKeyUp.apply(ni,[gn].concat(di))}gn.key==="Enter"&&(Qi.current=!1),Br==null||Br.apply(void 0,[gn].concat(di))},ra=function(gn){var ci=wr.filter(function(di){return di!==gn});Gt(ci,{type:"remove",values:[gn]})},zi=function(){Qi.current=!1},Da=z.useRef(!1),zo=function(){mi(!0),$r||(Ar&&!Da.current&&Ar.apply(void 0,arguments),hr.includes("focus")&&an(!0)),Da.current=!0},yo=function(){Vn.current=!0,mi(!1,function(){Da.current=!1,Vn.current=!1,an(!1)}),!$r&&(Pn&&(Nr==="tags"?wn(Pn,{source:"submit"}):Nr==="multiple"&&wn("",{source:"blur"})),Kr&&Kr.apply(void 0,arguments))},qi=[];z.useEffect(function(){return function(){qi.forEach(function(Dn){return clearTimeout(Dn)}),qi.splice(0,qi.length)}},[]);var ua=function(gn){var ci,di=gn.target,Qn=(ci=Hn.current)===null||ci===void 0?void 0:ci.getPopupElement();if(Qn&&Qn.contains(di)){var ni=setTimeout(function(){var Di=qi.indexOf(ni);if(Di!==-1&&qi.splice(Di,1),Yi(),!vn&&!Qn.contains(document.activeElement)){var Oi;(Oi=Fn.current)===null||Oi===void 0||Oi.focus()}});qi.push(ni)}for(var Gi=arguments.length,Ui=new Array(Gi>1?Gi-1:0),na=1;na<Gi;na++)Ui[na-1]=arguments[na];Cn==null||Cn.apply(void 0,[gn].concat(Ui))},Wi=z.useState({}),bo=(0,ge.Z)(Wi,2),wo=bo[1];function Go(){wo({})}var xo;ri&&(xo=function(gn){an(gn)}),ke(function(){var Dn;return[An.current,(Dn=Hn.current)===null||Dn===void 0?void 0:Dn.getPopupElement()]},la,an,!!ri);var Ko=z.useMemo(function(){return(0,we.Z)((0,we.Z)({},At),{},{notFoundContent:ur,open:qn,triggerOpen:la,id:Kt,showSearch:Fr,multiple:vr,toggleOpen:an})},[At,ur,la,qn,Kt,Fr,vr,an]),Ka=!!Yr||ln,Va;Ka&&(Va=z.createElement(fe,{className:x()("".concat(Dt,"-arrow"),(0,y.Z)({},"".concat(Dt,"-arrow-loading"),ln)),customizeIcon:Yr,customizeIconProps:{loading:ln,searchValue:Pn,open:qn,focused:wi,showSearch:Fr}}));var wa=function(){var gn;kr==null||kr(),(gn=Fn.current)===null||gn===void 0||gn.focus(),Gt([],{type:"clear",values:wr}),Zn("",!1,!1)},Xa=de(Dt,wa,wr,Rr,Jr,$r,Pn,Nr),So=Xa.allowClear,Ya=Xa.clearIcon,Oa=z.createElement(zr,{ref:Wn}),Eo=x()(Dt,Qt,(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"),wi),"".concat(Dt,"-multiple"),vr),"".concat(Dt,"-single"),!vr),"".concat(Dt,"-allow-clear"),Rr),"".concat(Dt,"-show-arrow"),Ka),"".concat(Dt,"-disabled"),$r),"".concat(Dt,"-loading"),ln),"".concat(Dt,"-open"),qn),"".concat(Dt,"-customize-input"),ta),"".concat(Dt,"-show-search"),Fr)),ja=z.createElement(nt,{ref:Hn,disabled:$r,prefixCls:Dt,visible:la,popupElement:Oa,animation:Or,transitionName:un,dropdownStyle:xn,dropdownClassName:Bn,direction:jr,dropdownMatchSelectWidth:en,dropdownRender:mn,dropdownAlign:bn,placement:hn,builtinPlacements:qr,getPopupContainer:Sn,empty:Rt,getTriggerDOMNode:function(gn){return In.current||gn},onPopupVisibleChange:xo,onPopupMouseEnter:Go},ri?z.cloneElement(ri,{ref:Mi}):z.createElement(Be,(0,Ue.Z)({},At,{domRef:In,prefixCls:Dt,inputElement:ta,ref:Fn,id:Kt,prefix:Qr,showSearch:Fr,autoClearSearchValue:kn,mode:Nr,activeDescendantId:Mn,tagRender:yr,values:wr,open:qn,onToggleOpen:an,activeValue:_n,searchValue:Pn,onSearch:Zn,onSearchSubmit:Zi,onRemove:ra,tokenWithEnter:pn,onInputBlur:zi}))),xi;return ri?xi=ja:xi=z.createElement("div",(0,Ue.Z)({className:Eo},Wr,{ref:An,onMouseDown:ua,onKeyDown:_i,onKeyUp:$i,onFocus:zo,onBlur:yo}),z.createElement(Ne,{visible:wi&&!qn,values:wr}),ja,Va,So&&Ya),z.createElement(he.Provider,{value:Ko},xi)}),ht=gt,xt=function(){return null};xt.isSelectOptGroup=!0;var St=xt,Ct=function(){return null};Ct.isSelectOption=!0;var jt=Ct,Ut=Ge(80547),Bt=Ge(2738),qt=Ge(48911);function xr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var pr=["disabled","title","children","style","className"];function Lt(At){return typeof At=="string"||typeof At=="number"}var Vt=function(Tt,nr){var Kt=ce(),Dt=Kt.prefixCls,Qt=Kt.id,tr=Kt.open,yr=Kt.multiple,jr=Kt.mode,or=Kt.searchValue,wr=Kt.toggleOpen,Gt=Kt.notFoundContent,Rt=Kt.onPopupScroll,lr=z.useContext(et),ur=lr.maxCount,kr=lr.flattenOptions,Nr=lr.onActiveValue,$r=lr.defaultActiveFirstOption,ln=lr.onSelect,Zr=lr.menuItemSelectedIcon,Sr=lr.rawValues,Gr=lr.fieldNames,Ir=lr.virtual,fn=lr.direction,_n=lr.listHeight,yn=lr.listItemHeight,Mn=lr.optionRender,On="".concat(Dt,"-item"),kn=(0,Ut.Z)(function(){return kr},[tr,kr],function(on,hr){return hr[0]&&on[1]!==hr[1]}),wn=z.useRef(null),Rn=z.useMemo(function(){return yr&&He(ur)&&(Sr==null?void 0:Sr.size)>=ur},[yr,ur,Sr==null?void 0:Sr.size]),mr=function(hr){hr.preventDefault()},Rr=function(hr){var Ar;(Ar=wn.current)===null||Ar===void 0||Ar.scrollTo(typeof hr=="number"?{index:hr}:hr)},Qr=z.useCallback(function(on){return jr==="combobox"?!1:Sr.has(on)},[jr,(0,Et.Z)(Sr).toString(),Sr.size]),Yr=function(hr){for(var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Kr=kn.length,Br=0;Br<Kr;Br+=1){var rn=(hr+Br*Ar+Kr)%Kr,Cn=kn[rn]||{},_r=Cn.group,vr=Cn.data;if(!_r&&!(vr!=null&&vr.disabled)&&(Qr(vr.value)||!Rn))return rn}return-1},Jr=z.useState(function(){return Yr(0)}),zr=(0,ge.Z)(Jr,2),Or=zr[0],un=zr[1],xn=function(hr){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;un(hr);var Kr={source:Ar?"keyboard":"mouse"},Br=kn[hr];if(!Br){Nr(null,-1,Kr);return}Nr(Br.value,hr,Kr)};(0,z.useEffect)(function(){xn($r!==!1?Yr(0):-1)},[kn.length,or]);var Bn=z.useCallback(function(on){return jr==="combobox"?String(on).toLowerCase()===or.toLowerCase():Sr.has(on)},[jr,or,(0,Et.Z)(Sr).toString(),Sr.size]);(0,z.useEffect)(function(){var on=setTimeout(function(){if(!yr&&tr&&Sr.size===1){var Ar=Array.from(Sr)[0],Kr=kn.findIndex(function(Br){var rn=Br.data;return or?String(rn.value).startsWith(or):rn.value===Ar});Kr!==-1&&(xn(Kr),Rr(Kr))}});if(tr){var hr;(hr=wn.current)===null||hr===void 0||hr.scrollTo(void 0)}return function(){return clearTimeout(on)}},[tr,or]);var en=function(hr){hr!==void 0&&ln(hr,{selected:!Sr.has(hr)}),yr||wr(!1)};if(z.useImperativeHandle(nr,function(){return{onKeyDown:function(hr){var Ar=hr.which,Kr=hr.ctrlKey;switch(Ar){case De.Z.N:case De.Z.P:case De.Z.UP:case De.Z.DOWN:{var Br=0;if(Ar===De.Z.UP?Br=-1:Ar===De.Z.DOWN?Br=1:xr()&&Kr&&(Ar===De.Z.N?Br=1:Ar===De.Z.P&&(Br=-1)),Br!==0){var rn=Yr(Or+Br,Br);Rr(rn),xn(rn,!0)}break}case De.Z.TAB:case De.Z.ENTER:{var Cn,_r=kn[Or];_r&&!(_r!=null&&(Cn=_r.data)!==null&&Cn!==void 0&&Cn.disabled)&&!Rn?en(_r.value):en(void 0),tr&&hr.preventDefault();break}case De.Z.ESC:wr(!1),tr&&hr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(hr){Rr(hr)}}}),kn.length===0)return z.createElement("div",{role:"listbox",id:"".concat(Qt,"_list"),className:"".concat(On,"-empty"),onMouseDown:mr},Gt);var mn=Object.keys(Gr).map(function(on){return Gr[on]}),bn=function(hr){return hr.label};function hn(on,hr){var Ar=on.group;return{role:Ar?"presentation":"option",id:"".concat(Qt,"_list_").concat(hr)}}var qr=function(hr){var Ar=kn[hr];if(!Ar)return null;var Kr=Ar.data||{},Br=Kr.value,rn=Ar.group,Cn=(0,ve.Z)(Kr,!0),_r=bn(Ar);return Ar?z.createElement("div",(0,Ue.Z)({"aria-label":typeof _r=="string"&&!rn?_r:null},Cn,{key:hr},hn(Ar,hr),{"aria-selected":Bn(Br)}),Br):null},Sn={role:"listbox",id:"".concat(Qt,"_list")};return z.createElement(z.Fragment,null,Ir&&z.createElement("div",(0,Ue.Z)({},Sn,{style:{height:0,width:0,overflow:"hidden"}}),qr(Or-1),qr(Or),qr(Or+1)),z.createElement(qt.Z,{itemKey:"key",ref:wn,data:kn,height:_n,itemHeight:yn,fullHeight:!1,onMouseDown:mr,onScroll:Rt,virtual:Ir,direction:fn,innerProps:Ir?null:Sn},function(on,hr){var Ar=on.group,Kr=on.groupOption,Br=on.data,rn=on.label,Cn=on.value,_r=Br.key;if(Ar){var vr,Fr=(vr=Br.title)!==null&&vr!==void 0?vr:Lt(rn)?rn.toString():void 0;return z.createElement("div",{className:x()(On,"".concat(On,"-group"),Br.className),title:Fr},rn!==void 0?rn:_r)}var Wr=Br.disabled,nn=Br.title,Tn=Br.children,vn=Br.style,jn=Br.className,An=(0,ee.Z)(Br,pr),In=(0,Bt.Z)(An,mn),Hn=Qr(Cn),Fn=Wr||!Hn&&Rn,Wn="".concat(On,"-option"),Vn=x()(On,Wn,jn,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Wn,"-grouped"),Kr),"".concat(Wn,"-active"),Or===hr&&!Fn),"".concat(Wn,"-disabled"),Fn),"".concat(Wn,"-selected"),Hn)),Ti=bn(on),Bi=!Zr||typeof Zr=="function"||Hn,wi=typeof Ti=="number"?Ti:Ti||Cn,mi=Lt(wi)?wi.toString():void 0;return nn!==void 0&&(mi=nn),z.createElement("div",(0,Ue.Z)({},(0,ve.Z)(In),Ir?{}:hn(on,hr),{"aria-selected":Bn(Cn),className:Vn,title:mi,onMouseMove:function(){Or===hr||Fn||xn(hr)},onClick:function(){Fn||en(Cn)},style:vn}),z.createElement("div",{className:"".concat(Wn,"-content")},typeof Mn=="function"?Mn(on,{index:hr}):wi),z.isValidElement(Zr)||Hn,Bi&&z.createElement(fe,{className:"".concat(On,"-option-state"),customizeIcon:Zr,customizeIconProps:{value:Cn,disabled:Fn,isSelected:Hn}},Hn?"\u2713":null))}))},ar=z.forwardRef(Vt),fr=ar,Jt=function(At,Tt){var nr=z.useRef({values:new Map,options:new Map}),Kt=z.useMemo(function(){var Qt=nr.current,tr=Qt.values,yr=Qt.options,jr=At.map(function(Gt){if(Gt.label===void 0){var Rt;return(0,we.Z)((0,we.Z)({},Gt),{},{label:(Rt=tr.get(Gt.value))===null||Rt===void 0?void 0:Rt.label})}return Gt}),or=new Map,wr=new Map;return jr.forEach(function(Gt){or.set(Gt.value,Gt),wr.set(Gt.value,Tt.get(Gt.value)||yr.get(Gt.value))}),nr.current.values=or,nr.current.options=wr,jr},[At,Tt]),Dt=z.useCallback(function(Qt){return Tt.get(Qt)||nr.current.options.get(Qt)},[Tt]);return[Kt,Dt]};function sr(At,Tt){return Xe(At).join("").toUpperCase().includes(Tt)}var Dr=function(At,Tt,nr,Kt,Dt){return z.useMemo(function(){if(!nr||Kt===!1)return At;var Qt=Tt.options,tr=Tt.label,yr=Tt.value,jr=[],or=typeof Kt=="function",wr=nr.toUpperCase(),Gt=or?Kt:function(lr,ur){return Dt?sr(ur[Dt],wr):ur[Qt]?sr(ur[tr!=="children"?tr:"label"],wr):sr(ur[yr],wr)},Rt=or?function(lr){return xe(lr)}:function(lr){return lr};return At.forEach(function(lr){if(lr[Qt]){var ur=Gt(nr,Rt(lr));if(ur)jr.push(lr);else{var kr=lr[Qt].filter(function(Nr){return Gt(nr,Rt(Nr))});kr.length&&jr.push((0,we.Z)((0,we.Z)({},lr),{},(0,y.Z)({},Qt,kr)))}return}Gt(nr,Rt(lr))&&jr.push(lr)}),jr},[At,Kt,Dt,nr,Tt])},Xt=Ge(6551),zt=Ge(11592),Zt=["children","value"],Yt=["children"];function Pt(At){var Tt=At,nr=Tt.key,Kt=Tt.props,Dt=Kt.children,Qt=Kt.value,tr=(0,ee.Z)(Kt,Zt);return(0,we.Z)({key:nr,value:Qt!==void 0?Qt:nr,children:Dt},tr)}function Wt(At){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,zt.Z)(At).map(function(nr,Kt){if(!z.isValidElement(nr)||!nr.type)return null;var Dt=nr,Qt=Dt.type.isSelectOptGroup,tr=Dt.key,yr=Dt.props,jr=yr.children,or=(0,ee.Z)(yr,Yt);return Tt||!Qt?Pt(nr):(0,we.Z)((0,we.Z)({key:"__RC_SELECT_GRP__".concat(tr===null?Kt:tr,"__"),label:tr},or),{},{options:Wt(jr)})}).filter(function(nr){return nr})}var $t=function(Tt,nr,Kt,Dt,Qt){return z.useMemo(function(){var tr=Tt,yr=!Tt;yr&&(tr=Wt(nr));var jr=new Map,or=new Map,wr=function(lr,ur,kr){kr&&typeof kr=="string"&&lr.set(ur[kr],ur)},Gt=function Rt(lr){for(var ur=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,kr=0;kr<lr.length;kr+=1){var Nr=lr[kr];!Nr[Kt.options]||ur?(jr.set(Nr[Kt.value],Nr),wr(or,Nr,Kt.label),wr(or,Nr,Dt),wr(or,Nr,Qt)):Rt(Nr[Kt.options],!0)}};return Gt(tr),{options:tr,valueOptions:jr,labelOptions:or}},[Tt,nr,Kt,Dt,Qt])},cr=$t;function Ht(At){var Tt=z.useRef();Tt.current=At;var nr=z.useCallback(function(){return Tt.current.apply(Tt,arguments)},[]);return nr}function Er(At){var Tt=At.mode,nr=At.options,Kt=At.children,Dt=At.backfill,Qt=At.allowClear,tr=At.placeholder,yr=At.getInputElement,jr=At.showSearch,or=At.onSearch,wr=At.defaultOpen,Gt=At.autoFocus,Rt=At.labelInValue,lr=At.value,ur=At.inputValue,kr=At.optionLabelProp,Nr=isMultiple(Tt),$r=jr!==void 0?jr:Nr||Tt==="combobox",ln=nr||convertChildrenToData(Kt);if(warning(Tt!=="tags"||ln.every(function(Ir){return!Ir.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Tt==="tags"||Tt==="combobox"){var Zr=ln.some(function(Ir){return Ir.options?Ir.options.some(function(fn){return typeof("value"in fn?fn.value:fn.key)=="number"}):typeof("value"in Ir?Ir.value:Ir.key)=="number"});warning(!Zr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Tt!=="combobox"||!kr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Tt==="combobox"||!Dt,"`backfill` only works with `combobox` mode."),warning(Tt==="combobox"||!yr,"`getInputElement` only work with `combobox` mode."),noteOnce(Tt!=="combobox"||!yr||!Qt||!tr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),or&&!$r&&Tt!=="combobox"&&Tt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!wr||Gt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),lr!=null){var Sr=toArray(lr);warning(!Rt||Sr.every(function(Ir){return _typeof(Ir)==="object"&&("key"in Ir||"value"in Ir)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Nr||Array.isArray(lr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Kt){var Gr=null;toNodeArray(Kt).some(function(Ir){if(!React.isValidElement(Ir)||!Ir.type)return!1;var fn=Ir,_n=fn.type;if(_n.isSelectOption)return!1;if(_n.isSelectOptGroup){var yn=toNodeArray(Ir.props.children).every(function(Mn){return!React.isValidElement(Mn)||!Ir.type||Mn.type.isSelectOption?!0:(Gr=Mn.type,!1)});return!yn}return Gr=_n,!0}),Gr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Gr.displayName||Gr.name||Gr,"`.")),warning(ur===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Tr(At,Tt){if(At){var nr=function Kt(Dt){for(var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,tr=0;tr<Dt.length;tr++){var yr=Dt[tr];if(yr[Tt==null?void 0:Tt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Qt&&Array.isArray(yr[Tt==null?void 0:Tt.options])&&Kt(yr[Tt==null?void 0:Tt.options],!0))break}};nr(At)}}var Mr=null,Cr=["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"],dr=["inputValue"];function er(At){return!At||(0,E.Z)(At)!=="object"}var Mt=z.forwardRef(function(At,Tt){var nr=At.id,Kt=At.mode,Dt=At.prefixCls,Qt=Dt===void 0?"rc-select":Dt,tr=At.backfill,yr=At.fieldNames,jr=At.inputValue,or=At.searchValue,wr=At.onSearch,Gt=At.autoClearSearchValue,Rt=Gt===void 0?!0:Gt,lr=At.onSelect,ur=At.onDeselect,kr=At.dropdownMatchSelectWidth,Nr=kr===void 0?!0:kr,$r=At.filterOption,ln=At.filterSort,Zr=At.optionFilterProp,Sr=At.optionLabelProp,Gr=At.options,Ir=At.optionRender,fn=At.children,_n=At.defaultActiveFirstOption,yn=At.menuItemSelectedIcon,Mn=At.virtual,On=At.direction,kn=At.listHeight,wn=kn===void 0?200:kn,Rn=At.listItemHeight,mr=Rn===void 0?20:Rn,Rr=At.labelRender,Qr=At.value,Yr=At.defaultValue,Jr=At.labelInValue,zr=At.onChange,Or=At.maxCount,un=(0,ee.Z)(At,Cr),xn=(0,Xt.ZP)(nr),Bn=vt(Kt),en=!!(!Gr&&fn),mn=z.useMemo(function(){return $r===void 0&&Kt==="combobox"?!1:$r},[$r,Kt]),bn=z.useMemo(function(){return it(yr,en)},[JSON.stringify(yr),en]),hn=(0,ie.Z)("",{value:or!==void 0?or:jr,postState:function(pn){return pn||""}}),qr=(0,ge.Z)(hn,2),Sn=qr[0],on=qr[1],hr=cr(Gr,fn,bn,Zr,Sr),Ar=hr.valueOptions,Kr=hr.labelOptions,Br=hr.options,rn=z.useCallback(function(an){var pn=Xe(an);return pn.map(function(cn){var dn,Nn,Zn,Zi,gi;if(er(cn))dn=cn;else{var ui;Zn=cn.key,Nn=cn.label,dn=(ui=cn.value)!==null&&ui!==void 0?ui:Zn}var Jn=Ar.get(dn);if(Jn){var Li;if(Nn===void 0&&(Nn=Jn==null?void 0:Jn[Sr||bn.label]),Zn===void 0&&(Zn=(Li=Jn==null?void 0:Jn.key)!==null&&Li!==void 0?Li:dn),Zi=Jn==null?void 0:Jn.disabled,gi=Jn==null?void 0:Jn.title,0)var Qi}return{label:Nn,value:dn,key:Zn,disabled:Zi,title:gi}})},[bn,Sr,Ar]),Cn=(0,ie.Z)(Yr,{value:Qr}),_r=(0,ge.Z)(Cn,2),vr=_r[0],Fr=_r[1],Wr=z.useMemo(function(){var an,pn=Bn&&vr===null?[]:vr,cn=rn(pn);return Kt==="combobox"&&We((an=cn[0])===null||an===void 0?void 0:an.value)?[]:cn},[vr,rn,Kt,Bn]),nn=Jt(Wr,Ar),Tn=(0,ge.Z)(nn,2),vn=Tn[0],jn=Tn[1],An=z.useMemo(function(){if(!Kt&&vn.length===1){var an=vn[0];if(an.value===null&&(an.label===null||an.label===void 0))return[]}return vn.map(function(pn){var cn;return(0,we.Z)((0,we.Z)({},pn),{},{label:(cn=typeof Rr=="function"?Rr(pn):pn.label)!==null&&cn!==void 0?cn:pn.value})})},[Kt,vn,Rr]),In=z.useMemo(function(){return new Set(vn.map(function(an){return an.value}))},[vn]);z.useEffect(function(){if(Kt==="combobox"){var an,pn=(an=vn[0])===null||an===void 0?void 0:an.value;on(Re(pn)?String(pn):"")}},[vn]);var Hn=Ht(function(an,pn){var cn=pn!=null?pn:an;return(0,y.Z)((0,y.Z)({},bn.value,an),bn.label,cn)}),Fn=z.useMemo(function(){if(Kt!=="tags")return Br;var an=(0,Et.Z)(Br),pn=function(dn){return Ar.has(dn)};return(0,Et.Z)(vn).sort(function(cn,dn){return cn.value<dn.value?-1:1}).forEach(function(cn){var dn=cn.value;pn(dn)||an.push(Hn(dn,cn.label))}),an},[Hn,Br,Ar,vn,Kt]),Wn=Dr(Fn,bn,Sn,mn,Zr),Vn=z.useMemo(function(){return Kt!=="tags"||!Sn||Wn.some(function(an){return an[Zr||"value"]===Sn})||Wn.some(function(an){return an[bn.value]===Sn})?Wn:[Hn(Sn)].concat((0,Et.Z)(Wn))},[Hn,Zr,Kt,Wn,Sn,bn]),Ti=function an(pn){var cn=(0,Et.Z)(pn).sort(function(dn,Nn){return ln(dn,Nn,{searchValue:Sn})});return cn.map(function(dn){return Array.isArray(dn.options)?(0,we.Z)((0,we.Z)({},dn),{},{options:dn.options.length>0?an(dn.options):dn.options}):dn})},Bi=z.useMemo(function(){return ln?Ti(Vn):Vn},[Vn,ln,Sn]),wi=z.useMemo(function(){return Te(Bi,{fieldNames:bn,childrenAsData:en})},[Bi,bn,en]),mi=function(pn){var cn=rn(pn);if(Fr(cn),zr&&(cn.length!==vn.length||cn.some(function(Zn,Zi){var gi;return((gi=vn[Zi])===null||gi===void 0?void 0:gi.value)!==(Zn==null?void 0:Zn.value)}))){var dn=Jr?cn:cn.map(function(Zn){return Zn.value}),Nn=cn.map(function(Zn){return xe(jn(Zn.value))});zr(Bn?dn:dn[0],Bn?Nn:Nn[0])}},Yi=z.useState(null),Pn=(0,ge.Z)(Yi,2),ta=Pn[0],ri=Pn[1],Mi=z.useState(0),oa=(0,ge.Z)(Mi,2),Ji=oa[0],vi=oa[1],Ri=_n!==void 0?_n:Kt!=="combobox",Gn=z.useCallback(function(an,pn){var cn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dn=cn.source,Nn=dn===void 0?"keyboard":dn;vi(pn),tr&&Kt==="combobox"&&an!==null&&Nn==="keyboard"&&ri(String(an))},[tr,Kt]),Fi=function(pn,cn,dn){var Nn=function(){var ra,zi=jn(pn);return[Jr?{label:zi==null?void 0:zi[bn.label],value:pn,key:(ra=zi==null?void 0:zi.key)!==null&&ra!==void 0?ra:pn}:pn,xe(zi)]};if(cn&&lr){var Zn=Nn(),Zi=(0,ge.Z)(Zn,2),gi=Zi[0],ui=Zi[1];lr(gi,ui)}else if(!cn&&ur&&dn!=="clear"){var Jn=Nn(),Li=(0,ge.Z)(Jn,2),Qi=Li[0],_i=Li[1];ur(Qi,_i)}},sa=Ht(function(an,pn){var cn,dn=Bn?pn.selected:!0;dn?cn=Bn?[].concat((0,Et.Z)(vn),[an]):[an]:cn=vn.filter(function(Nn){return Nn.value!==an}),mi(cn),Fi(an,dn),Kt==="combobox"?ri(""):(!vt||Rt)&&(on(""),ri(""))}),Hi=function(pn,cn){mi(pn);var dn=cn.type,Nn=cn.values;(dn==="remove"||dn==="clear")&&Nn.forEach(function(Zn){Fi(Zn.value,!1,dn)})},qn=function(pn,cn){if(on(pn),ri(null),cn.source==="submit"){var dn=(pn||"").trim();if(dn){var Nn=Array.from(new Set([].concat((0,Et.Z)(In),[dn])));mi(Nn),Fi(dn,!0),on("")}return}cn.source!=="blur"&&(Kt==="combobox"&&mi(pn),wr==null||wr(pn))},ba=function(pn){var cn=pn;Kt!=="tags"&&(cn=pn.map(function(Nn){var Zn=Kr.get(Nn);return Zn==null?void 0:Zn.value}).filter(function(Nn){return Nn!==void 0}));var dn=Array.from(new Set([].concat((0,Et.Z)(In),(0,Et.Z)(cn))));mi(dn),dn.forEach(function(Nn){Fi(Nn,!0)})},la=z.useMemo(function(){var an=Mn!==!1&&Nr!==!1;return(0,we.Z)((0,we.Z)({},hr),{},{flattenOptions:wi,onActiveValue:Gn,defaultActiveFirstOption:Ri,onSelect:sa,menuItemSelectedIcon:yn,rawValues:In,fieldNames:bn,virtual:an,direction:On,listHeight:wn,listItemHeight:mr,childrenAsData:en,maxCount:Or,optionRender:Ir})},[Or,hr,wi,Gn,Ri,sa,yn,In,bn,Mn,Nr,On,wn,mr,en,Ir]);return z.createElement(et.Provider,{value:la},z.createElement(ht,(0,Ue.Z)({},un,{id:xn,prefixCls:Qt,ref:Tt,omitDomProps:dr,mode:Kt,displayValues:An,onDisplayValuesChange:Hi,direction:On,searchValue:Sn,onSearch:qn,autoClearSearchValue:Rt,onSearchSplit:ba,dropdownMatchSelectWidth:Nr,OptionList:fr,emptyOptions:!wi.length,activeValue:ta,activeDescendantId:"".concat(xn,"_list_").concat(Ji)})))}),rr=Mt;rr.Option=jt,rr.OptGroup=St;var gr=rr,Lr=gr},63158:function(Nt,Ot,Ge){"use strict";var Ue=Ge(54476),Et=Ge(20068),y=Ge(42978),we=Ge(75931),ge=Ge(59301),ee=Ge(92310),E=Ge.n(ee),ie=Ge(18929),le=Ge(10228),z=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],se=ge.forwardRef(function(x,re){var te,ae=x.prefixCls,ue=ae===void 0?"rc-switch":ae,fe=x.className,de=x.checked,he=x.defaultChecked,ce=x.disabled,pe=x.loadingIcon,Ce=x.checkedChildren,ke=x.unCheckedChildren,De=x.onClick,Ae=x.onChange,ve=x.onKeyDown,be=(0,we.Z)(x,z),Ee=(0,ie.Z)(!1,{value:de,defaultValue:he}),Oe=(0,y.Z)(Ee,2),Me=Oe[0],Se=Oe[1];function je(lt,Re){var We=Me;return ce||(We=lt,Se(We),Ae==null||Ae(We,Re)),We}function Ze(lt){lt.which===le.Z.LEFT?je(!1,lt):lt.which===le.Z.RIGHT&&je(!0,lt),ve==null||ve(lt)}function Xe(lt){var Re=je(!Me,lt);De==null||De(Re,lt)}var $e=E()(ue,fe,(te={},(0,Et.Z)(te,"".concat(ue,"-checked"),Me),(0,Et.Z)(te,"".concat(ue,"-disabled"),ce),te));return ge.createElement("button",(0,Ue.Z)({},be,{type:"button",role:"switch","aria-checked":Me,disabled:ce,className:$e,ref:re,onKeyDown:Ze,onClick:Xe}),pe,ge.createElement("span",{className:"".concat(ue,"-inner")},ge.createElement("span",{className:"".concat(ue,"-inner-checked")},Ce),ge.createElement("span",{className:"".concat(ue,"-inner-unchecked")},ke)))});se.displayName="Switch",Ot.Z=se},22711:function(Nt,Ot,Ge){"use strict";Ge.r(Ot),Ge.d(Ot,{ResizableTextArea:function(){return Oe},default:function(){return Ze}});var Ue=Ge(54476),Et=Ge(20068),y=Ge(33885),we=Ge(94480),ge=Ge(42978),ee=Ge(75931),E=Ge(92310),ie=Ge.n(E),le=Ge(36901),z=Ge(66003),se=Ge(30292),x=Ge(18929),re=Ge(59301),te=Ge(76190),ae=Ge(29301),ue=Ge(34280),fe=Ge(16089),de=`
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;
`,he=["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"],ce={},pe;function Ce(Xe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=Xe.getAttribute("id")||Xe.getAttribute("data-reactid")||Xe.getAttribute("name");if($e&&ce[lt])return ce[lt];var Re=window.getComputedStyle(Xe),We=Re.getPropertyValue("box-sizing")||Re.getPropertyValue("-moz-box-sizing")||Re.getPropertyValue("-webkit-box-sizing"),rt=parseFloat(Re.getPropertyValue("padding-bottom"))+parseFloat(Re.getPropertyValue("padding-top")),ot=parseFloat(Re.getPropertyValue("border-bottom-width"))+parseFloat(Re.getPropertyValue("border-top-width")),at=he.map(function(Qe){return"".concat(Qe,":").concat(Re.getPropertyValue(Qe))}).join(";"),Je={sizingStyle:at,paddingSize:rt,borderSize:ot,boxSizing:We};return $e&&lt&&(ce[lt]=Je),Je}function ke(Xe){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;pe||(pe=document.createElement("textarea"),pe.setAttribute("tab-index","-1"),pe.setAttribute("aria-hidden","true"),pe.setAttribute("name","hiddenTextarea"),document.body.appendChild(pe)),Xe.getAttribute("wrap")?pe.setAttribute("wrap",Xe.getAttribute("wrap")):pe.removeAttribute("wrap");var We=Ce(Xe,$e),rt=We.paddingSize,ot=We.borderSize,at=We.boxSizing,Je=We.sizingStyle;pe.setAttribute("style","".concat(Je,";").concat(de)),pe.value=Xe.value||Xe.placeholder||"";var Qe=void 0,Ve=void 0,ct,tt=pe.scrollHeight;if(at==="border-box"?tt+=ot:at==="content-box"&&(tt-=rt),lt!==null||Re!==null){pe.value=" ";var ut=pe.scrollHeight-rt;lt!==null&&(Qe=ut*lt,at==="border-box"&&(Qe=Qe+rt+ot),tt=Math.max(Qe,tt)),Re!==null&&(Ve=ut*Re,at==="border-box"&&(Ve=Ve+rt+ot),ct=tt>Ve?"":"hidden",tt=Math.min(Ve,tt))}var st={height:tt,overflowY:ct,resize:"none"};return Qe&&(st.minHeight=Qe),Ve&&(st.maxHeight=Ve),st}var De=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ae=0,ve=1,be=2,Ee=re.forwardRef(function(Xe,$e){var lt=Xe,Re=lt.prefixCls,We=lt.defaultValue,rt=lt.value,ot=lt.autoSize,at=lt.onResize,Je=lt.className,Qe=lt.style,Ve=lt.disabled,ct=lt.onChange,tt=lt.onInternalAutoSize,ut=(0,ee.Z)(lt,De),st=(0,x.Z)(We,{value:rt,postState:function(jt){return jt!=null?jt:""}}),ze=(0,ge.Z)(st,2),Be=ze[0],Ke=ze[1],Ie=function(jt){Ke(jt.target.value),ct==null||ct(jt)},Ye=re.useRef();re.useImperativeHandle($e,function(){return{textArea:Ye.current}});var ft=re.useMemo(function(){return ot&&(0,te.Z)(ot)==="object"?[ot.minRows,ot.maxRows]:[]},[ot]),mt=(0,ge.Z)(ft,2),nt=mt[0],_e=mt[1],Pe=!!ot,He=function(){try{if(document.activeElement===Ye.current){var jt=Ye.current,Ut=jt.selectionStart,Bt=jt.selectionEnd,qt=jt.scrollTop;Ye.current.setSelectionRange(Ut,Bt),Ye.current.scrollTop=qt}}catch(xr){}},it=re.useState(be),Te=(0,ge.Z)(it,2),xe=Te[0],ye=Te[1],Le=re.useState(),et=(0,ge.Z)(Le,2),Ne=et[0],yt=et[1],wt=function(){ye(Ae)};(0,ue.Z)(function(){Pe&&wt()},[rt,nt,_e,Pe]),(0,ue.Z)(function(){if(xe===Ae)ye(ve);else if(xe===ve){var Ct=ke(Ye.current,!1,nt,_e);ye(be),yt(Ct)}else He()},[xe]);var vt=re.useRef(),gt=function(){fe.Z.cancel(vt.current)},ht=function(jt){xe===be&&(at==null||at(jt),ot&&(gt(),vt.current=(0,fe.Z)(function(){wt()})))};re.useEffect(function(){return gt},[]);var xt=Pe?Ne:null,St=(0,y.Z)((0,y.Z)({},Qe),xt);return(xe===Ae||xe===ve)&&(St.overflowY="hidden",St.overflowX="hidden"),re.createElement(ae.Z,{onResize:ht,disabled:!(ot||at)},re.createElement("textarea",(0,Ue.Z)({},ut,{ref:Ye,style:St,className:ie()(Re,Je,(0,Et.Z)({},"".concat(Re,"-disabled"),Ve)),disabled:Ve,value:Be,onChange:Ie})))}),Oe=Ee,Me=["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"],Se=re.forwardRef(function(Xe,$e){var lt,Re=Xe.defaultValue,We=Xe.value,rt=Xe.onFocus,ot=Xe.onBlur,at=Xe.onChange,Je=Xe.allowClear,Qe=Xe.maxLength,Ve=Xe.onCompositionStart,ct=Xe.onCompositionEnd,tt=Xe.suffix,ut=Xe.prefixCls,st=ut===void 0?"rc-textarea":ut,ze=Xe.showCount,Be=Xe.count,Ke=Xe.className,Ie=Xe.style,Ye=Xe.disabled,ft=Xe.hidden,mt=Xe.classNames,nt=Xe.styles,_e=Xe.onResize,Pe=Xe.onClear,He=Xe.onPressEnter,it=Xe.readOnly,Te=Xe.autoSize,xe=Xe.onKeyDown,ye=(0,ee.Z)(Xe,Me),Le=(0,x.Z)(Re,{value:We,defaultValue:Re}),et=(0,ge.Z)(Le,2),Ne=et[0],yt=et[1],wt=Ne==null?"":String(Ne),vt=re.useState(!1),gt=(0,ge.Z)(vt,2),ht=gt[0],xt=gt[1],St=re.useRef(!1),Ct=re.useState(null),jt=(0,ge.Z)(Ct,2),Ut=jt[0],Bt=jt[1],qt=(0,re.useRef)(null),xr=(0,re.useRef)(null),pr=function(){var rr;return(rr=xr.current)===null||rr===void 0?void 0:rr.textArea},Lt=function(){pr().focus()};(0,re.useImperativeHandle)($e,function(){var Mt;return{resizableTextArea:xr.current,focus:Lt,blur:function(){pr().blur()},nativeElement:((Mt=qt.current)===null||Mt===void 0?void 0:Mt.nativeElement)||pr()}}),(0,re.useEffect)(function(){xt(function(Mt){return!Ye&&Mt})},[Ye]);var Vt=re.useState(null),ar=(0,ge.Z)(Vt,2),fr=ar[0],Jt=ar[1];re.useEffect(function(){if(fr){var Mt;(Mt=pr()).setSelectionRange.apply(Mt,(0,we.Z)(fr))}},[fr]);var sr=(0,z.Z)(Be,ze),Dr=(lt=sr.max)!==null&&lt!==void 0?lt:Qe,Xt=Number(Dr)>0,zt=sr.strategy(wt),Zt=!!Dr&&zt>Dr,Yt=function(rr,gr){var Lr=gr;!St.current&&sr.exceedFormatter&&sr.max&&sr.strategy(gr)>sr.max&&(Lr=sr.exceedFormatter(gr,{max:sr.max}),gr!==Lr&&Jt([pr().selectionStart||0,pr().selectionEnd||0])),yt(Lr),(0,se.rJ)(rr.currentTarget,rr,at,Lr)},Pt=function(rr){St.current=!0,Ve==null||Ve(rr)},Wt=function(rr){St.current=!1,Yt(rr,rr.currentTarget.value),ct==null||ct(rr)},$t=function(rr){Yt(rr,rr.target.value)},cr=function(rr){rr.key==="Enter"&&He&&He(rr),xe==null||xe(rr)},Ht=function(rr){xt(!0),rt==null||rt(rr)},Er=function(rr){xt(!1),ot==null||ot(rr)},Tr=function(rr){yt(""),Lt(),(0,se.rJ)(pr(),rr,at)},Mr=tt,Cr;sr.show&&(sr.showFormatter?Cr=sr.showFormatter({value:wt,count:zt,maxLength:Dr}):Cr="".concat(zt).concat(Xt?" / ".concat(Dr):""),Mr=re.createElement(re.Fragment,null,Mr,re.createElement("span",{className:ie()("".concat(st,"-data-count"),mt==null?void 0:mt.count),style:nt==null?void 0:nt.count},Cr)));var dr=function(rr){var gr;_e==null||_e(rr),(gr=pr())!==null&&gr!==void 0&&gr.style.height&&Bt(!0)},er=!Te&&!ze&&!Je;return re.createElement(le.BaseInput,{ref:qt,value:wt,allowClear:Je,handleReset:Tr,suffix:Mr,prefixCls:st,classNames:(0,y.Z)((0,y.Z)({},mt),{},{affixWrapper:ie()(mt==null?void 0:mt.affixWrapper,(0,Et.Z)((0,Et.Z)({},"".concat(st,"-show-count"),ze),"".concat(st,"-textarea-allow-clear"),Je))}),disabled:Ye,focused:ht,className:ie()(Ke,Zt&&"".concat(st,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},Ie),Ut&&!er?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Cr=="string"?Cr:void 0}},hidden:ft,readOnly:it,onClear:Pe},re.createElement(Oe,(0,Ue.Z)({},ye,{autoSize:Te,maxLength:Qe,onKeyDown:cr,onChange:$t,onFocus:Ht,onBlur:Er,onCompositionStart:Pt,onCompositionEnd:Wt,className:ie()(mt==null?void 0:mt.textarea),style:(0,y.Z)((0,y.Z)({},nt==null?void 0:nt.textarea),{},{resize:Ie==null?void 0:Ie.resize}),disabled:Ye,prefixCls:st,onResize:dr,ref:xr,readOnly:it})))}),je=Se,Ze=je},639:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return ce}});var Ue=Ge(54476),Et=Ge(20068),y=Ge(33885),we=Ge(42978),ge=Ge(75931),ee=Ge(59301),E=Ge(92310),ie=Ge.n(E),le=Ge(26112),z=Ge(30699),se=function(Ce){for(var ke=Ce.prefixCls,De=Ce.level,Ae=Ce.isStart,ve=Ce.isEnd,be="".concat(ke,"-indent-unit"),Ee=[],Oe=0;Oe<De;Oe+=1)Ee.push(ee.createElement("span",{key:Oe,className:ie()(be,(0,Et.Z)((0,Et.Z)({},"".concat(be,"-start"),Ae[Oe]),"".concat(be,"-end"),ve[Oe]))}));return ee.createElement("span",{"aria-hidden":"true",className:"".concat(ke,"-indent")},Ee)},x=ee.memo(se),re=Ge(65065),te=Ge(34061),ae=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",fe="close",de="---",he=function(Ce){var ke,De,Ae,ve=Ce.eventKey,be=Ce.className,Ee=Ce.style,Oe=Ce.dragOver,Me=Ce.dragOverGapTop,Se=Ce.dragOverGapBottom,je=Ce.isLeaf,Ze=Ce.isStart,Xe=Ce.isEnd,$e=Ce.expanded,lt=Ce.selected,Re=Ce.checked,We=Ce.halfChecked,rt=Ce.loading,ot=Ce.domRef,at=Ce.active,Je=Ce.data,Qe=Ce.onMouseMove,Ve=Ce.selectable,ct=(0,ge.Z)(Ce,ae),tt=ee.useContext(z.k),ut=ee.useContext(z.y),st=ee.useRef(null),ze=ee.useState(!1),Be=(0,we.Z)(ze,2),Ke=Be[0],Ie=Be[1],Ye=!!(tt.disabled||Ce.disabled||(ke=ut.nodeDisabled)!==null&&ke!==void 0&&ke.call(ut,Je)),ft=ee.useMemo(function(){return!tt.checkable||Ce.checkable===!1?!1:tt.checkable},[tt.checkable,Ce.checkable]),mt=function(zt){Ye||tt.onNodeSelect(zt,(0,te.F)(Ce))},nt=function(zt){Ye||!ft||Ce.disableCheckbox||tt.onNodeCheck(zt,(0,te.F)(Ce),!Re)},_e=ee.useMemo(function(){return typeof Ve=="boolean"?Ve:tt.selectable},[Ve,tt.selectable]),Pe=function(zt){tt.onNodeClick(zt,(0,te.F)(Ce)),_e?mt(zt):nt(zt)},He=function(zt){tt.onNodeDoubleClick(zt,(0,te.F)(Ce))},it=function(zt){tt.onNodeMouseEnter(zt,(0,te.F)(Ce))},Te=function(zt){tt.onNodeMouseLeave(zt,(0,te.F)(Ce))},xe=function(zt){tt.onNodeContextMenu(zt,(0,te.F)(Ce))},ye=ee.useMemo(function(){return!!(tt.draggable&&(!tt.draggable.nodeDraggable||tt.draggable.nodeDraggable(Je)))},[tt.draggable,Je]),Le=function(zt){zt.stopPropagation(),Ie(!0),tt.onNodeDragStart(zt,Ce);try{zt.dataTransfer.setData("text/plain","")}catch(Zt){}},et=function(zt){zt.preventDefault(),zt.stopPropagation(),tt.onNodeDragEnter(zt,Ce)},Ne=function(zt){zt.preventDefault(),zt.stopPropagation(),tt.onNodeDragOver(zt,Ce)},yt=function(zt){zt.stopPropagation(),tt.onNodeDragLeave(zt,Ce)},wt=function(zt){zt.stopPropagation(),Ie(!1),tt.onNodeDragEnd(zt,Ce)},vt=function(zt){zt.preventDefault(),zt.stopPropagation(),Ie(!1),tt.onNodeDrop(zt,Ce)},gt=function(zt){rt||tt.onNodeExpand(zt,(0,te.F)(Ce))},ht=ee.useMemo(function(){var Xt=(0,re.Z)(tt.keyEntities,ve)||{},zt=Xt.children;return!!(zt||[]).length},[tt.keyEntities,ve]),xt=ee.useMemo(function(){return je===!1?!1:je||!tt.loadData&&!ht||tt.loadData&&Ce.loaded&&!ht},[je,tt.loadData,ht,Ce.loaded]);ee.useEffect(function(){rt||typeof tt.loadData=="function"&&$e&&!xt&&!Ce.loaded&&tt.onNodeLoad((0,te.F)(Ce))},[rt,tt.loadData,tt.onNodeLoad,$e,xt,Ce]);var St=ee.useMemo(function(){var Xt;return(Xt=tt.draggable)!==null&&Xt!==void 0&&Xt.icon?ee.createElement("span",{className:"".concat(tt.prefixCls,"-draggable-icon")},tt.draggable.icon):null},[tt.draggable]),Ct=function(zt){var Zt=Ce.switcherIcon||tt.switcherIcon;return typeof Zt=="function"?Zt((0,y.Z)((0,y.Z)({},Ce),{},{isLeaf:zt})):Zt},jt=function(){if(xt){var zt=Ct(!0);return zt!==!1?ee.createElement("span",{className:ie()("".concat(tt.prefixCls,"-switcher"),"".concat(tt.prefixCls,"-switcher-noop"))},zt):null}var Zt=Ct(!1);return Zt!==!1?ee.createElement("span",{onClick:gt,className:ie()("".concat(tt.prefixCls,"-switcher"),"".concat(tt.prefixCls,"-switcher_").concat($e?ue:fe))},Zt):null},Ut=ee.useMemo(function(){if(!ft)return null;var Xt=typeof ft!="boolean"?ft:null;return ee.createElement("span",{className:ie()("".concat(tt.prefixCls,"-checkbox"),(0,Et.Z)((0,Et.Z)((0,Et.Z)({},"".concat(tt.prefixCls,"-checkbox-checked"),Re),"".concat(tt.prefixCls,"-checkbox-indeterminate"),!Re&&We),"".concat(tt.prefixCls,"-checkbox-disabled"),Ye||Ce.disableCheckbox)),onClick:nt,role:"checkbox","aria-checked":We?"mixed":Re,"aria-disabled":Ye||Ce.disableCheckbox,"aria-label":"Select ".concat(typeof Ce.title=="string"?Ce.title:"tree node")},Xt)},[ft,Re,We,Ye,Ce.disableCheckbox,Ce.title]),Bt=ee.useMemo(function(){return xt?null:$e?ue:fe},[xt,$e]),qt=ee.useMemo(function(){return ee.createElement("span",{className:ie()("".concat(tt.prefixCls,"-iconEle"),"".concat(tt.prefixCls,"-icon__").concat(Bt||"docu"),(0,Et.Z)({},"".concat(tt.prefixCls,"-icon_loading"),rt))})},[tt.prefixCls,Bt,rt]),xr=ee.useMemo(function(){var Xt=!!tt.draggable,zt=!Ce.disabled&&Xt&&tt.dragOverNodeKey===ve;return zt?tt.dropIndicatorRender({dropPosition:tt.dropPosition,dropLevelOffset:tt.dropLevelOffset,indent:tt.indent,prefixCls:tt.prefixCls,direction:tt.direction}):null},[tt.dropPosition,tt.dropLevelOffset,tt.indent,tt.prefixCls,tt.direction,tt.draggable,tt.dragOverNodeKey,tt.dropIndicatorRender]),pr=ee.useMemo(function(){var Xt=Ce.title,zt=Xt===void 0?de:Xt,Zt="".concat(tt.prefixCls,"-node-content-wrapper"),Yt;if(tt.showIcon){var Pt=Ce.icon||tt.icon;Yt=Pt?ee.createElement("span",{className:ie()("".concat(tt.prefixCls,"-iconEle"),"".concat(tt.prefixCls,"-icon__customize"))},typeof Pt=="function"?Pt(Ce):Pt):qt}else tt.loadData&&rt&&(Yt=qt);var Wt;return typeof zt=="function"?Wt=zt(Je):tt.titleRender?Wt=tt.titleRender(Je):Wt=zt,ee.createElement("span",{ref:st,title:typeof zt=="string"?zt:"",className:ie()(Zt,"".concat(Zt,"-").concat(Bt||"normal"),(0,Et.Z)({},"".concat(tt.prefixCls,"-node-selected"),!Ye&&(lt||Ke))),onMouseEnter:it,onMouseLeave:Te,onContextMenu:xe,onClick:Pe,onDoubleClick:He},Yt,ee.createElement("span",{className:"".concat(tt.prefixCls,"-title")},Wt),xr)},[tt.prefixCls,tt.showIcon,Ce,tt.icon,qt,tt.titleRender,Je,Bt,it,Te,xe,Pe,He]),Lt=(0,le.Z)(ct,{aria:!0,data:!0}),Vt=(0,re.Z)(tt.keyEntities,ve)||{},ar=Vt.level,fr=Xe[Xe.length-1],Jt=!Ye&&ye,sr=tt.draggingNodeKey===ve,Dr=Ve!==void 0?{"aria-selected":!!Ve}:void 0;return ee.createElement("div",(0,Ue.Z)({ref:ot,role:"treeitem","aria-expanded":je?void 0:$e,className:ie()(be,"".concat(tt.prefixCls,"-treenode"),(Ae={},(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)(Ae,"".concat(tt.prefixCls,"-treenode-disabled"),Ye),"".concat(tt.prefixCls,"-treenode-switcher-").concat($e?"open":"close"),!je),"".concat(tt.prefixCls,"-treenode-checkbox-checked"),Re),"".concat(tt.prefixCls,"-treenode-checkbox-indeterminate"),We),"".concat(tt.prefixCls,"-treenode-selected"),lt),"".concat(tt.prefixCls,"-treenode-loading"),rt),"".concat(tt.prefixCls,"-treenode-active"),at),"".concat(tt.prefixCls,"-treenode-leaf-last"),fr),"".concat(tt.prefixCls,"-treenode-draggable"),ye),"dragging",sr),(0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)((0,Et.Z)(Ae,"drop-target",tt.dropTargetKey===ve),"drop-container",tt.dropContainerKey===ve),"drag-over",!Ye&&Oe),"drag-over-gap-top",!Ye&&Me),"drag-over-gap-bottom",!Ye&&Se),"filter-node",(De=tt.filterTreeNode)===null||De===void 0?void 0:De.call(tt,(0,te.F)(Ce))),"".concat(tt.prefixCls,"-treenode-leaf"),xt))),style:Ee,draggable:Jt,onDragStart:Jt?Le:void 0,onDragEnter:ye?et:void 0,onDragOver:ye?Ne:void 0,onDragLeave:ye?yt:void 0,onDrop:ye?vt:void 0,onDragEnd:ye?wt:void 0,onMouseMove:Qe},Dr,Lt),ee.createElement(x,{prefixCls:tt.prefixCls,level:ar,isStart:Ze,isEnd:Xe}),St,jt(),Ut,pr)};he.isTreeNode=1;var ce=he},30699:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{k:function(){return Et},y:function(){return y}});var Ue=Ge(59301),Et=Ue.createContext(null),y=Ue.createContext({})},3741:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{OF:function(){return ve.Z},y6:function(){return fe.y},ZP:function(){return Ye}});var Ue=Ge(54476),Et=Ge(76190),y=Ge(33885),we=Ge(94480),ge=Ge(67732),ee=Ge(83652),E=Ge(31226),ie=Ge(42403),le=Ge(158),z=Ge(20068),se=Ge(92310),x=Ge.n(se),re=Ge(10228),te=Ge(26112),ae=Ge(48736),ue=Ge(59301),fe=Ge(30699),de=function(mt){var nt=mt.dropPosition,_e=mt.dropLevelOffset,Pe=mt.indent,He={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(nt){case-1:He.top=0,He.left=-_e*Pe;break;case 1:He.bottom=0,He.left=-_e*Pe;break;case 0:He.bottom=0,He.left=Pe;break}return ue.createElement("div",{style:He})},he=de;function ce(ft){if(ft==null)throw new TypeError("Cannot destructure "+ft)}var pe=Ge(42978),Ce=Ge(75931),ke=Ge(34280),De=Ge(48911),Ae=Ge(77900),ve=Ge(639);function be(ft,mt){var nt=ue.useState(!1),_e=(0,pe.Z)(nt,2),Pe=_e[0],He=_e[1];(0,ke.Z)(function(){if(Pe)return ft(),function(){mt()}},[Pe]),(0,ke.Z)(function(){return He(!0),function(){He(!1)}},[])}var Ee=be,Oe=Ge(34061),Me=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Se=ue.forwardRef(function(ft,mt){var nt=ft.className,_e=ft.style,Pe=ft.motion,He=ft.motionNodes,it=ft.motionType,Te=ft.onMotionStart,xe=ft.onMotionEnd,ye=ft.active,Le=ft.treeNodeRequiredProps,et=(0,Ce.Z)(ft,Me),Ne=ue.useState(!0),yt=(0,pe.Z)(Ne,2),wt=yt[0],vt=yt[1],gt=ue.useContext(fe.k),ht=gt.prefixCls,xt=He&&it!=="hide";(0,ke.Z)(function(){He&&xt!==wt&&vt(xt)},[He]);var St=function(){He&&Te()},Ct=ue.useRef(!1),jt=function(){He&&!Ct.current&&(Ct.current=!0,xe())};Ee(St,jt);var Ut=function(qt){xt===qt&&jt()};return He?ue.createElement(Ae.default,(0,Ue.Z)({ref:mt,visible:wt},Pe,{motionAppear:it==="show",onVisibleChanged:Ut}),function(Bt,qt){var xr=Bt.className,pr=Bt.style;return ue.createElement("div",{ref:qt,className:x()("".concat(ht,"-treenode-motion"),xr),style:pr},He.map(function(Lt){var Vt=Object.assign({},(ce(Lt.data),Lt.data)),ar=Lt.title,fr=Lt.key,Jt=Lt.isStart,sr=Lt.isEnd;delete Vt.children;var Dr=(0,Oe.H8)(fr,Le);return ue.createElement(ve.Z,(0,Ue.Z)({},Vt,Dr,{title:ar,active:ye,data:Lt.data,key:fr,isStart:Jt,isEnd:sr}))}))}):ue.createElement(ve.Z,(0,Ue.Z)({domRef:mt,className:nt,style:_e},et,{active:ye}))}),je=Se;function Ze(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],nt=ft.length,_e=mt.length;if(Math.abs(nt-_e)!==1)return{add:!1,key:null};function Pe(He,it){var Te=new Map;He.forEach(function(ye){Te.set(ye,!0)});var xe=it.filter(function(ye){return!Te.has(ye)});return xe.length===1?xe[0]:null}return nt<_e?{add:!0,key:Pe(ft,mt)}:{add:!1,key:Pe(mt,ft)}}function Xe(ft,mt,nt){var _e=ft.findIndex(function(Te){return Te.key===nt}),Pe=ft[_e+1],He=mt.findIndex(function(Te){return Te.key===nt});if(Pe){var it=mt.findIndex(function(Te){return Te.key===Pe.key});return mt.slice(He+1,it)}return mt.slice(He+1)}var $e=["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"],lt={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()),rt={key:We},ot={key:We,level:0,index:0,pos:"0",node:rt,nodes:[rt]},at={parent:null,children:[],pos:ot.pos,data:rt,title:null,key:We,isStart:[],isEnd:[]};function Je(ft,mt,nt,_e){return mt===!1||!nt?ft:ft.slice(0,Math.ceil(nt/_e)+1)}function Qe(ft){var mt=ft.key,nt=ft.pos;return(0,Oe.km)(mt,nt)}function Ve(ft){for(var mt=String(ft.data.key),nt=ft;nt.parent;)nt=nt.parent,mt="".concat(nt.data.key," > ").concat(mt);return mt}var ct=ue.forwardRef(function(ft,mt){var nt=ft.prefixCls,_e=ft.data,Pe=ft.selectable,He=ft.checkable,it=ft.expandedKeys,Te=ft.selectedKeys,xe=ft.checkedKeys,ye=ft.loadedKeys,Le=ft.loadingKeys,et=ft.halfCheckedKeys,Ne=ft.keyEntities,yt=ft.disabled,wt=ft.dragging,vt=ft.dragOverNodeKey,gt=ft.dropPosition,ht=ft.motion,xt=ft.height,St=ft.itemHeight,Ct=ft.virtual,jt=ft.scrollWidth,Ut=ft.focusable,Bt=ft.activeItem,qt=ft.focused,xr=ft.tabIndex,pr=ft.onKeyDown,Lt=ft.onFocus,Vt=ft.onBlur,ar=ft.onActiveChange,fr=ft.onListChangeStart,Jt=ft.onListChangeEnd,sr=(0,Ce.Z)(ft,$e),Dr=ue.useRef(null),Xt=ue.useRef(null);ue.useImperativeHandle(mt,function(){return{scrollTo:function(yr){Dr.current.scrollTo(yr)},getIndentWidth:function(){return Xt.current.offsetWidth}}});var zt=ue.useState(it),Zt=(0,pe.Z)(zt,2),Yt=Zt[0],Pt=Zt[1],Wt=ue.useState(_e),$t=(0,pe.Z)(Wt,2),cr=$t[0],Ht=$t[1],Er=ue.useState(_e),Tr=(0,pe.Z)(Er,2),Mr=Tr[0],Cr=Tr[1],dr=ue.useState([]),er=(0,pe.Z)(dr,2),Mt=er[0],rr=er[1],gr=ue.useState(null),Lr=(0,pe.Z)(gr,2),At=Lr[0],Tt=Lr[1],nr=ue.useRef(_e);nr.current=_e;function Kt(){var tr=nr.current;Ht(tr),Cr(tr),rr([]),Tt(null),Jt()}(0,ke.Z)(function(){Pt(it);var tr=Ze(Yt,it);if(tr.key!==null)if(tr.add){var yr=cr.findIndex(function(lr){var ur=lr.key;return ur===tr.key}),jr=Je(Xe(cr,_e,tr.key),Ct,xt,St),or=cr.slice();or.splice(yr+1,0,at),Cr(or),rr(jr),Tt("show")}else{var wr=_e.findIndex(function(lr){var ur=lr.key;return ur===tr.key}),Gt=Je(Xe(_e,cr,tr.key),Ct,xt,St),Rt=_e.slice();Rt.splice(wr+1,0,at),Cr(Rt),rr(Gt),Tt("hide")}else cr!==_e&&(Ht(_e),Cr(_e))},[it,_e]),ue.useEffect(function(){wt||Kt()},[wt]);var Dt=ht?Mr:_e,Qt={expandedKeys:it,selectedKeys:Te,loadedKeys:ye,loadingKeys:Le,checkedKeys:xe,halfCheckedKeys:et,dragOverNodeKey:vt,dropPosition:gt,keyEntities:Ne};return ue.createElement(ue.Fragment,null,qt&&Bt&&ue.createElement("span",{style:lt,"aria-live":"assertive"},Ve(Bt)),ue.createElement("div",null,ue.createElement("input",{style:lt,disabled:Ut===!1||yt,tabIndex:Ut!==!1?xr:null,onKeyDown:pr,onFocus:Lt,onBlur:Vt,value:"",onChange:Re,"aria-label":"for screen reader"})),ue.createElement("div",{className:"".concat(nt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ue.createElement("div",{className:"".concat(nt,"-indent")},ue.createElement("div",{ref:Xt,className:"".concat(nt,"-indent-unit")}))),ue.createElement(De.Z,(0,Ue.Z)({},sr,{data:Dt,itemKey:Qe,height:xt,fullHeight:!1,virtual:Ct,itemHeight:St,scrollWidth:jt,prefixCls:"".concat(nt,"-list"),ref:Dr,role:"tree",onVisibleChange:function(yr){yr.every(function(jr){return Qe(jr)!==We})&&Kt()}}),function(tr){var yr=tr.pos,jr=Object.assign({},(ce(tr.data),tr.data)),or=tr.title,wr=tr.key,Gt=tr.isStart,Rt=tr.isEnd,lr=(0,Oe.km)(wr,yr);delete jr.key,delete jr.children;var ur=(0,Oe.H8)(lr,Qt);return ue.createElement(je,(0,Ue.Z)({},jr,ur,{title:or,active:!!Bt&&wr===Bt.key,pos:yr,data:tr.data,isStart:Gt,isEnd:Rt,motion:ht,motionNodes:wr===We?Mt:null,motionType:At,onMotionStart:fr,onMotionEnd:Kt,treeNodeRequiredProps:Qt,onMouseMove:function(){ar(null)}}))}))}),tt=ct,ut=Ge(82661),st=Ge(34643),ze=Ge(65065),Be=10,Ke=function(ft){(0,ie.Z)(nt,ft);var mt=(0,le.Z)(nt);function nt(){var _e;(0,ge.Z)(this,nt);for(var Pe=arguments.length,He=new Array(Pe),it=0;it<Pe;it++)He[it]=arguments[it];return _e=mt.call.apply(mt,[this].concat(He)),(0,z.Z)((0,E.Z)(_e),"destroyed",!1),(0,z.Z)((0,E.Z)(_e),"delayedDragEnterLogic",void 0),(0,z.Z)((0,E.Z)(_e),"loadingRetryTimes",{}),(0,z.Z)((0,E.Z)(_e),"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,Oe.w$)()}),(0,z.Z)((0,E.Z)(_e),"dragStartMousePosition",null),(0,z.Z)((0,E.Z)(_e),"dragNodeProps",null),(0,z.Z)((0,E.Z)(_e),"currentMouseOverDroppableNodeKey",null),(0,z.Z)((0,E.Z)(_e),"listRef",ue.createRef()),(0,z.Z)((0,E.Z)(_e),"onNodeDragStart",function(Te,xe){var ye=_e.state,Le=ye.expandedKeys,et=ye.keyEntities,Ne=_e.props.onDragStart,yt=xe.eventKey;_e.dragNodeProps=xe,_e.dragStartMousePosition={x:Te.clientX,y:Te.clientY};var wt=(0,ut._5)(Le,yt);_e.setState({draggingNodeKey:yt,dragChildrenKeys:(0,ut.wA)(yt,et),indent:_e.listRef.current.getIndentWidth()}),_e.setExpandedKeys(wt),window.addEventListener("dragend",_e.onWindowDragEnd),Ne==null||Ne({event:Te,node:(0,Oe.F)(xe)})}),(0,z.Z)((0,E.Z)(_e),"onNodeDragEnter",function(Te,xe){var ye=_e.state,Le=ye.expandedKeys,et=ye.keyEntities,Ne=ye.dragChildrenKeys,yt=ye.flattenNodes,wt=ye.indent,vt=_e.props,gt=vt.onDragEnter,ht=vt.onExpand,xt=vt.allowDrop,St=vt.direction,Ct=xe.pos,jt=xe.eventKey;if(_e.currentMouseOverDroppableNodeKey!==jt&&(_e.currentMouseOverDroppableNodeKey=jt),!_e.dragNodeProps){_e.resetDragState();return}var Ut=(0,ut.OM)(Te,_e.dragNodeProps,xe,wt,_e.dragStartMousePosition,xt,yt,et,Le,St),Bt=Ut.dropPosition,qt=Ut.dropLevelOffset,xr=Ut.dropTargetKey,pr=Ut.dropContainerKey,Lt=Ut.dropTargetPos,Vt=Ut.dropAllowed,ar=Ut.dragOverNodeKey;if(Ne.includes(xr)||!Vt){_e.resetDragState();return}if(_e.delayedDragEnterLogic||(_e.delayedDragEnterLogic={}),Object.keys(_e.delayedDragEnterLogic).forEach(function(fr){clearTimeout(_e.delayedDragEnterLogic[fr])}),_e.dragNodeProps.eventKey!==xe.eventKey&&(Te.persist(),_e.delayedDragEnterLogic[Ct]=window.setTimeout(function(){if(_e.state.draggingNodeKey!==null){var fr=(0,we.Z)(Le),Jt=(0,ze.Z)(et,xe.eventKey);Jt&&(Jt.children||[]).length&&(fr=(0,ut.L0)(Le,xe.eventKey)),_e.props.hasOwnProperty("expandedKeys")||_e.setExpandedKeys(fr),ht==null||ht(fr,{node:(0,Oe.F)(xe),expanded:!0,nativeEvent:Te.nativeEvent})}},800)),_e.dragNodeProps.eventKey===xr&&qt===0){_e.resetDragState();return}_e.setState({dragOverNodeKey:ar,dropPosition:Bt,dropLevelOffset:qt,dropTargetKey:xr,dropContainerKey:pr,dropTargetPos:Lt,dropAllowed:Vt}),gt==null||gt({event:Te,node:(0,Oe.F)(xe),expandedKeys:Le})}),(0,z.Z)((0,E.Z)(_e),"onNodeDragOver",function(Te,xe){var ye=_e.state,Le=ye.dragChildrenKeys,et=ye.flattenNodes,Ne=ye.keyEntities,yt=ye.expandedKeys,wt=ye.indent,vt=_e.props,gt=vt.onDragOver,ht=vt.allowDrop,xt=vt.direction;if(_e.dragNodeProps){var St=(0,ut.OM)(Te,_e.dragNodeProps,xe,wt,_e.dragStartMousePosition,ht,et,Ne,yt,xt),Ct=St.dropPosition,jt=St.dropLevelOffset,Ut=St.dropTargetKey,Bt=St.dropContainerKey,qt=St.dropTargetPos,xr=St.dropAllowed,pr=St.dragOverNodeKey;Le.includes(Ut)||!xr||(_e.dragNodeProps.eventKey===Ut&&jt===0?_e.state.dropPosition===null&&_e.state.dropLevelOffset===null&&_e.state.dropTargetKey===null&&_e.state.dropContainerKey===null&&_e.state.dropTargetPos===null&&_e.state.dropAllowed===!1&&_e.state.dragOverNodeKey===null||_e.resetDragState():Ct===_e.state.dropPosition&&jt===_e.state.dropLevelOffset&&Ut===_e.state.dropTargetKey&&Bt===_e.state.dropContainerKey&&qt===_e.state.dropTargetPos&&xr===_e.state.dropAllowed&&pr===_e.state.dragOverNodeKey||_e.setState({dropPosition:Ct,dropLevelOffset:jt,dropTargetKey:Ut,dropContainerKey:Bt,dropTargetPos:qt,dropAllowed:xr,dragOverNodeKey:pr}),gt==null||gt({event:Te,node:(0,Oe.F)(xe)}))}}),(0,z.Z)((0,E.Z)(_e),"onNodeDragLeave",function(Te,xe){_e.currentMouseOverDroppableNodeKey===xe.eventKey&&!Te.currentTarget.contains(Te.relatedTarget)&&(_e.resetDragState(),_e.currentMouseOverDroppableNodeKey=null);var ye=_e.props.onDragLeave;ye==null||ye({event:Te,node:(0,Oe.F)(xe)})}),(0,z.Z)((0,E.Z)(_e),"onWindowDragEnd",function(Te){_e.onNodeDragEnd(Te,null,!0),window.removeEventListener("dragend",_e.onWindowDragEnd)}),(0,z.Z)((0,E.Z)(_e),"onNodeDragEnd",function(Te,xe){var ye=_e.props.onDragEnd;_e.setState({dragOverNodeKey:null}),_e.cleanDragState(),ye==null||ye({event:Te,node:(0,Oe.F)(xe)}),_e.dragNodeProps=null,window.removeEventListener("dragend",_e.onWindowDragEnd)}),(0,z.Z)((0,E.Z)(_e),"onNodeDrop",function(Te,xe){var ye,Le=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,et=_e.state,Ne=et.dragChildrenKeys,yt=et.dropPosition,wt=et.dropTargetKey,vt=et.dropTargetPos,gt=et.dropAllowed;if(gt){var ht=_e.props.onDrop;if(_e.setState({dragOverNodeKey:null}),_e.cleanDragState(),wt!==null){var xt=(0,y.Z)((0,y.Z)({},(0,Oe.H8)(wt,_e.getTreeNodeRequiredProps())),{},{active:((ye=_e.getActiveItem())===null||ye===void 0?void 0:ye.key)===wt,data:(0,ze.Z)(_e.state.keyEntities,wt).node}),St=Ne.includes(wt);(0,ae.ZP)(!St,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ct=(0,ut.yx)(vt),jt={event:Te,node:(0,Oe.F)(xt),dragNode:_e.dragNodeProps?(0,Oe.F)(_e.dragNodeProps):null,dragNodesKeys:[_e.dragNodeProps.eventKey].concat(Ne),dropToGap:yt!==0,dropPosition:yt+Number(Ct[Ct.length-1])};Le||ht==null||ht(jt),_e.dragNodeProps=null}}}),(0,z.Z)((0,E.Z)(_e),"cleanDragState",function(){var Te=_e.state.draggingNodeKey;Te!==null&&_e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),_e.dragStartMousePosition=null,_e.currentMouseOverDroppableNodeKey=null}),(0,z.Z)((0,E.Z)(_e),"triggerExpandActionExpand",function(Te,xe){var ye=_e.state,Le=ye.expandedKeys,et=ye.flattenNodes,Ne=xe.expanded,yt=xe.key,wt=xe.isLeaf;if(!(wt||Te.shiftKey||Te.metaKey||Te.ctrlKey)){var vt=et.filter(function(ht){return ht.key===yt})[0],gt=(0,Oe.F)((0,y.Z)((0,y.Z)({},(0,Oe.H8)(yt,_e.getTreeNodeRequiredProps())),{},{data:vt.data}));_e.setExpandedKeys(Ne?(0,ut._5)(Le,yt):(0,ut.L0)(Le,yt)),_e.onNodeExpand(Te,gt)}}),(0,z.Z)((0,E.Z)(_e),"onNodeClick",function(Te,xe){var ye=_e.props,Le=ye.onClick,et=ye.expandAction;et==="click"&&_e.triggerExpandActionExpand(Te,xe),Le==null||Le(Te,xe)}),(0,z.Z)((0,E.Z)(_e),"onNodeDoubleClick",function(Te,xe){var ye=_e.props,Le=ye.onDoubleClick,et=ye.expandAction;et==="doubleClick"&&_e.triggerExpandActionExpand(Te,xe),Le==null||Le(Te,xe)}),(0,z.Z)((0,E.Z)(_e),"onNodeSelect",function(Te,xe){var ye=_e.state.selectedKeys,Le=_e.state,et=Le.keyEntities,Ne=Le.fieldNames,yt=_e.props,wt=yt.onSelect,vt=yt.multiple,gt=xe.selected,ht=xe[Ne.key],xt=!gt;xt?vt?ye=(0,ut.L0)(ye,ht):ye=[ht]:ye=(0,ut._5)(ye,ht);var St=ye.map(function(Ct){var jt=(0,ze.Z)(et,Ct);return jt?jt.node:null}).filter(Boolean);_e.setUncontrolledState({selectedKeys:ye}),wt==null||wt(ye,{event:"select",selected:xt,node:xe,selectedNodes:St,nativeEvent:Te.nativeEvent})}),(0,z.Z)((0,E.Z)(_e),"onNodeCheck",function(Te,xe,ye){var Le=_e.state,et=Le.keyEntities,Ne=Le.checkedKeys,yt=Le.halfCheckedKeys,wt=_e.props,vt=wt.checkStrictly,gt=wt.onCheck,ht=xe.key,xt,St={event:"check",node:xe,checked:ye,nativeEvent:Te.nativeEvent};if(vt){var Ct=ye?(0,ut.L0)(Ne,ht):(0,ut._5)(Ne,ht),jt=(0,ut._5)(yt,ht);xt={checked:Ct,halfChecked:jt},St.checkedNodes=Ct.map(function(Lt){return(0,ze.Z)(et,Lt)}).filter(Boolean).map(function(Lt){return Lt.node}),_e.setUncontrolledState({checkedKeys:Ct})}else{var Ut=(0,st.S)([].concat((0,we.Z)(Ne),[ht]),!0,et),Bt=Ut.checkedKeys,qt=Ut.halfCheckedKeys;if(!ye){var xr=new Set(Bt);xr.delete(ht);var pr=(0,st.S)(Array.from(xr),{checked:!1,halfCheckedKeys:qt},et);Bt=pr.checkedKeys,qt=pr.halfCheckedKeys}xt=Bt,St.checkedNodes=[],St.checkedNodesPositions=[],St.halfCheckedKeys=qt,Bt.forEach(function(Lt){var Vt=(0,ze.Z)(et,Lt);if(Vt){var ar=Vt.node,fr=Vt.pos;St.checkedNodes.push(ar),St.checkedNodesPositions.push({node:ar,pos:fr})}}),_e.setUncontrolledState({checkedKeys:Bt},!1,{halfCheckedKeys:qt})}gt==null||gt(xt,St)}),(0,z.Z)((0,E.Z)(_e),"onNodeLoad",function(Te){var xe,ye=Te.key,Le=_e.state.keyEntities,et=(0,ze.Z)(Le,ye);if(!(et!=null&&(xe=et.children)!==null&&xe!==void 0&&xe.length)){var Ne=new Promise(function(yt,wt){_e.setState(function(vt){var gt=vt.loadedKeys,ht=gt===void 0?[]:gt,xt=vt.loadingKeys,St=xt===void 0?[]:xt,Ct=_e.props,jt=Ct.loadData,Ut=Ct.onLoad;if(!jt||ht.includes(ye)||St.includes(ye))return null;var Bt=jt(Te);return Bt.then(function(){var qt=_e.state.loadedKeys,xr=(0,ut.L0)(qt,ye);Ut==null||Ut(xr,{event:"load",node:Te}),_e.setUncontrolledState({loadedKeys:xr}),_e.setState(function(pr){return{loadingKeys:(0,ut._5)(pr.loadingKeys,ye)}}),yt()}).catch(function(qt){if(_e.setState(function(pr){return{loadingKeys:(0,ut._5)(pr.loadingKeys,ye)}}),_e.loadingRetryTimes[ye]=(_e.loadingRetryTimes[ye]||0)+1,_e.loadingRetryTimes[ye]>=Be){var xr=_e.state.loadedKeys;(0,ae.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),_e.setUncontrolledState({loadedKeys:(0,ut.L0)(xr,ye)}),yt()}wt(qt)}),{loadingKeys:(0,ut.L0)(St,ye)}})});return Ne.catch(function(){}),Ne}}),(0,z.Z)((0,E.Z)(_e),"onNodeMouseEnter",function(Te,xe){var ye=_e.props.onMouseEnter;ye==null||ye({event:Te,node:xe})}),(0,z.Z)((0,E.Z)(_e),"onNodeMouseLeave",function(Te,xe){var ye=_e.props.onMouseLeave;ye==null||ye({event:Te,node:xe})}),(0,z.Z)((0,E.Z)(_e),"onNodeContextMenu",function(Te,xe){var ye=_e.props.onRightClick;ye&&(Te.preventDefault(),ye({event:Te,node:xe}))}),(0,z.Z)((0,E.Z)(_e),"onFocus",function(){var Te=_e.props.onFocus;_e.setState({focused:!0});for(var xe=arguments.length,ye=new Array(xe),Le=0;Le<xe;Le++)ye[Le]=arguments[Le];Te==null||Te.apply(void 0,ye)}),(0,z.Z)((0,E.Z)(_e),"onBlur",function(){var Te=_e.props.onBlur;_e.setState({focused:!1}),_e.onActiveChange(null);for(var xe=arguments.length,ye=new Array(xe),Le=0;Le<xe;Le++)ye[Le]=arguments[Le];Te==null||Te.apply(void 0,ye)}),(0,z.Z)((0,E.Z)(_e),"getTreeNodeRequiredProps",function(){var Te=_e.state,xe=Te.expandedKeys,ye=Te.selectedKeys,Le=Te.loadedKeys,et=Te.loadingKeys,Ne=Te.checkedKeys,yt=Te.halfCheckedKeys,wt=Te.dragOverNodeKey,vt=Te.dropPosition,gt=Te.keyEntities;return{expandedKeys:xe||[],selectedKeys:ye||[],loadedKeys:Le||[],loadingKeys:et||[],checkedKeys:Ne||[],halfCheckedKeys:yt||[],dragOverNodeKey:wt,dropPosition:vt,keyEntities:gt}}),(0,z.Z)((0,E.Z)(_e),"setExpandedKeys",function(Te){var xe=_e.state,ye=xe.treeData,Le=xe.fieldNames,et=(0,Oe.oH)(ye,Te,Le);_e.setUncontrolledState({expandedKeys:Te,flattenNodes:et},!0)}),(0,z.Z)((0,E.Z)(_e),"onNodeExpand",function(Te,xe){var ye=_e.state.expandedKeys,Le=_e.state,et=Le.listChanging,Ne=Le.fieldNames,yt=_e.props,wt=yt.onExpand,vt=yt.loadData,gt=xe.expanded,ht=xe[Ne.key];if(!et){var xt=ye.includes(ht),St=!gt;if((0,ae.ZP)(gt&&xt||!gt&&!xt,"Expand state not sync with index check"),ye=St?(0,ut.L0)(ye,ht):(0,ut._5)(ye,ht),_e.setExpandedKeys(ye),wt==null||wt(ye,{node:xe,expanded:St,nativeEvent:Te.nativeEvent}),St&&vt){var Ct=_e.onNodeLoad(xe);Ct&&Ct.then(function(){var jt=(0,Oe.oH)(_e.state.treeData,ye,Ne);_e.setUncontrolledState({flattenNodes:jt})}).catch(function(){var jt=_e.state.expandedKeys,Ut=(0,ut._5)(jt,ht);_e.setExpandedKeys(Ut)})}}}),(0,z.Z)((0,E.Z)(_e),"onListChangeStart",function(){_e.setUncontrolledState({listChanging:!0})}),(0,z.Z)((0,E.Z)(_e),"onListChangeEnd",function(){setTimeout(function(){_e.setUncontrolledState({listChanging:!1})})}),(0,z.Z)((0,E.Z)(_e),"onActiveChange",function(Te){var xe=_e.state.activeKey,ye=_e.props,Le=ye.onActiveChange,et=ye.itemScrollOffset,Ne=et===void 0?0:et;xe!==Te&&(_e.setState({activeKey:Te}),Te!==null&&_e.scrollTo({key:Te,offset:Ne}),Le==null||Le(Te))}),(0,z.Z)((0,E.Z)(_e),"getActiveItem",function(){var Te=_e.state,xe=Te.activeKey,ye=Te.flattenNodes;return xe===null?null:ye.find(function(Le){var et=Le.key;return et===xe})||null}),(0,z.Z)((0,E.Z)(_e),"offsetActiveKey",function(Te){var xe=_e.state,ye=xe.flattenNodes,Le=xe.activeKey,et=ye.findIndex(function(wt){var vt=wt.key;return vt===Le});et===-1&&Te<0&&(et=ye.length),et=(et+Te+ye.length)%ye.length;var Ne=ye[et];if(Ne){var yt=Ne.key;_e.onActiveChange(yt)}else _e.onActiveChange(null)}),(0,z.Z)((0,E.Z)(_e),"onKeyDown",function(Te){var xe=_e.state,ye=xe.activeKey,Le=xe.expandedKeys,et=xe.checkedKeys,Ne=xe.fieldNames,yt=_e.props,wt=yt.onKeyDown,vt=yt.checkable,gt=yt.selectable;switch(Te.which){case re.Z.UP:{_e.offsetActiveKey(-1),Te.preventDefault();break}case re.Z.DOWN:{_e.offsetActiveKey(1),Te.preventDefault();break}}var ht=_e.getActiveItem();if(ht&&ht.data){var xt=_e.getTreeNodeRequiredProps(),St=ht.data.isLeaf===!1||!!(ht.data[Ne.children]||[]).length,Ct=(0,Oe.F)((0,y.Z)((0,y.Z)({},(0,Oe.H8)(ye,xt)),{},{data:ht.data,active:!0}));switch(Te.which){case re.Z.LEFT:{St&&Le.includes(ye)?_e.onNodeExpand({},Ct):ht.parent&&_e.onActiveChange(ht.parent.key),Te.preventDefault();break}case re.Z.RIGHT:{St&&!Le.includes(ye)?_e.onNodeExpand({},Ct):ht.children&&ht.children.length&&_e.onActiveChange(ht.children[0].key),Te.preventDefault();break}case re.Z.ENTER:case re.Z.SPACE:{vt&&!Ct.disabled&&Ct.checkable!==!1&&!Ct.disableCheckbox?_e.onNodeCheck({},Ct,!et.includes(ye)):!vt&&gt&&!Ct.disabled&&Ct.selectable!==!1&&_e.onNodeSelect({},Ct);break}}}wt==null||wt(Te)}),(0,z.Z)((0,E.Z)(_e),"setUncontrolledState",function(Te){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!_e.destroyed){var Le=!1,et=!0,Ne={};Object.keys(Te).forEach(function(yt){if(_e.props.hasOwnProperty(yt)){et=!1;return}Le=!0,Ne[yt]=Te[yt]}),Le&&(!xe||et)&&_e.setState((0,y.Z)((0,y.Z)({},Ne),ye))}}),(0,z.Z)((0,E.Z)(_e),"scrollTo",function(Te){_e.listRef.current.scrollTo(Te)}),_e}return(0,ee.Z)(nt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Pe=this.props,He=Pe.activeKey,it=Pe.itemScrollOffset,Te=it===void 0?0:it;He!==void 0&&He!==this.state.activeKey&&(this.setState({activeKey:He}),He!==null&&this.scrollTo({key:He,offset:Te}))}},{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 Pe=this.state,He=Pe.focused,it=Pe.flattenNodes,Te=Pe.keyEntities,xe=Pe.draggingNodeKey,ye=Pe.activeKey,Le=Pe.dropLevelOffset,et=Pe.dropContainerKey,Ne=Pe.dropTargetKey,yt=Pe.dropPosition,wt=Pe.dragOverNodeKey,vt=Pe.indent,gt=this.props,ht=gt.prefixCls,xt=gt.className,St=gt.style,Ct=gt.showLine,jt=gt.focusable,Ut=gt.tabIndex,Bt=Ut===void 0?0:Ut,qt=gt.selectable,xr=gt.showIcon,pr=gt.icon,Lt=gt.switcherIcon,Vt=gt.draggable,ar=gt.checkable,fr=gt.checkStrictly,Jt=gt.disabled,sr=gt.motion,Dr=gt.loadData,Xt=gt.filterTreeNode,zt=gt.height,Zt=gt.itemHeight,Yt=gt.scrollWidth,Pt=gt.virtual,Wt=gt.titleRender,$t=gt.dropIndicatorRender,cr=gt.onContextMenu,Ht=gt.onScroll,Er=gt.direction,Tr=gt.rootClassName,Mr=gt.rootStyle,Cr=(0,te.Z)(this.props,{aria:!0,data:!0}),dr;Vt&&((0,Et.Z)(Vt)==="object"?dr=Vt:typeof Vt=="function"?dr={nodeDraggable:Vt}:dr={});var er={prefixCls:ht,selectable:qt,showIcon:xr,icon:pr,switcherIcon:Lt,draggable:dr,draggingNodeKey:xe,checkable:ar,checkStrictly:fr,disabled:Jt,keyEntities:Te,dropLevelOffset:Le,dropContainerKey:et,dropTargetKey:Ne,dropPosition:yt,dragOverNodeKey:wt,indent:vt,direction:Er,dropIndicatorRender:$t,loadData:Dr,filterTreeNode:Xt,titleRender:Wt,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(fe.k.Provider,{value:er},ue.createElement("div",{className:x()(ht,xt,Tr,(0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(ht,"-show-line"),Ct),"".concat(ht,"-focused"),He),"".concat(ht,"-active-focused"),ye!==null)),style:Mr},ue.createElement(tt,(0,Ue.Z)({ref:this.listRef,prefixCls:ht,style:St,data:it,disabled:Jt,selectable:qt,checkable:!!ar,motion:sr,dragging:xe!==null,height:zt,itemHeight:Zt,virtual:Pt,focusable:jt,focused:He,tabIndex:Bt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:cr,onScroll:Ht,scrollWidth:Yt},this.getTreeNodeRequiredProps(),Cr))))}}],[{key:"getDerivedStateFromProps",value:function(Pe,He){var it=He.prevProps,Te={prevProps:Pe};function xe(Bt){return!it&&Pe.hasOwnProperty(Bt)||it&&it[Bt]!==Pe[Bt]}var ye,Le=He.fieldNames;if(xe("fieldNames")&&(Le=(0,Oe.w$)(Pe.fieldNames),Te.fieldNames=Le),xe("treeData")?ye=Pe.treeData:xe("children")&&((0,ae.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ye=(0,Oe.zn)(Pe.children)),ye){Te.treeData=ye;var et=(0,Oe.I8)(ye,{fieldNames:Le});Te.keyEntities=(0,y.Z)((0,z.Z)({},We,ot),et.keyEntities)}var Ne=Te.keyEntities||He.keyEntities;if(xe("expandedKeys")||it&&xe("autoExpandParent"))Te.expandedKeys=Pe.autoExpandParent||!it&&Pe.defaultExpandParent?(0,ut.r7)(Pe.expandedKeys,Ne):Pe.expandedKeys;else if(!it&&Pe.defaultExpandAll){var yt=(0,y.Z)({},Ne);delete yt[We];var wt=[];Object.keys(yt).forEach(function(Bt){var qt=yt[Bt];qt.children&&qt.children.length&&wt.push(qt.key)}),Te.expandedKeys=wt}else!it&&Pe.defaultExpandedKeys&&(Te.expandedKeys=Pe.autoExpandParent||Pe.defaultExpandParent?(0,ut.r7)(Pe.defaultExpandedKeys,Ne):Pe.defaultExpandedKeys);if(Te.expandedKeys||delete Te.expandedKeys,ye||Te.expandedKeys){var vt=(0,Oe.oH)(ye||He.treeData,Te.expandedKeys||He.expandedKeys,Le);Te.flattenNodes=vt}if(Pe.selectable&&(xe("selectedKeys")?Te.selectedKeys=(0,ut.BT)(Pe.selectedKeys,Pe):!it&&Pe.defaultSelectedKeys&&(Te.selectedKeys=(0,ut.BT)(Pe.defaultSelectedKeys,Pe))),Pe.checkable){var gt;if(xe("checkedKeys")?gt=(0,ut.E6)(Pe.checkedKeys)||{}:!it&&Pe.defaultCheckedKeys?gt=(0,ut.E6)(Pe.defaultCheckedKeys)||{}:ye&&(gt=(0,ut.E6)(Pe.checkedKeys)||{checkedKeys:He.checkedKeys,halfCheckedKeys:He.halfCheckedKeys}),gt){var ht=gt,xt=ht.checkedKeys,St=xt===void 0?[]:xt,Ct=ht.halfCheckedKeys,jt=Ct===void 0?[]:Ct;if(!Pe.checkStrictly){var Ut=(0,st.S)(St,!0,Ne);St=Ut.checkedKeys,jt=Ut.halfCheckedKeys}Te.checkedKeys=St,Te.halfCheckedKeys=jt}}return xe("loadedKeys")&&(Te.loadedKeys=Pe.loadedKeys),Te}}]),nt}(ue.Component);(0,z.Z)(Ke,"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:he,allowDrop:function(){return!0},expandAction:!1}),(0,z.Z)(Ke,"TreeNode",ve.Z);var Ie=Ke,Ye=Ie},82661:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{BT:function(){return ue},E6:function(){return he},L0:function(){return z},OM:function(){return ae},_5:function(){return le},r7:function(){return ce},wA:function(){return x},yx:function(){return se}});var Ue=Ge(94480),Et=Ge(76190),y=Ge(48736),we=Ge(59301),ge=Ge(639),ee=Ge(65065),E=Ge(34061),ie=null;function le(pe,Ce){if(!pe)return[];var ke=pe.slice(),De=ke.indexOf(Ce);return De>=0&&ke.splice(De,1),ke}function z(pe,Ce){var ke=(pe||[]).slice();return ke.indexOf(Ce)===-1&&ke.push(Ce),ke}function se(pe){return pe.split("-")}function x(pe,Ce){var ke=[],De=(0,ee.Z)(Ce,pe);function Ae(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ve.forEach(function(be){var Ee=be.key,Oe=be.children;ke.push(Ee),Ae(Oe)})}return Ae(De.children),ke}function re(pe){if(pe.parent){var Ce=se(pe.pos);return Number(Ce[Ce.length-1])===pe.parent.children.length-1}return!1}function te(pe){var Ce=se(pe.pos);return Number(Ce[Ce.length-1])===0}function ae(pe,Ce,ke,De,Ae,ve,be,Ee,Oe,Me){var Se,je=pe.clientX,Ze=pe.clientY,Xe=pe.target.getBoundingClientRect(),$e=Xe.top,lt=Xe.height,Re=(Me==="rtl"?-1:1)*(((Ae==null?void 0:Ae.x)||0)-je),We=(Re-12)/De,rt=Oe.filter(function(Ye){var ft;return(ft=Ee[Ye])===null||ft===void 0||(ft=ft.children)===null||ft===void 0?void 0:ft.length}),ot=(0,ee.Z)(Ee,ke.eventKey);if(Ze<$e+lt/2){var at=be.findIndex(function(Ye){return Ye.key===ot.key}),Je=at<=0?0:at-1,Qe=be[Je].key;ot=(0,ee.Z)(Ee,Qe)}var Ve=ot.key,ct=ot,tt=ot.key,ut=0,st=0;if(!rt.includes(Ve))for(var ze=0;ze<We&&re(ot);ze+=1)ot=ot.parent,st+=1;var Be=Ce.data,Ke=ot.node,Ie=!0;return te(ot)&&ot.level===0&&Ze<$e+lt/2&&ve({dragNode:Be,dropNode:Ke,dropPosition:-1})&&ot.key===ke.eventKey?ut=-1:(ct.children||[]).length&&rt.includes(tt)?ve({dragNode:Be,dropNode:Ke,dropPosition:0})?ut=0:Ie=!1:st===0?We>-1.5?ve({dragNode:Be,dropNode:Ke,dropPosition:1})?ut=1:Ie=!1:ve({dragNode:Be,dropNode:Ke,dropPosition:0})?ut=0:ve({dragNode:Be,dropNode:Ke,dropPosition:1})?ut=1:Ie=!1:ve({dragNode:Be,dropNode:Ke,dropPosition:1})?ut=1:Ie=!1,{dropPosition:ut,dropLevelOffset:st,dropTargetKey:ot.key,dropTargetPos:ot.pos,dragOverNodeKey:tt,dropContainerKey:ut===0?null:((Se=ot.parent)===null||Se===void 0?void 0:Se.key)||null,dropAllowed:Ie}}function ue(pe,Ce){if(pe){var ke=Ce.multiple;return ke?pe.slice():pe.length?[pe[0]]:pe}}var fe=function(Ce){return Ce};function de(pe,Ce){if(!pe)return[];var ke=Ce||{},De=ke.processProps,Ae=De===void 0?fe:De,ve=Array.isArray(pe)?pe:[pe];return ve.map(function(be){var Ee=be.children,Oe=_objectWithoutProperties(be,ie),Me=de(Ee,Ce);return React.createElement(TreeNode,_extends({key:Oe.key},Ae(Oe)),Me)})}function he(pe){if(!pe)return null;var Ce;if(Array.isArray(pe))Ce={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,Et.Z)(pe)==="object")Ce={checkedKeys:pe.checked||void 0,halfCheckedKeys:pe.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function ce(pe,Ce){var ke=new Set;function De(Ae){if(!ke.has(Ae)){var ve=(0,ee.Z)(Ce,Ae);if(ve){ke.add(Ae);var be=ve.parent,Ee=ve.node;Ee.disabled||be&&De(be.key)}}}return(pe||[]).forEach(function(Ae){De(Ae)}),(0,Ue.Z)(ke)}},34643:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{S:function(){return E}});var Ue=Ge(48736),Et=Ge(65065);function y(ie,le){var z=new Set;return ie.forEach(function(se){le.has(se)||z.add(se)}),z}function we(ie){var le=ie||{},z=le.disabled,se=le.disableCheckbox,x=le.checkable;return!!(z||se)||x===!1}function ge(ie,le,z,se){for(var x=new Set(ie),re=new Set,te=0;te<=z;te+=1){var ae=le.get(te)||new Set;ae.forEach(function(he){var ce=he.key,pe=he.node,Ce=he.children,ke=Ce===void 0?[]:Ce;x.has(ce)&&!se(pe)&&ke.filter(function(De){return!se(De.node)}).forEach(function(De){x.add(De.key)})})}for(var ue=new Set,fe=z;fe>=0;fe-=1){var de=le.get(fe)||new Set;de.forEach(function(he){var ce=he.parent,pe=he.node;if(!(se(pe)||!he.parent||ue.has(he.parent.key))){if(se(he.parent.node)){ue.add(ce.key);return}var Ce=!0,ke=!1;(ce.children||[]).filter(function(De){return!se(De.node)}).forEach(function(De){var Ae=De.key,ve=x.has(Ae);Ce&&!ve&&(Ce=!1),!ke&&(ve||re.has(Ae))&&(ke=!0)}),Ce&&x.add(ce.key),ke&&re.add(ce.key),ue.add(ce.key)}})}return{checkedKeys:Array.from(x),halfCheckedKeys:Array.from(y(re,x))}}function ee(ie,le,z,se,x){for(var re=new Set(ie),te=new Set(le),ae=0;ae<=se;ae+=1){var ue=z.get(ae)||new Set;ue.forEach(function(ce){var pe=ce.key,Ce=ce.node,ke=ce.children,De=ke===void 0?[]:ke;!re.has(pe)&&!te.has(pe)&&!x(Ce)&&De.filter(function(Ae){return!x(Ae.node)}).forEach(function(Ae){re.delete(Ae.key)})})}te=new Set;for(var fe=new Set,de=se;de>=0;de-=1){var he=z.get(de)||new Set;he.forEach(function(ce){var pe=ce.parent,Ce=ce.node;if(!(x(Ce)||!ce.parent||fe.has(ce.parent.key))){if(x(ce.parent.node)){fe.add(pe.key);return}var ke=!0,De=!1;(pe.children||[]).filter(function(Ae){return!x(Ae.node)}).forEach(function(Ae){var ve=Ae.key,be=re.has(ve);ke&&!be&&(ke=!1),!De&&(be||te.has(ve))&&(De=!0)}),ke||re.delete(pe.key),De&&te.add(pe.key),fe.add(pe.key)}})}return{checkedKeys:Array.from(re),halfCheckedKeys:Array.from(y(te,re))}}function E(ie,le,z,se){var x=[],re;se?re=se:re=we;var te=new Set(ie.filter(function(de){var he=!!(0,Et.Z)(z,de);return he||x.push(de),he})),ae=new Map,ue=0;Object.keys(z).forEach(function(de){var he=z[de],ce=he.level,pe=ae.get(ce);pe||(pe=new Set,ae.set(ce,pe)),pe.add(he),ue=Math.max(ue,ce)}),(0,Ue.ZP)(!x.length,"Tree missing follow keys: ".concat(x.slice(0,100).map(function(de){return"'".concat(de,"'")}).join(", ")));var fe;return le===!0?fe=ge(te,ae,ue,re):fe=ee(te,le.halfCheckedKeys,ae,ue,re),fe}},65065:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return Ue}});function Ue(Et,y){return Et[y]}},34061:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{F:function(){return ce},H8:function(){return he},I8:function(){return de},km:function(){return x},oH:function(){return ue},w$:function(){return re},zn:function(){return ae}});var Ue=Ge(76190),Et=Ge(94480),y=Ge(33885),we=Ge(75931),ge=Ge(11592),ee=Ge(2738),E=Ge(48736),ie=Ge(65065),le=["children"];function z(pe,Ce){return"".concat(pe,"-").concat(Ce)}function se(pe){return pe&&pe.type&&pe.type.isTreeNode}function x(pe,Ce){return pe!=null?pe:Ce}function re(pe){var Ce=pe||{},ke=Ce.title,De=Ce._title,Ae=Ce.key,ve=Ce.children,be=ke||"title";return{title:be,_title:De||[be],key:Ae||"key",children:ve||"children"}}function te(pe,Ce){var ke=new Map;function De(Ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ae||[]).forEach(function(be){var Ee=be[Ce.key],Oe=be[Ce.children];warning(Ee!=null,"Tree node must have a certain key: [".concat(ve).concat(Ee,"]"));var Me=String(Ee);warning(!ke.has(Me)||Ee===null||Ee===void 0,"Same 'key' exist in the Tree: ".concat(Me)),ke.set(Me,!0),De(Oe,"".concat(ve).concat(Me," > "))})}De(pe)}function ae(pe){function Ce(ke){var De=(0,ge.Z)(ke);return De.map(function(Ae){if(!se(Ae))return(0,E.ZP)(!Ae,"Tree/TreeNode can only accept TreeNode as children."),null;var ve=Ae.key,be=Ae.props,Ee=be.children,Oe=(0,we.Z)(be,le),Me=(0,y.Z)({key:ve},Oe),Se=Ce(Ee);return Se.length&&(Me.children=Se),Me}).filter(function(Ae){return Ae})}return Ce(pe)}function ue(pe,Ce,ke){var De=re(ke),Ae=De._title,ve=De.key,be=De.children,Ee=new Set(Ce===!0?[]:Ce),Oe=[];function Me(Se){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Se.map(function(Ze,Xe){for(var $e=z(je?je.pos:"0",Xe),lt=x(Ze[ve],$e),Re,We=0;We<Ae.length;We+=1){var rt=Ae[We];if(Ze[rt]!==void 0){Re=Ze[rt];break}}var ot=Object.assign((0,ee.Z)(Ze,[].concat((0,Et.Z)(Ae),[ve,be])),{title:Re,key:lt,parent:je,pos:$e,children:null,data:Ze,isStart:[].concat((0,Et.Z)(je?je.isStart:[]),[Xe===0]),isEnd:[].concat((0,Et.Z)(je?je.isEnd:[]),[Xe===Se.length-1])});return Oe.push(ot),Ce===!0||Ee.has(lt)?ot.children=Me(Ze[be]||[],ot):ot.children=[],ot})}return Me(pe),Oe}function fe(pe,Ce,ke){var De={};(0,Ue.Z)(ke)==="object"?De=ke:De={externalGetKey:ke},De=De||{};var Ae=De,ve=Ae.childrenPropName,be=Ae.externalGetKey,Ee=Ae.fieldNames,Oe=re(Ee),Me=Oe.key,Se=Oe.children,je=ve||Se,Ze;be?typeof be=="string"?Ze=function(lt){return lt[be]}:typeof be=="function"&&(Ze=function(lt){return be(lt)}):Ze=function(lt,Re){return x(lt[Me],Re)};function Xe($e,lt,Re,We){var rt=$e?$e[je]:pe,ot=$e?z(Re.pos,lt):"0",at=$e?[].concat((0,Et.Z)(We),[$e]):[];if($e){var Je=Ze($e,ot),Qe={node:$e,index:lt,pos:ot,key:Je,parentPos:Re.node?Re.pos:null,level:Re.level+1,nodes:at};Ce(Qe)}rt&&rt.forEach(function(Ve,ct){Xe(Ve,ct,{node:$e,pos:ot,level:Re?Re.level+1:-1},at)})}Xe(null)}function de(pe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ke=Ce.initWrapper,De=Ce.processEntity,Ae=Ce.onProcessFinished,ve=Ce.externalGetKey,be=Ce.childrenPropName,Ee=Ce.fieldNames,Oe=arguments.length>2?arguments[2]:void 0,Me=ve||Oe,Se={},je={},Ze={posEntities:Se,keyEntities:je};return ke&&(Ze=ke(Ze)||Ze),fe(pe,function(Xe){var $e=Xe.node,lt=Xe.index,Re=Xe.pos,We=Xe.key,rt=Xe.parentPos,ot=Xe.level,at=Xe.nodes,Je={node:$e,nodes:at,index:lt,key:We,pos:Re,level:ot},Qe=x(We,Re);Se[Re]=Je,je[Qe]=Je,Je.parent=Se[rt],Je.parent&&(Je.parent.children=Je.parent.children||[],Je.parent.children.push(Je)),De&&De(Je,Ze)},{externalGetKey:Me,childrenPropName:be,fieldNames:Ee}),Ae&&Ae(Ze),Ze}function he(pe,Ce){var ke=Ce.expandedKeys,De=Ce.selectedKeys,Ae=Ce.loadedKeys,ve=Ce.loadingKeys,be=Ce.checkedKeys,Ee=Ce.halfCheckedKeys,Oe=Ce.dragOverNodeKey,Me=Ce.dropPosition,Se=Ce.keyEntities,je=(0,ie.Z)(Se,pe),Ze={eventKey:pe,expanded:ke.indexOf(pe)!==-1,selected:De.indexOf(pe)!==-1,loaded:Ae.indexOf(pe)!==-1,loading:ve.indexOf(pe)!==-1,checked:be.indexOf(pe)!==-1,halfChecked:Ee.indexOf(pe)!==-1,pos:String(je?je.pos:""),dragOver:Oe===pe&&Me===0,dragOverGapTop:Oe===pe&&Me===-1,dragOverGapBottom:Oe===pe&&Me===1};return Ze}function ce(pe){var Ce=pe.data,ke=pe.expanded,De=pe.selected,Ae=pe.checked,ve=pe.loaded,be=pe.loading,Ee=pe.halfChecked,Oe=pe.dragOver,Me=pe.dragOverGapTop,Se=pe.dragOverGapBottom,je=pe.pos,Ze=pe.active,Xe=pe.eventKey,$e=(0,y.Z)((0,y.Z)({},Ce),{},{expanded:ke,selected:De,checked:Ae,loaded:ve,loading:be,halfChecked:Ee,dragOver:Oe,dragOverGapTop:Me,dragOverGapBottom:Se,pos:je,active:Ze,key:Xe});return"props"in $e||Object.defineProperty($e,"props",{get:function(){return(0,E.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pe}}),$e}},90472:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return Xe}});var Ue=Ge(54476),Et=Ge(67732),y=Ge(83652),we=Ge(31226),ge=Ge(42403),ee=Ge(158),E=Ge(20068),ie=Ge(59301),le=Ge(33885),z=Ge(75931),se=Ge(76190),x=Ge(75044),re=Ge(3202),te=Ge(94480),ae=Ge(92310),ue=Ge.n(ae),fe=Ge(26112),de=Ge(48736),he=function($e,lt){if($e&&lt){var Re=Array.isArray(lt)?lt:lt.split(","),We=$e.name||"",rt=$e.type||"",ot=rt.replace(/\/.*$/,"");return Re.some(function(at){var Je=at.trim();if(/^\*(\/\*)?$/.test(at))return!0;if(Je.charAt(0)==="."){var Qe=We.toLowerCase(),Ve=Je.toLowerCase(),ct=[Ve];return(Ve===".jpg"||Ve===".jpeg")&&(ct=[".jpg",".jpeg"]),ct.some(function(tt){return Qe.endsWith(tt)})}return/\/\*$/.test(Je)?ot===Je.replace(/\/.*$/,""):rt===Je?!0:/^\w+$/.test(Je)?((0,de.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Je,"'.Skip for check.")),!0):!1})}return!0};function ce($e,lt){var Re="cannot ".concat($e.method," ").concat($e.action," ").concat(lt.status,"'"),We=new Error(Re);return We.status=lt.status,We.method=$e.method,We.url=$e.action,We}function pe($e){var lt=$e.responseText||$e.response;if(!lt)return lt;try{return JSON.parse(lt)}catch(Re){return lt}}function Ce($e){var lt=new XMLHttpRequest;$e.onProgress&&lt.upload&&(lt.upload.onprogress=function(ot){ot.total>0&&(ot.percent=ot.loaded/ot.total*100),$e.onProgress(ot)});var Re=new FormData;$e.data&&Object.keys($e.data).forEach(function(rt){var ot=$e.data[rt];if(Array.isArray(ot)){ot.forEach(function(at){Re.append("".concat(rt,"[]"),at)});return}Re.append(rt,ot)}),$e.file instanceof Blob?Re.append($e.filename,$e.file,$e.file.name):Re.append($e.filename,$e.file),lt.onerror=function(ot){$e.onError(ot)},lt.onload=function(){return lt.status<200||lt.status>=300?$e.onError(ce($e,lt),pe(lt)):$e.onSuccess(pe(lt),lt)},lt.open($e.method,$e.action,!0),$e.withCredentials&&"withCredentials"in lt&&(lt.withCredentials=!0);var We=$e.headers||{};return We["X-Requested-With"]!==null&&lt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(We).forEach(function(rt){We[rt]!==null&&lt.setRequestHeader(rt,We[rt])}),lt.send(Re),{abort:function(){lt.abort()}}}var ke=function(){var $e=(0,re.Z)((0,x.Z)().mark(function lt(Re,We){var rt,ot,at,Je,Qe,Ve,ct,tt;return(0,x.Z)().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:Ve=function(){return Ve=(0,re.Z)((0,x.Z)().mark(function Be(Ke){return(0,x.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return Ye.abrupt("return",new Promise(function(ft){Ke.file(function(mt){We(mt)?(Ke.fullPath&&!mt.webkitRelativePath&&(Object.defineProperties(mt,{webkitRelativePath:{writable:!0}}),mt.webkitRelativePath=Ke.fullPath.replace(/^\//,""),Object.defineProperties(mt,{webkitRelativePath:{writable:!1}})),ft(mt)):ft(null)})}));case 1:case"end":return Ye.stop()}},Be)})),Ve.apply(this,arguments)},Qe=function(Be){return Ve.apply(this,arguments)},Je=function(){return Je=(0,re.Z)((0,x.Z)().mark(function Be(Ke){var Ie,Ye,ft,mt,nt;return(0,x.Z)().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:Ie=Ke.createReader(),Ye=[];case 2:return Pe.next=5,new Promise(function(He){Ie.readEntries(He,function(){return He([])})});case 5:if(ft=Pe.sent,mt=ft.length,mt){Pe.next=9;break}return Pe.abrupt("break",12);case 9:for(nt=0;nt<mt;nt++)Ye.push(ft[nt]);Pe.next=2;break;case 12:return Pe.abrupt("return",Ye);case 13:case"end":return Pe.stop()}},Be)})),Je.apply(this,arguments)},at=function(Be){return Je.apply(this,arguments)},rt=[],ot=[],Re.forEach(function(ze){return ot.push(ze.webkitGetAsEntry())}),ct=function(){var ze=(0,re.Z)((0,x.Z)().mark(function Be(Ke,Ie){var Ye,ft;return(0,x.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(Ke){nt.next=2;break}return nt.abrupt("return");case 2:if(Ke.path=Ie||"",!Ke.isFile){nt.next=10;break}return nt.next=6,Qe(Ke);case 6:Ye=nt.sent,Ye&&rt.push(Ye),nt.next=15;break;case 10:if(!Ke.isDirectory){nt.next=15;break}return nt.next=13,at(Ke);case 13:ft=nt.sent,ot.push.apply(ot,(0,te.Z)(ft));case 15:case"end":return nt.stop()}},Be)}));return function(Ke,Ie){return ze.apply(this,arguments)}}(),tt=0;case 9:if(!(tt<ot.length)){st.next=15;break}return st.next=12,ct(ot[tt]);case 12:tt++,st.next=9;break;case 15:return st.abrupt("return",rt);case 16:case"end":return st.stop()}},lt)}));return function(Re,We){return $e.apply(this,arguments)}}(),De=ke,Ae=+new Date,ve=0;function be(){return"rc-upload-".concat(Ae,"-").concat(++ve)}var Ee=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Oe=function($e){(0,ge.Z)(Re,$e);var lt=(0,ee.Z)(Re);function Re(){var We;(0,Et.Z)(this,Re);for(var rt=arguments.length,ot=new Array(rt),at=0;at<rt;at++)ot[at]=arguments[at];return We=lt.call.apply(lt,[this].concat(ot)),(0,E.Z)((0,we.Z)(We),"state",{uid:be()}),(0,E.Z)((0,we.Z)(We),"reqs",{}),(0,E.Z)((0,we.Z)(We),"fileInput",void 0),(0,E.Z)((0,we.Z)(We),"_isMounted",void 0),(0,E.Z)((0,we.Z)(We),"onChange",function(Je){var Qe=We.props,Ve=Qe.accept,ct=Qe.directory,tt=Je.target.files,ut=(0,te.Z)(tt).filter(function(st){return!ct||he(st,Ve)});We.uploadFiles(ut),We.reset()}),(0,E.Z)((0,we.Z)(We),"onClick",function(Je){var Qe=We.fileInput;if(Qe){var Ve=Je.target,ct=We.props.onClick;if(Ve&&Ve.tagName==="BUTTON"){var tt=Qe.parentNode;tt.focus(),Ve.blur()}Qe.click(),ct&&ct(Je)}}),(0,E.Z)((0,we.Z)(We),"onKeyDown",function(Je){Je.key==="Enter"&&We.onClick(Je)}),(0,E.Z)((0,we.Z)(We),"onFileDrop",function(){var Je=(0,re.Z)((0,x.Z)().mark(function Qe(Ve){var ct,tt,ut;return(0,x.Z)().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(ct=We.props.multiple,Ve.preventDefault(),Ve.type!=="dragover"){ze.next=4;break}return ze.abrupt("return");case 4:if(!We.props.directory){ze.next=11;break}return ze.next=7,De(Array.prototype.slice.call(Ve.dataTransfer.items),function(Be){return he(Be,We.props.accept)});case 7:tt=ze.sent,We.uploadFiles(tt),ze.next=14;break;case 11:ut=(0,te.Z)(Ve.dataTransfer.files).filter(function(Be){return he(Be,We.props.accept)}),ct===!1&&(ut=ut.slice(0,1)),We.uploadFiles(ut);case 14:case"end":return ze.stop()}},Qe)}));return function(Qe){return Je.apply(this,arguments)}}()),(0,E.Z)((0,we.Z)(We),"uploadFiles",function(Je){var Qe=(0,te.Z)(Je),Ve=Qe.map(function(ct){return ct.uid=be(),We.processFile(ct,Qe)});Promise.all(Ve).then(function(ct){var tt=We.props.onBatchStart;tt==null||tt(ct.map(function(ut){var st=ut.origin,ze=ut.parsedFile;return{file:st,parsedFile:ze}})),ct.filter(function(ut){return ut.parsedFile!==null}).forEach(function(ut){We.post(ut)})})}),(0,E.Z)((0,we.Z)(We),"processFile",function(){var Je=(0,re.Z)((0,x.Z)().mark(function Qe(Ve,ct){var tt,ut,st,ze,Be,Ke,Ie,Ye,ft;return(0,x.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(tt=We.props.beforeUpload,ut=Ve,!tt){nt.next=14;break}return nt.prev=3,nt.next=6,tt(Ve,ct);case 6:ut=nt.sent,nt.next=12;break;case 9:nt.prev=9,nt.t0=nt.catch(3),ut=!1;case 12:if(ut!==!1){nt.next=14;break}return nt.abrupt("return",{origin:Ve,parsedFile:null,action:null,data:null});case 14:if(st=We.props.action,typeof st!="function"){nt.next=21;break}return nt.next=18,st(Ve);case 18:ze=nt.sent,nt.next=22;break;case 21:ze=st;case 22:if(Be=We.props.data,typeof Be!="function"){nt.next=29;break}return nt.next=26,Be(Ve);case 26:Ke=nt.sent,nt.next=30;break;case 29:Ke=Be;case 30:return Ie=((0,se.Z)(ut)==="object"||typeof ut=="string")&&ut?ut:Ve,Ie instanceof File?Ye=Ie:Ye=new File([Ie],Ve.name,{type:Ve.type}),ft=Ye,ft.uid=Ve.uid,nt.abrupt("return",{origin:Ve,data:Ke,parsedFile:ft,action:ze});case 35:case"end":return nt.stop()}},Qe,null,[[3,9]])}));return function(Qe,Ve){return Je.apply(this,arguments)}}()),(0,E.Z)((0,we.Z)(We),"saveFileInput",function(Je){We.fileInput=Je}),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(rt){var ot=this,at=rt.data,Je=rt.origin,Qe=rt.action,Ve=rt.parsedFile;if(this._isMounted){var ct=this.props,tt=ct.onStart,ut=ct.customRequest,st=ct.name,ze=ct.headers,Be=ct.withCredentials,Ke=ct.method,Ie=Je.uid,Ye=ut||Ce,ft={action:Qe,filename:st,data:at,file:Ve,headers:ze,withCredentials:Be,method:Ke||"post",onProgress:function(nt){var _e=ot.props.onProgress;_e==null||_e(nt,Ve)},onSuccess:function(nt,_e){var Pe=ot.props.onSuccess;Pe==null||Pe(nt,Ve,_e),delete ot.reqs[Ie]},onError:function(nt,_e){var Pe=ot.props.onError;Pe==null||Pe(nt,_e,Ve),delete ot.reqs[Ie]}};tt(Je),this.reqs[Ie]=Ye(ft)}}},{key:"reset",value:function(){this.setState({uid:be()})}},{key:"abort",value:function(rt){var ot=this.reqs;if(rt){var at=rt.uid?rt.uid:rt;ot[at]&&ot[at].abort&&ot[at].abort(),delete ot[at]}else Object.keys(ot).forEach(function(Je){ot[Je]&&ot[Je].abort&&ot[Je].abort(),delete ot[Je]})}},{key:"render",value:function(){var rt=this.props,ot=rt.component,at=rt.prefixCls,Je=rt.className,Qe=rt.classNames,Ve=Qe===void 0?{}:Qe,ct=rt.disabled,tt=rt.id,ut=rt.name,st=rt.style,ze=rt.styles,Be=ze===void 0?{}:ze,Ke=rt.multiple,Ie=rt.accept,Ye=rt.capture,ft=rt.children,mt=rt.directory,nt=rt.openFileDialogOnClick,_e=rt.onMouseEnter,Pe=rt.onMouseLeave,He=rt.hasControlInside,it=(0,z.Z)(rt,Ee),Te=ue()((0,E.Z)((0,E.Z)((0,E.Z)({},at,!0),"".concat(at,"-disabled"),ct),Je,Je)),xe=mt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ye=ct?{}:{onClick:nt?this.onClick:function(){},onKeyDown:nt?this.onKeyDown:function(){},onMouseEnter:_e,onMouseLeave:Pe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:He?void 0:"0"};return ie.createElement(ot,(0,Ue.Z)({},ye,{className:Te,role:He?void 0:"button",style:st}),ie.createElement("input",(0,Ue.Z)({},(0,fe.Z)(it,{aria:!0,data:!0}),{id:tt,name:ut,disabled:ct,type:"file",ref:this.saveFileInput,onClick:function(et){return et.stopPropagation()},key:this.state.uid,style:(0,le.Z)({display:"none"},Be.input),className:Ve.input,accept:Ie},xe,{multiple:Ke,onChange:this.onChange},Ye!=null?{capture:Ye}:{})),ft)}}]),Re}(ie.Component),Me=Oe;function Se(){}var je=function($e){(0,ge.Z)(Re,$e);var lt=(0,ee.Z)(Re);function Re(){var We;(0,Et.Z)(this,Re);for(var rt=arguments.length,ot=new Array(rt),at=0;at<rt;at++)ot[at]=arguments[at];return We=lt.call.apply(lt,[this].concat(ot)),(0,E.Z)((0,we.Z)(We),"uploader",void 0),(0,E.Z)((0,we.Z)(We),"saveUploader",function(Je){We.uploader=Je}),We}return(0,y.Z)(Re,[{key:"abort",value:function(rt){this.uploader.abort(rt)}},{key:"render",value:function(){return ie.createElement(Me,(0,Ue.Z)({},this.props,{ref:this.saveUploader}))}}]),Re}(ie.Component);(0,E.Z)(je,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Se,onError:Se,onSuccess:Se,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ze=je,Xe=Ze},48911:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return Be}});var Ue=Ge(54476),Et=Ge(76190),y=Ge(33885),we=Ge(20068),ge=Ge(42978),ee=Ge(75931),E=Ge(92310),ie=Ge.n(E),le=Ge(29301),z=Ge(70425),se=Ge(34280),x=Ge(59301),re=Ge(4676),te=x.forwardRef(function(Ke,Ie){var Ye=Ke.height,ft=Ke.offsetY,mt=Ke.offsetX,nt=Ke.children,_e=Ke.prefixCls,Pe=Ke.onInnerResize,He=Ke.innerProps,it=Ke.rtl,Te=Ke.extra,xe={},ye={display:"flex",flexDirection:"column"};return ft!==void 0&&(xe={height:Ye,position:"relative",overflow:"hidden"},ye=(0,y.Z)((0,y.Z)({},ye),{},(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({transform:"translateY(".concat(ft,"px)")},it?"marginRight":"marginLeft",-mt),"position","absolute"),"left",0),"right",0),"top",0))),x.createElement("div",{style:xe},x.createElement(le.Z,{onResize:function(et){var Ne=et.offsetHeight;Ne&&Pe&&Pe()}},x.createElement("div",(0,Ue.Z)({style:ye,className:ie()((0,we.Z)({},"".concat(_e,"-holder-inner"),_e)),ref:Ie},He),nt,Te)))});te.displayName="Filler";var ae=te;function ue(Ke){var Ie=Ke.children,Ye=Ke.setRef,ft=x.useCallback(function(mt){Ye(mt)},[]);return x.cloneElement(Ie,{ref:ft})}function fe(Ke,Ie,Ye,ft,mt,nt,_e,Pe){var He=Pe.getKey;return Ke.slice(Ie,Ye+1).map(function(it,Te){var xe=Ie+Te,ye=_e(it,xe,{style:{width:ft},offsetX:mt}),Le=He(it);return x.createElement(ue,{key:Le,setRef:function(Ne){return nt(it,Ne)}},ye)})}function de(Ke,Ie,Ye,ft){var mt=Ye-Ke,nt=Ie-Ye,_e=Math.min(mt,nt)*2;if(ft<=_e){var Pe=Math.floor(ft/2);return ft%2?Ye+Pe+1:Ye-Pe}return mt>nt?Ye-(ft-nt):Ye+(ft-mt)}function he(Ke,Ie,Ye){var ft=Ke.length,mt=Ie.length,nt,_e;if(ft===0&&mt===0)return null;ft<mt?(nt=Ke,_e=Ie):(nt=Ie,_e=Ke);var Pe={__EMPTY_ITEM__:!0};function He(et){return et!==void 0?Ye(et):Pe}for(var it=null,Te=Math.abs(ft-mt)!==1,xe=0;xe<_e.length;xe+=1){var ye=He(nt[xe]),Le=He(_e[xe]);if(ye!==Le){it=xe,Te=Te||ye!==He(_e[xe+1]);break}}return it===null?null:{index:it,multiple:Te}}function ce(Ke,Ie,Ye){var ft=x.useState(Ke),mt=(0,ge.Z)(ft,2),nt=mt[0],_e=mt[1],Pe=x.useState(null),He=(0,ge.Z)(Pe,2),it=He[0],Te=He[1];return x.useEffect(function(){var xe=he(nt||[],Ke||[],Ie);(xe==null?void 0:xe.index)!==void 0&&(Ye==null||Ye(xe.index),Te(Ke[xe.index])),_e(Ke)},[Ke]),[it]}var pe=Ge(16089),Ce=(typeof navigator=="undefined"?"undefined":(0,Et.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),ke=Ce,De=function(Ke,Ie,Ye,ft){var mt=(0,x.useRef)(!1),nt=(0,x.useRef)(null);function _e(){clearTimeout(nt.current),mt.current=!0,nt.current=setTimeout(function(){mt.current=!1},50)}var Pe=(0,x.useRef)({top:Ke,bottom:Ie,left:Ye,right:ft});return Pe.current.top=Ke,Pe.current.bottom=Ie,Pe.current.left=Ye,Pe.current.right=ft,function(He,it){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=He?it<0&&Pe.current.left||it>0&&Pe.current.right:it<0&&Pe.current.top||it>0&&Pe.current.bottom;return Te&&xe?(clearTimeout(nt.current),mt.current=!1):(!xe||mt.current)&&_e(),!mt.current&&xe}};function Ae(Ke,Ie,Ye,ft,mt,nt,_e){var Pe=(0,x.useRef)(0),He=(0,x.useRef)(null),it=(0,x.useRef)(null),Te=(0,x.useRef)(!1),xe=De(Ie,Ye,ft,mt);function ye(vt,gt){if(pe.Z.cancel(He.current),!xe(!1,gt)){var ht=vt;if(!ht._virtualHandled)ht._virtualHandled=!0;else return;Pe.current+=gt,it.current=gt,ke||ht.preventDefault(),He.current=(0,pe.Z)(function(){var xt=Te.current?10:1;_e(Pe.current*xt,!1),Pe.current=0})}}function Le(vt,gt){_e(gt,!0),ke||vt.preventDefault()}var et=(0,x.useRef)(null),Ne=(0,x.useRef)(null);function yt(vt){if(Ke){pe.Z.cancel(Ne.current),Ne.current=(0,pe.Z)(function(){et.current=null},2);var gt=vt.deltaX,ht=vt.deltaY,xt=vt.shiftKey,St=gt,Ct=ht;(et.current==="sx"||!et.current&&xt&&ht&&!gt)&&(St=ht,Ct=0,et.current="sx");var jt=Math.abs(St),Ut=Math.abs(Ct);et.current===null&&(et.current=nt&&jt>Ut?"x":"y"),et.current==="y"?ye(vt,Ct):Le(vt,St)}}function wt(vt){Ke&&(Te.current=vt.detail===it.current)}return[yt,wt]}function ve(Ke,Ie,Ye,ft){var mt=x.useMemo(function(){return[new Map,[]]},[Ke,Ye.id,ft]),nt=(0,ge.Z)(mt,2),_e=nt[0],Pe=nt[1],He=function(Te){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Te,ye=_e.get(Te),Le=_e.get(xe);if(ye===void 0||Le===void 0)for(var et=Ke.length,Ne=Pe.length;Ne<et;Ne+=1){var yt,wt=Ke[Ne],vt=Ie(wt);_e.set(vt,Ne);var gt=(yt=Ye.get(vt))!==null&&yt!==void 0?yt:ft;if(Pe[Ne]=(Pe[Ne-1]||0)+gt,vt===Te&&(ye=Ne),vt===xe&&(Le=Ne),ye!==void 0&&Le!==void 0)break}return{top:Pe[ye-1]||0,bottom:Pe[Le]}};return He}var be=Ge(67732),Ee=Ge(83652),Oe=function(){function Ke(){(0,be.Z)(this,Ke),(0,we.Z)(this,"maps",void 0),(0,we.Z)(this,"id",0),(0,we.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ee.Z)(Ke,[{key:"set",value:function(Ye,ft){this.diffRecords.set(Ye,this.maps[Ye]),this.maps[Ye]=ft,this.id+=1}},{key:"get",value:function(Ye){return this.maps[Ye]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Ke}(),Me=Oe;function Se(Ke){var Ie=parseFloat(Ke);return isNaN(Ie)?0:Ie}function je(Ke,Ie,Ye){var ft=x.useState(0),mt=(0,ge.Z)(ft,2),nt=mt[0],_e=mt[1],Pe=(0,x.useRef)(new Map),He=(0,x.useRef)(new Me),it=(0,x.useRef)(0);function Te(){it.current+=1}function xe(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Te();var et=function(){var wt=!1;Pe.current.forEach(function(vt,gt){if(vt&&vt.offsetParent){var ht=vt.offsetHeight,xt=getComputedStyle(vt),St=xt.marginTop,Ct=xt.marginBottom,jt=Se(St),Ut=Se(Ct),Bt=ht+jt+Ut;He.current.get(gt)!==Bt&&(He.current.set(gt,Bt),wt=!0)}}),wt&&_e(function(vt){return vt+1})};if(Le)et();else{it.current+=1;var Ne=it.current;Promise.resolve().then(function(){Ne===it.current&&et()})}}function ye(Le,et){var Ne=Ke(Le),yt=Pe.current.get(Ne);et?(Pe.current.set(Ne,et),xe()):Pe.current.delete(Ne),!yt!=!et&&(et?Ie==null||Ie(Le):Ye==null||Ye(Le))}return(0,x.useEffect)(function(){return Te},[]),[ye,xe,He.current,nt]}var Ze=14/15;function Xe(Ke,Ie,Ye){var ft=(0,x.useRef)(!1),mt=(0,x.useRef)(0),nt=(0,x.useRef)(0),_e=(0,x.useRef)(null),Pe=(0,x.useRef)(null),He,it=function(Le){if(ft.current){var et=Math.ceil(Le.touches[0].pageX),Ne=Math.ceil(Le.touches[0].pageY),yt=mt.current-et,wt=nt.current-Ne,vt=Math.abs(yt)>Math.abs(wt);vt?mt.current=et:nt.current=Ne;var gt=Ye(vt,vt?yt:wt,!1,Le);gt&&Le.preventDefault(),clearInterval(Pe.current),gt&&(Pe.current=setInterval(function(){vt?yt*=Ze:wt*=Ze;var ht=Math.floor(vt?yt:wt);(!Ye(vt,ht,!0)||Math.abs(ht)<=.1)&&clearInterval(Pe.current)},16))}},Te=function(){ft.current=!1,He()},xe=function(Le){He(),Le.touches.length===1&&!ft.current&&(ft.current=!0,mt.current=Math.ceil(Le.touches[0].pageX),nt.current=Math.ceil(Le.touches[0].pageY),_e.current=Le.target,_e.current.addEventListener("touchmove",it,{passive:!1}),_e.current.addEventListener("touchend",Te,{passive:!0}))};He=function(){_e.current&&(_e.current.removeEventListener("touchmove",it),_e.current.removeEventListener("touchend",Te))},(0,se.Z)(function(){return Ke&&Ie.current.addEventListener("touchstart",xe,{passive:!0}),function(){var ye;(ye=Ie.current)===null||ye===void 0||ye.removeEventListener("touchstart",xe),He(),clearInterval(Pe.current)}},[Ke])}function $e(Ke){return Math.floor(Math.pow(Ke,.5))}function lt(Ke,Ie){var Ye="touches"in Ke?Ke.touches[0]:Ke;return Ye[Ie?"pageX":"pageY"]-window[Ie?"scrollX":"scrollY"]}function Re(Ke,Ie,Ye){x.useEffect(function(){var ft=Ie.current;if(Ke&&ft){var mt=!1,nt,_e,Pe=function(){pe.Z.cancel(nt)},He=function ye(){Pe(),nt=(0,pe.Z)(function(){Ye(_e),ye()})},it=function(){mt=!1,Pe()},Te=function(Le){if(!(Le.target.draggable||Le.button!==0)){var et=Le;et._virtualHandled||(et._virtualHandled=!0,mt=!0)}},xe=function(Le){if(mt){var et=lt(Le,!1),Ne=ft.getBoundingClientRect(),yt=Ne.top,wt=Ne.bottom;if(et<=yt){var vt=yt-et;_e=-$e(vt),He()}else if(et>=wt){var gt=et-wt;_e=$e(gt),He()}else Pe()}};return ft.addEventListener("mousedown",Te),ft.ownerDocument.addEventListener("mouseup",it),ft.ownerDocument.addEventListener("mousemove",xe),ft.ownerDocument.addEventListener("dragend",it),function(){ft.removeEventListener("mousedown",Te),ft.ownerDocument.removeEventListener("mouseup",it),ft.ownerDocument.removeEventListener("mousemove",xe),ft.ownerDocument.removeEventListener("dragend",it),Pe()}}},[Ke])}var We=10;function rt(Ke,Ie,Ye,ft,mt,nt,_e,Pe){var He=x.useRef(),it=x.useState(null),Te=(0,ge.Z)(it,2),xe=Te[0],ye=Te[1];return(0,se.Z)(function(){if(xe&&xe.times<We){if(!Ke.current){ye(function(sr){return(0,y.Z)({},sr)});return}nt();var Le=xe.targetAlign,et=xe.originAlign,Ne=xe.index,yt=xe.offset,wt=Ke.current.clientHeight,vt=!1,gt=Le,ht=null;if(wt){for(var xt=Le||et,St=0,Ct=0,jt=0,Ut=Math.min(Ie.length-1,Ne),Bt=0;Bt<=Ut;Bt+=1){var qt=mt(Ie[Bt]);Ct=St;var xr=Ye.get(qt);jt=Ct+(xr===void 0?ft:xr),St=jt}for(var pr=xt==="top"?yt:wt-yt,Lt=Ut;Lt>=0;Lt-=1){var Vt=mt(Ie[Lt]),ar=Ye.get(Vt);if(ar===void 0){vt=!0;break}if(pr-=ar,pr<=0)break}switch(xt){case"top":ht=Ct-yt;break;case"bottom":ht=jt-wt+yt;break;default:{var fr=Ke.current.scrollTop,Jt=fr+wt;Ct<fr?gt="top":jt>Jt&&(gt="bottom")}}ht!==null&&_e(ht),ht!==xe.lastTop&&(vt=!0)}vt&&ye((0,y.Z)((0,y.Z)({},xe),{},{times:xe.times+1,targetAlign:gt,lastTop:ht}))}},[xe,Ke.current]),function(Le){if(Le==null){Pe();return}if(pe.Z.cancel(He.current),typeof Le=="number")_e(Le);else if(Le&&(0,Et.Z)(Le)==="object"){var et,Ne=Le.align;"index"in Le?et=Le.index:et=Ie.findIndex(function(vt){return mt(vt)===Le.key});var yt=Le.offset,wt=yt===void 0?0:yt;ye({times:0,index:et,offset:wt,originAlign:Ne})}}}var ot=x.forwardRef(function(Ke,Ie){var Ye=Ke.prefixCls,ft=Ke.rtl,mt=Ke.scrollOffset,nt=Ke.scrollRange,_e=Ke.onStartMove,Pe=Ke.onStopMove,He=Ke.onScroll,it=Ke.horizontal,Te=Ke.spinSize,xe=Ke.containerSize,ye=Ke.style,Le=Ke.thumbStyle,et=Ke.showScrollBar,Ne=x.useState(!1),yt=(0,ge.Z)(Ne,2),wt=yt[0],vt=yt[1],gt=x.useState(null),ht=(0,ge.Z)(gt,2),xt=ht[0],St=ht[1],Ct=x.useState(null),jt=(0,ge.Z)(Ct,2),Ut=jt[0],Bt=jt[1],qt=!ft,xr=x.useRef(),pr=x.useRef(),Lt=x.useState(et),Vt=(0,ge.Z)(Lt,2),ar=Vt[0],fr=Vt[1],Jt=x.useRef(),sr=function(){et===!0||et===!1||(clearTimeout(Jt.current),fr(!0),Jt.current=setTimeout(function(){fr(!1)},3e3))},Dr=nt-xe||0,Xt=xe-Te||0,zt=x.useMemo(function(){if(mt===0||Dr===0)return 0;var Tr=mt/Dr;return Tr*Xt},[mt,Dr,Xt]),Zt=function(Mr){Mr.stopPropagation(),Mr.preventDefault()},Yt=x.useRef({top:zt,dragging:wt,pageY:xt,startTop:Ut});Yt.current={top:zt,dragging:wt,pageY:xt,startTop:Ut};var Pt=function(Mr){vt(!0),St(lt(Mr,it)),Bt(Yt.current.top),_e(),Mr.stopPropagation(),Mr.preventDefault()};x.useEffect(function(){var Tr=function(er){er.preventDefault()},Mr=xr.current,Cr=pr.current;return Mr.addEventListener("touchstart",Tr,{passive:!1}),Cr.addEventListener("touchstart",Pt,{passive:!1}),function(){Mr.removeEventListener("touchstart",Tr),Cr.removeEventListener("touchstart",Pt)}},[]);var Wt=x.useRef();Wt.current=Dr;var $t=x.useRef();$t.current=Xt,x.useEffect(function(){if(wt){var Tr,Mr=function(er){var Mt=Yt.current,rr=Mt.dragging,gr=Mt.pageY,Lr=Mt.startTop;pe.Z.cancel(Tr);var At=xr.current.getBoundingClientRect(),Tt=xe/(it?At.width:At.height);if(rr){var nr=(lt(er,it)-gr)*Tt,Kt=Lr;!qt&&it?Kt-=nr:Kt+=nr;var Dt=Wt.current,Qt=$t.current,tr=Qt?Kt/Qt:0,yr=Math.ceil(tr*Dt);yr=Math.max(yr,0),yr=Math.min(yr,Dt),Tr=(0,pe.Z)(function(){He(yr,it)})}},Cr=function(){vt(!1),Pe()};return window.addEventListener("mousemove",Mr,{passive:!0}),window.addEventListener("touchmove",Mr,{passive:!0}),window.addEventListener("mouseup",Cr,{passive:!0}),window.addEventListener("touchend",Cr,{passive:!0}),function(){window.removeEventListener("mousemove",Mr),window.removeEventListener("touchmove",Mr),window.removeEventListener("mouseup",Cr),window.removeEventListener("touchend",Cr),pe.Z.cancel(Tr)}}},[wt]),x.useEffect(function(){return sr(),function(){clearTimeout(Jt.current)}},[mt]),x.useImperativeHandle(Ie,function(){return{delayHidden:sr}});var cr="".concat(Ye,"-scrollbar"),Ht={position:"absolute",visibility:ar?null:"hidden"},Er={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return it?(Object.assign(Ht,{height:8,left:0,right:0,bottom:0}),Object.assign(Er,(0,we.Z)({height:"100%",width:Te},qt?"left":"right",zt))):(Object.assign(Ht,(0,we.Z)({width:8,top:0,bottom:0},qt?"right":"left",0)),Object.assign(Er,{width:"100%",height:Te,top:zt})),x.createElement("div",{ref:xr,className:ie()(cr,(0,we.Z)((0,we.Z)((0,we.Z)({},"".concat(cr,"-horizontal"),it),"".concat(cr,"-vertical"),!it),"".concat(cr,"-visible"),ar)),style:(0,y.Z)((0,y.Z)({},Ht),ye),onMouseDown:Zt,onMouseMove:sr},x.createElement("div",{ref:pr,className:ie()("".concat(cr,"-thumb"),(0,we.Z)({},"".concat(cr,"-thumb-moving"),wt)),style:(0,y.Z)((0,y.Z)({},Er),Le),onMouseDown:Pt}))}),at=ot,Je=20;function Qe(){var Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ye=Ke/Ie*Ke;return isNaN(Ye)&&(Ye=0),Ye=Math.max(Ye,Je),Math.floor(Ye)}var Ve=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ct=[],tt={overflowY:"auto",overflowAnchor:"none"};function ut(Ke,Ie){var Ye=Ke.prefixCls,ft=Ye===void 0?"rc-virtual-list":Ye,mt=Ke.className,nt=Ke.height,_e=Ke.itemHeight,Pe=Ke.fullHeight,He=Pe===void 0?!0:Pe,it=Ke.style,Te=Ke.data,xe=Ke.children,ye=Ke.itemKey,Le=Ke.virtual,et=Ke.direction,Ne=Ke.scrollWidth,yt=Ke.component,wt=yt===void 0?"div":yt,vt=Ke.onScroll,gt=Ke.onVirtualScroll,ht=Ke.onVisibleChange,xt=Ke.innerProps,St=Ke.extraRender,Ct=Ke.styles,jt=Ke.showScrollBar,Ut=jt===void 0?"optional":jt,Bt=(0,ee.Z)(Ke,Ve),qt=x.useCallback(function(hr){return typeof ye=="function"?ye(hr):hr==null?void 0:hr[ye]},[ye]),xr=je(qt,null,null),pr=(0,ge.Z)(xr,4),Lt=pr[0],Vt=pr[1],ar=pr[2],fr=pr[3],Jt=!!(Le!==!1&&nt&&_e),sr=x.useMemo(function(){return Object.values(ar.maps).reduce(function(hr,Ar){return hr+Ar},0)},[ar.id,ar.maps]),Dr=Jt&&Te&&(Math.max(_e*Te.length,sr)>nt||!!Ne),Xt=et==="rtl",zt=ie()(ft,(0,we.Z)({},"".concat(ft,"-rtl"),Xt),mt),Zt=Te||ct,Yt=(0,x.useRef)(),Pt=(0,x.useRef)(),Wt=(0,x.useRef)(),$t=(0,x.useState)(0),cr=(0,ge.Z)($t,2),Ht=cr[0],Er=cr[1],Tr=(0,x.useState)(0),Mr=(0,ge.Z)(Tr,2),Cr=Mr[0],dr=Mr[1],er=(0,x.useState)(!1),Mt=(0,ge.Z)(er,2),rr=Mt[0],gr=Mt[1],Lr=function(){gr(!0)},At=function(){gr(!1)},Tt={getKey:qt};function nr(hr){Er(function(Ar){var Kr;typeof hr=="function"?Kr=hr(Ar):Kr=hr;var Br=_n(Kr);return Yt.current.scrollTop=Br,Br})}var Kt=(0,x.useRef)({start:0,end:Zt.length}),Dt=(0,x.useRef)(),Qt=ce(Zt,qt),tr=(0,ge.Z)(Qt,1),yr=tr[0];Dt.current=yr;var jr=x.useMemo(function(){if(!Jt)return{scrollHeight:void 0,start:0,end:Zt.length-1,offset:void 0};if(!Dr){var hr;return{scrollHeight:((hr=Pt.current)===null||hr===void 0?void 0:hr.offsetHeight)||0,start:0,end:Zt.length-1,offset:void 0}}for(var Ar=0,Kr,Br,rn,Cn=Zt.length,_r=0;_r<Cn;_r+=1){var vr=Zt[_r],Fr=qt(vr),Wr=ar.get(Fr),nn=Ar+(Wr===void 0?_e:Wr);nn>=Ht&&Kr===void 0&&(Kr=_r,Br=Ar),nn>Ht+nt&&rn===void 0&&(rn=_r),Ar=nn}return Kr===void 0&&(Kr=0,Br=0,rn=Math.ceil(nt/_e)),rn===void 0&&(rn=Zt.length-1),rn=Math.min(rn+1,Zt.length-1),{scrollHeight:Ar,start:Kr,end:rn,offset:Br}},[Dr,Jt,Ht,Zt,fr,nt]),or=jr.scrollHeight,wr=jr.start,Gt=jr.end,Rt=jr.offset;Kt.current.start=wr,Kt.current.end=Gt,x.useLayoutEffect(function(){var hr=ar.getRecord();if(hr.size===1){var Ar=Array.from(hr.keys())[0],Kr=hr.get(Ar),Br=Zt[wr];if(Br&&Kr===void 0){var rn=qt(Br);if(rn===Ar){var Cn=ar.get(Ar),_r=Cn-_e;nr(function(vr){return vr+_r})}}}ar.resetRecord()},[or]);var lr=x.useState({width:0,height:nt}),ur=(0,ge.Z)(lr,2),kr=ur[0],Nr=ur[1],$r=function(Ar){Nr({width:Ar.offsetWidth,height:Ar.offsetHeight})},ln=(0,x.useRef)(),Zr=(0,x.useRef)(),Sr=x.useMemo(function(){return Qe(kr.width,Ne)},[kr.width,Ne]),Gr=x.useMemo(function(){return Qe(kr.height,or)},[kr.height,or]),Ir=or-nt,fn=(0,x.useRef)(Ir);fn.current=Ir;function _n(hr){var Ar=hr;return Number.isNaN(fn.current)||(Ar=Math.min(Ar,fn.current)),Ar=Math.max(Ar,0),Ar}var yn=Ht<=0,Mn=Ht>=Ir,On=Cr<=0,kn=Cr>=Ne,wn=De(yn,Mn,On,kn),Rn=function(){return{x:Xt?-Cr:Cr,y:Ht}},mr=(0,x.useRef)(Rn()),Rr=(0,z.zX)(function(hr){if(gt){var Ar=(0,y.Z)((0,y.Z)({},Rn()),hr);(mr.current.x!==Ar.x||mr.current.y!==Ar.y)&&(gt(Ar),mr.current=Ar)}});function Qr(hr,Ar){var Kr=hr;Ar?((0,re.flushSync)(function(){dr(Kr)}),Rr()):nr(Kr)}function Yr(hr){var Ar=hr.currentTarget.scrollTop;Ar!==Ht&&nr(Ar),vt==null||vt(hr),Rr()}var Jr=function(Ar){var Kr=Ar,Br=Ne?Ne-kr.width:0;return Kr=Math.max(Kr,0),Kr=Math.min(Kr,Br),Kr},zr=(0,z.zX)(function(hr,Ar){Ar?((0,re.flushSync)(function(){dr(function(Kr){var Br=Kr+(Xt?-hr:hr);return Jr(Br)})}),Rr()):nr(function(Kr){var Br=Kr+hr;return Br})}),Or=Ae(Jt,yn,Mn,On,kn,!!Ne,zr),un=(0,ge.Z)(Or,2),xn=un[0],Bn=un[1];Xe(Jt,Yt,function(hr,Ar,Kr,Br){var rn=Br;return wn(hr,Ar,Kr)?!1:!rn||!rn._virtualHandled?(rn&&(rn._virtualHandled=!0),xn({preventDefault:function(){},deltaX:hr?Ar:0,deltaY:hr?0:Ar}),!0):!1}),Re(Dr,Yt,function(hr){nr(function(Ar){return Ar+hr})}),(0,se.Z)(function(){function hr(Kr){var Br=yn&&Kr.detail<0,rn=Mn&&Kr.detail>0;Jt&&!Br&&!rn&&Kr.preventDefault()}var Ar=Yt.current;return Ar.addEventListener("wheel",xn,{passive:!1}),Ar.addEventListener("DOMMouseScroll",Bn,{passive:!0}),Ar.addEventListener("MozMousePixelScroll",hr,{passive:!1}),function(){Ar.removeEventListener("wheel",xn),Ar.removeEventListener("DOMMouseScroll",Bn),Ar.removeEventListener("MozMousePixelScroll",hr)}},[Jt,yn,Mn]),(0,se.Z)(function(){if(Ne){var hr=Jr(Cr);dr(hr),Rr({x:hr})}},[kr.width,Ne]);var en=function(){var Ar,Kr;(Ar=ln.current)===null||Ar===void 0||Ar.delayHidden(),(Kr=Zr.current)===null||Kr===void 0||Kr.delayHidden()},mn=rt(Yt,Zt,ar,_e,qt,function(){return Vt(!0)},nr,en);x.useImperativeHandle(Ie,function(){return{nativeElement:Wt.current,getScrollInfo:Rn,scrollTo:function(Ar){function Kr(Br){return Br&&(0,Et.Z)(Br)==="object"&&("left"in Br||"top"in Br)}Kr(Ar)?(Ar.left!==void 0&&dr(Jr(Ar.left)),mn(Ar.top)):mn(Ar)}}}),(0,se.Z)(function(){if(ht){var hr=Zt.slice(wr,Gt+1);ht(hr,Zt)}},[wr,Gt,Zt]);var bn=ve(Zt,qt,ar,_e),hn=St==null?void 0:St({start:wr,end:Gt,virtual:Dr,offsetX:Cr,offsetY:Rt,rtl:Xt,getSize:bn}),qr=fe(Zt,wr,Gt,Ne,Cr,Lt,xe,Tt),Sn=null;nt&&(Sn=(0,y.Z)((0,we.Z)({},He?"height":"maxHeight",nt),tt),Jt&&(Sn.overflowY="hidden",Ne&&(Sn.overflowX="hidden"),rr&&(Sn.pointerEvents="none")));var on={};return Xt&&(on.dir="rtl"),x.createElement("div",(0,Ue.Z)({ref:Wt,style:(0,y.Z)((0,y.Z)({},it),{},{position:"relative"}),className:zt},on,Bt),x.createElement(le.Z,{onResize:$r},x.createElement(wt,{className:"".concat(ft,"-holder"),style:Sn,ref:Yt,onScroll:Yr,onMouseEnter:en},x.createElement(ae,{prefixCls:ft,height:or,offsetX:Cr,offsetY:Rt,scrollWidth:Ne,onInnerResize:Vt,ref:Pt,innerProps:xt,rtl:Xt,extra:hn},qr))),Dr&&or>nt&&x.createElement(at,{ref:ln,prefixCls:ft,scrollOffset:Ht,scrollRange:or,rtl:Xt,onScroll:Qr,onStartMove:Lr,onStopMove:At,spinSize:Gr,containerSize:kr.height,style:Ct==null?void 0:Ct.verticalScrollBar,thumbStyle:Ct==null?void 0:Ct.verticalScrollBarThumb,showScrollBar:Ut}),Dr&&Ne>kr.width&&x.createElement(at,{ref:Zr,prefixCls:ft,scrollOffset:Cr,scrollRange:Ne,rtl:Xt,onScroll:Qr,onStartMove:Lr,onStopMove:At,spinSize:Sr,containerSize:kr.width,horizontal:!0,style:Ct==null?void 0:Ct.horizontalScrollBar,thumbStyle:Ct==null?void 0:Ct.horizontalScrollBarThumb,showScrollBar:Ut}))}var st=x.forwardRef(ut);st.displayName="List";var ze=st,Be=ze},7062:function(Nt,Ot,Ge){var Ue=Ge(19637),Et=Ge(97573),y=[Ge(96627)];Nt.exports=Ue.createStore(Et,y)},96627:function(Nt,Ot,Ge){Nt.exports=Ue;function Ue(){return Ge(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(Nt){return Nt<10?"0"+Nt:Nt}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(Nt){return rx_escapable.lastIndex=0,rx_escapable.test(Nt)?'"'+Nt.replace(rx_escapable,function(Ot){var Ge=meta[Ot];return typeof Ge=="string"?Ge:"\\u"+("0000"+Ot.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Nt+'"'}function str(Nt,Ot){var Ge,Ue,Et,y,we=gap,ge,ee=Ot[Nt];switch(ee&&typeof ee=="object"&&typeof ee.toJSON=="function"&&(ee=ee.toJSON(Nt)),typeof rep=="function"&&(ee=rep.call(Ot,Nt,ee)),typeof ee){case"string":return quote(ee);case"number":return isFinite(ee)?String(ee):"null";case"boolean":case"null":return String(ee);case"object":if(!ee)return"null";if(gap+=indent,ge=[],Object.prototype.toString.apply(ee)==="[object Array]"){for(y=ee.length,Ge=0;Ge<y;Ge+=1)ge[Ge]=str(Ge,ee)||"null";return Et=ge.length===0?"[]":gap?`[
`+gap+ge.join(`,
`+gap)+`
`+we+"]":"["+ge.join(",")+"]",gap=we,Et}if(rep&&typeof rep=="object")for(y=rep.length,Ge=0;Ge<y;Ge+=1)typeof rep[Ge]=="string"&&(Ue=rep[Ge],Et=str(Ue,ee),Et&&ge.push(quote(Ue)+(gap?": ":":")+Et));else for(Ue in ee)Object.prototype.hasOwnProperty.call(ee,Ue)&&(Et=str(Ue,ee),Et&&ge.push(quote(Ue)+(gap?": ":":")+Et));return Et=ge.length===0?"{}":gap?`{
`+gap+ge.join(`,
`+gap)+`
`+we+"}":"{"+ge.join(",")+"}",gap=we,Et}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Nt,Ot,Ge){var Ue;if(gap="",indent="",typeof Ge=="number")for(Ue=0;Ue<Ge;Ue+=1)indent+=" ";else typeof Ge=="string"&&(indent=Ge);if(rep=Ot,Ot&&typeof Ot!="function"&&(typeof Ot!="object"||typeof Ot.length!="number"))throw new Error("JSON.stringify");return str("",{"":Nt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Nt,Ot){var Ge,Ue,Et=Nt[Ot];if(Et&&typeof Et=="object")for(Ge in Et)Object.prototype.hasOwnProperty.call(Et,Ge)&&(Ue=walk(Et,Ge),Ue!==void 0?Et[Ge]=Ue:delete Et[Ge]);return reviver.call(Nt,Ot,Et)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Nt){return"\\u"+("0000"+Nt.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(Nt,Ot,Ge){var Ue=Ge(67039),Et=Ue.slice,y=Ue.pluck,we=Ue.each,ge=Ue.bind,ee=Ue.create,E=Ue.isList,ie=Ue.isFunction,le=Ue.isObject;Nt.exports={createStore:x};var z={version:"2.0.12",enabled:!1,get:function(re,te){var ae=this.storage.read(this._namespacePrefix+re);return this._deserialize(ae,te)},set:function(re,te){return te===void 0?this.remove(re):(this.storage.write(this._namespacePrefix+re,this._serialize(te)),te)},remove:function(re){this.storage.remove(this._namespacePrefix+re)},each:function(re){var te=this;this.storage.each(function(ae,ue){re.call(te,te._deserialize(ae),(ue||"").replace(te._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(re){return this._namespacePrefix=="__storejs_"+re+"_"},createStore:function(){return x.apply(this,arguments)},addPlugin:function(re){this._addPlugin(re)},namespace:function(re){return x(this.storage,this.plugins,re)}};function se(){var re=typeof console=="undefined"?null:console;if(re){var te=re.warn?re.warn:re.log;te.apply(re,arguments)}}function x(re,te,ae){ae||(ae=""),re&&!E(re)&&(re=[re]),te&&!E(te)&&(te=[te]);var ue=ae?"__storejs_"+ae+"_":"",fe=ae?new RegExp("^"+ue):null,de=/^[a-zA-Z0-9_\-]*$/;if(!de.test(ae))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var he={_namespacePrefix:ue,_namespaceRegexp:fe,_testStorage:function(pe){try{var Ce="__storejs__test__";pe.write(Ce,Ce);var ke=pe.read(Ce)===Ce;return pe.remove(Ce),ke}catch(De){return!1}},_assignPluginFnProp:function(pe,Ce){var ke=this[Ce];this[Ce]=function(){var Ae=Et(arguments,0),ve=this;function be(){if(ke)return we(arguments,function(Oe,Me){Ae[Me]=Oe}),ke.apply(ve,Ae)}var Ee=[be].concat(Ae);return pe.apply(ve,Ee)}},_serialize:function(pe){return JSON.stringify(pe)},_deserialize:function(pe,Ce){if(!pe)return Ce;var ke="";try{ke=JSON.parse(pe)}catch(De){ke=pe}return ke!==void 0?ke:Ce},_addStorage:function(pe){this.enabled||this._testStorage(pe)&&(this.storage=pe,this.enabled=!0)},_addPlugin:function(pe){var Ce=this;if(E(pe)){we(pe,function(Ae){Ce._addPlugin(Ae)});return}var ke=y(this.plugins,function(Ae){return pe===Ae});if(!ke){if(this.plugins.push(pe),!ie(pe))throw new Error("Plugins must be function values that return objects");var De=pe.call(this);if(!le(De))throw new Error("Plugins must return an object of function properties");we(De,function(Ae,ve){if(!ie(Ae))throw new Error("Bad plugin property: "+ve+" from plugin "+pe.name+". Plugins should only return functions.");Ce._assignPluginFnProp(Ae,ve)})}},addStorage:function(pe){se("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(pe)}},ce=ee(he,z,{plugins:[]});return ce.raw={},we(ce,function(pe,Ce){ie(pe)&&(ce.raw[Ce]=ge(ce,pe))}),we(re,function(pe){ce._addStorage(pe)}),we(te,function(pe){ce._addPlugin(pe)}),ce}},67039:function(Nt,Ot,Ge){var Ue=ge(),Et=ee(),y=E(),we=typeof window!="undefined"?window:Ge.g;Nt.exports={assign:Ue,create:Et,trim:y,bind:ie,slice:le,each:z,map:se,pluck:x,isList:re,isFunction:te,isObject:ae,Global:we};function ge(){return Object.assign?Object.assign:function(fe,de,he,ce){for(var pe=1;pe<arguments.length;pe++)z(Object(arguments[pe]),function(Ce,ke){fe[ke]=Ce});return fe}}function ee(){if(Object.create)return function(de,he,ce,pe){var Ce=le(arguments,1);return Ue.apply(this,[Object.create(de)].concat(Ce))};{let fe=function(){};var ue=fe;return function(he,ce,pe,Ce){var ke=le(arguments,1);return fe.prototype=he,Ue.apply(this,[new fe].concat(ke))}}}function E(){return String.prototype.trim?function(fe){return String.prototype.trim.call(fe)}:function(fe){return fe.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ie(ue,fe){return function(){return fe.apply(ue,Array.prototype.slice.call(arguments,0))}}function le(ue,fe){return Array.prototype.slice.call(ue,fe||0)}function z(ue,fe){x(ue,function(de,he){return fe(de,he),!1})}function se(ue,fe){var de=re(ue)?[]:{};return x(ue,function(he,ce){return de[ce]=fe(he,ce),!1}),de}function x(ue,fe){if(re(ue)){for(var de=0;de<ue.length;de++)if(fe(ue[de],de))return ue[de]}else for(var he in ue)if(ue.hasOwnProperty(he)&&fe(ue[he],he))return ue[he]}function re(ue){return ue!=null&&typeof ue!="function"&&typeof ue.length=="number"}function te(ue){return ue&&{}.toString.call(ue)==="[object Function]"}function ae(ue){return ue&&{}.toString.call(ue)==="[object Object]"}},97573:function(Nt,Ot,Ge){Nt.exports=[Ge(52496),Ge(16436),Ge(76673),Ge(35701),Ge(65578),Ge(65300)]},35701:function(Nt,Ot,Ge){var Ue=Ge(67039),Et=Ue.Global,y=Ue.trim;Nt.exports={name:"cookieStorage",read:ge,write:E,each:ee,remove:ie,clearAll:le};var we=Et.document;function ge(se){if(!se||!z(se))return null;var x="(?:^|.*;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(we.cookie.replace(new RegExp(x),"$1"))}function ee(se){for(var x=we.cookie.split(/; ?/g),re=x.length-1;re>=0;re--)if(y(x[re])){var te=x[re].split("="),ae=unescape(te[0]),ue=unescape(te[1]);se(ue,ae)}}function E(se,x){se&&(we.cookie=escape(se)+"="+escape(x)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function ie(se){!se||!z(se)||(we.cookie=escape(se)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function le(){ee(function(se,x){ie(x)})}function z(se){return new RegExp("(?:^|;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(we.cookie)}},52496:function(Nt,Ot,Ge){var Ue=Ge(67039),Et=Ue.Global;Nt.exports={name:"localStorage",read:we,write:ge,each:ee,remove:E,clearAll:ie};function y(){return Et.localStorage}function we(le){return y().getItem(le)}function ge(le,z){return y().setItem(le,z)}function ee(le){for(var z=y().length-1;z>=0;z--){var se=y().key(z);le(we(se),se)}}function E(le){return y().removeItem(le)}function ie(){return y().clear()}},65300:function(Nt){Nt.exports={name:"memoryStorage",read:Ge,write:Ue,each:Et,remove:y,clearAll:we};var Ot={};function Ge(ge){return Ot[ge]}function Ue(ge,ee){Ot[ge]=ee}function Et(ge){for(var ee in Ot)Ot.hasOwnProperty(ee)&&ge(Ot[ee],ee)}function y(ge){delete Ot[ge]}function we(ge){Ot={}}},16436:function(Nt,Ot,Ge){var Ue=Ge(67039),Et=Ue.Global;Nt.exports={name:"oldFF-globalStorage",read:we,write:ge,each:ee,remove:E,clearAll:ie};var y=Et.globalStorage;function we(le){return y[le]}function ge(le,z){y[le]=z}function ee(le){for(var z=y.length-1;z>=0;z--){var se=y.key(z);le(y[se],se)}}function E(le){return y.removeItem(le)}function ie(){ee(function(le,z){delete y[le]})}},76673:function(Nt,Ot,Ge){var Ue=Ge(67039),Et=Ue.Global;Nt.exports={name:"oldIE-userDataStorage",write:E,read:ie,each:le,remove:z,clearAll:se};var y="storejs",we=Et.document,ge=te(),ee=(Et.navigator?Et.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function E(ae,ue){if(!ee){var fe=re(ae);ge(function(de){de.setAttribute(fe,ue),de.save(y)})}}function ie(ae){if(!ee){var ue=re(ae),fe=null;return ge(function(de){fe=de.getAttribute(ue)}),fe}}function le(ae){ge(function(ue){for(var fe=ue.XMLDocument.documentElement.attributes,de=fe.length-1;de>=0;de--){var he=fe[de];ae(ue.getAttribute(he.name),he.name)}})}function z(ae){var ue=re(ae);ge(function(fe){fe.removeAttribute(ue),fe.save(y)})}function se(){ge(function(ae){var ue=ae.XMLDocument.documentElement.attributes;ae.load(y);for(var fe=ue.length-1;fe>=0;fe--)ae.removeAttribute(ue[fe].name);ae.save(y)})}var x=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function re(ae){return ae.replace(/^\d/,"___$&").replace(x,"___")}function te(){if(!we||!we.documentElement||!we.documentElement.addBehavior)return null;var ae="script",ue,fe,de;try{fe=new ActiveXObject("htmlfile"),fe.open(),fe.write("<"+ae+">document.w=window</"+ae+'><iframe src="/favicon.ico"></iframe>'),fe.close(),ue=fe.w.frames[0].document,de=ue.createElement("div")}catch(he){de=we.createElement("div"),ue=we.body}return function(he){var ce=[].slice.call(arguments,0);ce.unshift(de),ue.appendChild(de),de.addBehavior("#default#userData"),de.load(y),he.apply(this,ce),ue.removeChild(de)}}},65578:function(Nt,Ot,Ge){var Ue=Ge(67039),Et=Ue.Global;Nt.exports={name:"sessionStorage",read:we,write:ge,each:ee,remove:E,clearAll:ie};function y(){return Et.sessionStorage}function we(le){return y().getItem(le)}function ge(le,z){return y().setItem(le,z)}function ee(le){for(var z=y().length-1;z>=0;z--){var se=y().key(z);le(we(se),se)}}function E(le){return y().removeItem(le)}function ie(){return y().clear()}},93314:function(Nt){"use strict";Nt.exports="data:image/png;base64,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"},96908:function(Nt){"use strict";Nt.exports="data:image/png;base64,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"},57177:function(Nt){"use strict";Nt.exports="data:image/png;base64,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"},81378:function(Nt){"use strict";Nt.exports="data:image/png;base64,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"},16722:function(Nt,Ot,Ge){"use strict";Ge.d(Ot,{Z:function(){return ie}});const Ue=le=>typeof le=="object"&&le!=null&&le.nodeType===1,Et=(le,z)=>(!z||le!=="hidden")&&le!=="visible"&&le!=="clip",y=(le,z)=>{if(le.clientHeight<le.scrollHeight||le.clientWidth<le.scrollWidth){const se=getComputedStyle(le,null);return Et(se.overflowY,z)||Et(se.overflowX,z)||(x=>{const re=(te=>{if(!te.ownerDocument||!te.ownerDocument.defaultView)return null;try{return te.ownerDocument.defaultView.frameElement}catch(ae){return null}})(x);return!!re&&(re.clientHeight<x.scrollHeight||re.clientWidth<x.scrollWidth)})(le)}return!1},we=(le,z,se,x,re,te,ae,ue)=>te<le&&ae>z||te>le&&ae<z?0:te<=le&&ue<=se||ae>=z&&ue>=se?te-le-x:ae>z&&ue<se||te<le&&ue>se?ae-z+re:0,ge=le=>{const z=le.parentElement;return z==null?le.getRootNode().host||null:z},ee=(le,z)=>{var se,x,re,te;if(typeof document=="undefined")return[];const{scrollMode:ae,block:ue,inline:fe,boundary:de,skipOverflowHiddenElements:he}=z,ce=typeof de=="function"?de:at=>at!==de;if(!Ue(le))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Ce=[];let ke=le;for(;Ue(ke)&&ce(ke);){if(ke=ge(ke),ke===pe){Ce.push(ke);break}ke!=null&&ke===document.body&&y(ke)&&!y(document.documentElement)||ke!=null&&y(ke,he)&&Ce.push(ke)}const De=(x=(se=window.visualViewport)==null?void 0:se.width)!=null?x:innerWidth,Ae=(te=(re=window.visualViewport)==null?void 0:re.height)!=null?te:innerHeight,{scrollX:ve,scrollY:be}=window,{height:Ee,width:Oe,top:Me,right:Se,bottom:je,left:Ze}=le.getBoundingClientRect(),{top:Xe,right:$e,bottom:lt,left:Re}=(at=>{const Je=window.getComputedStyle(at);return{top:parseFloat(Je.scrollMarginTop)||0,right:parseFloat(Je.scrollMarginRight)||0,bottom:parseFloat(Je.scrollMarginBottom)||0,left:parseFloat(Je.scrollMarginLeft)||0}})(le);let We=ue==="start"||ue==="nearest"?Me-Xe:ue==="end"?je+lt:Me+Ee/2-Xe+lt,rt=fe==="center"?Ze+Oe/2-Re+$e:fe==="end"?Se+$e:Ze-Re;const ot=[];for(let at=0;at<Ce.length;at++){const Je=Ce[at],{height:Qe,width:Ve,top:ct,right:tt,bottom:ut,left:st}=Je.getBoundingClientRect();if(ae==="if-needed"&&Me>=0&&Ze>=0&&je<=Ae&&Se<=De&&(Je===pe&&!y(Je)||Me>=ct&&je<=ut&&Ze>=st&&Se<=tt))return ot;const ze=getComputedStyle(Je),Be=parseInt(ze.borderLeftWidth,10),Ke=parseInt(ze.borderTopWidth,10),Ie=parseInt(ze.borderRightWidth,10),Ye=parseInt(ze.borderBottomWidth,10);let ft=0,mt=0;const nt="offsetWidth"in Je?Je.offsetWidth-Je.clientWidth-Be-Ie:0,_e="offsetHeight"in Je?Je.offsetHeight-Je.clientHeight-Ke-Ye:0,Pe="offsetWidth"in Je?Je.offsetWidth===0?0:Ve/Je.offsetWidth:0,He="offsetHeight"in Je?Je.offsetHeight===0?0:Qe/Je.offsetHeight:0;if(pe===Je)ft=ue==="start"?We:ue==="end"?We-Ae:ue==="nearest"?we(be,be+Ae,Ae,Ke,Ye,be+We,be+We+Ee,Ee):We-Ae/2,mt=fe==="start"?rt:fe==="center"?rt-De/2:fe==="end"?rt-De:we(ve,ve+De,De,Be,Ie,ve+rt,ve+rt+Oe,Oe),ft=Math.max(0,ft+be),mt=Math.max(0,mt+ve);else{ft=ue==="start"?We-ct-Ke:ue==="end"?We-ut+Ye+_e:ue==="nearest"?we(ct,ut,Qe,Ke,Ye+_e,We,We+Ee,Ee):We-(ct+Qe/2)+_e/2,mt=fe==="start"?rt-st-Be:fe==="center"?rt-(st+Ve/2)+nt/2:fe==="end"?rt-tt+Ie+nt:we(st,tt,Ve,Be,Ie+nt,rt,rt+Oe,Oe);const{scrollLeft:it,scrollTop:Te}=Je;ft=He===0?0:Math.max(0,Math.min(Te+ft/He,Je.scrollHeight-Qe/He+_e)),mt=Pe===0?0:Math.max(0,Math.min(it+mt/Pe,Je.scrollWidth-Ve/Pe+nt)),We+=Te-ft,rt+=it-mt}ot.push({el:Je,top:ft,left:mt})}return ot},E=le=>le===!1?{block:"end",inline:"nearest"}:(z=>z===Object(z)&&Object.keys(z).length!==0)(le)?le:{block:"start",inline:"nearest"};function ie(le,z){if(!le.isConnected||!(re=>{let te=re;for(;te&&te.parentNode;){if(te.parentNode===document)return!0;te=te.parentNode instanceof ShadowRoot?te.parentNode.host:te.parentNode}return!1})(le))return;const se=(re=>{const te=window.getComputedStyle(re);return{top:parseFloat(te.scrollMarginTop)||0,right:parseFloat(te.scrollMarginRight)||0,bottom:parseFloat(te.scrollMarginBottom)||0,left:parseFloat(te.scrollMarginLeft)||0}})(le);if((re=>typeof re=="object"&&typeof re.behavior=="function")(z))return z.behavior(ee(le,z));const x=typeof z=="boolean"||z==null?void 0:z.behavior;for(const{el:re,top:te,left:ae}of ee(le,E(z))){const ue=te-se.top+se.bottom,fe=ae-se.left+se.right;re.scroll({top:ue,left:fe,behavior:x})}}}}]);