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

1174 lines
1.4 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[6913],{65363:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return oe}});var Je=Ve(54476),wt=Ve(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,ve=Ve(7657),x=function(ee,se){return wt.createElement(ve.Z,(0,Je.Z)({},ee,{ref:se,icon:we}))},z=wt.forwardRef(x),oe=z},76618:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return oe}});var Je=Ve(54476),wt=Ve(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,ve=Ve(7657),x=function(ee,se){return wt.createElement(ve.Z,(0,Je.Z)({},ee,{ref:se,icon:we}))},z=wt.forwardRef(x),oe=z},2018:function(){"use strict"},40862:function(Kt,_t){"use strict";_t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},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 Kt={},_t="5.0",Ve={},Je=null,wt=!1,y=!1,we=null,ve=!1,x=null,z=null,oe=0;oe<arguments.length;oe++){var ie=arguments[oe];if(ie!==null)switch(typeof ie){case"number":_t=ie.toFixed(1);break;case"string":ie.match(new RegExp("^[0-9]\\.[0-9]+$"))?_t=ie:we=ie;break;case"object":typeof ie.is3D!="undefined"?Je=ie:Ve=ie;break;case"boolean":wt=ie,y=!0;break}}Je===null&&(Je={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Ve.material_id!==void 0&&!y&&(wt=!0)),we!==null&&Ve.id===void 0&&(Ve.id=we);var ee="",se="",E=!1,te=null,re=null,le=null,ue=!1,ce=null,he=null,me=null,fe=null,be=null;Ve.height!==void 0&&(Ve.height=Math.round(Ve.height)),Ve.width!==void 0&&(Ve.width=Math.round(Ve.width));var Ce=function(Ye){return parseFloat(Ye)>4?parseFloat(Ye):5};Kt.setHTML5Codebase=function(Ye,$e){z=Ye,rt(Ye,$e)},Kt.setJavaCodebase=Kt.setJavaCodebaseVersion=Kt.isCompiledInstalled=Kt.setPreCompiledScriptPath=Kt.setPreCompiledResourcePath=function(){},Kt.setHTML5CodebaseVersion=function(Ye,$e){var Ke=parseFloat(Ye);if(Ke!==NaN&&Ke<5){console.log("The GeoGebra HTML5 codebase version "+Ke+" is deprecated. Using version latest instead.");return}x=Ye,Ue(Ye,$e)},Kt.getHTML5CodebaseVersion=function(){return re},Kt.getParameters=function(){return Ve},Kt.setFontsCSSURL=function(Ye){fe=Ye},Kt.setGiacJSURL=function(Ye){},Kt.setJNLPFile=function(Ye){ee=Ye},Kt.setJNLPBaseDir=function(Ye){},Kt.inject=function(){function Ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",Ke=Ve.id,ft,tt=!1,ut=0;ut<arguments.length;ut++){var lt=arguments[ut];typeof lt=="string"?(lt=lt.toLowerCase(),lt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=lt:Ke=arguments[ut]):typeof lt=="boolean"?tt=lt:lt instanceof HTMLElement&&(ft=lt)}Ze();function Ze(){if(!ve){setTimeout(Ze,200);return}$e=st($e);var Ne=ft||document.getElementById(Ke);if(!Ne){console.log("possibly bug on ajax loading? ");return}if(Kt.removeExistingApplet(Ne,!1),Ve.width===void 0&&Ne.clientWidth&&(Ve.width=Ne.clientWidth),Ve.height===void 0&&Ne.clientHeight&&(Ve.height=Ne.clientHeight),!(Ve.width&&Ve.height)&&$e==="html5"&&(delete Ve.width,delete Ve.height),te=$e,$e==="screenshot")Ee(Ne,Ve);else{var ze=!1;Ve.hasOwnProperty("playButton")&&Ve.playButton||Ve.hasOwnProperty("clickToLoad")&&Ve.clickToLoad?ze=!0:Ve.hasOwnProperty("playButtonAutoDecide")&&Ve.playButtonAutoDecide&&(ze=(!Te()||Ye())&&Pe()),ze?(te="screenshot",He(Ne,Ve,tt,$e)):_e(Ne,Ve,tt)}}};function Te(){try{return window.self!==window.top}catch(Ye){return!0}}function Pe(){return Ve.hasOwnProperty("screenshotGenerator")&&Ve.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Kt.getViews=function(){return Je},Kt.isJavaInstalled=function(){return!1};var ke=function(Ye){var $e=function(ut){var lt=JSON.parse(ut),Ze=function(Me){return Me.type=="G"||Me.type=="E"},Ne=lt.elements?lt.elements.filter(Ze)[0]:lt;if(!Ne||!Ne.url){Ke();return}Ve.fileName=Ne.url,de(Ne.settings||{}),Je.is3D=!0;var ze="https://www.geogebra.org/images/";Kt.setPreviewImage(ce||Ne.previewUrl,ze+"GeoGebra_loading.png",ze+"applet_play.png"),Ye()},Ke=function(){Ve.onError&&Ve.onError(),ot("Error: Fetching material (id "+Ve.material_id+") failed.",Ve)},ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",tt="/materials/"+Ve.material_id+"?scope=basic";ge("https://"+ft+"/api/proxy.php?path="+encodeURIComponent(tt),$e,Ke)};function de(Ye){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ke){Ye[Ke]=!!Ye[Ke]}),$e.forEach(function(Ke){Ve[Ke]===void 0&&Ye[Ke]!==void 0&&(Ve[Ke]=Ye[Ke])}),Ve.showToolBarHelp===void 0&&(Ve.showToolBarHelp=Ve.showToolBar)}function ge(Ye,$e,Ke){var ft=new XMLHttpRequest;ft.open("GET",Ye),ft.onload=function(){$e(ft.responseText)},ft.onerror=Ke,ft.send()}Kt.isHTML5Installed=function(){return!0},Kt.getLoadedAppletType=function(){return te},Kt.setPreviewImage=function(Ye,$e,Ke){ce=Ye,he=$e,me=Ke},Kt.removeExistingApplet=function(Ye,$e){var Ke;typeof Ye=="string"&&(Ye=document.getElementById(Ye)),te=null;var ft=null;for(Ke=0;Ke<Ye.childNodes.length;Ke++){var tt=Ye.childNodes[Ke],ut=tt.className;ut==="applet_screenshot"?$e?(tt.style.display="block",te="screenshot"):tt.style.display="none":ut!=="applet_scaler prerender"&&(Ye.removeChild(tt),ft=ut&&ut.indexOf("appletParameters")!=-1?tt.id:null,Ke--)}var lt=Ve.id!==void 0?Ve.id:ft,Ze=window[lt];Ze&&typeof Ze.getBase64=="function"&&(Ze.remove(),window[lt]=null)},Kt.refreshHitPoints=function(){if(Ce(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ye=Kt.getAppletObject();return Ye&&typeof Ye.recalculateEnvironments=="function"?(Ye.recalculateEnvironments(),!0):!1},Kt.startAnimation=function(){var Ye=Kt.getAppletObject();return Ye&&typeof Ye.startAnimation=="function"?(Ye.startAnimation(),!0):!1},Kt.stopAnimation=function(){var Ye=Kt.getAppletObject();return Ye&&typeof Ye.stopAnimation=="function"?(Ye.stopAnimation(),!0):!1},Kt.getAppletObject=function(){var Ye=Ve.id!==void 0?Ve.id:"ggbApplet";return window[Ye]},Kt.resize=function(){};var Se=function(Ye,$e,Ke){var ft=document.createElement("param");ft.setAttribute("name",$e),ft.setAttribute("value",Ke),Ye.appendChild(ft)},De=function(Ye){return Ye&&Ye!=="false"},_e=function(Ye,$e,Ke){Ce(re)<=4.2&&(Ke=!0);var ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!ue)&&(ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var tt=document.createElement("div");tt.classList.add("appletParameters","notranslate");var ut=$e.width,lt=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(Ce(re)<=4.4)De($e.showToolBar)&&($e.height-=7),De($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&De($e.showToolBar)&&($e.width=605,ut=605);else{var Ze=100;(De($e.showToolBar)||De($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),Ze=De($e.showMenuBar)?245:155),ut<Ze&&($e.width=Ze,ut=Ze)}tt.style.border="none",tt.style.display="inline-block";for(var Ne in $e)$e.hasOwnProperty(Ne)&&Ne!=="appletOnLoad"&&tt.setAttribute("data-param-"+Ne,$e[Ne]);fe&&tt.setAttribute("data-param-fontscssurl",fe),Kt.resize=function(){GGBAppletUtils.responsiveResize(Ye,$e)},window.addEventListener("resize",function(ye){Kt.resize()});var ze=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!Ke&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||tt.setAttribute("data-param-showSplash","false");var Me=Ye.querySelector(".applet_scaler.prerender"),Ge=Me!==null;if(Ge)var ct=Me.querySelector(".ggb_preview");else{var ct=et(ut,lt,$e.borderColor,!1);Me=document.createElement("div"),Me.className="applet_scaler",Me.style.position="relative",Me.style.display="block",Me.style.width=ut+"px",Me.style.height=lt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Me,"66%"),Ce(re)>=5?($e.appletOnLoad=function(ye){var Fe=Ye.querySelector(".ggb_preview");Fe&&Fe.parentNode.removeChild(Fe),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Me),window.GGBT_wsf_view&&$(window).trigger("resize"),ze(ye)},Ge||Me.appendChild(ct)):tt.appendChild(ct),Me.appendChild(tt),Ge||Ye.appendChild(Me),setTimeout(function(){Kt.resize()},1)}else{var mt=document.createElement("div");mt.className="applet_scaler",mt.style.position="relative",mt.style.display="block",mt.appendChild(tt),Ye.appendChild(mt),$e.appletOnLoad=function(ye){Kt.resize(),ze(ye)}}function nt(ye,Fe){Fe&&typeof Fe.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ye,Fe.appletOnLoad):renderGGBElement(ye),ot("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Fe)}function Ae(ye,Fe){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ye,params:Fe}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Qe){nt(Qe.article,Qe.params)}),html5AppletsToProcess=null)},Ce(re)<5&&(ye.className+=" geogebraweb")):nt(ye,Fe)}if(ft){scriptLoadStarted=!0;for(var je=0;je<tt.childNodes.length;je++){var We=tt.childNodes[je].tagName;We==="TABLE"&&(tt.removeChild(tt.childNodes[je]),je--)}if(ggbHTML5LoadedScript!==null){var at=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');at!=null&&at.parentNode.removeChild(at)}var Re=document.createElement("script"),xe=function(){Ae(tt,$e)};Re.src=se+le,ggbHTML5LoadedCodebaseIsWebSimple=ue,ggbHTML5LoadedCodebaseVersion=re,ggbHTML5LoadedScript=Re.src,ot("GeoGebra HTML5 codebase loaded: '"+se+"'.",$e),!z&&(!x||x=="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):(Re.onload=xe,Ye.appendChild(Re))}else Ae(tt,$e);$e.height=lt,$e.width=ut},Ee=function(Ye,$e,Ke){var ft=et($e.width,$e.height,$e.borderColor,Ke),tt=document.createElement("div");tt.style.position="relative",tt.style.display="block",tt.style.width=$e.width+"px",tt.style.height=$e.height+"px",tt.className="applet_screenshot applet_scaler"+(Ke?" applet_screenshot_play":""),tt.appendChild(ft);var ut=GGBAppletUtils.getScale($e,Ye,Ke);Ke?(Ye.appendChild(Xe()),window.GGBT_wsf_view||(Ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(tt,"66%"),Ye.appendChild(tt),ut!==1&&!isNaN(ut)&&(GGBAppletUtils.scaleElement(tt,ut),tt.style.width=$e.width+"px",tt.style.height=$e.height+"px",tt.parentNode.style.width=$e.width*ut+"px",tt.parentNode.style.height=$e.height*ut+"px"),Kt.resize=function(){Oe(Ye,ft,tt,Ke)},window.addEventListener("resize",function(lt){Kt.resize()}),Kt.resize()};function Oe(Ye,$e,Ke,ft){if(Ye.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ye)}var tt=GGBAppletUtils.getScale(Ve,Ye,ft);Ke.parentNode!==null&&(!isNaN(tt)&&tt!==1?(GGBAppletUtils.scaleElement(Ke,tt),Ke.parentNode.style.width=Ve.width*tt+"px",Ke.parentNode.style.height=Ve.height*tt+"px"):(GGBAppletUtils.scaleElement(Ke,1),Ke.parentNode.style.width=Ve.width+"px",Ke.parentNode.style.height=Ve.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Kt.onExitFullscreen=function(Ye,$e){$e.appendChild(Ye)};var He=function(Ye,$e,Ke,ft){Ee(Ye,$e,!0);for(var tt=function(){var Ze=[];for(lt=0;lt<Ye.childNodes.length;lt++)Ze.push(Ye.childNodes[lt]);if(window.GGBT_wsf_view){var Ne=window.GGBT_wsf_view.renderFullScreen(Ye,$e.id),ze=document.getElementById("fullscreencontainer"),Me=jQuery(Ye).find(".fullscreencontent");Me.length>0?(Ne.remove(),Me.attr("id","fullscreencontent").show(),jQuery(ze).append(Me),window.dispatchEvent(new Event("resize"))):_e(Ne,$e,!1),window.GGBT_wsf_view.launchFullScreen(ze)}else te=ft,_e(Ye,$e,!1);if(!window.GGBT_wsf_view)for(lt=0;lt<Ze.length;lt++)Ye.removeChild(Ze[lt])},ut=Ye.getElementsByClassName("ggb_preview_play"),lt=0;lt<ut.length;lt++)ut[lt].addEventListener("click",tt,!1),ut[lt].addEventListener("ontouchstart",tt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ye),Pe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Xe=function(){var Ye=document.createElement("div");if(Ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.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");}',Ke=document.createElement("style");Ke.styleSheet?Ke.styleSheet.cssText=$e:Ke.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(Ke)}return Ye},et=function(Ye,$e,Ke,ft){var tt=document.createElement("div");tt.className="ggb_preview",tt.style.position="absolute",tt.style.zIndex="90",tt.style.width=Ye-2+"px",tt.style.height=$e-2+"px",tt.style.top="0px",tt.style.left="0px",tt.style.overflow="hidden",tt.style.backgroundColor="white";var ut="lightgrey";Ke!==void 0&&(Ke==="none"?ut="transparent":ut=Ke),tt.style.border="1px solid "+ut;var lt=document.createElement("img");if(lt.style.position="relative",lt.style.zIndex="1000",lt.style.top="-1px",lt.style.left="-1px",ce!==null&&lt.setAttribute("src",ce),lt.style.opacity=.7,he!==null){var Ze,Ne,ze;if(!ft){Ze=document.createElement("img"),Ze.style.position="absolute",Ze.style.zIndex="1001",Ze.style.opacity=1,lt.style.opacity=.3,Ne=360,Ne>Ye/4*3&&(Ne=Ye/4*3),ze=Ne/5.8,Ze.setAttribute("src",he),Ze.setAttribute("width",Ne),Ze.setAttribute("height",ze);var Me=(Ye-Ne)/2,Ge=($e-ze)/2;Ze.style.left=Me+"px",Ze.style.top=Ge+"px",tt.appendChild(Ze)}}return tt.appendChild(lt),tt},st=function(Ye){return Ye=Ye.toLowerCase(),Ye==="html5"||Ye==="screenshot"?Ye:"html5"},Le=["web","webSimple","web3d","tablet","tablet3d","phone"],Ue=function(Ye,$e){if(re=Ye,$e){rt(re,!0);return}var Ke=!wt;if(Ke){var ft=Ce(re);!isNaN(ft)&&ft<4.4&&(Ke=!1)}var tt,ut;window.location.protocol.substr(0,4)==="http"?tt=window.location.protocol:tt="http:";var lt=re.indexOf("//");lt>0?ut=re:lt===0?ut=tt+re:ut="https://www.geogebra.org/apps/5.2.814.0/";for(var Ze in Le)if(re.slice(Le[Ze].length*-1)===Le[Ze]||re.slice((Le[Ze].length+1)*-1)===Le[Ze]+"/"){rt(ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ke&&!Je.is3D&&!Je.AV&&!Je.SV&&!Je.CV&&!Je.EV2&&!Je.CP&&!Je.PC&&!Je.DA&&!Je.FI&&!Je.PV&&!De(Ve.showToolBar)&&!De(Ve.showMenuBar)&&!De(Ve.showAlgebraInput)&&!De(Ve.enableRightClick)&&(!Ve.appName||Ve.appName=="classic")?ut+="webSimple/":ut+="web3d/",rt(ut,!1)},rt=function(Ye,$e){if(Ye.requirejs){se=Ye;return}Ye.slice(-1)!=="/"&&(Ye+="/"),se=Ye,$e===null&&($e=Ye.indexOf("http")===-1),E=$e,le="web.nocache.js",ue=!1;var Ke=se.split("/");Ke.length>1&&(!$e&&Ke[Ke.length-2]==="webSimple"?(le="webSimple.nocache.js",ue=!0):Le.indexOf(Ke[Ke.length-2])>=0&&(le=Ke[Ke.length-2]+".nocache.js")),Ke=Ye.split("/"),re=Ke[Ke.length-3],re.substr(0,4)==="test"?re=re.substr(4,1)+"."+re.substr(5,1):(re.substr(0,3)==="war"||re.substr(0,4)==="beta")&&(re="5.0");var ft=parseFloat(re);ft!==NaN&&ft<5&&Ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ft+" is deprecated. Using version latest instead."),Ue("5.0",$e))},ot=function(Ye,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(Ye)};Ve.material_id!==void 0?ke(it):it();function it(){var Ye=_t;x!==null?Ye=x:parseFloat(Ye)<5&&(Ye="5.0"),Ue(Ye,!1),z!==null&&rt(z,E),ve=!0}return Kt},GGBAppletUtils=function(){"use strict";function Kt(){return window.GGBT_wsf_edit!==void 0}function _t(ve,x){x!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+x+","+x+")",ve.style.webkitTransform="scale("+x+","+x+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function Ve(ve,x,z,oe,ie,ee){var se=null;if(ee!=null&&ee!="")for(var E=ve.parentNode;E!=null;)if((" "+E.className+" ").indexOf(" "+ee+" ")>-1){se=E;break}else E=E.parentNode;var te=0,re=0,le=0,ue=0,ce=0,he=0,me=0;if(se)te=se.offsetWidth,re=Math.max(oe?se.offsetWidth:0,se.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(te=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),le=te):(te=window.innerWidth,re=window.innerHeight,le=window.innerWidth),ve){var fe=ve.getBoundingClientRect();fe.left>0&&fe.left<=te&&(ie===void 0||!ie)&&(document.dir==="rtl"?(ce=te-fe.width-fe.left,he=le<=480?10:30):(he=fe.left,ce=le<=480?10:30),ue=he+ce)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var be=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ue=40,me=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue=0,me=40)}}return ve&&((z===void 0||!z)&&x>0&&x+ue<te?te=x:te-=ue,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(re-=me)),{width:te,height:re}}function Je(ve,x,z,oe,ie){if(ve.isScreenshoGenerator)return 1;var ee=oe!==void 0&&oe,se=ve.noScaleMargin!=null&&ve.noScaleMargin,E=function(be){return be&&be!=="false"},te=E(ve.autoHeight),re=Ve(x,ve.width,z,te,ee&&window.GGBT_wsf_view||se,ie),le=parseInt(re.width),ue=ve.width,ce=ve.height;if(ue===void 0){var he=x.querySelector(".appletParameters");he&&(ue=he.offsetWidth,ce=he.offsetHeight)}var me=le/ue,fe=ee?1:re.height/ce;return z!==void 0&&!z&&(me=Math.min(1,me),fe=Math.min(1,fe)),Math.min(me,fe)}function wt(ve,x,z){var oe=1,ie,ee=!1;if(ve.hasOwnProperty("allowUpscale")&&(ee=ve.allowUpscale),ve.hasOwnProperty("scale")&&(oe=parseFloat(ve.scale),(isNaN(oe)||oe===null||oe===0)&&(oe=1),oe>1&&(ee=!0)),x&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))ie=Je(ve,x,ee,z,ve.scaleContainerClass);else return oe;return ee&&(!ve.hasOwnProperty("scale")||oe===1)?ie:Math.min(oe,ie)}function y(ve){var x=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),oe=ve.getBoundingClientRect(),ie=(x-oe.width)/2,ee=(z-oe.height)/2;ee<0&&(ee=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ie<40?ve.style.left="40px":ve.style.left=ie+"px",ve.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?ve.style.top="40px":ve.style.top=ee+"px",ve.style.left=ie+"px")}function we(ve,x){var z=ve.querySelector(".appletParameters");if(z){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(x.id!==z.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var oe=wt(x,ve);Kt()&&z.setAttribute("data-param-scale",oe);for(var ie=null,ee=0;ee<ve.childNodes.length;ee++)if(ve.childNodes[ee].className!==void 0&&ve.childNodes[ee].className.match(/^applet_scaler/)){ie=ve.childNodes[ee];break}if(ie!==null&&ie.querySelector(".noscale")!==null)return;var se=x.id!==void 0?x.id:"ggbApplet",E=window[se];(E==null||!E.recalculateEnvironments)&&ie!==null&&!ie.className.match(/fullscreen/)&&(ie.parentNode.style.transform="",!isNaN(oe)&&oe!==1?(ie.parentNode.style.width=x.width*oe+"px",ie.parentNode.style.height=x.height*oe+"px",_t(ie,oe)):(_t(ie,1),ie.parentNode.style.width=x.width+"px",ie.parentNode.style.height=x.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&y(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:we,isFlexibleWorksheetEditor:Kt,positionCenter:y,getScale:wt,scaleElement:_t}}();__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 Kt=n.location.search;return Kt.indexOf(J)!=-1||Kt.indexOf(K)!=-1}function q(Kt,_t){}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(Kt){var _t=s[L].bindings;s[L].bindings=function(){for(var Ve=_t?_t():{},Je=Kt[webModule.__softPermutationId],wt=O;wt<Je.length;wt++){var y=Je[wt];Ve[y[O]]=y[P]}return Ve}};var t;function u(){return v(),t}function v(){if(!t){var Kt=o.createElement(Q);if(Kt.id=L,Kt.style.cssText=R+S,Kt.tabIndex=-1,o.body.appendChild(Kt),t=Kt.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var _t=document.compatMode==U?V:W;t.write(_t+X),t.close()}}}function w(Kt){function _t(Je){function wt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var y=wt();if(y){Je();return}function we(){if(!y){if(!wt())return;y=!0,Je(),o.removeEventListener&&o.removeEventListener(Z,we,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,we,!1);var ve=setInterval(function(){we()},$)}function Ve(Je){var wt=u(),y=wt.body,we=wt.createElement(_);we.language=ab,we.crossOrigin=W,we.src=Je,webModule.__errFn&&(we.onerror=function(){webModule.__errFn(L,new Error(bb+Je))}),y.appendChild(we)}_t(function(){Ve(Kt)})}webModule.__startLoadingFragment=function(Kt){return C(Kt)},webModule.__installRunAsyncCode=function(Kt){var _t=u(),Ve=_t.body,Je=_t.createElement(_);Je.language=ab,Je.text=Kt,Ve.appendChild(Je),Ve.removeChild(Je)};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(Kt){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Kt){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Kt){var _t=c[Kt];return _t==null?null:_t},r=d,webModule.__errFn=e}function B(){function Kt(ve){var x=ve.lastIndexOf(rb);x==-1&&(x=ve.length);var z=ve.indexOf(sb);z==-1&&(z=ve.length);var oe=ve.lastIndexOf(tb,Math.min(z,x));return oe>=O?ve.substring(O,oe+P):W}function _t(ve){if(!ve.match(/^\w+:\/\//)){var x=o.createElement(ub);x.src=ve+vb,ve=Kt(x.src)}return ve}function Ve(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function Je(){for(var ve=o.getElementsByTagName(_),x=O;x<ve.length;++x)if(ve[x].src.indexOf(xb)!=-1)return Kt(ve[x].src);return W}function wt(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function y(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var we=Ve();return we==W&&(we=Je()),we==W&&(we=wt()),we==W&&y()&&(we=Kt(o.location.href)),we=_t(we),we}function C(Kt){return Kt.match(/^\//)||Kt.match(/^[a-zA-Z]+:\/\//)?Kt:webModule.__moduleBase+Kt}function D(){var Kt=[],_t=O,Ve=[],Je=[];function wt(ve){var x=Je[ve](),z=Ve[ve];if(x in z)return x;var oe=[];for(var ie in z)oe[z[ie]]=ie;throw r&&r(ve,oe,x),null}if(__gwt_isKnownPropertyValue=function(ve,x){return x in Ve[ve]},webModule.__getPropMap=function(){var ve={};for(var x in Ve)Ve.hasOwnProperty(x)&&(ve[x]=wt(x));return ve},webModule.__computePropValue=wt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var we=y.indexOf(Db);we!=-1&&(_t=parseInt(y.substring(we+P),$),y=y.substring(O,we))}catch(ve){}return webModule.__softPermutationId=_t,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(Kt,_t,Ve){"use strict";Ve.d(_t,{Ax:function(){return we},Ds:function(){return ve},KI:function(){return z},SI:function(){return y},f1:function(){return wt}});var Je=Ve(26869);function wt(oe){let ie=!0;if(oe.length>0){for(let ee=0;ee<oe.length;ee++)if(oe[ee].compile_success==0||!oe[ee].compile_success){ie=!1;break}}else ie=!1;return ie}function y(oe,ie=""){let ee=[];for(let se=0;se<oe.length;se++){let E=oe[se],te=ie?`${ie}/${E.name}`:`${E.name}`;ee.push({title:E.name,type:E.type,isLeaf:E.type!=="tree",key:te})}return ee}function we(oe,ie,ee){for(let se=0;se<oe.length;se++){let E=oe[se];if(E.key===ie){E.children=ee;break}E.children&&we(E.children,ie,ee)}return oe}function ve(oe,ie,ee){let se;return function(){let E=this,te=arguments,re=function(){se=null,ee||oe.apply(E,te)},le=ee&&!se;clearTimeout(se),se=setTimeout(re,ie),le&&oe.apply(E,te)}}const x=!0,z=Je.Z.API_SERVER},1986:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return at}});var Je=Ve(59301),wt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=Ve(92310),we=Ve.n(y),ve=Ve(29787);var x=function(Re,xe){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ye,Fe){ye.__proto__=Fe}||function(ye,Fe){for(var Qe in Fe)Object.prototype.hasOwnProperty.call(Fe,Qe)&&(ye[Qe]=Fe[Qe])})(Re,xe)};function z(Re,xe){function ye(){this.constructor=Re}x(Re,xe),Re.prototype=xe===null?Object.create(xe):(ye.prototype=xe.prototype,new ye)}function oe(Re,xe,ye,Fe){return new(ye||(ye=Promise))(function(Qe,Ie){function vt(bt){try{xt(Fe.next(bt))}catch(ht){Ie(ht)}}function yt(bt){try{xt(Fe.throw(bt))}catch(ht){Ie(ht)}}function xt(bt){var ht;bt.done?Qe(bt.value):(ht=bt.value,ht instanceof ye?ht:new ye(function(kt){kt(ht)})).then(vt,yt)}xt((Fe=Fe.apply(Re,xe||[])).next())})}function ie(Re,xe){var ye,Fe,Qe,Ie,vt={label:0,sent:function(){if(1&Qe[0])throw Qe[1];return Qe[1]},trys:[],ops:[]};return Ie={next:yt(0),throw:yt(1),return:yt(2)},typeof Symbol=="function"&&(Ie[Symbol.iterator]=function(){return this}),Ie;function yt(xt){return function(bt){return function(ht){if(ye)throw new TypeError("Generator is already executing.");for(;vt;)try{if(ye=1,Fe&&(Qe=2&ht[0]?Fe.return:ht[0]?Fe.throw||((Qe=Fe.return)&&Qe.call(Fe),0):Fe.next)&&!(Qe=Qe.call(Fe,ht[1])).done)return Qe;switch(Fe=0,Qe&&(ht=[2&ht[0],Qe.value]),ht[0]){case 0:case 1:Qe=ht;break;case 4:return vt.label++,{value:ht[1],done:!1};case 5:vt.label++,Fe=ht[1],ht=[0];continue;case 7:ht=vt.ops.pop(),vt.trys.pop();continue;default:if(Qe=vt.trys,!((Qe=Qe.length>0&&Qe[Qe.length-1])||ht[0]!==6&&ht[0]!==2)){vt=0;continue}if(ht[0]===3&&(!Qe||ht[1]>Qe[0]&&ht[1]<Qe[3])){vt.label=ht[1];break}if(ht[0]===6&&vt.label<Qe[1]){vt.label=Qe[1],Qe=ht;break}if(Qe&&vt.label<Qe[2]){vt.label=Qe[2],vt.ops.push(ht);break}Qe[2]&&vt.ops.pop(),vt.trys.pop();continue}ht=xe.call(Re,vt)}catch(kt){ht=[6,kt],Fe=0}finally{ye=Qe=0}if(5&ht[0])throw ht[1];return{value:ht[0]?ht[1]:void 0,done:!0}}([xt,bt])}}}function ee(){for(var Re=0,xe=0,ye=arguments.length;xe<ye;xe++)Re+=arguments[xe].length;var Fe=Array(Re),Qe=0;for(xe=0;xe<ye;xe++)for(var Ie=arguments[xe],vt=0,yt=Ie.length;vt<yt;vt++,Qe++)Fe[Qe]=Ie[vt];return Fe}var se=function(){function Re(){}return Re.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Re.setAttributes=function(xe,ye){for(var Fe=0,Qe=ye;Fe<Qe.length;Fe++){var Ie=Qe[Fe],vt=Ie[0],yt=Ie[1];xe.setAttribute(vt,yt)}},Re.createRect=function(xe,ye,Fe){var Qe=document.createElementNS("http://www.w3.org/2000/svg","rect");return Qe.setAttribute("width",xe.toString()),Qe.setAttribute("height",ye.toString()),Fe&&Re.setAttributes(Qe,Fe),Qe},Re.createLine=function(xe,ye,Fe,Qe,Ie){var vt=document.createElementNS("http://www.w3.org/2000/svg","line");return vt.setAttribute("x1",xe.toString()),vt.setAttribute("y1",ye.toString()),vt.setAttribute("x2",Fe.toString()),vt.setAttribute("y2",Qe.toString()),Ie&&Re.setAttributes(vt,Ie),vt},Re.createPolygon=function(xe,ye){var Fe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Fe.setAttribute("points",xe),ye&&Re.setAttributes(Fe,ye),Fe},Re.createCircle=function(xe,ye){var Fe=document.createElementNS("http://www.w3.org/2000/svg","circle");return Fe.setAttribute("cx",(xe/2).toString()),Fe.setAttribute("cy",(xe/2).toString()),Fe.setAttribute("r",xe.toString()),ye&&Re.setAttributes(Fe,ye),Fe},Re.createEllipse=function(xe,ye,Fe){var Qe=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Qe.setAttribute("cx",(xe/2).toString()),Qe.setAttribute("cy",(ye/2).toString()),Qe.setAttribute("rx",(xe/2).toString()),Qe.setAttribute("ry",(ye/2).toString()),Fe&&Re.setAttributes(Qe,Fe),Qe},Re.createGroup=function(xe){var ye=document.createElementNS("http://www.w3.org/2000/svg","g");return xe&&Re.setAttributes(ye,xe),ye},Re.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Re.createMarker=function(xe,ye,Fe,Qe,Ie,vt,yt){var xt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Re.setAttributes(xt,[["id",xe],["orient",ye],["markerWidth",Fe.toString()],["markerHeight",Qe.toString()],["refX",Ie.toString()],["refY",vt.toString()]]),xt.appendChild(yt),xt},Re.createText=function(xe){var ye=document.createElementNS("http://www.w3.org/2000/svg","text");return ye.setAttribute("x","0"),ye.setAttribute("y","0"),xe&&Re.setAttributes(ye,xe),ye},Re.createTSpan=function(xe,ye){var Fe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Fe.textContent=xe,ye&&Re.setAttributes(Fe,ye),Fe},Re.createImage=function(xe){var ye=document.createElementNS("http://www.w3.org/2000/svg","image");return xe&&Re.setAttributes(ye,xe),ye},Re.createPoint=function(xe,ye){var Fe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Fe.x=xe,Fe.y=ye,Fe},Re.createPath=function(xe,ye){var Fe=document.createElementNS("http://www.w3.org/2000/svg","path");return Fe.setAttribute("d",xe),ye&&Re.setAttributes(Fe,ye),Fe},Re}(),E=function(){function Re(){}return Re.addKey=function(xe){Re.key=xe},Object.defineProperty(Re,"isLicensed",{get:function(){return!!Re.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Re.key)},enumerable:!1,configurable:!0}),Re}(),te=function(){function Re(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Re.prototype.rasterize=function(xe,ye,Fe){var Qe=this;return new Promise(function(Ie){var vt=Fe!==void 0?Fe:document.createElement("canvas");xe===null&&(Qe.markersOnly=!0,Qe.naturalSize=!1);var yt=document.createElementNS("http://www.w3.org/2000/svg","svg");yt.setAttribute("xmlns","http://www.w3.org/2000/svg"),yt.setAttribute("width",ye.width.baseVal.valueAsString),yt.setAttribute("height",ye.height.baseVal.valueAsString),yt.setAttribute("viewBox","0 0 "+ye.viewBox.baseVal.width.toString()+" "+ye.viewBox.baseVal.height.toString()),yt.innerHTML=ye.innerHTML,Qe.naturalSize===!0?(yt.width.baseVal.value=xe.naturalWidth,yt.height.baseVal.value=xe.naturalHeight):Qe.width!==void 0&&Qe.height!==void 0&&(yt.width.baseVal.value=Qe.width,yt.height.baseVal.value=Qe.height),vt.width=yt.width.baseVal.value,vt.height=yt.height.baseVal.value;var xt=yt.outerHTML,bt=vt.getContext("2d");Qe.markersOnly!==!0&&bt.drawImage(xe,0,0,vt.width,vt.height);var ht=window.URL,kt=new Image(vt.width,vt.height);kt.setAttribute("crossOrigin","anonymous");var Tt=new Blob([xt],{type:"image/svg+xml"}),Pt=ht.createObjectURL(Tt);kt.onload=function(){bt.drawImage(kt,0,0),ht.revokeObjectURL(Pt);var Vt=vt.toDataURL(Qe.imageType,Qe.imageQuality);Ie(Vt)},kt.src=Pt})},Re}(),re=function(){},le=function(){function Re(xe){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+xe+"_"}return Object.defineProperty(Re.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Re.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(Re.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Re.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},Re.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)},Re.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 ce("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ce("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Re.prototype.removeStyleSheet=function(){var xe;this.styleSheet&&(((xe=this.styleSheetRoot)!==null&&xe!==void 0?xe:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Re}(),ue=function(Re,xe){this.selector=Re,this.style=xe},ce=function(Re,xe){this.localName=Re,this.style=xe},he=function(){function Re(xe,ye,Fe,Qe,Ie){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=xe,this.displayMode=ye,this.markerItems=Fe,this.uiStyleSettings=Qe,this.styles=Ie,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Re.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 Fe=document.createElement("div");Fe.className=this.toolbarBlockStyleClass.name,Fe.style.whiteSpace="nowrap",this.uiContainer.appendChild(Fe),this.addActionButton(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<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(Fe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(Ie){var vt=document.createElement("div");vt.className=""+ye.toolbarButtonStyleClass.name,vt.setAttribute("data-type-name",Ie.typeName),vt.innerHTML=Ie.icon,vt.addEventListener("click",function(){ye.markerToolbarButtonClicked(vt,Ie)}),ye.buttons.push(vt),ye.markerButtons.push(vt)}),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 Qe=document.createElement("div");Qe.className=this.toolbarBlockStyleClass.name,Qe.style.whiteSpace="nowrap",Qe.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Qe),this.addActionButton(Qe,'<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(Qe,'<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()},Re.prototype.addButtonClickListener=function(xe){this.buttonClickListeners.push(xe)},Re.prototype.removeButtonClickListener=function(xe){this.buttonClickListeners.indexOf(xe)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(xe),1)},Re.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Re.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]))}},Re.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")},Re.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)})},Re.prototype.addActionButton=function(xe,ye,Fe){var Qe=this,Ie=document.createElement("div");switch(Ie.className=""+this.toolbarButtonStyleClass.name,Ie.innerHTML=ye,Ie.setAttribute("data-action",Fe),Ie.addEventListener("click",function(){Qe.actionToolbarButtonClicked(Ie,Fe)}),Fe){case"select":Ie.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Ie.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Ie.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Ie.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Ie.style.fill=this.uiStyleSettings.closeButtonColor}xe.appendChild(Ie),this.buttons.push(Ie)},Re.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ce("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 ce("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ce("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ce("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 ce("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var xe=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ce("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 ce("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ce("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+`
`))},Re.prototype.markerToolbarButtonClicked=function(xe,ye){this.setActiveButton(xe),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Fe){return Fe("marker",ye)}),this.markerButtonOverflowBlock.style.display="none"},Re.prototype.actionToolbarButtonClicked=function(xe,ye){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Fe){return Fe("action",ye)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Re.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)},Re.prototype.setActiveMarkerButton=function(xe){var ye=this.markerButtons.find(function(Fe){return Fe.getAttribute("data-type-name")===xe});ye&&this.setActiveButton(ye)},Re.prototype.setCurrentMarker=function(xe){var ye=this;this.currentMarker=xe,this.buttons.filter(function(Fe){return/delete|notes/.test(Fe.getAttribute("data-action"))}).forEach(function(Fe){ye.currentMarker===void 0?(Fe.style.fillOpacity="0.4",Fe.style.pointerEvents="none"):(Fe.style.fillOpacity="1",Fe.style.pointerEvents="all")})},Re}(),me=function(){function Re(xe,ye,Fe,Qe){this.panels=[],this.panelButtons=[],this.markerjsContainer=xe,this.displayMode=ye,this.uiStyleSettings=Fe,this.styles=Qe,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Re.prototype.addStyles=function(){var xe;this.toolboxStyleClass=this.styles.addClass(new ce("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 ce("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ye=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ce("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ce("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ce("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 ce("toolbox-panel-row_colors",`
background-color: `+((xe=this.uiStyleSettings.toolboxBackgroundColor)!==null&&xe!==void 0?xe:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ce("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 ce("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ce("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;
`))},Re.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)},Re.prototype.setPanelButtons=function(xe){var ye,Fe,Qe=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+" "+((Fe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Fe!==void 0?Fe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Ie){var vt;Ie.uiStyleSettings=Qe.uiStyleSettings;var yt=document.createElement("div");yt.className=Qe.toolboxButtonStyleClass.name+" "+((vt=Qe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&vt!==void 0?vt:Qe.toolboxButtonStyleColorsClass.name),yt.innerHTML=Ie.icon,yt.title=Ie.title,yt.addEventListener("click",function(){Qe.panelButtonClick(Ie)}),Qe.panelButtons.push(yt),Qe.buttonRow.appendChild(yt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Re.prototype.panelButtonClick=function(xe){var ye=this,Fe=-1;if(xe!==this.activePanel){Fe=this.panels.indexOf(xe),this.panelRow.innerHTML="";var Qe=xe.getUi();Qe.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Qe),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(Ie,vt){var yt,xt;Ie.className=ye.toolboxButtonStyleClass.name+" "+(vt===Fe?""+((yt=ye.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&yt!==void 0?yt:ye.toolboxActiveButtonStyleColorsClass.name):""+((xt=ye.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&xt!==void 0?xt:ye.toolboxButtonStyleColorsClass.name))})},Re}(),fe=function(Re,xe){this.title=Re,this.icon=xe},be=function(Re){function xe(ye,Fe,Qe,Ie){var vt=Re.call(this,ye,Ie||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return vt.colors=[],vt.addTransparent=!1,vt.colorBoxes=[],vt.colors=Fe,vt.currentColor=Qe,vt.setCurrentColor=vt.setCurrentColor.bind(vt),vt.getColorBox=vt.getColorBox.bind(vt),vt}return z(xe,Re),xe.prototype.getUi=function(){var ye=this,Fe=document.createElement("div");return Fe.style.overflow="hidden",Fe.style.whiteSpace="nowrap",this.colors.forEach(function(Qe){var Ie=ye.getColorBox(Qe);Fe.appendChild(Ie),ye.colorBoxes.push(Ie)}),Fe},xe.prototype.getColorBox=function(ye){var Fe=this,Qe=this.uiStyleSettings.toolbarHeight/4,Ie=this.uiStyleSettings.toolbarHeight-Qe,vt=document.createElement("div");vt.style.display="inline-block",vt.style.boxSizing="content-box",vt.style.width=Ie-2+"px",vt.style.height=Ie-2+"px",vt.style.padding="1px",vt.style.marginRight="2px",vt.style.marginBottom="2px",vt.style.borderWidth="2px",vt.style.borderStyle="solid",vt.style.borderRadius=(Ie+2)/2+"px",vt.style.borderColor=ye===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",vt.addEventListener("click",function(){Fe.setCurrentColor(ye,vt)});var yt=document.createElement("div");return yt.style.display="inline-block",yt.style.width=Ie-2+"px",yt.style.height=Ie-2+"px",yt.style.backgroundColor=ye,yt.style.borderRadius=Ie/2+"px",ye==="transparent"&&(yt.style.fill=this.uiStyleSettings.toolboxAccentColor,yt.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>`),vt.appendChild(yt),vt},xe.prototype.setCurrentColor=function(ye,Fe){var Qe=this;this.currentColor=ye,this.colorBoxes.forEach(function(Ie){Ie.style.borderColor=Ie===Fe?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ye)},xe}(fe),Ce=function(){function Re(xe,ye,Fe){this._state="new",this._isSelected=!1,this._container=xe,this._overlayContainer=ye,this.globalSettings=Fe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Re.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Re.prototype.ownsTarget=function(xe){return!1},Object.defineProperty(Re.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Re.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Re.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Re.prototype.pointerDown=function(xe,ye){},Re.prototype.dblClick=function(xe,ye){},Re.prototype.manipulate=function(xe){},Re.prototype.pointerUp=function(xe){this.stateChanged()},Re.prototype.dispose=function(){},Re.prototype.addMarkerVisualToContainer=function(xe){this.container.childNodes.length>0?this.container.insertBefore(xe,this.container.childNodes[0]):this.container.appendChild(xe)},Re.prototype.getState=function(){return{typeName:Re.typeName,state:this.state,notes:this.notes}},Re.prototype.restoreState=function(xe){this._state=xe.state,this.notes=xe.notes},Re.prototype.scale=function(xe,ye){},Re.prototype.colorChanged=function(xe){this.onColorChanged&&this.onColorChanged(xe),this.stateChanged()},Re.prototype.fillColorChanged=function(xe){this.onFillColorChanged&&this.onFillColorChanged(xe),this.stateChanged()},Re.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)}},Re.typeName="MarkerBase",Re}(),Te=function(){function Re(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Re.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},Re}(),Pe=function(){function Re(){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 Re.prototype.ownsTarget=function(xe){return xe===this.visual||xe===this.visual.childNodes[0]||xe===this.visual.childNodes[1]},Re}(),ke=function(){function Re(){}return Re.toITransformMatrix=function(xe){return{a:xe.a,b:xe.b,c:xe.c,d:xe.d,e:xe.e,f:xe.f}},Re.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},Re}(),de=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.left=0,Ie.top=0,Ie.width=0,Ie.height=0,Ie.defaultSize={x:50,y:20},Ie.offsetX=0,Ie.offsetY=0,Ie.rotationAngle=0,Ie.CB_DISTANCE=10,Ie._suppressMarkerCreateEvent=!1,Ie.container.transform.baseVal.appendItem(se.createTransform()),Ie.setupControlBox(),Ie}return z(xe,Re),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 Fe=se.createTransform();this._visual.transform.baseVal.appendItem(Fe)},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(ye){return!!Re.prototype.ownsTarget.call(this,ye)||!!(this.controlGrips.findGripByVisual(ye)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ye))},xe.prototype.pointerDown=function(ye,Fe){Re.prototype.pointerDown.call(this,ye,Fe),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 Qe=this.unrotatePoint(ye);if(this.manipulationStartX=Qe.x,this.manipulationStartY=Qe.y,this.offsetX=Qe.x-this.left,this.offsetY=Qe.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Fe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Fe)){this.activeGrip=this.rotatorGrip;var Ie=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Ie.x-this.width/2,this.top=Ie.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var vt=this.container.transform.baseVal.getItem(0);vt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(vt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},xe.prototype.pointerUp=function(ye){var Fe=this.state;Re.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",Fe==="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 Fe=this.unrotatePoint(ye);this.state==="creating"?this.resize(ye):this.state==="move"?(this.left=this.manipulationStartLeft+(Fe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Fe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Fe):this.state==="rotate"&&this.rotate(ye)},xe.prototype.resize=function(ye){var Fe=this.manipulationStartLeft,Qe=this.manipulationStartWidth,Ie=this.manipulationStartTop,vt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Fe=this.manipulationStartLeft+ye.x-this.manipulationStartX,Qe=this.manipulationStartWidth+this.manipulationStartLeft-Fe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Qe=this.manipulationStartWidth+ye.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Ie=this.manipulationStartTop+ye.y-this.manipulationStartY,vt=this.manipulationStartHeight+this.manipulationStartTop-Ie;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:vt=this.manipulationStartHeight+ye.y-this.manipulationStartY}Qe>=0?(this.left=Fe,this.width=Qe):(this.left=Fe+Qe,this.width=-Qe),vt>=0?(this.top=Ie,this.height=vt):(this.top=Ie+vt,this.height=-vt),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 Fe=Math.sign(ye.x-this.centerX);this.rotationAngle=180*Math.atan((ye.y-this.centerY)/(ye.x-this.centerX))/Math.PI+90*Fe,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 Fe=this.container.getCTM(),Qe=se.createPoint(ye.x,ye.y);return{x:(Qe=Qe.matrixTransform(Fe)).x,y:Qe.y}},xe.prototype.unrotatePoint=function(ye){if(this.rotationAngle===0)return ye;var Fe=this.container.getCTM();Fe=Fe.inverse();var Qe=se.createPoint(ye.x,ye.y);return{x:(Qe=Qe.matrixTransform(Fe)).x,y:Qe.y}},xe.prototype.select=function(){Re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){Re.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 Te,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 Pe;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,Fe=-ye/2,Qe=Fe,Ie=(this.width+this.CB_DISTANCE)/2-ye/2,vt=(this.height+this.CB_DISTANCE)/2-ye/2,yt=this.height+this.CB_DISTANCE-ye/2,xt=this.width+this.CB_DISTANCE-ye/2;this.positionGrip(this.controlGrips.topLeft.visual,Fe,Qe),this.positionGrip(this.controlGrips.topCenter.visual,Ie,Qe),this.positionGrip(this.controlGrips.topRight.visual,xt,Qe),this.positionGrip(this.controlGrips.centerLeft.visual,Fe,vt),this.positionGrip(this.controlGrips.centerRight.visual,xt,vt),this.positionGrip(this.controlGrips.bottomLeft.visual,Fe,yt),this.positionGrip(this.controlGrips.bottomCenter.visual,Ie,yt),this.positionGrip(this.controlGrips.bottomRight.visual,xt,yt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Ie,Qe-3*this.CB_DISTANCE)},xe.prototype.positionGrip=function(ye,Fe,Qe){var Ie=ye.transform.baseVal.getItem(0);Ie.setTranslate(Fe,Qe),ye.transform.baseVal.replaceItem(Ie,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:ke.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ke.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Re.prototype.getState.call(this))},xe.prototype.restoreState=function(ye){Re.prototype.restoreState.call(this,ye);var Fe=ye;this.left=Fe.left,this.top=Fe.top,this.width=Fe.width,this.height=Fe.height,this.rotationAngle=Fe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ke.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Fe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ke.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Fe.containerTransformMatrix))},xe.prototype.scale=function(ye,Fe){Re.prototype.scale.call(this,ye,Fe);var Qe=this.rotatePoint({x:this.left,y:this.top}),Ie=this.unrotatePoint({x:Qe.x*ye,y:Qe.y*Fe});this.left=Ie.x,this.top=Ie.y,this.width=this.width*ye,this.height=this.height*Fe,this.adjustControlBox()},xe}(Ce),ge=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.fillColor="transparent",Ie.strokeColor="transparent",Ie.strokeWidth=0,Ie.strokeDasharray="",Ie.opacity=1,Ie.setStrokeColor=Ie.setStrokeColor.bind(Ie),Ie.setFillColor=Ie.setFillColor.bind(Ie),Ie.setStrokeWidth=Ie.setStrokeWidth.bind(Ie),Ie.setStrokeDasharray=Ie.setStrokeDasharray.bind(Ie),Ie.createVisual=Ie.createVisual.bind(Ie),Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return!(!Re.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,Fe){Re.prototype.pointerDown.call(this,ye,Fe),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},xe.prototype.manipulate=function(ye){Re.prototype.manipulate.call(this,ye)},xe.prototype.resize=function(ye){Re.prototype.resize.call(this,ye),this.setSize()},xe.prototype.setSize=function(){Re.prototype.setSize.call(this),se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},xe.prototype.pointerUp=function(ye){Re.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},Re.prototype.getState.call(this))},xe.prototype.restoreState=function(ye){var Fe=ye;this.fillColor=Fe.fillColor,this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.opacity=Fe.opacity,this.createVisual(),Re.prototype.restoreState.call(this,ye),this.setSize()},xe.prototype.scale=function(ye,Fe){Re.prototype.scale.call(this,ye,Fe),this.setSize()},xe.title="Rectangle marker",xe}(de),Se=function(Re){function xe(ye,Fe,Qe,Ie){var vt=Re.call(this,ye,Ie||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return vt.widths=[],vt.widthBoxes=[],vt.widths=Fe,vt.currentWidth=Qe,vt.setCurrentWidth=vt.setCurrentWidth.bind(vt),vt}return z(xe,Re),xe.prototype.getUi=function(){var ye=this,Fe=document.createElement("div");return Fe.style.display="flex",Fe.style.overflow="hidden",Fe.style.flexGrow="2",this.widths.forEach(function(Qe){var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.flexGrow="2",Ie.style.alignItems="center",Ie.style.justifyContent="space-between",Ie.style.padding="5px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderColor=Qe===ye.currentWidth?ye.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){ye.setCurrentWidth(Qe,Ie)}),Fe.appendChild(Ie);var vt=document.createElement("div");vt.innerText=Qe.toString(),vt.style.marginRight="5px",Ie.appendChild(vt);var yt=document.createElement("div");yt.style.minHeight="20px",yt.style.flexGrow="2",yt.style.display="flex",yt.style.alignItems="center";var xt=document.createElement("hr");xt.style.minWidth="20px",xt.style.border="0px",xt.style.borderTop=Qe+"px solid "+ye.uiStyleSettings.toolboxColor,xt.style.flexGrow="2",yt.appendChild(xt),Ie.appendChild(yt),ye.widthBoxes.push(Ie)}),Fe},xe.prototype.setCurrentWidth=function(ye,Fe){var Qe=this;this.currentWidth=ye,this.widthBoxes.forEach(function(Ie){Ie.style.borderColor=Ie===Fe?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},xe}(fe),De=function(Re){function xe(ye,Fe,Qe,Ie){var vt=Re.call(this,ye,Ie||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return vt.styles=[],vt.styleBoxes=[],vt.styles=Fe,vt.currentStyle=Qe,vt.setCurrentStyle=vt.setCurrentStyle.bind(vt),vt}return z(xe,Re),xe.prototype.getUi=function(){var ye=this,Fe=document.createElement("div");return Fe.style.display="flex",Fe.style.overflow="hidden",Fe.style.flexGrow="2",this.styles.forEach(function(Qe){var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.alignItems="center",Ie.style.justifyContent="space-between",Ie.style.padding="5px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.overflow="hidden",Ie.style.maxWidth=100/ye.styles.length-5+"%",Ie.style.borderColor=Qe===ye.currentStyle?ye.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){ye.setCurrentStyle(Qe,Ie)}),Fe.appendChild(Ie);var vt=document.createElement("div");vt.style.minHeight="20px",vt.style.flexGrow="2",vt.style.overflow="hidden";var yt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ye.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Qe!==""?'stroke-dasharray="'+Qe+'"':"")+` />
</svg>`;vt.innerHTML=yt,Ie.appendChild(vt),ye.styleBoxes.push(Ie)}),Fe},xe.prototype.setCurrentStyle=function(ye,Fe){var Qe=this;this.currentStyle=ye,this.styleBoxes.forEach(function(Ie){Ie.style.borderColor=Ie===Fe?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},xe}(fe),_e=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.strokeColor=Qe.defaultColor,Ie.strokeWidth=Qe.defaultStrokeWidth,Ie.strokeDasharray=Qe.defaultStrokeDasharray,Ie.strokePanel=new be("Line color",Qe.defaultColorSet,Qe.defaultColor),Ie.strokePanel.onColorChanged=Ie.setStrokeColor,Ie.strokeWidthPanel=new Se("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Ie.strokeWidthPanel.onWidthChanged=Ie.setStrokeWidth,Ie.strokeStylePanel=new De("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Ie.strokeStylePanel.onStyleChanged=Ie.setStrokeDasharray,Ie}return z(xe,Re),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Re.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}(ge),Ee=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"},Oe=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.x1=0,Ie.y1=0,Ie.x2=0,Ie.y2=0,Ie.defaultLength=50,Ie.manipulationStartX=0,Ie.manipulationStartY=0,Ie.manipulationStartX1=0,Ie.manipulationStartY1=0,Ie.manipulationStartX2=0,Ie.manipulationStartY2=0,Ie.setupControlBox(),Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return!!Re.prototype.ownsTarget.call(this,ye)||!(!this.grip1.ownsTarget(ye)&&!this.grip2.ownsTarget(ye))},xe.prototype.pointerDown=function(ye,Fe){Re.prototype.pointerDown.call(this,ye,Fe),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(Fe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Fe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},xe.prototype.pointerUp=function(ye){var Fe=this.state;Re.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",Fe==="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(){Re.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},xe.prototype.deselect=function(){Re.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 Pe;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,Fe,Qe){var Ie=ye.transform.baseVal.getItem(0);Ie.setTranslate(Fe,Qe),ye.transform.baseVal.replaceItem(Ie,0)},xe.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Re.prototype.getState.call(this))},xe.prototype.restoreState=function(ye){Re.prototype.restoreState.call(this,ye);var Fe=ye;this.x1=Fe.x1,this.y1=Fe.y1,this.x2=Fe.x2,this.y2=Fe.y2},xe.prototype.scale=function(ye,Fe){Re.prototype.scale.call(this,ye,Fe),this.x1=this.x1*ye,this.y1=this.y1*Fe,this.x2=this.x2*ye,this.y2=this.y2*Fe,this.adjustVisual(),this.adjustControlBox()},xe}(Ce),He=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.strokeColor="transparent",Ie.strokeWidth=0,Ie.strokeDasharray="",Ie.setStrokeColor=Ie.setStrokeColor.bind(Ie),Ie.setStrokeWidth=Ie.setStrokeWidth.bind(Ie),Ie.setStrokeDasharray=Ie.setStrokeDasharray.bind(Ie),Ie.strokeColor=Qe.defaultColor,Ie.strokeWidth=Qe.defaultStrokeWidth,Ie.strokeDasharray=Qe.defaultStrokeDasharray,Ie.strokePanel=new be("Line color",Qe.defaultColorSet,Qe.defaultColor),Ie.strokePanel.onColorChanged=Ie.setStrokeColor,Ie.strokeWidthPanel=new Se("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Ie.strokeWidthPanel.onWidthChanged=Ie.setStrokeWidth,Ie.strokeStylePanel=new De("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Ie.strokeStylePanel.onStyleChanged=Ie.setStrokeDasharray,Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return!(!Re.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,Fe){Re.prototype.pointerDown.call(this,ye,Fe),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},Re.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){Re.prototype.restoreState.call(this,ye);var Fe=ye;this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.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}(Oe),Xe=function(Re){function xe(ye,Fe,Qe,Ie){var vt=Re.call(this,ye,Ie||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return vt.fonts=[],vt.fontBoxes=[],vt.fonts=Fe,vt.currentFont=Qe,vt.setCurrentFont=vt.setCurrentFont.bind(vt),vt}return z(xe,Re),xe.prototype.getUi=function(){var ye=this,Fe=document.createElement("div");return Fe.style.overflow="hidden",Fe.style.flexGrow="2",this.fonts.forEach(function(Qe){var Ie=document.createElement("div");Ie.style.display="inline-block",Ie.style.alignItems="center",Ie.style.justifyContent="space-between",Ie.style.padding="5px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.overflow="hidden",Ie.style.maxWidth=100/ye.fonts.length-5+"%",Ie.style.borderColor=Qe===ye.currentFont?ye.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){ye.setCurrentFont(Qe,Ie)}),Fe.appendChild(Ie);var vt=document.createElement("div");vt.style.display="flex",vt.style.minHeight="20px",vt.style.flexGrow="2",vt.style.fontFamily=Qe,vt.style.overflow="hidden";var yt=document.createElement("div");yt.style.whiteSpace="nowrap",yt.style.overflow="hidden",yt.style.textOverflow="ellipsis",yt.innerHTML="The quick brown fox jumps over the lazy dog",vt.appendChild(yt),Ie.appendChild(vt),ye.fontBoxes.push(Ie)}),Fe},xe.prototype.setCurrentFont=function(ye,Fe){var Qe=this;this.currentFont=ye,this.fontBoxes.forEach(function(Ie){Ie.style.borderColor=Ie===Fe?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},xe}(fe),et=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.color="transparent",Ie.padding=5,Ie.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Ie.text=Ie.DEFAULT_TEXT,Ie.isMoved=!1,Ie.color=Qe.defaultColor,Ie.fontFamily=Qe.defaultFontFamily,Ie.defaultSize={x:100,y:30},Ie.setColor=Ie.setColor.bind(Ie),Ie.setFont=Ie.setFont.bind(Ie),Ie.renderText=Ie.renderText.bind(Ie),Ie.sizeText=Ie.sizeText.bind(Ie),Ie.textEditDivClicked=Ie.textEditDivClicked.bind(Ie),Ie.showTextEditor=Ie.showTextEditor.bind(Ie),Ie.setSize=Ie.setSize.bind(Ie),Ie.positionTextEditor=Ie.positionTextEditor.bind(Ie),Ie.colorPanel=new be("Color",Qe.defaultColorSet,Qe.defaultColor),Ie.colorPanel.onColorChanged=Ie.setColor,Ie.fontFamilyPanel=new Xe("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Ie.fontFamilyPanel.onFontChanged=Ie.setFont,Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){if(Re.prototype.ownsTarget.call(this,ye)||ye===this.visual||ye===this.textElement||ye===this.bgRectangle)return!0;var Fe=!1;return this.textElement.childNodes.forEach(function(Qe){Qe===ye&&(Fe=!0)}),Fe},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,Fe){Re.prototype.pointerDown.call(this,ye,Fe),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(Fe){ye.textElement.appendChild(se.createTSpan(Fe.trim()===""?" ":Fe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},xe.prototype.getTextScale=function(){var ye=this.textElement.getBBox(),Fe=1;if(ye.width>0&&ye.height>0){var Qe=(1*this.width-this.width*this.padding*2/100)/ye.width,Ie=(1*this.height-this.height*this.padding*2/100)/ye.height;Fe=Math.min(Qe,Ie)}return Fe},xe.prototype.getTextPosition=function(ye){var Fe=this.textElement.getBBox(),Qe=0,Ie=0;return Fe.width>0&&Fe.height>0&&(Qe=(this.width-Fe.width*ye)/2,Ie=this.height/2-Fe.height*ye/2),{x:Qe,y:Ie}},xe.prototype.sizeText=function(){var ye=this.textElement.getBBox(),Fe=this.getTextScale(),Qe=this.getTextPosition(Fe);Qe.y-=ye.y*Fe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Qe.x+"px, "+Qe.y+"px) scale("+Fe+", "+Fe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Qe.x,Qe.y),this.textElement.transform.baseVal.getItem(1).setScale(Fe,Fe))},xe.prototype.manipulate=function(ye){Re.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){Re.prototype.resize.call(this,ye),this.isMoved=!0,this.setSize(),this.sizeText()},xe.prototype.setSize=function(){Re.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 Fe=this.state;Fe==="creating"&&(this._suppressMarkerCreateEvent=!0),Re.prototype.pointerUp.call(this,ye),this.setSize(),(Fe==="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(Fe){Fe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Fe=Number.parseFloat(ye.textEditor.style.fontSize);ye.textEditor.clientWidth>=Number.parseInt(ye.textEditor.style.maxWidth)&&Fe>.9;)Fe-=.1,ye.textEditor.style.fontSize=Math.max(Fe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Fe){Fe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Fe){if(Fe.clipboardData){var Qe=Fe.clipboardData.getData("text"),Ie=window.getSelection();if(!Ie.rangeCount)return!1;Ie.deleteFromDocument(),Ie.getRangeAt(0).insertNode(document.createTextNode(Qe)),Fe.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(),Fe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Qe=this.textElement.getBBox(),Ie={x:Qe.width*ye,y:Qe.height*ye};Fe.x-=Ie.x/2,Fe.y-=Ie.y/2,this.textEditor.style.top=Fe.y+"px",this.textEditor.style.left=Fe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Fe.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(){Re.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},xe.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Re.prototype.deselect.call(this)},xe.prototype.dblClick=function(ye,Fe){Re.prototype.dblClick.call(this,ye,Fe),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},Re.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){var Fe=ye;this.color=Fe.color,this.fontFamily=Fe.fontFamily,this.padding=Fe.padding,this.text=Fe.text,this.createVisual(),Re.prototype.restoreState.call(this,ye),this.setSize()},xe.prototype.scale=function(ye,Fe){Re.prototype.scale.call(this,ye,Fe),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}(de),st=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.color="transparent",Ie.lineWidth=3,Ie.drawing=!1,Ie.pixelRatio=1,Ie.color=Qe.defaultColor,Ie.lineWidth=Qe.defaultStrokeWidth,Ie.pixelRatio=Qe.freehandPixelRatio,Ie.setColor=Ie.setColor.bind(Ie),Ie.addCanvas=Ie.addCanvas.bind(Ie),Ie.finishCreation=Ie.finishCreation.bind(Ie),Ie.setLineWidth=Ie.setLineWidth.bind(Ie),Ie.colorPanel=new be("Color",Qe.defaultColorSet,Qe.defaultColor),Ie.colorPanel.onColorChanged=Ie.setColor,Ie.lineWidthPanel=new Se("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Ie.lineWidthPanel.onWidthChanged=Ie.setLineWidth,Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return!(!Re.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,Fe){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):Re.prototype.pointerDown.call(this,ye,Fe)},xe.prototype.manipulate=function(ye){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ye.x,ye.y),this.canvasContext.stroke()):Re.prototype.manipulate.call(this,ye)},xe.prototype.resize=function(ye){Re.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()):Re.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(),Re.prototype.select.call(this)},xe.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Re.prototype.deselect.call(this)},xe.prototype.finishCreation=function(){for(var ye=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Fe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Qe=Fe[0],Ie=Fe[1],vt=Fe[2],yt=Fe[3],xt=!1,bt=0;bt<this.canvasElement.height;bt++)for(var ht=0;ht<this.canvasElement.width;ht++)ye.data[bt*this.canvasElement.width*4+4*ht+3]>0&&(xt=!0,bt<Ie&&(Ie=bt),ht<Qe&&(Qe=ht),bt>yt&&(yt=bt),ht>vt&&(vt=ht));if(xt){this.left=Qe/this.pixelRatio,this.top=Ie/this.pixelRatio,this.width=(vt-Qe)/this.pixelRatio,this.height=(yt-Ie)/this.pixelRatio;var kt=document.createElement("canvas");kt.width=vt-Qe,kt.height=yt-Ie,kt.getContext("2d").putImageData(this.canvasContext.getImageData(Qe,Ie,vt-Qe,yt-Ie),0,0),this.drawingImgUrl=kt.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},Re.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){this.createVisual(),Re.prototype.restoreState.call(this,ye),this.drawingImgUrl=ye.drawingImgUrl,this.setDrawingImage()},xe.prototype.scale=function(ye,Fe){Re.prototype.scale.call(this,ye,Fe),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}(de),Le=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Qe||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Ie.typeBoxes=[],Ie.currentType=Fe,Ie.setCurrentType=Ie.setCurrentType.bind(Ie),Ie}return z(xe,Re),xe.prototype.getUi=function(){var ye=this,Fe=document.createElement("div");Fe.style.display="flex",Fe.style.overflow="hidden",Fe.style.flexGrow="2";for(var Qe=function(yt){var xt="both";switch(yt){case 0:xt="both";break;case 1:xt="start";break;case 2:xt="end";break;case 3:xt="none"}var bt=document.createElement("div");if(bt.style.display="flex",bt.style.flexGrow="2",bt.style.alignItems="center",bt.style.justifyContent="space-between",bt.style.padding="5px",bt.style.borderWidth="2px",bt.style.borderStyle="solid",bt.style.borderColor=xt===Ie.currentType?Ie.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){ye.setCurrentType(xt,bt)}),Fe.appendChild(bt),xt==="both"||xt==="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="`+(Ie.uiStyleSettings!==void 0?Ie.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,ht.style.marginLeft="5px",bt.appendChild(ht)}var kt=document.createElement("div");kt.style.display="flex",kt.style.alignItems="center",kt.style.minHeight="20px",kt.style.flexGrow="2";var Tt=document.createElement("hr");if(Tt.style.minWidth="20px",Tt.style.border="0px",Tt.style.borderTop="3px solid "+(Ie.uiStyleSettings!==void 0?Ie.uiStyleSettings.toolboxColor:"#eeeeee"),Tt.style.flexGrow="2",kt.appendChild(Tt),bt.appendChild(kt),xt==="both"||xt==="end"){var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(Ie.uiStyleSettings!==void 0?Ie.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Pt.style.marginRight="5px",bt.appendChild(Pt)}Ie.typeBoxes.push(bt)},Ie=this,vt=0;vt<4;vt++)Qe(vt);return Fe},xe.prototype.setCurrentType=function(ye,Fe){var Qe=this;this.currentType=ye,this.typeBoxes.forEach(function(Ie){Ie.style.borderColor=Ie===Fe?Qe.uiStyleSettings!==void 0?Qe.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},xe}(fe),Ue=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.arrowType="end",Ie.arrowBaseHeight=10,Ie.arrowBaseWidth=10,Ie.getArrowPoints=Ie.getArrowPoints.bind(Ie),Ie.setArrowType=Ie.setArrowType.bind(Ie),Ie.arrowTypePanel=new Le("Arrow type","end"),Ie.arrowTypePanel.onArrowTypeChanged=Ie.setArrowType,Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return!(!Re.prototype.ownsTarget.call(this,ye)&&ye!==this.arrow1&&ye!==this.arrow2)},xe.prototype.getArrowPoints=function(ye,Fe){var Qe=this.arrowBaseWidth+2*this.strokeWidth,Ie=this.arrowBaseHeight+2*this.strokeWidth;return ye-Qe/2+","+(Fe+Ie/2)+" "+ye+","+(Fe-Ie/2)+" "+(ye+Qe/2)+","+(Fe+Ie/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,Fe){Re.prototype.pointerDown.call(this,ye,Fe),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if(Re.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 Fe=this.arrow1.transform.baseVal.getItem(0);Fe.setRotate(ye,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Fe,0);var Qe=this.arrow2.transform.baseVal.getItem(0);Qe.setRotate(ye+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Qe,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},Re.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){Re.prototype.restoreState.call(this,ye);var Fe=ye;this.arrowType=Fe.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}(He),rt=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.fillColor=Qe.defaultFillColor,Ie.strokeWidth=0,Ie.fillPanel=new be("Color",Qe.defaultColorSet,Qe.defaultFillColor),Ie.fillPanel.onColorChanged=Ie.setFillColor,Ie}return z(xe,Re),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Re.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}(ge),ot=function(Re){function xe(ye,Fe,Qe,Ie){var vt=Re.call(this,ye,Ie||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return vt.opacities=[],vt.opacityBoxes=[],vt.opacities=Fe,vt.currentOpacity=Qe,vt.setCurrentOpacity=vt.setCurrentOpacity.bind(vt),vt}return z(xe,Re),xe.prototype.getUi=function(){var ye=this,Fe=document.createElement("div");return Fe.style.display="flex",Fe.style.overflow="hidden",Fe.style.flexGrow="2",Fe.style.justifyContent="space-between",this.opacities.forEach(function(Qe){var Ie=document.createElement("div");Ie.style.display="flex",Ie.style.alignItems="center",Ie.style.justifyContent="center",Ie.style.padding="5px",Ie.style.borderWidth="2px",Ie.style.borderStyle="solid",Ie.style.borderColor=Qe===ye.currentOpacity?ye.uiStyleSettings.toolboxAccentColor:"transparent",Ie.addEventListener("click",function(){ye.setCurrentOpacity(Qe,Ie)}),Fe.appendChild(Ie);var vt=document.createElement("div");vt.innerText=100*Qe+"%",Ie.appendChild(vt),ye.opacityBoxes.push(Ie)}),Fe},xe.prototype.setCurrentOpacity=function(ye,Fe){var Qe=this;this.currentOpacity=ye,this.opacityBoxes.forEach(function(Ie){Ie.style.borderColor=Ie===Fe?Qe.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},xe}(fe),it=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.setOpacity=Ie.setOpacity.bind(Ie),Ie.fillColor=Qe.defaultHighlightColor,Ie.strokeWidth=0,Ie.opacity=Qe.defaultHighlightOpacity,Ie.fillPanel=new be("Color",Qe.defaultColorSet,Ie.fillColor),Ie.fillPanel.onColorChanged=Ie.setFillColor,Ie.opacityPanel=new ot("Opacity",Qe.defaultOpacitySteps,Ie.opacity),Ie.opacityPanel.onOpacityChanged=Ie.setOpacity,Ie}return z(xe,Re),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=Re.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),Ye='<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>',$e='<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>',Ke=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.bgColor="transparent",Ie.tipPosition={x:0,y:0},Ie.tipBase1Position={x:0,y:0},Ie.tipBase2Position={x:0,y:0},Ie.tipMoving=!1,Ie.color=Qe.defaultStrokeColor,Ie.bgColor=Qe.defaultFillColor,Ie.fontFamily=Qe.defaultFontFamily,Ie.defaultSize={x:100,y:30},Ie.setBgColor=Ie.setBgColor.bind(Ie),Ie.getTipPoints=Ie.getTipPoints.bind(Ie),Ie.positionTip=Ie.positionTip.bind(Ie),Ie.setTipPoints=Ie.setTipPoints.bind(Ie),Ie.colorPanel=new be("Text color",Qe.defaultColorSet,Ie.color,Ye),Ie.colorPanel.onColorChanged=Ie.setColor,Ie.bgColorPanel=new be("Fill color",Qe.defaultColorSet,Ie.bgColor,$e),Ie.bgColorPanel.onColorChanged=Ie.setBgColor,Ie.fontFamilyPanel=new Xe("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Ie.fontFamilyPanel.onFontChanged=Ie.setFont,Ie.tipGrip=new Pe,Ie.tipGrip.visual.transform.baseVal.appendItem(se.createTransform()),Ie.controlBox.appendChild(Ie.tipGrip.visual),Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return Re.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,Fe){this.state==="new"&&Re.prototype.pointerDown.call(this,ye,Fe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Fe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Re.prototype.pointerDown.call(this,ye,Fe)},xe.prototype.pointerUp=function(ye){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Re.prototype.pointerUp.call(this,ye);else{var Fe=this.state==="creating";Re.prototype.pointerUp.call(this,ye),this.setTipPoints(Fe),this.positionTip()}},xe.prototype.manipulate=function(ye){if(this.tipMoving){var Fe=this.unrotatePoint(ye);this.tipPosition={x:Fe.x-this.manipulationStartLeft,y:Fe.y-this.manipulationStartTop},this.positionTip()}else Re.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 Fe=Math.min(this.height/2,15),Qe=this.height/5;ye&&(this.tipPosition={x:Fe+Qe/2,y:this.height+20});var Ie=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Ie<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Qe=this.width/5,Fe=Math.min(this.width/2,15),this.tipBase1Position={x:Fe,y:0},this.tipBase2Position={x:Fe+Qe,y:0}):(this.tipBase1Position={x:0,y:Fe},this.tipBase2Position={x:0,y:Fe+Qe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Ie<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Qe=this.width/5,Fe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Fe-Qe,y:0},this.tipBase2Position={x:this.width-Fe,y:0}):(this.tipBase1Position={x:this.width,y:Fe},this.tipBase2Position={x:this.width,y:Fe+Qe}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Ie<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Qe=this.width/5,Fe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Fe-Qe,y:this.height},this.tipBase2Position={x:this.width-Fe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Fe-Qe},this.tipBase2Position={x:this.width,y:this.height-Fe}):Ie<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Qe=this.width/5,Fe=Math.min(this.width/2,15),this.tipBase1Position={x:Fe,y:this.height},this.tipBase2Position={x:Fe+Qe,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Fe},this.tipBase2Position={x:0,y:this.height-Fe-Qe})},xe.prototype.resize=function(ye){Re.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(),Re.prototype.select.call(this)},xe.prototype.getState=function(){var ye=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Re.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){var Fe=ye;this.bgColor=Fe.bgColor,this.tipPosition=Fe.tipPosition,Re.prototype.restoreState.call(this,ye),this.createTip(),this.setTipPoints()},xe.prototype.scale=function(ye,Fe){Re.prototype.scale.call(this,ye,Fe),this.tipPosition={x:this.tipPosition.x*ye,y:this.tipPosition.y*Fe},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}(et),ft=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.fillColor="transparent",Ie.strokeColor="transparent",Ie.strokeWidth=0,Ie.strokeDasharray="",Ie.opacity=1,Ie.strokeColor=Qe.defaultColor,Ie.strokeWidth=Qe.defaultStrokeWidth,Ie.strokeDasharray=Qe.defaultStrokeDasharray,Ie.fillColor=Qe.defaultFillColor,Ie.setStrokeColor=Ie.setStrokeColor.bind(Ie),Ie.setFillColor=Ie.setFillColor.bind(Ie),Ie.setStrokeWidth=Ie.setStrokeWidth.bind(Ie),Ie.setStrokeDasharray=Ie.setStrokeDasharray.bind(Ie),Ie.setOpacity=Ie.setOpacity.bind(Ie),Ie.createVisual=Ie.createVisual.bind(Ie),Ie.strokePanel=new be("Line color",ee(Qe.defaultColorSet,["transparent"]),Qe.defaultColor),Ie.strokePanel.onColorChanged=Ie.setStrokeColor,Ie.fillPanel=new be("Fill color",ee(Qe.defaultColorSet,["transparent"]),Ie.fillColor,$e),Ie.fillPanel.onColorChanged=Ie.setFillColor,Ie.strokeWidthPanel=new Se("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Ie.strokeWidthPanel.onWidthChanged=Ie.setStrokeWidth,Ie.strokeStylePanel=new De("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Ie.strokeStylePanel.onStyleChanged=Ie.setStrokeDasharray,Ie.opacityPanel=new ot("Opacity",Qe.defaultOpacitySteps,Ie.opacity),Ie.opacityPanel.onOpacityChanged=Ie.setOpacity,Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return!(!Re.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,Fe){Re.prototype.pointerDown.call(this,ye,Fe),this.state==="new"&&(this.createVisual(),this.moveVisual(ye),this._state="creating")},xe.prototype.manipulate=function(ye){Re.prototype.manipulate.call(this,ye)},xe.prototype.resize=function(ye){Re.prototype.resize.call(this,ye),this.setSize()},xe.prototype.setSize=function(){Re.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){Re.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},Re.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){var Fe=ye;this.fillColor=Fe.fillColor,this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.opacity=Fe.opacity,this.createVisual(),Re.prototype.restoreState.call(this,ye),this.setSize()},xe.prototype.scale=function(ye,Fe){Re.prototype.scale.call(this,ye,Fe),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}(de),tt=function(Re){function xe(ye,Fe,Qe){return Re.call(this,ye,Fe,Qe)||this}return z(xe,Re),Object.defineProperty(xe.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(ye){return!(!Re.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,Fe){Re.prototype.pointerDown.call(this,ye,Fe),this.state==="creating"&&this.createTips()},xe.prototype.adjustVisual=function(){if(Re.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),Fe=this.tip1.transform.baseVal.getItem(0);Fe.setRotate(ye,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Fe,0);var Qe=this.tip2.transform.baseVal.getItem(0);Qe.setRotate(ye+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Qe,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=Re.prototype.getState.call(this);return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){Re.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}(He),ut=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.strokePanel.colors=Qe.defaultColorSet,Ie.fillColor="transparent",Ie}return z(xe,Re),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),xe.prototype.getState=function(){var ye=Re.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}(ft),lt=function(){function Re(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Re.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))},Re.prototype.replaceLastUndoStep=function(xe){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=xe)},Re.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Re.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}},Re.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Re}(),Ze=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.strokeColor="transparent",Ie.strokeWidth=0,Ie.strokeDasharray="",Ie.curveX=0,Ie.curveY=0,Ie.manipulationStartCurveX=0,Ie.manipulationStartCurveY=0,Ie.setStrokeColor=Ie.setStrokeColor.bind(Ie),Ie.setStrokeWidth=Ie.setStrokeWidth.bind(Ie),Ie.setStrokeDasharray=Ie.setStrokeDasharray.bind(Ie),Ie.positionGrips=Ie.positionGrips.bind(Ie),Ie.addControlGrips=Ie.addControlGrips.bind(Ie),Ie.adjustVisual=Ie.adjustVisual.bind(Ie),Ie.setupControlBox=Ie.setupControlBox.bind(Ie),Ie.resize=Ie.resize.bind(Ie),Ie.strokeColor=Qe.defaultColor,Ie.strokeWidth=Qe.defaultStrokeWidth,Ie.strokeDasharray=Qe.defaultStrokeDasharray,Ie.strokePanel=new be("Line color",Qe.defaultColorSet,Qe.defaultColor),Ie.strokePanel.onColorChanged=Ie.setStrokeColor,Ie.strokeWidthPanel=new Se("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Ie.strokeWidthPanel.onWidthChanged=Ie.setStrokeWidth,Ie.strokeStylePanel=new De("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Ie.strokeStylePanel.onStyleChanged=Ie.setStrokeDasharray,Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return!(!Re.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,Fe){Re.prototype.pointerDown.call(this,ye,Fe),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(Fe)&&(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(){Re.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,Re.prototype.addControlGrips.call(this)},xe.prototype.positionGrips=function(){Re.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),Re.prototype.manipulate.call(this,ye)},xe.prototype.resize=function(ye){this.activeGrip===this.curveGrip&&(this.curveX=ye.x,this.curveY=ye.y),Re.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,Fe){this.curveX=this.curveX*ye,this.curveY=this.curveY*Fe,Re.prototype.scale.call(this,ye,Fe)},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},Re.prototype.getState.call(this));return ye.typeName=xe.typeName,ye},xe.prototype.restoreState=function(ye){Re.prototype.restoreState.call(this,ye);var Fe=ye;this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.curveX=Fe.curveX,this.curveY=Fe.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}(Oe),Ne=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,Fe,Qe)||this;return Ie.fillColor="transparent",Ie.strokeColor="transparent",Ie.strokeWidth=0,Ie.strokeDasharray="",Ie.textColor="transparent",Ie.fontSize="1rem",Ie.isMoved=!1,Ie.captionText="Caption",Ie.PADDING=5,Ie.captionBoxWidth=0,Ie.captionBoxHeight=0,Ie.strokeColor=Qe.defaultColor,Ie.strokeWidth=Qe.defaultStrokeWidth,Ie.strokeDasharray=Qe.defaultStrokeDasharray,Ie.fillColor=Qe.defaultFillColor,Ie.textColor=Qe.defaultStrokeColor,Ie.fontFamily=Qe.defaultFontFamily,Ie.fontSize=Qe.defaultCaptionFontSize,Ie.captionText=Qe.defaultCaptionText,Ie.setStrokeColor=Ie.setStrokeColor.bind(Ie),Ie.setFillColor=Ie.setFillColor.bind(Ie),Ie.setStrokeWidth=Ie.setStrokeWidth.bind(Ie),Ie.setStrokeDasharray=Ie.setStrokeDasharray.bind(Ie),Ie.createVisual=Ie.createVisual.bind(Ie),Ie.sizeCaption=Ie.sizeCaption.bind(Ie),Ie.setCaptionText=Ie.setCaptionText.bind(Ie),Ie.showTextEditor=Ie.showTextEditor.bind(Ie),Ie.positionTextEditor=Ie.positionTextEditor.bind(Ie),Ie.finishTextEditing=Ie.finishTextEditing.bind(Ie),Ie.setFont=Ie.setFont.bind(Ie),Ie.setTextColor=Ie.setTextColor.bind(Ie),Ie.strokePanel=new be("Line color",ee(Qe.defaultColorSet,["transparent"]),Ie.strokeColor),Ie.strokePanel.onColorChanged=Ie.setStrokeColor,Ie.fillPanel=new be("Fill color",ee(Qe.defaultColorSet,["transparent"]),Ie.fillColor,$e),Ie.fillPanel.onColorChanged=Ie.setFillColor,Ie.strokeWidthPanel=new Se("Line width",Qe.defaultStrokeWidths,Qe.defaultStrokeWidth),Ie.strokeWidthPanel.onWidthChanged=Ie.setStrokeWidth,Ie.strokeStylePanel=new De("Line style",Qe.defaultStrokeDasharrays,Qe.defaultStrokeDasharray),Ie.strokeStylePanel.onStyleChanged=Ie.setStrokeDasharray,Ie.fontFamilyPanel=new Xe("Font",Qe.defaultFontFamilies,Qe.defaultFontFamily),Ie.fontFamilyPanel.onFontChanged=Ie.setFont,Ie.textColorPanel=new be("Text color",Qe.defaultColorSet,Ie.textColor,Ye),Ie.textColorPanel.onColorChanged=Ie.setTextColor,Ie}return z(xe,Re),xe.prototype.ownsTarget=function(ye){return!(!Re.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,Fe){Re.prototype.pointerDown.call(this,ye,Fe),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){Re.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){Re.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(Fe){Fe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Fe){Fe.key==="Enter"&&ye.finishTextEditing(ye.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Fe){Fe.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(){Re.prototype.setSize.call(this),se.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},xe.prototype.pointerUp=function(ye){Re.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,Fe){Re.prototype.dblClick.call(this,ye,Fe),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},Re.prototype.getState.call(this));return ye.typeName=this.typeName,ye},xe.prototype.restoreState=function(ye){var Fe=ye;this.fillColor=Fe.fillColor,this.strokeColor=Fe.strokeColor,this.strokeWidth=Fe.strokeWidth,this.strokeDasharray=Fe.strokeDasharray,this.textColor=Fe.textColor,this.fontFamily=Fe.fontFamily,this.captionText=Fe.captionText,this.fontSize=Fe.fontSize,this.createVisual(),Re.prototype.restoreState.call(this,ye),this.setSize()},xe.prototype.scale=function(ye,Fe){Re.prototype.scale.call(this,ye,Fe),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}(de),ze=function(){function Re(xe,ye){ye===void 0&&(ye=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=xe,this.cancelable=ye}return Object.defineProperty(Re.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Re.prototype.preventDefault=function(){this._defaultPrevented=!0},Re}(),Me=function(Re){function xe(ye,Fe,Qe){var Ie=Re.call(this,ye,!1)||this;return Ie.dataUrl=Fe,Ie.state=Qe,Ie}return z(xe,Re),xe}(ze),Ge=function(Re){function xe(ye,Fe,Qe){Qe===void 0&&(Qe=!1);var Ie=Re.call(this,ye,Qe)||this;return Ie.marker=Fe,Ie}return z(xe,Re),xe}(ze),ct=function(){function Re(){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 Re.prototype.addEventListener=function(xe,ye){this[xe].push(ye)},Re.prototype.removeEventListener=function(xe,ye){var Fe=this[xe].indexOf(ye);Fe>-1&&this[xe].splice(Fe,1)},Re}(),mt=function(){function Re(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 Ee,this._isOpen=!1,this.undoRedoManager=new lt,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 ct,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Re.instanceCounter++,this.styles=new le(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(Re.prototype,"ALL_MARKER_TYPES",{get:function(){return[_e,st,Ue,et,ut,ft,it,Ke,tt,rt,He,Ze,Ne]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[_e,st,Ue,et,ft,it,Ke]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"BASIC_MARKER_TYPES",{get:function(){return[_e,st,Ue,et,it]},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(xe){var ye=this;this._availableMarkerTypes.splice(0),xe.forEach(function(Fe){if(typeof Fe=="string"){var Qe=ye.ALL_MARKER_TYPES.find(function(Ie){return Ie.typeName===Fe});Qe!==void 0&&ye._availableMarkerTypes.push(Qe)}else ye._availableMarkerTypes.push(Fe)})},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Re.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(Re.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Re.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),E.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Re.prototype.show=function(){var xe=this;this.styles.styleSheetRoot===void 0&&re.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=re.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ye){return ye(new ze(xe))})},Re.prototype.render=function(){return oe(this,void 0,void 0,function(){var xe;return ie(this,function(ye){switch(ye.label){case 0:return this.setCurrentMarker(),(xe=new te).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()]}})})},Re.prototype.close=function(xe){var ye=this;if(xe===void 0&&(xe=!1),this.isOpen){var Fe=!1;xe||this.eventListeners.beforeclose.forEach(function(Qe){var Ie=new ze(ye,!0);Qe(Ie),Ie.defaultPrevented&&(Fe=!0)}),Fe||(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(Qe){return Qe(new ze(ye))}),this.detachEvents(),this._isOpen=!1)}},Re.prototype.addMarkersToToolbar=function(){for(var xe,ye=[],Fe=0;Fe<arguments.length;Fe++)ye[Fe]=arguments[Fe];(xe=this._availableMarkerTypes).push.apply(xe,ye)},Re.prototype.addRenderEventListener=function(xe){this.addEventListener("render",function(ye){xe(ye.dataUrl,ye.state)})},Re.prototype.removeRenderEventListener=function(xe){},Re.prototype.addCloseEventListener=function(xe){this.addEventListener("close",function(){xe()})},Re.prototype.removeCloseEventListener=function(xe){},Re.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))},Re.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,Fe=ye<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/xe;this.resize(ye,Fe)},Re.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Re.prototype.resize=function(xe,ye){this._isResizing=!0;var Fe=xe/this.imageWidth,Qe=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(Fe,Qe),this._isResizing=!1},Re.prototype.scaleMarkers=function(xe,ye){var Fe,Qe=this;this._currentMarker&&this._currentMarker instanceof et?this._currentMarker.scale(xe,ye):(Fe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Ie){Ie!==Qe._currentMarker&&Ie.scale(xe,ye)}),Fe!==void 0&&this.setCurrentMarker(Fe)},Re.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"},Re.prototype.setTopLeft=function(){var xe=this.editingTarget.getBoundingClientRect(),ye=this.editorCanvas.getBoundingClientRect();this.left=xe.left-ye.left,this.top=xe.top-ye.top},Re.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)},Re.prototype.addDefs=function(){for(var xe,ye=[],Fe=0;Fe<arguments.length;Fe++)ye[Fe]=arguments[Fe];this.defs=se.createDefs(),this.addDefsToImage(),(xe=this.defs).append.apply(xe,ye)},Re.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Re.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)},Re.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Re.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Re.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)},Re.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Re.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)},Re.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()},Re.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")},Re.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"},Re.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Re.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 he(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 me(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Re.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Re.prototype.removeMarker=function(xe){this.markerImage.removeChild(xe.container),this.markers.indexOf(xe)>-1&&this.markers.splice(this.markers.indexOf(xe),1),xe.dispose()},Re.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())},Re.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()}},Re.prototype.deleteSelectedMarker=function(){var xe=this;if(this._currentMarker!==void 0){var ye=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Qe){var Ie=new Ge(xe,xe._currentMarker,!0);Qe(Ie),Ie.defaultPrevented&&(ye=!0)}),!ye){var Fe=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(Qe){return Qe(new Ge(xe,Fe))})}}},Re.prototype.clear=function(){var xe=this,ye=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(vt){var yt=new Ge(xe,void 0,!0);vt(yt),yt.defaultPrevented&&(ye=!0)}),!ye)){this.setCurrentMarker();for(var Fe=function(vt){var yt=Qe.markers[vt];Qe.setCurrentMarker(Qe.markers[vt]),Qe._currentMarker.dispose(),Qe.markerImage.removeChild(Qe._currentMarker.container),Qe.markers.splice(Qe.markers.indexOf(Qe._currentMarker),1),Qe.eventListeners.markerdelete.forEach(function(xt){return xt(new Ge(xe,yt))})},Qe=this,Ie=this.markers.length-1;Ie>=0;Ie--)Fe(Ie);this.addUndoStep()}},Object.defineProperty(Re.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Re.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))},Re.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)},Re.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Re.prototype.addUndoStep=function(){var xe=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ye=this.getState(),Fe=this.undoRedoManager.getLastUndoStep();if(!Fe||Fe.width===ye.width&&Fe.height===ye.height){var Qe=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ye),Qe<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Ie){return Ie(new ze(xe))})}else this.undoRedoManager.replaceLastUndoStep(ye),this.eventListeners.statechange.forEach(function(Ie){return Ie(new ze(xe))})}},Re.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Re.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(Fe){return Fe(new ze(xe))}))},Re.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Re.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(Fe){return Fe(new ze(xe))}))},Re.prototype.stepZoom=function(){var xe=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=xe<this.zoomSteps.length-1?this.zoomSteps[xe+1]:this.zoomSteps[0]},Re.prototype.panTo=function(xe){this.contentDiv.scrollBy({left:this.prevPanPoint.x-xe.x,top:this.prevPanPoint.y-xe.y}),this.prevPanPoint=xe},Re.prototype.startRenderAndClose=function(){return oe(this,void 0,void 0,function(){var xe,ye,Fe=this;return ie(this,function(Qe){switch(Qe.label){case 0:return[4,this.render()];case 1:return xe=Qe.sent(),ye=this.getState(),this.eventListeners.render.forEach(function(Ie){return Ie(new Me(Fe,xe,ye))}),this.close(!0),[2]}})})},Re.prototype.getState=function(xe){xe===!0&&this.setCurrentMarker();var ye={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Fe){return ye.markers.push(Fe.getState())}),ye},Re.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(Fe){var Qe=ye._availableMarkerTypes.find(function(vt){return vt.typeName===Fe.typeName});if(Qe!==void 0){var Ie=ye.addNewMarker(Qe);Ie.restoreState(Fe),ye.markers.push(Ie)}}),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(Fe){return Fe(new ze(ye))})},Re.prototype.addNewMarker=function(xe){var ye=se.createGroup();return this.markerImage.appendChild(ye),new xe(ye,this.overlayContainer,this.settings)},Re.prototype.createNewMarker=function(xe){var ye,Fe=this;(ye=typeof xe=="string"?this._availableMarkerTypes.find(function(Qe){return Qe.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(Qe){return Qe(new Ge(Fe,Fe._currentMarker))}))},Re.prototype.markerCreated=function(xe){var ye=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(xe),this.setCurrentMarker(xe),xe instanceof st&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(st):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Fe){return Fe(new Ge(ye,ye._currentMarker))})},Re.prototype.colorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=xe,this.settings.defaultStrokeColor=xe)},Re.prototype.fillColorChanged=function(xe){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=xe)},Re.prototype.markerStateChanged=function(xe){var ye=this;this.eventListeners.markerchange.forEach(function(Fe){return Fe(new Ge(ye,xe))})},Re.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(Fe){return Fe(new Ge(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(Fe){return Fe(new Ge(ye,ye._currentMarker))}))},Re.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(Fe){return Fe.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))},Re.prototype.onDblClick=function(xe){if(this._isFocused||this.focus(),this.mode==="select"){var ye=this.markers.find(function(Fe){return Fe.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()}},Re.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}))},Re.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()},Re.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Re.prototype.onKeyUp=function(xe){this._currentMarker===void 0||this.notesArea!==void 0||xe.key!=="Delete"&&xe.key!=="Backspace"||this.deleteSelectedMarker()},Re.prototype.clientToLocalCoordinates=function(xe,ye){var Fe=this.markerImage.getBoundingClientRect();return{x:(xe-Fe.left)/this.zoomLevel,y:(ye-Fe.top)/this.zoomLevel}},Re.prototype.onWindowResize=function(){this.positionUI()},Re.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()},Re.prototype.addLicenseKey=function(xe){E.addKey(xe)},Re.prototype.addEventListener=function(xe,ye){this.eventListeners.addEventListener(xe,ye)},Re.prototype.removeEventListener=function(xe,ye){this.eventListeners.removeEventListener(xe,ye)},Re.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(Re.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Re.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 ze(xe))}))},Re.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 ze(xe))}))},Re.instanceCounter=0,Re}(),nt=Ve(97013),Ae=Ve(31735),je=(Re,xe,ye)=>new Promise((Fe,Qe)=>{var Ie=xt=>{try{yt(ye.next(xt))}catch(bt){Qe(bt)}},vt=xt=>{try{yt(ye.throw(xt))}catch(bt){Qe(bt)}},yt=xt=>xt.done?Fe(xt.value):Promise.resolve(xt.value).then(Ie,vt);yt((ye=ye.apply(Re,xe)).next())}),at=({data:Re,className:xe,fullWidth:ye,style:Fe={},onClose:Qe,onOk:Ie,showFullTools:vt,noAssociationId:yt})=>{const xt=(0,Je.useRef)(null),bt=(0,Je.useRef)(null),ht=(0,Je.useRef)(null),kt=(0,Je.useRef)(null),[Tt,Pt]=(0,Je.useState)(!1),[Vt,vr]=(0,Je.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Je.useEffect)(()=>(ht.current||(ht.current=document.createElement("style"),document.head.appendChild(ht.current)),Re!=null&&Re.visible?(document.body.setAttribute("data-custom","y-hidden"),ht.current.innerHTML=" html { overflow-y: hidden; }",Re!=null&&Re.src&&Yt()):(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)}),[Re==null?void 0:Re.visible]);const Yt=()=>je(void 0,null,function*(){Pt(!0),vr("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Mr=yield(0,Ae.ZJ)(Re==null?void 0:Re.src);xt.current.src="",xt.current.src=Mr,xt.current.onload=function(){Pr()},Pt(!1),vr("")}),Cr=Mr=>je(void 0,null,function*(){Pt(!0),vr("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Xr=yield(0,nt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Re.title,file:Mr.dataUrl}});Xr!=null&&Xr.id&&!yt?(yield(0,nt.ZP)(`/api/attachments/${Re.id}/add_subitem.json`,{method:"post",body:{subitem_id:Xr==null?void 0:Xr.id,settings:JSON.stringify(Mr.state)}})).status===0&&Ie():Xr!=null&&Xr.id&&Ie(Xr),Pt(!1),vr("")}),jr=()=>{const Mr=document.querySelector('a[href="https://markerjs.com/"]');Mr&&Mr.parentNode&&(Mr.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(mn=>{const cn=document.querySelector(mn.name);cn&&cn.setAttribute("title",mn.title)})},Pr=()=>{bt.current=new mt(xt.current),bt.current.targetRoot=kt.current,bt.current.addEventListener("render",Cr),bt.current.addEventListener("beforeclose",Qe),vt&&(bt.current.availableMarkerTypes=bt.current.ALL_MARKER_TYPES,bt.current.uiStyleSettings.redoButtonVisible=!0,bt.current.uiStyleSettings.notesButtonVisible=!0,bt.current.uiStyleSettings.zoomButtonVisible=!0,bt.current.uiStyleSettings.zoomOutButtonVisible=!0,bt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=bt.current.uiStyleSettings,bt.current.show(),Re!=null&&Re.snapshotData&&bt.current.restoreState(Re.snapshotData),setTimeout(()=>{window.scrollTo(0,0),jr()},300)};return Je.createElement(Je.Fragment,null,(Re==null?void 0:Re.visible)&&Je.createElement(ve.Z,{spinning:Tt,tip:Vt,style:{position:"absolute",width:"100vw"}},Je.createElement("div",{ref:kt,className:we()(wt.imageDimensions,xe,ye?wt.fullWidth:""),style:Fe},Je.createElement("img",{className:wt.img,ref:xt}))))}},50047:function(Kt,_t,Ve){"use strict";var Je=Ve(59301),wt=Ve(77019),y=Ve(5269),we=Ve(20554),ve=Ve(7939),x=Ve(59944),z=Ve(40862),oe=Ve(48136),ie=Ve(59301);const ee=(0,Je.forwardRef)(({callback:se,showSaveButton:E,value:te=""},re)=>{const le=(0,Je.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 "}]}]}],ce=[{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}`}]}]}],he=be=>{le.current.setValue(le.current.getValue()+" "+be.value+" ")},me=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ie.createElement(wt.Z,{className:z.Z.lists,gutter:[10,10]},ue.map((be,Ce)=>ie.createElement(y.Z,{flex:"110px",className:z.Z.item},ie.createElement("div",null,ie.createElement(x.Z,{value:`$$${be.value}$$`}),be.name),ie.createElement("div",{className:z.Z.children},be.children.map((Te,Pe)=>ie.createElement("div",{key:Pe},ie.createElement("h1",null,Te.name),ie.createElement(wt.Z,{gutter:[10,10]},Te.data.map((ke,de)=>ie.createElement(y.Z,{key:de,onClick:()=>he(ke),className:z.Z.diamond},ie.createElement(x.Z,{value:"`$$"+ke.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ie.createElement(wt.Z,{className:z.Z.lists,gutter:[10,10]},ce.map((be,Ce)=>ie.createElement(y.Z,{flex:"110px",className:z.Z.item},ie.createElement("div",null,ie.createElement(x.Z,{value:"`$$"+be.value+"$$`"}),be.name),ie.createElement("div",{className:z.Z.children},be.children.map((Te,Pe)=>ie.createElement("div",{key:Pe},Te.name&&ie.createElement("h1",null,Te.name),ie.createElement(wt.Z,{gutter:[10,10]},Te.data.map((ke,de)=>ie.createElement(y.Z,{key:de,onClick:()=>he(ke),className:z.Z.diamond},ie.createElement(x.Z,{value:"`$$"+ke.value+"$$`"}))))))))))}],fe=()=>{var be=document.createElement("div");be.innerHTML=le.current.getValue();var Ce=be.innerText;return se&&se(Ce),Ce};return(0,Je.useImperativeHandle)(re,()=>({getData:fe})),ie.createElement("div",{className:z.Z.mathWrap},ie.createElement(we.default,{defaultActiveKey:"1",items:me}),ie.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:le,style:{width:800,marginTop:30,fontSize:18}},te||""),E&&ie.createElement("div",{className:z.Z.button},ie.createElement(ve.ZP,{size:"large",onClick:fe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});_t.Z=ee},59243:function(Kt,_t,Ve){"use strict";var Je=Ve(59301),wt=Ve(93314),y=Ve(7939),we=Object.defineProperty,ve=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ee=(re,le,ue)=>le in re?we(re,le,{enumerable:!0,configurable:!0,writable:!0,value:ue}):re[le]=ue,se=(re,le)=>{for(var ue in le||(le={}))oe.call(le,ue)&&ee(re,ue,le[ue]);if(z)for(var ue of z(le))ie.call(le,ue)&&ee(re,ue,le[ue]);return re},E=(re,le)=>ve(re,x(le));const te=({img:re,buttonProps:le={},styles:ue={},customText:ce,ButtonText:he,ButtonClick:me,Buttonclass:fe,ButtonTwo:be,imgStyles:Ce,loading:Te=!1,className:Pe=""})=>Je.createElement("section",{className:`tc animated fadeIn ${Pe}`,style:se({color:"#999",margin:"100px auto",visibility:Te?"hidden":"visible"},ue)},Je.createElement("img",{src:re||wt,style:E(se({},Ce),{pointerEvents:"none",userSelect:"none"})}),Je.createElement("p",{className:"mt20 font14"},ce||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),he&&Je.createElement(y.ZP,se({className:fe,onClick:me},le),he),be&&be);_t.Z=te},47199:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return fe}});var Je=Ve(59301),wt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},y=Ve(7939),we=Ve(70557),ve=Ve(58478),x=Ve(25399),z=Ve(31735),oe=Ve(22167),ie=Ve(59243),ee=Ve(26869),se=Ve(38609),E=Ve(59301),te=Object.defineProperty,re=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ce=(be,Ce,Te)=>Ce in be?te(be,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Te}):be[Ce]=Te,he=(be,Ce)=>{for(var Te in Ce||(Ce={}))le.call(Ce,Te)&&ce(be,Te,Ce[Te]);if(re)for(var Te of re(Ce))ue.call(Ce,Te)&&ce(be,Te,Ce[Te]);return be},me=(be,Ce,Te)=>new Promise((Pe,ke)=>{var de=De=>{try{Se(Te.next(De))}catch(_e){ke(_e)}},ge=De=>{try{Se(Te.throw(De))}catch(_e){ke(_e)}},Se=De=>De.done?Pe(De.value):Promise.resolve(De.value).then(de,ge);Se((Te=Te.apply(be,Ce)).next())}),fe=({editOffice:be="view",data:Ce,issaver:Te,onSaver:Pe,theme:ke,type:de,filename:ge,monacoEditor:Se,className:De,style:_e,close:Ee,onClose:Oe,hasMask:He,disabledDownload:Xe,onImgDimensions:et,showNodata:st,recordInfo:Le})=>{const[Ue,rt]=(0,Je.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ot,it]=(0,Je.useState)(""),[Ye,$e]=(0,Je.useState)(),Ke=window.ENV==="build"?"/react/build":"",ft=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ut=10*(1024*1024),lt=(0,Je.useRef)();Ce!=null&&Ce.startsWith("/api")&&de!=="txt"&&(Ce=ee.Z.API_SERVER+Ce);const Ze=ct=>ct.substring(ct.lastIndexOf("/")+1).split(".").pop();ge&&Se&&(Se.filename=ge),(0,Je.useEffect)(()=>{var ct,mt;const nt=(mt=(ct=document.cookie)==null?void 0:ct.replace(/\s/g,""))==null?void 0:mt.split(";");nt==null||nt.map(Ae=>{let je=Ae.split("=");je[0]==="_educoder_session"&&it(je[1])})},[]),(0,Je.useEffect)(()=>{de==="office"&&(Ce.indexOf("bigfilescdn.")>-1||Ce.indexOf("bigfiles1")>-1?$e({url:Ce,fileType:Ze(Ce),model:Ce.indexOf("model=edit")?"edit":"view"}):ze())},[de,Ce]);function Ne(ct){return me(this,null,function*(){ct.data.type==="pdfdata"&&(Pe(ct.data.data),window.removeEventListener("message",Ne,!1)),console.log("mess---:",ct.data)})}const ze=()=>me(void 0,null,function*(){console.log("data:",Ce);let ct=Ce;Ce.startsWith("http")||(ct=location.origin+ct);let mt=new URL(ct).pathname.split("/").pop();const nt=yield(0,oe.gJ)({attachment_id:mt});nt.url=ft+nt.url,$e(nt)}),Me=()=>{if(Ce.startsWith("http")||Ce.startsWith("blob:")){Ge();return}(0,z.Sv)(ge||"educoder",Ce,ge)},Ge=()=>{Le&&(0,se.fc)({id:Le==null?void 0:Le.id,watch_type:1,course_id:Le==null?void 0:Le.course_id}),(0,z.Nd)(ge||"educoder",decodeURIComponent(Ce))};return E.createElement("div",{style:he({},_e||{}),className:`${He&&wt.bgBlack} ${de?wt.wrp:"hide"}`},Ee&&E.createElement("div",{className:wt.close,ref:lt},!!et&&E.createElement(x.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>lt.current},E.createElement("span",{onClick:()=>{Oe(),et()}},E.createElement("i",{className:"icon-yulanpizhu"}))),!Xe&&E.createElement(x.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>lt.current},E.createElement("span",{onClick:Ge},E.createElement("i",{className:"icon-quxiaozhiding"}))),Te&&E.createElement(x.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>lt.current},E.createElement("span",{className:"",onClick:()=>{const ct=document.getElementById("pdfiframe");window.addEventListener("message",Ne,!1),setTimeout(()=>{ct.contentWindow.postMessage("getData","*")},300)}},E.createElement("i",{className:"icon-baocun"}))),E.createElement(x.Z,{title:"\u5173\u95ED",getPopupContainer:()=>lt.current},E.createElement("span",{className:"",onClick:()=>{Oe()}},E.createElement("i",{className:"icon-guanbi1"})))),E.createElement("div",{className:`${wt[De]} ${De} ${wt.monaco} ${de==="txt"?"show":"hide"}`},de==="txt"&&E.createElement(E.Fragment,null,E.createElement(ve.ZP,he({},Se)))),de==="audio"&&E.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}),de==="video"&&E.createElement(E.Fragment,null,(Ce==null?void 0:Ce.indexOf("http"))>-1?E.createElement("video",{controls:!0,src:`${Ce}`,autoPlay:!0}):E.createElement("video",{controls:!0,src:`data:video/mp4;base64,${Ce}`,autoPlay:!0})),de==="office"&&Ye&&E.createElement("iframe",{src:`${Ke}/office.html?key=${Ye.key}&url=${btoa(Ye.url)}&callbackUrl=${ft+(Ye.callbackUrl||"")}&fileType=${Ye.fileType}&title=${Ye.title||""}&model=${be}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!Xe}`}),de==="html"&&E.createElement("iframe",{src:Ce+"&disposition=inline"}),de==="pdf"&&Te&&E.createElement("iframe",{id:"pdfiframe",src:`${Ke}/js/pdfview/index.html?filename=${ge||"educoder.pdf"}&url=${encodeURIComponent(Ce)}&disabledDownload=${!!Xe}&model=${be}`}),de==="pdf"&&!Te&&E.createElement("embed",{className:wt.embed,src:Ce+"#toolbar=0&statusbar=0&navpanes=0&scrollbars=0"}),de==="image"&&E.createElement("img",{src:`${(Ce==null?void 0:Ce.indexOf("http://"))>-1||(Ce==null?void 0:Ce.indexOf("https://"))>-1?"":"data:image/png;base64,"}${Ce}`}),(de==="other"||de==="download")&&E.createElement(E.Fragment,null,st?E.createElement(ie.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:E.createElement(y.ZP,{icon:E.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Me,disabled:Xe},"\u4E0B\u8F7D")}):E.createElement(y.ZP,{type:"primary",size:"middle",onClick:Me,disabled:Xe},E.createElement(we.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),de==="flowChart"&&E.createElement("div",{className:"embed"},E.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"})))}},59944:function(Kt,_t,Ve){"use strict";Ve.d(_t,{z:function(){return Se},Z:function(){return De}});var Je=Ve(59301),wt=Ve(54196),y=Ve(58489),we=Ve(64018),ve=Ve(80360),x=Ve(26869),z=Ve(31735),oe=Ve(15342),ie=Ve(44104),ee=Ve(7939),se=Ve(1012),E=Ve(47199),te=Ve(59301),le=({html:_e})=>{const Ee=(0,Je.useRef)(null),Oe=(0,Je.useRef)(null),He=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,Je.useEffect)(()=>{const Xe=Ee.current.attachShadow({mode:"open"});Oe.current=document.createElement("div"),Oe.current.className="markdown-body",Oe.current.innerHTML=_e,Xe.appendChild(Oe.current);const et=document.createElement("style");return et.textContent=He,Xe.appendChild(et),()=>{Xe.innerHTML=""}},[]),(0,Je.useEffect)(()=>{Oe.current&&(Oe.current.innerHTML=_e)},[_e]),te.createElement("div",{ref:Ee})};function ue(_e){const Ee=["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"],Oe=new RegExp(`\\b(${Ee.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return _e.replace(Oe,"").trim()}var ce={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},he=Object.defineProperty,me=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ce=(_e,Ee,Oe)=>Ee in _e?he(_e,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):_e[Ee]=Oe,Te=(_e,Ee)=>{for(var Oe in Ee||(Ee={}))fe.call(Ee,Oe)&&Ce(_e,Oe,Ee[Oe]);if(me)for(var Oe of me(Ee))be.call(Ee,Oe)&&Ce(_e,Oe,Ee[Oe]);return _e};const Pe="@\u2581\u2581@",ke="@\u2581@",de=/<pre[^>]*>/g;function ge(_e){let Ee=document.createElement("div");return Ee.innerHTML=_e,Ee.childNodes.length===0?"":Ee.childNodes[0].nodeValue}const Se=(_e,Ee)=>{_e=_e||"";const Oe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,He=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Xe=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,et=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ee?_e.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Oe,(st,Le,Ue,rt,ot,it,Ye)=>{const $e=Le||rt||it,Ke=Ue||ot||Ye||"?";return x.Z.API_SERVER+"/api/attachments/"+$e+Ke+"&t="+(0,z.Jn)($e,Date.now())+(st.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(_e=_e.replace(et,(st,Le,Ue,rt,ot,it,Ye)=>{const $e=Le||rt||it,Ke=Ue||ot||Ye||"?";return x.Z.API_SERVER+"/attachments/download/"+$e+Ke+"&t="+(0,z.Jn)($e,Date.now())+(st.indexOf(")")>-1?")":"&")}).replace(Oe,(st,Le,Ue,rt,ot,it,Ye)=>{const $e=Le||rt||it,Ke=Ue||ot||Ye||"?";return x.Z.API_SERVER+"/api/attachments/"+$e+Ke+"&t="+(0,z.Jn)($e,Date.now())+(st.indexOf(")")>-1?")":"&")}).replace(He,(st,Le,Ue,rt,ot)=>{const it=Le||rt,Ye=Ue||ot||"";return'"'+x.Z.API_SERVER+"/api/attachments/"+it+Ye+it+Ye+"&t="+(0,z.Jn)(it,Date.now())}).replace(Xe,(st,Le,Ue,rt,ot)=>{const it=Le||rt,Ye=Ue||ot||"";return"("+x.Z.API_SERVER+"/files/uploads/"+it+Ye+it+Ye+"&t="+(0,z.Jn)(it,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,`
`),_e)};var De=({value:_e="",edit:Ee=!1,className:Oe,showTextOnly:He,showLines:Xe,style:et={},stylesPrev:st={},highlightKeywords:Le,showProgramFill:Ue,isProgramFill:rt,disabledFill:ot=!1,programFillValue:it,openEditor:Ye=()=>{},onFillChange:$e=tt=>{},onFillBlur:Ke=()=>{},onFillFocus:ft=()=>{}})=>{let tt=ue(String(_e||""));const ut=(0,Je.useRef)(),lt=(0,Je.useRef)(),[Ze,Ne]=(0,Je.useState)(""),[ze,Me]=(0,Je.useState)("office"),[Ge,ct]=(0,Je.useState)([]),mt=(0,Je.useRef)("a"+(0,se.Z)()),nt={},Ae=ht=>/<style[\s\S]*?>/i.test(ht||""),je=(ht,kt,Tt)=>{const Pt=document.createElement(ht===ke?"input":"textarea");Pt.style.width="100%",Pt.style.height=ht===ke?"40px":"151px",Pt.rows=5,Pt.spellcheck=!1,Pt.name="edu-program-fill",Pt.placeholder="\u8BF7\u8F93\u5165",Pt.dataset.id=kt;const Vt=Object.keys(nt).length;return nt[Vt]=Pt,`<span class="edu-program-fill-wrap ${ht===ke?"":"show"}" style="width:${ht===ke?"600px":"100%"}" title=${Tt||""}><span>${Pt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function We(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 at=ht=>!He&&Ae(tt)?ht:ht.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(kt,Tt){let Pt=Tt.replace(/(\n|\r)/g,"").split("}"),Vt=[];return Pt.map(vr=>{vr!=""&&Vt.push(`.${mt.current} ${vr}`)}),`<style>${Vt.join("}")}</style>`}),Re=(0,Je.useMemo)(()=>{try{const Pt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Vt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,vr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Yt=/\(\/attachments\/download\//g;tt=tt.replace(Yt,"("+x.Z.API_SERVER+"/attachments/download/").replace(Pt,"("+x.Z.API_SERVER+"/api/attachments/").replace(Vt,'"'+x.Z.API_SERVER+"/api/attachments/").replace(vr,'"'+x.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(Pt){}if(Ue){let Pt=-1;return tt=tt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(Vt,vr,Yt){var Cr;return++Pt,je(Vt,Pt,(Cr=it==null?void 0:it[Pt])==null?void 0:Cr.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${at(tt||"")}</pre>`}let ht=at(tt);ht=(0,y.ZP)(ht);const kt=(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,(Pt,Vt)=>{const{type:vr,expression:Yt}=kt[Vt];return(0,oe.renderToString)(ge(Yt)||"",{displayMode:vr==="block",throwOnError:!1,output:"html"})}),ht=ht.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const Tt=document.createElement("div");if(Tt.innerHTML=ht,He)return Tt.innerText;if(Le){const Pt=Le.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Qe(Tt,Pt),Tt.innerHTML}return setTimeout(()=>yt(),500),Tt.innerHTML},[tt,Le]);(0,Je.useEffect)(()=>{Ie.current&&Ie.current.querySelectorAll(["input","textarea"]).forEach(kt=>{kt.oninput=xe,kt.onblur=ye,kt.onfocus=Fe})},[Ge]),(0,Je.useEffect)(()=>{var ht,kt,Tt,Pt,Vt;if(it!=null&&it.length)try{const vr=Ie.current.querySelectorAll(".edu-program-fill-score"),Yt=Ie.current.querySelectorAll('[name="edu-program-fill"]');for(const[Cr,jr]of Yt.entries())jr.value=((ht=it==null?void 0:it[Cr])==null?void 0:ht.value)||"",((kt=it==null?void 0:it[Cr])==null?void 0:kt.type)==="warning"?jr.className="program-fill-warning":((Tt=it==null?void 0:it[Cr])==null?void 0:Tt.type)==="success"?jr.className="program-fill-success":jr.className="";for(const[Cr,jr]of vr.entries())jr.innerHTML=(Pt=it==null?void 0:it[Cr])!=null&&Pt.score?`${(Vt=it==null?void 0:it[Cr])==null?void 0:Vt.score}\u5206`:"";ct(it)}catch(vr){console.log(vr,"error")}},[it]);const xe=ht=>{Ge[ht.target.dataset.id]=Ge[ht.target.dataset.id]||{},Ge[ht.target.dataset.id].value=ht.target.value,ct([...Ge]),$e(Ge,ht.target.dataset.id)},ye=ht=>{Ge[ht.target.dataset.id]=Ge[ht.target.dataset.id]||{},Ge[ht.target.dataset.id].value=ht.target.value,ct([...Ge]),Ke(Ge,ht.target.dataset.id)},Fe=ht=>{Ge[ht.target.dataset.id]=Ge[ht.target.dataset.id]||{},Ge[ht.target.dataset.id].value=ht.target.value,ct([...Ge]),ft(Ge,ht.target.dataset.id)};function Qe(ht,kt){return ht.childNodes.forEach(Tt=>{var Pt;if(Tt.childNodes.length>0)Qe(Tt,kt);else if(Tt.nodeName!=="IMG")if(Tt.innerHTML)Tt.innerHTML=(Pt=Tt.innerHTML)==null?void 0:Pt.replace(new RegExp(kt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Vt=document.createElement("span");Vt.innerHTML=Tt.textContent.replace(new RegExp(kt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Tt.replaceWith(Vt)}})}const Ie=(0,Je.useRef)();y.jb.WebkitLineClamp=Xe,Xe&&(et=Te(Te({},et),y.jb));function vt(ht){let kt=ht.target;if(kt.tagName.toUpperCase()==="A"){let Tt=kt.getAttribute("href");if(Tt.indexOf("office")>-1)ht.preventDefault(),Ne(Tt),Me("office");else if(Tt.indexOf("application/pdf")>-1)ht.preventDefault(),Ne(Tt),Me("pdf");else if(Tt.indexOf("text/html")>-1)ht.preventDefault(),Ne(Tt),Me("html");else if(Tt.startsWith("#")){ht.preventDefault();let Pt=document.getElementById(Tt.replace("#",""));Pt&&Pt.scrollIntoView(!0)}}}const yt=()=>{var ht;const kt=(ht=Ie.current)==null?void 0:ht.querySelectorAll("video");kt==null||kt.forEach(Tt=>{if(Tt.oncontextmenu=()=>!1,Tt.src.indexOf(".m3u8")>-1&&!Tt.canPlayType("application/vnd.apple.mpegurl")){if(ve.ZP.isSupported()){var Pt=new ve.ZP;Pt.loadSource(Tt.src),Pt.attachMedia(Tt)}}})};(0,Je.useEffect)(()=>{if(Ie.current&&Re&&Re.match(de)&&window.PR.prettyPrint(),Ie.current)return Ie.current.addEventListener("click",vt),()=>{var ht;(ht=Ie.current)==null||ht.removeEventListener("click",vt),(0,y.AL)(),(0,y.Iy)()}},[Re,Ie.current,vt]);const xt=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&&(lt.current=ht.target.id)):ut.current.style.display="none"},bt=()=>{ut.current.style.display="none"};return(0,Je.useEffect)(()=>{var ht;const kt=Tt=>{Tt.preventDefault(),Tt.clipboardData.setData("text",window.getSelection().toString())};return(ht=Ie.current)==null||ht.addEventListener("copy",kt),()=>{var Tt;(Tt=Ie.current)==null||Tt.removeEventListener("copy",kt)}},[Ie.current]),Je.createElement("div",{style:{position:"relative"},onMouseLeave:bt},He&&Je.createElement("div",{ref:Ie,className:`${ce.mdBody} `},Re),!He&&!Ae(Re)&&Je.createElement("div",{ref:Ie,style:Te({},et),onMouseOver:xt,className:`${Oe||""} ${ot?"disabled-fill":""} markdown-body ${ce.mdBody} ${mt.current}`,dangerouslySetInnerHTML:{__html:Re}}),!He&&Ae(Re)&&Je.createElement(le,{html:Re}),Je.createElement("div",{ref:ut,className:`${ce.button} ${Ee?"":ce.previewFlowChart}`},Je.createElement(ie.Z,null,Je.createElement(ee.ZP,{onClick:()=>{Ee?Ye(lt.current):(Ne(lt.current),Me("flowChart"))}},Ee?"\u7F16\u8F91":"\u9884\u89C8"))),Je.createElement(E.Z,{close:!0,data:Ze,type:Ze!=null&&Ze.length?ze:"",style:Te({},st),onClose:()=>Ne("")}))}},34282:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return we}});var Je=Ve(59301),wt=Ve(94276),y=Ve(59301),we=({defaultX:ve="40%",leftChild:x,rightChild:z,className:oe,hideResize:ie=!1})=>{const[ee,se]=(0,Je.useState)(ve),E=(0,Je.useRef)();function te(){E.current=!0}(0,Je.useEffect)(()=>{function ue(he){E.current&&(wt.Z.publish("resize-move-bar",he),se(he.pageX))}function ce(){E.current=!1}return window.addEventListener("mousemove",ue),window.addEventListener("mouseup",ce),()=>{window.removeEventListener("mousemove",ue),window.removeEventListener("mouseup",ce)}},[]);const re=typeof ee=="number"&&ee!==.01?`${ee}px`:ve,le=`calc(100% - ${ie?"0px":"4px"} - ${re})`;return y.createElement("div",{className:`split-panel-container ${oe}`},y.createElement("section",{style:{width:re,display:ee===.01?"none":""}},x),y.createElement("section",{className:"resize-x-bar",onMouseDown:te},y.createElement("a",{className:"btn-resize"},y.createElement("svg",{width:"16",height:"13",viewBox:"0 0 16 13"},y.createElement("path",{d:"M12.245 7.53H5.647v1.882h6.598v2.823L16 8.471l-3.755-3.765V7.53zM10.353 4.706H3.755v2.823L0 3.765 3.755 0v2.824h6.598v1.882z"})))),y.createElement("section",{style:{width:le}},z))}},13683:function(Kt,_t,Ve){"use strict";Ve.d(_t,{cT:function(){return de},pe:function(){return Te}});var Je=Ve(59301),wt=Ve(14566),y=Ve(6767),we=Ve(97013),ve=Ve(28209),x=Ve.n(ve),z=Ve(1012),oe=Ve(58106),ie=Ve(47257),ee=Ve.n(ie),se=Object.defineProperty,E=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ce=(Se,De,_e)=>De in Se?se(Se,De,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Se[De]=_e,he=(Se,De)=>{for(var _e in De||(De={}))le.call(De,_e)&&ce(Se,_e,De[_e]);if(re)for(var _e of re(De))ue.call(De,_e)&&ce(Se,_e,De[_e]);return Se},me=(Se,De)=>E(Se,te(De)),fe=(Se,De)=>{var _e={};for(var Ee in Se)le.call(Se,Ee)&&De.indexOf(Ee)<0&&(_e[Ee]=Se[Ee]);if(Se!=null&&re)for(var Ee of re(Se))De.indexOf(Ee)<0&&ue.call(Se,Ee)&&(_e[Ee]=Se[Ee]);return _e},be=(Se,De,_e)=>new Promise((Ee,Oe)=>{var He=st=>{try{et(_e.next(st))}catch(Le){Oe(Le)}},Xe=st=>{try{et(_e.throw(st))}catch(Le){Oe(Le)}},et=st=>st.done?Ee(st.value):Promise.resolve(st.value).then(He,Xe);et((_e=_e.apply(Se,De)).next())});const{Dragger:Ce}=wt.default,Te=Se=>{const De="bf3c199c2470cb477d907b1e0917c17b",_e="5183666c72eec9e4";var Ee=x().enc.Utf8.parse(De);let Oe=x().enc.Utf8.parse(_e);var He=x().AES.decrypt(Se,Ee,{iv:Oe,mode:x().mode.CBC});return He.toString(x().enc.Utf8)};let Pe;const ke=Se=>be(void 0,[Se],function*({identifier:De,oldFilename:_e,newFilename:Ee}){var Oe,He,Xe,et,st,Le;const Ue=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});Ue.data=JSON.parse(Te(Ue.data));const rt=new OSS({endpoint:(Oe=Ue==null?void 0:Ue.data)==null?void 0:Oe.end_point,region:(He=Ue==null?void 0:Ue.data)==null?void 0:He.region,accessKeyId:(Xe=Ue==null?void 0:Ue.data)==null?void 0:Xe.access_key_id,accessKeySecret:(et=Ue==null?void 0:Ue.data)==null?void 0:et.access_key_secret,bucket:(st=Ue==null?void 0:Ue.data)==null?void 0:st.bucket,stsToken:(Le=Ue==null?void 0:Ue.data)==null?void 0:Le.security_token});return new Promise((ot,it)=>{console.log(11111,`${De}/${_e}`,`${De}/${Ee}`,Ue.data),rt.copy(`/${De}/${_e}`,`/${De}/${Ee}`).then(Ye=>{console.log("\u62F7\u8D1D\u6210\u529F",Ye)}).catch(Ye=>{console.log(Ye)})})}),de=(Se,De,_e)=>be(void 0,null,function*(){var Ee,Oe,He,Xe,et,st;De.file_name=Se.name;const Le=yield(0,we.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Te(Le.data)),Le.data=JSON.parse(Te(Le.data));const Ue=Se.name.split(".");Ue.pop();const rt=De.realFileName?Ue.join(""):(0,z.Z)(),ot=new(ee())({endpoint:(Ee=Le==null?void 0:Le.data)==null?void 0:Ee.end_point,region:(Oe=Le==null?void 0:Le.data)==null?void 0:Oe.region,accessKeyId:(He=Le==null?void 0:Le.data)==null?void 0:He.access_key_id,accessKeySecret:(Xe=Le==null?void 0:Le.data)==null?void 0:Xe.access_key_secret,bucket:(et=Le==null?void 0:Le.data)==null?void 0:et.bucket,stsToken:(st=Le==null?void 0:Le.data)==null?void 0:st.security_token});return new Promise((it,Ye)=>{var $e;ot.multipartUpload(`${rt}`,new Blob([Se],{type:Se.type}),me(he({timeout:200*1e3,partSize:102400},_e),{callback:{url:($e=Le==null?void 0:Le.data)==null?void 0:$e.callback_url,host:Le==null?void 0:Le.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,we.rz)(De)}})).then(function(Ke){var ft;Se.response=(ft=Ke.data)==null?void 0:ft.data,it(Ke==null?void 0:Ke.data)}).catch(function(Ke){Ye(Ke),console.log("err:",Ke)})})}),ge=Se=>{var De=Se,{user:_e,cancelUpload:Ee}=De,Oe=fe(De,["user","cancelUpload"]);const[He,Xe]=(0,Je.useState)([]);let[et,st]=(0,Je.useState)();const Le={onRemove:rt=>{Xe([...He.filter(ot=>ot.name!==rt.name)]),Oe.onChange(He.filter(ot=>ot.name!==rt.name))},disabled:Oe.disabled,multiple:!0,fileList:He==null?void 0:He.map(rt=>rt.file),customRequest:()=>{},beforeUpload:rt=>be(void 0,null,function*(){let ot=Oe.maxSize||1073741824;if(He.filter(it=>it.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):(He.push({name:rt.name,file:rt}),Xe([...He]),Oe.onChange(He),!1)})},Ue=(rt,ot)=>be(void 0,null,function*(){var it,Ye,$e,Ke,ft,tt;ot.file_name=rt.name;const ut=rt.name,lt=yield(0,we.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(lt.data=JSON.parse(Te(lt.data)),(lt==null?void 0:lt.status)!==0){He[He.findIndex(ze=>ze.name===ut)].status="error",He[He.findIndex(ze=>ze.name===ut)].file.status="error",Oe.onChange(He),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}et=new(ee())({endpoint:(it=lt==null?void 0:lt.data)==null?void 0:it.end_point,region:(Ye=lt==null?void 0:lt.data)==null?void 0:Ye.region,accessKeyId:($e=lt==null?void 0:lt.data)==null?void 0:$e.access_key_id,accessKeySecret:(Ke=lt==null?void 0:lt.data)==null?void 0:Ke.access_key_secret,bucket:(ft=lt==null?void 0:lt.data)==null?void 0:ft.bucket,stsToken:(tt=lt==null?void 0:lt.data)==null?void 0:tt.security_token}),console.log(rt,"file"),st(et);const Ze=rt.name.split(".");Ze.pop();const Ne=ut.indexOf(".")>-1?ot.realFileName?Ze.join("."):(0,z.Z)():ut;return new Promise((ze,Me)=>{var Ge;try{et.multipartUpload(`${Oe.identifier}/${Ne}${ut.indexOf(".")>-1?"."+ut.split(".").pop():""}`,new Blob([rt.file],{type:rt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(ct,mt,nt)=>{try{console.log("\u8FDB\u5EA6",ct,mt,nt);const Ae=He.findIndex(je=>je.name===ut);He[Ae].file.percent=ct*100,He[Ae].tempCheckpoint=mt,Xe([...He])}catch(Ae){}},checkpoint:He[He.findIndex(ct=>ct.name===ut)].tempCheckpoint,callback:{customValue:{id:ut+""},url:(Ge=lt==null?void 0:lt.data)==null?void 0:Ge.callback_url,host:lt==null?void 0:lt.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(ct){var mt,nt,Ae;const je=He.findIndex(at=>at.name===ut);let We="done";if(((mt=ct.data)==null?void 0:mt.status)===0){rt.response=(nt=ct.data)==null?void 0:nt.data;const at=He.findIndex(Re=>Re.name===ut);He[at].status="done",He[at].file.status="done"}else y.ZP.warning((Ae=ct.data)==null?void 0:Ae.message),We="error";He[je].status=We,He[je].file.status=We,Oe.onChange(He),ze(ct==null?void 0:ct.data)}).catch(function(ct){He[He.findIndex(mt=>mt.name===ut)].status="error",He[He.findIndex(mt=>mt.name===ut)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Xe([...He]),Oe.onChange(He),Me(ct),console.log("err:",ct)})}catch(ct){}})});return(0,Je.useEffect)(()=>{He.every(rt=>rt==="done"||rt==="error")&&Oe.onComplete(He)},[He]),(0,Je.useEffect)(()=>{Ee&&(et==null||et.cancel())},[Ee]),(0,Je.useEffect)(()=>{Oe.uploading&&He.map(rt=>be(void 0,null,function*(){var ot;if((!rt.status||rt.status==="error")&&!Ee){rt.status="uploading",rt.file.status="uploading";const it=yield Ue(rt,{login:(ot=_e==null?void 0:_e.userInfo)==null?void 0:ot.login,container_type:Oe.container_type,container_id:Oe.container_id,description:Oe.description,realFileName:Oe.realFileName})}}))},[Oe.uploading]),Je.createElement(Ce,me(he({},Le),{height:Oe.height,className:Oe.className}),Je.createElement("p",{className:"ant-upload-hint"},Oe.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};_t.ZP=(0,oe.connect)(({loading:Se,globalSetting:De,user:_e})=>({globalSetting:De,loading:Se.models.competitions,user:_e}))(ge)},52504:function(Kt,_t,Ve){"use strict";Ve.d(_t,{h:function(){return be},Z:function(){return fe}});var Je=Ve(59301),wt=Ve(82326),y=Ve(28284),we=Ve(7939),ve=Ve(89780),x=Ve.n(ve),z=Ve(2018),oe=Object.defineProperty,ie=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,re=(Ce,Te,Pe)=>Te in Ce?oe(Ce,Te,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):Ce[Te]=Pe,le=(Ce,Te)=>{for(var Pe in Te||(Te={}))E.call(Te,Pe)&&re(Ce,Pe,Te[Pe]);if(se)for(var Pe of se(Te))te.call(Te,Pe)&&re(Ce,Pe,Te[Pe]);return Ce},ue=(Ce,Te)=>ie(Ce,ee(Te));const ce=wt.default.Option,he={labelCol:{span:4},wrapperCol:{span:20}},me={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 fe=({callback:Ce,onCancel:Te})=>{const[Pe,ke]=(0,Je.useState)("python");function de(Se){ke(me[Se][1])}function ge(Se){Ce(Se)}return Je.createElement(y.default,ue(le({},he),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ge,style:{width:500}}),Je.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Je.createElement(wt.default,{getPopupContainer:Se=>Se.parentNode,onChange:de},Object.keys(me).map(Se=>Je.createElement(ce,{key:Se,value:Se},me[Se][0])))),Je.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Je.createElement(be,{mode:Pe})),Je.createElement("div",{className:"flex-container flex-end"},Je.createElement(we.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Je.createElement(we.ZP,{type:"ghost",onClick:Te},"\u53D6\u6D88")))};function be({value:Ce,onChange:Te,mode:Pe,options:ke={}}){const de=(0,Je.useRef)(),[ge,Se]=(0,Je.useState)();return(0,Je.useEffect)(()=>{if(ge){let De=function(_e){const Ee=_e.getValue();Te&&Te(Ee)};return ge.on("change",De),()=>{ge.off("change",De)}}},[ge,Te]),(0,Je.useEffect)(()=>{ge&&ge.setOption("mode",Pe)},[ge,Pe]),(0,Je.useEffect)(()=>{ge&&(Ce!==ge.getValue()||Ce==="")&&setTimeout(()=>{ge.setValue(Ce||"")},300)},[ge,Ce]),(0,Je.useEffect)(()=>{if(de.current&&!ge){const De=x().fromTextArea(de.current,le({mode:Pe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ke));Se(De)}},[de.current,ge]),Je.createElement("div",{className:"my-codemirror-container"},Je.createElement("textarea",{ref:de}))}},77834:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return or}});var Je=Ve(59301),wt=Ve(58106),y=Ve(89780),we=Ve.n(y),ve=Ve(76374),x=Ve(2018),z=Ve(6313),oe=Ve(25717),ie=Ve(99498),ee=Ve(25419),se=Ve(67549),E=Ve(59944),te=({value:Zt="",className:ir,showTextOnly:Nr,showLines:gr,style:Hr={}})=>{const Qr=(0,Je.useMemo)(()=>"",[Zt]);return Je.createElement(Je.Fragment,null,Je.createElement("div",{dangerouslySetInnerHTML:{__html:Qr}}))},re=Object.defineProperty,le=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,fe=(Zt,ir,Nr)=>ir in Zt?re(Zt,ir,{enumerable:!0,configurable:!0,writable:!0,value:Nr}):Zt[ir]=Nr,be=(Zt,ir)=>{for(var Nr in ir||(ir={}))he.call(ir,Nr)&&fe(Zt,Nr,ir[Nr]);if(ce)for(var Nr of ce(ir))me.call(ir,Nr)&&fe(Zt,Nr,ir[Nr]);return Zt},Ce=(Zt,ir)=>le(Zt,ue(ir));let Te=[{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 Pe({onActionCallback:Zt,title:ir,icon:Nr,actionName:gr,className:Hr="",children:Qr}){function rn(){Zt(gr)}return Je.createElement("a",{title:ir,className:Hr,onClick:rn},Je.createElement("i",{className:`${Nr}`}),Qr)}var ke=({watch:Zt,showNullButton:ir,showNullProgramButton:Nr,onActionCallback:gr,fullScreen:Hr,insertTemp:Qr,hidetoolBar:rn,extraUse:Kr})=>{const Wr=[...Te,{title:`${Zt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Zt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Je.createElement("ul",{className:"markdown-toolbar-container"},!rn&&Wr.map((dn,pr)=>Je.createElement("li",{key:pr},dn.actionName?Je.createElement(Pe,Ce(be({},dn),{onActionCallback:gr})):Je.createElement("span",{className:"v-line"}))),ir?Je.createElement("li",null,Je.createElement(Pe,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:gr},Je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Nr?Je.createElement(Je.Fragment,null,Je.createElement("li",null,Je.createElement(Pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:gr},Je.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),Je.createElement("li",null,Je.createElement(Pe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:gr},Je.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Qr&&Je.createElement("li",null,Je.createElement(Pe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Qr}`,onActionCallback:gr},Je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Kr&&Je.createElement("li",null,Kr),Je.createElement("li",{className:"btn-full-screen"},Je.createElement(Pe,{icon:`${Hr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Hr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:gr})))},de=Ve(35990),ge=Ve(28284),Se=Ve(37568),De=Ve(7939),_e=Object.defineProperty,Ee=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,st=(Zt,ir,Nr)=>ir in Zt?_e(Zt,ir,{enumerable:!0,configurable:!0,writable:!0,value:Nr}):Zt[ir]=Nr,Le=(Zt,ir)=>{for(var Nr in ir||(ir={}))Xe.call(ir,Nr)&&st(Zt,Nr,ir[Nr]);if(He)for(var Nr of He(ir))et.call(ir,Nr)&&st(Zt,Nr,ir[Nr]);return Zt},Ue=(Zt,ir)=>Ee(Zt,Oe(ir));const rt={labelCol:{span:4},wrapperCol:{span:20}};var ot=({callback:Zt,onCancel:ir})=>{function Nr(gr){Zt(gr)}return Je.createElement(ge.default,Ue(Le({},rt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Nr,style:{width:500}}),Je.createElement(ge.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Je.createElement(Se.default,null)),Je.createElement(ge.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Je.createElement(Se.default,null)),Je.createElement("div",{className:"flex-container flex-end"},Je.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Je.createElement(De.ZP,{type:"ghost",onClick:ir},"\u53D6\u6D88")))},it=Ve(52504),Ye=Ve(82441),$e=Ve(62957),Ke=Ve(77019),ft=Ve(1986),tt=Ve(59301),ut=({callback:Zt,onCancel:ir})=>{const Nr=document.createElement("canvas"),gr=Nr.getContext("2d");Nr.width=1e3,Nr.height=800,gr.fillStyle="#ffffff",gr.fillRect(0,0,Nr.width,Nr.height);const Hr=Nr.toDataURL("image/png");return tt.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},tt.createElement(Ke.Z,{style:{height:"100vh"}},tt.createElement(ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Hr,visible:!0,title:String(Date.now())},onOk:Qr=>{Zt({src:Qr.url})},onClose:ir})))},lt=Ve(30641),Ze=Ve(5269),Ne=Ve(6767),ze={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},Me=Ve(59301),ct=(0,Je.forwardRef)(({onCancel:Zt,editImgId:ir,callback:Nr},gr)=>{let Hr=(0,Je.useRef)(),Qr=(0,Je.useRef)(),rn=(0,Je.useRef)(),Kr=(0,Je.useRef)(!1);const Wr=(0,Je.useRef)(!1);console.log("ref:",gr);const[dn,pr]=(0,Je.useState)(0),[Wt,Sr]=(0,Je.useState)("100vh");return(0,Je.useEffect)(()=>{pr(1)},[]),(0,Je.useImperativeHandle)(gr,()=>({setHeight:Sr})),Me.createElement("div",{ref:Wr,className:"body-overflow-initial"},Me.createElement(lt.Z,{width:"100vw",height:Wt,footer:null,closable:!0,placement:"bottom",open:!!dn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ze.drawerWrap}`,onClose:()=>{window.saveDrawData(Gr=>{Nr({src:`/api/attachments/${Gr}`,id:Gr})})},title:Me.createElement(Ke.Z,{align:"middle"},Me.createElement(Ze.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Me.createElement(Ze.Z,{onClick:()=>{Sr(Wt==="60px"?"100vh":"60px")}},Me.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),Me.createElement(Ze.Z,{onClick:()=>{window.saveDrawData(Gr=>{if(Gr===null){Ne.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Ne.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),Nr({src:`/api/attachments/${Gr}`,id:Gr,disabledClose:!0})})}},Me.createElement(De.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},Me.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${ir||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Qr})))}),mt=Ve(26869),nt=Ve(47889),Ae=Ve(71051);const je=nt.ZP.Group,We={margin:"0 8px"};var at=({callback:Zt,onCancel:ir})=>{function Nr(gr){Zt(gr)}return Je.createElement(ge.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Nr},Je.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Je.createElement("span",{style:We},"\u5355\u5143\u683C\u6570\uFF1A"),Je.createElement("span",{style:We},"\u884C\u6570"),Je.createElement(ge.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Je.createElement(Ae.Z,null)),Je.createElement("span",{style:We},"\u5217\u6570"),Je.createElement(ge.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Je.createElement(Ae.Z,null))),Je.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Je.createElement("span",{style:We},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Je.createElement(ge.default.Item,{name:"align"},Je.createElement(je,null,Je.createElement(nt.ZP,{value:"default"},Je.createElement("i",{className:"fa fa-align-justify"})),Je.createElement(nt.ZP,{value:"left"},Je.createElement("i",{className:"fa fa-align-left"})),Je.createElement(nt.ZP,{value:"center"},Je.createElement("i",{className:"fa fa-align-center"})),Je.createElement(nt.ZP,{value:"right"},Je.createElement("i",{className:"fa fa-align-right"}))))),Je.createElement("div",{className:"flex-container flex-end"},Je.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Je.createElement(De.ZP,{type:"ghost",onClick:ir},"\u53D6\u6D88")))},Re=Ve(71411),xe=Ve(75544),ye=Ve.n(xe),Qe=(0,Je.forwardRef)(({use3d:Zt,width:ir,height:Nr,callback:gr,showSaveButton:Hr},Qr)=>{const rn=(0,Je.useRef)(),Kr=(0,Je.useRef)(),[Wr,dn]=(0,Je.useState)(!1),pr=(0,Je.useRef)({id:rn,appName:"graphing",width:ir||1e3,height:Nr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Je.useEffect)(()=>{Kr.current=new(ye())(pr.current,!0),window.onload=function(){Kr.current.inject("applet_container")}},[]);const Wt=()=>{var Sr=window.ggbApplet.getPNGBase64(1,!0,72);return gr&&gr(Sr),Sr};return(0,Je.useEffect)(()=>{pr.current.appName=Wr?"3D":"graphing",Kr.current.inject("applet_container")},[Wr]),(0,Je.useEffect)(()=>{dn(Zt)},[Zt]),(0,Je.useImperativeHandle)(Qr,()=>({getImgData:Wt})),Je.createElement(Je.Fragment,null,Je.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:rn}),Je.createElement(Ke.Z,{align:"middle"},Je.createElement(Ze.Z,{flex:1},Je.createElement(Re.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Wr,onChange:Sr=>dn(Sr)})),Je.createElement(Ze.Z,null,Je.createElement(De.ZP,{size:"large",onClick:Wt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ie=Ve(50047);const vt="link",yt="upload-image",xt="add-flowchart",bt="draw-image",ht="add-flowchart",kt="code-block",Tt="add-table",Pt="------------",Vt={default:Pt,left:`:${Pt}`,center:`:${Pt}:`,right:`${Pt}:`};var vr=Ve(61904),Yt=Ve(31735);function Cr(){}let jr=0;const Pr=1e4,Mr="\u2581",Xr="@\u2581\u2581@",mn="@\u2581@",cn=`
**\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`,Yr=["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 kn(Zt){return/^\d+$/.test(Zt)?`${Zt}px`:Zt}const Dr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ar={[Dr+"-B"]:"bold",[Dr+"-I"]:"italic"},fn={[vt]:"\u6DFB\u52A0\u94FE\u63A5",[kt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[yt]:"\u6DFB\u52A0\u56FE\u7247",[bt]:"\u6DFB\u52A0\u753B\u56FE",[xt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Tt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var or=({defaultValue:Zt="",onChange:ir,width:Nr="100%",height:gr=400,miniToolbar:Hr=!1,isFocus:Qr=!1,watch:rn,insertTemp:Kr,mode:Wr="markdown",id:dn="markdown-editor-id",showResizeBar:pr=!1,noStorage:Wt=!1,showNullButton:Sr=!1,showNullProgramButton:Gr=!1,hidetoolBar:gn=!1,fullScreen:Ct=!1,onBlur:Dt,onCMBeforeChange:nr,onFullScreen:Gt,className:jt="",disablePaste:tr=!1,disabled:hr=!1,disabledFill:fr=!1,placeholder:kr="",values:sr="",extraUse:xr,onAddBlank:ar})=>{const[$t,lr]=(0,Je.useState)(null),[br,Rr]=(0,Je.useState)(Zt),[Fr,vn]=(0,Je.useState)(rn),[On,zr]=(0,Je.useState)(Ct),[Er,Ur]=(0,Je.useState)(""),[wr,jn]=(0,Je.useState)(0),[Hn,Ln]=(0,Je.useState)(gr),[Vn,Yn]=(0,Je.useState)(!1),[Gn,_n]=(0,Je.useState)(0),[Jn,Xn]=(0,Je.useState)(0),Ir=(0,Je.useRef)(),on=(0,Je.useRef)(),Tn=(0,Je.useRef)(),Bn=(0,Je.useRef)(),Mn=(0,Je.useRef)(),Fn=(0,Je.useRef)(),ri=(0,wt.useDispatch)();(0,Je.useEffect)(()=>{const er=window.scrollY||window.pageYOffset;Rr(sr),$t==null||$t.setValue(sr),window.scrollTo(0,er)},[sr]),(0,Je.useEffect)(()=>{Gt==null||Gt(On)},[On]),(0,Je.useEffect)(()=>{if(Ir.current){let er=function(ur,dr){var Tr;if(tr){dr.preventDefault();return}const Vr=dr.clipboardData;if(Vr){const _r=Vr.types.toString(),ln=Vr.items;if(_r==="Files"||Vr.types.indexOf("Files")>-1){if(dr.preventDefault(),Wr=="stex")return;try{let qr=ln[1];((Tr=ln[0])==null?void 0:Tr.kind)==="file"&&(qr=ln[0]);const sn=qr.getAsFile(),hn=sn.name.split(".").pop();(0,Ye.I)(sn,un=>{var Pn,yn,wn;un.id?((Pn=sn==null?void 0:sn.type)==null?void 0:Pn.indexOf("image"))>-1?Ft.replaceSelection(`<img width="100%" src="/api/attachments/${un.id}?type=${un.content_type})" alt="" />`):((yn=sn==null?void 0:sn.type)==null?void 0:yn.indexOf("video"))>-1?Ft.replaceSelection(`<video width="100%" controls src="/api/attachments/${un.id}"></video>`):((wn=sn==null?void 0:sn.type)==null?void 0:wn.indexOf("pdf"))>-1?Ft.replaceSelection(`<a href="/api/attachments/${un.id}?type=${sn.type}&disposition=inline" target="_blank">${sn.name}</a>`):Yr.includes(hn)?Ft.replaceSelection(`<a href="/api/attachments/${un.id}?type=office&disposition=inline" target="_blank">${sn.name}</a>`):Ft.replaceSelection(`[${sn.name}](/api/attachments/${un.id}?type=${un.content_type})`):(un==null?void 0:un.status)===401&&(document.location.href="/user/login")})}catch(qr){Ne.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ft=we().fromTextArea(Ir.current,{mode:Wr,lineNumbers:!Hr,lineWrapping:!0,value:Zt,autoCloseTags:!0,autoCloseBrackets:!0});return Ft.on("keyup",function(ur,dr){dr.keyCode===8&&(ur.getValue()==""?Ft.setOption("placeholder",kr):Ft.setOption("placeholder",null))}),Ft.on("keydown",function(ur,dr){if(dr.keyCode===8){var Tr=Lt(ur);Tr&&dr.preventDefault()}}),Qr&&Ft.focus(),Ft.on("paste",er),hr&&Ft.on("beforeChange",function(ur,dr){(dr.origin==="paste"||dr.origin==="+input")&&dr.cancel()}),lr(Ft),()=>{Ft.off("paste",er)}}},[]);const St=(0,Je.useCallback)(()=>{if(on.current)try{}catch(er){console.log(er,"---- to set md editor body height")}},[Hn,on,On]);(0,Je.useEffect)(()=>{function er(){let Ft=new ve.Z(ur=>{for(let dr of ur)(dr.target.offsetHeight>0||dr.target.offsetWidth>0)&&(St(),$t.setSize("100%","100%"),$t.refresh())});return Ft.observe(Ir.current.parentElement),Ft}if($t){const Ft=er();return()=>{var ur,dr;(ur=Ir.current)!=null&&ur.parentElement&&Ft.unobserve((dr=Ir.current)==null?void 0:dr.parentElement)}}},[$t,St]),(0,Je.useEffect)(()=>{if($t){let er=[];for(const[Ft,ur]of Object.entries(Ar)){let dr={[Ft]:()=>{Mt(ur)}};er.push(dr),$t.addKeyMap(dr)}return()=>{for(let Ft of er)$t.removeKeyMap(Ft)}}},[$t]),(0,Je.useEffect)(()=>{Ct!==On&&zr(Ct)},[Ct]),(0,vr.Z)(()=>{if(!Wt&&wr>0){let er=new Date().getTime(),Ft=window.sessionStorage.getItem(dn);er>=wr+Pr&&(!Ft||Ft!==br)&&(window.sessionStorage.setItem(dn,br),Yn(!0))}},Pr),(0,Je.useEffect)(()=>{vn(rn)},[$t,rn]),(0,Je.useEffect)(()=>{$t&&Qr&&$t.focus()},[$t,Qr]),(0,Je.useEffect)(()=>{if(Fr&&$t){let er=function(ur){let dr=ur.target;if(Bn.current){let Tr=dr.scrollTop/dr.scrollHeight;Bn.current.scrollTop=Bn.current.scrollHeight*Tr}};const Ft=$t.getScrollerElement();return Ft.addEventListener("scroll",er),()=>{Ft.removeEventListener("scroll",er)}}},[$t,Fr]),(0,Je.useEffect)(()=>{if($t&&nr){let er=function(Ft,ur){nr(Ft,ur)};return $t.on("beforeChange",er),()=>{$t.off("beforeChange",er)}}},[$t,nr]),(0,Je.useEffect)(()=>{if($t&&Dt){let er=function(){Dt($t.getValue())};return $t.on("blur",er),()=>{$t.off("blur",er)}}},[$t,Dt]);function Lt(er,Ft){var ur=er.getDoc(),dr=ur.getCursor(),Tr=ur.getLine(dr.line),Vr=Tr.charAt(dr.ch-1),_r=Tr.lastIndexOf("@\u2581@",dr.ch),ln=Tr.lastIndexOf("@\u2581\u2581@",dr.ch),qr=_r>ln?_r:ln,sn=_r>ln?3:4;if(Xr.indexOf(Vr)===-1)return null;if(console.log("change1:",Ft,er,Tr,dr,qr,_r,ln,Vr),qr>=0&&dr.ch-qr<5){var hn=qr+sn;return ur.replaceRange("",{line:dr.line,ch:qr},{line:dr.line,ch:hn}),{line:dr.line,ch:hn}}return null}(0,Je.useEffect)(()=>{if($t){let er=function(Ft,ur){const dr=Ft.getValue();Rr(dr),jn(new Date().getTime()),Ft.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ir&&(Gr?ir(dr,Bt(dr)):ir(dr))};return $t.on("change",er),()=>{$t.off("change",er)}}},[$t,ir]),(0,Je.useEffect)(()=>{if($t)if(Zt==null)$t.setValue(""),Rr("");else{const er=window.scrollY||window.pageYOffset;Zt!==$t.getValue()&&($t.setValue(Zt),Rr(Zt),$t.setCursor(hr?1:$t.lineCount(),0),window.scrollTo(0,er))}},[$t,Zt]);const Mt=(0,Je.useCallback)(er=>{const Ft=$t.getCursor(),ur=$t.getSelection();let dr=ur.split(`
`);switch(er){case"bold":return $t.replaceSelection("**"+ur+"**"),ur===""&&$t.setCursor(Ft.line,Ft.ch+2),$t.focus();case"italic":return $t.replaceSelection("*"+ur+"*"),ur===""&&$t.setCursor(Ft.line,Ft.ch+1),$t.focus();case"code":return $t.replaceSelection("`"+ur+"`"),ur===""&&$t.setCursor(Ft.line,Ft.ch+1),$t.focus();case"inline-latex":return(0,Yt.Ye)(ri)?void 0:(Ur("inline-latex"),$t.focus());case"latex":return $t.replaceSelection("```latex\n"+ur+"\n```"),$t.setCursor(Ft.line+1,ur.length+1),$t.focus();case"line-break":return $t.replaceSelection(`<br/>
`),$t.focus();case"list-ul":return ur===""?$t.replaceSelection("- "+ur):$t.replaceSelection(dr.map(Tr=>Tr===""?"":`- ${Tr}`).join(`
`)),$t.focus();case"list-ol":return ur===""?$t.replaceSelection("1. "+ur):$t.replaceSelection(dr.map((Tr,Vr)=>Tr===""?"":`${Vr+1}. ${Tr}`).join(`
`)),$t.focus();case"add-null-ch":ar==null||ar();return;case"add-signal":return ur===""&&$t.setCursor(Ft.line,Ft.ch),$t.replaceSelection(mn),$t.focus();case"add-multiple":return ur===""&&$t.setCursor(Ft.line,Ft.ch),$t.replaceSelection(Xr),$t.focus();case"inster-template-1":return ur===""&&$t.setCursor(Ft.line,Ft.ch),$t.replaceSelection(cn),$t.focus();case"eraser":return $t.setValue(""),$t.focus();case"trigger-watch":return vn(!Fr),$t.focus();case"trigger-full-screen":return zr(!On),$t.focus();case vt:Ur(vt);return;case kt:Ur(kt);return;case yt:Ur(yt);return;case bt:Ur(bt);return;case"maths-latex":if((0,Yt.Ye)(ri))return;Ur("maths-latex");return;case xt:Mn.current="",sessionStorage.removeItem("file_id"),Ur(xt);return;case Tt:Ur(Tt);return;default:throw new Error}},[$t,Fr,On]),Nt=(0,Je.useCallback)((er,Ft)=>{var ur,dr,Tr,Vr,_r,ln;er!=null&&er.disabledClose||Ur("");const{src:qr,alt:sn,id:hn}=er||{};switch(Er){case vt:const{title:nn,link:Zr}=er;return $t.replaceSelection(`[${nn}](${Zr})`),$t.focus();case kt:const{language:tn,content:pn}=er;return $t.replaceSelection(["```"+tn,pn,"```"].join(`
`)),$t.focus();case"maths-latex":for(var un=atob(er),Pn=new Uint8Array(un.length),yn=0;yn<un.length;yn++)Pn[yn]=un.charCodeAt(yn);var wn=new Blob([Pn],{type:"image/png"});(0,Ye.I)(wn,yi=>{yi.id?$t.replaceSelection(`![,](/api/attachments/${yi.id}?type=${yi.content_type})`):(yi==null?void 0:yi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,Yt.Ye)(ri))return;$t.replaceSelection("`$$"+er+"$$`");break;case ht:if(!hn)return;$t.getValue().indexOf(qr)===-1?$t.replaceSelection(`<center><img id="${hn}" width="80%" src="${qr}" class="draw-flowchart" alt="${sn||""}" /></center>`):document.getElementById(hn).src=mt.Z.API_SERVER+qr+"?t="+Date.now();break;case yt:case bt:const Jr=Ft,An=(Tr=(dr=(ur=Jr==null?void 0:Jr.name)==null?void 0:ur.split("."))==null?void 0:dr.pop)==null?void 0:Tr.call(dr);return((Vr=Jr==null?void 0:Jr.type)==null?void 0:Vr.indexOf("image"))>-1||!(Jr!=null&&Jr.type)?Jr!=null&&Jr.align||Jr!=null&&Jr.width?$t.replaceSelection(`<p style="text-align:${Jr.align||"initial"}"><img width="${Jr.width?Jr.width+"%":"initial"}" src="${qr}" alt="${sn||""}" /></p>`):$t.replaceSelection(`<img width="100%" src="${qr}" alt="${sn||""}" />`):((_r=Jr==null?void 0:Jr.type)==null?void 0:_r.indexOf("video"))>-1?$t.replaceSelection(`<video width="100%" controls src="${qr}"></video>`):((ln=Jr==null?void 0:Jr.type)==null?void 0:ln.indexOf("pdf"))>-1?$t.replaceSelection(`<a href="${qr}?type=${Jr.type}&disposition=inline" target="_blank">${Jr.name}</a>`):Yr.includes(An)?$t.replaceSelection(`<a href="${qr}?type=office&disposition=inline" target="_blank">${Jr.name}</a>`):$t.replaceSelection(`[${Jr.name}](${qr})`),$t.focus();case Tt:const{row:Rn,col:Qn,align:Di}=er;let Si=`
`;for(let yi=0;yi<Rn;yi++){let ji=[],qn=[];for(let $n=0;$n<Qn;$n++)yi===1&&qn.push(Vt[Di]),ji.push(" ");yi===1&&(Si+=`| ${qn.join(" | ")} |
`),Si+=`| ${ji.join(Qn===1?"":" | ")} |
`}return $t.replaceSelection(Si+`
`),$t.focus();default:throw new Error}},[$t,Er]),Xt=(0,Je.useMemo)(()=>{switch(Er){case vt:return Je.createElement(ot,{callback:Nt,onCancel:Rt});case kt:return Je.createElement(it.Z,{callback:Nt,onCancel:Rt});case yt:return Je.createElement(Ye.Z,{callback:Nt,onCancel:Rt});case xt:return Je.createElement(ct,{editImgId:Mn.current,callback:Nt,onCancel:Rt});case Tt:return Je.createElement(at,{callback:Nt,onCancel:Rt});case"maths-latex":return Je.createElement(Qe,{showSaveButton:!0,callback:Nt});case"inline-latex":return Je.createElement(Ie.Z,{showSaveButton:!0,callback:Nt});default:return null}},[Er]);function Rt(){Ur("")}(0,Je.useEffect)(()=>{if(Tn.current){let er=function(_r){Tr=!0,Vr=_r.pageY},Ft=function(){Tr=!1},ur=function(_r){if(Tr){let ln=_r.pageY-Vr;ln<0&&(ln=0),ln>300&&(ln=300);let qr=gr+ln+"px";Ln(qr)}},dr=Tn.current,Tr=!1,Vr=0;return dr.addEventListener("mousedown",er),document.addEventListener("mousemove",ur),document.addEventListener("mouseup",Ft),()=>{dr.removeEventListener("mousedown",er),document.removeEventListener("mousemove",ur),document.removeEventListener("mouseup",Ft)}}},[$t,Tn]),(0,Je.useEffect)(()=>{Ln(gr)},[gr]);const Jt=kn(Nr),rr=kn(Hn),Qt={width:Jt,height:rr},Ot=(0,Je.useMemo)(()=>{if(wr){let er=new Date(wr),Ft=er.getHours(),ur=er.getMinutes(),dr=er.getSeconds();return Ft=Ft<10?"0"+Ft:Ft,ur=ur<10?"0"+ur:ur,dr=dr<10?"0"+dr:dr,`${Ft}:${ur}:${dr}`}return 0},[wr]),Bt=er=>{const Ft=[];if(Gr){let ur=-1;er=er.replace(/(@▁▁@|@▁@)/g,function(dr,Tr,Vr){Ft.push({multiLine:dr!==mn})})}return Ft};function Ht(){window.sessionStorage.removeItem(dn),Yn(!1),jn(0)}function zt(){Yn(!1),jn(0),$t.setValue(window.sessionStorage.getItem(dn))}(0,Je.useEffect)(()=>{fn[Er]&&Er!==bt&&Er!==xt&&setTimeout(()=>{const er=document.getElementsByClassName("markdown-popup-form")[0],Ft=window.innerWidth/2-er.offsetWidth/2,ur=window.innerHeight/2-er.offsetHeight/2;_n(Ft),Xn(ur)},0)},[Er]);const qt=er=>{er.preventDefault();const Ft=er.clientX-Gn,ur=er.clientY-Jn;document.body.onmousemove=dr=>{let Tr=dr.clientX-Ft,Vr=dr.clientY-ur;const _r=document.getElementsByClassName("markdown-popup-form")[0],ln=window.innerWidth-_r.offsetWidth,qr=window.innerHeight-_r.offsetHeight;Tr=Math.max(0,Math.min(Tr,ln)),Vr=Math.max(0,Math.min(Vr,qr)),mr(dr.clientX,dr.clientY,Ft,ur)&&(_n(Tr),Xn(Vr))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(er,Ft,ur,dr)=>{const Tr=document.body.clientHeight,Vr=document.body.clientWidth;return er<20&&ur>er||er>Vr-20&&ur<er||Ft<20&&dr>Ft||Ft>Tr-20&&dr<Ft?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Je.createElement(Je.Fragment,null,Je.createElement("div",{className:"markdown-editor-wrapper",ref:on},Je.createElement("div",{className:`markdown-editor-container ${jt} ${Fr?"on-preview":""} ${Hr?"mini":""} ${On?"full-screen":""}`,style:Qt},Je.createElement(ke,{insertTemp:Kr,watch:Fr,fullScreen:On,showNullButton:Sr,showNullProgramButton:Gr,onActionCallback:Mt,hidetoolBar:gn,extraUse:xr}),Je.createElement("div",{className:"markdown-editor-body"},Je.createElement("div",{className:"codemirror-container"},Je.createElement("textarea",{ref:Ir,placeholder:kr})),Fr?Je.createElement("div",{ref:Bn,className:"preview-container"},Wr==="stex"&&Je.createElement(te,{value:br}),Wr!=="stex"&&Je.createElement(E.Z,{edit:!0,disabledFill:fr,showProgramFill:Gr,value:br,openEditor:er=>{var Ft;Mn.current=er,(Ft=Fn.current)==null||Ft.setHeight("100vh"),setTimeout(()=>{Ur("add-flowchart")},150)}})):null))),pr?Je.createElement("a",{ref:Tn,className:"editor-resize"}):null,Er===bt&&Je.createElement(ut,{callback:Nt,onCancel:Rt}),Er===xt&&Je.createElement(ct,{ref:Fn,editImgId:Mn.current,callback:Nt,onCancel:Rt}),Je.createElement(de.Z,null,fn[Er]&&Er!==bt&&Er!==xt?Je.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Gn,top:Jn},title:Je.createElement("div",{style:{cursor:"move"},onMouseDown:qt},fn[Er]),open:!0,onCancel:Rt,footer:null,destroyOnClose:!0,width:Er===xt?"1200px":null,height:Er===xt?"80vh":null,className:"markdown-popup-form"},Xt):null))}},82441:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return Te},I:function(){return ke}});var Je=Ve(28284),wt=Ve(6767),y=Ve(37568),we=Ve(44104),ve=Ve(71051),x=Ve(47889),z=Ve(7939),oe=Ve(52882),ie=Ve(59301),ee=Ve(59301),se=Object.defineProperty,E=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ce=(de,ge,Se)=>ge in de?se(de,ge,{enumerable:!0,configurable:!0,writable:!0,value:Se}):de[ge]=Se,he=(de,ge)=>{for(var Se in ge||(ge={}))le.call(ge,Se)&&ce(de,Se,ge[Se]);if(re)for(var Se of re(ge))ue.call(ge,Se)&&ce(de,Se,ge[Se]);return de},me=(de,ge)=>E(de,te(ge));const{useForm:fe}=Je.default,be={width:280,marginRight:10},Ce={labelCol:{span:5},wrapperCol:{span:19}};var Te=({callback:de,onCancel:ge})=>{const[Se]=fe();let De=(0,ie.useRef)();function _e(He){De.current.width=Se.getFieldValue("width"),De.current.align=Se.getFieldValue("align"),de(He,De.current)}function Ee(He,Xe){if(He.status===-1){wt.ZP.error(He.message);return}Se.setFieldsValue({src:`/api/attachments/${He.id}`,type:Xe.type})}function Oe(He){let Xe=He.target.files[0];De.current=Xe,ke(Xe,Ee)}return ee.createElement(Je.default,me(he({form:Se},Ce),{className:"upload-image-panel",onFinish:_e,style:{width:470,overflow:"hidden"}}),ee.createElement(Je.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(Je.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(y.default,{style:be})),ee.createElement(Pe,{onFileChange:Oe}))),ee.createElement(Je.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(y.default,{style:{width:264}})),ee.createElement(Je.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(we.Z,null,ee.createElement(Je.default.Item,{name:"width",style:{margin:0}},ee.createElement(ve.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(Je.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(x.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ee.createElement("aside",null,ee.createElement(Je.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(z.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(z.ZP,{type:"default",onClick:ge},"\u53D6\u6D88"))))};function Pe({onFileChange:de}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:de}))}function ke(de,ge){if(!de)throw new String("\u6CA1\u6709\u6587\u4EF6");let Se=new FormData;Se.append("editormd-image-file",de),Se.append("file_param_name","editormd-image-file"),Se.append("byxhr","true");var De=new window.XMLHttpRequest;De.withCredentials=!0,De.addEventListener("load",function(_e){ge(JSON.parse(_e.target.responseText),de)},!1),De.addEventListener("error",function(_e){console.error(_e)},!1),De.open("POST",`${oe.KI}/api/attachments.json`),De.send(Se)}},35990:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return y}});var Je=Ve(59301),wt=Ve(4676);class y extends Je.Component{constructor(ve){super(ve);const x=window.document;this.node=x.createElement("div"),x.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,wt.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58478:function(Kt,_t,Ve){"use strict";Ve.d(_t,{SV:function(){return ut},ZP:function(){return tt}});var Je=Ve(59301),wt=Ve(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"]},ve={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(`
`)}]},x={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},z={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var oe=Ve(53184),ie=Ve.n(oe),ee=(lt,Ze,Ne)=>new Promise((ze,Me)=>{var Ge=nt=>{try{mt(Ne.next(nt))}catch(Ae){Me(Ae)}},ct=nt=>{try{mt(Ne.throw(nt))}catch(Ae){Me(Ae)}},mt=nt=>nt.done?ze(nt.value):Promise.resolve(nt.value).then(Ge,ct);mt((Ne=Ne.apply(lt,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"]}},E=(lt,Ze,Ne,ze)=>{const Me=Ze.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Ne.lineNumber,endColumn:Ne.column});return Array.from(new Set(Me.match(/\b\w{2,}\b/g)||[])).map(ct=>({label:ct,kind:lt.languages.CompletionItemKind.Text,insertText:ct,range:ze}))},te=(lt,Ze,Ne,ze)=>{lt.languages.registerCompletionItemProvider(Ze,{provideCompletionItems(Me,Ge){const ct=Me.getWordUntilPosition(Ge),mt={startLineNumber:Ge.lineNumber,endLineNumber:Ge.lineNumber,startColumn:ct.startColumn,endColumn:ct.endColumn},nt=Me.getLineContent(Ge.lineNumber).substring(ct.startColumn-2,ct.endColumn);return{suggestions:[...E(lt,Me,Ge,mt),...Ne.map(je=>({label:je,kind:lt.languages.CompletionItemKind.Keyword,documentation:je,insertText:je,insertTextRules:lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt})),...ze.map(je=>({label:je.label,kind:lt.languages.CompletionItemKind.Snippet,documentation:je.content,insertText:nt.startsWith("#")?je.content.replace(/#/,""):je.content,insertTextRules:lt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:mt}))]}}})};var re=lt=>{se.languages.forEach(Ze=>{lt.languages.registerDocumentFormattingEditProvider(Ze,{provideDocumentFormattingEdits(Ne){return ee(this,null,function*(){const ze=ie()(Ne.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Ne.getFullModelRange(),text:ze}]})}})}),te(lt,"java",we.keywords,we.quickKey),te(lt,"cpp",ve.keywords,ve.quickKey),te(lt,"c",y.keywords,[]),te(lt,"python",x.keywords,x.quickKey),te(lt,"scala",z.keywords,z.quickKey)};const le="\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,ce=(lt,Ze,Ne)=>Ze in lt?ue(lt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):lt[Ze]=Ne,he=(lt,Ze,Ne)=>ce(lt,typeof Ze!="symbol"?Ze+"":Ze,Ne);const me=class Kl{constructor(Ze,Ne,ze){this.placeholder=Ze,this.editor=Ne,this.monaco=ze,Ne.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Kl.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)}};he(me,"ID","editor.widget.placeholderHint");var be=me,Ce=Ve(96236),Te=Ve(6767),Pe=Ve(25399),ke=Ve(89392),de=Ve(94276),ge=Ve(56102),Se=Object.defineProperty,De=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,Xe=(lt,Ze,Ne)=>Ze in lt?Se(lt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):lt[Ze]=Ne,et=(lt,Ze)=>{for(var Ne in Ze||(Ze={}))Oe.call(Ze,Ne)&&Xe(lt,Ne,Ze[Ne]);if(Ee)for(var Ne of Ee(Ze))He.call(Ze,Ne)&&Xe(lt,Ne,Ze[Ne]);return lt},st=(lt,Ze)=>De(lt,_e(Ze)),Le=(lt,Ze)=>{var Ne={};for(var ze in lt)Oe.call(lt,ze)&&Ze.indexOf(ze)<0&&(Ne[ze]=lt[ze]);if(lt!=null&&Ee)for(var ze of Ee(lt))Ze.indexOf(ze)<0&&He.call(lt,ze)&&(Ne[ze]=lt[ze]);return Ne},Ue=(lt,Ze,Ne)=>new Promise((ze,Me)=>{var Ge=nt=>{try{mt(Ne.next(nt))}catch(Ae){Me(Ae)}},ct=nt=>{try{mt(Ne.throw(nt))}catch(Ae){Me(Ae)}},mt=nt=>nt.done?ze(nt.value):Promise.resolve(nt.value).then(Ge,ct);mt((Ne=Ne.apply(lt,Ze)).next())});function rt(lt){return/^\d+$/.test(lt)?`${lt}px`:lt}function ot(){}let it=!1;const Ye={"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 $e(lt=[]){let Ze=lt;if(Array.isArray(lt)){for(let Ne=0;Ne<lt.length;Ne++){let ze=Ye[lt[Ne]];if(ze)return ze}return Ze[0]}return Ye[Ze]||Ze}let Ke=null;const ft=()=>Ue(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(lt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",lt)}});var tt=lt=>{var Ze=lt,{width:Ne="100%",height:ze="100%",value:Me,language:Ge="javascript",style:ct={},options:mt={},overrideServices:nt={},theme:Ae="vs-dark",onEditBlur:je,isCopy:We=!1,onSave:at,autoHeight:Re=!1,forbidCopy:xe=!1,onChange:ye=ot,editorDidMount:Fe=ot,onFocus:Qe=ot,onBreakPoint:Ie=ot,breakPointValue:vt=[],filename:yt="educoder.txt",errorLine:xt,errorContent:bt="",highlightLine:ht,openBreakPoint:kt=!1,placeholder:Tt="",showMiniMap:Pt=!0}=Ze,Vt=Le(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 vr=(0,Je.useRef)(),Yt=(0,Je.useRef)({}),Cr=(0,Je.useRef)(),jr=(0,Je.useRef)(),Pr=(0,Je.useRef)([]),Mr=(0,Je.useRef)(!1),Xr=(0,Je.useRef)(),mn=(0,Je.useRef)(),cn=(0,Je.useRef)(!1),[Yr,kn]=(0,Je.useState)(!1);function En(){let pr;return vr.current&&(pr=new wt.Z(Wt=>{for(let Sr of Wt)(Sr.target.offsetHeight>0||Sr.target.offsetWidth>0)&&Yt.current.instance.layout()}),pr.observe(vr.current)),pr}function Dr(){Te.ZP.warning({content:decodeURIComponent(le),key:"monaco-editor-tip"})}const Ar=()=>{let pr=Yt.current.instance;if(Me!=null&&pr&&Yr){const Wt=pr.getModel();Wt&&Me!==Wt.getValue()&&(it=!0,Wt.setValue(Me),pr.layout(),it=!1)}};(0,Je.useEffect)(()=>{const pr=de.Z.subscribe("formatDocument",Wt=>{var Sr;let Gr=Yt.current.instance;(Sr=Gr==null?void 0:Gr.getAction)==null||Sr.call(Gr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Wt=>{ye(Wt)},pr},[]),(0,Je.useEffect)(()=>{var pr;let Wt=Yt.current.instance;jr.current&&clearTimeout(jr.current),jr.current=setTimeout(()=>{Ar()},500),Me&&(Me!=null&&Me.length)&&((pr=Wt==null?void 0:Wt.updateOptions)==null||pr.call(Wt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Me.split(/\r\n|\r|\n/g).length))+3,5)}))},[Me,Yr,Yt.current]),(0,Je.useEffect)(()=>{if(xt&&Yt.current&&Yt.current.instance){let Wt=Yt.current.instance;Wt.changeViewZones(function(Sr){var Gr=document.createElement("div");Gr.style.padding="10px 20px",Gr.style.width="calc(100% - 20px)",Gr.className="my-error-line-wrp",Gr.innerHTML=bt,Sr.addZone({afterLineNumber:xt||11,heightInLines:3,domNode:Gr})});var pr={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};Wt.addOverlayWidget(pr),Wt.revealPositionInCenter({lineNumber:20,column:1})}},[xt,Yt.current,Yr]);const fn=(pr="",Wt)=>{if(!pr||pr.trim()==="")return!0;const Gr=Yt.current.instance.getModel().getLineTokens(Wt);let gn=!1;for(let Ct=0;Ct<2;Ct++)Gr.getStandardTokenType(Ct)===1&&(gn=!0);return gn};(0,Je.useEffect)(()=>{var pr;const Wt=(pr=Yt.current)==null?void 0:pr.instance;if(Wt&&Yr&&xe){const Sr=Wt.onDidBlurEditorWidget(()=>{cn.current=!1}),Gr=Wt.onDidFocusEditorText(()=>{cn.current=!0});return()=>{Sr.dispose(),Gr.dispose()}}},[Yt.current,Yr,xe]),(0,Je.useEffect)(()=>{var pr;if((pr=Yt.current)!=null&&pr.instance&&Yr&&kt){let Wt=Yt.current.instance,Sr=Wt.getModel();if(!Sr)return;(()=>{var sr;let xr=[],ar=[];const $t=Sr.getAllDecorations();for(let br of $t)br.options.className==="highlighted-line"&&(xr.push((sr=br==null?void 0:br.range)==null?void 0:sr.startLineNumber),ar.push(br==null?void 0:br.id));if(ht===xr[0])return;Sr.deltaDecorations(ar,[]);const lr=Sr.getLineCount();ht&&ht<=lr&&(Wt.deltaDecorations([],[{range:new Ke.Range(ht,1,ht,Sr.getLineMaxColumn(ht)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Wt.revealLineInCenter(ht))})();const gn=(sr=!1)=>{var xr;let ar=[],$t=[];const lr=Sr.getAllDecorations();for(let br of lr)br.options.linesDecorationsClassName==="breakpoints-select"&&(ar.push((xr=br==null?void 0:br.range)==null?void 0:xr.startLineNumber),$t.push(br==null?void 0:br.id));if(sr)return{lines:ar,ids:$t};Ie(ar)},Ct=sr=>Ue(void 0,null,function*(){let xr={range:new Ke.Range(sr,1,sr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Sr.deltaDecorations([],[xr]),gn()}),Dt=sr=>Ue(void 0,null,function*(){let xr=[];const ar=Wt.getLineDecorations(sr);for(let $t of ar)$t.options.linesDecorationsClassName==="breakpoints-select"&&xr.push($t.id);yield Sr.deltaDecorations(xr,[]),gn()}),nr=sr=>{let xr=Wt.getLineDecorations(sr);for(let ar of xr)if(ar.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ke.isEqual)(vt,gn(!0).lines)){Sr.deltaDecorations(gn(!0).ids,[]);const sr=vt.map(xr=>({range:new Ke.Range(xr,1,xr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Sr.deltaDecorations([],sr)}const Gt=Wt.onDidChangeModelContent(sr=>{let xr=Wt.getPosition();if(xr){let ar=xr.lineNumber;clearTimeout(mn.current),mn.current=setTimeout(()=>{fn(Sr.getLineContent(ar),ar)?Dt(ar):nr(ar)?(Dt(ar),Ct(ar)):gn()},100)}}),jt=Wt.onMouseDown(sr=>{var xr,ar,$t;if(sr.target.detail&&(($t=(ar=(xr=sr.target)==null?void 0:xr.element)==null?void 0:ar.className)!=null&&$t.includes("line-numbers"))){let lr=sr.target.position.lineNumber;if(fn(Sr.getLineContent(lr),lr))return;nr(lr)?Dt(lr):Ct(lr)}}),tr=sr=>{let xr={range:new Ke.Range(sr,1,sr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Pr.current=Wt.deltaDecorations(Pr.current,[xr])},hr=()=>{Pr.current=Wt.deltaDecorations(Pr.current,[])},fr=Wt.onMouseMove(sr=>{var xr,ar,$t;if(hr(),sr.target.detail&&(($t=(ar=(xr=sr.target)==null?void 0:xr.element)==null?void 0:ar.className)!=null&&$t.includes("line-numbers"))){let lr=sr.target.position.lineNumber;if(fn(Sr.getLineContent(lr),lr))return;tr(lr)}}),kr=Wt.onMouseLeave(()=>{hr()});return()=>{Gt.dispose(),jt.dispose(),fr.dispose(),kr.dispose()}}},[Yt.current,Yr,vt,ht,kt,Ge]),(0,Je.useEffect)(()=>{var pr;(pr=Yt.current)!=null&&pr.instance&&kt&&Yt.current.instance.setPosition({lineNumber:0,column:0})},[ht]);function or(){let pr=Yt.current.instance;if(pr){const Wt=pr.getSelection(),Sr=Yt.current.pastePos||{},Gr=new Ke.Range(Sr.startLineNumber||Wt.endLineNumber,Sr.startColumn||Wt.endColumn,Sr.endLineNumber||Wt.endLineNumber,Sr.endColumn||Wt.endColumn);setTimeout(()=>{pr.executeEdits("",[{range:Gr,text:""}])},300)}}function Zt(pr){(window.navigator.platform.match("Mac")?pr.metaKey:pr.ctrlKey)&&pr.keyCode==83&&(pr.preventDefault(),at())}const ir=()=>{if(Re&&Yt.current.instance){const pr=Yt.current.instance.getContentHeight();Wr(pr<ze?ze:pr)}else Wr(ze)};function Nr(pr){var Wt=document.createEvent("MouseEvents");Wt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),pr.dispatchEvent(Wt)}const gr=pr=>{if(!cn.current)return;const{keyCode:Wt,ctrlKey:Sr,metaKey:Gr,target:gn,type:Ct}=pr;return(Ct==="paste"||(Wt===67||Wt===86)&&(Gr||Sr))&&gn.nodeName==="TEXTAREA"&&(Dr(),pr.preventDefault()),!1};function Hr(pr,Wt){var Sr=window.URL||window.webkitURL||window,Gr=new Blob([Wt]),gn=document.createElementNS("http://www.w3.org/1999/xhtml","a");gn.href=Sr.createObjectURL(Gr),gn.download=pr,Nr(gn)}(0,Je.useEffect)(()=>{ir()},[ir]),(0,Je.useEffect)(()=>{vr.current&&!Yr&&Promise.all([Ve.e(8909),Ve.e(4474)]).then(Ve.bind(Ve,71448)).then(pr=>{try{Ke=pr,Yt.current.instance=Ke.editor.create(vr.current,{value:Me,language:$e(Ge),theme:Ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Pt||!1}},nt);const Wt=Yt.current.instance;let gn=[...Ce.BH._menuItems].find(Gt=>Gt[0]._debugName=="EditorContext")[1],Ct=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Dt=(Gt,jt)=>{var tr,hr;let fr=Gt._first;do jt.includes((hr=(tr=fr.element)==null?void 0:tr.command)==null?void 0:hr.id)&&Gt._remove(fr);while(fr=fr.next)};if(Fe(Wt,Ke),setTimeout(()=>{ir(),Yt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Hr(yt||"educoder.txt",Wt.getValue())}})},500),Yt.current.subscription=Wt.onDidChangeModelContent(Gt=>{Mr.current?clearTimeout(Xr.current):(ir(),ye(Wt.getValue(),Gt)),Xr.current=setTimeout(()=>{Mr.current=!1},500)}),window.Monaco||re(Ke,$e(Ge)),xe&&(Dt(gn,Ct),vr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",gr),window.removeEventListener("paste",gr),window.addEventListener("keydown",gr),window.addEventListener("paste",gr)),window.Monaco=Ke,je&&Wt.onDidBlurEditorWidget(()=>{je(Wt.getValue())}),Qe&&Wt.onDidFocusEditorText(()=>{xe&&ft(),Qe(Wt.getValue())}),xe){ft();try{Wt.onDidPaste(Gt=>{const jt=Wt.getSelection(),tr=Yt.current.pastePos||{},hr=new Ke.Range(tr.startLineNumber||jt.endLineNumber,tr.startColumn||jt.endColumn,tr.endLineNumber||jt.endLineNumber,tr.endColumn||jt.endColumn);Wt.executeEdits("",[{range:Gt.range,text:""}])})}catch(Gt){}}let nr=En();return Tt&&typeof Tt=="string"&&new be(Tt,Wt,Ke),kn(!0),()=>{const Gt=Yt.current.instance;Gt.dispose();const jt=Gt.getModel();jt&&jt.dispose(),Yt.current.subscription&&Yt.current.subscription.dispose(),nr.unobserve(vr.current)}}catch(Wt){}})},[]),(0,Je.useEffect)(()=>{if(Yt.current.instance&&Yr)return document.addEventListener("keydown",Zt,!1),()=>{document.removeEventListener("keydown",Zt)}},[at,Yr]),(0,Je.useEffect)(()=>{let pr=Yt.current.instance;if(pr&&Yr){let Wt=$e(Ge);Ke.editor.setModelLanguage(pr.getModel(),Wt)}},[Ge,Yr]),(0,Je.useEffect)(()=>{Yt.current.instance&&Yr&&Ke.editor.setTheme(Ae)},[Ae,Yr]),(0,Je.useEffect)(()=>{let pr=Yt.current.instance;Cr.current=mt,pr&&Yr&&(pr.updateOptions(et({},mt)),setTimeout(()=>{pr.getModel().updateOptions(et({},mt))},200))},[JSON.stringify(mt),Yr]),(0,Je.useEffect)(()=>{let pr=Yt.current.instance;pr&&Yr&&pr.layout()},[Ne,ze,Yr]);const[Qr,rn]=(0,Je.useState)(rt(Ne)),[Kr,Wr]=(0,Je.useState)(rt(ze)),dn=st(et({},ct),{width:Qr,height:Kr,position:"relative"});return Je.createElement("div",{className:"my-monaco-editor",ref:vr,style:dn,onFocus:()=>{xe&&ft()}},We&&Je.createElement(ge.CopyToClipboard,{text:Me,onCopy:()=>Te.ZP.success("\u590D\u5236\u6210\u529F")},Je.createElement(Pe.Z,{title:"\u590D\u5236\u4EE3\u7801"},Je.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Je.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ut({width:lt="100%",height:Ze="100%",original:Ne,modified:ze,language:Me,options:Ge={}}){const ct=(0,Je.useRef)(),[mt,nt]=(0,Je.useState)(null);function Ae(Re){let xe;return ct.current&&(xe=new wt.Z(ye=>{for(let Fe of ye)(Fe.target.offsetHeight>0||Fe.target.offsetWidth>0)&&Re.layout()}),xe.observe(ct.current)),xe}(0,Je.useEffect)(()=>(ct.current&&Promise.all([Ve.e(8909),Ve.e(9404)]).then(Ve.bind(Ve,2550)).then(Re=>{Ke=Re;const xe=Ke.editor.createDiffEditor(ct.current,st(et({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Ge),{wordWrap:!0}));nt(xe);let ye=Ae(xe);return()=>{xe.dispose();const Fe=xe.getModel();Fe&&Fe.dispose(),ye.unobserve(ct.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Je.useEffect)(()=>{mt&&mt.setModel({original:Ke.editor.createModel(Ne,Me),modified:Ke.editor.createModel(ze,Me)})},[Ne,ze,Me,mt]);const je=rt(lt),We=rt(Ze),at={width:je,height:We};return Je.createElement("div",{className:"my-diff-editor",ref:ct,style:at})}},74242:function(Kt,_t,Ve){"use strict";var Je=Ve(94583),wt=Ve(82326),y=Ve(71411),we=Ve(59301);const ve=wt.default.Option;_t.Z=({isTheoretical:x,onFontSizeChange:z,cmFontSize:oe,cmCodeMode:ie,autoFormat:ee,onCodeModeChange:se,onTabToSpace:E,onAutoFormat:te,formatDocument:re,className:le="",tabToSpace:ue,children:ce,code_editor:he,challenge:me,shixun_environment_id:fe,shixun_environments:be})=>{var Ce;const Te={1:"\u7B80\u5355",2:"\u4E2D\u7B49",3:"\u56F0\u96BE"},Pe=(Ce=be==null?void 0:be.find(ke=>ke.shixun_environment_id===fe))==null?void 0:Ce.program_language;return console.log("----",Pe,be,fe,he),we.createElement("div",{className:`tpi-code-setting ${le}`},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(wt.default,{bordered:!1,size:"small",value:ie,onChange:se},we.createElement(ve,{value:"vs"},"\u767D\u8272\u80CC\u666F"),we.createElement(ve,{value:"vs-dark"},"\u9ED1\u8272\u80CC\u666F"))),!x&&we.createElement(we.Fragment,null,we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5B57\u4F53\u5927\u5C0F"),we.createElement(wt.default,{bordered:!1,size:"small",value:oe,onChange:z},we.createElement(ve,{value:12},"12px"),we.createElement(ve,{value:14},"14px"),we.createElement(ve,{value:16},"16px"),we.createElement(ve,{value:18},"18px"),we.createElement(ve,{value:20},"20px"),we.createElement(ve,{value:22},"22px"))),we.createElement("div",{className:"file-item"},we.createElement("b",null,"Tab\u8F6C\u6362"),we.createElement(y.Z,{checked:ue,onChange:E})),we.createElement("div",{className:"file-item",onClick:re},we.createElement("b",{style:{cursor:"pointer"}},"\u683C\u5F0F\u5316\u4EE3\u7801")))),!x&&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"))),ce),!x&&we.createElement(we.Fragment,null,we.createElement("h3",null,"\u5B9E\u8BAD\u57FA\u672C\u4FE1\u606F"),we.createElement("section",null,Pe&&we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u7F16\u7A0B\u8BED\u8A00"),we.createElement("span",null,Pe)),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5B9E\u8BAD\u96BE\u6613\u5EA6"),we.createElement("span",null,Te[me==null?void 0:me.difficulty])),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5B9E\u9A8C\u73AF\u5883"),we.createElement("span",null,he==null?void 0:he.name)),we.createElement("div",{className:"file-item"},we.createElement("b",null,"\u5B9E\u9A8C\u5BB9\u5668\u7F51\u7EDC"),we.createElement("span",null,he!=null&&he.close_internet?"\u5173\u95ED\u5916\u7F51":"\u5F00\u542F\u5916\u7F51")))))}},61904:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return wt}});var Je=Ve(59301);function wt(y,we){const ve=(0,Je.useRef)();(0,Je.useEffect)(()=>{ve.current=y}),(0,Je.useEffect)(()=>{function x(){ve.current()}if(we!==null){let z=setInterval(x,we);return()=>clearInterval(z)}},[we])}},69101:function(Kt,_t,Ve){"use strict";Ve.r(_t),Ve.d(_t,{Types:function(){return kn},default:function(){return Ar}});var Je=Ve(59301),wt={header:"header___N_IdR",field:"field___XG_dh","oj-form-container":"oj-form-container___syYzK","oj-left-panel":"oj-left-panel___L082x","oj-form-info":"oj-form-info___q0IU5",footer:"footer___pGCM2",result:"result___LM9Ms",passText:"passText___nUoL4",noPassText:"noPassText___ECHHG",pass:"pass___tDubp",noPass:"noPass___ilYvg","test-case-name":"test-case-name___MI_KD","btn-remove-case":"btn-remove-case___OiaTQ","icon-tag":"icon-tag___D86WO",btn_back:"btn_back___FyaSY",testJi:"testJi___NDviK",upBtn:"upBtn___FiZX4","oj-problems":"oj-problems___xb70g",row:"row___v036E",a:"a___yRaYH",b:"b___gWQyu",inputTwo:"inputTwo___IZ9og",inputOne:"inputOne____NmcT",cusModal:"cusModal___fJ5gm","oj-custom-large-spin":"oj-custom-large-spin___Aar0g",MdEditor:"MdEditor___hgoes"},y=Ve(37568),we=Ve(62957),ve=Ve(8848),x=Ve(28284),z=Ve(6767),oe=Ve(77019),ie=Ve(5269),ee=Ve(29787),se=Ve(7939),E=Ve(54172),te=Ve(82326),re=Ve(71051),le=Ve(47889),ue=Ve(62673),ce=Ve(44104),he=Ve(93725),me=Ve(59301);const{Option:fe}=te.default;var be=(or=>(or[or.language=0]="language",or[or.difficulty=1]="difficulty",or[or.category=2]="category",or[or.openOrNot=3]="openOrNot",or))(be||{});const Ce={0:[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],1:[{title:"\u7B80\u5355",key:1},{title:"\u9002\u4E2D",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 Te(or){return Ce[or].map(Zt=>me.createElement(fe,{key:Zt.title,value:Zt.key}," ",Zt.title," "))}function Pe(or,Zt){or.map(ir=>{const{id:Nr,name:gr,sub_disciplines:Hr}=ir;let Qr={value:Nr,label:gr};Zt.push(Qr),Hr&&Hr.length>0&&(Qr.children=[],Pe(Hr,Qr.children))})}function ke(or,Zt){var ir;let Nr=[];for(let gr=0;gr<or.length;gr++){const Hr=or[gr];if(((ir=Hr.sub_disciplines)==null?void 0:ir.length)>0){Nr[0]=Hr.id;for(let Qr=0;Qr<Hr.sub_disciplines.length;Qr++){const rn=Hr.sub_disciplines[Qr];if(rn.id===Zt)return Nr[1]=rn.id,[Nr,rn.tag_disciplines||rn.sub_disciplines||[]]}}}return[Nr,[]]}var de=Ve(58106),ge=Ve(24334),Se=Ve(76618),De=Ve(65363),_e=Ve(77834),Ee=Ve(97013);function Oe(or){return(0,Ee.v_)("practices.json",or)}function He(){return(0,Ee.U2)("problems/new.json")}function Xe(or){return(0,Ee.U2)(`practices/${or}/edit.json`)}function et(or,Zt){return(0,Ee.gz)(`practices/${or}`,Zt)}function st(or,Zt){return post(`exercises/${or}/exercise_questions.json`,Zt)}function Le(or,Zt){return put(`exercise_questions/${or}.json`,Zt)}var Ue=Ve(34282),rt=Ve(30641),ot=Ve(58478),it=Ve(74242),Ye=Ve(35990),$e=Ve(519),Ke={"code-panel-container":"code-panel-container___BZjjl","action-oj-bar":"action-oj-bar___xbXpK",active:"active___EMVKI"},ft=Object.defineProperty,tt=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ze=(or,Zt,ir)=>Zt in or?ft(or,Zt,{enumerable:!0,configurable:!0,writable:!0,value:ir}):or[Zt]=ir,Me=(or,Zt)=>{for(var ir in Zt||(Zt={}))Ze.call(Zt,ir)&&ze(or,ir,Zt[ir]);if(lt)for(var ir of lt(Zt))Ne.call(Zt,ir)&&ze(or,ir,Zt[ir]);return or},Ge=(or,Zt)=>tt(or,ut(Zt));const ct={theme:(0,$e.G)("cmCodeMode","vs-dark"),fontSize:(0,$e.G)("cmFontSize",14),showEditorSetting:!1,tabToSpace:(0,$e.G)("cmTabToSpace",!0)};var mt=(or=>(or[or.set_font_size=0]="set_font_size",or[or.set_theme=1]="set_theme",or[or.on_tab_to_space=2]="on_tab_to_space",or[or.set_show_editor_setting=3]="set_show_editor_setting",or))(mt||{});function nt(or,Zt){switch(Zt.type){case 3:return Ge(Me({},or),{showEditorSetting:Zt.payload});case 1:return Ge(Me({},or),{theme:Zt.payload});case 0:return Ge(Me({},or),{fontSize:Zt.payload});case 2:return Ge(Me({},or),{tabToSpace:Zt.payload});default:throw new Error}}var Ae=({value:or,onChange:Zt,language:ir,onLanguage:Nr,languageItems:gr,ActionBarRender:Hr=Qr=>Je.createElement(je,{languageItems:gr,onLanguage:Nr,language:ir,onShowCodeSetting:Qr})})=>{const[Qr,rn]=(0,Je.useReducer)(nt,ct),{theme:Kr,fontSize:Wr,showEditorSetting:dn,tabToSpace:pr}=Qr;console.log(or,ir,"value");const Wt={onFontSizeChange:Ct=>{rn({type:0,payload:Ct}),(0,$e.t)("cmFontSize",Ct)},tabToSpace:pr,cmFontSize:Wr,className:"oj",cmCodeMode:Kr,onTabToSpace:Ct=>{rn({type:2,payload:Ct}),(0,$e.t)("cmTabToSpace",Ct)},onCodeModeChange:Ct=>{rn({type:1,payload:Ct}),(0,$e.t)("cmCodeMode",Ct)}};function Sr(){rn({type:3,payload:!1})}function Gr(){rn({type:3,payload:!0})}const gn={value:or,language:ir,onChange:Zt,theme:Kr,height:"calc(100% - 56px)",options:{fontSize:Wr,insertSpaces:pr}};return Je.createElement(Je.Fragment,null,Je.createElement("div",{className:Ke["code-panel-container"]},Hr(Gr),Je.createElement(ot.ZP,Me({key:ir},gn))),Je.createElement(Ye.Z,null,Je.createElement(rt.Z,{rootClassName:"oj",title:null,placement:"right",closable:!1,open:dn,onClose:Sr},Je.createElement(it.Z,Me({},Wt)))))};function je({languageItems:or,language:Zt,onShowCodeSetting:ir,onLanguage:Nr}){return Je.createElement("div",{className:Ke["action-oj-bar"]},or==null?void 0:or.map(gr=>Je.createElement("div",{className:Zt===(gr==null?void 0:gr.language)?Ke.active:"",onClick:()=>Nr(gr==null?void 0:gr.language),key:gr==null?void 0:gr.language},gr==null?void 0:gr.language)),Je.createElement("a",{onClick:ir},Je.createElement("i",{className:"iconfont icon-shezhi"})))}var We=Ve(20554),at={flex_box_center:"flex_box_center___4yAaY",flex_space_between:"flex_space_between___YaUgM",flex_box_vertical_center:"flex_box_vertical_center___zR3dp",flex_box_center_end:"flex_box_center_end___rwgS5",flex_box_column:"flex_box_column___LhFeP",wrap:"wrap___xTL91",in:"in___eSY86",btns:"btns___UdEGI",customModal:"customModal___CL0OL"},Re=(or,Zt,ir)=>new Promise((Nr,gr)=>{var Hr=Kr=>{try{rn(ir.next(Kr))}catch(Wr){gr(Wr)}},Qr=Kr=>{try{rn(ir.throw(Kr))}catch(Wr){gr(Wr)}},rn=Kr=>Kr.done?Nr(Kr.value):Promise.resolve(Kr.value).then(Hr,Qr);rn((ir=ir.apply(or,Zt)).next())}),ye=({visible:or,onOK:Zt,onCancel:ir})=>{const[Nr,gr]=(0,Je.useState)(!1),[Hr,Qr]=(0,Je.useState)(!1),[rn,Kr]=(0,Je.useState)("1"),[Wr,dn]=(0,Je.useState)(""),[pr,Wt]=(0,Je.useState)([]),Sr=()=>Re(void 0,null,function*(){if(!Wr){z.ZP.warning(`\u9898\u76EE${nr}\u4E0D\u80FD\u4E3A\u7A7A`);return}Qr(!0);const Gt=yield(0,Ee.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:or,name:Wr}});if((Gt==null?void 0:Gt.status)===0){Zt();return}Qr(!1)}),Gr=(Gt="")=>Re(void 0,null,function*(){gr(!0);let jt=yield(0,Ee.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:or,search:Gt}});Wt(jt.tag_disciplines||[]),gr(!1)}),gn=Gt=>{let jt=Gt.name;we.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u91CD\u547D\u540D",content:Je.createElement("div",null,Je.createElement(y.default,{defaultValue:jt,placeholder:`\u8BF7\u8F93\u5165${nr}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20,onChange:tr=>{jt=tr.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Re(void 0,null,function*(){if(!jt)return z.ZP.warning(`\u9898\u76EE${nr}\u4E0D\u80FD\u4E3A\u7A7A`),Promise.reject();const tr=yield(0,Ee.ZP)(`/api/tag_disciplines/${Gt.id}/rename.json`,{method:"post",body:{id:Gt.id,name:jt}});(tr==null?void 0:tr.status)===0&&Gr()})})},Ct=Gt=>{we.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:570,title:"\u5220\u9664",content:or==="practice"?Je.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u6765\u6E90\u201C",Je.createElement("span",{className:"c-light-primary"},Gt.name),"\u201D\u5220\u9664\u5417\uFF1F",Je.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u6765\u6E90\u8FDB\u884C\u6E05\u9664\u3002"):Je.createElement("div",null,"\u786E\u8BA4\u5C06\u9898\u76EE\u77E5\u8BC6\u70B9\u201C",Je.createElement("span",{className:"c-light-primary"},Gt.name),"\u201D\u5220\u9664\u5417\uFF1F",Je.createElement("br",null),"\u5220\u9664\u540E\uFF0C\u4F1A\u5C06\u76F8\u5173\u9898\u76EE\u4E2D\u7684\u77E5\u8BC6\u70B9\u8FDB\u884C\u6E05\u9664\u3002"),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Re(void 0,null,function*(){const jt=yield(0,Ee.ZP)(`/api/tag_disciplines/${Gt.id}.json`,{method:"delete",body:{id:Gt.id}});(jt==null?void 0:jt.status)===0&&Gr()})})},Dt=Gt=>{Gr(Gt)},nr=or==="practice"?"\u77E5\u8BC6\u70B9":"\u6765\u6E90";return Je.createElement(we.default,{afterClose:()=>{Qr(!1),gr(!1),dn(""),Kr("1"),Wt([])},centered:!0,keyboard:!1,width:600,title:`${nr}\u7BA1\u7406`,open:!!or,className:at.customModal,footer:null,onCancel:ir},Je.createElement("section",{className:at.wrap},Je.createElement(We.default,{activeKey:rn,onChange:Gt=>{dn(""),Kr(Gt),Gr()}},Je.createElement(We.default.TabPane,{tab:`\u65B0\u589E${nr}`,key:"1"},Je.createElement(y.default,{value:Wr,onChange:Gt=>dn(Gt.target.value),className:at.in,placeholder:`\u8F93\u5165${nr}\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57`,maxLength:20}),Je.createElement("div",{className:at.btns},Je.createElement(se.ZP,{onClick:ir,className:"mr20"},"\u53D6\u6D88 "),Je.createElement(se.ZP,{loading:Hr,onClick:Sr,type:"primary"},"\u786E\u8BA4\u65B0\u5EFA"))),Je.createElement(We.default.TabPane,{tab:`\u5DF2\u6709${nr}`,key:"2"},Je.createElement(y.default.Search,{allowClear:!0,onSearch:Dt,value:Wr,onChange:Gt=>dn(Gt.target.value),className:at.in,placeholder:`\u8F93\u5165${nr}\u540D\u79F0\u8FDB\u884C\u67E5\u8BE2`}),Je.createElement(E.default,{dataSource:pr,bordered:!1,loading:Nr,scroll:pr.length>7?{y:300}:{},style:{padding:"0 0px 20px 0px"},columns:[{title:`${nr}\u540D\u79F0`,dataIndex:"name",ellipsis:!0},{title:"\u64CD\u4F5C",dataIndex:"action",width:120,render:(Gt,jt)=>Je.createElement("span",null,Je.createElement("span",{onClick:()=>gn(jt),className:"current mr10 c-light-primary"},"\u91CD\u547D\u540D"),Je.createElement("span",{onClick:()=>Ct(jt),className:"current c-grey-666"},"\u5220\u9664"))}],pagination:!1})))))},Fe=Ve(26869),Qe=Ve(68989),Ie=Ve(56656),vt=Ve.n(Ie),yt=Ve(31735),xt=Ve(59944),bt=Ve(11968),ht=Ve(59301),kt=Object.defineProperty,Tt=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,Vt=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,Cr=(or,Zt,ir)=>Zt in or?kt(or,Zt,{enumerable:!0,configurable:!0,writable:!0,value:ir}):or[Zt]=ir,jr=(or,Zt)=>{for(var ir in Zt||(Zt={}))vr.call(Zt,ir)&&Cr(or,ir,Zt[ir]);if(Vt)for(var ir of Vt(Zt))Yt.call(Zt,ir)&&Cr(or,ir,Zt[ir]);return or},Pr=(or,Zt)=>Tt(or,Pt(Zt)),Mr=(or,Zt,ir)=>new Promise((Nr,gr)=>{var Hr=Kr=>{try{rn(ir.next(Kr))}catch(Wr){gr(Wr)}},Qr=Kr=>{try{rn(ir.throw(Kr))}catch(Wr){gr(Wr)}},rn=Kr=>Kr.done?Nr(Kr.value):Promise.resolve(Kr.value).then(Hr,Qr);rn((ir=ir.apply(or,Zt)).next())});const{TextArea:Xr}=y.default,{confirm:mn}=we.default,{Panel:cn}=ve.default,Yr={loading:!0,user:null,status:0,data:void 0,lastedUpdateTime:0};var kn=(or=>(or[or.SET_INITAL_DATA=0]="SET_INITAL_DATA",or[or.SET_LOADING=1]="SET_LOADING",or[or.SET_STATUS=2]="SET_STATUS",or))(kn||{});const En="#### \u9898\u76EE\u63CF\u8FF0\n\u73B0\u6709\u4E00\u4E2A\u6574\u578B\u6570\u7EC4 `nums`\uFF0C\u8BF7\u7F16\u5199\u7A0B\u5E8F\u5C06\u6570\u7EC4 `nums` \u4E2D\u7684\u6240\u6709 `$$0$$` \u79FB\u52A8\u5230\u6570\u7EC4\u7684\u672B\u5C3E\uFF0C\u4F46\u4E0D\u6539\u53D8\u975E\u96F6\u5143\u7D20\u5728\u6570\u7EC4\u4E2D\u7684\u76F8\u5BF9\u4F4D\u7F6E\u3002\u8BF7\u5728\u539F\u6570\u7EC4 `nums` \u4E0A\u8FDB\u884C\u64CD\u4F5C\u3002\n#### \u8F93\u5165\u8F93\u51FA\u683C\u5F0F\n**\u8F93\u5165\u683C\u5F0F**\n\u7B2C\u4E00\u884C\u6709\u4E00\u4E2A\u6574\u6570 `numsSize`\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u5927\u5C0F\uFF1B\n\u7B2C\u4E8C\u884C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u8868\u793A\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n**\u8F93\u51FA\u683C\u5F0F**\n\u4E00\u884C\u8F93\u51FA\u6570\u7EC4 `nums` \u7684\u6240\u6709\u5143\u7D20\uFF0C\u6709 `numsSize` \u4E2A\u6574\u6570\uFF0C\u6BCF\u4E2A\u6574\u6570\u7528\u4E00\u4E2A\u7A7A\u683C\u9694\u5F00\u3002\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B1\n**\u8F93\u5165**\n`4`\n`0 1 2 3`\n**\u8F93\u51FA**\n`1 2 3 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8F93\u5165\u8F93\u51FA\u6837\u4F8B2\n**\u8F93\u5165**\n`5`\n`1 1 0 1 0`\n**\u8F93\u51FA**\n`1 1 1 0 0`\n**\u89E3\u91CA\uFF08\u53EF\u9009\uFF09**\nXXXXX\n#### \u8BF4\u660E\u63D0\u793A\n-`1\u2264n\u2264100`";function Dr(or,Zt){switch(Zt.type){case 0:return jr(jr({},or),Zt.payload);case 1:return Pr(jr({},or),{loading:Zt.payload});case 2:return Pr(jr({},or),{status:Zt.payload});default:throw new Error}}var Ar=()=>{var or,Zt,ir;const Nr=(0,de.useLocation)(),{id:gr}=(0,de.useParams)(),[Hr]=x.default.useForm(),[Qr,rn]=(0,Je.useState)(),[Kr,Wr]=(0,Je.useState)(!1),[dn,pr]=(0,Je.useState)([]),[Wt,Sr]=(0,Je.useState)([]),[Gr,gn]=(0,Je.useState)([]),[Ct,Dt]=(0,Je.useState)([]),[nr,Gt]=(0,Je.useState)([]),[jt,tr]=(0,Je.useState)("C"),[hr,fr]=(0,Je.useReducer)(Dr,Yr),{loading:kr,data:sr,user:xr,status:ar}=hr,$t=sr==null?void 0:sr.hack_sets,lr=(or=sr==null?void 0:sr.hack)==null?void 0:or.test_set_average,[br,Rr]=(0,Je.useState)(!1),Fr=(0,Je.useRef)([]),[vn,On]=(0,Je.useState)(!1),[zr,Er]=(0,Je.useState)(!1),Ur=(0,Je.useRef)(!0),[wr,jn]=(0,Je.useState)({});(0,Je.useEffect)(()=>((0,de.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!1}),(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!0}),()=>{(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/headerFooterToggle",payload:!0}),(0,de.getDvaApp)()._store.dispatch({type:"globalSetting/onlyShowBackTopToggle",payload:!1})}),[]),(0,Je.useEffect)(()=>{setTimeout(()=>{document.title="\u5728\u7EBF\u5237\u9898"},400)});const Hn=()=>Mr(void 0,null,function*(){const Rt=yield(0,Ee.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice"}}),Jt=yield(0,Ee.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source"}});Sr(Rt.tag_disciplines||[]),gn(Jt.tag_disciplines||[])});var Ln=[{language:"C",code:""},{language:"C++",code:""},{language:"Java",code:""},{language:"Python",code:""}];const Vn=(0,Je.useCallback)(()=>Mr(void 0,null,function*(){if(fr({type:1,payload:!0}),gr){const Rt=yield Xe(gr),{user:Jt,language:rr,practice_sets:Qt,practice_codes:Ot,description:Bt,difficulty:Ht,name:zt,open_or_not:qt,time_limit:mr,test_set_average:er,test_set_score:Ft,status:ur,tag_discipline_ids:dr,source_discipline_ids:Tr,item_banks_group_id:Vr,is_file:_r=!1,hide_actual_output:ln,review_privilege:qr,review_description:sn,submit_rule:hn}=Rt;jn({review_privilege:qr,status:ur,review_description:sn,name:zt}),Rr(ln);const Pn=_r?[{input:"",output:"",score:100,position:1}]:Qt;_r?(pr(Qt),Hr.setFieldsValue({hack_sets:Pn})):pr([]),fr({type:0,payload:{loading:!0,user:Jt,status:ur,data:{hack:{difficulty:Ht,name:zt,description:Bt,open_or_not:qt,time_limit:mr,test_set_average:er,test_set_score:Ft,tag_discipline_ids:dr,source_discipline_ids:Tr,is_file:_r,submit_rule:hn},hack_sets:Pn}}}),rn({hack:{difficulty:Ht,name:zt,description:Bt,open_or_not:qt,time_limit:mr,test_set_average:er,test_set_score:Ft,tag_discipline_ids:dr,source_discipline_ids:Tr,is_file:_r}});const wn=Ot==null?void 0:Ot.map(nn=>Pr(jr({},nn),{code:ge.Base64.decode(nn==null?void 0:nn.code)}));Gt(wn),Fr.current=wn}else{const{user:Rt}=yield He();fr({type:0,payload:{loading:!0,status:0,user:Rt,data:{hack:{difficulty:"",time_limit:3,description:En,test_set_score:!0,test_set_average:!0,open_or_not:!0,name:"",is_file:!1,submit_rule:1},hack_sets:[{input:"",output:"",score:100,position:1}]}}}),rn({hack:{difficulty:"",time_limit:3,description:"",test_set_average:!0,open_or_not:!0,name:"",is_file:!1}}),Gt(Ln),Fr.current=Ln}fr({type:1,payload:!1})}),[gr]);(0,Je.useEffect)(()=>{try{Vn(),Hn()}catch(Rt){console.log(Rt,"----")}},[]);function Yn(Rt,Jt){return Mr(this,null,function*(){var rr;const{hack_sets:Qt,hack:Ot}=jr({},Rt);Ot.hide_actual_output=br;let Bt=[],Ht=[],zt=0;const qt=Ot!=null&&Ot.is_file?dn.map((Ft,ur)=>Pr(jr({},Ft),{position:ur+1})):Qt.map(Ft=>Pr(jr({},Ft),{is_file:!1}));for(let Ft of qt)zt+=Ft.score,Ft.id&&Ft.id>=0?Bt.push(Ft):Ht.push(Ft);if(!(qt!=null&&qt.length)){z.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}if(zt!==100&&!Ot.test_set_score){z.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}if(qt!=null&&qt.some(Ft=>!Ft.output)){z.ZP.error("\u6D4B\u8BD5\u96C6\u8F93\u51FA\u4E0D\u80FD\u4E3A\u7A7A");return}Ur.current?On(!0):Er(!0);let mr;const er=nr==null?void 0:nr.map(Ft=>Pr(jr({},Ft),{code:ge.Base64.encode(Ft==null?void 0:Ft.code)}));if(gr?mr=yield et(gr,{practice:Ot,practice_codes:er,practice_sets:Ht,update_practice_sets:Bt}):mr=yield Oe({practice:Ot,practice_codes:er,practice_sets:qt,publish:!Ur.current}),On(!1),Er(!1),(mr==null?void 0:mr.status)===0){if((rr=mr==null?void 0:mr.similar_practice)!=null&&rr.length){Wr(!0),Dt(mr==null?void 0:mr.similar_practice);return}if(gr){if(z.ZP.success("\u4FDD\u5B58\u6210\u529F"),!Ur.current){const Ft=yield(0,Ee.ZP)(`/api/practices/${gr}/start`,{method:"get"});(Ft==null?void 0:Ft.status)===0&&de.history.push(`/problems/${Ft==null?void 0:Ft.identifier}/oj/${gr}`)}}else z.ZP.success("\u65B0\u5EFA\u6210\u529F"),de.history.replace(`/problems/${mr==null?void 0:mr.identifier}/ojedit`)}})}function Gn(){de.history.replace("/problems")}const _n=Rt=>{const Jt=Math.floor(100/Rt.length),rr=Jt+100%Rt.length;Rt=Rt.map((Qt,Ot)=>Ot===Rt.length-1?Pr(jr({},Qt),{score:rr}):Pr(jr({},Qt),{score:Jt})),pr(Rt)};function Jn(Rt){Rt.target.value||_n(dn),fr({type:0,payload:{data:Pr(jr({},sr),{hack:Pr(jr({},sr.hack),{test_set_score:Rt.target.value})})}})}function Xn(Rt){fr({type:0,payload:{data:Pr(jr({},sr),{hack:Pr(jr({},sr.hack),{is_file:Rt.target.value})})}})}function Ir(Rt){Rr(Rt.target.checked)}function on(Rt){const Jt=Rt.target.value;Jt&&_n(dn),fr({type:0,payload:{data:Pr(jr({},sr),{hack:Pr(jr({},sr.hack),{test_set_average:Jt})})}})}function Tn(){let Rt=Hr.getFieldValue("hack_sets");const Jt=Rt.length+1,rr=Math.floor(100/Jt),Qt=100%Jt;Rt.map((Ot,Bt)=>(lr&&(Ot.score=rr),Ot.position=Bt+1,Ot)),Rt.push({input:"",output:"",position:Jt,score:lr?rr+Qt:0}),Hr.setFieldsValue({hack_sets:Rt}),fr({type:0,payload:{data:Pr(jr({},sr),{hack_sets:Rt})}})}(0,Je.useEffect)(()=>{if(lr){const Rt=$t==null?void 0:$t.length,Jt=Math.floor(100/Rt),rr=100%Rt;$t==null||$t.map((Qt,Ot)=>(Qt.score=Jt,Qt.position=Ot+1,Ot===Rt-1&&(Qt.score=Jt+rr),Qt)),fr({type:0,payload:{data:Pr(jr({},sr),{hack_sets:$t})}}),Hr.setFieldsValue({hack_sets:$t})}},[lr]);function Bn(Rt){let Jt=Hr.getFieldValue("hack_sets");const rr=(Jt==null?void 0:Jt.length)-1,Qt=Math.ceil(100/rr),Ot=100%rr;Jt.splice(Rt,1),Jt==null||Jt.map((Bt,Ht)=>(lr&&(Bt.score=Qt,Ht===rr-1&&(Bt.score=Qt+Ot)),Bt.position=Ht+1,Bt)),fr({type:0,payload:{data:Pr(jr({},sr),{hack_sets:Jt})}}),Hr.setFieldsValue({hack_sets:Jt})}function Mn(Rt){tr(Rt)}const Fn=Rt=>{var Jt;const rr=(Jt=Fr.current)==null?void 0:Jt.findIndex(Qt=>Qt.language===jt);Fr.current[rr].code=Rt,Gt(Fr.current)},ri=Rt=>{rn(jr({},Hr.getFieldsValue()))},St=Rt=>Mr(void 0,null,function*(){const Jt=yield(0,Ee.ZP)(`/api/practices/${Rt}/start`,{method:"get"});(Jt==null?void 0:Jt.status)===0&&(0,yt.xg)(`/problems/${Jt==null?void 0:Jt.identifier}/oj/${Rt}`)}),Lt=()=>Mr(void 0,null,function*(){const Rt=yield Xe(gr),{name:Jt,status:rr,review_privilege:Qt,review_description:Ot}=Rt;jn({review_privilege:Qt,status:rr,review_description:Ot,name:Jt})}),Mt=()=>{let Rt="";we.default.confirm({icon:null,width:700,className:"custom-modal-divider",centered:!0,title:"\u4E0D\u901A\u8FC7\u539F\u56E0",content:ht.createElement("div",{className:"mt20"},ht.createElement(_e.Z,{className:wt.MdEditor,defaultValue:Rt,onChange:Jt=>{Rt=Jt}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Mr(void 0,null,function*(){if(!Rt)return z.ZP.warning("\u4E0D\u901A\u8FC7\u539F\u56E0\u4E0D\u80FD\u4E3A\u7A7A"),Promise.reject();const Jt=yield(0,Ee.ZP)(`/api/practices/${gr}/review.json`,{method:"post",body:{op:"fail",description:Rt}});(Jt==null?void 0:Jt.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),Lt())})})},Nt=()=>Mr(void 0,null,function*(){we.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u63D0\u793A",content:`\u786E\u8BA4\u5C06\u9898\u76EE\u300A${wr==null?void 0:wr.name}\u300B\u7684\u5BA1\u6838\u901A\u8FC7\u5417\uFF1F`,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Mr(void 0,null,function*(){const Rt=yield(0,Ee.ZP)(`/api/practices/${gr}/review.json`,{method:"post",body:{op:"pass"}});(Rt==null?void 0:Rt.status)===0&&(z.ZP.success("\u63D0\u4EA4\u6210\u529F"),Lt())})})}),Xt=()=>{const Rt=we.default.confirm({icon:null,width:700,className:`${wt.cusModal} custom-modal-divider`,centered:!0,title:ht.createElement(oe.Z,null,ht.createElement(ie.Z,{flex:"1"},"\u4E0D\u901A\u8FC7\u539F\u56E0"),ht.createElement(ie.Z,null,ht.createElement("span",{className:"iconfont icon-guanbi7 font12 current c-grey-c",onClick:()=>Rt.destroy()}))),content:ht.createElement("div",null,ht.createElement(xt.Z,{className:"mt20",value:(wr==null?void 0:wr.review_description)||""}))})};return ht.createElement(ee.Z,{spinning:kr,size:"large",className:wt["oj-custom-large-spin"]},sr?ht.createElement(Je.Fragment,null,ht.createElement("header",{className:wt.header},ht.createElement("div",null,ht.createElement("img",{src:`${Fe.Z.IMG_SERVER}/images/${xr==null?void 0:xr.image_url}`,alt:"user",width:30}),ht.createElement("span",null,xr==null?void 0:xr.name)),ht.createElement("h2",null," ",(Zt=sr==null?void 0:sr.hack)==null?void 0:Zt.name," "),gr?ht.createElement("a",{className:wt.btn_back,onClick:Gn}," ",ht.createElement(Se.Z,null),"\u9000\u51FA"):null),ht.createElement(x.default,{form:Hr,initialValues:sr,layout:"vertical",className:wt["oj-form-container"],onValuesChange:ri,onFinish:Yn},ht.createElement(Ue.Z,{hideResize:!0,className:wt["oj-problems"],leftChild:ht.createElement(fn,{formValue:Qr,onRemoveTestCase:Bn,onAddTestCase:Tn,hack:sr.hack,onChangeScore:Jn,onChangehide:Ir,onChangeAverage:on,onChangeFile:Xn,uploadData:dn,setUploadData:pr,handleUploadRatio:_n,ischecked:br,pointData:Wt,sourceData:Gr,getPointData:Hn}),rightChild:ht.createElement(Ae,{value:(ir=nr==null?void 0:nr.find(Rt=>Rt.language===jt))==null?void 0:ir.code,onChange:Fn,onLanguage:Mn,languageItems:nr,language:jt})}),ht.createElement("div",{className:wt.footer},!!gr&&ht.createElement("div",{className:wt.result},ht.createElement("span",null,"\u5BA1\u6838\u7ED3\u679C:"),wr!=null&&wr.review_privilege?ht.createElement(ht.Fragment,null,ht.createElement("div",{onClick:Nt,className:wt.pass},"\u901A\u8FC7"),ht.createElement("div",{onClick:Mt,className:wt.noPass},"\u4E0D\u901A\u8FC7")):ht.createElement(ht.Fragment,null,(wr==null?void 0:wr.status)===0&&ht.createElement("div",{className:wt.passText},ht.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u53D1\u5E03"),(wr==null?void 0:wr.status)===1&&ht.createElement("div",{className:wt.passText},ht.createElement("i",{className:"iconfont icon-tongguo"}),"\u5DF2\u516C\u5F00"),(wr==null?void 0:wr.status)===2&&ht.createElement("div",{className:wt.passText},ht.createElement("i",{className:"iconfont icon-tongguo"}),"\u672A\u5BA1\u6279"),(wr==null?void 0:wr.status)===3&&ht.createElement("div",{className:wt.passText},ht.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u4E2D"),(wr==null?void 0:wr.status)===4&&ht.createElement("div",{className:wt.passText},ht.createElement("i",{className:"iconfont icon-tongguo"}),"\u5BA1\u6838\u5B8C\u6210\u5F85\u516C\u5F00"),(wr==null?void 0:wr.status)===5&&ht.createElement("div",{className:wt.noPassText},ht.createElement("i",{className:"iconfont icon-weitongguo1"}),"\u5BA1\u6838\u4E0D\u901A\u8FC7",ht.createElement("span",{onClick:Xt},"\u67E5\u770B\u539F\u56E0")))),ht.createElement(se.ZP,{type:"primary",ghost:!0,onClick:Gn},"\u9000\u51FA\u7F16\u8F91"),ht.createElement(se.ZP,{disabled:zr,loading:vn,type:"primary",onClick:()=>{Ur.current=!0,Hr.submit()}},"\u4FDD\u5B58 "),gr?ht.createElement(se.ZP,{disabled:vn,loading:zr,style:{background:"#2FC25B",border:0},type:"primary",onClick:()=>{Ur.current=!1,Hr.submit()}},"\u7ACB\u5373\u4F53\u9A8C"):ht.createElement(se.ZP,{disabled:vn,loading:zr,type:"primary",onClick:()=>{Ur.current=!1,Hr.submit()}},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u5BA1\u6838")))):null,ht.createElement(we.default,{centered:!0,destroyOnClose:!0,footer:null,open:Kr,onCancel:()=>Wr(!1),title:"\u76F8\u4F3C\u6027\u68C0\u6D4B",width:"600px"},ht.createElement("div",null,ht.createElement("p",{className:"font14"},"\u7ECF\u7CFB\u7EDF\u68C0\u6D4B\u53D1\u73B0\uFF0C\u672C\u9898\u76EE\u4E0E\u7CFB\u7EDF\u4E2D\u5DF2\u521B\u5EFA\u7684\u9898\u76EE\u9AD8\u5EA6\u96F7\u540C\uFF0C\u8BF7\u8C03\u6574\u9898\u76EE\u540E\u518D\u8FDB\u884C\u4FDD\u5B58"),ht.createElement(E.default,{dataSource:Ct,bordered:!1,scroll:Ct.length>7?{y:300}:{},columns:[{title:"\u76F8\u4F3C\u9898\u9898\u76EE",dataIndex:"name",ellipsis:!0,render:(Rt,Jt)=>ht.createElement("span",{onClick:()=>St(Jt==null?void 0:Jt.identifier),style:{textDecorationLine:"underline"},className:"current c-light-primary"},Rt)},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"create_time",width:170,render:Rt=>{var Jt;return(Jt=vt()(Rt))==null?void 0:Jt.format("YYYY-MM-DD HH:mm")}}],pagination:!1}))))};function fn({ischecked:or,formValue:Zt,hack:ir,onChangeAverage:Nr,onChangeScore:gr,onChangehide:Hr,onChangeFile:Qr,onAddTestCase:rn,onRemoveTestCase:Kr,uploadData:Wr,setUploadData:dn,handleUploadRatio:pr,pointData:Wt,sourceData:Sr,getPointData:Gr}){var gn,Ct;const{test_set_average:Dt,test_set_score:nr}=ir,[Gt,jt]=(0,Je.useState)(!1),[tr,hr]=(0,Je.useState)(!1),fr=(lr,br)=>{const Rr=[...Wr];Rr.splice(br,1),Dt?pr(Rr):dn(Rr)},kr=(lr,br)=>{console.log(lr,br);const Rr=Wr.map((Fr,vn)=>vn===br?Pr(jr({},Fr),{score:lr.target.value?Number(lr.target.value):0}):Fr);dn(Rr)},sr=lr=>{const br=Wr.concat(lr);ir.test_set_average?pr(br):dn(br)};function xr(lr){lr.stopPropagation()}function ar(){if((0,bt.Ny)()){hr("practice");return}let lr="";we.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u77E5\u8BC6\u70B9",content:ht.createElement("div",null,ht.createElement(y.default,{placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:br=>{lr=br.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Mr(this,null,function*(){const br=yield(0,Ee.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice",name:lr}});(br==null?void 0:br.status)===0&&Gr()})})}function $t(){if((0,bt.Ny)()){hr("practice_source");return}let lr="";we.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,title:"\u65B0\u5EFA\u6765\u6E90",content:ht.createElement("div",null,ht.createElement(y.default,{placeholder:"\u8BF7\u8F93\u5165\u6765\u6E90\u540D\u79F0\uFF0C\u4E0D\u8D85\u8FC720\u4E2A\u5B57",maxLength:20,onChange:br=>{lr=br.target.value}})),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>Mr(this,null,function*(){const br=yield(0,Ee.ZP)("/api/tag_disciplines.json",{method:"post",body:{target:"practice_source",name:lr}});(br==null?void 0:br.status)===0&&Gr()})})}return ht.createElement("div",{className:wt["oj-left-panel"]},ht.createElement("div",{className:wt["oj-form-info"]},ht.createElement(x.default.Item,{label:"\u9898\u76EE\u540D\u79F0",name:["hack","name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0"}],className:wt.inputOne},ht.createElement(y.default,{bordered:!1,maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0",suffix:ht.createElement("span",null,((Ct=(gn=Zt==null?void 0:Zt.hack)==null?void 0:gn.name)==null?void 0:Ct.length)||0,"/",ht.createElement("span",{className:"c-grey-999"},"60"))})),ht.createElement(x.default.Item,{name:["hack","description"],valuePropName:"defaultValue",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63CF\u8FF0\u5185\u5BB9"}]},ht.createElement(_e.Z,{placeholder:"\u8BF7\u8F93\u5165\u9898\u76EE\u63CF\u8FF0\u2026",miniToolbar:!0,id:"moop_cases_content",noStorage:!0,height:200})),ht.createElement("div",{className:wt.row},ht.createElement("div",{className:wt.a},ht.createElement(x.default.Item,{label:"\u96BE\u6613\u5EA6",name:["hack","difficulty"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u6613\u5EA6"}]},ht.createElement(te.default,null,Te(be.difficulty)))),ht.createElement("div",{className:wt.b},ht.createElement(x.default.Item,{label:"\u9898\u76EE\u6765\u6E90",name:["hack","source_discipline_ids"]},ht.createElement(te.default,{placeholder:"\u9009\u62E9\u9898\u76EE\u6765\u6E90",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:lr=>lr.parentNode},Sr.map(lr=>ht.createElement(te.default.Option,{key:lr.id,value:lr.id},lr.name)))),ht.createElement(se.ZP,{style:{padding:"0 18px"},type:"primary",ghost:!0,onClick:()=>$t()},(0,bt.Ny)()?"\u6765\u6E90\u7BA1\u7406":"\u65B0\u5EFA\u6765\u6E90"))),ht.createElement("div",{className:wt.row},ht.createElement("div",{className:wt.b,style:{width:"100%",marginLeft:0}},ht.createElement(x.default.Item,{label:"\u77E5\u8BC6\u70B9",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"}],name:["hack","tag_discipline_ids"]},ht.createElement(te.default,{placeholder:"\u9009\u62E9\u77E5\u8BC6\u70B9",showSearch:!1,mode:"multiple",showArrow:!0,getPopupContainer:lr=>lr.parentNode},Wt.map(lr=>ht.createElement(te.default.Option,{key:lr.id,value:lr.id},lr.name)))),ht.createElement(se.ZP,{type:"primary",ghost:!0,onClick:()=>ar()},(0,bt.Ny)()?"\u77E5\u8BC6\u70B9\u7BA1\u7406":"\u65B0\u5EFA\u77E5\u8BC6\u70B9"))),ht.createElement("div",{className:wt.field},ht.createElement(x.default.Item,{label:"\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"}],className:wt.inputTwo,extra:ht.createElement("span",{style:{position:"absolute",left:200,top:11,color:"#333"}},"\u79D2",ht.createElement("span",{className:"ml5 c-grey-999"},"(\u4EE3\u7801\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F)"))},ht.createElement(re.Z,{style:{width:185},min:1}))),ht.createElement("div",{className:"tst-case-info"},ht.createElement("h3",{className:"flex-container",style:{justifyContent:"space-between"}}," ","\u6D4B\u8BD5\u7528\u4F8B\u4E0E\u7CFB\u7EDF\u8BC4\u5206\u89C4\u5219",!ir.is_file&&ht.createElement(se.ZP,{style:{height:40},type:"primary",ghost:!0,onClick:rn},"\u6DFB\u52A0\u6D4B\u8BD5\u7528\u4F8B")),ht.createElement(x.default.Item,{name:["hack","test_set_score"]},ht.createElement(le.ZP.Group,{onChange:gr},ht.createElement(le.ZP,{value:!0},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",ht.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")),ht.createElement(le.ZP,{value:!1},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",ht.createElement("span",{className:"tip"}," ","\uFF08\u5B66\u5458\u8BC4\u6D4B\uFF0C\u901A\u8FC7\u6D4B\u8BD5\u96C6\u5373\u53EF\u83B7\u5F97\u5BF9\u5E94\u5956\u52B1\uFF09")))),ht.createElement(ue.default,{style:{marginBottom:"5px"},checked:or,onChange:Hr},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA \uFF08\u9009\u4E2D\uFF0C\u5219\u5728\u5B66\u751F\u505A\u9898\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"),ht.createElement(x.default.Item,{className:wt.testJi,name:["hack","is_file"],label:"\u7528\u4F8B\u7C7B\u578B:"},ht.createElement(le.ZP.Group,{onChange:Qr},ht.createElement(ce.Z,{direction:"horizontal"},ht.createElement(le.ZP,{value:!1},"\u6587\u672C"),ht.createElement(le.ZP,{value:!0},"\u6587\u4EF6")))),ht.createElement(x.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",name:["hack","submit_rule"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},ht.createElement(le.ZP.Group,null,ht.createElement(le.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),ht.createElement(le.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),ht.createElement(le.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"),ht.createElement(le.ZP,{value:3},"\u5FFD\u7565\u6BCF\u884C\u9996\u5C3E\u7A7A\u683C"))),!ir.test_set_score&&ht.createElement(x.default.Item,{name:["hack","test_set_average"],label:"\u7CFB\u7EDF\u8BC4\u5206\u5360\u6BD4"},ht.createElement(le.ZP.Group,{onChange:Nr},ht.createElement(le.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),ht.createElement(le.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),ir.is_file&&ht.createElement("div",{className:wt.upBtn},ht.createElement(se.ZP,{ghost:!0,type:"primary",className:"mb20",onClick:()=>jt(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),ht.createElement(Qe.Y2,{disabled:ir==null?void 0:ir.test_set_average,inputChange:kr,showScore:!ir.test_set_score,data:Wr,onRemove:fr})),!ir.is_file&&ht.createElement(x.default.List,{name:"hack_sets"},(lr,{})=>ht.createElement(ve.default,{accordion:!0},lr.map((br,Rr)=>ht.createElement(cn,{key:`${br.key}--${Rr}`,header:ht.createElement("a",{className:wt["test-case-name"]},ht.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Rr+1),nr?null:ht.createElement(ht.Fragment,null,ht.createElement(x.default.Item,{name:[br.name,"score"],fieldKey:[br.fieldKey,"score"],rules:[{required:!0,message:`\u8BF7\u8F93\u5165\u6D4B\u8BD5\u96C6${Rr+1}\u8BC4\u5206`}]},ht.createElement(re.Z,{onClick:xr,min:0,max:100,disabled:Dt})),ht.createElement("span",null,"%"))),extra:Rr>0?ht.createElement("div",{onClick:xr},ht.createElement(he.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6\b"+(Rr+1),onConfirm:()=>{Kr(Rr)}},ht.createElement(De.Z,{className:wt["btn-remove-case"]}))):null},ht.createElement(x.default.Item,{label:"\u8F93\u5165",name:[br.name,"input"],fieldKey:[br.fieldKey,"input"]},ht.createElement(Xr,null)),ht.createElement(x.default.Item,{label:"\u8F93\u51FA",name:[br.name,"output"],fieldKey:[br.fieldKey,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},ht.createElement(Xr,null)))))))),ht.createElement(Qe.ZP,{rootIdentifier:null,visible:Gt,onClose:()=>jt(!1),onOK:sr}),ht.createElement(ye,{visible:tr,onCancel:()=>{hr(!1),Gr()},onOK:()=>{hr(!1),Gr()}}))}},68989:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Y2:function(){return Xe},ZP:function(){return et}});var Je=Ve(59301),wt=Ve(14566),y=Ve(6767),we=Ve(62957),ve=Ve(77019),x=Ve(47889),z=Ve(7939),oe=Ve(62673),ie=Ve(25399),ee=Ve(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"},E="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJODIBsFgaIKc7RlqFRgbVUXzA3IANignTppikAM2Z15yCjEjOWr7XDBWC1Fa40fscgA2KVcsrisADMomuLmDsFGRAznrelwj++Rmc6yOdjWYEOL8QCMcsJWyh2AFZISCXD7P976ernuqvFKskxVWEAMFV2lAmms20lECuTNmZH4S6YWeseB94RyICY0xyOWRYH+TEqGW7TCciAmOEczQmdbWSOenb69nA+BsTs5GPRSNlGFpVT72AdVGNATG/6VYuMbWQ1aXUO7BxkQExn2lWN6uVtP1adgMHVKeB5WwnE1KVb3YDYRtbVV+3ojqsxIKY268oHxmF+eU0tjei1GgNilrIwM1a2kZkCWu/utBoDYtYTMzJ+tpGRQnlv5hBkQMx70h7XRxXWidHPl7nb//fy9XkzOy2AmB2vkiPlSkWydD47OqvGgJjPNL1YFVVYByZLlgjEJGrRtrUCPJFs7YDS+R2BjEpMSY7NsDl+9j9fd6XC4kC/lJLOxgFizgzdYDnzudTpMw6fj//3DK4HIRyANoy/w9+wkwCOKmwDYy1P4QRkVGIVk/AMrnH4XniaXQzUqMIKq+5tOCDmzdH89cyVz6fwJRwqrZgqK3/SEFaBRhVWQlr/Y3i4xU8lVihPlVxj2IVxfJ+2nFRhhYz1PoyDagyIZSapEnhdr2I6R9uqEsxUkO5NFQBiTeVvOrlSeDXVhMltKmB9S0klJsw74CUUjOb6FTBejQExQYoBMIFYNLWkgOnvUwKxyFTjoDxSKJqZVMDylhKIPUk5riqY/JkkaKkChreUQOyB2WwfpT8JtDerABAza93dwAGYP09Z0WMFrG4pqcRWfGULyY97jwoAMSeuAzAnRrIMuQJGt5RUYldW8xRSnvv0cKIAELNvJACz7yEryFLA5H0xKrGj5xzkZyU/nZ0oYPFcDIiFEDgHc/ITyDKyFQBi2RK2GYBtZBvdmVWhAuP4VfL2YA0r6L4SYxupIQ2JQY0CBg/3gdjbflSTQASCAq0VAGKtHZDNTxUm04vWHSgAxOyYzGG+Ha+IdFMFzF2z6HY7yWH+pj8YTGZHASBmwSuqMAsuEWMjBYBYI+FF0wIxkVw07kwBa3fFutxOspXs7KeS5YoUAGIiudo0fuFaRRvhmdWEAkBMuU1sJZUbRHjNFQBizS14HABbSeUGEV5zBYBYcwueQowb+so9Iry2CgCxtvo/nJ2tpGJzCE2NAkBMjRW3gQAxxeYQmhoFgJgaK1Yg9u3PjzAO3xWHSGgo0FoBLru2duDR/HzhW7M7xKZEASCmxIjVMHgyqdkdYlOiABBTYgQQ02wEsWlWAIhpdodKTLM7xKZCAd4npsKGu0HwdSPd/hCdAgV4x35bE+YrFNPnUzj87/IzDp9DWPnvbUNmdhTQpQAQ286P+Unj9DnAafrcgmu7cJgJBVwoYO2O2CS6mVfxXEELYLn4kWERShXYhXF8t/Kn21RDbAEuLqgqzXbCcq+AeqCpgxjgcv9DwQLtKqASaGogxm16u5lN5B0qoOgqRnOIAa8OfwBYshcFVFRmzSAGvLzkMetAgdAUZptD7Agv7myR+SjgT4EmMNsUYlRf/rKWFaHAigKbwmwTiAEvEh0FOlRgo8P/6hADYB0mL0tGgZMCG4CsGsSOr4KeLqlyu56URoG+Fai6vawCMaqvvjOW1aPAqgKVqrLiEANgJDAKoMBdBSqArCjEABjJiwIoEKFA0bfHFoMYAIuwjiYogAInBYqBrAjEeO0zmYkCKJCgQBGQZUMMgCVYRxcUQIFiFVkWxNhCkokogALZCmQe9idDDIBlW8cAKIACJwUyQJYEMQBG7qEAChRXIBFkYogdb+L/Kr4ABkQBFECBBJDJIfa2H1EaBVAABaopIASZCGI8iaxmGwOjAAosFJD86bhoiHEORo6hAApspoCgGouCGOdgm1nHRCiAAsInlnEQe9tPB/m8Uof0kiswjO/hb9jNHYeBVzPJFey6R8y28inE2EZ2nUM5i1/9Sgn5lCNph30jtpUPIcY2ssOkKbTkR79BAVkhkXsZ5gnIHkOMbWQvaVJ2neP4df/z9bCFvPMBZGUl9z7ao1+KdyFGFeY9LSqtLwJgp5m5slPJA4/DPqjG7kOMKsxjKtRdU8T5xXUAL1yeruuJo9HvVWOrEKMKc+T8VktJANgUGrm2lUEO5rmTY+sQowpz4PiGS0gE2Hlb+c+fL2EY+D7uhpaZnCoWYvxmNGlvu6AzAXYG2bc/P8I43yPjgwL3FVjJt5tKjMNWMkigQJHXCwMygeK9N42EGG+p6D1R4tZfFGCALE50WoVwfcB/UYmxlSRFohUQXKWIHvPYkDtkUsU6a39VjV1CjAP9zrIhcbkVAXauyMjFRHP66Lasxq4hxlayjxxIX+UGAANk6fZ003ORh2eIsZXsxv70hRZ6EikJgMuwErU6arvIxQ+IUb53lAEJS20AsClKfrkmeNVHl/ODpSXE2Er2Yb58lY0AxhNLuVU99Tidi80Q47ddT9aL11rlKoU0Cp5YShXroP3xlysQ68DrjCWqABgVWYaDnrteQIzzMM9Wp65NFcAAWaqNrvvNOXqoxICYa6eTFrfhVQppfGwtpYr5bT+di50gxqG+X5/lK1MMsHNFxi9eua8eewzj+8ChvkdnM9bU+EmkJHJ2EBK1nLYFYk6NTV2WIYDNxyC8hyzVaT/9ZojxHic/huasxBjAzttKQJbjuv2+M8Q4W7BvZO4KjAKMJ5a5xrvovwNiLnzMWoTKqxTSFbGjkCrmpj0Qc2Nl2kJcAIyKLM18L72oxLw4mbIOA1cppMuiIpMqZr/9BDHuiNn3Ub4ChwCjIpOngYceQMyDi9I1OAbYGWQ8sJJmhdn2QMysdYmBG38SKVk1uwyJWnbbAjG73skj7whgkzhchpWniMUeQMyiaykxdwaw87aSy7Ap2WKqD08nTdmVHKyrqxRSFXhiKVXMVnsgZsuvlGi7BhhPLFNSxlYfIGbLL2m0AGyhGBWZNH1stAdiNnxKi7KDqxRSYQCZVDH97XmLhX6P0iIEYHd146UHaSmltNcOiCl1JissAPZUPkD2VCIrDXa82dWKVbFxdnqVIlaeZTsuw6aopqzP9D6xKSTMVGZMajgATKQcl2FFculsPI7nv3bEl8B1WiSJiieRErWObTnoTxBNU5cFxH6FEL5oio1YhApwDiYU7KM5IEuWrnnHjz/Zxnv2m5uRGQBVWIaAQCxDvLZdF388l++XtbWiwOzTb6QCw3Q5BBAzavvxDPic+BzuGzXyFDbbyWQDuW6RLF3bjsecX0KMc7G2luTPDsjEGlKFiSVT0+G0+/iAGOdiaszJDGSX1X8c3/c/X/PGyAogrvMMn+kzDp/jeqy24mFWhniNu57PgT8gxrlYY09UTa/6QQHVk6pcaRPMYtdxcRjM2UAbP1TOqvTiLBdUVWbL5kEtH2RdQowt5eZmqJ0QiKm1hsDCxU7h5rE8TylJkaMCKreUVGLkZ7h6gHULMaoxsuSgABAjE1QqcH0nEoiptElFUEBMhQ0EcaXATV6u3vJmS0niUImRAyoVWLkLuQ4xtpQq/ds4KCqxjQVnuqcKrObk3e/bUY09FdR7AyDm3WFr67vzjZT7EKMas2Zx6XiBWGlFGS9Hgbv5+PDNB1RjOZqb7wvEzFvoaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",te=Ve(47257),re=Ve.n(te),le=Ve(13683),ue=Ve(97013),ce=Ve(1012),he=Ve(31735),me=Ve(47199),fe=Ve(59301),be=Object.defineProperty,Ce=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,ge=(st,Le,Ue)=>Le in st?be(st,Le,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):st[Le]=Ue,Se=(st,Le)=>{for(var Ue in Le||(Le={}))ke.call(Le,Ue)&&ge(st,Ue,Le[Ue]);if(Pe)for(var Ue of Pe(Le))de.call(Le,Ue)&&ge(st,Ue,Le[Ue]);return st},De=(st,Le)=>Ce(st,Te(Le)),_e=(st,Le,Ue)=>new Promise((rt,ot)=>{var it=Ke=>{try{$e(Ue.next(Ke))}catch(ft){ot(ft)}},Ye=Ke=>{try{$e(Ue.throw(Ke))}catch(ft){ot(ft)}},$e=Ke=>Ke.done?rt(Ke.value):Promise.resolve(Ke.value).then(it,Ye);$e((Ue=Ue.apply(st,Le)).next())});const{Dragger:Ee}=wt.default,Oe=st=>{const Le=ft=>ft&&ft.substring(0,ft.lastIndexOf("."));for(var Ue=[...st],rt=0,ot=[],it=0;it<Ue.length;it++){for(var Ye="",$e=0;$e<ot.length;$e++)if(Le(ot[$e][0].name)==Le(Ue[it].name)){rt=1,Ye=$e;break}if(rt==1)ot[Ye].push(Ue[it]),rt=0;else if(rt==0){let ft=new Array;ft.push(Ue[it]),ot.push(ft)}}return ot.map(ft=>{if(ft.forEach(tt=>{let ut=tt.name.split(/\.(?=[^\.]+$)/);tt.name=`${ut[0]}.${ut[1].toLowerCase()}`}),ft[0].name.includes(".in"))return ft.length===2?ft:[ft[0],{}];if(ft[0].name.includes(".out"))return ft.length===2?ft.reverse():[{},ft[0]]})},He=({onClose:st,onOK:Le,visible:Ue,wrapClassName:rt,rootIdentifier:ot,multiple:it=!1,defaultMultipleValue:Ye=!0})=>{const[$e,Ke]=(0,Je.useState)([]),[ft,tt]=(0,Je.useState)({}),[ut,lt]=(0,Je.useState)(!1),[Ze,Ne]=(0,Je.useState)(!0),ze=(0,Je.useRef)([]),Me=(0,Je.useRef)(0),Ge=()=>{st()};(0,Je.useEffect)(()=>{ct()},[]),(0,Je.useEffect)(()=>{Ue&&(ze.current=[],Me.current=0,Ke([]),Ne(Ye))},[Ue]);const ct=()=>_e(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,le.pe)(xe.data));tt(ye)}catch(xe){}}),mt=xe=>xe&&xe.substring(0,xe.lastIndexOf(".")),nt=xe=>{var ye,Fe;const Qe=mt((ye=xe[0])==null?void 0:ye.name)||mt((Fe=xe[1])==null?void 0:Fe.name),Ie=$e.filter(vt=>mt(vt.name)!==Qe);ze.current=[...Ie],Ke([...Ie])},Ae=xe=>{if(!Ze){const yt=new FormData;yt.append("file",xe.file),(0,ue.ZP)("/api/attachments/get_file_content.json",{method:"post",body:yt},!0).then(bt=>{if(bt.status===0){Me.current=Me.current+1;const ht=ze.current.map(kt=>{var Tt;if(kt.name===xe.name){const Pt=Se({},kt);return(Tt=xe==null?void 0:xe.name)!=null&&Tt.includes(".in")?Pt.input=bt==null?void 0:bt.content:Pt.output=bt==null?void 0:bt.content,Pt}return kt});if(ze.current=[...ht],Ke([...ht]),Me.current>0&&Me.current===$e.length){lt(!1);let kt=Oe(ht);kt=kt.filter(Tt=>{var Pt,Vt;return!!((Pt=Tt[0])!=null&&Pt.name&&((Vt=Tt[1])!=null&&Vt.name))}),kt=kt.map(Tt=>De(Se(Se({},Tt[0]),Tt[1]),{is_file:!1})),Le(kt),st()}}else lt(!1),st()});return}const ye=new(re())({endpoint:ft.end_point,region:ft.region,accessKeyId:ft.access_key_id,accessKeySecret:ft.access_key_secret,bucket:ft.bucket,stsToken:ft.security_token}),Fe=xe.name,Qe={container_type:"TestSet",file_name:Fe},Ie=(0,ce.Z)();let vt=`testsets/${ot}/${Ie}${Fe.indexOf(".")>-1?"."+Fe.split(".").pop():""}`;ot===null&&(vt=`testsets/${Ie}${Fe.indexOf(".")>-1?"."+Fe.split(".").pop():""}`),ye.multipartUpload(vt,new Blob([xe.file],{type:xe.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:Fe+""},url:ft==null?void 0:ft.callback_url,host:ft==null?void 0:ft.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ue.rz)(Qe)}}).then(function(yt){if(yt.data.status===0){Me.current=Me.current+1;const xt=ze.current.map(bt=>{var ht,kt,Tt,Pt,Vt,vr,Yt,Cr,jr,Pr,Mr,Xr,mn,cn,Yr,kn,En;if(bt.name===((kt=(ht=yt.data)==null?void 0:ht.data)==null?void 0:kt.file_name)){const Dr=Se({},bt);return(Vt=(Pt=(Tt=yt.data)==null?void 0:Tt.data)==null?void 0:Pt.file_name)!=null&&Vt.includes(".in")?(Dr.in_object_key=(Yt=(vr=yt.data)==null?void 0:vr.data)==null?void 0:Yt.object,Dr.in_object_size=(jr=(Cr=yt.data)==null?void 0:Cr.data)==null?void 0:jr.size,Dr.input=(Mr=(Pr=yt.data)==null?void 0:Pr.data)==null?void 0:Mr.file_name,Dr.in_file=xe):(Dr.out_object_key=(mn=(Xr=yt.data)==null?void 0:Xr.data)==null?void 0:mn.object,Dr.out_object_size=(Yr=(cn=yt.data)==null?void 0:cn.data)==null?void 0:Yr.size,Dr.output=(En=(kn=yt.data)==null?void 0:kn.data)==null?void 0:En.file_name,Dr.out_file=xe),Dr}return bt});if(ze.current=[...xt],Ke([...xt]),Me.current>0&&Me.current===$e.length){lt(!1);let bt=Oe(xt);bt=bt.filter(ht=>{var kt,Tt;return!!((kt=ht[0])!=null&&kt.name&&((Tt=ht[1])!=null&&Tt.name))}),bt=bt.map(ht=>De(Se(Se({},ht[0]),ht[1]),{is_file:!0})),Le(bt),st()}}})},je=xe=>new Promise((ye,Fe)=>{let Qe=0,Ie=[];for(let vt=0;vt<xe.length;vt++)xe[vt].file.slice(0,1).arrayBuffer().then(()=>{Qe++,Qe===xe.length&&(Ie.length?(y.ZP.warning(`${Ie.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Fe()):ye(xe))}).catch(yt=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",yt),Qe++,Ie.push(xe[vt].name),Qe===xe.length&&(Ie.length?(y.ZP.warning(`${Ie.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),Fe()):ye(xe))})}),We=()=>_e(void 0,null,function*(){if($e.length===0){y.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield je($e),lt(!0),Oe($e).some(ye=>{var Fe,Qe;return!((Fe=ye[0])!=null&&Fe.name&&((Qe=ye[1])!=null&&Qe.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:()=>_e(void 0,null,function*(){$e.map(ye=>_e(void 0,null,function*(){Ae(ye)}))}),onCancel:()=>{lt(!1)}});return}$e.map(ye=>_e(void 0,null,function*(){Ae(ye)}))}),at={name:"file",fileList:$e,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:xe=>{if($e!=null&&$e.some(Fe=>Fe.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 $e.push(ye),ze.current=[...$e],Ke([...$e]),!1}},Re=Oe($e);return console.log($e,Re,"fileList"),fe.createElement(we.default,{open:Ue,wrapClassName:rt,onOk:We,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:ut},onCancel:Ge,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},fe.createElement("div",{className:se.wrap},$e.length?fe.createElement("div",null,fe.createElement(ve.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},fe.createElement("div",{style:{visibility:it?"visible":"hidden"}},fe.createElement("span",{className:se.greyText},"\u7528\u4F8B\u7C7B\u578B"),fe.createElement(x.ZP.Group,{className:`ml20 ${se.testCaseRadio}`,optionType:"button",value:Ze,onChange:xe=>Ne(xe.target.value)},fe.createElement(x.ZP,{value:!1},"\u6587\u672C"),fe.createElement(x.ZP,{value:!0},"\u6587\u4EF6"))),fe.createElement(wt.default,Se({},at),fe.createElement(z.ZP,{type:"primary",className:se.btnS},fe.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),fe.createElement(Xe,{data:Re,onRemove:nt})):fe.createElement("div",{className:`${se.noData} mb30`},fe.createElement(wt.default.Dragger,De(Se({},at),{className:se.dragger}),fe.createElement("img",{src:E,alt:"",className:"mb20"}),fe.createElement("div",null,fe.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),fe.createElement("span",{className:se.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),fe.createElement("div",{className:se.text},fe.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),fe.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",fe.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",fe.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",fe.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",fe.createElement("br",null))))},Xe=({data:st=[],onRemove:Le,width:Ue="auto",showScore:rt=!1,disabled:ot=!1,inputChange:it,onEvaluatingChange:Ye,onSelectAll:$e,checkAll1:Ke,checkAll2:ft,checkAll3:tt,checkAll4:ut,checkAll5:lt,showEvaluatingSetting:Ze=!1,className:Ne="",isProgramHomework:ze=!1})=>{const Me={value:"",filename:"",dataUrl:""},[Ge,ct]=(0,Je.useState)(Se({},Me)),mt=je=>{let We=document.createElement("a");document.body.appendChild(We);let at=URL.createObjectURL(je.file);We.href=at,We.download=je.name,We.click(),URL.revokeObjectURL(at),document.body.removeChild(We)},nt=(je,We)=>{(0,he.LR)(je,We)},Ae=(je,We)=>{we.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:fe.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Le(je,We)},onCancel:()=>{}})};return st.length?fe.createElement("div",{className:Ne,style:{width:Ue}},fe.createElement("div",{className:`${ze?se.headProgram:se.head}`},Ze&&fe.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:Ke,onChange:je=>{$e(je.target.checked,"hidden")}}),fe.createElement(ie.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},fe.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),fe.createElement("div",{style:{width:ze?"25%":"15%"}},"\u7528\u4F8B"),fe.createElement("div",{style:{width:rt?ze?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),fe.createElement("div",{style:{width:rt?ze?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),rt&&fe.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Ze&&fe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:ut,onChange:je=>{$e(je.target.checked,"input_visible")}}),fe.createElement(ie.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},fe.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ze&&fe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:ft,onChange:je=>{$e(je.target.checked,"is_invisible")}}),fe.createElement(ie.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},fe.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ze&&fe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:lt,onChange:je=>{$e(je.target.checked,"actual_output_visible")}}),fe.createElement(ie.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},fe.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Ze&&fe.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},fe.createElement(oe.default,{checked:tt,onChange:je=>{$e(je.target.checked,"last_match_rule")}}),fe.createElement(ie.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},fe.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),fe.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),fe.createElement("div",{className:se.operation,style:ze?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),fe.createElement("div",{className:se.listWrapper,style:{boxShadow:ze?"0px 2px 4px 0px #EAEEF4":"unset"}},st.map((je,We)=>{var at,Re,xe,ye;return fe.createElement("div",{key:We,className:se.list,style:ze?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Ze&&fe.createElement("div",{style:{width:"15%"}},fe.createElement(oe.default,{checked:!!je.hidden,onChange:Fe=>{Ye(Fe.target.checked,We,"hidden")}})),fe.createElement("div",{style:{width:ze?"25%":"15%",paddingLeft:ze?"5px":"0px",paddingRight:ze?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",We+1),fe.createElement("div",{className:se.info,style:{width:rt?ze?"20%":"15%":"25%"}},fe.createElement("span",{title:je.input||((at=je[0])==null?void 0:at.name),onClick:()=>_e(void 0,null,function*(){let Fe;je.input?je.input_file_url?Fe=je.input_file_url:Fe=je.in_file:Fe=je[0];let Qe;typeof Fe=="string"?(Qe=yield fetch(Fe,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),ct({value:yield Qe.text(),filename:"",dataUrl:Fe})):(Qe=yield(0,he.db)(Fe.file),ct({value:Qe.text,filename:Fe.name,dataUrl:Qe.link}))})},je.input||((Re=je[0])==null?void 0:Re.name))),fe.createElement("div",{className:se.info,style:{width:rt?ze?"20%":"15%":"25%"}},fe.createElement("span",{title:je.output||((xe=je[1])==null?void 0:xe.name),onClick:()=>_e(void 0,null,function*(){let Fe;je.input?je.output_file_url?Fe=je.output_file_url:Fe=je.out_file:Fe=je[1];let Qe;typeof Fe=="string"?(Qe=yield fetch(Fe,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),ct({value:yield Qe.text(),filename:"",dataUrl:Fe})):(Qe=yield(0,he.db)(Fe.file),ct({value:Qe.text,filename:Fe.name,dataUrl:Qe.link}))})},je.output||((ye=je[1])==null?void 0:ye.name))),rt&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(ee.default,{size:"large",addonAfter:ze?"%":null,disabled:ot,style:{width:"80%"},onChange:Fe=>it(Fe,We),value:je.score}),!ze&&fe.createElement("span",null,"\xA0%")),Ze&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(oe.default,{checked:je.input_visible||!1,onChange:Fe=>{Ye(Fe.target.checked,We,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ze&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(oe.default,{checked:je.is_invisible||!1,onChange:Fe=>{Ye(Fe.target.checked,We,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ze&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(oe.default,{checked:je.actual_output_visible||!1,onChange:Fe=>{Ye(Fe.target.checked,We,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Ze&&fe.createElement("div",{style:{width:"20%"}},fe.createElement(oe.default,{checked:je.last_match_rule||!1,onChange:Fe=>{Ye(Fe.target.checked,We,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),fe.createElement("div",{onClick:()=>Ae(je,We),style:ze?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},fe.createElement("span",{className:se.del},"\u5220\u9664")))})),fe.createElement(me.Z,{close:!0,data:Ge.dataUrl,filename:Ge.filename,type:Ge.dataUrl.length?"txt":"",onClose:()=>ct(Se({},Me)),monacoEditor:{value:Ge.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):fe.createElement(fe.Fragment,null)};var et=He},58489:function(Kt,_t,Ve){"use strict";Ve.d(_t,{AL:function(){return be},Iy:function(){return se},Qv:function(){return re},ez:function(){return fe},jb:function(){return E}});var Je=Ve(32834),wt=Ve.n(Je),y=Ve(11690),we=Ve.n(y);let ve=1;function x(de,ge){const Se=de.match(/^(\s+)(?:```)/);if(Se===null)return ge;const De=Se[1];return ge.split(`
`).map(_e=>{const Ee=_e.match(/^\s+/);if(Ee===null)return _e;const[Oe]=Ee;return Oe.length>=De.length?_e.slice(De.length):_e}).join(`
`)}let z=[],oe=["<ul>"];const ie=new(wt()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function se(){z.length=0,oe=["<ul>"]}const E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function te(de,ge,Se,De){if(ge>=de.length||de[ge].level<=Se)return ge;var _e=de[ge];De.push("<li><a href='#"+ve+_e.anchor+"'>"+_e.text+"</a>"),ge++;var Ee=[];return ge=te(de,ge,_e.level,Ee),Ee.length>0&&(De.push("<ul>"),Ee.forEach(function(Oe){De.push(Oe)}),De.push("</ul>")),De.push("</li>"),ge=te(de,ge,Se,De),ge}function re(){return te(z,0,0,oe),oe.push("</ul>"),oe.join("")}const le={heading(de){const ge=ee.exec(de);if(ve+=1,ge)return{type:"heading",raw:ge[0],depth:ge[1].length,text:ge[2]}},fences(de){const ge=this.rules.block.fences.exec(de);if(ge){const Se=ge[0];let De=x(Se,ge[3]||"");const _e=ge[2]?ge[2].trim():ge[2];if(["latex","katex","math"].indexOf(_e)>=0){const Ee=he(),Oe=De;De=Ee,me[Ee]={type:"block",expression:Oe}}return{type:"code",raw:Se,lang:_e,text:De}}}},ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ce=0;const he=()=>`__special_katext_id_${ce++}__`;let me={};function fe(){return me}function be(){ce=0,me={}}function Ce(de){return de=de.replace(ue,(ge,Se)=>{const De=he();return me[De]={type:"inline",expression:Se},De}),de}const Te=ie.listitem;ie.listitem=function(de){return Te(Ce(de))};const Pe=ie.paragraph;ie.paragraph=function(de){return Pe(Ce(de))};const ke=ie.tablecell;ie.tablecell=function(de,ge){return ke(Ce(de),ge)},ie.code=function(de,ge,Se){const De=(ge||"").match(/\S*/)[0];return De?["latex","katex","math"].indexOf(De)>=0?`<p class='editormd-tex'>${de}</p>`:`<pre class="prettyprint linenums"><code class="language-${ge}">${Se?de:(0,y.escape)(de,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Se?de:(0,y.escape)(de,!0))+"</code></pre>"},ie.heading=function(de,ge,Se){let De=this.options.headerPrefix+Se.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return z.push({anchor:De,level:ge,text:de}),"<h"+ge+' id="'+ve+De+'">'+de+"</h"+ge+">"},wt().setOptions({silent:!0,gfm:!0,pedantic:!1}),wt().use({tokenizer:le,renderer:ie}),_t.ZP=wt()},519:function(Kt,_t,Ve){"use strict";Ve.d(_t,{G:function(){return ve},t:function(){return we}});var Je=Ve(7062),wt=Ve.n(Je);const y=null;function we(x,z){let oe=wt().get("__ec");oe||(oe={}),oe[x]=z,wt().set("__ec",oe)}function ve(x,z){let oe=wt().get("__ec");return oe?oe[x]===void 0?z:oe[x]:z}},47257:function(Kt){(function(_t){(function(Ve){if(1)Kt.exports=Ve();else var Je})(function(){var Ve,Je,wt;return function(){function y(we,ve,x){function z(ee,se){if(!ve[ee]){if(!we[ee]){var E=void 0;if(!se&&E)return require(ee,!0);if(oe)return oe(ee,!0);var te=new Error("Cannot find module '"+ee+"'");throw te.code="MODULE_NOT_FOUND",te}var re=ve[ee]={exports:{}};we[ee][0].call(re.exports,function(le){var ue=we[ee][1][le];return z(ue||le)},re,re.exports,y,we,ve,x)}return ve[ee].exports}for(var oe=void 0,ie=0;ie<x.length;ie++)z(x[ie]);return z}return y}()({1:[function(y,we,ve){"use strict";var x=y("./browser/client");x.Buffer=y("buffer").Buffer,x.urllib=y("../shims/xhr"),x.version=y("./browser/version").version,we.exports=x},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(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 ie=y("assert"),ee=y("../common/utils/checkBucketName"),se=ee.checkBucketName,E=ve;function te(le){return Array.isArray?Array.isArray(le):Object.prototype.toString.call(le)==="[object Array]"}function re(le){return le?te(le)?le:[le]:[]}E.useBucket=function(ue){return se(ue),this.options.bucket=ue,this},E.setBucket=function(ue){return se(ue),this.options.bucket=ue,this},E.getBucket=function(){return this.options.bucket},E.deleteBucket=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me){var fe,be;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return fe=this._bucketRequestParams("DELETE",he,"",me),Te.next=3,this.request(fe);case 3:if(be=Te.sent,!(be.status===200||be.status===204)){Te.next=6;break}return Te.abrupt("return",{res:be.res});case 6:return Te.next=8,this.requestError(be);case 8:throw Te.sent;case 9:case"end":return Te.stop()}},ce,this)}));function ue(ce,he){return le.apply(this,arguments)}return ue}(),E.putBucketACL=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me,fe){var be,Ce;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return be=this._bucketRequestParams("PUT",he,"acl",fe),be.headers={"x-oss-acl":me},be.successStatuses=[200],Pe.next=5,this.request(be);case 5:return Ce=Pe.sent,Pe.abrupt("return",{bucket:Ce.headers.location&&Ce.headers.location.substring(1)||null,res:Ce.res});case 7:case"end":return Pe.stop()}},ce,this)}));function ue(ce,he,me){return le.apply(this,arguments)}return ue}(),E.getBucketACL=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me){var fe,be;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return fe=this._bucketRequestParams("GET",he,"acl",me),fe.successStatuses=[200],fe.xmlResponse=!0,Te.next=5,this.request(fe);case 5:return be=Te.sent,Te.abrupt("return",{acl:be.data.AccessControlList.Grant,owner:{id:be.data.Owner.ID,displayName:be.data.Owner.DisplayName},res:be.res});case 7:case"end":return Te.stop()}},ce,this)}));function ue(ce,he){return le.apply(this,arguments)}return ue}(),E.putBucketLogging=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me,fe){var be,Ce,Te;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return be=this._bucketRequestParams("PUT",he,"logging",fe),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(he,`</TargetBucket>
`),me&&(Ce+="<TargetPrefix>".concat(me,`</TargetPrefix>
`)),Ce+=`</LoggingEnabled>
</BucketLoggingStatus>`,be.content=Ce,be.mime="xml",be.successStatuses=[200],ke.next=9,this.request(be);case 9:return Te=ke.sent,ke.abrupt("return",{res:Te.res});case 11:case"end":return ke.stop()}},ce,this)}));function ue(ce,he,me){return le.apply(this,arguments)}return ue}(),E.getBucketLogging=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me){var fe,be,Ce;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return fe=this._bucketRequestParams("GET",he,"logging",me),fe.successStatuses=[200],fe.xmlResponse=!0,Pe.next=5,this.request(fe);case 5:return be=Pe.sent,Ce=be.data.LoggingEnabled,Pe.abrupt("return",{enable:!!Ce,prefix:Ce&&Ce.TargetPrefix||null,res:be.res});case 8:case"end":return Pe.stop()}},ce,this)}));function ue(ce,he){return le.apply(this,arguments)}return ue}(),E.deleteBucketLogging=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me){var fe,be;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return fe=this._bucketRequestParams("DELETE",he,"logging",me),fe.successStatuses=[204,200],Te.next=4,this.request(fe);case 4:return be=Te.sent,Te.abrupt("return",{res:be.res});case 6:case"end":return Te.stop()}},ce,this)}));function ue(ce,he){return le.apply(this,arguments)}return ue}(),E.putBucketCORS=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me,fe){var be,Ce,Te,Pe,ke,de,ge,Se,De,_e;return z.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:for(me=me||[],ie(me.length,"rules is required"),me.forEach(function(He){ie(He.allowedOrigin,"allowedOrigin is required"),ie(He.allowedMethod,"allowedMethod is required")}),be=this._bucketRequestParams("PUT",he,"cors",fe),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,Te=function(Xe){Ce+="<AllowedOrigin>".concat(Xe,"</AllowedOrigin>")},Pe=function(Xe){Ce+="<AllowedMethod>".concat(Xe,"</AllowedMethod>")},ke=function(Xe){Ce+="<AllowedHeader>".concat(Xe,"</AllowedHeader>")},de=function(Xe){Ce+="<ExposeHeader>".concat(Xe,"</ExposeHeader>")},ge=0,Se=me.length;ge<Se;ge++)De=me[ge],Ce+="<CORSRule>",re(De.allowedOrigin).forEach(Te),re(De.allowedMethod).forEach(Pe),re(De.allowedHeader).forEach(ke),re(De.exposeHeader).forEach(de),De.maxAgeSeconds&&(Ce+="<MaxAgeSeconds>".concat(De.maxAgeSeconds,"</MaxAgeSeconds>")),Ce+="</CORSRule>";return Ce+="</CORSConfiguration>",be.content=Ce,be.mime="xml",be.successStatuses=[200],Oe.next=16,this.request(be);case 16:return _e=Oe.sent,Oe.abrupt("return",{res:_e.res});case 18:case"end":return Oe.stop()}},ce,this)}));function ue(ce,he,me){return le.apply(this,arguments)}return ue}(),E.getBucketCORS=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me){var fe,be,Ce,Te;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return fe=this._bucketRequestParams("GET",he,"cors",me),fe.successStatuses=[200],fe.xmlResponse=!0,ke.next=5,this.request(fe);case 5:return be=ke.sent,Ce=[],be.data&&be.data.CORSRule&&(Te=be.data.CORSRule,te(Te)||(Te=[Te]),Te.forEach(function(de){var ge={};Object.keys(de).forEach(function(Se){ge[Se.slice(0,1).toLowerCase()+Se.slice(1,Se.length)]=de[Se]}),Ce.push(ge)})),ke.abrupt("return",{rules:Ce,res:be.res});case 9:case"end":return ke.stop()}},ce,this)}));function ue(ce,he){return le.apply(this,arguments)}return ue}(),E.deleteBucketCORS=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me){var fe,be;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return fe=this._bucketRequestParams("DELETE",he,"cors",me),fe.successStatuses=[204],Te.next=4,this.request(fe);case 4:return be=Te.sent,Te.abrupt("return",{res:be.res});case 6:case"end":return Te.stop()}},ce,this)}));function ue(ce,he){return le.apply(this,arguments)}return ue}(),E.putBucketReferer=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me,fe,be){var Ce,Te,Pe,ke;return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:if(Ce=this._bucketRequestParams("PUT",he,"referer",be),Te=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,Te+=" <AllowEmptyReferer>".concat(me?"true":"false",`</AllowEmptyReferer>
`),fe&&fe.length>0){for(Te+=` <RefererList>
`,Pe=0;Pe<fe.length;Pe++)Te+=" <Referer>".concat(fe[Pe],`</Referer>
`);Te+=` </RefererList>
`}else Te+=` <RefererList />
`;return Te+="</RefererConfiguration>",Ce.content=Te,Ce.mime="xml",Ce.successStatuses=[200],ge.next=10,this.request(Ce);case 10:return ke=ge.sent,ge.abrupt("return",{res:ke.res});case 12:case"end":return ge.stop()}},ce,this)}));function ue(ce,he,me,fe){return le.apply(this,arguments)}return ue}(),E.getBucketReferer=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me){var fe,be,Ce;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return fe=this._bucketRequestParams("GET",he,"referer",me),fe.successStatuses=[200],fe.xmlResponse=!0,Pe.next=5,this.request(fe);case 5:return be=Pe.sent,Ce=be.data.RefererList.Referer||null,Ce&&(te(Ce)||(Ce=[Ce])),Pe.abrupt("return",{allowEmpty:be.data.AllowEmptyReferer==="true",referers:Ce,res:be.res});case 9:case"end":return Pe.stop()}},ce,this)}));function ue(ce,he){return le.apply(this,arguments)}return ue}(),E.deleteBucketReferer=function(){var le=(0,oe.default)(z.default.mark(function ce(he,me){return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,this.putBucketReferer(he,!0,null,me);case 2:return be.abrupt("return",be.sent);case 3:case"end":return be.stop()}},ce,this)}));function ue(ce,he){return le.apply(this,arguments)}return ue}(),E._bucketRequestParams=function(ue,ce,he,me){return{method:ue,bucket:ce,subres:he,timeout:me&&me.timeout,ctx:me&&me.ctx}}},{"../common/utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,assert:82,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],3:[function(y,we,ve){(function(x,z){(function(){"use strict";var oe=y("@babel/runtime/helpers/interopRequireDefault"),ie=oe(y("@babel/runtime/regenerator")),ee=oe(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.to-string.js");var se=y("debug")("ali-oss"),E=y("xml2js"),te=y("agentkeepalive"),re=y("merge-descriptors"),le=y("platform"),ue=y("utility"),ce=y("urllib"),he=y("./version"),me=y("bowser"),fe=y("../common/signUtils"),be=y("../common/client/initOptions"),Ce=y("../common/utils/createRequest"),Te=Ce.createRequest,Pe=y("../common/utils/encoder"),ke=Pe.encoder,de=y("../common/client/getReqUrl"),ge=de.getReqUrl,Se=y("../common/utils/setSTSToken"),De=Se.setSTSToken,_e=y("../common/utils/retry"),Ee=_e.retry,Oe=y("../common/utils/isFunction"),He=Oe.isFunction,Xe=new te;function et(){var it=le.name,Ye=le.version;it&&it.toLowerCase&&it.toLowerCase()==="ie"&&Ye.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function st(){return location&&location.protocol==="https:"}function Le(it,Ye){if(et(),!(this instanceof Le))return new Le(it,Ye);it&&it.inited?this.options=it:this.options=Le.initOptions(it),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ce,this.agent=this.options.agent||Xe),this.ctx=Ye,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}we.exports=Le,Le.initOptions=function(Ye){Ye.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var $e=Object.assign({secure:st(),useFetch:!1},Ye);return be($e)};var Ue=Le.prototype;Ue.debug=se,re(Ue,y("./object")),re(Ue,y("./bucket")),re(Ue,y("../common/bucket/getBucketWebsite")),re(Ue,y("../common/bucket/putBucketWebsite")),re(Ue,y("../common/bucket/deleteBucketWebsite")),re(Ue,y("../common/bucket/getBucketLifecycle")),re(Ue,y("../common/bucket/putBucketLifecycle")),re(Ue,y("../common/bucket/deleteBucketLifecycle")),re(Ue,y("../common/bucket/putBucketVersioning")),re(Ue,y("../common/bucket/getBucketVersioning")),re(Ue,y("../common/bucket/getBucketInventory")),re(Ue,y("../common/bucket/deleteBucketInventory")),re(Ue,y("../common/bucket/listBucketInventory")),re(Ue,y("../common/bucket/putBucketInventory")),re(Ue,y("../common/bucket/abortBucketWorm")),re(Ue,y("../common/bucket/completeBucketWorm")),re(Ue,y("../common/bucket/extendBucketWorm")),re(Ue,y("../common/bucket/getBucketWorm")),re(Ue,y("../common/bucket/initiateBucketWorm")),re(Ue,y("./managed-upload")),re(Ue,y("../common/multipart-copy")),re(Ue,y("../common/multipart")),re(Ue,y("../common/parallel")),Ue.signature=function(Ye){return this.debug("authorization stringToSign: %s",Ye,"info"),fe.computeSignature(this.options.accessKeySecret,Ye,this.options.headerEncoding)},Ue._getReqUrl=ge,Ue.authorization=function(Ye,$e,Ke,ft){var tt=fe.buildCanonicalString(Ye.toUpperCase(),$e,{headers:ft,parameters:Ke});return fe.authorization(this.options.accessKeyId,this.options.accessKeySecret,tt,this.options.headerEncoding)},Ue.request=function(){var it=(0,ee.default)(ie.default.mark(function Ye($e){var Ke=this;return ie.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!this.options.retryMax){tt.next=6;break}return tt.next=3,Ee(rt.bind(this),this.options.retryMax,{errorHandler:function(lt){var Ze=function(ze){if($e.stream)return!1;var Me=[-1,-2].includes(ze.status),Ge=Ke.options.requestErrorRetryHandle||function(){return!0};return Me&&Ge(ze)};return!!Ze(lt)}})($e);case 3:return tt.abrupt("return",tt.sent);case 6:return tt.abrupt("return",rt.call(this,$e));case 7:case"end":return tt.stop()}},Ye,this)}));return function(Ye){return it.apply(this,arguments)}}();function rt(it){return ot.apply(this,arguments)}function ot(){return ot=(0,ee.default)(ie.default.mark(function it(Ye){var $e,Ke,ft,tt,ut,lt;return ie.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!(this.options.stsToken&&He(this.options.refreshSTSToken))){Ne.next=3;break}return Ne.next=3,De.call(this);case 3:return $e=Te.call(this,Ye),this.options.useFetch||($e.params.mode="disable-fetch"),tt=!!Ye.stream,Ne.prev=6,Ne.next=9,this.urllib.request($e.url,$e.params);case 9:Ke=Ne.sent,this.debug("response %s %s, got %s, headers: %j",Ye.method,$e.url,Ke.status,Ke.headers,"info"),Ne.next=16;break;case 13:Ne.prev=13,Ne.t0=Ne.catch(6),ft=Ne.t0;case 16:if(!(Ke&&Ye.successStatuses&&Ye.successStatuses.indexOf(Ke.status)===-1)){Ne.next=28;break}return Ne.next=19,this.requestError(Ke);case 19:if(ut=Ne.sent,!(ut.code==="RequestTimeTooSkewed"&&!tt)){Ne.next=25;break}return this.options.amendTimeSkewed=+new Date(ut.serverTime)-new Date,Ne.next=24,this.request(Ye);case 24:return Ne.abrupt("return",Ne.sent);case 25:ut.params=Ye,Ne.next=32;break;case 28:if(!ft){Ne.next=32;break}return Ne.next=31,this.requestError(ft);case 31:ut=Ne.sent;case 32:if(!ut){Ne.next=34;break}throw ut;case 34:if(!Ye.xmlResponse){Ne.next=39;break}return Ne.next=37,this.parseXML(Ke.data);case 37:lt=Ne.sent,Ke.data=lt;case 39:return Ne.abrupt("return",Ke);case 40:case"end":return Ne.stop()}},it,this,[[6,13]])})),ot.apply(this,arguments)}Ue._getResource=function(Ye){var $e="/";return Ye.bucket&&($e+="".concat(Ye.bucket,"/")),Ye.object&&($e+=ke(Ye.object,this.options.headerEncoding)),$e},Ue._escape=function(Ye){return ue.encodeURIComponent(Ye).replace(/%2F/g,"/")},Ue._getUserAgent=function(){var Ye=z&&z.browser?"js":"nodejs",$e="aliyun-sdk-".concat(Ye,"/").concat(he.version),Ke=le.description;return!Ke&&z&&(Ke="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat($e," ").concat(Ke))},Ue._checkUserAgent=function(Ye){var $e=Ye.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return $e},Ue.checkBrowserAndVersion=function(Ye,$e){return me.name===Ye&&me.version.split(".")[0]===$e},Ue.parseXML=function(Ye){return new Promise(function($e,Ke){x.isBuffer(Ye)&&(Ye=Ye.toString()),E.parseString(Ye,{explicitRoot:!1,explicitArray:!1},function(ft,tt){ft?Ke(ft):$e(tt)})})},Ue.requestError=function(){var it=(0,ee.default)(ie.default.mark(function $e(Ke){var ft,tt,ut,lt;return ie.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(ft=null,!(!Ke.data||!Ke.data.length)){Ne.next=5;break}Ke.status===-1||Ke.status===-2?(ft=new Error(Ke.message),ft.name=Ke.name,ft.status=Ke.status,ft.code=Ke.name):(Ke.status===404?(ft=new Error("Object not exists"),ft.name="NoSuchKeyError",ft.status=404,ft.code="NoSuchKey"):Ke.status===412?(ft=new Error("Pre condition failed"),ft.name="PreconditionFailedError",ft.status=412,ft.code="PreconditionFailed"):(ft=new Error("Unknow error, status: ".concat(Ke.status)),ft.name="UnknownError",ft.status=Ke.status),ft.requestId=Ke.headers["x-oss-request-id"],ft.host=""),Ne.next=32;break;case 5:return tt=String(Ke.data),this.debug("request response error data: %s",tt,"error"),Ne.prev=7,Ne.next=10,this.parseXML(tt);case 10:if(Ne.t0=Ne.sent,Ne.t0){Ne.next=13;break}Ne.t0={};case 13:ut=Ne.t0,Ne.next=23;break;case 16:return Ne.prev=16,Ne.t1=Ne.catch(7),this.debug(tt,"error"),Ne.t1.message+=`
raw xml: `.concat(tt),Ne.t1.status=Ke.status,Ne.t1.requestId=Ke.headers["x-oss-request-id"],Ne.abrupt("return",Ne.t1);case 23:lt=ut.Message||"unknow request error, status: ".concat(Ke.status),ut.Condition&&(lt+=" (condition: ".concat(ut.Condition,")")),ft=new Error(lt),ft.name=ut.Code?"".concat(ut.Code,"Error"):"UnknownError",ft.status=Ke.status,ft.code=ut.Code,ft.requestId=ut.RequestId,ft.hostId=ut.HostId,ft.serverTime=ut.ServerTime;case 32:return this.debug("generate error %j",ft,"error"),Ne.abrupt("return",ft);case 34:case"end":return Ne.stop()}},$e,this,[[7,16]])}));function Ye($e){return it.apply(this,arguments)}return Ye}()}).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,ve){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("util"),se=y("path"),E=y("mime"),te=y("copy-to"),re=y("../common/utils/isBlob"),le=re.isBlob,ue=y("../common/utils/isFile"),ce=ue.isFile,he=y("../common/utils/isBuffer"),me=he.isBuffer,fe=ve;fe.multipartUpload=function(){var ke=(0,ie.default)(oe.default.mark(function ge(Se,De){var _e,Ee,Oe,He,Xe,et,st,Le,Ue,rt=arguments;return oe.default.wrap(function(it){for(;;)switch(it.prev=it.next){case 0:if(_e=rt.length>2&&rt[2]!==void 0?rt[2]:{},this.resetCancelFlag(),_e.disabledMD5=_e.disabledMD5===void 0?!0:!!_e.disabledMD5,!(_e.checkpoint&&_e.checkpoint.uploadId)){it.next=8;break}return De&&ce(De)&&(_e.checkpoint.file=De),it.next=7,this._resumeMultipart(_e.checkpoint,_e);case 7:return it.abrupt("return",it.sent);case 8:return Ee=102400,_e.mime||(ce(De)?_e.mime=E.getType(se.extname(De.name)):le(De)?_e.mime=De.type:me(De)?_e.mime="":_e.mime=E.getType(se.extname(De))),_e.headers=_e.headers||{},this._convertMetaToHeaders(_e.meta,_e.headers),it.next=14,this._getFileSize(De);case 14:if(Oe=it.sent,!(Oe<Ee)){it.next=26;break}return _e.contentLength=Oe,it.next=19,this.put(Se,De,_e);case 19:if(He=it.sent,!(_e&&_e.progress)){it.next=23;break}return it.next=23,_e.progress(1);case 23:return Xe={res:He.res,bucket:this.options.bucket,name:Se,etag:He.res.headers.etag},(_e.headers&&_e.headers["x-oss-callback"]||_e.callback)&&(Xe.data=He.data),it.abrupt("return",Xe);case 26:if(!(_e.partSize&&parseInt(_e.partSize,10)!==_e.partSize)){it.next=28;break}throw new Error("partSize must be int number");case 28:if(!(_e.partSize&&_e.partSize<Ee)){it.next=30;break}throw new Error("partSize must not be smaller than ".concat(Ee));case 30:return it.next=32,this.initMultipartUpload(Se,_e);case 32:if(et=it.sent,st=et.uploadId,Le=this._getPartSize(Oe,_e.partSize),Ue={file:De,name:Se,fileSize:Oe,partSize:Le,uploadId:st,doneParts:[]},!(_e&&_e.progress)){it.next=39;break}return it.next=39,_e.progress(0,Ue,et.res);case 39:return it.next=41,this._resumeMultipart(Ue,_e);case 41:return it.abrupt("return",it.sent);case 42:case"end":return it.stop()}},ge,this)}));function de(ge,Se){return ke.apply(this,arguments)}return de}(),fe._resumeMultipart=function(){var ke=(0,ie.default)(oe.default.mark(function ge(Se,De){var _e,Ee,Oe,He,Xe,et,st,Le,Ue,rt,ot,it,Ye,$e,Ke,ft,tt,ut,lt;return oe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(_e=this,!this.isCancel()){Ne.next=3;break}throw this._makeCancelEvent();case 3:return Ee=Se.file,Oe=Se.fileSize,He=Se.partSize,Xe=Se.uploadId,et=Se.doneParts,st=Se.name,Le=[],et.length>0&&te(et).to(Le),Ue=this._divideParts(Oe,He),rt=Ue.length,ot=!1,it=function(Me,Ge){return new Promise(function(){var ct=(0,ie.default)(oe.default.mark(function mt(nt,Ae){var je,We,at,Re,xe;return oe.default.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Fe.prev=0,Me.isCancel()){Fe.next=29;break}return je=Ue[Ge-1],Fe.next=5,Me._createBuffer(Ee,je.start,je.end);case 5:return We=Fe.sent,at={content:We,size:je.end-je.start},Fe.prev=7,Fe.next=10,Me._uploadPart(st,Xe,Ge,at,De);case 10:Re=Fe.sent,Fe.next=18;break;case 13:if(Fe.prev=13,Fe.t0=Fe.catch(7),Fe.t0.status!==404){Fe.next=17;break}throw Me._makeAbortEvent();case 17:throw Fe.t0;case 18:if(!(!Me.isCancel()&&!ot)){Fe.next=26;break}if(Se.doneParts.push({number:Ge,etag:Re.res.headers.etag}),!De.progress){Fe.next=23;break}return Fe.next=23,De.progress(et.length/(rt+1),Se,Re.res);case 23:nt({number:Ge,etag:Re.res.headers.etag}),Fe.next=27;break;case 26:nt();case 27:Fe.next=30;break;case 29:nt();case 30:Fe.next=41;break;case 32:Fe.prev=32,Fe.t1=Fe.catch(0),xe=new Error,xe.name=Fe.t1.name,xe.message=Fe.t1.message,xe.stack=Fe.t1.stack,xe.partNum=Ge,te(Fe.t1).to(xe),Ae(xe);case 41:case"end":return Fe.stop()}},mt,null,[[0,32],[7,13]])}));return function(mt,nt){return ct.apply(this,arguments)}}())},Ye=Array.from(new Array(rt),function(ze,Me){return Me+1}),$e=Le.map(function(ze){return ze.number}),Ke=Ye.filter(function(ze){return $e.indexOf(ze)<0}),ft=5,tt=De.parallel||ft,Ne.next=17,this._parallel(Ke,tt,function(ze){return new Promise(function(Me,Ge){it(_e,ze).then(function(ct){ct&&Le.push(ct),Me()}).catch(function(ct){Ge(ct)})})});case 17:if(ut=Ne.sent,ot=!0,lt=ut.find(function(ze){return ze.name==="abort"}),!lt){Ne.next=22;break}throw lt;case 22:if(!this.isCancel()){Ne.next=25;break}throw it=null,this._makeCancelEvent();case 25:if(!(ut&&ut.length>0)){Ne.next=28;break}throw ut[0].message="Failed to upload some parts with error: ".concat(ut[0].toString()," part_num: ").concat(ut[0].partNum),ut[0];case 28:return Ne.next=30,this.completeMultipartUpload(st,Xe,Le,De);case 30:return Ne.abrupt("return",Ne.sent);case 31:case"end":return Ne.stop()}},ge,this)}));function de(ge,Se){return ke.apply(this,arguments)}return de}(),fe._getFileSize=function(){var ke=(0,ie.default)(oe.default.mark(function ge(Se){return oe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(!me(Se)){_e.next=4;break}return _e.abrupt("return",Se.length);case 4:if(!(le(Se)||ce(Se))){_e.next=6;break}return _e.abrupt("return",Se.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return _e.stop()}},ge)}));function de(ge){return ke.apply(this,arguments)}return de}();var be=y("stream"),Ce=be.Readable;function Te(ke,de){if(!(this instanceof Te))return new Te(ke,de);Ce.call(this,de),this.file=ke,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(Te,Ce),Te.prototype.readFileAndPush=function(de){if(this.fileBuffer)for(var ge=!0;ge&&this.fileBuffer&&this.start<this.fileBuffer.length;){var Se=this.start,De=Se+de;De=De>this.fileBuffer.length?this.fileBuffer.length:De,this.start=De,ge=this.push(this.fileBuffer.slice(Se,De))}},Te.prototype._read=function(de){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 ge=16*1024;de=de||ge;var Se=this;this.reader.onload=function(_e){Se.fileBuffer=x.from(new Uint8Array(_e.target.result)),Se.file=null,Se.readFileAndPush(de)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(de)};function Pe(ke){return ke.arrayBuffer?ke.arrayBuffer():new Promise(function(de,ge){var Se=new FileReader;Se.onload=function(De){de(De.target.result)},Se.onerror=function(De){ge(De)},Se.readAsArrayBuffer(ke)})}fe._createBuffer=function(){var ke=(0,ie.default)(oe.default.mark(function ge(Se,De,_e){var Ee,Oe;return oe.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:if(!(le(Se)||ce(Se))){Xe.next=8;break}return Ee=Se.slice(De,_e),Xe.next=4,Pe(Ee);case 4:return Oe=Xe.sent,Xe.abrupt("return",x.from(Oe));case 8:if(!me(Se)){Xe.next=12;break}return Xe.abrupt("return",Se.subarray(De,_e));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Xe.stop()}},ge)}));function de(ge,Se,De){return ke.apply(this,arguments)}return de}(),fe._getPartSize=function(de,ge){var Se=1e4,De=1*1024*1024;ge||(ge=De);var _e=Math.ceil(de/Se);return ge<_e&&(ge=_e,console.warn("partSize has been set to ".concat(ge,", because the partSize you provided causes partNumber to be greater than 10,000"))),ge},fe._divideParts=function(de,ge){for(var Se=Math.ceil(de/ge),De=[],_e=0;_e<Se;_e++){var Ee=ge*_e,Oe=Math.min(Ee+ge,de);De.push({start:Ee,end:Oe})}return De}}).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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.promise.js");var z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("fs"),ee=y("copy-to"),se=y("path"),E=y("mime"),te=y("../common/callback"),re=y("merge-descriptors"),le=y("../common/utils/isBlob"),ue=le.isBlob,ce=y("../common/utils/isFile"),he=ce.isFile,me=y("../common/utils/isBuffer"),fe=me.isBuffer,be=y("../common/utils/obj2xml"),Ce=be.obj2xml,Te=ve;Te.append=function(){var Pe=(0,oe.default)(z.default.mark(function de(ge,Se,De){var _e;return z.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return De=De||{},De.position===void 0&&(De.position="0"),De.subres={append:"",position:De.position},De.method="POST",Oe.next=6,this.put(ge,Se,De);case 6:return _e=Oe.sent,_e.nextAppendPosition=_e.res.headers["x-oss-next-append-position"],Oe.abrupt("return",_e);case 9:case"end":return Oe.stop()}},de,this)}));function ke(de,ge,Se){return Pe.apply(this,arguments)}return ke}(),Te.put=function(){var Pe=(0,oe.default)(z.default.mark(function de(ge,Se,De){var _e,Ee,Oe,He,Xe;return z.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(De=De||{},De.disabledMD5=De.disabledMD5===void 0?!0:!!De.disabledMD5,De.headers=De.headers||{},ge=this._objectName(ge),!fe(Se)){st.next=8;break}_e=Se,st.next=19;break;case 8:if(!(ue(Se)||he(Se))){st.next=18;break}return De.mime||(he(Se)?De.mime=E.getType(se.extname(Se.name)):De.mime=Se.type),st.next=12,this._createBuffer(Se,0,Se.size);case 12:return _e=st.sent,st.next=15,this._getFileSize(Se);case 15:De.contentLength=st.sent,st.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(De.meta,De.headers),Ee=De.method||"PUT",Oe=this._objectRequestParams(Ee,ge,De),te.encodeCallback(Oe,De),Oe.mime=De.mime,Oe.disabledMD5=De.disabledMD5,Oe.content=_e,Oe.successStatuses=[200],st.next=29,this.request(Oe);case 29:return He=st.sent,Xe={name:ge,url:this._objectUrl(ge),res:He.res},Oe.headers&&Oe.headers["x-oss-callback"]&&(Xe.data=JSON.parse(He.data.toString())),st.abrupt("return",Xe);case 33:case"end":return st.stop()}},de,this)}));function ke(de,ge,Se){return Pe.apply(this,arguments)}return ke}(),Te.putStream=function(){var Pe=(0,oe.default)(z.default.mark(function de(ge,Se,De){var _e,Ee,Oe,He;return z.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return De=De||{},De.headers=De.headers||{},ge=this._objectName(ge),De.contentLength?De.headers["Content-Length"]=De.contentLength:De.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(De.meta,De.headers),_e=De.method||"PUT",Ee=this._objectRequestParams(_e,ge,De),te.encodeCallback(Ee,De),Ee.mime=De.mime,Ee.stream=Se,Ee.successStatuses=[200],et.next=13,this.request(Ee);case 13:return Oe=et.sent,He={name:ge,url:this._objectUrl(ge),res:Oe.res},Ee.headers&&Ee.headers["x-oss-callback"]&&(He.data=JSON.parse(Oe.data.toString())),et.abrupt("return",He);case 17:case"end":return et.stop()}},de,this)}));function ke(de,ge,Se){return Pe.apply(this,arguments)}return ke}(),re(Te,y("../common/object/copyObject")),re(Te,y("../common/object/getObjectTagging")),re(Te,y("../common/object/putObjectTagging")),re(Te,y("../common/object/deleteObjectTagging")),re(Te,y("../common/image")),re(Te,y("../common/object/getBucketVersions")),re(Te,y("../common/object/getACL")),re(Te,y("../common/object/putACL")),re(Te,y("../common/object/head")),re(Te,y("../common/object/delete")),re(Te,y("../common/object/get")),re(Te,y("../common/object/putSymlink")),re(Te,y("../common/object/getSymlink")),re(Te,y("../common/object/deleteMulti")),re(Te,y("../common/object/getObjectMeta")),re(Te,y("../common/object/getObjectUrl")),re(Te,y("../common/object/generateObjectUrl")),re(Te,y("../common/object/signatureUrl")),re(Te,y("../common/object/asyncSignatureUrl")),Te.putMeta=function(){var Pe=(0,oe.default)(z.default.mark(function de(ge,Se,De){var _e;return z.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.next=2,this.copy(ge,ge,{meta:Se||{},timeout:De&&De.timeout,ctx:De&&De.ctx});case 2:return _e=Oe.sent,Oe.abrupt("return",_e);case 4:case"end":return Oe.stop()}},de,this)}));function ke(de,ge,Se){return Pe.apply(this,arguments)}return ke}(),Te.list=function(){var Pe=(0,oe.default)(z.default.mark(function de(ge,Se){var De,_e,Ee,Oe,He;return z.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return De=this._objectRequestParams("GET","",Se),De.query=ge,De.xmlResponse=!0,De.successStatuses=[200],et.next=6,this.request(De);case 6:return _e=et.sent,Ee=_e.data.Contents||[],Oe=this,Ee&&(Array.isArray(Ee)||(Ee=[Ee]),Ee=Ee.map(function(st){return{name:st.Key,url:Oe._objectUrl(st.Key),lastModified:st.LastModified,etag:st.ETag,type:st.Type,size:Number(st.Size),storageClass:st.StorageClass,owner:{id:st.Owner.ID,displayName:st.Owner.DisplayName}}})),He=_e.data.CommonPrefixes||null,He&&(Array.isArray(He)||(He=[He]),He=He.map(function(st){return st.Prefix})),et.abrupt("return",{res:_e.res,objects:Ee,prefixes:He,nextMarker:_e.data.NextMarker||null,isTruncated:_e.data.IsTruncated==="true"});case 13:case"end":return et.stop()}},de,this)}));function ke(de,ge){return Pe.apply(this,arguments)}return ke}(),Te.listV2=function(){var Pe=(0,oe.default)(z.default.mark(function de(ge){var Se,De,_e,Ee,Oe,He,Xe,et=arguments;return z.default.wrap(function(Le){for(;;)switch(Le.prev=Le.next){case 0:return Se=et.length>1&&et[1]!==void 0?et[1]:{},De=ge["continuation-token"]||ge.continuationToken,De&&(Se.subres=Object.assign({"continuation-token":De},Se.subres)),_e=this._objectRequestParams("GET","",Se),_e.query=Object.assign({"list-type":2},ge),delete _e.query["continuation-token"],delete _e.query.continuationToken,_e.xmlResponse=!0,_e.successStatuses=[200],Le.next=11,this.request(_e);case 11:return Ee=Le.sent,Oe=Ee.data.Contents||[],He=this,Oe&&(Array.isArray(Oe)||(Oe=[Oe]),Oe=Oe.map(function(Ue){var rt=null;return Ue.Owner&&(rt={id:Ue.Owner.ID,displayName:Ue.Owner.DisplayName}),{name:Ue.Key,url:He._objectUrl(Ue.Key),lastModified:Ue.LastModified,etag:Ue.ETag,type:Ue.Type,size:Number(Ue.Size),storageClass:Ue.StorageClass,owner:rt}})),Xe=Ee.data.CommonPrefixes||null,Xe&&(Array.isArray(Xe)||(Xe=[Xe]),Xe=Xe.map(function(Ue){return Ue.Prefix})),Le.abrupt("return",{res:Ee.res,objects:Oe,prefixes:Xe,isTruncated:Ee.data.IsTruncated==="true",keyCount:+Ee.data.KeyCount,continuationToken:Ee.data.ContinuationToken||null,nextContinuationToken:Ee.data.NextContinuationToken||null});case 18:case"end":return Le.stop()}},de,this)}));function ke(de){return Pe.apply(this,arguments)}return ke}(),Te.restore=function(){var Pe=(0,oe.default)(z.default.mark(function de(ge){var Se,De,_e,Ee,Oe=arguments;return z.default.wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Se=Oe.length>1&&Oe[1]!==void 0?Oe[1]:{type:"Archive"},Se=Se||{},Se.subres=Object.assign({restore:""},Se.subres),Se.versionId&&(Se.subres.versionId=Se.versionId),De=this._objectRequestParams("POST",ge,Se),Se.type==="ColdArchive"&&(_e={RestoreRequest:{Days:Se.Days?Se.Days:2,JobParameters:{Tier:Se.JobParameters?Se.JobParameters:"Standard"}}},De.content=Ce(_e,{headers:!0}),De.mime="xml"),De.successStatuses=[202],Xe.next=9,this.request(De);case 9:return Ee=Xe.sent,Xe.abrupt("return",{res:Ee.res});case 11:case"end":return Xe.stop()}},de,this)}));function ke(de){return Pe.apply(this,arguments)}return ke}(),Te._objectUrl=function(ke){return this._getReqUrl({bucket:this.options.bucket,object:ke})},Te._objectRequestParams=function(ke,de,ge){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");ge=ge||{},de=this._objectName(de);var Se={object:de,bucket:this.options.bucket,method:ke,subres:ge&&ge.subres,timeout:ge&&ge.timeout,ctx:ge&&ge.ctx};return ge.headers&&(Se.headers={},ee(ge.headers).to(Se.headers)),Se},Te._objectName=function(ke){return ke.replace(/^\/+/,"")},Te._convertMetaToHeaders=function(ke,de){ke&&Object.keys(ke).forEach(function(ge){de["x-oss-meta-".concat(ge)]=ke[ge]})},Te._deleteFileSafe=function(ke){var de=this;return new Promise(function(ge){ie.exists(ke,function(Se){Se?ie.unlink(ke,function(De){De&&de.debug("unlink %j error: %s",ke,De,"error"),ge()}):ge()})})}},{"../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,ve){"use strict";ve.version="6.18.1"},{}],7:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.abortBucketWorm=void 0;var ie=y("../utils/checkBucketName");function ee(E,te){return se.apply(this,arguments)}function se(){return se=(0,oe.default)(z.default.mark(function E(te,re){var le,ue;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ie.checkBucketName(te),le=this._bucketRequestParams("DELETE",te,"worm",re),he.next=4,this.request(le);case 4:return ue=he.sent,he.abrupt("return",{res:ue.res,status:ue.status});case 6:case"end":return he.stop()}},E,this)})),se.apply(this,arguments)}ve.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.completeBucketWorm=void 0;var ie=y("../utils/checkBucketName");function ee(E,te,re){return se.apply(this,arguments)}function se(){return se=(0,oe.default)(z.default.mark(function E(te,re,le){var ue,ce;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ie.checkBucketName(te),ue=this._bucketRequestParams("POST",te,{wormId:re},le),me.next=4,this.request(ue);case 4:return ce=me.sent,me.abrupt("return",{res:ce.res,status:ce.status});case 6:case"end":return me.stop()}},E,this)})),se.apply(this,arguments)}ve.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.deleteBucketInventory=void 0;var ie=y("../utils/checkBucketName");function ee(E,te){return se.apply(this,arguments)}function se(){return se=(0,oe.default)(z.default.mark(function E(te,re){var le,ue,ce,he,me=arguments;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return le=me.length>2&&me[2]!==void 0?me[2]:{},ue=Object.assign({inventory:"",inventoryId:re},le.subres),ie.checkBucketName(te),ce=this._bucketRequestParams("DELETE",te,ue,le),ce.successStatuses=[204],be.next=7,this.request(ce);case 7:return he=be.sent,be.abrupt("return",{status:he.status,res:he.res});case 9:case"end":return be.stop()}},E,this)})),se.apply(this,arguments)}ve.deleteBucketInventory=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287}],10:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=ve;se.deleteBucketLifecycle=function(){var E=(0,oe.default)(z.default.mark(function re(le,ue){var ce,he;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ee(le),ce=this._bucketRequestParams("DELETE",le,"lifecycle",ue),ce.successStatuses=[204],fe.next=5,this.request(ce);case 5:return he=fe.sent,fe.abrupt("return",{res:he.res});case 7:case"end":return fe.stop()}},re,this)}));function te(re,le){return E.apply(this,arguments)}return te}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=ve;se.deleteBucketWebsite=function(){var E=(0,oe.default)(z.default.mark(function re(le,ue){var ce,he;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return ee(le),ce=this._bucketRequestParams("DELETE",le,"website",ue),ce.successStatuses=[204],fe.next=5,this.request(ce);case 5:return he=fe.sent,fe.abrupt("return",{res:he.res});case 7:case"end":return fe.stop()}},re,this)}));function te(re,le){return E.apply(this,arguments)}return te}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.extendBucketWorm=void 0;var ie=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function se(te,re,le,ue){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function te(re,le,ue,ce){var he,me,fe;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ie.checkBucketName(re),he=this._bucketRequestParams("POST",re,{wormExtend:"",wormId:le},ce),me={ExtendWormConfiguration:{RetentionPeriodInDays:ue}},he.mime="xml",he.content=ee.obj2xml(me,{headers:!0}),he.successStatuses=[200],Ce.next=8,this.request(he);case 8:return fe=Ce.sent,Ce.abrupt("return",{res:fe.res,status:fe.status});case 10:case"end":return Ce.stop()}},te,this)})),E.apply(this,arguments)}ve.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.getBucketInventory=void 0;var ie=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function se(te,re){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function te(re,le){var ue,ce,he,me,fe=arguments;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=fe.length>2&&fe[2]!==void 0?fe[2]:{},ce=Object.assign({inventory:"",inventoryId:le},ue.subres),ie.checkBucketName(re),he=this._bucketRequestParams("GET",re,ce,ue),he.successStatuses=[200],he.xmlResponse=!0,Ce.next=8,this.request(he);case 8:return me=Ce.sent,Ce.abrupt("return",{status:me.status,res:me.res,inventory:ee.formatInventoryConfig(me.data)});case 10:case"end":return Ce.stop()}},te,this)})),E.apply(this,arguments)}ve.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=y("../utils/isArray"),E=se.isArray,te=y("../utils/formatObjKey"),re=te.formatObjKey,le=ve;le.getBucketLifecycle=function(){var ue=(0,oe.default)(z.default.mark(function he(me,fe){var be,Ce,Te;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ee(me),be=this._bucketRequestParams("GET",me,"lifecycle",fe),be.successStatuses=[200],be.xmlResponse=!0,ke.next=6,this.request(be);case 6:return Ce=ke.sent,Te=Ce.data.Rule||null,Te&&(E(Te)||(Te=[Te]),Te=Te.map(function(de){return de.ID&&(de.id=de.ID,delete de.ID),de.Tag&&!E(de.Tag)&&(de.Tag=[de.Tag]),re(de,"firstLowerCase")})),ke.abrupt("return",{rules:Te,res:Ce.res});case 10:case"end":return ke.stop()}},he,this)}));function ce(he,me){return ue.apply(this,arguments)}return ce}()},{"../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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=ve;se.getBucketVersioning=function(){var E=(0,oe.default)(z.default.mark(function re(le,ue){var ce,he,me;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ee(le),ce=this._bucketRequestParams("GET",le,"versioning",ue),ce.xmlResponse=!0,ce.successStatuses=[200],be.next=6,this.request(ce);case 6:return he=be.sent,me=he.data.Status,be.abrupt("return",{status:he.status,versionStatus:me,res:he.res});case 9:case"end":return be.stop()}},re,this)}));function te(re,le){return E.apply(this,arguments)}return te}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=y("../utils/isObject"),E=se.isObject,te=ve;te.getBucketWebsite=function(){var re=(0,oe.default)(z.default.mark(function ue(ce,he){var me,fe,be;return z.default.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return ee(ce),me=this._bucketRequestParams("GET",ce,"website",he),me.successStatuses=[200],me.xmlResponse=!0,Te.next=6,this.request(me);case 6:return fe=Te.sent,be=[],fe.data.RoutingRules&&fe.data.RoutingRules.RoutingRule&&(E(fe.data.RoutingRules.RoutingRule)?be=[fe.data.RoutingRules.RoutingRule]:be=fe.data.RoutingRules.RoutingRule),Te.abrupt("return",{index:fe.data.IndexDocument&&fe.data.IndexDocument.Suffix||"",supportSubDir:fe.data.IndexDocument&&fe.data.IndexDocument.SupportSubDir||"false",type:fe.data.IndexDocument&&fe.data.IndexDocument.Type,routingRules:be,error:fe.data.ErrorDocument&&fe.data.ErrorDocument.Key||null,res:fe.res});case 10:case"end":return Te.stop()}},ue,this)}));function le(ue,ce){return re.apply(this,arguments)}return le}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.getBucketWorm=void 0;var ie=y("../utils/checkBucketName"),ee=y("../utils/dataFix");function se(te,re){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function te(re,le){var ue,ce;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return ie.checkBucketName(re),ue=this._bucketRequestParams("GET",re,"worm",le),ue.successStatuses=[200],ue.xmlResponse=!0,me.next=6,this.request(ue);case 6:return ce=me.sent,ee.dataFix(ce.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),me.abrupt("return",Object.assign(Object.assign({},ce.data),{res:ce.res,status:ce.status}));case 9:case"end":return me.stop()}},te,this)})),E.apply(this,arguments)}ve.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.initiateBucketWorm=void 0;var ie=y("../utils/obj2xml"),ee=y("../utils/checkBucketName");function se(te,re,le){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function te(re,le,ue){var ce,he,me;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return ee.checkBucketName(re),ce=this._bucketRequestParams("POST",re,"worm",ue),he={InitiateWormConfiguration:{RetentionPeriodInDays:le}},ce.mime="xml",ce.content=ie.obj2xml(he,{headers:!0}),ce.successStatuses=[200],be.next=8,this.request(ce);case 8:return me=be.sent,be.abrupt("return",{res:me.res,wormId:me.res.headers["x-oss-worm-id"],status:me.status});case 10:case"end":return be.stop()}},te,this)})),E.apply(this,arguments)}ve.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.listBucketInventory=void 0;var ie=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function se(te){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function te(re){var le,ue,ce,he,me,fe,be,Ce,Te=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return le=Te.length>1&&Te[1]!==void 0?Te[1]:{},ue=le.continuationToken,ce=Object.assign({inventory:""},ue&&{"continuation-token":ue},le.subres),ie.checkBucketName(re),he=this._bucketRequestParams("GET",re,ce,le),he.successStatuses=[200],he.xmlResponse=!0,ke.next=9,this.request(he);case 9:return me=ke.sent,fe=me.data,be=me.res,Ce=me.status,ke.abrupt("return",{isTruncated:fe.IsTruncated==="true",nextContinuationToken:fe.NextContinuationToken,inventoryList:ee.formatInventoryConfig(fe.InventoryConfiguration,!0),status:Ce,res:be});case 12:case"end":return ke.stop()}},te,this)})),E.apply(this,arguments)}ve.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.concat.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.putBucketInventory=void 0;var ie=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function se(te,re){return E.apply(this,arguments)}function E(){return E=(0,oe.default)(z.default.mark(function te(re,le){var ue,ce,he,me,fe,be,Ce,Te,Pe,ke,de,ge=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ue=ge.length>2&&ge[2]!==void 0?ge[2]:{},ce=Object.assign({inventory:"",inventoryId:le.id},ue.subres),ie.checkBucketName(re),he=le.OSSBucketDestination,me=le.optionalFields,fe=le.includedObjectVersions,be="acs:oss:::",Ce="acs:ram::".concat(he.accountId,":role/"),Te={InventoryConfiguration:{Id:le.id,IsEnabled:le.isEnabled,Filter:{Prefix:le.prefix||""},Destination:{OSSBucketDestination:{Format:he.format,AccountId:he.accountId,RoleArn:"".concat(Ce).concat(he.rolename),Bucket:"".concat(be).concat(he.bucket),Prefix:he.prefix||"",Encryption:he.encryption||""}},Schedule:{Frequency:le.frequency},IncludedObjectVersions:fe,OptionalFields:{Field:(me==null?void 0:me.field)||[]}}},Pe=ee.obj2xml(Te,{headers:!0,firstUpperCase:!0}),ke=this._bucketRequestParams("PUT",re,ce,ue),ke.successStatuses=[200],ke.mime="xml",ke.content=Pe,De.next=14,this.request(ke);case 14:return de=De.sent,De.abrupt("return",{status:de.status,res:de.res});case 16:case"end":return De.stop()}},te,this)})),E.apply(this,arguments)}ve.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.array.includes.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=y("../utils/isArray"),E=se.isArray,te=y("../utils/deepCopy"),re=te.deepCopy,le=y("../utils/isObject"),ue=le.isObject,ce=y("../utils/obj2xml"),he=ce.obj2xml,me=y("../utils/checkObjectTag"),fe=me.checkObjectTag,be=y("../utils/getStrBytesCount"),Ce=be.getStrBytesCount,Te=ve;Te.putBucketLifecycle=function(){var Se=(0,oe.default)(z.default.mark(function _e(Ee,Oe,He){var Xe,et,st,Le,Ue;return z.default.wrap(function(ot){for(;;)switch(ot.prev=ot.next){case 0:if(ee(Ee),E(Oe)){ot.next=3;break}throw new Error("rules must be Array");case 3:return Xe=this._bucketRequestParams("PUT",Ee,"lifecycle",He),et=[],st={LifecycleConfiguration:{Rule:et}},Oe.forEach(function(it){Pe(it),ge(it),it.id&&(it.ID=it.id,delete it.id),et.push(it)}),Le=he(st,{headers:!0,firstUpperCase:!0}),Xe.content=Le,Xe.mime="xml",Xe.successStatuses=[200],ot.next=13,this.request(Xe);case 13:return Ue=ot.sent,ot.abrupt("return",{res:Ue.res});case 15:case"end":return ot.stop()}},_e,this)}));function De(_e,Ee,Oe){return Se.apply(this,arguments)}return De}();function Pe(Se){Se.days&&(Se.expiration={days:Se.days}),Se.date&&(Se.expiration={createdBeforeDate:Se.date})}function ke(Se,De){var _e=Se.days,Ee=Se.createdBeforeDate;if(!_e&&!Ee)throw new Error("".concat(De," must includes days or createdBeforeDate"));if(_e&&!/^[1-9][0-9]*$/.test(_e))throw new Error("days must be a positive integer");if(Ee&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(Ee))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function de(Se){if(!E(Se)&&!ue(Se))throw new Error("tag must be Object or Array");Se=ue(Se)?[Se]:Se;var De={},_e=re(Se);_e.forEach(function(Ee){De[Ee.key]=Ee.value}),fe(De)}function ge(Se){if(Se.id&&Ce(Se.id)>255)throw new Error("ID is composed of 255 bytes at most");if(Se.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(Se.status))throw new Error("Status must be Enabled or Disabled");if(Se.transition){if(!["IA","Archive"].includes(Se.transition.storageClass))throw new Error("StorageClass must be IA or Archive");ke(Se.transition,"Transition")}if(Se.expiration){if(!Se.expiration.expiredObjectDeleteMarker)ke(Se.expiration,"Expiration");else if(Se.expiration.days||Se.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(Se.abortMultipartUpload&&ke(Se.abortMultipartUpload,"AbortMultipartUpload"),!Se.expiration&&!Se.abortMultipartUpload&&!Se.transition&&!Se.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(Se.tag){if(Se.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");de(Se.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=y("../utils/obj2xml"),E=se.obj2xml,te=ve;te.putBucketVersioning=function(){var re=(0,oe.default)(z.default.mark(function ue(ce,he){var me,fe,be,Ce,Te=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(me=Te.length>2&&Te[2]!==void 0?Te[2]:{},ee(ce),["Enabled","Suspended"].includes(he)){ke.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return fe=this._bucketRequestParams("PUT",ce,"versioning",me),be={VersioningConfiguration:{Status:he}},fe.mime="xml",fe.content=E(be,{headers:!0}),ke.next=10,this.request(fe);case 10:return Ce=ke.sent,ke.abrupt("return",{res:Ce.res,status:Ce.status});case 12:case"end":return ke.stop()}},ue,this)}));function le(ue,ce){return re.apply(this,arguments)}return le}()},{"../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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=y("../utils/obj2xml"),E=se.obj2xml,te=y("../utils/isArray"),re=te.isArray,le=ve;le.putBucketWebsite=function(){var ue=(0,oe.default)(z.default.mark(function he(me){var fe,be,Ce,Te,Pe,ke,de,ge=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(fe=ge.length>1&&ge[1]!==void 0?ge[1]:{},be=ge.length>2?ge[2]:void 0,ee(me),Ce=this._bucketRequestParams("PUT",me,"website",be),Te={Suffix:fe.index||"index.html"},Pe={IndexDocument:Te},ke={WebsiteConfiguration:Pe},fe.supportSubDir&&(Te.SupportSubDir=fe.supportSubDir),fe.type&&(Te.Type=fe.type),fe.error&&(Pe.ErrorDocument={Key:fe.error}),fe.routingRules===void 0){De.next=14;break}if(re(fe.routingRules)){De.next=13;break}throw new Error("RoutingRules must be Array");case 13:Pe.RoutingRules={RoutingRule:fe.routingRules};case 14:return ke=E(ke),Ce.content=ke,Ce.mime="xml",Ce.successStatuses=[200],De.next=20,this.request(Ce);case 20:return de=De.sent,De.abrupt("return",{res:de.res});case 22:case"end":return De.stop()}},he,this)}));function ce(he){return ue.apply(this,arguments)}return ce}()},{"../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,ve){(function(x){(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"),ve.encodeCallback=function(oe,ie){if(oe.headers=oe.headers||{},!Object.prototype.hasOwnProperty.call(oe.headers,"x-oss-callback")&&ie.callback){var ee={callbackUrl:encodeURI(ie.callback.url),callbackBody:ie.callback.body};ie.callback.host&&(ee.callbackHost=ie.callback.host),ie.callback.contentType&&(ee.callbackBodyType=ie.callback.contentType);var se=x.from(JSON.stringify(ee)).toString("base64");if(oe.headers["x-oss-callback"]=se,ie.callback.customValue){var E={};Object.keys(ie.callback.customValue).forEach(function(te){E["x:".concat(te)]=ie.callback.customValue[te].toString()}),oe.headers["x-oss-callback-var"]=x.from(JSON.stringify(E)).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,ve){"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 x=function(re){return re&&re.__esModule?re:{default:re}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.getReqUrl=void 0;var z=x(y("copy-to")),oe=x(y("url")),ie=x(y("merge-descriptors")),ee=x(y("is-type-of")),se=y("../utils/isIP"),E=y("../utils/checkConfigValid");function te(re){var le={},ue=this.options.cname;E.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(le),re.bucket&&!ue&&!se.isIP(le.hostname)&&!this.options.sldEnable&&(le.host="".concat(re.bucket,".").concat(le.host));var ce="/";re.bucket&&this.options.sldEnable&&(ce+="".concat(re.bucket,"/")),re.object&&(ce+=this._escape(re.object).replace(/\+/g,"%2B")),le.pathname=ce;var he={};if(re.query&&ie.default(he,re.query),re.subres){var me={};ee.default.string(re.subres)?me[re.subres]="":ee.default.array(re.subres)?re.subres.forEach(function(fe){me[fe]=""}):me=re.subres,ie.default(he,me)}return le.query=he,oe.default.format(le)}ve.getReqUrl=te},{"../utils/checkConfigValid":52,"../utils/isIP":69,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466,"merge-descriptors":372,url:472}],26:[function(y,we,ve){"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 x=y("humanize-ms"),z=y("url"),oe=y("../utils/checkBucketName"),ie=oe.checkBucketName,ee=y("../utils/setRegion"),se=ee.setRegion,E=y("../utils/checkConfigValid"),te=E.checkConfigValid;function re(le,ue){te(le,"endpoint");var ce=z.parse(le);if(ce.protocol||(ce=z.parse("http".concat(ue?"s":"","://").concat(le))),ce.protocol!=="http:"&&ce.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ce}we.exports=function(le){if(!le||!le.accessKeyId||!le.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");le.stsToken&&!le.refreshSTSToken&&!le.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),le.bucket&&ie(le.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},le);if(ue.accessKeyId=ue.accessKeyId.trim(),ue.accessKeySecret=ue.accessKeySecret.trim(),ue.timeout&&(ue.timeout=x(ue.timeout)),ue.endpoint)ue.endpoint=re(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,ve){"use strict";var x=y("merge-descriptors"),z=ve;x(z,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkBucketName"),ee=ie.checkBucketName,se=y("querystring"),E=y("js-base64"),te=E.Base64.encode,re=ve;re.processObjectSave=function(){var ue=(0,oe.default)(z.default.mark(function he(me,fe,be,Ce){var Te,Pe,ke,de;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return le(me,"sourceObject"),le(fe,"targetObject"),le(be,"process"),fe=this._objectName(fe),Ce&&ee(Ce),Te=this._objectRequestParams("POST",me,{subres:"x-oss-process"}),Pe=Ce?",b_".concat(te(Ce)):"",fe=te(fe),ke={"x-oss-process":"".concat(be,"|sys/saveas,o_").concat(fe).concat(Pe)},Te.content=se.stringify(ke),Se.next=12,this.request(Te);case 12:return de=Se.sent,Se.abrupt("return",{res:de.res,status:de.res.status});case 14:case"end":return Se.stop()}},he,this)}));function ce(he,me,fe,be){return ue.apply(this,arguments)}return ce}();function le(ue,ce){if(!ue)throw new Error("".concat(ce," is required"));if(typeof ue!="string")throw new Error("".concat(ce," 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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.array.from.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.regexp.to-string.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("debug")("ali-oss:multipart-copy"),ee=y("copy-to"),se=ve;se.uploadPartCopy=function(){var E=(0,oe.default)(z.default.mark(function re(le,ue,ce,he,me){var fe,be,Ce,Te,Pe,ke=arguments;return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return fe=ke.length>5&&ke[5]!==void 0?ke[5]:{},fe.headers=fe.headers||{},be=fe.versionId||fe.subres&&fe.subres.versionId||null,be?Ce="/".concat(me.sourceBucketName,"/").concat(encodeURIComponent(me.sourceKey),"?versionId=").concat(be):Ce="/".concat(me.sourceBucketName,"/").concat(encodeURIComponent(me.sourceKey)),fe.headers["x-oss-copy-source"]=Ce,he&&(fe.headers["x-oss-copy-source-range"]="bytes=".concat(he)),fe.subres={partNumber:ce,uploadId:ue},Te=this._objectRequestParams("PUT",le,fe),Te.mime=fe.mime,Te.successStatuses=[200],ge.next=12,this.request(Te);case 12:return Pe=ge.sent,ge.abrupt("return",{name:le,etag:Pe.res.headers.etag,res:Pe.res});case 14:case"end":return ge.stop()}},re,this)}));function te(re,le,ue,ce,he){return E.apply(this,arguments)}return te}(),se.multipartUploadCopy=function(){var E=(0,oe.default)(z.default.mark(function re(le,ue){var ce,he,me,fe,be,Ce,Te,Pe,ke,de,ge,Se,De=arguments;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ce=De.length>2&&De[2]!==void 0?De[2]:{},this.resetCancelFlag(),he=ce.versionId,me=he===void 0?null:he,fe={versionId:me},Ee.next=6,this._getObjectMeta(ue.sourceBucketName,ue.sourceKey,fe);case 6:if(be=Ee.sent,Ce=be.res.headers["content-length"],ue.startOffset=ue.startOffset||0,ue.endOffset=ue.endOffset||Ce,!(ce.checkpoint&&ce.checkpoint.uploadId)){Ee.next=14;break}return Ee.next=13,this._resumeMultipartCopy(ce.checkpoint,ue,ce);case 13:return Ee.abrupt("return",Ee.sent);case 14:if(Te=102400,Pe=ue.endOffset-ue.startOffset,!(Pe<Te)){Ee.next=18;break}throw new Error("copySize must not be smaller than ".concat(Te));case 18:if(!(ce.partSize&&ce.partSize<Te)){Ee.next=20;break}throw new Error("partSize must not be smaller than ".concat(Te));case 20:return Ee.next=22,this.initMultipartUpload(le,ce);case 22:if(ke=Ee.sent,de=ke.uploadId,ge=this._getPartSize(Pe,ce.partSize),Se={name:le,copySize:Pe,partSize:ge,uploadId:de,doneParts:[]},!(ce&&ce.progress)){Ee.next=29;break}return Ee.next=29,ce.progress(0,Se,ke.res);case 29:return Ee.next=31,this._resumeMultipartCopy(Se,ue,ce);case 31:return Ee.abrupt("return",Ee.sent);case 32:case"end":return Ee.stop()}},re,this)}));function te(re,le){return E.apply(this,arguments)}return te}(),se._resumeMultipartCopy=function(){var E=(0,oe.default)(z.default.mark(function re(le,ue,ce){var he,me,fe,be,Ce,Te,Pe,ke,de,ge,Se,De,_e,Ee,Oe,He,Xe,et,st,Le,Ue;return z.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(he=ce.versionId,me=he===void 0?null:he,fe={versionId:me},be=le.copySize,Ce=le.partSize,Te=le.uploadId,Pe=le.doneParts,ke=le.name,de=this._divideMultipartCopyParts(be,Ce,ue.startOffset),ge=de.length,Se={headers:{}},ce.copyheaders&&ee(ce.copyheaders).to(Se.headers),me&&ee(fe).to(Se),De=function(Ye,$e,Ke){return new Promise(function(){var ft=(0,oe.default)(z.default.mark(function tt(ut,lt){var Ze,Ne,ze;return z.default.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:if(Ge.prev=0,Ye.isCancel()){Ge.next=22;break}return Ze=de[$e-1],Ne="".concat(Ze.start,"-").concat(Ze.end-1),Ge.prev=4,Ge.next=7,Ye.uploadPartCopy(ke,Te,$e,Ne,Ke,Se);case 7:ze=Ge.sent,Ge.next=15;break;case 10:if(Ge.prev=10,Ge.t0=Ge.catch(4),Ge.t0.status!==404){Ge.next=14;break}throw Ye._makeAbortEvent();case 14:throw Ge.t0;case 15:if(Ye.isCancel()){Ge.next=22;break}if(ie("content-range ".concat(ze.res.headers["content-range"])),Pe.push({number:$e,etag:ze.res.headers.etag}),le.doneParts=Pe,!(ce&&ce.progress)){Ge.next=22;break}return Ge.next=22,ce.progress(Pe.length/ge,le,ze.res);case 22:ut(),Ge.next=29;break;case 25:Ge.prev=25,Ge.t1=Ge.catch(0),Ge.t1.partNum=$e,lt(Ge.t1);case 29:case"end":return Ge.stop()}},tt,null,[[0,25],[4,10]])}));return function(tt,ut){return ft.apply(this,arguments)}}())},_e=Array.from(new Array(ge),function(it,Ye){return Ye+1}),Ee=Pe.map(function(it){return it.number}),Oe=_e.filter(function(it){return Ee.indexOf(it)<0}),He=5,Xe=ce.parallel||He,!(this.checkBrowserAndVersion("Internet Explorer","10")||Xe===1)){ot.next=28;break}et=0;case 18:if(!(et<Oe.length)){ot.next=26;break}if(!this.isCancel()){ot.next=21;break}throw this._makeCancelEvent();case 21:return ot.next=23,De(this,Oe[et],ue);case 23:et++,ot.next=18;break;case 26:ot.next=40;break;case 28:return ot.next=30,this._parallelNode(Oe,Xe,De,ue);case 30:if(st=ot.sent,Le=st.find(function(it){return it.name==="abort"}),!Le){ot.next=34;break}throw Le;case 34:if(!this.isCancel()){ot.next=36;break}throw this._makeCancelEvent();case 36:if(!(st&&st.length>0)){ot.next=40;break}throw Ue=st[0],Ue.message="Failed to copy some parts with error: ".concat(Ue.toString()," part_num: ").concat(Ue.partNum),Ue;case 40:return ot.next=42,this.completeMultipartUpload(ke,Te,Pe,ce);case 42:return ot.abrupt("return",ot.sent);case 43:case"end":return ot.stop()}},re,this)}));function te(re,le,ue){return E.apply(this,arguments)}return te}(),se._divideMultipartCopyParts=function(te,re,le){for(var ue=Math.ceil(te/re),ce=[],he=0;he<ue;he++){var me=re*he+le,fe=Math.min(me+re,te+le);ce.push({start:me,end:fe})}return ce},se._getObjectMeta=function(){var E=(0,oe.default)(z.default.mark(function re(le,ue,ce){var he,me;return z.default.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return he=this.getBucket(),this.setBucket(le),be.next=4,this.head(ue,ce);case 4:return me=be.sent,this.setBucket(he),be.abrupt("return",me);case 7:case"end":return be.stop()}},re,this)}));function te(re,le,ue){return E.apply(this,arguments)}return te}()},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.find.js":275,"core-js/modules/es.array.from.js":276,"core-js/modules/es.array.map.js":280,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.iterator.js":303,debug:465}],30:[function(y,we,ve){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js"),y("core-js/modules/es.array.filter.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("copy-to"),se=y("./callback"),E=y("./utils/deepCopy"),te=E.deepCopyWith,re=y("./utils/isBuffer"),le=re.isBuffer,ue=y("./utils/omit"),ce=ue.omit,he=ve;he.listUploads=function(){var me=(0,ie.default)(oe.default.mark(function be(Ce,Te){var Pe,ke,de,ge;return oe.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return Te=Te||{},Pe={},ee(Te).to(Pe),Pe.subres="uploads",ke=this._objectRequestParams("GET","",Pe),ke.query=Ce,ke.xmlResponse=!0,ke.successStatuses=[200],De.next=10,this.request(ke);case 10:return de=De.sent,ge=de.data.Upload||[],Array.isArray(ge)||(ge=[ge]),ge=ge.map(function(_e){return{name:_e.Key,uploadId:_e.UploadId,initiated:_e.Initiated}}),De.abrupt("return",{res:de.res,uploads:ge,bucket:de.data.Bucket,nextKeyMarker:de.data.NextKeyMarker,nextUploadIdMarker:de.data.NextUploadIdMarker,isTruncated:de.data.IsTruncated==="true"});case 15:case"end":return De.stop()}},be,this)}));function fe(be,Ce){return me.apply(this,arguments)}return fe}(),he.listParts=function(){var me=(0,ie.default)(oe.default.mark(function be(Ce,Te,Pe,ke){var de,ge,Se;return oe.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ke=ke||{},de={},ee(ke).to(de),de.subres={uploadId:Te},ge=this._objectRequestParams("GET",Ce,de),ge.query=Pe,ge.xmlResponse=!0,ge.successStatuses=[200],_e.next=10,this.request(ge);case 10:return Se=_e.sent,_e.abrupt("return",{res:Se.res,uploadId:Se.data.UploadId,bucket:Se.data.Bucket,name:Se.data.Key,partNumberMarker:Se.data.PartNumberMarker,nextPartNumberMarker:Se.data.NextPartNumberMarker,maxParts:Se.data.MaxParts,isTruncated:Se.data.IsTruncated,parts:Se.data.Part||[]});case 12:case"end":return _e.stop()}},be,this)}));function fe(be,Ce,Te,Pe){return me.apply(this,arguments)}return fe}(),he.abortMultipartUpload=function(){var me=(0,ie.default)(oe.default.mark(function be(Ce,Te,Pe){var ke,de,ge;return oe.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return this._stop(),Pe=Pe||{},ke={},ee(Pe).to(ke),ke.subres={uploadId:Te},de=this._objectRequestParams("DELETE",Ce,ke),de.successStatuses=[204],De.next=9,this.request(de);case 9:return ge=De.sent,De.abrupt("return",{res:ge.res});case 11:case"end":return De.stop()}},be,this)}));function fe(be,Ce,Te){return me.apply(this,arguments)}return fe}(),he.initMultipartUpload=function(){var me=(0,ie.default)(oe.default.mark(function be(Ce,Te){var Pe,ke,de;return oe.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Te=Te||{},Pe={},ee(Te).to(Pe),Pe.headers=Pe.headers||{},this._convertMetaToHeaders(Te.meta,Pe.headers),Pe.subres="uploads",ke=this._objectRequestParams("POST",Ce,Pe),ke.mime=Te.mime,ke.xmlResponse=!0,ke.successStatuses=[200],Se.next=12,this.request(ke);case 12:return de=Se.sent,Se.abrupt("return",{res:de.res,bucket:de.data.Bucket,name:de.data.Key,uploadId:de.data.UploadId});case 14:case"end":return Se.stop()}},be,this)}));function fe(be,Ce){return me.apply(this,arguments)}return fe}(),he.uploadPart=function(){var me=(0,ie.default)(oe.default.mark(function be(Ce,Te,Pe,ke,de,ge,Se){var De,_e;return oe.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(De={size:ge-de},_e=x&&x.browser,!_e){Oe.next=8;break}return Oe.next=5,this._createBuffer(ke,de,ge);case 5:De.content=Oe.sent,Oe.next=11;break;case 8:return Oe.next=10,this._createStream(ke,de,ge);case 10:De.stream=Oe.sent;case 11:return Oe.next=13,this._uploadPart(Ce,Te,Pe,De,Se);case 13:return Oe.abrupt("return",Oe.sent);case 14:case"end":return Oe.stop()}},be,this)}));function fe(be,Ce,Te,Pe,ke,de,ge){return me.apply(this,arguments)}return fe}(),he.completeMultipartUpload=function(){var me=(0,ie.default)(oe.default.mark(function be(Ce,Te,Pe,ke){var de,ge,Se,De,_e,Ee,Oe,He;return oe.default.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:for(de=Pe.concat().sort(function(st,Le){return st.number-Le.number}).filter(function(st,Le,Ue){return!Le||st.number!==Ue[Le-1].number}),ge=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,Se=0;Se<de.length;Se++)De=de[Se],ge+=`<Part>
`,ge+="<PartNumber>".concat(De.number,`</PartNumber>
`),ge+="<ETag>".concat(De.etag,`</ETag>
`),ge+=`</Part>
`;return ge+="</CompleteMultipartUpload>",ke=ke||{},_e={},_e=te(ke,function(st){if(le(st))return null}),_e.subres={uploadId:Te},_e.headers=ce(_e.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),Ee=this._objectRequestParams("POST",Ce,_e),se.encodeCallback(Ee,_e),Ee.mime="xml",Ee.content=ge,Ee.headers&&Ee.headers["x-oss-callback"]||(Ee.xmlResponse=!0),Ee.successStatuses=[200],et.next=17,this.request(Ee);case 17:if(Oe=et.sent,!ke.progress){et.next=21;break}return et.next=21,ke.progress(1,null,Oe.res);case 21:return He={res:Oe.res,bucket:Ee.bucket,name:Ce,etag:Oe.res.headers.etag},Ee.headers&&Ee.headers["x-oss-callback"]&&(He.data=JSON.parse(Oe.data.toString())),et.abrupt("return",He);case 24:case"end":return et.stop()}},be,this)}));function fe(be,Ce,Te,Pe){return me.apply(this,arguments)}return fe}(),he._uploadPart=function(){var me=(0,ie.default)(oe.default.mark(function be(Ce,Te,Pe,ke,de){var ge,Se,De,_e;return oe.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return de=de||{},ge={},ee(de).to(ge),ge.headers=ge.headers||{},ge.headers["Content-Length"]=ke.size,ge.headers=ce(ge.headers,["x-oss-server-side-encryption"]),ge.subres={partNumber:Pe,uploadId:Te},Se=this._objectRequestParams("PUT",Ce,ge),Se.mime=ge.mime,De=x&&x.browser,De?Se.content=ke.content:Se.stream=ke.stream,Se.successStatuses=[200],Se.disabledMD5=de.disabledMD5,Oe.next=15,this.request(Se);case 15:if(_e=Oe.sent,_e.res.headers.etag){Oe.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 ke.stream&&(ke.stream=null,Se.stream=null),Oe.abrupt("return",{name:Ce,etag:_e.res.headers.etag,res:_e.res});case 20:case"end":return Oe.stop()}},be,this)}));function fe(be,Ce,Te,Pe,ke){return me.apply(this,arguments)}return fe}()}).call(this)}).call(this,y("_process"))},{"./callback":24,"./utils/deepCopy":58,"./utils/isBuffer":65,"./utils/omit":73,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"copy-to":94,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.filter.js":274,"core-js/modules/es.array.map.js":280,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],31:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("url"),ee=y("utility"),se=y("copy-to"),E=y("../../common/signUtils"),te=y("../utils/isIP"),re=te.isIP,le=y("../utils/setSTSToken"),ue=le.setSTSToken,ce=y("../utils/isFunction"),he=ce.isFunction,me=ve;me.asyncSignatureUrl=function(){var fe=(0,oe.default)(z.default.mark(function Ce(Te,Pe){var ke,de,ge,Se,De;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(!re(this.options.endpoint.hostname)){Ee.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(Pe=Pe||{},Te=this._objectName(Te),Pe.method=Pe.method||"GET",ke=ee.timestamp()+(Pe.expires||1800),de={bucket:this.options.bucket,object:Te},ge=this._getResource(de),!(this.options.stsToken&&he(this.options.refreshSTSToken))){Ee.next=11;break}return Ee.next=11,ue.call(this);case 11:return this.options.stsToken&&(Pe["security-token"]=this.options.stsToken),Se=E._signatureForURL(this.options.accessKeySecret,Pe,ge,ke),De=ie.parse(this._getReqUrl(de)),De.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ke,Signature:Se.Signature},se(Se.subResource).to(De.query),Ee.abrupt("return",De.format());case 17:case"end":return Ee.stop()}},Ce,this)}));function be(Ce,Te){return fe.apply(this,arguments)}return be}()},{"../../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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var oe=x(y("@babel/runtime/helpers/typeof")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("../utils/checkBucketName"),se=ee.checkBucketName,E=ve,te=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];E.copy=function(){var re=(0,ie.default)(z.default.mark(function ue(ce,he,me,fe){var be,Ce,Te;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return(0,oe.default)(me)==="object"&&(fe=me),fe=fe||{},fe.headers=fe.headers||{},Object.keys(fe.headers).forEach(function(de){fe.headers["x-oss-copy-source-".concat(de.toLowerCase())]=fe.headers[de]}),(fe.meta||Object.keys(fe.headers).find(function(de){return te.includes(de.toLowerCase())}))&&(fe.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(fe.meta,fe.headers),he=this._getSourceName(he,me),fe.versionId&&(he="".concat(he,"?versionId=").concat(fe.versionId)),fe.headers["x-oss-copy-source"]=he,be=this._objectRequestParams("PUT",ce,fe),be.xmlResponse=!0,be.successStatuses=[200,304],ke.next=14,this.request(be);case 14:return Ce=ke.sent,Te=Ce.data,Te&&(Te={etag:Te.ETag,lastModified:Te.LastModified}),ke.abrupt("return",{data:Te,res:Ce.res});case 18:case"end":return ke.stop()}},ue,this)}));function le(ue,ce,he,me){return re.apply(this,arguments)}return le}(),E._getSourceName=function(le,ue){return typeof ue=="string"?le=this._objectName(le):le[0]!=="/"?ue=this.options.bucket:(ue=le.replace(/\/(.+?)(\/.*)/,"$1"),le=le.replace(/(\/.+?\/)(.*)/,"$2")),se(ue),le=encodeURIComponent(le),le="/".concat(ue,"/").concat(le),le}},{"../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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve;ie.delete=function(){var ee=(0,oe.default)(z.default.mark(function E(te){var re,le,ue,ce=arguments;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({},re.subres),re.versionId&&(re.subres.versionId=re.versionId),le=this._objectRequestParams("DELETE",te,re),le.successStatuses=[204],me.next=7,this.request(le);case 7:return ue=me.sent,me.abrupt("return",{res:ue.res});case 9:case"end":return me.stop()}},E,this)}));function se(E){return ee.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("utility"),ee=y("../utils/obj2xml"),se=ee.obj2xml,E=ve;E.deleteMulti=function(){var te=(0,oe.default)(z.default.mark(function le(ue){var ce,he,me,fe,be,Ce,Te,Pe,ke,de,ge,Se,De,_e=arguments;return z.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(ce=_e.length>1&&_e[1]!==void 0?_e[1]:{},he=[],!(!ue||!ue.length)){Oe.next=4;break}throw new Error("names is required");case 4:for(me=0;me<ue.length;me++)fe={},typeof ue[me]=="string"?fe.Key=ie.escape(this._objectName(ue[me])):(be=ue[me],Ce=be.key,Te=be.versionId,fe.Key=ie.escape(this._objectName(Ce)),fe.VersionId=Te),he.push(fe);return Pe={Delete:{Quiet:!!ce.quiet,Object:he}},ke=se(Pe,{headers:!0}),ce.subres=Object.assign({delete:""},ce.subres),ce.versionId&&(ce.subres.versionId=ce.versionId),de=this._objectRequestParams("POST","",ce),de.mime="xml",de.content=ke,de.xmlResponse=!0,de.successStatuses=[200],Oe.next=16,this.request(de);case 16:return ge=Oe.sent,Se=ge.data,De=Se&&Se.Deleted||null,De&&(Array.isArray(De)||(De=[De])),Oe.abrupt("return",{res:ge.res,deleted:De||[]});case 21:case"end":return Oe.stop()}},le,this)}));function re(le){return te.apply(this,arguments)}return re}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve;ie.deleteObjectTagging=function(){var ee=(0,oe.default)(z.default.mark(function E(te){var re,le,ue,ce=arguments;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({tagging:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),te=this._objectName(te),le=this._objectRequestParams("DELETE",te,re),le.successStatuses=[204],me.next=8,this.request(le);case 8:return ue=me.sent,me.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return me.stop()}},E,this)}));function se(E){return ee.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,ve){"use strict";y("core-js/modules/es.array.concat.js");var x=y("url"),z=y("../utils/isIP"),oe=z.isIP,ie=ve;ie.generateObjectUrl=function(se,E){if(oe(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");if(E)E[E.length-1]!=="/"&&(E+="/");else{E=this.options.endpoint.format();var te=x.parse(E),re=this.options.bucket;te.hostname="".concat(re,".").concat(te.hostname),te.host="".concat(re,".").concat(te.host),E=te.format()}return E+this._escape(this._objectName(se))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,we,ve){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("fs"),se=y("is-type-of"),E=ve;E.get=function(){var te=(0,ie.default)(oe.default.mark(function le(ue,ce){var he,me,fe,be,Ce,Te,Pe,ke,de=arguments;return oe.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return he=de.length>2&&de[2]!==void 0?de[2]:{},me=null,fe=!1,se.writableStream(ce)?me=ce:se.string(ce)?(me=ee.createWriteStream(ce),fe=!0):he=ce,he=he||{},be=x&&x.browser,Ce=he.responseCacheControl===null?"":"no-cache",Te=be&&Ce?{"response-cache-control":Ce}:{},he.subres=Object.assign(Te,he.subres),he.versionId&&(he.subres.versionId=he.versionId),he.process&&(he.subres["x-oss-process"]=he.process),Se.prev=11,ke=this._objectRequestParams("GET",ue,he),ke.writeStream=me,ke.successStatuses=[200,206,304],Se.next=17,this.request(ke);case 17:Pe=Se.sent,fe&&me.destroy(),Se.next=28;break;case 21:if(Se.prev=21,Se.t0=Se.catch(11),!fe){Se.next=27;break}return me.destroy(),Se.next=27,this._deleteFileSafe(ce);case 27:throw Se.t0;case 28:return Se.abrupt("return",{res:Pe.res,content:Pe.data});case 29:case"end":return Se.stop()}},le,this,[[11,21]])}));function re(le,ue){return te.apply(this,arguments)}return re}()}).call(this)}).call(this,y("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve;ie.getACL=function(){var ee=(0,oe.default)(z.default.mark(function E(te){var re,le,ue,ce=arguments;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return re=ce.length>1&&ce[1]!==void 0?ce[1]:{},re.subres=Object.assign({acl:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),te=this._objectName(te),le=this._objectRequestParams("GET",te,re),le.successStatuses=[200],le.xmlResponse=!0,me.next=9,this.request(le);case 9:return ue=me.sent,me.abrupt("return",{acl:ue.data.AccessControlList.Grant,owner:{id:ue.data.Owner.ID,displayName:ue.data.Owner.DisplayName},res:ue.res});case 11:case"end":return me.stop()}},E,this)}));function se(E){return ee.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.number.constructor.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve,ee=y("../utils/isObject"),se=ee.isObject,E=y("../utils/isArray"),te=E.isArray;ie.getBucketVersions=re,ie.listObjectVersions=re;function re(){return le.apply(this,arguments)}function le(){return le=(0,oe.default)(z.default.mark(function he(){var me,fe,be,Ce,Te,Pe,ke,de,ge=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(me=ge.length>0&&ge[0]!==void 0?ge[0]:{},fe=ge.length>1&&ge[1]!==void 0?ge[1]:{},!(me.versionIdMarker&&me.keyMarker===void 0)){De.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return fe.subres=Object.assign({versions:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),be=this._objectRequestParams("GET","",fe),be.xmlResponse=!0,be.successStatuses=[200],be.query=ce(me),De.next=12,this.request(be);case 12:return Ce=De.sent,Te=Ce.data.Version||[],Pe=Ce.data.DeleteMarker||[],ke=this,Te&&(Array.isArray(Te)||(Te=[Te]),Te=Te.map(function(_e){return{name:_e.Key,url:ke._objectUrl(_e.Key),lastModified:_e.LastModified,isLatest:_e.IsLatest==="true",versionId:_e.VersionId,etag:_e.ETag,type:_e.Type,size:Number(_e.Size),storageClass:_e.StorageClass,owner:{id:_e.Owner.ID,displayName:_e.Owner.DisplayName}}})),Pe&&(te(Pe)||(Pe=[Pe]),Pe=Pe.map(function(_e){return{name:_e.Key,lastModified:_e.LastModified,versionId:_e.VersionId,owner:{id:_e.Owner.ID,displayName:_e.Owner.DisplayName}}})),de=Ce.data.CommonPrefixes||null,de&&(te(de)||(de=[de]),de=de.map(function(_e){return _e.Prefix})),De.abrupt("return",{res:Ce.res,objects:Te,deleteMarker:Pe,prefixes:de,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 De.stop()}},he,this)})),le.apply(this,arguments)}function ue(he){return he.replace(/([A-Z])/g,"-$1").toLowerCase()}function ce(){var he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},me={};return se(he)&&Object.keys(he).forEach(function(fe){me[ue(fe)]=he[fe]}),me}},{"../utils/isArray":63,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280,"core-js/modules/es.number.constructor.js":286,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],40:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve;ie.getObjectMeta=function(){var ee=(0,oe.default)(z.default.mark(function E(te,re){var le,ue;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return re=re||{},te=this._objectName(te),re.subres=Object.assign({objectMeta:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),le=this._objectRequestParams("HEAD",te,re),le.successStatuses=[200],he.next=8,this.request(le);case 8:return ue=he.sent,he.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return he.stop()}},E,this)}));function se(E,te){return ee.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve,ee=y("../utils/isObject"),se=ee.isObject;ie.getObjectTagging=function(){var E=(0,oe.default)(z.default.mark(function re(le){var ue,ce,he,me,fe,be,Ce=arguments;return z.default.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.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),le=this._objectName(le),ce=this._objectRequestParams("GET",le,ue),ce.successStatuses=[200],Pe.next=8,this.request(ce);case 8:return he=Pe.sent,Pe.next=11,this.parseXML(he.data);case 11:return me=Pe.sent,fe=me.TagSet.Tag,fe=fe&&se(fe)?[fe]:fe||[],be={},fe.forEach(function(ke){be[ke.Key]=ke.Value}),Pe.abrupt("return",{status:he.status,res:he.res,tag:be});case 17:case"end":return Pe.stop()}},re,this)}));function te(re){return E.apply(this,arguments)}return te}()},{"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],42:[function(y,we,ve){"use strict";var x=y("../utils/isIP"),z=x.isIP,oe=ve;oe.getObjectUrl=function(ee,se){if(z(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(ee))}},{"../utils/isIP":69}],43:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve;ie.getSymlink=function(){var ee=(0,oe.default)(z.default.mark(function E(te){var re,le,ue,ce,he=arguments;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:return re=he.length>1&&he[1]!==void 0?he[1]:{},re.subres=Object.assign({symlink:""},re.subres),re.versionId&&(re.subres.versionId=re.versionId),te=this._objectName(te),le=this._objectRequestParams("GET",te,re),le.successStatuses=[200],fe.next=8,this.request(le);case 8:return ue=fe.sent,ce=ue.res.headers["x-oss-symlink-target"],fe.abrupt("return",{targetName:decodeURIComponent(ce),res:ue.res});case 11:case"end":return fe.stop()}},E,this)}));function se(E){return ee.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/checkEnv"),ee=ie.checkEnv,se=ve;se.head=function(){var E=(0,oe.default)(z.default.mark(function re(le){var ue,ce,he,me,fe=arguments;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ue=fe.length>1&&fe[1]!==void 0?fe[1]:{},ee("Because HeadObject has gzip enabled, head cannot get the file size correctly. If you need to get the file size, please use getObjectMeta"),ue.subres=Object.assign({},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),ce=this._objectRequestParams("HEAD",le,ue),ce.successStatuses=[200,304],Ce.next=8,this.request(ce);case 8:return he=Ce.sent,me={meta:null,res:he.res,status:he.status},he.status===200&&Object.keys(he.headers).forEach(function(Te){Te.indexOf("x-oss-meta-")===0&&(me.meta||(me.meta={}),me.meta[Te.substring(11)]=he.headers[Te])}),Ce.abrupt("return",me);case 12:case"end":return Ce.stop()}},re,this)}));function te(re){return E.apply(this,arguments)}return te}()},{"../utils/checkEnv":53,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],45:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve;ie.putACL=function(){var ee=(0,oe.default)(z.default.mark(function E(te,re,le){var ue,ce;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return le=le||{},le.subres=Object.assign({acl:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),le.headers=le.headers||{},le.headers["x-oss-object-acl"]=re,te=this._objectName(te),ue=this._objectRequestParams("PUT",te,le),ue.successStatuses=[200],me.next=10,this.request(ue);case 10:return ce=me.sent,me.abrupt("return",{res:ce.res});case 12:case"end":return me.stop()}},E,this)}));function se(E,te,re){return ee.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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.object.keys.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("../utils/obj2xml"),ee=ie.obj2xml,se=y("../utils/checkObjectTag"),E=se.checkObjectTag,te=ve;te.putObjectTagging=function(){var re=(0,oe.default)(z.default.mark(function ue(ce,he){var me,fe,be,Ce,Te=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return me=Te.length>2&&Te[2]!==void 0?Te[2]:{},E(he),me.subres=Object.assign({tagging:""},me.subres),me.versionId&&(me.subres.versionId=me.versionId),ce=this._objectName(ce),fe=this._objectRequestParams("PUT",ce,me),fe.successStatuses=[200],he=Object.keys(he).map(function(de){return{Key:de,Value:he[de]}}),be={Tagging:{TagSet:{Tag:he}}},fe.mime="xml",fe.content=ee(be),ke.next=13,this.request(fe);case 13:return Ce=ke.sent,ke.abrupt("return",{res:Ce.res,status:Ce.status});case 15:case"end":return ke.stop()}},ue,this)}));function le(ue,ce){return re.apply(this,arguments)}return le}()},{"../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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=ve;ie.putSymlink=function(){var ee=(0,oe.default)(z.default.mark(function E(te,re,le){var ue,ce;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return le=le||{},le.headers=le.headers||{},re=this._escape(this._objectName(re)),this._convertMetaToHeaders(le.meta,le.headers),le.headers["x-oss-symlink-target"]=re,le.subres=Object.assign({symlink:""},le.subres),le.versionId&&(le.subres.versionId=le.versionId),le.storageClass&&(le.headers["x-oss-storage-class"]=le.storageClass),te=this._objectName(te),ue=this._objectRequestParams("PUT",te,le),ue.successStatuses=[200],me.next=13,this.request(ue);case 13:return ce=me.sent,me.abrupt("return",{res:ce.res});case 15:case"end":return me.stop()}},E,this)}));function se(E,te,re){return ee.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,ve){"use strict";var x=y("url"),z=y("utility"),oe=y("copy-to"),ie=y("../../common/signUtils"),ee=y("../utils/isIP"),se=ee.isIP,E=ve;E.signatureUrl=function(re,le){if(se(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");le=le||{},re=this._objectName(re),le.method=le.method||"GET";var ue=z.timestamp()+(le.expires||1800),ce={bucket:this.options.bucket,object:re},he=this._getResource(ce);this.options.stsToken&&(le["security-token"]=this.options.stsToken);var me=ie._signatureForURL(this.options.accessKeySecret,le,he,ue),fe=x.parse(this._getReqUrl(ce));return fe.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ue,Signature:me.Signature},oe(me.subResource).to(fe.query),fe.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.string.iterator.js"),y("core-js/modules/web.dom-collections.iterator.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.function.name.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ie=y("./utils/isArray"),ee=ie.isArray,se=ve;se._parallelNode=function(){var E=(0,oe.default)(z.default.mark(function re(le,ue,ce,he){var me,fe,be,Ce,Te,Pe,ke,de;return z.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:me=this,fe=[],be=[],Ce=le.length/ue,Te=le.length%ue,Pe=Te===0?Ce:(le.length-Te)/ue+1,ke=1,de=0;case 8:if(!(de<le.length)){Se.next=26;break}if(!me.isCancel()){Se.next=11;break}return Se.abrupt("break",26);case 11:if(he?be.push(ce(me,le[de],he)):be.push(ce(me,le[de])),!(be.length===ue||ke===Pe&&de===le.length-1)){Se.next=23;break}return Se.prev=13,ke+=1,Se.next=17,Promise.all(be);case 17:Se.next=22;break;case 19:Se.prev=19,Se.t0=Se.catch(13),fe.push(Se.t0);case 22:be=[];case 23:de++,Se.next=8;break;case 26:return Se.abrupt("return",fe);case 27:case"end":return Se.stop()}},re,this,[[13,19]])}));function te(re,le,ue,ce){return E.apply(this,arguments)}return te}(),se._parallel=function(te,re,le){var ue=this;return new Promise(function(ce){var he=[];if(re<=0||!te){ce(he);return}function me(Se){return function(){if(Se===null)throw new Error("Callback was already called.");var De=Se;Se=null;for(var _e=arguments.length,Ee=new Array(_e),Oe=0;Oe<_e;Oe++)Ee[Oe]=arguments[Oe];De.apply(this,Ee)}}function fe(Se){var De=-1,_e=Se.length;return function(){return++De<_e&&!ue.isCancel()?{value:Se[De],key:De}:null}}var be=fe(te),Ce=!1,Te=0,Pe=!1;function ke(Se){Te-=1,Se?(Ce=!0,he.push(Se),ce(he)):Ce&&Te<=0?(Ce=!0,ce(he)):Pe||(ue.isCancel()?ce(he):ge())}function de(Se,De){le(Se).then(function(_e){De(null,_e)}).catch(function(_e){De(_e)})}function ge(){for(Pe=!0;Te<re&&!Ce&&!ue.isCancel();){var Se=be();if(Se===null||he.length>0){Ce=!0,Te<=0&&ce(he);return}Te+=1,de(Se.value,me(ke))}Pe=!1}ge()})},se.cancel=function(te){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(re){if(re.destroyed===!1){var le={name:"cancel",message:"cancel"};re.destroy(le)}}),this.multipartUploadStreams=[],te&&this.abortMultipartUpload(te.name,te.uploadId,te.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 te={status:0,name:"cancel"};return te},se._makeAbortEvent=function(){var te={status:0,name:"abort",message:"upload task has been abort"};return te}},{"./utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.iterator.js":278,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.string.iterator.js":303,"core-js/modules/web.dom-collections.for-each.js":339,"core-js/modules/web.dom-collections.iterator.js":340}],50:[function(y,we,ve){(function(x){(function(){"use strict";y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.array.sort.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.regexp.to-string.js");var z=y("./../../shims/crypto/crypto.js"),oe=y("is-type-of"),ie=y("./utils/lowercaseKeyHeader"),ee=ie.lowercaseKeyHeader;ve.buildCanonicalizedResource=function(E,te){var re="".concat(E),le="?";if(oe.string(te)&&te.trim()!=="")re+=le+te;else if(oe.array(te))te.sort(),re+=le+te.join("&");else if(te){var ue=function(me,fe){return me[0]>fe[0]?1:me[0]<fe[0]?-1:0},ce=function(me){re+=le+me,(te[me]||te[me]===0)&&(re+="=".concat(te[me])),le="&"};Object.keys(te).sort(ue).forEach(ce)}return re},ve.buildCanonicalString=function(E,te,re,le){re=re||{};var ue=ee(re.headers),ce="x-oss-",he=[],me={},fe=[E.toUpperCase(),ue["content-md5"]||"",ue["content-type"],le||ue["x-oss-date"]];return Object.keys(ue).forEach(function(be){var Ce=be.toLowerCase();Ce.indexOf(ce)===0&&(me[Ce]=String(ue[be]).trim())}),Object.keys(me).sort().forEach(function(be){he.push("".concat(be,":").concat(me[be]))}),fe=fe.concat(he),fe.push(this.buildCanonicalizedResource(te,re.parameters)),fe.join(`
`)},ve.computeSignature=function(E,te){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",le=z.createHmac("sha1",E);return le.update(x.from(te,re)).digest("base64")},ve.authorization=function(E,te,re,le){return"OSS ".concat(E,":").concat(this.computeSignature(te,re,le))},ve._signatureForURL=function(E){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2?arguments[2]:void 0,le=arguments.length>3?arguments[3]:void 0,ue=arguments.length>4?arguments[4]:void 0,ce={},he=te.subResource,me=he===void 0?{}:he;if(te.process){var fe="x-oss-process";me[fe]=te.process}if(te.trafficLimit){var be="x-oss-traffic-limit";me[be]=te.trafficLimit}if(te.response&&Object.keys(te.response).forEach(function(ke){var de="response-".concat(ke.toLowerCase());me[de]=te.response[ke]}),Object.keys(te).forEach(function(ke){var de=ke.toLowerCase(),ge=te[ke];de.indexOf("x-oss-")===0?ce[de]=ge:(de.indexOf("content-md5")===0||de.indexOf("content-type")===0)&&(ce[ke]=ge)}),Object.prototype.hasOwnProperty.call(te,"security-token")&&(me["security-token"]=te["security-token"]),Object.prototype.hasOwnProperty.call(te,"callback")){var Ce={callbackUrl:encodeURI(te.callback.url),callbackBody:te.callback.body};if(te.callback.host&&(Ce.callbackHost=te.callback.host),te.callback.contentType&&(Ce.callbackBodyType=te.callback.contentType),me.callback=x.from(JSON.stringify(Ce)).toString("base64"),te.callback.customValue){var Te={};Object.keys(te.callback.customValue).forEach(function(ke){Te["x:".concat(ke)]=te.callback.customValue[ke]}),me["callback-var"]=x.from(JSON.stringify(Te)).toString("base64")}}var Pe=this.buildCanonicalString(te.method,re,{headers:ce,parameters:me},le.toString());return{Signature:this.computeSignature(E,Pe,ue),subResource:me}}}).call(this)}).call(this,y("buffer").Buffer)},{"./../../shims/crypto/crypto.js":461,"./utils/lowercaseKeyHeader":71,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.sort.js":282,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.trim.js":308,"core-js/modules/web.dom-collections.for-each.js":339,"is-type-of":466}],51:[function(y,we,ve){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkBucketName=void 0,ve.checkBucketName=function(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,oe=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!oe.test(x))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,we,ve){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkConfigValid=void 0;var x={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(oe){return typeof oe=="string"?/^[a-zA-Z0-9._:/-]+$/.test(oe):oe.host?/^[a-zA-Z0-9._:/-]+$/.test(oe.host):!1}ve.checkConfigValid=function(oe,ie){if(x[ie]){var ee=!0;if(x[ie]instanceof Function?ee=x[ie](oe):ee=x[ie].test(oe),!ee)throw new Error("The ".concat(ie," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,we,ve){(function(x){(function(){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkEnv=void 0;function z(oe){x.browser&&console.warn(oe)}ve.checkEnv=z}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,we,ve){"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(ve,"__esModule",{value:!0}),ve.checkObjectTag=void 0;var x=y("./checkValid"),z=x.checkValid,oe=y("./isObject"),ie=oe.isObject,ee=[{validator:function(re){if(typeof re!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],se={key:[].concat(ee,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(ee,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function E(te){if(!ie(te))throw new Error("tag must be Object");var re=Object.entries(te);if(re.length>10)throw new Error("maximum of 10 tags for a object");var le=["key","value"];re.forEach(function(ue){ue.forEach(function(ce,he){z(ce,se[le[he]])})})}ve.checkObjectTag=E},{"./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,ve){"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(ve,"__esModule",{value:!0}),ve.checkValid=void 0;function x(z,oe){oe.forEach(function(ie){if(ie.validator)ie.validator(z);else if(ie.pattern&&!ie.pattern.test(z))throw new Error(ie.msg)})}ve.checkValid=x},{"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,ve){(function(x){(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(ve,"__esModule",{value:!0}),ve.createRequest=void 0;var z=y("./../../../shims/crypto/crypto.js"),oe=y("debug")("ali-oss"),ie=y("mime"),ee=y("dateformat"),se=y("copy-to"),E=y("path"),te=y("./encoder"),re=te.encoder,le=y("./isIP"),ue=le.isIP,ce=y("./setRegion"),he=ce.setRegion,me=y("../client/getReqUrl"),fe=me.getReqUrl,be=y("./isDingTalk"),Ce=be.isDingTalk;function Te(de,ge){return de[ge]||de[ge.toLowerCase()]}function Pe(de,ge){delete de[ge],delete de[ge.toLowerCase()]}function ke(de){var ge=new Date;this.options.amendTimeSkewed&&(ge=+new Date+this.options.amendTimeSkewed);var Se={"x-oss-date":ee(ge,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(Se["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(Se["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(Se,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(Se["x-oss-security-token"]=this.options.stsToken),se(de.headers).to(Se),Te(Se,"Content-Type")||(de.mime&&de.mime.indexOf("/")>0?Se["Content-Type"]=de.mime:Ce()?Se["Content-Type"]="application/octet-stream":Se["Content-Type"]=ie.getType(de.mime||E.extname(de.object||""))),Te(Se,"Content-Type")||Pe(Se,"Content-Type"),de.content&&(de.disabledMD5||(!de.headers||!de.headers["Content-MD5"]?Se["Content-MD5"]=z.createHash("md5").update(x.from(de.content,"utf8")).digest("base64"):Se["Content-MD5"]=de.headers["Content-MD5"]),Se["Content-Length"]||(Se["Content-Length"]=de.content.length));var De=Object.prototype.hasOwnProperty;for(var _e in Se)Se[_e]&&De.call(Se,_e)&&(Se[_e]=re(String(Se[_e]),this.options.headerEncoding));var Ee=this._getResource(de);if(Se.authorization=this.authorization(de.method,Ee,de.subres,Se,this.options.headerEncoding),ue(this.options.endpoint.hostname)){var Oe=this.options,He=Oe.region,Xe=Oe.internal,et=Oe.secure,st=he(He,Xe,et);Se.host="".concat(de.bucket,".").concat(st.host)}var Le=fe.bind(this)(de);oe("request %s %s, with headers %j, !!stream: %s",de.method,Le,Se,!!de.stream);var Ue=de.timeout||this.options.timeout,rt={method:de.method,content:de.content,stream:de.stream,headers:Se,timeout:Ue,writeStream:de.writeStream,customResponse:de.customResponse,ctx:de.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:Le,params:rt}}ve.createRequest=ke}).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,ve){"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(ve,"__esModule",{value:!0}),ve.dataFix=void 0;var x=y("./isObject"),z=["true","TRUE","1",1],oe=["false","FALSE","0",0];function ie(E,te,re){if(x.isObject(E)){var le=te.remove,ue=le===void 0?[]:le,ce=te.rename,he=ce===void 0?{}:ce,me=te.camel,fe=me===void 0?[]:me,be=te.bool,Ce=be===void 0?[]:be,Te=te.lowerFirst,Pe=Te===void 0?!1:Te;return ue.forEach(function(ke){return delete E[ke]}),Object.entries(he).forEach(function(ke){E[ke[0]]&&(E[ke[1]]||(E[ke[1]]=E[ke[0]],delete E[ke[0]]))}),fe.forEach(function(ke){if(E[ke]){var de=ke.replace(/^(.)/,function(ge){return ge.toLowerCase()}).replace(/-(\w)/g,function(ge,Se){return Se.toUpperCase()});E[de]||(E[de]=E[ke])}}),Ce.forEach(function(ke){E[ke]=ee(E[ke])}),typeof re=="function"&&re(E),se(E,Pe),ie}}ve.dataFix=ie;function ee(E){return E?z.includes(E)?!0:oe.includes(E)?!1:E:!1}function se(E,te){te&&Object.keys(E).forEach(function(re){var le=re.replace(/^\w/,function(ue){return ue.toLowerCase()});typeof E[le]=="undefined"&&(E[le]=E[re],delete E[re])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js");var z=x(y("@babel/runtime/helpers/typeof"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.deepCopyWith=ve.deepCopy=void 0;var oe=y("./isBuffer");ve.deepCopy=function(ie){if(ie===null||(0,z.default)(ie)!=="object")return ie;if(oe.isBuffer(ie))return ie.slice();var ee=Array.isArray(ie)?[]:{};return Object.keys(ie).forEach(function(se){ee[se]=ve.deepCopy(ie[se])}),ee},ve.deepCopyWith=function(ie,ee){function se(E,te,re){var le=ee(E,te,re);if(le!==void 0)return le;if(E===null||(0,z.default)(E)!=="object")return E;if(oe.isBuffer(E))return E.slice();var ue=Array.isArray(E)?[]:{};return Object.keys(E).forEach(function(ce){ue[ce]=se(E[ce],ce,E)}),ue}return ee?se(ie,"",null):ve.deepCopy(ie)}},{"./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,ve){(function(x){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.encoder=void 0;function z(oe){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return ie==="utf-8"?oe:x.from(oe).toString("latin1")}ve.encoder=z}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],60:[function(y,we,ve){"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(ve,"__esModule",{value:!0}),ve.formatInventoryConfig=void 0;var x=y("../utils/dataFix"),z=y("../utils/isObject"),oe=y("../utils/isArray"),ie=y("../utils/formatObjKey");function ee(E){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return te&&z.isObject(E)&&(E=[E]),oe.isArray(E)?E=E.map(se):E=se(E),E}ve.formatInventoryConfig=ee;function se(E){return x.dataFix(E,{bool:["IsEnabled"]},function(te){var re,le;te.prefix=te.Filter.Prefix,delete te.Filter,te.OSSBucketDestination=te.Destination.OSSBucketDestination,te.OSSBucketDestination.rolename=te.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete te.OSSBucketDestination.RoleArn,te.OSSBucketDestination.bucket=te.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete te.OSSBucketDestination.Bucket,delete te.Destination,te.frequency=te.Schedule.Frequency,delete te.Schedule.Frequency,!((re=te==null?void 0:te.OptionalFields)===null||re===void 0)&&re.Field&&!oe.isArray((le=te.OptionalFields)===null||le===void 0?void 0:le.Field)&&(te.OptionalFields.Field=[te.OptionalFields.Field])}),E=ie.formatObjKey(E,"firstLowerCase",{exclude:["OSSBucketDestination","SSE-OSS","SSE-KMS"]}),E}},{"../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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault");y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.replace.js");var z=x(y("@babel/runtime/helpers/typeof"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.formatObjKey=void 0;function oe(ee,se,E){if(ee===null||(0,z.default)(ee)!=="object")return ee;var te;if(Array.isArray(ee)){te=[];for(var re=0;re<ee.length;re++)te.push(oe(ee[re],se,E))}else te={},Object.keys(ee).forEach(function(le){te[ie(le,se,E)]=oe(ee[le],se,E)});return te}ve.formatObjKey=oe;function ie(ee,se,E){return E&&E.exclude&&E.exclude.includes(ee)||(se==="firstUpperCase"?ee=ee.replace(/^./,function(te){return te.toUpperCase()}):se==="firstLowerCase"&&(ee=ee.replace(/^./,function(te){return te.toLowerCase()}))),ee}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.includes.js":302,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],62:[function(y,we,ve){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.getStrBytesCount=void 0;function x(z){for(var oe=0,ie=0;ie<z.length;ie++){var ee=z.charAt(ie);/^[\u00-\uff]$/.test(ee)?oe+=1:oe+=2}return oe}ve.getStrBytesCount=x},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,we,ve){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isArray=void 0,ve.isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,we,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isBlob=void 0;function x(z){return typeof Blob!="undefined"&&z instanceof Blob}ve.isBlob=x},{}],65:[function(y,we,ve){(function(x){(function(){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isBuffer=void 0;function z(oe){return x.isBuffer(oe)}ve.isBuffer=z}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,we,ve){(function(x){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isDingTalk=void 0;function z(){return!!(x.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}ve.isDingTalk=z}).call(this)}).call(this,y("_process"))},{_process:467,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.string.includes.js":302}],67:[function(y,we,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isFile=void 0,ve.isFile=function(x){return typeof File!="undefined"&&x instanceof File}},{}],68:[function(y,we,ve){"use strict";Object.defineProperty(ve,"__esModule",{value:!0}),ve.isFunction=void 0,ve.isFunction=function(x){return typeof x=="function"}},{}],69:[function(y,we,ve){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isIP=void 0,ve.isIP=function(x){var z=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,oe=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return z.test(x)||oe.test(x)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,we,ve){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.isObject=void 0,ve.isObject=function(x){return Object.prototype.toString.call(x)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,we,ve){"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(ve,"__esModule",{value:!0}),ve.lowercaseKeyHeader=void 0;var x=y("./isObject");function z(oe){var ie={};return x.isObject(oe)&&Object.keys(oe).forEach(function(ee){ie[ee.toLowerCase()]=oe[ee]}),ie}ve.lowercaseKeyHeader=z},{"./isObject":70,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/web.dom-collections.for-each.js":339}],72:[function(y,we,ve){"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(ve,"__esModule",{value:!0}),ve.obj2xml=void 0;var x=y("./formatObjKey");function z(ie){return Object.prototype.toString.call(ie).replace(/(.*? |])/g,"").toLowerCase()}function oe(ie,ee){var se="";return ee&&ee.headers&&(se=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(ie=x.formatObjKey(ie,"firstUpperCase")),z(ie)==="object"?Object.keys(ie).forEach(function(E){z(ie[E])!=="undefined"&&z(ie[E])!=="null"&&(z(ie[E])==="string"||z(ie[E])==="number"?se+="<".concat(E,">").concat(ie[E],"</").concat(E,">"):z(ie[E])==="object"?se+="<".concat(E,">").concat(oe(ie[E]),"</").concat(E,">"):z(ie[E])==="array"?se+=ie[E].map(function(te){return"<".concat(E,">").concat(oe(te),"</").concat(E,">")}).join(""):se+="<".concat(E,">").concat(ie[E].toString(),"</").concat(E,">"))}):se+=ie.toString(),se}ve.obj2xml=oe},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(y,we,ve){"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 x(ee,se){var E=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!E){if(Array.isArray(ee)||(E=z(ee))||se&&ee&&typeof ee.length=="number"){E&&(ee=E);var te=0,re=function(){};return{s:re,n:function(){return te>=ee.length?{done:!0}:{done:!1,value:ee[te++]}},e:function(me){throw me},f:re}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var le=!0,ue=!1,ce;return{s:function(){E=E.call(ee)},n:function(){var me=E.next();return le=me.done,me},e:function(me){ue=!0,ce=me},f:function(){try{!le&&E.return!=null&&E.return()}finally{if(ue)throw ce}}}}function z(ee,se){if(ee){if(typeof ee=="string")return oe(ee,se);var E=Object.prototype.toString.call(ee).slice(8,-1);if(E==="Object"&&ee.constructor&&(E=ee.constructor.name),E==="Map"||E==="Set")return Array.from(ee);if(E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E))return oe(ee,se)}}function oe(ee,se){(se==null||se>ee.length)&&(se=ee.length);for(var E=0,te=new Array(se);E<se;E++)te[E]=ee[E];return te}Object.defineProperty(ve,"__esModule",{value:!0}),ve.omit=void 0;function ie(ee,se){var E=Object.assign({},ee),te=x(se),re;try{for(te.s();!(re=te.n()).done;){var le=re.value;delete E[le]}}catch(ue){te.e(ue)}finally{te.f()}return E}ve.omit=ie},{"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,ve){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(ve,"__esModule",{value:!0}),ve.retry=void 0;function x(z,oe){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,se=ie.retryDelay,E=se===void 0?500:se,te=ie.errorHandler,re=te===void 0?function(){return!0}:te,le=function ue(){for(var ce=arguments.length,he=new Array(ce),me=0;me<ce;me++)he[me]=arguments[me];return new Promise(function(fe,be){z.apply(void 0,he).then(function(Ce){ee=0,fe(Ce)}).catch(function(Ce){ee<oe&&re(Ce)?(ee++,setTimeout(function(){fe(ue.apply(void 0,he))},E)):(ee=0,be(Ce))})})};return le}ve.retry=x},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,we,ve){"use strict";var x=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(ve,"__esModule",{value:!0}),ve.setRegion=void 0;var z=x(y("url")),oe=y("./checkConfigValid");function ie(ee){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;oe.checkConfigValid(ee,"region");var te=E?"https://":"http://",re=se?"-internal.aliyuncs.com":".aliyuncs.com",le="vpc100-oss-cn-";return ee.substr(0,le.length)===le&&(re=".aliyuncs.com"),z.default.parse(te+ee+re)}ve.setRegion=ie},{"./checkConfigValid":52,url:472}],76:[function(y,we,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.array.find.js"),y("core-js/modules/es.object.assign.js");var oe=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(ve,"__esModule",{value:!0}),ve.checkCredentials=ve.setSTSToken=void 0;var ie=y("./formatObjKey");function ee(){return se.apply(this,arguments)}function se(){return se=(0,oe.default)(z.default.mark(function te(){var re,le;return z.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:if(this.options||(this.options={}),re=new Date,!this.stsTokenFreshTime){ce.next=14;break}if(!(+re-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){ce.next=12;break}return this.stsTokenFreshTime=re,ce.next=7,this.options.refreshSTSToken();case 7:le=ce.sent,le=ie.formatObjKey(le,"firstLowerCase"),le.securityToken&&(le.stsToken=le.securityToken),E(le),Object.assign(this.options,le);case 12:ce.next=15;break;case 14:this.stsTokenFreshTime=re;case 15:return ce.abrupt("return",null);case 16:case"end":return ce.stop()}},te,this)})),se.apply(this,arguments)}ve.setSTSToken=ee;function E(te){var re=["accessKeySecret","accessKeyId","stsToken"],le=Object.keys(te);re.forEach(function(ue){if(!le.find(function(ce){return ce===ue}))throw Error("refreshSTSToken must return contains ".concat(ue))})}ve.checkCredentials=E},{"./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,ve){function x(oe,ie,ee,se,E,te,re){try{var le=oe[te](re),ue=le.value}catch(ce){ee(ce);return}le.done?ie(ue):Promise.resolve(ue).then(se,E)}function z(oe){return function(){var ie=this,ee=arguments;return new Promise(function(se,E){var te=oe.apply(ie,ee);function re(ue){x(te,se,E,re,le,"next",ue)}function le(ue){x(te,se,E,re,le,"throw",ue)}re(void 0)})}}we.exports=z,we.exports.__esModule=!0,we.exports.default=we.exports},{}],78:[function(y,we,ve){function x(z){return z&&z.__esModule?z:{default:z}}we.exports=x,we.exports.__esModule=!0,we.exports.default=we.exports},{}],79:[function(y,we,ve){function x(z){"@babel/helpers - typeof";return we.exports=x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(oe){return typeof oe}:function(oe){return oe&&typeof Symbol=="function"&&oe.constructor===Symbol&&oe!==Symbol.prototype?"symbol":typeof oe},we.exports.__esModule=!0,we.exports.default=we.exports,x(z)}we.exports=x,we.exports.__esModule=!0,we.exports.default=we.exports},{}],80:[function(y,we,ve){we.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,we,ve){we.exports=x,we.exports.HttpsAgent=x;function x(){}},{}],82:[function(y,we,ve){(function(x){(function(){"use strict";var z=y("object-assign");function oe(He,Xe){if(He===Xe)return 0;for(var et=He.length,st=Xe.length,Le=0,Ue=Math.min(et,st);Le<Ue;++Le)if(He[Le]!==Xe[Le]){et=He[Le],st=Xe[Le];break}return et<st?-1:st<et?1:0}function ie(He){return x.Buffer&&typeof x.Buffer.isBuffer=="function"?x.Buffer.isBuffer(He):!!(He!=null&&He._isBuffer)}var ee=y("util/"),se=Object.prototype.hasOwnProperty,E=Array.prototype.slice,te=function(){return function(){}.name==="foo"}();function re(He){return Object.prototype.toString.call(He)}function le(He){return ie(He)||typeof x.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(He):He?!!(He instanceof DataView||He.buffer&&He.buffer instanceof ArrayBuffer):!1}var ue=we.exports=Te,ce=/\s*function\s+([^\(\s]*)\s*/;function he(He){if(ee.isFunction(He)){if(te)return He.name;var Xe=He.toString(),et=Xe.match(ce);return et&&et[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=be(this),this.generatedMessage=!0);var et=Xe.stackStartFunction||Ce;if(Error.captureStackTrace)Error.captureStackTrace(this,et);else{var st=new Error;if(st.stack){var Le=st.stack,Ue=he(et),rt=Le.indexOf(`
`+Ue);if(rt>=0){var ot=Le.indexOf(`
`,rt+1);Le=Le.substring(ot+1)}this.stack=Le}}},ee.inherits(ue.AssertionError,Error);function me(He,Xe){return typeof He=="string"?He.length<Xe?He:He.slice(0,Xe):He}function fe(He){if(te||!ee.isFunction(He))return ee.inspect(He);var Xe=he(He),et=Xe?": "+Xe:"";return"[Function"+et+"]"}function be(He){return me(fe(He.actual),128)+" "+He.operator+" "+me(fe(He.expected),128)}function Ce(He,Xe,et,st,Le){throw new ue.AssertionError({message:et,actual:He,expected:Xe,operator:st,stackStartFunction:Le})}ue.fail=Ce;function Te(He,Xe){He||Ce(He,!0,Xe,"==",ue.ok)}ue.ok=Te,ue.equal=function(Xe,et,st){Xe!=et&&Ce(Xe,et,st,"==",ue.equal)},ue.notEqual=function(Xe,et,st){Xe==et&&Ce(Xe,et,st,"!=",ue.notEqual)},ue.deepEqual=function(Xe,et,st){Pe(Xe,et,!1)||Ce(Xe,et,st,"deepEqual",ue.deepEqual)},ue.deepStrictEqual=function(Xe,et,st){Pe(Xe,et,!0)||Ce(Xe,et,st,"deepStrictEqual",ue.deepStrictEqual)};function Pe(He,Xe,et,st){if(He===Xe)return!0;if(ie(He)&&ie(Xe))return oe(He,Xe)===0;if(ee.isDate(He)&&ee.isDate(Xe))return He.getTime()===Xe.getTime();if(ee.isRegExp(He)&&ee.isRegExp(Xe))return He.source===Xe.source&&He.global===Xe.global&&He.multiline===Xe.multiline&&He.lastIndex===Xe.lastIndex&&He.ignoreCase===Xe.ignoreCase;if((He===null||typeof He!="object")&&(Xe===null||typeof Xe!="object"))return et?He===Xe:He==Xe;if(le(He)&&le(Xe)&&re(He)===re(Xe)&&!(He instanceof Float32Array||He instanceof Float64Array))return oe(new Uint8Array(He.buffer),new Uint8Array(Xe.buffer))===0;if(ie(He)!==ie(Xe))return!1;st=st||{actual:[],expected:[]};var Le=st.actual.indexOf(He);return Le!==-1&&Le===st.expected.indexOf(Xe)?!0:(st.actual.push(He),st.expected.push(Xe),de(He,Xe,et,st))}function ke(He){return Object.prototype.toString.call(He)=="[object Arguments]"}function de(He,Xe,et,st){if(He==null||Xe===null||Xe===void 0)return!1;if(ee.isPrimitive(He)||ee.isPrimitive(Xe))return He===Xe;if(et&&Object.getPrototypeOf(He)!==Object.getPrototypeOf(Xe))return!1;var Le=ke(He),Ue=ke(Xe);if(Le&&!Ue||!Le&&Ue)return!1;if(Le)return He=E.call(He),Xe=E.call(Xe),Pe(He,Xe,et);var rt=Oe(He),ot=Oe(Xe),it,Ye;if(rt.length!==ot.length)return!1;for(rt.sort(),ot.sort(),Ye=rt.length-1;Ye>=0;Ye--)if(rt[Ye]!==ot[Ye])return!1;for(Ye=rt.length-1;Ye>=0;Ye--)if(it=rt[Ye],!Pe(He[it],Xe[it],et,st))return!1;return!0}ue.notDeepEqual=function(Xe,et,st){Pe(Xe,et,!1)&&Ce(Xe,et,st,"notDeepEqual",ue.notDeepEqual)},ue.notDeepStrictEqual=ge;function ge(He,Xe,et){Pe(He,Xe,!0)&&Ce(He,Xe,et,"notDeepStrictEqual",ge)}ue.strictEqual=function(Xe,et,st){Xe!==et&&Ce(Xe,et,st,"===",ue.strictEqual)},ue.notStrictEqual=function(Xe,et,st){Xe===et&&Ce(Xe,et,st,"!==",ue.notStrictEqual)};function Se(He,Xe){if(!He||!Xe)return!1;if(Object.prototype.toString.call(Xe)=="[object RegExp]")return Xe.test(He);try{if(He instanceof Xe)return!0}catch(et){}return Error.isPrototypeOf(Xe)?!1:Xe.call({},He)===!0}function De(He){var Xe;try{He()}catch(et){Xe=et}return Xe}function _e(He,Xe,et,st){var Le;if(typeof Xe!="function")throw new TypeError('"block" argument must be a function');typeof et=="string"&&(st=et,et=null),Le=De(Xe),st=(et&&et.name?" ("+et.name+").":".")+(st?" "+st:"."),He&&!Le&&Ce(Le,et,"Missing expected exception"+st);var Ue=typeof st=="string",rt=!He&&ee.isError(Le),ot=!He&&Le&&!et;if((rt&&Ue&&Se(Le,et)||ot)&&Ce(Le,et,"Got unwanted exception"+st),He&&Le&&et&&!Se(Le,et)||!He&&Le)throw Le}ue.throws=function(He,Xe,et){_e(!0,He,Xe,et)},ue.doesNotThrow=function(He,Xe,et){_e(!1,He,Xe,et)},ue.ifError=function(He){if(He)throw He};function Ee(He,Xe){He||Ce(He,!0,Xe,"==",Ee)}ue.strict=z(Ee,ue,{equal:ue.strictEqual,deepEqual:ue.deepStrictEqual,notEqual:ue.notStrictEqual,notDeepEqual:ue.notDeepStrictEqual}),ue.strict.strict=ue.strict;var Oe=Object.keys||function(He){var Xe=[];for(var et in He)se.call(He,et)&&Xe.push(et);return Xe}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,we,ve){typeof Object.create=="function"?we.exports=function(z,oe){z.super_=oe,z.prototype=Object.create(oe.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:we.exports=function(z,oe){z.super_=oe;var ie=function(){};ie.prototype=oe.prototype,z.prototype=new ie,z.prototype.constructor=z}},{}],84:[function(y,we,ve){we.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(y,we,ve){(function(x,z){(function(){var oe=/%[sdj%]/g;ve.format=function(ot){if(!de(ot)){for(var it=[],Ye=0;Ye<arguments.length;Ye++)it.push(se(arguments[Ye]));return it.join(" ")}for(var Ye=1,$e=arguments,Ke=$e.length,ft=String(ot).replace(oe,function(ut){if(ut==="%%")return"%";if(Ye>=Ke)return ut;switch(ut){case"%s":return String($e[Ye++]);case"%d":return Number($e[Ye++]);case"%j":try{return JSON.stringify($e[Ye++])}catch(lt){return"[Circular]"}default:return ut}}),tt=$e[Ye];Ye<Ke;tt=$e[++Ye])Te(tt)||!_e(tt)?ft+=" "+tt:ft+=" "+se(tt);return ft},ve.deprecate=function(ot,it){if(Se(z.process))return function(){return ve.deprecate(ot,it).apply(this,arguments)};if(x.noDeprecation===!0)return ot;var Ye=!1;function $e(){if(!Ye){if(x.throwDeprecation)throw new Error(it);x.traceDeprecation?console.trace(it):console.error(it),Ye=!0}return ot.apply(this,arguments)}return $e};var ie={},ee;ve.debuglog=function(ot){if(Se(ee)&&(ee=x.env.NODE_DEBUG||""),ot=ot.toUpperCase(),!ie[ot])if(new RegExp("\\b"+ot+"\\b","i").test(ee)){var it=x.pid;ie[ot]=function(){var Ye=ve.format.apply(ve,arguments);console.error("%s %d: %s",ot,it,Ye)}}else ie[ot]=function(){};return ie[ot]};function se(ot,it){var Ye={seen:[],stylize:te};return arguments.length>=3&&(Ye.depth=arguments[2]),arguments.length>=4&&(Ye.colors=arguments[3]),Ce(it)?Ye.showHidden=it:it&&ve._extend(Ye,it),Se(Ye.showHidden)&&(Ye.showHidden=!1),Se(Ye.depth)&&(Ye.depth=2),Se(Ye.colors)&&(Ye.colors=!1),Se(Ye.customInspect)&&(Ye.customInspect=!0),Ye.colors&&(Ye.stylize=E),le(Ye,ot,Ye.depth)}ve.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 E(ot,it){var Ye=se.styles[it];return Ye?"\x1B["+se.colors[Ye][0]+"m"+ot+"\x1B["+se.colors[Ye][1]+"m":ot}function te(ot,it){return ot}function re(ot){var it={};return ot.forEach(function(Ye,$e){it[Ye]=!0}),it}function le(ot,it,Ye){if(ot.customInspect&&it&&He(it.inspect)&&it.inspect!==ve.inspect&&!(it.constructor&&it.constructor.prototype===it)){var $e=it.inspect(Ye,ot);return de($e)||($e=le(ot,$e,Ye)),$e}var Ke=ue(ot,it);if(Ke)return Ke;var ft=Object.keys(it),tt=re(ft);if(ot.showHidden&&(ft=Object.getOwnPropertyNames(it)),Oe(it)&&(ft.indexOf("message")>=0||ft.indexOf("description")>=0))return ce(it);if(ft.length===0){if(He(it)){var ut=it.name?": "+it.name:"";return ot.stylize("[Function"+ut+"]","special")}if(De(it))return ot.stylize(RegExp.prototype.toString.call(it),"regexp");if(Ee(it))return ot.stylize(Date.prototype.toString.call(it),"date");if(Oe(it))return ce(it)}var lt="",Ze=!1,Ne=["{","}"];if(be(it)&&(Ze=!0,Ne=["[","]"]),He(it)){var ze=it.name?": "+it.name:"";lt=" [Function"+ze+"]"}if(De(it)&&(lt=" "+RegExp.prototype.toString.call(it)),Ee(it)&&(lt=" "+Date.prototype.toUTCString.call(it)),Oe(it)&&(lt=" "+ce(it)),ft.length===0&&(!Ze||it.length==0))return Ne[0]+lt+Ne[1];if(Ye<0)return De(it)?ot.stylize(RegExp.prototype.toString.call(it),"regexp"):ot.stylize("[Object]","special");ot.seen.push(it);var Me;return Ze?Me=he(ot,it,Ye,tt,ft):Me=ft.map(function(Ge){return me(ot,it,Ye,tt,Ge,Ze)}),ot.seen.pop(),fe(Me,lt,Ne)}function ue(ot,it){if(Se(it))return ot.stylize("undefined","undefined");if(de(it)){var Ye="'"+JSON.stringify(it).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ot.stylize(Ye,"string")}if(ke(it))return ot.stylize(""+it,"number");if(Ce(it))return ot.stylize(""+it,"boolean");if(Te(it))return ot.stylize("null","null")}function ce(ot){return"["+Error.prototype.toString.call(ot)+"]"}function he(ot,it,Ye,$e,Ke){for(var ft=[],tt=0,ut=it.length;tt<ut;++tt)rt(it,String(tt))?ft.push(me(ot,it,Ye,$e,String(tt),!0)):ft.push("");return Ke.forEach(function(lt){lt.match(/^\d+$/)||ft.push(me(ot,it,Ye,$e,lt,!0))}),ft}function me(ot,it,Ye,$e,Ke,ft){var tt,ut,lt;if(lt=Object.getOwnPropertyDescriptor(it,Ke)||{value:it[Ke]},lt.get?lt.set?ut=ot.stylize("[Getter/Setter]","special"):ut=ot.stylize("[Getter]","special"):lt.set&&(ut=ot.stylize("[Setter]","special")),rt($e,Ke)||(tt="["+Ke+"]"),ut||(ot.seen.indexOf(lt.value)<0?(Te(Ye)?ut=le(ot,lt.value,null):ut=le(ot,lt.value,Ye-1),ut.indexOf(`
`)>-1&&(ft?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")),Se(tt)){if(ft&&Ke.match(/^\d+$/))return ut;tt=JSON.stringify(""+Ke),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 fe(ot,it,Ye){var $e=0,Ke=ot.reduce(function(ft,tt){return $e++,tt.indexOf(`
`)>=0&&$e++,ft+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ke>60?Ye[0]+(it===""?"":it+`
`)+" "+ot.join(`,
`)+" "+Ye[1]:Ye[0]+it+" "+ot.join(", ")+" "+Ye[1]}function be(ot){return Array.isArray(ot)}ve.isArray=be;function Ce(ot){return typeof ot=="boolean"}ve.isBoolean=Ce;function Te(ot){return ot===null}ve.isNull=Te;function Pe(ot){return ot==null}ve.isNullOrUndefined=Pe;function ke(ot){return typeof ot=="number"}ve.isNumber=ke;function de(ot){return typeof ot=="string"}ve.isString=de;function ge(ot){return typeof ot=="symbol"}ve.isSymbol=ge;function Se(ot){return ot===void 0}ve.isUndefined=Se;function De(ot){return _e(ot)&&et(ot)==="[object RegExp]"}ve.isRegExp=De;function _e(ot){return typeof ot=="object"&&ot!==null}ve.isObject=_e;function Ee(ot){return _e(ot)&&et(ot)==="[object Date]"}ve.isDate=Ee;function Oe(ot){return _e(ot)&&(et(ot)==="[object Error]"||ot instanceof Error)}ve.isError=Oe;function He(ot){return typeof ot=="function"}ve.isFunction=He;function Xe(ot){return ot===null||typeof ot=="boolean"||typeof ot=="number"||typeof ot=="string"||typeof ot=="symbol"||typeof ot=="undefined"}ve.isPrimitive=Xe,ve.isBuffer=y("./support/isBuffer");function et(ot){return Object.prototype.toString.call(ot)}function st(ot){return ot<10?"0"+ot.toString(10):ot.toString(10)}var Le=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Ue(){var ot=new Date,it=[st(ot.getHours()),st(ot.getMinutes()),st(ot.getSeconds())].join(":");return[ot.getDate(),Le[ot.getMonth()],it].join(" ")}ve.log=function(){console.log("%s - %s",Ue(),ve.format.apply(ve,arguments))},ve.inherits=y("inherits"),ve._extend=function(ot,it){if(!it||!_e(it))return ot;for(var Ye=Object.keys(it),$e=Ye.length;$e--;)ot[Ye[$e]]=it[Ye[$e]];return ot};function rt(ot,it){return Object.prototype.hasOwnProperty.call(ot,it)}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(y,we,ve){(function(x){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],oe=typeof globalThis=="undefined"?x:globalThis;we.exports=function(){for(var ee=[],se=0;se<z.length;se++)typeof oe[z[se]]=="function"&&(ee[ee.length]=z[se]);return ee}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,we,ve){"use strict";ve.byteLength=te,ve.toByteArray=le,ve.fromByteArray=he;for(var x=[],z=[],oe=typeof Uint8Array!="undefined"?Uint8Array:Array,ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,se=ie.length;ee<se;++ee)x[ee]=ie[ee],z[ie.charCodeAt(ee)]=ee;z[45]=62,z[95]=63;function E(me){var fe=me.length;if(fe%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var be=me.indexOf("=");be===-1&&(be=fe);var Ce=be===fe?0:4-be%4;return[be,Ce]}function te(me){var fe=E(me),be=fe[0],Ce=fe[1];return(be+Ce)*3/4-Ce}function re(me,fe,be){return(fe+be)*3/4-be}function le(me){var fe,be=E(me),Ce=be[0],Te=be[1],Pe=new oe(re(me,Ce,Te)),ke=0,de=Te>0?Ce-4:Ce,ge;for(ge=0;ge<de;ge+=4)fe=z[me.charCodeAt(ge)]<<18|z[me.charCodeAt(ge+1)]<<12|z[me.charCodeAt(ge+2)]<<6|z[me.charCodeAt(ge+3)],Pe[ke++]=fe>>16&255,Pe[ke++]=fe>>8&255,Pe[ke++]=fe&255;return Te===2&&(fe=z[me.charCodeAt(ge)]<<2|z[me.charCodeAt(ge+1)]>>4,Pe[ke++]=fe&255),Te===1&&(fe=z[me.charCodeAt(ge)]<<10|z[me.charCodeAt(ge+1)]<<4|z[me.charCodeAt(ge+2)]>>2,Pe[ke++]=fe>>8&255,Pe[ke++]=fe&255),Pe}function ue(me){return x[me>>18&63]+x[me>>12&63]+x[me>>6&63]+x[me&63]}function ce(me,fe,be){for(var Ce,Te=[],Pe=fe;Pe<be;Pe+=3)Ce=(me[Pe]<<16&16711680)+(me[Pe+1]<<8&65280)+(me[Pe+2]&255),Te.push(ue(Ce));return Te.join("")}function he(me){for(var fe,be=me.length,Ce=be%3,Te=[],Pe=16383,ke=0,de=be-Ce;ke<de;ke+=Pe)Te.push(ce(me,ke,ke+Pe>de?de:ke+Pe));return Ce===1?(fe=me[be-1],Te.push(x[fe>>2]+x[fe<<4&63]+"==")):Ce===2&&(fe=(me[be-2]<<8)+me[be-1],Te.push(x[fe>>10]+x[fe>>4&63]+x[fe<<2&63]+"=")),Te.join("")}},{}],88:[function(y,we,ve){(function(x,z,oe){typeof we!="undefined"&&we.exports?we.exports=oe():typeof Ve=="function"&&Ve.amd?Ve(z,oe):x[z]=oe()})(this,"bowser",function(){var x=!0;function z(re){function le(it){var Ye=re.match(it);return Ye&&Ye.length>1&&Ye[1]||""}function ue(it){var Ye=re.match(it);return Ye&&Ye.length>1&&Ye[2]||""}var ce=le(/(ipod|iphone|ipad)/i).toLowerCase(),he=/like android/i.test(re),me=!he&&/android/i.test(re),fe=/nexus\s*[0-6]\s*/i.test(re),be=!fe&&/nexus\s*[0-9]+/i.test(re),Ce=/CrOS/.test(re),Te=/silk/i.test(re),Pe=/sailfish/i.test(re),ke=/tizen/i.test(re),de=/(web|hpw)(o|0)s/i.test(re),ge=/windows phone/i.test(re),Se=/SamsungBrowser/i.test(re),De=!ge&&/windows/i.test(re),_e=!ce&&!Te&&/macintosh/i.test(re),Ee=!me&&!Pe&&!ke&&!de&&/linux/i.test(re),Oe=ue(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),He=le(/version\/(\d+(\.\d+)?)/i),Xe=/tablet/i.test(re)&&!/tablet pc/i.test(re),et=!Xe&&/[^-]mobi/i.test(re),st=/xbox/i.test(re),Le;/opera/i.test(re)?Le={name:"Opera",opera:x,version:He||le(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(re)?Le={name:"Opera",opera:x,version:le(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||He}:/SamsungBrowser/i.test(re)?Le={name:"Samsung Internet for Android",samsungBrowser:x,version:He||le(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(re)?Le={name:"NAVER Whale browser",whale:x,version:le(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(re)?Le={name:"MZ Browser",mzbrowser:x,version:le(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(re)?Le={name:"Opera Coast",coast:x,version:He||le(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(re)?Le={name:"Focus",focus:x,version:le(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(re)?Le={name:"Yandex Browser",yandexbrowser:x,version:He||le(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(re)?Le={name:"UC Browser",ucbrowser:x,version:le(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(re)?Le={name:"Maxthon",maxthon:x,version:le(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(re)?Le={name:"Epiphany",epiphany:x,version:le(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(re)?Le={name:"Puffin",puffin:x,version:le(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(re)?Le={name:"Sleipnir",sleipnir:x,version:le(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(re)?Le={name:"K-Meleon",kMeleon:x,version:le(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:ge?(Le={name:"Windows Phone",osname:"Windows Phone",windowsphone:x},Oe?(Le.msedge=x,Le.version=Oe):(Le.msie=x,Le.version=le(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(re)?Le={name:"Internet Explorer",msie:x,version:le(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:Ce?Le={name:"Chrome",osname:"Chrome OS",chromeos:x,chromeBook:x,chrome:x,version:le(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(re)?Le={name:"Microsoft Edge",msedge:x,version:Oe}:/vivaldi/i.test(re)?Le={name:"Vivaldi",vivaldi:x,version:le(/vivaldi\/(\d+(\.\d+)?)/i)||He}:Pe?Le={name:"Sailfish",osname:"Sailfish OS",sailfish:x,version:le(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(re)?Le={name:"SeaMonkey",seamonkey:x,version:le(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(re)?(Le={name:"Firefox",firefox:x,version:le(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(re)&&(Le.firefoxos=x,Le.osname="Firefox OS")):Te?Le={name:"Amazon Silk",silk:x,version:le(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(re)?Le={name:"PhantomJS",phantom:x,version:le(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(re)?Le={name:"SlimerJS",slimer:x,version:le(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(re)||/rim\stablet/i.test(re)?Le={name:"BlackBerry",osname:"BlackBerry OS",blackberry:x,version:He||le(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:de?(Le={name:"WebOS",osname:"WebOS",webos:x,version:He||le(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(re)&&(Le.touchpad=x)):/bada/i.test(re)?Le={name:"Bada",osname:"Bada",bada:x,version:le(/dolfin\/(\d+(\.\d+)?)/i)}:ke?Le={name:"Tizen",osname:"Tizen",tizen:x,version:le(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||He}:/qupzilla/i.test(re)?Le={name:"QupZilla",qupzilla:x,version:le(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||He}:/chromium/i.test(re)?Le={name:"Chromium",chromium:x,version:le(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||He}:/chrome|crios|crmo/i.test(re)?Le={name:"Chrome",chrome:x,version:le(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:me?Le={name:"Android",version:He}:/safari|applewebkit/i.test(re)?(Le={name:"Safari",safari:x},He&&(Le.version=He)):ce?(Le={name:ce=="iphone"?"iPhone":ce=="ipad"?"iPad":"iPod"},He&&(Le.version=He)):/googlebot/i.test(re)?Le={name:"Googlebot",googlebot:x,version:le(/googlebot\/(\d+(\.\d+))/i)||He}:Le={name:le(/^(.*)\/(.*) /),version:ue(/^(.*)\/(.*) /)},!Le.msedge&&/(apple)?webkit/i.test(re)?(/(apple)?webkit\/537\.36/i.test(re)?(Le.name=Le.name||"Blink",Le.blink=x):(Le.name=Le.name||"Webkit",Le.webkit=x),!Le.version&&He&&(Le.version=He)):!Le.opera&&/gecko\//i.test(re)&&(Le.name=Le.name||"Gecko",Le.gecko=x,Le.version=Le.version||le(/gecko\/(\d+(\.\d+)?)/i)),!Le.windowsphone&&(me||Le.silk)?(Le.android=x,Le.osname="Android"):!Le.windowsphone&&ce?(Le[ce]=x,Le.ios=x,Le.osname="iOS"):_e?(Le.mac=x,Le.osname="macOS"):st?(Le.xbox=x,Le.osname="Xbox"):De?(Le.windows=x,Le.osname="Windows"):Ee&&(Le.linux=x,Le.osname="Linux");function Ue(it){switch(it){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="";Le.windows?rt=Ue(le(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Le.windowsphone?rt=le(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Le.mac?(rt=le(/Mac OS X (\d+([_\.\s]\d+)*)/i),rt=rt.replace(/[_\s]/g,".")):ce?(rt=le(/os (\d+([_\s]\d+)*) like mac os x/i),rt=rt.replace(/[_\s]/g,".")):me?rt=le(/android[ \/-](\d+(\.\d+)*)/i):Le.webos?rt=le(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Le.blackberry?rt=le(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Le.bada?rt=le(/bada\/(\d+(\.\d+)*)/i):Le.tizen&&(rt=le(/tizen[\/\s](\d+(\.\d+)*)/i)),rt&&(Le.osversion=rt);var ot=!Le.windows&&rt.split(".")[0];return Xe||be||ce=="ipad"||me&&(ot==3||ot>=4&&!et)||Le.silk?Le.tablet=x:(et||ce=="iphone"||ce=="ipod"||me||fe||Le.blackberry||Le.webos||Le.bada)&&(Le.mobile=x),Le.msedge||Le.msie&&Le.version>=10||Le.yandexbrowser&&Le.version>=15||Le.vivaldi&&Le.version>=1||Le.chrome&&Le.version>=20||Le.samsungBrowser&&Le.version>=4||Le.whale&&se([Le.version,"1.0"])===1||Le.mzbrowser&&se([Le.version,"6.0"])===1||Le.focus&&se([Le.version,"1.0"])===1||Le.firefox&&Le.version>=20||Le.safari&&Le.version>=6||Le.opera&&Le.version>=10||Le.ios&&Le.osversion&&Le.osversion.split(".")[0]>=6||Le.blackberry&&Le.version>=10.1||Le.chromium&&Le.version>=20?Le.a=x:Le.msie&&Le.version<10||Le.chrome&&Le.version<20||Le.firefox&&Le.version<20||Le.safari&&Le.version<6||Le.opera&&Le.version<10||Le.ios&&Le.osversion&&Le.osversion.split(".")[0]<6||Le.chromium&&Le.version<20?Le.c=x:Le.x=x,Le}var oe=z(typeof navigator!="undefined"&&navigator.userAgent||"");oe.test=function(re){for(var le=0;le<re.length;++le){var ue=re[le];if(typeof ue=="string"&&ue in oe)return!0}return!1};function ie(re){return re.split(".").length}function ee(re,le){var ue=[],ce;if(Array.prototype.map)return Array.prototype.map.call(re,le);for(ce=0;ce<re.length;ce++)ue.push(le(re[ce]));return ue}function se(re){for(var le=Math.max(ie(re[0]),ie(re[1])),ue=ee(re,function(ce){var he=le-ie(ce);return ce=ce+new Array(he+1).join(".0"),ee(ce.split("."),function(me){return new Array(20-me.length).join("0")+me}).reverse()});--le>=0;){if(ue[0][le]>ue[1][le])return 1;if(ue[0][le]===ue[1][le]){if(le===0)return 0}else return-1}}function E(re,le,ue){var ce=oe;typeof le=="string"&&(ue=le,le=void 0),le===void 0&&(le=!1),ue&&(ce=z(ue));var he=""+ce.version;for(var me in re)if(re.hasOwnProperty(me)&&ce[me]){if(typeof re[me]!="string")throw new Error("Browser version in the minVersion map should be a string: "+me+": "+String(re));return se([he,re[me]])<0}return le}function te(re,le,ue){return!E(re,le,ue)}return oe.isUnsupportedBrowser=E,oe.compareVersions=se,oe.check=te,oe._detect=z,oe.detect=z,oe})},{}],89:[function(y,we,ve){},{}],90:[function(y,we,ve){(function(x){(function(){"use strict";var z=y("base64-js"),oe=y("ieee754");ve.Buffer=E,ve.SlowBuffer=Ce,ve.INSPECT_MAX_BYTES=50;var ie=2147483647;ve.kMaxLength=ie,E.TYPED_ARRAY_SUPPORT=ee(),!E.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function ee(){try{var Ae=new Uint8Array(1);return Ae.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ae.foo()===42}catch(je){return!1}}Object.defineProperty(E.prototype,"parent",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.buffer}}),Object.defineProperty(E.prototype,"offset",{enumerable:!0,get:function(){if(E.isBuffer(this))return this.byteOffset}});function se(Ae){if(Ae>ie)throw new RangeError('The value "'+Ae+'" is invalid for option "size"');var je=new Uint8Array(Ae);return je.__proto__=E.prototype,je}function E(Ae,je,We){if(typeof Ae=="number"){if(typeof je=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(Ae)}return te(Ae,je,We)}typeof Symbol!="undefined"&&Symbol.species!=null&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),E.poolSize=8192;function te(Ae,je,We){if(typeof Ae=="string")return ce(Ae,je);if(ArrayBuffer.isView(Ae))return he(Ae);if(Ae==null)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ae);if(mt(Ae,ArrayBuffer)||Ae&&mt(Ae.buffer,ArrayBuffer))return me(Ae,je,We);if(typeof Ae=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var at=Ae.valueOf&&Ae.valueOf();if(at!=null&&at!==Ae)return E.from(at,je,We);var Re=fe(Ae);if(Re)return Re;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ae[Symbol.toPrimitive]=="function")return E.from(Ae[Symbol.toPrimitive]("string"),je,We);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ae)}E.from=function(Ae,je,We){return te(Ae,je,We)},E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array;function re(Ae){if(typeof Ae!="number")throw new TypeError('"size" argument must be of type number');if(Ae<0)throw new RangeError('The value "'+Ae+'" is invalid for option "size"')}function le(Ae,je,We){return re(Ae),Ae<=0?se(Ae):je!==void 0?typeof We=="string"?se(Ae).fill(je,We):se(Ae).fill(je):se(Ae)}E.alloc=function(Ae,je,We){return le(Ae,je,We)};function ue(Ae){return re(Ae),se(Ae<0?0:be(Ae)|0)}E.allocUnsafe=function(Ae){return ue(Ae)},E.allocUnsafeSlow=function(Ae){return ue(Ae)};function ce(Ae,je){if((typeof je!="string"||je==="")&&(je="utf8"),!E.isEncoding(je))throw new TypeError("Unknown encoding: "+je);var We=Te(Ae,je)|0,at=se(We),Re=at.write(Ae,je);return Re!==We&&(at=at.slice(0,Re)),at}function he(Ae){for(var je=Ae.length<0?0:be(Ae.length)|0,We=se(je),at=0;at<je;at+=1)We[at]=Ae[at]&255;return We}function me(Ae,je,We){if(je<0||Ae.byteLength<je)throw new RangeError('"offset" is outside of buffer bounds');if(Ae.byteLength<je+(We||0))throw new RangeError('"length" is outside of buffer bounds');var at;return je===void 0&&We===void 0?at=new Uint8Array(Ae):We===void 0?at=new Uint8Array(Ae,je):at=new Uint8Array(Ae,je,We),at.__proto__=E.prototype,at}function fe(Ae){if(E.isBuffer(Ae)){var je=be(Ae.length)|0,We=se(je);return We.length===0||Ae.copy(We,0,0,je),We}if(Ae.length!==void 0)return typeof Ae.length!="number"||nt(Ae.length)?se(0):he(Ae);if(Ae.type==="Buffer"&&Array.isArray(Ae.data))return he(Ae.data)}function be(Ae){if(Ae>=ie)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ie.toString(16)+" bytes");return Ae|0}function Ce(Ae){return+Ae!=Ae&&(Ae=0),E.alloc(+Ae)}E.isBuffer=function(je){return je!=null&&je._isBuffer===!0&&je!==E.prototype},E.compare=function(je,We){if(mt(je,Uint8Array)&&(je=E.from(je,je.offset,je.byteLength)),mt(We,Uint8Array)&&(We=E.from(We,We.offset,We.byteLength)),!E.isBuffer(je)||!E.isBuffer(We))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(je===We)return 0;for(var at=je.length,Re=We.length,xe=0,ye=Math.min(at,Re);xe<ye;++xe)if(je[xe]!==We[xe]){at=je[xe],Re=We[xe];break}return at<Re?-1:Re<at?1:0},E.isEncoding=function(je){switch(String(je).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}},E.concat=function(je,We){if(!Array.isArray(je))throw new TypeError('"list" argument must be an Array of Buffers');if(je.length===0)return E.alloc(0);var at;if(We===void 0)for(We=0,at=0;at<je.length;++at)We+=je[at].length;var Re=E.allocUnsafe(We),xe=0;for(at=0;at<je.length;++at){var ye=je[at];if(mt(ye,Uint8Array)&&(ye=E.from(ye)),!E.isBuffer(ye))throw new TypeError('"list" argument must be an Array of Buffers');ye.copy(Re,xe),xe+=ye.length}return Re};function Te(Ae,je){if(E.isBuffer(Ae))return Ae.length;if(ArrayBuffer.isView(Ae)||mt(Ae,ArrayBuffer))return Ae.byteLength;if(typeof Ae!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ae);var We=Ae.length,at=arguments.length>2&&arguments[2]===!0;if(!at&&We===0)return 0;for(var Re=!1;;)switch(je){case"ascii":case"latin1":case"binary":return We;case"utf8":case"utf-8":return Ne(Ae).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We*2;case"hex":return We>>>1;case"base64":return Ge(Ae).length;default:if(Re)return at?-1:Ne(Ae).length;je=(""+je).toLowerCase(),Re=!0}}E.byteLength=Te;function Pe(Ae,je,We){var at=!1;if((je===void 0||je<0)&&(je=0),je>this.length||((We===void 0||We>this.length)&&(We=this.length),We<=0)||(We>>>=0,je>>>=0,We<=je))return"";for(Ae||(Ae="utf8");;)switch(Ae){case"hex":return ot(this,je,We);case"utf8":case"utf-8":return et(this,je,We);case"ascii":return Ue(this,je,We);case"latin1":case"binary":return rt(this,je,We);case"base64":return Xe(this,je,We);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return it(this,je,We);default:if(at)throw new TypeError("Unknown encoding: "+Ae);Ae=(Ae+"").toLowerCase(),at=!0}}E.prototype._isBuffer=!0;function ke(Ae,je,We){var at=Ae[je];Ae[je]=Ae[We],Ae[We]=at}E.prototype.swap16=function(){var je=this.length;if(je%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var We=0;We<je;We+=2)ke(this,We,We+1);return this},E.prototype.swap32=function(){var je=this.length;if(je%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var We=0;We<je;We+=4)ke(this,We,We+3),ke(this,We+1,We+2);return this},E.prototype.swap64=function(){var je=this.length;if(je%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var We=0;We<je;We+=8)ke(this,We,We+7),ke(this,We+1,We+6),ke(this,We+2,We+5),ke(this,We+3,We+4);return this},E.prototype.toString=function(){var je=this.length;return je===0?"":arguments.length===0?et(this,0,je):Pe.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(je){if(!E.isBuffer(je))throw new TypeError("Argument must be a Buffer");return this===je?!0:E.compare(this,je)===0},E.prototype.inspect=function(){var je="",We=ve.INSPECT_MAX_BYTES;return je=this.toString("hex",0,We).replace(/(.{2})/g,"$1 ").trim(),this.length>We&&(je+=" ... "),"<Buffer "+je+">"},E.prototype.compare=function(je,We,at,Re,xe){if(mt(je,Uint8Array)&&(je=E.from(je,je.offset,je.byteLength)),!E.isBuffer(je))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof je);if(We===void 0&&(We=0),at===void 0&&(at=je?je.length:0),Re===void 0&&(Re=0),xe===void 0&&(xe=this.length),We<0||at>je.length||Re<0||xe>this.length)throw new RangeError("out of range index");if(Re>=xe&&We>=at)return 0;if(Re>=xe)return-1;if(We>=at)return 1;if(We>>>=0,at>>>=0,Re>>>=0,xe>>>=0,this===je)return 0;for(var ye=xe-Re,Fe=at-We,Qe=Math.min(ye,Fe),Ie=this.slice(Re,xe),vt=je.slice(We,at),yt=0;yt<Qe;++yt)if(Ie[yt]!==vt[yt]){ye=Ie[yt],Fe=vt[yt];break}return ye<Fe?-1:Fe<ye?1:0};function de(Ae,je,We,at,Re){if(Ae.length===0)return-1;if(typeof We=="string"?(at=We,We=0):We>2147483647?We=2147483647:We<-2147483648&&(We=-2147483648),We=+We,nt(We)&&(We=Re?0:Ae.length-1),We<0&&(We=Ae.length+We),We>=Ae.length){if(Re)return-1;We=Ae.length-1}else if(We<0)if(Re)We=0;else return-1;if(typeof je=="string"&&(je=E.from(je,at)),E.isBuffer(je))return je.length===0?-1:ge(Ae,je,We,at,Re);if(typeof je=="number")return je=je&255,typeof Uint8Array.prototype.indexOf=="function"?Re?Uint8Array.prototype.indexOf.call(Ae,je,We):Uint8Array.prototype.lastIndexOf.call(Ae,je,We):ge(Ae,[je],We,at,Re);throw new TypeError("val must be string, number or Buffer")}function ge(Ae,je,We,at,Re){var xe=1,ye=Ae.length,Fe=je.length;if(at!==void 0&&(at=String(at).toLowerCase(),at==="ucs2"||at==="ucs-2"||at==="utf16le"||at==="utf-16le")){if(Ae.length<2||je.length<2)return-1;xe=2,ye/=2,Fe/=2,We/=2}function Qe(bt,ht){return xe===1?bt[ht]:bt.readUInt16BE(ht*xe)}var Ie;if(Re){var vt=-1;for(Ie=We;Ie<ye;Ie++)if(Qe(Ae,Ie)===Qe(je,vt===-1?0:Ie-vt)){if(vt===-1&&(vt=Ie),Ie-vt+1===Fe)return vt*xe}else vt!==-1&&(Ie-=Ie-vt),vt=-1}else for(We+Fe>ye&&(We=ye-Fe),Ie=We;Ie>=0;Ie--){for(var yt=!0,xt=0;xt<Fe;xt++)if(Qe(Ae,Ie+xt)!==Qe(je,xt)){yt=!1;break}if(yt)return Ie}return-1}E.prototype.includes=function(je,We,at){return this.indexOf(je,We,at)!==-1},E.prototype.indexOf=function(je,We,at){return de(this,je,We,at,!0)},E.prototype.lastIndexOf=function(je,We,at){return de(this,je,We,at,!1)};function Se(Ae,je,We,at){We=Number(We)||0;var Re=Ae.length-We;at?(at=Number(at),at>Re&&(at=Re)):at=Re;var xe=je.length;at>xe/2&&(at=xe/2);for(var ye=0;ye<at;++ye){var Fe=parseInt(je.substr(ye*2,2),16);if(nt(Fe))return ye;Ae[We+ye]=Fe}return ye}function De(Ae,je,We,at){return ct(Ne(je,Ae.length-We),Ae,We,at)}function _e(Ae,je,We,at){return ct(ze(je),Ae,We,at)}function Ee(Ae,je,We,at){return _e(Ae,je,We,at)}function Oe(Ae,je,We,at){return ct(Ge(je),Ae,We,at)}function He(Ae,je,We,at){return ct(Me(je,Ae.length-We),Ae,We,at)}E.prototype.write=function(je,We,at,Re){if(We===void 0)Re="utf8",at=this.length,We=0;else if(at===void 0&&typeof We=="string")Re=We,at=this.length,We=0;else if(isFinite(We))We=We>>>0,isFinite(at)?(at=at>>>0,Re===void 0&&(Re="utf8")):(Re=at,at=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var xe=this.length-We;if((at===void 0||at>xe)&&(at=xe),je.length>0&&(at<0||We<0)||We>this.length)throw new RangeError("Attempt to write outside buffer bounds");Re||(Re="utf8");for(var ye=!1;;)switch(Re){case"hex":return Se(this,je,We,at);case"utf8":case"utf-8":return De(this,je,We,at);case"ascii":return _e(this,je,We,at);case"latin1":case"binary":return Ee(this,je,We,at);case"base64":return Oe(this,je,We,at);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,je,We,at);default:if(ye)throw new TypeError("Unknown encoding: "+Re);Re=(""+Re).toLowerCase(),ye=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Xe(Ae,je,We){return je===0&&We===Ae.length?z.fromByteArray(Ae):z.fromByteArray(Ae.slice(je,We))}function et(Ae,je,We){We=Math.min(Ae.length,We);for(var at=[],Re=je;Re<We;){var xe=Ae[Re],ye=null,Fe=xe>239?4:xe>223?3:xe>191?2:1;if(Re+Fe<=We){var Qe,Ie,vt,yt;switch(Fe){case 1:xe<128&&(ye=xe);break;case 2:Qe=Ae[Re+1],(Qe&192)===128&&(yt=(xe&31)<<6|Qe&63,yt>127&&(ye=yt));break;case 3:Qe=Ae[Re+1],Ie=Ae[Re+2],(Qe&192)===128&&(Ie&192)===128&&(yt=(xe&15)<<12|(Qe&63)<<6|Ie&63,yt>2047&&(yt<55296||yt>57343)&&(ye=yt));break;case 4:Qe=Ae[Re+1],Ie=Ae[Re+2],vt=Ae[Re+3],(Qe&192)===128&&(Ie&192)===128&&(vt&192)===128&&(yt=(xe&15)<<18|(Qe&63)<<12|(Ie&63)<<6|vt&63,yt>65535&&yt<1114112&&(ye=yt))}}ye===null?(ye=65533,Fe=1):ye>65535&&(ye-=65536,at.push(ye>>>10&1023|55296),ye=56320|ye&1023),at.push(ye),Re+=Fe}return Le(at)}var st=4096;function Le(Ae){var je=Ae.length;if(je<=st)return String.fromCharCode.apply(String,Ae);for(var We="",at=0;at<je;)We+=String.fromCharCode.apply(String,Ae.slice(at,at+=st));return We}function Ue(Ae,je,We){var at="";We=Math.min(Ae.length,We);for(var Re=je;Re<We;++Re)at+=String.fromCharCode(Ae[Re]&127);return at}function rt(Ae,je,We){var at="";We=Math.min(Ae.length,We);for(var Re=je;Re<We;++Re)at+=String.fromCharCode(Ae[Re]);return at}function ot(Ae,je,We){var at=Ae.length;(!je||je<0)&&(je=0),(!We||We<0||We>at)&&(We=at);for(var Re="",xe=je;xe<We;++xe)Re+=Ze(Ae[xe]);return Re}function it(Ae,je,We){for(var at=Ae.slice(je,We),Re="",xe=0;xe<at.length;xe+=2)Re+=String.fromCharCode(at[xe]+at[xe+1]*256);return Re}E.prototype.slice=function(je,We){var at=this.length;je=~~je,We=We===void 0?at:~~We,je<0?(je+=at,je<0&&(je=0)):je>at&&(je=at),We<0?(We+=at,We<0&&(We=0)):We>at&&(We=at),We<je&&(We=je);var Re=this.subarray(je,We);return Re.__proto__=E.prototype,Re};function Ye(Ae,je,We){if(Ae%1!==0||Ae<0)throw new RangeError("offset is not uint");if(Ae+je>We)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(je,We,at){je=je>>>0,We=We>>>0,at||Ye(je,We,this.length);for(var Re=this[je],xe=1,ye=0;++ye<We&&(xe*=256);)Re+=this[je+ye]*xe;return Re},E.prototype.readUIntBE=function(je,We,at){je=je>>>0,We=We>>>0,at||Ye(je,We,this.length);for(var Re=this[je+--We],xe=1;We>0&&(xe*=256);)Re+=this[je+--We]*xe;return Re},E.prototype.readUInt8=function(je,We){return je=je>>>0,We||Ye(je,1,this.length),this[je]},E.prototype.readUInt16LE=function(je,We){return je=je>>>0,We||Ye(je,2,this.length),this[je]|this[je+1]<<8},E.prototype.readUInt16BE=function(je,We){return je=je>>>0,We||Ye(je,2,this.length),this[je]<<8|this[je+1]},E.prototype.readUInt32LE=function(je,We){return je=je>>>0,We||Ye(je,4,this.length),(this[je]|this[je+1]<<8|this[je+2]<<16)+this[je+3]*16777216},E.prototype.readUInt32BE=function(je,We){return je=je>>>0,We||Ye(je,4,this.length),this[je]*16777216+(this[je+1]<<16|this[je+2]<<8|this[je+3])},E.prototype.readIntLE=function(je,We,at){je=je>>>0,We=We>>>0,at||Ye(je,We,this.length);for(var Re=this[je],xe=1,ye=0;++ye<We&&(xe*=256);)Re+=this[je+ye]*xe;return xe*=128,Re>=xe&&(Re-=Math.pow(2,8*We)),Re},E.prototype.readIntBE=function(je,We,at){je=je>>>0,We=We>>>0,at||Ye(je,We,this.length);for(var Re=We,xe=1,ye=this[je+--Re];Re>0&&(xe*=256);)ye+=this[je+--Re]*xe;return xe*=128,ye>=xe&&(ye-=Math.pow(2,8*We)),ye},E.prototype.readInt8=function(je,We){return je=je>>>0,We||Ye(je,1,this.length),this[je]&128?(255-this[je]+1)*-1:this[je]},E.prototype.readInt16LE=function(je,We){je=je>>>0,We||Ye(je,2,this.length);var at=this[je]|this[je+1]<<8;return at&32768?at|4294901760:at},E.prototype.readInt16BE=function(je,We){je=je>>>0,We||Ye(je,2,this.length);var at=this[je+1]|this[je]<<8;return at&32768?at|4294901760:at},E.prototype.readInt32LE=function(je,We){return je=je>>>0,We||Ye(je,4,this.length),this[je]|this[je+1]<<8|this[je+2]<<16|this[je+3]<<24},E.prototype.readInt32BE=function(je,We){return je=je>>>0,We||Ye(je,4,this.length),this[je]<<24|this[je+1]<<16|this[je+2]<<8|this[je+3]},E.prototype.readFloatLE=function(je,We){return je=je>>>0,We||Ye(je,4,this.length),oe.read(this,je,!0,23,4)},E.prototype.readFloatBE=function(je,We){return je=je>>>0,We||Ye(je,4,this.length),oe.read(this,je,!1,23,4)},E.prototype.readDoubleLE=function(je,We){return je=je>>>0,We||Ye(je,8,this.length),oe.read(this,je,!0,52,8)},E.prototype.readDoubleBE=function(je,We){return je=je>>>0,We||Ye(je,8,this.length),oe.read(this,je,!1,52,8)};function $e(Ae,je,We,at,Re,xe){if(!E.isBuffer(Ae))throw new TypeError('"buffer" argument must be a Buffer instance');if(je>Re||je<xe)throw new RangeError('"value" argument is out of bounds');if(We+at>Ae.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(je,We,at,Re){if(je=+je,We=We>>>0,at=at>>>0,!Re){var xe=Math.pow(2,8*at)-1;$e(this,je,We,at,xe,0)}var ye=1,Fe=0;for(this[We]=je&255;++Fe<at&&(ye*=256);)this[We+Fe]=je/ye&255;return We+at},E.prototype.writeUIntBE=function(je,We,at,Re){if(je=+je,We=We>>>0,at=at>>>0,!Re){var xe=Math.pow(2,8*at)-1;$e(this,je,We,at,xe,0)}var ye=at-1,Fe=1;for(this[We+ye]=je&255;--ye>=0&&(Fe*=256);)this[We+ye]=je/Fe&255;return We+at},E.prototype.writeUInt8=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,1,255,0),this[We]=je&255,We+1},E.prototype.writeUInt16LE=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,2,65535,0),this[We]=je&255,this[We+1]=je>>>8,We+2},E.prototype.writeUInt16BE=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,2,65535,0),this[We]=je>>>8,this[We+1]=je&255,We+2},E.prototype.writeUInt32LE=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,4,4294967295,0),this[We+3]=je>>>24,this[We+2]=je>>>16,this[We+1]=je>>>8,this[We]=je&255,We+4},E.prototype.writeUInt32BE=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,4,4294967295,0),this[We]=je>>>24,this[We+1]=je>>>16,this[We+2]=je>>>8,this[We+3]=je&255,We+4},E.prototype.writeIntLE=function(je,We,at,Re){if(je=+je,We=We>>>0,!Re){var xe=Math.pow(2,8*at-1);$e(this,je,We,at,xe-1,-xe)}var ye=0,Fe=1,Qe=0;for(this[We]=je&255;++ye<at&&(Fe*=256);)je<0&&Qe===0&&this[We+ye-1]!==0&&(Qe=1),this[We+ye]=(je/Fe>>0)-Qe&255;return We+at},E.prototype.writeIntBE=function(je,We,at,Re){if(je=+je,We=We>>>0,!Re){var xe=Math.pow(2,8*at-1);$e(this,je,We,at,xe-1,-xe)}var ye=at-1,Fe=1,Qe=0;for(this[We+ye]=je&255;--ye>=0&&(Fe*=256);)je<0&&Qe===0&&this[We+ye+1]!==0&&(Qe=1),this[We+ye]=(je/Fe>>0)-Qe&255;return We+at},E.prototype.writeInt8=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,1,127,-128),je<0&&(je=255+je+1),this[We]=je&255,We+1},E.prototype.writeInt16LE=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,2,32767,-32768),this[We]=je&255,this[We+1]=je>>>8,We+2},E.prototype.writeInt16BE=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,2,32767,-32768),this[We]=je>>>8,this[We+1]=je&255,We+2},E.prototype.writeInt32LE=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,4,2147483647,-2147483648),this[We]=je&255,this[We+1]=je>>>8,this[We+2]=je>>>16,this[We+3]=je>>>24,We+4},E.prototype.writeInt32BE=function(je,We,at){return je=+je,We=We>>>0,at||$e(this,je,We,4,2147483647,-2147483648),je<0&&(je=4294967295+je+1),this[We]=je>>>24,this[We+1]=je>>>16,this[We+2]=je>>>8,this[We+3]=je&255,We+4};function Ke(Ae,je,We,at,Re,xe){if(We+at>Ae.length)throw new RangeError("Index out of range");if(We<0)throw new RangeError("Index out of range")}function ft(Ae,je,We,at,Re){return je=+je,We=We>>>0,Re||Ke(Ae,je,We,4,34028234663852886e22,-34028234663852886e22),oe.write(Ae,je,We,at,23,4),We+4}E.prototype.writeFloatLE=function(je,We,at){return ft(this,je,We,!0,at)},E.prototype.writeFloatBE=function(je,We,at){return ft(this,je,We,!1,at)};function tt(Ae,je,We,at,Re){return je=+je,We=We>>>0,Re||Ke(Ae,je,We,8,17976931348623157e292,-17976931348623157e292),oe.write(Ae,je,We,at,52,8),We+8}E.prototype.writeDoubleLE=function(je,We,at){return tt(this,je,We,!0,at)},E.prototype.writeDoubleBE=function(je,We,at){return tt(this,je,We,!1,at)},E.prototype.copy=function(je,We,at,Re){if(!E.isBuffer(je))throw new TypeError("argument should be a Buffer");if(at||(at=0),!Re&&Re!==0&&(Re=this.length),We>=je.length&&(We=je.length),We||(We=0),Re>0&&Re<at&&(Re=at),Re===at||je.length===0||this.length===0)return 0;if(We<0)throw new RangeError("targetStart out of bounds");if(at<0||at>=this.length)throw new RangeError("Index out of range");if(Re<0)throw new RangeError("sourceEnd out of bounds");Re>this.length&&(Re=this.length),je.length-We<Re-at&&(Re=je.length-We+at);var xe=Re-at;if(this===je&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(We,at,Re);else if(this===je&&at<We&&We<Re)for(var ye=xe-1;ye>=0;--ye)je[ye+We]=this[ye+at];else Uint8Array.prototype.set.call(je,this.subarray(at,Re),We);return xe},E.prototype.fill=function(je,We,at,Re){if(typeof je=="string"){if(typeof We=="string"?(Re=We,We=0,at=this.length):typeof at=="string"&&(Re=at,at=this.length),Re!==void 0&&typeof Re!="string")throw new TypeError("encoding must be a string");if(typeof Re=="string"&&!E.isEncoding(Re))throw new TypeError("Unknown encoding: "+Re);if(je.length===1){var xe=je.charCodeAt(0);(Re==="utf8"&&xe<128||Re==="latin1")&&(je=xe)}}else typeof je=="number"&&(je=je&255);if(We<0||this.length<We||this.length<at)throw new RangeError("Out of range index");if(at<=We)return this;We=We>>>0,at=at===void 0?this.length:at>>>0,je||(je=0);var ye;if(typeof je=="number")for(ye=We;ye<at;++ye)this[ye]=je;else{var Fe=E.isBuffer(je)?je:E.from(je,Re),Qe=Fe.length;if(Qe===0)throw new TypeError('The value "'+je+'" is invalid for argument "value"');for(ye=0;ye<at-We;++ye)this[ye+We]=Fe[ye%Qe]}return this};var ut=/[^+/0-9A-Za-z-_]/g;function lt(Ae){if(Ae=Ae.split("=")[0],Ae=Ae.trim().replace(ut,""),Ae.length<2)return"";for(;Ae.length%4!==0;)Ae=Ae+"=";return Ae}function Ze(Ae){return Ae<16?"0"+Ae.toString(16):Ae.toString(16)}function Ne(Ae,je){je=je||1/0;for(var We,at=Ae.length,Re=null,xe=[],ye=0;ye<at;++ye){if(We=Ae.charCodeAt(ye),We>55295&&We<57344){if(!Re){if(We>56319){(je-=3)>-1&&xe.push(239,191,189);continue}else if(ye+1===at){(je-=3)>-1&&xe.push(239,191,189);continue}Re=We;continue}if(We<56320){(je-=3)>-1&&xe.push(239,191,189),Re=We;continue}We=(Re-55296<<10|We-56320)+65536}else Re&&(je-=3)>-1&&xe.push(239,191,189);if(Re=null,We<128){if((je-=1)<0)break;xe.push(We)}else if(We<2048){if((je-=2)<0)break;xe.push(We>>6|192,We&63|128)}else if(We<65536){if((je-=3)<0)break;xe.push(We>>12|224,We>>6&63|128,We&63|128)}else if(We<1114112){if((je-=4)<0)break;xe.push(We>>18|240,We>>12&63|128,We>>6&63|128,We&63|128)}else throw new Error("Invalid code point")}return xe}function ze(Ae){for(var je=[],We=0;We<Ae.length;++We)je.push(Ae.charCodeAt(We)&255);return je}function Me(Ae,je){for(var We,at,Re,xe=[],ye=0;ye<Ae.length&&!((je-=2)<0);++ye)We=Ae.charCodeAt(ye),at=We>>8,Re=We%256,xe.push(Re),xe.push(at);return xe}function Ge(Ae){return z.toByteArray(lt(Ae))}function ct(Ae,je,We,at){for(var Re=0;Re<at&&!(Re+We>=je.length||Re>=Ae.length);++Re)je[Re+We]=Ae[Re];return Re}function mt(Ae,je){return Ae instanceof je||Ae!=null&&Ae.constructor!=null&&Ae.constructor.name!=null&&Ae.constructor.name===je.name}function nt(Ae){return Ae!==Ae}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,we,ve){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,ve){"use strict";var x=y("get-intrinsic"),z=y("./"),oe=z(x("String.prototype.indexOf"));we.exports=function(ee,se){var E=x(ee,!!se);return typeof E=="function"&&oe(ee,".prototype.")>-1?z(E):E}},{"./":93,"get-intrinsic":348}],93:[function(y,we,ve){"use strict";var x=y("function-bind"),z=y("get-intrinsic"),oe=z("%Function.prototype.apply%"),ie=z("%Function.prototype.call%"),ee=z("%Reflect.apply%",!0)||x.call(ie,oe),se=z("%Object.getOwnPropertyDescriptor%",!0),E=z("%Object.defineProperty%",!0),te=z("%Math.max%");if(E)try{E({},"a",{value:1})}catch(le){E=null}we.exports=function(ue){var ce=ee(x,ie,arguments);if(se&&E){var he=se(ce,"length");he.configurable&&E(ce,"length",{value:1+te(0,ue.length-(arguments.length-1))})}return ce};var re=function(){return ee(x,oe,arguments)};E?E(we.exports,"apply",{value:re}):we.exports.apply=re},{"function-bind":347,"get-intrinsic":348}],94:[function(y,we,ve){"use strict";var x=Array.prototype.slice;we.exports=z;function z(ie,ee){if(!(this instanceof z))return new z(ie,ee);this.src=ie,this._withAccess=ee}z.prototype.withAccess=function(ie){return this._withAccess=ie!==!1,this},z.prototype.pick=function(ie){return Array.isArray(ie)||(ie=x.call(arguments)),ie.length&&(this.keys=ie),this},z.prototype.to=function(ie){if(ie=ie||{},!this.src)return ie;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var se=0;se<ee.length;se++)E=ee[se],ie[E]===void 0&&(ie[E]=this.src[E]);return ie}for(var se=0;se<ee.length;se++){var E=ee[se];if(oe(ie,E)){var te=this.src.__lookupGetter__(E),re=this.src.__lookupSetter__(E);te&&ie.__defineGetter__(E,te),re&&ie.__defineSetter__(E,re),!te&&!re&&(ie[E]=this.src[E])}}return ie},z.prototype.toCover=function(ie){for(var ee=this.keys||Object.keys(this.src),se=0;se<ee.length;se++){var E=ee[se];delete ie[E];var te=this.src.__lookupGetter__(E),re=this.src.__lookupSetter__(E);te&&ie.__defineGetter__(E,te),re&&ie.__defineSetter__(E,re),!te&&!re&&(ie[E]=this.src[E])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(ie){var ee={};return this.to(ee),this.src=ie,this.to(ee),this.src=ee,this};function oe(ie,ee){return ie[ee]===void 0&&ie.__lookupGetter__(ee)===void 0&&ie.__lookupSetter__(ee)===void 0}},{}],95:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/try-to-string"),ie=x.TypeError;we.exports=function(ee){if(z(ee))return ee;throw ie(oe(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-constructor"),oe=y("../internals/try-to-string"),ie=x.TypeError;we.exports=function(ee){if(z(ee))return ee;throw ie(oe(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=x.String,ie=x.TypeError;we.exports=function(ee){if(typeof ee=="object"||z(ee))return ee;throw ie("Can't set "+oe(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,we,ve){var x=y("../internals/well-known-symbol"),z=y("../internals/object-create"),oe=y("../internals/object-define-property"),ie=x("unscopables"),ee=Array.prototype;ee[ie]==null&&oe.f(ee,ie,{configurable:!0,value:z(null)}),we.exports=function(se){ee[ie][se]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,we,ve){"use strict";var x=y("../internals/string-multibyte").charAt;we.exports=function(z,oe,ie){return oe+(ie?x(z,oe).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/object-is-prototype-of"),oe=x.TypeError;we.exports=function(ie,ee){if(z(ee,ie))return ie;throw oe("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-object"),oe=x.String,ie=x.TypeError;we.exports=function(ee){if(z(ee))return ee;throw ie(oe(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,we,ve){we.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-native"),z=y("../internals/descriptors"),oe=y("../internals/global"),ie=y("../internals/is-callable"),ee=y("../internals/is-object"),se=y("../internals/has-own-property"),E=y("../internals/classof"),te=y("../internals/try-to-string"),re=y("../internals/create-non-enumerable-property"),le=y("../internals/redefine"),ue=y("../internals/object-define-property").f,ce=y("../internals/object-is-prototype-of"),he=y("../internals/object-get-prototype-of"),me=y("../internals/object-set-prototype-of"),fe=y("../internals/well-known-symbol"),be=y("../internals/uid"),Ce=oe.Int8Array,Te=Ce&&Ce.prototype,Pe=oe.Uint8ClampedArray,ke=Pe&&Pe.prototype,de=Ce&&he(Ce),ge=Te&&he(Te),Se=Object.prototype,De=oe.TypeError,_e=fe("toStringTag"),Ee=be("TYPED_ARRAY_TAG"),Oe=be("TYPED_ARRAY_CONSTRUCTOR"),He=x&&!!me&&E(oe.opera)!=="Opera",Xe=!1,et,st,Le,Ue={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(!ee(ut))return!1;var lt=E(ut);return lt==="DataView"||se(Ue,lt)||se(rt,lt)},it=function(tt){if(!ee(tt))return!1;var ut=E(tt);return se(Ue,ut)||se(rt,ut)},Ye=function(tt){if(it(tt))return tt;throw De("Target is not a typed array")},$e=function(tt){if(ie(tt)&&(!me||ce(de,tt)))return tt;throw De(te(tt)+" is not a typed array constructor")},Ke=function(tt,ut,lt,Ze){if(z){if(lt)for(var Ne in Ue){var ze=oe[Ne];if(ze&&se(ze.prototype,tt))try{delete ze.prototype[tt]}catch(Me){try{ze.prototype[tt]=ut}catch(Ge){}}}(!ge[tt]||lt)&&le(ge,tt,lt?ut:He&&Te[tt]||ut,Ze)}},ft=function(tt,ut,lt){var Ze,Ne;if(z){if(me){if(lt){for(Ze in Ue)if(Ne=oe[Ze],Ne&&se(Ne,tt))try{delete Ne[tt]}catch(ze){}}if(!de[tt]||lt)try{return le(de,tt,lt?ut:He&&de[tt]||ut)}catch(ze){}else return}for(Ze in Ue)Ne=oe[Ze],Ne&&(!Ne[tt]||lt)&&le(Ne,tt,ut)}};for(et in Ue)st=oe[et],Le=st&&st.prototype,Le?re(Le,Oe,st):He=!1;for(et in rt)st=oe[et],Le=st&&st.prototype,Le&&re(Le,Oe,st);if((!He||!ie(de)||de===Function.prototype)&&(de=function(){throw De("Incorrect invocation")},He))for(et in Ue)oe[et]&&me(oe[et],de);if((!He||!ge||ge===Se)&&(ge=de.prototype,He))for(et in Ue)oe[et]&&me(oe[et].prototype,ge);if(He&&he(ke)!==ge&&me(ke,ge),z&&!se(ge,_e)){Xe=!0,ue(ge,_e,{get:function(){return ee(this)?this[Ee]:void 0}});for(et in Ue)oe[et]&&re(oe[et],Ee,et)}we.exports={NATIVE_ARRAY_BUFFER_VIEWS:He,TYPED_ARRAY_CONSTRUCTOR:Oe,TYPED_ARRAY_TAG:Xe&&Ee,aTypedArray:Ye,aTypedArrayConstructor:$e,exportTypedArrayMethod:Ke,exportTypedArrayStaticMethod:ft,isView:ot,isTypedArray:it,TypedArray:de,TypedArrayPrototype:ge}},{"../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,ve){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/descriptors"),ie=y("../internals/array-buffer-native"),ee=y("../internals/function-name"),se=y("../internals/create-non-enumerable-property"),E=y("../internals/redefine-all"),te=y("../internals/fails"),re=y("../internals/an-instance"),le=y("../internals/to-integer-or-infinity"),ue=y("../internals/to-length"),ce=y("../internals/to-index"),he=y("../internals/ieee754"),me=y("../internals/object-get-prototype-of"),fe=y("../internals/object-set-prototype-of"),be=y("../internals/object-get-own-property-names").f,Ce=y("../internals/object-define-property").f,Te=y("../internals/array-fill"),Pe=y("../internals/array-slice-simple"),ke=y("../internals/set-to-string-tag"),de=y("../internals/internal-state"),ge=ee.PROPER,Se=ee.CONFIGURABLE,De=de.get,_e=de.set,Ee="ArrayBuffer",Oe="DataView",He="prototype",Xe="Wrong length",et="Wrong index",st=x[Ee],Le=st,Ue=Le&&Le[He],rt=x[Oe],ot=rt&&rt[He],it=Object.prototype,Ye=x.Array,$e=x.RangeError,Ke=z(Te),ft=z([].reverse),tt=he.pack,ut=he.unpack,lt=function(ye){return[ye&255]},Ze=function(ye){return[ye&255,ye>>8&255]},Ne=function(ye){return[ye&255,ye>>8&255,ye>>16&255,ye>>24&255]},ze=function(ye){return ye[3]<<24|ye[2]<<16|ye[1]<<8|ye[0]},Me=function(ye){return tt(ye,23,4)},Ge=function(ye){return tt(ye,52,8)},ct=function(ye,Fe){Ce(ye[He],Fe,{get:function(){return De(this)[Fe]}})},mt=function(ye,Fe,Qe,Ie){var vt=ce(Qe),yt=De(ye);if(vt+Fe>yt.byteLength)throw $e(et);var xt=De(yt.buffer).bytes,bt=vt+yt.byteOffset,ht=Pe(xt,bt,bt+Fe);return Ie?ht:ft(ht)},nt=function(ye,Fe,Qe,Ie,vt,yt){var xt=ce(Qe),bt=De(ye);if(xt+Fe>bt.byteLength)throw $e(et);for(var ht=De(bt.buffer).bytes,kt=xt+bt.byteOffset,Tt=Ie(+vt),Pt=0;Pt<Fe;Pt++)ht[kt+Pt]=Tt[yt?Pt:Fe-Pt-1]};if(!ie)Le=function(Fe){re(this,Ue);var Qe=ce(Fe);_e(this,{bytes:Ke(Ye(Qe),0),byteLength:Qe}),oe||(this.byteLength=Qe)},Ue=Le[He],rt=function(Fe,Qe,Ie){re(this,ot),re(Fe,Ue);var vt=De(Fe).byteLength,yt=le(Qe);if(yt<0||yt>vt)throw $e("Wrong offset");if(Ie=Ie===void 0?vt-yt:ue(Ie),yt+Ie>vt)throw $e(Xe);_e(this,{buffer:Fe,byteLength:Ie,byteOffset:yt}),oe||(this.buffer=Fe,this.byteLength=Ie,this.byteOffset=yt)},ot=rt[He],oe&&(ct(Le,"byteLength"),ct(rt,"buffer"),ct(rt,"byteLength"),ct(rt,"byteOffset")),E(ot,{getInt8:function(Fe){return mt(this,1,Fe)[0]<<24>>24},getUint8:function(Fe){return mt(this,1,Fe)[0]},getInt16:function(Fe){var Qe=mt(this,2,Fe,arguments.length>1?arguments[1]:void 0);return(Qe[1]<<8|Qe[0])<<16>>16},getUint16:function(Fe){var Qe=mt(this,2,Fe,arguments.length>1?arguments[1]:void 0);return Qe[1]<<8|Qe[0]},getInt32:function(Fe){return ze(mt(this,4,Fe,arguments.length>1?arguments[1]:void 0))},getUint32:function(Fe){return ze(mt(this,4,Fe,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Fe){return ut(mt(this,4,Fe,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Fe){return ut(mt(this,8,Fe,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Fe,Qe){nt(this,1,Fe,lt,Qe)},setUint8:function(Fe,Qe){nt(this,1,Fe,lt,Qe)},setInt16:function(Fe,Qe){nt(this,2,Fe,Ze,Qe,arguments.length>2?arguments[2]:void 0)},setUint16:function(Fe,Qe){nt(this,2,Fe,Ze,Qe,arguments.length>2?arguments[2]:void 0)},setInt32:function(Fe,Qe){nt(this,4,Fe,Ne,Qe,arguments.length>2?arguments[2]:void 0)},setUint32:function(Fe,Qe){nt(this,4,Fe,Ne,Qe,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Fe,Qe){nt(this,4,Fe,Me,Qe,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Fe,Qe){nt(this,8,Fe,Ge,Qe,arguments.length>2?arguments[2]:void 0)}});else{var Ae=ge&&st.name!==Ee;if(!te(function(){st(1)})||!te(function(){new st(-1)})||te(function(){return new st,new st(1.5),new st(NaN),Ae&&!Se})){Le=function(Fe){return re(this,Ue),new st(ce(Fe))},Le[He]=Ue;for(var je=be(st),We=0,at;je.length>We;)(at=je[We++])in Le||se(Le,at,st[at]);Ue.constructor=Le}else Ae&&Se&&se(st,"name",Ee);fe&&me(ot)!==it&&fe(ot,it);var Re=new rt(new Le(2)),xe=z(ot.setInt8);Re.setInt8(0,2147483648),Re.setInt8(1,2147483649),(Re.getInt8(0)||!Re.getInt8(1))&&E(ot,{setInt8:function(Fe,Qe){xe(this,Fe,Qe<<24>>24)},setUint8:function(Fe,Qe){xe(this,Fe,Qe<<24>>24)}},{unsafe:!0})}ke(Le,Ee),ke(rt,Oe),we.exports={ArrayBuffer:Le,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,ve){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),ie=Math.min;we.exports=[].copyWithin||function(se,E){var te=x(this),re=oe(te),le=z(se,re),ue=z(E,re),ce=arguments.length>2?arguments[2]:void 0,he=ie((ce===void 0?re:z(ce,re))-ue,re-le),me=1;for(ue<le&&le<ue+he&&(me=-1,ue+=he-1,le+=he-1);he-- >0;)ue in te?te[le]=te[ue]:delete te[le],le+=me,ue+=me;return te}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,we,ve){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like");we.exports=function(ee){for(var se=x(this),E=oe(se),te=arguments.length,re=z(te>1?arguments[1]:void 0,E),le=te>2?arguments[2]:void 0,ue=le===void 0?E:z(le,E);ue>re;)se[re++]=ee;return se}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,we,ve){"use strict";var x=y("../internals/array-iteration").forEach,z=y("../internals/array-method-is-strict"),oe=z("forEach");we.exports=oe?[].forEach:function(ee){return x(this,ee,arguments.length>1?arguments[1]:void 0)}},{"../internals/array-iteration":111,"../internals/array-method-is-strict":114}],108:[function(y,we,ve){var x=y("../internals/length-of-array-like");we.exports=function(z,oe){for(var ie=0,ee=x(oe),se=new z(ee);ee>ie;)se[ie]=oe[ie++];return se}},{"../internals/length-of-array-like":188}],109:[function(y,we,ve){"use strict";var x=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/function-call"),ie=y("../internals/to-object"),ee=y("../internals/call-with-safe-iteration-closing"),se=y("../internals/is-array-iterator-method"),E=y("../internals/is-constructor"),te=y("../internals/length-of-array-like"),re=y("../internals/create-property"),le=y("../internals/get-iterator"),ue=y("../internals/get-iterator-method"),ce=x.Array;we.exports=function(me){var fe=ie(me),be=E(this),Ce=arguments.length,Te=Ce>1?arguments[1]:void 0,Pe=Te!==void 0;Pe&&(Te=z(Te,Ce>2?arguments[2]:void 0));var ke=ue(fe),de=0,ge,Se,De,_e,Ee,Oe;if(ke&&!(this==ce&&se(ke)))for(_e=le(fe,ke),Ee=_e.next,Se=be?new this:[];!(De=oe(Ee,_e)).done;de++)Oe=Pe?ee(_e,Te,[De.value,de],!0):De.value,re(Se,de,Oe);else for(ge=te(fe),Se=be?new this(ge):ce(ge);ge>de;de++)Oe=Pe?Te(fe[de],de):fe[de],re(Se,de,Oe);return Se.length=de,Se}},{"../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,ve){var x=y("../internals/to-indexed-object"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),ie=function(ee){return function(se,E,te){var re=x(se),le=oe(re),ue=z(te,le),ce;if(ee&&E!=E){for(;le>ue;)if(ce=re[ue++],ce!=ce)return!0}else for(;le>ue;ue++)if((ee||ue in re)&&re[ue]===E)return ee||ue||0;return!ee&&-1}};we.exports={includes:ie(!0),indexOf:ie(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(y,we,ve){var x=y("../internals/function-bind-context"),z=y("../internals/function-uncurry-this"),oe=y("../internals/indexed-object"),ie=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),se=y("../internals/array-species-create"),E=z([].push),te=function(re){var le=re==1,ue=re==2,ce=re==3,he=re==4,me=re==6,fe=re==7,be=re==5||me;return function(Ce,Te,Pe,ke){for(var de=ie(Ce),ge=oe(de),Se=x(Te,Pe),De=ee(ge),_e=0,Ee=ke||se,Oe=le?Ee(Ce,De):ue||fe?Ee(Ce,0):void 0,He,Xe;De>_e;_e++)if((be||_e in ge)&&(He=ge[_e],Xe=Se(He,_e,de),re))if(le)Oe[_e]=Xe;else if(Xe)switch(re){case 3:return!0;case 5:return He;case 6:return _e;case 2:E(Oe,He)}else switch(re){case 4:return!1;case 7:E(Oe,He)}return me?-1:ce||he?he:Oe}};we.exports={forEach:te(0),map:te(1),filter:te(2),some:te(3),every:te(4),find:te(5),findIndex:te(6),filterReject:te(7)}},{"../internals/array-species-create":120,"../internals/function-bind-context":153,"../internals/function-uncurry-this":157,"../internals/indexed-object":170,"../internals/length-of-array-like":188,"../internals/to-object":250}],112:[function(y,we,ve){"use strict";var x=y("../internals/function-apply"),z=y("../internals/to-indexed-object"),oe=y("../internals/to-integer-or-infinity"),ie=y("../internals/length-of-array-like"),ee=y("../internals/array-method-is-strict"),se=Math.min,E=[].lastIndexOf,te=!!E&&1/[1].lastIndexOf(1,-0)<0,re=ee("lastIndexOf"),le=te||!re;we.exports=le?function(ce){if(te)return x(E,this,arguments)||0;var he=z(this),me=ie(he),fe=me-1;for(arguments.length>1&&(fe=se(fe,oe(arguments[1]))),fe<0&&(fe=me+fe);fe>=0;fe--)if(fe in he&&he[fe]===ce)return fe||0;return-1}:E},{"../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,ve){var x=y("../internals/fails"),z=y("../internals/well-known-symbol"),oe=y("../internals/engine-v8-version"),ie=z("species");we.exports=function(ee){return oe>=51||!x(function(){var se=[],E=se.constructor={};return E[ie]=function(){return{foo:1}},se[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,we,ve){"use strict";var x=y("../internals/fails");we.exports=function(z,oe){var ie=[][z];return!!ie&&x(function(){ie.call(null,oe||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/a-callable"),oe=y("../internals/to-object"),ie=y("../internals/indexed-object"),ee=y("../internals/length-of-array-like"),se=x.TypeError,E=function(te){return function(re,le,ue,ce){z(le);var he=oe(re),me=ie(he),fe=ee(he),be=te?fe-1:0,Ce=te?-1:1;if(ue<2)for(;;){if(be in me){ce=me[be],be+=Ce;break}if(be+=Ce,te?be<0:fe<=be)throw se("Reduce of empty array with no initial value")}for(;te?be>=0:fe>be;be+=Ce)be in me&&(ce=le(ce,me[be],be,he));return ce}};we.exports={left:E(!1),right:E(!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,ve){var x=y("../internals/global"),z=y("../internals/to-absolute-index"),oe=y("../internals/length-of-array-like"),ie=y("../internals/create-property"),ee=x.Array,se=Math.max;we.exports=function(E,te,re){for(var le=oe(E),ue=z(te,le),ce=z(re===void 0?le:re,le),he=ee(se(ce-ue,0)),me=0;ue<ce;ue++,me++)ie(he,me,E[ue]);return he.length=me,he}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,we,ve){var x=y("../internals/function-uncurry-this");we.exports=x([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,we,ve){var x=y("../internals/array-slice-simple"),z=Math.floor,oe=function(se,E){var te=se.length,re=z(te/2);return te<8?ie(se,E):ee(se,oe(x(se,0,re),E),oe(x(se,re),E),E)},ie=function(se,E){for(var te=se.length,re=1,le,ue;re<te;){for(ue=re,le=se[re];ue&&E(se[ue-1],le)>0;)se[ue]=se[--ue];ue!==re++&&(se[ue]=le)}return se},ee=function(se,E,te,re){for(var le=E.length,ue=te.length,ce=0,he=0;ce<le||he<ue;)se[ce+he]=ce<le&&he<ue?re(E[ce],te[he])<=0?E[ce++]:te[he++]:ce<le?E[ce++]:te[he++];return se};we.exports=oe},{"../internals/array-slice-simple":116}],119:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-array"),oe=y("../internals/is-constructor"),ie=y("../internals/is-object"),ee=y("../internals/well-known-symbol"),se=ee("species"),E=x.Array;we.exports=function(te){var re;return z(te)&&(re=te.constructor,oe(re)&&(re===E||z(re.prototype))?re=void 0:ie(re)&&(re=re[se],re===null&&(re=void 0))),re===void 0?E:re}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(y,we,ve){var x=y("../internals/array-species-constructor");we.exports=function(z,oe){return new(x(z))(oe===0?0:oe)}},{"../internals/array-species-constructor":119}],121:[function(y,we,ve){var x=y("../internals/an-object"),z=y("../internals/iterator-close");we.exports=function(oe,ie,ee,se){try{return se?ie(x(ee)[0],ee[1]):ie(ee)}catch(E){z(oe,"throw",E)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,we,ve){var x=y("../internals/well-known-symbol"),z=x("iterator"),oe=!1;try{var ie=0,ee={next:function(){return{done:!!ie++}},return:function(){oe=!0}};ee[z]=function(){return this},Array.from(ee,function(){throw 2})}catch(se){}we.exports=function(se,E){if(!E&&!oe)return!1;var te=!1;try{var re={};re[z]=function(){return{next:function(){return{done:te=!0}}}},se(re)}catch(le){}return te}},{"../internals/well-known-symbol":268}],123:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=x({}.toString),oe=x("".slice);we.exports=function(ie){return oe(z(ie),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/to-string-tag-support"),oe=y("../internals/is-callable"),ie=y("../internals/classof-raw"),ee=y("../internals/well-known-symbol"),se=ee("toStringTag"),E=x.Object,te=ie(function(){return arguments}())=="Arguments",re=function(le,ue){try{return le[ue]}catch(ce){}};we.exports=z?ie:function(le){var ue,ce,he;return le===void 0?"Undefined":le===null?"Null":typeof(ce=re(ue=E(le),se))=="string"?ce:te?ie(ue):(he=ie(ue))=="Object"&&oe(ue.callee)?"Arguments":he}},{"../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,ve){var x=y("../internals/has-own-property"),z=y("../internals/own-keys"),oe=y("../internals/object-get-own-property-descriptor"),ie=y("../internals/object-define-property");we.exports=function(ee,se,E){for(var te=z(se),re=ie.f,le=oe.f,ue=0;ue<te.length;ue++){var ce=te[ue];!x(ee,ce)&&!(E&&x(E,ce))&&re(ee,ce,le(se,ce))}}},{"../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,ve){var x=y("../internals/well-known-symbol"),z=x("match");we.exports=function(oe){var ie=/./;try{"/./"[oe](ie)}catch(ee){try{return ie[z]=!1,"/./"[oe](ie)}catch(se){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,we,ve){var x=y("../internals/fails");we.exports=!x(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(y,we,ve){"use strict";var x=y("../internals/iterators-core").IteratorPrototype,z=y("../internals/object-create"),oe=y("../internals/create-property-descriptor"),ie=y("../internals/set-to-string-tag"),ee=y("../internals/iterators"),se=function(){return this};we.exports=function(E,te,re,le){var ue=te+" Iterator";return E.prototype=z(x,{next:oe(+!le,re)}),ie(E,ue,!1,!0),ee[ue]=se,E}},{"../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,ve){var x=y("../internals/descriptors"),z=y("../internals/object-define-property"),oe=y("../internals/create-property-descriptor");we.exports=x?function(ie,ee,se){return z.f(ie,ee,oe(1,se))}:function(ie,ee,se){return ie[ee]=se,ie}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,we,ve){we.exports=function(x,z){return{enumerable:!(x&1),configurable:!(x&2),writable:!(x&4),value:z}}},{}],131:[function(y,we,ve){"use strict";var x=y("../internals/to-property-key"),z=y("../internals/object-define-property"),oe=y("../internals/create-property-descriptor");we.exports=function(ie,ee,se){var E=x(ee);E in ie?z.f(ie,E,oe(0,se)):ie[E]=se}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/is-pure"),ie=y("../internals/function-name"),ee=y("../internals/is-callable"),se=y("../internals/create-iterator-constructor"),E=y("../internals/object-get-prototype-of"),te=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),le=y("../internals/create-non-enumerable-property"),ue=y("../internals/redefine"),ce=y("../internals/well-known-symbol"),he=y("../internals/iterators"),me=y("../internals/iterators-core"),fe=ie.PROPER,be=ie.CONFIGURABLE,Ce=me.IteratorPrototype,Te=me.BUGGY_SAFARI_ITERATORS,Pe=ce("iterator"),ke="keys",de="values",ge="entries",Se=function(){return this};we.exports=function(De,_e,Ee,Oe,He,Xe,et){se(Ee,_e,Oe);var st=function(tt){if(tt===He&&it)return it;if(!Te&&tt in rt)return rt[tt];switch(tt){case ke:return function(){return new Ee(this,tt)};case de:return function(){return new Ee(this,tt)};case ge:return function(){return new Ee(this,tt)}}return function(){return new Ee(this)}},Le=_e+" Iterator",Ue=!1,rt=De.prototype,ot=rt[Pe]||rt["@@iterator"]||He&&rt[He],it=!Te&&ot||st(He),Ye=_e=="Array"&&rt.entries||ot,$e,Ke,ft;if(Ye&&($e=E(Ye.call(new De)),$e!==Object.prototype&&$e.next&&(!oe&&E($e)!==Ce&&(te?te($e,Ce):ee($e[Pe])||ue($e,Pe,Se)),re($e,Le,!0,!0),oe&&(he[Le]=Se))),fe&&He==de&&ot&&ot.name!==de&&(!oe&&be?le(rt,"name",de):(Ue=!0,it=function(){return z(ot,this)})),He)if(Ke={values:st(de),keys:Xe?it:st(ke),entries:st(ge)},et)for(ft in Ke)(Te||Ue||!(ft in rt))&&ue(rt,ft,Ke[ft]);else x({target:_e,proto:!0,forced:Te||Ue},Ke);return(!oe||et)&&rt[Pe]!==it&&ue(rt,Pe,it,{name:He}),he[_e]=it,Ke}},{"../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,ve){var x=y("../internals/path"),z=y("../internals/has-own-property"),oe=y("../internals/well-known-symbol-wrapped"),ie=y("../internals/object-define-property").f;we.exports=function(ee){var se=x.Symbol||(x.Symbol={});z(se,ee)||ie(se,ee,{value:oe.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,we,ve){var x=y("../internals/fails");we.exports=!x(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-object"),oe=x.document,ie=z(oe)&&z(oe.createElement);we.exports=function(ee){return ie?oe.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,we,ve){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,ve){var x=y("../internals/document-create-element"),z=x("span").classList,oe=z&&z.constructor&&z.constructor.prototype;we.exports=oe===Object.prototype?void 0:oe},{"../internals/document-create-element":135}],138:[function(y,we,ve){var x=y("../internals/engine-user-agent"),z=x.match(/firefox\/(\d+)/i);we.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(y,we,ve){we.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,we,ve){var x=y("../internals/engine-user-agent");we.exports=/MSIE|Trident/.test(x)},{"../internals/engine-user-agent":145}],141:[function(y,we,ve){var x=y("../internals/engine-user-agent"),z=y("../internals/global");we.exports=/ipad|iphone|ipod/i.test(x)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,we,ve){var x=y("../internals/engine-user-agent");we.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(x)},{"../internals/engine-user-agent":145}],143:[function(y,we,ve){var x=y("../internals/classof-raw"),z=y("../internals/global");we.exports=x(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,we,ve){var x=y("../internals/engine-user-agent");we.exports=/web0s(?!.*chrome)/i.test(x)},{"../internals/engine-user-agent":145}],145:[function(y,we,ve){var x=y("../internals/get-built-in");we.exports=x("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/engine-user-agent"),oe=x.process,ie=x.Deno,ee=oe&&oe.versions||ie&&ie.version,se=ee&&ee.v8,E,te;se&&(E=se.split("."),te=E[0]>0&&E[0]<4?1:+(E[0]+E[1])),!te&&z&&(E=z.match(/Edge\/(\d+)/),(!E||E[1]>=74)&&(E=z.match(/Chrome\/(\d+)/),E&&(te=+E[1]))),we.exports=te},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,we,ve){var x=y("../internals/engine-user-agent"),z=x.match(/AppleWebKit\/(\d+)\./);we.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(y,we,ve){we.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/object-get-own-property-descriptor").f,oe=y("../internals/create-non-enumerable-property"),ie=y("../internals/redefine"),ee=y("../internals/set-global"),se=y("../internals/copy-constructor-properties"),E=y("../internals/is-forced");we.exports=function(te,re){var le=te.target,ue=te.global,ce=te.stat,he,me,fe,be,Ce,Te;if(ue?me=x:ce?me=x[le]||ee(le,{}):me=(x[le]||{}).prototype,me)for(fe in re){if(Ce=re[fe],te.noTargetGet?(Te=z(me,fe),be=Te&&Te.value):be=me[fe],he=E(ue?fe:le+(ce?".":"#")+fe,te.forced),!he&&be!==void 0){if(typeof Ce==typeof be)continue;se(Ce,be)}(te.sham||be&&be.sham)&&oe(Ce,"sham",!0),ie(me,fe,Ce,te)}}},{"../internals/copy-constructor-properties":125,"../internals/create-non-enumerable-property":129,"../internals/global":163,"../internals/is-forced":178,"../internals/object-get-own-property-descriptor":199,"../internals/redefine":222,"../internals/set-global":232}],150:[function(y,we,ve){we.exports=function(x){try{return!!x()}catch(z){return!0}}},{}],151:[function(y,we,ve){"use strict";y("../modules/es.regexp.exec");var x=y("../internals/function-uncurry-this"),z=y("../internals/redefine"),oe=y("../internals/regexp-exec"),ie=y("../internals/fails"),ee=y("../internals/well-known-symbol"),se=y("../internals/create-non-enumerable-property"),E=ee("species"),te=RegExp.prototype;we.exports=function(re,le,ue,ce){var he=ee(re),me=!ie(function(){var Te={};return Te[he]=function(){return 7},""[re](Te)!=7}),fe=me&&!ie(function(){var Te=!1,Pe=/a/;return re==="split"&&(Pe={},Pe.constructor={},Pe.constructor[E]=function(){return Pe},Pe.flags="",Pe[he]=/./[he]),Pe.exec=function(){return Te=!0,null},Pe[he](""),!Te});if(!me||!fe||ue){var be=x(/./[he]),Ce=le(he,""[re],function(Te,Pe,ke,de,ge){var Se=x(Te),De=Pe.exec;return De===oe||De===te.exec?me&&!ge?{done:!0,value:be(Pe,ke,de)}:{done:!0,value:Se(ke,Pe,de)}:{done:!1}});z(String.prototype,re,Ce[0]),z(te,he,Ce[1])}ce&&se(te[he],"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,ve){var x=y("../internals/function-bind-native"),z=Function.prototype,oe=z.apply,ie=z.call;we.exports=typeof Reflect=="object"&&Reflect.apply||(x?ie.bind(oe):function(){return ie.apply(oe,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/a-callable"),oe=y("../internals/function-bind-native"),ie=x(x.bind);we.exports=function(ee,se){return z(ee),se===void 0?ee:oe?ie(ee,se):function(){return ee.apply(se,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,we,ve){var x=y("../internals/fails");we.exports=!x(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,we,ve){var x=y("../internals/function-bind-native"),z=Function.prototype.call;we.exports=x?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,we,ve){var x=y("../internals/descriptors"),z=y("../internals/has-own-property"),oe=Function.prototype,ie=x&&Object.getOwnPropertyDescriptor,ee=z(oe,"name"),se=ee&&function(){}.name==="something",E=ee&&(!x||x&&ie(oe,"name").configurable);we.exports={EXISTS:ee,PROPER:se,CONFIGURABLE:E}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,we,ve){var x=y("../internals/function-bind-native"),z=Function.prototype,oe=z.bind,ie=z.call,ee=x&&oe.bind(ie,ie);we.exports=x?function(se){return se&&ee(se)}:function(se){return se&&function(){return ie.apply(se,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=function(ie){return z(ie)?ie:void 0};we.exports=function(ie,ee){return arguments.length<2?oe(x[ie]):x[ie]&&x[ie][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,we,ve){var x=y("../internals/classof"),z=y("../internals/get-method"),oe=y("../internals/iterators"),ie=y("../internals/well-known-symbol"),ee=ie("iterator");we.exports=function(se){if(se!=null)return z(se,ee)||z(se,"@@iterator")||oe[x(se)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),ie=y("../internals/an-object"),ee=y("../internals/try-to-string"),se=y("../internals/get-iterator-method"),E=x.TypeError;we.exports=function(te,re){var le=arguments.length<2?se(te):re;if(oe(le))return ie(z(le,te));throw E(ee(te)+" is not iterable")}},{"../internals/a-callable":95,"../internals/an-object":101,"../internals/function-call":155,"../internals/get-iterator-method":159,"../internals/global":163,"../internals/try-to-string":257}],161:[function(y,we,ve){var x=y("../internals/a-callable");we.exports=function(z,oe){var ie=z[oe];return ie==null?void 0:x(ie)}},{"../internals/a-callable":95}],162:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),oe=Math.floor,ie=x("".charAt),ee=x("".replace),se=x("".slice),E=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,te=/\$([$&'`]|\d{1,2})/g;we.exports=function(re,le,ue,ce,he,me){var fe=ue+re.length,be=ce.length,Ce=te;return he!==void 0&&(he=z(he),Ce=E),ee(me,Ce,function(Te,Pe){var ke;switch(ie(Pe,0)){case"$":return"$";case"&":return re;case"`":return se(le,0,ue);case"'":return se(le,fe);case"<":ke=he[se(Pe,1,-1)];break;default:var de=+Pe;if(de===0)return Te;if(de>be){var ge=oe(de/10);return ge===0?Te:ge<=be?ce[ge-1]===void 0?ie(Pe,1):ce[ge-1]+ie(Pe,1):Te}ke=ce[de-1]}return ke===void 0?"":ke})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,we,ve){(function(x){(function(){var z=function(oe){return oe&&oe.Math==Math&&oe};we.exports=z(typeof globalThis=="object"&&globalThis)||z(typeof window=="object"&&window)||z(typeof self=="object"&&self)||z(typeof x=="object"&&x)||function(){return this}()||Function("return this")()}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),oe=x({}.hasOwnProperty);we.exports=Object.hasOwn||function(ee,se){return oe(z(ee),se)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,we,ve){we.exports={}},{}],166:[function(y,we,ve){var x=y("../internals/global");we.exports=function(z,oe){var ie=x.console;ie&&ie.error&&(arguments.length==1?ie.error(z):ie.error(z,oe))}},{"../internals/global":163}],167:[function(y,we,ve){var x=y("../internals/get-built-in");we.exports=x("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,we,ve){var x=y("../internals/descriptors"),z=y("../internals/fails"),oe=y("../internals/document-create-element");we.exports=!x&&!z(function(){return Object.defineProperty(oe("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,we,ve){var x=y("../internals/global"),z=x.Array,oe=Math.abs,ie=Math.pow,ee=Math.floor,se=Math.log,E=Math.LN2,te=function(le,ue,ce){var he=z(ce),me=ce*8-ue-1,fe=(1<<me)-1,be=fe>>1,Ce=ue===23?ie(2,-24)-ie(2,-77):0,Te=le<0||le===0&&1/le<0?1:0,Pe=0,ke,de,ge;for(le=oe(le),le!=le||le===1/0?(de=le!=le?1:0,ke=fe):(ke=ee(se(le)/E),ge=ie(2,-ke),le*ge<1&&(ke--,ge*=2),ke+be>=1?le+=Ce/ge:le+=Ce*ie(2,1-be),le*ge>=2&&(ke++,ge/=2),ke+be>=fe?(de=0,ke=fe):ke+be>=1?(de=(le*ge-1)*ie(2,ue),ke=ke+be):(de=le*ie(2,be-1)*ie(2,ue),ke=0));ue>=8;)he[Pe++]=de&255,de/=256,ue-=8;for(ke=ke<<ue|de,me+=ue;me>0;)he[Pe++]=ke&255,ke/=256,me-=8;return he[--Pe]|=Te*128,he},re=function(le,ue){var ce=le.length,he=ce*8-ue-1,me=(1<<he)-1,fe=me>>1,be=he-7,Ce=ce-1,Te=le[Ce--],Pe=Te&127,ke;for(Te>>=7;be>0;)Pe=Pe*256+le[Ce--],be-=8;for(ke=Pe&(1<<-be)-1,Pe>>=-be,be+=ue;be>0;)ke=ke*256+le[Ce--],be-=8;if(Pe===0)Pe=1-fe;else{if(Pe===me)return ke?NaN:Te?-1/0:1/0;ke=ke+ie(2,ue),Pe=Pe-fe}return(Te?-1:1)*ke*ie(2,Pe-ue)};we.exports={pack:te,unpack:re}},{"../internals/global":163}],170:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),ie=y("../internals/classof-raw"),ee=x.Object,se=z("".split);we.exports=oe(function(){return!ee("z").propertyIsEnumerable(0)})?function(E){return ie(E)=="String"?se(E,""):ee(E)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,we,ve){var x=y("../internals/is-callable"),z=y("../internals/is-object"),oe=y("../internals/object-set-prototype-of");we.exports=function(ie,ee,se){var E,te;return oe&&x(E=ee.constructor)&&E!==se&&z(te=E.prototype)&&te!==se.prototype&&oe(ie,te),ie}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/is-callable"),oe=y("../internals/shared-store"),ie=x(Function.toString);z(oe.inspectSource)||(oe.inspectSource=function(ee){return ie(ee)}),we.exports=oe.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,we,ve){var x=y("../internals/native-weak-map"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ie=y("../internals/is-object"),ee=y("../internals/create-non-enumerable-property"),se=y("../internals/has-own-property"),E=y("../internals/shared-store"),te=y("../internals/shared-key"),re=y("../internals/hidden-keys"),le="Object already initialized",ue=z.TypeError,ce=z.WeakMap,he,me,fe,be=function(Se){return fe(Se)?me(Se):he(Se,{})},Ce=function(Se){return function(De){var _e;if(!ie(De)||(_e=me(De)).type!==Se)throw ue("Incompatible receiver, "+Se+" required");return _e}};if(x||E.state){var Te=E.state||(E.state=new ce),Pe=oe(Te.get),ke=oe(Te.has),de=oe(Te.set);he=function(Se,De){if(ke(Te,Se))throw new ue(le);return De.facade=Se,de(Te,Se,De),De},me=function(Se){return Pe(Te,Se)||{}},fe=function(Se){return ke(Te,Se)}}else{var ge=te("state");re[ge]=!0,he=function(Se,De){if(se(Se,ge))throw new ue(le);return De.facade=Se,ee(Se,ge,De),De},me=function(Se){return se(Se,ge)?Se[ge]:{}},fe=function(Se){return se(Se,ge)}}we.exports={set:he,get:me,has:fe,enforce:be,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,ve){var x=y("../internals/well-known-symbol"),z=y("../internals/iterators"),oe=x("iterator"),ie=Array.prototype;we.exports=function(ee){return ee!==void 0&&(z.Array===ee||ie[oe]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,we,ve){var x=y("../internals/classof-raw");we.exports=Array.isArray||function(oe){return x(oe)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,we,ve){we.exports=function(x){return typeof x=="function"}},{}],177:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/fails"),oe=y("../internals/is-callable"),ie=y("../internals/classof"),ee=y("../internals/get-built-in"),se=y("../internals/inspect-source"),E=function(){},te=[],re=ee("Reflect","construct"),le=/^\s*(?:class|function)\b/,ue=x(le.exec),ce=!le.exec(E),he=function(be){if(!oe(be))return!1;try{return re(E,te,be),!0}catch(Ce){return!1}},me=function(be){if(!oe(be))return!1;switch(ie(be)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ce||!!ue(le,se(be))}catch(Ce){return!0}};me.sham=!0,we.exports=!re||z(function(){var fe;return he(he.call)||!he(Object)||!he(function(){fe=!0})||fe})?me:he},{"../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,ve){var x=y("../internals/fails"),z=y("../internals/is-callable"),oe=/#|\.prototype\./,ie=function(re,le){var ue=se[ee(re)];return ue==te?!0:ue==E?!1:z(le)?x(le):!!le},ee=ie.normalize=function(re){return String(re).replace(oe,".").toLowerCase()},se=ie.data={},E=ie.NATIVE="N",te=ie.POLYFILL="P";we.exports=ie},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,we,ve){var x=y("../internals/is-object"),z=Math.floor;we.exports=Number.isInteger||function(ie){return!x(ie)&&isFinite(ie)&&z(ie)===ie}},{"../internals/is-object":180}],180:[function(y,we,ve){var x=y("../internals/is-callable");we.exports=function(z){return typeof z=="object"?z!==null:x(z)}},{"../internals/is-callable":176}],181:[function(y,we,ve){we.exports=!1},{}],182:[function(y,we,ve){var x=y("../internals/is-object"),z=y("../internals/classof-raw"),oe=y("../internals/well-known-symbol"),ie=oe("match");we.exports=function(ee){var se;return x(ee)&&((se=ee[ie])!==void 0?!!se:z(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/get-built-in"),oe=y("../internals/is-callable"),ie=y("../internals/object-is-prototype-of"),ee=y("../internals/use-symbol-as-uid"),se=x.Object;we.exports=ee?function(E){return typeof E=="symbol"}:function(E){var te=z("Symbol");return oe(te)&&ie(te.prototype,se(E))}},{"../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,ve){var x=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/function-call"),ie=y("../internals/an-object"),ee=y("../internals/try-to-string"),se=y("../internals/is-array-iterator-method"),E=y("../internals/length-of-array-like"),te=y("../internals/object-is-prototype-of"),re=y("../internals/get-iterator"),le=y("../internals/get-iterator-method"),ue=y("../internals/iterator-close"),ce=x.TypeError,he=function(fe,be){this.stopped=fe,this.result=be},me=he.prototype;we.exports=function(fe,be,Ce){var Te=Ce&&Ce.that,Pe=!!(Ce&&Ce.AS_ENTRIES),ke=!!(Ce&&Ce.IS_ITERATOR),de=!!(Ce&&Ce.INTERRUPTED),ge=z(be,Te),Se,De,_e,Ee,Oe,He,Xe,et=function(Le){return Se&&ue(Se,"normal",Le),new he(!0,Le)},st=function(Le){return Pe?(ie(Le),de?ge(Le[0],Le[1],et):ge(Le[0],Le[1])):de?ge(Le,et):ge(Le)};if(ke)Se=fe;else{if(De=le(fe),!De)throw ce(ee(fe)+" is not iterable");if(se(De)){for(_e=0,Ee=E(fe);Ee>_e;_e++)if(Oe=st(fe[_e]),Oe&&te(me,Oe))return Oe;return new he(!1)}Se=re(fe,De)}for(He=Se.next;!(Xe=oe(He,Se)).done;){try{Oe=st(Xe.value)}catch(Le){ue(Se,"throw",Le)}if(typeof Oe=="object"&&Oe&&te(me,Oe))return Oe}return new he(!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,ve){var x=y("../internals/function-call"),z=y("../internals/an-object"),oe=y("../internals/get-method");we.exports=function(ie,ee,se){var E,te;z(ie);try{if(E=oe(ie,"return"),!E){if(ee==="throw")throw se;return se}E=x(E,ie)}catch(re){te=!0,E=re}if(ee==="throw")throw se;if(te)throw E;return z(E),se}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,we,ve){"use strict";var x=y("../internals/fails"),z=y("../internals/is-callable"),oe=y("../internals/object-create"),ie=y("../internals/object-get-prototype-of"),ee=y("../internals/redefine"),se=y("../internals/well-known-symbol"),E=y("../internals/is-pure"),te=se("iterator"),re=!1,le,ue,ce;[].keys&&(ce=[].keys(),"next"in ce?(ue=ie(ie(ce)),ue!==Object.prototype&&(le=ue)):re=!0);var he=le==null||x(function(){var me={};return le[te].call(me)!==me});he?le={}:E&&(le=oe(le)),z(le[te])||ee(le,te,function(){return this}),we.exports={IteratorPrototype:le,BUGGY_SAFARI_ITERATORS:re}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(y,we,ve){arguments[4][165][0].apply(ve,arguments)},{dup:165}],188:[function(y,we,ve){var x=y("../internals/to-length");we.exports=function(z){return x(z.length)}},{"../internals/to-length":249}],189:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/function-bind-context"),oe=y("../internals/object-get-own-property-descriptor").f,ie=y("../internals/task").set,ee=y("../internals/engine-is-ios"),se=y("../internals/engine-is-ios-pebble"),E=y("../internals/engine-is-webos-webkit"),te=y("../internals/engine-is-node"),re=x.MutationObserver||x.WebKitMutationObserver,le=x.document,ue=x.process,ce=x.Promise,he=oe(x,"queueMicrotask"),me=he&&he.value,fe,be,Ce,Te,Pe,ke,de,ge;me||(fe=function(){var Se,De;for(te&&(Se=ue.domain)&&Se.exit();be;){De=be.fn,be=be.next;try{De()}catch(_e){throw be?Te():Ce=void 0,_e}}Ce=void 0,Se&&Se.enter()},!ee&&!te&&!E&&re&&le?(Pe=!0,ke=le.createTextNode(""),new re(fe).observe(ke,{characterData:!0}),Te=function(){ke.data=Pe=!Pe}):!se&&ce&&ce.resolve?(de=ce.resolve(void 0),de.constructor=ce,ge=z(de.then,de),Te=function(){ge(fe)}):te?Te=function(){ue.nextTick(fe)}:(ie=z(ie,x),Te=function(){ie(fe)})),we.exports=me||function(Se){var De={fn:Se,next:void 0};Ce&&(Ce.next=De),be||(be=De,Te()),Ce=De}},{"../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,ve){var x=y("../internals/native-symbol");we.exports=x&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,we,ve){var x=y("../internals/engine-v8-version"),z=y("../internals/fails");we.exports=!!Object.getOwnPropertySymbols&&!z(function(){var oe=Symbol();return!String(oe)||!(Object(oe)instanceof Symbol)||!Symbol.sham&&x&&x<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/inspect-source"),ie=x.WeakMap;we.exports=z(ie)&&/native code/.test(oe(ie))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,we,ve){"use strict";var x=y("../internals/a-callable"),z=function(oe){var ie,ee;this.promise=new oe(function(se,E){if(ie!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");ie=se,ee=E}),this.resolve=x(ie),this.reject=x(ee)};we.exports.f=function(oe){return new z(oe)}},{"../internals/a-callable":95}],194:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-regexp"),oe=x.TypeError;we.exports=function(ie){if(z(ie))throw oe("The method doesn't accept regular expressions");return ie}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,we,ve){"use strict";var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),oe=y("../internals/function-call"),ie=y("../internals/fails"),ee=y("../internals/object-keys"),se=y("../internals/object-get-own-property-symbols"),E=y("../internals/object-property-is-enumerable"),te=y("../internals/to-object"),re=y("../internals/indexed-object"),le=Object.assign,ue=Object.defineProperty,ce=z([].concat);we.exports=!le||ie(function(){if(x&&le({b:1},le(ue({},"a",{enumerable:!0,get:function(){ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var he={},me={},fe=Symbol(),be="abcdefghijklmnopqrst";return he[fe]=7,be.split("").forEach(function(Ce){me[Ce]=Ce}),le({},he)[fe]!=7||ee(le({},me)).join("")!=be})?function(me,fe){for(var be=te(me),Ce=arguments.length,Te=1,Pe=se.f,ke=E.f;Ce>Te;)for(var de=re(arguments[Te++]),ge=Pe?ce(ee(de),Pe(de)):ee(de),Se=ge.length,De=0,_e;Se>De;)_e=ge[De++],(!x||oe(ke,de,_e))&&(be[_e]=de[_e]);return be}:le},{"../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,ve){var x=y("../internals/an-object"),z=y("../internals/object-define-properties"),oe=y("../internals/enum-bug-keys"),ie=y("../internals/hidden-keys"),ee=y("../internals/html"),se=y("../internals/document-create-element"),E=y("../internals/shared-key"),te=">",re="<",le="prototype",ue="script",ce=E("IE_PROTO"),he=function(){},me=function(Pe){return re+ue+te+Pe+re+"/"+ue+te},fe=function(Pe){Pe.write(me("")),Pe.close();var ke=Pe.parentWindow.Object;return Pe=null,ke},be=function(){var Pe=se("iframe"),ke="java"+ue+":",de;return Pe.style.display="none",ee.appendChild(Pe),Pe.src=String(ke),de=Pe.contentWindow.document,de.open(),de.write(me("document.F=Object")),de.close(),de.F},Ce,Te=function(){try{Ce=new ActiveXObject("htmlfile")}catch(ke){}Te=typeof document!="undefined"?document.domain&&Ce?fe(Ce):be():fe(Ce);for(var Pe=oe.length;Pe--;)delete Te[le][oe[Pe]];return Te()};ie[ce]=!0,we.exports=Object.create||function(ke,de){var ge;return ke!==null?(he[le]=x(ke),ge=new he,he[le]=null,ge[ce]=ke):ge=Te(),de===void 0?ge:z.f(ge,de)}},{"../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,ve){var x=y("../internals/descriptors"),z=y("../internals/v8-prototype-define-bug"),oe=y("../internals/object-define-property"),ie=y("../internals/an-object"),ee=y("../internals/to-indexed-object"),se=y("../internals/object-keys");ve.f=x&&!z?Object.defineProperties:function(te,re){ie(te);for(var le=ee(re),ue=se(re),ce=ue.length,he=0,me;ce>he;)oe.f(te,me=ue[he++],le[me]);return te}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/object-define-property":198,"../internals/object-keys":206,"../internals/to-indexed-object":247,"../internals/v8-prototype-define-bug":265}],198:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/descriptors"),oe=y("../internals/ie8-dom-define"),ie=y("../internals/v8-prototype-define-bug"),ee=y("../internals/an-object"),se=y("../internals/to-property-key"),E=x.TypeError,te=Object.defineProperty,re=Object.getOwnPropertyDescriptor,le="enumerable",ue="configurable",ce="writable";ve.f=z?ie?function(me,fe,be){if(ee(me),fe=se(fe),ee(be),typeof me=="function"&&fe==="prototype"&&"value"in be&&ce in be&&!be[ce]){var Ce=re(me,fe);Ce&&Ce[ce]&&(me[fe]=be.value,be={configurable:ue in be?be[ue]:Ce[ue],enumerable:le in be?be[le]:Ce[le],writable:!1})}return te(me,fe,be)}:te:function(me,fe,be){if(ee(me),fe=se(fe),ee(be),oe)try{return te(me,fe,be)}catch(Ce){}if("get"in be||"set"in be)throw E("Accessors not supported");return"value"in be&&(me[fe]=be.value),me}},{"../internals/an-object":101,"../internals/descriptors":134,"../internals/global":163,"../internals/ie8-dom-define":168,"../internals/to-property-key":254,"../internals/v8-prototype-define-bug":265}],199:[function(y,we,ve){var x=y("../internals/descriptors"),z=y("../internals/function-call"),oe=y("../internals/object-property-is-enumerable"),ie=y("../internals/create-property-descriptor"),ee=y("../internals/to-indexed-object"),se=y("../internals/to-property-key"),E=y("../internals/has-own-property"),te=y("../internals/ie8-dom-define"),re=Object.getOwnPropertyDescriptor;ve.f=x?re:function(ue,ce){if(ue=ee(ue),ce=se(ce),te)try{return re(ue,ce)}catch(he){}if(E(ue,ce))return ie(!z(oe.f,ue,ce),ue[ce])}},{"../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,ve){var x=y("../internals/classof-raw"),z=y("../internals/to-indexed-object"),oe=y("../internals/object-get-own-property-names").f,ie=y("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],se=function(E){try{return oe(E)}catch(te){return ie(ee)}};we.exports.f=function(te){return ee&&x(te)=="Window"?se(te):oe(z(te))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(y,we,ve){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys"),oe=z.concat("length","prototype");ve.f=Object.getOwnPropertyNames||function(ee){return x(ee,oe)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,we,ve){ve.f=Object.getOwnPropertySymbols},{}],203:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/has-own-property"),oe=y("../internals/is-callable"),ie=y("../internals/to-object"),ee=y("../internals/shared-key"),se=y("../internals/correct-prototype-getter"),E=ee("IE_PROTO"),te=x.Object,re=te.prototype;we.exports=se?te.getPrototypeOf:function(le){var ue=ie(le);if(z(ue,E))return ue[E];var ce=ue.constructor;return oe(ce)&&ue instanceof ce?ce.prototype:ue instanceof te?re:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(y,we,ve){var x=y("../internals/function-uncurry-this");we.exports=x({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/has-own-property"),oe=y("../internals/to-indexed-object"),ie=y("../internals/array-includes").indexOf,ee=y("../internals/hidden-keys"),se=x([].push);we.exports=function(E,te){var re=oe(E),le=0,ue=[],ce;for(ce in re)!z(ee,ce)&&z(re,ce)&&se(ue,ce);for(;te.length>le;)z(re,ce=te[le++])&&(~ie(ue,ce)||se(ue,ce));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,ve){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys");we.exports=Object.keys||function(ie){return x(ie,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,we,ve){"use strict";var x={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,oe=z&&!x.call({1:2},1);ve.f=oe?function(ee){var se=z(this,ee);return!!se&&se.enumerable}:x},{}],208:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/an-object"),oe=y("../internals/a-possible-prototype");we.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var ie=!1,ee={},se;try{se=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),se(ee,[]),ie=ee instanceof Array}catch(E){}return function(te,re){return z(te),oe(re),ie?se(te,re):te.__proto__=re,te}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,we,ve){var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),oe=y("../internals/object-keys"),ie=y("../internals/to-indexed-object"),ee=y("../internals/object-property-is-enumerable").f,se=z(ee),E=z([].push),te=function(re){return function(le){for(var ue=ie(le),ce=oe(ue),he=ce.length,me=0,fe=[],be;he>me;)be=ce[me++],(!x||se(ue,be))&&E(fe,re?[be,ue[be]]:ue[be]);return fe}};we.exports={entries:te(!0),values:te(!1)}},{"../internals/descriptors":134,"../internals/function-uncurry-this":157,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247}],210:[function(y,we,ve){"use strict";var x=y("../internals/to-string-tag-support"),z=y("../internals/classof");we.exports=x?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/is-callable"),ie=y("../internals/is-object"),ee=x.TypeError;we.exports=function(se,E){var te,re;if(E==="string"&&oe(te=se.toString)&&!ie(re=z(te,se))||oe(te=se.valueOf)&&!ie(re=z(te,se))||E!=="string"&&oe(te=se.toString)&&!ie(re=z(te,se)))return re;throw ee("Can't convert object to primitive value")}},{"../internals/function-call":155,"../internals/global":163,"../internals/is-callable":176,"../internals/is-object":180}],212:[function(y,we,ve){var x=y("../internals/get-built-in"),z=y("../internals/function-uncurry-this"),oe=y("../internals/object-get-own-property-names"),ie=y("../internals/object-get-own-property-symbols"),ee=y("../internals/an-object"),se=z([].concat);we.exports=x("Reflect","ownKeys")||function(te){var re=oe.f(ee(te)),le=ie.f;return le?se(re,le(te)):re}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(y,we,ve){var x=y("../internals/global");we.exports=x},{"../internals/global":163}],214:[function(y,we,ve){we.exports=function(x){try{return{error:!1,value:x()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/promise-native-constructor"),oe=y("../internals/is-callable"),ie=y("../internals/is-forced"),ee=y("../internals/inspect-source"),se=y("../internals/well-known-symbol"),E=y("../internals/engine-is-browser"),te=y("../internals/is-pure"),re=y("../internals/engine-v8-version"),le=z&&z.prototype,ue=se("species"),ce=!1,he=oe(x.PromiseRejectionEvent),me=ie("Promise",function(){var fe=ee(z),be=fe!==String(z);if(!be&&re===66||te&&!(le.catch&&le.finally))return!0;if(re>=51&&/native code/.test(fe))return!1;var Ce=new z(function(ke){ke(1)}),Te=function(ke){ke(function(){},function(){})},Pe=Ce.constructor={};return Pe[ue]=Te,ce=Ce.then(function(){})instanceof Te,ce?!be&&E&&!he:!0});we.exports={CONSTRUCTOR:me,REJECTION_EVENT:he,SUBCLASSING:ce}},{"../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,ve){var x=y("../internals/global");we.exports=x.Promise},{"../internals/global":163}],217:[function(y,we,ve){var x=y("../internals/an-object"),z=y("../internals/is-object"),oe=y("../internals/new-promise-capability");we.exports=function(ie,ee){if(x(ie),z(ee)&&ee.constructor===ie)return ee;var se=oe.f(ie),E=se.resolve;return E(ee),se.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,we,ve){var x=y("../internals/promise-native-constructor"),z=y("../internals/check-correctness-of-iteration"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR;we.exports=oe||!z(function(ie){x.all(ie).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(y,we,ve){var x=y("../internals/object-define-property").f;we.exports=function(z,oe,ie){ie in z||x(z,ie,{configurable:!0,get:function(){return oe[ie]},set:function(ee){oe[ie]=ee}})}},{"../internals/object-define-property":198}],220:[function(y,we,ve){var x=function(){this.head=null,this.tail=null};x.prototype={add:function(z){var oe={item:z,next:null};this.head?this.tail.next=oe:this.head=oe,this.tail=oe},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},we.exports=x},{}],221:[function(y,we,ve){var x=y("../internals/redefine");we.exports=function(z,oe,ie){for(var ee in oe)x(z,ee,oe[ee],ie);return z}},{"../internals/redefine":222}],222:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/is-callable"),oe=y("../internals/has-own-property"),ie=y("../internals/create-non-enumerable-property"),ee=y("../internals/set-global"),se=y("../internals/inspect-source"),E=y("../internals/internal-state"),te=y("../internals/function-name").CONFIGURABLE,re=E.get,le=E.enforce,ue=String(String).split("String");(we.exports=function(ce,he,me,fe){var be=fe?!!fe.unsafe:!1,Ce=fe?!!fe.enumerable:!1,Te=fe?!!fe.noTargetGet:!1,Pe=fe&&fe.name!==void 0?fe.name:he,ke;if(z(me)&&(String(Pe).slice(0,7)==="Symbol("&&(Pe="["+String(Pe).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!oe(me,"name")||te&&me.name!==Pe)&&ie(me,"name",Pe),ke=le(me),ke.source||(ke.source=ue.join(typeof Pe=="string"?Pe:""))),ce===x){Ce?ce[he]=me:ee(he,me);return}else be?!Te&&ce[he]&&(Ce=!0):delete ce[he];Ce?ce[he]=me:ie(ce,he,me)})(Function.prototype,"toString",function(){return z(this)&&re(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,ve){var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/an-object"),ie=y("../internals/is-callable"),ee=y("../internals/classof-raw"),se=y("../internals/regexp-exec"),E=x.TypeError;we.exports=function(te,re){var le=te.exec;if(ie(le)){var ue=z(le,te,re);return ue!==null&&oe(ue),ue}if(ee(te)==="RegExp")return z(se,te,re);throw E("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,ve){"use strict";var x=y("../internals/function-call"),z=y("../internals/function-uncurry-this"),oe=y("../internals/to-string"),ie=y("../internals/regexp-flags"),ee=y("../internals/regexp-sticky-helpers"),se=y("../internals/shared"),E=y("../internals/object-create"),te=y("../internals/internal-state").get,re=y("../internals/regexp-unsupported-dot-all"),le=y("../internals/regexp-unsupported-ncg"),ue=se("native-string-replace",String.prototype.replace),ce=RegExp.prototype.exec,he=ce,me=z("".charAt),fe=z("".indexOf),be=z("".replace),Ce=z("".slice),Te=function(){var ge=/a/,Se=/b*/g;return x(ce,ge,"a"),x(ce,Se,"a"),ge.lastIndex!==0||Se.lastIndex!==0}(),Pe=ee.BROKEN_CARET,ke=/()??/.exec("")[1]!==void 0,de=Te||ke||Pe||re||le;de&&(he=function(Se){var De=this,_e=te(De),Ee=oe(Se),Oe=_e.raw,He,Xe,et,st,Le,Ue,rt;if(Oe)return Oe.lastIndex=De.lastIndex,He=x(he,Oe,Ee),De.lastIndex=Oe.lastIndex,He;var ot=_e.groups,it=Pe&&De.sticky,Ye=x(ie,De),$e=De.source,Ke=0,ft=Ee;if(it&&(Ye=be(Ye,"y",""),fe(Ye,"g")===-1&&(Ye+="g"),ft=Ce(Ee,De.lastIndex),De.lastIndex>0&&(!De.multiline||De.multiline&&me(Ee,De.lastIndex-1)!==`
`)&&($e="(?: "+$e+")",ft=" "+ft,Ke++),Xe=new RegExp("^(?:"+$e+")",Ye)),ke&&(Xe=new RegExp("^"+$e+"$(?!\\s)",Ye)),Te&&(et=De.lastIndex),st=x(ce,it?Xe:De,ft),it?st?(st.input=Ce(st.input,Ke),st[0]=Ce(st[0],Ke),st.index=De.lastIndex,De.lastIndex+=st[0].length):De.lastIndex=0:Te&&st&&(De.lastIndex=De.global?st.index+st[0].length:et),ke&&st&&st.length>1&&x(ue,st[0],Xe,function(){for(Le=1;Le<arguments.length-2;Le++)arguments[Le]===void 0&&(st[Le]=void 0)}),st&&ot)for(st.groups=Ue=E(null),Le=0;Le<ot.length;Le++)rt=ot[Le],Ue[rt[0]]=st[rt[1]];return st}),we.exports=he},{"../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,ve){"use strict";var x=y("../internals/an-object");we.exports=function(){var z=x(this),oe="";return z.hasIndices&&(oe+="d"),z.global&&(oe+="g"),z.ignoreCase&&(oe+="i"),z.multiline&&(oe+="m"),z.dotAll&&(oe+="s"),z.unicode&&(oe+="u"),z.sticky&&(oe+="y"),oe}},{"../internals/an-object":101}],226:[function(y,we,ve){var x=y("../internals/function-call"),z=y("../internals/has-own-property"),oe=y("../internals/object-is-prototype-of"),ie=y("../internals/regexp-flags"),ee=RegExp.prototype;we.exports=function(se){var E=se.flags;return E===void 0&&!("flags"in ee)&&!z(se,"flags")&&oe(ee,se)?x(ie,se):E}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,we,ve){var x=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp,ie=x(function(){var E=oe("a","y");return E.lastIndex=2,E.exec("abcd")!=null}),ee=ie||x(function(){return!oe("a","y").sticky}),se=ie||x(function(){var E=oe("^r","gy");return E.lastIndex=2,E.exec("str")!=null});we.exports={BROKEN_CARET:se,MISSED_STICKY:ee,UNSUPPORTED_Y:ie}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,we,ve){var x=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp;we.exports=x(function(){var ie=oe(".","s");return!(ie.dotAll&&ie.exec(`
`)&&ie.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,we,ve){var x=y("../internals/fails"),z=y("../internals/global"),oe=z.RegExp;we.exports=x(function(){var ie=oe("(?<a>b)","g");return ie.exec("b").groups.a!=="b"||"b".replace(ie,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(y,we,ve){var x=y("../internals/global"),z=x.TypeError;we.exports=function(oe){if(oe==null)throw z("Can't call method on "+oe);return oe}},{"../internals/global":163}],231:[function(y,we,ve){we.exports=Object.is||function(z,oe){return z===oe?z!==0||1/z===1/oe:z!=z&&oe!=oe}},{}],232:[function(y,we,ve){var x=y("../internals/global"),z=Object.defineProperty;we.exports=function(oe,ie){try{z(x,oe,{value:ie,configurable:!0,writable:!0})}catch(ee){x[oe]=ie}return ie}},{"../internals/global":163}],233:[function(y,we,ve){"use strict";var x=y("../internals/get-built-in"),z=y("../internals/object-define-property"),oe=y("../internals/well-known-symbol"),ie=y("../internals/descriptors"),ee=oe("species");we.exports=function(se){var E=x(se),te=z.f;ie&&E&&!E[ee]&&te(E,ee,{configurable:!0,get:function(){return this}})}},{"../internals/descriptors":134,"../internals/get-built-in":158,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],234:[function(y,we,ve){var x=y("../internals/object-define-property").f,z=y("../internals/has-own-property"),oe=y("../internals/well-known-symbol"),ie=oe("toStringTag");we.exports=function(ee,se,E){ee&&!E&&(ee=ee.prototype),ee&&!z(ee,ie)&&x(ee,ie,{configurable:!0,value:se})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,we,ve){var x=y("../internals/shared"),z=y("../internals/uid"),oe=x("keys");we.exports=function(ie){return oe[ie]||(oe[ie]=z(ie))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/set-global"),oe="__core-js_shared__",ie=x[oe]||z(oe,{});we.exports=ie},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,we,ve){var x=y("../internals/is-pure"),z=y("../internals/shared-store");(we.exports=function(oe,ie){return z[oe]||(z[oe]=ie!==void 0?ie:{})})("versions",[]).push({version:"3.22.1",mode:x?"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,ve){var x=y("../internals/an-object"),z=y("../internals/a-constructor"),oe=y("../internals/well-known-symbol"),ie=oe("species");we.exports=function(ee,se){var E=x(ee).constructor,te;return E===void 0||(te=x(E)[ie])==null?se:z(te)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-integer-or-infinity"),oe=y("../internals/to-string"),ie=y("../internals/require-object-coercible"),ee=x("".charAt),se=x("".charCodeAt),E=x("".slice),te=function(re){return function(le,ue){var ce=oe(ie(le)),he=z(ue),me=ce.length,fe,be;return he<0||he>=me?re?"":void 0:(fe=se(ce,he),fe<55296||fe>56319||he+1===me||(be=se(ce,he+1))<56320||be>57343?re?ee(ce,he):fe:re?E(ce,he,he+2):(fe-55296<<10)+(be-56320)+65536)}};we.exports={codeAt:te(!1),charAt:te(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(y,we,ve){var x=y("../internals/function-name").PROPER,z=y("../internals/fails"),oe=y("../internals/whitespaces"),ie="\u200B\x85\u180E";we.exports=function(ee){return z(function(){return!!oe[ee]()||ie[ee]()!==ie||x&&oe[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=y("../internals/require-object-coercible"),oe=y("../internals/to-string"),ie=y("../internals/whitespaces"),ee=x("".replace),se="["+ie+"]",E=RegExp("^"+se+se+"*"),te=RegExp(se+se+"*$"),re=function(le){return function(ue){var ce=oe(z(ue));return le&1&&(ce=ee(ce,E,"")),le&2&&(ce=ee(ce,te,"")),ce}};we.exports={start:re(1),end:re(2),trim:re(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(y,we,ve){var x=y("../internals/function-call"),z=y("../internals/get-built-in"),oe=y("../internals/well-known-symbol"),ie=y("../internals/redefine");we.exports=function(){var ee=z("Symbol"),se=ee&&ee.prototype,E=se&&se.valueOf,te=oe("toPrimitive");se&&!se[te]&&ie(se,te,function(re){return x(E,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/function-apply"),oe=y("../internals/function-bind-context"),ie=y("../internals/is-callable"),ee=y("../internals/has-own-property"),se=y("../internals/fails"),E=y("../internals/html"),te=y("../internals/array-slice"),re=y("../internals/document-create-element"),le=y("../internals/validate-arguments-length"),ue=y("../internals/engine-is-ios"),ce=y("../internals/engine-is-node"),he=x.setImmediate,me=x.clearImmediate,fe=x.process,be=x.Dispatch,Ce=x.Function,Te=x.MessageChannel,Pe=x.String,ke=0,de={},ge="onreadystatechange",Se,De,_e,Ee;try{Se=x.location}catch(st){}var Oe=function(st){if(ee(de,st)){var Le=de[st];delete de[st],Le()}},He=function(st){return function(){Oe(st)}},Xe=function(st){Oe(st.data)},et=function(st){x.postMessage(Pe(st),Se.protocol+"//"+Se.host)};(!he||!me)&&(he=function(Le){le(arguments.length,1);var Ue=ie(Le)?Le:Ce(Le),rt=te(arguments,1);return de[++ke]=function(){z(Ue,void 0,rt)},De(ke),ke},me=function(Le){delete de[Le]},ce?De=function(st){fe.nextTick(He(st))}:be&&be.now?De=function(st){be.now(He(st))}:Te&&!ue?(_e=new Te,Ee=_e.port2,_e.port1.onmessage=Xe,De=oe(Ee.postMessage,Ee)):x.addEventListener&&ie(x.postMessage)&&!x.importScripts&&Se&&Se.protocol!=="file:"&&!se(et)?(De=et,x.addEventListener("message",Xe,!1)):ge in re("script")?De=function(st){E.appendChild(re("script"))[ge]=function(){E.removeChild(this),Oe(st)}}:De=function(st){setTimeout(He(st),0)}),we.exports={set:he,clear:me}},{"../internals/array-slice":117,"../internals/document-create-element":135,"../internals/engine-is-ios":142,"../internals/engine-is-node":143,"../internals/fails":150,"../internals/function-apply":152,"../internals/function-bind-context":153,"../internals/global":163,"../internals/has-own-property":164,"../internals/html":167,"../internals/is-callable":176,"../internals/validate-arguments-length":266}],244:[function(y,we,ve){var x=y("../internals/function-uncurry-this");we.exports=x(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,we,ve){var x=y("../internals/to-integer-or-infinity"),z=Math.max,oe=Math.min;we.exports=function(ie,ee){var se=x(ie);return se<0?z(se+ee,0):oe(se,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),oe=y("../internals/to-length"),ie=x.RangeError;we.exports=function(ee){if(ee===void 0)return 0;var se=z(ee),E=oe(se);if(se!==E)throw ie("Wrong length or index");return E}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(y,we,ve){var x=y("../internals/indexed-object"),z=y("../internals/require-object-coercible");we.exports=function(oe){return x(z(oe))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,we,ve){var x=Math.ceil,z=Math.floor;we.exports=function(oe){var ie=+oe;return ie!==ie||ie===0?0:(ie>0?z:x)(ie)}},{}],249:[function(y,we,ve){var x=y("../internals/to-integer-or-infinity"),z=Math.min;we.exports=function(oe){return oe>0?z(x(oe),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/require-object-coercible"),oe=x.Object;we.exports=function(ie){return oe(z(ie))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/to-positive-integer"),oe=x.RangeError;we.exports=function(ie,ee){var se=z(ie);if(se%ee)throw oe("Wrong offset");return se}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),oe=x.RangeError;we.exports=function(ie){var ee=z(ie);if(ee<0)throw oe("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/is-object"),ie=y("../internals/is-symbol"),ee=y("../internals/get-method"),se=y("../internals/ordinary-to-primitive"),E=y("../internals/well-known-symbol"),te=x.TypeError,re=E("toPrimitive");we.exports=function(le,ue){if(!oe(le)||ie(le))return le;var ce=ee(le,re),he;if(ce){if(ue===void 0&&(ue="default"),he=z(ce,le,ue),!oe(he)||ie(he))return he;throw te("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),se(le,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,ve){var x=y("../internals/to-primitive"),z=y("../internals/is-symbol");we.exports=function(oe){var ie=x(oe,"string");return z(ie)?ie:ie+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,we,ve){var x=y("../internals/well-known-symbol"),z=x("toStringTag"),oe={};oe[z]="z",we.exports=String(oe)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/classof"),oe=x.String;we.exports=function(ie){if(z(ie)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return oe(ie)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,we,ve){var x=y("../internals/global"),z=x.String;we.exports=function(oe){try{return z(oe)}catch(ie){return"Object"}}},{"../internals/global":163}],258:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/function-call"),ie=y("../internals/descriptors"),ee=y("../internals/typed-array-constructors-require-wrappers"),se=y("../internals/array-buffer-view-core"),E=y("../internals/array-buffer"),te=y("../internals/an-instance"),re=y("../internals/create-property-descriptor"),le=y("../internals/create-non-enumerable-property"),ue=y("../internals/is-integral-number"),ce=y("../internals/to-length"),he=y("../internals/to-index"),me=y("../internals/to-offset"),fe=y("../internals/to-property-key"),be=y("../internals/has-own-property"),Ce=y("../internals/classof"),Te=y("../internals/is-object"),Pe=y("../internals/is-symbol"),ke=y("../internals/object-create"),de=y("../internals/object-is-prototype-of"),ge=y("../internals/object-set-prototype-of"),Se=y("../internals/object-get-own-property-names").f,De=y("../internals/typed-array-from"),_e=y("../internals/array-iteration").forEach,Ee=y("../internals/set-species"),Oe=y("../internals/object-define-property"),He=y("../internals/object-get-own-property-descriptor"),Xe=y("../internals/internal-state"),et=y("../internals/inherit-if-required"),st=Xe.get,Le=Xe.set,Ue=Oe.f,rt=He.f,ot=Math.round,it=z.RangeError,Ye=E.ArrayBuffer,$e=Ye.prototype,Ke=E.DataView,ft=se.NATIVE_ARRAY_BUFFER_VIEWS,tt=se.TYPED_ARRAY_CONSTRUCTOR,ut=se.TYPED_ARRAY_TAG,lt=se.TypedArray,Ze=se.TypedArrayPrototype,Ne=se.aTypedArrayConstructor,ze=se.isTypedArray,Me="BYTES_PER_ELEMENT",Ge="Wrong length",ct=function(at,Re){Ne(at);for(var xe=0,ye=Re.length,Fe=new at(ye);ye>xe;)Fe[xe]=Re[xe++];return Fe},mt=function(at,Re){Ue(at,Re,{get:function(){return st(this)[Re]}})},nt=function(at){var Re;return de($e,at)||(Re=Ce(at))=="ArrayBuffer"||Re=="SharedArrayBuffer"},Ae=function(at,Re){return ze(at)&&!Pe(Re)&&Re in at&&ue(+Re)&&Re>=0},je=function(Re,xe){return xe=fe(xe),Ae(Re,xe)?re(2,Re[xe]):rt(Re,xe)},We=function(Re,xe,ye){return xe=fe(xe),Ae(Re,xe)&&Te(ye)&&be(ye,"value")&&!be(ye,"get")&&!be(ye,"set")&&!ye.configurable&&(!be(ye,"writable")||ye.writable)&&(!be(ye,"enumerable")||ye.enumerable)?(Re[xe]=ye.value,Re):Ue(Re,xe,ye)};ie?(ft||(He.f=je,Oe.f=We,mt(Ze,"buffer"),mt(Ze,"byteOffset"),mt(Ze,"byteLength"),mt(Ze,"length")),x({target:"Object",stat:!0,forced:!ft},{getOwnPropertyDescriptor:je,defineProperty:We}),we.exports=function(at,Re,xe){var ye=at.match(/\d+$/)[0]/8,Fe=at+(xe?"Clamped":"")+"Array",Qe="get"+at,Ie="set"+at,vt=z[Fe],yt=vt,xt=yt&&yt.prototype,bt={},ht=function(Pt,Vt){var vr=st(Pt);return vr.view[Qe](Vt*ye+vr.byteOffset,!0)},kt=function(Pt,Vt,vr){var Yt=st(Pt);xe&&(vr=(vr=ot(vr))<0?0:vr>255?255:vr&255),Yt.view[Ie](Vt*ye+Yt.byteOffset,vr,!0)},Tt=function(Pt,Vt){Ue(Pt,Vt,{get:function(){return ht(this,Vt)},set:function(vr){return kt(this,Vt,vr)},enumerable:!0})};ft?ee&&(yt=Re(function(Pt,Vt,vr,Yt){return te(Pt,xt),et(function(){return Te(Vt)?nt(Vt)?Yt!==void 0?new vt(Vt,me(vr,ye),Yt):vr!==void 0?new vt(Vt,me(vr,ye)):new vt(Vt):ze(Vt)?ct(yt,Vt):oe(De,yt,Vt):new vt(he(Vt))}(),Pt,yt)}),ge&&ge(yt,lt),_e(Se(vt),function(Pt){Pt in yt||le(yt,Pt,vt[Pt])}),yt.prototype=xt):(yt=Re(function(Pt,Vt,vr,Yt){te(Pt,xt);var Cr=0,jr=0,Pr,Mr,Xr;if(!Te(Vt))Xr=he(Vt),Mr=Xr*ye,Pr=new Ye(Mr);else if(nt(Vt)){Pr=Vt,jr=me(vr,ye);var mn=Vt.byteLength;if(Yt===void 0){if(mn%ye||(Mr=mn-jr,Mr<0))throw it(Ge)}else if(Mr=ce(Yt)*ye,Mr+jr>mn)throw it(Ge);Xr=Mr/ye}else return ze(Vt)?ct(yt,Vt):oe(De,yt,Vt);for(Le(Pt,{buffer:Pr,byteOffset:jr,byteLength:Mr,length:Xr,view:new Ke(Pr)});Cr<Xr;)Tt(Pt,Cr++)}),ge&&ge(yt,lt),xt=yt.prototype=ke(Ze)),xt.constructor!==yt&&le(xt,"constructor",yt),le(xt,tt,yt),ut&&le(xt,ut,Fe),bt[Fe]=yt,x({global:!0,forced:yt!=vt,sham:!ft},bt),Me in yt||le(yt,Me,ye),Me in xt||le(xt,Me,ye),Ee(Fe)}):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,ve){var x=y("../internals/global"),z=y("../internals/fails"),oe=y("../internals/check-correctness-of-iteration"),ie=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=x.ArrayBuffer,se=x.Int8Array;we.exports=!ie||!z(function(){se(1)})||!z(function(){new se(-1)})||!oe(function(E){new se,new se(null),new se(1.5),new se(E)},!0)||z(function(){return new se(new ee(2),1,void 0).length!==1})},{"../internals/array-buffer-view-core":103,"../internals/check-correctness-of-iteration":122,"../internals/fails":150,"../internals/global":163}],260:[function(y,we,ve){var x=y("../internals/array-from-constructor-and-list"),z=y("../internals/typed-array-species-constructor");we.exports=function(oe,ie){return x(z(oe),ie)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,we,ve){var x=y("../internals/function-bind-context"),z=y("../internals/function-call"),oe=y("../internals/a-constructor"),ie=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),se=y("../internals/get-iterator"),E=y("../internals/get-iterator-method"),te=y("../internals/is-array-iterator-method"),re=y("../internals/array-buffer-view-core").aTypedArrayConstructor;we.exports=function(ue){var ce=oe(this),he=ie(ue),me=arguments.length,fe=me>1?arguments[1]:void 0,be=fe!==void 0,Ce=E(he),Te,Pe,ke,de,ge,Se;if(Ce&&!te(Ce))for(ge=se(he,Ce),Se=ge.next,he=[];!(de=z(Se,ge)).done;)he.push(de.value);for(be&&me>2&&(fe=x(fe,arguments[2])),Pe=ee(he),ke=new(re(ce))(Pe),Te=0;Pe>Te;Te++)ke[Te]=be?fe(he[Te],Te):he[Te];return ke}},{"../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,ve){var x=y("../internals/array-buffer-view-core"),z=y("../internals/species-constructor"),oe=x.TYPED_ARRAY_CONSTRUCTOR,ie=x.aTypedArrayConstructor;we.exports=function(ee){return ie(z(ee,ee[oe]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,we,ve){var x=y("../internals/function-uncurry-this"),z=0,oe=Math.random(),ie=x(1 .toString);we.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+ie(++z+oe,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,we,ve){var x=y("../internals/native-symbol");we.exports=x&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,we,ve){var x=y("../internals/descriptors"),z=y("../internals/fails");we.exports=x&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,we,ve){var x=y("../internals/global"),z=x.TypeError;we.exports=function(oe,ie){if(oe<ie)throw z("Not enough arguments");return oe}},{"../internals/global":163}],267:[function(y,we,ve){var x=y("../internals/well-known-symbol");ve.f=x},{"../internals/well-known-symbol":268}],268:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/shared"),oe=y("../internals/has-own-property"),ie=y("../internals/uid"),ee=y("../internals/native-symbol"),se=y("../internals/use-symbol-as-uid"),E=z("wks"),te=x.Symbol,re=te&&te.for,le=se?te:te&&te.withoutSetter||ie;we.exports=function(ue){if(!oe(E,ue)||!(ee||typeof E[ue]=="string")){var ce="Symbol."+ue;ee&&oe(te,ue)?E[ue]=te[ue]:se&&re?E[ue]=re(ce):E[ue]=le(ce)}return E[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,ve){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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/array-buffer"),ie=y("../internals/set-species"),ee="ArrayBuffer",se=oe[ee],E=z[ee];x({global:!0,forced:E!==se},{ArrayBuffer:se}),ie(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),ie=y("../internals/array-buffer"),ee=y("../internals/an-object"),se=y("../internals/to-absolute-index"),E=y("../internals/to-length"),te=y("../internals/species-constructor"),re=ie.ArrayBuffer,le=ie.DataView,ue=le.prototype,ce=z(re.prototype.slice),he=z(ue.getUint8),me=z(ue.setUint8),fe=oe(function(){return!new re(2).slice(1,void 0).byteLength});x({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:fe},{slice:function(Ce,Te){if(ce&&Te===void 0)return ce(ee(this),Ce);for(var Pe=ee(this).byteLength,ke=se(Ce,Pe),de=se(Te===void 0?Pe:Te,Pe),ge=new(te(this,re))(E(de-ke)),Se=new le(this),De=new le(ge),_e=0;ke<de;)me(De,_e++,he(Se,ke++));return ge}})},{"../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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/fails"),ie=y("../internals/is-array"),ee=y("../internals/is-object"),se=y("../internals/to-object"),E=y("../internals/length-of-array-like"),te=y("../internals/create-property"),re=y("../internals/array-species-create"),le=y("../internals/array-method-has-species-support"),ue=y("../internals/well-known-symbol"),ce=y("../internals/engine-v8-version"),he=ue("isConcatSpreadable"),me=9007199254740991,fe="Maximum allowed index exceeded",be=z.TypeError,Ce=ce>=51||!oe(function(){var de=[];return de[he]=!1,de.concat()[0]!==de}),Te=le("concat"),Pe=function(de){if(!ee(de))return!1;var ge=de[he];return ge!==void 0?!!ge:ie(de)},ke=!Ce||!Te;x({target:"Array",proto:!0,forced:ke},{concat:function(ge){var Se=se(this),De=re(Se,0),_e=0,Ee,Oe,He,Xe,et;for(Ee=-1,He=arguments.length;Ee<He;Ee++)if(et=Ee===-1?Se:arguments[Ee],Pe(et)){if(Xe=E(et),_e+Xe>me)throw be(fe);for(Oe=0;Oe<Xe;Oe++,_e++)Oe in et&&te(De,_e,et[Oe])}else{if(_e>=me)throw be(fe);te(De,_e++,et)}return De.length=_e,De}})},{"../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,ve){var x=y("../internals/export"),z=y("../internals/array-fill"),oe=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{fill:z}),oe("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").filter,oe=y("../internals/array-method-has-species-support"),ie=oe("filter");x({target:"Array",proto:!0,forced:!ie},{filter:function(se){return z(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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").find,oe=y("../internals/add-to-unscopables"),ie="find",ee=!0;ie in[]&&Array(1)[ie](function(){ee=!1}),x({target:"Array",proto:!0,forced:ee},{find:function(E){return z(this,E,arguments.length>1?arguments[1]:void 0)}}),oe(ie)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,we,ve){var x=y("../internals/export"),z=y("../internals/array-from"),oe=y("../internals/check-correctness-of-iteration"),ie=!oe(function(ee){Array.from(ee)});x({target:"Array",stat:!0,forced:ie},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/array-includes").includes,oe=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{includes:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}}),oe("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,we,ve){"use strict";var x=y("../internals/to-indexed-object"),z=y("../internals/add-to-unscopables"),oe=y("../internals/iterators"),ie=y("../internals/internal-state"),ee=y("../internals/object-define-property").f,se=y("../internals/define-iterator"),E=y("../internals/is-pure"),te=y("../internals/descriptors"),re="Array Iterator",le=ie.set,ue=ie.getterFor(re);we.exports=se(Array,"Array",function(he,me){le(this,{type:re,target:x(he),index:0,kind:me})},function(){var he=ue(this),me=he.target,fe=he.kind,be=he.index++;return!me||be>=me.length?(he.target=void 0,{value:void 0,done:!0}):fe=="keys"?{value:be,done:!1}:fe=="values"?{value:me[be],done:!1}:{value:[be,me[be]],done:!1}},"values");var ce=oe.Arguments=oe.Array;if(z("keys"),z("values"),z("entries"),!E&&te&&ce.name!=="values")try{ee(ce,"name",{value:"values"})}catch(he){}},{"../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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/indexed-object"),ie=y("../internals/to-indexed-object"),ee=y("../internals/array-method-is-strict"),se=z([].join),E=oe!=Object,te=ee("join",",");x({target:"Array",proto:!0,forced:E||!te},{join:function(le){return se(ie(this),le===void 0?",":le)}})},{"../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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").map,oe=y("../internals/array-method-has-species-support"),ie=oe("map");x({target:"Array",proto:!0,forced:!ie},{map:function(se){return z(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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/is-array"),ie=y("../internals/is-constructor"),ee=y("../internals/is-object"),se=y("../internals/to-absolute-index"),E=y("../internals/length-of-array-like"),te=y("../internals/to-indexed-object"),re=y("../internals/create-property"),le=y("../internals/well-known-symbol"),ue=y("../internals/array-method-has-species-support"),ce=y("../internals/array-slice"),he=ue("slice"),me=le("species"),fe=z.Array,be=Math.max;x({target:"Array",proto:!0,forced:!he},{slice:function(Te,Pe){var ke=te(this),de=E(ke),ge=se(Te,de),Se=se(Pe===void 0?de:Pe,de),De,_e,Ee;if(oe(ke)&&(De=ke.constructor,ie(De)&&(De===fe||oe(De.prototype))?De=void 0:ee(De)&&(De=De[me],De===null&&(De=void 0)),De===fe||De===void 0))return ce(ke,ge,Se);for(_e=new(De===void 0?fe:De)(be(Se-ge,0)),Ee=0;ge<Se;ge++,Ee++)ge in ke&&re(_e,Ee,ke[ge]);return _e.length=Ee,_e}})},{"../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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/a-callable"),ie=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),se=y("../internals/to-string"),E=y("../internals/fails"),te=y("../internals/array-sort"),re=y("../internals/array-method-is-strict"),le=y("../internals/engine-ff-version"),ue=y("../internals/engine-is-ie-or-edge"),ce=y("../internals/engine-v8-version"),he=y("../internals/engine-webkit-version"),me=[],fe=z(me.sort),be=z(me.push),Ce=E(function(){me.sort(void 0)}),Te=E(function(){me.sort(null)}),Pe=re("sort"),ke=!E(function(){if(ce)return ce<70;if(!(le&&le>3)){if(ue)return!0;if(he)return he<603;var Se="",De,_e,Ee,Oe;for(De=65;De<76;De++){switch(_e=String.fromCharCode(De),De){case 66:case 69:case 70:case 72:Ee=3;break;case 68:case 71:Ee=4;break;default:Ee=2}for(Oe=0;Oe<47;Oe++)me.push({k:_e+Oe,v:Ee})}for(me.sort(function(He,Xe){return Xe.v-He.v}),Oe=0;Oe<me.length;Oe++)_e=me[Oe].k.charAt(0),Se.charAt(Se.length-1)!==_e&&(Se+=_e);return Se!=="DGBEFHACIJK"}}),de=Ce||!Te||!Pe||!ke,ge=function(Se){return function(De,_e){return _e===void 0?-1:De===void 0?1:Se!==void 0?+Se(De,_e)||0:se(De)>se(_e)?1:-1}};x({target:"Array",proto:!0,forced:de},{sort:function(De){De!==void 0&&oe(De);var _e=ie(this);if(ke)return De===void 0?fe(_e):fe(_e,De);var Ee=[],Oe=ee(_e),He,Xe;for(Xe=0;Xe<Oe;Xe++)Xe in _e&&be(Ee,_e[Xe]);for(te(Ee,ge(De)),He=Ee.length,Xe=0;Xe<He;)_e[Xe]=Ee[Xe++];for(;Xe<Oe;)delete _e[Xe++];return _e}})},{"../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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/to-absolute-index"),ie=y("../internals/to-integer-or-infinity"),ee=y("../internals/length-of-array-like"),se=y("../internals/to-object"),E=y("../internals/array-species-create"),te=y("../internals/create-property"),re=y("../internals/array-method-has-species-support"),le=re("splice"),ue=z.TypeError,ce=Math.max,he=Math.min,me=9007199254740991,fe="Maximum allowed length exceeded";x({target:"Array",proto:!0,forced:!le},{splice:function(Ce,Te){var Pe=se(this),ke=ee(Pe),de=oe(Ce,ke),ge=arguments.length,Se,De,_e,Ee,Oe,He;if(ge===0?Se=De=0:ge===1?(Se=0,De=ke-de):(Se=ge-2,De=he(ce(ie(Te),0),ke-de)),ke+Se-De>me)throw ue(fe);for(_e=E(Pe,De),Ee=0;Ee<De;Ee++)Oe=de+Ee,Oe in Pe&&te(_e,Ee,Pe[Oe]);if(_e.length=De,Se<De){for(Ee=de;Ee<ke-De;Ee++)Oe=Ee+De,He=Ee+Se,Oe in Pe?Pe[He]=Pe[Oe]:delete Pe[He];for(Ee=ke;Ee>ke-De+Se;Ee--)delete Pe[Ee-1]}else if(Se>De)for(Ee=ke-De;Ee>de;Ee--)Oe=Ee+De-1,He=Ee+Se-1,Oe in Pe?Pe[He]=Pe[Oe]:delete Pe[He];for(Ee=0;Ee<Se;Ee++)Pe[Ee+de]=arguments[Ee+2];return Pe.length=ke-De+Se,_e}})},{"../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,ve){var x=y("../internals/descriptors"),z=y("../internals/function-name").EXISTS,oe=y("../internals/function-uncurry-this"),ie=y("../internals/object-define-property").f,ee=Function.prototype,se=oe(ee.toString),E=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,te=oe(E.exec),re="name";x&&!z&&ie(ee,re,{configurable:!0,get:function(){try{return te(E,se(this))[1]}catch(le){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(y,we,ve){var x=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/function-apply"),ie=y("../internals/function-call"),ee=y("../internals/function-uncurry-this"),se=y("../internals/fails"),E=y("../internals/is-array"),te=y("../internals/is-callable"),re=y("../internals/is-object"),le=y("../internals/is-symbol"),ue=y("../internals/array-slice"),ce=y("../internals/native-symbol"),he=z("JSON","stringify"),me=ee(/./.exec),fe=ee("".charAt),be=ee("".charCodeAt),Ce=ee("".replace),Te=ee(1 .toString),Pe=/[\uD800-\uDFFF]/g,ke=/^[\uD800-\uDBFF]$/,de=/^[\uDC00-\uDFFF]$/,ge=!ce||se(function(){var Ee=z("Symbol")();return he([Ee])!="[null]"||he({a:Ee})!="{}"||he(Object(Ee))!="{}"}),Se=se(function(){return he("\uDF06\uD834")!=='"\\udf06\\ud834"'||he("\uDEAD")!=='"\\udead"'}),De=function(Ee,Oe){var He=ue(arguments),Xe=Oe;if(!(!re(Oe)&&Ee===void 0||le(Ee)))return E(Oe)||(Oe=function(et,st){if(te(Xe)&&(st=ie(Xe,this,et,st)),!le(st))return st}),He[1]=Oe,oe(he,null,He)},_e=function(Ee,Oe,He){var Xe=fe(He,Oe-1),et=fe(He,Oe+1);return me(ke,Ee)&&!me(de,et)||me(de,Ee)&&!me(ke,Xe)?"\\u"+Te(be(Ee,0),16):Ee};he&&x({target:"JSON",stat:!0,forced:ge||Se},{stringify:function(Oe,He,Xe){var et=ue(arguments),st=oe(ge?De:he,null,et);return Se&&typeof st=="string"?Ce(st,Pe,_e):st}})},{"../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,ve){"use strict";var x=y("../internals/descriptors"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ie=y("../internals/is-forced"),ee=y("../internals/redefine"),se=y("../internals/has-own-property"),E=y("../internals/inherit-if-required"),te=y("../internals/object-is-prototype-of"),re=y("../internals/is-symbol"),le=y("../internals/to-primitive"),ue=y("../internals/fails"),ce=y("../internals/object-get-own-property-names").f,he=y("../internals/object-get-own-property-descriptor").f,me=y("../internals/object-define-property").f,fe=y("../internals/this-number-value"),be=y("../internals/string-trim").trim,Ce="Number",Te=z[Ce],Pe=Te.prototype,ke=z.TypeError,de=oe("".slice),ge=oe("".charCodeAt),Se=function(Xe){var et=le(Xe,"number");return typeof et=="bigint"?et:De(et)},De=function(Xe){var et=le(Xe,"number"),st,Le,Ue,rt,ot,it,Ye,$e;if(re(et))throw ke("Cannot convert a Symbol value to a number");if(typeof et=="string"&&et.length>2){if(et=be(et),st=ge(et,0),st===43||st===45){if(Le=ge(et,2),Le===88||Le===120)return NaN}else if(st===48){switch(ge(et,1)){case 66:case 98:Ue=2,rt=49;break;case 79:case 111:Ue=8,rt=55;break;default:return+et}for(ot=de(et,2),it=ot.length,Ye=0;Ye<it;Ye++)if($e=ge(ot,Ye),$e<48||$e>rt)return NaN;return parseInt(ot,Ue)}}return+et};if(ie(Ce,!Te(" 0o1")||!Te("0b1")||Te("+0x1"))){for(var _e=function(et){var st=arguments.length<1?0:Te(Se(et)),Le=this;return te(Pe,Le)&&ue(function(){fe(Le)})?E(Object(st),Le,_e):st},Ee=x?ce(Te):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Oe=0,He;Ee.length>Oe;Oe++)se(Te,He=Ee[Oe])&&!se(_e,He)&&me(_e,He,he(Te,He));_e.prototype=Pe,Pe.constructor=_e,ee(z,Ce,_e)}},{"../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,ve){var x=y("../internals/export"),z=y("../internals/object-assign");x({target:"Object",stat:!0,forced:Object.assign!==z},{assign:z})},{"../internals/export":149,"../internals/object-assign":195}],288:[function(y,we,ve){var x=y("../internals/export"),z=y("../internals/object-to-array").entries;x({target:"Object",stat:!0},{entries:function(ie){return z(ie)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(y,we,ve){var x=y("../internals/export"),z=y("../internals/native-symbol"),oe=y("../internals/fails"),ie=y("../internals/object-get-own-property-symbols"),ee=y("../internals/to-object"),se=!z||oe(function(){ie.f(1)});x({target:"Object",stat:!0,forced:se},{getOwnPropertySymbols:function(te){var re=ie.f;return re?re(ee(te)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(y,we,ve){var x=y("../internals/export"),z=y("../internals/to-object"),oe=y("../internals/object-keys"),ie=y("../internals/fails"),ee=ie(function(){oe(1)});x({target:"Object",stat:!0,forced:ee},{keys:function(E){return oe(z(E))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,we,ve){var x=y("../internals/to-string-tag-support"),z=y("../internals/redefine"),oe=y("../internals/object-to-string");x||z(Object.prototype,"toString",oe,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),ie=y("../internals/new-promise-capability"),ee=y("../internals/perform"),se=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{all:function(re){var le=this,ue=ie.f(le),ce=ue.resolve,he=ue.reject,me=ee(function(){var fe=oe(le.resolve),be=[],Ce=0,Te=1;se(re,function(Pe){var ke=Ce++,de=!1;Te++,z(fe,le,Pe).then(function(ge){de||(de=!0,be[ke]=ge,--Te||ce(be))},he)}),--Te||ce(be)});return me.error&&he(me.value),ue.promise}})},{"../internals/a-callable":95,"../internals/export":149,"../internals/function-call":155,"../internals/iterate":184,"../internals/new-promise-capability":193,"../internals/perform":214,"../internals/promise-statics-incorrect-iteration":218}],293:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR,ie=y("../internals/promise-native-constructor"),ee=y("../internals/get-built-in"),se=y("../internals/is-callable"),E=y("../internals/redefine"),te=ie&&ie.prototype;if(x({target:"Promise",proto:!0,forced:oe,real:!0},{catch:function(le){return this.then(void 0,le)}}),!z&&se(ie)){var re=ee("Promise").prototype.catch;te.catch!==re&&E(te,"catch",re,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),oe=y("../internals/engine-is-node"),ie=y("../internals/global"),ee=y("../internals/function-call"),se=y("../internals/redefine"),E=y("../internals/redefine-all"),te=y("../internals/object-set-prototype-of"),re=y("../internals/set-to-string-tag"),le=y("../internals/set-species"),ue=y("../internals/a-callable"),ce=y("../internals/is-callable"),he=y("../internals/is-object"),me=y("../internals/an-instance"),fe=y("../internals/species-constructor"),be=y("../internals/task").set,Ce=y("../internals/microtask"),Te=y("../internals/host-report-errors"),Pe=y("../internals/perform"),ke=y("../internals/queue"),de=y("../internals/internal-state"),ge=y("../internals/promise-native-constructor"),Se=y("../internals/promise-constructor-detection"),De=y("../internals/new-promise-capability"),_e="Promise",Ee=Se.CONSTRUCTOR,Oe=Se.REJECTION_EVENT,He=Se.SUBCLASSING,Xe=de.getterFor(_e),et=de.set,st=ge&&ge.prototype,Le=ge,Ue=st,rt=ie.TypeError,ot=ie.document,it=ie.process,Ye=De.f,$e=Ye,Ke=!!(ot&&ot.createEvent&&ie.dispatchEvent),ft="unhandledrejection",tt="rejectionhandled",ut=0,lt=1,Ze=2,Ne=1,ze=2,Me,Ge,ct,mt,nt=function(Ie){var vt;return he(Ie)&&ce(vt=Ie.then)?vt:!1},Ae=function(Ie,vt){var yt=vt.value,xt=vt.state==lt,bt=xt?Ie.ok:Ie.fail,ht=Ie.resolve,kt=Ie.reject,Tt=Ie.domain,Pt,Vt,vr;try{bt?(xt||(vt.rejection===ze&&xe(vt),vt.rejection=Ne),bt===!0?Pt=yt:(Tt&&Tt.enter(),Pt=bt(yt),Tt&&(Tt.exit(),vr=!0)),Pt===Ie.promise?kt(rt("Promise-chain cycle")):(Vt=nt(Pt))?ee(Vt,Pt,ht,kt):ht(Pt)):kt(yt)}catch(Yt){Tt&&!vr&&Tt.exit(),kt(Yt)}},je=function(Ie,vt){Ie.notified||(Ie.notified=!0,Ce(function(){for(var yt=Ie.reactions,xt;xt=yt.get();)Ae(xt,Ie);Ie.notified=!1,vt&&!Ie.rejection&&at(Ie)}))},We=function(Ie,vt,yt){var xt,bt;Ke?(xt=ot.createEvent("Event"),xt.promise=vt,xt.reason=yt,xt.initEvent(Ie,!1,!0),ie.dispatchEvent(xt)):xt={promise:vt,reason:yt},!Oe&&(bt=ie["on"+Ie])?bt(xt):Ie===ft&&Te("Unhandled promise rejection",yt)},at=function(Ie){ee(be,ie,function(){var vt=Ie.facade,yt=Ie.value,xt=Re(Ie),bt;if(xt&&(bt=Pe(function(){oe?it.emit("unhandledRejection",yt,vt):We(ft,vt,yt)}),Ie.rejection=oe||Re(Ie)?ze:Ne,bt.error))throw bt.value})},Re=function(Ie){return Ie.rejection!==Ne&&!Ie.parent},xe=function(Ie){ee(be,ie,function(){var vt=Ie.facade;oe?it.emit("rejectionHandled",vt):We(tt,vt,Ie.value)})},ye=function(Ie,vt,yt){return function(xt){Ie(vt,xt,yt)}},Fe=function(Ie,vt,yt){Ie.done||(Ie.done=!0,yt&&(Ie=yt),Ie.value=vt,Ie.state=Ze,je(Ie,!0))},Qe=function(Ie,vt,yt){if(!Ie.done){Ie.done=!0,yt&&(Ie=yt);try{if(Ie.facade===vt)throw rt("Promise can't be resolved itself");var xt=nt(vt);xt?Ce(function(){var bt={done:!1};try{ee(xt,vt,ye(Qe,bt,Ie),ye(Fe,bt,Ie))}catch(ht){Fe(bt,ht,Ie)}}):(Ie.value=vt,Ie.state=lt,je(Ie,!1))}catch(bt){Fe({done:!1},bt,Ie)}}};if(Ee&&(Le=function(vt){me(this,Ue),ue(vt),ee(Me,this);var yt=Xe(this);try{vt(ye(Qe,yt),ye(Fe,yt))}catch(xt){Fe(yt,xt)}},Ue=Le.prototype,Me=function(vt){et(this,{type:_e,done:!1,notified:!1,parent:!1,reactions:new ke,rejection:!1,state:ut,value:void 0})},Me.prototype=E(Ue,{then:function(vt,yt){var xt=Xe(this),bt=Ye(fe(this,Le));return xt.parent=!0,bt.ok=ce(vt)?vt:!0,bt.fail=ce(yt)&&yt,bt.domain=oe?it.domain:void 0,xt.state==ut?xt.reactions.add(bt):Ce(function(){Ae(bt,xt)}),bt.promise}}),Ge=function(){var Ie=new Me,vt=Xe(Ie);this.promise=Ie,this.resolve=ye(Qe,vt),this.reject=ye(Fe,vt)},De.f=Ye=function(Ie){return Ie===Le||Ie===ct?new Ge(Ie):$e(Ie)},!z&&ce(ge)&&st!==Object.prototype)){mt=st.then,He||se(st,"then",function(vt,yt){var xt=this;return new Le(function(bt,ht){ee(mt,xt,bt,ht)}).then(vt,yt)},{unsafe:!0});try{delete st.constructor}catch(Ie){}te&&te(st,Ue)}x({global:!0,wrap:!0,forced:Ee},{Promise:Le}),re(Le,_e,!1,!0),le(_e)},{"../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,ve){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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/a-callable"),ie=y("../internals/new-promise-capability"),ee=y("../internals/perform"),se=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{race:function(re){var le=this,ue=ie.f(le),ce=ue.reject,he=ee(function(){var me=oe(le.resolve);se(re,function(fe){z(me,le,fe).then(ue.resolve,ce)})});return he.error&&ce(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}],297:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),oe=y("../internals/new-promise-capability"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR;x({target:"Promise",stat:!0,forced:ie},{reject:function(se){var E=oe.f(this);return z(E.reject,void 0,se),E.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/is-pure"),ie=y("../internals/promise-native-constructor"),ee=y("../internals/promise-constructor-detection").CONSTRUCTOR,se=y("../internals/promise-resolve"),E=z("Promise"),te=oe&&!ee;x({target:"Promise",stat:!0,forced:oe||ee},{resolve:function(le){return se(te&&this===E?ie:this,le)}})},{"../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,ve){var x=y("../internals/descriptors"),z=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ie=y("../internals/is-forced"),ee=y("../internals/inherit-if-required"),se=y("../internals/create-non-enumerable-property"),E=y("../internals/object-get-own-property-names").f,te=y("../internals/object-is-prototype-of"),re=y("../internals/is-regexp"),le=y("../internals/to-string"),ue=y("../internals/regexp-get-flags"),ce=y("../internals/regexp-sticky-helpers"),he=y("../internals/proxy-accessor"),me=y("../internals/redefine"),fe=y("../internals/fails"),be=y("../internals/has-own-property"),Ce=y("../internals/internal-state").enforce,Te=y("../internals/set-species"),Pe=y("../internals/well-known-symbol"),ke=y("../internals/regexp-unsupported-dot-all"),de=y("../internals/regexp-unsupported-ncg"),ge=Pe("match"),Se=z.RegExp,De=Se.prototype,_e=z.SyntaxError,Ee=oe(De.exec),Oe=oe("".charAt),He=oe("".replace),Xe=oe("".indexOf),et=oe("".slice),st=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Le=/a/g,Ue=/a/g,rt=new Se(Le)!==Le,ot=ce.MISSED_STICKY,it=ce.UNSUPPORTED_Y,Ye=x&&(!rt||ot||ke||de||fe(function(){return Ue[ge]=!1,Se(Le)!=Le||Se(Ue)==Ue||Se(Le,"i")!="/a/i"})),$e=function(lt){for(var Ze=lt.length,Ne=0,ze="",Me=!1,Ge;Ne<=Ze;Ne++){if(Ge=Oe(lt,Ne),Ge==="\\"){ze+=Ge+Oe(lt,++Ne);continue}!Me&&Ge==="."?ze+="[\\s\\S]":(Ge==="["?Me=!0:Ge==="]"&&(Me=!1),ze+=Ge)}return ze},Ke=function(lt){for(var Ze=lt.length,Ne=0,ze="",Me=[],Ge={},ct=!1,mt=!1,nt=0,Ae="",je;Ne<=Ze;Ne++){if(je=Oe(lt,Ne),je==="\\")je=je+Oe(lt,++Ne);else if(je==="]")ct=!1;else if(!ct)switch(!0){case je==="[":ct=!0;break;case je==="(":Ee(st,et(lt,Ne+1))&&(Ne+=2,mt=!0),ze+=je,nt++;continue;case(je===">"&&mt):if(Ae===""||be(Ge,Ae))throw new _e("Invalid capture group name");Ge[Ae]=!0,Me[Me.length]=[Ae,nt],mt=!1,Ae="";continue}mt?Ae+=je:ze+=je}return[ze,Me]};if(ie("RegExp",Ye)){for(var ft=function(Ze,Ne){var ze=te(De,this),Me=re(Ze),Ge=Ne===void 0,ct=[],mt=Ze,nt,Ae,je,We,at,Re;if(!ze&&Me&&Ge&&Ze.constructor===ft)return Ze;if((Me||te(De,Ze))&&(Ze=Ze.source,Ge&&(Ne=ue(mt))),Ze=Ze===void 0?"":le(Ze),Ne=Ne===void 0?"":le(Ne),mt=Ze,ke&&"dotAll"in Le&&(Ae=!!Ne&&Xe(Ne,"s")>-1,Ae&&(Ne=He(Ne,/s/g,""))),nt=Ne,ot&&"sticky"in Le&&(je=!!Ne&&Xe(Ne,"y")>-1,je&&it&&(Ne=He(Ne,/y/g,""))),de&&(We=Ke(Ze),Ze=We[0],ct=We[1]),at=ee(Se(Ze,Ne),ze?this:De,ft),(Ae||je||ct.length)&&(Re=Ce(at),Ae&&(Re.dotAll=!0,Re.raw=ft($e(Ze),nt)),je&&(Re.sticky=!0),ct.length&&(Re.groups=ct)),Ze!==mt)try{se(at,"source",mt===""?"(?:)":mt)}catch(xe){}return at},tt=E(Se),ut=0;tt.length>ut;)he(ft,Se,tt[ut++]);De.constructor=ft,ft.prototype=De,me(z,"RegExp",ft)}Te("RegExp")},{"../internals/create-non-enumerable-property":129,"../internals/descriptors":134,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/inherit-if-required":171,"../internals/internal-state":173,"../internals/is-forced":178,"../internals/is-regexp":182,"../internals/object-get-own-property-names":201,"../internals/object-is-prototype-of":204,"../internals/proxy-accessor":219,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/regexp-sticky-helpers":227,"../internals/regexp-unsupported-dot-all":228,"../internals/regexp-unsupported-ncg":229,"../internals/set-species":233,"../internals/to-string":256,"../internals/well-known-symbol":268}],300:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/regexp-exec");x({target:"RegExp",proto:!0,forced:/./.exec!==z},{exec:z})},{"../internals/export":149,"../internals/regexp-exec":224}],301:[function(y,we,ve){"use strict";var x=y("../internals/function-name").PROPER,z=y("../internals/redefine"),oe=y("../internals/an-object"),ie=y("../internals/to-string"),ee=y("../internals/fails"),se=y("../internals/regexp-get-flags"),E="toString",te=RegExp.prototype,re=te[E],le=ee(function(){return re.call({source:"a",flags:"b"})!="/a/b"}),ue=x&&re.name!=E;(le||ue)&&z(RegExp.prototype,E,function(){var he=oe(this),me=ie(he.source),fe=ie(se(he));return"/"+me+"/"+fe},{unsafe:!0})},{"../internals/an-object":101,"../internals/fails":150,"../internals/function-name":156,"../internals/redefine":222,"../internals/regexp-get-flags":226,"../internals/to-string":256}],302:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),oe=y("../internals/not-a-regexp"),ie=y("../internals/require-object-coercible"),ee=y("../internals/to-string"),se=y("../internals/correct-is-regexp-logic"),E=z("".indexOf);x({target:"String",proto:!0,forced:!se("includes")},{includes:function(re){return!!~E(ee(ie(this)),ee(oe(re)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(y,we,ve){"use strict";var x=y("../internals/string-multibyte").charAt,z=y("../internals/to-string"),oe=y("../internals/internal-state"),ie=y("../internals/define-iterator"),ee="String Iterator",se=oe.set,E=oe.getterFor(ee);ie(String,"String",function(te){se(this,{type:ee,string:z(te),index:0})},function(){var re=E(this),le=re.string,ue=re.index,ce;return ue>=le.length?{value:void 0,done:!0}:(ce=x(le,ue),re.index+=ce.length,{value:ce,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(y,we,ve){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),oe=y("../internals/an-object"),ie=y("../internals/to-length"),ee=y("../internals/to-string"),se=y("../internals/require-object-coercible"),E=y("../internals/get-method"),te=y("../internals/advance-string-index"),re=y("../internals/regexp-exec-abstract");z("match",function(le,ue,ce){return[function(me){var fe=se(this),be=me==null?void 0:E(me,le);return be?x(be,me,fe):new RegExp(me)[le](ee(fe))},function(he){var me=oe(this),fe=ee(he),be=ce(ue,me,fe);if(be.done)return be.value;if(!me.global)return re(me,fe);var Ce=me.unicode;me.lastIndex=0;for(var Te=[],Pe=0,ke;(ke=re(me,fe))!==null;){var de=ee(ke[0]);Te[Pe]=de,de===""&&(me.lastIndex=te(fe,ie(me.lastIndex),Ce)),Pe++}return Pe===0?null:Te}]})},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-call":155,"../internals/get-method":161,"../internals/regexp-exec-abstract":223,"../internals/require-object-coercible":230,"../internals/to-length":249,"../internals/to-string":256}],305:[function(y,we,ve){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),ie=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/fails"),se=y("../internals/an-object"),E=y("../internals/is-callable"),te=y("../internals/to-integer-or-infinity"),re=y("../internals/to-length"),le=y("../internals/to-string"),ue=y("../internals/require-object-coercible"),ce=y("../internals/advance-string-index"),he=y("../internals/get-method"),me=y("../internals/get-substitution"),fe=y("../internals/regexp-exec-abstract"),be=y("../internals/well-known-symbol"),Ce=be("replace"),Te=Math.max,Pe=Math.min,ke=oe([].concat),de=oe([].push),ge=oe("".indexOf),Se=oe("".slice),De=function(He){return He===void 0?He:String(He)},_e=function(){return"a".replace(/./,"$0")==="$0"}(),Ee=function(){return/./[Ce]?/./[Ce]("a","$0")==="":!1}(),Oe=!ee(function(){var He=/./;return He.exec=function(){var Xe=[];return Xe.groups={a:"7"},Xe},"".replace(He,"$<a>")!=="7"});ie("replace",function(He,Xe,et){var st=Ee?"$":"$0";return[function(Ue,rt){var ot=ue(this),it=Ue==null?void 0:he(Ue,Ce);return it?z(it,Ue,ot,rt):z(Xe,le(ot),Ue,rt)},function(Le,Ue){var rt=se(this),ot=le(Le);if(typeof Ue=="string"&&ge(Ue,st)===-1&&ge(Ue,"$<")===-1){var it=et(Xe,rt,ot,Ue);if(it.done)return it.value}var Ye=E(Ue);Ye||(Ue=le(Ue));var $e=rt.global;if($e){var Ke=rt.unicode;rt.lastIndex=0}for(var ft=[];;){var tt=fe(rt,ot);if(tt===null||(de(ft,tt),!$e))break;var ut=le(tt[0]);ut===""&&(rt.lastIndex=ce(ot,re(rt.lastIndex),Ke))}for(var lt="",Ze=0,Ne=0;Ne<ft.length;Ne++){tt=ft[Ne];for(var ze=le(tt[0]),Me=Te(Pe(te(tt.index),ot.length),0),Ge=[],ct=1;ct<tt.length;ct++)de(Ge,De(tt[ct]));var mt=tt.groups;if(Ye){var nt=ke([ze],Ge,Me,ot);mt!==void 0&&de(nt,mt);var Ae=le(x(Ue,void 0,nt))}else Ae=me(ze,ot,Me,Ge,mt,Ue);Me>=Ze&&(lt+=Se(ot,Ze,Me)+Ae,Ze=Me+ze.length)}return lt+Se(ot,Ze)}]},!Oe||!_e||Ee)},{"../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,ve){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),oe=y("../internals/an-object"),ie=y("../internals/require-object-coercible"),ee=y("../internals/same-value"),se=y("../internals/to-string"),E=y("../internals/get-method"),te=y("../internals/regexp-exec-abstract");z("search",function(re,le,ue){return[function(he){var me=ie(this),fe=he==null?void 0:E(he,re);return fe?x(fe,he,me):new RegExp(he)[re](se(me))},function(ce){var he=oe(this),me=se(ce),fe=ue(le,he,me);if(fe.done)return fe.value;var be=he.lastIndex;ee(be,0)||(he.lastIndex=0);var Ce=te(he,me);return ee(he.lastIndex,be)||(he.lastIndex=be),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,ve){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),ie=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/is-regexp"),se=y("../internals/an-object"),E=y("../internals/require-object-coercible"),te=y("../internals/species-constructor"),re=y("../internals/advance-string-index"),le=y("../internals/to-length"),ue=y("../internals/to-string"),ce=y("../internals/get-method"),he=y("../internals/array-slice-simple"),me=y("../internals/regexp-exec-abstract"),fe=y("../internals/regexp-exec"),be=y("../internals/regexp-sticky-helpers"),Ce=y("../internals/fails"),Te=be.UNSUPPORTED_Y,Pe=4294967295,ke=Math.min,de=[].push,ge=oe(/./.exec),Se=oe(de),De=oe("".slice),_e=!Ce(function(){var Ee=/(?:)/,Oe=Ee.exec;Ee.exec=function(){return Oe.apply(this,arguments)};var He="ab".split(Ee);return He.length!==2||He[0]!=="a"||He[1]!=="b"});ie("split",function(Ee,Oe,He){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(et,st){var Le=ue(E(this)),Ue=st===void 0?Pe:st>>>0;if(Ue===0)return[];if(et===void 0)return[Le];if(!ee(et))return z(Oe,Le,et,Ue);for(var rt=[],ot=(et.ignoreCase?"i":"")+(et.multiline?"m":"")+(et.unicode?"u":"")+(et.sticky?"y":""),it=0,Ye=new RegExp(et.source,ot+"g"),$e,Ke,ft;($e=z(fe,Ye,Le))&&(Ke=Ye.lastIndex,!(Ke>it&&(Se(rt,De(Le,it,$e.index)),$e.length>1&&$e.index<Le.length&&x(de,rt,he($e,1)),ft=$e[0].length,it=Ke,rt.length>=Ue)));)Ye.lastIndex===$e.index&&Ye.lastIndex++;return it===Le.length?(ft||!ge(Ye,""))&&Se(rt,""):Se(rt,De(Le,it)),rt.length>Ue?he(rt,0,Ue):rt}:"0".split(void 0,0).length?Xe=function(et,st){return et===void 0&&st===0?[]:z(Oe,this,et,st)}:Xe=Oe,[function(st,Le){var Ue=E(this),rt=st==null?void 0:ce(st,Ee);return rt?z(rt,st,Ue,Le):z(Xe,ue(Ue),st,Le)},function(et,st){var Le=se(this),Ue=ue(et),rt=He(Xe,Le,Ue,st,Xe!==Oe);if(rt.done)return rt.value;var ot=te(Le,RegExp),it=Le.unicode,Ye=(Le.ignoreCase?"i":"")+(Le.multiline?"m":"")+(Le.unicode?"u":"")+(Te?"g":"y"),$e=new ot(Te?"^(?:"+Le.source+")":Le,Ye),Ke=st===void 0?Pe:st>>>0;if(Ke===0)return[];if(Ue.length===0)return me($e,Ue)===null?[Ue]:[];for(var ft=0,tt=0,ut=[];tt<Ue.length;){$e.lastIndex=Te?0:tt;var lt=me($e,Te?De(Ue,tt):Ue),Ze;if(lt===null||(Ze=ke(le($e.lastIndex+(Te?tt:0)),Ue.length))===ft)tt=re(Ue,tt,it);else{if(Se(ut,De(Ue,ft,tt)),ut.length===Ke)return ut;for(var Ne=1;Ne<=lt.length-1;Ne++)if(Se(ut,lt[Ne]),ut.length===Ke)return ut;tt=ft=Ze}}return Se(ut,De(Ue,ft)),ut}]},!_e,Te)},{"../internals/advance-string-index":99,"../internals/an-object":101,"../internals/array-slice-simple":116,"../internals/fails":150,"../internals/fix-regexp-well-known-symbol-logic":151,"../internals/function-apply":152,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/get-method":161,"../internals/is-regexp":182,"../internals/regexp-exec":224,"../internals/regexp-exec-abstract":223,"../internals/regexp-sticky-helpers":227,"../internals/require-object-coercible":230,"../internals/species-constructor":238,"../internals/to-length":249,"../internals/to-string":256}],308:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/string-trim").trim,oe=y("../internals/string-trim-forced");x({target:"String",proto:!0,forced:oe("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,we,ve){"use strict";var x=y("../internals/export"),z=y("../internals/global"),oe=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),ee=y("../internals/is-pure"),se=y("../internals/descriptors"),E=y("../internals/native-symbol"),te=y("../internals/fails"),re=y("../internals/has-own-property"),le=y("../internals/object-is-prototype-of"),ue=y("../internals/an-object"),ce=y("../internals/to-indexed-object"),he=y("../internals/to-property-key"),me=y("../internals/to-string"),fe=y("../internals/create-property-descriptor"),be=y("../internals/object-create"),Ce=y("../internals/object-keys"),Te=y("../internals/object-get-own-property-names"),Pe=y("../internals/object-get-own-property-names-external"),ke=y("../internals/object-get-own-property-symbols"),de=y("../internals/object-get-own-property-descriptor"),ge=y("../internals/object-define-property"),Se=y("../internals/object-define-properties"),De=y("../internals/object-property-is-enumerable"),_e=y("../internals/redefine"),Ee=y("../internals/shared"),Oe=y("../internals/shared-key"),He=y("../internals/hidden-keys"),Xe=y("../internals/uid"),et=y("../internals/well-known-symbol"),st=y("../internals/well-known-symbol-wrapped"),Le=y("../internals/define-well-known-symbol"),Ue=y("../internals/symbol-define-to-primitive"),rt=y("../internals/set-to-string-tag"),ot=y("../internals/internal-state"),it=y("../internals/array-iteration").forEach,Ye=Oe("hidden"),$e="Symbol",Ke="prototype",ft=ot.set,tt=ot.getterFor($e),ut=Object[Ke],lt=z.Symbol,Ze=lt&&lt[Ke],Ne=z.TypeError,ze=z.QObject,Me=de.f,Ge=ge.f,ct=Pe.f,mt=De.f,nt=ie([].push),Ae=Ee("symbols"),je=Ee("op-symbols"),We=Ee("wks"),at=!ze||!ze[Ke]||!ze[Ke].findChild,Re=se&&te(function(){return be(Ge({},"a",{get:function(){return Ge(this,"a",{value:7}).a}})).a!=7})?function(bt,ht,kt){var Tt=Me(ut,ht);Tt&&delete ut[ht],Ge(bt,ht,kt),Tt&&bt!==ut&&Ge(ut,ht,Tt)}:Ge,xe=function(bt,ht){var kt=Ae[bt]=be(Ze);return ft(kt,{type:$e,tag:bt,description:ht}),se||(kt.description=ht),kt},ye=function(ht,kt,Tt){ht===ut&&ye(je,kt,Tt),ue(ht);var Pt=he(kt);return ue(Tt),re(Ae,Pt)?(Tt.enumerable?(re(ht,Ye)&&ht[Ye][Pt]&&(ht[Ye][Pt]=!1),Tt=be(Tt,{enumerable:fe(0,!1)})):(re(ht,Ye)||Ge(ht,Ye,fe(1,{})),ht[Ye][Pt]=!0),Re(ht,Pt,Tt)):Ge(ht,Pt,Tt)},Fe=function(ht,kt){ue(ht);var Tt=ce(kt),Pt=Ce(Tt).concat(xt(Tt));return it(Pt,function(Vt){(!se||oe(Ie,Tt,Vt))&&ye(ht,Vt,Tt[Vt])}),ht},Qe=function(ht,kt){return kt===void 0?be(ht):Fe(be(ht),kt)},Ie=function(ht){var kt=he(ht),Tt=oe(mt,this,kt);return this===ut&&re(Ae,kt)&&!re(je,kt)?!1:Tt||!re(this,kt)||!re(Ae,kt)||re(this,Ye)&&this[Ye][kt]?Tt:!0},vt=function(ht,kt){var Tt=ce(ht),Pt=he(kt);if(!(Tt===ut&&re(Ae,Pt)&&!re(je,Pt))){var Vt=Me(Tt,Pt);return Vt&&re(Ae,Pt)&&!(re(Tt,Ye)&&Tt[Ye][Pt])&&(Vt.enumerable=!0),Vt}},yt=function(ht){var kt=ct(ce(ht)),Tt=[];return it(kt,function(Pt){!re(Ae,Pt)&&!re(He,Pt)&&nt(Tt,Pt)}),Tt},xt=function(bt){var ht=bt===ut,kt=ct(ht?je:ce(bt)),Tt=[];return it(kt,function(Pt){re(Ae,Pt)&&(!ht||re(ut,Pt))&&nt(Tt,Ae[Pt])}),Tt};E||(lt=function(){if(le(Ze,this))throw Ne("Symbol is not a constructor");var ht=!arguments.length||arguments[0]===void 0?void 0:me(arguments[0]),kt=Xe(ht),Tt=function(Pt){this===ut&&oe(Tt,je,Pt),re(this,Ye)&&re(this[Ye],kt)&&(this[Ye][kt]=!1),Re(this,kt,fe(1,Pt))};return se&&at&&Re(ut,kt,{configurable:!0,set:Tt}),xe(kt,ht)},Ze=lt[Ke],_e(Ze,"toString",function(){return tt(this).tag}),_e(lt,"withoutSetter",function(bt){return xe(Xe(bt),bt)}),De.f=Ie,ge.f=ye,Se.f=Fe,de.f=vt,Te.f=Pe.f=yt,ke.f=xt,st.f=function(bt){return xe(et(bt),bt)},se&&(Ge(Ze,"description",{configurable:!0,get:function(){return tt(this).description}}),ee||_e(ut,"propertyIsEnumerable",Ie,{unsafe:!0}))),x({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:lt}),it(Ce(We),function(bt){Le(bt)}),x({target:$e,stat:!0,forced:!E},{useSetter:function(){at=!0},useSimple:function(){at=!1}}),x({target:"Object",stat:!0,forced:!E,sham:!se},{create:Qe,defineProperty:ye,defineProperties:Fe,getOwnPropertyDescriptor:vt}),x({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:yt}),Ue(),rt(lt,$e),He[Ye]=!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,ve){"use strict";var x=y("../internals/export"),z=y("../internals/descriptors"),oe=y("../internals/global"),ie=y("../internals/function-uncurry-this"),ee=y("../internals/has-own-property"),se=y("../internals/is-callable"),E=y("../internals/object-is-prototype-of"),te=y("../internals/to-string"),re=y("../internals/object-define-property").f,le=y("../internals/copy-constructor-properties"),ue=oe.Symbol,ce=ue&&ue.prototype;if(z&&se(ue)&&(!("description"in ce)||ue().description!==void 0)){var he={},me=function(){var ge=arguments.length<1||arguments[0]===void 0?void 0:te(arguments[0]),Se=E(ce,this)?new ue(ge):ge===void 0?ue():ue(ge);return ge===""&&(he[Se]=!0),Se};le(me,ue),me.prototype=ce,ce.constructor=me;var fe=String(ue("test"))=="Symbol(test)",be=ie(ce.toString),Ce=ie(ce.valueOf),Te=/^Symbol\((.*)\)[^)]+$/,Pe=ie("".replace),ke=ie("".slice);re(ce,"description",{configurable:!0,get:function(){var ge=Ce(this),Se=be(ge);if(ee(he,ge))return"";var De=fe?ke(Se,7,-1):Pe(Se,Te,"$1");return De===""?void 0:De}}),x({global:!0,forced:!0},{Symbol:me})}},{"../internals/copy-constructor-properties":125,"../internals/descriptors":134,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/object-define-property":198,"../internals/object-is-prototype-of":204,"../internals/to-string":256}],311:[function(y,we,ve){var x=y("../internals/export"),z=y("../internals/get-built-in"),oe=y("../internals/has-own-property"),ie=y("../internals/to-string"),ee=y("../internals/shared"),se=y("../internals/native-symbol-registry"),E=ee("string-to-symbol-registry"),te=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!se},{for:function(re){var le=ie(re);if(oe(E,le))return E[le];var ue=z("Symbol")(le);return E[le]=ue,te[ue]=le,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,ve){var x=y("../internals/define-well-known-symbol");x("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,we,ve){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,ve){var x=y("../internals/export"),z=y("../internals/has-own-property"),oe=y("../internals/is-symbol"),ie=y("../internals/try-to-string"),ee=y("../internals/shared"),se=y("../internals/native-symbol-registry"),E=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!se},{keyFor:function(re){if(!oe(re))throw TypeError(ie(re)+" is not a symbol");if(z(E,re))return E[re]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(y,we,ve){"use strict";var x=y("../internals/function-uncurry-this"),z=y("../internals/array-buffer-view-core"),oe=y("../internals/array-copy-within"),ie=x(oe),ee=z.aTypedArray,se=z.exportTypedArrayMethod;se("copyWithin",function(te,re){return ie(ee(this),te,re,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").every,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("every",function(se){return z(oe(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-call"),oe=y("../internals/array-fill"),ie=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("fill",function(E){var te=arguments.length;return z(oe,ie(this),E,te>1?arguments[1]:void 0,te>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").filter,oe=y("../internals/typed-array-from-species-and-list"),ie=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("filter",function(E){var te=z(ie(this),E,arguments.length>1?arguments[1]:void 0);return oe(this,te)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").findIndex,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("findIndex",function(se){return z(oe(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").find,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("find",function(se){return z(oe(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").forEach,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("forEach",function(se){z(oe(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").includes,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("includes",function(se){return z(oe(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").indexOf,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("indexOf",function(se){return z(oe(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,we,ve){"use strict";var x=y("../internals/global"),z=y("../internals/fails"),oe=y("../internals/function-uncurry-this"),ie=y("../internals/array-buffer-view-core"),ee=y("../modules/es.array.iterator"),se=y("../internals/well-known-symbol"),E=se("iterator"),te=x.Uint8Array,re=oe(ee.values),le=oe(ee.keys),ue=oe(ee.entries),ce=ie.aTypedArray,he=ie.exportTypedArrayMethod,me=te&&te.prototype,fe=!z(function(){me[E].call([1])}),be=!!me&&me.values&&me[E]===me.values&&me.values.name==="values",Ce=function(){return re(ce(this))};he("entries",function(){return ue(ce(this))},fe),he("keys",function(){return le(ce(this))},fe),he("values",Ce,fe||!be,{name:"values"}),he(E,Ce,fe||!be,{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,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-uncurry-this"),oe=x.aTypedArray,ie=x.exportTypedArrayMethod,ee=z([].join);ie("join",function(E){return ee(oe(this),E)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-apply"),oe=y("../internals/array-last-index-of"),ie=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("lastIndexOf",function(E){var te=arguments.length;return z(oe,ie(this),te>1?[E,arguments[1]]:[E])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").map,oe=y("../internals/typed-array-species-constructor"),ie=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("map",function(E){return z(ie(this),E,arguments.length>1?arguments[1]:void 0,function(te,re){return new(oe(te))(re)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").right,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("reduceRight",function(se){var E=arguments.length;return z(oe(this),se,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").left,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("reduce",function(se){var E=arguments.length;return z(oe(this),se,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=x.aTypedArray,oe=x.exportTypedArrayMethod,ie=Math.floor;oe("reverse",function(){for(var se=this,E=z(se).length,te=ie(E/2),re=0,le;re<te;)le=se[re],se[re++]=se[--E],se[E]=le;return se})},{"../internals/array-buffer-view-core":103}],331:[function(y,we,ve){"use strict";var x=y("../internals/global"),z=y("../internals/function-call"),oe=y("../internals/array-buffer-view-core"),ie=y("../internals/length-of-array-like"),ee=y("../internals/to-offset"),se=y("../internals/to-object"),E=y("../internals/fails"),te=x.RangeError,re=x.Int8Array,le=re&&re.prototype,ue=le&&le.set,ce=oe.aTypedArray,he=oe.exportTypedArrayMethod,me=!E(function(){var be=new Uint8ClampedArray(2);return z(ue,be,{length:1,0:3},1),be[1]!==3}),fe=me&&oe.NATIVE_ARRAY_BUFFER_VIEWS&&E(function(){var be=new re(2);return be.set(1),be.set("2",1),be[0]!==0||be[1]!==2});he("set",function(Ce){ce(this);var Te=ee(arguments.length>1?arguments[1]:void 0,1),Pe=se(Ce);if(me)return z(ue,this,Pe,Te);var ke=this.length,de=ie(Pe),ge=0;if(de+Te>ke)throw te("Wrong length");for(;ge<de;)this[Te+ge]=Pe[ge++]},!me||fe)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-call":155,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-object":250,"../internals/to-offset":251}],332:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/typed-array-species-constructor"),oe=y("../internals/fails"),ie=y("../internals/array-slice"),ee=x.aTypedArray,se=x.exportTypedArrayMethod,E=oe(function(){new Int8Array(1).slice()});se("slice",function(re,le){for(var ue=ie(ee(this),re,le),ce=z(this),he=0,me=ue.length,fe=new ce(me);me>he;)fe[he]=ue[he++];return fe},E)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").some,oe=x.aTypedArray,ie=x.exportTypedArrayMethod;ie("some",function(se){return z(oe(this),se,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,we,ve){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),oe=y("../internals/fails"),ie=y("../internals/a-callable"),ee=y("../internals/array-sort"),se=y("../internals/array-buffer-view-core"),E=y("../internals/engine-ff-version"),te=y("../internals/engine-is-ie-or-edge"),re=y("../internals/engine-v8-version"),le=y("../internals/engine-webkit-version"),ue=se.aTypedArray,ce=se.exportTypedArrayMethod,he=x.Uint16Array,me=he&&z(he.prototype.sort),fe=!!me&&!(oe(function(){me(new he(2),null)})&&oe(function(){me(new he(2),{})})),be=!!me&&!oe(function(){if(re)return re<74;if(E)return E<67;if(te)return!0;if(le)return le<602;var Te=new he(516),Pe=Array(516),ke,de;for(ke=0;ke<516;ke++)de=ke%4,Te[ke]=515-ke,Pe[ke]=ke-2*de+3;for(me(Te,function(ge,Se){return(ge/4|0)-(Se/4|0)}),ke=0;ke<516;ke++)if(Te[ke]!==Pe[ke])return!0}),Ce=function(Te){return function(Pe,ke){return Te!==void 0?+Te(Pe,ke)||0:ke!==ke?-1:Pe!==Pe?1:Pe===0&&ke===0?1/Pe>0&&1/ke<0?1:-1:Pe>ke}};ce("sort",function(Pe){return Pe!==void 0&&ie(Pe),be?me(this,Pe):ee(ue(this),Ce(Pe))},!be||fe)},{"../internals/a-callable":95,"../internals/array-buffer-view-core":103,"../internals/array-sort":118,"../internals/engine-ff-version":138,"../internals/engine-is-ie-or-edge":140,"../internals/engine-v8-version":146,"../internals/engine-webkit-version":147,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],335:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/to-length"),oe=y("../internals/to-absolute-index"),ie=y("../internals/typed-array-species-constructor"),ee=x.aTypedArray,se=x.exportTypedArrayMethod;se("subarray",function(te,re){var le=ee(this),ue=le.length,ce=oe(te,ue),he=ie(le);return new he(le.buffer,le.byteOffset+ce*le.BYTES_PER_ELEMENT,z((re===void 0?ue:oe(re,ue))-ce))})},{"../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,ve){"use strict";var x=y("../internals/global"),z=y("../internals/function-apply"),oe=y("../internals/array-buffer-view-core"),ie=y("../internals/fails"),ee=y("../internals/array-slice"),se=x.Int8Array,E=oe.aTypedArray,te=oe.exportTypedArrayMethod,re=[].toLocaleString,le=!!se&&ie(function(){re.call(new se(1))}),ue=ie(function(){return[1,2].toLocaleString()!=new se([1,2]).toLocaleString()})||!ie(function(){se.prototype.toLocaleString.call([1,2])});te("toLocaleString",function(){return z(re,le?ee(E(this)):E(this),ee(arguments))},ue)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/function-apply":152,"../internals/global":163}],337:[function(y,we,ve){"use strict";var x=y("../internals/array-buffer-view-core").exportTypedArrayMethod,z=y("../internals/fails"),oe=y("../internals/global"),ie=y("../internals/function-uncurry-this"),ee=oe.Uint8Array,se=ee&&ee.prototype||{},E=[].toString,te=ie([].join);z(function(){E.call({})})&&(E=function(){return te(this)});var re=se.toString!=E;x("toString",E,re)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(y,we,ve){var x=y("../internals/typed-array-constructor");x("Uint8",function(z){return function(ie,ee,se){return z(this,ie,ee,se)}})},{"../internals/typed-array-constructor":258}],339:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/dom-iterables"),oe=y("../internals/dom-token-list-prototype"),ie=y("../internals/array-for-each"),ee=y("../internals/create-non-enumerable-property"),se=function(te){if(te&&te.forEach!==ie)try{ee(te,"forEach",ie)}catch(re){te.forEach=ie}};for(var E in z)z[E]&&se(x[E]&&x[E].prototype);se(oe)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(y,we,ve){var x=y("../internals/global"),z=y("../internals/dom-iterables"),oe=y("../internals/dom-token-list-prototype"),ie=y("../modules/es.array.iterator"),ee=y("../internals/create-non-enumerable-property"),se=y("../internals/well-known-symbol"),E=se("iterator"),te=se("toStringTag"),re=ie.values,le=function(ce,he){if(ce){if(ce[E]!==re)try{ee(ce,E,re)}catch(fe){ce[E]=re}if(ce[te]||ee(ce,te,he),z[he]){for(var me in ie)if(ce[me]!==ie[me])try{ee(ce,me,ie[me])}catch(fe){ce[me]=ie[me]}}}};for(var ue in z)le(x[ue]&&x[ue].prototype,ue);le(oe,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(y,we,ve){function x(be){return Array.isArray?Array.isArray(be):fe(be)==="[object Array]"}ve.isArray=x;function z(be){return typeof be=="boolean"}ve.isBoolean=z;function oe(be){return be===null}ve.isNull=oe;function ie(be){return be==null}ve.isNullOrUndefined=ie;function ee(be){return typeof be=="number"}ve.isNumber=ee;function se(be){return typeof be=="string"}ve.isString=se;function E(be){return typeof be=="symbol"}ve.isSymbol=E;function te(be){return be===void 0}ve.isUndefined=te;function re(be){return fe(be)==="[object RegExp]"}ve.isRegExp=re;function le(be){return typeof be=="object"&&be!==null}ve.isObject=le;function ue(be){return fe(be)==="[object Date]"}ve.isDate=ue;function ce(be){return fe(be)==="[object Error]"||be instanceof Error}ve.isError=ce;function he(be){return typeof be=="function"}ve.isFunction=he;function me(be){return be===null||typeof be=="boolean"||typeof be=="number"||typeof be=="string"||typeof be=="symbol"||typeof be=="undefined"}ve.isPrimitive=me,ve.isBuffer=y("buffer").Buffer.isBuffer;function fe(be){return Object.prototype.toString.call(be)}},{buffer:90}],342:[function(y,we,ve){(function(x){"use strict";var z=function(){var E=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,te=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,re=/[^-+\dA-Z]/g;return function(le,ue,ce,he){if(arguments.length===1&&se(le)==="string"&&!/\d/.test(le)&&(ue=le,le=void 0),le=le||new Date,le instanceof Date||(le=new Date(le)),isNaN(le))throw TypeError("Invalid date");ue=String(z.masks[ue]||ue||z.masks.default);var me=ue.slice(0,4);(me==="UTC:"||me==="GMT:")&&(ue=ue.slice(4),ce=!0,me==="GMT:"&&(he=!0));var fe=ce?"getUTC":"get",be=le[fe+"Date"](),Ce=le[fe+"Day"](),Te=le[fe+"Month"](),Pe=le[fe+"FullYear"](),ke=le[fe+"Hours"](),de=le[fe+"Minutes"](),ge=le[fe+"Seconds"](),Se=le[fe+"Milliseconds"](),De=ce?0:le.getTimezoneOffset(),_e=ie(le),Ee=ee(le),Oe={d:be,dd:oe(be),ddd:z.i18n.dayNames[Ce],dddd:z.i18n.dayNames[Ce+7],m:Te+1,mm:oe(Te+1),mmm:z.i18n.monthNames[Te],mmmm:z.i18n.monthNames[Te+12],yy:String(Pe).slice(2),yyyy:Pe,h:ke%12||12,hh:oe(ke%12||12),H:ke,HH:oe(ke),M:de,MM:oe(de),s:ge,ss:oe(ge),l:oe(Se,3),L:oe(Math.round(Se/10)),t:ke<12?"a":"p",tt:ke<12?"am":"pm",T:ke<12?"A":"P",TT:ke<12?"AM":"PM",Z:he?"GMT":ce?"UTC":(String(le).match(te)||[""]).pop().replace(re,""),o:(De>0?"-":"+")+oe(Math.floor(Math.abs(De)/60)*100+Math.abs(De)%60,4),S:["th","st","nd","rd"][be%10>3?0:(be%100-be%10!=10)*be%10],W:_e,N:Ee};return ue.replace(E,function(He){return He in Oe?Oe[He]:He.slice(1,He.length-1)})}}();z.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},z.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};function oe(E,te){for(E=String(E),te=te||2;E.length<te;)E="0"+E;return E}function ie(E){var te=new Date(E.getFullYear(),E.getMonth(),E.getDate());te.setDate(te.getDate()-(te.getDay()+6)%7+3);var re=new Date(te.getFullYear(),0,4);re.setDate(re.getDate()-(re.getDay()+6)%7+3);var le=te.getTimezoneOffset()-re.getTimezoneOffset();te.setHours(te.getHours()-le);var ue=(te-re)/(864e5*7);return 1+Math.floor(ue)}function ee(E){var te=E.getDay();return te===0&&(te=7),te}function se(E){return E===null?"null":E===void 0?"undefined":typeof E!="object"?typeof E:Array.isArray(E)?"array":{}.toString.call(E).slice(8,-1).toLowerCase()}typeof Ve=="function"&&Ve.amd?Ve(function(){return z}):typeof ve=="object"?we.exports=z:x.dateFormat=z})(this)},{}],343:[function(y,we,ve){"use strict";var x=/["'&<>]/;we.exports=z;function z(oe){var ie=""+oe,ee=x.exec(ie);if(!ee)return ie;var se,E="",te=0,re=0;for(te=ee.index;te<ie.length;te++){switch(ie.charCodeAt(te)){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}re!==te&&(E+=ie.substring(re,te)),re=te+1,E+=se}return re!==te?E+ie.substring(re,te):E}},{}],344:[function(y,we,ve){"use strict";var x=typeof Reflect=="object"?Reflect:null,z=x&&typeof x.apply=="function"?x.apply:function(ge,Se,De){return Function.prototype.apply.call(ge,Se,De)},oe;x&&typeof x.ownKeys=="function"?oe=x.ownKeys:Object.getOwnPropertySymbols?oe=function(ge){return Object.getOwnPropertyNames(ge).concat(Object.getOwnPropertySymbols(ge))}:oe=function(ge){return Object.getOwnPropertyNames(ge)};function ie(de){console&&console.warn&&console.warn(de)}var ee=Number.isNaN||function(ge){return ge!==ge};function se(){se.init.call(this)}we.exports=se,we.exports.once=Te,se.EventEmitter=se,se.prototype._events=void 0,se.prototype._eventsCount=0,se.prototype._maxListeners=void 0;var E=10;function te(de){if(typeof de!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof de)}Object.defineProperty(se,"defaultMaxListeners",{enumerable:!0,get:function(){return E},set:function(de){if(typeof de!="number"||de<0||ee(de))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+de+".");E=de}}),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(ge){if(typeof ge!="number"||ge<0||ee(ge))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ge+".");return this._maxListeners=ge,this};function re(de){return de._maxListeners===void 0?se.defaultMaxListeners:de._maxListeners}se.prototype.getMaxListeners=function(){return re(this)},se.prototype.emit=function(ge){for(var Se=[],De=1;De<arguments.length;De++)Se.push(arguments[De]);var _e=ge==="error",Ee=this._events;if(Ee!==void 0)_e=_e&&Ee.error===void 0;else if(!_e)return!1;if(_e){var Oe;if(Se.length>0&&(Oe=Se[0]),Oe instanceof Error)throw Oe;var He=new Error("Unhandled error."+(Oe?" ("+Oe.message+")":""));throw He.context=Oe,He}var Xe=Ee[ge];if(Xe===void 0)return!1;if(typeof Xe=="function")z(Xe,this,Se);else for(var et=Xe.length,st=fe(Xe,et),De=0;De<et;++De)z(st[De],this,Se);return!0};function le(de,ge,Se,De){var _e,Ee,Oe;if(te(Se),Ee=de._events,Ee===void 0?(Ee=de._events=Object.create(null),de._eventsCount=0):(Ee.newListener!==void 0&&(de.emit("newListener",ge,Se.listener?Se.listener:Se),Ee=de._events),Oe=Ee[ge]),Oe===void 0)Oe=Ee[ge]=Se,++de._eventsCount;else if(typeof Oe=="function"?Oe=Ee[ge]=De?[Se,Oe]:[Oe,Se]:De?Oe.unshift(Se):Oe.push(Se),_e=re(de),_e>0&&Oe.length>_e&&!Oe.warned){Oe.warned=!0;var He=new Error("Possible EventEmitter memory leak detected. "+Oe.length+" "+String(ge)+" listeners added. Use emitter.setMaxListeners() to increase limit");He.name="MaxListenersExceededWarning",He.emitter=de,He.type=ge,He.count=Oe.length,ie(He)}return de}se.prototype.addListener=function(ge,Se){return le(this,ge,Se,!1)},se.prototype.on=se.prototype.addListener,se.prototype.prependListener=function(ge,Se){return le(this,ge,Se,!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 ce(de,ge,Se){var De={fired:!1,wrapFn:void 0,target:de,type:ge,listener:Se},_e=ue.bind(De);return _e.listener=Se,De.wrapFn=_e,_e}se.prototype.once=function(ge,Se){return te(Se),this.on(ge,ce(this,ge,Se)),this},se.prototype.prependOnceListener=function(ge,Se){return te(Se),this.prependListener(ge,ce(this,ge,Se)),this},se.prototype.removeListener=function(ge,Se){var De,_e,Ee,Oe,He;if(te(Se),_e=this._events,_e===void 0)return this;if(De=_e[ge],De===void 0)return this;if(De===Se||De.listener===Se)--this._eventsCount===0?this._events=Object.create(null):(delete _e[ge],_e.removeListener&&this.emit("removeListener",ge,De.listener||Se));else if(typeof De!="function"){for(Ee=-1,Oe=De.length-1;Oe>=0;Oe--)if(De[Oe]===Se||De[Oe].listener===Se){He=De[Oe].listener,Ee=Oe;break}if(Ee<0)return this;Ee===0?De.shift():be(De,Ee),De.length===1&&(_e[ge]=De[0]),_e.removeListener!==void 0&&this.emit("removeListener",ge,He||Se)}return this},se.prototype.off=se.prototype.removeListener,se.prototype.removeAllListeners=function(ge){var Se,De,_e;if(De=this._events,De===void 0)return this;if(De.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):De[ge]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete De[ge]),this;if(arguments.length===0){var Ee=Object.keys(De),Oe;for(_e=0;_e<Ee.length;++_e)Oe=Ee[_e],Oe!=="removeListener"&&this.removeAllListeners(Oe);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(Se=De[ge],typeof Se=="function")this.removeListener(ge,Se);else if(Se!==void 0)for(_e=Se.length-1;_e>=0;_e--)this.removeListener(ge,Se[_e]);return this};function he(de,ge,Se){var De=de._events;if(De===void 0)return[];var _e=De[ge];return _e===void 0?[]:typeof _e=="function"?Se?[_e.listener||_e]:[_e]:Se?Ce(_e):fe(_e,_e.length)}se.prototype.listeners=function(ge){return he(this,ge,!0)},se.prototype.rawListeners=function(ge){return he(this,ge,!1)},se.listenerCount=function(de,ge){return typeof de.listenerCount=="function"?de.listenerCount(ge):me.call(de,ge)},se.prototype.listenerCount=me;function me(de){var ge=this._events;if(ge!==void 0){var Se=ge[de];if(typeof Se=="function")return 1;if(Se!==void 0)return Se.length}return 0}se.prototype.eventNames=function(){return this._eventsCount>0?oe(this._events):[]};function fe(de,ge){for(var Se=new Array(ge),De=0;De<ge;++De)Se[De]=de[De];return Se}function be(de,ge){for(;ge+1<de.length;ge++)de[ge]=de[ge+1];de.pop()}function Ce(de){for(var ge=new Array(de.length),Se=0;Se<ge.length;++Se)ge[Se]=de[Se].listener||de[Se];return ge}function Te(de,ge){return new Promise(function(Se,De){function _e(Oe){de.removeListener(ge,Ee),De(Oe)}function Ee(){typeof de.removeListener=="function"&&de.removeListener("error",_e),Se([].slice.call(arguments))}ke(de,ge,Ee,{once:!0}),ge!=="error"&&Pe(de,_e,{once:!0})})}function Pe(de,ge,Se){typeof de.on=="function"&&ke(de,"error",ge,Se)}function ke(de,ge,Se,De){if(typeof de.on=="function")De.once?de.once(ge,Se):de.on(ge,Se);else if(typeof de.addEventListener=="function")de.addEventListener(ge,function _e(Ee){De.once&&de.removeEventListener(ge,_e),Se(Ee)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof de)}},{}],345:[function(y,we,ve){"use strict";var x=y("is-callable"),z=Object.prototype.toString,oe=Object.prototype.hasOwnProperty,ie=function(re,le,ue){for(var ce=0,he=re.length;ce<he;ce++)oe.call(re,ce)&&(ue==null?le(re[ce],ce,re):le.call(ue,re[ce],ce,re))},ee=function(re,le,ue){for(var ce=0,he=re.length;ce<he;ce++)ue==null?le(re.charAt(ce),ce,re):le.call(ue,re.charAt(ce),ce,re)},se=function(re,le,ue){for(var ce in re)oe.call(re,ce)&&(ue==null?le(re[ce],ce,re):le.call(ue,re[ce],ce,re))},E=function(re,le,ue){if(!x(le))throw new TypeError("iterator must be a function");var ce;arguments.length>=3&&(ce=ue),z.call(re)==="[object Array]"?ie(re,le,ce):typeof re=="string"?ee(re,le,ce):se(re,le,ce)};we.exports=E},{"is-callable":367}],346:[function(y,we,ve){"use strict";var x="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,oe=Object.prototype.toString,ie="[object Function]";we.exports=function(se){var E=this;if(typeof E!="function"||oe.call(E)!==ie)throw new TypeError(x+E);for(var te=z.call(arguments,1),re,le=function(){if(this instanceof re){var fe=E.apply(this,te.concat(z.call(arguments)));return Object(fe)===fe?fe:this}else return E.apply(se,te.concat(z.call(arguments)))},ue=Math.max(0,E.length-te.length),ce=[],he=0;he<ue;he++)ce.push("$"+he);if(re=Function("binder","return function ("+ce.join(",")+"){ return binder.apply(this,arguments); }")(le),E.prototype){var me=function(){};me.prototype=E.prototype,re.prototype=new me,me.prototype=null}return re}},{}],347:[function(y,we,ve){"use strict";var x=y("./implementation");we.exports=Function.prototype.bind||x},{"./implementation":346}],348:[function(y,we,ve){"use strict";var x,z=SyntaxError,oe=Function,ie=TypeError,ee=function(Xe){try{return oe('"use strict"; return ('+Xe+").constructor;")()}catch(et){}},se=Object.getOwnPropertyDescriptor;if(se)try{se({},"")}catch(Xe){se=null}var E=function(){throw new ie},te=se?function(){try{return arguments.callee,E}catch(Xe){try{return se(arguments,"callee").get}catch(et){return E}}}():E,re=y("has-symbols")(),le=y("has-proto")(),ue=Object.getPrototypeOf||(le?function(Xe){return Xe.__proto__}:null),ce={},he=typeof Uint8Array=="undefined"||!ue?x:ue(Uint8Array),me={"%AggregateError%":typeof AggregateError=="undefined"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?x:ArrayBuffer,"%ArrayIteratorPrototype%":re&&ue?ue([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":ce,"%AsyncGenerator%":ce,"%AsyncGeneratorFunction%":ce,"%AsyncIteratorPrototype%":ce,"%Atomics%":typeof Atomics=="undefined"?x:Atomics,"%BigInt%":typeof BigInt=="undefined"?x:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?x:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?x:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?x:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?x:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?x:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?x:FinalizationRegistry,"%Function%":oe,"%GeneratorFunction%":ce,"%Int8Array%":typeof Int8Array=="undefined"?x:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?x:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":re&&ue?ue(ue([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map=="undefined"?x:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!re||!ue?x:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?x:Promise,"%Proxy%":typeof Proxy=="undefined"?x:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?x:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?x:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!re||!ue?x:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":re&&ue?ue(""[Symbol.iterator]()):x,"%Symbol%":re?Symbol:x,"%SyntaxError%":z,"%ThrowTypeError%":te,"%TypedArray%":he,"%TypeError%":ie,"%Uint8Array%":typeof Uint8Array=="undefined"?x:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?x:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?x:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?x:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?x:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?x:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?x:WeakSet};if(ue)try{null.error}catch(Xe){var fe=ue(ue(Xe));me["%Error.prototype%"]=fe}var be=function Xe(et){var st;if(et==="%AsyncFunction%")st=ee("async function () {}");else if(et==="%GeneratorFunction%")st=ee("function* () {}");else if(et==="%AsyncGeneratorFunction%")st=ee("async function* () {}");else if(et==="%AsyncGenerator%"){var Le=Xe("%AsyncGeneratorFunction%");Le&&(st=Le.prototype)}else if(et==="%AsyncIteratorPrototype%"){var Ue=Xe("%AsyncGenerator%");Ue&&ue&&(st=ue(Ue.prototype))}return me[et]=st,st},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"]},Te=y("function-bind"),Pe=y("has"),ke=Te.call(Function.call,Array.prototype.concat),de=Te.call(Function.apply,Array.prototype.splice),ge=Te.call(Function.call,String.prototype.replace),Se=Te.call(Function.call,String.prototype.slice),De=Te.call(Function.call,RegExp.prototype.exec),_e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ee=/\\(\\)?/g,Oe=function(et){var st=Se(et,0,1),Le=Se(et,-1);if(st==="%"&&Le!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(Le==="%"&&st!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var Ue=[];return ge(et,_e,function(rt,ot,it,Ye){Ue[Ue.length]=it?ge(Ye,Ee,"$1"):ot||rt}),Ue},He=function(et,st){var Le=et,Ue;if(Pe(Ce,Le)&&(Ue=Ce[Le],Le="%"+Ue[0]+"%"),Pe(me,Le)){var rt=me[Le];if(rt===ce&&(rt=be(Le)),typeof rt=="undefined"&&!st)throw new ie("intrinsic "+et+" exists, but is not available. Please file an issue!");return{alias:Ue,name:Le,value:rt}}throw new z("intrinsic "+et+" does not exist!")};we.exports=function(et,st){if(typeof et!="string"||et.length===0)throw new ie("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof st!="boolean")throw new ie('"allowMissing" argument must be a boolean');if(De(/^%?[^%]*%?$/,et)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Le=Oe(et),Ue=Le.length>0?Le[0]:"",rt=He("%"+Ue+"%",st),ot=rt.name,it=rt.value,Ye=!1,$e=rt.alias;$e&&(Ue=$e[0],de(Le,ke([0,1],$e)));for(var Ke=1,ft=!0;Ke<Le.length;Ke+=1){var tt=Le[Ke],ut=Se(tt,0,1),lt=Se(tt,-1);if((ut==='"'||ut==="'"||ut==="`"||lt==='"'||lt==="'"||lt==="`")&&ut!==lt)throw new z("property names with quotes must have matching quotes");if((tt==="constructor"||!ft)&&(Ye=!0),Ue+="."+tt,ot="%"+Ue+"%",Pe(me,ot))it=me[ot];else if(it!=null){if(!(tt in it)){if(!st)throw new ie("base intrinsic for "+et+" exists, but the property is not available.");return}if(se&&Ke+1>=Le.length){var Ze=se(it,tt);ft=!!Ze,ft&&"get"in Ze&&!("originalValue"in Ze.get)?it=Ze.get:it=it[tt]}else ft=Pe(it,tt),it=it[tt];ft&&!Ye&&(me[ot]=it)}}return it}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,we,ve){"use strict";var x=y("get-intrinsic"),z=x("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(oe){z=null}we.exports=z},{"get-intrinsic":348}],350:[function(y,we,ve){"use strict";var x={foo:{}},z=Object;we.exports=function(){return{__proto__:x}.foo===x.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(y,we,ve){"use strict";var x=typeof Symbol!="undefined"&&Symbol,z=y("./shams");we.exports=function(){return typeof x!="function"||typeof Symbol!="function"||typeof x("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(y,we,ve){"use strict";we.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},oe=Symbol("test"),ie=Object(oe);if(typeof oe=="string"||Object.prototype.toString.call(oe)!=="[object Symbol]"||Object.prototype.toString.call(ie)!=="[object Symbol]")return!1;var ee=42;z[oe]=ee;for(oe in z)return!1;if(typeof Object.keys=="function"&&Object.keys(z).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(z).length!==0)return!1;var se=Object.getOwnPropertySymbols(z);if(se.length!==1||se[0]!==oe||!Object.prototype.propertyIsEnumerable.call(z,oe))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(z,oe);if(E.value!==ee||E.enumerable!==!0)return!1}return!0}},{}],353:[function(y,we,ve){"use strict";var x=y("has-symbols/shams");we.exports=function(){return x()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,we,ve){"use strict";var x=y("function-bind");we.exports=x.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,we,ve){var x=y("http"),z=y("url"),oe=we.exports;for(var ie in x)x.hasOwnProperty(ie)&&(oe[ie]=x[ie]);oe.request=function(se,E){return se=ee(se),x.request.call(this,se,E)},oe.get=function(se,E){return se=ee(se),x.get.call(this,se,E)};function ee(se){if(typeof se=="string"&&(se=z.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,ve){"use strict";var x=y("util"),z=y("ms");we.exports=function(oe){if(typeof oe=="number")return oe;var ie=z(oe);if(ie===void 0){var ee=new Error(x.format("humanize-ms(%j) result undefined",oe));console.warn(ee.stack)}return ie}},{ms:376,util:419}],357:[function(y,we,ve){ve.read=function(x,z,oe,ie,ee){var se,E,te=ee*8-ie-1,re=(1<<te)-1,le=re>>1,ue=-7,ce=oe?ee-1:0,he=oe?-1:1,me=x[z+ce];for(ce+=he,se=me&(1<<-ue)-1,me>>=-ue,ue+=te;ue>0;se=se*256+x[z+ce],ce+=he,ue-=8);for(E=se&(1<<-ue)-1,se>>=-ue,ue+=ie;ue>0;E=E*256+x[z+ce],ce+=he,ue-=8);if(se===0)se=1-le;else{if(se===re)return E?NaN:(me?-1:1)*(1/0);E=E+Math.pow(2,ie),se=se-le}return(me?-1:1)*E*Math.pow(2,se-ie)},ve.write=function(x,z,oe,ie,ee,se){var E,te,re,le=se*8-ee-1,ue=(1<<le)-1,ce=ue>>1,he=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,me=ie?0:se-1,fe=ie?1:-1,be=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(te=isNaN(z)?1:0,E=ue):(E=Math.floor(Math.log(z)/Math.LN2),z*(re=Math.pow(2,-E))<1&&(E--,re*=2),E+ce>=1?z+=he/re:z+=he*Math.pow(2,1-ce),z*re>=2&&(E++,re/=2),E+ce>=ue?(te=0,E=ue):E+ce>=1?(te=(z*re-1)*Math.pow(2,ee),E=E+ce):(te=z*Math.pow(2,ce-1)*Math.pow(2,ee),E=0));ee>=8;x[oe+me]=te&255,me+=fe,te/=256,ee-=8);for(E=E<<ee|te,le+=ee;le>0;x[oe+me]=E&255,me+=fe,E/=256,le-=8);x[oe+me-fe]|=be*128}},{}],358:[function(y,we,ve){"use strict";var x=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],z,oe,ie=-1,ee=[],se=!1;function E(){!z||!oe||(z=!1,oe.length?ee=oe.concat(ee):ie=-1,ee.length&&te())}function te(){if(!z){se=!1,z=!0;for(var me=ee.length,fe=setTimeout(E);me;){for(oe=ee,ee=[];oe&&++ie<me;)oe[ie].run();ie=-1,me=ee.length}oe=null,ie=-1,z=!1,clearTimeout(fe)}}for(var re,le=-1,ue=x.length;++le<ue;)if(x[le]&&x[le].test&&x[le].test()){re=x[le].install(te);break}function ce(me,fe){this.fun=me,this.array=fe}ce.prototype.run=function(){var me=this.fun,fe=this.array;switch(fe.length){case 0:return me();case 1:return me(fe[0]);case 2:return me(fe[0],fe[1]);case 3:return me(fe[0],fe[1],fe[2]);default:return me.apply(null,fe)}},we.exports=he;function he(me){var fe=new Array(arguments.length-1);if(arguments.length>1)for(var be=1;be<arguments.length;be++)fe[be-1]=arguments[be];ee.push(new ce(me,fe)),!se&&!z&&(se=!0,re())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,we,ve){(function(x){(function(){"use strict";ve.test=function(){return x.setImmediate?!1:typeof x.MessageChannel!="undefined"},ve.install=function(z){var oe=new x.MessageChannel;return oe.port1.onmessage=z,function(){oe.port2.postMessage(0)}}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,we,ve){(function(x){(function(){"use strict";var z=x.MutationObserver||x.WebKitMutationObserver;ve.test=function(){return z},ve.install=function(oe){var ie=0,ee=new z(oe),se=x.document.createTextNode("");return ee.observe(se,{characterData:!0}),function(){se.data=ie=++ie%2}}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,we,ve){(function(x){(function(){"use strict";ve.test=function(){return typeof x.queueMicrotask=="function"},ve.install=function(z){return function(){x.queueMicrotask(z)}}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(y,we,ve){(function(x){(function(){"use strict";ve.test=function(){return"document"in x&&"onreadystatechange"in x.document.createElement("script")},ve.install=function(z){return function(){var oe=x.document.createElement("script");return oe.onreadystatechange=function(){z(),oe.onreadystatechange=null,oe.parentNode.removeChild(oe),oe=null},x.document.documentElement.appendChild(oe),z}}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,we,ve){"use strict";ve.test=function(){return!0},ve.install=function(x){return function(){setTimeout(x,0)}}},{}],364:[function(y,we,ve){typeof Object.create=="function"?we.exports=function(z,oe){oe&&(z.super_=oe,z.prototype=Object.create(oe.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:we.exports=function(z,oe){if(oe){z.super_=oe;var ie=function(){};ie.prototype=oe.prototype,z.prototype=new ie,z.prototype.constructor=z}}},{}],365:[function(y,we,ve){"use strict";var x=y("has-tostringtag/shams")(),z=y("call-bind/callBound"),oe=z("Object.prototype.toString"),ie=function(te){return x&&te&&typeof te=="object"&&Symbol.toStringTag in te?!1:oe(te)==="[object Arguments]"},ee=function(te){return ie(te)?!0:te!==null&&typeof te=="object"&&typeof te.length=="number"&&te.length>=0&&oe(te)!=="[object Array]"&&oe(te.callee)==="[object Function]"},se=function(){return ie(arguments)}();ie.isLegacyArguments=ee,we.exports=se?ie:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,we,ve){we.exports=function(oe){return oe!=null&&(x(oe)||z(oe)||!!oe._isBuffer)};function x(oe){return!!oe.constructor&&typeof oe.constructor.isBuffer=="function"&&oe.constructor.isBuffer(oe)}function z(oe){return typeof oe.readFloatLE=="function"&&typeof oe.slice=="function"&&x(oe.slice(0,0))}},{}],367:[function(y,we,ve){"use strict";var x=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,oe,ie;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{oe=Object.defineProperty({},"length",{get:function(){throw ie}}),ie={},z(function(){throw 42},null,oe)}catch(Pe){Pe!==ie&&(z=null)}else z=null;var ee=/^\s*class\b/,se=function(ke){try{var de=x.call(ke);return ee.test(de)}catch(ge){return!1}},E=function(ke){try{return se(ke)?!1:(x.call(ke),!0)}catch(de){return!1}},te=Object.prototype.toString,re="[object Object]",le="[object Function]",ue="[object GeneratorFunction]",ce="[object HTMLAllCollection]",he="[object HTML document.all class]",me="[object HTMLCollection]",fe=typeof Symbol=="function"&&!!Symbol.toStringTag,be=!(0 in[,]),Ce=function(){return!1};if(typeof document=="object"){var Te=document.all;te.call(Te)===te.call(document.all)&&(Ce=function(ke){if((be||!ke)&&(typeof ke=="undefined"||typeof ke=="object"))try{var de=te.call(ke);return(de===ce||de===he||de===me||de===re)&&ke("")==null}catch(ge){}return!1})}we.exports=z?function(ke){if(Ce(ke))return!0;if(!ke||typeof ke!="function"&&typeof ke!="object")return!1;try{z(ke,null,oe)}catch(de){if(de!==ie)return!1}return!se(ke)&&E(ke)}:function(ke){if(Ce(ke))return!0;if(!ke||typeof ke!="function"&&typeof ke!="object")return!1;if(fe)return E(ke);if(se(ke))return!1;var de=te.call(ke);return de!==le&&de!==ue&&!/^\[object HTML/.test(de)?!1:E(ke)}},{}],368:[function(y,we,ve){"use strict";var x=Object.prototype.toString,z=Function.prototype.toString,oe=/^\s*(?:function)?\*/,ie=y("has-tostringtag/shams")(),ee=Object.getPrototypeOf,se=function(){if(!ie)return!1;try{return Function("return function*() {}")()}catch(te){}},E;we.exports=function(re){if(typeof re!="function")return!1;if(oe.test(z.call(re)))return!0;if(!ie){var le=x.call(re);return le==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof E=="undefined"){var ue=se();E=ue?ee(ue):!1}return ee(re)===E}},{"has-tostringtag/shams":353}],369:[function(y,we,ve){"use strict";var x=y("which-typed-array");we.exports=function(oe){return!!x(oe)}},{"which-typed-array":420}],370:[function(y,we,ve){var x={}.toString;we.exports=Array.isArray||function(z){return x.call(z)=="[object Array]"}},{}],371:[function(y,we,ve){(function(x){(function(){(function(z,oe){typeof ve=="object"&&typeof we!="undefined"?we.exports=oe(z):typeof Ve=="function"&&Ve.amd?Ve(oe):oe(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x!="undefined"?x:this,function(z){"use strict";z=z||{};var oe=z.Base64,ie="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",se=function(et){for(var st={},Le=0,Ue=et.length;Le<Ue;Le++)st[et.charAt(Le)]=Le;return st}(ee),E=String.fromCharCode,te=function(et){if(et.length<2){var st=et.charCodeAt(0);return st<128?et:st<2048?E(192|st>>>6)+E(128|st&63):E(224|st>>>12&15)+E(128|st>>>6&63)+E(128|st&63)}else{var st=65536+(et.charCodeAt(0)-55296)*1024+(et.charCodeAt(1)-56320);return E(240|st>>>18&7)+E(128|st>>>12&63)+E(128|st>>>6&63)+E(128|st&63)}},re=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,le=function(et){return et.replace(re,te)},ue=function(et){var st=[0,2,1][et.length%3],Le=et.charCodeAt(0)<<16|(et.length>1?et.charCodeAt(1):0)<<8|(et.length>2?et.charCodeAt(2):0),Ue=[ee.charAt(Le>>>18),ee.charAt(Le>>>12&63),st>=2?"=":ee.charAt(Le>>>6&63),st>=1?"=":ee.charAt(Le&63)];return Ue.join("")},ce=z.btoa&&typeof z.btoa=="function"?function(et){return z.btoa(et)}:function(et){if(et.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return et.replace(/[\s\S]{1,3}/g,ue)},he=function(et){return ce(le(String(et)))},me=function(et){return et.replace(/[+\/]/g,function(st){return st=="+"?"-":"_"}).replace(/=/g,"")},fe=function(et,st){return st?me(he(et)):he(et)},be=function(et){return fe(et,!0)},Ce;z.Uint8Array&&(Ce=function(et,st){for(var Le="",Ue=0,rt=et.length;Ue<rt;Ue+=3){var ot=et[Ue],it=et[Ue+1],Ye=et[Ue+2],$e=ot<<16|it<<8|Ye;Le+=ee.charAt($e>>>18)+ee.charAt($e>>>12&63)+(typeof it!="undefined"?ee.charAt($e>>>6&63):"=")+(typeof Ye!="undefined"?ee.charAt($e&63):"=")}return st?me(Le):Le});var Te=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Pe=function(et){switch(et.length){case 4:var st=(7&et.charCodeAt(0))<<18|(63&et.charCodeAt(1))<<12|(63&et.charCodeAt(2))<<6|63&et.charCodeAt(3),Le=st-65536;return E((Le>>>10)+55296)+E((Le&1023)+56320);case 3:return E((15&et.charCodeAt(0))<<12|(63&et.charCodeAt(1))<<6|63&et.charCodeAt(2));default:return E((31&et.charCodeAt(0))<<6|63&et.charCodeAt(1))}},ke=function(et){return et.replace(Te,Pe)},de=function(et){var st=et.length,Le=st%4,Ue=(st>0?se[et.charAt(0)]<<18:0)|(st>1?se[et.charAt(1)]<<12:0)|(st>2?se[et.charAt(2)]<<6:0)|(st>3?se[et.charAt(3)]:0),rt=[E(Ue>>>16),E(Ue>>>8&255),E(Ue&255)];return rt.length-=[0,0,2,1][Le],rt.join("")},ge=z.atob&&typeof z.atob=="function"?function(et){return z.atob(et)}:function(et){return et.replace(/\S{1,4}/g,de)},Se=function(et){return ge(String(et).replace(/[^A-Za-z0-9\+\/]/g,""))},De=function(et){return ke(ge(et))},_e=function(et){return String(et).replace(/[-_]/g,function(st){return st=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Ee=function(et){return De(_e(et))},Oe;z.Uint8Array&&(Oe=function(et){return Uint8Array.from(Se(_e(et)),function(st){return st.charCodeAt(0)})});var He=function(){var et=z.Base64;return z.Base64=oe,et};if(z.Base64={VERSION:ie,atob:Se,btoa:ce,fromBase64:Ee,toBase64:fe,utob:le,encode:fe,encodeURI:be,btou:ke,decode:Ee,noConflict:He,fromUint8Array:Ce,toUint8Array:Oe},typeof Object.defineProperty=="function"){var Xe=function(et){return{value:et,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Xe(function(){return Ee(this)})),Object.defineProperty(String.prototype,"toBase64",Xe(function(et){return fe(this,et)})),Object.defineProperty(String.prototype,"toBase64URI",Xe(function(){return fe(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof we!="undefined"&&we.exports?we.exports.Base64=z.Base64:typeof Ve=="function"&&Ve.amd&&Ve([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(y,we,ve){"use strict";we.exports=z;var x=Object.prototype.hasOwnProperty;function z(oe,ie,ee){if(!oe)throw new TypeError("argument dest is required");if(!ie)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(ie).forEach(function(E){if(!(!ee&&x.call(oe,E))){var te=Object.getOwnPropertyDescriptor(ie,E);Object.defineProperty(oe,E,te)}}),oe}},{}],373:[function(y,we,ve){"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 x(){this._types=Object.create(null),this._extensions=Object.create(null);for(var z=0;z<arguments.length;z++)this.define(arguments[z]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}x.prototype.define=function(z,oe){for(var ie in z){var ee=z[ie].map(function(re){return re.toLowerCase()});ie=ie.toLowerCase();for(var se=0;se<ee.length;se++){var E=ee[se];if(E[0]!=="*"){if(!oe&&E in this._types)throw new Error('Attempt to change mapping for "'+E+'" extension from "'+this._types[E]+'" to "'+ie+'". Pass `force=true` to allow this, otherwise remove "'+E+'" from the list of extensions for "'+ie+'".');this._types[E]=ie}}if(oe||!this._extensions[ie]){var te=ee[0];this._extensions[ie]=te[0]!=="*"?te:te.substr(1)}}},x.prototype.getType=function(z){z=String(z);var oe=z.replace(/^.*[/\\]/,"").toLowerCase(),ie=oe.replace(/^.*\./,"").toLowerCase(),ee=oe.length<z.length,se=ie.length<oe.length-1;return(se||!ee)&&this._types[ie]||null},x.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},we.exports=x},{"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,ve){"use strict";var x=y("./Mime");we.exports=new x(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,we,ve){"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,ve){var x=1e3,z=x*60,oe=z*60,ie=oe*24,ee=ie*7,se=ie*365.25;we.exports=function(ue,ce){ce=ce||{};var he=typeof ue;if(he==="string"&&ue.length>0)return E(ue);if(he==="number"&&isFinite(ue))return ce.long?re(ue):te(ue);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(ue))};function E(ue){if(ue=String(ue),!(ue.length>100)){var ce=/^(-?(?:\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(ce){var he=parseFloat(ce[1]),me=(ce[2]||"ms").toLowerCase();switch(me){case"years":case"year":case"yrs":case"yr":case"y":return he*se;case"weeks":case"week":case"w":return he*ee;case"days":case"day":case"d":return he*ie;case"hours":case"hour":case"hrs":case"hr":case"h":return he*oe;case"minutes":case"minute":case"mins":case"min":case"m":return he*z;case"seconds":case"second":case"secs":case"sec":case"s":return he*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return he;default:return}}}}function te(ue){var ce=Math.abs(ue);return ce>=ie?Math.round(ue/ie)+"d":ce>=oe?Math.round(ue/oe)+"h":ce>=z?Math.round(ue/z)+"m":ce>=x?Math.round(ue/x)+"s":ue+"ms"}function re(ue){var ce=Math.abs(ue);return ce>=ie?le(ue,ce,ie,"day"):ce>=oe?le(ue,ce,oe,"hour"):ce>=z?le(ue,ce,z,"minute"):ce>=x?le(ue,ce,x,"second"):ue+" ms"}function le(ue,ce,he,me){var fe=ce>=he*1.5;return Math.round(ue/he)+" "+me+(fe?"s":"")}},{}],377:[function(y,we,ve){"use strict";var x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable;function ie(se){if(se==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(se)}function ee(){try{if(!Object.assign)return!1;var se=new String("abc");if(se[5]="de",Object.getOwnPropertyNames(se)[0]==="5")return!1;for(var E={},te=0;te<10;te++)E["_"+String.fromCharCode(te)]=te;var re=Object.getOwnPropertyNames(E).map(function(ue){return E[ue]});if(re.join("")!=="0123456789")return!1;var le={};return"abcdefghijklmnopqrst".split("").forEach(function(ue){le[ue]=ue}),Object.keys(Object.assign({},le)).join("")==="abcdefghijklmnopqrst"}catch(ue){return!1}}we.exports=ee()?Object.assign:function(se,E){for(var te,re=ie(se),le,ue=1;ue<arguments.length;ue++){te=Object(arguments[ue]);for(var ce in te)z.call(te,ce)&&(re[ce]=te[ce]);if(x){le=x(te);for(var he=0;he<le.length;he++)oe.call(te,le[he])&&(re[le[he]]=te[le[he]])}}return re}},{}],378:[function(y,we,ve){(function(x){(function(){"use strict";function z(se){if(typeof se!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(se))}function oe(se,E){for(var te="",re=0,le=-1,ue=0,ce,he=0;he<=se.length;++he){if(he<se.length)ce=se.charCodeAt(he);else{if(ce===47)break;ce=47}if(ce===47){if(!(le===he-1||ue===1))if(le!==he-1&&ue===2){if(te.length<2||re!==2||te.charCodeAt(te.length-1)!==46||te.charCodeAt(te.length-2)!==46){if(te.length>2){var me=te.lastIndexOf("/");if(me!==te.length-1){me===-1?(te="",re=0):(te=te.slice(0,me),re=te.length-1-te.lastIndexOf("/")),le=he,ue=0;continue}}else if(te.length===2||te.length===1){te="",re=0,le=he,ue=0;continue}}E&&(te.length>0?te+="/..":te="..",re=2)}else te.length>0?te+="/"+se.slice(le+1,he):te=se.slice(le+1,he),re=he-le-1;le=he,ue=0}else ce===46&&ue!==-1?++ue:ue=-1}return te}function ie(se,E){var te=E.dir||E.root,re=E.base||(E.name||"")+(E.ext||"");return te?te===E.root?te+re:te+se+re:re}var ee={resolve:function(){for(var E="",te=!1,re,le=arguments.length-1;le>=-1&&!te;le--){var ue;le>=0?ue=arguments[le]:(re===void 0&&(re=x.cwd()),ue=re),z(ue),ue.length!==0&&(E=ue+"/"+E,te=ue.charCodeAt(0)===47)}return E=oe(E,!te),te?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(E){if(z(E),E.length===0)return".";var te=E.charCodeAt(0)===47,re=E.charCodeAt(E.length-1)===47;return E=oe(E,!te),E.length===0&&!te&&(E="."),E.length>0&&re&&(E+="/"),te?"/"+E:E},isAbsolute:function(E){return z(E),E.length>0&&E.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var E,te=0;te<arguments.length;++te){var re=arguments[te];z(re),re.length>0&&(E===void 0?E=re:E+="/"+re)}return E===void 0?".":ee.normalize(E)},relative:function(E,te){if(z(E),z(te),E===te||(E=ee.resolve(E),te=ee.resolve(te),E===te))return"";for(var re=1;re<E.length&&E.charCodeAt(re)===47;++re);for(var le=E.length,ue=le-re,ce=1;ce<te.length&&te.charCodeAt(ce)===47;++ce);for(var he=te.length,me=he-ce,fe=ue<me?ue:me,be=-1,Ce=0;Ce<=fe;++Ce){if(Ce===fe){if(me>fe){if(te.charCodeAt(ce+Ce)===47)return te.slice(ce+Ce+1);if(Ce===0)return te.slice(ce+Ce)}else ue>fe&&(E.charCodeAt(re+Ce)===47?be=Ce:Ce===0&&(be=0));break}var Te=E.charCodeAt(re+Ce),Pe=te.charCodeAt(ce+Ce);if(Te!==Pe)break;Te===47&&(be=Ce)}var ke="";for(Ce=re+be+1;Ce<=le;++Ce)(Ce===le||E.charCodeAt(Ce)===47)&&(ke.length===0?ke+="..":ke+="/..");return ke.length>0?ke+te.slice(ce+be):(ce+=be,te.charCodeAt(ce)===47&&++ce,te.slice(ce))},_makeLong:function(E){return E},dirname:function(E){if(z(E),E.length===0)return".";for(var te=E.charCodeAt(0),re=te===47,le=-1,ue=!0,ce=E.length-1;ce>=1;--ce)if(te=E.charCodeAt(ce),te===47){if(!ue){le=ce;break}}else ue=!1;return le===-1?re?"/":".":re&&le===1?"//":E.slice(0,le)},basename:function(E,te){if(te!==void 0&&typeof te!="string")throw new TypeError('"ext" argument must be a string');z(E);var re=0,le=-1,ue=!0,ce;if(te!==void 0&&te.length>0&&te.length<=E.length){if(te.length===E.length&&te===E)return"";var he=te.length-1,me=-1;for(ce=E.length-1;ce>=0;--ce){var fe=E.charCodeAt(ce);if(fe===47){if(!ue){re=ce+1;break}}else me===-1&&(ue=!1,me=ce+1),he>=0&&(fe===te.charCodeAt(he)?--he===-1&&(le=ce):(he=-1,le=me))}return re===le?le=me:le===-1&&(le=E.length),E.slice(re,le)}else{for(ce=E.length-1;ce>=0;--ce)if(E.charCodeAt(ce)===47){if(!ue){re=ce+1;break}}else le===-1&&(ue=!1,le=ce+1);return le===-1?"":E.slice(re,le)}},extname:function(E){z(E);for(var te=-1,re=0,le=-1,ue=!0,ce=0,he=E.length-1;he>=0;--he){var me=E.charCodeAt(he);if(me===47){if(!ue){re=he+1;break}continue}le===-1&&(ue=!1,le=he+1),me===46?te===-1?te=he:ce!==1&&(ce=1):te!==-1&&(ce=-1)}return te===-1||le===-1||ce===0||ce===1&&te===le-1&&te===re+1?"":E.slice(te,le)},format:function(E){if(E===null||typeof E!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof E);return ie("/",E)},parse:function(E){z(E);var te={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return te;var re=E.charCodeAt(0),le=re===47,ue;le?(te.root="/",ue=1):ue=0;for(var ce=-1,he=0,me=-1,fe=!0,be=E.length-1,Ce=0;be>=ue;--be){if(re=E.charCodeAt(be),re===47){if(!fe){he=be+1;break}continue}me===-1&&(fe=!1,me=be+1),re===46?ce===-1?ce=be:Ce!==1&&(Ce=1):ce!==-1&&(Ce=-1)}return ce===-1||me===-1||Ce===0||Ce===1&&ce===me-1&&ce===he+1?me!==-1&&(he===0&&le?te.base=te.name=E.slice(1,me):te.base=te.name=E.slice(he,me)):(he===0&&le?(te.name=E.slice(1,ce),te.base=E.slice(1,me)):(te.name=E.slice(he,ce),te.base=E.slice(he,me)),te.ext=E.slice(ce,me)),he>0?te.dir=E.slice(0,he-1):le&&(te.dir="/"),te},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,we.exports=ee}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,we,ve){(function(x){(function(){(function(){"use strict";var z={function:!0,object:!0},oe=z[typeof window]&&window||this,ie=oe,ee=z[typeof ve]&&ve,se=z[typeof we]&&we&&!we.nodeType&&we,E=ee&&se&&typeof x=="object"&&x;E&&(E.global===E||E.window===E||E.self===E)&&(oe=E);var te=Math.pow(2,53)-1,re=/\bOpera/,le=this,ue=Object.prototype,ce=ue.hasOwnProperty,he=ue.toString;function me(Ee){return Ee=String(Ee),Ee.charAt(0).toUpperCase()+Ee.slice(1)}function fe(Ee,Oe,He){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 Oe&&He&&/^Win/i.test(Ee)&&!/^Windows Phone /i.test(Ee)&&(Xe=Xe[/[\d.]+$/.exec(Ee)])&&(Ee="Windows "+Xe),Ee=String(Ee),Oe&&He&&(Ee=Ee.replace(RegExp(Oe,"i"),He)),Ee=Ce(Ee.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]),Ee}function be(Ee,Oe){var He=-1,Xe=Ee?Ee.length:0;if(typeof Xe=="number"&&Xe>-1&&Xe<=te)for(;++He<Xe;)Oe(Ee[He],He,Ee);else Te(Ee,Oe)}function Ce(Ee){return Ee=Se(Ee),/^(?:webOS|i(?:OS|P))/.test(Ee)?Ee:me(Ee)}function Te(Ee,Oe){for(var He in Ee)ce.call(Ee,He)&&Oe(Ee[He],He,Ee)}function Pe(Ee){return Ee==null?me(Ee):he.call(Ee).slice(8,-1)}function ke(Ee,Oe){var He=Ee!=null?typeof Ee[Oe]:"number";return!/^(?:boolean|number|string|undefined)$/.test(He)&&(He=="object"?!!Ee[Oe]:!0)}function de(Ee){return String(Ee).replace(/([ -])(?!$)/g,"$1?")}function ge(Ee,Oe){var He=null;return be(Ee,function(Xe,et){He=Oe(He,Xe,et,Ee)}),He}function Se(Ee){return String(Ee).replace(/^ +| +$/g,"")}function De(Ee){var Oe=oe,He=Ee&&typeof Ee=="object"&&Pe(Ee)!="String";He&&(Oe=Ee,Ee=null);var Xe=Oe.navigator||{},et=Xe.userAgent||"";Ee||(Ee=et);var st=He||le==ie,Le=He?!!Xe.likeChrome:/\bChrome\b/.test(Ee)&&!/internal|\n/i.test(he.toString()),Ue="Object",rt=He?Ue:"ScriptBridgingProxyObject",ot=He?Ue:"Environment",it=He&&Oe.java?"JavaPackage":Pe(Oe.java),Ye=He?Ue:"RuntimeObject",$e=/\bJava/.test(it)&&Oe.java,Ke=$e&&Pe(Oe.environment)==ot,ft=$e?"a":"\u03B1",tt=$e?"b":"\u03B2",ut=Oe.document||{},lt=Oe.operamini||Oe.opera,Ze=re.test(Ze=He&&lt?lt["[[Class]]"]:Pe(lt))?Ze:lt=null,Ne,ze=Ee,Me=[],Ge=null,ct=Ee==et,mt=ct&&lt&&typeof lt.version=="function"&&lt.version(),nt,Ae=xe([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),je=Fe(["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"]),We=Ie([{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"]),at=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}}),Re=Qe(["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(bt){return ge(bt,function(ht,kt){return ht||RegExp("\\b"+(kt.pattern||de(kt))+"\\b","i").exec(Ee)&&(kt.label||kt)})}function ye(bt){return ge(bt,function(ht,kt,Tt){return ht||(kt[We]||kt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(We)]||RegExp("\\b"+de(Tt)+"(?:\\b|\\w*\\d)","i").exec(Ee))&&Tt})}function Fe(bt){return ge(bt,function(ht,kt){return ht||RegExp("\\b"+(kt.pattern||de(kt))+"\\b","i").exec(Ee)&&(kt.label||kt)})}function Qe(bt){return ge(bt,function(ht,kt){var Tt=kt.pattern||de(kt);return!ht&&(ht=RegExp("\\b"+Tt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(Ee))&&(ht=fe(ht,Tt,kt.label||kt)),ht})}function Ie(bt){return ge(bt,function(ht,kt){var Tt=kt.pattern||de(kt);return!ht&&(ht=RegExp("\\b"+Tt+" *\\d+[.\\w_]*","i").exec(Ee)||RegExp("\\b"+Tt+" *\\w+-[\\w]*","i").exec(Ee)||RegExp("\\b"+Tt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(Ee))&&((ht=String(kt.label&&!RegExp(Tt,"i").test(kt.label)?kt.label:ht).split("/"))[1]&&!/[\d.]+/.test(ht[0])&&(ht[0]+=" "+ht[1]),kt=kt.label||kt,ht=Ce(ht[0].replace(RegExp(Tt,"i"),kt).replace(RegExp("; *(?:"+kt+"[_-])?","i")," ").replace(RegExp("("+kt+")[-_.]?(\\w)","i"),"$1 $2"))),ht})}function vt(bt){return ge(bt,function(ht,kt){return ht||(RegExp(kt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(Ee)||0)[1]||null})}function yt(){return this.description||""}if(Ae&&(Ae=[Ae]),/\bAndroid\b/.test(Re)&&!We&&(Ne=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(Ee))&&(We=Se(Ne[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),at&&!We?We=Ie([at]):at&&We&&(We=We.replace(RegExp("^("+de(at)+")[-_.\\s]","i"),at+" ").replace(RegExp("^("+de(at)+")[-_.]?(\\w)","i"),at+" $2")),(Ne=/\bGoogle TV\b/.exec(We))&&(We=Ne[0]),/\bSimulator\b/i.test(Ee)&&(We=(We?We+" ":"")+"Simulator"),je=="Opera Mini"&&/\bOPiOS\b/.test(Ee)&&Me.push("running in Turbo/Uncompressed mode"),je=="IE"&&/\blike iPhone OS\b/.test(Ee)?(Ne=De(Ee.replace(/like iPhone OS/,"")),at=Ne.manufacturer,We=Ne.product):/^iP/.test(We)?(je||(je="Safari"),Re="iOS"+((Ne=/ OS ([\d_]+)/i.exec(Ee))?" "+Ne[1].replace(/_/g,"."):"")):je=="Konqueror"&&/^Linux\b/i.test(Re)?Re="Kubuntu":at&&at!="Google"&&(/Chrome/.test(je)&&!/\bMobile Safari\b/i.test(Ee)||/\bVita\b/.test(We))||/\bAndroid\b/.test(Re)&&/^Chrome/.test(je)&&/\bVersion\//i.test(Ee)?(je="Android Browser",Re=/\bAndroid\b/.test(Re)?Re:"Android"):je=="Silk"?(/\bMobi/i.test(Ee)||(Re="Android",Me.unshift("desktop mode")),/Accelerated *= *true/i.test(Ee)&&Me.unshift("accelerated")):je=="UC Browser"&&/\bUCWEB\b/.test(Ee)?Me.push("speed mode"):je=="PaleMoon"&&(Ne=/\bFirefox\/([\d.]+)\b/.exec(Ee))?Me.push("identifying as Firefox "+Ne[1]):je=="Firefox"&&(Ne=/\b(Mobile|Tablet|TV)\b/i.exec(Ee))?(Re||(Re="Firefox OS"),We||(We=Ne[1])):!je||(Ne=!/\bMinefield\b/i.test(Ee)&&/\b(?:Firefox|Safari)\b/.exec(je))?(je&&!We&&/[\/,]|^[^(]+?\)/.test(Ee.slice(Ee.indexOf(Ne+"/")+8))&&(je=null),(Ne=We||at||Re)&&(We||at||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Re))&&(je=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Re)?Re:Ne)+" Browser")):je=="Electron"&&(Ne=(/\bChrome\/([\d.]+)\b/.exec(Ee)||0)[1])&&Me.push("Chromium "+Ne),mt||(mt=vt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",de(je),"(?:Firefox|Minefield|NetFront)"])),(Ne=Ae=="iCab"&&parseFloat(mt)>3&&"WebKit"||/\bOpera\b/.test(je)&&(/\bOPR\b/.test(Ee)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(Ee)&&!/^(?:Trident|EdgeHTML)$/.test(Ae)&&"WebKit"||!Ae&&/\bMSIE\b/i.test(Ee)&&(Re=="Mac OS"?"Tasman":"Trident")||Ae=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(je)&&"NetFront")&&(Ae=[Ne]),je=="IE"&&(Ne=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(Ee)||0)[1])?(je+=" Mobile",Re="Windows Phone "+(/\+$/.test(Ne)?Ne:Ne+".x"),Me.unshift("desktop mode")):/\bWPDesktop\b/i.test(Ee)?(je="IE Mobile",Re="Windows Phone 8.x",Me.unshift("desktop mode"),mt||(mt=(/\brv:([\d.]+)/.exec(Ee)||0)[1])):je!="IE"&&Ae=="Trident"&&(Ne=/\brv:([\d.]+)/.exec(Ee))&&(je&&Me.push("identifying as "+je+(mt?" "+mt:"")),je="IE",mt=Ne[1]),ct){if(ke(Oe,"global"))if($e&&(Ne=$e.lang.System,ze=Ne.getProperty("os.arch"),Re=Re||Ne.getProperty("os.name")+" "+Ne.getProperty("os.version")),Ke){try{mt=Oe.require("ringo/engine").version.join("."),je="RingoJS"}catch(bt){(Ne=Oe.system)&&Ne.global.system==Oe.system&&(je="Narwhal",Re||(Re=Ne[0].os||null))}je||(je="Rhino")}else typeof Oe.process=="object"&&!Oe.process.browser&&(Ne=Oe.process)&&(typeof Ne.versions=="object"&&(typeof Ne.versions.electron=="string"?(Me.push("Node "+Ne.versions.node),je="Electron",mt=Ne.versions.electron):typeof Ne.versions.nw=="string"&&(Me.push("Chromium "+mt,"Node "+Ne.versions.node),je="NW.js",mt=Ne.versions.nw)),je||(je="Node.js",ze=Ne.arch,Re=Ne.platform,mt=/[\d.]+/.exec(Ne.version),mt=mt?mt[0]:null));else Pe(Ne=Oe.runtime)==rt?(je="Adobe AIR",Re=Ne.flash.system.Capabilities.os):Pe(Ne=Oe.phantom)==Ye?(je="PhantomJS",mt=(Ne=Ne.version||null)&&Ne.major+"."+Ne.minor+"."+Ne.patch):typeof ut.documentMode=="number"&&(Ne=/\bTrident\/(\d+)/i.exec(Ee))?(mt=[mt,ut.documentMode],(Ne=+Ne[1]+4)!=mt[1]&&(Me.push("IE "+mt[1]+" mode"),Ae&&(Ae[1]=""),mt[1]=Ne),mt=je=="IE"?String(mt[1].toFixed(1)):mt[0]):typeof ut.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(je)&&(Me.push("masking as "+je+" "+mt),je="IE",mt="11.0",Ae=["Trident"],Re="Windows");Re=Re&&Ce(Re)}if(mt&&(Ne=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(mt)||/(?:alpha|beta)(?: ?\d)?/i.exec(Ee+";"+(ct&&Xe.appMinorVersion))||/\bMinefield\b/i.test(Ee)&&"a")&&(Ge=/b/i.test(Ne)?"beta":"alpha",mt=mt.replace(RegExp(Ne+"\\+?$"),"")+(Ge=="beta"?tt:ft)+(/\d+\+?/.exec(Ne)||"")),je=="Fennec"||je=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Re))je="Firefox Mobile";else if(je=="Maxthon"&&mt)mt=mt.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(We))We=="Xbox 360"&&(Re=null),We=="Xbox 360"&&/\bIEMobile\b/.test(Ee)&&Me.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(je)||je&&!We&&!/Browser|Mobi/.test(je))&&(Re=="Windows CE"||/Mobi/i.test(Ee)))je+=" Mobile";else if(je=="IE"&&ct)try{Oe.external===null&&Me.unshift("platform preview")}catch(bt){Me.unshift("embedded")}else(/\bBlackBerry\b/.test(We)||/\bBB10\b/.test(Ee))&&(Ne=(RegExp(We.replace(/ +/g," *")+"/([.\\d]+)","i").exec(Ee)||0)[1]||mt)?(Ne=[Ne,/BB10/.test(Ee)],Re=(Ne[1]?(We=null,at="BlackBerry"):"Device Software")+" "+Ne[0],mt=null):this!=Te&&We!="Wii"&&(ct&&lt||/Opera/.test(je)&&/\b(?:MSIE|Firefox)\b/i.test(Ee)||je=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Re)||je=="IE"&&(Re&&!/^Win/.test(Re)&&mt>5.5||/\bWindows XP\b/.test(Re)&&mt>8||mt==8&&!/\bTrident\b/.test(Ee)))&&!re.test(Ne=De.call(Te,Ee.replace(re,"")+";"))&&Ne.name&&(Ne="ing as "+Ne.name+((Ne=Ne.version)?" "+Ne:""),re.test(je)?(/\bIE\b/.test(Ne)&&Re=="Mac OS"&&(Re=null),Ne="identify"+Ne):(Ne="mask"+Ne,Ze?je=Ce(Ze.replace(/([a-z])([A-Z])/g,"$1 $2")):je="Opera",/\bIE\b/.test(Ne)&&(Re=null),ct||(mt=null)),Ae=["Presto"],Me.push(Ne));(Ne=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(Ee)||0)[1])&&(Ne=[parseFloat(Ne.replace(/\.(\d)$/,".0$1")),Ne],je=="Safari"&&Ne[1].slice(-1)=="+"?(je="WebKit Nightly",Ge="alpha",mt=Ne[1].slice(0,-1)):(mt==Ne[1]||mt==(Ne[2]=(/\bSafari\/([\d.]+\+?)/i.exec(Ee)||0)[1]))&&(mt=null),Ne[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(Ee)||0)[1],Ne[0]==537.36&&Ne[2]==537.36&&parseFloat(Ne[1])>=28&&Ae=="WebKit"&&(Ae=["Blink"]),!ct||!Le&&!Ne[1]?(Ae&&(Ae[1]="like Safari"),Ne=(Ne=Ne[0],Ne<400?1:Ne<500?2:Ne<526?3:Ne<533?4:Ne<534?"4+":Ne<535?5:Ne<537?6:Ne<538?7:Ne<601?8:Ne<602?9:Ne<604?10:Ne<606?11:Ne<608?12:"12")):(Ae&&(Ae[1]="like Chrome"),Ne=Ne[1]||(Ne=Ne[0],Ne<530?1:Ne<532?2:Ne<532.05?3:Ne<533?4:Ne<534.03?5:Ne<534.07?6:Ne<534.1?7:Ne<534.13?8:Ne<534.16?9:Ne<534.24?10:Ne<534.3?11:Ne<535.01?12:Ne<535.02?"13+":Ne<535.07?15:Ne<535.11?16:Ne<535.19?17:Ne<536.05?18:Ne<536.1?19:Ne<537.01?20:Ne<537.11?"21+":Ne<537.13?23:Ne<537.18?24:Ne<537.24?25:Ne<537.36?26:Ae!="Blink"?"27":"28")),Ae&&(Ae[1]+=" "+(Ne+=typeof Ne=="number"?".x":/[.+]/.test(Ne)?"":"+")),je=="Safari"&&(!mt||parseInt(mt)>45)?mt=Ne:je=="Chrome"&&/\bHeadlessChrome/i.test(Ee)&&Me.unshift("headless")),je=="Opera"&&(Ne=/\bzbov|zvav$/.exec(Re))?(je+=" ",Me.unshift("desktop mode"),Ne=="zvav"?(je+="Mini",mt=null):je+="Mobile",Re=Re.replace(RegExp(" *"+Ne+"$"),"")):je=="Safari"&&/\bChrome\b/.exec(Ae&&Ae[1])?(Me.unshift("desktop mode"),je="Chrome Mobile",mt=null,/\bOS X\b/.test(Re)?(at="Apple",Re="iOS 4.3+"):Re=null):/\bSRWare Iron\b/.test(je)&&!mt&&(mt=vt("Chrome")),mt&&mt.indexOf(Ne=/[\d.]+$/.exec(Re))==0&&Ee.indexOf("/"+Ne+"-")>-1&&(Re=Se(Re.replace(Ne,""))),Re&&Re.indexOf(je)!=-1&&!RegExp(je+" OS").test(Re)&&(Re=Re.replace(RegExp(" *"+de(je)+" *"),"")),Ae&&!/\b(?:Avant|Nook)\b/.test(je)&&(/Browser|Lunascape|Maxthon/.test(je)||je!="Safari"&&/^iOS/.test(Re)&&/\bSafari\b/.test(Ae[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(je)&&Ae[1])&&(Ne=Ae[Ae.length-1])&&Me.push(Ne),Me.length&&(Me=["("+Me.join("; ")+")"]),at&&We&&We.indexOf(at)<0&&Me.push("on "+at),We&&Me.push((/^on /.test(Me[Me.length-1])?"":"on ")+We),Re&&(Ne=/ ([\d.+]+)$/.exec(Re),nt=Ne&&Re.charAt(Re.length-Ne[0].length-1)=="/",Re={architecture:32,family:Ne&&!nt?Re.replace(Ne[0],""):Re,version:Ne?Ne[1]:null,toString:function(){var bt=this.version;return this.family+(bt&&!nt?" "+bt:"")+(this.architecture==64?" 64-bit":"")}}),(Ne=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ze))&&!/\bi686\b/i.test(ze)?(Re&&(Re.architecture=64,Re.family=Re.family.replace(RegExp(" *"+Ne),"")),je&&(/\bWOW64\b/i.test(Ee)||ct&&/\w(?:86|32)$/.test(Xe.cpuClass||Xe.platform)&&!/\bWin64; x64\b/i.test(Ee))&&Me.unshift("32-bit")):Re&&/^OS X/.test(Re.family)&&je=="Chrome"&&parseFloat(mt)>=39&&(Re.architecture=64),Ee||(Ee=null);var xt={};return xt.description=Ee,xt.layout=Ae&&Ae[0],xt.manufacturer=at,xt.name=je,xt.prerelease=Ge,xt.product=We,xt.ua=Ee,xt.version=je&&mt,xt.os=Re||{architecture:null,family:null,version:null,toString:function(){return"null"}},xt.parse=De,xt.toString=yt,xt.version&&Me.unshift(mt),xt.name&&Me.unshift(je),Re&&je&&!(Re==String(Re).split(" ")[0]&&(Re==je.split(" ")[0]||We))&&Me.push(We?"("+Re+")":"on "+Re),Me.length&&(xt.description=Me.join(" ")),xt}var _e=De();typeof Ve=="function"&&typeof Ve.amd=="object"&&Ve.amd?(oe.platform=_e,Ve(function(){return _e})):ee&&se?Te(_e,function(Ee,Oe){ee[Oe]=Ee}):oe.platform=_e}).call(this)}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,we,ve){(function(x){(function(){"use strict";typeof x=="undefined"||!x.version||x.version.indexOf("v0.")===0||x.version.indexOf("v1.")===0&&x.version.indexOf("v1.8.")!==0?we.exports={nextTick:z}:we.exports=x;function z(oe,ie,ee,se){if(typeof oe!="function")throw new TypeError('"callback" argument must be a function');var E=arguments.length,te,re;switch(E){case 0:case 1:return x.nextTick(oe);case 2:return x.nextTick(function(){oe.call(null,ie)});case 3:return x.nextTick(function(){oe.call(null,ie,ee)});case 4:return x.nextTick(function(){oe.call(null,ie,ee,se)});default:for(te=new Array(E-1),re=0;re<te.length;)te[re++]=arguments[re];return x.nextTick(function(){oe.apply(null,te)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,we,ve){var x=we.exports={},z,oe;function ie(){throw new Error("setTimeout has not been defined")}function ee(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?z=setTimeout:z=ie}catch(be){z=ie}try{typeof clearTimeout=="function"?oe=clearTimeout:oe=ee}catch(be){oe=ee}})();function se(be){if(z===setTimeout)return setTimeout(be,0);if((z===ie||!z)&&setTimeout)return z=setTimeout,setTimeout(be,0);try{return z(be,0)}catch(Ce){try{return z.call(null,be,0)}catch(Te){return z.call(this,be,0)}}}function E(be){if(oe===clearTimeout)return clearTimeout(be);if((oe===ee||!oe)&&clearTimeout)return oe=clearTimeout,clearTimeout(be);try{return oe(be)}catch(Ce){try{return oe.call(null,be)}catch(Te){return oe.call(this,be)}}}var te=[],re=!1,le,ue=-1;function ce(){!re||!le||(re=!1,le.length?te=le.concat(te):ue=-1,te.length&&he())}function he(){if(!re){var be=se(ce);re=!0;for(var Ce=te.length;Ce;){for(le=te,te=[];++ue<Ce;)le&&le[ue].run();ue=-1,Ce=te.length}le=null,re=!1,E(be)}}x.nextTick=function(be){var Ce=new Array(arguments.length-1);if(arguments.length>1)for(var Te=1;Te<arguments.length;Te++)Ce[Te-1]=arguments[Te];te.push(new me(be,Ce)),te.length===1&&!re&&se(he)};function me(be,Ce){this.fun=be,this.array=Ce}me.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={};function fe(){}x.on=fe,x.addListener=fe,x.once=fe,x.off=fe,x.removeListener=fe,x.removeAllListeners=fe,x.emit=fe,x.prependListener=fe,x.prependOnceListener=fe,x.listeners=function(be){return[]},x.binding=function(be){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(be){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},{}],382:[function(y,we,ve){(function(x){(function(){(function(z){var oe=typeof ve=="object"&&ve&&!ve.nodeType&&ve,ie=typeof we=="object"&&we&&!we.nodeType&&we,ee=typeof x=="object"&&x;(ee.global===ee||ee.window===ee||ee.self===ee)&&(z=ee);var se,E=2147483647,te=36,re=1,le=26,ue=38,ce=700,he=72,me=128,fe="-",be=/^xn--/,Ce=/[^\x20-\x7E]/,Te=/[\x2E\u3002\uFF0E\uFF61]/g,Pe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=te-re,de=Math.floor,ge=String.fromCharCode,Se;function De(it){throw new RangeError(Pe[it])}function _e(it,Ye){for(var $e=it.length,Ke=[];$e--;)Ke[$e]=Ye(it[$e]);return Ke}function Ee(it,Ye){var $e=it.split("@"),Ke="";$e.length>1&&(Ke=$e[0]+"@",it=$e[1]),it=it.replace(Te,".");var ft=it.split("."),tt=_e(ft,Ye).join(".");return Ke+tt}function Oe(it){for(var Ye=[],$e=0,Ke=it.length,ft,tt;$e<Ke;)ft=it.charCodeAt($e++),ft>=55296&&ft<=56319&&$e<Ke?(tt=it.charCodeAt($e++),(tt&64512)==56320?Ye.push(((ft&1023)<<10)+(tt&1023)+65536):(Ye.push(ft),$e--)):Ye.push(ft);return Ye}function He(it){return _e(it,function(Ye){var $e="";return Ye>65535&&(Ye-=65536,$e+=ge(Ye>>>10&1023|55296),Ye=56320|Ye&1023),$e+=ge(Ye),$e}).join("")}function Xe(it){return it-48<10?it-22:it-65<26?it-65:it-97<26?it-97:te}function et(it,Ye){return it+22+75*(it<26)-((Ye!=0)<<5)}function st(it,Ye,$e){var Ke=0;for(it=$e?de(it/ce):it>>1,it+=de(it/Ye);it>ke*le>>1;Ke+=te)it=de(it/ke);return de(Ke+(ke+1)*it/(it+ue))}function Le(it){var Ye=[],$e=it.length,Ke,ft=0,tt=me,ut=he,lt,Ze,Ne,ze,Me,Ge,ct,mt,nt;for(lt=it.lastIndexOf(fe),lt<0&&(lt=0),Ze=0;Ze<lt;++Ze)it.charCodeAt(Ze)>=128&&De("not-basic"),Ye.push(it.charCodeAt(Ze));for(Ne=lt>0?lt+1:0;Ne<$e;){for(ze=ft,Me=1,Ge=te;Ne>=$e&&De("invalid-input"),ct=Xe(it.charCodeAt(Ne++)),(ct>=te||ct>de((E-ft)/Me))&&De("overflow"),ft+=ct*Me,mt=Ge<=ut?re:Ge>=ut+le?le:Ge-ut,!(ct<mt);Ge+=te)nt=te-mt,Me>de(E/nt)&&De("overflow"),Me*=nt;Ke=Ye.length+1,ut=st(ft-ze,Ke,ze==0),de(ft/Ke)>E-tt&&De("overflow"),tt+=de(ft/Ke),ft%=Ke,Ye.splice(ft++,0,tt)}return He(Ye)}function Ue(it){var Ye,$e,Ke,ft,tt,ut,lt,Ze,Ne,ze,Me,Ge=[],ct,mt,nt,Ae;for(it=Oe(it),ct=it.length,Ye=me,$e=0,tt=he,ut=0;ut<ct;++ut)Me=it[ut],Me<128&&Ge.push(ge(Me));for(Ke=ft=Ge.length,ft&&Ge.push(fe);Ke<ct;){for(lt=E,ut=0;ut<ct;++ut)Me=it[ut],Me>=Ye&&Me<lt&&(lt=Me);for(mt=Ke+1,lt-Ye>de((E-$e)/mt)&&De("overflow"),$e+=(lt-Ye)*mt,Ye=lt,ut=0;ut<ct;++ut)if(Me=it[ut],Me<Ye&&++$e>E&&De("overflow"),Me==Ye){for(Ze=$e,Ne=te;ze=Ne<=tt?re:Ne>=tt+le?le:Ne-tt,!(Ze<ze);Ne+=te)Ae=Ze-ze,nt=te-ze,Ge.push(ge(et(ze+Ae%nt,0))),Ze=de(Ae/nt);Ge.push(ge(et(Ze,0))),tt=st($e,mt,Ke==ft),$e=0,++Ke}++$e,++Ye}return Ge.join("")}function rt(it){return Ee(it,function(Ye){return be.test(Ye)?Le(Ye.slice(4).toLowerCase()):Ye})}function ot(it){return Ee(it,function(Ye){return Ce.test(Ye)?"xn--"+Ue(Ye):Ye})}if(se={version:"1.4.1",ucs2:{decode:Oe,encode:He},decode:Le,encode:Ue,toASCII:ot,toUnicode:rt},typeof Ve=="function"&&typeof Ve.amd=="object"&&Ve.amd)Ve("punycode",function(){return se});else if(oe&&ie)if(we.exports==oe)ie.exports=se;else for(Se in se)se.hasOwnProperty(Se)&&(oe[Se]=se[Se]);else z.punycode=se})(this)}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,we,ve){"use strict";function x(oe,ie){return Object.prototype.hasOwnProperty.call(oe,ie)}we.exports=function(oe,ie,ee,se){ie=ie||"&",ee=ee||"=";var E={};if(typeof oe!="string"||oe.length===0)return E;var te=/\+/g;oe=oe.split(ie);var re=1e3;se&&typeof se.maxKeys=="number"&&(re=se.maxKeys);var le=oe.length;re>0&&le>re&&(le=re);for(var ue=0;ue<le;++ue){var ce=oe[ue].replace(te,"%20"),he=ce.indexOf(ee),me,fe,be,Ce;he>=0?(me=ce.substr(0,he),fe=ce.substr(he+1)):(me=ce,fe=""),be=decodeURIComponent(me),Ce=decodeURIComponent(fe),x(E,be)?z(E[be])?E[be].push(Ce):E[be]=[E[be],Ce]:E[be]=Ce}return E};var z=Array.isArray||function(oe){return Object.prototype.toString.call(oe)==="[object Array]"}},{}],384:[function(y,we,ve){"use strict";var x=function(ee){switch(typeof ee){case"string":return ee;case"boolean":return ee?"true":"false";case"number":return isFinite(ee)?ee:"";default:return""}};we.exports=function(ee,se,E,te){return se=se||"&",E=E||"=",ee===null&&(ee=void 0),typeof ee=="object"?oe(ie(ee),function(re){var le=encodeURIComponent(x(re))+E;return z(ee[re])?oe(ee[re],function(ue){return le+encodeURIComponent(x(ue))}).join(se):le+encodeURIComponent(x(ee[re]))}).join(se):te?encodeURIComponent(x(te))+E+encodeURIComponent(x(ee)):""};var z=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function oe(ee,se){if(ee.map)return ee.map(se);for(var E=[],te=0;te<ee.length;te++)E.push(se(ee[te],te));return E}var ie=Object.keys||function(ee){var se=[];for(var E in ee)Object.prototype.hasOwnProperty.call(ee,E)&&se.push(E);return se}},{}],385:[function(y,we,ve){"use strict";ve.decode=ve.parse=y("./decode"),ve.encode=ve.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,we,ve){"use strict";var x=y("process-nextick-args"),z=Object.keys||function(ce){var he=[];for(var me in ce)he.push(me);return he};we.exports=re;var oe=Object.create(y("core-util-is"));oe.inherits=y("inherits");var ie=y("./_stream_readable"),ee=y("./_stream_writable");oe.inherits(re,ie);for(var se=z(ee.prototype),E=0;E<se.length;E++){var te=se[E];re.prototype[te]||(re.prototype[te]=ee.prototype[te])}function re(ce){if(!(this instanceof re))return new re(ce);ie.call(this,ce),ee.call(this,ce),ce&&ce.readable===!1&&(this.readable=!1),ce&&ce.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,ce&&ce.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",le)}Object.defineProperty(re.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function le(){this.allowHalfOpen||this._writableState.ended||x.nextTick(ue,this)}function ue(ce){ce.end()}Object.defineProperty(re.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ce){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ce,this._writableState.destroyed=ce)}}),re.prototype._destroy=function(ce,he){this.push(null),this.end(),x.nextTick(he,ce)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(y,we,ve){"use strict";we.exports=oe;var x=y("./_stream_transform"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(oe,x);function oe(ie){if(!(this instanceof oe))return new oe(ie);x.call(this,ie)}oe.prototype._transform=function(ie,ee,se){se(null,ie)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,we,ve){(function(x,z){(function(){"use strict";var oe=y("process-nextick-args");we.exports=ge;var ie=y("isarray"),ee;ge.ReadableState=de;var se=y("events").EventEmitter,E=function(Me,Ge){return Me.listeners(Ge).length},te=y("./internal/streams/stream"),re=y("safe-buffer").Buffer,le=z.Uint8Array||function(){};function ue(Me){return re.from(Me)}function ce(Me){return re.isBuffer(Me)||Me instanceof le}var he=Object.create(y("core-util-is"));he.inherits=y("inherits");var me=y("util"),fe=void 0;me&&me.debuglog?fe=me.debuglog("stream"):fe=function(){};var be=y("./internal/streams/BufferList"),Ce=y("./internal/streams/destroy"),Te;he.inherits(ge,te);var Pe=["error","close","destroy","pause","resume"];function ke(Me,Ge,ct){if(typeof Me.prependListener=="function")return Me.prependListener(Ge,ct);!Me._events||!Me._events[Ge]?Me.on(Ge,ct):ie(Me._events[Ge])?Me._events[Ge].unshift(ct):Me._events[Ge]=[ct,Me._events[Ge]]}function de(Me,Ge){ee=ee||y("./_stream_duplex"),Me=Me||{};var ct=Ge instanceof ee;this.objectMode=!!Me.objectMode,ct&&(this.objectMode=this.objectMode||!!Me.readableObjectMode);var mt=Me.highWaterMark,nt=Me.readableHighWaterMark,Ae=this.objectMode?16:16*1024;mt||mt===0?this.highWaterMark=mt:ct&&(nt||nt===0)?this.highWaterMark=nt:this.highWaterMark=Ae,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new be,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=Me.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Me.encoding&&(Te||(Te=y("string_decoder/").StringDecoder),this.decoder=new Te(Me.encoding),this.encoding=Me.encoding)}function ge(Me){if(ee=ee||y("./_stream_duplex"),!(this instanceof ge))return new ge(Me);this._readableState=new de(Me,this),this.readable=!0,Me&&(typeof Me.read=="function"&&(this._read=Me.read),typeof Me.destroy=="function"&&(this._destroy=Me.destroy)),te.call(this)}Object.defineProperty(ge.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Me){this._readableState&&(this._readableState.destroyed=Me)}}),ge.prototype.destroy=Ce.destroy,ge.prototype._undestroy=Ce.undestroy,ge.prototype._destroy=function(Me,Ge){this.push(null),Ge(Me)},ge.prototype.push=function(Me,Ge){var ct=this._readableState,mt;return ct.objectMode?mt=!0:typeof Me=="string"&&(Ge=Ge||ct.defaultEncoding,Ge!==ct.encoding&&(Me=re.from(Me,Ge),Ge=""),mt=!0),Se(this,Me,Ge,!1,mt)},ge.prototype.unshift=function(Me){return Se(this,Me,null,!0,!1)};function Se(Me,Ge,ct,mt,nt){var Ae=Me._readableState;if(Ge===null)Ae.reading=!1,et(Me,Ae);else{var je;nt||(je=_e(Ae,Ge)),je?Me.emit("error",je):Ae.objectMode||Ge&&Ge.length>0?(typeof Ge!="string"&&!Ae.objectMode&&Object.getPrototypeOf(Ge)!==re.prototype&&(Ge=ue(Ge)),mt?Ae.endEmitted?Me.emit("error",new Error("stream.unshift() after end event")):De(Me,Ae,Ge,!0):Ae.ended?Me.emit("error",new Error("stream.push() after EOF")):(Ae.reading=!1,Ae.decoder&&!ct?(Ge=Ae.decoder.write(Ge),Ae.objectMode||Ge.length!==0?De(Me,Ae,Ge,!1):Ue(Me,Ae)):De(Me,Ae,Ge,!1))):mt||(Ae.reading=!1)}return Ee(Ae)}function De(Me,Ge,ct,mt){Ge.flowing&&Ge.length===0&&!Ge.sync?(Me.emit("data",ct),Me.read(0)):(Ge.length+=Ge.objectMode?1:ct.length,mt?Ge.buffer.unshift(ct):Ge.buffer.push(ct),Ge.needReadable&&st(Me)),Ue(Me,Ge)}function _e(Me,Ge){var ct;return!ce(Ge)&&typeof Ge!="string"&&Ge!==void 0&&!Me.objectMode&&(ct=new TypeError("Invalid non-string/buffer chunk")),ct}function Ee(Me){return!Me.ended&&(Me.needReadable||Me.length<Me.highWaterMark||Me.length===0)}ge.prototype.isPaused=function(){return this._readableState.flowing===!1},ge.prototype.setEncoding=function(Me){return Te||(Te=y("string_decoder/").StringDecoder),this._readableState.decoder=new Te(Me),this._readableState.encoding=Me,this};var Oe=8388608;function He(Me){return Me>=Oe?Me=Oe:(Me--,Me|=Me>>>1,Me|=Me>>>2,Me|=Me>>>4,Me|=Me>>>8,Me|=Me>>>16,Me++),Me}function Xe(Me,Ge){return Me<=0||Ge.length===0&&Ge.ended?0:Ge.objectMode?1:Me!==Me?Ge.flowing&&Ge.length?Ge.buffer.head.data.length:Ge.length:(Me>Ge.highWaterMark&&(Ge.highWaterMark=He(Me)),Me<=Ge.length?Me:Ge.ended?Ge.length:(Ge.needReadable=!0,0))}ge.prototype.read=function(Me){fe("read",Me),Me=parseInt(Me,10);var Ge=this._readableState,ct=Me;if(Me!==0&&(Ge.emittedReadable=!1),Me===0&&Ge.needReadable&&(Ge.length>=Ge.highWaterMark||Ge.ended))return fe("read: emitReadable",Ge.length,Ge.ended),Ge.length===0&&Ge.ended?Ze(this):st(this),null;if(Me=Xe(Me,Ge),Me===0&&Ge.ended)return Ge.length===0&&Ze(this),null;var mt=Ge.needReadable;fe("need readable",mt),(Ge.length===0||Ge.length-Me<Ge.highWaterMark)&&(mt=!0,fe("length less than watermark",mt)),Ge.ended||Ge.reading?(mt=!1,fe("reading or ended",mt)):mt&&(fe("do read"),Ge.reading=!0,Ge.sync=!0,Ge.length===0&&(Ge.needReadable=!0),this._read(Ge.highWaterMark),Ge.sync=!1,Ge.reading||(Me=Xe(ct,Ge)));var nt;return Me>0?nt=ft(Me,Ge):nt=null,nt===null?(Ge.needReadable=!0,Me=0):Ge.length-=Me,Ge.length===0&&(Ge.ended||(Ge.needReadable=!0),ct!==Me&&Ge.ended&&Ze(this)),nt!==null&&this.emit("data",nt),nt};function et(Me,Ge){if(!Ge.ended){if(Ge.decoder){var ct=Ge.decoder.end();ct&&ct.length&&(Ge.buffer.push(ct),Ge.length+=Ge.objectMode?1:ct.length)}Ge.ended=!0,st(Me)}}function st(Me){var Ge=Me._readableState;Ge.needReadable=!1,Ge.emittedReadable||(fe("emitReadable",Ge.flowing),Ge.emittedReadable=!0,Ge.sync?oe.nextTick(Le,Me):Le(Me))}function Le(Me){fe("emit readable"),Me.emit("readable"),Ke(Me)}function Ue(Me,Ge){Ge.readingMore||(Ge.readingMore=!0,oe.nextTick(rt,Me,Ge))}function rt(Me,Ge){for(var ct=Ge.length;!Ge.reading&&!Ge.flowing&&!Ge.ended&&Ge.length<Ge.highWaterMark&&(fe("maybeReadMore read 0"),Me.read(0),ct!==Ge.length);)ct=Ge.length;Ge.readingMore=!1}ge.prototype._read=function(Me){this.emit("error",new Error("_read() is not implemented"))},ge.prototype.pipe=function(Me,Ge){var ct=this,mt=this._readableState;switch(mt.pipesCount){case 0:mt.pipes=Me;break;case 1:mt.pipes=[mt.pipes,Me];break;default:mt.pipes.push(Me);break}mt.pipesCount+=1,fe("pipe count=%d opts=%j",mt.pipesCount,Ge);var nt=(!Ge||Ge.end!==!1)&&Me!==x.stdout&&Me!==x.stderr,Ae=nt?We:yt;mt.endEmitted?oe.nextTick(Ae):ct.once("end",Ae),Me.on("unpipe",je);function je(xt,bt){fe("onunpipe"),xt===ct&&bt&&bt.hasUnpiped===!1&&(bt.hasUnpiped=!0,xe())}function We(){fe("onend"),Me.end()}var at=ot(ct);Me.on("drain",at);var Re=!1;function xe(){fe("cleanup"),Me.removeListener("close",Ie),Me.removeListener("finish",vt),Me.removeListener("drain",at),Me.removeListener("error",Qe),Me.removeListener("unpipe",je),ct.removeListener("end",We),ct.removeListener("end",yt),ct.removeListener("data",Fe),Re=!0,mt.awaitDrain&&(!Me._writableState||Me._writableState.needDrain)&&at()}var ye=!1;ct.on("data",Fe);function Fe(xt){fe("ondata"),ye=!1;var bt=Me.write(xt);bt===!1&&!ye&&((mt.pipesCount===1&&mt.pipes===Me||mt.pipesCount>1&&ze(mt.pipes,Me)!==-1)&&!Re&&(fe("false write response, pause",ct._readableState.awaitDrain),ct._readableState.awaitDrain++,ye=!0),ct.pause())}function Qe(xt){fe("onerror",xt),yt(),Me.removeListener("error",Qe),E(Me,"error")===0&&Me.emit("error",xt)}ke(Me,"error",Qe);function Ie(){Me.removeListener("finish",vt),yt()}Me.once("close",Ie);function vt(){fe("onfinish"),Me.removeListener("close",Ie),yt()}Me.once("finish",vt);function yt(){fe("unpipe"),ct.unpipe(Me)}return Me.emit("pipe",ct),mt.flowing||(fe("pipe resume"),ct.resume()),Me};function ot(Me){return function(){var Ge=Me._readableState;fe("pipeOnDrain",Ge.awaitDrain),Ge.awaitDrain&&Ge.awaitDrain--,Ge.awaitDrain===0&&E(Me,"data")&&(Ge.flowing=!0,Ke(Me))}}ge.prototype.unpipe=function(Me){var Ge=this._readableState,ct={hasUnpiped:!1};if(Ge.pipesCount===0)return this;if(Ge.pipesCount===1)return Me&&Me!==Ge.pipes?this:(Me||(Me=Ge.pipes),Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1,Me&&Me.emit("unpipe",this,ct),this);if(!Me){var mt=Ge.pipes,nt=Ge.pipesCount;Ge.pipes=null,Ge.pipesCount=0,Ge.flowing=!1;for(var Ae=0;Ae<nt;Ae++)mt[Ae].emit("unpipe",this,ct);return this}var je=ze(Ge.pipes,Me);return je===-1?this:(Ge.pipes.splice(je,1),Ge.pipesCount-=1,Ge.pipesCount===1&&(Ge.pipes=Ge.pipes[0]),Me.emit("unpipe",this,ct),this)},ge.prototype.on=function(Me,Ge){var ct=te.prototype.on.call(this,Me,Ge);if(Me==="data")this._readableState.flowing!==!1&&this.resume();else if(Me==="readable"){var mt=this._readableState;!mt.endEmitted&&!mt.readableListening&&(mt.readableListening=mt.needReadable=!0,mt.emittedReadable=!1,mt.reading?mt.length&&st(this):oe.nextTick(it,this))}return ct},ge.prototype.addListener=ge.prototype.on;function it(Me){fe("readable nexttick read 0"),Me.read(0)}ge.prototype.resume=function(){var Me=this._readableState;return Me.flowing||(fe("resume"),Me.flowing=!0,Ye(this,Me)),this};function Ye(Me,Ge){Ge.resumeScheduled||(Ge.resumeScheduled=!0,oe.nextTick($e,Me,Ge))}function $e(Me,Ge){Ge.reading||(fe("resume read 0"),Me.read(0)),Ge.resumeScheduled=!1,Ge.awaitDrain=0,Me.emit("resume"),Ke(Me),Ge.flowing&&!Ge.reading&&Me.read(0)}ge.prototype.pause=function(){return fe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(fe("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ke(Me){var Ge=Me._readableState;for(fe("flow",Ge.flowing);Ge.flowing&&Me.read()!==null;);}ge.prototype.wrap=function(Me){var Ge=this,ct=this._readableState,mt=!1;Me.on("end",function(){if(fe("wrapped end"),ct.decoder&&!ct.ended){var je=ct.decoder.end();je&&je.length&&Ge.push(je)}Ge.push(null)}),Me.on("data",function(je){if(fe("wrapped data"),ct.decoder&&(je=ct.decoder.write(je)),!(ct.objectMode&&je==null)&&!(!ct.objectMode&&(!je||!je.length))){var We=Ge.push(je);We||(mt=!0,Me.pause())}});for(var nt in Me)this[nt]===void 0&&typeof Me[nt]=="function"&&(this[nt]=function(je){return function(){return Me[je].apply(Me,arguments)}}(nt));for(var Ae=0;Ae<Pe.length;Ae++)Me.on(Pe[Ae],this.emit.bind(this,Pe[Ae]));return this._read=function(je){fe("wrapped _read",je),mt&&(mt=!1,Me.resume())},this},Object.defineProperty(ge.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),ge._fromList=ft;function ft(Me,Ge){if(Ge.length===0)return null;var ct;return Ge.objectMode?ct=Ge.buffer.shift():!Me||Me>=Ge.length?(Ge.decoder?ct=Ge.buffer.join(""):Ge.buffer.length===1?ct=Ge.buffer.head.data:ct=Ge.buffer.concat(Ge.length),Ge.buffer.clear()):ct=tt(Me,Ge.buffer,Ge.decoder),ct}function tt(Me,Ge,ct){var mt;return Me<Ge.head.data.length?(mt=Ge.head.data.slice(0,Me),Ge.head.data=Ge.head.data.slice(Me)):Me===Ge.head.data.length?mt=Ge.shift():mt=ct?ut(Me,Ge):lt(Me,Ge),mt}function ut(Me,Ge){var ct=Ge.head,mt=1,nt=ct.data;for(Me-=nt.length;ct=ct.next;){var Ae=ct.data,je=Me>Ae.length?Ae.length:Me;if(je===Ae.length?nt+=Ae:nt+=Ae.slice(0,Me),Me-=je,Me===0){je===Ae.length?(++mt,ct.next?Ge.head=ct.next:Ge.head=Ge.tail=null):(Ge.head=ct,ct.data=Ae.slice(je));break}++mt}return Ge.length-=mt,nt}function lt(Me,Ge){var ct=re.allocUnsafe(Me),mt=Ge.head,nt=1;for(mt.data.copy(ct),Me-=mt.data.length;mt=mt.next;){var Ae=mt.data,je=Me>Ae.length?Ae.length:Me;if(Ae.copy(ct,ct.length-Me,0,je),Me-=je,Me===0){je===Ae.length?(++nt,mt.next?Ge.head=mt.next:Ge.head=Ge.tail=null):(Ge.head=mt,mt.data=Ae.slice(je));break}++nt}return Ge.length-=nt,ct}function Ze(Me){var Ge=Me._readableState;if(Ge.length>0)throw new Error('"endReadable()" called on non-empty stream');Ge.endEmitted||(Ge.ended=!0,oe.nextTick(Ne,Ge,Me))}function Ne(Me,Ge){!Me.endEmitted&&Me.length===0&&(Me.endEmitted=!0,Ge.readable=!1,Ge.emit("end"))}function ze(Me,Ge){for(var ct=0,mt=Me.length;ct<mt;ct++)if(Me[ct]===Ge)return ct;return-1}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t: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,ve){"use strict";we.exports=ie;var x=y("./_stream_duplex"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(ie,x);function oe(E,te){var re=this._transformState;re.transforming=!1;var le=re.writecb;if(!le)return this.emit("error",new Error("write callback called multiple times"));re.writechunk=null,re.writecb=null,te!=null&&this.push(te),le(E);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function ie(E){if(!(this instanceof ie))return new ie(E);x.call(this,E),this._transformState={afterTransform:oe.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,E&&(typeof E.transform=="function"&&(this._transform=E.transform),typeof E.flush=="function"&&(this._flush=E.flush)),this.on("prefinish",ee)}function ee(){var E=this;typeof this._flush=="function"?this._flush(function(te,re){se(E,te,re)}):se(this,null,null)}ie.prototype.push=function(E,te){return this._transformState.needTransform=!1,x.prototype.push.call(this,E,te)},ie.prototype._transform=function(E,te,re){throw new Error("_transform() is not implemented")},ie.prototype._write=function(E,te,re){var le=this._transformState;if(le.writecb=re,le.writechunk=E,le.writeencoding=te,!le.transforming){var ue=this._readableState;(le.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},ie.prototype._read=function(E){var te=this._transformState;te.writechunk!==null&&te.writecb&&!te.transforming?(te.transforming=!0,this._transform(te.writechunk,te.writeencoding,te.afterTransform)):te.needTransform=!0},ie.prototype._destroy=function(E,te){var re=this;x.prototype._destroy.call(this,E,function(le){te(le),re.emit("close")})};function se(E,te,re){if(te)return E.emit("error",te);if(re!=null&&E.push(re),E._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(E._transformState.transforming)throw new Error("Calling transform done when still transforming");return E.push(null)}},{"./_stream_duplex":386,"core-util-is":341,inherits:364}],390:[function(y,we,ve){(function(x,z,oe){(function(){"use strict";var ie=y("process-nextick-args");we.exports=ke;function ee($e,Ke,ft){this.chunk=$e,this.encoding=Ke,this.callback=ft,this.next=null}function se($e){var Ke=this;this.next=null,this.entry=null,this.finish=function(){Ye(Ke,$e)}}var E=!x.browser&&["v0.10","v0.9."].indexOf(x.version.slice(0,5))>-1?oe:ie.nextTick,te;ke.WritableState=Te;var re=Object.create(y("core-util-is"));re.inherits=y("inherits");var le={deprecate:y("util-deprecate")},ue=y("./internal/streams/stream"),ce=y("safe-buffer").Buffer,he=z.Uint8Array||function(){};function me($e){return ce.from($e)}function fe($e){return ce.isBuffer($e)||$e instanceof he}var be=y("./internal/streams/destroy");re.inherits(ke,ue);function Ce(){}function Te($e,Ke){te=te||y("./_stream_duplex"),$e=$e||{};var ft=Ke instanceof te;this.objectMode=!!$e.objectMode,ft&&(this.objectMode=this.objectMode||!!$e.writableObjectMode);var tt=$e.highWaterMark,ut=$e.writableHighWaterMark,lt=this.objectMode?16:16*1024;tt||tt===0?this.highWaterMark=tt:ft&&(ut||ut===0)?this.highWaterMark=ut:this.highWaterMark=lt,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=$e.decodeStrings===!1;this.decodeStrings=!Ze,this.defaultEncoding=$e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ne){He(Ke,Ne)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new se(this)}Te.prototype.getBuffer=function(){for(var Ke=this.bufferedRequest,ft=[];Ke;)ft.push(Ke),Ke=Ke.next;return ft},function(){try{Object.defineProperty(Te.prototype,"buffer",{get:le.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch($e){}}();var Pe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Pe=Function.prototype[Symbol.hasInstance],Object.defineProperty(ke,Symbol.hasInstance,{value:function($e){return Pe.call(this,$e)?!0:this!==ke?!1:$e&&$e._writableState instanceof Te}})):Pe=function($e){return $e instanceof this};function ke($e){if(te=te||y("./_stream_duplex"),!Pe.call(ke,this)&&!(this instanceof te))return new ke($e);this._writableState=new Te($e,this),this.writable=!0,$e&&(typeof $e.write=="function"&&(this._write=$e.write),typeof $e.writev=="function"&&(this._writev=$e.writev),typeof $e.destroy=="function"&&(this._destroy=$e.destroy),typeof $e.final=="function"&&(this._final=$e.final)),ue.call(this)}ke.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function de($e,Ke){var ft=new Error("write after end");$e.emit("error",ft),ie.nextTick(Ke,ft)}function ge($e,Ke,ft,tt){var ut=!0,lt=!1;return ft===null?lt=new TypeError("May not write null values to stream"):typeof ft!="string"&&ft!==void 0&&!Ke.objectMode&&(lt=new TypeError("Invalid non-string/buffer chunk")),lt&&($e.emit("error",lt),ie.nextTick(tt,lt),ut=!1),ut}ke.prototype.write=function($e,Ke,ft){var tt=this._writableState,ut=!1,lt=!tt.objectMode&&fe($e);return lt&&!ce.isBuffer($e)&&($e=me($e)),typeof Ke=="function"&&(ft=Ke,Ke=null),lt?Ke="buffer":Ke||(Ke=tt.defaultEncoding),typeof ft!="function"&&(ft=Ce),tt.ended?de(this,ft):(lt||ge(this,tt,$e,ft))&&(tt.pendingcb++,ut=De(this,tt,lt,$e,Ke,ft)),ut},ke.prototype.cork=function(){var $e=this._writableState;$e.corked++},ke.prototype.uncork=function(){var $e=this._writableState;$e.corked&&($e.corked--,!$e.writing&&!$e.corked&&!$e.finished&&!$e.bufferProcessing&&$e.bufferedRequest&&st(this,$e))},ke.prototype.setDefaultEncoding=function(Ke){if(typeof Ke=="string"&&(Ke=Ke.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ke+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ke);return this._writableState.defaultEncoding=Ke,this};function Se($e,Ke,ft){return!$e.objectMode&&$e.decodeStrings!==!1&&typeof Ke=="string"&&(Ke=ce.from(Ke,ft)),Ke}Object.defineProperty(ke.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function De($e,Ke,ft,tt,ut,lt){if(!ft){var Ze=Se(Ke,tt,ut);tt!==Ze&&(ft=!0,ut="buffer",tt=Ze)}var Ne=Ke.objectMode?1:tt.length;Ke.length+=Ne;var ze=Ke.length<Ke.highWaterMark;if(ze||(Ke.needDrain=!0),Ke.writing||Ke.corked){var Me=Ke.lastBufferedRequest;Ke.lastBufferedRequest={chunk:tt,encoding:ut,isBuf:ft,callback:lt,next:null},Me?Me.next=Ke.lastBufferedRequest:Ke.bufferedRequest=Ke.lastBufferedRequest,Ke.bufferedRequestCount+=1}else _e($e,Ke,!1,Ne,tt,ut,lt);return ze}function _e($e,Ke,ft,tt,ut,lt,Ze){Ke.writelen=tt,Ke.writecb=Ze,Ke.writing=!0,Ke.sync=!0,ft?$e._writev(ut,Ke.onwrite):$e._write(ut,lt,Ke.onwrite),Ke.sync=!1}function Ee($e,Ke,ft,tt,ut){--Ke.pendingcb,ft?(ie.nextTick(ut,tt),ie.nextTick(ot,$e,Ke),$e._writableState.errorEmitted=!0,$e.emit("error",tt)):(ut(tt),$e._writableState.errorEmitted=!0,$e.emit("error",tt),ot($e,Ke))}function Oe($e){$e.writing=!1,$e.writecb=null,$e.length-=$e.writelen,$e.writelen=0}function He($e,Ke){var ft=$e._writableState,tt=ft.sync,ut=ft.writecb;if(Oe(ft),Ke)Ee($e,ft,tt,Ke,ut);else{var lt=Le(ft);!lt&&!ft.corked&&!ft.bufferProcessing&&ft.bufferedRequest&&st($e,ft),tt?E(Xe,$e,ft,lt,ut):Xe($e,ft,lt,ut)}}function Xe($e,Ke,ft,tt){ft||et($e,Ke),Ke.pendingcb--,tt(),ot($e,Ke)}function et($e,Ke){Ke.length===0&&Ke.needDrain&&(Ke.needDrain=!1,$e.emit("drain"))}function st($e,Ke){Ke.bufferProcessing=!0;var ft=Ke.bufferedRequest;if($e._writev&&ft&&ft.next){var tt=Ke.bufferedRequestCount,ut=new Array(tt),lt=Ke.corkedRequestsFree;lt.entry=ft;for(var Ze=0,Ne=!0;ft;)ut[Ze]=ft,ft.isBuf||(Ne=!1),ft=ft.next,Ze+=1;ut.allBuffers=Ne,_e($e,Ke,!0,Ke.length,ut,"",lt.finish),Ke.pendingcb++,Ke.lastBufferedRequest=null,lt.next?(Ke.corkedRequestsFree=lt.next,lt.next=null):Ke.corkedRequestsFree=new se(Ke),Ke.bufferedRequestCount=0}else{for(;ft;){var ze=ft.chunk,Me=ft.encoding,Ge=ft.callback,ct=Ke.objectMode?1:ze.length;if(_e($e,Ke,!1,ct,ze,Me,Ge),ft=ft.next,Ke.bufferedRequestCount--,Ke.writing)break}ft===null&&(Ke.lastBufferedRequest=null)}Ke.bufferedRequest=ft,Ke.bufferProcessing=!1}ke.prototype._write=function($e,Ke,ft){ft(new Error("_write() is not implemented"))},ke.prototype._writev=null,ke.prototype.end=function($e,Ke,ft){var tt=this._writableState;typeof $e=="function"?(ft=$e,$e=null,Ke=null):typeof Ke=="function"&&(ft=Ke,Ke=null),$e!=null&&this.write($e,Ke),tt.corked&&(tt.corked=1,this.uncork()),!tt.ending&&!tt.finished&&it(this,tt,ft)};function Le($e){return $e.ending&&$e.length===0&&$e.bufferedRequest===null&&!$e.finished&&!$e.writing}function Ue($e,Ke){$e._final(function(ft){Ke.pendingcb--,ft&&$e.emit("error",ft),Ke.prefinished=!0,$e.emit("prefinish"),ot($e,Ke)})}function rt($e,Ke){!Ke.prefinished&&!Ke.finalCalled&&(typeof $e._final=="function"?(Ke.pendingcb++,Ke.finalCalled=!0,ie.nextTick(Ue,$e,Ke)):(Ke.prefinished=!0,$e.emit("prefinish")))}function ot($e,Ke){var ft=Le(Ke);return ft&&(rt($e,Ke),Ke.pendingcb===0&&(Ke.finished=!0,$e.emit("finish"))),ft}function it($e,Ke,ft){Ke.ending=!0,ot($e,Ke),ft&&(Ke.finished?ie.nextTick(ft):$e.once("finish",ft)),Ke.ended=!0,$e.writable=!1}function Ye($e,Ke,ft){var tt=$e.entry;for($e.entry=null;tt;){var ut=tt.callback;Ke.pendingcb--,ut(ft),tt=tt.next}Ke.corkedRequestsFree?Ke.corkedRequestsFree.next=$e:Ke.corkedRequestsFree=$e}Object.defineProperty(ke.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function($e){this._writableState&&(this._writableState.destroyed=$e)}}),ke.prototype.destroy=be.destroy,ke.prototype._undestroy=be.undestroy,ke.prototype._destroy=function($e,Ke){this.end(),Ke($e)}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t: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,ve){"use strict";function x(ee,se){if(!(ee instanceof se))throw new TypeError("Cannot call a class as a function")}var z=y("safe-buffer").Buffer,oe=y("util");function ie(ee,se,E){ee.copy(se,E)}we.exports=function(){function ee(){x(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(E){var te={data:E,next:null};this.length>0?this.tail.next=te:this.head=te,this.tail=te,++this.length},ee.prototype.unshift=function(E){var te={data:E,next:this.head};this.length===0&&(this.tail=te),this.head=te,++this.length},ee.prototype.shift=function(){if(this.length!==0){var E=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,E}},ee.prototype.clear=function(){this.head=this.tail=null,this.length=0},ee.prototype.join=function(E){if(this.length===0)return"";for(var te=this.head,re=""+te.data;te=te.next;)re+=E+te.data;return re},ee.prototype.concat=function(E){if(this.length===0)return z.alloc(0);if(this.length===1)return this.head.data;for(var te=z.allocUnsafe(E>>>0),re=this.head,le=0;re;)ie(re.data,te,le),le+=re.data.length,re=re.next;return te},ee}(),oe&&oe.inspect&&oe.inspect.custom&&(we.exports.prototype[oe.inspect.custom]=function(){var ee=oe.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(y,we,ve){"use strict";var x=y("process-nextick-args");function z(ee,se){var E=this,te=this._readableState&&this._readableState.destroyed,re=this._writableState&&this._writableState.destroyed;return te||re?(se?se(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&x.nextTick(ie,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(le){!se&&le?(x.nextTick(ie,E,le),E._writableState&&(E._writableState.errorEmitted=!0)):se&&se(le)}),this)}function oe(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ie(ee,se){ee.emit("error",se)}we.exports={destroy:z,undestroy:oe}},{"process-nextick-args":380}],393:[function(y,we,ve){we.exports=y("events").EventEmitter},{events:344}],394:[function(y,we,ve){ve=we.exports=y("./lib/_stream_readable.js"),ve.Stream=ve,ve.Readable=ve,ve.Writable=y("./lib/_stream_writable.js"),ve.Duplex=y("./lib/_stream_duplex.js"),ve.Transform=y("./lib/_stream_transform.js"),ve.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,ve){var x=function(z){"use strict";var oe=Object.prototype,ie=oe.hasOwnProperty,ee,se=typeof Symbol=="function"?Symbol:{},E=se.iterator||"@@iterator",te=se.asyncIterator||"@@asyncIterator",re=se.toStringTag||"@@toStringTag";function le(rt,ot,it){return Object.defineProperty(rt,ot,{value:it,enumerable:!0,configurable:!0,writable:!0}),rt[ot]}try{le({},"")}catch(rt){le=function(ot,it,Ye){return ot[it]=Ye}}function ue(rt,ot,it,Ye){var $e=ot&&ot.prototype instanceof Te?ot:Te,Ke=Object.create($e.prototype),ft=new st(Ye||[]);return Ke._invoke=Oe(rt,it,ft),Ke}z.wrap=ue;function ce(rt,ot,it){try{return{type:"normal",arg:rt.call(ot,it)}}catch(Ye){return{type:"throw",arg:Ye}}}var he="suspendedStart",me="suspendedYield",fe="executing",be="completed",Ce={};function Te(){}function Pe(){}function ke(){}var de={};le(de,E,function(){return this});var ge=Object.getPrototypeOf,Se=ge&&ge(ge(Le([])));Se&&Se!==oe&&ie.call(Se,E)&&(de=Se);var De=ke.prototype=Te.prototype=Object.create(de);Pe.prototype=ke,le(De,"constructor",ke),le(ke,"constructor",Pe),Pe.displayName=le(ke,re,"GeneratorFunction");function _e(rt){["next","throw","return"].forEach(function(ot){le(rt,ot,function(it){return this._invoke(ot,it)})})}z.isGeneratorFunction=function(rt){var ot=typeof rt=="function"&&rt.constructor;return ot?ot===Pe||(ot.displayName||ot.name)==="GeneratorFunction":!1},z.mark=function(rt){return Object.setPrototypeOf?Object.setPrototypeOf(rt,ke):(rt.__proto__=ke,le(rt,re,"GeneratorFunction")),rt.prototype=Object.create(De),rt},z.awrap=function(rt){return{__await:rt}};function Ee(rt,ot){function it(Ke,ft,tt,ut){var lt=ce(rt[Ke],rt,ft);if(lt.type==="throw")ut(lt.arg);else{var Ze=lt.arg,Ne=Ze.value;return Ne&&typeof Ne=="object"&&ie.call(Ne,"__await")?ot.resolve(Ne.__await).then(function(ze){it("next",ze,tt,ut)},function(ze){it("throw",ze,tt,ut)}):ot.resolve(Ne).then(function(ze){Ze.value=ze,tt(Ze)},function(ze){return it("throw",ze,tt,ut)})}}var Ye;function $e(Ke,ft){function tt(){return new ot(function(ut,lt){it(Ke,ft,ut,lt)})}return Ye=Ye?Ye.then(tt,tt):tt()}this._invoke=$e}_e(Ee.prototype),le(Ee.prototype,te,function(){return this}),z.AsyncIterator=Ee,z.async=function(rt,ot,it,Ye,$e){$e===void 0&&($e=Promise);var Ke=new Ee(ue(rt,ot,it,Ye),$e);return z.isGeneratorFunction(ot)?Ke:Ke.next().then(function(ft){return ft.done?ft.value:Ke.next()})};function Oe(rt,ot,it){var Ye=he;return function(Ke,ft){if(Ye===fe)throw new Error("Generator is already running");if(Ye===be){if(Ke==="throw")throw ft;return Ue()}for(it.method=Ke,it.arg=ft;;){var tt=it.delegate;if(tt){var ut=He(tt,it);if(ut){if(ut===Ce)continue;return ut}}if(it.method==="next")it.sent=it._sent=it.arg;else if(it.method==="throw"){if(Ye===he)throw Ye=be,it.arg;it.dispatchException(it.arg)}else it.method==="return"&&it.abrupt("return",it.arg);Ye=fe;var lt=ce(rt,ot,it);if(lt.type==="normal"){if(Ye=it.done?be:me,lt.arg===Ce)continue;return{value:lt.arg,done:it.done}}else lt.type==="throw"&&(Ye=be,it.method="throw",it.arg=lt.arg)}}}function He(rt,ot){var it=rt.iterator[ot.method];if(it===ee){if(ot.delegate=null,ot.method==="throw"){if(rt.iterator.return&&(ot.method="return",ot.arg=ee,He(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 Ye=ce(it,rt.iterator,ot.arg);if(Ye.type==="throw")return ot.method="throw",ot.arg=Ye.arg,ot.delegate=null,Ce;var $e=Ye.arg;if(!$e)return ot.method="throw",ot.arg=new TypeError("iterator result is not an object"),ot.delegate=null,Ce;if($e.done)ot[rt.resultName]=$e.value,ot.next=rt.nextLoc,ot.method!=="return"&&(ot.method="next",ot.arg=ee);else return $e;return ot.delegate=null,Ce}_e(De),le(De,re,"Generator"),le(De,E,function(){return this}),le(De,"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 et(rt){var ot=rt.completion||{};ot.type="normal",delete ot.arg,rt.completion=ot}function st(rt){this.tryEntries=[{tryLoc:"root"}],rt.forEach(Xe,this),this.reset(!0)}z.keys=function(rt){var ot=[];for(var it in rt)ot.push(it);return ot.reverse(),function Ye(){for(;ot.length;){var $e=ot.pop();if($e in rt)return Ye.value=$e,Ye.done=!1,Ye}return Ye.done=!0,Ye}};function Le(rt){if(rt){var ot=rt[E];if(ot)return ot.call(rt);if(typeof rt.next=="function")return rt;if(!isNaN(rt.length)){var it=-1,Ye=function $e(){for(;++it<rt.length;)if(ie.call(rt,it))return $e.value=rt[it],$e.done=!1,$e;return $e.value=ee,$e.done=!0,$e};return Ye.next=Ye}}return{next:Ue}}z.values=Le;function Ue(){return{value:ee,done:!0}}return st.prototype={constructor:st,reset:function(rt){if(this.prev=0,this.next=0,this.sent=this._sent=ee,this.done=!1,this.delegate=null,this.method="next",this.arg=ee,this.tryEntries.forEach(et),!rt)for(var ot in this)ot.charAt(0)==="t"&&ie.call(this,ot)&&!isNaN(+ot.slice(1))&&(this[ot]=ee)},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 it(ut,lt){return Ke.type="throw",Ke.arg=rt,ot.next=ut,lt&&(ot.method="next",ot.arg=ee),!!lt}for(var Ye=this.tryEntries.length-1;Ye>=0;--Ye){var $e=this.tryEntries[Ye],Ke=$e.completion;if($e.tryLoc==="root")return it("end");if($e.tryLoc<=this.prev){var ft=ie.call($e,"catchLoc"),tt=ie.call($e,"finallyLoc");if(ft&&tt){if(this.prev<$e.catchLoc)return it($e.catchLoc,!0);if(this.prev<$e.finallyLoc)return it($e.finallyLoc)}else if(ft){if(this.prev<$e.catchLoc)return it($e.catchLoc,!0)}else if(tt){if(this.prev<$e.finallyLoc)return it($e.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(rt,ot){for(var it=this.tryEntries.length-1;it>=0;--it){var Ye=this.tryEntries[it];if(Ye.tryLoc<=this.prev&&ie.call(Ye,"finallyLoc")&&this.prev<Ye.finallyLoc){var $e=Ye;break}}$e&&(rt==="break"||rt==="continue")&&$e.tryLoc<=ot&&ot<=$e.finallyLoc&&($e=null);var Ke=$e?$e.completion:{};return Ke.type=rt,Ke.arg=ot,$e?(this.method="next",this.next=$e.finallyLoc,Ce):this.complete(Ke)},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 it=this.tryEntries[ot];if(it.finallyLoc===rt)return this.complete(it.completion,it.afterLoc),et(it),Ce}},catch:function(rt){for(var ot=this.tryEntries.length-1;ot>=0;--ot){var it=this.tryEntries[ot];if(it.tryLoc===rt){var Ye=it.completion;if(Ye.type==="throw"){var $e=Ye.arg;et(it)}return $e}}throw new Error("illegal catch attempt")},delegateYield:function(rt,ot,it){return this.delegate={iterator:Le(rt),resultName:ot,nextLoc:it},this.method==="next"&&(this.arg=ee),Ce}},z}(typeof we=="object"?we.exports:{});try{regeneratorRuntime=x}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},{}],396:[function(y,we,ve){var x=y("buffer"),z=x.Buffer;function oe(ee,se){for(var E in ee)se[E]=ee[E]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?we.exports=x:(oe(x,ve),ve.Buffer=ie);function ie(ee,se,E){return z(ee,se,E)}oe(z,ie),ie.from=function(ee,se,E){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return z(ee,se,E)},ie.alloc=function(ee,se,E){if(typeof ee!="number")throw new TypeError("Argument must be a number");var te=z(ee);return se!==void 0?typeof E=="string"?te.fill(se,E):te.fill(se):te.fill(0),te},ie.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z(ee)},ie.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return x.SlowBuffer(ee)}},{buffer:90}],397:[function(y,we,ve){(function(x){(function(){(function(z){z.parser=function(Ze,Ne){return new ie(Ze,Ne)},z.SAXParser=ie,z.SAXStream=ue,z.createStream=le,z.MAX_BUFFER_LENGTH=64*1024;var oe=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];z.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function ie(Ze,Ne){if(!(this instanceof ie))return new ie(Ze,Ne);var ze=this;se(ze),ze.q=ze.c="",ze.bufferCheckPosition=z.MAX_BUFFER_LENGTH,ze.opt=Ne||{},ze.opt.lowercase=ze.opt.lowercase||ze.opt.lowercasetags,ze.looseCase=ze.opt.lowercase?"toLowerCase":"toUpperCase",ze.tags=[],ze.closed=ze.closedRoot=ze.sawRoot=!1,ze.tag=ze.error=null,ze.strict=!!Ze,ze.noscript=!!(Ze||ze.opt.noscript),ze.state=Ee.BEGIN,ze.strictEntities=ze.opt.strictEntities,ze.ENTITIES=ze.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),ze.attribList=[],ze.opt.xmlns&&(ze.ns=Object.create(be)),ze.trackPosition=ze.opt.position!==!1,ze.trackPosition&&(ze.position=ze.line=ze.column=0),He(ze,"onready")}Object.create||(Object.create=function(Ze){function Ne(){}Ne.prototype=Ze;var ze=new Ne;return ze}),Object.keys||(Object.keys=function(Ze){var Ne=[];for(var ze in Ze)Ze.hasOwnProperty(ze)&&Ne.push(ze);return Ne});function ee(Ze){for(var Ne=Math.max(z.MAX_BUFFER_LENGTH,10),ze=0,Me=0,Ge=oe.length;Me<Ge;Me++){var ct=Ze[oe[Me]].length;if(ct>Ne)switch(oe[Me]){case"textNode":et(Ze);break;case"cdata":Xe(Ze,"oncdata",Ze.cdata),Ze.cdata="";break;case"script":Xe(Ze,"onscript",Ze.script),Ze.script="";break;default:Le(Ze,"Max buffer length exceeded: "+oe[Me])}ze=Math.max(ze,ct)}var mt=z.MAX_BUFFER_LENGTH-ze;Ze.bufferCheckPosition=mt+Ze.position}function se(Ze){for(var Ne=0,ze=oe.length;Ne<ze;Ne++)Ze[oe[Ne]]=""}function E(Ze){et(Ze),Ze.cdata!==""&&(Xe(Ze,"oncdata",Ze.cdata),Ze.cdata=""),Ze.script!==""&&(Xe(Ze,"onscript",Ze.script),Ze.script="")}ie.prototype={end:function(){Ue(this)},write:lt,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var te;try{te=y("stream").Stream}catch(Ze){te=function(){}}var re=z.EVENTS.filter(function(Ze){return Ze!=="error"&&Ze!=="end"});function le(Ze,Ne){return new ue(Ze,Ne)}function ue(Ze,Ne){if(!(this instanceof ue))return new ue(Ze,Ne);te.apply(this),this._parser=new ie(Ze,Ne),this.writable=!0,this.readable=!0;var ze=this;this._parser.onend=function(){ze.emit("end")},this._parser.onerror=function(Me){ze.emit("error",Me),ze._parser.error=null},this._decoder=null,re.forEach(function(Me){Object.defineProperty(ze,"on"+Me,{get:function(){return ze._parser["on"+Me]},set:function(Ge){if(!Ge)return ze.removeAllListeners(Me),ze._parser["on"+Me]=Ge,Ge;ze.on(Me,Ge)},enumerable:!0,configurable:!1})})}ue.prototype=Object.create(te.prototype,{constructor:{value:ue}}),ue.prototype.write=function(Ze){if(typeof x=="function"&&typeof x.isBuffer=="function"&&x.isBuffer(Ze)){if(!this._decoder){var Ne=y("string_decoder").StringDecoder;this._decoder=new Ne("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,Ne){var ze=this;return!ze._parser["on"+Ze]&&re.indexOf(Ze)!==-1&&(ze._parser["on"+Ze]=function(){var Me=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Me.splice(0,0,Ze),ze.emit.apply(ze,Me)}),te.prototype.on.call(ze,Ze,Ne)};var ce="[CDATA[",he="DOCTYPE",me="http://www.w3.org/XML/1998/namespace",fe="http://www.w3.org/2000/xmlns/",be={xml:me,xmlns:fe},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]/,Te=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Pe=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,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-]/;function de(Ze){return Ze===" "||Ze===`
`||Ze==="\r"||Ze===" "}function ge(Ze){return Ze==='"'||Ze==="'"}function Se(Ze){return Ze===">"||de(Ze)}function De(Ze,Ne){return Ze.test(Ne)}function _e(Ze,Ne){return!De(Ze,Ne)}var Ee=0;z.STATE={BEGIN:Ee++,BEGIN_WHITESPACE:Ee++,TEXT:Ee++,TEXT_ENTITY:Ee++,OPEN_WAKA:Ee++,SGML_DECL:Ee++,SGML_DECL_QUOTED:Ee++,DOCTYPE:Ee++,DOCTYPE_QUOTED:Ee++,DOCTYPE_DTD:Ee++,DOCTYPE_DTD_QUOTED:Ee++,COMMENT_STARTING:Ee++,COMMENT:Ee++,COMMENT_ENDING:Ee++,COMMENT_ENDED:Ee++,CDATA:Ee++,CDATA_ENDING:Ee++,CDATA_ENDING_2:Ee++,PROC_INST:Ee++,PROC_INST_BODY:Ee++,PROC_INST_ENDING:Ee++,OPEN_TAG:Ee++,OPEN_TAG_SLASH:Ee++,ATTRIB:Ee++,ATTRIB_NAME:Ee++,ATTRIB_NAME_SAW_WHITE:Ee++,ATTRIB_VALUE:Ee++,ATTRIB_VALUE_QUOTED:Ee++,ATTRIB_VALUE_CLOSED:Ee++,ATTRIB_VALUE_UNQUOTED:Ee++,ATTRIB_VALUE_ENTITY_Q:Ee++,ATTRIB_VALUE_ENTITY_U:Ee++,CLOSE_TAG:Ee++,CLOSE_TAG_SAW_WHITE:Ee++,SCRIPT:Ee++,SCRIPT_ENDING:Ee++},z.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},z.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(z.ENTITIES).forEach(function(Ze){var Ne=z.ENTITIES[Ze],ze=typeof Ne=="number"?String.fromCharCode(Ne):Ne;z.ENTITIES[Ze]=ze});for(var Oe in z.STATE)z.STATE[z.STATE[Oe]]=Oe;Ee=z.STATE;function He(Ze,Ne,ze){Ze[Ne]&&Ze[Ne](ze)}function Xe(Ze,Ne,ze){Ze.textNode&&et(Ze),He(Ze,Ne,ze)}function et(Ze){Ze.textNode=st(Ze.opt,Ze.textNode),Ze.textNode&&He(Ze,"ontext",Ze.textNode),Ze.textNode=""}function st(Ze,Ne){return Ze.trim&&(Ne=Ne.trim()),Ze.normalize&&(Ne=Ne.replace(/\s+/g," ")),Ne}function Le(Ze,Ne){return et(Ze),Ze.trackPosition&&(Ne+=`
Line: `+Ze.line+`
Column: `+Ze.column+`
Char: `+Ze.c),Ne=new Error(Ne),Ze.error=Ne,He(Ze,"onerror",Ne),Ze}function Ue(Ze){return Ze.sawRoot&&!Ze.closedRoot&&rt(Ze,"Unclosed root tag"),Ze.state!==Ee.BEGIN&&Ze.state!==Ee.BEGIN_WHITESPACE&&Ze.state!==Ee.TEXT&&Le(Ze,"Unexpected end"),et(Ze),Ze.c="",Ze.closed=!0,He(Ze,"onend"),ie.call(Ze,Ze.strict,Ze.opt),Ze}function rt(Ze,Ne){if(typeof Ze!="object"||!(Ze instanceof ie))throw new Error("bad call to strictFail");Ze.strict&&Le(Ze,Ne)}function ot(Ze){Ze.strict||(Ze.tagName=Ze.tagName[Ze.looseCase]());var Ne=Ze.tags[Ze.tags.length-1]||Ze,ze=Ze.tag={name:Ze.tagName,attributes:{}};Ze.opt.xmlns&&(ze.ns=Ne.ns),Ze.attribList.length=0,Xe(Ze,"onopentagstart",ze)}function it(Ze,Ne){var ze=Ze.indexOf(":"),Me=ze<0?["",Ze]:Ze.split(":"),Ge=Me[0],ct=Me[1];return Ne&&Ze==="xmlns"&&(Ge="xmlns",ct=""),{prefix:Ge,local:ct}}function Ye(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 Ne=it(Ze.attribName,!0),ze=Ne.prefix,Me=Ne.local;if(ze==="xmlns")if(Me==="xml"&&Ze.attribValue!==me)rt(Ze,"xml: prefix must be bound to "+me+`
Actual: `+Ze.attribValue);else if(Me==="xmlns"&&Ze.attribValue!==fe)rt(Ze,"xmlns: prefix must be bound to "+fe+`
Actual: `+Ze.attribValue);else{var Ge=Ze.tag,ct=Ze.tags[Ze.tags.length-1]||Ze;Ge.ns===ct.ns&&(Ge.ns=Object.create(ct.ns)),Ge.ns[Me]=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 $e(Ze,Ne){if(Ze.opt.xmlns){var ze=Ze.tag,Me=it(Ze.tagName);ze.prefix=Me.prefix,ze.local=Me.local,ze.uri=ze.ns[Me.prefix]||"",ze.prefix&&!ze.uri&&(rt(Ze,"Unbound namespace prefix: "+JSON.stringify(Ze.tagName)),ze.uri=Me.prefix);var Ge=Ze.tags[Ze.tags.length-1]||Ze;ze.ns&&Ge.ns!==ze.ns&&Object.keys(ze.ns).forEach(function(Fe){Xe(Ze,"onopennamespace",{prefix:Fe,uri:ze.ns[Fe]})});for(var ct=0,mt=Ze.attribList.length;ct<mt;ct++){var nt=Ze.attribList[ct],Ae=nt[0],je=nt[1],We=it(Ae,!0),at=We.prefix,Re=We.local,xe=at===""?"":ze.ns[at]||"",ye={name:Ae,value:je,prefix:at,local:Re,uri:xe};at&&at!=="xmlns"&&!xe&&(rt(Ze,"Unbound namespace prefix: "+JSON.stringify(at)),ye.uri=at),Ze.tag.attributes[Ae]=ye,Xe(Ze,"onattribute",ye)}Ze.attribList.length=0}Ze.tag.isSelfClosing=!!Ne,Ze.sawRoot=!0,Ze.tags.push(Ze.tag),Xe(Ze,"onopentag",Ze.tag),Ne||(!Ze.noscript&&Ze.tagName.toLowerCase()==="script"?Ze.state=Ee.SCRIPT:Ze.state=Ee.TEXT,Ze.tag=null,Ze.tagName=""),Ze.attribName=Ze.attribValue="",Ze.attribList.length=0}function Ke(Ze){if(!Ze.tagName){rt(Ze,"Weird empty close tag."),Ze.textNode+="</>",Ze.state=Ee.TEXT;return}if(Ze.script){if(Ze.tagName!=="script"){Ze.script+="</"+Ze.tagName+">",Ze.tagName="",Ze.state=Ee.SCRIPT;return}Xe(Ze,"onscript",Ze.script),Ze.script=""}var Ne=Ze.tags.length,ze=Ze.tagName;Ze.strict||(ze=ze[Ze.looseCase]());for(var Me=ze;Ne--;){var Ge=Ze.tags[Ne];if(Ge.name!==Me)rt(Ze,"Unexpected close tag");else break}if(Ne<0){rt(Ze,"Unmatched closing tag: "+Ze.tagName),Ze.textNode+="</"+Ze.tagName+">",Ze.state=Ee.TEXT;return}Ze.tagName=ze;for(var ct=Ze.tags.length;ct-- >Ne;){var mt=Ze.tag=Ze.tags.pop();Ze.tagName=Ze.tag.name,Xe(Ze,"onclosetag",Ze.tagName);var nt={};for(var Ae in mt.ns)nt[Ae]=mt.ns[Ae];var je=Ze.tags[Ze.tags.length-1]||Ze;Ze.opt.xmlns&&mt.ns!==je.ns&&Object.keys(mt.ns).forEach(function(We){var at=mt.ns[We];Xe(Ze,"onclosenamespace",{prefix:We,uri:at})})}Ne===0&&(Ze.closedRoot=!0),Ze.tagName=Ze.attribValue=Ze.attribName="",Ze.attribList.length=0,Ze.state=Ee.TEXT}function ft(Ze){var Ne=Ze.entity,ze=Ne.toLowerCase(),Me,Ge="";return Ze.ENTITIES[Ne]?Ze.ENTITIES[Ne]:Ze.ENTITIES[ze]?Ze.ENTITIES[ze]:(Ne=ze,Ne.charAt(0)==="#"&&(Ne.charAt(1)==="x"?(Ne=Ne.slice(2),Me=parseInt(Ne,16),Ge=Me.toString(16)):(Ne=Ne.slice(1),Me=parseInt(Ne,10),Ge=Me.toString(10))),Ne=Ne.replace(/^0+/,""),isNaN(Me)||Ge.toLowerCase()!==Ne?(rt(Ze,"Invalid character entity"),"&"+Ze.entity+";"):String.fromCodePoint(Me))}function tt(Ze,Ne){Ne==="<"?(Ze.state=Ee.OPEN_WAKA,Ze.startTagPosition=Ze.position):de(Ne)||(rt(Ze,"Non-whitespace before first tag."),Ze.textNode=Ne,Ze.state=Ee.TEXT)}function ut(Ze,Ne){var ze="";return Ne<Ze.length&&(ze=Ze.charAt(Ne)),ze}function lt(Ze){var Ne=this;if(this.error)throw this.error;if(Ne.closed)return Le(Ne,"Cannot write after close. Assign an onready handler.");if(Ze===null)return Ue(Ne);typeof Ze=="object"&&(Ze=Ze.toString());for(var ze=0,Me="";Me=ut(Ze,ze++),Ne.c=Me,!!Me;)switch(Ne.trackPosition&&(Ne.position++,Me===`
`?(Ne.line++,Ne.column=0):Ne.column++),Ne.state){case Ee.BEGIN:if(Ne.state=Ee.BEGIN_WHITESPACE,Me==="\uFEFF")continue;tt(Ne,Me);continue;case Ee.BEGIN_WHITESPACE:tt(Ne,Me);continue;case Ee.TEXT:if(Ne.sawRoot&&!Ne.closedRoot){for(var Ge=ze-1;Me&&Me!=="<"&&Me!=="&";)Me=ut(Ze,ze++),Me&&Ne.trackPosition&&(Ne.position++,Me===`
`?(Ne.line++,Ne.column=0):Ne.column++);Ne.textNode+=Ze.substring(Ge,ze-1)}Me==="<"&&!(Ne.sawRoot&&Ne.closedRoot&&!Ne.strict)?(Ne.state=Ee.OPEN_WAKA,Ne.startTagPosition=Ne.position):(!de(Me)&&(!Ne.sawRoot||Ne.closedRoot)&&rt(Ne,"Text data outside of root node."),Me==="&"?Ne.state=Ee.TEXT_ENTITY:Ne.textNode+=Me);continue;case Ee.SCRIPT:Me==="<"?Ne.state=Ee.SCRIPT_ENDING:Ne.script+=Me;continue;case Ee.SCRIPT_ENDING:Me==="/"?Ne.state=Ee.CLOSE_TAG:(Ne.script+="<"+Me,Ne.state=Ee.SCRIPT);continue;case Ee.OPEN_WAKA:if(Me==="!")Ne.state=Ee.SGML_DECL,Ne.sgmlDecl="";else if(!de(Me))if(De(Ce,Me))Ne.state=Ee.OPEN_TAG,Ne.tagName=Me;else if(Me==="/")Ne.state=Ee.CLOSE_TAG,Ne.tagName="";else if(Me==="?")Ne.state=Ee.PROC_INST,Ne.procInstName=Ne.procInstBody="";else{if(rt(Ne,"Unencoded <"),Ne.startTagPosition+1<Ne.position){var ct=Ne.position-Ne.startTagPosition;Me=new Array(ct).join(" ")+Me}Ne.textNode+="<"+Me,Ne.state=Ee.TEXT}continue;case Ee.SGML_DECL:(Ne.sgmlDecl+Me).toUpperCase()===ce?(Xe(Ne,"onopencdata"),Ne.state=Ee.CDATA,Ne.sgmlDecl="",Ne.cdata=""):Ne.sgmlDecl+Me==="--"?(Ne.state=Ee.COMMENT,Ne.comment="",Ne.sgmlDecl=""):(Ne.sgmlDecl+Me).toUpperCase()===he?(Ne.state=Ee.DOCTYPE,(Ne.doctype||Ne.sawRoot)&&rt(Ne,"Inappropriately located doctype declaration"),Ne.doctype="",Ne.sgmlDecl=""):Me===">"?(Xe(Ne,"onsgmldeclaration",Ne.sgmlDecl),Ne.sgmlDecl="",Ne.state=Ee.TEXT):(ge(Me)&&(Ne.state=Ee.SGML_DECL_QUOTED),Ne.sgmlDecl+=Me);continue;case Ee.SGML_DECL_QUOTED:Me===Ne.q&&(Ne.state=Ee.SGML_DECL,Ne.q=""),Ne.sgmlDecl+=Me;continue;case Ee.DOCTYPE:Me===">"?(Ne.state=Ee.TEXT,Xe(Ne,"ondoctype",Ne.doctype),Ne.doctype=!0):(Ne.doctype+=Me,Me==="["?Ne.state=Ee.DOCTYPE_DTD:ge(Me)&&(Ne.state=Ee.DOCTYPE_QUOTED,Ne.q=Me));continue;case Ee.DOCTYPE_QUOTED:Ne.doctype+=Me,Me===Ne.q&&(Ne.q="",Ne.state=Ee.DOCTYPE);continue;case Ee.DOCTYPE_DTD:Ne.doctype+=Me,Me==="]"?Ne.state=Ee.DOCTYPE:ge(Me)&&(Ne.state=Ee.DOCTYPE_DTD_QUOTED,Ne.q=Me);continue;case Ee.DOCTYPE_DTD_QUOTED:Ne.doctype+=Me,Me===Ne.q&&(Ne.state=Ee.DOCTYPE_DTD,Ne.q="");continue;case Ee.COMMENT:Me==="-"?Ne.state=Ee.COMMENT_ENDING:Ne.comment+=Me;continue;case Ee.COMMENT_ENDING:Me==="-"?(Ne.state=Ee.COMMENT_ENDED,Ne.comment=st(Ne.opt,Ne.comment),Ne.comment&&Xe(Ne,"oncomment",Ne.comment),Ne.comment=""):(Ne.comment+="-"+Me,Ne.state=Ee.COMMENT);continue;case Ee.COMMENT_ENDED:Me!==">"?(rt(Ne,"Malformed comment"),Ne.comment+="--"+Me,Ne.state=Ee.COMMENT):Ne.state=Ee.TEXT;continue;case Ee.CDATA:Me==="]"?Ne.state=Ee.CDATA_ENDING:Ne.cdata+=Me;continue;case Ee.CDATA_ENDING:Me==="]"?Ne.state=Ee.CDATA_ENDING_2:(Ne.cdata+="]"+Me,Ne.state=Ee.CDATA);continue;case Ee.CDATA_ENDING_2:Me===">"?(Ne.cdata&&Xe(Ne,"oncdata",Ne.cdata),Xe(Ne,"onclosecdata"),Ne.cdata="",Ne.state=Ee.TEXT):Me==="]"?Ne.cdata+="]":(Ne.cdata+="]]"+Me,Ne.state=Ee.CDATA);continue;case Ee.PROC_INST:Me==="?"?Ne.state=Ee.PROC_INST_ENDING:de(Me)?Ne.state=Ee.PROC_INST_BODY:Ne.procInstName+=Me;continue;case Ee.PROC_INST_BODY:if(!Ne.procInstBody&&de(Me))continue;Me==="?"?Ne.state=Ee.PROC_INST_ENDING:Ne.procInstBody+=Me;continue;case Ee.PROC_INST_ENDING:Me===">"?(Xe(Ne,"onprocessinginstruction",{name:Ne.procInstName,body:Ne.procInstBody}),Ne.procInstName=Ne.procInstBody="",Ne.state=Ee.TEXT):(Ne.procInstBody+="?"+Me,Ne.state=Ee.PROC_INST_BODY);continue;case Ee.OPEN_TAG:De(Te,Me)?Ne.tagName+=Me:(ot(Ne),Me===">"?$e(Ne):Me==="/"?Ne.state=Ee.OPEN_TAG_SLASH:(de(Me)||rt(Ne,"Invalid character in tag name"),Ne.state=Ee.ATTRIB));continue;case Ee.OPEN_TAG_SLASH:Me===">"?($e(Ne,!0),Ke(Ne)):(rt(Ne,"Forward-slash in opening tag not followed by >"),Ne.state=Ee.ATTRIB);continue;case Ee.ATTRIB:if(de(Me))continue;Me===">"?$e(Ne):Me==="/"?Ne.state=Ee.OPEN_TAG_SLASH:De(Ce,Me)?(Ne.attribName=Me,Ne.attribValue="",Ne.state=Ee.ATTRIB_NAME):rt(Ne,"Invalid attribute name");continue;case Ee.ATTRIB_NAME:Me==="="?Ne.state=Ee.ATTRIB_VALUE:Me===">"?(rt(Ne,"Attribute without value"),Ne.attribValue=Ne.attribName,Ye(Ne),$e(Ne)):de(Me)?Ne.state=Ee.ATTRIB_NAME_SAW_WHITE:De(Te,Me)?Ne.attribName+=Me:rt(Ne,"Invalid attribute name");continue;case Ee.ATTRIB_NAME_SAW_WHITE:if(Me==="=")Ne.state=Ee.ATTRIB_VALUE;else{if(de(Me))continue;rt(Ne,"Attribute without value"),Ne.tag.attributes[Ne.attribName]="",Ne.attribValue="",Xe(Ne,"onattribute",{name:Ne.attribName,value:""}),Ne.attribName="",Me===">"?$e(Ne):De(Ce,Me)?(Ne.attribName=Me,Ne.state=Ee.ATTRIB_NAME):(rt(Ne,"Invalid attribute name"),Ne.state=Ee.ATTRIB)}continue;case Ee.ATTRIB_VALUE:if(de(Me))continue;ge(Me)?(Ne.q=Me,Ne.state=Ee.ATTRIB_VALUE_QUOTED):(rt(Ne,"Unquoted attribute value"),Ne.state=Ee.ATTRIB_VALUE_UNQUOTED,Ne.attribValue=Me);continue;case Ee.ATTRIB_VALUE_QUOTED:if(Me!==Ne.q){Me==="&"?Ne.state=Ee.ATTRIB_VALUE_ENTITY_Q:Ne.attribValue+=Me;continue}Ye(Ne),Ne.q="",Ne.state=Ee.ATTRIB_VALUE_CLOSED;continue;case Ee.ATTRIB_VALUE_CLOSED:de(Me)?Ne.state=Ee.ATTRIB:Me===">"?$e(Ne):Me==="/"?Ne.state=Ee.OPEN_TAG_SLASH:De(Ce,Me)?(rt(Ne,"No whitespace between attributes"),Ne.attribName=Me,Ne.attribValue="",Ne.state=Ee.ATTRIB_NAME):rt(Ne,"Invalid attribute name");continue;case Ee.ATTRIB_VALUE_UNQUOTED:if(!Se(Me)){Me==="&"?Ne.state=Ee.ATTRIB_VALUE_ENTITY_U:Ne.attribValue+=Me;continue}Ye(Ne),Me===">"?$e(Ne):Ne.state=Ee.ATTRIB;continue;case Ee.CLOSE_TAG:if(Ne.tagName)Me===">"?Ke(Ne):De(Te,Me)?Ne.tagName+=Me:Ne.script?(Ne.script+="</"+Ne.tagName,Ne.tagName="",Ne.state=Ee.SCRIPT):(de(Me)||rt(Ne,"Invalid tagname in closing tag"),Ne.state=Ee.CLOSE_TAG_SAW_WHITE);else{if(de(Me))continue;_e(Ce,Me)?Ne.script?(Ne.script+="</"+Me,Ne.state=Ee.SCRIPT):rt(Ne,"Invalid tagname in closing tag."):Ne.tagName=Me}continue;case Ee.CLOSE_TAG_SAW_WHITE:if(de(Me))continue;Me===">"?Ke(Ne):rt(Ne,"Invalid characters in closing tag");continue;case Ee.TEXT_ENTITY:case Ee.ATTRIB_VALUE_ENTITY_Q:case Ee.ATTRIB_VALUE_ENTITY_U:var mt,nt;switch(Ne.state){case Ee.TEXT_ENTITY:mt=Ee.TEXT,nt="textNode";break;case Ee.ATTRIB_VALUE_ENTITY_Q:mt=Ee.ATTRIB_VALUE_QUOTED,nt="attribValue";break;case Ee.ATTRIB_VALUE_ENTITY_U:mt=Ee.ATTRIB_VALUE_UNQUOTED,nt="attribValue";break}Me===";"?(Ne[nt]+=ft(Ne),Ne.entity="",Ne.state=mt):De(Ne.entity.length?ke:Pe,Me)?Ne.entity+=Me:(rt(Ne,"Invalid character in entity name"),Ne[nt]+="&"+Ne.entity+Me,Ne.entity="",Ne.state=mt);continue;default:throw new Error(Ne,"Unknown state: "+Ne.state)}return Ne.position>=Ne.bufferCheckPosition&&ee(Ne),Ne}String.fromCodePoint||function(){var Ze=String.fromCharCode,Ne=Math.floor,ze=function(){var Me=16384,Ge=[],ct,mt,nt=-1,Ae=arguments.length;if(!Ae)return"";for(var je="";++nt<Ae;){var We=Number(arguments[nt]);if(!isFinite(We)||We<0||We>1114111||Ne(We)!==We)throw RangeError("Invalid code point: "+We);We<=65535?Ge.push(We):(We-=65536,ct=(We>>10)+55296,mt=We%1024+56320,Ge.push(ct,mt)),(nt+1===Ae||Ge.length>Me)&&(je+=Ze.apply(null,Ge),Ge.length=0)}return je};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:ze,configurable:!0,writable:!0}):String.fromCodePoint=ze}()})(typeof ve=="undefined"?this.sax={}:ve)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,we,ve){we.exports=oe;var x=y("events").EventEmitter,z=y("inherits");z(oe,x),oe.Readable=y("readable-stream/lib/_stream_readable.js"),oe.Writable=y("readable-stream/lib/_stream_writable.js"),oe.Duplex=y("readable-stream/lib/_stream_duplex.js"),oe.Transform=y("readable-stream/lib/_stream_transform.js"),oe.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),oe.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),oe.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),oe.Stream=oe;function oe(){x.call(this)}oe.prototype.pipe=function(ie,ee){var se=this;function E(me){ie.writable&&ie.write(me)===!1&&se.pause&&se.pause()}se.on("data",E);function te(){se.readable&&se.resume&&se.resume()}ie.on("drain",te),!ie._isStdio&&(!ee||ee.end!==!1)&&(se.on("end",le),se.on("close",ue));var re=!1;function le(){re||(re=!0,ie.end())}function ue(){re||(re=!0,typeof ie.destroy=="function"&&ie.destroy())}function ce(me){if(he(),x.listenerCount(this,"error")===0)throw me}se.on("error",ce),ie.on("error",ce);function he(){se.removeListener("data",E),ie.removeListener("drain",te),se.removeListener("end",le),se.removeListener("close",ue),se.removeListener("error",ce),ie.removeListener("error",ce),se.removeListener("end",he),se.removeListener("close",he),ie.removeListener("close",he)}return se.on("end",he),se.on("close",he),ie.on("close",he),ie.emit("pipe",se),ie}},{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,ve){"use strict";function x(te,re){te.prototype=Object.create(re.prototype),te.prototype.constructor=te,te.__proto__=re}var z={};function oe(te,re,le){le||(le=Error);function ue(he,me,fe){return typeof re=="string"?re:re(he,me,fe)}var ce=function(he){x(me,he);function me(fe,be,Ce){return he.call(this,ue(fe,be,Ce))||this}return me}(le);ce.prototype.name=le.name,ce.prototype.code=te,z[te]=ce}function ie(te,re){if(Array.isArray(te)){var le=te.length;return te=te.map(function(ue){return String(ue)}),le>2?"one of ".concat(re," ").concat(te.slice(0,le-1).join(", "),", or ")+te[le-1]:le===2?"one of ".concat(re," ").concat(te[0]," or ").concat(te[1]):"of ".concat(re," ").concat(te[0])}else return"of ".concat(re," ").concat(String(te))}function ee(te,re,le){return te.substr(!le||le<0?0:+le,re.length)===re}function se(te,re,le){return(le===void 0||le>te.length)&&(le=te.length),te.substring(le-re.length,le)===re}function E(te,re,le){return typeof le!="number"&&(le=0),le+re.length>te.length?!1:te.indexOf(re,le)!==-1}oe("ERR_INVALID_OPT_VALUE",function(te,re){return'The value "'+re+'" is invalid for option "'+te+'"'},TypeError),oe("ERR_INVALID_ARG_TYPE",function(te,re,le){var ue;typeof re=="string"&&ee(re,"not ")?(ue="must not be",re=re.replace(/^not /,"")):ue="must be";var ce;if(se(te," argument"))ce="The ".concat(te," ").concat(ue," ").concat(ie(re,"type"));else{var he=E(te,".")?"property":"argument";ce='The "'.concat(te,'" ').concat(he," ").concat(ue," ").concat(ie(re,"type"))}return ce+=". Received type ".concat(typeof le),ce},TypeError),oe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),oe("ERR_METHOD_NOT_IMPLEMENTED",function(te){return"The "+te+" method is not implemented"}),oe("ERR_STREAM_PREMATURE_CLOSE","Premature close"),oe("ERR_STREAM_DESTROYED",function(te){return"Cannot call "+te+" after a stream was destroyed"}),oe("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),oe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),oe("ERR_STREAM_WRITE_AFTER_END","write after end"),oe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),oe("ERR_UNKNOWN_ENCODING",function(te){return"Unknown encoding: "+te},TypeError),oe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),we.exports.codes=z},{}],400:[function(y,we,ve){(function(x){(function(){"use strict";var z=Object.keys||function(ue){var ce=[];for(var he in ue)ce.push(he);return ce};we.exports=te;var oe=y("./_stream_readable"),ie=y("./_stream_writable");y("inherits")(te,oe);for(var ee=z(ie.prototype),se=0;se<ee.length;se++){var E=ee[se];te.prototype[E]||(te.prototype[E]=ie.prototype[E])}function te(ue){if(!(this instanceof te))return new te(ue);oe.call(this,ue),ie.call(this,ue),this.allowHalfOpen=!0,ue&&(ue.readable===!1&&(this.readable=!1),ue.writable===!1&&(this.writable=!1),ue.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",re)))}Object.defineProperty(te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(te.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(te.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function re(){this._writableState.ended||x.nextTick(le,this)}function le(ue){ue.end()}Object.defineProperty(te.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(ce){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=ce,this._writableState.destroyed=ce)}})}).call(this)}).call(this,y("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(y,we,ve){"use strict";we.exports=z;var x=y("./_stream_transform");y("inherits")(z,x);function z(oe){if(!(this instanceof z))return new z(oe);x.call(this,oe)}z.prototype._transform=function(oe,ie,ee){ee(null,oe)}},{"./_stream_transform":403,inherits:364}],402:[function(y,we,ve){(function(x,z){(function(){"use strict";we.exports=Xe;var oe;Xe.ReadableState=He;var ie=y("events").EventEmitter,ee=function(Ae,je){return Ae.listeners(je).length},se=y("./internal/streams/stream"),E=y("buffer").Buffer,te=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function re(nt){return E.from(nt)}function le(nt){return E.isBuffer(nt)||nt instanceof te}var ue=y("util"),ce;ue&&ue.debuglog?ce=ue.debuglog("stream"):ce=function(){};var he=y("./internal/streams/buffer_list"),me=y("./internal/streams/destroy"),fe=y("./internal/streams/state"),be=fe.getHighWaterMark,Ce=y("../errors").codes,Te=Ce.ERR_INVALID_ARG_TYPE,Pe=Ce.ERR_STREAM_PUSH_AFTER_EOF,ke=Ce.ERR_METHOD_NOT_IMPLEMENTED,de=Ce.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ge,Se,De;y("inherits")(Xe,se);var _e=me.errorOrDestroy,Ee=["error","close","destroy","pause","resume"];function Oe(nt,Ae,je){if(typeof nt.prependListener=="function")return nt.prependListener(Ae,je);!nt._events||!nt._events[Ae]?nt.on(Ae,je):Array.isArray(nt._events[Ae])?nt._events[Ae].unshift(je):nt._events[Ae]=[je,nt._events[Ae]]}function He(nt,Ae,je){oe=oe||y("./_stream_duplex"),nt=nt||{},typeof je!="boolean"&&(je=Ae instanceof oe),this.objectMode=!!nt.objectMode,je&&(this.objectMode=this.objectMode||!!nt.readableObjectMode),this.highWaterMark=be(this,nt,"readableHighWaterMark",je),this.buffer=new he,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&&(ge||(ge=y("string_decoder/").StringDecoder),this.decoder=new ge(nt.encoding),this.encoding=nt.encoding)}function Xe(nt){if(oe=oe||y("./_stream_duplex"),!(this instanceof Xe))return new Xe(nt);var Ae=this instanceof oe;this._readableState=new He(nt,this,Ae),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(Ae){this._readableState&&(this._readableState.destroyed=Ae)}}),Xe.prototype.destroy=me.destroy,Xe.prototype._undestroy=me.undestroy,Xe.prototype._destroy=function(nt,Ae){Ae(nt)},Xe.prototype.push=function(nt,Ae){var je=this._readableState,We;return je.objectMode?We=!0:typeof nt=="string"&&(Ae=Ae||je.defaultEncoding,Ae!==je.encoding&&(nt=E.from(nt,Ae),Ae=""),We=!0),et(this,nt,Ae,!1,We)},Xe.prototype.unshift=function(nt){return et(this,nt,null,!0,!1)};function et(nt,Ae,je,We,at){ce("readableAddChunk",Ae);var Re=nt._readableState;if(Ae===null)Re.reading=!1,it(nt,Re);else{var xe;if(at||(xe=Le(Re,Ae)),xe)_e(nt,xe);else if(Re.objectMode||Ae&&Ae.length>0)if(typeof Ae!="string"&&!Re.objectMode&&Object.getPrototypeOf(Ae)!==E.prototype&&(Ae=re(Ae)),We)Re.endEmitted?_e(nt,new de):st(nt,Re,Ae,!0);else if(Re.ended)_e(nt,new Pe);else{if(Re.destroyed)return!1;Re.reading=!1,Re.decoder&&!je?(Ae=Re.decoder.write(Ae),Re.objectMode||Ae.length!==0?st(nt,Re,Ae,!1):Ke(nt,Re)):st(nt,Re,Ae,!1)}else We||(Re.reading=!1,Ke(nt,Re))}return!Re.ended&&(Re.length<Re.highWaterMark||Re.length===0)}function st(nt,Ae,je,We){Ae.flowing&&Ae.length===0&&!Ae.sync?(Ae.awaitDrain=0,nt.emit("data",je)):(Ae.length+=Ae.objectMode?1:je.length,We?Ae.buffer.unshift(je):Ae.buffer.push(je),Ae.needReadable&&Ye(nt)),Ke(nt,Ae)}function Le(nt,Ae){var je;return!le(Ae)&&typeof Ae!="string"&&Ae!==void 0&&!nt.objectMode&&(je=new Te("chunk",["string","Buffer","Uint8Array"],Ae)),je}Xe.prototype.isPaused=function(){return this._readableState.flowing===!1},Xe.prototype.setEncoding=function(nt){ge||(ge=y("string_decoder/").StringDecoder);var Ae=new ge(nt);this._readableState.decoder=Ae,this._readableState.encoding=this._readableState.decoder.encoding;for(var je=this._readableState.buffer.head,We="";je!==null;)We+=Ae.write(je.data),je=je.next;return this._readableState.buffer.clear(),We!==""&&this._readableState.buffer.push(We),this._readableState.length=We.length,this};var Ue=1073741824;function rt(nt){return nt>=Ue?nt=Ue:(nt--,nt|=nt>>>1,nt|=nt>>>2,nt|=nt>>>4,nt|=nt>>>8,nt|=nt>>>16,nt++),nt}function ot(nt,Ae){return nt<=0||Ae.length===0&&Ae.ended?0:Ae.objectMode?1:nt!==nt?Ae.flowing&&Ae.length?Ae.buffer.head.data.length:Ae.length:(nt>Ae.highWaterMark&&(Ae.highWaterMark=rt(nt)),nt<=Ae.length?nt:Ae.ended?Ae.length:(Ae.needReadable=!0,0))}Xe.prototype.read=function(nt){ce("read",nt),nt=parseInt(nt,10);var Ae=this._readableState,je=nt;if(nt!==0&&(Ae.emittedReadable=!1),nt===0&&Ae.needReadable&&((Ae.highWaterMark!==0?Ae.length>=Ae.highWaterMark:Ae.length>0)||Ae.ended))return ce("read: emitReadable",Ae.length,Ae.ended),Ae.length===0&&Ae.ended?Ge(this):Ye(this),null;if(nt=ot(nt,Ae),nt===0&&Ae.ended)return Ae.length===0&&Ge(this),null;var We=Ae.needReadable;ce("need readable",We),(Ae.length===0||Ae.length-nt<Ae.highWaterMark)&&(We=!0,ce("length less than watermark",We)),Ae.ended||Ae.reading?(We=!1,ce("reading or ended",We)):We&&(ce("do read"),Ae.reading=!0,Ae.sync=!0,Ae.length===0&&(Ae.needReadable=!0),this._read(Ae.highWaterMark),Ae.sync=!1,Ae.reading||(nt=ot(je,Ae)));var at;return nt>0?at=Me(nt,Ae):at=null,at===null?(Ae.needReadable=Ae.length<=Ae.highWaterMark,nt=0):(Ae.length-=nt,Ae.awaitDrain=0),Ae.length===0&&(Ae.ended||(Ae.needReadable=!0),je!==nt&&Ae.ended&&Ge(this)),at!==null&&this.emit("data",at),at};function it(nt,Ae){if(ce("onEofChunk"),!Ae.ended){if(Ae.decoder){var je=Ae.decoder.end();je&&je.length&&(Ae.buffer.push(je),Ae.length+=Ae.objectMode?1:je.length)}Ae.ended=!0,Ae.sync?Ye(nt):(Ae.needReadable=!1,Ae.emittedReadable||(Ae.emittedReadable=!0,$e(nt)))}}function Ye(nt){var Ae=nt._readableState;ce("emitReadable",Ae.needReadable,Ae.emittedReadable),Ae.needReadable=!1,Ae.emittedReadable||(ce("emitReadable",Ae.flowing),Ae.emittedReadable=!0,x.nextTick($e,nt))}function $e(nt){var Ae=nt._readableState;ce("emitReadable_",Ae.destroyed,Ae.length,Ae.ended),!Ae.destroyed&&(Ae.length||Ae.ended)&&(nt.emit("readable"),Ae.emittedReadable=!1),Ae.needReadable=!Ae.flowing&&!Ae.ended&&Ae.length<=Ae.highWaterMark,ze(nt)}function Ke(nt,Ae){Ae.readingMore||(Ae.readingMore=!0,x.nextTick(ft,nt,Ae))}function ft(nt,Ae){for(;!Ae.reading&&!Ae.ended&&(Ae.length<Ae.highWaterMark||Ae.flowing&&Ae.length===0);){var je=Ae.length;if(ce("maybeReadMore read 0"),nt.read(0),je===Ae.length)break}Ae.readingMore=!1}Xe.prototype._read=function(nt){_e(this,new ke("_read()"))},Xe.prototype.pipe=function(nt,Ae){var je=this,We=this._readableState;switch(We.pipesCount){case 0:We.pipes=nt;break;case 1:We.pipes=[We.pipes,nt];break;default:We.pipes.push(nt);break}We.pipesCount+=1,ce("pipe count=%d opts=%j",We.pipesCount,Ae);var at=(!Ae||Ae.end!==!1)&&nt!==x.stdout&&nt!==x.stderr,Re=at?ye:ht;We.endEmitted?x.nextTick(Re):je.once("end",Re),nt.on("unpipe",xe);function xe(kt,Tt){ce("onunpipe"),kt===je&&Tt&&Tt.hasUnpiped===!1&&(Tt.hasUnpiped=!0,Ie())}function ye(){ce("onend"),nt.end()}var Fe=tt(je);nt.on("drain",Fe);var Qe=!1;function Ie(){ce("cleanup"),nt.removeListener("close",xt),nt.removeListener("finish",bt),nt.removeListener("drain",Fe),nt.removeListener("error",yt),nt.removeListener("unpipe",xe),je.removeListener("end",ye),je.removeListener("end",ht),je.removeListener("data",vt),Qe=!0,We.awaitDrain&&(!nt._writableState||nt._writableState.needDrain)&&Fe()}je.on("data",vt);function vt(kt){ce("ondata");var Tt=nt.write(kt);ce("dest.write",Tt),Tt===!1&&((We.pipesCount===1&&We.pipes===nt||We.pipesCount>1&&mt(We.pipes,nt)!==-1)&&!Qe&&(ce("false write response, pause",We.awaitDrain),We.awaitDrain++),je.pause())}function yt(kt){ce("onerror",kt),ht(),nt.removeListener("error",yt),ee(nt,"error")===0&&_e(nt,kt)}Oe(nt,"error",yt);function xt(){nt.removeListener("finish",bt),ht()}nt.once("close",xt);function bt(){ce("onfinish"),nt.removeListener("close",xt),ht()}nt.once("finish",bt);function ht(){ce("unpipe"),je.unpipe(nt)}return nt.emit("pipe",je),We.flowing||(ce("pipe resume"),je.resume()),nt};function tt(nt){return function(){var je=nt._readableState;ce("pipeOnDrain",je.awaitDrain),je.awaitDrain&&je.awaitDrain--,je.awaitDrain===0&&ee(nt,"data")&&(je.flowing=!0,ze(nt))}}Xe.prototype.unpipe=function(nt){var Ae=this._readableState,je={hasUnpiped:!1};if(Ae.pipesCount===0)return this;if(Ae.pipesCount===1)return nt&&nt!==Ae.pipes?this:(nt||(nt=Ae.pipes),Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1,nt&&nt.emit("unpipe",this,je),this);if(!nt){var We=Ae.pipes,at=Ae.pipesCount;Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1;for(var Re=0;Re<at;Re++)We[Re].emit("unpipe",this,{hasUnpiped:!1});return this}var xe=mt(Ae.pipes,nt);return xe===-1?this:(Ae.pipes.splice(xe,1),Ae.pipesCount-=1,Ae.pipesCount===1&&(Ae.pipes=Ae.pipes[0]),nt.emit("unpipe",this,je),this)},Xe.prototype.on=function(nt,Ae){var je=se.prototype.on.call(this,nt,Ae),We=this._readableState;return nt==="data"?(We.readableListening=this.listenerCount("readable")>0,We.flowing!==!1&&this.resume()):nt==="readable"&&!We.endEmitted&&!We.readableListening&&(We.readableListening=We.needReadable=!0,We.flowing=!1,We.emittedReadable=!1,ce("on readable",We.length,We.reading),We.length?Ye(this):We.reading||x.nextTick(lt,this)),je},Xe.prototype.addListener=Xe.prototype.on,Xe.prototype.removeListener=function(nt,Ae){var je=se.prototype.removeListener.call(this,nt,Ae);return nt==="readable"&&x.nextTick(ut,this),je},Xe.prototype.removeAllListeners=function(nt){var Ae=se.prototype.removeAllListeners.apply(this,arguments);return(nt==="readable"||nt===void 0)&&x.nextTick(ut,this),Ae};function ut(nt){var Ae=nt._readableState;Ae.readableListening=nt.listenerCount("readable")>0,Ae.resumeScheduled&&!Ae.paused?Ae.flowing=!0:nt.listenerCount("data")>0&&nt.resume()}function lt(nt){ce("readable nexttick read 0"),nt.read(0)}Xe.prototype.resume=function(){var nt=this._readableState;return nt.flowing||(ce("resume"),nt.flowing=!nt.readableListening,Ze(this,nt)),nt.paused=!1,this};function Ze(nt,Ae){Ae.resumeScheduled||(Ae.resumeScheduled=!0,x.nextTick(Ne,nt,Ae))}function Ne(nt,Ae){ce("resume",Ae.reading),Ae.reading||nt.read(0),Ae.resumeScheduled=!1,nt.emit("resume"),ze(nt),Ae.flowing&&!Ae.reading&&nt.read(0)}Xe.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._readableState.paused=!0,this};function ze(nt){var Ae=nt._readableState;for(ce("flow",Ae.flowing);Ae.flowing&&nt.read()!==null;);}Xe.prototype.wrap=function(nt){var Ae=this,je=this._readableState,We=!1;nt.on("end",function(){if(ce("wrapped end"),je.decoder&&!je.ended){var xe=je.decoder.end();xe&&xe.length&&Ae.push(xe)}Ae.push(null)}),nt.on("data",function(xe){if(ce("wrapped data"),je.decoder&&(xe=je.decoder.write(xe)),!(je.objectMode&&xe==null)&&!(!je.objectMode&&(!xe||!xe.length))){var ye=Ae.push(xe);ye||(We=!0,nt.pause())}});for(var at in nt)this[at]===void 0&&typeof nt[at]=="function"&&(this[at]=function(ye){return function(){return nt[ye].apply(nt,arguments)}}(at));for(var Re=0;Re<Ee.length;Re++)nt.on(Ee[Re],this.emit.bind(this,Ee[Re]));return this._read=function(xe){ce("wrapped _read",xe),We&&(We=!1,nt.resume())},this},typeof Symbol=="function"&&(Xe.prototype[Symbol.asyncIterator]=function(){return Se===void 0&&(Se=y("./internal/streams/async_iterator")),Se(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(Ae){this._readableState&&(this._readableState.flowing=Ae)}}),Xe._fromList=Me,Object.defineProperty(Xe.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Me(nt,Ae){if(Ae.length===0)return null;var je;return Ae.objectMode?je=Ae.buffer.shift():!nt||nt>=Ae.length?(Ae.decoder?je=Ae.buffer.join(""):Ae.buffer.length===1?je=Ae.buffer.first():je=Ae.buffer.concat(Ae.length),Ae.buffer.clear()):je=Ae.buffer.consume(nt,Ae.decoder),je}function Ge(nt){var Ae=nt._readableState;ce("endReadable",Ae.endEmitted),Ae.endEmitted||(Ae.ended=!0,x.nextTick(ct,Ae,nt))}function ct(nt,Ae){if(ce("endReadableNT",nt.endEmitted,nt.length),!nt.endEmitted&&nt.length===0&&(nt.endEmitted=!0,Ae.readable=!1,Ae.emit("end"),nt.autoDestroy)){var je=Ae._writableState;(!je||je.autoDestroy&&je.finished)&&Ae.destroy()}}typeof Symbol=="function"&&(Xe.from=function(nt,Ae){return De===void 0&&(De=y("./internal/streams/from")),De(Xe,nt,Ae)});function mt(nt,Ae){for(var je=0,We=nt.length;je<We;je++)if(nt[je]===Ae)return je;return-1}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t: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,ve){"use strict";we.exports=te;var x=y("../errors").codes,z=x.ERR_METHOD_NOT_IMPLEMENTED,oe=x.ERR_MULTIPLE_CALLBACK,ie=x.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=x.ERR_TRANSFORM_WITH_LENGTH_0,se=y("./_stream_duplex");y("inherits")(te,se);function E(ue,ce){var he=this._transformState;he.transforming=!1;var me=he.writecb;if(me===null)return this.emit("error",new oe);he.writechunk=null,he.writecb=null,ce!=null&&this.push(ce),me(ue);var fe=this._readableState;fe.reading=!1,(fe.needReadable||fe.length<fe.highWaterMark)&&this._read(fe.highWaterMark)}function te(ue){if(!(this instanceof te))return new te(ue);se.call(this,ue),this._transformState={afterTransform:E.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,ue&&(typeof ue.transform=="function"&&(this._transform=ue.transform),typeof ue.flush=="function"&&(this._flush=ue.flush)),this.on("prefinish",re)}function re(){var ue=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(ce,he){le(ue,ce,he)}):le(this,null,null)}te.prototype.push=function(ue,ce){return this._transformState.needTransform=!1,se.prototype.push.call(this,ue,ce)},te.prototype._transform=function(ue,ce,he){he(new z("_transform()"))},te.prototype._write=function(ue,ce,he){var me=this._transformState;if(me.writecb=he,me.writechunk=ue,me.writeencoding=ce,!me.transforming){var fe=this._readableState;(me.needTransform||fe.needReadable||fe.length<fe.highWaterMark)&&this._read(fe.highWaterMark)}},te.prototype._read=function(ue){var ce=this._transformState;ce.writechunk!==null&&!ce.transforming?(ce.transforming=!0,this._transform(ce.writechunk,ce.writeencoding,ce.afterTransform)):ce.needTransform=!0},te.prototype._destroy=function(ue,ce){se.prototype._destroy.call(this,ue,function(he){ce(he)})};function le(ue,ce,he){if(ce)return ue.emit("error",ce);if(he!=null&&ue.push(he),ue._writableState.length)throw new ee;if(ue._transformState.transforming)throw new ie;return ue.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(y,we,ve){(function(x,z){(function(){"use strict";we.exports=He;function oe(ze,Me,Ge){this.chunk=ze,this.encoding=Me,this.callback=Ge,this.next=null}function ie(ze){var Me=this;this.next=null,this.entry=null,this.finish=function(){Ne(Me,ze)}}var ee;He.WritableState=Ee;var se={deprecate:y("util-deprecate")},E=y("./internal/streams/stream"),te=y("buffer").Buffer,re=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function le(ze){return te.from(ze)}function ue(ze){return te.isBuffer(ze)||ze instanceof re}var ce=y("./internal/streams/destroy"),he=y("./internal/streams/state"),me=he.getHighWaterMark,fe=y("../errors").codes,be=fe.ERR_INVALID_ARG_TYPE,Ce=fe.ERR_METHOD_NOT_IMPLEMENTED,Te=fe.ERR_MULTIPLE_CALLBACK,Pe=fe.ERR_STREAM_CANNOT_PIPE,ke=fe.ERR_STREAM_DESTROYED,de=fe.ERR_STREAM_NULL_VALUES,ge=fe.ERR_STREAM_WRITE_AFTER_END,Se=fe.ERR_UNKNOWN_ENCODING,De=ce.errorOrDestroy;y("inherits")(He,E);function _e(){}function Ee(ze,Me,Ge){ee=ee||y("./_stream_duplex"),ze=ze||{},typeof Ge!="boolean"&&(Ge=Me instanceof ee),this.objectMode=!!ze.objectMode,Ge&&(this.objectMode=this.objectMode||!!ze.writableObjectMode),this.highWaterMark=me(this,ze,"writableHighWaterMark",Ge),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ct=ze.decodeStrings===!1;this.decodeStrings=!ct,this.defaultEncoding=ze.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(mt){it(Me,mt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=ze.emitClose!==!1,this.autoDestroy=!!ze.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new ie(this)}Ee.prototype.getBuffer=function(){for(var Me=this.bufferedRequest,Ge=[];Me;)Ge.push(Me),Me=Me.next;return Ge},function(){try{Object.defineProperty(Ee.prototype,"buffer",{get:se.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(ze){}}();var Oe;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Oe=Function.prototype[Symbol.hasInstance],Object.defineProperty(He,Symbol.hasInstance,{value:function(Me){return Oe.call(this,Me)?!0:this!==He?!1:Me&&Me._writableState instanceof Ee}})):Oe=function(Me){return Me instanceof this};function He(ze){ee=ee||y("./_stream_duplex");var Me=this instanceof ee;if(!Me&&!Oe.call(He,this))return new He(ze);this._writableState=new Ee(ze,this,Me),this.writable=!0,ze&&(typeof ze.write=="function"&&(this._write=ze.write),typeof ze.writev=="function"&&(this._writev=ze.writev),typeof ze.destroy=="function"&&(this._destroy=ze.destroy),typeof ze.final=="function"&&(this._final=ze.final)),E.call(this)}He.prototype.pipe=function(){De(this,new Pe)};function Xe(ze,Me){var Ge=new ge;De(ze,Ge),x.nextTick(Me,Ge)}function et(ze,Me,Ge,ct){var mt;return Ge===null?mt=new de:typeof Ge!="string"&&!Me.objectMode&&(mt=new be("chunk",["string","Buffer"],Ge)),mt?(De(ze,mt),x.nextTick(ct,mt),!1):!0}He.prototype.write=function(ze,Me,Ge){var ct=this._writableState,mt=!1,nt=!ct.objectMode&&ue(ze);return nt&&!te.isBuffer(ze)&&(ze=le(ze)),typeof Me=="function"&&(Ge=Me,Me=null),nt?Me="buffer":Me||(Me=ct.defaultEncoding),typeof Ge!="function"&&(Ge=_e),ct.ending?Xe(this,Ge):(nt||et(this,ct,ze,Ge))&&(ct.pendingcb++,mt=Le(this,ct,nt,ze,Me,Ge)),mt},He.prototype.cork=function(){this._writableState.corked++},He.prototype.uncork=function(){var ze=this._writableState;ze.corked&&(ze.corked--,!ze.writing&&!ze.corked&&!ze.bufferProcessing&&ze.bufferedRequest&&Ke(this,ze))},He.prototype.setDefaultEncoding=function(Me){if(typeof Me=="string"&&(Me=Me.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Me+"").toLowerCase())>-1))throw new Se(Me);return this._writableState.defaultEncoding=Me,this},Object.defineProperty(He.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function st(ze,Me,Ge){return!ze.objectMode&&ze.decodeStrings!==!1&&typeof Me=="string"&&(Me=te.from(Me,Ge)),Me}Object.defineProperty(He.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Le(ze,Me,Ge,ct,mt,nt){if(!Ge){var Ae=st(Me,ct,mt);ct!==Ae&&(Ge=!0,mt="buffer",ct=Ae)}var je=Me.objectMode?1:ct.length;Me.length+=je;var We=Me.length<Me.highWaterMark;if(We||(Me.needDrain=!0),Me.writing||Me.corked){var at=Me.lastBufferedRequest;Me.lastBufferedRequest={chunk:ct,encoding:mt,isBuf:Ge,callback:nt,next:null},at?at.next=Me.lastBufferedRequest:Me.bufferedRequest=Me.lastBufferedRequest,Me.bufferedRequestCount+=1}else Ue(ze,Me,!1,je,ct,mt,nt);return We}function Ue(ze,Me,Ge,ct,mt,nt,Ae){Me.writelen=ct,Me.writecb=Ae,Me.writing=!0,Me.sync=!0,Me.destroyed?Me.onwrite(new ke("write")):Ge?ze._writev(mt,Me.onwrite):ze._write(mt,nt,Me.onwrite),Me.sync=!1}function rt(ze,Me,Ge,ct,mt){--Me.pendingcb,Ge?(x.nextTick(mt,ct),x.nextTick(lt,ze,Me),ze._writableState.errorEmitted=!0,De(ze,ct)):(mt(ct),ze._writableState.errorEmitted=!0,De(ze,ct),lt(ze,Me))}function ot(ze){ze.writing=!1,ze.writecb=null,ze.length-=ze.writelen,ze.writelen=0}function it(ze,Me){var Ge=ze._writableState,ct=Ge.sync,mt=Ge.writecb;if(typeof mt!="function")throw new Te;if(ot(Ge),Me)rt(ze,Ge,ct,Me,mt);else{var nt=ft(Ge)||ze.destroyed;!nt&&!Ge.corked&&!Ge.bufferProcessing&&Ge.bufferedRequest&&Ke(ze,Ge),ct?x.nextTick(Ye,ze,Ge,nt,mt):Ye(ze,Ge,nt,mt)}}function Ye(ze,Me,Ge,ct){Ge||$e(ze,Me),Me.pendingcb--,ct(),lt(ze,Me)}function $e(ze,Me){Me.length===0&&Me.needDrain&&(Me.needDrain=!1,ze.emit("drain"))}function Ke(ze,Me){Me.bufferProcessing=!0;var Ge=Me.bufferedRequest;if(ze._writev&&Ge&&Ge.next){var ct=Me.bufferedRequestCount,mt=new Array(ct),nt=Me.corkedRequestsFree;nt.entry=Ge;for(var Ae=0,je=!0;Ge;)mt[Ae]=Ge,Ge.isBuf||(je=!1),Ge=Ge.next,Ae+=1;mt.allBuffers=je,Ue(ze,Me,!0,Me.length,mt,"",nt.finish),Me.pendingcb++,Me.lastBufferedRequest=null,nt.next?(Me.corkedRequestsFree=nt.next,nt.next=null):Me.corkedRequestsFree=new ie(Me),Me.bufferedRequestCount=0}else{for(;Ge;){var We=Ge.chunk,at=Ge.encoding,Re=Ge.callback,xe=Me.objectMode?1:We.length;if(Ue(ze,Me,!1,xe,We,at,Re),Ge=Ge.next,Me.bufferedRequestCount--,Me.writing)break}Ge===null&&(Me.lastBufferedRequest=null)}Me.bufferedRequest=Ge,Me.bufferProcessing=!1}He.prototype._write=function(ze,Me,Ge){Ge(new Ce("_write()"))},He.prototype._writev=null,He.prototype.end=function(ze,Me,Ge){var ct=this._writableState;return typeof ze=="function"?(Ge=ze,ze=null,Me=null):typeof Me=="function"&&(Ge=Me,Me=null),ze!=null&&this.write(ze,Me),ct.corked&&(ct.corked=1,this.uncork()),ct.ending||Ze(this,ct,Ge),this},Object.defineProperty(He.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ft(ze){return ze.ending&&ze.length===0&&ze.bufferedRequest===null&&!ze.finished&&!ze.writing}function tt(ze,Me){ze._final(function(Ge){Me.pendingcb--,Ge&&De(ze,Ge),Me.prefinished=!0,ze.emit("prefinish"),lt(ze,Me)})}function ut(ze,Me){!Me.prefinished&&!Me.finalCalled&&(typeof ze._final=="function"&&!Me.destroyed?(Me.pendingcb++,Me.finalCalled=!0,x.nextTick(tt,ze,Me)):(Me.prefinished=!0,ze.emit("prefinish")))}function lt(ze,Me){var Ge=ft(Me);if(Ge&&(ut(ze,Me),Me.pendingcb===0&&(Me.finished=!0,ze.emit("finish"),Me.autoDestroy))){var ct=ze._readableState;(!ct||ct.autoDestroy&&ct.endEmitted)&&ze.destroy()}return Ge}function Ze(ze,Me,Ge){Me.ending=!0,lt(ze,Me),Ge&&(Me.finished?x.nextTick(Ge):ze.once("finish",Ge)),Me.ended=!0,ze.writable=!1}function Ne(ze,Me,Ge){var ct=ze.entry;for(ze.entry=null;ct;){var mt=ct.callback;Me.pendingcb--,mt(Ge),ct=ct.next}Me.corkedRequestsFree.next=ze}Object.defineProperty(He.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Me){this._writableState&&(this._writableState.destroyed=Me)}}),He.prototype.destroy=ce.destroy,He.prototype._undestroy=ce.undestroy,He.prototype._destroy=function(ze,Me){Me(ze)}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t: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,ve){(function(x){(function(){"use strict";var z;function oe(de,ge,Se){return ge=ie(ge),ge in de?Object.defineProperty(de,ge,{value:Se,enumerable:!0,configurable:!0,writable:!0}):de[ge]=Se,de}function ie(de){var ge=ee(de,"string");return typeof ge=="symbol"?ge:String(ge)}function ee(de,ge){if(typeof de!="object"||de===null)return de;var Se=de[Symbol.toPrimitive];if(Se!==void 0){var De=Se.call(de,ge||"default");if(typeof De!="object")return De;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ge==="string"?String:Number)(de)}var se=y("./end-of-stream"),E=Symbol("lastResolve"),te=Symbol("lastReject"),re=Symbol("error"),le=Symbol("ended"),ue=Symbol("lastPromise"),ce=Symbol("handlePromise"),he=Symbol("stream");function me(de,ge){return{value:de,done:ge}}function fe(de){var ge=de[E];if(ge!==null){var Se=de[he].read();Se!==null&&(de[ue]=null,de[E]=null,de[te]=null,ge(me(Se,!1)))}}function be(de){x.nextTick(fe,de)}function Ce(de,ge){return function(Se,De){de.then(function(){if(ge[le]){Se(me(void 0,!0));return}ge[ce](Se,De)},De)}}var Te=Object.getPrototypeOf(function(){}),Pe=Object.setPrototypeOf((z={get stream(){return this[he]},next:function(){var ge=this,Se=this[re];if(Se!==null)return Promise.reject(Se);if(this[le])return Promise.resolve(me(void 0,!0));if(this[he].destroyed)return new Promise(function(Oe,He){x.nextTick(function(){ge[re]?He(ge[re]):Oe(me(void 0,!0))})});var De=this[ue],_e;if(De)_e=new Promise(Ce(De,this));else{var Ee=this[he].read();if(Ee!==null)return Promise.resolve(me(Ee,!1));_e=new Promise(this[ce])}return this[ue]=_e,_e}},oe(z,Symbol.asyncIterator,function(){return this}),oe(z,"return",function(){var ge=this;return new Promise(function(Se,De){ge[he].destroy(null,function(_e){if(_e){De(_e);return}Se(me(void 0,!0))})})}),z),Te),ke=function(ge){var Se,De=Object.create(Pe,(Se={},oe(Se,he,{value:ge,writable:!0}),oe(Se,E,{value:null,writable:!0}),oe(Se,te,{value:null,writable:!0}),oe(Se,re,{value:null,writable:!0}),oe(Se,le,{value:ge._readableState.endEmitted,writable:!0}),oe(Se,ce,{value:function(Ee,Oe){var He=De[he].read();He?(De[ue]=null,De[E]=null,De[te]=null,Ee(me(He,!1))):(De[E]=Ee,De[te]=Oe)},writable:!0}),Se));return De[ue]=null,se(ge,function(_e){if(_e&&_e.code!=="ERR_STREAM_PREMATURE_CLOSE"){var Ee=De[te];Ee!==null&&(De[ue]=null,De[E]=null,De[te]=null,Ee(_e)),De[re]=_e;return}var Oe=De[E];Oe!==null&&(De[ue]=null,De[E]=null,De[te]=null,Oe(me(void 0,!0))),De[le]=!0}),ge.on("readable",be.bind(null,De)),De};we.exports=ke}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,we,ve){"use strict";function x(fe,be){var Ce=Object.keys(fe);if(Object.getOwnPropertySymbols){var Te=Object.getOwnPropertySymbols(fe);be&&(Te=Te.filter(function(Pe){return Object.getOwnPropertyDescriptor(fe,Pe).enumerable})),Ce.push.apply(Ce,Te)}return Ce}function z(fe){for(var be=1;be<arguments.length;be++){var Ce=arguments[be]!=null?arguments[be]:{};be%2?x(Object(Ce),!0).forEach(function(Te){oe(fe,Te,Ce[Te])}):Object.getOwnPropertyDescriptors?Object.defineProperties(fe,Object.getOwnPropertyDescriptors(Ce)):x(Object(Ce)).forEach(function(Te){Object.defineProperty(fe,Te,Object.getOwnPropertyDescriptor(Ce,Te))})}return fe}function oe(fe,be,Ce){return be=E(be),be in fe?Object.defineProperty(fe,be,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):fe[be]=Ce,fe}function ie(fe,be){if(!(fe instanceof be))throw new TypeError("Cannot call a class as a function")}function ee(fe,be){for(var Ce=0;Ce<be.length;Ce++){var Te=be[Ce];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(fe,E(Te.key),Te)}}function se(fe,be,Ce){return be&&ee(fe.prototype,be),Ce&&ee(fe,Ce),Object.defineProperty(fe,"prototype",{writable:!1}),fe}function E(fe){var be=te(fe,"string");return typeof be=="symbol"?be:String(be)}function te(fe,be){if(typeof fe!="object"||fe===null)return fe;var Ce=fe[Symbol.toPrimitive];if(Ce!==void 0){var Te=Ce.call(fe,be||"default");if(typeof Te!="object")return Te;throw new TypeError("@@toPrimitive must return a primitive value.")}return(be==="string"?String:Number)(fe)}var re=y("buffer"),le=re.Buffer,ue=y("util"),ce=ue.inspect,he=ce&&ce.custom||"inspect";function me(fe,be,Ce){le.prototype.copy.call(fe,be,Ce)}we.exports=function(){function fe(){ie(this,fe),this.head=null,this.tail=null,this.length=0}return se(fe,[{key:"push",value:function(Ce){var Te={data:Ce,next:null};this.length>0?this.tail.next=Te:this.head=Te,this.tail=Te,++this.length}},{key:"unshift",value:function(Ce){var Te={data:Ce,next:this.head};this.length===0&&(this.tail=Te),this.head=Te,++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 Te=this.head,Pe=""+Te.data;Te=Te.next;)Pe+=Ce+Te.data;return Pe}},{key:"concat",value:function(Ce){if(this.length===0)return le.alloc(0);for(var Te=le.allocUnsafe(Ce>>>0),Pe=this.head,ke=0;Pe;)me(Pe.data,Te,ke),ke+=Pe.data.length,Pe=Pe.next;return Te}},{key:"consume",value:function(Ce,Te){var Pe;return Ce<this.head.data.length?(Pe=this.head.data.slice(0,Ce),this.head.data=this.head.data.slice(Ce)):Ce===this.head.data.length?Pe=this.shift():Pe=Te?this._getString(Ce):this._getBuffer(Ce),Pe}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(Ce){var Te=this.head,Pe=1,ke=Te.data;for(Ce-=ke.length;Te=Te.next;){var de=Te.data,ge=Ce>de.length?de.length:Ce;if(ge===de.length?ke+=de:ke+=de.slice(0,Ce),Ce-=ge,Ce===0){ge===de.length?(++Pe,Te.next?this.head=Te.next:this.head=this.tail=null):(this.head=Te,Te.data=de.slice(ge));break}++Pe}return this.length-=Pe,ke}},{key:"_getBuffer",value:function(Ce){var Te=le.allocUnsafe(Ce),Pe=this.head,ke=1;for(Pe.data.copy(Te),Ce-=Pe.data.length;Pe=Pe.next;){var de=Pe.data,ge=Ce>de.length?de.length:Ce;if(de.copy(Te,Te.length-Ce,0,ge),Ce-=ge,Ce===0){ge===de.length?(++ke,Pe.next?this.head=Pe.next:this.head=this.tail=null):(this.head=Pe,Pe.data=de.slice(ge));break}++ke}return this.length-=ke,Te}},{key:he,value:function(Ce,Te){return ce(this,z(z({},Te),{},{depth:0,customInspect:!1}))}}]),fe}()},{buffer:90,util:89}],407:[function(y,we,ve){(function(x){(function(){"use strict";function z(te,re){var le=this,ue=this._readableState&&this._readableState.destroyed,ce=this._writableState&&this._writableState.destroyed;return ue||ce?(re?re(te):te&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x.nextTick(se,this,te)):x.nextTick(se,this,te)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(te||null,function(he){!re&&he?le._writableState?le._writableState.errorEmitted?x.nextTick(ie,le):(le._writableState.errorEmitted=!0,x.nextTick(oe,le,he)):x.nextTick(oe,le,he):re?(x.nextTick(ie,le),re(he)):x.nextTick(ie,le)}),this)}function oe(te,re){se(te,re),ie(te)}function ie(te){te._writableState&&!te._writableState.emitClose||te._readableState&&!te._readableState.emitClose||te.emit("close")}function ee(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function se(te,re){te.emit("error",re)}function E(te,re){var le=te._readableState,ue=te._writableState;le&&le.autoDestroy||ue&&ue.autoDestroy?te.destroy(re):te.emit("error",re)}we.exports={destroy:z,undestroy:ee,errorOrDestroy:E}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,we,ve){"use strict";var x=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(se){var E=!1;return function(){if(!E){E=!0;for(var te=arguments.length,re=new Array(te),le=0;le<te;le++)re[le]=arguments[le];se.apply(this,re)}}}function oe(){}function ie(se){return se.setHeader&&typeof se.abort=="function"}function ee(se,E,te){if(typeof E=="function")return ee(se,null,E);E||(E={}),te=z(te||oe);var re=E.readable||E.readable!==!1&&se.readable,le=E.writable||E.writable!==!1&&se.writable,ue=function(){se.writable||he()},ce=se._writableState&&se._writableState.finished,he=function(){le=!1,ce=!0,re||te.call(se)},me=se._readableState&&se._readableState.endEmitted,fe=function(){re=!1,me=!0,le||te.call(se)},be=function(ke){te.call(se,ke)},Ce=function(){var ke;if(re&&!me)return(!se._readableState||!se._readableState.ended)&&(ke=new x),te.call(se,ke);if(le&&!ce)return(!se._writableState||!se._writableState.ended)&&(ke=new x),te.call(se,ke)},Te=function(){se.req.on("finish",he)};return ie(se)?(se.on("complete",he),se.on("abort",Ce),se.req?Te():se.on("request",Te)):le&&!se._writableState&&(se.on("end",ue),se.on("close",ue)),se.on("end",fe),se.on("finish",he),E.error!==!1&&se.on("error",be),se.on("close",Ce),function(){se.removeListener("complete",he),se.removeListener("abort",Ce),se.removeListener("request",Te),se.req&&se.req.removeListener("finish",he),se.removeListener("end",ue),se.removeListener("close",ue),se.removeListener("finish",he),se.removeListener("end",fe),se.removeListener("error",be),se.removeListener("close",Ce)}}we.exports=ee},{"../../../errors":399}],409:[function(y,we,ve){we.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,we,ve){"use strict";var x;function z(he){var me=!1;return function(){me||(me=!0,he.apply(void 0,arguments))}}var oe=y("../../../errors").codes,ie=oe.ERR_MISSING_ARGS,ee=oe.ERR_STREAM_DESTROYED;function se(he){if(he)throw he}function E(he){return he.setHeader&&typeof he.abort=="function"}function te(he,me,fe,be){be=z(be);var Ce=!1;he.on("close",function(){Ce=!0}),x===void 0&&(x=y("./end-of-stream")),x(he,{readable:me,writable:fe},function(Pe){if(Pe)return be(Pe);Ce=!0,be()});var Te=!1;return function(Pe){if(!Ce&&!Te){if(Te=!0,E(he))return he.abort();if(typeof he.destroy=="function")return he.destroy();be(Pe||new ee("pipe"))}}}function re(he){he()}function le(he,me){return he.pipe(me)}function ue(he){return!he.length||typeof he[he.length-1]!="function"?se:he.pop()}function ce(){for(var he=arguments.length,me=new Array(he),fe=0;fe<he;fe++)me[fe]=arguments[fe];var be=ue(me);if(Array.isArray(me[0])&&(me=me[0]),me.length<2)throw new ie("streams");var Ce,Te=me.map(function(Pe,ke){var de=ke<me.length-1,ge=ke>0;return te(Pe,de,ge,function(Se){Ce||(Ce=Se),Se&&Te.forEach(re),!de&&(Te.forEach(re),be(Ce))})});return me.reduce(le)}we.exports=ce},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,we,ve){"use strict";var x=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(ie,ee,se){return ie.highWaterMark!=null?ie.highWaterMark:ee?ie[se]:null}function oe(ie,ee,se,E){var te=z(ee,E,se);if(te!=null){if(!(isFinite(te)&&Math.floor(te)===te)||te<0){var re=E?se:"highWaterMark";throw new x(re,te)}return Math.floor(te)}return ie.objectMode?16:16*1024}we.exports={getHighWaterMark:oe}},{"../../../errors":399}],412:[function(y,we,ve){arguments[4][393][0].apply(ve,arguments)},{dup:393,events:344}],413:[function(y,we,ve){"use strict";var x=y("safe-buffer").Buffer,z=x.isEncoding||function(Te){switch(Te=""+Te,Te&&Te.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function oe(Te){if(!Te)return"utf8";for(var Pe;;)switch(Te){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return Te;default:if(Pe)return;Te=(""+Te).toLowerCase(),Pe=!0}}function ie(Te){var Pe=oe(Te);if(typeof Pe!="string"&&(x.isEncoding===z||!z(Te)))throw new Error("Unknown encoding: "+Te);return Pe||Te}ve.StringDecoder=ee;function ee(Te){this.encoding=ie(Te);var Pe;switch(this.encoding){case"utf16le":this.text=ce,this.end=he,Pe=4;break;case"utf8":this.fillLast=re,Pe=4;break;case"base64":this.text=me,this.end=fe,Pe=3;break;default:this.write=be,this.end=Ce;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(Pe)}ee.prototype.write=function(Te){if(Te.length===0)return"";var Pe,ke;if(this.lastNeed){if(Pe=this.fillLast(Te),Pe===void 0)return"";ke=this.lastNeed,this.lastNeed=0}else ke=0;return ke<Te.length?Pe?Pe+this.text(Te,ke):this.text(Te,ke):Pe||""},ee.prototype.end=ue,ee.prototype.text=le,ee.prototype.fillLast=function(Te){if(this.lastNeed<=Te.length)return Te.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Te.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Te.length),this.lastNeed-=Te.length};function se(Te){return Te<=127?0:Te>>5===6?2:Te>>4===14?3:Te>>3===30?4:Te>>6===2?-1:-2}function E(Te,Pe,ke){var de=Pe.length-1;if(de<ke)return 0;var ge=se(Pe[de]);return ge>=0?(ge>0&&(Te.lastNeed=ge-1),ge):--de<ke||ge===-2?0:(ge=se(Pe[de]),ge>=0?(ge>0&&(Te.lastNeed=ge-2),ge):--de<ke||ge===-2?0:(ge=se(Pe[de]),ge>=0?(ge>0&&(ge===2?ge=0:Te.lastNeed=ge-3),ge):0))}function te(Te,Pe,ke){if((Pe[0]&192)!==128)return Te.lastNeed=0,"\uFFFD";if(Te.lastNeed>1&&Pe.length>1){if((Pe[1]&192)!==128)return Te.lastNeed=1,"\uFFFD";if(Te.lastNeed>2&&Pe.length>2&&(Pe[2]&192)!==128)return Te.lastNeed=2,"\uFFFD"}}function re(Te){var Pe=this.lastTotal-this.lastNeed,ke=te(this,Te,Pe);if(ke!==void 0)return ke;if(this.lastNeed<=Te.length)return Te.copy(this.lastChar,Pe,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Te.copy(this.lastChar,Pe,0,Te.length),this.lastNeed-=Te.length}function le(Te,Pe){var ke=E(this,Te,Pe);if(!this.lastNeed)return Te.toString("utf8",Pe);this.lastTotal=ke;var de=Te.length-(ke-this.lastNeed);return Te.copy(this.lastChar,0,de),Te.toString("utf8",Pe,de)}function ue(Te){var Pe=Te&&Te.length?this.write(Te):"";return this.lastNeed?Pe+"\uFFFD":Pe}function ce(Te,Pe){if((Te.length-Pe)%2===0){var ke=Te.toString("utf16le",Pe);if(ke){var de=ke.charCodeAt(ke.length-1);if(de>=55296&&de<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Te[Te.length-2],this.lastChar[1]=Te[Te.length-1],ke.slice(0,-1)}return ke}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Te[Te.length-1],Te.toString("utf16le",Pe,Te.length-1)}function he(Te){var Pe=Te&&Te.length?this.write(Te):"";if(this.lastNeed){var ke=this.lastTotal-this.lastNeed;return Pe+this.lastChar.toString("utf16le",0,ke)}return Pe}function me(Te,Pe){var ke=(Te.length-Pe)%3;return ke===0?Te.toString("base64",Pe):(this.lastNeed=3-ke,this.lastTotal=3,ke===1?this.lastChar[0]=Te[Te.length-1]:(this.lastChar[0]=Te[Te.length-2],this.lastChar[1]=Te[Te.length-1]),Te.toString("base64",Pe,Te.length-ke))}function fe(Te){var Pe=Te&&Te.length?this.write(Te):"";return this.lastNeed?Pe+this.lastChar.toString("base64",0,3-this.lastNeed):Pe}function be(Te){return Te.toString(this.encoding)}function Ce(Te){return Te&&Te.length?this.write(Te):""}},{"safe-buffer":396}],414:[function(y,we,ve){(function(x,z){(function(){var oe=y("process/browser.js").nextTick,ie=Function.prototype.apply,ee=Array.prototype.slice,se={},E=0;ve.setTimeout=function(){return new te(ie.call(setTimeout,window,arguments),clearTimeout)},ve.setInterval=function(){return new te(ie.call(setInterval,window,arguments),clearInterval)},ve.clearTimeout=ve.clearInterval=function(re){re.close()};function te(re,le){this._id=re,this._clearFn=le}te.prototype.unref=te.prototype.ref=function(){},te.prototype.close=function(){this._clearFn.call(window,this._id)},ve.enroll=function(re,le){clearTimeout(re._idleTimeoutId),re._idleTimeout=le},ve.unenroll=function(re){clearTimeout(re._idleTimeoutId),re._idleTimeout=-1},ve._unrefActive=ve.active=function(re){clearTimeout(re._idleTimeoutId);var le=re._idleTimeout;le>=0&&(re._idleTimeoutId=setTimeout(function(){re._onTimeout&&re._onTimeout()},le))},ve.setImmediate=typeof x=="function"?x:function(re){var le=E++,ue=arguments.length<2?!1:ee.call(arguments,1);return se[le]=!0,oe(function(){se[le]&&(ue?re.apply(null,ue):re.call(null),ve.clearImmediate(le))}),le},ve.clearImmediate=typeof z=="function"?z:function(re){delete se[re]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,we,ve){var x=y("buffer").Buffer;we.exports=function(z){if(z instanceof Uint8Array){if(z.byteOffset===0&&z.byteLength===z.buffer.byteLength)return z.buffer;if(typeof z.buffer.slice=="function")return z.buffer.slice(z.byteOffset,z.byteOffset+z.byteLength)}if(x.isBuffer(z)){for(var oe=new Uint8Array(z.length),ie=z.length,ee=0;ee<ie;ee++)oe[ee]=z[ee];return oe.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,we,ve){(function(x){(function(){we.exports=z;function z(ie,ee){if(oe("noDeprecation"))return ie;var se=!1;function E(){if(!se){if(oe("throwDeprecation"))throw new Error(ee);oe("traceDeprecation")?console.trace(ee):console.warn(ee),se=!0}return ie.apply(this,arguments)}return E}function oe(ie){try{if(!x.localStorage)return!1}catch(se){return!1}var ee=x.localStorage[ie];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof _t!="undefined"?_t:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(y,we,ve){arguments[4][84][0].apply(ve,arguments)},{dup:84}],418:[function(y,we,ve){"use strict";var x=y("is-arguments"),z=y("is-generator-function"),oe=y("which-typed-array"),ie=y("is-typed-array");function ee(at){return at.call.bind(at)}var se=typeof BigInt!="undefined",E=typeof Symbol!="undefined",te=ee(Object.prototype.toString),re=ee(Number.prototype.valueOf),le=ee(String.prototype.valueOf),ue=ee(Boolean.prototype.valueOf);if(se)var ce=ee(BigInt.prototype.valueOf);if(E)var he=ee(Symbol.prototype.valueOf);function me(at,Re){if(typeof at!="object")return!1;try{return Re(at),!0}catch(xe){return!1}}ve.isArgumentsObject=x,ve.isGeneratorFunction=z,ve.isTypedArray=ie;function fe(at){return typeof Promise!="undefined"&&at instanceof Promise||at!==null&&typeof at=="object"&&typeof at.then=="function"&&typeof at.catch=="function"}ve.isPromise=fe;function be(at){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(at):ie(at)||Ke(at)}ve.isArrayBufferView=be;function Ce(at){return oe(at)==="Uint8Array"}ve.isUint8Array=Ce;function Te(at){return oe(at)==="Uint8ClampedArray"}ve.isUint8ClampedArray=Te;function Pe(at){return oe(at)==="Uint16Array"}ve.isUint16Array=Pe;function ke(at){return oe(at)==="Uint32Array"}ve.isUint32Array=ke;function de(at){return oe(at)==="Int8Array"}ve.isInt8Array=de;function ge(at){return oe(at)==="Int16Array"}ve.isInt16Array=ge;function Se(at){return oe(at)==="Int32Array"}ve.isInt32Array=Se;function De(at){return oe(at)==="Float32Array"}ve.isFloat32Array=De;function _e(at){return oe(at)==="Float64Array"}ve.isFloat64Array=_e;function Ee(at){return oe(at)==="BigInt64Array"}ve.isBigInt64Array=Ee;function Oe(at){return oe(at)==="BigUint64Array"}ve.isBigUint64Array=Oe;function He(at){return te(at)==="[object Map]"}He.working=typeof Map!="undefined"&&He(new Map);function Xe(at){return typeof Map=="undefined"?!1:He.working?He(at):at instanceof Map}ve.isMap=Xe;function et(at){return te(at)==="[object Set]"}et.working=typeof Set!="undefined"&&et(new Set);function st(at){return typeof Set=="undefined"?!1:et.working?et(at):at instanceof Set}ve.isSet=st;function Le(at){return te(at)==="[object WeakMap]"}Le.working=typeof WeakMap!="undefined"&&Le(new WeakMap);function Ue(at){return typeof WeakMap=="undefined"?!1:Le.working?Le(at):at instanceof WeakMap}ve.isWeakMap=Ue;function rt(at){return te(at)==="[object WeakSet]"}rt.working=typeof WeakSet!="undefined"&&rt(new WeakSet);function ot(at){return rt(at)}ve.isWeakSet=ot;function it(at){return te(at)==="[object ArrayBuffer]"}it.working=typeof ArrayBuffer!="undefined"&&it(new ArrayBuffer);function Ye(at){return typeof ArrayBuffer=="undefined"?!1:it.working?it(at):at instanceof ArrayBuffer}ve.isArrayBuffer=Ye;function $e(at){return te(at)==="[object DataView]"}$e.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&$e(new DataView(new ArrayBuffer(1),0,1));function Ke(at){return typeof DataView=="undefined"?!1:$e.working?$e(at):at instanceof DataView}ve.isDataView=Ke;var ft=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function tt(at){return te(at)==="[object SharedArrayBuffer]"}function ut(at){return typeof ft=="undefined"?!1:(typeof tt.working=="undefined"&&(tt.working=tt(new ft)),tt.working?tt(at):at instanceof ft)}ve.isSharedArrayBuffer=ut;function lt(at){return te(at)==="[object AsyncFunction]"}ve.isAsyncFunction=lt;function Ze(at){return te(at)==="[object Map Iterator]"}ve.isMapIterator=Ze;function Ne(at){return te(at)==="[object Set Iterator]"}ve.isSetIterator=Ne;function ze(at){return te(at)==="[object Generator]"}ve.isGeneratorObject=ze;function Me(at){return te(at)==="[object WebAssembly.Module]"}ve.isWebAssemblyCompiledModule=Me;function Ge(at){return me(at,re)}ve.isNumberObject=Ge;function ct(at){return me(at,le)}ve.isStringObject=ct;function mt(at){return me(at,ue)}ve.isBooleanObject=mt;function nt(at){return se&&me(at,ce)}ve.isBigIntObject=nt;function Ae(at){return E&&me(at,he)}ve.isSymbolObject=Ae;function je(at){return Ge(at)||ct(at)||mt(at)||nt(at)||Ae(at)}ve.isBoxedPrimitive=je;function We(at){return typeof Uint8Array!="undefined"&&(Ye(at)||ut(at))}ve.isAnyArrayBuffer=We,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(at){Object.defineProperty(ve,at,{enumerable:!1,value:function(){throw new Error(at+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,we,ve){(function(x){(function(){var z=Object.getOwnPropertyDescriptors||function(ft){for(var tt=Object.keys(ft),ut={},lt=0;lt<tt.length;lt++)ut[tt[lt]]=Object.getOwnPropertyDescriptor(ft,tt[lt]);return ut},oe=/%[sdj%]/g;ve.format=function(Ke){if(!ge(Ke)){for(var ft=[],tt=0;tt<arguments.length;tt++)ft.push(E(arguments[tt]));return ft.join(" ")}for(var tt=1,ut=arguments,lt=ut.length,Ze=String(Ke).replace(oe,function(ze){if(ze==="%%")return"%";if(tt>=lt)return ze;switch(ze){case"%s":return String(ut[tt++]);case"%d":return Number(ut[tt++]);case"%j":try{return JSON.stringify(ut[tt++])}catch(Me){return"[Circular]"}default:return ze}}),Ne=ut[tt];tt<lt;Ne=ut[++tt])Pe(Ne)||!Ee(Ne)?Ze+=" "+Ne:Ze+=" "+E(Ne);return Ze},ve.deprecate=function(Ke,ft){if(typeof x!="undefined"&&x.noDeprecation===!0)return Ke;if(typeof x=="undefined")return function(){return ve.deprecate(Ke,ft).apply(this,arguments)};var tt=!1;function ut(){if(!tt){if(x.throwDeprecation)throw new Error(ft);x.traceDeprecation?console.trace(ft):console.error(ft),tt=!0}return Ke.apply(this,arguments)}return ut};var ie={},ee=/^$/;if(x.env.NODE_DEBUG){var se=x.env.NODE_DEBUG;se=se.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+se+"$","i")}ve.debuglog=function(Ke){if(Ke=Ke.toUpperCase(),!ie[Ke])if(ee.test(Ke)){var ft=x.pid;ie[Ke]=function(){var tt=ve.format.apply(ve,arguments);console.error("%s %d: %s",Ke,ft,tt)}}else ie[Ke]=function(){};return ie[Ke]};function E(Ke,ft){var tt={seen:[],stylize:re};return arguments.length>=3&&(tt.depth=arguments[2]),arguments.length>=4&&(tt.colors=arguments[3]),Te(ft)?tt.showHidden=ft:ft&&ve._extend(tt,ft),De(tt.showHidden)&&(tt.showHidden=!1),De(tt.depth)&&(tt.depth=2),De(tt.colors)&&(tt.colors=!1),De(tt.customInspect)&&(tt.customInspect=!0),tt.colors&&(tt.stylize=te),ue(tt,Ke,tt.depth)}ve.inspect=E,E.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]},E.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function te(Ke,ft){var tt=E.styles[ft];return tt?"\x1B["+E.colors[tt][0]+"m"+Ke+"\x1B["+E.colors[tt][1]+"m":Ke}function re(Ke,ft){return Ke}function le(Ke){var ft={};return Ke.forEach(function(tt,ut){ft[tt]=!0}),ft}function ue(Ke,ft,tt){if(Ke.customInspect&&ft&&Xe(ft.inspect)&&ft.inspect!==ve.inspect&&!(ft.constructor&&ft.constructor.prototype===ft)){var ut=ft.inspect(tt,Ke);return ge(ut)||(ut=ue(Ke,ut,tt)),ut}var lt=ce(Ke,ft);if(lt)return lt;var Ze=Object.keys(ft),Ne=le(Ze);if(Ke.showHidden&&(Ze=Object.getOwnPropertyNames(ft)),He(ft)&&(Ze.indexOf("message")>=0||Ze.indexOf("description")>=0))return he(ft);if(Ze.length===0){if(Xe(ft)){var ze=ft.name?": "+ft.name:"";return Ke.stylize("[Function"+ze+"]","special")}if(_e(ft))return Ke.stylize(RegExp.prototype.toString.call(ft),"regexp");if(Oe(ft))return Ke.stylize(Date.prototype.toString.call(ft),"date");if(He(ft))return he(ft)}var Me="",Ge=!1,ct=["{","}"];if(Ce(ft)&&(Ge=!0,ct=["[","]"]),Xe(ft)){var mt=ft.name?": "+ft.name:"";Me=" [Function"+mt+"]"}if(_e(ft)&&(Me=" "+RegExp.prototype.toString.call(ft)),Oe(ft)&&(Me=" "+Date.prototype.toUTCString.call(ft)),He(ft)&&(Me=" "+he(ft)),Ze.length===0&&(!Ge||ft.length==0))return ct[0]+Me+ct[1];if(tt<0)return _e(ft)?Ke.stylize(RegExp.prototype.toString.call(ft),"regexp"):Ke.stylize("[Object]","special");Ke.seen.push(ft);var nt;return Ge?nt=me(Ke,ft,tt,Ne,Ze):nt=Ze.map(function(Ae){return fe(Ke,ft,tt,Ne,Ae,Ge)}),Ke.seen.pop(),be(nt,Me,ct)}function ce(Ke,ft){if(De(ft))return Ke.stylize("undefined","undefined");if(ge(ft)){var tt="'"+JSON.stringify(ft).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ke.stylize(tt,"string")}if(de(ft))return Ke.stylize(""+ft,"number");if(Te(ft))return Ke.stylize(""+ft,"boolean");if(Pe(ft))return Ke.stylize("null","null")}function he(Ke){return"["+Error.prototype.toString.call(Ke)+"]"}function me(Ke,ft,tt,ut,lt){for(var Ze=[],Ne=0,ze=ft.length;Ne<ze;++Ne)ot(ft,String(Ne))?Ze.push(fe(Ke,ft,tt,ut,String(Ne),!0)):Ze.push("");return lt.forEach(function(Me){Me.match(/^\d+$/)||Ze.push(fe(Ke,ft,tt,ut,Me,!0))}),Ze}function fe(Ke,ft,tt,ut,lt,Ze){var Ne,ze,Me;if(Me=Object.getOwnPropertyDescriptor(ft,lt)||{value:ft[lt]},Me.get?Me.set?ze=Ke.stylize("[Getter/Setter]","special"):ze=Ke.stylize("[Getter]","special"):Me.set&&(ze=Ke.stylize("[Setter]","special")),ot(ut,lt)||(Ne="["+lt+"]"),ze||(Ke.seen.indexOf(Me.value)<0?(Pe(tt)?ze=ue(Ke,Me.value,null):ze=ue(Ke,Me.value,tt-1),ze.indexOf(`
`)>-1&&(Ze?ze=ze.split(`
`).map(function(Ge){return" "+Ge}).join(`
`).slice(2):ze=`
`+ze.split(`
`).map(function(Ge){return" "+Ge}).join(`
`))):ze=Ke.stylize("[Circular]","special")),De(Ne)){if(Ze&&lt.match(/^\d+$/))return ze;Ne=JSON.stringify(""+lt),Ne.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ne=Ne.slice(1,-1),Ne=Ke.stylize(Ne,"name")):(Ne=Ne.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ne=Ke.stylize(Ne,"string"))}return Ne+": "+ze}function be(Ke,ft,tt){var ut=0,lt=Ke.reduce(function(Ze,Ne){return ut++,Ne.indexOf(`
`)>=0&&ut++,Ze+Ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return lt>60?tt[0]+(ft===""?"":ft+`
`)+" "+Ke.join(`,
`)+" "+tt[1]:tt[0]+ft+" "+Ke.join(", ")+" "+tt[1]}ve.types=y("./support/types");function Ce(Ke){return Array.isArray(Ke)}ve.isArray=Ce;function Te(Ke){return typeof Ke=="boolean"}ve.isBoolean=Te;function Pe(Ke){return Ke===null}ve.isNull=Pe;function ke(Ke){return Ke==null}ve.isNullOrUndefined=ke;function de(Ke){return typeof Ke=="number"}ve.isNumber=de;function ge(Ke){return typeof Ke=="string"}ve.isString=ge;function Se(Ke){return typeof Ke=="symbol"}ve.isSymbol=Se;function De(Ke){return Ke===void 0}ve.isUndefined=De;function _e(Ke){return Ee(Ke)&&st(Ke)==="[object RegExp]"}ve.isRegExp=_e,ve.types.isRegExp=_e;function Ee(Ke){return typeof Ke=="object"&&Ke!==null}ve.isObject=Ee;function Oe(Ke){return Ee(Ke)&&st(Ke)==="[object Date]"}ve.isDate=Oe,ve.types.isDate=Oe;function He(Ke){return Ee(Ke)&&(st(Ke)==="[object Error]"||Ke instanceof Error)}ve.isError=He,ve.types.isNativeError=He;function Xe(Ke){return typeof Ke=="function"}ve.isFunction=Xe;function et(Ke){return Ke===null||typeof Ke=="boolean"||typeof Ke=="number"||typeof Ke=="string"||typeof Ke=="symbol"||typeof Ke=="undefined"}ve.isPrimitive=et,ve.isBuffer=y("./support/isBuffer");function st(Ke){return Object.prototype.toString.call(Ke)}function Le(Ke){return Ke<10?"0"+Ke.toString(10):Ke.toString(10)}var Ue=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function rt(){var Ke=new Date,ft=[Le(Ke.getHours()),Le(Ke.getMinutes()),Le(Ke.getSeconds())].join(":");return[Ke.getDate(),Ue[Ke.getMonth()],ft].join(" ")}ve.log=function(){console.log("%s - %s",rt(),ve.format.apply(ve,arguments))},ve.inherits=y("inherits"),ve._extend=function(Ke,ft){if(!ft||!Ee(ft))return Ke;for(var tt=Object.keys(ft),ut=tt.length;ut--;)Ke[tt[ut]]=ft[tt[ut]];return Ke};function ot(Ke,ft){return Object.prototype.hasOwnProperty.call(Ke,ft)}var it=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;ve.promisify=function(ft){if(typeof ft!="function")throw new TypeError('The "original" argument must be of type Function');if(it&&ft[it]){var tt=ft[it];if(typeof tt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tt,it,{value:tt,enumerable:!1,writable:!1,configurable:!0}),tt}function tt(){for(var ut,lt,Ze=new Promise(function(Me,Ge){ut=Me,lt=Ge}),Ne=[],ze=0;ze<arguments.length;ze++)Ne.push(arguments[ze]);Ne.push(function(Me,Ge){Me?lt(Me):ut(Ge)});try{ft.apply(this,Ne)}catch(Me){lt(Me)}return Ze}return Object.setPrototypeOf(tt,Object.getPrototypeOf(ft)),it&&Object.defineProperty(tt,it,{value:tt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(tt,z(ft))},ve.promisify.custom=it;function Ye(Ke,ft){if(!Ke){var tt=new Error("Promise was rejected with a falsy value");tt.reason=Ke,Ke=tt}return ft(Ke)}function $e(Ke){if(typeof Ke!="function")throw new TypeError('The "original" argument must be of type Function');function ft(){for(var tt=[],ut=0;ut<arguments.length;ut++)tt.push(arguments[ut]);var lt=tt.pop();if(typeof lt!="function")throw new TypeError("The last argument must be of type Function");var Ze=this,Ne=function(){return lt.apply(Ze,arguments)};Ke.apply(this,tt).then(function(ze){x.nextTick(Ne.bind(null,null,ze))},function(ze){x.nextTick(Ye.bind(null,ze,Ne))})}return Object.setPrototypeOf(ft,Object.getPrototypeOf(Ke)),Object.defineProperties(ft,z(Ke)),ft}ve.callbackify=$e}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,we,ve){(function(x){(function(){"use strict";var z=y("for-each"),oe=y("available-typed-arrays"),ie=y("call-bind"),ee=y("call-bind/callBound"),se=y("gopd"),E=ee("Object.prototype.toString"),te=y("has-tostringtag/shams")(),re=typeof globalThis=="undefined"?x:globalThis,le=oe(),ue=ee("String.prototype.slice"),ce=Object.getPrototypeOf,he=ee("Array.prototype.indexOf",!0)||function(Te,Pe){for(var ke=0;ke<Te.length;ke+=1)if(Te[ke]===Pe)return ke;return-1},me={__proto__:null};te&&se&&ce?z(le,function(Ce){var Te=new re[Ce];if(Symbol.toStringTag in Te){var Pe=ce(Te),ke=se(Pe,Symbol.toStringTag);if(!ke){var de=ce(Pe);ke=se(de,Symbol.toStringTag)}me["$"+Ce]=ie(ke.get)}}):z(le,function(Ce){var Te=new re[Ce];me["$"+Ce]=ie(Te.slice)});var fe=function(Te){var Pe=!1;return z(me,function(ke,de){if(!Pe)try{"$"+ke(Te)===de&&(Pe=ue(de,1))}catch(ge){}}),Pe},be=function(Te){var Pe=!1;return z(me,function(ke,de){if(!Pe)try{ke(Te),Pe=ue(de,1)}catch(ge){}}),Pe};we.exports=function(Te){if(!Te||typeof Te!="object")return!1;if(!te){var Pe=ue(E(Te),8,-1);return he(le,Pe)>-1?Pe:Pe!=="Object"?!1:be(Te)}return se?fe(Te):null}}).call(this)}).call(this,typeof _t!="undefined"?_t: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,ve){(function(){"use strict";ve.stripBOM=function(x){return x[0]==="\uFEFF"?x.substring(1):x}}).call(this)},{}],422:[function(y,we,ve){(function(){"use strict";var x,z,oe,ie,ee,se={}.hasOwnProperty;x=y("xmlbuilder"),z=y("./defaults").defaults,ie=function(E){return typeof E=="string"&&(E.indexOf("&")>=0||E.indexOf(">")>=0||E.indexOf("<")>=0)},ee=function(E){return"<![CDATA["+oe(E)+"]]>"},oe=function(E){return E.replace("]]>","]]]]><![CDATA[>")},ve.Builder=function(){function E(te){var re,le,ue;this.options={},le=z["0.2"];for(re in le)se.call(le,re)&&(ue=le[re],this.options[re]=ue);for(re in te)se.call(te,re)&&(ue=te[re],this.options[re]=ue)}return E.prototype.buildObject=function(te){var re,le,ue,ce,he;return re=this.options.attrkey,le=this.options.charkey,Object.keys(te).length===1&&this.options.rootName===z["0.2"].rootName?(he=Object.keys(te)[0],te=te[he]):he=this.options.rootName,ue=function(me){return function(fe,be){var Ce,Te,Pe,ke,de,ge;if(typeof be!="object")me.options.cdata&&ie(be)?fe.raw(ee(be)):fe.txt(be);else if(Array.isArray(be)){for(ke in be)if(se.call(be,ke)){Te=be[ke];for(de in Te)Pe=Te[de],fe=ue(fe.ele(de),Pe).up()}}else for(de in be)if(se.call(be,de))if(Te=be[de],de===re){if(typeof Te=="object")for(Ce in Te)ge=Te[Ce],fe=fe.att(Ce,ge)}else if(de===le)me.options.cdata&&ie(Te)?fe=fe.raw(ee(Te)):fe=fe.txt(Te);else if(Array.isArray(Te))for(ke in Te)se.call(Te,ke)&&(Pe=Te[ke],typeof Pe=="string"?me.options.cdata&&ie(Pe)?fe=fe.ele(de).raw(ee(Pe)).up():fe=fe.ele(de,Pe).up():fe=ue(fe.ele(de),Pe).up());else typeof Te=="object"?fe=ue(fe.ele(de),Te).up():typeof Te=="string"&&me.options.cdata&&ie(Te)?fe=fe.ele(de).raw(ee(Te)).up():(Te==null&&(Te=""),fe=fe.ele(de,Te.toString()).up());return fe}}(this),ce=x.create(he,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ue(ce,te).end(this.options.renderOpts)},E}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(y,we,ve){(function(){ve.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,ve){(function(){"use strict";var x,z,oe,ie,ee,se,E,te,re,le=function(he,me){return function(){return he.apply(me,arguments)}},ue=function(he,me){for(var fe in me)ce.call(me,fe)&&(he[fe]=me[fe]);function be(){this.constructor=he}return be.prototype=me.prototype,he.prototype=new be,he.__super__=me.prototype,he},ce={}.hasOwnProperty;te=y("sax"),ie=y("events"),x=y("./bom"),E=y("./processors"),re=y("timers").setImmediate,z=y("./defaults").defaults,ee=function(he){return typeof he=="object"&&he!=null&&Object.keys(he).length===0},se=function(he,me,fe){var be,Ce,Te;for(be=0,Ce=he.length;be<Ce;be++)Te=he[be],me=Te(me,fe);return me},oe=function(he,me,fe){var be;return be=Object.create(null),be.value=fe,be.writable=!0,be.enumerable=!0,be.configurable=!0,Object.defineProperty(he,me,be)},ve.Parser=function(he){ue(me,he);function me(fe){this.parseStringPromise=le(this.parseStringPromise,this),this.parseString=le(this.parseString,this),this.reset=le(this.reset,this),this.assignOrPush=le(this.assignOrPush,this),this.processAsync=le(this.processAsync,this);var be,Ce,Te;if(!(this instanceof ve.Parser))return new ve.Parser(fe);this.options={},Ce=z["0.2"];for(be in Ce)ce.call(Ce,be)&&(Te=Ce[be],this.options[be]=Te);for(be in fe)ce.call(fe,be)&&(Te=fe[be],this.options[be]=Te);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(E.normalize)),this.reset()}return me.prototype.processAsync=function(){var fe,be;try{return this.remaining.length<=this.options.chunkSize?(fe=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(fe),this.saxParser.close()):(fe=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(fe),re(this.processAsync))}catch(Ce){if(be=Ce,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(be)}},me.prototype.assignOrPush=function(fe,be,Ce){return be in fe?(fe[be]instanceof Array||oe(fe,be,[fe[be]]),fe[be].push(Ce)):this.options.explicitArray?oe(fe,be,[Ce]):oe(fe,be,Ce)},me.prototype.reset=function(){var fe,be,Ce,Te;return this.removeAllListeners(),this.saxParser=te.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Pe){return function(ke){if(Pe.saxParser.resume(),!Pe.saxParser.errThrown)return Pe.saxParser.errThrown=!0,Pe.emit("error",ke)}}(this),this.saxParser.onend=function(Pe){return function(){if(!Pe.saxParser.ended)return Pe.saxParser.ended=!0,Pe.emit("end",Pe.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Te=[],fe=this.options.attrkey,be=this.options.charkey,this.saxParser.onopentag=function(Pe){return function(ke){var de,ge,Se,De,_e;if(Se={},Se[be]="",!Pe.options.ignoreAttrs){_e=ke.attributes;for(de in _e)ce.call(_e,de)&&(!(fe in Se)&&!Pe.options.mergeAttrs&&(Se[fe]={}),ge=Pe.options.attrValueProcessors?se(Pe.options.attrValueProcessors,ke.attributes[de],de):ke.attributes[de],De=Pe.options.attrNameProcessors?se(Pe.options.attrNameProcessors,de):de,Pe.options.mergeAttrs?Pe.assignOrPush(Se,De,ge):oe(Se[fe],De,ge))}return Se["#name"]=Pe.options.tagNameProcessors?se(Pe.options.tagNameProcessors,ke.name):ke.name,Pe.options.xmlns&&(Se[Pe.options.xmlnskey]={uri:ke.uri,local:ke.local}),Te.push(Se)}}(this),this.saxParser.onclosetag=function(Pe){return function(){var ke,de,ge,Se,De,_e,Ee,Oe,He,Xe;if(_e=Te.pop(),De=_e["#name"],(!Pe.options.explicitChildren||!Pe.options.preserveChildrenOrder)&&delete _e["#name"],_e.cdata===!0&&(ke=_e.cdata,delete _e.cdata),He=Te[Te.length-1],_e[be].match(/^\s*$/)&&!ke?(de=_e[be],delete _e[be]):(Pe.options.trim&&(_e[be]=_e[be].trim()),Pe.options.normalize&&(_e[be]=_e[be].replace(/\s{2,}/g," ").trim()),_e[be]=Pe.options.valueProcessors?se(Pe.options.valueProcessors,_e[be],De):_e[be],Object.keys(_e).length===1&&be in _e&&!Pe.EXPLICIT_CHARKEY&&(_e=_e[be])),ee(_e)&&(typeof Pe.options.emptyTag=="function"?_e=Pe.options.emptyTag():_e=Pe.options.emptyTag!==""?Pe.options.emptyTag:de),Pe.options.validator!=null&&(Xe="/"+function(){var et,st,Le;for(Le=[],et=0,st=Te.length;et<st;et++)Se=Te[et],Le.push(Se["#name"]);return Le}().concat(De).join("/"),function(){var et;try{return _e=Pe.options.validator(Xe,He&&He[De],_e)}catch(st){return et=st,Pe.emit("error",et)}}()),Pe.options.explicitChildren&&!Pe.options.mergeAttrs&&typeof _e=="object"){if(!Pe.options.preserveChildrenOrder)Se={},Pe.options.attrkey in _e&&(Se[Pe.options.attrkey]=_e[Pe.options.attrkey],delete _e[Pe.options.attrkey]),!Pe.options.charsAsChildren&&Pe.options.charkey in _e&&(Se[Pe.options.charkey]=_e[Pe.options.charkey],delete _e[Pe.options.charkey]),Object.getOwnPropertyNames(_e).length>0&&(Se[Pe.options.childkey]=_e),_e=Se;else if(He){He[Pe.options.childkey]=He[Pe.options.childkey]||[],Ee={};for(ge in _e)ce.call(_e,ge)&&oe(Ee,ge,_e[ge]);He[Pe.options.childkey].push(Ee),delete _e["#name"],Object.keys(_e).length===1&&be in _e&&!Pe.EXPLICIT_CHARKEY&&(_e=_e[be])}}return Te.length>0?Pe.assignOrPush(He,De,_e):(Pe.options.explicitRoot&&(Oe=_e,_e={},oe(_e,De,Oe)),Pe.resultObject=_e,Pe.saxParser.ended=!0,Pe.emit("end",Pe.resultObject))}}(this),Ce=function(Pe){return function(ke){var de,ge;if(ge=Te[Te.length-1],ge)return ge[be]+=ke,Pe.options.explicitChildren&&Pe.options.preserveChildrenOrder&&Pe.options.charsAsChildren&&(Pe.options.includeWhiteChars||ke.replace(/\\n/g,"").trim()!=="")&&(ge[Pe.options.childkey]=ge[Pe.options.childkey]||[],de={"#name":"__text__"},de[be]=ke,Pe.options.normalize&&(de[be]=de[be].replace(/\s{2,}/g," ").trim()),ge[Pe.options.childkey].push(de)),ge}}(this),this.saxParser.ontext=Ce,this.saxParser.oncdata=function(Pe){return function(ke){var de;if(de=Ce(ke),de)return de.cdata=!0}}(this)},me.prototype.parseString=function(fe,be){var Ce;be!=null&&typeof be=="function"&&(this.on("end",function(Te){return this.reset(),be(null,Te)}),this.on("error",function(Te){return this.reset(),be(Te)}));try{return fe=fe.toString(),fe.trim()===""?(this.emit("end",null),!0):(fe=x.stripBOM(fe),this.options.async?(this.remaining=fe,re(this.processAsync),this.saxParser):this.saxParser.write(fe).close())}catch(Te){if(Ce=Te,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw Ce}else return this.emit("error",Ce),this.saxParser.errThrown=!0}},me.prototype.parseStringPromise=function(fe){return new Promise(function(be){return function(Ce,Te){return be.parseString(fe,function(Pe,ke){return Pe?Te(Pe):Ce(ke)})}}(this))},me}(ie),ve.parseString=function(he,me,fe){var be,Ce,Te;return fe!=null?(typeof fe=="function"&&(be=fe),typeof me=="object"&&(Ce=me)):(typeof me=="function"&&(be=me),Ce={}),Te=new ve.Parser(Ce),Te.parseString(he,be)},ve.parseStringPromise=function(he,me){var fe,be;return typeof me=="object"&&(fe=me),be=new ve.Parser(fe),be.parseStringPromise(he)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,we,ve){(function(){"use strict";var x;x=new RegExp(/(?!xmlns)^.*:/),ve.normalize=function(z){return z.toLowerCase()},ve.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},ve.stripPrefix=function(z){return z.replace(x,"")},ve.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},ve.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(y,we,ve){(function(){"use strict";var x,z,oe,ie,ee=function(E,te){for(var re in te)se.call(te,re)&&(E[re]=te[re]);function le(){this.constructor=E}return le.prototype=te.prototype,E.prototype=new le,E.__super__=te.prototype,E},se={}.hasOwnProperty;z=y("./defaults"),x=y("./builder"),oe=y("./parser"),ie=y("./processors"),ve.defaults=z.defaults,ve.processors=ie,ve.ValidationError=function(E){ee(te,E);function te(re){this.message=re}return te}(Error),ve.Builder=x.Builder,ve.Parser=oe.Parser,ve.parseString=oe.parseString,ve.parseStringPromise=oe.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,we,ve){(function(){we.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,we,ve){(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,ve){(function(){var x,z,oe,ie,ee,se,E,te=[].slice,re={}.hasOwnProperty;x=function(){var le,ue,ce,he,me,fe;if(fe=arguments[0],me=2<=arguments.length?te.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(le=0,ce=me.length;le<ce;le++)if(he=me[le],he!=null)for(ue in he)re.call(he,ue)&&(fe[ue]=he[ue]);return fe},ee=function(le){return!!le&&Object.prototype.toString.call(le)==="[object Function]"},se=function(le){var ue;return!!le&&((ue=typeof le)=="function"||ue==="object")},oe=function(le){return ee(Array.isArray)?Array.isArray(le):Object.prototype.toString.call(le)==="[object Array]"},ie=function(le){var ue;if(oe(le))return!le.length;for(ue in le)if(re.call(le,ue))return!1;return!0},E=function(le){var ue,ce;return se(le)&&(ce=Object.getPrototypeOf(le))&&(ue=ce.constructor)&&typeof ue=="function"&&ue instanceof ue&&Function.prototype.toString.call(ue)===Function.prototype.toString.call(Object)},z=function(le){return ee(le.valueOf)?le.valueOf():le},we.exports.assign=x,we.exports.isFunction=ee,we.exports.isObject=se,we.exports.isArray=oe,we.exports.isEmpty=ie,we.exports.isPlainObject=E,we.exports.getValue=z}).call(this)},{}],430:[function(y,we,ve){(function(){we.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,we,ve){(function(){var x,z,oe;x=y("./NodeType"),oe=y("./XMLNode"),we.exports=z=function(){function ie(ee,se,E){if(this.parent=ee,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(E),this.type=x.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(ie.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ie.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(ie.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(ie.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(ie.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(ie.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(ie.prototype,"specified",{get:function(){return!0}}),ie.prototype.clone=function(){return Object.create(this)},ie.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},ie.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},ie.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},ie}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(y,we,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;x=y("./NodeType"),oe=y("./XMLCharacterData"),we.exports=z=function(se){ie(E,se);function E(te,re){if(E.__super__.constructor.call(this,te),re==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=x.CData,this.value=this.stringify.cdata(re)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(te){return this.options.writer.cdata(this,this.options.writer.filterOptions(te))},E}(oe)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,we,ve){(function(){var x,z,oe=function(ee,se){for(var E in se)ie.call(se,E)&&(ee[E]=se[E]);function te(){this.constructor=ee}return te.prototype=se.prototype,ee.prototype=new te,ee.__super__=se.prototype,ee},ie={}.hasOwnProperty;z=y("./XMLNode"),we.exports=x=function(ee){oe(se,ee);function se(E){se.__super__.constructor.call(this,E),this.value=""}return Object.defineProperty(se.prototype,"data",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Object.defineProperty(se.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(se.prototype,"textContent",{get:function(){return this.value},set:function(E){return this.value=E||""}}),se.prototype.clone=function(){return Object.create(this)},se.prototype.substringData=function(E,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.appendData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.insertData=function(E,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.deleteData=function(E,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.replaceData=function(E,te,re){throw new Error("This DOM method is not implemented."+this.debugInfo())},se.prototype.isEqualNode=function(E){return!(!se.__super__.isEqualNode.apply(this,arguments).isEqualNode(E)||E.data!==this.data)},se}(z)}).call(this)},{"./XMLNode":450}],434:[function(y,we,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),we.exports=oe=function(se){ie(E,se);function E(te,re){if(E.__super__.constructor.call(this,te),re==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=x.Comment,this.value=this.stringify.comment(re)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(te){return this.options.writer.comment(this,this.options.writer.filterOptions(te))},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(y,we,ve){(function(){var x,z,oe;z=y("./XMLDOMErrorHandler"),oe=y("./XMLDOMStringList"),we.exports=x=function(){function ie(){var ee;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new z,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=ee=Object.create(this.defaultParams)}return Object.defineProperty(ie.prototype,"parameterNames",{get:function(){return new oe(Object.keys(this.defaultParams))}}),ie.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},ie.prototype.canSetParameter=function(ee,se){return!0},ie.prototype.setParameter=function(ee,se){return se!=null?this.params[ee]=se:delete this.params[ee]},ie}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,we,ve){(function(){var x;we.exports=x=function(){function z(){}return z.prototype.handleError=function(oe){throw new Error(oe)},z}()}).call(this)},{}],437:[function(y,we,ve){(function(){var x;we.exports=x=function(){function z(){}return z.prototype.hasFeature=function(oe,ie){return!0},z.prototype.createDocumentType=function(oe,ie,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(oe,ie,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(oe){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(oe,ie){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(y,we,ve){(function(){var x;we.exports=x=function(){function z(oe){this.arr=oe||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(oe){return this.arr[oe]||null},z.prototype.contains=function(oe){return this.arr.indexOf(oe)!==-1},z}()}).call(this)},{}],439:[function(y,we,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;oe=y("./XMLNode"),x=y("./NodeType"),we.exports=z=function(se){ie(E,se);function E(te,re,le,ue,ce,he){if(E.__super__.constructor.call(this,te),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(le==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(re));if(!ue)throw new Error("Missing DTD attribute type. "+this.debugInfo(re));if(!ce)throw new Error("Missing DTD attribute default. "+this.debugInfo(re));if(ce.indexOf("#")!==0&&(ce="#"+ce),!ce.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(re));if(he&&!ce.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(re));this.elementName=this.stringify.name(re),this.type=x.AttributeDeclaration,this.attributeName=this.stringify.name(le),this.attributeType=this.stringify.dtdAttType(ue),he&&(this.defaultValue=this.stringify.dtdAttDefault(he)),this.defaultValueType=ce}return E.prototype.toString=function(te){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(te))},E}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,we,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;oe=y("./XMLNode"),x=y("./NodeType"),we.exports=z=function(se){ie(E,se);function E(te,re,le){if(E.__super__.constructor.call(this,te),re==null)throw new Error("Missing DTD element name. "+this.debugInfo());le||(le="(#PCDATA)"),Array.isArray(le)&&(le="("+le.join(",")+")"),this.name=this.stringify.name(re),this.type=x.ElementDeclaration,this.value=this.stringify.dtdElementValue(le)}return E.prototype.toString=function(te){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(te))},E}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,we,ve){(function(){var x,z,oe,ie,ee=function(E,te){for(var re in te)se.call(te,re)&&(E[re]=te[re]);function le(){this.constructor=E}return le.prototype=te.prototype,E.prototype=new le,E.__super__=te.prototype,E},se={}.hasOwnProperty;ie=y("./Utility").isObject,oe=y("./XMLNode"),x=y("./NodeType"),we.exports=z=function(E){ee(te,E);function te(re,le,ue,ce){if(te.__super__.constructor.call(this,re),ue==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ue));if(ce==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ue));if(this.pe=!!le,this.name=this.stringify.name(ue),this.type=x.EntityDeclaration,!ie(ce))this.value=this.stringify.dtdEntityValue(ce),this.internal=!0;else{if(!ce.pubID&&!ce.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ue));if(ce.pubID&&!ce.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ue));if(this.internal=!1,ce.pubID!=null&&(this.pubID=this.stringify.dtdPubID(ce.pubID)),ce.sysID!=null&&(this.sysID=this.stringify.dtdSysID(ce.sysID)),ce.nData!=null&&(this.nData=this.stringify.dtdNData(ce.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ue))}}return Object.defineProperty(te.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(te.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(te.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(te.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(te.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(te.prototype,"xmlVersion",{get:function(){return null}}),te.prototype.toString=function(re){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(re))},te}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,we,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;oe=y("./XMLNode"),x=y("./NodeType"),we.exports=z=function(se){ie(E,se);function E(te,re,le){if(E.__super__.constructor.call(this,te),re==null)throw new Error("Missing DTD notation name. "+this.debugInfo(re));if(!le.pubID&&!le.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(re));this.name=this.stringify.name(re),this.type=x.NotationDeclaration,le.pubID!=null&&(this.pubID=this.stringify.dtdPubID(le.pubID)),le.sysID!=null&&(this.sysID=this.stringify.dtdSysID(le.sysID))}return Object.defineProperty(E.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(E.prototype,"systemId",{get:function(){return this.sysID}}),E.prototype.toString=function(te){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(te))},E}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,we,ve){(function(){var x,z,oe,ie,ee=function(E,te){for(var re in te)se.call(te,re)&&(E[re]=te[re]);function le(){this.constructor=E}return le.prototype=te.prototype,E.prototype=new le,E.__super__=te.prototype,E},se={}.hasOwnProperty;ie=y("./Utility").isObject,oe=y("./XMLNode"),x=y("./NodeType"),we.exports=z=function(E){ee(te,E);function te(re,le,ue,ce){var he;te.__super__.constructor.call(this,re),ie(le)&&(he=le,le=he.version,ue=he.encoding,ce=he.standalone),le||(le="1.0"),this.type=x.Declaration,this.version=this.stringify.xmlVersion(le),ue!=null&&(this.encoding=this.stringify.xmlEncoding(ue)),ce!=null&&(this.standalone=this.stringify.xmlStandalone(ce))}return te.prototype.toString=function(re){return this.options.writer.declaration(this,this.options.writer.filterOptions(re))},te}(oe)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,we,ve){(function(){var x,z,oe,ie,ee,se,E,te,re,le=function(ce,he){for(var me in he)ue.call(he,me)&&(ce[me]=he[me]);function fe(){this.constructor=ce}return fe.prototype=he.prototype,ce.prototype=new fe,ce.__super__=he.prototype,ce},ue={}.hasOwnProperty;re=y("./Utility").isObject,te=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLDTDAttList"),ie=y("./XMLDTDEntity"),oe=y("./XMLDTDElement"),ee=y("./XMLDTDNotation"),E=y("./XMLNamedNodeMap"),we.exports=se=function(ce){le(he,ce);function he(me,fe,be){var Ce,Te,Pe,ke,de,ge;if(he.__super__.constructor.call(this,me),this.type=x.DocType,me.children){for(ke=me.children,Te=0,Pe=ke.length;Te<Pe;Te++)if(Ce=ke[Te],Ce.type===x.Element){this.name=Ce.name;break}}this.documentObject=me,re(fe)&&(de=fe,fe=de.pubID,be=de.sysID),be==null&&(ge=[fe,be],be=ge[0],fe=ge[1]),fe!=null&&(this.pubID=this.stringify.dtdPubID(fe)),be!=null&&(this.sysID=this.stringify.dtdSysID(be))}return Object.defineProperty(he.prototype,"entities",{get:function(){var me,fe,be,Ce,Te;for(Ce={},Te=this.children,fe=0,be=Te.length;fe<be;fe++)me=Te[fe],me.type===x.EntityDeclaration&&!me.pe&&(Ce[me.name]=me);return new E(Ce)}}),Object.defineProperty(he.prototype,"notations",{get:function(){var me,fe,be,Ce,Te;for(Ce={},Te=this.children,fe=0,be=Te.length;fe<be;fe++)me=Te[fe],me.type===x.NotationDeclaration&&(Ce[me.name]=me);return new E(Ce)}}),Object.defineProperty(he.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(he.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(he.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),he.prototype.element=function(me,fe){var be;return be=new oe(this,me,fe),this.children.push(be),this},he.prototype.attList=function(me,fe,be,Ce,Te){var Pe;return Pe=new z(this,me,fe,be,Ce,Te),this.children.push(Pe),this},he.prototype.entity=function(me,fe){var be;return be=new ie(this,!1,me,fe),this.children.push(be),this},he.prototype.pEntity=function(me,fe){var be;return be=new ie(this,!0,me,fe),this.children.push(be),this},he.prototype.notation=function(me,fe){var be;return be=new ee(this,me,fe),this.children.push(be),this},he.prototype.toString=function(me){return this.options.writer.docType(this,this.options.writer.filterOptions(me))},he.prototype.ele=function(me,fe){return this.element(me,fe)},he.prototype.att=function(me,fe,be,Ce,Te){return this.attList(me,fe,be,Ce,Te)},he.prototype.ent=function(me,fe){return this.entity(me,fe)},he.prototype.pent=function(me,fe){return this.pEntity(me,fe)},he.prototype.not=function(me,fe){return this.notation(me,fe)},he.prototype.up=function(){return this.root()||this.documentObject},he.prototype.isEqualNode=function(me){return!(!he.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.name!==this.name||me.publicId!==this.publicId||me.systemId!==this.systemId)},he}(te)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(y,we,ve){(function(){var x,z,oe,ie,ee,se,E,te,re=function(ue,ce){for(var he in ce)le.call(ce,he)&&(ue[he]=ce[he]);function me(){this.constructor=ue}return me.prototype=ce.prototype,ue.prototype=new me,ue.__super__=ce.prototype,ue},le={}.hasOwnProperty;te=y("./Utility").isPlainObject,oe=y("./XMLDOMImplementation"),z=y("./XMLDOMConfiguration"),ee=y("./XMLNode"),x=y("./NodeType"),E=y("./XMLStringifier"),se=y("./XMLStringWriter"),we.exports=ie=function(ue){re(ce,ue);function ce(he){ce.__super__.constructor.call(this,null),this.name="#document",this.type=x.Document,this.documentURI=null,this.domConfig=new z,he||(he={}),he.writer||(he.writer=new se),this.options=he,this.stringify=new E(he)}return Object.defineProperty(ce.prototype,"implementation",{value:new oe}),Object.defineProperty(ce.prototype,"doctype",{get:function(){var he,me,fe,be;for(be=this.children,me=0,fe=be.length;me<fe;me++)if(he=be[me],he.type===x.DocType)return he;return null}}),Object.defineProperty(ce.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(ce.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ce.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(ce.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].encoding:null}}),Object.defineProperty(ce.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(ce.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(ce.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(ce.prototype,"origin",{get:function(){return null}}),Object.defineProperty(ce.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(ce.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(ce.prototype,"contentType",{get:function(){return null}}),ce.prototype.end=function(he){var me;return me={},he?te(he)&&(me=he,he=this.options.writer):he=this.options.writer,he.document(this,he.filterOptions(me))},ce.prototype.toString=function(he){return this.options.writer.document(this,this.options.writer.filterOptions(he))},ce.prototype.createElement=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createTextNode=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createComment=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createCDATASection=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createProcessingInstruction=function(he,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createAttribute=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createEntityReference=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByTagName=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.importNode=function(he,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createElementNS=function(he,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createAttributeNS=function(he,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByTagNameNS=function(he,me){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementById=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.adoptNode=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.renameNode=function(he,me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getElementsByClassName=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createEvent=function(he){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createNodeIterator=function(he,me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.createTreeWalker=function(he,me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(y,we,ve){(function(){var x,z,oe,ie,ee,se,E,te,re,le,ue,ce,he,me,fe,be,Ce,Te,Pe,ke,de,ge,Se,De,_e={}.hasOwnProperty;De=y("./Utility"),ge=De.isObject,de=De.isFunction,Se=De.isPlainObject,ke=De.getValue,x=y("./NodeType"),ce=y("./XMLDocument"),me=y("./XMLElement"),ie=y("./XMLCData"),ee=y("./XMLComment"),be=y("./XMLRaw"),Pe=y("./XMLText"),fe=y("./XMLProcessingInstruction"),le=y("./XMLDeclaration"),ue=y("./XMLDocType"),se=y("./XMLDTDAttList"),te=y("./XMLDTDEntity"),E=y("./XMLDTDElement"),re=y("./XMLDTDNotation"),oe=y("./XMLAttribute"),Te=y("./XMLStringifier"),Ce=y("./XMLStringWriter"),z=y("./WriterState"),we.exports=he=function(){function Ee(Oe,He,Xe){var et;this.name="?xml",this.type=x.Document,Oe||(Oe={}),et={},Oe.writer?Se(Oe.writer)&&(et=Oe.writer,Oe.writer=new Ce):Oe.writer=new Ce,this.options=Oe,this.writer=Oe.writer,this.writerOptions=this.writer.filterOptions(et),this.stringify=new Te(Oe),this.onDataCallback=He||function(){},this.onEndCallback=Xe||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ee.prototype.createChildNode=function(Oe){var He,Xe,et,st,Le,Ue,rt,ot;switch(Oe.type){case x.CData:this.cdata(Oe.value);break;case x.Comment:this.comment(Oe.value);break;case x.Element:et={},rt=Oe.attribs;for(Xe in rt)_e.call(rt,Xe)&&(He=rt[Xe],et[Xe]=He.value);this.node(Oe.name,et);break;case x.Dummy:this.dummy();break;case x.Raw:this.raw(Oe.value);break;case x.Text:this.text(Oe.value);break;case x.ProcessingInstruction:this.instruction(Oe.target,Oe.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+Oe.constructor.name)}for(ot=Oe.children,Le=0,Ue=ot.length;Le<Ue;Le++)st=ot[Le],this.createChildNode(st),st.type===x.Element&&this.up();return this},Ee.prototype.dummy=function(){return this},Ee.prototype.node=function(Oe,He,Xe){var et;if(Oe==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(Oe));return this.openCurrent(),Oe=ke(Oe),He==null&&(He={}),He=ke(He),ge(He)||(et=[He,Xe],Xe=et[0],He=et[1]),this.currentNode=new me(this,Oe,He),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Xe!=null&&this.text(Xe),this},Ee.prototype.element=function(Oe,He,Xe){var et,st,Le,Ue,rt,ot;if(this.currentNode&&this.currentNode.type===x.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(Oe)||ge(Oe)||de(Oe))for(Ue=this.options.noValidation,this.options.noValidation=!0,ot=new ce(this.options).element("TEMP_ROOT"),ot.element(Oe),this.options.noValidation=Ue,rt=ot.children,st=0,Le=rt.length;st<Le;st++)et=rt[st],this.createChildNode(et),et.type===x.Element&&this.up();else this.node(Oe,He,Xe);return this},Ee.prototype.attribute=function(Oe,He){var Xe,et;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(Oe));if(Oe!=null&&(Oe=ke(Oe)),ge(Oe))for(Xe in Oe)_e.call(Oe,Xe)&&(et=Oe[Xe],this.attribute(Xe,et));else de(He)&&(He=He.apply()),this.options.keepNullAttributes&&He==null?this.currentNode.attribs[Oe]=new oe(this,Oe,""):He!=null&&(this.currentNode.attribs[Oe]=new oe(this,Oe,He));return this},Ee.prototype.text=function(Oe){var He;return this.openCurrent(),He=new Pe(this,Oe),this.onData(this.writer.text(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.cdata=function(Oe){var He;return this.openCurrent(),He=new ie(this,Oe),this.onData(this.writer.cdata(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.comment=function(Oe){var He;return this.openCurrent(),He=new ee(this,Oe),this.onData(this.writer.comment(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.raw=function(Oe){var He;return this.openCurrent(),He=new be(this,Oe),this.onData(this.writer.raw(He,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.instruction=function(Oe,He){var Xe,et,st,Le,Ue;if(this.openCurrent(),Oe!=null&&(Oe=ke(Oe)),He!=null&&(He=ke(He)),Array.isArray(Oe))for(Xe=0,Le=Oe.length;Xe<Le;Xe++)et=Oe[Xe],this.instruction(et);else if(ge(Oe))for(et in Oe)_e.call(Oe,et)&&(st=Oe[et],this.instruction(et,st));else de(He)&&(He=He.apply()),Ue=new fe(this,Oe,He),this.onData(this.writer.processingInstruction(Ue,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},Ee.prototype.declaration=function(Oe,He,Xe){var et;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return et=new le(this,Oe,He,Xe),this.onData(this.writer.declaration(et,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.doctype=function(Oe,He,Xe){if(this.openCurrent(),Oe==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ue(this,He,Xe),this.currentNode.rootNodeName=Oe,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ee.prototype.dtdElement=function(Oe,He){var Xe;return this.openCurrent(),Xe=new E(this,Oe,He),this.onData(this.writer.dtdElement(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.attList=function(Oe,He,Xe,et,st){var Le;return this.openCurrent(),Le=new se(this,Oe,He,Xe,et,st),this.onData(this.writer.dtdAttList(Le,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.entity=function(Oe,He){var Xe;return this.openCurrent(),Xe=new te(this,!1,Oe,He),this.onData(this.writer.dtdEntity(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.pEntity=function(Oe,He){var Xe;return this.openCurrent(),Xe=new te(this,!0,Oe,He),this.onData(this.writer.dtdEntity(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.prototype.notation=function(Oe,He){var Xe;return this.openCurrent(),Xe=new re(this,Oe,He),this.onData(this.writer.dtdNotation(Xe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},Ee.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},Ee.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ee.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ee.prototype.openNode=function(Oe){var He,Xe,et,st;if(!Oe.isOpen){if(!this.root&&this.currentLevel===0&&Oe.type===x.Element&&(this.root=Oe),Xe="",Oe.type===x.Element){this.writerOptions.state=z.OpenTag,Xe=this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"<"+Oe.name,st=Oe.attribs;for(et in st)_e.call(st,et)&&(He=st[et],Xe+=this.writer.attribute(He,this.writerOptions,this.currentLevel));Xe+=(Oe.children?">":"/>")+this.writer.endline(Oe,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,Xe=this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+Oe.rootNodeName,Oe.pubID&&Oe.sysID?Xe+=' PUBLIC "'+Oe.pubID+'" "'+Oe.sysID+'"':Oe.sysID&&(Xe+=' SYSTEM "'+Oe.sysID+'"'),Oe.children?(Xe+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,Xe+=">"),Xe+=this.writer.endline(Oe,this.writerOptions,this.currentLevel);return this.onData(Xe,this.currentLevel),Oe.isOpen=!0}},Ee.prototype.closeNode=function(Oe){var He;if(!Oe.isClosed)return He="",this.writerOptions.state=z.CloseTag,Oe.type===x.Element?He=this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"</"+Oe.name+">"+this.writer.endline(Oe,this.writerOptions,this.currentLevel):He=this.writer.indent(Oe,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(Oe,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(He,this.currentLevel),Oe.isClosed=!0},Ee.prototype.onData=function(Oe,He){return this.documentStarted=!0,this.onDataCallback(Oe,He+1)},Ee.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ee.prototype.debugInfo=function(Oe){return Oe==null?"":"node: <"+Oe+">"},Ee.prototype.ele=function(){return this.element.apply(this,arguments)},Ee.prototype.nod=function(Oe,He,Xe){return this.node(Oe,He,Xe)},Ee.prototype.txt=function(Oe){return this.text(Oe)},Ee.prototype.dat=function(Oe){return this.cdata(Oe)},Ee.prototype.com=function(Oe){return this.comment(Oe)},Ee.prototype.ins=function(Oe,He){return this.instruction(Oe,He)},Ee.prototype.dec=function(Oe,He,Xe){return this.declaration(Oe,He,Xe)},Ee.prototype.dtd=function(Oe,He,Xe){return this.doctype(Oe,He,Xe)},Ee.prototype.e=function(Oe,He,Xe){return this.element(Oe,He,Xe)},Ee.prototype.n=function(Oe,He,Xe){return this.node(Oe,He,Xe)},Ee.prototype.t=function(Oe){return this.text(Oe)},Ee.prototype.d=function(Oe){return this.cdata(Oe)},Ee.prototype.c=function(Oe){return this.comment(Oe)},Ee.prototype.r=function(Oe){return this.raw(Oe)},Ee.prototype.i=function(Oe,He){return this.instruction(Oe,He)},Ee.prototype.att=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ee.prototype.a=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ee.prototype.ent=function(Oe,He){return this.entity(Oe,He)},Ee.prototype.pent=function(Oe,He){return this.pEntity(Oe,He)},Ee.prototype.not=function(Oe,He){return this.notation(Oe,He)},Ee}()}).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,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;oe=y("./XMLNode"),x=y("./NodeType"),we.exports=z=function(se){ie(E,se);function E(te){E.__super__.constructor.call(this,te),this.type=x.Dummy}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(te){return""},E}(oe)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,we,ve){(function(){var x,z,oe,ie,ee,se,E,te,re,le=function(ce,he){for(var me in he)ue.call(he,me)&&(ce[me]=he[me]);function fe(){this.constructor=ce}return fe.prototype=he.prototype,ce.prototype=new fe,ce.__super__=he.prototype,ce},ue={}.hasOwnProperty;re=y("./Utility"),te=re.isObject,E=re.isFunction,se=re.getValue,ee=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLAttribute"),ie=y("./XMLNamedNodeMap"),we.exports=oe=function(ce){le(he,ce);function he(me,fe,be){var Ce,Te,Pe,ke;if(he.__super__.constructor.call(this,me),fe==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(fe),this.type=x.Element,this.attribs={},this.schemaTypeInfo=null,be!=null&&this.attribute(be),me.type===x.Document&&(this.isRoot=!0,this.documentObject=me,me.rootObject=this,me.children)){for(ke=me.children,Te=0,Pe=ke.length;Te<Pe;Te++)if(Ce=ke[Te],Ce.type===x.DocType){Ce.name=this.name;break}}}return Object.defineProperty(he.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(he.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(he.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(he.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(he.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(he.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(he.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(he.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new ie(this.attribs)),this.attributeMap}}),he.prototype.clone=function(){var me,fe,be,Ce;be=Object.create(this),be.isRoot&&(be.documentObject=null),be.attribs={},Ce=this.attribs;for(fe in Ce)ue.call(Ce,fe)&&(me=Ce[fe],be.attribs[fe]=me.clone());return be.children=[],this.children.forEach(function(Te){var Pe;return Pe=Te.clone(),Pe.parent=be,be.children.push(Pe)}),be},he.prototype.attribute=function(me,fe){var be,Ce;if(me!=null&&(me=se(me)),te(me))for(be in me)ue.call(me,be)&&(Ce=me[be],this.attribute(be,Ce));else E(fe)&&(fe=fe.apply()),this.options.keepNullAttributes&&fe==null?this.attribs[me]=new z(this,me,""):fe!=null&&(this.attribs[me]=new z(this,me,fe));return this},he.prototype.removeAttribute=function(me){var fe,be,Ce;if(me==null)throw new Error("Missing attribute name. "+this.debugInfo());if(me=se(me),Array.isArray(me))for(be=0,Ce=me.length;be<Ce;be++)fe=me[be],delete this.attribs[fe];else delete this.attribs[me];return this},he.prototype.toString=function(me){return this.options.writer.element(this,this.options.writer.filterOptions(me))},he.prototype.att=function(me,fe){return this.attribute(me,fe)},he.prototype.a=function(me,fe){return this.attribute(me,fe)},he.prototype.getAttribute=function(me){return this.attribs.hasOwnProperty(me)?this.attribs[me].value:null},he.prototype.setAttribute=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNode=function(me){return this.attribs.hasOwnProperty(me)?this.attribs[me]:null},he.prototype.setAttributeNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.removeAttributeNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setAttributeNS=function(me,fe,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.removeAttributeNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getAttributeNodeNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setAttributeNodeNS=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.hasAttribute=function(me){return this.attribs.hasOwnProperty(me)},he.prototype.hasAttributeNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setIdAttribute=function(me,fe){return this.attribs.hasOwnProperty(me)?this.attribs[me].isId:fe},he.prototype.setIdAttributeNS=function(me,fe,be){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.setIdAttributeNode=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByTagNameNS=function(me,fe){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.getElementsByClassName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},he.prototype.isEqualNode=function(me){var fe,be,Ce;if(!he.__super__.isEqualNode.apply(this,arguments).isEqualNode(me)||me.namespaceURI!==this.namespaceURI||me.prefix!==this.prefix||me.localName!==this.localName||me.attribs.length!==this.attribs.length)return!1;for(fe=be=0,Ce=this.attribs.length-1;0<=Ce?be<=Ce:be>=Ce;fe=0<=Ce?++be:--be)if(!this.attribs[fe].isEqualNode(me.attribs[fe]))return!1;return!0},he}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,we,ve){(function(){var x;we.exports=x=function(){function z(oe){this.nodes=oe}return Object.defineProperty(z.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.getNamedItem=function(oe){return this.nodes[oe]},z.prototype.setNamedItem=function(oe){var ie;return ie=this.nodes[oe.nodeName],this.nodes[oe.nodeName]=oe,ie||null},z.prototype.removeNamedItem=function(oe){var ie;return ie=this.nodes[oe],delete this.nodes[oe],ie||null},z.prototype.item=function(oe){return this.nodes[Object.keys(this.nodes)[oe]]||null},z.prototype.getNamedItemNS=function(oe,ie){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(oe){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(oe,ie){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(y,we,ve){(function(){var x,z,oe,ie,ee,se,E,te,re,le,ue,ce,he,me,fe,be,Ce,Te,Pe,ke={}.hasOwnProperty;Pe=y("./Utility"),Te=Pe.isObject,Ce=Pe.isFunction,be=Pe.isEmpty,fe=Pe.getValue,te=null,oe=null,ie=null,ee=null,se=null,he=null,me=null,ce=null,E=null,z=null,ue=null,re=null,x=null,we.exports=le=function(){function de(ge){this.parent=ge,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,te||(te=y("./XMLElement"),oe=y("./XMLCData"),ie=y("./XMLComment"),ee=y("./XMLDeclaration"),se=y("./XMLDocType"),he=y("./XMLRaw"),me=y("./XMLText"),ce=y("./XMLProcessingInstruction"),E=y("./XMLDummy"),z=y("./NodeType"),ue=y("./XMLNodeList"),re=y("./XMLNamedNodeMap"),x=y("./DocumentPosition"))}return Object.defineProperty(de.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(de.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(de.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(de.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(de.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ue(this.children)),this.childNodeList}}),Object.defineProperty(de.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(de.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(de.prototype,"previousSibling",{get:function(){var ge;return ge=this.parent.children.indexOf(this),this.parent.children[ge-1]||null}}),Object.defineProperty(de.prototype,"nextSibling",{get:function(){var ge;return ge=this.parent.children.indexOf(this),this.parent.children[ge+1]||null}}),Object.defineProperty(de.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(de.prototype,"textContent",{get:function(){var ge,Se,De,_e,Ee;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(Ee="",_e=this.children,Se=0,De=_e.length;Se<De;Se++)ge=_e[Se],ge.textContent&&(Ee+=ge.textContent);return Ee}else return null},set:function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),de.prototype.setParent=function(ge){var Se,De,_e,Ee,Oe;for(this.parent=ge,ge&&(this.options=ge.options,this.stringify=ge.stringify),Ee=this.children,Oe=[],De=0,_e=Ee.length;De<_e;De++)Se=Ee[De],Oe.push(Se.setParent(this));return Oe},de.prototype.element=function(ge,Se,De){var _e,Ee,Oe,He,Xe,et,st,Le,Ue,rt,ot;if(et=null,Se===null&&De==null&&(Ue=[{},null],Se=Ue[0],De=Ue[1]),Se==null&&(Se={}),Se=fe(Se),Te(Se)||(rt=[Se,De],De=rt[0],Se=rt[1]),ge!=null&&(ge=fe(ge)),Array.isArray(ge))for(Oe=0,st=ge.length;Oe<st;Oe++)Ee=ge[Oe],et=this.element(Ee);else if(Ce(ge))et=this.element(ge.apply());else if(Te(ge)){for(Xe in ge)if(ke.call(ge,Xe))if(ot=ge[Xe],Ce(ot)&&(ot=ot.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Xe.indexOf(this.stringify.convertAttKey)===0)et=this.attribute(Xe.substr(this.stringify.convertAttKey.length),ot);else if(!this.options.separateArrayItems&&Array.isArray(ot)&&be(ot))et=this.dummy();else if(Te(ot)&&be(ot))et=this.element(Xe);else if(!this.options.keepNullNodes&&ot==null)et=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(ot))for(He=0,Le=ot.length;He<Le;He++)Ee=ot[He],_e={},_e[Xe]=Ee,et=this.element(_e);else Te(ot)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Xe.indexOf(this.stringify.convertTextKey)===0?et=this.element(ot):(et=this.element(Xe),et.element(ot)):et=this.element(Xe,ot)}else!this.options.keepNullNodes&&De===null?et=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ge.indexOf(this.stringify.convertTextKey)===0?et=this.text(De):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ge.indexOf(this.stringify.convertCDataKey)===0?et=this.cdata(De):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ge.indexOf(this.stringify.convertCommentKey)===0?et=this.comment(De):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ge.indexOf(this.stringify.convertRawKey)===0?et=this.raw(De):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ge.indexOf(this.stringify.convertPIKey)===0?et=this.instruction(ge.substr(this.stringify.convertPIKey.length),De):et=this.node(ge,Se,De);if(et==null)throw new Error("Could not create any elements with: "+ge+". "+this.debugInfo());return et},de.prototype.insertBefore=function(ge,Se,De){var _e,Ee,Oe,He,Xe;if(ge!=null&&ge.type)return Oe=ge,He=Se,Oe.setParent(this),He?(Ee=children.indexOf(He),Xe=children.splice(Ee),children.push(Oe),Array.prototype.push.apply(children,Xe)):children.push(Oe),Oe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(ge));return Ee=this.parent.children.indexOf(this),Xe=this.parent.children.splice(Ee),_e=this.parent.element(ge,Se,De),Array.prototype.push.apply(this.parent.children,Xe),_e},de.prototype.insertAfter=function(ge,Se,De){var _e,Ee,Oe;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(ge));return Ee=this.parent.children.indexOf(this),Oe=this.parent.children.splice(Ee+1),_e=this.parent.element(ge,Se,De),Array.prototype.push.apply(this.parent.children,Oe),_e},de.prototype.remove=function(){var ge,Se;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return ge=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[ge,ge-ge+1].concat(Se=[])),this.parent},de.prototype.node=function(ge,Se,De){var _e,Ee;return ge!=null&&(ge=fe(ge)),Se||(Se={}),Se=fe(Se),Te(Se)||(Ee=[Se,De],De=Ee[0],Se=Ee[1]),_e=new te(this,ge,Se),De!=null&&_e.text(De),this.children.push(_e),_e},de.prototype.text=function(ge){var Se;return Te(ge)&&this.element(ge),Se=new me(this,ge),this.children.push(Se),this},de.prototype.cdata=function(ge){var Se;return Se=new oe(this,ge),this.children.push(Se),this},de.prototype.comment=function(ge){var Se;return Se=new ie(this,ge),this.children.push(Se),this},de.prototype.commentBefore=function(ge){var Se,De,_e;return De=this.parent.children.indexOf(this),_e=this.parent.children.splice(De),Se=this.parent.comment(ge),Array.prototype.push.apply(this.parent.children,_e),this},de.prototype.commentAfter=function(ge){var Se,De,_e;return De=this.parent.children.indexOf(this),_e=this.parent.children.splice(De+1),Se=this.parent.comment(ge),Array.prototype.push.apply(this.parent.children,_e),this},de.prototype.raw=function(ge){var Se;return Se=new he(this,ge),this.children.push(Se),this},de.prototype.dummy=function(){var ge;return ge=new E(this),ge},de.prototype.instruction=function(ge,Se){var De,_e,Ee,Oe,He;if(ge!=null&&(ge=fe(ge)),Se!=null&&(Se=fe(Se)),Array.isArray(ge))for(Oe=0,He=ge.length;Oe<He;Oe++)De=ge[Oe],this.instruction(De);else if(Te(ge))for(De in ge)ke.call(ge,De)&&(_e=ge[De],this.instruction(De,_e));else Ce(Se)&&(Se=Se.apply()),Ee=new ce(this,ge,Se),this.children.push(Ee);return this},de.prototype.instructionBefore=function(ge,Se){var De,_e,Ee;return _e=this.parent.children.indexOf(this),Ee=this.parent.children.splice(_e),De=this.parent.instruction(ge,Se),Array.prototype.push.apply(this.parent.children,Ee),this},de.prototype.instructionAfter=function(ge,Se){var De,_e,Ee;return _e=this.parent.children.indexOf(this),Ee=this.parent.children.splice(_e+1),De=this.parent.instruction(ge,Se),Array.prototype.push.apply(this.parent.children,Ee),this},de.prototype.declaration=function(ge,Se,De){var _e,Ee;return _e=this.document(),Ee=new ee(_e,ge,Se,De),_e.children.length===0?_e.children.unshift(Ee):_e.children[0].type===z.Declaration?_e.children[0]=Ee:_e.children.unshift(Ee),_e.root()||_e},de.prototype.dtd=function(ge,Se){var De,_e,Ee,Oe,He,Xe,et,st,Le,Ue;for(_e=this.document(),Ee=new se(_e,ge,Se),Le=_e.children,Oe=He=0,et=Le.length;He<et;Oe=++He)if(De=Le[Oe],De.type===z.DocType)return _e.children[Oe]=Ee,Ee;for(Ue=_e.children,Oe=Xe=0,st=Ue.length;Xe<st;Oe=++Xe)if(De=Ue[Oe],De.isRoot)return _e.children.splice(Oe,0,Ee),Ee;return _e.children.push(Ee),Ee},de.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},de.prototype.root=function(){var ge;for(ge=this;ge;){if(ge.type===z.Document)return ge.rootObject;if(ge.isRoot)return ge;ge=ge.parent}},de.prototype.document=function(){var ge;for(ge=this;ge;){if(ge.type===z.Document)return ge;ge=ge.parent}},de.prototype.end=function(ge){return this.document().end(ge)},de.prototype.prev=function(){var ge;if(ge=this.parent.children.indexOf(this),ge<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[ge-1]},de.prototype.next=function(){var ge;if(ge=this.parent.children.indexOf(this),ge===-1||ge===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[ge+1]},de.prototype.importDocument=function(ge){var Se;return Se=ge.root().clone(),Se.parent=this,Se.isRoot=!1,this.children.push(Se),this},de.prototype.debugInfo=function(ge){var Se,De;return ge=ge||this.name,ge==null&&!((Se=this.parent)!=null&&Se.name)?"":ge==null?"parent: <"+this.parent.name+">":(De=this.parent)!=null&&De.name?"node: <"+ge+">, parent: <"+this.parent.name+">":"node: <"+ge+">"},de.prototype.ele=function(ge,Se,De){return this.element(ge,Se,De)},de.prototype.nod=function(ge,Se,De){return this.node(ge,Se,De)},de.prototype.txt=function(ge){return this.text(ge)},de.prototype.dat=function(ge){return this.cdata(ge)},de.prototype.com=function(ge){return this.comment(ge)},de.prototype.ins=function(ge,Se){return this.instruction(ge,Se)},de.prototype.doc=function(){return this.document()},de.prototype.dec=function(ge,Se,De){return this.declaration(ge,Se,De)},de.prototype.e=function(ge,Se,De){return this.element(ge,Se,De)},de.prototype.n=function(ge,Se,De){return this.node(ge,Se,De)},de.prototype.t=function(ge){return this.text(ge)},de.prototype.d=function(ge){return this.cdata(ge)},de.prototype.c=function(ge){return this.comment(ge)},de.prototype.r=function(ge){return this.raw(ge)},de.prototype.i=function(ge,Se){return this.instruction(ge,Se)},de.prototype.u=function(){return this.up()},de.prototype.importXMLBuilder=function(ge){return this.importDocument(ge)},de.prototype.replaceChild=function(ge,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.removeChild=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.appendChild=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.hasChildNodes=function(){return this.children.length!==0},de.prototype.cloneNode=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isSupported=function(ge,Se){return!0},de.prototype.hasAttributes=function(){return this.attribs.length!==0},de.prototype.compareDocumentPosition=function(ge){var Se,De;return Se=this,Se===ge?0:this.document()!==ge.document()?(De=x.Disconnected|x.ImplementationSpecific,Math.random()<.5?De|=x.Preceding:De|=x.Following,De):Se.isAncestor(ge)?x.Contains|x.Preceding:Se.isDescendant(ge)?x.Contains|x.Following:Se.isPreceding(ge)?x.Preceding:x.Following},de.prototype.isSameNode=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.lookupPrefix=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isDefaultNamespace=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.lookupNamespaceURI=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.isEqualNode=function(ge){var Se,De,_e;if(ge.nodeType!==this.nodeType||ge.children.length!==this.children.length)return!1;for(Se=De=0,_e=this.children.length-1;0<=_e?De<=_e:De>=_e;Se=0<=_e?++De:--De)if(!this.children[Se].isEqualNode(ge.children[Se]))return!1;return!0},de.prototype.getFeature=function(ge,Se){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.setUserData=function(ge,Se,De){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.getUserData=function(ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},de.prototype.contains=function(ge){return ge?ge===this||this.isDescendant(ge):!1},de.prototype.isDescendant=function(ge){var Se,De,_e,Ee,Oe;for(Oe=this.children,_e=0,Ee=Oe.length;_e<Ee;_e++)if(Se=Oe[_e],ge===Se||(De=Se.isDescendant(ge),De))return!0;return!1},de.prototype.isAncestor=function(ge){return ge.isDescendant(this)},de.prototype.isPreceding=function(ge){var Se,De;return Se=this.treePosition(ge),De=this.treePosition(this),Se===-1||De===-1?!1:Se<De},de.prototype.isFollowing=function(ge){var Se,De;return Se=this.treePosition(ge),De=this.treePosition(this),Se===-1||De===-1?!1:Se>De},de.prototype.treePosition=function(ge){var Se,De;return De=0,Se=!1,this.foreachTreeNode(this.document(),function(_e){if(De++,!Se&&_e===ge)return Se=!0}),Se?De:-1},de.prototype.foreachTreeNode=function(ge,Se){var De,_e,Ee,Oe,He;for(ge||(ge=this.document()),Oe=ge.children,_e=0,Ee=Oe.length;_e<Ee;_e++){if(De=Oe[_e],He=Se(De))return He;if(He=this.foreachTreeNode(De,Se),He)return He}},de}()}).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,ve){(function(){var x;we.exports=x=function(){function z(oe){this.nodes=oe}return Object.defineProperty(z.prototype,"length",{get:function(){return this.nodes.length||0}}),z.prototype.clone=function(){return this.nodes=null},z.prototype.item=function(oe){return this.nodes[oe]||null},z}()}).call(this)},{}],452:[function(y,we,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),we.exports=oe=function(se){ie(E,se);function E(te,re,le){if(E.__super__.constructor.call(this,te),re==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=x.ProcessingInstruction,this.target=this.stringify.insTarget(re),this.name=this.target,le&&(this.value=this.stringify.insValue(le))}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(te){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(te))},E.prototype.isEqualNode=function(te){return!(!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(te)||te.target!==this.target)},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(y,we,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLNode"),we.exports=oe=function(se){ie(E,se);function E(te,re){if(E.__super__.constructor.call(this,te),re==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=x.Raw,this.value=this.stringify.raw(re)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(te){return this.options.writer.raw(this,this.options.writer.filterOptions(te))},E}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(y,we,ve){(function(){var x,z,oe,ie,ee=function(E,te){for(var re in te)se.call(te,re)&&(E[re]=te[re]);function le(){this.constructor=E}return le.prototype=te.prototype,E.prototype=new le,E.__super__=te.prototype,E},se={}.hasOwnProperty;x=y("./NodeType"),ie=y("./XMLWriterBase"),z=y("./WriterState"),we.exports=oe=function(E){ee(te,E);function te(re,le){this.stream=re,te.__super__.constructor.call(this,le)}return te.prototype.endline=function(re,le,ue){return re.isLastRootNode&&le.state===z.CloseTag?"":te.__super__.endline.call(this,re,le,ue)},te.prototype.document=function(re,le){var ue,ce,he,me,fe,be,Ce,Te,Pe;for(Ce=re.children,ce=he=0,fe=Ce.length;he<fe;ce=++he)ue=Ce[ce],ue.isLastRootNode=ce===re.children.length-1;for(le=this.filterOptions(le),Te=re.children,Pe=[],me=0,be=Te.length;me<be;me++)ue=Te[me],Pe.push(this.writeChildNode(ue,le,0));return Pe},te.prototype.attribute=function(re,le,ue){return this.stream.write(te.__super__.attribute.call(this,re,le,ue))},te.prototype.cdata=function(re,le,ue){return this.stream.write(te.__super__.cdata.call(this,re,le,ue))},te.prototype.comment=function(re,le,ue){return this.stream.write(te.__super__.comment.call(this,re,le,ue))},te.prototype.declaration=function(re,le,ue){return this.stream.write(te.__super__.declaration.call(this,re,le,ue))},te.prototype.docType=function(re,le,ue){var ce,he,me,fe;if(ue||(ue=0),this.openNode(re,le,ue),le.state=z.OpenTag,this.stream.write(this.indent(re,le,ue)),this.stream.write("<!DOCTYPE "+re.root().name),re.pubID&&re.sysID?this.stream.write(' PUBLIC "'+re.pubID+'" "'+re.sysID+'"'):re.sysID&&this.stream.write(' SYSTEM "'+re.sysID+'"'),re.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(re,le,ue)),le.state=z.InsideTag,fe=re.children,he=0,me=fe.length;he<me;he++)ce=fe[he],this.writeChildNode(ce,le,ue+1);le.state=z.CloseTag,this.stream.write("]")}return le.state=z.CloseTag,this.stream.write(le.spaceBeforeSlash+">"),this.stream.write(this.endline(re,le,ue)),le.state=z.None,this.closeNode(re,le,ue)},te.prototype.element=function(re,le,ue){var ce,he,me,fe,be,Ce,Te,Pe,ke,de;ue||(ue=0),this.openNode(re,le,ue),le.state=z.OpenTag,this.stream.write(this.indent(re,le,ue)+"<"+re.name),ke=re.attribs;for(Te in ke)se.call(ke,Te)&&(ce=ke[Te],this.attribute(ce,le,ue));if(me=re.children.length,fe=me===0?null:re.children[0],me===0||re.children.every(function(ge){return(ge.type===x.Text||ge.type===x.Raw)&&ge.value===""}))le.allowEmpty?(this.stream.write(">"),le.state=z.CloseTag,this.stream.write("</"+re.name+">")):(le.state=z.CloseTag,this.stream.write(le.spaceBeforeSlash+"/>"));else if(le.pretty&&me===1&&(fe.type===x.Text||fe.type===x.Raw)&&fe.value!=null)this.stream.write(">"),le.state=z.InsideTag,le.suppressPrettyCount++,Pe=!0,this.writeChildNode(fe,le,ue+1),le.suppressPrettyCount--,Pe=!1,le.state=z.CloseTag,this.stream.write("</"+re.name+">");else{for(this.stream.write(">"+this.endline(re,le,ue)),le.state=z.InsideTag,de=re.children,be=0,Ce=de.length;be<Ce;be++)he=de[be],this.writeChildNode(he,le,ue+1);le.state=z.CloseTag,this.stream.write(this.indent(re,le,ue)+"</"+re.name+">")}return this.stream.write(this.endline(re,le,ue)),le.state=z.None,this.closeNode(re,le,ue)},te.prototype.processingInstruction=function(re,le,ue){return this.stream.write(te.__super__.processingInstruction.call(this,re,le,ue))},te.prototype.raw=function(re,le,ue){return this.stream.write(te.__super__.raw.call(this,re,le,ue))},te.prototype.text=function(re,le,ue){return this.stream.write(te.__super__.text.call(this,re,le,ue))},te.prototype.dtdAttList=function(re,le,ue){return this.stream.write(te.__super__.dtdAttList.call(this,re,le,ue))},te.prototype.dtdElement=function(re,le,ue){return this.stream.write(te.__super__.dtdElement.call(this,re,le,ue))},te.prototype.dtdEntity=function(re,le,ue){return this.stream.write(te.__super__.dtdEntity.call(this,re,le,ue))},te.prototype.dtdNotation=function(re,le,ue){return this.stream.write(te.__super__.dtdNotation.call(this,re,le,ue))},te}(ie)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,we,ve){(function(){var x,z,oe=function(ee,se){for(var E in se)ie.call(se,E)&&(ee[E]=se[E]);function te(){this.constructor=ee}return te.prototype=se.prototype,ee.prototype=new te,ee.__super__=se.prototype,ee},ie={}.hasOwnProperty;z=y("./XMLWriterBase"),we.exports=x=function(ee){oe(se,ee);function se(E){se.__super__.constructor.call(this,E)}return se.prototype.document=function(E,te){var re,le,ue,ce,he;for(te=this.filterOptions(te),ce="",he=E.children,le=0,ue=he.length;le<ue;le++)re=he[le],ce+=this.writeChildNode(re,te,0);return te.pretty&&ce.slice(-te.newline.length)===te.newline&&(ce=ce.slice(0,-te.newline.length)),ce},se}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,we,ve){(function(){var x,z=function(ie,ee){return function(){return ie.apply(ee,arguments)}},oe={}.hasOwnProperty;we.exports=x=function(){function ie(ee){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var se,E,te;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),E=ee.stringify||{};for(se in E)oe.call(E,se)&&(te=E[se],this[se]=te)}return ie.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},ie.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},ie.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},ie.prototype.comment=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+ee);return this.assertLegalChar(ee)},ie.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},ie.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},ie.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.insValue=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",ee.match(/\?>/))throw new Error("Invalid processing instruction value: "+ee);return this.assertLegalChar(ee)},ie.prototype.xmlVersion=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+ee);return ee},ie.prototype.xmlEncoding=function(ee){if(this.options.noValidation)return ee;if(ee=""+ee||"",!ee.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+ee);return this.assertLegalChar(ee)},ie.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},ie.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},ie.prototype.convertAttKey="@",ie.prototype.convertPIKey="?",ie.prototype.convertTextKey="#text",ie.prototype.convertCDataKey="#cdata",ie.prototype.convertCommentKey="#comment",ie.prototype.convertRawKey="#raw",ie.prototype.assertLegalChar=function(ee){var se,E;if(this.options.noValidation)return ee;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]/,E=ee.match(se))throw new Error("Invalid character in string: "+ee+" at index "+E.index)}else if(this.options.version==="1.1"&&(se=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(se)))throw new Error("Invalid character in string: "+ee+" at index "+E.index);return ee},ie.prototype.assertLegalName=function(ee){var se;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),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])*$/,!ee.match(se))throw new Error("Invalid character in name");return ee},ie.prototype.textEscape=function(ee){var se;return this.options.noValidation?ee:(se=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(se,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},ie.prototype.attEscape=function(ee){var se;return this.options.noValidation?ee:(se=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(se,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},ie}()}).call(this)},{}],457:[function(y,we,ve){(function(){var x,z,oe,ie=function(se,E){for(var te in E)ee.call(E,te)&&(se[te]=E[te]);function re(){this.constructor=se}return re.prototype=E.prototype,se.prototype=new re,se.__super__=E.prototype,se},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),we.exports=oe=function(se){ie(E,se);function E(te,re){if(E.__super__.constructor.call(this,te),re==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=x.Text,this.value=this.stringify.text(re)}return Object.defineProperty(E.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(E.prototype,"wholeText",{get:function(){var te,re,le;for(le="",re=this.previousSibling;re;)le=re.data+le,re=re.previousSibling;for(le+=this.data,te=this.nextSibling;te;)le=le+te.data,te=te.nextSibling;return le}}),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(te){return this.options.writer.text(this,this.options.writer.filterOptions(te))},E.prototype.splitText=function(te){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.replaceWholeText=function(te){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(y,we,ve){(function(){var x,z,oe,ie,ee,se,E,te,re,le,ue,ce,he,me,fe,be,Ce,Te={}.hasOwnProperty;Ce=y("./Utility").assign,x=y("./NodeType"),re=y("./XMLDeclaration"),le=y("./XMLDocType"),oe=y("./XMLCData"),ie=y("./XMLComment"),ce=y("./XMLElement"),me=y("./XMLRaw"),fe=y("./XMLText"),he=y("./XMLProcessingInstruction"),ue=y("./XMLDummy"),ee=y("./XMLDTDAttList"),se=y("./XMLDTDElement"),E=y("./XMLDTDEntity"),te=y("./XMLDTDNotation"),z=y("./WriterState"),we.exports=be=function(){function Pe(ke){var de,ge,Se;ke||(ke={}),this.options=ke,ge=ke.writer||{};for(de in ge)Te.call(ge,de)&&(Se=ge[de],this["_"+de]=this[de],this[de]=Se)}return Pe.prototype.filterOptions=function(ke){var de,ge,Se,De,_e,Ee,Oe,He;return ke||(ke={}),ke=Ce({},this.options,ke),de={writer:this},de.pretty=ke.pretty||!1,de.allowEmpty=ke.allowEmpty||!1,de.indent=(ge=ke.indent)!=null?ge:" ",de.newline=(Se=ke.newline)!=null?Se:`
`,de.offset=(De=ke.offset)!=null?De:0,de.dontPrettyTextNodes=(_e=(Ee=ke.dontPrettyTextNodes)!=null?Ee:ke.dontprettytextnodes)!=null?_e:0,de.spaceBeforeSlash=(Oe=(He=ke.spaceBeforeSlash)!=null?He:ke.spacebeforeslash)!=null?Oe:"",de.spaceBeforeSlash===!0&&(de.spaceBeforeSlash=" "),de.suppressPrettyCount=0,de.user={},de.state=z.None,de},Pe.prototype.indent=function(ke,de,ge){var Se;return!de.pretty||de.suppressPrettyCount?"":de.pretty&&(Se=(ge||0)+de.offset+1,Se>0)?new Array(Se).join(de.indent):""},Pe.prototype.endline=function(ke,de,ge){return!de.pretty||de.suppressPrettyCount?"":de.newline},Pe.prototype.attribute=function(ke,de,ge){var Se;return this.openAttribute(ke,de,ge),Se=" "+ke.name+'="'+ke.value+'"',this.closeAttribute(ke,de,ge),Se},Pe.prototype.cdata=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge)+"<![CDATA[",de.state=z.InsideTag,Se+=ke.value,de.state=z.CloseTag,Se+="]]>"+this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.comment=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge)+"<!-- ",de.state=z.InsideTag,Se+=ke.value,de.state=z.CloseTag,Se+=" -->"+this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.declaration=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge)+"<?xml",de.state=z.InsideTag,Se+=' version="'+ke.version+'"',ke.encoding!=null&&(Se+=' encoding="'+ke.encoding+'"'),ke.standalone!=null&&(Se+=' standalone="'+ke.standalone+'"'),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+"?>",Se+=this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.docType=function(ke,de,ge){var Se,De,_e,Ee,Oe;if(ge||(ge=0),this.openNode(ke,de,ge),de.state=z.OpenTag,Ee=this.indent(ke,de,ge),Ee+="<!DOCTYPE "+ke.root().name,ke.pubID&&ke.sysID?Ee+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.sysID&&(Ee+=' SYSTEM "'+ke.sysID+'"'),ke.children.length>0){for(Ee+=" [",Ee+=this.endline(ke,de,ge),de.state=z.InsideTag,Oe=ke.children,De=0,_e=Oe.length;De<_e;De++)Se=Oe[De],Ee+=this.writeChildNode(Se,de,ge+1);de.state=z.CloseTag,Ee+="]"}return de.state=z.CloseTag,Ee+=de.spaceBeforeSlash+">",Ee+=this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Ee},Pe.prototype.element=function(ke,de,ge){var Se,De,_e,Ee,Oe,He,Xe,et,st,Le,Ue,rt,ot,it;ge||(ge=0),Le=!1,Ue="",this.openNode(ke,de,ge),de.state=z.OpenTag,Ue+=this.indent(ke,de,ge)+"<"+ke.name,rt=ke.attribs;for(st in rt)Te.call(rt,st)&&(Se=rt[st],Ue+=this.attribute(Se,de,ge));if(_e=ke.children.length,Ee=_e===0?null:ke.children[0],_e===0||ke.children.every(function(Ye){return(Ye.type===x.Text||Ye.type===x.Raw)&&Ye.value===""}))de.allowEmpty?(Ue+=">",de.state=z.CloseTag,Ue+="</"+ke.name+">"+this.endline(ke,de,ge)):(de.state=z.CloseTag,Ue+=de.spaceBeforeSlash+"/>"+this.endline(ke,de,ge));else if(de.pretty&&_e===1&&(Ee.type===x.Text||Ee.type===x.Raw)&&Ee.value!=null)Ue+=">",de.state=z.InsideTag,de.suppressPrettyCount++,Le=!0,Ue+=this.writeChildNode(Ee,de,ge+1),de.suppressPrettyCount--,Le=!1,de.state=z.CloseTag,Ue+="</"+ke.name+">"+this.endline(ke,de,ge);else{if(de.dontPrettyTextNodes){for(ot=ke.children,Oe=0,Xe=ot.length;Oe<Xe;Oe++)if(De=ot[Oe],(De.type===x.Text||De.type===x.Raw)&&De.value!=null){de.suppressPrettyCount++,Le=!0;break}}for(Ue+=">"+this.endline(ke,de,ge),de.state=z.InsideTag,it=ke.children,He=0,et=it.length;He<et;He++)De=it[He],Ue+=this.writeChildNode(De,de,ge+1);de.state=z.CloseTag,Ue+=this.indent(ke,de,ge)+"</"+ke.name+">",Le&&de.suppressPrettyCount--,Ue+=this.endline(ke,de,ge),de.state=z.None}return this.closeNode(ke,de,ge),Ue},Pe.prototype.writeChildNode=function(ke,de,ge){switch(ke.type){case x.CData:return this.cdata(ke,de,ge);case x.Comment:return this.comment(ke,de,ge);case x.Element:return this.element(ke,de,ge);case x.Raw:return this.raw(ke,de,ge);case x.Text:return this.text(ke,de,ge);case x.ProcessingInstruction:return this.processingInstruction(ke,de,ge);case x.Dummy:return"";case x.Declaration:return this.declaration(ke,de,ge);case x.DocType:return this.docType(ke,de,ge);case x.AttributeDeclaration:return this.dtdAttList(ke,de,ge);case x.ElementDeclaration:return this.dtdElement(ke,de,ge);case x.EntityDeclaration:return this.dtdEntity(ke,de,ge);case x.NotationDeclaration:return this.dtdNotation(ke,de,ge);default:throw new Error("Unknown XML node type: "+ke.constructor.name)}},Pe.prototype.processingInstruction=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge)+"<?",de.state=z.InsideTag,Se+=ke.target,ke.value&&(Se+=" "+ke.value),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+"?>",Se+=this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.raw=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge),de.state=z.InsideTag,Se+=ke.value,de.state=z.CloseTag,Se+=this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.text=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge),de.state=z.InsideTag,Se+=ke.value,de.state=z.CloseTag,Se+=this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.dtdAttList=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge)+"<!ATTLIST",de.state=z.InsideTag,Se+=" "+ke.elementName+" "+ke.attributeName+" "+ke.attributeType,ke.defaultValueType!=="#DEFAULT"&&(Se+=" "+ke.defaultValueType),ke.defaultValue&&(Se+=' "'+ke.defaultValue+'"'),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+">"+this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.dtdElement=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge)+"<!ELEMENT",de.state=z.InsideTag,Se+=" "+ke.name+" "+ke.value,de.state=z.CloseTag,Se+=de.spaceBeforeSlash+">"+this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.dtdEntity=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge)+"<!ENTITY",de.state=z.InsideTag,ke.pe&&(Se+=" %"),Se+=" "+ke.name,ke.value?Se+=' "'+ke.value+'"':(ke.pubID&&ke.sysID?Se+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.sysID&&(Se+=' SYSTEM "'+ke.sysID+'"'),ke.nData&&(Se+=" NDATA "+ke.nData)),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+">"+this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.dtdNotation=function(ke,de,ge){var Se;return this.openNode(ke,de,ge),de.state=z.OpenTag,Se=this.indent(ke,de,ge)+"<!NOTATION",de.state=z.InsideTag,Se+=" "+ke.name,ke.pubID&&ke.sysID?Se+=' PUBLIC "'+ke.pubID+'" "'+ke.sysID+'"':ke.pubID?Se+=' PUBLIC "'+ke.pubID+'"':ke.sysID&&(Se+=' SYSTEM "'+ke.sysID+'"'),de.state=z.CloseTag,Se+=de.spaceBeforeSlash+">"+this.endline(ke,de,ge),de.state=z.None,this.closeNode(ke,de,ge),Se},Pe.prototype.openNode=function(ke,de,ge){},Pe.prototype.closeNode=function(ke,de,ge){},Pe.prototype.openAttribute=function(ke,de,ge){},Pe.prototype.closeAttribute=function(ke,de,ge){},Pe}()}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLCData":432,"./XMLComment":434,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLDeclaration":443,"./XMLDocType":444,"./XMLDummy":447,"./XMLElement":448,"./XMLProcessingInstruction":452,"./XMLRaw":453,"./XMLText":457}],459:[function(y,we,ve){(function(){var x,z,oe,ie,ee,se,E,te,re,le;le=y("./Utility"),te=le.assign,re=le.isFunction,oe=y("./XMLDOMImplementation"),ie=y("./XMLDocument"),ee=y("./XMLDocumentCB"),E=y("./XMLStringWriter"),se=y("./XMLStreamWriter"),x=y("./NodeType"),z=y("./WriterState"),we.exports.create=function(ue,ce,he,me){var fe,be;if(ue==null)throw new Error("Root element needs a name.");return me=te({},ce,he,me),fe=new ie(me),be=fe.element(ue),me.headless||(fe.declaration(me),(me.pubID!=null||me.sysID!=null)&&fe.dtd(me)),be},we.exports.begin=function(ue,ce,he){var me;return re(ue)&&(me=[ue,ce],ce=me[0],he=me[1],ue={}),ce?new ee(ue,ce,he):new ie(ue)},we.exports.stringWriter=function(ue){return new E(ue)},we.exports.streamWriter=function(ue,ce){return new se(ue,ce)},we.exports.implementation=new oe,we.exports.nodeType=x,we.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,we,ve){we.exports=z;var x=Object.prototype.hasOwnProperty;function z(){for(var oe={},ie=0;ie<arguments.length;ie++){var ee=arguments[ie];for(var se in ee)x.call(ee,se)&&(oe[se]=ee[se])}return oe}},{}],461:[function(y,we,ve){"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 x=y("buffer").Buffer,z=y("./sha"),oe=y("./md5"),ie={sha1:z,md5:oe},ee=64,se=x.alloc(ee);se.fill(0);function E(le,ue,ce){x.isBuffer(ue)||(ue=x.from(ue)),x.isBuffer(ce)||(ce=x.from(ce)),ue.length>ee?ue=le(ue):ue.length<ee&&(ue=x.concat([ue,se],ee));for(var he=x.alloc(ee),me=x.alloc(ee),fe=0;fe<ee;fe++)he[fe]=ue[fe]^54,me[fe]=ue[fe]^92;var be=le(x.concat([he,ce]));return le(x.concat([me,be]))}function te(le,ue){le=le||"sha1";var ce=ie[le],he=[],me=0;return ce||re("algorithm:",le,"is not yet supported"),{update:function(be){return x.isBuffer(be)||(be=x.from(be)),he.push(be),me+=be.length,this},digest:function(be){var Ce=x.concat(he),Te=ue?E(ce,ue,Ce):ce(Ce);return he=null,be?Te.toString(be):Te}}}function re(){var le=[].slice.call(arguments).join(" ");throw new Error([le,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}ve.createHash=function(le){return te(le)},ve.createHmac=function(le,ue){return te(le,ue)},ve.createCredentials=function(){re("sorry,createCredentials is not implemented yet")},ve.createCipher=function(){re("sorry,createCipher is not implemented yet")},ve.createCipheriv=function(){re("sorry,createCipheriv is not implemented yet")},ve.createDecipher=function(){re("sorry,createDecipher is not implemented yet")},ve.createDecipheriv=function(){re("sorry,createDecipheriv is not implemented yet")},ve.createSign=function(){re("sorry,createSign is not implemented yet")},ve.createVerify=function(){re("sorry,createVerify is not implemented yet")},ve.createDiffieHellman=function(){re("sorry,createDiffieHellman is not implemented yet")},ve.pbkdf2=function(){re("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(y,we,ve){"use strict";y("core-js/modules/es.array.fill.js"),y("core-js/modules/es.array.concat.js");var x=y("buffer").Buffer,z=4,oe=x.alloc(z);oe.fill(0);var ie=8;function ee(te,re){if(te.length%z!==0){var le=te.length+(z-te.length%z);te=x.concat([te,oe],le)}for(var ue=[],ce=re?te.readInt32BE:te.readInt32LE,he=0;he<te.length;he+=z)ue.push(ce.call(te,he));return ue}function se(te,re,le){for(var ue=x.alloc(re),ce=le?ue.writeInt32BE:ue.writeInt32LE,he=0;he<te.length;he++)ce.call(ue,te[he],he*4,!0);return ue}function E(te,re,le,ue){x.isBuffer(te)||(te=x.from(te));var ce=re(ee(te,ue),te.length*ie);return se(ce,le,ue)}we.exports={hash:E}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,we,ve){"use strict";var x=y("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function oe(ue,ce){ue[ce>>5]|=128<<ce%32,ue[(ce+64>>>9<<4)+14]=ce;for(var he=1732584193,me=-271733879,fe=-1732584194,be=271733878,Ce=0;Ce<ue.length;Ce+=16){var Te=he,Pe=me,ke=fe,de=be;he=ee(he,me,fe,be,ue[Ce+0],7,-680876936),be=ee(be,he,me,fe,ue[Ce+1],12,-389564586),fe=ee(fe,be,he,me,ue[Ce+2],17,606105819),me=ee(me,fe,be,he,ue[Ce+3],22,-1044525330),he=ee(he,me,fe,be,ue[Ce+4],7,-176418897),be=ee(be,he,me,fe,ue[Ce+5],12,1200080426),fe=ee(fe,be,he,me,ue[Ce+6],17,-1473231341),me=ee(me,fe,be,he,ue[Ce+7],22,-45705983),he=ee(he,me,fe,be,ue[Ce+8],7,1770035416),be=ee(be,he,me,fe,ue[Ce+9],12,-1958414417),fe=ee(fe,be,he,me,ue[Ce+10],17,-42063),me=ee(me,fe,be,he,ue[Ce+11],22,-1990404162),he=ee(he,me,fe,be,ue[Ce+12],7,1804603682),be=ee(be,he,me,fe,ue[Ce+13],12,-40341101),fe=ee(fe,be,he,me,ue[Ce+14],17,-1502002290),me=ee(me,fe,be,he,ue[Ce+15],22,1236535329),he=se(he,me,fe,be,ue[Ce+1],5,-165796510),be=se(be,he,me,fe,ue[Ce+6],9,-1069501632),fe=se(fe,be,he,me,ue[Ce+11],14,643717713),me=se(me,fe,be,he,ue[Ce+0],20,-373897302),he=se(he,me,fe,be,ue[Ce+5],5,-701558691),be=se(be,he,me,fe,ue[Ce+10],9,38016083),fe=se(fe,be,he,me,ue[Ce+15],14,-660478335),me=se(me,fe,be,he,ue[Ce+4],20,-405537848),he=se(he,me,fe,be,ue[Ce+9],5,568446438),be=se(be,he,me,fe,ue[Ce+14],9,-1019803690),fe=se(fe,be,he,me,ue[Ce+3],14,-187363961),me=se(me,fe,be,he,ue[Ce+8],20,1163531501),he=se(he,me,fe,be,ue[Ce+13],5,-1444681467),be=se(be,he,me,fe,ue[Ce+2],9,-51403784),fe=se(fe,be,he,me,ue[Ce+7],14,1735328473),me=se(me,fe,be,he,ue[Ce+12],20,-1926607734),he=E(he,me,fe,be,ue[Ce+5],4,-378558),be=E(be,he,me,fe,ue[Ce+8],11,-2022574463),fe=E(fe,be,he,me,ue[Ce+11],16,1839030562),me=E(me,fe,be,he,ue[Ce+14],23,-35309556),he=E(he,me,fe,be,ue[Ce+1],4,-1530992060),be=E(be,he,me,fe,ue[Ce+4],11,1272893353),fe=E(fe,be,he,me,ue[Ce+7],16,-155497632),me=E(me,fe,be,he,ue[Ce+10],23,-1094730640),he=E(he,me,fe,be,ue[Ce+13],4,681279174),be=E(be,he,me,fe,ue[Ce+0],11,-358537222),fe=E(fe,be,he,me,ue[Ce+3],16,-722521979),me=E(me,fe,be,he,ue[Ce+6],23,76029189),he=E(he,me,fe,be,ue[Ce+9],4,-640364487),be=E(be,he,me,fe,ue[Ce+12],11,-421815835),fe=E(fe,be,he,me,ue[Ce+15],16,530742520),me=E(me,fe,be,he,ue[Ce+2],23,-995338651),he=te(he,me,fe,be,ue[Ce+0],6,-198630844),be=te(be,he,me,fe,ue[Ce+7],10,1126891415),fe=te(fe,be,he,me,ue[Ce+14],15,-1416354905),me=te(me,fe,be,he,ue[Ce+5],21,-57434055),he=te(he,me,fe,be,ue[Ce+12],6,1700485571),be=te(be,he,me,fe,ue[Ce+3],10,-1894986606),fe=te(fe,be,he,me,ue[Ce+10],15,-1051523),me=te(me,fe,be,he,ue[Ce+1],21,-2054922799),he=te(he,me,fe,be,ue[Ce+8],6,1873313359),be=te(be,he,me,fe,ue[Ce+15],10,-30611744),fe=te(fe,be,he,me,ue[Ce+6],15,-1560198380),me=te(me,fe,be,he,ue[Ce+13],21,1309151649),he=te(he,me,fe,be,ue[Ce+4],6,-145523070),be=te(be,he,me,fe,ue[Ce+11],10,-1120210379),fe=te(fe,be,he,me,ue[Ce+2],15,718787259),me=te(me,fe,be,he,ue[Ce+9],21,-343485551),he=re(he,Te),me=re(me,Pe),fe=re(fe,ke),be=re(be,de)}return Array(he,me,fe,be)}function ie(ue,ce,he,me,fe,be){return re(le(re(re(ce,ue),re(me,be)),fe),he)}function ee(ue,ce,he,me,fe,be,Ce){return ie(ce&he|~ce&me,ue,ce,fe,be,Ce)}function se(ue,ce,he,me,fe,be,Ce){return ie(ce&me|he&~me,ue,ce,fe,be,Ce)}function E(ue,ce,he,me,fe,be,Ce){return ie(ce^he^me,ue,ce,fe,be,Ce)}function te(ue,ce,he,me,fe,be,Ce){return ie(he^(ce|~me),ue,ce,fe,be,Ce)}function re(ue,ce){var he=(ue&65535)+(ce&65535),me=(ue>>16)+(ce>>16)+(he>>16);return me<<16|he&65535}function le(ue,ce){return ue<<ce|ue>>>32-ce}we.exports=function(ce){return x.hash(ce,oe,16)}},{"./helpers":462}],464:[function(y,we,ve){"use strict";var x=y("./helpers");function z(E,te){E[te>>5]|=128<<24-te%32,E[(te+64>>9<<4)+15]=te;for(var re=Array(80),le=1732584193,ue=-271733879,ce=-1732584194,he=271733878,me=-1009589776,fe=0;fe<E.length;fe+=16){for(var be=le,Ce=ue,Te=ce,Pe=he,ke=me,de=0;de<80;de++){de<16?re[de]=E[fe+de]:re[de]=se(re[de-3]^re[de-8]^re[de-14]^re[de-16],1);var ge=ee(ee(se(le,5),oe(de,ue,ce,he)),ee(ee(me,re[de]),ie(de)));me=he,he=ce,ce=se(ue,30),ue=le,le=ge}le=ee(le,be),ue=ee(ue,Ce),ce=ee(ce,Te),he=ee(he,Pe),me=ee(me,ke)}return Array(le,ue,ce,he,me)}function oe(E,te,re,le){return E<20?te&re|~te&le:E<40?te^re^le:E<60?te&re|te&le|re&le:te^re^le}function ie(E){return E<20?1518500249:E<40?1859775393:E<60?-1894007588:-899497514}function ee(E,te){var re=(E&65535)+(te&65535),le=(E>>16)+(te>>16)+(re>>16);return le<<16|re&65535}function se(E,te){return E<<te|E>>>32-te}we.exports=function(te){return x.hash(te,z,20,!0)}},{"./helpers":462}],465:[function(y,we,ve){"use strict";we.exports=function(){return function(){}}},{}],466:[function(y,we,ve){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),oe=z(y("@babel/runtime/helpers/typeof")),ie=y("stream"),ee=ie.Stream,se=y("../lib/common/utils/isArray"),E=se.isArray;we.exports.string=function(le){return typeof le=="string"},we.exports.array=E,we.exports.buffer=x.isBuffer;function te(re){return re instanceof ee}we.exports.writableStream=function(le){return te(le)&&typeof le._write=="function"&&(0,oe.default)(le._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,ve){"use strict";var x=y("immediate"),z=we.exports={};z.nextTick=x,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function oe(){}z.on=oe,z.addListener=oe,z.once=oe,z.off=oe,z.removeListener=oe,z.removeAllListeners=oe,z.emit=oe,z.prependListener=oe,z.prependOnceListener=oe,z.listeners=function(ie){return[]},z.binding=function(ie){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(ie){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(y,we,ve){(function(x){(function(){"use strict";y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js");var z=y("./lib/request"),oe=y("./lib/response"),ie=y("xtend"),ee=y("builtin-status-codes"),se=y("url"),E=ve;E.request=function(te,re){typeof te=="string"?te=se.parse(te):te=ie(te);var le=x.location.protocol.search(/^https?:$/)===-1?"http:":"",ue=te.protocol||le,ce=te.hostname||te.host,he=te.port,me=te.path||"/";ce&&ce.indexOf(":")!==-1&&(ce="["+ce+"]"),te.url=(ce?ue+"//"+ce:"")+(he?":"+he:"")+me,te.method=(te.method||"GET").toUpperCase(),te.headers=te.headers||{};var fe=new z(te);return re&&fe.on("response",re),fe},E.get=function(re,le){var ue=E.request(re,le);return ue.end(),ue},E.ClientRequest=z,E.IncomingMessage=oe.IncomingMessage,E.Agent=function(){},E.Agent.defaultMaxSockets=4,E.globalAgent=new E.Agent,E.STATUS_CODES=ee,E.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 _t!="undefined"?_t: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,ve){(function(x){(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"),ve.fetch=E(x.fetch)&&E(x.ReadableStream),ve.writableStream=E(x.WritableStream),ve.abortController=E(x.AbortController),ve.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),ve.blobConstructor=!0}catch(te){}var z;function oe(){if(z!==void 0)return z;if(x.XMLHttpRequest){z=new x.XMLHttpRequest;try{z.open("GET",x.XDomainRequest?"/":"https://example.com")}catch(te){z=null}}else z=null;return z}function ie(te){var re=oe();if(!re)return!1;try{return re.responseType=te,re.responseType===te}catch(le){}return!1}var ee=typeof x.ArrayBuffer!="undefined",se=ee&&E(x.ArrayBuffer.prototype.slice);ve.arraybuffer=ve.fetch||ee&&ie("arraybuffer"),ve.msstream=!ve.fetch&&se&&ie("ms-stream"),ve.mozchunkedarraybuffer=!ve.fetch&&ee&&ie("moz-chunked-arraybuffer"),ve.overrideMimeType=ve.fetch||(oe()?E(oe().overrideMimeType):!1),ve.vbArray=E(x.VBArray);function E(te){return typeof te=="function"}z=null}).call(this)}).call(this,typeof _t!="undefined"?_t: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,ve){(function(x,z,oe){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js");var ie=y("./capability"),ee=y("inherits"),se=y("./response"),E=y("readable-stream"),te=y("to-arraybuffer"),re=se.IncomingMessage,le=se.readyStates;function ue(fe,be){return ie.fetch&&be?"fetch":ie.mozchunkedarraybuffer?"moz-chunked-arraybuffer":ie.msstream?"ms-stream":ie.arraybuffer&&fe?"arraybuffer":ie.vbArray&&fe?"text:vbarray":"text"}var ce=we.exports=function(fe){var be=this;E.Writable.call(be),be._opts=fe,be._body=[],be._headers={},fe.auth&&be.setHeader("Authorization","Basic "+new oe(fe.auth).toString("base64")),Object.keys(fe.headers).forEach(function(Pe){be.setHeader(Pe,fe.headers[Pe])});var Ce,Te=!0;if(fe.mode==="disable-fetch"||"requestTimeout"in fe&&!ie.abortController)Te=!1,Ce=!0;else if(fe.mode==="prefer-streaming")Ce=!1;else if(fe.mode==="allow-wrong-content-type")Ce=!ie.overrideMimeType;else if(!fe.mode||fe.mode==="default"||fe.mode==="prefer-fast")Ce=!0;else throw new Error("Invalid value for opts.mode");be._mode=ue(Ce,Te),be._fetchTimer=null,be.on("finish",function(){be._onFinish()})};ee(ce,E.Writable),ce.prototype.setHeader=function(fe,be){var Ce=this,Te=fe.toLowerCase();me.indexOf(Te)===-1&&(Ce._headers[Te]={name:fe,value:be})},ce.prototype.getHeader=function(fe){var be=this._headers[fe.toLowerCase()];return be?be.value:null},ce.prototype.removeHeader=function(fe){var be=this;delete be._headers[fe.toLowerCase()]},ce.prototype._onFinish=function(){var fe=this;if(!fe._destroyed){var be=fe._opts,Ce=fe._headers,Te=null;be.method!=="GET"&&be.method!=="HEAD"&&(ie.arraybuffer?Te=te(oe.concat(fe._body)):ie.blobConstructor?Te=new z.Blob(fe._body.map(function(De){return te(De)}),{type:(Ce["content-type"]||{}).value||""}):Te=oe.concat(fe._body).toString());var Pe=[];if(Object.keys(Ce).forEach(function(De){var _e=Ce[De].name,Ee=Ce[De].value;Array.isArray(Ee)?Ee.forEach(function(Oe){Pe.push([_e,Oe])}):Pe.push([_e,Ee])}),fe._mode==="fetch"){var ke=null,de=null;if(ie.abortController){var ge=new AbortController;ke=ge.signal,fe._fetchAbortController=ge,"requestTimeout"in be&&be.requestTimeout!==0&&(fe._fetchTimer=z.setTimeout(function(){fe.emit("requestTimeout"),fe._fetchAbortController&&fe._fetchAbortController.abort()},be.requestTimeout))}z.fetch(fe._opts.url,{method:fe._opts.method,headers:Pe,body:Te||void 0,mode:"cors",credentials:be.withCredentials?"include":"same-origin",signal:ke}).then(function(De){fe._fetchResponse=De,fe._connect()},function(De){z.clearTimeout(fe._fetchTimer),fe._destroyed||fe.emit("error",De)})}else{var Se=fe._xhr=new z.XMLHttpRequest;try{Se.open(fe._opts.method,fe._opts.url,!0)}catch(De){x.nextTick(function(){fe.emit("error",De)});return}"responseType"in Se&&(Se.responseType=fe._mode.split(":")[0]),"withCredentials"in Se&&(Se.withCredentials=!!be.withCredentials),fe._mode==="text"&&"overrideMimeType"in Se&&Se.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in be&&(Se.timeout=be.requestTimeout,Se.ontimeout=function(){fe.emit("requestTimeout")}),Pe.forEach(function(De){Se.setRequestHeader(De[0],De[1])}),fe._response=null,Se.onreadystatechange=function(){switch(Se.readyState){case le.LOADING:case le.DONE:fe._onXHRProgress();break}},fe._mode==="moz-chunked-arraybuffer"&&(Se.onprogress=function(){fe._onXHRProgress()}),Se.onerror=function(){fe._destroyed||fe.emit("error",new Error("XHR error"))};try{Se.send(Te)}catch(De){x.nextTick(function(){fe.emit("error",De)});return}}}};function he(fe){try{var be=fe.status;return be!==null&&be!==0}catch(Ce){return!1}}ce.prototype._onXHRProgress=function(){var fe=this;!he(fe._xhr)||fe._destroyed||(fe._response||fe._connect(),fe._response._onXHRProgress())},ce.prototype._connect=function(){var fe=this;fe._destroyed||(fe._response=new re(fe._xhr,fe._fetchResponse,fe._mode,fe._fetchTimer),fe._response.on("error",function(be){fe.emit("error",be)}),fe.emit("response",fe._response))},ce.prototype._write=function(fe,be,Ce){var Te=this;Te._body.push(fe),Ce()},ce.prototype.abort=ce.prototype.destroy=function(){var fe=this;fe._destroyed=!0,z.clearTimeout(fe._fetchTimer),fe._response&&(fe._response._destroyed=!0),fe._xhr?fe._xhr.abort():fe._fetchAbortController&&fe._fetchAbortController.abort()},ce.prototype.end=function(fe,be,Ce){var Te=this;typeof fe=="function"&&(Ce=fe,fe=void 0),E.Writable.prototype.end.call(Te,fe,be,Ce)},ce.prototype.flushHeaders=function(){},ce.prototype.setTimeout=function(){},ce.prototype.setNoDelay=function(){},ce.prototype.setSocketKeepAlive=function(){};var me=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t: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,ve){(function(x,z,oe){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js"),y("core-js/modules/es.array.slice.js");var ie=y("./capability"),ee=y("inherits"),se=y("readable-stream"),E=ve.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},te=ve.IncomingMessage=function(re,le,ue,ce){var he=this;if(se.Readable.call(he),he._mode=ue,he.headers={},he.rawHeaders=[],he.trailers={},he.rawTrailers=[],he.on("end",function(){x.nextTick(function(){he.emit("close")})}),ue==="fetch"){var me=function ke(){be.read().then(function(de){if(!he._destroyed){if(de.done){z.clearTimeout(ce),he.push(null);return}he.push(new oe(de.value)),ke()}}).catch(function(de){z.clearTimeout(ce),he._destroyed||he.emit("error",de)})};if(he._fetchResponse=le,he.url=le.url,he.statusCode=le.status,he.statusMessage=le.statusText,le.headers.forEach(function(ke,de){he.headers[de.toLowerCase()]=ke,he.rawHeaders.push(de,ke)}),ie.writableStream){var fe=new WritableStream({write:function(de){return new Promise(function(ge,Se){he._destroyed?Se():he.push(new oe(de))?ge():he._resumeFetch=ge})},close:function(){z.clearTimeout(ce),he._destroyed||he.push(null)},abort:function(de){he._destroyed||he.emit("error",de)}});try{le.body.pipeTo(fe).catch(function(ke){z.clearTimeout(ce),he._destroyed||he.emit("error",ke)});return}catch(ke){}}var be=le.body.getReader();me()}else{he._xhr=re,he._pos=0,he.url=re.responseURL,he.statusCode=re.status,he.statusMessage=re.statusText;var Ce=re.getAllResponseHeaders().split(/\r?\n/);if(Ce.forEach(function(ke){var de=ke.match(/^([^:]+):\s*(.*)/);if(de){var ge=de[1].toLowerCase();ge==="set-cookie"?(he.headers[ge]===void 0&&(he.headers[ge]=[]),he.headers[ge].push(de[2])):he.headers[ge]!==void 0?he.headers[ge]+=", "+de[2]:he.headers[ge]=de[2],he.rawHeaders.push(de[1],de[2])}}),he._charset="x-user-defined",!ie.overrideMimeType){var Te=he.rawHeaders["mime-type"];if(Te){var Pe=Te.match(/;\s*charset=([^;])(;|$)/);Pe&&(he._charset=Pe[1].toLowerCase())}he._charset||(he._charset="utf-8")}}};ee(te,se.Readable),te.prototype._read=function(){var re=this,le=re._resumeFetch;le&&(re._resumeFetch=null,le())},te.prototype._onXHRProgress=function(){var re=this,le=re._xhr,ue=null;switch(re._mode){case"text:vbarray":if(le.readyState!==E.DONE)break;try{ue=new z.VBArray(le.responseBody).toArray()}catch(be){}if(ue!==null){re.push(new oe(ue));break}case"text":try{ue=le.responseText}catch(be){re._mode="text:vbarray";break}if(ue.length>re._pos){var ce=ue.substr(re._pos);if(re._charset==="x-user-defined"){for(var he=new oe(ce.length),me=0;me<ce.length;me++)he[me]=ce.charCodeAt(me)&255;re.push(he)}else re.push(ce,re._charset);re._pos=ue.length}break;case"arraybuffer":if(le.readyState!==E.DONE||!le.response)break;ue=le.response,re.push(new oe(new Uint8Array(ue)));break;case"moz-chunked-arraybuffer":if(ue=le.response,le.readyState!==E.LOADING||!ue)break;re.push(new oe(new Uint8Array(ue)));break;case"ms-stream":if(ue=le.response,le.readyState!==E.LOADING)break;var fe=new z.MSStreamReader;fe.onprogress=function(){fe.result.byteLength>re._pos&&(re.push(new oe(new Uint8Array(fe.result.slice(re._pos)))),re._pos=fe.result.byteLength)},fe.onload=function(){re.push(null)},fe.readAsArrayBuffer(ue);break}re._xhr.readyState===E.DONE&&re._mode!=="ms-stream"&&re.push(null)}}).call(this)}).call(this,y("_process"),typeof _t!="undefined"?_t: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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.search.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.join.js"),y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.splice.js");var oe=y("punycode"),ie=y("./util");ve.parse=de,ve.resolve=Se,ve.resolveObject=De,ve.format=ge,ve.Url=ee;function ee(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var se=/^([a-z0-9.+-]+:)/i,E=/:[0-9]*$/,te=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,re=["<",">",'"',"`"," ","\r",`
`," "],le=["{","}","|","\\","^","`"].concat(re),ue=["'"].concat(le),ce=["%","/","?",";","#"].concat(ue),he=["/","?","#"],me=255,fe=/^[+a-z0-9A-Z_-]{0,63}$/,be=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ce={javascript:!0,"javascript:":!0},Te={javascript:!0,"javascript:":!0},Pe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ke=y("querystring");function de(_e,Ee,Oe){if(_e&&ie.isObject(_e)&&_e instanceof ee)return _e;var He=new ee;return He.parse(_e,Ee,Oe),He}ee.prototype.parse=function(_e,Ee,Oe){if(!ie.isString(_e))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(_e));var He=_e.indexOf("?"),Xe=He!==-1&&He<_e.indexOf("#")?"?":"#",et=_e.split(Xe),st=/\\/g;et[0]=et[0].replace(st,"/"),_e=et.join(Xe);var Le=_e;if(Le=Le.trim(),!Oe&&_e.split("#").length===1){var Ue=te.exec(Le);if(Ue)return this.path=Le,this.href=Le,this.pathname=Ue[1],Ue[2]?(this.search=Ue[2],Ee?this.query=ke.parse(this.search.substr(1)):this.query=this.search.substr(1)):Ee&&(this.search="",this.query={}),this}var rt=se.exec(Le);if(rt){rt=rt[0];var ot=rt.toLowerCase();this.protocol=ot,Le=Le.substr(rt.length)}if(Oe||rt||Le.match(/^\/\/[^@\/]+@[^@\/]+/)){var it=Le.substr(0,2)==="//";it&&!(rt&&Te[rt])&&(Le=Le.substr(2),this.slashes=!0)}if(!Te[rt]&&(it||rt&&!Pe[rt])){for(var Ye=-1,$e=0;$e<he.length;$e++){var Ke=Le.indexOf(he[$e]);Ke!==-1&&(Ye===-1||Ke<Ye)&&(Ye=Ke)}var ft,tt;Ye===-1?tt=Le.lastIndexOf("@"):tt=Le.lastIndexOf("@",Ye),tt!==-1&&(ft=Le.slice(0,tt),Le=Le.slice(tt+1),this.auth=decodeURIComponent(ft)),Ye=-1;for(var $e=0;$e<ce.length;$e++){var Ke=Le.indexOf(ce[$e]);Ke!==-1&&(Ye===-1||Ke<Ye)&&(Ye=Ke)}Ye===-1&&(Ye=Le.length),this.host=Le.slice(0,Ye),Le=Le.slice(Ye),this.parseHost(),this.hostname=this.hostname||"";var ut=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ut)for(var lt=this.hostname.split("."),$e=0,Ze=lt.length;$e<Ze;$e++){var Ne=lt[$e];if(Ne&&!Ne.match(fe)){for(var ze="",Me=0,Ge=Ne.length;Me<Ge;Me++)Ne.charCodeAt(Me)>127?ze+="x":ze+=Ne[Me];if(!ze.match(fe)){var ct=lt.slice(0,$e),mt=lt.slice($e+1),nt=Ne.match(be);nt&&(ct.push(nt[1]),mt.unshift(nt[2])),mt.length&&(Le="/"+mt.join(".")+Le),this.hostname=ct.join(".");break}}}this.hostname.length>me?this.hostname="":this.hostname=this.hostname.toLowerCase(),ut||(this.hostname=oe.toASCII(this.hostname));var Ae=this.port?":"+this.port:"",je=this.hostname||"";this.host=je+Ae,this.href+=this.host,ut&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Le[0]!=="/"&&(Le="/"+Le))}if(!Ce[ot])for(var $e=0,Ze=ue.length;$e<Ze;$e++){var We=ue[$e];if(Le.indexOf(We)!==-1){var at=encodeURIComponent(We);at===We&&(at=escape(We)),Le=Le.split(We).join(at)}}var Re=Le.indexOf("#");Re!==-1&&(this.hash=Le.substr(Re),Le=Le.slice(0,Re));var xe=Le.indexOf("?");if(xe!==-1?(this.search=Le.substr(xe),this.query=Le.substr(xe+1),Ee&&(this.query=ke.parse(this.query)),Le=Le.slice(0,xe)):Ee&&(this.search="",this.query={}),Le&&(this.pathname=Le),Pe[ot]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ae=this.pathname||"",ye=this.search||"";this.path=Ae+ye}return this.href=this.format(),this};function ge(_e){return ie.isString(_e)&&(_e=de(_e)),_e instanceof ee?_e.format():ee.prototype.format.call(_e)}ee.prototype.format=function(){var _e=this.auth||"";_e&&(_e=encodeURIComponent(_e),_e=_e.replace(/%3A/i,":"),_e+="@");var Ee=this.protocol||"",Oe=this.pathname||"",He=this.hash||"",Xe=!1,et="";this.host?Xe=_e+this.host:this.hostname&&(Xe=_e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Xe+=":"+this.port)),this.query&&ie.isObject(this.query)&&Object.keys(this.query).length&&(et=ke.stringify(this.query));var st=this.search||et&&"?"+et||"";return Ee&&Ee.substr(-1)!==":"&&(Ee+=":"),this.slashes||(!Ee||Pe[Ee])&&Xe!==!1?(Xe="//"+(Xe||""),Oe&&Oe.charAt(0)!=="/"&&(Oe="/"+Oe)):Xe||(Xe=""),He&&He.charAt(0)!=="#"&&(He="#"+He),st&&st.charAt(0)!=="?"&&(st="?"+st),Oe=Oe.replace(/[?#]/g,function(Le){return encodeURIComponent(Le)}),st=st.replace("#","%23"),Ee+Xe+Oe+st+He};function Se(_e,Ee){return de(_e,!1,!0).resolve(Ee)}ee.prototype.resolve=function(_e){return this.resolveObject(de(_e,!1,!0)).format()};function De(_e,Ee){return _e?de(_e,!1,!0).resolveObject(Ee):Ee}ee.prototype.resolveObject=function(_e){if(ie.isString(_e)){var Ee=new ee;Ee.parse(_e,!1,!0),_e=Ee}for(var Oe=new ee,He=Object.keys(this),Xe=0;Xe<He.length;Xe++){var et=He[Xe];Oe[et]=this[et]}if(Oe.hash=_e.hash,_e.href==="")return Oe.href=Oe.format(),Oe;if(_e.slashes&&!_e.protocol){for(var st=Object.keys(_e),Le=0;Le<st.length;Le++){var Ue=st[Le];Ue!=="protocol"&&(Oe[Ue]=_e[Ue])}return Pe[Oe.protocol]&&Oe.hostname&&!Oe.pathname&&(Oe.path=Oe.pathname="/"),Oe.href=Oe.format(),Oe}if(_e.protocol&&_e.protocol!==Oe.protocol){if(!Pe[_e.protocol]){for(var rt=Object.keys(_e),ot=0;ot<rt.length;ot++){var it=rt[ot];Oe[it]=_e[it]}return Oe.href=Oe.format(),Oe}if(Oe.protocol=_e.protocol,!_e.host&&!Te[_e.protocol]){for(var Ze=(_e.pathname||"").split("/");Ze.length&&!(_e.host=Ze.shift()););_e.host||(_e.host=""),_e.hostname||(_e.hostname=""),Ze[0]!==""&&Ze.unshift(""),Ze.length<2&&Ze.unshift(""),Oe.pathname=Ze.join("/")}else Oe.pathname=_e.pathname;if(Oe.search=_e.search,Oe.query=_e.query,Oe.host=_e.host||"",Oe.auth=_e.auth,Oe.hostname=_e.hostname||_e.host,Oe.port=_e.port,Oe.pathname||Oe.search){var Ye=Oe.pathname||"",$e=Oe.search||"";Oe.path=Ye+$e}return Oe.slashes=Oe.slashes||_e.slashes,Oe.href=Oe.format(),Oe}var Ke=Oe.pathname&&Oe.pathname.charAt(0)==="/",ft=_e.host||_e.pathname&&_e.pathname.charAt(0)==="/",tt=ft||Ke||Oe.host&&_e.pathname,ut=tt,lt=Oe.pathname&&Oe.pathname.split("/")||[],Ze=_e.pathname&&_e.pathname.split("/")||[],Ne=Oe.protocol&&!Pe[Oe.protocol];if(Ne&&(Oe.hostname="",Oe.port=null,Oe.host&&(lt[0]===""?lt[0]=Oe.host:lt.unshift(Oe.host)),Oe.host="",_e.protocol&&(_e.hostname=null,_e.port=null,_e.host&&(Ze[0]===""?Ze[0]=_e.host:Ze.unshift(_e.host)),_e.host=null),tt=tt&&(Ze[0]===""||lt[0]==="")),ft)Oe.host=_e.host||_e.host===""?_e.host:Oe.host,Oe.hostname=_e.hostname||_e.hostname===""?_e.hostname:Oe.hostname,Oe.search=_e.search,Oe.query=_e.query,lt=Ze;else if(Ze.length)lt||(lt=[]),lt.pop(),lt=lt.concat(Ze),Oe.search=_e.search,Oe.query=_e.query;else if(!ie.isNullOrUndefined(_e.search)){if(Ne){Oe.hostname=Oe.host=lt.shift();var ze=Oe.host&&Oe.host.indexOf("@")>0?Oe.host.split("@"):!1;ze&&(Oe.auth=ze.shift(),Oe.host=Oe.hostname=ze.shift())}return Oe.search=_e.search,Oe.query=_e.query,(!ie.isNull(Oe.pathname)||!ie.isNull(Oe.search))&&(Oe.path=(Oe.pathname?Oe.pathname:"")+(Oe.search?Oe.search:"")),Oe.href=Oe.format(),Oe}if(!lt.length)return Oe.pathname=null,Oe.search?Oe.path="/"+Oe.search:Oe.path=null,Oe.href=Oe.format(),Oe;for(var Me=lt.slice(-1)[0],Ge=(Oe.host||_e.host||lt.length>1)&&(Me==="."||Me==="..")||Me==="",ct=0,mt=lt.length;mt>=0;mt--)Me=lt[mt],Me==="."?lt.splice(mt,1):Me===".."?(lt.splice(mt,1),ct++):ct&&(lt.splice(mt,1),ct--);if(!tt&&!ut)for(;ct--;ct)lt.unshift("..");tt&&lt[0]!==""&&(!lt[0]||lt[0].charAt(0)!=="/")&&lt.unshift(""),Ge&&lt.join("/").substr(-1)!=="/"&&lt.push("");var nt=lt[0]===""||lt[0]&&lt[0].charAt(0)==="/";if(Ne){Oe.hostname=Oe.host=nt?"":lt.length?lt.shift():"";var ze=Oe.host&&Oe.host.indexOf("@")>0?Oe.host.split("@"):!1;ze&&(Oe.auth=ze.shift(),Oe.host=Oe.hostname=ze.shift())}return tt=tt||Oe.host&&lt.length,tt&&!nt&&lt.unshift(""),lt.length?Oe.pathname=lt.join("/"):(Oe.pathname=null,Oe.path=null),(!ie.isNull(Oe.pathname)||!ie.isNull(Oe.search))&&(Oe.path=(Oe.pathname?Oe.pathname:"")+(Oe.search?Oe.search:"")),Oe.auth=_e.auth||Oe.auth,Oe.slashes=Oe.slashes||_e.slashes,Oe.href=Oe.format(),Oe},ee.prototype.parseHost=function(){var _e=this.host,Ee=E.exec(_e);Ee&&(Ee=Ee[0],Ee!==":"&&(this.port=Ee.substr(1)),_e=_e.substr(0,_e.length-Ee.length)),_e&&(this.hostname=_e)}},{"./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,ve){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/helpers/typeof"));we.exports={isString:function(ie){return typeof ie=="string"},isObject:function(ie){return(0,z.default)(ie)==="object"&&ie!==null},isNull:function(ie){return ie===null},isNullOrUndefined:function(ie){return ie==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(y,we,ve){"use strict";y("core-js/modules/es.number.constructor.js"),ve.encodeURIComponent=function(x){try{return encodeURIComponent(x)}catch(z){return x}},ve.escape=y("escape-html"),ve.timestamp=function(z){if(z){var oe=z;return typeof oe=="string"&&(oe=Number(oe)),String(z).length===10&&(oe*=1e3),new Date(oe)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,we,ve){(function(x,z){(function(){"use strict";var oe=y("@babel/runtime/helpers/interopRequireDefault"),ie=oe(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.concat.js");var ee=y("util"),se=y("url"),E=y("http"),te=y("https"),re=y("debug")("urllib"),le=y("humanize-ms"),ue=0,ce=Math.pow(2,31)-10,he=/^https?:\/\//i;function me(Te,Pe){return Te===void 0?Pe:Te}function fe(Te){return Te?Te.split(";")[0].trim().toLowerCase():""}function be(Te,Pe){return function(ke,de,ge){if(ke)return Pe(ke);Te({data:de,status:ge.statusCode,headers:ge.headers,res:ge})}}ve.TIMEOUTS=[le("300s"),le("300s")];var Ce=["json","text"];ve.request=function(Pe,ke,de){return arguments.length===2&&typeof ke=="function"&&(de=ke,ke=null),typeof de=="function"?ve.requestWithCallback(Pe,ke,de):new Promise(function(ge,Se){ve.requestWithCallback(Pe,ke,be(ge,Se))})},ve.requestWithCallback=function(Pe,ke,de){if(!Pe||typeof Pe!="string"&&(0,ie.default)(Pe)!=="object"){var ge=ee.format("expect request url to be a string or a http request options, but got %j",Pe);throw new Error(ge)}arguments.length===2&&typeof ke=="function"&&(de=ke,ke=null),ke=ke||{},ue>=ce&&(ue=0);var Se=++ue;ke.requestUrls=ke.requestUrls||[];var De={requestId:Se,url:Pe,args:ke,ctx:ke.ctx};ke.emitter&&ke.emitter.emit("request",De),ke.timeout=ke.timeout||ve.TIMEOUTS,ke.maxRedirects=ke.maxRedirects||10,ke.streaming=ke.streaming||ke.customResponse;var _e=Date.now(),Ee;typeof Pe=="string"?(he.test(Pe)||(Pe="https://"+Pe),Ee=se.parse(Pe)):Ee=Pe;var Oe=(ke.type||ke.method||Ee.method||"GET").toUpperCase(),He=Ee.port||80,Xe=E,et=me(ke.agent,ve.agent),st=ke.fixJSONCtlChars;Ee.protocol==="https:"&&(Xe=te,et=me(ke.httpsAgent,ve.httpsAgent),Ee.port||(He=443));var Le={host:Ee.hostname||Ee.host||"localhost",path:Ee.path||"/",method:Oe,port:He,agent:et,headers:ke.headers||{},lookup:ke.lookup};Array.isArray(ke.timeout)?Le.requestTimeout=ke.timeout[ke.timeout.length-1]:typeof ke.timeout!="undefined"&&(Le.requestTimeout=ke.timeout);var Ue=ke.auth||Ee.auth;Ue&&(Le.auth=Ue);var rt=ke.content||ke.data,ot=Oe==="GET"||Oe==="HEAD"||ke.dataAsQueryString;if(!ke.content&&rt&&!(typeof rt=="string"||z.isBuffer(rt)))if(ot)rt=ke.nestedQuerystring?qs.stringify(rt):querystring.stringify(rt);else{var it=Le.headers["Content-Type"]||Le.headers["content-type"];it||(ke.contentType==="json"?it="application/json":it="application/x-www-form-urlencoded",Le.headers["Content-Type"]=it),fe(it)==="application/json"?rt=JSON.stringify(rt):rt=ke.nestedQuerystring?qs.stringify(rt):querystring.stringify(rt)}ot&&rt&&(Le.path+=(Ee.query?"&":"?")+rt,rt=null);var Ye=0;if(rt){var $e=rt.length;z.isBuffer(rt)||($e=z.byteLength(rt)),Ye=Le.headers["Content-Length"]=$e}ke.dataType==="json"&&(Le.headers.Accept="application/json"),typeof ke.beforeRequest=="function"&&ke.beforeRequest(Le);var Ke=null,ft=null,tt=null,ut=!1,lt=!1,Ze=0,Ne=-1,ze=!1,Me="",Ge="",ct=null;ke.timing&&(ct={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function mt(){Ke&&(clearTimeout(Ke),Ke=null)}function nt(){ft&&(clearTimeout(ft),ft=null)}function Ae(yt,xt,bt){if(nt(),!de){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),Se,x.pid,Le.method,Pe),yt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),Se,x.pid,yt.name,yt.message,yt.stack);return}var ht=de;de=null;var kt={};bt&&(Ne=bt.statusCode,kt=bt.headers);var Tt=Date.now()-_e;ct&&(ct.contentDownload=Tt),re("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Tt,Ze,Ne,Le.method,Le.host,Le.path,lt,ct);var Pt={status:Ne,statusCode:Ne,headers:kt,size:Ze,aborted:ze,rt:Tt,keepAliveSocket:lt,data:xt,requestUrls:ke.requestUrls,timing:ct,remoteAddress:Me,remotePort:Ge};if(yt){var Vt="";et&&typeof et.getCurrentStatus=="function"&&(Vt=", agent status: "+JSON.stringify(et.getCurrentStatus())),yt.message+=", "+Le.method+" "+Pe+" "+Ne+" (connected: "+ut+", keepalive socket: "+lt+Vt+`)
headers: `+JSON.stringify(kt),yt.data=xt,yt.path=Le.path,yt.status=Ne,yt.headers=kt,yt.res=Pt}ht(yt,xt,ke.streaming?bt:Pt),ke.emitter&&(De.url=Pe,De.socket=Ie&&Ie.connection,De.options=Le,De.size=Ye,ke.emitter.emit("response",{requestId:Se,error:yt,ctx:ke.ctx,req:De,res:Pt}))}function je(yt){var xt=null;if(ke.followRedirect&&statuses.redirect[yt.statusCode]){ke._followRedirectCount=(ke._followRedirectCount||0)+1;var bt=yt.headers.location;if(!bt)xt=new Error("Got statusCode "+yt.statusCode+" but cannot resolve next location from headers"),xt.name="FollowRedirectError";else if(ke._followRedirectCount>ke.maxRedirects)xt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Pe),xt.name="MaxRedirectError";else{var ht=ke.formatRedirectUrl?ke.formatRedirectUrl(Pe,bt):se.resolve(Pe,bt);re("Request#%d %s: `redirected` from %s to %s",Se,Le.path,Pe,ht),nt(),ke.headers&&ke.headers.Host&&he.test(bt)&&(ke.headers.Host=null);var kt=de;return de=null,ve.requestWithCallback(ht,ke,kt),{redirect:!0,error:null}}}return{redirect:!1,error:xt}}ke.gzip&&!Le.headers["Accept-Encoding"]&&!Le.headers["accept-encoding"]&&(Le.headers["Accept-Encoding"]="gzip");function We(yt,xt,bt){var ht=yt.headers["content-encoding"];return bt(null,xt,ht)}var at=ke.writeStream;re("Request#%d %s %s with headers %j, options.path: %s",Se,Oe,Pe,Le.headers,Le.path),ke.requestUrls.push(Pe);function Re(yt){if(ct&&(ct.waiting=Date.now()-_e),re("Request#%d %s `req response` event emit: status %d, headers: %j",Se,Pe,yt.statusCode,yt.headers),ke.streaming){var xt=je(yt);if(xt.redirect){yt.resume();return}return xt.error?(yt.resume(),Ae(xt.error,null,yt)):Ae(null,null,yt)}if(yt.on("close",function(){re("Request#%d %s: `res close` event emit, total size %d",Se,Pe,Ze)}),yt.on("error",function(){re("Request#%d %s: `res error` event emit, total size %d",Se,Pe,Ze)}),yt.on("aborted",function(){ze=!0,re("Request#%d %s: `res aborted` event emit, total size %d",Se,Pe,Ze)}),at){var bt=je(yt);if(bt.redirect){yt.resume();return}return bt.error?(yt.resume(),at.end(),Ae(bt.error,null,yt)):(ke.consumeWriteStream===!1?yt.on("end",Ae.bind(null,null,null,yt)):at.on("close",function(){re("Request#%d %s: writeStream close event emitted",Se,Pe),Ae(tt||null,null,yt)}),yt.pipe(at))}var ht=[];yt.on("data",function(kt){re("Request#%d %s: `res data` event emit, size %d",Se,Pe,kt.length),Ze+=kt.length,ht.push(kt)}),yt.on("end",function(){var kt=z.concat(ht,Ze);if(re("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",Se,Pe,Ze,yt._dumped),tt)return Ae(tt,kt,yt);var Tt=je(yt);if(Tt.error)return Ae(Tt.error,kt,yt);Tt.redirect||We(yt,kt,function(Pt,Vt,vr){if(Pt)return Ae(Pt,kt,yt);if(!vr&&Ce.indexOf(ke.dataType)>=0){try{Vt=decodeBodyByCharset(Vt,yt)}catch(Cr){return re("decodeBodyByCharset error: %s",Cr),Ae(null,Vt,yt)}if(ke.dataType==="json")if(Ze===0)Vt=null;else{var Yt=parseJSON(Vt,st);Yt.error?Pt=Yt.error:Vt=Yt.data}}ze&&re("Request#%d %s: Remote socket was terminated before `response.end()` was called",Se,Pe),Ae(Pt,Vt,yt)})})}var xe,ye;Array.isArray(ke.timeout)?(xe=le(ke.timeout[0]),ye=le(ke.timeout[1])):xe=ye=le(ke.timeout),re("ConnectTimeout: %d, ResponseTimeout: %d",xe,ye);function Fe(){re("Connect timer ticking, timeout: %d",xe),Ke=setTimeout(function(){Ke=null,Ne===-1&&(Ne=-2);var yt="Connect timeout for "+xe+"ms",xt="ConnectionTimeoutError";Ie.socket||(xt="SocketAssignTimeoutError",yt+=", working sockets is full"),tt=new Error(yt),tt.name=xt,tt.requestId=Se,re("ConnectTimeout: Request#%d %s %s: %s, connected: %s",Se,Pe,tt.name,yt,ut),vt()},xe)}function Qe(){re("Response timer ticking, timeout: %d",ye),ft=setTimeout(function(){ft=null;var yt="Response timeout for "+ye+"ms",xt="ResponseTimeoutError";tt=new Error(yt),tt.name=xt,tt.requestId=Se,re("ResponseTimeout: Request#%d %s %s: %s, connected: %s",Se,Pe,tt.name,yt,ut),vt()},ye)}var Ie;Le.mode=ke.mode?ke.mode:"";try{Ie=Xe.request(Le,Re)}catch(yt){return Ae(yt)}typeof window=="undefined"?Fe():Ie.on("requestTimeout",function(){Ne===-1&&(Ne=-2);var yt="Connect timeout for "+xe+"ms",xt="ConnectionTimeoutError";tt=new Error(yt),tt.name=xt,tt.requestId=Se,vt()});function vt(){re("Request#%d %s abort, connected: %s",Se,Pe,ut),Ie.socket||(tt.noSocket=!0,Ae(tt)),Ie.abort()}return ct&&Ie.on("finish",function(){ct.requestSent=Date.now()-_e}),Ie.once("socket",function(yt){ct&&(ct.queuing=Date.now()-_e);var xt=yt.readyState;if(xt==="opening"){yt.once("lookup",function(bt,ht,kt){re("Request#%d %s lookup: %s, %s, %s",Se,Pe,bt,ht,kt),ct&&(ct.dnslookup=Date.now()-_e),ht&&(Me=ht)}),yt.once("connect",function(){ct&&(ct.connected=Date.now()-_e),mt(),Qe(),re("Request#%d %s new socket connected",Se,Pe),ut=!0,Me||(Me=yt.remoteAddress),Ge=yt.remotePort});return}re("Request#%d %s reuse socket connected, readyState: %s",Se,Pe,xt),ut=!0,lt=!0,Me||(Me=yt.remoteAddress),Ge=yt.remotePort,mt(),Qe()}),Ie.on("error",function(yt){(yt.name==="Error"||yt.name==="TypeError")&&(yt.name=ut?"ResponseError":"RequestError"),yt.message+=' (req "error")',re("Request#%d %s `req error` event emit, %s: %s",Se,Pe,yt.name,yt.message),Ae(tt||yt)}),at&&at.once("error",function(yt){yt.message+=' (writeStream "error")',tt=yt,re("Request#%d %s `writeStream error` event emit, %s: %s",Se,Pe,yt.name,yt.message),vt()}),ke.stream?(ke.stream.pipe(Ie),ke.stream.once("error",function(yt){yt.message+=' (stream "error")',tt=yt,re("Request#%d %s `readStream error` event emit, %s: %s",Se,Pe,yt.name,yt.message),vt()})):Ie.end(rt),Ie.requestId=Se,Ie}}).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(Kt,_t,Ve){(function(Je){Je(Ve(89780))})(function(Je){Je.defineOption("placeholder","",function(oe,ie,ee){var se=ee&&ee!=Je.Init;if(ie&&!se)oe.on("blur",ve),oe.on("change",x),oe.on("swapDoc",x),Je.on(oe.getInputField(),"compositionupdate",oe.state.placeholderCompose=function(){we(oe)}),x(oe);else if(!ie&&se){oe.off("blur",ve),oe.off("change",x),oe.off("swapDoc",x),Je.off(oe.getInputField(),"compositionupdate",oe.state.placeholderCompose),wt(oe);var E=oe.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}ie&&!oe.hasFocus()&&ve(oe)});function wt(oe){oe.state.placeholder&&(oe.state.placeholder.parentNode.removeChild(oe.state.placeholder),oe.state.placeholder=null)}function y(oe){wt(oe);var ie=oe.state.placeholder=document.createElement("pre");ie.style.cssText="height: 0; overflow: visible",ie.style.direction=oe.getOption("direction"),ie.className="CodeMirror-placeholder CodeMirror-line-like";var ee=oe.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),ie.appendChild(ee),oe.display.lineSpace.insertBefore(ie,oe.display.lineSpace.firstChild)}function we(oe){setTimeout(function(){var ie=!1,ee=oe.getInputField();ee.nodeName=="TEXTAREA"?ie=!ee.value:oe.lineCount()==1&&(ie=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),ie?y(oe):wt(oe)},20)}function ve(oe){z(oe)&&y(oe)}function x(oe){var ie=oe.getWrapperElement(),ee=z(oe);ie.className=ie.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?y(oe):wt(oe)}function z(oe){return oe.lineCount()===1&&oe.getLine(0)===""}})},25717:function(Kt,_t,Ve){(function(Je){Je(Ve(89780))})(function(Je){var wt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},y=Je.Pos;Je.defineOption("autoCloseBrackets",!1,function(le,ue,ce){ce&&ce!=Je.Init&&(le.removeKeyMap(ve),le.state.closeBrackets=null),ue&&(x(we(ue,"pairs")),le.state.closeBrackets=ue,le.addKeyMap(ve))});function we(le,ue){return ue=="pairs"&&typeof le=="string"?le:typeof le=="object"&&le[ue]!=null?le[ue]:wt[ue]}var ve={Backspace:ie,Enter:ee};function x(le){for(var ue=0;ue<le.length;ue++){var ce=le.charAt(ue),he="'"+ce+"'";ve[he]||(ve[he]=z(ce))}}x(wt.pairs+"`");function z(le){return function(ue){return E(ue,le)}}function oe(le){var ue=le.state.closeBrackets;if(!ue||ue.override)return ue;var ce=le.getModeAt(le.getCursor());return ce.closeBrackets||ue}function ie(le){var ue=oe(le);if(!ue||le.getOption("disableInput"))return Je.Pass;for(var ce=we(ue,"pairs"),he=le.listSelections(),me=0;me<he.length;me++){if(!he[me].empty())return Je.Pass;var fe=te(le,he[me].head);if(!fe||ce.indexOf(fe)%2!=0)return Je.Pass}for(var me=he.length-1;me>=0;me--){var be=he[me].head;le.replaceRange("",y(be.line,be.ch-1),y(be.line,be.ch+1),"+delete")}}function ee(le){var ue=oe(le),ce=ue&&we(ue,"explode");if(!ce||le.getOption("disableInput"))return Je.Pass;for(var he=le.listSelections(),me=0;me<he.length;me++){if(!he[me].empty())return Je.Pass;var fe=te(le,he[me].head);if(!fe||ce.indexOf(fe)%2!=0)return Je.Pass}le.operation(function(){var be=le.lineSeparator()||`
`;le.replaceSelection(be+be,null),le.execCommand("goCharLeft"),he=le.listSelections();for(var Ce=0;Ce<he.length;Ce++){var Te=he[Ce].head.line;le.indentLine(Te,null,!0),le.indentLine(Te+1,null,!0)}})}function se(le){var ue=Je.cmpPos(le.anchor,le.head)>0;return{anchor:new y(le.anchor.line,le.anchor.ch+(ue?-1:1)),head:new y(le.head.line,le.head.ch+(ue?1:-1))}}function E(le,ue){var ce=oe(le);if(!ce||le.getOption("disableInput"))return Je.Pass;var he=we(ce,"pairs"),me=he.indexOf(ue);if(me==-1)return Je.Pass;for(var fe=we(ce,"closeBefore"),be=we(ce,"triples"),Ce=he.charAt(me+1)==ue,Te=le.listSelections(),Pe=me%2==0,ke,de=0;de<Te.length;de++){var ge=Te[de],Se=ge.head,De,_e=le.getRange(Se,y(Se.line,Se.ch+1));if(Pe&&!ge.empty())De="surround";else if((Ce||!Pe)&&_e==ue)Ce&&re(le,Se)?De="both":be.indexOf(ue)>=0&&le.getRange(Se,y(Se.line,Se.ch+3))==ue+ue+ue?De="skipThree":De="skip";else if(Ce&&Se.ch>1&&be.indexOf(ue)>=0&&le.getRange(y(Se.line,Se.ch-2),Se)==ue+ue){if(Se.ch>2&&/\bstring/.test(le.getTokenTypeAt(y(Se.line,Se.ch-2))))return Je.Pass;De="addFour"}else if(Ce){var Ee=Se.ch==0?" ":le.getRange(y(Se.line,Se.ch-1),Se);if(!Je.isWordChar(_e)&&Ee!=ue&&!Je.isWordChar(Ee))De="both";else return Je.Pass}else if(Pe&&(_e.length===0||/\s/.test(_e)||fe.indexOf(_e)>-1))De="both";else return Je.Pass;if(!ke)ke=De;else if(ke!=De)return Je.Pass}var Oe=me%2?he.charAt(me-1):ue,He=me%2?ue:he.charAt(me+1);le.operation(function(){if(ke=="skip")le.execCommand("goCharRight");else if(ke=="skipThree")for(var Xe=0;Xe<3;Xe++)le.execCommand("goCharRight");else if(ke=="surround"){for(var et=le.getSelections(),Xe=0;Xe<et.length;Xe++)et[Xe]=Oe+et[Xe]+He;le.replaceSelections(et,"around"),et=le.listSelections().slice();for(var Xe=0;Xe<et.length;Xe++)et[Xe]=se(et[Xe]);le.setSelections(et)}else ke=="both"?(le.replaceSelection(Oe+He,null),le.triggerElectric(Oe+He),le.execCommand("goCharLeft")):ke=="addFour"&&(le.replaceSelection(Oe+Oe+Oe+Oe,"before"),le.execCommand("goCharRight"))})}function te(le,ue){var ce=le.getRange(y(ue.line,ue.ch-1),y(ue.line,ue.ch+1));return ce.length==2?ce:null}function re(le,ue){var ce=le.getTokenAt(y(ue.line,ue.ch+1));return/\bstring/.test(ce.type)&&ce.start==ue.ch&&(ue.ch==0||!/\bstring/.test(le.getTokenTypeAt(ue)))}})},6313:function(Kt,_t,Ve){(function(Je){Je(Ve(89780),Ve(32855))})(function(Je){Je.defineOption("autoCloseTags",!1,function(ie,ee,se){if(se!=Je.Init&&se&&ie.removeKeyMap("autoCloseTags"),!!ee){var E={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(E["'/'"]=function(te){return x(te)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(E["'>'"]=function(te){return we(te)}),ie.addKeyMap(E)}});var wt=["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(ie){if(ie.getOption("disableInput"))return Je.Pass;for(var ee=ie.listSelections(),se=[],E=ie.getOption("autoCloseTags"),te=0;te<ee.length;te++){if(!ee[te].empty())return Je.Pass;var re=ee[te].head,le=ie.getTokenAt(re),ue=Je.innerMode(ie.getMode(),le.state),ce=ue.state,he=ue.mode.xmlCurrentTag&&ue.mode.xmlCurrentTag(ce),me=he&&he.name;if(!me)return Je.Pass;var fe=ue.mode.configuration=="html",be=typeof E=="object"&&E.dontCloseTags||fe&&wt,Ce=typeof E=="object"&&E.indentTags||fe&&y;le.end>re.ch&&(me=me.slice(0,me.length-le.end+re.ch));var Te=me.toLowerCase();if(!me||le.type=="string"&&(le.end!=re.ch||!/[\"\']/.test(le.string.charAt(le.string.length-1))||le.string.length==1)||le.type=="tag"&&he.close||le.string.indexOf("/")==re.ch-le.start-1||be&&z(be,Te)>-1||oe(ie,ue.mode.xmlCurrentContext&&ue.mode.xmlCurrentContext(ce)||[],me,re,!0))return Je.Pass;var Pe=typeof E=="object"&&E.emptyTags;if(Pe&&z(Pe,me)>-1){se[te]={text:"/>",newPos:Je.Pos(re.line,re.ch+2)};continue}var ke=Ce&&z(Ce,Te)>-1;se[te]={indent:ke,text:">"+(ke?`
`:"")+"</"+me+">",newPos:ke?Je.Pos(re.line+1,0):Je.Pos(re.line,re.ch+1)}}for(var de=typeof E=="object"&&E.dontIndentOnAutoClose,te=ee.length-1;te>=0;te--){var ge=se[te];ie.replaceRange(ge.text,ee[te].head,ee[te].anchor,"+insert");var Se=ie.listSelections().slice(0);Se[te]={head:ge.newPos,anchor:ge.newPos},ie.setSelections(Se),!de&&ge.indent&&(ie.indentLine(ge.newPos.line,null,!0),ie.indentLine(ge.newPos.line+1,null,!0))}}function ve(ie,ee){for(var se=ie.listSelections(),E=[],te=ee?"/":"</",re=ie.getOption("autoCloseTags"),le=typeof re=="object"&&re.dontIndentOnSlash,ue=0;ue<se.length;ue++){if(!se[ue].empty())return Je.Pass;var ce=se[ue].head,he=ie.getTokenAt(ce),me=Je.innerMode(ie.getMode(),he.state),fe=me.state;if(ee&&(he.type=="string"||he.string.charAt(0)!="<"||he.start!=ce.ch-1))return Je.Pass;var be,Ce=me.mode.name!="xml"&&ie.getMode().name=="htmlmixed";if(Ce&&me.mode.name=="javascript")be=te+"script";else if(Ce&&me.mode.name=="css")be=te+"style";else{var Te=me.mode.xmlCurrentContext&&me.mode.xmlCurrentContext(fe);if(!Te||Te.length&&oe(ie,Te,Te[Te.length-1],ce))return Je.Pass;be=te+Te[Te.length-1]}ie.getLine(ce.line).charAt(he.end)!=">"&&(be+=">"),E[ue]=be}if(ie.replaceSelections(E),se=ie.listSelections(),!le)for(var ue=0;ue<se.length;ue++)(ue==se.length-1||se[ue].head.line<se[ue+1].head.line)&&ie.indentLine(se[ue].head.line)}function x(ie){return ie.getOption("disableInput")?Je.Pass:ve(ie,!0)}Je.commands.closeTag=function(ie){return ve(ie)};function z(ie,ee){if(ie.indexOf)return ie.indexOf(ee);for(var se=0,E=ie.length;se<E;++se)if(ie[se]==ee)return se;return-1}function oe(ie,ee,se,E,te){if(!Je.scanForClosingTag)return!1;var re=Math.min(ie.lastLine()+1,E.line+500),le=Je.scanForClosingTag(ie,E,null,re);if(!le||le.tag!=se)return!1;for(var ue=te?1:0,ce=ee.length-1;ce>=0&&ee[ce]==se;ce--)++ue;E=le.to;for(var ce=1;ce<ue;ce++){var he=Je.scanForClosingTag(ie,E,null,re);if(!he||he.tag!=se)return!1;E=he.to}return!0}})},32855:function(Kt,_t,Ve){(function(Je){Je(Ve(89780))})(function(Je){"use strict";var wt=Je.Pos;function y(ce,he){return ce.line-he.line||ce.ch-he.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",ve=we+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+we+"]["+ve+"]*)","g");function z(ce,he,me,fe){this.line=he,this.ch=me,this.cm=ce,this.text=ce.getLine(he),this.min=fe?Math.max(fe.from,ce.firstLine()):ce.firstLine(),this.max=fe?Math.min(fe.to-1,ce.lastLine()):ce.lastLine()}function oe(ce,he){var me=ce.cm.getTokenTypeAt(wt(ce.line,he));return me&&/\btag\b/.test(me)}function ie(ce){if(!(ce.line>=ce.max))return ce.ch=0,ce.text=ce.cm.getLine(++ce.line),!0}function ee(ce){if(!(ce.line<=ce.min))return ce.text=ce.cm.getLine(--ce.line),ce.ch=ce.text.length,!0}function se(ce){for(;;){var he=ce.text.indexOf(">",ce.ch);if(he==-1){if(ie(ce))continue;return}if(!oe(ce,he+1)){ce.ch=he+1;continue}var me=ce.text.lastIndexOf("/",he),fe=me>-1&&!/\S/.test(ce.text.slice(me+1,he));return ce.ch=he+1,fe?"selfClose":"regular"}}function E(ce){for(;;){var he=ce.ch?ce.text.lastIndexOf("<",ce.ch-1):-1;if(he==-1){if(ee(ce))continue;return}if(!oe(ce,he+1)){ce.ch=he;continue}x.lastIndex=he,ce.ch=he;var me=x.exec(ce.text);if(me&&me.index==he)return me}}function te(ce){for(;;){x.lastIndex=ce.ch;var he=x.exec(ce.text);if(!he){if(ie(ce))continue;return}if(!oe(ce,he.index+1)){ce.ch=he.index+1;continue}return ce.ch=he.index+he[0].length,he}}function re(ce){for(;;){var he=ce.ch?ce.text.lastIndexOf(">",ce.ch-1):-1;if(he==-1){if(ee(ce))continue;return}if(!oe(ce,he+1)){ce.ch=he;continue}var me=ce.text.lastIndexOf("/",he),fe=me>-1&&!/\S/.test(ce.text.slice(me+1,he));return ce.ch=he+1,fe?"selfClose":"regular"}}function le(ce,he){for(var me=[];;){var fe=te(ce),be,Ce=ce.line,Te=ce.ch-(fe?fe[0].length:0);if(!fe||!(be=se(ce)))return;if(be!="selfClose")if(fe[1]){for(var Pe=me.length-1;Pe>=0;--Pe)if(me[Pe]==fe[2]){me.length=Pe;break}if(Pe<0&&(!he||he==fe[2]))return{tag:fe[2],from:wt(Ce,Te),to:wt(ce.line,ce.ch)}}else me.push(fe[2])}}function ue(ce,he){for(var me=[];;){var fe=re(ce);if(!fe)return;if(fe=="selfClose"){E(ce);continue}var be=ce.line,Ce=ce.ch,Te=E(ce);if(!Te)return;if(Te[1])me.push(Te[2]);else{for(var Pe=me.length-1;Pe>=0;--Pe)if(me[Pe]==Te[2]){me.length=Pe;break}if(Pe<0&&(!he||he==Te[2]))return{tag:Te[2],from:wt(ce.line,ce.ch),to:wt(be,Ce)}}}}Je.registerHelper("fold","xml",function(ce,he){for(var me=new z(ce,he.line,0);;){var fe=te(me);if(!fe||me.line!=he.line)return;var be=se(me);if(!be)return;if(!fe[1]&&be!="selfClose"){var Ce=wt(me.line,me.ch),Te=le(me,fe[2]);return Te&&y(Te.from,Ce)>0?{from:Ce,to:Te.from}:null}}}),Je.findMatchingTag=function(ce,he,me){var fe=new z(ce,he.line,he.ch,me);if(!(fe.text.indexOf(">")==-1&&fe.text.indexOf("<")==-1)){var be=se(fe),Ce=be&&wt(fe.line,fe.ch),Te=be&&E(fe);if(!(!be||!Te||y(fe,he)>0)){var Pe={from:wt(fe.line,fe.ch),to:Ce,tag:Te[2]};return be=="selfClose"?{open:Pe,close:null,at:"open"}:Te[1]?{open:ue(fe,Te[2]),close:Pe,at:"close"}:(fe=new z(ce,Ce.line,Ce.ch,me),{open:Pe,close:le(fe,Te[2]),at:"open"})}}},Je.findEnclosingTag=function(ce,he,me,fe){for(var be=new z(ce,he.line,he.ch,me);;){var Ce=ue(be,fe);if(!Ce)break;var Te=new z(ce,he.line,he.ch,me),Pe=le(Te,Ce.tag);if(Pe)return{open:Ce,close:Pe}}},Je.scanForClosingTag=function(ce,he,me,fe){var be=new z(ce,he.line,he.ch,fe?{from:0,to:fe}:null);return le(be,me)}})},89780:function(Kt){(function(_t,Ve){Kt.exports=Ve()})(this,function(){"use strict";var _t=navigator.userAgent,Ve=navigator.platform,Je=/gecko\/\d/i.test(_t),wt=/MSIE \d/.test(_t),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(_t),we=/Edge\/(\d+)/.exec(_t),ve=wt||y||we,x=ve&&(wt?document.documentMode||6:+(we||y)[1]),z=!we&&/WebKit\//.test(_t),oe=z&&/Qt\/\d+\.\d+/.test(_t),ie=!we&&/Chrome\//.test(_t),ee=/Opera\//.test(_t),se=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(_t),te=/PhantomJS/.test(_t),re=!we&&/AppleWebKit/.test(_t)&&/Mobile\/\w+/.test(_t),le=/Android/.test(_t),ue=re||le||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(_t),ce=re||/Mac/.test(Ve),he=/\bCrOS\b/.test(_t),me=/win/i.test(Ve),fe=ee&&_t.match(/Version\/(\d*\.\d*)/);fe&&(fe=Number(fe[1])),fe&&fe>=15&&(ee=!1,z=!0);var be=ce&&(oe||ee&&(fe==null||fe<12.11)),Ce=Je||ve&&x>=9;function Te(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Pe=function(a,b){var ae=a.className,ne=Te(b).exec(ae);if(ne){var pe=ae.slice(ne.index+ne[0].length);a.className=ae.slice(0,ne.index)+(pe?ne[1]+pe:"")}};function ke(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function de(a,b){return ke(a).appendChild(b)}function ge(a,b,ae,ne){var pe=document.createElement(a);if(ae&&(pe.className=ae),ne&&(pe.style.cssText=ne),typeof b=="string")pe.appendChild(document.createTextNode(b));else if(b)for(var Be=0;Be<b.length;++Be)pe.appendChild(b[Be]);return pe}function Se(a,b,ae,ne){var pe=ge(a,b,ae,ne);return pe.setAttribute("role","presentation"),pe}var De;document.createRange?De=function(a,b,ae,ne){var pe=document.createRange();return pe.setEnd(ne||a,ae),pe.setStart(a,b),pe}:De=function(a,b,ae){var ne=document.body.createTextRange();try{ne.moveToElementText(a.parentNode)}catch(pe){return ne}return ne.collapse(!0),ne.moveEnd("character",ae),ne.moveStart("character",b),ne};function _e(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 Ee(){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 Oe(a,b){var ae=a.className;Te(b).test(ae)||(a.className+=(ae?" ":"")+b)}function He(a,b){for(var ae=a.split(" "),ne=0;ne<ae.length;ne++)ae[ne]&&!Te(ae[ne]).test(b)&&(b+=" "+ae[ne]);return b}var Xe=function(a){a.select()};re?Xe=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:ve&&(Xe=function(a){try{a.select()}catch(b){}});function et(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function st(a,b,ae){b||(b={});for(var ne in a)a.hasOwnProperty(ne)&&(ae!==!1||!b.hasOwnProperty(ne))&&(b[ne]=a[ne]);return b}function Le(a,b,ae,ne,pe){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Be=ne||0,qe=pe||0;;){var dt=a.indexOf(" ",Be);if(dt<0||dt>=b)return qe+(b-Be);qe+=dt-Be,qe+=ae-qe%ae,Be=dt+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=et(this.onTimeout,this)};Ue.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},Ue.prototype.set=function(a,b){this.f=b;var ae=+new Date+a;(!this.id||ae<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ae)};function rt(a,b){for(var ae=0;ae<a.length;++ae)if(a[ae]==b)return ae;return-1}var ot=50,it={toString:function(){return"CodeMirror.Pass"}},Ye={scroll:!1},$e={origin:"*mouse"},Ke={origin:"+move"};function ft(a,b,ae){for(var ne=0,pe=0;;){var Be=a.indexOf(" ",ne);Be==-1&&(Be=a.length);var qe=Be-ne;if(Be==a.length||pe+qe>=b)return ne+Math.min(qe,b-pe);if(pe+=Be-ne,pe+=ae-pe%ae,ne=Be+1,pe>=b)return ne}}var tt=[""];function ut(a){for(;tt.length<=a;)tt.push(lt(tt)+" ");return tt[a]}function lt(a){return a[a.length-1]}function Ze(a,b){for(var ae=[],ne=0;ne<a.length;ne++)ae[ne]=b(a[ne],ne);return ae}function Ne(a,b,ae){for(var ne=0,pe=ae(b);ne<a.length&&ae(a[ne])<=pe;)ne++;a.splice(ne,0,b)}function ze(){}function Me(a,b){var ae;return Object.create?ae=Object.create(a):(ze.prototype=a,ae=new ze),b&&st(b,ae),ae}var Ge=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ct(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||Ge.test(a))}function mt(a,b){return b?b.source.indexOf("\\w")>-1&&ct(a)?!0:b.test(a):ct(a)}function nt(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var Ae=/[\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 je(a){return a.charCodeAt(0)>=768&&Ae.test(a)}function We(a,b,ae){for(;(ae<0?b>0:b<a.length)&&je(a.charAt(b));)b+=ae;return b}function at(a,b,ae){for(var ne=b>ae?-1:1;;){if(b==ae)return b;var pe=(b+ae)/2,Be=ne<0?Math.ceil(pe):Math.floor(pe);if(Be==b)return a(Be)?b:ae;a(Be)?ae=Be:b=Be+ne}}function Re(a,b,ae,ne){if(!a)return ne(b,ae,"ltr",0);for(var pe=!1,Be=0;Be<a.length;++Be){var qe=a[Be];(qe.from<ae&&qe.to>b||b==ae&&qe.to==b)&&(ne(Math.max(qe.from,b),Math.min(qe.to,ae),qe.level==1?"rtl":"ltr",Be),pe=!0)}pe||ne(b,ae,"ltr")}var xe=null;function ye(a,b,ae){var ne;xe=null;for(var pe=0;pe<a.length;++pe){var Be=a[pe];if(Be.from<b&&Be.to>b)return pe;Be.to==b&&(Be.from!=Be.to&&ae=="before"?ne=pe:xe=pe),Be.from==b&&(Be.from!=Be.to&&ae!="before"?ne=pe:xe=pe)}return ne!=null?ne:xe}var Fe=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ae(gt){return gt<=247?a.charAt(gt):1424<=gt&&gt<=1524?"R":1536<=gt&&gt<=1785?b.charAt(gt-1536):1774<=gt&&gt<=2220?"r":8192<=gt&&gt<=8203?"w":gt==8204?"b":"L"}var ne=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Be=/[LRr]/,qe=/[Lb1n]/,dt=/[1n]/;function pt(gt,Et,At){this.level=gt,this.from=Et,this.to=At}return function(gt,Et){var At=Et=="ltr"?"L":"R";if(gt.length==0||Et=="ltr"&&!ne.test(gt))return!1;for(var Ut=gt.length,It=[],cr=0;cr<Ut;++cr)It.push(ae(gt.charCodeAt(cr)));for(var yr=0,Or=At;yr<Ut;++yr){var Lr=It[yr];Lr=="m"?It[yr]=Or:Or=Lr}for(var $r=0,Br=At;$r<Ut;++$r){var an=It[$r];an=="1"&&Br=="r"?It[$r]="n":Be.test(an)&&(Br=an,an=="r"&&(It[$r]="R"))}for(var Dn=1,bn=It[0];Dn<Ut-1;++Dn){var Kn=It[Dn];Kn=="+"&&bn=="1"&&It[Dn+1]=="1"?It[Dn]="1":Kn==","&&bn==It[Dn+1]&&(bn=="1"||bn=="n")&&(It[Dn]=bn),bn=Kn}for(var ui=0;ui<Ut;++ui){var Bi=It[ui];if(Bi==",")It[ui]="N";else if(Bi=="%"){var xi=void 0;for(xi=ui+1;xi<Ut&&It[xi]=="%";++xi);for(var oa=ui&&It[ui-1]=="!"||xi<Ut&&It[xi]=="1"?"1":"N",ea=ui;ea<xi;++ea)It[ea]=oa;ui=xi-1}}for(var Oi=0,ta=At;Oi<Ut;++Oi){var Zi=It[Oi];ta=="L"&&Zi=="1"?It[Oi]="L":Be.test(Zi)&&(ta=Zi)}for(var Mi=0;Mi<Ut;++Mi)if(pe.test(It[Mi])){var Pi=void 0;for(Pi=Mi+1;Pi<Ut&&pe.test(It[Pi]);++Pi);for(var Ci=(Mi?It[Mi-1]:At)=="L",ra=(Pi<Ut?It[Pi]:At)=="L",xo=Ci==ra?Ci?"L":"R":At,Xa=Mi;Xa<Pi;++Xa)It[Xa]=xo;Mi=Pi-1}for(var Gi=[],Sa,Fi=0;Fi<Ut;)if(qe.test(It[Fi])){var Bs=Fi;for(++Fi;Fi<Ut&&qe.test(It[Fi]);++Fi);Gi.push(new pt(0,Bs,Fi))}else{var Ia=Fi,eo=Gi.length,to=Et=="rtl"?1:0;for(++Fi;Fi<Ut&&It[Fi]!="L";++Fi);for(var Yi=Ia;Yi<Fi;)if(dt.test(It[Yi])){Ia<Yi&&(Gi.splice(eo,0,new pt(1,Ia,Yi)),eo+=to);var So=Yi;for(++Yi;Yi<Fi&&dt.test(It[Yi]);++Yi);Gi.splice(eo,0,new pt(2,So,Yi)),eo+=to,Ia=Yi}else++Yi;Ia<Fi&&Gi.splice(eo,0,new pt(1,Ia,Fi))}return Et=="ltr"&&(Gi[0].level==1&&(Sa=gt.match(/^\s+/))&&(Gi[0].from=Sa[0].length,Gi.unshift(new pt(0,0,Sa[0].length))),lt(Gi).level==1&&(Sa=gt.match(/\s+$/))&&(lt(Gi).to-=Sa[0].length,Gi.push(new pt(0,Ut-Sa[0].length,Ut)))),Et=="rtl"?Gi.reverse():Gi}}();function Qe(a,b){var ae=a.order;return ae==null&&(ae=a.order=Fe(a.text,b)),ae}var Ie=[],vt=function(a,b,ae){if(a.addEventListener)a.addEventListener(b,ae,!1);else if(a.attachEvent)a.attachEvent("on"+b,ae);else{var ne=a._handlers||(a._handlers={});ne[b]=(ne[b]||Ie).concat(ae)}};function yt(a,b){return a._handlers&&a._handlers[b]||Ie}function xt(a,b,ae){if(a.removeEventListener)a.removeEventListener(b,ae,!1);else if(a.detachEvent)a.detachEvent("on"+b,ae);else{var ne=a._handlers,pe=ne&&ne[b];if(pe){var Be=rt(pe,ae);Be>-1&&(ne[b]=pe.slice(0,Be).concat(pe.slice(Be+1)))}}}function bt(a,b){var ae=yt(a,b);if(ae.length)for(var ne=Array.prototype.slice.call(arguments,2),pe=0;pe<ae.length;++pe)ae[pe].apply(null,ne)}function ht(a,b,ae){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),bt(a,ae||b.type,a,b),Yt(b)||b.codemirrorIgnore}function kt(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ae=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),ne=0;ne<b.length;++ne)rt(ae,b[ne])==-1&&ae.push(b[ne])}function Tt(a,b){return yt(a,b).length>0}function Pt(a){a.prototype.on=function(b,ae){vt(this,b,ae)},a.prototype.off=function(b,ae){xt(this,b,ae)}}function Vt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function vr(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Yt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Cr(a){Vt(a),vr(a)}function jr(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)),ce&&a.ctrlKey&&b==1&&(b=3),b}var Mr=function(){if(ve&&x<9)return!1;var a=ge("div");return"draggable"in a||"dragDrop"in a}(),Xr;function mn(a){if(Xr==null){var b=ge("span","\u200B");de(a,ge("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Xr=b.offsetWidth<=1&&b.offsetHeight>2&&!(ve&&x<8))}var ae=Xr?ge("span","\u200B"):ge("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ae.setAttribute("cm-text",""),ae}var cn;function Yr(a){if(cn!=null)return cn;var b=de(a,document.createTextNode("A\u062EA")),ae=De(b,0,1).getBoundingClientRect(),ne=De(b,1,2).getBoundingClientRect();return ke(a),!ae||ae.left==ae.right?!1:cn=ne.right-ae.right<3}var kn=`
b`.split(/\n/).length!=3?function(a){for(var b=0,ae=[],ne=a.length;b<=ne;){var pe=a.indexOf(`
`,b);pe==-1&&(pe=a.length);var Be=a.slice(b,a.charAt(pe-1)=="\r"?pe-1:pe),qe=Be.indexOf("\r");qe!=-1?(ae.push(Be.slice(0,qe)),b+=qe+1):(ae.push(Be),b=pe+1)}return ae}:function(a){return a.split(/\r\n?|\n/)},En=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(ae){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Dr=function(){var a=ge("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Ar=null;function fn(a){if(Ar!=null)return Ar;var b=de(a,ge("span","x")),ae=b.getBoundingClientRect(),ne=De(b,0,1).getBoundingClientRect();return Ar=Math.abs(ae.left-ne.left)>1}var or={},Zt={};function ir(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),or[a]=b}function Nr(a,b){Zt[a]=b}function gr(a){if(typeof a=="string"&&Zt.hasOwnProperty(a))a=Zt[a];else if(a&&typeof a.name=="string"&&Zt.hasOwnProperty(a.name)){var b=Zt[a.name];typeof b=="string"&&(b={name:b}),a=Me(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return gr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return gr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Hr(a,b){b=gr(b);var ae=or[b.name];if(!ae)return Hr(a,"text/plain");var ne=ae(a,b);if(Qr.hasOwnProperty(b.name)){var pe=Qr[b.name];for(var Be in pe)pe.hasOwnProperty(Be)&&(ne.hasOwnProperty(Be)&&(ne["_"+Be]=ne[Be]),ne[Be]=pe[Be])}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 Qr={};function rn(a,b){var ae=Qr.hasOwnProperty(a)?Qr[a]:Qr[a]={};st(b,ae)}function Kr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ae={};for(var ne in b){var pe=b[ne];pe instanceof Array&&(pe=pe.concat([])),ae[ne]=pe}return ae}function Wr(a,b){for(var ae;a.innerMode&&(ae=a.innerMode(b),!(!ae||ae.mode==a));)b=ae.state,a=ae.mode;return ae||{mode:a,state:b}}function dn(a,b,ae){return a.startState?a.startState(b,ae):!0}var pr=function(a,b,ae){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ae};pr.prototype.eol=function(){return this.pos>=this.string.length},pr.prototype.sol=function(){return this.pos==this.lineStart},pr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},pr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},pr.prototype.eat=function(a){var b=this.string.charAt(this.pos),ae;if(typeof a=="string"?ae=b==a:ae=b&&(a.test?a.test(b):a(b)),ae)return++this.pos,b},pr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},pr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},pr.prototype.skipToEnd=function(){this.pos=this.string.length},pr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},pr.prototype.backUp=function(a){this.pos-=a},pr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},pr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},pr.prototype.match=function(a,b,ae){if(typeof a=="string"){var ne=function(qe){return ae?qe.toLowerCase():qe},pe=this.string.substr(this.pos,a.length);if(ne(pe)==ne(a))return b!==!1&&(this.pos+=a.length),!0}else{var Be=this.string.slice(this.pos).match(a);return Be&&Be.index>0?null:(Be&&b!==!1&&(this.pos+=Be[0].length),Be)}},pr.prototype.current=function(){return this.string.slice(this.start,this.pos)},pr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},pr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},pr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Wt(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 ae=a;!ae.lines;)for(var ne=0;;++ne){var pe=ae.children[ne],Be=pe.chunkSize();if(b<Be){ae=pe;break}b-=Be}return ae.lines[b]}function Sr(a,b,ae){var ne=[],pe=b.line;return a.iter(b.line,ae.line+1,function(Be){var qe=Be.text;pe==ae.line&&(qe=qe.slice(0,ae.ch)),pe==b.line&&(qe=qe.slice(b.ch)),ne.push(qe),++pe}),ne}function Gr(a,b,ae){var ne=[];return a.iter(b,ae,function(pe){ne.push(pe.text)}),ne}function gn(a,b){var ae=b-a.height;if(ae)for(var ne=a;ne;ne=ne.parent)ne.height+=ae}function Ct(a){if(a.parent==null)return null;for(var b=a.parent,ae=rt(b.lines,a),ne=b.parent;ne;b=ne,ne=ne.parent)for(var pe=0;ne.children[pe]!=b;++pe)ae+=ne.children[pe].chunkSize();return ae+b.first}function Dt(a,b){var ae=a.first;e:do{for(var ne=0;ne<a.children.length;++ne){var pe=a.children[ne],Be=pe.height;if(b<Be){a=pe;continue e}b-=Be,ae+=pe.chunkSize()}return ae}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 ae+qe}function nr(a,b){return b>=a.first&&b<a.first+a.size}function Gt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function jt(a,b,ae){if(ae===void 0&&(ae=null),!(this instanceof jt))return new jt(a,b,ae);this.line=a,this.ch=b,this.sticky=ae}function tr(a,b){return a.line-b.line||a.ch-b.ch}function hr(a,b){return a.sticky==b.sticky&&tr(a,b)==0}function fr(a){return jt(a.line,a.ch)}function kr(a,b){return tr(a,b)<0?b:a}function sr(a,b){return tr(a,b)<0?a:b}function xr(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function ar(a,b){if(b.line<a.first)return jt(a.first,0);var ae=a.first+a.size-1;return b.line>ae?jt(ae,Wt(a,ae).text.length):$t(b,Wt(a,b.line).text.length)}function $t(a,b){var ae=a.ch;return ae==null||ae>b?jt(a.line,b):ae<0?jt(a.line,0):a}function lr(a,b){for(var ae=[],ne=0;ne<b.length;ne++)ae[ne]=ar(a,b[ne]);return ae}var br=function(a,b){this.state=a,this.lookAhead=b},Rr=function(a,b,ae,ne){this.state=b,this.doc=a,this.line=ae,this.maxLookAhead=ne||0,this.baseTokens=null,this.baseTokenPos=1};Rr.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},Rr.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}},Rr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Rr.fromSaved=function(a,b,ae){return b instanceof br?new Rr(a,Kr(a.mode,b.state),ae,b.lookAhead):new Rr(a,Kr(a.mode,b),ae)},Rr.prototype.save=function(a){var b=a!==!1?Kr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new br(b,this.maxLookAhead):b};function Fr(a,b,ae,ne){var pe=[a.state.modeGen],Be={};Ln(a,b.text,a.doc.mode,ae,function(gt,Et){return pe.push(gt,Et)},Be,ne);for(var qe=ae.state,dt=function(gt){ae.baseTokens=pe;var Et=a.state.overlays[gt],At=1,Ut=0;ae.state=!0,Ln(a,b.text,Et.mode,ae,function(It,cr){for(var yr=At;Ut<It;){var Or=pe[At];Or>It&&pe.splice(At,1,It,pe[At+1],Or),At+=2,Ut=Math.min(It,Or)}if(cr)if(Et.opaque)pe.splice(yr,At-yr,It,"overlay "+cr),At=yr+2;else for(;yr<At;yr+=2){var Lr=pe[yr+1];pe[yr+1]=(Lr?Lr+" ":"")+"overlay "+cr}},Be),ae.state=qe,ae.baseTokens=null,ae.baseTokenPos=1},pt=0;pt<a.state.overlays.length;++pt)dt(pt);return{styles:pe,classes:Be.bgClass||Be.textClass?Be:null}}function vn(a,b,ae){if(!b.styles||b.styles[0]!=a.state.modeGen){var ne=On(a,Ct(b)),pe=b.text.length>a.options.maxHighlightLength&&Kr(a.doc.mode,ne.state),Be=Fr(a,b,ne);pe&&(ne.state=pe),b.stateAfter=ne.save(!pe),b.styles=Be.styles,Be.classes?b.styleClasses=Be.classes:b.styleClasses&&(b.styleClasses=null),ae===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function On(a,b,ae){var ne=a.doc,pe=a.display;if(!ne.mode.startState)return new Rr(ne,!0,b);var Be=Vn(a,b,ae),qe=Be>ne.first&&Wt(ne,Be-1).stateAfter,dt=qe?Rr.fromSaved(ne,qe,Be):new Rr(ne,dn(ne.mode),Be);return ne.iter(Be,b,function(pt){zr(a,pt.text,dt);var gt=dt.line;pt.stateAfter=gt==b-1||gt%5==0||gt>=pe.viewFrom&&gt<pe.viewTo?dt.save():null,dt.nextLine()}),ae&&(ne.modeFrontier=dt.line),dt}function zr(a,b,ae,ne){var pe=a.doc.mode,Be=new pr(b,a.options.tabSize,ae);for(Be.start=Be.pos=ne||0,b==""&&Er(pe,ae.state);!Be.eol();)Ur(pe,Be,ae.state),Be.start=Be.pos}function Er(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ae=Wr(a,b);if(ae.mode.blankLine)return ae.mode.blankLine(ae.state)}}function Ur(a,b,ae,ne){for(var pe=0;pe<10;pe++){ne&&(ne[0]=Wr(a,ae).mode);var Be=a.token(b,ae);if(b.pos>b.start)return Be}throw new Error("Mode "+a.name+" failed to advance stream.")}var wr=function(a,b,ae){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ae};function jn(a,b,ae,ne){var pe=a.doc,Be=pe.mode,qe;b=ar(pe,b);var dt=Wt(pe,b.line),pt=On(a,b.line,ae),gt=new pr(dt.text,a.options.tabSize,pt),Et;for(ne&&(Et=[]);(ne||gt.pos<b.ch)&&!gt.eol();)gt.start=gt.pos,qe=Ur(Be,gt,pt.state),ne&&Et.push(new wr(gt,qe,Kr(pe.mode,pt.state)));return ne?Et:new wr(gt,qe,pt.state)}function Hn(a,b){if(a)for(;;){var ae=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ae)break;a=a.slice(0,ae.index)+a.slice(ae.index+ae[0].length);var ne=ae[1]?"bgClass":"textClass";b[ne]==null?b[ne]=ae[2]:new RegExp("(?:^|\\s)"+ae[2]+"(?:$|\\s)").test(b[ne])||(b[ne]+=" "+ae[2])}return a}function Ln(a,b,ae,ne,pe,Be,qe){var dt=ae.flattenSpans;dt==null&&(dt=a.options.flattenSpans);var pt=0,gt=null,Et=new pr(b,a.options.tabSize,ne),At,Ut=a.options.addModeClass&&[null];for(b==""&&Hn(Er(ae,ne.state),Be);!Et.eol();){if(Et.pos>a.options.maxHighlightLength?(dt=!1,qe&&zr(a,b,ne,Et.pos),Et.pos=b.length,At=null):At=Hn(Ur(ae,Et,ne.state,Ut),Be),Ut){var It=Ut[0].name;It&&(At="m-"+(At?It+" "+At:It))}if(!dt||gt!=At){for(;pt<Et.start;)pt=Math.min(Et.start,pt+5e3),pe(pt,gt);gt=At}Et.start=Et.pos}for(;pt<Et.pos;){var cr=Math.min(Et.pos,pt+5e3);pe(cr,gt),pt=cr}}function Vn(a,b,ae){for(var ne,pe,Be=a.doc,qe=ae?-1:b-(a.doc.mode.innerMode?1e3:100),dt=b;dt>qe;--dt){if(dt<=Be.first)return Be.first;var pt=Wt(Be,dt-1),gt=pt.stateAfter;if(gt&&(!ae||dt+(gt instanceof br?gt.lookAhead:0)<=Be.modeFrontier))return dt;var Et=Le(pt.text,null,a.options.tabSize);(pe==null||ne>Et)&&(pe=dt-1,ne=Et)}return pe}function Yn(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ae=a.first,ne=b-1;ne>ae;ne--){var pe=Wt(a,ne).stateAfter;if(pe&&(!(pe instanceof br)||ne+pe.lookAhead<b)){ae=ne+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ae)}}var Gn=!1,_n=!1;function Jn(){Gn=!0}function Xn(){_n=!0}function Ir(a,b,ae){this.marker=a,this.from=b,this.to=ae}function on(a,b){if(a)for(var ae=0;ae<a.length;++ae){var ne=a[ae];if(ne.marker==b)return ne}}function Tn(a,b){for(var ae,ne=0;ne<a.length;++ne)a[ne]!=b&&(ae||(ae=[])).push(a[ne]);return ae}function Bn(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Mn(a,b,ae){var ne;if(a)for(var pe=0;pe<a.length;++pe){var Be=a[pe],qe=Be.marker,dt=Be.from==null||(qe.inclusiveLeft?Be.from<=b:Be.from<b);if(dt||Be.from==b&&qe.type=="bookmark"&&(!ae||!Be.marker.insertLeft)){var pt=Be.to==null||(qe.inclusiveRight?Be.to>=b:Be.to>b);(ne||(ne=[])).push(new Ir(qe,Be.from,pt?null:Be.to))}}return ne}function Fn(a,b,ae){var ne;if(a)for(var pe=0;pe<a.length;++pe){var Be=a[pe],qe=Be.marker,dt=Be.to==null||(qe.inclusiveRight?Be.to>=b:Be.to>b);if(dt||Be.from==b&&qe.type=="bookmark"&&(!ae||Be.marker.insertLeft)){var pt=Be.from==null||(qe.inclusiveLeft?Be.from<=b:Be.from<b);(ne||(ne=[])).push(new Ir(qe,pt?null:Be.from-b,Be.to==null?null:Be.to-b))}}return ne}function ri(a,b){if(b.full)return null;var ae=nr(a,b.from.line)&&Wt(a,b.from.line).markedSpans,ne=nr(a,b.to.line)&&Wt(a,b.to.line).markedSpans;if(!ae&&!ne)return null;var pe=b.from.ch,Be=b.to.ch,qe=tr(b.from,b.to)==0,dt=Mn(ae,pe,qe),pt=Fn(ne,Be,qe),gt=b.text.length==1,Et=lt(b.text).length+(gt?pe:0);if(dt)for(var At=0;At<dt.length;++At){var Ut=dt[At];if(Ut.to==null){var It=on(pt,Ut.marker);It?gt&&(Ut.to=It.to==null?null:It.to+Et):Ut.to=pe}}if(pt)for(var cr=0;cr<pt.length;++cr){var yr=pt[cr];if(yr.to!=null&&(yr.to+=Et),yr.from==null){var Or=on(dt,yr.marker);Or||(yr.from=Et,gt&&(dt||(dt=[])).push(yr))}else yr.from+=Et,gt&&(dt||(dt=[])).push(yr)}dt&&(dt=St(dt)),pt&&pt!=dt&&(pt=St(pt));var Lr=[dt];if(!gt){var $r=b.text.length-2,Br;if($r>0&&dt)for(var an=0;an<dt.length;++an)dt[an].to==null&&(Br||(Br=[])).push(new Ir(dt[an].marker,null,null));for(var Dn=0;Dn<$r;++Dn)Lr.push(Br);Lr.push(pt)}return Lr}function St(a){for(var b=0;b<a.length;++b){var ae=a[b];ae.from!=null&&ae.from==ae.to&&ae.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Lt(a,b,ae){var ne=null;if(a.iter(b.line,ae.line+1,function(It){if(It.markedSpans)for(var cr=0;cr<It.markedSpans.length;++cr){var yr=It.markedSpans[cr].marker;yr.readOnly&&(!ne||rt(ne,yr)==-1)&&(ne||(ne=[])).push(yr)}}),!ne)return null;for(var pe=[{from:b,to:ae}],Be=0;Be<ne.length;++Be)for(var qe=ne[Be],dt=qe.find(0),pt=0;pt<pe.length;++pt){var gt=pe[pt];if(!(tr(gt.to,dt.from)<0||tr(gt.from,dt.to)>0)){var Et=[pt,1],At=tr(gt.from,dt.from),Ut=tr(gt.to,dt.to);(At<0||!qe.inclusiveLeft&&!At)&&Et.push({from:gt.from,to:dt.from}),(Ut>0||!qe.inclusiveRight&&!Ut)&&Et.push({from:dt.to,to:gt.to}),pe.splice.apply(pe,Et),pt+=Et.length-3}}return pe}function Mt(a){var b=a.markedSpans;if(b){for(var ae=0;ae<b.length;++ae)b[ae].marker.detachLine(a);a.markedSpans=null}}function Nt(a,b){if(b){for(var ae=0;ae<b.length;++ae)b[ae].marker.attachLine(a);a.markedSpans=b}}function Xt(a){return a.inclusiveLeft?-1:0}function Rt(a){return a.inclusiveRight?1:0}function Jt(a,b){var ae=a.lines.length-b.lines.length;if(ae!=0)return ae;var ne=a.find(),pe=b.find(),Be=tr(ne.from,pe.from)||Xt(a)-Xt(b);if(Be)return-Be;var qe=tr(ne.to,pe.to)||Rt(a)-Rt(b);return qe||b.id-a.id}function rr(a,b){var ae=_n&&a.markedSpans,ne;if(ae)for(var pe=void 0,Be=0;Be<ae.length;++Be)pe=ae[Be],pe.marker.collapsed&&(b?pe.from:pe.to)==null&&(!ne||Jt(ne,pe.marker)<0)&&(ne=pe.marker);return ne}function Qt(a){return rr(a,!0)}function Ot(a){return rr(a,!1)}function Bt(a,b){var ae=_n&&a.markedSpans,ne;if(ae)for(var pe=0;pe<ae.length;++pe){var Be=ae[pe];Be.marker.collapsed&&(Be.from==null||Be.from<b)&&(Be.to==null||Be.to>b)&&(!ne||Jt(ne,Be.marker)<0)&&(ne=Be.marker)}return ne}function Ht(a,b,ae,ne,pe){var Be=Wt(a,b),qe=_n&&Be.markedSpans;if(qe)for(var dt=0;dt<qe.length;++dt){var pt=qe[dt];if(pt.marker.collapsed){var gt=pt.marker.find(0),Et=tr(gt.from,ae)||Xt(pt.marker)-Xt(pe),At=tr(gt.to,ne)||Rt(pt.marker)-Rt(pe);if(!(Et>=0&&At<=0||Et<=0&&At>=0)&&(Et<=0&&(pt.marker.inclusiveRight&&pe.inclusiveLeft?tr(gt.to,ae)>=0:tr(gt.to,ae)>0)||Et>=0&&(pt.marker.inclusiveRight&&pe.inclusiveLeft?tr(gt.from,ne)<=0:tr(gt.from,ne)<0)))return!0}}}function zt(a){for(var b;b=Qt(a);)a=b.find(-1,!0).line;return a}function qt(a){for(var b;b=Ot(a);)a=b.find(1,!0).line;return a}function mr(a){for(var b,ae;b=Ot(a);)a=b.find(1,!0).line,(ae||(ae=[])).push(a);return ae}function er(a,b){var ae=Wt(a,b),ne=zt(ae);return ae==ne?b:Ct(ne)}function Ft(a,b){if(b>a.lastLine())return b;var ae=Wt(a,b),ne;if(!ur(a,ae))return b;for(;ne=Ot(ae);)ae=ne.find(1,!0).line;return Ct(ae)+1}function ur(a,b){var ae=_n&&b.markedSpans;if(ae){for(var ne=void 0,pe=0;pe<ae.length;++pe)if(ne=ae[pe],!!ne.marker.collapsed){if(ne.from==null)return!0;if(!ne.marker.widgetNode&&ne.from==0&&ne.marker.inclusiveLeft&&dr(a,b,ne))return!0}}}function dr(a,b,ae){if(ae.to==null){var ne=ae.marker.find(1,!0);return dr(a,ne.line,on(ne.line.markedSpans,ae.marker))}if(ae.marker.inclusiveRight&&ae.to==b.text.length)return!0;for(var pe=void 0,Be=0;Be<b.markedSpans.length;++Be)if(pe=b.markedSpans[Be],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==ae.to&&(pe.to==null||pe.to!=ae.from)&&(pe.marker.inclusiveLeft||ae.marker.inclusiveRight)&&dr(a,b,pe))return!0}function Tr(a){a=zt(a);for(var b=0,ae=a.parent,ne=0;ne<ae.lines.length;++ne){var pe=ae.lines[ne];if(pe==a)break;b+=pe.height}for(var Be=ae.parent;Be;ae=Be,Be=ae.parent)for(var qe=0;qe<Be.children.length;++qe){var dt=Be.children[qe];if(dt==ae)break;b+=dt.height}return b}function Vr(a){if(a.height==0)return 0;for(var b=a.text.length,ae,ne=a;ae=Qt(ne);){var pe=ae.find(0,!0);ne=pe.from.line,b+=pe.from.ch-pe.to.ch}for(ne=a;ae=Ot(ne);){var Be=ae.find(0,!0);b-=ne.text.length-Be.from.ch,ne=Be.to.line,b+=ne.text.length-Be.to.ch}return b}function _r(a){var b=a.display,ae=a.doc;b.maxLine=Wt(ae,ae.first),b.maxLineLength=Vr(b.maxLine),b.maxLineChanged=!0,ae.iter(function(ne){var pe=Vr(ne);pe>b.maxLineLength&&(b.maxLineLength=pe,b.maxLine=ne)})}var ln=function(a,b,ae){this.text=a,Nt(this,b),this.height=ae?ae(this):1};ln.prototype.lineNo=function(){return Ct(this)},Pt(ln);function qr(a,b,ae,ne){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Mt(a),Nt(a,ae);var pe=ne?ne(a):1;pe!=a.height&&gn(a,pe)}function sn(a){a.parent=null,Mt(a)}var hn={},un={};function Pn(a,b){if(!a||/^\s*$/.test(a))return null;var ae=b.addModeClass?un:hn;return ae[a]||(ae[a]=a.replace(/\S+/g,"cm-$&"))}function yn(a,b){var ae=Se("span",null,null,z?"padding-right: .1px":null),ne={pre:Se("pre",[ae],"CodeMirror-line"),content:ae,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var pe=0;pe<=(b.rest?b.rest.length:0);pe++){var Be=pe?b.rest[pe-1]:b.line,qe=void 0;ne.pos=0,ne.addToken=nn,Yr(a.display.measure)&&(qe=Qe(Be,a.doc.direction))&&(ne.addToken=tn(ne.addToken,qe)),ne.map=[];var dt=b!=a.display.externalMeasured&&Ct(Be);Jr(Be,ne,vn(a,Be,dt)),Be.styleClasses&&(Be.styleClasses.bgClass&&(ne.bgClass=He(Be.styleClasses.bgClass,ne.bgClass||"")),Be.styleClasses.textClass&&(ne.textClass=He(Be.styleClasses.textClass,ne.textClass||""))),ne.map.length==0&&ne.map.push(0,0,ne.content.appendChild(mn(a.display.measure))),pe==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(z){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 bt(a,"renderLine",a,b.line,ne.pre),ne.pre.className&&(ne.textClass=He(ne.pre.className,ne.textClass||"")),ne}function wn(a){var b=ge("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function nn(a,b,ae,ne,pe,Be,qe){if(b){var dt=a.splitSpaces?Zr(b,a.trailingSpace):b,pt=a.cm.state.specialChars,gt=!1,Et;if(!pt.test(b))a.col+=b.length,Et=document.createTextNode(dt),a.map.push(a.pos,a.pos+b.length,Et),ve&&x<9&&(gt=!0),a.pos+=b.length;else{Et=document.createDocumentFragment();for(var At=0;;){pt.lastIndex=At;var Ut=pt.exec(b),It=Ut?Ut.index-At:b.length-At;if(It){var cr=document.createTextNode(dt.slice(At,At+It));ve&&x<9?Et.appendChild(ge("span",[cr])):Et.appendChild(cr),a.map.push(a.pos,a.pos+It,cr),a.col+=It,a.pos+=It}if(!Ut)break;At+=It+1;var yr=void 0;if(Ut[0]==" "){var Or=a.cm.options.tabSize,Lr=Or-a.col%Or;yr=Et.appendChild(ge("span",ut(Lr),"cm-tab")),yr.setAttribute("role","presentation"),yr.setAttribute("cm-text"," "),a.col+=Lr}else Ut[0]=="\r"||Ut[0]==`
`?(yr=Et.appendChild(ge("span",Ut[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),yr.setAttribute("cm-text",Ut[0]),a.col+=1):(yr=a.cm.options.specialCharPlaceholder(Ut[0]),yr.setAttribute("cm-text",Ut[0]),ve&&x<9?Et.appendChild(ge("span",[yr])):Et.appendChild(yr),a.col+=1);a.map.push(a.pos,a.pos+1,yr),a.pos++}}if(a.trailingSpace=dt.charCodeAt(b.length-1)==32,ae||ne||pe||gt||Be||qe){var $r=ae||"";ne&&($r+=ne),pe&&($r+=pe);var Br=ge("span",[Et],$r,Be);if(qe)for(var an in qe)qe.hasOwnProperty(an)&&an!="style"&&an!="class"&&Br.setAttribute(an,qe[an]);return a.content.appendChild(Br)}a.content.appendChild(Et)}}function Zr(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ae=b,ne="",pe=0;pe<a.length;pe++){var Be=a.charAt(pe);Be==" "&&ae&&(pe==a.length-1||a.charCodeAt(pe+1)==32)&&(Be="\xA0"),ne+=Be,ae=Be==" "}return ne}function tn(a,b){return function(ae,ne,pe,Be,qe,dt,pt){pe=pe?pe+" cm-force-border":"cm-force-border";for(var gt=ae.pos,Et=gt+ne.length;;){for(var At=void 0,Ut=0;Ut<b.length&&(At=b[Ut],!(At.to>gt&&At.from<=gt));Ut++);if(At.to>=Et)return a(ae,ne,pe,Be,qe,dt,pt);a(ae,ne.slice(0,At.to-gt),pe,Be,null,dt,pt),Be=null,ne=ne.slice(At.to-gt),gt=At.to}}}function pn(a,b,ae,ne){var pe=!ne&&ae.widgetNode;pe&&a.map.push(a.pos,a.pos+b,pe),!ne&&a.cm.display.input.needsContentAttribute&&(pe||(pe=a.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",ae.id)),pe&&(a.cm.display.input.setUneditable(pe),a.content.appendChild(pe)),a.pos+=b,a.trailingSpace=!1}function Jr(a,b,ae){var ne=a.markedSpans,pe=a.text,Be=0;if(!ne){for(var qe=1;qe<ae.length;qe+=2)b.addToken(b,pe.slice(Be,Be=ae[qe]),Pn(ae[qe+1],b.cm.options));return}for(var dt=pe.length,pt=0,gt=1,Et="",At,Ut,It=0,cr,yr,Or,Lr,$r;;){if(It==pt){cr=yr=Or=Ut="",$r=null,Lr=null,It=1/0;for(var Br=[],an=void 0,Dn=0;Dn<ne.length;++Dn){var bn=ne[Dn],Kn=bn.marker;if(Kn.type=="bookmark"&&bn.from==pt&&Kn.widgetNode)Br.push(Kn);else if(bn.from<=pt&&(bn.to==null||bn.to>pt||Kn.collapsed&&bn.to==pt&&bn.from==pt)){if(bn.to!=null&&bn.to!=pt&&It>bn.to&&(It=bn.to,yr=""),Kn.className&&(cr+=" "+Kn.className),Kn.css&&(Ut=(Ut?Ut+";":"")+Kn.css),Kn.startStyle&&bn.from==pt&&(Or+=" "+Kn.startStyle),Kn.endStyle&&bn.to==It&&(an||(an=[])).push(Kn.endStyle,bn.to),Kn.title&&(($r||($r={})).title=Kn.title),Kn.attributes)for(var ui in Kn.attributes)($r||($r={}))[ui]=Kn.attributes[ui];Kn.collapsed&&(!Lr||Jt(Lr.marker,Kn)<0)&&(Lr=bn)}else bn.from>pt&&It>bn.from&&(It=bn.from)}if(an)for(var Bi=0;Bi<an.length;Bi+=2)an[Bi+1]==It&&(yr+=" "+an[Bi]);if(!Lr||Lr.from==pt)for(var xi=0;xi<Br.length;++xi)pn(b,0,Br[xi]);if(Lr&&(Lr.from||0)==pt){if(pn(b,(Lr.to==null?dt+1:Lr.to)-pt,Lr.marker,Lr.from==null),Lr.to==null)return;Lr.to==pt&&(Lr=!1)}}if(pt>=dt)break;for(var oa=Math.min(dt,It);;){if(Et){var ea=pt+Et.length;if(!Lr){var Oi=ea>oa?Et.slice(0,oa-pt):Et;b.addToken(b,Oi,At?At+cr:cr,Or,pt+Oi.length==It?yr:"",Ut,$r)}if(ea>=oa){Et=Et.slice(oa-pt),pt=oa;break}pt=ea,Or=""}Et=pe.slice(Be,Be=ae[gt++]),At=Pn(ae[gt++],b.cm.options)}}}function An(a,b,ae){this.line=b,this.rest=mr(b),this.size=this.rest?Ct(lt(this.rest))-ae+1:1,this.node=this.text=null,this.hidden=ur(a,b)}function Rn(a,b,ae){for(var ne=[],pe,Be=b;Be<ae;Be=pe){var qe=new An(a.doc,Wt(a.doc,Be),Be);pe=Be+qe.size,ne.push(qe)}return ne}var Qn=null;function Di(a){Qn?Qn.ops.push(a):a.ownsGroup=Qn={ops:[a],delayedCallbacks:[]}}function Si(a){var b=a.delayedCallbacks,ae=0;do{for(;ae<b.length;ae++)b[ae].call(null);for(var ne=0;ne<a.ops.length;ne++){var pe=a.ops[ne];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(ae<b.length)}function yi(a,b){var ae=a.ownsGroup;if(ae)try{Si(ae)}finally{Qn=null,b(ae)}}var ji=null;function qn(a,b){var ae=yt(a,b);if(ae.length){var ne=Array.prototype.slice.call(arguments,2),pe;Qn?pe=Qn.delayedCallbacks:ji?pe=ji:(pe=ji=[],setTimeout($n,0));for(var Be=function(dt){pe.push(function(){return ae[dt].apply(null,ne)})},qe=0;qe<ae.length;++qe)Be(qe)}}function $n(){var a=ji;ji=null;for(var b=0;b<a.length;++b)a[b]()}function ti(a,b,ae,ne){for(var pe=0;pe<b.changes.length;pe++){var Be=b.changes[pe];Be=="text"?oi(a,b):Be=="gutter"?xn(a,b,ae,ne):Be=="class"?en(a,b):Be=="widget"&&Sn(a,b,ne)}b.changes=null}function ki(a){return a.node==a.text&&(a.node=ge("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),ve&&x<8&&(a.node.style.zIndex=2)),a.node}function ai(a,b){var ae=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(ae&&(ae+=" CodeMirror-linebackground"),b.background)ae?b.background.className=ae:(b.background.parentNode.removeChild(b.background),b.background=null);else if(ae){var ne=ki(b);b.background=ne.insertBefore(ge("div",null,ae),ne.firstChild),a.display.input.setUneditable(b.background)}}function li(a,b){var ae=a.display.externalMeasured;return ae&&ae.line==b.line?(a.display.externalMeasured=null,b.measure=ae.measure,ae.built):yn(a,b)}function oi(a,b){var ae=b.text.className,ne=li(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,en(a,b)):ae&&(b.text.className=ae)}function en(a,b){ai(a,b),b.line.wrapClass?ki(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var ae=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=ae||""}function xn(a,b,ae,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 pe=ki(b);b.gutterBackground=ge("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),pe.insertBefore(b.gutterBackground,b.text)}var Be=b.line.gutterMarkers;if(a.options.lineNumbers||Be){var qe=ki(b),dt=b.gutter=ge("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&&(!Be||!Be["CodeMirror-linenumbers"])&&(b.lineNumber=dt.appendChild(ge("div",Gt(a.options,ae),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+ne.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Be)for(var pt=0;pt<a.display.gutterSpecs.length;++pt){var gt=a.display.gutterSpecs[pt].className,Et=Be.hasOwnProperty(gt)&&Be[gt];Et&&dt.appendChild(ge("div",[Et],"CodeMirror-gutter-elt","left: "+ne.gutterLeft[gt]+"px; width: "+ne.gutterWidth[gt]+"px"))}}}function Sn(a,b,ae){b.alignable&&(b.alignable=null);for(var ne=Te("CodeMirror-linewidget"),pe=b.node.firstChild,Be=void 0;pe;pe=Be)Be=pe.nextSibling,ne.test(pe.className)&&b.node.removeChild(pe);zn(a,b,ae)}function Cn(a,b,ae,ne){var pe=li(a,b);return b.text=b.node=pe.pre,pe.bgClass&&(b.bgClass=pe.bgClass),pe.textClass&&(b.textClass=pe.textClass),en(a,b),xn(a,b,ae,ne),zn(a,b,ne),b.node}function zn(a,b,ae){if(ei(a,b.line,b,ae,!0),b.rest)for(var ne=0;ne<b.rest.length;ne++)ei(a,b.rest[ne],b,ae,!1)}function ei(a,b,ae,ne,pe){if(b.widgets)for(var Be=ki(ae),qe=0,dt=b.widgets;qe<dt.length;++qe){var pt=dt[qe],gt=ge("div",[pt.node],"CodeMirror-linewidget"+(pt.className?" "+pt.className:""));pt.handleMouseEvents||gt.setAttribute("cm-ignore-events","true"),Hi(pt,gt,ae,ne),a.display.input.setUneditable(gt),pe&&pt.above?Be.insertBefore(gt,ae.gutter||ae.text):Be.appendChild(gt),qn(pt,"redraw")}}function Hi(a,b,ae,ne){if(a.noHScroll){(ae.alignable||(ae.alignable=[])).push(b);var pe=ne.wrapperWidth;b.style.left=ne.fixedPos+"px",a.coverGutter||(pe-=ne.gutterTotalWidth,b.style.paddingLeft=ne.gutterTotalWidth+"px"),b.style.width=pe+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-ne.gutterTotalWidth+"px"))}function fi(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!_e(document.body,a.node)){var ae="position: relative;";a.coverGutter&&(ae+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ae+="width: "+b.display.wrapper.clientWidth+"px;"),de(b.display.measure,ge("div",[a.node],null,ae))}return a.height=a.node.parentNode.offsetHeight}function ci(a,b){for(var ae=jr(b);ae!=a.wrapper;ae=ae.parentNode)if(!ae||ae.nodeType==1&&ae.getAttribute("cm-ignore-events")=="true"||ae.parentNode==a.sizer&&ae!=a.mover)return!0}function Nn(a){return a.lineSpace.offsetTop}function bi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ki(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=de(a.measure,ge("pre","x","CodeMirror-line-like")),ae=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,ne={left:parseInt(ae.paddingLeft),right:parseInt(ae.paddingRight)};return!isNaN(ne.left)&&!isNaN(ne.right)&&(a.cachedPaddingH=ne),ne}function ni(a){return ot-a.display.nativeBarWidth}function sa(a){return a.display.scroller.clientWidth-ni(a)-a.display.barWidth}function Vi(a){return a.display.scroller.clientHeight-ni(a)-a.display.barHeight}function $i(a,b,ae){var ne=a.options.lineWrapping,pe=ne&&sa(a);if(!b.measure.heights||ne&&b.measure.width!=pe){var Be=b.measure.heights=[];if(ne){b.measure.width=pe;for(var qe=b.text.firstChild.getClientRects(),dt=0;dt<qe.length-1;dt++){var pt=qe[dt],gt=qe[dt+1];Math.abs(pt.bottom-gt.bottom)>2&&Be.push((pt.bottom+gt.top)/2-ae.top)}}Be.push(ae.bottom-ae.top)}}function mi(a,b,ae){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 pe=0;pe<a.rest.length;pe++)if(Ct(a.rest[pe])>ae)return{map:a.measure.maps[pe],cache:a.measure.caches[pe],before:!0}}function ro(a,b){b=zt(b);var ae=Ct(b),ne=a.display.externalMeasured=new An(a.doc,b,ae);ne.lineN=ae;var pe=ne.built=yn(a,ne);return ne.text=pe.pre,de(a.display.lineMeasure,pe.pre),ne}function Ya(a,b,ae,ne){return na(a,ma(a,b),ae,ne)}function pa(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Aa(a,b)];var ae=a.display.externalMeasured;if(ae&&b>=ae.lineN&&b<ae.lineN+ae.size)return ae}function ma(a,b){var ae=Ct(b),ne=pa(a,ae);ne&&!ne.text?ne=null:ne&&ne.changes&&(ti(a,ne,ae,ua(a)),a.curOp.forceUpdate=!0),ne||(ne=ro(a,b));var pe=mi(ne,b,ae);return{line:b,view:ne,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function na(a,b,ae,ne,pe){b.before&&(ae=-1);var Be=ae+(ne||""),qe;return b.cache.hasOwnProperty(Be)?qe=b.cache[Be]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||($i(a,b.view,b.rect),b.hasHeights=!0),qe=ao(a,b,ae,ne),qe.bogus||(b.cache[Be]=qe)),{left:qe.left,right:qe.right,top:pe?qe.rtop:qe.top,bottom:pe?qe.rbottom:qe.bottom}}var Ea={left:0,right:0,top:0,bottom:0};function no(a,b,ae){for(var ne,pe,Be,qe,dt,pt,gt=0;gt<a.length;gt+=3)if(dt=a[gt],pt=a[gt+1],b<dt?(pe=0,Be=1,qe="left"):b<pt?(pe=b-dt,Be=pe+1):(gt==a.length-3||b==pt&&a[gt+3]>b)&&(Be=pt-dt,pe=Be-1,b>=pt&&(qe="right")),pe!=null){if(ne=a[gt+2],dt==pt&&ae==(ne.insertLeft?"left":"right")&&(qe=ae),ae=="left"&&pe==0)for(;gt&&a[gt-2]==a[gt-3]&&a[gt-1].insertLeft;)ne=a[(gt-=3)+2],qe="left";if(ae=="right"&&pe==pt-dt)for(;gt<a.length-3&&a[gt+3]==a[gt+4]&&!a[gt+5].insertLeft;)ne=a[(gt+=3)+2],qe="right";break}return{node:ne,start:pe,end:Be,collapse:qe,coverStart:dt,coverEnd:pt}}function io(a,b){var ae=Ea;if(b=="left")for(var ne=0;ne<a.length&&(ae=a[ne]).left==ae.right;ne++);else for(var pe=a.length-1;pe>=0&&(ae=a[pe]).left==ae.right;pe--);return ae}function ao(a,b,ae,ne){var pe=no(b.map,ae,ne),Be=pe.node,qe=pe.start,dt=pe.end,pt=pe.collapse,gt;if(Be.nodeType==3){for(var Et=0;Et<4;Et++){for(;qe&&je(b.line.text.charAt(pe.coverStart+qe));)--qe;for(;pe.coverStart+dt<pe.coverEnd&&je(b.line.text.charAt(pe.coverStart+dt));)++dt;if(ve&&x<9&&qe==0&&dt==pe.coverEnd-pe.coverStart?gt=Be.parentNode.getBoundingClientRect():gt=io(De(Be,qe,dt).getClientRects(),ne),gt.left||gt.right||qe==0)break;dt=qe,qe=qe-1,pt="right"}ve&&x<11&&(gt=La(a.display.measure,gt))}else{qe>0&&(pt=ne="right");var At;a.options.lineWrapping&&(At=Be.getClientRects()).length>1?gt=At[ne=="right"?At.length-1:0]:gt=Be.getBoundingClientRect()}if(ve&&x<9&&!qe&&(!gt||!gt.left&&!gt.right)){var Ut=Be.parentNode.getClientRects()[0];Ut?gt={left:Ut.left,right:Ut.left+Ji(a.display),top:Ut.top,bottom:Ut.bottom}:gt=Ea}for(var It=gt.top-b.rect.top,cr=gt.bottom-b.rect.top,yr=(It+cr)/2,Or=b.view.measure.heights,Lr=0;Lr<Or.length-1&&!(yr<Or[Lr]);Lr++);var $r=Lr?Or[Lr-1]:0,Br=Or[Lr],an={left:(pt=="right"?gt.right:gt.left)-b.rect.left,right:(pt=="left"?gt.left:gt.right)-b.rect.left,top:$r,bottom:Br};return!gt.left&&!gt.right&&(an.bogus=!0),a.options.singleCursorHeightPerLine||(an.rtop=It,an.rbottom=cr),an}function La(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fn(a))return b;var ae=screen.logicalXDPI/screen.deviceXDPI,ne=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ae,right:b.right*ae,top:b.top*ne,bottom:b.bottom*ne}}function $a(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 Ba(a){a.display.externalMeasure=null,ke(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)$a(a.display.view[b])}function Ca(a){Ba(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Ja(){return ie&&le?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function oo(){return ie&&le?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Fa(a){var b=0;if(a.widgets)for(var ae=0;ae<a.widgets.length;++ae)a.widgets[ae].above&&(b+=fi(a.widgets[ae]));return b}function ka(a,b,ae,ne,pe){if(!pe){var Be=Fa(b);ae.top+=Be,ae.bottom+=Be}if(ne=="line")return ae;ne||(ne="local");var qe=Tr(b);if(ne=="local"?qe+=Nn(a.display):qe-=a.display.viewOffset,ne=="page"||ne=="window"){var dt=a.display.lineSpace.getBoundingClientRect();qe+=dt.top+(ne=="window"?0:oo());var pt=dt.left+(ne=="window"?0:Ja());ae.left+=pt,ae.right+=pt}return ae.top+=qe,ae.bottom+=qe,ae}function Ta(a,b,ae){if(ae=="div")return b;var ne=b.left,pe=b.top;if(ae=="page")ne-=Ja(),pe-=oo();else if(ae=="local"||!ae){var Be=a.display.sizer.getBoundingClientRect();ne+=Be.left,pe+=Be.top}var qe=a.display.lineSpace.getBoundingClientRect();return{left:ne-qe.left,top:pe-qe.top}}function Ui(a,b,ae,ne,pe){return ne||(ne=Wt(a.doc,b.line)),ka(a,ne,Ya(a,ne,b.ch,pe),ae)}function di(a,b,ae,ne,pe,Be){ne=ne||Wt(a.doc,b.line),pe||(pe=ma(a,ne));function qe(cr,yr){var Or=na(a,pe,cr,yr?"right":"left",Be);return yr?Or.left=Or.right:Or.right=Or.left,ka(a,ne,Or,ae)}var dt=Qe(ne,a.doc.direction),pt=b.ch,gt=b.sticky;if(pt>=ne.text.length?(pt=ne.text.length,gt="before"):pt<=0&&(pt=0,gt="after"),!dt)return qe(gt=="before"?pt-1:pt,gt=="before");function Et(cr,yr,Or){var Lr=dt[yr],$r=Lr.level==1;return qe(Or?cr-1:cr,$r!=Or)}var At=ye(dt,pt,gt),Ut=xe,It=Et(pt,At,gt=="before");return Ut!=null&&(It.other=Et(pt,Ut,gt!="before")),It}function Zn(a,b){var ae=0;b=ar(a.doc,b),a.options.lineWrapping||(ae=Ji(a.display)*b.ch);var ne=Wt(a.doc,b.line),pe=Tr(ne)+Nn(a.display);return{left:ae,right:ae,top:pe,bottom:pe+ne.height}}function In(a,b,ae,ne,pe){var Be=jt(a,b,ae);return Be.xRel=pe,ne&&(Be.outside=ne),Be}function vi(a,b,ae){var ne=a.doc;if(ae+=a.display.viewOffset,ae<0)return In(ne.first,0,null,-1,-1);var pe=Dt(ne,ae),Be=ne.first+ne.size-1;if(pe>Be)return In(ne.first+ne.size-1,Wt(ne,Be).text.length,null,1,1);b<0&&(b=0);for(var qe=Wt(ne,pe);;){var dt=la(a,qe,pe,b,ae),pt=Bt(qe,dt.ch+(dt.xRel>0||dt.outside>0?1:0));if(!pt)return dt;var gt=pt.find(1);if(gt.line==pe)return gt;qe=Wt(ne,pe=gt.line)}}function hi(a,b,ae,ne){ne-=Fa(b);var pe=b.text.length,Be=at(function(qe){return na(a,ae,qe-1).bottom<=ne},pe,0);return pe=at(function(qe){return na(a,ae,qe).top>ne},Be,pe),{begin:Be,end:pe}}function wi(a,b,ae,ne){ae||(ae=ma(a,b));var pe=ka(a,b,na(a,ae,ne),"line").top;return hi(a,b,ae,pe)}function Ti(a,b,ae,ne){return a.bottom<=ae?!1:a.top>ae?!0:(ne?a.left:a.right)>b}function la(a,b,ae,ne,pe){pe-=Tr(b);var Be=ma(a,b),qe=Fa(b),dt=0,pt=b.text.length,gt=!0,Et=Qe(b,a.doc.direction);if(Et){var At=(a.options.lineWrapping?va:ia)(a,b,ae,Be,Et,ne,pe);gt=At.level!=1,dt=gt?At.from:At.to-1,pt=gt?At.to:At.from-1}var Ut=null,It=null,cr=at(function(Dn){var bn=na(a,Be,Dn);return bn.top+=qe,bn.bottom+=qe,Ti(bn,ne,pe,!1)?(bn.top<=pe&&bn.left<=ne&&(Ut=Dn,It=bn),!0):!1},dt,pt),yr,Or,Lr=!1;if(It){var $r=ne-It.left<It.right-ne,Br=$r==gt;cr=Ut+(Br?0:1),Or=Br?"after":"before",yr=$r?It.left:It.right}else{!gt&&(cr==pt||cr==dt)&&cr++,Or=cr==0?"after":cr==b.text.length?"before":na(a,Be,cr-(gt?1:0)).bottom+qe<=pe==gt?"after":"before";var an=di(a,jt(ae,cr,Or),"line",b,Be);yr=an.left,Lr=pe<an.top?-1:pe>=an.bottom?1:0}return cr=We(b.text,cr,1),In(ae,cr,Or,Lr,ne-yr)}function ia(a,b,ae,ne,pe,Be,qe){var dt=at(function(At){var Ut=pe[At],It=Ut.level!=1;return Ti(di(a,jt(ae,It?Ut.to:Ut.from,It?"before":"after"),"line",b,ne),Be,qe,!0)},0,pe.length-1),pt=pe[dt];if(dt>0){var gt=pt.level!=1,Et=di(a,jt(ae,gt?pt.from:pt.to,gt?"after":"before"),"line",b,ne);Ti(Et,Be,qe,!0)&&Et.top>qe&&(pt=pe[dt-1])}return pt}function va(a,b,ae,ne,pe,Be,qe){var dt=hi(a,b,ne,qe),pt=dt.begin,gt=dt.end;/\s/.test(b.text.charAt(gt-1))&&gt--;for(var Et=null,At=null,Ut=0;Ut<pe.length;Ut++){var It=pe[Ut];if(!(It.from>=gt||It.to<=pt)){var cr=It.level!=1,yr=na(a,ne,cr?Math.min(gt,It.to)-1:Math.max(pt,It.from)).right,Or=yr<Be?Be-yr+1e9:yr-Be;(!Et||At>Or)&&(Et=It,At=Or)}}return Et||(Et=pe[pe.length-1]),Et.from<pt&&(Et={from:pt,to:Et.to,level:Et.level}),Et.to>gt&&(Et={from:Et.from,to:gt,level:Et.level}),Et}var pi;function Ri(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(pi==null){pi=ge("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)pi.appendChild(document.createTextNode("x")),pi.appendChild(ge("br"));pi.appendChild(document.createTextNode("x"))}de(a.measure,pi);var ae=pi.offsetHeight/50;return ae>3&&(a.cachedTextHeight=ae),ke(a.measure),ae||1}function Ji(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=ge("span","xxxxxxxxxx"),ae=ge("pre",[b],"CodeMirror-line-like");de(a.measure,ae);var ne=b.getBoundingClientRect(),pe=(ne.right-ne.left)/10;return pe>2&&(a.cachedCharWidth=pe),pe||10}function ua(a){for(var b=a.display,ae={},ne={},pe=b.gutters.clientLeft,Be=b.gutters.firstChild,qe=0;Be;Be=Be.nextSibling,++qe){var dt=a.display.gutterSpecs[qe].className;ae[dt]=Be.offsetLeft+Be.clientLeft+pe,ne[dt]=Be.clientWidth}return{fixedPos:Qa(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ae,gutterWidth:ne,wrapperWidth:b.wrapper.clientWidth}}function Qa(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Eo(a){var b=Ri(a.display),ae=a.options.lineWrapping,ne=ae&&Math.max(5,a.display.scroller.clientWidth/Ji(a.display)-3);return function(pe){if(ur(a.doc,pe))return 0;var Be=0;if(pe.widgets)for(var qe=0;qe<pe.widgets.length;qe++)pe.widgets[qe].height&&(Be+=pe.widgets[qe].height);return ae?Be+(Math.ceil(pe.text.length/ne)||1)*b:Be+b}}function Co(a){var b=a.doc,ae=Eo(a);b.iter(function(ne){var pe=ae(ne);pe!=ne.height&&gn(ne,pe)})}function wa(a,b,ae,ne){var pe=a.display;if(!ae&&jr(b).getAttribute("cm-not-content")=="true")return null;var Be,qe,dt=pe.lineSpace.getBoundingClientRect();try{Be=b.clientX-dt.left,qe=b.clientY-dt.top}catch(At){return null}var pt=vi(a,Be,qe),gt;if(ne&&pt.xRel>0&&(gt=Wt(a.doc,pt.line).text).length==pt.ch){var Et=Le(gt,gt.length,a.options.tabSize)-gt.length;pt=jt(pt.line,Math.max(0,Math.round((Be-Ki(a.display).left)/Ji(a.display))-Et))}return pt}function Aa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ae=a.display.view,ne=0;ne<ae.length;ne++)if(b-=ae[ne].size,b<0)return ne}function Wi(a,b,ae,ne){b==null&&(b=a.doc.first),ae==null&&(ae=a.doc.first+a.doc.size),ne||(ne=0);var pe=a.display;if(ne&&ae<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>b)&&(pe.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=pe.viewTo)_n&&er(a.doc,b)<pe.viewTo&&Qi(a);else if(ae<=pe.viewFrom)_n&&Ft(a.doc,ae+ne)>pe.viewFrom?Qi(a):(pe.viewFrom+=ne,pe.viewTo+=ne);else if(b<=pe.viewFrom&&ae>=pe.viewTo)Qi(a);else if(b<=pe.viewFrom){var Be=so(a,ae,ae+ne,1);Be?(pe.view=pe.view.slice(Be.index),pe.viewFrom=Be.lineN,pe.viewTo+=ne):Qi(a)}else if(ae>=pe.viewTo){var qe=so(a,b,b,-1);qe?(pe.view=pe.view.slice(0,qe.index),pe.viewTo=qe.lineN):Qi(a)}else{var dt=so(a,b,b,-1),pt=so(a,ae,ae+ne,1);dt&&pt?(pe.view=pe.view.slice(0,dt.index).concat(Rn(a,dt.lineN,pt.lineN)).concat(pe.view.slice(pt.index)),pe.viewTo+=ne):Qi(a)}var gt=pe.externalMeasured;gt&&(ae<gt.lineN?gt.lineN+=ne:b<gt.lineN+gt.size&&(pe.externalMeasured=null))}function ca(a,b,ae){a.curOp.viewChanged=!0;var ne=a.display,pe=a.display.externalMeasured;if(pe&&b>=pe.lineN&&b<pe.lineN+pe.size&&(ne.externalMeasured=null),!(b<ne.viewFrom||b>=ne.viewTo)){var Be=ne.view[Aa(a,b)];if(Be.node!=null){var qe=Be.changes||(Be.changes=[]);rt(qe,ae)==-1&&qe.push(ae)}}}function Qi(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function so(a,b,ae,ne){var pe=Aa(a,b),Be,qe=a.display.view;if(!_n||ae==a.doc.first+a.doc.size)return{index:pe,lineN:ae};for(var dt=a.display.viewFrom,pt=0;pt<pe;pt++)dt+=qe[pt].size;if(dt!=b){if(ne>0){if(pe==qe.length-1)return null;Be=dt+qe[pe].size-b,pe++}else Be=dt-b;b+=Be,ae+=Be}for(;er(a.doc,ae)!=ae;){if(pe==(ne<0?0:qe.length-1))return null;ae+=ne*qe[pe-(ne<0?1:0)].size,pe+=ne}return{index:pe,lineN:ae}}function Jo(a,b,ae){var ne=a.display,pe=ne.view;pe.length==0||b>=ne.viewTo||ae<=ne.viewFrom?(ne.view=Rn(a,b,ae),ne.viewFrom=b):(ne.viewFrom>b?ne.view=Rn(a,b,ne.viewFrom).concat(ne.view):ne.viewFrom<b&&(ne.view=ne.view.slice(Aa(a,b))),ne.viewFrom=b,ne.viewTo<ae?ne.view=ne.view.concat(Rn(a,ne.viewTo,ae)):ne.viewTo>ae&&(ne.view=ne.view.slice(0,Aa(a,ae)))),ne.viewTo=ae}function Qo(a){for(var b=a.display.view,ae=0,ne=0;ne<b.length;ne++){var pe=b[ne];!pe.hidden&&(!pe.node||pe.changes)&&++ae}return ae}function Ua(a){a.display.input.showSelection(a.display.input.prepareSelection())}function qo(a,b){b===void 0&&(b=!0);for(var ae=a.doc,ne={},pe=ne.cursors=document.createDocumentFragment(),Be=ne.selection=document.createDocumentFragment(),qe=0;qe<ae.sel.ranges.length;qe++)if(!(!b&&qe==ae.sel.primIndex)){var dt=ae.sel.ranges[qe];if(!(dt.from().line>=a.display.viewTo||dt.to().line<a.display.viewFrom)){var pt=dt.empty();(pt||a.options.showCursorWhenSelecting)&&ko(a,dt.head,pe),pt||es(a,dt,Be)}}return ne}function ko(a,b,ae){var ne=di(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),pe=ae.appendChild(ge("div","\xA0","CodeMirror-cursor"));if(pe.style.left=ne.left+"px",pe.style.top=ne.top+"px",pe.style.height=Math.max(0,ne.bottom-ne.top)*a.options.cursorHeight+"px",ne.other){var Be=ae.appendChild(ge("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Be.style.display="",Be.style.left=ne.other.left+"px",Be.style.top=ne.other.top+"px",Be.style.height=(ne.other.bottom-ne.other.top)*.85+"px"}}function Da(a,b){return a.top-b.top||a.left-b.left}function es(a,b,ae){var ne=a.display,pe=a.doc,Be=document.createDocumentFragment(),qe=Ki(a.display),dt=qe.left,pt=Math.max(ne.sizerWidth,sa(a)-ne.sizer.offsetLeft)-qe.right,gt=pe.direction=="ltr";function Et(Br,an,Dn,bn){an<0&&(an=0),an=Math.round(an),bn=Math.round(bn),Be.appendChild(ge("div",null,"CodeMirror-selected","position: absolute; left: "+Br+`px;
top: `+an+"px; width: "+(Dn==null?pt-Br:Dn)+`px;
height: `+(bn-an)+"px"))}function At(Br,an,Dn){var bn=Wt(pe,Br),Kn=bn.text.length,ui,Bi;function xi(Oi,ta){return Ui(a,jt(Br,Oi),"div",bn,ta)}function oa(Oi,ta,Zi){var Mi=wi(a,bn,null,Oi),Pi=ta=="ltr"==(Zi=="after")?"left":"right",Ci=Zi=="after"?Mi.begin:Mi.end-(/\s/.test(bn.text.charAt(Mi.end-1))?2:1);return xi(Ci,Pi)[Pi]}var ea=Qe(bn,pe.direction);return Re(ea,an||0,Dn==null?Kn:Dn,function(Oi,ta,Zi,Mi){var Pi=Zi=="ltr",Ci=xi(Oi,Pi?"left":"right"),ra=xi(ta-1,Pi?"right":"left"),xo=an==null&&Oi==0,Xa=Dn==null&&ta==Kn,Gi=Mi==0,Sa=!ea||Mi==ea.length-1;if(ra.top-Ci.top<=3){var Fi=(gt?xo:Xa)&&Gi,Bs=(gt?Xa:xo)&&Sa,Ia=Fi?dt:(Pi?Ci:ra).left,eo=Bs?pt:(Pi?ra:Ci).right;Et(Ia,Ci.top,eo-Ia,Ci.bottom)}else{var to,Yi,So,Fs;Pi?(to=gt&&xo&&Gi?dt:Ci.left,Yi=gt?pt:oa(Oi,Zi,"before"),So=gt?dt:oa(ta,Zi,"after"),Fs=gt&&Xa&&Sa?pt:ra.right):(to=gt?oa(Oi,Zi,"before"):dt,Yi=!gt&&xo&&Gi?pt:Ci.right,So=!gt&&Xa&&Sa?dt:ra.left,Fs=gt?oa(ta,Zi,"after"):pt),Et(to,Ci.top,Yi-to,Ci.bottom),Ci.bottom<ra.top&&Et(dt,Ci.bottom,null,ra.top),Et(So,ra.top,Fs-So,ra.bottom)}(!ui||Da(Ci,ui)<0)&&(ui=Ci),Da(ra,ui)<0&&(ui=ra),(!Bi||Da(Ci,Bi)<0)&&(Bi=Ci),Da(ra,Bi)<0&&(Bi=ra)}),{start:ui,end:Bi}}var Ut=b.from(),It=b.to();if(Ut.line==It.line)At(Ut.line,Ut.ch,It.ch);else{var cr=Wt(pe,Ut.line),yr=Wt(pe,It.line),Or=zt(cr)==zt(yr),Lr=At(Ut.line,Ut.ch,Or?cr.text.length+1:null).end,$r=At(It.line,Or?0:null,It.ch).start;Or&&(Lr.top<$r.top-2?(Et(Lr.right,Lr.top,null,Lr.bottom),Et(dt,$r.top,$r.left,$r.bottom)):Et(Lr.right,Lr.top,$r.left-Lr.right,Lr.bottom)),Lr.bottom<$r.top&&Et(dt,Lr.bottom,null,$r.top)}ae.appendChild(Be)}function To(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var ae=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||Wa(a),b.cursorDiv.style.visibility=(ae=!ae)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function Ao(a){a.state.focused||(a.display.input.focus(),jo(a))}function Do(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Wa(a))},100)}function jo(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(bt(a,"focus",a,b),a.state.focused=!0,Oe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),z&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),To(a))}function Wa(a,b){a.state.delayingBlurEvent||(a.state.focused&&(bt(a,"blur",a,b),a.state.focused=!1,Pe(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function lo(a){for(var b=a.display,ae=b.lineDiv.offsetTop,ne=0;ne<b.view.length;ne++){var pe=b.view[ne],Be=a.options.lineWrapping,qe=void 0,dt=0;if(!pe.hidden){if(ve&&x<8){var pt=pe.node.offsetTop+pe.node.offsetHeight;qe=pt-ae,ae=pt}else{var gt=pe.node.getBoundingClientRect();qe=gt.bottom-gt.top,!Be&&pe.text.firstChild&&(dt=pe.text.firstChild.getBoundingClientRect().right-gt.left-1)}var Et=pe.line.height-qe;if((Et>.005||Et<-.005)&&(gn(pe.line,qe),Oo(pe.line),pe.rest))for(var At=0;At<pe.rest.length;At++)Oo(pe.rest[At]);if(dt>a.display.sizerWidth){var Ut=Math.ceil(dt/Ji(a.display));Ut>a.display.maxLineLength&&(a.display.maxLineLength=Ut,a.display.maxLine=pe.line,a.display.maxLineChanged=!0)}}}}function Oo(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ae=a.widgets[b],ne=ae.node.parentNode;ne&&(ae.height=ne.offsetHeight)}}function ja(a,b,ae){var ne=ae&&ae.top!=null?Math.max(0,ae.top):a.scroller.scrollTop;ne=Math.floor(ne-Nn(a));var pe=ae&&ae.bottom!=null?ae.bottom:ne+a.wrapper.clientHeight,Be=Dt(b,ne),qe=Dt(b,pe);if(ae&&ae.ensure){var dt=ae.ensure.from.line,pt=ae.ensure.to.line;dt<Be?(Be=dt,qe=Dt(b,Tr(Wt(b,dt))+a.wrapper.clientHeight)):Math.min(pt,b.lastLine())>=qe&&(Be=Dt(b,Tr(Wt(b,pt))-a.wrapper.clientHeight),qe=pt)}return{from:Be,to:Math.max(qe,Be+1)}}function Po(a,b){if(!ht(a,"scrollCursorIntoView")){var ae=a.display,ne=ae.sizer.getBoundingClientRect(),pe=null;if(b.top+ne.top<0?pe=!0:b.bottom+ne.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!te){var Be=ge("div","\u200B",null,`position: absolute;
top: `+(b.top-ae.viewOffset-Nn(a.display))+`px;
height: `+(b.bottom-b.top+ni(a)+ae.barHeight)+`px;
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(Be),Be.scrollIntoView(pe),a.display.lineSpace.removeChild(Be)}}}function Ro(a,b,ae,ne){ne==null&&(ne=0);var pe;!a.options.lineWrapping&&b==ae&&(b=b.ch?jt(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ae=b.sticky=="before"?jt(b.line,b.ch+1,"before"):b);for(var Be=0;Be<5;Be++){var qe=!1,dt=di(a,b),pt=!ae||ae==b?dt:di(a,ae);pe={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 gt=uo(a,pe),Et=a.doc.scrollTop,At=a.doc.scrollLeft;if(gt.scrollTop!=null&&(Pa(a,gt.scrollTop),Math.abs(a.doc.scrollTop-Et)>1&&(qe=!0)),gt.scrollLeft!=null&&(Ra(a,gt.scrollLeft),Math.abs(a.doc.scrollLeft-At)>1&&(qe=!0)),!qe)break}return pe}function ts(a,b){var ae=uo(a,b);ae.scrollTop!=null&&Pa(a,ae.scrollTop),ae.scrollLeft!=null&&Ra(a,ae.scrollLeft)}function uo(a,b){var ae=a.display,ne=Ri(a.display);b.top<0&&(b.top=0);var pe=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ae.scroller.scrollTop,Be=Vi(a),qe={};b.bottom-b.top>Be&&(b.bottom=b.top+Be);var dt=a.doc.height+bi(ae),pt=b.top<ne,gt=b.bottom>dt-ne;if(b.top<pe)qe.scrollTop=pt?0:b.top;else if(b.bottom>pe+Be){var Et=Math.min(b.top,(gt?dt:b.bottom)-Be);Et!=pe&&(qe.scrollTop=Et)}var At=a.options.fixedGutter?0:ae.gutters.offsetWidth,Ut=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ae.scroller.scrollLeft-At,It=sa(a)-ae.gutters.offsetWidth,cr=b.right-b.left>It;return cr&&(b.right=b.left+It),b.left<10?qe.scrollLeft=0:b.left<Ut?qe.scrollLeft=Math.max(0,b.left+At-(cr?0:10)):b.right>It+Ut-3&&(qe.scrollLeft=b.right+(cr?0:10)-It),qe}function co(a,b){b!=null&&(Za(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function Oa(a){Za(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function qa(a,b,ae){(b!=null||ae!=null)&&Za(a),b!=null&&(a.curOp.scrollLeft=b),ae!=null&&(a.curOp.scrollTop=ae)}function rs(a,b){Za(a),a.curOp.scrollToPos=b}function Za(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var ae=Zn(a,b.from),ne=Zn(a,b.to);_o(a,ae,ne,b.margin)}}function _o(a,b,ae,ne){var pe=uo(a,{left:Math.min(b.left,ae.left),top:Math.min(b.top,ae.top)-ne,right:Math.max(b.right,ae.right),bottom:Math.max(b.bottom,ae.bottom)+ne});qa(a,pe.scrollLeft,pe.scrollTop)}function Pa(a,b){Math.abs(a.doc.scrollTop-b)<2||(Je||bs(a,{top:b}),Mo(a,b,!0),Je&&bs(a),No(a,100))}function Mo(a,b,ae){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!ae)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function Ra(a,b,ae,ne){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ae?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!ne)&&(a.doc.scrollLeft=b,Ws(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Un(a){var b=a.display,ae=b.gutters.offsetWidth,ne=Math.round(a.doc.height+bi(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?ae:0,docHeight:ne,scrollHeight:ne+ni(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ae}}var Wn=function(a,b,ae){this.cm=ae;var ne=this.vert=ge("div",[ge("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=ge("div",[ge("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ne.tabIndex=pe.tabIndex=-1,a(ne),a(pe),vt(ne,"scroll",function(){ne.clientHeight&&b(ne.scrollTop,"vertical")}),vt(pe,"scroll",function(){pe.clientWidth&&b(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,ve&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wn.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ae=a.scrollHeight>a.clientHeight+1,ne=a.nativeBarWidth;if(ae){this.vert.style.display="block",this.vert.style.bottom=b?ne+"px":"0";var pe=a.viewHeight-(b?ne:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ae?ne+"px":"0",this.horiz.style.left=a.barLeft+"px";var Be=a.viewWidth-a.barLeft-(ae?ne:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Be)+"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:ae?ne:0,bottom:b?ne:0}},Wn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Wn.prototype.zeroWidthHack=function(){var a=ce&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ue,this.disableVert=new Ue},Wn.prototype.enableZeroWidthBar=function(a,b,ae){a.style.pointerEvents="auto";function ne(){var pe=a.getBoundingClientRect(),Be=ae=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Be!=a?a.style.pointerEvents="none":b.set(1e3,ne)}b.set(1e3,ne)},Wn.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Ei=function(){};Ei.prototype.update=function(){return{bottom:0,right:0}},Ei.prototype.setScrollLeft=function(){},Ei.prototype.setScrollTop=function(){},Ei.prototype.clear=function(){};function Ni(a,b){b||(b=Un(a));var ae=a.display.barWidth,ne=a.display.barHeight;_i(a,b);for(var pe=0;pe<4&&ae!=a.display.barWidth||ne!=a.display.barHeight;pe++)ae!=a.display.barWidth&&a.options.lineWrapping&&lo(a),_i(a,Un(a)),ae=a.display.barWidth,ne=a.display.barHeight}function _i(a,b){var ae=a.display,ne=ae.scrollbars.update(b);ae.sizer.style.paddingRight=(ae.barWidth=ne.right)+"px",ae.sizer.style.paddingBottom=(ae.barHeight=ne.bottom)+"px",ae.heightForcer.style.borderBottom=ne.bottom+"px solid transparent",ne.right&&ne.bottom?(ae.scrollbarFiller.style.display="block",ae.scrollbarFiller.style.height=ne.bottom+"px",ae.scrollbarFiller.style.width=ne.right+"px"):ae.scrollbarFiller.style.display="",ne.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ae.gutterFiller.style.display="block",ae.gutterFiller.style.height=ne.bottom+"px",ae.gutterFiller.style.width=b.gutterWidth+"px"):ae.gutterFiller.style.display=""}var _a={native:Wn,null:Ei};function xa(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Pe(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new _a[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),vt(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,ae){ae=="horizontal"?Ra(a,b):Pa(a,b)},a),a.display.scrollbars.addClass&&Oe(a.display.wrapper,a.display.scrollbars.addClass)}var Ma=0;function fa(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:++Ma},Di(a.curOp)}function ga(a){var b=a.curOp;b&&yi(b,function(ae){for(var ne=0;ne<ae.ops.length;ne++)ae.ops[ne].cm.curOp=null;Vl(ae)})}function Vl(a){for(var b=a.ops,ae=0;ae<b.length;ae++)Xl(b[ae]);for(var ne=0;ne<b.length;ne++)Yl(b[ne]);for(var pe=0;pe<b.length;pe++)$l(b[pe]);for(var Be=0;Be<b.length;Be++)Jl(b[Be]);for(var qe=0;qe<b.length;qe++)Ql(b[qe])}function Xl(a){var b=a.cm,ae=b.display;eu(b),a.updateMaxLine&&_r(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ae.viewFrom||a.scrollToPos.to.line>=ae.viewTo)||ae.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new ns(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Yl(a){a.updatedDisplay=a.mustUpdate&&ys(a.cm,a.update)}function $l(a){var b=a.cm,ae=b.display;a.updatedDisplay&&lo(b),a.barMeasure=Un(b),ae.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=Ya(b,ae.maxLine,ae.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ae.scroller.clientWidth,ae.sizer.offsetLeft+a.adjustWidthTo+ni(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,ae.sizer.offsetLeft+a.adjustWidthTo-sa(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ae.input.prepareSelection())}function Jl(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&Ra(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var ae=a.focus&&a.focus==Ee();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ae),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Ni(b,a.barMeasure),a.updatedDisplay&&xs(b,a.barMeasure),a.selectionChanged&&To(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),ae&&Ao(a.cm)}function Ql(a){var b=a.cm,ae=b.display,ne=b.doc;if(a.updatedDisplay&&Us(b,a.update),ae.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ae.wheelStartX=ae.wheelStartY=null),a.scrollTop!=null&&Mo(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Ra(b,a.scrollLeft,!0,!0),a.scrollToPos){var pe=Ro(b,ar(ne,a.scrollToPos.from),ar(ne,a.scrollToPos.to),a.scrollToPos.margin);Po(b,pe)}var Be=a.maybeHiddenMarkers,qe=a.maybeUnhiddenMarkers;if(Be)for(var dt=0;dt<Be.length;++dt)Be[dt].lines.length||bt(Be[dt],"hide");if(qe)for(var pt=0;pt<qe.length;++pt)qe[pt].lines.length&&bt(qe[pt],"unhide");ae.wrapper.offsetHeight&&(ne.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&bt(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function aa(a,b){if(a.curOp)return b();fa(a);try{return b()}finally{ga(a)}}function Ii(a,b){return function(){if(a.curOp)return b.apply(a,arguments);fa(a);try{return b.apply(a,arguments)}finally{ga(a)}}}function Xi(a){return function(){if(this.curOp)return a.apply(this,arguments);fa(this);try{return a.apply(this,arguments)}finally{ga(this)}}}function Li(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);fa(b);try{return a.apply(this,arguments)}finally{ga(b)}}}function No(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,et(ql,a))}function ql(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var ae=+new Date+a.options.workTime,ne=On(a,b.highlightFrontier),pe=[];b.iter(ne.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Be){if(ne.line>=a.display.viewFrom){var qe=Be.styles,dt=Be.text.length>a.options.maxHighlightLength?Kr(b.mode,ne.state):null,pt=Fr(a,Be,ne,!0);dt&&(ne.state=dt),Be.styles=pt.styles;var gt=Be.styleClasses,Et=pt.classes;Et?Be.styleClasses=Et:gt&&(Be.styleClasses=null);for(var At=!qe||qe.length!=Be.styles.length||gt!=Et&&(!gt||!Et||gt.bgClass!=Et.bgClass||gt.textClass!=Et.textClass),Ut=0;!At&&Ut<qe.length;++Ut)At=qe[Ut]!=Be.styles[Ut];At&&pe.push(ne.line),Be.stateAfter=ne.save(),ne.nextLine()}else Be.text.length<=a.options.maxHighlightLength&&zr(a,Be.text,ne),Be.stateAfter=ne.line%5==0?ne.save():null,ne.nextLine();if(+new Date>ae)return No(a,a.options.workDelay),!0}),b.highlightFrontier=ne.line,b.modeFrontier=Math.max(b.modeFrontier,ne.line),pe.length&&aa(a,function(){for(var Be=0;Be<pe.length;Be++)ca(a,pe[Be],"text")})}}var ns=function(a,b,ae){var ne=a.display;this.viewport=b,this.visible=ja(ne,a.doc,b),this.editorIsHidden=!ne.wrapper.offsetWidth,this.wrapperHeight=ne.wrapper.clientHeight,this.wrapperWidth=ne.wrapper.clientWidth,this.oldDisplayWidth=sa(a),this.force=ae,this.dims=ua(a),this.events=[]};ns.prototype.signal=function(a,b){Tt(a,b)&&this.events.push(arguments)},ns.prototype.finish=function(){for(var a=0;a<this.events.length;a++)bt.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=ni(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=ni(a)+"px",b.scrollbarsClipped=!0)}function tu(a){if(a.hasFocus())return null;var b=Ee();if(!b||!_e(a.display.lineDiv,b))return null;var ae={activeElt:b};if(window.getSelection){var ne=window.getSelection();ne.anchorNode&&ne.extend&&_e(a.display.lineDiv,ne.anchorNode)&&(ae.anchorNode=ne.anchorNode,ae.anchorOffset=ne.anchorOffset,ae.focusNode=ne.focusNode,ae.focusOffset=ne.focusOffset)}return ae}function ru(a){if(!(!a||!a.activeElt||a.activeElt==Ee())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&_e(document.body,a.anchorNode)&&_e(document.body,a.focusNode))){var b=window.getSelection(),ae=document.createRange();ae.setEnd(a.anchorNode,a.anchorOffset),ae.collapse(!1),b.removeAllRanges(),b.addRange(ae),b.extend(a.focusNode,a.focusOffset)}}function ys(a,b){var ae=a.display,ne=a.doc;if(b.editorIsHidden)return Qi(a),!1;if(!b.force&&b.visible.from>=ae.viewFrom&&b.visible.to<=ae.viewTo&&(ae.updateLineNumbers==null||ae.updateLineNumbers>=ae.viewTo)&&ae.renderedView==ae.view&&Qo(a)==0)return!1;Zs(a)&&(Qi(a),b.dims=ua(a));var pe=ne.first+ne.size,Be=Math.max(b.visible.from-a.options.viewportMargin,ne.first),qe=Math.min(pe,b.visible.to+a.options.viewportMargin);ae.viewFrom<Be&&Be-ae.viewFrom<20&&(Be=Math.max(ne.first,ae.viewFrom)),ae.viewTo>qe&&ae.viewTo-qe<20&&(qe=Math.min(pe,ae.viewTo)),_n&&(Be=er(a.doc,Be),qe=Ft(a.doc,qe));var dt=Be!=ae.viewFrom||qe!=ae.viewTo||ae.lastWrapHeight!=b.wrapperHeight||ae.lastWrapWidth!=b.wrapperWidth;Jo(a,Be,qe),ae.viewOffset=Tr(Wt(a.doc,ae.viewFrom)),a.display.mover.style.top=ae.viewOffset+"px";var pt=Qo(a);if(!dt&&pt==0&&!b.force&&ae.renderedView==ae.view&&(ae.updateLineNumbers==null||ae.updateLineNumbers>=ae.viewTo))return!1;var gt=tu(a);return pt>4&&(ae.lineDiv.style.display="none"),nu(a,ae.updateLineNumbers,b.dims),pt>4&&(ae.lineDiv.style.display=""),ae.renderedView=ae.view,ru(gt),ke(ae.cursorDiv),ke(ae.selectionDiv),ae.gutters.style.height=ae.sizer.style.minHeight=0,dt&&(ae.lastWrapHeight=b.wrapperHeight,ae.lastWrapWidth=b.wrapperWidth,No(a,400)),ae.updateLineNumbers=null,!0}function Us(a,b){for(var ae=b.viewport,ne=!0;;ne=!1){if(!ne||!a.options.lineWrapping||b.oldDisplayWidth==sa(a)){if(ae&&ae.top!=null&&(ae={top:Math.min(a.doc.height+bi(a.display)-Vi(a),ae.top)}),b.visible=ja(a.display,a.doc,ae),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else ne&&(b.visible=ja(a.display,a.doc,ae));if(!ys(a,b))break;lo(a);var pe=Un(a);Ua(a),Ni(a,pe),xs(a,pe),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 bs(a,b){var ae=new ns(a,b);if(ys(a,ae)){lo(a),Us(a,ae);var ne=Un(a);Ua(a),Ni(a,ne),xs(a,ne),ae.finish()}}function nu(a,b,ae){var ne=a.display,pe=a.options.lineNumbers,Be=ne.lineDiv,qe=Be.firstChild;function dt(cr){var yr=cr.nextSibling;return z&&ce&&a.display.currentWheelTarget==cr?cr.style.display="none":cr.parentNode.removeChild(cr),yr}for(var pt=ne.view,gt=ne.viewFrom,Et=0;Et<pt.length;Et++){var At=pt[Et];if(!At.hidden)if(!At.node||At.node.parentNode!=Be){var Ut=Cn(a,At,gt,ae);Be.insertBefore(Ut,qe)}else{for(;qe!=At.node;)qe=dt(qe);var It=pe&&b!=null&&b<=gt&&At.lineNumber;At.changes&&(rt(At.changes,"gutter")>-1&&(It=!1),ti(a,At,gt,ae)),It&&(ke(At.lineNumber),At.lineNumber.appendChild(document.createTextNode(Gt(a.options,gt)))),qe=At.node.nextSibling}gt+=At.size}for(;qe;)qe=dt(qe)}function ws(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function xs(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+ni(a)+"px"}function Ws(a){var b=a.display,ae=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var ne=Qa(b)-b.scroller.scrollLeft+a.doc.scrollLeft,pe=b.gutters.offsetWidth,Be=ne+"px",qe=0;qe<ae.length;qe++)if(!ae[qe].hidden){a.options.fixedGutter&&(ae[qe].gutter&&(ae[qe].gutter.style.left=Be),ae[qe].gutterBackground&&(ae[qe].gutterBackground.style.left=Be));var dt=ae[qe].alignable;if(dt)for(var pt=0;pt<dt.length;pt++)dt[pt].style.left=Be}a.options.fixedGutter&&(b.gutters.style.left=ne+pe+"px")}}function Zs(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ae=Gt(a.options,b.first+b.size-1),ne=a.display;if(ae.length!=ne.lineNumChars){var pe=ne.measure.appendChild(ge("div",[ge("div",ae)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Be=pe.firstChild.offsetWidth,qe=pe.offsetWidth-Be;return ne.lineGutter.style.width="",ne.lineNumInnerWidth=Math.max(Be,ne.lineGutter.offsetWidth-qe)+1,ne.lineNumWidth=ne.lineNumInnerWidth+qe,ne.lineNumChars=ne.lineNumInnerWidth?ae.length:-1,ne.lineGutter.style.width=ne.lineNumWidth+"px",ws(a.display),!0}return!1}function Ss(a,b){for(var ae=[],ne=!1,pe=0;pe<a.length;pe++){var Be=a[pe],qe=null;if(typeof Be!="string"&&(qe=Be.style,Be=Be.className),Be=="CodeMirror-linenumbers")if(b)ne=!0;else continue;ae.push({className:Be,style:qe})}return b&&!ne&&ae.push({className:"CodeMirror-linenumbers",style:null}),ae}function Hs(a){var b=a.gutters,ae=a.gutterSpecs;ke(b),a.lineGutter=null;for(var ne=0;ne<ae.length;++ne){var pe=ae[ne],Be=pe.className,qe=pe.style,dt=b.appendChild(ge("div",null,"CodeMirror-gutter "+Be));qe&&(dt.style.cssText=qe),Be=="CodeMirror-linenumbers"&&(a.lineGutter=dt,dt.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ae.length?"":"none",ws(a)}function Io(a){Hs(a.display),Wi(a),Ws(a)}function iu(a,b,ae,ne){var pe=this;this.input=ae,pe.scrollbarFiller=ge("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=ge("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=Se("div",null,"CodeMirror-code"),pe.selectionDiv=ge("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=ge("div",null,"CodeMirror-cursors"),pe.measure=ge("div",null,"CodeMirror-measure"),pe.lineMeasure=ge("div",null,"CodeMirror-measure"),pe.lineSpace=Se("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Be=Se("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=ge("div",[Be],null,"position: relative"),pe.sizer=ge("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=ge("div",null,null,"position: absolute; height: "+ot+"px; width: 1px;"),pe.gutters=ge("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=ge("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=ge("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),ve&&x<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!z&&!(Je&&ue)&&(pe.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(pe.wrapper):a(pe.wrapper)),pe.viewFrom=pe.viewTo=b.first,pe.reportedViewFrom=pe.reportedViewTo=b.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=Ss(ne.gutters,ne.lineNumbers),Hs(pe),ae.init(pe)}var is=0,da=null;ve?da=-.53:Je?da=15:ie?da=-.7:se&&(da=-1/3);function zs(a){var b=a.wheelDeltaX,ae=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),ae==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ae=a.detail:ae==null&&(ae=a.wheelDelta),{x:b,y:ae}}function au(a){var b=zs(a);return b.x*=da,b.y*=da,b}function Gs(a,b){var ae=zs(b),ne=ae.x,pe=ae.y,Be=a.display,qe=Be.scroller,dt=qe.scrollWidth>qe.clientWidth,pt=qe.scrollHeight>qe.clientHeight;if(ne&&dt||pe&&pt){if(pe&&ce&&z){e:for(var gt=b.target,Et=Be.view;gt!=qe;gt=gt.parentNode)for(var At=0;At<Et.length;At++)if(Et[At].node==gt){a.display.currentWheelTarget=gt;break e}}if(ne&&!Je&&!ee&&da!=null){pe&&pt&&Pa(a,Math.max(0,qe.scrollTop+pe*da)),Ra(a,Math.max(0,qe.scrollLeft+ne*da)),(!pe||pe&&pt)&&Vt(b),Be.wheelStartX=null;return}if(pe&&da!=null){var Ut=pe*da,It=a.doc.scrollTop,cr=It+Be.wrapper.clientHeight;Ut<0?It=Math.max(0,It+Ut-50):cr=Math.min(a.doc.height,cr+Ut+50),bs(a,{top:It,bottom:cr})}is<20&&(Be.wheelStartX==null?(Be.wheelStartX=qe.scrollLeft,Be.wheelStartY=qe.scrollTop,Be.wheelDX=ne,Be.wheelDY=pe,setTimeout(function(){if(Be.wheelStartX!=null){var yr=qe.scrollLeft-Be.wheelStartX,Or=qe.scrollTop-Be.wheelStartY,Lr=Or&&Be.wheelDY&&Or/Be.wheelDY||yr&&Be.wheelDX&&yr/Be.wheelDX;Be.wheelStartX=Be.wheelStartY=null,Lr&&(da=(da*is+Lr)/(is+1),++is)}},200)):(Be.wheelDX+=ne,Be.wheelDY+=pe))}}var ha=function(a,b){this.ranges=a,this.primIndex=b};ha.prototype.primary=function(){return this.ranges[this.primIndex]},ha.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 ae=this.ranges[b],ne=a.ranges[b];if(!hr(ae.anchor,ne.anchor)||!hr(ae.head,ne.head))return!1}return!0},ha.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new ii(fr(this.ranges[b].anchor),fr(this.ranges[b].head));return new ha(a,this.primIndex)},ha.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},ha.prototype.contains=function(a,b){b||(b=a);for(var ae=0;ae<this.ranges.length;ae++){var ne=this.ranges[ae];if(tr(b,ne.from())>=0&&tr(a,ne.to())<=0)return ae}return-1};var ii=function(a,b){this.anchor=a,this.head=b};ii.prototype.from=function(){return sr(this.anchor,this.head)},ii.prototype.to=function(){return kr(this.anchor,this.head)},ii.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ya(a,b,ae){var ne=a&&a.options.selectionsMayTouch,pe=b[ae];b.sort(function(Ut,It){return tr(Ut.from(),It.from())}),ae=rt(b,pe);for(var Be=1;Be<b.length;Be++){var qe=b[Be],dt=b[Be-1],pt=tr(dt.to(),qe.from());if(ne&&!qe.empty()?pt>0:pt>=0){var gt=sr(dt.from(),qe.from()),Et=kr(dt.to(),qe.to()),At=dt.empty()?qe.from()==qe.head:dt.from()==dt.head;Be<=ae&&--ae,b.splice(--Be,2,new ii(At?Et:gt,At?gt:Et))}}return new ha(b,ae)}function Ha(a,b){return new ha([new ii(a,b||a)],0)}function za(a){return a.text?jt(a.from.line+a.text.length-1,lt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ks(a,b){if(tr(a,b.from)<0)return a;if(tr(a,b.to)<=0)return za(b);var ae=a.line+b.text.length-(b.to.line-b.from.line)-1,ne=a.ch;return a.line==b.to.line&&(ne+=za(b).ch-b.to.ch),jt(ae,ne)}function Es(a,b){for(var ae=[],ne=0;ne<a.sel.ranges.length;ne++){var pe=a.sel.ranges[ne];ae.push(new ii(Ks(pe.anchor,b),Ks(pe.head,b)))}return ya(a.cm,ae,a.sel.primIndex)}function Vs(a,b,ae){return a.line==b.line?jt(ae.line,a.ch-b.ch+ae.ch):jt(ae.line+(a.line-b.line),a.ch)}function ou(a,b,ae){for(var ne=[],pe=jt(a.first,0),Be=pe,qe=0;qe<b.length;qe++){var dt=b[qe],pt=Vs(dt.from,pe,Be),gt=Vs(za(dt),pe,Be);if(pe=dt.to,Be=gt,ae=="around"){var Et=a.sel.ranges[qe],At=tr(Et.head,Et.anchor)<0;ne[qe]=new ii(At?gt:pt,At?pt:gt)}else ne[qe]=new ii(pt,pt)}return new ha(ne,a.sel.primIndex)}function Cs(a){a.doc.mode=Hr(a.options,a.doc.modeOption),Lo(a)}function Lo(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,No(a,100),a.state.modeGen++,a.curOp&&Wi(a)}function Xs(a,b){return b.from.ch==0&&b.to.ch==0&&lt(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function ks(a,b,ae,ne){function pe($r){return ae?ae[$r]:null}function Be($r,Br,an){qr($r,Br,an,ne),qn($r,"change",$r,b)}function qe($r,Br){for(var an=[],Dn=$r;Dn<Br;++Dn)an.push(new ln(gt[Dn],pe(Dn),ne));return an}var dt=b.from,pt=b.to,gt=b.text,Et=Wt(a,dt.line),At=Wt(a,pt.line),Ut=lt(gt),It=pe(gt.length-1),cr=pt.line-dt.line;if(b.full)a.insert(0,qe(0,gt.length)),a.remove(gt.length,a.size-gt.length);else if(Xs(a,b)){var yr=qe(0,gt.length-1);Be(At,At.text,It),cr&&a.remove(dt.line,cr),yr.length&&a.insert(dt.line,yr)}else if(Et==At)if(gt.length==1)Be(Et,Et.text.slice(0,dt.ch)+Ut+Et.text.slice(pt.ch),It);else{var Or=qe(1,gt.length-1);Or.push(new ln(Ut+Et.text.slice(pt.ch),It,ne)),Be(Et,Et.text.slice(0,dt.ch)+gt[0],pe(0)),a.insert(dt.line+1,Or)}else if(gt.length==1)Be(Et,Et.text.slice(0,dt.ch)+gt[0]+At.text.slice(pt.ch),pe(0)),a.remove(dt.line+1,cr);else{Be(Et,Et.text.slice(0,dt.ch)+gt[0],pe(0)),Be(At,Ut+At.text.slice(pt.ch),It);var Lr=qe(1,gt.length-1);cr>1&&a.remove(dt.line+1,cr-1),a.insert(dt.line+1,Lr)}qn(a,"change",a,b)}function Ga(a,b,ae){function ne(pe,Be,qe){if(pe.linked)for(var dt=0;dt<pe.linked.length;++dt){var pt=pe.linked[dt];if(pt.doc!=Be){var gt=qe&&pt.sharedHist;ae&&!gt||(b(pt.doc,gt),ne(pt.doc,pe,gt))}}}ne(a,null,!0)}function Ys(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,Co(a),Cs(a),$s(a),a.options.lineWrapping||_r(a),a.options.mode=b.modeOption,Wi(a)}function $s(a){(a.doc.direction=="rtl"?Oe:Pe)(a.display.lineDiv,"CodeMirror-rtl")}function su(a){aa(a,function(){$s(a),Wi(a)})}function as(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 Ts(a,b){var ae={from:fr(b.from),to:za(b),text:Sr(a,b.from,b.to)};return el(a,ae,b.from.line,b.to.line+1),Ga(a,function(ne){return el(ne,ae,b.from.line,b.to.line+1)},!0),ae}function Js(a){for(;a.length;){var b=lt(a);if(b.ranges)a.pop();else break}}function lu(a,b){if(b)return Js(a.done),lt(a.done);if(a.done.length&&!lt(a.done).ranges)return lt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),lt(a.done)}function Qs(a,b,ae,ne){var pe=a.history;pe.undone.length=0;var Be=+new Date,qe,dt;if((pe.lastOp==ne||pe.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&pe.lastModTime>Be-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(qe=lu(pe,pe.lastOp==ne)))dt=lt(qe.changes),tr(b.from,b.to)==0&&tr(b.from,dt.to)==0?dt.to=za(b):qe.changes.push(Ts(a,b));else{var pt=lt(pe.done);for((!pt||!pt.ranges)&&os(a.sel,pe.done),qe={changes:[Ts(a,b)],generation:pe.generation},pe.done.push(qe);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(ae),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Be,pe.lastOp=pe.lastSelOp=ne,pe.lastOrigin=pe.lastSelOrigin=b.origin,dt||bt(a,"historyAdded")}function uu(a,b,ae,ne){var pe=b.charAt(0);return pe=="*"||pe=="+"&&ae.ranges.length==ne.ranges.length&&ae.somethingSelected()==ne.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function cu(a,b,ae,ne){var pe=a.history,Be=ne&&ne.origin;ae==pe.lastSelOp||Be&&pe.lastSelOrigin==Be&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Be||uu(a,Be,lt(pe.done),b))?pe.done[pe.done.length-1]=b:os(b,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Be,pe.lastSelOp=ae,ne&&ne.clearRedo!==!1&&Js(pe.undone)}function os(a,b){var ae=lt(b);ae&&ae.ranges&&ae.equals(a)||b.push(a)}function el(a,b,ae,ne){var pe=b["spans_"+a.id],Be=0;a.iter(Math.max(a.first,ae),Math.min(a.first+a.size,ne),function(qe){qe.markedSpans&&((pe||(pe=b["spans_"+a.id]={}))[Be]=qe.markedSpans),++Be})}function fu(a){if(!a)return null;for(var b,ae=0;ae<a.length;++ae)a[ae].marker.explicitlyCleared?b||(b=a.slice(0,ae)):b&&b.push(a[ae]);return b?b.length?b:null:a}function du(a,b){var ae=b["spans_"+a.id];if(!ae)return null;for(var ne=[],pe=0;pe<b.text.length;++pe)ne.push(fu(ae[pe]));return ne}function tl(a,b){var ae=du(a,b),ne=ri(a,b);if(!ae)return ne;if(!ne)return ae;for(var pe=0;pe<ae.length;++pe){var Be=ae[pe],qe=ne[pe];if(Be&&qe)e:for(var dt=0;dt<qe.length;++dt){for(var pt=qe[dt],gt=0;gt<Be.length;++gt)if(Be[gt].marker==pt.marker)continue e;Be.push(pt)}else qe&&(ae[pe]=qe)}return ae}function fo(a,b,ae){for(var ne=[],pe=0;pe<a.length;++pe){var Be=a[pe];if(Be.ranges){ne.push(ae?ha.prototype.deepCopy.call(Be):Be);continue}var qe=Be.changes,dt=[];ne.push({changes:dt});for(var pt=0;pt<qe.length;++pt){var gt=qe[pt],Et=void 0;if(dt.push({from:gt.from,to:gt.to,text:gt.text}),b)for(var At in gt)(Et=At.match(/^spans_(\d+)$/))&&rt(b,Number(Et[1]))>-1&&(lt(dt)[At]=gt[At],delete gt[At])}}return ne}function As(a,b,ae,ne){if(ne){var pe=a.anchor;if(ae){var Be=tr(b,pe)<0;Be!=tr(ae,pe)<0?(pe=b,b=ae):Be!=tr(b,ae)<0&&(b=ae)}return new ii(pe,b)}else return new ii(ae||b,b)}function ss(a,b,ae,ne,pe){pe==null&&(pe=a.cm&&(a.cm.display.shift||a.extend)),zi(a,new ha([As(a.sel.primary(),b,ae,pe)],0),ne)}function rl(a,b,ae){for(var ne=[],pe=a.cm&&(a.cm.display.shift||a.extend),Be=0;Be<a.sel.ranges.length;Be++)ne[Be]=As(a.sel.ranges[Be],b[Be],null,pe);var qe=ya(a.cm,ne,a.sel.primIndex);zi(a,qe,ae)}function Ds(a,b,ae,ne){var pe=a.sel.ranges.slice(0);pe[b]=ae,zi(a,ya(a.cm,pe,a.sel.primIndex),ne)}function nl(a,b,ae,ne){zi(a,Ha(b,ae),ne)}function hu(a,b,ae){var ne={ranges:b.ranges,update:function(pe){this.ranges=[];for(var Be=0;Be<pe.length;Be++)this.ranges[Be]=new ii(ar(a,pe[Be].anchor),ar(a,pe[Be].head))},origin:ae&&ae.origin};return bt(a,"beforeSelectionChange",a,ne),a.cm&&bt(a.cm,"beforeSelectionChange",a.cm,ne),ne.ranges!=b.ranges?ya(a.cm,ne.ranges,ne.ranges.length-1):b}function il(a,b,ae){var ne=a.history.done,pe=lt(ne);pe&&pe.ranges?(ne[ne.length-1]=b,ls(a,b,ae)):zi(a,b,ae)}function zi(a,b,ae){ls(a,b,ae),cu(a,a.sel,a.cm?a.cm.curOp.id:NaN,ae)}function ls(a,b,ae){(Tt(a,"beforeSelectionChange")||a.cm&&Tt(a.cm,"beforeSelectionChange"))&&(b=hu(a,b,ae));var ne=ae&&ae.bias||(tr(b.primary().head,a.sel.primary().head)<0?-1:1);al(a,sl(a,b,ne,!0)),!(ae&&ae.scroll===!1)&&a.cm&&Oa(a.cm)}function al(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,kt(a.cm)),qn(a,"cursorActivity",a))}function ol(a){al(a,sl(a,a.sel,null,!1))}function sl(a,b,ae,ne){for(var pe,Be=0;Be<b.ranges.length;Be++){var qe=b.ranges[Be],dt=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Be],pt=us(a,qe.anchor,dt&&dt.anchor,ae,ne),gt=us(a,qe.head,dt&&dt.head,ae,ne);(pe||pt!=qe.anchor||gt!=qe.head)&&(pe||(pe=b.ranges.slice(0,Be)),pe[Be]=new ii(pt,gt))}return pe?ya(a.cm,pe,b.primIndex):b}function ho(a,b,ae,ne,pe){var Be=Wt(a,b.line);if(Be.markedSpans)for(var qe=0;qe<Be.markedSpans.length;++qe){var dt=Be.markedSpans[qe],pt=dt.marker,gt="selectLeft"in pt?!pt.selectLeft:pt.inclusiveLeft,Et="selectRight"in pt?!pt.selectRight:pt.inclusiveRight;if((dt.from==null||(gt?dt.from<=b.ch:dt.from<b.ch))&&(dt.to==null||(Et?dt.to>=b.ch:dt.to>b.ch))){if(pe&&(bt(pt,"beforeCursorEnter"),pt.explicitlyCleared))if(Be.markedSpans){--qe;continue}else break;if(!pt.atomic)continue;if(ae){var At=pt.find(ne<0?1:-1),Ut=void 0;if((ne<0?Et:gt)&&(At=ll(a,At,-ne,At&&At.line==b.line?Be:null)),At&&At.line==b.line&&(Ut=tr(At,ae))&&(ne<0?Ut<0:Ut>0))return ho(a,At,b,ne,pe)}var It=pt.find(ne<0?-1:1);return(ne<0?gt:Et)&&(It=ll(a,It,ne,It.line==b.line?Be:null)),It?ho(a,It,b,ne,pe):null}}return b}function us(a,b,ae,ne,pe){var Be=ne||1,qe=ho(a,b,ae,Be,pe)||!pe&&ho(a,b,ae,Be,!0)||ho(a,b,ae,-Be,pe)||!pe&&ho(a,b,ae,-Be,!0);return qe||(a.cantEdit=!0,jt(a.first,0))}function ll(a,b,ae,ne){return ae<0&&b.ch==0?b.line>a.first?ar(a,jt(b.line-1)):null:ae>0&&b.ch==(ne||Wt(a,b.line)).text.length?b.line<a.first+a.size-1?jt(b.line+1,0):null:new jt(b.line,b.ch+ae)}function ul(a){a.setSelection(jt(a.firstLine(),0),jt(a.lastLine()),Ye)}function cl(a,b,ae){var ne={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return ne.canceled=!0}};return ae&&(ne.update=function(pe,Be,qe,dt){pe&&(ne.from=ar(a,pe)),Be&&(ne.to=ar(a,Be)),qe&&(ne.text=qe),dt!==void 0&&(ne.origin=dt)}),bt(a,"beforeChange",a,ne),a.cm&&bt(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 po(a,b,ae){if(a.cm){if(!a.cm.curOp)return Ii(a.cm,po)(a,b,ae);if(a.cm.state.suppressEdits)return}if(!((Tt(a,"beforeChange")||a.cm&&Tt(a.cm,"beforeChange"))&&(b=cl(a,b,!0),!b))){var ne=Gn&&!ae&&Lt(a,b.from,b.to);if(ne)for(var pe=ne.length-1;pe>=0;--pe)fl(a,{from:ne[pe].from,to:ne[pe].to,text:pe?[""]:b.text,origin:b.origin});else fl(a,b)}}function fl(a,b){if(!(b.text.length==1&&b.text[0]==""&&tr(b.from,b.to)==0)){var ae=Es(a,b);Qs(a,b,ae,a.cm?a.cm.curOp.id:NaN),Bo(a,b,ae,ri(a,b));var ne=[];Ga(a,function(pe,Be){!Be&&rt(ne,pe.history)==-1&&(ml(pe.history,b),ne.push(pe.history)),Bo(pe,b,null,ri(pe,b))})}}function cs(a,b,ae){var ne=a.cm&&a.cm.state.suppressEdits;if(!(ne&&!ae)){for(var pe=a.history,Be,qe=a.sel,dt=b=="undo"?pe.done:pe.undone,pt=b=="undo"?pe.undone:pe.done,gt=0;gt<dt.length&&(Be=dt[gt],!(ae?Be.ranges&&!Be.equals(a.sel):!Be.ranges));gt++);if(gt!=dt.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Be=dt.pop(),Be.ranges){if(os(Be,pt),ae&&!Be.equals(a.sel)){zi(a,Be,{clearRedo:!1});return}qe=Be}else if(ne){dt.push(Be);return}else break;var Et=[];os(qe,pt),pt.push({changes:Et,generation:pe.generation}),pe.generation=Be.generation||++pe.maxGeneration;for(var At=Tt(a,"beforeChange")||a.cm&&Tt(a.cm,"beforeChange"),Ut=function(yr){var Or=Be.changes[yr];if(Or.origin=b,At&&!cl(a,Or,!1))return dt.length=0,{};Et.push(Ts(a,Or));var Lr=yr?Es(a,Or):lt(dt);Bo(a,Or,Lr,tl(a,Or)),!yr&&a.cm&&a.cm.scrollIntoView({from:Or.from,to:za(Or)});var $r=[];Ga(a,function(Br,an){!an&&rt($r,Br.history)==-1&&(ml(Br.history,Or),$r.push(Br.history)),Bo(Br,Or,null,tl(Br,Or))})},It=Be.changes.length-1;It>=0;--It){var cr=Ut(It);if(cr)return cr.v}}}}function dl(a,b){if(b!=0&&(a.first+=b,a.sel=new ha(Ze(a.sel.ranges,function(pe){return new ii(jt(pe.anchor.line+b,pe.anchor.ch),jt(pe.head.line+b,pe.head.ch))}),a.sel.primIndex),a.cm)){Wi(a.cm,a.first,a.first-b,b);for(var ae=a.cm.display,ne=ae.viewFrom;ne<ae.viewTo;ne++)ca(a.cm,ne,"gutter")}}function Bo(a,b,ae,ne){if(a.cm&&!a.cm.curOp)return Ii(a.cm,Bo)(a,b,ae,ne);if(b.to.line<a.first){dl(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 pe=b.text.length-1-(a.first-b.from.line);dl(a,pe),b={from:jt(a.first,0),to:jt(b.to.line+pe,b.to.ch),text:[lt(b.text)],origin:b.origin}}var Be=a.lastLine();b.to.line>Be&&(b={from:b.from,to:jt(Be,Wt(a,Be).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Sr(a,b.from,b.to),ae||(ae=Es(a,b)),a.cm?pu(a.cm,b,ne):ks(a,b,ne),ls(a,ae,Ye),a.cantEdit&&us(a,jt(a.firstLine(),0))&&(a.cantEdit=!1)}}function pu(a,b,ae){var ne=a.doc,pe=a.display,Be=b.from,qe=b.to,dt=!1,pt=Be.line;a.options.lineWrapping||(pt=Ct(zt(Wt(ne,Be.line))),ne.iter(pt,qe.line+1,function(It){if(It==pe.maxLine)return dt=!0,!0})),ne.sel.contains(b.from,b.to)>-1&&kt(a),ks(ne,b,ae,Eo(a)),a.options.lineWrapping||(ne.iter(pt,Be.line+b.text.length,function(It){var cr=Vr(It);cr>pe.maxLineLength&&(pe.maxLine=It,pe.maxLineLength=cr,pe.maxLineChanged=!0,dt=!1)}),dt&&(a.curOp.updateMaxLine=!0)),Yn(ne,Be.line),No(a,400);var gt=b.text.length-(qe.line-Be.line)-1;b.full?Wi(a):Be.line==qe.line&&b.text.length==1&&!Xs(a.doc,b)?ca(a,Be.line,"text"):Wi(a,Be.line,qe.line+1,gt);var Et=Tt(a,"changes"),At=Tt(a,"change");if(At||Et){var Ut={from:Be,to:qe,text:b.text,removed:b.removed,origin:b.origin};At&&qn(a,"change",a,Ut),Et&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ut)}a.display.selForContextMenu=null}function mo(a,b,ae,ne,pe){var Be;ne||(ne=ae),tr(ne,ae)<0&&(Be=[ne,ae],ae=Be[0],ne=Be[1]),typeof b=="string"&&(b=a.splitLines(b)),po(a,{from:ae,to:ne,text:b,origin:pe})}function hl(a,b,ae,ne){ae<a.line?a.line+=ne:b<a.line&&(a.line=b,a.ch=0)}function pl(a,b,ae,ne){for(var pe=0;pe<a.length;++pe){var Be=a[pe],qe=!0;if(Be.ranges){Be.copied||(Be=a[pe]=Be.deepCopy(),Be.copied=!0);for(var dt=0;dt<Be.ranges.length;dt++)hl(Be.ranges[dt].anchor,b,ae,ne),hl(Be.ranges[dt].head,b,ae,ne);continue}for(var pt=0;pt<Be.changes.length;++pt){var gt=Be.changes[pt];if(ae<gt.from.line)gt.from=jt(gt.from.line+ne,gt.from.ch),gt.to=jt(gt.to.line+ne,gt.to.ch);else if(b<=gt.to.line){qe=!1;break}}qe||(a.splice(0,pe+1),pe=0)}}function ml(a,b){var ae=b.from.line,ne=b.to.line,pe=b.text.length-(ne-ae)-1;pl(a.done,ae,ne,pe),pl(a.undone,ae,ne,pe)}function Fo(a,b,ae,ne){var pe=b,Be=b;return typeof b=="number"?Be=Wt(a,xr(a,b)):pe=Ct(b),pe==null?null:(ne(Be,pe)&&a.cm&&ca(a.cm,pe,ae),Be)}function Uo(a){this.lines=a,this.parent=null;for(var b=0,ae=0;ae<a.length;++ae)a[ae].parent=this,b+=a[ae].height;this.height=b}Uo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ae=a,ne=a+b;ae<ne;++ae){var pe=this.lines[ae];this.height-=pe.height,sn(pe),qn(pe,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,ae){this.height+=ae,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,ae){for(var ne=a+b;a<ne;++a)if(ae(this.lines[a]))return!0}};function Wo(a){this.children=a;for(var b=0,ae=0,ne=0;ne<a.length;++ne){var pe=a[ne];b+=pe.chunkSize(),ae+=pe.height,pe.parent=this}this.size=b,this.height=ae,this.parent=null}Wo.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ae=0;ae<this.children.length;++ae){var ne=this.children[ae],pe=ne.chunkSize();if(a<pe){var Be=Math.min(b,pe-a),qe=ne.height;if(ne.removeInner(a,Be),this.height-=qe-ne.height,pe==Be&&(this.children.splice(ae--,1),ne.parent=null),(b-=Be)==0)break;a=0}else a-=pe}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Uo))){var dt=[];this.collapse(dt),this.children=[new Uo(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,ae){this.size+=b.length,this.height+=ae;for(var ne=0;ne<this.children.length;++ne){var pe=this.children[ne],Be=pe.chunkSize();if(a<=Be){if(pe.insertInner(a,b,ae),pe.lines&&pe.lines.length>50){for(var qe=pe.lines.length%25+25,dt=qe;dt<pe.lines.length;){var pt=new Uo(pe.lines.slice(dt,dt+=25));pe.height-=pt.height,this.children.splice(++ne,0,pt),pt.parent=this}pe.lines=pe.lines.slice(0,qe),this.maybeSpill()}break}a-=Be}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ae=new Wo(b);if(a.parent){a.size-=ae.size,a.height-=ae.height;var pe=rt(a.parent.children,a);a.parent.children.splice(pe+1,0,ae)}else{var ne=new Wo(a.children);ne.parent=a,a.children=[ne,ae],a=ne}ae.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ae){for(var ne=0;ne<this.children.length;++ne){var pe=this.children[ne],Be=pe.chunkSize();if(a<Be){var qe=Math.min(b,Be-a);if(pe.iterN(a,qe,ae))return!0;if((b-=qe)==0)break;a=0}else a-=Be}}};var Zo=function(a,b,ae){if(ae)for(var ne in ae)ae.hasOwnProperty(ne)&&(this[ne]=ae[ne]);this.doc=a,this.node=b};Zo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ae=this.line,ne=Ct(ae);if(!(ne==null||!b)){for(var pe=0;pe<b.length;++pe)b[pe]==this&&b.splice(pe--,1);b.length||(ae.widgets=null);var Be=fi(this);gn(ae,Math.max(0,ae.height-Be)),a&&(aa(a,function(){vl(a,ae,-Be),ca(a,ne,"widget")}),qn(a,"lineWidgetCleared",a,this,ne))}},Zo.prototype.changed=function(){var a=this,b=this.height,ae=this.doc.cm,ne=this.line;this.height=null;var pe=fi(this)-b;pe&&(ur(this.doc,ne)||gn(ne,ne.height+pe),ae&&aa(ae,function(){ae.curOp.forceUpdate=!0,vl(ae,ne,pe),qn(ae,"lineWidgetChanged",ae,a,Ct(ne))}))},Pt(Zo);function vl(a,b,ae){Tr(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&co(a,ae)}function mu(a,b,ae,ne){var pe=new Zo(a,ae,ne),Be=a.cm;return Be&&pe.noHScroll&&(Be.display.alignWidgets=!0),Fo(a,b,"widget",function(qe){var dt=qe.widgets||(qe.widgets=[]);if(pe.insertAt==null?dt.push(pe):dt.splice(Math.min(dt.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=qe,Be&&!ur(a,qe)){var pt=Tr(qe)<a.scrollTop;gn(qe,qe.height+fi(pe)),pt&&co(Be,pe.height),Be.curOp.forceUpdate=!0}return!0}),Be&&qn(Be,"lineWidgetAdded",Be,pe,typeof b=="number"?b:Ct(b)),pe}var gl=0,Ka=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++gl};Ka.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&fa(a),Tt(this,"clear")){var ae=this.find();ae&&qn(this,"clear",ae.from,ae.to)}for(var ne=null,pe=null,Be=0;Be<this.lines.length;++Be){var qe=this.lines[Be],dt=on(qe.markedSpans,this);a&&!this.collapsed?ca(a,Ct(qe),"text"):a&&(dt.to!=null&&(pe=Ct(qe)),dt.from!=null&&(ne=Ct(qe))),qe.markedSpans=Tn(qe.markedSpans,dt),dt.from==null&&this.collapsed&&!ur(this.doc,qe)&&a&&gn(qe,Ri(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var pt=0;pt<this.lines.length;++pt){var gt=zt(this.lines[pt]),Et=Vr(gt);Et>a.display.maxLineLength&&(a.display.maxLine=gt,a.display.maxLineLength=Et,a.display.maxLineChanged=!0)}ne!=null&&a&&this.collapsed&&Wi(a,ne,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&ol(a.doc)),a&&qn(a,"markerCleared",a,this,ne,pe),b&&ga(a),this.parent&&this.parent.clear()}},Ka.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ae,ne,pe=0;pe<this.lines.length;++pe){var Be=this.lines[pe],qe=on(Be.markedSpans,this);if(qe.from!=null&&(ae=jt(b?Be:Ct(Be),qe.from),a==-1))return ae;if(qe.to!=null&&(ne=jt(b?Be:Ct(Be),qe.to),a==1))return ne}return ae&&{from:ae,to:ne}},Ka.prototype.changed=function(){var a=this,b=this.find(-1,!0),ae=this,ne=this.doc.cm;!b||!ne||aa(ne,function(){var pe=b.line,Be=Ct(b.line),qe=pa(ne,Be);if(qe&&($a(qe),ne.curOp.selectionChanged=ne.curOp.forceUpdate=!0),ne.curOp.updateMaxLine=!0,!ur(ae.doc,pe)&&ae.height!=null){var dt=ae.height;ae.height=null;var pt=fi(ae)-dt;pt&&gn(pe,pe.height+pt)}qn(ne,"markerChanged",ne,a)})},Ka.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)},Ka.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)}},Pt(Ka);function vo(a,b,ae,ne,pe){if(ne&&ne.shared)return vu(a,b,ae,ne,pe);if(a.cm&&!a.cm.curOp)return Ii(a.cm,vo)(a,b,ae,ne,pe);var Be=new Ka(a,pe),qe=tr(b,ae);if(ne&&st(ne,Be,!1),qe>0||qe==0&&Be.clearWhenEmpty!==!1)return Be;if(Be.replacedWith&&(Be.collapsed=!0,Be.widgetNode=Se("span",[Be.replacedWith],"CodeMirror-widget"),ne.handleMouseEvents||Be.widgetNode.setAttribute("cm-ignore-events","true"),ne.insertLeft&&(Be.widgetNode.insertLeft=!0)),Be.collapsed){if(Ht(a,b.line,b,ae,Be)||b.line!=ae.line&&Ht(a,ae.line,b,ae,Be))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xn()}Be.addToHistory&&Qs(a,{from:b,to:ae,origin:"markText"},a.sel,NaN);var dt=b.line,pt=a.cm,gt;if(a.iter(dt,ae.line+1,function(At){pt&&Be.collapsed&&!pt.options.lineWrapping&&zt(At)==pt.display.maxLine&&(gt=!0),Be.collapsed&&dt!=b.line&&gn(At,0),Bn(At,new Ir(Be,dt==b.line?b.ch:null,dt==ae.line?ae.ch:null)),++dt}),Be.collapsed&&a.iter(b.line,ae.line+1,function(At){ur(a,At)&&gn(At,0)}),Be.clearOnEnter&&vt(Be,"beforeCursorEnter",function(){return Be.clear()}),Be.readOnly&&(Jn(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Be.collapsed&&(Be.id=++gl,Be.atomic=!0),pt){if(gt&&(pt.curOp.updateMaxLine=!0),Be.collapsed)Wi(pt,b.line,ae.line+1);else if(Be.className||Be.startStyle||Be.endStyle||Be.css||Be.attributes||Be.title)for(var Et=b.line;Et<=ae.line;Et++)ca(pt,Et,"text");Be.atomic&&ol(pt.doc),qn(pt,"markerAdded",pt,Be)}return Be}var Ho=function(a,b){this.markers=a,this.primary=b;for(var ae=0;ae<a.length;++ae)a[ae].parent=this};Ho.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();qn(this,"clear")}},Ho.prototype.find=function(a,b){return this.primary.find(a,b)},Pt(Ho);function vu(a,b,ae,ne,pe){ne=st(ne),ne.shared=!1;var Be=[vo(a,b,ae,ne,pe)],qe=Be[0],dt=ne.widgetNode;return Ga(a,function(pt){dt&&(ne.widgetNode=dt.cloneNode(!0)),Be.push(vo(pt,ar(pt,b),ar(pt,ae),ne,pe));for(var gt=0;gt<pt.linked.length;++gt)if(pt.linked[gt].isParent)return;qe=lt(Be)}),new Ho(Be,qe)}function yl(a){return a.findMarks(jt(a.first,0),a.clipPos(jt(a.lastLine())),function(b){return b.parent})}function gu(a,b){for(var ae=0;ae<b.length;ae++){var ne=b[ae],pe=ne.find(),Be=a.clipPos(pe.from),qe=a.clipPos(pe.to);if(tr(Be,qe)){var dt=vo(a,Be,qe,ne.primary,ne.primary.type);ne.markers.push(dt),dt.parent=ne}}}function yu(a){for(var b=function(ne){var pe=a[ne],Be=[pe.primary.doc];Ga(pe.primary.doc,function(pt){return Be.push(pt)});for(var qe=0;qe<pe.markers.length;qe++){var dt=pe.markers[qe];rt(Be,dt.doc)==-1&&(dt.parent=null,pe.markers.splice(qe--,1))}},ae=0;ae<a.length;ae++)b(ae)}var bu=0,qi=function(a,b,ae,ne,pe){if(!(this instanceof qi))return new qi(a,b,ae,ne,pe);ae==null&&(ae=0),Wo.call(this,[new Uo([new ln("",null)])]),this.first=ae,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ae;var Be=jt(ae,0);this.sel=Ha(Be),this.history=new as(null),this.id=++bu,this.modeOption=b,this.lineSep=ne,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),ks(this,{from:Be,to:Be,text:a}),zi(this,Ha(Be),Ye)};qi.prototype=Me(Wo.prototype,{constructor:qi,iter:function(a,b,ae){ae?this.iterN(a-this.first,b-a,ae):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var ae=0,ne=0;ne<b.length;++ne)ae+=b[ne].height;this.insertInner(a-this.first,b,ae)},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:Li(function(a){var b=jt(this.first,0),ae=this.first+this.size-1;po(this,{from:b,to:jt(ae,Wt(this,ae).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&qa(this.cm,0,0),zi(this,Ha(b),Ye)}),replaceRange:function(a,b,ae,ne){b=ar(this,b),ae=ae?ar(this,ae):b,mo(this,a,b,ae,ne)},getRange:function(a,b,ae){var ne=Sr(this,ar(this,a),ar(this,b));return ae===!1?ne:ne.join(ae||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(nr(this,a))return Wt(this,a)},getLineNumber:function(a){return Ct(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Wt(this,a)),zt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return ar(this,a)},getCursor:function(a){var b=this.sel.primary(),ae;return a==null||a=="head"?ae=b.head:a=="anchor"?ae=b.anchor:a=="end"||a=="to"||a===!1?ae=b.to():ae=b.from(),ae},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Li(function(a,b,ae){nl(this,ar(this,typeof a=="number"?jt(a,b||0):a),null,ae)}),setSelection:Li(function(a,b,ae){nl(this,ar(this,a),ar(this,b||a),ae)}),extendSelection:Li(function(a,b,ae){ss(this,ar(this,a),b&&ar(this,b),ae)}),extendSelections:Li(function(a,b){rl(this,lr(this,a),b)}),extendSelectionsBy:Li(function(a,b){var ae=Ze(this.sel.ranges,a);rl(this,lr(this,ae),b)}),setSelections:Li(function(a,b,ae){if(a.length){for(var ne=[],pe=0;pe<a.length;pe++)ne[pe]=new ii(ar(this,a[pe].anchor),ar(this,a[pe].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),zi(this,ya(this.cm,ne,b),ae)}}),addSelection:Li(function(a,b,ae){var ne=this.sel.ranges.slice(0);ne.push(new ii(ar(this,a),ar(this,b||a))),zi(this,ya(this.cm,ne,ne.length-1),ae)}),getSelection:function(a){for(var b=this.sel.ranges,ae,ne=0;ne<b.length;ne++){var pe=Sr(this,b[ne].from(),b[ne].to());ae=ae?ae.concat(pe):pe}return a===!1?ae:ae.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ae=this.sel.ranges,ne=0;ne<ae.length;ne++){var pe=Sr(this,ae[ne].from(),ae[ne].to());a!==!1&&(pe=pe.join(a||this.lineSeparator())),b[ne]=pe}return b},replaceSelection:function(a,b,ae){for(var ne=[],pe=0;pe<this.sel.ranges.length;pe++)ne[pe]=a;this.replaceSelections(ne,b,ae||"+input")},replaceSelections:Li(function(a,b,ae){for(var ne=[],pe=this.sel,Be=0;Be<pe.ranges.length;Be++){var qe=pe.ranges[Be];ne[Be]={from:qe.from(),to:qe.to(),text:this.splitLines(a[Be]),origin:ae}}for(var dt=b&&b!="end"&&ou(this,ne,b),pt=ne.length-1;pt>=0;pt--)po(this,ne[pt]);dt?il(this,dt):this.cm&&Oa(this.cm)}),undo:Li(function(){cs(this,"undo")}),redo:Li(function(){cs(this,"redo")}),undoSelection:Li(function(){cs(this,"undo",!0)}),redoSelection:Li(function(){cs(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,ae=0,ne=0;ne<a.done.length;ne++)a.done[ne].ranges||++b;for(var pe=0;pe<a.undone.length;pe++)a.undone[pe].ranges||++ae;return{undo:b,redo:ae}},clearHistory:function(){var a=this;this.history=new as(this.history.maxGeneration),Ga(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:fo(this.history.done),undone:fo(this.history.undone)}},setHistory:function(a){var b=this.history=new as(this.history.maxGeneration);b.done=fo(a.done.slice(0),null,!0),b.undone=fo(a.undone.slice(0),null,!0)},setGutterMarker:Li(function(a,b,ae){return Fo(this,a,"gutter",function(ne){var pe=ne.gutterMarkers||(ne.gutterMarkers={});return pe[b]=ae,!ae&&nt(pe)&&(ne.gutterMarkers=null),!0})}),clearGutter:Li(function(a){var b=this;this.iter(function(ae){ae.gutterMarkers&&ae.gutterMarkers[a]&&Fo(b,ae,"gutter",function(){return ae.gutterMarkers[a]=null,nt(ae.gutterMarkers)&&(ae.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!nr(this,a)||(b=a,a=Wt(this,a),!a))return null}else if(b=Ct(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Li(function(a,b,ae){return Fo(this,a,b=="gutter"?"gutter":"class",function(ne){var pe=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!ne[pe])ne[pe]=ae;else{if(Te(ae).test(ne[pe]))return!1;ne[pe]+=" "+ae}return!0})}),removeLineClass:Li(function(a,b,ae){return Fo(this,a,b=="gutter"?"gutter":"class",function(ne){var pe=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Be=ne[pe];if(Be)if(ae==null)ne[pe]=null;else{var qe=Be.match(Te(ae));if(!qe)return!1;var dt=qe.index+qe[0].length;ne[pe]=Be.slice(0,qe.index)+(!qe.index||dt==Be.length?"":" ")+Be.slice(dt)||null}else return!1;return!0})}),addLineWidget:Li(function(a,b,ae){return mu(this,a,b,ae)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,ae){return vo(this,ar(this,a),ar(this,b),ae,ae&&ae.type||"range")},setBookmark:function(a,b){var ae={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=ar(this,a),vo(this,a,a,ae,"bookmark")},findMarksAt:function(a){a=ar(this,a);var b=[],ae=Wt(this,a.line).markedSpans;if(ae)for(var ne=0;ne<ae.length;++ne){var pe=ae[ne];(pe.from==null||pe.from<=a.ch)&&(pe.to==null||pe.to>=a.ch)&&b.push(pe.marker.parent||pe.marker)}return b},findMarks:function(a,b,ae){a=ar(this,a),b=ar(this,b);var ne=[],pe=a.line;return this.iter(a.line,b.line+1,function(Be){var qe=Be.markedSpans;if(qe)for(var dt=0;dt<qe.length;dt++){var pt=qe[dt];!(pt.to!=null&&pe==a.line&&a.ch>=pt.to||pt.from==null&&pe!=a.line||pt.from!=null&&pe==b.line&&pt.from>=b.ch)&&(!ae||ae(pt.marker))&&ne.push(pt.marker.parent||pt.marker)}++pe}),ne},getAllMarks:function(){var a=[];return this.iter(function(b){var ae=b.markedSpans;if(ae)for(var ne=0;ne<ae.length;++ne)ae[ne].from!=null&&a.push(ae[ne].marker)}),a},posFromIndex:function(a){var b,ae=this.first,ne=this.lineSeparator().length;return this.iter(function(pe){var Be=pe.text.length+ne;if(Be>a)return b=a,!0;a-=Be,++ae}),ar(this,jt(ae,b))},indexFromPos:function(a){a=ar(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var ae=this.lineSeparator().length;return this.iter(this.first,a.line,function(ne){b+=ne.text.length+ae}),b},copy:function(a){var b=new qi(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,ae=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<ae&&(ae=a.to);var ne=new qi(Gr(this,b,ae),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,yl(this)),ne},unlinkDoc:function(a){if(a instanceof gi&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var ae=this.linked[b];if(ae.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),yu(yl(this));break}}if(a.history==this.history){var ne=[a.id];Ga(a,function(pe){return ne.push(pe.id)},!0),a.history=new as(null),a.history.done=fo(this.history.done,ne),a.history.undone=fo(this.history.undone,ne)}},iterLinkedDocs:function(a){Ga(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):kn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Li(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))})}),qi.prototype.eachLine=qi.prototype.iter;var bl=0;function wu(a){var b=this;if(wl(b),!(ht(b,a)||ci(b.display,a))){Vt(a),ve&&(bl=+new Date);var ae=wa(b,a,!0),ne=a.dataTransfer.files;if(!(!ae||b.isReadOnly()))if(ne&&ne.length&&window.FileReader&&window.File)for(var pe=ne.length,Be=Array(pe),qe=0,dt=function(){++qe==pe&&Ii(b,function(){ae=ar(b.doc,ae);var It={from:ae,to:ae,text:b.doc.splitLines(Be.filter(function(cr){return cr!=null}).join(b.doc.lineSeparator())),origin:"paste"};po(b.doc,It),il(b.doc,Ha(ar(b.doc,ae),ar(b.doc,za(It))))})()},pt=function(It,cr){if(b.options.allowDropFileTypes&&rt(b.options.allowDropFileTypes,It.type)==-1){dt();return}var yr=new FileReader;yr.onerror=function(){return dt()},yr.onload=function(){var Or=yr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Or)){dt();return}Be[cr]=Or,dt()},yr.readAsText(It)},gt=0;gt<ne.length;gt++)pt(ne[gt],gt);else{if(b.state.draggingText&&b.doc.sel.contains(ae)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var Et=a.dataTransfer.getData("Text");if(Et){var At;if(b.state.draggingText&&!b.state.draggingText.copy&&(At=b.listSelections()),ls(b.doc,Ha(ae,ae)),At)for(var Ut=0;Ut<At.length;++Ut)mo(b.doc,"",At[Ut].anchor,At[Ut].head,"drag");b.replaceSelection(Et,"around","paste"),b.display.input.focus()}}catch(It){}}}}function xu(a,b){if(ve&&(!a.state.draggingText||+new Date-bl<100)){Cr(b);return}if(!(ht(a,b)||ci(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!se)){var ae=ge("img",null,null,"position: fixed; left: 0; top: 0;");ae.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ee&&(ae.width=ae.height=1,a.display.wrapper.appendChild(ae),ae._top=ae.offsetTop),b.dataTransfer.setDragImage(ae,0,0),ee&&ae.parentNode.removeChild(ae)}}function Su(a,b){var ae=wa(a,b);if(ae){var ne=document.createDocumentFragment();ko(a,ae,ne),a.display.dragCursor||(a.display.dragCursor=ge("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),de(a.display.dragCursor,ne)}}function wl(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function xl(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),ae=[],ne=0;ne<b.length;ne++){var pe=b[ne].CodeMirror;pe&&ae.push(pe)}ae.length&&ae[0].operation(function(){for(var Be=0;Be<ae.length;Be++)a(ae[Be])})}}var Sl=!1;function Eu(){Sl||(Cu(),Sl=!0)}function Cu(){var a;vt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,xl(ku)},100))}),vt(window,"blur",function(){return xl(Wa)})}function ku(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var Va={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},zo=0;zo<10;zo++)Va[zo+48]=Va[zo+96]=String(zo);for(var fs=65;fs<=90;fs++)Va[fs]=String.fromCharCode(fs);for(var Go=1;Go<=12;Go++)Va[Go+111]=Va[Go+63235]="F"+Go;var Na={};Na.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"},Na.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"},Na.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"},Na.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"]},Na.default=ce?Na.macDefault:Na.pcDefault;function Tu(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ae,ne,pe,Be,qe=0;qe<b.length-1;qe++){var dt=b[qe];if(/^(cmd|meta|m)$/i.test(dt))Be=!0;else if(/^a(lt)?$/i.test(dt))ae=!0;else if(/^(c|ctrl|control)$/i.test(dt))ne=!0;else if(/^s(hift)?$/i.test(dt))pe=!0;else throw new Error("Unrecognized modifier name: "+dt)}return ae&&(a="Alt-"+a),ne&&(a="Ctrl-"+a),Be&&(a="Cmd-"+a),pe&&(a="Shift-"+a),a}function Au(a){var b={};for(var ae in a)if(a.hasOwnProperty(ae)){var ne=a[ae];if(/^(name|fallthrough|(de|at)tach)$/.test(ae))continue;if(ne=="..."){delete a[ae];continue}for(var pe=Ze(ae.split(" "),Tu),Be=0;Be<pe.length;Be++){var qe=void 0,dt=void 0;Be==pe.length-1?(dt=pe.join(" "),qe=ne):(dt=pe.slice(0,Be+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[ae]}for(var gt in b)a[gt]=b[gt];return a}function go(a,b,ae,ne){b=ds(b);var pe=b.call?b.call(a,ne):b[a];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&ae(pe))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return go(a,b.fallthrough,ae,ne);for(var Be=0;Be<b.fallthrough.length;Be++){var qe=go(a,b.fallthrough[Be],ae,ne);if(qe)return qe}}}function El(a){var b=typeof a=="string"?a:Va[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function Cl(a,b,ae){var ne=a;return b.altKey&&ne!="Alt"&&(a="Alt-"+a),(be?b.metaKey:b.ctrlKey)&&ne!="Ctrl"&&(a="Ctrl-"+a),(be?b.ctrlKey:b.metaKey)&&ne!="Mod"&&(a="Cmd-"+a),!ae&&b.shiftKey&&ne!="Shift"&&(a="Shift-"+a),a}function kl(a,b){if(ee&&a.keyCode==34&&a.char)return!1;var ae=Va[a.keyCode];return ae==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ae=a.code),Cl(ae,a,b))}function ds(a){return typeof a=="string"?Na[a]:a}function yo(a,b){for(var ae=a.doc.sel.ranges,ne=[],pe=0;pe<ae.length;pe++){for(var Be=b(ae[pe]);ne.length&&tr(Be.from,lt(ne).to)<=0;){var qe=ne.pop();if(tr(qe.from,Be.from)<0){Be.from=qe.from;break}}ne.push(Be)}aa(a,function(){for(var dt=ne.length-1;dt>=0;dt--)mo(a.doc,"",ne[dt].from,ne[dt].to,"+delete");Oa(a)})}function js(a,b,ae){var ne=We(a.text,b+ae,ae);return ne<0||ne>a.text.length?null:ne}function Os(a,b,ae){var ne=js(a,b.ch,ae);return ne==null?null:new jt(b.line,ne,ae<0?"after":"before")}function Ps(a,b,ae,ne,pe){if(a){b.doc.direction=="rtl"&&(pe=-pe);var Be=Qe(ae,b.doc.direction);if(Be){var qe=pe<0?lt(Be):Be[0],dt=pe<0==(qe.level==1),pt=dt?"after":"before",gt;if(qe.level>0||b.doc.direction=="rtl"){var Et=ma(b,ae);gt=pe<0?ae.text.length-1:0;var At=na(b,Et,gt).top;gt=at(function(Ut){return na(b,Et,Ut).top==At},pe<0==(qe.level==1)?qe.from:qe.to-1,gt),pt=="before"&&(gt=js(ae,gt,1))}else gt=pe<0?qe.to:qe.from;return new jt(ne,gt,pt)}}return new jt(ne,pe<0?ae.text.length:0,pe<0?"before":"after")}function Du(a,b,ae,ne){var pe=Qe(b,a.doc.direction);if(!pe)return Os(b,ae,ne);ae.ch>=b.text.length?(ae.ch=b.text.length,ae.sticky="before"):ae.ch<=0&&(ae.ch=0,ae.sticky="after");var Be=ye(pe,ae.ch,ae.sticky),qe=pe[Be];if(a.doc.direction=="ltr"&&qe.level%2==0&&(ne>0?qe.to>ae.ch:qe.from<ae.ch))return Os(b,ae,ne);var dt=function(Lr,$r){return js(b,Lr instanceof jt?Lr.ch:Lr,$r)},pt,gt=function(Lr){return a.options.lineWrapping?(pt=pt||ma(a,b),wi(a,b,pt,Lr)):{begin:0,end:b.text.length}},Et=gt(ae.sticky=="before"?dt(ae,-1):ae.ch);if(a.doc.direction=="rtl"||qe.level==1){var At=qe.level==1==ne<0,Ut=dt(ae,At?1:-1);if(Ut!=null&&(At?Ut<=qe.to&&Ut<=Et.end:Ut>=qe.from&&Ut>=Et.begin)){var It=At?"before":"after";return new jt(ae.line,Ut,It)}}var cr=function(Lr,$r,Br){for(var an=function(ui,Bi){return Bi?new jt(ae.line,dt(ui,1),"before"):new jt(ae.line,ui,"after")};Lr>=0&&Lr<pe.length;Lr+=$r){var Dn=pe[Lr],bn=$r>0==(Dn.level!=1),Kn=bn?Br.begin:dt(Br.end,-1);if(Dn.from<=Kn&&Kn<Dn.to||(Kn=bn?Dn.from:dt(Dn.to,-1),Br.begin<=Kn&&Kn<Br.end))return an(Kn,bn)}},yr=cr(Be+ne,ne,Et);if(yr)return yr;var Or=ne>0?Et.end:dt(Et.begin,-1);return Or!=null&&!(ne>0&&Or==b.text.length)&&(yr=cr(ne>0?0:pe.length-1,ne,gt(Or)),yr)?yr:null}var Ko={selectAll:ul,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ye)},killLine:function(a){return yo(a,function(b){if(b.empty()){var ae=Wt(a.doc,b.head.line).text.length;return b.head.ch==ae&&b.head.line<a.lastLine()?{from:b.head,to:jt(b.head.line+1,0)}:{from:b.head,to:jt(b.head.line,ae)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return yo(a,function(b){return{from:jt(b.from().line,0),to:ar(a.doc,jt(b.to().line+1,0))}})},delLineLeft:function(a){return yo(a,function(b){return{from:jt(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return yo(a,function(b){var ae=a.charCoords(b.head,"div").top+5,ne=a.coordsChar({left:0,top:ae},"div");return{from:ne,to:b.from()}})},delWrappedLineRight:function(a){return yo(a,function(b){var ae=a.charCoords(b.head,"div").top+5,ne=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ae},"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(jt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(jt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return Tl(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return Al(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return ju(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var ae=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ae},"div")},Ke)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var ae=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:ae},"div")},Ke)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ae=a.cursorCoords(b.head,"div").top+5,ne=a.coordsChar({left:0,top:ae},"div");return ne.ch<a.getLine(ne.line).search(/\S/)?Al(a,b.head):ne},Ke)},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=[],ae=a.listSelections(),ne=a.options.tabSize,pe=0;pe<ae.length;pe++){var Be=ae[pe].from(),qe=Le(a.getLine(Be.line),Be.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 aa(a,function(){for(var b=a.listSelections(),ae=[],ne=0;ne<b.length;ne++)if(b[ne].empty()){var pe=b[ne].head,Be=Wt(a.doc,pe.line).text;if(Be){if(pe.ch==Be.length&&(pe=new jt(pe.line,pe.ch-1)),pe.ch>0)pe=new jt(pe.line,pe.ch+1),a.replaceRange(Be.charAt(pe.ch-1)+Be.charAt(pe.ch-2),jt(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>a.doc.first){var qe=Wt(a.doc,pe.line-1).text;qe&&(pe=new jt(pe.line,1),a.replaceRange(Be.charAt(0)+a.doc.lineSeparator()+qe.charAt(qe.length-1),jt(pe.line-1,qe.length-1),pe,"+transpose"))}}ae.push(new ii(pe,pe))}a.setSelections(ae)})},newlineAndIndent:function(a){return aa(a,function(){for(var b=a.listSelections(),ae=b.length-1;ae>=0;ae--)a.replaceRange(a.doc.lineSeparator(),b[ae].anchor,b[ae].head,"+input");b=a.listSelections();for(var ne=0;ne<b.length;ne++)a.indentLine(b[ne].from().line,null,!0);Oa(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Tl(a,b){var ae=Wt(a.doc,b),ne=zt(ae);return ne!=ae&&(b=Ct(ne)),Ps(!0,a,ne,b,1)}function ju(a,b){var ae=Wt(a.doc,b),ne=qt(ae);return ne!=ae&&(b=Ct(ne)),Ps(!0,a,ae,b,-1)}function Al(a,b){var ae=Tl(a,b.line),ne=Wt(a.doc,ae.line),pe=Qe(ne,a.doc.direction);if(!pe||pe[0].level==0){var Be=Math.max(ae.ch,ne.text.search(/\S/)),qe=b.line==ae.line&&b.ch<=Be&&b.ch;return jt(ae.line,qe?0:Be,ae.sticky)}return ae}function hs(a,b,ae){if(typeof b=="string"&&(b=Ko[b],!b))return!1;a.display.input.ensurePolled();var ne=a.display.shift,pe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ae&&(a.display.shift=!1),pe=b(a)!=it}finally{a.display.shift=ne,a.state.suppressEdits=!1}return pe}function Ou(a,b,ae){for(var ne=0;ne<a.state.keyMaps.length;ne++){var pe=go(b,a.state.keyMaps[ne],ae,a);if(pe)return pe}return a.options.extraKeys&&go(b,a.options.extraKeys,ae,a)||go(b,a.options.keyMap,ae,a)}var Pu=new Ue;function Vo(a,b,ae,ne){var pe=a.state.keySeq;if(pe){if(El(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:Pu.set(50,function(){a.state.keySeq==pe&&(a.state.keySeq=null,a.display.input.reset())}),Dl(a,pe+" "+b,ae,ne))return!0}return Dl(a,b,ae,ne)}function Dl(a,b,ae,ne){var pe=Ou(a,b,ne);return pe=="multi"&&(a.state.keySeq=b),pe=="handled"&&qn(a,"keyHandled",a,b,ae),(pe=="handled"||pe=="multi")&&(Vt(ae),To(a)),!!pe}function jl(a,b){var ae=kl(b,!0);return ae?b.shiftKey&&!a.state.keySeq?Vo(a,"Shift-"+ae,b,function(ne){return hs(a,ne,!0)})||Vo(a,ae,b,function(ne){if(typeof ne=="string"?/^go[A-Z]/.test(ne):ne.motion)return hs(a,ne)}):Vo(a,ae,b,function(ne){return hs(a,ne)}):!1}function Ru(a,b,ae){return Vo(a,"'"+ae+"'",b,function(ne){return hs(a,ne,!0)})}var Rs=null;function Ol(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=Ee(),!ht(b,a))){ve&&x<11&&a.keyCode==27&&(a.returnValue=!1);var ae=a.keyCode;b.display.shift=ae==16||a.shiftKey;var ne=jl(b,a);ee&&(Rs=ne?ae:null,!ne&&ae==88&&!Dr&&(ce?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),Je&&!ce&&!ne&&ae==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ae==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&_u(b)}}function _u(a){var b=a.display.lineDiv;Oe(b,"CodeMirror-crosshair");function ae(ne){(ne.keyCode==18||!ne.altKey)&&(Pe(b,"CodeMirror-crosshair"),xt(document,"keyup",ae),xt(document,"mouseover",ae))}vt(document,"keyup",ae),vt(document,"mouseover",ae)}function Pl(a){a.keyCode==16&&(this.doc.sel.shift=!1),ht(this,a)}function Rl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(ci(b.display,a)||ht(b,a)||a.ctrlKey&&!a.altKey||ce&&a.metaKey)){var ae=a.keyCode,ne=a.charCode;if(ee&&ae==Rs){Rs=null,Vt(a);return}if(!(ee&&(!a.which||a.which<10)&&jl(b,a))){var pe=String.fromCharCode(ne==null?ae:ne);pe!="\b"&&(Ru(b,a,pe)||b.display.input.onKeyPress(a))}}}var Mu=400,_s=function(a,b,ae){this.time=a,this.pos=b,this.button=ae};_s.prototype.compare=function(a,b,ae){return this.time+Mu>a&&tr(b,this.pos)==0&&ae==this.button};var Xo,Yo;function Nu(a,b){var ae=+new Date;return Yo&&Yo.compare(ae,a,b)?(Xo=Yo=null,"triple"):Xo&&Xo.compare(ae,a,b)?(Yo=new _s(ae,a,b),Xo=null,"double"):(Xo=new _s(ae,a,b),Yo=null,"single")}function _l(a){var b=this,ae=b.display;if(!(ht(b,a)||ae.activeTouch&&ae.input.supportsTouch())){if(ae.input.ensurePolled(),ae.shift=a.shiftKey,ci(ae,a)){z||(ae.scroller.draggable=!1,setTimeout(function(){return ae.scroller.draggable=!0},100));return}if(!Ms(b,a)){var ne=wa(b,a),pe=Pr(a),Be=ne?Nu(ne,pe):"single";window.focus(),pe==1&&b.state.selectingText&&b.state.selectingText(a),!(ne&&Iu(b,pe,ne,Be,a))&&(pe==1?ne?Bu(b,ne,Be,a):jr(a)==ae.scroller&&Vt(a):pe==2?(ne&&ss(b.doc,ne),setTimeout(function(){return ae.input.focus()},20)):pe==3&&(Ce?b.display.input.onContextMenu(a):Do(b)))}}}function Iu(a,b,ae,ne,pe){var Be="Click";return ne=="double"?Be="Double"+Be:ne=="triple"&&(Be="Triple"+Be),Be=(b==1?"Left":b==2?"Middle":"Right")+Be,Vo(a,Cl(Be,pe),pe,function(qe){if(typeof qe=="string"&&(qe=Ko[qe]),!qe)return!1;var dt=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),dt=qe(a,ae)!=it}finally{a.state.suppressEdits=!1}return dt})}function Lu(a,b,ae){var ne=a.getOption("configureMouse"),pe=ne?ne(a,b,ae):{};if(pe.unit==null){var Be=he?ae.shiftKey&&ae.metaKey:ae.altKey;pe.unit=Be?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(pe.extend==null||a.doc.extend)&&(pe.extend=a.doc.extend||ae.shiftKey),pe.addNew==null&&(pe.addNew=ce?ae.metaKey:ae.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(ce?ae.altKey:ae.ctrlKey)),pe}function Bu(a,b,ae,ne){ve?setTimeout(et(Ao,a),0):a.curOp.focus=Ee();var pe=Lu(a,ae,ne),Be=a.doc.sel,qe;a.options.dragDrop&&Mr&&!a.isReadOnly()&&ae=="single"&&(qe=Be.contains(b))>-1&&(tr((qe=Be.ranges[qe]).from(),b)<0||b.xRel>0)&&(tr(qe.to(),b)>0||b.xRel<0)?Fu(a,ne,b,pe):Uu(a,ne,b,pe)}function Fu(a,b,ae,ne){var pe=a.display,Be=!1,qe=Ii(a,function(gt){z&&(pe.scroller.draggable=!1),a.state.draggingText=!1,xt(pe.wrapper.ownerDocument,"mouseup",qe),xt(pe.wrapper.ownerDocument,"mousemove",dt),xt(pe.scroller,"dragstart",pt),xt(pe.scroller,"drop",qe),Be||(Vt(gt),ne.addNew||ss(a.doc,ae,null,null,ne.extend),z&&!se||ve&&x==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),dt=function(gt){Be=Be||Math.abs(b.clientX-gt.clientX)+Math.abs(b.clientY-gt.clientY)>=10},pt=function(){return Be=!0};z&&(pe.scroller.draggable=!0),a.state.draggingText=qe,qe.copy=!ne.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),vt(pe.wrapper.ownerDocument,"mouseup",qe),vt(pe.wrapper.ownerDocument,"mousemove",dt),vt(pe.scroller,"dragstart",pt),vt(pe.scroller,"drop",qe),Do(a),setTimeout(function(){return pe.input.focus()},20)}function Ml(a,b,ae){if(ae=="char")return new ii(b,b);if(ae=="word")return a.findWordAt(b);if(ae=="line")return new ii(jt(b.line,0),ar(a.doc,jt(b.line+1,0)));var ne=ae(a,b);return new ii(ne.from,ne.to)}function Uu(a,b,ae,ne){var pe=a.display,Be=a.doc;Vt(b);var qe,dt,pt=Be.sel,gt=pt.ranges;if(ne.addNew&&!ne.extend?(dt=Be.sel.contains(ae),dt>-1?qe=gt[dt]:qe=new ii(ae,ae)):(qe=Be.sel.primary(),dt=Be.sel.primIndex),ne.unit=="rectangle")ne.addNew||(qe=new ii(ae,ae)),ae=wa(a,b,!0,!0),dt=-1;else{var Et=Ml(a,ae,ne.unit);ne.extend?qe=As(qe,Et.anchor,Et.head,ne.extend):qe=Et}ne.addNew?dt==-1?(dt=gt.length,zi(Be,ya(a,gt.concat([qe]),dt),{scroll:!1,origin:"*mouse"})):gt.length>1&&gt[dt].empty()&&ne.unit=="char"&&!ne.extend?(zi(Be,ya(a,gt.slice(0,dt).concat(gt.slice(dt+1)),0),{scroll:!1,origin:"*mouse"}),pt=Be.sel):Ds(Be,dt,qe,$e):(dt=0,zi(Be,new ha([qe],0),$e),pt=Be.sel);var At=ae;function Ut(Br){if(tr(At,Br)!=0)if(At=Br,ne.unit=="rectangle"){for(var an=[],Dn=a.options.tabSize,bn=Le(Wt(Be,ae.line).text,ae.ch,Dn),Kn=Le(Wt(Be,Br.line).text,Br.ch,Dn),ui=Math.min(bn,Kn),Bi=Math.max(bn,Kn),xi=Math.min(ae.line,Br.line),oa=Math.min(a.lastLine(),Math.max(ae.line,Br.line));xi<=oa;xi++){var ea=Wt(Be,xi).text,Oi=ft(ea,ui,Dn);ui==Bi?an.push(new ii(jt(xi,Oi),jt(xi,Oi))):ea.length>Oi&&an.push(new ii(jt(xi,Oi),jt(xi,ft(ea,Bi,Dn))))}an.length||an.push(new ii(ae,ae)),zi(Be,ya(a,pt.ranges.slice(0,dt).concat(an),dt),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Br)}else{var ta=qe,Zi=Ml(a,Br,ne.unit),Mi=ta.anchor,Pi;tr(Zi.anchor,Mi)>0?(Pi=Zi.head,Mi=sr(ta.from(),Zi.anchor)):(Pi=Zi.anchor,Mi=kr(ta.to(),Zi.head));var Ci=pt.ranges.slice(0);Ci[dt]=Wu(a,new ii(ar(Be,Mi),Pi)),zi(Be,ya(a,Ci,dt),$e)}}var It=pe.wrapper.getBoundingClientRect(),cr=0;function yr(Br){var an=++cr,Dn=wa(a,Br,!0,ne.unit=="rectangle");if(Dn)if(tr(Dn,At)!=0){a.curOp.focus=Ee(),Ut(Dn);var bn=ja(pe,Be);(Dn.line>=bn.to||Dn.line<bn.from)&&setTimeout(Ii(a,function(){cr==an&&yr(Br)}),150)}else{var Kn=Br.clientY<It.top?-20:Br.clientY>It.bottom?20:0;Kn&&setTimeout(Ii(a,function(){cr==an&&(pe.scroller.scrollTop+=Kn,yr(Br))}),50)}}function Or(Br){a.state.selectingText=!1,cr=1/0,Br&&(Vt(Br),pe.input.focus()),xt(pe.wrapper.ownerDocument,"mousemove",Lr),xt(pe.wrapper.ownerDocument,"mouseup",$r),Be.history.lastSelOrigin=null}var Lr=Ii(a,function(Br){Br.buttons===0||!Pr(Br)?Or(Br):yr(Br)}),$r=Ii(a,Or);a.state.selectingText=$r,vt(pe.wrapper.ownerDocument,"mousemove",Lr),vt(pe.wrapper.ownerDocument,"mouseup",$r)}function Wu(a,b){var ae=b.anchor,ne=b.head,pe=Wt(a.doc,ae.line);if(tr(ae,ne)==0&&ae.sticky==ne.sticky)return b;var Be=Qe(pe);if(!Be)return b;var qe=ye(Be,ae.ch,ae.sticky),dt=Be[qe];if(dt.from!=ae.ch&&dt.to!=ae.ch)return b;var pt=qe+(dt.from==ae.ch==(dt.level!=1)?0:1);if(pt==0||pt==Be.length)return b;var gt;if(ne.line!=ae.line)gt=(ne.line-ae.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Et=ye(Be,ne.ch,ne.sticky),At=Et-qe||(ne.ch-ae.ch)*(dt.level==1?-1:1);Et==pt-1||Et==pt?gt=At<0:gt=At>0}var Ut=Be[pt+(gt?-1:0)],It=gt==(Ut.level==1),cr=It?Ut.from:Ut.to,yr=It?"after":"before";return ae.ch==cr&&ae.sticky==yr?b:new ii(new jt(ae.line,cr,yr),ne)}function Nl(a,b,ae,ne){var pe,Be;if(b.touches)pe=b.touches[0].clientX,Be=b.touches[0].clientY;else try{pe=b.clientX,Be=b.clientY}catch(Ut){return!1}if(pe>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;ne&&Vt(b);var qe=a.display,dt=qe.lineDiv.getBoundingClientRect();if(Be>dt.bottom||!Tt(a,ae))return Yt(b);Be-=dt.top-qe.viewOffset;for(var pt=0;pt<a.display.gutterSpecs.length;++pt){var gt=qe.gutters.childNodes[pt];if(gt&&gt.getBoundingClientRect().right>=pe){var Et=Dt(a.doc,Be),At=a.display.gutterSpecs[pt];return bt(a,ae,a,Et,At.className,b),Yt(b)}}}function Ms(a,b){return Nl(a,b,"gutterClick",!0)}function Il(a,b){ci(a.display,b)||Zu(a,b)||ht(a,b,"contextmenu")||Ce||a.display.input.onContextMenu(b)}function Zu(a,b){return Tt(a,"gutterContextMenu")?Nl(a,b,"gutterContextMenu",!1):!1}function Ll(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ca(a)}var bo={toString:function(){return"CodeMirror.Init"}},Bl={},ps={};function Hu(a){var b=a.optionHandlers;function ae(ne,pe,Be,qe){a.defaults[ne]=pe,Be&&(b[ne]=qe?function(dt,pt,gt){gt!=bo&&Be(dt,pt,gt)}:Be)}a.defineOption=ae,a.Init=bo,ae("value","",function(ne,pe){return ne.setValue(pe)},!0),ae("mode",null,function(ne,pe){ne.doc.modeOption=pe,Cs(ne)},!0),ae("indentUnit",2,Cs,!0),ae("indentWithTabs",!1),ae("smartIndent",!0),ae("tabSize",4,function(ne){Lo(ne),Ca(ne),Wi(ne)},!0),ae("lineSeparator",null,function(ne,pe){if(ne.doc.lineSep=pe,!!pe){var Be=[],qe=ne.doc.first;ne.doc.iter(function(pt){for(var gt=0;;){var Et=pt.text.indexOf(pe,gt);if(Et==-1)break;gt=Et+pe.length,Be.push(jt(qe,Et))}qe++});for(var dt=Be.length-1;dt>=0;dt--)mo(ne.doc,pe,Be[dt],jt(Be[dt].line,Be[dt].ch+pe.length))}}),ae("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(ne,pe,Be){ne.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Be!=bo&&ne.refresh()}),ae("specialCharPlaceholder",wn,function(ne){return ne.refresh()},!0),ae("electricChars",!0),ae("inputStyle",ue?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ae("spellcheck",!1,function(ne,pe){return ne.getInputField().spellcheck=pe},!0),ae("autocorrect",!1,function(ne,pe){return ne.getInputField().autocorrect=pe},!0),ae("autocapitalize",!1,function(ne,pe){return ne.getInputField().autocapitalize=pe},!0),ae("rtlMoveVisually",!me),ae("wholeLineUpdateBefore",!0),ae("theme","default",function(ne){Ll(ne),Io(ne)},!0),ae("keyMap","default",function(ne,pe,Be){var qe=ds(pe),dt=Be!=bo&&ds(Be);dt&&dt.detach&&dt.detach(ne,qe),qe.attach&&qe.attach(ne,dt||null)}),ae("extraKeys",null),ae("configureMouse",null),ae("lineWrapping",!1,Gu,!0),ae("gutters",[],function(ne,pe){ne.display.gutterSpecs=Ss(pe,ne.options.lineNumbers),Io(ne)},!0),ae("fixedGutter",!0,function(ne,pe){ne.display.gutters.style.left=pe?Qa(ne.display)+"px":"0",ne.refresh()},!0),ae("coverGutterNextToScrollbar",!1,function(ne){return Ni(ne)},!0),ae("scrollbarStyle","native",function(ne){xa(ne),Ni(ne),ne.display.scrollbars.setScrollTop(ne.doc.scrollTop),ne.display.scrollbars.setScrollLeft(ne.doc.scrollLeft)},!0),ae("lineNumbers",!1,function(ne,pe){ne.display.gutterSpecs=Ss(ne.options.gutters,pe),Io(ne)},!0),ae("firstLineNumber",1,Io,!0),ae("lineNumberFormatter",function(ne){return ne},Io,!0),ae("showCursorWhenSelecting",!1,Ua,!0),ae("resetSelectionOnContextMenu",!0),ae("lineWiseCopyCut",!0),ae("pasteLinesPerSelection",!0),ae("selectionsMayTouch",!1),ae("readOnly",!1,function(ne,pe){pe=="nocursor"&&(Wa(ne),ne.display.input.blur()),ne.display.input.readOnlyChanged(pe)}),ae("screenReaderLabel",null,function(ne,pe){pe=pe===""?null:pe,ne.display.input.screenReaderLabelChanged(pe)}),ae("disableInput",!1,function(ne,pe){pe||ne.display.input.reset()},!0),ae("dragDrop",!0,zu),ae("allowDropFileTypes",null),ae("cursorBlinkRate",530),ae("cursorScrollMargin",0),ae("cursorHeight",1,Ua,!0),ae("singleCursorHeightPerLine",!0,Ua,!0),ae("workTime",100),ae("workDelay",100),ae("flattenSpans",!0,Lo,!0),ae("addModeClass",!1,Lo,!0),ae("pollInterval",100),ae("undoDepth",200,function(ne,pe){return ne.doc.history.undoDepth=pe}),ae("historyEventDelay",1250),ae("viewportMargin",10,function(ne){return ne.refresh()},!0),ae("maxHighlightLength",1e4,Lo,!0),ae("moveInputWithCursor",!0,function(ne,pe){pe||ne.display.input.resetPosition()}),ae("tabindex",null,function(ne,pe){return ne.display.input.getField().tabIndex=pe||""}),ae("autofocus",null),ae("direction","ltr",function(ne,pe){return ne.doc.setDirection(pe)},!0),ae("phrases",null)}function zu(a,b,ae){var ne=ae&&ae!=bo;if(!b!=!ne){var pe=a.display.dragFunctions,Be=b?vt:xt;Be(a.display.scroller,"dragstart",pe.start),Be(a.display.scroller,"dragenter",pe.enter),Be(a.display.scroller,"dragover",pe.over),Be(a.display.scroller,"dragleave",pe.leave),Be(a.display.scroller,"drop",pe.drop)}}function Gu(a){a.options.lineWrapping?(Oe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Pe(a.display.wrapper,"CodeMirror-wrap"),_r(a)),Co(a),Wi(a),Ca(a),setTimeout(function(){return Ni(a)},100)}function gi(a,b){var ae=this;if(!(this instanceof gi))return new gi(a,b);this.options=b=b?st(b):{},st(Bl,b,!1);var ne=b.value;typeof ne=="string"?ne=new qi(ne,b.mode,null,b.lineSeparator,b.direction):b.mode&&(ne.modeOption=b.mode),this.doc=ne;var pe=new gi.inputStyles[b.inputStyle](this),Be=this.display=new iu(a,ne,pe,b);Be.wrapper.CodeMirror=this,Ll(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xa(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 Ue,keySeq:null,specialChars:null},b.autofocus&&!ue&&Be.input.focus(),ve&&x<11&&setTimeout(function(){return ae.display.input.reset(!0)},20),Ku(this),Eu(),fa(this),this.curOp.forceUpdate=!0,Ys(this,ne),b.autofocus&&!ue||this.hasFocus()?setTimeout(function(){ae.hasFocus()&&!ae.state.focused&&jo(ae)},20):Wa(this);for(var qe in ps)ps.hasOwnProperty(qe)&&ps[qe](this,b[qe],bo);Zs(this),b.finishInit&&b.finishInit(this);for(var dt=0;dt<Ns.length;++dt)Ns[dt](this);ga(this),z&&b.lineWrapping&&getComputedStyle(Be.lineDiv).textRendering=="optimizelegibility"&&(Be.lineDiv.style.textRendering="auto")}gi.defaults=Bl,gi.optionHandlers=ps;function Ku(a){var b=a.display;vt(b.scroller,"mousedown",Ii(a,_l)),ve&&x<11?vt(b.scroller,"dblclick",Ii(a,function(pt){if(!ht(a,pt)){var gt=wa(a,pt);if(!(!gt||Ms(a,pt)||ci(a.display,pt))){Vt(pt);var Et=a.findWordAt(gt);ss(a.doc,Et.anchor,Et.head)}}})):vt(b.scroller,"dblclick",function(pt){return ht(a,pt)||Vt(pt)}),vt(b.scroller,"contextmenu",function(pt){return Il(a,pt)}),vt(b.input.getField(),"contextmenu",function(pt){b.scroller.contains(pt.target)||Il(a,pt)});var ae,ne={end:0};function pe(){b.activeTouch&&(ae=setTimeout(function(){return b.activeTouch=null},1e3),ne=b.activeTouch,ne.end=+new Date)}function Be(pt){if(pt.touches.length!=1)return!1;var gt=pt.touches[0];return gt.radiusX<=1&&gt.radiusY<=1}function qe(pt,gt){if(gt.left==null)return!0;var Et=gt.left-pt.left,At=gt.top-pt.top;return Et*Et+At*At>20*20}vt(b.scroller,"touchstart",function(pt){if(!ht(a,pt)&&!Be(pt)&&!Ms(a,pt)){b.input.ensurePolled(),clearTimeout(ae);var gt=+new Date;b.activeTouch={start:gt,moved:!1,prev:gt-ne.end<=300?ne:null},pt.touches.length==1&&(b.activeTouch.left=pt.touches[0].pageX,b.activeTouch.top=pt.touches[0].pageY)}}),vt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),vt(b.scroller,"touchend",function(pt){var gt=b.activeTouch;if(gt&&!ci(b,pt)&&gt.left!=null&&!gt.moved&&new Date-gt.start<300){var Et=a.coordsChar(b.activeTouch,"page"),At;!gt.prev||qe(gt,gt.prev)?At=new ii(Et,Et):!gt.prev.prev||qe(gt,gt.prev.prev)?At=a.findWordAt(Et):At=new ii(jt(Et.line,0),ar(a.doc,jt(Et.line+1,0))),a.setSelection(At.anchor,At.head),a.focus(),Vt(pt)}pe()}),vt(b.scroller,"touchcancel",pe),vt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Pa(a,b.scroller.scrollTop),Ra(a,b.scroller.scrollLeft,!0),bt(a,"scroll",a))}),vt(b.scroller,"mousewheel",function(pt){return Gs(a,pt)}),vt(b.scroller,"DOMMouseScroll",function(pt){return Gs(a,pt)}),vt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(pt){ht(a,pt)||Cr(pt)},over:function(pt){ht(a,pt)||(Su(a,pt),Cr(pt))},start:function(pt){return xu(a,pt)},drop:Ii(a,wu),leave:function(pt){ht(a,pt)||wl(a)}};var dt=b.input.getField();vt(dt,"keyup",function(pt){return Pl.call(a,pt)}),vt(dt,"keydown",Ii(a,Ol)),vt(dt,"keypress",Ii(a,Rl)),vt(dt,"focus",function(pt){return jo(a,pt)}),vt(dt,"blur",function(pt){return Wa(a,pt)})}var Ns=[];gi.defineInitHook=function(a){return Ns.push(a)};function $o(a,b,ae,ne){var pe=a.doc,Be;ae==null&&(ae="add"),ae=="smart"&&(pe.mode.indent?Be=On(a,b).state:ae="prev");var qe=a.options.tabSize,dt=Wt(pe,b),pt=Le(dt.text,null,qe);dt.stateAfter&&(dt.stateAfter=null);var gt=dt.text.match(/^\s*/)[0],Et;if(!ne&&!/\S/.test(dt.text))Et=0,ae="not";else if(ae=="smart"&&(Et=pe.mode.indent(Be,dt.text.slice(gt.length),dt.text),Et==it||Et>150)){if(!ne)return;ae="prev"}ae=="prev"?b>pe.first?Et=Le(Wt(pe,b-1).text,null,qe):Et=0:ae=="add"?Et=pt+a.options.indentUnit:ae=="subtract"?Et=pt-a.options.indentUnit:typeof ae=="number"&&(Et=pt+ae),Et=Math.max(0,Et);var At="",Ut=0;if(a.options.indentWithTabs)for(var It=Math.floor(Et/qe);It;--It)Ut+=qe,At+=" ";if(Ut<Et&&(At+=ut(Et-Ut)),At!=gt)return mo(pe,At,jt(b,0),jt(b,gt.length),"+input"),dt.stateAfter=null,!0;for(var cr=0;cr<pe.sel.ranges.length;cr++){var yr=pe.sel.ranges[cr];if(yr.head.line==b&&yr.head.ch<gt.length){var Or=jt(b,gt.length);Ds(pe,cr,new ii(Or,Or));break}}}var ba=null;function ms(a){ba=a}function Is(a,b,ae,ne,pe){var Be=a.doc;a.display.shift=!1,ne||(ne=Be.sel);var qe=+new Date-200,dt=pe=="paste"||a.state.pasteIncoming>qe,pt=kn(b),gt=null;if(dt&&ne.ranges.length>1)if(ba&&ba.text.join(`
`)==b){if(ne.ranges.length%ba.text.length==0){gt=[];for(var Et=0;Et<ba.text.length;Et++)gt.push(Be.splitLines(ba.text[Et]))}}else pt.length==ne.ranges.length&&a.options.pasteLinesPerSelection&&(gt=Ze(pt,function(Lr){return[Lr]}));for(var At=a.curOp.updateInput,Ut=ne.ranges.length-1;Ut>=0;Ut--){var It=ne.ranges[Ut],cr=It.from(),yr=It.to();It.empty()&&(ae&&ae>0?cr=jt(cr.line,cr.ch-ae):a.state.overwrite&&!dt?yr=jt(yr.line,Math.min(Wt(Be,yr.line).text.length,yr.ch+lt(pt).length)):dt&&ba&&ba.lineWise&&ba.text.join(`
`)==pt.join(`
`)&&(cr=yr=jt(cr.line,0)));var Or={from:cr,to:yr,text:gt?gt[Ut%gt.length]:pt,origin:pe||(dt?"paste":a.state.cutIncoming>qe?"cut":"+input")};po(a.doc,Or),qn(a,"inputRead",a,Or)}b&&!dt&&Ul(a,b),Oa(a),a.curOp.updateInput<2&&(a.curOp.updateInput=At),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Fl(a,b){var ae=a.clipboardData&&a.clipboardData.getData("Text");if(ae)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&aa(b,function(){return Is(b,ae,0,null,"paste")}),!0}function Ul(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ae=a.doc.sel,ne=ae.ranges.length-1;ne>=0;ne--){var pe=ae.ranges[ne];if(!(pe.head.ch>100||ne&&ae.ranges[ne-1].head.line==pe.head.line)){var Be=a.getModeAt(pe.head),qe=!1;if(Be.electricChars){for(var dt=0;dt<Be.electricChars.length;dt++)if(b.indexOf(Be.electricChars.charAt(dt))>-1){qe=$o(a,pe.head.line,"smart");break}}else Be.electricInput&&Be.electricInput.test(Wt(a.doc,pe.head.line).text.slice(0,pe.head.ch))&&(qe=$o(a,pe.head.line,"smart"));qe&&qn(a,"electricInput",a,pe.head.line)}}}function Wl(a){for(var b=[],ae=[],ne=0;ne<a.doc.sel.ranges.length;ne++){var pe=a.doc.sel.ranges[ne].head.line,Be={anchor:jt(pe,0),head:jt(pe+1,0)};ae.push(Be),b.push(a.getRange(Be.anchor,Be.head))}return{text:b,ranges:ae}}function Zl(a,b,ae,ne){a.setAttribute("autocorrect",ae?"":"off"),a.setAttribute("autocapitalize",ne?"":"off"),a.setAttribute("spellcheck",!!b)}function Hl(){var a=ge("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=ge("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?a.style.width="1000px":a.setAttribute("wrap","off"),re&&(a.style.border="1px solid black"),Zl(a),b}function Vu(a){var b=a.optionHandlers,ae=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ne,pe){var Be=this.options,qe=Be[ne];Be[ne]==pe&&ne!="mode"||(Be[ne]=pe,b.hasOwnProperty(ne)&&Ii(this,b[ne])(this,pe,qe),bt(this,"optionChange",this,ne))},getOption:function(ne){return this.options[ne]},getDoc:function(){return this.doc},addKeyMap:function(ne,pe){this.state.keyMaps[pe?"push":"unshift"](ds(ne))},removeKeyMap:function(ne){for(var pe=this.state.keyMaps,Be=0;Be<pe.length;++Be)if(pe[Be]==ne||pe[Be].name==ne)return pe.splice(Be,1),!0},addOverlay:Xi(function(ne,pe){var Be=ne.token?ne:a.getMode(this.options,ne);if(Be.startState)throw new Error("Overlays may not be stateful.");Ne(this.state.overlays,{mode:Be,modeSpec:ne,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(qe){return qe.priority}),this.state.modeGen++,Wi(this)}),removeOverlay:Xi(function(ne){for(var pe=this.state.overlays,Be=0;Be<pe.length;++Be){var qe=pe[Be].modeSpec;if(qe==ne||typeof ne=="string"&&qe.name==ne){pe.splice(Be,1),this.state.modeGen++,Wi(this);return}}}),indentLine:Xi(function(ne,pe,Be){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),nr(this.doc,ne)&&$o(this,ne,pe,Be)}),indentSelection:Xi(function(ne){for(var pe=this.doc.sel.ranges,Be=-1,qe=0;qe<pe.length;qe++){var dt=pe[qe];if(dt.empty())dt.head.line>Be&&($o(this,dt.head.line,ne,!0),Be=dt.head.line,qe==this.doc.sel.primIndex&&Oa(this));else{var pt=dt.from(),gt=dt.to(),Et=Math.max(Be,pt.line);Be=Math.min(this.lastLine(),gt.line-(gt.ch?0:1))+1;for(var At=Et;At<Be;++At)$o(this,At,ne);var Ut=this.doc.sel.ranges;pt.ch==0&&pe.length==Ut.length&&Ut[qe].from().ch>0&&Ds(this.doc,qe,new ii(pt,Ut[qe].to()),Ye)}}}),getTokenAt:function(ne,pe){return jn(this,ne,pe)},getLineTokens:function(ne,pe){return jn(this,jt(ne),pe,!0)},getTokenTypeAt:function(ne){ne=ar(this.doc,ne);var pe=vn(this,Wt(this.doc,ne.line)),Be=0,qe=(pe.length-1)/2,dt=ne.ch,pt;if(dt==0)pt=pe[2];else for(;;){var gt=Be+qe>>1;if((gt?pe[gt*2-1]:0)>=dt)qe=gt;else if(pe[gt*2+1]<dt)Be=gt+1;else{pt=pe[gt*2+2];break}}var Et=pt?pt.indexOf("overlay "):-1;return Et<0?pt:Et==0?null:pt.slice(0,Et-1)},getModeAt:function(ne){var pe=this.doc.mode;return pe.innerMode?a.innerMode(pe,this.getTokenAt(ne).state).mode:pe},getHelper:function(ne,pe){return this.getHelpers(ne,pe)[0]},getHelpers:function(ne,pe){var Be=[];if(!ae.hasOwnProperty(pe))return Be;var qe=ae[pe],dt=this.getModeAt(ne);if(typeof dt[pe]=="string")qe[dt[pe]]&&Be.push(qe[dt[pe]]);else if(dt[pe])for(var pt=0;pt<dt[pe].length;pt++){var gt=qe[dt[pe][pt]];gt&&Be.push(gt)}else dt.helperType&&qe[dt.helperType]?Be.push(qe[dt.helperType]):qe[dt.name]&&Be.push(qe[dt.name]);for(var Et=0;Et<qe._global.length;Et++){var At=qe._global[Et];At.pred(dt,this)&&rt(Be,At.val)==-1&&Be.push(At.val)}return Be},getStateAfter:function(ne,pe){var Be=this.doc;return ne=xr(Be,ne==null?Be.first+Be.size-1:ne),On(this,ne+1,pe).state},cursorCoords:function(ne,pe){var Be,qe=this.doc.sel.primary();return ne==null?Be=qe.head:typeof ne=="object"?Be=ar(this.doc,ne):Be=ne?qe.from():qe.to(),di(this,Be,pe||"page")},charCoords:function(ne,pe){return Ui(this,ar(this.doc,ne),pe||"page")},coordsChar:function(ne,pe){return ne=Ta(this,ne,pe||"page"),vi(this,ne.left,ne.top)},lineAtHeight:function(ne,pe){return ne=Ta(this,{top:ne,left:0},pe||"page").top,Dt(this.doc,ne+this.display.viewOffset)},heightAtLine:function(ne,pe,Be){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=Wt(this.doc,ne)}else dt=ne;return ka(this,dt,{top:0,left:0},pe||"page",Be||qe).top+(qe?this.doc.height-Tr(dt):0)},defaultTextHeight:function(){return Ri(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ne,pe,Be,qe,dt){var pt=this.display;ne=di(this,ar(this.doc,ne));var gt=ne.bottom,Et=ne.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),pt.sizer.appendChild(pe),qe=="over")gt=ne.top;else if(qe=="above"||qe=="near"){var At=Math.max(pt.wrapper.clientHeight,this.doc.height),Ut=Math.max(pt.sizer.clientWidth,pt.lineSpace.clientWidth);(qe=="above"||ne.bottom+pe.offsetHeight>At)&&ne.top>pe.offsetHeight?gt=ne.top-pe.offsetHeight:ne.bottom+pe.offsetHeight<=At&&(gt=ne.bottom),Et+pe.offsetWidth>Ut&&(Et=Ut-pe.offsetWidth)}pe.style.top=gt+"px",pe.style.left=pe.style.right="",dt=="right"?(Et=pt.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(dt=="left"?Et=0:dt=="middle"&&(Et=(pt.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=Et+"px"),Be&&ts(this,{left:Et,top:gt,right:Et+pe.offsetWidth,bottom:gt+pe.offsetHeight})},triggerOnKeyDown:Xi(Ol),triggerOnKeyPress:Xi(Rl),triggerOnKeyUp:Pl,triggerOnMouseDown:Xi(_l),execCommand:function(ne){if(Ko.hasOwnProperty(ne))return Ko[ne].call(null,this)},triggerElectric:Xi(function(ne){Ul(this,ne)}),findPosH:function(ne,pe,Be,qe){var dt=1;pe<0&&(dt=-1,pe=-pe);for(var pt=ar(this.doc,ne),gt=0;gt<pe&&(pt=Ls(this.doc,pt,dt,Be,qe),!pt.hitSide);++gt);return pt},moveH:Xi(function(ne,pe){var Be=this;this.extendSelectionsBy(function(qe){return Be.display.shift||Be.doc.extend||qe.empty()?Ls(Be.doc,qe.head,ne,pe,Be.options.rtlMoveVisually):ne<0?qe.from():qe.to()},Ke)}),deleteH:Xi(function(ne,pe){var Be=this.doc.sel,qe=this.doc;Be.somethingSelected()?qe.replaceSelection("",null,"+delete"):yo(this,function(dt){var pt=Ls(qe,dt.head,ne,pe,!1);return ne<0?{from:pt,to:dt.head}:{from:dt.head,to:pt}})}),findPosV:function(ne,pe,Be,qe){var dt=1,pt=qe;pe<0&&(dt=-1,pe=-pe);for(var gt=ar(this.doc,ne),Et=0;Et<pe;++Et){var At=di(this,gt,"div");if(pt==null?pt=At.left:At.left=pt,gt=zl(this,At,dt,Be),gt.hitSide)break}return gt},moveV:Xi(function(ne,pe){var Be=this,qe=this.doc,dt=[],pt=!this.display.shift&&!qe.extend&&qe.sel.somethingSelected();if(qe.extendSelectionsBy(function(Et){if(pt)return ne<0?Et.from():Et.to();var At=di(Be,Et.head,"div");Et.goalColumn!=null&&(At.left=Et.goalColumn),dt.push(At.left);var Ut=zl(Be,At,ne,pe);return pe=="page"&&Et==qe.sel.primary()&&co(Be,Ui(Be,Ut,"div").top-At.top),Ut},Ke),dt.length)for(var gt=0;gt<qe.sel.ranges.length;gt++)qe.sel.ranges[gt].goalColumn=dt[gt]}),findWordAt:function(ne){var pe=this.doc,Be=Wt(pe,ne.line).text,qe=ne.ch,dt=ne.ch;if(Be){var pt=this.getHelper(ne,"wordChars");(ne.sticky=="before"||dt==Be.length)&&qe?--qe:++dt;for(var gt=Be.charAt(qe),Et=mt(gt,pt)?function(At){return mt(At,pt)}:/\s/.test(gt)?function(At){return/\s/.test(At)}:function(At){return!/\s/.test(At)&&!mt(At)};qe>0&&Et(Be.charAt(qe-1));)--qe;for(;dt<Be.length&&Et(Be.charAt(dt));)++dt}return new ii(jt(ne.line,qe),jt(ne.line,dt))},toggleOverwrite:function(ne){ne!=null&&ne==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Oe(this.display.cursorDiv,"CodeMirror-overwrite"):Pe(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ee()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Xi(function(ne,pe){qa(this,ne,pe)}),getScrollInfo:function(){var ne=this.display.scroller;return{left:ne.scrollLeft,top:ne.scrollTop,height:ne.scrollHeight-ni(this)-this.display.barHeight,width:ne.scrollWidth-ni(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:sa(this)}},scrollIntoView:Xi(function(ne,pe){ne==null?(ne={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof ne=="number"?ne={from:jt(ne,0),to:null}:ne.from==null&&(ne={from:ne,to:null}),ne.to||(ne.to=ne.from),ne.margin=pe||0,ne.from.line!=null?rs(this,ne):_o(this,ne.from,ne.to,ne.margin)}),setSize:Xi(function(ne,pe){var Be=this,qe=function(pt){return typeof pt=="number"||/^\d+$/.test(String(pt))?pt+"px":pt};ne!=null&&(this.display.wrapper.style.width=qe(ne)),pe!=null&&(this.display.wrapper.style.height=qe(pe)),this.options.lineWrapping&&Ba(this);var dt=this.display.viewFrom;this.doc.iter(dt,this.display.viewTo,function(pt){if(pt.widgets){for(var gt=0;gt<pt.widgets.length;gt++)if(pt.widgets[gt].noHScroll){ca(Be,dt,"widget");break}}++dt}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(ne){return aa(this,ne)},startOperation:function(){return fa(this)},endOperation:function(){return ga(this)},refresh:Xi(function(){var ne=this.display.cachedTextHeight;Wi(this),this.curOp.forceUpdate=!0,Ca(this),qa(this,this.doc.scrollLeft,this.doc.scrollTop),ws(this.display),(ne==null||Math.abs(ne-Ri(this.display))>.5||this.options.lineWrapping)&&Co(this),bt(this,"refresh",this)}),swapDoc:Xi(function(ne){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),Ys(this,ne),Ca(this),this.display.input.reset(),qa(this,ne.scrollLeft,ne.scrollTop),this.curOp.forceScroll=!0,qn(this,"swapDoc",this,pe),pe}),phrase:function(ne){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,ne)?pe[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}},Pt(a),a.registerHelper=function(ne,pe,Be){ae.hasOwnProperty(ne)||(ae[ne]=a[ne]={_global:[]}),ae[ne][pe]=Be},a.registerGlobalHelper=function(ne,pe,Be,qe){a.registerHelper(ne,pe,qe),ae[ne]._global.push({pred:Be,val:qe})}}function Ls(a,b,ae,ne,pe){var Be=b,qe=ae,dt=Wt(a,b.line),pt=pe&&a.direction=="rtl"?-ae:ae;function gt(){var $r=b.line+pt;return $r<a.first||$r>=a.first+a.size?!1:(b=new jt($r,b.ch,b.sticky),dt=Wt(a,$r))}function Et($r){var Br;if(ne=="codepoint"){var an=dt.text.charCodeAt(b.ch+(ne>0?0:-1));isNaN(an)?Br=null:Br=new jt(b.line,Math.max(0,Math.min(dt.text.length,b.ch+ae*(an>=55296&&an<56320?2:1))),-ae)}else pe?Br=Du(a.cm,dt,b,ae):Br=Os(dt,b,ae);if(Br==null)if(!$r&&gt())b=Ps(pe,a.cm,dt,b.line,pt);else return!1;else b=Br;return!0}if(ne=="char"||ne=="codepoint")Et();else if(ne=="column")Et(!0);else if(ne=="word"||ne=="group")for(var At=null,Ut=ne=="group",It=a.cm&&a.cm.getHelper(b,"wordChars"),cr=!0;!(ae<0&&!Et(!cr));cr=!1){var yr=dt.text.charAt(b.ch)||`
`,Or=mt(yr,It)?"w":Ut&&yr==`
`?"n":!Ut||/\s/.test(yr)?null:"p";if(Ut&&!cr&&!Or&&(Or="s"),At&&At!=Or){ae<0&&(ae=1,Et(),b.sticky="after");break}if(Or&&(At=Or),ae>0&&!Et(!cr))break}var Lr=us(a,b,Be,qe,!0);return hr(Be,Lr)&&(Lr.hitSide=!0),Lr}function zl(a,b,ae,ne){var pe=a.doc,Be=b.left,qe;if(ne=="page"){var dt=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),pt=Math.max(dt-.5*Ri(a.display),3);qe=(ae>0?b.bottom:b.top)+ae*pt}else ne=="line"&&(qe=ae>0?b.bottom+3:b.top-3);for(var gt;gt=vi(a,Be,qe),!!gt.outside;){if(ae<0?qe<=0:qe>=pe.height){gt.hitSide=!0;break}qe+=ae*5}return gt}var si=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};si.prototype.init=function(a){var b=this,ae=this,ne=ae.cm,pe=ae.div=a.lineDiv;Zl(pe,ne.options.spellcheck,ne.options.autocorrect,ne.options.autocapitalize);function Be(dt){for(var pt=dt.target;pt;pt=pt.parentNode){if(pt==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(pt.className))break}return!1}vt(pe,"paste",function(dt){!Be(dt)||ht(ne,dt)||Fl(dt,ne)||x<=11&&setTimeout(Ii(ne,function(){return b.updateFromDOM()}),20)}),vt(pe,"compositionstart",function(dt){b.composing={data:dt.data,done:!1}}),vt(pe,"compositionupdate",function(dt){b.composing||(b.composing={data:dt.data,done:!1})}),vt(pe,"compositionend",function(dt){b.composing&&(dt.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),vt(pe,"touchstart",function(){return ae.forceCompositionEnd()}),vt(pe,"input",function(){b.composing||b.readFromDOMSoon()});function qe(dt){if(!(!Be(dt)||ht(ne,dt))){if(ne.somethingSelected())ms({lineWise:!1,text:ne.getSelections()}),dt.type=="cut"&&ne.replaceSelection("",null,"cut");else if(ne.options.lineWiseCopyCut){var pt=Wl(ne);ms({lineWise:!0,text:pt.text}),dt.type=="cut"&&ne.operation(function(){ne.setSelections(pt.ranges,0,Ye),ne.replaceSelection("",null,"cut")})}else return;if(dt.clipboardData){dt.clipboardData.clearData();var gt=ba.text.join(`
`);if(dt.clipboardData.setData("Text",gt),dt.clipboardData.getData("Text")==gt){dt.preventDefault();return}}var Et=Hl(),At=Et.firstChild;ne.display.lineSpace.insertBefore(Et,ne.display.lineSpace.firstChild),At.value=ba.text.join(`
`);var Ut=document.activeElement;Xe(At),setTimeout(function(){ne.display.lineSpace.removeChild(Et),Ut.focus(),Ut==pe&&ae.showPrimarySelection()},50)}}vt(pe,"copy",qe),vt(pe,"cut",qe)},si.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},si.prototype.prepareSelection=function(){var a=qo(this.cm,!1);return a.focus=document.activeElement==this.div,a},si.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},si.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},si.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,ae=b.doc.sel.primary(),ne=ae.from(),pe=ae.to();if(b.display.viewTo==b.display.viewFrom||ne.line>=b.display.viewTo||pe.line<b.display.viewFrom){a.removeAllRanges();return}var Be=vs(b,a.anchorNode,a.anchorOffset),qe=vs(b,a.focusNode,a.focusOffset);if(!(Be&&!Be.bad&&qe&&!qe.bad&&tr(sr(Be,qe),ne)==0&&tr(kr(Be,qe),pe)==0)){var dt=b.display.view,pt=ne.line>=b.display.viewFrom&&Gl(b,ne)||{node:dt[0].measure.map[2],offset:0},gt=pe.line<b.display.viewTo&&Gl(b,pe);if(!gt){var Et=dt[dt.length-1].measure,At=Et.maps?Et.maps[Et.maps.length-1]:Et.map;gt={node:At[At.length-1],offset:At[At.length-2]-At[At.length-3]}}if(!pt||!gt){a.removeAllRanges();return}var Ut=a.rangeCount&&a.getRangeAt(0),It;try{It=De(pt.node,pt.offset,gt.offset,gt.node)}catch(cr){}It&&(!Je&&b.state.focused?(a.collapse(pt.node,pt.offset),It.collapsed||(a.removeAllRanges(),a.addRange(It))):(a.removeAllRanges(),a.addRange(It)),Ut&&a.anchorNode==null?a.addRange(Ut):Je&&this.startGracePeriod()),this.rememberSelection()}},si.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)},si.prototype.showMultipleSelections=function(a){de(this.cm.display.cursorDiv,a.cursors),de(this.cm.display.selectionDiv,a.selection)},si.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},si.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return _e(this.div,b)},si.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},si.prototype.blur=function(){this.div.blur()},si.prototype.getField=function(){return this.div},si.prototype.supportsTouch=function(){return!0},si.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():aa(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)},si.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},si.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(le&&ie&&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 ae=vs(b,a.anchorNode,a.anchorOffset),ne=vs(b,a.focusNode,a.focusOffset);ae&&ne&&aa(b,function(){zi(b.doc,Ha(ae,ne),Ye),(ae.bad||ne.bad)&&(b.curOp.selectionChanged=!0)})}}},si.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,ae=a.doc.sel.primary(),ne=ae.from(),pe=ae.to();if(ne.ch==0&&ne.line>a.firstLine()&&(ne=jt(ne.line-1,Wt(a.doc,ne.line-1).length)),pe.ch==Wt(a.doc,pe.line).text.length&&pe.line<a.lastLine()&&(pe=jt(pe.line+1,0)),ne.line<b.viewFrom||pe.line>b.viewTo-1)return!1;var Be,qe,dt;ne.line==b.viewFrom||(Be=Aa(a,ne.line))==0?(qe=Ct(b.view[0].line),dt=b.view[0].node):(qe=Ct(b.view[Be].line),dt=b.view[Be-1].node.nextSibling);var pt=Aa(a,pe.line),gt,Et;if(pt==b.view.length-1?(gt=b.viewTo-1,Et=b.lineDiv.lastChild):(gt=Ct(b.view[pt+1].line)-1,Et=b.view[pt+1].node.previousSibling),!dt)return!1;for(var At=a.doc.splitLines(Yu(a,dt,Et,qe,gt)),Ut=Sr(a.doc,jt(qe,0),jt(gt,Wt(a.doc,gt).text.length));At.length>1&&Ut.length>1;)if(lt(At)==lt(Ut))At.pop(),Ut.pop(),gt--;else if(At[0]==Ut[0])At.shift(),Ut.shift(),qe++;else break;for(var It=0,cr=0,yr=At[0],Or=Ut[0],Lr=Math.min(yr.length,Or.length);It<Lr&&yr.charCodeAt(It)==Or.charCodeAt(It);)++It;for(var $r=lt(At),Br=lt(Ut),an=Math.min($r.length-(At.length==1?It:0),Br.length-(Ut.length==1?It:0));cr<an&&$r.charCodeAt($r.length-cr-1)==Br.charCodeAt(Br.length-cr-1);)++cr;if(At.length==1&&Ut.length==1&&qe==ne.line)for(;It&&It>ne.ch&&$r.charCodeAt($r.length-cr-1)==Br.charCodeAt(Br.length-cr-1);)It--,cr++;At[At.length-1]=$r.slice(0,$r.length-cr).replace(/^\u200b+/,""),At[0]=At[0].slice(It).replace(/\u200b+$/,"");var Dn=jt(qe,It),bn=jt(gt,Ut.length?lt(Ut).length-cr:0);if(At.length>1||At[0]||tr(Dn,bn))return mo(a.doc,At,Dn,bn,"+input"),!0},si.prototype.ensurePolled=function(){this.forceCompositionEnd()},si.prototype.reset=function(){this.forceCompositionEnd()},si.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},si.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))},si.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&aa(this.cm,function(){return Wi(a.cm)})},si.prototype.setUneditable=function(a){a.contentEditable="false"},si.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ii(this.cm,Is)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},si.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},si.prototype.onContextMenu=function(){},si.prototype.resetPosition=function(){},si.prototype.needsContentAttribute=!0;function Gl(a,b){var ae=pa(a,b.line);if(!ae||ae.hidden)return null;var ne=Wt(a.doc,b.line),pe=mi(ae,ne,b.line),Be=Qe(ne,a.doc.direction),qe="left";if(Be){var dt=ye(Be,b.ch);qe=dt%2?"right":"left"}var pt=no(pe.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 wo(a,b){return b&&(a.bad=!0),a}function Yu(a,b,ae,ne,pe){var Be="",qe=!1,dt=a.doc.lineSeparator(),pt=!1;function gt(It){return function(cr){return cr.id==It}}function Et(){qe&&(Be+=dt,pt&&(Be+=dt),qe=pt=!1)}function At(It){It&&(Et(),Be+=It)}function Ut(It){if(It.nodeType==1){var cr=It.getAttribute("cm-text");if(cr){At(cr);return}var yr=It.getAttribute("cm-marker"),Or;if(yr){var Lr=a.findMarks(jt(ne,0),jt(pe+1,0),gt(+yr));Lr.length&&(Or=Lr[0].find(0))&&At(Sr(a.doc,Or.from,Or.to).join(dt));return}if(It.getAttribute("contenteditable")=="false")return;var $r=/^(pre|div|p|li|table|br)$/i.test(It.nodeName);if(!/^br$/i.test(It.nodeName)&&It.textContent.length==0)return;$r&&Et();for(var Br=0;Br<It.childNodes.length;Br++)Ut(It.childNodes[Br]);/^(pre|p)$/i.test(It.nodeName)&&(pt=!0),$r&&(qe=!0)}else It.nodeType==3&&At(It.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ut(b),b!=ae;)b=b.nextSibling,pt=!1;return Be}function vs(a,b,ae){var ne;if(b==a.display.lineDiv){if(ne=a.display.lineDiv.childNodes[ae],!ne)return wo(a.clipPos(jt(a.display.viewTo-1)),!0);b=null,ae=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 pe=0;pe<a.display.view.length;pe++){var Be=a.display.view[pe];if(Be.node==ne)return $u(Be,b,ae)}}function $u(a,b,ae){var ne=a.text.firstChild,pe=!1;if(!b||!_e(ne,b))return wo(jt(Ct(a.line),0),!0);if(b==ne&&(pe=!0,b=ne.childNodes[ae],ae=0,!b)){var Be=a.rest?lt(a.rest):a.line;return wo(jt(Ct(Be),Be.text.length),pe)}var qe=b.nodeType==3?b:null,dt=b;for(!qe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(qe=b.firstChild,ae&&(ae=qe.nodeValue.length));dt.parentNode!=ne;)dt=dt.parentNode;var pt=a.measure,gt=pt.maps;function Et(Or,Lr,$r){for(var Br=-1;Br<(gt?gt.length:0);Br++)for(var an=Br<0?pt.map:gt[Br],Dn=0;Dn<an.length;Dn+=3){var bn=an[Dn+2];if(bn==Or||bn==Lr){var Kn=Ct(Br<0?a.line:a.rest[Br]),ui=an[Dn]+$r;return($r<0||bn!=Or)&&(ui=an[Dn+($r?1:0)]),jt(Kn,ui)}}}var At=Et(qe,dt,ae);if(At)return wo(At,pe);for(var Ut=dt.nextSibling,It=qe?qe.nodeValue.length-ae:0;Ut;Ut=Ut.nextSibling){if(At=Et(Ut,Ut.firstChild,0),At)return wo(jt(At.line,At.ch-It),pe);It+=Ut.textContent.length}for(var cr=dt.previousSibling,yr=ae;cr;cr=cr.previousSibling){if(At=Et(cr,cr.firstChild,-1),At)return wo(jt(At.line,At.ch+yr),pe);yr+=cr.textContent.length}}var Ai=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new Ue,this.hasSelection=!1,this.composing=null};Ai.prototype.init=function(a){var b=this,ae=this,ne=this.cm;this.createField(a);var pe=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),re&&(pe.style.width="0px"),vt(pe,"input",function(){ve&&x>=9&&b.hasSelection&&(b.hasSelection=null),ae.poll()}),vt(pe,"paste",function(qe){ht(ne,qe)||Fl(qe,ne)||(ne.state.pasteIncoming=+new Date,ae.fastPoll())});function Be(qe){if(!ht(ne,qe)){if(ne.somethingSelected())ms({lineWise:!1,text:ne.getSelections()});else if(ne.options.lineWiseCopyCut){var dt=Wl(ne);ms({lineWise:!0,text:dt.text}),qe.type=="cut"?ne.setSelections(dt.ranges,null,Ye):(ae.prevInput="",pe.value=dt.text.join(`
`),Xe(pe))}else return;qe.type=="cut"&&(ne.state.cutIncoming=+new Date)}}vt(pe,"cut",Be),vt(pe,"copy",Be),vt(a.scroller,"paste",function(qe){if(!(ci(a,qe)||ht(ne,qe))){if(!pe.dispatchEvent){ne.state.pasteIncoming=+new Date,ae.focus();return}var dt=new Event("paste");dt.clipboardData=qe.clipboardData,pe.dispatchEvent(dt)}}),vt(a.lineSpace,"selectstart",function(qe){ci(a,qe)||Vt(qe)}),vt(pe,"compositionstart",function(){var qe=ne.getCursor("from");ae.composing&&ae.composing.range.clear(),ae.composing={start:qe,range:ne.markText(qe,ne.getCursor("to"),{className:"CodeMirror-composing"})}}),vt(pe,"compositionend",function(){ae.composing&&(ae.poll(),ae.composing.range.clear(),ae.composing=null)})},Ai.prototype.createField=function(a){this.wrapper=Hl(),this.textarea=this.wrapper.firstChild},Ai.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ai.prototype.prepareSelection=function(){var a=this.cm,b=a.display,ae=a.doc,ne=qo(a);if(a.options.moveInputWithCursor){var pe=di(a,ae.sel.primary().head,"div"),Be=b.wrapper.getBoundingClientRect(),qe=b.lineDiv.getBoundingClientRect();ne.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,pe.top+qe.top-Be.top)),ne.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,pe.left+qe.left-Be.left))}return ne},Ai.prototype.showSelection=function(a){var b=this.cm,ae=b.display;de(ae.cursorDiv,a.cursors),de(ae.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ai.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var ae=b.getSelection();this.textarea.value=ae,b.state.focused&&Xe(this.textarea),ve&&x>=9&&(this.hasSelection=ae)}else a||(this.prevInput=this.textarea.value="",ve&&x>=9&&(this.hasSelection=null))}},Ai.prototype.getField=function(){return this.textarea},Ai.prototype.supportsTouch=function(){return!1},Ai.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ue||Ee()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ai.prototype.blur=function(){this.textarea.blur()},Ai.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ai.prototype.receivedFocus=function(){this.slowPoll()},Ai.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ai.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function ae(){var ne=b.poll();!ne&&!a?(a=!0,b.polling.set(60,ae)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,ae)},Ai.prototype.poll=function(){var a=this,b=this.cm,ae=this.textarea,ne=this.prevInput;if(this.contextMenuPending||!b.state.focused||En(ae)&&!ne&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var pe=ae.value;if(pe==ne&&!b.somethingSelected())return!1;if(ve&&x>=9&&this.hasSelection===pe||ce&&/[\uf700-\uf7ff]/.test(pe))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Be=pe.charCodeAt(0);if(Be==8203&&!ne&&(ne="\u200B"),Be==8666)return this.reset(),this.cm.execCommand("undo")}for(var qe=0,dt=Math.min(ne.length,pe.length);qe<dt&&ne.charCodeAt(qe)==pe.charCodeAt(qe);)++qe;return aa(b,function(){Is(b,pe.slice(qe),ne.length-qe,null,a.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
`)>-1?ae.value=a.prevInput="":a.prevInput=pe,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ai.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ai.prototype.onKeyPress=function(){ve&&x>=9&&(this.hasSelection=null),this.fastPoll()},Ai.prototype.onContextMenu=function(a){var b=this,ae=b.cm,ne=ae.display,pe=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Be=wa(ae,a),qe=ne.scroller.scrollTop;if(!Be||ee)return;var dt=ae.options.resetSelectionOnContextMenu;dt&&ae.doc.sel.contains(Be)==-1&&Ii(ae,zi)(ae.doc,Ha(Be),Ye);var pt=pe.style.cssText,gt=b.wrapper.style.cssText,Et=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Et.top-5)+"px; left: "+(a.clientX-Et.left-5)+`px;
z-index: 1000; background: `+(ve?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var At;z&&(At=window.scrollY),ne.input.focus(),z&&window.scrollTo(null,At),ne.input.reset(),ae.somethingSelected()||(pe.value=b.prevInput=" "),b.contextMenuPending=It,ne.selForContextMenu=ae.doc.sel,clearTimeout(ne.detectingSelectAll);function Ut(){if(pe.selectionStart!=null){var yr=ae.somethingSelected(),Or="\u200B"+(yr?pe.value:"");pe.value="\u21DA",pe.value=Or,b.prevInput=yr?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=Or.length,ne.selForContextMenu=ae.doc.sel}}function It(){if(b.contextMenuPending==It&&(b.contextMenuPending=!1,b.wrapper.style.cssText=gt,pe.style.cssText=pt,ve&&x<9&&ne.scrollbars.setScrollTop(ne.scroller.scrollTop=qe),pe.selectionStart!=null)){(!ve||ve&&x<9)&&Ut();var yr=0,Or=function(){ne.selForContextMenu==ae.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&b.prevInput=="\u200B"?Ii(ae,ul)(ae):yr++<10?ne.detectingSelectAll=setTimeout(Or,500):(ne.selForContextMenu=null,ne.input.reset())};ne.detectingSelectAll=setTimeout(Or,200)}}if(ve&&x>=9&&Ut(),Ce){Cr(a);var cr=function(){xt(window,"mouseup",cr),setTimeout(It,20)};vt(window,"mouseup",cr)}else setTimeout(It,50)},Ai.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ai.prototype.setUneditable=function(){},Ai.prototype.needsContentAttribute=!1;function Ju(a,b){if(b=b?st(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 ae=Ee();b.autofocus=ae==a||a.getAttribute("autofocus")!=null&&ae==document.body}function ne(){a.value=dt.getValue()}var pe;if(a.form&&(vt(a.form,"submit",ne),!b.leaveSubmitMethodAlone)){var Be=a.form;pe=Be.submit;try{var qe=Be.submit=function(){ne(),Be.submit=pe,Be.submit(),Be.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&&(xt(a.form,"submit",ne),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=pe))}},a.style.display="none";var dt=gi(function(pt){return a.parentNode.insertBefore(pt,a.nextSibling)},b);return dt}function Qu(a){a.off=xt,a.on=vt,a.wheelEventPixels=au,a.Doc=qi,a.splitLines=kn,a.countColumn=Le,a.findColumn=ft,a.isWordChar=ct,a.Pass=it,a.signal=bt,a.Line=ln,a.changeEnd=za,a.scrollbarModel=_a,a.Pos=jt,a.cmpPos=tr,a.modes=or,a.mimeModes=Zt,a.resolveMode=gr,a.getMode=Hr,a.modeExtensions=Qr,a.extendMode=rn,a.copyState=Kr,a.startState=dn,a.innerMode=Wr,a.commands=Ko,a.keyMap=Na,a.keyName=kl,a.isModifierKey=El,a.lookupKey=go,a.normalizeKeyMap=Au,a.StringStream=pr,a.SharedTextMarker=Ho,a.TextMarker=Ka,a.LineWidget=Zo,a.e_preventDefault=Vt,a.e_stopPropagation=vr,a.e_stop=Cr,a.addClass=Oe,a.contains=_e,a.rmClass=Pe,a.keyNames=Va}Hu(gi),Vu(gi);var qu="iter insert remove copy getEditor constructor".split(" ");for(var gs in qi.prototype)qi.prototype.hasOwnProperty(gs)&&rt(qu,gs)<0&&(gi.prototype[gs]=function(a){return function(){return a.apply(this.doc,arguments)}}(qi.prototype[gs]));return Pt(qi),gi.inputStyles={textarea:Ai,contenteditable:si},gi.defineMode=function(a){!gi.defaults.mode&&a!="null"&&(gi.defaults.mode=a),ir.apply(this,arguments)},gi.defineMIME=Nr,gi.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),gi.defineMIME("text/plain","null"),gi.defineExtension=function(a,b){gi.prototype[a]=b},gi.defineDocExtension=function(a,b){qi.prototype[a]=b},gi.fromTextArea=Ju,Qu(gi),gi.version="5.58.2",gi})},25419:function(Kt,_t,Ve){(function(Je){Je(Ve(89780),Ve(15525),Ve(98101))})(function(Je){"use strict";Je.defineMode("markdown",function(wt,y){var we=Je.getMode(wt,"text/html"),ve=we.name=="null";function x(Le){if(Je.findModeByName){var Ue=Je.findModeByName(Le);Ue&&(Le=Ue.mime||Ue.mimes[0])}var rt=Je.getMode(wt,Le);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 z={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var oe in z)z.hasOwnProperty(oe)&&y.tokenTypeOverrides[oe]&&(z[oe]=y.tokenTypeOverrides[oe]);var ie=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,se=/^\[(x| )\](?=\s)/i,E=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,te=/^ {0,3}(?:\={1,}|-{2,})\s*$/,re=/^[^#!\[\]*_\\<>` "'(~:]+/,le=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ue=/^\s*\[[^\]]+?\]:.*$/,ce=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,he=" ";function me(Le,Ue,rt){return Ue.f=Ue.inline=rt,rt(Le,Ue)}function fe(Le,Ue,rt){return Ue.f=Ue.block=rt,rt(Le,Ue)}function be(Le){return!Le||!/\S/.test(Le.string)}function Ce(Le){if(Le.linkTitle=!1,Le.linkHref=!1,Le.linkText=!1,Le.em=!1,Le.strong=!1,Le.strikethrough=!1,Le.quote=0,Le.indentedCode=!1,Le.f==Pe){var Ue=ve;if(!Ue){var rt=Je.innerMode(we,Le.htmlState);Ue=rt.mode.name=="xml"&&rt.state.tagStart===null&&!rt.state.context&&rt.state.tokenize.isInText}Ue&&(Le.f=Se,Le.block=Te,Le.htmlState=null)}return Le.trailingSpace=0,Le.trailingSpaceNewLine=!1,Le.prevLine=Le.thisLine,Le.thisLine={stream:null},null}function Te(Le,Ue){var rt=Le.column()===Ue.indentation,ot=be(Ue.prevLine.stream),it=Ue.indentedCode,Ye=Ue.prevLine.hr,$e=Ue.list!==!1,Ke=(Ue.listStack[Ue.listStack.length-1]||0)+3;Ue.indentedCode=!1;var ft=Ue.indentation;if(Ue.indentationDiff===null&&(Ue.indentationDiff=Ue.indentation,$e)){for(Ue.list=null;ft<Ue.listStack[Ue.listStack.length-1];)Ue.listStack.pop(),Ue.listStack.length?Ue.indentation=Ue.listStack[Ue.listStack.length-1]:Ue.list=!1;Ue.list!==!1&&(Ue.indentationDiff=ft-Ue.listStack[Ue.listStack.length-1])}var tt=!ot&&!Ye&&!Ue.prevLine.header&&(!$e||!it)&&!Ue.prevLine.fencedCodeEnd,ut=(Ue.list===!1||Ye||ot)&&Ue.indentation<=Ke&&Le.match(ie),lt=null;if(Ue.indentationDiff>=4&&(it||Ue.prevLine.fencedCodeEnd||Ue.prevLine.header||ot))return Le.skipToEnd(),Ue.indentedCode=!0,z.code;if(Le.eatSpace())return null;if(rt&&Ue.indentation<=Ke&&(lt=Le.match(E))&&lt[1].length<=6)return Ue.quote=0,Ue.header=lt[1].length,Ue.thisLine.header=!0,y.highlightFormatting&&(Ue.formatting="header"),Ue.f=Ue.inline,de(Ue);if(Ue.indentation<=Ke&&Le.eat(">"))return Ue.quote=rt?1:Ue.quote+1,y.highlightFormatting&&(Ue.formatting="quote"),Le.eatSpace(),de(Ue);if(!ut&&!Ue.setext&&rt&&Ue.indentation<=Ke&&(lt=Le.match(ee))){var Ze=lt[1]?"ol":"ul";return Ue.indentation=ft+Le.current().length,Ue.list=!0,Ue.quote=0,Ue.listStack.push(Ue.indentation),Ue.em=!1,Ue.strong=!1,Ue.code=!1,Ue.strikethrough=!1,y.taskLists&&Le.match(se,!1)&&(Ue.taskList=!0),Ue.f=Ue.inline,y.highlightFormatting&&(Ue.formatting=["list","list-"+Ze]),de(Ue)}else{if(rt&&Ue.indentation<=Ke&&(lt=Le.match(le,!0)))return Ue.quote=0,Ue.fencedEndRE=new RegExp(lt[1]+"+ *$"),Ue.localMode=y.fencedCodeBlockHighlighting&&x(lt[2]||y.fencedCodeBlockDefaultMode),Ue.localMode&&(Ue.localState=Je.startState(Ue.localMode)),Ue.f=Ue.block=ke,y.highlightFormatting&&(Ue.formatting="code-block"),Ue.code=-1,de(Ue);if(Ue.setext||(!tt||!$e)&&!Ue.quote&&Ue.list===!1&&!Ue.code&&!ut&&!ue.test(Le.string)&&(lt=Le.lookAhead(1))&&(lt=lt.match(te)))return Ue.setext?(Ue.header=Ue.setext,Ue.setext=0,Le.skipToEnd(),y.highlightFormatting&&(Ue.formatting="header")):(Ue.header=lt[0].charAt(0)=="="?1:2,Ue.setext=Ue.header),Ue.thisLine.header=!0,Ue.f=Ue.inline,de(Ue);if(ut)return Le.skipToEnd(),Ue.hr=!0,Ue.thisLine.hr=!0,z.hr;if(Le.peek()==="[")return me(Le,Ue,He)}return me(Le,Ue,Ue.inline)}function Pe(Le,Ue){var rt=we.token(Le,Ue.htmlState);if(!ve){var ot=Je.innerMode(we,Ue.htmlState);(ot.mode.name=="xml"&&ot.state.tagStart===null&&!ot.state.context&&ot.state.tokenize.isInText||Ue.md_inside&&Le.current().indexOf(">")>-1)&&(Ue.f=Se,Ue.block=Te,Ue.htmlState=null)}return rt}function ke(Le,Ue){var rt=Ue.listStack[Ue.listStack.length-1]||0,ot=Ue.indentation<rt,it=rt+3;if(Ue.fencedEndRE&&Ue.indentation<=it&&(ot||Le.match(Ue.fencedEndRE))){y.highlightFormatting&&(Ue.formatting="code-block");var Ye;return ot||(Ye=de(Ue)),Ue.localMode=Ue.localState=null,Ue.block=Te,Ue.f=Se,Ue.fencedEndRE=null,Ue.code=0,Ue.thisLine.fencedCodeEnd=!0,ot?fe(Le,Ue,Ue.block):Ye}else return Ue.localMode?Ue.localMode.token(Le,Ue.localState):(Le.skipToEnd(),z.code)}function de(Le){var Ue=[];if(Le.formatting){Ue.push(z.formatting),typeof Le.formatting=="string"&&(Le.formatting=[Le.formatting]);for(var rt=0;rt<Le.formatting.length;rt++)Ue.push(z.formatting+"-"+Le.formatting[rt]),Le.formatting[rt]==="header"&&Ue.push(z.formatting+"-"+Le.formatting[rt]+"-"+Le.header),Le.formatting[rt]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Le.quote?Ue.push(z.formatting+"-"+Le.formatting[rt]+"-"+Le.quote):Ue.push("error"))}if(Le.taskOpen)return Ue.push("meta"),Ue.length?Ue.join(" "):null;if(Le.taskClosed)return Ue.push("property"),Ue.length?Ue.join(" "):null;if(Le.linkHref?Ue.push(z.linkHref,"url"):(Le.strong&&Ue.push(z.strong),Le.em&&Ue.push(z.em),Le.strikethrough&&Ue.push(z.strikethrough),Le.emoji&&Ue.push(z.emoji),Le.linkText&&Ue.push(z.linkText),Le.code&&Ue.push(z.code),Le.image&&Ue.push(z.image),Le.imageAltText&&Ue.push(z.imageAltText,"link"),Le.imageMarker&&Ue.push(z.imageMarker)),Le.header&&Ue.push(z.header,z.header+"-"+Le.header),Le.quote&&(Ue.push(z.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Le.quote?Ue.push(z.quote+"-"+Le.quote):Ue.push(z.quote+"-"+y.maxBlockquoteDepth)),Le.list!==!1){var ot=(Le.listStack.length-1)%3;ot?ot===1?Ue.push(z.list2):Ue.push(z.list3):Ue.push(z.list1)}return Le.trailingSpaceNewLine?Ue.push("trailing-space-new-line"):Le.trailingSpace&&Ue.push("trailing-space-"+(Le.trailingSpace%2?"a":"b")),Ue.length?Ue.join(" "):null}function ge(Le,Ue){if(Le.match(re,!0))return de(Ue)}function Se(Le,Ue){var rt=Ue.text(Le,Ue);if(typeof rt!="undefined")return rt;if(Ue.list)return Ue.list=null,de(Ue);if(Ue.taskList){var ot=Le.match(se,!0)[1]===" ";return ot?Ue.taskOpen=!0:Ue.taskClosed=!0,y.highlightFormatting&&(Ue.formatting="task"),Ue.taskList=!1,de(Ue)}if(Ue.taskOpen=!1,Ue.taskClosed=!1,Ue.header&&Le.match(/^#+$/,!0))return y.highlightFormatting&&(Ue.formatting="header"),de(Ue);var it=Le.next();if(Ue.linkTitle){Ue.linkTitle=!1;var Ye=it;it==="("&&(Ye=")"),Ye=(Ye+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $e="^\\s*(?:[^"+Ye+"\\\\]+|\\\\\\\\|\\\\.)"+Ye;if(Le.match(new RegExp($e),!0))return z.linkHref}if(it==="`"){var Ke=Ue.formatting;y.highlightFormatting&&(Ue.formatting="code"),Le.eatWhile("`");var ft=Le.current().length;if(Ue.code==0&&(!Ue.quote||ft==1))return Ue.code=ft,de(Ue);if(ft==Ue.code){var tt=de(Ue);return Ue.code=0,tt}else return Ue.formatting=Ke,de(Ue)}else if(Ue.code)return de(Ue);if(it==="\\"&&(Le.next(),y.highlightFormatting)){var ut=de(Ue),lt=z.formatting+"-escape";return ut?ut+" "+lt:lt}if(it==="!"&&Le.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Ue.imageMarker=!0,Ue.image=!0,y.highlightFormatting&&(Ue.formatting="image"),de(Ue);if(it==="["&&Ue.imageMarker&&Le.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Ue.imageMarker=!1,Ue.imageAltText=!0,y.highlightFormatting&&(Ue.formatting="image"),de(Ue);if(it==="]"&&Ue.imageAltText){y.highlightFormatting&&(Ue.formatting="image");var ut=de(Ue);return Ue.imageAltText=!1,Ue.image=!1,Ue.inline=Ue.f=_e,ut}if(it==="["&&!Ue.image)return Ue.linkText&&Le.match(/^.*?\]/)||(Ue.linkText=!0,y.highlightFormatting&&(Ue.formatting="link")),de(Ue);if(it==="]"&&Ue.linkText){y.highlightFormatting&&(Ue.formatting="link");var ut=de(Ue);return Ue.linkText=!1,Ue.inline=Ue.f=Le.match(/\(.*?\)| ?\[.*?\]/,!1)?_e:Se,ut}if(it==="<"&&Le.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Ue.f=Ue.inline=De,y.highlightFormatting&&(Ue.formatting="link");var ut=de(Ue);return ut?ut+=" ":ut="",ut+z.linkInline}if(it==="<"&&Le.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Ue.f=Ue.inline=De,y.highlightFormatting&&(Ue.formatting="link");var ut=de(Ue);return ut?ut+=" ":ut="",ut+z.linkEmail}if(y.xml&&it==="<"&&Le.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ze=Le.string.indexOf(">",Le.pos);if(Ze!=-1){var Ne=Le.string.substring(Le.start,Ze);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ne)&&(Ue.md_inside=!0)}return Le.backUp(1),Ue.htmlState=Je.startState(we),fe(Le,Ue,Pe)}if(y.xml&&it==="<"&&Le.match(/^\/\w*?>/))return Ue.md_inside=!1,"tag";if(it==="*"||it==="_"){for(var ze=1,Me=Le.pos==1?" ":Le.string.charAt(Le.pos-2);ze<3&&Le.eat(it);)ze++;var Ge=Le.peek()||" ",ct=!/\s/.test(Ge)&&(!ce.test(Ge)||/\s/.test(Me)||ce.test(Me)),mt=!/\s/.test(Me)&&(!ce.test(Me)||/\s/.test(Ge)||ce.test(Ge)),nt=null,Ae=null;if(ze%2&&(!Ue.em&&ct&&(it==="*"||!mt||ce.test(Me))?nt=!0:Ue.em==it&&mt&&(it==="*"||!ct||ce.test(Ge))&&(nt=!1)),ze>1&&(!Ue.strong&&ct&&(it==="*"||!mt||ce.test(Me))?Ae=!0:Ue.strong==it&&mt&&(it==="*"||!ct||ce.test(Ge))&&(Ae=!1)),Ae!=null||nt!=null){y.highlightFormatting&&(Ue.formatting=nt==null?"strong":Ae==null?"em":"strong em"),nt===!0&&(Ue.em=it),Ae===!0&&(Ue.strong=it);var tt=de(Ue);return nt===!1&&(Ue.em=!1),Ae===!1&&(Ue.strong=!1),tt}}else if(it===" "&&(Le.eat("*")||Le.eat("_"))){if(Le.peek()===" ")return de(Ue);Le.backUp(1)}if(y.strikethrough){if(it==="~"&&Le.eatWhile(it)){if(Ue.strikethrough){y.highlightFormatting&&(Ue.formatting="strikethrough");var tt=de(Ue);return Ue.strikethrough=!1,tt}else if(Le.match(/^[^\s]/,!1))return Ue.strikethrough=!0,y.highlightFormatting&&(Ue.formatting="strikethrough"),de(Ue)}else if(it===" "&&Le.match(/^~~/,!0)){if(Le.peek()===" ")return de(Ue);Le.backUp(2)}}if(y.emoji&&it===":"&&Le.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Ue.emoji=!0,y.highlightFormatting&&(Ue.formatting="emoji");var je=de(Ue);return Ue.emoji=!1,je}return it===" "&&(Le.match(/^ +$/,!1)?Ue.trailingSpace++:Ue.trailingSpace&&(Ue.trailingSpaceNewLine=!0)),de(Ue)}function De(Le,Ue){var rt=Le.next();if(rt===">"){Ue.f=Ue.inline=Se,y.highlightFormatting&&(Ue.formatting="link");var ot=de(Ue);return ot?ot+=" ":ot="",ot+z.linkInline}return Le.match(/^[^>]+/,!0),z.linkInline}function _e(Le,Ue){if(Le.eatSpace())return null;var rt=Le.next();return rt==="("||rt==="["?(Ue.f=Ue.inline=Oe(rt==="("?")":"]"),y.highlightFormatting&&(Ue.formatting="link-string"),Ue.linkHref=!0,de(Ue)):"error"}var Ee={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Oe(Le){return function(Ue,rt){var ot=Ue.next();if(ot===Le){rt.f=rt.inline=Se,y.highlightFormatting&&(rt.formatting="link-string");var it=de(rt);return rt.linkHref=!1,it}return Ue.match(Ee[Le]),rt.linkHref=!0,de(rt)}}function He(Le,Ue){return Le.match(/^([^\]\\]|\\.)*\]:/,!1)?(Ue.f=Xe,Le.next(),y.highlightFormatting&&(Ue.formatting="link"),Ue.linkText=!0,de(Ue)):me(Le,Ue,Se)}function Xe(Le,Ue){if(Le.match(/^\]:/,!0)){Ue.f=Ue.inline=et,y.highlightFormatting&&(Ue.formatting="link");var rt=de(Ue);return Ue.linkText=!1,rt}return Le.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function et(Le,Ue){return Le.eatSpace()?null:(Le.match(/^[^\s]+/,!0),Le.peek()===void 0?Ue.linkTitle=!0:Le.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Ue.f=Ue.inline=Se,z.linkHref+" url")}var st={startState:function(){return{f:Te,prevLine:{stream:null},thisLine:{stream:null},block:Te,htmlState:null,indentation:0,inline:Se,text:ge,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Le){return{f:Le.f,prevLine:Le.prevLine,thisLine:Le.thisLine,block:Le.block,htmlState:Le.htmlState&&Je.copyState(we,Le.htmlState),indentation:Le.indentation,localMode:Le.localMode,localState:Le.localMode?Je.copyState(Le.localMode,Le.localState):null,inline:Le.inline,text:Le.text,formatting:!1,linkText:Le.linkText,linkTitle:Le.linkTitle,linkHref:Le.linkHref,code:Le.code,em:Le.em,strong:Le.strong,strikethrough:Le.strikethrough,emoji:Le.emoji,header:Le.header,setext:Le.setext,hr:Le.hr,taskList:Le.taskList,list:Le.list,listStack:Le.listStack.slice(0),quote:Le.quote,indentedCode:Le.indentedCode,trailingSpace:Le.trailingSpace,trailingSpaceNewLine:Le.trailingSpaceNewLine,md_inside:Le.md_inside,fencedEndRE:Le.fencedEndRE}},token:function(Le,Ue){if(Ue.formatting=!1,Le!=Ue.thisLine.stream){if(Ue.header=0,Ue.hr=!1,Le.match(/^\s*$/,!0))return Ce(Ue),null;if(Ue.prevLine=Ue.thisLine,Ue.thisLine={stream:Le},Ue.taskList=!1,Ue.trailingSpace=0,Ue.trailingSpaceNewLine=!1,!Ue.localState&&(Ue.f=Ue.block,Ue.f!=Pe)){var rt=Le.match(/^\s*/,!0)[0].replace(/\t/g,he).length;if(Ue.indentation=rt,Ue.indentationDiff=null,rt>0)return null}}return Ue.f(Le,Ue)},innerMode:function(Le){return Le.block==Pe?{state:Le.htmlState,mode:we}:Le.localState?{state:Le.localState,mode:Le.localMode}:{state:Le,mode:st}},indent:function(Le,Ue,rt){return Le.block==Pe&&we.indent?we.indent(Le.htmlState,Ue,rt):Le.localState&&Le.localMode.indent?Le.localMode.indent(Le.localState,Ue,rt):Je.Pass},blankLine:Ce,getType:de,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return st},"xml"),Je.defineMIME("text/markdown","markdown"),Je.defineMIME("text/x-markdown","markdown")})},98101:function(Kt,_t,Ve){(function(Je){Je(Ve(89780))})(function(Je){"use strict";Je.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 wt=0;wt<Je.modeInfo.length;wt++){var y=Je.modeInfo[wt];y.mimes&&(y.mime=y.mimes[0])}Je.findModeByMIME=function(we){we=we.toLowerCase();for(var ve=0;ve<Je.modeInfo.length;ve++){var x=Je.modeInfo[ve];if(x.mime==we)return x;if(x.mimes){for(var z=0;z<x.mimes.length;z++)if(x.mimes[z]==we)return x}}if(/\+xml$/.test(we))return Je.findModeByMIME("application/xml");if(/\+json$/.test(we))return Je.findModeByMIME("application/json")},Je.findModeByExtension=function(we){we=we.toLowerCase();for(var ve=0;ve<Je.modeInfo.length;ve++){var x=Je.modeInfo[ve];if(x.ext){for(var z=0;z<x.ext.length;z++)if(x.ext[z]==we)return x}}},Je.findModeByFileName=function(we){for(var ve=0;ve<Je.modeInfo.length;ve++){var x=Je.modeInfo[ve];if(x.file&&x.file.test(we))return x}var z=we.lastIndexOf("."),oe=z>-1&&we.substring(z+1,we.length);if(oe)return Je.findModeByExtension(oe)},Je.findModeByName=function(we){we=we.toLowerCase();for(var ve=0;ve<Je.modeInfo.length;ve++){var x=Je.modeInfo[ve];if(x.name.toLowerCase()==we)return x;if(x.alias){for(var z=0;z<x.alias.length;z++)if(x.alias[z].toLowerCase()==we)return x}}}})},67549:function(Kt,_t,Ve){(function(Je){Je(Ve(89780))})(function(Je){"use strict";Je.defineMode("stex",function(wt,y){"use strict";function we(re,le){re.cmdState.push(le)}function ve(re){return re.cmdState.length>0?re.cmdState[re.cmdState.length-1]:null}function x(re){var le=re.cmdState.pop();le&&le.closeBracket()}function z(re){for(var le=re.cmdState,ue=le.length-1;ue>=0;ue--){var ce=le[ue];if(ce.name!="DEFAULT")return ce}return{styleIdentifier:function(){return null}}}function oe(re,le,ue){return function(){this.name=re,this.bracketNo=0,this.style=le,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 ie={};ie.importmodule=oe("importmodule","tag",["string","builtin"]),ie.documentclass=oe("documentclass","tag",["","atom"]),ie.usepackage=oe("usepackage","tag",["atom"]),ie.begin=oe("begin","tag",["atom"]),ie.end=oe("end","tag",["atom"]),ie.label=oe("label","tag",["atom"]),ie.ref=oe("ref","tag",["atom"]),ie.eqref=oe("eqref","tag",["atom"]),ie.cite=oe("cite","tag",["atom"]),ie.bibitem=oe("bibitem","tag",["atom"]),ie.Bibitem=oe("Bibitem","tag",["atom"]),ie.RBibitem=oe("RBibitem","tag",["atom"]),ie.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(re,le){re.f=le}function se(re,le){var ue;if(re.match(/^\\[a-zA-Z@]+/)){var ce=re.current().slice(1);return ue=ie.hasOwnProperty(ce)?ie[ce]:ie.DEFAULT,ue=new ue,we(le,ue),ee(le,te),ue.style}if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/\\]/))return"tag";if(re.match("\\["))return ee(le,function(me,fe){return E(me,fe,"\\]")}),"keyword";if(re.match("\\("))return ee(le,function(me,fe){return E(me,fe,"\\)")}),"keyword";if(re.match("$$"))return ee(le,function(me,fe){return E(me,fe,"$$")}),"keyword";if(re.match("$"))return ee(le,function(me,fe){return E(me,fe,"$")}),"keyword";var he=re.next();if(he=="%")return re.skipToEnd(),"comment";if(he=="}"||he=="]"){if(ue=ve(le),ue)ue.closeBracket(he),ee(le,te);else return"error";return"bracket"}else return he=="{"||he=="["?(ue=ie.DEFAULT,ue=new ue,we(le,ue),"bracket"):/\d/.test(he)?(re.eatWhile(/[\w.%]/),"atom"):(re.eatWhile(/[\w\-_]/),ue=z(le),ue.name=="begin"&&(ue.argument=re.current()),ue.styleIdentifier())}function E(re,le,ue){if(re.eatSpace())return null;if(ue&&re.match(ue))return ee(le,se),"keyword";if(re.match(/^\\[a-zA-Z@]+/))return"tag";if(re.match(/^[a-zA-Z]+/))return"variable-2";if(re.match(/^\\[$&%#{}_]/)||re.match(/^\\[,;!\/]/)||re.match(/^[\^_&]/))return"tag";if(re.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(re.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ce=re.next();return ce=="{"||ce=="}"||ce=="["||ce=="]"||ce=="("||ce==")"?"bracket":ce=="%"?(re.skipToEnd(),"comment"):"error"}function te(re,le){var ue=re.peek(),ce;return ue=="{"||ue=="["?(ce=ve(le),ce.openBracket(ue),re.eat(ue),ee(le,se),"bracket"):/[ \t\r]/.test(ue)?(re.eat(ue),null):(ee(le,se),x(le),se(re,le))}return{startState:function(){var re=y.inMathMode?function(le,ue){return E(le,ue)}:se;return{cmdState:[],f:re}},copyState:function(re){return{cmdState:re.cmdState.slice(),f:re.f}},token:function(re,le){return le.f(re,le)},blankLine:function(re){re.f=se,re.cmdState.length=0},lineComment:"%"}}),Je.defineMIME("text/x-stex","stex"),Je.defineMIME("text/x-latex","stex")})},15525:function(Kt,_t,Ve){(function(Je){Je(Ve(89780))})(function(Je){"use strict";var wt={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};Je.defineMode("xml",function(we,ve){var x=we.indentUnit,z={},oe=ve.htmlMode?wt:y;for(var ie in oe)z[ie]=oe[ie];for(var ie in ve)z[ie]=ve[ie];var ee,se;function E(De,_e){function Ee(Xe){return _e.tokenize=Xe,Xe(De,_e)}var Oe=De.next();if(Oe=="<")return De.eat("!")?De.eat("[")?De.match("CDATA[")?Ee(le("atom","]]>")):null:De.match("--")?Ee(le("comment","-->")):De.match("DOCTYPE",!0,!0)?(De.eatWhile(/[\w\._\-]/),Ee(ue(1))):null:De.eat("?")?(De.eatWhile(/[\w\._\-]/),_e.tokenize=le("meta","?>"),"meta"):(ee=De.eat("/")?"closeTag":"openTag",_e.tokenize=te,"tag bracket");if(Oe=="&"){var He;return De.eat("#")?De.eat("x")?He=De.eatWhile(/[a-fA-F\d]/)&&De.eat(";"):He=De.eatWhile(/[\d]/)&&De.eat(";"):He=De.eatWhile(/[\w\.\-:]/)&&De.eat(";"),He?"atom":"error"}else return De.eatWhile(/[^&<]/),null}E.isInText=!0;function te(De,_e){var Ee=De.next();if(Ee==">"||Ee=="/"&&De.eat(">"))return _e.tokenize=E,ee=Ee==">"?"endTag":"selfcloseTag","tag bracket";if(Ee=="=")return ee="equals",null;if(Ee=="<"){_e.tokenize=E,_e.state=fe,_e.tagName=_e.tagStart=null;var Oe=_e.tokenize(De,_e);return Oe?Oe+" tag error":"tag error"}else return/[\'\"]/.test(Ee)?(_e.tokenize=re(Ee),_e.stringStartCol=De.column(),_e.tokenize(De,_e)):(De.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function re(De){var _e=function(Ee,Oe){for(;!Ee.eol();)if(Ee.next()==De){Oe.tokenize=te;break}return"string"};return _e.isInAttribute=!0,_e}function le(De,_e){return function(Ee,Oe){for(;!Ee.eol();){if(Ee.match(_e)){Oe.tokenize=E;break}Ee.next()}return De}}function ue(De){return function(_e,Ee){for(var Oe;(Oe=_e.next())!=null;){if(Oe=="<")return Ee.tokenize=ue(De+1),Ee.tokenize(_e,Ee);if(Oe==">")if(De==1){Ee.tokenize=E;break}else return Ee.tokenize=ue(De-1),Ee.tokenize(_e,Ee)}return"meta"}}function ce(De,_e,Ee){this.prev=De.context,this.tagName=_e,this.indent=De.indented,this.startOfLine=Ee,(z.doNotIndent.hasOwnProperty(_e)||De.context&&De.context.noIndent)&&(this.noIndent=!0)}function he(De){De.context&&(De.context=De.context.prev)}function me(De,_e){for(var Ee;;){if(!De.context||(Ee=De.context.tagName,!z.contextGrabbers.hasOwnProperty(Ee)||!z.contextGrabbers[Ee].hasOwnProperty(_e)))return;he(De)}}function fe(De,_e,Ee){return De=="openTag"?(Ee.tagStart=_e.column(),be):De=="closeTag"?Ce:fe}function be(De,_e,Ee){return De=="word"?(Ee.tagName=_e.current(),se="tag",ke):z.allowMissingTagName&&De=="endTag"?(se="tag bracket",ke(De,_e,Ee)):(se="error",be)}function Ce(De,_e,Ee){if(De=="word"){var Oe=_e.current();return Ee.context&&Ee.context.tagName!=Oe&&z.implicitlyClosed.hasOwnProperty(Ee.context.tagName)&&he(Ee),Ee.context&&Ee.context.tagName==Oe||z.matchClosing===!1?(se="tag",Te):(se="tag error",Pe)}else return z.allowMissingTagName&&De=="endTag"?(se="tag bracket",Te(De,_e,Ee)):(se="error",Pe)}function Te(De,_e,Ee){return De!="endTag"?(se="error",Te):(he(Ee),fe)}function Pe(De,_e,Ee){return se="error",Te(De,_e,Ee)}function ke(De,_e,Ee){if(De=="word")return se="attribute",de;if(De=="endTag"||De=="selfcloseTag"){var Oe=Ee.tagName,He=Ee.tagStart;return Ee.tagName=Ee.tagStart=null,De=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(Oe)?me(Ee,Oe):(me(Ee,Oe),Ee.context=new ce(Ee,Oe,He==Ee.indented)),fe}return se="error",ke}function de(De,_e,Ee){return De=="equals"?ge:(z.allowMissing||(se="error"),ke(De,_e,Ee))}function ge(De,_e,Ee){return De=="string"?Se:De=="word"&&z.allowUnquoted?(se="string",ke):(se="error",ke(De,_e,Ee))}function Se(De,_e,Ee){return De=="string"?Se:ke(De,_e,Ee)}return{startState:function(De){var _e={tokenize:E,state:fe,indented:De||0,tagName:null,tagStart:null,context:null};return De!=null&&(_e.baseIndent=De),_e},token:function(De,_e){if(!_e.tagName&&De.sol()&&(_e.indented=De.indentation()),De.eatSpace())return null;ee=null;var Ee=_e.tokenize(De,_e);return(Ee||ee)&&Ee!="comment"&&(se=null,_e.state=_e.state(ee||Ee,De,_e),se&&(Ee=se=="error"?Ee+" error":se)),Ee},indent:function(De,_e,Ee){var Oe=De.context;if(De.tokenize.isInAttribute)return De.tagStart==De.indented?De.stringStartCol+1:De.indented+x;if(Oe&&Oe.noIndent)return Je.Pass;if(De.tokenize!=te&&De.tokenize!=E)return Ee?Ee.match(/^(\s*)/)[0].length:0;if(De.tagName)return z.multilineTagIndentPastTag!==!1?De.tagStart+De.tagName.length+2:De.tagStart+x*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(_e))return 0;var He=_e&&/^<(\/)?([\w_:\.-]*)/.exec(_e);if(He&&He[1])for(;Oe;)if(Oe.tagName==He[2]){Oe=Oe.prev;break}else if(z.implicitlyClosed.hasOwnProperty(Oe.tagName))Oe=Oe.prev;else break;else if(He)for(;Oe;){var Xe=z.contextGrabbers[Oe.tagName];if(Xe&&Xe.hasOwnProperty(He[2]))Oe=Oe.prev;else break}for(;Oe&&Oe.prev&&!Oe.startOfLine;)Oe=Oe.prev;return Oe?Oe.indent+x:De.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(De){De.state==ge&&(De.state=ke)},xmlCurrentTag:function(De){return De.tagName?{name:De.tagName,close:De.type=="closeTag"}:null},xmlCurrentContext:function(De){for(var _e=[],Ee=De.context;Ee;Ee=Ee.prev)Ee.tagName&&_e.push(Ee.tagName);return _e.reverse()}}}),Je.defineMIME("text/xml","xml"),Je.defineMIME("application/xml","xml"),Je.mimeModes.hasOwnProperty("text/html")||Je.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(Kt,_t,Ve){var Je,wt;(function(y,we){Kt.exports=we(y)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof Ve.g!="undefined"?Ve.g:this,function(y){"use strict";y=y||{};var we=y.Base64,ve="2.6.4",x="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=function(Ee){for(var Oe={},He=0,Xe=Ee.length;He<Xe;He++)Oe[Ee.charAt(He)]=He;return Oe}(x),oe=String.fromCharCode,ie=function(Ee){if(Ee.length<2){var Oe=Ee.charCodeAt(0);return Oe<128?Ee:Oe<2048?oe(192|Oe>>>6)+oe(128|Oe&63):oe(224|Oe>>>12&15)+oe(128|Oe>>>6&63)+oe(128|Oe&63)}else{var Oe=65536+(Ee.charCodeAt(0)-55296)*1024+(Ee.charCodeAt(1)-56320);return oe(240|Oe>>>18&7)+oe(128|Oe>>>12&63)+oe(128|Oe>>>6&63)+oe(128|Oe&63)}},ee=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Ee){return Ee.replace(ee,ie)},E=function(Ee){var Oe=[0,2,1][Ee.length%3],He=Ee.charCodeAt(0)<<16|(Ee.length>1?Ee.charCodeAt(1):0)<<8|(Ee.length>2?Ee.charCodeAt(2):0),Xe=[x.charAt(He>>>18),x.charAt(He>>>12&63),Oe>=2?"=":x.charAt(He>>>6&63),Oe>=1?"=":x.charAt(He&63)];return Xe.join("")},te=y.btoa&&typeof y.btoa=="function"?function(Ee){return y.btoa(Ee)}:function(Ee){if(Ee.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ee.replace(/[\s\S]{1,3}/g,E)},re=function(Ee){return te(se(String(Ee)))},le=function(Ee){return Ee.replace(/[+\/]/g,function(Oe){return Oe=="+"?"-":"_"}).replace(/=/g,"")},ue=function(Ee,Oe){return Oe?le(re(Ee)):re(Ee)},ce=function(Ee){return ue(Ee,!0)},he;y.Uint8Array&&(he=function(Ee,Oe){for(var He="",Xe=0,et=Ee.length;Xe<et;Xe+=3){var st=Ee[Xe],Le=Ee[Xe+1],Ue=Ee[Xe+2],rt=st<<16|Le<<8|Ue;He+=x.charAt(rt>>>18)+x.charAt(rt>>>12&63)+(typeof Le!="undefined"?x.charAt(rt>>>6&63):"=")+(typeof Ue!="undefined"?x.charAt(rt&63):"=")}return Oe?le(He):He});var me=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,fe=function(Ee){switch(Ee.length){case 4:var Oe=(7&Ee.charCodeAt(0))<<18|(63&Ee.charCodeAt(1))<<12|(63&Ee.charCodeAt(2))<<6|63&Ee.charCodeAt(3),He=Oe-65536;return oe((He>>>10)+55296)+oe((He&1023)+56320);case 3:return oe((15&Ee.charCodeAt(0))<<12|(63&Ee.charCodeAt(1))<<6|63&Ee.charCodeAt(2));default:return oe((31&Ee.charCodeAt(0))<<6|63&Ee.charCodeAt(1))}},be=function(Ee){return Ee.replace(me,fe)},Ce=function(Ee){var Oe=Ee.length,He=Oe%4,Xe=(Oe>0?z[Ee.charAt(0)]<<18:0)|(Oe>1?z[Ee.charAt(1)]<<12:0)|(Oe>2?z[Ee.charAt(2)]<<6:0)|(Oe>3?z[Ee.charAt(3)]:0),et=[oe(Xe>>>16),oe(Xe>>>8&255),oe(Xe&255)];return et.length-=[0,0,2,1][He],et.join("")},Te=y.atob&&typeof y.atob=="function"?function(Ee){return y.atob(Ee)}:function(Ee){return Ee.replace(/\S{1,4}/g,Ce)},Pe=function(Ee){return Te(String(Ee).replace(/[^A-Za-z0-9\+\/]/g,""))},ke=function(Ee){return be(Te(Ee))},de=function(Ee){return String(Ee).replace(/[-_]/g,function(Oe){return Oe=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ge=function(Ee){return ke(de(Ee))},Se;y.Uint8Array&&(Se=function(Ee){return Uint8Array.from(Pe(de(Ee)),function(Oe){return Oe.charCodeAt(0)})});var De=function(){var Ee=y.Base64;return y.Base64=we,Ee};if(y.Base64={VERSION:ve,atob:Pe,btoa:te,fromBase64:ge,toBase64:ue,utob:se,encode:ue,encodeURI:ce,btou:be,decode:ge,noConflict:De,fromUint8Array:he,toUint8Array:Se},typeof Object.defineProperty=="function"){var _e=function(Ee){return{value:Ee,enumerable:!1,writable:!0,configurable:!0}};y.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",_e(function(){return ge(this)})),Object.defineProperty(String.prototype,"toBase64",_e(function(Ee){return ue(this,Ee)})),Object.defineProperty(String.prototype,"toBase64URI",_e(function(){return ue(this,!0)}))}}return y.Meteor&&(Base64=y.Base64),Kt.exports?Kt.exports.Base64=y.Base64:(Je=[],wt=function(){return y.Base64}.apply(_t,Je),wt!==void 0&&(Kt.exports=wt)),{Base64:y.Base64}})},66042:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return _e}});var Je=Ve(33885),wt=Ve(42978),y=Ve(43403),we=Ve(34280),ve=Ve(59301),x=ve.createContext(null),z=ve.createContext({}),oe=x,ie=Ve(20068),ee=Ve(54476),se=Ve(92310),E=Ve.n(se),te=Ve(77900),re=Ve(10228),le=Ve(26112),ue=Ve(75931),ce=Ve(8654),he=["prefixCls","className","containerRef"],me=function(Oe){var He=Oe.prefixCls,Xe=Oe.className,et=Oe.containerRef,st=(0,ue.Z)(Oe,he),Le=ve.useContext(z),Ue=Le.panel,rt=(0,ce.x1)(Ue,et);return ve.createElement("div",(0,ee.Z)({className:E()("".concat(He,"-content"),Xe),role:"dialog",ref:rt},(0,le.Z)(Oe,{aria:!0}),{"aria-modal":"true"},st))},fe=me,be=Ve(48736);function Ce(Ee){return typeof Ee=="string"&&String(Number(Ee))===Ee?((0,be.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ee)):Ee}function Te(Ee){warning(!("wrapperClassName"in Ee),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ee.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Pe={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ke(Ee,Oe){var He,Xe,et,st=Ee.prefixCls,Le=Ee.open,Ue=Ee.placement,rt=Ee.inline,ot=Ee.push,it=Ee.forceRender,Ye=Ee.autoFocus,$e=Ee.keyboard,Ke=Ee.classNames,ft=Ee.rootClassName,tt=Ee.rootStyle,ut=Ee.zIndex,lt=Ee.className,Ze=Ee.id,Ne=Ee.style,ze=Ee.motion,Me=Ee.width,Ge=Ee.height,ct=Ee.children,mt=Ee.mask,nt=Ee.maskClosable,Ae=Ee.maskMotion,je=Ee.maskClassName,We=Ee.maskStyle,at=Ee.afterOpenChange,Re=Ee.onClose,xe=Ee.onMouseEnter,ye=Ee.onMouseOver,Fe=Ee.onMouseLeave,Qe=Ee.onClick,Ie=Ee.onKeyDown,vt=Ee.onKeyUp,yt=Ee.styles,xt=Ee.drawerRender,bt=ve.useRef(),ht=ve.useRef(),kt=ve.useRef();ve.useImperativeHandle(Oe,function(){return bt.current});var Tt=function(Ar){var fn=Ar.keyCode,or=Ar.shiftKey;switch(fn){case re.Z.TAB:{if(fn===re.Z.TAB){if(!or&&document.activeElement===kt.current){var Zt;(Zt=ht.current)===null||Zt===void 0||Zt.focus({preventScroll:!0})}else if(or&&document.activeElement===ht.current){var ir;(ir=kt.current)===null||ir===void 0||ir.focus({preventScroll:!0})}}break}case re.Z.ESC:{Re&&$e&&(Ar.stopPropagation(),Re(Ar));break}}};ve.useEffect(function(){if(Le&&Ye){var Dr;(Dr=bt.current)===null||Dr===void 0||Dr.focus({preventScroll:!0})}},[Le]);var Pt=ve.useState(!1),Vt=(0,wt.Z)(Pt,2),vr=Vt[0],Yt=Vt[1],Cr=ve.useContext(oe),jr;typeof ot=="boolean"?jr=ot?{}:{distance:0}:jr=ot||{};var Pr=(He=(Xe=(et=jr)===null||et===void 0?void 0:et.distance)!==null&&Xe!==void 0?Xe:Cr==null?void 0:Cr.pushDistance)!==null&&He!==void 0?He:180,Mr=ve.useMemo(function(){return{pushDistance:Pr,push:function(){Yt(!0)},pull:function(){Yt(!1)}}},[Pr]);ve.useEffect(function(){if(Le){var Dr;Cr==null||(Dr=Cr.push)===null||Dr===void 0||Dr.call(Cr)}else{var Ar;Cr==null||(Ar=Cr.pull)===null||Ar===void 0||Ar.call(Cr)}},[Le]),ve.useEffect(function(){return function(){var Dr;Cr==null||(Dr=Cr.pull)===null||Dr===void 0||Dr.call(Cr)}},[]);var Xr=mt&&ve.createElement(te.default,(0,ee.Z)({key:"mask"},Ae,{visible:Le}),function(Dr,Ar){var fn=Dr.className,or=Dr.style;return ve.createElement("div",{className:E()("".concat(st,"-mask"),fn,Ke==null?void 0:Ke.mask,je),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},or),We),yt==null?void 0:yt.mask),onClick:nt&&Le?Re:void 0,ref:Ar})}),mn=typeof ze=="function"?ze(Ue):ze,cn={};if(vr&&Pr)switch(Ue){case"top":cn.transform="translateY(".concat(Pr,"px)");break;case"bottom":cn.transform="translateY(".concat(-Pr,"px)");break;case"left":cn.transform="translateX(".concat(Pr,"px)");break;default:cn.transform="translateX(".concat(-Pr,"px)");break}Ue==="left"||Ue==="right"?cn.width=Ce(Me):cn.height=Ce(Ge);var Yr={onMouseEnter:xe,onMouseOver:ye,onMouseLeave:Fe,onClick:Qe,onKeyDown:Ie,onKeyUp:vt},kn=ve.createElement(te.default,(0,ee.Z)({key:"panel"},mn,{visible:Le,forceRender:it,onVisibleChanged:function(Ar){at==null||at(Ar)},removeOnLeave:!1,leavedClassName:"".concat(st,"-content-wrapper-hidden")}),function(Dr,Ar){var fn=Dr.className,or=Dr.style,Zt=ve.createElement(fe,(0,ee.Z)({id:Ze,containerRef:Ar,prefixCls:st,className:E()(lt,Ke==null?void 0:Ke.content),style:(0,Je.Z)((0,Je.Z)({},Ne),yt==null?void 0:yt.content)},(0,le.Z)(Ee,{aria:!0}),Yr),ct);return ve.createElement("div",(0,ee.Z)({className:E()("".concat(st,"-content-wrapper"),Ke==null?void 0:Ke.wrapper,fn),style:(0,Je.Z)((0,Je.Z)((0,Je.Z)({},cn),or),yt==null?void 0:yt.wrapper)},(0,le.Z)(Ee,{data:!0})),xt?xt(Zt):Zt)}),En=(0,Je.Z)({},tt);return ut&&(En.zIndex=ut),ve.createElement(oe.Provider,{value:Mr},ve.createElement("div",{className:E()(st,"".concat(st,"-").concat(Ue),ft,(0,ie.Z)((0,ie.Z)({},"".concat(st,"-open"),Le),"".concat(st,"-inline"),rt)),style:En,tabIndex:-1,ref:bt,onKeyDown:Tt},Xr,ve.createElement("div",{tabIndex:0,ref:ht,style:Pe,"aria-hidden":"true","data-sentinel":"start"}),kn,ve.createElement("div",{tabIndex:0,ref:kt,style:Pe,"aria-hidden":"true","data-sentinel":"end"})))}var de=ve.forwardRef(ke),ge=de,Se=function(Oe){var He=Oe.open,Xe=He===void 0?!1:He,et=Oe.prefixCls,st=et===void 0?"rc-drawer":et,Le=Oe.placement,Ue=Le===void 0?"right":Le,rt=Oe.autoFocus,ot=rt===void 0?!0:rt,it=Oe.keyboard,Ye=it===void 0?!0:it,$e=Oe.width,Ke=$e===void 0?378:$e,ft=Oe.mask,tt=ft===void 0?!0:ft,ut=Oe.maskClosable,lt=ut===void 0?!0:ut,Ze=Oe.getContainer,Ne=Oe.forceRender,ze=Oe.afterOpenChange,Me=Oe.destroyOnClose,Ge=Oe.onMouseEnter,ct=Oe.onMouseOver,mt=Oe.onMouseLeave,nt=Oe.onClick,Ae=Oe.onKeyDown,je=Oe.onKeyUp,We=Oe.panelRef,at=ve.useState(!1),Re=(0,wt.Z)(at,2),xe=Re[0],ye=Re[1],Fe=ve.useState(!1),Qe=(0,wt.Z)(Fe,2),Ie=Qe[0],vt=Qe[1];(0,we.Z)(function(){vt(!0)},[]);var yt=Ie?Xe:!1,xt=ve.useRef(),bt=ve.useRef();(0,we.Z)(function(){yt&&(bt.current=document.activeElement)},[yt]);var ht=function(vr){var Yt;if(ye(vr),ze==null||ze(vr),!vr&&bt.current&&!((Yt=xt.current)!==null&&Yt!==void 0&&Yt.contains(bt.current))){var Cr;(Cr=bt.current)===null||Cr===void 0||Cr.focus({preventScroll:!0})}},kt=ve.useMemo(function(){return{panel:We}},[We]);if(!Ne&&!xe&&!yt&&Me)return null;var Tt={onMouseEnter:Ge,onMouseOver:ct,onMouseLeave:mt,onClick:nt,onKeyDown:Ae,onKeyUp:je},Pt=(0,Je.Z)((0,Je.Z)({},Oe),{},{open:yt,prefixCls:st,placement:Ue,autoFocus:ot,keyboard:Ye,width:Ke,mask:tt,maskClosable:lt,inline:Ze===!1,afterOpenChange:ht,ref:xt},Tt);return ve.createElement(z.Provider,{value:kt},ve.createElement(y.Z,{open:yt||Ne||xe,autoDestroy:!1,getContainer:Ze,autoLock:tt&&(yt||xe)},ve.createElement(ge,Pt)))},De=Se,_e=De},20922:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return tt}});var Je=Ve(54476),wt=Ve(20068),y=Ve(76190),we=Ve(42978),ve=Ve(75931),x=Ve(67732),z=Ve(83652);function oe(){return typeof BigInt=="function"}function ie(ut){return!ut&&ut!==0&&!Number.isNaN(ut)||!String(ut).trim()}function ee(ut){var lt=ut.trim(),Ze=lt.startsWith("-");Ze&&(lt=lt.slice(1)),lt=lt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),lt.startsWith(".")&&(lt="0".concat(lt));var Ne=lt||"0",ze=Ne.split("."),Me=ze[0]||"0",Ge=ze[1]||"0";Me==="0"&&Ge==="0"&&(Ze=!1);var ct=Ze?"-":"";return{negative:Ze,negativeStr:ct,trimStr:Ne,integerStr:Me,decimalStr:Ge,fullStr:"".concat(ct).concat(Ne)}}function se(ut){var lt=String(ut);return!Number.isNaN(Number(lt))&&lt.includes("e")}function E(ut){var lt=String(ut);if(se(ut)){var Ze=Number(lt.slice(lt.indexOf("e-")+2)),Ne=lt.match(/\.(\d+)/);return Ne!=null&&Ne[1]&&(Ze+=Ne[1].length),Ze}return lt.includes(".")&&re(lt)?lt.length-lt.indexOf(".")-1:0}function te(ut){var lt=String(ut);if(se(ut)){if(ut>Number.MAX_SAFE_INTEGER)return String(oe()?BigInt(ut).toString():Number.MAX_SAFE_INTEGER);if(ut<Number.MIN_SAFE_INTEGER)return String(oe()?BigInt(ut).toString():Number.MIN_SAFE_INTEGER);lt=ut.toFixed(E(lt))}return ee(lt).fullStr}function re(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 le=function(){function ut(lt){if((0,x.Z)(this,ut),(0,wt.Z)(this,"origin",""),(0,wt.Z)(this,"negative",void 0),(0,wt.Z)(this,"integer",void 0),(0,wt.Z)(this,"decimal",void 0),(0,wt.Z)(this,"decimalLen",void 0),(0,wt.Z)(this,"empty",void 0),(0,wt.Z)(this,"nan",void 0),ie(lt)){this.empty=!0;return}if(this.origin=String(lt),lt==="-"||Number.isNaN(lt)){this.nan=!0;return}var Ze=lt;if(se(Ze)&&(Ze=Number(Ze)),Ze=typeof Ze=="string"?Ze:te(Ze),re(Ze)){var Ne=ee(Ze);this.negative=Ne.negative;var ze=Ne.trimStr.split(".");this.integer=BigInt(ze[0]);var Me=ze[1]||"0";this.decimal=BigInt(Me),this.decimalLen=Me.length}else this.nan=!0}return(0,z.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 Ne="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Ze,"0"));return BigInt(Ne)}},{key:"negate",value:function(){var Ze=new ut(this.toString());return Ze.negative=!Ze.negative,Ze}},{key:"cal",value:function(Ze,Ne,ze){var Me=Math.max(this.getDecimalStr().length,Ze.getDecimalStr().length),Ge=this.alignDecimal(Me),ct=Ze.alignDecimal(Me),mt=Ne(Ge,ct).toString(),nt=ze(Me),Ae=ee(mt),je=Ae.negativeStr,We=Ae.trimStr,at="".concat(je).concat(We.padStart(nt+1,"0"));return new ut("".concat(at.slice(0,-nt),".").concat(at.slice(-nt)))}},{key:"add",value:function(Ze){if(this.isInvalidate())return new ut(Ze);var Ne=new ut(Ze);return Ne.isInvalidate()?this:this.cal(Ne,function(ze,Me){return ze+Me},function(ze){return ze})}},{key:"multi",value:function(Ze){var Ne=new ut(Ze);return this.isInvalidate()||Ne.isInvalidate()?new ut(NaN):this.cal(Ne,function(ze,Me){return ze*Me},function(ze){return ze*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()?"":ee("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ut}(),ue=function(){function ut(lt){if((0,x.Z)(this,ut),(0,wt.Z)(this,"origin",""),(0,wt.Z)(this,"number",void 0),(0,wt.Z)(this,"empty",void 0),ie(lt)){this.empty=!0;return}this.origin=String(lt),this.number=Number(lt)}return(0,z.Z)(ut,[{key:"negate",value:function(){return new ut(-this.toNumber())}},{key:"add",value:function(Ze){if(this.isInvalidate())return new ut(Ze);var Ne=Number(Ze);if(Number.isNaN(Ne))return this;var ze=this.number+Ne;if(ze>Number.MAX_SAFE_INTEGER)return new ut(Number.MAX_SAFE_INTEGER);if(ze<Number.MIN_SAFE_INTEGER)return new ut(Number.MIN_SAFE_INTEGER);var Me=Math.max(E(this.number),E(Ne));return new ut(ze.toFixed(Me))}},{key:"multi",value:function(Ze){var Ne=Number(Ze);if(this.isInvalidate()||Number.isNaN(Ne))return new ut(NaN);var ze=this.number*Ne;if(ze>Number.MAX_SAFE_INTEGER)return new ut(Number.MAX_SAFE_INTEGER);if(ze<Number.MIN_SAFE_INTEGER)return new ut(Number.MIN_SAFE_INTEGER);var Me=Math.max(E(this.number),E(Ne));return new ut(ze.toFixed(Me))}},{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()?"":te(this.number):this.origin}}]),ut}();function ce(ut){return oe()?new le(ut):new ue(ut)}function he(ut,lt,Ze){var Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ut==="")return"";var ze=ee(ut),Me=ze.negativeStr,Ge=ze.integerStr,ct=ze.decimalStr,mt="".concat(lt).concat(ct),nt="".concat(Me).concat(Ge);if(Ze>=0){var Ae=Number(ct[Ze]);if(Ae>=5&&!Ne){var je=ce(ut).add("".concat(Me,"0.").concat("0".repeat(Ze)).concat(10-Ae));return he(je.toString(),lt,Ze,Ne)}return Ze===0?nt:"".concat(nt).concat(lt).concat(ct.padEnd(Ze,"0").slice(0,Ze))}return mt===".0"?nt:"".concat(nt).concat(mt)}var me=ce,fe=Ve(92310),be=Ve.n(fe),Ce=Ve(36901),Te=Ve(34280);function Pe(ut,lt){return typeof Proxy!="undefined"&&ut?new Proxy(ut,{get:function(Ne,ze){if(lt[ze])return lt[ze];var Me=Ne[ze];return typeof Me=="function"?Me.bind(Ne):Me}}):ut}var ke=Ve(8654),de=Ve(59301),ge=Ve(48736);function Se(ut,lt){var Ze=(0,de.useRef)(null);function Ne(){try{var Me=ut.selectionStart,Ge=ut.selectionEnd,ct=ut.value,mt=ct.substring(0,Me),nt=ct.substring(Ge);Ze.current={start:Me,end:Ge,value:ct,beforeTxt:mt,afterTxt:nt}}catch(Ae){}}function ze(){if(ut&&Ze.current&&lt)try{var Me=ut.value,Ge=Ze.current,ct=Ge.beforeTxt,mt=Ge.afterTxt,nt=Ge.start,Ae=Me.length;if(Me.startsWith(ct))Ae=ct.length;else if(Me.endsWith(mt))Ae=Me.length-Ze.current.afterTxt.length;else{var je=ct[nt-1],We=Me.indexOf(je,nt-1);We!==-1&&(Ae=We+1)}ut.setSelectionRange(Ae,Ae)}catch(at){(0,ge.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(at.message))}}return[Ne,ze]}var De=Ve(49658),_e=function(){var lt=(0,de.useState)(!1),Ze=(0,we.Z)(lt,2),Ne=Ze[0],ze=Ze[1];return(0,Te.Z)(function(){ze((0,De.Z)())},[]),Ne},Ee=_e,Oe=Ve(16089),He=200,Xe=600;function et(ut){var lt=ut.prefixCls,Ze=ut.upNode,Ne=ut.downNode,ze=ut.upDisabled,Me=ut.downDisabled,Ge=ut.onStep,ct=de.useRef(),mt=de.useRef([]),nt=de.useRef();nt.current=Ge;var Ae=function(){clearTimeout(ct.current)},je=function(Ie,vt){Ie.preventDefault(),Ae(),nt.current(vt);function yt(){nt.current(vt),ct.current=setTimeout(yt,He)}ct.current=setTimeout(yt,Xe)};de.useEffect(function(){return function(){Ae(),mt.current.forEach(function(Qe){return Oe.Z.cancel(Qe)})}},[]);var We=Ee();if(We)return null;var at="".concat(lt,"-handler"),Re=be()(at,"".concat(at,"-up"),(0,wt.Z)({},"".concat(at,"-up-disabled"),ze)),xe=be()(at,"".concat(at,"-down"),(0,wt.Z)({},"".concat(at,"-down-disabled"),Me)),ye=function(){return mt.current.push((0,Oe.Z)(Ae))},Fe={unselectable:"on",role:"button",onMouseUp:ye,onMouseLeave:ye};return de.createElement("div",{className:"".concat(at,"-wrap")},de.createElement("span",(0,Je.Z)({},Fe,{onMouseDown:function(Ie){je(Ie,!0)},"aria-label":"Increase Value","aria-disabled":ze,className:Re}),Ze||de.createElement("span",{unselectable:"on",className:"".concat(lt,"-handler-up-inner")})),de.createElement("span",(0,Je.Z)({},Fe,{onMouseDown:function(Ie){je(Ie,!1)},"aria-label":"Decrease Value","aria-disabled":Me,className:xe}),Ne||de.createElement("span",{unselectable:"on",className:"".concat(lt,"-handler-down-inner")})))}function st(ut){var lt=typeof ut=="number"?te(ut):ee(ut).fullStr,Ze=lt.includes(".");return Ze?ee(lt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ut+"0"}var Le=Ve(30292),Ue=function(){var ut=(0,de.useRef)(0),lt=function(){Oe.Z.cancel(ut.current)};return(0,de.useEffect)(function(){return lt},[]),function(Ze){lt(),ut.current=(0,Oe.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"],it=function(lt,Ze){return lt||Ze.isEmpty()?Ze.toString():Ze.toNumber()},Ye=function(lt){var Ze=me(lt);return Ze.isInvalidate()?null:Ze},$e=de.forwardRef(function(ut,lt){var Ze=ut.prefixCls,Ne=ut.className,ze=ut.style,Me=ut.min,Ge=ut.max,ct=ut.step,mt=ct===void 0?1:ct,nt=ut.defaultValue,Ae=ut.value,je=ut.disabled,We=ut.readOnly,at=ut.upHandler,Re=ut.downHandler,xe=ut.keyboard,ye=ut.changeOnWheel,Fe=ye===void 0?!1:ye,Qe=ut.controls,Ie=Qe===void 0?!0:Qe,vt=ut.classNames,yt=ut.stringMode,xt=ut.parser,bt=ut.formatter,ht=ut.precision,kt=ut.decimalSeparator,Tt=ut.onChange,Pt=ut.onInput,Vt=ut.onPressEnter,vr=ut.onStep,Yt=ut.changeOnBlur,Cr=Yt===void 0?!0:Yt,jr=ut.domRef,Pr=(0,ve.Z)(ut,rt),Mr="".concat(Ze,"-input"),Xr=de.useRef(null),mn=de.useState(!1),cn=(0,we.Z)(mn,2),Yr=cn[0],kn=cn[1],En=de.useRef(!1),Dr=de.useRef(!1),Ar=de.useRef(!1),fn=de.useState(function(){return me(Ae!=null?Ae:nt)}),or=(0,we.Z)(fn,2),Zt=or[0],ir=or[1];function Nr(zr){Ae===void 0&&ir(zr)}var gr=de.useCallback(function(zr,Er){if(!Er)return ht>=0?ht:Math.max(E(zr),E(mt))},[ht,mt]),Hr=de.useCallback(function(zr){var Er=String(zr);if(xt)return xt(Er);var Ur=Er;return kt&&(Ur=Ur.replace(kt,".")),Ur.replace(/[^\w.-]+/g,"")},[xt,kt]),Qr=de.useRef(""),rn=de.useCallback(function(zr,Er){if(bt)return bt(zr,{userTyping:Er,input:String(Qr.current)});var Ur=typeof zr=="number"?te(zr):zr;if(!Er){var wr=gr(Ur,Er);if(re(Ur)&&(kt||wr>=0)){var jn=kt||".";Ur=he(Ur,jn,wr)}}return Ur},[bt,gr,kt]),Kr=de.useState(function(){var zr=nt!=null?nt:Ae;return Zt.isInvalidate()&&["string","number"].includes((0,y.Z)(zr))?Number.isNaN(zr)?"":zr:rn(Zt.toString(),!1)}),Wr=(0,we.Z)(Kr,2),dn=Wr[0],pr=Wr[1];Qr.current=dn;function Wt(zr,Er){pr(rn(zr.isInvalidate()?zr.toString(!1):zr.toString(!Er),Er))}var Sr=de.useMemo(function(){return Ye(Ge)},[Ge,ht]),Gr=de.useMemo(function(){return Ye(Me)},[Me,ht]),gn=de.useMemo(function(){return!Sr||!Zt||Zt.isInvalidate()?!1:Sr.lessEquals(Zt)},[Sr,Zt]),Ct=de.useMemo(function(){return!Gr||!Zt||Zt.isInvalidate()?!1:Zt.lessEquals(Gr)},[Gr,Zt]),Dt=Se(Xr.current,Yr),nr=(0,we.Z)(Dt,2),Gt=nr[0],jt=nr[1],tr=function(Er){return Sr&&!Er.lessEquals(Sr)?Sr:Gr&&!Gr.lessEquals(Er)?Gr:null},hr=function(Er){return!tr(Er)},fr=function(Er,Ur){var wr=Er,jn=hr(wr)||wr.isEmpty();if(!wr.isEmpty()&&!Ur&&(wr=tr(wr)||wr,jn=!0),!We&&!je&&jn){var Hn=wr.toString(),Ln=gr(Hn,Ur);return Ln>=0&&(wr=me(he(Hn,".",Ln)),hr(wr)||(wr=me(he(Hn,".",Ln,!0)))),wr.equals(Zt)||(Nr(wr),Tt==null||Tt(wr.isEmpty()?null:it(yt,wr)),Ae===void 0&&Wt(wr,Ur)),wr}return Zt},kr=Ue(),sr=function zr(Er){if(Gt(),Qr.current=Er,pr(Er),!Dr.current){var Ur=Hr(Er),wr=me(Ur);wr.isNaN()||fr(wr,!0)}Pt==null||Pt(Er),kr(function(){var jn=Er;xt||(jn=Er.replace(/。/g,".")),jn!==Er&&zr(jn)})},xr=function(){Dr.current=!0},ar=function(){Dr.current=!1,sr(Xr.current.value)},$t=function(Er){sr(Er.target.value)},lr=function(Er){var Ur;if(!(Er&&gn||!Er&&Ct)){En.current=!1;var wr=me(Ar.current?st(mt):mt);Er||(wr=wr.negate());var jn=(Zt||me(0)).add(wr.toString()),Hn=fr(jn,!1);vr==null||vr(it(yt,Hn),{offset:Ar.current?st(mt):mt,type:Er?"up":"down"}),(Ur=Xr.current)===null||Ur===void 0||Ur.focus()}},br=function(Er){var Ur=me(Hr(dn)),wr;Ur.isNaN()?wr=fr(Zt,Er):wr=fr(Ur,Er),Ae!==void 0?Wt(Zt,!1):wr.isNaN()||Wt(wr,!1)},Rr=function(){En.current=!0},Fr=function(Er){var Ur=Er.key,wr=Er.shiftKey;En.current=!0,Ar.current=wr,Ur==="Enter"&&(Dr.current||(En.current=!1),br(!1),Vt==null||Vt(Er)),xe!==!1&&!Dr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ur)&&(lr(Ur==="Up"||Ur==="ArrowUp"),Er.preventDefault())},vn=function(){En.current=!1,Ar.current=!1};de.useEffect(function(){if(Fe&&Yr){var zr=function(wr){lr(wr.deltaY<0),wr.preventDefault()},Er=Xr.current;if(Er)return Er.addEventListener("wheel",zr,{passive:!1}),function(){return Er.removeEventListener("wheel",zr)}}});var On=function(){Cr&&br(!1),kn(!1),En.current=!1};return(0,Te.o)(function(){Zt.isInvalidate()||Wt(Zt,!1)},[ht,bt]),(0,Te.o)(function(){var zr=me(Ae);ir(zr);var Er=me(Hr(dn));(!zr.equals(Er)||!En.current||bt)&&Wt(zr,En.current)},[Ae]),(0,Te.o)(function(){bt&&jt()},[dn]),de.createElement("div",{ref:jr,className:be()(Ze,Ne,(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)({},"".concat(Ze,"-focused"),Yr),"".concat(Ze,"-disabled"),je),"".concat(Ze,"-readonly"),We),"".concat(Ze,"-not-a-number"),Zt.isNaN()),"".concat(Ze,"-out-of-range"),!Zt.isInvalidate()&&!hr(Zt))),style:ze,onFocus:function(){kn(!0)},onBlur:On,onKeyDown:Fr,onKeyUp:vn,onCompositionStart:xr,onCompositionEnd:ar,onBeforeInput:Rr},Ie&&de.createElement(et,{prefixCls:Ze,upNode:at,downNode:Re,upDisabled:gn,downDisabled:Ct,onStep:lr}),de.createElement("div",{className:"".concat(Mr,"-wrap")},de.createElement("input",(0,Je.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Me,"aria-valuemax":Ge,"aria-valuenow":Zt.isInvalidate()?null:Zt.toString(),step:mt},Pr,{ref:(0,ke.sQ)(Xr,lt),className:Mr,value:dn,onChange:$t,disabled:je,readOnly:We}))))}),Ke=de.forwardRef(function(ut,lt){var Ze=ut.disabled,Ne=ut.style,ze=ut.prefixCls,Me=ze===void 0?"rc-input-number":ze,Ge=ut.value,ct=ut.prefix,mt=ut.suffix,nt=ut.addonBefore,Ae=ut.addonAfter,je=ut.className,We=ut.classNames,at=(0,ve.Z)(ut,ot),Re=de.useRef(null),xe=de.useRef(null),ye=de.useRef(null),Fe=function(Ie){ye.current&&(0,Le.nH)(ye.current,Ie)};return de.useImperativeHandle(lt,function(){return Pe(ye.current,{focus:Fe,nativeElement:Re.current.nativeElement||xe.current})}),de.createElement(Ce.BaseInput,{className:je,triggerFocus:Fe,prefixCls:Me,value:Ge,disabled:Ze,style:Ne,prefix:ct,suffix:mt,addonAfter:Ae,addonBefore:nt,classNames:We,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Re},de.createElement($e,(0,Je.Z)({prefixCls:Me,disabled:Ze,ref:ye,domRef:xe,className:We==null?void 0:We.input},at)))}),ft=Ke,tt=ft},23425:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return Pe}});var Je=Ve(20068),wt=Ve(54476),y=Ve(76190),we=Ve(33885),ve=Ve(42978),x=Ve(92310),z=Ve.n(x),oe=Ve(18929),ie=Ve(10228),ee=Ve(26112),se=Ve(48736),E=Ve(59301),te=Ve(17119),re=[10,20,50,100],le=function(de){var ge=de.pageSizeOptions,Se=ge===void 0?re:ge,De=de.locale,_e=de.changeSize,Ee=de.pageSize,Oe=de.goButton,He=de.quickGo,Xe=de.rootPrefixCls,et=de.disabled,st=de.buildOptionText,Le=de.showSizeChanger,Ue=de.sizeChangerRender,rt=E.useState(""),ot=(0,ve.Z)(rt,2),it=ot[0],Ye=ot[1],$e=function(){return!it||Number.isNaN(it)?void 0:Number(it)},Ke=typeof st=="function"?st:function(Ge){return"".concat(Ge," ").concat(De.items_per_page)},ft=function(ct){Ye(ct.target.value)},tt=function(ct){Oe||it===""||(Ye(""),!(ct.relatedTarget&&(ct.relatedTarget.className.indexOf("".concat(Xe,"-item-link"))>=0||ct.relatedTarget.className.indexOf("".concat(Xe,"-item"))>=0))&&(He==null||He($e())))},ut=function(ct){it!==""&&(ct.keyCode===ie.Z.ENTER||ct.type==="click")&&(Ye(""),He==null||He($e()))},lt=function(){return Se.some(function(ct){return ct.toString()===Ee.toString()})?Se:Se.concat([Ee]).sort(function(ct,mt){var nt=Number.isNaN(Number(ct))?0:Number(ct),Ae=Number.isNaN(Number(mt))?0:Number(mt);return nt-Ae})},Ze="".concat(Xe,"-options");if(!Le&&!He)return null;var Ne=null,ze=null,Me=null;return Le&&Ue&&(Ne=Ue({disabled:et,size:Ee,onSizeChange:function(ct){_e==null||_e(Number(ct))},"aria-label":De.page_size,className:"".concat(Ze,"-size-changer"),options:lt().map(function(Ge){return{label:Ke(Ge),value:Ge}})})),He&&(Oe&&(Me=typeof Oe=="boolean"?E.createElement("button",{type:"button",onClick:ut,onKeyUp:ut,disabled:et,className:"".concat(Ze,"-quick-jumper-button")},De.jump_to_confirm):E.createElement("span",{onClick:ut,onKeyUp:ut},Oe)),ze=E.createElement("div",{className:"".concat(Ze,"-quick-jumper")},De.jump_to,E.createElement("input",{disabled:et,type:"text",value:it,onChange:ft,onKeyUp:ut,onBlur:tt,"aria-label":De.page}),De.page,Me)),E.createElement("li",{className:Ze},Ne,ze)},ue=le,ce=function(de){var ge=de.rootPrefixCls,Se=de.page,De=de.active,_e=de.className,Ee=de.showTitle,Oe=de.onClick,He=de.onKeyPress,Xe=de.itemRender,et="".concat(ge,"-item"),st=z()(et,"".concat(et,"-").concat(Se),(0,Je.Z)((0,Je.Z)({},"".concat(et,"-active"),De),"".concat(et,"-disabled"),!Se),_e),Le=function(){Oe(Se)},Ue=function(it){He(it,Oe,Se)},rt=Xe(Se,"page",E.createElement("a",{rel:"nofollow"},Se));return rt?E.createElement("li",{title:Ee?String(Se):null,className:st,onClick:Le,onKeyDown:Ue,tabIndex:0},rt):null},he=ce,me=function(de,ge,Se){return Se};function fe(){}function be(ke){var de=Number(ke);return typeof de=="number"&&!Number.isNaN(de)&&isFinite(de)&&Math.floor(de)===de}function Ce(ke,de,ge){var Se=typeof ke=="undefined"?de:ke;return Math.floor((ge-1)/Se)+1}var Te=function(de){var ge=de.prefixCls,Se=ge===void 0?"rc-pagination":ge,De=de.selectPrefixCls,_e=De===void 0?"rc-select":De,Ee=de.className,Oe=de.current,He=de.defaultCurrent,Xe=He===void 0?1:He,et=de.total,st=et===void 0?0:et,Le=de.pageSize,Ue=de.defaultPageSize,rt=Ue===void 0?10:Ue,ot=de.onChange,it=ot===void 0?fe:ot,Ye=de.hideOnSinglePage,$e=de.align,Ke=de.showPrevNextJumpers,ft=Ke===void 0?!0:Ke,tt=de.showQuickJumper,ut=de.showLessItems,lt=de.showTitle,Ze=lt===void 0?!0:lt,Ne=de.onShowSizeChange,ze=Ne===void 0?fe:Ne,Me=de.locale,Ge=Me===void 0?te.Z:Me,ct=de.style,mt=de.totalBoundaryShowSizeChanger,nt=mt===void 0?50:mt,Ae=de.disabled,je=de.simple,We=de.showTotal,at=de.showSizeChanger,Re=at===void 0?st>nt:at,xe=de.sizeChangerRender,ye=de.pageSizeOptions,Fe=de.itemRender,Qe=Fe===void 0?me:Fe,Ie=de.jumpPrevIcon,vt=de.jumpNextIcon,yt=de.prevIcon,xt=de.nextIcon,bt=E.useRef(null),ht=(0,oe.Z)(10,{value:Le,defaultValue:rt}),kt=(0,ve.Z)(ht,2),Tt=kt[0],Pt=kt[1],Vt=(0,oe.Z)(1,{value:Oe,defaultValue:Xe,postState:function(on){return Math.max(1,Math.min(on,Ce(void 0,Tt,st)))}}),vr=(0,ve.Z)(Vt,2),Yt=vr[0],Cr=vr[1],jr=E.useState(Yt),Pr=(0,ve.Z)(jr,2),Mr=Pr[0],Xr=Pr[1];(0,E.useEffect)(function(){Xr(Yt)},[Yt]);var mn=it!==fe,cn="current"in de,Yr=Math.max(1,Yt-(ut?3:5)),kn=Math.min(Ce(void 0,Tt,st),Yt+(ut?3:5));function En(Ir,on){var Tn=Ir||E.createElement("button",{type:"button","aria-label":on,className:"".concat(Se,"-item-link")});return typeof Ir=="function"&&(Tn=E.createElement(Ir,(0,we.Z)({},de))),Tn}function Dr(Ir){var on=Ir.target.value,Tn=Ce(void 0,Tt,st),Bn;return on===""?Bn=on:Number.isNaN(Number(on))?Bn=Mr:on>=Tn?Bn=Tn:Bn=Number(on),Bn}function Ar(Ir){return be(Ir)&&Ir!==Yt&&be(st)&&st>0}var fn=st>Tt?tt:!1;function or(Ir){(Ir.keyCode===ie.Z.UP||Ir.keyCode===ie.Z.DOWN)&&Ir.preventDefault()}function Zt(Ir){var on=Dr(Ir);switch(on!==Mr&&Xr(on),Ir.keyCode){case ie.Z.ENTER:gr(on);break;case ie.Z.UP:gr(on-1);break;case ie.Z.DOWN:gr(on+1);break;default:break}}function ir(Ir){gr(Dr(Ir))}function Nr(Ir){var on=Ce(Ir,Tt,st),Tn=Yt>on&&on!==0?on:Yt;Pt(Ir),Xr(Tn),ze==null||ze(Yt,Ir),Cr(Tn),it==null||it(Tn,Ir)}function gr(Ir){if(Ar(Ir)&&!Ae){var on=Ce(void 0,Tt,st),Tn=Ir;return Ir>on?Tn=on:Ir<1&&(Tn=1),Tn!==Mr&&Xr(Tn),Cr(Tn),it==null||it(Tn,Tt),Tn}return Yt}var Hr=Yt>1,Qr=Yt<Ce(void 0,Tt,st);function rn(){Hr&&gr(Yt-1)}function Kr(){Qr&&gr(Yt+1)}function Wr(){gr(Yr)}function dn(){gr(kn)}function pr(Ir,on){if(Ir.key==="Enter"||Ir.charCode===ie.Z.ENTER||Ir.keyCode===ie.Z.ENTER){for(var Tn=arguments.length,Bn=new Array(Tn>2?Tn-2:0),Mn=2;Mn<Tn;Mn++)Bn[Mn-2]=arguments[Mn];on.apply(void 0,Bn)}}function Wt(Ir){pr(Ir,rn)}function Sr(Ir){pr(Ir,Kr)}function Gr(Ir){pr(Ir,Wr)}function gn(Ir){pr(Ir,dn)}function Ct(Ir){var on=Qe(Ir,"prev",En(yt,"prev page"));return E.isValidElement(on)?E.cloneElement(on,{disabled:!Hr}):on}function Dt(Ir){var on=Qe(Ir,"next",En(xt,"next page"));return E.isValidElement(on)?E.cloneElement(on,{disabled:!Qr}):on}function nr(Ir){(Ir.type==="click"||Ir.keyCode===ie.Z.ENTER)&&gr(Mr)}var Gt=null,jt=(0,ee.Z)(de,{aria:!0,data:!0}),tr=We&&E.createElement("li",{className:"".concat(Se,"-total-text")},We(st,[st===0?0:(Yt-1)*Tt+1,Yt*Tt>st?st:Yt*Tt])),hr=null,fr=Ce(void 0,Tt,st);if(Ye&&st<=Tt)return null;var kr=[],sr={rootPrefixCls:Se,onClick:gr,onKeyPress:pr,showTitle:Ze,itemRender:Qe,page:-1},xr=Yt-1>0?Yt-1:0,ar=Yt+1<fr?Yt+1:fr,$t=tt&&tt.goButton,lr=(0,y.Z)(je)==="object"?je.readOnly:!je,br=$t,Rr=null;je&&($t&&(typeof $t=="boolean"?br=E.createElement("button",{type:"button",onClick:nr,onKeyUp:nr},Ge.jump_to_confirm):br=E.createElement("span",{onClick:nr,onKeyUp:nr},$t),br=E.createElement("li",{title:Ze?"".concat(Ge.jump_to).concat(Yt,"/").concat(fr):null,className:"".concat(Se,"-simple-pager")},br)),Rr=E.createElement("li",{title:Ze?"".concat(Yt,"/").concat(fr):null,className:"".concat(Se,"-simple-pager")},lr?Mr:E.createElement("input",{type:"text","aria-label":Ge.jump_to,value:Mr,disabled:Ae,onKeyDown:or,onKeyUp:Zt,onChange:Zt,onBlur:ir,size:3}),E.createElement("span",{className:"".concat(Se,"-slash")},"/"),fr));var Fr=ut?1:2;if(fr<=3+Fr*2){fr||kr.push(E.createElement(he,(0,wt.Z)({},sr,{key:"noPager",page:1,className:"".concat(Se,"-item-disabled")})));for(var vn=1;vn<=fr;vn+=1)kr.push(E.createElement(he,(0,wt.Z)({},sr,{key:vn,page:vn,active:Yt===vn})))}else{var On=ut?Ge.prev_3:Ge.prev_5,zr=ut?Ge.next_3:Ge.next_5,Er=Qe(Yr,"jump-prev",En(Ie,"prev page")),Ur=Qe(kn,"jump-next",En(vt,"next page"));ft&&(Gt=Er?E.createElement("li",{title:Ze?On:null,key:"prev",onClick:Wr,tabIndex:0,onKeyDown:Gr,className:z()("".concat(Se,"-jump-prev"),(0,Je.Z)({},"".concat(Se,"-jump-prev-custom-icon"),!!Ie))},Er):null,hr=Ur?E.createElement("li",{title:Ze?zr:null,key:"next",onClick:dn,tabIndex:0,onKeyDown:gn,className:z()("".concat(Se,"-jump-next"),(0,Je.Z)({},"".concat(Se,"-jump-next-custom-icon"),!!vt))},Ur):null);var wr=Math.max(1,Yt-Fr),jn=Math.min(Yt+Fr,fr);Yt-1<=Fr&&(jn=1+Fr*2),fr-Yt<=Fr&&(wr=fr-Fr*2);for(var Hn=wr;Hn<=jn;Hn+=1)kr.push(E.createElement(he,(0,wt.Z)({},sr,{key:Hn,page:Hn,active:Yt===Hn})));if(Yt-1>=Fr*2&&Yt!==3&&(kr[0]=E.cloneElement(kr[0],{className:z()("".concat(Se,"-item-after-jump-prev"),kr[0].props.className)}),kr.unshift(Gt)),fr-Yt>=Fr*2&&Yt!==fr-2){var Ln=kr[kr.length-1];kr[kr.length-1]=E.cloneElement(Ln,{className:z()("".concat(Se,"-item-before-jump-next"),Ln.props.className)}),kr.push(hr)}wr!==1&&kr.unshift(E.createElement(he,(0,wt.Z)({},sr,{key:1,page:1}))),jn!==fr&&kr.push(E.createElement(he,(0,wt.Z)({},sr,{key:fr,page:fr})))}var Vn=Ct(xr);if(Vn){var Yn=!Hr||!fr;Vn=E.createElement("li",{title:Ze?Ge.prev_page:null,onClick:rn,tabIndex:Yn?null:0,onKeyDown:Wt,className:z()("".concat(Se,"-prev"),(0,Je.Z)({},"".concat(Se,"-disabled"),Yn)),"aria-disabled":Yn},Vn)}var Gn=Dt(ar);if(Gn){var _n,Jn;je?(_n=!Qr,Jn=Hr?0:null):(_n=!Qr||!fr,Jn=_n?null:0),Gn=E.createElement("li",{title:Ze?Ge.next_page:null,onClick:Kr,tabIndex:Jn,onKeyDown:Sr,className:z()("".concat(Se,"-next"),(0,Je.Z)({},"".concat(Se,"-disabled"),_n)),"aria-disabled":_n},Gn)}var Xn=z()(Se,Ee,(0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)({},"".concat(Se,"-start"),$e==="start"),"".concat(Se,"-center"),$e==="center"),"".concat(Se,"-end"),$e==="end"),"".concat(Se,"-simple"),je),"".concat(Se,"-disabled"),Ae));return E.createElement("ul",(0,wt.Z)({className:Xn,style:ct,ref:bt},jt),tr,Vn,je?Rr:kr,Gn,E.createElement(ue,{locale:Ge,rootPrefixCls:Se,disabled:Ae,selectPrefixCls:_e,changeSize:Nr,pageSize:Tt,pageSizeOptions:ye,quickGo:fn?gr:null,goButton:br,showSizeChanger:Re,sizeChangerRender:xe}))},Pe=Te},25930:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Cd:function(){return Se}});var Je=Ve(54476),wt=Ve(33885),y=Ve(75931),we=Ve(59301),ve=Ve(92310),x=Ve.n(ve),z={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},oe=function(){var Ee=(0,we.useRef)([]),Oe=(0,we.useRef)(null);return(0,we.useEffect)(function(){var He=Date.now(),Xe=!1;Ee.current.forEach(function(et){if(et){Xe=!0;var st=et.style;st.transitionDuration=".3s, .3s, .3s, .06s",Oe.current&&He-Oe.current<100&&(st.transitionDuration="0s, 0s")}}),Xe&&(Oe.current=Date.now())}),Ee.current},ie=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(Ee){var Oe=(0,wt.Z)((0,wt.Z)({},z),Ee),He=Oe.className,Xe=Oe.percent,et=Oe.prefixCls,st=Oe.strokeColor,Le=Oe.strokeLinecap,Ue=Oe.strokeWidth,rt=Oe.style,ot=Oe.trailColor,it=Oe.trailWidth,Ye=Oe.transition,$e=(0,y.Z)(Oe,ie);delete $e.gapPosition;var Ke=Array.isArray(Xe)?Xe:[Xe],ft=Array.isArray(st)?st:[st],tt=oe(),ut=Ue/2,lt=100-Ue/2,Ze="M ".concat(Le==="round"?ut:0,",").concat(ut,`
L `).concat(Le==="round"?lt:100,",").concat(ut),Ne="0 0 100 ".concat(Ue),ze=0;return we.createElement("svg",(0,Je.Z)({className:x()("".concat(et,"-line"),He),viewBox:Ne,preserveAspectRatio:"none",style:rt},$e),we.createElement("path",{className:"".concat(et,"-line-trail"),d:Ze,strokeLinecap:Le,stroke:ot,strokeWidth:it||Ue,fillOpacity:"0"}),Ke.map(function(Me,Ge){var ct=1;switch(Le){case"round":ct=1-Ue/100;break;case"square":ct=1-Ue/2/100;break;default:ct=1;break}var mt={strokeDasharray:"".concat(Me*ct,"px, 100px"),strokeDashoffset:"-".concat(ze,"px"),transition:Ye||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},nt=ft[Ge]||ft[ft.length-1];return ze+=Me,we.createElement("path",{key:Ge,className:"".concat(et,"-line-path"),d:Ze,strokeLinecap:Le,stroke:nt,strokeWidth:Ue,fillOpacity:"0",ref:function(je){tt[Ge]=je},style:mt})}))},se=ee,E=Ve(76190),te=Ve(42978),re=Ve(47273),le=0,ue=(0,re.Z)();function ce(){var _e;return ue?(_e=le,le+=1):_e="TEST_OR_SSR",_e}var he=function(_e){var Ee=we.useState(),Oe=(0,te.Z)(Ee,2),He=Oe[0],Xe=Oe[1];return we.useEffect(function(){Xe("rc_progress_".concat(ce()))},[]),_e||He},me=function(Ee){var Oe=Ee.bg,He=Ee.children;return we.createElement("div",{style:{width:"100%",height:"100%",background:Oe}},He)};function fe(_e,Ee){return Object.keys(_e).map(function(Oe){var He=parseFloat(Oe),Xe="".concat(Math.floor(He*Ee),"%");return"".concat(_e[Oe]," ").concat(Xe)})}var be=we.forwardRef(function(_e,Ee){var Oe=_e.prefixCls,He=_e.color,Xe=_e.gradientId,et=_e.radius,st=_e.style,Le=_e.ptg,Ue=_e.strokeLinecap,rt=_e.strokeWidth,ot=_e.size,it=_e.gapDegree,Ye=He&&(0,E.Z)(He)==="object",$e=Ye?"#FFF":void 0,Ke=ot/2,ft=we.createElement("circle",{className:"".concat(Oe,"-circle-path"),r:et,cx:Ke,cy:Ke,stroke:$e,strokeLinecap:Ue,strokeWidth:rt,opacity:Le===0?0:1,style:st,ref:Ee});if(!Ye)return ft;var tt="".concat(Xe,"-conic"),ut=it?"".concat(180+it/2,"deg"):"0deg",lt=fe(He,(360-it)/360),Ze=fe(He,1),Ne="conic-gradient(from ".concat(ut,", ").concat(lt.join(", "),")"),ze="linear-gradient(to ".concat(it?"bottom":"top",", ").concat(Ze.join(", "),")");return we.createElement(we.Fragment,null,we.createElement("mask",{id:tt},ft),we.createElement("foreignObject",{x:0,y:0,width:ot,height:ot,mask:"url(#".concat(tt,")")},we.createElement(me,{bg:ze},we.createElement(me,{bg:Ne}))))}),Ce=be,Te=100,Pe=function(Ee,Oe,He,Xe,et,st,Le,Ue,rt,ot){var it=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ye=He/100*360*((360-st)/360),$e=st===0?0:{bottom:0,top:180,left:90,right:-90}[Le],Ke=(100-Xe)/100*Oe;rt==="round"&&Xe!==100&&(Ke+=ot/2,Ke>=Oe&&(Ke=Oe-.01));var ft=Te/2;return{stroke:typeof Ue=="string"?Ue:void 0,strokeDasharray:"".concat(Oe,"px ").concat(Ee),strokeDashoffset:Ke+it,transform:"rotate(".concat(et+Ye+$e,"deg)"),transformOrigin:"".concat(ft,"px ").concat(ft,"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}},ke=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function de(_e){var Ee=_e!=null?_e:[];return Array.isArray(Ee)?Ee:[Ee]}var ge=function(Ee){var Oe=(0,wt.Z)((0,wt.Z)({},z),Ee),He=Oe.id,Xe=Oe.prefixCls,et=Oe.steps,st=Oe.strokeWidth,Le=Oe.trailWidth,Ue=Oe.gapDegree,rt=Ue===void 0?0:Ue,ot=Oe.gapPosition,it=Oe.trailColor,Ye=Oe.strokeLinecap,$e=Oe.style,Ke=Oe.className,ft=Oe.strokeColor,tt=Oe.percent,ut=(0,y.Z)(Oe,ke),lt=Te/2,Ze=he(He),Ne="".concat(Ze,"-gradient"),ze=lt-st/2,Me=Math.PI*2*ze,Ge=rt>0?90+rt/2:-90,ct=Me*((360-rt)/360),mt=(0,E.Z)(et)==="object"?et:{count:et,gap:2},nt=mt.count,Ae=mt.gap,je=de(tt),We=de(ft),at=We.find(function(vt){return vt&&(0,E.Z)(vt)==="object"}),Re=at&&(0,E.Z)(at)==="object",xe=Re?"butt":Ye,ye=Pe(Me,ct,0,100,Ge,rt,ot,it,xe,st),Fe=oe(),Qe=function(){var yt=0;return je.map(function(xt,bt){var ht=We[bt]||We[We.length-1],kt=Pe(Me,ct,yt,xt,Ge,rt,ot,ht,xe,st);return yt+=xt,we.createElement(Ce,{key:bt,color:ht,ptg:xt,radius:ze,prefixCls:Xe,gradientId:Ne,style:kt,strokeLinecap:xe,strokeWidth:st,gapDegree:rt,ref:function(Pt){Fe[bt]=Pt},size:Te})}).reverse()},Ie=function(){var yt=Math.round(nt*(je[0]/100)),xt=100/nt,bt=0;return new Array(nt).fill(null).map(function(ht,kt){var Tt=kt<=yt-1?We[0]:it,Pt=Tt&&(0,E.Z)(Tt)==="object"?"url(#".concat(Ne,")"):void 0,Vt=Pe(Me,ct,bt,xt,Ge,rt,ot,Tt,"butt",st,Ae);return bt+=(ct-Vt.strokeDashoffset+Ae)*100/ct,we.createElement("circle",{key:kt,className:"".concat(Xe,"-circle-path"),r:ze,cx:lt,cy:lt,stroke:Pt,strokeWidth:st,opacity:1,style:Vt,ref:function(Yt){Fe[kt]=Yt}})})};return we.createElement("svg",(0,Je.Z)({className:x()("".concat(Xe,"-circle"),Ke),viewBox:"0 0 ".concat(Te," ").concat(Te),style:$e,id:He,role:"presentation"},ut),!nt&&we.createElement("circle",{className:"".concat(Xe,"-circle-trail"),r:ze,cx:lt,cy:lt,stroke:it,strokeLinecap:xe,strokeWidth:Le||st,style:ye}),nt?Ie():Qe())},Se=ge,De={Line:se,Circle:Se}},6551:function(Kt,_t,Ve){"use strict";Ve.d(_t,{ZP:function(){return z}});var Je=Ve(42978),wt=Ve(59301),y=Ve(47273),we=0,ve=(0,y.Z)();function x(){var oe;return ve?(oe=we,we+=1):oe="TEST_OR_SSR",oe}function z(oe){var ie=wt.useState(),ee=(0,Je.Z)(ie,2),se=ee[0],E=ee[1];return wt.useEffect(function(){E("rc_select_".concat(x()))},[]),oe||se}},37463:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Ac:function(){return ht},Xo:function(){return Tt},Wx:function(){return Vt},ZP:function(){return gn},lk:function(){return fe}});var Je=Ve(54476),wt=Ve(94480),y=Ve(20068),we=Ve(33885),ve=Ve(42978),x=Ve(75931),z=Ve(76190),oe=Ve(18929),ie=Ve(48736),ee=Ve(59301),se=Ve(92310),E=Ve.n(se),te=Ve(34280),re=Ve(49658),le=Ve(8654),ue=function(Dt){var nr=Dt.className,Gt=Dt.customizeIcon,jt=Dt.customizeIconProps,tr=Dt.children,hr=Dt.onMouseDown,fr=Dt.onClick,kr=typeof Gt=="function"?Gt(jt):Gt;return ee.createElement("span",{className:nr,onMouseDown:function(xr){xr.preventDefault(),hr==null||hr(xr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:fr,"aria-hidden":!0},kr!==void 0?kr:ee.createElement("span",{className:E()(nr.split(/\s+/).map(function(sr){return"".concat(sr,"-icon")}))},tr))},ce=ue,he=function(Dt,nr,Gt,jt,tr){var hr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,fr=arguments.length>6?arguments[6]:void 0,kr=arguments.length>7?arguments[7]:void 0,sr=ee.useMemo(function(){if((0,z.Z)(jt)==="object")return jt.clearIcon;if(tr)return tr},[jt,tr]),xr=ee.useMemo(function(){return!!(!hr&&jt&&(Gt.length||fr)&&!(kr==="combobox"&&fr===""))},[jt,hr,Gt.length,fr,kr]);return{allowClear:xr,clearIcon:ee.createElement(ce,{className:"".concat(Dt,"-clear"),onMouseDown:nr,customizeIcon:sr},"\xD7")}},me=ee.createContext(null);function fe(){return ee.useContext(me)}function be(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Dt=ee.useState(!1),nr=(0,ve.Z)(Dt,2),Gt=nr[0],jt=nr[1],tr=ee.useRef(null),hr=function(){window.clearTimeout(tr.current)};ee.useEffect(function(){return hr},[]);var fr=function(sr,xr){hr(),tr.current=window.setTimeout(function(){jt(sr),xr&&xr()},Ct)};return[Gt,fr,hr]}function Ce(){var Ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Dt=ee.useRef(null),nr=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(nr.current)}},[]);function Gt(jt){(jt||Dt.current===null)&&(Dt.current=jt),window.clearTimeout(nr.current),nr.current=window.setTimeout(function(){Dt.current=null},Ct)}return[function(){return Dt.current},Gt]}function Te(Ct,Dt,nr,Gt){var jt=ee.useRef(null);jt.current={open:Dt,triggerOpen:nr,customizedTrigger:Gt},ee.useEffect(function(){function tr(hr){var fr;if(!((fr=jt.current)!==null&&fr!==void 0&&fr.customizedTrigger)){var kr=hr.target;kr.shadowRoot&&hr.composed&&(kr=hr.composedPath()[0]||kr),jt.current.open&&Ct().filter(function(sr){return sr}).every(function(sr){return!sr.contains(kr)&&sr!==kr})&&jt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",tr),function(){return window.removeEventListener("mousedown",tr)}},[])}var Pe=Ve(10228);function ke(Ct){return Ct&&![Pe.Z.ESC,Pe.Z.SHIFT,Pe.Z.BACKSPACE,Pe.Z.TAB,Pe.Z.WIN_KEY,Pe.Z.ALT,Pe.Z.META,Pe.Z.WIN_KEY_RIGHT,Pe.Z.CTRL,Pe.Z.SEMICOLON,Pe.Z.EQUALS,Pe.Z.CAPS_LOCK,Pe.Z.CONTEXT_MENU,Pe.Z.F1,Pe.Z.F2,Pe.Z.F3,Pe.Z.F4,Pe.Z.F5,Pe.Z.F6,Pe.Z.F7,Pe.Z.F8,Pe.Z.F9,Pe.Z.F10,Pe.Z.F11,Pe.Z.F12].includes(Ct)}var de=Ve(26112),ge=Ve(11780);function Se(Ct,Dt,nr){var Gt=(0,we.Z)((0,we.Z)({},Ct),nr?Dt:{});return Object.keys(Dt).forEach(function(jt){var tr=Dt[jt];typeof tr=="function"&&(Gt[jt]=function(){for(var hr,fr=arguments.length,kr=new Array(fr),sr=0;sr<fr;sr++)kr[sr]=arguments[sr];return tr.apply(void 0,kr),(hr=Ct[jt])===null||hr===void 0?void 0:hr.call.apply(hr,[Ct].concat(kr))})}),Gt}var De=Se,_e=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Ee=function(Dt,nr){var Gt=Dt.prefixCls,jt=Dt.id,tr=Dt.inputElement,hr=Dt.autoFocus,fr=Dt.autoComplete,kr=Dt.editable,sr=Dt.activeDescendantId,xr=Dt.value,ar=Dt.open,$t=Dt.attrs,lr=(0,x.Z)(Dt,_e),br=tr||ee.createElement("input",null),Rr=br,Fr=Rr.ref,vn=Rr.props;return(0,ie.Kp)(!("maxLength"in br.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),br=ee.cloneElement(br,(0,we.Z)((0,we.Z)((0,we.Z)({type:"search"},De(lr,vn,!0)),{},{id:jt,ref:(0,le.sQ)(nr,Fr),autoComplete:fr||"off",autoFocus:hr,className:E()("".concat(Gt,"-selection-search-input"),vn==null?void 0:vn.className),role:"combobox","aria-expanded":ar||!1,"aria-haspopup":"listbox","aria-owns":"".concat(jt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(jt,"_list"),"aria-activedescendant":ar?sr:void 0},$t),{},{value:kr?xr:"",readOnly:!kr,unselectable:kr?null:"on",style:(0,we.Z)((0,we.Z)({},vn.style),{},{opacity:kr?null:0})})),br},Oe=ee.forwardRef(Ee),He=Oe;function Xe(Ct){return Array.isArray(Ct)?Ct:Ct!==void 0?[Ct]:[]}var et=typeof window!="undefined"&&window.document&&window.document.documentElement,st=et;function Le(Ct){return Ct!=null}function Ue(Ct){return!Ct&&Ct!==0}function rt(Ct){return["string","number"].includes((0,z.Z)(Ct))}function ot(Ct){var Dt=void 0;return Ct&&(rt(Ct.title)?Dt=Ct.title.toString():rt(Ct.label)&&(Dt=Ct.label.toString())),Dt}function it(Ct,Dt){st?ee.useLayoutEffect(Ct,Dt):ee.useEffect(Ct,Dt)}function Ye(Ct){var Dt;return(Dt=Ct.key)!==null&&Dt!==void 0?Dt:Ct.value}var $e=function(Dt){Dt.preventDefault(),Dt.stopPropagation()},Ke=function(Dt){var nr=Dt.id,Gt=Dt.prefixCls,jt=Dt.values,tr=Dt.open,hr=Dt.searchValue,fr=Dt.autoClearSearchValue,kr=Dt.inputRef,sr=Dt.placeholder,xr=Dt.disabled,ar=Dt.mode,$t=Dt.showSearch,lr=Dt.autoFocus,br=Dt.autoComplete,Rr=Dt.activeDescendantId,Fr=Dt.tabIndex,vn=Dt.removeIcon,On=Dt.maxTagCount,zr=Dt.maxTagTextLength,Er=Dt.maxTagPlaceholder,Ur=Er===void 0?function(Ht){return"+ ".concat(Ht.length," ...")}:Er,wr=Dt.tagRender,jn=Dt.onToggleOpen,Hn=Dt.onRemove,Ln=Dt.onInputChange,Vn=Dt.onInputPaste,Yn=Dt.onInputKeyDown,Gn=Dt.onInputMouseDown,_n=Dt.onInputCompositionStart,Jn=Dt.onInputCompositionEnd,Xn=Dt.onInputBlur,Ir=ee.useRef(null),on=(0,ee.useState)(0),Tn=(0,ve.Z)(on,2),Bn=Tn[0],Mn=Tn[1],Fn=(0,ee.useState)(!1),ri=(0,ve.Z)(Fn,2),St=ri[0],Lt=ri[1],Mt="".concat(Gt,"-selection"),Nt=tr||ar==="multiple"&&fr===!1||ar==="tags"?hr:"",Xt=ar==="tags"||ar==="multiple"&&fr===!1||$t&&(tr||St);it(function(){Mn(Ir.current.scrollWidth)},[Nt]);var Rt=function(zt,qt,mr,er,Ft){return ee.createElement("span",{title:ot(zt),className:E()("".concat(Mt,"-item"),(0,y.Z)({},"".concat(Mt,"-item-disabled"),mr))},ee.createElement("span",{className:"".concat(Mt,"-item-content")},qt),er&&ee.createElement(ce,{className:"".concat(Mt,"-item-remove"),onMouseDown:$e,onClick:Ft,customizeIcon:vn},"\xD7"))},Jt=function(zt,qt,mr,er,Ft,ur){var dr=function(Vr){$e(Vr),jn(!tr)};return ee.createElement("span",{onMouseDown:dr},wr({label:qt,value:zt,disabled:mr,closable:er,onClose:Ft,isMaxTag:!!ur}))},rr=function(zt){var qt=zt.disabled,mr=zt.label,er=zt.value,Ft=!xr&&!qt,ur=mr;if(typeof zr=="number"&&(typeof mr=="string"||typeof mr=="number")){var dr=String(ur);dr.length>zr&&(ur="".concat(dr.slice(0,zr),"..."))}var Tr=function(_r){_r&&_r.stopPropagation(),Hn(zt)};return typeof wr=="function"?Jt(er,ur,qt,Ft,Tr):Rt(zt,ur,qt,Ft,Tr)},Qt=function(zt){if(!jt.length)return null;var qt=typeof Ur=="function"?Ur(zt):Ur;return typeof wr=="function"?Jt(void 0,qt,!1,!1,void 0,!0):Rt({title:qt},qt,!1)},Ot=ee.createElement("div",{className:"".concat(Mt,"-search"),style:{width:Bn},onFocus:function(){Lt(!0)},onBlur:function(){Lt(!1)}},ee.createElement(He,{ref:kr,open:tr,prefixCls:Gt,id:nr,inputElement:null,disabled:xr,autoFocus:lr,autoComplete:br,editable:Xt,activeDescendantId:Rr,value:Nt,onKeyDown:Yn,onMouseDown:Gn,onChange:Ln,onPaste:Vn,onCompositionStart:_n,onCompositionEnd:Jn,onBlur:Xn,tabIndex:Fr,attrs:(0,de.Z)(Dt,!0)}),ee.createElement("span",{ref:Ir,className:"".concat(Mt,"-search-mirror"),"aria-hidden":!0},Nt,"\xA0")),Bt=ee.createElement(ge.Z,{prefixCls:"".concat(Mt,"-overflow"),data:jt,renderItem:rr,renderRest:Qt,suffix:Ot,itemKey:Ye,maxCount:On});return ee.createElement("span",{className:"".concat(Mt,"-wrap")},Bt,!jt.length&&!Nt&&ee.createElement("span",{className:"".concat(Mt,"-placeholder")},sr))},ft=Ke,tt=function(Dt){var nr=Dt.inputElement,Gt=Dt.prefixCls,jt=Dt.id,tr=Dt.inputRef,hr=Dt.disabled,fr=Dt.autoFocus,kr=Dt.autoComplete,sr=Dt.activeDescendantId,xr=Dt.mode,ar=Dt.open,$t=Dt.values,lr=Dt.placeholder,br=Dt.tabIndex,Rr=Dt.showSearch,Fr=Dt.searchValue,vn=Dt.activeValue,On=Dt.maxLength,zr=Dt.onInputKeyDown,Er=Dt.onInputMouseDown,Ur=Dt.onInputChange,wr=Dt.onInputPaste,jn=Dt.onInputCompositionStart,Hn=Dt.onInputCompositionEnd,Ln=Dt.onInputBlur,Vn=Dt.title,Yn=ee.useState(!1),Gn=(0,ve.Z)(Yn,2),_n=Gn[0],Jn=Gn[1],Xn=xr==="combobox",Ir=Xn||Rr,on=$t[0],Tn=Fr||"";Xn&&vn&&!_n&&(Tn=vn),ee.useEffect(function(){Xn&&Jn(!1)},[Xn,vn]);var Bn=xr!=="combobox"&&!ar&&!Rr?!1:!!Tn,Mn=Vn===void 0?ot(on):Vn,Fn=ee.useMemo(function(){return on?null:ee.createElement("span",{className:"".concat(Gt,"-selection-placeholder"),style:Bn?{visibility:"hidden"}:void 0},lr)},[on,Bn,lr,Gt]);return ee.createElement("span",{className:"".concat(Gt,"-selection-wrap")},ee.createElement("span",{className:"".concat(Gt,"-selection-search")},ee.createElement(He,{ref:tr,prefixCls:Gt,id:jt,open:ar,inputElement:nr,disabled:hr,autoFocus:fr,autoComplete:kr,editable:Ir,activeDescendantId:sr,value:Tn,onKeyDown:zr,onMouseDown:Er,onChange:function(St){Jn(!0),Ur(St)},onPaste:wr,onCompositionStart:jn,onCompositionEnd:Hn,onBlur:Ln,tabIndex:br,attrs:(0,de.Z)(Dt,!0),maxLength:Xn?On:void 0})),!Xn&&on?ee.createElement("span",{className:"".concat(Gt,"-selection-item"),title:Mn,style:Bn?{visibility:"hidden"}:void 0},on.label):null,Fn)},ut=tt,lt=function(Dt,nr){var Gt=(0,ee.useRef)(null),jt=(0,ee.useRef)(!1),tr=Dt.prefixCls,hr=Dt.open,fr=Dt.mode,kr=Dt.showSearch,sr=Dt.tokenWithEnter,xr=Dt.disabled,ar=Dt.prefix,$t=Dt.autoClearSearchValue,lr=Dt.onSearch,br=Dt.onSearchSubmit,Rr=Dt.onToggleOpen,Fr=Dt.onInputKeyDown,vn=Dt.onInputBlur,On=Dt.domRef;ee.useImperativeHandle(nr,function(){return{focus:function(Mn){Gt.current.focus(Mn)},blur:function(){Gt.current.blur()}}});var zr=Ce(0),Er=(0,ve.Z)(zr,2),Ur=Er[0],wr=Er[1],jn=function(Mn){var Fn=Mn.which,ri=Gt.current instanceof HTMLTextAreaElement;!ri&&hr&&(Fn===Pe.Z.UP||Fn===Pe.Z.DOWN)&&Mn.preventDefault(),Fr&&Fr(Mn),Fn===Pe.Z.ENTER&&fr==="tags"&&!jt.current&&!hr&&(br==null||br(Mn.target.value)),!(ri&&!hr&&~[Pe.Z.UP,Pe.Z.DOWN,Pe.Z.LEFT,Pe.Z.RIGHT].indexOf(Fn))&&ke(Fn)&&Rr(!0)},Hn=function(){wr(!0)},Ln=(0,ee.useRef)(null),Vn=function(Mn){lr(Mn,!0,jt.current)!==!1&&Rr(!0)},Yn=function(){jt.current=!0},Gn=function(Mn){jt.current=!1,fr!=="combobox"&&Vn(Mn.target.value)},_n=function(Mn){var Fn=Mn.target.value;if(sr&&Ln.current&&/[\r\n]/.test(Ln.current)){var ri=Ln.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Fn=Fn.replace(ri,Ln.current)}Ln.current=null,Vn(Fn)},Jn=function(Mn){var Fn=Mn.clipboardData,ri=Fn==null?void 0:Fn.getData("text");Ln.current=ri||""},Xn=function(Mn){var Fn=Mn.target;if(Fn!==Gt.current){var ri=document.body.style.msTouchAction!==void 0;ri?setTimeout(function(){Gt.current.focus()}):Gt.current.focus()}},Ir=function(Mn){var Fn=Ur();Mn.target!==Gt.current&&!Fn&&!(fr==="combobox"&&xr)&&Mn.preventDefault(),(fr!=="combobox"&&(!kr||!Fn)||!hr)&&(hr&&$t!==!1&&lr("",!0,!1),Rr())},on={inputRef:Gt,onInputKeyDown:jn,onInputMouseDown:Hn,onInputChange:_n,onInputPaste:Jn,onInputCompositionStart:Yn,onInputCompositionEnd:Gn,onInputBlur:vn},Tn=fr==="multiple"||fr==="tags"?ee.createElement(ft,(0,Je.Z)({},Dt,on)):ee.createElement(ut,(0,Je.Z)({},Dt,on));return ee.createElement("div",{ref:On,className:"".concat(tr,"-selector"),onClick:Xn,onMouseDown:Ir},ar&&ee.createElement("div",{className:"".concat(tr,"-prefix")},ar),Tn)},Ze=ee.forwardRef(lt),Ne=Ze,ze=Ve(65030),Me=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ge=function(Dt){var nr=Dt===!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"}}},ct=function(Dt,nr){var Gt=Dt.prefixCls,jt=Dt.disabled,tr=Dt.visible,hr=Dt.children,fr=Dt.popupElement,kr=Dt.animation,sr=Dt.transitionName,xr=Dt.dropdownStyle,ar=Dt.dropdownClassName,$t=Dt.direction,lr=$t===void 0?"ltr":$t,br=Dt.placement,Rr=Dt.builtinPlacements,Fr=Dt.dropdownMatchSelectWidth,vn=Dt.dropdownRender,On=Dt.dropdownAlign,zr=Dt.getPopupContainer,Er=Dt.empty,Ur=Dt.getTriggerDOMNode,wr=Dt.onPopupVisibleChange,jn=Dt.onPopupMouseEnter,Hn=(0,x.Z)(Dt,Me),Ln="".concat(Gt,"-dropdown"),Vn=fr;vn&&(Vn=vn(fr));var Yn=ee.useMemo(function(){return Rr||Ge(Fr)},[Rr,Fr]),Gn=kr?"".concat(Ln,"-").concat(kr):sr,_n=typeof Fr=="number",Jn=ee.useMemo(function(){return _n?null:Fr===!1?"minWidth":"width"},[Fr,_n]),Xn=xr;_n&&(Xn=(0,we.Z)((0,we.Z)({},Xn),{},{width:Fr}));var Ir=ee.useRef(null);return ee.useImperativeHandle(nr,function(){return{getPopupElement:function(){var Tn;return(Tn=Ir.current)===null||Tn===void 0?void 0:Tn.popupElement}}}),ee.createElement(ze.Z,(0,Je.Z)({},Hn,{showAction:wr?["click"]:[],hideAction:wr?["click"]:[],popupPlacement:br||(lr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Yn,prefixCls:Ln,popupTransitionName:Gn,popup:ee.createElement("div",{onMouseEnter:jn},Vn),ref:Ir,stretch:Jn,popupAlign:On,popupVisible:tr,getPopupContainer:zr,popupClassName:E()(ar,(0,y.Z)({},"".concat(Ln,"-empty"),Er)),popupStyle:Xn,getTriggerDOMNode:Ur,onPopupVisibleChange:wr}),hr)},mt=ee.forwardRef(ct),nt=mt,Ae=Ve(66712);function je(Ct,Dt){var nr=Ct.key,Gt;return"value"in Ct&&(Gt=Ct.value),nr!=null?nr:Gt!==void 0?Gt:"rc-index-key-".concat(Dt)}function We(Ct){return typeof Ct!="undefined"&&!Number.isNaN(Ct)}function at(Ct,Dt){var nr=Ct||{},Gt=nr.label,jt=nr.value,tr=nr.options,hr=nr.groupLabel,fr=Gt||(Dt?"children":"label");return{label:fr,value:jt||"value",options:tr||"options",groupLabel:hr||fr}}function Re(Ct){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nr=Dt.fieldNames,Gt=Dt.childrenAsData,jt=[],tr=at(nr,!1),hr=tr.label,fr=tr.value,kr=tr.options,sr=tr.groupLabel;function xr(ar,$t){Array.isArray(ar)&&ar.forEach(function(lr){if($t||!(kr in lr)){var br=lr[fr];jt.push({key:je(lr,jt.length),groupOption:$t,data:lr,label:lr[hr],value:br})}else{var Rr=lr[sr];Rr===void 0&&Gt&&(Rr=lr.label),jt.push({key:je(lr,jt.length),group:!0,data:lr,label:Rr}),xr(lr[kr],!0)}})}return xr(Ct,!1),jt}function xe(Ct){var Dt=(0,we.Z)({},Ct);return"props"in Dt||Object.defineProperty(Dt,"props",{get:function(){return(0,ie.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Dt}}),Dt}var ye=function(Dt,nr,Gt){if(!nr||!nr.length)return null;var jt=!1,tr=function fr(kr,sr){var xr=(0,Ae.Z)(sr),ar=xr[0],$t=xr.slice(1);if(!ar)return[kr];var lr=kr.split(ar);return jt=jt||lr.length>1,lr.reduce(function(br,Rr){return[].concat((0,wt.Z)(br),(0,wt.Z)(fr(Rr,$t)))},[]).filter(Boolean)},hr=tr(Dt,nr);return jt?typeof Gt!="undefined"?hr.slice(0,Gt):hr:null},Fe=ee.createContext(null),Qe=Fe;function Ie(Ct){var Dt=Ct.visible,nr=Ct.values;if(!Dt)return null;var Gt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(nr.slice(0,Gt).map(function(jt){var tr=jt.label,hr=jt.value;return["number","string"].includes((0,z.Z)(tr))?tr:hr}).join(", ")),nr.length>Gt?", ...":null)}var vt=["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"],yt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],xt=function(Dt){return Dt==="tags"||Dt==="multiple"},bt=ee.forwardRef(function(Ct,Dt){var nr,Gt=Ct.id,jt=Ct.prefixCls,tr=Ct.className,hr=Ct.showSearch,fr=Ct.tagRender,kr=Ct.direction,sr=Ct.omitDomProps,xr=Ct.displayValues,ar=Ct.onDisplayValuesChange,$t=Ct.emptyOptions,lr=Ct.notFoundContent,br=lr===void 0?"Not Found":lr,Rr=Ct.onClear,Fr=Ct.mode,vn=Ct.disabled,On=Ct.loading,zr=Ct.getInputElement,Er=Ct.getRawInputElement,Ur=Ct.open,wr=Ct.defaultOpen,jn=Ct.onDropdownVisibleChange,Hn=Ct.activeValue,Ln=Ct.onActiveValueChange,Vn=Ct.activeDescendantId,Yn=Ct.searchValue,Gn=Ct.autoClearSearchValue,_n=Ct.onSearch,Jn=Ct.onSearchSplit,Xn=Ct.tokenSeparators,Ir=Ct.allowClear,on=Ct.prefix,Tn=Ct.suffixIcon,Bn=Ct.clearIcon,Mn=Ct.OptionList,Fn=Ct.animation,ri=Ct.transitionName,St=Ct.dropdownStyle,Lt=Ct.dropdownClassName,Mt=Ct.dropdownMatchSelectWidth,Nt=Ct.dropdownRender,Xt=Ct.dropdownAlign,Rt=Ct.placement,Jt=Ct.builtinPlacements,rr=Ct.getPopupContainer,Qt=Ct.showAction,Ot=Qt===void 0?[]:Qt,Bt=Ct.onFocus,Ht=Ct.onBlur,zt=Ct.onKeyUp,qt=Ct.onKeyDown,mr=Ct.onMouseDown,er=(0,x.Z)(Ct,vt),Ft=xt(Fr),ur=(hr!==void 0?hr:Ft)||Fr==="combobox",dr=(0,we.Z)({},er);yt.forEach(function(Zn){delete dr[Zn]}),sr==null||sr.forEach(function(Zn){delete dr[Zn]});var Tr=ee.useState(!1),Vr=(0,ve.Z)(Tr,2),_r=Vr[0],ln=Vr[1];ee.useEffect(function(){ln((0,re.Z)())},[]);var qr=ee.useRef(null),sn=ee.useRef(null),hn=ee.useRef(null),un=ee.useRef(null),Pn=ee.useRef(null),yn=ee.useRef(!1),wn=be(),nn=(0,ve.Z)(wn,3),Zr=nn[0],tn=nn[1],pn=nn[2];ee.useImperativeHandle(Dt,function(){var Zn,In;return{focus:(Zn=un.current)===null||Zn===void 0?void 0:Zn.focus,blur:(In=un.current)===null||In===void 0?void 0:In.blur,scrollTo:function(hi){var wi;return(wi=Pn.current)===null||wi===void 0?void 0:wi.scrollTo(hi)},nativeElement:qr.current||sn.current}});var Jr=ee.useMemo(function(){var Zn;if(Fr!=="combobox")return Yn;var In=(Zn=xr[0])===null||Zn===void 0?void 0:Zn.value;return typeof In=="string"||typeof In=="number"?String(In):""},[Yn,Fr,xr]),An=Fr==="combobox"&&typeof zr=="function"&&zr()||null,Rn=typeof Er=="function"&&Er(),Qn=(0,le.x1)(sn,Rn==null||(nr=Rn.props)===null||nr===void 0?void 0:nr.ref),Di=ee.useState(!1),Si=(0,ve.Z)(Di,2),yi=Si[0],ji=Si[1];(0,te.Z)(function(){ji(!0)},[]);var qn=(0,oe.Z)(!1,{defaultValue:wr,value:Ur}),$n=(0,ve.Z)(qn,2),ti=$n[0],ki=$n[1],ai=yi?ti:!1,li=!br&&$t;(vn||li&&ai&&Fr==="combobox")&&(ai=!1);var oi=li?!1:ai,en=ee.useCallback(function(Zn){var In=Zn!==void 0?Zn:!ai;vn||(ki(In),ai!==In&&(jn==null||jn(In)))},[vn,ai,ki,jn]),xn=ee.useMemo(function(){return(Xn||[]).some(function(Zn){return[`
`,`\r
`].includes(Zn)})},[Xn]),Sn=ee.useContext(Qe)||{},Cn=Sn.maxCount,zn=Sn.rawValues,ei=function(In,vi,hi){if(!(Ft&&We(Cn)&&(zn==null?void 0:zn.size)>=Cn)){var wi=!0,Ti=In;Ln==null||Ln(null);var la=ye(In,Xn,We(Cn)?Cn-zn.size:void 0),ia=hi?null:la;return Fr!=="combobox"&&ia&&(Ti="",Jn==null||Jn(ia),en(!1),wi=!1),_n&&Jr!==Ti&&_n(Ti,{source:vi?"typing":"effect"}),wi}},Hi=function(In){!In||!In.trim()||_n(In,{source:"submit"})};ee.useEffect(function(){!ai&&!Ft&&Fr!=="combobox"&&ei("",!1,!1)},[ai]),ee.useEffect(function(){ti&&vn&&ki(!1),vn&&!yn.current&&tn(!1)},[vn]);var fi=Ce(),ci=(0,ve.Z)(fi,2),Nn=ci[0],bi=ci[1],Ki=ee.useRef(!1),ni=function(In){var vi=Nn(),hi=In.key,wi=hi==="Enter";if(wi&&(Fr!=="combobox"&&In.preventDefault(),ai||en(!0)),bi(!!Jr),hi==="Backspace"&&!vi&&Ft&&!Jr&&xr.length){for(var Ti=(0,wt.Z)(xr),la=null,ia=Ti.length-1;ia>=0;ia-=1){var va=Ti[ia];if(!va.disabled){Ti.splice(ia,1),la=va;break}}la&&ar(Ti,{type:"remove",values:[la]})}for(var pi=arguments.length,Ri=new Array(pi>1?pi-1:0),Ji=1;Ji<pi;Ji++)Ri[Ji-1]=arguments[Ji];if(ai&&(!wi||!Ki.current)){var ua;wi&&(Ki.current=!0),(ua=Pn.current)===null||ua===void 0||ua.onKeyDown.apply(ua,[In].concat(Ri))}qt==null||qt.apply(void 0,[In].concat(Ri))},sa=function(In){for(var vi=arguments.length,hi=new Array(vi>1?vi-1:0),wi=1;wi<vi;wi++)hi[wi-1]=arguments[wi];if(ai){var Ti;(Ti=Pn.current)===null||Ti===void 0||Ti.onKeyUp.apply(Ti,[In].concat(hi))}In.key==="Enter"&&(Ki.current=!1),zt==null||zt.apply(void 0,[In].concat(hi))},Vi=function(In){var vi=xr.filter(function(hi){return hi!==In});ar(vi,{type:"remove",values:[In]})},$i=function(){Ki.current=!1},mi=ee.useRef(!1),ro=function(){tn(!0),vn||(Bt&&!mi.current&&Bt.apply(void 0,arguments),Ot.includes("focus")&&en(!0)),mi.current=!0},Ya=function(){yn.current=!0,tn(!1,function(){mi.current=!1,yn.current=!1,en(!1)}),!vn&&(Jr&&(Fr==="tags"?_n(Jr,{source:"submit"}):Fr==="multiple"&&_n("",{source:"blur"})),Ht&&Ht.apply(void 0,arguments))},pa=[];ee.useEffect(function(){return function(){pa.forEach(function(Zn){return clearTimeout(Zn)}),pa.splice(0,pa.length)}},[]);var ma=function(In){var vi,hi=In.target,wi=(vi=hn.current)===null||vi===void 0?void 0:vi.getPopupElement();if(wi&&wi.contains(hi)){var Ti=setTimeout(function(){var pi=pa.indexOf(Ti);if(pi!==-1&&pa.splice(pi,1),pn(),!_r&&!wi.contains(document.activeElement)){var Ri;(Ri=un.current)===null||Ri===void 0||Ri.focus()}});pa.push(Ti)}for(var la=arguments.length,ia=new Array(la>1?la-1:0),va=1;va<la;va++)ia[va-1]=arguments[va];mr==null||mr.apply(void 0,[In].concat(ia))},na=ee.useState({}),Ea=(0,ve.Z)(na,2),no=Ea[1];function io(){no({})}var ao;Rn&&(ao=function(In){en(In)}),Te(function(){var Zn;return[qr.current,(Zn=hn.current)===null||Zn===void 0?void 0:Zn.getPopupElement()]},oi,en,!!Rn);var La=ee.useMemo(function(){return(0,we.Z)((0,we.Z)({},Ct),{},{notFoundContent:br,open:ai,triggerOpen:oi,id:Gt,showSearch:ur,multiple:Ft,toggleOpen:en})},[Ct,br,oi,ai,Gt,ur,Ft,en]),$a=!!Tn||On,Ba;$a&&(Ba=ee.createElement(ce,{className:E()("".concat(jt,"-arrow"),(0,y.Z)({},"".concat(jt,"-arrow-loading"),On)),customizeIcon:Tn,customizeIconProps:{loading:On,searchValue:Jr,open:ai,focused:Zr,showSearch:ur}}));var Ca=function(){var In;Rr==null||Rr(),(In=un.current)===null||In===void 0||In.focus(),ar([],{type:"clear",values:xr}),ei("",!1,!1)},Ja=he(jt,Ca,xr,Ir,Bn,vn,Jr,Fr),oo=Ja.allowClear,Fa=Ja.clearIcon,ka=ee.createElement(Mn,{ref:Pn}),Ta=E()(jt,tr,(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(jt,"-focused"),Zr),"".concat(jt,"-multiple"),Ft),"".concat(jt,"-single"),!Ft),"".concat(jt,"-allow-clear"),Ir),"".concat(jt,"-show-arrow"),$a),"".concat(jt,"-disabled"),vn),"".concat(jt,"-loading"),On),"".concat(jt,"-open"),ai),"".concat(jt,"-customize-input"),An),"".concat(jt,"-show-search"),ur)),Ui=ee.createElement(nt,{ref:hn,disabled:vn,prefixCls:jt,visible:oi,popupElement:ka,animation:Fn,transitionName:ri,dropdownStyle:St,dropdownClassName:Lt,direction:kr,dropdownMatchSelectWidth:Mt,dropdownRender:Nt,dropdownAlign:Xt,placement:Rt,builtinPlacements:Jt,getPopupContainer:rr,empty:$t,getTriggerDOMNode:function(In){return sn.current||In},onPopupVisibleChange:ao,onPopupMouseEnter:io},Rn?ee.cloneElement(Rn,{ref:Qn}):ee.createElement(Ne,(0,Je.Z)({},Ct,{domRef:sn,prefixCls:jt,inputElement:An,ref:un,id:Gt,prefix:on,showSearch:ur,autoClearSearchValue:Gn,mode:Fr,activeDescendantId:Vn,tagRender:fr,values:xr,open:ai,onToggleOpen:en,activeValue:Hn,searchValue:Jr,onSearch:ei,onSearchSubmit:Hi,onRemove:Vi,tokenWithEnter:xn,onInputBlur:$i}))),di;return Rn?di=Ui:di=ee.createElement("div",(0,Je.Z)({className:Ta},dr,{ref:qr,onMouseDown:ma,onKeyDown:ni,onKeyUp:sa,onFocus:ro,onBlur:Ya}),ee.createElement(Ie,{visible:Zr&&!ai,values:xr}),Ui,Ba,oo&&Fa),ee.createElement(me.Provider,{value:La},di)}),ht=bt,kt=function(){return null};kt.isSelectOptGroup=!0;var Tt=kt,Pt=function(){return null};Pt.isSelectOption=!0;var Vt=Pt,vr=Ve(80547),Yt=Ve(2738),Cr=Ve(48911);function jr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Pr=["disabled","title","children","style","className"];function Mr(Ct){return typeof Ct=="string"||typeof Ct=="number"}var Xr=function(Dt,nr){var Gt=fe(),jt=Gt.prefixCls,tr=Gt.id,hr=Gt.open,fr=Gt.multiple,kr=Gt.mode,sr=Gt.searchValue,xr=Gt.toggleOpen,ar=Gt.notFoundContent,$t=Gt.onPopupScroll,lr=ee.useContext(Qe),br=lr.maxCount,Rr=lr.flattenOptions,Fr=lr.onActiveValue,vn=lr.defaultActiveFirstOption,On=lr.onSelect,zr=lr.menuItemSelectedIcon,Er=lr.rawValues,Ur=lr.fieldNames,wr=lr.virtual,jn=lr.direction,Hn=lr.listHeight,Ln=lr.listItemHeight,Vn=lr.optionRender,Yn="".concat(jt,"-item"),Gn=(0,vr.Z)(function(){return Rr},[hr,Rr],function(Qt,Ot){return Ot[0]&&Qt[1]!==Ot[1]}),_n=ee.useRef(null),Jn=ee.useMemo(function(){return fr&&We(br)&&(Er==null?void 0:Er.size)>=br},[fr,br,Er==null?void 0:Er.size]),Xn=function(Ot){Ot.preventDefault()},Ir=function(Ot){var Bt;(Bt=_n.current)===null||Bt===void 0||Bt.scrollTo(typeof Ot=="number"?{index:Ot}:Ot)},on=ee.useCallback(function(Qt){return kr==="combobox"?!1:Er.has(Qt)},[kr,(0,wt.Z)(Er).toString(),Er.size]),Tn=function(Ot){for(var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ht=Gn.length,zt=0;zt<Ht;zt+=1){var qt=(Ot+zt*Bt+Ht)%Ht,mr=Gn[qt]||{},er=mr.group,Ft=mr.data;if(!er&&!(Ft!=null&&Ft.disabled)&&(on(Ft.value)||!Jn))return qt}return-1},Bn=ee.useState(function(){return Tn(0)}),Mn=(0,ve.Z)(Bn,2),Fn=Mn[0],ri=Mn[1],St=function(Ot){var Bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ri(Ot);var Ht={source:Bt?"keyboard":"mouse"},zt=Gn[Ot];if(!zt){Fr(null,-1,Ht);return}Fr(zt.value,Ot,Ht)};(0,ee.useEffect)(function(){St(vn!==!1?Tn(0):-1)},[Gn.length,sr]);var Lt=ee.useCallback(function(Qt){return kr==="combobox"?String(Qt).toLowerCase()===sr.toLowerCase():Er.has(Qt)},[kr,sr,(0,wt.Z)(Er).toString(),Er.size]);(0,ee.useEffect)(function(){var Qt=setTimeout(function(){if(!fr&&hr&&Er.size===1){var Bt=Array.from(Er)[0],Ht=Gn.findIndex(function(zt){var qt=zt.data;return sr?String(qt.value).startsWith(sr):qt.value===Bt});Ht!==-1&&(St(Ht),Ir(Ht))}});if(hr){var Ot;(Ot=_n.current)===null||Ot===void 0||Ot.scrollTo(void 0)}return function(){return clearTimeout(Qt)}},[hr,sr]);var Mt=function(Ot){Ot!==void 0&&On(Ot,{selected:!Er.has(Ot)}),fr||xr(!1)};if(ee.useImperativeHandle(nr,function(){return{onKeyDown:function(Ot){var Bt=Ot.which,Ht=Ot.ctrlKey;switch(Bt){case Pe.Z.N:case Pe.Z.P:case Pe.Z.UP:case Pe.Z.DOWN:{var zt=0;if(Bt===Pe.Z.UP?zt=-1:Bt===Pe.Z.DOWN?zt=1:jr()&&Ht&&(Bt===Pe.Z.N?zt=1:Bt===Pe.Z.P&&(zt=-1)),zt!==0){var qt=Tn(Fn+zt,zt);Ir(qt),St(qt,!0)}break}case Pe.Z.TAB:case Pe.Z.ENTER:{var mr,er=Gn[Fn];er&&!(er!=null&&(mr=er.data)!==null&&mr!==void 0&&mr.disabled)&&!Jn?Mt(er.value):Mt(void 0),hr&&Ot.preventDefault();break}case Pe.Z.ESC:xr(!1),hr&&Ot.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Ot){Ir(Ot)}}}),Gn.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(tr,"_list"),className:"".concat(Yn,"-empty"),onMouseDown:Xn},ar);var Nt=Object.keys(Ur).map(function(Qt){return Ur[Qt]}),Xt=function(Ot){return Ot.label};function Rt(Qt,Ot){var Bt=Qt.group;return{role:Bt?"presentation":"option",id:"".concat(tr,"_list_").concat(Ot)}}var Jt=function(Ot){var Bt=Gn[Ot];if(!Bt)return null;var Ht=Bt.data||{},zt=Ht.value,qt=Bt.group,mr=(0,de.Z)(Ht,!0),er=Xt(Bt);return Bt?ee.createElement("div",(0,Je.Z)({"aria-label":typeof er=="string"&&!qt?er:null},mr,{key:Ot},Rt(Bt,Ot),{"aria-selected":Lt(zt)}),zt):null},rr={role:"listbox",id:"".concat(tr,"_list")};return ee.createElement(ee.Fragment,null,wr&&ee.createElement("div",(0,Je.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),Jt(Fn-1),Jt(Fn),Jt(Fn+1)),ee.createElement(Cr.Z,{itemKey:"key",ref:_n,data:Gn,height:Hn,itemHeight:Ln,fullHeight:!1,onMouseDown:Xn,onScroll:$t,virtual:wr,direction:jn,innerProps:wr?null:rr},function(Qt,Ot){var Bt=Qt.group,Ht=Qt.groupOption,zt=Qt.data,qt=Qt.label,mr=Qt.value,er=zt.key;if(Bt){var Ft,ur=(Ft=zt.title)!==null&&Ft!==void 0?Ft:Mr(qt)?qt.toString():void 0;return ee.createElement("div",{className:E()(Yn,"".concat(Yn,"-group"),zt.className),title:ur},qt!==void 0?qt:er)}var dr=zt.disabled,Tr=zt.title,Vr=zt.children,_r=zt.style,ln=zt.className,qr=(0,x.Z)(zt,Pr),sn=(0,Yt.Z)(qr,Nt),hn=on(mr),un=dr||!hn&&Jn,Pn="".concat(Yn,"-option"),yn=E()(Yn,Pn,ln,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Pn,"-grouped"),Ht),"".concat(Pn,"-active"),Fn===Ot&&!un),"".concat(Pn,"-disabled"),un),"".concat(Pn,"-selected"),hn)),wn=Xt(Qt),nn=!zr||typeof zr=="function"||hn,Zr=typeof wn=="number"?wn:wn||mr,tn=Mr(Zr)?Zr.toString():void 0;return Tr!==void 0&&(tn=Tr),ee.createElement("div",(0,Je.Z)({},(0,de.Z)(sn),wr?{}:Rt(Qt,Ot),{"aria-selected":Lt(mr),className:yn,title:tn,onMouseMove:function(){Fn===Ot||un||St(Ot)},onClick:function(){un||Mt(mr)},style:_r}),ee.createElement("div",{className:"".concat(Pn,"-content")},typeof Vn=="function"?Vn(Qt,{index:Ot}):Zr),ee.isValidElement(zr)||hn,nn&&ee.createElement(ce,{className:"".concat(Yn,"-option-state"),customizeIcon:zr,customizeIconProps:{value:mr,disabled:un,isSelected:hn}},hn?"\u2713":null))}))},mn=ee.forwardRef(Xr),cn=mn,Yr=function(Ct,Dt){var nr=ee.useRef({values:new Map,options:new Map}),Gt=ee.useMemo(function(){var tr=nr.current,hr=tr.values,fr=tr.options,kr=Ct.map(function(ar){if(ar.label===void 0){var $t;return(0,we.Z)((0,we.Z)({},ar),{},{label:($t=hr.get(ar.value))===null||$t===void 0?void 0:$t.label})}return ar}),sr=new Map,xr=new Map;return kr.forEach(function(ar){sr.set(ar.value,ar),xr.set(ar.value,Dt.get(ar.value)||fr.get(ar.value))}),nr.current.values=sr,nr.current.options=xr,kr},[Ct,Dt]),jt=ee.useCallback(function(tr){return Dt.get(tr)||nr.current.options.get(tr)},[Dt]);return[Gt,jt]};function kn(Ct,Dt){return Xe(Ct).join("").toUpperCase().includes(Dt)}var En=function(Ct,Dt,nr,Gt,jt){return ee.useMemo(function(){if(!nr||Gt===!1)return Ct;var tr=Dt.options,hr=Dt.label,fr=Dt.value,kr=[],sr=typeof Gt=="function",xr=nr.toUpperCase(),ar=sr?Gt:function(lr,br){return jt?kn(br[jt],xr):br[tr]?kn(br[hr!=="children"?hr:"label"],xr):kn(br[fr],xr)},$t=sr?function(lr){return xe(lr)}:function(lr){return lr};return Ct.forEach(function(lr){if(lr[tr]){var br=ar(nr,$t(lr));if(br)kr.push(lr);else{var Rr=lr[tr].filter(function(Fr){return ar(nr,$t(Fr))});Rr.length&&kr.push((0,we.Z)((0,we.Z)({},lr),{},(0,y.Z)({},tr,Rr)))}return}ar(nr,$t(lr))&&kr.push(lr)}),kr},[Ct,Gt,jt,nr,Dt])},Dr=Ve(6551),Ar=Ve(11592),fn=["children","value"],or=["children"];function Zt(Ct){var Dt=Ct,nr=Dt.key,Gt=Dt.props,jt=Gt.children,tr=Gt.value,hr=(0,x.Z)(Gt,fn);return(0,we.Z)({key:nr,value:tr!==void 0?tr:nr,children:jt},hr)}function ir(Ct){var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ar.Z)(Ct).map(function(nr,Gt){if(!ee.isValidElement(nr)||!nr.type)return null;var jt=nr,tr=jt.type.isSelectOptGroup,hr=jt.key,fr=jt.props,kr=fr.children,sr=(0,x.Z)(fr,or);return Dt||!tr?Zt(nr):(0,we.Z)((0,we.Z)({key:"__RC_SELECT_GRP__".concat(hr===null?Gt:hr,"__"),label:hr},sr),{},{options:ir(kr)})}).filter(function(nr){return nr})}var Nr=function(Dt,nr,Gt,jt,tr){return ee.useMemo(function(){var hr=Dt,fr=!Dt;fr&&(hr=ir(nr));var kr=new Map,sr=new Map,xr=function(lr,br,Rr){Rr&&typeof Rr=="string"&&lr.set(br[Rr],br)},ar=function $t(lr){for(var br=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Rr=0;Rr<lr.length;Rr+=1){var Fr=lr[Rr];!Fr[Gt.options]||br?(kr.set(Fr[Gt.value],Fr),xr(sr,Fr,Gt.label),xr(sr,Fr,jt),xr(sr,Fr,tr)):$t(Fr[Gt.options],!0)}};return ar(hr),{options:hr,valueOptions:kr,labelOptions:sr}},[Dt,nr,Gt,jt,tr])},gr=Nr;function Hr(Ct){var Dt=ee.useRef();Dt.current=Ct;var nr=ee.useCallback(function(){return Dt.current.apply(Dt,arguments)},[]);return nr}function Qr(Ct){var Dt=Ct.mode,nr=Ct.options,Gt=Ct.children,jt=Ct.backfill,tr=Ct.allowClear,hr=Ct.placeholder,fr=Ct.getInputElement,kr=Ct.showSearch,sr=Ct.onSearch,xr=Ct.defaultOpen,ar=Ct.autoFocus,$t=Ct.labelInValue,lr=Ct.value,br=Ct.inputValue,Rr=Ct.optionLabelProp,Fr=isMultiple(Dt),vn=kr!==void 0?kr:Fr||Dt==="combobox",On=nr||convertChildrenToData(Gt);if(warning(Dt!=="tags"||On.every(function(wr){return!wr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Dt==="tags"||Dt==="combobox"){var zr=On.some(function(wr){return wr.options?wr.options.some(function(jn){return typeof("value"in jn?jn.value:jn.key)=="number"}):typeof("value"in wr?wr.value:wr.key)=="number"});warning(!zr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Dt!=="combobox"||!Rr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Dt==="combobox"||!jt,"`backfill` only works with `combobox` mode."),warning(Dt==="combobox"||!fr,"`getInputElement` only work with `combobox` mode."),noteOnce(Dt!=="combobox"||!fr||!tr||!hr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),sr&&!vn&&Dt!=="combobox"&&Dt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!xr||ar,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),lr!=null){var Er=toArray(lr);warning(!$t||Er.every(function(wr){return _typeof(wr)==="object"&&("key"in wr||"value"in wr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Fr||Array.isArray(lr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Gt){var Ur=null;toNodeArray(Gt).some(function(wr){if(!React.isValidElement(wr)||!wr.type)return!1;var jn=wr,Hn=jn.type;if(Hn.isSelectOption)return!1;if(Hn.isSelectOptGroup){var Ln=toNodeArray(wr.props.children).every(function(Vn){return!React.isValidElement(Vn)||!wr.type||Vn.type.isSelectOption?!0:(Ur=Vn.type,!1)});return!Ln}return Ur=Hn,!0}),Ur&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ur.displayName||Ur.name||Ur,"`.")),warning(br===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function rn(Ct,Dt){if(Ct){var nr=function Gt(jt){for(var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hr=0;hr<jt.length;hr++){var fr=jt[hr];if(fr[Dt==null?void 0:Dt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!tr&&Array.isArray(fr[Dt==null?void 0:Dt.options])&&Gt(fr[Dt==null?void 0:Dt.options],!0))break}};nr(Ct)}}var Kr=null,Wr=["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"],dn=["inputValue"];function pr(Ct){return!Ct||(0,z.Z)(Ct)!=="object"}var Wt=ee.forwardRef(function(Ct,Dt){var nr=Ct.id,Gt=Ct.mode,jt=Ct.prefixCls,tr=jt===void 0?"rc-select":jt,hr=Ct.backfill,fr=Ct.fieldNames,kr=Ct.inputValue,sr=Ct.searchValue,xr=Ct.onSearch,ar=Ct.autoClearSearchValue,$t=ar===void 0?!0:ar,lr=Ct.onSelect,br=Ct.onDeselect,Rr=Ct.dropdownMatchSelectWidth,Fr=Rr===void 0?!0:Rr,vn=Ct.filterOption,On=Ct.filterSort,zr=Ct.optionFilterProp,Er=Ct.optionLabelProp,Ur=Ct.options,wr=Ct.optionRender,jn=Ct.children,Hn=Ct.defaultActiveFirstOption,Ln=Ct.menuItemSelectedIcon,Vn=Ct.virtual,Yn=Ct.direction,Gn=Ct.listHeight,_n=Gn===void 0?200:Gn,Jn=Ct.listItemHeight,Xn=Jn===void 0?20:Jn,Ir=Ct.labelRender,on=Ct.value,Tn=Ct.defaultValue,Bn=Ct.labelInValue,Mn=Ct.onChange,Fn=Ct.maxCount,ri=(0,x.Z)(Ct,Wr),St=(0,Dr.ZP)(nr),Lt=xt(Gt),Mt=!!(!Ur&&jn),Nt=ee.useMemo(function(){return vn===void 0&&Gt==="combobox"?!1:vn},[vn,Gt]),Xt=ee.useMemo(function(){return at(fr,Mt)},[JSON.stringify(fr),Mt]),Rt=(0,oe.Z)("",{value:sr!==void 0?sr:kr,postState:function(xn){return xn||""}}),Jt=(0,ve.Z)(Rt,2),rr=Jt[0],Qt=Jt[1],Ot=gr(Ur,jn,Xt,zr,Er),Bt=Ot.valueOptions,Ht=Ot.labelOptions,zt=Ot.options,qt=ee.useCallback(function(en){var xn=Xe(en);return xn.map(function(Sn){var Cn,zn,ei,Hi,fi;if(pr(Sn))Cn=Sn;else{var ci;ei=Sn.key,zn=Sn.label,Cn=(ci=Sn.value)!==null&&ci!==void 0?ci:ei}var Nn=Bt.get(Cn);if(Nn){var bi;if(zn===void 0&&(zn=Nn==null?void 0:Nn[Er||Xt.label]),ei===void 0&&(ei=(bi=Nn==null?void 0:Nn.key)!==null&&bi!==void 0?bi:Cn),Hi=Nn==null?void 0:Nn.disabled,fi=Nn==null?void 0:Nn.title,0)var Ki}return{label:zn,value:Cn,key:ei,disabled:Hi,title:fi}})},[Xt,Er,Bt]),mr=(0,oe.Z)(Tn,{value:on}),er=(0,ve.Z)(mr,2),Ft=er[0],ur=er[1],dr=ee.useMemo(function(){var en,xn=Lt&&Ft===null?[]:Ft,Sn=qt(xn);return Gt==="combobox"&&Ue((en=Sn[0])===null||en===void 0?void 0:en.value)?[]:Sn},[Ft,qt,Gt,Lt]),Tr=Yr(dr,Bt),Vr=(0,ve.Z)(Tr,2),_r=Vr[0],ln=Vr[1],qr=ee.useMemo(function(){if(!Gt&&_r.length===1){var en=_r[0];if(en.value===null&&(en.label===null||en.label===void 0))return[]}return _r.map(function(xn){var Sn;return(0,we.Z)((0,we.Z)({},xn),{},{label:(Sn=typeof Ir=="function"?Ir(xn):xn.label)!==null&&Sn!==void 0?Sn:xn.value})})},[Gt,_r,Ir]),sn=ee.useMemo(function(){return new Set(_r.map(function(en){return en.value}))},[_r]);ee.useEffect(function(){if(Gt==="combobox"){var en,xn=(en=_r[0])===null||en===void 0?void 0:en.value;Qt(Le(xn)?String(xn):"")}},[_r]);var hn=Hr(function(en,xn){var Sn=xn!=null?xn:en;return(0,y.Z)((0,y.Z)({},Xt.value,en),Xt.label,Sn)}),un=ee.useMemo(function(){if(Gt!=="tags")return zt;var en=(0,wt.Z)(zt),xn=function(Cn){return Bt.has(Cn)};return(0,wt.Z)(_r).sort(function(Sn,Cn){return Sn.value<Cn.value?-1:1}).forEach(function(Sn){var Cn=Sn.value;xn(Cn)||en.push(hn(Cn,Sn.label))}),en},[hn,zt,Bt,_r,Gt]),Pn=En(un,Xt,rr,Nt,zr),yn=ee.useMemo(function(){return Gt!=="tags"||!rr||Pn.some(function(en){return en[zr||"value"]===rr})||Pn.some(function(en){return en[Xt.value]===rr})?Pn:[hn(rr)].concat((0,wt.Z)(Pn))},[hn,zr,Gt,Pn,rr,Xt]),wn=function en(xn){var Sn=(0,wt.Z)(xn).sort(function(Cn,zn){return On(Cn,zn,{searchValue:rr})});return Sn.map(function(Cn){return Array.isArray(Cn.options)?(0,we.Z)((0,we.Z)({},Cn),{},{options:Cn.options.length>0?en(Cn.options):Cn.options}):Cn})},nn=ee.useMemo(function(){return On?wn(yn):yn},[yn,On,rr]),Zr=ee.useMemo(function(){return Re(nn,{fieldNames:Xt,childrenAsData:Mt})},[nn,Xt,Mt]),tn=function(xn){var Sn=qt(xn);if(ur(Sn),Mn&&(Sn.length!==_r.length||Sn.some(function(ei,Hi){var fi;return((fi=_r[Hi])===null||fi===void 0?void 0:fi.value)!==(ei==null?void 0:ei.value)}))){var Cn=Bn?Sn:Sn.map(function(ei){return ei.value}),zn=Sn.map(function(ei){return xe(ln(ei.value))});Mn(Lt?Cn:Cn[0],Lt?zn:zn[0])}},pn=ee.useState(null),Jr=(0,ve.Z)(pn,2),An=Jr[0],Rn=Jr[1],Qn=ee.useState(0),Di=(0,ve.Z)(Qn,2),Si=Di[0],yi=Di[1],ji=Hn!==void 0?Hn:Gt!=="combobox",qn=ee.useCallback(function(en,xn){var Sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Cn=Sn.source,zn=Cn===void 0?"keyboard":Cn;yi(xn),hr&&Gt==="combobox"&&en!==null&&zn==="keyboard"&&Rn(String(en))},[hr,Gt]),$n=function(xn,Sn,Cn){var zn=function(){var Vi,$i=ln(xn);return[Bn?{label:$i==null?void 0:$i[Xt.label],value:xn,key:(Vi=$i==null?void 0:$i.key)!==null&&Vi!==void 0?Vi:xn}:xn,xe($i)]};if(Sn&&lr){var ei=zn(),Hi=(0,ve.Z)(ei,2),fi=Hi[0],ci=Hi[1];lr(fi,ci)}else if(!Sn&&br&&Cn!=="clear"){var Nn=zn(),bi=(0,ve.Z)(Nn,2),Ki=bi[0],ni=bi[1];br(Ki,ni)}},ti=Hr(function(en,xn){var Sn,Cn=Lt?xn.selected:!0;Cn?Sn=Lt?[].concat((0,wt.Z)(_r),[en]):[en]:Sn=_r.filter(function(zn){return zn.value!==en}),tn(Sn),$n(en,Cn),Gt==="combobox"?Rn(""):(!xt||$t)&&(Qt(""),Rn(""))}),ki=function(xn,Sn){tn(xn);var Cn=Sn.type,zn=Sn.values;(Cn==="remove"||Cn==="clear")&&zn.forEach(function(ei){$n(ei.value,!1,Cn)})},ai=function(xn,Sn){if(Qt(xn),Rn(null),Sn.source==="submit"){var Cn=(xn||"").trim();if(Cn){var zn=Array.from(new Set([].concat((0,wt.Z)(sn),[Cn])));tn(zn),$n(Cn,!0),Qt("")}return}Sn.source!=="blur"&&(Gt==="combobox"&&tn(xn),xr==null||xr(xn))},li=function(xn){var Sn=xn;Gt!=="tags"&&(Sn=xn.map(function(zn){var ei=Ht.get(zn);return ei==null?void 0:ei.value}).filter(function(zn){return zn!==void 0}));var Cn=Array.from(new Set([].concat((0,wt.Z)(sn),(0,wt.Z)(Sn))));tn(Cn),Cn.forEach(function(zn){$n(zn,!0)})},oi=ee.useMemo(function(){var en=Vn!==!1&&Fr!==!1;return(0,we.Z)((0,we.Z)({},Ot),{},{flattenOptions:Zr,onActiveValue:qn,defaultActiveFirstOption:ji,onSelect:ti,menuItemSelectedIcon:Ln,rawValues:sn,fieldNames:Xt,virtual:en,direction:Yn,listHeight:_n,listItemHeight:Xn,childrenAsData:Mt,maxCount:Fn,optionRender:wr})},[Fn,Ot,Zr,qn,ji,ti,Ln,sn,Xt,Vn,Fr,Yn,_n,Xn,Mt,wr]);return ee.createElement(Qe.Provider,{value:oi},ee.createElement(ht,(0,Je.Z)({},ri,{id:St,prefixCls:tr,ref:Dt,omitDomProps:dn,mode:Gt,displayValues:qr,onDisplayValuesChange:ki,direction:Yn,searchValue:rr,onSearch:ai,autoClearSearchValue:$t,onSearchSplit:li,dropdownMatchSelectWidth:Fr,OptionList:cn,emptyOptions:!Zr.length,activeValue:An,activeDescendantId:"".concat(St,"_list_").concat(Si)})))}),Sr=Wt;Sr.Option=Vt,Sr.OptGroup=Tt;var Gr=Sr,gn=Gr},63158:function(Kt,_t,Ve){"use strict";var Je=Ve(54476),wt=Ve(20068),y=Ve(42978),we=Ve(75931),ve=Ve(59301),x=Ve(92310),z=Ve.n(x),oe=Ve(18929),ie=Ve(10228),ee=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],se=ve.forwardRef(function(E,te){var re,le=E.prefixCls,ue=le===void 0?"rc-switch":le,ce=E.className,he=E.checked,me=E.defaultChecked,fe=E.disabled,be=E.loadingIcon,Ce=E.checkedChildren,Te=E.unCheckedChildren,Pe=E.onClick,ke=E.onChange,de=E.onKeyDown,ge=(0,we.Z)(E,ee),Se=(0,oe.Z)(!1,{value:he,defaultValue:me}),De=(0,y.Z)(Se,2),_e=De[0],Ee=De[1];function Oe(st,Le){var Ue=_e;return fe||(Ue=st,Ee(Ue),ke==null||ke(Ue,Le)),Ue}function He(st){st.which===ie.Z.LEFT?Oe(!1,st):st.which===ie.Z.RIGHT&&Oe(!0,st),de==null||de(st)}function Xe(st){var Le=Oe(!_e,st);Pe==null||Pe(Le,st)}var et=z()(ue,ce,(re={},(0,wt.Z)(re,"".concat(ue,"-checked"),_e),(0,wt.Z)(re,"".concat(ue,"-disabled"),fe),re));return ve.createElement("button",(0,Je.Z)({},ge,{type:"button",role:"switch","aria-checked":_e,disabled:fe,className:et,ref:te,onKeyDown:He,onClick:Xe}),be,ve.createElement("span",{className:"".concat(ue,"-inner")},ve.createElement("span",{className:"".concat(ue,"-inner-checked")},Ce),ve.createElement("span",{className:"".concat(ue,"-inner-unchecked")},Te)))});se.displayName="Switch",_t.Z=se},86351:function(Kt,_t,Ve){"use strict";Ve.d(_t,{R:function(){return wt},w:function(){return Je}});var Je={},wt="rc-table-internal-hook"},97347:function(Kt,_t,Ve){"use strict";Ve.d(_t,{L:function(){return ue},Z:function(){return be}});var Je=Ve(42978),wt=Ve(20068),y=Ve(94480),we=Ve(76190),ve=Ve(33885),x=Ve(75931),z=Ve(11592),oe=Ve(48736),ie=Ve(59301),ee=Ve(86351),se=Ve(54451);function E(Ce){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Te=="number"?Te:Te.endsWith("%")?Ce*parseFloat(Te)/100:null}function te(Ce,Te,Pe){return ie.useMemo(function(){if(Te&&Te>0){var ke=0,de=0;Ce.forEach(function(Xe){var et=E(Te,Xe.width);et?ke+=et:de+=1});var ge=Math.max(Te,Pe),Se=Math.max(ge-ke,de),De=de,_e=Se/de,Ee=0,Oe=Ce.map(function(Xe){var et=(0,ve.Z)({},Xe),st=E(Te,et.width);if(st)et.width=st;else{var Le=Math.floor(_e);et.width=De===1?Se:Le,Se-=Le,De-=1}return Ee+=et.width,et});if(Ee<ge){var He=ge/Ee;Se=ge,Oe.forEach(function(Xe,et){var st=Math.floor(Xe.width*He);Xe.width=et===Oe.length-1?Se:st,Se-=st})}return[Oe,Math.max(Ee,ge)]}return[Ce,Te]},[Ce,Te,Pe])}var re=["children"],le=["fixed"];function ue(Ce){return(0,z.Z)(Ce).filter(function(Te){return ie.isValidElement(Te)}).map(function(Te){var Pe=Te.key,ke=Te.props,de=ke.children,ge=(0,x.Z)(ke,re),Se=(0,ve.Z)({key:Pe},ge);return de&&(Se.children=ue(de)),Se})}function ce(Ce){return Ce.filter(function(Te){return Te&&(0,we.Z)(Te)==="object"&&!Te.hidden}).map(function(Te){var Pe=Te.children;return Pe&&Pe.length>0?(0,ve.Z)((0,ve.Z)({},Te),{},{children:ce(Pe)}):Te})}function he(Ce){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Ce.filter(function(Pe){return Pe&&(0,we.Z)(Pe)==="object"}).reduce(function(Pe,ke,de){var ge=ke.fixed,Se=ge===!0?"left":ge,De="".concat(Te,"-").concat(de),_e=ke.children;return _e&&_e.length>0?[].concat((0,y.Z)(Pe),(0,y.Z)(he(_e,De).map(function(Ee){return(0,ve.Z)({fixed:Se},Ee)}))):[].concat((0,y.Z)(Pe),[(0,ve.Z)((0,ve.Z)({key:De},ke),{},{fixed:Se})])},[])}function me(Ce){return Ce.map(function(Te){var Pe=Te.fixed,ke=(0,x.Z)(Te,le),de=Pe;return Pe==="left"?de="right":Pe==="right"&&(de="left"),(0,ve.Z)({fixed:de},ke)})}function fe(Ce,Te){var Pe=Ce.prefixCls,ke=Ce.columns,de=Ce.children,ge=Ce.expandable,Se=Ce.expandedKeys,De=Ce.columnTitle,_e=Ce.getRowKey,Ee=Ce.onTriggerExpand,Oe=Ce.expandIcon,He=Ce.rowExpandable,Xe=Ce.expandIconColumnIndex,et=Ce.direction,st=Ce.expandRowByClick,Le=Ce.columnWidth,Ue=Ce.fixed,rt=Ce.scrollWidth,ot=Ce.clientWidth,it=ie.useMemo(function(){var Ne=ke||ue(de)||[];return ce(Ne.slice())},[ke,de]),Ye=ie.useMemo(function(){if(ge){var Ne=it.slice();if(!Ne.includes(ee.w)){var ze=Xe||0;ze>=0&&(ze||Ue==="left"||!Ue)&&Ne.splice(ze,0,ee.w),Ue==="right"&&Ne.splice(it.length,0,ee.w)}var Me=Ne.indexOf(ee.w);Ne=Ne.filter(function(nt,Ae){return nt!==ee.w||Ae===Me});var Ge=it[Me],ct;Ue?ct=Ue:ct=Ge?Ge.fixed:null;var mt=(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)({},se.v,{className:"".concat(Pe,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",De),"fixed",ct),"className","".concat(Pe,"-row-expand-icon-cell")),"width",Le),"render",function(Ae,je,We){var at=_e(je,We),Re=Se.has(at),xe=He?He(je):!0,ye=Oe({prefixCls:Pe,expanded:Re,expandable:xe,record:je,onExpand:Ee});return st?ie.createElement("span",{onClick:function(Qe){return Qe.stopPropagation()}},ye):ye});return Ne.map(function(nt){return nt===ee.w?mt:nt})}return it.filter(function(nt){return nt!==ee.w})},[ge,it,_e,Se,Oe,et]),$e=ie.useMemo(function(){var Ne=Ye;return Te&&(Ne=Te(Ne)),Ne.length||(Ne=[{render:function(){return null}}]),Ne},[Te,Ye,et]),Ke=ie.useMemo(function(){return et==="rtl"?me(he($e)):he($e)},[$e,et,rt]),ft=ie.useMemo(function(){for(var Ne=-1,ze=Ke.length-1;ze>=0;ze-=1){var Me=Ke[ze].fixed;if(Me==="left"||Me===!0){Ne=ze;break}}if(Ne>=0)for(var Ge=0;Ge<=Ne;Ge+=1){var ct=Ke[Ge].fixed;if(ct!=="left"&&ct!==!0)return!0}var mt=Ke.findIndex(function(je){var We=je.fixed;return We==="right"});if(mt>=0)for(var nt=mt;nt<Ke.length;nt+=1){var Ae=Ke[nt].fixed;if(Ae!=="right")return!0}return!1},[Ke]),tt=te(Ke,rt,ot),ut=(0,Je.Z)(tt,2),lt=ut[0],Ze=ut[1];return[$e,lt,Ze,ft]}var be=fe},4030:function(Kt,_t,Ve){"use strict";Ve.d(_t,{w2:function(){return Je.w},vP:function(){return Mr.v},RQ:function(){return Je.R},ER:function(){return at},Q$:function(){return vn},TN:function(){return Mn}});var Je=Ve(86351),wt=Ve(42978),y=Ve(6089),we=Ve(34280),ve=Ve(13697),x=Ve(59301),z=Ve(4676);function oe(St){var Lt=x.createContext(void 0),Mt=function(Xt){var Rt=Xt.value,Jt=Xt.children,rr=x.useRef(Rt);rr.current=Rt;var Qt=x.useState(function(){return{getValue:function(){return rr.current},listeners:new Set}}),Ot=(0,wt.Z)(Qt,1),Bt=Ot[0];return(0,we.Z)(function(){(0,z.unstable_batchedUpdates)(function(){Bt.listeners.forEach(function(Ht){Ht(Rt)})})},[Rt]),x.createElement(Lt.Provider,{value:Bt},Jt)};return{Context:Lt,Provider:Mt,defaultValue:St}}function ie(St,Lt){var Mt=(0,y.Z)(typeof Lt=="function"?Lt:function(Ht){if(Lt===void 0)return Ht;if(!Array.isArray(Lt))return Ht[Lt];var zt={};return Lt.forEach(function(qt){zt[qt]=Ht[qt]}),zt}),Nt=x.useContext(St==null?void 0:St.Context),Xt=Nt||{},Rt=Xt.listeners,Jt=Xt.getValue,rr=x.useRef();rr.current=Mt(Nt?Jt():St==null?void 0:St.defaultValue);var Qt=x.useState({}),Ot=(0,wt.Z)(Qt,2),Bt=Ot[1];return(0,we.Z)(function(){if(!Nt)return;function Ht(zt){var qt=Mt(zt);(0,ve.Z)(rr.current,qt,!0)||Bt({})}return Rt.add(Ht),function(){Rt.delete(Ht)}},[Nt]),rr.current}var ee=Ve(54476),se=Ve(8654);function E(){var St=x.createContext(null);function Lt(){return x.useContext(St)}function Mt(Xt,Rt){var Jt=(0,se.Yr)(Xt),rr=function(Ot,Bt){var Ht=Jt?{ref:Bt}:{},zt=x.useRef(0),qt=x.useRef(Ot),mr=Lt();return mr!==null?x.createElement(Xt,(0,ee.Z)({},Ot,Ht)):((!Rt||Rt(qt.current,Ot))&&(zt.current+=1),qt.current=Ot,x.createElement(St.Provider,{value:zt.current},x.createElement(Xt,(0,ee.Z)({},Ot,Ht))))};return Jt?x.forwardRef(rr):rr}function Nt(Xt,Rt){var Jt=(0,se.Yr)(Xt),rr=function(Ot,Bt){var Ht=Jt?{ref:Bt}:{};return Lt(),x.createElement(Xt,(0,ee.Z)({},Ot,Ht))};return Jt?x.memo(x.forwardRef(rr),Rt):x.memo(rr,Rt)}return{makeImmutable:Mt,responseImmutable:Nt,useImmutableMark:Lt}}var te=E(),re=te.makeImmutable,le=te.responseImmutable,ue=te.useImmutableMark,ce=E(),he=ce.makeImmutable,me=ce.responseImmutable,fe=ce.useImmutableMark,be=oe(),Ce=be;function Te(St,Lt){var Mt=React.useRef(0);Mt.current+=1;var Nt=React.useRef(St),Xt=[];Object.keys(St||{}).map(function(Jt){var rr;(St==null?void 0:St[Jt])!==((rr=Nt.current)===null||rr===void 0?void 0:rr[Jt])&&Xt.push(Jt)}),Nt.current=St;var Rt=React.useRef([]);return Xt.length&&(Rt.current=Xt),React.useDebugValue(Mt.current),React.useDebugValue(Rt.current.join(", ")),Lt&&console.log("".concat(Lt,":"),Mt.current,Rt.current),Mt.current}var Pe=null,ke=null,de=Ve(76190),ge=Ve(33885),Se=Ve(20068),De=Ve(92310),_e=Ve.n(De),Ee=Ve(80547),Oe=Ve(97938),He=Ve(48736),Xe=x.createContext({renderWithProps:!1}),et=Xe,st="RC_TABLE_KEY";function Le(St){return St==null?[]:Array.isArray(St)?St:[St]}function Ue(St){var Lt=[],Mt={};return St.forEach(function(Nt){for(var Xt=Nt||{},Rt=Xt.key,Jt=Xt.dataIndex,rr=Rt||Le(Jt).join("-")||st;Mt[rr];)rr="".concat(rr,"_next");Mt[rr]=!0,Lt.push(rr)}),Lt}function rt(St){return St!=null}function ot(St){return typeof St=="number"&&!Number.isNaN(St)}function it(St){return St&&(0,de.Z)(St)==="object"&&!Array.isArray(St)&&!x.isValidElement(St)}function Ye(St,Lt,Mt,Nt,Xt,Rt){var Jt=x.useContext(et),rr=fe(),Qt=(0,Ee.Z)(function(){if(rt(Nt))return[Nt];var Ot=Lt==null||Lt===""?[]:Array.isArray(Lt)?Lt:[Lt],Bt=(0,Oe.Z)(St,Ot),Ht=Bt,zt=void 0;if(Xt){var qt=Xt(Bt,St,Mt);it(qt)?(Ht=qt.children,zt=qt.props,Jt.renderWithProps=!0):Ht=qt}return[Ht,zt]},[rr,St,Nt,Lt,Xt,Mt],function(Ot,Bt){if(Rt){var Ht=(0,wt.Z)(Ot,2),zt=Ht[1],qt=(0,wt.Z)(Bt,2),mr=qt[1];return Rt(mr,zt)}return Jt.renderWithProps?!0:!(0,ve.Z)(Ot,Bt,!0)});return Qt}function $e(St,Lt,Mt,Nt){var Xt=St+Lt-1;return St<=Nt&&Xt>=Mt}function Ke(St,Lt){return ie(Ce,function(Mt){var Nt=$e(St,Lt||1,Mt.hoverStartRow,Mt.hoverEndRow);return[Nt,Mt.onHover]})}var ft=Ve(70425),tt=function(Lt){var Mt=Lt.ellipsis,Nt=Lt.rowType,Xt=Lt.children,Rt,Jt=Mt===!0?{showTitle:!0}:Mt;return Jt&&(Jt.showTitle||Nt==="header")&&(typeof Xt=="string"||typeof Xt=="number"?Rt=Xt.toString():x.isValidElement(Xt)&&typeof Xt.props.children=="string"&&(Rt=Xt.props.children)),Rt};function ut(St){var Lt,Mt,Nt,Xt,Rt,Jt,rr,Qt,Ot=St.component,Bt=St.children,Ht=St.ellipsis,zt=St.scope,qt=St.prefixCls,mr=St.className,er=St.align,Ft=St.record,ur=St.render,dr=St.dataIndex,Tr=St.renderIndex,Vr=St.shouldCellUpdate,_r=St.index,ln=St.rowType,qr=St.colSpan,sn=St.rowSpan,hn=St.fixLeft,un=St.fixRight,Pn=St.firstFixLeft,yn=St.lastFixLeft,wn=St.firstFixRight,nn=St.lastFixRight,Zr=St.appendNode,tn=St.additionalProps,pn=tn===void 0?{}:tn,Jr=St.isSticky,An="".concat(qt,"-cell"),Rn=ie(Ce,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Qn=Rn.supportSticky,Di=Rn.allColumnsFixedLeft,Si=Rn.rowHoverable,yi=Ye(Ft,dr,Tr,Bt,ur,Vr),ji=(0,wt.Z)(yi,2),qn=ji[0],$n=ji[1],ti={},ki=typeof hn=="number"&&Qn,ai=typeof un=="number"&&Qn;ki&&(ti.position="sticky",ti.left=hn),ai&&(ti.position="sticky",ti.right=un);var li=(Lt=(Mt=(Nt=$n==null?void 0:$n.colSpan)!==null&&Nt!==void 0?Nt:pn.colSpan)!==null&&Mt!==void 0?Mt:qr)!==null&&Lt!==void 0?Lt:1,oi=(Xt=(Rt=(Jt=$n==null?void 0:$n.rowSpan)!==null&&Jt!==void 0?Jt:pn.rowSpan)!==null&&Rt!==void 0?Rt:sn)!==null&&Xt!==void 0?Xt:1,en=Ke(_r,oi),xn=(0,wt.Z)(en,2),Sn=xn[0],Cn=xn[1],zn=(0,ft.zX)(function(Ki){var ni;Ft&&Cn(_r,_r+oi-1),pn==null||(ni=pn.onMouseEnter)===null||ni===void 0||ni.call(pn,Ki)}),ei=(0,ft.zX)(function(Ki){var ni;Ft&&Cn(-1,-1),pn==null||(ni=pn.onMouseLeave)===null||ni===void 0||ni.call(pn,Ki)});if(li===0||oi===0)return null;var Hi=(rr=pn.title)!==null&&rr!==void 0?rr:tt({rowType:ln,ellipsis:Ht,children:qn}),fi=_e()(An,mr,(Qt={},(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)(Qt,"".concat(An,"-fix-left"),ki&&Qn),"".concat(An,"-fix-left-first"),Pn&&Qn),"".concat(An,"-fix-left-last"),yn&&Qn),"".concat(An,"-fix-left-all"),yn&&Di&&Qn),"".concat(An,"-fix-right"),ai&&Qn),"".concat(An,"-fix-right-first"),wn&&Qn),"".concat(An,"-fix-right-last"),nn&&Qn),"".concat(An,"-ellipsis"),Ht),"".concat(An,"-with-append"),Zr),"".concat(An,"-fix-sticky"),(ki||ai)&&Jr&&Qn),(0,Se.Z)(Qt,"".concat(An,"-row-hover"),!$n&&Sn)),pn.className,$n==null?void 0:$n.className),ci={};er&&(ci.textAlign=er);var Nn=(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},$n==null?void 0:$n.style),ti),ci),pn.style),bi=qn;return(0,de.Z)(bi)==="object"&&!Array.isArray(bi)&&!x.isValidElement(bi)&&(bi=null),Ht&&(yn||wn)&&(bi=x.createElement("span",{className:"".concat(An,"-content")},bi)),x.createElement(Ot,(0,ee.Z)({},$n,pn,{className:fi,style:Nn,title:Hi,scope:zt,onMouseEnter:Si?zn:void 0,onMouseLeave:Si?ei:void 0,colSpan:li!==1?li:null,rowSpan:oi!==1?oi:null}),Zr,bi)}var lt=x.memo(ut);function Ze(St,Lt,Mt,Nt,Xt){var Rt=Mt[St]||{},Jt=Mt[Lt]||{},rr,Qt;Rt.fixed==="left"?rr=Nt.left[Xt==="rtl"?Lt:St]:Jt.fixed==="right"&&(Qt=Nt.right[Xt==="rtl"?St:Lt]);var Ot=!1,Bt=!1,Ht=!1,zt=!1,qt=Mt[Lt+1],mr=Mt[St-1],er=qt&&!qt.fixed||mr&&!mr.fixed||Mt.every(function(Vr){return Vr.fixed==="left"});if(Xt==="rtl"){if(rr!==void 0){var Ft=mr&&mr.fixed==="left";zt=!Ft&&er}else if(Qt!==void 0){var ur=qt&&qt.fixed==="right";Ht=!ur&&er}}else if(rr!==void 0){var dr=qt&&qt.fixed==="left";Ot=!dr&&er}else if(Qt!==void 0){var Tr=mr&&mr.fixed==="right";Bt=!Tr&&er}return{fixLeft:rr,fixRight:Qt,lastFixLeft:Ot,firstFixRight:Bt,lastFixRight:Ht,firstFixLeft:zt,isSticky:Nt.isSticky}}var Ne=x.createContext({}),ze=Ne;function Me(St){var Lt=St.className,Mt=St.index,Nt=St.children,Xt=St.colSpan,Rt=Xt===void 0?1:Xt,Jt=St.rowSpan,rr=St.align,Qt=ie(Ce,["prefixCls","direction"]),Ot=Qt.prefixCls,Bt=Qt.direction,Ht=x.useContext(ze),zt=Ht.scrollColumnIndex,qt=Ht.stickyOffsets,mr=Ht.flattenColumns,er=Mt+Rt-1,Ft=er+1===zt?Rt+1:Rt,ur=Ze(Mt,Mt+Ft-1,mr,qt,Bt);return x.createElement(lt,(0,ee.Z)({className:Lt,index:Mt,component:"td",prefixCls:Ot,record:null,dataIndex:null,align:rr,colSpan:Ft,rowSpan:Jt,render:function(){return Nt}},ur))}var Ge=Ve(75931),ct=["children"];function mt(St){var Lt=St.children,Mt=(0,Ge.Z)(St,ct);return x.createElement("tr",Mt,Lt)}function nt(St){var Lt=St.children;return Lt}nt.Row=mt,nt.Cell=Me;var Ae=nt;function je(St){var Lt=St.children,Mt=St.stickyOffsets,Nt=St.flattenColumns,Xt=ie(Ce,"prefixCls"),Rt=Nt.length-1,Jt=Nt[Rt],rr=x.useMemo(function(){return{stickyOffsets:Mt,flattenColumns:Nt,scrollColumnIndex:Jt!=null&&Jt.scrollbar?Rt:null}},[Jt,Nt,Rt,Mt]);return x.createElement(ze.Provider,{value:rr},x.createElement("tfoot",{className:"".concat(Xt,"-summary")},Lt))}var We=me(je),at=Ae,Re=Ve(29301),xe=Ve(24514),ye=Ve(75152),Fe=Ve(26112);function Qe(St,Lt,Mt,Nt,Xt,Rt,Jt){St.push({record:Lt,indent:Mt,index:Jt});var rr=Rt(Lt),Qt=Xt==null?void 0:Xt.has(rr);if(Lt&&Array.isArray(Lt[Nt])&&Qt)for(var Ot=0;Ot<Lt[Nt].length;Ot+=1)Qe(St,Lt[Nt][Ot],Mt+1,Nt,Xt,Rt,Ot)}function Ie(St,Lt,Mt,Nt){var Xt=x.useMemo(function(){if(Mt!=null&&Mt.size){for(var Rt=[],Jt=0;Jt<(St==null?void 0:St.length);Jt+=1){var rr=St[Jt];Qe(Rt,rr,0,Lt,Mt,Nt,Jt)}return Rt}return St==null?void 0:St.map(function(Qt,Ot){return{record:Qt,indent:0,index:Ot}})},[St,Lt,Mt,Nt]);return Xt}function vt(St,Lt,Mt,Nt){var Xt=ie(Ce,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Rt=Xt.flattenColumns,Jt=Xt.expandableType,rr=Xt.expandedKeys,Qt=Xt.childrenColumnName,Ot=Xt.onTriggerExpand,Bt=Xt.rowExpandable,Ht=Xt.onRow,zt=Xt.expandRowByClick,qt=Xt.rowClassName,mr=Jt==="nest",er=Jt==="row"&&(!Bt||Bt(St)),Ft=er||mr,ur=rr&&rr.has(Lt),dr=Qt&&St&&St[Qt],Tr=(0,ft.zX)(Ot),Vr=Ht==null?void 0:Ht(St,Mt),_r=Vr==null?void 0:Vr.onClick,ln=function(un){zt&&Ft&&Ot(St,un);for(var Pn=arguments.length,yn=new Array(Pn>1?Pn-1:0),wn=1;wn<Pn;wn++)yn[wn-1]=arguments[wn];_r==null||_r.apply(void 0,[un].concat(yn))},qr;typeof qt=="string"?qr=qt:typeof qt=="function"&&(qr=qt(St,Mt,Nt));var sn=Ue(Rt);return(0,ge.Z)((0,ge.Z)({},Xt),{},{columnsKey:sn,nestExpandable:mr,expanded:ur,hasNestChildren:dr,record:St,onTriggerExpand:Tr,rowSupportExpand:er,expandable:Ft,rowProps:(0,ge.Z)((0,ge.Z)({},Vr),{},{className:_e()(qr,Vr==null?void 0:Vr.className),onClick:ln})})}function yt(St){var Lt=St.prefixCls,Mt=St.children,Nt=St.component,Xt=St.cellComponent,Rt=St.className,Jt=St.expanded,rr=St.colSpan,Qt=St.isEmpty,Ot=ie(Ce,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Bt=Ot.scrollbarSize,Ht=Ot.fixHeader,zt=Ot.fixColumn,qt=Ot.componentWidth,mr=Ot.horizonScroll,er=Mt;return(Qt?mr&&qt:zt)&&(er=x.createElement("div",{style:{width:qt-(Ht&&!Qt?Bt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Lt,"-expanded-row-fixed")},er)),x.createElement(Nt,{className:Rt,style:{display:Jt?null:"none"}},x.createElement(lt,{component:Xt,prefixCls:Lt,colSpan:rr},er))}var xt=yt;function bt(St){var Lt=St.prefixCls,Mt=St.record,Nt=St.onExpand,Xt=St.expanded,Rt=St.expandable,Jt="".concat(Lt,"-row-expand-icon");if(!Rt)return x.createElement("span",{className:_e()(Jt,"".concat(Lt,"-row-spaced"))});var rr=function(Ot){Nt(Mt,Ot),Ot.stopPropagation()};return x.createElement("span",{className:_e()(Jt,(0,Se.Z)((0,Se.Z)({},"".concat(Lt,"-row-expanded"),Xt),"".concat(Lt,"-row-collapsed"),!Xt)),onClick:rr})}function ht(St,Lt,Mt){var Nt=[];function Xt(Rt){(Rt||[]).forEach(function(Jt,rr){Nt.push(Lt(Jt,rr)),Xt(Jt[Mt])})}return Xt(St),Nt}function kt(St,Lt,Mt,Nt){return typeof St=="string"?St:typeof St=="function"?St(Lt,Mt,Nt):""}function Tt(St,Lt,Mt,Nt,Xt){var Rt=St.record,Jt=St.prefixCls,rr=St.columnsKey,Qt=St.fixedInfoList,Ot=St.expandIconColumnIndex,Bt=St.nestExpandable,Ht=St.indentSize,zt=St.expandIcon,qt=St.expanded,mr=St.hasNestChildren,er=St.onTriggerExpand,Ft=rr[Mt],ur=Qt[Mt],dr;Mt===(Ot||0)&&Bt&&(dr=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(Ht*Nt,"px")},className:"".concat(Jt,"-row-indent indent-level-").concat(Nt)}),zt({prefixCls:Jt,expanded:qt,expandable:mr,record:Rt,onExpand:er})));var Tr;return Lt.onCell&&(Tr=Lt.onCell(Rt,Xt)),{key:Ft,fixedInfo:ur,appendCellNode:dr,additionalCellProps:Tr||{}}}function Pt(St){var Lt=St.className,Mt=St.style,Nt=St.record,Xt=St.index,Rt=St.renderIndex,Jt=St.rowKey,rr=St.indent,Qt=rr===void 0?0:rr,Ot=St.rowComponent,Bt=St.cellComponent,Ht=St.scopeCellComponent,zt=vt(Nt,Jt,Xt,Qt),qt=zt.prefixCls,mr=zt.flattenColumns,er=zt.expandedRowClassName,Ft=zt.expandedRowRender,ur=zt.rowProps,dr=zt.expanded,Tr=zt.rowSupportExpand,Vr=x.useRef(!1);Vr.current||(Vr.current=dr);var _r=kt(er,Nt,Xt,Qt),ln=x.createElement(Ot,(0,ee.Z)({},ur,{"data-row-key":Jt,className:_e()(Lt,"".concat(qt,"-row"),"".concat(qt,"-row-level-").concat(Qt),ur==null?void 0:ur.className,(0,Se.Z)({},_r,Qt>=1)),style:(0,ge.Z)((0,ge.Z)({},Mt),ur==null?void 0:ur.style)}),mr.map(function(hn,un){var Pn=hn.render,yn=hn.dataIndex,wn=hn.className,nn=Tt(zt,hn,un,Qt,Xt),Zr=nn.key,tn=nn.fixedInfo,pn=nn.appendCellNode,Jr=nn.additionalCellProps;return x.createElement(lt,(0,ee.Z)({className:wn,ellipsis:hn.ellipsis,align:hn.align,scope:hn.rowScope,component:hn.rowScope?Ht:Bt,prefixCls:qt,key:Zr,record:Nt,index:Xt,renderIndex:Rt,dataIndex:yn,render:Pn,shouldCellUpdate:hn.shouldCellUpdate},tn,{appendNode:pn,additionalProps:Jr}))})),qr;if(Tr&&(Vr.current||dr)){var sn=Ft(Nt,Xt,Qt+1,dr);qr=x.createElement(xt,{expanded:dr,className:_e()("".concat(qt,"-expanded-row"),"".concat(qt,"-expanded-row-level-").concat(Qt+1),_r),prefixCls:qt,component:Ot,cellComponent:Bt,colSpan:mr.length,isEmpty:!1},sn)}return x.createElement(x.Fragment,null,ln,qr)}var Vt=me(Pt);function vr(St){var Lt=St.columnKey,Mt=St.onColumnResize,Nt=x.useRef();return(0,we.Z)(function(){Nt.current&&Mt(Lt,Nt.current.offsetWidth)},[]),x.createElement(Re.Z,{data:Lt},x.createElement("td",{ref:Nt,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Yt=Ve(29194);function Cr(St){var Lt=St.prefixCls,Mt=St.columnsKey,Nt=St.onColumnResize,Xt=x.useRef(null);return x.createElement("tr",{"aria-hidden":"true",className:"".concat(Lt,"-measure-row"),style:{height:0,fontSize:0},ref:Xt},x.createElement(Re.Z.Collection,{onBatchResize:function(Jt){(0,Yt.Z)(Xt.current)&&Jt.forEach(function(rr){var Qt=rr.data,Ot=rr.size;Nt(Qt,Ot.offsetWidth)})}},Mt.map(function(Rt){return x.createElement(vr,{key:Rt,columnKey:Rt,onColumnResize:Nt})})))}function jr(St){var Lt=St.data,Mt=St.measureColumnWidth,Nt=ie(Ce,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Xt=Nt.prefixCls,Rt=Nt.getComponent,Jt=Nt.onColumnResize,rr=Nt.flattenColumns,Qt=Nt.getRowKey,Ot=Nt.expandedKeys,Bt=Nt.childrenColumnName,Ht=Nt.emptyNode,zt=Ie(Lt,Bt,Ot,Qt),qt=x.useRef({renderWithProps:!1}),mr=Rt(["body","wrapper"],"tbody"),er=Rt(["body","row"],"tr"),Ft=Rt(["body","cell"],"td"),ur=Rt(["body","cell"],"th"),dr;Lt.length?dr=zt.map(function(Vr,_r){var ln=Vr.record,qr=Vr.indent,sn=Vr.index,hn=Qt(ln,_r);return x.createElement(Vt,{key:hn,rowKey:hn,record:ln,index:_r,renderIndex:sn,rowComponent:er,cellComponent:Ft,scopeCellComponent:ur,indent:qr})}):dr=x.createElement(xt,{expanded:!0,className:"".concat(Xt,"-placeholder"),prefixCls:Xt,component:er,cellComponent:Ft,colSpan:rr.length,isEmpty:!0},Ht);var Tr=Ue(rr);return x.createElement(et.Provider,{value:qt.current},x.createElement(mr,{className:"".concat(Xt,"-tbody")},Mt&&x.createElement(Cr,{prefixCls:Xt,columnsKey:Tr,onColumnResize:Jt}),dr))}var Pr=me(jr),Mr=Ve(54451),Xr=["columnType"];function mn(St){for(var Lt=St.colWidths,Mt=St.columns,Nt=St.columCount,Xt=ie(Ce,["tableLayout"]),Rt=Xt.tableLayout,Jt=[],rr=Nt||Mt.length,Qt=!1,Ot=rr-1;Ot>=0;Ot-=1){var Bt=Lt[Ot],Ht=Mt&&Mt[Ot],zt=void 0,qt=void 0;if(Ht&&(zt=Ht[Mr.v],Rt==="auto"&&(qt=Ht.minWidth)),Bt||qt||zt||Qt){var mr=zt||{},er=mr.columnType,Ft=(0,Ge.Z)(mr,Xr);Jt.unshift(x.createElement("col",(0,ee.Z)({key:Ot,style:{width:Bt,minWidth:qt}},Ft))),Qt=!0}}return x.createElement("colgroup",null,Jt)}var cn=mn,Yr=Ve(94480),kn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function En(St,Lt){return(0,x.useMemo)(function(){for(var Mt=[],Nt=0;Nt<Lt;Nt+=1){var Xt=St[Nt];if(Xt!==void 0)Mt[Nt]=Xt;else return null}return Mt},[St.join("_"),Lt])}var Dr=x.forwardRef(function(St,Lt){var Mt=St.className,Nt=St.noData,Xt=St.columns,Rt=St.flattenColumns,Jt=St.colWidths,rr=St.columCount,Qt=St.stickyOffsets,Ot=St.direction,Bt=St.fixHeader,Ht=St.stickyTopOffset,zt=St.stickyBottomOffset,qt=St.stickyClassName,mr=St.onScroll,er=St.maxContentScroll,Ft=St.children,ur=(0,Ge.Z)(St,kn),dr=ie(Ce,["prefixCls","scrollbarSize","isSticky","getComponent"]),Tr=dr.prefixCls,Vr=dr.scrollbarSize,_r=dr.isSticky,ln=dr.getComponent,qr=ln(["header","table"],"table"),sn=_r&&!Bt?0:Vr,hn=x.useRef(null),un=x.useCallback(function(Jr){(0,se.mH)(Lt,Jr),(0,se.mH)(hn,Jr)},[]);x.useEffect(function(){var Jr;function An(Rn){var Qn=Rn,Di=Qn.currentTarget,Si=Qn.deltaX;Si&&(mr({currentTarget:Di,scrollLeft:Di.scrollLeft+Si}),Rn.preventDefault())}return(Jr=hn.current)===null||Jr===void 0||Jr.addEventListener("wheel",An,{passive:!1}),function(){var Rn;(Rn=hn.current)===null||Rn===void 0||Rn.removeEventListener("wheel",An)}},[]);var Pn=x.useMemo(function(){return Rt.every(function(Jr){return Jr.width})},[Rt]),yn=Rt[Rt.length-1],wn={fixed:yn?yn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Tr,"-cell-scrollbar")}}},nn=(0,x.useMemo)(function(){return sn?[].concat((0,Yr.Z)(Xt),[wn]):Xt},[sn,Xt]),Zr=(0,x.useMemo)(function(){return sn?[].concat((0,Yr.Z)(Rt),[wn]):Rt},[sn,Rt]),tn=(0,x.useMemo)(function(){var Jr=Qt.right,An=Qt.left;return(0,ge.Z)((0,ge.Z)({},Qt),{},{left:Ot==="rtl"?[].concat((0,Yr.Z)(An.map(function(Rn){return Rn+sn})),[0]):An,right:Ot==="rtl"?Jr:[].concat((0,Yr.Z)(Jr.map(function(Rn){return Rn+sn})),[0]),isSticky:_r})},[sn,Qt,_r]),pn=En(Jt,rr);return x.createElement("div",{style:(0,ge.Z)({overflow:"hidden"},_r?{top:Ht,bottom:zt}:{}),ref:un,className:_e()(Mt,(0,Se.Z)({},qt,!!qt))},x.createElement(qr,{style:{tableLayout:"fixed",visibility:Nt||pn?null:"hidden"}},(!Nt||!er||Pn)&&x.createElement(cn,{colWidths:pn?[].concat((0,Yr.Z)(pn),[sn]):[],columCount:rr+1,columns:Zr}),Ft((0,ge.Z)((0,ge.Z)({},ur),{},{stickyOffsets:tn,columns:nn,flattenColumns:Zr}))))}),Ar=x.memo(Dr),fn=function(Lt){var Mt=Lt.cells,Nt=Lt.stickyOffsets,Xt=Lt.flattenColumns,Rt=Lt.rowComponent,Jt=Lt.cellComponent,rr=Lt.onHeaderRow,Qt=Lt.index,Ot=ie(Ce,["prefixCls","direction"]),Bt=Ot.prefixCls,Ht=Ot.direction,zt;rr&&(zt=rr(Mt.map(function(mr){return mr.column}),Qt));var qt=Ue(Mt.map(function(mr){return mr.column}));return x.createElement(Rt,zt,Mt.map(function(mr,er){var Ft=mr.column,ur=Ze(mr.colStart,mr.colEnd,Xt,Nt,Ht),dr;return Ft&&Ft.onHeaderCell&&(dr=mr.column.onHeaderCell(Ft)),x.createElement(lt,(0,ee.Z)({},mr,{scope:Ft.title?mr.colSpan>1?"colgroup":"col":null,ellipsis:Ft.ellipsis,align:Ft.align,component:Jt,prefixCls:Bt,key:qt[er]},ur,{additionalProps:dr,rowType:"header"}))}))},or=fn;function Zt(St){var Lt=[];function Mt(Jt,rr){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Lt[Qt]=Lt[Qt]||[];var Ot=rr,Bt=Jt.filter(Boolean).map(function(Ht){var zt={key:Ht.key,className:Ht.className||"",children:Ht.title,column:Ht,colStart:Ot},qt=1,mr=Ht.children;return mr&&mr.length>0&&(qt=Mt(mr,Ot,Qt+1).reduce(function(er,Ft){return er+Ft},0),zt.hasSubColumns=!0),"colSpan"in Ht&&(qt=Ht.colSpan),"rowSpan"in Ht&&(zt.rowSpan=Ht.rowSpan),zt.colSpan=qt,zt.colEnd=zt.colStart+qt-1,Lt[Qt].push(zt),Ot+=qt,qt});return Bt}Mt(St,0);for(var Nt=Lt.length,Xt=function(rr){Lt[rr].forEach(function(Qt){!("rowSpan"in Qt)&&!Qt.hasSubColumns&&(Qt.rowSpan=Nt-rr)})},Rt=0;Rt<Nt;Rt+=1)Xt(Rt);return Lt}var ir=function(Lt){var Mt=Lt.stickyOffsets,Nt=Lt.columns,Xt=Lt.flattenColumns,Rt=Lt.onHeaderRow,Jt=ie(Ce,["prefixCls","getComponent"]),rr=Jt.prefixCls,Qt=Jt.getComponent,Ot=x.useMemo(function(){return Zt(Nt)},[Nt]),Bt=Qt(["header","wrapper"],"thead"),Ht=Qt(["header","row"],"tr"),zt=Qt(["header","cell"],"th");return x.createElement(Bt,{className:"".concat(rr,"-thead")},Ot.map(function(qt,mr){var er=x.createElement(or,{key:mr,flattenColumns:Xt,cells:qt,stickyOffsets:Mt,rowComponent:Ht,cellComponent:zt,onHeaderRow:Rt,index:mr});return er}))},Nr=me(ir),gr=Ve(97347);function Hr(St,Lt,Mt){var Nt=(0,Mr.g)(St),Xt=Nt.expandIcon,Rt=Nt.expandedRowKeys,Jt=Nt.defaultExpandedRowKeys,rr=Nt.defaultExpandAllRows,Qt=Nt.expandedRowRender,Ot=Nt.onExpand,Bt=Nt.onExpandedRowsChange,Ht=Nt.childrenColumnName,zt=Xt||bt,qt=Ht||"children",mr=x.useMemo(function(){return Qt?"row":St.expandable&&St.internalHooks===Je.R&&St.expandable.__PARENT_RENDER_ICON__||Lt.some(function(_r){return _r&&(0,de.Z)(_r)==="object"&&_r[qt]})?"nest":!1},[!!Qt,Lt]),er=x.useState(function(){return Jt||(rr?ht(Lt,Mt,qt):[])}),Ft=(0,wt.Z)(er,2),ur=Ft[0],dr=Ft[1],Tr=x.useMemo(function(){return new Set(Rt||ur||[])},[Rt,ur]),Vr=x.useCallback(function(_r){var ln=Mt(_r,Lt.indexOf(_r)),qr,sn=Tr.has(ln);sn?(Tr.delete(ln),qr=(0,Yr.Z)(Tr)):qr=[].concat((0,Yr.Z)(Tr),[ln]),dr(qr),Ot&&Ot(!sn,_r),Bt&&Bt(qr)},[Mt,Tr,Lt,Ot,Bt]);return[Nt,mr,Tr,zt,qt,Vr]}function Qr(St,Lt,Mt){var Nt=St.map(function(Xt,Rt){return Ze(Rt,Rt,St,Lt,Mt)});return(0,Ee.Z)(function(){return Nt},[Nt],function(Xt,Rt){return!(0,ve.Z)(Xt,Rt)})}function rn(St){var Lt=(0,x.useRef)(St),Mt=(0,x.useState)({}),Nt=(0,wt.Z)(Mt,2),Xt=Nt[1],Rt=(0,x.useRef)(null),Jt=(0,x.useRef)([]);function rr(Qt){Jt.current.push(Qt);var Ot=Promise.resolve();Rt.current=Ot,Ot.then(function(){if(Rt.current===Ot){var Bt=Jt.current,Ht=Lt.current;Jt.current=[],Bt.forEach(function(zt){Lt.current=zt(Lt.current)}),Rt.current=null,Ht!==Lt.current&&Xt({})}})}return(0,x.useEffect)(function(){return function(){Rt.current=null}},[]),[Lt.current,rr]}function Kr(St){var Lt=(0,x.useRef)(St||null),Mt=(0,x.useRef)();function Nt(){window.clearTimeout(Mt.current)}function Xt(Jt){Lt.current=Jt,Nt(),Mt.current=window.setTimeout(function(){Lt.current=null,Mt.current=void 0},100)}function Rt(){return Lt.current}return(0,x.useEffect)(function(){return Nt},[]),[Xt,Rt]}function Wr(){var St=x.useState(-1),Lt=(0,wt.Z)(St,2),Mt=Lt[0],Nt=Lt[1],Xt=x.useState(-1),Rt=(0,wt.Z)(Xt,2),Jt=Rt[0],rr=Rt[1],Qt=x.useCallback(function(Ot,Bt){Nt(Ot),rr(Bt)},[]);return[Mt,Jt,Qt]}var dn=Ve(47273),pr=(0,dn.Z)()?window:null;function Wt(St,Lt){var Mt=(0,de.Z)(St)==="object"?St:{},Nt=Mt.offsetHeader,Xt=Nt===void 0?0:Nt,Rt=Mt.offsetSummary,Jt=Rt===void 0?0:Rt,rr=Mt.offsetScroll,Qt=rr===void 0?0:rr,Ot=Mt.getContainer,Bt=Ot===void 0?function(){return pr}:Ot,Ht=Bt()||pr,zt=!!St;return x.useMemo(function(){return{isSticky:zt,stickyClassName:zt?"".concat(Lt,"-sticky-holder"):"",offsetHeader:Xt,offsetSummary:Jt,offsetScroll:Qt,container:Ht}},[zt,Qt,Xt,Jt,Lt,Ht])}function Sr(St,Lt,Mt){var Nt=(0,x.useMemo)(function(){var Xt=Lt.length,Rt=function(Ot,Bt,Ht){for(var zt=[],qt=0,mr=Ot;mr!==Bt;mr+=Ht)zt.push(qt),Lt[mr].fixed&&(qt+=St[mr]||0);return zt},Jt=Rt(0,Xt,1),rr=Rt(Xt-1,-1,-1).reverse();return Mt==="rtl"?{left:rr,right:Jt}:{left:Jt,right:rr}},[St,Lt,Mt]);return Nt}var Gr=Sr;function gn(St){var Lt=St.className,Mt=St.children;return x.createElement("div",{className:Lt},Mt)}var Ct=gn,Dt=Ve(8224),nr=Ve(16089),Gt=Ve(76846);function jt(St){var Lt=(0,Gt.bn)(St),Mt=Lt.getBoundingClientRect(),Nt=document.documentElement;return{left:Mt.left+(window.pageXOffset||Nt.scrollLeft)-(Nt.clientLeft||document.body.clientLeft||0),top:Mt.top+(window.pageYOffset||Nt.scrollTop)-(Nt.clientTop||document.body.clientTop||0)}}var tr=function(Lt,Mt){var Nt,Xt,Rt=Lt.scrollBodyRef,Jt=Lt.onScroll,rr=Lt.offsetScroll,Qt=Lt.container,Ot=Lt.direction,Bt=ie(Ce,"prefixCls"),Ht=((Nt=Rt.current)===null||Nt===void 0?void 0:Nt.scrollWidth)||0,zt=((Xt=Rt.current)===null||Xt===void 0?void 0:Xt.clientWidth)||0,qt=Ht&&zt*(zt/Ht),mr=x.useRef(),er=rn({scrollLeft:0,isHiddenScrollBar:!0}),Ft=(0,wt.Z)(er,2),ur=Ft[0],dr=Ft[1],Tr=x.useRef({delta:0,x:0}),Vr=x.useState(!1),_r=(0,wt.Z)(Vr,2),ln=_r[0],qr=_r[1],sn=x.useRef(null);x.useEffect(function(){return function(){nr.Z.cancel(sn.current)}},[]);var hn=function(){qr(!1)},un=function(Zr){Zr.persist(),Tr.current.delta=Zr.pageX-ur.scrollLeft,Tr.current.x=0,qr(!0),Zr.preventDefault()},Pn=function(Zr){var tn,pn=Zr||((tn=window)===null||tn===void 0?void 0:tn.event),Jr=pn.buttons;if(!ln||Jr===0){ln&&qr(!1);return}var An=Tr.current.x+Zr.pageX-Tr.current.x-Tr.current.delta,Rn=Ot==="rtl";An=Math.max(Rn?qt-zt:0,Math.min(Rn?0:zt-qt,An));var Qn=!Rn||Math.abs(An)+Math.abs(qt)<zt;Qn&&(Jt({scrollLeft:An/zt*(Ht+2)}),Tr.current.x=Zr.pageX)},yn=function(){nr.Z.cancel(sn.current),sn.current=(0,nr.Z)(function(){if(Rt.current){var Zr=jt(Rt.current).top,tn=Zr+Rt.current.offsetHeight,pn=Qt===window?document.documentElement.scrollTop+window.innerHeight:jt(Qt).top+Qt.clientHeight;tn-(0,ye.Z)()<=pn||Zr>=pn-rr?dr(function(Jr){return(0,ge.Z)((0,ge.Z)({},Jr),{},{isHiddenScrollBar:!0})}):dr(function(Jr){return(0,ge.Z)((0,ge.Z)({},Jr),{},{isHiddenScrollBar:!1})})}})},wn=function(Zr){dr(function(tn){return(0,ge.Z)((0,ge.Z)({},tn),{},{scrollLeft:Zr/Ht*zt||0})})};return x.useImperativeHandle(Mt,function(){return{setScrollLeft:wn,checkScrollBarVisible:yn}}),x.useEffect(function(){var nn=(0,Dt.Z)(document.body,"mouseup",hn,!1),Zr=(0,Dt.Z)(document.body,"mousemove",Pn,!1);return yn(),function(){nn.remove(),Zr.remove()}},[qt,ln]),x.useEffect(function(){if(Rt.current){for(var nn=[],Zr=(0,Gt.bn)(Rt.current);Zr;)nn.push(Zr),Zr=Zr.parentElement;return nn.forEach(function(tn){return tn.addEventListener("scroll",yn,!1)}),window.addEventListener("resize",yn,!1),window.addEventListener("scroll",yn,!1),Qt.addEventListener("scroll",yn,!1),function(){nn.forEach(function(tn){return tn.removeEventListener("scroll",yn)}),window.removeEventListener("resize",yn),window.removeEventListener("scroll",yn),Qt.removeEventListener("scroll",yn)}}},[Qt]),x.useEffect(function(){ur.isHiddenScrollBar||dr(function(nn){var Zr=Rt.current;return Zr?(0,ge.Z)((0,ge.Z)({},nn),{},{scrollLeft:Zr.scrollLeft/Zr.scrollWidth*Zr.clientWidth}):nn})},[ur.isHiddenScrollBar]),Ht<=zt||!qt||ur.isHiddenScrollBar?null:x.createElement("div",{style:{height:(0,ye.Z)(),width:zt,bottom:rr},className:"".concat(Bt,"-sticky-scroll")},x.createElement("div",{onMouseDown:un,ref:mr,className:_e()("".concat(Bt,"-sticky-scroll-bar"),(0,Se.Z)({},"".concat(Bt,"-sticky-scroll-bar-active"),ln)),style:{width:"".concat(qt,"px"),transform:"translate3d(".concat(ur.scrollLeft,"px, 0, 0)")}}))},hr=x.forwardRef(tr);function fr(St){return null}var kr=fr;function sr(St){return null}var xr=sr,ar="rc-table",$t=[],lr={};function br(){return"No Data"}function Rr(St,Lt){var Mt=(0,ge.Z)({rowKey:"key",prefixCls:ar,emptyText:br},St),Nt=Mt.prefixCls,Xt=Mt.className,Rt=Mt.rowClassName,Jt=Mt.style,rr=Mt.data,Qt=Mt.rowKey,Ot=Mt.scroll,Bt=Mt.tableLayout,Ht=Mt.direction,zt=Mt.title,qt=Mt.footer,mr=Mt.summary,er=Mt.caption,Ft=Mt.id,ur=Mt.showHeader,dr=Mt.components,Tr=Mt.emptyText,Vr=Mt.onRow,_r=Mt.onHeaderRow,ln=Mt.onScroll,qr=Mt.internalHooks,sn=Mt.transformColumns,hn=Mt.internalRefs,un=Mt.tailor,Pn=Mt.getContainerWidth,yn=Mt.sticky,wn=Mt.rowHoverable,nn=wn===void 0?!0:wn,Zr=rr||$t,tn=!!Zr.length,pn=qr===Je.R,Jr=x.useCallback(function(Un,Wn){return(0,Oe.Z)(dr,Un)||Wn},[dr]),An=x.useMemo(function(){return typeof Qt=="function"?Qt:function(Un){var Wn=Un&&Un[Qt];return Wn}},[Qt]),Rn=Jr(["body"]),Qn=Wr(),Di=(0,wt.Z)(Qn,3),Si=Di[0],yi=Di[1],ji=Di[2],qn=Hr(Mt,Zr,An),$n=(0,wt.Z)(qn,6),ti=$n[0],ki=$n[1],ai=$n[2],li=$n[3],oi=$n[4],en=$n[5],xn=Ot==null?void 0:Ot.x,Sn=x.useState(0),Cn=(0,wt.Z)(Sn,2),zn=Cn[0],ei=Cn[1],Hi=(0,gr.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},Mt),ti),{},{expandable:!!ti.expandedRowRender,columnTitle:ti.columnTitle,expandedKeys:ai,getRowKey:An,onTriggerExpand:en,expandIcon:li,expandIconColumnIndex:ti.expandIconColumnIndex,direction:Ht,scrollWidth:pn&&un&&typeof xn=="number"?xn:null,clientWidth:zn}),pn?sn:null),fi=(0,wt.Z)(Hi,4),ci=fi[0],Nn=fi[1],bi=fi[2],Ki=fi[3],ni=bi!=null?bi:xn,sa=x.useMemo(function(){return{columns:ci,flattenColumns:Nn}},[ci,Nn]),Vi=x.useRef(),$i=x.useRef(),mi=x.useRef(),ro=x.useRef();x.useImperativeHandle(Lt,function(){return{nativeElement:Vi.current,scrollTo:function(Wn){var Ei;if(mi.current instanceof HTMLElement){var Ni=Wn.index,_i=Wn.top,_a=Wn.key;if(ot(_i)){var xa;(xa=mi.current)===null||xa===void 0||xa.scrollTo({top:_i})}else{var Ma,fa=_a!=null?_a:An(Zr[Ni]);(Ma=mi.current.querySelector('[data-row-key="'.concat(fa,'"]')))===null||Ma===void 0||Ma.scrollIntoView()}}else(Ei=mi.current)!==null&&Ei!==void 0&&Ei.scrollTo&&mi.current.scrollTo(Wn)}}});var Ya=x.useRef(),pa=x.useState(!1),ma=(0,wt.Z)(pa,2),na=ma[0],Ea=ma[1],no=x.useState(!1),io=(0,wt.Z)(no,2),ao=io[0],La=io[1],$a=x.useState(new Map),Ba=(0,wt.Z)($a,2),Ca=Ba[0],Ja=Ba[1],oo=Ue(Nn),Fa=oo.map(function(Un){return Ca.get(Un)}),ka=x.useMemo(function(){return Fa},[Fa.join("_")]),Ta=Gr(ka,Nn,Ht),Ui=Ot&&rt(Ot.y),di=Ot&&rt(ni)||!!ti.fixed,Zn=di&&Nn.some(function(Un){var Wn=Un.fixed;return Wn}),In=x.useRef(),vi=Wt(yn,Nt),hi=vi.isSticky,wi=vi.offsetHeader,Ti=vi.offsetSummary,la=vi.offsetScroll,ia=vi.stickyClassName,va=vi.container,pi=x.useMemo(function(){return mr==null?void 0:mr(Zr)},[mr,Zr]),Ri=(Ui||hi)&&x.isValidElement(pi)&&pi.type===Ae&&pi.props.fixed,Ji,ua,Qa;Ui&&(ua={overflowY:tn?"scroll":"auto",maxHeight:Ot.y}),di&&(Ji={overflowX:"auto"},Ui||(ua={overflowY:"hidden"}),Qa={width:ni===!0?"auto":ni,minWidth:"100%"});var Eo=x.useCallback(function(Un,Wn){Ja(function(Ei){if(Ei.get(Un)!==Wn){var Ni=new Map(Ei);return Ni.set(Un,Wn),Ni}return Ei})},[]),Co=Kr(null),wa=(0,wt.Z)(Co,2),Aa=wa[0],Wi=wa[1];function ca(Un,Wn){Wn&&(typeof Wn=="function"?Wn(Un):Wn.scrollLeft!==Un&&(Wn.scrollLeft=Un,Wn.scrollLeft!==Un&&setTimeout(function(){Wn.scrollLeft=Un},0)))}var Qi=(0,y.Z)(function(Un){var Wn=Un.currentTarget,Ei=Un.scrollLeft,Ni=Ht==="rtl",_i=typeof Ei=="number"?Ei:Wn.scrollLeft,_a=Wn||lr;if(!Wi()||Wi()===_a){var xa;Aa(_a),ca(_i,$i.current),ca(_i,mi.current),ca(_i,Ya.current),ca(_i,(xa=In.current)===null||xa===void 0?void 0:xa.setScrollLeft)}var Ma=Wn||$i.current;if(Ma){var fa=pn&&un&&typeof ni=="number"?ni:Ma.scrollWidth,ga=Ma.clientWidth;if(fa===ga){Ea(!1),La(!1);return}Ni?(Ea(-_i<fa-ga),La(-_i>0)):(Ea(_i>0),La(_i<fa-ga))}}),so=(0,y.Z)(function(Un){Qi(Un),ln==null||ln(Un)}),Jo=function(){if(di&&mi.current){var Wn;Qi({currentTarget:(0,Gt.bn)(mi.current),scrollLeft:(Wn=mi.current)===null||Wn===void 0?void 0:Wn.scrollLeft})}else Ea(!1),La(!1)},Qo=function(Wn){var Ei,Ni=Wn.width;(Ei=In.current)===null||Ei===void 0||Ei.checkScrollBarVisible();var _i=Vi.current?Vi.current.offsetWidth:Ni;pn&&Pn&&Vi.current&&(_i=Pn(Vi.current,_i)||_i),_i!==zn&&(Jo(),ei(_i))},Ua=x.useRef(!1);x.useEffect(function(){Ua.current&&Jo()},[di,rr,ci.length]),x.useEffect(function(){Ua.current=!0},[]);var qo=x.useState(0),ko=(0,wt.Z)(qo,2),Da=ko[0],es=ko[1],To=x.useState(!0),Ao=(0,wt.Z)(To,2),Do=Ao[0],jo=Ao[1];(0,we.Z)(function(){(!un||!pn)&&(mi.current instanceof Element?es((0,ye.o)(mi.current).width):es((0,ye.o)(ro.current).width)),jo((0,xe.G)("position","sticky"))},[]),x.useEffect(function(){pn&&hn&&(hn.body.current=mi.current)});var Wa=x.useCallback(function(Un){return x.createElement(x.Fragment,null,x.createElement(Nr,Un),Ri==="top"&&x.createElement(We,Un,pi))},[Ri,pi]),lo=x.useCallback(function(Un){return x.createElement(We,Un,pi)},[pi]),Oo=Jr(["table"],"table"),ja=x.useMemo(function(){return Bt||(Zn?ni==="max-content"?"auto":"fixed":Ui||hi||Nn.some(function(Un){var Wn=Un.ellipsis;return Wn})?"fixed":"auto")},[Ui,Zn,Nn,Bt,hi]),Po,Ro={colWidths:ka,columCount:Nn.length,stickyOffsets:Ta,onHeaderRow:_r,fixHeader:Ui,scroll:Ot},ts=x.useMemo(function(){return tn?null:typeof Tr=="function"?Tr():Tr},[tn,Tr]),uo=x.createElement(Pr,{data:Zr,measureColumnWidth:Ui||di||hi}),co=x.createElement(cn,{colWidths:Nn.map(function(Un){var Wn=Un.width;return Wn}),columns:Nn}),Oa=er!=null?x.createElement("caption",{className:"".concat(Nt,"-caption")},er):void 0,qa=(0,Fe.Z)(Mt,{data:!0}),rs=(0,Fe.Z)(Mt,{aria:!0});if(Ui||hi){var Za;typeof Rn=="function"?(Za=Rn(Zr,{scrollbarSize:Da,ref:mi,onScroll:Qi}),Ro.colWidths=Nn.map(function(Un,Wn){var Ei=Un.width,Ni=Wn===Nn.length-1?Ei-Da:Ei;return typeof Ni=="number"&&!Number.isNaN(Ni)?Ni:0})):Za=x.createElement("div",{style:(0,ge.Z)((0,ge.Z)({},Ji),ua),onScroll:so,ref:mi,className:_e()("".concat(Nt,"-body"))},x.createElement(Oo,(0,ee.Z)({style:(0,ge.Z)((0,ge.Z)({},Qa),{},{tableLayout:ja})},rs),Oa,co,uo,!Ri&&pi&&x.createElement(We,{stickyOffsets:Ta,flattenColumns:Nn},pi)));var _o=(0,ge.Z)((0,ge.Z)((0,ge.Z)({noData:!Zr.length,maxContentScroll:di&&ni==="max-content"},Ro),sa),{},{direction:Ht,stickyClassName:ia,onScroll:Qi});Po=x.createElement(x.Fragment,null,ur!==!1&&x.createElement(Ar,(0,ee.Z)({},_o,{stickyTopOffset:wi,className:"".concat(Nt,"-header"),ref:$i}),Wa),Za,Ri&&Ri!=="top"&&x.createElement(Ar,(0,ee.Z)({},_o,{stickyBottomOffset:Ti,className:"".concat(Nt,"-summary"),ref:Ya}),lo),hi&&mi.current&&mi.current instanceof Element&&x.createElement(hr,{ref:In,offsetScroll:la,scrollBodyRef:mi,onScroll:Qi,container:va,direction:Ht}))}else Po=x.createElement("div",{style:(0,ge.Z)((0,ge.Z)({},Ji),ua),className:_e()("".concat(Nt,"-content")),onScroll:Qi,ref:mi},x.createElement(Oo,(0,ee.Z)({style:(0,ge.Z)((0,ge.Z)({},Qa),{},{tableLayout:ja})},rs),Oa,co,ur!==!1&&x.createElement(Nr,(0,ee.Z)({},Ro,sa)),uo,pi&&x.createElement(We,{stickyOffsets:Ta,flattenColumns:Nn},pi)));var Pa=x.createElement("div",(0,ee.Z)({className:_e()(Nt,Xt,(0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)((0,Se.Z)({},"".concat(Nt,"-rtl"),Ht==="rtl"),"".concat(Nt,"-ping-left"),na),"".concat(Nt,"-ping-right"),ao),"".concat(Nt,"-layout-fixed"),Bt==="fixed"),"".concat(Nt,"-fixed-header"),Ui),"".concat(Nt,"-fixed-column"),Zn),"".concat(Nt,"-fixed-column-gapped"),Zn&&Ki),"".concat(Nt,"-scroll-horizontal"),di),"".concat(Nt,"-has-fix-left"),Nn[0]&&Nn[0].fixed),"".concat(Nt,"-has-fix-right"),Nn[Nn.length-1]&&Nn[Nn.length-1].fixed==="right")),style:Jt,id:Ft,ref:Vi},qa),zt&&x.createElement(Ct,{className:"".concat(Nt,"-title")},zt(Zr)),x.createElement("div",{ref:ro,className:"".concat(Nt,"-container")},Po),qt&&x.createElement(Ct,{className:"".concat(Nt,"-footer")},qt(Zr)));di&&(Pa=x.createElement(Re.Z,{onResize:Qo},Pa));var Mo=Qr(Nn,Ta,Ht),Ra=x.useMemo(function(){return{scrollX:ni,prefixCls:Nt,getComponent:Jr,scrollbarSize:Da,direction:Ht,fixedInfoList:Mo,isSticky:hi,supportSticky:Do,componentWidth:zn,fixHeader:Ui,fixColumn:Zn,horizonScroll:di,tableLayout:ja,rowClassName:Rt,expandedRowClassName:ti.expandedRowClassName,expandIcon:li,expandableType:ki,expandRowByClick:ti.expandRowByClick,expandedRowRender:ti.expandedRowRender,onTriggerExpand:en,expandIconColumnIndex:ti.expandIconColumnIndex,indentSize:ti.indentSize,allColumnsFixedLeft:Nn.every(function(Un){return Un.fixed==="left"}),emptyNode:ts,columns:ci,flattenColumns:Nn,onColumnResize:Eo,hoverStartRow:Si,hoverEndRow:yi,onHover:ji,rowExpandable:ti.rowExpandable,onRow:Vr,getRowKey:An,expandedKeys:ai,childrenColumnName:oi,rowHoverable:nn}},[ni,Nt,Jr,Da,Ht,Mo,hi,Do,zn,Ui,Zn,di,ja,Rt,ti.expandedRowClassName,li,ki,ti.expandRowByClick,ti.expandedRowRender,en,ti.expandIconColumnIndex,ti.indentSize,ts,ci,Nn,Eo,Si,yi,ji,ti.rowExpandable,Vr,An,ai,oi,nn]);return x.createElement(Ce.Provider,{value:Ra},Pa)}var Fr=x.forwardRef(Rr);function vn(St){return he(Fr,St)}var On=vn();On.EXPAND_COLUMN=Je.w,On.INTERNAL_HOOKS=Je.R,On.Column=kr,On.ColumnGroup=xr,On.Summary=at;var zr=On,Er=Ve(48911),Ur=oe(null),wr=oe(null);function jn(St,Lt,Mt){var Nt=Lt||1;return Mt[St+Nt]-(Mt[St]||0)}function Hn(St){var Lt=St.rowInfo,Mt=St.column,Nt=St.colIndex,Xt=St.indent,Rt=St.index,Jt=St.component,rr=St.renderIndex,Qt=St.record,Ot=St.style,Bt=St.className,Ht=St.inverse,zt=St.getHeight,qt=Mt.render,mr=Mt.dataIndex,er=Mt.className,Ft=Mt.width,ur=ie(wr,["columnsOffset"]),dr=ur.columnsOffset,Tr=Tt(Lt,Mt,Nt,Xt,Rt),Vr=Tr.key,_r=Tr.fixedInfo,ln=Tr.appendCellNode,qr=Tr.additionalCellProps,sn=qr.style,hn=qr.colSpan,un=hn===void 0?1:hn,Pn=qr.rowSpan,yn=Pn===void 0?1:Pn,wn=Nt-1,nn=jn(wn,un,dr),Zr=un>1?Ft-nn:0,tn=(0,ge.Z)((0,ge.Z)((0,ge.Z)({},sn),Ot),{},{flex:"0 0 ".concat(nn,"px"),width:"".concat(nn,"px"),marginRight:Zr,pointerEvents:"auto"}),pn=x.useMemo(function(){return Ht?yn<=1:un===0||yn===0||yn>1},[yn,un,Ht]);pn?tn.visibility="hidden":Ht&&(tn.height=zt==null?void 0:zt(yn));var Jr=pn?function(){return null}:qt,An={};return(yn===0||un===0)&&(An.rowSpan=1,An.colSpan=1),x.createElement(lt,(0,ee.Z)({className:_e()(er,Bt),ellipsis:Mt.ellipsis,align:Mt.align,scope:Mt.rowScope,component:Jt,prefixCls:Lt.prefixCls,key:Vr,record:Qt,index:Rt,renderIndex:rr,dataIndex:mr,render:Jr,shouldCellUpdate:Mt.shouldCellUpdate},_r,{appendNode:ln,additionalProps:(0,ge.Z)((0,ge.Z)({},qr),{},{style:tn},An)}))}var Ln=Hn,Vn=["data","index","className","rowKey","style","extra","getHeight"],Yn=x.forwardRef(function(St,Lt){var Mt=St.data,Nt=St.index,Xt=St.className,Rt=St.rowKey,Jt=St.style,rr=St.extra,Qt=St.getHeight,Ot=(0,Ge.Z)(St,Vn),Bt=Mt.record,Ht=Mt.indent,zt=Mt.index,qt=ie(Ce,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),mr=qt.scrollX,er=qt.flattenColumns,Ft=qt.prefixCls,ur=qt.fixColumn,dr=qt.componentWidth,Tr=ie(Ur,["getComponent"]),Vr=Tr.getComponent,_r=vt(Bt,Rt,Nt,Ht),ln=Vr(["body","row"],"div"),qr=Vr(["body","cell"],"div"),sn=_r.rowSupportExpand,hn=_r.expanded,un=_r.rowProps,Pn=_r.expandedRowRender,yn=_r.expandedRowClassName,wn;if(sn&&hn){var nn=Pn(Bt,Nt,Ht+1,hn),Zr=kt(yn,Bt,Nt,Ht),tn={};ur&&(tn={style:(0,Se.Z)({},"--virtual-width","".concat(dr,"px"))});var pn="".concat(Ft,"-expanded-row-cell");wn=x.createElement(ln,{className:_e()("".concat(Ft,"-expanded-row"),"".concat(Ft,"-expanded-row-level-").concat(Ht+1),Zr)},x.createElement(lt,{component:qr,prefixCls:Ft,className:_e()(pn,(0,Se.Z)({},"".concat(pn,"-fixed"),ur)),additionalProps:tn},nn))}var Jr=(0,ge.Z)((0,ge.Z)({},Jt),{},{width:mr});rr&&(Jr.position="absolute",Jr.pointerEvents="none");var An=x.createElement(ln,(0,ee.Z)({},un,Ot,{"data-row-key":Rt,ref:sn?null:Lt,className:_e()(Xt,"".concat(Ft,"-row"),un==null?void 0:un.className,(0,Se.Z)({},"".concat(Ft,"-row-extra"),rr)),style:(0,ge.Z)((0,ge.Z)({},Jr),un==null?void 0:un.style)}),er.map(function(Rn,Qn){return x.createElement(Ln,{key:Qn,component:qr,rowInfo:_r,column:Rn,colIndex:Qn,indent:Ht,index:Nt,renderIndex:zt,record:Bt,inverse:rr,getHeight:Qt})}));return sn?x.createElement("div",{ref:Lt},An,wn):An}),Gn=me(Yn),_n=Gn,Jn=x.forwardRef(function(St,Lt){var Mt=St.data,Nt=St.onScroll,Xt=ie(Ce,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Rt=Xt.flattenColumns,Jt=Xt.onColumnResize,rr=Xt.getRowKey,Qt=Xt.expandedKeys,Ot=Xt.prefixCls,Bt=Xt.childrenColumnName,Ht=Xt.scrollX,zt=Xt.direction,qt=ie(Ur),mr=qt.sticky,er=qt.scrollY,Ft=qt.listItemHeight,ur=qt.getComponent,dr=qt.onScroll,Tr=x.useRef(),Vr=Ie(Mt,Bt,Qt,rr),_r=x.useMemo(function(){var wn=0;return Rt.map(function(nn){var Zr=nn.width,tn=nn.key;return wn+=Zr,[tn,Zr,wn]})},[Rt]),ln=x.useMemo(function(){return _r.map(function(wn){return wn[2]})},[_r]);x.useEffect(function(){_r.forEach(function(wn){var nn=(0,wt.Z)(wn,2),Zr=nn[0],tn=nn[1];Jt(Zr,tn)})},[_r]),x.useImperativeHandle(Lt,function(){var wn,nn={scrollTo:function(tn){var pn;(pn=Tr.current)===null||pn===void 0||pn.scrollTo(tn)},nativeElement:(wn=Tr.current)===null||wn===void 0?void 0:wn.nativeElement};return Object.defineProperty(nn,"scrollLeft",{get:function(){var tn;return((tn=Tr.current)===null||tn===void 0?void 0:tn.getScrollInfo().x)||0},set:function(tn){var pn;(pn=Tr.current)===null||pn===void 0||pn.scrollTo({left:tn})}}),nn});var qr=function(nn,Zr){var tn,pn=(tn=Vr[Zr])===null||tn===void 0?void 0:tn.record,Jr=nn.onCell;if(Jr){var An,Rn=Jr(pn,Zr);return(An=Rn==null?void 0:Rn.rowSpan)!==null&&An!==void 0?An:1}return 1},sn=function(nn){var Zr=nn.start,tn=nn.end,pn=nn.getSize,Jr=nn.offsetY;if(tn<0)return null;for(var An=Rt.filter(function(li){return qr(li,Zr)===0}),Rn=Zr,Qn=function(oi){if(An=An.filter(function(en){return qr(en,oi)===0}),!An.length)return Rn=oi,1},Di=Zr;Di>=0&&!Qn(Di);Di-=1);for(var Si=Rt.filter(function(li){return qr(li,tn)!==1}),yi=tn,ji=function(oi){if(Si=Si.filter(function(en){return qr(en,oi)!==1}),!Si.length)return yi=Math.max(oi-1,tn),1},qn=tn;qn<Vr.length&&!ji(qn);qn+=1);for(var $n=[],ti=function(oi){var en=Vr[oi];if(!en)return 1;Rt.some(function(xn){return qr(xn,oi)>1})&&$n.push(oi)},ki=Rn;ki<=yi;ki+=1)ti(ki);var ai=$n.map(function(li){var oi=Vr[li],en=rr(oi.record,li),xn=function(zn){var ei=li+zn-1,Hi=rr(Vr[ei].record,ei),fi=pn(en,Hi);return fi.bottom-fi.top},Sn=pn(en);return x.createElement(_n,{key:li,data:oi,rowKey:en,index:li,style:{top:-Jr+Sn.top},extra:!0,getHeight:xn})});return ai},hn=x.useMemo(function(){return{columnsOffset:ln}},[ln]),un="".concat(Ot,"-tbody"),Pn=ur(["body","wrapper"]),yn={};return mr&&(yn.position="sticky",yn.bottom=0,(0,de.Z)(mr)==="object"&&mr.offsetScroll&&(yn.bottom=mr.offsetScroll)),x.createElement(wr.Provider,{value:hn},x.createElement(Er.Z,{fullHeight:!1,ref:Tr,prefixCls:"".concat(un,"-virtual"),styles:{horizontalScrollBar:yn},className:un,height:er,itemHeight:Ft||24,data:Vr,itemKey:function(nn){return rr(nn.record)},component:Pn,scrollWidth:Ht,direction:zt,onVirtualScroll:function(nn){var Zr,tn=nn.x;Nt({currentTarget:(Zr=Tr.current)===null||Zr===void 0?void 0:Zr.nativeElement,scrollLeft:tn})},onScroll:dr,extraRender:sn},function(wn,nn,Zr){var tn=rr(wn.record,nn);return x.createElement(_n,{data:wn,rowKey:tn,index:nn,style:Zr.style})}))}),Xn=me(Jn),Ir=Xn,on=function(Lt,Mt){var Nt=Mt.ref,Xt=Mt.onScroll;return x.createElement(Ir,{ref:Nt,data:Lt,onScroll:Xt})};function Tn(St,Lt){var Mt=St.data,Nt=St.columns,Xt=St.scroll,Rt=St.sticky,Jt=St.prefixCls,rr=Jt===void 0?ar:Jt,Qt=St.className,Ot=St.listItemHeight,Bt=St.components,Ht=St.onScroll,zt=Xt||{},qt=zt.x,mr=zt.y;typeof qt!="number"&&(qt=1),typeof mr!="number"&&(mr=500);var er=(0,ft.zX)(function(dr,Tr){return(0,Oe.Z)(Bt,dr)||Tr}),Ft=(0,ft.zX)(Ht),ur=x.useMemo(function(){return{sticky:Rt,scrollY:mr,listItemHeight:Ot,getComponent:er,onScroll:Ft}},[Rt,mr,Ot,er,Ft]);return x.createElement(Ur.Provider,{value:ur},x.createElement(zr,(0,ee.Z)({},St,{className:_e()(Qt,"".concat(rr,"-virtual")),scroll:(0,ge.Z)((0,ge.Z)({},Xt),{},{x:qt}),components:(0,ge.Z)((0,ge.Z)({},Bt),{},{body:Mt!=null&&Mt.length?on:void 0}),columns:Nt,internalHooks:Je.R,tailor:!0,ref:Lt})))}var Bn=x.forwardRef(Tn);function Mn(St){return he(Bn,St)}var Fn=Mn(),ri=null},54451:function(Kt,_t,Ve){"use strict";Ve.d(_t,{g:function(){return x},v:function(){return ve}});var Je=Ve(33885),wt=Ve(75931),y=Ve(48736),we=["expandable"],ve="RC_TABLE_INTERNAL_COL_DEFINE";function x(z){var oe=z.expandable,ie=(0,wt.Z)(z,we),ee;return"expandable"in z?ee=(0,Je.Z)((0,Je.Z)({},ie),oe):ee=ie,ee.showExpandColumn===!1&&(ee.expandIconColumnIndex=-1),ee}},22711:function(Kt,_t,Ve){"use strict";Ve.r(_t),Ve.d(_t,{ResizableTextArea:function(){return De},default:function(){return He}});var Je=Ve(54476),wt=Ve(20068),y=Ve(33885),we=Ve(94480),ve=Ve(42978),x=Ve(75931),z=Ve(92310),oe=Ve.n(z),ie=Ve(36901),ee=Ve(66003),se=Ve(30292),E=Ve(18929),te=Ve(59301),re=Ve(76190),le=Ve(29301),ue=Ve(34280),ce=Ve(16089),he=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,me=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],fe={},be;function Ce(Xe){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=Xe.getAttribute("id")||Xe.getAttribute("data-reactid")||Xe.getAttribute("name");if(et&&fe[st])return fe[st];var Le=window.getComputedStyle(Xe),Ue=Le.getPropertyValue("box-sizing")||Le.getPropertyValue("-moz-box-sizing")||Le.getPropertyValue("-webkit-box-sizing"),rt=parseFloat(Le.getPropertyValue("padding-bottom"))+parseFloat(Le.getPropertyValue("padding-top")),ot=parseFloat(Le.getPropertyValue("border-bottom-width"))+parseFloat(Le.getPropertyValue("border-top-width")),it=me.map(function($e){return"".concat($e,":").concat(Le.getPropertyValue($e))}).join(";"),Ye={sizingStyle:it,paddingSize:rt,borderSize:ot,boxSizing:Ue};return et&&st&&(fe[st]=Ye),Ye}function Te(Xe){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,st=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;be||(be=document.createElement("textarea"),be.setAttribute("tab-index","-1"),be.setAttribute("aria-hidden","true"),be.setAttribute("name","hiddenTextarea"),document.body.appendChild(be)),Xe.getAttribute("wrap")?be.setAttribute("wrap",Xe.getAttribute("wrap")):be.removeAttribute("wrap");var Ue=Ce(Xe,et),rt=Ue.paddingSize,ot=Ue.borderSize,it=Ue.boxSizing,Ye=Ue.sizingStyle;be.setAttribute("style","".concat(Ye,";").concat(he)),be.value=Xe.value||Xe.placeholder||"";var $e=void 0,Ke=void 0,ft,tt=be.scrollHeight;if(it==="border-box"?tt+=ot:it==="content-box"&&(tt-=rt),st!==null||Le!==null){be.value=" ";var ut=be.scrollHeight-rt;st!==null&&($e=ut*st,it==="border-box"&&($e=$e+rt+ot),tt=Math.max($e,tt)),Le!==null&&(Ke=ut*Le,it==="border-box"&&(Ke=Ke+rt+ot),ft=tt>Ke?"":"hidden",tt=Math.min(Ke,tt))}var lt={height:tt,overflowY:ft,resize:"none"};return $e&&(lt.minHeight=$e),Ke&&(lt.maxHeight=Ke),lt}var Pe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ke=0,de=1,ge=2,Se=te.forwardRef(function(Xe,et){var st=Xe,Le=st.prefixCls,Ue=st.defaultValue,rt=st.value,ot=st.autoSize,it=st.onResize,Ye=st.className,$e=st.style,Ke=st.disabled,ft=st.onChange,tt=st.onInternalAutoSize,ut=(0,x.Z)(st,Pe),lt=(0,E.Z)(Ue,{value:rt,postState:function(Vt){return Vt!=null?Vt:""}}),Ze=(0,ve.Z)(lt,2),Ne=Ze[0],ze=Ze[1],Me=function(Vt){ze(Vt.target.value),ft==null||ft(Vt)},Ge=te.useRef();te.useImperativeHandle(et,function(){return{textArea:Ge.current}});var ct=te.useMemo(function(){return ot&&(0,re.Z)(ot)==="object"?[ot.minRows,ot.maxRows]:[]},[ot]),mt=(0,ve.Z)(ct,2),nt=mt[0],Ae=mt[1],je=!!ot,We=function(){try{if(document.activeElement===Ge.current){var Vt=Ge.current,vr=Vt.selectionStart,Yt=Vt.selectionEnd,Cr=Vt.scrollTop;Ge.current.setSelectionRange(vr,Yt),Ge.current.scrollTop=Cr}}catch(jr){}},at=te.useState(ge),Re=(0,ve.Z)(at,2),xe=Re[0],ye=Re[1],Fe=te.useState(),Qe=(0,ve.Z)(Fe,2),Ie=Qe[0],vt=Qe[1],yt=function(){ye(ke)};(0,ue.Z)(function(){je&&yt()},[rt,nt,Ae,je]),(0,ue.Z)(function(){if(xe===ke)ye(de);else if(xe===de){var Pt=Te(Ge.current,!1,nt,Ae);ye(ge),vt(Pt)}else We()},[xe]);var xt=te.useRef(),bt=function(){ce.Z.cancel(xt.current)},ht=function(Vt){xe===ge&&(it==null||it(Vt),ot&&(bt(),xt.current=(0,ce.Z)(function(){yt()})))};te.useEffect(function(){return bt},[]);var kt=je?Ie:null,Tt=(0,y.Z)((0,y.Z)({},$e),kt);return(xe===ke||xe===de)&&(Tt.overflowY="hidden",Tt.overflowX="hidden"),te.createElement(le.Z,{onResize:ht,disabled:!(ot||it)},te.createElement("textarea",(0,Je.Z)({},ut,{ref:Ge,style:Tt,className:oe()(Le,Ye,(0,wt.Z)({},"".concat(Le,"-disabled"),Ke)),disabled:Ke,value:Ne,onChange:Me})))}),De=Se,_e=["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"],Ee=te.forwardRef(function(Xe,et){var st,Le=Xe.defaultValue,Ue=Xe.value,rt=Xe.onFocus,ot=Xe.onBlur,it=Xe.onChange,Ye=Xe.allowClear,$e=Xe.maxLength,Ke=Xe.onCompositionStart,ft=Xe.onCompositionEnd,tt=Xe.suffix,ut=Xe.prefixCls,lt=ut===void 0?"rc-textarea":ut,Ze=Xe.showCount,Ne=Xe.count,ze=Xe.className,Me=Xe.style,Ge=Xe.disabled,ct=Xe.hidden,mt=Xe.classNames,nt=Xe.styles,Ae=Xe.onResize,je=Xe.onClear,We=Xe.onPressEnter,at=Xe.readOnly,Re=Xe.autoSize,xe=Xe.onKeyDown,ye=(0,x.Z)(Xe,_e),Fe=(0,E.Z)(Le,{value:Ue,defaultValue:Le}),Qe=(0,ve.Z)(Fe,2),Ie=Qe[0],vt=Qe[1],yt=Ie==null?"":String(Ie),xt=te.useState(!1),bt=(0,ve.Z)(xt,2),ht=bt[0],kt=bt[1],Tt=te.useRef(!1),Pt=te.useState(null),Vt=(0,ve.Z)(Pt,2),vr=Vt[0],Yt=Vt[1],Cr=(0,te.useRef)(null),jr=(0,te.useRef)(null),Pr=function(){var Sr;return(Sr=jr.current)===null||Sr===void 0?void 0:Sr.textArea},Mr=function(){Pr().focus()};(0,te.useImperativeHandle)(et,function(){var Wt;return{resizableTextArea:jr.current,focus:Mr,blur:function(){Pr().blur()},nativeElement:((Wt=Cr.current)===null||Wt===void 0?void 0:Wt.nativeElement)||Pr()}}),(0,te.useEffect)(function(){kt(function(Wt){return!Ge&&Wt})},[Ge]);var Xr=te.useState(null),mn=(0,ve.Z)(Xr,2),cn=mn[0],Yr=mn[1];te.useEffect(function(){if(cn){var Wt;(Wt=Pr()).setSelectionRange.apply(Wt,(0,we.Z)(cn))}},[cn]);var kn=(0,ee.Z)(Ne,Ze),En=(st=kn.max)!==null&&st!==void 0?st:$e,Dr=Number(En)>0,Ar=kn.strategy(yt),fn=!!En&&Ar>En,or=function(Sr,Gr){var gn=Gr;!Tt.current&&kn.exceedFormatter&&kn.max&&kn.strategy(Gr)>kn.max&&(gn=kn.exceedFormatter(Gr,{max:kn.max}),Gr!==gn&&Yr([Pr().selectionStart||0,Pr().selectionEnd||0])),vt(gn),(0,se.rJ)(Sr.currentTarget,Sr,it,gn)},Zt=function(Sr){Tt.current=!0,Ke==null||Ke(Sr)},ir=function(Sr){Tt.current=!1,or(Sr,Sr.currentTarget.value),ft==null||ft(Sr)},Nr=function(Sr){or(Sr,Sr.target.value)},gr=function(Sr){Sr.key==="Enter"&&We&&We(Sr),xe==null||xe(Sr)},Hr=function(Sr){kt(!0),rt==null||rt(Sr)},Qr=function(Sr){kt(!1),ot==null||ot(Sr)},rn=function(Sr){vt(""),Mr(),(0,se.rJ)(Pr(),Sr,it)},Kr=tt,Wr;kn.show&&(kn.showFormatter?Wr=kn.showFormatter({value:yt,count:Ar,maxLength:En}):Wr="".concat(Ar).concat(Dr?" / ".concat(En):""),Kr=te.createElement(te.Fragment,null,Kr,te.createElement("span",{className:oe()("".concat(lt,"-data-count"),mt==null?void 0:mt.count),style:nt==null?void 0:nt.count},Wr)));var dn=function(Sr){var Gr;Ae==null||Ae(Sr),(Gr=Pr())!==null&&Gr!==void 0&&Gr.style.height&&Yt(!0)},pr=!Re&&!Ze&&!Ye;return te.createElement(ie.BaseInput,{ref:Cr,value:yt,allowClear:Ye,handleReset:rn,suffix:Kr,prefixCls:lt,classNames:(0,y.Z)((0,y.Z)({},mt),{},{affixWrapper:oe()(mt==null?void 0:mt.affixWrapper,(0,wt.Z)((0,wt.Z)({},"".concat(lt,"-show-count"),Ze),"".concat(lt,"-textarea-allow-clear"),Ye))}),disabled:Ge,focused:ht,className:oe()(ze,fn&&"".concat(lt,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},Me),vr&&!pr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Wr=="string"?Wr:void 0}},hidden:ct,readOnly:at,onClear:je},te.createElement(De,(0,Je.Z)({},ye,{autoSize:Re,maxLength:$e,onKeyDown:gr,onChange:Nr,onFocus:Hr,onBlur:Qr,onCompositionStart:Zt,onCompositionEnd:ir,className:oe()(mt==null?void 0:mt.textarea),style:(0,y.Z)((0,y.Z)({},nt==null?void 0:nt.textarea),{},{resize:Me==null?void 0:Me.resize}),disabled:Ge,prefixCls:lt,onResize:dn,ref:jr,readOnly:at})))}),Oe=Ee,He=Oe},639:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return fe}});var Je=Ve(54476),wt=Ve(20068),y=Ve(33885),we=Ve(42978),ve=Ve(75931),x=Ve(59301),z=Ve(92310),oe=Ve.n(z),ie=Ve(26112),ee=Ve(30699),se=function(Ce){for(var Te=Ce.prefixCls,Pe=Ce.level,ke=Ce.isStart,de=Ce.isEnd,ge="".concat(Te,"-indent-unit"),Se=[],De=0;De<Pe;De+=1)Se.push(x.createElement("span",{key:De,className:oe()(ge,(0,wt.Z)((0,wt.Z)({},"".concat(ge,"-start"),ke[De]),"".concat(ge,"-end"),de[De]))}));return x.createElement("span",{"aria-hidden":"true",className:"".concat(Te,"-indent")},Se)},E=x.memo(se),te=Ve(65065),re=Ve(34061),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",ce="close",he="---",me=function(Ce){var Te,Pe,ke,de=Ce.eventKey,ge=Ce.className,Se=Ce.style,De=Ce.dragOver,_e=Ce.dragOverGapTop,Ee=Ce.dragOverGapBottom,Oe=Ce.isLeaf,He=Ce.isStart,Xe=Ce.isEnd,et=Ce.expanded,st=Ce.selected,Le=Ce.checked,Ue=Ce.halfChecked,rt=Ce.loading,ot=Ce.domRef,it=Ce.active,Ye=Ce.data,$e=Ce.onMouseMove,Ke=Ce.selectable,ft=(0,ve.Z)(Ce,le),tt=x.useContext(ee.k),ut=x.useContext(ee.y),lt=x.useRef(null),Ze=x.useState(!1),Ne=(0,we.Z)(Ze,2),ze=Ne[0],Me=Ne[1],Ge=!!(tt.disabled||Ce.disabled||(Te=ut.nodeDisabled)!==null&&Te!==void 0&&Te.call(ut,Ye)),ct=x.useMemo(function(){return!tt.checkable||Ce.checkable===!1?!1:tt.checkable},[tt.checkable,Ce.checkable]),mt=function(Ar){Ge||tt.onNodeSelect(Ar,(0,re.F)(Ce))},nt=function(Ar){Ge||!ct||Ce.disableCheckbox||tt.onNodeCheck(Ar,(0,re.F)(Ce),!Le)},Ae=x.useMemo(function(){return typeof Ke=="boolean"?Ke:tt.selectable},[Ke,tt.selectable]),je=function(Ar){tt.onNodeClick(Ar,(0,re.F)(Ce)),Ae?mt(Ar):nt(Ar)},We=function(Ar){tt.onNodeDoubleClick(Ar,(0,re.F)(Ce))},at=function(Ar){tt.onNodeMouseEnter(Ar,(0,re.F)(Ce))},Re=function(Ar){tt.onNodeMouseLeave(Ar,(0,re.F)(Ce))},xe=function(Ar){tt.onNodeContextMenu(Ar,(0,re.F)(Ce))},ye=x.useMemo(function(){return!!(tt.draggable&&(!tt.draggable.nodeDraggable||tt.draggable.nodeDraggable(Ye)))},[tt.draggable,Ye]),Fe=function(Ar){Ar.stopPropagation(),Me(!0),tt.onNodeDragStart(Ar,Ce);try{Ar.dataTransfer.setData("text/plain","")}catch(fn){}},Qe=function(Ar){Ar.preventDefault(),Ar.stopPropagation(),tt.onNodeDragEnter(Ar,Ce)},Ie=function(Ar){Ar.preventDefault(),Ar.stopPropagation(),tt.onNodeDragOver(Ar,Ce)},vt=function(Ar){Ar.stopPropagation(),tt.onNodeDragLeave(Ar,Ce)},yt=function(Ar){Ar.stopPropagation(),Me(!1),tt.onNodeDragEnd(Ar,Ce)},xt=function(Ar){Ar.preventDefault(),Ar.stopPropagation(),Me(!1),tt.onNodeDrop(Ar,Ce)},bt=function(Ar){rt||tt.onNodeExpand(Ar,(0,re.F)(Ce))},ht=x.useMemo(function(){var Dr=(0,te.Z)(tt.keyEntities,de)||{},Ar=Dr.children;return!!(Ar||[]).length},[tt.keyEntities,de]),kt=x.useMemo(function(){return Oe===!1?!1:Oe||!tt.loadData&&!ht||tt.loadData&&Ce.loaded&&!ht},[Oe,tt.loadData,ht,Ce.loaded]);x.useEffect(function(){rt||typeof tt.loadData=="function"&&et&&!kt&&!Ce.loaded&&tt.onNodeLoad((0,re.F)(Ce))},[rt,tt.loadData,tt.onNodeLoad,et,kt,Ce]);var Tt=x.useMemo(function(){var Dr;return(Dr=tt.draggable)!==null&&Dr!==void 0&&Dr.icon?x.createElement("span",{className:"".concat(tt.prefixCls,"-draggable-icon")},tt.draggable.icon):null},[tt.draggable]),Pt=function(Ar){var fn=Ce.switcherIcon||tt.switcherIcon;return typeof fn=="function"?fn((0,y.Z)((0,y.Z)({},Ce),{},{isLeaf:Ar})):fn},Vt=function(){if(kt){var Ar=Pt(!0);return Ar!==!1?x.createElement("span",{className:oe()("".concat(tt.prefixCls,"-switcher"),"".concat(tt.prefixCls,"-switcher-noop"))},Ar):null}var fn=Pt(!1);return fn!==!1?x.createElement("span",{onClick:bt,className:oe()("".concat(tt.prefixCls,"-switcher"),"".concat(tt.prefixCls,"-switcher_").concat(et?ue:ce))},fn):null},vr=x.useMemo(function(){if(!ct)return null;var Dr=typeof ct!="boolean"?ct:null;return x.createElement("span",{className:oe()("".concat(tt.prefixCls,"-checkbox"),(0,wt.Z)((0,wt.Z)((0,wt.Z)({},"".concat(tt.prefixCls,"-checkbox-checked"),Le),"".concat(tt.prefixCls,"-checkbox-indeterminate"),!Le&&Ue),"".concat(tt.prefixCls,"-checkbox-disabled"),Ge||Ce.disableCheckbox)),onClick:nt,role:"checkbox","aria-checked":Ue?"mixed":Le,"aria-disabled":Ge||Ce.disableCheckbox,"aria-label":"Select ".concat(typeof Ce.title=="string"?Ce.title:"tree node")},Dr)},[ct,Le,Ue,Ge,Ce.disableCheckbox,Ce.title]),Yt=x.useMemo(function(){return kt?null:et?ue:ce},[kt,et]),Cr=x.useMemo(function(){return x.createElement("span",{className:oe()("".concat(tt.prefixCls,"-iconEle"),"".concat(tt.prefixCls,"-icon__").concat(Yt||"docu"),(0,wt.Z)({},"".concat(tt.prefixCls,"-icon_loading"),rt))})},[tt.prefixCls,Yt,rt]),jr=x.useMemo(function(){var Dr=!!tt.draggable,Ar=!Ce.disabled&&Dr&&tt.dragOverNodeKey===de;return Ar?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=x.useMemo(function(){var Dr=Ce.title,Ar=Dr===void 0?he:Dr,fn="".concat(tt.prefixCls,"-node-content-wrapper"),or;if(tt.showIcon){var Zt=Ce.icon||tt.icon;or=Zt?x.createElement("span",{className:oe()("".concat(tt.prefixCls,"-iconEle"),"".concat(tt.prefixCls,"-icon__customize"))},typeof Zt=="function"?Zt(Ce):Zt):Cr}else tt.loadData&&rt&&(or=Cr);var ir;return typeof Ar=="function"?ir=Ar(Ye):tt.titleRender?ir=tt.titleRender(Ye):ir=Ar,x.createElement("span",{ref:lt,title:typeof Ar=="string"?Ar:"",className:oe()(fn,"".concat(fn,"-").concat(Yt||"normal"),(0,wt.Z)({},"".concat(tt.prefixCls,"-node-selected"),!Ge&&(st||ze))),onMouseEnter:at,onMouseLeave:Re,onContextMenu:xe,onClick:je,onDoubleClick:We},or,x.createElement("span",{className:"".concat(tt.prefixCls,"-title")},ir),jr)},[tt.prefixCls,tt.showIcon,Ce,tt.icon,Cr,tt.titleRender,Ye,Yt,at,Re,xe,je,We]),Mr=(0,ie.Z)(ft,{aria:!0,data:!0}),Xr=(0,te.Z)(tt.keyEntities,de)||{},mn=Xr.level,cn=Xe[Xe.length-1],Yr=!Ge&&ye,kn=tt.draggingNodeKey===de,En=Ke!==void 0?{"aria-selected":!!Ke}:void 0;return x.createElement("div",(0,Je.Z)({ref:ot,role:"treeitem","aria-expanded":Oe?void 0:et,className:oe()(ge,"".concat(tt.prefixCls,"-treenode"),(ke={},(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)(ke,"".concat(tt.prefixCls,"-treenode-disabled"),Ge),"".concat(tt.prefixCls,"-treenode-switcher-").concat(et?"open":"close"),!Oe),"".concat(tt.prefixCls,"-treenode-checkbox-checked"),Le),"".concat(tt.prefixCls,"-treenode-checkbox-indeterminate"),Ue),"".concat(tt.prefixCls,"-treenode-selected"),st),"".concat(tt.prefixCls,"-treenode-loading"),rt),"".concat(tt.prefixCls,"-treenode-active"),it),"".concat(tt.prefixCls,"-treenode-leaf-last"),cn),"".concat(tt.prefixCls,"-treenode-draggable"),ye),"dragging",kn),(0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)((0,wt.Z)(ke,"drop-target",tt.dropTargetKey===de),"drop-container",tt.dropContainerKey===de),"drag-over",!Ge&&De),"drag-over-gap-top",!Ge&&_e),"drag-over-gap-bottom",!Ge&&Ee),"filter-node",(Pe=tt.filterTreeNode)===null||Pe===void 0?void 0:Pe.call(tt,(0,re.F)(Ce))),"".concat(tt.prefixCls,"-treenode-leaf"),kt))),style:Se,draggable:Yr,onDragStart:Yr?Fe:void 0,onDragEnter:ye?Qe:void 0,onDragOver:ye?Ie:void 0,onDragLeave:ye?vt:void 0,onDrop:ye?xt:void 0,onDragEnd:ye?yt:void 0,onMouseMove:$e},En,Mr),x.createElement(E,{prefixCls:tt.prefixCls,level:mn,isStart:He,isEnd:Xe}),Tt,Vt(),vr,Pr)};me.isTreeNode=1;var fe=me},30699:function(Kt,_t,Ve){"use strict";Ve.d(_t,{k:function(){return wt},y:function(){return y}});var Je=Ve(59301),wt=Je.createContext(null),y=Je.createContext({})},3741:function(Kt,_t,Ve){"use strict";Ve.d(_t,{OF:function(){return de.Z},y6:function(){return ce.y},ZP:function(){return Ge}});var Je=Ve(54476),wt=Ve(76190),y=Ve(33885),we=Ve(94480),ve=Ve(67732),x=Ve(83652),z=Ve(31226),oe=Ve(42403),ie=Ve(158),ee=Ve(20068),se=Ve(92310),E=Ve.n(se),te=Ve(10228),re=Ve(26112),le=Ve(48736),ue=Ve(59301),ce=Ve(30699),he=function(mt){var nt=mt.dropPosition,Ae=mt.dropLevelOffset,je=mt.indent,We={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(nt){case-1:We.top=0,We.left=-Ae*je;break;case 1:We.bottom=0,We.left=-Ae*je;break;case 0:We.bottom=0,We.left=je;break}return ue.createElement("div",{style:We})},me=he;function fe(ct){if(ct==null)throw new TypeError("Cannot destructure "+ct)}var be=Ve(42978),Ce=Ve(75931),Te=Ve(34280),Pe=Ve(48911),ke=Ve(77900),de=Ve(639);function ge(ct,mt){var nt=ue.useState(!1),Ae=(0,be.Z)(nt,2),je=Ae[0],We=Ae[1];(0,Te.Z)(function(){if(je)return ct(),function(){mt()}},[je]),(0,Te.Z)(function(){return We(!0),function(){We(!1)}},[])}var Se=ge,De=Ve(34061),_e=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ee=ue.forwardRef(function(ct,mt){var nt=ct.className,Ae=ct.style,je=ct.motion,We=ct.motionNodes,at=ct.motionType,Re=ct.onMotionStart,xe=ct.onMotionEnd,ye=ct.active,Fe=ct.treeNodeRequiredProps,Qe=(0,Ce.Z)(ct,_e),Ie=ue.useState(!0),vt=(0,be.Z)(Ie,2),yt=vt[0],xt=vt[1],bt=ue.useContext(ce.k),ht=bt.prefixCls,kt=We&&at!=="hide";(0,Te.Z)(function(){We&&kt!==yt&&xt(kt)},[We]);var Tt=function(){We&&Re()},Pt=ue.useRef(!1),Vt=function(){We&&!Pt.current&&(Pt.current=!0,xe())};Se(Tt,Vt);var vr=function(Cr){kt===Cr&&Vt()};return We?ue.createElement(ke.default,(0,Je.Z)({ref:mt,visible:yt},je,{motionAppear:at==="show",onVisibleChanged:vr}),function(Yt,Cr){var jr=Yt.className,Pr=Yt.style;return ue.createElement("div",{ref:Cr,className:E()("".concat(ht,"-treenode-motion"),jr),style:Pr},We.map(function(Mr){var Xr=Object.assign({},(fe(Mr.data),Mr.data)),mn=Mr.title,cn=Mr.key,Yr=Mr.isStart,kn=Mr.isEnd;delete Xr.children;var En=(0,De.H8)(cn,Fe);return ue.createElement(de.Z,(0,Je.Z)({},Xr,En,{title:mn,active:ye,data:Mr.data,key:cn,isStart:Yr,isEnd:kn}))}))}):ue.createElement(de.Z,(0,Je.Z)({domRef:mt,className:nt,style:Ae},Qe,{active:ye}))}),Oe=Ee;function He(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],nt=ct.length,Ae=mt.length;if(Math.abs(nt-Ae)!==1)return{add:!1,key:null};function je(We,at){var Re=new Map;We.forEach(function(ye){Re.set(ye,!0)});var xe=at.filter(function(ye){return!Re.has(ye)});return xe.length===1?xe[0]:null}return nt<Ae?{add:!0,key:je(ct,mt)}:{add:!1,key:je(mt,ct)}}function Xe(ct,mt,nt){var Ae=ct.findIndex(function(Re){return Re.key===nt}),je=ct[Ae+1],We=mt.findIndex(function(Re){return Re.key===nt});if(je){var at=mt.findIndex(function(Re){return Re.key===je.key});return mt.slice(We+1,at)}return mt.slice(We+1)}var et=["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"],st={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Le=function(){},Ue="RC_TREE_MOTION_".concat(Math.random()),rt={key:Ue},ot={key:Ue,level:0,index:0,pos:"0",node:rt,nodes:[rt]},it={parent:null,children:[],pos:ot.pos,data:rt,title:null,key:Ue,isStart:[],isEnd:[]};function Ye(ct,mt,nt,Ae){return mt===!1||!nt?ct:ct.slice(0,Math.ceil(nt/Ae)+1)}function $e(ct){var mt=ct.key,nt=ct.pos;return(0,De.km)(mt,nt)}function Ke(ct){for(var mt=String(ct.data.key),nt=ct;nt.parent;)nt=nt.parent,mt="".concat(nt.data.key," > ").concat(mt);return mt}var ft=ue.forwardRef(function(ct,mt){var nt=ct.prefixCls,Ae=ct.data,je=ct.selectable,We=ct.checkable,at=ct.expandedKeys,Re=ct.selectedKeys,xe=ct.checkedKeys,ye=ct.loadedKeys,Fe=ct.loadingKeys,Qe=ct.halfCheckedKeys,Ie=ct.keyEntities,vt=ct.disabled,yt=ct.dragging,xt=ct.dragOverNodeKey,bt=ct.dropPosition,ht=ct.motion,kt=ct.height,Tt=ct.itemHeight,Pt=ct.virtual,Vt=ct.scrollWidth,vr=ct.focusable,Yt=ct.activeItem,Cr=ct.focused,jr=ct.tabIndex,Pr=ct.onKeyDown,Mr=ct.onFocus,Xr=ct.onBlur,mn=ct.onActiveChange,cn=ct.onListChangeStart,Yr=ct.onListChangeEnd,kn=(0,Ce.Z)(ct,et),En=ue.useRef(null),Dr=ue.useRef(null);ue.useImperativeHandle(mt,function(){return{scrollTo:function(fr){En.current.scrollTo(fr)},getIndentWidth:function(){return Dr.current.offsetWidth}}});var Ar=ue.useState(at),fn=(0,be.Z)(Ar,2),or=fn[0],Zt=fn[1],ir=ue.useState(Ae),Nr=(0,be.Z)(ir,2),gr=Nr[0],Hr=Nr[1],Qr=ue.useState(Ae),rn=(0,be.Z)(Qr,2),Kr=rn[0],Wr=rn[1],dn=ue.useState([]),pr=(0,be.Z)(dn,2),Wt=pr[0],Sr=pr[1],Gr=ue.useState(null),gn=(0,be.Z)(Gr,2),Ct=gn[0],Dt=gn[1],nr=ue.useRef(Ae);nr.current=Ae;function Gt(){var hr=nr.current;Hr(hr),Wr(hr),Sr([]),Dt(null),Yr()}(0,Te.Z)(function(){Zt(at);var hr=He(or,at);if(hr.key!==null)if(hr.add){var fr=gr.findIndex(function(lr){var br=lr.key;return br===hr.key}),kr=Ye(Xe(gr,Ae,hr.key),Pt,kt,Tt),sr=gr.slice();sr.splice(fr+1,0,it),Wr(sr),Sr(kr),Dt("show")}else{var xr=Ae.findIndex(function(lr){var br=lr.key;return br===hr.key}),ar=Ye(Xe(Ae,gr,hr.key),Pt,kt,Tt),$t=Ae.slice();$t.splice(xr+1,0,it),Wr($t),Sr(ar),Dt("hide")}else gr!==Ae&&(Hr(Ae),Wr(Ae))},[at,Ae]),ue.useEffect(function(){yt||Gt()},[yt]);var jt=ht?Kr:Ae,tr={expandedKeys:at,selectedKeys:Re,loadedKeys:ye,loadingKeys:Fe,checkedKeys:xe,halfCheckedKeys:Qe,dragOverNodeKey:xt,dropPosition:bt,keyEntities:Ie};return ue.createElement(ue.Fragment,null,Cr&&Yt&&ue.createElement("span",{style:st,"aria-live":"assertive"},Ke(Yt)),ue.createElement("div",null,ue.createElement("input",{style:st,disabled:vr===!1||vt,tabIndex:vr!==!1?jr:null,onKeyDown:Pr,onFocus:Mr,onBlur:Xr,value:"",onChange:Le,"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:Dr,className:"".concat(nt,"-indent-unit")}))),ue.createElement(Pe.Z,(0,Je.Z)({},kn,{data:jt,itemKey:$e,height:kt,fullHeight:!1,virtual:Pt,itemHeight:Tt,scrollWidth:Vt,prefixCls:"".concat(nt,"-list"),ref:En,role:"tree",onVisibleChange:function(fr){fr.every(function(kr){return $e(kr)!==Ue})&&Gt()}}),function(hr){var fr=hr.pos,kr=Object.assign({},(fe(hr.data),hr.data)),sr=hr.title,xr=hr.key,ar=hr.isStart,$t=hr.isEnd,lr=(0,De.km)(xr,fr);delete kr.key,delete kr.children;var br=(0,De.H8)(lr,tr);return ue.createElement(Oe,(0,Je.Z)({},kr,br,{title:sr,active:!!Yt&&xr===Yt.key,pos:fr,data:hr.data,isStart:ar,isEnd:$t,motion:ht,motionNodes:xr===Ue?Wt:null,motionType:Ct,onMotionStart:cn,onMotionEnd:Gt,treeNodeRequiredProps:tr,onMouseMove:function(){mn(null)}}))}))}),tt=ft,ut=Ve(82661),lt=Ve(34643),Ze=Ve(65065),Ne=10,ze=function(ct){(0,oe.Z)(nt,ct);var mt=(0,ie.Z)(nt);function nt(){var Ae;(0,ve.Z)(this,nt);for(var je=arguments.length,We=new Array(je),at=0;at<je;at++)We[at]=arguments[at];return Ae=mt.call.apply(mt,[this].concat(We)),(0,ee.Z)((0,z.Z)(Ae),"destroyed",!1),(0,ee.Z)((0,z.Z)(Ae),"delayedDragEnterLogic",void 0),(0,ee.Z)((0,z.Z)(Ae),"loadingRetryTimes",{}),(0,ee.Z)((0,z.Z)(Ae),"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,De.w$)()}),(0,ee.Z)((0,z.Z)(Ae),"dragStartMousePosition",null),(0,ee.Z)((0,z.Z)(Ae),"dragNodeProps",null),(0,ee.Z)((0,z.Z)(Ae),"currentMouseOverDroppableNodeKey",null),(0,ee.Z)((0,z.Z)(Ae),"listRef",ue.createRef()),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragStart",function(Re,xe){var ye=Ae.state,Fe=ye.expandedKeys,Qe=ye.keyEntities,Ie=Ae.props.onDragStart,vt=xe.eventKey;Ae.dragNodeProps=xe,Ae.dragStartMousePosition={x:Re.clientX,y:Re.clientY};var yt=(0,ut._5)(Fe,vt);Ae.setState({draggingNodeKey:vt,dragChildrenKeys:(0,ut.wA)(vt,Qe),indent:Ae.listRef.current.getIndentWidth()}),Ae.setExpandedKeys(yt),window.addEventListener("dragend",Ae.onWindowDragEnd),Ie==null||Ie({event:Re,node:(0,De.F)(xe)})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragEnter",function(Re,xe){var ye=Ae.state,Fe=ye.expandedKeys,Qe=ye.keyEntities,Ie=ye.dragChildrenKeys,vt=ye.flattenNodes,yt=ye.indent,xt=Ae.props,bt=xt.onDragEnter,ht=xt.onExpand,kt=xt.allowDrop,Tt=xt.direction,Pt=xe.pos,Vt=xe.eventKey;if(Ae.currentMouseOverDroppableNodeKey!==Vt&&(Ae.currentMouseOverDroppableNodeKey=Vt),!Ae.dragNodeProps){Ae.resetDragState();return}var vr=(0,ut.OM)(Re,Ae.dragNodeProps,xe,yt,Ae.dragStartMousePosition,kt,vt,Qe,Fe,Tt),Yt=vr.dropPosition,Cr=vr.dropLevelOffset,jr=vr.dropTargetKey,Pr=vr.dropContainerKey,Mr=vr.dropTargetPos,Xr=vr.dropAllowed,mn=vr.dragOverNodeKey;if(Ie.includes(jr)||!Xr){Ae.resetDragState();return}if(Ae.delayedDragEnterLogic||(Ae.delayedDragEnterLogic={}),Object.keys(Ae.delayedDragEnterLogic).forEach(function(cn){clearTimeout(Ae.delayedDragEnterLogic[cn])}),Ae.dragNodeProps.eventKey!==xe.eventKey&&(Re.persist(),Ae.delayedDragEnterLogic[Pt]=window.setTimeout(function(){if(Ae.state.draggingNodeKey!==null){var cn=(0,we.Z)(Fe),Yr=(0,Ze.Z)(Qe,xe.eventKey);Yr&&(Yr.children||[]).length&&(cn=(0,ut.L0)(Fe,xe.eventKey)),Ae.props.hasOwnProperty("expandedKeys")||Ae.setExpandedKeys(cn),ht==null||ht(cn,{node:(0,De.F)(xe),expanded:!0,nativeEvent:Re.nativeEvent})}},800)),Ae.dragNodeProps.eventKey===jr&&Cr===0){Ae.resetDragState();return}Ae.setState({dragOverNodeKey:mn,dropPosition:Yt,dropLevelOffset:Cr,dropTargetKey:jr,dropContainerKey:Pr,dropTargetPos:Mr,dropAllowed:Xr}),bt==null||bt({event:Re,node:(0,De.F)(xe),expandedKeys:Fe})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragOver",function(Re,xe){var ye=Ae.state,Fe=ye.dragChildrenKeys,Qe=ye.flattenNodes,Ie=ye.keyEntities,vt=ye.expandedKeys,yt=ye.indent,xt=Ae.props,bt=xt.onDragOver,ht=xt.allowDrop,kt=xt.direction;if(Ae.dragNodeProps){var Tt=(0,ut.OM)(Re,Ae.dragNodeProps,xe,yt,Ae.dragStartMousePosition,ht,Qe,Ie,vt,kt),Pt=Tt.dropPosition,Vt=Tt.dropLevelOffset,vr=Tt.dropTargetKey,Yt=Tt.dropContainerKey,Cr=Tt.dropTargetPos,jr=Tt.dropAllowed,Pr=Tt.dragOverNodeKey;Fe.includes(vr)||!jr||(Ae.dragNodeProps.eventKey===vr&&Vt===0?Ae.state.dropPosition===null&&Ae.state.dropLevelOffset===null&&Ae.state.dropTargetKey===null&&Ae.state.dropContainerKey===null&&Ae.state.dropTargetPos===null&&Ae.state.dropAllowed===!1&&Ae.state.dragOverNodeKey===null||Ae.resetDragState():Pt===Ae.state.dropPosition&&Vt===Ae.state.dropLevelOffset&&vr===Ae.state.dropTargetKey&&Yt===Ae.state.dropContainerKey&&Cr===Ae.state.dropTargetPos&&jr===Ae.state.dropAllowed&&Pr===Ae.state.dragOverNodeKey||Ae.setState({dropPosition:Pt,dropLevelOffset:Vt,dropTargetKey:vr,dropContainerKey:Yt,dropTargetPos:Cr,dropAllowed:jr,dragOverNodeKey:Pr}),bt==null||bt({event:Re,node:(0,De.F)(xe)}))}}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragLeave",function(Re,xe){Ae.currentMouseOverDroppableNodeKey===xe.eventKey&&!Re.currentTarget.contains(Re.relatedTarget)&&(Ae.resetDragState(),Ae.currentMouseOverDroppableNodeKey=null);var ye=Ae.props.onDragLeave;ye==null||ye({event:Re,node:(0,De.F)(xe)})}),(0,ee.Z)((0,z.Z)(Ae),"onWindowDragEnd",function(Re){Ae.onNodeDragEnd(Re,null,!0),window.removeEventListener("dragend",Ae.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragEnd",function(Re,xe){var ye=Ae.props.onDragEnd;Ae.setState({dragOverNodeKey:null}),Ae.cleanDragState(),ye==null||ye({event:Re,node:(0,De.F)(xe)}),Ae.dragNodeProps=null,window.removeEventListener("dragend",Ae.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDrop",function(Re,xe){var ye,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Qe=Ae.state,Ie=Qe.dragChildrenKeys,vt=Qe.dropPosition,yt=Qe.dropTargetKey,xt=Qe.dropTargetPos,bt=Qe.dropAllowed;if(bt){var ht=Ae.props.onDrop;if(Ae.setState({dragOverNodeKey:null}),Ae.cleanDragState(),yt!==null){var kt=(0,y.Z)((0,y.Z)({},(0,De.H8)(yt,Ae.getTreeNodeRequiredProps())),{},{active:((ye=Ae.getActiveItem())===null||ye===void 0?void 0:ye.key)===yt,data:(0,Ze.Z)(Ae.state.keyEntities,yt).node}),Tt=Ie.includes(yt);(0,le.ZP)(!Tt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Pt=(0,ut.yx)(xt),Vt={event:Re,node:(0,De.F)(kt),dragNode:Ae.dragNodeProps?(0,De.F)(Ae.dragNodeProps):null,dragNodesKeys:[Ae.dragNodeProps.eventKey].concat(Ie),dropToGap:vt!==0,dropPosition:vt+Number(Pt[Pt.length-1])};Fe||ht==null||ht(Vt),Ae.dragNodeProps=null}}}),(0,ee.Z)((0,z.Z)(Ae),"cleanDragState",function(){var Re=Ae.state.draggingNodeKey;Re!==null&&Ae.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Ae.dragStartMousePosition=null,Ae.currentMouseOverDroppableNodeKey=null}),(0,ee.Z)((0,z.Z)(Ae),"triggerExpandActionExpand",function(Re,xe){var ye=Ae.state,Fe=ye.expandedKeys,Qe=ye.flattenNodes,Ie=xe.expanded,vt=xe.key,yt=xe.isLeaf;if(!(yt||Re.shiftKey||Re.metaKey||Re.ctrlKey)){var xt=Qe.filter(function(ht){return ht.key===vt})[0],bt=(0,De.F)((0,y.Z)((0,y.Z)({},(0,De.H8)(vt,Ae.getTreeNodeRequiredProps())),{},{data:xt.data}));Ae.setExpandedKeys(Ie?(0,ut._5)(Fe,vt):(0,ut.L0)(Fe,vt)),Ae.onNodeExpand(Re,bt)}}),(0,ee.Z)((0,z.Z)(Ae),"onNodeClick",function(Re,xe){var ye=Ae.props,Fe=ye.onClick,Qe=ye.expandAction;Qe==="click"&&Ae.triggerExpandActionExpand(Re,xe),Fe==null||Fe(Re,xe)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDoubleClick",function(Re,xe){var ye=Ae.props,Fe=ye.onDoubleClick,Qe=ye.expandAction;Qe==="doubleClick"&&Ae.triggerExpandActionExpand(Re,xe),Fe==null||Fe(Re,xe)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeSelect",function(Re,xe){var ye=Ae.state.selectedKeys,Fe=Ae.state,Qe=Fe.keyEntities,Ie=Fe.fieldNames,vt=Ae.props,yt=vt.onSelect,xt=vt.multiple,bt=xe.selected,ht=xe[Ie.key],kt=!bt;kt?xt?ye=(0,ut.L0)(ye,ht):ye=[ht]:ye=(0,ut._5)(ye,ht);var Tt=ye.map(function(Pt){var Vt=(0,Ze.Z)(Qe,Pt);return Vt?Vt.node:null}).filter(Boolean);Ae.setUncontrolledState({selectedKeys:ye}),yt==null||yt(ye,{event:"select",selected:kt,node:xe,selectedNodes:Tt,nativeEvent:Re.nativeEvent})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeCheck",function(Re,xe,ye){var Fe=Ae.state,Qe=Fe.keyEntities,Ie=Fe.checkedKeys,vt=Fe.halfCheckedKeys,yt=Ae.props,xt=yt.checkStrictly,bt=yt.onCheck,ht=xe.key,kt,Tt={event:"check",node:xe,checked:ye,nativeEvent:Re.nativeEvent};if(xt){var Pt=ye?(0,ut.L0)(Ie,ht):(0,ut._5)(Ie,ht),Vt=(0,ut._5)(vt,ht);kt={checked:Pt,halfChecked:Vt},Tt.checkedNodes=Pt.map(function(Mr){return(0,Ze.Z)(Qe,Mr)}).filter(Boolean).map(function(Mr){return Mr.node}),Ae.setUncontrolledState({checkedKeys:Pt})}else{var vr=(0,lt.S)([].concat((0,we.Z)(Ie),[ht]),!0,Qe),Yt=vr.checkedKeys,Cr=vr.halfCheckedKeys;if(!ye){var jr=new Set(Yt);jr.delete(ht);var Pr=(0,lt.S)(Array.from(jr),{checked:!1,halfCheckedKeys:Cr},Qe);Yt=Pr.checkedKeys,Cr=Pr.halfCheckedKeys}kt=Yt,Tt.checkedNodes=[],Tt.checkedNodesPositions=[],Tt.halfCheckedKeys=Cr,Yt.forEach(function(Mr){var Xr=(0,Ze.Z)(Qe,Mr);if(Xr){var mn=Xr.node,cn=Xr.pos;Tt.checkedNodes.push(mn),Tt.checkedNodesPositions.push({node:mn,pos:cn})}}),Ae.setUncontrolledState({checkedKeys:Yt},!1,{halfCheckedKeys:Cr})}bt==null||bt(kt,Tt)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeLoad",function(Re){var xe,ye=Re.key,Fe=Ae.state.keyEntities,Qe=(0,Ze.Z)(Fe,ye);if(!(Qe!=null&&(xe=Qe.children)!==null&&xe!==void 0&&xe.length)){var Ie=new Promise(function(vt,yt){Ae.setState(function(xt){var bt=xt.loadedKeys,ht=bt===void 0?[]:bt,kt=xt.loadingKeys,Tt=kt===void 0?[]:kt,Pt=Ae.props,Vt=Pt.loadData,vr=Pt.onLoad;if(!Vt||ht.includes(ye)||Tt.includes(ye))return null;var Yt=Vt(Re);return Yt.then(function(){var Cr=Ae.state.loadedKeys,jr=(0,ut.L0)(Cr,ye);vr==null||vr(jr,{event:"load",node:Re}),Ae.setUncontrolledState({loadedKeys:jr}),Ae.setState(function(Pr){return{loadingKeys:(0,ut._5)(Pr.loadingKeys,ye)}}),vt()}).catch(function(Cr){if(Ae.setState(function(Pr){return{loadingKeys:(0,ut._5)(Pr.loadingKeys,ye)}}),Ae.loadingRetryTimes[ye]=(Ae.loadingRetryTimes[ye]||0)+1,Ae.loadingRetryTimes[ye]>=Ne){var jr=Ae.state.loadedKeys;(0,le.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ae.setUncontrolledState({loadedKeys:(0,ut.L0)(jr,ye)}),vt()}yt(Cr)}),{loadingKeys:(0,ut.L0)(Tt,ye)}})});return Ie.catch(function(){}),Ie}}),(0,ee.Z)((0,z.Z)(Ae),"onNodeMouseEnter",function(Re,xe){var ye=Ae.props.onMouseEnter;ye==null||ye({event:Re,node:xe})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeMouseLeave",function(Re,xe){var ye=Ae.props.onMouseLeave;ye==null||ye({event:Re,node:xe})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeContextMenu",function(Re,xe){var ye=Ae.props.onRightClick;ye&&(Re.preventDefault(),ye({event:Re,node:xe}))}),(0,ee.Z)((0,z.Z)(Ae),"onFocus",function(){var Re=Ae.props.onFocus;Ae.setState({focused:!0});for(var xe=arguments.length,ye=new Array(xe),Fe=0;Fe<xe;Fe++)ye[Fe]=arguments[Fe];Re==null||Re.apply(void 0,ye)}),(0,ee.Z)((0,z.Z)(Ae),"onBlur",function(){var Re=Ae.props.onBlur;Ae.setState({focused:!1}),Ae.onActiveChange(null);for(var xe=arguments.length,ye=new Array(xe),Fe=0;Fe<xe;Fe++)ye[Fe]=arguments[Fe];Re==null||Re.apply(void 0,ye)}),(0,ee.Z)((0,z.Z)(Ae),"getTreeNodeRequiredProps",function(){var Re=Ae.state,xe=Re.expandedKeys,ye=Re.selectedKeys,Fe=Re.loadedKeys,Qe=Re.loadingKeys,Ie=Re.checkedKeys,vt=Re.halfCheckedKeys,yt=Re.dragOverNodeKey,xt=Re.dropPosition,bt=Re.keyEntities;return{expandedKeys:xe||[],selectedKeys:ye||[],loadedKeys:Fe||[],loadingKeys:Qe||[],checkedKeys:Ie||[],halfCheckedKeys:vt||[],dragOverNodeKey:yt,dropPosition:xt,keyEntities:bt}}),(0,ee.Z)((0,z.Z)(Ae),"setExpandedKeys",function(Re){var xe=Ae.state,ye=xe.treeData,Fe=xe.fieldNames,Qe=(0,De.oH)(ye,Re,Fe);Ae.setUncontrolledState({expandedKeys:Re,flattenNodes:Qe},!0)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeExpand",function(Re,xe){var ye=Ae.state.expandedKeys,Fe=Ae.state,Qe=Fe.listChanging,Ie=Fe.fieldNames,vt=Ae.props,yt=vt.onExpand,xt=vt.loadData,bt=xe.expanded,ht=xe[Ie.key];if(!Qe){var kt=ye.includes(ht),Tt=!bt;if((0,le.ZP)(bt&&kt||!bt&&!kt,"Expand state not sync with index check"),ye=Tt?(0,ut.L0)(ye,ht):(0,ut._5)(ye,ht),Ae.setExpandedKeys(ye),yt==null||yt(ye,{node:xe,expanded:Tt,nativeEvent:Re.nativeEvent}),Tt&&xt){var Pt=Ae.onNodeLoad(xe);Pt&&Pt.then(function(){var Vt=(0,De.oH)(Ae.state.treeData,ye,Ie);Ae.setUncontrolledState({flattenNodes:Vt})}).catch(function(){var Vt=Ae.state.expandedKeys,vr=(0,ut._5)(Vt,ht);Ae.setExpandedKeys(vr)})}}}),(0,ee.Z)((0,z.Z)(Ae),"onListChangeStart",function(){Ae.setUncontrolledState({listChanging:!0})}),(0,ee.Z)((0,z.Z)(Ae),"onListChangeEnd",function(){setTimeout(function(){Ae.setUncontrolledState({listChanging:!1})})}),(0,ee.Z)((0,z.Z)(Ae),"onActiveChange",function(Re){var xe=Ae.state.activeKey,ye=Ae.props,Fe=ye.onActiveChange,Qe=ye.itemScrollOffset,Ie=Qe===void 0?0:Qe;xe!==Re&&(Ae.setState({activeKey:Re}),Re!==null&&Ae.scrollTo({key:Re,offset:Ie}),Fe==null||Fe(Re))}),(0,ee.Z)((0,z.Z)(Ae),"getActiveItem",function(){var Re=Ae.state,xe=Re.activeKey,ye=Re.flattenNodes;return xe===null?null:ye.find(function(Fe){var Qe=Fe.key;return Qe===xe})||null}),(0,ee.Z)((0,z.Z)(Ae),"offsetActiveKey",function(Re){var xe=Ae.state,ye=xe.flattenNodes,Fe=xe.activeKey,Qe=ye.findIndex(function(yt){var xt=yt.key;return xt===Fe});Qe===-1&&Re<0&&(Qe=ye.length),Qe=(Qe+Re+ye.length)%ye.length;var Ie=ye[Qe];if(Ie){var vt=Ie.key;Ae.onActiveChange(vt)}else Ae.onActiveChange(null)}),(0,ee.Z)((0,z.Z)(Ae),"onKeyDown",function(Re){var xe=Ae.state,ye=xe.activeKey,Fe=xe.expandedKeys,Qe=xe.checkedKeys,Ie=xe.fieldNames,vt=Ae.props,yt=vt.onKeyDown,xt=vt.checkable,bt=vt.selectable;switch(Re.which){case te.Z.UP:{Ae.offsetActiveKey(-1),Re.preventDefault();break}case te.Z.DOWN:{Ae.offsetActiveKey(1),Re.preventDefault();break}}var ht=Ae.getActiveItem();if(ht&&ht.data){var kt=Ae.getTreeNodeRequiredProps(),Tt=ht.data.isLeaf===!1||!!(ht.data[Ie.children]||[]).length,Pt=(0,De.F)((0,y.Z)((0,y.Z)({},(0,De.H8)(ye,kt)),{},{data:ht.data,active:!0}));switch(Re.which){case te.Z.LEFT:{Tt&&Fe.includes(ye)?Ae.onNodeExpand({},Pt):ht.parent&&Ae.onActiveChange(ht.parent.key),Re.preventDefault();break}case te.Z.RIGHT:{Tt&&!Fe.includes(ye)?Ae.onNodeExpand({},Pt):ht.children&&ht.children.length&&Ae.onActiveChange(ht.children[0].key),Re.preventDefault();break}case te.Z.ENTER:case te.Z.SPACE:{xt&&!Pt.disabled&&Pt.checkable!==!1&&!Pt.disableCheckbox?Ae.onNodeCheck({},Pt,!Qe.includes(ye)):!xt&&bt&&!Pt.disabled&&Pt.selectable!==!1&&Ae.onNodeSelect({},Pt);break}}}yt==null||yt(Re)}),(0,ee.Z)((0,z.Z)(Ae),"setUncontrolledState",function(Re){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ae.destroyed){var Fe=!1,Qe=!0,Ie={};Object.keys(Re).forEach(function(vt){if(Ae.props.hasOwnProperty(vt)){Qe=!1;return}Fe=!0,Ie[vt]=Re[vt]}),Fe&&(!xe||Qe)&&Ae.setState((0,y.Z)((0,y.Z)({},Ie),ye))}}),(0,ee.Z)((0,z.Z)(Ae),"scrollTo",function(Re){Ae.listRef.current.scrollTo(Re)}),Ae}return(0,x.Z)(nt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var je=this.props,We=je.activeKey,at=je.itemScrollOffset,Re=at===void 0?0:at;We!==void 0&&We!==this.state.activeKey&&(this.setState({activeKey:We}),We!==null&&this.scrollTo({key:We,offset:Re}))}},{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 je=this.state,We=je.focused,at=je.flattenNodes,Re=je.keyEntities,xe=je.draggingNodeKey,ye=je.activeKey,Fe=je.dropLevelOffset,Qe=je.dropContainerKey,Ie=je.dropTargetKey,vt=je.dropPosition,yt=je.dragOverNodeKey,xt=je.indent,bt=this.props,ht=bt.prefixCls,kt=bt.className,Tt=bt.style,Pt=bt.showLine,Vt=bt.focusable,vr=bt.tabIndex,Yt=vr===void 0?0:vr,Cr=bt.selectable,jr=bt.showIcon,Pr=bt.icon,Mr=bt.switcherIcon,Xr=bt.draggable,mn=bt.checkable,cn=bt.checkStrictly,Yr=bt.disabled,kn=bt.motion,En=bt.loadData,Dr=bt.filterTreeNode,Ar=bt.height,fn=bt.itemHeight,or=bt.scrollWidth,Zt=bt.virtual,ir=bt.titleRender,Nr=bt.dropIndicatorRender,gr=bt.onContextMenu,Hr=bt.onScroll,Qr=bt.direction,rn=bt.rootClassName,Kr=bt.rootStyle,Wr=(0,re.Z)(this.props,{aria:!0,data:!0}),dn;Xr&&((0,wt.Z)(Xr)==="object"?dn=Xr:typeof Xr=="function"?dn={nodeDraggable:Xr}:dn={});var pr={prefixCls:ht,selectable:Cr,showIcon:jr,icon:Pr,switcherIcon:Mr,draggable:dn,draggingNodeKey:xe,checkable:mn,checkStrictly:cn,disabled:Yr,keyEntities:Re,dropLevelOffset:Fe,dropContainerKey:Qe,dropTargetKey:Ie,dropPosition:vt,dragOverNodeKey:yt,indent:xt,direction:Qr,dropIndicatorRender:Nr,loadData:En,filterTreeNode:Dr,titleRender:ir,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(ce.k.Provider,{value:pr},ue.createElement("div",{className:E()(ht,kt,rn,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(ht,"-show-line"),Pt),"".concat(ht,"-focused"),We),"".concat(ht,"-active-focused"),ye!==null)),style:Kr},ue.createElement(tt,(0,Je.Z)({ref:this.listRef,prefixCls:ht,style:Tt,data:at,disabled:Yr,selectable:Cr,checkable:!!mn,motion:kn,dragging:xe!==null,height:Ar,itemHeight:fn,virtual:Zt,focusable:Vt,focused:We,tabIndex:Yt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:gr,onScroll:Hr,scrollWidth:or},this.getTreeNodeRequiredProps(),Wr))))}}],[{key:"getDerivedStateFromProps",value:function(je,We){var at=We.prevProps,Re={prevProps:je};function xe(Yt){return!at&&je.hasOwnProperty(Yt)||at&&at[Yt]!==je[Yt]}var ye,Fe=We.fieldNames;if(xe("fieldNames")&&(Fe=(0,De.w$)(je.fieldNames),Re.fieldNames=Fe),xe("treeData")?ye=je.treeData:xe("children")&&((0,le.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ye=(0,De.zn)(je.children)),ye){Re.treeData=ye;var Qe=(0,De.I8)(ye,{fieldNames:Fe});Re.keyEntities=(0,y.Z)((0,ee.Z)({},Ue,ot),Qe.keyEntities)}var Ie=Re.keyEntities||We.keyEntities;if(xe("expandedKeys")||at&&xe("autoExpandParent"))Re.expandedKeys=je.autoExpandParent||!at&&je.defaultExpandParent?(0,ut.r7)(je.expandedKeys,Ie):je.expandedKeys;else if(!at&&je.defaultExpandAll){var vt=(0,y.Z)({},Ie);delete vt[Ue];var yt=[];Object.keys(vt).forEach(function(Yt){var Cr=vt[Yt];Cr.children&&Cr.children.length&&yt.push(Cr.key)}),Re.expandedKeys=yt}else!at&&je.defaultExpandedKeys&&(Re.expandedKeys=je.autoExpandParent||je.defaultExpandParent?(0,ut.r7)(je.defaultExpandedKeys,Ie):je.defaultExpandedKeys);if(Re.expandedKeys||delete Re.expandedKeys,ye||Re.expandedKeys){var xt=(0,De.oH)(ye||We.treeData,Re.expandedKeys||We.expandedKeys,Fe);Re.flattenNodes=xt}if(je.selectable&&(xe("selectedKeys")?Re.selectedKeys=(0,ut.BT)(je.selectedKeys,je):!at&&je.defaultSelectedKeys&&(Re.selectedKeys=(0,ut.BT)(je.defaultSelectedKeys,je))),je.checkable){var bt;if(xe("checkedKeys")?bt=(0,ut.E6)(je.checkedKeys)||{}:!at&&je.defaultCheckedKeys?bt=(0,ut.E6)(je.defaultCheckedKeys)||{}:ye&&(bt=(0,ut.E6)(je.checkedKeys)||{checkedKeys:We.checkedKeys,halfCheckedKeys:We.halfCheckedKeys}),bt){var ht=bt,kt=ht.checkedKeys,Tt=kt===void 0?[]:kt,Pt=ht.halfCheckedKeys,Vt=Pt===void 0?[]:Pt;if(!je.checkStrictly){var vr=(0,lt.S)(Tt,!0,Ie);Tt=vr.checkedKeys,Vt=vr.halfCheckedKeys}Re.checkedKeys=Tt,Re.halfCheckedKeys=Vt}}return xe("loadedKeys")&&(Re.loadedKeys=je.loadedKeys),Re}}]),nt}(ue.Component);(0,ee.Z)(ze,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:me,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(ze,"TreeNode",de.Z);var Me=ze,Ge=Me},82661:function(Kt,_t,Ve){"use strict";Ve.d(_t,{BT:function(){return ue},E6:function(){return me},L0:function(){return ee},OM:function(){return le},_5:function(){return ie},r7:function(){return fe},wA:function(){return E},yx:function(){return se}});var Je=Ve(94480),wt=Ve(76190),y=Ve(48736),we=Ve(59301),ve=Ve(639),x=Ve(65065),z=Ve(34061),oe=null;function ie(be,Ce){if(!be)return[];var Te=be.slice(),Pe=Te.indexOf(Ce);return Pe>=0&&Te.splice(Pe,1),Te}function ee(be,Ce){var Te=(be||[]).slice();return Te.indexOf(Ce)===-1&&Te.push(Ce),Te}function se(be){return be.split("-")}function E(be,Ce){var Te=[],Pe=(0,x.Z)(Ce,be);function ke(){var de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];de.forEach(function(ge){var Se=ge.key,De=ge.children;Te.push(Se),ke(De)})}return ke(Pe.children),Te}function te(be){if(be.parent){var Ce=se(be.pos);return Number(Ce[Ce.length-1])===be.parent.children.length-1}return!1}function re(be){var Ce=se(be.pos);return Number(Ce[Ce.length-1])===0}function le(be,Ce,Te,Pe,ke,de,ge,Se,De,_e){var Ee,Oe=be.clientX,He=be.clientY,Xe=be.target.getBoundingClientRect(),et=Xe.top,st=Xe.height,Le=(_e==="rtl"?-1:1)*(((ke==null?void 0:ke.x)||0)-Oe),Ue=(Le-12)/Pe,rt=De.filter(function(Ge){var ct;return(ct=Se[Ge])===null||ct===void 0||(ct=ct.children)===null||ct===void 0?void 0:ct.length}),ot=(0,x.Z)(Se,Te.eventKey);if(He<et+st/2){var it=ge.findIndex(function(Ge){return Ge.key===ot.key}),Ye=it<=0?0:it-1,$e=ge[Ye].key;ot=(0,x.Z)(Se,$e)}var Ke=ot.key,ft=ot,tt=ot.key,ut=0,lt=0;if(!rt.includes(Ke))for(var Ze=0;Ze<Ue&&te(ot);Ze+=1)ot=ot.parent,lt+=1;var Ne=Ce.data,ze=ot.node,Me=!0;return re(ot)&&ot.level===0&&He<et+st/2&&de({dragNode:Ne,dropNode:ze,dropPosition:-1})&&ot.key===Te.eventKey?ut=-1:(ft.children||[]).length&&rt.includes(tt)?de({dragNode:Ne,dropNode:ze,dropPosition:0})?ut=0:Me=!1:lt===0?Ue>-1.5?de({dragNode:Ne,dropNode:ze,dropPosition:1})?ut=1:Me=!1:de({dragNode:Ne,dropNode:ze,dropPosition:0})?ut=0:de({dragNode:Ne,dropNode:ze,dropPosition:1})?ut=1:Me=!1:de({dragNode:Ne,dropNode:ze,dropPosition:1})?ut=1:Me=!1,{dropPosition:ut,dropLevelOffset:lt,dropTargetKey:ot.key,dropTargetPos:ot.pos,dragOverNodeKey:tt,dropContainerKey:ut===0?null:((Ee=ot.parent)===null||Ee===void 0?void 0:Ee.key)||null,dropAllowed:Me}}function ue(be,Ce){if(be){var Te=Ce.multiple;return Te?be.slice():be.length?[be[0]]:be}}var ce=function(Ce){return Ce};function he(be,Ce){if(!be)return[];var Te=Ce||{},Pe=Te.processProps,ke=Pe===void 0?ce:Pe,de=Array.isArray(be)?be:[be];return de.map(function(ge){var Se=ge.children,De=_objectWithoutProperties(ge,oe),_e=he(Se,Ce);return React.createElement(TreeNode,_extends({key:De.key},ke(De)),_e)})}function me(be){if(!be)return null;var Ce;if(Array.isArray(be))Ce={checkedKeys:be,halfCheckedKeys:void 0};else if((0,wt.Z)(be)==="object")Ce={checkedKeys:be.checked||void 0,halfCheckedKeys:be.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ce}function fe(be,Ce){var Te=new Set;function Pe(ke){if(!Te.has(ke)){var de=(0,x.Z)(Ce,ke);if(de){Te.add(ke);var ge=de.parent,Se=de.node;Se.disabled||ge&&Pe(ge.key)}}}return(be||[]).forEach(function(ke){Pe(ke)}),(0,Je.Z)(Te)}},34643:function(Kt,_t,Ve){"use strict";Ve.d(_t,{S:function(){return z}});var Je=Ve(48736),wt=Ve(65065);function y(oe,ie){var ee=new Set;return oe.forEach(function(se){ie.has(se)||ee.add(se)}),ee}function we(oe){var ie=oe||{},ee=ie.disabled,se=ie.disableCheckbox,E=ie.checkable;return!!(ee||se)||E===!1}function ve(oe,ie,ee,se){for(var E=new Set(oe),te=new Set,re=0;re<=ee;re+=1){var le=ie.get(re)||new Set;le.forEach(function(me){var fe=me.key,be=me.node,Ce=me.children,Te=Ce===void 0?[]:Ce;E.has(fe)&&!se(be)&&Te.filter(function(Pe){return!se(Pe.node)}).forEach(function(Pe){E.add(Pe.key)})})}for(var ue=new Set,ce=ee;ce>=0;ce-=1){var he=ie.get(ce)||new Set;he.forEach(function(me){var fe=me.parent,be=me.node;if(!(se(be)||!me.parent||ue.has(me.parent.key))){if(se(me.parent.node)){ue.add(fe.key);return}var Ce=!0,Te=!1;(fe.children||[]).filter(function(Pe){return!se(Pe.node)}).forEach(function(Pe){var ke=Pe.key,de=E.has(ke);Ce&&!de&&(Ce=!1),!Te&&(de||te.has(ke))&&(Te=!0)}),Ce&&E.add(fe.key),Te&&te.add(fe.key),ue.add(fe.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(y(te,E))}}function x(oe,ie,ee,se,E){for(var te=new Set(oe),re=new Set(ie),le=0;le<=se;le+=1){var ue=ee.get(le)||new Set;ue.forEach(function(fe){var be=fe.key,Ce=fe.node,Te=fe.children,Pe=Te===void 0?[]:Te;!te.has(be)&&!re.has(be)&&!E(Ce)&&Pe.filter(function(ke){return!E(ke.node)}).forEach(function(ke){te.delete(ke.key)})})}re=new Set;for(var ce=new Set,he=se;he>=0;he-=1){var me=ee.get(he)||new Set;me.forEach(function(fe){var be=fe.parent,Ce=fe.node;if(!(E(Ce)||!fe.parent||ce.has(fe.parent.key))){if(E(fe.parent.node)){ce.add(be.key);return}var Te=!0,Pe=!1;(be.children||[]).filter(function(ke){return!E(ke.node)}).forEach(function(ke){var de=ke.key,ge=te.has(de);Te&&!ge&&(Te=!1),!Pe&&(ge||re.has(de))&&(Pe=!0)}),Te||te.delete(be.key),Pe&&re.add(be.key),ce.add(be.key)}})}return{checkedKeys:Array.from(te),halfCheckedKeys:Array.from(y(re,te))}}function z(oe,ie,ee,se){var E=[],te;se?te=se:te=we;var re=new Set(oe.filter(function(he){var me=!!(0,wt.Z)(ee,he);return me||E.push(he),me})),le=new Map,ue=0;Object.keys(ee).forEach(function(he){var me=ee[he],fe=me.level,be=le.get(fe);be||(be=new Set,le.set(fe,be)),be.add(me),ue=Math.max(ue,fe)}),(0,Je.ZP)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(he){return"'".concat(he,"'")}).join(", ")));var ce;return ie===!0?ce=ve(re,le,ue,te):ce=x(re,ie.halfCheckedKeys,le,ue,te),ce}},65065:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return Je}});function Je(wt,y){return wt[y]}},34061:function(Kt,_t,Ve){"use strict";Ve.d(_t,{F:function(){return fe},H8:function(){return me},I8:function(){return he},km:function(){return E},oH:function(){return ue},w$:function(){return te},zn:function(){return le}});var Je=Ve(76190),wt=Ve(94480),y=Ve(33885),we=Ve(75931),ve=Ve(11592),x=Ve(2738),z=Ve(48736),oe=Ve(65065),ie=["children"];function ee(be,Ce){return"".concat(be,"-").concat(Ce)}function se(be){return be&&be.type&&be.type.isTreeNode}function E(be,Ce){return be!=null?be:Ce}function te(be){var Ce=be||{},Te=Ce.title,Pe=Ce._title,ke=Ce.key,de=Ce.children,ge=Te||"title";return{title:ge,_title:Pe||[ge],key:ke||"key",children:de||"children"}}function re(be,Ce){var Te=new Map;function Pe(ke){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ke||[]).forEach(function(ge){var Se=ge[Ce.key],De=ge[Ce.children];warning(Se!=null,"Tree node must have a certain key: [".concat(de).concat(Se,"]"));var _e=String(Se);warning(!Te.has(_e)||Se===null||Se===void 0,"Same 'key' exist in the Tree: ".concat(_e)),Te.set(_e,!0),Pe(De,"".concat(de).concat(_e," > "))})}Pe(be)}function le(be){function Ce(Te){var Pe=(0,ve.Z)(Te);return Pe.map(function(ke){if(!se(ke))return(0,z.ZP)(!ke,"Tree/TreeNode can only accept TreeNode as children."),null;var de=ke.key,ge=ke.props,Se=ge.children,De=(0,we.Z)(ge,ie),_e=(0,y.Z)({key:de},De),Ee=Ce(Se);return Ee.length&&(_e.children=Ee),_e}).filter(function(ke){return ke})}return Ce(be)}function ue(be,Ce,Te){var Pe=te(Te),ke=Pe._title,de=Pe.key,ge=Pe.children,Se=new Set(Ce===!0?[]:Ce),De=[];function _e(Ee){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Ee.map(function(He,Xe){for(var et=ee(Oe?Oe.pos:"0",Xe),st=E(He[de],et),Le,Ue=0;Ue<ke.length;Ue+=1){var rt=ke[Ue];if(He[rt]!==void 0){Le=He[rt];break}}var ot=Object.assign((0,x.Z)(He,[].concat((0,wt.Z)(ke),[de,ge])),{title:Le,key:st,parent:Oe,pos:et,children:null,data:He,isStart:[].concat((0,wt.Z)(Oe?Oe.isStart:[]),[Xe===0]),isEnd:[].concat((0,wt.Z)(Oe?Oe.isEnd:[]),[Xe===Ee.length-1])});return De.push(ot),Ce===!0||Se.has(st)?ot.children=_e(He[ge]||[],ot):ot.children=[],ot})}return _e(be),De}function ce(be,Ce,Te){var Pe={};(0,Je.Z)(Te)==="object"?Pe=Te:Pe={externalGetKey:Te},Pe=Pe||{};var ke=Pe,de=ke.childrenPropName,ge=ke.externalGetKey,Se=ke.fieldNames,De=te(Se),_e=De.key,Ee=De.children,Oe=de||Ee,He;ge?typeof ge=="string"?He=function(st){return st[ge]}:typeof ge=="function"&&(He=function(st){return ge(st)}):He=function(st,Le){return E(st[_e],Le)};function Xe(et,st,Le,Ue){var rt=et?et[Oe]:be,ot=et?ee(Le.pos,st):"0",it=et?[].concat((0,wt.Z)(Ue),[et]):[];if(et){var Ye=He(et,ot),$e={node:et,index:st,pos:ot,key:Ye,parentPos:Le.node?Le.pos:null,level:Le.level+1,nodes:it};Ce($e)}rt&&rt.forEach(function(Ke,ft){Xe(Ke,ft,{node:et,pos:ot,level:Le?Le.level+1:-1},it)})}Xe(null)}function he(be){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Te=Ce.initWrapper,Pe=Ce.processEntity,ke=Ce.onProcessFinished,de=Ce.externalGetKey,ge=Ce.childrenPropName,Se=Ce.fieldNames,De=arguments.length>2?arguments[2]:void 0,_e=de||De,Ee={},Oe={},He={posEntities:Ee,keyEntities:Oe};return Te&&(He=Te(He)||He),ce(be,function(Xe){var et=Xe.node,st=Xe.index,Le=Xe.pos,Ue=Xe.key,rt=Xe.parentPos,ot=Xe.level,it=Xe.nodes,Ye={node:et,nodes:it,index:st,key:Ue,pos:Le,level:ot},$e=E(Ue,Le);Ee[Le]=Ye,Oe[$e]=Ye,Ye.parent=Ee[rt],Ye.parent&&(Ye.parent.children=Ye.parent.children||[],Ye.parent.children.push(Ye)),Pe&&Pe(Ye,He)},{externalGetKey:_e,childrenPropName:ge,fieldNames:Se}),ke&&ke(He),He}function me(be,Ce){var Te=Ce.expandedKeys,Pe=Ce.selectedKeys,ke=Ce.loadedKeys,de=Ce.loadingKeys,ge=Ce.checkedKeys,Se=Ce.halfCheckedKeys,De=Ce.dragOverNodeKey,_e=Ce.dropPosition,Ee=Ce.keyEntities,Oe=(0,oe.Z)(Ee,be),He={eventKey:be,expanded:Te.indexOf(be)!==-1,selected:Pe.indexOf(be)!==-1,loaded:ke.indexOf(be)!==-1,loading:de.indexOf(be)!==-1,checked:ge.indexOf(be)!==-1,halfChecked:Se.indexOf(be)!==-1,pos:String(Oe?Oe.pos:""),dragOver:De===be&&_e===0,dragOverGapTop:De===be&&_e===-1,dragOverGapBottom:De===be&&_e===1};return He}function fe(be){var Ce=be.data,Te=be.expanded,Pe=be.selected,ke=be.checked,de=be.loaded,ge=be.loading,Se=be.halfChecked,De=be.dragOver,_e=be.dragOverGapTop,Ee=be.dragOverGapBottom,Oe=be.pos,He=be.active,Xe=be.eventKey,et=(0,y.Z)((0,y.Z)({},Ce),{},{expanded:Te,selected:Pe,checked:ke,loaded:de,loading:ge,halfChecked:Se,dragOver:De,dragOverGapTop:_e,dragOverGapBottom:Ee,pos:Oe,active:He,key:Xe});return"props"in et||Object.defineProperty(et,"props",{get:function(){return(0,z.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),be}}),et}},90472:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return Xe}});var Je=Ve(54476),wt=Ve(67732),y=Ve(83652),we=Ve(31226),ve=Ve(42403),x=Ve(158),z=Ve(20068),oe=Ve(59301),ie=Ve(33885),ee=Ve(75931),se=Ve(76190),E=Ve(75044),te=Ve(3202),re=Ve(94480),le=Ve(92310),ue=Ve.n(le),ce=Ve(26112),he=Ve(48736),me=function(et,st){if(et&&st){var Le=Array.isArray(st)?st:st.split(","),Ue=et.name||"",rt=et.type||"",ot=rt.replace(/\/.*$/,"");return Le.some(function(it){var Ye=it.trim();if(/^\*(\/\*)?$/.test(it))return!0;if(Ye.charAt(0)==="."){var $e=Ue.toLowerCase(),Ke=Ye.toLowerCase(),ft=[Ke];return(Ke===".jpg"||Ke===".jpeg")&&(ft=[".jpg",".jpeg"]),ft.some(function(tt){return $e.endsWith(tt)})}return/\/\*$/.test(Ye)?ot===Ye.replace(/\/.*$/,""):rt===Ye?!0:/^\w+$/.test(Ye)?((0,he.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ye,"'.Skip for check.")),!0):!1})}return!0};function fe(et,st){var Le="cannot ".concat(et.method," ").concat(et.action," ").concat(st.status,"'"),Ue=new Error(Le);return Ue.status=st.status,Ue.method=et.method,Ue.url=et.action,Ue}function be(et){var st=et.responseText||et.response;if(!st)return st;try{return JSON.parse(st)}catch(Le){return st}}function Ce(et){var st=new XMLHttpRequest;et.onProgress&&st.upload&&(st.upload.onprogress=function(ot){ot.total>0&&(ot.percent=ot.loaded/ot.total*100),et.onProgress(ot)});var Le=new FormData;et.data&&Object.keys(et.data).forEach(function(rt){var ot=et.data[rt];if(Array.isArray(ot)){ot.forEach(function(it){Le.append("".concat(rt,"[]"),it)});return}Le.append(rt,ot)}),et.file instanceof Blob?Le.append(et.filename,et.file,et.file.name):Le.append(et.filename,et.file),st.onerror=function(ot){et.onError(ot)},st.onload=function(){return st.status<200||st.status>=300?et.onError(fe(et,st),be(st)):et.onSuccess(be(st),st)},st.open(et.method,et.action,!0),et.withCredentials&&"withCredentials"in st&&(st.withCredentials=!0);var Ue=et.headers||{};return Ue["X-Requested-With"]!==null&&st.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ue).forEach(function(rt){Ue[rt]!==null&&st.setRequestHeader(rt,Ue[rt])}),st.send(Le),{abort:function(){st.abort()}}}var Te=function(){var et=(0,te.Z)((0,E.Z)().mark(function st(Le,Ue){var rt,ot,it,Ye,$e,Ke,ft,tt;return(0,E.Z)().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:Ke=function(){return Ke=(0,te.Z)((0,E.Z)().mark(function Ne(ze){return(0,E.Z)().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return Ge.abrupt("return",new Promise(function(ct){ze.file(function(mt){Ue(mt)?(ze.fullPath&&!mt.webkitRelativePath&&(Object.defineProperties(mt,{webkitRelativePath:{writable:!0}}),mt.webkitRelativePath=ze.fullPath.replace(/^\//,""),Object.defineProperties(mt,{webkitRelativePath:{writable:!1}})),ct(mt)):ct(null)})}));case 1:case"end":return Ge.stop()}},Ne)})),Ke.apply(this,arguments)},$e=function(Ne){return Ke.apply(this,arguments)},Ye=function(){return Ye=(0,te.Z)((0,E.Z)().mark(function Ne(ze){var Me,Ge,ct,mt,nt;return(0,E.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:Me=ze.createReader(),Ge=[];case 2:return je.next=5,new Promise(function(We){Me.readEntries(We,function(){return We([])})});case 5:if(ct=je.sent,mt=ct.length,mt){je.next=9;break}return je.abrupt("break",12);case 9:for(nt=0;nt<mt;nt++)Ge.push(ct[nt]);je.next=2;break;case 12:return je.abrupt("return",Ge);case 13:case"end":return je.stop()}},Ne)})),Ye.apply(this,arguments)},it=function(Ne){return Ye.apply(this,arguments)},rt=[],ot=[],Le.forEach(function(Ze){return ot.push(Ze.webkitGetAsEntry())}),ft=function(){var Ze=(0,te.Z)((0,E.Z)().mark(function Ne(ze,Me){var Ge,ct;return(0,E.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(ze){nt.next=2;break}return nt.abrupt("return");case 2:if(ze.path=Me||"",!ze.isFile){nt.next=10;break}return nt.next=6,$e(ze);case 6:Ge=nt.sent,Ge&&rt.push(Ge),nt.next=15;break;case 10:if(!ze.isDirectory){nt.next=15;break}return nt.next=13,it(ze);case 13:ct=nt.sent,ot.push.apply(ot,(0,re.Z)(ct));case 15:case"end":return nt.stop()}},Ne)}));return function(ze,Me){return Ze.apply(this,arguments)}}(),tt=0;case 9:if(!(tt<ot.length)){lt.next=15;break}return lt.next=12,ft(ot[tt]);case 12:tt++,lt.next=9;break;case 15:return lt.abrupt("return",rt);case 16:case"end":return lt.stop()}},st)}));return function(Le,Ue){return et.apply(this,arguments)}}(),Pe=Te,ke=+new Date,de=0;function ge(){return"rc-upload-".concat(ke,"-").concat(++de)}var Se=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],De=function(et){(0,ve.Z)(Le,et);var st=(0,x.Z)(Le);function Le(){var Ue;(0,wt.Z)(this,Le);for(var rt=arguments.length,ot=new Array(rt),it=0;it<rt;it++)ot[it]=arguments[it];return Ue=st.call.apply(st,[this].concat(ot)),(0,z.Z)((0,we.Z)(Ue),"state",{uid:ge()}),(0,z.Z)((0,we.Z)(Ue),"reqs",{}),(0,z.Z)((0,we.Z)(Ue),"fileInput",void 0),(0,z.Z)((0,we.Z)(Ue),"_isMounted",void 0),(0,z.Z)((0,we.Z)(Ue),"onChange",function(Ye){var $e=Ue.props,Ke=$e.accept,ft=$e.directory,tt=Ye.target.files,ut=(0,re.Z)(tt).filter(function(lt){return!ft||me(lt,Ke)});Ue.uploadFiles(ut),Ue.reset()}),(0,z.Z)((0,we.Z)(Ue),"onClick",function(Ye){var $e=Ue.fileInput;if($e){var Ke=Ye.target,ft=Ue.props.onClick;if(Ke&&Ke.tagName==="BUTTON"){var tt=$e.parentNode;tt.focus(),Ke.blur()}$e.click(),ft&&ft(Ye)}}),(0,z.Z)((0,we.Z)(Ue),"onKeyDown",function(Ye){Ye.key==="Enter"&&Ue.onClick(Ye)}),(0,z.Z)((0,we.Z)(Ue),"onFileDrop",function(){var Ye=(0,te.Z)((0,E.Z)().mark(function $e(Ke){var ft,tt,ut;return(0,E.Z)().wrap(function(Ze){for(;;)switch(Ze.prev=Ze.next){case 0:if(ft=Ue.props.multiple,Ke.preventDefault(),Ke.type!=="dragover"){Ze.next=4;break}return Ze.abrupt("return");case 4:if(!Ue.props.directory){Ze.next=11;break}return Ze.next=7,Pe(Array.prototype.slice.call(Ke.dataTransfer.items),function(Ne){return me(Ne,Ue.props.accept)});case 7:tt=Ze.sent,Ue.uploadFiles(tt),Ze.next=14;break;case 11:ut=(0,re.Z)(Ke.dataTransfer.files).filter(function(Ne){return me(Ne,Ue.props.accept)}),ft===!1&&(ut=ut.slice(0,1)),Ue.uploadFiles(ut);case 14:case"end":return Ze.stop()}},$e)}));return function($e){return Ye.apply(this,arguments)}}()),(0,z.Z)((0,we.Z)(Ue),"uploadFiles",function(Ye){var $e=(0,re.Z)(Ye),Ke=$e.map(function(ft){return ft.uid=ge(),Ue.processFile(ft,$e)});Promise.all(Ke).then(function(ft){var tt=Ue.props.onBatchStart;tt==null||tt(ft.map(function(ut){var lt=ut.origin,Ze=ut.parsedFile;return{file:lt,parsedFile:Ze}})),ft.filter(function(ut){return ut.parsedFile!==null}).forEach(function(ut){Ue.post(ut)})})}),(0,z.Z)((0,we.Z)(Ue),"processFile",function(){var Ye=(0,te.Z)((0,E.Z)().mark(function $e(Ke,ft){var tt,ut,lt,Ze,Ne,ze,Me,Ge,ct;return(0,E.Z)().wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(tt=Ue.props.beforeUpload,ut=Ke,!tt){nt.next=14;break}return nt.prev=3,nt.next=6,tt(Ke,ft);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:Ke,parsedFile:null,action:null,data:null});case 14:if(lt=Ue.props.action,typeof lt!="function"){nt.next=21;break}return nt.next=18,lt(Ke);case 18:Ze=nt.sent,nt.next=22;break;case 21:Ze=lt;case 22:if(Ne=Ue.props.data,typeof Ne!="function"){nt.next=29;break}return nt.next=26,Ne(Ke);case 26:ze=nt.sent,nt.next=30;break;case 29:ze=Ne;case 30:return Me=((0,se.Z)(ut)==="object"||typeof ut=="string")&&ut?ut:Ke,Me instanceof File?Ge=Me:Ge=new File([Me],Ke.name,{type:Ke.type}),ct=Ge,ct.uid=Ke.uid,nt.abrupt("return",{origin:Ke,data:ze,parsedFile:ct,action:Ze});case 35:case"end":return nt.stop()}},$e,null,[[3,9]])}));return function($e,Ke){return Ye.apply(this,arguments)}}()),(0,z.Z)((0,we.Z)(Ue),"saveFileInput",function(Ye){Ue.fileInput=Ye}),Ue}return(0,y.Z)(Le,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(rt){var ot=this,it=rt.data,Ye=rt.origin,$e=rt.action,Ke=rt.parsedFile;if(this._isMounted){var ft=this.props,tt=ft.onStart,ut=ft.customRequest,lt=ft.name,Ze=ft.headers,Ne=ft.withCredentials,ze=ft.method,Me=Ye.uid,Ge=ut||Ce,ct={action:$e,filename:lt,data:it,file:Ke,headers:Ze,withCredentials:Ne,method:ze||"post",onProgress:function(nt){var Ae=ot.props.onProgress;Ae==null||Ae(nt,Ke)},onSuccess:function(nt,Ae){var je=ot.props.onSuccess;je==null||je(nt,Ke,Ae),delete ot.reqs[Me]},onError:function(nt,Ae){var je=ot.props.onError;je==null||je(nt,Ae,Ke),delete ot.reqs[Me]}};tt(Ye),this.reqs[Me]=Ge(ct)}}},{key:"reset",value:function(){this.setState({uid:ge()})}},{key:"abort",value:function(rt){var ot=this.reqs;if(rt){var it=rt.uid?rt.uid:rt;ot[it]&&ot[it].abort&&ot[it].abort(),delete ot[it]}else Object.keys(ot).forEach(function(Ye){ot[Ye]&&ot[Ye].abort&&ot[Ye].abort(),delete ot[Ye]})}},{key:"render",value:function(){var rt=this.props,ot=rt.component,it=rt.prefixCls,Ye=rt.className,$e=rt.classNames,Ke=$e===void 0?{}:$e,ft=rt.disabled,tt=rt.id,ut=rt.name,lt=rt.style,Ze=rt.styles,Ne=Ze===void 0?{}:Ze,ze=rt.multiple,Me=rt.accept,Ge=rt.capture,ct=rt.children,mt=rt.directory,nt=rt.openFileDialogOnClick,Ae=rt.onMouseEnter,je=rt.onMouseLeave,We=rt.hasControlInside,at=(0,ee.Z)(rt,Se),Re=ue()((0,z.Z)((0,z.Z)((0,z.Z)({},it,!0),"".concat(it,"-disabled"),ft),Ye,Ye)),xe=mt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},ye=ft?{}:{onClick:nt?this.onClick:function(){},onKeyDown:nt?this.onKeyDown:function(){},onMouseEnter:Ae,onMouseLeave:je,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:We?void 0:"0"};return oe.createElement(ot,(0,Je.Z)({},ye,{className:Re,role:We?void 0:"button",style:lt}),oe.createElement("input",(0,Je.Z)({},(0,ce.Z)(at,{aria:!0,data:!0}),{id:tt,name:ut,disabled:ft,type:"file",ref:this.saveFileInput,onClick:function(Qe){return Qe.stopPropagation()},key:this.state.uid,style:(0,ie.Z)({display:"none"},Ne.input),className:Ke.input,accept:Me},xe,{multiple:ze,onChange:this.onChange},Ge!=null?{capture:Ge}:{})),ct)}}]),Le}(oe.Component),_e=De;function Ee(){}var Oe=function(et){(0,ve.Z)(Le,et);var st=(0,x.Z)(Le);function Le(){var Ue;(0,wt.Z)(this,Le);for(var rt=arguments.length,ot=new Array(rt),it=0;it<rt;it++)ot[it]=arguments[it];return Ue=st.call.apply(st,[this].concat(ot)),(0,z.Z)((0,we.Z)(Ue),"uploader",void 0),(0,z.Z)((0,we.Z)(Ue),"saveUploader",function(Ye){Ue.uploader=Ye}),Ue}return(0,y.Z)(Le,[{key:"abort",value:function(rt){this.uploader.abort(rt)}},{key:"render",value:function(){return oe.createElement(_e,(0,Je.Z)({},this.props,{ref:this.saveUploader}))}}]),Le}(oe.Component);(0,z.Z)(Oe,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ee,onError:Ee,onSuccess:Ee,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var He=Oe,Xe=He},8224:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return wt}});var Je=Ve(4676);function wt(y,we,ve,x){var z=Je.unstable_batchedUpdates?function(ie){Je.unstable_batchedUpdates(ve,ie)}:ve;return y!=null&&y.addEventListener&&y.addEventListener(we,z,x),{remove:function(){y!=null&&y.removeEventListener&&y.removeEventListener(we,z,x)}}}},24514:function(Kt,_t,Ve){"use strict";Ve.d(_t,{G:function(){return we}});var Je=Ve(47273),wt=function(x){if((0,Je.Z)()&&window.document.documentElement){var z=Array.isArray(x)?x:[x],oe=window.document.documentElement;return z.some(function(ie){return ie in oe.style})}return!1},y=function(x,z){if(!wt(x))return!1;var oe=document.createElement("div"),ie=oe.style[x];return oe.style[x]=z,oe.style[x]!==ie};function we(ve,x){return!Array.isArray(ve)&&x!==void 0?y(ve,x):wt(ve)}},48911:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return Ne}});var Je=Ve(54476),wt=Ve(76190),y=Ve(33885),we=Ve(20068),ve=Ve(42978),x=Ve(75931),z=Ve(92310),oe=Ve.n(z),ie=Ve(29301),ee=Ve(70425),se=Ve(34280),E=Ve(59301),te=Ve(4676),re=E.forwardRef(function(ze,Me){var Ge=ze.height,ct=ze.offsetY,mt=ze.offsetX,nt=ze.children,Ae=ze.prefixCls,je=ze.onInnerResize,We=ze.innerProps,at=ze.rtl,Re=ze.extra,xe={},ye={display:"flex",flexDirection:"column"};return ct!==void 0&&(xe={height:Ge,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(ct,"px)")},at?"marginRight":"marginLeft",-mt),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:xe},E.createElement(ie.Z,{onResize:function(Qe){var Ie=Qe.offsetHeight;Ie&&je&&je()}},E.createElement("div",(0,Je.Z)({style:ye,className:oe()((0,we.Z)({},"".concat(Ae,"-holder-inner"),Ae)),ref:Me},We),nt,Re)))});re.displayName="Filler";var le=re;function ue(ze){var Me=ze.children,Ge=ze.setRef,ct=E.useCallback(function(mt){Ge(mt)},[]);return E.cloneElement(Me,{ref:ct})}function ce(ze,Me,Ge,ct,mt,nt,Ae,je){var We=je.getKey;return ze.slice(Me,Ge+1).map(function(at,Re){var xe=Me+Re,ye=Ae(at,xe,{style:{width:ct},offsetX:mt}),Fe=We(at);return E.createElement(ue,{key:Fe,setRef:function(Ie){return nt(at,Ie)}},ye)})}function he(ze,Me,Ge,ct){var mt=Ge-ze,nt=Me-Ge,Ae=Math.min(mt,nt)*2;if(ct<=Ae){var je=Math.floor(ct/2);return ct%2?Ge+je+1:Ge-je}return mt>nt?Ge-(ct-nt):Ge+(ct-mt)}function me(ze,Me,Ge){var ct=ze.length,mt=Me.length,nt,Ae;if(ct===0&&mt===0)return null;ct<mt?(nt=ze,Ae=Me):(nt=Me,Ae=ze);var je={__EMPTY_ITEM__:!0};function We(Qe){return Qe!==void 0?Ge(Qe):je}for(var at=null,Re=Math.abs(ct-mt)!==1,xe=0;xe<Ae.length;xe+=1){var ye=We(nt[xe]),Fe=We(Ae[xe]);if(ye!==Fe){at=xe,Re=Re||ye!==We(Ae[xe+1]);break}}return at===null?null:{index:at,multiple:Re}}function fe(ze,Me,Ge){var ct=E.useState(ze),mt=(0,ve.Z)(ct,2),nt=mt[0],Ae=mt[1],je=E.useState(null),We=(0,ve.Z)(je,2),at=We[0],Re=We[1];return E.useEffect(function(){var xe=me(nt||[],ze||[],Me);(xe==null?void 0:xe.index)!==void 0&&(Ge==null||Ge(xe.index),Re(ze[xe.index])),Ae(ze)},[ze]),[at]}var be=Ve(16089),Ce=(typeof navigator=="undefined"?"undefined":(0,wt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Te=Ce,Pe=function(ze,Me,Ge,ct){var mt=(0,E.useRef)(!1),nt=(0,E.useRef)(null);function Ae(){clearTimeout(nt.current),mt.current=!0,nt.current=setTimeout(function(){mt.current=!1},50)}var je=(0,E.useRef)({top:ze,bottom:Me,left:Ge,right:ct});return je.current.top=ze,je.current.bottom=Me,je.current.left=Ge,je.current.right=ct,function(We,at){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=We?at<0&&je.current.left||at>0&&je.current.right:at<0&&je.current.top||at>0&&je.current.bottom;return Re&&xe?(clearTimeout(nt.current),mt.current=!1):(!xe||mt.current)&&Ae(),!mt.current&&xe}};function ke(ze,Me,Ge,ct,mt,nt,Ae){var je=(0,E.useRef)(0),We=(0,E.useRef)(null),at=(0,E.useRef)(null),Re=(0,E.useRef)(!1),xe=Pe(Me,Ge,ct,mt);function ye(xt,bt){if(be.Z.cancel(We.current),!xe(!1,bt)){var ht=xt;if(!ht._virtualHandled)ht._virtualHandled=!0;else return;je.current+=bt,at.current=bt,Te||ht.preventDefault(),We.current=(0,be.Z)(function(){var kt=Re.current?10:1;Ae(je.current*kt,!1),je.current=0})}}function Fe(xt,bt){Ae(bt,!0),Te||xt.preventDefault()}var Qe=(0,E.useRef)(null),Ie=(0,E.useRef)(null);function vt(xt){if(ze){be.Z.cancel(Ie.current),Ie.current=(0,be.Z)(function(){Qe.current=null},2);var bt=xt.deltaX,ht=xt.deltaY,kt=xt.shiftKey,Tt=bt,Pt=ht;(Qe.current==="sx"||!Qe.current&&kt&&ht&&!bt)&&(Tt=ht,Pt=0,Qe.current="sx");var Vt=Math.abs(Tt),vr=Math.abs(Pt);Qe.current===null&&(Qe.current=nt&&Vt>vr?"x":"y"),Qe.current==="y"?ye(xt,Pt):Fe(xt,Tt)}}function yt(xt){ze&&(Re.current=xt.detail===at.current)}return[vt,yt]}function de(ze,Me,Ge,ct){var mt=E.useMemo(function(){return[new Map,[]]},[ze,Ge.id,ct]),nt=(0,ve.Z)(mt,2),Ae=nt[0],je=nt[1],We=function(Re){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Re,ye=Ae.get(Re),Fe=Ae.get(xe);if(ye===void 0||Fe===void 0)for(var Qe=ze.length,Ie=je.length;Ie<Qe;Ie+=1){var vt,yt=ze[Ie],xt=Me(yt);Ae.set(xt,Ie);var bt=(vt=Ge.get(xt))!==null&&vt!==void 0?vt:ct;if(je[Ie]=(je[Ie-1]||0)+bt,xt===Re&&(ye=Ie),xt===xe&&(Fe=Ie),ye!==void 0&&Fe!==void 0)break}return{top:je[ye-1]||0,bottom:je[Fe]}};return We}var ge=Ve(67732),Se=Ve(83652),De=function(){function ze(){(0,ge.Z)(this,ze),(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,Se.Z)(ze,[{key:"set",value:function(Ge,ct){this.diffRecords.set(Ge,this.maps[Ge]),this.maps[Ge]=ct,this.id+=1}},{key:"get",value:function(Ge){return this.maps[Ge]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ze}(),_e=De;function Ee(ze){var Me=parseFloat(ze);return isNaN(Me)?0:Me}function Oe(ze,Me,Ge){var ct=E.useState(0),mt=(0,ve.Z)(ct,2),nt=mt[0],Ae=mt[1],je=(0,E.useRef)(new Map),We=(0,E.useRef)(new _e),at=(0,E.useRef)(0);function Re(){at.current+=1}function xe(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Re();var Qe=function(){var yt=!1;je.current.forEach(function(xt,bt){if(xt&&xt.offsetParent){var ht=xt.offsetHeight,kt=getComputedStyle(xt),Tt=kt.marginTop,Pt=kt.marginBottom,Vt=Ee(Tt),vr=Ee(Pt),Yt=ht+Vt+vr;We.current.get(bt)!==Yt&&(We.current.set(bt,Yt),yt=!0)}}),yt&&Ae(function(xt){return xt+1})};if(Fe)Qe();else{at.current+=1;var Ie=at.current;Promise.resolve().then(function(){Ie===at.current&&Qe()})}}function ye(Fe,Qe){var Ie=ze(Fe),vt=je.current.get(Ie);Qe?(je.current.set(Ie,Qe),xe()):je.current.delete(Ie),!vt!=!Qe&&(Qe?Me==null||Me(Fe):Ge==null||Ge(Fe))}return(0,E.useEffect)(function(){return Re},[]),[ye,xe,We.current,nt]}var He=14/15;function Xe(ze,Me,Ge){var ct=(0,E.useRef)(!1),mt=(0,E.useRef)(0),nt=(0,E.useRef)(0),Ae=(0,E.useRef)(null),je=(0,E.useRef)(null),We,at=function(Fe){if(ct.current){var Qe=Math.ceil(Fe.touches[0].pageX),Ie=Math.ceil(Fe.touches[0].pageY),vt=mt.current-Qe,yt=nt.current-Ie,xt=Math.abs(vt)>Math.abs(yt);xt?mt.current=Qe:nt.current=Ie;var bt=Ge(xt,xt?vt:yt,!1,Fe);bt&&Fe.preventDefault(),clearInterval(je.current),bt&&(je.current=setInterval(function(){xt?vt*=He:yt*=He;var ht=Math.floor(xt?vt:yt);(!Ge(xt,ht,!0)||Math.abs(ht)<=.1)&&clearInterval(je.current)},16))}},Re=function(){ct.current=!1,We()},xe=function(Fe){We(),Fe.touches.length===1&&!ct.current&&(ct.current=!0,mt.current=Math.ceil(Fe.touches[0].pageX),nt.current=Math.ceil(Fe.touches[0].pageY),Ae.current=Fe.target,Ae.current.addEventListener("touchmove",at,{passive:!1}),Ae.current.addEventListener("touchend",Re,{passive:!0}))};We=function(){Ae.current&&(Ae.current.removeEventListener("touchmove",at),Ae.current.removeEventListener("touchend",Re))},(0,se.Z)(function(){return ze&&Me.current.addEventListener("touchstart",xe,{passive:!0}),function(){var ye;(ye=Me.current)===null||ye===void 0||ye.removeEventListener("touchstart",xe),We(),clearInterval(je.current)}},[ze])}function et(ze){return Math.floor(Math.pow(ze,.5))}function st(ze,Me){var Ge="touches"in ze?ze.touches[0]:ze;return Ge[Me?"pageX":"pageY"]-window[Me?"scrollX":"scrollY"]}function Le(ze,Me,Ge){E.useEffect(function(){var ct=Me.current;if(ze&&ct){var mt=!1,nt,Ae,je=function(){be.Z.cancel(nt)},We=function ye(){je(),nt=(0,be.Z)(function(){Ge(Ae),ye()})},at=function(){mt=!1,je()},Re=function(Fe){if(!(Fe.target.draggable||Fe.button!==0)){var Qe=Fe;Qe._virtualHandled||(Qe._virtualHandled=!0,mt=!0)}},xe=function(Fe){if(mt){var Qe=st(Fe,!1),Ie=ct.getBoundingClientRect(),vt=Ie.top,yt=Ie.bottom;if(Qe<=vt){var xt=vt-Qe;Ae=-et(xt),We()}else if(Qe>=yt){var bt=Qe-yt;Ae=et(bt),We()}else je()}};return ct.addEventListener("mousedown",Re),ct.ownerDocument.addEventListener("mouseup",at),ct.ownerDocument.addEventListener("mousemove",xe),ct.ownerDocument.addEventListener("dragend",at),function(){ct.removeEventListener("mousedown",Re),ct.ownerDocument.removeEventListener("mouseup",at),ct.ownerDocument.removeEventListener("mousemove",xe),ct.ownerDocument.removeEventListener("dragend",at),je()}}},[ze])}var Ue=10;function rt(ze,Me,Ge,ct,mt,nt,Ae,je){var We=E.useRef(),at=E.useState(null),Re=(0,ve.Z)(at,2),xe=Re[0],ye=Re[1];return(0,se.Z)(function(){if(xe&&xe.times<Ue){if(!ze.current){ye(function(kn){return(0,y.Z)({},kn)});return}nt();var Fe=xe.targetAlign,Qe=xe.originAlign,Ie=xe.index,vt=xe.offset,yt=ze.current.clientHeight,xt=!1,bt=Fe,ht=null;if(yt){for(var kt=Fe||Qe,Tt=0,Pt=0,Vt=0,vr=Math.min(Me.length-1,Ie),Yt=0;Yt<=vr;Yt+=1){var Cr=mt(Me[Yt]);Pt=Tt;var jr=Ge.get(Cr);Vt=Pt+(jr===void 0?ct:jr),Tt=Vt}for(var Pr=kt==="top"?vt:yt-vt,Mr=vr;Mr>=0;Mr-=1){var Xr=mt(Me[Mr]),mn=Ge.get(Xr);if(mn===void 0){xt=!0;break}if(Pr-=mn,Pr<=0)break}switch(kt){case"top":ht=Pt-vt;break;case"bottom":ht=Vt-yt+vt;break;default:{var cn=ze.current.scrollTop,Yr=cn+yt;Pt<cn?bt="top":Vt>Yr&&(bt="bottom")}}ht!==null&&Ae(ht),ht!==xe.lastTop&&(xt=!0)}xt&&ye((0,y.Z)((0,y.Z)({},xe),{},{times:xe.times+1,targetAlign:bt,lastTop:ht}))}},[xe,ze.current]),function(Fe){if(Fe==null){je();return}if(be.Z.cancel(We.current),typeof Fe=="number")Ae(Fe);else if(Fe&&(0,wt.Z)(Fe)==="object"){var Qe,Ie=Fe.align;"index"in Fe?Qe=Fe.index:Qe=Me.findIndex(function(xt){return mt(xt)===Fe.key});var vt=Fe.offset,yt=vt===void 0?0:vt;ye({times:0,index:Qe,offset:yt,originAlign:Ie})}}}var ot=E.forwardRef(function(ze,Me){var Ge=ze.prefixCls,ct=ze.rtl,mt=ze.scrollOffset,nt=ze.scrollRange,Ae=ze.onStartMove,je=ze.onStopMove,We=ze.onScroll,at=ze.horizontal,Re=ze.spinSize,xe=ze.containerSize,ye=ze.style,Fe=ze.thumbStyle,Qe=ze.showScrollBar,Ie=E.useState(!1),vt=(0,ve.Z)(Ie,2),yt=vt[0],xt=vt[1],bt=E.useState(null),ht=(0,ve.Z)(bt,2),kt=ht[0],Tt=ht[1],Pt=E.useState(null),Vt=(0,ve.Z)(Pt,2),vr=Vt[0],Yt=Vt[1],Cr=!ct,jr=E.useRef(),Pr=E.useRef(),Mr=E.useState(Qe),Xr=(0,ve.Z)(Mr,2),mn=Xr[0],cn=Xr[1],Yr=E.useRef(),kn=function(){Qe===!0||Qe===!1||(clearTimeout(Yr.current),cn(!0),Yr.current=setTimeout(function(){cn(!1)},3e3))},En=nt-xe||0,Dr=xe-Re||0,Ar=E.useMemo(function(){if(mt===0||En===0)return 0;var rn=mt/En;return rn*Dr},[mt,En,Dr]),fn=function(Kr){Kr.stopPropagation(),Kr.preventDefault()},or=E.useRef({top:Ar,dragging:yt,pageY:kt,startTop:vr});or.current={top:Ar,dragging:yt,pageY:kt,startTop:vr};var Zt=function(Kr){xt(!0),Tt(st(Kr,at)),Yt(or.current.top),Ae(),Kr.stopPropagation(),Kr.preventDefault()};E.useEffect(function(){var rn=function(pr){pr.preventDefault()},Kr=jr.current,Wr=Pr.current;return Kr.addEventListener("touchstart",rn,{passive:!1}),Wr.addEventListener("touchstart",Zt,{passive:!1}),function(){Kr.removeEventListener("touchstart",rn),Wr.removeEventListener("touchstart",Zt)}},[]);var ir=E.useRef();ir.current=En;var Nr=E.useRef();Nr.current=Dr,E.useEffect(function(){if(yt){var rn,Kr=function(pr){var Wt=or.current,Sr=Wt.dragging,Gr=Wt.pageY,gn=Wt.startTop;be.Z.cancel(rn);var Ct=jr.current.getBoundingClientRect(),Dt=xe/(at?Ct.width:Ct.height);if(Sr){var nr=(st(pr,at)-Gr)*Dt,Gt=gn;!Cr&&at?Gt-=nr:Gt+=nr;var jt=ir.current,tr=Nr.current,hr=tr?Gt/tr:0,fr=Math.ceil(hr*jt);fr=Math.max(fr,0),fr=Math.min(fr,jt),rn=(0,be.Z)(function(){We(fr,at)})}},Wr=function(){xt(!1),je()};return window.addEventListener("mousemove",Kr,{passive:!0}),window.addEventListener("touchmove",Kr,{passive:!0}),window.addEventListener("mouseup",Wr,{passive:!0}),window.addEventListener("touchend",Wr,{passive:!0}),function(){window.removeEventListener("mousemove",Kr),window.removeEventListener("touchmove",Kr),window.removeEventListener("mouseup",Wr),window.removeEventListener("touchend",Wr),be.Z.cancel(rn)}}},[yt]),E.useEffect(function(){return kn(),function(){clearTimeout(Yr.current)}},[mt]),E.useImperativeHandle(Me,function(){return{delayHidden:kn}});var gr="".concat(Ge,"-scrollbar"),Hr={position:"absolute",visibility:mn?null:"hidden"},Qr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return at?(Object.assign(Hr,{height:8,left:0,right:0,bottom:0}),Object.assign(Qr,(0,we.Z)({height:"100%",width:Re},Cr?"left":"right",Ar))):(Object.assign(Hr,(0,we.Z)({width:8,top:0,bottom:0},Cr?"right":"left",0)),Object.assign(Qr,{width:"100%",height:Re,top:Ar})),E.createElement("div",{ref:jr,className:oe()(gr,(0,we.Z)((0,we.Z)((0,we.Z)({},"".concat(gr,"-horizontal"),at),"".concat(gr,"-vertical"),!at),"".concat(gr,"-visible"),mn)),style:(0,y.Z)((0,y.Z)({},Hr),ye),onMouseDown:fn,onMouseMove:kn},E.createElement("div",{ref:Pr,className:oe()("".concat(gr,"-thumb"),(0,we.Z)({},"".concat(gr,"-thumb-moving"),yt)),style:(0,y.Z)((0,y.Z)({},Qr),Fe),onMouseDown:Zt}))}),it=ot,Ye=20;function $e(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ge=ze/Me*ze;return isNaN(Ge)&&(Ge=0),Ge=Math.max(Ge,Ye),Math.floor(Ge)}var Ke=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],ft=[],tt={overflowY:"auto",overflowAnchor:"none"};function ut(ze,Me){var Ge=ze.prefixCls,ct=Ge===void 0?"rc-virtual-list":Ge,mt=ze.className,nt=ze.height,Ae=ze.itemHeight,je=ze.fullHeight,We=je===void 0?!0:je,at=ze.style,Re=ze.data,xe=ze.children,ye=ze.itemKey,Fe=ze.virtual,Qe=ze.direction,Ie=ze.scrollWidth,vt=ze.component,yt=vt===void 0?"div":vt,xt=ze.onScroll,bt=ze.onVirtualScroll,ht=ze.onVisibleChange,kt=ze.innerProps,Tt=ze.extraRender,Pt=ze.styles,Vt=ze.showScrollBar,vr=Vt===void 0?"optional":Vt,Yt=(0,x.Z)(ze,Ke),Cr=E.useCallback(function(Ot){return typeof ye=="function"?ye(Ot):Ot==null?void 0:Ot[ye]},[ye]),jr=Oe(Cr,null,null),Pr=(0,ve.Z)(jr,4),Mr=Pr[0],Xr=Pr[1],mn=Pr[2],cn=Pr[3],Yr=!!(Fe!==!1&&nt&&Ae),kn=E.useMemo(function(){return Object.values(mn.maps).reduce(function(Ot,Bt){return Ot+Bt},0)},[mn.id,mn.maps]),En=Yr&&Re&&(Math.max(Ae*Re.length,kn)>nt||!!Ie),Dr=Qe==="rtl",Ar=oe()(ct,(0,we.Z)({},"".concat(ct,"-rtl"),Dr),mt),fn=Re||ft,or=(0,E.useRef)(),Zt=(0,E.useRef)(),ir=(0,E.useRef)(),Nr=(0,E.useState)(0),gr=(0,ve.Z)(Nr,2),Hr=gr[0],Qr=gr[1],rn=(0,E.useState)(0),Kr=(0,ve.Z)(rn,2),Wr=Kr[0],dn=Kr[1],pr=(0,E.useState)(!1),Wt=(0,ve.Z)(pr,2),Sr=Wt[0],Gr=Wt[1],gn=function(){Gr(!0)},Ct=function(){Gr(!1)},Dt={getKey:Cr};function nr(Ot){Qr(function(Bt){var Ht;typeof Ot=="function"?Ht=Ot(Bt):Ht=Ot;var zt=Hn(Ht);return or.current.scrollTop=zt,zt})}var Gt=(0,E.useRef)({start:0,end:fn.length}),jt=(0,E.useRef)(),tr=fe(fn,Cr),hr=(0,ve.Z)(tr,1),fr=hr[0];jt.current=fr;var kr=E.useMemo(function(){if(!Yr)return{scrollHeight:void 0,start:0,end:fn.length-1,offset:void 0};if(!En){var Ot;return{scrollHeight:((Ot=Zt.current)===null||Ot===void 0?void 0:Ot.offsetHeight)||0,start:0,end:fn.length-1,offset:void 0}}for(var Bt=0,Ht,zt,qt,mr=fn.length,er=0;er<mr;er+=1){var Ft=fn[er],ur=Cr(Ft),dr=mn.get(ur),Tr=Bt+(dr===void 0?Ae:dr);Tr>=Hr&&Ht===void 0&&(Ht=er,zt=Bt),Tr>Hr+nt&&qt===void 0&&(qt=er),Bt=Tr}return Ht===void 0&&(Ht=0,zt=0,qt=Math.ceil(nt/Ae)),qt===void 0&&(qt=fn.length-1),qt=Math.min(qt+1,fn.length-1),{scrollHeight:Bt,start:Ht,end:qt,offset:zt}},[En,Yr,Hr,fn,cn,nt]),sr=kr.scrollHeight,xr=kr.start,ar=kr.end,$t=kr.offset;Gt.current.start=xr,Gt.current.end=ar,E.useLayoutEffect(function(){var Ot=mn.getRecord();if(Ot.size===1){var Bt=Array.from(Ot.keys())[0],Ht=Ot.get(Bt),zt=fn[xr];if(zt&&Ht===void 0){var qt=Cr(zt);if(qt===Bt){var mr=mn.get(Bt),er=mr-Ae;nr(function(Ft){return Ft+er})}}}mn.resetRecord()},[sr]);var lr=E.useState({width:0,height:nt}),br=(0,ve.Z)(lr,2),Rr=br[0],Fr=br[1],vn=function(Bt){Fr({width:Bt.offsetWidth,height:Bt.offsetHeight})},On=(0,E.useRef)(),zr=(0,E.useRef)(),Er=E.useMemo(function(){return $e(Rr.width,Ie)},[Rr.width,Ie]),Ur=E.useMemo(function(){return $e(Rr.height,sr)},[Rr.height,sr]),wr=sr-nt,jn=(0,E.useRef)(wr);jn.current=wr;function Hn(Ot){var Bt=Ot;return Number.isNaN(jn.current)||(Bt=Math.min(Bt,jn.current)),Bt=Math.max(Bt,0),Bt}var Ln=Hr<=0,Vn=Hr>=wr,Yn=Wr<=0,Gn=Wr>=Ie,_n=Pe(Ln,Vn,Yn,Gn),Jn=function(){return{x:Dr?-Wr:Wr,y:Hr}},Xn=(0,E.useRef)(Jn()),Ir=(0,ee.zX)(function(Ot){if(bt){var Bt=(0,y.Z)((0,y.Z)({},Jn()),Ot);(Xn.current.x!==Bt.x||Xn.current.y!==Bt.y)&&(bt(Bt),Xn.current=Bt)}});function on(Ot,Bt){var Ht=Ot;Bt?((0,te.flushSync)(function(){dn(Ht)}),Ir()):nr(Ht)}function Tn(Ot){var Bt=Ot.currentTarget.scrollTop;Bt!==Hr&&nr(Bt),xt==null||xt(Ot),Ir()}var Bn=function(Bt){var Ht=Bt,zt=Ie?Ie-Rr.width:0;return Ht=Math.max(Ht,0),Ht=Math.min(Ht,zt),Ht},Mn=(0,ee.zX)(function(Ot,Bt){Bt?((0,te.flushSync)(function(){dn(function(Ht){var zt=Ht+(Dr?-Ot:Ot);return Bn(zt)})}),Ir()):nr(function(Ht){var zt=Ht+Ot;return zt})}),Fn=ke(Yr,Ln,Vn,Yn,Gn,!!Ie,Mn),ri=(0,ve.Z)(Fn,2),St=ri[0],Lt=ri[1];Xe(Yr,or,function(Ot,Bt,Ht,zt){var qt=zt;return _n(Ot,Bt,Ht)?!1:!qt||!qt._virtualHandled?(qt&&(qt._virtualHandled=!0),St({preventDefault:function(){},deltaX:Ot?Bt:0,deltaY:Ot?0:Bt}),!0):!1}),Le(En,or,function(Ot){nr(function(Bt){return Bt+Ot})}),(0,se.Z)(function(){function Ot(Ht){var zt=Ln&&Ht.detail<0,qt=Vn&&Ht.detail>0;Yr&&!zt&&!qt&&Ht.preventDefault()}var Bt=or.current;return Bt.addEventListener("wheel",St,{passive:!1}),Bt.addEventListener("DOMMouseScroll",Lt,{passive:!0}),Bt.addEventListener("MozMousePixelScroll",Ot,{passive:!1}),function(){Bt.removeEventListener("wheel",St),Bt.removeEventListener("DOMMouseScroll",Lt),Bt.removeEventListener("MozMousePixelScroll",Ot)}},[Yr,Ln,Vn]),(0,se.Z)(function(){if(Ie){var Ot=Bn(Wr);dn(Ot),Ir({x:Ot})}},[Rr.width,Ie]);var Mt=function(){var Bt,Ht;(Bt=On.current)===null||Bt===void 0||Bt.delayHidden(),(Ht=zr.current)===null||Ht===void 0||Ht.delayHidden()},Nt=rt(or,fn,mn,Ae,Cr,function(){return Xr(!0)},nr,Mt);E.useImperativeHandle(Me,function(){return{nativeElement:ir.current,getScrollInfo:Jn,scrollTo:function(Bt){function Ht(zt){return zt&&(0,wt.Z)(zt)==="object"&&("left"in zt||"top"in zt)}Ht(Bt)?(Bt.left!==void 0&&dn(Bn(Bt.left)),Nt(Bt.top)):Nt(Bt)}}}),(0,se.Z)(function(){if(ht){var Ot=fn.slice(xr,ar+1);ht(Ot,fn)}},[xr,ar,fn]);var Xt=de(fn,Cr,mn,Ae),Rt=Tt==null?void 0:Tt({start:xr,end:ar,virtual:En,offsetX:Wr,offsetY:$t,rtl:Dr,getSize:Xt}),Jt=ce(fn,xr,ar,Ie,Wr,Mr,xe,Dt),rr=null;nt&&(rr=(0,y.Z)((0,we.Z)({},We?"height":"maxHeight",nt),tt),Yr&&(rr.overflowY="hidden",Ie&&(rr.overflowX="hidden"),Sr&&(rr.pointerEvents="none")));var Qt={};return Dr&&(Qt.dir="rtl"),E.createElement("div",(0,Je.Z)({ref:ir,style:(0,y.Z)((0,y.Z)({},at),{},{position:"relative"}),className:Ar},Qt,Yt),E.createElement(ie.Z,{onResize:vn},E.createElement(yt,{className:"".concat(ct,"-holder"),style:rr,ref:or,onScroll:Tn,onMouseEnter:Mt},E.createElement(le,{prefixCls:ct,height:sr,offsetX:Wr,offsetY:$t,scrollWidth:Ie,onInnerResize:Xr,ref:Zt,innerProps:kt,rtl:Dr,extra:Rt},Jt))),En&&sr>nt&&E.createElement(it,{ref:On,prefixCls:ct,scrollOffset:Hr,scrollRange:sr,rtl:Dr,onScroll:on,onStartMove:gn,onStopMove:Ct,spinSize:Ur,containerSize:Rr.height,style:Pt==null?void 0:Pt.verticalScrollBar,thumbStyle:Pt==null?void 0:Pt.verticalScrollBarThumb,showScrollBar:vr}),En&&Ie>Rr.width&&E.createElement(it,{ref:zr,prefixCls:ct,scrollOffset:Wr,scrollRange:Ie,rtl:Dr,onScroll:on,onStartMove:gn,onStopMove:Ct,spinSize:Er,containerSize:Rr.width,horizontal:!0,style:Pt==null?void 0:Pt.horizontalScrollBar,thumbStyle:Pt==null?void 0:Pt.horizontalScrollBarThumb,showScrollBar:vr}))}var lt=E.forwardRef(ut);lt.displayName="List";var Ze=lt,Ne=Ze},7062:function(Kt,_t,Ve){var Je=Ve(19637),wt=Ve(97573),y=[Ve(96627)];Kt.exports=Je.createStore(wt,y)},96627:function(Kt,_t,Ve){Kt.exports=Je;function Je(){return Ve(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(Kt){return Kt<10?"0"+Kt:Kt}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(Kt){return rx_escapable.lastIndex=0,rx_escapable.test(Kt)?'"'+Kt.replace(rx_escapable,function(_t){var Ve=meta[_t];return typeof Ve=="string"?Ve:"\\u"+("0000"+_t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+Kt+'"'}function str(Kt,_t){var Ve,Je,wt,y,we=gap,ve,x=_t[Kt];switch(x&&typeof x=="object"&&typeof x.toJSON=="function"&&(x=x.toJSON(Kt)),typeof rep=="function"&&(x=rep.call(_t,Kt,x)),typeof x){case"string":return quote(x);case"number":return isFinite(x)?String(x):"null";case"boolean":case"null":return String(x);case"object":if(!x)return"null";if(gap+=indent,ve=[],Object.prototype.toString.apply(x)==="[object Array]"){for(y=x.length,Ve=0;Ve<y;Ve+=1)ve[Ve]=str(Ve,x)||"null";return wt=ve.length===0?"[]":gap?`[
`+gap+ve.join(`,
`+gap)+`
`+we+"]":"["+ve.join(",")+"]",gap=we,wt}if(rep&&typeof rep=="object")for(y=rep.length,Ve=0;Ve<y;Ve+=1)typeof rep[Ve]=="string"&&(Je=rep[Ve],wt=str(Je,x),wt&&ve.push(quote(Je)+(gap?": ":":")+wt));else for(Je in x)Object.prototype.hasOwnProperty.call(x,Je)&&(wt=str(Je,x),wt&&ve.push(quote(Je)+(gap?": ":":")+wt));return wt=ve.length===0?"{}":gap?`{
`+gap+ve.join(`,
`+gap)+`
`+we+"}":"{"+ve.join(",")+"}",gap=we,wt}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(Kt,_t,Ve){var Je;if(gap="",indent="",typeof Ve=="number")for(Je=0;Je<Ve;Je+=1)indent+=" ";else typeof Ve=="string"&&(indent=Ve);if(rep=_t,_t&&typeof _t!="function"&&(typeof _t!="object"||typeof _t.length!="number"))throw new Error("JSON.stringify");return str("",{"":Kt})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(Kt,_t){var Ve,Je,wt=Kt[_t];if(wt&&typeof wt=="object")for(Ve in wt)Object.prototype.hasOwnProperty.call(wt,Ve)&&(Je=walk(wt,Ve),Je!==void 0?wt[Ve]=Je:delete wt[Ve]);return reviver.call(Kt,_t,wt)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(Kt){return"\\u"+("0000"+Kt.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(Kt,_t,Ve){var Je=Ve(67039),wt=Je.slice,y=Je.pluck,we=Je.each,ve=Je.bind,x=Je.create,z=Je.isList,oe=Je.isFunction,ie=Je.isObject;Kt.exports={createStore:E};var ee={version:"2.0.12",enabled:!1,get:function(te,re){var le=this.storage.read(this._namespacePrefix+te);return this._deserialize(le,re)},set:function(te,re){return re===void 0?this.remove(te):(this.storage.write(this._namespacePrefix+te,this._serialize(re)),re)},remove:function(te){this.storage.remove(this._namespacePrefix+te)},each:function(te){var re=this;this.storage.each(function(le,ue){te.call(re,re._deserialize(le),(ue||"").replace(re._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(te){return this._namespacePrefix=="__storejs_"+te+"_"},createStore:function(){return E.apply(this,arguments)},addPlugin:function(te){this._addPlugin(te)},namespace:function(te){return E(this.storage,this.plugins,te)}};function se(){var te=typeof console=="undefined"?null:console;if(te){var re=te.warn?te.warn:te.log;re.apply(te,arguments)}}function E(te,re,le){le||(le=""),te&&!z(te)&&(te=[te]),re&&!z(re)&&(re=[re]);var ue=le?"__storejs_"+le+"_":"",ce=le?new RegExp("^"+ue):null,he=/^[a-zA-Z0-9_\-]*$/;if(!he.test(le))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var me={_namespacePrefix:ue,_namespaceRegexp:ce,_testStorage:function(be){try{var Ce="__storejs__test__";be.write(Ce,Ce);var Te=be.read(Ce)===Ce;return be.remove(Ce),Te}catch(Pe){return!1}},_assignPluginFnProp:function(be,Ce){var Te=this[Ce];this[Ce]=function(){var ke=wt(arguments,0),de=this;function ge(){if(Te)return we(arguments,function(De,_e){ke[_e]=De}),Te.apply(de,ke)}var Se=[ge].concat(ke);return be.apply(de,Se)}},_serialize:function(be){return JSON.stringify(be)},_deserialize:function(be,Ce){if(!be)return Ce;var Te="";try{Te=JSON.parse(be)}catch(Pe){Te=be}return Te!==void 0?Te:Ce},_addStorage:function(be){this.enabled||this._testStorage(be)&&(this.storage=be,this.enabled=!0)},_addPlugin:function(be){var Ce=this;if(z(be)){we(be,function(ke){Ce._addPlugin(ke)});return}var Te=y(this.plugins,function(ke){return be===ke});if(!Te){if(this.plugins.push(be),!oe(be))throw new Error("Plugins must be function values that return objects");var Pe=be.call(this);if(!ie(Pe))throw new Error("Plugins must return an object of function properties");we(Pe,function(ke,de){if(!oe(ke))throw new Error("Bad plugin property: "+de+" from plugin "+be.name+". Plugins should only return functions.");Ce._assignPluginFnProp(ke,de)})}},addStorage:function(be){se("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(be)}},fe=x(me,ee,{plugins:[]});return fe.raw={},we(fe,function(be,Ce){oe(be)&&(fe.raw[Ce]=ve(fe,be))}),we(te,function(be){fe._addStorage(be)}),we(re,function(be){fe._addPlugin(be)}),fe}},67039:function(Kt,_t,Ve){var Je=ve(),wt=x(),y=z(),we=typeof window!="undefined"?window:Ve.g;Kt.exports={assign:Je,create:wt,trim:y,bind:oe,slice:ie,each:ee,map:se,pluck:E,isList:te,isFunction:re,isObject:le,Global:we};function ve(){return Object.assign?Object.assign:function(ce,he,me,fe){for(var be=1;be<arguments.length;be++)ee(Object(arguments[be]),function(Ce,Te){ce[Te]=Ce});return ce}}function x(){if(Object.create)return function(he,me,fe,be){var Ce=ie(arguments,1);return Je.apply(this,[Object.create(he)].concat(Ce))};{let ce=function(){};var ue=ce;return function(me,fe,be,Ce){var Te=ie(arguments,1);return ce.prototype=me,Je.apply(this,[new ce].concat(Te))}}}function z(){return String.prototype.trim?function(ce){return String.prototype.trim.call(ce)}:function(ce){return ce.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function oe(ue,ce){return function(){return ce.apply(ue,Array.prototype.slice.call(arguments,0))}}function ie(ue,ce){return Array.prototype.slice.call(ue,ce||0)}function ee(ue,ce){E(ue,function(he,me){return ce(he,me),!1})}function se(ue,ce){var he=te(ue)?[]:{};return E(ue,function(me,fe){return he[fe]=ce(me,fe),!1}),he}function E(ue,ce){if(te(ue)){for(var he=0;he<ue.length;he++)if(ce(ue[he],he))return ue[he]}else for(var me in ue)if(ue.hasOwnProperty(me)&&ce(ue[me],me))return ue[me]}function te(ue){return ue!=null&&typeof ue!="function"&&typeof ue.length=="number"}function re(ue){return ue&&{}.toString.call(ue)==="[object Function]"}function le(ue){return ue&&{}.toString.call(ue)==="[object Object]"}},97573:function(Kt,_t,Ve){Kt.exports=[Ve(52496),Ve(16436),Ve(76673),Ve(35701),Ve(65578),Ve(65300)]},35701:function(Kt,_t,Ve){var Je=Ve(67039),wt=Je.Global,y=Je.trim;Kt.exports={name:"cookieStorage",read:ve,write:z,each:x,remove:oe,clearAll:ie};var we=wt.document;function ve(se){if(!se||!ee(se))return null;var E="(?:^|.*;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(we.cookie.replace(new RegExp(E),"$1"))}function x(se){for(var E=we.cookie.split(/; ?/g),te=E.length-1;te>=0;te--)if(y(E[te])){var re=E[te].split("="),le=unescape(re[0]),ue=unescape(re[1]);se(ue,le)}}function z(se,E){se&&(we.cookie=escape(se)+"="+escape(E)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function oe(se){!se||!ee(se)||(we.cookie=escape(se)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function ie(){x(function(se,E){oe(E)})}function ee(se){return new RegExp("(?:^|;\\s*)"+escape(se).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(we.cookie)}},52496:function(Kt,_t,Ve){var Je=Ve(67039),wt=Je.Global;Kt.exports={name:"localStorage",read:we,write:ve,each:x,remove:z,clearAll:oe};function y(){return wt.localStorage}function we(ie){return y().getItem(ie)}function ve(ie,ee){return y().setItem(ie,ee)}function x(ie){for(var ee=y().length-1;ee>=0;ee--){var se=y().key(ee);ie(we(se),se)}}function z(ie){return y().removeItem(ie)}function oe(){return y().clear()}},65300:function(Kt){Kt.exports={name:"memoryStorage",read:Ve,write:Je,each:wt,remove:y,clearAll:we};var _t={};function Ve(ve){return _t[ve]}function Je(ve,x){_t[ve]=x}function wt(ve){for(var x in _t)_t.hasOwnProperty(x)&&ve(_t[x],x)}function y(ve){delete _t[ve]}function we(ve){_t={}}},16436:function(Kt,_t,Ve){var Je=Ve(67039),wt=Je.Global;Kt.exports={name:"oldFF-globalStorage",read:we,write:ve,each:x,remove:z,clearAll:oe};var y=wt.globalStorage;function we(ie){return y[ie]}function ve(ie,ee){y[ie]=ee}function x(ie){for(var ee=y.length-1;ee>=0;ee--){var se=y.key(ee);ie(y[se],se)}}function z(ie){return y.removeItem(ie)}function oe(){x(function(ie,ee){delete y[ie]})}},76673:function(Kt,_t,Ve){var Je=Ve(67039),wt=Je.Global;Kt.exports={name:"oldIE-userDataStorage",write:z,read:oe,each:ie,remove:ee,clearAll:se};var y="storejs",we=wt.document,ve=re(),x=(wt.navigator?wt.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function z(le,ue){if(!x){var ce=te(le);ve(function(he){he.setAttribute(ce,ue),he.save(y)})}}function oe(le){if(!x){var ue=te(le),ce=null;return ve(function(he){ce=he.getAttribute(ue)}),ce}}function ie(le){ve(function(ue){for(var ce=ue.XMLDocument.documentElement.attributes,he=ce.length-1;he>=0;he--){var me=ce[he];le(ue.getAttribute(me.name),me.name)}})}function ee(le){var ue=te(le);ve(function(ce){ce.removeAttribute(ue),ce.save(y)})}function se(){ve(function(le){var ue=le.XMLDocument.documentElement.attributes;le.load(y);for(var ce=ue.length-1;ce>=0;ce--)le.removeAttribute(ue[ce].name);le.save(y)})}var E=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function te(le){return le.replace(/^\d/,"___$&").replace(E,"___")}function re(){if(!we||!we.documentElement||!we.documentElement.addBehavior)return null;var le="script",ue,ce,he;try{ce=new ActiveXObject("htmlfile"),ce.open(),ce.write("<"+le+">document.w=window</"+le+'><iframe src="/favicon.ico"></iframe>'),ce.close(),ue=ce.w.frames[0].document,he=ue.createElement("div")}catch(me){he=we.createElement("div"),ue=we.body}return function(me){var fe=[].slice.call(arguments,0);fe.unshift(he),ue.appendChild(he),he.addBehavior("#default#userData"),he.load(y),me.apply(this,fe),ue.removeChild(he)}}},65578:function(Kt,_t,Ve){var Je=Ve(67039),wt=Je.Global;Kt.exports={name:"sessionStorage",read:we,write:ve,each:x,remove:z,clearAll:oe};function y(){return wt.sessionStorage}function we(ie){return y().getItem(ie)}function ve(ie,ee){return y().setItem(ie,ee)}function x(ie){for(var ee=y().length-1;ee>=0;ee--){var se=y().key(ee);ie(we(se),se)}}function z(ie){return y().removeItem(ie)}function oe(){return y().clear()}},93314:function(Kt){"use strict";Kt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(Kt,_t,Ve){"use strict";Ve.d(_t,{Z:function(){return oe}});const Je=ie=>typeof ie=="object"&&ie!=null&&ie.nodeType===1,wt=(ie,ee)=>(!ee||ie!=="hidden")&&ie!=="visible"&&ie!=="clip",y=(ie,ee)=>{if(ie.clientHeight<ie.scrollHeight||ie.clientWidth<ie.scrollWidth){const se=getComputedStyle(ie,null);return wt(se.overflowY,ee)||wt(se.overflowX,ee)||(E=>{const te=(re=>{if(!re.ownerDocument||!re.ownerDocument.defaultView)return null;try{return re.ownerDocument.defaultView.frameElement}catch(le){return null}})(E);return!!te&&(te.clientHeight<E.scrollHeight||te.clientWidth<E.scrollWidth)})(ie)}return!1},we=(ie,ee,se,E,te,re,le,ue)=>re<ie&&le>ee||re>ie&&le<ee?0:re<=ie&&ue<=se||le>=ee&&ue>=se?re-ie-E:le>ee&&ue<se||re<ie&&ue>se?le-ee+te:0,ve=ie=>{const ee=ie.parentElement;return ee==null?ie.getRootNode().host||null:ee},x=(ie,ee)=>{var se,E,te,re;if(typeof document=="undefined")return[];const{scrollMode:le,block:ue,inline:ce,boundary:he,skipOverflowHiddenElements:me}=ee,fe=typeof he=="function"?he:it=>it!==he;if(!Je(ie))throw new TypeError("Invalid target");const be=document.scrollingElement||document.documentElement,Ce=[];let Te=ie;for(;Je(Te)&&fe(Te);){if(Te=ve(Te),Te===be){Ce.push(Te);break}Te!=null&&Te===document.body&&y(Te)&&!y(document.documentElement)||Te!=null&&y(Te,me)&&Ce.push(Te)}const Pe=(E=(se=window.visualViewport)==null?void 0:se.width)!=null?E:innerWidth,ke=(re=(te=window.visualViewport)==null?void 0:te.height)!=null?re:innerHeight,{scrollX:de,scrollY:ge}=window,{height:Se,width:De,top:_e,right:Ee,bottom:Oe,left:He}=ie.getBoundingClientRect(),{top:Xe,right:et,bottom:st,left:Le}=(it=>{const Ye=window.getComputedStyle(it);return{top:parseFloat(Ye.scrollMarginTop)||0,right:parseFloat(Ye.scrollMarginRight)||0,bottom:parseFloat(Ye.scrollMarginBottom)||0,left:parseFloat(Ye.scrollMarginLeft)||0}})(ie);let Ue=ue==="start"||ue==="nearest"?_e-Xe:ue==="end"?Oe+st:_e+Se/2-Xe+st,rt=ce==="center"?He+De/2-Le+et:ce==="end"?Ee+et:He-Le;const ot=[];for(let it=0;it<Ce.length;it++){const Ye=Ce[it],{height:$e,width:Ke,top:ft,right:tt,bottom:ut,left:lt}=Ye.getBoundingClientRect();if(le==="if-needed"&&_e>=0&&He>=0&&Oe<=ke&&Ee<=Pe&&(Ye===be&&!y(Ye)||_e>=ft&&Oe<=ut&&He>=lt&&Ee<=tt))return ot;const Ze=getComputedStyle(Ye),Ne=parseInt(Ze.borderLeftWidth,10),ze=parseInt(Ze.borderTopWidth,10),Me=parseInt(Ze.borderRightWidth,10),Ge=parseInt(Ze.borderBottomWidth,10);let ct=0,mt=0;const nt="offsetWidth"in Ye?Ye.offsetWidth-Ye.clientWidth-Ne-Me:0,Ae="offsetHeight"in Ye?Ye.offsetHeight-Ye.clientHeight-ze-Ge:0,je="offsetWidth"in Ye?Ye.offsetWidth===0?0:Ke/Ye.offsetWidth:0,We="offsetHeight"in Ye?Ye.offsetHeight===0?0:$e/Ye.offsetHeight:0;if(be===Ye)ct=ue==="start"?Ue:ue==="end"?Ue-ke:ue==="nearest"?we(ge,ge+ke,ke,ze,Ge,ge+Ue,ge+Ue+Se,Se):Ue-ke/2,mt=ce==="start"?rt:ce==="center"?rt-Pe/2:ce==="end"?rt-Pe:we(de,de+Pe,Pe,Ne,Me,de+rt,de+rt+De,De),ct=Math.max(0,ct+ge),mt=Math.max(0,mt+de);else{ct=ue==="start"?Ue-ft-ze:ue==="end"?Ue-ut+Ge+Ae:ue==="nearest"?we(ft,ut,$e,ze,Ge+Ae,Ue,Ue+Se,Se):Ue-(ft+$e/2)+Ae/2,mt=ce==="start"?rt-lt-Ne:ce==="center"?rt-(lt+Ke/2)+nt/2:ce==="end"?rt-tt+Me+nt:we(lt,tt,Ke,Ne,Me+nt,rt,rt+De,De);const{scrollLeft:at,scrollTop:Re}=Ye;ct=We===0?0:Math.max(0,Math.min(Re+ct/We,Ye.scrollHeight-$e/We+Ae)),mt=je===0?0:Math.max(0,Math.min(at+mt/je,Ye.scrollWidth-Ke/je+nt)),Ue+=Re-ct,rt+=at-mt}ot.push({el:Ye,top:ct,left:mt})}return ot},z=ie=>ie===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(ie)?ie:{block:"start",inline:"nearest"};function oe(ie,ee){if(!ie.isConnected||!(te=>{let re=te;for(;re&&re.parentNode;){if(re.parentNode===document)return!0;re=re.parentNode instanceof ShadowRoot?re.parentNode.host:re.parentNode}return!1})(ie))return;const se=(te=>{const re=window.getComputedStyle(te);return{top:parseFloat(re.scrollMarginTop)||0,right:parseFloat(re.scrollMarginRight)||0,bottom:parseFloat(re.scrollMarginBottom)||0,left:parseFloat(re.scrollMarginLeft)||0}})(ie);if((te=>typeof te=="object"&&typeof te.behavior=="function")(ee))return ee.behavior(x(ie,ee));const E=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:te,top:re,left:le}of x(ie,z(ee))){const ue=re-se.top+se.bottom,ce=le-se.left+se.right;te.scroll({top:ue,left:ce,behavior:E})}}}}]);