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__DataSet__Detail__index.e...

1168 lines
1.5 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[5382],{2018:function(){"use strict"},40862:function(ur,Zt){"use strict";Zt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},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 ur={},Zt="5.0",Je={},ze=null,Ct=!1,y=!1,Te=null,be=!1,x=null,z=null,ie=0;ie<arguments.length;ie++){var oe=arguments[ie];if(oe!==null)switch(typeof oe){case"number":Zt=oe.toFixed(1);break;case"string":oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Zt=oe:Te=oe;break;case"object":typeof oe.is3D!="undefined"?ze=oe:Je=oe;break;case"boolean":Ct=oe,y=!0;break}}ze===null&&(ze={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Je.material_id!==void 0&&!y&&(Ct=!0)),Te!==null&&Je.id===void 0&&(Je.id=Te);var ee="",le="",E=!1,ne=null,te=null,se=null,ue=!1,fe=null,me=null,ve=null,he=null,ge=null;Je.height!==void 0&&(Je.height=Math.round(Je.height)),Je.width!==void 0&&(Je.width=Math.round(Je.width));var xe=function(Xe){return parseFloat(Xe)>4?parseFloat(Xe):5};ur.setHTML5Codebase=function(Xe,et){z=Xe,it(Xe,et)},ur.setJavaCodebase=ur.setJavaCodebaseVersion=ur.isCompiledInstalled=ur.setPreCompiledScriptPath=ur.setPreCompiledResourcePath=function(){},ur.setHTML5CodebaseVersion=function(Xe,et){var Ye=parseFloat(Xe);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}x=Xe,We(Xe,et)},ur.getHTML5CodebaseVersion=function(){return te},ur.getParameters=function(){return Je},ur.setFontsCSSURL=function(Xe){he=Xe},ur.setGiacJSURL=function(Xe){},ur.setJNLPFile=function(Xe){ee=Xe},ur.setJNLPBaseDir=function(Xe){},ur.inject=function(){function Xe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var et="auto",Ye=Je.id,dt,tt=!1,lt=0;lt<arguments.length;lt++){var st=arguments[lt];typeof st=="string"?(st=st.toLowerCase(),st.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?et=st:Ye=arguments[lt]):typeof st=="boolean"?tt=st:st instanceof HTMLElement&&(dt=st)}He();function He(){if(!be){setTimeout(He,200);return}et=ut(et);var Ne=dt||document.getElementById(Ye);if(!Ne){console.log("possibly bug on ajax loading? ");return}if(ur.removeExistingApplet(Ne,!1),Je.width===void 0&&Ne.clientWidth&&(Je.width=Ne.clientWidth),Je.height===void 0&&Ne.clientHeight&&(Je.height=Ne.clientHeight),!(Je.width&&Je.height)&&et==="html5"&&(delete Je.width,delete Je.height),ne=et,et==="screenshot")ke(Ne,Je);else{var Ge=!1;Je.hasOwnProperty("playButton")&&Je.playButton||Je.hasOwnProperty("clickToLoad")&&Je.clickToLoad?Ge=!0:Je.hasOwnProperty("playButtonAutoDecide")&&Je.playButtonAutoDecide&&(Ge=(!Ce()||Xe())&&je()),Ge?(ne="screenshot",Ze(Ne,Je,tt,et)):Re(Ne,Je,tt)}}};function Ce(){try{return window.self!==window.top}catch(Xe){return!0}}function je(){return Je.hasOwnProperty("screenshotGenerator")&&Je.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ur.getViews=function(){return ze},ur.isJavaInstalled=function(){return!1};var Ee=function(Xe){var et=function(lt){var st=JSON.parse(lt),He=function(Me){return Me.type=="G"||Me.type=="E"},Ne=st.elements?st.elements.filter(He)[0]:st;if(!Ne||!Ne.url){Ye();return}Je.fileName=Ne.url,ce(Ne.settings||{}),ze.is3D=!0;var Ge="https://www.geogebra.org/images/";ur.setPreviewImage(fe||Ne.previewUrl,Ge+"GeoGebra_loading.png",Ge+"applet_play.png"),Xe()},Ye=function(){Je.onError&&Je.onError(),at("Error: Fetching material (id "+Je.material_id+") failed.",Je)},dt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",tt="/materials/"+Je.material_id+"?scope=basic";ye("https://"+dt+"/api/proxy.php?path="+encodeURIComponent(tt),et,Ye)};function ce(Xe){var et=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){Xe[Ye]=!!Xe[Ye]}),et.forEach(function(Ye){Je[Ye]===void 0&&Xe[Ye]!==void 0&&(Je[Ye]=Xe[Ye])}),Je.showToolBarHelp===void 0&&(Je.showToolBarHelp=Je.showToolBar)}function ye(Xe,et,Ye){var dt=new XMLHttpRequest;dt.open("GET",Xe),dt.onload=function(){et(dt.responseText)},dt.onerror=Ye,dt.send()}ur.isHTML5Installed=function(){return!0},ur.getLoadedAppletType=function(){return ne},ur.setPreviewImage=function(Xe,et,Ye){fe=Xe,me=et,ve=Ye},ur.removeExistingApplet=function(Xe,et){var Ye;typeof Xe=="string"&&(Xe=document.getElementById(Xe)),ne=null;var dt=null;for(Ye=0;Ye<Xe.childNodes.length;Ye++){var tt=Xe.childNodes[Ye],lt=tt.className;lt==="applet_screenshot"?et?(tt.style.display="block",ne="screenshot"):tt.style.display="none":lt!=="applet_scaler prerender"&&(Xe.removeChild(tt),dt=lt&&lt.indexOf("appletParameters")!=-1?tt.id:null,Ye--)}var st=Je.id!==void 0?Je.id:dt,He=window[st];He&&typeof He.getBase64=="function"&&(He.remove(),window[st]=null)},ur.refreshHitPoints=function(){if(xe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Xe=ur.getAppletObject();return Xe&&typeof Xe.recalculateEnvironments=="function"?(Xe.recalculateEnvironments(),!0):!1},ur.startAnimation=function(){var Xe=ur.getAppletObject();return Xe&&typeof Xe.startAnimation=="function"?(Xe.startAnimation(),!0):!1},ur.stopAnimation=function(){var Xe=ur.getAppletObject();return Xe&&typeof Xe.stopAnimation=="function"?(Xe.stopAnimation(),!0):!1},ur.getAppletObject=function(){var Xe=Je.id!==void 0?Je.id:"ggbApplet";return window[Xe]},ur.resize=function(){};var we=function(Xe,et,Ye){var dt=document.createElement("param");dt.setAttribute("name",et),dt.setAttribute("value",Ye),Xe.appendChild(dt)},De=function(Xe){return Xe&&Xe!=="false"},Re=function(Xe,et,Ye){xe(te)<=4.2&&(Ye=!0);var dt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==te||ggbHTML5LoadedCodebaseIsWebSimple&&!ue)&&(dt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var tt=document.createElement("div");tt.classList.add("appletParameters","notranslate");var lt=et.width,st=et.height;if(et.disableAutoScale=et.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():et.disableAutoScale,et.width!==void 0)if(xe(te)<=4.4)De(et.showToolBar)&&(et.height-=7),De(et.showAlgebraInput)&&(et.height-=37),et.width<605&&De(et.showToolBar)&&(et.width=605,lt=605);else{var He=100;(De(et.showToolBar)||De(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),He=De(et.showMenuBar)?245:155),lt<He&&(et.width=He,lt=He)}tt.style.border="none",tt.style.display="inline-block";for(var Ne in et)et.hasOwnProperty(Ne)&&Ne!=="appletOnLoad"&&tt.setAttribute("data-param-"+Ne,et[Ne]);he&&tt.setAttribute("data-param-fontscssurl",he),ur.resize=function(){GGBAppletUtils.responsiveResize(Xe,et)},window.addEventListener("resize",function(pe){ur.resize()});var Ge=typeof et.appletOnLoad=="function"?et.appletOnLoad:function(){};if(!Ye&&et.width!==void 0){et.hasOwnProperty("showSplash")||tt.setAttribute("data-param-showSplash","false");var Me=Xe.querySelector(".applet_scaler.prerender"),Ke=Me!==null;if(Ke)var ct=Me.querySelector(".ggb_preview");else{var ct=Qe(lt,st,et.borderColor,!1);Me=document.createElement("div"),Me.className="applet_scaler",Me.style.position="relative",Me.style.display="block",Me.style.width=lt+"px",Me.style.height=st+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Me,"66%"),xe(te)>=5?(et.appletOnLoad=function(pe){var Be=Xe.querySelector(".ggb_preview");Be&&Be.parentNode.removeChild(Be),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Me),window.GGBT_wsf_view&&$(window).trigger("resize"),Ge(pe)},Ke||Me.appendChild(ct)):tt.appendChild(ct),Me.appendChild(tt),Ke||Xe.appendChild(Me),setTimeout(function(){ur.resize()},1)}else{var pt=document.createElement("div");pt.className="applet_scaler",pt.style.position="relative",pt.style.display="block",pt.appendChild(tt),Xe.appendChild(pt),et.appletOnLoad=function(pe){ur.resize(),Ge(pe)}}function rt(pe,Be){Be&&typeof Be.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(pe,Be.appletOnLoad):renderGGBElement(pe),at("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Be)}function Ae(pe,Be){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:pe,params:Be}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function($e){rt($e.article,$e.params)}),html5AppletsToProcess=null)},xe(te)<5&&(pe.className+=" geogebraweb")):rt(pe,Be)}if(dt){scriptLoadStarted=!0;for(var Pe=0;Pe<tt.childNodes.length;Pe++){var Ue=tt.childNodes[Pe].tagName;Ue==="TABLE"&&(tt.removeChild(tt.childNodes[Pe]),Pe--)}if(ggbHTML5LoadedScript!==null){var ot=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ot!=null&&ot.parentNode.removeChild(ot)}var Oe=document.createElement("script"),Se=function(){Ae(tt,et)};Oe.src=le+se,ggbHTML5LoadedCodebaseIsWebSimple=ue,ggbHTML5LoadedCodebaseVersion=te,ggbHTML5LoadedScript=Oe.src,at("GeoGebra HTML5 codebase loaded: '"+le+"'.",et),!z&&(!x||x=="5.0")?(ue?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Se()):le.requirejs?__webpack_require__.e(7989).then(function(){var pe=[__webpack_require__(87989)];Se.apply(null,pe)}.bind(this)).catch(__webpack_require__.oe):(Oe.onload=Se,Xe.appendChild(Oe))}else Ae(tt,et);et.height=st,et.width=lt},ke=function(Xe,et,Ye){var dt=Qe(et.width,et.height,et.borderColor,Ye),tt=document.createElement("div");tt.style.position="relative",tt.style.display="block",tt.style.width=et.width+"px",tt.style.height=et.height+"px",tt.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),tt.appendChild(dt);var lt=GGBAppletUtils.getScale(et,Xe,Ye);Ye?(Xe.appendChild(Ve()),window.GGBT_wsf_view||(Xe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(tt,"66%"),Xe.appendChild(tt),lt!==1&&!isNaN(lt)&&(GGBAppletUtils.scaleElement(tt,lt),tt.style.width=et.width+"px",tt.style.height=et.height+"px",tt.parentNode.style.width=et.width*lt+"px",tt.parentNode.style.height=et.height*lt+"px"),ur.resize=function(){_e(Xe,dt,tt,Ye)},window.addEventListener("resize",function(st){ur.resize()}),ur.resize()};function _e(Xe,et,Ye,dt){if(Xe.contains(et)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Xe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Xe)}var tt=GGBAppletUtils.getScale(Je,Xe,dt);Ye.parentNode!==null&&(!isNaN(tt)&&tt!==1?(GGBAppletUtils.scaleElement(Ye,tt),Ye.parentNode.style.width=Je.width*tt+"px",Ye.parentNode.style.height=Je.height*tt+"px"):(GGBAppletUtils.scaleElement(Ye,1),Ye.parentNode.style.width=Je.width+"px",Ye.parentNode.style.height=Je.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Xe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}ur.onExitFullscreen=function(Xe,et){et.appendChild(Xe)};var Ze=function(Xe,et,Ye,dt){ke(Xe,et,!0);for(var tt=function(){var He=[];for(st=0;st<Xe.childNodes.length;st++)He.push(Xe.childNodes[st]);if(window.GGBT_wsf_view){var Ne=window.GGBT_wsf_view.renderFullScreen(Xe,et.id),Ge=document.getElementById("fullscreencontainer"),Me=jQuery(Xe).find(".fullscreencontent");Me.length>0?(Ne.remove(),Me.attr("id","fullscreencontent").show(),jQuery(Ge).append(Me),window.dispatchEvent(new Event("resize"))):Re(Ne,et,!1),window.GGBT_wsf_view.launchFullScreen(Ge)}else ne=dt,Re(Xe,et,!1);if(!window.GGBT_wsf_view)for(st=0;st<He.length;st++)Xe.removeChild(He[st])},lt=Xe.getElementsByClassName("ggb_preview_play"),st=0;st<lt.length;st++)lt[st].addEventListener("click",tt,!1),lt[st].addEventListener("ontouchstart",tt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Xe),je()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ve=function(){var Xe=document.createElement("div");if(Xe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var et='.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");}',Ye=document.createElement("style");Ye.styleSheet?Ye.styleSheet.cssText=et:Ye.appendChild(document.createTextNode(et)),document.getElementsByTagName("head")[0].appendChild(Ye)}return Xe},Qe=function(Xe,et,Ye,dt){var tt=document.createElement("div");tt.className="ggb_preview",tt.style.position="absolute",tt.style.zIndex="90",tt.style.width=Xe-2+"px",tt.style.height=et-2+"px",tt.style.top="0px",tt.style.left="0px",tt.style.overflow="hidden",tt.style.backgroundColor="white";var lt="lightgrey";Ye!==void 0&&(Ye==="none"?lt="transparent":lt=Ye),tt.style.border="1px solid "+lt;var st=document.createElement("img");if(st.style.position="relative",st.style.zIndex="1000",st.style.top="-1px",st.style.left="-1px",fe!==null&&st.setAttribute("src",fe),st.style.opacity=.7,me!==null){var He,Ne,Ge;if(!dt){He=document.createElement("img"),He.style.position="absolute",He.style.zIndex="1001",He.style.opacity=1,st.style.opacity=.3,Ne=360,Ne>Xe/4*3&&(Ne=Xe/4*3),Ge=Ne/5.8,He.setAttribute("src",me),He.setAttribute("width",Ne),He.setAttribute("height",Ge);var Me=(Xe-Ne)/2,Ke=(et-Ge)/2;He.style.left=Me+"px",He.style.top=Ke+"px",tt.appendChild(He)}}return tt.appendChild(st),tt},ut=function(Xe){return Xe=Xe.toLowerCase(),Xe==="html5"||Xe==="screenshot"?Xe:"html5"},Ie=["web","webSimple","web3d","tablet","tablet3d","phone"],We=function(Xe,et){if(te=Xe,et){it(te,!0);return}var Ye=!Ct;if(Ye){var dt=xe(te);!isNaN(dt)&&dt<4.4&&(Ye=!1)}var tt,lt;window.location.protocol.substr(0,4)==="http"?tt=window.location.protocol:tt="http:";var st=te.indexOf("//");st>0?lt=te:st===0?lt=tt+te:lt="https://www.geogebra.org/apps/5.2.814.0/";for(var He in Ie)if(te.slice(Ie[He].length*-1)===Ie[He]||te.slice((Ie[He].length+1)*-1)===Ie[He]+"/"){it(lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ye&&!ze.is3D&&!ze.AV&&!ze.SV&&!ze.CV&&!ze.EV2&&!ze.CP&&!ze.PC&&!ze.DA&&!ze.FI&&!ze.PV&&!De(Je.showToolBar)&&!De(Je.showMenuBar)&&!De(Je.showAlgebraInput)&&!De(Je.enableRightClick)&&(!Je.appName||Je.appName=="classic")?lt+="webSimple/":lt+="web3d/",it(lt,!1)},it=function(Xe,et){if(Xe.requirejs){le=Xe;return}Xe.slice(-1)!=="/"&&(Xe+="/"),le=Xe,et===null&&(et=Xe.indexOf("http")===-1),E=et,se="web.nocache.js",ue=!1;var Ye=le.split("/");Ye.length>1&&(!et&&Ye[Ye.length-2]==="webSimple"?(se="webSimple.nocache.js",ue=!0):Ie.indexOf(Ye[Ye.length-2])>=0&&(se=Ye[Ye.length-2]+".nocache.js")),Ye=Xe.split("/"),te=Ye[Ye.length-3],te.substr(0,4)==="test"?te=te.substr(4,1)+"."+te.substr(5,1):(te.substr(0,3)==="war"||te.substr(0,4)==="beta")&&(te="5.0");var dt=parseFloat(te);dt!==NaN&&dt<5&&Xe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+dt+" is deprecated. Using version latest instead."),We("5.0",et))},at=function(Xe,et){window.console&&window.console.log&&(!et||typeof et.showLogging=="undefined"||et.showLogging&&et.showLogging!=="false")&&console.log(Xe)};Je.material_id!==void 0?Ee(nt):nt();function nt(){var Xe=Zt;x!==null?Xe=x:parseFloat(Xe)<5&&(Xe="5.0"),We(Xe,!1),z!==null&&it(z,E),be=!0}return ur},GGBAppletUtils=function(){"use strict";function ur(){return window.GGBT_wsf_edit!==void 0}function Zt(be,x){x!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+x+","+x+")",be.style.webkitTransform="scale("+x+","+x+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function Je(be,x,z,ie,oe,ee){var le=null;if(ee!=null&&ee!="")for(var E=be.parentNode;E!=null;)if((" "+E.className+" ").indexOf(" "+ee+" ")>-1){le=E;break}else E=E.parentNode;var ne=0,te=0,se=0,ue=0,fe=0,me=0,ve=0;if(le)ne=le.offsetWidth,te=Math.max(ie?le.offsetWidth:0,le.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ne=Math.min(window.innerWidth,document.documentElement.clientWidth),te=Math.min(window.innerHeight,document.documentElement.clientHeight),se=ne):(ne=window.innerWidth,te=window.innerHeight,se=window.innerWidth),be){var he=be.getBoundingClientRect();he.left>0&&he.left<=ne&&(oe===void 0||!oe)&&(document.dir==="rtl"?(fe=ne-he.width-he.left,me=se<=480?10:30):(me=he.left,fe=se<=480?10:30),ue=me+fe)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ge=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ue=40,ve=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue=0,ve=40)}}return be&&((z===void 0||!z)&&x>0&&x+ue<ne?ne=x:ne-=ue,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(z===void 0||!z)&&(te-=ve)),{width:ne,height:te}}function ze(be,x,z,ie,oe){if(be.isScreenshoGenerator)return 1;var ee=ie!==void 0&&ie,le=be.noScaleMargin!=null&&be.noScaleMargin,E=function(ge){return ge&&ge!=="false"},ne=E(be.autoHeight),te=Je(x,be.width,z,ne,ee&&window.GGBT_wsf_view||le,oe),se=parseInt(te.width),ue=be.width,fe=be.height;if(ue===void 0){var me=x.querySelector(".appletParameters");me&&(ue=me.offsetWidth,fe=me.offsetHeight)}var ve=se/ue,he=ee?1:te.height/fe;return z!==void 0&&!z&&(ve=Math.min(1,ve),he=Math.min(1,he)),Math.min(ve,he)}function Ct(be,x,z){var ie=1,oe,ee=!1;if(be.hasOwnProperty("allowUpscale")&&(ee=be.allowUpscale),be.hasOwnProperty("scale")&&(ie=parseFloat(be.scale),(isNaN(ie)||ie===null||ie===0)&&(ie=1),ie>1&&(ee=!0)),x&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))oe=ze(be,x,ee,z,be.scaleContainerClass);else return ie;return ee&&(!be.hasOwnProperty("scale")||ie===1)?oe:Math.min(ie,oe)}function y(be){var x=Math.min(window.innerWidth,document.documentElement.clientWidth),z=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=be.getBoundingClientRect(),oe=(x-ie.width)/2,ee=(z-ie.height)/2;ee<0&&(ee=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(oe<40?be.style.left="40px":be.style.left=oe+"px",be.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?be.style.top="40px":be.style.top=ee+"px",be.style.left=oe+"px")}function Te(be,x){var z=be.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(be)}if(z.parentElement&&/fullscreen/.test(z.parentElement.className))return;var ie=Ct(x,be);ur()&&z.setAttribute("data-param-scale",ie);for(var oe=null,ee=0;ee<be.childNodes.length;ee++)if(be.childNodes[ee].className!==void 0&&be.childNodes[ee].className.match(/^applet_scaler/)){oe=be.childNodes[ee];break}if(oe!==null&&oe.querySelector(".noscale")!==null)return;var le=x.id!==void 0?x.id:"ggbApplet",E=window[le];(E==null||!E.recalculateEnvironments)&&oe!==null&&!oe.className.match(/fullscreen/)&&(oe.parentNode.style.transform="",!isNaN(ie)&&ie!==1?(oe.parentNode.style.width=x.width*ie+"px",oe.parentNode.style.height=x.height*ie+"px",Zt(oe,ie)):(Zt(oe,1),oe.parentNode.style.width=x.width+"px",oe.parentNode.style.height=x.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&y(be),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(z).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:ur,positionCenter:y,getScale:Ct,scaleElement:Zt}}();__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 ur=n.location.search;return ur.indexOf(J)!=-1||ur.indexOf(K)!=-1}function q(ur,Zt){}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(ur){var Zt=s[L].bindings;s[L].bindings=function(){for(var Je=Zt?Zt():{},ze=ur[webModule.__softPermutationId],Ct=O;Ct<ze.length;Ct++){var y=ze[Ct];Je[y[O]]=y[P]}return Je}};var t;function u(){return v(),t}function v(){if(!t){var ur=o.createElement(Q);if(ur.id=L,ur.style.cssText=R+S,ur.tabIndex=-1,o.body.appendChild(ur),t=ur.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Zt=document.compatMode==U?V:W;t.write(Zt+X),t.close()}}}function w(ur){function Zt(ze){function Ct(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var y=Ct();if(y){ze();return}function Te(){if(!y){if(!Ct())return;y=!0,ze(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),be&&clearInterval(be)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var be=setInterval(function(){Te()},$)}function Je(ze){var Ct=u(),y=Ct.body,Te=Ct.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=ze,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+ze))}),y.appendChild(Te)}Zt(function(){Je(ur)})}webModule.__startLoadingFragment=function(ur){return C(ur)},webModule.__installRunAsyncCode=function(ur){var Zt=u(),Je=Zt.body,ze=Zt.createElement(_);ze.language=ab,ze.text=ur,Je.appendChild(ze),Je.removeChild(ze)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ur){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ur){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ur){var Zt=c[ur];return Zt==null?null:Zt},r=d,webModule.__errFn=e}function B(){function ur(be){var x=be.lastIndexOf(rb);x==-1&&(x=be.length);var z=be.indexOf(sb);z==-1&&(z=be.length);var ie=be.lastIndexOf(tb,Math.min(z,x));return ie>=O?be.substring(O,ie+P):W}function Zt(be){if(!be.match(/^\w+:\/\//)){var x=o.createElement(ub);x.src=be+vb,be=ur(x.src)}return be}function Je(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function ze(){for(var be=o.getElementsByTagName(_),x=O;x<be.length;++x)if(be[x].src.indexOf(xb)!=-1)return ur(be[x].src);return W}function Ct(){var be=o.getElementsByTagName(yb);return be.length>O?be[be.length-P].href:W}function y(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Te=Je();return Te==W&&(Te=ze()),Te==W&&(Te=Ct()),Te==W&&y()&&(Te=ur(o.location.href)),Te=Zt(Te),Te}function C(ur){return ur.match(/^\//)||ur.match(/^[a-zA-Z]+:\/\//)?ur:webModule.__moduleBase+ur}function D(){var ur=[],Zt=O,Je=[],ze=[];function Ct(be){var x=ze[be](),z=Je[be];if(x in z)return x;var ie=[];for(var oe in z)ie[z[oe]]=oe;throw r&&r(be,ie,x),null}if(__gwt_isKnownPropertyValue=function(be,x){return x in Je[be]},webModule.__getPropMap=function(){var be={};for(var x in Je)Je.hasOwnProperty(x)&&(be[x]=Ct(x));return be},webModule.__computePropValue=Ct,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var Te=y.indexOf(Db);Te!=-1&&(Zt=parseInt(y.substring(Te+P),$),y=y.substring(O,Te))}catch(be){}return webModule.__softPermutationId=Zt,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(ur,Zt,Je){"use strict";Je.d(Zt,{Ax:function(){return Te},Ds:function(){return be},KI:function(){return z},SI:function(){return y},f1:function(){return Ct}});var ze=Je(26869);function Ct(ie){let oe=!0;if(ie.length>0){for(let ee=0;ee<ie.length;ee++)if(ie[ee].compile_success==0||!ie[ee].compile_success){oe=!1;break}}else oe=!1;return oe}function y(ie,oe=""){let ee=[];for(let le=0;le<ie.length;le++){let E=ie[le],ne=oe?`${oe}/${E.name}`:`${E.name}`;ee.push({title:E.name,type:E.type,isLeaf:E.type!=="tree",key:ne})}return ee}function Te(ie,oe,ee){for(let le=0;le<ie.length;le++){let E=ie[le];if(E.key===oe){E.children=ee;break}E.children&&Te(E.children,oe,ee)}return ie}function be(ie,oe,ee){let le;return function(){let E=this,ne=arguments,te=function(){le=null,ee||ie.apply(E,ne)},se=ee&&!le;clearTimeout(le),le=setTimeout(te,oe),se&&ie.apply(E,ne)}}const x=!0,z=ze.Z.API_SERVER},1986:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return ot}});var ze=Je(59301),Ct={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},y=Je(92310),Te=Je.n(y),be=Je(29787);var x=function(Oe,Se){return(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(pe,Be){pe.__proto__=Be}||function(pe,Be){for(var $e in Be)Object.prototype.hasOwnProperty.call(Be,$e)&&(pe[$e]=Be[$e])})(Oe,Se)};function z(Oe,Se){function pe(){this.constructor=Oe}x(Oe,Se),Oe.prototype=Se===null?Object.create(Se):(pe.prototype=Se.prototype,new pe)}function ie(Oe,Se,pe,Be){return new(pe||(pe=Promise))(function($e,Le){function mt(bt){try{wt(Be.next(bt))}catch(yt){Le(yt)}}function gt(bt){try{wt(Be.throw(bt))}catch(yt){Le(yt)}}function wt(bt){var yt;bt.done?$e(bt.value):(yt=bt.value,yt instanceof pe?yt:new pe(function(Et){Et(yt)})).then(mt,gt)}wt((Be=Be.apply(Oe,Se||[])).next())})}function oe(Oe,Se){var pe,Be,$e,Le,mt={label:0,sent:function(){if(1&$e[0])throw $e[1];return $e[1]},trys:[],ops:[]};return Le={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(Le[Symbol.iterator]=function(){return this}),Le;function gt(wt){return function(bt){return function(yt){if(pe)throw new TypeError("Generator is already executing.");for(;mt;)try{if(pe=1,Be&&($e=2&yt[0]?Be.return:yt[0]?Be.throw||(($e=Be.return)&&$e.call(Be),0):Be.next)&&!($e=$e.call(Be,yt[1])).done)return $e;switch(Be=0,$e&&(yt=[2&yt[0],$e.value]),yt[0]){case 0:case 1:$e=yt;break;case 4:return mt.label++,{value:yt[1],done:!1};case 5:mt.label++,Be=yt[1],yt=[0];continue;case 7:yt=mt.ops.pop(),mt.trys.pop();continue;default:if($e=mt.trys,!(($e=$e.length>0&&$e[$e.length-1])||yt[0]!==6&&yt[0]!==2)){mt=0;continue}if(yt[0]===3&&(!$e||yt[1]>$e[0]&&yt[1]<$e[3])){mt.label=yt[1];break}if(yt[0]===6&&mt.label<$e[1]){mt.label=$e[1],$e=yt;break}if($e&&mt.label<$e[2]){mt.label=$e[2],mt.ops.push(yt);break}$e[2]&&mt.ops.pop(),mt.trys.pop();continue}yt=Se.call(Oe,mt)}catch(Et){yt=[6,Et],Be=0}finally{pe=$e=0}if(5&yt[0])throw yt[1];return{value:yt[0]?yt[1]:void 0,done:!0}}([wt,bt])}}}function ee(){for(var Oe=0,Se=0,pe=arguments.length;Se<pe;Se++)Oe+=arguments[Se].length;var Be=Array(Oe),$e=0;for(Se=0;Se<pe;Se++)for(var Le=arguments[Se],mt=0,gt=Le.length;mt<gt;mt++,$e++)Be[$e]=Le[mt];return Be}var le=function(){function Oe(){}return Oe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Oe.setAttributes=function(Se,pe){for(var Be=0,$e=pe;Be<$e.length;Be++){var Le=$e[Be],mt=Le[0],gt=Le[1];Se.setAttribute(mt,gt)}},Oe.createRect=function(Se,pe,Be){var $e=document.createElementNS("http://www.w3.org/2000/svg","rect");return $e.setAttribute("width",Se.toString()),$e.setAttribute("height",pe.toString()),Be&&Oe.setAttributes($e,Be),$e},Oe.createLine=function(Se,pe,Be,$e,Le){var mt=document.createElementNS("http://www.w3.org/2000/svg","line");return mt.setAttribute("x1",Se.toString()),mt.setAttribute("y1",pe.toString()),mt.setAttribute("x2",Be.toString()),mt.setAttribute("y2",$e.toString()),Le&&Oe.setAttributes(mt,Le),mt},Oe.createPolygon=function(Se,pe){var Be=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Be.setAttribute("points",Se),pe&&Oe.setAttributes(Be,pe),Be},Oe.createCircle=function(Se,pe){var Be=document.createElementNS("http://www.w3.org/2000/svg","circle");return Be.setAttribute("cx",(Se/2).toString()),Be.setAttribute("cy",(Se/2).toString()),Be.setAttribute("r",Se.toString()),pe&&Oe.setAttributes(Be,pe),Be},Oe.createEllipse=function(Se,pe,Be){var $e=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return $e.setAttribute("cx",(Se/2).toString()),$e.setAttribute("cy",(pe/2).toString()),$e.setAttribute("rx",(Se/2).toString()),$e.setAttribute("ry",(pe/2).toString()),Be&&Oe.setAttributes($e,Be),$e},Oe.createGroup=function(Se){var pe=document.createElementNS("http://www.w3.org/2000/svg","g");return Se&&Oe.setAttributes(pe,Se),pe},Oe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Oe.createMarker=function(Se,pe,Be,$e,Le,mt,gt){var wt=document.createElementNS("http://www.w3.org/2000/svg","marker");return Oe.setAttributes(wt,[["id",Se],["orient",pe],["markerWidth",Be.toString()],["markerHeight",$e.toString()],["refX",Le.toString()],["refY",mt.toString()]]),wt.appendChild(gt),wt},Oe.createText=function(Se){var pe=document.createElementNS("http://www.w3.org/2000/svg","text");return pe.setAttribute("x","0"),pe.setAttribute("y","0"),Se&&Oe.setAttributes(pe,Se),pe},Oe.createTSpan=function(Se,pe){var Be=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Be.textContent=Se,pe&&Oe.setAttributes(Be,pe),Be},Oe.createImage=function(Se){var pe=document.createElementNS("http://www.w3.org/2000/svg","image");return Se&&Oe.setAttributes(pe,Se),pe},Oe.createPoint=function(Se,pe){var Be=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Be.x=Se,Be.y=pe,Be},Oe.createPath=function(Se,pe){var Be=document.createElementNS("http://www.w3.org/2000/svg","path");return Be.setAttribute("d",Se),pe&&Oe.setAttributes(Be,pe),Be},Oe}(),E=function(){function Oe(){}return Oe.addKey=function(Se){Oe.key=Se},Object.defineProperty(Oe,"isLicensed",{get:function(){return!!Oe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Oe.key)},enumerable:!1,configurable:!0}),Oe}(),ne=function(){function Oe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Oe.prototype.rasterize=function(Se,pe,Be){var $e=this;return new Promise(function(Le){var mt=Be!==void 0?Be:document.createElement("canvas");Se===null&&($e.markersOnly=!0,$e.naturalSize=!1);var gt=document.createElementNS("http://www.w3.org/2000/svg","svg");gt.setAttribute("xmlns","http://www.w3.org/2000/svg"),gt.setAttribute("width",pe.width.baseVal.valueAsString),gt.setAttribute("height",pe.height.baseVal.valueAsString),gt.setAttribute("viewBox","0 0 "+pe.viewBox.baseVal.width.toString()+" "+pe.viewBox.baseVal.height.toString()),gt.innerHTML=pe.innerHTML,$e.naturalSize===!0?(gt.width.baseVal.value=Se.naturalWidth,gt.height.baseVal.value=Se.naturalHeight):$e.width!==void 0&&$e.height!==void 0&&(gt.width.baseVal.value=$e.width,gt.height.baseVal.value=$e.height),mt.width=gt.width.baseVal.value,mt.height=gt.height.baseVal.value;var wt=gt.outerHTML,bt=mt.getContext("2d");$e.markersOnly!==!0&&bt.drawImage(Se,0,0,mt.width,mt.height);var yt=window.URL,Et=new Image(mt.width,mt.height);Et.setAttribute("crossOrigin","anonymous");var kt=new Blob([wt],{type:"image/svg+xml"}),jt=yt.createObjectURL(kt);Et.onload=function(){bt.drawImage(Et,0,0),yt.revokeObjectURL(jt);var It=mt.toDataURL($e.imageType,$e.imageQuality);Le(It)},Et.src=jt})},Oe}(),te=function(){},se=function(){function Oe(Se){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Se+"_"}return Object.defineProperty(Oe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.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(Oe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Oe.prototype.addClass=function(Se){return this.styleSheet===void 0&&this.addStyleSheet(),Se.name=""+this.classNamePrefix+Se.localName,this.classes.push(Se),this.styleSheet.sheet.insertRule("."+Se.name+" {"+Se.style+"}",this.styleSheet.sheet.cssRules.length),Se},Oe.prototype.addRule=function(Se){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Se),this.styleSheet.sheet.insertRule(Se.selector+" {"+Se.style+"}",this.styleSheet.sheet.cssRules.length)},Oe.prototype.addStyleSheet=function(){var Se;this.styleSheet=document.createElement("style"),((Se=this.styleSheetRoot)!==null&&Se!==void 0?Se:document.head).appendChild(this.styleSheet),this.addRule(new ue("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ue("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new ue("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new fe("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new fe("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},Oe.prototype.removeStyleSheet=function(){var Se;this.styleSheet&&(((Se=this.styleSheetRoot)!==null&&Se!==void 0?Se:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Oe}(),ue=function(Oe,Se){this.selector=Oe,this.style=Se},fe=function(Oe,Se){this.localName=Oe,this.style=Se},me=function(){function Oe(Se,pe,Be,$e,Le){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Se,this.displayMode=pe,this.markerItems=Be,this.uiStyleSettings=$e,this.styles=Le,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Oe.prototype.show=function(Se){var pe=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Se,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Be=document.createElement("div");Be.className=this.toolbarBlockStyleClass.name,Be.style.whiteSpace="nowrap",this.uiContainer.appendChild(Be),this.addActionButton(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Be,'<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(Le){var mt=document.createElement("div");mt.className=""+pe.toolbarButtonStyleClass.name,mt.setAttribute("data-type-name",Le.typeName),mt.innerHTML=Le.icon,mt.addEventListener("click",function(){pe.markerToolbarButtonClicked(mt,Le)}),pe.buttons.push(mt),pe.markerButtons.push(mt)}),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 $e=document.createElement("div");$e.className=this.toolbarBlockStyleClass.name,$e.style.whiteSpace="nowrap",$e.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild($e),this.addActionButton($e,'<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($e,'<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()},Oe.prototype.addButtonClickListener=function(Se){this.buttonClickListeners.push(Se)},Oe.prototype.removeButtonClickListener=function(Se){this.buttonClickListeners.indexOf(Se)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Se),1)},Oe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Oe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Se=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var pe=0;pe<this.markerButtons.length;pe++)pe<Se||pe===Se&&this.markerButtons.length-1===Se?this.markerButtonBlock.appendChild(this.markerButtons[pe]):(pe===Se&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[pe]))}},Oe.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")},Oe.prototype.resetButtonStyles=function(){var Se=this;this.buttons.forEach(function(pe){pe.className=pe.className.replace(Se.uiStyleSettings.toolbarButtonStyleColorsClassName?Se.uiStyleSettings.toolbarButtonStyleColorsClassName:Se.toolbarButtonStyleColorsClass.name,"").trim(),pe.className=pe.className.replace(Se.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Se.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Se.toolbarActiveButtonStyleColorsClass.name,"").trim(),pe.className+=" "+(Se.uiStyleSettings.toolbarButtonStyleColorsClassName?Se.uiStyleSettings.toolbarButtonStyleColorsClassName:Se.toolbarButtonStyleColorsClass.name)})},Oe.prototype.addActionButton=function(Se,pe,Be){var $e=this,Le=document.createElement("div");switch(Le.className=""+this.toolbarButtonStyleClass.name,Le.innerHTML=pe,Le.setAttribute("data-action",Be),Le.addEventListener("click",function(){$e.actionToolbarButtonClicked(Le,Be)}),Be){case"select":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Le.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Le.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Le.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Le.style.fill=this.uiStyleSettings.closeButtonColor}Se.appendChild(Le),this.buttons.push(Le)},Oe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new fe("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new fe("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new fe("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new fe("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new fe("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var Se=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new fe("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*Se)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*Se)+`px;
padding: `+Se+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new fe("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new fe("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ue("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new ue("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},Oe.prototype.markerToolbarButtonClicked=function(Se,pe){this.setActiveButton(Se),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("marker",pe)}),this.markerButtonOverflowBlock.style.display="none"},Oe.prototype.actionToolbarButtonClicked=function(Se,pe){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("action",pe)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Oe.prototype.setActiveButton=function(Se){this.resetButtonStyles(),Se.className=Se.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Se.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Oe.prototype.setActiveMarkerButton=function(Se){var pe=this.markerButtons.find(function(Be){return Be.getAttribute("data-type-name")===Se});pe&&this.setActiveButton(pe)},Oe.prototype.setCurrentMarker=function(Se){var pe=this;this.currentMarker=Se,this.buttons.filter(function(Be){return/delete|notes/.test(Be.getAttribute("data-action"))}).forEach(function(Be){pe.currentMarker===void 0?(Be.style.fillOpacity="0.4",Be.style.pointerEvents="none"):(Be.style.fillOpacity="1",Be.style.pointerEvents="all")})},Oe}(),ve=function(){function Oe(Se,pe,Be,$e){this.panels=[],this.panelButtons=[],this.markerjsContainer=Se,this.displayMode=pe,this.uiStyleSettings=Be,this.styles=$e,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Oe.prototype.addStyles=function(){var Se;this.toolboxStyleClass=this.styles.addClass(new fe("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new fe("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var pe=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new fe("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new fe("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new fe("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new fe("toolbox-panel-row_colors",`
background-color: `+((Se=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Se!==void 0?Se:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new fe("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*pe)+`px;
padding: `+pe+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new fe("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new fe("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new ue("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new ue("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},Oe.prototype.show=function(Se){var pe;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Se,this.uiContainer.className=this.toolboxStyleClass.name+" "+((pe=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&pe!==void 0?pe:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Oe.prototype.setPanelButtons=function(Se){var pe,Be,$e=this;this.panels=Se,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((pe=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&pe!==void 0?pe:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Be=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Be!==void 0?Be:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Le){var mt;Le.uiStyleSettings=$e.uiStyleSettings;var gt=document.createElement("div");gt.className=$e.toolboxButtonStyleClass.name+" "+((mt=$e.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&mt!==void 0?mt:$e.toolboxButtonStyleColorsClass.name),gt.innerHTML=Le.icon,gt.title=Le.title,gt.addEventListener("click",function(){$e.panelButtonClick(Le)}),$e.panelButtons.push(gt),$e.buttonRow.appendChild(gt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Oe.prototype.panelButtonClick=function(Se){var pe=this,Be=-1;if(Se!==this.activePanel){Be=this.panels.indexOf(Se),this.panelRow.innerHTML="";var $e=Se.getUi();$e.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild($e),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=Se}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){pe.displayMode==="inline"?pe.panelRow.style.display="none":pe.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Le,mt){var gt,wt;Le.className=pe.toolboxButtonStyleClass.name+" "+(mt===Be?""+((gt=pe.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&gt!==void 0?gt:pe.toolboxActiveButtonStyleColorsClass.name):""+((wt=pe.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&wt!==void 0?wt:pe.toolboxButtonStyleColorsClass.name))})},Oe}(),he=function(Oe,Se){this.title=Oe,this.icon=Se},ge=function(Oe){function Se(pe,Be,$e,Le){var mt=Oe.call(this,pe,Le||'<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 mt.colors=[],mt.addTransparent=!1,mt.colorBoxes=[],mt.colors=Be,mt.currentColor=$e,mt.setCurrentColor=mt.setCurrentColor.bind(mt),mt.getColorBox=mt.getColorBox.bind(mt),mt}return z(Se,Oe),Se.prototype.getUi=function(){var pe=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.whiteSpace="nowrap",this.colors.forEach(function($e){var Le=pe.getColorBox($e);Be.appendChild(Le),pe.colorBoxes.push(Le)}),Be},Se.prototype.getColorBox=function(pe){var Be=this,$e=this.uiStyleSettings.toolbarHeight/4,Le=this.uiStyleSettings.toolbarHeight-$e,mt=document.createElement("div");mt.style.display="inline-block",mt.style.boxSizing="content-box",mt.style.width=Le-2+"px",mt.style.height=Le-2+"px",mt.style.padding="1px",mt.style.marginRight="2px",mt.style.marginBottom="2px",mt.style.borderWidth="2px",mt.style.borderStyle="solid",mt.style.borderRadius=(Le+2)/2+"px",mt.style.borderColor=pe===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",mt.addEventListener("click",function(){Be.setCurrentColor(pe,mt)});var gt=document.createElement("div");return gt.style.display="inline-block",gt.style.width=Le-2+"px",gt.style.height=Le-2+"px",gt.style.backgroundColor=pe,gt.style.borderRadius=Le/2+"px",pe==="transparent"&&(gt.style.fill=this.uiStyleSettings.toolboxAccentColor,gt.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>`),mt.appendChild(gt),mt},Se.prototype.setCurrentColor=function(pe,Be){var $e=this;this.currentColor=pe,this.colorBoxes.forEach(function(Le){Le.style.borderColor=Le===Be?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(pe)},Se}(he),xe=function(){function Oe(Se,pe,Be){this._state="new",this._isSelected=!1,this._container=Se,this._overlayContainer=pe,this.globalSettings=Be,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Oe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Oe.prototype.ownsTarget=function(Se){return!1},Object.defineProperty(Oe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Oe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Oe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Oe.prototype.pointerDown=function(Se,pe){},Oe.prototype.dblClick=function(Se,pe){},Oe.prototype.manipulate=function(Se){},Oe.prototype.pointerUp=function(Se){this.stateChanged()},Oe.prototype.dispose=function(){},Oe.prototype.addMarkerVisualToContainer=function(Se){this.container.childNodes.length>0?this.container.insertBefore(Se,this.container.childNodes[0]):this.container.appendChild(Se)},Oe.prototype.getState=function(){return{typeName:Oe.typeName,state:this.state,notes:this.notes}},Oe.prototype.restoreState=function(Se){this._state=Se.state,this.notes=Se.notes},Oe.prototype.scale=function(Se,pe){},Oe.prototype.colorChanged=function(Se){this.onColorChanged&&this.onColorChanged(Se),this.stateChanged()},Oe.prototype.fillColorChanged=function(Se){this.onFillColorChanged&&this.onFillColorChanged(Se),this.stateChanged()},Oe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Se=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Se.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Se)&&this.onStateChanged(this)}},Oe.typeName="MarkerBase",Oe}(),Ce=function(){function Oe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Oe.prototype.findGripByVisual=function(Se){return this.topLeft.ownsTarget(Se)?this.topLeft:this.topCenter.ownsTarget(Se)?this.topCenter:this.topRight.ownsTarget(Se)?this.topRight:this.centerLeft.ownsTarget(Se)?this.centerLeft:this.centerRight.ownsTarget(Se)?this.centerRight:this.bottomLeft.ownsTarget(Se)?this.bottomLeft:this.bottomCenter.ownsTarget(Se)?this.bottomCenter:this.bottomRight.ownsTarget(Se)?this.bottomRight:void 0},Oe}(),je=function(){function Oe(){this.GRIP_SIZE=10,this.visual=le.createGroup(),this.visual.appendChild(le.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(le.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return Oe.prototype.ownsTarget=function(Se){return Se===this.visual||Se===this.visual.childNodes[0]||Se===this.visual.childNodes[1]},Oe}(),Ee=function(){function Oe(){}return Oe.toITransformMatrix=function(Se){return{a:Se.a,b:Se.b,c:Se.c,d:Se.d,e:Se.e,f:Se.f}},Oe.toSVGMatrix=function(Se,pe){return Se.a=pe.a,Se.b=pe.b,Se.c=pe.c,Se.d=pe.d,Se.e=pe.e,Se.f=pe.f,Se},Oe}(),ce=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.left=0,Le.top=0,Le.width=0,Le.height=0,Le.defaultSize={x:50,y:20},Le.offsetX=0,Le.offsetY=0,Le.rotationAngle=0,Le.CB_DISTANCE=10,Le._suppressMarkerCreateEvent=!1,Le.container.transform.baseVal.appendItem(le.createTransform()),Le.setupControlBox(),Le}return z(Se,Oe),Object.defineProperty(Se.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Se.prototype,"visual",{get:function(){return this._visual},set:function(pe){this._visual=pe;var Be=le.createTransform();this._visual.transform.baseVal.appendItem(Be)},enumerable:!1,configurable:!0}),Se.prototype.ownsTarget=function(pe){return!!Oe.prototype.ownsTarget.call(this,pe)||!!(this.controlGrips.findGripByVisual(pe)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(pe))},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.state==="new"&&(this.left=pe.x,this.top=pe.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var $e=this.unrotatePoint(pe);if(this.manipulationStartX=$e.x,this.manipulationStartY=$e.y,this.offsetX=$e.x-this.left,this.offsetY=$e.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Be),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Be)){this.activeGrip=this.rotatorGrip;var Le=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Le.x-this.width/2,this.top=Le.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var mt=this.container.transform.baseVal.getItem(0);mt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(mt,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Se.prototype.pointerUp=function(pe){var Be=this.state;Oe.prototype.pointerUp.call(this,pe),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(pe),this._state="select",Be==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Se.prototype.moveVisual=function(pe){this.visual.style.transform="translate("+pe.x+"px, "+pe.y+"px)"},Se.prototype.manipulate=function(pe){var Be=this.unrotatePoint(pe);this.state==="creating"?this.resize(pe):this.state==="move"?(this.left=this.manipulationStartLeft+(Be.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Be.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Be):this.state==="rotate"&&this.rotate(pe)},Se.prototype.resize=function(pe){var Be=this.manipulationStartLeft,$e=this.manipulationStartWidth,Le=this.manipulationStartTop,mt=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Be=this.manipulationStartLeft+pe.x-this.manipulationStartX,$e=this.manipulationStartWidth+this.manipulationStartLeft-Be;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:$e=this.manipulationStartWidth+pe.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Le=this.manipulationStartTop+pe.y-this.manipulationStartY,mt=this.manipulationStartHeight+this.manipulationStartTop-Le;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:mt=this.manipulationStartHeight+pe.y-this.manipulationStartY}$e>=0?(this.left=Be,this.width=$e):(this.left=Be+$e,this.width=-$e),mt>=0?(this.top=Le,this.height=mt):(this.top=Le+mt,this.height=-mt),this.setSize()},Se.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Se.prototype.rotate=function(pe){if(Math.abs(pe.x-this.centerX)>.1){var Be=Math.sign(pe.x-this.centerX);this.rotationAngle=180*Math.atan((pe.y-this.centerY)/(pe.x-this.centerX))/Math.PI+90*Be,this.applyRotation()}},Se.prototype.applyRotation=function(){var pe=this.container.transform.baseVal.getItem(0);pe.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(pe,0)},Se.prototype.rotatePoint=function(pe){if(this.rotationAngle===0)return pe;var Be=this.container.getCTM(),$e=le.createPoint(pe.x,pe.y);return{x:($e=$e.matrixTransform(Be)).x,y:$e.y}},Se.prototype.unrotatePoint=function(pe){if(this.rotationAngle===0)return pe;var Be=this.container.getCTM();Be=Be.inverse();var $e=le.createPoint(pe.x,pe.y);return{x:($e=$e.matrixTransform(Be)).x,y:$e.y}},Se.prototype.select=function(){Oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Se.prototype.deselect=function(){Oe.prototype.deselect.call(this),this.controlBox.style.display="none"},Se.prototype.setupControlBox=function(){this.controlBox=le.createGroup();var pe=le.createTransform();pe.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(pe),this.container.appendChild(this.controlBox),this.controlRect=le.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=le.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 Ce,this.addControlGrips(),this.controlBox.style.display="none"},Se.prototype.adjustControlBox=function(){var pe=this.controlBox.transform.baseVal.getItem(0);pe.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(pe,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()},Se.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()},Se.prototype.createGrip=function(){var pe=new je;return pe.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(pe.visual),pe},Se.prototype.positionGrips=function(){var pe=this.controlGrips.topLeft.GRIP_SIZE,Be=-pe/2,$e=Be,Le=(this.width+this.CB_DISTANCE)/2-pe/2,mt=(this.height+this.CB_DISTANCE)/2-pe/2,gt=this.height+this.CB_DISTANCE-pe/2,wt=this.width+this.CB_DISTANCE-pe/2;this.positionGrip(this.controlGrips.topLeft.visual,Be,$e),this.positionGrip(this.controlGrips.topCenter.visual,Le,$e),this.positionGrip(this.controlGrips.topRight.visual,wt,$e),this.positionGrip(this.controlGrips.centerLeft.visual,Be,mt),this.positionGrip(this.controlGrips.centerRight.visual,wt,mt),this.positionGrip(this.controlGrips.bottomLeft.visual,Be,gt),this.positionGrip(this.controlGrips.bottomCenter.visual,Le,gt),this.positionGrip(this.controlGrips.bottomRight.visual,wt,gt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Le,$e-3*this.CB_DISTANCE)},Se.prototype.positionGrip=function(pe,Be,$e){var Le=pe.transform.baseVal.getItem(0);Le.setTranslate(Be,$e),pe.transform.baseVal.replaceItem(Le,0)},Se.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Se.prototype.showControlBox=function(){this.controlBox.style.display=""},Se.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ee.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ee.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Oe.prototype.getState.call(this))},Se.prototype.restoreState=function(pe){Oe.prototype.restoreState.call(this,pe);var Be=pe;this.left=Be.left,this.top=Be.top,this.width=Be.width,this.height=Be.height,this.rotationAngle=Be.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ee.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Be.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ee.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Be.containerTransformMatrix))},Se.prototype.scale=function(pe,Be){Oe.prototype.scale.call(this,pe,Be);var $e=this.rotatePoint({x:this.left,y:this.top}),Le=this.unrotatePoint({x:$e.x*pe,y:$e.y*Be});this.left=Le.x,this.top=Le.y,this.width=this.width*pe,this.height=this.height*Be,this.adjustControlBox()},Se}(xe),ye=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return!(!Oe.prototype.ownsTarget.call(this,pe)&&pe!==this.visual)},Se.prototype.createVisual=function(){this.visual=le.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)},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(pe),this._state="creating")},Se.prototype.manipulate=function(pe){Oe.prototype.manipulate.call(this,pe)},Se.prototype.resize=function(pe){Oe.prototype.resize.call(this,pe),this.setSize()},Se.prototype.setSize=function(){Oe.prototype.setSize.call(this),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Se.prototype.pointerUp=function(pe){Oe.prototype.pointerUp.call(this,pe),this.setSize()},Se.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(pe),this.stateChanged()},Se.prototype.setFillColor=function(pe){this.fillColor=pe,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Se.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Se.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Se.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Oe.prototype.getState.call(this))},Se.prototype.restoreState=function(pe){var Be=pe;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),Oe.prototype.restoreState.call(this,pe),this.setSize()},Se.prototype.scale=function(pe,Be){Oe.prototype.scale.call(this,pe,Be),this.setSize()},Se.title="Rectangle marker",Se}(ce),we=function(Oe){function Se(pe,Be,$e,Le){var mt=Oe.call(this,pe,Le||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return mt.widths=[],mt.widthBoxes=[],mt.widths=Be,mt.currentWidth=$e,mt.setCurrentWidth=mt.setCurrentWidth.bind(mt),mt}return z(Se,Oe),Se.prototype.getUi=function(){var pe=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.widths.forEach(function($e){var Le=document.createElement("div");Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=$e===pe.currentWidth?pe.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){pe.setCurrentWidth($e,Le)}),Be.appendChild(Le);var mt=document.createElement("div");mt.innerText=$e.toString(),mt.style.marginRight="5px",Le.appendChild(mt);var gt=document.createElement("div");gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.display="flex",gt.style.alignItems="center";var wt=document.createElement("hr");wt.style.minWidth="20px",wt.style.border="0px",wt.style.borderTop=$e+"px solid "+pe.uiStyleSettings.toolboxColor,wt.style.flexGrow="2",gt.appendChild(wt),Le.appendChild(gt),pe.widthBoxes.push(Le)}),Be},Se.prototype.setCurrentWidth=function(pe,Be){var $e=this;this.currentWidth=pe,this.widthBoxes.forEach(function(Le){Le.style.borderColor=Le===Be?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Se}(he),De=function(Oe){function Se(pe,Be,$e,Le){var mt=Oe.call(this,pe,Le||'<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 mt.styles=[],mt.styleBoxes=[],mt.styles=Be,mt.currentStyle=$e,mt.setCurrentStyle=mt.setCurrentStyle.bind(mt),mt}return z(Se,Oe),Se.prototype.getUi=function(){var pe=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.styles.forEach(function($e){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/pe.styles.length-5+"%",Le.style.borderColor=$e===pe.currentStyle?pe.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){pe.setCurrentStyle($e,Le)}),Be.appendChild(Le);var mt=document.createElement("div");mt.style.minHeight="20px",mt.style.flexGrow="2",mt.style.overflow="hidden";var gt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+pe.uiStyleSettings.toolboxColor+'" stroke-width="3" '+($e!==""?'stroke-dasharray="'+$e+'"':"")+` />
</svg>`;mt.innerHTML=gt,Le.appendChild(mt),pe.styleBoxes.push(Le)}),Be},Se.prototype.setCurrentStyle=function(pe,Be){var $e=this;this.currentStyle=pe,this.styleBoxes.forEach(function(Le){Le.style.borderColor=Le===Be?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Se}(he),Re=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.strokeColor=$e.defaultColor,Le.strokeWidth=$e.defaultStrokeWidth,Le.strokeDasharray=$e.defaultStrokeDasharray,Le.strokePanel=new ge("Line color",$e.defaultColorSet,$e.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new De("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return z(Se,Oe),Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Oe.prototype.getState.call(this);return pe.typeName=Se.typeName,pe},Se.typeName="FrameMarker",Se.title="Frame marker",Se.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Se}(ye),ke=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},_e=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.x1=0,Le.y1=0,Le.x2=0,Le.y2=0,Le.defaultLength=50,Le.manipulationStartX=0,Le.manipulationStartY=0,Le.manipulationStartX1=0,Le.manipulationStartY1=0,Le.manipulationStartX2=0,Le.manipulationStartY2=0,Le.setupControlBox(),Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return!!Oe.prototype.ownsTarget.call(this,pe)||!(!this.grip1.ownsTarget(pe)&&!this.grip2.ownsTarget(pe))},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.manipulationStartX=pe.x,this.manipulationStartY=pe.y,this.state==="new"&&(this.x1=pe.x,this.y1=pe.y,this.x2=pe.x,this.y2=pe.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(Be)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Be)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Se.prototype.pointerUp=function(pe){var Be=this.state;Oe.prototype.pointerUp.call(this,pe),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(pe),this._state="select",Be==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Se.prototype.adjustVisual=function(){},Se.prototype.manipulate=function(pe){this.state==="creating"?this.resize(pe):this.state==="move"?(this.x1=this.manipulationStartX1+pe.x-this.manipulationStartX,this.y1=this.manipulationStartY1+pe.y-this.manipulationStartY,this.x2=this.manipulationStartX2+pe.x-this.manipulationStartX,this.y2=this.manipulationStartY2+pe.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(pe)},Se.prototype.resize=function(pe){switch(this.activeGrip){case this.grip1:this.x1=pe.x,this.y1=pe.y;break;case this.grip2:case void 0:this.x2=pe.x,this.y2=pe.y}this.adjustVisual(),this.adjustControlBox()},Se.prototype.select=function(){Oe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Se.prototype.deselect=function(){Oe.prototype.deselect.call(this),this.controlBox.style.display="none"},Se.prototype.setupControlBox=function(){this.controlBox=le.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Se.prototype.adjustControlBox=function(){this.positionGrips()},Se.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Se.prototype.createGrip=function(){var pe=new je;return pe.visual.transform.baseVal.appendItem(le.createTransform()),this.controlBox.appendChild(pe.visual),pe},Se.prototype.positionGrips=function(){var pe=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-pe/2,this.y1-pe/2),this.positionGrip(this.grip2.visual,this.x2-pe/2,this.y2-pe/2)},Se.prototype.positionGrip=function(pe,Be,$e){var Le=pe.transform.baseVal.getItem(0);Le.setTranslate(Be,$e),pe.transform.baseVal.replaceItem(Le,0)},Se.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Oe.prototype.getState.call(this))},Se.prototype.restoreState=function(pe){Oe.prototype.restoreState.call(this,pe);var Be=pe;this.x1=Be.x1,this.y1=Be.y1,this.x2=Be.x2,this.y2=Be.y2},Se.prototype.scale=function(pe,Be){Oe.prototype.scale.call(this,pe,Be),this.x1=this.x1*pe,this.y1=this.y1*Be,this.x2=this.x2*pe,this.y2=this.y2*Be,this.adjustVisual(),this.adjustControlBox()},Se}(xe),Ze=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.strokeColor=$e.defaultColor,Le.strokeWidth=$e.defaultStrokeWidth,Le.strokeDasharray=$e.defaultStrokeDasharray,Le.strokePanel=new ge("Line color",$e.defaultColorSet,$e.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new De("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return!(!Oe.prototype.ownsTarget.call(this,pe)&&pe!==this.visual&&pe!==this.selectorLine&&pe!==this.visibleLine)},Se.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorLine=le.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=le.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)},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Se.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()),le.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Se.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.adjustVisual(),this.colorChanged(pe)},Se.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.adjustVisual()},Se.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Oe.prototype.getState.call(this));return pe.typeName=Se.typeName,pe},Se.prototype.restoreState=function(pe){Oe.prototype.restoreState.call(this,pe);var Be=pe;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.createVisual(),this.adjustVisual()},Se.typeName="LineMarker",Se.title="Line marker",Se.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Se}(_e),Ve=function(Oe){function Se(pe,Be,$e,Le){var mt=Oe.call(this,pe,Le||'<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 mt.fonts=[],mt.fontBoxes=[],mt.fonts=Be,mt.currentFont=$e,mt.setCurrentFont=mt.setCurrentFont.bind(mt),mt}return z(Se,Oe),Se.prototype.getUi=function(){var pe=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.flexGrow="2",this.fonts.forEach(function($e){var Le=document.createElement("div");Le.style.display="inline-block",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.overflow="hidden",Le.style.maxWidth=100/pe.fonts.length-5+"%",Le.style.borderColor=$e===pe.currentFont?pe.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){pe.setCurrentFont($e,Le)}),Be.appendChild(Le);var mt=document.createElement("div");mt.style.display="flex",mt.style.minHeight="20px",mt.style.flexGrow="2",mt.style.fontFamily=$e,mt.style.overflow="hidden";var gt=document.createElement("div");gt.style.whiteSpace="nowrap",gt.style.overflow="hidden",gt.style.textOverflow="ellipsis",gt.innerHTML="The quick brown fox jumps over the lazy dog",mt.appendChild(gt),Le.appendChild(mt),pe.fontBoxes.push(Le)}),Be},Se.prototype.setCurrentFont=function(pe,Be){var $e=this;this.currentFont=pe,this.fontBoxes.forEach(function(Le){Le.style.borderColor=Le===Be?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Se}(he),Qe=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.color="transparent",Le.padding=5,Le.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Le.text=Le.DEFAULT_TEXT,Le.isMoved=!1,Le.color=$e.defaultColor,Le.fontFamily=$e.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setColor=Le.setColor.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.renderText=Le.renderText.bind(Le),Le.sizeText=Le.sizeText.bind(Le),Le.textEditDivClicked=Le.textEditDivClicked.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.setSize=Le.setSize.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.colorPanel=new ge("Color",$e.defaultColorSet,$e.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.fontFamilyPanel=new Ve("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){if(Oe.prototype.ownsTarget.call(this,pe)||pe===this.visual||pe===this.textElement||pe===this.bgRectangle)return!0;var Be=!1;return this.textElement.childNodes.forEach(function($e){$e===pe&&(Be=!0)}),Be},Se.prototype.createVisual=function(){this.visual=le.createGroup(),this.bgRectangle=le.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=le.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.textElement.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.isMoved=!1,this.pointerDownPoint=pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(pe),this._state="creating")},Se.prototype.renderText=function(){var pe=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(Be){pe.textElement.appendChild(le.createTSpan(Be.trim()===""?" ":Be.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Se.prototype.getTextScale=function(){var pe=this.textElement.getBBox(),Be=1;if(pe.width>0&&pe.height>0){var $e=(1*this.width-this.width*this.padding*2/100)/pe.width,Le=(1*this.height-this.height*this.padding*2/100)/pe.height;Be=Math.min($e,Le)}return Be},Se.prototype.getTextPosition=function(pe){var Be=this.textElement.getBBox(),$e=0,Le=0;return Be.width>0&&Be.height>0&&($e=(this.width-Be.width*pe)/2,Le=this.height/2-Be.height*pe/2),{x:$e,y:Le}},Se.prototype.sizeText=function(){var pe=this.textElement.getBBox(),Be=this.getTextScale(),$e=this.getTextPosition(Be);$e.y-=pe.y*Be,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+$e.x+"px, "+$e.y+"px) scale("+Be+", "+Be+")":(this.textElement.transform.baseVal.getItem(0).setTranslate($e.x,$e.y),this.textElement.transform.baseVal.getItem(1).setScale(Be,Be))},Se.prototype.manipulate=function(pe){Oe.prototype.manipulate.call(this,pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(pe.x-this.pointerDownPoint.x)>5||Math.abs(pe.y-this.pointerDownPoint.y)>5)},Se.prototype.resize=function(pe){Oe.prototype.resize.call(this,pe),this.isMoved=!0,this.setSize(),this.sizeText()},Se.prototype.setSize=function(){Oe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Se.prototype.pointerUp=function(pe){var Be=this.state;Be==="creating"&&(this._suppressMarkerCreateEvent=!0),Oe.prototype.pointerUp.call(this,pe),this.setSize(),(Be==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Se.prototype.showTextEditor=function(){var pe=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(Be){Be.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Be=Number.parseFloat(pe.textEditor.style.fontSize);pe.textEditor.clientWidth>=Number.parseInt(pe.textEditor.style.maxWidth)&&Be>.9;)Be-=.1,pe.textEditor.style.fontSize=Math.max(Be,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Be){if(Be.clipboardData){var $e=Be.clipboardData.getData("text"),Le=window.getSelection();if(!Le.rangeCount)return!1;Le.deleteFromDocument(),Le.getRangeAt(0).insertNode(document.createTextNode($e)),Be.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){pe.textEditDivClicked(pe.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Se.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var pe=this.getTextScale(),Be=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),$e=this.textElement.getBBox(),Le={x:$e.width*pe,y:$e.height*pe};Be.x-=Le.x/2,Be.y-=Le.y/2,this.textEditor.style.top=Be.y+"px",this.textEditor.style.left=Be.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Be.x+"px",this.textEditor.style.fontSize=Math.max(16*pe,12)+"px",this.textElement.style.display="none"}},Se.prototype.textEditDivClicked=function(pe){this.text=pe.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Se.prototype.select=function(){Oe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Se.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Oe.prototype.deselect.call(this)},Se.prototype.dblClick=function(pe,Be){Oe.prototype.dblClick.call(this,pe,Be),this.showTextEditor()},Se.prototype.setColor=function(pe){this.textElement&&le.setAttributes(this.textElement,[["fill",pe]]),this.color=pe,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(pe)},Se.prototype.setFont=function(pe){this.textElement&&le.setAttributes(this.textElement,[["font-family",pe]]),this.fontFamily=pe,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Se.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Se.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Oe.prototype.getState.call(this));return pe.typeName=Se.typeName,pe},Se.prototype.restoreState=function(pe){var Be=pe;this.color=Be.color,this.fontFamily=Be.fontFamily,this.padding=Be.padding,this.text=Be.text,this.createVisual(),Oe.prototype.restoreState.call(this,pe),this.setSize()},Se.prototype.scale=function(pe,Be){Oe.prototype.scale.call(this,pe,Be),this.setSize(),this.sizeText(),this.positionTextEditor()},Se.typeName="TextMarker",Se.title="Text marker",Se.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>',Se}(ce),ut=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.color="transparent",Le.lineWidth=3,Le.drawing=!1,Le.pixelRatio=1,Le.color=$e.defaultColor,Le.lineWidth=$e.defaultStrokeWidth,Le.pixelRatio=$e.freehandPixelRatio,Le.setColor=Le.setColor.bind(Le),Le.addCanvas=Le.addCanvas.bind(Le),Le.finishCreation=Le.finishCreation.bind(Le),Le.setLineWidth=Le.setLineWidth.bind(Le),Le.colorPanel=new ge("Color",$e.defaultColorSet,$e.defaultColor),Le.colorPanel.onColorChanged=Le.setColor,Le.lineWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Le.lineWidthPanel.onWidthChanged=Le.setLineWidth,Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return!(!Oe.prototype.ownsTarget.call(this,pe)&&pe!==this.visual&&pe!==this.drawingImage)},Se.prototype.createVisual=function(){this.visual=le.createGroup(),this.drawingImage=le.createImage(),this.visual.appendChild(this.drawingImage);var pe=le.createTransform();this.visual.transform.baseVal.appendItem(pe),this.addMarkerVisualToContainer(this.visual)},Se.prototype.pointerDown=function(pe,Be){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(pe.x,pe.y),this.drawing=!0):Oe.prototype.pointerDown.call(this,pe,Be)},Se.prototype.manipulate=function(pe){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(pe.x,pe.y),this.canvasContext.stroke()):Oe.prototype.manipulate.call(this,pe)},Se.prototype.resize=function(pe){Oe.prototype.resize.call(this,pe),le.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Se.prototype.pointerUp=function(pe){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Oe.prototype.pointerUp.call(this,pe)},Se.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)},Se.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Oe.prototype.select.call(this)},Se.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Oe.prototype.deselect.call(this)},Se.prototype.finishCreation=function(){for(var pe=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Be=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],$e=Be[0],Le=Be[1],mt=Be[2],gt=Be[3],wt=!1,bt=0;bt<this.canvasElement.height;bt++)for(var yt=0;yt<this.canvasElement.width;yt++)pe.data[bt*this.canvasElement.width*4+4*yt+3]>0&&(wt=!0,bt<Le&&(Le=bt),yt<$e&&($e=yt),bt>gt&&(gt=bt),yt>mt&&(mt=yt));if(wt){this.left=$e/this.pixelRatio,this.top=Le/this.pixelRatio,this.width=(mt-$e)/this.pixelRatio,this.height=(gt-Le)/this.pixelRatio;var Et=document.createElement("canvas");Et.width=mt-$e,Et.height=gt-Le,Et.getContext("2d").putImageData(this.canvasContext.getImageData($e,Le,mt-$e,gt-Le),0,0),this.drawingImgUrl=Et.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Se.prototype.setDrawingImage=function(){le.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),le.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Se.prototype.setColor=function(pe){this.color=pe,this.colorChanged(pe)},Se.prototype.setLineWidth=function(pe){this.lineWidth=pe},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Object.assign({drawingImgUrl:this.drawingImgUrl},Oe.prototype.getState.call(this));return pe.typeName=Se.typeName,pe},Se.prototype.restoreState=function(pe){this.createVisual(),Oe.prototype.restoreState.call(this,pe),this.drawingImgUrl=pe.drawingImgUrl,this.setDrawingImage()},Se.prototype.scale=function(pe,Be){Oe.prototype.scale.call(this,pe,Be),this.setDrawingImage()},Se.typeName="FreehandMarker",Se.title="Freehand marker",Se.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>',Se}(ce),Ie=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,$e||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Le.typeBoxes=[],Le.currentType=Be,Le.setCurrentType=Le.setCurrentType.bind(Le),Le}return z(Se,Oe),Se.prototype.getUi=function(){var pe=this,Be=document.createElement("div");Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2";for(var $e=function(gt){var wt="both";switch(gt){case 0:wt="both";break;case 1:wt="start";break;case 2:wt="end";break;case 3:wt="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=wt===Le.currentType?Le.uiStyleSettings.toolboxAccentColor:"transparent",bt.addEventListener("click",function(){pe.setCurrentType(wt,bt)}),Be.appendChild(bt),wt==="both"||wt==="start"){var yt=document.createElement("div");yt.style.display="flex",yt.style.alignItems="center",yt.style.minHeight="20px",yt.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="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,yt.style.marginLeft="5px",bt.appendChild(yt)}var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.style.flexGrow="2";var kt=document.createElement("hr");if(kt.style.minWidth="20px",kt.style.border="0px",kt.style.borderTop="3px solid "+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee"),kt.style.flexGrow="2",Et.appendChild(kt),bt.appendChild(Et),wt==="both"||wt==="end"){var jt=document.createElement("div");jt.style.display="flex",jt.style.alignItems="center",jt.style.minHeight="20px",jt.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="`+(Le.uiStyleSettings!==void 0?Le.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,jt.style.marginRight="5px",bt.appendChild(jt)}Le.typeBoxes.push(bt)},Le=this,mt=0;mt<4;mt++)$e(mt);return Be},Se.prototype.setCurrentType=function(pe,Be){var $e=this;this.currentType=pe,this.typeBoxes.forEach(function(Le){Le.style.borderColor=Le===Be?$e.uiStyleSettings!==void 0?$e.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Se}(he),We=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.arrowType="end",Le.arrowBaseHeight=10,Le.arrowBaseWidth=10,Le.getArrowPoints=Le.getArrowPoints.bind(Le),Le.setArrowType=Le.setArrowType.bind(Le),Le.arrowTypePanel=new Ie("Arrow type","end"),Le.arrowTypePanel.onArrowTypeChanged=Le.setArrowType,Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return!(!Oe.prototype.ownsTarget.call(this,pe)&&pe!==this.arrow1&&pe!==this.arrow2)},Se.prototype.getArrowPoints=function(pe,Be){var $e=this.arrowBaseWidth+2*this.strokeWidth,Le=this.arrowBaseHeight+2*this.strokeWidth;return pe-$e/2+","+(Be+Le/2)+" "+pe+","+(Be-Le/2)+" "+(pe+$e/2)+","+(Be+Le/2)},Se.prototype.createTips=function(){this.arrow1=le.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=le.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(le.createTransform()),this.visual.appendChild(this.arrow2)},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.state==="creating"&&this.createTips()},Se.prototype.adjustVisual=function(){if(Oe.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",le.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),le.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var pe=0;Math.abs(this.x1-this.x2)>.1&&(pe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Be=this.arrow1.transform.baseVal.getItem(0);Be.setRotate(pe,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Be,0);var $e=this.arrow2.transform.baseVal.getItem(0);$e.setRotate(pe+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem($e,0)}},Se.prototype.setArrowType=function(pe){this.arrowType=pe,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Object.assign({arrowType:this.arrowType},Oe.prototype.getState.call(this));return pe.typeName=Se.typeName,pe},Se.prototype.restoreState=function(pe){Oe.prototype.restoreState.call(this,pe);var Be=pe;this.arrowType=Be.arrowType,this.createTips(),this.adjustVisual()},Se.typeName="ArrowMarker",Se.title="Arrow marker",Se.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Se}(Ze),it=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.fillColor=$e.defaultFillColor,Le.strokeWidth=0,Le.fillPanel=new ge("Color",$e.defaultColorSet,$e.defaultFillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le}return z(Se,Oe),Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Oe.prototype.getState.call(this);return pe.typeName=Se.typeName,pe},Se.typeName="CoverMarker",Se.title="Cover marker",Se.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Se}(ye),at=function(Oe){function Se(pe,Be,$e,Le){var mt=Oe.call(this,pe,Le||'<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 mt.opacities=[],mt.opacityBoxes=[],mt.opacities=Be,mt.currentOpacity=$e,mt.setCurrentOpacity=mt.setCurrentOpacity.bind(mt),mt}return z(Se,Oe),Se.prototype.getUi=function(){var pe=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",Be.style.justifyContent="space-between",this.opacities.forEach(function($e){var Le=document.createElement("div");Le.style.display="flex",Le.style.alignItems="center",Le.style.justifyContent="center",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=$e===pe.currentOpacity?pe.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){pe.setCurrentOpacity($e,Le)}),Be.appendChild(Le);var mt=document.createElement("div");mt.innerText=100*$e+"%",Le.appendChild(mt),pe.opacityBoxes.push(Le)}),Be},Se.prototype.setCurrentOpacity=function(pe,Be){var $e=this;this.currentOpacity=pe,this.opacityBoxes.forEach(function(Le){Le.style.borderColor=Le===Be?$e.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Se}(he),nt=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.setOpacity=Le.setOpacity.bind(Le),Le.fillColor=$e.defaultHighlightColor,Le.strokeWidth=0,Le.opacity=$e.defaultHighlightOpacity,Le.fillPanel=new ge("Color",$e.defaultColorSet,Le.fillColor),Le.fillPanel.onColorChanged=Le.setFillColor,Le.opacityPanel=new at("Opacity",$e.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return z(Se,Oe),Se.prototype.setOpacity=function(pe){this.opacity=pe,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Oe.prototype.getState.call(this);return pe.typeName=Se.typeName,pe},Se.typeName="HighlightMarker",Se.title="Highlight marker",Se.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>',Se}(it),Xe='<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>',et='<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>',Ye=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.bgColor="transparent",Le.tipPosition={x:0,y:0},Le.tipBase1Position={x:0,y:0},Le.tipBase2Position={x:0,y:0},Le.tipMoving=!1,Le.color=$e.defaultStrokeColor,Le.bgColor=$e.defaultFillColor,Le.fontFamily=$e.defaultFontFamily,Le.defaultSize={x:100,y:30},Le.setBgColor=Le.setBgColor.bind(Le),Le.getTipPoints=Le.getTipPoints.bind(Le),Le.positionTip=Le.positionTip.bind(Le),Le.setTipPoints=Le.setTipPoints.bind(Le),Le.colorPanel=new ge("Text color",$e.defaultColorSet,Le.color,Xe),Le.colorPanel.onColorChanged=Le.setColor,Le.bgColorPanel=new ge("Fill color",$e.defaultColorSet,Le.bgColor,et),Le.bgColorPanel.onColorChanged=Le.setBgColor,Le.fontFamilyPanel=new Ve("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.tipGrip=new je,Le.tipGrip.visual.transform.baseVal.appendItem(le.createTransform()),Le.controlBox.appendChild(Le.tipGrip.visual),Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return Oe.prototype.ownsTarget.call(this,pe)||this.tipGrip.ownsTarget(pe)||this.tip===pe},Se.prototype.createTip=function(){le.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=le.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Se.prototype.pointerDown=function(pe,Be){this.state==="new"&&Oe.prototype.pointerDown.call(this,pe,Be),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Be)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Oe.prototype.pointerDown.call(this,pe,Be)},Se.prototype.pointerUp=function(pe){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Oe.prototype.pointerUp.call(this,pe);else{var Be=this.state==="creating";Oe.prototype.pointerUp.call(this,pe),this.setTipPoints(Be),this.positionTip()}},Se.prototype.manipulate=function(pe){if(this.tipMoving){var Be=this.unrotatePoint(pe);this.tipPosition={x:Be.x-this.manipulationStartLeft,y:Be.y-this.manipulationStartTop},this.positionTip()}else Oe.prototype.manipulate.call(this,pe)},Se.prototype.setBgColor=function(pe){this.bgRectangle&&this.tip&&(le.setAttributes(this.bgRectangle,[["fill",pe]]),le.setAttributes(this.tip,[["fill",pe]])),this.bgColor=pe,this.fillColorChanged(pe)},Se.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},Se.prototype.setTipPoints=function(pe){pe===void 0&&(pe=!1);var Be=Math.min(this.height/2,15),$e=this.height/5;pe&&(this.tipPosition={x:Be+$e/2,y:this.height+20});var Le=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?($e=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:Be,y:0},this.tipBase2Position={x:Be+$e,y:0}):(this.tipBase1Position={x:0,y:Be},this.tipBase2Position={x:0,y:Be+$e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Le<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?($e=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Be-$e,y:0},this.tipBase2Position={x:this.width-Be,y:0}):(this.tipBase1Position={x:this.width,y:Be},this.tipBase2Position={x:this.width,y:Be+$e}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Le<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?($e=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Be-$e,y:this.height},this.tipBase2Position={x:this.width-Be,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Be-$e},this.tipBase2Position={x:this.width,y:this.height-Be}):Le<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?($e=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:Be,y:this.height},this.tipBase2Position={x:Be+$e,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Be},this.tipBase2Position={x:0,y:this.height-Be-$e})},Se.prototype.resize=function(pe){Oe.prototype.resize.call(this,pe),this.positionTip()},Se.prototype.positionTip=function(){le.setAttributes(this.tip,[["points",this.getTipPoints()]]);var pe=this.tipGrip.visual.transform.baseVal.getItem(0);pe.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(pe,0)},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Se.prototype.select=function(){this.positionTip(),Oe.prototype.select.call(this)},Se.prototype.getState=function(){var pe=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Oe.prototype.getState.call(this));return pe.typeName=Se.typeName,pe},Se.prototype.restoreState=function(pe){var Be=pe;this.bgColor=Be.bgColor,this.tipPosition=Be.tipPosition,Oe.prototype.restoreState.call(this,pe),this.createTip(),this.setTipPoints()},Se.prototype.scale=function(pe,Be){Oe.prototype.scale.call(this,pe,Be),this.tipPosition={x:this.tipPosition.x*pe,y:this.tipPosition.y*Be},this.positionTip()},Se.typeName="CalloutMarker",Se.title="Callout marker",Se.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>',Se}(Qe),dt=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.opacity=1,Le.strokeColor=$e.defaultColor,Le.strokeWidth=$e.defaultStrokeWidth,Le.strokeDasharray=$e.defaultStrokeDasharray,Le.fillColor=$e.defaultFillColor,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.setOpacity=Le.setOpacity.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.strokePanel=new ge("Line color",ee($e.defaultColorSet,["transparent"]),$e.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new ge("Fill color",ee($e.defaultColorSet,["transparent"]),Le.fillColor,et),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new De("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.opacityPanel=new at("Opacity",$e.defaultOpacitySteps,Le.opacity),Le.opacityPanel.onOpacityChanged=Le.setOpacity,Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return!(!Oe.prototype.ownsTarget.call(this,pe)&&pe!==this.visual)},Se.prototype.createVisual=function(){this.visual=le.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)},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(pe),this._state="creating")},Se.prototype.manipulate=function(pe){Oe.prototype.manipulate.call(this,pe)},Se.prototype.resize=function(pe){Oe.prototype.resize.call(this,pe),this.setSize()},Se.prototype.setSize=function(){Oe.prototype.setSize.call(this),le.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Se.prototype.pointerUp=function(pe){Oe.prototype.pointerUp.call(this,pe),this.setSize()},Se.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.visual&&le.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(pe),this.stateChanged()},Se.prototype.setFillColor=function(pe){this.fillColor=pe,this.visual&&le.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(pe),this.stateChanged()},Se.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.visual&&le.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Se.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.visual&&le.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Se.prototype.setOpacity=function(pe){this.opacity=pe,this.visual&&le.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Oe.prototype.getState.call(this));return pe.typeName=Se.typeName,pe},Se.prototype.restoreState=function(pe){var Be=pe;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),Oe.prototype.restoreState.call(this,pe),this.setSize()},Se.prototype.scale=function(pe,Be){Oe.prototype.scale.call(this,pe,Be),this.setSize()},Se.typeName="EllipseMarker",Se.title="Ellipse marker",Se.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>',Se}(ce),tt=function(Oe){function Se(pe,Be,$e){return Oe.call(this,pe,Be,$e)||this}return z(Se,Oe),Object.defineProperty(Se.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Se.prototype.ownsTarget=function(pe){return!(!Oe.prototype.ownsTarget.call(this,pe)&&pe!==this.tip1&&pe!==this.tip2)},Se.prototype.createTips=function(){this.tip1=le.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(le.createTransform()),this.visual.appendChild(this.tip1),this.tip2=le.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(le.createTransform()),this.visual.appendChild(this.tip2)},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.state==="creating"&&this.createTips()},Se.prototype.adjustVisual=function(){if(Oe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(le.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()]]),le.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 pe=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Be=this.tip1.transform.baseVal.getItem(0);Be.setRotate(pe,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Be,0);var $e=this.tip2.transform.baseVal.getItem(0);$e.setRotate(pe+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem($e,0)}},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Oe.prototype.getState.call(this);return pe.typeName=Se.typeName,pe},Se.prototype.restoreState=function(pe){Oe.prototype.restoreState.call(this,pe),this.createTips(),this.adjustVisual()},Se.typeName="MeasurementMarker",Se.title="Measurement marker",Se.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>',Se}(Ze),lt=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.strokePanel.colors=$e.defaultColorSet,Le.fillColor="transparent",Le}return z(Se,Oe),Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Oe.prototype.getState.call(this);return pe.typeName=Se.typeName,pe},Se.typeName="EllipseFrameMarker",Se.title="Ellipse frame marker",Se.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>',Se}(dt),st=function(){function Oe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Oe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Oe.prototype.addUndoStep=function(Se){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Se)||(this.undoStack.push(Se),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Se)&&this.redoStack.splice(0,this.redoStack.length))},Oe.prototype.replaceLastUndoStep=function(Se){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Se)},Oe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Oe.prototype.undo=function(){if(this.undoStack.length>1){var Se=this.undoStack.pop();return Se!==void 0&&this.redoStack.push(Se),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Oe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Oe}(),He=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.curveX=0,Le.curveY=0,Le.manipulationStartCurveX=0,Le.manipulationStartCurveY=0,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.positionGrips=Le.positionGrips.bind(Le),Le.addControlGrips=Le.addControlGrips.bind(Le),Le.adjustVisual=Le.adjustVisual.bind(Le),Le.setupControlBox=Le.setupControlBox.bind(Le),Le.resize=Le.resize.bind(Le),Le.strokeColor=$e.defaultColor,Le.strokeWidth=$e.defaultStrokeWidth,Le.strokeDasharray=$e.defaultStrokeDasharray,Le.strokePanel=new ge("Line color",$e.defaultColorSet,$e.defaultColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new De("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return!(!Oe.prototype.ownsTarget.call(this,pe)&&pe!==this.visual&&pe!==this.selectorCurve&&pe!==this.visibleCurve&&!this.curveGrip.ownsTarget(pe))},Se.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Se.prototype.createVisual=function(){this.visual=le.createGroup(),this.selectorCurve=le.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=le.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)},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=pe.x,this.curveY=pe.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Be)&&(this.activeGrip=this.curveGrip,this._state="resize")},Se.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),le.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),le.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),le.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Se.prototype.setupControlBox=function(){Oe.prototype.setupControlBox.call(this),this.curveControlLine1=le.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=le.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)},Se.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Oe.prototype.addControlGrips.call(this)},Se.prototype.positionGrips=function(){Oe.prototype.positionGrips.call(this);var pe=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-pe/2,this.curveY-pe/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()))},Se.prototype.manipulate=function(pe){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+pe.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+pe.y-this.manipulationStartY),Oe.prototype.manipulate.call(this,pe)},Se.prototype.resize=function(pe){this.activeGrip===this.curveGrip&&(this.curveX=pe.x,this.curveY=pe.y),Oe.prototype.resize.call(this,pe),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Se.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.adjustVisual(),this.colorChanged(pe)},Se.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.adjustVisual()},Se.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.adjustVisual()},Se.prototype.scale=function(pe,Be){this.curveX=this.curveX*pe,this.curveY=this.curveY*Be,Oe.prototype.scale.call(this,pe,Be)},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Oe.prototype.getState.call(this));return pe.typeName=Se.typeName,pe},Se.prototype.restoreState=function(pe){Oe.prototype.restoreState.call(this,pe);var Be=pe;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.curveX=Be.curveX,this.curveY=Be.curveY,this.createVisual(),this.adjustVisual()},Se.typeName="CurveMarker",Se.title="Curve marker",Se.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>',Se}(_e),Ne=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,Be,$e)||this;return Le.fillColor="transparent",Le.strokeColor="transparent",Le.strokeWidth=0,Le.strokeDasharray="",Le.textColor="transparent",Le.fontSize="1rem",Le.isMoved=!1,Le.captionText="Caption",Le.PADDING=5,Le.captionBoxWidth=0,Le.captionBoxHeight=0,Le.strokeColor=$e.defaultColor,Le.strokeWidth=$e.defaultStrokeWidth,Le.strokeDasharray=$e.defaultStrokeDasharray,Le.fillColor=$e.defaultFillColor,Le.textColor=$e.defaultStrokeColor,Le.fontFamily=$e.defaultFontFamily,Le.fontSize=$e.defaultCaptionFontSize,Le.captionText=$e.defaultCaptionText,Le.setStrokeColor=Le.setStrokeColor.bind(Le),Le.setFillColor=Le.setFillColor.bind(Le),Le.setStrokeWidth=Le.setStrokeWidth.bind(Le),Le.setStrokeDasharray=Le.setStrokeDasharray.bind(Le),Le.createVisual=Le.createVisual.bind(Le),Le.sizeCaption=Le.sizeCaption.bind(Le),Le.setCaptionText=Le.setCaptionText.bind(Le),Le.showTextEditor=Le.showTextEditor.bind(Le),Le.positionTextEditor=Le.positionTextEditor.bind(Le),Le.finishTextEditing=Le.finishTextEditing.bind(Le),Le.setFont=Le.setFont.bind(Le),Le.setTextColor=Le.setTextColor.bind(Le),Le.strokePanel=new ge("Line color",ee($e.defaultColorSet,["transparent"]),Le.strokeColor),Le.strokePanel.onColorChanged=Le.setStrokeColor,Le.fillPanel=new ge("Fill color",ee($e.defaultColorSet,["transparent"]),Le.fillColor,et),Le.fillPanel.onColorChanged=Le.setFillColor,Le.strokeWidthPanel=new we("Line width",$e.defaultStrokeWidths,$e.defaultStrokeWidth),Le.strokeWidthPanel.onWidthChanged=Le.setStrokeWidth,Le.strokeStylePanel=new De("Line style",$e.defaultStrokeDasharrays,$e.defaultStrokeDasharray),Le.strokeStylePanel.onStyleChanged=Le.setStrokeDasharray,Le.fontFamilyPanel=new Ve("Font",$e.defaultFontFamilies,$e.defaultFontFamily),Le.fontFamilyPanel.onFontChanged=Le.setFont,Le.textColorPanel=new ge("Text color",$e.defaultColorSet,Le.textColor,Xe),Le.textColorPanel.onColorChanged=Le.setTextColor,Le}return z(Se,Oe),Se.prototype.ownsTarget=function(pe){return!(!Oe.prototype.ownsTarget.call(this,pe)&&pe!==this.visual&&pe!==this.frame&&pe!==this.captionBg&&pe!==this.captionElement)},Se.prototype.createVisual=function(){this.visual=le.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=le.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=le.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=le.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()},Se.prototype.setCaptionText=function(pe){this.captionText=pe,this.captionElement.textContent=this.captionText,this.sizeCaption()},Se.prototype.pointerDown=function(pe,Be){Oe.prototype.pointerDown.call(this,pe,Be),this.isMoved=!1,this.pointerDownPoint=pe,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(pe),this._state="creating")},Se.prototype.manipulate=function(pe){Oe.prototype.manipulate.call(this,pe),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(pe.x-this.pointerDownPoint.x)>5||Math.abs(pe.y-this.pointerDownPoint.y)>5)},Se.prototype.resize=function(pe){Oe.prototype.resize.call(this,pe),this.setSize()},Se.prototype.sizeCaption=function(){var pe=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=pe.width+2*this.PADDING,this.captionBoxHeight=pe.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),le.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')"]]),le.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')"]])},Se.prototype.showTextEditor=function(){var pe=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(Be){Be.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Be){Be.key==="Enter"&&pe.finishTextEditing(pe.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){pe.finishTextEditing(pe.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){pe.finishTextEditing(pe.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Se.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"))},Se.prototype.finishTextEditing=function(pe){this.setCaptionText(pe.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Se.prototype.setFont=function(pe){this.captionElement&&le.setAttributes(this.captionElement,[["font-family",pe]]),this.fontFamily=pe,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Se.prototype.setTextColor=function(pe){this.captionElement&&le.setAttributes(this.captionElement,[["fill",pe]]),this.textColor=pe,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Se.prototype.setSize=function(){Oe.prototype.setSize.call(this),le.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Se.prototype.pointerUp=function(pe){Oe.prototype.pointerUp.call(this,pe),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Se.prototype.dblClick=function(pe,Be){Oe.prototype.dblClick.call(this,pe,Be),this.showTextEditor()},Se.prototype.setStrokeColor=function(pe){this.strokeColor=pe,this.frame&&le.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(pe),this.stateChanged()},Se.prototype.setFillColor=function(pe){this.fillColor=pe,this.captionBg&&le.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(pe),this.stateChanged()},Se.prototype.setStrokeWidth=function(pe){this.strokeWidth=pe,this.frame&&le.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Se.prototype.setStrokeDasharray=function(pe){this.strokeDasharray=pe,this.frame&&le.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Se.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Se.prototype.getState=function(){var pe=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},Oe.prototype.getState.call(this));return pe.typeName=this.typeName,pe},Se.prototype.restoreState=function(pe){var Be=pe;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.textColor=Be.textColor,this.fontFamily=Be.fontFamily,this.captionText=Be.captionText,this.fontSize=Be.fontSize,this.createVisual(),Oe.prototype.restoreState.call(this,pe),this.setSize()},Se.prototype.scale=function(pe,Be){Oe.prototype.scale.call(this,pe,Be),this.setSize()},Se.typeName="CaptionFrameMarker",Se.title="Caption frame marker",Se.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>',Se}(ce),Ge=function(){function Oe(Se,pe){pe===void 0&&(pe=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Se,this.cancelable=pe}return Object.defineProperty(Oe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Oe.prototype.preventDefault=function(){this._defaultPrevented=!0},Oe}(),Me=function(Oe){function Se(pe,Be,$e){var Le=Oe.call(this,pe,!1)||this;return Le.dataUrl=Be,Le.state=$e,Le}return z(Se,Oe),Se}(Ge),Ke=function(Oe){function Se(pe,Be,$e){$e===void 0&&($e=!1);var Le=Oe.call(this,pe,$e)||this;return Le.marker=Be,Le}return z(Se,Oe),Se}(Ge),ct=function(){function Oe(){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 Oe.prototype.addEventListener=function(Se,pe){this[Se].push(pe)},Oe.prototype.removeEventListener=function(Se,pe){var Be=this[Se].indexOf(pe);Be>-1&&this[Se].splice(Be,1)},Oe}(),pt=function(){function Oe(Se){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ke,this._isOpen=!1,this.undoRedoManager=new st,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new ct,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Oe.instanceCounter++,this.styles=new se(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Se,this.targetRoot=document.body,this.width=Se.clientWidth,this.height=Se.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(Oe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Re,ut,We,Qe,lt,dt,nt,Ye,tt,it,Ze,He,Ne]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Re,ut,We,Qe,dt,nt,Ye]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Re,ut,We,Qe,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Se){var pe=this;this._availableMarkerTypes.splice(0),Se.forEach(function(Be){if(typeof Be=="string"){var $e=pe.ALL_MARKER_TYPES.find(function(Le){return Le.typeName===Be});$e!==void 0&&pe._availableMarkerTypes.push($e)}else pe._availableMarkerTypes.push(Be)})},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Oe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Se){this._zoomLevel=Se,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(Oe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Oe.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},Oe.prototype.show=function(){var Se=this;this.styles.styleSheetRoot===void 0&&te.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=te.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(pe){return pe(new Ge(Se))})},Oe.prototype.render=function(){return ie(this,void 0,void 0,function(){var Se;return oe(this,function(pe){switch(pe.label){case 0:return this.setCurrentMarker(),(Se=new ne).naturalSize=this.renderAtNaturalSize,Se.imageType=this.renderImageType,Se.imageQuality=this.renderImageQuality,Se.markersOnly=this.renderMarkersOnly,Se.width=this.renderWidth,Se.height=this.renderHeight,[4,Se.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return pe.sent(),[4,Se.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,pe.sent()]}})})},Oe.prototype.close=function(Se){var pe=this;if(Se===void 0&&(Se=!1),this.isOpen){var Be=!1;Se||this.eventListeners.beforeclose.forEach(function($e){var Le=new Ge(pe,!0);$e(Le),Le.defaultPrevented&&(Be=!0)}),Be||(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($e){return $e(new Ge(pe))}),this.detachEvents(),this._isOpen=!1)}},Oe.prototype.addMarkersToToolbar=function(){for(var Se,pe=[],Be=0;Be<arguments.length;Be++)pe[Be]=arguments[Be];(Se=this._availableMarkerTypes).push.apply(Se,pe)},Oe.prototype.addRenderEventListener=function(Se){this.addEventListener("render",function(pe){Se(pe.dataUrl,pe.state)})},Oe.prototype.removeRenderEventListener=function(Se){},Oe.prototype.addCloseEventListener=function(Se){this.addEventListener("close",function(){Se()})},Oe.prototype.removeCloseEventListener=function(Se){},Oe.prototype.setupResizeObserver=function(){var Se=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Se.resize(Se.target.clientWidth,Se.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Se.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Oe.prototype.onPopupTargetResize=function(){var Se=1*this.target.clientWidth/this.target.clientHeight,pe=this.editorCanvas.clientWidth/Se>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Se:this.editorCanvas.clientWidth,Be=pe<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Se;this.resize(pe,Be)},Oe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Oe.prototype.resize=function(Se,pe){this._isResizing=!0;var Be=Se/this.imageWidth,$e=pe/this.imageHeight;this.imageWidth=Math.round(Se),this.imageHeight=Math.round(pe),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(Be,$e),this._isResizing=!1},Oe.prototype.scaleMarkers=function(Se,pe){var Be,$e=this;this._currentMarker&&this._currentMarker instanceof Qe?this._currentMarker.scale(Se,pe):(Be=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Le){Le!==$e._currentMarker&&Le.scale(Se,pe)}),Be!==void 0&&this.setCurrentMarker(Be)},Oe.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"},Oe.prototype.setTopLeft=function(){var Se=this.editingTarget.getBoundingClientRect(),pe=this.editorCanvas.getBoundingClientRect();this.left=Se.left-pe.left,this.top=Se.top-pe.top},Oe.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)},Oe.prototype.addDefs=function(){for(var Se,pe=[],Be=0;Be<arguments.length;Be++)pe[Be]=arguments[Be];this.defs=le.createDefs(),this.addDefsToImage(),(Se=this.defs).append.apply(Se,pe)},Oe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Oe.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)},Oe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Oe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Oe.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)},Oe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Oe.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)},Oe.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 Se=document.createElement("a");Se.href="https://markerjs.com/",Se.target="_blank",Se.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>',Se.title="Powered by marker.js",Se.style.display="grid",Se.style.alignItems="center",Se.style.justifyItems="center",Se.style.padding="3px",Se.style.width="20px",Se.style.height="20px",this.logoUI.appendChild(Se),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Oe.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")},Oe.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"},Oe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Oe.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 Se=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=Se+"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 me(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 ve(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Oe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Oe.prototype.removeMarker=function(Se){this.markerImage.removeChild(Se.container),this.markers.indexOf(Se)>-1&&this.markers.splice(this.markers.indexOf(Se),1),Se.dispose()},Oe.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())},Oe.prototype.toolbarButtonClicked=function(Se,pe){if(Se==="marker"&&pe!==void 0)this.createNewMarker(pe);else if(Se==="action")switch(pe){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()}},Oe.prototype.deleteSelectedMarker=function(){var Se=this;if(this._currentMarker!==void 0){var pe=!1;if(this.eventListeners.markerbeforedelete.forEach(function($e){var Le=new Ke(Se,Se._currentMarker,!0);$e(Le),Le.defaultPrevented&&(pe=!0)}),!pe){var Be=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($e){return $e(new Ke(Se,Be))})}}},Oe.prototype.clear=function(){var Se=this,pe=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(mt){var gt=new Ke(Se,void 0,!0);mt(gt),gt.defaultPrevented&&(pe=!0)}),!pe)){this.setCurrentMarker();for(var Be=function(mt){var gt=$e.markers[mt];$e.setCurrentMarker($e.markers[mt]),$e._currentMarker.dispose(),$e.markerImage.removeChild($e._currentMarker.container),$e.markers.splice($e.markers.indexOf($e._currentMarker),1),$e.eventListeners.markerdelete.forEach(function(wt){return wt(new Ke(Se,gt))})},$e=this,Le=this.markers.length-1;Le>=0;Le--)Be(Le);this.addUndoStep()}},Object.defineProperty(Oe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Oe.prototype.showNotesEditor=function(){var Se;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=(Se=this._currentMarker.notes)!==null&&Se!==void 0?Se:"",this.overlayContainer.appendChild(this.notesArea))},Oe.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)},Oe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Oe.prototype.addUndoStep=function(){var Se=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var pe=this.getState(),Be=this.undoRedoManager.getLastUndoStep();if(!Be||Be.width===pe.width&&Be.height===pe.height){var $e=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(pe),$e<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Le){return Le(new Ge(Se))})}else this.undoRedoManager.replaceLastUndoStep(pe),this.eventListeners.statechange.forEach(function(Le){return Le(new Ge(Se))})}},Oe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Oe.prototype.undoStep=function(){var Se=this,pe=this.undoRedoManager.undo();pe!==void 0&&(this.restoreState(pe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Be){return Be(new Ge(Se))}))},Oe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Oe.prototype.redoStep=function(){var Se=this,pe=this.undoRedoManager.redo();pe!==void 0&&(this.restoreState(pe),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Be){return Be(new Ge(Se))}))},Oe.prototype.stepZoom=function(){var Se=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Se<this.zoomSteps.length-1?this.zoomSteps[Se+1]:this.zoomSteps[0]},Oe.prototype.panTo=function(Se){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Se.x,top:this.prevPanPoint.y-Se.y}),this.prevPanPoint=Se},Oe.prototype.startRenderAndClose=function(){return ie(this,void 0,void 0,function(){var Se,pe,Be=this;return oe(this,function($e){switch($e.label){case 0:return[4,this.render()];case 1:return Se=$e.sent(),pe=this.getState(),this.eventListeners.render.forEach(function(Le){return Le(new Me(Be,Se,pe))}),this.close(!0),[2]}})})},Oe.prototype.getState=function(Se){Se===!0&&this.setCurrentMarker();var pe={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Be){return pe.markers.push(Be.getState())}),pe},Oe.prototype.restoreState=function(Se){var pe=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Se.markers.forEach(function(Be){var $e=pe._availableMarkerTypes.find(function(mt){return mt.typeName===Be.typeName});if($e!==void 0){var Le=pe.addNewMarker($e);Le.restoreState(Be),pe.markers.push(Le)}}),Se.width&&Se.height&&(Se.width!==this.imageWidth||Se.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Se.width,this.imageHeight/Se.height),this.eventListeners.restorestate.forEach(function(Be){return Be(new Ge(pe))})},Oe.prototype.addNewMarker=function(Se){var pe=le.createGroup();return this.markerImage.appendChild(pe),new Se(pe,this.overlayContainer,this.settings)},Oe.prototype.createNewMarker=function(Se){var pe,Be=this;(pe=typeof Se=="string"?this._availableMarkerTypes.find(function($e){return $e.typeName===Se}):Se)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(pe),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(pe.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function($e){return $e(new Ke(Be,Be._currentMarker))}))},Oe.prototype.markerCreated=function(Se){var pe=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Se),this.setCurrentMarker(Se),Se instanceof ut&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ut):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Be){return Be(new Ke(pe,pe._currentMarker))})},Oe.prototype.colorChanged=function(Se){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Se,this.settings.defaultStrokeColor=Se)},Oe.prototype.fillColorChanged=function(Se){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Se)},Oe.prototype.markerStateChanged=function(Se){var pe=this;this.eventListeners.markerchange.forEach(function(Be){return Be(new Ke(pe,Se))})},Oe.prototype.setCurrentMarker=function(Se){var pe=this;this._currentMarker!==Se&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Be){return Be(new Ke(pe,pe._currentMarker))})),this._currentMarker=Se,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(Be){return Be(new Ke(pe,pe._currentMarker))}))},Oe.prototype.onPointerDown=function(Se){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Se.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var pe=this.markers.find(function(Be){return Be.ownsTarget(Se.target)});pe!==void 0?(this.setCurrentMarker(pe),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Se.clientX,Se.clientY),Se.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Se.clientX,y:Se.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Se.clientX,Se.clientY))},Oe.prototype.onDblClick=function(Se){if(this._isFocused||this.focus(),this.mode==="select"){var pe=this.markers.find(function(Be){return Be.ownsTarget(Se.target)});pe!==void 0&&pe!==this._currentMarker&&this.setCurrentMarker(pe),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Se.clientX,Se.clientY),Se.target):this.setCurrentMarker()}},Oe.prototype.onPointerMove=function(Se){this.touchPoints!==1&&Se.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Se.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Se.clientX,Se.clientY)):this.zoomLevel>1&&this.panTo({x:Se.clientX,y:Se.clientY}))},Oe.prototype.onPointerUp=function(Se){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Se.clientX,Se.clientY)),this.isDragging=!1,this.addUndoStep()},Oe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Oe.prototype.onKeyUp=function(Se){this._currentMarker===void 0||this.notesArea!==void 0||Se.key!=="Delete"&&Se.key!=="Backspace"||this.deleteSelectedMarker()},Oe.prototype.clientToLocalCoordinates=function(Se,pe){var Be=this.markerImage.getBoundingClientRect();return{x:(Se-Be.left)/this.zoomLevel,y:(pe-Be.top)/this.zoomLevel}},Oe.prototype.onWindowResize=function(){this.positionUI()},Oe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Se=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Se+"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()},Oe.prototype.addLicenseKey=function(Se){E.addKey(Se)},Oe.prototype.addEventListener=function(Se,pe){this.eventListeners.addEventListener(Se,pe)},Oe.prototype.removeEventListener=function(Se,pe){this.eventListeners.removeEventListener(Se,pe)},Oe.prototype.renderState=function(Se){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Se),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Oe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Oe.prototype.focus=function(){var Se=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(pe){return pe(new Ge(Se))}))},Oe.prototype.blur=function(){var Se=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(pe){return pe(new Ge(Se))}))},Oe.instanceCounter=0,Oe}(),rt=Je(97013),Ae=Je(31735),Pe=(Oe,Se,pe)=>new Promise((Be,$e)=>{var Le=wt=>{try{gt(pe.next(wt))}catch(bt){$e(bt)}},mt=wt=>{try{gt(pe.throw(wt))}catch(bt){$e(bt)}},gt=wt=>wt.done?Be(wt.value):Promise.resolve(wt.value).then(Le,mt);gt((pe=pe.apply(Oe,Se)).next())}),ot=({data:Oe,className:Se,fullWidth:pe,style:Be={},onClose:$e,onOk:Le,showFullTools:mt,noAssociationId:gt})=>{const wt=(0,ze.useRef)(null),bt=(0,ze.useRef)(null),yt=(0,ze.useRef)(null),Et=(0,ze.useRef)(null),[kt,jt]=(0,ze.useState)(!1),[It,vr]=(0,ze.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ze.useEffect)(()=>(yt.current||(yt.current=document.createElement("style"),document.head.appendChild(yt.current)),Oe!=null&&Oe.visible?(document.body.setAttribute("data-custom","y-hidden"),yt.current.innerHTML=" html { overflow-y: hidden; }",Oe!=null&&Oe.src&&Kt()):(document.body.removeAttribute("data-custom"),yt.current&&(document.head.removeChild(yt.current),yt.current=null)),()=>{document.body.removeAttribute("data-custom"),yt.current&&(document.head.removeChild(yt.current),yt.current=null)}),[Oe==null?void 0:Oe.visible]);const Kt=()=>Pe(void 0,null,function*(){jt(!0),vr("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Vr=yield(0,Ae.ZJ)(Oe==null?void 0:Oe.src);wt.current.src="",wt.current.src=Vr,wt.current.onload=function(){zr()},jt(!1),vr("")}),Pr=Vr=>Pe(void 0,null,function*(){jt(!0),vr("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Xr=yield(0,rt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Oe.title,file:Vr.dataUrl}});Xr!=null&&Xr.id&&!gt?(yield(0,rt.ZP)(`/api/attachments/${Oe.id}/add_subitem.json`,{method:"post",body:{subitem_id:Xr==null?void 0:Xr.id,settings:JSON.stringify(Vr.state)}})).status===0&&Le():Xr!=null&&Xr.id&&Le(Xr),jt(!1),vr("")}),qt=()=>{const Vr=document.querySelector('a[href="https://markerjs.com/"]');Vr&&Vr.parentNode&&(Vr.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(pn=>{const nn=document.querySelector(pn.name);nn&&nn.setAttribute("title",pn.title)})},zr=()=>{bt.current=new pt(wt.current),bt.current.targetRoot=Et.current,bt.current.addEventListener("render",Pr),bt.current.addEventListener("beforeclose",$e),mt&&(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(),Oe!=null&&Oe.snapshotData&&bt.current.restoreState(Oe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),qt()},300)};return ze.createElement(ze.Fragment,null,(Oe==null?void 0:Oe.visible)&&ze.createElement(be.Z,{spinning:kt,tip:It,style:{position:"absolute",width:"100vw"}},ze.createElement("div",{ref:Et,className:Te()(Ct.imageDimensions,Se,pe?Ct.fullWidth:""),style:Be},ze.createElement("img",{className:Ct.img,ref:wt}))))}},50047:function(ur,Zt,Je){"use strict";var ze=Je(59301),Ct=Je(77019),y=Je(5269),Te=Je(20554),be=Je(7939),x=Je(59944),z=Je(40862),ie=Je(48136),oe=Je(59301);const ee=(0,ze.forwardRef)(({callback:le,showSaveButton:E,value:ne=""},te)=>{const se=(0,ze.useRef)(),ue=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],fe=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],me=ge=>{se.current.setValue(se.current.getValue()+" "+ge.value+" ")},ve=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:oe.createElement(Ct.Z,{className:z.Z.lists,gutter:[10,10]},ue.map((ge,xe)=>oe.createElement(y.Z,{flex:"110px",className:z.Z.item},oe.createElement("div",null,oe.createElement(x.Z,{value:`$$${ge.value}$$`}),ge.name),oe.createElement("div",{className:z.Z.children},ge.children.map((Ce,je)=>oe.createElement("div",{key:je},oe.createElement("h1",null,Ce.name),oe.createElement(Ct.Z,{gutter:[10,10]},Ce.data.map((Ee,ce)=>oe.createElement(y.Z,{key:ce,onClick:()=>me(Ee),className:z.Z.diamond},oe.createElement(x.Z,{value:"`$$"+Ee.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:oe.createElement(Ct.Z,{className:z.Z.lists,gutter:[10,10]},fe.map((ge,xe)=>oe.createElement(y.Z,{flex:"110px",className:z.Z.item},oe.createElement("div",null,oe.createElement(x.Z,{value:"`$$"+ge.value+"$$`"}),ge.name),oe.createElement("div",{className:z.Z.children},ge.children.map((Ce,je)=>oe.createElement("div",{key:je},Ce.name&&oe.createElement("h1",null,Ce.name),oe.createElement(Ct.Z,{gutter:[10,10]},Ce.data.map((Ee,ce)=>oe.createElement(y.Z,{key:ce,onClick:()=>me(Ee),className:z.Z.diamond},oe.createElement(x.Z,{value:"`$$"+Ee.value+"$$`"}))))))))))}],he=()=>{var ge=document.createElement("div");ge.innerHTML=se.current.getValue();var xe=ge.innerText;return le&&le(xe),xe};return(0,ze.useImperativeHandle)(te,()=>({getData:he})),oe.createElement("div",{className:z.Z.mathWrap},oe.createElement(Te.default,{defaultActiveKey:"1",items:ve}),oe.createElement("math-field",{locale:"zh_cn",className:z.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:se,style:{width:800,marginTop:30,fontSize:18}},ne||""),E&&oe.createElement("div",{className:z.Z.button},oe.createElement(be.ZP,{size:"large",onClick:he,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Zt.Z=ee},59243:function(ur,Zt,Je){"use strict";var ze=Je(59301),Ct=Je(93314),y=Je(7939),Te=Object.defineProperty,be=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ee=(te,se,ue)=>se in te?Te(te,se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):te[se]=ue,le=(te,se)=>{for(var ue in se||(se={}))ie.call(se,ue)&&ee(te,ue,se[ue]);if(z)for(var ue of z(se))oe.call(se,ue)&&ee(te,ue,se[ue]);return te},E=(te,se)=>be(te,x(se));const ne=({img:te,buttonProps:se={},styles:ue={},customText:fe,ButtonText:me,ButtonClick:ve,Buttonclass:he,ButtonTwo:ge,imgStyles:xe,loading:Ce=!1,className:je=""})=>ze.createElement("section",{className:`tc animated fadeIn ${je}`,style:le({color:"#999",margin:"100px auto",visibility:Ce?"hidden":"visible"},ue)},ze.createElement("img",{src:te||Ct,style:E(le({},xe),{pointerEvents:"none",userSelect:"none"})}),ze.createElement("p",{className:"mt20 font14"},fe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),me&&ze.createElement(y.ZP,le({className:he,onClick:ve},se),me),ge&&ge);Zt.Z=ne},47199:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return he}});var ze=Je(59301),Ct={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},y=Je(7939),Te=Je(70557),be=Je(58478),x=Je(25399),z=Je(31735),ie=Je(22167),oe=Je(59243),ee=Je(26869),le=Je(38609),E=Je(59301),ne=Object.defineProperty,te=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(ge,xe,Ce)=>xe in ge?ne(ge,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):ge[xe]=Ce,me=(ge,xe)=>{for(var Ce in xe||(xe={}))se.call(xe,Ce)&&fe(ge,Ce,xe[Ce]);if(te)for(var Ce of te(xe))ue.call(xe,Ce)&&fe(ge,Ce,xe[Ce]);return ge},ve=(ge,xe,Ce)=>new Promise((je,Ee)=>{var ce=De=>{try{we(Ce.next(De))}catch(Re){Ee(Re)}},ye=De=>{try{we(Ce.throw(De))}catch(Re){Ee(Re)}},we=De=>De.done?je(De.value):Promise.resolve(De.value).then(ce,ye);we((Ce=Ce.apply(ge,xe)).next())}),he=({editOffice:ge="view",data:xe,issaver:Ce,onSaver:je,theme:Ee,type:ce,filename:ye,monacoEditor:we,className:De,style:Re,close:ke,onClose:_e,hasMask:Ze,disabledDownload:Ve,onImgDimensions:Qe,showNodata:ut,recordInfo:Ie})=>{const[We,it]=(0,ze.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[at,nt]=(0,ze.useState)(""),[Xe,et]=(0,ze.useState)(),Ye=window.ENV==="build"?"/react/build":"",dt=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,lt=10*(1024*1024),st=(0,ze.useRef)();xe!=null&&xe.startsWith("/api")&&ce!=="txt"&&(xe=ee.Z.API_SERVER+xe);const He=ct=>ct.substring(ct.lastIndexOf("/")+1).split(".").pop();ye&&we&&(we.filename=ye),(0,ze.useEffect)(()=>{var ct,pt;const rt=(pt=(ct=document.cookie)==null?void 0:ct.replace(/\s/g,""))==null?void 0:pt.split(";");rt==null||rt.map(Ae=>{let Pe=Ae.split("=");Pe[0]==="_educoder_session"&&nt(Pe[1])})},[]),(0,ze.useEffect)(()=>{ce==="office"&&(xe.indexOf("bigfilescdn.")>-1||xe.indexOf("bigfiles1")>-1?et({url:xe,fileType:He(xe),model:xe.indexOf("model=edit")?"edit":"view"}):Ge())},[ce,xe]);function Ne(ct){return ve(this,null,function*(){ct.data.type==="pdfdata"&&(je(ct.data.data),window.removeEventListener("message",Ne,!1)),console.log("mess---:",ct.data)})}const Ge=()=>ve(void 0,null,function*(){console.log("data:",xe);let ct=xe;xe.startsWith("http")||(ct=location.origin+ct);let pt=new URL(ct).pathname.split("/").pop();const rt=yield(0,ie.gJ)({attachment_id:pt});rt.url=dt+rt.url,et(rt)}),Me=()=>{if(xe.startsWith("http")||xe.startsWith("blob:")){Ke();return}(0,z.Sv)(ye||"educoder",xe,ye)},Ke=()=>{Ie&&(0,le.fc)({id:Ie==null?void 0:Ie.id,watch_type:1,course_id:Ie==null?void 0:Ie.course_id}),(0,z.Nd)(ye||"educoder",decodeURIComponent(xe))};return E.createElement("div",{style:me({},Re||{}),className:`${Ze&&Ct.bgBlack} ${ce?Ct.wrp:"hide"}`},ke&&E.createElement("div",{className:Ct.close,ref:st},!!Qe&&E.createElement(x.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>st.current},E.createElement("span",{onClick:()=>{_e(),Qe()}},E.createElement("i",{className:"icon-yulanpizhu"}))),!Ve&&E.createElement(x.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>st.current},E.createElement("span",{onClick:Ke},E.createElement("i",{className:"icon-quxiaozhiding"}))),Ce&&E.createElement(x.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>st.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:()=>st.current},E.createElement("span",{className:"",onClick:()=>{_e()}},E.createElement("i",{className:"icon-guanbi1"})))),E.createElement("div",{className:`${Ct[De]} ${De} ${Ct.monaco} ${ce==="txt"?"show":"hide"}`},ce==="txt"&&E.createElement(E.Fragment,null,E.createElement(be.ZP,me({},we)))),ce==="audio"&&E.createElement("audio",{src:`${(xe==null?void 0:xe.indexOf("http://"))>-1||(xe==null?void 0:xe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${xe}`,autoPlay:!0}),ce==="video"&&E.createElement(E.Fragment,null,(xe==null?void 0:xe.indexOf("http"))>-1?E.createElement("video",{controls:!0,src:`${xe}`,autoPlay:!0}):E.createElement("video",{controls:!0,src:`data:video/mp4;base64,${xe}`,autoPlay:!0})),ce==="office"&&Xe&&E.createElement("iframe",{src:`${Ye}/office.html?key=${Xe.key}&url=${btoa(Xe.url)}&callbackUrl=${dt+(Xe.callbackUrl||"")}&fileType=${Xe.fileType}&title=${Xe.title||""}&model=${ge}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!Ve}`}),ce==="html"&&E.createElement("iframe",{src:xe+"&disposition=inline"}),ce==="pdf"&&Ce&&E.createElement("iframe",{id:"pdfiframe",src:`${Ye}/js/pdfview/index.html?filename=${ye||"educoder.pdf"}&url=${encodeURIComponent(xe)}&disabledDownload=${!!Ve}&model=${ge}`}),ce==="pdf"&&!Ce&&E.createElement("embed",{className:Ct.embed,src:xe+"#toolbar=0&statusbar=0&navpanes=0&scrollbars=0"}),ce==="image"&&E.createElement("img",{src:`${(xe==null?void 0:xe.indexOf("http://"))>-1||(xe==null?void 0:xe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${xe}`}),(ce==="other"||ce==="download")&&E.createElement(E.Fragment,null,ut?E.createElement(oe.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:Ve},"\u4E0B\u8F7D")}):E.createElement(y.ZP,{type:"primary",size:"middle",onClick:Me,disabled:Ve},E.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ce==="flowChart"&&E.createElement("div",{className:"embed"},E.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${xe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},59944:function(ur,Zt,Je){"use strict";Je.d(Zt,{z:function(){return we},Z:function(){return De}});var ze=Je(59301),Ct=Je(54196),y=Je(58489),Te=Je(64018),be=Je(80360),x=Je(26869),z=Je(31735),ie=Je(15342),oe=Je(44104),ee=Je(7939),le=Je(1012),E=Je(47199),ne=Je(59301),se=({html:Re})=>{const ke=(0,ze.useRef)(null),_e=(0,ze.useRef)(null),Ze=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,ze.useEffect)(()=>{const Ve=ke.current.attachShadow({mode:"open"});_e.current=document.createElement("div"),_e.current.className="markdown-body",_e.current.innerHTML=Re,Ve.appendChild(_e.current);const Qe=document.createElement("style");return Qe.textContent=Ze,Ve.appendChild(Qe),()=>{Ve.innerHTML=""}},[]),(0,ze.useEffect)(()=>{_e.current&&(_e.current.innerHTML=Re)},[Re]),ne.createElement("div",{ref:ke})};function ue(Re){const ke=["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"],_e=new RegExp(`\\b(${ke.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Re.replace(_e,"").trim()}var fe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},me=Object.defineProperty,ve=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,xe=(Re,ke,_e)=>ke in Re?me(Re,ke,{enumerable:!0,configurable:!0,writable:!0,value:_e}):Re[ke]=_e,Ce=(Re,ke)=>{for(var _e in ke||(ke={}))he.call(ke,_e)&&xe(Re,_e,ke[_e]);if(ve)for(var _e of ve(ke))ge.call(ke,_e)&&xe(Re,_e,ke[_e]);return Re};const je="@\u2581\u2581@",Ee="@\u2581@",ce=/<pre[^>]*>/g;function ye(Re){let ke=document.createElement("div");return ke.innerHTML=Re,ke.childNodes.length===0?"":ke.childNodes[0].nodeValue}const we=(Re,ke)=>{Re=Re||"";const _e=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ve=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ke?Re.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(_e,(ut,Ie,We,it,at,nt,Xe)=>{const et=Ie||it||nt,Ye=We||at||Xe||"?";return x.Z.API_SERVER+"/api/attachments/"+et+Ye+"&t="+(0,z.Jn)(et,Date.now())+(ut.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Re=Re.replace(Qe,(ut,Ie,We,it,at,nt,Xe)=>{const et=Ie||it||nt,Ye=We||at||Xe||"?";return x.Z.API_SERVER+"/attachments/download/"+et+Ye+"&t="+(0,z.Jn)(et,Date.now())+(ut.indexOf(")")>-1?")":"&")}).replace(_e,(ut,Ie,We,it,at,nt,Xe)=>{const et=Ie||it||nt,Ye=We||at||Xe||"?";return x.Z.API_SERVER+"/api/attachments/"+et+Ye+"&t="+(0,z.Jn)(et,Date.now())+(ut.indexOf(")")>-1?")":"&")}).replace(Ze,(ut,Ie,We,it,at)=>{const nt=Ie||it,Xe=We||at||"";return'"'+x.Z.API_SERVER+"/api/attachments/"+nt+Xe+nt+Xe+"&t="+(0,z.Jn)(nt,Date.now())}).replace(Ve,(ut,Ie,We,it,at)=>{const nt=Ie||it,Xe=We||at||"";return"("+x.Z.API_SERVER+"/files/uploads/"+nt+Xe+nt+Xe+"&t="+(0,z.Jn)(nt,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,`
`),Re)};var De=({value:Re="",edit:ke=!1,className:_e,showTextOnly:Ze,showLines:Ve,style:Qe={},stylesPrev:ut={},highlightKeywords:Ie,showProgramFill:We,isProgramFill:it,disabledFill:at=!1,programFillValue:nt,openEditor:Xe=()=>{},onFillChange:et=tt=>{},onFillBlur:Ye=()=>{},onFillFocus:dt=()=>{}})=>{let tt=ue(String(Re||""));const lt=(0,ze.useRef)(),st=(0,ze.useRef)(),[He,Ne]=(0,ze.useState)(""),[Ge,Me]=(0,ze.useState)("office"),[Ke,ct]=(0,ze.useState)([]),pt=(0,ze.useRef)("a"+(0,le.Z)()),rt={},Ae=yt=>/<style[\s\S]*?>/i.test(yt||""),Pe=(yt,Et,kt)=>{const jt=document.createElement(yt===Ee?"input":"textarea");jt.style.width="100%",jt.style.height=yt===Ee?"40px":"151px",jt.rows=5,jt.spellcheck=!1,jt.name="edu-program-fill",jt.placeholder="\u8BF7\u8F93\u5165",jt.dataset.id=Et;const It=Object.keys(rt).length;return rt[It]=jt,`<span class="edu-program-fill-wrap ${yt===Ee?"":"show"}" style="width:${yt===Ee?"600px":"100%"}" title=${kt||""}><span>${jt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Ue(yt){return yt=yt.replace(/!\[.*?\]\(.*?\)/g,""),yt=yt.replace(/\[.*?\]\(.*?\)/g,""),yt=yt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),yt=yt.replace(/<embed.*?>/g,""),yt=yt.replace(/<img.*?>/g,""),yt=yt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),yt=yt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),yt=yt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),yt=yt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),yt}const ot=yt=>!Ze&&Ae(tt)?yt:yt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Et,kt){let jt=kt.replace(/(\n|\r)/g,"").split("}"),It=[];return jt.map(vr=>{vr!=""&&It.push(`.${pt.current} ${vr}`)}),`<style>${It.join("}")}</style>`}),Oe=(0,ze.useMemo)(()=>{try{const jt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,It=/\"\/api\/attachments\/|\"\/attachments\/download\//g,vr=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Kt=/\(\/attachments\/download\//g;tt=tt.replace(Kt,"("+x.Z.API_SERVER+"/attachments/download/").replace(jt,"("+x.Z.API_SERVER+"/api/attachments/").replace(It,'"'+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,`
`),lt.current.style.display="none"}catch(jt){}if(We){let jt=-1;return tt=tt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(It,vr,Kt){var Pr;return++jt,Pe(It,jt,(Pr=nt==null?void 0:nt[jt])==null?void 0:Pr.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${ot(tt||"")}</pre>`}let yt=ot(tt);yt=(0,y.ZP)(yt);const Et=(0,y.ez)();tt.match(/\[TOC\]/)&&(yt=yt.replace("<p>[TOC]</p>",(0,y.Qv)()),(0,y.Iy)()),yt=yt.replace(/(__special_katext_id_\d+__)/g,(jt,It)=>{const{type:vr,expression:Kt}=Et[It];return(0,ie.renderToString)(ye(Kt)||"",{displayMode:vr==="block",throwOnError:!1,output:"html"})}),yt=yt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const kt=document.createElement("div");if(kt.innerHTML=yt,Ze)return kt.innerText;if(Ie){const jt=Ie.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return $e(kt,jt),kt.innerHTML}return setTimeout(()=>gt(),500),kt.innerHTML},[tt,Ie]);(0,ze.useEffect)(()=>{Le.current&&Le.current.querySelectorAll(["input","textarea"]).forEach(Et=>{Et.oninput=Se,Et.onblur=pe,Et.onfocus=Be})},[Ke]),(0,ze.useEffect)(()=>{var yt,Et,kt,jt,It;if(nt!=null&&nt.length)try{const vr=Le.current.querySelectorAll(".edu-program-fill-score"),Kt=Le.current.querySelectorAll('[name="edu-program-fill"]');for(const[Pr,qt]of Kt.entries())qt.value=((yt=nt==null?void 0:nt[Pr])==null?void 0:yt.value)||"",((Et=nt==null?void 0:nt[Pr])==null?void 0:Et.type)==="warning"?qt.className="program-fill-warning":((kt=nt==null?void 0:nt[Pr])==null?void 0:kt.type)==="success"?qt.className="program-fill-success":qt.className="";for(const[Pr,qt]of vr.entries())qt.innerHTML=(jt=nt==null?void 0:nt[Pr])!=null&&jt.score?`${(It=nt==null?void 0:nt[Pr])==null?void 0:It.score}\u5206`:"";ct(nt)}catch(vr){console.log(vr,"error")}},[nt]);const Se=yt=>{Ke[yt.target.dataset.id]=Ke[yt.target.dataset.id]||{},Ke[yt.target.dataset.id].value=yt.target.value,ct([...Ke]),et(Ke,yt.target.dataset.id)},pe=yt=>{Ke[yt.target.dataset.id]=Ke[yt.target.dataset.id]||{},Ke[yt.target.dataset.id].value=yt.target.value,ct([...Ke]),Ye(Ke,yt.target.dataset.id)},Be=yt=>{Ke[yt.target.dataset.id]=Ke[yt.target.dataset.id]||{},Ke[yt.target.dataset.id].value=yt.target.value,ct([...Ke]),dt(Ke,yt.target.dataset.id)};function $e(yt,Et){return yt.childNodes.forEach(kt=>{var jt;if(kt.childNodes.length>0)$e(kt,Et);else if(kt.nodeName!=="IMG")if(kt.innerHTML)kt.innerHTML=(jt=kt.innerHTML)==null?void 0:jt.replace(new RegExp(Et,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const It=document.createElement("span");It.innerHTML=kt.textContent.replace(new RegExp(Et,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),kt.replaceWith(It)}})}const Le=(0,ze.useRef)();y.jb.WebkitLineClamp=Ve,Ve&&(Qe=Ce(Ce({},Qe),y.jb));function mt(yt){let Et=yt.target;if(Et.tagName.toUpperCase()==="A"){let kt=Et.getAttribute("href");if(kt.indexOf("office")>-1)yt.preventDefault(),Ne(kt),Me("office");else if(kt.indexOf("application/pdf")>-1)yt.preventDefault(),Ne(kt),Me("pdf");else if(kt.indexOf("text/html")>-1)yt.preventDefault(),Ne(kt),Me("html");else if(kt.startsWith("#")){yt.preventDefault();let jt=document.getElementById(kt.replace("#",""));jt&&jt.scrollIntoView(!0)}}}const gt=()=>{var yt;const Et=(yt=Le.current)==null?void 0:yt.querySelectorAll("video");Et==null||Et.forEach(kt=>{if(kt.oncontextmenu=()=>!1,kt.src.indexOf(".m3u8")>-1&&!kt.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var jt=new be.ZP;jt.loadSource(kt.src),jt.attachMedia(kt)}}})};(0,ze.useEffect)(()=>{if(Le.current&&Oe&&Oe.match(ce)&&window.PR.prettyPrint(),Le.current)return Le.current.addEventListener("click",mt),()=>{var yt;(yt=Le.current)==null||yt.removeEventListener("click",mt),(0,y.AL)(),(0,y.Iy)()}},[Oe,Le.current,mt]);const wt=yt=>{yt.target.nodeName==="IMG"&&yt.target.className.indexOf("draw-flowchart")>-1?(lt.current.style.zIndex=1,lt.current.style.display="flex",lt.current.style.width=yt.target.clientWidth+"px",lt.current.style.height=yt.target.clientHeight+"px",lt.current.style.top=yt.target.offsetTop+"px",lt.current.style.left=yt.target.offsetLeft+"px",yt.target.id&&(st.current=yt.target.id)):lt.current.style.display="none"},bt=()=>{lt.current.style.display="none"};return(0,ze.useEffect)(()=>{var yt;const Et=kt=>{kt.preventDefault(),kt.clipboardData.setData("text",window.getSelection().toString())};return(yt=Le.current)==null||yt.addEventListener("copy",Et),()=>{var kt;(kt=Le.current)==null||kt.removeEventListener("copy",Et)}},[Le.current]),ze.createElement("div",{style:{position:"relative"},onMouseLeave:bt},Ze&&ze.createElement("div",{ref:Le,className:`${fe.mdBody} `},Oe),!Ze&&!Ae(Oe)&&ze.createElement("div",{ref:Le,style:Ce({},Qe),onMouseOver:wt,className:`${_e||""} ${at?"disabled-fill":""} markdown-body ${fe.mdBody} ${pt.current}`,dangerouslySetInnerHTML:{__html:Oe}}),!Ze&&Ae(Oe)&&ze.createElement(se,{html:Oe}),ze.createElement("div",{ref:lt,className:`${fe.button} ${ke?"":fe.previewFlowChart}`},ze.createElement(oe.Z,null,ze.createElement(ee.ZP,{onClick:()=>{ke?Xe(st.current):(Ne(st.current),Me("flowChart"))}},ke?"\u7F16\u8F91":"\u9884\u89C8"))),ze.createElement(E.Z,{close:!0,data:He,type:He!=null&&He.length?Ge:"",style:Ce({},ut),onClose:()=>Ne("")}))}},13683:function(ur,Zt,Je){"use strict";Je.d(Zt,{cT:function(){return ce},pe:function(){return Ce}});var ze=Je(59301),Ct=Je(14566),y=Je(6767),Te=Je(97013),be=Je(28209),x=Je.n(be),z=Je(1012),ie=Je(58106),oe=Je(47257),ee=Je.n(oe),le=Object.defineProperty,E=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(we,De,Re)=>De in we?le(we,De,{enumerable:!0,configurable:!0,writable:!0,value:Re}):we[De]=Re,me=(we,De)=>{for(var Re in De||(De={}))se.call(De,Re)&&fe(we,Re,De[Re]);if(te)for(var Re of te(De))ue.call(De,Re)&&fe(we,Re,De[Re]);return we},ve=(we,De)=>E(we,ne(De)),he=(we,De)=>{var Re={};for(var ke in we)se.call(we,ke)&&De.indexOf(ke)<0&&(Re[ke]=we[ke]);if(we!=null&&te)for(var ke of te(we))De.indexOf(ke)<0&&ue.call(we,ke)&&(Re[ke]=we[ke]);return Re},ge=(we,De,Re)=>new Promise((ke,_e)=>{var Ze=ut=>{try{Qe(Re.next(ut))}catch(Ie){_e(Ie)}},Ve=ut=>{try{Qe(Re.throw(ut))}catch(Ie){_e(Ie)}},Qe=ut=>ut.done?ke(ut.value):Promise.resolve(ut.value).then(Ze,Ve);Qe((Re=Re.apply(we,De)).next())});const{Dragger:xe}=Ct.default,Ce=we=>{const De="bf3c199c2470cb477d907b1e0917c17b",Re="5183666c72eec9e4";var ke=x().enc.Utf8.parse(De);let _e=x().enc.Utf8.parse(Re);var Ze=x().AES.decrypt(we,ke,{iv:_e,mode:x().mode.CBC});return Ze.toString(x().enc.Utf8)};let je;const Ee=we=>ge(void 0,[we],function*({identifier:De,oldFilename:Re,newFilename:ke}){var _e,Ze,Ve,Qe,ut,Ie;const We=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});We.data=JSON.parse(Ce(We.data));const it=new OSS({endpoint:(_e=We==null?void 0:We.data)==null?void 0:_e.end_point,region:(Ze=We==null?void 0:We.data)==null?void 0:Ze.region,accessKeyId:(Ve=We==null?void 0:We.data)==null?void 0:Ve.access_key_id,accessKeySecret:(Qe=We==null?void 0:We.data)==null?void 0:Qe.access_key_secret,bucket:(ut=We==null?void 0:We.data)==null?void 0:ut.bucket,stsToken:(Ie=We==null?void 0:We.data)==null?void 0:Ie.security_token});return new Promise((at,nt)=>{console.log(11111,`${De}/${Re}`,`${De}/${ke}`,We.data),it.copy(`/${De}/${Re}`,`/${De}/${ke}`).then(Xe=>{console.log("\u62F7\u8D1D\u6210\u529F",Xe)}).catch(Xe=>{console.log(Xe)})})}),ce=(we,De,Re)=>ge(void 0,null,function*(){var ke,_e,Ze,Ve,Qe,ut;De.file_name=we.name;const Ie=yield(0,Te.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",Ce(Ie.data)),Ie.data=JSON.parse(Ce(Ie.data));const We=we.name.split(".");We.pop();const it=De.realFileName?We.join(""):(0,z.Z)(),at=new(ee())({endpoint:(ke=Ie==null?void 0:Ie.data)==null?void 0:ke.end_point,region:(_e=Ie==null?void 0:Ie.data)==null?void 0:_e.region,accessKeyId:(Ze=Ie==null?void 0:Ie.data)==null?void 0:Ze.access_key_id,accessKeySecret:(Ve=Ie==null?void 0:Ie.data)==null?void 0:Ve.access_key_secret,bucket:(Qe=Ie==null?void 0:Ie.data)==null?void 0:Qe.bucket,stsToken:(ut=Ie==null?void 0:Ie.data)==null?void 0:ut.security_token});return new Promise((nt,Xe)=>{var et;at.multipartUpload(`${it}`,new Blob([we],{type:we.type}),ve(me({timeout:200*1e3,partSize:102400},Re),{callback:{url:(et=Ie==null?void 0:Ie.data)==null?void 0:et.callback_url,host:Ie==null?void 0:Ie.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Te.rz)(De)}})).then(function(Ye){var dt;we.response=(dt=Ye.data)==null?void 0:dt.data,nt(Ye==null?void 0:Ye.data)}).catch(function(Ye){Xe(Ye),console.log("err:",Ye)})})}),ye=we=>{var De=we,{user:Re,cancelUpload:ke}=De,_e=he(De,["user","cancelUpload"]);const[Ze,Ve]=(0,ze.useState)([]);let[Qe,ut]=(0,ze.useState)();const Ie={onRemove:it=>{Ve([...Ze.filter(at=>at.name!==it.name)]),_e.onChange(Ze.filter(at=>at.name!==it.name))},disabled:_e.disabled,multiple:!0,fileList:Ze==null?void 0:Ze.map(it=>it.file),customRequest:()=>{},beforeUpload:it=>ge(void 0,null,function*(){let at=_e.maxSize||1073741824;if(Ze.filter(nt=>nt.name===it.name).length){y.ZP.info(`${it.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(it==null?void 0:it.size)>at?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${at/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ze.push({name:it.name,file:it}),Ve([...Ze]),_e.onChange(Ze),!1)})},We=(it,at)=>ge(void 0,null,function*(){var nt,Xe,et,Ye,dt,tt;at.file_name=it.name;const lt=it.name,st=yield(0,Te.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(st.data=JSON.parse(Ce(st.data)),(st==null?void 0:st.status)!==0){Ze[Ze.findIndex(Ge=>Ge.name===lt)].status="error",Ze[Ze.findIndex(Ge=>Ge.name===lt)].file.status="error",_e.onChange(Ze),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Qe=new(ee())({endpoint:(nt=st==null?void 0:st.data)==null?void 0:nt.end_point,region:(Xe=st==null?void 0:st.data)==null?void 0:Xe.region,accessKeyId:(et=st==null?void 0:st.data)==null?void 0:et.access_key_id,accessKeySecret:(Ye=st==null?void 0:st.data)==null?void 0:Ye.access_key_secret,bucket:(dt=st==null?void 0:st.data)==null?void 0:dt.bucket,stsToken:(tt=st==null?void 0:st.data)==null?void 0:tt.security_token}),console.log(it,"file"),ut(Qe);const He=it.name.split(".");He.pop();const Ne=lt.indexOf(".")>-1?at.realFileName?He.join("."):(0,z.Z)():lt;return new Promise((Ge,Me)=>{var Ke;try{Qe.multipartUpload(`${_e.identifier}/${Ne}${lt.indexOf(".")>-1?"."+lt.split(".").pop():""}`,new Blob([it.file],{type:it.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(ct,pt,rt)=>{try{console.log("\u8FDB\u5EA6",ct,pt,rt);const Ae=Ze.findIndex(Pe=>Pe.name===lt);Ze[Ae].file.percent=ct*100,Ze[Ae].tempCheckpoint=pt,Ve([...Ze])}catch(Ae){}},checkpoint:Ze[Ze.findIndex(ct=>ct.name===lt)].tempCheckpoint,callback:{customValue:{id:lt+""},url:(Ke=st==null?void 0:st.data)==null?void 0:Ke.callback_url,host:st==null?void 0:st.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Te.rz)(at)}}).then(function(ct){var pt,rt,Ae;const Pe=Ze.findIndex(ot=>ot.name===lt);let Ue="done";if(((pt=ct.data)==null?void 0:pt.status)===0){it.response=(rt=ct.data)==null?void 0:rt.data;const ot=Ze.findIndex(Oe=>Oe.name===lt);Ze[ot].status="done",Ze[ot].file.status="done"}else y.ZP.warning((Ae=ct.data)==null?void 0:Ae.message),Ue="error";Ze[Pe].status=Ue,Ze[Pe].file.status=Ue,_e.onChange(Ze),Ge(ct==null?void 0:ct.data)}).catch(function(ct){Ze[Ze.findIndex(pt=>pt.name===lt)].status="error",Ze[Ze.findIndex(pt=>pt.name===lt)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ve([...Ze]),_e.onChange(Ze),Me(ct),console.log("err:",ct)})}catch(ct){}})});return(0,ze.useEffect)(()=>{Ze.every(it=>it==="done"||it==="error")&&_e.onComplete(Ze)},[Ze]),(0,ze.useEffect)(()=>{ke&&(Qe==null||Qe.cancel())},[ke]),(0,ze.useEffect)(()=>{_e.uploading&&Ze.map(it=>ge(void 0,null,function*(){var at;if((!it.status||it.status==="error")&&!ke){it.status="uploading",it.file.status="uploading";const nt=yield We(it,{login:(at=Re==null?void 0:Re.userInfo)==null?void 0:at.login,container_type:_e.container_type,container_id:_e.container_id,description:_e.description,realFileName:_e.realFileName})}}))},[_e.uploading]),ze.createElement(xe,ve(me({},Ie),{height:_e.height,className:_e.className}),ze.createElement("p",{className:"ant-upload-hint"},_e.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Zt.ZP=(0,ie.connect)(({loading:we,globalSetting:De,user:Re})=>({globalSetting:De,loading:we.models.competitions,user:Re}))(ye)},52504:function(ur,Zt,Je){"use strict";Je.d(Zt,{h:function(){return ge},Z:function(){return he}});var ze=Je(59301),Ct=Je(82326),y=Je(28284),Te=Je(7939),be=Je(89780),x=Je.n(be),z=Je(2018),ie=Object.defineProperty,oe=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,te=(xe,Ce,je)=>Ce in xe?ie(xe,Ce,{enumerable:!0,configurable:!0,writable:!0,value:je}):xe[Ce]=je,se=(xe,Ce)=>{for(var je in Ce||(Ce={}))E.call(Ce,je)&&te(xe,je,Ce[je]);if(le)for(var je of le(Ce))ne.call(Ce,je)&&te(xe,je,Ce[je]);return xe},ue=(xe,Ce)=>oe(xe,ee(Ce));const fe=Ct.default.Option,me={labelCol:{span:4},wrapperCol:{span:20}},ve={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 he=({callback:xe,onCancel:Ce})=>{const[je,Ee]=(0,ze.useState)("python");function ce(we){Ee(ve[we][1])}function ye(we){xe(we)}return ze.createElement(y.default,ue(se({},me),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ye,style:{width:500}}),ze.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ze.createElement(Ct.default,{getPopupContainer:we=>we.parentNode,onChange:ce},Object.keys(ve).map(we=>ze.createElement(fe,{key:we,value:we},ve[we][0])))),ze.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ze.createElement(ge,{mode:je})),ze.createElement("div",{className:"flex-container flex-end"},ze.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ze.createElement(Te.ZP,{type:"ghost",onClick:Ce},"\u53D6\u6D88")))};function ge({value:xe,onChange:Ce,mode:je,options:Ee={}}){const ce=(0,ze.useRef)(),[ye,we]=(0,ze.useState)();return(0,ze.useEffect)(()=>{if(ye){let De=function(Re){const ke=Re.getValue();Ce&&Ce(ke)};return ye.on("change",De),()=>{ye.off("change",De)}}},[ye,Ce]),(0,ze.useEffect)(()=>{ye&&ye.setOption("mode",je)},[ye,je]),(0,ze.useEffect)(()=>{ye&&(xe!==ye.getValue()||xe==="")&&setTimeout(()=>{ye.setValue(xe||"")},300)},[ye,xe]),(0,ze.useEffect)(()=>{if(ce.current&&!ye){const De=x().fromTextArea(ce.current,se({mode:je,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ee));we(De)}},[ce.current,ye]),ze.createElement("div",{className:"my-codemirror-container"},ze.createElement("textarea",{ref:ce}))}},77834:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return Lt}});var ze=Je(59301),Ct=Je(58106),y=Je(89780),Te=Je.n(y),be=Je(76374),x=Je(2018),z=Je(6313),ie=Je(25717),oe=Je(99498),ee=Je(25419),le=Je(67549),E=Je(59944),ne=({value:At="",className:$t,showTextOnly:cr,showLines:mr,style:Sr={}})=>{const Tr=(0,ze.useMemo)(()=>"",[At]);return ze.createElement(ze.Fragment,null,ze.createElement("div",{dangerouslySetInnerHTML:{__html:Tr}}))},te=Object.defineProperty,se=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,he=(At,$t,cr)=>$t in At?te(At,$t,{enumerable:!0,configurable:!0,writable:!0,value:cr}):At[$t]=cr,ge=(At,$t)=>{for(var cr in $t||($t={}))me.call($t,cr)&&he(At,cr,$t[cr]);if(fe)for(var cr of fe($t))ve.call($t,cr)&&he(At,cr,$t[cr]);return At},xe=(At,$t)=>se(At,ue($t));let Ce=[{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 je({onActionCallback:At,title:$t,icon:cr,actionName:mr,className:Sr="",children:Tr}){function br(){At(mr)}return ze.createElement("a",{title:$t,className:Sr,onClick:br},ze.createElement("i",{className:`${cr}`}),Tr)}var Ee=({watch:At,showNullButton:$t,showNullProgramButton:cr,onActionCallback:mr,fullScreen:Sr,insertTemp:Tr,hidetoolBar:br,extraUse:Rr})=>{const Ur=[...Ce,{title:`${At?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${At?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return ze.createElement("ul",{className:"markdown-toolbar-container"},!br&&Ur.map((Kr,sr)=>ze.createElement("li",{key:sr},Kr.actionName?ze.createElement(je,xe(ge({},Kr),{onActionCallback:mr})):ze.createElement("span",{className:"v-line"}))),$t?ze.createElement("li",null,ze.createElement(je,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:mr},ze.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,cr?ze.createElement(ze.Fragment,null,ze.createElement("li",null,ze.createElement(je,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:mr},ze.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),ze.createElement("li",null,ze.createElement(je,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:mr},ze.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Tr&&ze.createElement("li",null,ze.createElement(je,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Tr}`,onActionCallback:mr},ze.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Rr&&ze.createElement("li",null,Rr),ze.createElement("li",{className:"btn-full-screen"},ze.createElement(je,{icon:`${Sr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Sr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mr})))},ce=Je(35990),ye=Je(28284),we=Je(37568),De=Je(7939),Re=Object.defineProperty,ke=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,ut=(At,$t,cr)=>$t in At?Re(At,$t,{enumerable:!0,configurable:!0,writable:!0,value:cr}):At[$t]=cr,Ie=(At,$t)=>{for(var cr in $t||($t={}))Ve.call($t,cr)&&ut(At,cr,$t[cr]);if(Ze)for(var cr of Ze($t))Qe.call($t,cr)&&ut(At,cr,$t[cr]);return At},We=(At,$t)=>ke(At,_e($t));const it={labelCol:{span:4},wrapperCol:{span:20}};var at=({callback:At,onCancel:$t})=>{function cr(mr){At(mr)}return ze.createElement(ye.default,We(Ie({},it),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:cr,style:{width:500}}),ze.createElement(ye.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ze.createElement(we.default,null)),ze.createElement(ye.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ze.createElement(we.default,null)),ze.createElement("div",{className:"flex-container flex-end"},ze.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ze.createElement(De.ZP,{type:"ghost",onClick:$t},"\u53D6\u6D88")))},nt=Je(52504),Xe=Je(82441),et=Je(62957),Ye=Je(77019),dt=Je(1986),tt=Je(59301),lt=({callback:At,onCancel:$t})=>{const cr=document.createElement("canvas"),mr=cr.getContext("2d");cr.width=1e3,cr.height=800,mr.fillStyle="#ffffff",mr.fillRect(0,0,cr.width,cr.height);const Sr=cr.toDataURL("image/png");return tt.createElement(et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},tt.createElement(Ye.Z,{style:{height:"100vh"}},tt.createElement(dt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Sr,visible:!0,title:String(Date.now())},onOk:Tr=>{At({src:Tr.url})},onClose:$t})))},st=Je(30641),He=Je(5269),Ne=Je(6767),Ge={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},Me=Je(59301),ct=(0,ze.forwardRef)(({onCancel:At,editImgId:$t,callback:cr},mr)=>{let Sr=(0,ze.useRef)(),Tr=(0,ze.useRef)(),br=(0,ze.useRef)(),Rr=(0,ze.useRef)(!1);const Ur=(0,ze.useRef)(!1);console.log("ref:",mr);const[Kr,sr]=(0,ze.useState)(0),[Bt,Wt]=(0,ze.useState)("100vh");return(0,ze.useEffect)(()=>{sr(1)},[]),(0,ze.useImperativeHandle)(mr,()=>({setHeight:Wt})),Me.createElement("div",{ref:Ur,className:"body-overflow-initial"},Me.createElement(st.Z,{width:"100vw",height:Bt,footer:null,closable:!0,placement:"bottom",open:!!Kr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Ge.drawerWrap}`,onClose:()=>{window.saveDrawData(Gr=>{cr({src:`/api/attachments/${Gr}`,id:Gr})})},title:Me.createElement(Ye.Z,{align:"middle"},Me.createElement(He.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Me.createElement(He.Z,{onClick:()=>{Wt(Bt==="60px"?"100vh":"60px")}},Me.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),Me.createElement(He.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}}),cr({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=${$t||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Tr})))}),pt=Je(26869),rt=Je(47889),Ae=Je(71051);const Pe=rt.ZP.Group,Ue={margin:"0 8px"};var ot=({callback:At,onCancel:$t})=>{function cr(mr){At(mr)}return ze.createElement(ye.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:cr},ze.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ze.createElement("span",{style:Ue},"\u5355\u5143\u683C\u6570\uFF1A"),ze.createElement("span",{style:Ue},"\u884C\u6570"),ze.createElement(ye.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ze.createElement(Ae.Z,null)),ze.createElement("span",{style:Ue},"\u5217\u6570"),ze.createElement(ye.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ze.createElement(Ae.Z,null))),ze.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ze.createElement("span",{style:Ue},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ze.createElement(ye.default.Item,{name:"align"},ze.createElement(Pe,null,ze.createElement(rt.ZP,{value:"default"},ze.createElement("i",{className:"fa fa-align-justify"})),ze.createElement(rt.ZP,{value:"left"},ze.createElement("i",{className:"fa fa-align-left"})),ze.createElement(rt.ZP,{value:"center"},ze.createElement("i",{className:"fa fa-align-center"})),ze.createElement(rt.ZP,{value:"right"},ze.createElement("i",{className:"fa fa-align-right"}))))),ze.createElement("div",{className:"flex-container flex-end"},ze.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ze.createElement(De.ZP,{type:"ghost",onClick:$t},"\u53D6\u6D88")))},Oe=Je(71411),Se=Je(75544),pe=Je.n(Se),$e=(0,ze.forwardRef)(({use3d:At,width:$t,height:cr,callback:mr,showSaveButton:Sr},Tr)=>{const br=(0,ze.useRef)(),Rr=(0,ze.useRef)(),[Ur,Kr]=(0,ze.useState)(!1),sr=(0,ze.useRef)({id:br,appName:"graphing",width:$t||1e3,height:cr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ze.useEffect)(()=>{Rr.current=new(pe())(sr.current,!0),window.onload=function(){Rr.current.inject("applet_container")}},[]);const Bt=()=>{var Wt=window.ggbApplet.getPNGBase64(1,!0,72);return mr&&mr(Wt),Wt};return(0,ze.useEffect)(()=>{sr.current.appName=Ur?"3D":"graphing",Rr.current.inject("applet_container")},[Ur]),(0,ze.useEffect)(()=>{Kr(At)},[At]),(0,ze.useImperativeHandle)(Tr,()=>({getImgData:Bt})),ze.createElement(ze.Fragment,null,ze.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:br}),ze.createElement(Ye.Z,{align:"middle"},ze.createElement(He.Z,{flex:1},ze.createElement(Oe.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ur,onChange:Wt=>Kr(Wt)})),ze.createElement(He.Z,null,ze.createElement(De.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Le=Je(50047);const mt="link",gt="upload-image",wt="add-flowchart",bt="draw-image",yt="add-flowchart",Et="code-block",kt="add-table",jt="------------",It={default:jt,left:`:${jt}`,center:`:${jt}:`,right:`${jt}:`};var vr=Je(61904),Kt=Je(31735);function Pr(){}let qt=0;const zr=1e4,Vr="\u2581",Xr="@\u2581\u2581@",pn="@\u2581@",nn=`
**\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`,Mr=["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 fn(At){return/^\d+$/.test(At)?`${At}px`:At}const Lr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ir={[Lr+"-B"]:"bold",[Lr+"-I"]:"italic"},Mt={[mt]:"\u6DFB\u52A0\u94FE\u63A5",[Et]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[gt]:"\u6DFB\u52A0\u56FE\u7247",[bt]:"\u6DFB\u52A0\u753B\u56FE",[wt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[kt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Lt=({defaultValue:At="",onChange:$t,width:cr="100%",height:mr=400,miniToolbar:Sr=!1,isFocus:Tr=!1,watch:br,insertTemp:Rr,mode:Ur="markdown",id:Kr="markdown-editor-id",showResizeBar:sr=!1,noStorage:Bt=!1,showNullButton:Wt=!1,showNullProgramButton:Gr=!1,hidetoolBar:on=!1,fullScreen:Tt=!1,onBlur:_t,onCMBeforeChange:dr,onFullScreen:Qt,className:Ot="",disablePaste:rr=!1,disabled:wr=!1,disabledFill:gr=!1,placeholder:ar="",values:pr="",extraUse:Cr,onAddBlank:ir})=>{const[Yt,kr]=(0,ze.useState)(null),[Zr,en]=(0,ze.useState)(At),[an,kn]=(0,ze.useState)(br),[Pn,tn]=(0,ze.useState)(Tt),[Nr,Wr]=(0,ze.useState)(""),[_r,An]=(0,ze.useState)(0),[Hn,Fn]=(0,ze.useState)(mr),[Jn,zn]=(0,ze.useState)(!1),[jr,Fr]=(0,ze.useState)(0),[Er,Yr]=(0,ze.useState)(0),Or=(0,ze.useRef)(),qr=(0,ze.useRef)(),yn=(0,ze.useRef)(),Rn=(0,ze.useRef)(),jn=(0,ze.useRef)(),Bn=(0,ze.useRef)(),ri=(0,Ct.useDispatch)();(0,ze.useEffect)(()=>{const or=window.scrollY||window.pageYOffset;en(pr),Yt==null||Yt.setValue(pr),window.scrollTo(0,or)},[pr]),(0,ze.useEffect)(()=>{Qt==null||Qt(Pn)},[Pn]),(0,ze.useEffect)(()=>{if(Or.current){let or=function(yr,xr){var Br;if(rr){xr.preventDefault();return}const sn=xr.clipboardData;if(sn){const Jr=sn.types.toString(),wn=sn.items;if(Jr==="Files"||sn.types.indexOf("Files")>-1){if(xr.preventDefault(),Ur=="stex")return;try{let mn=wn[1];((Br=wn[0])==null?void 0:Br.kind)==="file"&&(mn=wn[0]);const bn=mn.getAsFile(),En=bn.name.split(".").pop();(0,Xe.I)(bn,xn=>{var Wn,Tn,Nn;xn.id?((Wn=bn==null?void 0:bn.type)==null?void 0:Wn.indexOf("image"))>-1?er.replaceSelection(`<img width="100%" src="/api/attachments/${xn.id}?type=${xn.content_type})" alt="" />`):((Tn=bn==null?void 0:bn.type)==null?void 0:Tn.indexOf("video"))>-1?er.replaceSelection(`<video width="100%" controls src="/api/attachments/${xn.id}"></video>`):((Nn=bn==null?void 0:bn.type)==null?void 0:Nn.indexOf("pdf"))>-1?er.replaceSelection(`<a href="/api/attachments/${xn.id}?type=${bn.type}&disposition=inline" target="_blank">${bn.name}</a>`):Mr.includes(En)?er.replaceSelection(`<a href="/api/attachments/${xn.id}?type=office&disposition=inline" target="_blank">${bn.name}</a>`):er.replaceSelection(`[${bn.name}](/api/attachments/${xn.id}?type=${xn.content_type})`):(xn==null?void 0:xn.status)===401&&(document.location.href="/user/login")})}catch(mn){Ne.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const er=Te().fromTextArea(Or.current,{mode:Ur,lineNumbers:!Sr,lineWrapping:!0,value:At,autoCloseTags:!0,autoCloseBrackets:!0});return er.on("keyup",function(yr,xr){xr.keyCode===8&&(yr.getValue()==""?er.setOption("placeholder",ar):er.setOption("placeholder",null))}),er.on("keydown",function(yr,xr){if(xr.keyCode===8){var Br=Nt(yr);Br&&xr.preventDefault()}}),Tr&&er.focus(),er.on("paste",or),wr&&er.on("beforeChange",function(yr,xr){(xr.origin==="paste"||xr.origin==="+input")&&xr.cancel()}),kr(er),()=>{er.off("paste",or)}}},[]);const xt=(0,ze.useCallback)(()=>{if(qr.current)try{}catch(or){console.log(or,"---- to set md editor body height")}},[Hn,qr,Pn]);(0,ze.useEffect)(()=>{function or(){let er=new be.Z(yr=>{for(let xr of yr)(xr.target.offsetHeight>0||xr.target.offsetWidth>0)&&(xt(),Yt.setSize("100%","100%"),Yt.refresh())});return er.observe(Or.current.parentElement),er}if(Yt){const er=or();return()=>{var yr,xr;(yr=Or.current)!=null&&yr.parentElement&&er.unobserve((xr=Or.current)==null?void 0:xr.parentElement)}}},[Yt,xt]),(0,ze.useEffect)(()=>{if(Yt){let or=[];for(const[er,yr]of Object.entries(Ir)){let xr={[er]:()=>{Rt(yr)}};or.push(xr),Yt.addKeyMap(xr)}return()=>{for(let er of or)Yt.removeKeyMap(er)}}},[Yt]),(0,ze.useEffect)(()=>{Tt!==Pn&&tn(Tt)},[Tt]),(0,vr.Z)(()=>{if(!Bt&&_r>0){let or=new Date().getTime(),er=window.sessionStorage.getItem(Kr);or>=_r+zr&&(!er||er!==Zr)&&(window.sessionStorage.setItem(Kr,Zr),zn(!0))}},zr),(0,ze.useEffect)(()=>{kn(br)},[Yt,br]),(0,ze.useEffect)(()=>{Yt&&Tr&&Yt.focus()},[Yt,Tr]),(0,ze.useEffect)(()=>{if(an&&Yt){let or=function(yr){let xr=yr.target;if(Rn.current){let Br=xr.scrollTop/xr.scrollHeight;Rn.current.scrollTop=Rn.current.scrollHeight*Br}};const er=Yt.getScrollerElement();return er.addEventListener("scroll",or),()=>{er.removeEventListener("scroll",or)}}},[Yt,an]),(0,ze.useEffect)(()=>{if(Yt&&dr){let or=function(er,yr){dr(er,yr)};return Yt.on("beforeChange",or),()=>{Yt.off("beforeChange",or)}}},[Yt,dr]),(0,ze.useEffect)(()=>{if(Yt&&_t){let or=function(){_t(Yt.getValue())};return Yt.on("blur",or),()=>{Yt.off("blur",or)}}},[Yt,_t]);function Nt(or,er){var yr=or.getDoc(),xr=yr.getCursor(),Br=yr.getLine(xr.line),sn=Br.charAt(xr.ch-1),Jr=Br.lastIndexOf("@\u2581@",xr.ch),wn=Br.lastIndexOf("@\u2581\u2581@",xr.ch),mn=Jr>wn?Jr:wn,bn=Jr>wn?3:4;if(Xr.indexOf(sn)===-1)return null;if(console.log("change1:",er,or,Br,xr,mn,Jr,wn,sn),mn>=0&&xr.ch-mn<5){var En=mn+bn;return yr.replaceRange("",{line:xr.line,ch:mn},{line:xr.line,ch:En}),{line:xr.line,ch:En}}return null}(0,ze.useEffect)(()=>{if(Yt){let or=function(er,yr){const xr=er.getValue();en(xr),An(new Date().getTime()),er.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),$t&&(Gr?$t(xr,zt(xr)):$t(xr))};return Yt.on("change",or),()=>{Yt.off("change",or)}}},[Yt,$t]),(0,ze.useEffect)(()=>{if(Yt)if(At==null)Yt.setValue(""),en("");else{const or=window.scrollY||window.pageYOffset;At!==Yt.getValue()&&(Yt.setValue(At),en(At),Yt.setCursor(wr?1:Yt.lineCount(),0),window.scrollTo(0,or))}},[Yt,At]);const Rt=(0,ze.useCallback)(or=>{const er=Yt.getCursor(),yr=Yt.getSelection();let xr=yr.split(`
`);switch(or){case"bold":return Yt.replaceSelection("**"+yr+"**"),yr===""&&Yt.setCursor(er.line,er.ch+2),Yt.focus();case"italic":return Yt.replaceSelection("*"+yr+"*"),yr===""&&Yt.setCursor(er.line,er.ch+1),Yt.focus();case"code":return Yt.replaceSelection("`"+yr+"`"),yr===""&&Yt.setCursor(er.line,er.ch+1),Yt.focus();case"inline-latex":return(0,Kt.Ye)(ri)?void 0:(Wr("inline-latex"),Yt.focus());case"latex":return Yt.replaceSelection("```latex\n"+yr+"\n```"),Yt.setCursor(er.line+1,yr.length+1),Yt.focus();case"line-break":return Yt.replaceSelection(`<br/>
`),Yt.focus();case"list-ul":return yr===""?Yt.replaceSelection("- "+yr):Yt.replaceSelection(xr.map(Br=>Br===""?"":`- ${Br}`).join(`
`)),Yt.focus();case"list-ol":return yr===""?Yt.replaceSelection("1. "+yr):Yt.replaceSelection(xr.map((Br,sn)=>Br===""?"":`${sn+1}. ${Br}`).join(`
`)),Yt.focus();case"add-null-ch":ir==null||ir();return;case"add-signal":return yr===""&&Yt.setCursor(er.line,er.ch),Yt.replaceSelection(pn),Yt.focus();case"add-multiple":return yr===""&&Yt.setCursor(er.line,er.ch),Yt.replaceSelection(Xr),Yt.focus();case"inster-template-1":return yr===""&&Yt.setCursor(er.line,er.ch),Yt.replaceSelection(nn),Yt.focus();case"eraser":return Yt.setValue(""),Yt.focus();case"trigger-watch":return kn(!an),Yt.focus();case"trigger-full-screen":return tn(!Pn),Yt.focus();case mt:Wr(mt);return;case Et:Wr(Et);return;case gt:Wr(gt);return;case bt:Wr(bt);return;case"maths-latex":if((0,Kt.Ye)(ri))return;Wr("maths-latex");return;case wt:jn.current="",sessionStorage.removeItem("file_id"),Wr(wt);return;case kt:Wr(kt);return;default:throw new Error}},[Yt,an,Pn]),Ft=(0,ze.useCallback)((or,er)=>{var yr,xr,Br,sn,Jr,wn;or!=null&&or.disabledClose||Wr("");const{src:mn,alt:bn,id:En}=or||{};switch(Nr){case mt:const{title:gn,link:rn}=or;return Yt.replaceSelection(`[${gn}](${rn})`),Yt.focus();case Et:const{language:hn,content:Sn}=or;return Yt.replaceSelection(["```"+hn,Sn,"```"].join(`
`)),Yt.focus();case"maths-latex":for(var xn=atob(or),Wn=new Uint8Array(xn.length),Tn=0;Tn<xn.length;Tn++)Wn[Tn]=xn.charCodeAt(Tn);var Nn=new Blob([Wn],{type:"image/png"});(0,Xe.I)(Nn,yi=>{yi.id?Yt.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,Kt.Ye)(ri))return;Yt.replaceSelection("`$$"+or+"$$`");break;case yt:if(!En)return;Yt.getValue().indexOf(mn)===-1?Yt.replaceSelection(`<center><img id="${En}" width="80%" src="${mn}" class="draw-flowchart" alt="${bn||""}" /></center>`):document.getElementById(En).src=pt.Z.API_SERVER+mn+"?t="+Date.now();break;case gt:case bt:const un=er,Mn=(Br=(xr=(yr=un==null?void 0:un.name)==null?void 0:yr.split("."))==null?void 0:xr.pop)==null?void 0:Br.call(xr);return((sn=un==null?void 0:un.type)==null?void 0:sn.indexOf("image"))>-1||!(un!=null&&un.type)?un!=null&&un.align||un!=null&&un.width?Yt.replaceSelection(`<p style="text-align:${un.align||"initial"}"><img width="${un.width?un.width+"%":"initial"}" src="${mn}" alt="${bn||""}" /></p>`):Yt.replaceSelection(`<img width="100%" src="${mn}" alt="${bn||""}" />`):((Jr=un==null?void 0:un.type)==null?void 0:Jr.indexOf("video"))>-1?Yt.replaceSelection(`<video width="100%" controls src="${mn}"></video>`):((wn=un==null?void 0:un.type)==null?void 0:wn.indexOf("pdf"))>-1?Yt.replaceSelection(`<a href="${mn}?type=${un.type}&disposition=inline" target="_blank">${un.name}</a>`):Mr.includes(Mn)?Yt.replaceSelection(`<a href="${mn}?type=office&disposition=inline" target="_blank">${un.name}</a>`):Yt.replaceSelection(`[${un.name}](${mn})`),Yt.focus();case kt:const{row:Ln,col:$n,align:_i}=or;let Si=`
`;for(let yi=0;yi<Ln;yi++){let Di=[],qn=[];for(let Qn=0;Qn<$n;Qn++)yi===1&&qn.push(It[_i]),Di.push(" ");yi===1&&(Si+=`| ${qn.join(" | ")} |
`),Si+=`| ${Di.join($n===1?"":" | ")} |
`}return Yt.replaceSelection(Si+`
`),Yt.focus();default:throw new Error}},[Yt,Nr]),Jt=(0,ze.useMemo)(()=>{switch(Nr){case mt:return ze.createElement(at,{callback:Ft,onCancel:Gt});case Et:return ze.createElement(nt.Z,{callback:Ft,onCancel:Gt});case gt:return ze.createElement(Xe.Z,{callback:Ft,onCancel:Gt});case wt:return ze.createElement(ct,{editImgId:jn.current,callback:Ft,onCancel:Gt});case kt:return ze.createElement(ot,{callback:Ft,onCancel:Gt});case"maths-latex":return ze.createElement($e,{showSaveButton:!0,callback:Ft});case"inline-latex":return ze.createElement(Le.Z,{showSaveButton:!0,callback:Ft});default:return null}},[Nr]);function Gt(){Wr("")}(0,ze.useEffect)(()=>{if(yn.current){let or=function(Jr){Br=!0,sn=Jr.pageY},er=function(){Br=!1},yr=function(Jr){if(Br){let wn=Jr.pageY-sn;wn<0&&(wn=0),wn>300&&(wn=300);let mn=mr+wn+"px";Fn(mn)}},xr=yn.current,Br=!1,sn=0;return xr.addEventListener("mousedown",or),document.addEventListener("mousemove",yr),document.addEventListener("mouseup",er),()=>{xr.removeEventListener("mousedown",or),document.removeEventListener("mousemove",yr),document.removeEventListener("mouseup",er)}}},[Yt,yn]),(0,ze.useEffect)(()=>{Fn(mr)},[mr]);const fr=fn(cr),lr=fn(Hn),tr={width:fr,height:lr},Pt=(0,ze.useMemo)(()=>{if(_r){let or=new Date(_r),er=or.getHours(),yr=or.getMinutes(),xr=or.getSeconds();return er=er<10?"0"+er:er,yr=yr<10?"0"+yr:yr,xr=xr<10?"0"+xr:xr,`${er}:${yr}:${xr}`}return 0},[_r]),zt=or=>{const er=[];if(Gr){let yr=-1;or=or.replace(/(@▁▁@|@▁@)/g,function(xr,Br,sn){er.push({multiLine:xr!==pn})})}return er};function Xt(){window.sessionStorage.removeItem(Kr),zn(!1),An(0)}function Vt(){zn(!1),An(0),Yt.setValue(window.sessionStorage.getItem(Kr))}(0,ze.useEffect)(()=>{Mt[Nr]&&Nr!==bt&&Nr!==wt&&setTimeout(()=>{const or=document.getElementsByClassName("markdown-popup-form")[0],er=window.innerWidth/2-or.offsetWidth/2,yr=window.innerHeight/2-or.offsetHeight/2;Fr(er),Yr(yr)},0)},[Nr]);const nr=or=>{or.preventDefault();const er=or.clientX-jr,yr=or.clientY-Er;document.body.onmousemove=xr=>{let Br=xr.clientX-er,sn=xr.clientY-yr;const Jr=document.getElementsByClassName("markdown-popup-form")[0],wn=window.innerWidth-Jr.offsetWidth,mn=window.innerHeight-Jr.offsetHeight;Br=Math.max(0,Math.min(Br,wn)),sn=Math.max(0,Math.min(sn,mn)),Dr(xr.clientX,xr.clientY,er,yr)&&(Fr(Br),Yr(sn))},document.body.onmouseup=function(){document.body.onmousemove=null}},Dr=(or,er,yr,xr)=>{const Br=document.body.clientHeight,sn=document.body.clientWidth;return or<20&&yr>or||or>sn-20&&yr<or||er<20&&xr>er||er>Br-20&&xr<er?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ze.createElement(ze.Fragment,null,ze.createElement("div",{className:"markdown-editor-wrapper",ref:qr},ze.createElement("div",{className:`markdown-editor-container ${Ot} ${an?"on-preview":""} ${Sr?"mini":""} ${Pn?"full-screen":""}`,style:tr},ze.createElement(Ee,{insertTemp:Rr,watch:an,fullScreen:Pn,showNullButton:Wt,showNullProgramButton:Gr,onActionCallback:Rt,hidetoolBar:on,extraUse:Cr}),ze.createElement("div",{className:"markdown-editor-body"},ze.createElement("div",{className:"codemirror-container"},ze.createElement("textarea",{ref:Or,placeholder:ar})),an?ze.createElement("div",{ref:Rn,className:"preview-container"},Ur==="stex"&&ze.createElement(ne,{value:Zr}),Ur!=="stex"&&ze.createElement(E.Z,{edit:!0,disabledFill:gr,showProgramFill:Gr,value:Zr,openEditor:or=>{var er;jn.current=or,(er=Bn.current)==null||er.setHeight("100vh"),setTimeout(()=>{Wr("add-flowchart")},150)}})):null))),sr?ze.createElement("a",{ref:yn,className:"editor-resize"}):null,Nr===bt&&ze.createElement(lt,{callback:Ft,onCancel:Gt}),Nr===wt&&ze.createElement(ct,{ref:Bn,editImgId:jn.current,callback:Ft,onCancel:Gt}),ze.createElement(ce.Z,null,Mt[Nr]&&Nr!==bt&&Nr!==wt?ze.createElement(et.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:jr,top:Er},title:ze.createElement("div",{style:{cursor:"move"},onMouseDown:nr},Mt[Nr]),open:!0,onCancel:Gt,footer:null,destroyOnClose:!0,width:Nr===wt?"1200px":null,height:Nr===wt?"80vh":null,className:"markdown-popup-form"},Jt):null))}},82441:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return Ce},I:function(){return Ee}});var ze=Je(28284),Ct=Je(6767),y=Je(37568),Te=Je(44104),be=Je(71051),x=Je(47889),z=Je(7939),ie=Je(52882),oe=Je(59301),ee=Je(59301),le=Object.defineProperty,E=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,fe=(ce,ye,we)=>ye in ce?le(ce,ye,{enumerable:!0,configurable:!0,writable:!0,value:we}):ce[ye]=we,me=(ce,ye)=>{for(var we in ye||(ye={}))se.call(ye,we)&&fe(ce,we,ye[we]);if(te)for(var we of te(ye))ue.call(ye,we)&&fe(ce,we,ye[we]);return ce},ve=(ce,ye)=>E(ce,ne(ye));const{useForm:he}=ze.default,ge={width:280,marginRight:10},xe={labelCol:{span:5},wrapperCol:{span:19}};var Ce=({callback:ce,onCancel:ye})=>{const[we]=he();let De=(0,oe.useRef)();function Re(Ze){De.current.width=we.getFieldValue("width"),De.current.align=we.getFieldValue("align"),ce(Ze,De.current)}function ke(Ze,Ve){if(Ze.status===-1){Ct.ZP.error(Ze.message);return}we.setFieldsValue({src:`/api/attachments/${Ze.id}`,type:Ve.type})}function _e(Ze){let Ve=Ze.target.files[0];De.current=Ve,Ee(Ve,ke)}return ee.createElement(ze.default,ve(me({form:we},xe),{className:"upload-image-panel",onFinish:Re,style:{width:470,overflow:"hidden"}}),ee.createElement(ze.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(ze.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(y.default,{style:ge})),ee.createElement(je,{onFileChange:_e}))),ee.createElement(ze.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(y.default,{style:{width:264}})),ee.createElement(ze.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(Te.Z,null,ee.createElement(ze.default.Item,{name:"width",style:{margin:0}},ee.createElement(be.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(ze.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(ze.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(z.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(z.ZP,{type:"default",onClick:ye},"\u53D6\u6D88"))))};function je({onFileChange:ce}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:ce}))}function Ee(ce,ye){if(!ce)throw new String("\u6CA1\u6709\u6587\u4EF6");let we=new FormData;we.append("editormd-image-file",ce),we.append("file_param_name","editormd-image-file"),we.append("byxhr","true");var De=new window.XMLHttpRequest;De.withCredentials=!0,De.addEventListener("load",function(Re){ye(JSON.parse(Re.target.responseText),ce)},!1),De.addEventListener("error",function(Re){console.error(Re)},!1),De.open("POST",`${ie.KI}/api/attachments.json`),De.send(we)}},35990:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return y}});var ze=Je(59301),Ct=Je(4676);class y extends ze.Component{constructor(be){super(be);const x=window.document;this.node=x.createElement("div"),x.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,Ct.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58478:function(ur,Zt,Je){"use strict";Je.d(Zt,{SV:function(){return lt},ZP:function(){return tt}});var ze=Je(59301),Ct=Je(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"]},Te={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"]},be={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 ie=Je(53184),oe=Je.n(ie),ee=(st,He,Ne)=>new Promise((Ge,Me)=>{var Ke=rt=>{try{pt(Ne.next(rt))}catch(Ae){Me(Ae)}},ct=rt=>{try{pt(Ne.throw(rt))}catch(Ae){Me(Ae)}},pt=rt=>rt.done?Ge(rt.value):Promise.resolve(rt.value).then(Ke,ct);pt((Ne=Ne.apply(st,He)).next())});const le={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=(st,He,Ne,Ge)=>{const Me=He.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:st.languages.CompletionItemKind.Text,insertText:ct,range:Ge}))},ne=(st,He,Ne,Ge)=>{st.languages.registerCompletionItemProvider(He,{provideCompletionItems(Me,Ke){const ct=Me.getWordUntilPosition(Ke),pt={startLineNumber:Ke.lineNumber,endLineNumber:Ke.lineNumber,startColumn:ct.startColumn,endColumn:ct.endColumn},rt=Me.getLineContent(Ke.lineNumber).substring(ct.startColumn-2,ct.endColumn);return{suggestions:[...E(st,Me,Ke,pt),...Ne.map(Pe=>({label:Pe,kind:st.languages.CompletionItemKind.Keyword,documentation:Pe,insertText:Pe,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...Ge.map(Pe=>({label:Pe.label,kind:st.languages.CompletionItemKind.Snippet,documentation:Pe.content,insertText:rt.startsWith("#")?Pe.content.replace(/#/,""):Pe.content,insertTextRules:st.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}})};var te=st=>{le.languages.forEach(He=>{st.languages.registerDocumentFormattingEditProvider(He,{provideDocumentFormattingEdits(Ne){return ee(this,null,function*(){const Ge=oe()(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:Ge}]})}})}),ne(st,"java",Te.keywords,Te.quickKey),ne(st,"cpp",be.keywords,be.quickKey),ne(st,"c",y.keywords,[]),ne(st,"python",x.keywords,x.quickKey),ne(st,"scala",z.keywords,z.quickKey)};const se="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ue=Object.defineProperty,fe=(st,He,Ne)=>He in st?ue(st,He,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):st[He]=Ne,me=(st,He,Ne)=>fe(st,typeof He!="symbol"?He+"":He,Ne);const ve=class Kl{constructor(He,Ne,Ge){this.placeholder=He,this.editor=Ne,this.monaco=Ge,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)}};me(ve,"ID","editor.widget.placeholderHint");var ge=ve,xe=Je(96236),Ce=Je(6767),je=Je(25399),Ee=Je(89392),ce=Je(94276),ye=Je(56102),we=Object.defineProperty,De=Object.defineProperties,Re=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ve=(st,He,Ne)=>He in st?we(st,He,{enumerable:!0,configurable:!0,writable:!0,value:Ne}):st[He]=Ne,Qe=(st,He)=>{for(var Ne in He||(He={}))_e.call(He,Ne)&&Ve(st,Ne,He[Ne]);if(ke)for(var Ne of ke(He))Ze.call(He,Ne)&&Ve(st,Ne,He[Ne]);return st},ut=(st,He)=>De(st,Re(He)),Ie=(st,He)=>{var Ne={};for(var Ge in st)_e.call(st,Ge)&&He.indexOf(Ge)<0&&(Ne[Ge]=st[Ge]);if(st!=null&&ke)for(var Ge of ke(st))He.indexOf(Ge)<0&&Ze.call(st,Ge)&&(Ne[Ge]=st[Ge]);return Ne},We=(st,He,Ne)=>new Promise((Ge,Me)=>{var Ke=rt=>{try{pt(Ne.next(rt))}catch(Ae){Me(Ae)}},ct=rt=>{try{pt(Ne.throw(rt))}catch(Ae){Me(Ae)}},pt=rt=>rt.done?Ge(rt.value):Promise.resolve(rt.value).then(Ke,ct);pt((Ne=Ne.apply(st,He)).next())});function it(st){return/^\d+$/.test(st)?`${st}px`:st}function at(){}let nt=!1;const Xe={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function et(st=[]){let He=st;if(Array.isArray(st)){for(let Ne=0;Ne<st.length;Ne++){let Ge=Xe[st[Ne]];if(Ge)return Ge}return He[0]}return Xe[He]||He}let Ye=null;const dt=()=>We(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(st){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",st)}});var tt=st=>{var He=st,{width:Ne="100%",height:Ge="100%",value:Me,language:Ke="javascript",style:ct={},options:pt={},overrideServices:rt={},theme:Ae="vs-dark",onEditBlur:Pe,isCopy:Ue=!1,onSave:ot,autoHeight:Oe=!1,forbidCopy:Se=!1,onChange:pe=at,editorDidMount:Be=at,onFocus:$e=at,onBreakPoint:Le=at,breakPointValue:mt=[],filename:gt="educoder.txt",errorLine:wt,errorContent:bt="",highlightLine:yt,openBreakPoint:Et=!1,placeholder:kt="",showMiniMap:jt=!0}=He,It=Ie(He,["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,ze.useRef)(),Kt=(0,ze.useRef)({}),Pr=(0,ze.useRef)(),qt=(0,ze.useRef)(),zr=(0,ze.useRef)([]),Vr=(0,ze.useRef)(!1),Xr=(0,ze.useRef)(),pn=(0,ze.useRef)(),nn=(0,ze.useRef)(!1),[Mr,fn]=(0,ze.useState)(!1);function dn(){let sr;return vr.current&&(sr=new Ct.Z(Bt=>{for(let Wt of Bt)(Wt.target.offsetHeight>0||Wt.target.offsetWidth>0)&&Kt.current.instance.layout()}),sr.observe(vr.current)),sr}function Lr(){Ce.ZP.warning({content:decodeURIComponent(se),key:"monaco-editor-tip"})}const Ir=()=>{let sr=Kt.current.instance;if(Me!=null&&sr&&Mr){const Bt=sr.getModel();Bt&&Me!==Bt.getValue()&&(nt=!0,Bt.setValue(Me),sr.layout(),nt=!1)}};(0,ze.useEffect)(()=>{const sr=ce.Z.subscribe("formatDocument",Bt=>{var Wt;let Gr=Kt.current.instance;(Wt=Gr==null?void 0:Gr.getAction)==null||Wt.call(Gr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Bt=>{pe(Bt)},sr},[]),(0,ze.useEffect)(()=>{var sr;let Bt=Kt.current.instance;qt.current&&clearTimeout(qt.current),qt.current=setTimeout(()=>{Ir()},500),Me&&(Me!=null&&Me.length)&&((sr=Bt==null?void 0:Bt.updateOptions)==null||sr.call(Bt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Me.split(/\r\n|\r|\n/g).length))+3,5)}))},[Me,Mr,Kt.current]),(0,ze.useEffect)(()=>{if(wt&&Kt.current&&Kt.current.instance){let Bt=Kt.current.instance;Bt.changeViewZones(function(Wt){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,Wt.addZone({afterLineNumber:wt||11,heightInLines:3,domNode:Gr})});var sr={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}};Bt.addOverlayWidget(sr),Bt.revealPositionInCenter({lineNumber:20,column:1})}},[wt,Kt.current,Mr]);const Mt=(sr="",Bt)=>{if(!sr||sr.trim()==="")return!0;const Gr=Kt.current.instance.getModel().getLineTokens(Bt);let on=!1;for(let Tt=0;Tt<2;Tt++)Gr.getStandardTokenType(Tt)===1&&(on=!0);return on};(0,ze.useEffect)(()=>{var sr;const Bt=(sr=Kt.current)==null?void 0:sr.instance;if(Bt&&Mr&&Se){const Wt=Bt.onDidBlurEditorWidget(()=>{nn.current=!1}),Gr=Bt.onDidFocusEditorText(()=>{nn.current=!0});return()=>{Wt.dispose(),Gr.dispose()}}},[Kt.current,Mr,Se]),(0,ze.useEffect)(()=>{var sr;if((sr=Kt.current)!=null&&sr.instance&&Mr&&Et){let Bt=Kt.current.instance,Wt=Bt.getModel();if(!Wt)return;(()=>{var pr;let Cr=[],ir=[];const Yt=Wt.getAllDecorations();for(let Zr of Yt)Zr.options.className==="highlighted-line"&&(Cr.push((pr=Zr==null?void 0:Zr.range)==null?void 0:pr.startLineNumber),ir.push(Zr==null?void 0:Zr.id));if(yt===Cr[0])return;Wt.deltaDecorations(ir,[]);const kr=Wt.getLineCount();yt&&yt<=kr&&(Bt.deltaDecorations([],[{range:new Ye.Range(yt,1,yt,Wt.getLineMaxColumn(yt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Bt.revealLineInCenter(yt))})();const on=(pr=!1)=>{var Cr;let ir=[],Yt=[];const kr=Wt.getAllDecorations();for(let Zr of kr)Zr.options.linesDecorationsClassName==="breakpoints-select"&&(ir.push((Cr=Zr==null?void 0:Zr.range)==null?void 0:Cr.startLineNumber),Yt.push(Zr==null?void 0:Zr.id));if(pr)return{lines:ir,ids:Yt};Le(ir)},Tt=pr=>We(void 0,null,function*(){let Cr={range:new Ye.Range(pr,1,pr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Wt.deltaDecorations([],[Cr]),on()}),_t=pr=>We(void 0,null,function*(){let Cr=[];const ir=Bt.getLineDecorations(pr);for(let Yt of ir)Yt.options.linesDecorationsClassName==="breakpoints-select"&&Cr.push(Yt.id);yield Wt.deltaDecorations(Cr,[]),on()}),dr=pr=>{let Cr=Bt.getLineDecorations(pr);for(let ir of Cr)if(ir.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ee.isEqual)(mt,on(!0).lines)){Wt.deltaDecorations(on(!0).ids,[]);const pr=mt.map(Cr=>({range:new Ye.Range(Cr,1,Cr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Wt.deltaDecorations([],pr)}const Qt=Bt.onDidChangeModelContent(pr=>{let Cr=Bt.getPosition();if(Cr){let ir=Cr.lineNumber;clearTimeout(pn.current),pn.current=setTimeout(()=>{Mt(Wt.getLineContent(ir),ir)?_t(ir):dr(ir)?(_t(ir),Tt(ir)):on()},100)}}),Ot=Bt.onMouseDown(pr=>{var Cr,ir,Yt;if(pr.target.detail&&((Yt=(ir=(Cr=pr.target)==null?void 0:Cr.element)==null?void 0:ir.className)!=null&&Yt.includes("line-numbers"))){let kr=pr.target.position.lineNumber;if(Mt(Wt.getLineContent(kr),kr))return;dr(kr)?_t(kr):Tt(kr)}}),rr=pr=>{let Cr={range:new Ye.Range(pr,1,pr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};zr.current=Bt.deltaDecorations(zr.current,[Cr])},wr=()=>{zr.current=Bt.deltaDecorations(zr.current,[])},gr=Bt.onMouseMove(pr=>{var Cr,ir,Yt;if(wr(),pr.target.detail&&((Yt=(ir=(Cr=pr.target)==null?void 0:Cr.element)==null?void 0:ir.className)!=null&&Yt.includes("line-numbers"))){let kr=pr.target.position.lineNumber;if(Mt(Wt.getLineContent(kr),kr))return;rr(kr)}}),ar=Bt.onMouseLeave(()=>{wr()});return()=>{Qt.dispose(),Ot.dispose(),gr.dispose(),ar.dispose()}}},[Kt.current,Mr,mt,yt,Et,Ke]),(0,ze.useEffect)(()=>{var sr;(sr=Kt.current)!=null&&sr.instance&&Et&&Kt.current.instance.setPosition({lineNumber:0,column:0})},[yt]);function Lt(){let sr=Kt.current.instance;if(sr){const Bt=sr.getSelection(),Wt=Kt.current.pastePos||{},Gr=new Ye.Range(Wt.startLineNumber||Bt.endLineNumber,Wt.startColumn||Bt.endColumn,Wt.endLineNumber||Bt.endLineNumber,Wt.endColumn||Bt.endColumn);setTimeout(()=>{sr.executeEdits("",[{range:Gr,text:""}])},300)}}function At(sr){(window.navigator.platform.match("Mac")?sr.metaKey:sr.ctrlKey)&&sr.keyCode==83&&(sr.preventDefault(),ot())}const $t=()=>{if(Oe&&Kt.current.instance){const sr=Kt.current.instance.getContentHeight();Ur(sr<Ge?Ge:sr)}else Ur(Ge)};function cr(sr){var Bt=document.createEvent("MouseEvents");Bt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),sr.dispatchEvent(Bt)}const mr=sr=>{if(!nn.current)return;const{keyCode:Bt,ctrlKey:Wt,metaKey:Gr,target:on,type:Tt}=sr;return(Tt==="paste"||(Bt===67||Bt===86)&&(Gr||Wt))&&on.nodeName==="TEXTAREA"&&(Lr(),sr.preventDefault()),!1};function Sr(sr,Bt){var Wt=window.URL||window.webkitURL||window,Gr=new Blob([Bt]),on=document.createElementNS("http://www.w3.org/1999/xhtml","a");on.href=Wt.createObjectURL(Gr),on.download=sr,cr(on)}(0,ze.useEffect)(()=>{$t()},[$t]),(0,ze.useEffect)(()=>{vr.current&&!Mr&&Promise.all([Je.e(8909),Je.e(4474)]).then(Je.bind(Je,71448)).then(sr=>{try{Ye=sr,Kt.current.instance=Ye.editor.create(vr.current,{value:Me,language:et(Ke),theme:Ae,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:jt||!1}},rt);const Bt=Kt.current.instance;let on=[...xe.BH._menuItems].find(Qt=>Qt[0]._debugName=="EditorContext")[1],Tt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],_t=(Qt,Ot)=>{var rr,wr;let gr=Qt._first;do Ot.includes((wr=(rr=gr.element)==null?void 0:rr.command)==null?void 0:wr.id)&&Qt._remove(gr);while(gr=gr.next)};if(Be(Bt,Ye),setTimeout(()=>{$t(),Kt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Sr(gt||"educoder.txt",Bt.getValue())}})},500),Kt.current.subscription=Bt.onDidChangeModelContent(Qt=>{Vr.current?clearTimeout(Xr.current):($t(),pe(Bt.getValue(),Qt)),Xr.current=setTimeout(()=>{Vr.current=!1},500)}),window.Monaco||te(Ye,et(Ke)),Se&&(_t(on,Tt),vr.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",mr),window.removeEventListener("paste",mr),window.addEventListener("keydown",mr),window.addEventListener("paste",mr)),window.Monaco=Ye,Pe&&Bt.onDidBlurEditorWidget(()=>{Pe(Bt.getValue())}),$e&&Bt.onDidFocusEditorText(()=>{Se&&dt(),$e(Bt.getValue())}),Se){dt();try{Bt.onDidPaste(Qt=>{const Ot=Bt.getSelection(),rr=Kt.current.pastePos||{},wr=new Ye.Range(rr.startLineNumber||Ot.endLineNumber,rr.startColumn||Ot.endColumn,rr.endLineNumber||Ot.endLineNumber,rr.endColumn||Ot.endColumn);Bt.executeEdits("",[{range:Qt.range,text:""}])})}catch(Qt){}}let dr=dn();return kt&&typeof kt=="string"&&new ge(kt,Bt,Ye),fn(!0),()=>{const Qt=Kt.current.instance;Qt.dispose();const Ot=Qt.getModel();Ot&&Ot.dispose(),Kt.current.subscription&&Kt.current.subscription.dispose(),dr.unobserve(vr.current)}}catch(Bt){}})},[]),(0,ze.useEffect)(()=>{if(Kt.current.instance&&Mr)return document.addEventListener("keydown",At,!1),()=>{document.removeEventListener("keydown",At)}},[ot,Mr]),(0,ze.useEffect)(()=>{let sr=Kt.current.instance;if(sr&&Mr){let Bt=et(Ke);Ye.editor.setModelLanguage(sr.getModel(),Bt)}},[Ke,Mr]),(0,ze.useEffect)(()=>{Kt.current.instance&&Mr&&Ye.editor.setTheme(Ae)},[Ae,Mr]),(0,ze.useEffect)(()=>{let sr=Kt.current.instance;Pr.current=pt,sr&&Mr&&(sr.updateOptions(Qe({},pt)),setTimeout(()=>{sr.getModel().updateOptions(Qe({},pt))},200))},[JSON.stringify(pt),Mr]),(0,ze.useEffect)(()=>{let sr=Kt.current.instance;sr&&Mr&&sr.layout()},[Ne,Ge,Mr]);const[Tr,br]=(0,ze.useState)(it(Ne)),[Rr,Ur]=(0,ze.useState)(it(Ge)),Kr=ut(Qe({},ct),{width:Tr,height:Rr,position:"relative"});return ze.createElement("div",{className:"my-monaco-editor",ref:vr,style:Kr,onFocus:()=>{Se&&dt()}},Ue&&ze.createElement(ye.CopyToClipboard,{text:Me,onCopy:()=>Ce.ZP.success("\u590D\u5236\u6210\u529F")},ze.createElement(je.Z,{title:"\u590D\u5236\u4EE3\u7801"},ze.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ze.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function lt({width:st="100%",height:He="100%",original:Ne,modified:Ge,language:Me,options:Ke={}}){const ct=(0,ze.useRef)(),[pt,rt]=(0,ze.useState)(null);function Ae(Oe){let Se;return ct.current&&(Se=new Ct.Z(pe=>{for(let Be of pe)(Be.target.offsetHeight>0||Be.target.offsetWidth>0)&&Oe.layout()}),Se.observe(ct.current)),Se}(0,ze.useEffect)(()=>(ct.current&&Promise.all([Je.e(8909),Je.e(9404)]).then(Je.bind(Je,2550)).then(Oe=>{Ye=Oe;const Se=Ye.editor.createDiffEditor(ct.current,ut(Qe({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},Ke),{wordWrap:!0}));rt(Se);let pe=Ae(Se);return()=>{Se.dispose();const Be=Se.getModel();Be&&Be.dispose(),pe.unobserve(ct.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ze.useEffect)(()=>{pt&&pt.setModel({original:Ye.editor.createModel(Ne,Me),modified:Ye.editor.createModel(Ge,Me)})},[Ne,Ge,Me,pt]);const Pe=it(st),Ue=it(He),ot={width:Pe,height:Ue};return ze.createElement("div",{className:"my-diff-editor",ref:ct,style:ot})}},87303:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return E}});var ze={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7"},Ct=Je(29787),y=Je(25399),Te=Je(60242),be=Je(92310),x=Je.n(be),z=Je(31735),ie=Je(59243),oe=Je(11968),ee=Je(59301),E=({className:ne,dataSource:te=[],col:se=4,right:ue,bottom:fe=23,precision:me=0,wrapWidth:ve=1200,trackEventItems:he,loading:ge,onRemove:xe=()=>{},isCurrent:Ce=!0,showProgress:je=!1,showAlias:Ee=!1})=>{const ce=Math.floor((ve-(se-1)*ue)/se),ye=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return ee.createElement(Ct.Z,{spinning:ge},ee.createElement("div",{className:x()(ze.list,ne)},!!(te!=null&&te.length)&&(te==null?void 0:te.map((we,De)=>{var Re,ke,_e,Ze,Ve,Qe,ut,Ie,We,it,at,nt,Xe;const{name:et,id:Ye,identifier:dt,featured:tt,school_name:lt,image_url:st,excellent:He,is_plan:Ne}=we;return ee.createElement("div",{key:Ye,className:Ce&&je?ze.wrapisCurrent:ze.wrap,style:{width:ce,marginRight:(1+De)%se===0?0:ue+me,marginBottom:fe}},ee.createElement("a",{className:ze.li,onClick:Ge=>{Ge.preventDefault(),Ge.stopPropagation(),he&&(0,z.L9)([he]),(0,z.xg)(`/paths/${dt}`)}},ee.createElement("div",{className:ze.img},ee.createElement("img",{className:ze.cover,src:`${st}`}),Ce&&(0,oe.bg)()&&(we==null?void 0:we.studying)&&ee.createElement("div",{className:`${ze.movebq} user-path-items`,onClick:Ge=>{Ge.stopPropagation(),xe(we)}},ee.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ee.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Re=we==null?void 0:we.subject_tags)==null?void 0:Re.map((Ge,Me)=>{var Ke,ct;if(Me===0){const rt=(Ke=ye.find(Ae=>Ae.name==Ge))==null?void 0:Ke.swimg;return ee.createElement("img",{className:ze.sign,src:rt,style:{left:"-4px"}})}const pt=(ct=ye.find(rt=>rt.name==Ge))==null?void 0:ct.ptimg;return ee.createElement("img",{className:ze.sign,src:pt,style:{left:`${48+52*(Me-1)+2*Me}px`}})}),ee.createElement("div",{className:ze.tagsDom},ee.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(we==null?void 0:we.excellent)&&ee.createElement("div",{className:ze.bq},"\u5F00\u653E\u8BFE\u7A0B"),((ke=we==null?void 0:we.custom_tags)==null?void 0:ke.length)>0&&ee.createElement(y.Z,{title:(Ve=(Ze=we==null?void 0:we.custom_tags)==null?void 0:Ze[((_e=we==null?void 0:we.custom_tags)==null?void 0:_e.length)-1])==null?void 0:Ve.tag_name},ee.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},ee.createElement("span",{className:"multi-llipsis1e text-10px"},(Ie=(ut=we==null?void 0:we.custom_tags)==null?void 0:ut[((Qe=we==null?void 0:we.custom_tags)==null?void 0:Qe.length)-1])==null?void 0:Ie.tag_name)))))),ee.createElement("div",{className:ze.name},ee.createElement(y.Z,{title:Ee&&(we!=null&&we.excellent_alias_name)?ee.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${et}`,ee.createElement("br",null),ee.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${we==null?void 0:we.excellent_alias_name}`)):et},ee.createElement("span",{className:ze.e},Ee&&(we==null?void 0:we.excellent_alias_name)||et))),Ce&&je&&((We=we==null?void 0:we.progress)==null?void 0:We.all_score)!=0&&ee.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ee.createElement(Te.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((it=we==null?void 0:we.progress)==null?void 0:it.my_score)/((at=we==null?void 0:we.progress)==null?void 0:at.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(nt=we==null?void 0:we.progress)==null?void 0:nt.my_score,"/",(Xe=we==null?void 0:we.progress)==null?void 0:Xe.all_score),(!Ce||!je)&&ee.createElement(y.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${lt}`},ee.createElement("div",{className:ze.unit},ee.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),lt)),(!Ce||!je)&&ee.createElement("div",{className:ze.tags},ee.createElement("div",null,ee.createElement(y.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ee.createElement("span",null,we.stages_count))),ee.createElement(y.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ee.createElement("span",null,ee.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ee.createElement("span",null,we.members_count)))))))})),!te.length&&ee.createElement(ie.Z,null)))}},18606:function(ur,Zt,Je){"use strict";Je.d(Zt,{jL:function(){return be},w9:function(){return it},QD:function(){return wt},cQ:function(){return Ve.Z},op:function(){return pe},O5:function(){return Ir},_b:function(){return It},t7:function(){return me},Gi:function(){return dt},YG:function(){return et},qp:function(){return le},vr:function(){return Et},qE:function(){return Le},Je:function(){return ge},wb:function(){return Ze},cq:function(){return Ge},tp:function(){return te}});var ze=Je(59301),Ct={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgRBU84TXi5VXqo24/syP5ce2xEg0gBDeAZWFijo79JnpLQxXSo7iICiIyD8qUfdxuQRRx24x5MvB95uBzfW1G+XFn4GoMMojQNOYWUK45b+jG9mW+PvFNAKEkqVYgI583VZcOB7WRrCqGwiaQovU1lAlaXKM/BMQNIGbN0FLGh0lySCVv0OP3aPOnKf2a2XCm+3ghuc1AvzOdwmLSwIwkQlBoxMtgZYCkvwQLafBYo0l2v6gBcCxRxQyifwM9PckRCniXIGbjo8wiI4bgnRRFul0XAZMABbaggVoytvo12vff7Qt/Rc8LqBm5jQndrBr3MFHOwyemaJbGaaAKzMp00zV2O+6VVnSTCPcYCNdrItEGAOcKxpVUQKLjPZ6VHVgEuf3Kf/rLk0Y4ViTpiAEUYKJaEgVDg2OTq1+j3r5w68FHi7TXFDU/El1Yr8VLudDM4IjUpLVWW2Mg0GgubybATNfN/0C5+eqjQ9oO0ngAmR0ZF5X2bKjLRZBUFgNE03AKhcPqk62wJsm+qjvyM4Aa0idFN1zcmvHraq90uvObihqej4YsH6nzCEyHwRB0WFZeZJ05xupsZSp6sty+2mXX2a/5rP0fT8MAHRZpmWph48J38zi6xUF1Vqft9KAg2BES6PmyChGGFTBVJ1kb/dq7XeeuTBs0deLLxXrLhHn2nP6+4s3Gk7Yl6Q5mpZMMjAGWjT0o+dgkR6BVnUzJSW2PpzhpHVqIygdPiEET3rzwiHP2QCSlrjUm1epE0el+R1/E6SmjDa2nGEat5Bu9089bC9O7/1moDT0GJkMv5eR6f1oVY7MRfjp2SiNgOO5pkFBpnkadmD/qflRrAtiUrBhJFdPnauJhI6SU6noXSyb2BmUZUqzYKEqSSSZ6SUSU34WagYVUsg9N27R7DtkONWrmRcf8HHK1Lc4EjrqHJn6ZdxBIsXkXU2MqVZqU/ja5ZU/MyWR5/Bps1/wfD2p+G7TUy1QziWRHfZgVXsREd3H1YtnoW+vl709nSjv7f0V4MwPnRaRUGlxSm8rG7N0pAMlim/CE4Jk+tRbTxmAoYK4Qit/Mhb9/a9eze9ILW/YQwv5jvmM/fcs720YMnMDeWStabtJrmVUVaqtsy3sRqgAm+96yH85qbb4DZqWNjfi57uHlRKJViWjSCM0Wr5aDRaqDebqDeaqLkRLFugp7OIQudMrFn+JvT3z8Ee8+dgVldxp+tkpUB42ZZgqLrEnyUq89MkODkunjVVoREFMao5G367een6lZ2fejEQXrbiBgbbn+qZUbyETcWs2KZ/Ynsoi6aMgEPjLVz6Xz/B1OjT2P8tyzB7Zm/i6IMQYRghDGk2ielkLaKIPiiM4PshGk0XzWYDU40a6m6Ickmi3N2Lt+y1B5a+eQ+sXLIQM7rLxi1QiR47I2l3xPizFFyitsQnmqhq8juNks1go2BrDRG4WwMv3veItT1TLwTvZYH7w0NP9y7sn3NPqSgXMiCYRuNz1MbE9eEnRnDhpVdh1fxu7L1iCYIwghcECKMYUfaMY4Rh8jogxJgQNQjP+CECpUK4H8bwPR8tgmzW0Ao8lEsW+vrn4sA1S7Fs2VKsXDIP1UrO3BymMD7PEwvj6wJjnjTTJFAEsUJOJj4y8iMUWIfE8bp1Kzs2virgtg23PtHTV7os9JI0wASFNPWg4vI54LGBMZz/je/i71YvQv/sWXA9D2EYIooiAzCOYoRxDM/z4Xo+PC+Az2MR31NpkU4fpKGUQKRkoiSCjCSiSCAKVPLddgON9hQsK0TXjA7su3YVDjt0Hdbu82ZzbQYgVZb6OJOW0GQjZW54XtACInTkHXjt5kXr9+r4zG4Hd/bZZ8uTTz1rY7liHxiHiR9h+sFAQHNxJMulCGed/x2jtHlv6ofruogILaZpEl6MIAiML2u1XQRhaIDxeKZGqoEAObgoTkBGkUp7bvRRfC0QRpZRkYqk6SjHcYDQryNXVNj/oLX4yIc/iMULZyVVSFr0GxVmlQWDg0xSFG5j372rV1fXr1wpdhldX7Kpbn2mtbqrs7jRkqLIC6VDzgIBwZUKwGXfuwFjA49g331WoO26CSwDh/BieK6HyakaPM9LTZbv0WQJL0r2o9ioMkhN2gDka0JkDhYpExW1FtCQEMKGlg6gbWhTxjPFaKBvZgUfP/njOHz9WrRS5QXG9AkvzeXoHxXrVw0n9puxEm8+dGVlaFeqe8ngBifiT1Y65aUha7+0+M7Sj0IeeOixYXznO1fiHQfvY1REs4wiBoIAcRQZkBOTk/B9P1GSCRBBoraQn/dTmDxOiATGLV+nioxjA49wINjAY4YtIaQFwX1hQYtkn/AtW+Okfzsdf/+OA9H2Uj+XdoiZltBebaGh2a9DrONYvfdtK8q/2L3gaurXxaI4WqUJJH2ETTPltVsaX73wvzG7IjGrrwce4RhoieKCMMDY+LiBZ2AwGJjAQKg0Sx6jCrWBmQAlTJo3vx+ZvIvOXLBEEAJCMPFNQrkBBwnNfcuGMFAFlIqRyxdw+he/gv1WL0PDTftzSicd41jBYaURa/SUHLTrjc+vX9mxy47JS1LcpoGB4qKOuZvzebFMpyUPT0BoTD023P0wfvWL67DfPsvhut4O80z8Woip+hQma41UWVQRDMwEXIQ43Se4OApSYEAYeAijwADSmp1RghPGt3Kb5MMJxEx9VJ2QNu8mYNlQUYj+hUtx9nnnolIpw83KrrSSMOCURmfOQejWr37bis6P7DbFba/ptZal77SlyPFy6WC5ZedBKYWLLrkKs6oOCvl8AoR+zWwjeL6L4dFRuJ5CEGpTsEeBQBD4iFWMWEWIwjpU6Ca+kNswNll+zCgECSkcKM02CQtS/nK0oxPDFDzRIYFSfYRIcFRfzgDktRz7z5/E8Scci7ar0g4xc0aePen0VaSAiLxHutVTe6/cRfn1khQ3OBEdU6xYv4oZbzjJopJISrX96aFtuOaH12D5ogXw/QABVZQFhCDC5NQ4xienEIQCbijh+RKTvXPhVYrIPTGAXLOOOJ4AwhAxzTKomTTEdHy1l/guc5voWTmXSPWFSVAwf7FRH83YuD5jxgQooS3HqE9Bomf2fJx9wcXo7KjAp3swLSZApjPeJUvDioLBkttYvHZtf/v5VPeSwD09Fp9Z7pDnEhzvD1MEqo2d2ut+swEPbr4fM3p7jIqYbhjlBKHxdcMjQ0ZtXmjDbSsMLFqJx048AWDWv/kvWPjNy2DXB5hXAHEIpZqwZNVct1INSFkyoJRyE1g6hjaFnp2IDyrxezqFaMClHQdjsjljsrzuk8/4Cg46ZF9zPQYc05k0qpYswFH+uCW9VYcsm7F994CbiL5fKlkf4lyC1nSswnRlWcBfftVP0RgZRqGQR2jKKd/4JZrpxOQExicmEIQWvDCHhu9gyz99FN76VQCt0AZmnnUxSg/cAUuGEKoJaBdSZjVpBCk7EnDahxRlKHCfjbccNPMis29mWSGMH6TqNKQxWStJVayccQvrjv4ATj7lRLTcpL1k2kym0GUJJlASvuvo6JADV3RtfsngbtXa3gsoBA3k3Rakb8GtiuiaUtk+xveUqRjoU9gmKuYFLr/yGkwMjSBH5xrQ4dNPBaYiGBwehOu24QUCXuhgSnTjsTPOQDxvRjqjrNB31tdRfvwB5O0cEI9BaA9SVhCpGqA56+NAa/oIC5AER2XlmfdDhT60FLBoxlYAof0UnjLukAo1arPyxhev2vcAnHbWOSaJNmWe6elRCAm4TukrS0XvOGivrt+9aHDba8GaQt56r4A8XADztYIVKgimXH6M7iDUebackzJLIm8LlIsSP/jRz/HU1ieQcywDLnHwAWq1BsbGR5M6lYrzJEZmLsHw5z8LlOm0AWwfQ885X0Ol/oypHRFPwpZF2FYXwngEgoBEHpEaNwpTyJsqROsCgupMtFeshLt8Oap/ug8d998CKQgvgICfRFppm/QEBAdg1oIlOOMrF6BcLsAPlCnHIjPvClQcgW4nhFThPxy8ovPXLwjugaGh8uxyzwXlvPOxsoPC9PUaZpYoLZobHtAMtAEhoVDKSXSUHdy+YSN+d9MGFKm4NK0gwKHhUTSaNZPL+ZEFzwXGVrwNk6edlkDjHMLmrei78DzkLR8W18qoEUiRgxR5xKoJ2+ox4EJVh5B9UDqPel8vWgccAW/Naug5Myk84OkJzDn3FOTbIwacFASXJMSC/XOZhxISHTP6ceZ5F6GzuxNekEb5IKlIOvISvU7AhPiog5ZVbtgluE0DurigHPx4RnfunXQXbNJm8wEZQAYCphDs99c9YMqDKbALtjJNyNGRQVx++dWwtDA5GHMyz/ewfXAYntdE4AfwjFkINHsXY+JzXwPmdptGXunKH6D79uuRzxVhqwBKDSFnzTTRNIrHIQXz+RAxTVF1obFqPcY/ehLQVU2CLG+AApwNGzHjR99GTk0Bqg0pvCQ9sRxIY6o5aGmjWOnCmed/A70zZ8INmCpxbGwoAF0Fgd5cEBVkfNj+Szvu2CW4rUPumTN6C+faCijwxqTTeNmXssV+bM1w9oiqm2wToELgt1AtSHQULVxzzU/w5/u2mKUMcRCg3W7hmeFhBF4rKaPY6WDGJDrQnrcUrdX7wRkcQuXe22HHU7CFgDT+zE/AKR9au7CsPkSqAWWiaieG3nkCvPe9G+DSGQrqwUdRuHUjylvvQS4ahaObELoBAVqFSCsJzto4Jkg4OQdn/sd/ord/Plw/MtAIj5Y1oywxq+DXrThae8CKzq3PC+6ux4dndRZ67uut2nM68sn6jWxtx/QvZebKiWKCq7WAmtm2IZSPGR0FjI9uxxVXfB+tqTokYgNu++AQVOSZ1EErunSWRBXTyYASkLIAbdGnMBhI6Lhu5COlA61Ck39JUTHRVAtO73ej0TMbEyeeBj1vjlGauP8RVL7/A+SDQdiowVF1SN02UVaa2fAkl2NU5TNnC5z+5QswY/5iuG4EN1KmhtWxwNwuBws7w+G85S1ftaBr8nnB3f1Y8/hqtfzDzhzQU0qm0v4WOLam6ecIjl2GWhuYaFF5IcamJtFZtNDX4WDzvZvxv9dej9BzoaIIo+Oj0FEAzSxfhyYSa50W5iAU20RNafIuwmol/k0yGPAGJJ0OZSJqHkqWEcU22vPegua/nAR0dxvVWZv+iI6fXomcrsNRDWhNU9UmAWZoVVYOgsFBOCjlLXzqjC+ia+6eaHsRmp5GMScxu8NCf4eF7qKIRBQ8mnfkz4PQ/83SuX/d2BSbHmne3Fktv72vDHQUEsWxGnjuIwPH3hf93FQbGKnTXDUeGhiCFDFmVHPoKlu49dYN+O1vb4alYozXpqBjggvNBHDyYIHDhJVQ+IiSYolFuXHqBQhGT+VCWiUTGaOYQIuIhYWQ34tLcBeugH/ch4DuXmBkEJXvXoB8ewwWXGiT77GWSBoA9G9cKBcLB92dFZx02umI8r0m9Vszv4QVsx10FYUZu7GuNHeuN1XkB9FN7Xbwmb0XVh/KuIhNWwOvs2Tn+6rCZAecITezU9PWc5i0Ml0JZKbfwsTHDU0Bky6wYcs20w7qrThGeaW8xJ0bN+HW2+5Eo9k0lQT9jWkEMVHl2dnhoNp4VLBc4uI4JrKRAcgEO7HDXFLQE64oGNz0k0pUkvUhCxZDrz4A4tEHkXvwLtgihNSJa0gEQNfAXp0NZTnGVSxeuADHHHcCpJXD+9f0YcUc2zRgn6sXnr9O3yeBlqeGJyfDE1cvKlxvkuvfP6512QF6y8kCFwYHllHZsgSezAwh7ZhyPIRHH/fMJDDWAn72x8dQb7XRVbZNoKgWLBRyAvfe/wBuuf0u1CYnIWVaQ9K5pRMrdNw8v5khM2rjZ2iYVGJWfxJunJbwBGjm0kx6ohj/zQpryyS82lKQpopgI0AnLodmaop9C4rVAwTWH3wgluy9Fh/cbxbWLSqa6idbJfpcS3PNupNkQnuioVrDk976I1eV7xW3b2lvL5eKczoLQKWQrIqk6rIeWwYuWw1kymwFTLaAgQlgsK5xxa1bUGu66ChYqOSpXMss4Ms5EtsGnsatGzahMTaWhutsLWsaug2s7F5nix7S/CKZ/08L+7RlZMqpDJ4hk62JShWbLj805Ve2II9zlCbJQqW7C/sftA4HrZiPUw/vRweD7S7A0a/XXW1SsLYSeGpIbxiZeOpIccufG8dVOys/5r2o5JNVQaw9WUrxhDRbk46k62/5moobbySKu397gK/9ZgsKFlDNSZQJzhHI2xKOJVDISTRbbfzpwS0YePxxxL73rJzNwNJZ62yG2dzydNlOUqVnK4PTdpKRWLqfLe/JPpO9nuZnTFRNyFj5Apbtswr5rpn4wpELcPiyqhHKrhTHsTJ4TLnCWNdgA3Dr/lHiuo2j1XJf7x2VvNiHTbZyBs9OA8U02zcTMjKJrsNTwEgT+NE9ow9864Ytt/dVZVDNW6LsSBT5XUsgZ7P7L5BzbDPX+qeHH8HAlr+YZQeJjSWpwk4P2pdhk05mcHfHa3YyzXKa9GD6mez9hOiOhHjHwjzzOzZ65s3B/D2XolSt7nnh+5a9a0mfZcZLkTz3MrJronVxoQ+ziPEWsL3GXDZ60NjIr/6sjynk8EsHEPRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",be=({dataSource:Mt=[],img:Lt,imgWidth:At=346,title:$t,sunTitle:cr,bannerExtraContent:mr})=>ze.createElement("div",{className:Ct.banner},ze.createElement("div",{className:Ct.content},ze.createElement("aside",null,ze.createElement("p",null,ze.createElement("b",null,$t),ze.createElement("span",null,cr)),Mt.length>0&&ze.createElement("div",{className:Ct.btns},Mt.map((Sr,Tr)=>ze.createElement("div",{key:Tr,onClick:Sr.click},Sr.name,Sr.sign?ze.createElement("img",{src:y,width:39}):null))),mr),Lt&&ze.createElement("img",{style:{marginTop:33,marginRight:38},src:Lt,width:At}))),x={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},z=Je(92310),ie=Je.n(z),oe=Je(89392),le=({dataSource:Mt=[],value:Lt,onChange:At,onTitleChange:$t,className:cr,title:mr,titleWidth:Sr=41,style:Tr={},fontColor:br="#6A7283",showCount:Rr})=>{const[Ur,Kr]=(0,ze.useState)(1),[sr,Bt]=(0,ze.useState)(!1),Wt=(0,ze.useRef)(null),Gr=(0,ze.useRef)(null);return(0,ze.useEffect)(()=>{var on;Mt.length!==0&&(((on=Wt==null?void 0:Wt.current)==null?void 0:on.clientHeight)>97?Kr(1):Kr(0)),Mt.length===0&&Kr(0),Bt(!1)},[Mt]),ze.createElement("div",{className:ie()(x.row,cr,"fadeIn","animated"),style:Tr},ze.createElement("div",{onClick:(0,oe.throttle)(()=>$t==null?void 0:$t(),2e3),style:{width:Sr,marginTop:sr?12:4},className:`${x.title} ${$t?"current":""}`},mr),ze.createElement("div",{className:sr?`${x.tagsWrap} ${x.tagsBorderWrap}`:x.tagsWrap},ze.createElement("div",{className:x.bar,ref:Gr,style:Ur>0?{height:Ur===1?97:"auto",overflow:Ur===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ze.createElement("div",{className:x.tag,ref:Wt},Mt==null?void 0:Mt.map(on=>ze.createElement("span",{onClick:()=>At(on.id),key:on.id,style:{color:br},className:Lt===on.id?x.active:""},ze.createElement("span",{title:on.name,className:x.name},on.name),!!Rr&&ze.createElement("span",{className:x.num},on.count))))),!!Ur&&ze.createElement(ze.Fragment,null,Ur===1?ze.createElement("div",{onClick:()=>{var on;Kr(2),((on=Wt==null?void 0:Wt.current)==null?void 0:on.clientHeight)>245?Bt(!0):Bt(!1)},className:x.action},"\u5C55\u5F00",ze.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ze.createElement("div",{onClick:()=>{Gr.current.scrollTop=0,Kr(1),Bt(!1)},className:x.action},"\u6536\u8D77",ze.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},E={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},te=({dataSource:Mt=[],value:Lt,onChange:At,className:$t,style:cr={}})=>ze.createElement("div",{style:cr,className:ie()(E.tabs,$t)},Mt.map(mr=>ze.createElement("span",{onClick:()=>At(mr.id),className:Lt===mr.id?E.active:"",key:mr.id},mr.name))),se={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},ue=Je(37568),me=({dataSource:Mt=[],value:Lt="",onChange:At,onInputChange:$t=()=>{},className:cr,style:mr={},placeholder:Sr,allowClear:Tr=!1})=>{var br;const[Rr,Ur]=(0,ze.useState)(""),[Kr,sr]=(0,ze.useState)("");(0,ze.useEffect)(()=>{var Gr;let on=Lt;(Gr=JSON.stringify(Lt))!=null&&Gr.includes("{")&&(Ur(Lt.id),on=Lt.value||"");try{sr(decodeURIComponent(on||""))}catch(Tt){sr(decodeURIComponent(on||""))}},[Lt]);const Bt=()=>{At(encodeURIComponent(Kr),Rr||null)},Wt=Gr=>{Gr!==Rr&&(Ur(Gr),At(encodeURIComponent(Kr),Gr))};return ze.createElement("div",{className:ie()(se.input,cr),style:mr},!!Mt.length&&ze.createElement("div",{className:se.dropdown},ze.createElement("div",{className:se.text},(br=Mt.find(Gr=>Gr.id===Rr))==null?void 0:br.name,ze.createElement("i",{className:"iconfont icon-zhankai4"}),ze.createElement("b",{className:se.b1}),ze.createElement("b",{className:se.b2})),ze.createElement("div",{className:se.menu},Mt.map((Gr,on)=>ze.createElement("div",{key:on,onClick:()=>Wt(Gr.id)},Gr.name)))),ze.createElement(ue.default,{onPressEnter:Bt,value:Kr,onChange:Gr=>{sr(Gr.target.value),$t(encodeURIComponent(Gr.target.value),Rr||null)},placeholder:Sr,variant:"borderless",allowClear:Tr,onClear:()=>At("",Rr||null)}),ze.createElement("i",{onClick:Bt,className:"iconfont icon-sousuo9 font14 current"}))},ve={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ge=({value:Mt,onChange:Lt,className:At,total:$t,pageSize:cr,style:mr={}})=>{const Sr=Mt<2,Tr=Mt>=Math.ceil($t/cr);return $t<=cr?ze.createElement(ze.Fragment,null):ze.createElement("div",{className:ie()(ve.quickPager,At),style:mr},ze.createElement("div",{onClick:()=>{Sr||Lt(Mt-1,"prev")},className:Sr?ve.disabled:""},"\u4E0A\u4E00\u9875"),ze.createElement("div",{onClick:()=>{Tr||Lt(Mt+1,"next")},className:Tr?ve.disabled:""},"\u4E0B\u4E00\u9875"))},xe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ce=Je(29787),je=Je(25399),Ee=Je(58018),ce=Je(26869),ye=Je(31735),we=Je(96908),De=Je(57177),Re=Je(81378),ke=Je(59243),Ze=({className:Mt,dataSource:Lt=[],col:At=4,right:$t,bottom:cr=23,precision:mr=0,wrapWidth:Sr=1200,trackEventItems:Tr,loading:br})=>{const Rr=Math.floor((Sr-(At-1)*$t)/At);return ze.createElement(Ce.Z,{spinning:br},ze.createElement("div",{className:ie()(xe.list,Mt)},!!Lt.length&&Lt.map((Ur,Kr)=>{const{name:sr,id:Bt,identifier:Wt,power:Gr,cover_image_id:on,pic:Tt}=Ur;return ze.createElement("div",{className:xe.wrap,key:Bt,style:{width:Rr,marginRight:(1+Kr)%At===0?0:$t+mr,marginBottom:cr}},ze.createElement("a",{target:"_blank",href:`/shixuns/${Wt}/challenges`,className:xe.li,onClick:_t=>{_t.preventDefault(),Tr&&(0,ye.L9)([Tr]),Gr&&(0,ye.xg)(`/shixuns/${Wt}/challenges`)}},ze.createElement("div",{className:xe.img},ze.createElement("img",{className:xe.cover,src:`${Tt}`}),Ur.is_jupyter&&ze.createElement("img",{className:xe.sign,src:we}),Ur.is_jupyter_lab&&ze.createElement("img",{className:xe.sign,src:De}),Ur.is_unity_3d&&ze.createElement("img",{className:xe.sign,src:Re})),ze.createElement("div",{className:xe.name},ze.createElement(je.Z,{title:sr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ze.createElement("span",{className:xe.e},sr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ze.createElement("div",{className:xe.tags},ze.createElement(je.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ze.createElement("span",null,Ur.challenges_count))),!!Ur.myshixuns_count&&ze.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ze.createElement("span",null,ze.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ze.createElement("span",null,Ur.myshixuns_count))),ze.createElement(je.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ze.createElement("span",null,ze.createElement("span",null,Ur.level))),ze.createElement("div",{className:xe.rate},ze.createElement(Ee.Z,{allowHalf:!0,disabled:!0,defaultValue:Ur.score_info}),ze.createElement("span",null,"\xA0",Ur.score_info?`${Ur.score_info}\u5206`:"5\u5206")))),!Gr&&ze.createElement("div",{className:xe.lockWrap},ze.createElement("img",{src:`${ce.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ze.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Lt.length&&ze.createElement(ke.Z,null)))},Ve=Je(87303),Qe={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRxzttof45awCLRYo9vpuZE7YGdyG2Q0R5UvQBWxYwKwBn8pWPEPg7IlhdiKDYnrMIXAz6WDrh/mu3bXcNcEC5P7wIbrdQzH9eQCZF7+2WkrsCWPZcD/TgRbZsF1zTmrBrBX5HN3tyxwD7YTOVRy8KVL0Bd65Vmo667q2dStcdASx6rofyjouqUK/B9dsXFUohcksnenLbAMtemy1UfnrRiLE84NZ6IdqRirtvbdfi1TbA2Xz5r5j5j5Z5ehe705RMf51KRP64ncVoC2BxHLDH9/batlz2gJPnFc7PArNVgvjViABH6Zhm/ZErQoxkH7AmxYhHlsX71s7aWr9XbNek6M52HBQtA6xdflx5pldCVaEMHDuvcK5A8AjI5oB8EShXgEoZKFeBSgVQCohEgKjr/4z3AUP9gCIg7jLWpBn9fa9lsMXa5d7UqquxJYCFYrOFyk964c8V4F44oVCsEs5lgfNZIJcHPMFIk27wU0sbof/V0UcyBgz2AyMDQDQCbBzwXrtAEz2airu/3ErQQEsA5wqVT3qe93WbPKfqAS+eUsiWCWdmgJPTQLVaB2gjw6oB3U9B0azbsGz5XV6KsWFg01pAzGqXjniIua89ilZK3ZWMu99ohklTgP0YqsqLNlnz+SJh7ymF8xkf2JKEkFu+BOx1Y8CGNcBAH2P9gGe5h5VujqZTCfeKZjFeTQHO5EpfA/ApW9N5ZYYweU5h6jhwPlfHcpux5Ha/BxCLAldfBqSijMtHX2sg4x/SyejvLIXNkgAHoa07bEnNe48rnCkQDr8CFBokehh2q1ntIizYsOVG3y/g6AH7dl3gykuAvj4gAkahSihUCCVP9nryJfNgj1dguIrQ5wKJCCMZZaSjjOGEh6jV9LbuSUb2YAW+ZamQ3CUBzubLT9mKW95zTOFkhnDoqC8NL8clL0oqSYgnCSoCVIM92580axAjji+BuyqQ4RgQOq8wUKrK/0jv83Ilo8BQzMO6VBUDseWYQfM+JO46lYi8cbE7FwVYZxxUvf9u3kXzOyZnCIfPKuw/FAhSgcxTz3GbyFQLpOh6Ics877qE9AAQiZEGSyJUI6JGOT5VxlxocEWvdgTcAGQBUtQwWRTDTQTkYhXIlQnZElD2fMBjDmMizdjYX0VkhSlbOepXF/M6LQpwJl/ebiOd5FyR8PxxhQNHgGKP8+9EL04PKU2tAr5LjIQLJB0DJmswDbACpuP41KuBFYDlEwBsKFdz72ClZqvA2SJpI4yALc+PJ6rYPCDSevOXvSd3EG1PJyK/1KjthgBLIhg8frjbwYgq9MRhB5PHgXOZha01k5nq9d4FalEgowk4/UMKTp/fR59iJBX0nqkBo8ASpsGVPdYHVD7yuwY8uLcGcrAyNZCljbopZErAqQKhWPGB3pD2cEl/RUyK3S5d+88renujhLeGI8nmyv9rI8vv+aMKh6cJk8eC8Tbjye1Oi4BEkpDo91lxVDFSjghS/lVjuQZgMXc6DDdgxRrYEAWbl0GDHwC6FMBmuLkycKJAKFUJMQe4YriCwdjy6t6S1ZhKRn6l0TY37386Pxd4st21rr9fWNnTkw72HeyNnit7Z/+YAsn+CUbaBWJ68wzADbFZQ8GaJSuex6INy9ZCVmDvNkBLW2Y/DrPpxdbmTBGYLhCYCBvSVWzury4rNSvgTfX5yQsoOJMr/T2AJXWrVsDfeUThldOEoydbubu9e9wIYWBUFtJnxwPOHPuct28KyHWs1yHWVCsgCgULwAZkDXBA3ealaAdgmYWoXlNZ0vtzfx9wzUhZ97NM19fSyeinw33NA1jKJmTzlePdZtaL40Cod8+BQGq2OLtIFBgcVVrlSTiMtDPXeHgy+ndDgYFkrPfZEBUb9cgA7H8X7M/B3m0o17QXNLvkjGRsx/OkJW+R2q8erWjW3fuLZlIJdyJcTmIewPl85QNV9r7X7UD2nVTYd4wweXTplpoZNuqf7osB6WEFD4xBw5IbdFG/b8rfMlENoKZQn01rISvYg42qNPcSzLFneRH0FWL/razR6QLh7KxvNLl2tLwsUrZD6oOJhHu3Gd88gLP5skRH3tnK4Je6Z/tBBwenGkvOnbYtHqL+Nb5DeFgMFK2wPSNBB9gYdu2zaNZg14QsvZfPl6r1ixH+NFCfms3nfBk4lSdEXcK1Y2X0tTLuZo0u8T0R3ZtKRN67AGApVZQrVI52W81GDANPHnGw64XA5RcaTODsWbSswGJCthguhsYJHjNGWwXXEJ0BSChYfjdsGKzB05Qb/M/swWGVSb8MwbMycNNGeG9uhse5EnC6qLShRUAWga5Xl1T/ScbddabEU42CbbkEX55W2DtFONAg87WZltToBZAFHV4rbBkYiDASLSzOPLYUAtgA6APFvkFD2HQAvBikjSQt1C036BdAKDt4EbSEbQwjIQNIM8BEXz5fJu3Zunqkt7basCuxthbZfOm7zPjNZgNt9v3OSYWXpgjHpxf655sB3Kjt0XEhLyDpMvrrBZVGqmadXlDbPo3QFLJUacOJYuhce+NXDu4z0nRY0hbDiTgu6oWxZmsi30sXIniJk0NUKDGK9Ooiwr+kEtGPhsQGCZEpH7NRQc7sv9PnlgzA0HNrZslKpgnxftKq0FCHZkAjYEl/AkxNWBKngo4aYWxdR7h8Qr5f3AJVKDF2H/FNnZHASSHgmz26FbCkv6kcoQrCVaMVpHsUiCAV+VLJyNoawEHtxz2tDLLZPT894OClI37oTTeXcoHRCaUdBbLvLrH2S3YzT481+CrA84CKJ2oc49feRHA1T176+vlBT8eGxSJ+PJgxc7ZjmRQ9+WiOEHMJ142WemYIibqRqyVYXs8qkyv9HoCvNptgK98/+rKD3S8CxVIrdy9+z8ioguoDBiOMePO1X9hQ6JkwFcuNQkns+UaJSpnx4V8iOC28QY+/6KFSBeIxaJVHuxoDo0k7sz1bIpwrETalq5hI9oxVfzadjP6dD3C+/B9gfn87g1zs3u2HHDz9/CIGjmY8OWhUjBlD4wpR8lWijq6wcyD4XW/ZQTBfqeJHbM5WGB9/W2sA/2yvp6k+0Qckoj6rNlaxdsYoe/8reV/6u3GsBKcdFtBqR0T/kU5EPqABzuZLLzPjklafXeq+n73s4JkXgFIXFDw2IdIMMBbh1vTdRgOqM0roNQwiN8TLpcEtC6dhfPK25gCLivbALtZUm4wDcQFYjCQdbh/ioDg1q3TwwIaUfSomwqFUInqpVOiK5QqVnK16yz854OCFg/LSLBSi6nFopBaJnXlkgtBHjCEb9WVDDgPDmiVao6zBBUR4+sztPsAvHmU89KwvOMn+KuDJfhuLsLZ7y/8kPFc+ArDEZndCwWYdROAShnLjmjKUZSqWetfJuJuk7Cxfx5XyszaoV9rQQtYkMD3TWYsjYwQ3ThgV6u1k7w11G1aRTJy1sEfJnBAOU5DPLOOzd/gA//wA49+3+/ZoAU8C9hIxRqoPSCeAlAG3zwc+2uEebIaYKQPTswqbByoYj9t3L5IbuZ5s2Z/NoB9/WWH/FOHY6QZ6cIM45nAQnbQxsVHpSIzRaGcvSPgpAViANTZvEazEEWDYswB8+QTjnTdKGA7hbJbx7YeBM1mgT8CNCqjsAxuHTpOR/Ve+kxfA2LE7JT6zF8vLcs2wfeOH2KUpVyh/3vP4i90vp9/CnuMKe15pbMlqxqJF700PkdYPJSKjkyvs9dEB8SEjhuy9IgUbAeuWrcC1m+aziVKF8cOngJdPCKA8n3KjQFxYdjRwMYZiuToZqzxzukjIVwnXj5T1S2PzUoq+QNl86dvM+JithjNFwtOTCk8+17zFeqF6fK2CijLWRHyvTzeX5gwBBUs7QrkSzSl6rLDW224A1gws3snOA4xnXvapt541a0NHKOynm3FKQN+JosLGlIeJpKR22LuI8B3K5sr3M/id9pr19+Fn9/sJZK3mFkn/Gy5ROjpj1IJwpfdcAVhin4U1e6ISARMDwLbrhAqbv0FHzzCeeInR5wCpuL/v9sneKy9gyG/czdrJMEVlSrmErcN2UzwI9GPK5MuP2U7mfmZS4YVX/Bjo8LWUGizS85p1hGSdE7+txTP6bqAOCRVrlajqS83XbwbecJnOs2252fwsQ6hZ2pFMRtl/ayG3gamy5cYWufFkUYLwCTeNWbZsEe2gbK70LAPXdTvI8PPTeYKA/OTu4L9GQFzCXzgwAKSGFIYc7spnKtgZdUgAFvelsOZrNwE3X946sOH5VD3Gjn2sbdkxAdmCgBVuX9yJ58oKVw1XkLSY50zAc7IHWzNyhAf96AEH+yehpelWrjVjhGiSMBZlcR51fIUBFoFKqFcMGrddD1w63hnAMpgn93uQUCRRmbQU3aWKFJ5gvgKcLilc2l/FSMye0UOMHZTJlU/bzBw0Az+dIzx3TGHHLn8PbHZt2KSgHMZ4N+qRsVYFrFnSUWXfFYPGO28ELptYCHClyrjnCeCJF32Hxi1XAnfcLFLy/Hu37w0ADqxYhoprHqpmE1zie9HLjxUUxpNVLWzZu2iasvnyLDN3s6yLjuexgw4OHAUOmbjoJUa++RKlY5bFc9TxFQZY2HPZ/+RngXe/Hrh87UKAv79DTJDzA99Fwn7PG+ff+8huD/kS0C/6cNwXtsRUaSNiUnawyRxhKAZcNmBPHyaiUk8Bzs4SnplSePw5P5uwfgsOC12XvE7BdRgjXfDnmr3ZWKvEHBkAfMfrgS3rFgL8Z//M+gUQsIxrUSTmP//Q/Hsf2OXp+/qTvtokurCoSyaeuuOXMnjwlRwhFSVcMWRPktYA94pFmwnvO6EgyWdPPOdLtDUvf92KXHKZ7z3qxLEvL4oSyVli8uTEQckOrPgClrxYuSLjzpsJV6xfCPBf/AvrPVrAMi+gWKw+5/thatf9z3g4XwAGk0DaOBsCn7D2NNZnQrSJ+NG8H30pgpa9S7Po3ghZ4UE+dUjh+DnCzr3zSy6E77lsi9KpJ+0ArM2QoRIe2lsURGr4rkDfW5QtAu97E+HKBgDf97RIyHMAS5ti4br9pvkA3/e0h5k8MBAALGZM0Yd1THUQ01XLoOhAljteJN3ONRbjtbSQ1Qs1qf4NFIqS/fjISWDfoSDZuq6myqVbFGLi/zXSQJ3tPaxpSfvakCFxVAFXEEuV1nsFYDFJGndghZErAO+/hXDVhsZC1oPPAruP+C/LdZuBt1+3UMj6wROM0xnGQMKn4Hk26SDHycRxmQS2dijxaIEQUaQzIWxdWk2ylSbabFCirkim4akZ4NmXfBDCe/DlW5SOvdJOBpNxv0ijJiPfUKuxVA0lgY0jvgAkL4BsCcb+fOm4sNcOSCsYw6GTrL1P2gccfKTfmTxr27b8XwcAhCxcbdhTMCUsOgJcPWSRRRM9JqbKHzH49mYA2fheFuSpIw7OFYCn9wRhPQHKW7YqXdhsIsicr0VfBB2HKdgYMgyI8vKsHwLeek17Viobc2Jm7J1iZIq+AaRmp24zlMcXsoArLAJMoPutOxtaWbTnjymcLRB27YcOr5Vr6xWkY5Q3JedaMKCaMknyjfEQyXeyzwqFFivAnW/ojkJbGfdi92SLjJ0HWbsXta06FAjQChXLnCbzhOE+xusG7TkctLPBtruw1YU6lSHsP62QLQC7DwJrxhWqirFloI5FByjXtuTQPlsTpMrAb79t+anXzFWo+Me7WEd6yN4sTgmTEtMKwBL8d7ygsDZZxXqLhg7tLrTt8G8VYHPfoWmF4znC0TMKmSrwun5PmwH9sjfBj9CebGpVihnSWKlyReBTv9KhA7ndAS9y/z1PeugPoj5MOE+rEZe5ih/ZIUaOIYuJ49rhbztkp5P1kr10+wEXB2cIG/s9DPbNVa+rUYnZi4N4ZpGShTVLPctMAfjM7Z0BfOgE4+cHgfN5YP0ocOtVrbkS6+f5b9s9DKUCCTtg1SbdpdmazJT8tJZrR+xmIOqQHdtBd80ms9j3UtTkP3dHMBpnbOpnQ8C1MoXmOSMxi+QqUq2w+Ewe+My72gf4wV2Me570JV/tpPB8gH7/DmDNYHsS93d/4gNcs3QFOnIrtmrRgUWWuGmNPQm6FnQnC7ccxo5WgL/72QgqHuPGCV4ArBG05Kdmz2UgN+sDfDYL/O672wN4aprxt/fMpaEIECacdt0w8Ad3tgfwPz3kYbQfWk/WwQFBWG0zgEWNFwl6oA/YMmgT4CBsVhY+ky/fDebfaAWEXt7zyAEHR2YUbpjwEHfnDCI1cg4iNLQLMGDPYj48m2kfYKHeR3b7QpGoNgZg8TzJnv4XH5bvWgf5Hx/0MNLvmzLDADdzRuSrUqlH6XoeaxIWPUnhwHebqSvdvABTM8CDByLYMMDYPNA4jNQYLjQQs5J240dBtsuif/A4Y9+UgMFatRGAhTMUSqT39N/eBmwYaR3gbz7oYTQNDKR8Z4REf7TibZJojlmPcMOo9bzhudQVm8ln3QAsz37vWVez5zdvDAEc+tUALM53EbBmAoA//c72WPR9TzFePsma2kR/FR1cABbqPZ8nfPhWYP1wewCPpIHBNgAWs6qwZynWstWigUPWcV7ymd6HLaWPdgvwzikHe04oXD/uYbjBIXnzKLgInAsAvqtNNen+ZxiTp1mrNkJtYkcWwU24grT5628mrG0DYM2iDcChPXgpFi2hOjNlhcstq0cL0kcDQctKAni3AIv/9vu7I7rK683rF7LpBQAXgDMZ4BPvaI+CJc/o2FnW3iHRW8UTJHu7ULAIbe+5mTAx1DoFf+thD8MCcEjIMtV7Gq2JCXqX6gLXj5XbCgRstsYNE8BtlXBo1nkr3+84pPDSGQc3rfMwUkfFJq9XVCRh0YaCP/QWQryFUFjTv0RonJzxU1I0BSs/+kMoeCbruwvHW1SVJL/p7sdYAyxStE5Oa6ImCfWeLYlwVcF4wm7aSsMSDraKsLQCYLN7ciXgnr0RXQfrzZt4XtEWDXCdFC37sGQoXLe5dYr72R4PJ87DZ9GBkGUo+FweeMd1tGRgfHgOzx1mPH+E9f4rAGtX4hIAy94r3iOXCNePlawmni1ahMVn03bKKDUDsJXv/++4g+eOKlw55mHT4NwT2oMU6MEiaIkeLFQsku8Nl0jUhqScNAf68X0eTmXmwm8MixbOIJXof/kawmj/0u3kZhn7p4Bdh31hTbPn4IURgBfLPJR0lUyZsGWwiuG4RdXIP1upcRklWcKVtkuHgfc8xg/3RFGsspaoE0G2gzZ0BA59baoUVSnvmxoF5GyBtIVL9nJxRsglViqxb+uEMskUjPvClXwkPEe8P1pNEs9UYB0TKpb2MtKelA4O0l5M6SVxKMjeLWqWBOJJW8LujbNBUk8bxWsVKuJYIKTlqAGL0Rtm7ZYshGarlGErFNrKPScyhAdecrXA9cYNfhlgk60gYMii66C6or93SuSGRD4KSKUKaVYuFK9LFjoCJOv9Viq362zBIM9Xx2OJqTJg/aYt+SltSx+Vqm9OlMu0pdNLg7YkXlpKOwi7X6x+R1lYc9Yv43PDSFn7j+1eTUoZSme2ipHaGviuowq7TzgYTTJuWucLI8Yebfbi2QBUne8rlBscpCXgGoAFZDE8SByVpj5x64XSQOV7aVf2YT8x3P+ISVTUJ+nLpLqatvTBXAElS1smrSVc+9Ksg6mwU2afNY9YZs26H6X+Ph13PxNe+wWbjK1ywrYAFl/rAy9FcSoHbB5kbBllDZpJKtPpoKGUUJGEBSShNh35EQiopui3T30+0Pr0tKDAmc4hDgQ4kw1hgJW/dX9BrrGpVGteGOEAus0glMcUSgvXddHFSSukzZGXWXTqh9e5pXLCWtiyVBDcFsiywD960UVmlnDNuIe16YCKg2o5RjfWe7MAEQBsYrfmFSM1Vd5DZYRN8W8twAVCnGlT/5T4MX34g++gNtXwxN+rSz0EFfG0V6pW8HRu9lKUVFyCUuXuqhH75Rq0nNFqQXDNpi2V9LcFsLQjqtOPX3Qhhca3jjHWpX1nhA7eC1ixYd36b3koFCigIx39lai5B8Phrvr2IGHcsHbNBYLgwHDYkC6FGDows1Yhvu5QD2nTgCv7vtTFsl2Lo7bG7ZT01yBbOpTDJsiZWeDhgxEtSIlDQth1GBQTqFeLugx1HsSm+1uVsOPQWQ4B7r7TKngpwjU9arFhcxWF5yrBm1LFQQeGLcvzx/KEfIV0wtq1wz0sDE70WDoReUujtV5U0bN5rI5NkCUT75EDEQjYw3HGNeNz0nWAT8jP2KDnYMZm4o1ipswLop9eysgUqsUVbsdUs9NV36OMa0Z7w5bN7Do6VkfvxRYPxrIJsuzJ2w9HcCLrn4N07bicUGazh87bkvpXx3JySAhhPCkCVaV3bNk3bHR2MJZM0fbRdp0vW+Mnxeu055QDqTa1cRDYNMAd17TsdmyyX5+UksEl2eMJW4aqGLPpwG/EjLo92k7vxZYPp+x2Ieufl1NOdr7i4lxRLEuMSwcYo6mFZxzZ7te0J3vtzKwvTMk5iAMxxpXDlR4YMRrOoLvDKX3J0v7xsrYXW3Rl8T7tOen4xUIjrIWwsYSd/N1G4xXVSYA9UyRUPKkeC1w+WMVo74qL1g3D0vGy0upqciUu9XJIwN6+0w4OTit9rI2rWLsb1yQZ6b7OSxKbPkVHlvMLZ2ZJq23i55LDpzcNVrE26fV0r62ft7UDogMq7tkR77apWdqrMuPwjMLhGQdydqI2TijW8dZyVKzYjyWoT2zBi1URFtYrOrcOrq+I98ePwxbmLwYNOdlsfdrDaHx5D7/S62X7iHdf4OKNVa4804t6Hr0A2bQpOvPRjIOTOYWzRd/VOFel3a9ma8yYNcNJrQSir0zJ/RHJXY5D25BFOhYz5cpcNO2Qe1MiQQ1OxVg4ouaO09AzuWLlDvb4XlsHRi/3AklJ4POzCjkpyD0rjgmlvUQV5uBsYXHC+6BHHKF01npsqo+RtFCcrdv5yoHQpOjOZMy9r9W22gJYGs3my3/FzH/UagcX77O3AkT016lE5I/babFtgJnZzRYqP7VdHa+dQV+Q9xLtSMXdtxJRW+kPbQMc7MfrPZR3MGPjBbnYyzxpIkwqRG5JJGiq3a47Alg68YPlK4++2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Ie=Je(59301),it=({className:Mt,dataSource:Lt=[],col:At=4,right:$t,bottom:cr=23,precision:mr=0,wrapWidth:Sr=1200,trackEventItems:Tr,loading:br,handleVery:Rr=()=>!0})=>{const Ur=Math.floor((Sr-(At-1)*$t)/At);return Ie.createElement(Ce.Z,{spinning:br},Ie.createElement("div",{className:ie()(Qe.list,Mt)},!!Lt.length&&Lt.map((Kr,sr)=>{const{subject_identifier:Bt,id:Wt,identifier:Gr,power:on}=Kr,Tt=Kr.is_public!=0&&Kr.is_public;return Ie.createElement("div",{className:Qe.wrap,key:Wt,style:{width:Ur,marginRight:(1+sr)%At===0?0:$t+mr,marginBottom:cr}},Ie.createElement("a",{className:Qe.li,onClick:_t=>{_t.preventDefault(),Rr(Kr==null?void 0:Kr.first_category_url)&&(Tr&&(0,ye.L9)([Tr]),(0,ye.xg)(Kr.first_category_url))}},Ie.createElement("div",{className:Qe.top},Ie.createElement(je.Z,{title:Kr.name},Ie.createElement("div",{className:Qe.name},Kr.name)),Ie.createElement("img",{className:Qe.img,src:ce.Z.IMG_SERVER+"/images/"+Kr.avatar_url}),Ie.createElement("div",{className:Qe.text,title:Kr.creator},Kr.creator),Bt&&Ie.createElement("div",{className:Qe.btns},Ie.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ie.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Tt&&Ie.createElement("div",{className:Qe.sign},"\u516C\u5F00")),Ie.createElement("div",{className:Qe.bottom},Kr.visits>0&&Ie.createElement(je.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-liulanyan"}),Ie.createElement("span",null,Kr.visits))),Kr.course_members_count>0&&Ie.createElement(je.Z,{title:"\u6210\u5458",placement:"bottom"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-chengyuan"}),Kr.course_members_count)),Kr.tasks_count>0&&Ie.createElement(je.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ie.createElement("span",null,Ie.createElement("i",{className:"iconfont icon-zuoye"}),Kr.tasks_count)),Kr.is_end?Ie.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ie.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Kr.is_accessible&&Ie.createElement("div",{className:Qe.lockWrap},Ie.createElement("img",{src:`${ce.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ie.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Lt.length&&Ie.createElement(ke.Z,null)))},at={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},nt=Je(58106),et=({dataSource:Mt=[],value:Lt,onChange:At,className:$t,style:cr={},tabBarExtraContent:mr})=>ze.createElement("div",{className:ie()(at.tabs,$t),style:cr},ze.createElement("div",{className:at.tabsWrap},Mt.map((Sr,Tr)=>!(Sr!=null&&Sr.hide)&&ze.createElement("aside",{className:at.tab,onClick:()=>{At(Sr.id),Sr.link&&nt.history.push(Sr.link)},key:Tr},ze.createElement("div",{className:Lt===Sr.id?at.active:""},Sr.name),(Sr==null?void 0:Sr.resetCount)==null&&(Sr==null?void 0:Sr.total)!==void 0&&ze.createElement("span",null,"\uFF08",Sr==null?void 0:Sr.total,"\uFF09"),(Sr==null?void 0:Sr.resetCount)!==void 0&&(Sr==null?void 0:Sr.total)!==void 0&&ze.createElement(je.Z,{title:(Sr==null?void 0:Sr.tip)!=null?Sr==null?void 0:Sr.tip:""},ze.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ze.createElement("span",{style:{color:"#000"}},Sr==null?void 0:Sr.resetCount),"/",ze.createElement("span",null,Sr==null?void 0:Sr.total),"\uFF09"))))),ze.createElement("div",{className:at.tabBar},mr)),dt=({className:Mt,style:Lt={},children:At})=>ze.createElement("div",{className:ie()(Mt),style:Lt},At),tt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},lt=Je(75727),st=Je(93041);const He=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ge=({sortValue:Mt,dropValue:Lt,className:At,onSort:$t,onDrop:cr,dataSource:mr=He})=>{var Sr;return ze.createElement("div",{className:ie()(tt.orderWrap,At)},ze.createElement(lt.Z,{dropdownRender:()=>ze.createElement(st.default,null,mr.map((Tr,br)=>ze.createElement(st.default.Item,{key:br,onClick:()=>cr(Tr.id)},Tr.name)))},ze.createElement("span",{className:tt.orderTextWrap},(Sr=mr.find(Tr=>Lt===Tr.id))==null?void 0:Sr.name)),ze.createElement("span",{className:tt.orderIconWrap},ze.createElement("span",{className:tt.orderAsc},ze.createElement("i",{className:Mt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-up font12 ${tt.cursorPointer}`,onClick:()=>$t(Mt==="asc"?"desc":"asc")})),ze.createElement("span",{className:tt.orderDesc},ze.createElement("i",{className:Mt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer} ${tt.active}`:`iconfont icon-sanjiaoxing-down font12 ${tt.cursorPointer}`,onClick:()=>$t(Mt==="asc"?"desc":"asc")}))))},Me={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ke=Je(7939),ct=Object.defineProperty,pt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Pe=(Mt,Lt,At)=>Lt in Mt?ct(Mt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Mt[Lt]=At,Ue=(Mt,Lt)=>{for(var At in Lt||(Lt={}))rt.call(Lt,At)&&Pe(Mt,At,Lt[At]);if(pt)for(var At of pt(Lt))Ae.call(Lt,At)&&Pe(Mt,At,Lt[At]);return Mt},ot=(Mt,Lt)=>{var At={};for(var $t in Mt)rt.call(Mt,$t)&&Lt.indexOf($t)<0&&(At[$t]=Mt[$t]);if(Mt!=null&&pt)for(var $t of pt(Mt))Lt.indexOf($t)<0&&Ae.call(Mt,$t)&&(At[$t]=Mt[$t]);return At},Oe=(Mt,Lt,At)=>new Promise(($t,cr)=>{var mr=br=>{try{Tr(At.next(br))}catch(Rr){cr(Rr)}},Sr=br=>{try{Tr(At.throw(br))}catch(Rr){cr(Rr)}},Tr=br=>br.done?$t(br.value):Promise.resolve(br.value).then(mr,Sr);Tr((At=At.apply(Mt,Lt)).next())}),pe=Mt=>{var Lt=Mt,{className:At,style:$t,children:cr,loading:mr=!1,openLoading:Sr,onClick:Tr=()=>{},size:br="middle",shape:Rr="round"}=Lt,Ur=ot(Lt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Kr,sr]=(0,ze.useState)(!1);return ze.createElement(Ke.ZP,Ue({onClick:(0,oe.throttle)(Bt=>Oe(void 0,null,function*(){Sr&&sr(!0);try{yield Tr(Bt)}catch(Wt){console.log("error",Wt)}Sr&&sr(!1)}),2e3,{leading:!0,trailing:!1}),className:ie()(Me.btn,Me[`${br}-${Rr}`],At),style:$t,size:br,shape:Rr,loading:Kr||mr},Ur),cr)},Be={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Le=({className:Mt,style:Lt,children:At=null,onClick:$t,title:cr})=>ze.createElement("div",{className:ie()(Be.head,Mt),style:Lt},ze.createElement("span",{className:"primary-hover",onClick:$t},ze.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ze.createElement("b",{title:cr},cr),ze.createElement("div",{className:Be.node},At)),mt={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},wt=({confirmShow:Mt=!0,confirmTitle:Lt,confirmClick:At,cancelShow:$t=!0,cancelTitle:cr,cancelClick:mr,className:Sr,style:Tr,confirmLoading:br=!1})=>ze.createElement("div",{className:ie()(mt.btns,Sr),style:Tr},Mt&&ze.createElement(Ke.ZP,{loading:br,onClick:At,type:"primary",className:mt.confirm},Lt),$t&&ze.createElement(Ke.ZP,{onClick:mr,className:mt.cancel},cr)),bt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Et=({className:Mt,style:Lt={},LeftContent:At,children:$t,RightContent:cr})=>ze.createElement("div",{className:ie()(bt.fixedBottom,Mt),style:Lt},ze.createElement("div",{className:bt.wrap},ze.createElement("div",{className:bt.left},At),ze.createElement("div",{className:bt.center},$t),ze.createElement("div",{className:bt.right},cr))),kt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},It=({className:Mt,style:Lt={},dataSource:At=[]})=>ze.createElement("div",{className:ie()(kt.crumbs,Mt),style:Lt},At.map(($t,cr)=>cr<At.length-1?ze.createElement(ze.Fragment,{key:cr},$t.path||$t.onClick?ze.createElement("span",{className:kt.hover,onClick:$t!=null&&$t.onClick?$t.onClick:()=>nt.history.push($t.path)},$t.name):ze.createElement("span",null,$t.name),ze.createElement("span",null,"\xA0",">","\xA0")):ze.createElement("span",{key:cr,style:{color:"#5F6368"}},$t.name))),vr=Je(11938),Kt=Object.defineProperty,Pr=Object.defineProperties,qt=Object.getOwnPropertyDescriptors,zr=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Xr=Object.prototype.propertyIsEnumerable,pn=(Mt,Lt,At)=>Lt in Mt?Kt(Mt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Mt[Lt]=At,nn=(Mt,Lt)=>{for(var At in Lt||(Lt={}))Vr.call(Lt,At)&&pn(Mt,At,Lt[At]);if(zr)for(var At of zr(Lt))Xr.call(Lt,At)&&pn(Mt,At,Lt[At]);return Mt},Mr=(Mt,Lt)=>Pr(Mt,qt(Lt)),fn=(Mt,Lt)=>{var At={};for(var $t in Mt)Vr.call(Mt,$t)&&Lt.indexOf($t)<0&&(At[$t]=Mt[$t]);if(Mt!=null&&zr)for(var $t of zr(Mt))Lt.indexOf($t)<0&&Xr.call(Mt,$t)&&(At[$t]=Mt[$t]);return At};const{Countdown:dn}=vr.default;var Ir=Mt=>{var Lt=Mt,{onChange:At}=Lt,$t=fn(Lt,["onChange"]);const[cr,mr]=(0,ze.useState)(null);(0,ze.useEffect)(()=>{typeof cr=="number"&&cr>=0&&At(cr)},[cr]);const Sr=Tr=>{const br=Math.floor(Tr/1e3);mr(br)};return ze.createElement(dn,Mr(nn({},$t),{onChange:Sr}))}},61904:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return Ct}});var ze=Je(59301);function Ct(y,Te){const be=(0,ze.useRef)();(0,ze.useEffect)(()=>{be.current=y}),(0,ze.useEffect)(()=>{function x(){be.current()}if(Te!==null){let z=setInterval(x,Te);return()=>clearInterval(z)}},[Te])}},83553:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return _e}});var ze=Je(59301),Ct=Je(37568),y=Je(28284),Te=Je(6767),be=Je(62957),x=Je(29787),z=Je(14566),ie=Je(25399),oe=Je(60242),ee=Je(47889),le={flex_box_center:"flex_box_center___SntrE",flex_space_between:"flex_space_between___g4tse",flex_box_vertical_center:"flex_box_vertical_center___ooGcI",flex_box_center_end:"flex_box_center_end___UM2Cs",flex_box_column:"flex_box_column___vRGBc",prompt:"prompt___a_aRk",box:"box___X84XK",row:"row___wofpN",icon:"icon___ixIOQ"},E=Je(97013),ne=Je(31735),te=Je(13683),se=Je(1012),ue=Je(47257),fe=Je.n(ue),me=Je(36588),ve=Je(18606),he=Je(11968),ge=Je(58106),xe=Je(59301),Ce=Object.defineProperty,je=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,ye=(Ze,Ve,Qe)=>Ve in Ze?Ce(Ze,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ze[Ve]=Qe,we=(Ze,Ve)=>{for(var Qe in Ve||(Ve={}))Ee.call(Ve,Qe)&&ye(Ze,Qe,Ve[Qe]);if(je)for(var Qe of je(Ve))ce.call(Ve,Qe)&&ye(Ze,Qe,Ve[Qe]);return Ze},De=(Ze,Ve,Qe)=>new Promise((ut,Ie)=>{var We=nt=>{try{at(Qe.next(nt))}catch(Xe){Ie(Xe)}},it=nt=>{try{at(Qe.throw(nt))}catch(Xe){Ie(Xe)}},at=nt=>nt.done?ut(nt.value):Promise.resolve(nt.value).then(We,it);at((Qe=Qe.apply(Ze,Ve)).next())});const Re=Ct.default.TextArea,ke=({dataSetInfo:Ze,attachmentInfo:Ve,visible:Qe,user:ut,dispatch:Ie,onClose:We=()=>{},onSuccess:it=()=>{}})=>{var at,nt;const[Xe,et]=(0,ze.useState)([]),[Ye,dt]=(0,ze.useState)(!1),[tt,lt]=(0,ze.useState)(!1),[st]=y.default.useForm(),[He,Ne]=(0,ze.useState)([]),[Ge,Me]=(0,ze.useState)({}),Ke=(0,ze.useRef)([]);(0,ze.useEffect)(()=>{if(Qe){if(Ze){const{title:pe,is_public:Be,desc:$e,attachments:Le,data_set_tags:mt}=Ze||{},gt=Le.map(bt=>({id:String(Math.random()).slice(-6),name:bt.title,response:{attachment_id:bt.id},size:bt.size,description:bt.description||"",percent:100,status:"done"}));et(gt),Ne(mt);const wt={title:pe,is_public:Be,desc:$e};st.setFieldsValue(wt)}if(Ve){const pe=Ve.map(Be=>({id:String(Math.random()).slice(-6),name:Be.title,response:{attachment_id:Be.id},size:Be.size,description:Be.description||"",percent:100,status:"done"}));et(pe)}ct()}},[Qe]),(0,ze.useEffect)(()=>{Ke.current=Xe},[Xe]),(0,ze.useEffect)(()=>{Xe!=null&&Xe.length?st.setFields([{name:"attachments",errors:[]}]):st.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Xe.length]),(0,ze.useEffect)(()=>{He!=null&&He.length?st.setFields([{name:"tag_ids",errors:[]}]):st.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[He.length]);const ct=()=>De(void 0,null,function*(){lt(!0);const pe=yield(0,E.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});pe.status===0&&(Me(pe==null?void 0:pe.data),lt(!1))}),pt={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:pe=>De(void 0,null,function*(){var Be,$e,Le,mt,gt,wt;if(((mt=(Le=($e=(Be=pe.name)==null?void 0:Be.split("."))==null?void 0:$e.slice(0,-1))==null?void 0:Le.join("."))==null?void 0:mt.length)>60)return Te.ZP.warning(`\u300A${pe.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...Ge.data_set_filenames,...Ke.current.map(It=>It.name)].includes(pe.name))return Te.ZP.warning(`\u300A${pe.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const yt=pe.size/1024/1024/1024;let Et=Ge==null?void 0:Ge.data_sets_filesize;if(Ke.current.forEach(It=>{Et+=It==null?void 0:It.size}),Et=Et/1024/1024/1024,(0,he.Ny)()){if(yt>50)return Te.ZP.warning(`\u300A${pe.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(50GB)`),Promise.reject()}else if(yt>2)return Te.ZP.warning(`\u300A${pe.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();if(Et+yt>((gt=ut==null?void 0:ut.userInfo)==null?void 0:gt.cloud_space)&&!(Ge!=null&&Ge.current_user_no_limit))return Te.ZP.warning(`\u300A${pe.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(${(wt=ut==null?void 0:ut.userInfo)==null?void 0:wt.cloud_space}GB)`),Promise.reject();const jt={id:String(Math.random()).slice(-6),name:pe.name,size:pe.size,file:pe,description:"",percent:0,status:"uploading"};return Pe(jt,{login:Ge==null?void 0:Ge.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),et(It=>[...It,jt]),Promise.reject()})},rt=pe=>De(void 0,null,function*(){var Be,$e,Le;const mt=Ke.current.find(gt=>gt.name===pe.name);(Be=mt==null?void 0:mt.response)!=null&&Be.attachment_id&&(yield(0,E.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:($e=mt==null?void 0:mt.response)==null?void 0:$e.attachment_id}})),mt!=null&&mt.client&&((Le=mt==null?void 0:mt.client)==null||Le.cancel()),et(gt=>gt.filter(wt=>wt.name!==pe.name))}),Ae=()=>{var pe;(pe=Ke.current)==null||pe.forEach(Be=>{var $e;Be!=null&&Be.client&&(($e=Be==null?void 0:Be.client)==null||$e.cancel())})};console.log(Xe,"fileList1");const Pe=(pe,Be)=>De(void 0,null,function*(){var $e,Le,mt,gt,wt,bt,yt,Et,kt;Be.file_name=pe.name;const jt=pe.name,It=yield(0,E.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((It==null?void 0:It.status)!==0){et(qt=>(qt[qt.findIndex(zr=>zr.name===jt)].status="error",[...qt])),Te.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}It.data=JSON.parse((0,te.pe)(It.data));const vr=new(fe())({endpoint:($e=It==null?void 0:It.data)==null?void 0:$e.end_point,region:(Le=It==null?void 0:It.data)==null?void 0:Le.region,accessKeyId:(mt=It==null?void 0:It.data)==null?void 0:mt.access_key_id,accessKeySecret:(gt=It==null?void 0:It.data)==null?void 0:gt.access_key_secret,bucket:(wt=It==null?void 0:It.data)==null?void 0:wt.bucket,stsToken:(bt=It==null?void 0:It.data)==null?void 0:bt.security_token}),Kt=pe.name.split(".");Kt.pop();const Pr=Be.realFileName?Kt.join("."):(0,se.Z)();vr.multipartUpload(`datasets/${Be==null?void 0:Be.login}/${Pr}${jt.indexOf(".")>-1?"."+jt.split(".").pop():""}`,new Blob([pe.file],{type:pe.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(qt,zr,Vr)=>{console.log("\u8FDB\u5EA6",qt,zr,Vr),et(Xr=>{const pn=Xr.findIndex(nn=>nn.name===jt);return Xr[pn].client=vr,Xr[pn].percent=qt*100,Xr[pn].checkpoint=zr,[...Xr]})},checkpoint:(Et=Ke.current[(yt=Ke.current)==null?void 0:yt.findIndex(qt=>qt.name===jt)])==null?void 0:Et.checkpoint,callback:{customValue:{id:jt+""},url:(kt=It==null?void 0:It.data)==null?void 0:kt.callback_url,host:It==null?void 0:It.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,E.rz)(Be)}}).then(function(qt){et(zr=>{var Vr,Xr,pn;const nn=zr.findIndex(fn=>fn.name===jt);let Mr="done";return((Vr=qt.data)==null?void 0:Vr.status)===0?zr[nn].response=(Xr=qt.data)==null?void 0:Xr.data:(Te.ZP.warning((pn=qt.data)==null?void 0:pn.message),Mr="error"),zr[nn].status=Mr,[...zr]})}).catch(function(qt){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",qt),(qt==null?void 0:qt.name)!=="cancel"&&et(zr=>{const Vr=zr.findIndex(Xr=>Xr.name===jt);return zr[Vr].status="error",[...zr]})})}),Ue=pe=>(pe=pe||"",pe=String(pe),pe=pe.replace(/\s+/g,""),pe),ot=()=>De(void 0,null,function*(){var pe;const Be=st.getFieldsValue(),{title:$e,is_public:Le,desc:mt}=Be,gt=[];if(Ue($e)||gt.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),Xe!=null&&Xe.length||gt.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),He!=null&&He.length||gt.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),gt.length){st.setFields(gt);return}const wt=Xe.map(kt=>{var jt;return{attachment_id:(jt=kt.response)==null?void 0:jt.attachment_id,description:kt.description}});dt(!0);const bt=(0,ne.TG)(),yt={title:Be.title,attachments:wt,tag_ids:He.map(kt=>kt.id),is_public:Le,desc:mt,homework_common_id:bt||void 0};let Et;Ze?Et=yield(0,E.ZP)(`/api/data_sets/${Ze==null?void 0:Ze.id}.json`,{method:"put",body:yt}):Et=yield(0,E.ZP)("/api/data_sets.json",{method:"post",body:yt}),Et.status===0&&(Te.ZP.success("\u64CD\u4F5C\u6210\u529F"),it((pe=Et==null?void 0:Et.data)==null?void 0:pe.data_set_id),Ie({type:"user/getUserInfo"})),dt(!1)}),Oe=pe=>{Ne(pe)},Se=Xe.some(pe=>pe.status==="uploading");return console.log("fileList",Xe),xe.createElement(be.default,{destroyOnClose:!0,confirmLoading:Ye,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:Se},title:Ze?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(Se){be.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{We()}});return}We()},okText:"\u786E\u5B9A",onOk:ot,open:Qe,afterClose:()=>{et([]),Ne([]),dt(!1),lt(!1),Ae(),st.resetFields()}},xe.createElement(x.Z,{spinning:tt},!(Ge!=null&&Ge.current_user_no_limit)&&!tt&&xe.createElement("div",{className:le.prompt},xe.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A:\u5E73\u53F0\u4E3A\u7528\u6237\u63D0\u4F9B\u4E86",xe.createElement("span",{style:{color:"#3061D0",margin:"0 5px"}},(at=ut==null?void 0:ut.userInfo)==null?void 0:at.cloud_space,"GB"),"\u7684\u6570\u636E\u96C6\u5B58\u50A8\u7A7A\u95F4\uFF0C\u60A8\u76EE\u524D\u5DF2\u4F7F\u7528\u4E86",xe.createElement("span",{style:{color:"#FF9D18",margin:"0 5px"}},((Ge==null?void 0:Ge.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),xe.createElement(y.default,{form:st,colon:!1,labelCol:{span:4},wrapperCol:{span:20},size:"large"},xe.createElement(y.default.Item,{label:"\u6570\u636E\u96C6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},xe.createElement(Ct.default,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0",showCount:!0,maxLength:60})),xe.createElement(y.default.Item,{style:{marginBottom:0},name:"attachments",label:"\u4E0A\u4F20\u6570\u636E\u96C6",rules:[{required:!0,message:"\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"}]},xe.createElement("div",{style:{position:"relative"}},xe.createElement(z.default,we({},pt),xe.createElement(ve.op,{style:{borderRadius:2}},xe.createElement("i",{className:"icon-shangchuan3 mr5 font14"}),"\u4E0A\u4F20\u6587\u4EF6")),xe.createElement("div",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px",position:"absolute",left:"115px",top:"-2px"}},xe.createElement("div",null,"1.\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7",(0,he.Ny)()?50:2,"G"),xe.createElement("div",null,"2.",Ge!=null&&Ge.current_user_no_limit?"":`\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC7${(nt=ut==null?void 0:ut.userInfo)==null?void 0:nt.cloud_space}GB\uFF0C`,"\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),xe.createElement("div",{className:le.box},Xe.map(pe=>xe.createElement("div",{key:pe.id,className:le.row},xe.createElement("div",{className:le.icon},pe.status==="done"&&xe.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),pe.status==="error"&&xe.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),xe.createElement("div",{style:{width:176}},xe.createElement(ie.Z,{title:pe==null?void 0:pe.name},xe.createElement("div",{style:{color:pe.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,ne.tP)(pe==null?void 0:pe.name,9))),pe.status==="uploading"&&xe.createElement(oe.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:pe.percent,showInfo:!1,size:[168,4]})),xe.createElement("i",{onClick:()=>rt(pe),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),xe.createElement(Ct.default,{value:pe.description,onChange:Be=>{et($e=>{const Le=$e.findIndex(mt=>mt.name===pe.name);return $e[Le].description=Be.target.value,[...$e]})},placeholder:"\u5907\u6CE8\u8BF4\u660E",showCount:!0,maxLength:255,style:{width:"286px"}})))),xe.createElement(y.default.Item,{label:"\u6807\u7B7E",name:"tag_ids",rules:[{required:!0,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},xe.createElement(me.Z,{isTagsValue:!0,width:"514",selectWidth:"514",placeholder:"\u6DFB\u52A0\u6807\u7B7E",getDataSet:Oe,tags:He})),xe.createElement(y.default.Item,{initialValue:0,label:"\u662F\u5426\u516C\u5F00",name:"is_public",rules:[{required:!0}]},xe.createElement(ee.ZP.Group,null,xe.createElement(ee.ZP,{value:1},"\u662F"),xe.createElement(ee.ZP,{value:0},"\u5426"))),xe.createElement("div",{style:{position:"relative",left:"100px",top:"-20px",width:"400px",color:"#9096A3",fontSize:"12px"}},"\u516C\u5F00\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\u53EF\u88AB\u5176\u4ED6\u7528\u6237\u8BBF\u95EE"),xe.createElement(y.default.Item,{label:"\u7B80\u4ECB\u6458\u8981",name:"desc",style:{marginBottom:0}},xe.createElement(Re,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))};var _e=(0,ge.connect)(({user:Ze,dispatch:Ve})=>({user:Ze,dispatch:Ve}))(ke)},71455:function(ur,Zt,Je){"use strict";Je.r(Zt),Je.d(Zt,{default:function(){return Ir}});var ze=Je(59301),Ct=Je(58106),y=Je(29787),Te=Je(91882),be=Je(25399),x=Je(62957),z=Je(62673),ie=Je(6767),oe=Je(75727),ee=Je(47889),le=Je(54172),E={flex_box_center:"flex_box_center___eNs_C",flex_space_between:"flex_space_between___oJc0d",flex_box_vertical_center:"flex_box_vertical_center___MoDEY",flex_box_center_end:"flex_box_center_end___BtlAV",flex_box_column:"flex_box_column___nUGZ8",bg:"bg___kj21E",wrap:"wrap___TtbC8",leftContent:"leftContent___FGaJd",header:"header___kobCa",headerBack:"headerBack___TI5PF",title:"title___B5Aew",time:"time___Ab938",introduction:"introduction___JKUBJ",from:"from___WId6_",bottom:"bottom___Expju",user_img:"user_img___igguI",user_name:"user_name___xNcx6",tags_name:"tags_name___xhTee",buttonList:"buttonList___ayDi1",buttonItem:"buttonItem___p_BX_",rightContent:"rightContent___XTwKA",share:"share___o0Kxt",publicStyle:"publicStyle___I8HuS",more:"more___ZQSDV",collectStyle:"collectStyle___FwPiJ",collectActiveStyle:"collectActiveStyle___vbqkD",content:"content___dl660",addTypeRadio:"addTypeRadio___iEl2Y",addBtn:"addBtn___SYc61",shixunTooltip:"shixunTooltip___krR3m",pageStyle:"pageStyle___UXmCF",pageCan:"pageCan___yNiQI",pageUnCan:"pageUnCan___M1D84",dropList:"dropList___KP6TZ",dropName:"dropName___hgrPU"},ne=Je(26869),te={flex_box_center:"flex_box_center___Kaphe",flex_space_between:"flex_space_between___dzJWD",flex_box_vertical_center:"flex_box_vertical_center___iwu7i",flex_box_center_end:"flex_box_center_end___izksF",flex_box_column:"flex_box_column___ntJPh",content:"content___gDHym",addTypeRadio:"addTypeRadio___oUKH0",introduceNoData:"introduceNoData___iILly",introduceAdd:"introduceAdd___v9keU",introduceText:"introduceText___iTf1W",introduceButton:"introduceButton___bwZMR",close:"close___csBZw",submit:"submit___SQ6af",introduceContent:"introduceContent___Yad8G",introduceTitle:"introduceTitle___DfmXh",introContentWrap:"introContentWrap___bmjAL",action:"action___DPbIq",fileTable:"fileTable___xqsXc",addBtn:"addBtn___em6e3",wrap:"wrap___Q3aN8",colorBlue:"colorBlue____HNqk",repeatedName:"repeatedName___RIjaL",row:"row___ngnyh",icon:"icon___fQvup"},se=Je(77834),ue=Je(59944),fe=Je(28284),me=Je(37568),ve=Je(14566),he=Je(60242),ge=Je(49237),xe=Je(56656),Ce=Je.n(xe),je=Je(31735),Ee=Je(79809),ce=Je(97013),ye=Je(47257),we=Je.n(ye),De=Je(13683),Re=Je(1012),ke=Je(11968),_e=Je(59301),Ze=Object.defineProperty,Ve=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,it=(Mt,Lt,At)=>Lt in Mt?Ze(Mt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Mt[Lt]=At,at=(Mt,Lt)=>{for(var At in Lt||(Lt={}))Ie.call(Lt,At)&&it(Mt,At,Lt[At]);if(ut)for(var At of ut(Lt))We.call(Lt,At)&&it(Mt,At,Lt[At]);return Mt},nt=(Mt,Lt)=>Ve(Mt,Qe(Lt)),Xe=(Mt,Lt,At)=>new Promise(($t,cr)=>{var mr=br=>{try{Tr(At.next(br))}catch(Rr){cr(Rr)}},Sr=br=>{try{Tr(At.throw(br))}catch(Rr){cr(Rr)}},Tr=br=>br.done?$t(br.value):Promise.resolve(br.value).then(mr,Sr);Tr((At=At.apply(Mt,Lt)).next())});const et=({polls:Mt,globalSetting:Lt,loading:At,dispatch:$t,user:cr,dataSetInfo:mr,indexType:Sr,getInfo:Tr})=>{const br=(0,Ct.useParams)(),[Rr,Ur]=(0,ze.useState)(!1),[Kr,sr]=(0,ze.useState)(0),Bt=(0,ze.useRef)(null),Wt=(0,ze.useRef)(null),[Gr,on]=(0,ze.useState)(""),[Tt,_t]=(0,ze.useState)(""),[dr]=fe.default.useForm(),[Qt,Ot]=(0,ze.useState)([]),rr=(0,ze.useRef)([]),[wr,gr]=(0,ze.useState)(!1),[ar,pr]=(0,ze.useState)(!1),[Cr,ir]=(0,ze.useState)(""),Yt=Qt.some(jr=>jr.status==="uploading"),[kr,Zr]=(0,ze.useState)(!1),[en,an]=(0,ze.useState)([]),[kn,Pn]=(0,ze.useState)(!1),[tn,Nr]=(0,ze.useState)(0),[Wr,_r]=(0,ze.useState)({page:1,limit:10,type:"",id:""}),An=(jr,Fr)=>Xe(void 0,null,function*(){Pn(!0);const Er=yield(0,ge.iw)({container_type:jr||(Wr==null?void 0:Wr.type),container_id:Fr||(Wr==null?void 0:Wr.id),page:Wr.page,limit:Wr.limit});an(Er==null?void 0:Er.data),Nr(Er==null?void 0:Er.total_count),Pn(!1)});(0,ze.useEffect)(()=>{var jr;((jr=Bt==null?void 0:Bt.current)==null?void 0:jr.clientHeight)>80?sr(1):sr(0)},[Gr]),(0,ze.useEffect)(()=>{rr.current=Qt},[Qt]),(0,ze.useEffect)(()=>{on(mr==null?void 0:mr.introduce),_t(mr==null?void 0:mr.introduce)},[mr==null?void 0:mr.introduce]);const Hn={multiple:!1,withCredentials:!0,showUploadList:!1,fileList:Qt==null?void 0:Qt.map(jr=>jr.file),beforeUpload:jr=>Xe(void 0,null,function*(){var Fr,Er,Yr,Or,qr;if(((Or=(Yr=(Er=(Fr=jr.name)==null?void 0:Fr.split("."))==null?void 0:Er.slice(0,-1))==null?void 0:Yr.join("."))==null?void 0:Or.length)>60)return ie.ZP.warning(`\u300A${jr.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...rr.current.map(Bn=>Bn.name)].includes(jr.name))return ie.ZP.warning(`\u300A${jr.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();if(jr.size/1024/1024/1024>2)return ie.ZP.warning(`\u300A${jr.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();const jn={id:String(Math.random()).slice(-6),name:jr.name,size:jr.size,file:jr,description:"",percent:0,status:"uploading"};return zn(jn,{login:(qr=cr==null?void 0:cr.userInfo)==null?void 0:qr.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Ot(Bn=>[...Bn,jn]),Promise.reject()})},Fn=jr=>Xe(void 0,null,function*(){var Fr,Er,Yr;const Or=rr.current.find(qr=>qr.name===jr.name);(Fr=Or==null?void 0:Or.response)!=null&&Fr.attachment_id&&(yield(0,ce.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(Er=Or==null?void 0:Or.response)==null?void 0:Er.attachment_id}})),Or!=null&&Or.client&&((Yr=Or==null?void 0:Or.client)==null||Yr.cancel()),Ot(qr=>qr.filter(yn=>yn.name!==jr.name))}),Jn=()=>{var jr;(jr=rr.current)==null||jr.forEach(Fr=>{var Er;Fr!=null&&Fr.client&&((Er=Fr==null?void 0:Fr.client)==null||Er.cancel())})},zn=(jr,Fr)=>Xe(void 0,null,function*(){var Er,Yr,Or,qr,yn,Rn,jn,Bn,ri;Fr.file_name=jr.name;const xt=jr.name,Nt=yield(0,ce.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((Nt==null?void 0:Nt.status)!==0){Ot(Gt=>(Gt[Gt.findIndex(fr=>fr.name===xt)].status="error",[...Gt])),ie.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Nt.data=JSON.parse((0,De.pe)(Nt.data));const Rt=new(we())({endpoint:(Er=Nt==null?void 0:Nt.data)==null?void 0:Er.end_point,region:(Yr=Nt==null?void 0:Nt.data)==null?void 0:Yr.region,accessKeyId:(Or=Nt==null?void 0:Nt.data)==null?void 0:Or.access_key_id,accessKeySecret:(qr=Nt==null?void 0:Nt.data)==null?void 0:qr.access_key_secret,bucket:(yn=Nt==null?void 0:Nt.data)==null?void 0:yn.bucket,stsToken:(Rn=Nt==null?void 0:Nt.data)==null?void 0:Rn.security_token}),Ft=jr.name.split(".");Ft.pop();const Jt=Fr.realFileName?Ft.join("."):(0,Re.Z)();Rt.multipartUpload(`datasets/${Fr==null?void 0:Fr.login}/${Jt}${xt.indexOf(".")>-1?"."+xt.split(".").pop():""}`,new Blob([jr.file],{type:jr.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Gt,fr,lr)=>{console.log("\u8FDB\u5EA6",Gt,fr,lr),console.log("client--",Rt),Ot(tr=>{const Pt=tr.findIndex(zt=>zt.name===xt);return Pt!==-1&&(tr[Pt].client=Rt,tr[Pt].percent=Gt*100,tr[Pt].checkpoint=fr),[...tr]})},checkpoint:(Bn=rr.current[(jn=rr.current)==null?void 0:jn.findIndex(Gt=>Gt.name===xt)])==null?void 0:Bn.checkpoint,callback:{customValue:{id:xt+""},url:(ri=Nt==null?void 0:Nt.data)==null?void 0:ri.callback_url,host:Nt==null?void 0:Nt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ce.rz)(Fr)}}).then(function(Gt){Ot(fr=>{var lr,tr,Pt;const zt=fr.findIndex(Vt=>Vt.name===xt);let Xt="done";return zt!==-1&&(((lr=Gt.data)==null?void 0:lr.status)===0?fr[zt].response=(tr=Gt.data)==null?void 0:tr.data:(ie.ZP.warning((Pt=Gt.data)==null?void 0:Pt.message),Xt="error"),fr[zt].status=Xt),[...fr]})}).catch(function(Gt){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Gt),(Gt==null?void 0:Gt.name)!=="cancel"&&Ot(fr=>{const lr=fr.findIndex(tr=>tr.name===xt);return lr!==-1&&(fr[lr].status="error"),[...fr]})})});return _e.createElement("div",{className:te.content},!Rr&&!Gr&&Sr&&_e.createElement("div",{className:te.introduceNoData,onClick:()=>{Ur(!0)}},_e.createElement("div",{className:te.introduceAdd},_e.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),_e.createElement("div",{className:te.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!Rr&&Gr&&_e.createElement("div",{className:te.introduceContent},_e.createElement("div",{className:te.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",Sr&&_e.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{Ur(!0)}})),_e.createElement("div",{className:te.introContentWrap},_e.createElement("div",null,_e.createElement("div",{ref:Wt,style:Kr>0?{height:Kr===1?80:"auto",overflow:Kr===1?"hidden":"auto"}:{paddingRight:0}},_e.createElement("div",{ref:Bt},_e.createElement(ue.Z,{value:Gr,style:{fontSize:"14px"}}))),!!Kr&&_e.createElement(ze.Fragment,null,Kr===1?_e.createElement("div",{onClick:()=>{sr(2)},className:te.action},"\u5C55\u5F00",_e.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):_e.createElement("div",{onClick:()=>{sr(1)},className:te.action},"\u6536\u8D77",_e.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),Rr&&_e.createElement("div",{style:{marginTop:"30px"}},_e.createElement(se.Z,{watch:!0,onChange:jr=>{_t(jr)},defaultValue:Tt,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),_e.createElement("div",{className:te.introduceButton},_e.createElement("div",{className:te.close,onClick:jr=>{jr.stopPropagation(),Ur(!1)}},"\u53D6\u6D88"),_e.createElement("div",{className:te.submit,onClick:jr=>{jr.stopPropagation(),(0,ge.R2)({id:br==null?void 0:br.id,introduce:Tt}).then(Fr=>{(Fr==null?void 0:Fr.status)==0&&(ie.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ur(!1),Tr(!0))})}},"\u786E\u8BA4"))),_e.createElement("div",{className:te.fileTable},_e.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),Sr&&_e.createElement("div",{className:te.addBtn,onClick:()=>{gr(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),_e.createElement(le.default,{dataSource:mr==null?void 0:mr.attachments,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"\u6587\u4EF6",align:"left",width:400,dataIndex:"title",ellipsis:!0},{title:"\u5907\u6CE8",align:"left",dataIndex:"description",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",align:"left",ellipsis:!0,dataIndex:"created_on",render:jr=>_e.createElement("span",{style:{color:"#666666"}},jr?Ce()(jr).format("YYYY-MM-DD"):"--")},{title:"\u6587\u4EF6\u5927\u5C0F",align:"left",dataIndex:"filesize",ellipsis:!0},{title:"\u4E0B\u8F7D\u6570",align:"center",dataIndex:"downloads",ellipsis:!0,render:(jr,Fr)=>_e.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>Xe(void 0,null,function*(){var Er;((0,ke.Ny)()||((Er=cr==null?void 0:cr.userInfo)==null?void 0:Er.login)==="mfflo3p2e")&&(Zr(!0),Wr.type=Fr==null?void 0:Fr.container_type,Wr.id=Fr==null?void 0:Fr.container_id,Wr.page=1,Wr.limit=10,_r(at({},Wr)),yield An(Fr==null?void 0:Fr.container_type,Fr==null?void 0:Fr.container_id))})},jr||"0")},{title:"\u64CD\u4F5C",align:"right",dataIndex:"role",width:Sr?130:60,render:(jr,Fr,Er)=>_e.createElement("span",{style:{color:"#3061D0"}},_e.createElement("div",{style:{display:"flex"}},_e.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>Xe(void 0,null,function*(){if(!(0,ke.bg)()){$t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}yield(0,je.Nd)(Fr.title,Fr==null?void 0:Fr.download_url),yield(0,ge.SG)({id:Fr==null?void 0:Fr.id}),Tr()})},"\u4E0B\u8F7D"),Sr&&_e.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var Yr,Or,qr,yn;let Rn=(Or=Fr==null?void 0:Fr.title)==null?void 0:Or.substring(((Yr=Fr==null?void 0:Fr.title)==null?void 0:Yr.lastIndexOf("."))+1);dr.setFieldsValue({title:(yn=Fr==null?void 0:Fr.title)==null?void 0:yn.substring(0,(qr=Fr==null?void 0:Fr.title)==null?void 0:qr.lastIndexOf(".")),description:Fr==null?void 0:Fr.description}),x.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:_e.createElement("div",null,_e.createElement(fe.default,{form:dr,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},_e.createElement(fe.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},_e.createElement(me.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:_e.createElement("span",null,".",Rn)})),_e.createElement(fe.default.Item,{label:"\u5907\u6CE8",name:"description"},_e.createElement(Ee.Z,{placeholder:"\u5907\u6CE8\u8BF4\u660E\uFF0C\u6700\u591A255\u5B57",size:"large"})))),onOk:()=>Xe(void 0,null,function*(){yield dr.validateFields(),(0,ge.A0)({id:br==null?void 0:br.id,attachment_id:Fr.id,filename:dr.getFieldValue("title")+"."+Rn,description:dr.getFieldValue("description")}).then(jn=>{(jn==null?void 0:jn.status)==0&&(ie.ZP.success("\u7F16\u8F91\u6210\u529F"),Tr())})})})}},"\u7F16\u8F91"),Sr&&_e.createElement("div",{style:{color:"#9096A3",cursor:"pointer"},onClick:()=>{x.default.confirm({icon:null,centered:!0,title:"\u63D0\u793A",content:"\u5220\u9664\u6570\u636E\u96C6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>Xe(void 0,null,function*(){(0,ge.Il)({attachment_id:Fr==null?void 0:Fr.id}).then(Yr=>{(Yr==null?void 0:Yr.status)==0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),$t({type:"user/getUserInfo"}),Tr(!0))})})})}},"\u5220\u9664")))}]}),_e.createElement(x.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:wr,title:"\u4E0A\u4F20\u6587\u4EF6",okButtonProps:{loading:ar,disabled:Yt},width:"1000px",onOk:()=>Xe(void 0,null,function*(){const jr=Qt.map(Er=>{var Yr;return{attachment_id:(Yr=Er.response)==null?void 0:Yr.attachment_id,description:Cr}});if(Qt.length===0){ie.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}pr(!0);const Fr=yield(0,ce.ZP)(`/api/data_sets/${br==null?void 0:br.id}/upload_attachments.json`,{method:"post",body:{attachments:jr}});(Fr==null?void 0:Fr.status)==0&&(ie.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),Tr(),gr(!1),$t({type:"user/getUserInfo"})),pr(!1)}),onCancel:()=>{if(Yt){x.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{gr(!1)}});return}gr(!1)},afterClose:()=>{Ot([]),ir(""),pr(!1),Jn()}},_e.createElement("div",{className:te.wrap},_e.createElement("div",{className:"mb10"},_e.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",_e.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC72GB)")),_e.createElement("div",null,_e.createElement(ve.default.Dragger,nt(at({},Hn),{height:300}),_e.createElement("div",null,_e.createElement("i",{className:`iconfont icon-shangchuan font50 ${te.colorBlue}`})),_e.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",_e.createElement("span",{className:`${te.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),_e.createElement("div",{className:te.box},Qt.map(jr=>_e.createElement("div",{key:jr.id,className:te.row},_e.createElement("div",{style:{display:"flex",alignItems:"center"}},_e.createElement("div",{className:te.icon},jr.status==="done"&&_e.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),jr.status==="error"&&_e.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),_e.createElement("div",{style:{flex:1}},_e.createElement(be.Z,{title:jr==null?void 0:jr.name},_e.createElement("div",{style:{width:"100%",color:jr.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,je.tP)(jr==null?void 0:jr.name,9))),jr.status==="uploading"&&_e.createElement(he.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:jr.percent,showInfo:!1,style:{width:"900px"}}))),_e.createElement("i",{onClick:()=>Fn(jr),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),_e.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),_e.createElement("div",null,_e.createElement(me.default,{allowClear:!0,value:Cr,onChange:jr=>{ir(jr.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))),_e.createElement(x.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:kr,title:"\u4E0B\u8F7D\u4FE1\u606F",width:"730px",onCancel:()=>{Zr(!1)},footer:null},_e.createElement("div",null,_e.createElement(le.default,{dataSource:en,scroll:{y:47*6},className:"mt10 mb10",loading:kn,pagination:{total:tn||0,onChange:(jr,Fr)=>Xe(void 0,null,function*(){Wr.page=jr,Wr.limit=Fr,_r(at({},Wr)),yield An()}),onShowSizeChange:(jr,Fr)=>Xe(void 0,null,function*(){Wr.page=1,Wr.limit=Fr,_r(at({},Wr)),yield An()}),current:Wr==null?void 0:Wr.page,pageSize:Wr==null?void 0:Wr.limit,showTotal:jr=>_e.createElement(_e.Fragment,null,"\u5171",_e.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},jr),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:jr=>_e.createElement("span",null,jr||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:jr=>_e.createElement("span",null,jr||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:jr=>_e.createElement("span",null,jr||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:jr=>_e.createElement("span",{style:{color:"#666666"}},jr?Ce()(jr).format("YYYY-MM-DD"):"--")}]}))))};var Ye=(0,Ct.connect)(({polls:Mt,loading:Lt,user:At,globalSetting:$t})=>({polls:Mt,globalSetting:$t,user:At,loading:Lt.effects}))(et),dt=Je(26227),tt=Je(77019),lt=Je(5269),st=Je(7939),He={flex_box_center:"flex_box_center___kjELP",flex_space_between:"flex_space_between___IoBKu",flex_box_vertical_center:"flex_box_vertical_center___NuujF",flex_box_center_end:"flex_box_center_end___Kc5UK",flex_box_column:"flex_box_column___ebFBu",reply:"reply___xDf2z",replyList:"replyList___zMH5f",comment:"comment___qHsYF",content:"content___vTju0",commentItem:"commentItem___aGdcc",commentParItem:"commentParItem___XkqkQ",submitStyle:"submitStyle___RwXx8"},Ne=Je(54694),Ge=Je(59301),Me=Object.defineProperty,Ke=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,Pe=(Mt,Lt,At)=>Lt in Mt?Me(Mt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Mt[Lt]=At,Ue=(Mt,Lt)=>{for(var At in Lt||(Lt={}))rt.call(Lt,At)&&Pe(Mt,At,Lt[At]);if(pt)for(var At of pt(Lt))Ae.call(Lt,At)&&Pe(Mt,At,Lt[At]);return Mt},ot=(Mt,Lt)=>Ke(Mt,ct(Lt)),Oe=(Mt,Lt,At)=>new Promise(($t,cr)=>{var mr=br=>{try{Tr(At.next(br))}catch(Rr){cr(Rr)}},Sr=br=>{try{Tr(At.throw(br))}catch(Rr){cr(Rr)}},Tr=br=>br.done?$t(br.value):Promise.resolve(br.value).then(mr,Sr);Tr((At=At.apply(Mt,Lt)).next())});Ce().locale("ZH-cn");function Se({user:Mt,vlist:Lt=[],dispatch:At,params:$t,id:cr,memo_replies:mr,forumsDetail:Sr}){return Ge.createElement("aside",{className:He.comment},Lt.map(function(Tr,br){var Rr,Ur;return Ge.createElement(tt.Z,{key:br,className:He.commentItem},Ge.createElement(lt.Z,{span:24},Ge.createElement(tt.Z,null,Ge.createElement(lt.Z,{flex:"1"},Ge.createElement("a",{href:`/users/${Tr.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},Tr==null?void 0:Tr.username),Ge.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Tr.time)),(Tr.can_delete||Tr.user_id===((Rr=Mt.userInfo)==null?void 0:Rr.user_id)||Tr.user_login===((Ur=Mt.userInfo)==null?void 0:Ur.login))&&Ge.createElement(lt.Z,{className:"forums-comment-delete",style:{display:"none"}},Ge.createElement(be.Z,{title:"\u5220\u9664"},Ge.createElement(dt.Z,{className:"current",onClick:()=>{x.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Ge.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Oe(this,null,function*(){const Kr=yield(0,Ne.sW)({id:Tr.id,memo_type:"data_set"}),sr=mr.find(Bt=>Bt.id===cr).children.filter(Bt=>Bt.id!==Tr.id);mr.find(Bt=>Bt.id===cr).children=sr,At({type:"forumsDetail/setForumsDetailData",payload:ot(Ue({},Sr.forumsDetailData),{memo_replies:[...mr],memo_type:"data_set"})})})})}}))))),Ge.createElement(lt.Z,null,Ge.createElement(ue.Z,{value:Tr.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var pe=Se,Be=Je(59301),$e=Object.defineProperty,Le=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,yt=(Mt,Lt,At)=>Lt in Mt?$e(Mt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Mt[Lt]=At,Et=(Mt,Lt)=>{for(var At in Lt||(Lt={}))wt.call(Lt,At)&&yt(Mt,At,Lt[At]);if(gt)for(var At of gt(Lt))bt.call(Lt,At)&&yt(Mt,At,Lt[At]);return Mt},kt=(Mt,Lt)=>Le(Mt,mt(Lt)),jt=(Mt,Lt,At)=>new Promise(($t,cr)=>{var mr=br=>{try{Tr(At.next(br))}catch(Rr){cr(Rr)}},Sr=br=>{try{Tr(At.throw(br))}catch(Rr){cr(Rr)}},Tr=br=>br.done?$t(br.value):Promise.resolve(br.value).then(mr,Sr);Tr((At=At.apply(Mt,Lt)).next())});Ce().locale("ZH-cn");const It=({user:Mt,forumsDetail:Lt,globalSetting:At,loading:$t,dispatch:cr,handleClick:mr,memoId:Sr},Tr)=>{const{memo:br,memo_replies:Rr}=Lt.forumsDetailData||{},Ur=(0,Ct.useParams)(),[Kr,sr]=(0,ze.useState)(""),[Bt,Wt]=(0,ze.useState)(""),[Gr,on]=(0,ze.useState)(-1),[Tt,_t]=(0,ze.useState)(!1),[dr,Qt]=(0,ze.useState)(!1),[Ot,rr]=(0,ze.useState)(1);(0,ze.useEffect)(()=>{_t((br==null?void 0:br.reply_for_memo_count)>10)},[br==null?void 0:br.reply_for_memo_count]),(0,ze.useEffect)(()=>{cr({type:"forumsDetail/getForumsDetailData",payload:{id:Sr,memo_type:"data_set"}})},[]);const wr=()=>jt(void 0,null,function*(){var ar;const pr=Ot+1;rr(pr);const Cr=yield(0,Ne.z5)({id:Sr,page:pr,memo_type:"data_set"});Cr!=null&&Cr.memo_replies&&(cr({type:"forumsDetail/setForumsDetailData",payload:kt(Et({},Lt.forumsDetailData),{memo_replies:[...Rr,...Cr.memo_replies]})}),_t(((ar=Cr.memo_replies)==null?void 0:ar.length)===10))}),gr=ar=>{var pr,Cr,ir,Yt;return kt(Et({},ar),{image_url:(pr=Mt.userInfo)==null?void 0:pr.image_url,children:[],user_id:(Cr=Mt.userInfo)==null?void 0:Cr.user_id,user_login:(ir=Mt.userInfo)==null?void 0:ir.login,username:(Yt=Mt.userInfo)==null?void 0:Yt.username,time:`${(0,je.li)((new Date().getTime()-new Date(ar.created_at).getTime())/1e3)}\u524D`})};return Be.createElement("section",{className:He.wrap},!!(Rr!=null&&Rr.length)&&Be.createElement("aside",{className:He.content},Be.createElement("aside",{className:He.replyList},Rr==null?void 0:Rr.map(function(ar,pr){var Cr,ir,Yt;return Be.createElement(tt.Z,{gutter:[12,12],key:pr},Be.createElement(lt.Z,{flex:"40px"},Be.createElement("a",{href:`/users/${ar.user_login}`,target:"_blank"},Be.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${ne.Z.IMG_SERVER}/images/${ar==null?void 0:ar.image_url}`}))),Be.createElement(lt.Z,{flex:"1"},Be.createElement(tt.Z,{align:"middle",className:He.commentParItem},Be.createElement(lt.Z,{span:24},Be.createElement(tt.Z,null,Be.createElement(lt.Z,{flex:"1"},Be.createElement("a",{href:`/users/${ar.user_login}`,target:"_blank"},Be.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},ar==null?void 0:ar.username)),Be.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},ar.time)),(ar.can_delete||ar.user_id===((Cr=Mt.userInfo)==null?void 0:Cr.user_id)||ar.user_login===((ir=Mt.userInfo)==null?void 0:ir.login))&&Be.createElement(lt.Z,{className:"forums-comment-par-delete",style:{display:"none"}},Be.createElement(be.Z,{title:"\u5220\u9664"},Be.createElement(dt.Z,{className:"current",onClick:()=>{x.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Be.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>jt(this,null,function*(){const kr=yield(0,Ne.sW)({id:ar.id,memo_type:"data_set"}),Zr=Rr.filter(en=>en.id!==ar.id);cr({type:"forumsDetail/setForumsDetailData",payload:kt(Et({},Lt.forumsDetailData),{memo_replies:[...Zr],memo_type:"data_set"})})})})}}))))),Be.createElement(lt.Z,{span:24,style:{marginTop:"5px"}},Be.createElement("div",{onClick:mr},Be.createElement(ue.Z,{value:ar.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((Yt=ar==null?void 0:ar.children)!=null&&Yt.length)&&Be.createElement(pe,{user:Mt,id:ar==null?void 0:ar.id,vlist:ar==null?void 0:ar.children,dispatch:cr,params:Ur,memo_replies:Rr,forumsDetail:Lt}),Be.createElement(lt.Z,{span:24,className:"mt5 c-light-black"},Gr===pr?Be.createElement("aside",null,Be.createElement(se.Z,{onChange:kr=>{Wt(kr)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),Be.createElement(tt.Z,null,Be.createElement(lt.Z,{span:24,className:"tr"},Be.createElement(st.ZP,{type:"primary",size:"middle",onClick:()=>jt(this,null,function*(){if(Bt==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const kr=yield(0,Ne.ts)({parent_id:ar.id,content:Bt,memo_type:"data_set"});Wt(null),kr&&(on(-1),Rr.find(Zr=>Zr.id===kr.parent_id).children.push(gr(kr)),cr({type:"forumsDetail/setForumsDetailData",payload:kt(Et({},Lt.forumsDetailData),{memo:kt(Et({},br),{reply_for_memo_count:(br==null?void 0:br.reply_for_memo_count)+1}),memo_replies:[...Rr],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):Be.createElement("div",{className:"tr",style:{textAlign:"left"}},Be.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>on(pr)}),Be.createElement(be.Z,{title:ar.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},Be.createElement("span",{className:ar.user_praise?"c-orange":"c-gery-888"},Be.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>jt(this,null,function*(){const kr=yield(0,Ne.vL)({id:ar.id,container_type:"Memo",type:ar.user_praise?0:1,memo_type:"data_set"});(kr==null?void 0:kr.praise_count)>=0&&(Rr.find(Zr=>Zr.id===ar.id).user_praise=!ar.user_praise,Rr.find(Zr=>Zr.id===ar.id).praise_count=kr==null?void 0:kr.praise_count,cr({type:"forumsDetail/setForumsDetailData",payload:kt(Et({},Lt.forumsDetailData),{memo_replies:[...Rr],memo_type:"data_set"})}))})}),ar.praise_count>0?ar.praise_count:"")))))))}))),Tt&&Be.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},Be.createElement(tt.Z,{justify:"space-between"},Be.createElement(lt.Z,null),Be.createElement(lt.Z,null,Tt&&Be.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:wr},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",Be.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),Be.createElement("aside",{className:He.reply},Be.createElement(se.Z,{onBlur:()=>Qt(!1),isFocus:dr,defaultValue:Kr,id:"writeForumsReviewId",onChange:ar=>{sr(ar)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),Be.createElement(tt.Z,null,Be.createElement(lt.Z,{flex:"1"}),Be.createElement(lt.Z,null,Be.createElement("div",{className:He.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>jt(void 0,null,function*(){if(Kr==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const ar=yield(0,Ne.ts)({parent_id:br==null?void 0:br.id,content:Kr,memo_type:"data_set"});sr(null),ar&&cr({type:"forumsDetail/setForumsDetailData",payload:kt(Et({},Lt.forumsDetailData),{memo:kt(Et({},br),{reply_for_memo_count:(br==null?void 0:br.reply_for_memo_count)+1}),memo_replies:[gr(ar),...Rr],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var vr=(0,Ct.connect)(({user:Mt,forumsDetail:Lt,loading:At,globalSetting:$t})=>({user:Mt,forumsDetail:Lt,globalSetting:$t,loading:At.models.forumsDetail}),null,null,{forwardRef:!0})((0,ze.forwardRef)(It)),Kt=Je(18606),Pr=Je(83553),qt=Je(59301),zr=Object.defineProperty,Vr=Object.getOwnPropertySymbols,Xr=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,nn=(Mt,Lt,At)=>Lt in Mt?zr(Mt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:At}):Mt[Lt]=At,Mr=(Mt,Lt)=>{for(var At in Lt||(Lt={}))Xr.call(Lt,At)&&nn(Mt,At,Lt[At]);if(Vr)for(var At of Vr(Lt))pn.call(Lt,At)&&nn(Mt,At,Lt[At]);return Mt},fn=(Mt,Lt,At)=>new Promise(($t,cr)=>{var mr=br=>{try{Tr(At.next(br))}catch(Rr){cr(Rr)}},Sr=br=>{try{Tr(At.throw(br))}catch(Rr){cr(Rr)}},Tr=br=>br.done?$t(br.value):Promise.resolve(br.value).then(mr,Sr);Tr((At=At.apply(Mt,Lt)).next())});let dn={public:"\u516C\u5F00\u6570\u636E\u96C6",mine:"\u6211\u7684\u6570\u636E\u96C6",share:"\u56E2\u961F\u5171\u4EAB",collect:"\u6211\u6536\u85CF\u7684"};const Lr=({polls:Mt,globalSetting:Lt,loading:At,dispatch:$t,user:cr})=>{var mr,Sr,Tr;const br=(0,Ct.useParams)(),[Rr]=(0,Ct.useSearchParams)(),[Ur,Kr]=(0,ze.useState)(!1),[sr,Bt]=(0,ze.useState)(1),[Wt,Gr]=(0,ze.useState)(null),[on,Tt]=(0,ze.useState)(""),[_t,dr]=(0,ze.useState)(),[Qt,Ot]=(0,ze.useState)(1),[rr,wr]=(0,ze.useState)(1),gr=(0,ze.useRef)([]),[ar,pr]=(0,ze.useState)([]),[Cr,ir]=(0,ze.useState)(!1),[Yt,kr]=(0,ze.useState)(!1),[Zr,en]=(0,ze.useState)(!1),[an,kn]=(0,ze.useState)([]),[Pn,tn]=(0,ze.useState)(!1),[Nr,Wr]=(0,ze.useState)(0),[_r,An]=(0,ze.useState)({page:1,limit:10}),Hn=()=>fn(void 0,null,function*(){tn(!0);const Er=yield(0,ge.iw)({container_type:Wt==null?void 0:Wt.container_type,container_id:Wt==null?void 0:Wt.container_id,page:_r==null?void 0:_r.page,limit:_r==null?void 0:_r.limit});(Er==null?void 0:Er.status)==0&&(kn(Er==null?void 0:Er.data),Wr(Er==null?void 0:Er.total_count),tn(!1))});(0,ze.useEffect)(()=>{zn(),(0,ce.ZP)("/api/teach_group_shares.json",{method:"get"}).then(Er=>{(Er==null?void 0:Er.status)==0&&pr(Er==null?void 0:Er.groups)})},[]),(0,ze.useEffect)(()=>{sr==2&&Jn()},[sr,Qt]);const Fn=(Er,Yr)=>(Er=Math.max(Er,0),Yr=Math.max(Yr,1),Math.ceil(Er/Yr)),Jn=()=>{(0,ge.Ce)({id:br==null?void 0:br.id,page:Qt,limit:16}).then(Er=>{var Yr,Or;(Er==null?void 0:Er.status)==0&&(dr((Yr=Er==null?void 0:Er.data)==null?void 0:Yr.shixuns),wr(Fn((Or=Er==null?void 0:Er.data)==null?void 0:Or.count,16)))})},zn=(Er=!1)=>{kr(!0),(0,ge.Ru)(br==null?void 0:br.id).then(Yr=>{var Or,qr;(Yr==null?void 0:Yr.status)==0&&(Gr(Yr==null?void 0:Yr.data),Kr((0,ke.Ny)()||((Or=Yr==null?void 0:Yr.data)==null?void 0:Or.is_creator)),gr.current=(qr=Yr==null?void 0:Yr.data)==null?void 0:qr.share_group_ids,Er&&Tt(new Date),kr(!1))})},jr=()=>{ir(!1)},Fr=()=>{zn(),ir(!1)};return qt.createElement(y.Z,{spinning:Yt},qt.createElement("section",{className:E.bg},Wt&&qt.createElement(qt.Fragment,null,qt.createElement("div",{className:"edu-container"},qt.createElement("aside",{className:"mt10"},qt.createElement(Te.Z,{separator:">"},qt.createElement(Te.Z.Item,null,qt.createElement(Ct.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),qt.createElement(Te.Z.Item,null,qt.createElement(Ct.Link,{to:`/dataset?tabId=${Rr.get("tabId")}`},dn[Rr.get("tabId")])),qt.createElement(Te.Z.Item,null,Wt==null?void 0:Wt.title))),qt.createElement("aside",{className:E.wrap},qt.createElement("div",{className:E.leftContent,style:{width:Ur?"78%":"87%"}},qt.createElement("div",{className:E.header},qt.createElement("div",{className:E.headerBack,onClick:()=>{Ct.history.push(`/dataset?tabId=${Rr.get("tabId")}`)}},qt.createElement("i",{className:"iconfont icon-fanhui4 ",style:{fontSize:"10px",margin:"0 3px 0 5px"}}),"\u8FD4\u56DE"),qt.createElement("div",{className:E.title},Wt==null?void 0:Wt.title),qt.createElement("div",{className:E.time},Wt==null?void 0:Wt.create_at)),qt.createElement("div",{className:E.introduction},Wt==null?void 0:Wt.desc),qt.createElement("div",{className:E.bottom},((mr=Wt==null?void 0:Wt.user_info)==null?void 0:mr.image_url)&&qt.createElement("img",{className:E.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${ne.Z.IMG_SERVER}/images/${(Sr=Wt==null?void 0:Wt.user_info)==null?void 0:Sr.image_url}`}),qt.createElement("div",{className:E.user_name},Wt==null?void 0:Wt.user_info_name),(Tr=Wt==null?void 0:Wt.data_set_tags)==null?void 0:Tr.map((Er,Yr)=>{var Or;return Yr<3?qt.createElement("div",{key:Yr,className:E.tags_name},Er==null?void 0:Er.tag_name):Yr==3?qt.createElement(be.Z,{key:Yr,title:(Or=Wt==null?void 0:Wt.data_set_tags)==null?void 0:Or.map((qr,yn)=>{var Rn;if(yn>2)return(qr==null?void 0:qr.tag_name)+(yn===((Rn=Wt==null?void 0:Wt.data_set_tags)==null?void 0:Rn.length)-1?"":"\u3001")}).join("")},qt.createElement("div",{key:Yr,className:E.tags_name},"...")):null}),qt.createElement("div",{className:E.buttonList},qt.createElement(be.Z,{title:`\u5F15\u7528\u6570\uFF1A${Wt==null?void 0:Wt.used_count}`},qt.createElement("div",{className:`${E.buttonItem} current`},qt.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),Wt==null?void 0:Wt.used_count)),qt.createElement(be.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${Wt==null?void 0:Wt.visited_count}`},qt.createElement("div",{className:`${E.buttonItem} current`,onClick:()=>fn(void 0,null,function*(){var Er;((0,ke.Ny)()||((Er=cr==null?void 0:cr.userInfo)==null?void 0:Er.login)==="mfflo3p2e")&&(en(!0),_r.page=1,_r.limit=10,An(Mr({},_r)),yield Hn())})},qt.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),Wt==null?void 0:Wt.visited_count)),qt.createElement(be.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${Wt==null?void 0:Wt.comment_count}`},qt.createElement("div",{className:`${E.buttonItem} current`},qt.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),Wt==null?void 0:Wt.comment_count))))),qt.createElement("div",{className:E.rightContent,style:{width:Ur?"22%":"13%"}},Ur?qt.createElement("div",{style:{display:"flex",marginLeft:"auto"}},qt.createElement("div",{className:E.share,onClick:()=>fn(void 0,null,function*(){x.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:qt.createElement("div",{className:`font14 ${E.overflow}`},qt.createElement("div",{className:E.tips},"\u63D0\u793A\uFF1A\u5171\u4EAB\u540E\u7684\u6570\u636E\u96C6\u652F\u6301\u56E2\u961F\u6210\u5458\u8FDB\u884C\u7F16\u8F91\uFF0C\u5982\u9700\u64A4\u9500\u672C\u6570\u636E\u96C6\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u3002"),qt.createElement(z.default.Group,{style:{marginTop:"10px"},defaultValue:Wt==null?void 0:Wt.share_group_ids,onChange:Er=>{gr.current=Er}},ar==null?void 0:ar.map(Er=>qt.createElement(z.default,{key:Er==null?void 0:Er.group_id,value:Er==null?void 0:Er.group_id},Er==null?void 0:Er.name)))),onOk:()=>{(0,ge.l5)({ids:[Wt==null?void 0:Wt.id],clazz:"DataSet",group_ids:gr.current}).then(Er=>{(Er==null?void 0:Er.status)==0&&(ie.ZP.success("\u5171\u4EAB\u6210\u529F"),zn())})}})})},"\u5171\u4EAB"),qt.createElement("div",{className:E.publicStyle,onClick:()=>{x.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:(Wt==null?void 0:Wt.public_status)==0?"\u7533\u8BF7\u516C\u5F00\u9700\u8981\u5F85\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u81EA\u52A8\u516C\u5F00":(Wt==null?void 0:Wt.public_status)==1?"\u53D6\u6D88\u516C\u5F00\u540E\uFF0C\u5176\u4ED6\u7528\u6237\u5C06\u4E0D\u53EF\u89C1\uFF0C\u540C\u65F6\u518D\u6B21\u516C\u5F00\u9700\u8981\u91CD\u65B0\u8FDB\u884C\u7533\u8BF7":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u7533\u8BF7\u8BB0\u5F55\u5C06\u5220\u9664\uFF0C\u5982\u9700\u516C\u5F00\u8BF7\u518D\u6B21\u7533\u8BF7",onOk:()=>fn(void 0,null,function*(){let Er;switch(Wt==null?void 0:Wt.public_status){case 0:Er=(0,ge.To)(Wt==null?void 0:Wt.id);break;case 1:Er=(0,ge.a6)(Wt==null?void 0:Wt.id);break;case 2:Er=(0,ge.Dx)(Wt==null?void 0:Wt.id);break;default:return}Er.then(Yr=>{(Yr==null?void 0:Yr.status)===0&&(ie.ZP.success("\u64CD\u4F5C\u6210\u529F"),zn())})})})}},(Wt==null?void 0:Wt.public_status)==0?"\u7533\u8BF7\u516C\u5F00":(Wt==null?void 0:Wt.public_status)==1?"\u53D6\u6D88\u516C\u5F00":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),qt.createElement(oe.Z,{menu:{items:[{label:qt.createElement("div",null,"\u7F16\u8F91"),key:"4",onClick:()=>{ir(!0)}},{label:qt.createElement("div",{onClick:()=>{x.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,content:"\u5220\u9664\u6570\u636E\u96C6\u4E2D\u7684\u6587\u4EF6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk(){return fn(this,null,function*(){(0,ge.pP)(Wt==null?void 0:Wt.id).then(Er=>{(Er==null?void 0:Er.status)==0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),Ct.history.push("/dataset"))})})}})}},"\u5220\u9664"),key:"5"}]}},qt.createElement("div",{className:E.more},qt.createElement("i",{className:"iconfont icon-gengduo6 font12"})))):qt.createElement("div",{className:Wt!=null&&Wt.current_user_is_collect?E.collectActiveStyle:E.collectStyle,onClick:()=>{let Er;Wt!=null&&Wt.current_user_is_collect?Er=(0,ge.R9)({container_id:Wt==null?void 0:Wt.id,container_type:"DataSet"}):Er=(0,ge.nW)({container_id:Wt==null?void 0:Wt.id,container_type:"DataSet"}),Er.then(Yr=>{(Yr==null?void 0:Yr.status)===0&&zn()})}},qt.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",Wt==null?void 0:Wt.collect_count))),qt.createElement("div",{className:E.content},qt.createElement("div",{style:{display:"flex",alignItems:"center"}},qt.createElement(ee.ZP.Group,{className:E.addTypeRadio,optionType:"button",options:[{label:"\u8BE6\u60C5",value:1},{label:"\u5B9E\u8DF5\u9879\u76EE",value:2},{label:"\u8BA8\u8BBA",value:3}],onChange:Er=>{var Yr;Bt((Yr=Er==null?void 0:Er.target)==null?void 0:Yr.value)},value:sr}),qt.createElement("div",{className:E.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${br==null?void 0:br.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),sr==1&&qt.createElement(Ye,{dataSetInfo:Wt,getInfo:zn,key:on,indexType:Ur}),sr==2&&qt.createElement("div",null,qt.createElement("div",{className:E.shixunTooltip},qt.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A\uFF1A\u4EC5\u5C55\u793A\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u4E14\u516C\u5F00\u7684\u5B9E\u8DF5\u9879\u76EE"),qt.createElement(Kt.wb,{dataSource:_t,right:23,col:4,precision:1,loading:!1,wrapWidth:1140,trackEventItems:["\u5B9E\u8DF5\u9879\u76EE","\u9996\u9875","\u5B9E\u8BAD\u5217\u8868\u67E5\u770B\u8BE6\u60C5"]}),rr>1&&qt.createElement("div",{className:E.pageStyle},qt.createElement("div",{className:Qt==1?E.pageUnCan:E.pageCan,style:{marginRight:"10px"},onClick:()=>{Qt>1&&Ot(Qt-1)}},"\u4E0A\u4E00\u9875"),qt.createElement("div",{className:Qt==rr?E.pageUnCan:E.pageCan,style:{marginLeft:"10px"},onClick:()=>{Qt<rr&&Ot(Qt+1)}},"\u4E0B\u4E00\u9875"))),sr==3&&qt.createElement(vr,{memoId:Wt==null?void 0:Wt.memo_id})))),qt.createElement(Pr.Z,{dataSetInfo:Wt,visible:Cr,onClose:jr,onSuccess:Fr}),qt.createElement(x.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:Zr,title:"\u6D4F\u89C8\u4FE1\u606F",width:"730px",onCancel:()=>{en(!1)},footer:null},qt.createElement("div",null,qt.createElement(le.default,{dataSource:an,loading:Pn,className:"mt10 mb10",scroll:{y:47*6},pagination:{total:Nr||0,onChange:(Er,Yr)=>{_r.page=Er,_r.limit=Yr,An(Mr({},_r)),Hn()},current:_r==null?void 0:_r.page,pageSize:_r==null?void 0:_r.limit,showTotal:Er=>qt.createElement(qt.Fragment,null,"\u5171",qt.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},Er),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:Er=>qt.createElement("span",null,Er||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:Er=>qt.createElement("span",null,Er||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:Er=>qt.createElement("span",null,Er||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:Er=>qt.createElement("span",{style:{color:"#666666"}},Er?Ce()(Er).format("YYYY-MM-DD"):"--")}]})))))};var Ir=(0,Ct.connect)(({polls:Mt,loading:Lt,user:At,globalSetting:$t})=>({polls:Mt,globalSetting:$t,user:At,loading:Lt.effects}))(Lr)},36588:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return le}});var ze=Je(59301),Ct=Je(58106),y=Je(82326),Te=Je(29787),be=Je(6767),x={flex_box_center:"flex_box_center___OmLFa",flex_space_between:"flex_space_between___Pwqhp",flex_box_vertical_center:"flex_box_vertical_center___UJzms",flex_box_center_end:"flex_box_center_end___qMu25",flex_box_column:"flex_box_column___AimtA",selectList:"selectList___hGJUN",selectHeader:"selectHeader___HxdBZ",selectContent:"selectContent___oWjby",contentTitle:"contentTitle___xlVyW",contentTags:"contentTags___BGCLU",tagName:"tagName___MIGDL",tagNameActive:"tagNameActive___JCRev",activeStyle:"activeStyle___FvXnt",activeLabel:"activeLabel___RzW9T",activeValue:"activeValue___qxoch",activeItem:"activeItem___NfFjA",activeClose:"activeClose___Su7dS",activeSubmit:"activeSubmit___gjhQA"},z=Je(49237),ie=Je(59301),oe=(E,ne,te)=>new Promise((se,ue)=>{var fe=he=>{try{ve(te.next(he))}catch(ge){ue(ge)}},me=he=>{try{ve(te.throw(he))}catch(ge){ue(ge)}},ve=he=>he.done?se(he.value):Promise.resolve(he.value).then(fe,me);ve((te=te.apply(E,ne)).next())});const ee=({user:E,width:ne,selectWidth:te,tags:se,getDataSet:ue,placeholder:fe="\u5168\u90E8\u6807\u7B7E",isTagsValue:me=!1})=>{const[ve,he]=(0,ze.useState)([]),[ge,xe]=(0,ze.useState)([]),[Ce,je]=(0,ze.useState)(!1),Ee=(0,ze.useRef)(null);(0,ze.useEffect)(()=>{ce()},[]);const ce=()=>oe(void 0,null,function*(){je(!0),yield(0,z.bj)({}).then(we=>{(we==null?void 0:we.status)==0&&he(we==null?void 0:we.data)}),je(!1)}),ye=se==null?void 0:se.map(we=>we.tag_name).join("\u3001");return ie.createElement(y.default,{onFocus:()=>{xe(se)},ref:Ee,style:{width:te?te+"px":300},placeholder:(se==null?void 0:se.length)>0?me?ie.createElement("span",{className:"c-grey-333"},ye):`\u5DF2\u9009\u4E2D${se==null?void 0:se.length}\u4E2A\u6807\u7B7E`:fe,size:"large",dropdownStyle:{width:ne+"px",zIndex:1e3},className:x.selectStyle,dropdownRender:()=>ie.createElement("div",{className:x.selectList,style:{width:ne+"px"}},ie.createElement("div",{className:x.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),ie.createElement(Te.Z,{spinning:Ce},ie.createElement("div",{className:x.selectContent},ve==null?void 0:ve.map((we,De)=>{var Re;return ie.createElement("aside",{key:De},ie.createElement("div",{className:x.contentTitle,style:{marginTop:De>0?"20px":"0"}},we==null?void 0:we.tag_type_cn),ie.createElement("div",{className:x.contentTags},(Re=we==null?void 0:we.child)==null?void 0:Re.map((ke,_e)=>{var Ze;return ie.createElement("div",{key:_e,className:(Ze=ge==null?void 0:ge.map(Ve=>Ve==null?void 0:Ve.id))!=null&&Ze.includes(ke==null?void 0:ke.id)?x.tagNameActive:x.tagName,onClick:()=>{var Ve;(Ve=ge==null?void 0:ge.map(Qe=>Qe==null?void 0:Qe.id))!=null&&Ve.includes(ke==null?void 0:ke.id)?xe(ge.filter(Qe=>(Qe==null?void 0:Qe.id)!=(ke==null?void 0:ke.id))):(ge==null?void 0:ge.length)<5?xe([...ge,ke]):be.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},ke==null?void 0:ke.tag_name)})))}))),ie.createElement("div",{className:x.activeStyle},ie.createElement("div",{className:x.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),ie.createElement("div",{className:x.activeValue,style:{width:ne-120+"px"}},ge==null?void 0:ge.map((we,De)=>ie.createElement("div",{key:De,className:x.activeItem},we==null?void 0:we.tag_name,ie.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{xe(ge.filter(Re=>(Re==null?void 0:Re.id)!==(we==null?void 0:we.id)))}}))))),ie.createElement("div",{style:{display:"flex",marginBottom:"20px"}},ie.createElement("div",{className:x.activeClose,onClick:we=>{we.stopPropagation(),ue([...se]),xe([]),setTimeout(()=>{Ee.current&&Ee.current.blur()},10)}},"\u53D6\u6D88"),ie.createElement("div",{className:x.activeSubmit,onClick:we=>{we.stopPropagation(),ue([...ge]),xe([]),setTimeout(()=>{Ee.current&&Ee.current.blur()},10)}},"\u786E\u8BA4")))})};var le=(0,Ct.connect)(({user:E})=>({user:E}))(ee)},49237:function(ur,Zt,Je){"use strict";Je.d(Zt,{A0:function(){return Ce},Ce:function(){return me},Dx:function(){return E},Il:function(){return xe},R2:function(){return fe},R9:function(){return se},Ru:function(){return ue},SG:function(){return Ee},To:function(){return le},_S:function(){return ee},a6:function(){return ne},bj:function(){return oe},iw:function(){return je},l5:function(){return ge},nW:function(){return te},pP:function(){return he},pi:function(){return ve}});var ze=Je(97013),Ct=Object.defineProperty,y=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,x=(ce,ye,we)=>ye in ce?Ct(ce,ye,{enumerable:!0,configurable:!0,writable:!0,value:we}):ce[ye]=we,z=(ce,ye)=>{for(var we in ye||(ye={}))Te.call(ye,we)&&x(ce,we,ye[we]);if(y)for(var we of y(ye))be.call(ye,we)&&x(ce,we,ye[we]);return ce},ie=(ce,ye,we)=>new Promise((De,Re)=>{var ke=Ve=>{try{Ze(we.next(Ve))}catch(Qe){Re(Qe)}},_e=Ve=>{try{Ze(we.throw(Ve))}catch(Qe){Re(Qe)}},Ze=Ve=>Ve.done?De(Ve.value):Promise.resolve(Ve.value).then(ke,_e);Ze((we=we.apply(ce,ye)).next())});function oe(ce){return ie(this,null,function*(){return(0,ze.ZP)("/api/data_sets/tags.json",{method:"get",params:z({},ce)})})}function ee(ce){return ie(this,null,function*(){return(0,ze.ZP)("/api/data_sets.json",{method:"get",params:z({},ce)})})}function le(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/data_sets/${ce}/apply_public.json`,{method:"post"})})}function E(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/data_sets/${ce}/revoke_apply_public.json`,{method:"post"})})}function ne(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/data_sets/${ce}/cancel_public.json`,{method:"post"})})}function te(ce){return ie(this,null,function*(){return(0,ze.ZP)("/api/collections.json",{method:"post",body:z({},ce)})})}function se(ce){return ie(this,null,function*(){return(0,ze.ZP)("/api/collections/cancel.json",{method:"delete",body:z({},ce)})})}function ue(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/data_sets/${ce}.json`,{method:"get"})})}function fe(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/data_sets/${ce==null?void 0:ce.id}/edit_introduce.json`,{method:"put",body:z({},ce)})})}function me(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/data_sets/${ce==null?void 0:ce.id}/used_shixuns.json`,{method:"get",params:z({},ce)})})}function ve(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/shixuns/${ce}/data_sets_list.json`,{method:"get"})})}function he(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/data_sets/${ce}/delete.json`,{method:"delete"})})}function ge(ce){return ie(this,null,function*(){return(0,ze.ZP)("/api/teach_group_shares.json",{method:"post",body:z({},ce)})})}function xe(ce){return ie(this,null,function*(){return(0,ze.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:z({},ce)})})}function Ce(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/data_sets/${ce==null?void 0:ce.id}/edit_file_info.json`,{method:"put",body:z({},ce)})})}function je(ce){return ie(this,null,function*(){return(0,ze.ZP)("/api/visit_logs.json",{method:"get",params:z({},ce)})})}function Ee(ce){return ie(this,null,function*(){return(0,ze.ZP)(`/api/attachments/${ce==null?void 0:ce.id}/update_download.json`,{method:"get"})})}},58489:function(ur,Zt,Je){"use strict";Je.d(Zt,{AL:function(){return ge},Iy:function(){return le},Qv:function(){return te},ez:function(){return he},jb:function(){return E}});var ze=Je(32834),Ct=Je.n(ze),y=Je(11690),Te=Je.n(y);let be=1;function x(ce,ye){const we=ce.match(/^(\s+)(?:```)/);if(we===null)return ye;const De=we[1];return ye.split(`
`).map(Re=>{const ke=Re.match(/^\s+/);if(ke===null)return Re;const[_e]=ke;return _e.length>=De.length?Re.slice(De.length):Re}).join(`
`)}let z=[],ie=["<ul>"];const oe=new(Ct()).Renderer,ee=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){z.length=0,ie=["<ul>"]}const E={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function ne(ce,ye,we,De){if(ye>=ce.length||ce[ye].level<=we)return ye;var Re=ce[ye];De.push("<li><a href='#"+be+Re.anchor+"'>"+Re.text+"</a>"),ye++;var ke=[];return ye=ne(ce,ye,Re.level,ke),ke.length>0&&(De.push("<ul>"),ke.forEach(function(_e){De.push(_e)}),De.push("</ul>")),De.push("</li>"),ye=ne(ce,ye,we,De),ye}function te(){return ne(z,0,0,ie),ie.push("</ul>"),ie.join("")}const se={heading(ce){const ye=ee.exec(ce);if(be+=1,ye)return{type:"heading",raw:ye[0],depth:ye[1].length,text:ye[2]}},fences(ce){const ye=this.rules.block.fences.exec(ce);if(ye){const we=ye[0];let De=x(we,ye[3]||"");const Re=ye[2]?ye[2].trim():ye[2];if(["latex","katex","math"].indexOf(Re)>=0){const ke=me(),_e=De;De=ke,ve[ke]={type:"block",expression:_e}}return{type:"code",raw:we,lang:Re,text:De}}}},ue=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let fe=0;const me=()=>`__special_katext_id_${fe++}__`;let ve={};function he(){return ve}function ge(){fe=0,ve={}}function xe(ce){return ce=ce.replace(ue,(ye,we)=>{const De=me();return ve[De]={type:"inline",expression:we},De}),ce}const Ce=oe.listitem;oe.listitem=function(ce){return Ce(xe(ce))};const je=oe.paragraph;oe.paragraph=function(ce){return je(xe(ce))};const Ee=oe.tablecell;oe.tablecell=function(ce,ye){return Ee(xe(ce),ye)},oe.code=function(ce,ye,we){const De=(ye||"").match(/\S*/)[0];return De?["latex","katex","math"].indexOf(De)>=0?`<p class='editormd-tex'>${ce}</p>`:`<pre class="prettyprint linenums"><code class="language-${ye}">${we?ce:(0,y.escape)(ce,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(we?ce:(0,y.escape)(ce,!0))+"</code></pre>"},oe.heading=function(ce,ye,we){let De=this.options.headerPrefix+we.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return z.push({anchor:De,level:ye,text:ce}),"<h"+ye+' id="'+be+De+'">'+ce+"</h"+ye+">"},Ct().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ct().use({tokenizer:se,renderer:oe}),Zt.ZP=Ct()},47257:function(ur){(function(Zt){(function(Je){if(1)ur.exports=Je();else var ze})(function(){var Je,ze,Ct;return function(){function y(Te,be,x){function z(ee,le){if(!be[ee]){if(!Te[ee]){var E=void 0;if(!le&&E)return require(ee,!0);if(ie)return ie(ee,!0);var ne=new Error("Cannot find module '"+ee+"'");throw ne.code="MODULE_NOT_FOUND",ne}var te=be[ee]={exports:{}};Te[ee][0].call(te.exports,function(se){var ue=Te[ee][1][se];return z(ue||se)},te,te.exports,y,Te,be,x)}return be[ee].exports}for(var ie=void 0,oe=0;oe<x.length;oe++)z(x[oe]);return z}return y}()({1:[function(y,Te,be){"use strict";var x=y("./browser/client");x.Buffer=y("buffer").Buffer,x.urllib=y("../shims/xhr"),x.version=y("./browser/version").version,Te.exports=x},{"../shims/xhr":475,"./browser/client":3,"./browser/version":6,buffer:90}],2:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=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 oe=y("assert"),ee=y("../common/utils/checkBucketName"),le=ee.checkBucketName,E=be;function ne(se){return Array.isArray?Array.isArray(se):Object.prototype.toString.call(se)==="[object Array]"}function te(se){return se?ne(se)?se:[se]:[]}E.useBucket=function(ue){return le(ue),this.options.bucket=ue,this},E.setBucket=function(ue){return le(ue),this.options.bucket=ue,this},E.getBucket=function(){return this.options.bucket},E.deleteBucket=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve){var he,ge;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return he=this._bucketRequestParams("DELETE",me,"",ve),Ce.next=3,this.request(he);case 3:if(ge=Ce.sent,!(ge.status===200||ge.status===204)){Ce.next=6;break}return Ce.abrupt("return",{res:ge.res});case 6:return Ce.next=8,this.requestError(ge);case 8:throw Ce.sent;case 9:case"end":return Ce.stop()}},fe,this)}));function ue(fe,me){return se.apply(this,arguments)}return ue}(),E.putBucketACL=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve,he){var ge,xe;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ge=this._bucketRequestParams("PUT",me,"acl",he),ge.headers={"x-oss-acl":ve},ge.successStatuses=[200],je.next=5,this.request(ge);case 5:return xe=je.sent,je.abrupt("return",{bucket:xe.headers.location&&xe.headers.location.substring(1)||null,res:xe.res});case 7:case"end":return je.stop()}},fe,this)}));function ue(fe,me,ve){return se.apply(this,arguments)}return ue}(),E.getBucketACL=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve){var he,ge;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return he=this._bucketRequestParams("GET",me,"acl",ve),he.successStatuses=[200],he.xmlResponse=!0,Ce.next=5,this.request(he);case 5:return ge=Ce.sent,Ce.abrupt("return",{acl:ge.data.AccessControlList.Grant,owner:{id:ge.data.Owner.ID,displayName:ge.data.Owner.DisplayName},res:ge.res});case 7:case"end":return Ce.stop()}},fe,this)}));function ue(fe,me){return se.apply(this,arguments)}return ue}(),E.putBucketLogging=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve,he){var ge,xe,Ce;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ge=this._bucketRequestParams("PUT",me,"logging",he),xe=`<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
<LoggingEnabled>
<TargetBucket>`.concat(me,`</TargetBucket>
`),ve&&(xe+="<TargetPrefix>".concat(ve,`</TargetPrefix>
`)),xe+=`</LoggingEnabled>
</BucketLoggingStatus>`,ge.content=xe,ge.mime="xml",ge.successStatuses=[200],Ee.next=9,this.request(ge);case 9:return Ce=Ee.sent,Ee.abrupt("return",{res:Ce.res});case 11:case"end":return Ee.stop()}},fe,this)}));function ue(fe,me,ve){return se.apply(this,arguments)}return ue}(),E.getBucketLogging=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve){var he,ge,xe;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return he=this._bucketRequestParams("GET",me,"logging",ve),he.successStatuses=[200],he.xmlResponse=!0,je.next=5,this.request(he);case 5:return ge=je.sent,xe=ge.data.LoggingEnabled,je.abrupt("return",{enable:!!xe,prefix:xe&&xe.TargetPrefix||null,res:ge.res});case 8:case"end":return je.stop()}},fe,this)}));function ue(fe,me){return se.apply(this,arguments)}return ue}(),E.deleteBucketLogging=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve){var he,ge;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return he=this._bucketRequestParams("DELETE",me,"logging",ve),he.successStatuses=[204,200],Ce.next=4,this.request(he);case 4:return ge=Ce.sent,Ce.abrupt("return",{res:ge.res});case 6:case"end":return Ce.stop()}},fe,this)}));function ue(fe,me){return se.apply(this,arguments)}return ue}(),E.putBucketCORS=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve,he){var ge,xe,Ce,je,Ee,ce,ye,we,De,Re;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:for(ve=ve||[],oe(ve.length,"rules is required"),ve.forEach(function(Ze){oe(Ze.allowedOrigin,"allowedOrigin is required"),oe(Ze.allowedMethod,"allowedMethod is required")}),ge=this._bucketRequestParams("PUT",me,"cors",he),xe=`<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration>`,Ce=function(Ve){xe+="<AllowedOrigin>".concat(Ve,"</AllowedOrigin>")},je=function(Ve){xe+="<AllowedMethod>".concat(Ve,"</AllowedMethod>")},Ee=function(Ve){xe+="<AllowedHeader>".concat(Ve,"</AllowedHeader>")},ce=function(Ve){xe+="<ExposeHeader>".concat(Ve,"</ExposeHeader>")},ye=0,we=ve.length;ye<we;ye++)De=ve[ye],xe+="<CORSRule>",te(De.allowedOrigin).forEach(Ce),te(De.allowedMethod).forEach(je),te(De.allowedHeader).forEach(Ee),te(De.exposeHeader).forEach(ce),De.maxAgeSeconds&&(xe+="<MaxAgeSeconds>".concat(De.maxAgeSeconds,"</MaxAgeSeconds>")),xe+="</CORSRule>";return xe+="</CORSConfiguration>",ge.content=xe,ge.mime="xml",ge.successStatuses=[200],_e.next=16,this.request(ge);case 16:return Re=_e.sent,_e.abrupt("return",{res:Re.res});case 18:case"end":return _e.stop()}},fe,this)}));function ue(fe,me,ve){return se.apply(this,arguments)}return ue}(),E.getBucketCORS=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve){var he,ge,xe,Ce;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return he=this._bucketRequestParams("GET",me,"cors",ve),he.successStatuses=[200],he.xmlResponse=!0,Ee.next=5,this.request(he);case 5:return ge=Ee.sent,xe=[],ge.data&&ge.data.CORSRule&&(Ce=ge.data.CORSRule,ne(Ce)||(Ce=[Ce]),Ce.forEach(function(ce){var ye={};Object.keys(ce).forEach(function(we){ye[we.slice(0,1).toLowerCase()+we.slice(1,we.length)]=ce[we]}),xe.push(ye)})),Ee.abrupt("return",{rules:xe,res:ge.res});case 9:case"end":return Ee.stop()}},fe,this)}));function ue(fe,me){return se.apply(this,arguments)}return ue}(),E.deleteBucketCORS=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve){var he,ge;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return he=this._bucketRequestParams("DELETE",me,"cors",ve),he.successStatuses=[204],Ce.next=4,this.request(he);case 4:return ge=Ce.sent,Ce.abrupt("return",{res:ge.res});case 6:case"end":return Ce.stop()}},fe,this)}));function ue(fe,me){return se.apply(this,arguments)}return ue}(),E.putBucketReferer=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve,he,ge){var xe,Ce,je,Ee;return z.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(xe=this._bucketRequestParams("PUT",me,"referer",ge),Ce=`<?xml version="1.0" encoding="UTF-8"?>
<RefererConfiguration>
`,Ce+=" <AllowEmptyReferer>".concat(ve?"true":"false",`</AllowEmptyReferer>
`),he&&he.length>0){for(Ce+=` <RefererList>
`,je=0;je<he.length;je++)Ce+=" <Referer>".concat(he[je],`</Referer>
`);Ce+=` </RefererList>
`}else Ce+=` <RefererList />
`;return Ce+="</RefererConfiguration>",xe.content=Ce,xe.mime="xml",xe.successStatuses=[200],ye.next=10,this.request(xe);case 10:return Ee=ye.sent,ye.abrupt("return",{res:Ee.res});case 12:case"end":return ye.stop()}},fe,this)}));function ue(fe,me,ve,he){return se.apply(this,arguments)}return ue}(),E.getBucketReferer=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve){var he,ge,xe;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return he=this._bucketRequestParams("GET",me,"referer",ve),he.successStatuses=[200],he.xmlResponse=!0,je.next=5,this.request(he);case 5:return ge=je.sent,xe=ge.data.RefererList.Referer||null,xe&&(ne(xe)||(xe=[xe])),je.abrupt("return",{allowEmpty:ge.data.AllowEmptyReferer==="true",referers:xe,res:ge.res});case 9:case"end":return je.stop()}},fe,this)}));function ue(fe,me){return se.apply(this,arguments)}return ue}(),E.deleteBucketReferer=function(){var se=(0,ie.default)(z.default.mark(function fe(me,ve){return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ge.next=2,this.putBucketReferer(me,!0,null,ve);case 2:return ge.abrupt("return",ge.sent);case 3:case"end":return ge.stop()}},fe,this)}));function ue(fe,me){return se.apply(this,arguments)}return ue}(),E._bucketRequestParams=function(ue,fe,me,ve){return{method:ue,bucket:fe,subres:me,timeout:ve&&ve.timeout,ctx:ve&&ve.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,Te,be){(function(x,z){(function(){"use strict";var ie=y("@babel/runtime/helpers/interopRequireDefault"),oe=ie(y("@babel/runtime/regenerator")),ee=ie(y("@babel/runtime/helpers/asyncToGenerator"));y("core-js/modules/es.function.name.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.assign.js"),y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.replace.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.symbol.js"),y("core-js/modules/es.symbol.description.js"),y("core-js/modules/es.array.slice.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.to-string.js");var le=y("debug")("ali-oss"),E=y("xml2js"),ne=y("agentkeepalive"),te=y("merge-descriptors"),se=y("platform"),ue=y("utility"),fe=y("urllib"),me=y("./version"),ve=y("bowser"),he=y("../common/signUtils"),ge=y("../common/client/initOptions"),xe=y("../common/utils/createRequest"),Ce=xe.createRequest,je=y("../common/utils/encoder"),Ee=je.encoder,ce=y("../common/client/getReqUrl"),ye=ce.getReqUrl,we=y("../common/utils/setSTSToken"),De=we.setSTSToken,Re=y("../common/utils/retry"),ke=Re.retry,_e=y("../common/utils/isFunction"),Ze=_e.isFunction,Ve=new ne;function Qe(){var nt=se.name,Xe=se.version;nt&&nt.toLowerCase&&nt.toLowerCase()==="ie"&&Xe.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function ut(){return location&&location.protocol==="https:"}function Ie(nt,Xe){if(Qe(),!(this instanceof Ie))return new Ie(nt,Xe);nt&&nt.inited?this.options=nt:this.options=Ie.initOptions(nt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=fe,this.agent=this.options.agent||Ve),this.ctx=Xe,this.userAgent=this._getUserAgent(),this.stsTokenFreshTime=new Date,this.options.amendTimeSkewed=0}Te.exports=Ie,Ie.initOptions=function(Xe){Xe.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var et=Object.assign({secure:ut(),useFetch:!1},Xe);return ge(et)};var We=Ie.prototype;We.debug=le,te(We,y("./object")),te(We,y("./bucket")),te(We,y("../common/bucket/getBucketWebsite")),te(We,y("../common/bucket/putBucketWebsite")),te(We,y("../common/bucket/deleteBucketWebsite")),te(We,y("../common/bucket/getBucketLifecycle")),te(We,y("../common/bucket/putBucketLifecycle")),te(We,y("../common/bucket/deleteBucketLifecycle")),te(We,y("../common/bucket/putBucketVersioning")),te(We,y("../common/bucket/getBucketVersioning")),te(We,y("../common/bucket/getBucketInventory")),te(We,y("../common/bucket/deleteBucketInventory")),te(We,y("../common/bucket/listBucketInventory")),te(We,y("../common/bucket/putBucketInventory")),te(We,y("../common/bucket/abortBucketWorm")),te(We,y("../common/bucket/completeBucketWorm")),te(We,y("../common/bucket/extendBucketWorm")),te(We,y("../common/bucket/getBucketWorm")),te(We,y("../common/bucket/initiateBucketWorm")),te(We,y("./managed-upload")),te(We,y("../common/multipart-copy")),te(We,y("../common/multipart")),te(We,y("../common/parallel")),We.signature=function(Xe){return this.debug("authorization stringToSign: %s",Xe,"info"),he.computeSignature(this.options.accessKeySecret,Xe,this.options.headerEncoding)},We._getReqUrl=ye,We.authorization=function(Xe,et,Ye,dt){var tt=he.buildCanonicalString(Xe.toUpperCase(),et,{headers:dt,parameters:Ye});return he.authorization(this.options.accessKeyId,this.options.accessKeySecret,tt,this.options.headerEncoding)},We.request=function(){var nt=(0,ee.default)(oe.default.mark(function Xe(et){var Ye=this;return oe.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:if(!this.options.retryMax){tt.next=6;break}return tt.next=3,ke(it.bind(this),this.options.retryMax,{errorHandler:function(st){var He=function(Ge){if(et.stream)return!1;var Me=[-1,-2].includes(Ge.status),Ke=Ye.options.requestErrorRetryHandle||function(){return!0};return Me&&Ke(Ge)};return!!He(st)}})(et);case 3:return tt.abrupt("return",tt.sent);case 6:return tt.abrupt("return",it.call(this,et));case 7:case"end":return tt.stop()}},Xe,this)}));return function(Xe){return nt.apply(this,arguments)}}();function it(nt){return at.apply(this,arguments)}function at(){return at=(0,ee.default)(oe.default.mark(function nt(Xe){var et,Ye,dt,tt,lt,st;return oe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!(this.options.stsToken&&Ze(this.options.refreshSTSToken))){Ne.next=3;break}return Ne.next=3,De.call(this);case 3:return et=Ce.call(this,Xe),this.options.useFetch||(et.params.mode="disable-fetch"),tt=!!Xe.stream,Ne.prev=6,Ne.next=9,this.urllib.request(et.url,et.params);case 9:Ye=Ne.sent,this.debug("response %s %s, got %s, headers: %j",Xe.method,et.url,Ye.status,Ye.headers,"info"),Ne.next=16;break;case 13:Ne.prev=13,Ne.t0=Ne.catch(6),dt=Ne.t0;case 16:if(!(Ye&&Xe.successStatuses&&Xe.successStatuses.indexOf(Ye.status)===-1)){Ne.next=28;break}return Ne.next=19,this.requestError(Ye);case 19:if(lt=Ne.sent,!(lt.code==="RequestTimeTooSkewed"&&!tt)){Ne.next=25;break}return this.options.amendTimeSkewed=+new Date(lt.serverTime)-new Date,Ne.next=24,this.request(Xe);case 24:return Ne.abrupt("return",Ne.sent);case 25:lt.params=Xe,Ne.next=32;break;case 28:if(!dt){Ne.next=32;break}return Ne.next=31,this.requestError(dt);case 31:lt=Ne.sent;case 32:if(!lt){Ne.next=34;break}throw lt;case 34:if(!Xe.xmlResponse){Ne.next=39;break}return Ne.next=37,this.parseXML(Ye.data);case 37:st=Ne.sent,Ye.data=st;case 39:return Ne.abrupt("return",Ye);case 40:case"end":return Ne.stop()}},nt,this,[[6,13]])})),at.apply(this,arguments)}We._getResource=function(Xe){var et="/";return Xe.bucket&&(et+="".concat(Xe.bucket,"/")),Xe.object&&(et+=Ee(Xe.object,this.options.headerEncoding)),et},We._escape=function(Xe){return ue.encodeURIComponent(Xe).replace(/%2F/g,"/")},We._getUserAgent=function(){var Xe=z&&z.browser?"js":"nodejs",et="aliyun-sdk-".concat(Xe,"/").concat(me.version),Ye=se.description;return!Ye&&z&&(Ye="Node.js ".concat(z.version.slice(1)," on ").concat(z.platform," ").concat(z.arch)),this._checkUserAgent("".concat(et," ").concat(Ye))},We._checkUserAgent=function(Xe){var et=Xe.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return et},We.checkBrowserAndVersion=function(Xe,et){return ve.name===Xe&&ve.version.split(".")[0]===et},We.parseXML=function(Xe){return new Promise(function(et,Ye){x.isBuffer(Xe)&&(Xe=Xe.toString()),E.parseString(Xe,{explicitRoot:!1,explicitArray:!1},function(dt,tt){dt?Ye(dt):et(tt)})})},We.requestError=function(){var nt=(0,ee.default)(oe.default.mark(function et(Ye){var dt,tt,lt,st;return oe.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(dt=null,!(!Ye.data||!Ye.data.length)){Ne.next=5;break}Ye.status===-1||Ye.status===-2?(dt=new Error(Ye.message),dt.name=Ye.name,dt.status=Ye.status,dt.code=Ye.name):(Ye.status===404?(dt=new Error("Object not exists"),dt.name="NoSuchKeyError",dt.status=404,dt.code="NoSuchKey"):Ye.status===412?(dt=new Error("Pre condition failed"),dt.name="PreconditionFailedError",dt.status=412,dt.code="PreconditionFailed"):(dt=new Error("Unknow error, status: ".concat(Ye.status)),dt.name="UnknownError",dt.status=Ye.status),dt.requestId=Ye.headers["x-oss-request-id"],dt.host=""),Ne.next=32;break;case 5:return tt=String(Ye.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:lt=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=Ye.status,Ne.t1.requestId=Ye.headers["x-oss-request-id"],Ne.abrupt("return",Ne.t1);case 23:st=lt.Message||"unknow request error, status: ".concat(Ye.status),lt.Condition&&(st+=" (condition: ".concat(lt.Condition,")")),dt=new Error(st),dt.name=lt.Code?"".concat(lt.Code,"Error"):"UnknownError",dt.status=Ye.status,dt.code=lt.Code,dt.requestId=lt.RequestId,dt.hostId=lt.HostId,dt.serverTime=lt.ServerTime;case 32:return this.debug("generate error %j",dt,"error"),Ne.abrupt("return",dt);case 34:case"end":return Ne.stop()}},et,this,[[7,16]])}));function Xe(et){return nt.apply(this,arguments)}return Xe}()}).call(this)}).call(this,{isBuffer:y("../../node_modules/is-buffer/index.js")},y("_process"))},{"../../node_modules/is-buffer/index.js":366,"../common/bucket/abortBucketWorm":7,"../common/bucket/completeBucketWorm":8,"../common/bucket/deleteBucketInventory":9,"../common/bucket/deleteBucketLifecycle":10,"../common/bucket/deleteBucketWebsite":11,"../common/bucket/extendBucketWorm":12,"../common/bucket/getBucketInventory":13,"../common/bucket/getBucketLifecycle":14,"../common/bucket/getBucketVersioning":15,"../common/bucket/getBucketWebsite":16,"../common/bucket/getBucketWorm":17,"../common/bucket/initiateBucketWorm":18,"../common/bucket/listBucketInventory":19,"../common/bucket/putBucketInventory":20,"../common/bucket/putBucketLifecycle":21,"../common/bucket/putBucketVersioning":22,"../common/bucket/putBucketWebsite":23,"../common/client/getReqUrl":25,"../common/client/initOptions":26,"../common/multipart":30,"../common/multipart-copy":29,"../common/parallel":49,"../common/signUtils":50,"../common/utils/createRequest":56,"../common/utils/encoder":59,"../common/utils/isFunction":68,"../common/utils/retry":74,"../common/utils/setSTSToken":76,"./bucket":2,"./managed-upload":4,"./object":5,"./version":6,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,agentkeepalive:81,bowser:88,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.function.name.js":284,"core-js/modules/es.object.assign.js":287,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/es.string.split.js":307,"core-js/modules/es.symbol.description.js":310,"core-js/modules/es.symbol.js":313,debug:465,"merge-descriptors":372,platform:379,urllib:475,utility:474,xml2js:426}],4:[function(y,Te,be){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),ie=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 oe=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("util"),le=y("path"),E=y("mime"),ne=y("copy-to"),te=y("../common/utils/isBlob"),se=te.isBlob,ue=y("../common/utils/isFile"),fe=ue.isFile,me=y("../common/utils/isBuffer"),ve=me.isBuffer,he=be;he.multipartUpload=function(){var Ee=(0,oe.default)(ie.default.mark(function ye(we,De){var Re,ke,_e,Ze,Ve,Qe,ut,Ie,We,it=arguments;return ie.default.wrap(function(nt){for(;;)switch(nt.prev=nt.next){case 0:if(Re=it.length>2&&it[2]!==void 0?it[2]:{},this.resetCancelFlag(),Re.disabledMD5=Re.disabledMD5===void 0?!0:!!Re.disabledMD5,!(Re.checkpoint&&Re.checkpoint.uploadId)){nt.next=8;break}return De&&fe(De)&&(Re.checkpoint.file=De),nt.next=7,this._resumeMultipart(Re.checkpoint,Re);case 7:return nt.abrupt("return",nt.sent);case 8:return ke=102400,Re.mime||(fe(De)?Re.mime=E.getType(le.extname(De.name)):se(De)?Re.mime=De.type:ve(De)?Re.mime="":Re.mime=E.getType(le.extname(De))),Re.headers=Re.headers||{},this._convertMetaToHeaders(Re.meta,Re.headers),nt.next=14,this._getFileSize(De);case 14:if(_e=nt.sent,!(_e<ke)){nt.next=26;break}return Re.contentLength=_e,nt.next=19,this.put(we,De,Re);case 19:if(Ze=nt.sent,!(Re&&Re.progress)){nt.next=23;break}return nt.next=23,Re.progress(1);case 23:return Ve={res:Ze.res,bucket:this.options.bucket,name:we,etag:Ze.res.headers.etag},(Re.headers&&Re.headers["x-oss-callback"]||Re.callback)&&(Ve.data=Ze.data),nt.abrupt("return",Ve);case 26:if(!(Re.partSize&&parseInt(Re.partSize,10)!==Re.partSize)){nt.next=28;break}throw new Error("partSize must be int number");case 28:if(!(Re.partSize&&Re.partSize<ke)){nt.next=30;break}throw new Error("partSize must not be smaller than ".concat(ke));case 30:return nt.next=32,this.initMultipartUpload(we,Re);case 32:if(Qe=nt.sent,ut=Qe.uploadId,Ie=this._getPartSize(_e,Re.partSize),We={file:De,name:we,fileSize:_e,partSize:Ie,uploadId:ut,doneParts:[]},!(Re&&Re.progress)){nt.next=39;break}return nt.next=39,Re.progress(0,We,Qe.res);case 39:return nt.next=41,this._resumeMultipart(We,Re);case 41:return nt.abrupt("return",nt.sent);case 42:case"end":return nt.stop()}},ye,this)}));function ce(ye,we){return Ee.apply(this,arguments)}return ce}(),he._resumeMultipart=function(){var Ee=(0,oe.default)(ie.default.mark(function ye(we,De){var Re,ke,_e,Ze,Ve,Qe,ut,Ie,We,it,at,nt,Xe,et,Ye,dt,tt,lt,st;return ie.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(Re=this,!this.isCancel()){Ne.next=3;break}throw this._makeCancelEvent();case 3:return ke=we.file,_e=we.fileSize,Ze=we.partSize,Ve=we.uploadId,Qe=we.doneParts,ut=we.name,Ie=[],Qe.length>0&&ne(Qe).to(Ie),We=this._divideParts(_e,Ze),it=We.length,at=!1,nt=function(Me,Ke){return new Promise(function(){var ct=(0,oe.default)(ie.default.mark(function pt(rt,Ae){var Pe,Ue,ot,Oe,Se;return ie.default.wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:if(Be.prev=0,Me.isCancel()){Be.next=29;break}return Pe=We[Ke-1],Be.next=5,Me._createBuffer(ke,Pe.start,Pe.end);case 5:return Ue=Be.sent,ot={content:Ue,size:Pe.end-Pe.start},Be.prev=7,Be.next=10,Me._uploadPart(ut,Ve,Ke,ot,De);case 10:Oe=Be.sent,Be.next=18;break;case 13:if(Be.prev=13,Be.t0=Be.catch(7),Be.t0.status!==404){Be.next=17;break}throw Me._makeAbortEvent();case 17:throw Be.t0;case 18:if(!(!Me.isCancel()&&!at)){Be.next=26;break}if(we.doneParts.push({number:Ke,etag:Oe.res.headers.etag}),!De.progress){Be.next=23;break}return Be.next=23,De.progress(Qe.length/(it+1),we,Oe.res);case 23:rt({number:Ke,etag:Oe.res.headers.etag}),Be.next=27;break;case 26:rt();case 27:Be.next=30;break;case 29:rt();case 30:Be.next=41;break;case 32:Be.prev=32,Be.t1=Be.catch(0),Se=new Error,Se.name=Be.t1.name,Se.message=Be.t1.message,Se.stack=Be.t1.stack,Se.partNum=Ke,ne(Be.t1).to(Se),Ae(Se);case 41:case"end":return Be.stop()}},pt,null,[[0,32],[7,13]])}));return function(pt,rt){return ct.apply(this,arguments)}}())},Xe=Array.from(new Array(it),function(Ge,Me){return Me+1}),et=Ie.map(function(Ge){return Ge.number}),Ye=Xe.filter(function(Ge){return et.indexOf(Ge)<0}),dt=5,tt=De.parallel||dt,Ne.next=17,this._parallel(Ye,tt,function(Ge){return new Promise(function(Me,Ke){nt(Re,Ge).then(function(ct){ct&&Ie.push(ct),Me()}).catch(function(ct){Ke(ct)})})});case 17:if(lt=Ne.sent,at=!0,st=lt.find(function(Ge){return Ge.name==="abort"}),!st){Ne.next=22;break}throw st;case 22:if(!this.isCancel()){Ne.next=25;break}throw nt=null,this._makeCancelEvent();case 25:if(!(lt&&lt.length>0)){Ne.next=28;break}throw lt[0].message="Failed to upload some parts with error: ".concat(lt[0].toString()," part_num: ").concat(lt[0].partNum),lt[0];case 28:return Ne.next=30,this.completeMultipartUpload(ut,Ve,Ie,De);case 30:return Ne.abrupt("return",Ne.sent);case 31:case"end":return Ne.stop()}},ye,this)}));function ce(ye,we){return Ee.apply(this,arguments)}return ce}(),he._getFileSize=function(){var Ee=(0,oe.default)(ie.default.mark(function ye(we){return ie.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!ve(we)){Re.next=4;break}return Re.abrupt("return",we.length);case 4:if(!(se(we)||fe(we))){Re.next=6;break}return Re.abrupt("return",we.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return Re.stop()}},ye)}));function ce(ye){return Ee.apply(this,arguments)}return ce}();var ge=y("stream"),xe=ge.Readable;function Ce(Ee,ce){if(!(this instanceof Ce))return new Ce(Ee,ce);xe.call(this,ce),this.file=Ee,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}ee.inherits(Ce,xe),Ce.prototype.readFileAndPush=function(ce){if(this.fileBuffer)for(var ye=!0;ye&&this.fileBuffer&&this.start<this.fileBuffer.length;){var we=this.start,De=we+ce;De=De>this.fileBuffer.length?this.fileBuffer.length:De,this.start=De,ye=this.push(this.fileBuffer.slice(we,De))}},Ce.prototype._read=function(ce){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 ye=16*1024;ce=ce||ye;var we=this;this.reader.onload=function(Re){we.fileBuffer=x.from(new Uint8Array(Re.target.result)),we.file=null,we.readFileAndPush(ce)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ce)};function je(Ee){return Ee.arrayBuffer?Ee.arrayBuffer():new Promise(function(ce,ye){var we=new FileReader;we.onload=function(De){ce(De.target.result)},we.onerror=function(De){ye(De)},we.readAsArrayBuffer(Ee)})}he._createBuffer=function(){var Ee=(0,oe.default)(ie.default.mark(function ye(we,De,Re){var ke,_e;return ie.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:if(!(se(we)||fe(we))){Ve.next=8;break}return ke=we.slice(De,Re),Ve.next=4,je(ke);case 4:return _e=Ve.sent,Ve.abrupt("return",x.from(_e));case 8:if(!ve(we)){Ve.next=12;break}return Ve.abrupt("return",we.subarray(De,Re));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return Ve.stop()}},ye)}));function ce(ye,we,De){return Ee.apply(this,arguments)}return ce}(),he._getPartSize=function(ce,ye){var we=1e4,De=1*1024*1024;ye||(ye=De);var Re=Math.ceil(ce/we);return ye<Re&&(ye=Re,console.warn("partSize has been set to ".concat(ye,", because the partSize you provided causes partNumber to be greater than 10,000"))),ye},he._divideParts=function(ce,ye){for(var we=Math.ceil(ce/ye),De=[],Re=0;Re<we;Re++){var ke=ye*Re,_e=Math.min(ke+ye,ce);De.push({start:ke,end:_e})}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,Te,be){"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")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("fs"),ee=y("copy-to"),le=y("path"),E=y("mime"),ne=y("../common/callback"),te=y("merge-descriptors"),se=y("../common/utils/isBlob"),ue=se.isBlob,fe=y("../common/utils/isFile"),me=fe.isFile,ve=y("../common/utils/isBuffer"),he=ve.isBuffer,ge=y("../common/utils/obj2xml"),xe=ge.obj2xml,Ce=be;Ce.append=function(){var je=(0,ie.default)(z.default.mark(function ce(ye,we,De){var Re;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return De=De||{},De.position===void 0&&(De.position="0"),De.subres={append:"",position:De.position},De.method="POST",_e.next=6,this.put(ye,we,De);case 6:return Re=_e.sent,Re.nextAppendPosition=Re.res.headers["x-oss-next-append-position"],_e.abrupt("return",Re);case 9:case"end":return _e.stop()}},ce,this)}));function Ee(ce,ye,we){return je.apply(this,arguments)}return Ee}(),Ce.put=function(){var je=(0,ie.default)(z.default.mark(function ce(ye,we,De){var Re,ke,_e,Ze,Ve;return z.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(De=De||{},De.disabledMD5=De.disabledMD5===void 0?!0:!!De.disabledMD5,De.headers=De.headers||{},ye=this._objectName(ye),!he(we)){ut.next=8;break}Re=we,ut.next=19;break;case 8:if(!(ue(we)||me(we))){ut.next=18;break}return De.mime||(me(we)?De.mime=E.getType(le.extname(we.name)):De.mime=we.type),ut.next=12,this._createBuffer(we,0,we.size);case 12:return Re=ut.sent,ut.next=15,this._getFileSize(we);case 15:De.contentLength=ut.sent,ut.next=19;break;case 18:throw new TypeError("Must provide Buffer/Blob/File for put.");case 19:return this._convertMetaToHeaders(De.meta,De.headers),ke=De.method||"PUT",_e=this._objectRequestParams(ke,ye,De),ne.encodeCallback(_e,De),_e.mime=De.mime,_e.disabledMD5=De.disabledMD5,_e.content=Re,_e.successStatuses=[200],ut.next=29,this.request(_e);case 29:return Ze=ut.sent,Ve={name:ye,url:this._objectUrl(ye),res:Ze.res},_e.headers&&_e.headers["x-oss-callback"]&&(Ve.data=JSON.parse(Ze.data.toString())),ut.abrupt("return",Ve);case 33:case"end":return ut.stop()}},ce,this)}));function Ee(ce,ye,we){return je.apply(this,arguments)}return Ee}(),Ce.putStream=function(){var je=(0,ie.default)(z.default.mark(function ce(ye,we,De){var Re,ke,_e,Ze;return z.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return De=De||{},De.headers=De.headers||{},ye=this._objectName(ye),De.contentLength?De.headers["Content-Length"]=De.contentLength:De.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(De.meta,De.headers),Re=De.method||"PUT",ke=this._objectRequestParams(Re,ye,De),ne.encodeCallback(ke,De),ke.mime=De.mime,ke.stream=we,ke.successStatuses=[200],Qe.next=13,this.request(ke);case 13:return _e=Qe.sent,Ze={name:ye,url:this._objectUrl(ye),res:_e.res},ke.headers&&ke.headers["x-oss-callback"]&&(Ze.data=JSON.parse(_e.data.toString())),Qe.abrupt("return",Ze);case 17:case"end":return Qe.stop()}},ce,this)}));function Ee(ce,ye,we){return je.apply(this,arguments)}return Ee}(),te(Ce,y("../common/object/copyObject")),te(Ce,y("../common/object/getObjectTagging")),te(Ce,y("../common/object/putObjectTagging")),te(Ce,y("../common/object/deleteObjectTagging")),te(Ce,y("../common/image")),te(Ce,y("../common/object/getBucketVersions")),te(Ce,y("../common/object/getACL")),te(Ce,y("../common/object/putACL")),te(Ce,y("../common/object/head")),te(Ce,y("../common/object/delete")),te(Ce,y("../common/object/get")),te(Ce,y("../common/object/putSymlink")),te(Ce,y("../common/object/getSymlink")),te(Ce,y("../common/object/deleteMulti")),te(Ce,y("../common/object/getObjectMeta")),te(Ce,y("../common/object/getObjectUrl")),te(Ce,y("../common/object/generateObjectUrl")),te(Ce,y("../common/object/signatureUrl")),te(Ce,y("../common/object/asyncSignatureUrl")),Ce.putMeta=function(){var je=(0,ie.default)(z.default.mark(function ce(ye,we,De){var Re;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return _e.next=2,this.copy(ye,ye,{meta:we||{},timeout:De&&De.timeout,ctx:De&&De.ctx});case 2:return Re=_e.sent,_e.abrupt("return",Re);case 4:case"end":return _e.stop()}},ce,this)}));function Ee(ce,ye,we){return je.apply(this,arguments)}return Ee}(),Ce.list=function(){var je=(0,ie.default)(z.default.mark(function ce(ye,we){var De,Re,ke,_e,Ze;return z.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:return De=this._objectRequestParams("GET","",we),De.query=ye,De.xmlResponse=!0,De.successStatuses=[200],Qe.next=6,this.request(De);case 6:return Re=Qe.sent,ke=Re.data.Contents||[],_e=this,ke&&(Array.isArray(ke)||(ke=[ke]),ke=ke.map(function(ut){return{name:ut.Key,url:_e._objectUrl(ut.Key),lastModified:ut.LastModified,etag:ut.ETag,type:ut.Type,size:Number(ut.Size),storageClass:ut.StorageClass,owner:{id:ut.Owner.ID,displayName:ut.Owner.DisplayName}}})),Ze=Re.data.CommonPrefixes||null,Ze&&(Array.isArray(Ze)||(Ze=[Ze]),Ze=Ze.map(function(ut){return ut.Prefix})),Qe.abrupt("return",{res:Re.res,objects:ke,prefixes:Ze,nextMarker:Re.data.NextMarker||null,isTruncated:Re.data.IsTruncated==="true"});case 13:case"end":return Qe.stop()}},ce,this)}));function Ee(ce,ye){return je.apply(this,arguments)}return Ee}(),Ce.listV2=function(){var je=(0,ie.default)(z.default.mark(function ce(ye){var we,De,Re,ke,_e,Ze,Ve,Qe=arguments;return z.default.wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:return we=Qe.length>1&&Qe[1]!==void 0?Qe[1]:{},De=ye["continuation-token"]||ye.continuationToken,De&&(we.subres=Object.assign({"continuation-token":De},we.subres)),Re=this._objectRequestParams("GET","",we),Re.query=Object.assign({"list-type":2},ye),delete Re.query["continuation-token"],delete Re.query.continuationToken,Re.xmlResponse=!0,Re.successStatuses=[200],Ie.next=11,this.request(Re);case 11:return ke=Ie.sent,_e=ke.data.Contents||[],Ze=this,_e&&(Array.isArray(_e)||(_e=[_e]),_e=_e.map(function(We){var it=null;return We.Owner&&(it={id:We.Owner.ID,displayName:We.Owner.DisplayName}),{name:We.Key,url:Ze._objectUrl(We.Key),lastModified:We.LastModified,etag:We.ETag,type:We.Type,size:Number(We.Size),storageClass:We.StorageClass,owner:it}})),Ve=ke.data.CommonPrefixes||null,Ve&&(Array.isArray(Ve)||(Ve=[Ve]),Ve=Ve.map(function(We){return We.Prefix})),Ie.abrupt("return",{res:ke.res,objects:_e,prefixes:Ve,isTruncated:ke.data.IsTruncated==="true",keyCount:+ke.data.KeyCount,continuationToken:ke.data.ContinuationToken||null,nextContinuationToken:ke.data.NextContinuationToken||null});case 18:case"end":return Ie.stop()}},ce,this)}));function Ee(ce){return je.apply(this,arguments)}return Ee}(),Ce.restore=function(){var je=(0,ie.default)(z.default.mark(function ce(ye){var we,De,Re,ke,_e=arguments;return z.default.wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:return we=_e.length>1&&_e[1]!==void 0?_e[1]:{type:"Archive"},we=we||{},we.subres=Object.assign({restore:""},we.subres),we.versionId&&(we.subres.versionId=we.versionId),De=this._objectRequestParams("POST",ye,we),we.type==="ColdArchive"&&(Re={RestoreRequest:{Days:we.Days?we.Days:2,JobParameters:{Tier:we.JobParameters?we.JobParameters:"Standard"}}},De.content=xe(Re,{headers:!0}),De.mime="xml"),De.successStatuses=[202],Ve.next=9,this.request(De);case 9:return ke=Ve.sent,Ve.abrupt("return",{res:ke.res});case 11:case"end":return Ve.stop()}},ce,this)}));function Ee(ce){return je.apply(this,arguments)}return Ee}(),Ce._objectUrl=function(Ee){return this._getReqUrl({bucket:this.options.bucket,object:Ee})},Ce._objectRequestParams=function(Ee,ce,ye){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");ye=ye||{},ce=this._objectName(ce);var we={object:ce,bucket:this.options.bucket,method:Ee,subres:ye&&ye.subres,timeout:ye&&ye.timeout,ctx:ye&&ye.ctx};return ye.headers&&(we.headers={},ee(ye.headers).to(we.headers)),we},Ce._objectName=function(Ee){return Ee.replace(/^\/+/,"")},Ce._convertMetaToHeaders=function(Ee,ce){Ee&&Object.keys(Ee).forEach(function(ye){ce["x-oss-meta-".concat(ye)]=Ee[ye]})},Ce._deleteFileSafe=function(Ee){var ce=this;return new Promise(function(ye){oe.exists(Ee,function(we){we?oe.unlink(Ee,function(De){De&&ce.debug("unlink %j error: %s",Ee,De,"error"),ye()}):ye()})})}},{"../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,Te,be){"use strict";be.version="6.18.1"},{}],7:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.abortBucketWorm=void 0;var oe=y("../utils/checkBucketName");function ee(E,ne){return le.apply(this,arguments)}function le(){return le=(0,ie.default)(z.default.mark(function E(ne,te){var se,ue;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return oe.checkBucketName(ne),se=this._bucketRequestParams("DELETE",ne,"worm",te),me.next=4,this.request(se);case 4:return ue=me.sent,me.abrupt("return",{res:ue.res,status:ue.status});case 6:case"end":return me.stop()}},E,this)})),le.apply(this,arguments)}be.abortBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],8:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.completeBucketWorm=void 0;var oe=y("../utils/checkBucketName");function ee(E,ne,te){return le.apply(this,arguments)}function le(){return le=(0,ie.default)(z.default.mark(function E(ne,te,se){var ue,fe;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return oe.checkBucketName(ne),ue=this._bucketRequestParams("POST",ne,{wormId:te},se),ve.next=4,this.request(ue);case 4:return fe=ve.sent,ve.abrupt("return",{res:fe.res,status:fe.status});case 6:case"end":return ve.stop()}},E,this)})),le.apply(this,arguments)}be.completeBucketWorm=ee},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],9:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.deleteBucketInventory=void 0;var oe=y("../utils/checkBucketName");function ee(E,ne){return le.apply(this,arguments)}function le(){return le=(0,ie.default)(z.default.mark(function E(ne,te){var se,ue,fe,me,ve=arguments;return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return se=ve.length>2&&ve[2]!==void 0?ve[2]:{},ue=Object.assign({inventory:"",inventoryId:te},se.subres),oe.checkBucketName(ne),fe=this._bucketRequestParams("DELETE",ne,ue,se),fe.successStatuses=[204],ge.next=7,this.request(fe);case 7:return me=ge.sent,ge.abrupt("return",{status:me.status,res:me.res});case 9:case"end":return ge.stop()}},E,this)})),le.apply(this,arguments)}be.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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=be;le.deleteBucketLifecycle=function(){var E=(0,ie.default)(z.default.mark(function te(se,ue){var fe,me;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ee(se),fe=this._bucketRequestParams("DELETE",se,"lifecycle",ue),fe.successStatuses=[204],he.next=5,this.request(fe);case 5:return me=he.sent,he.abrupt("return",{res:me.res});case 7:case"end":return he.stop()}},te,this)}));function ne(te,se){return E.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],11:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=be;le.deleteBucketWebsite=function(){var E=(0,ie.default)(z.default.mark(function te(se,ue){var fe,me;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return ee(se),fe=this._bucketRequestParams("DELETE",se,"website",ue),fe.successStatuses=[204],he.next=5,this.request(fe);case 5:return me=he.sent,he.abrupt("return",{res:me.res});case 7:case"end":return he.stop()}},te,this)}));function ne(te,se){return E.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],12:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.extendBucketWorm=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function le(ne,te,se,ue){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(te,se,ue,fe){var me,ve,he;return z.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return oe.checkBucketName(te),me=this._bucketRequestParams("POST",te,{wormExtend:"",wormId:se},fe),ve={ExtendWormConfiguration:{RetentionPeriodInDays:ue}},me.mime="xml",me.content=ee.obj2xml(ve,{headers:!0}),me.successStatuses=[200],xe.next=8,this.request(me);case 8:return he=xe.sent,xe.abrupt("return",{res:he.res,status:he.status});case 10:case"end":return xe.stop()}},ne,this)})),E.apply(this,arguments)}be.extendBucketWorm=le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],13:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.getBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function le(ne,te){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(te,se){var ue,fe,me,ve,he=arguments;return z.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ue=he.length>2&&he[2]!==void 0?he[2]:{},fe=Object.assign({inventory:"",inventoryId:se},ue.subres),oe.checkBucketName(te),me=this._bucketRequestParams("GET",te,fe,ue),me.successStatuses=[200],me.xmlResponse=!0,xe.next=8,this.request(me);case 8:return ve=xe.sent,xe.abrupt("return",{status:ve.status,res:ve.res,inventory:ee.formatInventoryConfig(ve.data)});case 10:case"end":return xe.stop()}},ne,this)})),E.apply(this,arguments)}be.getBucketInventory=le},{"../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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.map.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=y("../utils/isArray"),E=le.isArray,ne=y("../utils/formatObjKey"),te=ne.formatObjKey,se=be;se.getBucketLifecycle=function(){var ue=(0,ie.default)(z.default.mark(function me(ve,he){var ge,xe,Ce;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ee(ve),ge=this._bucketRequestParams("GET",ve,"lifecycle",he),ge.successStatuses=[200],ge.xmlResponse=!0,Ee.next=6,this.request(ge);case 6:return xe=Ee.sent,Ce=xe.data.Rule||null,Ce&&(E(Ce)||(Ce=[Ce]),Ce=Ce.map(function(ce){return ce.ID&&(ce.id=ce.ID,delete ce.ID),ce.Tag&&!E(ce.Tag)&&(ce.Tag=[ce.Tag]),te(ce,"firstLowerCase")})),Ee.abrupt("return",{rules:Ce,res:xe.res});case 10:case"end":return Ee.stop()}},me,this)}));function fe(me,ve){return ue.apply(this,arguments)}return fe}()},{"../utils/checkBucketName":51,"../utils/formatObjKey":61,"../utils/isArray":63,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.map.js":280}],15:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=be;le.getBucketVersioning=function(){var E=(0,ie.default)(z.default.mark(function te(se,ue){var fe,me,ve;return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ee(se),fe=this._bucketRequestParams("GET",se,"versioning",ue),fe.xmlResponse=!0,fe.successStatuses=[200],ge.next=6,this.request(fe);case 6:return me=ge.sent,ve=me.data.Status,ge.abrupt("return",{status:me.status,versionStatus:ve,res:me.res});case 9:case"end":return ge.stop()}},te,this)}));function ne(te,se){return E.apply(this,arguments)}return ne}()},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],16:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=y("../utils/isObject"),E=le.isObject,ne=be;ne.getBucketWebsite=function(){var te=(0,ie.default)(z.default.mark(function ue(fe,me){var ve,he,ge;return z.default.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return ee(fe),ve=this._bucketRequestParams("GET",fe,"website",me),ve.successStatuses=[200],ve.xmlResponse=!0,Ce.next=6,this.request(ve);case 6:return he=Ce.sent,ge=[],he.data.RoutingRules&&he.data.RoutingRules.RoutingRule&&(E(he.data.RoutingRules.RoutingRule)?ge=[he.data.RoutingRules.RoutingRule]:ge=he.data.RoutingRules.RoutingRule),Ce.abrupt("return",{index:he.data.IndexDocument&&he.data.IndexDocument.Suffix||"",supportSubDir:he.data.IndexDocument&&he.data.IndexDocument.SupportSubDir||"false",type:he.data.IndexDocument&&he.data.IndexDocument.Type,routingRules:ge,error:he.data.ErrorDocument&&he.data.ErrorDocument.Key||null,res:he.res});case 10:case"end":return Ce.stop()}},ue,this)}));function se(ue,fe){return te.apply(this,arguments)}return se}()},{"../utils/checkBucketName":51,"../utils/isObject":70,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],17:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.getBucketWorm=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/dataFix");function le(ne,te){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(te,se){var ue,fe;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return oe.checkBucketName(te),ue=this._bucketRequestParams("GET",te,"worm",se),ue.successStatuses=[200],ue.xmlResponse=!0,ve.next=6,this.request(ue);case 6:return fe=ve.sent,ee.dataFix(fe.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),ve.abrupt("return",Object.assign(Object.assign({},fe.data),{res:fe.res,status:fe.status}));case 9:case"end":return ve.stop()}},ne,this)})),E.apply(this,arguments)}be.getBucketWorm=le},{"../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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.initiateBucketWorm=void 0;var oe=y("../utils/obj2xml"),ee=y("../utils/checkBucketName");function le(ne,te,se){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(te,se,ue){var fe,me,ve;return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return ee.checkBucketName(te),fe=this._bucketRequestParams("POST",te,"worm",ue),me={InitiateWormConfiguration:{RetentionPeriodInDays:se}},fe.mime="xml",fe.content=oe.obj2xml(me,{headers:!0}),fe.successStatuses=[200],ge.next=8,this.request(fe);case 8:return ve=ge.sent,ge.abrupt("return",{res:ve.res,wormId:ve.res.headers["x-oss-worm-id"],status:ve.status});case 10:case"end":return ge.stop()}},ne,this)})),E.apply(this,arguments)}be.initiateBucketWorm=le},{"../utils/checkBucketName":51,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],19:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.listBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/formatInventoryConfig");function le(ne){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(te){var se,ue,fe,me,ve,he,ge,xe,Ce=arguments;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return se=Ce.length>1&&Ce[1]!==void 0?Ce[1]:{},ue=se.continuationToken,fe=Object.assign({inventory:""},ue&&{"continuation-token":ue},se.subres),oe.checkBucketName(te),me=this._bucketRequestParams("GET",te,fe,se),me.successStatuses=[200],me.xmlResponse=!0,Ee.next=9,this.request(me);case 9:return ve=Ee.sent,he=ve.data,ge=ve.res,xe=ve.status,Ee.abrupt("return",{isTruncated:he.IsTruncated==="true",nextContinuationToken:he.NextContinuationToken,inventoryList:ee.formatInventoryConfig(he.InventoryConfiguration,!0),status:xe,res:ge});case 12:case"end":return Ee.stop()}},ne,this)})),E.apply(this,arguments)}be.listBucketInventory=le},{"../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,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.putBucketInventory=void 0;var oe=y("../utils/checkBucketName"),ee=y("../utils/obj2xml");function le(ne,te){return E.apply(this,arguments)}function E(){return E=(0,ie.default)(z.default.mark(function ne(te,se){var ue,fe,me,ve,he,ge,xe,Ce,je,Ee,ce,ye=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return ue=ye.length>2&&ye[2]!==void 0?ye[2]:{},fe=Object.assign({inventory:"",inventoryId:se.id},ue.subres),oe.checkBucketName(te),me=se.OSSBucketDestination,ve=se.optionalFields,he=se.includedObjectVersions,ge="acs:oss:::",xe="acs:ram::".concat(me.accountId,":role/"),Ce={InventoryConfiguration:{Id:se.id,IsEnabled:se.isEnabled,Filter:{Prefix:se.prefix||""},Destination:{OSSBucketDestination:{Format:me.format,AccountId:me.accountId,RoleArn:"".concat(xe).concat(me.rolename),Bucket:"".concat(ge).concat(me.bucket),Prefix:me.prefix||"",Encryption:me.encryption||""}},Schedule:{Frequency:se.frequency},IncludedObjectVersions:he,OptionalFields:{Field:(ve==null?void 0:ve.field)||[]}}},je=ee.obj2xml(Ce,{headers:!0,firstUpperCase:!0}),Ee=this._bucketRequestParams("PUT",te,fe,ue),Ee.successStatuses=[200],Ee.mime="xml",Ee.content=je,De.next=14,this.request(Ee);case 14:return ce=De.sent,De.abrupt("return",{status:ce.status,res:ce.res});case 16:case"end":return De.stop()}},ne,this)})),E.apply(this,arguments)}be.putBucketInventory=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.concat.js":272,"core-js/modules/es.object.assign.js":287}],21:[function(y,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=y("../utils/isArray"),E=le.isArray,ne=y("../utils/deepCopy"),te=ne.deepCopy,se=y("../utils/isObject"),ue=se.isObject,fe=y("../utils/obj2xml"),me=fe.obj2xml,ve=y("../utils/checkObjectTag"),he=ve.checkObjectTag,ge=y("../utils/getStrBytesCount"),xe=ge.getStrBytesCount,Ce=be;Ce.putBucketLifecycle=function(){var we=(0,ie.default)(z.default.mark(function Re(ke,_e,Ze){var Ve,Qe,ut,Ie,We;return z.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(ee(ke),E(_e)){at.next=3;break}throw new Error("rules must be Array");case 3:return Ve=this._bucketRequestParams("PUT",ke,"lifecycle",Ze),Qe=[],ut={LifecycleConfiguration:{Rule:Qe}},_e.forEach(function(nt){je(nt),ye(nt),nt.id&&(nt.ID=nt.id,delete nt.id),Qe.push(nt)}),Ie=me(ut,{headers:!0,firstUpperCase:!0}),Ve.content=Ie,Ve.mime="xml",Ve.successStatuses=[200],at.next=13,this.request(Ve);case 13:return We=at.sent,at.abrupt("return",{res:We.res});case 15:case"end":return at.stop()}},Re,this)}));function De(Re,ke,_e){return we.apply(this,arguments)}return De}();function je(we){we.days&&(we.expiration={days:we.days}),we.date&&(we.expiration={createdBeforeDate:we.date})}function Ee(we,De){var Re=we.days,ke=we.createdBeforeDate;if(!Re&&!ke)throw new Error("".concat(De," must includes days or createdBeforeDate"));if(Re&&!/^[1-9][0-9]*$/.test(Re))throw new Error("days must be a positive integer");if(ke&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(ke))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function ce(we){if(!E(we)&&!ue(we))throw new Error("tag must be Object or Array");we=ue(we)?[we]:we;var De={},Re=te(we);Re.forEach(function(ke){De[ke.key]=ke.value}),he(De)}function ye(we){if(we.id&&xe(we.id)>255)throw new Error("ID is composed of 255 bytes at most");if(we.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(we.status))throw new Error("Status must be Enabled or Disabled");if(we.transition){if(!["IA","Archive"].includes(we.transition.storageClass))throw new Error("StorageClass must be IA or Archive");Ee(we.transition,"Transition")}if(we.expiration){if(!we.expiration.expiredObjectDeleteMarker)Ee(we.expiration,"Expiration");else if(we.expiration.days||we.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(we.abortMultipartUpload&&Ee(we.abortMultipartUpload,"AbortMultipartUpload"),!we.expiration&&!we.abortMultipartUpload&&!we.transition&&!we.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(we.tag){if(we.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");ce(we.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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.includes.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=y("../utils/obj2xml"),E=le.obj2xml,ne=be;ne.putBucketVersioning=function(){var te=(0,ie.default)(z.default.mark(function ue(fe,me){var ve,he,ge,xe,Ce=arguments;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(ve=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},ee(fe),["Enabled","Suspended"].includes(me)){Ee.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return he=this._bucketRequestParams("PUT",fe,"versioning",ve),ge={VersioningConfiguration:{Status:me}},he.mime="xml",he.content=E(ge,{headers:!0}),Ee.next=10,this.request(he);case 10:return xe=Ee.sent,Ee.abrupt("return",{res:xe.res,status:xe.status});case 12:case"end":return Ee.stop()}},ue,this)}));function se(ue,fe){return te.apply(this,arguments)}return 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.includes.js":277}],23:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=y("../utils/obj2xml"),E=le.obj2xml,ne=y("../utils/isArray"),te=ne.isArray,se=be;se.putBucketWebsite=function(){var ue=(0,ie.default)(z.default.mark(function me(ve){var he,ge,xe,Ce,je,Ee,ce,ye=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(he=ye.length>1&&ye[1]!==void 0?ye[1]:{},ge=ye.length>2?ye[2]:void 0,ee(ve),xe=this._bucketRequestParams("PUT",ve,"website",ge),Ce={Suffix:he.index||"index.html"},je={IndexDocument:Ce},Ee={WebsiteConfiguration:je},he.supportSubDir&&(Ce.SupportSubDir=he.supportSubDir),he.type&&(Ce.Type=he.type),he.error&&(je.ErrorDocument={Key:he.error}),he.routingRules===void 0){De.next=14;break}if(te(he.routingRules)){De.next=13;break}throw new Error("RoutingRules must be Array");case 13:je.RoutingRules={RoutingRule:he.routingRules};case 14:return Ee=E(Ee),xe.content=Ee,xe.mime="xml",xe.successStatuses=[200],De.next=20,this.request(xe);case 20:return ce=De.sent,De.abrupt("return",{res:ce.res});case 22:case"end":return De.stop()}},me,this)}));function fe(me){return ue.apply(this,arguments)}return fe}()},{"../utils/checkBucketName":51,"../utils/isArray":63,"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80}],24:[function(y,Te,be){(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"),be.encodeCallback=function(ie,oe){if(ie.headers=ie.headers||{},!Object.prototype.hasOwnProperty.call(ie.headers,"x-oss-callback")&&oe.callback){var ee={callbackUrl:encodeURI(oe.callback.url),callbackBody:oe.callback.body};oe.callback.host&&(ee.callbackHost=oe.callback.host),oe.callback.contentType&&(ee.callbackBodyType=oe.callback.contentType);var le=x.from(JSON.stringify(ee)).toString("base64");if(ie.headers["x-oss-callback"]=le,oe.callback.customValue){var E={};Object.keys(oe.callback.customValue).forEach(function(ne){E["x:".concat(ne)]=oe.callback.customValue[ne].toString()}),ie.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,Te,be){"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(te){return te&&te.__esModule?te:{default:te}};Object.defineProperty(be,"__esModule",{value:!0}),be.getReqUrl=void 0;var z=x(y("copy-to")),ie=x(y("url")),oe=x(y("merge-descriptors")),ee=x(y("is-type-of")),le=y("../utils/isIP"),E=y("../utils/checkConfigValid");function ne(te){var se={},ue=this.options.cname;E.checkConfigValid(this.options.endpoint,"endpoint"),z.default(this.options.endpoint,!1).to(se),te.bucket&&!ue&&!le.isIP(se.hostname)&&!this.options.sldEnable&&(se.host="".concat(te.bucket,".").concat(se.host));var fe="/";te.bucket&&this.options.sldEnable&&(fe+="".concat(te.bucket,"/")),te.object&&(fe+=this._escape(te.object).replace(/\+/g,"%2B")),se.pathname=fe;var me={};if(te.query&&oe.default(me,te.query),te.subres){var ve={};ee.default.string(te.subres)?ve[te.subres]="":ee.default.array(te.subres)?te.subres.forEach(function(he){ve[he]=""}):ve=te.subres,oe.default(me,ve)}return se.query=me,ie.default.format(se)}be.getReqUrl=ne},{"../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,Te,be){"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"),ie=y("../utils/checkBucketName"),oe=ie.checkBucketName,ee=y("../utils/setRegion"),le=ee.setRegion,E=y("../utils/checkConfigValid"),ne=E.checkConfigValid;function te(se,ue){ne(se,"endpoint");var fe=z.parse(se);if(fe.protocol||(fe=z.parse("http".concat(ue?"s":"","://").concat(se))),fe.protocol!=="http:"&&fe.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return fe}Te.exports=function(se){if(!se||!se.accessKeyId||!se.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");se.stsToken&&!se.refreshSTSToken&&!se.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),se.bucket&&oe(se.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},se);if(ue.accessKeyId=ue.accessKeyId.trim(),ue.accessKeySecret=ue.accessKeySecret.trim(),ue.timeout&&(ue.timeout=x(ue.timeout)),ue.endpoint)ue.endpoint=te(ue.endpoint,ue.secure);else if(ue.region)ue.endpoint=le(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,Te,be){"use strict";var x=y("merge-descriptors"),z=be;x(z,y("./processObjectSave"))},{"./processObjectSave":28,"merge-descriptors":372}],28:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.array.concat.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkBucketName"),ee=oe.checkBucketName,le=y("querystring"),E=y("js-base64"),ne=E.Base64.encode,te=be;te.processObjectSave=function(){var ue=(0,ie.default)(z.default.mark(function me(ve,he,ge,xe){var Ce,je,Ee,ce;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return se(ve,"sourceObject"),se(he,"targetObject"),se(ge,"process"),he=this._objectName(he),xe&&ee(xe),Ce=this._objectRequestParams("POST",ve,{subres:"x-oss-process"}),je=xe?",b_".concat(ne(xe)):"",he=ne(he),Ee={"x-oss-process":"".concat(ge,"|sys/saveas,o_").concat(he).concat(je)},Ce.content=le.stringify(Ee),we.next=12,this.request(Ce);case 12:return ce=we.sent,we.abrupt("return",{res:ce.res,status:ce.res.status});case 14:case"end":return we.stop()}},me,this)}));function fe(me,ve,he,ge){return ue.apply(this,arguments)}return fe}();function se(ue,fe){if(!ue)throw new Error("".concat(fe," is required"));if(typeof ue!="string")throw new Error("".concat(fe," must be String"))}},{"../utils/checkBucketName":51,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.array.concat.js":272,"js-base64":371,querystring:385}],29:[function(y,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("debug")("ali-oss:multipart-copy"),ee=y("copy-to"),le=be;le.uploadPartCopy=function(){var E=(0,ie.default)(z.default.mark(function te(se,ue,fe,me,ve){var he,ge,xe,Ce,je,Ee=arguments;return z.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return he=Ee.length>5&&Ee[5]!==void 0?Ee[5]:{},he.headers=he.headers||{},ge=he.versionId||he.subres&&he.subres.versionId||null,ge?xe="/".concat(ve.sourceBucketName,"/").concat(encodeURIComponent(ve.sourceKey),"?versionId=").concat(ge):xe="/".concat(ve.sourceBucketName,"/").concat(encodeURIComponent(ve.sourceKey)),he.headers["x-oss-copy-source"]=xe,me&&(he.headers["x-oss-copy-source-range"]="bytes=".concat(me)),he.subres={partNumber:fe,uploadId:ue},Ce=this._objectRequestParams("PUT",se,he),Ce.mime=he.mime,Ce.successStatuses=[200],ye.next=12,this.request(Ce);case 12:return je=ye.sent,ye.abrupt("return",{name:se,etag:je.res.headers.etag,res:je.res});case 14:case"end":return ye.stop()}},te,this)}));function ne(te,se,ue,fe,me){return E.apply(this,arguments)}return ne}(),le.multipartUploadCopy=function(){var E=(0,ie.default)(z.default.mark(function te(se,ue){var fe,me,ve,he,ge,xe,Ce,je,Ee,ce,ye,we,De=arguments;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:return fe=De.length>2&&De[2]!==void 0?De[2]:{},this.resetCancelFlag(),me=fe.versionId,ve=me===void 0?null:me,he={versionId:ve},ke.next=6,this._getObjectMeta(ue.sourceBucketName,ue.sourceKey,he);case 6:if(ge=ke.sent,xe=ge.res.headers["content-length"],ue.startOffset=ue.startOffset||0,ue.endOffset=ue.endOffset||xe,!(fe.checkpoint&&fe.checkpoint.uploadId)){ke.next=14;break}return ke.next=13,this._resumeMultipartCopy(fe.checkpoint,ue,fe);case 13:return ke.abrupt("return",ke.sent);case 14:if(Ce=102400,je=ue.endOffset-ue.startOffset,!(je<Ce)){ke.next=18;break}throw new Error("copySize must not be smaller than ".concat(Ce));case 18:if(!(fe.partSize&&fe.partSize<Ce)){ke.next=20;break}throw new Error("partSize must not be smaller than ".concat(Ce));case 20:return ke.next=22,this.initMultipartUpload(se,fe);case 22:if(Ee=ke.sent,ce=Ee.uploadId,ye=this._getPartSize(je,fe.partSize),we={name:se,copySize:je,partSize:ye,uploadId:ce,doneParts:[]},!(fe&&fe.progress)){ke.next=29;break}return ke.next=29,fe.progress(0,we,Ee.res);case 29:return ke.next=31,this._resumeMultipartCopy(we,ue,fe);case 31:return ke.abrupt("return",ke.sent);case 32:case"end":return ke.stop()}},te,this)}));function ne(te,se){return E.apply(this,arguments)}return ne}(),le._resumeMultipartCopy=function(){var E=(0,ie.default)(z.default.mark(function te(se,ue,fe){var me,ve,he,ge,xe,Ce,je,Ee,ce,ye,we,De,Re,ke,_e,Ze,Ve,Qe,ut,Ie,We;return z.default.wrap(function(at){for(;;)switch(at.prev=at.next){case 0:if(!this.isCancel()){at.next=2;break}throw this._makeCancelEvent();case 2:if(me=fe.versionId,ve=me===void 0?null:me,he={versionId:ve},ge=se.copySize,xe=se.partSize,Ce=se.uploadId,je=se.doneParts,Ee=se.name,ce=this._divideMultipartCopyParts(ge,xe,ue.startOffset),ye=ce.length,we={headers:{}},fe.copyheaders&&ee(fe.copyheaders).to(we.headers),ve&&ee(he).to(we),De=function(Xe,et,Ye){return new Promise(function(){var dt=(0,ie.default)(z.default.mark(function tt(lt,st){var He,Ne,Ge;return z.default.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:if(Ke.prev=0,Xe.isCancel()){Ke.next=22;break}return He=ce[et-1],Ne="".concat(He.start,"-").concat(He.end-1),Ke.prev=4,Ke.next=7,Xe.uploadPartCopy(Ee,Ce,et,Ne,Ye,we);case 7:Ge=Ke.sent,Ke.next=15;break;case 10:if(Ke.prev=10,Ke.t0=Ke.catch(4),Ke.t0.status!==404){Ke.next=14;break}throw Xe._makeAbortEvent();case 14:throw Ke.t0;case 15:if(Xe.isCancel()){Ke.next=22;break}if(oe("content-range ".concat(Ge.res.headers["content-range"])),je.push({number:et,etag:Ge.res.headers.etag}),se.doneParts=je,!(fe&&fe.progress)){Ke.next=22;break}return Ke.next=22,fe.progress(je.length/ye,se,Ge.res);case 22:lt(),Ke.next=29;break;case 25:Ke.prev=25,Ke.t1=Ke.catch(0),Ke.t1.partNum=et,st(Ke.t1);case 29:case"end":return Ke.stop()}},tt,null,[[0,25],[4,10]])}));return function(tt,lt){return dt.apply(this,arguments)}}())},Re=Array.from(new Array(ye),function(nt,Xe){return Xe+1}),ke=je.map(function(nt){return nt.number}),_e=Re.filter(function(nt){return ke.indexOf(nt)<0}),Ze=5,Ve=fe.parallel||Ze,!(this.checkBrowserAndVersion("Internet Explorer","10")||Ve===1)){at.next=28;break}Qe=0;case 18:if(!(Qe<_e.length)){at.next=26;break}if(!this.isCancel()){at.next=21;break}throw this._makeCancelEvent();case 21:return at.next=23,De(this,_e[Qe],ue);case 23:Qe++,at.next=18;break;case 26:at.next=40;break;case 28:return at.next=30,this._parallelNode(_e,Ve,De,ue);case 30:if(ut=at.sent,Ie=ut.find(function(nt){return nt.name==="abort"}),!Ie){at.next=34;break}throw Ie;case 34:if(!this.isCancel()){at.next=36;break}throw this._makeCancelEvent();case 36:if(!(ut&&ut.length>0)){at.next=40;break}throw We=ut[0],We.message="Failed to copy some parts with error: ".concat(We.toString()," part_num: ").concat(We.partNum),We;case 40:return at.next=42,this.completeMultipartUpload(Ee,Ce,je,fe);case 42:return at.abrupt("return",at.sent);case 43:case"end":return at.stop()}},te,this)}));function ne(te,se,ue){return E.apply(this,arguments)}return ne}(),le._divideMultipartCopyParts=function(ne,te,se){for(var ue=Math.ceil(ne/te),fe=[],me=0;me<ue;me++){var ve=te*me+se,he=Math.min(ve+te,ne+se);fe.push({start:ve,end:he})}return fe},le._getObjectMeta=function(){var E=(0,ie.default)(z.default.mark(function te(se,ue,fe){var me,ve;return z.default.wrap(function(ge){for(;;)switch(ge.prev=ge.next){case 0:return me=this.getBucket(),this.setBucket(se),ge.next=4,this.head(ue,fe);case 4:return ve=ge.sent,this.setBucket(me),ge.abrupt("return",ve);case 7:case"end":return ge.stop()}},te,this)}));function ne(te,se,ue){return E.apply(this,arguments)}return ne}()},{"@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,Te,be){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),ie=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 oe=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("copy-to"),le=y("./callback"),E=y("./utils/deepCopy"),ne=E.deepCopyWith,te=y("./utils/isBuffer"),se=te.isBuffer,ue=y("./utils/omit"),fe=ue.omit,me=be;me.listUploads=function(){var ve=(0,oe.default)(ie.default.mark(function ge(xe,Ce){var je,Ee,ce,ye;return ie.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return Ce=Ce||{},je={},ee(Ce).to(je),je.subres="uploads",Ee=this._objectRequestParams("GET","",je),Ee.query=xe,Ee.xmlResponse=!0,Ee.successStatuses=[200],De.next=10,this.request(Ee);case 10:return ce=De.sent,ye=ce.data.Upload||[],Array.isArray(ye)||(ye=[ye]),ye=ye.map(function(Re){return{name:Re.Key,uploadId:Re.UploadId,initiated:Re.Initiated}}),De.abrupt("return",{res:ce.res,uploads:ye,bucket:ce.data.Bucket,nextKeyMarker:ce.data.NextKeyMarker,nextUploadIdMarker:ce.data.NextUploadIdMarker,isTruncated:ce.data.IsTruncated==="true"});case 15:case"end":return De.stop()}},ge,this)}));function he(ge,xe){return ve.apply(this,arguments)}return he}(),me.listParts=function(){var ve=(0,oe.default)(ie.default.mark(function ge(xe,Ce,je,Ee){var ce,ye,we;return ie.default.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:return Ee=Ee||{},ce={},ee(Ee).to(ce),ce.subres={uploadId:Ce},ye=this._objectRequestParams("GET",xe,ce),ye.query=je,ye.xmlResponse=!0,ye.successStatuses=[200],Re.next=10,this.request(ye);case 10:return we=Re.sent,Re.abrupt("return",{res:we.res,uploadId:we.data.UploadId,bucket:we.data.Bucket,name:we.data.Key,partNumberMarker:we.data.PartNumberMarker,nextPartNumberMarker:we.data.NextPartNumberMarker,maxParts:we.data.MaxParts,isTruncated:we.data.IsTruncated,parts:we.data.Part||[]});case 12:case"end":return Re.stop()}},ge,this)}));function he(ge,xe,Ce,je){return ve.apply(this,arguments)}return he}(),me.abortMultipartUpload=function(){var ve=(0,oe.default)(ie.default.mark(function ge(xe,Ce,je){var Ee,ce,ye;return ie.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return this._stop(),je=je||{},Ee={},ee(je).to(Ee),Ee.subres={uploadId:Ce},ce=this._objectRequestParams("DELETE",xe,Ee),ce.successStatuses=[204],De.next=9,this.request(ce);case 9:return ye=De.sent,De.abrupt("return",{res:ye.res});case 11:case"end":return De.stop()}},ge,this)}));function he(ge,xe,Ce){return ve.apply(this,arguments)}return he}(),me.initMultipartUpload=function(){var ve=(0,oe.default)(ie.default.mark(function ge(xe,Ce){var je,Ee,ce;return ie.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return Ce=Ce||{},je={},ee(Ce).to(je),je.headers=je.headers||{},this._convertMetaToHeaders(Ce.meta,je.headers),je.subres="uploads",Ee=this._objectRequestParams("POST",xe,je),Ee.mime=Ce.mime,Ee.xmlResponse=!0,Ee.successStatuses=[200],we.next=12,this.request(Ee);case 12:return ce=we.sent,we.abrupt("return",{res:ce.res,bucket:ce.data.Bucket,name:ce.data.Key,uploadId:ce.data.UploadId});case 14:case"end":return we.stop()}},ge,this)}));function he(ge,xe){return ve.apply(this,arguments)}return he}(),me.uploadPart=function(){var ve=(0,oe.default)(ie.default.mark(function ge(xe,Ce,je,Ee,ce,ye,we){var De,Re;return ie.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(De={size:ye-ce},Re=x&&x.browser,!Re){_e.next=8;break}return _e.next=5,this._createBuffer(Ee,ce,ye);case 5:De.content=_e.sent,_e.next=11;break;case 8:return _e.next=10,this._createStream(Ee,ce,ye);case 10:De.stream=_e.sent;case 11:return _e.next=13,this._uploadPart(xe,Ce,je,De,we);case 13:return _e.abrupt("return",_e.sent);case 14:case"end":return _e.stop()}},ge,this)}));function he(ge,xe,Ce,je,Ee,ce,ye){return ve.apply(this,arguments)}return he}(),me.completeMultipartUpload=function(){var ve=(0,oe.default)(ie.default.mark(function ge(xe,Ce,je,Ee){var ce,ye,we,De,Re,ke,_e,Ze;return ie.default.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:for(ce=je.concat().sort(function(ut,Ie){return ut.number-Ie.number}).filter(function(ut,Ie,We){return!Ie||ut.number!==We[Ie-1].number}),ye=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,we=0;we<ce.length;we++)De=ce[we],ye+=`<Part>
`,ye+="<PartNumber>".concat(De.number,`</PartNumber>
`),ye+="<ETag>".concat(De.etag,`</ETag>
`),ye+=`</Part>
`;return ye+="</CompleteMultipartUpload>",Ee=Ee||{},Re={},Re=ne(Ee,function(ut){if(se(ut))return null}),Re.subres={uploadId:Ce},Re.headers=fe(Re.headers,["x-oss-server-side-encryption","x-oss-storage-class"]),ke=this._objectRequestParams("POST",xe,Re),le.encodeCallback(ke,Re),ke.mime="xml",ke.content=ye,ke.headers&&ke.headers["x-oss-callback"]||(ke.xmlResponse=!0),ke.successStatuses=[200],Qe.next=17,this.request(ke);case 17:if(_e=Qe.sent,!Ee.progress){Qe.next=21;break}return Qe.next=21,Ee.progress(1,null,_e.res);case 21:return Ze={res:_e.res,bucket:ke.bucket,name:xe,etag:_e.res.headers.etag},ke.headers&&ke.headers["x-oss-callback"]&&(Ze.data=JSON.parse(_e.data.toString())),Qe.abrupt("return",Ze);case 24:case"end":return Qe.stop()}},ge,this)}));function he(ge,xe,Ce,je){return ve.apply(this,arguments)}return he}(),me._uploadPart=function(){var ve=(0,oe.default)(ie.default.mark(function ge(xe,Ce,je,Ee,ce){var ye,we,De,Re;return ie.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:return ce=ce||{},ye={},ee(ce).to(ye),ye.headers=ye.headers||{},ye.headers["Content-Length"]=Ee.size,ye.headers=fe(ye.headers,["x-oss-server-side-encryption"]),ye.subres={partNumber:je,uploadId:Ce},we=this._objectRequestParams("PUT",xe,ye),we.mime=ye.mime,De=x&&x.browser,De?we.content=Ee.content:we.stream=Ee.stream,we.successStatuses=[200],we.disabledMD5=ce.disabledMD5,_e.next=15,this.request(we);case 15:if(Re=_e.sent,Re.res.headers.etag){_e.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 Ee.stream&&(Ee.stream=null,we.stream=null),_e.abrupt("return",{name:xe,etag:Re.res.headers.etag,res:Re.res});case 20:case"end":return _e.stop()}},ge,this)}));function he(ge,xe,Ce,je,Ee){return ve.apply(this,arguments)}return he}()}).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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator")),ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("url"),ee=y("utility"),le=y("copy-to"),E=y("../../common/signUtils"),ne=y("../utils/isIP"),te=ne.isIP,se=y("../utils/setSTSToken"),ue=se.setSTSToken,fe=y("../utils/isFunction"),me=fe.isFunction,ve=be;ve.asyncSignatureUrl=function(){var he=(0,ie.default)(z.default.mark(function xe(Ce,je){var Ee,ce,ye,we,De;return z.default.wrap(function(ke){for(;;)switch(ke.prev=ke.next){case 0:if(!te(this.options.endpoint.hostname)){ke.next=2;break}throw new Error("can not get the object URL when endpoint is IP");case 2:if(je=je||{},Ce=this._objectName(Ce),je.method=je.method||"GET",Ee=ee.timestamp()+(je.expires||1800),ce={bucket:this.options.bucket,object:Ce},ye=this._getResource(ce),!(this.options.stsToken&&me(this.options.refreshSTSToken))){ke.next=11;break}return ke.next=11,ue.call(this);case 11:return this.options.stsToken&&(je["security-token"]=this.options.stsToken),we=E._signatureForURL(this.options.accessKeySecret,je,ye,Ee),De=oe.parse(this._getReqUrl(ce)),De.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ee,Signature:we.Signature},le(we.subResource).to(De.query),ke.abrupt("return",De.format());case 17:case"end":return ke.stop()}},xe,this)}));function ge(xe,Ce){return he.apply(this,arguments)}return ge}()},{"../../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,Te,be){"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 ie=x(y("@babel/runtime/helpers/typeof")),oe=x(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("../utils/checkBucketName"),le=ee.checkBucketName,E=be,ne=["content-type","content-encoding","content-language","content-disposition","cache-control","expires"];E.copy=function(){var te=(0,oe.default)(z.default.mark(function ue(fe,me,ve,he){var ge,xe,Ce;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return(0,ie.default)(ve)==="object"&&(he=ve),he=he||{},he.headers=he.headers||{},Object.keys(he.headers).forEach(function(ce){he.headers["x-oss-copy-source-".concat(ce.toLowerCase())]=he.headers[ce]}),(he.meta||Object.keys(he.headers).find(function(ce){return ne.includes(ce.toLowerCase())}))&&(he.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(he.meta,he.headers),me=this._getSourceName(me,ve),he.versionId&&(me="".concat(me,"?versionId=").concat(he.versionId)),he.headers["x-oss-copy-source"]=me,ge=this._objectRequestParams("PUT",fe,he),ge.xmlResponse=!0,ge.successStatuses=[200,304],Ee.next=14,this.request(ge);case 14:return xe=Ee.sent,Ce=xe.data,Ce&&(Ce={etag:Ce.ETag,lastModified:Ce.LastModified}),Ee.abrupt("return",{data:Ce,res:xe.res});case 18:case"end":return Ee.stop()}},ue,this)}));function se(ue,fe,me,ve){return te.apply(this,arguments)}return se}(),E._getSourceName=function(se,ue){return typeof ue=="string"?se=this._objectName(se):se[0]!=="/"?ue=this.options.bucket:(ue=se.replace(/\/(.+?)(\/.*)/,"$1"),se=se.replace(/(\/.+?\/)(.*)/,"$2")),le(ue),se=encodeURIComponent(se),se="/".concat(ue,"/").concat(se),se}},{"../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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.delete=function(){var ee=(0,ie.default)(z.default.mark(function E(ne){var te,se,ue,fe=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return te=fe.length>1&&fe[1]!==void 0?fe[1]:{},te.subres=Object.assign({},te.subres),te.versionId&&(te.subres.versionId=te.versionId),se=this._objectRequestParams("DELETE",ne,te),se.successStatuses=[204],ve.next=7,this.request(se);case 7:return ue=ve.sent,ve.abrupt("return",{res:ue.res});case 9:case"end":return ve.stop()}},E,this)}));function le(E){return ee.apply(this,arguments)}return le}()},{"@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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("utility"),ee=y("../utils/obj2xml"),le=ee.obj2xml,E=be;E.deleteMulti=function(){var ne=(0,ie.default)(z.default.mark(function se(ue){var fe,me,ve,he,ge,xe,Ce,je,Ee,ce,ye,we,De,Re=arguments;return z.default.wrap(function(_e){for(;;)switch(_e.prev=_e.next){case 0:if(fe=Re.length>1&&Re[1]!==void 0?Re[1]:{},me=[],!(!ue||!ue.length)){_e.next=4;break}throw new Error("names is required");case 4:for(ve=0;ve<ue.length;ve++)he={},typeof ue[ve]=="string"?he.Key=oe.escape(this._objectName(ue[ve])):(ge=ue[ve],xe=ge.key,Ce=ge.versionId,he.Key=oe.escape(this._objectName(xe)),he.VersionId=Ce),me.push(he);return je={Delete:{Quiet:!!fe.quiet,Object:me}},Ee=le(je,{headers:!0}),fe.subres=Object.assign({delete:""},fe.subres),fe.versionId&&(fe.subres.versionId=fe.versionId),ce=this._objectRequestParams("POST","",fe),ce.mime="xml",ce.content=Ee,ce.xmlResponse=!0,ce.successStatuses=[200],_e.next=16,this.request(ce);case 16:return ye=_e.sent,we=ye.data,De=we&&we.Deleted||null,De&&(Array.isArray(De)||(De=[De])),_e.abrupt("return",{res:ye.res,deleted:De||[]});case 21:case"end":return _e.stop()}},se,this)}));function te(se){return ne.apply(this,arguments)}return te}()},{"../utils/obj2xml":72,"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,"core-js/modules/es.object.assign.js":287,utility:474}],35:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.deleteObjectTagging=function(){var ee=(0,ie.default)(z.default.mark(function E(ne){var te,se,ue,fe=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return te=fe.length>1&&fe[1]!==void 0?fe[1]:{},te.subres=Object.assign({tagging:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),ne=this._objectName(ne),se=this._objectRequestParams("DELETE",ne,te),se.successStatuses=[204],ve.next=8,this.request(se);case 8:return ue=ve.sent,ve.abrupt("return",{status:ue.status,res:ue.res});case 10:case"end":return ve.stop()}},E,this)}));function le(E){return ee.apply(this,arguments)}return le}()},{"@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,Te,be){"use strict";y("core-js/modules/es.array.concat.js");var x=y("url"),z=y("../utils/isIP"),ie=z.isIP,oe=be;oe.generateObjectUrl=function(le,E){if(ie(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 ne=x.parse(E),te=this.options.bucket;ne.hostname="".concat(te,".").concat(ne.hostname),ne.host="".concat(te,".").concat(ne.host),E=ne.format()}return E+this._escape(this._objectName(le))}},{"../utils/isIP":69,"core-js/modules/es.array.concat.js":272,url:472}],37:[function(y,Te,be){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),ie=z(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var oe=z(y("@babel/runtime/helpers/asyncToGenerator")),ee=y("fs"),le=y("is-type-of"),E=be;E.get=function(){var ne=(0,oe.default)(ie.default.mark(function se(ue,fe){var me,ve,he,ge,xe,Ce,je,Ee,ce=arguments;return ie.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:return me=ce.length>2&&ce[2]!==void 0?ce[2]:{},ve=null,he=!1,le.writableStream(fe)?ve=fe:le.string(fe)?(ve=ee.createWriteStream(fe),he=!0):me=fe,me=me||{},ge=x&&x.browser,xe=me.responseCacheControl===null?"":"no-cache",Ce=ge&&xe?{"response-cache-control":xe}:{},me.subres=Object.assign(Ce,me.subres),me.versionId&&(me.subres.versionId=me.versionId),me.process&&(me.subres["x-oss-process"]=me.process),we.prev=11,Ee=this._objectRequestParams("GET",ue,me),Ee.writeStream=ve,Ee.successStatuses=[200,206,304],we.next=17,this.request(Ee);case 17:je=we.sent,he&&ve.destroy(),we.next=28;break;case 21:if(we.prev=21,we.t0=we.catch(11),!he){we.next=27;break}return ve.destroy(),we.next=27,this._deleteFileSafe(fe);case 27:throw we.t0;case 28:return we.abrupt("return",{res:je.res,content:je.data});case 29:case"end":return we.stop()}},se,this,[[11,21]])}));function te(se,ue){return ne.apply(this,arguments)}return te}()}).call(this)}).call(this,y("_process"))},{"@babel/runtime/helpers/asyncToGenerator":77,"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/regenerator":80,_process:467,"core-js/modules/es.object.assign.js":287,fs:89,"is-type-of":466}],38:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getACL=function(){var ee=(0,ie.default)(z.default.mark(function E(ne){var te,se,ue,fe=arguments;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return te=fe.length>1&&fe[1]!==void 0?fe[1]:{},te.subres=Object.assign({acl:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),ne=this._objectName(ne),se=this._objectRequestParams("GET",ne,te),se.successStatuses=[200],se.xmlResponse=!0,ve.next=9,this.request(se);case 9:return ue=ve.sent,ve.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 ve.stop()}},E,this)}));function le(E){return ee.apply(this,arguments)}return le}()},{"@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,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be,ee=y("../utils/isObject"),le=ee.isObject,E=y("../utils/isArray"),ne=E.isArray;oe.getBucketVersions=te,oe.listObjectVersions=te;function te(){return se.apply(this,arguments)}function se(){return se=(0,ie.default)(z.default.mark(function me(){var ve,he,ge,xe,Ce,je,Ee,ce,ye=arguments;return z.default.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:if(ve=ye.length>0&&ye[0]!==void 0?ye[0]:{},he=ye.length>1&&ye[1]!==void 0?ye[1]:{},!(ve.versionIdMarker&&ve.keyMarker===void 0)){De.next=4;break}throw new Error("A version-id marker cannot be specified without a key marker");case 4:return he.subres=Object.assign({versions:""},he.subres),he.versionId&&(he.subres.versionId=he.versionId),ge=this._objectRequestParams("GET","",he),ge.xmlResponse=!0,ge.successStatuses=[200],ge.query=fe(ve),De.next=12,this.request(ge);case 12:return xe=De.sent,Ce=xe.data.Version||[],je=xe.data.DeleteMarker||[],Ee=this,Ce&&(Array.isArray(Ce)||(Ce=[Ce]),Ce=Ce.map(function(Re){return{name:Re.Key,url:Ee._objectUrl(Re.Key),lastModified:Re.LastModified,isLatest:Re.IsLatest==="true",versionId:Re.VersionId,etag:Re.ETag,type:Re.Type,size:Number(Re.Size),storageClass:Re.StorageClass,owner:{id:Re.Owner.ID,displayName:Re.Owner.DisplayName}}})),je&&(ne(je)||(je=[je]),je=je.map(function(Re){return{name:Re.Key,lastModified:Re.LastModified,versionId:Re.VersionId,owner:{id:Re.Owner.ID,displayName:Re.Owner.DisplayName}}})),ce=xe.data.CommonPrefixes||null,ce&&(ne(ce)||(ce=[ce]),ce=ce.map(function(Re){return Re.Prefix})),De.abrupt("return",{res:xe.res,objects:Ce,deleteMarker:je,prefixes:ce,nextMarker:xe.data.NextKeyMarker||null,NextVersionIdMarker:xe.data.NextVersionIdMarker||null,nextKeyMarker:xe.data.NextKeyMarker||null,nextVersionIdMarker:xe.data.NextVersionIdMarker||null,isTruncated:xe.data.IsTruncated==="true"});case 21:case"end":return De.stop()}},me,this)})),se.apply(this,arguments)}function ue(me){return me.replace(/([A-Z])/g,"-$1").toLowerCase()}function fe(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve={};return le(me)&&Object.keys(me).forEach(function(he){ve[ue(he)]=me[he]}),ve}},{"../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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getObjectMeta=function(){var ee=(0,ie.default)(z.default.mark(function E(ne,te){var se,ue;return z.default.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return te=te||{},ne=this._objectName(ne),te.subres=Object.assign({objectMeta:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),se=this._objectRequestParams("HEAD",ne,te),se.successStatuses=[200],me.next=8,this.request(se);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 le(E,ne){return ee.apply(this,arguments)}return le}()},{"@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,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be,ee=y("../utils/isObject"),le=ee.isObject;oe.getObjectTagging=function(){var E=(0,ie.default)(z.default.mark(function te(se){var ue,fe,me,ve,he,ge,xe=arguments;return z.default.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ue=xe.length>1&&xe[1]!==void 0?xe[1]:{},ue.subres=Object.assign({tagging:""},ue.subres),ue.versionId&&(ue.subres.versionId=ue.versionId),se=this._objectName(se),fe=this._objectRequestParams("GET",se,ue),fe.successStatuses=[200],je.next=8,this.request(fe);case 8:return me=je.sent,je.next=11,this.parseXML(me.data);case 11:return ve=je.sent,he=ve.TagSet.Tag,he=he&&le(he)?[he]:he||[],ge={},he.forEach(function(Ee){ge[Ee.Key]=Ee.Value}),je.abrupt("return",{status:me.status,res:me.res,tag:ge});case 17:case"end":return je.stop()}},te,this)}));function ne(te){return E.apply(this,arguments)}return ne}()},{"../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,Te,be){"use strict";var x=y("../utils/isIP"),z=x.isIP,ie=be;ie.getObjectUrl=function(ee,le){if(z(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");return le?le[le.length-1]!=="/"&&(le+="/"):le=this.options.endpoint.format(),le+this._escape(this._objectName(ee))}},{"../utils/isIP":69}],43:[function(y,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.getSymlink=function(){var ee=(0,ie.default)(z.default.mark(function E(ne){var te,se,ue,fe,me=arguments;return z.default.wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return te=me.length>1&&me[1]!==void 0?me[1]:{},te.subres=Object.assign({symlink:""},te.subres),te.versionId&&(te.subres.versionId=te.versionId),ne=this._objectName(ne),se=this._objectRequestParams("GET",ne,te),se.successStatuses=[200],he.next=8,this.request(se);case 8:return ue=he.sent,fe=ue.res.headers["x-oss-symlink-target"],he.abrupt("return",{targetName:decodeURIComponent(fe),res:ue.res});case 11:case"end":return he.stop()}},E,this)}));function le(E){return ee.apply(this,arguments)}return le}()},{"@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,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/checkEnv"),ee=oe.checkEnv,le=be;le.head=function(){var E=(0,ie.default)(z.default.mark(function te(se){var ue,fe,me,ve,he=arguments;return z.default.wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:return ue=he.length>1&&he[1]!==void 0?he[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),fe=this._objectRequestParams("HEAD",se,ue),fe.successStatuses=[200,304],xe.next=8,this.request(fe);case 8:return me=xe.sent,ve={meta:null,res:me.res,status:me.status},me.status===200&&Object.keys(me.headers).forEach(function(Ce){Ce.indexOf("x-oss-meta-")===0&&(ve.meta||(ve.meta={}),ve.meta[Ce.substring(11)]=me.headers[Ce])}),xe.abrupt("return",ve);case 12:case"end":return xe.stop()}},te,this)}));function ne(te){return E.apply(this,arguments)}return ne}()},{"../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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.putACL=function(){var ee=(0,ie.default)(z.default.mark(function E(ne,te,se){var ue,fe;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return se=se||{},se.subres=Object.assign({acl:""},se.subres),se.versionId&&(se.subres.versionId=se.versionId),se.headers=se.headers||{},se.headers["x-oss-object-acl"]=te,ne=this._objectName(ne),ue=this._objectRequestParams("PUT",ne,se),ue.successStatuses=[200],ve.next=10,this.request(ue);case 10:return fe=ve.sent,ve.abrupt("return",{res:fe.res});case 12:case"end":return ve.stop()}},E,this)}));function le(E,ne,te){return ee.apply(this,arguments)}return le}()},{"@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,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("../utils/obj2xml"),ee=oe.obj2xml,le=y("../utils/checkObjectTag"),E=le.checkObjectTag,ne=be;ne.putObjectTagging=function(){var te=(0,ie.default)(z.default.mark(function ue(fe,me){var ve,he,ge,xe,Ce=arguments;return z.default.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return ve=Ce.length>2&&Ce[2]!==void 0?Ce[2]:{},E(me),ve.subres=Object.assign({tagging:""},ve.subres),ve.versionId&&(ve.subres.versionId=ve.versionId),fe=this._objectName(fe),he=this._objectRequestParams("PUT",fe,ve),he.successStatuses=[200],me=Object.keys(me).map(function(ce){return{Key:ce,Value:me[ce]}}),ge={Tagging:{TagSet:{Tag:me}}},he.mime="xml",he.content=ee(ge),Ee.next=13,this.request(he);case 13:return xe=Ee.sent,Ee.abrupt("return",{res:xe.res,status:xe.status});case 15:case"end":return Ee.stop()}},ue,this)}));function se(ue,fe){return te.apply(this,arguments)}return se}()},{"../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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/regenerator"));y("core-js/modules/es.object.assign.js");var ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=be;oe.putSymlink=function(){var ee=(0,ie.default)(z.default.mark(function E(ne,te,se){var ue,fe;return z.default.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return se=se||{},se.headers=se.headers||{},te=this._escape(this._objectName(te)),this._convertMetaToHeaders(se.meta,se.headers),se.headers["x-oss-symlink-target"]=te,se.subres=Object.assign({symlink:""},se.subres),se.versionId&&(se.subres.versionId=se.versionId),se.storageClass&&(se.headers["x-oss-storage-class"]=se.storageClass),ne=this._objectName(ne),ue=this._objectRequestParams("PUT",ne,se),ue.successStatuses=[200],ve.next=13,this.request(ue);case 13:return fe=ve.sent,ve.abrupt("return",{res:fe.res});case 15:case"end":return ve.stop()}},E,this)}));function le(E,ne,te){return ee.apply(this,arguments)}return le}()},{"@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,Te,be){"use strict";var x=y("url"),z=y("utility"),ie=y("copy-to"),oe=y("../../common/signUtils"),ee=y("../utils/isIP"),le=ee.isIP,E=be;E.signatureUrl=function(te,se){if(le(this.options.endpoint.hostname))throw new Error("can not get the object URL when endpoint is IP");se=se||{},te=this._objectName(te),se.method=se.method||"GET";var ue=z.timestamp()+(se.expires||1800),fe={bucket:this.options.bucket,object:te},me=this._getResource(fe);this.options.stsToken&&(se["security-token"]=this.options.stsToken);var ve=oe._signatureForURL(this.options.accessKeySecret,se,me,ue),he=x.parse(this._getReqUrl(fe));return he.query={OSSAccessKeyId:this.options.accessKeyId,Expires:ue,Signature:ve.Signature},ie(ve.subResource).to(he.query),he.format()}},{"../../common/signUtils":50,"../utils/isIP":69,"copy-to":94,url:472,utility:474}],49:[function(y,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator")),oe=y("./utils/isArray"),ee=oe.isArray,le=be;le._parallelNode=function(){var E=(0,ie.default)(z.default.mark(function te(se,ue,fe,me){var ve,he,ge,xe,Ce,je,Ee,ce;return z.default.wrap(function(we){for(;;)switch(we.prev=we.next){case 0:ve=this,he=[],ge=[],xe=se.length/ue,Ce=se.length%ue,je=Ce===0?xe:(se.length-Ce)/ue+1,Ee=1,ce=0;case 8:if(!(ce<se.length)){we.next=26;break}if(!ve.isCancel()){we.next=11;break}return we.abrupt("break",26);case 11:if(me?ge.push(fe(ve,se[ce],me)):ge.push(fe(ve,se[ce])),!(ge.length===ue||Ee===je&&ce===se.length-1)){we.next=23;break}return we.prev=13,Ee+=1,we.next=17,Promise.all(ge);case 17:we.next=22;break;case 19:we.prev=19,we.t0=we.catch(13),he.push(we.t0);case 22:ge=[];case 23:ce++,we.next=8;break;case 26:return we.abrupt("return",he);case 27:case"end":return we.stop()}},te,this,[[13,19]])}));function ne(te,se,ue,fe){return E.apply(this,arguments)}return ne}(),le._parallel=function(ne,te,se){var ue=this;return new Promise(function(fe){var me=[];if(te<=0||!ne){fe(me);return}function ve(we){return function(){if(we===null)throw new Error("Callback was already called.");var De=we;we=null;for(var Re=arguments.length,ke=new Array(Re),_e=0;_e<Re;_e++)ke[_e]=arguments[_e];De.apply(this,ke)}}function he(we){var De=-1,Re=we.length;return function(){return++De<Re&&!ue.isCancel()?{value:we[De],key:De}:null}}var ge=he(ne),xe=!1,Ce=0,je=!1;function Ee(we){Ce-=1,we?(xe=!0,me.push(we),fe(me)):xe&&Ce<=0?(xe=!0,fe(me)):je||(ue.isCancel()?fe(me):ye())}function ce(we,De){se(we).then(function(Re){De(null,Re)}).catch(function(Re){De(Re)})}function ye(){for(je=!0;Ce<te&&!xe&&!ue.isCancel();){var we=ge();if(we===null||me.length>0){xe=!0,Ce<=0&&fe(me);return}Ce+=1,ce(we.value,ve(Ee))}je=!1}ye()})},le.cancel=function(ne){this.options.cancelFlag=!0,ee(this.multipartUploadStreams)&&this.multipartUploadStreams.forEach(function(te){if(te.destroyed===!1){var se={name:"cancel",message:"cancel"};te.destroy(se)}}),this.multipartUploadStreams=[],ne&&this.abortMultipartUpload(ne.name,ne.uploadId,ne.options)},le.isCancel=function(){return this.options.cancelFlag},le.resetCancelFlag=function(){this.options.cancelFlag=!1},le._stop=function(){this.options.cancelFlag=!0},le._makeCancelEvent=function(){var ne={status:0,name:"cancel"};return ne},le._makeAbortEvent=function(){var ne={status:0,name:"abort",message:"upload task has been abort"};return ne}},{"./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,Te,be){(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"),ie=y("is-type-of"),oe=y("./utils/lowercaseKeyHeader"),ee=oe.lowercaseKeyHeader;be.buildCanonicalizedResource=function(E,ne){var te="".concat(E),se="?";if(ie.string(ne)&&ne.trim()!=="")te+=se+ne;else if(ie.array(ne))ne.sort(),te+=se+ne.join("&");else if(ne){var ue=function(ve,he){return ve[0]>he[0]?1:ve[0]<he[0]?-1:0},fe=function(ve){te+=se+ve,(ne[ve]||ne[ve]===0)&&(te+="=".concat(ne[ve])),se="&"};Object.keys(ne).sort(ue).forEach(fe)}return te},be.buildCanonicalString=function(E,ne,te,se){te=te||{};var ue=ee(te.headers),fe="x-oss-",me=[],ve={},he=[E.toUpperCase(),ue["content-md5"]||"",ue["content-type"],se||ue["x-oss-date"]];return Object.keys(ue).forEach(function(ge){var xe=ge.toLowerCase();xe.indexOf(fe)===0&&(ve[xe]=String(ue[ge]).trim())}),Object.keys(ve).sort().forEach(function(ge){me.push("".concat(ge,":").concat(ve[ge]))}),he=he.concat(me),he.push(this.buildCanonicalizedResource(ne,te.parameters)),he.join(`
`)},be.computeSignature=function(E,ne){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"utf-8",se=z.createHmac("sha1",E);return se.update(x.from(ne,te)).digest("base64")},be.authorization=function(E,ne,te,se){return"OSS ".concat(E,":").concat(this.computeSignature(ne,te,se))},be._signatureForURL=function(E){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=arguments.length>2?arguments[2]:void 0,se=arguments.length>3?arguments[3]:void 0,ue=arguments.length>4?arguments[4]:void 0,fe={},me=ne.subResource,ve=me===void 0?{}:me;if(ne.process){var he="x-oss-process";ve[he]=ne.process}if(ne.trafficLimit){var ge="x-oss-traffic-limit";ve[ge]=ne.trafficLimit}if(ne.response&&Object.keys(ne.response).forEach(function(Ee){var ce="response-".concat(Ee.toLowerCase());ve[ce]=ne.response[Ee]}),Object.keys(ne).forEach(function(Ee){var ce=Ee.toLowerCase(),ye=ne[Ee];ce.indexOf("x-oss-")===0?fe[ce]=ye:(ce.indexOf("content-md5")===0||ce.indexOf("content-type")===0)&&(fe[Ee]=ye)}),Object.prototype.hasOwnProperty.call(ne,"security-token")&&(ve["security-token"]=ne["security-token"]),Object.prototype.hasOwnProperty.call(ne,"callback")){var xe={callbackUrl:encodeURI(ne.callback.url),callbackBody:ne.callback.body};if(ne.callback.host&&(xe.callbackHost=ne.callback.host),ne.callback.contentType&&(xe.callbackBodyType=ne.callback.contentType),ve.callback=x.from(JSON.stringify(xe)).toString("base64"),ne.callback.customValue){var Ce={};Object.keys(ne.callback.customValue).forEach(function(Ee){Ce["x:".concat(Ee)]=ne.callback.customValue[Ee]}),ve["callback-var"]=x.from(JSON.stringify(Ce)).toString("base64")}}var je=this.buildCanonicalString(ne.method,te,{headers:fe,parameters:ve},se.toString());return{Signature:this.computeSignature(E,je,ue),subResource:ve}}}).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,Te,be){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkBucketName=void 0,be.checkBucketName=function(x){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=z?/^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$/:/^[a-z0-9_][a-z0-9-_]{1,61}[a-z0-9_]$/;if(!ie.test(x))throw new Error("The bucket must be conform to the specifications")}},{"core-js/modules/es.regexp.exec.js":300}],52:[function(y,Te,be){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.checkConfigValid=void 0;var x={endpoint:z,region:/^[a-zA-Z0-9\-_]+$/};function z(ie){return typeof ie=="string"?/^[a-zA-Z0-9._:/-]+$/.test(ie):ie.host?/^[a-zA-Z0-9._:/-]+$/.test(ie.host):!1}be.checkConfigValid=function(ie,oe){if(x[oe]){var ee=!0;if(x[oe]instanceof Function?ee=x[oe](ie):ee=x[oe].test(ie),!ee)throw new Error("The ".concat(oe," must be conform to the specifications"))}}},{"core-js/modules/es.regexp.exec.js":300}],53:[function(y,Te,be){(function(x){(function(){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.checkEnv=void 0;function z(ie){x.browser&&console.warn(ie)}be.checkEnv=z}).call(this)}).call(this,y("_process"))},{_process:467}],54:[function(y,Te,be){"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(be,"__esModule",{value:!0}),be.checkObjectTag=void 0;var x=y("./checkValid"),z=x.checkValid,ie=y("./isObject"),oe=ie.isObject,ee=[{validator:function(te){if(typeof te!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],le={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(ne){if(!oe(ne))throw new Error("tag must be Object");var te=Object.entries(ne);if(te.length>10)throw new Error("maximum of 10 tags for a object");var se=["key","value"];te.forEach(function(ue){ue.forEach(function(fe,me){z(fe,le[se[me]])})})}be.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,Te,be){"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(be,"__esModule",{value:!0}),be.checkValid=void 0;function x(z,ie){ie.forEach(function(oe){if(oe.validator)oe.validator(z);else if(oe.pattern&&!oe.pattern.test(z))throw new Error(oe.msg)})}be.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,Te,be){(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(be,"__esModule",{value:!0}),be.createRequest=void 0;var z=y("./../../../shims/crypto/crypto.js"),ie=y("debug")("ali-oss"),oe=y("mime"),ee=y("dateformat"),le=y("copy-to"),E=y("path"),ne=y("./encoder"),te=ne.encoder,se=y("./isIP"),ue=se.isIP,fe=y("./setRegion"),me=fe.setRegion,ve=y("../client/getReqUrl"),he=ve.getReqUrl,ge=y("./isDingTalk"),xe=ge.isDingTalk;function Ce(ce,ye){return ce[ye]||ce[ye.toLowerCase()]}function je(ce,ye){delete ce[ye],delete ce[ye.toLowerCase()]}function Ee(ce){var ye=new Date;this.options.amendTimeSkewed&&(ye=+new Date+this.options.amendTimeSkewed);var we={"x-oss-date":ee(ye,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'")};typeof window!="undefined"&&(we["x-oss-user-agent"]=this.userAgent),this.userAgent.includes("nodejs")&&(we["User-Agent"]=this.userAgent),this.options.isRequestPay&&Object.assign(we,{"x-oss-request-payer":"requester"}),this.options.stsToken&&(we["x-oss-security-token"]=this.options.stsToken),le(ce.headers).to(we),Ce(we,"Content-Type")||(ce.mime&&ce.mime.indexOf("/")>0?we["Content-Type"]=ce.mime:xe()?we["Content-Type"]="application/octet-stream":we["Content-Type"]=oe.getType(ce.mime||E.extname(ce.object||""))),Ce(we,"Content-Type")||je(we,"Content-Type"),ce.content&&(ce.disabledMD5||(!ce.headers||!ce.headers["Content-MD5"]?we["Content-MD5"]=z.createHash("md5").update(x.from(ce.content,"utf8")).digest("base64"):we["Content-MD5"]=ce.headers["Content-MD5"]),we["Content-Length"]||(we["Content-Length"]=ce.content.length));var De=Object.prototype.hasOwnProperty;for(var Re in we)we[Re]&&De.call(we,Re)&&(we[Re]=te(String(we[Re]),this.options.headerEncoding));var ke=this._getResource(ce);if(we.authorization=this.authorization(ce.method,ke,ce.subres,we,this.options.headerEncoding),ue(this.options.endpoint.hostname)){var _e=this.options,Ze=_e.region,Ve=_e.internal,Qe=_e.secure,ut=me(Ze,Ve,Qe);we.host="".concat(ce.bucket,".").concat(ut.host)}var Ie=he.bind(this)(ce);ie("request %s %s, with headers %j, !!stream: %s",ce.method,Ie,we,!!ce.stream);var We=ce.timeout||this.options.timeout,it={method:ce.method,content:ce.content,stream:ce.stream,headers:we,timeout:We,writeStream:ce.writeStream,customResponse:ce.customResponse,ctx:ce.ctx||this.ctx};return this.agent&&(it.agent=this.agent),this.httpsAgent&&(it.httpsAgent=this.httpsAgent),it.enableProxy=!!this.options.enableProxy,it.proxy=this.options.proxy?this.options.proxy:null,{url:Ie,params:it}}be.createRequest=Ee}).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,Te,be){"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(be,"__esModule",{value:!0}),be.dataFix=void 0;var x=y("./isObject"),z=["true","TRUE","1",1],ie=["false","FALSE","0",0];function oe(E,ne,te){if(x.isObject(E)){var se=ne.remove,ue=se===void 0?[]:se,fe=ne.rename,me=fe===void 0?{}:fe,ve=ne.camel,he=ve===void 0?[]:ve,ge=ne.bool,xe=ge===void 0?[]:ge,Ce=ne.lowerFirst,je=Ce===void 0?!1:Ce;return ue.forEach(function(Ee){return delete E[Ee]}),Object.entries(me).forEach(function(Ee){E[Ee[0]]&&(E[Ee[1]]||(E[Ee[1]]=E[Ee[0]],delete E[Ee[0]]))}),he.forEach(function(Ee){if(E[Ee]){var ce=Ee.replace(/^(.)/,function(ye){return ye.toLowerCase()}).replace(/-(\w)/g,function(ye,we){return we.toUpperCase()});E[ce]||(E[ce]=E[Ee])}}),xe.forEach(function(Ee){E[Ee]=ee(E[Ee])}),typeof te=="function"&&te(E),le(E,je),oe}}be.dataFix=oe;function ee(E){return E?z.includes(E)?!0:ie.includes(E)?!1:E:!1}function le(E,ne){ne&&Object.keys(E).forEach(function(te){var se=te.replace(/^\w/,function(ue){return ue.toLowerCase()});typeof E[se]=="undefined"&&(E[se]=E[te],delete E[te])})}},{"./isObject":70,"core-js/modules/es.array.includes.js":277,"core-js/modules/es.object.entries.js":288,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],58:[function(y,Te,be){"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(be,"__esModule",{value:!0}),be.deepCopyWith=be.deepCopy=void 0;var ie=y("./isBuffer");be.deepCopy=function(oe){if(oe===null||(0,z.default)(oe)!=="object")return oe;if(ie.isBuffer(oe))return oe.slice();var ee=Array.isArray(oe)?[]:{};return Object.keys(oe).forEach(function(le){ee[le]=be.deepCopy(oe[le])}),ee},be.deepCopyWith=function(oe,ee){function le(E,ne,te){var se=ee(E,ne,te);if(se!==void 0)return se;if(E===null||(0,z.default)(E)!=="object")return E;if(ie.isBuffer(E))return E.slice();var ue=Array.isArray(E)?[]:{};return Object.keys(E).forEach(function(fe){ue[fe]=le(E[fe],fe,E)}),ue}return ee?le(oe,"",null):be.deepCopy(oe)}},{"./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,Te,be){(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(be,"__esModule",{value:!0}),be.encoder=void 0;function z(ie){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"utf-8";return oe==="utf-8"?ie:x.from(ie).toString("latin1")}be.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,Te,be){"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(be,"__esModule",{value:!0}),be.formatInventoryConfig=void 0;var x=y("../utils/dataFix"),z=y("../utils/isObject"),ie=y("../utils/isArray"),oe=y("../utils/formatObjKey");function ee(E){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ne&&z.isObject(E)&&(E=[E]),ie.isArray(E)?E=E.map(le):E=le(E),E}be.formatInventoryConfig=ee;function le(E){return x.dataFix(E,{bool:["IsEnabled"]},function(ne){var te,se;ne.prefix=ne.Filter.Prefix,delete ne.Filter,ne.OSSBucketDestination=ne.Destination.OSSBucketDestination,ne.OSSBucketDestination.rolename=ne.OSSBucketDestination.RoleArn.replace(/.*\//,""),delete ne.OSSBucketDestination.RoleArn,ne.OSSBucketDestination.bucket=ne.OSSBucketDestination.Bucket.replace(/.*:::/,""),delete ne.OSSBucketDestination.Bucket,delete ne.Destination,ne.frequency=ne.Schedule.Frequency,delete ne.Schedule.Frequency,!((te=ne==null?void 0:ne.OptionalFields)===null||te===void 0)&&te.Field&&!ie.isArray((se=ne.OptionalFields)===null||se===void 0?void 0:se.Field)&&(ne.OptionalFields.Field=[ne.OptionalFields.Field])}),E=oe.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,Te,be){"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(be,"__esModule",{value:!0}),be.formatObjKey=void 0;function ie(ee,le,E){if(ee===null||(0,z.default)(ee)!=="object")return ee;var ne;if(Array.isArray(ee)){ne=[];for(var te=0;te<ee.length;te++)ne.push(ie(ee[te],le,E))}else ne={},Object.keys(ee).forEach(function(se){ne[oe(se,le,E)]=ie(ee[se],le,E)});return ne}be.formatObjKey=ie;function oe(ee,le,E){return E&&E.exclude&&E.exclude.includes(ee)||(le==="firstUpperCase"?ee=ee.replace(/^./,function(ne){return ne.toUpperCase()}):le==="firstLowerCase"&&(ee=ee.replace(/^./,function(ne){return ne.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,Te,be){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.getStrBytesCount=void 0;function x(z){for(var ie=0,oe=0;oe<z.length;oe++){var ee=z.charAt(oe);/^[\u00-\uff]$/.test(ee)?ie+=1:ie+=2}return ie}be.getStrBytesCount=x},{"core-js/modules/es.regexp.exec.js":300}],63:[function(y,Te,be){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isArray=void 0,be.isArray=function(x){return Object.prototype.toString.call(x)==="[object Array]"}},{"core-js/modules/es.object.to-string.js":291}],64:[function(y,Te,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isBlob=void 0;function x(z){return typeof Blob!="undefined"&&z instanceof Blob}be.isBlob=x},{}],65:[function(y,Te,be){(function(x){(function(){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isBuffer=void 0;function z(ie){return x.isBuffer(ie)}be.isBuffer=z}).call(this)}).call(this,{isBuffer:y("../../../node_modules/is-buffer/index.js")})},{"../../../node_modules/is-buffer/index.js":366}],66:[function(y,Te,be){(function(x){(function(){"use strict";y("core-js/modules/es.array.includes.js"),y("core-js/modules/es.string.includes.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isDingTalk=void 0;function z(){return!!(x.browser&&window.navigator.userAgent.toLowerCase().includes("aliapp(dingtalk"))}be.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,Te,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isFile=void 0,be.isFile=function(x){return typeof File!="undefined"&&x instanceof File}},{}],68:[function(y,Te,be){"use strict";Object.defineProperty(be,"__esModule",{value:!0}),be.isFunction=void 0,be.isFunction=function(x){return typeof x=="function"}},{}],69:[function(y,Te,be){"use strict";y("core-js/modules/es.regexp.exec.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isIP=void 0,be.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}$/,ie=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return z.test(x)||ie.test(x)}},{"core-js/modules/es.regexp.exec.js":300}],70:[function(y,Te,be){"use strict";y("core-js/modules/es.object.to-string.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.isObject=void 0,be.isObject=function(x){return Object.prototype.toString.call(x)==="[object Object]"}},{"core-js/modules/es.object.to-string.js":291}],71:[function(y,Te,be){"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(be,"__esModule",{value:!0}),be.lowercaseKeyHeader=void 0;var x=y("./isObject");function z(ie){var oe={};return x.isObject(ie)&&Object.keys(ie).forEach(function(ee){oe[ee.toLowerCase()]=ie[ee]}),oe}be.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,Te,be){"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(be,"__esModule",{value:!0}),be.obj2xml=void 0;var x=y("./formatObjKey");function z(oe){return Object.prototype.toString.call(oe).replace(/(.*? |])/g,"").toLowerCase()}function ie(oe,ee){var le="";return ee&&ee.headers&&(le=`<?xml version="1.0" encoding="UTF-8"?>
`),ee&&ee.firstUpperCase&&(oe=x.formatObjKey(oe,"firstUpperCase")),z(oe)==="object"?Object.keys(oe).forEach(function(E){z(oe[E])!=="undefined"&&z(oe[E])!=="null"&&(z(oe[E])==="string"||z(oe[E])==="number"?le+="<".concat(E,">").concat(oe[E],"</").concat(E,">"):z(oe[E])==="object"?le+="<".concat(E,">").concat(ie(oe[E]),"</").concat(E,">"):z(oe[E])==="array"?le+=oe[E].map(function(ne){return"<".concat(E,">").concat(ie(ne),"</").concat(E,">")}).join(""):le+="<".concat(E,">").concat(oe[E].toString(),"</").concat(E,">"))}):le+=oe.toString(),le}be.obj2xml=ie},{"./formatObjKey":61,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.map.js":280,"core-js/modules/es.object.keys.js":290,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.exec.js":300,"core-js/modules/es.regexp.to-string.js":301,"core-js/modules/es.string.replace.js":305,"core-js/modules/web.dom-collections.for-each.js":339}],73:[function(y,Te,be){"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,le){var E=typeof Symbol!="undefined"&&ee[Symbol.iterator]||ee["@@iterator"];if(!E){if(Array.isArray(ee)||(E=z(ee))||le&&ee&&typeof ee.length=="number"){E&&(ee=E);var ne=0,te=function(){};return{s:te,n:function(){return ne>=ee.length?{done:!0}:{done:!1,value:ee[ne++]}},e:function(ve){throw ve},f:te}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var se=!0,ue=!1,fe;return{s:function(){E=E.call(ee)},n:function(){var ve=E.next();return se=ve.done,ve},e:function(ve){ue=!0,fe=ve},f:function(){try{!se&&E.return!=null&&E.return()}finally{if(ue)throw fe}}}}function z(ee,le){if(ee){if(typeof ee=="string")return ie(ee,le);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 ie(ee,le)}}function ie(ee,le){(le==null||le>ee.length)&&(le=ee.length);for(var E=0,ne=new Array(le);E<le;E++)ne[E]=ee[E];return ne}Object.defineProperty(be,"__esModule",{value:!0}),be.omit=void 0;function oe(ee,le){var E=Object.assign({},ee),ne=x(le),te;try{for(ne.s();!(te=ne.n()).done;){var se=te.value;delete E[se]}}catch(ue){ne.e(ue)}finally{ne.f()}return E}be.omit=oe},{"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,Te,be){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),Object.defineProperty(be,"__esModule",{value:!0}),be.retry=void 0;function x(z,ie){var oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=0,le=oe.retryDelay,E=le===void 0?500:le,ne=oe.errorHandler,te=ne===void 0?function(){return!0}:ne,se=function ue(){for(var fe=arguments.length,me=new Array(fe),ve=0;ve<fe;ve++)me[ve]=arguments[ve];return new Promise(function(he,ge){z.apply(void 0,me).then(function(xe){ee=0,he(xe)}).catch(function(xe){ee<ie&&te(xe)?(ee++,setTimeout(function(){he(ue.apply(void 0,me))},E)):(ee=0,ge(xe))})})};return se}be.retry=x},{"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.promise.js":295}],75:[function(y,Te,be){"use strict";var x=function(ee){return ee&&ee.__esModule?ee:{default:ee}};Object.defineProperty(be,"__esModule",{value:!0}),be.setRegion=void 0;var z=x(y("url")),ie=y("./checkConfigValid");function oe(ee){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ie.checkConfigValid(ee,"region");var ne=E?"https://":"http://",te=le?"-internal.aliyuncs.com":".aliyuncs.com",se="vpc100-oss-cn-";return ee.substr(0,se.length)===se&&(te=".aliyuncs.com"),z.default.parse(ne+ee+te)}be.setRegion=oe},{"./checkConfigValid":52,url:472}],76:[function(y,Te,be){"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 ie=x(y("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(be,"__esModule",{value:!0}),be.checkCredentials=be.setSTSToken=void 0;var oe=y("./formatObjKey");function ee(){return le.apply(this,arguments)}function le(){return le=(0,ie.default)(z.default.mark(function ne(){var te,se;return z.default.wrap(function(fe){for(;;)switch(fe.prev=fe.next){case 0:if(this.options||(this.options={}),te=new Date,!this.stsTokenFreshTime){fe.next=14;break}if(!(+te-this.stsTokenFreshTime>=this.options.refreshSTSTokenInterval)){fe.next=12;break}return this.stsTokenFreshTime=te,fe.next=7,this.options.refreshSTSToken();case 7:se=fe.sent,se=oe.formatObjKey(se,"firstLowerCase"),se.securityToken&&(se.stsToken=se.securityToken),E(se),Object.assign(this.options,se);case 12:fe.next=15;break;case 14:this.stsTokenFreshTime=te;case 15:return fe.abrupt("return",null);case 16:case"end":return fe.stop()}},ne,this)})),le.apply(this,arguments)}be.setSTSToken=ee;function E(ne){var te=["accessKeySecret","accessKeyId","stsToken"],se=Object.keys(ne);te.forEach(function(ue){if(!se.find(function(fe){return fe===ue}))throw Error("refreshSTSToken must return contains ".concat(ue))})}be.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,Te,be){function x(ie,oe,ee,le,E,ne,te){try{var se=ie[ne](te),ue=se.value}catch(fe){ee(fe);return}se.done?oe(ue):Promise.resolve(ue).then(le,E)}function z(ie){return function(){var oe=this,ee=arguments;return new Promise(function(le,E){var ne=ie.apply(oe,ee);function te(ue){x(ne,le,E,te,se,"next",ue)}function se(ue){x(ne,le,E,te,se,"throw",ue)}te(void 0)})}}Te.exports=z,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],78:[function(y,Te,be){function x(z){return z&&z.__esModule?z:{default:z}}Te.exports=x,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],79:[function(y,Te,be){function x(z){"@babel/helpers - typeof";return Te.exports=x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ie){return typeof ie}:function(ie){return ie&&typeof Symbol=="function"&&ie.constructor===Symbol&&ie!==Symbol.prototype?"symbol":typeof ie},Te.exports.__esModule=!0,Te.exports.default=Te.exports,x(z)}Te.exports=x,Te.exports.__esModule=!0,Te.exports.default=Te.exports},{}],80:[function(y,Te,be){Te.exports=y("regenerator-runtime")},{"regenerator-runtime":395}],81:[function(y,Te,be){Te.exports=x,Te.exports.HttpsAgent=x;function x(){}},{}],82:[function(y,Te,be){(function(x){(function(){"use strict";var z=y("object-assign");function ie(Ze,Ve){if(Ze===Ve)return 0;for(var Qe=Ze.length,ut=Ve.length,Ie=0,We=Math.min(Qe,ut);Ie<We;++Ie)if(Ze[Ie]!==Ve[Ie]){Qe=Ze[Ie],ut=Ve[Ie];break}return Qe<ut?-1:ut<Qe?1:0}function oe(Ze){return x.Buffer&&typeof x.Buffer.isBuffer=="function"?x.Buffer.isBuffer(Ze):!!(Ze!=null&&Ze._isBuffer)}var ee=y("util/"),le=Object.prototype.hasOwnProperty,E=Array.prototype.slice,ne=function(){return function(){}.name==="foo"}();function te(Ze){return Object.prototype.toString.call(Ze)}function se(Ze){return oe(Ze)||typeof x.ArrayBuffer!="function"?!1:typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(Ze):Ze?!!(Ze instanceof DataView||Ze.buffer&&Ze.buffer instanceof ArrayBuffer):!1}var ue=Te.exports=Ce,fe=/\s*function\s+([^\(\s]*)\s*/;function me(Ze){if(ee.isFunction(Ze)){if(ne)return Ze.name;var Ve=Ze.toString(),Qe=Ve.match(fe);return Qe&&Qe[1]}}ue.AssertionError=function(Ve){this.name="AssertionError",this.actual=Ve.actual,this.expected=Ve.expected,this.operator=Ve.operator,Ve.message?(this.message=Ve.message,this.generatedMessage=!1):(this.message=ge(this),this.generatedMessage=!0);var Qe=Ve.stackStartFunction||xe;if(Error.captureStackTrace)Error.captureStackTrace(this,Qe);else{var ut=new Error;if(ut.stack){var Ie=ut.stack,We=me(Qe),it=Ie.indexOf(`
`+We);if(it>=0){var at=Ie.indexOf(`
`,it+1);Ie=Ie.substring(at+1)}this.stack=Ie}}},ee.inherits(ue.AssertionError,Error);function ve(Ze,Ve){return typeof Ze=="string"?Ze.length<Ve?Ze:Ze.slice(0,Ve):Ze}function he(Ze){if(ne||!ee.isFunction(Ze))return ee.inspect(Ze);var Ve=me(Ze),Qe=Ve?": "+Ve:"";return"[Function"+Qe+"]"}function ge(Ze){return ve(he(Ze.actual),128)+" "+Ze.operator+" "+ve(he(Ze.expected),128)}function xe(Ze,Ve,Qe,ut,Ie){throw new ue.AssertionError({message:Qe,actual:Ze,expected:Ve,operator:ut,stackStartFunction:Ie})}ue.fail=xe;function Ce(Ze,Ve){Ze||xe(Ze,!0,Ve,"==",ue.ok)}ue.ok=Ce,ue.equal=function(Ve,Qe,ut){Ve!=Qe&&xe(Ve,Qe,ut,"==",ue.equal)},ue.notEqual=function(Ve,Qe,ut){Ve==Qe&&xe(Ve,Qe,ut,"!=",ue.notEqual)},ue.deepEqual=function(Ve,Qe,ut){je(Ve,Qe,!1)||xe(Ve,Qe,ut,"deepEqual",ue.deepEqual)},ue.deepStrictEqual=function(Ve,Qe,ut){je(Ve,Qe,!0)||xe(Ve,Qe,ut,"deepStrictEqual",ue.deepStrictEqual)};function je(Ze,Ve,Qe,ut){if(Ze===Ve)return!0;if(oe(Ze)&&oe(Ve))return ie(Ze,Ve)===0;if(ee.isDate(Ze)&&ee.isDate(Ve))return Ze.getTime()===Ve.getTime();if(ee.isRegExp(Ze)&&ee.isRegExp(Ve))return Ze.source===Ve.source&&Ze.global===Ve.global&&Ze.multiline===Ve.multiline&&Ze.lastIndex===Ve.lastIndex&&Ze.ignoreCase===Ve.ignoreCase;if((Ze===null||typeof Ze!="object")&&(Ve===null||typeof Ve!="object"))return Qe?Ze===Ve:Ze==Ve;if(se(Ze)&&se(Ve)&&te(Ze)===te(Ve)&&!(Ze instanceof Float32Array||Ze instanceof Float64Array))return ie(new Uint8Array(Ze.buffer),new Uint8Array(Ve.buffer))===0;if(oe(Ze)!==oe(Ve))return!1;ut=ut||{actual:[],expected:[]};var Ie=ut.actual.indexOf(Ze);return Ie!==-1&&Ie===ut.expected.indexOf(Ve)?!0:(ut.actual.push(Ze),ut.expected.push(Ve),ce(Ze,Ve,Qe,ut))}function Ee(Ze){return Object.prototype.toString.call(Ze)=="[object Arguments]"}function ce(Ze,Ve,Qe,ut){if(Ze==null||Ve===null||Ve===void 0)return!1;if(ee.isPrimitive(Ze)||ee.isPrimitive(Ve))return Ze===Ve;if(Qe&&Object.getPrototypeOf(Ze)!==Object.getPrototypeOf(Ve))return!1;var Ie=Ee(Ze),We=Ee(Ve);if(Ie&&!We||!Ie&&We)return!1;if(Ie)return Ze=E.call(Ze),Ve=E.call(Ve),je(Ze,Ve,Qe);var it=_e(Ze),at=_e(Ve),nt,Xe;if(it.length!==at.length)return!1;for(it.sort(),at.sort(),Xe=it.length-1;Xe>=0;Xe--)if(it[Xe]!==at[Xe])return!1;for(Xe=it.length-1;Xe>=0;Xe--)if(nt=it[Xe],!je(Ze[nt],Ve[nt],Qe,ut))return!1;return!0}ue.notDeepEqual=function(Ve,Qe,ut){je(Ve,Qe,!1)&&xe(Ve,Qe,ut,"notDeepEqual",ue.notDeepEqual)},ue.notDeepStrictEqual=ye;function ye(Ze,Ve,Qe){je(Ze,Ve,!0)&&xe(Ze,Ve,Qe,"notDeepStrictEqual",ye)}ue.strictEqual=function(Ve,Qe,ut){Ve!==Qe&&xe(Ve,Qe,ut,"===",ue.strictEqual)},ue.notStrictEqual=function(Ve,Qe,ut){Ve===Qe&&xe(Ve,Qe,ut,"!==",ue.notStrictEqual)};function we(Ze,Ve){if(!Ze||!Ve)return!1;if(Object.prototype.toString.call(Ve)=="[object RegExp]")return Ve.test(Ze);try{if(Ze instanceof Ve)return!0}catch(Qe){}return Error.isPrototypeOf(Ve)?!1:Ve.call({},Ze)===!0}function De(Ze){var Ve;try{Ze()}catch(Qe){Ve=Qe}return Ve}function Re(Ze,Ve,Qe,ut){var Ie;if(typeof Ve!="function")throw new TypeError('"block" argument must be a function');typeof Qe=="string"&&(ut=Qe,Qe=null),Ie=De(Ve),ut=(Qe&&Qe.name?" ("+Qe.name+").":".")+(ut?" "+ut:"."),Ze&&!Ie&&xe(Ie,Qe,"Missing expected exception"+ut);var We=typeof ut=="string",it=!Ze&&ee.isError(Ie),at=!Ze&&Ie&&!Qe;if((it&&We&&we(Ie,Qe)||at)&&xe(Ie,Qe,"Got unwanted exception"+ut),Ze&&Ie&&Qe&&!we(Ie,Qe)||!Ze&&Ie)throw Ie}ue.throws=function(Ze,Ve,Qe){Re(!0,Ze,Ve,Qe)},ue.doesNotThrow=function(Ze,Ve,Qe){Re(!1,Ze,Ve,Qe)},ue.ifError=function(Ze){if(Ze)throw Ze};function ke(Ze,Ve){Ze||xe(Ze,!0,Ve,"==",ke)}ue.strict=z(ke,ue,{equal:ue.strictEqual,deepEqual:ue.deepStrictEqual,notEqual:ue.notStrictEqual,notDeepEqual:ue.notDeepStrictEqual}),ue.strict.strict=ue.strict;var _e=Object.keys||function(Ze){var Ve=[];for(var Qe in Ze)le.call(Ze,Qe)&&Ve.push(Qe);return Ve}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"object-assign":377,"util/":85}],83:[function(y,Te,be){typeof Object.create=="function"?Te.exports=function(z,ie){z.super_=ie,z.prototype=Object.create(ie.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}})}:Te.exports=function(z,ie){z.super_=ie;var oe=function(){};oe.prototype=ie.prototype,z.prototype=new oe,z.prototype.constructor=z}},{}],84:[function(y,Te,be){Te.exports=function(z){return z&&typeof z=="object"&&typeof z.copy=="function"&&typeof z.fill=="function"&&typeof z.readUInt8=="function"}},{}],85:[function(y,Te,be){(function(x,z){(function(){var ie=/%[sdj%]/g;be.format=function(at){if(!ce(at)){for(var nt=[],Xe=0;Xe<arguments.length;Xe++)nt.push(le(arguments[Xe]));return nt.join(" ")}for(var Xe=1,et=arguments,Ye=et.length,dt=String(at).replace(ie,function(lt){if(lt==="%%")return"%";if(Xe>=Ye)return lt;switch(lt){case"%s":return String(et[Xe++]);case"%d":return Number(et[Xe++]);case"%j":try{return JSON.stringify(et[Xe++])}catch(st){return"[Circular]"}default:return lt}}),tt=et[Xe];Xe<Ye;tt=et[++Xe])Ce(tt)||!Re(tt)?dt+=" "+tt:dt+=" "+le(tt);return dt},be.deprecate=function(at,nt){if(we(z.process))return function(){return be.deprecate(at,nt).apply(this,arguments)};if(x.noDeprecation===!0)return at;var Xe=!1;function et(){if(!Xe){if(x.throwDeprecation)throw new Error(nt);x.traceDeprecation?console.trace(nt):console.error(nt),Xe=!0}return at.apply(this,arguments)}return et};var oe={},ee;be.debuglog=function(at){if(we(ee)&&(ee=x.env.NODE_DEBUG||""),at=at.toUpperCase(),!oe[at])if(new RegExp("\\b"+at+"\\b","i").test(ee)){var nt=x.pid;oe[at]=function(){var Xe=be.format.apply(be,arguments);console.error("%s %d: %s",at,nt,Xe)}}else oe[at]=function(){};return oe[at]};function le(at,nt){var Xe={seen:[],stylize:ne};return arguments.length>=3&&(Xe.depth=arguments[2]),arguments.length>=4&&(Xe.colors=arguments[3]),xe(nt)?Xe.showHidden=nt:nt&&be._extend(Xe,nt),we(Xe.showHidden)&&(Xe.showHidden=!1),we(Xe.depth)&&(Xe.depth=2),we(Xe.colors)&&(Xe.colors=!1),we(Xe.customInspect)&&(Xe.customInspect=!0),Xe.colors&&(Xe.stylize=E),se(Xe,at,Xe.depth)}be.inspect=le,le.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]},le.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function E(at,nt){var Xe=le.styles[nt];return Xe?"\x1B["+le.colors[Xe][0]+"m"+at+"\x1B["+le.colors[Xe][1]+"m":at}function ne(at,nt){return at}function te(at){var nt={};return at.forEach(function(Xe,et){nt[Xe]=!0}),nt}function se(at,nt,Xe){if(at.customInspect&&nt&&Ze(nt.inspect)&&nt.inspect!==be.inspect&&!(nt.constructor&&nt.constructor.prototype===nt)){var et=nt.inspect(Xe,at);return ce(et)||(et=se(at,et,Xe)),et}var Ye=ue(at,nt);if(Ye)return Ye;var dt=Object.keys(nt),tt=te(dt);if(at.showHidden&&(dt=Object.getOwnPropertyNames(nt)),_e(nt)&&(dt.indexOf("message")>=0||dt.indexOf("description")>=0))return fe(nt);if(dt.length===0){if(Ze(nt)){var lt=nt.name?": "+nt.name:"";return at.stylize("[Function"+lt+"]","special")}if(De(nt))return at.stylize(RegExp.prototype.toString.call(nt),"regexp");if(ke(nt))return at.stylize(Date.prototype.toString.call(nt),"date");if(_e(nt))return fe(nt)}var st="",He=!1,Ne=["{","}"];if(ge(nt)&&(He=!0,Ne=["[","]"]),Ze(nt)){var Ge=nt.name?": "+nt.name:"";st=" [Function"+Ge+"]"}if(De(nt)&&(st=" "+RegExp.prototype.toString.call(nt)),ke(nt)&&(st=" "+Date.prototype.toUTCString.call(nt)),_e(nt)&&(st=" "+fe(nt)),dt.length===0&&(!He||nt.length==0))return Ne[0]+st+Ne[1];if(Xe<0)return De(nt)?at.stylize(RegExp.prototype.toString.call(nt),"regexp"):at.stylize("[Object]","special");at.seen.push(nt);var Me;return He?Me=me(at,nt,Xe,tt,dt):Me=dt.map(function(Ke){return ve(at,nt,Xe,tt,Ke,He)}),at.seen.pop(),he(Me,st,Ne)}function ue(at,nt){if(we(nt))return at.stylize("undefined","undefined");if(ce(nt)){var Xe="'"+JSON.stringify(nt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return at.stylize(Xe,"string")}if(Ee(nt))return at.stylize(""+nt,"number");if(xe(nt))return at.stylize(""+nt,"boolean");if(Ce(nt))return at.stylize("null","null")}function fe(at){return"["+Error.prototype.toString.call(at)+"]"}function me(at,nt,Xe,et,Ye){for(var dt=[],tt=0,lt=nt.length;tt<lt;++tt)it(nt,String(tt))?dt.push(ve(at,nt,Xe,et,String(tt),!0)):dt.push("");return Ye.forEach(function(st){st.match(/^\d+$/)||dt.push(ve(at,nt,Xe,et,st,!0))}),dt}function ve(at,nt,Xe,et,Ye,dt){var tt,lt,st;if(st=Object.getOwnPropertyDescriptor(nt,Ye)||{value:nt[Ye]},st.get?st.set?lt=at.stylize("[Getter/Setter]","special"):lt=at.stylize("[Getter]","special"):st.set&&(lt=at.stylize("[Setter]","special")),it(et,Ye)||(tt="["+Ye+"]"),lt||(at.seen.indexOf(st.value)<0?(Ce(Xe)?lt=se(at,st.value,null):lt=se(at,st.value,Xe-1),lt.indexOf(`
`)>-1&&(dt?lt=lt.split(`
`).map(function(He){return" "+He}).join(`
`).substr(2):lt=`
`+lt.split(`
`).map(function(He){return" "+He}).join(`
`))):lt=at.stylize("[Circular]","special")),we(tt)){if(dt&&Ye.match(/^\d+$/))return lt;tt=JSON.stringify(""+Ye),tt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(tt=tt.substr(1,tt.length-2),tt=at.stylize(tt,"name")):(tt=tt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),tt=at.stylize(tt,"string"))}return tt+": "+lt}function he(at,nt,Xe){var et=0,Ye=at.reduce(function(dt,tt){return et++,tt.indexOf(`
`)>=0&&et++,dt+tt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return Ye>60?Xe[0]+(nt===""?"":nt+`
`)+" "+at.join(`,
`)+" "+Xe[1]:Xe[0]+nt+" "+at.join(", ")+" "+Xe[1]}function ge(at){return Array.isArray(at)}be.isArray=ge;function xe(at){return typeof at=="boolean"}be.isBoolean=xe;function Ce(at){return at===null}be.isNull=Ce;function je(at){return at==null}be.isNullOrUndefined=je;function Ee(at){return typeof at=="number"}be.isNumber=Ee;function ce(at){return typeof at=="string"}be.isString=ce;function ye(at){return typeof at=="symbol"}be.isSymbol=ye;function we(at){return at===void 0}be.isUndefined=we;function De(at){return Re(at)&&Qe(at)==="[object RegExp]"}be.isRegExp=De;function Re(at){return typeof at=="object"&&at!==null}be.isObject=Re;function ke(at){return Re(at)&&Qe(at)==="[object Date]"}be.isDate=ke;function _e(at){return Re(at)&&(Qe(at)==="[object Error]"||at instanceof Error)}be.isError=_e;function Ze(at){return typeof at=="function"}be.isFunction=Ze;function Ve(at){return at===null||typeof at=="boolean"||typeof at=="number"||typeof at=="string"||typeof at=="symbol"||typeof at=="undefined"}be.isPrimitive=Ve,be.isBuffer=y("./support/isBuffer");function Qe(at){return Object.prototype.toString.call(at)}function ut(at){return at<10?"0"+at.toString(10):at.toString(10)}var Ie=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function We(){var at=new Date,nt=[ut(at.getHours()),ut(at.getMinutes()),ut(at.getSeconds())].join(":");return[at.getDate(),Ie[at.getMonth()],nt].join(" ")}be.log=function(){console.log("%s - %s",We(),be.format.apply(be,arguments))},be.inherits=y("inherits"),be._extend=function(at,nt){if(!nt||!Re(nt))return at;for(var Xe=Object.keys(nt),et=Xe.length;et--;)at[Xe[et]]=nt[Xe[et]];return at};function it(at,nt){return Object.prototype.hasOwnProperty.call(at,nt)}}).call(this)}).call(this,y("_process"),typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":84,_process:467,inherits:83}],86:[function(y,Te,be){(function(x){(function(){"use strict";var z=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],ie=typeof globalThis=="undefined"?x:globalThis;Te.exports=function(){for(var ee=[],le=0;le<z.length;le++)typeof ie[z[le]]=="function"&&(ee[ee.length]=z[le]);return ee}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],87:[function(y,Te,be){"use strict";be.byteLength=ne,be.toByteArray=se,be.fromByteArray=me;for(var x=[],z=[],ie=typeof Uint8Array!="undefined"?Uint8Array:Array,oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ee=0,le=oe.length;ee<le;++ee)x[ee]=oe[ee],z[oe.charCodeAt(ee)]=ee;z[45]=62,z[95]=63;function E(ve){var he=ve.length;if(he%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ge=ve.indexOf("=");ge===-1&&(ge=he);var xe=ge===he?0:4-ge%4;return[ge,xe]}function ne(ve){var he=E(ve),ge=he[0],xe=he[1];return(ge+xe)*3/4-xe}function te(ve,he,ge){return(he+ge)*3/4-ge}function se(ve){var he,ge=E(ve),xe=ge[0],Ce=ge[1],je=new ie(te(ve,xe,Ce)),Ee=0,ce=Ce>0?xe-4:xe,ye;for(ye=0;ye<ce;ye+=4)he=z[ve.charCodeAt(ye)]<<18|z[ve.charCodeAt(ye+1)]<<12|z[ve.charCodeAt(ye+2)]<<6|z[ve.charCodeAt(ye+3)],je[Ee++]=he>>16&255,je[Ee++]=he>>8&255,je[Ee++]=he&255;return Ce===2&&(he=z[ve.charCodeAt(ye)]<<2|z[ve.charCodeAt(ye+1)]>>4,je[Ee++]=he&255),Ce===1&&(he=z[ve.charCodeAt(ye)]<<10|z[ve.charCodeAt(ye+1)]<<4|z[ve.charCodeAt(ye+2)]>>2,je[Ee++]=he>>8&255,je[Ee++]=he&255),je}function ue(ve){return x[ve>>18&63]+x[ve>>12&63]+x[ve>>6&63]+x[ve&63]}function fe(ve,he,ge){for(var xe,Ce=[],je=he;je<ge;je+=3)xe=(ve[je]<<16&16711680)+(ve[je+1]<<8&65280)+(ve[je+2]&255),Ce.push(ue(xe));return Ce.join("")}function me(ve){for(var he,ge=ve.length,xe=ge%3,Ce=[],je=16383,Ee=0,ce=ge-xe;Ee<ce;Ee+=je)Ce.push(fe(ve,Ee,Ee+je>ce?ce:Ee+je));return xe===1?(he=ve[ge-1],Ce.push(x[he>>2]+x[he<<4&63]+"==")):xe===2&&(he=(ve[ge-2]<<8)+ve[ge-1],Ce.push(x[he>>10]+x[he>>4&63]+x[he<<2&63]+"=")),Ce.join("")}},{}],88:[function(y,Te,be){(function(x,z,ie){typeof Te!="undefined"&&Te.exports?Te.exports=ie():typeof Je=="function"&&Je.amd?Je(z,ie):x[z]=ie()})(this,"bowser",function(){var x=!0;function z(te){function se(nt){var Xe=te.match(nt);return Xe&&Xe.length>1&&Xe[1]||""}function ue(nt){var Xe=te.match(nt);return Xe&&Xe.length>1&&Xe[2]||""}var fe=se(/(ipod|iphone|ipad)/i).toLowerCase(),me=/like android/i.test(te),ve=!me&&/android/i.test(te),he=/nexus\s*[0-6]\s*/i.test(te),ge=!he&&/nexus\s*[0-9]+/i.test(te),xe=/CrOS/.test(te),Ce=/silk/i.test(te),je=/sailfish/i.test(te),Ee=/tizen/i.test(te),ce=/(web|hpw)(o|0)s/i.test(te),ye=/windows phone/i.test(te),we=/SamsungBrowser/i.test(te),De=!ye&&/windows/i.test(te),Re=!fe&&!Ce&&/macintosh/i.test(te),ke=!ve&&!je&&!Ee&&!ce&&/linux/i.test(te),_e=ue(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),Ze=se(/version\/(\d+(\.\d+)?)/i),Ve=/tablet/i.test(te)&&!/tablet pc/i.test(te),Qe=!Ve&&/[^-]mobi/i.test(te),ut=/xbox/i.test(te),Ie;/opera/i.test(te)?Ie={name:"Opera",opera:x,version:Ze||se(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(te)?Ie={name:"Opera",opera:x,version:se(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||Ze}:/SamsungBrowser/i.test(te)?Ie={name:"Samsung Internet for Android",samsungBrowser:x,version:Ze||se(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(te)?Ie={name:"NAVER Whale browser",whale:x,version:se(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(te)?Ie={name:"MZ Browser",mzbrowser:x,version:se(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(te)?Ie={name:"Opera Coast",coast:x,version:Ze||se(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(te)?Ie={name:"Focus",focus:x,version:se(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(te)?Ie={name:"Yandex Browser",yandexbrowser:x,version:Ze||se(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(te)?Ie={name:"UC Browser",ucbrowser:x,version:se(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(te)?Ie={name:"Maxthon",maxthon:x,version:se(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(te)?Ie={name:"Epiphany",epiphany:x,version:se(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(te)?Ie={name:"Puffin",puffin:x,version:se(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(te)?Ie={name:"Sleipnir",sleipnir:x,version:se(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(te)?Ie={name:"K-Meleon",kMeleon:x,version:se(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:ye?(Ie={name:"Windows Phone",osname:"Windows Phone",windowsphone:x},_e?(Ie.msedge=x,Ie.version=_e):(Ie.msie=x,Ie.version=se(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(te)?Ie={name:"Internet Explorer",msie:x,version:se(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:xe?Ie={name:"Chrome",osname:"Chrome OS",chromeos:x,chromeBook:x,chrome:x,version:se(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(te)?Ie={name:"Microsoft Edge",msedge:x,version:_e}:/vivaldi/i.test(te)?Ie={name:"Vivaldi",vivaldi:x,version:se(/vivaldi\/(\d+(\.\d+)?)/i)||Ze}:je?Ie={name:"Sailfish",osname:"Sailfish OS",sailfish:x,version:se(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(te)?Ie={name:"SeaMonkey",seamonkey:x,version:se(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(te)?(Ie={name:"Firefox",firefox:x,version:se(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(te)&&(Ie.firefoxos=x,Ie.osname="Firefox OS")):Ce?Ie={name:"Amazon Silk",silk:x,version:se(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(te)?Ie={name:"PhantomJS",phantom:x,version:se(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(te)?Ie={name:"SlimerJS",slimer:x,version:se(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(te)||/rim\stablet/i.test(te)?Ie={name:"BlackBerry",osname:"BlackBerry OS",blackberry:x,version:Ze||se(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:ce?(Ie={name:"WebOS",osname:"WebOS",webos:x,version:Ze||se(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(te)&&(Ie.touchpad=x)):/bada/i.test(te)?Ie={name:"Bada",osname:"Bada",bada:x,version:se(/dolfin\/(\d+(\.\d+)?)/i)}:Ee?Ie={name:"Tizen",osname:"Tizen",tizen:x,version:se(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||Ze}:/qupzilla/i.test(te)?Ie={name:"QupZilla",qupzilla:x,version:se(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||Ze}:/chromium/i.test(te)?Ie={name:"Chromium",chromium:x,version:se(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||Ze}:/chrome|crios|crmo/i.test(te)?Ie={name:"Chrome",chrome:x,version:se(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ve?Ie={name:"Android",version:Ze}:/safari|applewebkit/i.test(te)?(Ie={name:"Safari",safari:x},Ze&&(Ie.version=Ze)):fe?(Ie={name:fe=="iphone"?"iPhone":fe=="ipad"?"iPad":"iPod"},Ze&&(Ie.version=Ze)):/googlebot/i.test(te)?Ie={name:"Googlebot",googlebot:x,version:se(/googlebot\/(\d+(\.\d+))/i)||Ze}:Ie={name:se(/^(.*)\/(.*) /),version:ue(/^(.*)\/(.*) /)},!Ie.msedge&&/(apple)?webkit/i.test(te)?(/(apple)?webkit\/537\.36/i.test(te)?(Ie.name=Ie.name||"Blink",Ie.blink=x):(Ie.name=Ie.name||"Webkit",Ie.webkit=x),!Ie.version&&Ze&&(Ie.version=Ze)):!Ie.opera&&/gecko\//i.test(te)&&(Ie.name=Ie.name||"Gecko",Ie.gecko=x,Ie.version=Ie.version||se(/gecko\/(\d+(\.\d+)?)/i)),!Ie.windowsphone&&(ve||Ie.silk)?(Ie.android=x,Ie.osname="Android"):!Ie.windowsphone&&fe?(Ie[fe]=x,Ie.ios=x,Ie.osname="iOS"):Re?(Ie.mac=x,Ie.osname="macOS"):ut?(Ie.xbox=x,Ie.osname="Xbox"):De?(Ie.windows=x,Ie.osname="Windows"):ke&&(Ie.linux=x,Ie.osname="Linux");function We(nt){switch(nt){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 it="";Ie.windows?it=We(se(/Windows ((NT|XP)( \d\d?.\d)?)/i)):Ie.windowsphone?it=se(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):Ie.mac?(it=se(/Mac OS X (\d+([_\.\s]\d+)*)/i),it=it.replace(/[_\s]/g,".")):fe?(it=se(/os (\d+([_\s]\d+)*) like mac os x/i),it=it.replace(/[_\s]/g,".")):ve?it=se(/android[ \/-](\d+(\.\d+)*)/i):Ie.webos?it=se(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):Ie.blackberry?it=se(/rim\stablet\sos\s(\d+(\.\d+)*)/i):Ie.bada?it=se(/bada\/(\d+(\.\d+)*)/i):Ie.tizen&&(it=se(/tizen[\/\s](\d+(\.\d+)*)/i)),it&&(Ie.osversion=it);var at=!Ie.windows&&it.split(".")[0];return Ve||ge||fe=="ipad"||ve&&(at==3||at>=4&&!Qe)||Ie.silk?Ie.tablet=x:(Qe||fe=="iphone"||fe=="ipod"||ve||he||Ie.blackberry||Ie.webos||Ie.bada)&&(Ie.mobile=x),Ie.msedge||Ie.msie&&Ie.version>=10||Ie.yandexbrowser&&Ie.version>=15||Ie.vivaldi&&Ie.version>=1||Ie.chrome&&Ie.version>=20||Ie.samsungBrowser&&Ie.version>=4||Ie.whale&&le([Ie.version,"1.0"])===1||Ie.mzbrowser&&le([Ie.version,"6.0"])===1||Ie.focus&&le([Ie.version,"1.0"])===1||Ie.firefox&&Ie.version>=20||Ie.safari&&Ie.version>=6||Ie.opera&&Ie.version>=10||Ie.ios&&Ie.osversion&&Ie.osversion.split(".")[0]>=6||Ie.blackberry&&Ie.version>=10.1||Ie.chromium&&Ie.version>=20?Ie.a=x:Ie.msie&&Ie.version<10||Ie.chrome&&Ie.version<20||Ie.firefox&&Ie.version<20||Ie.safari&&Ie.version<6||Ie.opera&&Ie.version<10||Ie.ios&&Ie.osversion&&Ie.osversion.split(".")[0]<6||Ie.chromium&&Ie.version<20?Ie.c=x:Ie.x=x,Ie}var ie=z(typeof navigator!="undefined"&&navigator.userAgent||"");ie.test=function(te){for(var se=0;se<te.length;++se){var ue=te[se];if(typeof ue=="string"&&ue in ie)return!0}return!1};function oe(te){return te.split(".").length}function ee(te,se){var ue=[],fe;if(Array.prototype.map)return Array.prototype.map.call(te,se);for(fe=0;fe<te.length;fe++)ue.push(se(te[fe]));return ue}function le(te){for(var se=Math.max(oe(te[0]),oe(te[1])),ue=ee(te,function(fe){var me=se-oe(fe);return fe=fe+new Array(me+1).join(".0"),ee(fe.split("."),function(ve){return new Array(20-ve.length).join("0")+ve}).reverse()});--se>=0;){if(ue[0][se]>ue[1][se])return 1;if(ue[0][se]===ue[1][se]){if(se===0)return 0}else return-1}}function E(te,se,ue){var fe=ie;typeof se=="string"&&(ue=se,se=void 0),se===void 0&&(se=!1),ue&&(fe=z(ue));var me=""+fe.version;for(var ve in te)if(te.hasOwnProperty(ve)&&fe[ve]){if(typeof te[ve]!="string")throw new Error("Browser version in the minVersion map should be a string: "+ve+": "+String(te));return le([me,te[ve]])<0}return se}function ne(te,se,ue){return!E(te,se,ue)}return ie.isUnsupportedBrowser=E,ie.compareVersions=le,ie.check=ne,ie._detect=z,ie.detect=z,ie})},{}],89:[function(y,Te,be){},{}],90:[function(y,Te,be){(function(x){(function(){"use strict";var z=y("base64-js"),ie=y("ieee754");be.Buffer=E,be.SlowBuffer=xe,be.INSPECT_MAX_BYTES=50;var oe=2147483647;be.kMaxLength=oe,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(Pe){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 le(Ae){if(Ae>oe)throw new RangeError('The value "'+Ae+'" is invalid for option "size"');var Pe=new Uint8Array(Ae);return Pe.__proto__=E.prototype,Pe}function E(Ae,Pe,Ue){if(typeof Ae=="number"){if(typeof Pe=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ue(Ae)}return ne(Ae,Pe,Ue)}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 ne(Ae,Pe,Ue){if(typeof Ae=="string")return fe(Ae,Pe);if(ArrayBuffer.isView(Ae))return me(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(pt(Ae,ArrayBuffer)||Ae&&pt(Ae.buffer,ArrayBuffer))return ve(Ae,Pe,Ue);if(typeof Ae=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var ot=Ae.valueOf&&Ae.valueOf();if(ot!=null&&ot!==Ae)return E.from(ot,Pe,Ue);var Oe=he(Ae);if(Oe)return Oe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof Ae[Symbol.toPrimitive]=="function")return E.from(Ae[Symbol.toPrimitive]("string"),Pe,Ue);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,Pe,Ue){return ne(Ae,Pe,Ue)},E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array;function te(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 se(Ae,Pe,Ue){return te(Ae),Ae<=0?le(Ae):Pe!==void 0?typeof Ue=="string"?le(Ae).fill(Pe,Ue):le(Ae).fill(Pe):le(Ae)}E.alloc=function(Ae,Pe,Ue){return se(Ae,Pe,Ue)};function ue(Ae){return te(Ae),le(Ae<0?0:ge(Ae)|0)}E.allocUnsafe=function(Ae){return ue(Ae)},E.allocUnsafeSlow=function(Ae){return ue(Ae)};function fe(Ae,Pe){if((typeof Pe!="string"||Pe==="")&&(Pe="utf8"),!E.isEncoding(Pe))throw new TypeError("Unknown encoding: "+Pe);var Ue=Ce(Ae,Pe)|0,ot=le(Ue),Oe=ot.write(Ae,Pe);return Oe!==Ue&&(ot=ot.slice(0,Oe)),ot}function me(Ae){for(var Pe=Ae.length<0?0:ge(Ae.length)|0,Ue=le(Pe),ot=0;ot<Pe;ot+=1)Ue[ot]=Ae[ot]&255;return Ue}function ve(Ae,Pe,Ue){if(Pe<0||Ae.byteLength<Pe)throw new RangeError('"offset" is outside of buffer bounds');if(Ae.byteLength<Pe+(Ue||0))throw new RangeError('"length" is outside of buffer bounds');var ot;return Pe===void 0&&Ue===void 0?ot=new Uint8Array(Ae):Ue===void 0?ot=new Uint8Array(Ae,Pe):ot=new Uint8Array(Ae,Pe,Ue),ot.__proto__=E.prototype,ot}function he(Ae){if(E.isBuffer(Ae)){var Pe=ge(Ae.length)|0,Ue=le(Pe);return Ue.length===0||Ae.copy(Ue,0,0,Pe),Ue}if(Ae.length!==void 0)return typeof Ae.length!="number"||rt(Ae.length)?le(0):me(Ae);if(Ae.type==="Buffer"&&Array.isArray(Ae.data))return me(Ae.data)}function ge(Ae){if(Ae>=oe)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+oe.toString(16)+" bytes");return Ae|0}function xe(Ae){return+Ae!=Ae&&(Ae=0),E.alloc(+Ae)}E.isBuffer=function(Pe){return Pe!=null&&Pe._isBuffer===!0&&Pe!==E.prototype},E.compare=function(Pe,Ue){if(pt(Pe,Uint8Array)&&(Pe=E.from(Pe,Pe.offset,Pe.byteLength)),pt(Ue,Uint8Array)&&(Ue=E.from(Ue,Ue.offset,Ue.byteLength)),!E.isBuffer(Pe)||!E.isBuffer(Ue))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Pe===Ue)return 0;for(var ot=Pe.length,Oe=Ue.length,Se=0,pe=Math.min(ot,Oe);Se<pe;++Se)if(Pe[Se]!==Ue[Se]){ot=Pe[Se],Oe=Ue[Se];break}return ot<Oe?-1:Oe<ot?1:0},E.isEncoding=function(Pe){switch(String(Pe).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},E.concat=function(Pe,Ue){if(!Array.isArray(Pe))throw new TypeError('"list" argument must be an Array of Buffers');if(Pe.length===0)return E.alloc(0);var ot;if(Ue===void 0)for(Ue=0,ot=0;ot<Pe.length;++ot)Ue+=Pe[ot].length;var Oe=E.allocUnsafe(Ue),Se=0;for(ot=0;ot<Pe.length;++ot){var pe=Pe[ot];if(pt(pe,Uint8Array)&&(pe=E.from(pe)),!E.isBuffer(pe))throw new TypeError('"list" argument must be an Array of Buffers');pe.copy(Oe,Se),Se+=pe.length}return Oe};function Ce(Ae,Pe){if(E.isBuffer(Ae))return Ae.length;if(ArrayBuffer.isView(Ae)||pt(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 Ue=Ae.length,ot=arguments.length>2&&arguments[2]===!0;if(!ot&&Ue===0)return 0;for(var Oe=!1;;)switch(Pe){case"ascii":case"latin1":case"binary":return Ue;case"utf8":case"utf-8":return Ne(Ae).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue*2;case"hex":return Ue>>>1;case"base64":return Ke(Ae).length;default:if(Oe)return ot?-1:Ne(Ae).length;Pe=(""+Pe).toLowerCase(),Oe=!0}}E.byteLength=Ce;function je(Ae,Pe,Ue){var ot=!1;if((Pe===void 0||Pe<0)&&(Pe=0),Pe>this.length||((Ue===void 0||Ue>this.length)&&(Ue=this.length),Ue<=0)||(Ue>>>=0,Pe>>>=0,Ue<=Pe))return"";for(Ae||(Ae="utf8");;)switch(Ae){case"hex":return at(this,Pe,Ue);case"utf8":case"utf-8":return Qe(this,Pe,Ue);case"ascii":return We(this,Pe,Ue);case"latin1":case"binary":return it(this,Pe,Ue);case"base64":return Ve(this,Pe,Ue);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return nt(this,Pe,Ue);default:if(ot)throw new TypeError("Unknown encoding: "+Ae);Ae=(Ae+"").toLowerCase(),ot=!0}}E.prototype._isBuffer=!0;function Ee(Ae,Pe,Ue){var ot=Ae[Pe];Ae[Pe]=Ae[Ue],Ae[Ue]=ot}E.prototype.swap16=function(){var Pe=this.length;if(Pe%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Ue=0;Ue<Pe;Ue+=2)Ee(this,Ue,Ue+1);return this},E.prototype.swap32=function(){var Pe=this.length;if(Pe%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Ue=0;Ue<Pe;Ue+=4)Ee(this,Ue,Ue+3),Ee(this,Ue+1,Ue+2);return this},E.prototype.swap64=function(){var Pe=this.length;if(Pe%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Ue=0;Ue<Pe;Ue+=8)Ee(this,Ue,Ue+7),Ee(this,Ue+1,Ue+6),Ee(this,Ue+2,Ue+5),Ee(this,Ue+3,Ue+4);return this},E.prototype.toString=function(){var Pe=this.length;return Pe===0?"":arguments.length===0?Qe(this,0,Pe):je.apply(this,arguments)},E.prototype.toLocaleString=E.prototype.toString,E.prototype.equals=function(Pe){if(!E.isBuffer(Pe))throw new TypeError("Argument must be a Buffer");return this===Pe?!0:E.compare(this,Pe)===0},E.prototype.inspect=function(){var Pe="",Ue=be.INSPECT_MAX_BYTES;return Pe=this.toString("hex",0,Ue).replace(/(.{2})/g,"$1 ").trim(),this.length>Ue&&(Pe+=" ... "),"<Buffer "+Pe+">"},E.prototype.compare=function(Pe,Ue,ot,Oe,Se){if(pt(Pe,Uint8Array)&&(Pe=E.from(Pe,Pe.offset,Pe.byteLength)),!E.isBuffer(Pe))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Pe);if(Ue===void 0&&(Ue=0),ot===void 0&&(ot=Pe?Pe.length:0),Oe===void 0&&(Oe=0),Se===void 0&&(Se=this.length),Ue<0||ot>Pe.length||Oe<0||Se>this.length)throw new RangeError("out of range index");if(Oe>=Se&&Ue>=ot)return 0;if(Oe>=Se)return-1;if(Ue>=ot)return 1;if(Ue>>>=0,ot>>>=0,Oe>>>=0,Se>>>=0,this===Pe)return 0;for(var pe=Se-Oe,Be=ot-Ue,$e=Math.min(pe,Be),Le=this.slice(Oe,Se),mt=Pe.slice(Ue,ot),gt=0;gt<$e;++gt)if(Le[gt]!==mt[gt]){pe=Le[gt],Be=mt[gt];break}return pe<Be?-1:Be<pe?1:0};function ce(Ae,Pe,Ue,ot,Oe){if(Ae.length===0)return-1;if(typeof Ue=="string"?(ot=Ue,Ue=0):Ue>2147483647?Ue=2147483647:Ue<-2147483648&&(Ue=-2147483648),Ue=+Ue,rt(Ue)&&(Ue=Oe?0:Ae.length-1),Ue<0&&(Ue=Ae.length+Ue),Ue>=Ae.length){if(Oe)return-1;Ue=Ae.length-1}else if(Ue<0)if(Oe)Ue=0;else return-1;if(typeof Pe=="string"&&(Pe=E.from(Pe,ot)),E.isBuffer(Pe))return Pe.length===0?-1:ye(Ae,Pe,Ue,ot,Oe);if(typeof Pe=="number")return Pe=Pe&255,typeof Uint8Array.prototype.indexOf=="function"?Oe?Uint8Array.prototype.indexOf.call(Ae,Pe,Ue):Uint8Array.prototype.lastIndexOf.call(Ae,Pe,Ue):ye(Ae,[Pe],Ue,ot,Oe);throw new TypeError("val must be string, number or Buffer")}function ye(Ae,Pe,Ue,ot,Oe){var Se=1,pe=Ae.length,Be=Pe.length;if(ot!==void 0&&(ot=String(ot).toLowerCase(),ot==="ucs2"||ot==="ucs-2"||ot==="utf16le"||ot==="utf-16le")){if(Ae.length<2||Pe.length<2)return-1;Se=2,pe/=2,Be/=2,Ue/=2}function $e(bt,yt){return Se===1?bt[yt]:bt.readUInt16BE(yt*Se)}var Le;if(Oe){var mt=-1;for(Le=Ue;Le<pe;Le++)if($e(Ae,Le)===$e(Pe,mt===-1?0:Le-mt)){if(mt===-1&&(mt=Le),Le-mt+1===Be)return mt*Se}else mt!==-1&&(Le-=Le-mt),mt=-1}else for(Ue+Be>pe&&(Ue=pe-Be),Le=Ue;Le>=0;Le--){for(var gt=!0,wt=0;wt<Be;wt++)if($e(Ae,Le+wt)!==$e(Pe,wt)){gt=!1;break}if(gt)return Le}return-1}E.prototype.includes=function(Pe,Ue,ot){return this.indexOf(Pe,Ue,ot)!==-1},E.prototype.indexOf=function(Pe,Ue,ot){return ce(this,Pe,Ue,ot,!0)},E.prototype.lastIndexOf=function(Pe,Ue,ot){return ce(this,Pe,Ue,ot,!1)};function we(Ae,Pe,Ue,ot){Ue=Number(Ue)||0;var Oe=Ae.length-Ue;ot?(ot=Number(ot),ot>Oe&&(ot=Oe)):ot=Oe;var Se=Pe.length;ot>Se/2&&(ot=Se/2);for(var pe=0;pe<ot;++pe){var Be=parseInt(Pe.substr(pe*2,2),16);if(rt(Be))return pe;Ae[Ue+pe]=Be}return pe}function De(Ae,Pe,Ue,ot){return ct(Ne(Pe,Ae.length-Ue),Ae,Ue,ot)}function Re(Ae,Pe,Ue,ot){return ct(Ge(Pe),Ae,Ue,ot)}function ke(Ae,Pe,Ue,ot){return Re(Ae,Pe,Ue,ot)}function _e(Ae,Pe,Ue,ot){return ct(Ke(Pe),Ae,Ue,ot)}function Ze(Ae,Pe,Ue,ot){return ct(Me(Pe,Ae.length-Ue),Ae,Ue,ot)}E.prototype.write=function(Pe,Ue,ot,Oe){if(Ue===void 0)Oe="utf8",ot=this.length,Ue=0;else if(ot===void 0&&typeof Ue=="string")Oe=Ue,ot=this.length,Ue=0;else if(isFinite(Ue))Ue=Ue>>>0,isFinite(ot)?(ot=ot>>>0,Oe===void 0&&(Oe="utf8")):(Oe=ot,ot=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Se=this.length-Ue;if((ot===void 0||ot>Se)&&(ot=Se),Pe.length>0&&(ot<0||Ue<0)||Ue>this.length)throw new RangeError("Attempt to write outside buffer bounds");Oe||(Oe="utf8");for(var pe=!1;;)switch(Oe){case"hex":return we(this,Pe,Ue,ot);case"utf8":case"utf-8":return De(this,Pe,Ue,ot);case"ascii":return Re(this,Pe,Ue,ot);case"latin1":case"binary":return ke(this,Pe,Ue,ot);case"base64":return _e(this,Pe,Ue,ot);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ze(this,Pe,Ue,ot);default:if(pe)throw new TypeError("Unknown encoding: "+Oe);Oe=(""+Oe).toLowerCase(),pe=!0}},E.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ve(Ae,Pe,Ue){return Pe===0&&Ue===Ae.length?z.fromByteArray(Ae):z.fromByteArray(Ae.slice(Pe,Ue))}function Qe(Ae,Pe,Ue){Ue=Math.min(Ae.length,Ue);for(var ot=[],Oe=Pe;Oe<Ue;){var Se=Ae[Oe],pe=null,Be=Se>239?4:Se>223?3:Se>191?2:1;if(Oe+Be<=Ue){var $e,Le,mt,gt;switch(Be){case 1:Se<128&&(pe=Se);break;case 2:$e=Ae[Oe+1],($e&192)===128&&(gt=(Se&31)<<6|$e&63,gt>127&&(pe=gt));break;case 3:$e=Ae[Oe+1],Le=Ae[Oe+2],($e&192)===128&&(Le&192)===128&&(gt=(Se&15)<<12|($e&63)<<6|Le&63,gt>2047&&(gt<55296||gt>57343)&&(pe=gt));break;case 4:$e=Ae[Oe+1],Le=Ae[Oe+2],mt=Ae[Oe+3],($e&192)===128&&(Le&192)===128&&(mt&192)===128&&(gt=(Se&15)<<18|($e&63)<<12|(Le&63)<<6|mt&63,gt>65535&&gt<1114112&&(pe=gt))}}pe===null?(pe=65533,Be=1):pe>65535&&(pe-=65536,ot.push(pe>>>10&1023|55296),pe=56320|pe&1023),ot.push(pe),Oe+=Be}return Ie(ot)}var ut=4096;function Ie(Ae){var Pe=Ae.length;if(Pe<=ut)return String.fromCharCode.apply(String,Ae);for(var Ue="",ot=0;ot<Pe;)Ue+=String.fromCharCode.apply(String,Ae.slice(ot,ot+=ut));return Ue}function We(Ae,Pe,Ue){var ot="";Ue=Math.min(Ae.length,Ue);for(var Oe=Pe;Oe<Ue;++Oe)ot+=String.fromCharCode(Ae[Oe]&127);return ot}function it(Ae,Pe,Ue){var ot="";Ue=Math.min(Ae.length,Ue);for(var Oe=Pe;Oe<Ue;++Oe)ot+=String.fromCharCode(Ae[Oe]);return ot}function at(Ae,Pe,Ue){var ot=Ae.length;(!Pe||Pe<0)&&(Pe=0),(!Ue||Ue<0||Ue>ot)&&(Ue=ot);for(var Oe="",Se=Pe;Se<Ue;++Se)Oe+=He(Ae[Se]);return Oe}function nt(Ae,Pe,Ue){for(var ot=Ae.slice(Pe,Ue),Oe="",Se=0;Se<ot.length;Se+=2)Oe+=String.fromCharCode(ot[Se]+ot[Se+1]*256);return Oe}E.prototype.slice=function(Pe,Ue){var ot=this.length;Pe=~~Pe,Ue=Ue===void 0?ot:~~Ue,Pe<0?(Pe+=ot,Pe<0&&(Pe=0)):Pe>ot&&(Pe=ot),Ue<0?(Ue+=ot,Ue<0&&(Ue=0)):Ue>ot&&(Ue=ot),Ue<Pe&&(Ue=Pe);var Oe=this.subarray(Pe,Ue);return Oe.__proto__=E.prototype,Oe};function Xe(Ae,Pe,Ue){if(Ae%1!==0||Ae<0)throw new RangeError("offset is not uint");if(Ae+Pe>Ue)throw new RangeError("Trying to access beyond buffer length")}E.prototype.readUIntLE=function(Pe,Ue,ot){Pe=Pe>>>0,Ue=Ue>>>0,ot||Xe(Pe,Ue,this.length);for(var Oe=this[Pe],Se=1,pe=0;++pe<Ue&&(Se*=256);)Oe+=this[Pe+pe]*Se;return Oe},E.prototype.readUIntBE=function(Pe,Ue,ot){Pe=Pe>>>0,Ue=Ue>>>0,ot||Xe(Pe,Ue,this.length);for(var Oe=this[Pe+--Ue],Se=1;Ue>0&&(Se*=256);)Oe+=this[Pe+--Ue]*Se;return Oe},E.prototype.readUInt8=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,1,this.length),this[Pe]},E.prototype.readUInt16LE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,2,this.length),this[Pe]|this[Pe+1]<<8},E.prototype.readUInt16BE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,2,this.length),this[Pe]<<8|this[Pe+1]},E.prototype.readUInt32LE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,4,this.length),(this[Pe]|this[Pe+1]<<8|this[Pe+2]<<16)+this[Pe+3]*16777216},E.prototype.readUInt32BE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,4,this.length),this[Pe]*16777216+(this[Pe+1]<<16|this[Pe+2]<<8|this[Pe+3])},E.prototype.readIntLE=function(Pe,Ue,ot){Pe=Pe>>>0,Ue=Ue>>>0,ot||Xe(Pe,Ue,this.length);for(var Oe=this[Pe],Se=1,pe=0;++pe<Ue&&(Se*=256);)Oe+=this[Pe+pe]*Se;return Se*=128,Oe>=Se&&(Oe-=Math.pow(2,8*Ue)),Oe},E.prototype.readIntBE=function(Pe,Ue,ot){Pe=Pe>>>0,Ue=Ue>>>0,ot||Xe(Pe,Ue,this.length);for(var Oe=Ue,Se=1,pe=this[Pe+--Oe];Oe>0&&(Se*=256);)pe+=this[Pe+--Oe]*Se;return Se*=128,pe>=Se&&(pe-=Math.pow(2,8*Ue)),pe},E.prototype.readInt8=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,1,this.length),this[Pe]&128?(255-this[Pe]+1)*-1:this[Pe]},E.prototype.readInt16LE=function(Pe,Ue){Pe=Pe>>>0,Ue||Xe(Pe,2,this.length);var ot=this[Pe]|this[Pe+1]<<8;return ot&32768?ot|4294901760:ot},E.prototype.readInt16BE=function(Pe,Ue){Pe=Pe>>>0,Ue||Xe(Pe,2,this.length);var ot=this[Pe+1]|this[Pe]<<8;return ot&32768?ot|4294901760:ot},E.prototype.readInt32LE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,4,this.length),this[Pe]|this[Pe+1]<<8|this[Pe+2]<<16|this[Pe+3]<<24},E.prototype.readInt32BE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,4,this.length),this[Pe]<<24|this[Pe+1]<<16|this[Pe+2]<<8|this[Pe+3]},E.prototype.readFloatLE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,4,this.length),ie.read(this,Pe,!0,23,4)},E.prototype.readFloatBE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,4,this.length),ie.read(this,Pe,!1,23,4)},E.prototype.readDoubleLE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,8,this.length),ie.read(this,Pe,!0,52,8)},E.prototype.readDoubleBE=function(Pe,Ue){return Pe=Pe>>>0,Ue||Xe(Pe,8,this.length),ie.read(this,Pe,!1,52,8)};function et(Ae,Pe,Ue,ot,Oe,Se){if(!E.isBuffer(Ae))throw new TypeError('"buffer" argument must be a Buffer instance');if(Pe>Oe||Pe<Se)throw new RangeError('"value" argument is out of bounds');if(Ue+ot>Ae.length)throw new RangeError("Index out of range")}E.prototype.writeUIntLE=function(Pe,Ue,ot,Oe){if(Pe=+Pe,Ue=Ue>>>0,ot=ot>>>0,!Oe){var Se=Math.pow(2,8*ot)-1;et(this,Pe,Ue,ot,Se,0)}var pe=1,Be=0;for(this[Ue]=Pe&255;++Be<ot&&(pe*=256);)this[Ue+Be]=Pe/pe&255;return Ue+ot},E.prototype.writeUIntBE=function(Pe,Ue,ot,Oe){if(Pe=+Pe,Ue=Ue>>>0,ot=ot>>>0,!Oe){var Se=Math.pow(2,8*ot)-1;et(this,Pe,Ue,ot,Se,0)}var pe=ot-1,Be=1;for(this[Ue+pe]=Pe&255;--pe>=0&&(Be*=256);)this[Ue+pe]=Pe/Be&255;return Ue+ot},E.prototype.writeUInt8=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,1,255,0),this[Ue]=Pe&255,Ue+1},E.prototype.writeUInt16LE=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,2,65535,0),this[Ue]=Pe&255,this[Ue+1]=Pe>>>8,Ue+2},E.prototype.writeUInt16BE=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,2,65535,0),this[Ue]=Pe>>>8,this[Ue+1]=Pe&255,Ue+2},E.prototype.writeUInt32LE=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,4,4294967295,0),this[Ue+3]=Pe>>>24,this[Ue+2]=Pe>>>16,this[Ue+1]=Pe>>>8,this[Ue]=Pe&255,Ue+4},E.prototype.writeUInt32BE=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,4,4294967295,0),this[Ue]=Pe>>>24,this[Ue+1]=Pe>>>16,this[Ue+2]=Pe>>>8,this[Ue+3]=Pe&255,Ue+4},E.prototype.writeIntLE=function(Pe,Ue,ot,Oe){if(Pe=+Pe,Ue=Ue>>>0,!Oe){var Se=Math.pow(2,8*ot-1);et(this,Pe,Ue,ot,Se-1,-Se)}var pe=0,Be=1,$e=0;for(this[Ue]=Pe&255;++pe<ot&&(Be*=256);)Pe<0&&$e===0&&this[Ue+pe-1]!==0&&($e=1),this[Ue+pe]=(Pe/Be>>0)-$e&255;return Ue+ot},E.prototype.writeIntBE=function(Pe,Ue,ot,Oe){if(Pe=+Pe,Ue=Ue>>>0,!Oe){var Se=Math.pow(2,8*ot-1);et(this,Pe,Ue,ot,Se-1,-Se)}var pe=ot-1,Be=1,$e=0;for(this[Ue+pe]=Pe&255;--pe>=0&&(Be*=256);)Pe<0&&$e===0&&this[Ue+pe+1]!==0&&($e=1),this[Ue+pe]=(Pe/Be>>0)-$e&255;return Ue+ot},E.prototype.writeInt8=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,1,127,-128),Pe<0&&(Pe=255+Pe+1),this[Ue]=Pe&255,Ue+1},E.prototype.writeInt16LE=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,2,32767,-32768),this[Ue]=Pe&255,this[Ue+1]=Pe>>>8,Ue+2},E.prototype.writeInt16BE=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,2,32767,-32768),this[Ue]=Pe>>>8,this[Ue+1]=Pe&255,Ue+2},E.prototype.writeInt32LE=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,4,2147483647,-2147483648),this[Ue]=Pe&255,this[Ue+1]=Pe>>>8,this[Ue+2]=Pe>>>16,this[Ue+3]=Pe>>>24,Ue+4},E.prototype.writeInt32BE=function(Pe,Ue,ot){return Pe=+Pe,Ue=Ue>>>0,ot||et(this,Pe,Ue,4,2147483647,-2147483648),Pe<0&&(Pe=4294967295+Pe+1),this[Ue]=Pe>>>24,this[Ue+1]=Pe>>>16,this[Ue+2]=Pe>>>8,this[Ue+3]=Pe&255,Ue+4};function Ye(Ae,Pe,Ue,ot,Oe,Se){if(Ue+ot>Ae.length)throw new RangeError("Index out of range");if(Ue<0)throw new RangeError("Index out of range")}function dt(Ae,Pe,Ue,ot,Oe){return Pe=+Pe,Ue=Ue>>>0,Oe||Ye(Ae,Pe,Ue,4,34028234663852886e22,-34028234663852886e22),ie.write(Ae,Pe,Ue,ot,23,4),Ue+4}E.prototype.writeFloatLE=function(Pe,Ue,ot){return dt(this,Pe,Ue,!0,ot)},E.prototype.writeFloatBE=function(Pe,Ue,ot){return dt(this,Pe,Ue,!1,ot)};function tt(Ae,Pe,Ue,ot,Oe){return Pe=+Pe,Ue=Ue>>>0,Oe||Ye(Ae,Pe,Ue,8,17976931348623157e292,-17976931348623157e292),ie.write(Ae,Pe,Ue,ot,52,8),Ue+8}E.prototype.writeDoubleLE=function(Pe,Ue,ot){return tt(this,Pe,Ue,!0,ot)},E.prototype.writeDoubleBE=function(Pe,Ue,ot){return tt(this,Pe,Ue,!1,ot)},E.prototype.copy=function(Pe,Ue,ot,Oe){if(!E.isBuffer(Pe))throw new TypeError("argument should be a Buffer");if(ot||(ot=0),!Oe&&Oe!==0&&(Oe=this.length),Ue>=Pe.length&&(Ue=Pe.length),Ue||(Ue=0),Oe>0&&Oe<ot&&(Oe=ot),Oe===ot||Pe.length===0||this.length===0)return 0;if(Ue<0)throw new RangeError("targetStart out of bounds");if(ot<0||ot>=this.length)throw new RangeError("Index out of range");if(Oe<0)throw new RangeError("sourceEnd out of bounds");Oe>this.length&&(Oe=this.length),Pe.length-Ue<Oe-ot&&(Oe=Pe.length-Ue+ot);var Se=Oe-ot;if(this===Pe&&typeof Uint8Array.prototype.copyWithin=="function")this.copyWithin(Ue,ot,Oe);else if(this===Pe&&ot<Ue&&Ue<Oe)for(var pe=Se-1;pe>=0;--pe)Pe[pe+Ue]=this[pe+ot];else Uint8Array.prototype.set.call(Pe,this.subarray(ot,Oe),Ue);return Se},E.prototype.fill=function(Pe,Ue,ot,Oe){if(typeof Pe=="string"){if(typeof Ue=="string"?(Oe=Ue,Ue=0,ot=this.length):typeof ot=="string"&&(Oe=ot,ot=this.length),Oe!==void 0&&typeof Oe!="string")throw new TypeError("encoding must be a string");if(typeof Oe=="string"&&!E.isEncoding(Oe))throw new TypeError("Unknown encoding: "+Oe);if(Pe.length===1){var Se=Pe.charCodeAt(0);(Oe==="utf8"&&Se<128||Oe==="latin1")&&(Pe=Se)}}else typeof Pe=="number"&&(Pe=Pe&255);if(Ue<0||this.length<Ue||this.length<ot)throw new RangeError("Out of range index");if(ot<=Ue)return this;Ue=Ue>>>0,ot=ot===void 0?this.length:ot>>>0,Pe||(Pe=0);var pe;if(typeof Pe=="number")for(pe=Ue;pe<ot;++pe)this[pe]=Pe;else{var Be=E.isBuffer(Pe)?Pe:E.from(Pe,Oe),$e=Be.length;if($e===0)throw new TypeError('The value "'+Pe+'" is invalid for argument "value"');for(pe=0;pe<ot-Ue;++pe)this[pe+Ue]=Be[pe%$e]}return this};var lt=/[^+/0-9A-Za-z-_]/g;function st(Ae){if(Ae=Ae.split("=")[0],Ae=Ae.trim().replace(lt,""),Ae.length<2)return"";for(;Ae.length%4!==0;)Ae=Ae+"=";return Ae}function He(Ae){return Ae<16?"0"+Ae.toString(16):Ae.toString(16)}function Ne(Ae,Pe){Pe=Pe||1/0;for(var Ue,ot=Ae.length,Oe=null,Se=[],pe=0;pe<ot;++pe){if(Ue=Ae.charCodeAt(pe),Ue>55295&&Ue<57344){if(!Oe){if(Ue>56319){(Pe-=3)>-1&&Se.push(239,191,189);continue}else if(pe+1===ot){(Pe-=3)>-1&&Se.push(239,191,189);continue}Oe=Ue;continue}if(Ue<56320){(Pe-=3)>-1&&Se.push(239,191,189),Oe=Ue;continue}Ue=(Oe-55296<<10|Ue-56320)+65536}else Oe&&(Pe-=3)>-1&&Se.push(239,191,189);if(Oe=null,Ue<128){if((Pe-=1)<0)break;Se.push(Ue)}else if(Ue<2048){if((Pe-=2)<0)break;Se.push(Ue>>6|192,Ue&63|128)}else if(Ue<65536){if((Pe-=3)<0)break;Se.push(Ue>>12|224,Ue>>6&63|128,Ue&63|128)}else if(Ue<1114112){if((Pe-=4)<0)break;Se.push(Ue>>18|240,Ue>>12&63|128,Ue>>6&63|128,Ue&63|128)}else throw new Error("Invalid code point")}return Se}function Ge(Ae){for(var Pe=[],Ue=0;Ue<Ae.length;++Ue)Pe.push(Ae.charCodeAt(Ue)&255);return Pe}function Me(Ae,Pe){for(var Ue,ot,Oe,Se=[],pe=0;pe<Ae.length&&!((Pe-=2)<0);++pe)Ue=Ae.charCodeAt(pe),ot=Ue>>8,Oe=Ue%256,Se.push(Oe),Se.push(ot);return Se}function Ke(Ae){return z.toByteArray(st(Ae))}function ct(Ae,Pe,Ue,ot){for(var Oe=0;Oe<ot&&!(Oe+Ue>=Pe.length||Oe>=Ae.length);++Oe)Pe[Oe+Ue]=Ae[Oe];return Oe}function pt(Ae,Pe){return Ae instanceof Pe||Ae!=null&&Ae.constructor!=null&&Ae.constructor.name!=null&&Ae.constructor.name===Pe.name}function rt(Ae){return Ae!==Ae}}).call(this)}).call(this,y("buffer").Buffer)},{"base64-js":87,buffer:90,ieee754:357}],91:[function(y,Te,be){Te.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,Te,be){"use strict";var x=y("get-intrinsic"),z=y("./"),ie=z(x("String.prototype.indexOf"));Te.exports=function(ee,le){var E=x(ee,!!le);return typeof E=="function"&&ie(ee,".prototype.")>-1?z(E):E}},{"./":93,"get-intrinsic":348}],93:[function(y,Te,be){"use strict";var x=y("function-bind"),z=y("get-intrinsic"),ie=z("%Function.prototype.apply%"),oe=z("%Function.prototype.call%"),ee=z("%Reflect.apply%",!0)||x.call(oe,ie),le=z("%Object.getOwnPropertyDescriptor%",!0),E=z("%Object.defineProperty%",!0),ne=z("%Math.max%");if(E)try{E({},"a",{value:1})}catch(se){E=null}Te.exports=function(ue){var fe=ee(x,oe,arguments);if(le&&E){var me=le(fe,"length");me.configurable&&E(fe,"length",{value:1+ne(0,ue.length-(arguments.length-1))})}return fe};var te=function(){return ee(x,ie,arguments)};E?E(Te.exports,"apply",{value:te}):Te.exports.apply=te},{"function-bind":347,"get-intrinsic":348}],94:[function(y,Te,be){"use strict";var x=Array.prototype.slice;Te.exports=z;function z(oe,ee){if(!(this instanceof z))return new z(oe,ee);this.src=oe,this._withAccess=ee}z.prototype.withAccess=function(oe){return this._withAccess=oe!==!1,this},z.prototype.pick=function(oe){return Array.isArray(oe)||(oe=x.call(arguments)),oe.length&&(this.keys=oe),this},z.prototype.to=function(oe){if(oe=oe||{},!this.src)return oe;var ee=this.keys||Object.keys(this.src);if(!this._withAccess){for(var le=0;le<ee.length;le++)E=ee[le],oe[E]===void 0&&(oe[E]=this.src[E]);return oe}for(var le=0;le<ee.length;le++){var E=ee[le];if(ie(oe,E)){var ne=this.src.__lookupGetter__(E),te=this.src.__lookupSetter__(E);ne&&oe.__defineGetter__(E,ne),te&&oe.__defineSetter__(E,te),!ne&&!te&&(oe[E]=this.src[E])}}return oe},z.prototype.toCover=function(oe){for(var ee=this.keys||Object.keys(this.src),le=0;le<ee.length;le++){var E=ee[le];delete oe[E];var ne=this.src.__lookupGetter__(E),te=this.src.__lookupSetter__(E);ne&&oe.__defineGetter__(E,ne),te&&oe.__defineSetter__(E,te),!ne&&!te&&(oe[E]=this.src[E])}},z.prototype.override=z.prototype.toCover,z.prototype.and=function(oe){var ee={};return this.to(ee),this.src=oe,this.to(ee),this.src=ee,this};function ie(oe,ee){return oe[ee]===void 0&&oe.__lookupGetter__(ee)===void 0&&oe.__lookupSetter__(ee)===void 0}},{}],95:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=y("../internals/try-to-string"),oe=x.TypeError;Te.exports=function(ee){if(z(ee))return ee;throw oe(ie(ee)+" is not a function")}},{"../internals/global":163,"../internals/is-callable":176,"../internals/try-to-string":257}],96:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-constructor"),ie=y("../internals/try-to-string"),oe=x.TypeError;Te.exports=function(ee){if(z(ee))return ee;throw oe(ie(ee)+" is not a constructor")}},{"../internals/global":163,"../internals/is-constructor":177,"../internals/try-to-string":257}],97:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=x.String,oe=x.TypeError;Te.exports=function(ee){if(typeof ee=="object"||z(ee))return ee;throw oe("Can't set "+ie(ee)+" as a prototype")}},{"../internals/global":163,"../internals/is-callable":176}],98:[function(y,Te,be){var x=y("../internals/well-known-symbol"),z=y("../internals/object-create"),ie=y("../internals/object-define-property"),oe=x("unscopables"),ee=Array.prototype;ee[oe]==null&&ie.f(ee,oe,{configurable:!0,value:z(null)}),Te.exports=function(le){ee[oe][le]=!0}},{"../internals/object-create":196,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],99:[function(y,Te,be){"use strict";var x=y("../internals/string-multibyte").charAt;Te.exports=function(z,ie,oe){return ie+(oe?x(z,ie).length:1)}},{"../internals/string-multibyte":239}],100:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/object-is-prototype-of"),ie=x.TypeError;Te.exports=function(oe,ee){if(z(ee,oe))return oe;throw ie("Incorrect invocation")}},{"../internals/global":163,"../internals/object-is-prototype-of":204}],101:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-object"),ie=x.String,oe=x.TypeError;Te.exports=function(ee){if(z(ee))return ee;throw oe(ie(ee)+" is not an object")}},{"../internals/global":163,"../internals/is-object":180}],102:[function(y,Te,be){Te.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},{}],103:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-native"),z=y("../internals/descriptors"),ie=y("../internals/global"),oe=y("../internals/is-callable"),ee=y("../internals/is-object"),le=y("../internals/has-own-property"),E=y("../internals/classof"),ne=y("../internals/try-to-string"),te=y("../internals/create-non-enumerable-property"),se=y("../internals/redefine"),ue=y("../internals/object-define-property").f,fe=y("../internals/object-is-prototype-of"),me=y("../internals/object-get-prototype-of"),ve=y("../internals/object-set-prototype-of"),he=y("../internals/well-known-symbol"),ge=y("../internals/uid"),xe=ie.Int8Array,Ce=xe&&xe.prototype,je=ie.Uint8ClampedArray,Ee=je&&je.prototype,ce=xe&&me(xe),ye=Ce&&me(Ce),we=Object.prototype,De=ie.TypeError,Re=he("toStringTag"),ke=ge("TYPED_ARRAY_TAG"),_e=ge("TYPED_ARRAY_CONSTRUCTOR"),Ze=x&&!!ve&&E(ie.opera)!=="Opera",Ve=!1,Qe,ut,Ie,We={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},it={BigInt64Array:8,BigUint64Array:8},at=function(lt){if(!ee(lt))return!1;var st=E(lt);return st==="DataView"||le(We,st)||le(it,st)},nt=function(tt){if(!ee(tt))return!1;var lt=E(tt);return le(We,lt)||le(it,lt)},Xe=function(tt){if(nt(tt))return tt;throw De("Target is not a typed array")},et=function(tt){if(oe(tt)&&(!ve||fe(ce,tt)))return tt;throw De(ne(tt)+" is not a typed array constructor")},Ye=function(tt,lt,st,He){if(z){if(st)for(var Ne in We){var Ge=ie[Ne];if(Ge&&le(Ge.prototype,tt))try{delete Ge.prototype[tt]}catch(Me){try{Ge.prototype[tt]=lt}catch(Ke){}}}(!ye[tt]||st)&&se(ye,tt,st?lt:Ze&&Ce[tt]||lt,He)}},dt=function(tt,lt,st){var He,Ne;if(z){if(ve){if(st){for(He in We)if(Ne=ie[He],Ne&&le(Ne,tt))try{delete Ne[tt]}catch(Ge){}}if(!ce[tt]||st)try{return se(ce,tt,st?lt:Ze&&ce[tt]||lt)}catch(Ge){}else return}for(He in We)Ne=ie[He],Ne&&(!Ne[tt]||st)&&se(Ne,tt,lt)}};for(Qe in We)ut=ie[Qe],Ie=ut&&ut.prototype,Ie?te(Ie,_e,ut):Ze=!1;for(Qe in it)ut=ie[Qe],Ie=ut&&ut.prototype,Ie&&te(Ie,_e,ut);if((!Ze||!oe(ce)||ce===Function.prototype)&&(ce=function(){throw De("Incorrect invocation")},Ze))for(Qe in We)ie[Qe]&&ve(ie[Qe],ce);if((!Ze||!ye||ye===we)&&(ye=ce.prototype,Ze))for(Qe in We)ie[Qe]&&ve(ie[Qe].prototype,ye);if(Ze&&me(Ee)!==ye&&ve(Ee,ye),z&&!le(ye,Re)){Ve=!0,ue(ye,Re,{get:function(){return ee(this)?this[ke]:void 0}});for(Qe in We)ie[Qe]&&te(ie[Qe],ke,Qe)}Te.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ze,TYPED_ARRAY_CONSTRUCTOR:_e,TYPED_ARRAY_TAG:Ve&&ke,aTypedArray:Xe,aTypedArrayConstructor:et,exportTypedArrayMethod:Ye,exportTypedArrayStaticMethod:dt,isView:at,isTypedArray:nt,TypedArray:ce,TypedArrayPrototype:ye}},{"../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,Te,be){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),ie=y("../internals/descriptors"),oe=y("../internals/array-buffer-native"),ee=y("../internals/function-name"),le=y("../internals/create-non-enumerable-property"),E=y("../internals/redefine-all"),ne=y("../internals/fails"),te=y("../internals/an-instance"),se=y("../internals/to-integer-or-infinity"),ue=y("../internals/to-length"),fe=y("../internals/to-index"),me=y("../internals/ieee754"),ve=y("../internals/object-get-prototype-of"),he=y("../internals/object-set-prototype-of"),ge=y("../internals/object-get-own-property-names").f,xe=y("../internals/object-define-property").f,Ce=y("../internals/array-fill"),je=y("../internals/array-slice-simple"),Ee=y("../internals/set-to-string-tag"),ce=y("../internals/internal-state"),ye=ee.PROPER,we=ee.CONFIGURABLE,De=ce.get,Re=ce.set,ke="ArrayBuffer",_e="DataView",Ze="prototype",Ve="Wrong length",Qe="Wrong index",ut=x[ke],Ie=ut,We=Ie&&Ie[Ze],it=x[_e],at=it&&it[Ze],nt=Object.prototype,Xe=x.Array,et=x.RangeError,Ye=z(Ce),dt=z([].reverse),tt=me.pack,lt=me.unpack,st=function(pe){return[pe&255]},He=function(pe){return[pe&255,pe>>8&255]},Ne=function(pe){return[pe&255,pe>>8&255,pe>>16&255,pe>>24&255]},Ge=function(pe){return pe[3]<<24|pe[2]<<16|pe[1]<<8|pe[0]},Me=function(pe){return tt(pe,23,4)},Ke=function(pe){return tt(pe,52,8)},ct=function(pe,Be){xe(pe[Ze],Be,{get:function(){return De(this)[Be]}})},pt=function(pe,Be,$e,Le){var mt=fe($e),gt=De(pe);if(mt+Be>gt.byteLength)throw et(Qe);var wt=De(gt.buffer).bytes,bt=mt+gt.byteOffset,yt=je(wt,bt,bt+Be);return Le?yt:dt(yt)},rt=function(pe,Be,$e,Le,mt,gt){var wt=fe($e),bt=De(pe);if(wt+Be>bt.byteLength)throw et(Qe);for(var yt=De(bt.buffer).bytes,Et=wt+bt.byteOffset,kt=Le(+mt),jt=0;jt<Be;jt++)yt[Et+jt]=kt[gt?jt:Be-jt-1]};if(!oe)Ie=function(Be){te(this,We);var $e=fe(Be);Re(this,{bytes:Ye(Xe($e),0),byteLength:$e}),ie||(this.byteLength=$e)},We=Ie[Ze],it=function(Be,$e,Le){te(this,at),te(Be,We);var mt=De(Be).byteLength,gt=se($e);if(gt<0||gt>mt)throw et("Wrong offset");if(Le=Le===void 0?mt-gt:ue(Le),gt+Le>mt)throw et(Ve);Re(this,{buffer:Be,byteLength:Le,byteOffset:gt}),ie||(this.buffer=Be,this.byteLength=Le,this.byteOffset=gt)},at=it[Ze],ie&&(ct(Ie,"byteLength"),ct(it,"buffer"),ct(it,"byteLength"),ct(it,"byteOffset")),E(at,{getInt8:function(Be){return pt(this,1,Be)[0]<<24>>24},getUint8:function(Be){return pt(this,1,Be)[0]},getInt16:function(Be){var $e=pt(this,2,Be,arguments.length>1?arguments[1]:void 0);return($e[1]<<8|$e[0])<<16>>16},getUint16:function(Be){var $e=pt(this,2,Be,arguments.length>1?arguments[1]:void 0);return $e[1]<<8|$e[0]},getInt32:function(Be){return Ge(pt(this,4,Be,arguments.length>1?arguments[1]:void 0))},getUint32:function(Be){return Ge(pt(this,4,Be,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Be){return lt(pt(this,4,Be,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Be){return lt(pt(this,8,Be,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Be,$e){rt(this,1,Be,st,$e)},setUint8:function(Be,$e){rt(this,1,Be,st,$e)},setInt16:function(Be,$e){rt(this,2,Be,He,$e,arguments.length>2?arguments[2]:void 0)},setUint16:function(Be,$e){rt(this,2,Be,He,$e,arguments.length>2?arguments[2]:void 0)},setInt32:function(Be,$e){rt(this,4,Be,Ne,$e,arguments.length>2?arguments[2]:void 0)},setUint32:function(Be,$e){rt(this,4,Be,Ne,$e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Be,$e){rt(this,4,Be,Me,$e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Be,$e){rt(this,8,Be,Ke,$e,arguments.length>2?arguments[2]:void 0)}});else{var Ae=ye&&ut.name!==ke;if(!ne(function(){ut(1)})||!ne(function(){new ut(-1)})||ne(function(){return new ut,new ut(1.5),new ut(NaN),Ae&&!we})){Ie=function(Be){return te(this,We),new ut(fe(Be))},Ie[Ze]=We;for(var Pe=ge(ut),Ue=0,ot;Pe.length>Ue;)(ot=Pe[Ue++])in Ie||le(Ie,ot,ut[ot]);We.constructor=Ie}else Ae&&we&&le(ut,"name",ke);he&&ve(at)!==nt&&he(at,nt);var Oe=new it(new Ie(2)),Se=z(at.setInt8);Oe.setInt8(0,2147483648),Oe.setInt8(1,2147483649),(Oe.getInt8(0)||!Oe.getInt8(1))&&E(at,{setInt8:function(Be,$e){Se(this,Be,$e<<24>>24)},setUint8:function(Be,$e){Se(this,Be,$e<<24>>24)}},{unsafe:!0})}Ee(Ie,ke),Ee(it,_e),Te.exports={ArrayBuffer:Ie,DataView:it}},{"../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,Te,be){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),oe=Math.min;Te.exports=[].copyWithin||function(le,E){var ne=x(this),te=ie(ne),se=z(le,te),ue=z(E,te),fe=arguments.length>2?arguments[2]:void 0,me=oe((fe===void 0?te:z(fe,te))-ue,te-se),ve=1;for(ue<se&&se<ue+me&&(ve=-1,ue+=me-1,se+=me-1);me-- >0;)ue in ne?ne[se]=ne[ue]:delete ne[se],se+=ve,ue+=ve;return ne}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],106:[function(y,Te,be){"use strict";var x=y("../internals/to-object"),z=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like");Te.exports=function(ee){for(var le=x(this),E=ie(le),ne=arguments.length,te=z(ne>1?arguments[1]:void 0,E),se=ne>2?arguments[2]:void 0,ue=se===void 0?E:z(se,E);ue>te;)le[te++]=ee;return le}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-object":250}],107:[function(y,Te,be){"use strict";var x=y("../internals/array-iteration").forEach,z=y("../internals/array-method-is-strict"),ie=z("forEach");Te.exports=ie?[].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,Te,be){var x=y("../internals/length-of-array-like");Te.exports=function(z,ie){for(var oe=0,ee=x(ie),le=new z(ee);ee>oe;)le[oe]=ie[oe++];return le}},{"../internals/length-of-array-like":188}],109:[function(y,Te,be){"use strict";var x=y("../internals/global"),z=y("../internals/function-bind-context"),ie=y("../internals/function-call"),oe=y("../internals/to-object"),ee=y("../internals/call-with-safe-iteration-closing"),le=y("../internals/is-array-iterator-method"),E=y("../internals/is-constructor"),ne=y("../internals/length-of-array-like"),te=y("../internals/create-property"),se=y("../internals/get-iterator"),ue=y("../internals/get-iterator-method"),fe=x.Array;Te.exports=function(ve){var he=oe(ve),ge=E(this),xe=arguments.length,Ce=xe>1?arguments[1]:void 0,je=Ce!==void 0;je&&(Ce=z(Ce,xe>2?arguments[2]:void 0));var Ee=ue(he),ce=0,ye,we,De,Re,ke,_e;if(Ee&&!(this==fe&&le(Ee)))for(Re=se(he,Ee),ke=Re.next,we=ge?new this:[];!(De=ie(ke,Re)).done;ce++)_e=je?ee(Re,Ce,[De.value,ce],!0):De.value,te(we,ce,_e);else for(ye=ne(he),we=ge?new this(ye):fe(ye);ye>ce;ce++)_e=je?Ce(he[ce],ce):he[ce],te(we,ce,_e);return we.length=ce,we}},{"../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,Te,be){var x=y("../internals/to-indexed-object"),z=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),oe=function(ee){return function(le,E,ne){var te=x(le),se=ie(te),ue=z(ne,se),fe;if(ee&&E!=E){for(;se>ue;)if(fe=te[ue++],fe!=fe)return!0}else for(;se>ue;ue++)if((ee||ue in te)&&te[ue]===E)return ee||ue||0;return!ee&&-1}};Te.exports={includes:oe(!0),indexOf:oe(!1)}},{"../internals/length-of-array-like":188,"../internals/to-absolute-index":245,"../internals/to-indexed-object":247}],111:[function(y,Te,be){var x=y("../internals/function-bind-context"),z=y("../internals/function-uncurry-this"),ie=y("../internals/indexed-object"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),le=y("../internals/array-species-create"),E=z([].push),ne=function(te){var se=te==1,ue=te==2,fe=te==3,me=te==4,ve=te==6,he=te==7,ge=te==5||ve;return function(xe,Ce,je,Ee){for(var ce=oe(xe),ye=ie(ce),we=x(Ce,je),De=ee(ye),Re=0,ke=Ee||le,_e=se?ke(xe,De):ue||he?ke(xe,0):void 0,Ze,Ve;De>Re;Re++)if((ge||Re in ye)&&(Ze=ye[Re],Ve=we(Ze,Re,ce),te))if(se)_e[Re]=Ve;else if(Ve)switch(te){case 3:return!0;case 5:return Ze;case 6:return Re;case 2:E(_e,Ze)}else switch(te){case 4:return!1;case 7:E(_e,Ze)}return ve?-1:fe||me?me:_e}};Te.exports={forEach:ne(0),map:ne(1),filter:ne(2),some:ne(3),every:ne(4),find:ne(5),findIndex:ne(6),filterReject:ne(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,Te,be){"use strict";var x=y("../internals/function-apply"),z=y("../internals/to-indexed-object"),ie=y("../internals/to-integer-or-infinity"),oe=y("../internals/length-of-array-like"),ee=y("../internals/array-method-is-strict"),le=Math.min,E=[].lastIndexOf,ne=!!E&&1/[1].lastIndexOf(1,-0)<0,te=ee("lastIndexOf"),se=ne||!te;Te.exports=se?function(fe){if(ne)return x(E,this,arguments)||0;var me=z(this),ve=oe(me),he=ve-1;for(arguments.length>1&&(he=le(he,ie(arguments[1]))),he<0&&(he=ve+he);he>=0;he--)if(he in me&&me[he]===fe)return he||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,Te,be){var x=y("../internals/fails"),z=y("../internals/well-known-symbol"),ie=y("../internals/engine-v8-version"),oe=z("species");Te.exports=function(ee){return ie>=51||!x(function(){var le=[],E=le.constructor={};return E[oe]=function(){return{foo:1}},le[ee](Boolean).foo!==1})}},{"../internals/engine-v8-version":146,"../internals/fails":150,"../internals/well-known-symbol":268}],114:[function(y,Te,be){"use strict";var x=y("../internals/fails");Te.exports=function(z,ie){var oe=[][z];return!!oe&&x(function(){oe.call(null,ie||function(){return 1},1)})}},{"../internals/fails":150}],115:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/a-callable"),ie=y("../internals/to-object"),oe=y("../internals/indexed-object"),ee=y("../internals/length-of-array-like"),le=x.TypeError,E=function(ne){return function(te,se,ue,fe){z(se);var me=ie(te),ve=oe(me),he=ee(me),ge=ne?he-1:0,xe=ne?-1:1;if(ue<2)for(;;){if(ge in ve){fe=ve[ge],ge+=xe;break}if(ge+=xe,ne?ge<0:he<=ge)throw le("Reduce of empty array with no initial value")}for(;ne?ge>=0:he>ge;ge+=xe)ge in ve&&(fe=se(fe,ve[ge],ge,me));return fe}};Te.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,Te,be){var x=y("../internals/global"),z=y("../internals/to-absolute-index"),ie=y("../internals/length-of-array-like"),oe=y("../internals/create-property"),ee=x.Array,le=Math.max;Te.exports=function(E,ne,te){for(var se=ie(E),ue=z(ne,se),fe=z(te===void 0?se:te,se),me=ee(le(fe-ue,0)),ve=0;ue<fe;ue++,ve++)oe(me,ve,E[ue]);return me.length=ve,me}},{"../internals/create-property":131,"../internals/global":163,"../internals/length-of-array-like":188,"../internals/to-absolute-index":245}],117:[function(y,Te,be){var x=y("../internals/function-uncurry-this");Te.exports=x([].slice)},{"../internals/function-uncurry-this":157}],118:[function(y,Te,be){var x=y("../internals/array-slice-simple"),z=Math.floor,ie=function(le,E){var ne=le.length,te=z(ne/2);return ne<8?oe(le,E):ee(le,ie(x(le,0,te),E),ie(x(le,te),E),E)},oe=function(le,E){for(var ne=le.length,te=1,se,ue;te<ne;){for(ue=te,se=le[te];ue&&E(le[ue-1],se)>0;)le[ue]=le[--ue];ue!==te++&&(le[ue]=se)}return le},ee=function(le,E,ne,te){for(var se=E.length,ue=ne.length,fe=0,me=0;fe<se||me<ue;)le[fe+me]=fe<se&&me<ue?te(E[fe],ne[me])<=0?E[fe++]:ne[me++]:fe<se?E[fe++]:ne[me++];return le};Te.exports=ie},{"../internals/array-slice-simple":116}],119:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-array"),ie=y("../internals/is-constructor"),oe=y("../internals/is-object"),ee=y("../internals/well-known-symbol"),le=ee("species"),E=x.Array;Te.exports=function(ne){var te;return z(ne)&&(te=ne.constructor,ie(te)&&(te===E||z(te.prototype))?te=void 0:oe(te)&&(te=te[le],te===null&&(te=void 0))),te===void 0?E:te}},{"../internals/global":163,"../internals/is-array":175,"../internals/is-constructor":177,"../internals/is-object":180,"../internals/well-known-symbol":268}],120:[function(y,Te,be){var x=y("../internals/array-species-constructor");Te.exports=function(z,ie){return new(x(z))(ie===0?0:ie)}},{"../internals/array-species-constructor":119}],121:[function(y,Te,be){var x=y("../internals/an-object"),z=y("../internals/iterator-close");Te.exports=function(ie,oe,ee,le){try{return le?oe(x(ee)[0],ee[1]):oe(ee)}catch(E){z(ie,"throw",E)}}},{"../internals/an-object":101,"../internals/iterator-close":185}],122:[function(y,Te,be){var x=y("../internals/well-known-symbol"),z=x("iterator"),ie=!1;try{var oe=0,ee={next:function(){return{done:!!oe++}},return:function(){ie=!0}};ee[z]=function(){return this},Array.from(ee,function(){throw 2})}catch(le){}Te.exports=function(le,E){if(!E&&!ie)return!1;var ne=!1;try{var te={};te[z]=function(){return{next:function(){return{done:ne=!0}}}},le(te)}catch(se){}return ne}},{"../internals/well-known-symbol":268}],123:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=x({}.toString),ie=x("".slice);Te.exports=function(oe){return ie(z(oe),8,-1)}},{"../internals/function-uncurry-this":157}],124:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/to-string-tag-support"),ie=y("../internals/is-callable"),oe=y("../internals/classof-raw"),ee=y("../internals/well-known-symbol"),le=ee("toStringTag"),E=x.Object,ne=oe(function(){return arguments}())=="Arguments",te=function(se,ue){try{return se[ue]}catch(fe){}};Te.exports=z?oe:function(se){var ue,fe,me;return se===void 0?"Undefined":se===null?"Null":typeof(fe=te(ue=E(se),le))=="string"?fe:ne?oe(ue):(me=oe(ue))=="Object"&&ie(ue.callee)?"Arguments":me}},{"../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,Te,be){var x=y("../internals/has-own-property"),z=y("../internals/own-keys"),ie=y("../internals/object-get-own-property-descriptor"),oe=y("../internals/object-define-property");Te.exports=function(ee,le,E){for(var ne=z(le),te=oe.f,se=ie.f,ue=0;ue<ne.length;ue++){var fe=ne[ue];!x(ee,fe)&&!(E&&x(E,fe))&&te(ee,fe,se(le,fe))}}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/own-keys":212}],126:[function(y,Te,be){var x=y("../internals/well-known-symbol"),z=x("match");Te.exports=function(ie){var oe=/./;try{"/./"[ie](oe)}catch(ee){try{return oe[z]=!1,"/./"[ie](oe)}catch(le){}}return!1}},{"../internals/well-known-symbol":268}],127:[function(y,Te,be){var x=y("../internals/fails");Te.exports=!x(function(){function z(){}return z.prototype.constructor=null,Object.getPrototypeOf(new z)!==z.prototype})},{"../internals/fails":150}],128:[function(y,Te,be){"use strict";var x=y("../internals/iterators-core").IteratorPrototype,z=y("../internals/object-create"),ie=y("../internals/create-property-descriptor"),oe=y("../internals/set-to-string-tag"),ee=y("../internals/iterators"),le=function(){return this};Te.exports=function(E,ne,te,se){var ue=ne+" Iterator";return E.prototype=z(x,{next:ie(+!se,te)}),oe(E,ue,!1,!0),ee[ue]=le,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,Te,be){var x=y("../internals/descriptors"),z=y("../internals/object-define-property"),ie=y("../internals/create-property-descriptor");Te.exports=x?function(oe,ee,le){return z.f(oe,ee,ie(1,le))}:function(oe,ee,le){return oe[ee]=le,oe}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/object-define-property":198}],130:[function(y,Te,be){Te.exports=function(x,z){return{enumerable:!(x&1),configurable:!(x&2),writable:!(x&4),value:z}}},{}],131:[function(y,Te,be){"use strict";var x=y("../internals/to-property-key"),z=y("../internals/object-define-property"),ie=y("../internals/create-property-descriptor");Te.exports=function(oe,ee,le){var E=x(ee);E in oe?z.f(oe,E,ie(0,le)):oe[E]=le}},{"../internals/create-property-descriptor":130,"../internals/object-define-property":198,"../internals/to-property-key":254}],132:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),ie=y("../internals/is-pure"),oe=y("../internals/function-name"),ee=y("../internals/is-callable"),le=y("../internals/create-iterator-constructor"),E=y("../internals/object-get-prototype-of"),ne=y("../internals/object-set-prototype-of"),te=y("../internals/set-to-string-tag"),se=y("../internals/create-non-enumerable-property"),ue=y("../internals/redefine"),fe=y("../internals/well-known-symbol"),me=y("../internals/iterators"),ve=y("../internals/iterators-core"),he=oe.PROPER,ge=oe.CONFIGURABLE,xe=ve.IteratorPrototype,Ce=ve.BUGGY_SAFARI_ITERATORS,je=fe("iterator"),Ee="keys",ce="values",ye="entries",we=function(){return this};Te.exports=function(De,Re,ke,_e,Ze,Ve,Qe){le(ke,Re,_e);var ut=function(tt){if(tt===Ze&&nt)return nt;if(!Ce&&tt in it)return it[tt];switch(tt){case Ee:return function(){return new ke(this,tt)};case ce:return function(){return new ke(this,tt)};case ye:return function(){return new ke(this,tt)}}return function(){return new ke(this)}},Ie=Re+" Iterator",We=!1,it=De.prototype,at=it[je]||it["@@iterator"]||Ze&&it[Ze],nt=!Ce&&at||ut(Ze),Xe=Re=="Array"&&it.entries||at,et,Ye,dt;if(Xe&&(et=E(Xe.call(new De)),et!==Object.prototype&&et.next&&(!ie&&E(et)!==xe&&(ne?ne(et,xe):ee(et[je])||ue(et,je,we)),te(et,Ie,!0,!0),ie&&(me[Ie]=we))),he&&Ze==ce&&at&&at.name!==ce&&(!ie&&ge?se(it,"name",ce):(We=!0,nt=function(){return z(at,this)})),Ze)if(Ye={values:ut(ce),keys:Ve?nt:ut(Ee),entries:ut(ye)},Qe)for(dt in Ye)(Ce||We||!(dt in it))&&ue(it,dt,Ye[dt]);else x({target:Re,proto:!0,forced:Ce||We},Ye);return(!ie||Qe)&&it[je]!==nt&&ue(it,je,nt,{name:Ze}),me[Re]=nt,Ye}},{"../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,Te,be){var x=y("../internals/path"),z=y("../internals/has-own-property"),ie=y("../internals/well-known-symbol-wrapped"),oe=y("../internals/object-define-property").f;Te.exports=function(ee){var le=x.Symbol||(x.Symbol={});z(le,ee)||oe(le,ee,{value:ie.f(ee)})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/path":213,"../internals/well-known-symbol-wrapped":267}],134:[function(y,Te,be){var x=y("../internals/fails");Te.exports=!x(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},{"../internals/fails":150}],135:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-object"),ie=x.document,oe=z(ie)&&z(ie.createElement);Te.exports=function(ee){return oe?ie.createElement(ee):{}}},{"../internals/global":163,"../internals/is-object":180}],136:[function(y,Te,be){Te.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,Te,be){var x=y("../internals/document-create-element"),z=x("span").classList,ie=z&&z.constructor&&z.constructor.prototype;Te.exports=ie===Object.prototype?void 0:ie},{"../internals/document-create-element":135}],138:[function(y,Te,be){var x=y("../internals/engine-user-agent"),z=x.match(/firefox\/(\d+)/i);Te.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],139:[function(y,Te,be){Te.exports=typeof window=="object"&&typeof Deno!="object"},{}],140:[function(y,Te,be){var x=y("../internals/engine-user-agent");Te.exports=/MSIE|Trident/.test(x)},{"../internals/engine-user-agent":145}],141:[function(y,Te,be){var x=y("../internals/engine-user-agent"),z=y("../internals/global");Te.exports=/ipad|iphone|ipod/i.test(x)&&z.Pebble!==void 0},{"../internals/engine-user-agent":145,"../internals/global":163}],142:[function(y,Te,be){var x=y("../internals/engine-user-agent");Te.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(x)},{"../internals/engine-user-agent":145}],143:[function(y,Te,be){var x=y("../internals/classof-raw"),z=y("../internals/global");Te.exports=x(z.process)=="process"},{"../internals/classof-raw":123,"../internals/global":163}],144:[function(y,Te,be){var x=y("../internals/engine-user-agent");Te.exports=/web0s(?!.*chrome)/i.test(x)},{"../internals/engine-user-agent":145}],145:[function(y,Te,be){var x=y("../internals/get-built-in");Te.exports=x("navigator","userAgent")||""},{"../internals/get-built-in":158}],146:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/engine-user-agent"),ie=x.process,oe=x.Deno,ee=ie&&ie.versions||oe&&oe.version,le=ee&&ee.v8,E,ne;le&&(E=le.split("."),ne=E[0]>0&&E[0]<4?1:+(E[0]+E[1])),!ne&&z&&(E=z.match(/Edge\/(\d+)/),(!E||E[1]>=74)&&(E=z.match(/Chrome\/(\d+)/),E&&(ne=+E[1]))),Te.exports=ne},{"../internals/engine-user-agent":145,"../internals/global":163}],147:[function(y,Te,be){var x=y("../internals/engine-user-agent"),z=x.match(/AppleWebKit\/(\d+)\./);Te.exports=!!z&&+z[1]},{"../internals/engine-user-agent":145}],148:[function(y,Te,be){Te.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},{}],149:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/object-get-own-property-descriptor").f,ie=y("../internals/create-non-enumerable-property"),oe=y("../internals/redefine"),ee=y("../internals/set-global"),le=y("../internals/copy-constructor-properties"),E=y("../internals/is-forced");Te.exports=function(ne,te){var se=ne.target,ue=ne.global,fe=ne.stat,me,ve,he,ge,xe,Ce;if(ue?ve=x:fe?ve=x[se]||ee(se,{}):ve=(x[se]||{}).prototype,ve)for(he in te){if(xe=te[he],ne.noTargetGet?(Ce=z(ve,he),ge=Ce&&Ce.value):ge=ve[he],me=E(ue?he:se+(fe?".":"#")+he,ne.forced),!me&&ge!==void 0){if(typeof xe==typeof ge)continue;le(xe,ge)}(ne.sham||ge&&ge.sham)&&ie(xe,"sham",!0),oe(ve,he,xe,ne)}}},{"../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,Te,be){Te.exports=function(x){try{return!!x()}catch(z){return!0}}},{}],151:[function(y,Te,be){"use strict";y("../modules/es.regexp.exec");var x=y("../internals/function-uncurry-this"),z=y("../internals/redefine"),ie=y("../internals/regexp-exec"),oe=y("../internals/fails"),ee=y("../internals/well-known-symbol"),le=y("../internals/create-non-enumerable-property"),E=ee("species"),ne=RegExp.prototype;Te.exports=function(te,se,ue,fe){var me=ee(te),ve=!oe(function(){var Ce={};return Ce[me]=function(){return 7},""[te](Ce)!=7}),he=ve&&!oe(function(){var Ce=!1,je=/a/;return te==="split"&&(je={},je.constructor={},je.constructor[E]=function(){return je},je.flags="",je[me]=/./[me]),je.exec=function(){return Ce=!0,null},je[me](""),!Ce});if(!ve||!he||ue){var ge=x(/./[me]),xe=se(me,""[te],function(Ce,je,Ee,ce,ye){var we=x(Ce),De=je.exec;return De===ie||De===ne.exec?ve&&!ye?{done:!0,value:ge(je,Ee,ce)}:{done:!0,value:we(Ee,je,ce)}:{done:!1}});z(String.prototype,te,xe[0]),z(ne,me,xe[1])}fe&&le(ne[me],"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,Te,be){var x=y("../internals/function-bind-native"),z=Function.prototype,ie=z.apply,oe=z.call;Te.exports=typeof Reflect=="object"&&Reflect.apply||(x?oe.bind(ie):function(){return oe.apply(ie,arguments)})},{"../internals/function-bind-native":154}],153:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/a-callable"),ie=y("../internals/function-bind-native"),oe=x(x.bind);Te.exports=function(ee,le){return z(ee),le===void 0?ee:ie?oe(ee,le):function(){return ee.apply(le,arguments)}}},{"../internals/a-callable":95,"../internals/function-bind-native":154,"../internals/function-uncurry-this":157}],154:[function(y,Te,be){var x=y("../internals/fails");Te.exports=!x(function(){var z=function(){}.bind();return typeof z!="function"||z.hasOwnProperty("prototype")})},{"../internals/fails":150}],155:[function(y,Te,be){var x=y("../internals/function-bind-native"),z=Function.prototype.call;Te.exports=x?z.bind(z):function(){return z.apply(z,arguments)}},{"../internals/function-bind-native":154}],156:[function(y,Te,be){var x=y("../internals/descriptors"),z=y("../internals/has-own-property"),ie=Function.prototype,oe=x&&Object.getOwnPropertyDescriptor,ee=z(ie,"name"),le=ee&&function(){}.name==="something",E=ee&&(!x||x&&oe(ie,"name").configurable);Te.exports={EXISTS:ee,PROPER:le,CONFIGURABLE:E}},{"../internals/descriptors":134,"../internals/has-own-property":164}],157:[function(y,Te,be){var x=y("../internals/function-bind-native"),z=Function.prototype,ie=z.bind,oe=z.call,ee=x&&ie.bind(oe,oe);Te.exports=x?function(le){return le&&ee(le)}:function(le){return le&&function(){return oe.apply(le,arguments)}}},{"../internals/function-bind-native":154}],158:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=function(oe){return z(oe)?oe:void 0};Te.exports=function(oe,ee){return arguments.length<2?ie(x[oe]):x[oe]&&x[oe][ee]}},{"../internals/global":163,"../internals/is-callable":176}],159:[function(y,Te,be){var x=y("../internals/classof"),z=y("../internals/get-method"),ie=y("../internals/iterators"),oe=y("../internals/well-known-symbol"),ee=oe("iterator");Te.exports=function(le){if(le!=null)return z(le,ee)||z(le,"@@iterator")||ie[x(le)]}},{"../internals/classof":124,"../internals/get-method":161,"../internals/iterators":187,"../internals/well-known-symbol":268}],160:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/a-callable"),oe=y("../internals/an-object"),ee=y("../internals/try-to-string"),le=y("../internals/get-iterator-method"),E=x.TypeError;Te.exports=function(ne,te){var se=arguments.length<2?le(ne):te;if(ie(se))return oe(z(se,ne));throw E(ee(ne)+" 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,Te,be){var x=y("../internals/a-callable");Te.exports=function(z,ie){var oe=z[ie];return oe==null?void 0:x(oe)}},{"../internals/a-callable":95}],162:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),ie=Math.floor,oe=x("".charAt),ee=x("".replace),le=x("".slice),E=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ne=/\$([$&'`]|\d{1,2})/g;Te.exports=function(te,se,ue,fe,me,ve){var he=ue+te.length,ge=fe.length,xe=ne;return me!==void 0&&(me=z(me),xe=E),ee(ve,xe,function(Ce,je){var Ee;switch(oe(je,0)){case"$":return"$";case"&":return te;case"`":return le(se,0,ue);case"'":return le(se,he);case"<":Ee=me[le(je,1,-1)];break;default:var ce=+je;if(ce===0)return Ce;if(ce>ge){var ye=ie(ce/10);return ye===0?Ce:ye<=ge?fe[ye-1]===void 0?oe(je,1):fe[ye-1]+oe(je,1):Ce}Ee=fe[ce-1]}return Ee===void 0?"":Ee})}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],163:[function(y,Te,be){(function(x){(function(){var z=function(ie){return ie&&ie.Math==Math&&ie};Te.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 Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],164:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-object"),ie=x({}.hasOwnProperty);Te.exports=Object.hasOwn||function(ee,le){return ie(z(ee),le)}},{"../internals/function-uncurry-this":157,"../internals/to-object":250}],165:[function(y,Te,be){Te.exports={}},{}],166:[function(y,Te,be){var x=y("../internals/global");Te.exports=function(z,ie){var oe=x.console;oe&&oe.error&&(arguments.length==1?oe.error(z):oe.error(z,ie))}},{"../internals/global":163}],167:[function(y,Te,be){var x=y("../internals/get-built-in");Te.exports=x("document","documentElement")},{"../internals/get-built-in":158}],168:[function(y,Te,be){var x=y("../internals/descriptors"),z=y("../internals/fails"),ie=y("../internals/document-create-element");Te.exports=!x&&!z(function(){return Object.defineProperty(ie("div"),"a",{get:function(){return 7}}).a!=7})},{"../internals/descriptors":134,"../internals/document-create-element":135,"../internals/fails":150}],169:[function(y,Te,be){var x=y("../internals/global"),z=x.Array,ie=Math.abs,oe=Math.pow,ee=Math.floor,le=Math.log,E=Math.LN2,ne=function(se,ue,fe){var me=z(fe),ve=fe*8-ue-1,he=(1<<ve)-1,ge=he>>1,xe=ue===23?oe(2,-24)-oe(2,-77):0,Ce=se<0||se===0&&1/se<0?1:0,je=0,Ee,ce,ye;for(se=ie(se),se!=se||se===1/0?(ce=se!=se?1:0,Ee=he):(Ee=ee(le(se)/E),ye=oe(2,-Ee),se*ye<1&&(Ee--,ye*=2),Ee+ge>=1?se+=xe/ye:se+=xe*oe(2,1-ge),se*ye>=2&&(Ee++,ye/=2),Ee+ge>=he?(ce=0,Ee=he):Ee+ge>=1?(ce=(se*ye-1)*oe(2,ue),Ee=Ee+ge):(ce=se*oe(2,ge-1)*oe(2,ue),Ee=0));ue>=8;)me[je++]=ce&255,ce/=256,ue-=8;for(Ee=Ee<<ue|ce,ve+=ue;ve>0;)me[je++]=Ee&255,Ee/=256,ve-=8;return me[--je]|=Ce*128,me},te=function(se,ue){var fe=se.length,me=fe*8-ue-1,ve=(1<<me)-1,he=ve>>1,ge=me-7,xe=fe-1,Ce=se[xe--],je=Ce&127,Ee;for(Ce>>=7;ge>0;)je=je*256+se[xe--],ge-=8;for(Ee=je&(1<<-ge)-1,je>>=-ge,ge+=ue;ge>0;)Ee=Ee*256+se[xe--],ge-=8;if(je===0)je=1-he;else{if(je===ve)return Ee?NaN:Ce?-1/0:1/0;Ee=Ee+oe(2,ue),je=je-he}return(Ce?-1:1)*Ee*oe(2,je-ue)};Te.exports={pack:ne,unpack:te}},{"../internals/global":163}],170:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),oe=y("../internals/classof-raw"),ee=x.Object,le=z("".split);Te.exports=ie(function(){return!ee("z").propertyIsEnumerable(0)})?function(E){return oe(E)=="String"?le(E,""):ee(E)}:ee},{"../internals/classof-raw":123,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],171:[function(y,Te,be){var x=y("../internals/is-callable"),z=y("../internals/is-object"),ie=y("../internals/object-set-prototype-of");Te.exports=function(oe,ee,le){var E,ne;return ie&&x(E=ee.constructor)&&E!==le&&z(ne=E.prototype)&&ne!==le.prototype&&ie(oe,ne),oe}},{"../internals/is-callable":176,"../internals/is-object":180,"../internals/object-set-prototype-of":208}],172:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/is-callable"),ie=y("../internals/shared-store"),oe=x(Function.toString);z(ie.inspectSource)||(ie.inspectSource=function(ee){return oe(ee)}),Te.exports=ie.inspectSource},{"../internals/function-uncurry-this":157,"../internals/is-callable":176,"../internals/shared-store":236}],173:[function(y,Te,be){var x=y("../internals/native-weak-map"),z=y("../internals/global"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/is-object"),ee=y("../internals/create-non-enumerable-property"),le=y("../internals/has-own-property"),E=y("../internals/shared-store"),ne=y("../internals/shared-key"),te=y("../internals/hidden-keys"),se="Object already initialized",ue=z.TypeError,fe=z.WeakMap,me,ve,he,ge=function(we){return he(we)?ve(we):me(we,{})},xe=function(we){return function(De){var Re;if(!oe(De)||(Re=ve(De)).type!==we)throw ue("Incompatible receiver, "+we+" required");return Re}};if(x||E.state){var Ce=E.state||(E.state=new fe),je=ie(Ce.get),Ee=ie(Ce.has),ce=ie(Ce.set);me=function(we,De){if(Ee(Ce,we))throw new ue(se);return De.facade=we,ce(Ce,we,De),De},ve=function(we){return je(Ce,we)||{}},he=function(we){return Ee(Ce,we)}}else{var ye=ne("state");te[ye]=!0,me=function(we,De){if(le(we,ye))throw new ue(se);return De.facade=we,ee(we,ye,De),De},ve=function(we){return le(we,ye)?we[ye]:{}},he=function(we){return le(we,ye)}}Te.exports={set:me,get:ve,has:he,enforce:ge,getterFor:xe}},{"../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,Te,be){var x=y("../internals/well-known-symbol"),z=y("../internals/iterators"),ie=x("iterator"),oe=Array.prototype;Te.exports=function(ee){return ee!==void 0&&(z.Array===ee||oe[ie]===ee)}},{"../internals/iterators":187,"../internals/well-known-symbol":268}],175:[function(y,Te,be){var x=y("../internals/classof-raw");Te.exports=Array.isArray||function(ie){return x(ie)=="Array"}},{"../internals/classof-raw":123}],176:[function(y,Te,be){Te.exports=function(x){return typeof x=="function"}},{}],177:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/fails"),ie=y("../internals/is-callable"),oe=y("../internals/classof"),ee=y("../internals/get-built-in"),le=y("../internals/inspect-source"),E=function(){},ne=[],te=ee("Reflect","construct"),se=/^\s*(?:class|function)\b/,ue=x(se.exec),fe=!se.exec(E),me=function(ge){if(!ie(ge))return!1;try{return te(E,ne,ge),!0}catch(xe){return!1}},ve=function(ge){if(!ie(ge))return!1;switch(oe(ge)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return fe||!!ue(se,le(ge))}catch(xe){return!0}};ve.sham=!0,Te.exports=!te||z(function(){var he;return me(me.call)||!me(Object)||!me(function(){he=!0})||he})?ve:me},{"../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,Te,be){var x=y("../internals/fails"),z=y("../internals/is-callable"),ie=/#|\.prototype\./,oe=function(te,se){var ue=le[ee(te)];return ue==ne?!0:ue==E?!1:z(se)?x(se):!!se},ee=oe.normalize=function(te){return String(te).replace(ie,".").toLowerCase()},le=oe.data={},E=oe.NATIVE="N",ne=oe.POLYFILL="P";Te.exports=oe},{"../internals/fails":150,"../internals/is-callable":176}],179:[function(y,Te,be){var x=y("../internals/is-object"),z=Math.floor;Te.exports=Number.isInteger||function(oe){return!x(oe)&&isFinite(oe)&&z(oe)===oe}},{"../internals/is-object":180}],180:[function(y,Te,be){var x=y("../internals/is-callable");Te.exports=function(z){return typeof z=="object"?z!==null:x(z)}},{"../internals/is-callable":176}],181:[function(y,Te,be){Te.exports=!1},{}],182:[function(y,Te,be){var x=y("../internals/is-object"),z=y("../internals/classof-raw"),ie=y("../internals/well-known-symbol"),oe=ie("match");Te.exports=function(ee){var le;return x(ee)&&((le=ee[oe])!==void 0?!!le:z(ee)=="RegExp")}},{"../internals/classof-raw":123,"../internals/is-object":180,"../internals/well-known-symbol":268}],183:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/get-built-in"),ie=y("../internals/is-callable"),oe=y("../internals/object-is-prototype-of"),ee=y("../internals/use-symbol-as-uid"),le=x.Object;Te.exports=ee?function(E){return typeof E=="symbol"}:function(E){var ne=z("Symbol");return ie(ne)&&oe(ne.prototype,le(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,Te,be){var x=y("../internals/global"),z=y("../internals/function-bind-context"),ie=y("../internals/function-call"),oe=y("../internals/an-object"),ee=y("../internals/try-to-string"),le=y("../internals/is-array-iterator-method"),E=y("../internals/length-of-array-like"),ne=y("../internals/object-is-prototype-of"),te=y("../internals/get-iterator"),se=y("../internals/get-iterator-method"),ue=y("../internals/iterator-close"),fe=x.TypeError,me=function(he,ge){this.stopped=he,this.result=ge},ve=me.prototype;Te.exports=function(he,ge,xe){var Ce=xe&&xe.that,je=!!(xe&&xe.AS_ENTRIES),Ee=!!(xe&&xe.IS_ITERATOR),ce=!!(xe&&xe.INTERRUPTED),ye=z(ge,Ce),we,De,Re,ke,_e,Ze,Ve,Qe=function(Ie){return we&&ue(we,"normal",Ie),new me(!0,Ie)},ut=function(Ie){return je?(oe(Ie),ce?ye(Ie[0],Ie[1],Qe):ye(Ie[0],Ie[1])):ce?ye(Ie,Qe):ye(Ie)};if(Ee)we=he;else{if(De=se(he),!De)throw fe(ee(he)+" is not iterable");if(le(De)){for(Re=0,ke=E(he);ke>Re;Re++)if(_e=ut(he[Re]),_e&&ne(ve,_e))return _e;return new me(!1)}we=te(he,De)}for(Ze=we.next;!(Ve=ie(Ze,we)).done;){try{_e=ut(Ve.value)}catch(Ie){ue(we,"throw",Ie)}if(typeof _e=="object"&&_e&&ne(ve,_e))return _e}return new me(!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,Te,be){var x=y("../internals/function-call"),z=y("../internals/an-object"),ie=y("../internals/get-method");Te.exports=function(oe,ee,le){var E,ne;z(oe);try{if(E=ie(oe,"return"),!E){if(ee==="throw")throw le;return le}E=x(E,oe)}catch(te){ne=!0,E=te}if(ee==="throw")throw le;if(ne)throw E;return z(E),le}},{"../internals/an-object":101,"../internals/function-call":155,"../internals/get-method":161}],186:[function(y,Te,be){"use strict";var x=y("../internals/fails"),z=y("../internals/is-callable"),ie=y("../internals/object-create"),oe=y("../internals/object-get-prototype-of"),ee=y("../internals/redefine"),le=y("../internals/well-known-symbol"),E=y("../internals/is-pure"),ne=le("iterator"),te=!1,se,ue,fe;[].keys&&(fe=[].keys(),"next"in fe?(ue=oe(oe(fe)),ue!==Object.prototype&&(se=ue)):te=!0);var me=se==null||x(function(){var ve={};return se[ne].call(ve)!==ve});me?se={}:E&&(se=ie(se)),z(se[ne])||ee(se,ne,function(){return this}),Te.exports={IteratorPrototype:se,BUGGY_SAFARI_ITERATORS:te}},{"../internals/fails":150,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/object-create":196,"../internals/object-get-prototype-of":203,"../internals/redefine":222,"../internals/well-known-symbol":268}],187:[function(y,Te,be){arguments[4][165][0].apply(be,arguments)},{dup:165}],188:[function(y,Te,be){var x=y("../internals/to-length");Te.exports=function(z){return x(z.length)}},{"../internals/to-length":249}],189:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/function-bind-context"),ie=y("../internals/object-get-own-property-descriptor").f,oe=y("../internals/task").set,ee=y("../internals/engine-is-ios"),le=y("../internals/engine-is-ios-pebble"),E=y("../internals/engine-is-webos-webkit"),ne=y("../internals/engine-is-node"),te=x.MutationObserver||x.WebKitMutationObserver,se=x.document,ue=x.process,fe=x.Promise,me=ie(x,"queueMicrotask"),ve=me&&me.value,he,ge,xe,Ce,je,Ee,ce,ye;ve||(he=function(){var we,De;for(ne&&(we=ue.domain)&&we.exit();ge;){De=ge.fn,ge=ge.next;try{De()}catch(Re){throw ge?Ce():xe=void 0,Re}}xe=void 0,we&&we.enter()},!ee&&!ne&&!E&&te&&se?(je=!0,Ee=se.createTextNode(""),new te(he).observe(Ee,{characterData:!0}),Ce=function(){Ee.data=je=!je}):!le&&fe&&fe.resolve?(ce=fe.resolve(void 0),ce.constructor=fe,ye=z(ce.then,ce),Ce=function(){ye(he)}):ne?Ce=function(){ue.nextTick(he)}:(oe=z(oe,x),Ce=function(){oe(he)})),Te.exports=ve||function(we){var De={fn:we,next:void 0};xe&&(xe.next=De),ge||(ge=De,Ce()),xe=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,Te,be){var x=y("../internals/native-symbol");Te.exports=x&&!!Symbol.for&&!!Symbol.keyFor},{"../internals/native-symbol":191}],191:[function(y,Te,be){var x=y("../internals/engine-v8-version"),z=y("../internals/fails");Te.exports=!!Object.getOwnPropertySymbols&&!z(function(){var ie=Symbol();return!String(ie)||!(Object(ie)instanceof Symbol)||!Symbol.sham&&x&&x<41})},{"../internals/engine-v8-version":146,"../internals/fails":150}],192:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=y("../internals/inspect-source"),oe=x.WeakMap;Te.exports=z(oe)&&/native code/.test(ie(oe))},{"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176}],193:[function(y,Te,be){"use strict";var x=y("../internals/a-callable"),z=function(ie){var oe,ee;this.promise=new ie(function(le,E){if(oe!==void 0||ee!==void 0)throw TypeError("Bad Promise constructor");oe=le,ee=E}),this.resolve=x(oe),this.reject=x(ee)};Te.exports.f=function(ie){return new z(ie)}},{"../internals/a-callable":95}],194:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-regexp"),ie=x.TypeError;Te.exports=function(oe){if(z(oe))throw ie("The method doesn't accept regular expressions");return oe}},{"../internals/global":163,"../internals/is-regexp":182}],195:[function(y,Te,be){"use strict";var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),ie=y("../internals/function-call"),oe=y("../internals/fails"),ee=y("../internals/object-keys"),le=y("../internals/object-get-own-property-symbols"),E=y("../internals/object-property-is-enumerable"),ne=y("../internals/to-object"),te=y("../internals/indexed-object"),se=Object.assign,ue=Object.defineProperty,fe=z([].concat);Te.exports=!se||oe(function(){if(x&&se({b:1},se(ue({},"a",{enumerable:!0,get:function(){ue(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var me={},ve={},he=Symbol(),ge="abcdefghijklmnopqrst";return me[he]=7,ge.split("").forEach(function(xe){ve[xe]=xe}),se({},me)[he]!=7||ee(se({},ve)).join("")!=ge})?function(ve,he){for(var ge=ne(ve),xe=arguments.length,Ce=1,je=le.f,Ee=E.f;xe>Ce;)for(var ce=te(arguments[Ce++]),ye=je?fe(ee(ce),je(ce)):ee(ce),we=ye.length,De=0,Re;we>De;)Re=ye[De++],(!x||ie(Ee,ce,Re))&&(ge[Re]=ce[Re]);return ge}:se},{"../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,Te,be){var x=y("../internals/an-object"),z=y("../internals/object-define-properties"),ie=y("../internals/enum-bug-keys"),oe=y("../internals/hidden-keys"),ee=y("../internals/html"),le=y("../internals/document-create-element"),E=y("../internals/shared-key"),ne=">",te="<",se="prototype",ue="script",fe=E("IE_PROTO"),me=function(){},ve=function(je){return te+ue+ne+je+te+"/"+ue+ne},he=function(je){je.write(ve("")),je.close();var Ee=je.parentWindow.Object;return je=null,Ee},ge=function(){var je=le("iframe"),Ee="java"+ue+":",ce;return je.style.display="none",ee.appendChild(je),je.src=String(Ee),ce=je.contentWindow.document,ce.open(),ce.write(ve("document.F=Object")),ce.close(),ce.F},xe,Ce=function(){try{xe=new ActiveXObject("htmlfile")}catch(Ee){}Ce=typeof document!="undefined"?document.domain&&xe?he(xe):ge():he(xe);for(var je=ie.length;je--;)delete Ce[se][ie[je]];return Ce()};oe[fe]=!0,Te.exports=Object.create||function(Ee,ce){var ye;return Ee!==null?(me[se]=x(Ee),ye=new me,me[se]=null,ye[fe]=Ee):ye=Ce(),ce===void 0?ye:z.f(ye,ce)}},{"../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,Te,be){var x=y("../internals/descriptors"),z=y("../internals/v8-prototype-define-bug"),ie=y("../internals/object-define-property"),oe=y("../internals/an-object"),ee=y("../internals/to-indexed-object"),le=y("../internals/object-keys");be.f=x&&!z?Object.defineProperties:function(ne,te){oe(ne);for(var se=ee(te),ue=le(te),fe=ue.length,me=0,ve;fe>me;)ie.f(ne,ve=ue[me++],se[ve]);return ne}},{"../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,Te,be){var x=y("../internals/global"),z=y("../internals/descriptors"),ie=y("../internals/ie8-dom-define"),oe=y("../internals/v8-prototype-define-bug"),ee=y("../internals/an-object"),le=y("../internals/to-property-key"),E=x.TypeError,ne=Object.defineProperty,te=Object.getOwnPropertyDescriptor,se="enumerable",ue="configurable",fe="writable";be.f=z?oe?function(ve,he,ge){if(ee(ve),he=le(he),ee(ge),typeof ve=="function"&&he==="prototype"&&"value"in ge&&fe in ge&&!ge[fe]){var xe=te(ve,he);xe&&xe[fe]&&(ve[he]=ge.value,ge={configurable:ue in ge?ge[ue]:xe[ue],enumerable:se in ge?ge[se]:xe[se],writable:!1})}return ne(ve,he,ge)}:ne:function(ve,he,ge){if(ee(ve),he=le(he),ee(ge),ie)try{return ne(ve,he,ge)}catch(xe){}if("get"in ge||"set"in ge)throw E("Accessors not supported");return"value"in ge&&(ve[he]=ge.value),ve}},{"../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,Te,be){var x=y("../internals/descriptors"),z=y("../internals/function-call"),ie=y("../internals/object-property-is-enumerable"),oe=y("../internals/create-property-descriptor"),ee=y("../internals/to-indexed-object"),le=y("../internals/to-property-key"),E=y("../internals/has-own-property"),ne=y("../internals/ie8-dom-define"),te=Object.getOwnPropertyDescriptor;be.f=x?te:function(ue,fe){if(ue=ee(ue),fe=le(fe),ne)try{return te(ue,fe)}catch(me){}if(E(ue,fe))return oe(!z(ie.f,ue,fe),ue[fe])}},{"../internals/create-property-descriptor":130,"../internals/descriptors":134,"../internals/function-call":155,"../internals/has-own-property":164,"../internals/ie8-dom-define":168,"../internals/object-property-is-enumerable":207,"../internals/to-indexed-object":247,"../internals/to-property-key":254}],200:[function(y,Te,be){var x=y("../internals/classof-raw"),z=y("../internals/to-indexed-object"),ie=y("../internals/object-get-own-property-names").f,oe=y("../internals/array-slice-simple"),ee=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],le=function(E){try{return ie(E)}catch(ne){return oe(ee)}};Te.exports.f=function(ne){return ee&&x(ne)=="Window"?le(ne):ie(z(ne))}},{"../internals/array-slice-simple":116,"../internals/classof-raw":123,"../internals/object-get-own-property-names":201,"../internals/to-indexed-object":247}],201:[function(y,Te,be){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys"),ie=z.concat("length","prototype");be.f=Object.getOwnPropertyNames||function(ee){return x(ee,ie)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],202:[function(y,Te,be){be.f=Object.getOwnPropertySymbols},{}],203:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/has-own-property"),ie=y("../internals/is-callable"),oe=y("../internals/to-object"),ee=y("../internals/shared-key"),le=y("../internals/correct-prototype-getter"),E=ee("IE_PROTO"),ne=x.Object,te=ne.prototype;Te.exports=le?ne.getPrototypeOf:function(se){var ue=oe(se);if(z(ue,E))return ue[E];var fe=ue.constructor;return ie(fe)&&ue instanceof fe?fe.prototype:ue instanceof ne?te:null}},{"../internals/correct-prototype-getter":127,"../internals/global":163,"../internals/has-own-property":164,"../internals/is-callable":176,"../internals/shared-key":235,"../internals/to-object":250}],204:[function(y,Te,be){var x=y("../internals/function-uncurry-this");Te.exports=x({}.isPrototypeOf)},{"../internals/function-uncurry-this":157}],205:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/has-own-property"),ie=y("../internals/to-indexed-object"),oe=y("../internals/array-includes").indexOf,ee=y("../internals/hidden-keys"),le=x([].push);Te.exports=function(E,ne){var te=ie(E),se=0,ue=[],fe;for(fe in te)!z(ee,fe)&&z(te,fe)&&le(ue,fe);for(;ne.length>se;)z(te,fe=ne[se++])&&(~oe(ue,fe)||le(ue,fe));return ue}},{"../internals/array-includes":110,"../internals/function-uncurry-this":157,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/to-indexed-object":247}],206:[function(y,Te,be){var x=y("../internals/object-keys-internal"),z=y("../internals/enum-bug-keys");Te.exports=Object.keys||function(oe){return x(oe,z)}},{"../internals/enum-bug-keys":148,"../internals/object-keys-internal":205}],207:[function(y,Te,be){"use strict";var x={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,ie=z&&!x.call({1:2},1);be.f=ie?function(ee){var le=z(this,ee);return!!le&&le.enumerable}:x},{}],208:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/an-object"),ie=y("../internals/a-possible-prototype");Te.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var oe=!1,ee={},le;try{le=x(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),le(ee,[]),oe=ee instanceof Array}catch(E){}return function(ne,te){return z(ne),ie(te),oe?le(ne,te):ne.__proto__=te,ne}}():void 0)},{"../internals/a-possible-prototype":97,"../internals/an-object":101,"../internals/function-uncurry-this":157}],209:[function(y,Te,be){var x=y("../internals/descriptors"),z=y("../internals/function-uncurry-this"),ie=y("../internals/object-keys"),oe=y("../internals/to-indexed-object"),ee=y("../internals/object-property-is-enumerable").f,le=z(ee),E=z([].push),ne=function(te){return function(se){for(var ue=oe(se),fe=ie(ue),me=fe.length,ve=0,he=[],ge;me>ve;)ge=fe[ve++],(!x||le(ue,ge))&&E(he,te?[ge,ue[ge]]:ue[ge]);return he}};Te.exports={entries:ne(!0),values:ne(!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,Te,be){"use strict";var x=y("../internals/to-string-tag-support"),z=y("../internals/classof");Te.exports=x?{}.toString:function(){return"[object "+z(this)+"]"}},{"../internals/classof":124,"../internals/to-string-tag-support":255}],211:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/is-callable"),oe=y("../internals/is-object"),ee=x.TypeError;Te.exports=function(le,E){var ne,te;if(E==="string"&&ie(ne=le.toString)&&!oe(te=z(ne,le))||ie(ne=le.valueOf)&&!oe(te=z(ne,le))||E!=="string"&&ie(ne=le.toString)&&!oe(te=z(ne,le)))return te;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,Te,be){var x=y("../internals/get-built-in"),z=y("../internals/function-uncurry-this"),ie=y("../internals/object-get-own-property-names"),oe=y("../internals/object-get-own-property-symbols"),ee=y("../internals/an-object"),le=z([].concat);Te.exports=x("Reflect","ownKeys")||function(ne){var te=ie.f(ee(ne)),se=oe.f;return se?le(te,se(ne)):te}},{"../internals/an-object":101,"../internals/function-uncurry-this":157,"../internals/get-built-in":158,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-symbols":202}],213:[function(y,Te,be){var x=y("../internals/global");Te.exports=x},{"../internals/global":163}],214:[function(y,Te,be){Te.exports=function(x){try{return{error:!1,value:x()}}catch(z){return{error:!0,value:z}}}},{}],215:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/promise-native-constructor"),ie=y("../internals/is-callable"),oe=y("../internals/is-forced"),ee=y("../internals/inspect-source"),le=y("../internals/well-known-symbol"),E=y("../internals/engine-is-browser"),ne=y("../internals/is-pure"),te=y("../internals/engine-v8-version"),se=z&&z.prototype,ue=le("species"),fe=!1,me=ie(x.PromiseRejectionEvent),ve=oe("Promise",function(){var he=ee(z),ge=he!==String(z);if(!ge&&te===66||ne&&!(se.catch&&se.finally))return!0;if(te>=51&&/native code/.test(he))return!1;var xe=new z(function(Ee){Ee(1)}),Ce=function(Ee){Ee(function(){},function(){})},je=xe.constructor={};return je[ue]=Ce,fe=xe.then(function(){})instanceof Ce,fe?!ge&&E&&!me:!0});Te.exports={CONSTRUCTOR:ve,REJECTION_EVENT:me,SUBCLASSING:fe}},{"../internals/engine-is-browser":139,"../internals/engine-v8-version":146,"../internals/global":163,"../internals/inspect-source":172,"../internals/is-callable":176,"../internals/is-forced":178,"../internals/is-pure":181,"../internals/promise-native-constructor":216,"../internals/well-known-symbol":268}],216:[function(y,Te,be){var x=y("../internals/global");Te.exports=x.Promise},{"../internals/global":163}],217:[function(y,Te,be){var x=y("../internals/an-object"),z=y("../internals/is-object"),ie=y("../internals/new-promise-capability");Te.exports=function(oe,ee){if(x(oe),z(ee)&&ee.constructor===oe)return ee;var le=ie.f(oe),E=le.resolve;return E(ee),le.promise}},{"../internals/an-object":101,"../internals/is-object":180,"../internals/new-promise-capability":193}],218:[function(y,Te,be){var x=y("../internals/promise-native-constructor"),z=y("../internals/check-correctness-of-iteration"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR;Te.exports=ie||!z(function(oe){x.all(oe).then(void 0,function(){})})},{"../internals/check-correctness-of-iteration":122,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216}],219:[function(y,Te,be){var x=y("../internals/object-define-property").f;Te.exports=function(z,ie,oe){oe in z||x(z,oe,{configurable:!0,get:function(){return ie[oe]},set:function(ee){ie[oe]=ee}})}},{"../internals/object-define-property":198}],220:[function(y,Te,be){var x=function(){this.head=null,this.tail=null};x.prototype={add:function(z){var ie={item:z,next:null};this.head?this.tail.next=ie:this.head=ie,this.tail=ie},get:function(){var z=this.head;if(z)return this.head=z.next,this.tail===z&&(this.tail=null),z.item}},Te.exports=x},{}],221:[function(y,Te,be){var x=y("../internals/redefine");Te.exports=function(z,ie,oe){for(var ee in ie)x(z,ee,ie[ee],oe);return z}},{"../internals/redefine":222}],222:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/is-callable"),ie=y("../internals/has-own-property"),oe=y("../internals/create-non-enumerable-property"),ee=y("../internals/set-global"),le=y("../internals/inspect-source"),E=y("../internals/internal-state"),ne=y("../internals/function-name").CONFIGURABLE,te=E.get,se=E.enforce,ue=String(String).split("String");(Te.exports=function(fe,me,ve,he){var ge=he?!!he.unsafe:!1,xe=he?!!he.enumerable:!1,Ce=he?!!he.noTargetGet:!1,je=he&&he.name!==void 0?he.name:me,Ee;if(z(ve)&&(String(je).slice(0,7)==="Symbol("&&(je="["+String(je).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ie(ve,"name")||ne&&ve.name!==je)&&oe(ve,"name",je),Ee=se(ve),Ee.source||(Ee.source=ue.join(typeof je=="string"?je:""))),fe===x){xe?fe[me]=ve:ee(me,ve);return}else ge?!Ce&&fe[me]&&(xe=!0):delete fe[me];xe?fe[me]=ve:oe(fe,me,ve)})(Function.prototype,"toString",function(){return z(this)&&te(this).source||le(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,Te,be){var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/an-object"),oe=y("../internals/is-callable"),ee=y("../internals/classof-raw"),le=y("../internals/regexp-exec"),E=x.TypeError;Te.exports=function(ne,te){var se=ne.exec;if(oe(se)){var ue=z(se,ne,te);return ue!==null&&ie(ue),ue}if(ee(ne)==="RegExp")return z(le,ne,te);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,Te,be){"use strict";var x=y("../internals/function-call"),z=y("../internals/function-uncurry-this"),ie=y("../internals/to-string"),oe=y("../internals/regexp-flags"),ee=y("../internals/regexp-sticky-helpers"),le=y("../internals/shared"),E=y("../internals/object-create"),ne=y("../internals/internal-state").get,te=y("../internals/regexp-unsupported-dot-all"),se=y("../internals/regexp-unsupported-ncg"),ue=le("native-string-replace",String.prototype.replace),fe=RegExp.prototype.exec,me=fe,ve=z("".charAt),he=z("".indexOf),ge=z("".replace),xe=z("".slice),Ce=function(){var ye=/a/,we=/b*/g;return x(fe,ye,"a"),x(fe,we,"a"),ye.lastIndex!==0||we.lastIndex!==0}(),je=ee.BROKEN_CARET,Ee=/()??/.exec("")[1]!==void 0,ce=Ce||Ee||je||te||se;ce&&(me=function(we){var De=this,Re=ne(De),ke=ie(we),_e=Re.raw,Ze,Ve,Qe,ut,Ie,We,it;if(_e)return _e.lastIndex=De.lastIndex,Ze=x(me,_e,ke),De.lastIndex=_e.lastIndex,Ze;var at=Re.groups,nt=je&&De.sticky,Xe=x(oe,De),et=De.source,Ye=0,dt=ke;if(nt&&(Xe=ge(Xe,"y",""),he(Xe,"g")===-1&&(Xe+="g"),dt=xe(ke,De.lastIndex),De.lastIndex>0&&(!De.multiline||De.multiline&&ve(ke,De.lastIndex-1)!==`
`)&&(et="(?: "+et+")",dt=" "+dt,Ye++),Ve=new RegExp("^(?:"+et+")",Xe)),Ee&&(Ve=new RegExp("^"+et+"$(?!\\s)",Xe)),Ce&&(Qe=De.lastIndex),ut=x(fe,nt?Ve:De,dt),nt?ut?(ut.input=xe(ut.input,Ye),ut[0]=xe(ut[0],Ye),ut.index=De.lastIndex,De.lastIndex+=ut[0].length):De.lastIndex=0:Ce&&ut&&(De.lastIndex=De.global?ut.index+ut[0].length:Qe),Ee&&ut&&ut.length>1&&x(ue,ut[0],Ve,function(){for(Ie=1;Ie<arguments.length-2;Ie++)arguments[Ie]===void 0&&(ut[Ie]=void 0)}),ut&&at)for(ut.groups=We=E(null),Ie=0;Ie<at.length;Ie++)it=at[Ie],We[it[0]]=ut[it[1]];return ut}),Te.exports=me},{"../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,Te,be){"use strict";var x=y("../internals/an-object");Te.exports=function(){var z=x(this),ie="";return z.hasIndices&&(ie+="d"),z.global&&(ie+="g"),z.ignoreCase&&(ie+="i"),z.multiline&&(ie+="m"),z.dotAll&&(ie+="s"),z.unicode&&(ie+="u"),z.sticky&&(ie+="y"),ie}},{"../internals/an-object":101}],226:[function(y,Te,be){var x=y("../internals/function-call"),z=y("../internals/has-own-property"),ie=y("../internals/object-is-prototype-of"),oe=y("../internals/regexp-flags"),ee=RegExp.prototype;Te.exports=function(le){var E=le.flags;return E===void 0&&!("flags"in ee)&&!z(le,"flags")&&ie(ee,le)?x(oe,le):E}},{"../internals/function-call":155,"../internals/has-own-property":164,"../internals/object-is-prototype-of":204,"../internals/regexp-flags":225}],227:[function(y,Te,be){var x=y("../internals/fails"),z=y("../internals/global"),ie=z.RegExp,oe=x(function(){var E=ie("a","y");return E.lastIndex=2,E.exec("abcd")!=null}),ee=oe||x(function(){return!ie("a","y").sticky}),le=oe||x(function(){var E=ie("^r","gy");return E.lastIndex=2,E.exec("str")!=null});Te.exports={BROKEN_CARET:le,MISSED_STICKY:ee,UNSUPPORTED_Y:oe}},{"../internals/fails":150,"../internals/global":163}],228:[function(y,Te,be){var x=y("../internals/fails"),z=y("../internals/global"),ie=z.RegExp;Te.exports=x(function(){var oe=ie(".","s");return!(oe.dotAll&&oe.exec(`
`)&&oe.flags==="s")})},{"../internals/fails":150,"../internals/global":163}],229:[function(y,Te,be){var x=y("../internals/fails"),z=y("../internals/global"),ie=z.RegExp;Te.exports=x(function(){var oe=ie("(?<a>b)","g");return oe.exec("b").groups.a!=="b"||"b".replace(oe,"$<a>c")!=="bc"})},{"../internals/fails":150,"../internals/global":163}],230:[function(y,Te,be){var x=y("../internals/global"),z=x.TypeError;Te.exports=function(ie){if(ie==null)throw z("Can't call method on "+ie);return ie}},{"../internals/global":163}],231:[function(y,Te,be){Te.exports=Object.is||function(z,ie){return z===ie?z!==0||1/z===1/ie:z!=z&&ie!=ie}},{}],232:[function(y,Te,be){var x=y("../internals/global"),z=Object.defineProperty;Te.exports=function(ie,oe){try{z(x,ie,{value:oe,configurable:!0,writable:!0})}catch(ee){x[ie]=oe}return oe}},{"../internals/global":163}],233:[function(y,Te,be){"use strict";var x=y("../internals/get-built-in"),z=y("../internals/object-define-property"),ie=y("../internals/well-known-symbol"),oe=y("../internals/descriptors"),ee=ie("species");Te.exports=function(le){var E=x(le),ne=z.f;oe&&E&&!E[ee]&&ne(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,Te,be){var x=y("../internals/object-define-property").f,z=y("../internals/has-own-property"),ie=y("../internals/well-known-symbol"),oe=ie("toStringTag");Te.exports=function(ee,le,E){ee&&!E&&(ee=ee.prototype),ee&&!z(ee,oe)&&x(ee,oe,{configurable:!0,value:le})}},{"../internals/has-own-property":164,"../internals/object-define-property":198,"../internals/well-known-symbol":268}],235:[function(y,Te,be){var x=y("../internals/shared"),z=y("../internals/uid"),ie=x("keys");Te.exports=function(oe){return ie[oe]||(ie[oe]=z(oe))}},{"../internals/shared":237,"../internals/uid":263}],236:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/set-global"),ie="__core-js_shared__",oe=x[ie]||z(ie,{});Te.exports=oe},{"../internals/global":163,"../internals/set-global":232}],237:[function(y,Te,be){var x=y("../internals/is-pure"),z=y("../internals/shared-store");(Te.exports=function(ie,oe){return z[ie]||(z[ie]=oe!==void 0?oe:{})})("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,Te,be){var x=y("../internals/an-object"),z=y("../internals/a-constructor"),ie=y("../internals/well-known-symbol"),oe=ie("species");Te.exports=function(ee,le){var E=x(ee).constructor,ne;return E===void 0||(ne=x(E)[oe])==null?le:z(ne)}},{"../internals/a-constructor":96,"../internals/an-object":101,"../internals/well-known-symbol":268}],239:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/to-integer-or-infinity"),ie=y("../internals/to-string"),oe=y("../internals/require-object-coercible"),ee=x("".charAt),le=x("".charCodeAt),E=x("".slice),ne=function(te){return function(se,ue){var fe=ie(oe(se)),me=z(ue),ve=fe.length,he,ge;return me<0||me>=ve?te?"":void 0:(he=le(fe,me),he<55296||he>56319||me+1===ve||(ge=le(fe,me+1))<56320||ge>57343?te?ee(fe,me):he:te?E(fe,me,me+2):(he-55296<<10)+(ge-56320)+65536)}};Te.exports={codeAt:ne(!1),charAt:ne(!0)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-integer-or-infinity":248,"../internals/to-string":256}],240:[function(y,Te,be){var x=y("../internals/function-name").PROPER,z=y("../internals/fails"),ie=y("../internals/whitespaces"),oe="\u200B\x85\u180E";Te.exports=function(ee){return z(function(){return!!ie[ee]()||oe[ee]()!==oe||x&&ie[ee].name!==ee})}},{"../internals/fails":150,"../internals/function-name":156,"../internals/whitespaces":269}],241:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=y("../internals/require-object-coercible"),ie=y("../internals/to-string"),oe=y("../internals/whitespaces"),ee=x("".replace),le="["+oe+"]",E=RegExp("^"+le+le+"*"),ne=RegExp(le+le+"*$"),te=function(se){return function(ue){var fe=ie(z(ue));return se&1&&(fe=ee(fe,E,"")),se&2&&(fe=ee(fe,ne,"")),fe}};Te.exports={start:te(1),end:te(2),trim:te(3)}},{"../internals/function-uncurry-this":157,"../internals/require-object-coercible":230,"../internals/to-string":256,"../internals/whitespaces":269}],242:[function(y,Te,be){var x=y("../internals/function-call"),z=y("../internals/get-built-in"),ie=y("../internals/well-known-symbol"),oe=y("../internals/redefine");Te.exports=function(){var ee=z("Symbol"),le=ee&&ee.prototype,E=le&&le.valueOf,ne=ie("toPrimitive");le&&!le[ne]&&oe(le,ne,function(te){return x(E,this)})}},{"../internals/function-call":155,"../internals/get-built-in":158,"../internals/redefine":222,"../internals/well-known-symbol":268}],243:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/function-apply"),ie=y("../internals/function-bind-context"),oe=y("../internals/is-callable"),ee=y("../internals/has-own-property"),le=y("../internals/fails"),E=y("../internals/html"),ne=y("../internals/array-slice"),te=y("../internals/document-create-element"),se=y("../internals/validate-arguments-length"),ue=y("../internals/engine-is-ios"),fe=y("../internals/engine-is-node"),me=x.setImmediate,ve=x.clearImmediate,he=x.process,ge=x.Dispatch,xe=x.Function,Ce=x.MessageChannel,je=x.String,Ee=0,ce={},ye="onreadystatechange",we,De,Re,ke;try{we=x.location}catch(ut){}var _e=function(ut){if(ee(ce,ut)){var Ie=ce[ut];delete ce[ut],Ie()}},Ze=function(ut){return function(){_e(ut)}},Ve=function(ut){_e(ut.data)},Qe=function(ut){x.postMessage(je(ut),we.protocol+"//"+we.host)};(!me||!ve)&&(me=function(Ie){se(arguments.length,1);var We=oe(Ie)?Ie:xe(Ie),it=ne(arguments,1);return ce[++Ee]=function(){z(We,void 0,it)},De(Ee),Ee},ve=function(Ie){delete ce[Ie]},fe?De=function(ut){he.nextTick(Ze(ut))}:ge&&ge.now?De=function(ut){ge.now(Ze(ut))}:Ce&&!ue?(Re=new Ce,ke=Re.port2,Re.port1.onmessage=Ve,De=ie(ke.postMessage,ke)):x.addEventListener&&oe(x.postMessage)&&!x.importScripts&&we&&we.protocol!=="file:"&&!le(Qe)?(De=Qe,x.addEventListener("message",Ve,!1)):ye in te("script")?De=function(ut){E.appendChild(te("script"))[ye]=function(){E.removeChild(this),_e(ut)}}:De=function(ut){setTimeout(Ze(ut),0)}),Te.exports={set:me,clear:ve}},{"../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,Te,be){var x=y("../internals/function-uncurry-this");Te.exports=x(1 .valueOf)},{"../internals/function-uncurry-this":157}],245:[function(y,Te,be){var x=y("../internals/to-integer-or-infinity"),z=Math.max,ie=Math.min;Te.exports=function(oe,ee){var le=x(oe);return le<0?z(le+ee,0):ie(le,ee)}},{"../internals/to-integer-or-infinity":248}],246:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),ie=y("../internals/to-length"),oe=x.RangeError;Te.exports=function(ee){if(ee===void 0)return 0;var le=z(ee),E=ie(le);if(le!==E)throw oe("Wrong length or index");return E}},{"../internals/global":163,"../internals/to-integer-or-infinity":248,"../internals/to-length":249}],247:[function(y,Te,be){var x=y("../internals/indexed-object"),z=y("../internals/require-object-coercible");Te.exports=function(ie){return x(z(ie))}},{"../internals/indexed-object":170,"../internals/require-object-coercible":230}],248:[function(y,Te,be){var x=Math.ceil,z=Math.floor;Te.exports=function(ie){var oe=+ie;return oe!==oe||oe===0?0:(oe>0?z:x)(oe)}},{}],249:[function(y,Te,be){var x=y("../internals/to-integer-or-infinity"),z=Math.min;Te.exports=function(ie){return ie>0?z(x(ie),9007199254740991):0}},{"../internals/to-integer-or-infinity":248}],250:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/require-object-coercible"),ie=x.Object;Te.exports=function(oe){return ie(z(oe))}},{"../internals/global":163,"../internals/require-object-coercible":230}],251:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/to-positive-integer"),ie=x.RangeError;Te.exports=function(oe,ee){var le=z(oe);if(le%ee)throw ie("Wrong offset");return le}},{"../internals/global":163,"../internals/to-positive-integer":252}],252:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/to-integer-or-infinity"),ie=x.RangeError;Te.exports=function(oe){var ee=z(oe);if(ee<0)throw ie("The argument can't be less than 0");return ee}},{"../internals/global":163,"../internals/to-integer-or-infinity":248}],253:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/is-object"),oe=y("../internals/is-symbol"),ee=y("../internals/get-method"),le=y("../internals/ordinary-to-primitive"),E=y("../internals/well-known-symbol"),ne=x.TypeError,te=E("toPrimitive");Te.exports=function(se,ue){if(!ie(se)||oe(se))return se;var fe=ee(se,te),me;if(fe){if(ue===void 0&&(ue="default"),me=z(fe,se,ue),!ie(me)||oe(me))return me;throw ne("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),le(se,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,Te,be){var x=y("../internals/to-primitive"),z=y("../internals/is-symbol");Te.exports=function(ie){var oe=x(ie,"string");return z(oe)?oe:oe+""}},{"../internals/is-symbol":183,"../internals/to-primitive":253}],255:[function(y,Te,be){var x=y("../internals/well-known-symbol"),z=x("toStringTag"),ie={};ie[z]="z",Te.exports=String(ie)==="[object z]"},{"../internals/well-known-symbol":268}],256:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/classof"),ie=x.String;Te.exports=function(oe){if(z(oe)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ie(oe)}},{"../internals/classof":124,"../internals/global":163}],257:[function(y,Te,be){var x=y("../internals/global"),z=x.String;Te.exports=function(ie){try{return z(ie)}catch(oe){return"Object"}}},{"../internals/global":163}],258:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/function-call"),oe=y("../internals/descriptors"),ee=y("../internals/typed-array-constructors-require-wrappers"),le=y("../internals/array-buffer-view-core"),E=y("../internals/array-buffer"),ne=y("../internals/an-instance"),te=y("../internals/create-property-descriptor"),se=y("../internals/create-non-enumerable-property"),ue=y("../internals/is-integral-number"),fe=y("../internals/to-length"),me=y("../internals/to-index"),ve=y("../internals/to-offset"),he=y("../internals/to-property-key"),ge=y("../internals/has-own-property"),xe=y("../internals/classof"),Ce=y("../internals/is-object"),je=y("../internals/is-symbol"),Ee=y("../internals/object-create"),ce=y("../internals/object-is-prototype-of"),ye=y("../internals/object-set-prototype-of"),we=y("../internals/object-get-own-property-names").f,De=y("../internals/typed-array-from"),Re=y("../internals/array-iteration").forEach,ke=y("../internals/set-species"),_e=y("../internals/object-define-property"),Ze=y("../internals/object-get-own-property-descriptor"),Ve=y("../internals/internal-state"),Qe=y("../internals/inherit-if-required"),ut=Ve.get,Ie=Ve.set,We=_e.f,it=Ze.f,at=Math.round,nt=z.RangeError,Xe=E.ArrayBuffer,et=Xe.prototype,Ye=E.DataView,dt=le.NATIVE_ARRAY_BUFFER_VIEWS,tt=le.TYPED_ARRAY_CONSTRUCTOR,lt=le.TYPED_ARRAY_TAG,st=le.TypedArray,He=le.TypedArrayPrototype,Ne=le.aTypedArrayConstructor,Ge=le.isTypedArray,Me="BYTES_PER_ELEMENT",Ke="Wrong length",ct=function(ot,Oe){Ne(ot);for(var Se=0,pe=Oe.length,Be=new ot(pe);pe>Se;)Be[Se]=Oe[Se++];return Be},pt=function(ot,Oe){We(ot,Oe,{get:function(){return ut(this)[Oe]}})},rt=function(ot){var Oe;return ce(et,ot)||(Oe=xe(ot))=="ArrayBuffer"||Oe=="SharedArrayBuffer"},Ae=function(ot,Oe){return Ge(ot)&&!je(Oe)&&Oe in ot&&ue(+Oe)&&Oe>=0},Pe=function(Oe,Se){return Se=he(Se),Ae(Oe,Se)?te(2,Oe[Se]):it(Oe,Se)},Ue=function(Oe,Se,pe){return Se=he(Se),Ae(Oe,Se)&&Ce(pe)&&ge(pe,"value")&&!ge(pe,"get")&&!ge(pe,"set")&&!pe.configurable&&(!ge(pe,"writable")||pe.writable)&&(!ge(pe,"enumerable")||pe.enumerable)?(Oe[Se]=pe.value,Oe):We(Oe,Se,pe)};oe?(dt||(Ze.f=Pe,_e.f=Ue,pt(He,"buffer"),pt(He,"byteOffset"),pt(He,"byteLength"),pt(He,"length")),x({target:"Object",stat:!0,forced:!dt},{getOwnPropertyDescriptor:Pe,defineProperty:Ue}),Te.exports=function(ot,Oe,Se){var pe=ot.match(/\d+$/)[0]/8,Be=ot+(Se?"Clamped":"")+"Array",$e="get"+ot,Le="set"+ot,mt=z[Be],gt=mt,wt=gt&&gt.prototype,bt={},yt=function(jt,It){var vr=ut(jt);return vr.view[$e](It*pe+vr.byteOffset,!0)},Et=function(jt,It,vr){var Kt=ut(jt);Se&&(vr=(vr=at(vr))<0?0:vr>255?255:vr&255),Kt.view[Le](It*pe+Kt.byteOffset,vr,!0)},kt=function(jt,It){We(jt,It,{get:function(){return yt(this,It)},set:function(vr){return Et(this,It,vr)},enumerable:!0})};dt?ee&&(gt=Oe(function(jt,It,vr,Kt){return ne(jt,wt),Qe(function(){return Ce(It)?rt(It)?Kt!==void 0?new mt(It,ve(vr,pe),Kt):vr!==void 0?new mt(It,ve(vr,pe)):new mt(It):Ge(It)?ct(gt,It):ie(De,gt,It):new mt(me(It))}(),jt,gt)}),ye&&ye(gt,st),Re(we(mt),function(jt){jt in gt||se(gt,jt,mt[jt])}),gt.prototype=wt):(gt=Oe(function(jt,It,vr,Kt){ne(jt,wt);var Pr=0,qt=0,zr,Vr,Xr;if(!Ce(It))Xr=me(It),Vr=Xr*pe,zr=new Xe(Vr);else if(rt(It)){zr=It,qt=ve(vr,pe);var pn=It.byteLength;if(Kt===void 0){if(pn%pe||(Vr=pn-qt,Vr<0))throw nt(Ke)}else if(Vr=fe(Kt)*pe,Vr+qt>pn)throw nt(Ke);Xr=Vr/pe}else return Ge(It)?ct(gt,It):ie(De,gt,It);for(Ie(jt,{buffer:zr,byteOffset:qt,byteLength:Vr,length:Xr,view:new Ye(zr)});Pr<Xr;)kt(jt,Pr++)}),ye&&ye(gt,st),wt=gt.prototype=Ee(He)),wt.constructor!==gt&&se(wt,"constructor",gt),se(wt,tt,gt),lt&&se(wt,lt,Be),bt[Be]=gt,x({global:!0,forced:gt!=mt,sham:!dt},bt),Me in gt||se(gt,Me,pe),Me in wt||se(wt,Me,pe),ke(Be)}):Te.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,Te,be){var x=y("../internals/global"),z=y("../internals/fails"),ie=y("../internals/check-correctness-of-iteration"),oe=y("../internals/array-buffer-view-core").NATIVE_ARRAY_BUFFER_VIEWS,ee=x.ArrayBuffer,le=x.Int8Array;Te.exports=!oe||!z(function(){le(1)})||!z(function(){new le(-1)})||!ie(function(E){new le,new le(null),new le(1.5),new le(E)},!0)||z(function(){return new le(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,Te,be){var x=y("../internals/array-from-constructor-and-list"),z=y("../internals/typed-array-species-constructor");Te.exports=function(ie,oe){return x(z(ie),oe)}},{"../internals/array-from-constructor-and-list":108,"../internals/typed-array-species-constructor":262}],261:[function(y,Te,be){var x=y("../internals/function-bind-context"),z=y("../internals/function-call"),ie=y("../internals/a-constructor"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),le=y("../internals/get-iterator"),E=y("../internals/get-iterator-method"),ne=y("../internals/is-array-iterator-method"),te=y("../internals/array-buffer-view-core").aTypedArrayConstructor;Te.exports=function(ue){var fe=ie(this),me=oe(ue),ve=arguments.length,he=ve>1?arguments[1]:void 0,ge=he!==void 0,xe=E(me),Ce,je,Ee,ce,ye,we;if(xe&&!ne(xe))for(ye=le(me,xe),we=ye.next,me=[];!(ce=z(we,ye)).done;)me.push(ce.value);for(ge&&ve>2&&(he=x(he,arguments[2])),je=ee(me),Ee=new(te(fe))(je),Ce=0;je>Ce;Ce++)Ee[Ce]=ge?he(me[Ce],Ce):me[Ce];return Ee}},{"../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,Te,be){var x=y("../internals/array-buffer-view-core"),z=y("../internals/species-constructor"),ie=x.TYPED_ARRAY_CONSTRUCTOR,oe=x.aTypedArrayConstructor;Te.exports=function(ee){return oe(z(ee,ee[ie]))}},{"../internals/array-buffer-view-core":103,"../internals/species-constructor":238}],263:[function(y,Te,be){var x=y("../internals/function-uncurry-this"),z=0,ie=Math.random(),oe=x(1 .toString);Te.exports=function(ee){return"Symbol("+(ee===void 0?"":ee)+")_"+oe(++z+ie,36)}},{"../internals/function-uncurry-this":157}],264:[function(y,Te,be){var x=y("../internals/native-symbol");Te.exports=x&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},{"../internals/native-symbol":191}],265:[function(y,Te,be){var x=y("../internals/descriptors"),z=y("../internals/fails");Te.exports=x&&z(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},{"../internals/descriptors":134,"../internals/fails":150}],266:[function(y,Te,be){var x=y("../internals/global"),z=x.TypeError;Te.exports=function(ie,oe){if(ie<oe)throw z("Not enough arguments");return ie}},{"../internals/global":163}],267:[function(y,Te,be){var x=y("../internals/well-known-symbol");be.f=x},{"../internals/well-known-symbol":268}],268:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/shared"),ie=y("../internals/has-own-property"),oe=y("../internals/uid"),ee=y("../internals/native-symbol"),le=y("../internals/use-symbol-as-uid"),E=z("wks"),ne=x.Symbol,te=ne&&ne.for,se=le?ne:ne&&ne.withoutSetter||oe;Te.exports=function(ue){if(!ie(E,ue)||!(ee||typeof E[ue]=="string")){var fe="Symbol."+ue;ee&&ie(ne,ue)?E[ue]=ne[ue]:le&&te?E[ue]=te(fe):E[ue]=se(fe)}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,Te,be){Te.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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/array-buffer"),oe=y("../internals/set-species"),ee="ArrayBuffer",le=ie[ee],E=z[ee];x({global:!0,forced:E!==le},{ArrayBuffer:le}),oe(ee)},{"../internals/array-buffer":104,"../internals/export":149,"../internals/global":163,"../internals/set-species":233}],271:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),oe=y("../internals/array-buffer"),ee=y("../internals/an-object"),le=y("../internals/to-absolute-index"),E=y("../internals/to-length"),ne=y("../internals/species-constructor"),te=oe.ArrayBuffer,se=oe.DataView,ue=se.prototype,fe=z(te.prototype.slice),me=z(ue.getUint8),ve=z(ue.setUint8),he=ie(function(){return!new te(2).slice(1,void 0).byteLength});x({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:he},{slice:function(xe,Ce){if(fe&&Ce===void 0)return fe(ee(this),xe);for(var je=ee(this).byteLength,Ee=le(xe,je),ce=le(Ce===void 0?je:Ce,je),ye=new(ne(this,te))(E(ce-Ee)),we=new se(this),De=new se(ye),Re=0;Ee<ce;)ve(De,Re++,me(we,Ee++));return ye}})},{"../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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/fails"),oe=y("../internals/is-array"),ee=y("../internals/is-object"),le=y("../internals/to-object"),E=y("../internals/length-of-array-like"),ne=y("../internals/create-property"),te=y("../internals/array-species-create"),se=y("../internals/array-method-has-species-support"),ue=y("../internals/well-known-symbol"),fe=y("../internals/engine-v8-version"),me=ue("isConcatSpreadable"),ve=9007199254740991,he="Maximum allowed index exceeded",ge=z.TypeError,xe=fe>=51||!ie(function(){var ce=[];return ce[me]=!1,ce.concat()[0]!==ce}),Ce=se("concat"),je=function(ce){if(!ee(ce))return!1;var ye=ce[me];return ye!==void 0?!!ye:oe(ce)},Ee=!xe||!Ce;x({target:"Array",proto:!0,forced:Ee},{concat:function(ye){var we=le(this),De=te(we,0),Re=0,ke,_e,Ze,Ve,Qe;for(ke=-1,Ze=arguments.length;ke<Ze;ke++)if(Qe=ke===-1?we:arguments[ke],je(Qe)){if(Ve=E(Qe),Re+Ve>ve)throw ge(he);for(_e=0;_e<Ve;_e++,Re++)_e in Qe&&ne(De,Re,Qe[_e])}else{if(Re>=ve)throw ge(he);ne(De,Re++,Qe)}return De.length=Re,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,Te,be){var x=y("../internals/export"),z=y("../internals/array-fill"),ie=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{fill:z}),ie("fill")},{"../internals/add-to-unscopables":98,"../internals/array-fill":106,"../internals/export":149}],274:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").filter,ie=y("../internals/array-method-has-species-support"),oe=ie("filter");x({target:"Array",proto:!0,forced:!oe},{filter:function(le){return z(this,le,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],275:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").find,ie=y("../internals/add-to-unscopables"),oe="find",ee=!0;oe in[]&&Array(1)[oe](function(){ee=!1}),x({target:"Array",proto:!0,forced:ee},{find:function(E){return z(this,E,arguments.length>1?arguments[1]:void 0)}}),ie(oe)},{"../internals/add-to-unscopables":98,"../internals/array-iteration":111,"../internals/export":149}],276:[function(y,Te,be){var x=y("../internals/export"),z=y("../internals/array-from"),ie=y("../internals/check-correctness-of-iteration"),oe=!ie(function(ee){Array.from(ee)});x({target:"Array",stat:!0,forced:oe},{from:z})},{"../internals/array-from":109,"../internals/check-correctness-of-iteration":122,"../internals/export":149}],277:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/array-includes").includes,ie=y("../internals/add-to-unscopables");x({target:"Array",proto:!0},{includes:function(ee){return z(this,ee,arguments.length>1?arguments[1]:void 0)}}),ie("includes")},{"../internals/add-to-unscopables":98,"../internals/array-includes":110,"../internals/export":149}],278:[function(y,Te,be){"use strict";var x=y("../internals/to-indexed-object"),z=y("../internals/add-to-unscopables"),ie=y("../internals/iterators"),oe=y("../internals/internal-state"),ee=y("../internals/object-define-property").f,le=y("../internals/define-iterator"),E=y("../internals/is-pure"),ne=y("../internals/descriptors"),te="Array Iterator",se=oe.set,ue=oe.getterFor(te);Te.exports=le(Array,"Array",function(me,ve){se(this,{type:te,target:x(me),index:0,kind:ve})},function(){var me=ue(this),ve=me.target,he=me.kind,ge=me.index++;return!ve||ge>=ve.length?(me.target=void 0,{value:void 0,done:!0}):he=="keys"?{value:ge,done:!1}:he=="values"?{value:ve[ge],done:!1}:{value:[ge,ve[ge]],done:!1}},"values");var fe=ie.Arguments=ie.Array;if(z("keys"),z("values"),z("entries"),!E&&ne&&fe.name!=="values")try{ee(fe,"name",{value:"values"})}catch(me){}},{"../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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),ie=y("../internals/indexed-object"),oe=y("../internals/to-indexed-object"),ee=y("../internals/array-method-is-strict"),le=z([].join),E=ie!=Object,ne=ee("join",",");x({target:"Array",proto:!0,forced:E||!ne},{join:function(se){return le(oe(this),se===void 0?",":se)}})},{"../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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/array-iteration").map,ie=y("../internals/array-method-has-species-support"),oe=ie("map");x({target:"Array",proto:!0,forced:!oe},{map:function(le){return z(this,le,arguments.length>1?arguments[1]:void 0)}})},{"../internals/array-iteration":111,"../internals/array-method-has-species-support":113,"../internals/export":149}],281:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/is-array"),oe=y("../internals/is-constructor"),ee=y("../internals/is-object"),le=y("../internals/to-absolute-index"),E=y("../internals/length-of-array-like"),ne=y("../internals/to-indexed-object"),te=y("../internals/create-property"),se=y("../internals/well-known-symbol"),ue=y("../internals/array-method-has-species-support"),fe=y("../internals/array-slice"),me=ue("slice"),ve=se("species"),he=z.Array,ge=Math.max;x({target:"Array",proto:!0,forced:!me},{slice:function(Ce,je){var Ee=ne(this),ce=E(Ee),ye=le(Ce,ce),we=le(je===void 0?ce:je,ce),De,Re,ke;if(ie(Ee)&&(De=Ee.constructor,oe(De)&&(De===he||ie(De.prototype))?De=void 0:ee(De)&&(De=De[ve],De===null&&(De=void 0)),De===he||De===void 0))return fe(Ee,ye,we);for(Re=new(De===void 0?he:De)(ge(we-ye,0)),ke=0;ye<we;ye++,ke++)ye in Ee&&te(Re,ke,Ee[ye]);return Re.length=ke,Re}})},{"../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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),ie=y("../internals/a-callable"),oe=y("../internals/to-object"),ee=y("../internals/length-of-array-like"),le=y("../internals/to-string"),E=y("../internals/fails"),ne=y("../internals/array-sort"),te=y("../internals/array-method-is-strict"),se=y("../internals/engine-ff-version"),ue=y("../internals/engine-is-ie-or-edge"),fe=y("../internals/engine-v8-version"),me=y("../internals/engine-webkit-version"),ve=[],he=z(ve.sort),ge=z(ve.push),xe=E(function(){ve.sort(void 0)}),Ce=E(function(){ve.sort(null)}),je=te("sort"),Ee=!E(function(){if(fe)return fe<70;if(!(se&&se>3)){if(ue)return!0;if(me)return me<603;var we="",De,Re,ke,_e;for(De=65;De<76;De++){switch(Re=String.fromCharCode(De),De){case 66:case 69:case 70:case 72:ke=3;break;case 68:case 71:ke=4;break;default:ke=2}for(_e=0;_e<47;_e++)ve.push({k:Re+_e,v:ke})}for(ve.sort(function(Ze,Ve){return Ve.v-Ze.v}),_e=0;_e<ve.length;_e++)Re=ve[_e].k.charAt(0),we.charAt(we.length-1)!==Re&&(we+=Re);return we!=="DGBEFHACIJK"}}),ce=xe||!Ce||!je||!Ee,ye=function(we){return function(De,Re){return Re===void 0?-1:De===void 0?1:we!==void 0?+we(De,Re)||0:le(De)>le(Re)?1:-1}};x({target:"Array",proto:!0,forced:ce},{sort:function(De){De!==void 0&&ie(De);var Re=oe(this);if(Ee)return De===void 0?he(Re):he(Re,De);var ke=[],_e=ee(Re),Ze,Ve;for(Ve=0;Ve<_e;Ve++)Ve in Re&&ge(ke,Re[Ve]);for(ne(ke,ye(De)),Ze=ke.length,Ve=0;Ve<Ze;)Re[Ve]=ke[Ve++];for(;Ve<_e;)delete Re[Ve++];return Re}})},{"../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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/to-absolute-index"),oe=y("../internals/to-integer-or-infinity"),ee=y("../internals/length-of-array-like"),le=y("../internals/to-object"),E=y("../internals/array-species-create"),ne=y("../internals/create-property"),te=y("../internals/array-method-has-species-support"),se=te("splice"),ue=z.TypeError,fe=Math.max,me=Math.min,ve=9007199254740991,he="Maximum allowed length exceeded";x({target:"Array",proto:!0,forced:!se},{splice:function(xe,Ce){var je=le(this),Ee=ee(je),ce=ie(xe,Ee),ye=arguments.length,we,De,Re,ke,_e,Ze;if(ye===0?we=De=0:ye===1?(we=0,De=Ee-ce):(we=ye-2,De=me(fe(oe(Ce),0),Ee-ce)),Ee+we-De>ve)throw ue(he);for(Re=E(je,De),ke=0;ke<De;ke++)_e=ce+ke,_e in je&&ne(Re,ke,je[_e]);if(Re.length=De,we<De){for(ke=ce;ke<Ee-De;ke++)_e=ke+De,Ze=ke+we,_e in je?je[Ze]=je[_e]:delete je[Ze];for(ke=Ee;ke>Ee-De+we;ke--)delete je[ke-1]}else if(we>De)for(ke=Ee-De;ke>ce;ke--)_e=ke+De-1,Ze=ke+we-1,_e in je?je[Ze]=je[_e]:delete je[Ze];for(ke=0;ke<we;ke++)je[ke+ce]=arguments[ke+2];return je.length=Ee-De+we,Re}})},{"../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,Te,be){var x=y("../internals/descriptors"),z=y("../internals/function-name").EXISTS,ie=y("../internals/function-uncurry-this"),oe=y("../internals/object-define-property").f,ee=Function.prototype,le=ie(ee.toString),E=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ne=ie(E.exec),te="name";x&&!z&&oe(ee,te,{configurable:!0,get:function(){try{return ne(E,le(this))[1]}catch(se){return""}}})},{"../internals/descriptors":134,"../internals/function-name":156,"../internals/function-uncurry-this":157,"../internals/object-define-property":198}],285:[function(y,Te,be){var x=y("../internals/export"),z=y("../internals/get-built-in"),ie=y("../internals/function-apply"),oe=y("../internals/function-call"),ee=y("../internals/function-uncurry-this"),le=y("../internals/fails"),E=y("../internals/is-array"),ne=y("../internals/is-callable"),te=y("../internals/is-object"),se=y("../internals/is-symbol"),ue=y("../internals/array-slice"),fe=y("../internals/native-symbol"),me=z("JSON","stringify"),ve=ee(/./.exec),he=ee("".charAt),ge=ee("".charCodeAt),xe=ee("".replace),Ce=ee(1 .toString),je=/[\uD800-\uDFFF]/g,Ee=/^[\uD800-\uDBFF]$/,ce=/^[\uDC00-\uDFFF]$/,ye=!fe||le(function(){var ke=z("Symbol")();return me([ke])!="[null]"||me({a:ke})!="{}"||me(Object(ke))!="{}"}),we=le(function(){return me("\uDF06\uD834")!=='"\\udf06\\ud834"'||me("\uDEAD")!=='"\\udead"'}),De=function(ke,_e){var Ze=ue(arguments),Ve=_e;if(!(!te(_e)&&ke===void 0||se(ke)))return E(_e)||(_e=function(Qe,ut){if(ne(Ve)&&(ut=oe(Ve,this,Qe,ut)),!se(ut))return ut}),Ze[1]=_e,ie(me,null,Ze)},Re=function(ke,_e,Ze){var Ve=he(Ze,_e-1),Qe=he(Ze,_e+1);return ve(Ee,ke)&&!ve(ce,Qe)||ve(ce,ke)&&!ve(Ee,Ve)?"\\u"+Ce(ge(ke,0),16):ke};me&&x({target:"JSON",stat:!0,forced:ye||we},{stringify:function(_e,Ze,Ve){var Qe=ue(arguments),ut=ie(ye?De:me,null,Qe);return we&&typeof ut=="string"?xe(ut,je,Re):ut}})},{"../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,Te,be){"use strict";var x=y("../internals/descriptors"),z=y("../internals/global"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/is-forced"),ee=y("../internals/redefine"),le=y("../internals/has-own-property"),E=y("../internals/inherit-if-required"),ne=y("../internals/object-is-prototype-of"),te=y("../internals/is-symbol"),se=y("../internals/to-primitive"),ue=y("../internals/fails"),fe=y("../internals/object-get-own-property-names").f,me=y("../internals/object-get-own-property-descriptor").f,ve=y("../internals/object-define-property").f,he=y("../internals/this-number-value"),ge=y("../internals/string-trim").trim,xe="Number",Ce=z[xe],je=Ce.prototype,Ee=z.TypeError,ce=ie("".slice),ye=ie("".charCodeAt),we=function(Ve){var Qe=se(Ve,"number");return typeof Qe=="bigint"?Qe:De(Qe)},De=function(Ve){var Qe=se(Ve,"number"),ut,Ie,We,it,at,nt,Xe,et;if(te(Qe))throw Ee("Cannot convert a Symbol value to a number");if(typeof Qe=="string"&&Qe.length>2){if(Qe=ge(Qe),ut=ye(Qe,0),ut===43||ut===45){if(Ie=ye(Qe,2),Ie===88||Ie===120)return NaN}else if(ut===48){switch(ye(Qe,1)){case 66:case 98:We=2,it=49;break;case 79:case 111:We=8,it=55;break;default:return+Qe}for(at=ce(Qe,2),nt=at.length,Xe=0;Xe<nt;Xe++)if(et=ye(at,Xe),et<48||et>it)return NaN;return parseInt(at,We)}}return+Qe};if(oe(xe,!Ce(" 0o1")||!Ce("0b1")||Ce("+0x1"))){for(var Re=function(Qe){var ut=arguments.length<1?0:Ce(we(Qe)),Ie=this;return ne(je,Ie)&&ue(function(){he(Ie)})?E(Object(ut),Ie,Re):ut},ke=x?fe(Ce):"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(","),_e=0,Ze;ke.length>_e;_e++)le(Ce,Ze=ke[_e])&&!le(Re,Ze)&&ve(Re,Ze,me(Ce,Ze));Re.prototype=je,je.constructor=Re,ee(z,xe,Re)}},{"../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,Te,be){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,Te,be){var x=y("../internals/export"),z=y("../internals/object-to-array").entries;x({target:"Object",stat:!0},{entries:function(oe){return z(oe)}})},{"../internals/export":149,"../internals/object-to-array":209}],289:[function(y,Te,be){var x=y("../internals/export"),z=y("../internals/native-symbol"),ie=y("../internals/fails"),oe=y("../internals/object-get-own-property-symbols"),ee=y("../internals/to-object"),le=!z||ie(function(){oe.f(1)});x({target:"Object",stat:!0,forced:le},{getOwnPropertySymbols:function(ne){var te=oe.f;return te?te(ee(ne)):[]}})},{"../internals/export":149,"../internals/fails":150,"../internals/native-symbol":191,"../internals/object-get-own-property-symbols":202,"../internals/to-object":250}],290:[function(y,Te,be){var x=y("../internals/export"),z=y("../internals/to-object"),ie=y("../internals/object-keys"),oe=y("../internals/fails"),ee=oe(function(){ie(1)});x({target:"Object",stat:!0,forced:ee},{keys:function(E){return ie(z(E))}})},{"../internals/export":149,"../internals/fails":150,"../internals/object-keys":206,"../internals/to-object":250}],291:[function(y,Te,be){var x=y("../internals/to-string-tag-support"),z=y("../internals/redefine"),ie=y("../internals/object-to-string");x||z(Object.prototype,"toString",ie,{unsafe:!0})},{"../internals/object-to-string":210,"../internals/redefine":222,"../internals/to-string-tag-support":255}],292:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),ie=y("../internals/a-callable"),oe=y("../internals/new-promise-capability"),ee=y("../internals/perform"),le=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{all:function(te){var se=this,ue=oe.f(se),fe=ue.resolve,me=ue.reject,ve=ee(function(){var he=ie(se.resolve),ge=[],xe=0,Ce=1;le(te,function(je){var Ee=xe++,ce=!1;Ce++,z(he,se,je).then(function(ye){ce||(ce=!0,ge[Ee]=ye,--Ce||fe(ge))},me)}),--Ce||fe(ge)});return ve.error&&me(ve.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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),ie=y("../internals/promise-constructor-detection").CONSTRUCTOR,oe=y("../internals/promise-native-constructor"),ee=y("../internals/get-built-in"),le=y("../internals/is-callable"),E=y("../internals/redefine"),ne=oe&&oe.prototype;if(x({target:"Promise",proto:!0,forced:ie,real:!0},{catch:function(se){return this.then(void 0,se)}}),!z&&le(oe)){var te=ee("Promise").prototype.catch;ne.catch!==te&&E(ne,"catch",te,{unsafe:!0})}},{"../internals/export":149,"../internals/get-built-in":158,"../internals/is-callable":176,"../internals/is-pure":181,"../internals/promise-constructor-detection":215,"../internals/promise-native-constructor":216,"../internals/redefine":222}],294:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/is-pure"),ie=y("../internals/engine-is-node"),oe=y("../internals/global"),ee=y("../internals/function-call"),le=y("../internals/redefine"),E=y("../internals/redefine-all"),ne=y("../internals/object-set-prototype-of"),te=y("../internals/set-to-string-tag"),se=y("../internals/set-species"),ue=y("../internals/a-callable"),fe=y("../internals/is-callable"),me=y("../internals/is-object"),ve=y("../internals/an-instance"),he=y("../internals/species-constructor"),ge=y("../internals/task").set,xe=y("../internals/microtask"),Ce=y("../internals/host-report-errors"),je=y("../internals/perform"),Ee=y("../internals/queue"),ce=y("../internals/internal-state"),ye=y("../internals/promise-native-constructor"),we=y("../internals/promise-constructor-detection"),De=y("../internals/new-promise-capability"),Re="Promise",ke=we.CONSTRUCTOR,_e=we.REJECTION_EVENT,Ze=we.SUBCLASSING,Ve=ce.getterFor(Re),Qe=ce.set,ut=ye&&ye.prototype,Ie=ye,We=ut,it=oe.TypeError,at=oe.document,nt=oe.process,Xe=De.f,et=Xe,Ye=!!(at&&at.createEvent&&oe.dispatchEvent),dt="unhandledrejection",tt="rejectionhandled",lt=0,st=1,He=2,Ne=1,Ge=2,Me,Ke,ct,pt,rt=function(Le){var mt;return me(Le)&&fe(mt=Le.then)?mt:!1},Ae=function(Le,mt){var gt=mt.value,wt=mt.state==st,bt=wt?Le.ok:Le.fail,yt=Le.resolve,Et=Le.reject,kt=Le.domain,jt,It,vr;try{bt?(wt||(mt.rejection===Ge&&Se(mt),mt.rejection=Ne),bt===!0?jt=gt:(kt&&kt.enter(),jt=bt(gt),kt&&(kt.exit(),vr=!0)),jt===Le.promise?Et(it("Promise-chain cycle")):(It=rt(jt))?ee(It,jt,yt,Et):yt(jt)):Et(gt)}catch(Kt){kt&&!vr&&kt.exit(),Et(Kt)}},Pe=function(Le,mt){Le.notified||(Le.notified=!0,xe(function(){for(var gt=Le.reactions,wt;wt=gt.get();)Ae(wt,Le);Le.notified=!1,mt&&!Le.rejection&&ot(Le)}))},Ue=function(Le,mt,gt){var wt,bt;Ye?(wt=at.createEvent("Event"),wt.promise=mt,wt.reason=gt,wt.initEvent(Le,!1,!0),oe.dispatchEvent(wt)):wt={promise:mt,reason:gt},!_e&&(bt=oe["on"+Le])?bt(wt):Le===dt&&Ce("Unhandled promise rejection",gt)},ot=function(Le){ee(ge,oe,function(){var mt=Le.facade,gt=Le.value,wt=Oe(Le),bt;if(wt&&(bt=je(function(){ie?nt.emit("unhandledRejection",gt,mt):Ue(dt,mt,gt)}),Le.rejection=ie||Oe(Le)?Ge:Ne,bt.error))throw bt.value})},Oe=function(Le){return Le.rejection!==Ne&&!Le.parent},Se=function(Le){ee(ge,oe,function(){var mt=Le.facade;ie?nt.emit("rejectionHandled",mt):Ue(tt,mt,Le.value)})},pe=function(Le,mt,gt){return function(wt){Le(mt,wt,gt)}},Be=function(Le,mt,gt){Le.done||(Le.done=!0,gt&&(Le=gt),Le.value=mt,Le.state=He,Pe(Le,!0))},$e=function(Le,mt,gt){if(!Le.done){Le.done=!0,gt&&(Le=gt);try{if(Le.facade===mt)throw it("Promise can't be resolved itself");var wt=rt(mt);wt?xe(function(){var bt={done:!1};try{ee(wt,mt,pe($e,bt,Le),pe(Be,bt,Le))}catch(yt){Be(bt,yt,Le)}}):(Le.value=mt,Le.state=st,Pe(Le,!1))}catch(bt){Be({done:!1},bt,Le)}}};if(ke&&(Ie=function(mt){ve(this,We),ue(mt),ee(Me,this);var gt=Ve(this);try{mt(pe($e,gt),pe(Be,gt))}catch(wt){Be(gt,wt)}},We=Ie.prototype,Me=function(mt){Qe(this,{type:Re,done:!1,notified:!1,parent:!1,reactions:new Ee,rejection:!1,state:lt,value:void 0})},Me.prototype=E(We,{then:function(mt,gt){var wt=Ve(this),bt=Xe(he(this,Ie));return wt.parent=!0,bt.ok=fe(mt)?mt:!0,bt.fail=fe(gt)&&gt,bt.domain=ie?nt.domain:void 0,wt.state==lt?wt.reactions.add(bt):xe(function(){Ae(bt,wt)}),bt.promise}}),Ke=function(){var Le=new Me,mt=Ve(Le);this.promise=Le,this.resolve=pe($e,mt),this.reject=pe(Be,mt)},De.f=Xe=function(Le){return Le===Ie||Le===ct?new Ke(Le):et(Le)},!z&&fe(ye)&&ut!==Object.prototype)){pt=ut.then,Ze||le(ut,"then",function(mt,gt){var wt=this;return new Ie(function(bt,yt){ee(pt,wt,bt,yt)}).then(mt,gt)},{unsafe:!0});try{delete ut.constructor}catch(Le){}ne&&ne(ut,We)}x({global:!0,wrap:!0,forced:ke},{Promise:Ie}),te(Ie,Re,!1,!0),se(Re)},{"../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,Te,be){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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),ie=y("../internals/a-callable"),oe=y("../internals/new-promise-capability"),ee=y("../internals/perform"),le=y("../internals/iterate"),E=y("../internals/promise-statics-incorrect-iteration");x({target:"Promise",stat:!0,forced:E},{race:function(te){var se=this,ue=oe.f(se),fe=ue.reject,me=ee(function(){var ve=ie(se.resolve);le(te,function(he){z(ve,se,he).then(ue.resolve,fe)})});return me.error&&fe(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}],297:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/function-call"),ie=y("../internals/new-promise-capability"),oe=y("../internals/promise-constructor-detection").CONSTRUCTOR;x({target:"Promise",stat:!0,forced:oe},{reject:function(le){var E=ie.f(this);return z(E.reject,void 0,le),E.promise}})},{"../internals/export":149,"../internals/function-call":155,"../internals/new-promise-capability":193,"../internals/promise-constructor-detection":215}],298:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/get-built-in"),ie=y("../internals/is-pure"),oe=y("../internals/promise-native-constructor"),ee=y("../internals/promise-constructor-detection").CONSTRUCTOR,le=y("../internals/promise-resolve"),E=z("Promise"),ne=ie&&!ee;x({target:"Promise",stat:!0,forced:ie||ee},{resolve:function(se){return le(ne&&this===E?oe:this,se)}})},{"../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,Te,be){var x=y("../internals/descriptors"),z=y("../internals/global"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/is-forced"),ee=y("../internals/inherit-if-required"),le=y("../internals/create-non-enumerable-property"),E=y("../internals/object-get-own-property-names").f,ne=y("../internals/object-is-prototype-of"),te=y("../internals/is-regexp"),se=y("../internals/to-string"),ue=y("../internals/regexp-get-flags"),fe=y("../internals/regexp-sticky-helpers"),me=y("../internals/proxy-accessor"),ve=y("../internals/redefine"),he=y("../internals/fails"),ge=y("../internals/has-own-property"),xe=y("../internals/internal-state").enforce,Ce=y("../internals/set-species"),je=y("../internals/well-known-symbol"),Ee=y("../internals/regexp-unsupported-dot-all"),ce=y("../internals/regexp-unsupported-ncg"),ye=je("match"),we=z.RegExp,De=we.prototype,Re=z.SyntaxError,ke=ie(De.exec),_e=ie("".charAt),Ze=ie("".replace),Ve=ie("".indexOf),Qe=ie("".slice),ut=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ie=/a/g,We=/a/g,it=new we(Ie)!==Ie,at=fe.MISSED_STICKY,nt=fe.UNSUPPORTED_Y,Xe=x&&(!it||at||Ee||ce||he(function(){return We[ye]=!1,we(Ie)!=Ie||we(We)==We||we(Ie,"i")!="/a/i"})),et=function(st){for(var He=st.length,Ne=0,Ge="",Me=!1,Ke;Ne<=He;Ne++){if(Ke=_e(st,Ne),Ke==="\\"){Ge+=Ke+_e(st,++Ne);continue}!Me&&Ke==="."?Ge+="[\\s\\S]":(Ke==="["?Me=!0:Ke==="]"&&(Me=!1),Ge+=Ke)}return Ge},Ye=function(st){for(var He=st.length,Ne=0,Ge="",Me=[],Ke={},ct=!1,pt=!1,rt=0,Ae="",Pe;Ne<=He;Ne++){if(Pe=_e(st,Ne),Pe==="\\")Pe=Pe+_e(st,++Ne);else if(Pe==="]")ct=!1;else if(!ct)switch(!0){case Pe==="[":ct=!0;break;case Pe==="(":ke(ut,Qe(st,Ne+1))&&(Ne+=2,pt=!0),Ge+=Pe,rt++;continue;case(Pe===">"&&pt):if(Ae===""||ge(Ke,Ae))throw new Re("Invalid capture group name");Ke[Ae]=!0,Me[Me.length]=[Ae,rt],pt=!1,Ae="";continue}pt?Ae+=Pe:Ge+=Pe}return[Ge,Me]};if(oe("RegExp",Xe)){for(var dt=function(He,Ne){var Ge=ne(De,this),Me=te(He),Ke=Ne===void 0,ct=[],pt=He,rt,Ae,Pe,Ue,ot,Oe;if(!Ge&&Me&&Ke&&He.constructor===dt)return He;if((Me||ne(De,He))&&(He=He.source,Ke&&(Ne=ue(pt))),He=He===void 0?"":se(He),Ne=Ne===void 0?"":se(Ne),pt=He,Ee&&"dotAll"in Ie&&(Ae=!!Ne&&Ve(Ne,"s")>-1,Ae&&(Ne=Ze(Ne,/s/g,""))),rt=Ne,at&&"sticky"in Ie&&(Pe=!!Ne&&Ve(Ne,"y")>-1,Pe&&nt&&(Ne=Ze(Ne,/y/g,""))),ce&&(Ue=Ye(He),He=Ue[0],ct=Ue[1]),ot=ee(we(He,Ne),Ge?this:De,dt),(Ae||Pe||ct.length)&&(Oe=xe(ot),Ae&&(Oe.dotAll=!0,Oe.raw=dt(et(He),rt)),Pe&&(Oe.sticky=!0),ct.length&&(Oe.groups=ct)),He!==pt)try{le(ot,"source",pt===""?"(?:)":pt)}catch(Se){}return ot},tt=E(we),lt=0;tt.length>lt;)me(dt,we,tt[lt++]);De.constructor=dt,dt.prototype=De,ve(z,"RegExp",dt)}Ce("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,Te,be){"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,Te,be){"use strict";var x=y("../internals/function-name").PROPER,z=y("../internals/redefine"),ie=y("../internals/an-object"),oe=y("../internals/to-string"),ee=y("../internals/fails"),le=y("../internals/regexp-get-flags"),E="toString",ne=RegExp.prototype,te=ne[E],se=ee(function(){return te.call({source:"a",flags:"b"})!="/a/b"}),ue=x&&te.name!=E;(se||ue)&&z(RegExp.prototype,E,function(){var me=ie(this),ve=oe(me.source),he=oe(le(me));return"/"+ve+"/"+he},{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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/function-uncurry-this"),ie=y("../internals/not-a-regexp"),oe=y("../internals/require-object-coercible"),ee=y("../internals/to-string"),le=y("../internals/correct-is-regexp-logic"),E=z("".indexOf);x({target:"String",proto:!0,forced:!le("includes")},{includes:function(te){return!!~E(ee(oe(this)),ee(ie(te)),arguments.length>1?arguments[1]:void 0)}})},{"../internals/correct-is-regexp-logic":126,"../internals/export":149,"../internals/function-uncurry-this":157,"../internals/not-a-regexp":194,"../internals/require-object-coercible":230,"../internals/to-string":256}],303:[function(y,Te,be){"use strict";var x=y("../internals/string-multibyte").charAt,z=y("../internals/to-string"),ie=y("../internals/internal-state"),oe=y("../internals/define-iterator"),ee="String Iterator",le=ie.set,E=ie.getterFor(ee);oe(String,"String",function(ne){le(this,{type:ee,string:z(ne),index:0})},function(){var te=E(this),se=te.string,ue=te.index,fe;return ue>=se.length?{value:void 0,done:!0}:(fe=x(se,ue),te.index+=fe.length,{value:fe,done:!1})})},{"../internals/define-iterator":132,"../internals/internal-state":173,"../internals/string-multibyte":239,"../internals/to-string":256}],304:[function(y,Te,be){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),ie=y("../internals/an-object"),oe=y("../internals/to-length"),ee=y("../internals/to-string"),le=y("../internals/require-object-coercible"),E=y("../internals/get-method"),ne=y("../internals/advance-string-index"),te=y("../internals/regexp-exec-abstract");z("match",function(se,ue,fe){return[function(ve){var he=le(this),ge=ve==null?void 0:E(ve,se);return ge?x(ge,ve,he):new RegExp(ve)[se](ee(he))},function(me){var ve=ie(this),he=ee(me),ge=fe(ue,ve,he);if(ge.done)return ge.value;if(!ve.global)return te(ve,he);var xe=ve.unicode;ve.lastIndex=0;for(var Ce=[],je=0,Ee;(Ee=te(ve,he))!==null;){var ce=ee(Ee[0]);Ce[je]=ce,ce===""&&(ve.lastIndex=ne(he,oe(ve.lastIndex),xe)),je++}return je===0?null:Ce}]})},{"../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,Te,be){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/fails"),le=y("../internals/an-object"),E=y("../internals/is-callable"),ne=y("../internals/to-integer-or-infinity"),te=y("../internals/to-length"),se=y("../internals/to-string"),ue=y("../internals/require-object-coercible"),fe=y("../internals/advance-string-index"),me=y("../internals/get-method"),ve=y("../internals/get-substitution"),he=y("../internals/regexp-exec-abstract"),ge=y("../internals/well-known-symbol"),xe=ge("replace"),Ce=Math.max,je=Math.min,Ee=ie([].concat),ce=ie([].push),ye=ie("".indexOf),we=ie("".slice),De=function(Ze){return Ze===void 0?Ze:String(Ze)},Re=function(){return"a".replace(/./,"$0")==="$0"}(),ke=function(){return/./[xe]?/./[xe]("a","$0")==="":!1}(),_e=!ee(function(){var Ze=/./;return Ze.exec=function(){var Ve=[];return Ve.groups={a:"7"},Ve},"".replace(Ze,"$<a>")!=="7"});oe("replace",function(Ze,Ve,Qe){var ut=ke?"$":"$0";return[function(We,it){var at=ue(this),nt=We==null?void 0:me(We,xe);return nt?z(nt,We,at,it):z(Ve,se(at),We,it)},function(Ie,We){var it=le(this),at=se(Ie);if(typeof We=="string"&&ye(We,ut)===-1&&ye(We,"$<")===-1){var nt=Qe(Ve,it,at,We);if(nt.done)return nt.value}var Xe=E(We);Xe||(We=se(We));var et=it.global;if(et){var Ye=it.unicode;it.lastIndex=0}for(var dt=[];;){var tt=he(it,at);if(tt===null||(ce(dt,tt),!et))break;var lt=se(tt[0]);lt===""&&(it.lastIndex=fe(at,te(it.lastIndex),Ye))}for(var st="",He=0,Ne=0;Ne<dt.length;Ne++){tt=dt[Ne];for(var Ge=se(tt[0]),Me=Ce(je(ne(tt.index),at.length),0),Ke=[],ct=1;ct<tt.length;ct++)ce(Ke,De(tt[ct]));var pt=tt.groups;if(Xe){var rt=Ee([Ge],Ke,Me,at);pt!==void 0&&ce(rt,pt);var Ae=se(x(We,void 0,rt))}else Ae=ve(Ge,at,Me,Ke,pt,We);Me>=He&&(st+=we(at,He,Me)+Ae,He=Me+Ge.length)}return st+we(at,He)}]},!_e||!Re||ke)},{"../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,Te,be){"use strict";var x=y("../internals/function-call"),z=y("../internals/fix-regexp-well-known-symbol-logic"),ie=y("../internals/an-object"),oe=y("../internals/require-object-coercible"),ee=y("../internals/same-value"),le=y("../internals/to-string"),E=y("../internals/get-method"),ne=y("../internals/regexp-exec-abstract");z("search",function(te,se,ue){return[function(me){var ve=oe(this),he=me==null?void 0:E(me,te);return he?x(he,me,ve):new RegExp(me)[te](le(ve))},function(fe){var me=ie(this),ve=le(fe),he=ue(se,me,ve);if(he.done)return he.value;var ge=me.lastIndex;ee(ge,0)||(me.lastIndex=0);var xe=ne(me,ve);return ee(me.lastIndex,ge)||(me.lastIndex=ge),xe===null?-1:xe.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,Te,be){"use strict";var x=y("../internals/function-apply"),z=y("../internals/function-call"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/fix-regexp-well-known-symbol-logic"),ee=y("../internals/is-regexp"),le=y("../internals/an-object"),E=y("../internals/require-object-coercible"),ne=y("../internals/species-constructor"),te=y("../internals/advance-string-index"),se=y("../internals/to-length"),ue=y("../internals/to-string"),fe=y("../internals/get-method"),me=y("../internals/array-slice-simple"),ve=y("../internals/regexp-exec-abstract"),he=y("../internals/regexp-exec"),ge=y("../internals/regexp-sticky-helpers"),xe=y("../internals/fails"),Ce=ge.UNSUPPORTED_Y,je=4294967295,Ee=Math.min,ce=[].push,ye=ie(/./.exec),we=ie(ce),De=ie("".slice),Re=!xe(function(){var ke=/(?:)/,_e=ke.exec;ke.exec=function(){return _e.apply(this,arguments)};var Ze="ab".split(ke);return Ze.length!==2||Ze[0]!=="a"||Ze[1]!=="b"});oe("split",function(ke,_e,Ze){var Ve;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?Ve=function(Qe,ut){var Ie=ue(E(this)),We=ut===void 0?je:ut>>>0;if(We===0)return[];if(Qe===void 0)return[Ie];if(!ee(Qe))return z(_e,Ie,Qe,We);for(var it=[],at=(Qe.ignoreCase?"i":"")+(Qe.multiline?"m":"")+(Qe.unicode?"u":"")+(Qe.sticky?"y":""),nt=0,Xe=new RegExp(Qe.source,at+"g"),et,Ye,dt;(et=z(he,Xe,Ie))&&(Ye=Xe.lastIndex,!(Ye>nt&&(we(it,De(Ie,nt,et.index)),et.length>1&&et.index<Ie.length&&x(ce,it,me(et,1)),dt=et[0].length,nt=Ye,it.length>=We)));)Xe.lastIndex===et.index&&Xe.lastIndex++;return nt===Ie.length?(dt||!ye(Xe,""))&&we(it,""):we(it,De(Ie,nt)),it.length>We?me(it,0,We):it}:"0".split(void 0,0).length?Ve=function(Qe,ut){return Qe===void 0&&ut===0?[]:z(_e,this,Qe,ut)}:Ve=_e,[function(ut,Ie){var We=E(this),it=ut==null?void 0:fe(ut,ke);return it?z(it,ut,We,Ie):z(Ve,ue(We),ut,Ie)},function(Qe,ut){var Ie=le(this),We=ue(Qe),it=Ze(Ve,Ie,We,ut,Ve!==_e);if(it.done)return it.value;var at=ne(Ie,RegExp),nt=Ie.unicode,Xe=(Ie.ignoreCase?"i":"")+(Ie.multiline?"m":"")+(Ie.unicode?"u":"")+(Ce?"g":"y"),et=new at(Ce?"^(?:"+Ie.source+")":Ie,Xe),Ye=ut===void 0?je:ut>>>0;if(Ye===0)return[];if(We.length===0)return ve(et,We)===null?[We]:[];for(var dt=0,tt=0,lt=[];tt<We.length;){et.lastIndex=Ce?0:tt;var st=ve(et,Ce?De(We,tt):We),He;if(st===null||(He=Ee(se(et.lastIndex+(Ce?tt:0)),We.length))===dt)tt=te(We,tt,nt);else{if(we(lt,De(We,dt,tt)),lt.length===Ye)return lt;for(var Ne=1;Ne<=st.length-1;Ne++)if(we(lt,st[Ne]),lt.length===Ye)return lt;tt=dt=He}}return we(lt,De(We,dt)),lt}]},!Re,Ce)},{"../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,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/string-trim").trim,ie=y("../internals/string-trim-forced");x({target:"String",proto:!0,forced:ie("trim")},{trim:function(){return z(this)}})},{"../internals/export":149,"../internals/string-trim":241,"../internals/string-trim-forced":240}],309:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/global"),ie=y("../internals/function-call"),oe=y("../internals/function-uncurry-this"),ee=y("../internals/is-pure"),le=y("../internals/descriptors"),E=y("../internals/native-symbol"),ne=y("../internals/fails"),te=y("../internals/has-own-property"),se=y("../internals/object-is-prototype-of"),ue=y("../internals/an-object"),fe=y("../internals/to-indexed-object"),me=y("../internals/to-property-key"),ve=y("../internals/to-string"),he=y("../internals/create-property-descriptor"),ge=y("../internals/object-create"),xe=y("../internals/object-keys"),Ce=y("../internals/object-get-own-property-names"),je=y("../internals/object-get-own-property-names-external"),Ee=y("../internals/object-get-own-property-symbols"),ce=y("../internals/object-get-own-property-descriptor"),ye=y("../internals/object-define-property"),we=y("../internals/object-define-properties"),De=y("../internals/object-property-is-enumerable"),Re=y("../internals/redefine"),ke=y("../internals/shared"),_e=y("../internals/shared-key"),Ze=y("../internals/hidden-keys"),Ve=y("../internals/uid"),Qe=y("../internals/well-known-symbol"),ut=y("../internals/well-known-symbol-wrapped"),Ie=y("../internals/define-well-known-symbol"),We=y("../internals/symbol-define-to-primitive"),it=y("../internals/set-to-string-tag"),at=y("../internals/internal-state"),nt=y("../internals/array-iteration").forEach,Xe=_e("hidden"),et="Symbol",Ye="prototype",dt=at.set,tt=at.getterFor(et),lt=Object[Ye],st=z.Symbol,He=st&&st[Ye],Ne=z.TypeError,Ge=z.QObject,Me=ce.f,Ke=ye.f,ct=je.f,pt=De.f,rt=oe([].push),Ae=ke("symbols"),Pe=ke("op-symbols"),Ue=ke("wks"),ot=!Ge||!Ge[Ye]||!Ge[Ye].findChild,Oe=le&&ne(function(){return ge(Ke({},"a",{get:function(){return Ke(this,"a",{value:7}).a}})).a!=7})?function(bt,yt,Et){var kt=Me(lt,yt);kt&&delete lt[yt],Ke(bt,yt,Et),kt&&bt!==lt&&Ke(lt,yt,kt)}:Ke,Se=function(bt,yt){var Et=Ae[bt]=ge(He);return dt(Et,{type:et,tag:bt,description:yt}),le||(Et.description=yt),Et},pe=function(yt,Et,kt){yt===lt&&pe(Pe,Et,kt),ue(yt);var jt=me(Et);return ue(kt),te(Ae,jt)?(kt.enumerable?(te(yt,Xe)&&yt[Xe][jt]&&(yt[Xe][jt]=!1),kt=ge(kt,{enumerable:he(0,!1)})):(te(yt,Xe)||Ke(yt,Xe,he(1,{})),yt[Xe][jt]=!0),Oe(yt,jt,kt)):Ke(yt,jt,kt)},Be=function(yt,Et){ue(yt);var kt=fe(Et),jt=xe(kt).concat(wt(kt));return nt(jt,function(It){(!le||ie(Le,kt,It))&&pe(yt,It,kt[It])}),yt},$e=function(yt,Et){return Et===void 0?ge(yt):Be(ge(yt),Et)},Le=function(yt){var Et=me(yt),kt=ie(pt,this,Et);return this===lt&&te(Ae,Et)&&!te(Pe,Et)?!1:kt||!te(this,Et)||!te(Ae,Et)||te(this,Xe)&&this[Xe][Et]?kt:!0},mt=function(yt,Et){var kt=fe(yt),jt=me(Et);if(!(kt===lt&&te(Ae,jt)&&!te(Pe,jt))){var It=Me(kt,jt);return It&&te(Ae,jt)&&!(te(kt,Xe)&&kt[Xe][jt])&&(It.enumerable=!0),It}},gt=function(yt){var Et=ct(fe(yt)),kt=[];return nt(Et,function(jt){!te(Ae,jt)&&!te(Ze,jt)&&rt(kt,jt)}),kt},wt=function(bt){var yt=bt===lt,Et=ct(yt?Pe:fe(bt)),kt=[];return nt(Et,function(jt){te(Ae,jt)&&(!yt||te(lt,jt))&&rt(kt,Ae[jt])}),kt};E||(st=function(){if(se(He,this))throw Ne("Symbol is not a constructor");var yt=!arguments.length||arguments[0]===void 0?void 0:ve(arguments[0]),Et=Ve(yt),kt=function(jt){this===lt&&ie(kt,Pe,jt),te(this,Xe)&&te(this[Xe],Et)&&(this[Xe][Et]=!1),Oe(this,Et,he(1,jt))};return le&&ot&&Oe(lt,Et,{configurable:!0,set:kt}),Se(Et,yt)},He=st[Ye],Re(He,"toString",function(){return tt(this).tag}),Re(st,"withoutSetter",function(bt){return Se(Ve(bt),bt)}),De.f=Le,ye.f=pe,we.f=Be,ce.f=mt,Ce.f=je.f=gt,Ee.f=wt,ut.f=function(bt){return Se(Qe(bt),bt)},le&&(Ke(He,"description",{configurable:!0,get:function(){return tt(this).description}}),ee||Re(lt,"propertyIsEnumerable",Le,{unsafe:!0}))),x({global:!0,wrap:!0,forced:!E,sham:!E},{Symbol:st}),nt(xe(Ue),function(bt){Ie(bt)}),x({target:et,stat:!0,forced:!E},{useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),x({target:"Object",stat:!0,forced:!E,sham:!le},{create:$e,defineProperty:pe,defineProperties:Be,getOwnPropertyDescriptor:mt}),x({target:"Object",stat:!0,forced:!E},{getOwnPropertyNames:gt}),We(),it(st,et),Ze[Xe]=!0},{"../internals/an-object":101,"../internals/array-iteration":111,"../internals/create-property-descriptor":130,"../internals/define-well-known-symbol":133,"../internals/descriptors":134,"../internals/export":149,"../internals/fails":150,"../internals/function-call":155,"../internals/function-uncurry-this":157,"../internals/global":163,"../internals/has-own-property":164,"../internals/hidden-keys":165,"../internals/internal-state":173,"../internals/is-pure":181,"../internals/native-symbol":191,"../internals/object-create":196,"../internals/object-define-properties":197,"../internals/object-define-property":198,"../internals/object-get-own-property-descriptor":199,"../internals/object-get-own-property-names":201,"../internals/object-get-own-property-names-external":200,"../internals/object-get-own-property-symbols":202,"../internals/object-is-prototype-of":204,"../internals/object-keys":206,"../internals/object-property-is-enumerable":207,"../internals/redefine":222,"../internals/set-to-string-tag":234,"../internals/shared":237,"../internals/shared-key":235,"../internals/symbol-define-to-primitive":242,"../internals/to-indexed-object":247,"../internals/to-property-key":254,"../internals/to-string":256,"../internals/uid":263,"../internals/well-known-symbol":268,"../internals/well-known-symbol-wrapped":267}],310:[function(y,Te,be){"use strict";var x=y("../internals/export"),z=y("../internals/descriptors"),ie=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ee=y("../internals/has-own-property"),le=y("../internals/is-callable"),E=y("../internals/object-is-prototype-of"),ne=y("../internals/to-string"),te=y("../internals/object-define-property").f,se=y("../internals/copy-constructor-properties"),ue=ie.Symbol,fe=ue&&ue.prototype;if(z&&le(ue)&&(!("description"in fe)||ue().description!==void 0)){var me={},ve=function(){var ye=arguments.length<1||arguments[0]===void 0?void 0:ne(arguments[0]),we=E(fe,this)?new ue(ye):ye===void 0?ue():ue(ye);return ye===""&&(me[we]=!0),we};se(ve,ue),ve.prototype=fe,fe.constructor=ve;var he=String(ue("test"))=="Symbol(test)",ge=oe(fe.toString),xe=oe(fe.valueOf),Ce=/^Symbol\((.*)\)[^)]+$/,je=oe("".replace),Ee=oe("".slice);te(fe,"description",{configurable:!0,get:function(){var ye=xe(this),we=ge(ye);if(ee(me,ye))return"";var De=he?Ee(we,7,-1):je(we,Ce,"$1");return De===""?void 0:De}}),x({global:!0,forced:!0},{Symbol:ve})}},{"../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,Te,be){var x=y("../internals/export"),z=y("../internals/get-built-in"),ie=y("../internals/has-own-property"),oe=y("../internals/to-string"),ee=y("../internals/shared"),le=y("../internals/native-symbol-registry"),E=ee("string-to-symbol-registry"),ne=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!le},{for:function(te){var se=oe(te);if(ie(E,se))return E[se];var ue=z("Symbol")(se);return E[se]=ue,ne[ue]=se,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,Te,be){var x=y("../internals/define-well-known-symbol");x("iterator")},{"../internals/define-well-known-symbol":133}],313:[function(y,Te,be){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,Te,be){var x=y("../internals/export"),z=y("../internals/has-own-property"),ie=y("../internals/is-symbol"),oe=y("../internals/try-to-string"),ee=y("../internals/shared"),le=y("../internals/native-symbol-registry"),E=ee("symbol-to-string-registry");x({target:"Symbol",stat:!0,forced:!le},{keyFor:function(te){if(!ie(te))throw TypeError(oe(te)+" is not a symbol");if(z(E,te))return E[te]}})},{"../internals/export":149,"../internals/has-own-property":164,"../internals/is-symbol":183,"../internals/native-symbol-registry":190,"../internals/shared":237,"../internals/try-to-string":257}],315:[function(y,Te,be){"use strict";var x=y("../internals/function-uncurry-this"),z=y("../internals/array-buffer-view-core"),ie=y("../internals/array-copy-within"),oe=x(ie),ee=z.aTypedArray,le=z.exportTypedArrayMethod;le("copyWithin",function(ne,te){return oe(ee(this),ne,te,arguments.length>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-copy-within":105,"../internals/function-uncurry-this":157}],316:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").every,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("every",function(le){return z(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],317:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-call"),ie=y("../internals/array-fill"),oe=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("fill",function(E){var ne=arguments.length;return z(ie,oe(this),E,ne>1?arguments[1]:void 0,ne>2?arguments[2]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-fill":106,"../internals/function-call":155}],318:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").filter,ie=y("../internals/typed-array-from-species-and-list"),oe=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("filter",function(E){var ne=z(oe(this),E,arguments.length>1?arguments[1]:void 0);return ie(this,ne)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-from-species-and-list":260}],319:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").findIndex,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("findIndex",function(le){return z(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],320:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").find,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("find",function(le){return z(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],321:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").forEach,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("forEach",function(le){z(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],322:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").includes,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("includes",function(le){return z(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],323:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-includes").indexOf,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("indexOf",function(le){return z(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-includes":110}],324:[function(y,Te,be){"use strict";var x=y("../internals/global"),z=y("../internals/fails"),ie=y("../internals/function-uncurry-this"),oe=y("../internals/array-buffer-view-core"),ee=y("../modules/es.array.iterator"),le=y("../internals/well-known-symbol"),E=le("iterator"),ne=x.Uint8Array,te=ie(ee.values),se=ie(ee.keys),ue=ie(ee.entries),fe=oe.aTypedArray,me=oe.exportTypedArrayMethod,ve=ne&&ne.prototype,he=!z(function(){ve[E].call([1])}),ge=!!ve&&ve.values&&ve[E]===ve.values&&ve.values.name==="values",xe=function(){return te(fe(this))};me("entries",function(){return ue(fe(this))},he),me("keys",function(){return se(fe(this))},he),me("values",xe,he||!ge,{name:"values"}),me(E,xe,he||!ge,{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,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-uncurry-this"),ie=x.aTypedArray,oe=x.exportTypedArrayMethod,ee=z([].join);oe("join",function(E){return ee(ie(this),E)})},{"../internals/array-buffer-view-core":103,"../internals/function-uncurry-this":157}],326:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/function-apply"),ie=y("../internals/array-last-index-of"),oe=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("lastIndexOf",function(E){var ne=arguments.length;return z(ie,oe(this),ne>1?[E,arguments[1]]:[E])})},{"../internals/array-buffer-view-core":103,"../internals/array-last-index-of":112,"../internals/function-apply":152}],327:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").map,ie=y("../internals/typed-array-species-constructor"),oe=x.aTypedArray,ee=x.exportTypedArrayMethod;ee("map",function(E){return z(oe(this),E,arguments.length>1?arguments[1]:void 0,function(ne,te){return new(ie(ne))(te)})})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111,"../internals/typed-array-species-constructor":262}],328:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").right,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("reduceRight",function(le){var E=arguments.length;return z(ie(this),le,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],329:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-reduce").left,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("reduce",function(le){var E=arguments.length;return z(ie(this),le,E,E>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-reduce":115}],330:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=x.aTypedArray,ie=x.exportTypedArrayMethod,oe=Math.floor;ie("reverse",function(){for(var le=this,E=z(le).length,ne=oe(E/2),te=0,se;te<ne;)se=le[te],le[te++]=le[--E],le[E]=se;return le})},{"../internals/array-buffer-view-core":103}],331:[function(y,Te,be){"use strict";var x=y("../internals/global"),z=y("../internals/function-call"),ie=y("../internals/array-buffer-view-core"),oe=y("../internals/length-of-array-like"),ee=y("../internals/to-offset"),le=y("../internals/to-object"),E=y("../internals/fails"),ne=x.RangeError,te=x.Int8Array,se=te&&te.prototype,ue=se&&se.set,fe=ie.aTypedArray,me=ie.exportTypedArrayMethod,ve=!E(function(){var ge=new Uint8ClampedArray(2);return z(ue,ge,{length:1,0:3},1),ge[1]!==3}),he=ve&&ie.NATIVE_ARRAY_BUFFER_VIEWS&&E(function(){var ge=new te(2);return ge.set(1),ge.set("2",1),ge[0]!==0||ge[1]!==2});me("set",function(xe){fe(this);var Ce=ee(arguments.length>1?arguments[1]:void 0,1),je=le(xe);if(ve)return z(ue,this,je,Ce);var Ee=this.length,ce=oe(je),ye=0;if(ce+Ce>Ee)throw ne("Wrong length");for(;ye<ce;)this[Ce+ye]=je[ye++]},!ve||he)},{"../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,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/typed-array-species-constructor"),ie=y("../internals/fails"),oe=y("../internals/array-slice"),ee=x.aTypedArray,le=x.exportTypedArrayMethod,E=ie(function(){new Int8Array(1).slice()});le("slice",function(te,se){for(var ue=oe(ee(this),te,se),fe=z(this),me=0,ve=ue.length,he=new fe(ve);ve>me;)he[me]=ue[me++];return he},E)},{"../internals/array-buffer-view-core":103,"../internals/array-slice":117,"../internals/fails":150,"../internals/typed-array-species-constructor":262}],333:[function(y,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/array-iteration").some,ie=x.aTypedArray,oe=x.exportTypedArrayMethod;oe("some",function(le){return z(ie(this),le,arguments.length>1?arguments[1]:void 0)})},{"../internals/array-buffer-view-core":103,"../internals/array-iteration":111}],334:[function(y,Te,be){"use strict";var x=y("../internals/global"),z=y("../internals/function-uncurry-this"),ie=y("../internals/fails"),oe=y("../internals/a-callable"),ee=y("../internals/array-sort"),le=y("../internals/array-buffer-view-core"),E=y("../internals/engine-ff-version"),ne=y("../internals/engine-is-ie-or-edge"),te=y("../internals/engine-v8-version"),se=y("../internals/engine-webkit-version"),ue=le.aTypedArray,fe=le.exportTypedArrayMethod,me=x.Uint16Array,ve=me&&z(me.prototype.sort),he=!!ve&&!(ie(function(){ve(new me(2),null)})&&ie(function(){ve(new me(2),{})})),ge=!!ve&&!ie(function(){if(te)return te<74;if(E)return E<67;if(ne)return!0;if(se)return se<602;var Ce=new me(516),je=Array(516),Ee,ce;for(Ee=0;Ee<516;Ee++)ce=Ee%4,Ce[Ee]=515-Ee,je[Ee]=Ee-2*ce+3;for(ve(Ce,function(ye,we){return(ye/4|0)-(we/4|0)}),Ee=0;Ee<516;Ee++)if(Ce[Ee]!==je[Ee])return!0}),xe=function(Ce){return function(je,Ee){return Ce!==void 0?+Ce(je,Ee)||0:Ee!==Ee?-1:je!==je?1:je===0&&Ee===0?1/je>0&&1/Ee<0?1:-1:je>Ee}};fe("sort",function(je){return je!==void 0&&oe(je),ge?ve(this,je):ee(ue(this),xe(je))},!ge||he)},{"../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,Te,be){"use strict";var x=y("../internals/array-buffer-view-core"),z=y("../internals/to-length"),ie=y("../internals/to-absolute-index"),oe=y("../internals/typed-array-species-constructor"),ee=x.aTypedArray,le=x.exportTypedArrayMethod;le("subarray",function(ne,te){var se=ee(this),ue=se.length,fe=ie(ne,ue),me=oe(se);return new me(se.buffer,se.byteOffset+fe*se.BYTES_PER_ELEMENT,z((te===void 0?ue:ie(te,ue))-fe))})},{"../internals/array-buffer-view-core":103,"../internals/to-absolute-index":245,"../internals/to-length":249,"../internals/typed-array-species-constructor":262}],336:[function(y,Te,be){"use strict";var x=y("../internals/global"),z=y("../internals/function-apply"),ie=y("../internals/array-buffer-view-core"),oe=y("../internals/fails"),ee=y("../internals/array-slice"),le=x.Int8Array,E=ie.aTypedArray,ne=ie.exportTypedArrayMethod,te=[].toLocaleString,se=!!le&&oe(function(){te.call(new le(1))}),ue=oe(function(){return[1,2].toLocaleString()!=new le([1,2]).toLocaleString()})||!oe(function(){le.prototype.toLocaleString.call([1,2])});ne("toLocaleString",function(){return z(te,se?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,Te,be){"use strict";var x=y("../internals/array-buffer-view-core").exportTypedArrayMethod,z=y("../internals/fails"),ie=y("../internals/global"),oe=y("../internals/function-uncurry-this"),ee=ie.Uint8Array,le=ee&&ee.prototype||{},E=[].toString,ne=oe([].join);z(function(){E.call({})})&&(E=function(){return ne(this)});var te=le.toString!=E;x("toString",E,te)},{"../internals/array-buffer-view-core":103,"../internals/fails":150,"../internals/function-uncurry-this":157,"../internals/global":163}],338:[function(y,Te,be){var x=y("../internals/typed-array-constructor");x("Uint8",function(z){return function(oe,ee,le){return z(this,oe,ee,le)}})},{"../internals/typed-array-constructor":258}],339:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/dom-iterables"),ie=y("../internals/dom-token-list-prototype"),oe=y("../internals/array-for-each"),ee=y("../internals/create-non-enumerable-property"),le=function(ne){if(ne&&ne.forEach!==oe)try{ee(ne,"forEach",oe)}catch(te){ne.forEach=oe}};for(var E in z)z[E]&&le(x[E]&&x[E].prototype);le(ie)},{"../internals/array-for-each":107,"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163}],340:[function(y,Te,be){var x=y("../internals/global"),z=y("../internals/dom-iterables"),ie=y("../internals/dom-token-list-prototype"),oe=y("../modules/es.array.iterator"),ee=y("../internals/create-non-enumerable-property"),le=y("../internals/well-known-symbol"),E=le("iterator"),ne=le("toStringTag"),te=oe.values,se=function(fe,me){if(fe){if(fe[E]!==te)try{ee(fe,E,te)}catch(he){fe[E]=te}if(fe[ne]||ee(fe,ne,me),z[me]){for(var ve in oe)if(fe[ve]!==oe[ve])try{ee(fe,ve,oe[ve])}catch(he){fe[ve]=oe[ve]}}}};for(var ue in z)se(x[ue]&&x[ue].prototype,ue);se(ie,"DOMTokenList")},{"../internals/create-non-enumerable-property":129,"../internals/dom-iterables":136,"../internals/dom-token-list-prototype":137,"../internals/global":163,"../internals/well-known-symbol":268,"../modules/es.array.iterator":278}],341:[function(y,Te,be){function x(ge){return Array.isArray?Array.isArray(ge):he(ge)==="[object Array]"}be.isArray=x;function z(ge){return typeof ge=="boolean"}be.isBoolean=z;function ie(ge){return ge===null}be.isNull=ie;function oe(ge){return ge==null}be.isNullOrUndefined=oe;function ee(ge){return typeof ge=="number"}be.isNumber=ee;function le(ge){return typeof ge=="string"}be.isString=le;function E(ge){return typeof ge=="symbol"}be.isSymbol=E;function ne(ge){return ge===void 0}be.isUndefined=ne;function te(ge){return he(ge)==="[object RegExp]"}be.isRegExp=te;function se(ge){return typeof ge=="object"&&ge!==null}be.isObject=se;function ue(ge){return he(ge)==="[object Date]"}be.isDate=ue;function fe(ge){return he(ge)==="[object Error]"||ge instanceof Error}be.isError=fe;function me(ge){return typeof ge=="function"}be.isFunction=me;function ve(ge){return ge===null||typeof ge=="boolean"||typeof ge=="number"||typeof ge=="string"||typeof ge=="symbol"||typeof ge=="undefined"}be.isPrimitive=ve,be.isBuffer=y("buffer").Buffer.isBuffer;function he(ge){return Object.prototype.toString.call(ge)}},{buffer:90}],342:[function(y,Te,be){(function(x){"use strict";var z=function(){var E=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,ne=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,te=/[^-+\dA-Z]/g;return function(se,ue,fe,me){if(arguments.length===1&&le(se)==="string"&&!/\d/.test(se)&&(ue=se,se=void 0),se=se||new Date,se instanceof Date||(se=new Date(se)),isNaN(se))throw TypeError("Invalid date");ue=String(z.masks[ue]||ue||z.masks.default);var ve=ue.slice(0,4);(ve==="UTC:"||ve==="GMT:")&&(ue=ue.slice(4),fe=!0,ve==="GMT:"&&(me=!0));var he=fe?"getUTC":"get",ge=se[he+"Date"](),xe=se[he+"Day"](),Ce=se[he+"Month"](),je=se[he+"FullYear"](),Ee=se[he+"Hours"](),ce=se[he+"Minutes"](),ye=se[he+"Seconds"](),we=se[he+"Milliseconds"](),De=fe?0:se.getTimezoneOffset(),Re=oe(se),ke=ee(se),_e={d:ge,dd:ie(ge),ddd:z.i18n.dayNames[xe],dddd:z.i18n.dayNames[xe+7],m:Ce+1,mm:ie(Ce+1),mmm:z.i18n.monthNames[Ce],mmmm:z.i18n.monthNames[Ce+12],yy:String(je).slice(2),yyyy:je,h:Ee%12||12,hh:ie(Ee%12||12),H:Ee,HH:ie(Ee),M:ce,MM:ie(ce),s:ye,ss:ie(ye),l:ie(we,3),L:ie(Math.round(we/10)),t:Ee<12?"a":"p",tt:Ee<12?"am":"pm",T:Ee<12?"A":"P",TT:Ee<12?"AM":"PM",Z:me?"GMT":fe?"UTC":(String(se).match(ne)||[""]).pop().replace(te,""),o:(De>0?"-":"+")+ie(Math.floor(Math.abs(De)/60)*100+Math.abs(De)%60,4),S:["th","st","nd","rd"][ge%10>3?0:(ge%100-ge%10!=10)*ge%10],W:Re,N:ke};return ue.replace(E,function(Ze){return Ze in _e?_e[Ze]:Ze.slice(1,Ze.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 ie(E,ne){for(E=String(E),ne=ne||2;E.length<ne;)E="0"+E;return E}function oe(E){var ne=new Date(E.getFullYear(),E.getMonth(),E.getDate());ne.setDate(ne.getDate()-(ne.getDay()+6)%7+3);var te=new Date(ne.getFullYear(),0,4);te.setDate(te.getDate()-(te.getDay()+6)%7+3);var se=ne.getTimezoneOffset()-te.getTimezoneOffset();ne.setHours(ne.getHours()-se);var ue=(ne-te)/(864e5*7);return 1+Math.floor(ue)}function ee(E){var ne=E.getDay();return ne===0&&(ne=7),ne}function le(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 Je=="function"&&Je.amd?Je(function(){return z}):typeof be=="object"?Te.exports=z:x.dateFormat=z})(this)},{}],343:[function(y,Te,be){"use strict";var x=/["'&<>]/;Te.exports=z;function z(ie){var oe=""+ie,ee=x.exec(oe);if(!ee)return oe;var le,E="",ne=0,te=0;for(ne=ee.index;ne<oe.length;ne++){switch(oe.charCodeAt(ne)){case 34:le="&quot;";break;case 38:le="&amp;";break;case 39:le="&#39;";break;case 60:le="&lt;";break;case 62:le="&gt;";break;default:continue}te!==ne&&(E+=oe.substring(te,ne)),te=ne+1,E+=le}return te!==ne?E+oe.substring(te,ne):E}},{}],344:[function(y,Te,be){"use strict";var x=typeof Reflect=="object"?Reflect:null,z=x&&typeof x.apply=="function"?x.apply:function(ye,we,De){return Function.prototype.apply.call(ye,we,De)},ie;x&&typeof x.ownKeys=="function"?ie=x.ownKeys:Object.getOwnPropertySymbols?ie=function(ye){return Object.getOwnPropertyNames(ye).concat(Object.getOwnPropertySymbols(ye))}:ie=function(ye){return Object.getOwnPropertyNames(ye)};function oe(ce){console&&console.warn&&console.warn(ce)}var ee=Number.isNaN||function(ye){return ye!==ye};function le(){le.init.call(this)}Te.exports=le,Te.exports.once=Ce,le.EventEmitter=le,le.prototype._events=void 0,le.prototype._eventsCount=0,le.prototype._maxListeners=void 0;var E=10;function ne(ce){if(typeof ce!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ce)}Object.defineProperty(le,"defaultMaxListeners",{enumerable:!0,get:function(){return E},set:function(ce){if(typeof ce!="number"||ce<0||ee(ce))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+ce+".");E=ce}}),le.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},le.prototype.setMaxListeners=function(ye){if(typeof ye!="number"||ye<0||ee(ye))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+ye+".");return this._maxListeners=ye,this};function te(ce){return ce._maxListeners===void 0?le.defaultMaxListeners:ce._maxListeners}le.prototype.getMaxListeners=function(){return te(this)},le.prototype.emit=function(ye){for(var we=[],De=1;De<arguments.length;De++)we.push(arguments[De]);var Re=ye==="error",ke=this._events;if(ke!==void 0)Re=Re&&ke.error===void 0;else if(!Re)return!1;if(Re){var _e;if(we.length>0&&(_e=we[0]),_e instanceof Error)throw _e;var Ze=new Error("Unhandled error."+(_e?" ("+_e.message+")":""));throw Ze.context=_e,Ze}var Ve=ke[ye];if(Ve===void 0)return!1;if(typeof Ve=="function")z(Ve,this,we);else for(var Qe=Ve.length,ut=he(Ve,Qe),De=0;De<Qe;++De)z(ut[De],this,we);return!0};function se(ce,ye,we,De){var Re,ke,_e;if(ne(we),ke=ce._events,ke===void 0?(ke=ce._events=Object.create(null),ce._eventsCount=0):(ke.newListener!==void 0&&(ce.emit("newListener",ye,we.listener?we.listener:we),ke=ce._events),_e=ke[ye]),_e===void 0)_e=ke[ye]=we,++ce._eventsCount;else if(typeof _e=="function"?_e=ke[ye]=De?[we,_e]:[_e,we]:De?_e.unshift(we):_e.push(we),Re=te(ce),Re>0&&_e.length>Re&&!_e.warned){_e.warned=!0;var Ze=new Error("Possible EventEmitter memory leak detected. "+_e.length+" "+String(ye)+" listeners added. Use emitter.setMaxListeners() to increase limit");Ze.name="MaxListenersExceededWarning",Ze.emitter=ce,Ze.type=ye,Ze.count=_e.length,oe(Ze)}return ce}le.prototype.addListener=function(ye,we){return se(this,ye,we,!1)},le.prototype.on=le.prototype.addListener,le.prototype.prependListener=function(ye,we){return se(this,ye,we,!0)};function ue(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function fe(ce,ye,we){var De={fired:!1,wrapFn:void 0,target:ce,type:ye,listener:we},Re=ue.bind(De);return Re.listener=we,De.wrapFn=Re,Re}le.prototype.once=function(ye,we){return ne(we),this.on(ye,fe(this,ye,we)),this},le.prototype.prependOnceListener=function(ye,we){return ne(we),this.prependListener(ye,fe(this,ye,we)),this},le.prototype.removeListener=function(ye,we){var De,Re,ke,_e,Ze;if(ne(we),Re=this._events,Re===void 0)return this;if(De=Re[ye],De===void 0)return this;if(De===we||De.listener===we)--this._eventsCount===0?this._events=Object.create(null):(delete Re[ye],Re.removeListener&&this.emit("removeListener",ye,De.listener||we));else if(typeof De!="function"){for(ke=-1,_e=De.length-1;_e>=0;_e--)if(De[_e]===we||De[_e].listener===we){Ze=De[_e].listener,ke=_e;break}if(ke<0)return this;ke===0?De.shift():ge(De,ke),De.length===1&&(Re[ye]=De[0]),Re.removeListener!==void 0&&this.emit("removeListener",ye,Ze||we)}return this},le.prototype.off=le.prototype.removeListener,le.prototype.removeAllListeners=function(ye){var we,De,Re;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[ye]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete De[ye]),this;if(arguments.length===0){var ke=Object.keys(De),_e;for(Re=0;Re<ke.length;++Re)_e=ke[Re],_e!=="removeListener"&&this.removeAllListeners(_e);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(we=De[ye],typeof we=="function")this.removeListener(ye,we);else if(we!==void 0)for(Re=we.length-1;Re>=0;Re--)this.removeListener(ye,we[Re]);return this};function me(ce,ye,we){var De=ce._events;if(De===void 0)return[];var Re=De[ye];return Re===void 0?[]:typeof Re=="function"?we?[Re.listener||Re]:[Re]:we?xe(Re):he(Re,Re.length)}le.prototype.listeners=function(ye){return me(this,ye,!0)},le.prototype.rawListeners=function(ye){return me(this,ye,!1)},le.listenerCount=function(ce,ye){return typeof ce.listenerCount=="function"?ce.listenerCount(ye):ve.call(ce,ye)},le.prototype.listenerCount=ve;function ve(ce){var ye=this._events;if(ye!==void 0){var we=ye[ce];if(typeof we=="function")return 1;if(we!==void 0)return we.length}return 0}le.prototype.eventNames=function(){return this._eventsCount>0?ie(this._events):[]};function he(ce,ye){for(var we=new Array(ye),De=0;De<ye;++De)we[De]=ce[De];return we}function ge(ce,ye){for(;ye+1<ce.length;ye++)ce[ye]=ce[ye+1];ce.pop()}function xe(ce){for(var ye=new Array(ce.length),we=0;we<ye.length;++we)ye[we]=ce[we].listener||ce[we];return ye}function Ce(ce,ye){return new Promise(function(we,De){function Re(_e){ce.removeListener(ye,ke),De(_e)}function ke(){typeof ce.removeListener=="function"&&ce.removeListener("error",Re),we([].slice.call(arguments))}Ee(ce,ye,ke,{once:!0}),ye!=="error"&&je(ce,Re,{once:!0})})}function je(ce,ye,we){typeof ce.on=="function"&&Ee(ce,"error",ye,we)}function Ee(ce,ye,we,De){if(typeof ce.on=="function")De.once?ce.once(ye,we):ce.on(ye,we);else if(typeof ce.addEventListener=="function")ce.addEventListener(ye,function Re(ke){De.once&&ce.removeEventListener(ye,Re),we(ke)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof ce)}},{}],345:[function(y,Te,be){"use strict";var x=y("is-callable"),z=Object.prototype.toString,ie=Object.prototype.hasOwnProperty,oe=function(te,se,ue){for(var fe=0,me=te.length;fe<me;fe++)ie.call(te,fe)&&(ue==null?se(te[fe],fe,te):se.call(ue,te[fe],fe,te))},ee=function(te,se,ue){for(var fe=0,me=te.length;fe<me;fe++)ue==null?se(te.charAt(fe),fe,te):se.call(ue,te.charAt(fe),fe,te)},le=function(te,se,ue){for(var fe in te)ie.call(te,fe)&&(ue==null?se(te[fe],fe,te):se.call(ue,te[fe],fe,te))},E=function(te,se,ue){if(!x(se))throw new TypeError("iterator must be a function");var fe;arguments.length>=3&&(fe=ue),z.call(te)==="[object Array]"?oe(te,se,fe):typeof te=="string"?ee(te,se,fe):le(te,se,fe)};Te.exports=E},{"is-callable":367}],346:[function(y,Te,be){"use strict";var x="Function.prototype.bind called on incompatible ",z=Array.prototype.slice,ie=Object.prototype.toString,oe="[object Function]";Te.exports=function(le){var E=this;if(typeof E!="function"||ie.call(E)!==oe)throw new TypeError(x+E);for(var ne=z.call(arguments,1),te,se=function(){if(this instanceof te){var he=E.apply(this,ne.concat(z.call(arguments)));return Object(he)===he?he:this}else return E.apply(le,ne.concat(z.call(arguments)))},ue=Math.max(0,E.length-ne.length),fe=[],me=0;me<ue;me++)fe.push("$"+me);if(te=Function("binder","return function ("+fe.join(",")+"){ return binder.apply(this,arguments); }")(se),E.prototype){var ve=function(){};ve.prototype=E.prototype,te.prototype=new ve,ve.prototype=null}return te}},{}],347:[function(y,Te,be){"use strict";var x=y("./implementation");Te.exports=Function.prototype.bind||x},{"./implementation":346}],348:[function(y,Te,be){"use strict";var x,z=SyntaxError,ie=Function,oe=TypeError,ee=function(Ve){try{return ie('"use strict"; return ('+Ve+").constructor;")()}catch(Qe){}},le=Object.getOwnPropertyDescriptor;if(le)try{le({},"")}catch(Ve){le=null}var E=function(){throw new oe},ne=le?function(){try{return arguments.callee,E}catch(Ve){try{return le(arguments,"callee").get}catch(Qe){return E}}}():E,te=y("has-symbols")(),se=y("has-proto")(),ue=Object.getPrototypeOf||(se?function(Ve){return Ve.__proto__}:null),fe={},me=typeof Uint8Array=="undefined"||!ue?x:ue(Uint8Array),ve={"%AggregateError%":typeof AggregateError=="undefined"?x:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?x:ArrayBuffer,"%ArrayIteratorPrototype%":te&&ue?ue([][Symbol.iterator]()):x,"%AsyncFromSyncIteratorPrototype%":x,"%AsyncFunction%":fe,"%AsyncGenerator%":fe,"%AsyncGeneratorFunction%":fe,"%AsyncIteratorPrototype%":fe,"%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%":ie,"%GeneratorFunction%":fe,"%Int8Array%":typeof Int8Array=="undefined"?x:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?x:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?x:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":te&&ue?ue(ue([][Symbol.iterator]())):x,"%JSON%":typeof JSON=="object"?JSON:x,"%Map%":typeof Map=="undefined"?x:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!te||!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"||!te||!ue?x:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?x:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":te&&ue?ue(""[Symbol.iterator]()):x,"%Symbol%":te?Symbol:x,"%SyntaxError%":z,"%ThrowTypeError%":ne,"%TypedArray%":me,"%TypeError%":oe,"%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(Ve){var he=ue(ue(Ve));ve["%Error.prototype%"]=he}var ge=function Ve(Qe){var ut;if(Qe==="%AsyncFunction%")ut=ee("async function () {}");else if(Qe==="%GeneratorFunction%")ut=ee("function* () {}");else if(Qe==="%AsyncGeneratorFunction%")ut=ee("async function* () {}");else if(Qe==="%AsyncGenerator%"){var Ie=Ve("%AsyncGeneratorFunction%");Ie&&(ut=Ie.prototype)}else if(Qe==="%AsyncIteratorPrototype%"){var We=Ve("%AsyncGenerator%");We&&ue&&(ut=ue(We.prototype))}return ve[Qe]=ut,ut},xe={"%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"]},Ce=y("function-bind"),je=y("has"),Ee=Ce.call(Function.call,Array.prototype.concat),ce=Ce.call(Function.apply,Array.prototype.splice),ye=Ce.call(Function.call,String.prototype.replace),we=Ce.call(Function.call,String.prototype.slice),De=Ce.call(Function.call,RegExp.prototype.exec),Re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,_e=function(Qe){var ut=we(Qe,0,1),Ie=we(Qe,-1);if(ut==="%"&&Ie!=="%")throw new z("invalid intrinsic syntax, expected closing `%`");if(Ie==="%"&&ut!=="%")throw new z("invalid intrinsic syntax, expected opening `%`");var We=[];return ye(Qe,Re,function(it,at,nt,Xe){We[We.length]=nt?ye(Xe,ke,"$1"):at||it}),We},Ze=function(Qe,ut){var Ie=Qe,We;if(je(xe,Ie)&&(We=xe[Ie],Ie="%"+We[0]+"%"),je(ve,Ie)){var it=ve[Ie];if(it===fe&&(it=ge(Ie)),typeof it=="undefined"&&!ut)throw new oe("intrinsic "+Qe+" exists, but is not available. Please file an issue!");return{alias:We,name:Ie,value:it}}throw new z("intrinsic "+Qe+" does not exist!")};Te.exports=function(Qe,ut){if(typeof Qe!="string"||Qe.length===0)throw new oe("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ut!="boolean")throw new oe('"allowMissing" argument must be a boolean');if(De(/^%?[^%]*%?$/,Qe)===null)throw new z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ie=_e(Qe),We=Ie.length>0?Ie[0]:"",it=Ze("%"+We+"%",ut),at=it.name,nt=it.value,Xe=!1,et=it.alias;et&&(We=et[0],ce(Ie,Ee([0,1],et)));for(var Ye=1,dt=!0;Ye<Ie.length;Ye+=1){var tt=Ie[Ye],lt=we(tt,0,1),st=we(tt,-1);if((lt==='"'||lt==="'"||lt==="`"||st==='"'||st==="'"||st==="`")&&lt!==st)throw new z("property names with quotes must have matching quotes");if((tt==="constructor"||!dt)&&(Xe=!0),We+="."+tt,at="%"+We+"%",je(ve,at))nt=ve[at];else if(nt!=null){if(!(tt in nt)){if(!ut)throw new oe("base intrinsic for "+Qe+" exists, but the property is not available.");return}if(le&&Ye+1>=Ie.length){var He=le(nt,tt);dt=!!He,dt&&"get"in He&&!("originalValue"in He.get)?nt=He.get:nt=nt[tt]}else dt=je(nt,tt),nt=nt[tt];dt&&!Xe&&(ve[at]=nt)}}return nt}},{"function-bind":347,has:354,"has-proto":350,"has-symbols":351}],349:[function(y,Te,be){"use strict";var x=y("get-intrinsic"),z=x("%Object.getOwnPropertyDescriptor%",!0);if(z)try{z([],"length")}catch(ie){z=null}Te.exports=z},{"get-intrinsic":348}],350:[function(y,Te,be){"use strict";var x={foo:{}},z=Object;Te.exports=function(){return{__proto__:x}.foo===x.foo&&!({__proto__:null}instanceof z)}},{}],351:[function(y,Te,be){"use strict";var x=typeof Symbol!="undefined"&&Symbol,z=y("./shams");Te.exports=function(){return typeof x!="function"||typeof Symbol!="function"||typeof x("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:z()}},{"./shams":352}],352:[function(y,Te,be){"use strict";Te.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var z={},ie=Symbol("test"),oe=Object(ie);if(typeof ie=="string"||Object.prototype.toString.call(ie)!=="[object Symbol]"||Object.prototype.toString.call(oe)!=="[object Symbol]")return!1;var ee=42;z[ie]=ee;for(ie 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 le=Object.getOwnPropertySymbols(z);if(le.length!==1||le[0]!==ie||!Object.prototype.propertyIsEnumerable.call(z,ie))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var E=Object.getOwnPropertyDescriptor(z,ie);if(E.value!==ee||E.enumerable!==!0)return!1}return!0}},{}],353:[function(y,Te,be){"use strict";var x=y("has-symbols/shams");Te.exports=function(){return x()&&!!Symbol.toStringTag}},{"has-symbols/shams":352}],354:[function(y,Te,be){"use strict";var x=y("function-bind");Te.exports=x.call(Function.call,Object.prototype.hasOwnProperty)},{"function-bind":347}],355:[function(y,Te,be){var x=y("http"),z=y("url"),ie=Te.exports;for(var oe in x)x.hasOwnProperty(oe)&&(ie[oe]=x[oe]);ie.request=function(le,E){return le=ee(le),x.request.call(this,le,E)},ie.get=function(le,E){return le=ee(le),x.get.call(this,le,E)};function ee(le){if(typeof le=="string"&&(le=z.parse(le)),le.protocol||(le.protocol="https:"),le.protocol!=="https:")throw new Error('Protocol "'+le.protocol+'" not supported. Expected "https:"');return le}},{http:468,url:472}],356:[function(y,Te,be){"use strict";var x=y("util"),z=y("ms");Te.exports=function(ie){if(typeof ie=="number")return ie;var oe=z(ie);if(oe===void 0){var ee=new Error(x.format("humanize-ms(%j) result undefined",ie));console.warn(ee.stack)}return oe}},{ms:376,util:419}],357:[function(y,Te,be){be.read=function(x,z,ie,oe,ee){var le,E,ne=ee*8-oe-1,te=(1<<ne)-1,se=te>>1,ue=-7,fe=ie?ee-1:0,me=ie?-1:1,ve=x[z+fe];for(fe+=me,le=ve&(1<<-ue)-1,ve>>=-ue,ue+=ne;ue>0;le=le*256+x[z+fe],fe+=me,ue-=8);for(E=le&(1<<-ue)-1,le>>=-ue,ue+=oe;ue>0;E=E*256+x[z+fe],fe+=me,ue-=8);if(le===0)le=1-se;else{if(le===te)return E?NaN:(ve?-1:1)*(1/0);E=E+Math.pow(2,oe),le=le-se}return(ve?-1:1)*E*Math.pow(2,le-oe)},be.write=function(x,z,ie,oe,ee,le){var E,ne,te,se=le*8-ee-1,ue=(1<<se)-1,fe=ue>>1,me=ee===23?Math.pow(2,-24)-Math.pow(2,-77):0,ve=oe?0:le-1,he=oe?1:-1,ge=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(ne=isNaN(z)?1:0,E=ue):(E=Math.floor(Math.log(z)/Math.LN2),z*(te=Math.pow(2,-E))<1&&(E--,te*=2),E+fe>=1?z+=me/te:z+=me*Math.pow(2,1-fe),z*te>=2&&(E++,te/=2),E+fe>=ue?(ne=0,E=ue):E+fe>=1?(ne=(z*te-1)*Math.pow(2,ee),E=E+fe):(ne=z*Math.pow(2,fe-1)*Math.pow(2,ee),E=0));ee>=8;x[ie+ve]=ne&255,ve+=he,ne/=256,ee-=8);for(E=E<<ee|ne,se+=ee;se>0;x[ie+ve]=E&255,ve+=he,E/=256,se-=8);x[ie+ve-he]|=ge*128}},{}],358:[function(y,Te,be){"use strict";var x=[y("./nextTick"),y("./queueMicrotask"),y("./mutation.js"),y("./messageChannel"),y("./stateChange"),y("./timeout")],z,ie,oe=-1,ee=[],le=!1;function E(){!z||!ie||(z=!1,ie.length?ee=ie.concat(ee):oe=-1,ee.length&&ne())}function ne(){if(!z){le=!1,z=!0;for(var ve=ee.length,he=setTimeout(E);ve;){for(ie=ee,ee=[];ie&&++oe<ve;)ie[oe].run();oe=-1,ve=ee.length}ie=null,oe=-1,z=!1,clearTimeout(he)}}for(var te,se=-1,ue=x.length;++se<ue;)if(x[se]&&x[se].test&&x[se].test()){te=x[se].install(ne);break}function fe(ve,he){this.fun=ve,this.array=he}fe.prototype.run=function(){var ve=this.fun,he=this.array;switch(he.length){case 0:return ve();case 1:return ve(he[0]);case 2:return ve(he[0],he[1]);case 3:return ve(he[0],he[1],he[2]);default:return ve.apply(null,he)}},Te.exports=me;function me(ve){var he=new Array(arguments.length-1);if(arguments.length>1)for(var ge=1;ge<arguments.length;ge++)he[ge-1]=arguments[ge];ee.push(new fe(ve,he)),!le&&!z&&(le=!0,te())}},{"./messageChannel":359,"./mutation.js":360,"./nextTick":89,"./queueMicrotask":361,"./stateChange":362,"./timeout":363}],359:[function(y,Te,be){(function(x){(function(){"use strict";be.test=function(){return x.setImmediate?!1:typeof x.MessageChannel!="undefined"},be.install=function(z){var ie=new x.MessageChannel;return ie.port1.onmessage=z,function(){ie.port2.postMessage(0)}}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],360:[function(y,Te,be){(function(x){(function(){"use strict";var z=x.MutationObserver||x.WebKitMutationObserver;be.test=function(){return z},be.install=function(ie){var oe=0,ee=new z(ie),le=x.document.createTextNode("");return ee.observe(le,{characterData:!0}),function(){le.data=oe=++oe%2}}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],361:[function(y,Te,be){(function(x){(function(){"use strict";be.test=function(){return typeof x.queueMicrotask=="function"},be.install=function(z){return function(){x.queueMicrotask(z)}}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],362:[function(y,Te,be){(function(x){(function(){"use strict";be.test=function(){return"document"in x&&"onreadystatechange"in x.document.createElement("script")},be.install=function(z){return function(){var ie=x.document.createElement("script");return ie.onreadystatechange=function(){z(),ie.onreadystatechange=null,ie.parentNode.removeChild(ie),ie=null},x.document.documentElement.appendChild(ie),z}}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],363:[function(y,Te,be){"use strict";be.test=function(){return!0},be.install=function(x){return function(){setTimeout(x,0)}}},{}],364:[function(y,Te,be){typeof Object.create=="function"?Te.exports=function(z,ie){ie&&(z.super_=ie,z.prototype=Object.create(ie.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}))}:Te.exports=function(z,ie){if(ie){z.super_=ie;var oe=function(){};oe.prototype=ie.prototype,z.prototype=new oe,z.prototype.constructor=z}}},{}],365:[function(y,Te,be){"use strict";var x=y("has-tostringtag/shams")(),z=y("call-bind/callBound"),ie=z("Object.prototype.toString"),oe=function(ne){return x&&ne&&typeof ne=="object"&&Symbol.toStringTag in ne?!1:ie(ne)==="[object Arguments]"},ee=function(ne){return oe(ne)?!0:ne!==null&&typeof ne=="object"&&typeof ne.length=="number"&&ne.length>=0&&ie(ne)!=="[object Array]"&&ie(ne.callee)==="[object Function]"},le=function(){return oe(arguments)}();oe.isLegacyArguments=ee,Te.exports=le?oe:ee},{"call-bind/callBound":92,"has-tostringtag/shams":353}],366:[function(y,Te,be){Te.exports=function(ie){return ie!=null&&(x(ie)||z(ie)||!!ie._isBuffer)};function x(ie){return!!ie.constructor&&typeof ie.constructor.isBuffer=="function"&&ie.constructor.isBuffer(ie)}function z(ie){return typeof ie.readFloatLE=="function"&&typeof ie.slice=="function"&&x(ie.slice(0,0))}},{}],367:[function(y,Te,be){"use strict";var x=Function.prototype.toString,z=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ie,oe;if(typeof z=="function"&&typeof Object.defineProperty=="function")try{ie=Object.defineProperty({},"length",{get:function(){throw oe}}),oe={},z(function(){throw 42},null,ie)}catch(je){je!==oe&&(z=null)}else z=null;var ee=/^\s*class\b/,le=function(Ee){try{var ce=x.call(Ee);return ee.test(ce)}catch(ye){return!1}},E=function(Ee){try{return le(Ee)?!1:(x.call(Ee),!0)}catch(ce){return!1}},ne=Object.prototype.toString,te="[object Object]",se="[object Function]",ue="[object GeneratorFunction]",fe="[object HTMLAllCollection]",me="[object HTML document.all class]",ve="[object HTMLCollection]",he=typeof Symbol=="function"&&!!Symbol.toStringTag,ge=!(0 in[,]),xe=function(){return!1};if(typeof document=="object"){var Ce=document.all;ne.call(Ce)===ne.call(document.all)&&(xe=function(Ee){if((ge||!Ee)&&(typeof Ee=="undefined"||typeof Ee=="object"))try{var ce=ne.call(Ee);return(ce===fe||ce===me||ce===ve||ce===te)&&Ee("")==null}catch(ye){}return!1})}Te.exports=z?function(Ee){if(xe(Ee))return!0;if(!Ee||typeof Ee!="function"&&typeof Ee!="object")return!1;try{z(Ee,null,ie)}catch(ce){if(ce!==oe)return!1}return!le(Ee)&&E(Ee)}:function(Ee){if(xe(Ee))return!0;if(!Ee||typeof Ee!="function"&&typeof Ee!="object")return!1;if(he)return E(Ee);if(le(Ee))return!1;var ce=ne.call(Ee);return ce!==se&&ce!==ue&&!/^\[object HTML/.test(ce)?!1:E(Ee)}},{}],368:[function(y,Te,be){"use strict";var x=Object.prototype.toString,z=Function.prototype.toString,ie=/^\s*(?:function)?\*/,oe=y("has-tostringtag/shams")(),ee=Object.getPrototypeOf,le=function(){if(!oe)return!1;try{return Function("return function*() {}")()}catch(ne){}},E;Te.exports=function(te){if(typeof te!="function")return!1;if(ie.test(z.call(te)))return!0;if(!oe){var se=x.call(te);return se==="[object GeneratorFunction]"}if(!ee)return!1;if(typeof E=="undefined"){var ue=le();E=ue?ee(ue):!1}return ee(te)===E}},{"has-tostringtag/shams":353}],369:[function(y,Te,be){"use strict";var x=y("which-typed-array");Te.exports=function(ie){return!!x(ie)}},{"which-typed-array":420}],370:[function(y,Te,be){var x={}.toString;Te.exports=Array.isArray||function(z){return x.call(z)=="[object Array]"}},{}],371:[function(y,Te,be){(function(x){(function(){(function(z,ie){typeof be=="object"&&typeof Te!="undefined"?Te.exports=ie(z):typeof Je=="function"&&Je.amd?Je(ie):ie(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x!="undefined"?x:this,function(z){"use strict";z=z||{};var ie=z.Base64,oe="2.6.4",ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",le=function(Qe){for(var ut={},Ie=0,We=Qe.length;Ie<We;Ie++)ut[Qe.charAt(Ie)]=Ie;return ut}(ee),E=String.fromCharCode,ne=function(Qe){if(Qe.length<2){var ut=Qe.charCodeAt(0);return ut<128?Qe:ut<2048?E(192|ut>>>6)+E(128|ut&63):E(224|ut>>>12&15)+E(128|ut>>>6&63)+E(128|ut&63)}else{var ut=65536+(Qe.charCodeAt(0)-55296)*1024+(Qe.charCodeAt(1)-56320);return E(240|ut>>>18&7)+E(128|ut>>>12&63)+E(128|ut>>>6&63)+E(128|ut&63)}},te=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,se=function(Qe){return Qe.replace(te,ne)},ue=function(Qe){var ut=[0,2,1][Qe.length%3],Ie=Qe.charCodeAt(0)<<16|(Qe.length>1?Qe.charCodeAt(1):0)<<8|(Qe.length>2?Qe.charCodeAt(2):0),We=[ee.charAt(Ie>>>18),ee.charAt(Ie>>>12&63),ut>=2?"=":ee.charAt(Ie>>>6&63),ut>=1?"=":ee.charAt(Ie&63)];return We.join("")},fe=z.btoa&&typeof z.btoa=="function"?function(Qe){return z.btoa(Qe)}:function(Qe){if(Qe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Qe.replace(/[\s\S]{1,3}/g,ue)},me=function(Qe){return fe(se(String(Qe)))},ve=function(Qe){return Qe.replace(/[+\/]/g,function(ut){return ut=="+"?"-":"_"}).replace(/=/g,"")},he=function(Qe,ut){return ut?ve(me(Qe)):me(Qe)},ge=function(Qe){return he(Qe,!0)},xe;z.Uint8Array&&(xe=function(Qe,ut){for(var Ie="",We=0,it=Qe.length;We<it;We+=3){var at=Qe[We],nt=Qe[We+1],Xe=Qe[We+2],et=at<<16|nt<<8|Xe;Ie+=ee.charAt(et>>>18)+ee.charAt(et>>>12&63)+(typeof nt!="undefined"?ee.charAt(et>>>6&63):"=")+(typeof Xe!="undefined"?ee.charAt(et&63):"=")}return ut?ve(Ie):Ie});var Ce=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,je=function(Qe){switch(Qe.length){case 4:var ut=(7&Qe.charCodeAt(0))<<18|(63&Qe.charCodeAt(1))<<12|(63&Qe.charCodeAt(2))<<6|63&Qe.charCodeAt(3),Ie=ut-65536;return E((Ie>>>10)+55296)+E((Ie&1023)+56320);case 3:return E((15&Qe.charCodeAt(0))<<12|(63&Qe.charCodeAt(1))<<6|63&Qe.charCodeAt(2));default:return E((31&Qe.charCodeAt(0))<<6|63&Qe.charCodeAt(1))}},Ee=function(Qe){return Qe.replace(Ce,je)},ce=function(Qe){var ut=Qe.length,Ie=ut%4,We=(ut>0?le[Qe.charAt(0)]<<18:0)|(ut>1?le[Qe.charAt(1)]<<12:0)|(ut>2?le[Qe.charAt(2)]<<6:0)|(ut>3?le[Qe.charAt(3)]:0),it=[E(We>>>16),E(We>>>8&255),E(We&255)];return it.length-=[0,0,2,1][Ie],it.join("")},ye=z.atob&&typeof z.atob=="function"?function(Qe){return z.atob(Qe)}:function(Qe){return Qe.replace(/\S{1,4}/g,ce)},we=function(Qe){return ye(String(Qe).replace(/[^A-Za-z0-9\+\/]/g,""))},De=function(Qe){return Ee(ye(Qe))},Re=function(Qe){return String(Qe).replace(/[-_]/g,function(ut){return ut=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ke=function(Qe){return De(Re(Qe))},_e;z.Uint8Array&&(_e=function(Qe){return Uint8Array.from(we(Re(Qe)),function(ut){return ut.charCodeAt(0)})});var Ze=function(){var Qe=z.Base64;return z.Base64=ie,Qe};if(z.Base64={VERSION:oe,atob:we,btoa:fe,fromBase64:ke,toBase64:he,utob:se,encode:he,encodeURI:ge,btou:Ee,decode:ke,noConflict:Ze,fromUint8Array:xe,toUint8Array:_e},typeof Object.defineProperty=="function"){var Ve=function(Qe){return{value:Qe,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ve(function(){return ke(this)})),Object.defineProperty(String.prototype,"toBase64",Ve(function(Qe){return he(this,Qe)})),Object.defineProperty(String.prototype,"toBase64URI",Ve(function(){return he(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),typeof Te!="undefined"&&Te.exports?Te.exports.Base64=z.Base64:typeof Je=="function"&&Je.amd&&Je([],function(){return z.Base64}),{Base64:z.Base64}})}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],372:[function(y,Te,be){"use strict";Te.exports=z;var x=Object.prototype.hasOwnProperty;function z(ie,oe,ee){if(!ie)throw new TypeError("argument dest is required");if(!oe)throw new TypeError("argument src is required");return ee===void 0&&(ee=!0),Object.getOwnPropertyNames(oe).forEach(function(E){if(!(!ee&&x.call(ie,E))){var ne=Object.getOwnPropertyDescriptor(oe,E);Object.defineProperty(ie,E,ne)}}),ie}},{}],373:[function(y,Te,be){"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,ie){for(var oe in z){var ee=z[oe].map(function(te){return te.toLowerCase()});oe=oe.toLowerCase();for(var le=0;le<ee.length;le++){var E=ee[le];if(E[0]!=="*"){if(!ie&&E in this._types)throw new Error('Attempt to change mapping for "'+E+'" extension from "'+this._types[E]+'" to "'+oe+'". Pass `force=true` to allow this, otherwise remove "'+E+'" from the list of extensions for "'+oe+'".');this._types[E]=oe}}if(ie||!this._extensions[oe]){var ne=ee[0];this._extensions[oe]=ne[0]!=="*"?ne:ne.substr(1)}}},x.prototype.getType=function(z){z=String(z);var ie=z.replace(/^.*[/\\]/,"").toLowerCase(),oe=ie.replace(/^.*\./,"").toLowerCase(),ee=ie.length<z.length,le=oe.length<ie.length-1;return(le||!ee)&&this._types[oe]||null},x.prototype.getExtension=function(z){return z=/^\s*([^;\s]*)/.test(z)&&RegExp.$1,z&&this._extensions[z.toLowerCase()]||null},Te.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,Te,be){"use strict";var x=y("./Mime");Te.exports=new x(y("./types/standard"))},{"./Mime":373,"./types/standard":375}],375:[function(y,Te,be){"use strict";Te.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,Te,be){var x=1e3,z=x*60,ie=z*60,oe=ie*24,ee=oe*7,le=oe*365.25;Te.exports=function(ue,fe){fe=fe||{};var me=typeof ue;if(me==="string"&&ue.length>0)return E(ue);if(me==="number"&&isFinite(ue))return fe.long?te(ue):ne(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 fe=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(ue);if(fe){var me=parseFloat(fe[1]),ve=(fe[2]||"ms").toLowerCase();switch(ve){case"years":case"year":case"yrs":case"yr":case"y":return me*le;case"weeks":case"week":case"w":return me*ee;case"days":case"day":case"d":return me*oe;case"hours":case"hour":case"hrs":case"hr":case"h":return me*ie;case"minutes":case"minute":case"mins":case"min":case"m":return me*z;case"seconds":case"second":case"secs":case"sec":case"s":return me*x;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return me;default:return}}}}function ne(ue){var fe=Math.abs(ue);return fe>=oe?Math.round(ue/oe)+"d":fe>=ie?Math.round(ue/ie)+"h":fe>=z?Math.round(ue/z)+"m":fe>=x?Math.round(ue/x)+"s":ue+"ms"}function te(ue){var fe=Math.abs(ue);return fe>=oe?se(ue,fe,oe,"day"):fe>=ie?se(ue,fe,ie,"hour"):fe>=z?se(ue,fe,z,"minute"):fe>=x?se(ue,fe,x,"second"):ue+" ms"}function se(ue,fe,me,ve){var he=fe>=me*1.5;return Math.round(ue/me)+" "+ve+(he?"s":"")}},{}],377:[function(y,Te,be){"use strict";var x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable;function oe(le){if(le==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(le)}function ee(){try{if(!Object.assign)return!1;var le=new String("abc");if(le[5]="de",Object.getOwnPropertyNames(le)[0]==="5")return!1;for(var E={},ne=0;ne<10;ne++)E["_"+String.fromCharCode(ne)]=ne;var te=Object.getOwnPropertyNames(E).map(function(ue){return E[ue]});if(te.join("")!=="0123456789")return!1;var se={};return"abcdefghijklmnopqrst".split("").forEach(function(ue){se[ue]=ue}),Object.keys(Object.assign({},se)).join("")==="abcdefghijklmnopqrst"}catch(ue){return!1}}Te.exports=ee()?Object.assign:function(le,E){for(var ne,te=oe(le),se,ue=1;ue<arguments.length;ue++){ne=Object(arguments[ue]);for(var fe in ne)z.call(ne,fe)&&(te[fe]=ne[fe]);if(x){se=x(ne);for(var me=0;me<se.length;me++)ie.call(ne,se[me])&&(te[se[me]]=ne[se[me]])}}return te}},{}],378:[function(y,Te,be){(function(x){(function(){"use strict";function z(le){if(typeof le!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(le))}function ie(le,E){for(var ne="",te=0,se=-1,ue=0,fe,me=0;me<=le.length;++me){if(me<le.length)fe=le.charCodeAt(me);else{if(fe===47)break;fe=47}if(fe===47){if(!(se===me-1||ue===1))if(se!==me-1&&ue===2){if(ne.length<2||te!==2||ne.charCodeAt(ne.length-1)!==46||ne.charCodeAt(ne.length-2)!==46){if(ne.length>2){var ve=ne.lastIndexOf("/");if(ve!==ne.length-1){ve===-1?(ne="",te=0):(ne=ne.slice(0,ve),te=ne.length-1-ne.lastIndexOf("/")),se=me,ue=0;continue}}else if(ne.length===2||ne.length===1){ne="",te=0,se=me,ue=0;continue}}E&&(ne.length>0?ne+="/..":ne="..",te=2)}else ne.length>0?ne+="/"+le.slice(se+1,me):ne=le.slice(se+1,me),te=me-se-1;se=me,ue=0}else fe===46&&ue!==-1?++ue:ue=-1}return ne}function oe(le,E){var ne=E.dir||E.root,te=E.base||(E.name||"")+(E.ext||"");return ne?ne===E.root?ne+te:ne+le+te:te}var ee={resolve:function(){for(var E="",ne=!1,te,se=arguments.length-1;se>=-1&&!ne;se--){var ue;se>=0?ue=arguments[se]:(te===void 0&&(te=x.cwd()),ue=te),z(ue),ue.length!==0&&(E=ue+"/"+E,ne=ue.charCodeAt(0)===47)}return E=ie(E,!ne),ne?E.length>0?"/"+E:"/":E.length>0?E:"."},normalize:function(E){if(z(E),E.length===0)return".";var ne=E.charCodeAt(0)===47,te=E.charCodeAt(E.length-1)===47;return E=ie(E,!ne),E.length===0&&!ne&&(E="."),E.length>0&&te&&(E+="/"),ne?"/"+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,ne=0;ne<arguments.length;++ne){var te=arguments[ne];z(te),te.length>0&&(E===void 0?E=te:E+="/"+te)}return E===void 0?".":ee.normalize(E)},relative:function(E,ne){if(z(E),z(ne),E===ne||(E=ee.resolve(E),ne=ee.resolve(ne),E===ne))return"";for(var te=1;te<E.length&&E.charCodeAt(te)===47;++te);for(var se=E.length,ue=se-te,fe=1;fe<ne.length&&ne.charCodeAt(fe)===47;++fe);for(var me=ne.length,ve=me-fe,he=ue<ve?ue:ve,ge=-1,xe=0;xe<=he;++xe){if(xe===he){if(ve>he){if(ne.charCodeAt(fe+xe)===47)return ne.slice(fe+xe+1);if(xe===0)return ne.slice(fe+xe)}else ue>he&&(E.charCodeAt(te+xe)===47?ge=xe:xe===0&&(ge=0));break}var Ce=E.charCodeAt(te+xe),je=ne.charCodeAt(fe+xe);if(Ce!==je)break;Ce===47&&(ge=xe)}var Ee="";for(xe=te+ge+1;xe<=se;++xe)(xe===se||E.charCodeAt(xe)===47)&&(Ee.length===0?Ee+="..":Ee+="/..");return Ee.length>0?Ee+ne.slice(fe+ge):(fe+=ge,ne.charCodeAt(fe)===47&&++fe,ne.slice(fe))},_makeLong:function(E){return E},dirname:function(E){if(z(E),E.length===0)return".";for(var ne=E.charCodeAt(0),te=ne===47,se=-1,ue=!0,fe=E.length-1;fe>=1;--fe)if(ne=E.charCodeAt(fe),ne===47){if(!ue){se=fe;break}}else ue=!1;return se===-1?te?"/":".":te&&se===1?"//":E.slice(0,se)},basename:function(E,ne){if(ne!==void 0&&typeof ne!="string")throw new TypeError('"ext" argument must be a string');z(E);var te=0,se=-1,ue=!0,fe;if(ne!==void 0&&ne.length>0&&ne.length<=E.length){if(ne.length===E.length&&ne===E)return"";var me=ne.length-1,ve=-1;for(fe=E.length-1;fe>=0;--fe){var he=E.charCodeAt(fe);if(he===47){if(!ue){te=fe+1;break}}else ve===-1&&(ue=!1,ve=fe+1),me>=0&&(he===ne.charCodeAt(me)?--me===-1&&(se=fe):(me=-1,se=ve))}return te===se?se=ve:se===-1&&(se=E.length),E.slice(te,se)}else{for(fe=E.length-1;fe>=0;--fe)if(E.charCodeAt(fe)===47){if(!ue){te=fe+1;break}}else se===-1&&(ue=!1,se=fe+1);return se===-1?"":E.slice(te,se)}},extname:function(E){z(E);for(var ne=-1,te=0,se=-1,ue=!0,fe=0,me=E.length-1;me>=0;--me){var ve=E.charCodeAt(me);if(ve===47){if(!ue){te=me+1;break}continue}se===-1&&(ue=!1,se=me+1),ve===46?ne===-1?ne=me:fe!==1&&(fe=1):ne!==-1&&(fe=-1)}return ne===-1||se===-1||fe===0||fe===1&&ne===se-1&&ne===te+1?"":E.slice(ne,se)},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 oe("/",E)},parse:function(E){z(E);var ne={root:"",dir:"",base:"",ext:"",name:""};if(E.length===0)return ne;var te=E.charCodeAt(0),se=te===47,ue;se?(ne.root="/",ue=1):ue=0;for(var fe=-1,me=0,ve=-1,he=!0,ge=E.length-1,xe=0;ge>=ue;--ge){if(te=E.charCodeAt(ge),te===47){if(!he){me=ge+1;break}continue}ve===-1&&(he=!1,ve=ge+1),te===46?fe===-1?fe=ge:xe!==1&&(xe=1):fe!==-1&&(xe=-1)}return fe===-1||ve===-1||xe===0||xe===1&&fe===ve-1&&fe===me+1?ve!==-1&&(me===0&&se?ne.base=ne.name=E.slice(1,ve):ne.base=ne.name=E.slice(me,ve)):(me===0&&se?(ne.name=E.slice(1,fe),ne.base=E.slice(1,ve)):(ne.name=E.slice(me,fe),ne.base=E.slice(me,ve)),ne.ext=E.slice(fe,ve)),me>0?ne.dir=E.slice(0,me-1):se&&(ne.dir="/"),ne},sep:"/",delimiter:":",win32:null,posix:null};ee.posix=ee,Te.exports=ee}).call(this)}).call(this,y("_process"))},{_process:467}],379:[function(y,Te,be){(function(x){(function(){(function(){"use strict";var z={function:!0,object:!0},ie=z[typeof window]&&window||this,oe=ie,ee=z[typeof be]&&be,le=z[typeof Te]&&Te&&!Te.nodeType&&Te,E=ee&&le&&typeof x=="object"&&x;E&&(E.global===E||E.window===E||E.self===E)&&(ie=E);var ne=Math.pow(2,53)-1,te=/\bOpera/,se=this,ue=Object.prototype,fe=ue.hasOwnProperty,me=ue.toString;function ve(ke){return ke=String(ke),ke.charAt(0).toUpperCase()+ke.slice(1)}function he(ke,_e,Ze){var Ve={"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 _e&&Ze&&/^Win/i.test(ke)&&!/^Windows Phone /i.test(ke)&&(Ve=Ve[/[\d.]+$/.exec(ke)])&&(ke="Windows "+Ve),ke=String(ke),_e&&Ze&&(ke=ke.replace(RegExp(_e,"i"),Ze)),ke=xe(ke.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]),ke}function ge(ke,_e){var Ze=-1,Ve=ke?ke.length:0;if(typeof Ve=="number"&&Ve>-1&&Ve<=ne)for(;++Ze<Ve;)_e(ke[Ze],Ze,ke);else Ce(ke,_e)}function xe(ke){return ke=we(ke),/^(?:webOS|i(?:OS|P))/.test(ke)?ke:ve(ke)}function Ce(ke,_e){for(var Ze in ke)fe.call(ke,Ze)&&_e(ke[Ze],Ze,ke)}function je(ke){return ke==null?ve(ke):me.call(ke).slice(8,-1)}function Ee(ke,_e){var Ze=ke!=null?typeof ke[_e]:"number";return!/^(?:boolean|number|string|undefined)$/.test(Ze)&&(Ze=="object"?!!ke[_e]:!0)}function ce(ke){return String(ke).replace(/([ -])(?!$)/g,"$1?")}function ye(ke,_e){var Ze=null;return ge(ke,function(Ve,Qe){Ze=_e(Ze,Ve,Qe,ke)}),Ze}function we(ke){return String(ke).replace(/^ +| +$/g,"")}function De(ke){var _e=ie,Ze=ke&&typeof ke=="object"&&je(ke)!="String";Ze&&(_e=ke,ke=null);var Ve=_e.navigator||{},Qe=Ve.userAgent||"";ke||(ke=Qe);var ut=Ze||se==oe,Ie=Ze?!!Ve.likeChrome:/\bChrome\b/.test(ke)&&!/internal|\n/i.test(me.toString()),We="Object",it=Ze?We:"ScriptBridgingProxyObject",at=Ze?We:"Environment",nt=Ze&&_e.java?"JavaPackage":je(_e.java),Xe=Ze?We:"RuntimeObject",et=/\bJava/.test(nt)&&_e.java,Ye=et&&je(_e.environment)==at,dt=et?"a":"\u03B1",tt=et?"b":"\u03B2",lt=_e.document||{},st=_e.operamini||_e.opera,He=te.test(He=Ze&&st?st["[[Class]]"]:je(st))?He:st=null,Ne,Ge=ke,Me=[],Ke=null,ct=ke==Qe,pt=ct&&st&&typeof st.version=="function"&&st.version(),rt,Ae=Se([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Pe=Be(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Vivaldi","Waterfox","WebPositive",{label:"Yandex Browser",pattern:"YaBrowser"},{label:"UC Browser",pattern:"UCBrowser"},"Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chromium","Chrome",{label:"Chrome",pattern:"(?:HeadlessChrome)"},{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Ue=Le([{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"]),ot=pe({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}}),Oe=$e(["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 Se(bt){return ye(bt,function(yt,Et){return yt||RegExp("\\b"+(Et.pattern||ce(Et))+"\\b","i").exec(ke)&&(Et.label||Et)})}function pe(bt){return ye(bt,function(yt,Et,kt){return yt||(Et[Ue]||Et[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ue)]||RegExp("\\b"+ce(kt)+"(?:\\b|\\w*\\d)","i").exec(ke))&&kt})}function Be(bt){return ye(bt,function(yt,Et){return yt||RegExp("\\b"+(Et.pattern||ce(Et))+"\\b","i").exec(ke)&&(Et.label||Et)})}function $e(bt){return ye(bt,function(yt,Et){var kt=Et.pattern||ce(Et);return!yt&&(yt=RegExp("\\b"+kt+"(?:/[\\d.]+|[ \\w.]*)","i").exec(ke))&&(yt=he(yt,kt,Et.label||Et)),yt})}function Le(bt){return ye(bt,function(yt,Et){var kt=Et.pattern||ce(Et);return!yt&&(yt=RegExp("\\b"+kt+" *\\d+[.\\w_]*","i").exec(ke)||RegExp("\\b"+kt+" *\\w+-[\\w]*","i").exec(ke)||RegExp("\\b"+kt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(ke))&&((yt=String(Et.label&&!RegExp(kt,"i").test(Et.label)?Et.label:yt).split("/"))[1]&&!/[\d.]+/.test(yt[0])&&(yt[0]+=" "+yt[1]),Et=Et.label||Et,yt=xe(yt[0].replace(RegExp(kt,"i"),Et).replace(RegExp("; *(?:"+Et+"[_-])?","i")," ").replace(RegExp("("+Et+")[-_.]?(\\w)","i"),"$1 $2"))),yt})}function mt(bt){return ye(bt,function(yt,Et){return yt||(RegExp(Et+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(ke)||0)[1]||null})}function gt(){return this.description||""}if(Ae&&(Ae=[Ae]),/\bAndroid\b/.test(Oe)&&!Ue&&(Ne=/\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(ke))&&(Ue=we(Ne[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i,"")||null),ot&&!Ue?Ue=Le([ot]):ot&&Ue&&(Ue=Ue.replace(RegExp("^("+ce(ot)+")[-_.\\s]","i"),ot+" ").replace(RegExp("^("+ce(ot)+")[-_.]?(\\w)","i"),ot+" $2")),(Ne=/\bGoogle TV\b/.exec(Ue))&&(Ue=Ne[0]),/\bSimulator\b/i.test(ke)&&(Ue=(Ue?Ue+" ":"")+"Simulator"),Pe=="Opera Mini"&&/\bOPiOS\b/.test(ke)&&Me.push("running in Turbo/Uncompressed mode"),Pe=="IE"&&/\blike iPhone OS\b/.test(ke)?(Ne=De(ke.replace(/like iPhone OS/,"")),ot=Ne.manufacturer,Ue=Ne.product):/^iP/.test(Ue)?(Pe||(Pe="Safari"),Oe="iOS"+((Ne=/ OS ([\d_]+)/i.exec(ke))?" "+Ne[1].replace(/_/g,"."):"")):Pe=="Konqueror"&&/^Linux\b/i.test(Oe)?Oe="Kubuntu":ot&&ot!="Google"&&(/Chrome/.test(Pe)&&!/\bMobile Safari\b/i.test(ke)||/\bVita\b/.test(Ue))||/\bAndroid\b/.test(Oe)&&/^Chrome/.test(Pe)&&/\bVersion\//i.test(ke)?(Pe="Android Browser",Oe=/\bAndroid\b/.test(Oe)?Oe:"Android"):Pe=="Silk"?(/\bMobi/i.test(ke)||(Oe="Android",Me.unshift("desktop mode")),/Accelerated *= *true/i.test(ke)&&Me.unshift("accelerated")):Pe=="UC Browser"&&/\bUCWEB\b/.test(ke)?Me.push("speed mode"):Pe=="PaleMoon"&&(Ne=/\bFirefox\/([\d.]+)\b/.exec(ke))?Me.push("identifying as Firefox "+Ne[1]):Pe=="Firefox"&&(Ne=/\b(Mobile|Tablet|TV)\b/i.exec(ke))?(Oe||(Oe="Firefox OS"),Ue||(Ue=Ne[1])):!Pe||(Ne=!/\bMinefield\b/i.test(ke)&&/\b(?:Firefox|Safari)\b/.exec(Pe))?(Pe&&!Ue&&/[\/,]|^[^(]+?\)/.test(ke.slice(ke.indexOf(Ne+"/")+8))&&(Pe=null),(Ne=Ue||ot||Oe)&&(Ue||ot||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Oe))&&(Pe=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Oe)?Oe:Ne)+" Browser")):Pe=="Electron"&&(Ne=(/\bChrome\/([\d.]+)\b/.exec(ke)||0)[1])&&Me.push("Chromium "+Ne),pt||(pt=mt(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)","Version",ce(Pe),"(?:Firefox|Minefield|NetFront)"])),(Ne=Ae=="iCab"&&parseFloat(pt)>3&&"WebKit"||/\bOpera\b/.test(Pe)&&(/\bOPR\b/.test(ke)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(ke)&&!/^(?:Trident|EdgeHTML)$/.test(Ae)&&"WebKit"||!Ae&&/\bMSIE\b/i.test(ke)&&(Oe=="Mac OS"?"Tasman":"Trident")||Ae=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Pe)&&"NetFront")&&(Ae=[Ne]),Pe=="IE"&&(Ne=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(ke)||0)[1])?(Pe+=" Mobile",Oe="Windows Phone "+(/\+$/.test(Ne)?Ne:Ne+".x"),Me.unshift("desktop mode")):/\bWPDesktop\b/i.test(ke)?(Pe="IE Mobile",Oe="Windows Phone 8.x",Me.unshift("desktop mode"),pt||(pt=(/\brv:([\d.]+)/.exec(ke)||0)[1])):Pe!="IE"&&Ae=="Trident"&&(Ne=/\brv:([\d.]+)/.exec(ke))&&(Pe&&Me.push("identifying as "+Pe+(pt?" "+pt:"")),Pe="IE",pt=Ne[1]),ct){if(Ee(_e,"global"))if(et&&(Ne=et.lang.System,Ge=Ne.getProperty("os.arch"),Oe=Oe||Ne.getProperty("os.name")+" "+Ne.getProperty("os.version")),Ye){try{pt=_e.require("ringo/engine").version.join("."),Pe="RingoJS"}catch(bt){(Ne=_e.system)&&Ne.global.system==_e.system&&(Pe="Narwhal",Oe||(Oe=Ne[0].os||null))}Pe||(Pe="Rhino")}else typeof _e.process=="object"&&!_e.process.browser&&(Ne=_e.process)&&(typeof Ne.versions=="object"&&(typeof Ne.versions.electron=="string"?(Me.push("Node "+Ne.versions.node),Pe="Electron",pt=Ne.versions.electron):typeof Ne.versions.nw=="string"&&(Me.push("Chromium "+pt,"Node "+Ne.versions.node),Pe="NW.js",pt=Ne.versions.nw)),Pe||(Pe="Node.js",Ge=Ne.arch,Oe=Ne.platform,pt=/[\d.]+/.exec(Ne.version),pt=pt?pt[0]:null));else je(Ne=_e.runtime)==it?(Pe="Adobe AIR",Oe=Ne.flash.system.Capabilities.os):je(Ne=_e.phantom)==Xe?(Pe="PhantomJS",pt=(Ne=Ne.version||null)&&Ne.major+"."+Ne.minor+"."+Ne.patch):typeof lt.documentMode=="number"&&(Ne=/\bTrident\/(\d+)/i.exec(ke))?(pt=[pt,lt.documentMode],(Ne=+Ne[1]+4)!=pt[1]&&(Me.push("IE "+pt[1]+" mode"),Ae&&(Ae[1]=""),pt[1]=Ne),pt=Pe=="IE"?String(pt[1].toFixed(1)):pt[0]):typeof lt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Pe)&&(Me.push("masking as "+Pe+" "+pt),Pe="IE",pt="11.0",Ae=["Trident"],Oe="Windows");Oe=Oe&&xe(Oe)}if(pt&&(Ne=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(pt)||/(?:alpha|beta)(?: ?\d)?/i.exec(ke+";"+(ct&&Ve.appMinorVersion))||/\bMinefield\b/i.test(ke)&&"a")&&(Ke=/b/i.test(Ne)?"beta":"alpha",pt=pt.replace(RegExp(Ne+"\\+?$"),"")+(Ke=="beta"?tt:dt)+(/\d+\+?/.exec(Ne)||"")),Pe=="Fennec"||Pe=="Firefox"&&/\b(?:Android|Firefox OS|KaiOS)\b/.test(Oe))Pe="Firefox Mobile";else if(Pe=="Maxthon"&&pt)pt=pt.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ue))Ue=="Xbox 360"&&(Oe=null),Ue=="Xbox 360"&&/\bIEMobile\b/.test(ke)&&Me.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(Pe)||Pe&&!Ue&&!/Browser|Mobi/.test(Pe))&&(Oe=="Windows CE"||/Mobi/i.test(ke)))Pe+=" Mobile";else if(Pe=="IE"&&ct)try{_e.external===null&&Me.unshift("platform preview")}catch(bt){Me.unshift("embedded")}else(/\bBlackBerry\b/.test(Ue)||/\bBB10\b/.test(ke))&&(Ne=(RegExp(Ue.replace(/ +/g," *")+"/([.\\d]+)","i").exec(ke)||0)[1]||pt)?(Ne=[Ne,/BB10/.test(ke)],Oe=(Ne[1]?(Ue=null,ot="BlackBerry"):"Device Software")+" "+Ne[0],pt=null):this!=Ce&&Ue!="Wii"&&(ct&&st||/Opera/.test(Pe)&&/\b(?:MSIE|Firefox)\b/i.test(ke)||Pe=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Oe)||Pe=="IE"&&(Oe&&!/^Win/.test(Oe)&&pt>5.5||/\bWindows XP\b/.test(Oe)&&pt>8||pt==8&&!/\bTrident\b/.test(ke)))&&!te.test(Ne=De.call(Ce,ke.replace(te,"")+";"))&&Ne.name&&(Ne="ing as "+Ne.name+((Ne=Ne.version)?" "+Ne:""),te.test(Pe)?(/\bIE\b/.test(Ne)&&Oe=="Mac OS"&&(Oe=null),Ne="identify"+Ne):(Ne="mask"+Ne,He?Pe=xe(He.replace(/([a-z])([A-Z])/g,"$1 $2")):Pe="Opera",/\bIE\b/.test(Ne)&&(Oe=null),ct||(pt=null)),Ae=["Presto"],Me.push(Ne));(Ne=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(ke)||0)[1])&&(Ne=[parseFloat(Ne.replace(/\.(\d)$/,".0$1")),Ne],Pe=="Safari"&&Ne[1].slice(-1)=="+"?(Pe="WebKit Nightly",Ke="alpha",pt=Ne[1].slice(0,-1)):(pt==Ne[1]||pt==(Ne[2]=(/\bSafari\/([\d.]+\+?)/i.exec(ke)||0)[1]))&&(pt=null),Ne[1]=(/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(ke)||0)[1],Ne[0]==537.36&&Ne[2]==537.36&&parseFloat(Ne[1])>=28&&Ae=="WebKit"&&(Ae=["Blink"]),!ct||!Ie&&!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)?"":"+")),Pe=="Safari"&&(!pt||parseInt(pt)>45)?pt=Ne:Pe=="Chrome"&&/\bHeadlessChrome/i.test(ke)&&Me.unshift("headless")),Pe=="Opera"&&(Ne=/\bzbov|zvav$/.exec(Oe))?(Pe+=" ",Me.unshift("desktop mode"),Ne=="zvav"?(Pe+="Mini",pt=null):Pe+="Mobile",Oe=Oe.replace(RegExp(" *"+Ne+"$"),"")):Pe=="Safari"&&/\bChrome\b/.exec(Ae&&Ae[1])?(Me.unshift("desktop mode"),Pe="Chrome Mobile",pt=null,/\bOS X\b/.test(Oe)?(ot="Apple",Oe="iOS 4.3+"):Oe=null):/\bSRWare Iron\b/.test(Pe)&&!pt&&(pt=mt("Chrome")),pt&&pt.indexOf(Ne=/[\d.]+$/.exec(Oe))==0&&ke.indexOf("/"+Ne+"-")>-1&&(Oe=we(Oe.replace(Ne,""))),Oe&&Oe.indexOf(Pe)!=-1&&!RegExp(Pe+" OS").test(Oe)&&(Oe=Oe.replace(RegExp(" *"+ce(Pe)+" *"),"")),Ae&&!/\b(?:Avant|Nook)\b/.test(Pe)&&(/Browser|Lunascape|Maxthon/.test(Pe)||Pe!="Safari"&&/^iOS/.test(Oe)&&/\bSafari\b/.test(Ae[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(Pe)&&Ae[1])&&(Ne=Ae[Ae.length-1])&&Me.push(Ne),Me.length&&(Me=["("+Me.join("; ")+")"]),ot&&Ue&&Ue.indexOf(ot)<0&&Me.push("on "+ot),Ue&&Me.push((/^on /.test(Me[Me.length-1])?"":"on ")+Ue),Oe&&(Ne=/ ([\d.+]+)$/.exec(Oe),rt=Ne&&Oe.charAt(Oe.length-Ne[0].length-1)=="/",Oe={architecture:32,family:Ne&&!rt?Oe.replace(Ne[0],""):Oe,version:Ne?Ne[1]:null,toString:function(){var bt=this.version;return this.family+(bt&&!rt?" "+bt:"")+(this.architecture==64?" 64-bit":"")}}),(Ne=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ge))&&!/\bi686\b/i.test(Ge)?(Oe&&(Oe.architecture=64,Oe.family=Oe.family.replace(RegExp(" *"+Ne),"")),Pe&&(/\bWOW64\b/i.test(ke)||ct&&/\w(?:86|32)$/.test(Ve.cpuClass||Ve.platform)&&!/\bWin64; x64\b/i.test(ke))&&Me.unshift("32-bit")):Oe&&/^OS X/.test(Oe.family)&&Pe=="Chrome"&&parseFloat(pt)>=39&&(Oe.architecture=64),ke||(ke=null);var wt={};return wt.description=ke,wt.layout=Ae&&Ae[0],wt.manufacturer=ot,wt.name=Pe,wt.prerelease=Ke,wt.product=Ue,wt.ua=ke,wt.version=Pe&&pt,wt.os=Oe||{architecture:null,family:null,version:null,toString:function(){return"null"}},wt.parse=De,wt.toString=gt,wt.version&&Me.unshift(pt),wt.name&&Me.unshift(Pe),Oe&&Pe&&!(Oe==String(Oe).split(" ")[0]&&(Oe==Pe.split(" ")[0]||Ue))&&Me.push(Ue?"("+Oe+")":"on "+Oe),Me.length&&(wt.description=Me.join(" ")),wt}var Re=De();typeof Je=="function"&&typeof Je.amd=="object"&&Je.amd?(ie.platform=Re,Je(function(){return Re})):ee&&le?Ce(Re,function(ke,_e){ee[_e]=ke}):ie.platform=Re}).call(this)}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],380:[function(y,Te,be){(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?Te.exports={nextTick:z}:Te.exports=x;function z(ie,oe,ee,le){if(typeof ie!="function")throw new TypeError('"callback" argument must be a function');var E=arguments.length,ne,te;switch(E){case 0:case 1:return x.nextTick(ie);case 2:return x.nextTick(function(){ie.call(null,oe)});case 3:return x.nextTick(function(){ie.call(null,oe,ee)});case 4:return x.nextTick(function(){ie.call(null,oe,ee,le)});default:for(ne=new Array(E-1),te=0;te<ne.length;)ne[te++]=arguments[te];return x.nextTick(function(){ie.apply(null,ne)})}}}).call(this)}).call(this,y("_process"))},{_process:467}],381:[function(y,Te,be){var x=Te.exports={},z,ie;function oe(){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=oe}catch(ge){z=oe}try{typeof clearTimeout=="function"?ie=clearTimeout:ie=ee}catch(ge){ie=ee}})();function le(ge){if(z===setTimeout)return setTimeout(ge,0);if((z===oe||!z)&&setTimeout)return z=setTimeout,setTimeout(ge,0);try{return z(ge,0)}catch(xe){try{return z.call(null,ge,0)}catch(Ce){return z.call(this,ge,0)}}}function E(ge){if(ie===clearTimeout)return clearTimeout(ge);if((ie===ee||!ie)&&clearTimeout)return ie=clearTimeout,clearTimeout(ge);try{return ie(ge)}catch(xe){try{return ie.call(null,ge)}catch(Ce){return ie.call(this,ge)}}}var ne=[],te=!1,se,ue=-1;function fe(){!te||!se||(te=!1,se.length?ne=se.concat(ne):ue=-1,ne.length&&me())}function me(){if(!te){var ge=le(fe);te=!0;for(var xe=ne.length;xe;){for(se=ne,ne=[];++ue<xe;)se&&se[ue].run();ue=-1,xe=ne.length}se=null,te=!1,E(ge)}}x.nextTick=function(ge){var xe=new Array(arguments.length-1);if(arguments.length>1)for(var Ce=1;Ce<arguments.length;Ce++)xe[Ce-1]=arguments[Ce];ne.push(new ve(ge,xe)),ne.length===1&&!te&&le(me)};function ve(ge,xe){this.fun=ge,this.array=xe}ve.prototype.run=function(){this.fun.apply(null,this.array)},x.title="browser",x.browser=!0,x.env={},x.argv=[],x.version="",x.versions={};function he(){}x.on=he,x.addListener=he,x.once=he,x.off=he,x.removeListener=he,x.removeAllListeners=he,x.emit=he,x.prependListener=he,x.prependOnceListener=he,x.listeners=function(ge){return[]},x.binding=function(ge){throw new Error("process.binding is not supported")},x.cwd=function(){return"/"},x.chdir=function(ge){throw new Error("process.chdir is not supported")},x.umask=function(){return 0}},{}],382:[function(y,Te,be){(function(x){(function(){(function(z){var ie=typeof be=="object"&&be&&!be.nodeType&&be,oe=typeof Te=="object"&&Te&&!Te.nodeType&&Te,ee=typeof x=="object"&&x;(ee.global===ee||ee.window===ee||ee.self===ee)&&(z=ee);var le,E=2147483647,ne=36,te=1,se=26,ue=38,fe=700,me=72,ve=128,he="-",ge=/^xn--/,xe=/[^\x20-\x7E]/,Ce=/[\x2E\u3002\uFF0E\uFF61]/g,je={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Ee=ne-te,ce=Math.floor,ye=String.fromCharCode,we;function De(nt){throw new RangeError(je[nt])}function Re(nt,Xe){for(var et=nt.length,Ye=[];et--;)Ye[et]=Xe(nt[et]);return Ye}function ke(nt,Xe){var et=nt.split("@"),Ye="";et.length>1&&(Ye=et[0]+"@",nt=et[1]),nt=nt.replace(Ce,".");var dt=nt.split("."),tt=Re(dt,Xe).join(".");return Ye+tt}function _e(nt){for(var Xe=[],et=0,Ye=nt.length,dt,tt;et<Ye;)dt=nt.charCodeAt(et++),dt>=55296&&dt<=56319&&et<Ye?(tt=nt.charCodeAt(et++),(tt&64512)==56320?Xe.push(((dt&1023)<<10)+(tt&1023)+65536):(Xe.push(dt),et--)):Xe.push(dt);return Xe}function Ze(nt){return Re(nt,function(Xe){var et="";return Xe>65535&&(Xe-=65536,et+=ye(Xe>>>10&1023|55296),Xe=56320|Xe&1023),et+=ye(Xe),et}).join("")}function Ve(nt){return nt-48<10?nt-22:nt-65<26?nt-65:nt-97<26?nt-97:ne}function Qe(nt,Xe){return nt+22+75*(nt<26)-((Xe!=0)<<5)}function ut(nt,Xe,et){var Ye=0;for(nt=et?ce(nt/fe):nt>>1,nt+=ce(nt/Xe);nt>Ee*se>>1;Ye+=ne)nt=ce(nt/Ee);return ce(Ye+(Ee+1)*nt/(nt+ue))}function Ie(nt){var Xe=[],et=nt.length,Ye,dt=0,tt=ve,lt=me,st,He,Ne,Ge,Me,Ke,ct,pt,rt;for(st=nt.lastIndexOf(he),st<0&&(st=0),He=0;He<st;++He)nt.charCodeAt(He)>=128&&De("not-basic"),Xe.push(nt.charCodeAt(He));for(Ne=st>0?st+1:0;Ne<et;){for(Ge=dt,Me=1,Ke=ne;Ne>=et&&De("invalid-input"),ct=Ve(nt.charCodeAt(Ne++)),(ct>=ne||ct>ce((E-dt)/Me))&&De("overflow"),dt+=ct*Me,pt=Ke<=lt?te:Ke>=lt+se?se:Ke-lt,!(ct<pt);Ke+=ne)rt=ne-pt,Me>ce(E/rt)&&De("overflow"),Me*=rt;Ye=Xe.length+1,lt=ut(dt-Ge,Ye,Ge==0),ce(dt/Ye)>E-tt&&De("overflow"),tt+=ce(dt/Ye),dt%=Ye,Xe.splice(dt++,0,tt)}return Ze(Xe)}function We(nt){var Xe,et,Ye,dt,tt,lt,st,He,Ne,Ge,Me,Ke=[],ct,pt,rt,Ae;for(nt=_e(nt),ct=nt.length,Xe=ve,et=0,tt=me,lt=0;lt<ct;++lt)Me=nt[lt],Me<128&&Ke.push(ye(Me));for(Ye=dt=Ke.length,dt&&Ke.push(he);Ye<ct;){for(st=E,lt=0;lt<ct;++lt)Me=nt[lt],Me>=Xe&&Me<st&&(st=Me);for(pt=Ye+1,st-Xe>ce((E-et)/pt)&&De("overflow"),et+=(st-Xe)*pt,Xe=st,lt=0;lt<ct;++lt)if(Me=nt[lt],Me<Xe&&++et>E&&De("overflow"),Me==Xe){for(He=et,Ne=ne;Ge=Ne<=tt?te:Ne>=tt+se?se:Ne-tt,!(He<Ge);Ne+=ne)Ae=He-Ge,rt=ne-Ge,Ke.push(ye(Qe(Ge+Ae%rt,0))),He=ce(Ae/rt);Ke.push(ye(Qe(He,0))),tt=ut(et,pt,Ye==dt),et=0,++Ye}++et,++Xe}return Ke.join("")}function it(nt){return ke(nt,function(Xe){return ge.test(Xe)?Ie(Xe.slice(4).toLowerCase()):Xe})}function at(nt){return ke(nt,function(Xe){return xe.test(Xe)?"xn--"+We(Xe):Xe})}if(le={version:"1.4.1",ucs2:{decode:_e,encode:Ze},decode:Ie,encode:We,toASCII:at,toUnicode:it},typeof Je=="function"&&typeof Je.amd=="object"&&Je.amd)Je("punycode",function(){return le});else if(ie&&oe)if(Te.exports==ie)oe.exports=le;else for(we in le)le.hasOwnProperty(we)&&(ie[we]=le[we]);else z.punycode=le})(this)}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],383:[function(y,Te,be){"use strict";function x(ie,oe){return Object.prototype.hasOwnProperty.call(ie,oe)}Te.exports=function(ie,oe,ee,le){oe=oe||"&",ee=ee||"=";var E={};if(typeof ie!="string"||ie.length===0)return E;var ne=/\+/g;ie=ie.split(oe);var te=1e3;le&&typeof le.maxKeys=="number"&&(te=le.maxKeys);var se=ie.length;te>0&&se>te&&(se=te);for(var ue=0;ue<se;++ue){var fe=ie[ue].replace(ne,"%20"),me=fe.indexOf(ee),ve,he,ge,xe;me>=0?(ve=fe.substr(0,me),he=fe.substr(me+1)):(ve=fe,he=""),ge=decodeURIComponent(ve),xe=decodeURIComponent(he),x(E,ge)?z(E[ge])?E[ge].push(xe):E[ge]=[E[ge],xe]:E[ge]=xe}return E};var z=Array.isArray||function(ie){return Object.prototype.toString.call(ie)==="[object Array]"}},{}],384:[function(y,Te,be){"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""}};Te.exports=function(ee,le,E,ne){return le=le||"&",E=E||"=",ee===null&&(ee=void 0),typeof ee=="object"?ie(oe(ee),function(te){var se=encodeURIComponent(x(te))+E;return z(ee[te])?ie(ee[te],function(ue){return se+encodeURIComponent(x(ue))}).join(le):se+encodeURIComponent(x(ee[te]))}).join(le):ne?encodeURIComponent(x(ne))+E+encodeURIComponent(x(ee)):""};var z=Array.isArray||function(ee){return Object.prototype.toString.call(ee)==="[object Array]"};function ie(ee,le){if(ee.map)return ee.map(le);for(var E=[],ne=0;ne<ee.length;ne++)E.push(le(ee[ne],ne));return E}var oe=Object.keys||function(ee){var le=[];for(var E in ee)Object.prototype.hasOwnProperty.call(ee,E)&&le.push(E);return le}},{}],385:[function(y,Te,be){"use strict";be.decode=be.parse=y("./decode"),be.encode=be.stringify=y("./encode")},{"./decode":383,"./encode":384}],386:[function(y,Te,be){"use strict";var x=y("process-nextick-args"),z=Object.keys||function(fe){var me=[];for(var ve in fe)me.push(ve);return me};Te.exports=te;var ie=Object.create(y("core-util-is"));ie.inherits=y("inherits");var oe=y("./_stream_readable"),ee=y("./_stream_writable");ie.inherits(te,oe);for(var le=z(ee.prototype),E=0;E<le.length;E++){var ne=le[E];te.prototype[ne]||(te.prototype[ne]=ee.prototype[ne])}function te(fe){if(!(this instanceof te))return new te(fe);oe.call(this,fe),ee.call(this,fe),fe&&fe.readable===!1&&(this.readable=!1),fe&&fe.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,fe&&fe.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",se)}Object.defineProperty(te.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function se(){this.allowHalfOpen||this._writableState.ended||x.nextTick(ue,this)}function ue(fe){fe.end()}Object.defineProperty(te.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(fe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=fe,this._writableState.destroyed=fe)}}),te.prototype._destroy=function(fe,me){this.push(null),this.end(),x.nextTick(me,fe)}},{"./_stream_readable":388,"./_stream_writable":390,"core-util-is":341,inherits:364,"process-nextick-args":380}],387:[function(y,Te,be){"use strict";Te.exports=ie;var x=y("./_stream_transform"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(ie,x);function ie(oe){if(!(this instanceof ie))return new ie(oe);x.call(this,oe)}ie.prototype._transform=function(oe,ee,le){le(null,oe)}},{"./_stream_transform":389,"core-util-is":341,inherits:364}],388:[function(y,Te,be){(function(x,z){(function(){"use strict";var ie=y("process-nextick-args");Te.exports=ye;var oe=y("isarray"),ee;ye.ReadableState=ce;var le=y("events").EventEmitter,E=function(Me,Ke){return Me.listeners(Ke).length},ne=y("./internal/streams/stream"),te=y("safe-buffer").Buffer,se=z.Uint8Array||function(){};function ue(Me){return te.from(Me)}function fe(Me){return te.isBuffer(Me)||Me instanceof se}var me=Object.create(y("core-util-is"));me.inherits=y("inherits");var ve=y("util"),he=void 0;ve&&ve.debuglog?he=ve.debuglog("stream"):he=function(){};var ge=y("./internal/streams/BufferList"),xe=y("./internal/streams/destroy"),Ce;me.inherits(ye,ne);var je=["error","close","destroy","pause","resume"];function Ee(Me,Ke,ct){if(typeof Me.prependListener=="function")return Me.prependListener(Ke,ct);!Me._events||!Me._events[Ke]?Me.on(Ke,ct):oe(Me._events[Ke])?Me._events[Ke].unshift(ct):Me._events[Ke]=[ct,Me._events[Ke]]}function ce(Me,Ke){ee=ee||y("./_stream_duplex"),Me=Me||{};var ct=Ke instanceof ee;this.objectMode=!!Me.objectMode,ct&&(this.objectMode=this.objectMode||!!Me.readableObjectMode);var pt=Me.highWaterMark,rt=Me.readableHighWaterMark,Ae=this.objectMode?16:16*1024;pt||pt===0?this.highWaterMark=pt:ct&&(rt||rt===0)?this.highWaterMark=rt:this.highWaterMark=Ae,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ge,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&&(Ce||(Ce=y("string_decoder/").StringDecoder),this.decoder=new Ce(Me.encoding),this.encoding=Me.encoding)}function ye(Me){if(ee=ee||y("./_stream_duplex"),!(this instanceof ye))return new ye(Me);this._readableState=new ce(Me,this),this.readable=!0,Me&&(typeof Me.read=="function"&&(this._read=Me.read),typeof Me.destroy=="function"&&(this._destroy=Me.destroy)),ne.call(this)}Object.defineProperty(ye.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Me){this._readableState&&(this._readableState.destroyed=Me)}}),ye.prototype.destroy=xe.destroy,ye.prototype._undestroy=xe.undestroy,ye.prototype._destroy=function(Me,Ke){this.push(null),Ke(Me)},ye.prototype.push=function(Me,Ke){var ct=this._readableState,pt;return ct.objectMode?pt=!0:typeof Me=="string"&&(Ke=Ke||ct.defaultEncoding,Ke!==ct.encoding&&(Me=te.from(Me,Ke),Ke=""),pt=!0),we(this,Me,Ke,!1,pt)},ye.prototype.unshift=function(Me){return we(this,Me,null,!0,!1)};function we(Me,Ke,ct,pt,rt){var Ae=Me._readableState;if(Ke===null)Ae.reading=!1,Qe(Me,Ae);else{var Pe;rt||(Pe=Re(Ae,Ke)),Pe?Me.emit("error",Pe):Ae.objectMode||Ke&&Ke.length>0?(typeof Ke!="string"&&!Ae.objectMode&&Object.getPrototypeOf(Ke)!==te.prototype&&(Ke=ue(Ke)),pt?Ae.endEmitted?Me.emit("error",new Error("stream.unshift() after end event")):De(Me,Ae,Ke,!0):Ae.ended?Me.emit("error",new Error("stream.push() after EOF")):(Ae.reading=!1,Ae.decoder&&!ct?(Ke=Ae.decoder.write(Ke),Ae.objectMode||Ke.length!==0?De(Me,Ae,Ke,!1):We(Me,Ae)):De(Me,Ae,Ke,!1))):pt||(Ae.reading=!1)}return ke(Ae)}function De(Me,Ke,ct,pt){Ke.flowing&&Ke.length===0&&!Ke.sync?(Me.emit("data",ct),Me.read(0)):(Ke.length+=Ke.objectMode?1:ct.length,pt?Ke.buffer.unshift(ct):Ke.buffer.push(ct),Ke.needReadable&&ut(Me)),We(Me,Ke)}function Re(Me,Ke){var ct;return!fe(Ke)&&typeof Ke!="string"&&Ke!==void 0&&!Me.objectMode&&(ct=new TypeError("Invalid non-string/buffer chunk")),ct}function ke(Me){return!Me.ended&&(Me.needReadable||Me.length<Me.highWaterMark||Me.length===0)}ye.prototype.isPaused=function(){return this._readableState.flowing===!1},ye.prototype.setEncoding=function(Me){return Ce||(Ce=y("string_decoder/").StringDecoder),this._readableState.decoder=new Ce(Me),this._readableState.encoding=Me,this};var _e=8388608;function Ze(Me){return Me>=_e?Me=_e:(Me--,Me|=Me>>>1,Me|=Me>>>2,Me|=Me>>>4,Me|=Me>>>8,Me|=Me>>>16,Me++),Me}function Ve(Me,Ke){return Me<=0||Ke.length===0&&Ke.ended?0:Ke.objectMode?1:Me!==Me?Ke.flowing&&Ke.length?Ke.buffer.head.data.length:Ke.length:(Me>Ke.highWaterMark&&(Ke.highWaterMark=Ze(Me)),Me<=Ke.length?Me:Ke.ended?Ke.length:(Ke.needReadable=!0,0))}ye.prototype.read=function(Me){he("read",Me),Me=parseInt(Me,10);var Ke=this._readableState,ct=Me;if(Me!==0&&(Ke.emittedReadable=!1),Me===0&&Ke.needReadable&&(Ke.length>=Ke.highWaterMark||Ke.ended))return he("read: emitReadable",Ke.length,Ke.ended),Ke.length===0&&Ke.ended?He(this):ut(this),null;if(Me=Ve(Me,Ke),Me===0&&Ke.ended)return Ke.length===0&&He(this),null;var pt=Ke.needReadable;he("need readable",pt),(Ke.length===0||Ke.length-Me<Ke.highWaterMark)&&(pt=!0,he("length less than watermark",pt)),Ke.ended||Ke.reading?(pt=!1,he("reading or ended",pt)):pt&&(he("do read"),Ke.reading=!0,Ke.sync=!0,Ke.length===0&&(Ke.needReadable=!0),this._read(Ke.highWaterMark),Ke.sync=!1,Ke.reading||(Me=Ve(ct,Ke)));var rt;return Me>0?rt=dt(Me,Ke):rt=null,rt===null?(Ke.needReadable=!0,Me=0):Ke.length-=Me,Ke.length===0&&(Ke.ended||(Ke.needReadable=!0),ct!==Me&&Ke.ended&&He(this)),rt!==null&&this.emit("data",rt),rt};function Qe(Me,Ke){if(!Ke.ended){if(Ke.decoder){var ct=Ke.decoder.end();ct&&ct.length&&(Ke.buffer.push(ct),Ke.length+=Ke.objectMode?1:ct.length)}Ke.ended=!0,ut(Me)}}function ut(Me){var Ke=Me._readableState;Ke.needReadable=!1,Ke.emittedReadable||(he("emitReadable",Ke.flowing),Ke.emittedReadable=!0,Ke.sync?ie.nextTick(Ie,Me):Ie(Me))}function Ie(Me){he("emit readable"),Me.emit("readable"),Ye(Me)}function We(Me,Ke){Ke.readingMore||(Ke.readingMore=!0,ie.nextTick(it,Me,Ke))}function it(Me,Ke){for(var ct=Ke.length;!Ke.reading&&!Ke.flowing&&!Ke.ended&&Ke.length<Ke.highWaterMark&&(he("maybeReadMore read 0"),Me.read(0),ct!==Ke.length);)ct=Ke.length;Ke.readingMore=!1}ye.prototype._read=function(Me){this.emit("error",new Error("_read() is not implemented"))},ye.prototype.pipe=function(Me,Ke){var ct=this,pt=this._readableState;switch(pt.pipesCount){case 0:pt.pipes=Me;break;case 1:pt.pipes=[pt.pipes,Me];break;default:pt.pipes.push(Me);break}pt.pipesCount+=1,he("pipe count=%d opts=%j",pt.pipesCount,Ke);var rt=(!Ke||Ke.end!==!1)&&Me!==x.stdout&&Me!==x.stderr,Ae=rt?Ue:gt;pt.endEmitted?ie.nextTick(Ae):ct.once("end",Ae),Me.on("unpipe",Pe);function Pe(wt,bt){he("onunpipe"),wt===ct&&bt&&bt.hasUnpiped===!1&&(bt.hasUnpiped=!0,Se())}function Ue(){he("onend"),Me.end()}var ot=at(ct);Me.on("drain",ot);var Oe=!1;function Se(){he("cleanup"),Me.removeListener("close",Le),Me.removeListener("finish",mt),Me.removeListener("drain",ot),Me.removeListener("error",$e),Me.removeListener("unpipe",Pe),ct.removeListener("end",Ue),ct.removeListener("end",gt),ct.removeListener("data",Be),Oe=!0,pt.awaitDrain&&(!Me._writableState||Me._writableState.needDrain)&&ot()}var pe=!1;ct.on("data",Be);function Be(wt){he("ondata"),pe=!1;var bt=Me.write(wt);bt===!1&&!pe&&((pt.pipesCount===1&&pt.pipes===Me||pt.pipesCount>1&&Ge(pt.pipes,Me)!==-1)&&!Oe&&(he("false write response, pause",ct._readableState.awaitDrain),ct._readableState.awaitDrain++,pe=!0),ct.pause())}function $e(wt){he("onerror",wt),gt(),Me.removeListener("error",$e),E(Me,"error")===0&&Me.emit("error",wt)}Ee(Me,"error",$e);function Le(){Me.removeListener("finish",mt),gt()}Me.once("close",Le);function mt(){he("onfinish"),Me.removeListener("close",Le),gt()}Me.once("finish",mt);function gt(){he("unpipe"),ct.unpipe(Me)}return Me.emit("pipe",ct),pt.flowing||(he("pipe resume"),ct.resume()),Me};function at(Me){return function(){var Ke=Me._readableState;he("pipeOnDrain",Ke.awaitDrain),Ke.awaitDrain&&Ke.awaitDrain--,Ke.awaitDrain===0&&E(Me,"data")&&(Ke.flowing=!0,Ye(Me))}}ye.prototype.unpipe=function(Me){var Ke=this._readableState,ct={hasUnpiped:!1};if(Ke.pipesCount===0)return this;if(Ke.pipesCount===1)return Me&&Me!==Ke.pipes?this:(Me||(Me=Ke.pipes),Ke.pipes=null,Ke.pipesCount=0,Ke.flowing=!1,Me&&Me.emit("unpipe",this,ct),this);if(!Me){var pt=Ke.pipes,rt=Ke.pipesCount;Ke.pipes=null,Ke.pipesCount=0,Ke.flowing=!1;for(var Ae=0;Ae<rt;Ae++)pt[Ae].emit("unpipe",this,ct);return this}var Pe=Ge(Ke.pipes,Me);return Pe===-1?this:(Ke.pipes.splice(Pe,1),Ke.pipesCount-=1,Ke.pipesCount===1&&(Ke.pipes=Ke.pipes[0]),Me.emit("unpipe",this,ct),this)},ye.prototype.on=function(Me,Ke){var ct=ne.prototype.on.call(this,Me,Ke);if(Me==="data")this._readableState.flowing!==!1&&this.resume();else if(Me==="readable"){var pt=this._readableState;!pt.endEmitted&&!pt.readableListening&&(pt.readableListening=pt.needReadable=!0,pt.emittedReadable=!1,pt.reading?pt.length&&ut(this):ie.nextTick(nt,this))}return ct},ye.prototype.addListener=ye.prototype.on;function nt(Me){he("readable nexttick read 0"),Me.read(0)}ye.prototype.resume=function(){var Me=this._readableState;return Me.flowing||(he("resume"),Me.flowing=!0,Xe(this,Me)),this};function Xe(Me,Ke){Ke.resumeScheduled||(Ke.resumeScheduled=!0,ie.nextTick(et,Me,Ke))}function et(Me,Ke){Ke.reading||(he("resume read 0"),Me.read(0)),Ke.resumeScheduled=!1,Ke.awaitDrain=0,Me.emit("resume"),Ye(Me),Ke.flowing&&!Ke.reading&&Me.read(0)}ye.prototype.pause=function(){return he("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(he("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Ye(Me){var Ke=Me._readableState;for(he("flow",Ke.flowing);Ke.flowing&&Me.read()!==null;);}ye.prototype.wrap=function(Me){var Ke=this,ct=this._readableState,pt=!1;Me.on("end",function(){if(he("wrapped end"),ct.decoder&&!ct.ended){var Pe=ct.decoder.end();Pe&&Pe.length&&Ke.push(Pe)}Ke.push(null)}),Me.on("data",function(Pe){if(he("wrapped data"),ct.decoder&&(Pe=ct.decoder.write(Pe)),!(ct.objectMode&&Pe==null)&&!(!ct.objectMode&&(!Pe||!Pe.length))){var Ue=Ke.push(Pe);Ue||(pt=!0,Me.pause())}});for(var rt in Me)this[rt]===void 0&&typeof Me[rt]=="function"&&(this[rt]=function(Pe){return function(){return Me[Pe].apply(Me,arguments)}}(rt));for(var Ae=0;Ae<je.length;Ae++)Me.on(je[Ae],this.emit.bind(this,je[Ae]));return this._read=function(Pe){he("wrapped _read",Pe),pt&&(pt=!1,Me.resume())},this},Object.defineProperty(ye.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),ye._fromList=dt;function dt(Me,Ke){if(Ke.length===0)return null;var ct;return Ke.objectMode?ct=Ke.buffer.shift():!Me||Me>=Ke.length?(Ke.decoder?ct=Ke.buffer.join(""):Ke.buffer.length===1?ct=Ke.buffer.head.data:ct=Ke.buffer.concat(Ke.length),Ke.buffer.clear()):ct=tt(Me,Ke.buffer,Ke.decoder),ct}function tt(Me,Ke,ct){var pt;return Me<Ke.head.data.length?(pt=Ke.head.data.slice(0,Me),Ke.head.data=Ke.head.data.slice(Me)):Me===Ke.head.data.length?pt=Ke.shift():pt=ct?lt(Me,Ke):st(Me,Ke),pt}function lt(Me,Ke){var ct=Ke.head,pt=1,rt=ct.data;for(Me-=rt.length;ct=ct.next;){var Ae=ct.data,Pe=Me>Ae.length?Ae.length:Me;if(Pe===Ae.length?rt+=Ae:rt+=Ae.slice(0,Me),Me-=Pe,Me===0){Pe===Ae.length?(++pt,ct.next?Ke.head=ct.next:Ke.head=Ke.tail=null):(Ke.head=ct,ct.data=Ae.slice(Pe));break}++pt}return Ke.length-=pt,rt}function st(Me,Ke){var ct=te.allocUnsafe(Me),pt=Ke.head,rt=1;for(pt.data.copy(ct),Me-=pt.data.length;pt=pt.next;){var Ae=pt.data,Pe=Me>Ae.length?Ae.length:Me;if(Ae.copy(ct,ct.length-Me,0,Pe),Me-=Pe,Me===0){Pe===Ae.length?(++rt,pt.next?Ke.head=pt.next:Ke.head=Ke.tail=null):(Ke.head=pt,pt.data=Ae.slice(Pe));break}++rt}return Ke.length-=rt,ct}function He(Me){var Ke=Me._readableState;if(Ke.length>0)throw new Error('"endReadable()" called on non-empty stream');Ke.endEmitted||(Ke.ended=!0,ie.nextTick(Ne,Ke,Me))}function Ne(Me,Ke){!Me.endEmitted&&Me.length===0&&(Me.endEmitted=!0,Ke.readable=!1,Ke.emit("end"))}function Ge(Me,Ke){for(var ct=0,pt=Me.length;ct<pt;ct++)if(Me[ct]===Ke)return ct;return-1}}).call(this)}).call(this,y("_process"),typeof Zt!="undefined"?Zt: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,Te,be){"use strict";Te.exports=oe;var x=y("./_stream_duplex"),z=Object.create(y("core-util-is"));z.inherits=y("inherits"),z.inherits(oe,x);function ie(E,ne){var te=this._transformState;te.transforming=!1;var se=te.writecb;if(!se)return this.emit("error",new Error("write callback called multiple times"));te.writechunk=null,te.writecb=null,ne!=null&&this.push(ne),se(E);var ue=this._readableState;ue.reading=!1,(ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}function oe(E){if(!(this instanceof oe))return new oe(E);x.call(this,E),this._transformState={afterTransform:ie.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(ne,te){le(E,ne,te)}):le(this,null,null)}oe.prototype.push=function(E,ne){return this._transformState.needTransform=!1,x.prototype.push.call(this,E,ne)},oe.prototype._transform=function(E,ne,te){throw new Error("_transform() is not implemented")},oe.prototype._write=function(E,ne,te){var se=this._transformState;if(se.writecb=te,se.writechunk=E,se.writeencoding=ne,!se.transforming){var ue=this._readableState;(se.needTransform||ue.needReadable||ue.length<ue.highWaterMark)&&this._read(ue.highWaterMark)}},oe.prototype._read=function(E){var ne=this._transformState;ne.writechunk!==null&&ne.writecb&&!ne.transforming?(ne.transforming=!0,this._transform(ne.writechunk,ne.writeencoding,ne.afterTransform)):ne.needTransform=!0},oe.prototype._destroy=function(E,ne){var te=this;x.prototype._destroy.call(this,E,function(se){ne(se),te.emit("close")})};function le(E,ne,te){if(ne)return E.emit("error",ne);if(te!=null&&E.push(te),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,Te,be){(function(x,z,ie){(function(){"use strict";var oe=y("process-nextick-args");Te.exports=Ee;function ee(et,Ye,dt){this.chunk=et,this.encoding=Ye,this.callback=dt,this.next=null}function le(et){var Ye=this;this.next=null,this.entry=null,this.finish=function(){Xe(Ye,et)}}var E=!x.browser&&["v0.10","v0.9."].indexOf(x.version.slice(0,5))>-1?ie:oe.nextTick,ne;Ee.WritableState=Ce;var te=Object.create(y("core-util-is"));te.inherits=y("inherits");var se={deprecate:y("util-deprecate")},ue=y("./internal/streams/stream"),fe=y("safe-buffer").Buffer,me=z.Uint8Array||function(){};function ve(et){return fe.from(et)}function he(et){return fe.isBuffer(et)||et instanceof me}var ge=y("./internal/streams/destroy");te.inherits(Ee,ue);function xe(){}function Ce(et,Ye){ne=ne||y("./_stream_duplex"),et=et||{};var dt=Ye instanceof ne;this.objectMode=!!et.objectMode,dt&&(this.objectMode=this.objectMode||!!et.writableObjectMode);var tt=et.highWaterMark,lt=et.writableHighWaterMark,st=this.objectMode?16:16*1024;tt||tt===0?this.highWaterMark=tt:dt&&(lt||lt===0)?this.highWaterMark=lt:this.highWaterMark=st,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var He=et.decodeStrings===!1;this.decodeStrings=!He,this.defaultEncoding=et.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Ne){Ze(Ye,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 le(this)}Ce.prototype.getBuffer=function(){for(var Ye=this.bufferedRequest,dt=[];Ye;)dt.push(Ye),Ye=Ye.next;return dt},function(){try{Object.defineProperty(Ce.prototype,"buffer",{get:se.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(et){}}();var je;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(je=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ee,Symbol.hasInstance,{value:function(et){return je.call(this,et)?!0:this!==Ee?!1:et&&et._writableState instanceof Ce}})):je=function(et){return et instanceof this};function Ee(et){if(ne=ne||y("./_stream_duplex"),!je.call(Ee,this)&&!(this instanceof ne))return new Ee(et);this._writableState=new Ce(et,this),this.writable=!0,et&&(typeof et.write=="function"&&(this._write=et.write),typeof et.writev=="function"&&(this._writev=et.writev),typeof et.destroy=="function"&&(this._destroy=et.destroy),typeof et.final=="function"&&(this._final=et.final)),ue.call(this)}Ee.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function ce(et,Ye){var dt=new Error("write after end");et.emit("error",dt),oe.nextTick(Ye,dt)}function ye(et,Ye,dt,tt){var lt=!0,st=!1;return dt===null?st=new TypeError("May not write null values to stream"):typeof dt!="string"&&dt!==void 0&&!Ye.objectMode&&(st=new TypeError("Invalid non-string/buffer chunk")),st&&(et.emit("error",st),oe.nextTick(tt,st),lt=!1),lt}Ee.prototype.write=function(et,Ye,dt){var tt=this._writableState,lt=!1,st=!tt.objectMode&&he(et);return st&&!fe.isBuffer(et)&&(et=ve(et)),typeof Ye=="function"&&(dt=Ye,Ye=null),st?Ye="buffer":Ye||(Ye=tt.defaultEncoding),typeof dt!="function"&&(dt=xe),tt.ended?ce(this,dt):(st||ye(this,tt,et,dt))&&(tt.pendingcb++,lt=De(this,tt,st,et,Ye,dt)),lt},Ee.prototype.cork=function(){var et=this._writableState;et.corked++},Ee.prototype.uncork=function(){var et=this._writableState;et.corked&&(et.corked--,!et.writing&&!et.corked&&!et.finished&&!et.bufferProcessing&&et.bufferedRequest&&ut(this,et))},Ee.prototype.setDefaultEncoding=function(Ye){if(typeof Ye=="string"&&(Ye=Ye.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ye+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ye);return this._writableState.defaultEncoding=Ye,this};function we(et,Ye,dt){return!et.objectMode&&et.decodeStrings!==!1&&typeof Ye=="string"&&(Ye=fe.from(Ye,dt)),Ye}Object.defineProperty(Ee.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function De(et,Ye,dt,tt,lt,st){if(!dt){var He=we(Ye,tt,lt);tt!==He&&(dt=!0,lt="buffer",tt=He)}var Ne=Ye.objectMode?1:tt.length;Ye.length+=Ne;var Ge=Ye.length<Ye.highWaterMark;if(Ge||(Ye.needDrain=!0),Ye.writing||Ye.corked){var Me=Ye.lastBufferedRequest;Ye.lastBufferedRequest={chunk:tt,encoding:lt,isBuf:dt,callback:st,next:null},Me?Me.next=Ye.lastBufferedRequest:Ye.bufferedRequest=Ye.lastBufferedRequest,Ye.bufferedRequestCount+=1}else Re(et,Ye,!1,Ne,tt,lt,st);return Ge}function Re(et,Ye,dt,tt,lt,st,He){Ye.writelen=tt,Ye.writecb=He,Ye.writing=!0,Ye.sync=!0,dt?et._writev(lt,Ye.onwrite):et._write(lt,st,Ye.onwrite),Ye.sync=!1}function ke(et,Ye,dt,tt,lt){--Ye.pendingcb,dt?(oe.nextTick(lt,tt),oe.nextTick(at,et,Ye),et._writableState.errorEmitted=!0,et.emit("error",tt)):(lt(tt),et._writableState.errorEmitted=!0,et.emit("error",tt),at(et,Ye))}function _e(et){et.writing=!1,et.writecb=null,et.length-=et.writelen,et.writelen=0}function Ze(et,Ye){var dt=et._writableState,tt=dt.sync,lt=dt.writecb;if(_e(dt),Ye)ke(et,dt,tt,Ye,lt);else{var st=Ie(dt);!st&&!dt.corked&&!dt.bufferProcessing&&dt.bufferedRequest&&ut(et,dt),tt?E(Ve,et,dt,st,lt):Ve(et,dt,st,lt)}}function Ve(et,Ye,dt,tt){dt||Qe(et,Ye),Ye.pendingcb--,tt(),at(et,Ye)}function Qe(et,Ye){Ye.length===0&&Ye.needDrain&&(Ye.needDrain=!1,et.emit("drain"))}function ut(et,Ye){Ye.bufferProcessing=!0;var dt=Ye.bufferedRequest;if(et._writev&&dt&&dt.next){var tt=Ye.bufferedRequestCount,lt=new Array(tt),st=Ye.corkedRequestsFree;st.entry=dt;for(var He=0,Ne=!0;dt;)lt[He]=dt,dt.isBuf||(Ne=!1),dt=dt.next,He+=1;lt.allBuffers=Ne,Re(et,Ye,!0,Ye.length,lt,"",st.finish),Ye.pendingcb++,Ye.lastBufferedRequest=null,st.next?(Ye.corkedRequestsFree=st.next,st.next=null):Ye.corkedRequestsFree=new le(Ye),Ye.bufferedRequestCount=0}else{for(;dt;){var Ge=dt.chunk,Me=dt.encoding,Ke=dt.callback,ct=Ye.objectMode?1:Ge.length;if(Re(et,Ye,!1,ct,Ge,Me,Ke),dt=dt.next,Ye.bufferedRequestCount--,Ye.writing)break}dt===null&&(Ye.lastBufferedRequest=null)}Ye.bufferedRequest=dt,Ye.bufferProcessing=!1}Ee.prototype._write=function(et,Ye,dt){dt(new Error("_write() is not implemented"))},Ee.prototype._writev=null,Ee.prototype.end=function(et,Ye,dt){var tt=this._writableState;typeof et=="function"?(dt=et,et=null,Ye=null):typeof Ye=="function"&&(dt=Ye,Ye=null),et!=null&&this.write(et,Ye),tt.corked&&(tt.corked=1,this.uncork()),!tt.ending&&!tt.finished&&nt(this,tt,dt)};function Ie(et){return et.ending&&et.length===0&&et.bufferedRequest===null&&!et.finished&&!et.writing}function We(et,Ye){et._final(function(dt){Ye.pendingcb--,dt&&et.emit("error",dt),Ye.prefinished=!0,et.emit("prefinish"),at(et,Ye)})}function it(et,Ye){!Ye.prefinished&&!Ye.finalCalled&&(typeof et._final=="function"?(Ye.pendingcb++,Ye.finalCalled=!0,oe.nextTick(We,et,Ye)):(Ye.prefinished=!0,et.emit("prefinish")))}function at(et,Ye){var dt=Ie(Ye);return dt&&(it(et,Ye),Ye.pendingcb===0&&(Ye.finished=!0,et.emit("finish"))),dt}function nt(et,Ye,dt){Ye.ending=!0,at(et,Ye),dt&&(Ye.finished?oe.nextTick(dt):et.once("finish",dt)),Ye.ended=!0,et.writable=!1}function Xe(et,Ye,dt){var tt=et.entry;for(et.entry=null;tt;){var lt=tt.callback;Ye.pendingcb--,lt(dt),tt=tt.next}Ye.corkedRequestsFree?Ye.corkedRequestsFree.next=et:Ye.corkedRequestsFree=et}Object.defineProperty(Ee.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(et){this._writableState&&(this._writableState.destroyed=et)}}),Ee.prototype.destroy=ge.destroy,Ee.prototype._undestroy=ge.undestroy,Ee.prototype._destroy=function(et,Ye){this.end(),Ye(et)}}).call(this)}).call(this,y("_process"),typeof Zt!="undefined"?Zt: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,Te,be){"use strict";function x(ee,le){if(!(ee instanceof le))throw new TypeError("Cannot call a class as a function")}var z=y("safe-buffer").Buffer,ie=y("util");function oe(ee,le,E){ee.copy(le,E)}Te.exports=function(){function ee(){x(this,ee),this.head=null,this.tail=null,this.length=0}return ee.prototype.push=function(E){var ne={data:E,next:null};this.length>0?this.tail.next=ne:this.head=ne,this.tail=ne,++this.length},ee.prototype.unshift=function(E){var ne={data:E,next:this.head};this.length===0&&(this.tail=ne),this.head=ne,++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 ne=this.head,te=""+ne.data;ne=ne.next;)te+=E+ne.data;return te},ee.prototype.concat=function(E){if(this.length===0)return z.alloc(0);if(this.length===1)return this.head.data;for(var ne=z.allocUnsafe(E>>>0),te=this.head,se=0;te;)oe(te.data,ne,se),se+=te.data.length,te=te.next;return ne},ee}(),ie&&ie.inspect&&ie.inspect.custom&&(Te.exports.prototype[ie.inspect.custom]=function(){var ee=ie.inspect({length:this.length});return this.constructor.name+" "+ee})},{"safe-buffer":396,util:89}],392:[function(y,Te,be){"use strict";var x=y("process-nextick-args");function z(ee,le){var E=this,ne=this._readableState&&this._readableState.destroyed,te=this._writableState&&this._writableState.destroyed;return ne||te?(le?le(ee):ee&&(!this._writableState||!this._writableState.errorEmitted)&&x.nextTick(oe,this,ee),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ee||null,function(se){!le&&se?(x.nextTick(oe,E,se),E._writableState&&(E._writableState.errorEmitted=!0)):le&&le(se)}),this)}function ie(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function oe(ee,le){ee.emit("error",le)}Te.exports={destroy:z,undestroy:ie}},{"process-nextick-args":380}],393:[function(y,Te,be){Te.exports=y("events").EventEmitter},{events:344}],394:[function(y,Te,be){be=Te.exports=y("./lib/_stream_readable.js"),be.Stream=be,be.Readable=be,be.Writable=y("./lib/_stream_writable.js"),be.Duplex=y("./lib/_stream_duplex.js"),be.Transform=y("./lib/_stream_transform.js"),be.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,Te,be){var x=function(z){"use strict";var ie=Object.prototype,oe=ie.hasOwnProperty,ee,le=typeof Symbol=="function"?Symbol:{},E=le.iterator||"@@iterator",ne=le.asyncIterator||"@@asyncIterator",te=le.toStringTag||"@@toStringTag";function se(it,at,nt){return Object.defineProperty(it,at,{value:nt,enumerable:!0,configurable:!0,writable:!0}),it[at]}try{se({},"")}catch(it){se=function(at,nt,Xe){return at[nt]=Xe}}function ue(it,at,nt,Xe){var et=at&&at.prototype instanceof Ce?at:Ce,Ye=Object.create(et.prototype),dt=new ut(Xe||[]);return Ye._invoke=_e(it,nt,dt),Ye}z.wrap=ue;function fe(it,at,nt){try{return{type:"normal",arg:it.call(at,nt)}}catch(Xe){return{type:"throw",arg:Xe}}}var me="suspendedStart",ve="suspendedYield",he="executing",ge="completed",xe={};function Ce(){}function je(){}function Ee(){}var ce={};se(ce,E,function(){return this});var ye=Object.getPrototypeOf,we=ye&&ye(ye(Ie([])));we&&we!==ie&&oe.call(we,E)&&(ce=we);var De=Ee.prototype=Ce.prototype=Object.create(ce);je.prototype=Ee,se(De,"constructor",Ee),se(Ee,"constructor",je),je.displayName=se(Ee,te,"GeneratorFunction");function Re(it){["next","throw","return"].forEach(function(at){se(it,at,function(nt){return this._invoke(at,nt)})})}z.isGeneratorFunction=function(it){var at=typeof it=="function"&&it.constructor;return at?at===je||(at.displayName||at.name)==="GeneratorFunction":!1},z.mark=function(it){return Object.setPrototypeOf?Object.setPrototypeOf(it,Ee):(it.__proto__=Ee,se(it,te,"GeneratorFunction")),it.prototype=Object.create(De),it},z.awrap=function(it){return{__await:it}};function ke(it,at){function nt(Ye,dt,tt,lt){var st=fe(it[Ye],it,dt);if(st.type==="throw")lt(st.arg);else{var He=st.arg,Ne=He.value;return Ne&&typeof Ne=="object"&&oe.call(Ne,"__await")?at.resolve(Ne.__await).then(function(Ge){nt("next",Ge,tt,lt)},function(Ge){nt("throw",Ge,tt,lt)}):at.resolve(Ne).then(function(Ge){He.value=Ge,tt(He)},function(Ge){return nt("throw",Ge,tt,lt)})}}var Xe;function et(Ye,dt){function tt(){return new at(function(lt,st){nt(Ye,dt,lt,st)})}return Xe=Xe?Xe.then(tt,tt):tt()}this._invoke=et}Re(ke.prototype),se(ke.prototype,ne,function(){return this}),z.AsyncIterator=ke,z.async=function(it,at,nt,Xe,et){et===void 0&&(et=Promise);var Ye=new ke(ue(it,at,nt,Xe),et);return z.isGeneratorFunction(at)?Ye:Ye.next().then(function(dt){return dt.done?dt.value:Ye.next()})};function _e(it,at,nt){var Xe=me;return function(Ye,dt){if(Xe===he)throw new Error("Generator is already running");if(Xe===ge){if(Ye==="throw")throw dt;return We()}for(nt.method=Ye,nt.arg=dt;;){var tt=nt.delegate;if(tt){var lt=Ze(tt,nt);if(lt){if(lt===xe)continue;return lt}}if(nt.method==="next")nt.sent=nt._sent=nt.arg;else if(nt.method==="throw"){if(Xe===me)throw Xe=ge,nt.arg;nt.dispatchException(nt.arg)}else nt.method==="return"&&nt.abrupt("return",nt.arg);Xe=he;var st=fe(it,at,nt);if(st.type==="normal"){if(Xe=nt.done?ge:ve,st.arg===xe)continue;return{value:st.arg,done:nt.done}}else st.type==="throw"&&(Xe=ge,nt.method="throw",nt.arg=st.arg)}}}function Ze(it,at){var nt=it.iterator[at.method];if(nt===ee){if(at.delegate=null,at.method==="throw"){if(it.iterator.return&&(at.method="return",at.arg=ee,Ze(it,at),at.method==="throw"))return xe;at.method="throw",at.arg=new TypeError("The iterator does not provide a 'throw' method")}return xe}var Xe=fe(nt,it.iterator,at.arg);if(Xe.type==="throw")return at.method="throw",at.arg=Xe.arg,at.delegate=null,xe;var et=Xe.arg;if(!et)return at.method="throw",at.arg=new TypeError("iterator result is not an object"),at.delegate=null,xe;if(et.done)at[it.resultName]=et.value,at.next=it.nextLoc,at.method!=="return"&&(at.method="next",at.arg=ee);else return et;return at.delegate=null,xe}Re(De),se(De,te,"Generator"),se(De,E,function(){return this}),se(De,"toString",function(){return"[object Generator]"});function Ve(it){var at={tryLoc:it[0]};1 in it&&(at.catchLoc=it[1]),2 in it&&(at.finallyLoc=it[2],at.afterLoc=it[3]),this.tryEntries.push(at)}function Qe(it){var at=it.completion||{};at.type="normal",delete at.arg,it.completion=at}function ut(it){this.tryEntries=[{tryLoc:"root"}],it.forEach(Ve,this),this.reset(!0)}z.keys=function(it){var at=[];for(var nt in it)at.push(nt);return at.reverse(),function Xe(){for(;at.length;){var et=at.pop();if(et in it)return Xe.value=et,Xe.done=!1,Xe}return Xe.done=!0,Xe}};function Ie(it){if(it){var at=it[E];if(at)return at.call(it);if(typeof it.next=="function")return it;if(!isNaN(it.length)){var nt=-1,Xe=function et(){for(;++nt<it.length;)if(oe.call(it,nt))return et.value=it[nt],et.done=!1,et;return et.value=ee,et.done=!0,et};return Xe.next=Xe}}return{next:We}}z.values=Ie;function We(){return{value:ee,done:!0}}return ut.prototype={constructor:ut,reset:function(it){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(Qe),!it)for(var at in this)at.charAt(0)==="t"&&oe.call(this,at)&&!isNaN(+at.slice(1))&&(this[at]=ee)},stop:function(){this.done=!0;var it=this.tryEntries[0],at=it.completion;if(at.type==="throw")throw at.arg;return this.rval},dispatchException:function(it){if(this.done)throw it;var at=this;function nt(lt,st){return Ye.type="throw",Ye.arg=it,at.next=lt,st&&(at.method="next",at.arg=ee),!!st}for(var Xe=this.tryEntries.length-1;Xe>=0;--Xe){var et=this.tryEntries[Xe],Ye=et.completion;if(et.tryLoc==="root")return nt("end");if(et.tryLoc<=this.prev){var dt=oe.call(et,"catchLoc"),tt=oe.call(et,"finallyLoc");if(dt&&tt){if(this.prev<et.catchLoc)return nt(et.catchLoc,!0);if(this.prev<et.finallyLoc)return nt(et.finallyLoc)}else if(dt){if(this.prev<et.catchLoc)return nt(et.catchLoc,!0)}else if(tt){if(this.prev<et.finallyLoc)return nt(et.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(it,at){for(var nt=this.tryEntries.length-1;nt>=0;--nt){var Xe=this.tryEntries[nt];if(Xe.tryLoc<=this.prev&&oe.call(Xe,"finallyLoc")&&this.prev<Xe.finallyLoc){var et=Xe;break}}et&&(it==="break"||it==="continue")&&et.tryLoc<=at&&at<=et.finallyLoc&&(et=null);var Ye=et?et.completion:{};return Ye.type=it,Ye.arg=at,et?(this.method="next",this.next=et.finallyLoc,xe):this.complete(Ye)},complete:function(it,at){if(it.type==="throw")throw it.arg;return it.type==="break"||it.type==="continue"?this.next=it.arg:it.type==="return"?(this.rval=this.arg=it.arg,this.method="return",this.next="end"):it.type==="normal"&&at&&(this.next=at),xe},finish:function(it){for(var at=this.tryEntries.length-1;at>=0;--at){var nt=this.tryEntries[at];if(nt.finallyLoc===it)return this.complete(nt.completion,nt.afterLoc),Qe(nt),xe}},catch:function(it){for(var at=this.tryEntries.length-1;at>=0;--at){var nt=this.tryEntries[at];if(nt.tryLoc===it){var Xe=nt.completion;if(Xe.type==="throw"){var et=Xe.arg;Qe(nt)}return et}}throw new Error("illegal catch attempt")},delegateYield:function(it,at,nt){return this.delegate={iterator:Ie(it),resultName:at,nextLoc:nt},this.method==="next"&&(this.arg=ee),xe}},z}(typeof Te=="object"?Te.exports:{});try{regeneratorRuntime=x}catch(z){typeof globalThis=="object"?globalThis.regeneratorRuntime=x:Function("r","regeneratorRuntime = r")(x)}},{}],396:[function(y,Te,be){var x=y("buffer"),z=x.Buffer;function ie(ee,le){for(var E in ee)le[E]=ee[E]}z.from&&z.alloc&&z.allocUnsafe&&z.allocUnsafeSlow?Te.exports=x:(ie(x,be),be.Buffer=oe);function oe(ee,le,E){return z(ee,le,E)}ie(z,oe),oe.from=function(ee,le,E){if(typeof ee=="number")throw new TypeError("Argument must not be a number");return z(ee,le,E)},oe.alloc=function(ee,le,E){if(typeof ee!="number")throw new TypeError("Argument must be a number");var ne=z(ee);return le!==void 0?typeof E=="string"?ne.fill(le,E):ne.fill(le):ne.fill(0),ne},oe.allocUnsafe=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return z(ee)},oe.allocUnsafeSlow=function(ee){if(typeof ee!="number")throw new TypeError("Argument must be a number");return x.SlowBuffer(ee)}},{buffer:90}],397:[function(y,Te,be){(function(x){(function(){(function(z){z.parser=function(He,Ne){return new oe(He,Ne)},z.SAXParser=oe,z.SAXStream=ue,z.createStream=se,z.MAX_BUFFER_LENGTH=64*1024;var ie=["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 oe(He,Ne){if(!(this instanceof oe))return new oe(He,Ne);var Ge=this;le(Ge),Ge.q=Ge.c="",Ge.bufferCheckPosition=z.MAX_BUFFER_LENGTH,Ge.opt=Ne||{},Ge.opt.lowercase=Ge.opt.lowercase||Ge.opt.lowercasetags,Ge.looseCase=Ge.opt.lowercase?"toLowerCase":"toUpperCase",Ge.tags=[],Ge.closed=Ge.closedRoot=Ge.sawRoot=!1,Ge.tag=Ge.error=null,Ge.strict=!!He,Ge.noscript=!!(He||Ge.opt.noscript),Ge.state=ke.BEGIN,Ge.strictEntities=Ge.opt.strictEntities,Ge.ENTITIES=Ge.strictEntities?Object.create(z.XML_ENTITIES):Object.create(z.ENTITIES),Ge.attribList=[],Ge.opt.xmlns&&(Ge.ns=Object.create(ge)),Ge.trackPosition=Ge.opt.position!==!1,Ge.trackPosition&&(Ge.position=Ge.line=Ge.column=0),Ze(Ge,"onready")}Object.create||(Object.create=function(He){function Ne(){}Ne.prototype=He;var Ge=new Ne;return Ge}),Object.keys||(Object.keys=function(He){var Ne=[];for(var Ge in He)He.hasOwnProperty(Ge)&&Ne.push(Ge);return Ne});function ee(He){for(var Ne=Math.max(z.MAX_BUFFER_LENGTH,10),Ge=0,Me=0,Ke=ie.length;Me<Ke;Me++){var ct=He[ie[Me]].length;if(ct>Ne)switch(ie[Me]){case"textNode":Qe(He);break;case"cdata":Ve(He,"oncdata",He.cdata),He.cdata="";break;case"script":Ve(He,"onscript",He.script),He.script="";break;default:Ie(He,"Max buffer length exceeded: "+ie[Me])}Ge=Math.max(Ge,ct)}var pt=z.MAX_BUFFER_LENGTH-Ge;He.bufferCheckPosition=pt+He.position}function le(He){for(var Ne=0,Ge=ie.length;Ne<Ge;Ne++)He[ie[Ne]]=""}function E(He){Qe(He),He.cdata!==""&&(Ve(He,"oncdata",He.cdata),He.cdata=""),He.script!==""&&(Ve(He,"onscript",He.script),He.script="")}oe.prototype={end:function(){We(this)},write:st,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){E(this)}};var ne;try{ne=y("stream").Stream}catch(He){ne=function(){}}var te=z.EVENTS.filter(function(He){return He!=="error"&&He!=="end"});function se(He,Ne){return new ue(He,Ne)}function ue(He,Ne){if(!(this instanceof ue))return new ue(He,Ne);ne.apply(this),this._parser=new oe(He,Ne),this.writable=!0,this.readable=!0;var Ge=this;this._parser.onend=function(){Ge.emit("end")},this._parser.onerror=function(Me){Ge.emit("error",Me),Ge._parser.error=null},this._decoder=null,te.forEach(function(Me){Object.defineProperty(Ge,"on"+Me,{get:function(){return Ge._parser["on"+Me]},set:function(Ke){if(!Ke)return Ge.removeAllListeners(Me),Ge._parser["on"+Me]=Ke,Ke;Ge.on(Me,Ke)},enumerable:!0,configurable:!1})})}ue.prototype=Object.create(ne.prototype,{constructor:{value:ue}}),ue.prototype.write=function(He){if(typeof x=="function"&&typeof x.isBuffer=="function"&&x.isBuffer(He)){if(!this._decoder){var Ne=y("string_decoder").StringDecoder;this._decoder=new Ne("utf8")}He=this._decoder.write(He)}return this._parser.write(He.toString()),this.emit("data",He),!0},ue.prototype.end=function(He){return He&&He.length&&this.write(He),this._parser.end(),!0},ue.prototype.on=function(He,Ne){var Ge=this;return!Ge._parser["on"+He]&&te.indexOf(He)!==-1&&(Ge._parser["on"+He]=function(){var Me=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);Me.splice(0,0,He),Ge.emit.apply(Ge,Me)}),ne.prototype.on.call(Ge,He,Ne)};var fe="[CDATA[",me="DOCTYPE",ve="http://www.w3.org/XML/1998/namespace",he="http://www.w3.org/2000/xmlns/",ge={xml:ve,xmlns:he},xe=/[:_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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,je=/[#:_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]/,Ee=/[#:_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 ce(He){return He===" "||He===`
`||He==="\r"||He===" "}function ye(He){return He==='"'||He==="'"}function we(He){return He===">"||ce(He)}function De(He,Ne){return He.test(Ne)}function Re(He,Ne){return!De(He,Ne)}var ke=0;z.STATE={BEGIN:ke++,BEGIN_WHITESPACE:ke++,TEXT:ke++,TEXT_ENTITY:ke++,OPEN_WAKA:ke++,SGML_DECL:ke++,SGML_DECL_QUOTED:ke++,DOCTYPE:ke++,DOCTYPE_QUOTED:ke++,DOCTYPE_DTD:ke++,DOCTYPE_DTD_QUOTED:ke++,COMMENT_STARTING:ke++,COMMENT:ke++,COMMENT_ENDING:ke++,COMMENT_ENDED:ke++,CDATA:ke++,CDATA_ENDING:ke++,CDATA_ENDING_2:ke++,PROC_INST:ke++,PROC_INST_BODY:ke++,PROC_INST_ENDING:ke++,OPEN_TAG:ke++,OPEN_TAG_SLASH:ke++,ATTRIB:ke++,ATTRIB_NAME:ke++,ATTRIB_NAME_SAW_WHITE:ke++,ATTRIB_VALUE:ke++,ATTRIB_VALUE_QUOTED:ke++,ATTRIB_VALUE_CLOSED:ke++,ATTRIB_VALUE_UNQUOTED:ke++,ATTRIB_VALUE_ENTITY_Q:ke++,ATTRIB_VALUE_ENTITY_U:ke++,CLOSE_TAG:ke++,CLOSE_TAG_SAW_WHITE:ke++,SCRIPT:ke++,SCRIPT_ENDING:ke++},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(He){var Ne=z.ENTITIES[He],Ge=typeof Ne=="number"?String.fromCharCode(Ne):Ne;z.ENTITIES[He]=Ge});for(var _e in z.STATE)z.STATE[z.STATE[_e]]=_e;ke=z.STATE;function Ze(He,Ne,Ge){He[Ne]&&He[Ne](Ge)}function Ve(He,Ne,Ge){He.textNode&&Qe(He),Ze(He,Ne,Ge)}function Qe(He){He.textNode=ut(He.opt,He.textNode),He.textNode&&Ze(He,"ontext",He.textNode),He.textNode=""}function ut(He,Ne){return He.trim&&(Ne=Ne.trim()),He.normalize&&(Ne=Ne.replace(/\s+/g," ")),Ne}function Ie(He,Ne){return Qe(He),He.trackPosition&&(Ne+=`
Line: `+He.line+`
Column: `+He.column+`
Char: `+He.c),Ne=new Error(Ne),He.error=Ne,Ze(He,"onerror",Ne),He}function We(He){return He.sawRoot&&!He.closedRoot&&it(He,"Unclosed root tag"),He.state!==ke.BEGIN&&He.state!==ke.BEGIN_WHITESPACE&&He.state!==ke.TEXT&&Ie(He,"Unexpected end"),Qe(He),He.c="",He.closed=!0,Ze(He,"onend"),oe.call(He,He.strict,He.opt),He}function it(He,Ne){if(typeof He!="object"||!(He instanceof oe))throw new Error("bad call to strictFail");He.strict&&Ie(He,Ne)}function at(He){He.strict||(He.tagName=He.tagName[He.looseCase]());var Ne=He.tags[He.tags.length-1]||He,Ge=He.tag={name:He.tagName,attributes:{}};He.opt.xmlns&&(Ge.ns=Ne.ns),He.attribList.length=0,Ve(He,"onopentagstart",Ge)}function nt(He,Ne){var Ge=He.indexOf(":"),Me=Ge<0?["",He]:He.split(":"),Ke=Me[0],ct=Me[1];return Ne&&He==="xmlns"&&(Ke="xmlns",ct=""),{prefix:Ke,local:ct}}function Xe(He){if(He.strict||(He.attribName=He.attribName[He.looseCase]()),He.attribList.indexOf(He.attribName)!==-1||He.tag.attributes.hasOwnProperty(He.attribName)){He.attribName=He.attribValue="";return}if(He.opt.xmlns){var Ne=nt(He.attribName,!0),Ge=Ne.prefix,Me=Ne.local;if(Ge==="xmlns")if(Me==="xml"&&He.attribValue!==ve)it(He,"xml: prefix must be bound to "+ve+`
Actual: `+He.attribValue);else if(Me==="xmlns"&&He.attribValue!==he)it(He,"xmlns: prefix must be bound to "+he+`
Actual: `+He.attribValue);else{var Ke=He.tag,ct=He.tags[He.tags.length-1]||He;Ke.ns===ct.ns&&(Ke.ns=Object.create(ct.ns)),Ke.ns[Me]=He.attribValue}He.attribList.push([He.attribName,He.attribValue])}else He.tag.attributes[He.attribName]=He.attribValue,Ve(He,"onattribute",{name:He.attribName,value:He.attribValue});He.attribName=He.attribValue=""}function et(He,Ne){if(He.opt.xmlns){var Ge=He.tag,Me=nt(He.tagName);Ge.prefix=Me.prefix,Ge.local=Me.local,Ge.uri=Ge.ns[Me.prefix]||"",Ge.prefix&&!Ge.uri&&(it(He,"Unbound namespace prefix: "+JSON.stringify(He.tagName)),Ge.uri=Me.prefix);var Ke=He.tags[He.tags.length-1]||He;Ge.ns&&Ke.ns!==Ge.ns&&Object.keys(Ge.ns).forEach(function(Be){Ve(He,"onopennamespace",{prefix:Be,uri:Ge.ns[Be]})});for(var ct=0,pt=He.attribList.length;ct<pt;ct++){var rt=He.attribList[ct],Ae=rt[0],Pe=rt[1],Ue=nt(Ae,!0),ot=Ue.prefix,Oe=Ue.local,Se=ot===""?"":Ge.ns[ot]||"",pe={name:Ae,value:Pe,prefix:ot,local:Oe,uri:Se};ot&&ot!=="xmlns"&&!Se&&(it(He,"Unbound namespace prefix: "+JSON.stringify(ot)),pe.uri=ot),He.tag.attributes[Ae]=pe,Ve(He,"onattribute",pe)}He.attribList.length=0}He.tag.isSelfClosing=!!Ne,He.sawRoot=!0,He.tags.push(He.tag),Ve(He,"onopentag",He.tag),Ne||(!He.noscript&&He.tagName.toLowerCase()==="script"?He.state=ke.SCRIPT:He.state=ke.TEXT,He.tag=null,He.tagName=""),He.attribName=He.attribValue="",He.attribList.length=0}function Ye(He){if(!He.tagName){it(He,"Weird empty close tag."),He.textNode+="</>",He.state=ke.TEXT;return}if(He.script){if(He.tagName!=="script"){He.script+="</"+He.tagName+">",He.tagName="",He.state=ke.SCRIPT;return}Ve(He,"onscript",He.script),He.script=""}var Ne=He.tags.length,Ge=He.tagName;He.strict||(Ge=Ge[He.looseCase]());for(var Me=Ge;Ne--;){var Ke=He.tags[Ne];if(Ke.name!==Me)it(He,"Unexpected close tag");else break}if(Ne<0){it(He,"Unmatched closing tag: "+He.tagName),He.textNode+="</"+He.tagName+">",He.state=ke.TEXT;return}He.tagName=Ge;for(var ct=He.tags.length;ct-- >Ne;){var pt=He.tag=He.tags.pop();He.tagName=He.tag.name,Ve(He,"onclosetag",He.tagName);var rt={};for(var Ae in pt.ns)rt[Ae]=pt.ns[Ae];var Pe=He.tags[He.tags.length-1]||He;He.opt.xmlns&&pt.ns!==Pe.ns&&Object.keys(pt.ns).forEach(function(Ue){var ot=pt.ns[Ue];Ve(He,"onclosenamespace",{prefix:Ue,uri:ot})})}Ne===0&&(He.closedRoot=!0),He.tagName=He.attribValue=He.attribName="",He.attribList.length=0,He.state=ke.TEXT}function dt(He){var Ne=He.entity,Ge=Ne.toLowerCase(),Me,Ke="";return He.ENTITIES[Ne]?He.ENTITIES[Ne]:He.ENTITIES[Ge]?He.ENTITIES[Ge]:(Ne=Ge,Ne.charAt(0)==="#"&&(Ne.charAt(1)==="x"?(Ne=Ne.slice(2),Me=parseInt(Ne,16),Ke=Me.toString(16)):(Ne=Ne.slice(1),Me=parseInt(Ne,10),Ke=Me.toString(10))),Ne=Ne.replace(/^0+/,""),isNaN(Me)||Ke.toLowerCase()!==Ne?(it(He,"Invalid character entity"),"&"+He.entity+";"):String.fromCodePoint(Me))}function tt(He,Ne){Ne==="<"?(He.state=ke.OPEN_WAKA,He.startTagPosition=He.position):ce(Ne)||(it(He,"Non-whitespace before first tag."),He.textNode=Ne,He.state=ke.TEXT)}function lt(He,Ne){var Ge="";return Ne<He.length&&(Ge=He.charAt(Ne)),Ge}function st(He){var Ne=this;if(this.error)throw this.error;if(Ne.closed)return Ie(Ne,"Cannot write after close. Assign an onready handler.");if(He===null)return We(Ne);typeof He=="object"&&(He=He.toString());for(var Ge=0,Me="";Me=lt(He,Ge++),Ne.c=Me,!!Me;)switch(Ne.trackPosition&&(Ne.position++,Me===`
`?(Ne.line++,Ne.column=0):Ne.column++),Ne.state){case ke.BEGIN:if(Ne.state=ke.BEGIN_WHITESPACE,Me==="\uFEFF")continue;tt(Ne,Me);continue;case ke.BEGIN_WHITESPACE:tt(Ne,Me);continue;case ke.TEXT:if(Ne.sawRoot&&!Ne.closedRoot){for(var Ke=Ge-1;Me&&Me!=="<"&&Me!=="&";)Me=lt(He,Ge++),Me&&Ne.trackPosition&&(Ne.position++,Me===`
`?(Ne.line++,Ne.column=0):Ne.column++);Ne.textNode+=He.substring(Ke,Ge-1)}Me==="<"&&!(Ne.sawRoot&&Ne.closedRoot&&!Ne.strict)?(Ne.state=ke.OPEN_WAKA,Ne.startTagPosition=Ne.position):(!ce(Me)&&(!Ne.sawRoot||Ne.closedRoot)&&it(Ne,"Text data outside of root node."),Me==="&"?Ne.state=ke.TEXT_ENTITY:Ne.textNode+=Me);continue;case ke.SCRIPT:Me==="<"?Ne.state=ke.SCRIPT_ENDING:Ne.script+=Me;continue;case ke.SCRIPT_ENDING:Me==="/"?Ne.state=ke.CLOSE_TAG:(Ne.script+="<"+Me,Ne.state=ke.SCRIPT);continue;case ke.OPEN_WAKA:if(Me==="!")Ne.state=ke.SGML_DECL,Ne.sgmlDecl="";else if(!ce(Me))if(De(xe,Me))Ne.state=ke.OPEN_TAG,Ne.tagName=Me;else if(Me==="/")Ne.state=ke.CLOSE_TAG,Ne.tagName="";else if(Me==="?")Ne.state=ke.PROC_INST,Ne.procInstName=Ne.procInstBody="";else{if(it(Ne,"Unencoded <"),Ne.startTagPosition+1<Ne.position){var ct=Ne.position-Ne.startTagPosition;Me=new Array(ct).join(" ")+Me}Ne.textNode+="<"+Me,Ne.state=ke.TEXT}continue;case ke.SGML_DECL:(Ne.sgmlDecl+Me).toUpperCase()===fe?(Ve(Ne,"onopencdata"),Ne.state=ke.CDATA,Ne.sgmlDecl="",Ne.cdata=""):Ne.sgmlDecl+Me==="--"?(Ne.state=ke.COMMENT,Ne.comment="",Ne.sgmlDecl=""):(Ne.sgmlDecl+Me).toUpperCase()===me?(Ne.state=ke.DOCTYPE,(Ne.doctype||Ne.sawRoot)&&it(Ne,"Inappropriately located doctype declaration"),Ne.doctype="",Ne.sgmlDecl=""):Me===">"?(Ve(Ne,"onsgmldeclaration",Ne.sgmlDecl),Ne.sgmlDecl="",Ne.state=ke.TEXT):(ye(Me)&&(Ne.state=ke.SGML_DECL_QUOTED),Ne.sgmlDecl+=Me);continue;case ke.SGML_DECL_QUOTED:Me===Ne.q&&(Ne.state=ke.SGML_DECL,Ne.q=""),Ne.sgmlDecl+=Me;continue;case ke.DOCTYPE:Me===">"?(Ne.state=ke.TEXT,Ve(Ne,"ondoctype",Ne.doctype),Ne.doctype=!0):(Ne.doctype+=Me,Me==="["?Ne.state=ke.DOCTYPE_DTD:ye(Me)&&(Ne.state=ke.DOCTYPE_QUOTED,Ne.q=Me));continue;case ke.DOCTYPE_QUOTED:Ne.doctype+=Me,Me===Ne.q&&(Ne.q="",Ne.state=ke.DOCTYPE);continue;case ke.DOCTYPE_DTD:Ne.doctype+=Me,Me==="]"?Ne.state=ke.DOCTYPE:ye(Me)&&(Ne.state=ke.DOCTYPE_DTD_QUOTED,Ne.q=Me);continue;case ke.DOCTYPE_DTD_QUOTED:Ne.doctype+=Me,Me===Ne.q&&(Ne.state=ke.DOCTYPE_DTD,Ne.q="");continue;case ke.COMMENT:Me==="-"?Ne.state=ke.COMMENT_ENDING:Ne.comment+=Me;continue;case ke.COMMENT_ENDING:Me==="-"?(Ne.state=ke.COMMENT_ENDED,Ne.comment=ut(Ne.opt,Ne.comment),Ne.comment&&Ve(Ne,"oncomment",Ne.comment),Ne.comment=""):(Ne.comment+="-"+Me,Ne.state=ke.COMMENT);continue;case ke.COMMENT_ENDED:Me!==">"?(it(Ne,"Malformed comment"),Ne.comment+="--"+Me,Ne.state=ke.COMMENT):Ne.state=ke.TEXT;continue;case ke.CDATA:Me==="]"?Ne.state=ke.CDATA_ENDING:Ne.cdata+=Me;continue;case ke.CDATA_ENDING:Me==="]"?Ne.state=ke.CDATA_ENDING_2:(Ne.cdata+="]"+Me,Ne.state=ke.CDATA);continue;case ke.CDATA_ENDING_2:Me===">"?(Ne.cdata&&Ve(Ne,"oncdata",Ne.cdata),Ve(Ne,"onclosecdata"),Ne.cdata="",Ne.state=ke.TEXT):Me==="]"?Ne.cdata+="]":(Ne.cdata+="]]"+Me,Ne.state=ke.CDATA);continue;case ke.PROC_INST:Me==="?"?Ne.state=ke.PROC_INST_ENDING:ce(Me)?Ne.state=ke.PROC_INST_BODY:Ne.procInstName+=Me;continue;case ke.PROC_INST_BODY:if(!Ne.procInstBody&&ce(Me))continue;Me==="?"?Ne.state=ke.PROC_INST_ENDING:Ne.procInstBody+=Me;continue;case ke.PROC_INST_ENDING:Me===">"?(Ve(Ne,"onprocessinginstruction",{name:Ne.procInstName,body:Ne.procInstBody}),Ne.procInstName=Ne.procInstBody="",Ne.state=ke.TEXT):(Ne.procInstBody+="?"+Me,Ne.state=ke.PROC_INST_BODY);continue;case ke.OPEN_TAG:De(Ce,Me)?Ne.tagName+=Me:(at(Ne),Me===">"?et(Ne):Me==="/"?Ne.state=ke.OPEN_TAG_SLASH:(ce(Me)||it(Ne,"Invalid character in tag name"),Ne.state=ke.ATTRIB));continue;case ke.OPEN_TAG_SLASH:Me===">"?(et(Ne,!0),Ye(Ne)):(it(Ne,"Forward-slash in opening tag not followed by >"),Ne.state=ke.ATTRIB);continue;case ke.ATTRIB:if(ce(Me))continue;Me===">"?et(Ne):Me==="/"?Ne.state=ke.OPEN_TAG_SLASH:De(xe,Me)?(Ne.attribName=Me,Ne.attribValue="",Ne.state=ke.ATTRIB_NAME):it(Ne,"Invalid attribute name");continue;case ke.ATTRIB_NAME:Me==="="?Ne.state=ke.ATTRIB_VALUE:Me===">"?(it(Ne,"Attribute without value"),Ne.attribValue=Ne.attribName,Xe(Ne),et(Ne)):ce(Me)?Ne.state=ke.ATTRIB_NAME_SAW_WHITE:De(Ce,Me)?Ne.attribName+=Me:it(Ne,"Invalid attribute name");continue;case ke.ATTRIB_NAME_SAW_WHITE:if(Me==="=")Ne.state=ke.ATTRIB_VALUE;else{if(ce(Me))continue;it(Ne,"Attribute without value"),Ne.tag.attributes[Ne.attribName]="",Ne.attribValue="",Ve(Ne,"onattribute",{name:Ne.attribName,value:""}),Ne.attribName="",Me===">"?et(Ne):De(xe,Me)?(Ne.attribName=Me,Ne.state=ke.ATTRIB_NAME):(it(Ne,"Invalid attribute name"),Ne.state=ke.ATTRIB)}continue;case ke.ATTRIB_VALUE:if(ce(Me))continue;ye(Me)?(Ne.q=Me,Ne.state=ke.ATTRIB_VALUE_QUOTED):(it(Ne,"Unquoted attribute value"),Ne.state=ke.ATTRIB_VALUE_UNQUOTED,Ne.attribValue=Me);continue;case ke.ATTRIB_VALUE_QUOTED:if(Me!==Ne.q){Me==="&"?Ne.state=ke.ATTRIB_VALUE_ENTITY_Q:Ne.attribValue+=Me;continue}Xe(Ne),Ne.q="",Ne.state=ke.ATTRIB_VALUE_CLOSED;continue;case ke.ATTRIB_VALUE_CLOSED:ce(Me)?Ne.state=ke.ATTRIB:Me===">"?et(Ne):Me==="/"?Ne.state=ke.OPEN_TAG_SLASH:De(xe,Me)?(it(Ne,"No whitespace between attributes"),Ne.attribName=Me,Ne.attribValue="",Ne.state=ke.ATTRIB_NAME):it(Ne,"Invalid attribute name");continue;case ke.ATTRIB_VALUE_UNQUOTED:if(!we(Me)){Me==="&"?Ne.state=ke.ATTRIB_VALUE_ENTITY_U:Ne.attribValue+=Me;continue}Xe(Ne),Me===">"?et(Ne):Ne.state=ke.ATTRIB;continue;case ke.CLOSE_TAG:if(Ne.tagName)Me===">"?Ye(Ne):De(Ce,Me)?Ne.tagName+=Me:Ne.script?(Ne.script+="</"+Ne.tagName,Ne.tagName="",Ne.state=ke.SCRIPT):(ce(Me)||it(Ne,"Invalid tagname in closing tag"),Ne.state=ke.CLOSE_TAG_SAW_WHITE);else{if(ce(Me))continue;Re(xe,Me)?Ne.script?(Ne.script+="</"+Me,Ne.state=ke.SCRIPT):it(Ne,"Invalid tagname in closing tag."):Ne.tagName=Me}continue;case ke.CLOSE_TAG_SAW_WHITE:if(ce(Me))continue;Me===">"?Ye(Ne):it(Ne,"Invalid characters in closing tag");continue;case ke.TEXT_ENTITY:case ke.ATTRIB_VALUE_ENTITY_Q:case ke.ATTRIB_VALUE_ENTITY_U:var pt,rt;switch(Ne.state){case ke.TEXT_ENTITY:pt=ke.TEXT,rt="textNode";break;case ke.ATTRIB_VALUE_ENTITY_Q:pt=ke.ATTRIB_VALUE_QUOTED,rt="attribValue";break;case ke.ATTRIB_VALUE_ENTITY_U:pt=ke.ATTRIB_VALUE_UNQUOTED,rt="attribValue";break}Me===";"?(Ne[rt]+=dt(Ne),Ne.entity="",Ne.state=pt):De(Ne.entity.length?Ee:je,Me)?Ne.entity+=Me:(it(Ne,"Invalid character in entity name"),Ne[rt]+="&"+Ne.entity+Me,Ne.entity="",Ne.state=pt);continue;default:throw new Error(Ne,"Unknown state: "+Ne.state)}return Ne.position>=Ne.bufferCheckPosition&&ee(Ne),Ne}String.fromCodePoint||function(){var He=String.fromCharCode,Ne=Math.floor,Ge=function(){var Me=16384,Ke=[],ct,pt,rt=-1,Ae=arguments.length;if(!Ae)return"";for(var Pe="";++rt<Ae;){var Ue=Number(arguments[rt]);if(!isFinite(Ue)||Ue<0||Ue>1114111||Ne(Ue)!==Ue)throw RangeError("Invalid code point: "+Ue);Ue<=65535?Ke.push(Ue):(Ue-=65536,ct=(Ue>>10)+55296,pt=Ue%1024+56320,Ke.push(ct,pt)),(rt+1===Ae||Ke.length>Me)&&(Pe+=He.apply(null,Ke),Ke.length=0)}return Pe};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Ge,configurable:!0,writable:!0}):String.fromCodePoint=Ge}()})(typeof be=="undefined"?this.sax={}:be)}).call(this)}).call(this,y("buffer").Buffer)},{buffer:90,stream:398,string_decoder:413}],398:[function(y,Te,be){Te.exports=ie;var x=y("events").EventEmitter,z=y("inherits");z(ie,x),ie.Readable=y("readable-stream/lib/_stream_readable.js"),ie.Writable=y("readable-stream/lib/_stream_writable.js"),ie.Duplex=y("readable-stream/lib/_stream_duplex.js"),ie.Transform=y("readable-stream/lib/_stream_transform.js"),ie.PassThrough=y("readable-stream/lib/_stream_passthrough.js"),ie.finished=y("readable-stream/lib/internal/streams/end-of-stream.js"),ie.pipeline=y("readable-stream/lib/internal/streams/pipeline.js"),ie.Stream=ie;function ie(){x.call(this)}ie.prototype.pipe=function(oe,ee){var le=this;function E(ve){oe.writable&&oe.write(ve)===!1&&le.pause&&le.pause()}le.on("data",E);function ne(){le.readable&&le.resume&&le.resume()}oe.on("drain",ne),!oe._isStdio&&(!ee||ee.end!==!1)&&(le.on("end",se),le.on("close",ue));var te=!1;function se(){te||(te=!0,oe.end())}function ue(){te||(te=!0,typeof oe.destroy=="function"&&oe.destroy())}function fe(ve){if(me(),x.listenerCount(this,"error")===0)throw ve}le.on("error",fe),oe.on("error",fe);function me(){le.removeListener("data",E),oe.removeListener("drain",ne),le.removeListener("end",se),le.removeListener("close",ue),le.removeListener("error",fe),oe.removeListener("error",fe),le.removeListener("end",me),le.removeListener("close",me),oe.removeListener("close",me)}return le.on("end",me),le.on("close",me),oe.on("close",me),oe.emit("pipe",le),oe}},{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,Te,be){"use strict";function x(ne,te){ne.prototype=Object.create(te.prototype),ne.prototype.constructor=ne,ne.__proto__=te}var z={};function ie(ne,te,se){se||(se=Error);function ue(me,ve,he){return typeof te=="string"?te:te(me,ve,he)}var fe=function(me){x(ve,me);function ve(he,ge,xe){return me.call(this,ue(he,ge,xe))||this}return ve}(se);fe.prototype.name=se.name,fe.prototype.code=ne,z[ne]=fe}function oe(ne,te){if(Array.isArray(ne)){var se=ne.length;return ne=ne.map(function(ue){return String(ue)}),se>2?"one of ".concat(te," ").concat(ne.slice(0,se-1).join(", "),", or ")+ne[se-1]:se===2?"one of ".concat(te," ").concat(ne[0]," or ").concat(ne[1]):"of ".concat(te," ").concat(ne[0])}else return"of ".concat(te," ").concat(String(ne))}function ee(ne,te,se){return ne.substr(!se||se<0?0:+se,te.length)===te}function le(ne,te,se){return(se===void 0||se>ne.length)&&(se=ne.length),ne.substring(se-te.length,se)===te}function E(ne,te,se){return typeof se!="number"&&(se=0),se+te.length>ne.length?!1:ne.indexOf(te,se)!==-1}ie("ERR_INVALID_OPT_VALUE",function(ne,te){return'The value "'+te+'" is invalid for option "'+ne+'"'},TypeError),ie("ERR_INVALID_ARG_TYPE",function(ne,te,se){var ue;typeof te=="string"&&ee(te,"not ")?(ue="must not be",te=te.replace(/^not /,"")):ue="must be";var fe;if(le(ne," argument"))fe="The ".concat(ne," ").concat(ue," ").concat(oe(te,"type"));else{var me=E(ne,".")?"property":"argument";fe='The "'.concat(ne,'" ').concat(me," ").concat(ue," ").concat(oe(te,"type"))}return fe+=". Received type ".concat(typeof se),fe},TypeError),ie("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),ie("ERR_METHOD_NOT_IMPLEMENTED",function(ne){return"The "+ne+" method is not implemented"}),ie("ERR_STREAM_PREMATURE_CLOSE","Premature close"),ie("ERR_STREAM_DESTROYED",function(ne){return"Cannot call "+ne+" after a stream was destroyed"}),ie("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),ie("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),ie("ERR_STREAM_WRITE_AFTER_END","write after end"),ie("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),ie("ERR_UNKNOWN_ENCODING",function(ne){return"Unknown encoding: "+ne},TypeError),ie("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Te.exports.codes=z},{}],400:[function(y,Te,be){(function(x){(function(){"use strict";var z=Object.keys||function(ue){var fe=[];for(var me in ue)fe.push(me);return fe};Te.exports=ne;var ie=y("./_stream_readable"),oe=y("./_stream_writable");y("inherits")(ne,ie);for(var ee=z(oe.prototype),le=0;le<ee.length;le++){var E=ee[le];ne.prototype[E]||(ne.prototype[E]=oe.prototype[E])}function ne(ue){if(!(this instanceof ne))return new ne(ue);ie.call(this,ue),oe.call(this,ue),this.allowHalfOpen=!0,ue&&(ue.readable===!1&&(this.readable=!1),ue.writable===!1&&(this.writable=!1),ue.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",te)))}Object.defineProperty(ne.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(ne.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(ne.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function te(){this._writableState.ended||x.nextTick(se,this)}function se(ue){ue.end()}Object.defineProperty(ne.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(fe){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=fe,this._writableState.destroyed=fe)}})}).call(this)}).call(this,y("_process"))},{"./_stream_readable":402,"./_stream_writable":404,_process:467,inherits:364}],401:[function(y,Te,be){"use strict";Te.exports=z;var x=y("./_stream_transform");y("inherits")(z,x);function z(ie){if(!(this instanceof z))return new z(ie);x.call(this,ie)}z.prototype._transform=function(ie,oe,ee){ee(null,ie)}},{"./_stream_transform":403,inherits:364}],402:[function(y,Te,be){(function(x,z){(function(){"use strict";Te.exports=Ve;var ie;Ve.ReadableState=Ze;var oe=y("events").EventEmitter,ee=function(Ae,Pe){return Ae.listeners(Pe).length},le=y("./internal/streams/stream"),E=y("buffer").Buffer,ne=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function te(rt){return E.from(rt)}function se(rt){return E.isBuffer(rt)||rt instanceof ne}var ue=y("util"),fe;ue&&ue.debuglog?fe=ue.debuglog("stream"):fe=function(){};var me=y("./internal/streams/buffer_list"),ve=y("./internal/streams/destroy"),he=y("./internal/streams/state"),ge=he.getHighWaterMark,xe=y("../errors").codes,Ce=xe.ERR_INVALID_ARG_TYPE,je=xe.ERR_STREAM_PUSH_AFTER_EOF,Ee=xe.ERR_METHOD_NOT_IMPLEMENTED,ce=xe.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,ye,we,De;y("inherits")(Ve,le);var Re=ve.errorOrDestroy,ke=["error","close","destroy","pause","resume"];function _e(rt,Ae,Pe){if(typeof rt.prependListener=="function")return rt.prependListener(Ae,Pe);!rt._events||!rt._events[Ae]?rt.on(Ae,Pe):Array.isArray(rt._events[Ae])?rt._events[Ae].unshift(Pe):rt._events[Ae]=[Pe,rt._events[Ae]]}function Ze(rt,Ae,Pe){ie=ie||y("./_stream_duplex"),rt=rt||{},typeof Pe!="boolean"&&(Pe=Ae instanceof ie),this.objectMode=!!rt.objectMode,Pe&&(this.objectMode=this.objectMode||!!rt.readableObjectMode),this.highWaterMark=ge(this,rt,"readableHighWaterMark",Pe),this.buffer=new me,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=rt.emitClose!==!1,this.autoDestroy=!!rt.autoDestroy,this.destroyed=!1,this.defaultEncoding=rt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,rt.encoding&&(ye||(ye=y("string_decoder/").StringDecoder),this.decoder=new ye(rt.encoding),this.encoding=rt.encoding)}function Ve(rt){if(ie=ie||y("./_stream_duplex"),!(this instanceof Ve))return new Ve(rt);var Ae=this instanceof ie;this._readableState=new Ze(rt,this,Ae),this.readable=!0,rt&&(typeof rt.read=="function"&&(this._read=rt.read),typeof rt.destroy=="function"&&(this._destroy=rt.destroy)),le.call(this)}Object.defineProperty(Ve.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Ae){this._readableState&&(this._readableState.destroyed=Ae)}}),Ve.prototype.destroy=ve.destroy,Ve.prototype._undestroy=ve.undestroy,Ve.prototype._destroy=function(rt,Ae){Ae(rt)},Ve.prototype.push=function(rt,Ae){var Pe=this._readableState,Ue;return Pe.objectMode?Ue=!0:typeof rt=="string"&&(Ae=Ae||Pe.defaultEncoding,Ae!==Pe.encoding&&(rt=E.from(rt,Ae),Ae=""),Ue=!0),Qe(this,rt,Ae,!1,Ue)},Ve.prototype.unshift=function(rt){return Qe(this,rt,null,!0,!1)};function Qe(rt,Ae,Pe,Ue,ot){fe("readableAddChunk",Ae);var Oe=rt._readableState;if(Ae===null)Oe.reading=!1,nt(rt,Oe);else{var Se;if(ot||(Se=Ie(Oe,Ae)),Se)Re(rt,Se);else if(Oe.objectMode||Ae&&Ae.length>0)if(typeof Ae!="string"&&!Oe.objectMode&&Object.getPrototypeOf(Ae)!==E.prototype&&(Ae=te(Ae)),Ue)Oe.endEmitted?Re(rt,new ce):ut(rt,Oe,Ae,!0);else if(Oe.ended)Re(rt,new je);else{if(Oe.destroyed)return!1;Oe.reading=!1,Oe.decoder&&!Pe?(Ae=Oe.decoder.write(Ae),Oe.objectMode||Ae.length!==0?ut(rt,Oe,Ae,!1):Ye(rt,Oe)):ut(rt,Oe,Ae,!1)}else Ue||(Oe.reading=!1,Ye(rt,Oe))}return!Oe.ended&&(Oe.length<Oe.highWaterMark||Oe.length===0)}function ut(rt,Ae,Pe,Ue){Ae.flowing&&Ae.length===0&&!Ae.sync?(Ae.awaitDrain=0,rt.emit("data",Pe)):(Ae.length+=Ae.objectMode?1:Pe.length,Ue?Ae.buffer.unshift(Pe):Ae.buffer.push(Pe),Ae.needReadable&&Xe(rt)),Ye(rt,Ae)}function Ie(rt,Ae){var Pe;return!se(Ae)&&typeof Ae!="string"&&Ae!==void 0&&!rt.objectMode&&(Pe=new Ce("chunk",["string","Buffer","Uint8Array"],Ae)),Pe}Ve.prototype.isPaused=function(){return this._readableState.flowing===!1},Ve.prototype.setEncoding=function(rt){ye||(ye=y("string_decoder/").StringDecoder);var Ae=new ye(rt);this._readableState.decoder=Ae,this._readableState.encoding=this._readableState.decoder.encoding;for(var Pe=this._readableState.buffer.head,Ue="";Pe!==null;)Ue+=Ae.write(Pe.data),Pe=Pe.next;return this._readableState.buffer.clear(),Ue!==""&&this._readableState.buffer.push(Ue),this._readableState.length=Ue.length,this};var We=1073741824;function it(rt){return rt>=We?rt=We:(rt--,rt|=rt>>>1,rt|=rt>>>2,rt|=rt>>>4,rt|=rt>>>8,rt|=rt>>>16,rt++),rt}function at(rt,Ae){return rt<=0||Ae.length===0&&Ae.ended?0:Ae.objectMode?1:rt!==rt?Ae.flowing&&Ae.length?Ae.buffer.head.data.length:Ae.length:(rt>Ae.highWaterMark&&(Ae.highWaterMark=it(rt)),rt<=Ae.length?rt:Ae.ended?Ae.length:(Ae.needReadable=!0,0))}Ve.prototype.read=function(rt){fe("read",rt),rt=parseInt(rt,10);var Ae=this._readableState,Pe=rt;if(rt!==0&&(Ae.emittedReadable=!1),rt===0&&Ae.needReadable&&((Ae.highWaterMark!==0?Ae.length>=Ae.highWaterMark:Ae.length>0)||Ae.ended))return fe("read: emitReadable",Ae.length,Ae.ended),Ae.length===0&&Ae.ended?Ke(this):Xe(this),null;if(rt=at(rt,Ae),rt===0&&Ae.ended)return Ae.length===0&&Ke(this),null;var Ue=Ae.needReadable;fe("need readable",Ue),(Ae.length===0||Ae.length-rt<Ae.highWaterMark)&&(Ue=!0,fe("length less than watermark",Ue)),Ae.ended||Ae.reading?(Ue=!1,fe("reading or ended",Ue)):Ue&&(fe("do read"),Ae.reading=!0,Ae.sync=!0,Ae.length===0&&(Ae.needReadable=!0),this._read(Ae.highWaterMark),Ae.sync=!1,Ae.reading||(rt=at(Pe,Ae)));var ot;return rt>0?ot=Me(rt,Ae):ot=null,ot===null?(Ae.needReadable=Ae.length<=Ae.highWaterMark,rt=0):(Ae.length-=rt,Ae.awaitDrain=0),Ae.length===0&&(Ae.ended||(Ae.needReadable=!0),Pe!==rt&&Ae.ended&&Ke(this)),ot!==null&&this.emit("data",ot),ot};function nt(rt,Ae){if(fe("onEofChunk"),!Ae.ended){if(Ae.decoder){var Pe=Ae.decoder.end();Pe&&Pe.length&&(Ae.buffer.push(Pe),Ae.length+=Ae.objectMode?1:Pe.length)}Ae.ended=!0,Ae.sync?Xe(rt):(Ae.needReadable=!1,Ae.emittedReadable||(Ae.emittedReadable=!0,et(rt)))}}function Xe(rt){var Ae=rt._readableState;fe("emitReadable",Ae.needReadable,Ae.emittedReadable),Ae.needReadable=!1,Ae.emittedReadable||(fe("emitReadable",Ae.flowing),Ae.emittedReadable=!0,x.nextTick(et,rt))}function et(rt){var Ae=rt._readableState;fe("emitReadable_",Ae.destroyed,Ae.length,Ae.ended),!Ae.destroyed&&(Ae.length||Ae.ended)&&(rt.emit("readable"),Ae.emittedReadable=!1),Ae.needReadable=!Ae.flowing&&!Ae.ended&&Ae.length<=Ae.highWaterMark,Ge(rt)}function Ye(rt,Ae){Ae.readingMore||(Ae.readingMore=!0,x.nextTick(dt,rt,Ae))}function dt(rt,Ae){for(;!Ae.reading&&!Ae.ended&&(Ae.length<Ae.highWaterMark||Ae.flowing&&Ae.length===0);){var Pe=Ae.length;if(fe("maybeReadMore read 0"),rt.read(0),Pe===Ae.length)break}Ae.readingMore=!1}Ve.prototype._read=function(rt){Re(this,new Ee("_read()"))},Ve.prototype.pipe=function(rt,Ae){var Pe=this,Ue=this._readableState;switch(Ue.pipesCount){case 0:Ue.pipes=rt;break;case 1:Ue.pipes=[Ue.pipes,rt];break;default:Ue.pipes.push(rt);break}Ue.pipesCount+=1,fe("pipe count=%d opts=%j",Ue.pipesCount,Ae);var ot=(!Ae||Ae.end!==!1)&&rt!==x.stdout&&rt!==x.stderr,Oe=ot?pe:yt;Ue.endEmitted?x.nextTick(Oe):Pe.once("end",Oe),rt.on("unpipe",Se);function Se(Et,kt){fe("onunpipe"),Et===Pe&&kt&&kt.hasUnpiped===!1&&(kt.hasUnpiped=!0,Le())}function pe(){fe("onend"),rt.end()}var Be=tt(Pe);rt.on("drain",Be);var $e=!1;function Le(){fe("cleanup"),rt.removeListener("close",wt),rt.removeListener("finish",bt),rt.removeListener("drain",Be),rt.removeListener("error",gt),rt.removeListener("unpipe",Se),Pe.removeListener("end",pe),Pe.removeListener("end",yt),Pe.removeListener("data",mt),$e=!0,Ue.awaitDrain&&(!rt._writableState||rt._writableState.needDrain)&&Be()}Pe.on("data",mt);function mt(Et){fe("ondata");var kt=rt.write(Et);fe("dest.write",kt),kt===!1&&((Ue.pipesCount===1&&Ue.pipes===rt||Ue.pipesCount>1&&pt(Ue.pipes,rt)!==-1)&&!$e&&(fe("false write response, pause",Ue.awaitDrain),Ue.awaitDrain++),Pe.pause())}function gt(Et){fe("onerror",Et),yt(),rt.removeListener("error",gt),ee(rt,"error")===0&&Re(rt,Et)}_e(rt,"error",gt);function wt(){rt.removeListener("finish",bt),yt()}rt.once("close",wt);function bt(){fe("onfinish"),rt.removeListener("close",wt),yt()}rt.once("finish",bt);function yt(){fe("unpipe"),Pe.unpipe(rt)}return rt.emit("pipe",Pe),Ue.flowing||(fe("pipe resume"),Pe.resume()),rt};function tt(rt){return function(){var Pe=rt._readableState;fe("pipeOnDrain",Pe.awaitDrain),Pe.awaitDrain&&Pe.awaitDrain--,Pe.awaitDrain===0&&ee(rt,"data")&&(Pe.flowing=!0,Ge(rt))}}Ve.prototype.unpipe=function(rt){var Ae=this._readableState,Pe={hasUnpiped:!1};if(Ae.pipesCount===0)return this;if(Ae.pipesCount===1)return rt&&rt!==Ae.pipes?this:(rt||(rt=Ae.pipes),Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1,rt&&rt.emit("unpipe",this,Pe),this);if(!rt){var Ue=Ae.pipes,ot=Ae.pipesCount;Ae.pipes=null,Ae.pipesCount=0,Ae.flowing=!1;for(var Oe=0;Oe<ot;Oe++)Ue[Oe].emit("unpipe",this,{hasUnpiped:!1});return this}var Se=pt(Ae.pipes,rt);return Se===-1?this:(Ae.pipes.splice(Se,1),Ae.pipesCount-=1,Ae.pipesCount===1&&(Ae.pipes=Ae.pipes[0]),rt.emit("unpipe",this,Pe),this)},Ve.prototype.on=function(rt,Ae){var Pe=le.prototype.on.call(this,rt,Ae),Ue=this._readableState;return rt==="data"?(Ue.readableListening=this.listenerCount("readable")>0,Ue.flowing!==!1&&this.resume()):rt==="readable"&&!Ue.endEmitted&&!Ue.readableListening&&(Ue.readableListening=Ue.needReadable=!0,Ue.flowing=!1,Ue.emittedReadable=!1,fe("on readable",Ue.length,Ue.reading),Ue.length?Xe(this):Ue.reading||x.nextTick(st,this)),Pe},Ve.prototype.addListener=Ve.prototype.on,Ve.prototype.removeListener=function(rt,Ae){var Pe=le.prototype.removeListener.call(this,rt,Ae);return rt==="readable"&&x.nextTick(lt,this),Pe},Ve.prototype.removeAllListeners=function(rt){var Ae=le.prototype.removeAllListeners.apply(this,arguments);return(rt==="readable"||rt===void 0)&&x.nextTick(lt,this),Ae};function lt(rt){var Ae=rt._readableState;Ae.readableListening=rt.listenerCount("readable")>0,Ae.resumeScheduled&&!Ae.paused?Ae.flowing=!0:rt.listenerCount("data")>0&&rt.resume()}function st(rt){fe("readable nexttick read 0"),rt.read(0)}Ve.prototype.resume=function(){var rt=this._readableState;return rt.flowing||(fe("resume"),rt.flowing=!rt.readableListening,He(this,rt)),rt.paused=!1,this};function He(rt,Ae){Ae.resumeScheduled||(Ae.resumeScheduled=!0,x.nextTick(Ne,rt,Ae))}function Ne(rt,Ae){fe("resume",Ae.reading),Ae.reading||rt.read(0),Ae.resumeScheduled=!1,rt.emit("resume"),Ge(rt),Ae.flowing&&!Ae.reading&&rt.read(0)}Ve.prototype.pause=function(){return fe("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(fe("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Ge(rt){var Ae=rt._readableState;for(fe("flow",Ae.flowing);Ae.flowing&&rt.read()!==null;);}Ve.prototype.wrap=function(rt){var Ae=this,Pe=this._readableState,Ue=!1;rt.on("end",function(){if(fe("wrapped end"),Pe.decoder&&!Pe.ended){var Se=Pe.decoder.end();Se&&Se.length&&Ae.push(Se)}Ae.push(null)}),rt.on("data",function(Se){if(fe("wrapped data"),Pe.decoder&&(Se=Pe.decoder.write(Se)),!(Pe.objectMode&&Se==null)&&!(!Pe.objectMode&&(!Se||!Se.length))){var pe=Ae.push(Se);pe||(Ue=!0,rt.pause())}});for(var ot in rt)this[ot]===void 0&&typeof rt[ot]=="function"&&(this[ot]=function(pe){return function(){return rt[pe].apply(rt,arguments)}}(ot));for(var Oe=0;Oe<ke.length;Oe++)rt.on(ke[Oe],this.emit.bind(this,ke[Oe]));return this._read=function(Se){fe("wrapped _read",Se),Ue&&(Ue=!1,rt.resume())},this},typeof Symbol=="function"&&(Ve.prototype[Symbol.asyncIterator]=function(){return we===void 0&&(we=y("./internal/streams/async_iterator")),we(this)}),Object.defineProperty(Ve.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Ve.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Ve.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Ae){this._readableState&&(this._readableState.flowing=Ae)}}),Ve._fromList=Me,Object.defineProperty(Ve.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Me(rt,Ae){if(Ae.length===0)return null;var Pe;return Ae.objectMode?Pe=Ae.buffer.shift():!rt||rt>=Ae.length?(Ae.decoder?Pe=Ae.buffer.join(""):Ae.buffer.length===1?Pe=Ae.buffer.first():Pe=Ae.buffer.concat(Ae.length),Ae.buffer.clear()):Pe=Ae.buffer.consume(rt,Ae.decoder),Pe}function Ke(rt){var Ae=rt._readableState;fe("endReadable",Ae.endEmitted),Ae.endEmitted||(Ae.ended=!0,x.nextTick(ct,Ae,rt))}function ct(rt,Ae){if(fe("endReadableNT",rt.endEmitted,rt.length),!rt.endEmitted&&rt.length===0&&(rt.endEmitted=!0,Ae.readable=!1,Ae.emit("end"),rt.autoDestroy)){var Pe=Ae._writableState;(!Pe||Pe.autoDestroy&&Pe.finished)&&Ae.destroy()}}typeof Symbol=="function"&&(Ve.from=function(rt,Ae){return De===void 0&&(De=y("./internal/streams/from")),De(Ve,rt,Ae)});function pt(rt,Ae){for(var Pe=0,Ue=rt.length;Pe<Ue;Pe++)if(rt[Pe]===Ae)return Pe;return-1}}).call(this)}).call(this,y("_process"),typeof Zt!="undefined"?Zt: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,Te,be){"use strict";Te.exports=ne;var x=y("../errors").codes,z=x.ERR_METHOD_NOT_IMPLEMENTED,ie=x.ERR_MULTIPLE_CALLBACK,oe=x.ERR_TRANSFORM_ALREADY_TRANSFORMING,ee=x.ERR_TRANSFORM_WITH_LENGTH_0,le=y("./_stream_duplex");y("inherits")(ne,le);function E(ue,fe){var me=this._transformState;me.transforming=!1;var ve=me.writecb;if(ve===null)return this.emit("error",new ie);me.writechunk=null,me.writecb=null,fe!=null&&this.push(fe),ve(ue);var he=this._readableState;he.reading=!1,(he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}function ne(ue){if(!(this instanceof ne))return new ne(ue);le.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",te)}function te(){var ue=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(fe,me){se(ue,fe,me)}):se(this,null,null)}ne.prototype.push=function(ue,fe){return this._transformState.needTransform=!1,le.prototype.push.call(this,ue,fe)},ne.prototype._transform=function(ue,fe,me){me(new z("_transform()"))},ne.prototype._write=function(ue,fe,me){var ve=this._transformState;if(ve.writecb=me,ve.writechunk=ue,ve.writeencoding=fe,!ve.transforming){var he=this._readableState;(ve.needTransform||he.needReadable||he.length<he.highWaterMark)&&this._read(he.highWaterMark)}},ne.prototype._read=function(ue){var fe=this._transformState;fe.writechunk!==null&&!fe.transforming?(fe.transforming=!0,this._transform(fe.writechunk,fe.writeencoding,fe.afterTransform)):fe.needTransform=!0},ne.prototype._destroy=function(ue,fe){le.prototype._destroy.call(this,ue,function(me){fe(me)})};function se(ue,fe,me){if(fe)return ue.emit("error",fe);if(me!=null&&ue.push(me),ue._writableState.length)throw new ee;if(ue._transformState.transforming)throw new oe;return ue.push(null)}},{"../errors":399,"./_stream_duplex":400,inherits:364}],404:[function(y,Te,be){(function(x,z){(function(){"use strict";Te.exports=Ze;function ie(Ge,Me,Ke){this.chunk=Ge,this.encoding=Me,this.callback=Ke,this.next=null}function oe(Ge){var Me=this;this.next=null,this.entry=null,this.finish=function(){Ne(Me,Ge)}}var ee;Ze.WritableState=ke;var le={deprecate:y("util-deprecate")},E=y("./internal/streams/stream"),ne=y("buffer").Buffer,te=(typeof z!="undefined"?z:typeof window!="undefined"?window:typeof self!="undefined"?self:{}).Uint8Array||function(){};function se(Ge){return ne.from(Ge)}function ue(Ge){return ne.isBuffer(Ge)||Ge instanceof te}var fe=y("./internal/streams/destroy"),me=y("./internal/streams/state"),ve=me.getHighWaterMark,he=y("../errors").codes,ge=he.ERR_INVALID_ARG_TYPE,xe=he.ERR_METHOD_NOT_IMPLEMENTED,Ce=he.ERR_MULTIPLE_CALLBACK,je=he.ERR_STREAM_CANNOT_PIPE,Ee=he.ERR_STREAM_DESTROYED,ce=he.ERR_STREAM_NULL_VALUES,ye=he.ERR_STREAM_WRITE_AFTER_END,we=he.ERR_UNKNOWN_ENCODING,De=fe.errorOrDestroy;y("inherits")(Ze,E);function Re(){}function ke(Ge,Me,Ke){ee=ee||y("./_stream_duplex"),Ge=Ge||{},typeof Ke!="boolean"&&(Ke=Me instanceof ee),this.objectMode=!!Ge.objectMode,Ke&&(this.objectMode=this.objectMode||!!Ge.writableObjectMode),this.highWaterMark=ve(this,Ge,"writableHighWaterMark",Ke),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ct=Ge.decodeStrings===!1;this.decodeStrings=!ct,this.defaultEncoding=Ge.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(pt){nt(Me,pt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Ge.emitClose!==!1,this.autoDestroy=!!Ge.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new oe(this)}ke.prototype.getBuffer=function(){for(var Me=this.bufferedRequest,Ke=[];Me;)Ke.push(Me),Me=Me.next;return Ke},function(){try{Object.defineProperty(ke.prototype,"buffer",{get:le.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ge){}}();var _e;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(_e=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ze,Symbol.hasInstance,{value:function(Me){return _e.call(this,Me)?!0:this!==Ze?!1:Me&&Me._writableState instanceof ke}})):_e=function(Me){return Me instanceof this};function Ze(Ge){ee=ee||y("./_stream_duplex");var Me=this instanceof ee;if(!Me&&!_e.call(Ze,this))return new Ze(Ge);this._writableState=new ke(Ge,this,Me),this.writable=!0,Ge&&(typeof Ge.write=="function"&&(this._write=Ge.write),typeof Ge.writev=="function"&&(this._writev=Ge.writev),typeof Ge.destroy=="function"&&(this._destroy=Ge.destroy),typeof Ge.final=="function"&&(this._final=Ge.final)),E.call(this)}Ze.prototype.pipe=function(){De(this,new je)};function Ve(Ge,Me){var Ke=new ye;De(Ge,Ke),x.nextTick(Me,Ke)}function Qe(Ge,Me,Ke,ct){var pt;return Ke===null?pt=new ce:typeof Ke!="string"&&!Me.objectMode&&(pt=new ge("chunk",["string","Buffer"],Ke)),pt?(De(Ge,pt),x.nextTick(ct,pt),!1):!0}Ze.prototype.write=function(Ge,Me,Ke){var ct=this._writableState,pt=!1,rt=!ct.objectMode&&ue(Ge);return rt&&!ne.isBuffer(Ge)&&(Ge=se(Ge)),typeof Me=="function"&&(Ke=Me,Me=null),rt?Me="buffer":Me||(Me=ct.defaultEncoding),typeof Ke!="function"&&(Ke=Re),ct.ending?Ve(this,Ke):(rt||Qe(this,ct,Ge,Ke))&&(ct.pendingcb++,pt=Ie(this,ct,rt,Ge,Me,Ke)),pt},Ze.prototype.cork=function(){this._writableState.corked++},Ze.prototype.uncork=function(){var Ge=this._writableState;Ge.corked&&(Ge.corked--,!Ge.writing&&!Ge.corked&&!Ge.bufferProcessing&&Ge.bufferedRequest&&Ye(this,Ge))},Ze.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 we(Me);return this._writableState.defaultEncoding=Me,this},Object.defineProperty(Ze.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ut(Ge,Me,Ke){return!Ge.objectMode&&Ge.decodeStrings!==!1&&typeof Me=="string"&&(Me=ne.from(Me,Ke)),Me}Object.defineProperty(Ze.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ie(Ge,Me,Ke,ct,pt,rt){if(!Ke){var Ae=ut(Me,ct,pt);ct!==Ae&&(Ke=!0,pt="buffer",ct=Ae)}var Pe=Me.objectMode?1:ct.length;Me.length+=Pe;var Ue=Me.length<Me.highWaterMark;if(Ue||(Me.needDrain=!0),Me.writing||Me.corked){var ot=Me.lastBufferedRequest;Me.lastBufferedRequest={chunk:ct,encoding:pt,isBuf:Ke,callback:rt,next:null},ot?ot.next=Me.lastBufferedRequest:Me.bufferedRequest=Me.lastBufferedRequest,Me.bufferedRequestCount+=1}else We(Ge,Me,!1,Pe,ct,pt,rt);return Ue}function We(Ge,Me,Ke,ct,pt,rt,Ae){Me.writelen=ct,Me.writecb=Ae,Me.writing=!0,Me.sync=!0,Me.destroyed?Me.onwrite(new Ee("write")):Ke?Ge._writev(pt,Me.onwrite):Ge._write(pt,rt,Me.onwrite),Me.sync=!1}function it(Ge,Me,Ke,ct,pt){--Me.pendingcb,Ke?(x.nextTick(pt,ct),x.nextTick(st,Ge,Me),Ge._writableState.errorEmitted=!0,De(Ge,ct)):(pt(ct),Ge._writableState.errorEmitted=!0,De(Ge,ct),st(Ge,Me))}function at(Ge){Ge.writing=!1,Ge.writecb=null,Ge.length-=Ge.writelen,Ge.writelen=0}function nt(Ge,Me){var Ke=Ge._writableState,ct=Ke.sync,pt=Ke.writecb;if(typeof pt!="function")throw new Ce;if(at(Ke),Me)it(Ge,Ke,ct,Me,pt);else{var rt=dt(Ke)||Ge.destroyed;!rt&&!Ke.corked&&!Ke.bufferProcessing&&Ke.bufferedRequest&&Ye(Ge,Ke),ct?x.nextTick(Xe,Ge,Ke,rt,pt):Xe(Ge,Ke,rt,pt)}}function Xe(Ge,Me,Ke,ct){Ke||et(Ge,Me),Me.pendingcb--,ct(),st(Ge,Me)}function et(Ge,Me){Me.length===0&&Me.needDrain&&(Me.needDrain=!1,Ge.emit("drain"))}function Ye(Ge,Me){Me.bufferProcessing=!0;var Ke=Me.bufferedRequest;if(Ge._writev&&Ke&&Ke.next){var ct=Me.bufferedRequestCount,pt=new Array(ct),rt=Me.corkedRequestsFree;rt.entry=Ke;for(var Ae=0,Pe=!0;Ke;)pt[Ae]=Ke,Ke.isBuf||(Pe=!1),Ke=Ke.next,Ae+=1;pt.allBuffers=Pe,We(Ge,Me,!0,Me.length,pt,"",rt.finish),Me.pendingcb++,Me.lastBufferedRequest=null,rt.next?(Me.corkedRequestsFree=rt.next,rt.next=null):Me.corkedRequestsFree=new oe(Me),Me.bufferedRequestCount=0}else{for(;Ke;){var Ue=Ke.chunk,ot=Ke.encoding,Oe=Ke.callback,Se=Me.objectMode?1:Ue.length;if(We(Ge,Me,!1,Se,Ue,ot,Oe),Ke=Ke.next,Me.bufferedRequestCount--,Me.writing)break}Ke===null&&(Me.lastBufferedRequest=null)}Me.bufferedRequest=Ke,Me.bufferProcessing=!1}Ze.prototype._write=function(Ge,Me,Ke){Ke(new xe("_write()"))},Ze.prototype._writev=null,Ze.prototype.end=function(Ge,Me,Ke){var ct=this._writableState;return typeof Ge=="function"?(Ke=Ge,Ge=null,Me=null):typeof Me=="function"&&(Ke=Me,Me=null),Ge!=null&&this.write(Ge,Me),ct.corked&&(ct.corked=1,this.uncork()),ct.ending||He(this,ct,Ke),this},Object.defineProperty(Ze.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function dt(Ge){return Ge.ending&&Ge.length===0&&Ge.bufferedRequest===null&&!Ge.finished&&!Ge.writing}function tt(Ge,Me){Ge._final(function(Ke){Me.pendingcb--,Ke&&De(Ge,Ke),Me.prefinished=!0,Ge.emit("prefinish"),st(Ge,Me)})}function lt(Ge,Me){!Me.prefinished&&!Me.finalCalled&&(typeof Ge._final=="function"&&!Me.destroyed?(Me.pendingcb++,Me.finalCalled=!0,x.nextTick(tt,Ge,Me)):(Me.prefinished=!0,Ge.emit("prefinish")))}function st(Ge,Me){var Ke=dt(Me);if(Ke&&(lt(Ge,Me),Me.pendingcb===0&&(Me.finished=!0,Ge.emit("finish"),Me.autoDestroy))){var ct=Ge._readableState;(!ct||ct.autoDestroy&&ct.endEmitted)&&Ge.destroy()}return Ke}function He(Ge,Me,Ke){Me.ending=!0,st(Ge,Me),Ke&&(Me.finished?x.nextTick(Ke):Ge.once("finish",Ke)),Me.ended=!0,Ge.writable=!1}function Ne(Ge,Me,Ke){var ct=Ge.entry;for(Ge.entry=null;ct;){var pt=ct.callback;Me.pendingcb--,pt(Ke),ct=ct.next}Me.corkedRequestsFree.next=Ge}Object.defineProperty(Ze.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Me){this._writableState&&(this._writableState.destroyed=Me)}}),Ze.prototype.destroy=fe.destroy,Ze.prototype._undestroy=fe.undestroy,Ze.prototype._destroy=function(Ge,Me){Me(Ge)}}).call(this)}).call(this,y("_process"),typeof Zt!="undefined"?Zt: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,Te,be){(function(x){(function(){"use strict";var z;function ie(ce,ye,we){return ye=oe(ye),ye in ce?Object.defineProperty(ce,ye,{value:we,enumerable:!0,configurable:!0,writable:!0}):ce[ye]=we,ce}function oe(ce){var ye=ee(ce,"string");return typeof ye=="symbol"?ye:String(ye)}function ee(ce,ye){if(typeof ce!="object"||ce===null)return ce;var we=ce[Symbol.toPrimitive];if(we!==void 0){var De=we.call(ce,ye||"default");if(typeof De!="object")return De;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ye==="string"?String:Number)(ce)}var le=y("./end-of-stream"),E=Symbol("lastResolve"),ne=Symbol("lastReject"),te=Symbol("error"),se=Symbol("ended"),ue=Symbol("lastPromise"),fe=Symbol("handlePromise"),me=Symbol("stream");function ve(ce,ye){return{value:ce,done:ye}}function he(ce){var ye=ce[E];if(ye!==null){var we=ce[me].read();we!==null&&(ce[ue]=null,ce[E]=null,ce[ne]=null,ye(ve(we,!1)))}}function ge(ce){x.nextTick(he,ce)}function xe(ce,ye){return function(we,De){ce.then(function(){if(ye[se]){we(ve(void 0,!0));return}ye[fe](we,De)},De)}}var Ce=Object.getPrototypeOf(function(){}),je=Object.setPrototypeOf((z={get stream(){return this[me]},next:function(){var ye=this,we=this[te];if(we!==null)return Promise.reject(we);if(this[se])return Promise.resolve(ve(void 0,!0));if(this[me].destroyed)return new Promise(function(_e,Ze){x.nextTick(function(){ye[te]?Ze(ye[te]):_e(ve(void 0,!0))})});var De=this[ue],Re;if(De)Re=new Promise(xe(De,this));else{var ke=this[me].read();if(ke!==null)return Promise.resolve(ve(ke,!1));Re=new Promise(this[fe])}return this[ue]=Re,Re}},ie(z,Symbol.asyncIterator,function(){return this}),ie(z,"return",function(){var ye=this;return new Promise(function(we,De){ye[me].destroy(null,function(Re){if(Re){De(Re);return}we(ve(void 0,!0))})})}),z),Ce),Ee=function(ye){var we,De=Object.create(je,(we={},ie(we,me,{value:ye,writable:!0}),ie(we,E,{value:null,writable:!0}),ie(we,ne,{value:null,writable:!0}),ie(we,te,{value:null,writable:!0}),ie(we,se,{value:ye._readableState.endEmitted,writable:!0}),ie(we,fe,{value:function(ke,_e){var Ze=De[me].read();Ze?(De[ue]=null,De[E]=null,De[ne]=null,ke(ve(Ze,!1))):(De[E]=ke,De[ne]=_e)},writable:!0}),we));return De[ue]=null,le(ye,function(Re){if(Re&&Re.code!=="ERR_STREAM_PREMATURE_CLOSE"){var ke=De[ne];ke!==null&&(De[ue]=null,De[E]=null,De[ne]=null,ke(Re)),De[te]=Re;return}var _e=De[E];_e!==null&&(De[ue]=null,De[E]=null,De[ne]=null,_e(ve(void 0,!0))),De[se]=!0}),ye.on("readable",ge.bind(null,De)),De};Te.exports=Ee}).call(this)}).call(this,y("_process"))},{"./end-of-stream":408,_process:467}],406:[function(y,Te,be){"use strict";function x(he,ge){var xe=Object.keys(he);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(he);ge&&(Ce=Ce.filter(function(je){return Object.getOwnPropertyDescriptor(he,je).enumerable})),xe.push.apply(xe,Ce)}return xe}function z(he){for(var ge=1;ge<arguments.length;ge++){var xe=arguments[ge]!=null?arguments[ge]:{};ge%2?x(Object(xe),!0).forEach(function(Ce){ie(he,Ce,xe[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(he,Object.getOwnPropertyDescriptors(xe)):x(Object(xe)).forEach(function(Ce){Object.defineProperty(he,Ce,Object.getOwnPropertyDescriptor(xe,Ce))})}return he}function ie(he,ge,xe){return ge=E(ge),ge in he?Object.defineProperty(he,ge,{value:xe,enumerable:!0,configurable:!0,writable:!0}):he[ge]=xe,he}function oe(he,ge){if(!(he instanceof ge))throw new TypeError("Cannot call a class as a function")}function ee(he,ge){for(var xe=0;xe<ge.length;xe++){var Ce=ge[xe];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(he,E(Ce.key),Ce)}}function le(he,ge,xe){return ge&&ee(he.prototype,ge),xe&&ee(he,xe),Object.defineProperty(he,"prototype",{writable:!1}),he}function E(he){var ge=ne(he,"string");return typeof ge=="symbol"?ge:String(ge)}function ne(he,ge){if(typeof he!="object"||he===null)return he;var xe=he[Symbol.toPrimitive];if(xe!==void 0){var Ce=xe.call(he,ge||"default");if(typeof Ce!="object")return Ce;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ge==="string"?String:Number)(he)}var te=y("buffer"),se=te.Buffer,ue=y("util"),fe=ue.inspect,me=fe&&fe.custom||"inspect";function ve(he,ge,xe){se.prototype.copy.call(he,ge,xe)}Te.exports=function(){function he(){oe(this,he),this.head=null,this.tail=null,this.length=0}return le(he,[{key:"push",value:function(xe){var Ce={data:xe,next:null};this.length>0?this.tail.next=Ce:this.head=Ce,this.tail=Ce,++this.length}},{key:"unshift",value:function(xe){var Ce={data:xe,next:this.head};this.length===0&&(this.tail=Ce),this.head=Ce,++this.length}},{key:"shift",value:function(){if(this.length!==0){var xe=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,xe}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(xe){if(this.length===0)return"";for(var Ce=this.head,je=""+Ce.data;Ce=Ce.next;)je+=xe+Ce.data;return je}},{key:"concat",value:function(xe){if(this.length===0)return se.alloc(0);for(var Ce=se.allocUnsafe(xe>>>0),je=this.head,Ee=0;je;)ve(je.data,Ce,Ee),Ee+=je.data.length,je=je.next;return Ce}},{key:"consume",value:function(xe,Ce){var je;return xe<this.head.data.length?(je=this.head.data.slice(0,xe),this.head.data=this.head.data.slice(xe)):xe===this.head.data.length?je=this.shift():je=Ce?this._getString(xe):this._getBuffer(xe),je}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(xe){var Ce=this.head,je=1,Ee=Ce.data;for(xe-=Ee.length;Ce=Ce.next;){var ce=Ce.data,ye=xe>ce.length?ce.length:xe;if(ye===ce.length?Ee+=ce:Ee+=ce.slice(0,xe),xe-=ye,xe===0){ye===ce.length?(++je,Ce.next?this.head=Ce.next:this.head=this.tail=null):(this.head=Ce,Ce.data=ce.slice(ye));break}++je}return this.length-=je,Ee}},{key:"_getBuffer",value:function(xe){var Ce=se.allocUnsafe(xe),je=this.head,Ee=1;for(je.data.copy(Ce),xe-=je.data.length;je=je.next;){var ce=je.data,ye=xe>ce.length?ce.length:xe;if(ce.copy(Ce,Ce.length-xe,0,ye),xe-=ye,xe===0){ye===ce.length?(++Ee,je.next?this.head=je.next:this.head=this.tail=null):(this.head=je,je.data=ce.slice(ye));break}++Ee}return this.length-=Ee,Ce}},{key:me,value:function(xe,Ce){return fe(this,z(z({},Ce),{},{depth:0,customInspect:!1}))}}]),he}()},{buffer:90,util:89}],407:[function(y,Te,be){(function(x){(function(){"use strict";function z(ne,te){var se=this,ue=this._readableState&&this._readableState.destroyed,fe=this._writableState&&this._writableState.destroyed;return ue||fe?(te?te(ne):ne&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,x.nextTick(le,this,ne)):x.nextTick(le,this,ne)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(ne||null,function(me){!te&&me?se._writableState?se._writableState.errorEmitted?x.nextTick(oe,se):(se._writableState.errorEmitted=!0,x.nextTick(ie,se,me)):x.nextTick(ie,se,me):te?(x.nextTick(oe,se),te(me)):x.nextTick(oe,se)}),this)}function ie(ne,te){le(ne,te),oe(ne)}function oe(ne){ne._writableState&&!ne._writableState.emitClose||ne._readableState&&!ne._readableState.emitClose||ne.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 le(ne,te){ne.emit("error",te)}function E(ne,te){var se=ne._readableState,ue=ne._writableState;se&&se.autoDestroy||ue&&ue.autoDestroy?ne.destroy(te):ne.emit("error",te)}Te.exports={destroy:z,undestroy:ee,errorOrDestroy:E}}).call(this)}).call(this,y("_process"))},{_process:467}],408:[function(y,Te,be){"use strict";var x=y("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function z(le){var E=!1;return function(){if(!E){E=!0;for(var ne=arguments.length,te=new Array(ne),se=0;se<ne;se++)te[se]=arguments[se];le.apply(this,te)}}}function ie(){}function oe(le){return le.setHeader&&typeof le.abort=="function"}function ee(le,E,ne){if(typeof E=="function")return ee(le,null,E);E||(E={}),ne=z(ne||ie);var te=E.readable||E.readable!==!1&&le.readable,se=E.writable||E.writable!==!1&&le.writable,ue=function(){le.writable||me()},fe=le._writableState&&le._writableState.finished,me=function(){se=!1,fe=!0,te||ne.call(le)},ve=le._readableState&&le._readableState.endEmitted,he=function(){te=!1,ve=!0,se||ne.call(le)},ge=function(Ee){ne.call(le,Ee)},xe=function(){var Ee;if(te&&!ve)return(!le._readableState||!le._readableState.ended)&&(Ee=new x),ne.call(le,Ee);if(se&&!fe)return(!le._writableState||!le._writableState.ended)&&(Ee=new x),ne.call(le,Ee)},Ce=function(){le.req.on("finish",me)};return oe(le)?(le.on("complete",me),le.on("abort",xe),le.req?Ce():le.on("request",Ce)):se&&!le._writableState&&(le.on("end",ue),le.on("close",ue)),le.on("end",he),le.on("finish",me),E.error!==!1&&le.on("error",ge),le.on("close",xe),function(){le.removeListener("complete",me),le.removeListener("abort",xe),le.removeListener("request",Ce),le.req&&le.req.removeListener("finish",me),le.removeListener("end",ue),le.removeListener("close",ue),le.removeListener("finish",me),le.removeListener("end",he),le.removeListener("error",ge),le.removeListener("close",xe)}}Te.exports=ee},{"../../../errors":399}],409:[function(y,Te,be){Te.exports=function(){throw new Error("Readable.from is not available in the browser")}},{}],410:[function(y,Te,be){"use strict";var x;function z(me){var ve=!1;return function(){ve||(ve=!0,me.apply(void 0,arguments))}}var ie=y("../../../errors").codes,oe=ie.ERR_MISSING_ARGS,ee=ie.ERR_STREAM_DESTROYED;function le(me){if(me)throw me}function E(me){return me.setHeader&&typeof me.abort=="function"}function ne(me,ve,he,ge){ge=z(ge);var xe=!1;me.on("close",function(){xe=!0}),x===void 0&&(x=y("./end-of-stream")),x(me,{readable:ve,writable:he},function(je){if(je)return ge(je);xe=!0,ge()});var Ce=!1;return function(je){if(!xe&&!Ce){if(Ce=!0,E(me))return me.abort();if(typeof me.destroy=="function")return me.destroy();ge(je||new ee("pipe"))}}}function te(me){me()}function se(me,ve){return me.pipe(ve)}function ue(me){return!me.length||typeof me[me.length-1]!="function"?le:me.pop()}function fe(){for(var me=arguments.length,ve=new Array(me),he=0;he<me;he++)ve[he]=arguments[he];var ge=ue(ve);if(Array.isArray(ve[0])&&(ve=ve[0]),ve.length<2)throw new oe("streams");var xe,Ce=ve.map(function(je,Ee){var ce=Ee<ve.length-1,ye=Ee>0;return ne(je,ce,ye,function(we){xe||(xe=we),we&&Ce.forEach(te),!ce&&(Ce.forEach(te),ge(xe))})});return ve.reduce(se)}Te.exports=fe},{"../../../errors":399,"./end-of-stream":408}],411:[function(y,Te,be){"use strict";var x=y("../../../errors").codes.ERR_INVALID_OPT_VALUE;function z(oe,ee,le){return oe.highWaterMark!=null?oe.highWaterMark:ee?oe[le]:null}function ie(oe,ee,le,E){var ne=z(ee,E,le);if(ne!=null){if(!(isFinite(ne)&&Math.floor(ne)===ne)||ne<0){var te=E?le:"highWaterMark";throw new x(te,ne)}return Math.floor(ne)}return oe.objectMode?16:16*1024}Te.exports={getHighWaterMark:ie}},{"../../../errors":399}],412:[function(y,Te,be){arguments[4][393][0].apply(be,arguments)},{dup:393,events:344}],413:[function(y,Te,be){"use strict";var x=y("safe-buffer").Buffer,z=x.isEncoding||function(Ce){switch(Ce=""+Ce,Ce&&Ce.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ie(Ce){if(!Ce)return"utf8";for(var je;;)switch(Ce){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 Ce;default:if(je)return;Ce=(""+Ce).toLowerCase(),je=!0}}function oe(Ce){var je=ie(Ce);if(typeof je!="string"&&(x.isEncoding===z||!z(Ce)))throw new Error("Unknown encoding: "+Ce);return je||Ce}be.StringDecoder=ee;function ee(Ce){this.encoding=oe(Ce);var je;switch(this.encoding){case"utf16le":this.text=fe,this.end=me,je=4;break;case"utf8":this.fillLast=te,je=4;break;case"base64":this.text=ve,this.end=he,je=3;break;default:this.write=ge,this.end=xe;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=x.allocUnsafe(je)}ee.prototype.write=function(Ce){if(Ce.length===0)return"";var je,Ee;if(this.lastNeed){if(je=this.fillLast(Ce),je===void 0)return"";Ee=this.lastNeed,this.lastNeed=0}else Ee=0;return Ee<Ce.length?je?je+this.text(Ce,Ee):this.text(Ce,Ee):je||""},ee.prototype.end=ue,ee.prototype.text=se,ee.prototype.fillLast=function(Ce){if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Ce.length),this.lastNeed-=Ce.length};function le(Ce){return Ce<=127?0:Ce>>5===6?2:Ce>>4===14?3:Ce>>3===30?4:Ce>>6===2?-1:-2}function E(Ce,je,Ee){var ce=je.length-1;if(ce<Ee)return 0;var ye=le(je[ce]);return ye>=0?(ye>0&&(Ce.lastNeed=ye-1),ye):--ce<Ee||ye===-2?0:(ye=le(je[ce]),ye>=0?(ye>0&&(Ce.lastNeed=ye-2),ye):--ce<Ee||ye===-2?0:(ye=le(je[ce]),ye>=0?(ye>0&&(ye===2?ye=0:Ce.lastNeed=ye-3),ye):0))}function ne(Ce,je,Ee){if((je[0]&192)!==128)return Ce.lastNeed=0,"\uFFFD";if(Ce.lastNeed>1&&je.length>1){if((je[1]&192)!==128)return Ce.lastNeed=1,"\uFFFD";if(Ce.lastNeed>2&&je.length>2&&(je[2]&192)!==128)return Ce.lastNeed=2,"\uFFFD"}}function te(Ce){var je=this.lastTotal-this.lastNeed,Ee=ne(this,Ce,je);if(Ee!==void 0)return Ee;if(this.lastNeed<=Ce.length)return Ce.copy(this.lastChar,je,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Ce.copy(this.lastChar,je,0,Ce.length),this.lastNeed-=Ce.length}function se(Ce,je){var Ee=E(this,Ce,je);if(!this.lastNeed)return Ce.toString("utf8",je);this.lastTotal=Ee;var ce=Ce.length-(Ee-this.lastNeed);return Ce.copy(this.lastChar,0,ce),Ce.toString("utf8",je,ce)}function ue(Ce){var je=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?je+"\uFFFD":je}function fe(Ce,je){if((Ce.length-je)%2===0){var Ee=Ce.toString("utf16le",je);if(Ee){var ce=Ee.charCodeAt(Ee.length-1);if(ce>=55296&&ce<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1],Ee.slice(0,-1)}return Ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Ce[Ce.length-1],Ce.toString("utf16le",je,Ce.length-1)}function me(Ce){var je=Ce&&Ce.length?this.write(Ce):"";if(this.lastNeed){var Ee=this.lastTotal-this.lastNeed;return je+this.lastChar.toString("utf16le",0,Ee)}return je}function ve(Ce,je){var Ee=(Ce.length-je)%3;return Ee===0?Ce.toString("base64",je):(this.lastNeed=3-Ee,this.lastTotal=3,Ee===1?this.lastChar[0]=Ce[Ce.length-1]:(this.lastChar[0]=Ce[Ce.length-2],this.lastChar[1]=Ce[Ce.length-1]),Ce.toString("base64",je,Ce.length-Ee))}function he(Ce){var je=Ce&&Ce.length?this.write(Ce):"";return this.lastNeed?je+this.lastChar.toString("base64",0,3-this.lastNeed):je}function ge(Ce){return Ce.toString(this.encoding)}function xe(Ce){return Ce&&Ce.length?this.write(Ce):""}},{"safe-buffer":396}],414:[function(y,Te,be){(function(x,z){(function(){var ie=y("process/browser.js").nextTick,oe=Function.prototype.apply,ee=Array.prototype.slice,le={},E=0;be.setTimeout=function(){return new ne(oe.call(setTimeout,window,arguments),clearTimeout)},be.setInterval=function(){return new ne(oe.call(setInterval,window,arguments),clearInterval)},be.clearTimeout=be.clearInterval=function(te){te.close()};function ne(te,se){this._id=te,this._clearFn=se}ne.prototype.unref=ne.prototype.ref=function(){},ne.prototype.close=function(){this._clearFn.call(window,this._id)},be.enroll=function(te,se){clearTimeout(te._idleTimeoutId),te._idleTimeout=se},be.unenroll=function(te){clearTimeout(te._idleTimeoutId),te._idleTimeout=-1},be._unrefActive=be.active=function(te){clearTimeout(te._idleTimeoutId);var se=te._idleTimeout;se>=0&&(te._idleTimeoutId=setTimeout(function(){te._onTimeout&&te._onTimeout()},se))},be.setImmediate=typeof x=="function"?x:function(te){var se=E++,ue=arguments.length<2?!1:ee.call(arguments,1);return le[se]=!0,ie(function(){le[se]&&(ue?te.apply(null,ue):te.call(null),be.clearImmediate(se))}),se},be.clearImmediate=typeof z=="function"?z:function(te){delete le[te]}}).call(this)}).call(this,y("timers").setImmediate,y("timers").clearImmediate)},{"process/browser.js":381,timers:414}],415:[function(y,Te,be){var x=y("buffer").Buffer;Te.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 ie=new Uint8Array(z.length),oe=z.length,ee=0;ee<oe;ee++)ie[ee]=z[ee];return ie.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:90}],416:[function(y,Te,be){(function(x){(function(){Te.exports=z;function z(oe,ee){if(ie("noDeprecation"))return oe;var le=!1;function E(){if(!le){if(ie("throwDeprecation"))throw new Error(ee);ie("traceDeprecation")?console.trace(ee):console.warn(ee),le=!0}return oe.apply(this,arguments)}return E}function ie(oe){try{if(!x.localStorage)return!1}catch(le){return!1}var ee=x.localStorage[oe];return ee==null?!1:String(ee).toLowerCase()==="true"}}).call(this)}).call(this,typeof Zt!="undefined"?Zt:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],417:[function(y,Te,be){arguments[4][84][0].apply(be,arguments)},{dup:84}],418:[function(y,Te,be){"use strict";var x=y("is-arguments"),z=y("is-generator-function"),ie=y("which-typed-array"),oe=y("is-typed-array");function ee(ot){return ot.call.bind(ot)}var le=typeof BigInt!="undefined",E=typeof Symbol!="undefined",ne=ee(Object.prototype.toString),te=ee(Number.prototype.valueOf),se=ee(String.prototype.valueOf),ue=ee(Boolean.prototype.valueOf);if(le)var fe=ee(BigInt.prototype.valueOf);if(E)var me=ee(Symbol.prototype.valueOf);function ve(ot,Oe){if(typeof ot!="object")return!1;try{return Oe(ot),!0}catch(Se){return!1}}be.isArgumentsObject=x,be.isGeneratorFunction=z,be.isTypedArray=oe;function he(ot){return typeof Promise!="undefined"&&ot instanceof Promise||ot!==null&&typeof ot=="object"&&typeof ot.then=="function"&&typeof ot.catch=="function"}be.isPromise=he;function ge(ot){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?ArrayBuffer.isView(ot):oe(ot)||Ye(ot)}be.isArrayBufferView=ge;function xe(ot){return ie(ot)==="Uint8Array"}be.isUint8Array=xe;function Ce(ot){return ie(ot)==="Uint8ClampedArray"}be.isUint8ClampedArray=Ce;function je(ot){return ie(ot)==="Uint16Array"}be.isUint16Array=je;function Ee(ot){return ie(ot)==="Uint32Array"}be.isUint32Array=Ee;function ce(ot){return ie(ot)==="Int8Array"}be.isInt8Array=ce;function ye(ot){return ie(ot)==="Int16Array"}be.isInt16Array=ye;function we(ot){return ie(ot)==="Int32Array"}be.isInt32Array=we;function De(ot){return ie(ot)==="Float32Array"}be.isFloat32Array=De;function Re(ot){return ie(ot)==="Float64Array"}be.isFloat64Array=Re;function ke(ot){return ie(ot)==="BigInt64Array"}be.isBigInt64Array=ke;function _e(ot){return ie(ot)==="BigUint64Array"}be.isBigUint64Array=_e;function Ze(ot){return ne(ot)==="[object Map]"}Ze.working=typeof Map!="undefined"&&Ze(new Map);function Ve(ot){return typeof Map=="undefined"?!1:Ze.working?Ze(ot):ot instanceof Map}be.isMap=Ve;function Qe(ot){return ne(ot)==="[object Set]"}Qe.working=typeof Set!="undefined"&&Qe(new Set);function ut(ot){return typeof Set=="undefined"?!1:Qe.working?Qe(ot):ot instanceof Set}be.isSet=ut;function Ie(ot){return ne(ot)==="[object WeakMap]"}Ie.working=typeof WeakMap!="undefined"&&Ie(new WeakMap);function We(ot){return typeof WeakMap=="undefined"?!1:Ie.working?Ie(ot):ot instanceof WeakMap}be.isWeakMap=We;function it(ot){return ne(ot)==="[object WeakSet]"}it.working=typeof WeakSet!="undefined"&&it(new WeakSet);function at(ot){return it(ot)}be.isWeakSet=at;function nt(ot){return ne(ot)==="[object ArrayBuffer]"}nt.working=typeof ArrayBuffer!="undefined"&&nt(new ArrayBuffer);function Xe(ot){return typeof ArrayBuffer=="undefined"?!1:nt.working?nt(ot):ot instanceof ArrayBuffer}be.isArrayBuffer=Xe;function et(ot){return ne(ot)==="[object DataView]"}et.working=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"&&et(new DataView(new ArrayBuffer(1),0,1));function Ye(ot){return typeof DataView=="undefined"?!1:et.working?et(ot):ot instanceof DataView}be.isDataView=Ye;var dt=typeof SharedArrayBuffer!="undefined"?SharedArrayBuffer:void 0;function tt(ot){return ne(ot)==="[object SharedArrayBuffer]"}function lt(ot){return typeof dt=="undefined"?!1:(typeof tt.working=="undefined"&&(tt.working=tt(new dt)),tt.working?tt(ot):ot instanceof dt)}be.isSharedArrayBuffer=lt;function st(ot){return ne(ot)==="[object AsyncFunction]"}be.isAsyncFunction=st;function He(ot){return ne(ot)==="[object Map Iterator]"}be.isMapIterator=He;function Ne(ot){return ne(ot)==="[object Set Iterator]"}be.isSetIterator=Ne;function Ge(ot){return ne(ot)==="[object Generator]"}be.isGeneratorObject=Ge;function Me(ot){return ne(ot)==="[object WebAssembly.Module]"}be.isWebAssemblyCompiledModule=Me;function Ke(ot){return ve(ot,te)}be.isNumberObject=Ke;function ct(ot){return ve(ot,se)}be.isStringObject=ct;function pt(ot){return ve(ot,ue)}be.isBooleanObject=pt;function rt(ot){return le&&ve(ot,fe)}be.isBigIntObject=rt;function Ae(ot){return E&&ve(ot,me)}be.isSymbolObject=Ae;function Pe(ot){return Ke(ot)||ct(ot)||pt(ot)||rt(ot)||Ae(ot)}be.isBoxedPrimitive=Pe;function Ue(ot){return typeof Uint8Array!="undefined"&&(Xe(ot)||lt(ot))}be.isAnyArrayBuffer=Ue,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(ot){Object.defineProperty(be,ot,{enumerable:!1,value:function(){throw new Error(ot+" is not supported in userland")}})})},{"is-arguments":365,"is-generator-function":368,"is-typed-array":369,"which-typed-array":420}],419:[function(y,Te,be){(function(x){(function(){var z=Object.getOwnPropertyDescriptors||function(dt){for(var tt=Object.keys(dt),lt={},st=0;st<tt.length;st++)lt[tt[st]]=Object.getOwnPropertyDescriptor(dt,tt[st]);return lt},ie=/%[sdj%]/g;be.format=function(Ye){if(!ye(Ye)){for(var dt=[],tt=0;tt<arguments.length;tt++)dt.push(E(arguments[tt]));return dt.join(" ")}for(var tt=1,lt=arguments,st=lt.length,He=String(Ye).replace(ie,function(Ge){if(Ge==="%%")return"%";if(tt>=st)return Ge;switch(Ge){case"%s":return String(lt[tt++]);case"%d":return Number(lt[tt++]);case"%j":try{return JSON.stringify(lt[tt++])}catch(Me){return"[Circular]"}default:return Ge}}),Ne=lt[tt];tt<st;Ne=lt[++tt])je(Ne)||!ke(Ne)?He+=" "+Ne:He+=" "+E(Ne);return He},be.deprecate=function(Ye,dt){if(typeof x!="undefined"&&x.noDeprecation===!0)return Ye;if(typeof x=="undefined")return function(){return be.deprecate(Ye,dt).apply(this,arguments)};var tt=!1;function lt(){if(!tt){if(x.throwDeprecation)throw new Error(dt);x.traceDeprecation?console.trace(dt):console.error(dt),tt=!0}return Ye.apply(this,arguments)}return lt};var oe={},ee=/^$/;if(x.env.NODE_DEBUG){var le=x.env.NODE_DEBUG;le=le.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),ee=new RegExp("^"+le+"$","i")}be.debuglog=function(Ye){if(Ye=Ye.toUpperCase(),!oe[Ye])if(ee.test(Ye)){var dt=x.pid;oe[Ye]=function(){var tt=be.format.apply(be,arguments);console.error("%s %d: %s",Ye,dt,tt)}}else oe[Ye]=function(){};return oe[Ye]};function E(Ye,dt){var tt={seen:[],stylize:te};return arguments.length>=3&&(tt.depth=arguments[2]),arguments.length>=4&&(tt.colors=arguments[3]),Ce(dt)?tt.showHidden=dt:dt&&be._extend(tt,dt),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=ne),ue(tt,Ye,tt.depth)}be.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 ne(Ye,dt){var tt=E.styles[dt];return tt?"\x1B["+E.colors[tt][0]+"m"+Ye+"\x1B["+E.colors[tt][1]+"m":Ye}function te(Ye,dt){return Ye}function se(Ye){var dt={};return Ye.forEach(function(tt,lt){dt[tt]=!0}),dt}function ue(Ye,dt,tt){if(Ye.customInspect&&dt&&Ve(dt.inspect)&&dt.inspect!==be.inspect&&!(dt.constructor&&dt.constructor.prototype===dt)){var lt=dt.inspect(tt,Ye);return ye(lt)||(lt=ue(Ye,lt,tt)),lt}var st=fe(Ye,dt);if(st)return st;var He=Object.keys(dt),Ne=se(He);if(Ye.showHidden&&(He=Object.getOwnPropertyNames(dt)),Ze(dt)&&(He.indexOf("message")>=0||He.indexOf("description")>=0))return me(dt);if(He.length===0){if(Ve(dt)){var Ge=dt.name?": "+dt.name:"";return Ye.stylize("[Function"+Ge+"]","special")}if(Re(dt))return Ye.stylize(RegExp.prototype.toString.call(dt),"regexp");if(_e(dt))return Ye.stylize(Date.prototype.toString.call(dt),"date");if(Ze(dt))return me(dt)}var Me="",Ke=!1,ct=["{","}"];if(xe(dt)&&(Ke=!0,ct=["[","]"]),Ve(dt)){var pt=dt.name?": "+dt.name:"";Me=" [Function"+pt+"]"}if(Re(dt)&&(Me=" "+RegExp.prototype.toString.call(dt)),_e(dt)&&(Me=" "+Date.prototype.toUTCString.call(dt)),Ze(dt)&&(Me=" "+me(dt)),He.length===0&&(!Ke||dt.length==0))return ct[0]+Me+ct[1];if(tt<0)return Re(dt)?Ye.stylize(RegExp.prototype.toString.call(dt),"regexp"):Ye.stylize("[Object]","special");Ye.seen.push(dt);var rt;return Ke?rt=ve(Ye,dt,tt,Ne,He):rt=He.map(function(Ae){return he(Ye,dt,tt,Ne,Ae,Ke)}),Ye.seen.pop(),ge(rt,Me,ct)}function fe(Ye,dt){if(De(dt))return Ye.stylize("undefined","undefined");if(ye(dt)){var tt="'"+JSON.stringify(dt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return Ye.stylize(tt,"string")}if(ce(dt))return Ye.stylize(""+dt,"number");if(Ce(dt))return Ye.stylize(""+dt,"boolean");if(je(dt))return Ye.stylize("null","null")}function me(Ye){return"["+Error.prototype.toString.call(Ye)+"]"}function ve(Ye,dt,tt,lt,st){for(var He=[],Ne=0,Ge=dt.length;Ne<Ge;++Ne)at(dt,String(Ne))?He.push(he(Ye,dt,tt,lt,String(Ne),!0)):He.push("");return st.forEach(function(Me){Me.match(/^\d+$/)||He.push(he(Ye,dt,tt,lt,Me,!0))}),He}function he(Ye,dt,tt,lt,st,He){var Ne,Ge,Me;if(Me=Object.getOwnPropertyDescriptor(dt,st)||{value:dt[st]},Me.get?Me.set?Ge=Ye.stylize("[Getter/Setter]","special"):Ge=Ye.stylize("[Getter]","special"):Me.set&&(Ge=Ye.stylize("[Setter]","special")),at(lt,st)||(Ne="["+st+"]"),Ge||(Ye.seen.indexOf(Me.value)<0?(je(tt)?Ge=ue(Ye,Me.value,null):Ge=ue(Ye,Me.value,tt-1),Ge.indexOf(`
`)>-1&&(He?Ge=Ge.split(`
`).map(function(Ke){return" "+Ke}).join(`
`).slice(2):Ge=`
`+Ge.split(`
`).map(function(Ke){return" "+Ke}).join(`
`))):Ge=Ye.stylize("[Circular]","special")),De(Ne)){if(He&&st.match(/^\d+$/))return Ge;Ne=JSON.stringify(""+st),Ne.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Ne=Ne.slice(1,-1),Ne=Ye.stylize(Ne,"name")):(Ne=Ne.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Ne=Ye.stylize(Ne,"string"))}return Ne+": "+Ge}function ge(Ye,dt,tt){var lt=0,st=Ye.reduce(function(He,Ne){return lt++,Ne.indexOf(`
`)>=0&&lt++,He+Ne.replace(/\u001b\[\d\d?m/g,"").length+1},0);return st>60?tt[0]+(dt===""?"":dt+`
`)+" "+Ye.join(`,
`)+" "+tt[1]:tt[0]+dt+" "+Ye.join(", ")+" "+tt[1]}be.types=y("./support/types");function xe(Ye){return Array.isArray(Ye)}be.isArray=xe;function Ce(Ye){return typeof Ye=="boolean"}be.isBoolean=Ce;function je(Ye){return Ye===null}be.isNull=je;function Ee(Ye){return Ye==null}be.isNullOrUndefined=Ee;function ce(Ye){return typeof Ye=="number"}be.isNumber=ce;function ye(Ye){return typeof Ye=="string"}be.isString=ye;function we(Ye){return typeof Ye=="symbol"}be.isSymbol=we;function De(Ye){return Ye===void 0}be.isUndefined=De;function Re(Ye){return ke(Ye)&&ut(Ye)==="[object RegExp]"}be.isRegExp=Re,be.types.isRegExp=Re;function ke(Ye){return typeof Ye=="object"&&Ye!==null}be.isObject=ke;function _e(Ye){return ke(Ye)&&ut(Ye)==="[object Date]"}be.isDate=_e,be.types.isDate=_e;function Ze(Ye){return ke(Ye)&&(ut(Ye)==="[object Error]"||Ye instanceof Error)}be.isError=Ze,be.types.isNativeError=Ze;function Ve(Ye){return typeof Ye=="function"}be.isFunction=Ve;function Qe(Ye){return Ye===null||typeof Ye=="boolean"||typeof Ye=="number"||typeof Ye=="string"||typeof Ye=="symbol"||typeof Ye=="undefined"}be.isPrimitive=Qe,be.isBuffer=y("./support/isBuffer");function ut(Ye){return Object.prototype.toString.call(Ye)}function Ie(Ye){return Ye<10?"0"+Ye.toString(10):Ye.toString(10)}var We=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function it(){var Ye=new Date,dt=[Ie(Ye.getHours()),Ie(Ye.getMinutes()),Ie(Ye.getSeconds())].join(":");return[Ye.getDate(),We[Ye.getMonth()],dt].join(" ")}be.log=function(){console.log("%s - %s",it(),be.format.apply(be,arguments))},be.inherits=y("inherits"),be._extend=function(Ye,dt){if(!dt||!ke(dt))return Ye;for(var tt=Object.keys(dt),lt=tt.length;lt--;)Ye[tt[lt]]=dt[tt[lt]];return Ye};function at(Ye,dt){return Object.prototype.hasOwnProperty.call(Ye,dt)}var nt=typeof Symbol!="undefined"?Symbol("util.promisify.custom"):void 0;be.promisify=function(dt){if(typeof dt!="function")throw new TypeError('The "original" argument must be of type Function');if(nt&&dt[nt]){var tt=dt[nt];if(typeof tt!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tt,nt,{value:tt,enumerable:!1,writable:!1,configurable:!0}),tt}function tt(){for(var lt,st,He=new Promise(function(Me,Ke){lt=Me,st=Ke}),Ne=[],Ge=0;Ge<arguments.length;Ge++)Ne.push(arguments[Ge]);Ne.push(function(Me,Ke){Me?st(Me):lt(Ke)});try{dt.apply(this,Ne)}catch(Me){st(Me)}return He}return Object.setPrototypeOf(tt,Object.getPrototypeOf(dt)),nt&&Object.defineProperty(tt,nt,{value:tt,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(tt,z(dt))},be.promisify.custom=nt;function Xe(Ye,dt){if(!Ye){var tt=new Error("Promise was rejected with a falsy value");tt.reason=Ye,Ye=tt}return dt(Ye)}function et(Ye){if(typeof Ye!="function")throw new TypeError('The "original" argument must be of type Function');function dt(){for(var tt=[],lt=0;lt<arguments.length;lt++)tt.push(arguments[lt]);var st=tt.pop();if(typeof st!="function")throw new TypeError("The last argument must be of type Function");var He=this,Ne=function(){return st.apply(He,arguments)};Ye.apply(this,tt).then(function(Ge){x.nextTick(Ne.bind(null,null,Ge))},function(Ge){x.nextTick(Xe.bind(null,Ge,Ne))})}return Object.setPrototypeOf(dt,Object.getPrototypeOf(Ye)),Object.defineProperties(dt,z(Ye)),dt}be.callbackify=et}).call(this)}).call(this,y("_process"))},{"./support/isBuffer":417,"./support/types":418,_process:467,inherits:364}],420:[function(y,Te,be){(function(x){(function(){"use strict";var z=y("for-each"),ie=y("available-typed-arrays"),oe=y("call-bind"),ee=y("call-bind/callBound"),le=y("gopd"),E=ee("Object.prototype.toString"),ne=y("has-tostringtag/shams")(),te=typeof globalThis=="undefined"?x:globalThis,se=ie(),ue=ee("String.prototype.slice"),fe=Object.getPrototypeOf,me=ee("Array.prototype.indexOf",!0)||function(Ce,je){for(var Ee=0;Ee<Ce.length;Ee+=1)if(Ce[Ee]===je)return Ee;return-1},ve={__proto__:null};ne&&le&&fe?z(se,function(xe){var Ce=new te[xe];if(Symbol.toStringTag in Ce){var je=fe(Ce),Ee=le(je,Symbol.toStringTag);if(!Ee){var ce=fe(je);Ee=le(ce,Symbol.toStringTag)}ve["$"+xe]=oe(Ee.get)}}):z(se,function(xe){var Ce=new te[xe];ve["$"+xe]=oe(Ce.slice)});var he=function(Ce){var je=!1;return z(ve,function(Ee,ce){if(!je)try{"$"+Ee(Ce)===ce&&(je=ue(ce,1))}catch(ye){}}),je},ge=function(Ce){var je=!1;return z(ve,function(Ee,ce){if(!je)try{Ee(Ce),je=ue(ce,1)}catch(ye){}}),je};Te.exports=function(Ce){if(!Ce||typeof Ce!="object")return!1;if(!ne){var je=ue(E(Ce),8,-1);return me(se,je)>-1?je:je!=="Object"?!1:ge(Ce)}return le?he(Ce):null}}).call(this)}).call(this,typeof Zt!="undefined"?Zt: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,Te,be){(function(){"use strict";be.stripBOM=function(x){return x[0]==="\uFEFF"?x.substring(1):x}}).call(this)},{}],422:[function(y,Te,be){(function(){"use strict";var x,z,ie,oe,ee,le={}.hasOwnProperty;x=y("xmlbuilder"),z=y("./defaults").defaults,oe=function(E){return typeof E=="string"&&(E.indexOf("&")>=0||E.indexOf(">")>=0||E.indexOf("<")>=0)},ee=function(E){return"<![CDATA["+ie(E)+"]]>"},ie=function(E){return E.replace("]]>","]]]]><![CDATA[>")},be.Builder=function(){function E(ne){var te,se,ue;this.options={},se=z["0.2"];for(te in se)le.call(se,te)&&(ue=se[te],this.options[te]=ue);for(te in ne)le.call(ne,te)&&(ue=ne[te],this.options[te]=ue)}return E.prototype.buildObject=function(ne){var te,se,ue,fe,me;return te=this.options.attrkey,se=this.options.charkey,Object.keys(ne).length===1&&this.options.rootName===z["0.2"].rootName?(me=Object.keys(ne)[0],ne=ne[me]):me=this.options.rootName,ue=function(ve){return function(he,ge){var xe,Ce,je,Ee,ce,ye;if(typeof ge!="object")ve.options.cdata&&oe(ge)?he.raw(ee(ge)):he.txt(ge);else if(Array.isArray(ge)){for(Ee in ge)if(le.call(ge,Ee)){Ce=ge[Ee];for(ce in Ce)je=Ce[ce],he=ue(he.ele(ce),je).up()}}else for(ce in ge)if(le.call(ge,ce))if(Ce=ge[ce],ce===te){if(typeof Ce=="object")for(xe in Ce)ye=Ce[xe],he=he.att(xe,ye)}else if(ce===se)ve.options.cdata&&oe(Ce)?he=he.raw(ee(Ce)):he=he.txt(Ce);else if(Array.isArray(Ce))for(Ee in Ce)le.call(Ce,Ee)&&(je=Ce[Ee],typeof je=="string"?ve.options.cdata&&oe(je)?he=he.ele(ce).raw(ee(je)).up():he=he.ele(ce,je).up():he=ue(he.ele(ce),je).up());else typeof Ce=="object"?he=ue(he.ele(ce),Ce).up():typeof Ce=="string"&&ve.options.cdata&&oe(Ce)?he=he.ele(ce).raw(ee(Ce)).up():(Ce==null&&(Ce=""),he=he.ele(ce,Ce.toString()).up());return he}}(this),fe=x.create(me,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ue(fe,ne).end(this.options.renderOpts)},E}()}).call(this)},{"./defaults":423,xmlbuilder:459}],423:[function(y,Te,be){(function(){be.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,Te,be){(function(){"use strict";var x,z,ie,oe,ee,le,E,ne,te,se=function(me,ve){return function(){return me.apply(ve,arguments)}},ue=function(me,ve){for(var he in ve)fe.call(ve,he)&&(me[he]=ve[he]);function ge(){this.constructor=me}return ge.prototype=ve.prototype,me.prototype=new ge,me.__super__=ve.prototype,me},fe={}.hasOwnProperty;ne=y("sax"),oe=y("events"),x=y("./bom"),E=y("./processors"),te=y("timers").setImmediate,z=y("./defaults").defaults,ee=function(me){return typeof me=="object"&&me!=null&&Object.keys(me).length===0},le=function(me,ve,he){var ge,xe,Ce;for(ge=0,xe=me.length;ge<xe;ge++)Ce=me[ge],ve=Ce(ve,he);return ve},ie=function(me,ve,he){var ge;return ge=Object.create(null),ge.value=he,ge.writable=!0,ge.enumerable=!0,ge.configurable=!0,Object.defineProperty(me,ve,ge)},be.Parser=function(me){ue(ve,me);function ve(he){this.parseStringPromise=se(this.parseStringPromise,this),this.parseString=se(this.parseString,this),this.reset=se(this.reset,this),this.assignOrPush=se(this.assignOrPush,this),this.processAsync=se(this.processAsync,this);var ge,xe,Ce;if(!(this instanceof be.Parser))return new be.Parser(he);this.options={},xe=z["0.2"];for(ge in xe)fe.call(xe,ge)&&(Ce=xe[ge],this.options[ge]=Ce);for(ge in he)fe.call(he,ge)&&(Ce=he[ge],this.options[ge]=Ce);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 ve.prototype.processAsync=function(){var he,ge;try{return this.remaining.length<=this.options.chunkSize?(he=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(he),this.saxParser.close()):(he=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(he),te(this.processAsync))}catch(xe){if(ge=xe,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(ge)}},ve.prototype.assignOrPush=function(he,ge,xe){return ge in he?(he[ge]instanceof Array||ie(he,ge,[he[ge]]),he[ge].push(xe)):this.options.explicitArray?ie(he,ge,[xe]):ie(he,ge,xe)},ve.prototype.reset=function(){var he,ge,xe,Ce;return this.removeAllListeners(),this.saxParser=ne.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(je){return function(Ee){if(je.saxParser.resume(),!je.saxParser.errThrown)return je.saxParser.errThrown=!0,je.emit("error",Ee)}}(this),this.saxParser.onend=function(je){return function(){if(!je.saxParser.ended)return je.saxParser.ended=!0,je.emit("end",je.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,Ce=[],he=this.options.attrkey,ge=this.options.charkey,this.saxParser.onopentag=function(je){return function(Ee){var ce,ye,we,De,Re;if(we={},we[ge]="",!je.options.ignoreAttrs){Re=Ee.attributes;for(ce in Re)fe.call(Re,ce)&&(!(he in we)&&!je.options.mergeAttrs&&(we[he]={}),ye=je.options.attrValueProcessors?le(je.options.attrValueProcessors,Ee.attributes[ce],ce):Ee.attributes[ce],De=je.options.attrNameProcessors?le(je.options.attrNameProcessors,ce):ce,je.options.mergeAttrs?je.assignOrPush(we,De,ye):ie(we[he],De,ye))}return we["#name"]=je.options.tagNameProcessors?le(je.options.tagNameProcessors,Ee.name):Ee.name,je.options.xmlns&&(we[je.options.xmlnskey]={uri:Ee.uri,local:Ee.local}),Ce.push(we)}}(this),this.saxParser.onclosetag=function(je){return function(){var Ee,ce,ye,we,De,Re,ke,_e,Ze,Ve;if(Re=Ce.pop(),De=Re["#name"],(!je.options.explicitChildren||!je.options.preserveChildrenOrder)&&delete Re["#name"],Re.cdata===!0&&(Ee=Re.cdata,delete Re.cdata),Ze=Ce[Ce.length-1],Re[ge].match(/^\s*$/)&&!Ee?(ce=Re[ge],delete Re[ge]):(je.options.trim&&(Re[ge]=Re[ge].trim()),je.options.normalize&&(Re[ge]=Re[ge].replace(/\s{2,}/g," ").trim()),Re[ge]=je.options.valueProcessors?le(je.options.valueProcessors,Re[ge],De):Re[ge],Object.keys(Re).length===1&&ge in Re&&!je.EXPLICIT_CHARKEY&&(Re=Re[ge])),ee(Re)&&(typeof je.options.emptyTag=="function"?Re=je.options.emptyTag():Re=je.options.emptyTag!==""?je.options.emptyTag:ce),je.options.validator!=null&&(Ve="/"+function(){var Qe,ut,Ie;for(Ie=[],Qe=0,ut=Ce.length;Qe<ut;Qe++)we=Ce[Qe],Ie.push(we["#name"]);return Ie}().concat(De).join("/"),function(){var Qe;try{return Re=je.options.validator(Ve,Ze&&Ze[De],Re)}catch(ut){return Qe=ut,je.emit("error",Qe)}}()),je.options.explicitChildren&&!je.options.mergeAttrs&&typeof Re=="object"){if(!je.options.preserveChildrenOrder)we={},je.options.attrkey in Re&&(we[je.options.attrkey]=Re[je.options.attrkey],delete Re[je.options.attrkey]),!je.options.charsAsChildren&&je.options.charkey in Re&&(we[je.options.charkey]=Re[je.options.charkey],delete Re[je.options.charkey]),Object.getOwnPropertyNames(Re).length>0&&(we[je.options.childkey]=Re),Re=we;else if(Ze){Ze[je.options.childkey]=Ze[je.options.childkey]||[],ke={};for(ye in Re)fe.call(Re,ye)&&ie(ke,ye,Re[ye]);Ze[je.options.childkey].push(ke),delete Re["#name"],Object.keys(Re).length===1&&ge in Re&&!je.EXPLICIT_CHARKEY&&(Re=Re[ge])}}return Ce.length>0?je.assignOrPush(Ze,De,Re):(je.options.explicitRoot&&(_e=Re,Re={},ie(Re,De,_e)),je.resultObject=Re,je.saxParser.ended=!0,je.emit("end",je.resultObject))}}(this),xe=function(je){return function(Ee){var ce,ye;if(ye=Ce[Ce.length-1],ye)return ye[ge]+=Ee,je.options.explicitChildren&&je.options.preserveChildrenOrder&&je.options.charsAsChildren&&(je.options.includeWhiteChars||Ee.replace(/\\n/g,"").trim()!=="")&&(ye[je.options.childkey]=ye[je.options.childkey]||[],ce={"#name":"__text__"},ce[ge]=Ee,je.options.normalize&&(ce[ge]=ce[ge].replace(/\s{2,}/g," ").trim()),ye[je.options.childkey].push(ce)),ye}}(this),this.saxParser.ontext=xe,this.saxParser.oncdata=function(je){return function(Ee){var ce;if(ce=xe(Ee),ce)return ce.cdata=!0}}(this)},ve.prototype.parseString=function(he,ge){var xe;ge!=null&&typeof ge=="function"&&(this.on("end",function(Ce){return this.reset(),ge(null,Ce)}),this.on("error",function(Ce){return this.reset(),ge(Ce)}));try{return he=he.toString(),he.trim()===""?(this.emit("end",null),!0):(he=x.stripBOM(he),this.options.async?(this.remaining=he,te(this.processAsync),this.saxParser):this.saxParser.write(he).close())}catch(Ce){if(xe=Ce,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw xe}else return this.emit("error",xe),this.saxParser.errThrown=!0}},ve.prototype.parseStringPromise=function(he){return new Promise(function(ge){return function(xe,Ce){return ge.parseString(he,function(je,Ee){return je?Ce(je):xe(Ee)})}}(this))},ve}(oe),be.parseString=function(me,ve,he){var ge,xe,Ce;return he!=null?(typeof he=="function"&&(ge=he),typeof ve=="object"&&(xe=ve)):(typeof ve=="function"&&(ge=ve),xe={}),Ce=new be.Parser(xe),Ce.parseString(me,ge)},be.parseStringPromise=function(me,ve){var he,ge;return typeof ve=="object"&&(he=ve),ge=new be.Parser(he),ge.parseStringPromise(me)}}).call(this)},{"./bom":421,"./defaults":423,"./processors":425,events:344,sax:397,timers:414}],425:[function(y,Te,be){(function(){"use strict";var x;x=new RegExp(/(?!xmlns)^.*:/),be.normalize=function(z){return z.toLowerCase()},be.firstCharLowerCase=function(z){return z.charAt(0).toLowerCase()+z.slice(1)},be.stripPrefix=function(z){return z.replace(x,"")},be.parseNumbers=function(z){return isNaN(z)||(z=z%1===0?parseInt(z,10):parseFloat(z)),z},be.parseBooleans=function(z){return/^(?:true|false)$/i.test(z)&&(z=z.toLowerCase()==="true"),z}}).call(this)},{}],426:[function(y,Te,be){(function(){"use strict";var x,z,ie,oe,ee=function(E,ne){for(var te in ne)le.call(ne,te)&&(E[te]=ne[te]);function se(){this.constructor=E}return se.prototype=ne.prototype,E.prototype=new se,E.__super__=ne.prototype,E},le={}.hasOwnProperty;z=y("./defaults"),x=y("./builder"),ie=y("./parser"),oe=y("./processors"),be.defaults=z.defaults,be.processors=oe,be.ValidationError=function(E){ee(ne,E);function ne(te){this.message=te}return ne}(Error),be.Builder=x.Builder,be.Parser=ie.Parser,be.parseString=ie.parseString,be.parseStringPromise=ie.parseStringPromise}).call(this)},{"./builder":422,"./defaults":423,"./parser":424,"./processors":425}],427:[function(y,Te,be){(function(){Te.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(this)},{}],428:[function(y,Te,be){(function(){Te.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,Te,be){(function(){var x,z,ie,oe,ee,le,E,ne=[].slice,te={}.hasOwnProperty;x=function(){var se,ue,fe,me,ve,he;if(he=arguments[0],ve=2<=arguments.length?ne.call(arguments,1):[],ee(Object.assign))Object.assign.apply(null,arguments);else for(se=0,fe=ve.length;se<fe;se++)if(me=ve[se],me!=null)for(ue in me)te.call(me,ue)&&(he[ue]=me[ue]);return he},ee=function(se){return!!se&&Object.prototype.toString.call(se)==="[object Function]"},le=function(se){var ue;return!!se&&((ue=typeof se)=="function"||ue==="object")},ie=function(se){return ee(Array.isArray)?Array.isArray(se):Object.prototype.toString.call(se)==="[object Array]"},oe=function(se){var ue;if(ie(se))return!se.length;for(ue in se)if(te.call(se,ue))return!1;return!0},E=function(se){var ue,fe;return le(se)&&(fe=Object.getPrototypeOf(se))&&(ue=fe.constructor)&&typeof ue=="function"&&ue instanceof ue&&Function.prototype.toString.call(ue)===Function.prototype.toString.call(Object)},z=function(se){return ee(se.valueOf)?se.valueOf():se},Te.exports.assign=x,Te.exports.isFunction=ee,Te.exports.isObject=le,Te.exports.isArray=ie,Te.exports.isEmpty=oe,Te.exports.isPlainObject=E,Te.exports.getValue=z}).call(this)},{}],430:[function(y,Te,be){(function(){Te.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(this)},{}],431:[function(y,Te,be){(function(){var x,z,ie;x=y("./NodeType"),ie=y("./XMLNode"),Te.exports=z=function(){function oe(ee,le,E){if(this.parent=ee,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),le==null)throw new Error("Missing attribute name. "+this.debugInfo(le));this.name=this.stringify.name(le),this.value=this.stringify.attValue(E),this.type=x.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(oe.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(oe.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(oe.prototype,"textContent",{get:function(){return this.value},set:function(ee){return this.value=ee||""}}),Object.defineProperty(oe.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(oe.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(oe.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(oe.prototype,"specified",{get:function(){return!0}}),oe.prototype.clone=function(){return Object.create(this)},oe.prototype.toString=function(ee){return this.options.writer.attribute(this,this.options.writer.filterOptions(ee))},oe.prototype.debugInfo=function(ee){return ee=ee||this.name,ee==null?"parent: <"+this.parent.name+">":"attribute: {"+ee+"}, parent: <"+this.parent.name+">"},oe.prototype.isEqualNode=function(ee){return!(ee.namespaceURI!==this.namespaceURI||ee.prefix!==this.prefix||ee.localName!==this.localName||ee.value!==this.value)},oe}()}).call(this)},{"./NodeType":428,"./XMLNode":450}],432:[function(y,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;x=y("./NodeType"),ie=y("./XMLCharacterData"),Te.exports=z=function(le){oe(E,le);function E(ne,te){if(E.__super__.constructor.call(this,ne),te==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=x.CData,this.value=this.stringify.cdata(te)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.cdata(this,this.options.writer.filterOptions(ne))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],433:[function(y,Te,be){(function(){var x,z,ie=function(ee,le){for(var E in le)oe.call(le,E)&&(ee[E]=le[E]);function ne(){this.constructor=ee}return ne.prototype=le.prototype,ee.prototype=new ne,ee.__super__=le.prototype,ee},oe={}.hasOwnProperty;z=y("./XMLNode"),Te.exports=x=function(ee){ie(le,ee);function le(E){le.__super__.constructor.call(this,E),this.value=""}return Object.defineProperty(le.prototype,"data",{get:function(){return this.value},set:function(E){return this.value=E||""}}),Object.defineProperty(le.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(le.prototype,"textContent",{get:function(){return this.value},set:function(E){return this.value=E||""}}),le.prototype.clone=function(){return Object.create(this)},le.prototype.substringData=function(E,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.appendData=function(E){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.insertData=function(E,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.deleteData=function(E,ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.replaceData=function(E,ne,te){throw new Error("This DOM method is not implemented."+this.debugInfo())},le.prototype.isEqualNode=function(E){return!(!le.__super__.isEqualNode.apply(this,arguments).isEqualNode(E)||E.data!==this.data)},le}(z)}).call(this)},{"./XMLNode":450}],434:[function(y,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),Te.exports=ie=function(le){oe(E,le);function E(ne,te){if(E.__super__.constructor.call(this,ne),te==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=x.Comment,this.value=this.stringify.comment(te)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.comment(this,this.options.writer.filterOptions(ne))},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],435:[function(y,Te,be){(function(){var x,z,ie;z=y("./XMLDOMErrorHandler"),ie=y("./XMLDOMStringList"),Te.exports=x=function(){function oe(){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(oe.prototype,"parameterNames",{get:function(){return new ie(Object.keys(this.defaultParams))}}),oe.prototype.getParameter=function(ee){return this.params.hasOwnProperty(ee)?this.params[ee]:null},oe.prototype.canSetParameter=function(ee,le){return!0},oe.prototype.setParameter=function(ee,le){return le!=null?this.params[ee]=le:delete this.params[ee]},oe}()}).call(this)},{"./XMLDOMErrorHandler":436,"./XMLDOMStringList":438}],436:[function(y,Te,be){(function(){var x;Te.exports=x=function(){function z(){}return z.prototype.handleError=function(ie){throw new Error(ie)},z}()}).call(this)},{}],437:[function(y,Te,be){(function(){var x;Te.exports=x=function(){function z(){}return z.prototype.hasFeature=function(ie,oe){return!0},z.prototype.createDocumentType=function(ie,oe,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createDocument=function(ie,oe,ee){throw new Error("This DOM method is not implemented.")},z.prototype.createHTMLDocument=function(ie){throw new Error("This DOM method is not implemented.")},z.prototype.getFeature=function(ie,oe){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],438:[function(y,Te,be){(function(){var x;Te.exports=x=function(){function z(ie){this.arr=ie||[]}return Object.defineProperty(z.prototype,"length",{get:function(){return this.arr.length}}),z.prototype.item=function(ie){return this.arr[ie]||null},z.prototype.contains=function(ie){return this.arr.indexOf(ie)!==-1},z}()}).call(this)},{}],439:[function(y,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;ie=y("./XMLNode"),x=y("./NodeType"),Te.exports=z=function(le){oe(E,le);function E(ne,te,se,ue,fe,me){if(E.__super__.constructor.call(this,ne),te==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(se==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(te));if(!ue)throw new Error("Missing DTD attribute type. "+this.debugInfo(te));if(!fe)throw new Error("Missing DTD attribute default. "+this.debugInfo(te));if(fe.indexOf("#")!==0&&(fe="#"+fe),!fe.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(te));if(me&&!fe.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(te));this.elementName=this.stringify.name(te),this.type=x.AttributeDeclaration,this.attributeName=this.stringify.name(se),this.attributeType=this.stringify.dtdAttType(ue),me&&(this.defaultValue=this.stringify.dtdAttDefault(me)),this.defaultValueType=fe}return E.prototype.toString=function(ne){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(ne))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],440:[function(y,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;ie=y("./XMLNode"),x=y("./NodeType"),Te.exports=z=function(le){oe(E,le);function E(ne,te,se){if(E.__super__.constructor.call(this,ne),te==null)throw new Error("Missing DTD element name. "+this.debugInfo());se||(se="(#PCDATA)"),Array.isArray(se)&&(se="("+se.join(",")+")"),this.name=this.stringify.name(te),this.type=x.ElementDeclaration,this.value=this.stringify.dtdElementValue(se)}return E.prototype.toString=function(ne){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(ne))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],441:[function(y,Te,be){(function(){var x,z,ie,oe,ee=function(E,ne){for(var te in ne)le.call(ne,te)&&(E[te]=ne[te]);function se(){this.constructor=E}return se.prototype=ne.prototype,E.prototype=new se,E.__super__=ne.prototype,E},le={}.hasOwnProperty;oe=y("./Utility").isObject,ie=y("./XMLNode"),x=y("./NodeType"),Te.exports=z=function(E){ee(ne,E);function ne(te,se,ue,fe){if(ne.__super__.constructor.call(this,te),ue==null)throw new Error("Missing DTD entity name. "+this.debugInfo(ue));if(fe==null)throw new Error("Missing DTD entity value. "+this.debugInfo(ue));if(this.pe=!!se,this.name=this.stringify.name(ue),this.type=x.EntityDeclaration,!oe(fe))this.value=this.stringify.dtdEntityValue(fe),this.internal=!0;else{if(!fe.pubID&&!fe.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(ue));if(fe.pubID&&!fe.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(ue));if(this.internal=!1,fe.pubID!=null&&(this.pubID=this.stringify.dtdPubID(fe.pubID)),fe.sysID!=null&&(this.sysID=this.stringify.dtdSysID(fe.sysID)),fe.nData!=null&&(this.nData=this.stringify.dtdNData(fe.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(ue))}}return Object.defineProperty(ne.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(ne.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(ne.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(ne.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(ne.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(ne.prototype,"xmlVersion",{get:function(){return null}}),ne.prototype.toString=function(te){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(te))},ne}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],442:[function(y,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;ie=y("./XMLNode"),x=y("./NodeType"),Te.exports=z=function(le){oe(E,le);function E(ne,te,se){if(E.__super__.constructor.call(this,ne),te==null)throw new Error("Missing DTD notation name. "+this.debugInfo(te));if(!se.pubID&&!se.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(te));this.name=this.stringify.name(te),this.type=x.NotationDeclaration,se.pubID!=null&&(this.pubID=this.stringify.dtdPubID(se.pubID)),se.sysID!=null&&(this.sysID=this.stringify.dtdSysID(se.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(ne){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(ne))},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],443:[function(y,Te,be){(function(){var x,z,ie,oe,ee=function(E,ne){for(var te in ne)le.call(ne,te)&&(E[te]=ne[te]);function se(){this.constructor=E}return se.prototype=ne.prototype,E.prototype=new se,E.__super__=ne.prototype,E},le={}.hasOwnProperty;oe=y("./Utility").isObject,ie=y("./XMLNode"),x=y("./NodeType"),Te.exports=z=function(E){ee(ne,E);function ne(te,se,ue,fe){var me;ne.__super__.constructor.call(this,te),oe(se)&&(me=se,se=me.version,ue=me.encoding,fe=me.standalone),se||(se="1.0"),this.type=x.Declaration,this.version=this.stringify.xmlVersion(se),ue!=null&&(this.encoding=this.stringify.xmlEncoding(ue)),fe!=null&&(this.standalone=this.stringify.xmlStandalone(fe))}return ne.prototype.toString=function(te){return this.options.writer.declaration(this,this.options.writer.filterOptions(te))},ne}(ie)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLNode":450}],444:[function(y,Te,be){(function(){var x,z,ie,oe,ee,le,E,ne,te,se=function(fe,me){for(var ve in me)ue.call(me,ve)&&(fe[ve]=me[ve]);function he(){this.constructor=fe}return he.prototype=me.prototype,fe.prototype=new he,fe.__super__=me.prototype,fe},ue={}.hasOwnProperty;te=y("./Utility").isObject,ne=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLDTDAttList"),oe=y("./XMLDTDEntity"),ie=y("./XMLDTDElement"),ee=y("./XMLDTDNotation"),E=y("./XMLNamedNodeMap"),Te.exports=le=function(fe){se(me,fe);function me(ve,he,ge){var xe,Ce,je,Ee,ce,ye;if(me.__super__.constructor.call(this,ve),this.type=x.DocType,ve.children){for(Ee=ve.children,Ce=0,je=Ee.length;Ce<je;Ce++)if(xe=Ee[Ce],xe.type===x.Element){this.name=xe.name;break}}this.documentObject=ve,te(he)&&(ce=he,he=ce.pubID,ge=ce.sysID),ge==null&&(ye=[he,ge],ge=ye[0],he=ye[1]),he!=null&&(this.pubID=this.stringify.dtdPubID(he)),ge!=null&&(this.sysID=this.stringify.dtdSysID(ge))}return Object.defineProperty(me.prototype,"entities",{get:function(){var ve,he,ge,xe,Ce;for(xe={},Ce=this.children,he=0,ge=Ce.length;he<ge;he++)ve=Ce[he],ve.type===x.EntityDeclaration&&!ve.pe&&(xe[ve.name]=ve);return new E(xe)}}),Object.defineProperty(me.prototype,"notations",{get:function(){var ve,he,ge,xe,Ce;for(xe={},Ce=this.children,he=0,ge=Ce.length;he<ge;he++)ve=Ce[he],ve.type===x.NotationDeclaration&&(xe[ve.name]=ve);return new E(xe)}}),Object.defineProperty(me.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(me.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(me.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),me.prototype.element=function(ve,he){var ge;return ge=new ie(this,ve,he),this.children.push(ge),this},me.prototype.attList=function(ve,he,ge,xe,Ce){var je;return je=new z(this,ve,he,ge,xe,Ce),this.children.push(je),this},me.prototype.entity=function(ve,he){var ge;return ge=new oe(this,!1,ve,he),this.children.push(ge),this},me.prototype.pEntity=function(ve,he){var ge;return ge=new oe(this,!0,ve,he),this.children.push(ge),this},me.prototype.notation=function(ve,he){var ge;return ge=new ee(this,ve,he),this.children.push(ge),this},me.prototype.toString=function(ve){return this.options.writer.docType(this,this.options.writer.filterOptions(ve))},me.prototype.ele=function(ve,he){return this.element(ve,he)},me.prototype.att=function(ve,he,ge,xe,Ce){return this.attList(ve,he,ge,xe,Ce)},me.prototype.ent=function(ve,he){return this.entity(ve,he)},me.prototype.pent=function(ve,he){return this.pEntity(ve,he)},me.prototype.not=function(ve,he){return this.notation(ve,he)},me.prototype.up=function(){return this.root()||this.documentObject},me.prototype.isEqualNode=function(ve){return!(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.name!==this.name||ve.publicId!==this.publicId||ve.systemId!==this.systemId)},me}(ne)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDTDAttList":439,"./XMLDTDElement":440,"./XMLDTDEntity":441,"./XMLDTDNotation":442,"./XMLNamedNodeMap":449,"./XMLNode":450}],445:[function(y,Te,be){(function(){var x,z,ie,oe,ee,le,E,ne,te=function(ue,fe){for(var me in fe)se.call(fe,me)&&(ue[me]=fe[me]);function ve(){this.constructor=ue}return ve.prototype=fe.prototype,ue.prototype=new ve,ue.__super__=fe.prototype,ue},se={}.hasOwnProperty;ne=y("./Utility").isPlainObject,ie=y("./XMLDOMImplementation"),z=y("./XMLDOMConfiguration"),ee=y("./XMLNode"),x=y("./NodeType"),E=y("./XMLStringifier"),le=y("./XMLStringWriter"),Te.exports=oe=function(ue){te(fe,ue);function fe(me){fe.__super__.constructor.call(this,null),this.name="#document",this.type=x.Document,this.documentURI=null,this.domConfig=new z,me||(me={}),me.writer||(me.writer=new le),this.options=me,this.stringify=new E(me)}return Object.defineProperty(fe.prototype,"implementation",{value:new ie}),Object.defineProperty(fe.prototype,"doctype",{get:function(){var me,ve,he,ge;for(ge=this.children,ve=0,he=ge.length;ve<he;ve++)if(me=ge[ve],me.type===x.DocType)return me;return null}}),Object.defineProperty(fe.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(fe.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(fe.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(fe.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].encoding:null}}),Object.defineProperty(fe.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(fe.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===x.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(fe.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(fe.prototype,"origin",{get:function(){return null}}),Object.defineProperty(fe.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(fe.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(fe.prototype,"contentType",{get:function(){return null}}),fe.prototype.end=function(me){var ve;return ve={},me?ne(me)&&(ve=me,me=this.options.writer):me=this.options.writer,me.document(this,me.filterOptions(ve))},fe.prototype.toString=function(me){return this.options.writer.document(this,this.options.writer.filterOptions(me))},fe.prototype.createElement=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createTextNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createComment=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createCDATASection=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createProcessingInstruction=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createAttribute=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createEntityReference=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByTagName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.importNode=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createElementNS=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createAttributeNS=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByTagNameNS=function(me,ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementById=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.adoptNode=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.renameNode=function(me,ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.getElementsByClassName=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createEvent=function(me){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createNodeIterator=function(me,ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe.prototype.createTreeWalker=function(me,ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},fe}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLDOMConfiguration":435,"./XMLDOMImplementation":437,"./XMLNode":450,"./XMLStringWriter":455,"./XMLStringifier":456}],446:[function(y,Te,be){(function(){var x,z,ie,oe,ee,le,E,ne,te,se,ue,fe,me,ve,he,ge,xe,Ce,je,Ee,ce,ye,we,De,Re={}.hasOwnProperty;De=y("./Utility"),ye=De.isObject,ce=De.isFunction,we=De.isPlainObject,Ee=De.getValue,x=y("./NodeType"),fe=y("./XMLDocument"),ve=y("./XMLElement"),oe=y("./XMLCData"),ee=y("./XMLComment"),ge=y("./XMLRaw"),je=y("./XMLText"),he=y("./XMLProcessingInstruction"),se=y("./XMLDeclaration"),ue=y("./XMLDocType"),le=y("./XMLDTDAttList"),ne=y("./XMLDTDEntity"),E=y("./XMLDTDElement"),te=y("./XMLDTDNotation"),ie=y("./XMLAttribute"),Ce=y("./XMLStringifier"),xe=y("./XMLStringWriter"),z=y("./WriterState"),Te.exports=me=function(){function ke(_e,Ze,Ve){var Qe;this.name="?xml",this.type=x.Document,_e||(_e={}),Qe={},_e.writer?we(_e.writer)&&(Qe=_e.writer,_e.writer=new xe):_e.writer=new xe,this.options=_e,this.writer=_e.writer,this.writerOptions=this.writer.filterOptions(Qe),this.stringify=new Ce(_e),this.onDataCallback=Ze||function(){},this.onEndCallback=Ve||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return ke.prototype.createChildNode=function(_e){var Ze,Ve,Qe,ut,Ie,We,it,at;switch(_e.type){case x.CData:this.cdata(_e.value);break;case x.Comment:this.comment(_e.value);break;case x.Element:Qe={},it=_e.attribs;for(Ve in it)Re.call(it,Ve)&&(Ze=it[Ve],Qe[Ve]=Ze.value);this.node(_e.name,Qe);break;case x.Dummy:this.dummy();break;case x.Raw:this.raw(_e.value);break;case x.Text:this.text(_e.value);break;case x.ProcessingInstruction:this.instruction(_e.target,_e.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+_e.constructor.name)}for(at=_e.children,Ie=0,We=at.length;Ie<We;Ie++)ut=at[Ie],this.createChildNode(ut),ut.type===x.Element&&this.up();return this},ke.prototype.dummy=function(){return this},ke.prototype.node=function(_e,Ze,Ve){var Qe;if(_e==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(_e));return this.openCurrent(),_e=Ee(_e),Ze==null&&(Ze={}),Ze=Ee(Ze),ye(Ze)||(Qe=[Ze,Ve],Ve=Qe[0],Ze=Qe[1]),this.currentNode=new ve(this,_e,Ze),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,Ve!=null&&this.text(Ve),this},ke.prototype.element=function(_e,Ze,Ve){var Qe,ut,Ie,We,it,at;if(this.currentNode&&this.currentNode.type===x.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(_e)||ye(_e)||ce(_e))for(We=this.options.noValidation,this.options.noValidation=!0,at=new fe(this.options).element("TEMP_ROOT"),at.element(_e),this.options.noValidation=We,it=at.children,ut=0,Ie=it.length;ut<Ie;ut++)Qe=it[ut],this.createChildNode(Qe),Qe.type===x.Element&&this.up();else this.node(_e,Ze,Ve);return this},ke.prototype.attribute=function(_e,Ze){var Ve,Qe;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(_e));if(_e!=null&&(_e=Ee(_e)),ye(_e))for(Ve in _e)Re.call(_e,Ve)&&(Qe=_e[Ve],this.attribute(Ve,Qe));else ce(Ze)&&(Ze=Ze.apply()),this.options.keepNullAttributes&&Ze==null?this.currentNode.attribs[_e]=new ie(this,_e,""):Ze!=null&&(this.currentNode.attribs[_e]=new ie(this,_e,Ze));return this},ke.prototype.text=function(_e){var Ze;return this.openCurrent(),Ze=new je(this,_e),this.onData(this.writer.text(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.cdata=function(_e){var Ze;return this.openCurrent(),Ze=new oe(this,_e),this.onData(this.writer.cdata(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.comment=function(_e){var Ze;return this.openCurrent(),Ze=new ee(this,_e),this.onData(this.writer.comment(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.raw=function(_e){var Ze;return this.openCurrent(),Ze=new ge(this,_e),this.onData(this.writer.raw(Ze,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.instruction=function(_e,Ze){var Ve,Qe,ut,Ie,We;if(this.openCurrent(),_e!=null&&(_e=Ee(_e)),Ze!=null&&(Ze=Ee(Ze)),Array.isArray(_e))for(Ve=0,Ie=_e.length;Ve<Ie;Ve++)Qe=_e[Ve],this.instruction(Qe);else if(ye(_e))for(Qe in _e)Re.call(_e,Qe)&&(ut=_e[Qe],this.instruction(Qe,ut));else ce(Ze)&&(Ze=Ze.apply()),We=new he(this,_e,Ze),this.onData(this.writer.processingInstruction(We,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},ke.prototype.declaration=function(_e,Ze,Ve){var Qe;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return Qe=new se(this,_e,Ze,Ve),this.onData(this.writer.declaration(Qe,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.doctype=function(_e,Ze,Ve){if(this.openCurrent(),_e==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new ue(this,Ze,Ve),this.currentNode.rootNodeName=_e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},ke.prototype.dtdElement=function(_e,Ze){var Ve;return this.openCurrent(),Ve=new E(this,_e,Ze),this.onData(this.writer.dtdElement(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.attList=function(_e,Ze,Ve,Qe,ut){var Ie;return this.openCurrent(),Ie=new le(this,_e,Ze,Ve,Qe,ut),this.onData(this.writer.dtdAttList(Ie,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.entity=function(_e,Ze){var Ve;return this.openCurrent(),Ve=new ne(this,!1,_e,Ze),this.onData(this.writer.dtdEntity(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.pEntity=function(_e,Ze){var Ve;return this.openCurrent(),Ve=new ne(this,!0,_e,Ze),this.onData(this.writer.dtdEntity(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.prototype.notation=function(_e,Ze){var Ve;return this.openCurrent(),Ve=new te(this,_e,Ze),this.onData(this.writer.dtdNotation(Ve,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},ke.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},ke.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},ke.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},ke.prototype.openNode=function(_e){var Ze,Ve,Qe,ut;if(!_e.isOpen){if(!this.root&&this.currentLevel===0&&_e.type===x.Element&&(this.root=_e),Ve="",_e.type===x.Element){this.writerOptions.state=z.OpenTag,Ve=this.writer.indent(_e,this.writerOptions,this.currentLevel)+"<"+_e.name,ut=_e.attribs;for(Qe in ut)Re.call(ut,Qe)&&(Ze=ut[Qe],Ve+=this.writer.attribute(Ze,this.writerOptions,this.currentLevel));Ve+=(_e.children?">":"/>")+this.writer.endline(_e,this.writerOptions,this.currentLevel),this.writerOptions.state=z.InsideTag}else this.writerOptions.state=z.OpenTag,Ve=this.writer.indent(_e,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+_e.rootNodeName,_e.pubID&&_e.sysID?Ve+=' PUBLIC "'+_e.pubID+'" "'+_e.sysID+'"':_e.sysID&&(Ve+=' SYSTEM "'+_e.sysID+'"'),_e.children?(Ve+=" [",this.writerOptions.state=z.InsideTag):(this.writerOptions.state=z.CloseTag,Ve+=">"),Ve+=this.writer.endline(_e,this.writerOptions,this.currentLevel);return this.onData(Ve,this.currentLevel),_e.isOpen=!0}},ke.prototype.closeNode=function(_e){var Ze;if(!_e.isClosed)return Ze="",this.writerOptions.state=z.CloseTag,_e.type===x.Element?Ze=this.writer.indent(_e,this.writerOptions,this.currentLevel)+"</"+_e.name+">"+this.writer.endline(_e,this.writerOptions,this.currentLevel):Ze=this.writer.indent(_e,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(_e,this.writerOptions,this.currentLevel),this.writerOptions.state=z.None,this.onData(Ze,this.currentLevel),_e.isClosed=!0},ke.prototype.onData=function(_e,Ze){return this.documentStarted=!0,this.onDataCallback(_e,Ze+1)},ke.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},ke.prototype.debugInfo=function(_e){return _e==null?"":"node: <"+_e+">"},ke.prototype.ele=function(){return this.element.apply(this,arguments)},ke.prototype.nod=function(_e,Ze,Ve){return this.node(_e,Ze,Ve)},ke.prototype.txt=function(_e){return this.text(_e)},ke.prototype.dat=function(_e){return this.cdata(_e)},ke.prototype.com=function(_e){return this.comment(_e)},ke.prototype.ins=function(_e,Ze){return this.instruction(_e,Ze)},ke.prototype.dec=function(_e,Ze,Ve){return this.declaration(_e,Ze,Ve)},ke.prototype.dtd=function(_e,Ze,Ve){return this.doctype(_e,Ze,Ve)},ke.prototype.e=function(_e,Ze,Ve){return this.element(_e,Ze,Ve)},ke.prototype.n=function(_e,Ze,Ve){return this.node(_e,Ze,Ve)},ke.prototype.t=function(_e){return this.text(_e)},ke.prototype.d=function(_e){return this.cdata(_e)},ke.prototype.c=function(_e){return this.comment(_e)},ke.prototype.r=function(_e){return this.raw(_e)},ke.prototype.i=function(_e,Ze){return this.instruction(_e,Ze)},ke.prototype.att=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ke.prototype.a=function(){return this.currentNode&&this.currentNode.type===x.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},ke.prototype.ent=function(_e,Ze){return this.entity(_e,Ze)},ke.prototype.pent=function(_e,Ze){return this.pEntity(_e,Ze)},ke.prototype.not=function(_e,Ze){return this.notation(_e,Ze)},ke}()}).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,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;ie=y("./XMLNode"),x=y("./NodeType"),Te.exports=z=function(le){oe(E,le);function E(ne){E.__super__.constructor.call(this,ne),this.type=x.Dummy}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return""},E}(ie)}).call(this)},{"./NodeType":428,"./XMLNode":450}],448:[function(y,Te,be){(function(){var x,z,ie,oe,ee,le,E,ne,te,se=function(fe,me){for(var ve in me)ue.call(me,ve)&&(fe[ve]=me[ve]);function he(){this.constructor=fe}return he.prototype=me.prototype,fe.prototype=new he,fe.__super__=me.prototype,fe},ue={}.hasOwnProperty;te=y("./Utility"),ne=te.isObject,E=te.isFunction,le=te.getValue,ee=y("./XMLNode"),x=y("./NodeType"),z=y("./XMLAttribute"),oe=y("./XMLNamedNodeMap"),Te.exports=ie=function(fe){se(me,fe);function me(ve,he,ge){var xe,Ce,je,Ee;if(me.__super__.constructor.call(this,ve),he==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(he),this.type=x.Element,this.attribs={},this.schemaTypeInfo=null,ge!=null&&this.attribute(ge),ve.type===x.Document&&(this.isRoot=!0,this.documentObject=ve,ve.rootObject=this,ve.children)){for(Ee=ve.children,Ce=0,je=Ee.length;Ce<je;Ce++)if(xe=Ee[Ce],xe.type===x.DocType){xe.name=this.name;break}}}return Object.defineProperty(me.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(me.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(me.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(me.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(me.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(me.prototype,"attributes",{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new oe(this.attribs)),this.attributeMap}}),me.prototype.clone=function(){var ve,he,ge,xe;ge=Object.create(this),ge.isRoot&&(ge.documentObject=null),ge.attribs={},xe=this.attribs;for(he in xe)ue.call(xe,he)&&(ve=xe[he],ge.attribs[he]=ve.clone());return ge.children=[],this.children.forEach(function(Ce){var je;return je=Ce.clone(),je.parent=ge,ge.children.push(je)}),ge},me.prototype.attribute=function(ve,he){var ge,xe;if(ve!=null&&(ve=le(ve)),ne(ve))for(ge in ve)ue.call(ve,ge)&&(xe=ve[ge],this.attribute(ge,xe));else E(he)&&(he=he.apply()),this.options.keepNullAttributes&&he==null?this.attribs[ve]=new z(this,ve,""):he!=null&&(this.attribs[ve]=new z(this,ve,he));return this},me.prototype.removeAttribute=function(ve){var he,ge,xe;if(ve==null)throw new Error("Missing attribute name. "+this.debugInfo());if(ve=le(ve),Array.isArray(ve))for(ge=0,xe=ve.length;ge<xe;ge++)he=ve[ge],delete this.attribs[he];else delete this.attribs[ve];return this},me.prototype.toString=function(ve){return this.options.writer.element(this,this.options.writer.filterOptions(ve))},me.prototype.att=function(ve,he){return this.attribute(ve,he)},me.prototype.a=function(ve,he){return this.attribute(ve,he)},me.prototype.getAttribute=function(ve){return this.attribs.hasOwnProperty(ve)?this.attribs[ve].value:null},me.prototype.setAttribute=function(ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getAttributeNode=function(ve){return this.attribs.hasOwnProperty(ve)?this.attribs[ve]:null},me.prototype.setAttributeNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.removeAttributeNode=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByTagName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getAttributeNS=function(ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.setAttributeNS=function(ve,he,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.removeAttributeNS=function(ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getAttributeNodeNS=function(ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.setAttributeNodeNS=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByTagNameNS=function(ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.hasAttribute=function(ve){return this.attribs.hasOwnProperty(ve)},me.prototype.hasAttributeNS=function(ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.setIdAttribute=function(ve,he){return this.attribs.hasOwnProperty(ve)?this.attribs[ve].isId:he},me.prototype.setIdAttributeNS=function(ve,he,ge){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.setIdAttributeNode=function(ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByTagName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByTagNameNS=function(ve,he){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.getElementsByClassName=function(ve){throw new Error("This DOM method is not implemented."+this.debugInfo())},me.prototype.isEqualNode=function(ve){var he,ge,xe;if(!me.__super__.isEqualNode.apply(this,arguments).isEqualNode(ve)||ve.namespaceURI!==this.namespaceURI||ve.prefix!==this.prefix||ve.localName!==this.localName||ve.attribs.length!==this.attribs.length)return!1;for(he=ge=0,xe=this.attribs.length-1;0<=xe?ge<=xe:ge>=xe;he=0<=xe?++ge:--ge)if(!this.attribs[he].isEqualNode(ve.attribs[he]))return!1;return!0},me}(ee)}).call(this)},{"./NodeType":428,"./Utility":429,"./XMLAttribute":431,"./XMLNamedNodeMap":449,"./XMLNode":450}],449:[function(y,Te,be){(function(){var x;Te.exports=x=function(){function z(ie){this.nodes=ie}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(ie){return this.nodes[ie]},z.prototype.setNamedItem=function(ie){var oe;return oe=this.nodes[ie.nodeName],this.nodes[ie.nodeName]=ie,oe||null},z.prototype.removeNamedItem=function(ie){var oe;return oe=this.nodes[ie],delete this.nodes[ie],oe||null},z.prototype.item=function(ie){return this.nodes[Object.keys(this.nodes)[ie]]||null},z.prototype.getNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},z.prototype.setNamedItemNS=function(ie){throw new Error("This DOM method is not implemented.")},z.prototype.removeNamedItemNS=function(ie,oe){throw new Error("This DOM method is not implemented.")},z}()}).call(this)},{}],450:[function(y,Te,be){(function(){var x,z,ie,oe,ee,le,E,ne,te,se,ue,fe,me,ve,he,ge,xe,Ce,je,Ee={}.hasOwnProperty;je=y("./Utility"),Ce=je.isObject,xe=je.isFunction,ge=je.isEmpty,he=je.getValue,ne=null,ie=null,oe=null,ee=null,le=null,me=null,ve=null,fe=null,E=null,z=null,ue=null,te=null,x=null,Te.exports=se=function(){function ce(ye){this.parent=ye,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,ne||(ne=y("./XMLElement"),ie=y("./XMLCData"),oe=y("./XMLComment"),ee=y("./XMLDeclaration"),le=y("./XMLDocType"),me=y("./XMLRaw"),ve=y("./XMLText"),fe=y("./XMLProcessingInstruction"),E=y("./XMLDummy"),z=y("./NodeType"),ue=y("./XMLNodeList"),te=y("./XMLNamedNodeMap"),x=y("./DocumentPosition"))}return Object.defineProperty(ce.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(ce.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(ce.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(ce.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(ce.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new ue(this.children)),this.childNodeList}}),Object.defineProperty(ce.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(ce.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(ce.prototype,"previousSibling",{get:function(){var ye;return ye=this.parent.children.indexOf(this),this.parent.children[ye-1]||null}}),Object.defineProperty(ce.prototype,"nextSibling",{get:function(){var ye;return ye=this.parent.children.indexOf(this),this.parent.children[ye+1]||null}}),Object.defineProperty(ce.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(ce.prototype,"textContent",{get:function(){var ye,we,De,Re,ke;if(this.nodeType===z.Element||this.nodeType===z.DocumentFragment){for(ke="",Re=this.children,we=0,De=Re.length;we<De;we++)ye=Re[we],ye.textContent&&(ke+=ye.textContent);return ke}else return null},set:function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),ce.prototype.setParent=function(ye){var we,De,Re,ke,_e;for(this.parent=ye,ye&&(this.options=ye.options,this.stringify=ye.stringify),ke=this.children,_e=[],De=0,Re=ke.length;De<Re;De++)we=ke[De],_e.push(we.setParent(this));return _e},ce.prototype.element=function(ye,we,De){var Re,ke,_e,Ze,Ve,Qe,ut,Ie,We,it,at;if(Qe=null,we===null&&De==null&&(We=[{},null],we=We[0],De=We[1]),we==null&&(we={}),we=he(we),Ce(we)||(it=[we,De],De=it[0],we=it[1]),ye!=null&&(ye=he(ye)),Array.isArray(ye))for(_e=0,ut=ye.length;_e<ut;_e++)ke=ye[_e],Qe=this.element(ke);else if(xe(ye))Qe=this.element(ye.apply());else if(Ce(ye)){for(Ve in ye)if(Ee.call(ye,Ve))if(at=ye[Ve],xe(at)&&(at=at.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ve.indexOf(this.stringify.convertAttKey)===0)Qe=this.attribute(Ve.substr(this.stringify.convertAttKey.length),at);else if(!this.options.separateArrayItems&&Array.isArray(at)&&ge(at))Qe=this.dummy();else if(Ce(at)&&ge(at))Qe=this.element(Ve);else if(!this.options.keepNullNodes&&at==null)Qe=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(at))for(Ze=0,Ie=at.length;Ze<Ie;Ze++)ke=at[Ze],Re={},Re[Ve]=ke,Qe=this.element(Re);else Ce(at)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&Ve.indexOf(this.stringify.convertTextKey)===0?Qe=this.element(at):(Qe=this.element(Ve),Qe.element(at)):Qe=this.element(Ve,at)}else!this.options.keepNullNodes&&De===null?Qe=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ye.indexOf(this.stringify.convertTextKey)===0?Qe=this.text(De):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ye.indexOf(this.stringify.convertCDataKey)===0?Qe=this.cdata(De):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ye.indexOf(this.stringify.convertCommentKey)===0?Qe=this.comment(De):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ye.indexOf(this.stringify.convertRawKey)===0?Qe=this.raw(De):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ye.indexOf(this.stringify.convertPIKey)===0?Qe=this.instruction(ye.substr(this.stringify.convertPIKey.length),De):Qe=this.node(ye,we,De);if(Qe==null)throw new Error("Could not create any elements with: "+ye+". "+this.debugInfo());return Qe},ce.prototype.insertBefore=function(ye,we,De){var Re,ke,_e,Ze,Ve;if(ye!=null&&ye.type)return _e=ye,Ze=we,_e.setParent(this),Ze?(ke=children.indexOf(Ze),Ve=children.splice(ke),children.push(_e),Array.prototype.push.apply(children,Ve)):children.push(_e),_e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(ye));return ke=this.parent.children.indexOf(this),Ve=this.parent.children.splice(ke),Re=this.parent.element(ye,we,De),Array.prototype.push.apply(this.parent.children,Ve),Re},ce.prototype.insertAfter=function(ye,we,De){var Re,ke,_e;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(ye));return ke=this.parent.children.indexOf(this),_e=this.parent.children.splice(ke+1),Re=this.parent.element(ye,we,De),Array.prototype.push.apply(this.parent.children,_e),Re},ce.prototype.remove=function(){var ye,we;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return ye=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[ye,ye-ye+1].concat(we=[])),this.parent},ce.prototype.node=function(ye,we,De){var Re,ke;return ye!=null&&(ye=he(ye)),we||(we={}),we=he(we),Ce(we)||(ke=[we,De],De=ke[0],we=ke[1]),Re=new ne(this,ye,we),De!=null&&Re.text(De),this.children.push(Re),Re},ce.prototype.text=function(ye){var we;return Ce(ye)&&this.element(ye),we=new ve(this,ye),this.children.push(we),this},ce.prototype.cdata=function(ye){var we;return we=new ie(this,ye),this.children.push(we),this},ce.prototype.comment=function(ye){var we;return we=new oe(this,ye),this.children.push(we),this},ce.prototype.commentBefore=function(ye){var we,De,Re;return De=this.parent.children.indexOf(this),Re=this.parent.children.splice(De),we=this.parent.comment(ye),Array.prototype.push.apply(this.parent.children,Re),this},ce.prototype.commentAfter=function(ye){var we,De,Re;return De=this.parent.children.indexOf(this),Re=this.parent.children.splice(De+1),we=this.parent.comment(ye),Array.prototype.push.apply(this.parent.children,Re),this},ce.prototype.raw=function(ye){var we;return we=new me(this,ye),this.children.push(we),this},ce.prototype.dummy=function(){var ye;return ye=new E(this),ye},ce.prototype.instruction=function(ye,we){var De,Re,ke,_e,Ze;if(ye!=null&&(ye=he(ye)),we!=null&&(we=he(we)),Array.isArray(ye))for(_e=0,Ze=ye.length;_e<Ze;_e++)De=ye[_e],this.instruction(De);else if(Ce(ye))for(De in ye)Ee.call(ye,De)&&(Re=ye[De],this.instruction(De,Re));else xe(we)&&(we=we.apply()),ke=new fe(this,ye,we),this.children.push(ke);return this},ce.prototype.instructionBefore=function(ye,we){var De,Re,ke;return Re=this.parent.children.indexOf(this),ke=this.parent.children.splice(Re),De=this.parent.instruction(ye,we),Array.prototype.push.apply(this.parent.children,ke),this},ce.prototype.instructionAfter=function(ye,we){var De,Re,ke;return Re=this.parent.children.indexOf(this),ke=this.parent.children.splice(Re+1),De=this.parent.instruction(ye,we),Array.prototype.push.apply(this.parent.children,ke),this},ce.prototype.declaration=function(ye,we,De){var Re,ke;return Re=this.document(),ke=new ee(Re,ye,we,De),Re.children.length===0?Re.children.unshift(ke):Re.children[0].type===z.Declaration?Re.children[0]=ke:Re.children.unshift(ke),Re.root()||Re},ce.prototype.dtd=function(ye,we){var De,Re,ke,_e,Ze,Ve,Qe,ut,Ie,We;for(Re=this.document(),ke=new le(Re,ye,we),Ie=Re.children,_e=Ze=0,Qe=Ie.length;Ze<Qe;_e=++Ze)if(De=Ie[_e],De.type===z.DocType)return Re.children[_e]=ke,ke;for(We=Re.children,_e=Ve=0,ut=We.length;Ve<ut;_e=++Ve)if(De=We[_e],De.isRoot)return Re.children.splice(_e,0,ke),ke;return Re.children.push(ke),ke},ce.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},ce.prototype.root=function(){var ye;for(ye=this;ye;){if(ye.type===z.Document)return ye.rootObject;if(ye.isRoot)return ye;ye=ye.parent}},ce.prototype.document=function(){var ye;for(ye=this;ye;){if(ye.type===z.Document)return ye;ye=ye.parent}},ce.prototype.end=function(ye){return this.document().end(ye)},ce.prototype.prev=function(){var ye;if(ye=this.parent.children.indexOf(this),ye<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[ye-1]},ce.prototype.next=function(){var ye;if(ye=this.parent.children.indexOf(this),ye===-1||ye===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[ye+1]},ce.prototype.importDocument=function(ye){var we;return we=ye.root().clone(),we.parent=this,we.isRoot=!1,this.children.push(we),this},ce.prototype.debugInfo=function(ye){var we,De;return ye=ye||this.name,ye==null&&!((we=this.parent)!=null&&we.name)?"":ye==null?"parent: <"+this.parent.name+">":(De=this.parent)!=null&&De.name?"node: <"+ye+">, parent: <"+this.parent.name+">":"node: <"+ye+">"},ce.prototype.ele=function(ye,we,De){return this.element(ye,we,De)},ce.prototype.nod=function(ye,we,De){return this.node(ye,we,De)},ce.prototype.txt=function(ye){return this.text(ye)},ce.prototype.dat=function(ye){return this.cdata(ye)},ce.prototype.com=function(ye){return this.comment(ye)},ce.prototype.ins=function(ye,we){return this.instruction(ye,we)},ce.prototype.doc=function(){return this.document()},ce.prototype.dec=function(ye,we,De){return this.declaration(ye,we,De)},ce.prototype.e=function(ye,we,De){return this.element(ye,we,De)},ce.prototype.n=function(ye,we,De){return this.node(ye,we,De)},ce.prototype.t=function(ye){return this.text(ye)},ce.prototype.d=function(ye){return this.cdata(ye)},ce.prototype.c=function(ye){return this.comment(ye)},ce.prototype.r=function(ye){return this.raw(ye)},ce.prototype.i=function(ye,we){return this.instruction(ye,we)},ce.prototype.u=function(){return this.up()},ce.prototype.importXMLBuilder=function(ye){return this.importDocument(ye)},ce.prototype.replaceChild=function(ye,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.removeChild=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.appendChild=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.hasChildNodes=function(){return this.children.length!==0},ce.prototype.cloneNode=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.isSupported=function(ye,we){return!0},ce.prototype.hasAttributes=function(){return this.attribs.length!==0},ce.prototype.compareDocumentPosition=function(ye){var we,De;return we=this,we===ye?0:this.document()!==ye.document()?(De=x.Disconnected|x.ImplementationSpecific,Math.random()<.5?De|=x.Preceding:De|=x.Following,De):we.isAncestor(ye)?x.Contains|x.Preceding:we.isDescendant(ye)?x.Contains|x.Following:we.isPreceding(ye)?x.Preceding:x.Following},ce.prototype.isSameNode=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.lookupPrefix=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.isDefaultNamespace=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.lookupNamespaceURI=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.isEqualNode=function(ye){var we,De,Re;if(ye.nodeType!==this.nodeType||ye.children.length!==this.children.length)return!1;for(we=De=0,Re=this.children.length-1;0<=Re?De<=Re:De>=Re;we=0<=Re?++De:--De)if(!this.children[we].isEqualNode(ye.children[we]))return!1;return!0},ce.prototype.getFeature=function(ye,we){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.setUserData=function(ye,we,De){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.getUserData=function(ye){throw new Error("This DOM method is not implemented."+this.debugInfo())},ce.prototype.contains=function(ye){return ye?ye===this||this.isDescendant(ye):!1},ce.prototype.isDescendant=function(ye){var we,De,Re,ke,_e;for(_e=this.children,Re=0,ke=_e.length;Re<ke;Re++)if(we=_e[Re],ye===we||(De=we.isDescendant(ye),De))return!0;return!1},ce.prototype.isAncestor=function(ye){return ye.isDescendant(this)},ce.prototype.isPreceding=function(ye){var we,De;return we=this.treePosition(ye),De=this.treePosition(this),we===-1||De===-1?!1:we<De},ce.prototype.isFollowing=function(ye){var we,De;return we=this.treePosition(ye),De=this.treePosition(this),we===-1||De===-1?!1:we>De},ce.prototype.treePosition=function(ye){var we,De;return De=0,we=!1,this.foreachTreeNode(this.document(),function(Re){if(De++,!we&&Re===ye)return we=!0}),we?De:-1},ce.prototype.foreachTreeNode=function(ye,we){var De,Re,ke,_e,Ze;for(ye||(ye=this.document()),_e=ye.children,Re=0,ke=_e.length;Re<ke;Re++){if(De=_e[Re],Ze=we(De))return Ze;if(Ze=this.foreachTreeNode(De,we),Ze)return Ze}},ce}()}).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,Te,be){(function(){var x;Te.exports=x=function(){function z(ie){this.nodes=ie}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(ie){return this.nodes[ie]||null},z}()}).call(this)},{}],452:[function(y,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),Te.exports=ie=function(le){oe(E,le);function E(ne,te,se){if(E.__super__.constructor.call(this,ne),te==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=x.ProcessingInstruction,this.target=this.stringify.insTarget(te),this.name=this.target,se&&(this.value=this.stringify.insValue(se))}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(ne))},E.prototype.isEqualNode=function(ne){return!(!E.__super__.isEqualNode.apply(this,arguments).isEqualNode(ne)||ne.target!==this.target)},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],453:[function(y,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLNode"),Te.exports=ie=function(le){oe(E,le);function E(ne,te){if(E.__super__.constructor.call(this,ne),te==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=x.Raw,this.value=this.stringify.raw(te)}return E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.raw(this,this.options.writer.filterOptions(ne))},E}(z)}).call(this)},{"./NodeType":428,"./XMLNode":450}],454:[function(y,Te,be){(function(){var x,z,ie,oe,ee=function(E,ne){for(var te in ne)le.call(ne,te)&&(E[te]=ne[te]);function se(){this.constructor=E}return se.prototype=ne.prototype,E.prototype=new se,E.__super__=ne.prototype,E},le={}.hasOwnProperty;x=y("./NodeType"),oe=y("./XMLWriterBase"),z=y("./WriterState"),Te.exports=ie=function(E){ee(ne,E);function ne(te,se){this.stream=te,ne.__super__.constructor.call(this,se)}return ne.prototype.endline=function(te,se,ue){return te.isLastRootNode&&se.state===z.CloseTag?"":ne.__super__.endline.call(this,te,se,ue)},ne.prototype.document=function(te,se){var ue,fe,me,ve,he,ge,xe,Ce,je;for(xe=te.children,fe=me=0,he=xe.length;me<he;fe=++me)ue=xe[fe],ue.isLastRootNode=fe===te.children.length-1;for(se=this.filterOptions(se),Ce=te.children,je=[],ve=0,ge=Ce.length;ve<ge;ve++)ue=Ce[ve],je.push(this.writeChildNode(ue,se,0));return je},ne.prototype.attribute=function(te,se,ue){return this.stream.write(ne.__super__.attribute.call(this,te,se,ue))},ne.prototype.cdata=function(te,se,ue){return this.stream.write(ne.__super__.cdata.call(this,te,se,ue))},ne.prototype.comment=function(te,se,ue){return this.stream.write(ne.__super__.comment.call(this,te,se,ue))},ne.prototype.declaration=function(te,se,ue){return this.stream.write(ne.__super__.declaration.call(this,te,se,ue))},ne.prototype.docType=function(te,se,ue){var fe,me,ve,he;if(ue||(ue=0),this.openNode(te,se,ue),se.state=z.OpenTag,this.stream.write(this.indent(te,se,ue)),this.stream.write("<!DOCTYPE "+te.root().name),te.pubID&&te.sysID?this.stream.write(' PUBLIC "'+te.pubID+'" "'+te.sysID+'"'):te.sysID&&this.stream.write(' SYSTEM "'+te.sysID+'"'),te.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(te,se,ue)),se.state=z.InsideTag,he=te.children,me=0,ve=he.length;me<ve;me++)fe=he[me],this.writeChildNode(fe,se,ue+1);se.state=z.CloseTag,this.stream.write("]")}return se.state=z.CloseTag,this.stream.write(se.spaceBeforeSlash+">"),this.stream.write(this.endline(te,se,ue)),se.state=z.None,this.closeNode(te,se,ue)},ne.prototype.element=function(te,se,ue){var fe,me,ve,he,ge,xe,Ce,je,Ee,ce;ue||(ue=0),this.openNode(te,se,ue),se.state=z.OpenTag,this.stream.write(this.indent(te,se,ue)+"<"+te.name),Ee=te.attribs;for(Ce in Ee)le.call(Ee,Ce)&&(fe=Ee[Ce],this.attribute(fe,se,ue));if(ve=te.children.length,he=ve===0?null:te.children[0],ve===0||te.children.every(function(ye){return(ye.type===x.Text||ye.type===x.Raw)&&ye.value===""}))se.allowEmpty?(this.stream.write(">"),se.state=z.CloseTag,this.stream.write("</"+te.name+">")):(se.state=z.CloseTag,this.stream.write(se.spaceBeforeSlash+"/>"));else if(se.pretty&&ve===1&&(he.type===x.Text||he.type===x.Raw)&&he.value!=null)this.stream.write(">"),se.state=z.InsideTag,se.suppressPrettyCount++,je=!0,this.writeChildNode(he,se,ue+1),se.suppressPrettyCount--,je=!1,se.state=z.CloseTag,this.stream.write("</"+te.name+">");else{for(this.stream.write(">"+this.endline(te,se,ue)),se.state=z.InsideTag,ce=te.children,ge=0,xe=ce.length;ge<xe;ge++)me=ce[ge],this.writeChildNode(me,se,ue+1);se.state=z.CloseTag,this.stream.write(this.indent(te,se,ue)+"</"+te.name+">")}return this.stream.write(this.endline(te,se,ue)),se.state=z.None,this.closeNode(te,se,ue)},ne.prototype.processingInstruction=function(te,se,ue){return this.stream.write(ne.__super__.processingInstruction.call(this,te,se,ue))},ne.prototype.raw=function(te,se,ue){return this.stream.write(ne.__super__.raw.call(this,te,se,ue))},ne.prototype.text=function(te,se,ue){return this.stream.write(ne.__super__.text.call(this,te,se,ue))},ne.prototype.dtdAttList=function(te,se,ue){return this.stream.write(ne.__super__.dtdAttList.call(this,te,se,ue))},ne.prototype.dtdElement=function(te,se,ue){return this.stream.write(ne.__super__.dtdElement.call(this,te,se,ue))},ne.prototype.dtdEntity=function(te,se,ue){return this.stream.write(ne.__super__.dtdEntity.call(this,te,se,ue))},ne.prototype.dtdNotation=function(te,se,ue){return this.stream.write(ne.__super__.dtdNotation.call(this,te,se,ue))},ne}(oe)}).call(this)},{"./NodeType":428,"./WriterState":430,"./XMLWriterBase":458}],455:[function(y,Te,be){(function(){var x,z,ie=function(ee,le){for(var E in le)oe.call(le,E)&&(ee[E]=le[E]);function ne(){this.constructor=ee}return ne.prototype=le.prototype,ee.prototype=new ne,ee.__super__=le.prototype,ee},oe={}.hasOwnProperty;z=y("./XMLWriterBase"),Te.exports=x=function(ee){ie(le,ee);function le(E){le.__super__.constructor.call(this,E)}return le.prototype.document=function(E,ne){var te,se,ue,fe,me;for(ne=this.filterOptions(ne),fe="",me=E.children,se=0,ue=me.length;se<ue;se++)te=me[se],fe+=this.writeChildNode(te,ne,0);return ne.pretty&&fe.slice(-ne.newline.length)===ne.newline&&(fe=fe.slice(0,-ne.newline.length)),fe},le}(z)}).call(this)},{"./XMLWriterBase":458}],456:[function(y,Te,be){(function(){var x,z=function(oe,ee){return function(){return oe.apply(ee,arguments)}},ie={}.hasOwnProperty;Te.exports=x=function(){function oe(ee){this.assertLegalName=z(this.assertLegalName,this),this.assertLegalChar=z(this.assertLegalChar,this);var le,E,ne;ee||(ee={}),this.options=ee,this.options.version||(this.options.version="1.0"),E=ee.stringify||{};for(le in E)ie.call(E,le)&&(ne=E[le],this[le]=ne)}return oe.prototype.name=function(ee){return this.options.noValidation?ee:this.assertLegalName(""+ee||"")},oe.prototype.text=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.textEscape(""+ee||""))},oe.prototype.cdata=function(ee){return this.options.noValidation?ee:(ee=""+ee||"",ee=ee.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(ee))},oe.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)},oe.prototype.raw=function(ee){return this.options.noValidation?ee:""+ee||""},oe.prototype.attValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(this.attEscape(ee=""+ee||""))},oe.prototype.insTarget=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.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)},oe.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},oe.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)},oe.prototype.xmlStandalone=function(ee){return this.options.noValidation?ee:ee?"yes":"no"},oe.prototype.dtdPubID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdSysID=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdElementValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdAttType=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdAttDefault=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdEntityValue=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.dtdNData=function(ee){return this.options.noValidation?ee:this.assertLegalChar(""+ee||"")},oe.prototype.convertAttKey="@",oe.prototype.convertPIKey="?",oe.prototype.convertTextKey="#text",oe.prototype.convertCDataKey="#cdata",oe.prototype.convertCommentKey="#comment",oe.prototype.convertRawKey="#raw",oe.prototype.assertLegalChar=function(ee){var le,E;if(this.options.noValidation)return ee;if(le="",this.options.version==="1.0"){if(le=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(le))throw new Error("Invalid character in string: "+ee+" at index "+E.index)}else if(this.options.version==="1.1"&&(le=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,E=ee.match(le)))throw new Error("Invalid character in string: "+ee+" at index "+E.index);return ee},oe.prototype.assertLegalName=function(ee){var le;if(this.options.noValidation)return ee;if(this.assertLegalChar(ee),le=/^([: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(le))throw new Error("Invalid character in name");return ee},oe.prototype.textEscape=function(ee){var le;return this.options.noValidation?ee:(le=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(le,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},oe.prototype.attEscape=function(ee){var le;return this.options.noValidation?ee:(le=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,ee.replace(le,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},oe}()}).call(this)},{}],457:[function(y,Te,be){(function(){var x,z,ie,oe=function(le,E){for(var ne in E)ee.call(E,ne)&&(le[ne]=E[ne]);function te(){this.constructor=le}return te.prototype=E.prototype,le.prototype=new te,le.__super__=E.prototype,le},ee={}.hasOwnProperty;x=y("./NodeType"),z=y("./XMLCharacterData"),Te.exports=ie=function(le){oe(E,le);function E(ne,te){if(E.__super__.constructor.call(this,ne),te==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=x.Text,this.value=this.stringify.text(te)}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 ne,te,se;for(se="",te=this.previousSibling;te;)se=te.data+se,te=te.previousSibling;for(se+=this.data,ne=this.nextSibling;ne;)se=se+ne.data,ne=ne.nextSibling;return se}}),E.prototype.clone=function(){return Object.create(this)},E.prototype.toString=function(ne){return this.options.writer.text(this,this.options.writer.filterOptions(ne))},E.prototype.splitText=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},E.prototype.replaceWholeText=function(ne){throw new Error("This DOM method is not implemented."+this.debugInfo())},E}(z)}).call(this)},{"./NodeType":428,"./XMLCharacterData":433}],458:[function(y,Te,be){(function(){var x,z,ie,oe,ee,le,E,ne,te,se,ue,fe,me,ve,he,ge,xe,Ce={}.hasOwnProperty;xe=y("./Utility").assign,x=y("./NodeType"),te=y("./XMLDeclaration"),se=y("./XMLDocType"),ie=y("./XMLCData"),oe=y("./XMLComment"),fe=y("./XMLElement"),ve=y("./XMLRaw"),he=y("./XMLText"),me=y("./XMLProcessingInstruction"),ue=y("./XMLDummy"),ee=y("./XMLDTDAttList"),le=y("./XMLDTDElement"),E=y("./XMLDTDEntity"),ne=y("./XMLDTDNotation"),z=y("./WriterState"),Te.exports=ge=function(){function je(Ee){var ce,ye,we;Ee||(Ee={}),this.options=Ee,ye=Ee.writer||{};for(ce in ye)Ce.call(ye,ce)&&(we=ye[ce],this["_"+ce]=this[ce],this[ce]=we)}return je.prototype.filterOptions=function(Ee){var ce,ye,we,De,Re,ke,_e,Ze;return Ee||(Ee={}),Ee=xe({},this.options,Ee),ce={writer:this},ce.pretty=Ee.pretty||!1,ce.allowEmpty=Ee.allowEmpty||!1,ce.indent=(ye=Ee.indent)!=null?ye:" ",ce.newline=(we=Ee.newline)!=null?we:`
`,ce.offset=(De=Ee.offset)!=null?De:0,ce.dontPrettyTextNodes=(Re=(ke=Ee.dontPrettyTextNodes)!=null?ke:Ee.dontprettytextnodes)!=null?Re:0,ce.spaceBeforeSlash=(_e=(Ze=Ee.spaceBeforeSlash)!=null?Ze:Ee.spacebeforeslash)!=null?_e:"",ce.spaceBeforeSlash===!0&&(ce.spaceBeforeSlash=" "),ce.suppressPrettyCount=0,ce.user={},ce.state=z.None,ce},je.prototype.indent=function(Ee,ce,ye){var we;return!ce.pretty||ce.suppressPrettyCount?"":ce.pretty&&(we=(ye||0)+ce.offset+1,we>0)?new Array(we).join(ce.indent):""},je.prototype.endline=function(Ee,ce,ye){return!ce.pretty||ce.suppressPrettyCount?"":ce.newline},je.prototype.attribute=function(Ee,ce,ye){var we;return this.openAttribute(Ee,ce,ye),we=" "+Ee.name+'="'+Ee.value+'"',this.closeAttribute(Ee,ce,ye),we},je.prototype.cdata=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye)+"<![CDATA[",ce.state=z.InsideTag,we+=Ee.value,ce.state=z.CloseTag,we+="]]>"+this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.comment=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye)+"<!-- ",ce.state=z.InsideTag,we+=Ee.value,ce.state=z.CloseTag,we+=" -->"+this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.declaration=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye)+"<?xml",ce.state=z.InsideTag,we+=' version="'+Ee.version+'"',Ee.encoding!=null&&(we+=' encoding="'+Ee.encoding+'"'),Ee.standalone!=null&&(we+=' standalone="'+Ee.standalone+'"'),ce.state=z.CloseTag,we+=ce.spaceBeforeSlash+"?>",we+=this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.docType=function(Ee,ce,ye){var we,De,Re,ke,_e;if(ye||(ye=0),this.openNode(Ee,ce,ye),ce.state=z.OpenTag,ke=this.indent(Ee,ce,ye),ke+="<!DOCTYPE "+Ee.root().name,Ee.pubID&&Ee.sysID?ke+=' PUBLIC "'+Ee.pubID+'" "'+Ee.sysID+'"':Ee.sysID&&(ke+=' SYSTEM "'+Ee.sysID+'"'),Ee.children.length>0){for(ke+=" [",ke+=this.endline(Ee,ce,ye),ce.state=z.InsideTag,_e=Ee.children,De=0,Re=_e.length;De<Re;De++)we=_e[De],ke+=this.writeChildNode(we,ce,ye+1);ce.state=z.CloseTag,ke+="]"}return ce.state=z.CloseTag,ke+=ce.spaceBeforeSlash+">",ke+=this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),ke},je.prototype.element=function(Ee,ce,ye){var we,De,Re,ke,_e,Ze,Ve,Qe,ut,Ie,We,it,at,nt;ye||(ye=0),Ie=!1,We="",this.openNode(Ee,ce,ye),ce.state=z.OpenTag,We+=this.indent(Ee,ce,ye)+"<"+Ee.name,it=Ee.attribs;for(ut in it)Ce.call(it,ut)&&(we=it[ut],We+=this.attribute(we,ce,ye));if(Re=Ee.children.length,ke=Re===0?null:Ee.children[0],Re===0||Ee.children.every(function(Xe){return(Xe.type===x.Text||Xe.type===x.Raw)&&Xe.value===""}))ce.allowEmpty?(We+=">",ce.state=z.CloseTag,We+="</"+Ee.name+">"+this.endline(Ee,ce,ye)):(ce.state=z.CloseTag,We+=ce.spaceBeforeSlash+"/>"+this.endline(Ee,ce,ye));else if(ce.pretty&&Re===1&&(ke.type===x.Text||ke.type===x.Raw)&&ke.value!=null)We+=">",ce.state=z.InsideTag,ce.suppressPrettyCount++,Ie=!0,We+=this.writeChildNode(ke,ce,ye+1),ce.suppressPrettyCount--,Ie=!1,ce.state=z.CloseTag,We+="</"+Ee.name+">"+this.endline(Ee,ce,ye);else{if(ce.dontPrettyTextNodes){for(at=Ee.children,_e=0,Ve=at.length;_e<Ve;_e++)if(De=at[_e],(De.type===x.Text||De.type===x.Raw)&&De.value!=null){ce.suppressPrettyCount++,Ie=!0;break}}for(We+=">"+this.endline(Ee,ce,ye),ce.state=z.InsideTag,nt=Ee.children,Ze=0,Qe=nt.length;Ze<Qe;Ze++)De=nt[Ze],We+=this.writeChildNode(De,ce,ye+1);ce.state=z.CloseTag,We+=this.indent(Ee,ce,ye)+"</"+Ee.name+">",Ie&&ce.suppressPrettyCount--,We+=this.endline(Ee,ce,ye),ce.state=z.None}return this.closeNode(Ee,ce,ye),We},je.prototype.writeChildNode=function(Ee,ce,ye){switch(Ee.type){case x.CData:return this.cdata(Ee,ce,ye);case x.Comment:return this.comment(Ee,ce,ye);case x.Element:return this.element(Ee,ce,ye);case x.Raw:return this.raw(Ee,ce,ye);case x.Text:return this.text(Ee,ce,ye);case x.ProcessingInstruction:return this.processingInstruction(Ee,ce,ye);case x.Dummy:return"";case x.Declaration:return this.declaration(Ee,ce,ye);case x.DocType:return this.docType(Ee,ce,ye);case x.AttributeDeclaration:return this.dtdAttList(Ee,ce,ye);case x.ElementDeclaration:return this.dtdElement(Ee,ce,ye);case x.EntityDeclaration:return this.dtdEntity(Ee,ce,ye);case x.NotationDeclaration:return this.dtdNotation(Ee,ce,ye);default:throw new Error("Unknown XML node type: "+Ee.constructor.name)}},je.prototype.processingInstruction=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye)+"<?",ce.state=z.InsideTag,we+=Ee.target,Ee.value&&(we+=" "+Ee.value),ce.state=z.CloseTag,we+=ce.spaceBeforeSlash+"?>",we+=this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.raw=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye),ce.state=z.InsideTag,we+=Ee.value,ce.state=z.CloseTag,we+=this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.text=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye),ce.state=z.InsideTag,we+=Ee.value,ce.state=z.CloseTag,we+=this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.dtdAttList=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye)+"<!ATTLIST",ce.state=z.InsideTag,we+=" "+Ee.elementName+" "+Ee.attributeName+" "+Ee.attributeType,Ee.defaultValueType!=="#DEFAULT"&&(we+=" "+Ee.defaultValueType),Ee.defaultValue&&(we+=' "'+Ee.defaultValue+'"'),ce.state=z.CloseTag,we+=ce.spaceBeforeSlash+">"+this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.dtdElement=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye)+"<!ELEMENT",ce.state=z.InsideTag,we+=" "+Ee.name+" "+Ee.value,ce.state=z.CloseTag,we+=ce.spaceBeforeSlash+">"+this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.dtdEntity=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye)+"<!ENTITY",ce.state=z.InsideTag,Ee.pe&&(we+=" %"),we+=" "+Ee.name,Ee.value?we+=' "'+Ee.value+'"':(Ee.pubID&&Ee.sysID?we+=' PUBLIC "'+Ee.pubID+'" "'+Ee.sysID+'"':Ee.sysID&&(we+=' SYSTEM "'+Ee.sysID+'"'),Ee.nData&&(we+=" NDATA "+Ee.nData)),ce.state=z.CloseTag,we+=ce.spaceBeforeSlash+">"+this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.dtdNotation=function(Ee,ce,ye){var we;return this.openNode(Ee,ce,ye),ce.state=z.OpenTag,we=this.indent(Ee,ce,ye)+"<!NOTATION",ce.state=z.InsideTag,we+=" "+Ee.name,Ee.pubID&&Ee.sysID?we+=' PUBLIC "'+Ee.pubID+'" "'+Ee.sysID+'"':Ee.pubID?we+=' PUBLIC "'+Ee.pubID+'"':Ee.sysID&&(we+=' SYSTEM "'+Ee.sysID+'"'),ce.state=z.CloseTag,we+=ce.spaceBeforeSlash+">"+this.endline(Ee,ce,ye),ce.state=z.None,this.closeNode(Ee,ce,ye),we},je.prototype.openNode=function(Ee,ce,ye){},je.prototype.closeNode=function(Ee,ce,ye){},je.prototype.openAttribute=function(Ee,ce,ye){},je.prototype.closeAttribute=function(Ee,ce,ye){},je}()}).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,Te,be){(function(){var x,z,ie,oe,ee,le,E,ne,te,se;se=y("./Utility"),ne=se.assign,te=se.isFunction,ie=y("./XMLDOMImplementation"),oe=y("./XMLDocument"),ee=y("./XMLDocumentCB"),E=y("./XMLStringWriter"),le=y("./XMLStreamWriter"),x=y("./NodeType"),z=y("./WriterState"),Te.exports.create=function(ue,fe,me,ve){var he,ge;if(ue==null)throw new Error("Root element needs a name.");return ve=ne({},fe,me,ve),he=new oe(ve),ge=he.element(ue),ve.headless||(he.declaration(ve),(ve.pubID!=null||ve.sysID!=null)&&he.dtd(ve)),ge},Te.exports.begin=function(ue,fe,me){var ve;return te(ue)&&(ve=[ue,fe],fe=ve[0],me=ve[1],ue={}),fe?new ee(ue,fe,me):new oe(ue)},Te.exports.stringWriter=function(ue){return new E(ue)},Te.exports.streamWriter=function(ue,fe){return new le(ue,fe)},Te.exports.implementation=new ie,Te.exports.nodeType=x,Te.exports.writerState=z}).call(this)},{"./NodeType":428,"./Utility":429,"./WriterState":430,"./XMLDOMImplementation":437,"./XMLDocument":445,"./XMLDocumentCB":446,"./XMLStreamWriter":454,"./XMLStringWriter":455}],460:[function(y,Te,be){Te.exports=z;var x=Object.prototype.hasOwnProperty;function z(){for(var ie={},oe=0;oe<arguments.length;oe++){var ee=arguments[oe];for(var le in ee)x.call(ee,le)&&(ie[le]=ee[le])}return ie}},{}],461:[function(y,Te,be){"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"),ie=y("./md5"),oe={sha1:z,md5:ie},ee=64,le=x.alloc(ee);le.fill(0);function E(se,ue,fe){x.isBuffer(ue)||(ue=x.from(ue)),x.isBuffer(fe)||(fe=x.from(fe)),ue.length>ee?ue=se(ue):ue.length<ee&&(ue=x.concat([ue,le],ee));for(var me=x.alloc(ee),ve=x.alloc(ee),he=0;he<ee;he++)me[he]=ue[he]^54,ve[he]=ue[he]^92;var ge=se(x.concat([me,fe]));return se(x.concat([ve,ge]))}function ne(se,ue){se=se||"sha1";var fe=oe[se],me=[],ve=0;return fe||te("algorithm:",se,"is not yet supported"),{update:function(ge){return x.isBuffer(ge)||(ge=x.from(ge)),me.push(ge),ve+=ge.length,this},digest:function(ge){var xe=x.concat(me),Ce=ue?E(fe,ue,xe):fe(xe);return me=null,ge?Ce.toString(ge):Ce}}}function te(){var se=[].slice.call(arguments).join(" ");throw new Error([se,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}be.createHash=function(se){return ne(se)},be.createHmac=function(se,ue){return ne(se,ue)},be.createCredentials=function(){te("sorry,createCredentials is not implemented yet")},be.createCipher=function(){te("sorry,createCipher is not implemented yet")},be.createCipheriv=function(){te("sorry,createCipheriv is not implemented yet")},be.createDecipher=function(){te("sorry,createDecipher is not implemented yet")},be.createDecipheriv=function(){te("sorry,createDecipheriv is not implemented yet")},be.createSign=function(){te("sorry,createSign is not implemented yet")},be.createVerify=function(){te("sorry,createVerify is not implemented yet")},be.createDiffieHellman=function(){te("sorry,createDiffieHellman is not implemented yet")},be.pbkdf2=function(){te("sorry,pbkdf2 is not implemented yet")}},{"./md5":463,"./sha":464,buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273,"core-js/modules/es.array.join.js":279,"core-js/modules/es.array.slice.js":281,"core-js/modules/es.object.to-string.js":291,"core-js/modules/es.regexp.to-string.js":301}],462:[function(y,Te,be){"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,ie=x.alloc(z);ie.fill(0);var oe=8;function ee(ne,te){if(ne.length%z!==0){var se=ne.length+(z-ne.length%z);ne=x.concat([ne,ie],se)}for(var ue=[],fe=te?ne.readInt32BE:ne.readInt32LE,me=0;me<ne.length;me+=z)ue.push(fe.call(ne,me));return ue}function le(ne,te,se){for(var ue=x.alloc(te),fe=se?ue.writeInt32BE:ue.writeInt32LE,me=0;me<ne.length;me++)fe.call(ue,ne[me],me*4,!0);return ue}function E(ne,te,se,ue){x.isBuffer(ne)||(ne=x.from(ne));var fe=te(ee(ne,ue),ne.length*oe);return le(fe,se,ue)}Te.exports={hash:E}},{buffer:90,"core-js/modules/es.array.concat.js":272,"core-js/modules/es.array.fill.js":273}],463:[function(y,Te,be){"use strict";var x=y("./helpers");function z(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function ie(ue,fe){ue[fe>>5]|=128<<fe%32,ue[(fe+64>>>9<<4)+14]=fe;for(var me=1732584193,ve=-271733879,he=-1732584194,ge=271733878,xe=0;xe<ue.length;xe+=16){var Ce=me,je=ve,Ee=he,ce=ge;me=ee(me,ve,he,ge,ue[xe+0],7,-680876936),ge=ee(ge,me,ve,he,ue[xe+1],12,-389564586),he=ee(he,ge,me,ve,ue[xe+2],17,606105819),ve=ee(ve,he,ge,me,ue[xe+3],22,-1044525330),me=ee(me,ve,he,ge,ue[xe+4],7,-176418897),ge=ee(ge,me,ve,he,ue[xe+5],12,1200080426),he=ee(he,ge,me,ve,ue[xe+6],17,-1473231341),ve=ee(ve,he,ge,me,ue[xe+7],22,-45705983),me=ee(me,ve,he,ge,ue[xe+8],7,1770035416),ge=ee(ge,me,ve,he,ue[xe+9],12,-1958414417),he=ee(he,ge,me,ve,ue[xe+10],17,-42063),ve=ee(ve,he,ge,me,ue[xe+11],22,-1990404162),me=ee(me,ve,he,ge,ue[xe+12],7,1804603682),ge=ee(ge,me,ve,he,ue[xe+13],12,-40341101),he=ee(he,ge,me,ve,ue[xe+14],17,-1502002290),ve=ee(ve,he,ge,me,ue[xe+15],22,1236535329),me=le(me,ve,he,ge,ue[xe+1],5,-165796510),ge=le(ge,me,ve,he,ue[xe+6],9,-1069501632),he=le(he,ge,me,ve,ue[xe+11],14,643717713),ve=le(ve,he,ge,me,ue[xe+0],20,-373897302),me=le(me,ve,he,ge,ue[xe+5],5,-701558691),ge=le(ge,me,ve,he,ue[xe+10],9,38016083),he=le(he,ge,me,ve,ue[xe+15],14,-660478335),ve=le(ve,he,ge,me,ue[xe+4],20,-405537848),me=le(me,ve,he,ge,ue[xe+9],5,568446438),ge=le(ge,me,ve,he,ue[xe+14],9,-1019803690),he=le(he,ge,me,ve,ue[xe+3],14,-187363961),ve=le(ve,he,ge,me,ue[xe+8],20,1163531501),me=le(me,ve,he,ge,ue[xe+13],5,-1444681467),ge=le(ge,me,ve,he,ue[xe+2],9,-51403784),he=le(he,ge,me,ve,ue[xe+7],14,1735328473),ve=le(ve,he,ge,me,ue[xe+12],20,-1926607734),me=E(me,ve,he,ge,ue[xe+5],4,-378558),ge=E(ge,me,ve,he,ue[xe+8],11,-2022574463),he=E(he,ge,me,ve,ue[xe+11],16,1839030562),ve=E(ve,he,ge,me,ue[xe+14],23,-35309556),me=E(me,ve,he,ge,ue[xe+1],4,-1530992060),ge=E(ge,me,ve,he,ue[xe+4],11,1272893353),he=E(he,ge,me,ve,ue[xe+7],16,-155497632),ve=E(ve,he,ge,me,ue[xe+10],23,-1094730640),me=E(me,ve,he,ge,ue[xe+13],4,681279174),ge=E(ge,me,ve,he,ue[xe+0],11,-358537222),he=E(he,ge,me,ve,ue[xe+3],16,-722521979),ve=E(ve,he,ge,me,ue[xe+6],23,76029189),me=E(me,ve,he,ge,ue[xe+9],4,-640364487),ge=E(ge,me,ve,he,ue[xe+12],11,-421815835),he=E(he,ge,me,ve,ue[xe+15],16,530742520),ve=E(ve,he,ge,me,ue[xe+2],23,-995338651),me=ne(me,ve,he,ge,ue[xe+0],6,-198630844),ge=ne(ge,me,ve,he,ue[xe+7],10,1126891415),he=ne(he,ge,me,ve,ue[xe+14],15,-1416354905),ve=ne(ve,he,ge,me,ue[xe+5],21,-57434055),me=ne(me,ve,he,ge,ue[xe+12],6,1700485571),ge=ne(ge,me,ve,he,ue[xe+3],10,-1894986606),he=ne(he,ge,me,ve,ue[xe+10],15,-1051523),ve=ne(ve,he,ge,me,ue[xe+1],21,-2054922799),me=ne(me,ve,he,ge,ue[xe+8],6,1873313359),ge=ne(ge,me,ve,he,ue[xe+15],10,-30611744),he=ne(he,ge,me,ve,ue[xe+6],15,-1560198380),ve=ne(ve,he,ge,me,ue[xe+13],21,1309151649),me=ne(me,ve,he,ge,ue[xe+4],6,-145523070),ge=ne(ge,me,ve,he,ue[xe+11],10,-1120210379),he=ne(he,ge,me,ve,ue[xe+2],15,718787259),ve=ne(ve,he,ge,me,ue[xe+9],21,-343485551),me=te(me,Ce),ve=te(ve,je),he=te(he,Ee),ge=te(ge,ce)}return Array(me,ve,he,ge)}function oe(ue,fe,me,ve,he,ge){return te(se(te(te(fe,ue),te(ve,ge)),he),me)}function ee(ue,fe,me,ve,he,ge,xe){return oe(fe&me|~fe&ve,ue,fe,he,ge,xe)}function le(ue,fe,me,ve,he,ge,xe){return oe(fe&ve|me&~ve,ue,fe,he,ge,xe)}function E(ue,fe,me,ve,he,ge,xe){return oe(fe^me^ve,ue,fe,he,ge,xe)}function ne(ue,fe,me,ve,he,ge,xe){return oe(me^(fe|~ve),ue,fe,he,ge,xe)}function te(ue,fe){var me=(ue&65535)+(fe&65535),ve=(ue>>16)+(fe>>16)+(me>>16);return ve<<16|me&65535}function se(ue,fe){return ue<<fe|ue>>>32-fe}Te.exports=function(fe){return x.hash(fe,ie,16)}},{"./helpers":462}],464:[function(y,Te,be){"use strict";var x=y("./helpers");function z(E,ne){E[ne>>5]|=128<<24-ne%32,E[(ne+64>>9<<4)+15]=ne;for(var te=Array(80),se=1732584193,ue=-271733879,fe=-1732584194,me=271733878,ve=-1009589776,he=0;he<E.length;he+=16){for(var ge=se,xe=ue,Ce=fe,je=me,Ee=ve,ce=0;ce<80;ce++){ce<16?te[ce]=E[he+ce]:te[ce]=le(te[ce-3]^te[ce-8]^te[ce-14]^te[ce-16],1);var ye=ee(ee(le(se,5),ie(ce,ue,fe,me)),ee(ee(ve,te[ce]),oe(ce)));ve=me,me=fe,fe=le(ue,30),ue=se,se=ye}se=ee(se,ge),ue=ee(ue,xe),fe=ee(fe,Ce),me=ee(me,je),ve=ee(ve,Ee)}return Array(se,ue,fe,me,ve)}function ie(E,ne,te,se){return E<20?ne&te|~ne&se:E<40?ne^te^se:E<60?ne&te|ne&se|te&se:ne^te^se}function oe(E){return E<20?1518500249:E<40?1859775393:E<60?-1894007588:-899497514}function ee(E,ne){var te=(E&65535)+(ne&65535),se=(E>>16)+(ne>>16)+(te>>16);return se<<16|te&65535}function le(E,ne){return E<<ne|E>>>32-ne}Te.exports=function(ne){return x.hash(ne,z,20,!0)}},{"./helpers":462}],465:[function(y,Te,be){"use strict";Te.exports=function(){return function(){}}},{}],466:[function(y,Te,be){(function(x){(function(){"use strict";var z=y("@babel/runtime/helpers/interopRequireDefault"),ie=z(y("@babel/runtime/helpers/typeof")),oe=y("stream"),ee=oe.Stream,le=y("../lib/common/utils/isArray"),E=le.isArray;Te.exports.string=function(se){return typeof se=="string"},Te.exports.array=E,Te.exports.buffer=x.isBuffer;function ne(te){return te instanceof ee}Te.exports.writableStream=function(se){return ne(se)&&typeof se._write=="function"&&(0,ie.default)(se._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,Te,be){"use strict";var x=y("immediate"),z=Te.exports={};z.nextTick=x,z.title="browser",z.browser=!0,z.env={},z.argv=[],z.version="",z.versions={};function ie(){}z.on=ie,z.addListener=ie,z.once=ie,z.off=ie,z.removeListener=ie,z.removeAllListeners=ie,z.emit=ie,z.prependListener=ie,z.prependOnceListener=ie,z.listeners=function(oe){return[]},z.binding=function(oe){throw new Error("process.binding is not supported")},z.cwd=function(){return"/"},z.chdir=function(oe){throw new Error("process.chdir is not supported")},z.umask=function(){return 0}},{immediate:358}],468:[function(y,Te,be){(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"),ie=y("./lib/response"),oe=y("xtend"),ee=y("builtin-status-codes"),le=y("url"),E=be;E.request=function(ne,te){typeof ne=="string"?ne=le.parse(ne):ne=oe(ne);var se=x.location.protocol.search(/^https?:$/)===-1?"http:":"",ue=ne.protocol||se,fe=ne.hostname||ne.host,me=ne.port,ve=ne.path||"/";fe&&fe.indexOf(":")!==-1&&(fe="["+fe+"]"),ne.url=(fe?ue+"//"+fe:"")+(me?":"+me:"")+ve,ne.method=(ne.method||"GET").toUpperCase(),ne.headers=ne.headers||{};var he=new z(ne);return te&&he.on("response",te),he},E.get=function(te,se){var ue=E.request(te,se);return ue.end(),ue},E.ClientRequest=z,E.IncomingMessage=ie.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 Zt!="undefined"?Zt: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,Te,be){(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"),be.fetch=E(x.fetch)&&E(x.ReadableStream),be.writableStream=E(x.WritableStream),be.abortController=E(x.AbortController),be.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),be.blobConstructor=!0}catch(ne){}var z;function ie(){if(z!==void 0)return z;if(x.XMLHttpRequest){z=new x.XMLHttpRequest;try{z.open("GET",x.XDomainRequest?"/":"https://example.com")}catch(ne){z=null}}else z=null;return z}function oe(ne){var te=ie();if(!te)return!1;try{return te.responseType=ne,te.responseType===ne}catch(se){}return!1}var ee=typeof x.ArrayBuffer!="undefined",le=ee&&E(x.ArrayBuffer.prototype.slice);be.arraybuffer=be.fetch||ee&&oe("arraybuffer"),be.msstream=!be.fetch&&le&&oe("ms-stream"),be.mozchunkedarraybuffer=!be.fetch&&ee&&oe("moz-chunked-arraybuffer"),be.overrideMimeType=be.fetch||(ie()?E(ie().overrideMimeType):!1),be.vbArray=E(x.VBArray);function E(ne){return typeof ne=="function"}z=null}).call(this)}).call(this,typeof Zt!="undefined"?Zt: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,Te,be){(function(x,z,ie){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.regexp.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.object.keys.js"),y("core-js/modules/es.array.concat.js"),y("core-js/modules/es.array.map.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js");var oe=y("./capability"),ee=y("inherits"),le=y("./response"),E=y("readable-stream"),ne=y("to-arraybuffer"),te=le.IncomingMessage,se=le.readyStates;function ue(he,ge){return oe.fetch&&ge?"fetch":oe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":oe.msstream?"ms-stream":oe.arraybuffer&&he?"arraybuffer":oe.vbArray&&he?"text:vbarray":"text"}var fe=Te.exports=function(he){var ge=this;E.Writable.call(ge),ge._opts=he,ge._body=[],ge._headers={},he.auth&&ge.setHeader("Authorization","Basic "+new ie(he.auth).toString("base64")),Object.keys(he.headers).forEach(function(je){ge.setHeader(je,he.headers[je])});var xe,Ce=!0;if(he.mode==="disable-fetch"||"requestTimeout"in he&&!oe.abortController)Ce=!1,xe=!0;else if(he.mode==="prefer-streaming")xe=!1;else if(he.mode==="allow-wrong-content-type")xe=!oe.overrideMimeType;else if(!he.mode||he.mode==="default"||he.mode==="prefer-fast")xe=!0;else throw new Error("Invalid value for opts.mode");ge._mode=ue(xe,Ce),ge._fetchTimer=null,ge.on("finish",function(){ge._onFinish()})};ee(fe,E.Writable),fe.prototype.setHeader=function(he,ge){var xe=this,Ce=he.toLowerCase();ve.indexOf(Ce)===-1&&(xe._headers[Ce]={name:he,value:ge})},fe.prototype.getHeader=function(he){var ge=this._headers[he.toLowerCase()];return ge?ge.value:null},fe.prototype.removeHeader=function(he){var ge=this;delete ge._headers[he.toLowerCase()]},fe.prototype._onFinish=function(){var he=this;if(!he._destroyed){var ge=he._opts,xe=he._headers,Ce=null;ge.method!=="GET"&&ge.method!=="HEAD"&&(oe.arraybuffer?Ce=ne(ie.concat(he._body)):oe.blobConstructor?Ce=new z.Blob(he._body.map(function(De){return ne(De)}),{type:(xe["content-type"]||{}).value||""}):Ce=ie.concat(he._body).toString());var je=[];if(Object.keys(xe).forEach(function(De){var Re=xe[De].name,ke=xe[De].value;Array.isArray(ke)?ke.forEach(function(_e){je.push([Re,_e])}):je.push([Re,ke])}),he._mode==="fetch"){var Ee=null,ce=null;if(oe.abortController){var ye=new AbortController;Ee=ye.signal,he._fetchAbortController=ye,"requestTimeout"in ge&&ge.requestTimeout!==0&&(he._fetchTimer=z.setTimeout(function(){he.emit("requestTimeout"),he._fetchAbortController&&he._fetchAbortController.abort()},ge.requestTimeout))}z.fetch(he._opts.url,{method:he._opts.method,headers:je,body:Ce||void 0,mode:"cors",credentials:ge.withCredentials?"include":"same-origin",signal:Ee}).then(function(De){he._fetchResponse=De,he._connect()},function(De){z.clearTimeout(he._fetchTimer),he._destroyed||he.emit("error",De)})}else{var we=he._xhr=new z.XMLHttpRequest;try{we.open(he._opts.method,he._opts.url,!0)}catch(De){x.nextTick(function(){he.emit("error",De)});return}"responseType"in we&&(we.responseType=he._mode.split(":")[0]),"withCredentials"in we&&(we.withCredentials=!!ge.withCredentials),he._mode==="text"&&"overrideMimeType"in we&&we.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in ge&&(we.timeout=ge.requestTimeout,we.ontimeout=function(){he.emit("requestTimeout")}),je.forEach(function(De){we.setRequestHeader(De[0],De[1])}),he._response=null,we.onreadystatechange=function(){switch(we.readyState){case se.LOADING:case se.DONE:he._onXHRProgress();break}},he._mode==="moz-chunked-arraybuffer"&&(we.onprogress=function(){he._onXHRProgress()}),we.onerror=function(){he._destroyed||he.emit("error",new Error("XHR error"))};try{we.send(Ce)}catch(De){x.nextTick(function(){he.emit("error",De)});return}}}};function me(he){try{var ge=he.status;return ge!==null&&ge!==0}catch(xe){return!1}}fe.prototype._onXHRProgress=function(){var he=this;!me(he._xhr)||he._destroyed||(he._response||he._connect(),he._response._onXHRProgress())},fe.prototype._connect=function(){var he=this;he._destroyed||(he._response=new te(he._xhr,he._fetchResponse,he._mode,he._fetchTimer),he._response.on("error",function(ge){he.emit("error",ge)}),he.emit("response",he._response))},fe.prototype._write=function(he,ge,xe){var Ce=this;Ce._body.push(he),xe()},fe.prototype.abort=fe.prototype.destroy=function(){var he=this;he._destroyed=!0,z.clearTimeout(he._fetchTimer),he._response&&(he._response._destroyed=!0),he._xhr?he._xhr.abort():he._fetchAbortController&&he._fetchAbortController.abort()},fe.prototype.end=function(he,ge,xe){var Ce=this;typeof he=="function"&&(xe=he,he=void 0),E.Writable.prototype.end.call(Ce,he,ge,xe)},fe.prototype.flushHeaders=function(){},fe.prototype.setTimeout=function(){},fe.prototype.setNoDelay=function(){},fe.prototype.setSocketKeepAlive=function(){};var ve=["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 Zt!="undefined"?Zt: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,Te,be){(function(x,z,ie){(function(){"use strict";y("core-js/modules/es.object.to-string.js"),y("core-js/modules/web.dom-collections.for-each.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.string.match.js"),y("core-js/modules/es.array.iterator.js"),y("core-js/modules/es.array-buffer.slice.js"),y("core-js/modules/es.typed-array.uint8-array.js"),y("core-js/modules/es.typed-array.copy-within.js"),y("core-js/modules/es.typed-array.every.js"),y("core-js/modules/es.typed-array.fill.js"),y("core-js/modules/es.typed-array.filter.js"),y("core-js/modules/es.typed-array.find.js"),y("core-js/modules/es.typed-array.find-index.js"),y("core-js/modules/es.typed-array.for-each.js"),y("core-js/modules/es.typed-array.includes.js"),y("core-js/modules/es.typed-array.index-of.js"),y("core-js/modules/es.typed-array.iterator.js"),y("core-js/modules/es.typed-array.join.js"),y("core-js/modules/es.typed-array.last-index-of.js"),y("core-js/modules/es.typed-array.map.js"),y("core-js/modules/es.typed-array.reduce.js"),y("core-js/modules/es.typed-array.reduce-right.js"),y("core-js/modules/es.typed-array.reverse.js"),y("core-js/modules/es.typed-array.set.js"),y("core-js/modules/es.typed-array.slice.js"),y("core-js/modules/es.typed-array.some.js"),y("core-js/modules/es.typed-array.sort.js"),y("core-js/modules/es.typed-array.subarray.js"),y("core-js/modules/es.typed-array.to-locale-string.js"),y("core-js/modules/es.typed-array.to-string.js"),y("core-js/modules/es.array.slice.js");var oe=y("./capability"),ee=y("inherits"),le=y("readable-stream"),E=be.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ne=be.IncomingMessage=function(te,se,ue,fe){var me=this;if(le.Readable.call(me),me._mode=ue,me.headers={},me.rawHeaders=[],me.trailers={},me.rawTrailers=[],me.on("end",function(){x.nextTick(function(){me.emit("close")})}),ue==="fetch"){var ve=function Ee(){ge.read().then(function(ce){if(!me._destroyed){if(ce.done){z.clearTimeout(fe),me.push(null);return}me.push(new ie(ce.value)),Ee()}}).catch(function(ce){z.clearTimeout(fe),me._destroyed||me.emit("error",ce)})};if(me._fetchResponse=se,me.url=se.url,me.statusCode=se.status,me.statusMessage=se.statusText,se.headers.forEach(function(Ee,ce){me.headers[ce.toLowerCase()]=Ee,me.rawHeaders.push(ce,Ee)}),oe.writableStream){var he=new WritableStream({write:function(ce){return new Promise(function(ye,we){me._destroyed?we():me.push(new ie(ce))?ye():me._resumeFetch=ye})},close:function(){z.clearTimeout(fe),me._destroyed||me.push(null)},abort:function(ce){me._destroyed||me.emit("error",ce)}});try{se.body.pipeTo(he).catch(function(Ee){z.clearTimeout(fe),me._destroyed||me.emit("error",Ee)});return}catch(Ee){}}var ge=se.body.getReader();ve()}else{me._xhr=te,me._pos=0,me.url=te.responseURL,me.statusCode=te.status,me.statusMessage=te.statusText;var xe=te.getAllResponseHeaders().split(/\r?\n/);if(xe.forEach(function(Ee){var ce=Ee.match(/^([^:]+):\s*(.*)/);if(ce){var ye=ce[1].toLowerCase();ye==="set-cookie"?(me.headers[ye]===void 0&&(me.headers[ye]=[]),me.headers[ye].push(ce[2])):me.headers[ye]!==void 0?me.headers[ye]+=", "+ce[2]:me.headers[ye]=ce[2],me.rawHeaders.push(ce[1],ce[2])}}),me._charset="x-user-defined",!oe.overrideMimeType){var Ce=me.rawHeaders["mime-type"];if(Ce){var je=Ce.match(/;\s*charset=([^;])(;|$)/);je&&(me._charset=je[1].toLowerCase())}me._charset||(me._charset="utf-8")}}};ee(ne,le.Readable),ne.prototype._read=function(){var te=this,se=te._resumeFetch;se&&(te._resumeFetch=null,se())},ne.prototype._onXHRProgress=function(){var te=this,se=te._xhr,ue=null;switch(te._mode){case"text:vbarray":if(se.readyState!==E.DONE)break;try{ue=new z.VBArray(se.responseBody).toArray()}catch(ge){}if(ue!==null){te.push(new ie(ue));break}case"text":try{ue=se.responseText}catch(ge){te._mode="text:vbarray";break}if(ue.length>te._pos){var fe=ue.substr(te._pos);if(te._charset==="x-user-defined"){for(var me=new ie(fe.length),ve=0;ve<fe.length;ve++)me[ve]=fe.charCodeAt(ve)&255;te.push(me)}else te.push(fe,te._charset);te._pos=ue.length}break;case"arraybuffer":if(se.readyState!==E.DONE||!se.response)break;ue=se.response,te.push(new ie(new Uint8Array(ue)));break;case"moz-chunked-arraybuffer":if(ue=se.response,se.readyState!==E.LOADING||!ue)break;te.push(new ie(new Uint8Array(ue)));break;case"ms-stream":if(ue=se.response,se.readyState!==E.LOADING)break;var he=new z.MSStreamReader;he.onprogress=function(){he.result.byteLength>te._pos&&(te.push(new ie(new Uint8Array(he.result.slice(te._pos)))),te._pos=he.result.byteLength)},he.onload=function(){te.push(null)},he.readAsArrayBuffer(ue);break}te._xhr.readyState===E.DONE&&te._mode!=="ms-stream"&&te.push(null)}}).call(this)}).call(this,y("_process"),typeof Zt!="undefined"?Zt: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,Te,be){"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 ie=y("punycode"),oe=y("./util");be.parse=ce,be.resolve=we,be.resolveObject=De,be.format=ye,be.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 le=/^([a-z0-9.+-]+:)/i,E=/:[0-9]*$/,ne=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,te=["<",">",'"',"`"," ","\r",`
`," "],se=["{","}","|","\\","^","`"].concat(te),ue=["'"].concat(se),fe=["%","/","?",";","#"].concat(ue),me=["/","?","#"],ve=255,he=/^[+a-z0-9A-Z_-]{0,63}$/,ge=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xe={javascript:!0,"javascript:":!0},Ce={javascript:!0,"javascript:":!0},je={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Ee=y("querystring");function ce(Re,ke,_e){if(Re&&oe.isObject(Re)&&Re instanceof ee)return Re;var Ze=new ee;return Ze.parse(Re,ke,_e),Ze}ee.prototype.parse=function(Re,ke,_e){if(!oe.isString(Re))throw new TypeError("Parameter 'url' must be a string, not "+(0,z.default)(Re));var Ze=Re.indexOf("?"),Ve=Ze!==-1&&Ze<Re.indexOf("#")?"?":"#",Qe=Re.split(Ve),ut=/\\/g;Qe[0]=Qe[0].replace(ut,"/"),Re=Qe.join(Ve);var Ie=Re;if(Ie=Ie.trim(),!_e&&Re.split("#").length===1){var We=ne.exec(Ie);if(We)return this.path=Ie,this.href=Ie,this.pathname=We[1],We[2]?(this.search=We[2],ke?this.query=Ee.parse(this.search.substr(1)):this.query=this.search.substr(1)):ke&&(this.search="",this.query={}),this}var it=le.exec(Ie);if(it){it=it[0];var at=it.toLowerCase();this.protocol=at,Ie=Ie.substr(it.length)}if(_e||it||Ie.match(/^\/\/[^@\/]+@[^@\/]+/)){var nt=Ie.substr(0,2)==="//";nt&&!(it&&Ce[it])&&(Ie=Ie.substr(2),this.slashes=!0)}if(!Ce[it]&&(nt||it&&!je[it])){for(var Xe=-1,et=0;et<me.length;et++){var Ye=Ie.indexOf(me[et]);Ye!==-1&&(Xe===-1||Ye<Xe)&&(Xe=Ye)}var dt,tt;Xe===-1?tt=Ie.lastIndexOf("@"):tt=Ie.lastIndexOf("@",Xe),tt!==-1&&(dt=Ie.slice(0,tt),Ie=Ie.slice(tt+1),this.auth=decodeURIComponent(dt)),Xe=-1;for(var et=0;et<fe.length;et++){var Ye=Ie.indexOf(fe[et]);Ye!==-1&&(Xe===-1||Ye<Xe)&&(Xe=Ye)}Xe===-1&&(Xe=Ie.length),this.host=Ie.slice(0,Xe),Ie=Ie.slice(Xe),this.parseHost(),this.hostname=this.hostname||"";var lt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!lt)for(var st=this.hostname.split("."),et=0,He=st.length;et<He;et++){var Ne=st[et];if(Ne&&!Ne.match(he)){for(var Ge="",Me=0,Ke=Ne.length;Me<Ke;Me++)Ne.charCodeAt(Me)>127?Ge+="x":Ge+=Ne[Me];if(!Ge.match(he)){var ct=st.slice(0,et),pt=st.slice(et+1),rt=Ne.match(ge);rt&&(ct.push(rt[1]),pt.unshift(rt[2])),pt.length&&(Ie="/"+pt.join(".")+Ie),this.hostname=ct.join(".");break}}}this.hostname.length>ve?this.hostname="":this.hostname=this.hostname.toLowerCase(),lt||(this.hostname=ie.toASCII(this.hostname));var Ae=this.port?":"+this.port:"",Pe=this.hostname||"";this.host=Pe+Ae,this.href+=this.host,lt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ie[0]!=="/"&&(Ie="/"+Ie))}if(!xe[at])for(var et=0,He=ue.length;et<He;et++){var Ue=ue[et];if(Ie.indexOf(Ue)!==-1){var ot=encodeURIComponent(Ue);ot===Ue&&(ot=escape(Ue)),Ie=Ie.split(Ue).join(ot)}}var Oe=Ie.indexOf("#");Oe!==-1&&(this.hash=Ie.substr(Oe),Ie=Ie.slice(0,Oe));var Se=Ie.indexOf("?");if(Se!==-1?(this.search=Ie.substr(Se),this.query=Ie.substr(Se+1),ke&&(this.query=Ee.parse(this.query)),Ie=Ie.slice(0,Se)):ke&&(this.search="",this.query={}),Ie&&(this.pathname=Ie),je[at]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ae=this.pathname||"",pe=this.search||"";this.path=Ae+pe}return this.href=this.format(),this};function ye(Re){return oe.isString(Re)&&(Re=ce(Re)),Re instanceof ee?Re.format():ee.prototype.format.call(Re)}ee.prototype.format=function(){var Re=this.auth||"";Re&&(Re=encodeURIComponent(Re),Re=Re.replace(/%3A/i,":"),Re+="@");var ke=this.protocol||"",_e=this.pathname||"",Ze=this.hash||"",Ve=!1,Qe="";this.host?Ve=Re+this.host:this.hostname&&(Ve=Re+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(Ve+=":"+this.port)),this.query&&oe.isObject(this.query)&&Object.keys(this.query).length&&(Qe=Ee.stringify(this.query));var ut=this.search||Qe&&"?"+Qe||"";return ke&&ke.substr(-1)!==":"&&(ke+=":"),this.slashes||(!ke||je[ke])&&Ve!==!1?(Ve="//"+(Ve||""),_e&&_e.charAt(0)!=="/"&&(_e="/"+_e)):Ve||(Ve=""),Ze&&Ze.charAt(0)!=="#"&&(Ze="#"+Ze),ut&&ut.charAt(0)!=="?"&&(ut="?"+ut),_e=_e.replace(/[?#]/g,function(Ie){return encodeURIComponent(Ie)}),ut=ut.replace("#","%23"),ke+Ve+_e+ut+Ze};function we(Re,ke){return ce(Re,!1,!0).resolve(ke)}ee.prototype.resolve=function(Re){return this.resolveObject(ce(Re,!1,!0)).format()};function De(Re,ke){return Re?ce(Re,!1,!0).resolveObject(ke):ke}ee.prototype.resolveObject=function(Re){if(oe.isString(Re)){var ke=new ee;ke.parse(Re,!1,!0),Re=ke}for(var _e=new ee,Ze=Object.keys(this),Ve=0;Ve<Ze.length;Ve++){var Qe=Ze[Ve];_e[Qe]=this[Qe]}if(_e.hash=Re.hash,Re.href==="")return _e.href=_e.format(),_e;if(Re.slashes&&!Re.protocol){for(var ut=Object.keys(Re),Ie=0;Ie<ut.length;Ie++){var We=ut[Ie];We!=="protocol"&&(_e[We]=Re[We])}return je[_e.protocol]&&_e.hostname&&!_e.pathname&&(_e.path=_e.pathname="/"),_e.href=_e.format(),_e}if(Re.protocol&&Re.protocol!==_e.protocol){if(!je[Re.protocol]){for(var it=Object.keys(Re),at=0;at<it.length;at++){var nt=it[at];_e[nt]=Re[nt]}return _e.href=_e.format(),_e}if(_e.protocol=Re.protocol,!Re.host&&!Ce[Re.protocol]){for(var He=(Re.pathname||"").split("/");He.length&&!(Re.host=He.shift()););Re.host||(Re.host=""),Re.hostname||(Re.hostname=""),He[0]!==""&&He.unshift(""),He.length<2&&He.unshift(""),_e.pathname=He.join("/")}else _e.pathname=Re.pathname;if(_e.search=Re.search,_e.query=Re.query,_e.host=Re.host||"",_e.auth=Re.auth,_e.hostname=Re.hostname||Re.host,_e.port=Re.port,_e.pathname||_e.search){var Xe=_e.pathname||"",et=_e.search||"";_e.path=Xe+et}return _e.slashes=_e.slashes||Re.slashes,_e.href=_e.format(),_e}var Ye=_e.pathname&&_e.pathname.charAt(0)==="/",dt=Re.host||Re.pathname&&Re.pathname.charAt(0)==="/",tt=dt||Ye||_e.host&&Re.pathname,lt=tt,st=_e.pathname&&_e.pathname.split("/")||[],He=Re.pathname&&Re.pathname.split("/")||[],Ne=_e.protocol&&!je[_e.protocol];if(Ne&&(_e.hostname="",_e.port=null,_e.host&&(st[0]===""?st[0]=_e.host:st.unshift(_e.host)),_e.host="",Re.protocol&&(Re.hostname=null,Re.port=null,Re.host&&(He[0]===""?He[0]=Re.host:He.unshift(Re.host)),Re.host=null),tt=tt&&(He[0]===""||st[0]==="")),dt)_e.host=Re.host||Re.host===""?Re.host:_e.host,_e.hostname=Re.hostname||Re.hostname===""?Re.hostname:_e.hostname,_e.search=Re.search,_e.query=Re.query,st=He;else if(He.length)st||(st=[]),st.pop(),st=st.concat(He),_e.search=Re.search,_e.query=Re.query;else if(!oe.isNullOrUndefined(Re.search)){if(Ne){_e.hostname=_e.host=st.shift();var Ge=_e.host&&_e.host.indexOf("@")>0?_e.host.split("@"):!1;Ge&&(_e.auth=Ge.shift(),_e.host=_e.hostname=Ge.shift())}return _e.search=Re.search,_e.query=Re.query,(!oe.isNull(_e.pathname)||!oe.isNull(_e.search))&&(_e.path=(_e.pathname?_e.pathname:"")+(_e.search?_e.search:"")),_e.href=_e.format(),_e}if(!st.length)return _e.pathname=null,_e.search?_e.path="/"+_e.search:_e.path=null,_e.href=_e.format(),_e;for(var Me=st.slice(-1)[0],Ke=(_e.host||Re.host||st.length>1)&&(Me==="."||Me==="..")||Me==="",ct=0,pt=st.length;pt>=0;pt--)Me=st[pt],Me==="."?st.splice(pt,1):Me===".."?(st.splice(pt,1),ct++):ct&&(st.splice(pt,1),ct--);if(!tt&&!lt)for(;ct--;ct)st.unshift("..");tt&&st[0]!==""&&(!st[0]||st[0].charAt(0)!=="/")&&st.unshift(""),Ke&&st.join("/").substr(-1)!=="/"&&st.push("");var rt=st[0]===""||st[0]&&st[0].charAt(0)==="/";if(Ne){_e.hostname=_e.host=rt?"":st.length?st.shift():"";var Ge=_e.host&&_e.host.indexOf("@")>0?_e.host.split("@"):!1;Ge&&(_e.auth=Ge.shift(),_e.host=_e.hostname=Ge.shift())}return tt=tt||_e.host&&st.length,tt&&!rt&&st.unshift(""),st.length?_e.pathname=st.join("/"):(_e.pathname=null,_e.path=null),(!oe.isNull(_e.pathname)||!oe.isNull(_e.search))&&(_e.path=(_e.pathname?_e.pathname:"")+(_e.search?_e.search:"")),_e.auth=Re.auth||_e.auth,_e.slashes=_e.slashes||Re.slashes,_e.href=_e.format(),_e},ee.prototype.parseHost=function(){var Re=this.host,ke=E.exec(Re);ke&&(ke=ke[0],ke!==":"&&(this.port=ke.substr(1)),Re=Re.substr(0,Re.length-ke.length)),Re&&(this.hostname=Re)}},{"./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,Te,be){"use strict";var x=y("@babel/runtime/helpers/interopRequireDefault"),z=x(y("@babel/runtime/helpers/typeof"));Te.exports={isString:function(oe){return typeof oe=="string"},isObject:function(oe){return(0,z.default)(oe)==="object"&&oe!==null},isNull:function(oe){return oe===null},isNullOrUndefined:function(oe){return oe==null}}},{"@babel/runtime/helpers/interopRequireDefault":78,"@babel/runtime/helpers/typeof":79}],474:[function(y,Te,be){"use strict";y("core-js/modules/es.number.constructor.js"),be.encodeURIComponent=function(x){try{return encodeURIComponent(x)}catch(z){return x}},be.escape=y("escape-html"),be.timestamp=function(z){if(z){var ie=z;return typeof ie=="string"&&(ie=Number(ie)),String(z).length===10&&(ie*=1e3),new Date(ie)}return Math.round(Date.now()/1e3)}},{"core-js/modules/es.number.constructor.js":286,"escape-html":343}],475:[function(y,Te,be){(function(x,z){(function(){"use strict";var ie=y("@babel/runtime/helpers/interopRequireDefault"),oe=ie(y("@babel/runtime/helpers/typeof"));y("core-js/modules/es.string.trim.js"),y("core-js/modules/es.regexp.exec.js"),y("core-js/modules/es.string.split.js"),y("core-js/modules/es.object.to-string.js"),y("core-js/modules/es.promise.js"),y("core-js/modules/es.function.name.js"),y("core-js/modules/es.array.concat.js");var ee=y("util"),le=y("url"),E=y("http"),ne=y("https"),te=y("debug")("urllib"),se=y("humanize-ms"),ue=0,fe=Math.pow(2,31)-10,me=/^https?:\/\//i;function ve(Ce,je){return Ce===void 0?je:Ce}function he(Ce){return Ce?Ce.split(";")[0].trim().toLowerCase():""}function ge(Ce,je){return function(Ee,ce,ye){if(Ee)return je(Ee);Ce({data:ce,status:ye.statusCode,headers:ye.headers,res:ye})}}be.TIMEOUTS=[se("300s"),se("300s")];var xe=["json","text"];be.request=function(je,Ee,ce){return arguments.length===2&&typeof Ee=="function"&&(ce=Ee,Ee=null),typeof ce=="function"?be.requestWithCallback(je,Ee,ce):new Promise(function(ye,we){be.requestWithCallback(je,Ee,ge(ye,we))})},be.requestWithCallback=function(je,Ee,ce){if(!je||typeof je!="string"&&(0,oe.default)(je)!=="object"){var ye=ee.format("expect request url to be a string or a http request options, but got %j",je);throw new Error(ye)}arguments.length===2&&typeof Ee=="function"&&(ce=Ee,Ee=null),Ee=Ee||{},ue>=fe&&(ue=0);var we=++ue;Ee.requestUrls=Ee.requestUrls||[];var De={requestId:we,url:je,args:Ee,ctx:Ee.ctx};Ee.emitter&&Ee.emitter.emit("request",De),Ee.timeout=Ee.timeout||be.TIMEOUTS,Ee.maxRedirects=Ee.maxRedirects||10,Ee.streaming=Ee.streaming||Ee.customResponse;var Re=Date.now(),ke;typeof je=="string"?(me.test(je)||(je="https://"+je),ke=le.parse(je)):ke=je;var _e=(Ee.type||Ee.method||ke.method||"GET").toUpperCase(),Ze=ke.port||80,Ve=E,Qe=ve(Ee.agent,be.agent),ut=Ee.fixJSONCtlChars;ke.protocol==="https:"&&(Ve=ne,Qe=ve(Ee.httpsAgent,be.httpsAgent),ke.port||(Ze=443));var Ie={host:ke.hostname||ke.host||"localhost",path:ke.path||"/",method:_e,port:Ze,agent:Qe,headers:Ee.headers||{},lookup:Ee.lookup};Array.isArray(Ee.timeout)?Ie.requestTimeout=Ee.timeout[Ee.timeout.length-1]:typeof Ee.timeout!="undefined"&&(Ie.requestTimeout=Ee.timeout);var We=Ee.auth||ke.auth;We&&(Ie.auth=We);var it=Ee.content||Ee.data,at=_e==="GET"||_e==="HEAD"||Ee.dataAsQueryString;if(!Ee.content&&it&&!(typeof it=="string"||z.isBuffer(it)))if(at)it=Ee.nestedQuerystring?qs.stringify(it):querystring.stringify(it);else{var nt=Ie.headers["Content-Type"]||Ie.headers["content-type"];nt||(Ee.contentType==="json"?nt="application/json":nt="application/x-www-form-urlencoded",Ie.headers["Content-Type"]=nt),he(nt)==="application/json"?it=JSON.stringify(it):it=Ee.nestedQuerystring?qs.stringify(it):querystring.stringify(it)}at&&it&&(Ie.path+=(ke.query?"&":"?")+it,it=null);var Xe=0;if(it){var et=it.length;z.isBuffer(it)||(et=z.byteLength(it)),Xe=Ie.headers["Content-Length"]=et}Ee.dataType==="json"&&(Ie.headers.Accept="application/json"),typeof Ee.beforeRequest=="function"&&Ee.beforeRequest(Ie);var Ye=null,dt=null,tt=null,lt=!1,st=!1,He=0,Ne=-1,Ge=!1,Me="",Ke="",ct=null;Ee.timing&&(ct={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function pt(){Ye&&(clearTimeout(Ye),Ye=null)}function rt(){dt&&(clearTimeout(dt),dt=null)}function Ae(gt,wt,bt){if(rt(),!ce){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),we,x.pid,Ie.method,je),gt&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),we,x.pid,gt.name,gt.message,gt.stack);return}var yt=ce;ce=null;var Et={};bt&&(Ne=bt.statusCode,Et=bt.headers);var kt=Date.now()-Re;ct&&(ct.contentDownload=kt),te("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",kt,He,Ne,Ie.method,Ie.host,Ie.path,st,ct);var jt={status:Ne,statusCode:Ne,headers:Et,size:He,aborted:Ge,rt:kt,keepAliveSocket:st,data:wt,requestUrls:Ee.requestUrls,timing:ct,remoteAddress:Me,remotePort:Ke};if(gt){var It="";Qe&&typeof Qe.getCurrentStatus=="function"&&(It=", agent status: "+JSON.stringify(Qe.getCurrentStatus())),gt.message+=", "+Ie.method+" "+je+" "+Ne+" (connected: "+lt+", keepalive socket: "+st+It+`)
headers: `+JSON.stringify(Et),gt.data=wt,gt.path=Ie.path,gt.status=Ne,gt.headers=Et,gt.res=jt}yt(gt,wt,Ee.streaming?bt:jt),Ee.emitter&&(De.url=je,De.socket=Le&&Le.connection,De.options=Ie,De.size=Xe,Ee.emitter.emit("response",{requestId:we,error:gt,ctx:Ee.ctx,req:De,res:jt}))}function Pe(gt){var wt=null;if(Ee.followRedirect&&statuses.redirect[gt.statusCode]){Ee._followRedirectCount=(Ee._followRedirectCount||0)+1;var bt=gt.headers.location;if(!bt)wt=new Error("Got statusCode "+gt.statusCode+" but cannot resolve next location from headers"),wt.name="FollowRedirectError";else if(Ee._followRedirectCount>Ee.maxRedirects)wt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+je),wt.name="MaxRedirectError";else{var yt=Ee.formatRedirectUrl?Ee.formatRedirectUrl(je,bt):le.resolve(je,bt);te("Request#%d %s: `redirected` from %s to %s",we,Ie.path,je,yt),rt(),Ee.headers&&Ee.headers.Host&&me.test(bt)&&(Ee.headers.Host=null);var Et=ce;return ce=null,be.requestWithCallback(yt,Ee,Et),{redirect:!0,error:null}}}return{redirect:!1,error:wt}}Ee.gzip&&!Ie.headers["Accept-Encoding"]&&!Ie.headers["accept-encoding"]&&(Ie.headers["Accept-Encoding"]="gzip");function Ue(gt,wt,bt){var yt=gt.headers["content-encoding"];return bt(null,wt,yt)}var ot=Ee.writeStream;te("Request#%d %s %s with headers %j, options.path: %s",we,_e,je,Ie.headers,Ie.path),Ee.requestUrls.push(je);function Oe(gt){if(ct&&(ct.waiting=Date.now()-Re),te("Request#%d %s `req response` event emit: status %d, headers: %j",we,je,gt.statusCode,gt.headers),Ee.streaming){var wt=Pe(gt);if(wt.redirect){gt.resume();return}return wt.error?(gt.resume(),Ae(wt.error,null,gt)):Ae(null,null,gt)}if(gt.on("close",function(){te("Request#%d %s: `res close` event emit, total size %d",we,je,He)}),gt.on("error",function(){te("Request#%d %s: `res error` event emit, total size %d",we,je,He)}),gt.on("aborted",function(){Ge=!0,te("Request#%d %s: `res aborted` event emit, total size %d",we,je,He)}),ot){var bt=Pe(gt);if(bt.redirect){gt.resume();return}return bt.error?(gt.resume(),ot.end(),Ae(bt.error,null,gt)):(Ee.consumeWriteStream===!1?gt.on("end",Ae.bind(null,null,null,gt)):ot.on("close",function(){te("Request#%d %s: writeStream close event emitted",we,je),Ae(tt||null,null,gt)}),gt.pipe(ot))}var yt=[];gt.on("data",function(Et){te("Request#%d %s: `res data` event emit, size %d",we,je,Et.length),He+=Et.length,yt.push(Et)}),gt.on("end",function(){var Et=z.concat(yt,He);if(te("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",we,je,He,gt._dumped),tt)return Ae(tt,Et,gt);var kt=Pe(gt);if(kt.error)return Ae(kt.error,Et,gt);kt.redirect||Ue(gt,Et,function(jt,It,vr){if(jt)return Ae(jt,Et,gt);if(!vr&&xe.indexOf(Ee.dataType)>=0){try{It=decodeBodyByCharset(It,gt)}catch(Pr){return te("decodeBodyByCharset error: %s",Pr),Ae(null,It,gt)}if(Ee.dataType==="json")if(He===0)It=null;else{var Kt=parseJSON(It,ut);Kt.error?jt=Kt.error:It=Kt.data}}Ge&&te("Request#%d %s: Remote socket was terminated before `response.end()` was called",we,je),Ae(jt,It,gt)})})}var Se,pe;Array.isArray(Ee.timeout)?(Se=se(Ee.timeout[0]),pe=se(Ee.timeout[1])):Se=pe=se(Ee.timeout),te("ConnectTimeout: %d, ResponseTimeout: %d",Se,pe);function Be(){te("Connect timer ticking, timeout: %d",Se),Ye=setTimeout(function(){Ye=null,Ne===-1&&(Ne=-2);var gt="Connect timeout for "+Se+"ms",wt="ConnectionTimeoutError";Le.socket||(wt="SocketAssignTimeoutError",gt+=", working sockets is full"),tt=new Error(gt),tt.name=wt,tt.requestId=we,te("ConnectTimeout: Request#%d %s %s: %s, connected: %s",we,je,tt.name,gt,lt),mt()},Se)}function $e(){te("Response timer ticking, timeout: %d",pe),dt=setTimeout(function(){dt=null;var gt="Response timeout for "+pe+"ms",wt="ResponseTimeoutError";tt=new Error(gt),tt.name=wt,tt.requestId=we,te("ResponseTimeout: Request#%d %s %s: %s, connected: %s",we,je,tt.name,gt,lt),mt()},pe)}var Le;Ie.mode=Ee.mode?Ee.mode:"";try{Le=Ve.request(Ie,Oe)}catch(gt){return Ae(gt)}typeof window=="undefined"?Be():Le.on("requestTimeout",function(){Ne===-1&&(Ne=-2);var gt="Connect timeout for "+Se+"ms",wt="ConnectionTimeoutError";tt=new Error(gt),tt.name=wt,tt.requestId=we,mt()});function mt(){te("Request#%d %s abort, connected: %s",we,je,lt),Le.socket||(tt.noSocket=!0,Ae(tt)),Le.abort()}return ct&&Le.on("finish",function(){ct.requestSent=Date.now()-Re}),Le.once("socket",function(gt){ct&&(ct.queuing=Date.now()-Re);var wt=gt.readyState;if(wt==="opening"){gt.once("lookup",function(bt,yt,Et){te("Request#%d %s lookup: %s, %s, %s",we,je,bt,yt,Et),ct&&(ct.dnslookup=Date.now()-Re),yt&&(Me=yt)}),gt.once("connect",function(){ct&&(ct.connected=Date.now()-Re),pt(),$e(),te("Request#%d %s new socket connected",we,je),lt=!0,Me||(Me=gt.remoteAddress),Ke=gt.remotePort});return}te("Request#%d %s reuse socket connected, readyState: %s",we,je,wt),lt=!0,st=!0,Me||(Me=gt.remoteAddress),Ke=gt.remotePort,pt(),$e()}),Le.on("error",function(gt){(gt.name==="Error"||gt.name==="TypeError")&&(gt.name=lt?"ResponseError":"RequestError"),gt.message+=' (req "error")',te("Request#%d %s `req error` event emit, %s: %s",we,je,gt.name,gt.message),Ae(tt||gt)}),ot&&ot.once("error",function(gt){gt.message+=' (writeStream "error")',tt=gt,te("Request#%d %s `writeStream error` event emit, %s: %s",we,je,gt.name,gt.message),mt()}),Ee.stream?(Ee.stream.pipe(Le),Ee.stream.once("error",function(gt){gt.message+=' (stream "error")',tt=gt,te("Request#%d %s `readStream error` event emit, %s: %s",we,je,gt.name,gt.message),mt()})):Le.end(it),Le.requestId=we,Le}}).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(ur,Zt,Je){(function(ze){ze(Je(89780))})(function(ze){ze.defineOption("placeholder","",function(ie,oe,ee){var le=ee&&ee!=ze.Init;if(oe&&!le)ie.on("blur",be),ie.on("change",x),ie.on("swapDoc",x),ze.on(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose=function(){Te(ie)}),x(ie);else if(!oe&&le){ie.off("blur",be),ie.off("change",x),ie.off("swapDoc",x),ze.off(ie.getInputField(),"compositionupdate",ie.state.placeholderCompose),Ct(ie);var E=ie.getWrapperElement();E.className=E.className.replace(" CodeMirror-empty","")}oe&&!ie.hasFocus()&&be(ie)});function Ct(ie){ie.state.placeholder&&(ie.state.placeholder.parentNode.removeChild(ie.state.placeholder),ie.state.placeholder=null)}function y(ie){Ct(ie);var oe=ie.state.placeholder=document.createElement("pre");oe.style.cssText="height: 0; overflow: visible",oe.style.direction=ie.getOption("direction"),oe.className="CodeMirror-placeholder CodeMirror-line-like";var ee=ie.getOption("placeholder");typeof ee=="string"&&(ee=document.createTextNode(ee)),oe.appendChild(ee),ie.display.lineSpace.insertBefore(oe,ie.display.lineSpace.firstChild)}function Te(ie){setTimeout(function(){var oe=!1,ee=ie.getInputField();ee.nodeName=="TEXTAREA"?oe=!ee.value:ie.lineCount()==1&&(oe=!/[^\u200b]/.test(ee.querySelector(".CodeMirror-line").textContent)),oe?y(ie):Ct(ie)},20)}function be(ie){z(ie)&&y(ie)}function x(ie){var oe=ie.getWrapperElement(),ee=z(ie);oe.className=oe.className.replace(" CodeMirror-empty","")+(ee?" CodeMirror-empty":""),ee?y(ie):Ct(ie)}function z(ie){return ie.lineCount()===1&&ie.getLine(0)===""}})},25717:function(ur,Zt,Je){(function(ze){ze(Je(89780))})(function(ze){var Ct={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},y=ze.Pos;ze.defineOption("autoCloseBrackets",!1,function(se,ue,fe){fe&&fe!=ze.Init&&(se.removeKeyMap(be),se.state.closeBrackets=null),ue&&(x(Te(ue,"pairs")),se.state.closeBrackets=ue,se.addKeyMap(be))});function Te(se,ue){return ue=="pairs"&&typeof se=="string"?se:typeof se=="object"&&se[ue]!=null?se[ue]:Ct[ue]}var be={Backspace:oe,Enter:ee};function x(se){for(var ue=0;ue<se.length;ue++){var fe=se.charAt(ue),me="'"+fe+"'";be[me]||(be[me]=z(fe))}}x(Ct.pairs+"`");function z(se){return function(ue){return E(ue,se)}}function ie(se){var ue=se.state.closeBrackets;if(!ue||ue.override)return ue;var fe=se.getModeAt(se.getCursor());return fe.closeBrackets||ue}function oe(se){var ue=ie(se);if(!ue||se.getOption("disableInput"))return ze.Pass;for(var fe=Te(ue,"pairs"),me=se.listSelections(),ve=0;ve<me.length;ve++){if(!me[ve].empty())return ze.Pass;var he=ne(se,me[ve].head);if(!he||fe.indexOf(he)%2!=0)return ze.Pass}for(var ve=me.length-1;ve>=0;ve--){var ge=me[ve].head;se.replaceRange("",y(ge.line,ge.ch-1),y(ge.line,ge.ch+1),"+delete")}}function ee(se){var ue=ie(se),fe=ue&&Te(ue,"explode");if(!fe||se.getOption("disableInput"))return ze.Pass;for(var me=se.listSelections(),ve=0;ve<me.length;ve++){if(!me[ve].empty())return ze.Pass;var he=ne(se,me[ve].head);if(!he||fe.indexOf(he)%2!=0)return ze.Pass}se.operation(function(){var ge=se.lineSeparator()||`
`;se.replaceSelection(ge+ge,null),se.execCommand("goCharLeft"),me=se.listSelections();for(var xe=0;xe<me.length;xe++){var Ce=me[xe].head.line;se.indentLine(Ce,null,!0),se.indentLine(Ce+1,null,!0)}})}function le(se){var ue=ze.cmpPos(se.anchor,se.head)>0;return{anchor:new y(se.anchor.line,se.anchor.ch+(ue?-1:1)),head:new y(se.head.line,se.head.ch+(ue?1:-1))}}function E(se,ue){var fe=ie(se);if(!fe||se.getOption("disableInput"))return ze.Pass;var me=Te(fe,"pairs"),ve=me.indexOf(ue);if(ve==-1)return ze.Pass;for(var he=Te(fe,"closeBefore"),ge=Te(fe,"triples"),xe=me.charAt(ve+1)==ue,Ce=se.listSelections(),je=ve%2==0,Ee,ce=0;ce<Ce.length;ce++){var ye=Ce[ce],we=ye.head,De,Re=se.getRange(we,y(we.line,we.ch+1));if(je&&!ye.empty())De="surround";else if((xe||!je)&&Re==ue)xe&&te(se,we)?De="both":ge.indexOf(ue)>=0&&se.getRange(we,y(we.line,we.ch+3))==ue+ue+ue?De="skipThree":De="skip";else if(xe&&we.ch>1&&ge.indexOf(ue)>=0&&se.getRange(y(we.line,we.ch-2),we)==ue+ue){if(we.ch>2&&/\bstring/.test(se.getTokenTypeAt(y(we.line,we.ch-2))))return ze.Pass;De="addFour"}else if(xe){var ke=we.ch==0?" ":se.getRange(y(we.line,we.ch-1),we);if(!ze.isWordChar(Re)&&ke!=ue&&!ze.isWordChar(ke))De="both";else return ze.Pass}else if(je&&(Re.length===0||/\s/.test(Re)||he.indexOf(Re)>-1))De="both";else return ze.Pass;if(!Ee)Ee=De;else if(Ee!=De)return ze.Pass}var _e=ve%2?me.charAt(ve-1):ue,Ze=ve%2?ue:me.charAt(ve+1);se.operation(function(){if(Ee=="skip")se.execCommand("goCharRight");else if(Ee=="skipThree")for(var Ve=0;Ve<3;Ve++)se.execCommand("goCharRight");else if(Ee=="surround"){for(var Qe=se.getSelections(),Ve=0;Ve<Qe.length;Ve++)Qe[Ve]=_e+Qe[Ve]+Ze;se.replaceSelections(Qe,"around"),Qe=se.listSelections().slice();for(var Ve=0;Ve<Qe.length;Ve++)Qe[Ve]=le(Qe[Ve]);se.setSelections(Qe)}else Ee=="both"?(se.replaceSelection(_e+Ze,null),se.triggerElectric(_e+Ze),se.execCommand("goCharLeft")):Ee=="addFour"&&(se.replaceSelection(_e+_e+_e+_e,"before"),se.execCommand("goCharRight"))})}function ne(se,ue){var fe=se.getRange(y(ue.line,ue.ch-1),y(ue.line,ue.ch+1));return fe.length==2?fe:null}function te(se,ue){var fe=se.getTokenAt(y(ue.line,ue.ch+1));return/\bstring/.test(fe.type)&&fe.start==ue.ch&&(ue.ch==0||!/\bstring/.test(se.getTokenTypeAt(ue)))}})},6313:function(ur,Zt,Je){(function(ze){ze(Je(89780),Je(32855))})(function(ze){ze.defineOption("autoCloseTags",!1,function(oe,ee,le){if(le!=ze.Init&&le&&oe.removeKeyMap("autoCloseTags"),!!ee){var E={name:"autoCloseTags"};(typeof ee!="object"||ee.whenClosing!==!1)&&(E["'/'"]=function(ne){return x(ne)}),(typeof ee!="object"||ee.whenOpening!==!1)&&(E["'>'"]=function(ne){return Te(ne)}),oe.addKeyMap(E)}});var Ct=["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 Te(oe){if(oe.getOption("disableInput"))return ze.Pass;for(var ee=oe.listSelections(),le=[],E=oe.getOption("autoCloseTags"),ne=0;ne<ee.length;ne++){if(!ee[ne].empty())return ze.Pass;var te=ee[ne].head,se=oe.getTokenAt(te),ue=ze.innerMode(oe.getMode(),se.state),fe=ue.state,me=ue.mode.xmlCurrentTag&&ue.mode.xmlCurrentTag(fe),ve=me&&me.name;if(!ve)return ze.Pass;var he=ue.mode.configuration=="html",ge=typeof E=="object"&&E.dontCloseTags||he&&Ct,xe=typeof E=="object"&&E.indentTags||he&&y;se.end>te.ch&&(ve=ve.slice(0,ve.length-se.end+te.ch));var Ce=ve.toLowerCase();if(!ve||se.type=="string"&&(se.end!=te.ch||!/[\"\']/.test(se.string.charAt(se.string.length-1))||se.string.length==1)||se.type=="tag"&&me.close||se.string.indexOf("/")==te.ch-se.start-1||ge&&z(ge,Ce)>-1||ie(oe,ue.mode.xmlCurrentContext&&ue.mode.xmlCurrentContext(fe)||[],ve,te,!0))return ze.Pass;var je=typeof E=="object"&&E.emptyTags;if(je&&z(je,ve)>-1){le[ne]={text:"/>",newPos:ze.Pos(te.line,te.ch+2)};continue}var Ee=xe&&z(xe,Ce)>-1;le[ne]={indent:Ee,text:">"+(Ee?`
`:"")+"</"+ve+">",newPos:Ee?ze.Pos(te.line+1,0):ze.Pos(te.line,te.ch+1)}}for(var ce=typeof E=="object"&&E.dontIndentOnAutoClose,ne=ee.length-1;ne>=0;ne--){var ye=le[ne];oe.replaceRange(ye.text,ee[ne].head,ee[ne].anchor,"+insert");var we=oe.listSelections().slice(0);we[ne]={head:ye.newPos,anchor:ye.newPos},oe.setSelections(we),!ce&&ye.indent&&(oe.indentLine(ye.newPos.line,null,!0),oe.indentLine(ye.newPos.line+1,null,!0))}}function be(oe,ee){for(var le=oe.listSelections(),E=[],ne=ee?"/":"</",te=oe.getOption("autoCloseTags"),se=typeof te=="object"&&te.dontIndentOnSlash,ue=0;ue<le.length;ue++){if(!le[ue].empty())return ze.Pass;var fe=le[ue].head,me=oe.getTokenAt(fe),ve=ze.innerMode(oe.getMode(),me.state),he=ve.state;if(ee&&(me.type=="string"||me.string.charAt(0)!="<"||me.start!=fe.ch-1))return ze.Pass;var ge,xe=ve.mode.name!="xml"&&oe.getMode().name=="htmlmixed";if(xe&&ve.mode.name=="javascript")ge=ne+"script";else if(xe&&ve.mode.name=="css")ge=ne+"style";else{var Ce=ve.mode.xmlCurrentContext&&ve.mode.xmlCurrentContext(he);if(!Ce||Ce.length&&ie(oe,Ce,Ce[Ce.length-1],fe))return ze.Pass;ge=ne+Ce[Ce.length-1]}oe.getLine(fe.line).charAt(me.end)!=">"&&(ge+=">"),E[ue]=ge}if(oe.replaceSelections(E),le=oe.listSelections(),!se)for(var ue=0;ue<le.length;ue++)(ue==le.length-1||le[ue].head.line<le[ue+1].head.line)&&oe.indentLine(le[ue].head.line)}function x(oe){return oe.getOption("disableInput")?ze.Pass:be(oe,!0)}ze.commands.closeTag=function(oe){return be(oe)};function z(oe,ee){if(oe.indexOf)return oe.indexOf(ee);for(var le=0,E=oe.length;le<E;++le)if(oe[le]==ee)return le;return-1}function ie(oe,ee,le,E,ne){if(!ze.scanForClosingTag)return!1;var te=Math.min(oe.lastLine()+1,E.line+500),se=ze.scanForClosingTag(oe,E,null,te);if(!se||se.tag!=le)return!1;for(var ue=ne?1:0,fe=ee.length-1;fe>=0&&ee[fe]==le;fe--)++ue;E=se.to;for(var fe=1;fe<ue;fe++){var me=ze.scanForClosingTag(oe,E,null,te);if(!me||me.tag!=le)return!1;E=me.to}return!0}})},32855:function(ur,Zt,Je){(function(ze){ze(Je(89780))})(function(ze){"use strict";var Ct=ze.Pos;function y(fe,me){return fe.line-me.line||fe.ch-me.ch}var Te="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",be=Te+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",x=new RegExp("<(/?)(["+Te+"]["+be+"]*)","g");function z(fe,me,ve,he){this.line=me,this.ch=ve,this.cm=fe,this.text=fe.getLine(me),this.min=he?Math.max(he.from,fe.firstLine()):fe.firstLine(),this.max=he?Math.min(he.to-1,fe.lastLine()):fe.lastLine()}function ie(fe,me){var ve=fe.cm.getTokenTypeAt(Ct(fe.line,me));return ve&&/\btag\b/.test(ve)}function oe(fe){if(!(fe.line>=fe.max))return fe.ch=0,fe.text=fe.cm.getLine(++fe.line),!0}function ee(fe){if(!(fe.line<=fe.min))return fe.text=fe.cm.getLine(--fe.line),fe.ch=fe.text.length,!0}function le(fe){for(;;){var me=fe.text.indexOf(">",fe.ch);if(me==-1){if(oe(fe))continue;return}if(!ie(fe,me+1)){fe.ch=me+1;continue}var ve=fe.text.lastIndexOf("/",me),he=ve>-1&&!/\S/.test(fe.text.slice(ve+1,me));return fe.ch=me+1,he?"selfClose":"regular"}}function E(fe){for(;;){var me=fe.ch?fe.text.lastIndexOf("<",fe.ch-1):-1;if(me==-1){if(ee(fe))continue;return}if(!ie(fe,me+1)){fe.ch=me;continue}x.lastIndex=me,fe.ch=me;var ve=x.exec(fe.text);if(ve&&ve.index==me)return ve}}function ne(fe){for(;;){x.lastIndex=fe.ch;var me=x.exec(fe.text);if(!me){if(oe(fe))continue;return}if(!ie(fe,me.index+1)){fe.ch=me.index+1;continue}return fe.ch=me.index+me[0].length,me}}function te(fe){for(;;){var me=fe.ch?fe.text.lastIndexOf(">",fe.ch-1):-1;if(me==-1){if(ee(fe))continue;return}if(!ie(fe,me+1)){fe.ch=me;continue}var ve=fe.text.lastIndexOf("/",me),he=ve>-1&&!/\S/.test(fe.text.slice(ve+1,me));return fe.ch=me+1,he?"selfClose":"regular"}}function se(fe,me){for(var ve=[];;){var he=ne(fe),ge,xe=fe.line,Ce=fe.ch-(he?he[0].length:0);if(!he||!(ge=le(fe)))return;if(ge!="selfClose")if(he[1]){for(var je=ve.length-1;je>=0;--je)if(ve[je]==he[2]){ve.length=je;break}if(je<0&&(!me||me==he[2]))return{tag:he[2],from:Ct(xe,Ce),to:Ct(fe.line,fe.ch)}}else ve.push(he[2])}}function ue(fe,me){for(var ve=[];;){var he=te(fe);if(!he)return;if(he=="selfClose"){E(fe);continue}var ge=fe.line,xe=fe.ch,Ce=E(fe);if(!Ce)return;if(Ce[1])ve.push(Ce[2]);else{for(var je=ve.length-1;je>=0;--je)if(ve[je]==Ce[2]){ve.length=je;break}if(je<0&&(!me||me==Ce[2]))return{tag:Ce[2],from:Ct(fe.line,fe.ch),to:Ct(ge,xe)}}}}ze.registerHelper("fold","xml",function(fe,me){for(var ve=new z(fe,me.line,0);;){var he=ne(ve);if(!he||ve.line!=me.line)return;var ge=le(ve);if(!ge)return;if(!he[1]&&ge!="selfClose"){var xe=Ct(ve.line,ve.ch),Ce=se(ve,he[2]);return Ce&&y(Ce.from,xe)>0?{from:xe,to:Ce.from}:null}}}),ze.findMatchingTag=function(fe,me,ve){var he=new z(fe,me.line,me.ch,ve);if(!(he.text.indexOf(">")==-1&&he.text.indexOf("<")==-1)){var ge=le(he),xe=ge&&Ct(he.line,he.ch),Ce=ge&&E(he);if(!(!ge||!Ce||y(he,me)>0)){var je={from:Ct(he.line,he.ch),to:xe,tag:Ce[2]};return ge=="selfClose"?{open:je,close:null,at:"open"}:Ce[1]?{open:ue(he,Ce[2]),close:je,at:"close"}:(he=new z(fe,xe.line,xe.ch,ve),{open:je,close:se(he,Ce[2]),at:"open"})}}},ze.findEnclosingTag=function(fe,me,ve,he){for(var ge=new z(fe,me.line,me.ch,ve);;){var xe=ue(ge,he);if(!xe)break;var Ce=new z(fe,me.line,me.ch,ve),je=se(Ce,xe.tag);if(je)return{open:xe,close:je}}},ze.scanForClosingTag=function(fe,me,ve,he){var ge=new z(fe,me.line,me.ch,he?{from:0,to:he}:null);return se(ge,ve)}})},89780:function(ur){(function(Zt,Je){ur.exports=Je()})(this,function(){"use strict";var Zt=navigator.userAgent,Je=navigator.platform,ze=/gecko\/\d/i.test(Zt),Ct=/MSIE \d/.test(Zt),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt),Te=/Edge\/(\d+)/.exec(Zt),be=Ct||y||Te,x=be&&(Ct?document.documentMode||6:+(Te||y)[1]),z=!Te&&/WebKit\//.test(Zt),ie=z&&/Qt\/\d+\.\d+/.test(Zt),oe=!Te&&/Chrome\//.test(Zt),ee=/Opera\//.test(Zt),le=/Apple Computer/.test(navigator.vendor),E=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zt),ne=/PhantomJS/.test(Zt),te=!Te&&/AppleWebKit/.test(Zt)&&/Mobile\/\w+/.test(Zt),se=/Android/.test(Zt),ue=te||se||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zt),fe=te||/Mac/.test(Je),me=/\bCrOS\b/.test(Zt),ve=/win/i.test(Je),he=ee&&Zt.match(/Version\/(\d*\.\d*)/);he&&(he=Number(he[1])),he&&he>=15&&(ee=!1,z=!0);var ge=fe&&(ie||ee&&(he==null||he<12.11)),xe=ze||be&&x>=9;function Ce(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var je=function(a,b){var ae=a.className,re=Ce(b).exec(ae);if(re){var de=ae.slice(re.index+re[0].length);a.className=ae.slice(0,re.index)+(de?re[1]+de:"")}};function Ee(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function ce(a,b){return Ee(a).appendChild(b)}function ye(a,b,ae,re){var de=document.createElement(a);if(ae&&(de.className=ae),re&&(de.style.cssText=re),typeof b=="string")de.appendChild(document.createTextNode(b));else if(b)for(var Fe=0;Fe<b.length;++Fe)de.appendChild(b[Fe]);return de}function we(a,b,ae,re){var de=ye(a,b,ae,re);return de.setAttribute("role","presentation"),de}var De;document.createRange?De=function(a,b,ae,re){var de=document.createRange();return de.setEnd(re||a,ae),de.setStart(a,b),de}:De=function(a,b,ae){var re=document.body.createTextRange();try{re.moveToElementText(a.parentNode)}catch(de){return re}return re.collapse(!0),re.moveEnd("character",ae),re.moveStart("character",b),re};function Re(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 ke(){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 _e(a,b){var ae=a.className;Ce(b).test(ae)||(a.className+=(ae?" ":"")+b)}function Ze(a,b){for(var ae=a.split(" "),re=0;re<ae.length;re++)ae[re]&&!Ce(ae[re]).test(b)&&(b+=" "+ae[re]);return b}var Ve=function(a){a.select()};te?Ve=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:be&&(Ve=function(a){try{a.select()}catch(b){}});function Qe(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function ut(a,b,ae){b||(b={});for(var re in a)a.hasOwnProperty(re)&&(ae!==!1||!b.hasOwnProperty(re))&&(b[re]=a[re]);return b}function Ie(a,b,ae,re,de){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var Fe=re||0,qe=de||0;;){var ft=a.indexOf(" ",Fe);if(ft<0||ft>=b)return qe+(b-Fe);qe+=ft-Fe,qe+=ae-qe%ae,Fe=ft+1}}var We=function(){this.id=null,this.f=null,this.time=0,this.handler=Qe(this.onTimeout,this)};We.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},We.prototype.set=function(a,b){this.f=b;var ae=+new Date+a;(!this.id||ae<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ae)};function it(a,b){for(var ae=0;ae<a.length;++ae)if(a[ae]==b)return ae;return-1}var at=50,nt={toString:function(){return"CodeMirror.Pass"}},Xe={scroll:!1},et={origin:"*mouse"},Ye={origin:"+move"};function dt(a,b,ae){for(var re=0,de=0;;){var Fe=a.indexOf(" ",re);Fe==-1&&(Fe=a.length);var qe=Fe-re;if(Fe==a.length||de+qe>=b)return re+Math.min(qe,b-de);if(de+=Fe-re,de+=ae-de%ae,re=Fe+1,de>=b)return re}}var tt=[""];function lt(a){for(;tt.length<=a;)tt.push(st(tt)+" ");return tt[a]}function st(a){return a[a.length-1]}function He(a,b){for(var ae=[],re=0;re<a.length;re++)ae[re]=b(a[re],re);return ae}function Ne(a,b,ae){for(var re=0,de=ae(b);re<a.length&&ae(a[re])<=de;)re++;a.splice(re,0,b)}function Ge(){}function Me(a,b){var ae;return Object.create?ae=Object.create(a):(Ge.prototype=a,ae=new Ge),b&&ut(b,ae),ae}var Ke=/[\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()||Ke.test(a))}function pt(a,b){return b?b.source.indexOf("\\w")>-1&&ct(a)?!0:b.test(a):ct(a)}function rt(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 Pe(a){return a.charCodeAt(0)>=768&&Ae.test(a)}function Ue(a,b,ae){for(;(ae<0?b>0:b<a.length)&&Pe(a.charAt(b));)b+=ae;return b}function ot(a,b,ae){for(var re=b>ae?-1:1;;){if(b==ae)return b;var de=(b+ae)/2,Fe=re<0?Math.ceil(de):Math.floor(de);if(Fe==b)return a(Fe)?b:ae;a(Fe)?ae=Fe:b=Fe+re}}function Oe(a,b,ae,re){if(!a)return re(b,ae,"ltr",0);for(var de=!1,Fe=0;Fe<a.length;++Fe){var qe=a[Fe];(qe.from<ae&&qe.to>b||b==ae&&qe.to==b)&&(re(Math.max(qe.from,b),Math.min(qe.to,ae),qe.level==1?"rtl":"ltr",Fe),de=!0)}de||re(b,ae,"ltr")}var Se=null;function pe(a,b,ae){var re;Se=null;for(var de=0;de<a.length;++de){var Fe=a[de];if(Fe.from<b&&Fe.to>b)return de;Fe.to==b&&(Fe.from!=Fe.to&&ae=="before"?re=de:Se=de),Fe.from==b&&(Fe.from!=Fe.to&&ae!="before"?re=de:Se=de)}return re!=null?re:Se}var Be=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ae(vt){return vt<=247?a.charAt(vt):1424<=vt&&vt<=1524?"R":1536<=vt&&vt<=1785?b.charAt(vt-1536):1774<=vt&&vt<=2220?"r":8192<=vt&&vt<=8203?"w":vt==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,de=/[stwN]/,Fe=/[LRr]/,qe=/[Lb1n]/,ft=/[1n]/;function ht(vt,St,Dt){this.level=vt,this.from=St,this.to=Dt}return function(vt,St){var Dt=St=="ltr"?"L":"R";if(vt.length==0||St=="ltr"&&!re.test(vt))return!1;for(var Ht=vt.length,Ut=[],hr=0;hr<Ht;++hr)Ut.push(ae(vt.charCodeAt(hr)));for(var Ar=0,Hr=Dt;Ar<Ht;++Ar){var Qr=Ut[Ar];Qr=="m"?Ut[Ar]=Hr:Hr=Qr}for(var ln=0,$r=Dt;ln<Ht;++ln){var vn=Ut[ln];vn=="1"&&$r=="r"?Ut[ln]="n":Fe.test(vn)&&($r=vn,vn=="r"&&(Ut[ln]="R"))}for(var In=1,Cn=Ut[0];In<Ht-1;++In){var Yn=Ut[In];Yn=="+"&&Cn=="1"&&Ut[In+1]=="1"?Ut[In]="1":Yn==","&&Cn==Ut[In+1]&&(Cn=="1"||Cn=="n")&&(Ut[In]=Cn),Cn=Yn}for(var ui=0;ui<Ht;++ui){var Bi=Ut[ui];if(Bi==",")Ut[ui]="N";else if(Bi=="%"){var xi=void 0;for(xi=ui+1;xi<Ht&&Ut[xi]=="%";++xi);for(var oa=ui&&Ut[ui-1]=="!"||xi<Ht&&Ut[xi]=="1"?"1":"N",ea=ui;ea<xi;++ea)Ut[ea]=oa;ui=xi-1}}for(var ji=0,ta=Dt;ji<Ht;++ji){var Zi=Ut[ji];ta=="L"&&Zi=="1"?Ut[ji]="L":Fe.test(Zi)&&(ta=Zi)}for(var Ni=0;Ni<Ht;++Ni)if(de.test(Ut[Ni])){var Oi=void 0;for(Oi=Ni+1;Oi<Ht&&de.test(Ut[Oi]);++Oi);for(var Ci=(Ni?Ut[Ni-1]:Dt)=="L",ra=(Oi<Ht?Ut[Oi]:Dt)=="L",xo=Ci==ra?Ci?"L":"R":Dt,Xa=Ni;Xa<Oi;++Xa)Ut[Xa]=xo;Ni=Oi-1}for(var Gi=[],Sa,Fi=0;Fi<Ht;)if(qe.test(Ut[Fi])){var Bs=Fi;for(++Fi;Fi<Ht&&qe.test(Ut[Fi]);++Fi);Gi.push(new ht(0,Bs,Fi))}else{var Ia=Fi,eo=Gi.length,to=St=="rtl"?1:0;for(++Fi;Fi<Ht&&Ut[Fi]!="L";++Fi);for(var Yi=Ia;Yi<Fi;)if(ft.test(Ut[Yi])){Ia<Yi&&(Gi.splice(eo,0,new ht(1,Ia,Yi)),eo+=to);var So=Yi;for(++Yi;Yi<Fi&&ft.test(Ut[Yi]);++Yi);Gi.splice(eo,0,new ht(2,So,Yi)),eo+=to,Ia=Yi}else++Yi;Ia<Fi&&Gi.splice(eo,0,new ht(1,Ia,Fi))}return St=="ltr"&&(Gi[0].level==1&&(Sa=vt.match(/^\s+/))&&(Gi[0].from=Sa[0].length,Gi.unshift(new ht(0,0,Sa[0].length))),st(Gi).level==1&&(Sa=vt.match(/\s+$/))&&(st(Gi).to-=Sa[0].length,Gi.push(new ht(0,Ht-Sa[0].length,Ht)))),St=="rtl"?Gi.reverse():Gi}}();function $e(a,b){var ae=a.order;return ae==null&&(ae=a.order=Be(a.text,b)),ae}var Le=[],mt=function(a,b,ae){if(a.addEventListener)a.addEventListener(b,ae,!1);else if(a.attachEvent)a.attachEvent("on"+b,ae);else{var re=a._handlers||(a._handlers={});re[b]=(re[b]||Le).concat(ae)}};function gt(a,b){return a._handlers&&a._handlers[b]||Le}function wt(a,b,ae){if(a.removeEventListener)a.removeEventListener(b,ae,!1);else if(a.detachEvent)a.detachEvent("on"+b,ae);else{var re=a._handlers,de=re&&re[b];if(de){var Fe=it(de,ae);Fe>-1&&(re[b]=de.slice(0,Fe).concat(de.slice(Fe+1)))}}}function bt(a,b){var ae=gt(a,b);if(ae.length)for(var re=Array.prototype.slice.call(arguments,2),de=0;de<ae.length;++de)ae[de].apply(null,re)}function yt(a,b,ae){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),bt(a,ae||b.type,a,b),Kt(b)||b.codemirrorIgnore}function Et(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ae=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),re=0;re<b.length;++re)it(ae,b[re])==-1&&ae.push(b[re])}function kt(a,b){return gt(a,b).length>0}function jt(a){a.prototype.on=function(b,ae){mt(this,b,ae)},a.prototype.off=function(b,ae){wt(this,b,ae)}}function It(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function vr(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Kt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Pr(a){It(a),vr(a)}function qt(a){return a.target||a.srcElement}function zr(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),fe&&a.ctrlKey&&b==1&&(b=3),b}var Vr=function(){if(be&&x<9)return!1;var a=ye("div");return"draggable"in a||"dragDrop"in a}(),Xr;function pn(a){if(Xr==null){var b=ye("span","\u200B");ce(a,ye("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Xr=b.offsetWidth<=1&&b.offsetHeight>2&&!(be&&x<8))}var ae=Xr?ye("span","\u200B"):ye("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ae.setAttribute("cm-text",""),ae}var nn;function Mr(a){if(nn!=null)return nn;var b=ce(a,document.createTextNode("A\u062EA")),ae=De(b,0,1).getBoundingClientRect(),re=De(b,1,2).getBoundingClientRect();return Ee(a),!ae||ae.left==ae.right?!1:nn=re.right-ae.right<3}var fn=`
b`.split(/\n/).length!=3?function(a){for(var b=0,ae=[],re=a.length;b<=re;){var de=a.indexOf(`
`,b);de==-1&&(de=a.length);var Fe=a.slice(b,a.charAt(de-1)=="\r"?de-1:de),qe=Fe.indexOf("\r");qe!=-1?(ae.push(Fe.slice(0,qe)),b+=qe+1):(ae.push(Fe),b=de+1)}return ae}:function(a){return a.split(/\r\n?|\n/)},dn=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},Lr=function(){var a=ye("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Ir=null;function Mt(a){if(Ir!=null)return Ir;var b=ce(a,ye("span","x")),ae=b.getBoundingClientRect(),re=De(b,0,1).getBoundingClientRect();return Ir=Math.abs(ae.left-re.left)>1}var Lt={},At={};function $t(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),Lt[a]=b}function cr(a,b){At[a]=b}function mr(a){if(typeof a=="string"&&At.hasOwnProperty(a))a=At[a];else if(a&&typeof a.name=="string"&&At.hasOwnProperty(a.name)){var b=At[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 mr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return mr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Sr(a,b){b=mr(b);var ae=Lt[b.name];if(!ae)return Sr(a,"text/plain");var re=ae(a,b);if(Tr.hasOwnProperty(b.name)){var de=Tr[b.name];for(var Fe in de)de.hasOwnProperty(Fe)&&(re.hasOwnProperty(Fe)&&(re["_"+Fe]=re[Fe]),re[Fe]=de[Fe])}if(re.name=b.name,b.helperType&&(re.helperType=b.helperType),b.modeProps)for(var qe in b.modeProps)re[qe]=b.modeProps[qe];return re}var Tr={};function br(a,b){var ae=Tr.hasOwnProperty(a)?Tr[a]:Tr[a]={};ut(b,ae)}function Rr(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ae={};for(var re in b){var de=b[re];de instanceof Array&&(de=de.concat([])),ae[re]=de}return ae}function Ur(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 Kr(a,b,ae){return a.startState?a.startState(b,ae):!0}var sr=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};sr.prototype.eol=function(){return this.pos>=this.string.length},sr.prototype.sol=function(){return this.pos==this.lineStart},sr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},sr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},sr.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},sr.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},sr.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},sr.prototype.skipToEnd=function(){this.pos=this.string.length},sr.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},sr.prototype.backUp=function(a){this.pos-=a},sr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ie(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ie(this.string,this.lineStart,this.tabSize):0)},sr.prototype.indentation=function(){return Ie(this.string,null,this.tabSize)-(this.lineStart?Ie(this.string,this.lineStart,this.tabSize):0)},sr.prototype.match=function(a,b,ae){if(typeof a=="string"){var re=function(qe){return ae?qe.toLowerCase():qe},de=this.string.substr(this.pos,a.length);if(re(de)==re(a))return b!==!1&&(this.pos+=a.length),!0}else{var Fe=this.string.slice(this.pos).match(a);return Fe&&Fe.index>0?null:(Fe&&b!==!1&&(this.pos+=Fe[0].length),Fe)}},sr.prototype.current=function(){return this.string.slice(this.start,this.pos)},sr.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},sr.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},sr.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Bt(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 re=0;;++re){var de=ae.children[re],Fe=de.chunkSize();if(b<Fe){ae=de;break}b-=Fe}return ae.lines[b]}function Wt(a,b,ae){var re=[],de=b.line;return a.iter(b.line,ae.line+1,function(Fe){var qe=Fe.text;de==ae.line&&(qe=qe.slice(0,ae.ch)),de==b.line&&(qe=qe.slice(b.ch)),re.push(qe),++de}),re}function Gr(a,b,ae){var re=[];return a.iter(b,ae,function(de){re.push(de.text)}),re}function on(a,b){var ae=b-a.height;if(ae)for(var re=a;re;re=re.parent)re.height+=ae}function Tt(a){if(a.parent==null)return null;for(var b=a.parent,ae=it(b.lines,a),re=b.parent;re;b=re,re=re.parent)for(var de=0;re.children[de]!=b;++de)ae+=re.children[de].chunkSize();return ae+b.first}function _t(a,b){var ae=a.first;e:do{for(var re=0;re<a.children.length;++re){var de=a.children[re],Fe=de.height;if(b<Fe){a=de;continue e}b-=Fe,ae+=de.chunkSize()}return ae}while(!a.lines);for(var qe=0;qe<a.lines.length;++qe){var ft=a.lines[qe],ht=ft.height;if(b<ht)break;b-=ht}return ae+qe}function dr(a,b){return b>=a.first&&b<a.first+a.size}function Qt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function Ot(a,b,ae){if(ae===void 0&&(ae=null),!(this instanceof Ot))return new Ot(a,b,ae);this.line=a,this.ch=b,this.sticky=ae}function rr(a,b){return a.line-b.line||a.ch-b.ch}function wr(a,b){return a.sticky==b.sticky&&rr(a,b)==0}function gr(a){return Ot(a.line,a.ch)}function ar(a,b){return rr(a,b)<0?b:a}function pr(a,b){return rr(a,b)<0?a:b}function Cr(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function ir(a,b){if(b.line<a.first)return Ot(a.first,0);var ae=a.first+a.size-1;return b.line>ae?Ot(ae,Bt(a,ae).text.length):Yt(b,Bt(a,b.line).text.length)}function Yt(a,b){var ae=a.ch;return ae==null||ae>b?Ot(a.line,b):ae<0?Ot(a.line,0):a}function kr(a,b){for(var ae=[],re=0;re<b.length;re++)ae[re]=ir(a,b[re]);return ae}var Zr=function(a,b){this.state=a,this.lookAhead=b},en=function(a,b,ae,re){this.state=b,this.doc=a,this.line=ae,this.maxLookAhead=re||0,this.baseTokens=null,this.baseTokenPos=1};en.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},en.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}},en.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},en.fromSaved=function(a,b,ae){return b instanceof Zr?new en(a,Rr(a.mode,b.state),ae,b.lookAhead):new en(a,Rr(a.mode,b),ae)},en.prototype.save=function(a){var b=a!==!1?Rr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Zr(b,this.maxLookAhead):b};function an(a,b,ae,re){var de=[a.state.modeGen],Fe={};Fn(a,b.text,a.doc.mode,ae,function(vt,St){return de.push(vt,St)},Fe,re);for(var qe=ae.state,ft=function(vt){ae.baseTokens=de;var St=a.state.overlays[vt],Dt=1,Ht=0;ae.state=!0,Fn(a,b.text,St.mode,ae,function(Ut,hr){for(var Ar=Dt;Ht<Ut;){var Hr=de[Dt];Hr>Ut&&de.splice(Dt,1,Ut,de[Dt+1],Hr),Dt+=2,Ht=Math.min(Ut,Hr)}if(hr)if(St.opaque)de.splice(Ar,Dt-Ar,Ut,"overlay "+hr),Dt=Ar+2;else for(;Ar<Dt;Ar+=2){var Qr=de[Ar+1];de[Ar+1]=(Qr?Qr+" ":"")+"overlay "+hr}},Fe),ae.state=qe,ae.baseTokens=null,ae.baseTokenPos=1},ht=0;ht<a.state.overlays.length;++ht)ft(ht);return{styles:de,classes:Fe.bgClass||Fe.textClass?Fe:null}}function kn(a,b,ae){if(!b.styles||b.styles[0]!=a.state.modeGen){var re=Pn(a,Tt(b)),de=b.text.length>a.options.maxHighlightLength&&Rr(a.doc.mode,re.state),Fe=an(a,b,re);de&&(re.state=de),b.stateAfter=re.save(!de),b.styles=Fe.styles,Fe.classes?b.styleClasses=Fe.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 Pn(a,b,ae){var re=a.doc,de=a.display;if(!re.mode.startState)return new en(re,!0,b);var Fe=Jn(a,b,ae),qe=Fe>re.first&&Bt(re,Fe-1).stateAfter,ft=qe?en.fromSaved(re,qe,Fe):new en(re,Kr(re.mode),Fe);return re.iter(Fe,b,function(ht){tn(a,ht.text,ft);var vt=ft.line;ht.stateAfter=vt==b-1||vt%5==0||vt>=de.viewFrom&&vt<de.viewTo?ft.save():null,ft.nextLine()}),ae&&(re.modeFrontier=ft.line),ft}function tn(a,b,ae,re){var de=a.doc.mode,Fe=new sr(b,a.options.tabSize,ae);for(Fe.start=Fe.pos=re||0,b==""&&Nr(de,ae.state);!Fe.eol();)Wr(de,Fe,ae.state),Fe.start=Fe.pos}function Nr(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ae=Ur(a,b);if(ae.mode.blankLine)return ae.mode.blankLine(ae.state)}}function Wr(a,b,ae,re){for(var de=0;de<10;de++){re&&(re[0]=Ur(a,ae).mode);var Fe=a.token(b,ae);if(b.pos>b.start)return Fe}throw new Error("Mode "+a.name+" failed to advance stream.")}var _r=function(a,b,ae){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ae};function An(a,b,ae,re){var de=a.doc,Fe=de.mode,qe;b=ir(de,b);var ft=Bt(de,b.line),ht=Pn(a,b.line,ae),vt=new sr(ft.text,a.options.tabSize,ht),St;for(re&&(St=[]);(re||vt.pos<b.ch)&&!vt.eol();)vt.start=vt.pos,qe=Wr(Fe,vt,ht.state),re&&St.push(new _r(vt,qe,Rr(de.mode,ht.state)));return re?St:new _r(vt,qe,ht.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 re=ae[1]?"bgClass":"textClass";b[re]==null?b[re]=ae[2]:new RegExp("(?:^|\\s)"+ae[2]+"(?:$|\\s)").test(b[re])||(b[re]+=" "+ae[2])}return a}function Fn(a,b,ae,re,de,Fe,qe){var ft=ae.flattenSpans;ft==null&&(ft=a.options.flattenSpans);var ht=0,vt=null,St=new sr(b,a.options.tabSize,re),Dt,Ht=a.options.addModeClass&&[null];for(b==""&&Hn(Nr(ae,re.state),Fe);!St.eol();){if(St.pos>a.options.maxHighlightLength?(ft=!1,qe&&tn(a,b,re,St.pos),St.pos=b.length,Dt=null):Dt=Hn(Wr(ae,St,re.state,Ht),Fe),Ht){var Ut=Ht[0].name;Ut&&(Dt="m-"+(Dt?Ut+" "+Dt:Ut))}if(!ft||vt!=Dt){for(;ht<St.start;)ht=Math.min(St.start,ht+5e3),de(ht,vt);vt=Dt}St.start=St.pos}for(;ht<St.pos;){var hr=Math.min(St.pos,ht+5e3);de(hr,vt),ht=hr}}function Jn(a,b,ae){for(var re,de,Fe=a.doc,qe=ae?-1:b-(a.doc.mode.innerMode?1e3:100),ft=b;ft>qe;--ft){if(ft<=Fe.first)return Fe.first;var ht=Bt(Fe,ft-1),vt=ht.stateAfter;if(vt&&(!ae||ft+(vt instanceof Zr?vt.lookAhead:0)<=Fe.modeFrontier))return ft;var St=Ie(ht.text,null,a.options.tabSize);(de==null||re>St)&&(de=ft-1,re=St)}return de}function zn(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ae=a.first,re=b-1;re>ae;re--){var de=Bt(a,re).stateAfter;if(de&&(!(de instanceof Zr)||re+de.lookAhead<b)){ae=re+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ae)}}var jr=!1,Fr=!1;function Er(){jr=!0}function Yr(){Fr=!0}function Or(a,b,ae){this.marker=a,this.from=b,this.to=ae}function qr(a,b){if(a)for(var ae=0;ae<a.length;++ae){var re=a[ae];if(re.marker==b)return re}}function yn(a,b){for(var ae,re=0;re<a.length;++re)a[re]!=b&&(ae||(ae=[])).push(a[re]);return ae}function Rn(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function jn(a,b,ae){var re;if(a)for(var de=0;de<a.length;++de){var Fe=a[de],qe=Fe.marker,ft=Fe.from==null||(qe.inclusiveLeft?Fe.from<=b:Fe.from<b);if(ft||Fe.from==b&&qe.type=="bookmark"&&(!ae||!Fe.marker.insertLeft)){var ht=Fe.to==null||(qe.inclusiveRight?Fe.to>=b:Fe.to>b);(re||(re=[])).push(new Or(qe,Fe.from,ht?null:Fe.to))}}return re}function Bn(a,b,ae){var re;if(a)for(var de=0;de<a.length;++de){var Fe=a[de],qe=Fe.marker,ft=Fe.to==null||(qe.inclusiveRight?Fe.to>=b:Fe.to>b);if(ft||Fe.from==b&&qe.type=="bookmark"&&(!ae||Fe.marker.insertLeft)){var ht=Fe.from==null||(qe.inclusiveLeft?Fe.from<=b:Fe.from<b);(re||(re=[])).push(new Or(qe,ht?null:Fe.from-b,Fe.to==null?null:Fe.to-b))}}return re}function ri(a,b){if(b.full)return null;var ae=dr(a,b.from.line)&&Bt(a,b.from.line).markedSpans,re=dr(a,b.to.line)&&Bt(a,b.to.line).markedSpans;if(!ae&&!re)return null;var de=b.from.ch,Fe=b.to.ch,qe=rr(b.from,b.to)==0,ft=jn(ae,de,qe),ht=Bn(re,Fe,qe),vt=b.text.length==1,St=st(b.text).length+(vt?de:0);if(ft)for(var Dt=0;Dt<ft.length;++Dt){var Ht=ft[Dt];if(Ht.to==null){var Ut=qr(ht,Ht.marker);Ut?vt&&(Ht.to=Ut.to==null?null:Ut.to+St):Ht.to=de}}if(ht)for(var hr=0;hr<ht.length;++hr){var Ar=ht[hr];if(Ar.to!=null&&(Ar.to+=St),Ar.from==null){var Hr=qr(ft,Ar.marker);Hr||(Ar.from=St,vt&&(ft||(ft=[])).push(Ar))}else Ar.from+=St,vt&&(ft||(ft=[])).push(Ar)}ft&&(ft=xt(ft)),ht&&ht!=ft&&(ht=xt(ht));var Qr=[ft];if(!vt){var ln=b.text.length-2,$r;if(ln>0&&ft)for(var vn=0;vn<ft.length;++vn)ft[vn].to==null&&($r||($r=[])).push(new Or(ft[vn].marker,null,null));for(var In=0;In<ln;++In)Qr.push($r);Qr.push(ht)}return Qr}function xt(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 Nt(a,b,ae){var re=null;if(a.iter(b.line,ae.line+1,function(Ut){if(Ut.markedSpans)for(var hr=0;hr<Ut.markedSpans.length;++hr){var Ar=Ut.markedSpans[hr].marker;Ar.readOnly&&(!re||it(re,Ar)==-1)&&(re||(re=[])).push(Ar)}}),!re)return null;for(var de=[{from:b,to:ae}],Fe=0;Fe<re.length;++Fe)for(var qe=re[Fe],ft=qe.find(0),ht=0;ht<de.length;++ht){var vt=de[ht];if(!(rr(vt.to,ft.from)<0||rr(vt.from,ft.to)>0)){var St=[ht,1],Dt=rr(vt.from,ft.from),Ht=rr(vt.to,ft.to);(Dt<0||!qe.inclusiveLeft&&!Dt)&&St.push({from:vt.from,to:ft.from}),(Ht>0||!qe.inclusiveRight&&!Ht)&&St.push({from:ft.to,to:vt.to}),de.splice.apply(de,St),ht+=St.length-3}}return de}function Rt(a){var b=a.markedSpans;if(b){for(var ae=0;ae<b.length;++ae)b[ae].marker.detachLine(a);a.markedSpans=null}}function Ft(a,b){if(b){for(var ae=0;ae<b.length;++ae)b[ae].marker.attachLine(a);a.markedSpans=b}}function Jt(a){return a.inclusiveLeft?-1:0}function Gt(a){return a.inclusiveRight?1:0}function fr(a,b){var ae=a.lines.length-b.lines.length;if(ae!=0)return ae;var re=a.find(),de=b.find(),Fe=rr(re.from,de.from)||Jt(a)-Jt(b);if(Fe)return-Fe;var qe=rr(re.to,de.to)||Gt(a)-Gt(b);return qe||b.id-a.id}function lr(a,b){var ae=Fr&&a.markedSpans,re;if(ae)for(var de=void 0,Fe=0;Fe<ae.length;++Fe)de=ae[Fe],de.marker.collapsed&&(b?de.from:de.to)==null&&(!re||fr(re,de.marker)<0)&&(re=de.marker);return re}function tr(a){return lr(a,!0)}function Pt(a){return lr(a,!1)}function zt(a,b){var ae=Fr&&a.markedSpans,re;if(ae)for(var de=0;de<ae.length;++de){var Fe=ae[de];Fe.marker.collapsed&&(Fe.from==null||Fe.from<b)&&(Fe.to==null||Fe.to>b)&&(!re||fr(re,Fe.marker)<0)&&(re=Fe.marker)}return re}function Xt(a,b,ae,re,de){var Fe=Bt(a,b),qe=Fr&&Fe.markedSpans;if(qe)for(var ft=0;ft<qe.length;++ft){var ht=qe[ft];if(ht.marker.collapsed){var vt=ht.marker.find(0),St=rr(vt.from,ae)||Jt(ht.marker)-Jt(de),Dt=rr(vt.to,re)||Gt(ht.marker)-Gt(de);if(!(St>=0&&Dt<=0||St<=0&&Dt>=0)&&(St<=0&&(ht.marker.inclusiveRight&&de.inclusiveLeft?rr(vt.to,ae)>=0:rr(vt.to,ae)>0)||St>=0&&(ht.marker.inclusiveRight&&de.inclusiveLeft?rr(vt.from,re)<=0:rr(vt.from,re)<0)))return!0}}}function Vt(a){for(var b;b=tr(a);)a=b.find(-1,!0).line;return a}function nr(a){for(var b;b=Pt(a);)a=b.find(1,!0).line;return a}function Dr(a){for(var b,ae;b=Pt(a);)a=b.find(1,!0).line,(ae||(ae=[])).push(a);return ae}function or(a,b){var ae=Bt(a,b),re=Vt(ae);return ae==re?b:Tt(re)}function er(a,b){if(b>a.lastLine())return b;var ae=Bt(a,b),re;if(!yr(a,ae))return b;for(;re=Pt(ae);)ae=re.find(1,!0).line;return Tt(ae)+1}function yr(a,b){var ae=Fr&&b.markedSpans;if(ae){for(var re=void 0,de=0;de<ae.length;++de)if(re=ae[de],!!re.marker.collapsed){if(re.from==null)return!0;if(!re.marker.widgetNode&&re.from==0&&re.marker.inclusiveLeft&&xr(a,b,re))return!0}}}function xr(a,b,ae){if(ae.to==null){var re=ae.marker.find(1,!0);return xr(a,re.line,qr(re.line.markedSpans,ae.marker))}if(ae.marker.inclusiveRight&&ae.to==b.text.length)return!0;for(var de=void 0,Fe=0;Fe<b.markedSpans.length;++Fe)if(de=b.markedSpans[Fe],de.marker.collapsed&&!de.marker.widgetNode&&de.from==ae.to&&(de.to==null||de.to!=ae.from)&&(de.marker.inclusiveLeft||ae.marker.inclusiveRight)&&xr(a,b,de))return!0}function Br(a){a=Vt(a);for(var b=0,ae=a.parent,re=0;re<ae.lines.length;++re){var de=ae.lines[re];if(de==a)break;b+=de.height}for(var Fe=ae.parent;Fe;ae=Fe,Fe=ae.parent)for(var qe=0;qe<Fe.children.length;++qe){var ft=Fe.children[qe];if(ft==ae)break;b+=ft.height}return b}function sn(a){if(a.height==0)return 0;for(var b=a.text.length,ae,re=a;ae=tr(re);){var de=ae.find(0,!0);re=de.from.line,b+=de.from.ch-de.to.ch}for(re=a;ae=Pt(re);){var Fe=ae.find(0,!0);b-=re.text.length-Fe.from.ch,re=Fe.to.line,b+=re.text.length-Fe.to.ch}return b}function Jr(a){var b=a.display,ae=a.doc;b.maxLine=Bt(ae,ae.first),b.maxLineLength=sn(b.maxLine),b.maxLineChanged=!0,ae.iter(function(re){var de=sn(re);de>b.maxLineLength&&(b.maxLineLength=de,b.maxLine=re)})}var wn=function(a,b,ae){this.text=a,Ft(this,b),this.height=ae?ae(this):1};wn.prototype.lineNo=function(){return Tt(this)},jt(wn);function mn(a,b,ae,re){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Rt(a),Ft(a,ae);var de=re?re(a):1;de!=a.height&&on(a,de)}function bn(a){a.parent=null,Rt(a)}var En={},xn={};function Wn(a,b){if(!a||/^\s*$/.test(a))return null;var ae=b.addModeClass?xn:En;return ae[a]||(ae[a]=a.replace(/\S+/g,"cm-$&"))}function Tn(a,b){var ae=we("span",null,null,z?"padding-right: .1px":null),re={pre:we("pre",[ae],"CodeMirror-line"),content:ae,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var de=0;de<=(b.rest?b.rest.length:0);de++){var Fe=de?b.rest[de-1]:b.line,qe=void 0;re.pos=0,re.addToken=gn,Mr(a.display.measure)&&(qe=$e(Fe,a.doc.direction))&&(re.addToken=hn(re.addToken,qe)),re.map=[];var ft=b!=a.display.externalMeasured&&Tt(Fe);un(Fe,re,kn(a,Fe,ft)),Fe.styleClasses&&(Fe.styleClasses.bgClass&&(re.bgClass=Ze(Fe.styleClasses.bgClass,re.bgClass||"")),Fe.styleClasses.textClass&&(re.textClass=Ze(Fe.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(pn(a.display.measure))),de==0?(b.measure.map=re.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(re.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(z){var ht=re.content.lastChild;(/\bcm-tab\b/.test(ht.className)||ht.querySelector&&ht.querySelector(".cm-tab"))&&(re.content.className="cm-tab-wrap-hack")}return bt(a,"renderLine",a,b.line,re.pre),re.pre.className&&(re.textClass=Ze(re.pre.className,re.textClass||"")),re}function Nn(a){var b=ye("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function gn(a,b,ae,re,de,Fe,qe){if(b){var ft=a.splitSpaces?rn(b,a.trailingSpace):b,ht=a.cm.state.specialChars,vt=!1,St;if(!ht.test(b))a.col+=b.length,St=document.createTextNode(ft),a.map.push(a.pos,a.pos+b.length,St),be&&x<9&&(vt=!0),a.pos+=b.length;else{St=document.createDocumentFragment();for(var Dt=0;;){ht.lastIndex=Dt;var Ht=ht.exec(b),Ut=Ht?Ht.index-Dt:b.length-Dt;if(Ut){var hr=document.createTextNode(ft.slice(Dt,Dt+Ut));be&&x<9?St.appendChild(ye("span",[hr])):St.appendChild(hr),a.map.push(a.pos,a.pos+Ut,hr),a.col+=Ut,a.pos+=Ut}if(!Ht)break;Dt+=Ut+1;var Ar=void 0;if(Ht[0]==" "){var Hr=a.cm.options.tabSize,Qr=Hr-a.col%Hr;Ar=St.appendChild(ye("span",lt(Qr),"cm-tab")),Ar.setAttribute("role","presentation"),Ar.setAttribute("cm-text"," "),a.col+=Qr}else Ht[0]=="\r"||Ht[0]==`
`?(Ar=St.appendChild(ye("span",Ht[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ar.setAttribute("cm-text",Ht[0]),a.col+=1):(Ar=a.cm.options.specialCharPlaceholder(Ht[0]),Ar.setAttribute("cm-text",Ht[0]),be&&x<9?St.appendChild(ye("span",[Ar])):St.appendChild(Ar),a.col+=1);a.map.push(a.pos,a.pos+1,Ar),a.pos++}}if(a.trailingSpace=ft.charCodeAt(b.length-1)==32,ae||re||de||vt||Fe||qe){var ln=ae||"";re&&(ln+=re),de&&(ln+=de);var $r=ye("span",[St],ln,Fe);if(qe)for(var vn in qe)qe.hasOwnProperty(vn)&&vn!="style"&&vn!="class"&&$r.setAttribute(vn,qe[vn]);return a.content.appendChild($r)}a.content.appendChild(St)}}function rn(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ae=b,re="",de=0;de<a.length;de++){var Fe=a.charAt(de);Fe==" "&&ae&&(de==a.length-1||a.charCodeAt(de+1)==32)&&(Fe="\xA0"),re+=Fe,ae=Fe==" "}return re}function hn(a,b){return function(ae,re,de,Fe,qe,ft,ht){de=de?de+" cm-force-border":"cm-force-border";for(var vt=ae.pos,St=vt+re.length;;){for(var Dt=void 0,Ht=0;Ht<b.length&&(Dt=b[Ht],!(Dt.to>vt&&Dt.from<=vt));Ht++);if(Dt.to>=St)return a(ae,re,de,Fe,qe,ft,ht);a(ae,re.slice(0,Dt.to-vt),de,Fe,null,ft,ht),Fe=null,re=re.slice(Dt.to-vt),vt=Dt.to}}}function Sn(a,b,ae,re){var de=!re&&ae.widgetNode;de&&a.map.push(a.pos,a.pos+b,de),!re&&a.cm.display.input.needsContentAttribute&&(de||(de=a.content.appendChild(document.createElement("span"))),de.setAttribute("cm-marker",ae.id)),de&&(a.cm.display.input.setUneditable(de),a.content.appendChild(de)),a.pos+=b,a.trailingSpace=!1}function un(a,b,ae){var re=a.markedSpans,de=a.text,Fe=0;if(!re){for(var qe=1;qe<ae.length;qe+=2)b.addToken(b,de.slice(Fe,Fe=ae[qe]),Wn(ae[qe+1],b.cm.options));return}for(var ft=de.length,ht=0,vt=1,St="",Dt,Ht,Ut=0,hr,Ar,Hr,Qr,ln;;){if(Ut==ht){hr=Ar=Hr=Ht="",ln=null,Qr=null,Ut=1/0;for(var $r=[],vn=void 0,In=0;In<re.length;++In){var Cn=re[In],Yn=Cn.marker;if(Yn.type=="bookmark"&&Cn.from==ht&&Yn.widgetNode)$r.push(Yn);else if(Cn.from<=ht&&(Cn.to==null||Cn.to>ht||Yn.collapsed&&Cn.to==ht&&Cn.from==ht)){if(Cn.to!=null&&Cn.to!=ht&&Ut>Cn.to&&(Ut=Cn.to,Ar=""),Yn.className&&(hr+=" "+Yn.className),Yn.css&&(Ht=(Ht?Ht+";":"")+Yn.css),Yn.startStyle&&Cn.from==ht&&(Hr+=" "+Yn.startStyle),Yn.endStyle&&Cn.to==Ut&&(vn||(vn=[])).push(Yn.endStyle,Cn.to),Yn.title&&((ln||(ln={})).title=Yn.title),Yn.attributes)for(var ui in Yn.attributes)(ln||(ln={}))[ui]=Yn.attributes[ui];Yn.collapsed&&(!Qr||fr(Qr.marker,Yn)<0)&&(Qr=Cn)}else Cn.from>ht&&Ut>Cn.from&&(Ut=Cn.from)}if(vn)for(var Bi=0;Bi<vn.length;Bi+=2)vn[Bi+1]==Ut&&(Ar+=" "+vn[Bi]);if(!Qr||Qr.from==ht)for(var xi=0;xi<$r.length;++xi)Sn(b,0,$r[xi]);if(Qr&&(Qr.from||0)==ht){if(Sn(b,(Qr.to==null?ft+1:Qr.to)-ht,Qr.marker,Qr.from==null),Qr.to==null)return;Qr.to==ht&&(Qr=!1)}}if(ht>=ft)break;for(var oa=Math.min(ft,Ut);;){if(St){var ea=ht+St.length;if(!Qr){var ji=ea>oa?St.slice(0,oa-ht):St;b.addToken(b,ji,Dt?Dt+hr:hr,Hr,ht+ji.length==Ut?Ar:"",Ht,ln)}if(ea>=oa){St=St.slice(oa-ht),ht=oa;break}ht=ea,Hr=""}St=de.slice(Fe,Fe=ae[vt++]),Dt=Wn(ae[vt++],b.cm.options)}}}function Mn(a,b,ae){this.line=b,this.rest=Dr(b),this.size=this.rest?Tt(st(this.rest))-ae+1:1,this.node=this.text=null,this.hidden=yr(a,b)}function Ln(a,b,ae){for(var re=[],de,Fe=b;Fe<ae;Fe=de){var qe=new Mn(a.doc,Bt(a.doc,Fe),Fe);de=Fe+qe.size,re.push(qe)}return re}var $n=null;function _i(a){$n?$n.ops.push(a):a.ownsGroup=$n={ops:[a],delayedCallbacks:[]}}function Si(a){var b=a.delayedCallbacks,ae=0;do{for(;ae<b.length;ae++)b[ae].call(null);for(var re=0;re<a.ops.length;re++){var de=a.ops[re];if(de.cursorActivityHandlers)for(;de.cursorActivityCalled<de.cursorActivityHandlers.length;)de.cursorActivityHandlers[de.cursorActivityCalled++].call(null,de.cm)}}while(ae<b.length)}function yi(a,b){var ae=a.ownsGroup;if(ae)try{Si(ae)}finally{$n=null,b(ae)}}var Di=null;function qn(a,b){var ae=gt(a,b);if(ae.length){var re=Array.prototype.slice.call(arguments,2),de;$n?de=$n.delayedCallbacks:Di?de=Di:(de=Di=[],setTimeout(Qn,0));for(var Fe=function(ft){de.push(function(){return ae[ft].apply(null,re)})},qe=0;qe<ae.length;++qe)Fe(qe)}}function Qn(){var a=Di;Di=null;for(var b=0;b<a.length;++b)a[b]()}function ti(a,b,ae,re){for(var de=0;de<b.changes.length;de++){var Fe=b.changes[de];Fe=="text"?oi(a,b):Fe=="gutter"?_n(a,b,ae,re):Fe=="class"?cn(a,b):Fe=="widget"&&Dn(a,b,re)}b.changes=null}function ki(a){return a.node==a.text&&(a.node=ye("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),be&&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 re=ki(b);b.background=re.insertBefore(ye("div",null,ae),re.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):Tn(a,b)}function oi(a,b){var ae=b.text.className,re=li(a,b);b.text==b.node&&(b.node=re.pre),b.text.parentNode.replaceChild(re.pre,b.text),b.text=re.pre,re.bgClass!=b.bgClass||re.textClass!=b.textClass?(b.bgClass=re.bgClass,b.textClass=re.textClass,cn(a,b)):ae&&(b.text.className=ae)}function cn(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 _n(a,b,ae,re){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 de=ki(b);b.gutterBackground=ye("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),de.insertBefore(b.gutterBackground,b.text)}var Fe=b.line.gutterMarkers;if(a.options.lineNumbers||Fe){var qe=ki(b),ft=b.gutter=ye("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ft),qe.insertBefore(ft,b.text),b.line.gutterClass&&(ft.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!Fe||!Fe["CodeMirror-linenumbers"])&&(b.lineNumber=ft.appendChild(ye("div",Qt(a.options,ae),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),Fe)for(var ht=0;ht<a.display.gutterSpecs.length;++ht){var vt=a.display.gutterSpecs[ht].className,St=Fe.hasOwnProperty(vt)&&Fe[vt];St&&ft.appendChild(ye("div",[St],"CodeMirror-gutter-elt","left: "+re.gutterLeft[vt]+"px; width: "+re.gutterWidth[vt]+"px"))}}}function Dn(a,b,ae){b.alignable&&(b.alignable=null);for(var re=Ce("CodeMirror-linewidget"),de=b.node.firstChild,Fe=void 0;de;de=Fe)Fe=de.nextSibling,re.test(de.className)&&b.node.removeChild(de);Xn(a,b,ae)}function On(a,b,ae,re){var de=li(a,b);return b.text=b.node=de.pre,de.bgClass&&(b.bgClass=de.bgClass),de.textClass&&(b.textClass=de.textClass),cn(a,b),_n(a,b,ae,re),Xn(a,b,re),b.node}function Xn(a,b,ae){if(ei(a,b.line,b,ae,!0),b.rest)for(var re=0;re<b.rest.length;re++)ei(a,b.rest[re],b,ae,!1)}function ei(a,b,ae,re,de){if(b.widgets)for(var Fe=ki(ae),qe=0,ft=b.widgets;qe<ft.length;++qe){var ht=ft[qe],vt=ye("div",[ht.node],"CodeMirror-linewidget"+(ht.className?" "+ht.className:""));ht.handleMouseEvents||vt.setAttribute("cm-ignore-events","true"),Hi(ht,vt,ae,re),a.display.input.setUneditable(vt),de&&ht.above?Fe.insertBefore(vt,ae.gutter||ae.text):Fe.appendChild(vt),qn(ht,"redraw")}}function Hi(a,b,ae,re){if(a.noHScroll){(ae.alignable||(ae.alignable=[])).push(b);var de=re.wrapperWidth;b.style.left=re.fixedPos+"px",a.coverGutter||(de-=re.gutterTotalWidth,b.style.paddingLeft=re.gutterTotalWidth+"px"),b.style.width=de+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-re.gutterTotalWidth+"px"))}function fi(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!Re(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;"),ce(b.display.measure,ye("div",[a.node],null,ae))}return a.height=a.node.parentNode.offsetHeight}function ci(a,b){for(var ae=qt(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 Un(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=ce(a.measure,ye("pre","x","CodeMirror-line-like")),ae=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,re={left:parseInt(ae.paddingLeft),right:parseInt(ae.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(a.cachedPaddingH=re),re}function ni(a){return at-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 Ji(a,b,ae){var re=a.options.lineWrapping,de=re&&sa(a);if(!b.measure.heights||re&&b.measure.width!=de){var Fe=b.measure.heights=[];if(re){b.measure.width=de;for(var qe=b.text.firstChild.getClientRects(),ft=0;ft<qe.length-1;ft++){var ht=qe[ft],vt=qe[ft+1];Math.abs(ht.bottom-vt.bottom)>2&&Fe.push((ht.bottom+vt.top)/2-ae.top)}}Fe.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 re=0;re<a.rest.length;re++)if(a.rest[re]==b)return{map:a.measure.maps[re],cache:a.measure.caches[re]};for(var de=0;de<a.rest.length;de++)if(Tt(a.rest[de])>ae)return{map:a.measure.maps[de],cache:a.measure.caches[de],before:!0}}function ro(a,b){b=Vt(b);var ae=Tt(b),re=a.display.externalMeasured=new Mn(a.doc,b,ae);re.lineN=ae;var de=re.built=Tn(a,re);return re.text=de.pre,ce(a.display.lineMeasure,de.pre),re}function Ya(a,b,ae,re){return na(a,ma(a,b),ae,re)}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=Tt(b),re=pa(a,ae);re&&!re.text?re=null:re&&re.changes&&(ti(a,re,ae,ua(a)),a.curOp.forceUpdate=!0),re||(re=ro(a,b));var de=mi(re,b,ae);return{line:b,view:re,rect:null,map:de.map,cache:de.cache,before:de.before,hasHeights:!1}}function na(a,b,ae,re,de){b.before&&(ae=-1);var Fe=ae+(re||""),qe;return b.cache.hasOwnProperty(Fe)?qe=b.cache[Fe]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(Ji(a,b.view,b.rect),b.hasHeights=!0),qe=ao(a,b,ae,re),qe.bogus||(b.cache[Fe]=qe)),{left:qe.left,right:qe.right,top:de?qe.rtop:qe.top,bottom:de?qe.rbottom:qe.bottom}}var Ea={left:0,right:0,top:0,bottom:0};function no(a,b,ae){for(var re,de,Fe,qe,ft,ht,vt=0;vt<a.length;vt+=3)if(ft=a[vt],ht=a[vt+1],b<ft?(de=0,Fe=1,qe="left"):b<ht?(de=b-ft,Fe=de+1):(vt==a.length-3||b==ht&&a[vt+3]>b)&&(Fe=ht-ft,de=Fe-1,b>=ht&&(qe="right")),de!=null){if(re=a[vt+2],ft==ht&&ae==(re.insertLeft?"left":"right")&&(qe=ae),ae=="left"&&de==0)for(;vt&&a[vt-2]==a[vt-3]&&a[vt-1].insertLeft;)re=a[(vt-=3)+2],qe="left";if(ae=="right"&&de==ht-ft)for(;vt<a.length-3&&a[vt+3]==a[vt+4]&&!a[vt+5].insertLeft;)re=a[(vt+=3)+2],qe="right";break}return{node:re,start:de,end:Fe,collapse:qe,coverStart:ft,coverEnd:ht}}function io(a,b){var ae=Ea;if(b=="left")for(var re=0;re<a.length&&(ae=a[re]).left==ae.right;re++);else for(var de=a.length-1;de>=0&&(ae=a[de]).left==ae.right;de--);return ae}function ao(a,b,ae,re){var de=no(b.map,ae,re),Fe=de.node,qe=de.start,ft=de.end,ht=de.collapse,vt;if(Fe.nodeType==3){for(var St=0;St<4;St++){for(;qe&&Pe(b.line.text.charAt(de.coverStart+qe));)--qe;for(;de.coverStart+ft<de.coverEnd&&Pe(b.line.text.charAt(de.coverStart+ft));)++ft;if(be&&x<9&&qe==0&&ft==de.coverEnd-de.coverStart?vt=Fe.parentNode.getBoundingClientRect():vt=io(De(Fe,qe,ft).getClientRects(),re),vt.left||vt.right||qe==0)break;ft=qe,qe=qe-1,ht="right"}be&&x<11&&(vt=La(a.display.measure,vt))}else{qe>0&&(ht=re="right");var Dt;a.options.lineWrapping&&(Dt=Fe.getClientRects()).length>1?vt=Dt[re=="right"?Dt.length-1:0]:vt=Fe.getBoundingClientRect()}if(be&&x<9&&!qe&&(!vt||!vt.left&&!vt.right)){var Ht=Fe.parentNode.getClientRects()[0];Ht?vt={left:Ht.left,right:Ht.left+Qi(a.display),top:Ht.top,bottom:Ht.bottom}:vt=Ea}for(var Ut=vt.top-b.rect.top,hr=vt.bottom-b.rect.top,Ar=(Ut+hr)/2,Hr=b.view.measure.heights,Qr=0;Qr<Hr.length-1&&!(Ar<Hr[Qr]);Qr++);var ln=Qr?Hr[Qr-1]:0,$r=Hr[Qr],vn={left:(ht=="right"?vt.right:vt.left)-b.rect.left,right:(ht=="left"?vt.left:vt.right)-b.rect.left,top:ln,bottom:$r};return!vt.left&&!vt.right&&(vn.bogus=!0),a.options.singleCursorHeightPerLine||(vn.rtop=Ut,vn.rbottom=hr),vn}function La(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Mt(a))return b;var ae=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ae,right:b.right*ae,top:b.top*re,bottom:b.bottom*re}}function Ja(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,Ee(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Ja(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 Qa(){return oe&&se?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function oo(){return oe&&se?-(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,re,de){if(!de){var Fe=Fa(b);ae.top+=Fe,ae.bottom+=Fe}if(re=="line")return ae;re||(re="local");var qe=Br(b);if(re=="local"?qe+=Un(a.display):qe-=a.display.viewOffset,re=="page"||re=="window"){var ft=a.display.lineSpace.getBoundingClientRect();qe+=ft.top+(re=="window"?0:oo());var ht=ft.left+(re=="window"?0:Qa());ae.left+=ht,ae.right+=ht}return ae.top+=qe,ae.bottom+=qe,ae}function Ta(a,b,ae){if(ae=="div")return b;var re=b.left,de=b.top;if(ae=="page")re-=Qa(),de-=oo();else if(ae=="local"||!ae){var Fe=a.display.sizer.getBoundingClientRect();re+=Fe.left,de+=Fe.top}var qe=a.display.lineSpace.getBoundingClientRect();return{left:re-qe.left,top:de-qe.top}}function Wi(a,b,ae,re,de){return re||(re=Bt(a.doc,b.line)),ka(a,re,Ya(a,re,b.ch,de),ae)}function di(a,b,ae,re,de,Fe){re=re||Bt(a.doc,b.line),de||(de=ma(a,re));function qe(hr,Ar){var Hr=na(a,de,hr,Ar?"right":"left",Fe);return Ar?Hr.left=Hr.right:Hr.right=Hr.left,ka(a,re,Hr,ae)}var ft=$e(re,a.doc.direction),ht=b.ch,vt=b.sticky;if(ht>=re.text.length?(ht=re.text.length,vt="before"):ht<=0&&(ht=0,vt="after"),!ft)return qe(vt=="before"?ht-1:ht,vt=="before");function St(hr,Ar,Hr){var Qr=ft[Ar],ln=Qr.level==1;return qe(Hr?hr-1:hr,ln!=Hr)}var Dt=pe(ft,ht,vt),Ht=Se,Ut=St(ht,Dt,vt=="before");return Ht!=null&&(Ut.other=St(ht,Ht,vt!="before")),Ut}function Vn(a,b){var ae=0;b=ir(a.doc,b),a.options.lineWrapping||(ae=Qi(a.display)*b.ch);var re=Bt(a.doc,b.line),de=Br(re)+Un(a.display);return{left:ae,right:ae,top:de,bottom:de+re.height}}function Zn(a,b,ae,re,de){var Fe=Ot(a,b,ae);return Fe.xRel=de,re&&(Fe.outside=re),Fe}function vi(a,b,ae){var re=a.doc;if(ae+=a.display.viewOffset,ae<0)return Zn(re.first,0,null,-1,-1);var de=_t(re,ae),Fe=re.first+re.size-1;if(de>Fe)return Zn(re.first+re.size-1,Bt(re,Fe).text.length,null,1,1);b<0&&(b=0);for(var qe=Bt(re,de);;){var ft=la(a,qe,de,b,ae),ht=zt(qe,ft.ch+(ft.xRel>0||ft.outside>0?1:0));if(!ht)return ft;var vt=ht.find(1);if(vt.line==de)return vt;qe=Bt(re,de=vt.line)}}function hi(a,b,ae,re){re-=Fa(b);var de=b.text.length,Fe=ot(function(qe){return na(a,ae,qe-1).bottom<=re},de,0);return de=ot(function(qe){return na(a,ae,qe).top>re},Fe,de),{begin:Fe,end:de}}function wi(a,b,ae,re){ae||(ae=ma(a,b));var de=ka(a,b,na(a,ae,re),"line").top;return hi(a,b,ae,de)}function Ti(a,b,ae,re){return a.bottom<=ae?!1:a.top>ae?!0:(re?a.left:a.right)>b}function la(a,b,ae,re,de){de-=Br(b);var Fe=ma(a,b),qe=Fa(b),ft=0,ht=b.text.length,vt=!0,St=$e(b,a.doc.direction);if(St){var Dt=(a.options.lineWrapping?va:ia)(a,b,ae,Fe,St,re,de);vt=Dt.level!=1,ft=vt?Dt.from:Dt.to-1,ht=vt?Dt.to:Dt.from-1}var Ht=null,Ut=null,hr=ot(function(In){var Cn=na(a,Fe,In);return Cn.top+=qe,Cn.bottom+=qe,Ti(Cn,re,de,!1)?(Cn.top<=de&&Cn.left<=re&&(Ht=In,Ut=Cn),!0):!1},ft,ht),Ar,Hr,Qr=!1;if(Ut){var ln=re-Ut.left<Ut.right-re,$r=ln==vt;hr=Ht+($r?0:1),Hr=$r?"after":"before",Ar=ln?Ut.left:Ut.right}else{!vt&&(hr==ht||hr==ft)&&hr++,Hr=hr==0?"after":hr==b.text.length?"before":na(a,Fe,hr-(vt?1:0)).bottom+qe<=de==vt?"after":"before";var vn=di(a,Ot(ae,hr,Hr),"line",b,Fe);Ar=vn.left,Qr=de<vn.top?-1:de>=vn.bottom?1:0}return hr=Ue(b.text,hr,1),Zn(ae,hr,Hr,Qr,re-Ar)}function ia(a,b,ae,re,de,Fe,qe){var ft=ot(function(Dt){var Ht=de[Dt],Ut=Ht.level!=1;return Ti(di(a,Ot(ae,Ut?Ht.to:Ht.from,Ut?"before":"after"),"line",b,re),Fe,qe,!0)},0,de.length-1),ht=de[ft];if(ft>0){var vt=ht.level!=1,St=di(a,Ot(ae,vt?ht.from:ht.to,vt?"after":"before"),"line",b,re);Ti(St,Fe,qe,!0)&&St.top>qe&&(ht=de[ft-1])}return ht}function va(a,b,ae,re,de,Fe,qe){var ft=hi(a,b,re,qe),ht=ft.begin,vt=ft.end;/\s/.test(b.text.charAt(vt-1))&&vt--;for(var St=null,Dt=null,Ht=0;Ht<de.length;Ht++){var Ut=de[Ht];if(!(Ut.from>=vt||Ut.to<=ht)){var hr=Ut.level!=1,Ar=na(a,re,hr?Math.min(vt,Ut.to)-1:Math.max(ht,Ut.from)).right,Hr=Ar<Fe?Fe-Ar+1e9:Ar-Fe;(!St||Dt>Hr)&&(St=Ut,Dt=Hr)}}return St||(St=de[de.length-1]),St.from<ht&&(St={from:ht,to:St.to,level:St.level}),St.to>vt&&(St={from:St.from,to:vt,level:St.level}),St}var pi;function Pi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(pi==null){pi=ye("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)pi.appendChild(document.createTextNode("x")),pi.appendChild(ye("br"));pi.appendChild(document.createTextNode("x"))}ce(a.measure,pi);var ae=pi.offsetHeight/50;return ae>3&&(a.cachedTextHeight=ae),Ee(a.measure),ae||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=ye("span","xxxxxxxxxx"),ae=ye("pre",[b],"CodeMirror-line-like");ce(a.measure,ae);var re=b.getBoundingClientRect(),de=(re.right-re.left)/10;return de>2&&(a.cachedCharWidth=de),de||10}function ua(a){for(var b=a.display,ae={},re={},de=b.gutters.clientLeft,Fe=b.gutters.firstChild,qe=0;Fe;Fe=Fe.nextSibling,++qe){var ft=a.display.gutterSpecs[qe].className;ae[ft]=Fe.offsetLeft+Fe.clientLeft+de,re[ft]=Fe.clientWidth}return{fixedPos:$a(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ae,gutterWidth:re,wrapperWidth:b.wrapper.clientWidth}}function $a(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Eo(a){var b=Pi(a.display),ae=a.options.lineWrapping,re=ae&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(de){if(yr(a.doc,de))return 0;var Fe=0;if(de.widgets)for(var qe=0;qe<de.widgets.length;qe++)de.widgets[qe].height&&(Fe+=de.widgets[qe].height);return ae?Fe+(Math.ceil(de.text.length/re)||1)*b:Fe+b}}function Co(a){var b=a.doc,ae=Eo(a);b.iter(function(re){var de=ae(re);de!=re.height&&on(re,de)})}function wa(a,b,ae,re){var de=a.display;if(!ae&&qt(b).getAttribute("cm-not-content")=="true")return null;var Fe,qe,ft=de.lineSpace.getBoundingClientRect();try{Fe=b.clientX-ft.left,qe=b.clientY-ft.top}catch(Dt){return null}var ht=vi(a,Fe,qe),vt;if(re&&ht.xRel>0&&(vt=Bt(a.doc,ht.line).text).length==ht.ch){var St=Ie(vt,vt.length,a.options.tabSize)-vt.length;ht=Ot(ht.line,Math.max(0,Math.round((Fe-Ki(a.display).left)/Qi(a.display))-St))}return ht}function Aa(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ae=a.display.view,re=0;re<ae.length;re++)if(b-=ae[re].size,b<0)return re}function Ui(a,b,ae,re){b==null&&(b=a.doc.first),ae==null&&(ae=a.doc.first+a.doc.size),re||(re=0);var de=a.display;if(re&&ae<de.viewTo&&(de.updateLineNumbers==null||de.updateLineNumbers>b)&&(de.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=de.viewTo)Fr&&or(a.doc,b)<de.viewTo&&$i(a);else if(ae<=de.viewFrom)Fr&&er(a.doc,ae+re)>de.viewFrom?$i(a):(de.viewFrom+=re,de.viewTo+=re);else if(b<=de.viewFrom&&ae>=de.viewTo)$i(a);else if(b<=de.viewFrom){var Fe=so(a,ae,ae+re,1);Fe?(de.view=de.view.slice(Fe.index),de.viewFrom=Fe.lineN,de.viewTo+=re):$i(a)}else if(ae>=de.viewTo){var qe=so(a,b,b,-1);qe?(de.view=de.view.slice(0,qe.index),de.viewTo=qe.lineN):$i(a)}else{var ft=so(a,b,b,-1),ht=so(a,ae,ae+re,1);ft&&ht?(de.view=de.view.slice(0,ft.index).concat(Ln(a,ft.lineN,ht.lineN)).concat(de.view.slice(ht.index)),de.viewTo+=re):$i(a)}var vt=de.externalMeasured;vt&&(ae<vt.lineN?vt.lineN+=re:b<vt.lineN+vt.size&&(de.externalMeasured=null))}function ca(a,b,ae){a.curOp.viewChanged=!0;var re=a.display,de=a.display.externalMeasured;if(de&&b>=de.lineN&&b<de.lineN+de.size&&(re.externalMeasured=null),!(b<re.viewFrom||b>=re.viewTo)){var Fe=re.view[Aa(a,b)];if(Fe.node!=null){var qe=Fe.changes||(Fe.changes=[]);it(qe,ae)==-1&&qe.push(ae)}}}function $i(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function so(a,b,ae,re){var de=Aa(a,b),Fe,qe=a.display.view;if(!Fr||ae==a.doc.first+a.doc.size)return{index:de,lineN:ae};for(var ft=a.display.viewFrom,ht=0;ht<de;ht++)ft+=qe[ht].size;if(ft!=b){if(re>0){if(de==qe.length-1)return null;Fe=ft+qe[de].size-b,de++}else Fe=ft-b;b+=Fe,ae+=Fe}for(;or(a.doc,ae)!=ae;){if(de==(re<0?0:qe.length-1))return null;ae+=re*qe[de-(re<0?1:0)].size,de+=re}return{index:de,lineN:ae}}function Qo(a,b,ae){var re=a.display,de=re.view;de.length==0||b>=re.viewTo||ae<=re.viewFrom?(re.view=Ln(a,b,ae),re.viewFrom=b):(re.viewFrom>b?re.view=Ln(a,b,re.viewFrom).concat(re.view):re.viewFrom<b&&(re.view=re.view.slice(Aa(a,b))),re.viewFrom=b,re.viewTo<ae?re.view=re.view.concat(Ln(a,re.viewTo,ae)):re.viewTo>ae&&(re.view=re.view.slice(0,Aa(a,ae)))),re.viewTo=ae}function $o(a){for(var b=a.display.view,ae=0,re=0;re<b.length;re++){var de=b[re];!de.hidden&&(!de.node||de.changes)&&++ae}return ae}function Wa(a){a.display.input.showSelection(a.display.input.prepareSelection())}function qo(a,b){b===void 0&&(b=!0);for(var ae=a.doc,re={},de=re.cursors=document.createDocumentFragment(),Fe=re.selection=document.createDocumentFragment(),qe=0;qe<ae.sel.ranges.length;qe++)if(!(!b&&qe==ae.sel.primIndex)){var ft=ae.sel.ranges[qe];if(!(ft.from().line>=a.display.viewTo||ft.to().line<a.display.viewFrom)){var ht=ft.empty();(ht||a.options.showCursorWhenSelecting)&&ko(a,ft.head,de),ht||es(a,ft,Fe)}}return re}function ko(a,b,ae){var re=di(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),de=ae.appendChild(ye("div","\xA0","CodeMirror-cursor"));if(de.style.left=re.left+"px",de.style.top=re.top+"px",de.style.height=Math.max(0,re.bottom-re.top)*a.options.cursorHeight+"px",re.other){var Fe=ae.appendChild(ye("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Fe.style.display="",Fe.style.left=re.other.left+"px",Fe.style.top=re.other.top+"px",Fe.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function _a(a,b){return a.top-b.top||a.left-b.left}function es(a,b,ae){var re=a.display,de=a.doc,Fe=document.createDocumentFragment(),qe=Ki(a.display),ft=qe.left,ht=Math.max(re.sizerWidth,sa(a)-re.sizer.offsetLeft)-qe.right,vt=de.direction=="ltr";function St($r,vn,In,Cn){vn<0&&(vn=0),vn=Math.round(vn),Cn=Math.round(Cn),Fe.appendChild(ye("div",null,"CodeMirror-selected","position: absolute; left: "+$r+`px;
top: `+vn+"px; width: "+(In==null?ht-$r:In)+`px;
height: `+(Cn-vn)+"px"))}function Dt($r,vn,In){var Cn=Bt(de,$r),Yn=Cn.text.length,ui,Bi;function xi(ji,ta){return Wi(a,Ot($r,ji),"div",Cn,ta)}function oa(ji,ta,Zi){var Ni=wi(a,Cn,null,ji),Oi=ta=="ltr"==(Zi=="after")?"left":"right",Ci=Zi=="after"?Ni.begin:Ni.end-(/\s/.test(Cn.text.charAt(Ni.end-1))?2:1);return xi(Ci,Oi)[Oi]}var ea=$e(Cn,de.direction);return Oe(ea,vn||0,In==null?Yn:In,function(ji,ta,Zi,Ni){var Oi=Zi=="ltr",Ci=xi(ji,Oi?"left":"right"),ra=xi(ta-1,Oi?"right":"left"),xo=vn==null&&ji==0,Xa=In==null&&ta==Yn,Gi=Ni==0,Sa=!ea||Ni==ea.length-1;if(ra.top-Ci.top<=3){var Fi=(vt?xo:Xa)&&Gi,Bs=(vt?Xa:xo)&&Sa,Ia=Fi?ft:(Oi?Ci:ra).left,eo=Bs?ht:(Oi?ra:Ci).right;St(Ia,Ci.top,eo-Ia,Ci.bottom)}else{var to,Yi,So,Fs;Oi?(to=vt&&xo&&Gi?ft:Ci.left,Yi=vt?ht:oa(ji,Zi,"before"),So=vt?ft:oa(ta,Zi,"after"),Fs=vt&&Xa&&Sa?ht:ra.right):(to=vt?oa(ji,Zi,"before"):ft,Yi=!vt&&xo&&Gi?ht:Ci.right,So=!vt&&Xa&&Sa?ft:ra.left,Fs=vt?oa(ta,Zi,"after"):ht),St(to,Ci.top,Yi-to,Ci.bottom),Ci.bottom<ra.top&&St(ft,Ci.bottom,null,ra.top),St(So,ra.top,Fs-So,ra.bottom)}(!ui||_a(Ci,ui)<0)&&(ui=Ci),_a(ra,ui)<0&&(ui=ra),(!Bi||_a(Ci,Bi)<0)&&(Bi=Ci),_a(ra,Bi)<0&&(Bi=ra)}),{start:ui,end:Bi}}var Ht=b.from(),Ut=b.to();if(Ht.line==Ut.line)Dt(Ht.line,Ht.ch,Ut.ch);else{var hr=Bt(de,Ht.line),Ar=Bt(de,Ut.line),Hr=Vt(hr)==Vt(Ar),Qr=Dt(Ht.line,Ht.ch,Hr?hr.text.length+1:null).end,ln=Dt(Ut.line,Hr?0:null,Ut.ch).start;Hr&&(Qr.top<ln.top-2?(St(Qr.right,Qr.top,null,Qr.bottom),St(ft,ln.top,ln.left,ln.bottom)):St(Qr.right,Qr.top,ln.left-Qr.right,Qr.bottom)),Qr.bottom<ln.top&&St(ft,Qr.bottom,null,ln.top)}ae.appendChild(Fe)}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()||Ua(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(),Do(a))}function _o(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Ua(a))},100)}function Do(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,_e(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 Ua(a,b){a.state.delayingBlurEvent||(a.state.focused&&(bt(a,"blur",a,b),a.state.focused=!1,je(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,re=0;re<b.view.length;re++){var de=b.view[re],Fe=a.options.lineWrapping,qe=void 0,ft=0;if(!de.hidden){if(be&&x<8){var ht=de.node.offsetTop+de.node.offsetHeight;qe=ht-ae,ae=ht}else{var vt=de.node.getBoundingClientRect();qe=vt.bottom-vt.top,!Fe&&de.text.firstChild&&(ft=de.text.firstChild.getBoundingClientRect().right-vt.left-1)}var St=de.line.height-qe;if((St>.005||St<-.005)&&(on(de.line,qe),jo(de.line),de.rest))for(var Dt=0;Dt<de.rest.length;Dt++)jo(de.rest[Dt]);if(ft>a.display.sizerWidth){var Ht=Math.ceil(ft/Qi(a.display));Ht>a.display.maxLineLength&&(a.display.maxLineLength=Ht,a.display.maxLine=de.line,a.display.maxLineChanged=!0)}}}}function jo(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ae=a.widgets[b],re=ae.node.parentNode;re&&(ae.height=re.offsetHeight)}}function Da(a,b,ae){var re=ae&&ae.top!=null?Math.max(0,ae.top):a.scroller.scrollTop;re=Math.floor(re-Un(a));var de=ae&&ae.bottom!=null?ae.bottom:re+a.wrapper.clientHeight,Fe=_t(b,re),qe=_t(b,de);if(ae&&ae.ensure){var ft=ae.ensure.from.line,ht=ae.ensure.to.line;ft<Fe?(Fe=ft,qe=_t(b,Br(Bt(b,ft))+a.wrapper.clientHeight)):Math.min(ht,b.lastLine())>=qe&&(Fe=_t(b,Br(Bt(b,ht))-a.wrapper.clientHeight),qe=ht)}return{from:Fe,to:Math.max(qe,Fe+1)}}function Oo(a,b){if(!yt(a,"scrollCursorIntoView")){var ae=a.display,re=ae.sizer.getBoundingClientRect(),de=null;if(b.top+re.top<0?de=!0:b.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(de=!1),de!=null&&!ne){var Fe=ye("div","\u200B",null,`position: absolute;
top: `+(b.top-ae.viewOffset-Un(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(Fe),Fe.scrollIntoView(de),a.display.lineSpace.removeChild(Fe)}}}function Po(a,b,ae,re){re==null&&(re=0);var de;!a.options.lineWrapping&&b==ae&&(b=b.ch?Ot(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ae=b.sticky=="before"?Ot(b.line,b.ch+1,"before"):b);for(var Fe=0;Fe<5;Fe++){var qe=!1,ft=di(a,b),ht=!ae||ae==b?ft:di(a,ae);de={left:Math.min(ft.left,ht.left),top:Math.min(ft.top,ht.top)-re,right:Math.max(ft.left,ht.left),bottom:Math.max(ft.bottom,ht.bottom)+re};var vt=uo(a,de),St=a.doc.scrollTop,Dt=a.doc.scrollLeft;if(vt.scrollTop!=null&&(Oa(a,vt.scrollTop),Math.abs(a.doc.scrollTop-St)>1&&(qe=!0)),vt.scrollLeft!=null&&(Pa(a,vt.scrollLeft),Math.abs(a.doc.scrollLeft-Dt)>1&&(qe=!0)),!qe)break}return de}function ts(a,b){var ae=uo(a,b);ae.scrollTop!=null&&Oa(a,ae.scrollTop),ae.scrollLeft!=null&&Pa(a,ae.scrollLeft)}function uo(a,b){var ae=a.display,re=Pi(a.display);b.top<0&&(b.top=0);var de=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ae.scroller.scrollTop,Fe=Vi(a),qe={};b.bottom-b.top>Fe&&(b.bottom=b.top+Fe);var ft=a.doc.height+bi(ae),ht=b.top<re,vt=b.bottom>ft-re;if(b.top<de)qe.scrollTop=ht?0:b.top;else if(b.bottom>de+Fe){var St=Math.min(b.top,(vt?ft:b.bottom)-Fe);St!=de&&(qe.scrollTop=St)}var Dt=a.options.fixedGutter?0:ae.gutters.offsetWidth,Ht=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ae.scroller.scrollLeft-Dt,Ut=sa(a)-ae.gutters.offsetWidth,hr=b.right-b.left>Ut;return hr&&(b.right=b.left+Ut),b.left<10?qe.scrollLeft=0:b.left<Ht?qe.scrollLeft=Math.max(0,b.left+Dt-(hr?0:10)):b.right>Ut+Ht-3&&(qe.scrollLeft=b.right+(hr?0:10)-Ut),qe}function co(a,b){b!=null&&(Za(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function ja(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=Vn(a,b.from),re=Vn(a,b.to);Ro(a,ae,re,b.margin)}}function Ro(a,b,ae,re){var de=uo(a,{left:Math.min(b.left,ae.left),top:Math.min(b.top,ae.top)-re,right:Math.max(b.right,ae.right),bottom:Math.max(b.bottom,ae.bottom)+re});qa(a,de.scrollLeft,de.scrollTop)}function Oa(a,b){Math.abs(a.doc.scrollTop-b)<2||(ze||bs(a,{top:b}),No(a,b,!0),ze&&bs(a),Mo(a,100))}function No(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 Pa(a,b,ae,re){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)&&!re)&&(a.doc.scrollLeft=b,Us(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Gn(a){var b=a.display,ae=b.gutters.offsetWidth,re=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:re,scrollHeight:re+ni(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ae}}var Kn=function(a,b,ae){this.cm=ae;var re=this.vert=ye("div",[ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),de=this.horiz=ye("div",[ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");re.tabIndex=de.tabIndex=-1,a(re),a(de),mt(re,"scroll",function(){re.clientHeight&&b(re.scrollTop,"vertical")}),mt(de,"scroll",function(){de.clientWidth&&b(de.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,be&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Kn.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ae=a.scrollHeight>a.clientHeight+1,re=a.nativeBarWidth;if(ae){this.vert.style.display="block",this.vert.style.bottom=b?re+"px":"0";var de=a.viewHeight-(b?re:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+de)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ae?re+"px":"0",this.horiz.style.left=a.barLeft+"px";var Fe=a.viewWidth-a.barLeft-(ae?re:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+Fe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ae?re:0,bottom:b?re:0}},Kn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Kn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Kn.prototype.zeroWidthHack=function(){var a=fe&&!E?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new We,this.disableVert=new We},Kn.prototype.enableZeroWidthBar=function(a,b,ae){a.style.pointerEvents="auto";function re(){var de=a.getBoundingClientRect(),Fe=ae=="vert"?document.elementFromPoint(de.right-1,(de.top+de.bottom)/2):document.elementFromPoint((de.right+de.left)/2,de.bottom-1);Fe!=a?a.style.pointerEvents="none":b.set(1e3,re)}b.set(1e3,re)},Kn.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 Mi(a,b){b||(b=Gn(a));var ae=a.display.barWidth,re=a.display.barHeight;Ri(a,b);for(var de=0;de<4&&ae!=a.display.barWidth||re!=a.display.barHeight;de++)ae!=a.display.barWidth&&a.options.lineWrapping&&lo(a),Ri(a,Gn(a)),ae=a.display.barWidth,re=a.display.barHeight}function Ri(a,b){var ae=a.display,re=ae.scrollbars.update(b);ae.sizer.style.paddingRight=(ae.barWidth=re.right)+"px",ae.sizer.style.paddingBottom=(ae.barHeight=re.bottom)+"px",ae.heightForcer.style.borderBottom=re.bottom+"px solid transparent",re.right&&re.bottom?(ae.scrollbarFiller.style.display="block",ae.scrollbarFiller.style.height=re.bottom+"px",ae.scrollbarFiller.style.width=re.right+"px"):ae.scrollbarFiller.style.display="",re.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ae.gutterFiller.style.display="block",ae.gutterFiller.style.height=re.bottom+"px",ae.gutterFiller.style.width=b.gutterWidth+"px"):ae.gutterFiller.style.display=""}var Ra={native:Kn,null:Ei};function xa(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&je(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ra[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),mt(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"?Pa(a,b):Oa(a,b)},a),a.display.scrollbars.addClass&&_e(a.display.wrapper,a.display.scrollbars.addClass)}var Na=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:++Na},_i(a.curOp)}function ga(a){var b=a.curOp;b&&yi(b,function(ae){for(var re=0;re<ae.ops.length;re++)ae.ops[re].cm.curOp=null;Vl(ae)})}function Vl(a){for(var b=a.ops,ae=0;ae<b.length;ae++)Xl(b[ae]);for(var re=0;re<b.length;re++)Yl(b[re]);for(var de=0;de<b.length;de++)Jl(b[de]);for(var Fe=0;Fe<b.length;Fe++)Ql(b[Fe]);for(var qe=0;qe<b.length;qe++)$l(b[qe])}function Xl(a){var b=a.cm,ae=b.display;eu(b),a.updateMaxLine&&Jr(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 Jl(a){var b=a.cm,ae=b.display;a.updatedDisplay&&lo(b),a.barMeasure=Gn(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 Ql(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&Pa(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var ae=a.focus&&a.focus==ke();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ae),(a.updatedDisplay||a.startHeight!=b.doc.height)&&Mi(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 $l(a){var b=a.cm,ae=b.display,re=b.doc;if(a.updatedDisplay&&Ws(b,a.update),ae.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ae.wheelStartX=ae.wheelStartY=null),a.scrollTop!=null&&No(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Pa(b,a.scrollLeft,!0,!0),a.scrollToPos){var de=Po(b,ir(re,a.scrollToPos.from),ir(re,a.scrollToPos.to),a.scrollToPos.margin);Oo(b,de)}var Fe=a.maybeHiddenMarkers,qe=a.maybeUnhiddenMarkers;if(Fe)for(var ft=0;ft<Fe.length;++ft)Fe[ft].lines.length||bt(Fe[ft],"hide");if(qe)for(var ht=0;ht<qe.length;++ht)qe[ht].lines.length&&bt(qe[ht],"unhide");ae.wrapper.offsetHeight&&(re.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 Mo(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,Qe(ql,a))}function ql(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var ae=+new Date+a.options.workTime,re=Pn(a,b.highlightFrontier),de=[];b.iter(re.line,Math.min(b.first+b.size,a.display.viewTo+500),function(Fe){if(re.line>=a.display.viewFrom){var qe=Fe.styles,ft=Fe.text.length>a.options.maxHighlightLength?Rr(b.mode,re.state):null,ht=an(a,Fe,re,!0);ft&&(re.state=ft),Fe.styles=ht.styles;var vt=Fe.styleClasses,St=ht.classes;St?Fe.styleClasses=St:vt&&(Fe.styleClasses=null);for(var Dt=!qe||qe.length!=Fe.styles.length||vt!=St&&(!vt||!St||vt.bgClass!=St.bgClass||vt.textClass!=St.textClass),Ht=0;!Dt&&Ht<qe.length;++Ht)Dt=qe[Ht]!=Fe.styles[Ht];Dt&&de.push(re.line),Fe.stateAfter=re.save(),re.nextLine()}else Fe.text.length<=a.options.maxHighlightLength&&tn(a,Fe.text,re),Fe.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>ae)return Mo(a,a.options.workDelay),!0}),b.highlightFrontier=re.line,b.modeFrontier=Math.max(b.modeFrontier,re.line),de.length&&aa(a,function(){for(var Fe=0;Fe<de.length;Fe++)ca(a,de[Fe],"text")})}}var ns=function(a,b,ae){var re=a.display;this.viewport=b,this.visible=Da(re,a.doc,b),this.editorIsHidden=!re.wrapper.offsetWidth,this.wrapperHeight=re.wrapper.clientHeight,this.wrapperWidth=re.wrapper.clientWidth,this.oldDisplayWidth=sa(a),this.force=ae,this.dims=ua(a),this.events=[]};ns.prototype.signal=function(a,b){kt(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=ke();if(!b||!Re(a.display.lineDiv,b))return null;var ae={activeElt:b};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&Re(a.display.lineDiv,re.anchorNode)&&(ae.anchorNode=re.anchorNode,ae.anchorOffset=re.anchorOffset,ae.focusNode=re.focusNode,ae.focusOffset=re.focusOffset)}return ae}function ru(a){if(!(!a||!a.activeElt||a.activeElt==ke())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Re(document.body,a.anchorNode)&&Re(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,re=a.doc;if(b.editorIsHidden)return $i(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&&$o(a)==0)return!1;Zs(a)&&($i(a),b.dims=ua(a));var de=re.first+re.size,Fe=Math.max(b.visible.from-a.options.viewportMargin,re.first),qe=Math.min(de,b.visible.to+a.options.viewportMargin);ae.viewFrom<Fe&&Fe-ae.viewFrom<20&&(Fe=Math.max(re.first,ae.viewFrom)),ae.viewTo>qe&&ae.viewTo-qe<20&&(qe=Math.min(de,ae.viewTo)),Fr&&(Fe=or(a.doc,Fe),qe=er(a.doc,qe));var ft=Fe!=ae.viewFrom||qe!=ae.viewTo||ae.lastWrapHeight!=b.wrapperHeight||ae.lastWrapWidth!=b.wrapperWidth;Qo(a,Fe,qe),ae.viewOffset=Br(Bt(a.doc,ae.viewFrom)),a.display.mover.style.top=ae.viewOffset+"px";var ht=$o(a);if(!ft&&ht==0&&!b.force&&ae.renderedView==ae.view&&(ae.updateLineNumbers==null||ae.updateLineNumbers>=ae.viewTo))return!1;var vt=tu(a);return ht>4&&(ae.lineDiv.style.display="none"),nu(a,ae.updateLineNumbers,b.dims),ht>4&&(ae.lineDiv.style.display=""),ae.renderedView=ae.view,ru(vt),Ee(ae.cursorDiv),Ee(ae.selectionDiv),ae.gutters.style.height=ae.sizer.style.minHeight=0,ft&&(ae.lastWrapHeight=b.wrapperHeight,ae.lastWrapWidth=b.wrapperWidth,Mo(a,400)),ae.updateLineNumbers=null,!0}function Ws(a,b){for(var ae=b.viewport,re=!0;;re=!1){if(!re||!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=Da(a.display,a.doc,ae),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else re&&(b.visible=Da(a.display,a.doc,ae));if(!ys(a,b))break;lo(a);var de=Gn(a);Wa(a),Mi(a,de),xs(a,de),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),Ws(a,ae);var re=Gn(a);Wa(a),Mi(a,re),xs(a,re),ae.finish()}}function nu(a,b,ae){var re=a.display,de=a.options.lineNumbers,Fe=re.lineDiv,qe=Fe.firstChild;function ft(hr){var Ar=hr.nextSibling;return z&&fe&&a.display.currentWheelTarget==hr?hr.style.display="none":hr.parentNode.removeChild(hr),Ar}for(var ht=re.view,vt=re.viewFrom,St=0;St<ht.length;St++){var Dt=ht[St];if(!Dt.hidden)if(!Dt.node||Dt.node.parentNode!=Fe){var Ht=On(a,Dt,vt,ae);Fe.insertBefore(Ht,qe)}else{for(;qe!=Dt.node;)qe=ft(qe);var Ut=de&&b!=null&&b<=vt&&Dt.lineNumber;Dt.changes&&(it(Dt.changes,"gutter")>-1&&(Ut=!1),ti(a,Dt,vt,ae)),Ut&&(Ee(Dt.lineNumber),Dt.lineNumber.appendChild(document.createTextNode(Qt(a.options,vt)))),qe=Dt.node.nextSibling}vt+=Dt.size}for(;qe;)qe=ft(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 Us(a){var b=a.display,ae=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var re=$a(b)-b.scroller.scrollLeft+a.doc.scrollLeft,de=b.gutters.offsetWidth,Fe=re+"px",qe=0;qe<ae.length;qe++)if(!ae[qe].hidden){a.options.fixedGutter&&(ae[qe].gutter&&(ae[qe].gutter.style.left=Fe),ae[qe].gutterBackground&&(ae[qe].gutterBackground.style.left=Fe));var ft=ae[qe].alignable;if(ft)for(var ht=0;ht<ft.length;ht++)ft[ht].style.left=Fe}a.options.fixedGutter&&(b.gutters.style.left=re+de+"px")}}function Zs(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ae=Qt(a.options,b.first+b.size-1),re=a.display;if(ae.length!=re.lineNumChars){var de=re.measure.appendChild(ye("div",[ye("div",ae)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Fe=de.firstChild.offsetWidth,qe=de.offsetWidth-Fe;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(Fe,re.lineGutter.offsetWidth-qe)+1,re.lineNumWidth=re.lineNumInnerWidth+qe,re.lineNumChars=re.lineNumInnerWidth?ae.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",ws(a.display),!0}return!1}function Ss(a,b){for(var ae=[],re=!1,de=0;de<a.length;de++){var Fe=a[de],qe=null;if(typeof Fe!="string"&&(qe=Fe.style,Fe=Fe.className),Fe=="CodeMirror-linenumbers")if(b)re=!0;else continue;ae.push({className:Fe,style:qe})}return b&&!re&&ae.push({className:"CodeMirror-linenumbers",style:null}),ae}function Hs(a){var b=a.gutters,ae=a.gutterSpecs;Ee(b),a.lineGutter=null;for(var re=0;re<ae.length;++re){var de=ae[re],Fe=de.className,qe=de.style,ft=b.appendChild(ye("div",null,"CodeMirror-gutter "+Fe));qe&&(ft.style.cssText=qe),Fe=="CodeMirror-linenumbers"&&(a.lineGutter=ft,ft.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ae.length?"":"none",ws(a)}function Io(a){Hs(a.display),Ui(a),Us(a)}function iu(a,b,ae,re){var de=this;this.input=ae,de.scrollbarFiller=ye("div",null,"CodeMirror-scrollbar-filler"),de.scrollbarFiller.setAttribute("cm-not-content","true"),de.gutterFiller=ye("div",null,"CodeMirror-gutter-filler"),de.gutterFiller.setAttribute("cm-not-content","true"),de.lineDiv=we("div",null,"CodeMirror-code"),de.selectionDiv=ye("div",null,null,"position: relative; z-index: 1"),de.cursorDiv=ye("div",null,"CodeMirror-cursors"),de.measure=ye("div",null,"CodeMirror-measure"),de.lineMeasure=ye("div",null,"CodeMirror-measure"),de.lineSpace=we("div",[de.measure,de.lineMeasure,de.selectionDiv,de.cursorDiv,de.lineDiv],null,"position: relative; outline: none");var Fe=we("div",[de.lineSpace],"CodeMirror-lines");de.mover=ye("div",[Fe],null,"position: relative"),de.sizer=ye("div",[de.mover],"CodeMirror-sizer"),de.sizerWidth=null,de.heightForcer=ye("div",null,null,"position: absolute; height: "+at+"px; width: 1px;"),de.gutters=ye("div",null,"CodeMirror-gutters"),de.lineGutter=null,de.scroller=ye("div",[de.sizer,de.heightForcer,de.gutters],"CodeMirror-scroll"),de.scroller.setAttribute("tabIndex","-1"),de.wrapper=ye("div",[de.scrollbarFiller,de.gutterFiller,de.scroller],"CodeMirror"),be&&x<8&&(de.gutters.style.zIndex=-1,de.scroller.style.paddingRight=0),!z&&!(ze&&ue)&&(de.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(de.wrapper):a(de.wrapper)),de.viewFrom=de.viewTo=b.first,de.reportedViewFrom=de.reportedViewTo=b.first,de.view=[],de.renderedView=null,de.externalMeasured=null,de.viewOffset=0,de.lastWrapHeight=de.lastWrapWidth=0,de.updateLineNumbers=null,de.nativeBarWidth=de.barHeight=de.barWidth=0,de.scrollbarsClipped=!1,de.lineNumWidth=de.lineNumInnerWidth=de.lineNumChars=null,de.alignWidgets=!1,de.cachedCharWidth=de.cachedTextHeight=de.cachedPaddingH=null,de.maxLine=null,de.maxLineLength=0,de.maxLineChanged=!1,de.wheelDX=de.wheelDY=de.wheelStartX=de.wheelStartY=null,de.shift=!1,de.selForContextMenu=null,de.activeTouch=null,de.gutterSpecs=Ss(re.gutters,re.lineNumbers),Hs(de),ae.init(de)}var is=0,da=null;be?da=-.53:ze?da=15:oe?da=-.7:le&&(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),re=ae.x,de=ae.y,Fe=a.display,qe=Fe.scroller,ft=qe.scrollWidth>qe.clientWidth,ht=qe.scrollHeight>qe.clientHeight;if(re&&ft||de&&ht){if(de&&fe&&z){e:for(var vt=b.target,St=Fe.view;vt!=qe;vt=vt.parentNode)for(var Dt=0;Dt<St.length;Dt++)if(St[Dt].node==vt){a.display.currentWheelTarget=vt;break e}}if(re&&!ze&&!ee&&da!=null){de&&ht&&Oa(a,Math.max(0,qe.scrollTop+de*da)),Pa(a,Math.max(0,qe.scrollLeft+re*da)),(!de||de&&ht)&&It(b),Fe.wheelStartX=null;return}if(de&&da!=null){var Ht=de*da,Ut=a.doc.scrollTop,hr=Ut+Fe.wrapper.clientHeight;Ht<0?Ut=Math.max(0,Ut+Ht-50):hr=Math.min(a.doc.height,hr+Ht+50),bs(a,{top:Ut,bottom:hr})}is<20&&(Fe.wheelStartX==null?(Fe.wheelStartX=qe.scrollLeft,Fe.wheelStartY=qe.scrollTop,Fe.wheelDX=re,Fe.wheelDY=de,setTimeout(function(){if(Fe.wheelStartX!=null){var Ar=qe.scrollLeft-Fe.wheelStartX,Hr=qe.scrollTop-Fe.wheelStartY,Qr=Hr&&Fe.wheelDY&&Hr/Fe.wheelDY||Ar&&Fe.wheelDX&&Ar/Fe.wheelDX;Fe.wheelStartX=Fe.wheelStartY=null,Qr&&(da=(da*is+Qr)/(is+1),++is)}},200)):(Fe.wheelDX+=re,Fe.wheelDY+=de))}}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],re=a.ranges[b];if(!wr(ae.anchor,re.anchor)||!wr(ae.head,re.head))return!1}return!0},ha.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new ii(gr(this.ranges[b].anchor),gr(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 re=this.ranges[ae];if(rr(b,re.from())>=0&&rr(a,re.to())<=0)return ae}return-1};var ii=function(a,b){this.anchor=a,this.head=b};ii.prototype.from=function(){return pr(this.anchor,this.head)},ii.prototype.to=function(){return ar(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 re=a&&a.options.selectionsMayTouch,de=b[ae];b.sort(function(Ht,Ut){return rr(Ht.from(),Ut.from())}),ae=it(b,de);for(var Fe=1;Fe<b.length;Fe++){var qe=b[Fe],ft=b[Fe-1],ht=rr(ft.to(),qe.from());if(re&&!qe.empty()?ht>0:ht>=0){var vt=pr(ft.from(),qe.from()),St=ar(ft.to(),qe.to()),Dt=ft.empty()?qe.from()==qe.head:ft.from()==ft.head;Fe<=ae&&--ae,b.splice(--Fe,2,new ii(Dt?St:vt,Dt?vt:St))}}return new ha(b,ae)}function Ha(a,b){return new ha([new ii(a,b||a)],0)}function za(a){return a.text?Ot(a.from.line+a.text.length-1,st(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ks(a,b){if(rr(a,b.from)<0)return a;if(rr(a,b.to)<=0)return za(b);var ae=a.line+b.text.length-(b.to.line-b.from.line)-1,re=a.ch;return a.line==b.to.line&&(re+=za(b).ch-b.to.ch),Ot(ae,re)}function Es(a,b){for(var ae=[],re=0;re<a.sel.ranges.length;re++){var de=a.sel.ranges[re];ae.push(new ii(Ks(de.anchor,b),Ks(de.head,b)))}return ya(a.cm,ae,a.sel.primIndex)}function Vs(a,b,ae){return a.line==b.line?Ot(ae.line,a.ch-b.ch+ae.ch):Ot(ae.line+(a.line-b.line),a.ch)}function ou(a,b,ae){for(var re=[],de=Ot(a.first,0),Fe=de,qe=0;qe<b.length;qe++){var ft=b[qe],ht=Vs(ft.from,de,Fe),vt=Vs(za(ft),de,Fe);if(de=ft.to,Fe=vt,ae=="around"){var St=a.sel.ranges[qe],Dt=rr(St.head,St.anchor)<0;re[qe]=new ii(Dt?vt:ht,Dt?ht:vt)}else re[qe]=new ii(ht,ht)}return new ha(re,a.sel.primIndex)}function Cs(a){a.doc.mode=Sr(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,Mo(a,100),a.state.modeGen++,a.curOp&&Ui(a)}function Xs(a,b){return b.from.ch==0&&b.to.ch==0&&st(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function ks(a,b,ae,re){function de(ln){return ae?ae[ln]:null}function Fe(ln,$r,vn){mn(ln,$r,vn,re),qn(ln,"change",ln,b)}function qe(ln,$r){for(var vn=[],In=ln;In<$r;++In)vn.push(new wn(vt[In],de(In),re));return vn}var ft=b.from,ht=b.to,vt=b.text,St=Bt(a,ft.line),Dt=Bt(a,ht.line),Ht=st(vt),Ut=de(vt.length-1),hr=ht.line-ft.line;if(b.full)a.insert(0,qe(0,vt.length)),a.remove(vt.length,a.size-vt.length);else if(Xs(a,b)){var Ar=qe(0,vt.length-1);Fe(Dt,Dt.text,Ut),hr&&a.remove(ft.line,hr),Ar.length&&a.insert(ft.line,Ar)}else if(St==Dt)if(vt.length==1)Fe(St,St.text.slice(0,ft.ch)+Ht+St.text.slice(ht.ch),Ut);else{var Hr=qe(1,vt.length-1);Hr.push(new wn(Ht+St.text.slice(ht.ch),Ut,re)),Fe(St,St.text.slice(0,ft.ch)+vt[0],de(0)),a.insert(ft.line+1,Hr)}else if(vt.length==1)Fe(St,St.text.slice(0,ft.ch)+vt[0]+Dt.text.slice(ht.ch),de(0)),a.remove(ft.line+1,hr);else{Fe(St,St.text.slice(0,ft.ch)+vt[0],de(0)),Fe(Dt,Ht+Dt.text.slice(ht.ch),Ut);var Qr=qe(1,vt.length-1);hr>1&&a.remove(ft.line+1,hr-1),a.insert(ft.line+1,Qr)}qn(a,"change",a,b)}function Ga(a,b,ae){function re(de,Fe,qe){if(de.linked)for(var ft=0;ft<de.linked.length;++ft){var ht=de.linked[ft];if(ht.doc!=Fe){var vt=qe&&ht.sharedHist;ae&&!vt||(b(ht.doc,vt),re(ht.doc,de,vt))}}}re(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),Js(a),a.options.lineWrapping||Jr(a),a.options.mode=b.modeOption,Ui(a)}function Js(a){(a.doc.direction=="rtl"?_e:je)(a.display.lineDiv,"CodeMirror-rtl")}function su(a){aa(a,function(){Js(a),Ui(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:gr(b.from),to:za(b),text:Wt(a,b.from,b.to)};return el(a,ae,b.from.line,b.to.line+1),Ga(a,function(re){return el(re,ae,b.from.line,b.to.line+1)},!0),ae}function Qs(a){for(;a.length;){var b=st(a);if(b.ranges)a.pop();else break}}function lu(a,b){if(b)return Qs(a.done),st(a.done);if(a.done.length&&!st(a.done).ranges)return st(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),st(a.done)}function $s(a,b,ae,re){var de=a.history;de.undone.length=0;var Fe=+new Date,qe,ft;if((de.lastOp==re||de.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&de.lastModTime>Fe-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(qe=lu(de,de.lastOp==re)))ft=st(qe.changes),rr(b.from,b.to)==0&&rr(b.from,ft.to)==0?ft.to=za(b):qe.changes.push(Ts(a,b));else{var ht=st(de.done);for((!ht||!ht.ranges)&&os(a.sel,de.done),qe={changes:[Ts(a,b)],generation:de.generation},de.done.push(qe);de.done.length>de.undoDepth;)de.done.shift(),de.done[0].ranges||de.done.shift()}de.done.push(ae),de.generation=++de.maxGeneration,de.lastModTime=de.lastSelTime=Fe,de.lastOp=de.lastSelOp=re,de.lastOrigin=de.lastSelOrigin=b.origin,ft||bt(a,"historyAdded")}function uu(a,b,ae,re){var de=b.charAt(0);return de=="*"||de=="+"&&ae.ranges.length==re.ranges.length&&ae.somethingSelected()==re.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function cu(a,b,ae,re){var de=a.history,Fe=re&&re.origin;ae==de.lastSelOp||Fe&&de.lastSelOrigin==Fe&&(de.lastModTime==de.lastSelTime&&de.lastOrigin==Fe||uu(a,Fe,st(de.done),b))?de.done[de.done.length-1]=b:os(b,de.done),de.lastSelTime=+new Date,de.lastSelOrigin=Fe,de.lastSelOp=ae,re&&re.clearRedo!==!1&&Qs(de.undone)}function os(a,b){var ae=st(b);ae&&ae.ranges&&ae.equals(a)||b.push(a)}function el(a,b,ae,re){var de=b["spans_"+a.id],Fe=0;a.iter(Math.max(a.first,ae),Math.min(a.first+a.size,re),function(qe){qe.markedSpans&&((de||(de=b["spans_"+a.id]={}))[Fe]=qe.markedSpans),++Fe})}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 re=[],de=0;de<b.text.length;++de)re.push(fu(ae[de]));return re}function tl(a,b){var ae=du(a,b),re=ri(a,b);if(!ae)return re;if(!re)return ae;for(var de=0;de<ae.length;++de){var Fe=ae[de],qe=re[de];if(Fe&&qe)e:for(var ft=0;ft<qe.length;++ft){for(var ht=qe[ft],vt=0;vt<Fe.length;++vt)if(Fe[vt].marker==ht.marker)continue e;Fe.push(ht)}else qe&&(ae[de]=qe)}return ae}function fo(a,b,ae){for(var re=[],de=0;de<a.length;++de){var Fe=a[de];if(Fe.ranges){re.push(ae?ha.prototype.deepCopy.call(Fe):Fe);continue}var qe=Fe.changes,ft=[];re.push({changes:ft});for(var ht=0;ht<qe.length;++ht){var vt=qe[ht],St=void 0;if(ft.push({from:vt.from,to:vt.to,text:vt.text}),b)for(var Dt in vt)(St=Dt.match(/^spans_(\d+)$/))&&it(b,Number(St[1]))>-1&&(st(ft)[Dt]=vt[Dt],delete vt[Dt])}}return re}function As(a,b,ae,re){if(re){var de=a.anchor;if(ae){var Fe=rr(b,de)<0;Fe!=rr(ae,de)<0?(de=b,b=ae):Fe!=rr(b,ae)<0&&(b=ae)}return new ii(de,b)}else return new ii(ae||b,b)}function ss(a,b,ae,re,de){de==null&&(de=a.cm&&(a.cm.display.shift||a.extend)),zi(a,new ha([As(a.sel.primary(),b,ae,de)],0),re)}function rl(a,b,ae){for(var re=[],de=a.cm&&(a.cm.display.shift||a.extend),Fe=0;Fe<a.sel.ranges.length;Fe++)re[Fe]=As(a.sel.ranges[Fe],b[Fe],null,de);var qe=ya(a.cm,re,a.sel.primIndex);zi(a,qe,ae)}function _s(a,b,ae,re){var de=a.sel.ranges.slice(0);de[b]=ae,zi(a,ya(a.cm,de,a.sel.primIndex),re)}function nl(a,b,ae,re){zi(a,Ha(b,ae),re)}function hu(a,b,ae){var re={ranges:b.ranges,update:function(de){this.ranges=[];for(var Fe=0;Fe<de.length;Fe++)this.ranges[Fe]=new ii(ir(a,de[Fe].anchor),ir(a,de[Fe].head))},origin:ae&&ae.origin};return bt(a,"beforeSelectionChange",a,re),a.cm&&bt(a.cm,"beforeSelectionChange",a.cm,re),re.ranges!=b.ranges?ya(a.cm,re.ranges,re.ranges.length-1):b}function il(a,b,ae){var re=a.history.done,de=st(re);de&&de.ranges?(re[re.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){(kt(a,"beforeSelectionChange")||a.cm&&kt(a.cm,"beforeSelectionChange"))&&(b=hu(a,b,ae));var re=ae&&ae.bias||(rr(b.primary().head,a.sel.primary().head)<0?-1:1);al(a,sl(a,b,re,!0)),!(ae&&ae.scroll===!1)&&a.cm&&ja(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,Et(a.cm)),qn(a,"cursorActivity",a))}function ol(a){al(a,sl(a,a.sel,null,!1))}function sl(a,b,ae,re){for(var de,Fe=0;Fe<b.ranges.length;Fe++){var qe=b.ranges[Fe],ft=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[Fe],ht=us(a,qe.anchor,ft&&ft.anchor,ae,re),vt=us(a,qe.head,ft&&ft.head,ae,re);(de||ht!=qe.anchor||vt!=qe.head)&&(de||(de=b.ranges.slice(0,Fe)),de[Fe]=new ii(ht,vt))}return de?ya(a.cm,de,b.primIndex):b}function ho(a,b,ae,re,de){var Fe=Bt(a,b.line);if(Fe.markedSpans)for(var qe=0;qe<Fe.markedSpans.length;++qe){var ft=Fe.markedSpans[qe],ht=ft.marker,vt="selectLeft"in ht?!ht.selectLeft:ht.inclusiveLeft,St="selectRight"in ht?!ht.selectRight:ht.inclusiveRight;if((ft.from==null||(vt?ft.from<=b.ch:ft.from<b.ch))&&(ft.to==null||(St?ft.to>=b.ch:ft.to>b.ch))){if(de&&(bt(ht,"beforeCursorEnter"),ht.explicitlyCleared))if(Fe.markedSpans){--qe;continue}else break;if(!ht.atomic)continue;if(ae){var Dt=ht.find(re<0?1:-1),Ht=void 0;if((re<0?St:vt)&&(Dt=ll(a,Dt,-re,Dt&&Dt.line==b.line?Fe:null)),Dt&&Dt.line==b.line&&(Ht=rr(Dt,ae))&&(re<0?Ht<0:Ht>0))return ho(a,Dt,b,re,de)}var Ut=ht.find(re<0?-1:1);return(re<0?vt:St)&&(Ut=ll(a,Ut,re,Ut.line==b.line?Fe:null)),Ut?ho(a,Ut,b,re,de):null}}return b}function us(a,b,ae,re,de){var Fe=re||1,qe=ho(a,b,ae,Fe,de)||!de&&ho(a,b,ae,Fe,!0)||ho(a,b,ae,-Fe,de)||!de&&ho(a,b,ae,-Fe,!0);return qe||(a.cantEdit=!0,Ot(a.first,0))}function ll(a,b,ae,re){return ae<0&&b.ch==0?b.line>a.first?ir(a,Ot(b.line-1)):null:ae>0&&b.ch==(re||Bt(a,b.line)).text.length?b.line<a.first+a.size-1?Ot(b.line+1,0):null:new Ot(b.line,b.ch+ae)}function ul(a){a.setSelection(Ot(a.firstLine(),0),Ot(a.lastLine()),Xe)}function cl(a,b,ae){var re={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return re.canceled=!0}};return ae&&(re.update=function(de,Fe,qe,ft){de&&(re.from=ir(a,de)),Fe&&(re.to=ir(a,Fe)),qe&&(re.text=qe),ft!==void 0&&(re.origin=ft)}),bt(a,"beforeChange",a,re),a.cm&&bt(a.cm,"beforeChange",a.cm,re),re.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.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(!((kt(a,"beforeChange")||a.cm&&kt(a.cm,"beforeChange"))&&(b=cl(a,b,!0),!b))){var re=jr&&!ae&&Nt(a,b.from,b.to);if(re)for(var de=re.length-1;de>=0;--de)fl(a,{from:re[de].from,to:re[de].to,text:de?[""]:b.text,origin:b.origin});else fl(a,b)}}function fl(a,b){if(!(b.text.length==1&&b.text[0]==""&&rr(b.from,b.to)==0)){var ae=Es(a,b);$s(a,b,ae,a.cm?a.cm.curOp.id:NaN),Bo(a,b,ae,ri(a,b));var re=[];Ga(a,function(de,Fe){!Fe&&it(re,de.history)==-1&&(ml(de.history,b),re.push(de.history)),Bo(de,b,null,ri(de,b))})}}function cs(a,b,ae){var re=a.cm&&a.cm.state.suppressEdits;if(!(re&&!ae)){for(var de=a.history,Fe,qe=a.sel,ft=b=="undo"?de.done:de.undone,ht=b=="undo"?de.undone:de.done,vt=0;vt<ft.length&&(Fe=ft[vt],!(ae?Fe.ranges&&!Fe.equals(a.sel):!Fe.ranges));vt++);if(vt!=ft.length){for(de.lastOrigin=de.lastSelOrigin=null;;)if(Fe=ft.pop(),Fe.ranges){if(os(Fe,ht),ae&&!Fe.equals(a.sel)){zi(a,Fe,{clearRedo:!1});return}qe=Fe}else if(re){ft.push(Fe);return}else break;var St=[];os(qe,ht),ht.push({changes:St,generation:de.generation}),de.generation=Fe.generation||++de.maxGeneration;for(var Dt=kt(a,"beforeChange")||a.cm&&kt(a.cm,"beforeChange"),Ht=function(Ar){var Hr=Fe.changes[Ar];if(Hr.origin=b,Dt&&!cl(a,Hr,!1))return ft.length=0,{};St.push(Ts(a,Hr));var Qr=Ar?Es(a,Hr):st(ft);Bo(a,Hr,Qr,tl(a,Hr)),!Ar&&a.cm&&a.cm.scrollIntoView({from:Hr.from,to:za(Hr)});var ln=[];Ga(a,function($r,vn){!vn&&it(ln,$r.history)==-1&&(ml($r.history,Hr),ln.push($r.history)),Bo($r,Hr,null,tl($r,Hr))})},Ut=Fe.changes.length-1;Ut>=0;--Ut){var hr=Ht(Ut);if(hr)return hr.v}}}}function dl(a,b){if(b!=0&&(a.first+=b,a.sel=new ha(He(a.sel.ranges,function(de){return new ii(Ot(de.anchor.line+b,de.anchor.ch),Ot(de.head.line+b,de.head.ch))}),a.sel.primIndex),a.cm)){Ui(a.cm,a.first,a.first-b,b);for(var ae=a.cm.display,re=ae.viewFrom;re<ae.viewTo;re++)ca(a.cm,re,"gutter")}}function Bo(a,b,ae,re){if(a.cm&&!a.cm.curOp)return Ii(a.cm,Bo)(a,b,ae,re);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 de=b.text.length-1-(a.first-b.from.line);dl(a,de),b={from:Ot(a.first,0),to:Ot(b.to.line+de,b.to.ch),text:[st(b.text)],origin:b.origin}}var Fe=a.lastLine();b.to.line>Fe&&(b={from:b.from,to:Ot(Fe,Bt(a,Fe).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Wt(a,b.from,b.to),ae||(ae=Es(a,b)),a.cm?pu(a.cm,b,re):ks(a,b,re),ls(a,ae,Xe),a.cantEdit&&us(a,Ot(a.firstLine(),0))&&(a.cantEdit=!1)}}function pu(a,b,ae){var re=a.doc,de=a.display,Fe=b.from,qe=b.to,ft=!1,ht=Fe.line;a.options.lineWrapping||(ht=Tt(Vt(Bt(re,Fe.line))),re.iter(ht,qe.line+1,function(Ut){if(Ut==de.maxLine)return ft=!0,!0})),re.sel.contains(b.from,b.to)>-1&&Et(a),ks(re,b,ae,Eo(a)),a.options.lineWrapping||(re.iter(ht,Fe.line+b.text.length,function(Ut){var hr=sn(Ut);hr>de.maxLineLength&&(de.maxLine=Ut,de.maxLineLength=hr,de.maxLineChanged=!0,ft=!1)}),ft&&(a.curOp.updateMaxLine=!0)),zn(re,Fe.line),Mo(a,400);var vt=b.text.length-(qe.line-Fe.line)-1;b.full?Ui(a):Fe.line==qe.line&&b.text.length==1&&!Xs(a.doc,b)?ca(a,Fe.line,"text"):Ui(a,Fe.line,qe.line+1,vt);var St=kt(a,"changes"),Dt=kt(a,"change");if(Dt||St){var Ht={from:Fe,to:qe,text:b.text,removed:b.removed,origin:b.origin};Dt&&qn(a,"change",a,Ht),St&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Ht)}a.display.selForContextMenu=null}function mo(a,b,ae,re,de){var Fe;re||(re=ae),rr(re,ae)<0&&(Fe=[re,ae],ae=Fe[0],re=Fe[1]),typeof b=="string"&&(b=a.splitLines(b)),po(a,{from:ae,to:re,text:b,origin:de})}function hl(a,b,ae,re){ae<a.line?a.line+=re:b<a.line&&(a.line=b,a.ch=0)}function pl(a,b,ae,re){for(var de=0;de<a.length;++de){var Fe=a[de],qe=!0;if(Fe.ranges){Fe.copied||(Fe=a[de]=Fe.deepCopy(),Fe.copied=!0);for(var ft=0;ft<Fe.ranges.length;ft++)hl(Fe.ranges[ft].anchor,b,ae,re),hl(Fe.ranges[ft].head,b,ae,re);continue}for(var ht=0;ht<Fe.changes.length;++ht){var vt=Fe.changes[ht];if(ae<vt.from.line)vt.from=Ot(vt.from.line+re,vt.from.ch),vt.to=Ot(vt.to.line+re,vt.to.ch);else if(b<=vt.to.line){qe=!1;break}}qe||(a.splice(0,de+1),de=0)}}function ml(a,b){var ae=b.from.line,re=b.to.line,de=b.text.length-(re-ae)-1;pl(a.done,ae,re,de),pl(a.undone,ae,re,de)}function Fo(a,b,ae,re){var de=b,Fe=b;return typeof b=="number"?Fe=Bt(a,Cr(a,b)):de=Tt(b),de==null?null:(re(Fe,de)&&a.cm&&ca(a.cm,de,ae),Fe)}function Wo(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}Wo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ae=a,re=a+b;ae<re;++ae){var de=this.lines[ae];this.height-=de.height,bn(de),qn(de,"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 re=0;re<b.length;++re)b[re].parent=this},iterN:function(a,b,ae){for(var re=a+b;a<re;++a)if(ae(this.lines[a]))return!0}};function Uo(a){this.children=a;for(var b=0,ae=0,re=0;re<a.length;++re){var de=a[re];b+=de.chunkSize(),ae+=de.height,de.parent=this}this.size=b,this.height=ae,this.parent=null}Uo.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ae=0;ae<this.children.length;++ae){var re=this.children[ae],de=re.chunkSize();if(a<de){var Fe=Math.min(b,de-a),qe=re.height;if(re.removeInner(a,Fe),this.height-=qe-re.height,de==Fe&&(this.children.splice(ae--,1),re.parent=null),(b-=Fe)==0)break;a=0}else a-=de}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Wo))){var ft=[];this.collapse(ft),this.children=[new Wo(ft)],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 re=0;re<this.children.length;++re){var de=this.children[re],Fe=de.chunkSize();if(a<=Fe){if(de.insertInner(a,b,ae),de.lines&&de.lines.length>50){for(var qe=de.lines.length%25+25,ft=qe;ft<de.lines.length;){var ht=new Wo(de.lines.slice(ft,ft+=25));de.height-=ht.height,this.children.splice(++re,0,ht),ht.parent=this}de.lines=de.lines.slice(0,qe),this.maybeSpill()}break}a-=Fe}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ae=new Uo(b);if(a.parent){a.size-=ae.size,a.height-=ae.height;var de=it(a.parent.children,a);a.parent.children.splice(de+1,0,ae)}else{var re=new Uo(a.children);re.parent=a,a.children=[re,ae],a=re}ae.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ae){for(var re=0;re<this.children.length;++re){var de=this.children[re],Fe=de.chunkSize();if(a<Fe){var qe=Math.min(b,Fe-a);if(de.iterN(a,qe,ae))return!0;if((b-=qe)==0)break;a=0}else a-=Fe}}};var Zo=function(a,b,ae){if(ae)for(var re in ae)ae.hasOwnProperty(re)&&(this[re]=ae[re]);this.doc=a,this.node=b};Zo.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ae=this.line,re=Tt(ae);if(!(re==null||!b)){for(var de=0;de<b.length;++de)b[de]==this&&b.splice(de--,1);b.length||(ae.widgets=null);var Fe=fi(this);on(ae,Math.max(0,ae.height-Fe)),a&&(aa(a,function(){vl(a,ae,-Fe),ca(a,re,"widget")}),qn(a,"lineWidgetCleared",a,this,re))}},Zo.prototype.changed=function(){var a=this,b=this.height,ae=this.doc.cm,re=this.line;this.height=null;var de=fi(this)-b;de&&(yr(this.doc,re)||on(re,re.height+de),ae&&aa(ae,function(){ae.curOp.forceUpdate=!0,vl(ae,re,de),qn(ae,"lineWidgetChanged",ae,a,Tt(re))}))},jt(Zo);function vl(a,b,ae){Br(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&co(a,ae)}function mu(a,b,ae,re){var de=new Zo(a,ae,re),Fe=a.cm;return Fe&&de.noHScroll&&(Fe.display.alignWidgets=!0),Fo(a,b,"widget",function(qe){var ft=qe.widgets||(qe.widgets=[]);if(de.insertAt==null?ft.push(de):ft.splice(Math.min(ft.length-1,Math.max(0,de.insertAt)),0,de),de.line=qe,Fe&&!yr(a,qe)){var ht=Br(qe)<a.scrollTop;on(qe,qe.height+fi(de)),ht&&co(Fe,de.height),Fe.curOp.forceUpdate=!0}return!0}),Fe&&qn(Fe,"lineWidgetAdded",Fe,de,typeof b=="number"?b:Tt(b)),de}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),kt(this,"clear")){var ae=this.find();ae&&qn(this,"clear",ae.from,ae.to)}for(var re=null,de=null,Fe=0;Fe<this.lines.length;++Fe){var qe=this.lines[Fe],ft=qr(qe.markedSpans,this);a&&!this.collapsed?ca(a,Tt(qe),"text"):a&&(ft.to!=null&&(de=Tt(qe)),ft.from!=null&&(re=Tt(qe))),qe.markedSpans=yn(qe.markedSpans,ft),ft.from==null&&this.collapsed&&!yr(this.doc,qe)&&a&&on(qe,Pi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ht=0;ht<this.lines.length;++ht){var vt=Vt(this.lines[ht]),St=sn(vt);St>a.display.maxLineLength&&(a.display.maxLine=vt,a.display.maxLineLength=St,a.display.maxLineChanged=!0)}re!=null&&a&&this.collapsed&&Ui(a,re,de+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,re,de),b&&ga(a),this.parent&&this.parent.clear()}},Ka.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ae,re,de=0;de<this.lines.length;++de){var Fe=this.lines[de],qe=qr(Fe.markedSpans,this);if(qe.from!=null&&(ae=Ot(b?Fe:Tt(Fe),qe.from),a==-1))return ae;if(qe.to!=null&&(re=Ot(b?Fe:Tt(Fe),qe.to),a==1))return re}return ae&&{from:ae,to:re}},Ka.prototype.changed=function(){var a=this,b=this.find(-1,!0),ae=this,re=this.doc.cm;!b||!re||aa(re,function(){var de=b.line,Fe=Tt(b.line),qe=pa(re,Fe);if(qe&&(Ja(qe),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!yr(ae.doc,de)&&ae.height!=null){var ft=ae.height;ae.height=null;var ht=fi(ae)-ft;ht&&on(de,de.height+ht)}qn(re,"markerChanged",re,a)})},Ka.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||it(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Ka.prototype.detachLine=function(a){if(this.lines.splice(it(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},jt(Ka);function vo(a,b,ae,re,de){if(re&&re.shared)return vu(a,b,ae,re,de);if(a.cm&&!a.cm.curOp)return Ii(a.cm,vo)(a,b,ae,re,de);var Fe=new Ka(a,de),qe=rr(b,ae);if(re&&ut(re,Fe,!1),qe>0||qe==0&&Fe.clearWhenEmpty!==!1)return Fe;if(Fe.replacedWith&&(Fe.collapsed=!0,Fe.widgetNode=we("span",[Fe.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||Fe.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(Fe.widgetNode.insertLeft=!0)),Fe.collapsed){if(Xt(a,b.line,b,ae,Fe)||b.line!=ae.line&&Xt(a,ae.line,b,ae,Fe))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yr()}Fe.addToHistory&&$s(a,{from:b,to:ae,origin:"markText"},a.sel,NaN);var ft=b.line,ht=a.cm,vt;if(a.iter(ft,ae.line+1,function(Dt){ht&&Fe.collapsed&&!ht.options.lineWrapping&&Vt(Dt)==ht.display.maxLine&&(vt=!0),Fe.collapsed&&ft!=b.line&&on(Dt,0),Rn(Dt,new Or(Fe,ft==b.line?b.ch:null,ft==ae.line?ae.ch:null)),++ft}),Fe.collapsed&&a.iter(b.line,ae.line+1,function(Dt){yr(a,Dt)&&on(Dt,0)}),Fe.clearOnEnter&&mt(Fe,"beforeCursorEnter",function(){return Fe.clear()}),Fe.readOnly&&(Er(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),Fe.collapsed&&(Fe.id=++gl,Fe.atomic=!0),ht){if(vt&&(ht.curOp.updateMaxLine=!0),Fe.collapsed)Ui(ht,b.line,ae.line+1);else if(Fe.className||Fe.startStyle||Fe.endStyle||Fe.css||Fe.attributes||Fe.title)for(var St=b.line;St<=ae.line;St++)ca(ht,St,"text");Fe.atomic&&ol(ht.doc),qn(ht,"markerAdded",ht,Fe)}return Fe}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)},jt(Ho);function vu(a,b,ae,re,de){re=ut(re),re.shared=!1;var Fe=[vo(a,b,ae,re,de)],qe=Fe[0],ft=re.widgetNode;return Ga(a,function(ht){ft&&(re.widgetNode=ft.cloneNode(!0)),Fe.push(vo(ht,ir(ht,b),ir(ht,ae),re,de));for(var vt=0;vt<ht.linked.length;++vt)if(ht.linked[vt].isParent)return;qe=st(Fe)}),new Ho(Fe,qe)}function yl(a){return a.findMarks(Ot(a.first,0),a.clipPos(Ot(a.lastLine())),function(b){return b.parent})}function gu(a,b){for(var ae=0;ae<b.length;ae++){var re=b[ae],de=re.find(),Fe=a.clipPos(de.from),qe=a.clipPos(de.to);if(rr(Fe,qe)){var ft=vo(a,Fe,qe,re.primary,re.primary.type);re.markers.push(ft),ft.parent=re}}}function yu(a){for(var b=function(re){var de=a[re],Fe=[de.primary.doc];Ga(de.primary.doc,function(ht){return Fe.push(ht)});for(var qe=0;qe<de.markers.length;qe++){var ft=de.markers[qe];it(Fe,ft.doc)==-1&&(ft.parent=null,de.markers.splice(qe--,1))}},ae=0;ae<a.length;ae++)b(ae)}var bu=0,qi=function(a,b,ae,re,de){if(!(this instanceof qi))return new qi(a,b,ae,re,de);ae==null&&(ae=0),Uo.call(this,[new Wo([new wn("",null)])]),this.first=ae,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ae;var Fe=Ot(ae,0);this.sel=Ha(Fe),this.history=new as(null),this.id=++bu,this.modeOption=b,this.lineSep=re,this.direction=de=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),ks(this,{from:Fe,to:Fe,text:a}),zi(this,Ha(Fe),Xe)};qi.prototype=Me(Uo.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,re=0;re<b.length;++re)ae+=b[re].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=Ot(this.first,0),ae=this.first+this.size-1;po(this,{from:b,to:Ot(ae,Bt(this,ae).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&qa(this.cm,0,0),zi(this,Ha(b),Xe)}),replaceRange:function(a,b,ae,re){b=ir(this,b),ae=ae?ir(this,ae):b,mo(this,a,b,ae,re)},getRange:function(a,b,ae){var re=Wt(this,ir(this,a),ir(this,b));return ae===!1?re:re.join(ae||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(dr(this,a))return Bt(this,a)},getLineNumber:function(a){return Tt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Bt(this,a)),Vt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return ir(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,ir(this,typeof a=="number"?Ot(a,b||0):a),null,ae)}),setSelection:Li(function(a,b,ae){nl(this,ir(this,a),ir(this,b||a),ae)}),extendSelection:Li(function(a,b,ae){ss(this,ir(this,a),b&&ir(this,b),ae)}),extendSelections:Li(function(a,b){rl(this,kr(this,a),b)}),extendSelectionsBy:Li(function(a,b){var ae=He(this.sel.ranges,a);rl(this,kr(this,ae),b)}),setSelections:Li(function(a,b,ae){if(a.length){for(var re=[],de=0;de<a.length;de++)re[de]=new ii(ir(this,a[de].anchor),ir(this,a[de].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),zi(this,ya(this.cm,re,b),ae)}}),addSelection:Li(function(a,b,ae){var re=this.sel.ranges.slice(0);re.push(new ii(ir(this,a),ir(this,b||a))),zi(this,ya(this.cm,re,re.length-1),ae)}),getSelection:function(a){for(var b=this.sel.ranges,ae,re=0;re<b.length;re++){var de=Wt(this,b[re].from(),b[re].to());ae=ae?ae.concat(de):de}return a===!1?ae:ae.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ae=this.sel.ranges,re=0;re<ae.length;re++){var de=Wt(this,ae[re].from(),ae[re].to());a!==!1&&(de=de.join(a||this.lineSeparator())),b[re]=de}return b},replaceSelection:function(a,b,ae){for(var re=[],de=0;de<this.sel.ranges.length;de++)re[de]=a;this.replaceSelections(re,b,ae||"+input")},replaceSelections:Li(function(a,b,ae){for(var re=[],de=this.sel,Fe=0;Fe<de.ranges.length;Fe++){var qe=de.ranges[Fe];re[Fe]={from:qe.from(),to:qe.to(),text:this.splitLines(a[Fe]),origin:ae}}for(var ft=b&&b!="end"&&ou(this,re,b),ht=re.length-1;ht>=0;ht--)po(this,re[ht]);ft?il(this,ft):this.cm&&ja(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,re=0;re<a.done.length;re++)a.done[re].ranges||++b;for(var de=0;de<a.undone.length;de++)a.undone[de].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(re){var de=re.gutterMarkers||(re.gutterMarkers={});return de[b]=ae,!ae&&rt(de)&&(re.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,rt(ae.gutterMarkers)&&(ae.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!dr(this,a)||(b=a,a=Bt(this,a),!a))return null}else if(b=Tt(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(re){var de=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!re[de])re[de]=ae;else{if(Ce(ae).test(re[de]))return!1;re[de]+=" "+ae}return!0})}),removeLineClass:Li(function(a,b,ae){return Fo(this,a,b=="gutter"?"gutter":"class",function(re){var de=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",Fe=re[de];if(Fe)if(ae==null)re[de]=null;else{var qe=Fe.match(Ce(ae));if(!qe)return!1;var ft=qe.index+qe[0].length;re[de]=Fe.slice(0,qe.index)+(!qe.index||ft==Fe.length?"":" ")+Fe.slice(ft)||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,ir(this,a),ir(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=ir(this,a),vo(this,a,a,ae,"bookmark")},findMarksAt:function(a){a=ir(this,a);var b=[],ae=Bt(this,a.line).markedSpans;if(ae)for(var re=0;re<ae.length;++re){var de=ae[re];(de.from==null||de.from<=a.ch)&&(de.to==null||de.to>=a.ch)&&b.push(de.marker.parent||de.marker)}return b},findMarks:function(a,b,ae){a=ir(this,a),b=ir(this,b);var re=[],de=a.line;return this.iter(a.line,b.line+1,function(Fe){var qe=Fe.markedSpans;if(qe)for(var ft=0;ft<qe.length;ft++){var ht=qe[ft];!(ht.to!=null&&de==a.line&&a.ch>=ht.to||ht.from==null&&de!=a.line||ht.from!=null&&de==b.line&&ht.from>=b.ch)&&(!ae||ae(ht.marker))&&re.push(ht.marker.parent||ht.marker)}++de}),re},getAllMarks:function(){var a=[];return this.iter(function(b){var ae=b.markedSpans;if(ae)for(var re=0;re<ae.length;++re)ae[re].from!=null&&a.push(ae[re].marker)}),a},posFromIndex:function(a){var b,ae=this.first,re=this.lineSeparator().length;return this.iter(function(de){var Fe=de.text.length+re;if(Fe>a)return b=a,!0;a-=Fe,++ae}),ir(this,Ot(ae,b))},indexFromPos:function(a){a=ir(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(re){b+=re.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 re=new qi(Gr(this,b,ae),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(re.history=this.history),(this.linked||(this.linked=[])).push({doc:re,sharedHist:a.sharedHist}),re.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(re,yl(this)),re},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 re=[a.id];Ga(a,function(de){return re.push(de.id)},!0),a.history=new as(null),a.history.done=fo(this.history.done,re),a.history.undone=fo(this.history.undone,re)}},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):fn(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),!(yt(b,a)||ci(b.display,a))){It(a),be&&(bl=+new Date);var ae=wa(b,a,!0),re=a.dataTransfer.files;if(!(!ae||b.isReadOnly()))if(re&&re.length&&window.FileReader&&window.File)for(var de=re.length,Fe=Array(de),qe=0,ft=function(){++qe==de&&Ii(b,function(){ae=ir(b.doc,ae);var Ut={from:ae,to:ae,text:b.doc.splitLines(Fe.filter(function(hr){return hr!=null}).join(b.doc.lineSeparator())),origin:"paste"};po(b.doc,Ut),il(b.doc,Ha(ir(b.doc,ae),ir(b.doc,za(Ut))))})()},ht=function(Ut,hr){if(b.options.allowDropFileTypes&&it(b.options.allowDropFileTypes,Ut.type)==-1){ft();return}var Ar=new FileReader;Ar.onerror=function(){return ft()},Ar.onload=function(){var Hr=Ar.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hr)){ft();return}Fe[hr]=Hr,ft()},Ar.readAsText(Ut)},vt=0;vt<re.length;vt++)ht(re[vt],vt);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 St=a.dataTransfer.getData("Text");if(St){var Dt;if(b.state.draggingText&&!b.state.draggingText.copy&&(Dt=b.listSelections()),ls(b.doc,Ha(ae,ae)),Dt)for(var Ht=0;Ht<Dt.length;++Ht)mo(b.doc,"",Dt[Ht].anchor,Dt[Ht].head,"drag");b.replaceSelection(St,"around","paste"),b.display.input.focus()}}catch(Ut){}}}}function xu(a,b){if(be&&(!a.state.draggingText||+new Date-bl<100)){Pr(b);return}if(!(yt(a,b)||ci(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!le)){var ae=ye("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 re=document.createDocumentFragment();ko(a,ae,re),a.display.dragCursor||(a.display.dragCursor=ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ce(a.display.dragCursor,re)}}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=[],re=0;re<b.length;re++){var de=b[re].CodeMirror;de&&ae.push(de)}ae.length&&ae[0].operation(function(){for(var Fe=0;Fe<ae.length;Fe++)a(ae[Fe])})}}var Sl=!1;function Eu(){Sl||(Cu(),Sl=!0)}function Cu(){var a;mt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,xl(ku)},100))}),mt(window,"blur",function(){return xl(Ua)})}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 Ma={};Ma.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"},Ma.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"},Ma.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"},Ma.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"]},Ma.default=fe?Ma.macDefault:Ma.pcDefault;function Tu(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ae,re,de,Fe,qe=0;qe<b.length-1;qe++){var ft=b[qe];if(/^(cmd|meta|m)$/i.test(ft))Fe=!0;else if(/^a(lt)?$/i.test(ft))ae=!0;else if(/^(c|ctrl|control)$/i.test(ft))re=!0;else if(/^s(hift)?$/i.test(ft))de=!0;else throw new Error("Unrecognized modifier name: "+ft)}return ae&&(a="Alt-"+a),re&&(a="Ctrl-"+a),Fe&&(a="Cmd-"+a),de&&(a="Shift-"+a),a}function Au(a){var b={};for(var ae in a)if(a.hasOwnProperty(ae)){var re=a[ae];if(/^(name|fallthrough|(de|at)tach)$/.test(ae))continue;if(re=="..."){delete a[ae];continue}for(var de=He(ae.split(" "),Tu),Fe=0;Fe<de.length;Fe++){var qe=void 0,ft=void 0;Fe==de.length-1?(ft=de.join(" "),qe=re):(ft=de.slice(0,Fe+1).join(" "),qe="...");var ht=b[ft];if(!ht)b[ft]=qe;else if(ht!=qe)throw new Error("Inconsistent bindings for "+ft)}delete a[ae]}for(var vt in b)a[vt]=b[vt];return a}function go(a,b,ae,re){b=ds(b);var de=b.call?b.call(a,re):b[a];if(de===!1)return"nothing";if(de==="...")return"multi";if(de!=null&&ae(de))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return go(a,b.fallthrough,ae,re);for(var Fe=0;Fe<b.fallthrough.length;Fe++){var qe=go(a,b.fallthrough[Fe],ae,re);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 re=a;return b.altKey&&re!="Alt"&&(a="Alt-"+a),(ge?b.metaKey:b.ctrlKey)&&re!="Ctrl"&&(a="Ctrl-"+a),(ge?b.ctrlKey:b.metaKey)&&re!="Mod"&&(a="Cmd-"+a),!ae&&b.shiftKey&&re!="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"?Ma[a]:a}function yo(a,b){for(var ae=a.doc.sel.ranges,re=[],de=0;de<ae.length;de++){for(var Fe=b(ae[de]);re.length&&rr(Fe.from,st(re).to)<=0;){var qe=re.pop();if(rr(qe.from,Fe.from)<0){Fe.from=qe.from;break}}re.push(Fe)}aa(a,function(){for(var ft=re.length-1;ft>=0;ft--)mo(a.doc,"",re[ft].from,re[ft].to,"+delete");ja(a)})}function Ds(a,b,ae){var re=Ue(a.text,b+ae,ae);return re<0||re>a.text.length?null:re}function js(a,b,ae){var re=Ds(a,b.ch,ae);return re==null?null:new Ot(b.line,re,ae<0?"after":"before")}function Os(a,b,ae,re,de){if(a){b.doc.direction=="rtl"&&(de=-de);var Fe=$e(ae,b.doc.direction);if(Fe){var qe=de<0?st(Fe):Fe[0],ft=de<0==(qe.level==1),ht=ft?"after":"before",vt;if(qe.level>0||b.doc.direction=="rtl"){var St=ma(b,ae);vt=de<0?ae.text.length-1:0;var Dt=na(b,St,vt).top;vt=ot(function(Ht){return na(b,St,Ht).top==Dt},de<0==(qe.level==1)?qe.from:qe.to-1,vt),ht=="before"&&(vt=Ds(ae,vt,1))}else vt=de<0?qe.to:qe.from;return new Ot(re,vt,ht)}}return new Ot(re,de<0?ae.text.length:0,de<0?"before":"after")}function _u(a,b,ae,re){var de=$e(b,a.doc.direction);if(!de)return js(b,ae,re);ae.ch>=b.text.length?(ae.ch=b.text.length,ae.sticky="before"):ae.ch<=0&&(ae.ch=0,ae.sticky="after");var Fe=pe(de,ae.ch,ae.sticky),qe=de[Fe];if(a.doc.direction=="ltr"&&qe.level%2==0&&(re>0?qe.to>ae.ch:qe.from<ae.ch))return js(b,ae,re);var ft=function(Qr,ln){return Ds(b,Qr instanceof Ot?Qr.ch:Qr,ln)},ht,vt=function(Qr){return a.options.lineWrapping?(ht=ht||ma(a,b),wi(a,b,ht,Qr)):{begin:0,end:b.text.length}},St=vt(ae.sticky=="before"?ft(ae,-1):ae.ch);if(a.doc.direction=="rtl"||qe.level==1){var Dt=qe.level==1==re<0,Ht=ft(ae,Dt?1:-1);if(Ht!=null&&(Dt?Ht<=qe.to&&Ht<=St.end:Ht>=qe.from&&Ht>=St.begin)){var Ut=Dt?"before":"after";return new Ot(ae.line,Ht,Ut)}}var hr=function(Qr,ln,$r){for(var vn=function(ui,Bi){return Bi?new Ot(ae.line,ft(ui,1),"before"):new Ot(ae.line,ui,"after")};Qr>=0&&Qr<de.length;Qr+=ln){var In=de[Qr],Cn=ln>0==(In.level!=1),Yn=Cn?$r.begin:ft($r.end,-1);if(In.from<=Yn&&Yn<In.to||(Yn=Cn?In.from:ft(In.to,-1),$r.begin<=Yn&&Yn<$r.end))return vn(Yn,Cn)}},Ar=hr(Fe+re,re,St);if(Ar)return Ar;var Hr=re>0?St.end:ft(St.begin,-1);return Hr!=null&&!(re>0&&Hr==b.text.length)&&(Ar=hr(re>0?0:de.length-1,re,vt(Hr)),Ar)?Ar:null}var Ko={selectAll:ul,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Xe)},killLine:function(a){return yo(a,function(b){if(b.empty()){var ae=Bt(a.doc,b.head.line).text.length;return b.head.ch==ae&&b.head.line<a.lastLine()?{from:b.head,to:Ot(b.head.line+1,0)}:{from:b.head,to:Ot(b.head.line,ae)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return yo(a,function(b){return{from:Ot(b.from().line,0),to:ir(a.doc,Ot(b.to().line+1,0))}})},delLineLeft:function(a){return yo(a,function(b){return{from:Ot(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return yo(a,function(b){var ae=a.charCoords(b.head,"div").top+5,re=a.coordsChar({left:0,top:ae},"div");return{from:re,to:b.from()}})},delWrappedLineRight:function(a){return yo(a,function(b){var ae=a.charCoords(b.head,"div").top+5,re=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ae},"div");return{from:b.from(),to:re}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Ot(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Ot(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(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 Du(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")},Ye)},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")},Ye)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ae=a.cursorCoords(b.head,"div").top+5,re=a.coordsChar({left:0,top:ae},"div");return re.ch<a.getLine(re.line).search(/\S/)?Al(a,b.head):re},Ye)},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(),re=a.options.tabSize,de=0;de<ae.length;de++){var Fe=ae[de].from(),qe=Ie(a.getLine(Fe.line),Fe.ch,re);b.push(lt(re-qe%re))}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=[],re=0;re<b.length;re++)if(b[re].empty()){var de=b[re].head,Fe=Bt(a.doc,de.line).text;if(Fe){if(de.ch==Fe.length&&(de=new Ot(de.line,de.ch-1)),de.ch>0)de=new Ot(de.line,de.ch+1),a.replaceRange(Fe.charAt(de.ch-1)+Fe.charAt(de.ch-2),Ot(de.line,de.ch-2),de,"+transpose");else if(de.line>a.doc.first){var qe=Bt(a.doc,de.line-1).text;qe&&(de=new Ot(de.line,1),a.replaceRange(Fe.charAt(0)+a.doc.lineSeparator()+qe.charAt(qe.length-1),Ot(de.line-1,qe.length-1),de,"+transpose"))}}ae.push(new ii(de,de))}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 re=0;re<b.length;re++)a.indentLine(b[re].from().line,null,!0);ja(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Tl(a,b){var ae=Bt(a.doc,b),re=Vt(ae);return re!=ae&&(b=Tt(re)),Os(!0,a,re,b,1)}function Du(a,b){var ae=Bt(a.doc,b),re=nr(ae);return re!=ae&&(b=Tt(re)),Os(!0,a,ae,b,-1)}function Al(a,b){var ae=Tl(a,b.line),re=Bt(a.doc,ae.line),de=$e(re,a.doc.direction);if(!de||de[0].level==0){var Fe=Math.max(ae.ch,re.text.search(/\S/)),qe=b.line==ae.line&&b.ch<=Fe&&b.ch;return Ot(ae.line,qe?0:Fe,ae.sticky)}return ae}function hs(a,b,ae){if(typeof b=="string"&&(b=Ko[b],!b))return!1;a.display.input.ensurePolled();var re=a.display.shift,de=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ae&&(a.display.shift=!1),de=b(a)!=nt}finally{a.display.shift=re,a.state.suppressEdits=!1}return de}function ju(a,b,ae){for(var re=0;re<a.state.keyMaps.length;re++){var de=go(b,a.state.keyMaps[re],ae,a);if(de)return de}return a.options.extraKeys&&go(b,a.options.extraKeys,ae,a)||go(b,a.options.keyMap,ae,a)}var Ou=new We;function Vo(a,b,ae,re){var de=a.state.keySeq;if(de){if(El(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:Ou.set(50,function(){a.state.keySeq==de&&(a.state.keySeq=null,a.display.input.reset())}),_l(a,de+" "+b,ae,re))return!0}return _l(a,b,ae,re)}function _l(a,b,ae,re){var de=ju(a,b,re);return de=="multi"&&(a.state.keySeq=b),de=="handled"&&qn(a,"keyHandled",a,b,ae),(de=="handled"||de=="multi")&&(It(ae),To(a)),!!de}function Dl(a,b){var ae=kl(b,!0);return ae?b.shiftKey&&!a.state.keySeq?Vo(a,"Shift-"+ae,b,function(re){return hs(a,re,!0)})||Vo(a,ae,b,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return hs(a,re)}):Vo(a,ae,b,function(re){return hs(a,re)}):!1}function Pu(a,b,ae){return Vo(a,"'"+ae+"'",b,function(re){return hs(a,re,!0)})}var Ps=null;function jl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=ke(),!yt(b,a))){be&&x<11&&a.keyCode==27&&(a.returnValue=!1);var ae=a.keyCode;b.display.shift=ae==16||a.shiftKey;var re=Dl(b,a);ee&&(Ps=re?ae:null,!re&&ae==88&&!Lr&&(fe?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),ze&&!fe&&!re&&ae==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ae==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&Ru(b)}}function Ru(a){var b=a.display.lineDiv;_e(b,"CodeMirror-crosshair");function ae(re){(re.keyCode==18||!re.altKey)&&(je(b,"CodeMirror-crosshair"),wt(document,"keyup",ae),wt(document,"mouseover",ae))}mt(document,"keyup",ae),mt(document,"mouseover",ae)}function Ol(a){a.keyCode==16&&(this.doc.sel.shift=!1),yt(this,a)}function Pl(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(ci(b.display,a)||yt(b,a)||a.ctrlKey&&!a.altKey||fe&&a.metaKey)){var ae=a.keyCode,re=a.charCode;if(ee&&ae==Ps){Ps=null,It(a);return}if(!(ee&&(!a.which||a.which<10)&&Dl(b,a))){var de=String.fromCharCode(re==null?ae:re);de!="\b"&&(Pu(b,a,de)||b.display.input.onKeyPress(a))}}}var Nu=400,Rs=function(a,b,ae){this.time=a,this.pos=b,this.button=ae};Rs.prototype.compare=function(a,b,ae){return this.time+Nu>a&&rr(b,this.pos)==0&&ae==this.button};var Xo,Yo;function Mu(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 Rs(ae,a,b),Xo=null,"double"):(Xo=new Rs(ae,a,b),Yo=null,"single")}function Rl(a){var b=this,ae=b.display;if(!(yt(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(!Ns(b,a)){var re=wa(b,a),de=zr(a),Fe=re?Mu(re,de):"single";window.focus(),de==1&&b.state.selectingText&&b.state.selectingText(a),!(re&&Iu(b,de,re,Fe,a))&&(de==1?re?Bu(b,re,Fe,a):qt(a)==ae.scroller&&It(a):de==2?(re&&ss(b.doc,re),setTimeout(function(){return ae.input.focus()},20)):de==3&&(xe?b.display.input.onContextMenu(a):_o(b)))}}}function Iu(a,b,ae,re,de){var Fe="Click";return re=="double"?Fe="Double"+Fe:re=="triple"&&(Fe="Triple"+Fe),Fe=(b==1?"Left":b==2?"Middle":"Right")+Fe,Vo(a,Cl(Fe,de),de,function(qe){if(typeof qe=="string"&&(qe=Ko[qe]),!qe)return!1;var ft=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ft=qe(a,ae)!=nt}finally{a.state.suppressEdits=!1}return ft})}function Lu(a,b,ae){var re=a.getOption("configureMouse"),de=re?re(a,b,ae):{};if(de.unit==null){var Fe=me?ae.shiftKey&&ae.metaKey:ae.altKey;de.unit=Fe?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(de.extend==null||a.doc.extend)&&(de.extend=a.doc.extend||ae.shiftKey),de.addNew==null&&(de.addNew=fe?ae.metaKey:ae.ctrlKey),de.moveOnDrag==null&&(de.moveOnDrag=!(fe?ae.altKey:ae.ctrlKey)),de}function Bu(a,b,ae,re){be?setTimeout(Qe(Ao,a),0):a.curOp.focus=ke();var de=Lu(a,ae,re),Fe=a.doc.sel,qe;a.options.dragDrop&&Vr&&!a.isReadOnly()&&ae=="single"&&(qe=Fe.contains(b))>-1&&(rr((qe=Fe.ranges[qe]).from(),b)<0||b.xRel>0)&&(rr(qe.to(),b)>0||b.xRel<0)?Fu(a,re,b,de):Wu(a,re,b,de)}function Fu(a,b,ae,re){var de=a.display,Fe=!1,qe=Ii(a,function(vt){z&&(de.scroller.draggable=!1),a.state.draggingText=!1,wt(de.wrapper.ownerDocument,"mouseup",qe),wt(de.wrapper.ownerDocument,"mousemove",ft),wt(de.scroller,"dragstart",ht),wt(de.scroller,"drop",qe),Fe||(It(vt),re.addNew||ss(a.doc,ae,null,null,re.extend),z&&!le||be&&x==9?setTimeout(function(){de.wrapper.ownerDocument.body.focus({preventScroll:!0}),de.input.focus()},20):de.input.focus())}),ft=function(vt){Fe=Fe||Math.abs(b.clientX-vt.clientX)+Math.abs(b.clientY-vt.clientY)>=10},ht=function(){return Fe=!0};z&&(de.scroller.draggable=!0),a.state.draggingText=qe,qe.copy=!re.moveOnDrag,de.scroller.dragDrop&&de.scroller.dragDrop(),mt(de.wrapper.ownerDocument,"mouseup",qe),mt(de.wrapper.ownerDocument,"mousemove",ft),mt(de.scroller,"dragstart",ht),mt(de.scroller,"drop",qe),_o(a),setTimeout(function(){return de.input.focus()},20)}function Nl(a,b,ae){if(ae=="char")return new ii(b,b);if(ae=="word")return a.findWordAt(b);if(ae=="line")return new ii(Ot(b.line,0),ir(a.doc,Ot(b.line+1,0)));var re=ae(a,b);return new ii(re.from,re.to)}function Wu(a,b,ae,re){var de=a.display,Fe=a.doc;It(b);var qe,ft,ht=Fe.sel,vt=ht.ranges;if(re.addNew&&!re.extend?(ft=Fe.sel.contains(ae),ft>-1?qe=vt[ft]:qe=new ii(ae,ae)):(qe=Fe.sel.primary(),ft=Fe.sel.primIndex),re.unit=="rectangle")re.addNew||(qe=new ii(ae,ae)),ae=wa(a,b,!0,!0),ft=-1;else{var St=Nl(a,ae,re.unit);re.extend?qe=As(qe,St.anchor,St.head,re.extend):qe=St}re.addNew?ft==-1?(ft=vt.length,zi(Fe,ya(a,vt.concat([qe]),ft),{scroll:!1,origin:"*mouse"})):vt.length>1&&vt[ft].empty()&&re.unit=="char"&&!re.extend?(zi(Fe,ya(a,vt.slice(0,ft).concat(vt.slice(ft+1)),0),{scroll:!1,origin:"*mouse"}),ht=Fe.sel):_s(Fe,ft,qe,et):(ft=0,zi(Fe,new ha([qe],0),et),ht=Fe.sel);var Dt=ae;function Ht($r){if(rr(Dt,$r)!=0)if(Dt=$r,re.unit=="rectangle"){for(var vn=[],In=a.options.tabSize,Cn=Ie(Bt(Fe,ae.line).text,ae.ch,In),Yn=Ie(Bt(Fe,$r.line).text,$r.ch,In),ui=Math.min(Cn,Yn),Bi=Math.max(Cn,Yn),xi=Math.min(ae.line,$r.line),oa=Math.min(a.lastLine(),Math.max(ae.line,$r.line));xi<=oa;xi++){var ea=Bt(Fe,xi).text,ji=dt(ea,ui,In);ui==Bi?vn.push(new ii(Ot(xi,ji),Ot(xi,ji))):ea.length>ji&&vn.push(new ii(Ot(xi,ji),Ot(xi,dt(ea,Bi,In))))}vn.length||vn.push(new ii(ae,ae)),zi(Fe,ya(a,ht.ranges.slice(0,ft).concat(vn),ft),{origin:"*mouse",scroll:!1}),a.scrollIntoView($r)}else{var ta=qe,Zi=Nl(a,$r,re.unit),Ni=ta.anchor,Oi;rr(Zi.anchor,Ni)>0?(Oi=Zi.head,Ni=pr(ta.from(),Zi.anchor)):(Oi=Zi.anchor,Ni=ar(ta.to(),Zi.head));var Ci=ht.ranges.slice(0);Ci[ft]=Uu(a,new ii(ir(Fe,Ni),Oi)),zi(Fe,ya(a,Ci,ft),et)}}var Ut=de.wrapper.getBoundingClientRect(),hr=0;function Ar($r){var vn=++hr,In=wa(a,$r,!0,re.unit=="rectangle");if(In)if(rr(In,Dt)!=0){a.curOp.focus=ke(),Ht(In);var Cn=Da(de,Fe);(In.line>=Cn.to||In.line<Cn.from)&&setTimeout(Ii(a,function(){hr==vn&&Ar($r)}),150)}else{var Yn=$r.clientY<Ut.top?-20:$r.clientY>Ut.bottom?20:0;Yn&&setTimeout(Ii(a,function(){hr==vn&&(de.scroller.scrollTop+=Yn,Ar($r))}),50)}}function Hr($r){a.state.selectingText=!1,hr=1/0,$r&&(It($r),de.input.focus()),wt(de.wrapper.ownerDocument,"mousemove",Qr),wt(de.wrapper.ownerDocument,"mouseup",ln),Fe.history.lastSelOrigin=null}var Qr=Ii(a,function($r){$r.buttons===0||!zr($r)?Hr($r):Ar($r)}),ln=Ii(a,Hr);a.state.selectingText=ln,mt(de.wrapper.ownerDocument,"mousemove",Qr),mt(de.wrapper.ownerDocument,"mouseup",ln)}function Uu(a,b){var ae=b.anchor,re=b.head,de=Bt(a.doc,ae.line);if(rr(ae,re)==0&&ae.sticky==re.sticky)return b;var Fe=$e(de);if(!Fe)return b;var qe=pe(Fe,ae.ch,ae.sticky),ft=Fe[qe];if(ft.from!=ae.ch&&ft.to!=ae.ch)return b;var ht=qe+(ft.from==ae.ch==(ft.level!=1)?0:1);if(ht==0||ht==Fe.length)return b;var vt;if(re.line!=ae.line)vt=(re.line-ae.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var St=pe(Fe,re.ch,re.sticky),Dt=St-qe||(re.ch-ae.ch)*(ft.level==1?-1:1);St==ht-1||St==ht?vt=Dt<0:vt=Dt>0}var Ht=Fe[ht+(vt?-1:0)],Ut=vt==(Ht.level==1),hr=Ut?Ht.from:Ht.to,Ar=Ut?"after":"before";return ae.ch==hr&&ae.sticky==Ar?b:new ii(new Ot(ae.line,hr,Ar),re)}function Ml(a,b,ae,re){var de,Fe;if(b.touches)de=b.touches[0].clientX,Fe=b.touches[0].clientY;else try{de=b.clientX,Fe=b.clientY}catch(Ht){return!1}if(de>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;re&&It(b);var qe=a.display,ft=qe.lineDiv.getBoundingClientRect();if(Fe>ft.bottom||!kt(a,ae))return Kt(b);Fe-=ft.top-qe.viewOffset;for(var ht=0;ht<a.display.gutterSpecs.length;++ht){var vt=qe.gutters.childNodes[ht];if(vt&&vt.getBoundingClientRect().right>=de){var St=_t(a.doc,Fe),Dt=a.display.gutterSpecs[ht];return bt(a,ae,a,St,Dt.className,b),Kt(b)}}}function Ns(a,b){return Ml(a,b,"gutterClick",!0)}function Il(a,b){ci(a.display,b)||Zu(a,b)||yt(a,b,"contextmenu")||xe||a.display.input.onContextMenu(b)}function Zu(a,b){return kt(a,"gutterContextMenu")?Ml(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(re,de,Fe,qe){a.defaults[re]=de,Fe&&(b[re]=qe?function(ft,ht,vt){vt!=bo&&Fe(ft,ht,vt)}:Fe)}a.defineOption=ae,a.Init=bo,ae("value","",function(re,de){return re.setValue(de)},!0),ae("mode",null,function(re,de){re.doc.modeOption=de,Cs(re)},!0),ae("indentUnit",2,Cs,!0),ae("indentWithTabs",!1),ae("smartIndent",!0),ae("tabSize",4,function(re){Lo(re),Ca(re),Ui(re)},!0),ae("lineSeparator",null,function(re,de){if(re.doc.lineSep=de,!!de){var Fe=[],qe=re.doc.first;re.doc.iter(function(ht){for(var vt=0;;){var St=ht.text.indexOf(de,vt);if(St==-1)break;vt=St+de.length,Fe.push(Ot(qe,St))}qe++});for(var ft=Fe.length-1;ft>=0;ft--)mo(re.doc,de,Fe[ft],Ot(Fe[ft].line,Fe[ft].ch+de.length))}}),ae("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,de,Fe){re.state.specialChars=new RegExp(de.source+(de.test(" ")?"":"| "),"g"),Fe!=bo&&re.refresh()}),ae("specialCharPlaceholder",Nn,function(re){return re.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(re,de){return re.getInputField().spellcheck=de},!0),ae("autocorrect",!1,function(re,de){return re.getInputField().autocorrect=de},!0),ae("autocapitalize",!1,function(re,de){return re.getInputField().autocapitalize=de},!0),ae("rtlMoveVisually",!ve),ae("wholeLineUpdateBefore",!0),ae("theme","default",function(re){Ll(re),Io(re)},!0),ae("keyMap","default",function(re,de,Fe){var qe=ds(de),ft=Fe!=bo&&ds(Fe);ft&&ft.detach&&ft.detach(re,qe),qe.attach&&qe.attach(re,ft||null)}),ae("extraKeys",null),ae("configureMouse",null),ae("lineWrapping",!1,Gu,!0),ae("gutters",[],function(re,de){re.display.gutterSpecs=Ss(de,re.options.lineNumbers),Io(re)},!0),ae("fixedGutter",!0,function(re,de){re.display.gutters.style.left=de?$a(re.display)+"px":"0",re.refresh()},!0),ae("coverGutterNextToScrollbar",!1,function(re){return Mi(re)},!0),ae("scrollbarStyle","native",function(re){xa(re),Mi(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),ae("lineNumbers",!1,function(re,de){re.display.gutterSpecs=Ss(re.options.gutters,de),Io(re)},!0),ae("firstLineNumber",1,Io,!0),ae("lineNumberFormatter",function(re){return re},Io,!0),ae("showCursorWhenSelecting",!1,Wa,!0),ae("resetSelectionOnContextMenu",!0),ae("lineWiseCopyCut",!0),ae("pasteLinesPerSelection",!0),ae("selectionsMayTouch",!1),ae("readOnly",!1,function(re,de){de=="nocursor"&&(Ua(re),re.display.input.blur()),re.display.input.readOnlyChanged(de)}),ae("screenReaderLabel",null,function(re,de){de=de===""?null:de,re.display.input.screenReaderLabelChanged(de)}),ae("disableInput",!1,function(re,de){de||re.display.input.reset()},!0),ae("dragDrop",!0,zu),ae("allowDropFileTypes",null),ae("cursorBlinkRate",530),ae("cursorScrollMargin",0),ae("cursorHeight",1,Wa,!0),ae("singleCursorHeightPerLine",!0,Wa,!0),ae("workTime",100),ae("workDelay",100),ae("flattenSpans",!0,Lo,!0),ae("addModeClass",!1,Lo,!0),ae("pollInterval",100),ae("undoDepth",200,function(re,de){return re.doc.history.undoDepth=de}),ae("historyEventDelay",1250),ae("viewportMargin",10,function(re){return re.refresh()},!0),ae("maxHighlightLength",1e4,Lo,!0),ae("moveInputWithCursor",!0,function(re,de){de||re.display.input.resetPosition()}),ae("tabindex",null,function(re,de){return re.display.input.getField().tabIndex=de||""}),ae("autofocus",null),ae("direction","ltr",function(re,de){return re.doc.setDirection(de)},!0),ae("phrases",null)}function zu(a,b,ae){var re=ae&&ae!=bo;if(!b!=!re){var de=a.display.dragFunctions,Fe=b?mt:wt;Fe(a.display.scroller,"dragstart",de.start),Fe(a.display.scroller,"dragenter",de.enter),Fe(a.display.scroller,"dragover",de.over),Fe(a.display.scroller,"dragleave",de.leave),Fe(a.display.scroller,"drop",de.drop)}}function Gu(a){a.options.lineWrapping?(_e(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(je(a.display.wrapper,"CodeMirror-wrap"),Jr(a)),Co(a),Ui(a),Ca(a),setTimeout(function(){return Mi(a)},100)}function gi(a,b){var ae=this;if(!(this instanceof gi))return new gi(a,b);this.options=b=b?ut(b):{},ut(Bl,b,!1);var re=b.value;typeof re=="string"?re=new qi(re,b.mode,null,b.lineSeparator,b.direction):b.mode&&(re.modeOption=b.mode),this.doc=re;var de=new gi.inputStyles[b.inputStyle](this),Fe=this.display=new iu(a,re,de,b);Fe.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 We,keySeq:null,specialChars:null},b.autofocus&&!ue&&Fe.input.focus(),be&&x<11&&setTimeout(function(){return ae.display.input.reset(!0)},20),Ku(this),Eu(),fa(this),this.curOp.forceUpdate=!0,Ys(this,re),b.autofocus&&!ue||this.hasFocus()?setTimeout(function(){ae.hasFocus()&&!ae.state.focused&&Do(ae)},20):Ua(this);for(var qe in ps)ps.hasOwnProperty(qe)&&ps[qe](this,b[qe],bo);Zs(this),b.finishInit&&b.finishInit(this);for(var ft=0;ft<Ms.length;++ft)Ms[ft](this);ga(this),z&&b.lineWrapping&&getComputedStyle(Fe.lineDiv).textRendering=="optimizelegibility"&&(Fe.lineDiv.style.textRendering="auto")}gi.defaults=Bl,gi.optionHandlers=ps;function Ku(a){var b=a.display;mt(b.scroller,"mousedown",Ii(a,Rl)),be&&x<11?mt(b.scroller,"dblclick",Ii(a,function(ht){if(!yt(a,ht)){var vt=wa(a,ht);if(!(!vt||Ns(a,ht)||ci(a.display,ht))){It(ht);var St=a.findWordAt(vt);ss(a.doc,St.anchor,St.head)}}})):mt(b.scroller,"dblclick",function(ht){return yt(a,ht)||It(ht)}),mt(b.scroller,"contextmenu",function(ht){return Il(a,ht)}),mt(b.input.getField(),"contextmenu",function(ht){b.scroller.contains(ht.target)||Il(a,ht)});var ae,re={end:0};function de(){b.activeTouch&&(ae=setTimeout(function(){return b.activeTouch=null},1e3),re=b.activeTouch,re.end=+new Date)}function Fe(ht){if(ht.touches.length!=1)return!1;var vt=ht.touches[0];return vt.radiusX<=1&&vt.radiusY<=1}function qe(ht,vt){if(vt.left==null)return!0;var St=vt.left-ht.left,Dt=vt.top-ht.top;return St*St+Dt*Dt>20*20}mt(b.scroller,"touchstart",function(ht){if(!yt(a,ht)&&!Fe(ht)&&!Ns(a,ht)){b.input.ensurePolled(),clearTimeout(ae);var vt=+new Date;b.activeTouch={start:vt,moved:!1,prev:vt-re.end<=300?re:null},ht.touches.length==1&&(b.activeTouch.left=ht.touches[0].pageX,b.activeTouch.top=ht.touches[0].pageY)}}),mt(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),mt(b.scroller,"touchend",function(ht){var vt=b.activeTouch;if(vt&&!ci(b,ht)&&vt.left!=null&&!vt.moved&&new Date-vt.start<300){var St=a.coordsChar(b.activeTouch,"page"),Dt;!vt.prev||qe(vt,vt.prev)?Dt=new ii(St,St):!vt.prev.prev||qe(vt,vt.prev.prev)?Dt=a.findWordAt(St):Dt=new ii(Ot(St.line,0),ir(a.doc,Ot(St.line+1,0))),a.setSelection(Dt.anchor,Dt.head),a.focus(),It(ht)}de()}),mt(b.scroller,"touchcancel",de),mt(b.scroller,"scroll",function(){b.scroller.clientHeight&&(Oa(a,b.scroller.scrollTop),Pa(a,b.scroller.scrollLeft,!0),bt(a,"scroll",a))}),mt(b.scroller,"mousewheel",function(ht){return Gs(a,ht)}),mt(b.scroller,"DOMMouseScroll",function(ht){return Gs(a,ht)}),mt(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(ht){yt(a,ht)||Pr(ht)},over:function(ht){yt(a,ht)||(Su(a,ht),Pr(ht))},start:function(ht){return xu(a,ht)},drop:Ii(a,wu),leave:function(ht){yt(a,ht)||wl(a)}};var ft=b.input.getField();mt(ft,"keyup",function(ht){return Ol.call(a,ht)}),mt(ft,"keydown",Ii(a,jl)),mt(ft,"keypress",Ii(a,Pl)),mt(ft,"focus",function(ht){return Do(a,ht)}),mt(ft,"blur",function(ht){return Ua(a,ht)})}var Ms=[];gi.defineInitHook=function(a){return Ms.push(a)};function Jo(a,b,ae,re){var de=a.doc,Fe;ae==null&&(ae="add"),ae=="smart"&&(de.mode.indent?Fe=Pn(a,b).state:ae="prev");var qe=a.options.tabSize,ft=Bt(de,b),ht=Ie(ft.text,null,qe);ft.stateAfter&&(ft.stateAfter=null);var vt=ft.text.match(/^\s*/)[0],St;if(!re&&!/\S/.test(ft.text))St=0,ae="not";else if(ae=="smart"&&(St=de.mode.indent(Fe,ft.text.slice(vt.length),ft.text),St==nt||St>150)){if(!re)return;ae="prev"}ae=="prev"?b>de.first?St=Ie(Bt(de,b-1).text,null,qe):St=0:ae=="add"?St=ht+a.options.indentUnit:ae=="subtract"?St=ht-a.options.indentUnit:typeof ae=="number"&&(St=ht+ae),St=Math.max(0,St);var Dt="",Ht=0;if(a.options.indentWithTabs)for(var Ut=Math.floor(St/qe);Ut;--Ut)Ht+=qe,Dt+=" ";if(Ht<St&&(Dt+=lt(St-Ht)),Dt!=vt)return mo(de,Dt,Ot(b,0),Ot(b,vt.length),"+input"),ft.stateAfter=null,!0;for(var hr=0;hr<de.sel.ranges.length;hr++){var Ar=de.sel.ranges[hr];if(Ar.head.line==b&&Ar.head.ch<vt.length){var Hr=Ot(b,vt.length);_s(de,hr,new ii(Hr,Hr));break}}}var ba=null;function ms(a){ba=a}function Is(a,b,ae,re,de){var Fe=a.doc;a.display.shift=!1,re||(re=Fe.sel);var qe=+new Date-200,ft=de=="paste"||a.state.pasteIncoming>qe,ht=fn(b),vt=null;if(ft&&re.ranges.length>1)if(ba&&ba.text.join(`
`)==b){if(re.ranges.length%ba.text.length==0){vt=[];for(var St=0;St<ba.text.length;St++)vt.push(Fe.splitLines(ba.text[St]))}}else ht.length==re.ranges.length&&a.options.pasteLinesPerSelection&&(vt=He(ht,function(Qr){return[Qr]}));for(var Dt=a.curOp.updateInput,Ht=re.ranges.length-1;Ht>=0;Ht--){var Ut=re.ranges[Ht],hr=Ut.from(),Ar=Ut.to();Ut.empty()&&(ae&&ae>0?hr=Ot(hr.line,hr.ch-ae):a.state.overwrite&&!ft?Ar=Ot(Ar.line,Math.min(Bt(Fe,Ar.line).text.length,Ar.ch+st(ht).length)):ft&&ba&&ba.lineWise&&ba.text.join(`
`)==ht.join(`
`)&&(hr=Ar=Ot(hr.line,0)));var Hr={from:hr,to:Ar,text:vt?vt[Ht%vt.length]:ht,origin:de||(ft?"paste":a.state.cutIncoming>qe?"cut":"+input")};po(a.doc,Hr),qn(a,"inputRead",a,Hr)}b&&!ft&&Wl(a,b),ja(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Dt),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 Wl(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ae=a.doc.sel,re=ae.ranges.length-1;re>=0;re--){var de=ae.ranges[re];if(!(de.head.ch>100||re&&ae.ranges[re-1].head.line==de.head.line)){var Fe=a.getModeAt(de.head),qe=!1;if(Fe.electricChars){for(var ft=0;ft<Fe.electricChars.length;ft++)if(b.indexOf(Fe.electricChars.charAt(ft))>-1){qe=Jo(a,de.head.line,"smart");break}}else Fe.electricInput&&Fe.electricInput.test(Bt(a.doc,de.head.line).text.slice(0,de.head.ch))&&(qe=Jo(a,de.head.line,"smart"));qe&&qn(a,"electricInput",a,de.head.line)}}}function Ul(a){for(var b=[],ae=[],re=0;re<a.doc.sel.ranges.length;re++){var de=a.doc.sel.ranges[re].head.line,Fe={anchor:Ot(de,0),head:Ot(de+1,0)};ae.push(Fe),b.push(a.getRange(Fe.anchor,Fe.head))}return{text:b,ranges:ae}}function Zl(a,b,ae,re){a.setAttribute("autocorrect",ae?"":"off"),a.setAttribute("autocapitalize",re?"":"off"),a.setAttribute("spellcheck",!!b)}function Hl(){var a=ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=ye("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return z?a.style.width="1000px":a.setAttribute("wrap","off"),te&&(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(re,de){var Fe=this.options,qe=Fe[re];Fe[re]==de&&re!="mode"||(Fe[re]=de,b.hasOwnProperty(re)&&Ii(this,b[re])(this,de,qe),bt(this,"optionChange",this,re))},getOption:function(re){return this.options[re]},getDoc:function(){return this.doc},addKeyMap:function(re,de){this.state.keyMaps[de?"push":"unshift"](ds(re))},removeKeyMap:function(re){for(var de=this.state.keyMaps,Fe=0;Fe<de.length;++Fe)if(de[Fe]==re||de[Fe].name==re)return de.splice(Fe,1),!0},addOverlay:Xi(function(re,de){var Fe=re.token?re:a.getMode(this.options,re);if(Fe.startState)throw new Error("Overlays may not be stateful.");Ne(this.state.overlays,{mode:Fe,modeSpec:re,opaque:de&&de.opaque,priority:de&&de.priority||0},function(qe){return qe.priority}),this.state.modeGen++,Ui(this)}),removeOverlay:Xi(function(re){for(var de=this.state.overlays,Fe=0;Fe<de.length;++Fe){var qe=de[Fe].modeSpec;if(qe==re||typeof re=="string"&&qe.name==re){de.splice(Fe,1),this.state.modeGen++,Ui(this);return}}}),indentLine:Xi(function(re,de,Fe){typeof de!="string"&&typeof de!="number"&&(de==null?de=this.options.smartIndent?"smart":"prev":de=de?"add":"subtract"),dr(this.doc,re)&&Jo(this,re,de,Fe)}),indentSelection:Xi(function(re){for(var de=this.doc.sel.ranges,Fe=-1,qe=0;qe<de.length;qe++){var ft=de[qe];if(ft.empty())ft.head.line>Fe&&(Jo(this,ft.head.line,re,!0),Fe=ft.head.line,qe==this.doc.sel.primIndex&&ja(this));else{var ht=ft.from(),vt=ft.to(),St=Math.max(Fe,ht.line);Fe=Math.min(this.lastLine(),vt.line-(vt.ch?0:1))+1;for(var Dt=St;Dt<Fe;++Dt)Jo(this,Dt,re);var Ht=this.doc.sel.ranges;ht.ch==0&&de.length==Ht.length&&Ht[qe].from().ch>0&&_s(this.doc,qe,new ii(ht,Ht[qe].to()),Xe)}}}),getTokenAt:function(re,de){return An(this,re,de)},getLineTokens:function(re,de){return An(this,Ot(re),de,!0)},getTokenTypeAt:function(re){re=ir(this.doc,re);var de=kn(this,Bt(this.doc,re.line)),Fe=0,qe=(de.length-1)/2,ft=re.ch,ht;if(ft==0)ht=de[2];else for(;;){var vt=Fe+qe>>1;if((vt?de[vt*2-1]:0)>=ft)qe=vt;else if(de[vt*2+1]<ft)Fe=vt+1;else{ht=de[vt*2+2];break}}var St=ht?ht.indexOf("overlay "):-1;return St<0?ht:St==0?null:ht.slice(0,St-1)},getModeAt:function(re){var de=this.doc.mode;return de.innerMode?a.innerMode(de,this.getTokenAt(re).state).mode:de},getHelper:function(re,de){return this.getHelpers(re,de)[0]},getHelpers:function(re,de){var Fe=[];if(!ae.hasOwnProperty(de))return Fe;var qe=ae[de],ft=this.getModeAt(re);if(typeof ft[de]=="string")qe[ft[de]]&&Fe.push(qe[ft[de]]);else if(ft[de])for(var ht=0;ht<ft[de].length;ht++){var vt=qe[ft[de][ht]];vt&&Fe.push(vt)}else ft.helperType&&qe[ft.helperType]?Fe.push(qe[ft.helperType]):qe[ft.name]&&Fe.push(qe[ft.name]);for(var St=0;St<qe._global.length;St++){var Dt=qe._global[St];Dt.pred(ft,this)&&it(Fe,Dt.val)==-1&&Fe.push(Dt.val)}return Fe},getStateAfter:function(re,de){var Fe=this.doc;return re=Cr(Fe,re==null?Fe.first+Fe.size-1:re),Pn(this,re+1,de).state},cursorCoords:function(re,de){var Fe,qe=this.doc.sel.primary();return re==null?Fe=qe.head:typeof re=="object"?Fe=ir(this.doc,re):Fe=re?qe.from():qe.to(),di(this,Fe,de||"page")},charCoords:function(re,de){return Wi(this,ir(this.doc,re),de||"page")},coordsChar:function(re,de){return re=Ta(this,re,de||"page"),vi(this,re.left,re.top)},lineAtHeight:function(re,de){return re=Ta(this,{top:re,left:0},de||"page").top,_t(this.doc,re+this.display.viewOffset)},heightAtLine:function(re,de,Fe){var qe=!1,ft;if(typeof re=="number"){var ht=this.doc.first+this.doc.size-1;re<this.doc.first?re=this.doc.first:re>ht&&(re=ht,qe=!0),ft=Bt(this.doc,re)}else ft=re;return ka(this,ft,{top:0,left:0},de||"page",Fe||qe).top+(qe?this.doc.height-Br(ft):0)},defaultTextHeight:function(){return Pi(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(re,de,Fe,qe,ft){var ht=this.display;re=di(this,ir(this.doc,re));var vt=re.bottom,St=re.left;if(de.style.position="absolute",de.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(de),ht.sizer.appendChild(de),qe=="over")vt=re.top;else if(qe=="above"||qe=="near"){var Dt=Math.max(ht.wrapper.clientHeight,this.doc.height),Ht=Math.max(ht.sizer.clientWidth,ht.lineSpace.clientWidth);(qe=="above"||re.bottom+de.offsetHeight>Dt)&&re.top>de.offsetHeight?vt=re.top-de.offsetHeight:re.bottom+de.offsetHeight<=Dt&&(vt=re.bottom),St+de.offsetWidth>Ht&&(St=Ht-de.offsetWidth)}de.style.top=vt+"px",de.style.left=de.style.right="",ft=="right"?(St=ht.sizer.clientWidth-de.offsetWidth,de.style.right="0px"):(ft=="left"?St=0:ft=="middle"&&(St=(ht.sizer.clientWidth-de.offsetWidth)/2),de.style.left=St+"px"),Fe&&ts(this,{left:St,top:vt,right:St+de.offsetWidth,bottom:vt+de.offsetHeight})},triggerOnKeyDown:Xi(jl),triggerOnKeyPress:Xi(Pl),triggerOnKeyUp:Ol,triggerOnMouseDown:Xi(Rl),execCommand:function(re){if(Ko.hasOwnProperty(re))return Ko[re].call(null,this)},triggerElectric:Xi(function(re){Wl(this,re)}),findPosH:function(re,de,Fe,qe){var ft=1;de<0&&(ft=-1,de=-de);for(var ht=ir(this.doc,re),vt=0;vt<de&&(ht=Ls(this.doc,ht,ft,Fe,qe),!ht.hitSide);++vt);return ht},moveH:Xi(function(re,de){var Fe=this;this.extendSelectionsBy(function(qe){return Fe.display.shift||Fe.doc.extend||qe.empty()?Ls(Fe.doc,qe.head,re,de,Fe.options.rtlMoveVisually):re<0?qe.from():qe.to()},Ye)}),deleteH:Xi(function(re,de){var Fe=this.doc.sel,qe=this.doc;Fe.somethingSelected()?qe.replaceSelection("",null,"+delete"):yo(this,function(ft){var ht=Ls(qe,ft.head,re,de,!1);return re<0?{from:ht,to:ft.head}:{from:ft.head,to:ht}})}),findPosV:function(re,de,Fe,qe){var ft=1,ht=qe;de<0&&(ft=-1,de=-de);for(var vt=ir(this.doc,re),St=0;St<de;++St){var Dt=di(this,vt,"div");if(ht==null?ht=Dt.left:Dt.left=ht,vt=zl(this,Dt,ft,Fe),vt.hitSide)break}return vt},moveV:Xi(function(re,de){var Fe=this,qe=this.doc,ft=[],ht=!this.display.shift&&!qe.extend&&qe.sel.somethingSelected();if(qe.extendSelectionsBy(function(St){if(ht)return re<0?St.from():St.to();var Dt=di(Fe,St.head,"div");St.goalColumn!=null&&(Dt.left=St.goalColumn),ft.push(Dt.left);var Ht=zl(Fe,Dt,re,de);return de=="page"&&St==qe.sel.primary()&&co(Fe,Wi(Fe,Ht,"div").top-Dt.top),Ht},Ye),ft.length)for(var vt=0;vt<qe.sel.ranges.length;vt++)qe.sel.ranges[vt].goalColumn=ft[vt]}),findWordAt:function(re){var de=this.doc,Fe=Bt(de,re.line).text,qe=re.ch,ft=re.ch;if(Fe){var ht=this.getHelper(re,"wordChars");(re.sticky=="before"||ft==Fe.length)&&qe?--qe:++ft;for(var vt=Fe.charAt(qe),St=pt(vt,ht)?function(Dt){return pt(Dt,ht)}:/\s/.test(vt)?function(Dt){return/\s/.test(Dt)}:function(Dt){return!/\s/.test(Dt)&&!pt(Dt)};qe>0&&St(Fe.charAt(qe-1));)--qe;for(;ft<Fe.length&&St(Fe.charAt(ft));)++ft}return new ii(Ot(re.line,qe),Ot(re.line,ft))},toggleOverwrite:function(re){re!=null&&re==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?_e(this.display.cursorDiv,"CodeMirror-overwrite"):je(this.display.cursorDiv,"CodeMirror-overwrite"),bt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ke()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Xi(function(re,de){qa(this,re,de)}),getScrollInfo:function(){var re=this.display.scroller;return{left:re.scrollLeft,top:re.scrollTop,height:re.scrollHeight-ni(this)-this.display.barHeight,width:re.scrollWidth-ni(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:sa(this)}},scrollIntoView:Xi(function(re,de){re==null?(re={from:this.doc.sel.primary().head,to:null},de==null&&(de=this.options.cursorScrollMargin)):typeof re=="number"?re={from:Ot(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=de||0,re.from.line!=null?rs(this,re):Ro(this,re.from,re.to,re.margin)}),setSize:Xi(function(re,de){var Fe=this,qe=function(ht){return typeof ht=="number"||/^\d+$/.test(String(ht))?ht+"px":ht};re!=null&&(this.display.wrapper.style.width=qe(re)),de!=null&&(this.display.wrapper.style.height=qe(de)),this.options.lineWrapping&&Ba(this);var ft=this.display.viewFrom;this.doc.iter(ft,this.display.viewTo,function(ht){if(ht.widgets){for(var vt=0;vt<ht.widgets.length;vt++)if(ht.widgets[vt].noHScroll){ca(Fe,ft,"widget");break}}++ft}),this.curOp.forceUpdate=!0,bt(this,"refresh",this)}),operation:function(re){return aa(this,re)},startOperation:function(){return fa(this)},endOperation:function(){return ga(this)},refresh:Xi(function(){var re=this.display.cachedTextHeight;Ui(this),this.curOp.forceUpdate=!0,Ca(this),qa(this,this.doc.scrollLeft,this.doc.scrollTop),ws(this.display),(re==null||Math.abs(re-Pi(this.display))>.5||this.options.lineWrapping)&&Co(this),bt(this,"refresh",this)}),swapDoc:Xi(function(re){var de=this.doc;return de.cm=null,this.state.selectingText&&this.state.selectingText(),Ys(this,re),Ca(this),this.display.input.reset(),qa(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,qn(this,"swapDoc",this,de),de}),phrase:function(re){var de=this.options.phrases;return de&&Object.prototype.hasOwnProperty.call(de,re)?de[re]:re},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}},jt(a),a.registerHelper=function(re,de,Fe){ae.hasOwnProperty(re)||(ae[re]=a[re]={_global:[]}),ae[re][de]=Fe},a.registerGlobalHelper=function(re,de,Fe,qe){a.registerHelper(re,de,qe),ae[re]._global.push({pred:Fe,val:qe})}}function Ls(a,b,ae,re,de){var Fe=b,qe=ae,ft=Bt(a,b.line),ht=de&&a.direction=="rtl"?-ae:ae;function vt(){var ln=b.line+ht;return ln<a.first||ln>=a.first+a.size?!1:(b=new Ot(ln,b.ch,b.sticky),ft=Bt(a,ln))}function St(ln){var $r;if(re=="codepoint"){var vn=ft.text.charCodeAt(b.ch+(re>0?0:-1));isNaN(vn)?$r=null:$r=new Ot(b.line,Math.max(0,Math.min(ft.text.length,b.ch+ae*(vn>=55296&&vn<56320?2:1))),-ae)}else de?$r=_u(a.cm,ft,b,ae):$r=js(ft,b,ae);if($r==null)if(!ln&&vt())b=Os(de,a.cm,ft,b.line,ht);else return!1;else b=$r;return!0}if(re=="char"||re=="codepoint")St();else if(re=="column")St(!0);else if(re=="word"||re=="group")for(var Dt=null,Ht=re=="group",Ut=a.cm&&a.cm.getHelper(b,"wordChars"),hr=!0;!(ae<0&&!St(!hr));hr=!1){var Ar=ft.text.charAt(b.ch)||`
`,Hr=pt(Ar,Ut)?"w":Ht&&Ar==`
`?"n":!Ht||/\s/.test(Ar)?null:"p";if(Ht&&!hr&&!Hr&&(Hr="s"),Dt&&Dt!=Hr){ae<0&&(ae=1,St(),b.sticky="after");break}if(Hr&&(Dt=Hr),ae>0&&!St(!hr))break}var Qr=us(a,b,Fe,qe,!0);return wr(Fe,Qr)&&(Qr.hitSide=!0),Qr}function zl(a,b,ae,re){var de=a.doc,Fe=b.left,qe;if(re=="page"){var ft=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ht=Math.max(ft-.5*Pi(a.display),3);qe=(ae>0?b.bottom:b.top)+ae*ht}else re=="line"&&(qe=ae>0?b.bottom+3:b.top-3);for(var vt;vt=vi(a,Fe,qe),!!vt.outside;){if(ae<0?qe<=0:qe>=de.height){vt.hitSide=!0;break}qe+=ae*5}return vt}var si=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new We,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};si.prototype.init=function(a){var b=this,ae=this,re=ae.cm,de=ae.div=a.lineDiv;Zl(de,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function Fe(ft){for(var ht=ft.target;ht;ht=ht.parentNode){if(ht==de)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ht.className))break}return!1}mt(de,"paste",function(ft){!Fe(ft)||yt(re,ft)||Fl(ft,re)||x<=11&&setTimeout(Ii(re,function(){return b.updateFromDOM()}),20)}),mt(de,"compositionstart",function(ft){b.composing={data:ft.data,done:!1}}),mt(de,"compositionupdate",function(ft){b.composing||(b.composing={data:ft.data,done:!1})}),mt(de,"compositionend",function(ft){b.composing&&(ft.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),mt(de,"touchstart",function(){return ae.forceCompositionEnd()}),mt(de,"input",function(){b.composing||b.readFromDOMSoon()});function qe(ft){if(!(!Fe(ft)||yt(re,ft))){if(re.somethingSelected())ms({lineWise:!1,text:re.getSelections()}),ft.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var ht=Ul(re);ms({lineWise:!0,text:ht.text}),ft.type=="cut"&&re.operation(function(){re.setSelections(ht.ranges,0,Xe),re.replaceSelection("",null,"cut")})}else return;if(ft.clipboardData){ft.clipboardData.clearData();var vt=ba.text.join(`
`);if(ft.clipboardData.setData("Text",vt),ft.clipboardData.getData("Text")==vt){ft.preventDefault();return}}var St=Hl(),Dt=St.firstChild;re.display.lineSpace.insertBefore(St,re.display.lineSpace.firstChild),Dt.value=ba.text.join(`
`);var Ht=document.activeElement;Ve(Dt),setTimeout(function(){re.display.lineSpace.removeChild(St),Ht.focus(),Ht==de&&ae.showPrimarySelection()},50)}}mt(de,"copy",qe),mt(de,"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(),re=ae.from(),de=ae.to();if(b.display.viewTo==b.display.viewFrom||re.line>=b.display.viewTo||de.line<b.display.viewFrom){a.removeAllRanges();return}var Fe=vs(b,a.anchorNode,a.anchorOffset),qe=vs(b,a.focusNode,a.focusOffset);if(!(Fe&&!Fe.bad&&qe&&!qe.bad&&rr(pr(Fe,qe),re)==0&&rr(ar(Fe,qe),de)==0)){var ft=b.display.view,ht=re.line>=b.display.viewFrom&&Gl(b,re)||{node:ft[0].measure.map[2],offset:0},vt=de.line<b.display.viewTo&&Gl(b,de);if(!vt){var St=ft[ft.length-1].measure,Dt=St.maps?St.maps[St.maps.length-1]:St.map;vt={node:Dt[Dt.length-1],offset:Dt[Dt.length-2]-Dt[Dt.length-3]}}if(!ht||!vt){a.removeAllRanges();return}var Ht=a.rangeCount&&a.getRangeAt(0),Ut;try{Ut=De(ht.node,ht.offset,vt.offset,vt.node)}catch(hr){}Ut&&(!ze&&b.state.focused?(a.collapse(ht.node,ht.offset),Ut.collapsed||(a.removeAllRanges(),a.addRange(Ut))):(a.removeAllRanges(),a.addRange(Ut)),Ht&&a.anchorNode==null?a.addRange(Ht):ze&&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){ce(this.cm.display.cursorDiv,a.cursors),ce(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 Re(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(se&&oe&&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),re=vs(b,a.focusNode,a.focusOffset);ae&&re&&aa(b,function(){zi(b.doc,Ha(ae,re),Xe),(ae.bad||re.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(),re=ae.from(),de=ae.to();if(re.ch==0&&re.line>a.firstLine()&&(re=Ot(re.line-1,Bt(a.doc,re.line-1).length)),de.ch==Bt(a.doc,de.line).text.length&&de.line<a.lastLine()&&(de=Ot(de.line+1,0)),re.line<b.viewFrom||de.line>b.viewTo-1)return!1;var Fe,qe,ft;re.line==b.viewFrom||(Fe=Aa(a,re.line))==0?(qe=Tt(b.view[0].line),ft=b.view[0].node):(qe=Tt(b.view[Fe].line),ft=b.view[Fe-1].node.nextSibling);var ht=Aa(a,de.line),vt,St;if(ht==b.view.length-1?(vt=b.viewTo-1,St=b.lineDiv.lastChild):(vt=Tt(b.view[ht+1].line)-1,St=b.view[ht+1].node.previousSibling),!ft)return!1;for(var Dt=a.doc.splitLines(Yu(a,ft,St,qe,vt)),Ht=Wt(a.doc,Ot(qe,0),Ot(vt,Bt(a.doc,vt).text.length));Dt.length>1&&Ht.length>1;)if(st(Dt)==st(Ht))Dt.pop(),Ht.pop(),vt--;else if(Dt[0]==Ht[0])Dt.shift(),Ht.shift(),qe++;else break;for(var Ut=0,hr=0,Ar=Dt[0],Hr=Ht[0],Qr=Math.min(Ar.length,Hr.length);Ut<Qr&&Ar.charCodeAt(Ut)==Hr.charCodeAt(Ut);)++Ut;for(var ln=st(Dt),$r=st(Ht),vn=Math.min(ln.length-(Dt.length==1?Ut:0),$r.length-(Ht.length==1?Ut:0));hr<vn&&ln.charCodeAt(ln.length-hr-1)==$r.charCodeAt($r.length-hr-1);)++hr;if(Dt.length==1&&Ht.length==1&&qe==re.line)for(;Ut&&Ut>re.ch&&ln.charCodeAt(ln.length-hr-1)==$r.charCodeAt($r.length-hr-1);)Ut--,hr++;Dt[Dt.length-1]=ln.slice(0,ln.length-hr).replace(/^\u200b+/,""),Dt[0]=Dt[0].slice(Ut).replace(/\u200b+$/,"");var In=Ot(qe,Ut),Cn=Ot(vt,Ht.length?st(Ht).length-hr:0);if(Dt.length>1||Dt[0]||rr(In,Cn))return mo(a.doc,Dt,In,Cn,"+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 Ui(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 re=Bt(a.doc,b.line),de=mi(ae,re,b.line),Fe=$e(re,a.doc.direction),qe="left";if(Fe){var ft=pe(Fe,b.ch);qe=ft%2?"right":"left"}var ht=no(de.map,b.ch,qe);return ht.offset=ht.collapse=="right"?ht.end:ht.start,ht}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,re,de){var Fe="",qe=!1,ft=a.doc.lineSeparator(),ht=!1;function vt(Ut){return function(hr){return hr.id==Ut}}function St(){qe&&(Fe+=ft,ht&&(Fe+=ft),qe=ht=!1)}function Dt(Ut){Ut&&(St(),Fe+=Ut)}function Ht(Ut){if(Ut.nodeType==1){var hr=Ut.getAttribute("cm-text");if(hr){Dt(hr);return}var Ar=Ut.getAttribute("cm-marker"),Hr;if(Ar){var Qr=a.findMarks(Ot(re,0),Ot(de+1,0),vt(+Ar));Qr.length&&(Hr=Qr[0].find(0))&&Dt(Wt(a.doc,Hr.from,Hr.to).join(ft));return}if(Ut.getAttribute("contenteditable")=="false")return;var ln=/^(pre|div|p|li|table|br)$/i.test(Ut.nodeName);if(!/^br$/i.test(Ut.nodeName)&&Ut.textContent.length==0)return;ln&&St();for(var $r=0;$r<Ut.childNodes.length;$r++)Ht(Ut.childNodes[$r]);/^(pre|p)$/i.test(Ut.nodeName)&&(ht=!0),ln&&(qe=!0)}else Ut.nodeType==3&&Dt(Ut.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Ht(b),b!=ae;)b=b.nextSibling,ht=!1;return Fe}function vs(a,b,ae){var re;if(b==a.display.lineDiv){if(re=a.display.lineDiv.childNodes[ae],!re)return wo(a.clipPos(Ot(a.display.viewTo-1)),!0);b=null,ae=0}else for(re=b;;re=re.parentNode){if(!re||re==a.display.lineDiv)return null;if(re.parentNode&&re.parentNode==a.display.lineDiv)break}for(var de=0;de<a.display.view.length;de++){var Fe=a.display.view[de];if(Fe.node==re)return Ju(Fe,b,ae)}}function Ju(a,b,ae){var re=a.text.firstChild,de=!1;if(!b||!Re(re,b))return wo(Ot(Tt(a.line),0),!0);if(b==re&&(de=!0,b=re.childNodes[ae],ae=0,!b)){var Fe=a.rest?st(a.rest):a.line;return wo(Ot(Tt(Fe),Fe.text.length),de)}var qe=b.nodeType==3?b:null,ft=b;for(!qe&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(qe=b.firstChild,ae&&(ae=qe.nodeValue.length));ft.parentNode!=re;)ft=ft.parentNode;var ht=a.measure,vt=ht.maps;function St(Hr,Qr,ln){for(var $r=-1;$r<(vt?vt.length:0);$r++)for(var vn=$r<0?ht.map:vt[$r],In=0;In<vn.length;In+=3){var Cn=vn[In+2];if(Cn==Hr||Cn==Qr){var Yn=Tt($r<0?a.line:a.rest[$r]),ui=vn[In]+ln;return(ln<0||Cn!=Hr)&&(ui=vn[In+(ln?1:0)]),Ot(Yn,ui)}}}var Dt=St(qe,ft,ae);if(Dt)return wo(Dt,de);for(var Ht=ft.nextSibling,Ut=qe?qe.nodeValue.length-ae:0;Ht;Ht=Ht.nextSibling){if(Dt=St(Ht,Ht.firstChild,0),Dt)return wo(Ot(Dt.line,Dt.ch-Ut),de);Ut+=Ht.textContent.length}for(var hr=ft.previousSibling,Ar=ae;hr;hr=hr.previousSibling){if(Dt=St(hr,hr.firstChild,-1),Dt)return wo(Ot(Dt.line,Dt.ch+Ar),de);Ar+=hr.textContent.length}}var Ai=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new We,this.hasSelection=!1,this.composing=null};Ai.prototype.init=function(a){var b=this,ae=this,re=this.cm;this.createField(a);var de=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),te&&(de.style.width="0px"),mt(de,"input",function(){be&&x>=9&&b.hasSelection&&(b.hasSelection=null),ae.poll()}),mt(de,"paste",function(qe){yt(re,qe)||Fl(qe,re)||(re.state.pasteIncoming=+new Date,ae.fastPoll())});function Fe(qe){if(!yt(re,qe)){if(re.somethingSelected())ms({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var ft=Ul(re);ms({lineWise:!0,text:ft.text}),qe.type=="cut"?re.setSelections(ft.ranges,null,Xe):(ae.prevInput="",de.value=ft.text.join(`
`),Ve(de))}else return;qe.type=="cut"&&(re.state.cutIncoming=+new Date)}}mt(de,"cut",Fe),mt(de,"copy",Fe),mt(a.scroller,"paste",function(qe){if(!(ci(a,qe)||yt(re,qe))){if(!de.dispatchEvent){re.state.pasteIncoming=+new Date,ae.focus();return}var ft=new Event("paste");ft.clipboardData=qe.clipboardData,de.dispatchEvent(ft)}}),mt(a.lineSpace,"selectstart",function(qe){ci(a,qe)||It(qe)}),mt(de,"compositionstart",function(){var qe=re.getCursor("from");ae.composing&&ae.composing.range.clear(),ae.composing={start:qe,range:re.markText(qe,re.getCursor("to"),{className:"CodeMirror-composing"})}}),mt(de,"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,re=qo(a);if(a.options.moveInputWithCursor){var de=di(a,ae.sel.primary().head,"div"),Fe=b.wrapper.getBoundingClientRect(),qe=b.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,de.top+qe.top-Fe.top)),re.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,de.left+qe.left-Fe.left))}return re},Ai.prototype.showSelection=function(a){var b=this.cm,ae=b.display;ce(ae.cursorDiv,a.cursors),ce(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&&Ve(this.textarea),be&&x>=9&&(this.hasSelection=ae)}else a||(this.prevInput=this.textarea.value="",be&&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||ke()!=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 re=b.poll();!re&&!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,re=this.prevInput;if(this.contextMenuPending||!b.state.focused||dn(ae)&&!re&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var de=ae.value;if(de==re&&!b.somethingSelected())return!1;if(be&&x>=9&&this.hasSelection===de||fe&&/[\uf700-\uf7ff]/.test(de))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var Fe=de.charCodeAt(0);if(Fe==8203&&!re&&(re="\u200B"),Fe==8666)return this.reset(),this.cm.execCommand("undo")}for(var qe=0,ft=Math.min(re.length,de.length);qe<ft&&re.charCodeAt(qe)==de.charCodeAt(qe);)++qe;return aa(b,function(){Is(b,de.slice(qe),re.length-qe,null,a.composing?"*compose":null),de.length>1e3||de.indexOf(`
`)>-1?ae.value=a.prevInput="":a.prevInput=de,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(){be&&x>=9&&(this.hasSelection=null),this.fastPoll()},Ai.prototype.onContextMenu=function(a){var b=this,ae=b.cm,re=ae.display,de=b.textarea;b.contextMenuPending&&b.contextMenuPending();var Fe=wa(ae,a),qe=re.scroller.scrollTop;if(!Fe||ee)return;var ft=ae.options.resetSelectionOnContextMenu;ft&&ae.doc.sel.contains(Fe)==-1&&Ii(ae,zi)(ae.doc,Ha(Fe),Xe);var ht=de.style.cssText,vt=b.wrapper.style.cssText,St=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",de.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-St.top-5)+"px; left: "+(a.clientX-St.left-5)+`px;
z-index: 1000; background: `+(be?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Dt;z&&(Dt=window.scrollY),re.input.focus(),z&&window.scrollTo(null,Dt),re.input.reset(),ae.somethingSelected()||(de.value=b.prevInput=" "),b.contextMenuPending=Ut,re.selForContextMenu=ae.doc.sel,clearTimeout(re.detectingSelectAll);function Ht(){if(de.selectionStart!=null){var Ar=ae.somethingSelected(),Hr="\u200B"+(Ar?de.value:"");de.value="\u21DA",de.value=Hr,b.prevInput=Ar?"":"\u200B",de.selectionStart=1,de.selectionEnd=Hr.length,re.selForContextMenu=ae.doc.sel}}function Ut(){if(b.contextMenuPending==Ut&&(b.contextMenuPending=!1,b.wrapper.style.cssText=vt,de.style.cssText=ht,be&&x<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=qe),de.selectionStart!=null)){(!be||be&&x<9)&&Ht();var Ar=0,Hr=function(){re.selForContextMenu==ae.doc.sel&&de.selectionStart==0&&de.selectionEnd>0&&b.prevInput=="\u200B"?Ii(ae,ul)(ae):Ar++<10?re.detectingSelectAll=setTimeout(Hr,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(Hr,200)}}if(be&&x>=9&&Ht(),xe){Pr(a);var hr=function(){wt(window,"mouseup",hr),setTimeout(Ut,20)};mt(window,"mouseup",hr)}else setTimeout(Ut,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 Qu(a,b){if(b=b?ut(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=ke();b.autofocus=ae==a||a.getAttribute("autofocus")!=null&&ae==document.body}function re(){a.value=ft.getValue()}var de;if(a.form&&(mt(a.form,"submit",re),!b.leaveSubmitMethodAlone)){var Fe=a.form;de=Fe.submit;try{var qe=Fe.submit=function(){re(),Fe.submit=de,Fe.submit(),Fe.submit=qe}}catch(ht){}}b.finishInit=function(ht){ht.save=re,ht.getTextArea=function(){return a},ht.toTextArea=function(){ht.toTextArea=isNaN,re(),a.parentNode.removeChild(ht.getWrapperElement()),a.style.display="",a.form&&(wt(a.form,"submit",re),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=de))}},a.style.display="none";var ft=gi(function(ht){return a.parentNode.insertBefore(ht,a.nextSibling)},b);return ft}function $u(a){a.off=wt,a.on=mt,a.wheelEventPixels=au,a.Doc=qi,a.splitLines=fn,a.countColumn=Ie,a.findColumn=dt,a.isWordChar=ct,a.Pass=nt,a.signal=bt,a.Line=wn,a.changeEnd=za,a.scrollbarModel=Ra,a.Pos=Ot,a.cmpPos=rr,a.modes=Lt,a.mimeModes=At,a.resolveMode=mr,a.getMode=Sr,a.modeExtensions=Tr,a.extendMode=br,a.copyState=Rr,a.startState=Kr,a.innerMode=Ur,a.commands=Ko,a.keyMap=Ma,a.keyName=kl,a.isModifierKey=El,a.lookupKey=go,a.normalizeKeyMap=Au,a.StringStream=sr,a.SharedTextMarker=Ho,a.TextMarker=Ka,a.LineWidget=Zo,a.e_preventDefault=It,a.e_stopPropagation=vr,a.e_stop=Pr,a.addClass=_e,a.contains=Re,a.rmClass=je,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)&&it(qu,gs)<0&&(gi.prototype[gs]=function(a){return function(){return a.apply(this.doc,arguments)}}(qi.prototype[gs]));return jt(qi),gi.inputStyles={textarea:Ai,contenteditable:si},gi.defineMode=function(a){!gi.defaults.mode&&a!="null"&&(gi.defaults.mode=a),$t.apply(this,arguments)},gi.defineMIME=cr,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=Qu,$u(gi),gi.version="5.58.2",gi})},25419:function(ur,Zt,Je){(function(ze){ze(Je(89780),Je(15525),Je(98101))})(function(ze){"use strict";ze.defineMode("markdown",function(Ct,y){var Te=ze.getMode(Ct,"text/html"),be=Te.name=="null";function x(Ie){if(ze.findModeByName){var We=ze.findModeByName(Ie);We&&(Ie=We.mime||We.mimes[0])}var it=ze.getMode(Ct,Ie);return it.name=="null"?null:it}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 ie in z)z.hasOwnProperty(ie)&&y.tokenTypeOverrides[ie]&&(z[ie]=y.tokenTypeOverrides[ie]);var oe=/^([*\-_])(?:\s*\1){2,}\s*$/,ee=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,le=/^\[(x| )\](?=\s)/i,E=y.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,ne=/^ {0,3}(?:\={1,}|-{2,})\s*$/,te=/^[^#!\[\]*_\\<>` "'(~:]+/,se=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ue=/^\s*\[[^\]]+?\]:.*$/,fe=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,me=" ";function ve(Ie,We,it){return We.f=We.inline=it,it(Ie,We)}function he(Ie,We,it){return We.f=We.block=it,it(Ie,We)}function ge(Ie){return!Ie||!/\S/.test(Ie.string)}function xe(Ie){if(Ie.linkTitle=!1,Ie.linkHref=!1,Ie.linkText=!1,Ie.em=!1,Ie.strong=!1,Ie.strikethrough=!1,Ie.quote=0,Ie.indentedCode=!1,Ie.f==je){var We=be;if(!We){var it=ze.innerMode(Te,Ie.htmlState);We=it.mode.name=="xml"&&it.state.tagStart===null&&!it.state.context&&it.state.tokenize.isInText}We&&(Ie.f=we,Ie.block=Ce,Ie.htmlState=null)}return Ie.trailingSpace=0,Ie.trailingSpaceNewLine=!1,Ie.prevLine=Ie.thisLine,Ie.thisLine={stream:null},null}function Ce(Ie,We){var it=Ie.column()===We.indentation,at=ge(We.prevLine.stream),nt=We.indentedCode,Xe=We.prevLine.hr,et=We.list!==!1,Ye=(We.listStack[We.listStack.length-1]||0)+3;We.indentedCode=!1;var dt=We.indentation;if(We.indentationDiff===null&&(We.indentationDiff=We.indentation,et)){for(We.list=null;dt<We.listStack[We.listStack.length-1];)We.listStack.pop(),We.listStack.length?We.indentation=We.listStack[We.listStack.length-1]:We.list=!1;We.list!==!1&&(We.indentationDiff=dt-We.listStack[We.listStack.length-1])}var tt=!at&&!Xe&&!We.prevLine.header&&(!et||!nt)&&!We.prevLine.fencedCodeEnd,lt=(We.list===!1||Xe||at)&&We.indentation<=Ye&&Ie.match(oe),st=null;if(We.indentationDiff>=4&&(nt||We.prevLine.fencedCodeEnd||We.prevLine.header||at))return Ie.skipToEnd(),We.indentedCode=!0,z.code;if(Ie.eatSpace())return null;if(it&&We.indentation<=Ye&&(st=Ie.match(E))&&st[1].length<=6)return We.quote=0,We.header=st[1].length,We.thisLine.header=!0,y.highlightFormatting&&(We.formatting="header"),We.f=We.inline,ce(We);if(We.indentation<=Ye&&Ie.eat(">"))return We.quote=it?1:We.quote+1,y.highlightFormatting&&(We.formatting="quote"),Ie.eatSpace(),ce(We);if(!lt&&!We.setext&&it&&We.indentation<=Ye&&(st=Ie.match(ee))){var He=st[1]?"ol":"ul";return We.indentation=dt+Ie.current().length,We.list=!0,We.quote=0,We.listStack.push(We.indentation),We.em=!1,We.strong=!1,We.code=!1,We.strikethrough=!1,y.taskLists&&Ie.match(le,!1)&&(We.taskList=!0),We.f=We.inline,y.highlightFormatting&&(We.formatting=["list","list-"+He]),ce(We)}else{if(it&&We.indentation<=Ye&&(st=Ie.match(se,!0)))return We.quote=0,We.fencedEndRE=new RegExp(st[1]+"+ *$"),We.localMode=y.fencedCodeBlockHighlighting&&x(st[2]||y.fencedCodeBlockDefaultMode),We.localMode&&(We.localState=ze.startState(We.localMode)),We.f=We.block=Ee,y.highlightFormatting&&(We.formatting="code-block"),We.code=-1,ce(We);if(We.setext||(!tt||!et)&&!We.quote&&We.list===!1&&!We.code&&!lt&&!ue.test(Ie.string)&&(st=Ie.lookAhead(1))&&(st=st.match(ne)))return We.setext?(We.header=We.setext,We.setext=0,Ie.skipToEnd(),y.highlightFormatting&&(We.formatting="header")):(We.header=st[0].charAt(0)=="="?1:2,We.setext=We.header),We.thisLine.header=!0,We.f=We.inline,ce(We);if(lt)return Ie.skipToEnd(),We.hr=!0,We.thisLine.hr=!0,z.hr;if(Ie.peek()==="[")return ve(Ie,We,Ze)}return ve(Ie,We,We.inline)}function je(Ie,We){var it=Te.token(Ie,We.htmlState);if(!be){var at=ze.innerMode(Te,We.htmlState);(at.mode.name=="xml"&&at.state.tagStart===null&&!at.state.context&&at.state.tokenize.isInText||We.md_inside&&Ie.current().indexOf(">")>-1)&&(We.f=we,We.block=Ce,We.htmlState=null)}return it}function Ee(Ie,We){var it=We.listStack[We.listStack.length-1]||0,at=We.indentation<it,nt=it+3;if(We.fencedEndRE&&We.indentation<=nt&&(at||Ie.match(We.fencedEndRE))){y.highlightFormatting&&(We.formatting="code-block");var Xe;return at||(Xe=ce(We)),We.localMode=We.localState=null,We.block=Ce,We.f=we,We.fencedEndRE=null,We.code=0,We.thisLine.fencedCodeEnd=!0,at?he(Ie,We,We.block):Xe}else return We.localMode?We.localMode.token(Ie,We.localState):(Ie.skipToEnd(),z.code)}function ce(Ie){var We=[];if(Ie.formatting){We.push(z.formatting),typeof Ie.formatting=="string"&&(Ie.formatting=[Ie.formatting]);for(var it=0;it<Ie.formatting.length;it++)We.push(z.formatting+"-"+Ie.formatting[it]),Ie.formatting[it]==="header"&&We.push(z.formatting+"-"+Ie.formatting[it]+"-"+Ie.header),Ie.formatting[it]==="quote"&&(!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Ie.quote?We.push(z.formatting+"-"+Ie.formatting[it]+"-"+Ie.quote):We.push("error"))}if(Ie.taskOpen)return We.push("meta"),We.length?We.join(" "):null;if(Ie.taskClosed)return We.push("property"),We.length?We.join(" "):null;if(Ie.linkHref?We.push(z.linkHref,"url"):(Ie.strong&&We.push(z.strong),Ie.em&&We.push(z.em),Ie.strikethrough&&We.push(z.strikethrough),Ie.emoji&&We.push(z.emoji),Ie.linkText&&We.push(z.linkText),Ie.code&&We.push(z.code),Ie.image&&We.push(z.image),Ie.imageAltText&&We.push(z.imageAltText,"link"),Ie.imageMarker&&We.push(z.imageMarker)),Ie.header&&We.push(z.header,z.header+"-"+Ie.header),Ie.quote&&(We.push(z.quote),!y.maxBlockquoteDepth||y.maxBlockquoteDepth>=Ie.quote?We.push(z.quote+"-"+Ie.quote):We.push(z.quote+"-"+y.maxBlockquoteDepth)),Ie.list!==!1){var at=(Ie.listStack.length-1)%3;at?at===1?We.push(z.list2):We.push(z.list3):We.push(z.list1)}return Ie.trailingSpaceNewLine?We.push("trailing-space-new-line"):Ie.trailingSpace&&We.push("trailing-space-"+(Ie.trailingSpace%2?"a":"b")),We.length?We.join(" "):null}function ye(Ie,We){if(Ie.match(te,!0))return ce(We)}function we(Ie,We){var it=We.text(Ie,We);if(typeof it!="undefined")return it;if(We.list)return We.list=null,ce(We);if(We.taskList){var at=Ie.match(le,!0)[1]===" ";return at?We.taskOpen=!0:We.taskClosed=!0,y.highlightFormatting&&(We.formatting="task"),We.taskList=!1,ce(We)}if(We.taskOpen=!1,We.taskClosed=!1,We.header&&Ie.match(/^#+$/,!0))return y.highlightFormatting&&(We.formatting="header"),ce(We);var nt=Ie.next();if(We.linkTitle){We.linkTitle=!1;var Xe=nt;nt==="("&&(Xe=")"),Xe=(Xe+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var et="^\\s*(?:[^"+Xe+"\\\\]+|\\\\\\\\|\\\\.)"+Xe;if(Ie.match(new RegExp(et),!0))return z.linkHref}if(nt==="`"){var Ye=We.formatting;y.highlightFormatting&&(We.formatting="code"),Ie.eatWhile("`");var dt=Ie.current().length;if(We.code==0&&(!We.quote||dt==1))return We.code=dt,ce(We);if(dt==We.code){var tt=ce(We);return We.code=0,tt}else return We.formatting=Ye,ce(We)}else if(We.code)return ce(We);if(nt==="\\"&&(Ie.next(),y.highlightFormatting)){var lt=ce(We),st=z.formatting+"-escape";return lt?lt+" "+st:st}if(nt==="!"&&Ie.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return We.imageMarker=!0,We.image=!0,y.highlightFormatting&&(We.formatting="image"),ce(We);if(nt==="["&&We.imageMarker&&Ie.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return We.imageMarker=!1,We.imageAltText=!0,y.highlightFormatting&&(We.formatting="image"),ce(We);if(nt==="]"&&We.imageAltText){y.highlightFormatting&&(We.formatting="image");var lt=ce(We);return We.imageAltText=!1,We.image=!1,We.inline=We.f=Re,lt}if(nt==="["&&!We.image)return We.linkText&&Ie.match(/^.*?\]/)||(We.linkText=!0,y.highlightFormatting&&(We.formatting="link")),ce(We);if(nt==="]"&&We.linkText){y.highlightFormatting&&(We.formatting="link");var lt=ce(We);return We.linkText=!1,We.inline=We.f=Ie.match(/\(.*?\)| ?\[.*?\]/,!1)?Re:we,lt}if(nt==="<"&&Ie.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=De,y.highlightFormatting&&(We.formatting="link");var lt=ce(We);return lt?lt+=" ":lt="",lt+z.linkInline}if(nt==="<"&&Ie.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){We.f=We.inline=De,y.highlightFormatting&&(We.formatting="link");var lt=ce(We);return lt?lt+=" ":lt="",lt+z.linkEmail}if(y.xml&&nt==="<"&&Ie.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var He=Ie.string.indexOf(">",Ie.pos);if(He!=-1){var Ne=Ie.string.substring(Ie.start,He);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ne)&&(We.md_inside=!0)}return Ie.backUp(1),We.htmlState=ze.startState(Te),he(Ie,We,je)}if(y.xml&&nt==="<"&&Ie.match(/^\/\w*?>/))return We.md_inside=!1,"tag";if(nt==="*"||nt==="_"){for(var Ge=1,Me=Ie.pos==1?" ":Ie.string.charAt(Ie.pos-2);Ge<3&&Ie.eat(nt);)Ge++;var Ke=Ie.peek()||" ",ct=!/\s/.test(Ke)&&(!fe.test(Ke)||/\s/.test(Me)||fe.test(Me)),pt=!/\s/.test(Me)&&(!fe.test(Me)||/\s/.test(Ke)||fe.test(Ke)),rt=null,Ae=null;if(Ge%2&&(!We.em&&ct&&(nt==="*"||!pt||fe.test(Me))?rt=!0:We.em==nt&&pt&&(nt==="*"||!ct||fe.test(Ke))&&(rt=!1)),Ge>1&&(!We.strong&&ct&&(nt==="*"||!pt||fe.test(Me))?Ae=!0:We.strong==nt&&pt&&(nt==="*"||!ct||fe.test(Ke))&&(Ae=!1)),Ae!=null||rt!=null){y.highlightFormatting&&(We.formatting=rt==null?"strong":Ae==null?"em":"strong em"),rt===!0&&(We.em=nt),Ae===!0&&(We.strong=nt);var tt=ce(We);return rt===!1&&(We.em=!1),Ae===!1&&(We.strong=!1),tt}}else if(nt===" "&&(Ie.eat("*")||Ie.eat("_"))){if(Ie.peek()===" ")return ce(We);Ie.backUp(1)}if(y.strikethrough){if(nt==="~"&&Ie.eatWhile(nt)){if(We.strikethrough){y.highlightFormatting&&(We.formatting="strikethrough");var tt=ce(We);return We.strikethrough=!1,tt}else if(Ie.match(/^[^\s]/,!1))return We.strikethrough=!0,y.highlightFormatting&&(We.formatting="strikethrough"),ce(We)}else if(nt===" "&&Ie.match(/^~~/,!0)){if(Ie.peek()===" ")return ce(We);Ie.backUp(2)}}if(y.emoji&&nt===":"&&Ie.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){We.emoji=!0,y.highlightFormatting&&(We.formatting="emoji");var Pe=ce(We);return We.emoji=!1,Pe}return nt===" "&&(Ie.match(/^ +$/,!1)?We.trailingSpace++:We.trailingSpace&&(We.trailingSpaceNewLine=!0)),ce(We)}function De(Ie,We){var it=Ie.next();if(it===">"){We.f=We.inline=we,y.highlightFormatting&&(We.formatting="link");var at=ce(We);return at?at+=" ":at="",at+z.linkInline}return Ie.match(/^[^>]+/,!0),z.linkInline}function Re(Ie,We){if(Ie.eatSpace())return null;var it=Ie.next();return it==="("||it==="["?(We.f=We.inline=_e(it==="("?")":"]"),y.highlightFormatting&&(We.formatting="link-string"),We.linkHref=!0,ce(We)):"error"}var ke={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function _e(Ie){return function(We,it){var at=We.next();if(at===Ie){it.f=it.inline=we,y.highlightFormatting&&(it.formatting="link-string");var nt=ce(it);return it.linkHref=!1,nt}return We.match(ke[Ie]),it.linkHref=!0,ce(it)}}function Ze(Ie,We){return Ie.match(/^([^\]\\]|\\.)*\]:/,!1)?(We.f=Ve,Ie.next(),y.highlightFormatting&&(We.formatting="link"),We.linkText=!0,ce(We)):ve(Ie,We,we)}function Ve(Ie,We){if(Ie.match(/^\]:/,!0)){We.f=We.inline=Qe,y.highlightFormatting&&(We.formatting="link");var it=ce(We);return We.linkText=!1,it}return Ie.match(/^([^\]\\]|\\.)+/,!0),z.linkText}function Qe(Ie,We){return Ie.eatSpace()?null:(Ie.match(/^[^\s]+/,!0),Ie.peek()===void 0?We.linkTitle=!0:Ie.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),We.f=We.inline=we,z.linkHref+" url")}var ut={startState:function(){return{f:Ce,prevLine:{stream:null},thisLine:{stream:null},block:Ce,htmlState:null,indentation:0,inline:we,text:ye,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(Ie){return{f:Ie.f,prevLine:Ie.prevLine,thisLine:Ie.thisLine,block:Ie.block,htmlState:Ie.htmlState&&ze.copyState(Te,Ie.htmlState),indentation:Ie.indentation,localMode:Ie.localMode,localState:Ie.localMode?ze.copyState(Ie.localMode,Ie.localState):null,inline:Ie.inline,text:Ie.text,formatting:!1,linkText:Ie.linkText,linkTitle:Ie.linkTitle,linkHref:Ie.linkHref,code:Ie.code,em:Ie.em,strong:Ie.strong,strikethrough:Ie.strikethrough,emoji:Ie.emoji,header:Ie.header,setext:Ie.setext,hr:Ie.hr,taskList:Ie.taskList,list:Ie.list,listStack:Ie.listStack.slice(0),quote:Ie.quote,indentedCode:Ie.indentedCode,trailingSpace:Ie.trailingSpace,trailingSpaceNewLine:Ie.trailingSpaceNewLine,md_inside:Ie.md_inside,fencedEndRE:Ie.fencedEndRE}},token:function(Ie,We){if(We.formatting=!1,Ie!=We.thisLine.stream){if(We.header=0,We.hr=!1,Ie.match(/^\s*$/,!0))return xe(We),null;if(We.prevLine=We.thisLine,We.thisLine={stream:Ie},We.taskList=!1,We.trailingSpace=0,We.trailingSpaceNewLine=!1,!We.localState&&(We.f=We.block,We.f!=je)){var it=Ie.match(/^\s*/,!0)[0].replace(/\t/g,me).length;if(We.indentation=it,We.indentationDiff=null,it>0)return null}}return We.f(Ie,We)},innerMode:function(Ie){return Ie.block==je?{state:Ie.htmlState,mode:Te}:Ie.localState?{state:Ie.localState,mode:Ie.localMode}:{state:Ie,mode:ut}},indent:function(Ie,We,it){return Ie.block==je&&Te.indent?Te.indent(Ie.htmlState,We,it):Ie.localState&&Ie.localMode.indent?Ie.localMode.indent(Ie.localState,We,it):ze.Pass},blankLine:xe,getType:ce,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ut},"xml"),ze.defineMIME("text/markdown","markdown"),ze.defineMIME("text/x-markdown","markdown")})},98101:function(ur,Zt,Je){(function(ze){ze(Je(89780))})(function(ze){"use strict";ze.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var Ct=0;Ct<ze.modeInfo.length;Ct++){var y=ze.modeInfo[Ct];y.mimes&&(y.mime=y.mimes[0])}ze.findModeByMIME=function(Te){Te=Te.toLowerCase();for(var be=0;be<ze.modeInfo.length;be++){var x=ze.modeInfo[be];if(x.mime==Te)return x;if(x.mimes){for(var z=0;z<x.mimes.length;z++)if(x.mimes[z]==Te)return x}}if(/\+xml$/.test(Te))return ze.findModeByMIME("application/xml");if(/\+json$/.test(Te))return ze.findModeByMIME("application/json")},ze.findModeByExtension=function(Te){Te=Te.toLowerCase();for(var be=0;be<ze.modeInfo.length;be++){var x=ze.modeInfo[be];if(x.ext){for(var z=0;z<x.ext.length;z++)if(x.ext[z]==Te)return x}}},ze.findModeByFileName=function(Te){for(var be=0;be<ze.modeInfo.length;be++){var x=ze.modeInfo[be];if(x.file&&x.file.test(Te))return x}var z=Te.lastIndexOf("."),ie=z>-1&&Te.substring(z+1,Te.length);if(ie)return ze.findModeByExtension(ie)},ze.findModeByName=function(Te){Te=Te.toLowerCase();for(var be=0;be<ze.modeInfo.length;be++){var x=ze.modeInfo[be];if(x.name.toLowerCase()==Te)return x;if(x.alias){for(var z=0;z<x.alias.length;z++)if(x.alias[z].toLowerCase()==Te)return x}}}})},67549:function(ur,Zt,Je){(function(ze){ze(Je(89780))})(function(ze){"use strict";ze.defineMode("stex",function(Ct,y){"use strict";function Te(te,se){te.cmdState.push(se)}function be(te){return te.cmdState.length>0?te.cmdState[te.cmdState.length-1]:null}function x(te){var se=te.cmdState.pop();se&&se.closeBracket()}function z(te){for(var se=te.cmdState,ue=se.length-1;ue>=0;ue--){var fe=se[ue];if(fe.name!="DEFAULT")return fe}return{styleIdentifier:function(){return null}}}function ie(te,se,ue){return function(){this.name=te,this.bracketNo=0,this.style=se,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 oe={};oe.importmodule=ie("importmodule","tag",["string","builtin"]),oe.documentclass=ie("documentclass","tag",["","atom"]),oe.usepackage=ie("usepackage","tag",["atom"]),oe.begin=ie("begin","tag",["atom"]),oe.end=ie("end","tag",["atom"]),oe.label=ie("label","tag",["atom"]),oe.ref=ie("ref","tag",["atom"]),oe.eqref=ie("eqref","tag",["atom"]),oe.cite=ie("cite","tag",["atom"]),oe.bibitem=ie("bibitem","tag",["atom"]),oe.Bibitem=ie("Bibitem","tag",["atom"]),oe.RBibitem=ie("RBibitem","tag",["atom"]),oe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ee(te,se){te.f=se}function le(te,se){var ue;if(te.match(/^\\[a-zA-Z@]+/)){var fe=te.current().slice(1);return ue=oe.hasOwnProperty(fe)?oe[fe]:oe.DEFAULT,ue=new ue,Te(se,ue),ee(se,ne),ue.style}if(te.match(/^\\[$&%#{}_]/)||te.match(/^\\[,;!\/\\]/))return"tag";if(te.match("\\["))return ee(se,function(ve,he){return E(ve,he,"\\]")}),"keyword";if(te.match("\\("))return ee(se,function(ve,he){return E(ve,he,"\\)")}),"keyword";if(te.match("$$"))return ee(se,function(ve,he){return E(ve,he,"$$")}),"keyword";if(te.match("$"))return ee(se,function(ve,he){return E(ve,he,"$")}),"keyword";var me=te.next();if(me=="%")return te.skipToEnd(),"comment";if(me=="}"||me=="]"){if(ue=be(se),ue)ue.closeBracket(me),ee(se,ne);else return"error";return"bracket"}else return me=="{"||me=="["?(ue=oe.DEFAULT,ue=new ue,Te(se,ue),"bracket"):/\d/.test(me)?(te.eatWhile(/[\w.%]/),"atom"):(te.eatWhile(/[\w\-_]/),ue=z(se),ue.name=="begin"&&(ue.argument=te.current()),ue.styleIdentifier())}function E(te,se,ue){if(te.eatSpace())return null;if(ue&&te.match(ue))return ee(se,le),"keyword";if(te.match(/^\\[a-zA-Z@]+/))return"tag";if(te.match(/^[a-zA-Z]+/))return"variable-2";if(te.match(/^\\[$&%#{}_]/)||te.match(/^\\[,;!\/]/)||te.match(/^[\^_&]/))return"tag";if(te.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(te.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var fe=te.next();return fe=="{"||fe=="}"||fe=="["||fe=="]"||fe=="("||fe==")"?"bracket":fe=="%"?(te.skipToEnd(),"comment"):"error"}function ne(te,se){var ue=te.peek(),fe;return ue=="{"||ue=="["?(fe=be(se),fe.openBracket(ue),te.eat(ue),ee(se,le),"bracket"):/[ \t\r]/.test(ue)?(te.eat(ue),null):(ee(se,le),x(se),le(te,se))}return{startState:function(){var te=y.inMathMode?function(se,ue){return E(se,ue)}:le;return{cmdState:[],f:te}},copyState:function(te){return{cmdState:te.cmdState.slice(),f:te.f}},token:function(te,se){return se.f(te,se)},blankLine:function(te){te.f=le,te.cmdState.length=0},lineComment:"%"}}),ze.defineMIME("text/x-stex","stex"),ze.defineMIME("text/x-latex","stex")})},15525:function(ur,Zt,Je){(function(ze){ze(Je(89780))})(function(ze){"use strict";var Ct={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},y={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ze.defineMode("xml",function(Te,be){var x=Te.indentUnit,z={},ie=be.htmlMode?Ct:y;for(var oe in ie)z[oe]=ie[oe];for(var oe in be)z[oe]=be[oe];var ee,le;function E(De,Re){function ke(Ve){return Re.tokenize=Ve,Ve(De,Re)}var _e=De.next();if(_e=="<")return De.eat("!")?De.eat("[")?De.match("CDATA[")?ke(se("atom","]]>")):null:De.match("--")?ke(se("comment","-->")):De.match("DOCTYPE",!0,!0)?(De.eatWhile(/[\w\._\-]/),ke(ue(1))):null:De.eat("?")?(De.eatWhile(/[\w\._\-]/),Re.tokenize=se("meta","?>"),"meta"):(ee=De.eat("/")?"closeTag":"openTag",Re.tokenize=ne,"tag bracket");if(_e=="&"){var Ze;return De.eat("#")?De.eat("x")?Ze=De.eatWhile(/[a-fA-F\d]/)&&De.eat(";"):Ze=De.eatWhile(/[\d]/)&&De.eat(";"):Ze=De.eatWhile(/[\w\.\-:]/)&&De.eat(";"),Ze?"atom":"error"}else return De.eatWhile(/[^&<]/),null}E.isInText=!0;function ne(De,Re){var ke=De.next();if(ke==">"||ke=="/"&&De.eat(">"))return Re.tokenize=E,ee=ke==">"?"endTag":"selfcloseTag","tag bracket";if(ke=="=")return ee="equals",null;if(ke=="<"){Re.tokenize=E,Re.state=he,Re.tagName=Re.tagStart=null;var _e=Re.tokenize(De,Re);return _e?_e+" tag error":"tag error"}else return/[\'\"]/.test(ke)?(Re.tokenize=te(ke),Re.stringStartCol=De.column(),Re.tokenize(De,Re)):(De.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function te(De){var Re=function(ke,_e){for(;!ke.eol();)if(ke.next()==De){_e.tokenize=ne;break}return"string"};return Re.isInAttribute=!0,Re}function se(De,Re){return function(ke,_e){for(;!ke.eol();){if(ke.match(Re)){_e.tokenize=E;break}ke.next()}return De}}function ue(De){return function(Re,ke){for(var _e;(_e=Re.next())!=null;){if(_e=="<")return ke.tokenize=ue(De+1),ke.tokenize(Re,ke);if(_e==">")if(De==1){ke.tokenize=E;break}else return ke.tokenize=ue(De-1),ke.tokenize(Re,ke)}return"meta"}}function fe(De,Re,ke){this.prev=De.context,this.tagName=Re,this.indent=De.indented,this.startOfLine=ke,(z.doNotIndent.hasOwnProperty(Re)||De.context&&De.context.noIndent)&&(this.noIndent=!0)}function me(De){De.context&&(De.context=De.context.prev)}function ve(De,Re){for(var ke;;){if(!De.context||(ke=De.context.tagName,!z.contextGrabbers.hasOwnProperty(ke)||!z.contextGrabbers[ke].hasOwnProperty(Re)))return;me(De)}}function he(De,Re,ke){return De=="openTag"?(ke.tagStart=Re.column(),ge):De=="closeTag"?xe:he}function ge(De,Re,ke){return De=="word"?(ke.tagName=Re.current(),le="tag",Ee):z.allowMissingTagName&&De=="endTag"?(le="tag bracket",Ee(De,Re,ke)):(le="error",ge)}function xe(De,Re,ke){if(De=="word"){var _e=Re.current();return ke.context&&ke.context.tagName!=_e&&z.implicitlyClosed.hasOwnProperty(ke.context.tagName)&&me(ke),ke.context&&ke.context.tagName==_e||z.matchClosing===!1?(le="tag",Ce):(le="tag error",je)}else return z.allowMissingTagName&&De=="endTag"?(le="tag bracket",Ce(De,Re,ke)):(le="error",je)}function Ce(De,Re,ke){return De!="endTag"?(le="error",Ce):(me(ke),he)}function je(De,Re,ke){return le="error",Ce(De,Re,ke)}function Ee(De,Re,ke){if(De=="word")return le="attribute",ce;if(De=="endTag"||De=="selfcloseTag"){var _e=ke.tagName,Ze=ke.tagStart;return ke.tagName=ke.tagStart=null,De=="selfcloseTag"||z.autoSelfClosers.hasOwnProperty(_e)?ve(ke,_e):(ve(ke,_e),ke.context=new fe(ke,_e,Ze==ke.indented)),he}return le="error",Ee}function ce(De,Re,ke){return De=="equals"?ye:(z.allowMissing||(le="error"),Ee(De,Re,ke))}function ye(De,Re,ke){return De=="string"?we:De=="word"&&z.allowUnquoted?(le="string",Ee):(le="error",Ee(De,Re,ke))}function we(De,Re,ke){return De=="string"?we:Ee(De,Re,ke)}return{startState:function(De){var Re={tokenize:E,state:he,indented:De||0,tagName:null,tagStart:null,context:null};return De!=null&&(Re.baseIndent=De),Re},token:function(De,Re){if(!Re.tagName&&De.sol()&&(Re.indented=De.indentation()),De.eatSpace())return null;ee=null;var ke=Re.tokenize(De,Re);return(ke||ee)&&ke!="comment"&&(le=null,Re.state=Re.state(ee||ke,De,Re),le&&(ke=le=="error"?ke+" error":le)),ke},indent:function(De,Re,ke){var _e=De.context;if(De.tokenize.isInAttribute)return De.tagStart==De.indented?De.stringStartCol+1:De.indented+x;if(_e&&_e.noIndent)return ze.Pass;if(De.tokenize!=ne&&De.tokenize!=E)return ke?ke.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(Re))return 0;var Ze=Re&&/^<(\/)?([\w_:\.-]*)/.exec(Re);if(Ze&&Ze[1])for(;_e;)if(_e.tagName==Ze[2]){_e=_e.prev;break}else if(z.implicitlyClosed.hasOwnProperty(_e.tagName))_e=_e.prev;else break;else if(Ze)for(;_e;){var Ve=z.contextGrabbers[_e.tagName];if(Ve&&Ve.hasOwnProperty(Ze[2]))_e=_e.prev;else break}for(;_e&&_e.prev&&!_e.startOfLine;)_e=_e.prev;return _e?_e.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==ye&&(De.state=Ee)},xmlCurrentTag:function(De){return De.tagName?{name:De.tagName,close:De.type=="closeTag"}:null},xmlCurrentContext:function(De){for(var Re=[],ke=De.context;ke;ke=ke.prev)ke.tagName&&Re.push(ke.tagName);return Re.reverse()}}}),ze.defineMIME("text/xml","xml"),ze.defineMIME("application/xml","xml"),ze.mimeModes.hasOwnProperty("text/html")||ze.defineMIME("text/html",{name:"xml",htmlMode:!0})})},66042:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return Re}});var ze=Je(33885),Ct=Je(42978),y=Je(43403),Te=Je(34280),be=Je(59301),x=be.createContext(null),z=be.createContext({}),ie=x,oe=Je(20068),ee=Je(54476),le=Je(92310),E=Je.n(le),ne=Je(77900),te=Je(10228),se=Je(26112),ue=Je(75931),fe=Je(8654),me=["prefixCls","className","containerRef"],ve=function(_e){var Ze=_e.prefixCls,Ve=_e.className,Qe=_e.containerRef,ut=(0,ue.Z)(_e,me),Ie=be.useContext(z),We=Ie.panel,it=(0,fe.x1)(We,Qe);return be.createElement("div",(0,ee.Z)({className:E()("".concat(Ze,"-content"),Ve),role:"dialog",ref:it},(0,se.Z)(_e,{aria:!0}),{"aria-modal":"true"},ut))},he=ve,ge=Je(48736);function xe(ke){return typeof ke=="string"&&String(Number(ke))===ke?((0,ge.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ke)):ke}function Ce(ke){warning(!("wrapperClassName"in ke),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ke.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var je={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ee(ke,_e){var Ze,Ve,Qe,ut=ke.prefixCls,Ie=ke.open,We=ke.placement,it=ke.inline,at=ke.push,nt=ke.forceRender,Xe=ke.autoFocus,et=ke.keyboard,Ye=ke.classNames,dt=ke.rootClassName,tt=ke.rootStyle,lt=ke.zIndex,st=ke.className,He=ke.id,Ne=ke.style,Ge=ke.motion,Me=ke.width,Ke=ke.height,ct=ke.children,pt=ke.mask,rt=ke.maskClosable,Ae=ke.maskMotion,Pe=ke.maskClassName,Ue=ke.maskStyle,ot=ke.afterOpenChange,Oe=ke.onClose,Se=ke.onMouseEnter,pe=ke.onMouseOver,Be=ke.onMouseLeave,$e=ke.onClick,Le=ke.onKeyDown,mt=ke.onKeyUp,gt=ke.styles,wt=ke.drawerRender,bt=be.useRef(),yt=be.useRef(),Et=be.useRef();be.useImperativeHandle(_e,function(){return bt.current});var kt=function(Ir){var Mt=Ir.keyCode,Lt=Ir.shiftKey;switch(Mt){case te.Z.TAB:{if(Mt===te.Z.TAB){if(!Lt&&document.activeElement===Et.current){var At;(At=yt.current)===null||At===void 0||At.focus({preventScroll:!0})}else if(Lt&&document.activeElement===yt.current){var $t;($t=Et.current)===null||$t===void 0||$t.focus({preventScroll:!0})}}break}case te.Z.ESC:{Oe&&et&&(Ir.stopPropagation(),Oe(Ir));break}}};be.useEffect(function(){if(Ie&&Xe){var Lr;(Lr=bt.current)===null||Lr===void 0||Lr.focus({preventScroll:!0})}},[Ie]);var jt=be.useState(!1),It=(0,Ct.Z)(jt,2),vr=It[0],Kt=It[1],Pr=be.useContext(ie),qt;typeof at=="boolean"?qt=at?{}:{distance:0}:qt=at||{};var zr=(Ze=(Ve=(Qe=qt)===null||Qe===void 0?void 0:Qe.distance)!==null&&Ve!==void 0?Ve:Pr==null?void 0:Pr.pushDistance)!==null&&Ze!==void 0?Ze:180,Vr=be.useMemo(function(){return{pushDistance:zr,push:function(){Kt(!0)},pull:function(){Kt(!1)}}},[zr]);be.useEffect(function(){if(Ie){var Lr;Pr==null||(Lr=Pr.push)===null||Lr===void 0||Lr.call(Pr)}else{var Ir;Pr==null||(Ir=Pr.pull)===null||Ir===void 0||Ir.call(Pr)}},[Ie]),be.useEffect(function(){return function(){var Lr;Pr==null||(Lr=Pr.pull)===null||Lr===void 0||Lr.call(Pr)}},[]);var Xr=pt&&be.createElement(ne.default,(0,ee.Z)({key:"mask"},Ae,{visible:Ie}),function(Lr,Ir){var Mt=Lr.className,Lt=Lr.style;return be.createElement("div",{className:E()("".concat(ut,"-mask"),Mt,Ye==null?void 0:Ye.mask,Pe),style:(0,ze.Z)((0,ze.Z)((0,ze.Z)({},Lt),Ue),gt==null?void 0:gt.mask),onClick:rt&&Ie?Oe:void 0,ref:Ir})}),pn=typeof Ge=="function"?Ge(We):Ge,nn={};if(vr&&zr)switch(We){case"top":nn.transform="translateY(".concat(zr,"px)");break;case"bottom":nn.transform="translateY(".concat(-zr,"px)");break;case"left":nn.transform="translateX(".concat(zr,"px)");break;default:nn.transform="translateX(".concat(-zr,"px)");break}We==="left"||We==="right"?nn.width=xe(Me):nn.height=xe(Ke);var Mr={onMouseEnter:Se,onMouseOver:pe,onMouseLeave:Be,onClick:$e,onKeyDown:Le,onKeyUp:mt},fn=be.createElement(ne.default,(0,ee.Z)({key:"panel"},pn,{visible:Ie,forceRender:nt,onVisibleChanged:function(Ir){ot==null||ot(Ir)},removeOnLeave:!1,leavedClassName:"".concat(ut,"-content-wrapper-hidden")}),function(Lr,Ir){var Mt=Lr.className,Lt=Lr.style,At=be.createElement(he,(0,ee.Z)({id:He,containerRef:Ir,prefixCls:ut,className:E()(st,Ye==null?void 0:Ye.content),style:(0,ze.Z)((0,ze.Z)({},Ne),gt==null?void 0:gt.content)},(0,se.Z)(ke,{aria:!0}),Mr),ct);return be.createElement("div",(0,ee.Z)({className:E()("".concat(ut,"-content-wrapper"),Ye==null?void 0:Ye.wrapper,Mt),style:(0,ze.Z)((0,ze.Z)((0,ze.Z)({},nn),Lt),gt==null?void 0:gt.wrapper)},(0,se.Z)(ke,{data:!0})),wt?wt(At):At)}),dn=(0,ze.Z)({},tt);return lt&&(dn.zIndex=lt),be.createElement(ie.Provider,{value:Vr},be.createElement("div",{className:E()(ut,"".concat(ut,"-").concat(We),dt,(0,oe.Z)((0,oe.Z)({},"".concat(ut,"-open"),Ie),"".concat(ut,"-inline"),it)),style:dn,tabIndex:-1,ref:bt,onKeyDown:kt},Xr,be.createElement("div",{tabIndex:0,ref:yt,style:je,"aria-hidden":"true","data-sentinel":"start"}),fn,be.createElement("div",{tabIndex:0,ref:Et,style:je,"aria-hidden":"true","data-sentinel":"end"})))}var ce=be.forwardRef(Ee),ye=ce,we=function(_e){var Ze=_e.open,Ve=Ze===void 0?!1:Ze,Qe=_e.prefixCls,ut=Qe===void 0?"rc-drawer":Qe,Ie=_e.placement,We=Ie===void 0?"right":Ie,it=_e.autoFocus,at=it===void 0?!0:it,nt=_e.keyboard,Xe=nt===void 0?!0:nt,et=_e.width,Ye=et===void 0?378:et,dt=_e.mask,tt=dt===void 0?!0:dt,lt=_e.maskClosable,st=lt===void 0?!0:lt,He=_e.getContainer,Ne=_e.forceRender,Ge=_e.afterOpenChange,Me=_e.destroyOnClose,Ke=_e.onMouseEnter,ct=_e.onMouseOver,pt=_e.onMouseLeave,rt=_e.onClick,Ae=_e.onKeyDown,Pe=_e.onKeyUp,Ue=_e.panelRef,ot=be.useState(!1),Oe=(0,Ct.Z)(ot,2),Se=Oe[0],pe=Oe[1],Be=be.useState(!1),$e=(0,Ct.Z)(Be,2),Le=$e[0],mt=$e[1];(0,Te.Z)(function(){mt(!0)},[]);var gt=Le?Ve:!1,wt=be.useRef(),bt=be.useRef();(0,Te.Z)(function(){gt&&(bt.current=document.activeElement)},[gt]);var yt=function(vr){var Kt;if(pe(vr),Ge==null||Ge(vr),!vr&&bt.current&&!((Kt=wt.current)!==null&&Kt!==void 0&&Kt.contains(bt.current))){var Pr;(Pr=bt.current)===null||Pr===void 0||Pr.focus({preventScroll:!0})}},Et=be.useMemo(function(){return{panel:Ue}},[Ue]);if(!Ne&&!Se&&!gt&&Me)return null;var kt={onMouseEnter:Ke,onMouseOver:ct,onMouseLeave:pt,onClick:rt,onKeyDown:Ae,onKeyUp:Pe},jt=(0,ze.Z)((0,ze.Z)({},_e),{},{open:gt,prefixCls:ut,placement:We,autoFocus:at,keyboard:Xe,width:Ye,mask:tt,maskClosable:st,inline:He===!1,afterOpenChange:yt,ref:wt},kt);return be.createElement(z.Provider,{value:Et},be.createElement(y.Z,{open:gt||Ne||Se,autoDestroy:!1,getContainer:He,autoLock:tt&&(gt||Se)},be.createElement(ye,jt)))},De=we,Re=De},20922:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return tt}});var ze=Je(54476),Ct=Je(20068),y=Je(76190),Te=Je(42978),be=Je(75931),x=Je(67732),z=Je(83652);function ie(){return typeof BigInt=="function"}function oe(lt){return!lt&&lt!==0&&!Number.isNaN(lt)||!String(lt).trim()}function ee(lt){var st=lt.trim(),He=st.startsWith("-");He&&(st=st.slice(1)),st=st.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),st.startsWith(".")&&(st="0".concat(st));var Ne=st||"0",Ge=Ne.split("."),Me=Ge[0]||"0",Ke=Ge[1]||"0";Me==="0"&&Ke==="0"&&(He=!1);var ct=He?"-":"";return{negative:He,negativeStr:ct,trimStr:Ne,integerStr:Me,decimalStr:Ke,fullStr:"".concat(ct).concat(Ne)}}function le(lt){var st=String(lt);return!Number.isNaN(Number(st))&&st.includes("e")}function E(lt){var st=String(lt);if(le(lt)){var He=Number(st.slice(st.indexOf("e-")+2)),Ne=st.match(/\.(\d+)/);return Ne!=null&&Ne[1]&&(He+=Ne[1].length),He}return st.includes(".")&&te(st)?st.length-st.indexOf(".")-1:0}function ne(lt){var st=String(lt);if(le(lt)){if(lt>Number.MAX_SAFE_INTEGER)return String(ie()?BigInt(lt).toString():Number.MAX_SAFE_INTEGER);if(lt<Number.MIN_SAFE_INTEGER)return String(ie()?BigInt(lt).toString():Number.MIN_SAFE_INTEGER);st=lt.toFixed(E(st))}return ee(st).fullStr}function te(lt){return typeof lt=="number"?!Number.isNaN(lt):lt?/^\s*-?\d+(\.\d+)?\s*$/.test(lt)||/^\s*-?\d+\.\s*$/.test(lt)||/^\s*-?\.\d+\s*$/.test(lt):!1}var se=function(){function lt(st){if((0,x.Z)(this,lt),(0,Ct.Z)(this,"origin",""),(0,Ct.Z)(this,"negative",void 0),(0,Ct.Z)(this,"integer",void 0),(0,Ct.Z)(this,"decimal",void 0),(0,Ct.Z)(this,"decimalLen",void 0),(0,Ct.Z)(this,"empty",void 0),(0,Ct.Z)(this,"nan",void 0),oe(st)){this.empty=!0;return}if(this.origin=String(st),st==="-"||Number.isNaN(st)){this.nan=!0;return}var He=st;if(le(He)&&(He=Number(He)),He=typeof He=="string"?He:ne(He),te(He)){var Ne=ee(He);this.negative=Ne.negative;var Ge=Ne.trimStr.split(".");this.integer=BigInt(Ge[0]);var Me=Ge[1]||"0";this.decimal=BigInt(Me),this.decimalLen=Me.length}else this.nan=!0}return(0,z.Z)(lt,[{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(He){var Ne="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(He,"0"));return BigInt(Ne)}},{key:"negate",value:function(){var He=new lt(this.toString());return He.negative=!He.negative,He}},{key:"cal",value:function(He,Ne,Ge){var Me=Math.max(this.getDecimalStr().length,He.getDecimalStr().length),Ke=this.alignDecimal(Me),ct=He.alignDecimal(Me),pt=Ne(Ke,ct).toString(),rt=Ge(Me),Ae=ee(pt),Pe=Ae.negativeStr,Ue=Ae.trimStr,ot="".concat(Pe).concat(Ue.padStart(rt+1,"0"));return new lt("".concat(ot.slice(0,-rt),".").concat(ot.slice(-rt)))}},{key:"add",value:function(He){if(this.isInvalidate())return new lt(He);var Ne=new lt(He);return Ne.isInvalidate()?this:this.cal(Ne,function(Ge,Me){return Ge+Me},function(Ge){return Ge})}},{key:"multi",value:function(He){var Ne=new lt(He);return this.isInvalidate()||Ne.isInvalidate()?new lt(NaN):this.cal(Ne,function(Ge,Me){return Ge*Me},function(Ge){return Ge*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(He){return this.toString()===(He==null?void 0:He.toString())}},{key:"lessEquals",value:function(He){return this.add(He.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return He?this.isInvalidate()?"":ee("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),lt}(),ue=function(){function lt(st){if((0,x.Z)(this,lt),(0,Ct.Z)(this,"origin",""),(0,Ct.Z)(this,"number",void 0),(0,Ct.Z)(this,"empty",void 0),oe(st)){this.empty=!0;return}this.origin=String(st),this.number=Number(st)}return(0,z.Z)(lt,[{key:"negate",value:function(){return new lt(-this.toNumber())}},{key:"add",value:function(He){if(this.isInvalidate())return new lt(He);var Ne=Number(He);if(Number.isNaN(Ne))return this;var Ge=this.number+Ne;if(Ge>Number.MAX_SAFE_INTEGER)return new lt(Number.MAX_SAFE_INTEGER);if(Ge<Number.MIN_SAFE_INTEGER)return new lt(Number.MIN_SAFE_INTEGER);var Me=Math.max(E(this.number),E(Ne));return new lt(Ge.toFixed(Me))}},{key:"multi",value:function(He){var Ne=Number(He);if(this.isInvalidate()||Number.isNaN(Ne))return new lt(NaN);var Ge=this.number*Ne;if(Ge>Number.MAX_SAFE_INTEGER)return new lt(Number.MAX_SAFE_INTEGER);if(Ge<Number.MIN_SAFE_INTEGER)return new lt(Number.MIN_SAFE_INTEGER);var Me=Math.max(E(this.number),E(Ne));return new lt(Ge.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(He){return this.toNumber()===(He==null?void 0:He.toNumber())}},{key:"lessEquals",value:function(He){return this.add(He.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return He?this.isInvalidate()?"":ne(this.number):this.origin}}]),lt}();function fe(lt){return ie()?new se(lt):new ue(lt)}function me(lt,st,He){var Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(lt==="")return"";var Ge=ee(lt),Me=Ge.negativeStr,Ke=Ge.integerStr,ct=Ge.decimalStr,pt="".concat(st).concat(ct),rt="".concat(Me).concat(Ke);if(He>=0){var Ae=Number(ct[He]);if(Ae>=5&&!Ne){var Pe=fe(lt).add("".concat(Me,"0.").concat("0".repeat(He)).concat(10-Ae));return me(Pe.toString(),st,He,Ne)}return He===0?rt:"".concat(rt).concat(st).concat(ct.padEnd(He,"0").slice(0,He))}return pt===".0"?rt:"".concat(rt).concat(pt)}var ve=fe,he=Je(92310),ge=Je.n(he),xe=Je(36901),Ce=Je(34280);function je(lt,st){return typeof Proxy!="undefined"&&lt?new Proxy(lt,{get:function(Ne,Ge){if(st[Ge])return st[Ge];var Me=Ne[Ge];return typeof Me=="function"?Me.bind(Ne):Me}}):lt}var Ee=Je(8654),ce=Je(59301),ye=Je(48736);function we(lt,st){var He=(0,ce.useRef)(null);function Ne(){try{var Me=lt.selectionStart,Ke=lt.selectionEnd,ct=lt.value,pt=ct.substring(0,Me),rt=ct.substring(Ke);He.current={start:Me,end:Ke,value:ct,beforeTxt:pt,afterTxt:rt}}catch(Ae){}}function Ge(){if(lt&&He.current&&st)try{var Me=lt.value,Ke=He.current,ct=Ke.beforeTxt,pt=Ke.afterTxt,rt=Ke.start,Ae=Me.length;if(Me.startsWith(ct))Ae=ct.length;else if(Me.endsWith(pt))Ae=Me.length-He.current.afterTxt.length;else{var Pe=ct[rt-1],Ue=Me.indexOf(Pe,rt-1);Ue!==-1&&(Ae=Ue+1)}lt.setSelectionRange(Ae,Ae)}catch(ot){(0,ye.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(ot.message))}}return[Ne,Ge]}var De=Je(49658),Re=function(){var st=(0,ce.useState)(!1),He=(0,Te.Z)(st,2),Ne=He[0],Ge=He[1];return(0,Ce.Z)(function(){Ge((0,De.Z)())},[]),Ne},ke=Re,_e=Je(16089),Ze=200,Ve=600;function Qe(lt){var st=lt.prefixCls,He=lt.upNode,Ne=lt.downNode,Ge=lt.upDisabled,Me=lt.downDisabled,Ke=lt.onStep,ct=ce.useRef(),pt=ce.useRef([]),rt=ce.useRef();rt.current=Ke;var Ae=function(){clearTimeout(ct.current)},Pe=function(Le,mt){Le.preventDefault(),Ae(),rt.current(mt);function gt(){rt.current(mt),ct.current=setTimeout(gt,Ze)}ct.current=setTimeout(gt,Ve)};ce.useEffect(function(){return function(){Ae(),pt.current.forEach(function($e){return _e.Z.cancel($e)})}},[]);var Ue=ke();if(Ue)return null;var ot="".concat(st,"-handler"),Oe=ge()(ot,"".concat(ot,"-up"),(0,Ct.Z)({},"".concat(ot,"-up-disabled"),Ge)),Se=ge()(ot,"".concat(ot,"-down"),(0,Ct.Z)({},"".concat(ot,"-down-disabled"),Me)),pe=function(){return pt.current.push((0,_e.Z)(Ae))},Be={unselectable:"on",role:"button",onMouseUp:pe,onMouseLeave:pe};return ce.createElement("div",{className:"".concat(ot,"-wrap")},ce.createElement("span",(0,ze.Z)({},Be,{onMouseDown:function(Le){Pe(Le,!0)},"aria-label":"Increase Value","aria-disabled":Ge,className:Oe}),He||ce.createElement("span",{unselectable:"on",className:"".concat(st,"-handler-up-inner")})),ce.createElement("span",(0,ze.Z)({},Be,{onMouseDown:function(Le){Pe(Le,!1)},"aria-label":"Decrease Value","aria-disabled":Me,className:Se}),Ne||ce.createElement("span",{unselectable:"on",className:"".concat(st,"-handler-down-inner")})))}function ut(lt){var st=typeof lt=="number"?ne(lt):ee(lt).fullStr,He=st.includes(".");return He?ee(st.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:lt+"0"}var Ie=Je(30292),We=function(){var lt=(0,ce.useRef)(0),st=function(){_e.Z.cancel(lt.current)};return(0,ce.useEffect)(function(){return st},[]),function(He){st(),lt.current=(0,_e.Z)(function(){He()})}},it=["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"],at=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],nt=function(st,He){return st||He.isEmpty()?He.toString():He.toNumber()},Xe=function(st){var He=ve(st);return He.isInvalidate()?null:He},et=ce.forwardRef(function(lt,st){var He=lt.prefixCls,Ne=lt.className,Ge=lt.style,Me=lt.min,Ke=lt.max,ct=lt.step,pt=ct===void 0?1:ct,rt=lt.defaultValue,Ae=lt.value,Pe=lt.disabled,Ue=lt.readOnly,ot=lt.upHandler,Oe=lt.downHandler,Se=lt.keyboard,pe=lt.changeOnWheel,Be=pe===void 0?!1:pe,$e=lt.controls,Le=$e===void 0?!0:$e,mt=lt.classNames,gt=lt.stringMode,wt=lt.parser,bt=lt.formatter,yt=lt.precision,Et=lt.decimalSeparator,kt=lt.onChange,jt=lt.onInput,It=lt.onPressEnter,vr=lt.onStep,Kt=lt.changeOnBlur,Pr=Kt===void 0?!0:Kt,qt=lt.domRef,zr=(0,be.Z)(lt,it),Vr="".concat(He,"-input"),Xr=ce.useRef(null),pn=ce.useState(!1),nn=(0,Te.Z)(pn,2),Mr=nn[0],fn=nn[1],dn=ce.useRef(!1),Lr=ce.useRef(!1),Ir=ce.useRef(!1),Mt=ce.useState(function(){return ve(Ae!=null?Ae:rt)}),Lt=(0,Te.Z)(Mt,2),At=Lt[0],$t=Lt[1];function cr(tn){Ae===void 0&&$t(tn)}var mr=ce.useCallback(function(tn,Nr){if(!Nr)return yt>=0?yt:Math.max(E(tn),E(pt))},[yt,pt]),Sr=ce.useCallback(function(tn){var Nr=String(tn);if(wt)return wt(Nr);var Wr=Nr;return Et&&(Wr=Wr.replace(Et,".")),Wr.replace(/[^\w.-]+/g,"")},[wt,Et]),Tr=ce.useRef(""),br=ce.useCallback(function(tn,Nr){if(bt)return bt(tn,{userTyping:Nr,input:String(Tr.current)});var Wr=typeof tn=="number"?ne(tn):tn;if(!Nr){var _r=mr(Wr,Nr);if(te(Wr)&&(Et||_r>=0)){var An=Et||".";Wr=me(Wr,An,_r)}}return Wr},[bt,mr,Et]),Rr=ce.useState(function(){var tn=rt!=null?rt:Ae;return At.isInvalidate()&&["string","number"].includes((0,y.Z)(tn))?Number.isNaN(tn)?"":tn:br(At.toString(),!1)}),Ur=(0,Te.Z)(Rr,2),Kr=Ur[0],sr=Ur[1];Tr.current=Kr;function Bt(tn,Nr){sr(br(tn.isInvalidate()?tn.toString(!1):tn.toString(!Nr),Nr))}var Wt=ce.useMemo(function(){return Xe(Ke)},[Ke,yt]),Gr=ce.useMemo(function(){return Xe(Me)},[Me,yt]),on=ce.useMemo(function(){return!Wt||!At||At.isInvalidate()?!1:Wt.lessEquals(At)},[Wt,At]),Tt=ce.useMemo(function(){return!Gr||!At||At.isInvalidate()?!1:At.lessEquals(Gr)},[Gr,At]),_t=we(Xr.current,Mr),dr=(0,Te.Z)(_t,2),Qt=dr[0],Ot=dr[1],rr=function(Nr){return Wt&&!Nr.lessEquals(Wt)?Wt:Gr&&!Gr.lessEquals(Nr)?Gr:null},wr=function(Nr){return!rr(Nr)},gr=function(Nr,Wr){var _r=Nr,An=wr(_r)||_r.isEmpty();if(!_r.isEmpty()&&!Wr&&(_r=rr(_r)||_r,An=!0),!Ue&&!Pe&&An){var Hn=_r.toString(),Fn=mr(Hn,Wr);return Fn>=0&&(_r=ve(me(Hn,".",Fn)),wr(_r)||(_r=ve(me(Hn,".",Fn,!0)))),_r.equals(At)||(cr(_r),kt==null||kt(_r.isEmpty()?null:nt(gt,_r)),Ae===void 0&&Bt(_r,Wr)),_r}return At},ar=We(),pr=function tn(Nr){if(Qt(),Tr.current=Nr,sr(Nr),!Lr.current){var Wr=Sr(Nr),_r=ve(Wr);_r.isNaN()||gr(_r,!0)}jt==null||jt(Nr),ar(function(){var An=Nr;wt||(An=Nr.replace(/。/g,".")),An!==Nr&&tn(An)})},Cr=function(){Lr.current=!0},ir=function(){Lr.current=!1,pr(Xr.current.value)},Yt=function(Nr){pr(Nr.target.value)},kr=function(Nr){var Wr;if(!(Nr&&on||!Nr&&Tt)){dn.current=!1;var _r=ve(Ir.current?ut(pt):pt);Nr||(_r=_r.negate());var An=(At||ve(0)).add(_r.toString()),Hn=gr(An,!1);vr==null||vr(nt(gt,Hn),{offset:Ir.current?ut(pt):pt,type:Nr?"up":"down"}),(Wr=Xr.current)===null||Wr===void 0||Wr.focus()}},Zr=function(Nr){var Wr=ve(Sr(Kr)),_r;Wr.isNaN()?_r=gr(At,Nr):_r=gr(Wr,Nr),Ae!==void 0?Bt(At,!1):_r.isNaN()||Bt(_r,!1)},en=function(){dn.current=!0},an=function(Nr){var Wr=Nr.key,_r=Nr.shiftKey;dn.current=!0,Ir.current=_r,Wr==="Enter"&&(Lr.current||(dn.current=!1),Zr(!1),It==null||It(Nr)),Se!==!1&&!Lr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Wr)&&(kr(Wr==="Up"||Wr==="ArrowUp"),Nr.preventDefault())},kn=function(){dn.current=!1,Ir.current=!1};ce.useEffect(function(){if(Be&&Mr){var tn=function(_r){kr(_r.deltaY<0),_r.preventDefault()},Nr=Xr.current;if(Nr)return Nr.addEventListener("wheel",tn,{passive:!1}),function(){return Nr.removeEventListener("wheel",tn)}}});var Pn=function(){Pr&&Zr(!1),fn(!1),dn.current=!1};return(0,Ce.o)(function(){At.isInvalidate()||Bt(At,!1)},[yt,bt]),(0,Ce.o)(function(){var tn=ve(Ae);$t(tn);var Nr=ve(Sr(Kr));(!tn.equals(Nr)||!dn.current||bt)&&Bt(tn,dn.current)},[Ae]),(0,Ce.o)(function(){bt&&Ot()},[Kr]),ce.createElement("div",{ref:qt,className:ge()(He,Ne,(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},"".concat(He,"-focused"),Mr),"".concat(He,"-disabled"),Pe),"".concat(He,"-readonly"),Ue),"".concat(He,"-not-a-number"),At.isNaN()),"".concat(He,"-out-of-range"),!At.isInvalidate()&&!wr(At))),style:Ge,onFocus:function(){fn(!0)},onBlur:Pn,onKeyDown:an,onKeyUp:kn,onCompositionStart:Cr,onCompositionEnd:ir,onBeforeInput:en},Le&&ce.createElement(Qe,{prefixCls:He,upNode:ot,downNode:Oe,upDisabled:on,downDisabled:Tt,onStep:kr}),ce.createElement("div",{className:"".concat(Vr,"-wrap")},ce.createElement("input",(0,ze.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Me,"aria-valuemax":Ke,"aria-valuenow":At.isInvalidate()?null:At.toString(),step:pt},zr,{ref:(0,Ee.sQ)(Xr,st),className:Vr,value:Kr,onChange:Yt,disabled:Pe,readOnly:Ue}))))}),Ye=ce.forwardRef(function(lt,st){var He=lt.disabled,Ne=lt.style,Ge=lt.prefixCls,Me=Ge===void 0?"rc-input-number":Ge,Ke=lt.value,ct=lt.prefix,pt=lt.suffix,rt=lt.addonBefore,Ae=lt.addonAfter,Pe=lt.className,Ue=lt.classNames,ot=(0,be.Z)(lt,at),Oe=ce.useRef(null),Se=ce.useRef(null),pe=ce.useRef(null),Be=function(Le){pe.current&&(0,Ie.nH)(pe.current,Le)};return ce.useImperativeHandle(st,function(){return je(pe.current,{focus:Be,nativeElement:Oe.current.nativeElement||Se.current})}),ce.createElement(xe.BaseInput,{className:Pe,triggerFocus:Be,prefixCls:Me,value:Ke,disabled:He,style:Ne,prefix:ct,suffix:pt,addonAfter:Ae,addonBefore:rt,classNames:Ue,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Oe},ce.createElement(et,(0,ze.Z)({prefixCls:Me,disabled:He,ref:pe,domRef:Se,className:Ue==null?void 0:Ue.input},ot)))}),dt=Ye,tt=dt},23425:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return je}});var ze=Je(20068),Ct=Je(54476),y=Je(76190),Te=Je(33885),be=Je(42978),x=Je(92310),z=Je.n(x),ie=Je(18929),oe=Je(10228),ee=Je(26112),le=Je(48736),E=Je(59301),ne=Je(17119),te=[10,20,50,100],se=function(ce){var ye=ce.pageSizeOptions,we=ye===void 0?te:ye,De=ce.locale,Re=ce.changeSize,ke=ce.pageSize,_e=ce.goButton,Ze=ce.quickGo,Ve=ce.rootPrefixCls,Qe=ce.disabled,ut=ce.buildOptionText,Ie=ce.showSizeChanger,We=ce.sizeChangerRender,it=E.useState(""),at=(0,be.Z)(it,2),nt=at[0],Xe=at[1],et=function(){return!nt||Number.isNaN(nt)?void 0:Number(nt)},Ye=typeof ut=="function"?ut:function(Ke){return"".concat(Ke," ").concat(De.items_per_page)},dt=function(ct){Xe(ct.target.value)},tt=function(ct){_e||nt===""||(Xe(""),!(ct.relatedTarget&&(ct.relatedTarget.className.indexOf("".concat(Ve,"-item-link"))>=0||ct.relatedTarget.className.indexOf("".concat(Ve,"-item"))>=0))&&(Ze==null||Ze(et())))},lt=function(ct){nt!==""&&(ct.keyCode===oe.Z.ENTER||ct.type==="click")&&(Xe(""),Ze==null||Ze(et()))},st=function(){return we.some(function(ct){return ct.toString()===ke.toString()})?we:we.concat([ke]).sort(function(ct,pt){var rt=Number.isNaN(Number(ct))?0:Number(ct),Ae=Number.isNaN(Number(pt))?0:Number(pt);return rt-Ae})},He="".concat(Ve,"-options");if(!Ie&&!Ze)return null;var Ne=null,Ge=null,Me=null;return Ie&&We&&(Ne=We({disabled:Qe,size:ke,onSizeChange:function(ct){Re==null||Re(Number(ct))},"aria-label":De.page_size,className:"".concat(He,"-size-changer"),options:st().map(function(Ke){return{label:Ye(Ke),value:Ke}})})),Ze&&(_e&&(Me=typeof _e=="boolean"?E.createElement("button",{type:"button",onClick:lt,onKeyUp:lt,disabled:Qe,className:"".concat(He,"-quick-jumper-button")},De.jump_to_confirm):E.createElement("span",{onClick:lt,onKeyUp:lt},_e)),Ge=E.createElement("div",{className:"".concat(He,"-quick-jumper")},De.jump_to,E.createElement("input",{disabled:Qe,type:"text",value:nt,onChange:dt,onKeyUp:lt,onBlur:tt,"aria-label":De.page}),De.page,Me)),E.createElement("li",{className:He},Ne,Ge)},ue=se,fe=function(ce){var ye=ce.rootPrefixCls,we=ce.page,De=ce.active,Re=ce.className,ke=ce.showTitle,_e=ce.onClick,Ze=ce.onKeyPress,Ve=ce.itemRender,Qe="".concat(ye,"-item"),ut=z()(Qe,"".concat(Qe,"-").concat(we),(0,ze.Z)((0,ze.Z)({},"".concat(Qe,"-active"),De),"".concat(Qe,"-disabled"),!we),Re),Ie=function(){_e(we)},We=function(nt){Ze(nt,_e,we)},it=Ve(we,"page",E.createElement("a",{rel:"nofollow"},we));return it?E.createElement("li",{title:ke?String(we):null,className:ut,onClick:Ie,onKeyDown:We,tabIndex:0},it):null},me=fe,ve=function(ce,ye,we){return we};function he(){}function ge(Ee){var ce=Number(Ee);return typeof ce=="number"&&!Number.isNaN(ce)&&isFinite(ce)&&Math.floor(ce)===ce}function xe(Ee,ce,ye){var we=typeof Ee=="undefined"?ce:Ee;return Math.floor((ye-1)/we)+1}var Ce=function(ce){var ye=ce.prefixCls,we=ye===void 0?"rc-pagination":ye,De=ce.selectPrefixCls,Re=De===void 0?"rc-select":De,ke=ce.className,_e=ce.current,Ze=ce.defaultCurrent,Ve=Ze===void 0?1:Ze,Qe=ce.total,ut=Qe===void 0?0:Qe,Ie=ce.pageSize,We=ce.defaultPageSize,it=We===void 0?10:We,at=ce.onChange,nt=at===void 0?he:at,Xe=ce.hideOnSinglePage,et=ce.align,Ye=ce.showPrevNextJumpers,dt=Ye===void 0?!0:Ye,tt=ce.showQuickJumper,lt=ce.showLessItems,st=ce.showTitle,He=st===void 0?!0:st,Ne=ce.onShowSizeChange,Ge=Ne===void 0?he:Ne,Me=ce.locale,Ke=Me===void 0?ne.Z:Me,ct=ce.style,pt=ce.totalBoundaryShowSizeChanger,rt=pt===void 0?50:pt,Ae=ce.disabled,Pe=ce.simple,Ue=ce.showTotal,ot=ce.showSizeChanger,Oe=ot===void 0?ut>rt:ot,Se=ce.sizeChangerRender,pe=ce.pageSizeOptions,Be=ce.itemRender,$e=Be===void 0?ve:Be,Le=ce.jumpPrevIcon,mt=ce.jumpNextIcon,gt=ce.prevIcon,wt=ce.nextIcon,bt=E.useRef(null),yt=(0,ie.Z)(10,{value:Ie,defaultValue:it}),Et=(0,be.Z)(yt,2),kt=Et[0],jt=Et[1],It=(0,ie.Z)(1,{value:_e,defaultValue:Ve,postState:function(qr){return Math.max(1,Math.min(qr,xe(void 0,kt,ut)))}}),vr=(0,be.Z)(It,2),Kt=vr[0],Pr=vr[1],qt=E.useState(Kt),zr=(0,be.Z)(qt,2),Vr=zr[0],Xr=zr[1];(0,E.useEffect)(function(){Xr(Kt)},[Kt]);var pn=nt!==he,nn="current"in ce,Mr=Math.max(1,Kt-(lt?3:5)),fn=Math.min(xe(void 0,kt,ut),Kt+(lt?3:5));function dn(Or,qr){var yn=Or||E.createElement("button",{type:"button","aria-label":qr,className:"".concat(we,"-item-link")});return typeof Or=="function"&&(yn=E.createElement(Or,(0,Te.Z)({},ce))),yn}function Lr(Or){var qr=Or.target.value,yn=xe(void 0,kt,ut),Rn;return qr===""?Rn=qr:Number.isNaN(Number(qr))?Rn=Vr:qr>=yn?Rn=yn:Rn=Number(qr),Rn}function Ir(Or){return ge(Or)&&Or!==Kt&&ge(ut)&&ut>0}var Mt=ut>kt?tt:!1;function Lt(Or){(Or.keyCode===oe.Z.UP||Or.keyCode===oe.Z.DOWN)&&Or.preventDefault()}function At(Or){var qr=Lr(Or);switch(qr!==Vr&&Xr(qr),Or.keyCode){case oe.Z.ENTER:mr(qr);break;case oe.Z.UP:mr(qr-1);break;case oe.Z.DOWN:mr(qr+1);break;default:break}}function $t(Or){mr(Lr(Or))}function cr(Or){var qr=xe(Or,kt,ut),yn=Kt>qr&&qr!==0?qr:Kt;jt(Or),Xr(yn),Ge==null||Ge(Kt,Or),Pr(yn),nt==null||nt(yn,Or)}function mr(Or){if(Ir(Or)&&!Ae){var qr=xe(void 0,kt,ut),yn=Or;return Or>qr?yn=qr:Or<1&&(yn=1),yn!==Vr&&Xr(yn),Pr(yn),nt==null||nt(yn,kt),yn}return Kt}var Sr=Kt>1,Tr=Kt<xe(void 0,kt,ut);function br(){Sr&&mr(Kt-1)}function Rr(){Tr&&mr(Kt+1)}function Ur(){mr(Mr)}function Kr(){mr(fn)}function sr(Or,qr){if(Or.key==="Enter"||Or.charCode===oe.Z.ENTER||Or.keyCode===oe.Z.ENTER){for(var yn=arguments.length,Rn=new Array(yn>2?yn-2:0),jn=2;jn<yn;jn++)Rn[jn-2]=arguments[jn];qr.apply(void 0,Rn)}}function Bt(Or){sr(Or,br)}function Wt(Or){sr(Or,Rr)}function Gr(Or){sr(Or,Ur)}function on(Or){sr(Or,Kr)}function Tt(Or){var qr=$e(Or,"prev",dn(gt,"prev page"));return E.isValidElement(qr)?E.cloneElement(qr,{disabled:!Sr}):qr}function _t(Or){var qr=$e(Or,"next",dn(wt,"next page"));return E.isValidElement(qr)?E.cloneElement(qr,{disabled:!Tr}):qr}function dr(Or){(Or.type==="click"||Or.keyCode===oe.Z.ENTER)&&mr(Vr)}var Qt=null,Ot=(0,ee.Z)(ce,{aria:!0,data:!0}),rr=Ue&&E.createElement("li",{className:"".concat(we,"-total-text")},Ue(ut,[ut===0?0:(Kt-1)*kt+1,Kt*kt>ut?ut:Kt*kt])),wr=null,gr=xe(void 0,kt,ut);if(Xe&&ut<=kt)return null;var ar=[],pr={rootPrefixCls:we,onClick:mr,onKeyPress:sr,showTitle:He,itemRender:$e,page:-1},Cr=Kt-1>0?Kt-1:0,ir=Kt+1<gr?Kt+1:gr,Yt=tt&&tt.goButton,kr=(0,y.Z)(Pe)==="object"?Pe.readOnly:!Pe,Zr=Yt,en=null;Pe&&(Yt&&(typeof Yt=="boolean"?Zr=E.createElement("button",{type:"button",onClick:dr,onKeyUp:dr},Ke.jump_to_confirm):Zr=E.createElement("span",{onClick:dr,onKeyUp:dr},Yt),Zr=E.createElement("li",{title:He?"".concat(Ke.jump_to).concat(Kt,"/").concat(gr):null,className:"".concat(we,"-simple-pager")},Zr)),en=E.createElement("li",{title:He?"".concat(Kt,"/").concat(gr):null,className:"".concat(we,"-simple-pager")},kr?Vr:E.createElement("input",{type:"text","aria-label":Ke.jump_to,value:Vr,disabled:Ae,onKeyDown:Lt,onKeyUp:At,onChange:At,onBlur:$t,size:3}),E.createElement("span",{className:"".concat(we,"-slash")},"/"),gr));var an=lt?1:2;if(gr<=3+an*2){gr||ar.push(E.createElement(me,(0,Ct.Z)({},pr,{key:"noPager",page:1,className:"".concat(we,"-item-disabled")})));for(var kn=1;kn<=gr;kn+=1)ar.push(E.createElement(me,(0,Ct.Z)({},pr,{key:kn,page:kn,active:Kt===kn})))}else{var Pn=lt?Ke.prev_3:Ke.prev_5,tn=lt?Ke.next_3:Ke.next_5,Nr=$e(Mr,"jump-prev",dn(Le,"prev page")),Wr=$e(fn,"jump-next",dn(mt,"next page"));dt&&(Qt=Nr?E.createElement("li",{title:He?Pn:null,key:"prev",onClick:Ur,tabIndex:0,onKeyDown:Gr,className:z()("".concat(we,"-jump-prev"),(0,ze.Z)({},"".concat(we,"-jump-prev-custom-icon"),!!Le))},Nr):null,wr=Wr?E.createElement("li",{title:He?tn:null,key:"next",onClick:Kr,tabIndex:0,onKeyDown:on,className:z()("".concat(we,"-jump-next"),(0,ze.Z)({},"".concat(we,"-jump-next-custom-icon"),!!mt))},Wr):null);var _r=Math.max(1,Kt-an),An=Math.min(Kt+an,gr);Kt-1<=an&&(An=1+an*2),gr-Kt<=an&&(_r=gr-an*2);for(var Hn=_r;Hn<=An;Hn+=1)ar.push(E.createElement(me,(0,Ct.Z)({},pr,{key:Hn,page:Hn,active:Kt===Hn})));if(Kt-1>=an*2&&Kt!==3&&(ar[0]=E.cloneElement(ar[0],{className:z()("".concat(we,"-item-after-jump-prev"),ar[0].props.className)}),ar.unshift(Qt)),gr-Kt>=an*2&&Kt!==gr-2){var Fn=ar[ar.length-1];ar[ar.length-1]=E.cloneElement(Fn,{className:z()("".concat(we,"-item-before-jump-next"),Fn.props.className)}),ar.push(wr)}_r!==1&&ar.unshift(E.createElement(me,(0,Ct.Z)({},pr,{key:1,page:1}))),An!==gr&&ar.push(E.createElement(me,(0,Ct.Z)({},pr,{key:gr,page:gr})))}var Jn=Tt(Cr);if(Jn){var zn=!Sr||!gr;Jn=E.createElement("li",{title:He?Ke.prev_page:null,onClick:br,tabIndex:zn?null:0,onKeyDown:Bt,className:z()("".concat(we,"-prev"),(0,ze.Z)({},"".concat(we,"-disabled"),zn)),"aria-disabled":zn},Jn)}var jr=_t(ir);if(jr){var Fr,Er;Pe?(Fr=!Tr,Er=Sr?0:null):(Fr=!Tr||!gr,Er=Fr?null:0),jr=E.createElement("li",{title:He?Ke.next_page:null,onClick:Rr,tabIndex:Er,onKeyDown:Wt,className:z()("".concat(we,"-next"),(0,ze.Z)({},"".concat(we,"-disabled"),Fr)),"aria-disabled":Fr},jr)}var Yr=z()(we,ke,(0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)((0,ze.Z)({},"".concat(we,"-start"),et==="start"),"".concat(we,"-center"),et==="center"),"".concat(we,"-end"),et==="end"),"".concat(we,"-simple"),Pe),"".concat(we,"-disabled"),Ae));return E.createElement("ul",(0,Ct.Z)({className:Yr,style:ct,ref:bt},Ot),rr,Jn,Pe?en:ar,jr,E.createElement(ue,{locale:Ke,rootPrefixCls:we,disabled:Ae,selectPrefixCls:Re,changeSize:cr,pageSize:kt,pageSizeOptions:pe,quickGo:Mt?mr:null,goButton:Zr,showSizeChanger:Oe,sizeChangerRender:Se}))},je=Ce},25930:function(ur,Zt,Je){"use strict";Je.d(Zt,{Cd:function(){return we}});var ze=Je(54476),Ct=Je(33885),y=Je(75931),Te=Je(59301),be=Je(92310),x=Je.n(be),z={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ie=function(){var ke=(0,Te.useRef)([]),_e=(0,Te.useRef)(null);return(0,Te.useEffect)(function(){var Ze=Date.now(),Ve=!1;ke.current.forEach(function(Qe){if(Qe){Ve=!0;var ut=Qe.style;ut.transitionDuration=".3s, .3s, .3s, .06s",_e.current&&Ze-_e.current<100&&(ut.transitionDuration="0s, 0s")}}),Ve&&(_e.current=Date.now())}),ke.current},oe=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ee=function(ke){var _e=(0,Ct.Z)((0,Ct.Z)({},z),ke),Ze=_e.className,Ve=_e.percent,Qe=_e.prefixCls,ut=_e.strokeColor,Ie=_e.strokeLinecap,We=_e.strokeWidth,it=_e.style,at=_e.trailColor,nt=_e.trailWidth,Xe=_e.transition,et=(0,y.Z)(_e,oe);delete et.gapPosition;var Ye=Array.isArray(Ve)?Ve:[Ve],dt=Array.isArray(ut)?ut:[ut],tt=ie(),lt=We/2,st=100-We/2,He="M ".concat(Ie==="round"?lt:0,",").concat(lt,`
L `).concat(Ie==="round"?st:100,",").concat(lt),Ne="0 0 100 ".concat(We),Ge=0;return Te.createElement("svg",(0,ze.Z)({className:x()("".concat(Qe,"-line"),Ze),viewBox:Ne,preserveAspectRatio:"none",style:it},et),Te.createElement("path",{className:"".concat(Qe,"-line-trail"),d:He,strokeLinecap:Ie,stroke:at,strokeWidth:nt||We,fillOpacity:"0"}),Ye.map(function(Me,Ke){var ct=1;switch(Ie){case"round":ct=1-We/100;break;case"square":ct=1-We/2/100;break;default:ct=1;break}var pt={strokeDasharray:"".concat(Me*ct,"px, 100px"),strokeDashoffset:"-".concat(Ge,"px"),transition:Xe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},rt=dt[Ke]||dt[dt.length-1];return Ge+=Me,Te.createElement("path",{key:Ke,className:"".concat(Qe,"-line-path"),d:He,strokeLinecap:Ie,stroke:rt,strokeWidth:We,fillOpacity:"0",ref:function(Pe){tt[Ke]=Pe},style:pt})}))},le=ee,E=Je(76190),ne=Je(42978),te=Je(47273),se=0,ue=(0,te.Z)();function fe(){var Re;return ue?(Re=se,se+=1):Re="TEST_OR_SSR",Re}var me=function(Re){var ke=Te.useState(),_e=(0,ne.Z)(ke,2),Ze=_e[0],Ve=_e[1];return Te.useEffect(function(){Ve("rc_progress_".concat(fe()))},[]),Re||Ze},ve=function(ke){var _e=ke.bg,Ze=ke.children;return Te.createElement("div",{style:{width:"100%",height:"100%",background:_e}},Ze)};function he(Re,ke){return Object.keys(Re).map(function(_e){var Ze=parseFloat(_e),Ve="".concat(Math.floor(Ze*ke),"%");return"".concat(Re[_e]," ").concat(Ve)})}var ge=Te.forwardRef(function(Re,ke){var _e=Re.prefixCls,Ze=Re.color,Ve=Re.gradientId,Qe=Re.radius,ut=Re.style,Ie=Re.ptg,We=Re.strokeLinecap,it=Re.strokeWidth,at=Re.size,nt=Re.gapDegree,Xe=Ze&&(0,E.Z)(Ze)==="object",et=Xe?"#FFF":void 0,Ye=at/2,dt=Te.createElement("circle",{className:"".concat(_e,"-circle-path"),r:Qe,cx:Ye,cy:Ye,stroke:et,strokeLinecap:We,strokeWidth:it,opacity:Ie===0?0:1,style:ut,ref:ke});if(!Xe)return dt;var tt="".concat(Ve,"-conic"),lt=nt?"".concat(180+nt/2,"deg"):"0deg",st=he(Ze,(360-nt)/360),He=he(Ze,1),Ne="conic-gradient(from ".concat(lt,", ").concat(st.join(", "),")"),Ge="linear-gradient(to ".concat(nt?"bottom":"top",", ").concat(He.join(", "),")");return Te.createElement(Te.Fragment,null,Te.createElement("mask",{id:tt},dt),Te.createElement("foreignObject",{x:0,y:0,width:at,height:at,mask:"url(#".concat(tt,")")},Te.createElement(ve,{bg:Ge},Te.createElement(ve,{bg:Ne}))))}),xe=ge,Ce=100,je=function(ke,_e,Ze,Ve,Qe,ut,Ie,We,it,at){var nt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Xe=Ze/100*360*((360-ut)/360),et=ut===0?0:{bottom:0,top:180,left:90,right:-90}[Ie],Ye=(100-Ve)/100*_e;it==="round"&&Ve!==100&&(Ye+=at/2,Ye>=_e&&(Ye=_e-.01));var dt=Ce/2;return{stroke:typeof We=="string"?We:void 0,strokeDasharray:"".concat(_e,"px ").concat(ke),strokeDashoffset:Ye+nt,transform:"rotate(".concat(Qe+Xe+et,"deg)"),transformOrigin:"".concat(dt,"px ").concat(dt,"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}},Ee=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ce(Re){var ke=Re!=null?Re:[];return Array.isArray(ke)?ke:[ke]}var ye=function(ke){var _e=(0,Ct.Z)((0,Ct.Z)({},z),ke),Ze=_e.id,Ve=_e.prefixCls,Qe=_e.steps,ut=_e.strokeWidth,Ie=_e.trailWidth,We=_e.gapDegree,it=We===void 0?0:We,at=_e.gapPosition,nt=_e.trailColor,Xe=_e.strokeLinecap,et=_e.style,Ye=_e.className,dt=_e.strokeColor,tt=_e.percent,lt=(0,y.Z)(_e,Ee),st=Ce/2,He=me(Ze),Ne="".concat(He,"-gradient"),Ge=st-ut/2,Me=Math.PI*2*Ge,Ke=it>0?90+it/2:-90,ct=Me*((360-it)/360),pt=(0,E.Z)(Qe)==="object"?Qe:{count:Qe,gap:2},rt=pt.count,Ae=pt.gap,Pe=ce(tt),Ue=ce(dt),ot=Ue.find(function(mt){return mt&&(0,E.Z)(mt)==="object"}),Oe=ot&&(0,E.Z)(ot)==="object",Se=Oe?"butt":Xe,pe=je(Me,ct,0,100,Ke,it,at,nt,Se,ut),Be=ie(),$e=function(){var gt=0;return Pe.map(function(wt,bt){var yt=Ue[bt]||Ue[Ue.length-1],Et=je(Me,ct,gt,wt,Ke,it,at,yt,Se,ut);return gt+=wt,Te.createElement(xe,{key:bt,color:yt,ptg:wt,radius:Ge,prefixCls:Ve,gradientId:Ne,style:Et,strokeLinecap:Se,strokeWidth:ut,gapDegree:it,ref:function(jt){Be[bt]=jt},size:Ce})}).reverse()},Le=function(){var gt=Math.round(rt*(Pe[0]/100)),wt=100/rt,bt=0;return new Array(rt).fill(null).map(function(yt,Et){var kt=Et<=gt-1?Ue[0]:nt,jt=kt&&(0,E.Z)(kt)==="object"?"url(#".concat(Ne,")"):void 0,It=je(Me,ct,bt,wt,Ke,it,at,kt,"butt",ut,Ae);return bt+=(ct-It.strokeDashoffset+Ae)*100/ct,Te.createElement("circle",{key:Et,className:"".concat(Ve,"-circle-path"),r:Ge,cx:st,cy:st,stroke:jt,strokeWidth:ut,opacity:1,style:It,ref:function(Kt){Be[Et]=Kt}})})};return Te.createElement("svg",(0,ze.Z)({className:x()("".concat(Ve,"-circle"),Ye),viewBox:"0 0 ".concat(Ce," ").concat(Ce),style:et,id:Ze,role:"presentation"},lt),!rt&&Te.createElement("circle",{className:"".concat(Ve,"-circle-trail"),r:Ge,cx:st,cy:st,stroke:nt,strokeLinecap:Se,strokeWidth:Ie||ut,style:pe}),rt?Le():$e())},we=ye,De={Line:le,Circle:we}},738:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return he}});var ze=Je(54476),Ct=Je(20068),y=Je(42978),Te=Je(75931),be=Je(92310),x=Je.n(be),z=Je(18929),ie=Je(10228),oe=Je(26112),ee=Je(59301);function le(ge,xe){var Ce=ge.disabled,je=ge.prefixCls,Ee=ge.character,ce=ge.characterRender,ye=ge.index,we=ge.count,De=ge.value,Re=ge.allowHalf,ke=ge.focused,_e=ge.onHover,Ze=ge.onClick,Ve=function(Xe){_e(Xe,ye)},Qe=function(Xe){Ze(Xe,ye)},ut=function(Xe){Xe.keyCode===ie.Z.ENTER&&Ze(Xe,ye)},Ie=ye+1,We=new Set([je]);De===0&&ye===0&&ke?We.add("".concat(je,"-focused")):Re&&De+.5>=Ie&&De<Ie?(We.add("".concat(je,"-half")),We.add("".concat(je,"-active")),ke&&We.add("".concat(je,"-focused"))):(Ie<=De?We.add("".concat(je,"-full")):We.add("".concat(je,"-zero")),Ie===De&&ke&&We.add("".concat(je,"-focused")));var it=typeof Ee=="function"?Ee(ge):Ee,at=ee.createElement("li",{className:x()(Array.from(We)),ref:xe},ee.createElement("div",{onClick:Ce?null:Qe,onKeyDown:Ce?null:ut,onMouseMove:Ce?null:Ve,role:"radio","aria-checked":De>ye?"true":"false","aria-posinset":ye+1,"aria-setsize":we,tabIndex:Ce?-1:0},ee.createElement("div",{className:"".concat(je,"-first")},it),ee.createElement("div",{className:"".concat(je,"-second")},it)));return ce&&(at=ce(at,ge)),at}var E=ee.forwardRef(le);function ne(){var ge=ee.useRef({});function xe(je){return ge.current[je]}function Ce(je){return function(Ee){ge.current[je]=Ee}}return[xe,Ce]}function te(ge){var xe=ge.pageXOffset,Ce="scrollLeft";if(typeof xe!="number"){var je=ge.document;xe=je.documentElement[Ce],typeof xe!="number"&&(xe=je.body[Ce])}return xe}function se(ge){var xe,Ce,je=ge.ownerDocument,Ee=je.body,ce=je&&je.documentElement,ye=ge.getBoundingClientRect();return xe=ye.left,Ce=ye.top,xe-=ce.clientLeft||Ee.clientLeft||0,Ce-=ce.clientTop||Ee.clientTop||0,{left:xe,top:Ce}}function ue(ge){var xe=se(ge),Ce=ge.ownerDocument,je=Ce.defaultView||Ce.parentWindow;return xe.left+=te(je),xe.left}var fe=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function me(ge,xe){var Ce=ge.prefixCls,je=Ce===void 0?"rc-rate":Ce,Ee=ge.className,ce=ge.defaultValue,ye=ge.value,we=ge.count,De=we===void 0?5:we,Re=ge.allowHalf,ke=Re===void 0?!1:Re,_e=ge.allowClear,Ze=_e===void 0?!0:_e,Ve=ge.keyboard,Qe=Ve===void 0?!0:Ve,ut=ge.character,Ie=ut===void 0?"\u2605":ut,We=ge.characterRender,it=ge.disabled,at=ge.direction,nt=at===void 0?"ltr":at,Xe=ge.tabIndex,et=Xe===void 0?0:Xe,Ye=ge.autoFocus,dt=ge.onHoverChange,tt=ge.onChange,lt=ge.onFocus,st=ge.onBlur,He=ge.onKeyDown,Ne=ge.onMouseLeave,Ge=(0,Te.Z)(ge,fe),Me=ne(),Ke=(0,y.Z)(Me,2),ct=Ke[0],pt=Ke[1],rt=ee.useRef(null),Ae=function(){if(!it){var Mr;(Mr=rt.current)===null||Mr===void 0||Mr.focus()}};ee.useImperativeHandle(xe,function(){return{focus:Ae,blur:function(){if(!it){var Mr;(Mr=rt.current)===null||Mr===void 0||Mr.blur()}}}});var Pe=(0,z.Z)(ce||0,{value:ye}),Ue=(0,y.Z)(Pe,2),ot=Ue[0],Oe=Ue[1],Se=(0,z.Z)(null),pe=(0,y.Z)(Se,2),Be=pe[0],$e=pe[1],Le=function(Mr,fn){var dn=nt==="rtl",Lr=Mr+1;if(ke){var Ir=ct(Mr),Mt=ue(Ir),Lt=Ir.clientWidth;(dn&&fn-Mt>Lt/2||!dn&&fn-Mt<Lt/2)&&(Lr-=.5)}return Lr},mt=function(Mr){Oe(Mr),tt==null||tt(Mr)},gt=ee.useState(!1),wt=(0,y.Z)(gt,2),bt=wt[0],yt=wt[1],Et=function(){yt(!0),lt==null||lt()},kt=function(){yt(!1),st==null||st()},jt=ee.useState(null),It=(0,y.Z)(jt,2),vr=It[0],Kt=It[1],Pr=function(Mr,fn){var dn=Le(fn,Mr.pageX);dn!==Be&&(Kt(dn),$e(null)),dt==null||dt(dn)},qt=function(Mr){it||(Kt(null),$e(null),dt==null||dt(void 0)),Mr&&(Ne==null||Ne(Mr))},zr=function(Mr,fn){var dn=Le(fn,Mr.pageX),Lr=!1;Ze&&(Lr=dn===ot),qt(),mt(Lr?0:dn),$e(Lr?dn:null)},Vr=function(Mr){var fn=Mr.keyCode,dn=nt==="rtl",Lr=ke?.5:1;Qe&&(fn===ie.Z.RIGHT&&ot<De&&!dn?(mt(ot+Lr),Mr.preventDefault()):fn===ie.Z.LEFT&&ot>0&&!dn||fn===ie.Z.RIGHT&&ot>0&&dn?(mt(ot-Lr),Mr.preventDefault()):fn===ie.Z.LEFT&&ot<De&&dn&&(mt(ot+Lr),Mr.preventDefault())),He==null||He(Mr)};ee.useEffect(function(){Ye&&!it&&Ae()},[]);var Xr=new Array(De).fill(0).map(function(nn,Mr){return ee.createElement(E,{ref:pt(Mr),index:Mr,count:De,disabled:it,prefixCls:"".concat(je,"-star"),allowHalf:ke,value:vr===null?ot:vr,onClick:zr,onHover:Pr,key:nn||Mr,character:Ie,characterRender:We,focused:bt})}),pn=x()(je,Ee,(0,Ct.Z)((0,Ct.Z)({},"".concat(je,"-disabled"),it),"".concat(je,"-rtl"),nt==="rtl"));return ee.createElement("ul",(0,ze.Z)({className:pn,onMouseLeave:qt,tabIndex:it?-1:et,onFocus:it?null:Et,onBlur:it?null:kt,onKeyDown:it?null:Vr,ref:rt},(0,oe.Z)(Ge,{aria:!0,data:!0,attr:!0})),Xr)}var ve=ee.forwardRef(me),he=ve},6551:function(ur,Zt,Je){"use strict";Je.d(Zt,{ZP:function(){return z}});var ze=Je(42978),Ct=Je(59301),y=Je(47273),Te=0,be=(0,y.Z)();function x(){var ie;return be?(ie=Te,Te+=1):ie="TEST_OR_SSR",ie}function z(ie){var oe=Ct.useState(),ee=(0,ze.Z)(oe,2),le=ee[0],E=ee[1];return Ct.useEffect(function(){E("rc_select_".concat(x()))},[]),ie||le}},37463:function(ur,Zt,Je){"use strict";Je.d(Zt,{Ac:function(){return yt},Xo:function(){return kt},Wx:function(){return It},ZP:function(){return on},lk:function(){return he}});var ze=Je(54476),Ct=Je(94480),y=Je(20068),Te=Je(33885),be=Je(42978),x=Je(75931),z=Je(76190),ie=Je(18929),oe=Je(48736),ee=Je(59301),le=Je(92310),E=Je.n(le),ne=Je(34280),te=Je(49658),se=Je(8654),ue=function(_t){var dr=_t.className,Qt=_t.customizeIcon,Ot=_t.customizeIconProps,rr=_t.children,wr=_t.onMouseDown,gr=_t.onClick,ar=typeof Qt=="function"?Qt(Ot):Qt;return ee.createElement("span",{className:dr,onMouseDown:function(Cr){Cr.preventDefault(),wr==null||wr(Cr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:gr,"aria-hidden":!0},ar!==void 0?ar:ee.createElement("span",{className:E()(dr.split(/\s+/).map(function(pr){return"".concat(pr,"-icon")}))},rr))},fe=ue,me=function(_t,dr,Qt,Ot,rr){var wr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,gr=arguments.length>6?arguments[6]:void 0,ar=arguments.length>7?arguments[7]:void 0,pr=ee.useMemo(function(){if((0,z.Z)(Ot)==="object")return Ot.clearIcon;if(rr)return rr},[Ot,rr]),Cr=ee.useMemo(function(){return!!(!wr&&Ot&&(Qt.length||gr)&&!(ar==="combobox"&&gr===""))},[Ot,wr,Qt.length,gr,ar]);return{allowClear:Cr,clearIcon:ee.createElement(fe,{className:"".concat(_t,"-clear"),onMouseDown:dr,customizeIcon:pr},"\xD7")}},ve=ee.createContext(null);function he(){return ee.useContext(ve)}function ge(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,_t=ee.useState(!1),dr=(0,be.Z)(_t,2),Qt=dr[0],Ot=dr[1],rr=ee.useRef(null),wr=function(){window.clearTimeout(rr.current)};ee.useEffect(function(){return wr},[]);var gr=function(pr,Cr){wr(),rr.current=window.setTimeout(function(){Ot(pr),Cr&&Cr()},Tt)};return[Qt,gr,wr]}function xe(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,_t=ee.useRef(null),dr=ee.useRef(null);ee.useEffect(function(){return function(){window.clearTimeout(dr.current)}},[]);function Qt(Ot){(Ot||_t.current===null)&&(_t.current=Ot),window.clearTimeout(dr.current),dr.current=window.setTimeout(function(){_t.current=null},Tt)}return[function(){return _t.current},Qt]}function Ce(Tt,_t,dr,Qt){var Ot=ee.useRef(null);Ot.current={open:_t,triggerOpen:dr,customizedTrigger:Qt},ee.useEffect(function(){function rr(wr){var gr;if(!((gr=Ot.current)!==null&&gr!==void 0&&gr.customizedTrigger)){var ar=wr.target;ar.shadowRoot&&wr.composed&&(ar=wr.composedPath()[0]||ar),Ot.current.open&&Tt().filter(function(pr){return pr}).every(function(pr){return!pr.contains(ar)&&pr!==ar})&&Ot.current.triggerOpen(!1)}}return window.addEventListener("mousedown",rr),function(){return window.removeEventListener("mousedown",rr)}},[])}var je=Je(10228);function Ee(Tt){return Tt&&![je.Z.ESC,je.Z.SHIFT,je.Z.BACKSPACE,je.Z.TAB,je.Z.WIN_KEY,je.Z.ALT,je.Z.META,je.Z.WIN_KEY_RIGHT,je.Z.CTRL,je.Z.SEMICOLON,je.Z.EQUALS,je.Z.CAPS_LOCK,je.Z.CONTEXT_MENU,je.Z.F1,je.Z.F2,je.Z.F3,je.Z.F4,je.Z.F5,je.Z.F6,je.Z.F7,je.Z.F8,je.Z.F9,je.Z.F10,je.Z.F11,je.Z.F12].includes(Tt)}var ce=Je(26112),ye=Je(11780);function we(Tt,_t,dr){var Qt=(0,Te.Z)((0,Te.Z)({},Tt),dr?_t:{});return Object.keys(_t).forEach(function(Ot){var rr=_t[Ot];typeof rr=="function"&&(Qt[Ot]=function(){for(var wr,gr=arguments.length,ar=new Array(gr),pr=0;pr<gr;pr++)ar[pr]=arguments[pr];return rr.apply(void 0,ar),(wr=Tt[Ot])===null||wr===void 0?void 0:wr.call.apply(wr,[Tt].concat(ar))})}),Qt}var De=we,Re=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ke=function(_t,dr){var Qt=_t.prefixCls,Ot=_t.id,rr=_t.inputElement,wr=_t.autoFocus,gr=_t.autoComplete,ar=_t.editable,pr=_t.activeDescendantId,Cr=_t.value,ir=_t.open,Yt=_t.attrs,kr=(0,x.Z)(_t,Re),Zr=rr||ee.createElement("input",null),en=Zr,an=en.ref,kn=en.props;return(0,oe.Kp)(!("maxLength"in Zr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Zr=ee.cloneElement(Zr,(0,Te.Z)((0,Te.Z)((0,Te.Z)({type:"search"},De(kr,kn,!0)),{},{id:Ot,ref:(0,se.sQ)(dr,an),autoComplete:gr||"off",autoFocus:wr,className:E()("".concat(Qt,"-selection-search-input"),kn==null?void 0:kn.className),role:"combobox","aria-expanded":ir||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ot,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ot,"_list"),"aria-activedescendant":ir?pr:void 0},Yt),{},{value:ar?Cr:"",readOnly:!ar,unselectable:ar?null:"on",style:(0,Te.Z)((0,Te.Z)({},kn.style),{},{opacity:ar?null:0})})),Zr},_e=ee.forwardRef(ke),Ze=_e;function Ve(Tt){return Array.isArray(Tt)?Tt:Tt!==void 0?[Tt]:[]}var Qe=typeof window!="undefined"&&window.document&&window.document.documentElement,ut=Qe;function Ie(Tt){return Tt!=null}function We(Tt){return!Tt&&Tt!==0}function it(Tt){return["string","number"].includes((0,z.Z)(Tt))}function at(Tt){var _t=void 0;return Tt&&(it(Tt.title)?_t=Tt.title.toString():it(Tt.label)&&(_t=Tt.label.toString())),_t}function nt(Tt,_t){ut?ee.useLayoutEffect(Tt,_t):ee.useEffect(Tt,_t)}function Xe(Tt){var _t;return(_t=Tt.key)!==null&&_t!==void 0?_t:Tt.value}var et=function(_t){_t.preventDefault(),_t.stopPropagation()},Ye=function(_t){var dr=_t.id,Qt=_t.prefixCls,Ot=_t.values,rr=_t.open,wr=_t.searchValue,gr=_t.autoClearSearchValue,ar=_t.inputRef,pr=_t.placeholder,Cr=_t.disabled,ir=_t.mode,Yt=_t.showSearch,kr=_t.autoFocus,Zr=_t.autoComplete,en=_t.activeDescendantId,an=_t.tabIndex,kn=_t.removeIcon,Pn=_t.maxTagCount,tn=_t.maxTagTextLength,Nr=_t.maxTagPlaceholder,Wr=Nr===void 0?function(Xt){return"+ ".concat(Xt.length," ...")}:Nr,_r=_t.tagRender,An=_t.onToggleOpen,Hn=_t.onRemove,Fn=_t.onInputChange,Jn=_t.onInputPaste,zn=_t.onInputKeyDown,jr=_t.onInputMouseDown,Fr=_t.onInputCompositionStart,Er=_t.onInputCompositionEnd,Yr=_t.onInputBlur,Or=ee.useRef(null),qr=(0,ee.useState)(0),yn=(0,be.Z)(qr,2),Rn=yn[0],jn=yn[1],Bn=(0,ee.useState)(!1),ri=(0,be.Z)(Bn,2),xt=ri[0],Nt=ri[1],Rt="".concat(Qt,"-selection"),Ft=rr||ir==="multiple"&&gr===!1||ir==="tags"?wr:"",Jt=ir==="tags"||ir==="multiple"&&gr===!1||Yt&&(rr||xt);nt(function(){jn(Or.current.scrollWidth)},[Ft]);var Gt=function(Vt,nr,Dr,or,er){return ee.createElement("span",{title:at(Vt),className:E()("".concat(Rt,"-item"),(0,y.Z)({},"".concat(Rt,"-item-disabled"),Dr))},ee.createElement("span",{className:"".concat(Rt,"-item-content")},nr),or&&ee.createElement(fe,{className:"".concat(Rt,"-item-remove"),onMouseDown:et,onClick:er,customizeIcon:kn},"\xD7"))},fr=function(Vt,nr,Dr,or,er,yr){var xr=function(sn){et(sn),An(!rr)};return ee.createElement("span",{onMouseDown:xr},_r({label:nr,value:Vt,disabled:Dr,closable:or,onClose:er,isMaxTag:!!yr}))},lr=function(Vt){var nr=Vt.disabled,Dr=Vt.label,or=Vt.value,er=!Cr&&!nr,yr=Dr;if(typeof tn=="number"&&(typeof Dr=="string"||typeof Dr=="number")){var xr=String(yr);xr.length>tn&&(yr="".concat(xr.slice(0,tn),"..."))}var Br=function(Jr){Jr&&Jr.stopPropagation(),Hn(Vt)};return typeof _r=="function"?fr(or,yr,nr,er,Br):Gt(Vt,yr,nr,er,Br)},tr=function(Vt){if(!Ot.length)return null;var nr=typeof Wr=="function"?Wr(Vt):Wr;return typeof _r=="function"?fr(void 0,nr,!1,!1,void 0,!0):Gt({title:nr},nr,!1)},Pt=ee.createElement("div",{className:"".concat(Rt,"-search"),style:{width:Rn},onFocus:function(){Nt(!0)},onBlur:function(){Nt(!1)}},ee.createElement(Ze,{ref:ar,open:rr,prefixCls:Qt,id:dr,inputElement:null,disabled:Cr,autoFocus:kr,autoComplete:Zr,editable:Jt,activeDescendantId:en,value:Ft,onKeyDown:zn,onMouseDown:jr,onChange:Fn,onPaste:Jn,onCompositionStart:Fr,onCompositionEnd:Er,onBlur:Yr,tabIndex:an,attrs:(0,ce.Z)(_t,!0)}),ee.createElement("span",{ref:Or,className:"".concat(Rt,"-search-mirror"),"aria-hidden":!0},Ft,"\xA0")),zt=ee.createElement(ye.Z,{prefixCls:"".concat(Rt,"-overflow"),data:Ot,renderItem:lr,renderRest:tr,suffix:Pt,itemKey:Xe,maxCount:Pn});return ee.createElement("span",{className:"".concat(Rt,"-wrap")},zt,!Ot.length&&!Ft&&ee.createElement("span",{className:"".concat(Rt,"-placeholder")},pr))},dt=Ye,tt=function(_t){var dr=_t.inputElement,Qt=_t.prefixCls,Ot=_t.id,rr=_t.inputRef,wr=_t.disabled,gr=_t.autoFocus,ar=_t.autoComplete,pr=_t.activeDescendantId,Cr=_t.mode,ir=_t.open,Yt=_t.values,kr=_t.placeholder,Zr=_t.tabIndex,en=_t.showSearch,an=_t.searchValue,kn=_t.activeValue,Pn=_t.maxLength,tn=_t.onInputKeyDown,Nr=_t.onInputMouseDown,Wr=_t.onInputChange,_r=_t.onInputPaste,An=_t.onInputCompositionStart,Hn=_t.onInputCompositionEnd,Fn=_t.onInputBlur,Jn=_t.title,zn=ee.useState(!1),jr=(0,be.Z)(zn,2),Fr=jr[0],Er=jr[1],Yr=Cr==="combobox",Or=Yr||en,qr=Yt[0],yn=an||"";Yr&&kn&&!Fr&&(yn=kn),ee.useEffect(function(){Yr&&Er(!1)},[Yr,kn]);var Rn=Cr!=="combobox"&&!ir&&!en?!1:!!yn,jn=Jn===void 0?at(qr):Jn,Bn=ee.useMemo(function(){return qr?null:ee.createElement("span",{className:"".concat(Qt,"-selection-placeholder"),style:Rn?{visibility:"hidden"}:void 0},kr)},[qr,Rn,kr,Qt]);return ee.createElement("span",{className:"".concat(Qt,"-selection-wrap")},ee.createElement("span",{className:"".concat(Qt,"-selection-search")},ee.createElement(Ze,{ref:rr,prefixCls:Qt,id:Ot,open:ir,inputElement:dr,disabled:wr,autoFocus:gr,autoComplete:ar,editable:Or,activeDescendantId:pr,value:yn,onKeyDown:tn,onMouseDown:Nr,onChange:function(xt){Er(!0),Wr(xt)},onPaste:_r,onCompositionStart:An,onCompositionEnd:Hn,onBlur:Fn,tabIndex:Zr,attrs:(0,ce.Z)(_t,!0),maxLength:Yr?Pn:void 0})),!Yr&&qr?ee.createElement("span",{className:"".concat(Qt,"-selection-item"),title:jn,style:Rn?{visibility:"hidden"}:void 0},qr.label):null,Bn)},lt=tt,st=function(_t,dr){var Qt=(0,ee.useRef)(null),Ot=(0,ee.useRef)(!1),rr=_t.prefixCls,wr=_t.open,gr=_t.mode,ar=_t.showSearch,pr=_t.tokenWithEnter,Cr=_t.disabled,ir=_t.prefix,Yt=_t.autoClearSearchValue,kr=_t.onSearch,Zr=_t.onSearchSubmit,en=_t.onToggleOpen,an=_t.onInputKeyDown,kn=_t.onInputBlur,Pn=_t.domRef;ee.useImperativeHandle(dr,function(){return{focus:function(jn){Qt.current.focus(jn)},blur:function(){Qt.current.blur()}}});var tn=xe(0),Nr=(0,be.Z)(tn,2),Wr=Nr[0],_r=Nr[1],An=function(jn){var Bn=jn.which,ri=Qt.current instanceof HTMLTextAreaElement;!ri&&wr&&(Bn===je.Z.UP||Bn===je.Z.DOWN)&&jn.preventDefault(),an&&an(jn),Bn===je.Z.ENTER&&gr==="tags"&&!Ot.current&&!wr&&(Zr==null||Zr(jn.target.value)),!(ri&&!wr&&~[je.Z.UP,je.Z.DOWN,je.Z.LEFT,je.Z.RIGHT].indexOf(Bn))&&Ee(Bn)&&en(!0)},Hn=function(){_r(!0)},Fn=(0,ee.useRef)(null),Jn=function(jn){kr(jn,!0,Ot.current)!==!1&&en(!0)},zn=function(){Ot.current=!0},jr=function(jn){Ot.current=!1,gr!=="combobox"&&Jn(jn.target.value)},Fr=function(jn){var Bn=jn.target.value;if(pr&&Fn.current&&/[\r\n]/.test(Fn.current)){var ri=Fn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Bn=Bn.replace(ri,Fn.current)}Fn.current=null,Jn(Bn)},Er=function(jn){var Bn=jn.clipboardData,ri=Bn==null?void 0:Bn.getData("text");Fn.current=ri||""},Yr=function(jn){var Bn=jn.target;if(Bn!==Qt.current){var ri=document.body.style.msTouchAction!==void 0;ri?setTimeout(function(){Qt.current.focus()}):Qt.current.focus()}},Or=function(jn){var Bn=Wr();jn.target!==Qt.current&&!Bn&&!(gr==="combobox"&&Cr)&&jn.preventDefault(),(gr!=="combobox"&&(!ar||!Bn)||!wr)&&(wr&&Yt!==!1&&kr("",!0,!1),en())},qr={inputRef:Qt,onInputKeyDown:An,onInputMouseDown:Hn,onInputChange:Fr,onInputPaste:Er,onInputCompositionStart:zn,onInputCompositionEnd:jr,onInputBlur:kn},yn=gr==="multiple"||gr==="tags"?ee.createElement(dt,(0,ze.Z)({},_t,qr)):ee.createElement(lt,(0,ze.Z)({},_t,qr));return ee.createElement("div",{ref:Pn,className:"".concat(rr,"-selector"),onClick:Yr,onMouseDown:Or},ir&&ee.createElement("div",{className:"".concat(rr,"-prefix")},ir),yn)},He=ee.forwardRef(st),Ne=He,Ge=Je(65030),Me=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Ke=function(_t){var dr=_t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:dr,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:dr,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:dr,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:dr,adjustY:1},htmlRegion:"scroll"}}},ct=function(_t,dr){var Qt=_t.prefixCls,Ot=_t.disabled,rr=_t.visible,wr=_t.children,gr=_t.popupElement,ar=_t.animation,pr=_t.transitionName,Cr=_t.dropdownStyle,ir=_t.dropdownClassName,Yt=_t.direction,kr=Yt===void 0?"ltr":Yt,Zr=_t.placement,en=_t.builtinPlacements,an=_t.dropdownMatchSelectWidth,kn=_t.dropdownRender,Pn=_t.dropdownAlign,tn=_t.getPopupContainer,Nr=_t.empty,Wr=_t.getTriggerDOMNode,_r=_t.onPopupVisibleChange,An=_t.onPopupMouseEnter,Hn=(0,x.Z)(_t,Me),Fn="".concat(Qt,"-dropdown"),Jn=gr;kn&&(Jn=kn(gr));var zn=ee.useMemo(function(){return en||Ke(an)},[en,an]),jr=ar?"".concat(Fn,"-").concat(ar):pr,Fr=typeof an=="number",Er=ee.useMemo(function(){return Fr?null:an===!1?"minWidth":"width"},[an,Fr]),Yr=Cr;Fr&&(Yr=(0,Te.Z)((0,Te.Z)({},Yr),{},{width:an}));var Or=ee.useRef(null);return ee.useImperativeHandle(dr,function(){return{getPopupElement:function(){var yn;return(yn=Or.current)===null||yn===void 0?void 0:yn.popupElement}}}),ee.createElement(Ge.Z,(0,ze.Z)({},Hn,{showAction:_r?["click"]:[],hideAction:_r?["click"]:[],popupPlacement:Zr||(kr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:zn,prefixCls:Fn,popupTransitionName:jr,popup:ee.createElement("div",{onMouseEnter:An},Jn),ref:Or,stretch:Er,popupAlign:Pn,popupVisible:rr,getPopupContainer:tn,popupClassName:E()(ir,(0,y.Z)({},"".concat(Fn,"-empty"),Nr)),popupStyle:Yr,getTriggerDOMNode:Wr,onPopupVisibleChange:_r}),wr)},pt=ee.forwardRef(ct),rt=pt,Ae=Je(66712);function Pe(Tt,_t){var dr=Tt.key,Qt;return"value"in Tt&&(Qt=Tt.value),dr!=null?dr:Qt!==void 0?Qt:"rc-index-key-".concat(_t)}function Ue(Tt){return typeof Tt!="undefined"&&!Number.isNaN(Tt)}function ot(Tt,_t){var dr=Tt||{},Qt=dr.label,Ot=dr.value,rr=dr.options,wr=dr.groupLabel,gr=Qt||(_t?"children":"label");return{label:gr,value:Ot||"value",options:rr||"options",groupLabel:wr||gr}}function Oe(Tt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dr=_t.fieldNames,Qt=_t.childrenAsData,Ot=[],rr=ot(dr,!1),wr=rr.label,gr=rr.value,ar=rr.options,pr=rr.groupLabel;function Cr(ir,Yt){Array.isArray(ir)&&ir.forEach(function(kr){if(Yt||!(ar in kr)){var Zr=kr[gr];Ot.push({key:Pe(kr,Ot.length),groupOption:Yt,data:kr,label:kr[wr],value:Zr})}else{var en=kr[pr];en===void 0&&Qt&&(en=kr.label),Ot.push({key:Pe(kr,Ot.length),group:!0,data:kr,label:en}),Cr(kr[ar],!0)}})}return Cr(Tt,!1),Ot}function Se(Tt){var _t=(0,Te.Z)({},Tt);return"props"in _t||Object.defineProperty(_t,"props",{get:function(){return(0,oe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),_t}}),_t}var pe=function(_t,dr,Qt){if(!dr||!dr.length)return null;var Ot=!1,rr=function gr(ar,pr){var Cr=(0,Ae.Z)(pr),ir=Cr[0],Yt=Cr.slice(1);if(!ir)return[ar];var kr=ar.split(ir);return Ot=Ot||kr.length>1,kr.reduce(function(Zr,en){return[].concat((0,Ct.Z)(Zr),(0,Ct.Z)(gr(en,Yt)))},[]).filter(Boolean)},wr=rr(_t,dr);return Ot?typeof Qt!="undefined"?wr.slice(0,Qt):wr:null},Be=ee.createContext(null),$e=Be;function Le(Tt){var _t=Tt.visible,dr=Tt.values;if(!_t)return null;var Qt=50;return ee.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(dr.slice(0,Qt).map(function(Ot){var rr=Ot.label,wr=Ot.value;return["number","string"].includes((0,z.Z)(rr))?rr:wr}).join(", ")),dr.length>Qt?", ...":null)}var mt=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],gt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],wt=function(_t){return _t==="tags"||_t==="multiple"},bt=ee.forwardRef(function(Tt,_t){var dr,Qt=Tt.id,Ot=Tt.prefixCls,rr=Tt.className,wr=Tt.showSearch,gr=Tt.tagRender,ar=Tt.direction,pr=Tt.omitDomProps,Cr=Tt.displayValues,ir=Tt.onDisplayValuesChange,Yt=Tt.emptyOptions,kr=Tt.notFoundContent,Zr=kr===void 0?"Not Found":kr,en=Tt.onClear,an=Tt.mode,kn=Tt.disabled,Pn=Tt.loading,tn=Tt.getInputElement,Nr=Tt.getRawInputElement,Wr=Tt.open,_r=Tt.defaultOpen,An=Tt.onDropdownVisibleChange,Hn=Tt.activeValue,Fn=Tt.onActiveValueChange,Jn=Tt.activeDescendantId,zn=Tt.searchValue,jr=Tt.autoClearSearchValue,Fr=Tt.onSearch,Er=Tt.onSearchSplit,Yr=Tt.tokenSeparators,Or=Tt.allowClear,qr=Tt.prefix,yn=Tt.suffixIcon,Rn=Tt.clearIcon,jn=Tt.OptionList,Bn=Tt.animation,ri=Tt.transitionName,xt=Tt.dropdownStyle,Nt=Tt.dropdownClassName,Rt=Tt.dropdownMatchSelectWidth,Ft=Tt.dropdownRender,Jt=Tt.dropdownAlign,Gt=Tt.placement,fr=Tt.builtinPlacements,lr=Tt.getPopupContainer,tr=Tt.showAction,Pt=tr===void 0?[]:tr,zt=Tt.onFocus,Xt=Tt.onBlur,Vt=Tt.onKeyUp,nr=Tt.onKeyDown,Dr=Tt.onMouseDown,or=(0,x.Z)(Tt,mt),er=wt(an),yr=(wr!==void 0?wr:er)||an==="combobox",xr=(0,Te.Z)({},or);gt.forEach(function(Vn){delete xr[Vn]}),pr==null||pr.forEach(function(Vn){delete xr[Vn]});var Br=ee.useState(!1),sn=(0,be.Z)(Br,2),Jr=sn[0],wn=sn[1];ee.useEffect(function(){wn((0,te.Z)())},[]);var mn=ee.useRef(null),bn=ee.useRef(null),En=ee.useRef(null),xn=ee.useRef(null),Wn=ee.useRef(null),Tn=ee.useRef(!1),Nn=ge(),gn=(0,be.Z)(Nn,3),rn=gn[0],hn=gn[1],Sn=gn[2];ee.useImperativeHandle(_t,function(){var Vn,Zn;return{focus:(Vn=xn.current)===null||Vn===void 0?void 0:Vn.focus,blur:(Zn=xn.current)===null||Zn===void 0?void 0:Zn.blur,scrollTo:function(hi){var wi;return(wi=Wn.current)===null||wi===void 0?void 0:wi.scrollTo(hi)},nativeElement:mn.current||bn.current}});var un=ee.useMemo(function(){var Vn;if(an!=="combobox")return zn;var Zn=(Vn=Cr[0])===null||Vn===void 0?void 0:Vn.value;return typeof Zn=="string"||typeof Zn=="number"?String(Zn):""},[zn,an,Cr]),Mn=an==="combobox"&&typeof tn=="function"&&tn()||null,Ln=typeof Nr=="function"&&Nr(),$n=(0,se.x1)(bn,Ln==null||(dr=Ln.props)===null||dr===void 0?void 0:dr.ref),_i=ee.useState(!1),Si=(0,be.Z)(_i,2),yi=Si[0],Di=Si[1];(0,ne.Z)(function(){Di(!0)},[]);var qn=(0,ie.Z)(!1,{defaultValue:_r,value:Wr}),Qn=(0,be.Z)(qn,2),ti=Qn[0],ki=Qn[1],ai=yi?ti:!1,li=!Zr&&Yt;(kn||li&&ai&&an==="combobox")&&(ai=!1);var oi=li?!1:ai,cn=ee.useCallback(function(Vn){var Zn=Vn!==void 0?Vn:!ai;kn||(ki(Zn),ai!==Zn&&(An==null||An(Zn)))},[kn,ai,ki,An]),_n=ee.useMemo(function(){return(Yr||[]).some(function(Vn){return[`
`,`\r
`].includes(Vn)})},[Yr]),Dn=ee.useContext($e)||{},On=Dn.maxCount,Xn=Dn.rawValues,ei=function(Zn,vi,hi){if(!(er&&Ue(On)&&(Xn==null?void 0:Xn.size)>=On)){var wi=!0,Ti=Zn;Fn==null||Fn(null);var la=pe(Zn,Yr,Ue(On)?On-Xn.size:void 0),ia=hi?null:la;return an!=="combobox"&&ia&&(Ti="",Er==null||Er(ia),cn(!1),wi=!1),Fr&&un!==Ti&&Fr(Ti,{source:vi?"typing":"effect"}),wi}},Hi=function(Zn){!Zn||!Zn.trim()||Fr(Zn,{source:"submit"})};ee.useEffect(function(){!ai&&!er&&an!=="combobox"&&ei("",!1,!1)},[ai]),ee.useEffect(function(){ti&&kn&&ki(!1),kn&&!Tn.current&&hn(!1)},[kn]);var fi=xe(),ci=(0,be.Z)(fi,2),Un=ci[0],bi=ci[1],Ki=ee.useRef(!1),ni=function(Zn){var vi=Un(),hi=Zn.key,wi=hi==="Enter";if(wi&&(an!=="combobox"&&Zn.preventDefault(),ai||cn(!0)),bi(!!un),hi==="Backspace"&&!vi&&er&&!un&&Cr.length){for(var Ti=(0,Ct.Z)(Cr),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&&ir(Ti,{type:"remove",values:[la]})}for(var pi=arguments.length,Pi=new Array(pi>1?pi-1:0),Qi=1;Qi<pi;Qi++)Pi[Qi-1]=arguments[Qi];if(ai&&(!wi||!Ki.current)){var ua;wi&&(Ki.current=!0),(ua=Wn.current)===null||ua===void 0||ua.onKeyDown.apply(ua,[Zn].concat(Pi))}nr==null||nr.apply(void 0,[Zn].concat(Pi))},sa=function(Zn){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=Wn.current)===null||Ti===void 0||Ti.onKeyUp.apply(Ti,[Zn].concat(hi))}Zn.key==="Enter"&&(Ki.current=!1),Vt==null||Vt.apply(void 0,[Zn].concat(hi))},Vi=function(Zn){var vi=Cr.filter(function(hi){return hi!==Zn});ir(vi,{type:"remove",values:[Zn]})},Ji=function(){Ki.current=!1},mi=ee.useRef(!1),ro=function(){hn(!0),kn||(zt&&!mi.current&&zt.apply(void 0,arguments),Pt.includes("focus")&&cn(!0)),mi.current=!0},Ya=function(){Tn.current=!0,hn(!1,function(){mi.current=!1,Tn.current=!1,cn(!1)}),!kn&&(un&&(an==="tags"?Fr(un,{source:"submit"}):an==="multiple"&&Fr("",{source:"blur"})),Xt&&Xt.apply(void 0,arguments))},pa=[];ee.useEffect(function(){return function(){pa.forEach(function(Vn){return clearTimeout(Vn)}),pa.splice(0,pa.length)}},[]);var ma=function(Zn){var vi,hi=Zn.target,wi=(vi=En.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),Sn(),!Jr&&!wi.contains(document.activeElement)){var Pi;(Pi=xn.current)===null||Pi===void 0||Pi.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];Dr==null||Dr.apply(void 0,[Zn].concat(ia))},na=ee.useState({}),Ea=(0,be.Z)(na,2),no=Ea[1];function io(){no({})}var ao;Ln&&(ao=function(Zn){cn(Zn)}),Ce(function(){var Vn;return[mn.current,(Vn=En.current)===null||Vn===void 0?void 0:Vn.getPopupElement()]},oi,cn,!!Ln);var La=ee.useMemo(function(){return(0,Te.Z)((0,Te.Z)({},Tt),{},{notFoundContent:Zr,open:ai,triggerOpen:oi,id:Qt,showSearch:yr,multiple:er,toggleOpen:cn})},[Tt,Zr,oi,ai,Qt,yr,er,cn]),Ja=!!yn||Pn,Ba;Ja&&(Ba=ee.createElement(fe,{className:E()("".concat(Ot,"-arrow"),(0,y.Z)({},"".concat(Ot,"-arrow-loading"),Pn)),customizeIcon:yn,customizeIconProps:{loading:Pn,searchValue:un,open:ai,focused:rn,showSearch:yr}}));var Ca=function(){var Zn;en==null||en(),(Zn=xn.current)===null||Zn===void 0||Zn.focus(),ir([],{type:"clear",values:Cr}),ei("",!1,!1)},Qa=me(Ot,Ca,Cr,Or,Rn,kn,un,an),oo=Qa.allowClear,Fa=Qa.clearIcon,ka=ee.createElement(jn,{ref:Wn}),Ta=E()(Ot,rr,(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(Ot,"-focused"),rn),"".concat(Ot,"-multiple"),er),"".concat(Ot,"-single"),!er),"".concat(Ot,"-allow-clear"),Or),"".concat(Ot,"-show-arrow"),Ja),"".concat(Ot,"-disabled"),kn),"".concat(Ot,"-loading"),Pn),"".concat(Ot,"-open"),ai),"".concat(Ot,"-customize-input"),Mn),"".concat(Ot,"-show-search"),yr)),Wi=ee.createElement(rt,{ref:En,disabled:kn,prefixCls:Ot,visible:oi,popupElement:ka,animation:Bn,transitionName:ri,dropdownStyle:xt,dropdownClassName:Nt,direction:ar,dropdownMatchSelectWidth:Rt,dropdownRender:Ft,dropdownAlign:Jt,placement:Gt,builtinPlacements:fr,getPopupContainer:lr,empty:Yt,getTriggerDOMNode:function(Zn){return bn.current||Zn},onPopupVisibleChange:ao,onPopupMouseEnter:io},Ln?ee.cloneElement(Ln,{ref:$n}):ee.createElement(Ne,(0,ze.Z)({},Tt,{domRef:bn,prefixCls:Ot,inputElement:Mn,ref:xn,id:Qt,prefix:qr,showSearch:yr,autoClearSearchValue:jr,mode:an,activeDescendantId:Jn,tagRender:gr,values:Cr,open:ai,onToggleOpen:cn,activeValue:Hn,searchValue:un,onSearch:ei,onSearchSubmit:Hi,onRemove:Vi,tokenWithEnter:_n,onInputBlur:Ji}))),di;return Ln?di=Wi:di=ee.createElement("div",(0,ze.Z)({className:Ta},xr,{ref:mn,onMouseDown:ma,onKeyDown:ni,onKeyUp:sa,onFocus:ro,onBlur:Ya}),ee.createElement(Le,{visible:rn&&!ai,values:Cr}),Wi,Ba,oo&&Fa),ee.createElement(ve.Provider,{value:La},di)}),yt=bt,Et=function(){return null};Et.isSelectOptGroup=!0;var kt=Et,jt=function(){return null};jt.isSelectOption=!0;var It=jt,vr=Je(80547),Kt=Je(2738),Pr=Je(48911);function qt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var zr=["disabled","title","children","style","className"];function Vr(Tt){return typeof Tt=="string"||typeof Tt=="number"}var Xr=function(_t,dr){var Qt=he(),Ot=Qt.prefixCls,rr=Qt.id,wr=Qt.open,gr=Qt.multiple,ar=Qt.mode,pr=Qt.searchValue,Cr=Qt.toggleOpen,ir=Qt.notFoundContent,Yt=Qt.onPopupScroll,kr=ee.useContext($e),Zr=kr.maxCount,en=kr.flattenOptions,an=kr.onActiveValue,kn=kr.defaultActiveFirstOption,Pn=kr.onSelect,tn=kr.menuItemSelectedIcon,Nr=kr.rawValues,Wr=kr.fieldNames,_r=kr.virtual,An=kr.direction,Hn=kr.listHeight,Fn=kr.listItemHeight,Jn=kr.optionRender,zn="".concat(Ot,"-item"),jr=(0,vr.Z)(function(){return en},[wr,en],function(tr,Pt){return Pt[0]&&tr[1]!==Pt[1]}),Fr=ee.useRef(null),Er=ee.useMemo(function(){return gr&&Ue(Zr)&&(Nr==null?void 0:Nr.size)>=Zr},[gr,Zr,Nr==null?void 0:Nr.size]),Yr=function(Pt){Pt.preventDefault()},Or=function(Pt){var zt;(zt=Fr.current)===null||zt===void 0||zt.scrollTo(typeof Pt=="number"?{index:Pt}:Pt)},qr=ee.useCallback(function(tr){return ar==="combobox"?!1:Nr.has(tr)},[ar,(0,Ct.Z)(Nr).toString(),Nr.size]),yn=function(Pt){for(var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xt=jr.length,Vt=0;Vt<Xt;Vt+=1){var nr=(Pt+Vt*zt+Xt)%Xt,Dr=jr[nr]||{},or=Dr.group,er=Dr.data;if(!or&&!(er!=null&&er.disabled)&&(qr(er.value)||!Er))return nr}return-1},Rn=ee.useState(function(){return yn(0)}),jn=(0,be.Z)(Rn,2),Bn=jn[0],ri=jn[1],xt=function(Pt){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ri(Pt);var Xt={source:zt?"keyboard":"mouse"},Vt=jr[Pt];if(!Vt){an(null,-1,Xt);return}an(Vt.value,Pt,Xt)};(0,ee.useEffect)(function(){xt(kn!==!1?yn(0):-1)},[jr.length,pr]);var Nt=ee.useCallback(function(tr){return ar==="combobox"?String(tr).toLowerCase()===pr.toLowerCase():Nr.has(tr)},[ar,pr,(0,Ct.Z)(Nr).toString(),Nr.size]);(0,ee.useEffect)(function(){var tr=setTimeout(function(){if(!gr&&wr&&Nr.size===1){var zt=Array.from(Nr)[0],Xt=jr.findIndex(function(Vt){var nr=Vt.data;return pr?String(nr.value).startsWith(pr):nr.value===zt});Xt!==-1&&(xt(Xt),Or(Xt))}});if(wr){var Pt;(Pt=Fr.current)===null||Pt===void 0||Pt.scrollTo(void 0)}return function(){return clearTimeout(tr)}},[wr,pr]);var Rt=function(Pt){Pt!==void 0&&Pn(Pt,{selected:!Nr.has(Pt)}),gr||Cr(!1)};if(ee.useImperativeHandle(dr,function(){return{onKeyDown:function(Pt){var zt=Pt.which,Xt=Pt.ctrlKey;switch(zt){case je.Z.N:case je.Z.P:case je.Z.UP:case je.Z.DOWN:{var Vt=0;if(zt===je.Z.UP?Vt=-1:zt===je.Z.DOWN?Vt=1:qt()&&Xt&&(zt===je.Z.N?Vt=1:zt===je.Z.P&&(Vt=-1)),Vt!==0){var nr=yn(Bn+Vt,Vt);Or(nr),xt(nr,!0)}break}case je.Z.TAB:case je.Z.ENTER:{var Dr,or=jr[Bn];or&&!(or!=null&&(Dr=or.data)!==null&&Dr!==void 0&&Dr.disabled)&&!Er?Rt(or.value):Rt(void 0),wr&&Pt.preventDefault();break}case je.Z.ESC:Cr(!1),wr&&Pt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pt){Or(Pt)}}}),jr.length===0)return ee.createElement("div",{role:"listbox",id:"".concat(rr,"_list"),className:"".concat(zn,"-empty"),onMouseDown:Yr},ir);var Ft=Object.keys(Wr).map(function(tr){return Wr[tr]}),Jt=function(Pt){return Pt.label};function Gt(tr,Pt){var zt=tr.group;return{role:zt?"presentation":"option",id:"".concat(rr,"_list_").concat(Pt)}}var fr=function(Pt){var zt=jr[Pt];if(!zt)return null;var Xt=zt.data||{},Vt=Xt.value,nr=zt.group,Dr=(0,ce.Z)(Xt,!0),or=Jt(zt);return zt?ee.createElement("div",(0,ze.Z)({"aria-label":typeof or=="string"&&!nr?or:null},Dr,{key:Pt},Gt(zt,Pt),{"aria-selected":Nt(Vt)}),Vt):null},lr={role:"listbox",id:"".concat(rr,"_list")};return ee.createElement(ee.Fragment,null,_r&&ee.createElement("div",(0,ze.Z)({},lr,{style:{height:0,width:0,overflow:"hidden"}}),fr(Bn-1),fr(Bn),fr(Bn+1)),ee.createElement(Pr.Z,{itemKey:"key",ref:Fr,data:jr,height:Hn,itemHeight:Fn,fullHeight:!1,onMouseDown:Yr,onScroll:Yt,virtual:_r,direction:An,innerProps:_r?null:lr},function(tr,Pt){var zt=tr.group,Xt=tr.groupOption,Vt=tr.data,nr=tr.label,Dr=tr.value,or=Vt.key;if(zt){var er,yr=(er=Vt.title)!==null&&er!==void 0?er:Vr(nr)?nr.toString():void 0;return ee.createElement("div",{className:E()(zn,"".concat(zn,"-group"),Vt.className),title:yr},nr!==void 0?nr:or)}var xr=Vt.disabled,Br=Vt.title,sn=Vt.children,Jr=Vt.style,wn=Vt.className,mn=(0,x.Z)(Vt,zr),bn=(0,Kt.Z)(mn,Ft),En=qr(Dr),xn=xr||!En&&Er,Wn="".concat(zn,"-option"),Tn=E()(zn,Wn,wn,(0,y.Z)((0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Wn,"-grouped"),Xt),"".concat(Wn,"-active"),Bn===Pt&&!xn),"".concat(Wn,"-disabled"),xn),"".concat(Wn,"-selected"),En)),Nn=Jt(tr),gn=!tn||typeof tn=="function"||En,rn=typeof Nn=="number"?Nn:Nn||Dr,hn=Vr(rn)?rn.toString():void 0;return Br!==void 0&&(hn=Br),ee.createElement("div",(0,ze.Z)({},(0,ce.Z)(bn),_r?{}:Gt(tr,Pt),{"aria-selected":Nt(Dr),className:Tn,title:hn,onMouseMove:function(){Bn===Pt||xn||xt(Pt)},onClick:function(){xn||Rt(Dr)},style:Jr}),ee.createElement("div",{className:"".concat(Wn,"-content")},typeof Jn=="function"?Jn(tr,{index:Pt}):rn),ee.isValidElement(tn)||En,gn&&ee.createElement(fe,{className:"".concat(zn,"-option-state"),customizeIcon:tn,customizeIconProps:{value:Dr,disabled:xn,isSelected:En}},En?"\u2713":null))}))},pn=ee.forwardRef(Xr),nn=pn,Mr=function(Tt,_t){var dr=ee.useRef({values:new Map,options:new Map}),Qt=ee.useMemo(function(){var rr=dr.current,wr=rr.values,gr=rr.options,ar=Tt.map(function(ir){if(ir.label===void 0){var Yt;return(0,Te.Z)((0,Te.Z)({},ir),{},{label:(Yt=wr.get(ir.value))===null||Yt===void 0?void 0:Yt.label})}return ir}),pr=new Map,Cr=new Map;return ar.forEach(function(ir){pr.set(ir.value,ir),Cr.set(ir.value,_t.get(ir.value)||gr.get(ir.value))}),dr.current.values=pr,dr.current.options=Cr,ar},[Tt,_t]),Ot=ee.useCallback(function(rr){return _t.get(rr)||dr.current.options.get(rr)},[_t]);return[Qt,Ot]};function fn(Tt,_t){return Ve(Tt).join("").toUpperCase().includes(_t)}var dn=function(Tt,_t,dr,Qt,Ot){return ee.useMemo(function(){if(!dr||Qt===!1)return Tt;var rr=_t.options,wr=_t.label,gr=_t.value,ar=[],pr=typeof Qt=="function",Cr=dr.toUpperCase(),ir=pr?Qt:function(kr,Zr){return Ot?fn(Zr[Ot],Cr):Zr[rr]?fn(Zr[wr!=="children"?wr:"label"],Cr):fn(Zr[gr],Cr)},Yt=pr?function(kr){return Se(kr)}:function(kr){return kr};return Tt.forEach(function(kr){if(kr[rr]){var Zr=ir(dr,Yt(kr));if(Zr)ar.push(kr);else{var en=kr[rr].filter(function(an){return ir(dr,Yt(an))});en.length&&ar.push((0,Te.Z)((0,Te.Z)({},kr),{},(0,y.Z)({},rr,en)))}return}ir(dr,Yt(kr))&&ar.push(kr)}),ar},[Tt,Qt,Ot,dr,_t])},Lr=Je(6551),Ir=Je(11592),Mt=["children","value"],Lt=["children"];function At(Tt){var _t=Tt,dr=_t.key,Qt=_t.props,Ot=Qt.children,rr=Qt.value,wr=(0,x.Z)(Qt,Mt);return(0,Te.Z)({key:dr,value:rr!==void 0?rr:dr,children:Ot},wr)}function $t(Tt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ir.Z)(Tt).map(function(dr,Qt){if(!ee.isValidElement(dr)||!dr.type)return null;var Ot=dr,rr=Ot.type.isSelectOptGroup,wr=Ot.key,gr=Ot.props,ar=gr.children,pr=(0,x.Z)(gr,Lt);return _t||!rr?At(dr):(0,Te.Z)((0,Te.Z)({key:"__RC_SELECT_GRP__".concat(wr===null?Qt:wr,"__"),label:wr},pr),{},{options:$t(ar)})}).filter(function(dr){return dr})}var cr=function(_t,dr,Qt,Ot,rr){return ee.useMemo(function(){var wr=_t,gr=!_t;gr&&(wr=$t(dr));var ar=new Map,pr=new Map,Cr=function(kr,Zr,en){en&&typeof en=="string"&&kr.set(Zr[en],Zr)},ir=function Yt(kr){for(var Zr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,en=0;en<kr.length;en+=1){var an=kr[en];!an[Qt.options]||Zr?(ar.set(an[Qt.value],an),Cr(pr,an,Qt.label),Cr(pr,an,Ot),Cr(pr,an,rr)):Yt(an[Qt.options],!0)}};return ir(wr),{options:wr,valueOptions:ar,labelOptions:pr}},[_t,dr,Qt,Ot,rr])},mr=cr;function Sr(Tt){var _t=ee.useRef();_t.current=Tt;var dr=ee.useCallback(function(){return _t.current.apply(_t,arguments)},[]);return dr}function Tr(Tt){var _t=Tt.mode,dr=Tt.options,Qt=Tt.children,Ot=Tt.backfill,rr=Tt.allowClear,wr=Tt.placeholder,gr=Tt.getInputElement,ar=Tt.showSearch,pr=Tt.onSearch,Cr=Tt.defaultOpen,ir=Tt.autoFocus,Yt=Tt.labelInValue,kr=Tt.value,Zr=Tt.inputValue,en=Tt.optionLabelProp,an=isMultiple(_t),kn=ar!==void 0?ar:an||_t==="combobox",Pn=dr||convertChildrenToData(Qt);if(warning(_t!=="tags"||Pn.every(function(_r){return!_r.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),_t==="tags"||_t==="combobox"){var tn=Pn.some(function(_r){return _r.options?_r.options.some(function(An){return typeof("value"in An?An.value:An.key)=="number"}):typeof("value"in _r?_r.value:_r.key)=="number"});warning(!tn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(_t!=="combobox"||!en,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(_t==="combobox"||!Ot,"`backfill` only works with `combobox` mode."),warning(_t==="combobox"||!gr,"`getInputElement` only work with `combobox` mode."),noteOnce(_t!=="combobox"||!gr||!rr||!wr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),pr&&!kn&&_t!=="combobox"&&_t!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Cr||ir,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),kr!=null){var Nr=toArray(kr);warning(!Yt||Nr.every(function(_r){return _typeof(_r)==="object"&&("key"in _r||"value"in _r)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!an||Array.isArray(kr),"`value` should be array when `mode` is `multiple` or `tags`")}if(Qt){var Wr=null;toNodeArray(Qt).some(function(_r){if(!React.isValidElement(_r)||!_r.type)return!1;var An=_r,Hn=An.type;if(Hn.isSelectOption)return!1;if(Hn.isSelectOptGroup){var Fn=toNodeArray(_r.props.children).every(function(Jn){return!React.isValidElement(Jn)||!_r.type||Jn.type.isSelectOption?!0:(Wr=Jn.type,!1)});return!Fn}return Wr=Hn,!0}),Wr&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Wr.displayName||Wr.name||Wr,"`.")),warning(Zr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function br(Tt,_t){if(Tt){var dr=function Qt(Ot){for(var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,wr=0;wr<Ot.length;wr++){var gr=Ot[wr];if(gr[_t==null?void 0:_t.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!rr&&Array.isArray(gr[_t==null?void 0:_t.options])&&Qt(gr[_t==null?void 0:_t.options],!0))break}};dr(Tt)}}var Rr=null,Ur=["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"],Kr=["inputValue"];function sr(Tt){return!Tt||(0,z.Z)(Tt)!=="object"}var Bt=ee.forwardRef(function(Tt,_t){var dr=Tt.id,Qt=Tt.mode,Ot=Tt.prefixCls,rr=Ot===void 0?"rc-select":Ot,wr=Tt.backfill,gr=Tt.fieldNames,ar=Tt.inputValue,pr=Tt.searchValue,Cr=Tt.onSearch,ir=Tt.autoClearSearchValue,Yt=ir===void 0?!0:ir,kr=Tt.onSelect,Zr=Tt.onDeselect,en=Tt.dropdownMatchSelectWidth,an=en===void 0?!0:en,kn=Tt.filterOption,Pn=Tt.filterSort,tn=Tt.optionFilterProp,Nr=Tt.optionLabelProp,Wr=Tt.options,_r=Tt.optionRender,An=Tt.children,Hn=Tt.defaultActiveFirstOption,Fn=Tt.menuItemSelectedIcon,Jn=Tt.virtual,zn=Tt.direction,jr=Tt.listHeight,Fr=jr===void 0?200:jr,Er=Tt.listItemHeight,Yr=Er===void 0?20:Er,Or=Tt.labelRender,qr=Tt.value,yn=Tt.defaultValue,Rn=Tt.labelInValue,jn=Tt.onChange,Bn=Tt.maxCount,ri=(0,x.Z)(Tt,Ur),xt=(0,Lr.ZP)(dr),Nt=wt(Qt),Rt=!!(!Wr&&An),Ft=ee.useMemo(function(){return kn===void 0&&Qt==="combobox"?!1:kn},[kn,Qt]),Jt=ee.useMemo(function(){return ot(gr,Rt)},[JSON.stringify(gr),Rt]),Gt=(0,ie.Z)("",{value:pr!==void 0?pr:ar,postState:function(_n){return _n||""}}),fr=(0,be.Z)(Gt,2),lr=fr[0],tr=fr[1],Pt=mr(Wr,An,Jt,tn,Nr),zt=Pt.valueOptions,Xt=Pt.labelOptions,Vt=Pt.options,nr=ee.useCallback(function(cn){var _n=Ve(cn);return _n.map(function(Dn){var On,Xn,ei,Hi,fi;if(sr(Dn))On=Dn;else{var ci;ei=Dn.key,Xn=Dn.label,On=(ci=Dn.value)!==null&&ci!==void 0?ci:ei}var Un=zt.get(On);if(Un){var bi;if(Xn===void 0&&(Xn=Un==null?void 0:Un[Nr||Jt.label]),ei===void 0&&(ei=(bi=Un==null?void 0:Un.key)!==null&&bi!==void 0?bi:On),Hi=Un==null?void 0:Un.disabled,fi=Un==null?void 0:Un.title,0)var Ki}return{label:Xn,value:On,key:ei,disabled:Hi,title:fi}})},[Jt,Nr,zt]),Dr=(0,ie.Z)(yn,{value:qr}),or=(0,be.Z)(Dr,2),er=or[0],yr=or[1],xr=ee.useMemo(function(){var cn,_n=Nt&&er===null?[]:er,Dn=nr(_n);return Qt==="combobox"&&We((cn=Dn[0])===null||cn===void 0?void 0:cn.value)?[]:Dn},[er,nr,Qt,Nt]),Br=Mr(xr,zt),sn=(0,be.Z)(Br,2),Jr=sn[0],wn=sn[1],mn=ee.useMemo(function(){if(!Qt&&Jr.length===1){var cn=Jr[0];if(cn.value===null&&(cn.label===null||cn.label===void 0))return[]}return Jr.map(function(_n){var Dn;return(0,Te.Z)((0,Te.Z)({},_n),{},{label:(Dn=typeof Or=="function"?Or(_n):_n.label)!==null&&Dn!==void 0?Dn:_n.value})})},[Qt,Jr,Or]),bn=ee.useMemo(function(){return new Set(Jr.map(function(cn){return cn.value}))},[Jr]);ee.useEffect(function(){if(Qt==="combobox"){var cn,_n=(cn=Jr[0])===null||cn===void 0?void 0:cn.value;tr(Ie(_n)?String(_n):"")}},[Jr]);var En=Sr(function(cn,_n){var Dn=_n!=null?_n:cn;return(0,y.Z)((0,y.Z)({},Jt.value,cn),Jt.label,Dn)}),xn=ee.useMemo(function(){if(Qt!=="tags")return Vt;var cn=(0,Ct.Z)(Vt),_n=function(On){return zt.has(On)};return(0,Ct.Z)(Jr).sort(function(Dn,On){return Dn.value<On.value?-1:1}).forEach(function(Dn){var On=Dn.value;_n(On)||cn.push(En(On,Dn.label))}),cn},[En,Vt,zt,Jr,Qt]),Wn=dn(xn,Jt,lr,Ft,tn),Tn=ee.useMemo(function(){return Qt!=="tags"||!lr||Wn.some(function(cn){return cn[tn||"value"]===lr})||Wn.some(function(cn){return cn[Jt.value]===lr})?Wn:[En(lr)].concat((0,Ct.Z)(Wn))},[En,tn,Qt,Wn,lr,Jt]),Nn=function cn(_n){var Dn=(0,Ct.Z)(_n).sort(function(On,Xn){return Pn(On,Xn,{searchValue:lr})});return Dn.map(function(On){return Array.isArray(On.options)?(0,Te.Z)((0,Te.Z)({},On),{},{options:On.options.length>0?cn(On.options):On.options}):On})},gn=ee.useMemo(function(){return Pn?Nn(Tn):Tn},[Tn,Pn,lr]),rn=ee.useMemo(function(){return Oe(gn,{fieldNames:Jt,childrenAsData:Rt})},[gn,Jt,Rt]),hn=function(_n){var Dn=nr(_n);if(yr(Dn),jn&&(Dn.length!==Jr.length||Dn.some(function(ei,Hi){var fi;return((fi=Jr[Hi])===null||fi===void 0?void 0:fi.value)!==(ei==null?void 0:ei.value)}))){var On=Rn?Dn:Dn.map(function(ei){return ei.value}),Xn=Dn.map(function(ei){return Se(wn(ei.value))});jn(Nt?On:On[0],Nt?Xn:Xn[0])}},Sn=ee.useState(null),un=(0,be.Z)(Sn,2),Mn=un[0],Ln=un[1],$n=ee.useState(0),_i=(0,be.Z)($n,2),Si=_i[0],yi=_i[1],Di=Hn!==void 0?Hn:Qt!=="combobox",qn=ee.useCallback(function(cn,_n){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},On=Dn.source,Xn=On===void 0?"keyboard":On;yi(_n),wr&&Qt==="combobox"&&cn!==null&&Xn==="keyboard"&&Ln(String(cn))},[wr,Qt]),Qn=function(_n,Dn,On){var Xn=function(){var Vi,Ji=wn(_n);return[Rn?{label:Ji==null?void 0:Ji[Jt.label],value:_n,key:(Vi=Ji==null?void 0:Ji.key)!==null&&Vi!==void 0?Vi:_n}:_n,Se(Ji)]};if(Dn&&kr){var ei=Xn(),Hi=(0,be.Z)(ei,2),fi=Hi[0],ci=Hi[1];kr(fi,ci)}else if(!Dn&&Zr&&On!=="clear"){var Un=Xn(),bi=(0,be.Z)(Un,2),Ki=bi[0],ni=bi[1];Zr(Ki,ni)}},ti=Sr(function(cn,_n){var Dn,On=Nt?_n.selected:!0;On?Dn=Nt?[].concat((0,Ct.Z)(Jr),[cn]):[cn]:Dn=Jr.filter(function(Xn){return Xn.value!==cn}),hn(Dn),Qn(cn,On),Qt==="combobox"?Ln(""):(!wt||Yt)&&(tr(""),Ln(""))}),ki=function(_n,Dn){hn(_n);var On=Dn.type,Xn=Dn.values;(On==="remove"||On==="clear")&&Xn.forEach(function(ei){Qn(ei.value,!1,On)})},ai=function(_n,Dn){if(tr(_n),Ln(null),Dn.source==="submit"){var On=(_n||"").trim();if(On){var Xn=Array.from(new Set([].concat((0,Ct.Z)(bn),[On])));hn(Xn),Qn(On,!0),tr("")}return}Dn.source!=="blur"&&(Qt==="combobox"&&hn(_n),Cr==null||Cr(_n))},li=function(_n){var Dn=_n;Qt!=="tags"&&(Dn=_n.map(function(Xn){var ei=Xt.get(Xn);return ei==null?void 0:ei.value}).filter(function(Xn){return Xn!==void 0}));var On=Array.from(new Set([].concat((0,Ct.Z)(bn),(0,Ct.Z)(Dn))));hn(On),On.forEach(function(Xn){Qn(Xn,!0)})},oi=ee.useMemo(function(){var cn=Jn!==!1&&an!==!1;return(0,Te.Z)((0,Te.Z)({},Pt),{},{flattenOptions:rn,onActiveValue:qn,defaultActiveFirstOption:Di,onSelect:ti,menuItemSelectedIcon:Fn,rawValues:bn,fieldNames:Jt,virtual:cn,direction:zn,listHeight:Fr,listItemHeight:Yr,childrenAsData:Rt,maxCount:Bn,optionRender:_r})},[Bn,Pt,rn,qn,Di,ti,Fn,bn,Jt,Jn,an,zn,Fr,Yr,Rt,_r]);return ee.createElement($e.Provider,{value:oi},ee.createElement(yt,(0,ze.Z)({},ri,{id:xt,prefixCls:rr,ref:_t,omitDomProps:Kr,mode:Qt,displayValues:mn,onDisplayValuesChange:ki,direction:zn,searchValue:lr,onSearch:ai,autoClearSearchValue:Yt,onSearchSplit:li,dropdownMatchSelectWidth:an,OptionList:nn,emptyOptions:!rn.length,activeValue:Mn,activeDescendantId:"".concat(xt,"_list_").concat(Si)})))}),Wt=Bt;Wt.Option=It,Wt.OptGroup=kt;var Gr=Wt,on=Gr},63158:function(ur,Zt,Je){"use strict";var ze=Je(54476),Ct=Je(20068),y=Je(42978),Te=Je(75931),be=Je(59301),x=Je(92310),z=Je.n(x),ie=Je(18929),oe=Je(10228),ee=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],le=be.forwardRef(function(E,ne){var te,se=E.prefixCls,ue=se===void 0?"rc-switch":se,fe=E.className,me=E.checked,ve=E.defaultChecked,he=E.disabled,ge=E.loadingIcon,xe=E.checkedChildren,Ce=E.unCheckedChildren,je=E.onClick,Ee=E.onChange,ce=E.onKeyDown,ye=(0,Te.Z)(E,ee),we=(0,ie.Z)(!1,{value:me,defaultValue:ve}),De=(0,y.Z)(we,2),Re=De[0],ke=De[1];function _e(ut,Ie){var We=Re;return he||(We=ut,ke(We),Ee==null||Ee(We,Ie)),We}function Ze(ut){ut.which===oe.Z.LEFT?_e(!1,ut):ut.which===oe.Z.RIGHT&&_e(!0,ut),ce==null||ce(ut)}function Ve(ut){var Ie=_e(!Re,ut);je==null||je(Ie,ut)}var Qe=z()(ue,fe,(te={},(0,Ct.Z)(te,"".concat(ue,"-checked"),Re),(0,Ct.Z)(te,"".concat(ue,"-disabled"),he),te));return be.createElement("button",(0,ze.Z)({},ye,{type:"button",role:"switch","aria-checked":Re,disabled:he,className:Qe,ref:ne,onKeyDown:Ze,onClick:Ve}),ge,be.createElement("span",{className:"".concat(ue,"-inner")},be.createElement("span",{className:"".concat(ue,"-inner-checked")},xe),be.createElement("span",{className:"".concat(ue,"-inner-unchecked")},Ce)))});le.displayName="Switch",Zt.Z=le},86351:function(ur,Zt,Je){"use strict";Je.d(Zt,{R:function(){return Ct},w:function(){return ze}});var ze={},Ct="rc-table-internal-hook"},97347:function(ur,Zt,Je){"use strict";Je.d(Zt,{L:function(){return ue},Z:function(){return ge}});var ze=Je(42978),Ct=Je(20068),y=Je(94480),Te=Je(76190),be=Je(33885),x=Je(75931),z=Je(11592),ie=Je(48736),oe=Je(59301),ee=Je(86351),le=Je(54451);function E(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?xe*parseFloat(Ce)/100:null}function ne(xe,Ce,je){return oe.useMemo(function(){if(Ce&&Ce>0){var Ee=0,ce=0;xe.forEach(function(Ve){var Qe=E(Ce,Ve.width);Qe?Ee+=Qe:ce+=1});var ye=Math.max(Ce,je),we=Math.max(ye-Ee,ce),De=ce,Re=we/ce,ke=0,_e=xe.map(function(Ve){var Qe=(0,be.Z)({},Ve),ut=E(Ce,Qe.width);if(ut)Qe.width=ut;else{var Ie=Math.floor(Re);Qe.width=De===1?we:Ie,we-=Ie,De-=1}return ke+=Qe.width,Qe});if(ke<ye){var Ze=ye/ke;we=ye,_e.forEach(function(Ve,Qe){var ut=Math.floor(Ve.width*Ze);Ve.width=Qe===_e.length-1?we:ut,we-=ut})}return[_e,Math.max(ke,ye)]}return[xe,Ce]},[xe,Ce,je])}var te=["children"],se=["fixed"];function ue(xe){return(0,z.Z)(xe).filter(function(Ce){return oe.isValidElement(Ce)}).map(function(Ce){var je=Ce.key,Ee=Ce.props,ce=Ee.children,ye=(0,x.Z)(Ee,te),we=(0,be.Z)({key:je},ye);return ce&&(we.children=ue(ce)),we})}function fe(xe){return xe.filter(function(Ce){return Ce&&(0,Te.Z)(Ce)==="object"&&!Ce.hidden}).map(function(Ce){var je=Ce.children;return je&&je.length>0?(0,be.Z)((0,be.Z)({},Ce),{},{children:fe(je)}):Ce})}function me(xe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return xe.filter(function(je){return je&&(0,Te.Z)(je)==="object"}).reduce(function(je,Ee,ce){var ye=Ee.fixed,we=ye===!0?"left":ye,De="".concat(Ce,"-").concat(ce),Re=Ee.children;return Re&&Re.length>0?[].concat((0,y.Z)(je),(0,y.Z)(me(Re,De).map(function(ke){return(0,be.Z)({fixed:we},ke)}))):[].concat((0,y.Z)(je),[(0,be.Z)((0,be.Z)({key:De},Ee),{},{fixed:we})])},[])}function ve(xe){return xe.map(function(Ce){var je=Ce.fixed,Ee=(0,x.Z)(Ce,se),ce=je;return je==="left"?ce="right":je==="right"&&(ce="left"),(0,be.Z)({fixed:ce},Ee)})}function he(xe,Ce){var je=xe.prefixCls,Ee=xe.columns,ce=xe.children,ye=xe.expandable,we=xe.expandedKeys,De=xe.columnTitle,Re=xe.getRowKey,ke=xe.onTriggerExpand,_e=xe.expandIcon,Ze=xe.rowExpandable,Ve=xe.expandIconColumnIndex,Qe=xe.direction,ut=xe.expandRowByClick,Ie=xe.columnWidth,We=xe.fixed,it=xe.scrollWidth,at=xe.clientWidth,nt=oe.useMemo(function(){var Ne=Ee||ue(ce)||[];return fe(Ne.slice())},[Ee,ce]),Xe=oe.useMemo(function(){if(ye){var Ne=nt.slice();if(!Ne.includes(ee.w)){var Ge=Ve||0;Ge>=0&&(Ge||We==="left"||!We)&&Ne.splice(Ge,0,ee.w),We==="right"&&Ne.splice(nt.length,0,ee.w)}var Me=Ne.indexOf(ee.w);Ne=Ne.filter(function(rt,Ae){return rt!==ee.w||Ae===Me});var Ke=nt[Me],ct;We?ct=We:ct=Ke?Ke.fixed:null;var pt=(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},le.v,{className:"".concat(je,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",De),"fixed",ct),"className","".concat(je,"-row-expand-icon-cell")),"width",Ie),"render",function(Ae,Pe,Ue){var ot=Re(Pe,Ue),Oe=we.has(ot),Se=Ze?Ze(Pe):!0,pe=_e({prefixCls:je,expanded:Oe,expandable:Se,record:Pe,onExpand:ke});return ut?oe.createElement("span",{onClick:function($e){return $e.stopPropagation()}},pe):pe});return Ne.map(function(rt){return rt===ee.w?pt:rt})}return nt.filter(function(rt){return rt!==ee.w})},[ye,nt,Re,we,_e,Qe]),et=oe.useMemo(function(){var Ne=Xe;return Ce&&(Ne=Ce(Ne)),Ne.length||(Ne=[{render:function(){return null}}]),Ne},[Ce,Xe,Qe]),Ye=oe.useMemo(function(){return Qe==="rtl"?ve(me(et)):me(et)},[et,Qe,it]),dt=oe.useMemo(function(){for(var Ne=-1,Ge=Ye.length-1;Ge>=0;Ge-=1){var Me=Ye[Ge].fixed;if(Me==="left"||Me===!0){Ne=Ge;break}}if(Ne>=0)for(var Ke=0;Ke<=Ne;Ke+=1){var ct=Ye[Ke].fixed;if(ct!=="left"&&ct!==!0)return!0}var pt=Ye.findIndex(function(Pe){var Ue=Pe.fixed;return Ue==="right"});if(pt>=0)for(var rt=pt;rt<Ye.length;rt+=1){var Ae=Ye[rt].fixed;if(Ae!=="right")return!0}return!1},[Ye]),tt=ne(Ye,it,at),lt=(0,ze.Z)(tt,2),st=lt[0],He=lt[1];return[et,st,He,dt]}var ge=he},4030:function(ur,Zt,Je){"use strict";Je.d(Zt,{w2:function(){return ze.w},vP:function(){return Vr.v},RQ:function(){return ze.R},ER:function(){return ot},Q$:function(){return kn},TN:function(){return jn}});var ze=Je(86351),Ct=Je(42978),y=Je(6089),Te=Je(34280),be=Je(13697),x=Je(59301),z=Je(4676);function ie(xt){var Nt=x.createContext(void 0),Rt=function(Jt){var Gt=Jt.value,fr=Jt.children,lr=x.useRef(Gt);lr.current=Gt;var tr=x.useState(function(){return{getValue:function(){return lr.current},listeners:new Set}}),Pt=(0,Ct.Z)(tr,1),zt=Pt[0];return(0,Te.Z)(function(){(0,z.unstable_batchedUpdates)(function(){zt.listeners.forEach(function(Xt){Xt(Gt)})})},[Gt]),x.createElement(Nt.Provider,{value:zt},fr)};return{Context:Nt,Provider:Rt,defaultValue:xt}}function oe(xt,Nt){var Rt=(0,y.Z)(typeof Nt=="function"?Nt:function(Xt){if(Nt===void 0)return Xt;if(!Array.isArray(Nt))return Xt[Nt];var Vt={};return Nt.forEach(function(nr){Vt[nr]=Xt[nr]}),Vt}),Ft=x.useContext(xt==null?void 0:xt.Context),Jt=Ft||{},Gt=Jt.listeners,fr=Jt.getValue,lr=x.useRef();lr.current=Rt(Ft?fr():xt==null?void 0:xt.defaultValue);var tr=x.useState({}),Pt=(0,Ct.Z)(tr,2),zt=Pt[1];return(0,Te.Z)(function(){if(!Ft)return;function Xt(Vt){var nr=Rt(Vt);(0,be.Z)(lr.current,nr,!0)||zt({})}return Gt.add(Xt),function(){Gt.delete(Xt)}},[Ft]),lr.current}var ee=Je(54476),le=Je(8654);function E(){var xt=x.createContext(null);function Nt(){return x.useContext(xt)}function Rt(Jt,Gt){var fr=(0,le.Yr)(Jt),lr=function(Pt,zt){var Xt=fr?{ref:zt}:{},Vt=x.useRef(0),nr=x.useRef(Pt),Dr=Nt();return Dr!==null?x.createElement(Jt,(0,ee.Z)({},Pt,Xt)):((!Gt||Gt(nr.current,Pt))&&(Vt.current+=1),nr.current=Pt,x.createElement(xt.Provider,{value:Vt.current},x.createElement(Jt,(0,ee.Z)({},Pt,Xt))))};return fr?x.forwardRef(lr):lr}function Ft(Jt,Gt){var fr=(0,le.Yr)(Jt),lr=function(Pt,zt){var Xt=fr?{ref:zt}:{};return Nt(),x.createElement(Jt,(0,ee.Z)({},Pt,Xt))};return fr?x.memo(x.forwardRef(lr),Gt):x.memo(lr,Gt)}return{makeImmutable:Rt,responseImmutable:Ft,useImmutableMark:Nt}}var ne=E(),te=ne.makeImmutable,se=ne.responseImmutable,ue=ne.useImmutableMark,fe=E(),me=fe.makeImmutable,ve=fe.responseImmutable,he=fe.useImmutableMark,ge=ie(),xe=ge;function Ce(xt,Nt){var Rt=React.useRef(0);Rt.current+=1;var Ft=React.useRef(xt),Jt=[];Object.keys(xt||{}).map(function(fr){var lr;(xt==null?void 0:xt[fr])!==((lr=Ft.current)===null||lr===void 0?void 0:lr[fr])&&Jt.push(fr)}),Ft.current=xt;var Gt=React.useRef([]);return Jt.length&&(Gt.current=Jt),React.useDebugValue(Rt.current),React.useDebugValue(Gt.current.join(", ")),Nt&&console.log("".concat(Nt,":"),Rt.current,Gt.current),Rt.current}var je=null,Ee=null,ce=Je(76190),ye=Je(33885),we=Je(20068),De=Je(92310),Re=Je.n(De),ke=Je(80547),_e=Je(97938),Ze=Je(48736),Ve=x.createContext({renderWithProps:!1}),Qe=Ve,ut="RC_TABLE_KEY";function Ie(xt){return xt==null?[]:Array.isArray(xt)?xt:[xt]}function We(xt){var Nt=[],Rt={};return xt.forEach(function(Ft){for(var Jt=Ft||{},Gt=Jt.key,fr=Jt.dataIndex,lr=Gt||Ie(fr).join("-")||ut;Rt[lr];)lr="".concat(lr,"_next");Rt[lr]=!0,Nt.push(lr)}),Nt}function it(xt){return xt!=null}function at(xt){return typeof xt=="number"&&!Number.isNaN(xt)}function nt(xt){return xt&&(0,ce.Z)(xt)==="object"&&!Array.isArray(xt)&&!x.isValidElement(xt)}function Xe(xt,Nt,Rt,Ft,Jt,Gt){var fr=x.useContext(Qe),lr=he(),tr=(0,ke.Z)(function(){if(it(Ft))return[Ft];var Pt=Nt==null||Nt===""?[]:Array.isArray(Nt)?Nt:[Nt],zt=(0,_e.Z)(xt,Pt),Xt=zt,Vt=void 0;if(Jt){var nr=Jt(zt,xt,Rt);nt(nr)?(Xt=nr.children,Vt=nr.props,fr.renderWithProps=!0):Xt=nr}return[Xt,Vt]},[lr,xt,Ft,Nt,Jt,Rt],function(Pt,zt){if(Gt){var Xt=(0,Ct.Z)(Pt,2),Vt=Xt[1],nr=(0,Ct.Z)(zt,2),Dr=nr[1];return Gt(Dr,Vt)}return fr.renderWithProps?!0:!(0,be.Z)(Pt,zt,!0)});return tr}function et(xt,Nt,Rt,Ft){var Jt=xt+Nt-1;return xt<=Ft&&Jt>=Rt}function Ye(xt,Nt){return oe(xe,function(Rt){var Ft=et(xt,Nt||1,Rt.hoverStartRow,Rt.hoverEndRow);return[Ft,Rt.onHover]})}var dt=Je(70425),tt=function(Nt){var Rt=Nt.ellipsis,Ft=Nt.rowType,Jt=Nt.children,Gt,fr=Rt===!0?{showTitle:!0}:Rt;return fr&&(fr.showTitle||Ft==="header")&&(typeof Jt=="string"||typeof Jt=="number"?Gt=Jt.toString():x.isValidElement(Jt)&&typeof Jt.props.children=="string"&&(Gt=Jt.props.children)),Gt};function lt(xt){var Nt,Rt,Ft,Jt,Gt,fr,lr,tr,Pt=xt.component,zt=xt.children,Xt=xt.ellipsis,Vt=xt.scope,nr=xt.prefixCls,Dr=xt.className,or=xt.align,er=xt.record,yr=xt.render,xr=xt.dataIndex,Br=xt.renderIndex,sn=xt.shouldCellUpdate,Jr=xt.index,wn=xt.rowType,mn=xt.colSpan,bn=xt.rowSpan,En=xt.fixLeft,xn=xt.fixRight,Wn=xt.firstFixLeft,Tn=xt.lastFixLeft,Nn=xt.firstFixRight,gn=xt.lastFixRight,rn=xt.appendNode,hn=xt.additionalProps,Sn=hn===void 0?{}:hn,un=xt.isSticky,Mn="".concat(nr,"-cell"),Ln=oe(xe,["supportSticky","allColumnsFixedLeft","rowHoverable"]),$n=Ln.supportSticky,_i=Ln.allColumnsFixedLeft,Si=Ln.rowHoverable,yi=Xe(er,xr,Br,zt,yr,sn),Di=(0,Ct.Z)(yi,2),qn=Di[0],Qn=Di[1],ti={},ki=typeof En=="number"&&$n,ai=typeof xn=="number"&&$n;ki&&(ti.position="sticky",ti.left=En),ai&&(ti.position="sticky",ti.right=xn);var li=(Nt=(Rt=(Ft=Qn==null?void 0:Qn.colSpan)!==null&&Ft!==void 0?Ft:Sn.colSpan)!==null&&Rt!==void 0?Rt:mn)!==null&&Nt!==void 0?Nt:1,oi=(Jt=(Gt=(fr=Qn==null?void 0:Qn.rowSpan)!==null&&fr!==void 0?fr:Sn.rowSpan)!==null&&Gt!==void 0?Gt:bn)!==null&&Jt!==void 0?Jt:1,cn=Ye(Jr,oi),_n=(0,Ct.Z)(cn,2),Dn=_n[0],On=_n[1],Xn=(0,dt.zX)(function(Ki){var ni;er&&On(Jr,Jr+oi-1),Sn==null||(ni=Sn.onMouseEnter)===null||ni===void 0||ni.call(Sn,Ki)}),ei=(0,dt.zX)(function(Ki){var ni;er&&On(-1,-1),Sn==null||(ni=Sn.onMouseLeave)===null||ni===void 0||ni.call(Sn,Ki)});if(li===0||oi===0)return null;var Hi=(lr=Sn.title)!==null&&lr!==void 0?lr:tt({rowType:wn,ellipsis:Xt,children:qn}),fi=Re()(Mn,Dr,(tr={},(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)(tr,"".concat(Mn,"-fix-left"),ki&&$n),"".concat(Mn,"-fix-left-first"),Wn&&$n),"".concat(Mn,"-fix-left-last"),Tn&&$n),"".concat(Mn,"-fix-left-all"),Tn&&_i&&$n),"".concat(Mn,"-fix-right"),ai&&$n),"".concat(Mn,"-fix-right-first"),Nn&&$n),"".concat(Mn,"-fix-right-last"),gn&&$n),"".concat(Mn,"-ellipsis"),Xt),"".concat(Mn,"-with-append"),rn),"".concat(Mn,"-fix-sticky"),(ki||ai)&&un&&$n),(0,we.Z)(tr,"".concat(Mn,"-row-hover"),!Qn&&Dn)),Sn.className,Qn==null?void 0:Qn.className),ci={};or&&(ci.textAlign=or);var Un=(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},Qn==null?void 0:Qn.style),ti),ci),Sn.style),bi=qn;return(0,ce.Z)(bi)==="object"&&!Array.isArray(bi)&&!x.isValidElement(bi)&&(bi=null),Xt&&(Tn||Nn)&&(bi=x.createElement("span",{className:"".concat(Mn,"-content")},bi)),x.createElement(Pt,(0,ee.Z)({},Qn,Sn,{className:fi,style:Un,title:Hi,scope:Vt,onMouseEnter:Si?Xn:void 0,onMouseLeave:Si?ei:void 0,colSpan:li!==1?li:null,rowSpan:oi!==1?oi:null}),rn,bi)}var st=x.memo(lt);function He(xt,Nt,Rt,Ft,Jt){var Gt=Rt[xt]||{},fr=Rt[Nt]||{},lr,tr;Gt.fixed==="left"?lr=Ft.left[Jt==="rtl"?Nt:xt]:fr.fixed==="right"&&(tr=Ft.right[Jt==="rtl"?xt:Nt]);var Pt=!1,zt=!1,Xt=!1,Vt=!1,nr=Rt[Nt+1],Dr=Rt[xt-1],or=nr&&!nr.fixed||Dr&&!Dr.fixed||Rt.every(function(sn){return sn.fixed==="left"});if(Jt==="rtl"){if(lr!==void 0){var er=Dr&&Dr.fixed==="left";Vt=!er&&or}else if(tr!==void 0){var yr=nr&&nr.fixed==="right";Xt=!yr&&or}}else if(lr!==void 0){var xr=nr&&nr.fixed==="left";Pt=!xr&&or}else if(tr!==void 0){var Br=Dr&&Dr.fixed==="right";zt=!Br&&or}return{fixLeft:lr,fixRight:tr,lastFixLeft:Pt,firstFixRight:zt,lastFixRight:Xt,firstFixLeft:Vt,isSticky:Ft.isSticky}}var Ne=x.createContext({}),Ge=Ne;function Me(xt){var Nt=xt.className,Rt=xt.index,Ft=xt.children,Jt=xt.colSpan,Gt=Jt===void 0?1:Jt,fr=xt.rowSpan,lr=xt.align,tr=oe(xe,["prefixCls","direction"]),Pt=tr.prefixCls,zt=tr.direction,Xt=x.useContext(Ge),Vt=Xt.scrollColumnIndex,nr=Xt.stickyOffsets,Dr=Xt.flattenColumns,or=Rt+Gt-1,er=or+1===Vt?Gt+1:Gt,yr=He(Rt,Rt+er-1,Dr,nr,zt);return x.createElement(st,(0,ee.Z)({className:Nt,index:Rt,component:"td",prefixCls:Pt,record:null,dataIndex:null,align:lr,colSpan:er,rowSpan:fr,render:function(){return Ft}},yr))}var Ke=Je(75931),ct=["children"];function pt(xt){var Nt=xt.children,Rt=(0,Ke.Z)(xt,ct);return x.createElement("tr",Rt,Nt)}function rt(xt){var Nt=xt.children;return Nt}rt.Row=pt,rt.Cell=Me;var Ae=rt;function Pe(xt){var Nt=xt.children,Rt=xt.stickyOffsets,Ft=xt.flattenColumns,Jt=oe(xe,"prefixCls"),Gt=Ft.length-1,fr=Ft[Gt],lr=x.useMemo(function(){return{stickyOffsets:Rt,flattenColumns:Ft,scrollColumnIndex:fr!=null&&fr.scrollbar?Gt:null}},[fr,Ft,Gt,Rt]);return x.createElement(Ge.Provider,{value:lr},x.createElement("tfoot",{className:"".concat(Jt,"-summary")},Nt))}var Ue=ve(Pe),ot=Ae,Oe=Je(29301),Se=Je(24514),pe=Je(75152),Be=Je(26112);function $e(xt,Nt,Rt,Ft,Jt,Gt,fr){xt.push({record:Nt,indent:Rt,index:fr});var lr=Gt(Nt),tr=Jt==null?void 0:Jt.has(lr);if(Nt&&Array.isArray(Nt[Ft])&&tr)for(var Pt=0;Pt<Nt[Ft].length;Pt+=1)$e(xt,Nt[Ft][Pt],Rt+1,Ft,Jt,Gt,Pt)}function Le(xt,Nt,Rt,Ft){var Jt=x.useMemo(function(){if(Rt!=null&&Rt.size){for(var Gt=[],fr=0;fr<(xt==null?void 0:xt.length);fr+=1){var lr=xt[fr];$e(Gt,lr,0,Nt,Rt,Ft,fr)}return Gt}return xt==null?void 0:xt.map(function(tr,Pt){return{record:tr,indent:0,index:Pt}})},[xt,Nt,Rt,Ft]);return Jt}function mt(xt,Nt,Rt,Ft){var Jt=oe(xe,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Gt=Jt.flattenColumns,fr=Jt.expandableType,lr=Jt.expandedKeys,tr=Jt.childrenColumnName,Pt=Jt.onTriggerExpand,zt=Jt.rowExpandable,Xt=Jt.onRow,Vt=Jt.expandRowByClick,nr=Jt.rowClassName,Dr=fr==="nest",or=fr==="row"&&(!zt||zt(xt)),er=or||Dr,yr=lr&&lr.has(Nt),xr=tr&&xt&&xt[tr],Br=(0,dt.zX)(Pt),sn=Xt==null?void 0:Xt(xt,Rt),Jr=sn==null?void 0:sn.onClick,wn=function(xn){Vt&&er&&Pt(xt,xn);for(var Wn=arguments.length,Tn=new Array(Wn>1?Wn-1:0),Nn=1;Nn<Wn;Nn++)Tn[Nn-1]=arguments[Nn];Jr==null||Jr.apply(void 0,[xn].concat(Tn))},mn;typeof nr=="string"?mn=nr:typeof nr=="function"&&(mn=nr(xt,Rt,Ft));var bn=We(Gt);return(0,ye.Z)((0,ye.Z)({},Jt),{},{columnsKey:bn,nestExpandable:Dr,expanded:yr,hasNestChildren:xr,record:xt,onTriggerExpand:Br,rowSupportExpand:or,expandable:er,rowProps:(0,ye.Z)((0,ye.Z)({},sn),{},{className:Re()(mn,sn==null?void 0:sn.className),onClick:wn})})}function gt(xt){var Nt=xt.prefixCls,Rt=xt.children,Ft=xt.component,Jt=xt.cellComponent,Gt=xt.className,fr=xt.expanded,lr=xt.colSpan,tr=xt.isEmpty,Pt=oe(xe,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),zt=Pt.scrollbarSize,Xt=Pt.fixHeader,Vt=Pt.fixColumn,nr=Pt.componentWidth,Dr=Pt.horizonScroll,or=Rt;return(tr?Dr&&nr:Vt)&&(or=x.createElement("div",{style:{width:nr-(Xt&&!tr?zt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Nt,"-expanded-row-fixed")},or)),x.createElement(Ft,{className:Gt,style:{display:fr?null:"none"}},x.createElement(st,{component:Jt,prefixCls:Nt,colSpan:lr},or))}var wt=gt;function bt(xt){var Nt=xt.prefixCls,Rt=xt.record,Ft=xt.onExpand,Jt=xt.expanded,Gt=xt.expandable,fr="".concat(Nt,"-row-expand-icon");if(!Gt)return x.createElement("span",{className:Re()(fr,"".concat(Nt,"-row-spaced"))});var lr=function(Pt){Ft(Rt,Pt),Pt.stopPropagation()};return x.createElement("span",{className:Re()(fr,(0,we.Z)((0,we.Z)({},"".concat(Nt,"-row-expanded"),Jt),"".concat(Nt,"-row-collapsed"),!Jt)),onClick:lr})}function yt(xt,Nt,Rt){var Ft=[];function Jt(Gt){(Gt||[]).forEach(function(fr,lr){Ft.push(Nt(fr,lr)),Jt(fr[Rt])})}return Jt(xt),Ft}function Et(xt,Nt,Rt,Ft){return typeof xt=="string"?xt:typeof xt=="function"?xt(Nt,Rt,Ft):""}function kt(xt,Nt,Rt,Ft,Jt){var Gt=xt.record,fr=xt.prefixCls,lr=xt.columnsKey,tr=xt.fixedInfoList,Pt=xt.expandIconColumnIndex,zt=xt.nestExpandable,Xt=xt.indentSize,Vt=xt.expandIcon,nr=xt.expanded,Dr=xt.hasNestChildren,or=xt.onTriggerExpand,er=lr[Rt],yr=tr[Rt],xr;Rt===(Pt||0)&&zt&&(xr=x.createElement(x.Fragment,null,x.createElement("span",{style:{paddingLeft:"".concat(Xt*Ft,"px")},className:"".concat(fr,"-row-indent indent-level-").concat(Ft)}),Vt({prefixCls:fr,expanded:nr,expandable:Dr,record:Gt,onExpand:or})));var Br;return Nt.onCell&&(Br=Nt.onCell(Gt,Jt)),{key:er,fixedInfo:yr,appendCellNode:xr,additionalCellProps:Br||{}}}function jt(xt){var Nt=xt.className,Rt=xt.style,Ft=xt.record,Jt=xt.index,Gt=xt.renderIndex,fr=xt.rowKey,lr=xt.indent,tr=lr===void 0?0:lr,Pt=xt.rowComponent,zt=xt.cellComponent,Xt=xt.scopeCellComponent,Vt=mt(Ft,fr,Jt,tr),nr=Vt.prefixCls,Dr=Vt.flattenColumns,or=Vt.expandedRowClassName,er=Vt.expandedRowRender,yr=Vt.rowProps,xr=Vt.expanded,Br=Vt.rowSupportExpand,sn=x.useRef(!1);sn.current||(sn.current=xr);var Jr=Et(or,Ft,Jt,tr),wn=x.createElement(Pt,(0,ee.Z)({},yr,{"data-row-key":fr,className:Re()(Nt,"".concat(nr,"-row"),"".concat(nr,"-row-level-").concat(tr),yr==null?void 0:yr.className,(0,we.Z)({},Jr,tr>=1)),style:(0,ye.Z)((0,ye.Z)({},Rt),yr==null?void 0:yr.style)}),Dr.map(function(En,xn){var Wn=En.render,Tn=En.dataIndex,Nn=En.className,gn=kt(Vt,En,xn,tr,Jt),rn=gn.key,hn=gn.fixedInfo,Sn=gn.appendCellNode,un=gn.additionalCellProps;return x.createElement(st,(0,ee.Z)({className:Nn,ellipsis:En.ellipsis,align:En.align,scope:En.rowScope,component:En.rowScope?Xt:zt,prefixCls:nr,key:rn,record:Ft,index:Jt,renderIndex:Gt,dataIndex:Tn,render:Wn,shouldCellUpdate:En.shouldCellUpdate},hn,{appendNode:Sn,additionalProps:un}))})),mn;if(Br&&(sn.current||xr)){var bn=er(Ft,Jt,tr+1,xr);mn=x.createElement(wt,{expanded:xr,className:Re()("".concat(nr,"-expanded-row"),"".concat(nr,"-expanded-row-level-").concat(tr+1),Jr),prefixCls:nr,component:Pt,cellComponent:zt,colSpan:Dr.length,isEmpty:!1},bn)}return x.createElement(x.Fragment,null,wn,mn)}var It=ve(jt);function vr(xt){var Nt=xt.columnKey,Rt=xt.onColumnResize,Ft=x.useRef();return(0,Te.Z)(function(){Ft.current&&Rt(Nt,Ft.current.offsetWidth)},[]),x.createElement(Oe.Z,{data:Nt},x.createElement("td",{ref:Ft,style:{padding:0,border:0,height:0}},x.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Kt=Je(29194);function Pr(xt){var Nt=xt.prefixCls,Rt=xt.columnsKey,Ft=xt.onColumnResize,Jt=x.useRef(null);return x.createElement("tr",{"aria-hidden":"true",className:"".concat(Nt,"-measure-row"),style:{height:0,fontSize:0},ref:Jt},x.createElement(Oe.Z.Collection,{onBatchResize:function(fr){(0,Kt.Z)(Jt.current)&&fr.forEach(function(lr){var tr=lr.data,Pt=lr.size;Ft(tr,Pt.offsetWidth)})}},Rt.map(function(Gt){return x.createElement(vr,{key:Gt,columnKey:Gt,onColumnResize:Ft})})))}function qt(xt){var Nt=xt.data,Rt=xt.measureColumnWidth,Ft=oe(xe,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Jt=Ft.prefixCls,Gt=Ft.getComponent,fr=Ft.onColumnResize,lr=Ft.flattenColumns,tr=Ft.getRowKey,Pt=Ft.expandedKeys,zt=Ft.childrenColumnName,Xt=Ft.emptyNode,Vt=Le(Nt,zt,Pt,tr),nr=x.useRef({renderWithProps:!1}),Dr=Gt(["body","wrapper"],"tbody"),or=Gt(["body","row"],"tr"),er=Gt(["body","cell"],"td"),yr=Gt(["body","cell"],"th"),xr;Nt.length?xr=Vt.map(function(sn,Jr){var wn=sn.record,mn=sn.indent,bn=sn.index,En=tr(wn,Jr);return x.createElement(It,{key:En,rowKey:En,record:wn,index:Jr,renderIndex:bn,rowComponent:or,cellComponent:er,scopeCellComponent:yr,indent:mn})}):xr=x.createElement(wt,{expanded:!0,className:"".concat(Jt,"-placeholder"),prefixCls:Jt,component:or,cellComponent:er,colSpan:lr.length,isEmpty:!0},Xt);var Br=We(lr);return x.createElement(Qe.Provider,{value:nr.current},x.createElement(Dr,{className:"".concat(Jt,"-tbody")},Rt&&x.createElement(Pr,{prefixCls:Jt,columnsKey:Br,onColumnResize:fr}),xr))}var zr=ve(qt),Vr=Je(54451),Xr=["columnType"];function pn(xt){for(var Nt=xt.colWidths,Rt=xt.columns,Ft=xt.columCount,Jt=oe(xe,["tableLayout"]),Gt=Jt.tableLayout,fr=[],lr=Ft||Rt.length,tr=!1,Pt=lr-1;Pt>=0;Pt-=1){var zt=Nt[Pt],Xt=Rt&&Rt[Pt],Vt=void 0,nr=void 0;if(Xt&&(Vt=Xt[Vr.v],Gt==="auto"&&(nr=Xt.minWidth)),zt||nr||Vt||tr){var Dr=Vt||{},or=Dr.columnType,er=(0,Ke.Z)(Dr,Xr);fr.unshift(x.createElement("col",(0,ee.Z)({key:Pt,style:{width:zt,minWidth:nr}},er))),tr=!0}}return x.createElement("colgroup",null,fr)}var nn=pn,Mr=Je(94480),fn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function dn(xt,Nt){return(0,x.useMemo)(function(){for(var Rt=[],Ft=0;Ft<Nt;Ft+=1){var Jt=xt[Ft];if(Jt!==void 0)Rt[Ft]=Jt;else return null}return Rt},[xt.join("_"),Nt])}var Lr=x.forwardRef(function(xt,Nt){var Rt=xt.className,Ft=xt.noData,Jt=xt.columns,Gt=xt.flattenColumns,fr=xt.colWidths,lr=xt.columCount,tr=xt.stickyOffsets,Pt=xt.direction,zt=xt.fixHeader,Xt=xt.stickyTopOffset,Vt=xt.stickyBottomOffset,nr=xt.stickyClassName,Dr=xt.onScroll,or=xt.maxContentScroll,er=xt.children,yr=(0,Ke.Z)(xt,fn),xr=oe(xe,["prefixCls","scrollbarSize","isSticky","getComponent"]),Br=xr.prefixCls,sn=xr.scrollbarSize,Jr=xr.isSticky,wn=xr.getComponent,mn=wn(["header","table"],"table"),bn=Jr&&!zt?0:sn,En=x.useRef(null),xn=x.useCallback(function(un){(0,le.mH)(Nt,un),(0,le.mH)(En,un)},[]);x.useEffect(function(){var un;function Mn(Ln){var $n=Ln,_i=$n.currentTarget,Si=$n.deltaX;Si&&(Dr({currentTarget:_i,scrollLeft:_i.scrollLeft+Si}),Ln.preventDefault())}return(un=En.current)===null||un===void 0||un.addEventListener("wheel",Mn,{passive:!1}),function(){var Ln;(Ln=En.current)===null||Ln===void 0||Ln.removeEventListener("wheel",Mn)}},[]);var Wn=x.useMemo(function(){return Gt.every(function(un){return un.width})},[Gt]),Tn=Gt[Gt.length-1],Nn={fixed:Tn?Tn.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Br,"-cell-scrollbar")}}},gn=(0,x.useMemo)(function(){return bn?[].concat((0,Mr.Z)(Jt),[Nn]):Jt},[bn,Jt]),rn=(0,x.useMemo)(function(){return bn?[].concat((0,Mr.Z)(Gt),[Nn]):Gt},[bn,Gt]),hn=(0,x.useMemo)(function(){var un=tr.right,Mn=tr.left;return(0,ye.Z)((0,ye.Z)({},tr),{},{left:Pt==="rtl"?[].concat((0,Mr.Z)(Mn.map(function(Ln){return Ln+bn})),[0]):Mn,right:Pt==="rtl"?un:[].concat((0,Mr.Z)(un.map(function(Ln){return Ln+bn})),[0]),isSticky:Jr})},[bn,tr,Jr]),Sn=dn(fr,lr);return x.createElement("div",{style:(0,ye.Z)({overflow:"hidden"},Jr?{top:Xt,bottom:Vt}:{}),ref:xn,className:Re()(Rt,(0,we.Z)({},nr,!!nr))},x.createElement(mn,{style:{tableLayout:"fixed",visibility:Ft||Sn?null:"hidden"}},(!Ft||!or||Wn)&&x.createElement(nn,{colWidths:Sn?[].concat((0,Mr.Z)(Sn),[bn]):[],columCount:lr+1,columns:rn}),er((0,ye.Z)((0,ye.Z)({},yr),{},{stickyOffsets:hn,columns:gn,flattenColumns:rn}))))}),Ir=x.memo(Lr),Mt=function(Nt){var Rt=Nt.cells,Ft=Nt.stickyOffsets,Jt=Nt.flattenColumns,Gt=Nt.rowComponent,fr=Nt.cellComponent,lr=Nt.onHeaderRow,tr=Nt.index,Pt=oe(xe,["prefixCls","direction"]),zt=Pt.prefixCls,Xt=Pt.direction,Vt;lr&&(Vt=lr(Rt.map(function(Dr){return Dr.column}),tr));var nr=We(Rt.map(function(Dr){return Dr.column}));return x.createElement(Gt,Vt,Rt.map(function(Dr,or){var er=Dr.column,yr=He(Dr.colStart,Dr.colEnd,Jt,Ft,Xt),xr;return er&&er.onHeaderCell&&(xr=Dr.column.onHeaderCell(er)),x.createElement(st,(0,ee.Z)({},Dr,{scope:er.title?Dr.colSpan>1?"colgroup":"col":null,ellipsis:er.ellipsis,align:er.align,component:fr,prefixCls:zt,key:nr[or]},yr,{additionalProps:xr,rowType:"header"}))}))},Lt=Mt;function At(xt){var Nt=[];function Rt(fr,lr){var tr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Nt[tr]=Nt[tr]||[];var Pt=lr,zt=fr.filter(Boolean).map(function(Xt){var Vt={key:Xt.key,className:Xt.className||"",children:Xt.title,column:Xt,colStart:Pt},nr=1,Dr=Xt.children;return Dr&&Dr.length>0&&(nr=Rt(Dr,Pt,tr+1).reduce(function(or,er){return or+er},0),Vt.hasSubColumns=!0),"colSpan"in Xt&&(nr=Xt.colSpan),"rowSpan"in Xt&&(Vt.rowSpan=Xt.rowSpan),Vt.colSpan=nr,Vt.colEnd=Vt.colStart+nr-1,Nt[tr].push(Vt),Pt+=nr,nr});return zt}Rt(xt,0);for(var Ft=Nt.length,Jt=function(lr){Nt[lr].forEach(function(tr){!("rowSpan"in tr)&&!tr.hasSubColumns&&(tr.rowSpan=Ft-lr)})},Gt=0;Gt<Ft;Gt+=1)Jt(Gt);return Nt}var $t=function(Nt){var Rt=Nt.stickyOffsets,Ft=Nt.columns,Jt=Nt.flattenColumns,Gt=Nt.onHeaderRow,fr=oe(xe,["prefixCls","getComponent"]),lr=fr.prefixCls,tr=fr.getComponent,Pt=x.useMemo(function(){return At(Ft)},[Ft]),zt=tr(["header","wrapper"],"thead"),Xt=tr(["header","row"],"tr"),Vt=tr(["header","cell"],"th");return x.createElement(zt,{className:"".concat(lr,"-thead")},Pt.map(function(nr,Dr){var or=x.createElement(Lt,{key:Dr,flattenColumns:Jt,cells:nr,stickyOffsets:Rt,rowComponent:Xt,cellComponent:Vt,onHeaderRow:Gt,index:Dr});return or}))},cr=ve($t),mr=Je(97347);function Sr(xt,Nt,Rt){var Ft=(0,Vr.g)(xt),Jt=Ft.expandIcon,Gt=Ft.expandedRowKeys,fr=Ft.defaultExpandedRowKeys,lr=Ft.defaultExpandAllRows,tr=Ft.expandedRowRender,Pt=Ft.onExpand,zt=Ft.onExpandedRowsChange,Xt=Ft.childrenColumnName,Vt=Jt||bt,nr=Xt||"children",Dr=x.useMemo(function(){return tr?"row":xt.expandable&&xt.internalHooks===ze.R&&xt.expandable.__PARENT_RENDER_ICON__||Nt.some(function(Jr){return Jr&&(0,ce.Z)(Jr)==="object"&&Jr[nr]})?"nest":!1},[!!tr,Nt]),or=x.useState(function(){return fr||(lr?yt(Nt,Rt,nr):[])}),er=(0,Ct.Z)(or,2),yr=er[0],xr=er[1],Br=x.useMemo(function(){return new Set(Gt||yr||[])},[Gt,yr]),sn=x.useCallback(function(Jr){var wn=Rt(Jr,Nt.indexOf(Jr)),mn,bn=Br.has(wn);bn?(Br.delete(wn),mn=(0,Mr.Z)(Br)):mn=[].concat((0,Mr.Z)(Br),[wn]),xr(mn),Pt&&Pt(!bn,Jr),zt&&zt(mn)},[Rt,Br,Nt,Pt,zt]);return[Ft,Dr,Br,Vt,nr,sn]}function Tr(xt,Nt,Rt){var Ft=xt.map(function(Jt,Gt){return He(Gt,Gt,xt,Nt,Rt)});return(0,ke.Z)(function(){return Ft},[Ft],function(Jt,Gt){return!(0,be.Z)(Jt,Gt)})}function br(xt){var Nt=(0,x.useRef)(xt),Rt=(0,x.useState)({}),Ft=(0,Ct.Z)(Rt,2),Jt=Ft[1],Gt=(0,x.useRef)(null),fr=(0,x.useRef)([]);function lr(tr){fr.current.push(tr);var Pt=Promise.resolve();Gt.current=Pt,Pt.then(function(){if(Gt.current===Pt){var zt=fr.current,Xt=Nt.current;fr.current=[],zt.forEach(function(Vt){Nt.current=Vt(Nt.current)}),Gt.current=null,Xt!==Nt.current&&Jt({})}})}return(0,x.useEffect)(function(){return function(){Gt.current=null}},[]),[Nt.current,lr]}function Rr(xt){var Nt=(0,x.useRef)(xt||null),Rt=(0,x.useRef)();function Ft(){window.clearTimeout(Rt.current)}function Jt(fr){Nt.current=fr,Ft(),Rt.current=window.setTimeout(function(){Nt.current=null,Rt.current=void 0},100)}function Gt(){return Nt.current}return(0,x.useEffect)(function(){return Ft},[]),[Jt,Gt]}function Ur(){var xt=x.useState(-1),Nt=(0,Ct.Z)(xt,2),Rt=Nt[0],Ft=Nt[1],Jt=x.useState(-1),Gt=(0,Ct.Z)(Jt,2),fr=Gt[0],lr=Gt[1],tr=x.useCallback(function(Pt,zt){Ft(Pt),lr(zt)},[]);return[Rt,fr,tr]}var Kr=Je(47273),sr=(0,Kr.Z)()?window:null;function Bt(xt,Nt){var Rt=(0,ce.Z)(xt)==="object"?xt:{},Ft=Rt.offsetHeader,Jt=Ft===void 0?0:Ft,Gt=Rt.offsetSummary,fr=Gt===void 0?0:Gt,lr=Rt.offsetScroll,tr=lr===void 0?0:lr,Pt=Rt.getContainer,zt=Pt===void 0?function(){return sr}:Pt,Xt=zt()||sr,Vt=!!xt;return x.useMemo(function(){return{isSticky:Vt,stickyClassName:Vt?"".concat(Nt,"-sticky-holder"):"",offsetHeader:Jt,offsetSummary:fr,offsetScroll:tr,container:Xt}},[Vt,tr,Jt,fr,Nt,Xt])}function Wt(xt,Nt,Rt){var Ft=(0,x.useMemo)(function(){var Jt=Nt.length,Gt=function(Pt,zt,Xt){for(var Vt=[],nr=0,Dr=Pt;Dr!==zt;Dr+=Xt)Vt.push(nr),Nt[Dr].fixed&&(nr+=xt[Dr]||0);return Vt},fr=Gt(0,Jt,1),lr=Gt(Jt-1,-1,-1).reverse();return Rt==="rtl"?{left:lr,right:fr}:{left:fr,right:lr}},[xt,Nt,Rt]);return Ft}var Gr=Wt;function on(xt){var Nt=xt.className,Rt=xt.children;return x.createElement("div",{className:Nt},Rt)}var Tt=on,_t=Je(8224),dr=Je(16089),Qt=Je(76846);function Ot(xt){var Nt=(0,Qt.bn)(xt),Rt=Nt.getBoundingClientRect(),Ft=document.documentElement;return{left:Rt.left+(window.pageXOffset||Ft.scrollLeft)-(Ft.clientLeft||document.body.clientLeft||0),top:Rt.top+(window.pageYOffset||Ft.scrollTop)-(Ft.clientTop||document.body.clientTop||0)}}var rr=function(Nt,Rt){var Ft,Jt,Gt=Nt.scrollBodyRef,fr=Nt.onScroll,lr=Nt.offsetScroll,tr=Nt.container,Pt=Nt.direction,zt=oe(xe,"prefixCls"),Xt=((Ft=Gt.current)===null||Ft===void 0?void 0:Ft.scrollWidth)||0,Vt=((Jt=Gt.current)===null||Jt===void 0?void 0:Jt.clientWidth)||0,nr=Xt&&Vt*(Vt/Xt),Dr=x.useRef(),or=br({scrollLeft:0,isHiddenScrollBar:!0}),er=(0,Ct.Z)(or,2),yr=er[0],xr=er[1],Br=x.useRef({delta:0,x:0}),sn=x.useState(!1),Jr=(0,Ct.Z)(sn,2),wn=Jr[0],mn=Jr[1],bn=x.useRef(null);x.useEffect(function(){return function(){dr.Z.cancel(bn.current)}},[]);var En=function(){mn(!1)},xn=function(rn){rn.persist(),Br.current.delta=rn.pageX-yr.scrollLeft,Br.current.x=0,mn(!0),rn.preventDefault()},Wn=function(rn){var hn,Sn=rn||((hn=window)===null||hn===void 0?void 0:hn.event),un=Sn.buttons;if(!wn||un===0){wn&&mn(!1);return}var Mn=Br.current.x+rn.pageX-Br.current.x-Br.current.delta,Ln=Pt==="rtl";Mn=Math.max(Ln?nr-Vt:0,Math.min(Ln?0:Vt-nr,Mn));var $n=!Ln||Math.abs(Mn)+Math.abs(nr)<Vt;$n&&(fr({scrollLeft:Mn/Vt*(Xt+2)}),Br.current.x=rn.pageX)},Tn=function(){dr.Z.cancel(bn.current),bn.current=(0,dr.Z)(function(){if(Gt.current){var rn=Ot(Gt.current).top,hn=rn+Gt.current.offsetHeight,Sn=tr===window?document.documentElement.scrollTop+window.innerHeight:Ot(tr).top+tr.clientHeight;hn-(0,pe.Z)()<=Sn||rn>=Sn-lr?xr(function(un){return(0,ye.Z)((0,ye.Z)({},un),{},{isHiddenScrollBar:!0})}):xr(function(un){return(0,ye.Z)((0,ye.Z)({},un),{},{isHiddenScrollBar:!1})})}})},Nn=function(rn){xr(function(hn){return(0,ye.Z)((0,ye.Z)({},hn),{},{scrollLeft:rn/Xt*Vt||0})})};return x.useImperativeHandle(Rt,function(){return{setScrollLeft:Nn,checkScrollBarVisible:Tn}}),x.useEffect(function(){var gn=(0,_t.Z)(document.body,"mouseup",En,!1),rn=(0,_t.Z)(document.body,"mousemove",Wn,!1);return Tn(),function(){gn.remove(),rn.remove()}},[nr,wn]),x.useEffect(function(){if(Gt.current){for(var gn=[],rn=(0,Qt.bn)(Gt.current);rn;)gn.push(rn),rn=rn.parentElement;return gn.forEach(function(hn){return hn.addEventListener("scroll",Tn,!1)}),window.addEventListener("resize",Tn,!1),window.addEventListener("scroll",Tn,!1),tr.addEventListener("scroll",Tn,!1),function(){gn.forEach(function(hn){return hn.removeEventListener("scroll",Tn)}),window.removeEventListener("resize",Tn),window.removeEventListener("scroll",Tn),tr.removeEventListener("scroll",Tn)}}},[tr]),x.useEffect(function(){yr.isHiddenScrollBar||xr(function(gn){var rn=Gt.current;return rn?(0,ye.Z)((0,ye.Z)({},gn),{},{scrollLeft:rn.scrollLeft/rn.scrollWidth*rn.clientWidth}):gn})},[yr.isHiddenScrollBar]),Xt<=Vt||!nr||yr.isHiddenScrollBar?null:x.createElement("div",{style:{height:(0,pe.Z)(),width:Vt,bottom:lr},className:"".concat(zt,"-sticky-scroll")},x.createElement("div",{onMouseDown:xn,ref:Dr,className:Re()("".concat(zt,"-sticky-scroll-bar"),(0,we.Z)({},"".concat(zt,"-sticky-scroll-bar-active"),wn)),style:{width:"".concat(nr,"px"),transform:"translate3d(".concat(yr.scrollLeft,"px, 0, 0)")}}))},wr=x.forwardRef(rr);function gr(xt){return null}var ar=gr;function pr(xt){return null}var Cr=pr,ir="rc-table",Yt=[],kr={};function Zr(){return"No Data"}function en(xt,Nt){var Rt=(0,ye.Z)({rowKey:"key",prefixCls:ir,emptyText:Zr},xt),Ft=Rt.prefixCls,Jt=Rt.className,Gt=Rt.rowClassName,fr=Rt.style,lr=Rt.data,tr=Rt.rowKey,Pt=Rt.scroll,zt=Rt.tableLayout,Xt=Rt.direction,Vt=Rt.title,nr=Rt.footer,Dr=Rt.summary,or=Rt.caption,er=Rt.id,yr=Rt.showHeader,xr=Rt.components,Br=Rt.emptyText,sn=Rt.onRow,Jr=Rt.onHeaderRow,wn=Rt.onScroll,mn=Rt.internalHooks,bn=Rt.transformColumns,En=Rt.internalRefs,xn=Rt.tailor,Wn=Rt.getContainerWidth,Tn=Rt.sticky,Nn=Rt.rowHoverable,gn=Nn===void 0?!0:Nn,rn=lr||Yt,hn=!!rn.length,Sn=mn===ze.R,un=x.useCallback(function(Gn,Kn){return(0,_e.Z)(xr,Gn)||Kn},[xr]),Mn=x.useMemo(function(){return typeof tr=="function"?tr:function(Gn){var Kn=Gn&&Gn[tr];return Kn}},[tr]),Ln=un(["body"]),$n=Ur(),_i=(0,Ct.Z)($n,3),Si=_i[0],yi=_i[1],Di=_i[2],qn=Sr(Rt,rn,Mn),Qn=(0,Ct.Z)(qn,6),ti=Qn[0],ki=Qn[1],ai=Qn[2],li=Qn[3],oi=Qn[4],cn=Qn[5],_n=Pt==null?void 0:Pt.x,Dn=x.useState(0),On=(0,Ct.Z)(Dn,2),Xn=On[0],ei=On[1],Hi=(0,mr.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},Rt),ti),{},{expandable:!!ti.expandedRowRender,columnTitle:ti.columnTitle,expandedKeys:ai,getRowKey:Mn,onTriggerExpand:cn,expandIcon:li,expandIconColumnIndex:ti.expandIconColumnIndex,direction:Xt,scrollWidth:Sn&&xn&&typeof _n=="number"?_n:null,clientWidth:Xn}),Sn?bn:null),fi=(0,Ct.Z)(Hi,4),ci=fi[0],Un=fi[1],bi=fi[2],Ki=fi[3],ni=bi!=null?bi:_n,sa=x.useMemo(function(){return{columns:ci,flattenColumns:Un}},[ci,Un]),Vi=x.useRef(),Ji=x.useRef(),mi=x.useRef(),ro=x.useRef();x.useImperativeHandle(Nt,function(){return{nativeElement:Vi.current,scrollTo:function(Kn){var Ei;if(mi.current instanceof HTMLElement){var Mi=Kn.index,Ri=Kn.top,Ra=Kn.key;if(at(Ri)){var xa;(xa=mi.current)===null||xa===void 0||xa.scrollTo({top:Ri})}else{var Na,fa=Ra!=null?Ra:Mn(rn[Mi]);(Na=mi.current.querySelector('[data-row-key="'.concat(fa,'"]')))===null||Na===void 0||Na.scrollIntoView()}}else(Ei=mi.current)!==null&&Ei!==void 0&&Ei.scrollTo&&mi.current.scrollTo(Kn)}}});var Ya=x.useRef(),pa=x.useState(!1),ma=(0,Ct.Z)(pa,2),na=ma[0],Ea=ma[1],no=x.useState(!1),io=(0,Ct.Z)(no,2),ao=io[0],La=io[1],Ja=x.useState(new Map),Ba=(0,Ct.Z)(Ja,2),Ca=Ba[0],Qa=Ba[1],oo=We(Un),Fa=oo.map(function(Gn){return Ca.get(Gn)}),ka=x.useMemo(function(){return Fa},[Fa.join("_")]),Ta=Gr(ka,Un,Xt),Wi=Pt&&it(Pt.y),di=Pt&&it(ni)||!!ti.fixed,Vn=di&&Un.some(function(Gn){var Kn=Gn.fixed;return Kn}),Zn=x.useRef(),vi=Bt(Tn,Ft),hi=vi.isSticky,wi=vi.offsetHeader,Ti=vi.offsetSummary,la=vi.offsetScroll,ia=vi.stickyClassName,va=vi.container,pi=x.useMemo(function(){return Dr==null?void 0:Dr(rn)},[Dr,rn]),Pi=(Wi||hi)&&x.isValidElement(pi)&&pi.type===Ae&&pi.props.fixed,Qi,ua,$a;Wi&&(ua={overflowY:hn?"scroll":"auto",maxHeight:Pt.y}),di&&(Qi={overflowX:"auto"},Wi||(ua={overflowY:"hidden"}),$a={width:ni===!0?"auto":ni,minWidth:"100%"});var Eo=x.useCallback(function(Gn,Kn){Qa(function(Ei){if(Ei.get(Gn)!==Kn){var Mi=new Map(Ei);return Mi.set(Gn,Kn),Mi}return Ei})},[]),Co=Rr(null),wa=(0,Ct.Z)(Co,2),Aa=wa[0],Ui=wa[1];function ca(Gn,Kn){Kn&&(typeof Kn=="function"?Kn(Gn):Kn.scrollLeft!==Gn&&(Kn.scrollLeft=Gn,Kn.scrollLeft!==Gn&&setTimeout(function(){Kn.scrollLeft=Gn},0)))}var $i=(0,y.Z)(function(Gn){var Kn=Gn.currentTarget,Ei=Gn.scrollLeft,Mi=Xt==="rtl",Ri=typeof Ei=="number"?Ei:Kn.scrollLeft,Ra=Kn||kr;if(!Ui()||Ui()===Ra){var xa;Aa(Ra),ca(Ri,Ji.current),ca(Ri,mi.current),ca(Ri,Ya.current),ca(Ri,(xa=Zn.current)===null||xa===void 0?void 0:xa.setScrollLeft)}var Na=Kn||Ji.current;if(Na){var fa=Sn&&xn&&typeof ni=="number"?ni:Na.scrollWidth,ga=Na.clientWidth;if(fa===ga){Ea(!1),La(!1);return}Mi?(Ea(-Ri<fa-ga),La(-Ri>0)):(Ea(Ri>0),La(Ri<fa-ga))}}),so=(0,y.Z)(function(Gn){$i(Gn),wn==null||wn(Gn)}),Qo=function(){if(di&&mi.current){var Kn;$i({currentTarget:(0,Qt.bn)(mi.current),scrollLeft:(Kn=mi.current)===null||Kn===void 0?void 0:Kn.scrollLeft})}else Ea(!1),La(!1)},$o=function(Kn){var Ei,Mi=Kn.width;(Ei=Zn.current)===null||Ei===void 0||Ei.checkScrollBarVisible();var Ri=Vi.current?Vi.current.offsetWidth:Mi;Sn&&Wn&&Vi.current&&(Ri=Wn(Vi.current,Ri)||Ri),Ri!==Xn&&(Qo(),ei(Ri))},Wa=x.useRef(!1);x.useEffect(function(){Wa.current&&Qo()},[di,lr,ci.length]),x.useEffect(function(){Wa.current=!0},[]);var qo=x.useState(0),ko=(0,Ct.Z)(qo,2),_a=ko[0],es=ko[1],To=x.useState(!0),Ao=(0,Ct.Z)(To,2),_o=Ao[0],Do=Ao[1];(0,Te.Z)(function(){(!xn||!Sn)&&(mi.current instanceof Element?es((0,pe.o)(mi.current).width):es((0,pe.o)(ro.current).width)),Do((0,Se.G)("position","sticky"))},[]),x.useEffect(function(){Sn&&En&&(En.body.current=mi.current)});var Ua=x.useCallback(function(Gn){return x.createElement(x.Fragment,null,x.createElement(cr,Gn),Pi==="top"&&x.createElement(Ue,Gn,pi))},[Pi,pi]),lo=x.useCallback(function(Gn){return x.createElement(Ue,Gn,pi)},[pi]),jo=un(["table"],"table"),Da=x.useMemo(function(){return zt||(Vn?ni==="max-content"?"auto":"fixed":Wi||hi||Un.some(function(Gn){var Kn=Gn.ellipsis;return Kn})?"fixed":"auto")},[Wi,Vn,Un,zt,hi]),Oo,Po={colWidths:ka,columCount:Un.length,stickyOffsets:Ta,onHeaderRow:Jr,fixHeader:Wi,scroll:Pt},ts=x.useMemo(function(){return hn?null:typeof Br=="function"?Br():Br},[hn,Br]),uo=x.createElement(zr,{data:rn,measureColumnWidth:Wi||di||hi}),co=x.createElement(nn,{colWidths:Un.map(function(Gn){var Kn=Gn.width;return Kn}),columns:Un}),ja=or!=null?x.createElement("caption",{className:"".concat(Ft,"-caption")},or):void 0,qa=(0,Be.Z)(Rt,{data:!0}),rs=(0,Be.Z)(Rt,{aria:!0});if(Wi||hi){var Za;typeof Ln=="function"?(Za=Ln(rn,{scrollbarSize:_a,ref:mi,onScroll:$i}),Po.colWidths=Un.map(function(Gn,Kn){var Ei=Gn.width,Mi=Kn===Un.length-1?Ei-_a:Ei;return typeof Mi=="number"&&!Number.isNaN(Mi)?Mi:0})):Za=x.createElement("div",{style:(0,ye.Z)((0,ye.Z)({},Qi),ua),onScroll:so,ref:mi,className:Re()("".concat(Ft,"-body"))},x.createElement(jo,(0,ee.Z)({style:(0,ye.Z)((0,ye.Z)({},$a),{},{tableLayout:Da})},rs),ja,co,uo,!Pi&&pi&&x.createElement(Ue,{stickyOffsets:Ta,flattenColumns:Un},pi)));var Ro=(0,ye.Z)((0,ye.Z)((0,ye.Z)({noData:!rn.length,maxContentScroll:di&&ni==="max-content"},Po),sa),{},{direction:Xt,stickyClassName:ia,onScroll:$i});Oo=x.createElement(x.Fragment,null,yr!==!1&&x.createElement(Ir,(0,ee.Z)({},Ro,{stickyTopOffset:wi,className:"".concat(Ft,"-header"),ref:Ji}),Ua),Za,Pi&&Pi!=="top"&&x.createElement(Ir,(0,ee.Z)({},Ro,{stickyBottomOffset:Ti,className:"".concat(Ft,"-summary"),ref:Ya}),lo),hi&&mi.current&&mi.current instanceof Element&&x.createElement(wr,{ref:Zn,offsetScroll:la,scrollBodyRef:mi,onScroll:$i,container:va,direction:Xt}))}else Oo=x.createElement("div",{style:(0,ye.Z)((0,ye.Z)({},Qi),ua),className:Re()("".concat(Ft,"-content")),onScroll:$i,ref:mi},x.createElement(jo,(0,ee.Z)({style:(0,ye.Z)((0,ye.Z)({},$a),{},{tableLayout:Da})},rs),ja,co,yr!==!1&&x.createElement(cr,(0,ee.Z)({},Po,sa)),uo,pi&&x.createElement(Ue,{stickyOffsets:Ta,flattenColumns:Un},pi)));var Oa=x.createElement("div",(0,ee.Z)({className:Re()(Ft,Jt,(0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)((0,we.Z)({},"".concat(Ft,"-rtl"),Xt==="rtl"),"".concat(Ft,"-ping-left"),na),"".concat(Ft,"-ping-right"),ao),"".concat(Ft,"-layout-fixed"),zt==="fixed"),"".concat(Ft,"-fixed-header"),Wi),"".concat(Ft,"-fixed-column"),Vn),"".concat(Ft,"-fixed-column-gapped"),Vn&&Ki),"".concat(Ft,"-scroll-horizontal"),di),"".concat(Ft,"-has-fix-left"),Un[0]&&Un[0].fixed),"".concat(Ft,"-has-fix-right"),Un[Un.length-1]&&Un[Un.length-1].fixed==="right")),style:fr,id:er,ref:Vi},qa),Vt&&x.createElement(Tt,{className:"".concat(Ft,"-title")},Vt(rn)),x.createElement("div",{ref:ro,className:"".concat(Ft,"-container")},Oo),nr&&x.createElement(Tt,{className:"".concat(Ft,"-footer")},nr(rn)));di&&(Oa=x.createElement(Oe.Z,{onResize:$o},Oa));var No=Tr(Un,Ta,Xt),Pa=x.useMemo(function(){return{scrollX:ni,prefixCls:Ft,getComponent:un,scrollbarSize:_a,direction:Xt,fixedInfoList:No,isSticky:hi,supportSticky:_o,componentWidth:Xn,fixHeader:Wi,fixColumn:Vn,horizonScroll:di,tableLayout:Da,rowClassName:Gt,expandedRowClassName:ti.expandedRowClassName,expandIcon:li,expandableType:ki,expandRowByClick:ti.expandRowByClick,expandedRowRender:ti.expandedRowRender,onTriggerExpand:cn,expandIconColumnIndex:ti.expandIconColumnIndex,indentSize:ti.indentSize,allColumnsFixedLeft:Un.every(function(Gn){return Gn.fixed==="left"}),emptyNode:ts,columns:ci,flattenColumns:Un,onColumnResize:Eo,hoverStartRow:Si,hoverEndRow:yi,onHover:Di,rowExpandable:ti.rowExpandable,onRow:sn,getRowKey:Mn,expandedKeys:ai,childrenColumnName:oi,rowHoverable:gn}},[ni,Ft,un,_a,Xt,No,hi,_o,Xn,Wi,Vn,di,Da,Gt,ti.expandedRowClassName,li,ki,ti.expandRowByClick,ti.expandedRowRender,cn,ti.expandIconColumnIndex,ti.indentSize,ts,ci,Un,Eo,Si,yi,Di,ti.rowExpandable,sn,Mn,ai,oi,gn]);return x.createElement(xe.Provider,{value:Pa},Oa)}var an=x.forwardRef(en);function kn(xt){return me(an,xt)}var Pn=kn();Pn.EXPAND_COLUMN=ze.w,Pn.INTERNAL_HOOKS=ze.R,Pn.Column=ar,Pn.ColumnGroup=Cr,Pn.Summary=ot;var tn=Pn,Nr=Je(48911),Wr=ie(null),_r=ie(null);function An(xt,Nt,Rt){var Ft=Nt||1;return Rt[xt+Ft]-(Rt[xt]||0)}function Hn(xt){var Nt=xt.rowInfo,Rt=xt.column,Ft=xt.colIndex,Jt=xt.indent,Gt=xt.index,fr=xt.component,lr=xt.renderIndex,tr=xt.record,Pt=xt.style,zt=xt.className,Xt=xt.inverse,Vt=xt.getHeight,nr=Rt.render,Dr=Rt.dataIndex,or=Rt.className,er=Rt.width,yr=oe(_r,["columnsOffset"]),xr=yr.columnsOffset,Br=kt(Nt,Rt,Ft,Jt,Gt),sn=Br.key,Jr=Br.fixedInfo,wn=Br.appendCellNode,mn=Br.additionalCellProps,bn=mn.style,En=mn.colSpan,xn=En===void 0?1:En,Wn=mn.rowSpan,Tn=Wn===void 0?1:Wn,Nn=Ft-1,gn=An(Nn,xn,xr),rn=xn>1?er-gn:0,hn=(0,ye.Z)((0,ye.Z)((0,ye.Z)({},bn),Pt),{},{flex:"0 0 ".concat(gn,"px"),width:"".concat(gn,"px"),marginRight:rn,pointerEvents:"auto"}),Sn=x.useMemo(function(){return Xt?Tn<=1:xn===0||Tn===0||Tn>1},[Tn,xn,Xt]);Sn?hn.visibility="hidden":Xt&&(hn.height=Vt==null?void 0:Vt(Tn));var un=Sn?function(){return null}:nr,Mn={};return(Tn===0||xn===0)&&(Mn.rowSpan=1,Mn.colSpan=1),x.createElement(st,(0,ee.Z)({className:Re()(or,zt),ellipsis:Rt.ellipsis,align:Rt.align,scope:Rt.rowScope,component:fr,prefixCls:Nt.prefixCls,key:sn,record:tr,index:Gt,renderIndex:lr,dataIndex:Dr,render:un,shouldCellUpdate:Rt.shouldCellUpdate},Jr,{appendNode:wn,additionalProps:(0,ye.Z)((0,ye.Z)({},mn),{},{style:hn},Mn)}))}var Fn=Hn,Jn=["data","index","className","rowKey","style","extra","getHeight"],zn=x.forwardRef(function(xt,Nt){var Rt=xt.data,Ft=xt.index,Jt=xt.className,Gt=xt.rowKey,fr=xt.style,lr=xt.extra,tr=xt.getHeight,Pt=(0,Ke.Z)(xt,Jn),zt=Rt.record,Xt=Rt.indent,Vt=Rt.index,nr=oe(xe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Dr=nr.scrollX,or=nr.flattenColumns,er=nr.prefixCls,yr=nr.fixColumn,xr=nr.componentWidth,Br=oe(Wr,["getComponent"]),sn=Br.getComponent,Jr=mt(zt,Gt,Ft,Xt),wn=sn(["body","row"],"div"),mn=sn(["body","cell"],"div"),bn=Jr.rowSupportExpand,En=Jr.expanded,xn=Jr.rowProps,Wn=Jr.expandedRowRender,Tn=Jr.expandedRowClassName,Nn;if(bn&&En){var gn=Wn(zt,Ft,Xt+1,En),rn=Et(Tn,zt,Ft,Xt),hn={};yr&&(hn={style:(0,we.Z)({},"--virtual-width","".concat(xr,"px"))});var Sn="".concat(er,"-expanded-row-cell");Nn=x.createElement(wn,{className:Re()("".concat(er,"-expanded-row"),"".concat(er,"-expanded-row-level-").concat(Xt+1),rn)},x.createElement(st,{component:mn,prefixCls:er,className:Re()(Sn,(0,we.Z)({},"".concat(Sn,"-fixed"),yr)),additionalProps:hn},gn))}var un=(0,ye.Z)((0,ye.Z)({},fr),{},{width:Dr});lr&&(un.position="absolute",un.pointerEvents="none");var Mn=x.createElement(wn,(0,ee.Z)({},xn,Pt,{"data-row-key":Gt,ref:bn?null:Nt,className:Re()(Jt,"".concat(er,"-row"),xn==null?void 0:xn.className,(0,we.Z)({},"".concat(er,"-row-extra"),lr)),style:(0,ye.Z)((0,ye.Z)({},un),xn==null?void 0:xn.style)}),or.map(function(Ln,$n){return x.createElement(Fn,{key:$n,component:mn,rowInfo:Jr,column:Ln,colIndex:$n,indent:Xt,index:Ft,renderIndex:Vt,record:zt,inverse:lr,getHeight:tr})}));return bn?x.createElement("div",{ref:Nt},Mn,Nn):Mn}),jr=ve(zn),Fr=jr,Er=x.forwardRef(function(xt,Nt){var Rt=xt.data,Ft=xt.onScroll,Jt=oe(xe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Gt=Jt.flattenColumns,fr=Jt.onColumnResize,lr=Jt.getRowKey,tr=Jt.expandedKeys,Pt=Jt.prefixCls,zt=Jt.childrenColumnName,Xt=Jt.scrollX,Vt=Jt.direction,nr=oe(Wr),Dr=nr.sticky,or=nr.scrollY,er=nr.listItemHeight,yr=nr.getComponent,xr=nr.onScroll,Br=x.useRef(),sn=Le(Rt,zt,tr,lr),Jr=x.useMemo(function(){var Nn=0;return Gt.map(function(gn){var rn=gn.width,hn=gn.key;return Nn+=rn,[hn,rn,Nn]})},[Gt]),wn=x.useMemo(function(){return Jr.map(function(Nn){return Nn[2]})},[Jr]);x.useEffect(function(){Jr.forEach(function(Nn){var gn=(0,Ct.Z)(Nn,2),rn=gn[0],hn=gn[1];fr(rn,hn)})},[Jr]),x.useImperativeHandle(Nt,function(){var Nn,gn={scrollTo:function(hn){var Sn;(Sn=Br.current)===null||Sn===void 0||Sn.scrollTo(hn)},nativeElement:(Nn=Br.current)===null||Nn===void 0?void 0:Nn.nativeElement};return Object.defineProperty(gn,"scrollLeft",{get:function(){var hn;return((hn=Br.current)===null||hn===void 0?void 0:hn.getScrollInfo().x)||0},set:function(hn){var Sn;(Sn=Br.current)===null||Sn===void 0||Sn.scrollTo({left:hn})}}),gn});var mn=function(gn,rn){var hn,Sn=(hn=sn[rn])===null||hn===void 0?void 0:hn.record,un=gn.onCell;if(un){var Mn,Ln=un(Sn,rn);return(Mn=Ln==null?void 0:Ln.rowSpan)!==null&&Mn!==void 0?Mn:1}return 1},bn=function(gn){var rn=gn.start,hn=gn.end,Sn=gn.getSize,un=gn.offsetY;if(hn<0)return null;for(var Mn=Gt.filter(function(li){return mn(li,rn)===0}),Ln=rn,$n=function(oi){if(Mn=Mn.filter(function(cn){return mn(cn,oi)===0}),!Mn.length)return Ln=oi,1},_i=rn;_i>=0&&!$n(_i);_i-=1);for(var Si=Gt.filter(function(li){return mn(li,hn)!==1}),yi=hn,Di=function(oi){if(Si=Si.filter(function(cn){return mn(cn,oi)!==1}),!Si.length)return yi=Math.max(oi-1,hn),1},qn=hn;qn<sn.length&&!Di(qn);qn+=1);for(var Qn=[],ti=function(oi){var cn=sn[oi];if(!cn)return 1;Gt.some(function(_n){return mn(_n,oi)>1})&&Qn.push(oi)},ki=Ln;ki<=yi;ki+=1)ti(ki);var ai=Qn.map(function(li){var oi=sn[li],cn=lr(oi.record,li),_n=function(Xn){var ei=li+Xn-1,Hi=lr(sn[ei].record,ei),fi=Sn(cn,Hi);return fi.bottom-fi.top},Dn=Sn(cn);return x.createElement(Fr,{key:li,data:oi,rowKey:cn,index:li,style:{top:-un+Dn.top},extra:!0,getHeight:_n})});return ai},En=x.useMemo(function(){return{columnsOffset:wn}},[wn]),xn="".concat(Pt,"-tbody"),Wn=yr(["body","wrapper"]),Tn={};return Dr&&(Tn.position="sticky",Tn.bottom=0,(0,ce.Z)(Dr)==="object"&&Dr.offsetScroll&&(Tn.bottom=Dr.offsetScroll)),x.createElement(_r.Provider,{value:En},x.createElement(Nr.Z,{fullHeight:!1,ref:Br,prefixCls:"".concat(xn,"-virtual"),styles:{horizontalScrollBar:Tn},className:xn,height:or,itemHeight:er||24,data:sn,itemKey:function(gn){return lr(gn.record)},component:Wn,scrollWidth:Xt,direction:Vt,onVirtualScroll:function(gn){var rn,hn=gn.x;Ft({currentTarget:(rn=Br.current)===null||rn===void 0?void 0:rn.nativeElement,scrollLeft:hn})},onScroll:xr,extraRender:bn},function(Nn,gn,rn){var hn=lr(Nn.record,gn);return x.createElement(Fr,{data:Nn,rowKey:hn,index:gn,style:rn.style})}))}),Yr=ve(Er),Or=Yr,qr=function(Nt,Rt){var Ft=Rt.ref,Jt=Rt.onScroll;return x.createElement(Or,{ref:Ft,data:Nt,onScroll:Jt})};function yn(xt,Nt){var Rt=xt.data,Ft=xt.columns,Jt=xt.scroll,Gt=xt.sticky,fr=xt.prefixCls,lr=fr===void 0?ir:fr,tr=xt.className,Pt=xt.listItemHeight,zt=xt.components,Xt=xt.onScroll,Vt=Jt||{},nr=Vt.x,Dr=Vt.y;typeof nr!="number"&&(nr=1),typeof Dr!="number"&&(Dr=500);var or=(0,dt.zX)(function(xr,Br){return(0,_e.Z)(zt,xr)||Br}),er=(0,dt.zX)(Xt),yr=x.useMemo(function(){return{sticky:Gt,scrollY:Dr,listItemHeight:Pt,getComponent:or,onScroll:er}},[Gt,Dr,Pt,or,er]);return x.createElement(Wr.Provider,{value:yr},x.createElement(tn,(0,ee.Z)({},xt,{className:Re()(tr,"".concat(lr,"-virtual")),scroll:(0,ye.Z)((0,ye.Z)({},Jt),{},{x:nr}),components:(0,ye.Z)((0,ye.Z)({},zt),{},{body:Rt!=null&&Rt.length?qr:void 0}),columns:Ft,internalHooks:ze.R,tailor:!0,ref:Nt})))}var Rn=x.forwardRef(yn);function jn(xt){return me(Rn,xt)}var Bn=jn(),ri=null},54451:function(ur,Zt,Je){"use strict";Je.d(Zt,{g:function(){return x},v:function(){return be}});var ze=Je(33885),Ct=Je(75931),y=Je(48736),Te=["expandable"],be="RC_TABLE_INTERNAL_COL_DEFINE";function x(z){var ie=z.expandable,oe=(0,Ct.Z)(z,Te),ee;return"expandable"in z?ee=(0,ze.Z)((0,ze.Z)({},oe),ie):ee=oe,ee.showExpandColumn===!1&&(ee.expandIconColumnIndex=-1),ee}},22711:function(ur,Zt,Je){"use strict";Je.r(Zt),Je.d(Zt,{ResizableTextArea:function(){return De},default:function(){return Ze}});var ze=Je(54476),Ct=Je(20068),y=Je(33885),Te=Je(94480),be=Je(42978),x=Je(75931),z=Je(92310),ie=Je.n(z),oe=Je(36901),ee=Je(66003),le=Je(30292),E=Je(18929),ne=Je(59301),te=Je(76190),se=Je(29301),ue=Je(34280),fe=Je(16089),me=`
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;
`,ve=["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"],he={},ge;function xe(Ve){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=Ve.getAttribute("id")||Ve.getAttribute("data-reactid")||Ve.getAttribute("name");if(Qe&&he[ut])return he[ut];var Ie=window.getComputedStyle(Ve),We=Ie.getPropertyValue("box-sizing")||Ie.getPropertyValue("-moz-box-sizing")||Ie.getPropertyValue("-webkit-box-sizing"),it=parseFloat(Ie.getPropertyValue("padding-bottom"))+parseFloat(Ie.getPropertyValue("padding-top")),at=parseFloat(Ie.getPropertyValue("border-bottom-width"))+parseFloat(Ie.getPropertyValue("border-top-width")),nt=ve.map(function(et){return"".concat(et,":").concat(Ie.getPropertyValue(et))}).join(";"),Xe={sizingStyle:nt,paddingSize:it,borderSize:at,boxSizing:We};return Qe&&ut&&(he[ut]=Xe),Xe}function Ce(Ve){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ie=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ge||(ge=document.createElement("textarea"),ge.setAttribute("tab-index","-1"),ge.setAttribute("aria-hidden","true"),ge.setAttribute("name","hiddenTextarea"),document.body.appendChild(ge)),Ve.getAttribute("wrap")?ge.setAttribute("wrap",Ve.getAttribute("wrap")):ge.removeAttribute("wrap");var We=xe(Ve,Qe),it=We.paddingSize,at=We.borderSize,nt=We.boxSizing,Xe=We.sizingStyle;ge.setAttribute("style","".concat(Xe,";").concat(me)),ge.value=Ve.value||Ve.placeholder||"";var et=void 0,Ye=void 0,dt,tt=ge.scrollHeight;if(nt==="border-box"?tt+=at:nt==="content-box"&&(tt-=it),ut!==null||Ie!==null){ge.value=" ";var lt=ge.scrollHeight-it;ut!==null&&(et=lt*ut,nt==="border-box"&&(et=et+it+at),tt=Math.max(et,tt)),Ie!==null&&(Ye=lt*Ie,nt==="border-box"&&(Ye=Ye+it+at),dt=tt>Ye?"":"hidden",tt=Math.min(Ye,tt))}var st={height:tt,overflowY:dt,resize:"none"};return et&&(st.minHeight=et),Ye&&(st.maxHeight=Ye),st}var je=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ee=0,ce=1,ye=2,we=ne.forwardRef(function(Ve,Qe){var ut=Ve,Ie=ut.prefixCls,We=ut.defaultValue,it=ut.value,at=ut.autoSize,nt=ut.onResize,Xe=ut.className,et=ut.style,Ye=ut.disabled,dt=ut.onChange,tt=ut.onInternalAutoSize,lt=(0,x.Z)(ut,je),st=(0,E.Z)(We,{value:it,postState:function(It){return It!=null?It:""}}),He=(0,be.Z)(st,2),Ne=He[0],Ge=He[1],Me=function(It){Ge(It.target.value),dt==null||dt(It)},Ke=ne.useRef();ne.useImperativeHandle(Qe,function(){return{textArea:Ke.current}});var ct=ne.useMemo(function(){return at&&(0,te.Z)(at)==="object"?[at.minRows,at.maxRows]:[]},[at]),pt=(0,be.Z)(ct,2),rt=pt[0],Ae=pt[1],Pe=!!at,Ue=function(){try{if(document.activeElement===Ke.current){var It=Ke.current,vr=It.selectionStart,Kt=It.selectionEnd,Pr=It.scrollTop;Ke.current.setSelectionRange(vr,Kt),Ke.current.scrollTop=Pr}}catch(qt){}},ot=ne.useState(ye),Oe=(0,be.Z)(ot,2),Se=Oe[0],pe=Oe[1],Be=ne.useState(),$e=(0,be.Z)(Be,2),Le=$e[0],mt=$e[1],gt=function(){pe(Ee)};(0,ue.Z)(function(){Pe&&gt()},[it,rt,Ae,Pe]),(0,ue.Z)(function(){if(Se===Ee)pe(ce);else if(Se===ce){var jt=Ce(Ke.current,!1,rt,Ae);pe(ye),mt(jt)}else Ue()},[Se]);var wt=ne.useRef(),bt=function(){fe.Z.cancel(wt.current)},yt=function(It){Se===ye&&(nt==null||nt(It),at&&(bt(),wt.current=(0,fe.Z)(function(){gt()})))};ne.useEffect(function(){return bt},[]);var Et=Pe?Le:null,kt=(0,y.Z)((0,y.Z)({},et),Et);return(Se===Ee||Se===ce)&&(kt.overflowY="hidden",kt.overflowX="hidden"),ne.createElement(se.Z,{onResize:yt,disabled:!(at||nt)},ne.createElement("textarea",(0,ze.Z)({},lt,{ref:Ke,style:kt,className:ie()(Ie,Xe,(0,Ct.Z)({},"".concat(Ie,"-disabled"),Ye)),disabled:Ye,value:Ne,onChange:Me})))}),De=we,Re=["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"],ke=ne.forwardRef(function(Ve,Qe){var ut,Ie=Ve.defaultValue,We=Ve.value,it=Ve.onFocus,at=Ve.onBlur,nt=Ve.onChange,Xe=Ve.allowClear,et=Ve.maxLength,Ye=Ve.onCompositionStart,dt=Ve.onCompositionEnd,tt=Ve.suffix,lt=Ve.prefixCls,st=lt===void 0?"rc-textarea":lt,He=Ve.showCount,Ne=Ve.count,Ge=Ve.className,Me=Ve.style,Ke=Ve.disabled,ct=Ve.hidden,pt=Ve.classNames,rt=Ve.styles,Ae=Ve.onResize,Pe=Ve.onClear,Ue=Ve.onPressEnter,ot=Ve.readOnly,Oe=Ve.autoSize,Se=Ve.onKeyDown,pe=(0,x.Z)(Ve,Re),Be=(0,E.Z)(Ie,{value:We,defaultValue:Ie}),$e=(0,be.Z)(Be,2),Le=$e[0],mt=$e[1],gt=Le==null?"":String(Le),wt=ne.useState(!1),bt=(0,be.Z)(wt,2),yt=bt[0],Et=bt[1],kt=ne.useRef(!1),jt=ne.useState(null),It=(0,be.Z)(jt,2),vr=It[0],Kt=It[1],Pr=(0,ne.useRef)(null),qt=(0,ne.useRef)(null),zr=function(){var Wt;return(Wt=qt.current)===null||Wt===void 0?void 0:Wt.textArea},Vr=function(){zr().focus()};(0,ne.useImperativeHandle)(Qe,function(){var Bt;return{resizableTextArea:qt.current,focus:Vr,blur:function(){zr().blur()},nativeElement:((Bt=Pr.current)===null||Bt===void 0?void 0:Bt.nativeElement)||zr()}}),(0,ne.useEffect)(function(){Et(function(Bt){return!Ke&&Bt})},[Ke]);var Xr=ne.useState(null),pn=(0,be.Z)(Xr,2),nn=pn[0],Mr=pn[1];ne.useEffect(function(){if(nn){var Bt;(Bt=zr()).setSelectionRange.apply(Bt,(0,Te.Z)(nn))}},[nn]);var fn=(0,ee.Z)(Ne,He),dn=(ut=fn.max)!==null&&ut!==void 0?ut:et,Lr=Number(dn)>0,Ir=fn.strategy(gt),Mt=!!dn&&Ir>dn,Lt=function(Wt,Gr){var on=Gr;!kt.current&&fn.exceedFormatter&&fn.max&&fn.strategy(Gr)>fn.max&&(on=fn.exceedFormatter(Gr,{max:fn.max}),Gr!==on&&Mr([zr().selectionStart||0,zr().selectionEnd||0])),mt(on),(0,le.rJ)(Wt.currentTarget,Wt,nt,on)},At=function(Wt){kt.current=!0,Ye==null||Ye(Wt)},$t=function(Wt){kt.current=!1,Lt(Wt,Wt.currentTarget.value),dt==null||dt(Wt)},cr=function(Wt){Lt(Wt,Wt.target.value)},mr=function(Wt){Wt.key==="Enter"&&Ue&&Ue(Wt),Se==null||Se(Wt)},Sr=function(Wt){Et(!0),it==null||it(Wt)},Tr=function(Wt){Et(!1),at==null||at(Wt)},br=function(Wt){mt(""),Vr(),(0,le.rJ)(zr(),Wt,nt)},Rr=tt,Ur;fn.show&&(fn.showFormatter?Ur=fn.showFormatter({value:gt,count:Ir,maxLength:dn}):Ur="".concat(Ir).concat(Lr?" / ".concat(dn):""),Rr=ne.createElement(ne.Fragment,null,Rr,ne.createElement("span",{className:ie()("".concat(st,"-data-count"),pt==null?void 0:pt.count),style:rt==null?void 0:rt.count},Ur)));var Kr=function(Wt){var Gr;Ae==null||Ae(Wt),(Gr=zr())!==null&&Gr!==void 0&&Gr.style.height&&Kt(!0)},sr=!Oe&&!He&&!Xe;return ne.createElement(oe.BaseInput,{ref:Pr,value:gt,allowClear:Xe,handleReset:br,suffix:Rr,prefixCls:st,classNames:(0,y.Z)((0,y.Z)({},pt),{},{affixWrapper:ie()(pt==null?void 0:pt.affixWrapper,(0,Ct.Z)((0,Ct.Z)({},"".concat(st,"-show-count"),He),"".concat(st,"-textarea-allow-clear"),Xe))}),disabled:Ke,focused:yt,className:ie()(Ge,Mt&&"".concat(st,"-out-of-range")),style:(0,y.Z)((0,y.Z)({},Me),vr&&!sr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ur=="string"?Ur:void 0}},hidden:ct,readOnly:ot,onClear:Pe},ne.createElement(De,(0,ze.Z)({},pe,{autoSize:Oe,maxLength:et,onKeyDown:mr,onChange:cr,onFocus:Sr,onBlur:Tr,onCompositionStart:At,onCompositionEnd:$t,className:ie()(pt==null?void 0:pt.textarea),style:(0,y.Z)((0,y.Z)({},rt==null?void 0:rt.textarea),{},{resize:Me==null?void 0:Me.resize}),disabled:Ke,prefixCls:st,onResize:Kr,ref:qt,readOnly:ot})))}),_e=ke,Ze=_e},639:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return he}});var ze=Je(54476),Ct=Je(20068),y=Je(33885),Te=Je(42978),be=Je(75931),x=Je(59301),z=Je(92310),ie=Je.n(z),oe=Je(26112),ee=Je(30699),le=function(xe){for(var Ce=xe.prefixCls,je=xe.level,Ee=xe.isStart,ce=xe.isEnd,ye="".concat(Ce,"-indent-unit"),we=[],De=0;De<je;De+=1)we.push(x.createElement("span",{key:De,className:ie()(ye,(0,Ct.Z)((0,Ct.Z)({},"".concat(ye,"-start"),Ee[De]),"".concat(ye,"-end"),ce[De]))}));return x.createElement("span",{"aria-hidden":"true",className:"".concat(Ce,"-indent")},we)},E=x.memo(le),ne=Je(65065),te=Je(34061),se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ue="open",fe="close",me="---",ve=function(xe){var Ce,je,Ee,ce=xe.eventKey,ye=xe.className,we=xe.style,De=xe.dragOver,Re=xe.dragOverGapTop,ke=xe.dragOverGapBottom,_e=xe.isLeaf,Ze=xe.isStart,Ve=xe.isEnd,Qe=xe.expanded,ut=xe.selected,Ie=xe.checked,We=xe.halfChecked,it=xe.loading,at=xe.domRef,nt=xe.active,Xe=xe.data,et=xe.onMouseMove,Ye=xe.selectable,dt=(0,be.Z)(xe,se),tt=x.useContext(ee.k),lt=x.useContext(ee.y),st=x.useRef(null),He=x.useState(!1),Ne=(0,Te.Z)(He,2),Ge=Ne[0],Me=Ne[1],Ke=!!(tt.disabled||xe.disabled||(Ce=lt.nodeDisabled)!==null&&Ce!==void 0&&Ce.call(lt,Xe)),ct=x.useMemo(function(){return!tt.checkable||xe.checkable===!1?!1:tt.checkable},[tt.checkable,xe.checkable]),pt=function(Ir){Ke||tt.onNodeSelect(Ir,(0,te.F)(xe))},rt=function(Ir){Ke||!ct||xe.disableCheckbox||tt.onNodeCheck(Ir,(0,te.F)(xe),!Ie)},Ae=x.useMemo(function(){return typeof Ye=="boolean"?Ye:tt.selectable},[Ye,tt.selectable]),Pe=function(Ir){tt.onNodeClick(Ir,(0,te.F)(xe)),Ae?pt(Ir):rt(Ir)},Ue=function(Ir){tt.onNodeDoubleClick(Ir,(0,te.F)(xe))},ot=function(Ir){tt.onNodeMouseEnter(Ir,(0,te.F)(xe))},Oe=function(Ir){tt.onNodeMouseLeave(Ir,(0,te.F)(xe))},Se=function(Ir){tt.onNodeContextMenu(Ir,(0,te.F)(xe))},pe=x.useMemo(function(){return!!(tt.draggable&&(!tt.draggable.nodeDraggable||tt.draggable.nodeDraggable(Xe)))},[tt.draggable,Xe]),Be=function(Ir){Ir.stopPropagation(),Me(!0),tt.onNodeDragStart(Ir,xe);try{Ir.dataTransfer.setData("text/plain","")}catch(Mt){}},$e=function(Ir){Ir.preventDefault(),Ir.stopPropagation(),tt.onNodeDragEnter(Ir,xe)},Le=function(Ir){Ir.preventDefault(),Ir.stopPropagation(),tt.onNodeDragOver(Ir,xe)},mt=function(Ir){Ir.stopPropagation(),tt.onNodeDragLeave(Ir,xe)},gt=function(Ir){Ir.stopPropagation(),Me(!1),tt.onNodeDragEnd(Ir,xe)},wt=function(Ir){Ir.preventDefault(),Ir.stopPropagation(),Me(!1),tt.onNodeDrop(Ir,xe)},bt=function(Ir){it||tt.onNodeExpand(Ir,(0,te.F)(xe))},yt=x.useMemo(function(){var Lr=(0,ne.Z)(tt.keyEntities,ce)||{},Ir=Lr.children;return!!(Ir||[]).length},[tt.keyEntities,ce]),Et=x.useMemo(function(){return _e===!1?!1:_e||!tt.loadData&&!yt||tt.loadData&&xe.loaded&&!yt},[_e,tt.loadData,yt,xe.loaded]);x.useEffect(function(){it||typeof tt.loadData=="function"&&Qe&&!Et&&!xe.loaded&&tt.onNodeLoad((0,te.F)(xe))},[it,tt.loadData,tt.onNodeLoad,Qe,Et,xe]);var kt=x.useMemo(function(){var Lr;return(Lr=tt.draggable)!==null&&Lr!==void 0&&Lr.icon?x.createElement("span",{className:"".concat(tt.prefixCls,"-draggable-icon")},tt.draggable.icon):null},[tt.draggable]),jt=function(Ir){var Mt=xe.switcherIcon||tt.switcherIcon;return typeof Mt=="function"?Mt((0,y.Z)((0,y.Z)({},xe),{},{isLeaf:Ir})):Mt},It=function(){if(Et){var Ir=jt(!0);return Ir!==!1?x.createElement("span",{className:ie()("".concat(tt.prefixCls,"-switcher"),"".concat(tt.prefixCls,"-switcher-noop"))},Ir):null}var Mt=jt(!1);return Mt!==!1?x.createElement("span",{onClick:bt,className:ie()("".concat(tt.prefixCls,"-switcher"),"".concat(tt.prefixCls,"-switcher_").concat(Qe?ue:fe))},Mt):null},vr=x.useMemo(function(){if(!ct)return null;var Lr=typeof ct!="boolean"?ct:null;return x.createElement("span",{className:ie()("".concat(tt.prefixCls,"-checkbox"),(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},"".concat(tt.prefixCls,"-checkbox-checked"),Ie),"".concat(tt.prefixCls,"-checkbox-indeterminate"),!Ie&&We),"".concat(tt.prefixCls,"-checkbox-disabled"),Ke||xe.disableCheckbox)),onClick:rt,role:"checkbox","aria-checked":We?"mixed":Ie,"aria-disabled":Ke||xe.disableCheckbox,"aria-label":"Select ".concat(typeof xe.title=="string"?xe.title:"tree node")},Lr)},[ct,Ie,We,Ke,xe.disableCheckbox,xe.title]),Kt=x.useMemo(function(){return Et?null:Qe?ue:fe},[Et,Qe]),Pr=x.useMemo(function(){return x.createElement("span",{className:ie()("".concat(tt.prefixCls,"-iconEle"),"".concat(tt.prefixCls,"-icon__").concat(Kt||"docu"),(0,Ct.Z)({},"".concat(tt.prefixCls,"-icon_loading"),it))})},[tt.prefixCls,Kt,it]),qt=x.useMemo(function(){var Lr=!!tt.draggable,Ir=!xe.disabled&&Lr&&tt.dragOverNodeKey===ce;return Ir?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]),zr=x.useMemo(function(){var Lr=xe.title,Ir=Lr===void 0?me:Lr,Mt="".concat(tt.prefixCls,"-node-content-wrapper"),Lt;if(tt.showIcon){var At=xe.icon||tt.icon;Lt=At?x.createElement("span",{className:ie()("".concat(tt.prefixCls,"-iconEle"),"".concat(tt.prefixCls,"-icon__customize"))},typeof At=="function"?At(xe):At):Pr}else tt.loadData&&it&&(Lt=Pr);var $t;return typeof Ir=="function"?$t=Ir(Xe):tt.titleRender?$t=tt.titleRender(Xe):$t=Ir,x.createElement("span",{ref:st,title:typeof Ir=="string"?Ir:"",className:ie()(Mt,"".concat(Mt,"-").concat(Kt||"normal"),(0,Ct.Z)({},"".concat(tt.prefixCls,"-node-selected"),!Ke&&(ut||Ge))),onMouseEnter:ot,onMouseLeave:Oe,onContextMenu:Se,onClick:Pe,onDoubleClick:Ue},Lt,x.createElement("span",{className:"".concat(tt.prefixCls,"-title")},$t),qt)},[tt.prefixCls,tt.showIcon,xe,tt.icon,Pr,tt.titleRender,Xe,Kt,ot,Oe,Se,Pe,Ue]),Vr=(0,oe.Z)(dt,{aria:!0,data:!0}),Xr=(0,ne.Z)(tt.keyEntities,ce)||{},pn=Xr.level,nn=Ve[Ve.length-1],Mr=!Ke&&pe,fn=tt.draggingNodeKey===ce,dn=Ye!==void 0?{"aria-selected":!!Ye}:void 0;return x.createElement("div",(0,ze.Z)({ref:at,role:"treeitem","aria-expanded":_e?void 0:Qe,className:ie()(ye,"".concat(tt.prefixCls,"-treenode"),(Ee={},(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)(Ee,"".concat(tt.prefixCls,"-treenode-disabled"),Ke),"".concat(tt.prefixCls,"-treenode-switcher-").concat(Qe?"open":"close"),!_e),"".concat(tt.prefixCls,"-treenode-checkbox-checked"),Ie),"".concat(tt.prefixCls,"-treenode-checkbox-indeterminate"),We),"".concat(tt.prefixCls,"-treenode-selected"),ut),"".concat(tt.prefixCls,"-treenode-loading"),it),"".concat(tt.prefixCls,"-treenode-active"),nt),"".concat(tt.prefixCls,"-treenode-leaf-last"),nn),"".concat(tt.prefixCls,"-treenode-draggable"),pe),"dragging",fn),(0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)(Ee,"drop-target",tt.dropTargetKey===ce),"drop-container",tt.dropContainerKey===ce),"drag-over",!Ke&&De),"drag-over-gap-top",!Ke&&Re),"drag-over-gap-bottom",!Ke&&ke),"filter-node",(je=tt.filterTreeNode)===null||je===void 0?void 0:je.call(tt,(0,te.F)(xe))),"".concat(tt.prefixCls,"-treenode-leaf"),Et))),style:we,draggable:Mr,onDragStart:Mr?Be:void 0,onDragEnter:pe?$e:void 0,onDragOver:pe?Le:void 0,onDragLeave:pe?mt:void 0,onDrop:pe?wt:void 0,onDragEnd:pe?gt:void 0,onMouseMove:et},dn,Vr),x.createElement(E,{prefixCls:tt.prefixCls,level:pn,isStart:Ze,isEnd:Ve}),kt,It(),vr,zr)};ve.isTreeNode=1;var he=ve},30699:function(ur,Zt,Je){"use strict";Je.d(Zt,{k:function(){return Ct},y:function(){return y}});var ze=Je(59301),Ct=ze.createContext(null),y=ze.createContext({})},3741:function(ur,Zt,Je){"use strict";Je.d(Zt,{OF:function(){return ce.Z},y6:function(){return fe.y},ZP:function(){return Ke}});var ze=Je(54476),Ct=Je(76190),y=Je(33885),Te=Je(94480),be=Je(67732),x=Je(83652),z=Je(31226),ie=Je(42403),oe=Je(158),ee=Je(20068),le=Je(92310),E=Je.n(le),ne=Je(10228),te=Je(26112),se=Je(48736),ue=Je(59301),fe=Je(30699),me=function(pt){var rt=pt.dropPosition,Ae=pt.dropLevelOffset,Pe=pt.indent,Ue={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(rt){case-1:Ue.top=0,Ue.left=-Ae*Pe;break;case 1:Ue.bottom=0,Ue.left=-Ae*Pe;break;case 0:Ue.bottom=0,Ue.left=Pe;break}return ue.createElement("div",{style:Ue})},ve=me;function he(ct){if(ct==null)throw new TypeError("Cannot destructure "+ct)}var ge=Je(42978),xe=Je(75931),Ce=Je(34280),je=Je(48911),Ee=Je(77900),ce=Je(639);function ye(ct,pt){var rt=ue.useState(!1),Ae=(0,ge.Z)(rt,2),Pe=Ae[0],Ue=Ae[1];(0,Ce.Z)(function(){if(Pe)return ct(),function(){pt()}},[Pe]),(0,Ce.Z)(function(){return Ue(!0),function(){Ue(!1)}},[])}var we=ye,De=Je(34061),Re=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ke=ue.forwardRef(function(ct,pt){var rt=ct.className,Ae=ct.style,Pe=ct.motion,Ue=ct.motionNodes,ot=ct.motionType,Oe=ct.onMotionStart,Se=ct.onMotionEnd,pe=ct.active,Be=ct.treeNodeRequiredProps,$e=(0,xe.Z)(ct,Re),Le=ue.useState(!0),mt=(0,ge.Z)(Le,2),gt=mt[0],wt=mt[1],bt=ue.useContext(fe.k),yt=bt.prefixCls,Et=Ue&&ot!=="hide";(0,Ce.Z)(function(){Ue&&Et!==gt&&wt(Et)},[Ue]);var kt=function(){Ue&&Oe()},jt=ue.useRef(!1),It=function(){Ue&&!jt.current&&(jt.current=!0,Se())};we(kt,It);var vr=function(Pr){Et===Pr&&It()};return Ue?ue.createElement(Ee.default,(0,ze.Z)({ref:pt,visible:gt},Pe,{motionAppear:ot==="show",onVisibleChanged:vr}),function(Kt,Pr){var qt=Kt.className,zr=Kt.style;return ue.createElement("div",{ref:Pr,className:E()("".concat(yt,"-treenode-motion"),qt),style:zr},Ue.map(function(Vr){var Xr=Object.assign({},(he(Vr.data),Vr.data)),pn=Vr.title,nn=Vr.key,Mr=Vr.isStart,fn=Vr.isEnd;delete Xr.children;var dn=(0,De.H8)(nn,Be);return ue.createElement(ce.Z,(0,ze.Z)({},Xr,dn,{title:pn,active:pe,data:Vr.data,key:nn,isStart:Mr,isEnd:fn}))}))}):ue.createElement(ce.Z,(0,ze.Z)({domRef:pt,className:rt,style:Ae},$e,{active:pe}))}),_e=ke;function Ze(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],rt=ct.length,Ae=pt.length;if(Math.abs(rt-Ae)!==1)return{add:!1,key:null};function Pe(Ue,ot){var Oe=new Map;Ue.forEach(function(pe){Oe.set(pe,!0)});var Se=ot.filter(function(pe){return!Oe.has(pe)});return Se.length===1?Se[0]:null}return rt<Ae?{add:!0,key:Pe(ct,pt)}:{add:!1,key:Pe(pt,ct)}}function Ve(ct,pt,rt){var Ae=ct.findIndex(function(Oe){return Oe.key===rt}),Pe=ct[Ae+1],Ue=pt.findIndex(function(Oe){return Oe.key===rt});if(Pe){var ot=pt.findIndex(function(Oe){return Oe.key===Pe.key});return pt.slice(Ue+1,ot)}return pt.slice(Ue+1)}var Qe=["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"],ut={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ie=function(){},We="RC_TREE_MOTION_".concat(Math.random()),it={key:We},at={key:We,level:0,index:0,pos:"0",node:it,nodes:[it]},nt={parent:null,children:[],pos:at.pos,data:it,title:null,key:We,isStart:[],isEnd:[]};function Xe(ct,pt,rt,Ae){return pt===!1||!rt?ct:ct.slice(0,Math.ceil(rt/Ae)+1)}function et(ct){var pt=ct.key,rt=ct.pos;return(0,De.km)(pt,rt)}function Ye(ct){for(var pt=String(ct.data.key),rt=ct;rt.parent;)rt=rt.parent,pt="".concat(rt.data.key," > ").concat(pt);return pt}var dt=ue.forwardRef(function(ct,pt){var rt=ct.prefixCls,Ae=ct.data,Pe=ct.selectable,Ue=ct.checkable,ot=ct.expandedKeys,Oe=ct.selectedKeys,Se=ct.checkedKeys,pe=ct.loadedKeys,Be=ct.loadingKeys,$e=ct.halfCheckedKeys,Le=ct.keyEntities,mt=ct.disabled,gt=ct.dragging,wt=ct.dragOverNodeKey,bt=ct.dropPosition,yt=ct.motion,Et=ct.height,kt=ct.itemHeight,jt=ct.virtual,It=ct.scrollWidth,vr=ct.focusable,Kt=ct.activeItem,Pr=ct.focused,qt=ct.tabIndex,zr=ct.onKeyDown,Vr=ct.onFocus,Xr=ct.onBlur,pn=ct.onActiveChange,nn=ct.onListChangeStart,Mr=ct.onListChangeEnd,fn=(0,xe.Z)(ct,Qe),dn=ue.useRef(null),Lr=ue.useRef(null);ue.useImperativeHandle(pt,function(){return{scrollTo:function(gr){dn.current.scrollTo(gr)},getIndentWidth:function(){return Lr.current.offsetWidth}}});var Ir=ue.useState(ot),Mt=(0,ge.Z)(Ir,2),Lt=Mt[0],At=Mt[1],$t=ue.useState(Ae),cr=(0,ge.Z)($t,2),mr=cr[0],Sr=cr[1],Tr=ue.useState(Ae),br=(0,ge.Z)(Tr,2),Rr=br[0],Ur=br[1],Kr=ue.useState([]),sr=(0,ge.Z)(Kr,2),Bt=sr[0],Wt=sr[1],Gr=ue.useState(null),on=(0,ge.Z)(Gr,2),Tt=on[0],_t=on[1],dr=ue.useRef(Ae);dr.current=Ae;function Qt(){var wr=dr.current;Sr(wr),Ur(wr),Wt([]),_t(null),Mr()}(0,Ce.Z)(function(){At(ot);var wr=Ze(Lt,ot);if(wr.key!==null)if(wr.add){var gr=mr.findIndex(function(kr){var Zr=kr.key;return Zr===wr.key}),ar=Xe(Ve(mr,Ae,wr.key),jt,Et,kt),pr=mr.slice();pr.splice(gr+1,0,nt),Ur(pr),Wt(ar),_t("show")}else{var Cr=Ae.findIndex(function(kr){var Zr=kr.key;return Zr===wr.key}),ir=Xe(Ve(Ae,mr,wr.key),jt,Et,kt),Yt=Ae.slice();Yt.splice(Cr+1,0,nt),Ur(Yt),Wt(ir),_t("hide")}else mr!==Ae&&(Sr(Ae),Ur(Ae))},[ot,Ae]),ue.useEffect(function(){gt||Qt()},[gt]);var Ot=yt?Rr:Ae,rr={expandedKeys:ot,selectedKeys:Oe,loadedKeys:pe,loadingKeys:Be,checkedKeys:Se,halfCheckedKeys:$e,dragOverNodeKey:wt,dropPosition:bt,keyEntities:Le};return ue.createElement(ue.Fragment,null,Pr&&Kt&&ue.createElement("span",{style:ut,"aria-live":"assertive"},Ye(Kt)),ue.createElement("div",null,ue.createElement("input",{style:ut,disabled:vr===!1||mt,tabIndex:vr!==!1?qt:null,onKeyDown:zr,onFocus:Vr,onBlur:Xr,value:"",onChange:Ie,"aria-label":"for screen reader"})),ue.createElement("div",{className:"".concat(rt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ue.createElement("div",{className:"".concat(rt,"-indent")},ue.createElement("div",{ref:Lr,className:"".concat(rt,"-indent-unit")}))),ue.createElement(je.Z,(0,ze.Z)({},fn,{data:Ot,itemKey:et,height:Et,fullHeight:!1,virtual:jt,itemHeight:kt,scrollWidth:It,prefixCls:"".concat(rt,"-list"),ref:dn,role:"tree",onVisibleChange:function(gr){gr.every(function(ar){return et(ar)!==We})&&Qt()}}),function(wr){var gr=wr.pos,ar=Object.assign({},(he(wr.data),wr.data)),pr=wr.title,Cr=wr.key,ir=wr.isStart,Yt=wr.isEnd,kr=(0,De.km)(Cr,gr);delete ar.key,delete ar.children;var Zr=(0,De.H8)(kr,rr);return ue.createElement(_e,(0,ze.Z)({},ar,Zr,{title:pr,active:!!Kt&&Cr===Kt.key,pos:gr,data:wr.data,isStart:ir,isEnd:Yt,motion:yt,motionNodes:Cr===We?Bt:null,motionType:Tt,onMotionStart:nn,onMotionEnd:Qt,treeNodeRequiredProps:rr,onMouseMove:function(){pn(null)}}))}))}),tt=dt,lt=Je(82661),st=Je(34643),He=Je(65065),Ne=10,Ge=function(ct){(0,ie.Z)(rt,ct);var pt=(0,oe.Z)(rt);function rt(){var Ae;(0,be.Z)(this,rt);for(var Pe=arguments.length,Ue=new Array(Pe),ot=0;ot<Pe;ot++)Ue[ot]=arguments[ot];return Ae=pt.call.apply(pt,[this].concat(Ue)),(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(Oe,Se){var pe=Ae.state,Be=pe.expandedKeys,$e=pe.keyEntities,Le=Ae.props.onDragStart,mt=Se.eventKey;Ae.dragNodeProps=Se,Ae.dragStartMousePosition={x:Oe.clientX,y:Oe.clientY};var gt=(0,lt._5)(Be,mt);Ae.setState({draggingNodeKey:mt,dragChildrenKeys:(0,lt.wA)(mt,$e),indent:Ae.listRef.current.getIndentWidth()}),Ae.setExpandedKeys(gt),window.addEventListener("dragend",Ae.onWindowDragEnd),Le==null||Le({event:Oe,node:(0,De.F)(Se)})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragEnter",function(Oe,Se){var pe=Ae.state,Be=pe.expandedKeys,$e=pe.keyEntities,Le=pe.dragChildrenKeys,mt=pe.flattenNodes,gt=pe.indent,wt=Ae.props,bt=wt.onDragEnter,yt=wt.onExpand,Et=wt.allowDrop,kt=wt.direction,jt=Se.pos,It=Se.eventKey;if(Ae.currentMouseOverDroppableNodeKey!==It&&(Ae.currentMouseOverDroppableNodeKey=It),!Ae.dragNodeProps){Ae.resetDragState();return}var vr=(0,lt.OM)(Oe,Ae.dragNodeProps,Se,gt,Ae.dragStartMousePosition,Et,mt,$e,Be,kt),Kt=vr.dropPosition,Pr=vr.dropLevelOffset,qt=vr.dropTargetKey,zr=vr.dropContainerKey,Vr=vr.dropTargetPos,Xr=vr.dropAllowed,pn=vr.dragOverNodeKey;if(Le.includes(qt)||!Xr){Ae.resetDragState();return}if(Ae.delayedDragEnterLogic||(Ae.delayedDragEnterLogic={}),Object.keys(Ae.delayedDragEnterLogic).forEach(function(nn){clearTimeout(Ae.delayedDragEnterLogic[nn])}),Ae.dragNodeProps.eventKey!==Se.eventKey&&(Oe.persist(),Ae.delayedDragEnterLogic[jt]=window.setTimeout(function(){if(Ae.state.draggingNodeKey!==null){var nn=(0,Te.Z)(Be),Mr=(0,He.Z)($e,Se.eventKey);Mr&&(Mr.children||[]).length&&(nn=(0,lt.L0)(Be,Se.eventKey)),Ae.props.hasOwnProperty("expandedKeys")||Ae.setExpandedKeys(nn),yt==null||yt(nn,{node:(0,De.F)(Se),expanded:!0,nativeEvent:Oe.nativeEvent})}},800)),Ae.dragNodeProps.eventKey===qt&&Pr===0){Ae.resetDragState();return}Ae.setState({dragOverNodeKey:pn,dropPosition:Kt,dropLevelOffset:Pr,dropTargetKey:qt,dropContainerKey:zr,dropTargetPos:Vr,dropAllowed:Xr}),bt==null||bt({event:Oe,node:(0,De.F)(Se),expandedKeys:Be})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragOver",function(Oe,Se){var pe=Ae.state,Be=pe.dragChildrenKeys,$e=pe.flattenNodes,Le=pe.keyEntities,mt=pe.expandedKeys,gt=pe.indent,wt=Ae.props,bt=wt.onDragOver,yt=wt.allowDrop,Et=wt.direction;if(Ae.dragNodeProps){var kt=(0,lt.OM)(Oe,Ae.dragNodeProps,Se,gt,Ae.dragStartMousePosition,yt,$e,Le,mt,Et),jt=kt.dropPosition,It=kt.dropLevelOffset,vr=kt.dropTargetKey,Kt=kt.dropContainerKey,Pr=kt.dropTargetPos,qt=kt.dropAllowed,zr=kt.dragOverNodeKey;Be.includes(vr)||!qt||(Ae.dragNodeProps.eventKey===vr&&It===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():jt===Ae.state.dropPosition&&It===Ae.state.dropLevelOffset&&vr===Ae.state.dropTargetKey&&Kt===Ae.state.dropContainerKey&&Pr===Ae.state.dropTargetPos&&qt===Ae.state.dropAllowed&&zr===Ae.state.dragOverNodeKey||Ae.setState({dropPosition:jt,dropLevelOffset:It,dropTargetKey:vr,dropContainerKey:Kt,dropTargetPos:Pr,dropAllowed:qt,dragOverNodeKey:zr}),bt==null||bt({event:Oe,node:(0,De.F)(Se)}))}}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragLeave",function(Oe,Se){Ae.currentMouseOverDroppableNodeKey===Se.eventKey&&!Oe.currentTarget.contains(Oe.relatedTarget)&&(Ae.resetDragState(),Ae.currentMouseOverDroppableNodeKey=null);var pe=Ae.props.onDragLeave;pe==null||pe({event:Oe,node:(0,De.F)(Se)})}),(0,ee.Z)((0,z.Z)(Ae),"onWindowDragEnd",function(Oe){Ae.onNodeDragEnd(Oe,null,!0),window.removeEventListener("dragend",Ae.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDragEnd",function(Oe,Se){var pe=Ae.props.onDragEnd;Ae.setState({dragOverNodeKey:null}),Ae.cleanDragState(),pe==null||pe({event:Oe,node:(0,De.F)(Se)}),Ae.dragNodeProps=null,window.removeEventListener("dragend",Ae.onWindowDragEnd)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDrop",function(Oe,Se){var pe,Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,$e=Ae.state,Le=$e.dragChildrenKeys,mt=$e.dropPosition,gt=$e.dropTargetKey,wt=$e.dropTargetPos,bt=$e.dropAllowed;if(bt){var yt=Ae.props.onDrop;if(Ae.setState({dragOverNodeKey:null}),Ae.cleanDragState(),gt!==null){var Et=(0,y.Z)((0,y.Z)({},(0,De.H8)(gt,Ae.getTreeNodeRequiredProps())),{},{active:((pe=Ae.getActiveItem())===null||pe===void 0?void 0:pe.key)===gt,data:(0,He.Z)(Ae.state.keyEntities,gt).node}),kt=Le.includes(gt);(0,se.ZP)(!kt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var jt=(0,lt.yx)(wt),It={event:Oe,node:(0,De.F)(Et),dragNode:Ae.dragNodeProps?(0,De.F)(Ae.dragNodeProps):null,dragNodesKeys:[Ae.dragNodeProps.eventKey].concat(Le),dropToGap:mt!==0,dropPosition:mt+Number(jt[jt.length-1])};Be||yt==null||yt(It),Ae.dragNodeProps=null}}}),(0,ee.Z)((0,z.Z)(Ae),"cleanDragState",function(){var Oe=Ae.state.draggingNodeKey;Oe!==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(Oe,Se){var pe=Ae.state,Be=pe.expandedKeys,$e=pe.flattenNodes,Le=Se.expanded,mt=Se.key,gt=Se.isLeaf;if(!(gt||Oe.shiftKey||Oe.metaKey||Oe.ctrlKey)){var wt=$e.filter(function(yt){return yt.key===mt})[0],bt=(0,De.F)((0,y.Z)((0,y.Z)({},(0,De.H8)(mt,Ae.getTreeNodeRequiredProps())),{},{data:wt.data}));Ae.setExpandedKeys(Le?(0,lt._5)(Be,mt):(0,lt.L0)(Be,mt)),Ae.onNodeExpand(Oe,bt)}}),(0,ee.Z)((0,z.Z)(Ae),"onNodeClick",function(Oe,Se){var pe=Ae.props,Be=pe.onClick,$e=pe.expandAction;$e==="click"&&Ae.triggerExpandActionExpand(Oe,Se),Be==null||Be(Oe,Se)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeDoubleClick",function(Oe,Se){var pe=Ae.props,Be=pe.onDoubleClick,$e=pe.expandAction;$e==="doubleClick"&&Ae.triggerExpandActionExpand(Oe,Se),Be==null||Be(Oe,Se)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeSelect",function(Oe,Se){var pe=Ae.state.selectedKeys,Be=Ae.state,$e=Be.keyEntities,Le=Be.fieldNames,mt=Ae.props,gt=mt.onSelect,wt=mt.multiple,bt=Se.selected,yt=Se[Le.key],Et=!bt;Et?wt?pe=(0,lt.L0)(pe,yt):pe=[yt]:pe=(0,lt._5)(pe,yt);var kt=pe.map(function(jt){var It=(0,He.Z)($e,jt);return It?It.node:null}).filter(Boolean);Ae.setUncontrolledState({selectedKeys:pe}),gt==null||gt(pe,{event:"select",selected:Et,node:Se,selectedNodes:kt,nativeEvent:Oe.nativeEvent})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeCheck",function(Oe,Se,pe){var Be=Ae.state,$e=Be.keyEntities,Le=Be.checkedKeys,mt=Be.halfCheckedKeys,gt=Ae.props,wt=gt.checkStrictly,bt=gt.onCheck,yt=Se.key,Et,kt={event:"check",node:Se,checked:pe,nativeEvent:Oe.nativeEvent};if(wt){var jt=pe?(0,lt.L0)(Le,yt):(0,lt._5)(Le,yt),It=(0,lt._5)(mt,yt);Et={checked:jt,halfChecked:It},kt.checkedNodes=jt.map(function(Vr){return(0,He.Z)($e,Vr)}).filter(Boolean).map(function(Vr){return Vr.node}),Ae.setUncontrolledState({checkedKeys:jt})}else{var vr=(0,st.S)([].concat((0,Te.Z)(Le),[yt]),!0,$e),Kt=vr.checkedKeys,Pr=vr.halfCheckedKeys;if(!pe){var qt=new Set(Kt);qt.delete(yt);var zr=(0,st.S)(Array.from(qt),{checked:!1,halfCheckedKeys:Pr},$e);Kt=zr.checkedKeys,Pr=zr.halfCheckedKeys}Et=Kt,kt.checkedNodes=[],kt.checkedNodesPositions=[],kt.halfCheckedKeys=Pr,Kt.forEach(function(Vr){var Xr=(0,He.Z)($e,Vr);if(Xr){var pn=Xr.node,nn=Xr.pos;kt.checkedNodes.push(pn),kt.checkedNodesPositions.push({node:pn,pos:nn})}}),Ae.setUncontrolledState({checkedKeys:Kt},!1,{halfCheckedKeys:Pr})}bt==null||bt(Et,kt)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeLoad",function(Oe){var Se,pe=Oe.key,Be=Ae.state.keyEntities,$e=(0,He.Z)(Be,pe);if(!($e!=null&&(Se=$e.children)!==null&&Se!==void 0&&Se.length)){var Le=new Promise(function(mt,gt){Ae.setState(function(wt){var bt=wt.loadedKeys,yt=bt===void 0?[]:bt,Et=wt.loadingKeys,kt=Et===void 0?[]:Et,jt=Ae.props,It=jt.loadData,vr=jt.onLoad;if(!It||yt.includes(pe)||kt.includes(pe))return null;var Kt=It(Oe);return Kt.then(function(){var Pr=Ae.state.loadedKeys,qt=(0,lt.L0)(Pr,pe);vr==null||vr(qt,{event:"load",node:Oe}),Ae.setUncontrolledState({loadedKeys:qt}),Ae.setState(function(zr){return{loadingKeys:(0,lt._5)(zr.loadingKeys,pe)}}),mt()}).catch(function(Pr){if(Ae.setState(function(zr){return{loadingKeys:(0,lt._5)(zr.loadingKeys,pe)}}),Ae.loadingRetryTimes[pe]=(Ae.loadingRetryTimes[pe]||0)+1,Ae.loadingRetryTimes[pe]>=Ne){var qt=Ae.state.loadedKeys;(0,se.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Ae.setUncontrolledState({loadedKeys:(0,lt.L0)(qt,pe)}),mt()}gt(Pr)}),{loadingKeys:(0,lt.L0)(kt,pe)}})});return Le.catch(function(){}),Le}}),(0,ee.Z)((0,z.Z)(Ae),"onNodeMouseEnter",function(Oe,Se){var pe=Ae.props.onMouseEnter;pe==null||pe({event:Oe,node:Se})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeMouseLeave",function(Oe,Se){var pe=Ae.props.onMouseLeave;pe==null||pe({event:Oe,node:Se})}),(0,ee.Z)((0,z.Z)(Ae),"onNodeContextMenu",function(Oe,Se){var pe=Ae.props.onRightClick;pe&&(Oe.preventDefault(),pe({event:Oe,node:Se}))}),(0,ee.Z)((0,z.Z)(Ae),"onFocus",function(){var Oe=Ae.props.onFocus;Ae.setState({focused:!0});for(var Se=arguments.length,pe=new Array(Se),Be=0;Be<Se;Be++)pe[Be]=arguments[Be];Oe==null||Oe.apply(void 0,pe)}),(0,ee.Z)((0,z.Z)(Ae),"onBlur",function(){var Oe=Ae.props.onBlur;Ae.setState({focused:!1}),Ae.onActiveChange(null);for(var Se=arguments.length,pe=new Array(Se),Be=0;Be<Se;Be++)pe[Be]=arguments[Be];Oe==null||Oe.apply(void 0,pe)}),(0,ee.Z)((0,z.Z)(Ae),"getTreeNodeRequiredProps",function(){var Oe=Ae.state,Se=Oe.expandedKeys,pe=Oe.selectedKeys,Be=Oe.loadedKeys,$e=Oe.loadingKeys,Le=Oe.checkedKeys,mt=Oe.halfCheckedKeys,gt=Oe.dragOverNodeKey,wt=Oe.dropPosition,bt=Oe.keyEntities;return{expandedKeys:Se||[],selectedKeys:pe||[],loadedKeys:Be||[],loadingKeys:$e||[],checkedKeys:Le||[],halfCheckedKeys:mt||[],dragOverNodeKey:gt,dropPosition:wt,keyEntities:bt}}),(0,ee.Z)((0,z.Z)(Ae),"setExpandedKeys",function(Oe){var Se=Ae.state,pe=Se.treeData,Be=Se.fieldNames,$e=(0,De.oH)(pe,Oe,Be);Ae.setUncontrolledState({expandedKeys:Oe,flattenNodes:$e},!0)}),(0,ee.Z)((0,z.Z)(Ae),"onNodeExpand",function(Oe,Se){var pe=Ae.state.expandedKeys,Be=Ae.state,$e=Be.listChanging,Le=Be.fieldNames,mt=Ae.props,gt=mt.onExpand,wt=mt.loadData,bt=Se.expanded,yt=Se[Le.key];if(!$e){var Et=pe.includes(yt),kt=!bt;if((0,se.ZP)(bt&&Et||!bt&&!Et,"Expand state not sync with index check"),pe=kt?(0,lt.L0)(pe,yt):(0,lt._5)(pe,yt),Ae.setExpandedKeys(pe),gt==null||gt(pe,{node:Se,expanded:kt,nativeEvent:Oe.nativeEvent}),kt&&wt){var jt=Ae.onNodeLoad(Se);jt&&jt.then(function(){var It=(0,De.oH)(Ae.state.treeData,pe,Le);Ae.setUncontrolledState({flattenNodes:It})}).catch(function(){var It=Ae.state.expandedKeys,vr=(0,lt._5)(It,yt);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(Oe){var Se=Ae.state.activeKey,pe=Ae.props,Be=pe.onActiveChange,$e=pe.itemScrollOffset,Le=$e===void 0?0:$e;Se!==Oe&&(Ae.setState({activeKey:Oe}),Oe!==null&&Ae.scrollTo({key:Oe,offset:Le}),Be==null||Be(Oe))}),(0,ee.Z)((0,z.Z)(Ae),"getActiveItem",function(){var Oe=Ae.state,Se=Oe.activeKey,pe=Oe.flattenNodes;return Se===null?null:pe.find(function(Be){var $e=Be.key;return $e===Se})||null}),(0,ee.Z)((0,z.Z)(Ae),"offsetActiveKey",function(Oe){var Se=Ae.state,pe=Se.flattenNodes,Be=Se.activeKey,$e=pe.findIndex(function(gt){var wt=gt.key;return wt===Be});$e===-1&&Oe<0&&($e=pe.length),$e=($e+Oe+pe.length)%pe.length;var Le=pe[$e];if(Le){var mt=Le.key;Ae.onActiveChange(mt)}else Ae.onActiveChange(null)}),(0,ee.Z)((0,z.Z)(Ae),"onKeyDown",function(Oe){var Se=Ae.state,pe=Se.activeKey,Be=Se.expandedKeys,$e=Se.checkedKeys,Le=Se.fieldNames,mt=Ae.props,gt=mt.onKeyDown,wt=mt.checkable,bt=mt.selectable;switch(Oe.which){case ne.Z.UP:{Ae.offsetActiveKey(-1),Oe.preventDefault();break}case ne.Z.DOWN:{Ae.offsetActiveKey(1),Oe.preventDefault();break}}var yt=Ae.getActiveItem();if(yt&&yt.data){var Et=Ae.getTreeNodeRequiredProps(),kt=yt.data.isLeaf===!1||!!(yt.data[Le.children]||[]).length,jt=(0,De.F)((0,y.Z)((0,y.Z)({},(0,De.H8)(pe,Et)),{},{data:yt.data,active:!0}));switch(Oe.which){case ne.Z.LEFT:{kt&&Be.includes(pe)?Ae.onNodeExpand({},jt):yt.parent&&Ae.onActiveChange(yt.parent.key),Oe.preventDefault();break}case ne.Z.RIGHT:{kt&&!Be.includes(pe)?Ae.onNodeExpand({},jt):yt.children&&yt.children.length&&Ae.onActiveChange(yt.children[0].key),Oe.preventDefault();break}case ne.Z.ENTER:case ne.Z.SPACE:{wt&&!jt.disabled&&jt.checkable!==!1&&!jt.disableCheckbox?Ae.onNodeCheck({},jt,!$e.includes(pe)):!wt&&bt&&!jt.disabled&&jt.selectable!==!1&&Ae.onNodeSelect({},jt);break}}}gt==null||gt(Oe)}),(0,ee.Z)((0,z.Z)(Ae),"setUncontrolledState",function(Oe){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Ae.destroyed){var Be=!1,$e=!0,Le={};Object.keys(Oe).forEach(function(mt){if(Ae.props.hasOwnProperty(mt)){$e=!1;return}Be=!0,Le[mt]=Oe[mt]}),Be&&(!Se||$e)&&Ae.setState((0,y.Z)((0,y.Z)({},Le),pe))}}),(0,ee.Z)((0,z.Z)(Ae),"scrollTo",function(Oe){Ae.listRef.current.scrollTo(Oe)}),Ae}return(0,x.Z)(rt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Pe=this.props,Ue=Pe.activeKey,ot=Pe.itemScrollOffset,Oe=ot===void 0?0:ot;Ue!==void 0&&Ue!==this.state.activeKey&&(this.setState({activeKey:Ue}),Ue!==null&&this.scrollTo({key:Ue,offset:Oe}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var Pe=this.state,Ue=Pe.focused,ot=Pe.flattenNodes,Oe=Pe.keyEntities,Se=Pe.draggingNodeKey,pe=Pe.activeKey,Be=Pe.dropLevelOffset,$e=Pe.dropContainerKey,Le=Pe.dropTargetKey,mt=Pe.dropPosition,gt=Pe.dragOverNodeKey,wt=Pe.indent,bt=this.props,yt=bt.prefixCls,Et=bt.className,kt=bt.style,jt=bt.showLine,It=bt.focusable,vr=bt.tabIndex,Kt=vr===void 0?0:vr,Pr=bt.selectable,qt=bt.showIcon,zr=bt.icon,Vr=bt.switcherIcon,Xr=bt.draggable,pn=bt.checkable,nn=bt.checkStrictly,Mr=bt.disabled,fn=bt.motion,dn=bt.loadData,Lr=bt.filterTreeNode,Ir=bt.height,Mt=bt.itemHeight,Lt=bt.scrollWidth,At=bt.virtual,$t=bt.titleRender,cr=bt.dropIndicatorRender,mr=bt.onContextMenu,Sr=bt.onScroll,Tr=bt.direction,br=bt.rootClassName,Rr=bt.rootStyle,Ur=(0,te.Z)(this.props,{aria:!0,data:!0}),Kr;Xr&&((0,Ct.Z)(Xr)==="object"?Kr=Xr:typeof Xr=="function"?Kr={nodeDraggable:Xr}:Kr={});var sr={prefixCls:yt,selectable:Pr,showIcon:qt,icon:zr,switcherIcon:Vr,draggable:Kr,draggingNodeKey:Se,checkable:pn,checkStrictly:nn,disabled:Mr,keyEntities:Oe,dropLevelOffset:Be,dropContainerKey:$e,dropTargetKey:Le,dropPosition:mt,dragOverNodeKey:gt,indent:wt,direction:Tr,dropIndicatorRender:cr,loadData:dn,filterTreeNode:Lr,titleRender:$t,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return ue.createElement(fe.k.Provider,{value:sr},ue.createElement("div",{className:E()(yt,Et,br,(0,ee.Z)((0,ee.Z)((0,ee.Z)({},"".concat(yt,"-show-line"),jt),"".concat(yt,"-focused"),Ue),"".concat(yt,"-active-focused"),pe!==null)),style:Rr},ue.createElement(tt,(0,ze.Z)({ref:this.listRef,prefixCls:yt,style:kt,data:ot,disabled:Mr,selectable:Pr,checkable:!!pn,motion:fn,dragging:Se!==null,height:Ir,itemHeight:Mt,virtual:At,focusable:It,focused:Ue,tabIndex:Kt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:mr,onScroll:Sr,scrollWidth:Lt},this.getTreeNodeRequiredProps(),Ur))))}}],[{key:"getDerivedStateFromProps",value:function(Pe,Ue){var ot=Ue.prevProps,Oe={prevProps:Pe};function Se(Kt){return!ot&&Pe.hasOwnProperty(Kt)||ot&&ot[Kt]!==Pe[Kt]}var pe,Be=Ue.fieldNames;if(Se("fieldNames")&&(Be=(0,De.w$)(Pe.fieldNames),Oe.fieldNames=Be),Se("treeData")?pe=Pe.treeData:Se("children")&&((0,se.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),pe=(0,De.zn)(Pe.children)),pe){Oe.treeData=pe;var $e=(0,De.I8)(pe,{fieldNames:Be});Oe.keyEntities=(0,y.Z)((0,ee.Z)({},We,at),$e.keyEntities)}var Le=Oe.keyEntities||Ue.keyEntities;if(Se("expandedKeys")||ot&&Se("autoExpandParent"))Oe.expandedKeys=Pe.autoExpandParent||!ot&&Pe.defaultExpandParent?(0,lt.r7)(Pe.expandedKeys,Le):Pe.expandedKeys;else if(!ot&&Pe.defaultExpandAll){var mt=(0,y.Z)({},Le);delete mt[We];var gt=[];Object.keys(mt).forEach(function(Kt){var Pr=mt[Kt];Pr.children&&Pr.children.length&&gt.push(Pr.key)}),Oe.expandedKeys=gt}else!ot&&Pe.defaultExpandedKeys&&(Oe.expandedKeys=Pe.autoExpandParent||Pe.defaultExpandParent?(0,lt.r7)(Pe.defaultExpandedKeys,Le):Pe.defaultExpandedKeys);if(Oe.expandedKeys||delete Oe.expandedKeys,pe||Oe.expandedKeys){var wt=(0,De.oH)(pe||Ue.treeData,Oe.expandedKeys||Ue.expandedKeys,Be);Oe.flattenNodes=wt}if(Pe.selectable&&(Se("selectedKeys")?Oe.selectedKeys=(0,lt.BT)(Pe.selectedKeys,Pe):!ot&&Pe.defaultSelectedKeys&&(Oe.selectedKeys=(0,lt.BT)(Pe.defaultSelectedKeys,Pe))),Pe.checkable){var bt;if(Se("checkedKeys")?bt=(0,lt.E6)(Pe.checkedKeys)||{}:!ot&&Pe.defaultCheckedKeys?bt=(0,lt.E6)(Pe.defaultCheckedKeys)||{}:pe&&(bt=(0,lt.E6)(Pe.checkedKeys)||{checkedKeys:Ue.checkedKeys,halfCheckedKeys:Ue.halfCheckedKeys}),bt){var yt=bt,Et=yt.checkedKeys,kt=Et===void 0?[]:Et,jt=yt.halfCheckedKeys,It=jt===void 0?[]:jt;if(!Pe.checkStrictly){var vr=(0,st.S)(kt,!0,Le);kt=vr.checkedKeys,It=vr.halfCheckedKeys}Oe.checkedKeys=kt,Oe.halfCheckedKeys=It}}return Se("loadedKeys")&&(Oe.loadedKeys=Pe.loadedKeys),Oe}}]),rt}(ue.Component);(0,ee.Z)(Ge,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ve,allowDrop:function(){return!0},expandAction:!1}),(0,ee.Z)(Ge,"TreeNode",ce.Z);var Me=Ge,Ke=Me},82661:function(ur,Zt,Je){"use strict";Je.d(Zt,{BT:function(){return ue},E6:function(){return ve},L0:function(){return ee},OM:function(){return se},_5:function(){return oe},r7:function(){return he},wA:function(){return E},yx:function(){return le}});var ze=Je(94480),Ct=Je(76190),y=Je(48736),Te=Je(59301),be=Je(639),x=Je(65065),z=Je(34061),ie=null;function oe(ge,xe){if(!ge)return[];var Ce=ge.slice(),je=Ce.indexOf(xe);return je>=0&&Ce.splice(je,1),Ce}function ee(ge,xe){var Ce=(ge||[]).slice();return Ce.indexOf(xe)===-1&&Ce.push(xe),Ce}function le(ge){return ge.split("-")}function E(ge,xe){var Ce=[],je=(0,x.Z)(xe,ge);function Ee(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ce.forEach(function(ye){var we=ye.key,De=ye.children;Ce.push(we),Ee(De)})}return Ee(je.children),Ce}function ne(ge){if(ge.parent){var xe=le(ge.pos);return Number(xe[xe.length-1])===ge.parent.children.length-1}return!1}function te(ge){var xe=le(ge.pos);return Number(xe[xe.length-1])===0}function se(ge,xe,Ce,je,Ee,ce,ye,we,De,Re){var ke,_e=ge.clientX,Ze=ge.clientY,Ve=ge.target.getBoundingClientRect(),Qe=Ve.top,ut=Ve.height,Ie=(Re==="rtl"?-1:1)*(((Ee==null?void 0:Ee.x)||0)-_e),We=(Ie-12)/je,it=De.filter(function(Ke){var ct;return(ct=we[Ke])===null||ct===void 0||(ct=ct.children)===null||ct===void 0?void 0:ct.length}),at=(0,x.Z)(we,Ce.eventKey);if(Ze<Qe+ut/2){var nt=ye.findIndex(function(Ke){return Ke.key===at.key}),Xe=nt<=0?0:nt-1,et=ye[Xe].key;at=(0,x.Z)(we,et)}var Ye=at.key,dt=at,tt=at.key,lt=0,st=0;if(!it.includes(Ye))for(var He=0;He<We&&ne(at);He+=1)at=at.parent,st+=1;var Ne=xe.data,Ge=at.node,Me=!0;return te(at)&&at.level===0&&Ze<Qe+ut/2&&ce({dragNode:Ne,dropNode:Ge,dropPosition:-1})&&at.key===Ce.eventKey?lt=-1:(dt.children||[]).length&&it.includes(tt)?ce({dragNode:Ne,dropNode:Ge,dropPosition:0})?lt=0:Me=!1:st===0?We>-1.5?ce({dragNode:Ne,dropNode:Ge,dropPosition:1})?lt=1:Me=!1:ce({dragNode:Ne,dropNode:Ge,dropPosition:0})?lt=0:ce({dragNode:Ne,dropNode:Ge,dropPosition:1})?lt=1:Me=!1:ce({dragNode:Ne,dropNode:Ge,dropPosition:1})?lt=1:Me=!1,{dropPosition:lt,dropLevelOffset:st,dropTargetKey:at.key,dropTargetPos:at.pos,dragOverNodeKey:tt,dropContainerKey:lt===0?null:((ke=at.parent)===null||ke===void 0?void 0:ke.key)||null,dropAllowed:Me}}function ue(ge,xe){if(ge){var Ce=xe.multiple;return Ce?ge.slice():ge.length?[ge[0]]:ge}}var fe=function(xe){return xe};function me(ge,xe){if(!ge)return[];var Ce=xe||{},je=Ce.processProps,Ee=je===void 0?fe:je,ce=Array.isArray(ge)?ge:[ge];return ce.map(function(ye){var we=ye.children,De=_objectWithoutProperties(ye,ie),Re=me(we,xe);return React.createElement(TreeNode,_extends({key:De.key},Ee(De)),Re)})}function ve(ge){if(!ge)return null;var xe;if(Array.isArray(ge))xe={checkedKeys:ge,halfCheckedKeys:void 0};else if((0,Ct.Z)(ge)==="object")xe={checkedKeys:ge.checked||void 0,halfCheckedKeys:ge.halfChecked||void 0};else return(0,y.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return xe}function he(ge,xe){var Ce=new Set;function je(Ee){if(!Ce.has(Ee)){var ce=(0,x.Z)(xe,Ee);if(ce){Ce.add(Ee);var ye=ce.parent,we=ce.node;we.disabled||ye&&je(ye.key)}}}return(ge||[]).forEach(function(Ee){je(Ee)}),(0,ze.Z)(Ce)}},34643:function(ur,Zt,Je){"use strict";Je.d(Zt,{S:function(){return z}});var ze=Je(48736),Ct=Je(65065);function y(ie,oe){var ee=new Set;return ie.forEach(function(le){oe.has(le)||ee.add(le)}),ee}function Te(ie){var oe=ie||{},ee=oe.disabled,le=oe.disableCheckbox,E=oe.checkable;return!!(ee||le)||E===!1}function be(ie,oe,ee,le){for(var E=new Set(ie),ne=new Set,te=0;te<=ee;te+=1){var se=oe.get(te)||new Set;se.forEach(function(ve){var he=ve.key,ge=ve.node,xe=ve.children,Ce=xe===void 0?[]:xe;E.has(he)&&!le(ge)&&Ce.filter(function(je){return!le(je.node)}).forEach(function(je){E.add(je.key)})})}for(var ue=new Set,fe=ee;fe>=0;fe-=1){var me=oe.get(fe)||new Set;me.forEach(function(ve){var he=ve.parent,ge=ve.node;if(!(le(ge)||!ve.parent||ue.has(ve.parent.key))){if(le(ve.parent.node)){ue.add(he.key);return}var xe=!0,Ce=!1;(he.children||[]).filter(function(je){return!le(je.node)}).forEach(function(je){var Ee=je.key,ce=E.has(Ee);xe&&!ce&&(xe=!1),!Ce&&(ce||ne.has(Ee))&&(Ce=!0)}),xe&&E.add(he.key),Ce&&ne.add(he.key),ue.add(he.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(y(ne,E))}}function x(ie,oe,ee,le,E){for(var ne=new Set(ie),te=new Set(oe),se=0;se<=le;se+=1){var ue=ee.get(se)||new Set;ue.forEach(function(he){var ge=he.key,xe=he.node,Ce=he.children,je=Ce===void 0?[]:Ce;!ne.has(ge)&&!te.has(ge)&&!E(xe)&&je.filter(function(Ee){return!E(Ee.node)}).forEach(function(Ee){ne.delete(Ee.key)})})}te=new Set;for(var fe=new Set,me=le;me>=0;me-=1){var ve=ee.get(me)||new Set;ve.forEach(function(he){var ge=he.parent,xe=he.node;if(!(E(xe)||!he.parent||fe.has(he.parent.key))){if(E(he.parent.node)){fe.add(ge.key);return}var Ce=!0,je=!1;(ge.children||[]).filter(function(Ee){return!E(Ee.node)}).forEach(function(Ee){var ce=Ee.key,ye=ne.has(ce);Ce&&!ye&&(Ce=!1),!je&&(ye||te.has(ce))&&(je=!0)}),Ce||ne.delete(ge.key),je&&te.add(ge.key),fe.add(ge.key)}})}return{checkedKeys:Array.from(ne),halfCheckedKeys:Array.from(y(te,ne))}}function z(ie,oe,ee,le){var E=[],ne;le?ne=le:ne=Te;var te=new Set(ie.filter(function(me){var ve=!!(0,Ct.Z)(ee,me);return ve||E.push(me),ve})),se=new Map,ue=0;Object.keys(ee).forEach(function(me){var ve=ee[me],he=ve.level,ge=se.get(he);ge||(ge=new Set,se.set(he,ge)),ge.add(ve),ue=Math.max(ue,he)}),(0,ze.ZP)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(me){return"'".concat(me,"'")}).join(", ")));var fe;return oe===!0?fe=be(te,se,ue,ne):fe=x(te,oe.halfCheckedKeys,se,ue,ne),fe}},65065:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return ze}});function ze(Ct,y){return Ct[y]}},34061:function(ur,Zt,Je){"use strict";Je.d(Zt,{F:function(){return he},H8:function(){return ve},I8:function(){return me},km:function(){return E},oH:function(){return ue},w$:function(){return ne},zn:function(){return se}});var ze=Je(76190),Ct=Je(94480),y=Je(33885),Te=Je(75931),be=Je(11592),x=Je(2738),z=Je(48736),ie=Je(65065),oe=["children"];function ee(ge,xe){return"".concat(ge,"-").concat(xe)}function le(ge){return ge&&ge.type&&ge.type.isTreeNode}function E(ge,xe){return ge!=null?ge:xe}function ne(ge){var xe=ge||{},Ce=xe.title,je=xe._title,Ee=xe.key,ce=xe.children,ye=Ce||"title";return{title:ye,_title:je||[ye],key:Ee||"key",children:ce||"children"}}function te(ge,xe){var Ce=new Map;function je(Ee){var ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ee||[]).forEach(function(ye){var we=ye[xe.key],De=ye[xe.children];warning(we!=null,"Tree node must have a certain key: [".concat(ce).concat(we,"]"));var Re=String(we);warning(!Ce.has(Re)||we===null||we===void 0,"Same 'key' exist in the Tree: ".concat(Re)),Ce.set(Re,!0),je(De,"".concat(ce).concat(Re," > "))})}je(ge)}function se(ge){function xe(Ce){var je=(0,be.Z)(Ce);return je.map(function(Ee){if(!le(Ee))return(0,z.ZP)(!Ee,"Tree/TreeNode can only accept TreeNode as children."),null;var ce=Ee.key,ye=Ee.props,we=ye.children,De=(0,Te.Z)(ye,oe),Re=(0,y.Z)({key:ce},De),ke=xe(we);return ke.length&&(Re.children=ke),Re}).filter(function(Ee){return Ee})}return xe(ge)}function ue(ge,xe,Ce){var je=ne(Ce),Ee=je._title,ce=je.key,ye=je.children,we=new Set(xe===!0?[]:xe),De=[];function Re(ke){var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ke.map(function(Ze,Ve){for(var Qe=ee(_e?_e.pos:"0",Ve),ut=E(Ze[ce],Qe),Ie,We=0;We<Ee.length;We+=1){var it=Ee[We];if(Ze[it]!==void 0){Ie=Ze[it];break}}var at=Object.assign((0,x.Z)(Ze,[].concat((0,Ct.Z)(Ee),[ce,ye])),{title:Ie,key:ut,parent:_e,pos:Qe,children:null,data:Ze,isStart:[].concat((0,Ct.Z)(_e?_e.isStart:[]),[Ve===0]),isEnd:[].concat((0,Ct.Z)(_e?_e.isEnd:[]),[Ve===ke.length-1])});return De.push(at),xe===!0||we.has(ut)?at.children=Re(Ze[ye]||[],at):at.children=[],at})}return Re(ge),De}function fe(ge,xe,Ce){var je={};(0,ze.Z)(Ce)==="object"?je=Ce:je={externalGetKey:Ce},je=je||{};var Ee=je,ce=Ee.childrenPropName,ye=Ee.externalGetKey,we=Ee.fieldNames,De=ne(we),Re=De.key,ke=De.children,_e=ce||ke,Ze;ye?typeof ye=="string"?Ze=function(ut){return ut[ye]}:typeof ye=="function"&&(Ze=function(ut){return ye(ut)}):Ze=function(ut,Ie){return E(ut[Re],Ie)};function Ve(Qe,ut,Ie,We){var it=Qe?Qe[_e]:ge,at=Qe?ee(Ie.pos,ut):"0",nt=Qe?[].concat((0,Ct.Z)(We),[Qe]):[];if(Qe){var Xe=Ze(Qe,at),et={node:Qe,index:ut,pos:at,key:Xe,parentPos:Ie.node?Ie.pos:null,level:Ie.level+1,nodes:nt};xe(et)}it&&it.forEach(function(Ye,dt){Ve(Ye,dt,{node:Qe,pos:at,level:Ie?Ie.level+1:-1},nt)})}Ve(null)}function me(ge){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=xe.initWrapper,je=xe.processEntity,Ee=xe.onProcessFinished,ce=xe.externalGetKey,ye=xe.childrenPropName,we=xe.fieldNames,De=arguments.length>2?arguments[2]:void 0,Re=ce||De,ke={},_e={},Ze={posEntities:ke,keyEntities:_e};return Ce&&(Ze=Ce(Ze)||Ze),fe(ge,function(Ve){var Qe=Ve.node,ut=Ve.index,Ie=Ve.pos,We=Ve.key,it=Ve.parentPos,at=Ve.level,nt=Ve.nodes,Xe={node:Qe,nodes:nt,index:ut,key:We,pos:Ie,level:at},et=E(We,Ie);ke[Ie]=Xe,_e[et]=Xe,Xe.parent=ke[it],Xe.parent&&(Xe.parent.children=Xe.parent.children||[],Xe.parent.children.push(Xe)),je&&je(Xe,Ze)},{externalGetKey:Re,childrenPropName:ye,fieldNames:we}),Ee&&Ee(Ze),Ze}function ve(ge,xe){var Ce=xe.expandedKeys,je=xe.selectedKeys,Ee=xe.loadedKeys,ce=xe.loadingKeys,ye=xe.checkedKeys,we=xe.halfCheckedKeys,De=xe.dragOverNodeKey,Re=xe.dropPosition,ke=xe.keyEntities,_e=(0,ie.Z)(ke,ge),Ze={eventKey:ge,expanded:Ce.indexOf(ge)!==-1,selected:je.indexOf(ge)!==-1,loaded:Ee.indexOf(ge)!==-1,loading:ce.indexOf(ge)!==-1,checked:ye.indexOf(ge)!==-1,halfChecked:we.indexOf(ge)!==-1,pos:String(_e?_e.pos:""),dragOver:De===ge&&Re===0,dragOverGapTop:De===ge&&Re===-1,dragOverGapBottom:De===ge&&Re===1};return Ze}function he(ge){var xe=ge.data,Ce=ge.expanded,je=ge.selected,Ee=ge.checked,ce=ge.loaded,ye=ge.loading,we=ge.halfChecked,De=ge.dragOver,Re=ge.dragOverGapTop,ke=ge.dragOverGapBottom,_e=ge.pos,Ze=ge.active,Ve=ge.eventKey,Qe=(0,y.Z)((0,y.Z)({},xe),{},{expanded:Ce,selected:je,checked:Ee,loaded:ce,loading:ye,halfChecked:we,dragOver:De,dragOverGapTop:Re,dragOverGapBottom:ke,pos:_e,active:Ze,key:Ve});return"props"in Qe||Object.defineProperty(Qe,"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`."),ge}}),Qe}},90472:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return Ve}});var ze=Je(54476),Ct=Je(67732),y=Je(83652),Te=Je(31226),be=Je(42403),x=Je(158),z=Je(20068),ie=Je(59301),oe=Je(33885),ee=Je(75931),le=Je(76190),E=Je(75044),ne=Je(3202),te=Je(94480),se=Je(92310),ue=Je.n(se),fe=Je(26112),me=Je(48736),ve=function(Qe,ut){if(Qe&&ut){var Ie=Array.isArray(ut)?ut:ut.split(","),We=Qe.name||"",it=Qe.type||"",at=it.replace(/\/.*$/,"");return Ie.some(function(nt){var Xe=nt.trim();if(/^\*(\/\*)?$/.test(nt))return!0;if(Xe.charAt(0)==="."){var et=We.toLowerCase(),Ye=Xe.toLowerCase(),dt=[Ye];return(Ye===".jpg"||Ye===".jpeg")&&(dt=[".jpg",".jpeg"]),dt.some(function(tt){return et.endsWith(tt)})}return/\/\*$/.test(Xe)?at===Xe.replace(/\/.*$/,""):it===Xe?!0:/^\w+$/.test(Xe)?((0,me.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xe,"'.Skip for check.")),!0):!1})}return!0};function he(Qe,ut){var Ie="cannot ".concat(Qe.method," ").concat(Qe.action," ").concat(ut.status,"'"),We=new Error(Ie);return We.status=ut.status,We.method=Qe.method,We.url=Qe.action,We}function ge(Qe){var ut=Qe.responseText||Qe.response;if(!ut)return ut;try{return JSON.parse(ut)}catch(Ie){return ut}}function xe(Qe){var ut=new XMLHttpRequest;Qe.onProgress&&ut.upload&&(ut.upload.onprogress=function(at){at.total>0&&(at.percent=at.loaded/at.total*100),Qe.onProgress(at)});var Ie=new FormData;Qe.data&&Object.keys(Qe.data).forEach(function(it){var at=Qe.data[it];if(Array.isArray(at)){at.forEach(function(nt){Ie.append("".concat(it,"[]"),nt)});return}Ie.append(it,at)}),Qe.file instanceof Blob?Ie.append(Qe.filename,Qe.file,Qe.file.name):Ie.append(Qe.filename,Qe.file),ut.onerror=function(at){Qe.onError(at)},ut.onload=function(){return ut.status<200||ut.status>=300?Qe.onError(he(Qe,ut),ge(ut)):Qe.onSuccess(ge(ut),ut)},ut.open(Qe.method,Qe.action,!0),Qe.withCredentials&&"withCredentials"in ut&&(ut.withCredentials=!0);var We=Qe.headers||{};return We["X-Requested-With"]!==null&&ut.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(We).forEach(function(it){We[it]!==null&&ut.setRequestHeader(it,We[it])}),ut.send(Ie),{abort:function(){ut.abort()}}}var Ce=function(){var Qe=(0,ne.Z)((0,E.Z)().mark(function ut(Ie,We){var it,at,nt,Xe,et,Ye,dt,tt;return(0,E.Z)().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:Ye=function(){return Ye=(0,ne.Z)((0,E.Z)().mark(function Ne(Ge){return(0,E.Z)().wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.abrupt("return",new Promise(function(ct){Ge.file(function(pt){We(pt)?(Ge.fullPath&&!pt.webkitRelativePath&&(Object.defineProperties(pt,{webkitRelativePath:{writable:!0}}),pt.webkitRelativePath=Ge.fullPath.replace(/^\//,""),Object.defineProperties(pt,{webkitRelativePath:{writable:!1}})),ct(pt)):ct(null)})}));case 1:case"end":return Ke.stop()}},Ne)})),Ye.apply(this,arguments)},et=function(Ne){return Ye.apply(this,arguments)},Xe=function(){return Xe=(0,ne.Z)((0,E.Z)().mark(function Ne(Ge){var Me,Ke,ct,pt,rt;return(0,E.Z)().wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:Me=Ge.createReader(),Ke=[];case 2:return Pe.next=5,new Promise(function(Ue){Me.readEntries(Ue,function(){return Ue([])})});case 5:if(ct=Pe.sent,pt=ct.length,pt){Pe.next=9;break}return Pe.abrupt("break",12);case 9:for(rt=0;rt<pt;rt++)Ke.push(ct[rt]);Pe.next=2;break;case 12:return Pe.abrupt("return",Ke);case 13:case"end":return Pe.stop()}},Ne)})),Xe.apply(this,arguments)},nt=function(Ne){return Xe.apply(this,arguments)},it=[],at=[],Ie.forEach(function(He){return at.push(He.webkitGetAsEntry())}),dt=function(){var He=(0,ne.Z)((0,E.Z)().mark(function Ne(Ge,Me){var Ke,ct;return(0,E.Z)().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(Ge){rt.next=2;break}return rt.abrupt("return");case 2:if(Ge.path=Me||"",!Ge.isFile){rt.next=10;break}return rt.next=6,et(Ge);case 6:Ke=rt.sent,Ke&&it.push(Ke),rt.next=15;break;case 10:if(!Ge.isDirectory){rt.next=15;break}return rt.next=13,nt(Ge);case 13:ct=rt.sent,at.push.apply(at,(0,te.Z)(ct));case 15:case"end":return rt.stop()}},Ne)}));return function(Ge,Me){return He.apply(this,arguments)}}(),tt=0;case 9:if(!(tt<at.length)){st.next=15;break}return st.next=12,dt(at[tt]);case 12:tt++,st.next=9;break;case 15:return st.abrupt("return",it);case 16:case"end":return st.stop()}},ut)}));return function(Ie,We){return Qe.apply(this,arguments)}}(),je=Ce,Ee=+new Date,ce=0;function ye(){return"rc-upload-".concat(Ee,"-").concat(++ce)}var we=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],De=function(Qe){(0,be.Z)(Ie,Qe);var ut=(0,x.Z)(Ie);function Ie(){var We;(0,Ct.Z)(this,Ie);for(var it=arguments.length,at=new Array(it),nt=0;nt<it;nt++)at[nt]=arguments[nt];return We=ut.call.apply(ut,[this].concat(at)),(0,z.Z)((0,Te.Z)(We),"state",{uid:ye()}),(0,z.Z)((0,Te.Z)(We),"reqs",{}),(0,z.Z)((0,Te.Z)(We),"fileInput",void 0),(0,z.Z)((0,Te.Z)(We),"_isMounted",void 0),(0,z.Z)((0,Te.Z)(We),"onChange",function(Xe){var et=We.props,Ye=et.accept,dt=et.directory,tt=Xe.target.files,lt=(0,te.Z)(tt).filter(function(st){return!dt||ve(st,Ye)});We.uploadFiles(lt),We.reset()}),(0,z.Z)((0,Te.Z)(We),"onClick",function(Xe){var et=We.fileInput;if(et){var Ye=Xe.target,dt=We.props.onClick;if(Ye&&Ye.tagName==="BUTTON"){var tt=et.parentNode;tt.focus(),Ye.blur()}et.click(),dt&&dt(Xe)}}),(0,z.Z)((0,Te.Z)(We),"onKeyDown",function(Xe){Xe.key==="Enter"&&We.onClick(Xe)}),(0,z.Z)((0,Te.Z)(We),"onFileDrop",function(){var Xe=(0,ne.Z)((0,E.Z)().mark(function et(Ye){var dt,tt,lt;return(0,E.Z)().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(dt=We.props.multiple,Ye.preventDefault(),Ye.type!=="dragover"){He.next=4;break}return He.abrupt("return");case 4:if(!We.props.directory){He.next=11;break}return He.next=7,je(Array.prototype.slice.call(Ye.dataTransfer.items),function(Ne){return ve(Ne,We.props.accept)});case 7:tt=He.sent,We.uploadFiles(tt),He.next=14;break;case 11:lt=(0,te.Z)(Ye.dataTransfer.files).filter(function(Ne){return ve(Ne,We.props.accept)}),dt===!1&&(lt=lt.slice(0,1)),We.uploadFiles(lt);case 14:case"end":return He.stop()}},et)}));return function(et){return Xe.apply(this,arguments)}}()),(0,z.Z)((0,Te.Z)(We),"uploadFiles",function(Xe){var et=(0,te.Z)(Xe),Ye=et.map(function(dt){return dt.uid=ye(),We.processFile(dt,et)});Promise.all(Ye).then(function(dt){var tt=We.props.onBatchStart;tt==null||tt(dt.map(function(lt){var st=lt.origin,He=lt.parsedFile;return{file:st,parsedFile:He}})),dt.filter(function(lt){return lt.parsedFile!==null}).forEach(function(lt){We.post(lt)})})}),(0,z.Z)((0,Te.Z)(We),"processFile",function(){var Xe=(0,ne.Z)((0,E.Z)().mark(function et(Ye,dt){var tt,lt,st,He,Ne,Ge,Me,Ke,ct;return(0,E.Z)().wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:if(tt=We.props.beforeUpload,lt=Ye,!tt){rt.next=14;break}return rt.prev=3,rt.next=6,tt(Ye,dt);case 6:lt=rt.sent,rt.next=12;break;case 9:rt.prev=9,rt.t0=rt.catch(3),lt=!1;case 12:if(lt!==!1){rt.next=14;break}return rt.abrupt("return",{origin:Ye,parsedFile:null,action:null,data:null});case 14:if(st=We.props.action,typeof st!="function"){rt.next=21;break}return rt.next=18,st(Ye);case 18:He=rt.sent,rt.next=22;break;case 21:He=st;case 22:if(Ne=We.props.data,typeof Ne!="function"){rt.next=29;break}return rt.next=26,Ne(Ye);case 26:Ge=rt.sent,rt.next=30;break;case 29:Ge=Ne;case 30:return Me=((0,le.Z)(lt)==="object"||typeof lt=="string")&&lt?lt:Ye,Me instanceof File?Ke=Me:Ke=new File([Me],Ye.name,{type:Ye.type}),ct=Ke,ct.uid=Ye.uid,rt.abrupt("return",{origin:Ye,data:Ge,parsedFile:ct,action:He});case 35:case"end":return rt.stop()}},et,null,[[3,9]])}));return function(et,Ye){return Xe.apply(this,arguments)}}()),(0,z.Z)((0,Te.Z)(We),"saveFileInput",function(Xe){We.fileInput=Xe}),We}return(0,y.Z)(Ie,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(it){var at=this,nt=it.data,Xe=it.origin,et=it.action,Ye=it.parsedFile;if(this._isMounted){var dt=this.props,tt=dt.onStart,lt=dt.customRequest,st=dt.name,He=dt.headers,Ne=dt.withCredentials,Ge=dt.method,Me=Xe.uid,Ke=lt||xe,ct={action:et,filename:st,data:nt,file:Ye,headers:He,withCredentials:Ne,method:Ge||"post",onProgress:function(rt){var Ae=at.props.onProgress;Ae==null||Ae(rt,Ye)},onSuccess:function(rt,Ae){var Pe=at.props.onSuccess;Pe==null||Pe(rt,Ye,Ae),delete at.reqs[Me]},onError:function(rt,Ae){var Pe=at.props.onError;Pe==null||Pe(rt,Ae,Ye),delete at.reqs[Me]}};tt(Xe),this.reqs[Me]=Ke(ct)}}},{key:"reset",value:function(){this.setState({uid:ye()})}},{key:"abort",value:function(it){var at=this.reqs;if(it){var nt=it.uid?it.uid:it;at[nt]&&at[nt].abort&&at[nt].abort(),delete at[nt]}else Object.keys(at).forEach(function(Xe){at[Xe]&&at[Xe].abort&&at[Xe].abort(),delete at[Xe]})}},{key:"render",value:function(){var it=this.props,at=it.component,nt=it.prefixCls,Xe=it.className,et=it.classNames,Ye=et===void 0?{}:et,dt=it.disabled,tt=it.id,lt=it.name,st=it.style,He=it.styles,Ne=He===void 0?{}:He,Ge=it.multiple,Me=it.accept,Ke=it.capture,ct=it.children,pt=it.directory,rt=it.openFileDialogOnClick,Ae=it.onMouseEnter,Pe=it.onMouseLeave,Ue=it.hasControlInside,ot=(0,ee.Z)(it,we),Oe=ue()((0,z.Z)((0,z.Z)((0,z.Z)({},nt,!0),"".concat(nt,"-disabled"),dt),Xe,Xe)),Se=pt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},pe=dt?{}:{onClick:rt?this.onClick:function(){},onKeyDown:rt?this.onKeyDown:function(){},onMouseEnter:Ae,onMouseLeave:Pe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:Ue?void 0:"0"};return ie.createElement(at,(0,ze.Z)({},pe,{className:Oe,role:Ue?void 0:"button",style:st}),ie.createElement("input",(0,ze.Z)({},(0,fe.Z)(ot,{aria:!0,data:!0}),{id:tt,name:lt,disabled:dt,type:"file",ref:this.saveFileInput,onClick:function($e){return $e.stopPropagation()},key:this.state.uid,style:(0,oe.Z)({display:"none"},Ne.input),className:Ye.input,accept:Me},Se,{multiple:Ge,onChange:this.onChange},Ke!=null?{capture:Ke}:{})),ct)}}]),Ie}(ie.Component),Re=De;function ke(){}var _e=function(Qe){(0,be.Z)(Ie,Qe);var ut=(0,x.Z)(Ie);function Ie(){var We;(0,Ct.Z)(this,Ie);for(var it=arguments.length,at=new Array(it),nt=0;nt<it;nt++)at[nt]=arguments[nt];return We=ut.call.apply(ut,[this].concat(at)),(0,z.Z)((0,Te.Z)(We),"uploader",void 0),(0,z.Z)((0,Te.Z)(We),"saveUploader",function(Xe){We.uploader=Xe}),We}return(0,y.Z)(Ie,[{key:"abort",value:function(it){this.uploader.abort(it)}},{key:"render",value:function(){return ie.createElement(Re,(0,ze.Z)({},this.props,{ref:this.saveUploader}))}}]),Ie}(ie.Component);(0,z.Z)(_e,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ke,onError:ke,onSuccess:ke,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Ze=_e,Ve=Ze},8224:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return Ct}});var ze=Je(4676);function Ct(y,Te,be,x){var z=ze.unstable_batchedUpdates?function(oe){ze.unstable_batchedUpdates(be,oe)}:be;return y!=null&&y.addEventListener&&y.addEventListener(Te,z,x),{remove:function(){y!=null&&y.removeEventListener&&y.removeEventListener(Te,z,x)}}}},24514:function(ur,Zt,Je){"use strict";Je.d(Zt,{G:function(){return Te}});var ze=Je(47273),Ct=function(x){if((0,ze.Z)()&&window.document.documentElement){var z=Array.isArray(x)?x:[x],ie=window.document.documentElement;return z.some(function(oe){return oe in ie.style})}return!1},y=function(x,z){if(!Ct(x))return!1;var ie=document.createElement("div"),oe=ie.style[x];return ie.style[x]=z,ie.style[x]!==oe};function Te(be,x){return!Array.isArray(be)&&x!==void 0?y(be,x):Ct(be)}},48911:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return Ne}});var ze=Je(54476),Ct=Je(76190),y=Je(33885),Te=Je(20068),be=Je(42978),x=Je(75931),z=Je(92310),ie=Je.n(z),oe=Je(29301),ee=Je(70425),le=Je(34280),E=Je(59301),ne=Je(4676),te=E.forwardRef(function(Ge,Me){var Ke=Ge.height,ct=Ge.offsetY,pt=Ge.offsetX,rt=Ge.children,Ae=Ge.prefixCls,Pe=Ge.onInnerResize,Ue=Ge.innerProps,ot=Ge.rtl,Oe=Ge.extra,Se={},pe={display:"flex",flexDirection:"column"};return ct!==void 0&&(Se={height:Ke,position:"relative",overflow:"hidden"},pe=(0,y.Z)((0,y.Z)({},pe),{},(0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)((0,Te.Z)({transform:"translateY(".concat(ct,"px)")},ot?"marginRight":"marginLeft",-pt),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:Se},E.createElement(oe.Z,{onResize:function($e){var Le=$e.offsetHeight;Le&&Pe&&Pe()}},E.createElement("div",(0,ze.Z)({style:pe,className:ie()((0,Te.Z)({},"".concat(Ae,"-holder-inner"),Ae)),ref:Me},Ue),rt,Oe)))});te.displayName="Filler";var se=te;function ue(Ge){var Me=Ge.children,Ke=Ge.setRef,ct=E.useCallback(function(pt){Ke(pt)},[]);return E.cloneElement(Me,{ref:ct})}function fe(Ge,Me,Ke,ct,pt,rt,Ae,Pe){var Ue=Pe.getKey;return Ge.slice(Me,Ke+1).map(function(ot,Oe){var Se=Me+Oe,pe=Ae(ot,Se,{style:{width:ct},offsetX:pt}),Be=Ue(ot);return E.createElement(ue,{key:Be,setRef:function(Le){return rt(ot,Le)}},pe)})}function me(Ge,Me,Ke,ct){var pt=Ke-Ge,rt=Me-Ke,Ae=Math.min(pt,rt)*2;if(ct<=Ae){var Pe=Math.floor(ct/2);return ct%2?Ke+Pe+1:Ke-Pe}return pt>rt?Ke-(ct-rt):Ke+(ct-pt)}function ve(Ge,Me,Ke){var ct=Ge.length,pt=Me.length,rt,Ae;if(ct===0&&pt===0)return null;ct<pt?(rt=Ge,Ae=Me):(rt=Me,Ae=Ge);var Pe={__EMPTY_ITEM__:!0};function Ue($e){return $e!==void 0?Ke($e):Pe}for(var ot=null,Oe=Math.abs(ct-pt)!==1,Se=0;Se<Ae.length;Se+=1){var pe=Ue(rt[Se]),Be=Ue(Ae[Se]);if(pe!==Be){ot=Se,Oe=Oe||pe!==Ue(Ae[Se+1]);break}}return ot===null?null:{index:ot,multiple:Oe}}function he(Ge,Me,Ke){var ct=E.useState(Ge),pt=(0,be.Z)(ct,2),rt=pt[0],Ae=pt[1],Pe=E.useState(null),Ue=(0,be.Z)(Pe,2),ot=Ue[0],Oe=Ue[1];return E.useEffect(function(){var Se=ve(rt||[],Ge||[],Me);(Se==null?void 0:Se.index)!==void 0&&(Ke==null||Ke(Se.index),Oe(Ge[Se.index])),Ae(Ge)},[Ge]),[ot]}var ge=Je(16089),xe=(typeof navigator=="undefined"?"undefined":(0,Ct.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ce=xe,je=function(Ge,Me,Ke,ct){var pt=(0,E.useRef)(!1),rt=(0,E.useRef)(null);function Ae(){clearTimeout(rt.current),pt.current=!0,rt.current=setTimeout(function(){pt.current=!1},50)}var Pe=(0,E.useRef)({top:Ge,bottom:Me,left:Ke,right:ct});return Pe.current.top=Ge,Pe.current.bottom=Me,Pe.current.left=Ke,Pe.current.right=ct,function(Ue,ot){var Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Se=Ue?ot<0&&Pe.current.left||ot>0&&Pe.current.right:ot<0&&Pe.current.top||ot>0&&Pe.current.bottom;return Oe&&Se?(clearTimeout(rt.current),pt.current=!1):(!Se||pt.current)&&Ae(),!pt.current&&Se}};function Ee(Ge,Me,Ke,ct,pt,rt,Ae){var Pe=(0,E.useRef)(0),Ue=(0,E.useRef)(null),ot=(0,E.useRef)(null),Oe=(0,E.useRef)(!1),Se=je(Me,Ke,ct,pt);function pe(wt,bt){if(ge.Z.cancel(Ue.current),!Se(!1,bt)){var yt=wt;if(!yt._virtualHandled)yt._virtualHandled=!0;else return;Pe.current+=bt,ot.current=bt,Ce||yt.preventDefault(),Ue.current=(0,ge.Z)(function(){var Et=Oe.current?10:1;Ae(Pe.current*Et,!1),Pe.current=0})}}function Be(wt,bt){Ae(bt,!0),Ce||wt.preventDefault()}var $e=(0,E.useRef)(null),Le=(0,E.useRef)(null);function mt(wt){if(Ge){ge.Z.cancel(Le.current),Le.current=(0,ge.Z)(function(){$e.current=null},2);var bt=wt.deltaX,yt=wt.deltaY,Et=wt.shiftKey,kt=bt,jt=yt;($e.current==="sx"||!$e.current&&Et&&yt&&!bt)&&(kt=yt,jt=0,$e.current="sx");var It=Math.abs(kt),vr=Math.abs(jt);$e.current===null&&($e.current=rt&&It>vr?"x":"y"),$e.current==="y"?pe(wt,jt):Be(wt,kt)}}function gt(wt){Ge&&(Oe.current=wt.detail===ot.current)}return[mt,gt]}function ce(Ge,Me,Ke,ct){var pt=E.useMemo(function(){return[new Map,[]]},[Ge,Ke.id,ct]),rt=(0,be.Z)(pt,2),Ae=rt[0],Pe=rt[1],Ue=function(Oe){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Oe,pe=Ae.get(Oe),Be=Ae.get(Se);if(pe===void 0||Be===void 0)for(var $e=Ge.length,Le=Pe.length;Le<$e;Le+=1){var mt,gt=Ge[Le],wt=Me(gt);Ae.set(wt,Le);var bt=(mt=Ke.get(wt))!==null&&mt!==void 0?mt:ct;if(Pe[Le]=(Pe[Le-1]||0)+bt,wt===Oe&&(pe=Le),wt===Se&&(Be=Le),pe!==void 0&&Be!==void 0)break}return{top:Pe[pe-1]||0,bottom:Pe[Be]}};return Ue}var ye=Je(67732),we=Je(83652),De=function(){function Ge(){(0,ye.Z)(this,Ge),(0,Te.Z)(this,"maps",void 0),(0,Te.Z)(this,"id",0),(0,Te.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,we.Z)(Ge,[{key:"set",value:function(Ke,ct){this.diffRecords.set(Ke,this.maps[Ke]),this.maps[Ke]=ct,this.id+=1}},{key:"get",value:function(Ke){return this.maps[Ke]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Ge}(),Re=De;function ke(Ge){var Me=parseFloat(Ge);return isNaN(Me)?0:Me}function _e(Ge,Me,Ke){var ct=E.useState(0),pt=(0,be.Z)(ct,2),rt=pt[0],Ae=pt[1],Pe=(0,E.useRef)(new Map),Ue=(0,E.useRef)(new Re),ot=(0,E.useRef)(0);function Oe(){ot.current+=1}function Se(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Oe();var $e=function(){var gt=!1;Pe.current.forEach(function(wt,bt){if(wt&&wt.offsetParent){var yt=wt.offsetHeight,Et=getComputedStyle(wt),kt=Et.marginTop,jt=Et.marginBottom,It=ke(kt),vr=ke(jt),Kt=yt+It+vr;Ue.current.get(bt)!==Kt&&(Ue.current.set(bt,Kt),gt=!0)}}),gt&&Ae(function(wt){return wt+1})};if(Be)$e();else{ot.current+=1;var Le=ot.current;Promise.resolve().then(function(){Le===ot.current&&$e()})}}function pe(Be,$e){var Le=Ge(Be),mt=Pe.current.get(Le);$e?(Pe.current.set(Le,$e),Se()):Pe.current.delete(Le),!mt!=!$e&&($e?Me==null||Me(Be):Ke==null||Ke(Be))}return(0,E.useEffect)(function(){return Oe},[]),[pe,Se,Ue.current,rt]}var Ze=14/15;function Ve(Ge,Me,Ke){var ct=(0,E.useRef)(!1),pt=(0,E.useRef)(0),rt=(0,E.useRef)(0),Ae=(0,E.useRef)(null),Pe=(0,E.useRef)(null),Ue,ot=function(Be){if(ct.current){var $e=Math.ceil(Be.touches[0].pageX),Le=Math.ceil(Be.touches[0].pageY),mt=pt.current-$e,gt=rt.current-Le,wt=Math.abs(mt)>Math.abs(gt);wt?pt.current=$e:rt.current=Le;var bt=Ke(wt,wt?mt:gt,!1,Be);bt&&Be.preventDefault(),clearInterval(Pe.current),bt&&(Pe.current=setInterval(function(){wt?mt*=Ze:gt*=Ze;var yt=Math.floor(wt?mt:gt);(!Ke(wt,yt,!0)||Math.abs(yt)<=.1)&&clearInterval(Pe.current)},16))}},Oe=function(){ct.current=!1,Ue()},Se=function(Be){Ue(),Be.touches.length===1&&!ct.current&&(ct.current=!0,pt.current=Math.ceil(Be.touches[0].pageX),rt.current=Math.ceil(Be.touches[0].pageY),Ae.current=Be.target,Ae.current.addEventListener("touchmove",ot,{passive:!1}),Ae.current.addEventListener("touchend",Oe,{passive:!0}))};Ue=function(){Ae.current&&(Ae.current.removeEventListener("touchmove",ot),Ae.current.removeEventListener("touchend",Oe))},(0,le.Z)(function(){return Ge&&Me.current.addEventListener("touchstart",Se,{passive:!0}),function(){var pe;(pe=Me.current)===null||pe===void 0||pe.removeEventListener("touchstart",Se),Ue(),clearInterval(Pe.current)}},[Ge])}function Qe(Ge){return Math.floor(Math.pow(Ge,.5))}function ut(Ge,Me){var Ke="touches"in Ge?Ge.touches[0]:Ge;return Ke[Me?"pageX":"pageY"]-window[Me?"scrollX":"scrollY"]}function Ie(Ge,Me,Ke){E.useEffect(function(){var ct=Me.current;if(Ge&&ct){var pt=!1,rt,Ae,Pe=function(){ge.Z.cancel(rt)},Ue=function pe(){Pe(),rt=(0,ge.Z)(function(){Ke(Ae),pe()})},ot=function(){pt=!1,Pe()},Oe=function(Be){if(!(Be.target.draggable||Be.button!==0)){var $e=Be;$e._virtualHandled||($e._virtualHandled=!0,pt=!0)}},Se=function(Be){if(pt){var $e=ut(Be,!1),Le=ct.getBoundingClientRect(),mt=Le.top,gt=Le.bottom;if($e<=mt){var wt=mt-$e;Ae=-Qe(wt),Ue()}else if($e>=gt){var bt=$e-gt;Ae=Qe(bt),Ue()}else Pe()}};return ct.addEventListener("mousedown",Oe),ct.ownerDocument.addEventListener("mouseup",ot),ct.ownerDocument.addEventListener("mousemove",Se),ct.ownerDocument.addEventListener("dragend",ot),function(){ct.removeEventListener("mousedown",Oe),ct.ownerDocument.removeEventListener("mouseup",ot),ct.ownerDocument.removeEventListener("mousemove",Se),ct.ownerDocument.removeEventListener("dragend",ot),Pe()}}},[Ge])}var We=10;function it(Ge,Me,Ke,ct,pt,rt,Ae,Pe){var Ue=E.useRef(),ot=E.useState(null),Oe=(0,be.Z)(ot,2),Se=Oe[0],pe=Oe[1];return(0,le.Z)(function(){if(Se&&Se.times<We){if(!Ge.current){pe(function(fn){return(0,y.Z)({},fn)});return}rt();var Be=Se.targetAlign,$e=Se.originAlign,Le=Se.index,mt=Se.offset,gt=Ge.current.clientHeight,wt=!1,bt=Be,yt=null;if(gt){for(var Et=Be||$e,kt=0,jt=0,It=0,vr=Math.min(Me.length-1,Le),Kt=0;Kt<=vr;Kt+=1){var Pr=pt(Me[Kt]);jt=kt;var qt=Ke.get(Pr);It=jt+(qt===void 0?ct:qt),kt=It}for(var zr=Et==="top"?mt:gt-mt,Vr=vr;Vr>=0;Vr-=1){var Xr=pt(Me[Vr]),pn=Ke.get(Xr);if(pn===void 0){wt=!0;break}if(zr-=pn,zr<=0)break}switch(Et){case"top":yt=jt-mt;break;case"bottom":yt=It-gt+mt;break;default:{var nn=Ge.current.scrollTop,Mr=nn+gt;jt<nn?bt="top":It>Mr&&(bt="bottom")}}yt!==null&&Ae(yt),yt!==Se.lastTop&&(wt=!0)}wt&&pe((0,y.Z)((0,y.Z)({},Se),{},{times:Se.times+1,targetAlign:bt,lastTop:yt}))}},[Se,Ge.current]),function(Be){if(Be==null){Pe();return}if(ge.Z.cancel(Ue.current),typeof Be=="number")Ae(Be);else if(Be&&(0,Ct.Z)(Be)==="object"){var $e,Le=Be.align;"index"in Be?$e=Be.index:$e=Me.findIndex(function(wt){return pt(wt)===Be.key});var mt=Be.offset,gt=mt===void 0?0:mt;pe({times:0,index:$e,offset:gt,originAlign:Le})}}}var at=E.forwardRef(function(Ge,Me){var Ke=Ge.prefixCls,ct=Ge.rtl,pt=Ge.scrollOffset,rt=Ge.scrollRange,Ae=Ge.onStartMove,Pe=Ge.onStopMove,Ue=Ge.onScroll,ot=Ge.horizontal,Oe=Ge.spinSize,Se=Ge.containerSize,pe=Ge.style,Be=Ge.thumbStyle,$e=Ge.showScrollBar,Le=E.useState(!1),mt=(0,be.Z)(Le,2),gt=mt[0],wt=mt[1],bt=E.useState(null),yt=(0,be.Z)(bt,2),Et=yt[0],kt=yt[1],jt=E.useState(null),It=(0,be.Z)(jt,2),vr=It[0],Kt=It[1],Pr=!ct,qt=E.useRef(),zr=E.useRef(),Vr=E.useState($e),Xr=(0,be.Z)(Vr,2),pn=Xr[0],nn=Xr[1],Mr=E.useRef(),fn=function(){$e===!0||$e===!1||(clearTimeout(Mr.current),nn(!0),Mr.current=setTimeout(function(){nn(!1)},3e3))},dn=rt-Se||0,Lr=Se-Oe||0,Ir=E.useMemo(function(){if(pt===0||dn===0)return 0;var br=pt/dn;return br*Lr},[pt,dn,Lr]),Mt=function(Rr){Rr.stopPropagation(),Rr.preventDefault()},Lt=E.useRef({top:Ir,dragging:gt,pageY:Et,startTop:vr});Lt.current={top:Ir,dragging:gt,pageY:Et,startTop:vr};var At=function(Rr){wt(!0),kt(ut(Rr,ot)),Kt(Lt.current.top),Ae(),Rr.stopPropagation(),Rr.preventDefault()};E.useEffect(function(){var br=function(sr){sr.preventDefault()},Rr=qt.current,Ur=zr.current;return Rr.addEventListener("touchstart",br,{passive:!1}),Ur.addEventListener("touchstart",At,{passive:!1}),function(){Rr.removeEventListener("touchstart",br),Ur.removeEventListener("touchstart",At)}},[]);var $t=E.useRef();$t.current=dn;var cr=E.useRef();cr.current=Lr,E.useEffect(function(){if(gt){var br,Rr=function(sr){var Bt=Lt.current,Wt=Bt.dragging,Gr=Bt.pageY,on=Bt.startTop;ge.Z.cancel(br);var Tt=qt.current.getBoundingClientRect(),_t=Se/(ot?Tt.width:Tt.height);if(Wt){var dr=(ut(sr,ot)-Gr)*_t,Qt=on;!Pr&&ot?Qt-=dr:Qt+=dr;var Ot=$t.current,rr=cr.current,wr=rr?Qt/rr:0,gr=Math.ceil(wr*Ot);gr=Math.max(gr,0),gr=Math.min(gr,Ot),br=(0,ge.Z)(function(){Ue(gr,ot)})}},Ur=function(){wt(!1),Pe()};return window.addEventListener("mousemove",Rr,{passive:!0}),window.addEventListener("touchmove",Rr,{passive:!0}),window.addEventListener("mouseup",Ur,{passive:!0}),window.addEventListener("touchend",Ur,{passive:!0}),function(){window.removeEventListener("mousemove",Rr),window.removeEventListener("touchmove",Rr),window.removeEventListener("mouseup",Ur),window.removeEventListener("touchend",Ur),ge.Z.cancel(br)}}},[gt]),E.useEffect(function(){return fn(),function(){clearTimeout(Mr.current)}},[pt]),E.useImperativeHandle(Me,function(){return{delayHidden:fn}});var mr="".concat(Ke,"-scrollbar"),Sr={position:"absolute",visibility:pn?null:"hidden"},Tr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ot?(Object.assign(Sr,{height:8,left:0,right:0,bottom:0}),Object.assign(Tr,(0,Te.Z)({height:"100%",width:Oe},Pr?"left":"right",Ir))):(Object.assign(Sr,(0,Te.Z)({width:8,top:0,bottom:0},Pr?"right":"left",0)),Object.assign(Tr,{width:"100%",height:Oe,top:Ir})),E.createElement("div",{ref:qt,className:ie()(mr,(0,Te.Z)((0,Te.Z)((0,Te.Z)({},"".concat(mr,"-horizontal"),ot),"".concat(mr,"-vertical"),!ot),"".concat(mr,"-visible"),pn)),style:(0,y.Z)((0,y.Z)({},Sr),pe),onMouseDown:Mt,onMouseMove:fn},E.createElement("div",{ref:zr,className:ie()("".concat(mr,"-thumb"),(0,Te.Z)({},"".concat(mr,"-thumb-moving"),gt)),style:(0,y.Z)((0,y.Z)({},Tr),Be),onMouseDown:At}))}),nt=at,Xe=20;function et(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ke=Ge/Me*Ge;return isNaN(Ke)&&(Ke=0),Ke=Math.max(Ke,Xe),Math.floor(Ke)}var Ye=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],dt=[],tt={overflowY:"auto",overflowAnchor:"none"};function lt(Ge,Me){var Ke=Ge.prefixCls,ct=Ke===void 0?"rc-virtual-list":Ke,pt=Ge.className,rt=Ge.height,Ae=Ge.itemHeight,Pe=Ge.fullHeight,Ue=Pe===void 0?!0:Pe,ot=Ge.style,Oe=Ge.data,Se=Ge.children,pe=Ge.itemKey,Be=Ge.virtual,$e=Ge.direction,Le=Ge.scrollWidth,mt=Ge.component,gt=mt===void 0?"div":mt,wt=Ge.onScroll,bt=Ge.onVirtualScroll,yt=Ge.onVisibleChange,Et=Ge.innerProps,kt=Ge.extraRender,jt=Ge.styles,It=Ge.showScrollBar,vr=It===void 0?"optional":It,Kt=(0,x.Z)(Ge,Ye),Pr=E.useCallback(function(Pt){return typeof pe=="function"?pe(Pt):Pt==null?void 0:Pt[pe]},[pe]),qt=_e(Pr,null,null),zr=(0,be.Z)(qt,4),Vr=zr[0],Xr=zr[1],pn=zr[2],nn=zr[3],Mr=!!(Be!==!1&&rt&&Ae),fn=E.useMemo(function(){return Object.values(pn.maps).reduce(function(Pt,zt){return Pt+zt},0)},[pn.id,pn.maps]),dn=Mr&&Oe&&(Math.max(Ae*Oe.length,fn)>rt||!!Le),Lr=$e==="rtl",Ir=ie()(ct,(0,Te.Z)({},"".concat(ct,"-rtl"),Lr),pt),Mt=Oe||dt,Lt=(0,E.useRef)(),At=(0,E.useRef)(),$t=(0,E.useRef)(),cr=(0,E.useState)(0),mr=(0,be.Z)(cr,2),Sr=mr[0],Tr=mr[1],br=(0,E.useState)(0),Rr=(0,be.Z)(br,2),Ur=Rr[0],Kr=Rr[1],sr=(0,E.useState)(!1),Bt=(0,be.Z)(sr,2),Wt=Bt[0],Gr=Bt[1],on=function(){Gr(!0)},Tt=function(){Gr(!1)},_t={getKey:Pr};function dr(Pt){Tr(function(zt){var Xt;typeof Pt=="function"?Xt=Pt(zt):Xt=Pt;var Vt=Hn(Xt);return Lt.current.scrollTop=Vt,Vt})}var Qt=(0,E.useRef)({start:0,end:Mt.length}),Ot=(0,E.useRef)(),rr=he(Mt,Pr),wr=(0,be.Z)(rr,1),gr=wr[0];Ot.current=gr;var ar=E.useMemo(function(){if(!Mr)return{scrollHeight:void 0,start:0,end:Mt.length-1,offset:void 0};if(!dn){var Pt;return{scrollHeight:((Pt=At.current)===null||Pt===void 0?void 0:Pt.offsetHeight)||0,start:0,end:Mt.length-1,offset:void 0}}for(var zt=0,Xt,Vt,nr,Dr=Mt.length,or=0;or<Dr;or+=1){var er=Mt[or],yr=Pr(er),xr=pn.get(yr),Br=zt+(xr===void 0?Ae:xr);Br>=Sr&&Xt===void 0&&(Xt=or,Vt=zt),Br>Sr+rt&&nr===void 0&&(nr=or),zt=Br}return Xt===void 0&&(Xt=0,Vt=0,nr=Math.ceil(rt/Ae)),nr===void 0&&(nr=Mt.length-1),nr=Math.min(nr+1,Mt.length-1),{scrollHeight:zt,start:Xt,end:nr,offset:Vt}},[dn,Mr,Sr,Mt,nn,rt]),pr=ar.scrollHeight,Cr=ar.start,ir=ar.end,Yt=ar.offset;Qt.current.start=Cr,Qt.current.end=ir,E.useLayoutEffect(function(){var Pt=pn.getRecord();if(Pt.size===1){var zt=Array.from(Pt.keys())[0],Xt=Pt.get(zt),Vt=Mt[Cr];if(Vt&&Xt===void 0){var nr=Pr(Vt);if(nr===zt){var Dr=pn.get(zt),or=Dr-Ae;dr(function(er){return er+or})}}}pn.resetRecord()},[pr]);var kr=E.useState({width:0,height:rt}),Zr=(0,be.Z)(kr,2),en=Zr[0],an=Zr[1],kn=function(zt){an({width:zt.offsetWidth,height:zt.offsetHeight})},Pn=(0,E.useRef)(),tn=(0,E.useRef)(),Nr=E.useMemo(function(){return et(en.width,Le)},[en.width,Le]),Wr=E.useMemo(function(){return et(en.height,pr)},[en.height,pr]),_r=pr-rt,An=(0,E.useRef)(_r);An.current=_r;function Hn(Pt){var zt=Pt;return Number.isNaN(An.current)||(zt=Math.min(zt,An.current)),zt=Math.max(zt,0),zt}var Fn=Sr<=0,Jn=Sr>=_r,zn=Ur<=0,jr=Ur>=Le,Fr=je(Fn,Jn,zn,jr),Er=function(){return{x:Lr?-Ur:Ur,y:Sr}},Yr=(0,E.useRef)(Er()),Or=(0,ee.zX)(function(Pt){if(bt){var zt=(0,y.Z)((0,y.Z)({},Er()),Pt);(Yr.current.x!==zt.x||Yr.current.y!==zt.y)&&(bt(zt),Yr.current=zt)}});function qr(Pt,zt){var Xt=Pt;zt?((0,ne.flushSync)(function(){Kr(Xt)}),Or()):dr(Xt)}function yn(Pt){var zt=Pt.currentTarget.scrollTop;zt!==Sr&&dr(zt),wt==null||wt(Pt),Or()}var Rn=function(zt){var Xt=zt,Vt=Le?Le-en.width:0;return Xt=Math.max(Xt,0),Xt=Math.min(Xt,Vt),Xt},jn=(0,ee.zX)(function(Pt,zt){zt?((0,ne.flushSync)(function(){Kr(function(Xt){var Vt=Xt+(Lr?-Pt:Pt);return Rn(Vt)})}),Or()):dr(function(Xt){var Vt=Xt+Pt;return Vt})}),Bn=Ee(Mr,Fn,Jn,zn,jr,!!Le,jn),ri=(0,be.Z)(Bn,2),xt=ri[0],Nt=ri[1];Ve(Mr,Lt,function(Pt,zt,Xt,Vt){var nr=Vt;return Fr(Pt,zt,Xt)?!1:!nr||!nr._virtualHandled?(nr&&(nr._virtualHandled=!0),xt({preventDefault:function(){},deltaX:Pt?zt:0,deltaY:Pt?0:zt}),!0):!1}),Ie(dn,Lt,function(Pt){dr(function(zt){return zt+Pt})}),(0,le.Z)(function(){function Pt(Xt){var Vt=Fn&&Xt.detail<0,nr=Jn&&Xt.detail>0;Mr&&!Vt&&!nr&&Xt.preventDefault()}var zt=Lt.current;return zt.addEventListener("wheel",xt,{passive:!1}),zt.addEventListener("DOMMouseScroll",Nt,{passive:!0}),zt.addEventListener("MozMousePixelScroll",Pt,{passive:!1}),function(){zt.removeEventListener("wheel",xt),zt.removeEventListener("DOMMouseScroll",Nt),zt.removeEventListener("MozMousePixelScroll",Pt)}},[Mr,Fn,Jn]),(0,le.Z)(function(){if(Le){var Pt=Rn(Ur);Kr(Pt),Or({x:Pt})}},[en.width,Le]);var Rt=function(){var zt,Xt;(zt=Pn.current)===null||zt===void 0||zt.delayHidden(),(Xt=tn.current)===null||Xt===void 0||Xt.delayHidden()},Ft=it(Lt,Mt,pn,Ae,Pr,function(){return Xr(!0)},dr,Rt);E.useImperativeHandle(Me,function(){return{nativeElement:$t.current,getScrollInfo:Er,scrollTo:function(zt){function Xt(Vt){return Vt&&(0,Ct.Z)(Vt)==="object"&&("left"in Vt||"top"in Vt)}Xt(zt)?(zt.left!==void 0&&Kr(Rn(zt.left)),Ft(zt.top)):Ft(zt)}}}),(0,le.Z)(function(){if(yt){var Pt=Mt.slice(Cr,ir+1);yt(Pt,Mt)}},[Cr,ir,Mt]);var Jt=ce(Mt,Pr,pn,Ae),Gt=kt==null?void 0:kt({start:Cr,end:ir,virtual:dn,offsetX:Ur,offsetY:Yt,rtl:Lr,getSize:Jt}),fr=fe(Mt,Cr,ir,Le,Ur,Vr,Se,_t),lr=null;rt&&(lr=(0,y.Z)((0,Te.Z)({},Ue?"height":"maxHeight",rt),tt),Mr&&(lr.overflowY="hidden",Le&&(lr.overflowX="hidden"),Wt&&(lr.pointerEvents="none")));var tr={};return Lr&&(tr.dir="rtl"),E.createElement("div",(0,ze.Z)({ref:$t,style:(0,y.Z)((0,y.Z)({},ot),{},{position:"relative"}),className:Ir},tr,Kt),E.createElement(oe.Z,{onResize:kn},E.createElement(gt,{className:"".concat(ct,"-holder"),style:lr,ref:Lt,onScroll:yn,onMouseEnter:Rt},E.createElement(se,{prefixCls:ct,height:pr,offsetX:Ur,offsetY:Yt,scrollWidth:Le,onInnerResize:Xr,ref:At,innerProps:Et,rtl:Lr,extra:Gt},fr))),dn&&pr>rt&&E.createElement(nt,{ref:Pn,prefixCls:ct,scrollOffset:Sr,scrollRange:pr,rtl:Lr,onScroll:qr,onStartMove:on,onStopMove:Tt,spinSize:Wr,containerSize:en.height,style:jt==null?void 0:jt.verticalScrollBar,thumbStyle:jt==null?void 0:jt.verticalScrollBarThumb,showScrollBar:vr}),dn&&Le>en.width&&E.createElement(nt,{ref:tn,prefixCls:ct,scrollOffset:Ur,scrollRange:Le,rtl:Lr,onScroll:qr,onStartMove:on,onStopMove:Tt,spinSize:Nr,containerSize:en.width,horizontal:!0,style:jt==null?void 0:jt.horizontalScrollBar,thumbStyle:jt==null?void 0:jt.horizontalScrollBarThumb,showScrollBar:vr}))}var st=E.forwardRef(lt);st.displayName="List";var He=st,Ne=He},93314:function(ur){"use strict";ur.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=="},96908:function(ur){"use strict";ur.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKQAAAA8CAYAAADogBFvAAAAAXNSR0IArs4c6QAADzxJREFUeF7tnQl4VcUVx3/3JSEBARFEFllcQAMJuKDUD7FqtVbFtUqtS6ufS1soxaW1Si0KBaFVWy2ittqqdQ9xpYq4tLgVFWUThYQlJIEkkJXs63u333lzL+/mrfeF9/KSeM/35Xv3zZw5c+bM/83MOTN3ouGQY4EuZAGtC+niqOJYAAeQDgi6lAU0fUayHqCR5gJXEriS/T6TICkZNOMzIN/gFx7/8vvLiFxDtpfP4G2Xb5Ej6SaPKddav6mPtb5g9e/PF9nSvmTVlpD1S36Sr63WOj1ukD/d+PR+b1NpAekmj5Gve8Dd5lc2ivK4G2lzV4K7Eo/8eSrQ3ZW424rw6J/ST1utTb2jtkuhLAplwgDS7BDj09txdgFqgsjCbwVOKMCYAPH+IAzABIDf8qPYz+OygMus0+8HFQDmYDpaypj1mp+m/qKbgMoKQO+zxwIyCzhNPhOIQQFrAas/uK3l5dlt/SEY9bbn0ZsrS1obynfXNJQXFTeUbPugua5utQZrM7PZHgU2EsIaHJAJUcWp1JYFklKgVx/fX0oqpPSBgw6BASOh/xAlxgC+u6WJqh0bqdi2nrb66gI0sjQXL2W8xHpb9XUykwPITjZ43KuTpcnBw2HA4TBwFBw81Dt66+42aoq2U7FjAw0Ve8R52KxpLB6v86KWjTvuetmswAGkTUN1W7aDBsHIieiHjkVDlhpuavbkU7ThE9wtjQLMbTosyFzGc5pGoD/RyQ13ANnJBk9YdSm9YVg6+tB0NC2ZtqZ6dn/1P+rKirwqaRqrknVuSM9mZ8J0FD2CetmJ1MipO74WkPXn0VOg72CvY1ZRuJU9uRvQPW4ZLes0jdszlvG3+CoRWroDyERZPtH1Dk1HH56B5vHQWFvJzrUf42lrUaMlPJ4BMxOxtnQAmWhgJLL+3gPQR5+E1qsPDdXl5G9YjUdipIreGpzGFUOfpb4zVXQA2ZnW7op1paSiH30qWlIqdVWlFGz6Al1ipmqkXH0wnD0ym8bOUt0BZGdZuivXk9IH/ajJaK4Uasr3UJizUQX/Fb2WOZ7LtfniosefHEDG38bdo4bUvuijJqG5XFQU5VOSv22/3hr8NTObWzqjIQ4gO8PK3aWO3v3RR57gHR13blpHQ121FZTTM7N5Od5NcQAZbwt3N/mDjvDu8jQ11rHj6/XoskevqKxXMuOPfZHyeDbJAWQ8rdsdZct2zYjj0VJS2bu7gLLiXdZRMiszmx/Hs1kOIONp3e4qO60/+rBx6O5WdmzeRHOTz8lO0pg2fhkr4tU0B5Dxsmx3lytTd99B1FZVUZC31dqanMzxTNDmsz9gGcumOoCMpTV7kixXEvrwCV4HZ1vuZlqamqytu2VCNn+NR3MdQMbDqj1Epj5wBFqfgVSU7qWkWB3CENKgEhibme39jCklBpCysf/H3aohrY1w64CYNqrLCJOziRJg1hN+qqtjJklJQx88xrudmJuzBY+cVveBcmlmNr/qmODQpRIHyPuKlVYtjXBL/1i3K7HyDh4Gp94IU2+Ee0+A+pgPJJ3WPn3QEWgpvSkpKaaiosJabxsuJk7IYksslXEAGUtrmrIW5sHAkerb7UO6NSBJ6wcDhnvXkFu354HlDK8GKzOzOS+WJnQAGUtrmrIW5atXCHoCIDXwDDwSlyuJvIICGhran7OIdRjIAaQDyIgW0PsNRkvtR2l5OaXlAcuPmIaBuh4gp1wP/QYrI338ODRUBRpM0+Cc36p0OVT6nwd9PIcdAydcqr7nroL8NXDi5TBmKoyepPgL16n0dS+3dzgGjoaTjY0If7n+Wow+GdK/p1Jr9sC+Ihg1SX0X3Xob6+K3F0FLg0r/egUUbWovSRy8SdNh5PEw4jho2Ae71sOuDbDhVaWvP1nbWLIZvvo3TLwQvjtDvdQlaf+eB2Uxeuu1V2/oP4yGhnryCn3etqmWS+PmjGUsiYhsGwxdD5C/WwsjJirV7xkX3KjyPvZSY+poqoXbBvqaetzF8HPjDMAbc2HIWDjlp8FNsfldePIaH+iTU2FxIRxkyHvgu5D3afCyM5dDprF8emuBN4jM6TPDm/zZG+HTf/l4xpwG1z/nXaMFpYIv4fHpUGVEJEwmaxu/eBFyP4Br/t5exMPnwZb3bUDADouGPmiU9+3FnLxC3BZvW0rHMgzUswEpI5O8Q9LaDAVroHgzDE2H0SdB6kGqJyryYdFJ0GicbLnsfjjLOGn1yT/ghRmBPSajmgBXLg+Qwwd3j4WzboXTDV4J95jkPZxghH2e+xl89ozKEVDdlKVu8RAq/lqNikm91Eg++GiVXlsGD52tRr1ggCz+BgaPAXk/20oxBSTo/YagJfdiV8lequuMEd9SnwYxCQP1bECKwerK4ZELQUYbk2RbbNZbMOQYlbJyMSy/Wz3LdDjvG/XcWAN3Hg6t7XYp4IxZ8CNjmSCj7NJp7cEQyamRH8m8zT7H54WZ8MkTPhlyO4ZM+xcvUGkb3oDHLw8OSDP1m3fgw0ehtlSBWUb2ysL2eh3It7T+iMddVV1LUVnQMFZMwkA9H5CPXQqb3gzsChlVBBSyHm2uh7ljFHiFbn4Pjj1DPT/1U5Bp0Uq/XQ1HnKxSnrgC1r8aHSAvnAfn3aXKfPYsPHN9cKiYywIJrC+a5Ft/WqfsSDIOBITWsnJjRr/DaG1pIbewJKjUWISBejYgZTqeOzZ0l9zyPhxzusp/7BLY9JZ6FifjhhfUc85/YckPfDKsI6iMRnNGq3t+rBRphJyzBuQgrNBD34etHwTXcfLVcN3TKu/d++H136lnKyDlx3TXkcGdv1iB0ZTT7zDv0/aiMppaWoNKP9AwUM8G5Fdvwt8MjzuY+ab/Bc40dr+yfw2rDEdRRgMBlXSArAFl9KwyzgVaR7f3HoDX5gRKjgTIh6rV2lZow+uBSwJTojhX489R32QUltHYH5A7P4P7T4s19ILLk2k7JY3SqhpK99WFqvOAwkA9G5Af/R1emhW6s865HS5ZpPJXLYXsW328Fy+EH9yhvi+/B1YafH/YCoceqdLnZUBpu6NZKj0cICVgLvnRkoSCFk8OBOSXy+DJq6OV1jH+5F6Q1p/G5mZ2lAQJxxlSDyQMFHtATpgGR56iVNvyHmz7KLDxstcrXqpQUx3cdoiPJ5ZhnzUvwNPXhjb+tLth2lyV/86f4I3f+3jF8Zmfq+6SLNsB96TDUVPgNx8qHmnXg2cFlx0OkDIyPrhPrV2FJNbqe8MvtK4S3go2Zcv6Vta5nUGicp9B3vuBcooraXMHfxHxQMJAsQfkRQvg3DuVeazeq9Vgo06EOz9XKXu3wvwMX651fbXgeCgxPF5reQlgLzSCvuHikOJpSiwxFF3zBEy5TuU+exN8aqzXTP5fvgkZxvrxz2fC5CvhtJ+p3KevgzXPRw9IKWHd6w41yoYDmH8csrMAKTql9vWGqoqr6qisaw6pZUfDQLEH5Hd+Atc+qRRdmw3/vCpQaStPzn9gybk+nl+8BhMvUN+XXgCb3wksf+1T8J1rVHo4QMoux7xxwcMfElwXUJt7zg+cDnmr29clux+/MDxoGW0zzlVBc9lNmTMy9Nov0hpy1goY/31Vl3/Ix6rB8ZfACT9UKRJe+vw59ZxIQMq0nZJGbUMzBRVhL7XoUBgo9oCUoPMdxu6GBKQXTIByy4VaKWnwm4/VVpnQf5fAy7/2dcP0B+FMY90XbMo9fCLM+UJNpZEAKflfZqndGH8SZ0acGiEJSC82wjhWPokH3pvnA62ZJ/G+rJsDZZop1nWmePni7VvpuIvg56+oFNlynJ8JzX5OgswCd63zbUH+5Xuw/ePEA1KWGvIOt9vNlr21eDyhz3p2JAwUe0CKyWavhHRjfVVXoUAni38x8ik/geHGFC33yMgIZu2wcWfDr972dZ/slnz+PNTuhaNPhUvuVd6vSeFGSPGQBbjrXoH3/gxl22BIOpz0I593LXIevQi+ttRpBc/5c+ECI2hupt8rMcGvQgPSGk6SsFHO+2rPXLxyk2a8DrLeFirdrtaHEryXy0ZlmTD5Kt9uzTcrVXDfpESOkKKD7G3rOruqmqhuCv9qjcvF+RlZhDBuoAnjA0iJ1ckoaR4wCNV1794HrxsBYivPze/CsWcGLyUgWz5XAVMoHCAFiEInXhZcloBkxQKQvehQJFP6wh2+Lb78L+C+KaH5JUeWE7Ks8KdZaeqqZaFDRsCMN3z79qEk7t4IMjo21XQdQLpSvP8QoKaxlcJ9odeRorCmsSVjHBPtvhQWH0CKJtKRVz3mO4BgNXhFgQrHyC8/GMmhUNlTPvWG9rnVJarcphX2DleIByrOxxVL1Mhsxv5EqkyVWbNh4/Lw4JLc2e/4TvbI3raM2pFo6k1wxkwYPNa3z2wFpJSXeOf5v1d751bdJE/WqfJDkeWBf+A90SOkTNtJvdA9bWwpa8ET4RWNaMJA8QOk2WF9DlEHGmS6FhDszVX7rXao76EwdJy6yF2OjJXLieUIFKqzpPMlHCWjdsFadWTMDglQFhVAnwFqi/HOEYHrPTtywvFIBx96FAzPVODbk6PW3XbCQQdad0fLiz11D7urW9nXHP4eqmjCQPEHZEcb3NFysR49JMxz5SNKm9VPgZzYcQjE4ZOzKy1u8qtt3Jmv8fCEZcyOZDoHkJEsNHcjDBuvuO6bCvlG/DRSuW9Dvly74tHZUumOOG3LUWo7L4U5gAwHHHGsxMESkvOKC40DEd8GsEXRxqI6D1VNka+P1ODtzGzOD7t66XGX3sdyypaguATHhbJvg1UPR9FN3x7WxjbYsc/ezSqRwkA9b4QclqE8aiEJeH/5UseQITs5F81X/+tQSPa6g73f0zHpPaqUhMa3VrppDRMkNxscKQzU8wDZo7q6+zSmtFGntN6GcwOECwM5gOw+fd6lNW31QG6lADLytTHhwkAOILt0N3cv5XZWe6gXZNqhEGEgB5B2jOfw2LLAvmad3bX2pu1QYSAHkLZM7TDZsYD4NDn2YpJeccHCQA4g7Vja4bFtgeJ6D5WNNqdtcXD8TgM5gLRtaofRjgWa3LC9yl5M0jtK+p0GcgBpx8oOT1QWyKt209Aa2ds2hbpczM7Iwrvr4AAyKlM7zHYsEKVz0+5uIAeQdizs8Ni2gIyL8icxSbeNnZv9go0wkANI26Z2GKOxwJ56D+VRODdmGMgBZDRWdnhtW6C6WWeX/Zjk/jDQ/wHkSLPJ/mcrgQAAAABJRU5ErkJggg=="},57177:function(ur){"use strict";ur.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANQAAAA8CAYAAAAeyZT3AAAAAXNSR0IArs4c6QAAEpJJREFUeF7tXQeYFdUV/mcbS1F6UUEsoLC7IGKNJWpERbEgSoxGo7HEQFDRWCAGgdASNBbEhglqsC1rAxVBNGg0qNgLsJRddmFhe3vby3uT7393ZmfeezOv7M57W3LP9/EtM3Pn3DPn3n/uvf85c58CKdID0gOOeUBxTJNUJD0gPQAJKNkJpAcc9EALoNRpCaqt3rh4QIkDvH/jxV/zuZZjrVy8uRzvSzDdrx3HxWnnEnz1eevhOf/79HpNdrAs6wrQr9VvtiMc+/kc0HSan9Nrq8Uzt9hquuZjv8kPev26r8x16X5VPYDHDYT7Vy/L8vo94d7P8u5mcV+w+1U34GEZ7a+5Tg/vV31tbrmu36ff23JcB9VdBo9a5v2rekq14/1wN30GNXGzctPKKgf7eExVKUGBpJsSEkgWYPMHXEuH0sHlB5iW8jrAtE6sd9AW8GidVD9mR/fvxDrAzJ3Yp/ObAGL3srC1XweJnf0awHUQWgGJ52i3P+D9OyOP/QHSAjYT8Lwd3gRGH3Bp5dza34D7LUDsD04vmPzuN9cZGkSAF3xm4JttNoFWdasNlRVNta4SV21l6YHakvyPGurrNivA12kZ2B1TdLSisvAA1QrF8hbpAUsP8EWVkAwkdgMSugHxiUB8EpDcC+g1AOjeG+BciSBWPXA3NaA8Pxel+7LRXF+bCwXpShxeTX0V33ZED0tAdcRW+X+2iaN3j35Ar/7iX/e+XnCpbg9cZfkozctBrauci/9tioIlKSpeUTLg7iguk4DqKC0h7bD2QPJBQP/hUHsNhsIVv+qBq7QI+7O2w93USGDtUoEFaavxoqJ4x7Z2FQmodnW/rDxsD3Ba2PcwqL0PhaLEobmxAXnZmaiuKPOqUBRsSlBx06gM7AlbZxQKSkBFwalSZRQ9kJAEDD4GSD7Yyz6WFu5HQV4uVI+Ho1W1ouCe1NV4OooWBFUtAdVenpf1ts0DfQ6F2mcoOMurq6nCnp2Z8DAMwNEKWJEKTG+PtZUEVNuaVd7dnh5I6gF1wFFQEpJQW+1CTtYueBgeEPLuwGRcNWQVamJpogRULL0t63LeA/GJUAeNhBKXgOpqF3Kzs6Ey3iVGqs29gQnDMlDnfMXWGiWgYuVpWU/0PBCfBHXQ0VCUeLgqK7B3b67I4BDyZloKrlTmQ6AsyiIBFWUHS/Ux8kBCMtT+w70MYGlJMfILCloqVoDH0jIwMxaWSEDFwsuyjth4IKk71D7DGKzCnj05qK0zZnoKMDUtA69F2xAJqGh7WOqPrQeYvtSjL+rr65C1JxeqMfUrTkpAyrGvoCSaBklARdO7UnfsPaAAat/DocTFo7C4FMWlIvBLUYD0tAz8KppGSUBF07tSd/t4ILE71N5DoHrcyMrJQ0NjY4sd8QompazGumgZJgEVLc9Kve3rgZ79gW49UVVdg9wDhWZbMtNSMEaZDxEFdlgkoBx2qFTXQTygxHnz/gAPdu3NR2Njk9mwmWMy8Fg0LJWAioZXpU7DA/0OB479hTguyQZ2/Sdm3lF79IWS2B2llVXILylvqVcBuLAamZbh/euotA+geg0E/ponHqSpDrizj6MP1WGU8WM671eq7fhVweTFwIQ/Cpe8PRfY8NfYuue4y4BbNbb6y1eA534Tu/rjEqEeNAAejxs7cgvg4VfGmijA8rQM3Oa0Me0HqKUHxLM01gEzD3b6udpXX+9DgNNvBs64GVh0PFDj+Isw/Oe7fAlw3t2i/NoHgPVLwr/XiZLtCShGpHr29zJ++aWVKHX5pPU1Iw5jx6RjuxOP2QLUsPaUcLJG6uII1ZUBtTAb6McAI4B7BktAtdcIRf/zM/vkg9HY3IydeQxBGbMFBVifloELnezecoRy0pu6rsU5QJ/DJKDogXYeoWiCp2c/7mWF7MJy1Nb7kBNwmkaXgJKAioYHDJ0dAFBqt55Q4ruhyFWDooqArzkcpdE7HqBOuxE4aKBokE9WALUGO9PSStxc4Px7xWFzI/DhI0YDDjoGOP5ycbxjE5CzBRh/JTDiDGD4CaL83m/E+W9e8yUM+g0HTtIC6f56/bvd8JOAURp75SoAKvYDh58gStG27tq68L3FQGOtOP/TOmD/j76aOP09YSowbBww9DigtgLY9y2w7zvguzeEvf5ifsb8bcAPbwNjLwF+Pg3oPQTgubfnAcW7ASfXUAOOBH52PTB0nKiHn6UXZwFFu4DPVwEFFssRK0BRz7gpwn/0U+7XQM6XwFfpYrsxpyUhEUjqhdqGJmQXVgRoj1NwR+pqLHOi2o4HqD99DQwdK55t7mjRKfyF++4t1xIf66uAu/oZJcwNuGYOMHgkcKoNs7TtfWDltQZoOd9eshfoqel76OdA9mfWfp6+FkjTpt/vLhA79Jw1PXibrLoZ+OwFo8yIM4EbXwT6MF5iIblfASumAuUaI6oX8e+kOz4Crn3GV8HjFwLbP3AOUJfMBybO9m7eYCnuJmDjQ4L4MIu/rR8+Bty2zvCxuezuT4AVVwHVxU70bR8dao8+XsY1c38F3Ca2j4WcpNG7NqA4MiT1AJoagNwtwIFtwJBRwPATvVF0r5TmAItPBOoqxfEVDwLnapn+n/4DeHlaYONyVCHw4hPErqoPjATOvRM4Syvr3RVWE2/jaQvhF38HfP4vcYEd7ZZ0sWsu5cBPYlTiW58j6cCjxfmqYuDRCWLU0cXcSQ9sBQaOEPvcmcVJQF08F7joz4b2sr3iRcOX2eHjxT9dVl4HfPWqta0cnRmX4r58WZ8CRbsD24Mvj8UnOE7kqN16eT/t2FdWjcrawFHfKRq9awOKzVpdAjxxCcC3vS79jwBmvCs2+6CQStbfrJxOzdsqzte5gFmHAU31vp317BnAL7VpJke55ZN8r4ciJQjyedsM4uLl6cCnzxo6uDcdp42XLRDnvlsDrLjSupPqZ7duAD5+EqgqEmBkh2fHb+uUjy+eJXliI0rK6/f6TrF5ji+TK5aK65wCzh1lbyvb48nJQM4XRpkBRwHT3gIOGS3Obfw78OYsX5+29YgvnLgklNc0YH+FNgX31ekIjd71AfXU5cCP7wQ2B9/q7NScwjTUAHNGCPBR7tgIHHu2+D8DkQxImuXezcARJ4kzz14FfPuG7/VQgLpkHnDh/eIerj3+daN1d9GnlQwM862tr7/MI1QoHW0FFNdLE+8ToQ6uFTlFtpJFe4C+Q8WVmb2NdaO/rS/cCHyxyro95m4Ve9ozNsn24MvBKeHW10nd0dTsxo5C663TnaDRuzagOJ2bM9K+SWZ+ABxzlrj+1GTgx3fF/0kS3PSy+H/mv4FlFxg6zCMYG3z28MCFdChAzd4CDDte6Hz0PGDnR9Y2nvxr4IbnxbX3HwTe+pP4v7mT8mVw/5HW5A3LthVQ4XboO94Hjj1HlF403hr8ZfsEULQ9HwJUz1gHpJwnTj89RZAtTgpHW9WD3cU1qG+y/iK+rTR61wbUD+8AT2uMn1XDTH0YOEfLPsn4I7BJI3q43zZBcdAgsUZiJyjfJzSYRxcuwt+cHag5FKAerRRrO8p3bwVOKXWNJEdSzhdHHAU5GvoDas/nwINn2nc7JwHF2NrxUwCydP2PFEQMiRzulcdjfV1Ke2iXv61b14vpt52Y169v3Ad88LCTcBJ2KvEoqmpAUbUFeypqaxON3rUB9Z9ngFdn2DfK+fcAzHWjbFoOZNxplL1sIXDBfeJ47VxgvVbuLztFh6LMSwWKdgbqDwYodkpej1RIpS85ObCTfrUaWPnr6AKKDNlVy4DxUwURE0rsABWqPZhzOEXLNfz4KSD99lA1RXbd+1NCiahrdCOrzH4jpLbQ6M4Daswk4MhTxYNu32idXcxcN7JklPpq4K6+hmOcpM23vAw8f7290yc9AEyaI65v+BuwxsRkkbiYv0PM6fWF9lGnAXd/LMoza/qRc611BwMUR6ZHKgz6mbE2uymQWTsZNaspX6iE07aOUInJwO0bgKNPM9qL8bHCXUBVoRhdmxuAibOMaawdoL54EXjht/btYR791y0E3pkfGWBClSbjH0c21IPM4no0e6yTlttCozsPqEsXCOdSzOyZ+WFJs87SWJ7CncD8VOOqeX2xYByQrzFu5vsZgF2oxaeCxaHIdDGWZCfXPgucdoO4uuoW4DNtvaKX/8M7QKq2fvr7OcDJVwNn/k5cff4GYMtLkQOKd5hz/exGuWCdI5Lsg7YCimzj5EXCmrzvBYXP4LO/zPrcCGzbASrYS4j6rvuHCBxT7MiLUKAJdZ3Teag44GpCWZ39j3a0lkZ3HlCnXAdcv1I81tcZwD+vCXxEc5nMD4FlE40yv38TGHuxOF5+MbBtQ+D91z8HnKKxTcEAxSyDeaMFfewvDA4TlHrO3UNnAdmbfUsx++D3GoPH0S51oghIskPNHma/9gm1hjIvvv0pc7MF4yaLNQuF9Dzf8JRYAop0NmcdlGeuBL5fE+hL/qbT0gJjOmgHKLbHn48CXD5f0Ap9bA/67eDB4njp6SKbxWnRfjmzqr4ZuZVBszJaRaM7DygGTe/TsgsYUF0wBigx/SACpxB3fyJSbSj/Xga8pn2vw+OpjwDnaOseqynbYWOB2V+KqRglGKB4neksVlQvyQiSEhQGVJdoNLi5ARkPWpRtgE6/xnhP+h32TW1eZ5FlJNtoluMuBW59XZxhytL8NKCh2rcMR+H7vzFSmB7+BcBMAkosAWWegvPlyJekv5hBx2t2gOK1/64EXro1UMeEu4ApfxPnmYa0VJti2nu59Vfi4r27y24vaYYnyLdqraHRnQcUH/P29cAobX1RXSpAw8U7O8mp1wGHalM8bu7OEcTc4UZPAG57z3AWsxW+eEnM148+XUw/yL7pEgxQZOgIvG9eF8HC4l3A4FHAib802D3qefJS4CdTneamumgOcLFfOs0ixoR+sG9QMx1P2j3zA5EzSFZQF3MnZMYA10cMPvOzbU4zT77GyJbwZ8daCyjq58sjHPlhrfDJb1aKNqMU7gBemgZk/VdkeHCtfPliY82s6w0GKJYhkULSgdN5Zq4wTKGzrbzOGQtnLtES9gmPB/uqPKhsCL6hbFwcLkpNh03nCDQwOoBirIajlJ4gaueY95cCb2kBTnMZc0zD/16CZO0cY14fDFAEEmX8FdYWsJOvWwAwF89OOCVcmGWkCIXz9uR0lNNSf5mRLH6rlsIg6LQ1Rt6iXf1ct3B0qncZJVoLqEg6qM5sWrUlM0hIruiM386PBdj09aUdoLZtFOSGTq8HtK1bZKywX0RVvL/cBlejir2u4D9+qCjYnjoaY8Pd1CU6gKIz2BGvecpIIDU7qDRX0Nl881oJf7WOMYnTb/K9Wpkv7vtxXXjJsWTASB6Q8uVbVo/9UCunWqRlv18buunIcumZ5czt46gZSs64BTh7OjBwpJFnZwYU7+cCmTlyzB0028ZrXKcR6Jxe+mdgxxJQtOWIU4CrHzdYPP3Z2Y7fvi5GV+b7MXmWYgcopi0xiM2g+aARvh7kfhP0LUf0GAk5vu2l7qDTPpoSCY0ePUDpTunRVwzrnO6xE/NNFm5KCXcBHTJaLFT5yQWdHkrsOhs7L6co+ucCTKMJR9jRF+cCjMUwK2HW0MD1Tjh6gpVh+hPz2Q5NE+ApyBTrznDo9LbWHe79tHFIigACaXJOH/VUrXB1mMuxTbne1j+nqSltjZY235NX5UFFiGlfJDR69AHV5keOUEEkb+9wVHMac/UTouTm5wBmjEvpMh6oblKRUxnGb14reHzMaoSMNEtAheoac74HDkkRpZae4ZslHepeeb3De4DL6O1load9/JQ1nE1dJKCCNTmTPUmQUPi90kItobXDdxNpYCQe2F/tQXl96J+PUoD30jJwUdDZe7vsehTJ00Za1skpH4O6DO5SMu4CNj0eqTWyfCfwQF0zkFUR3qf3oWj0rjdCHZJqxE0YczF/PRpJ4zJyf+l8b3ayV5jrZ7W/RSQ6ZdkO6QGyfTvL3Giyye0zGx2KRu96gOqQTSaN6ugeKKpTUVQTBjkRgkaXgOroLS3ti4kH+L3hjjICKvS22cFodAmomDSXrKQzeGBPpQc1Nl/yBthvQ6NLQHWGlpY2xsQDFQ0q8qrCm/bZ0egSUDFpKllJZ/AAOYnM8GJS3sexotEloDpDS0sbY+aBAzUelNWFjknpBvnT6BJQMWsqWVFn8EC9G9hdHl5MyjtK+WWjS0B1hlaWNsbUA9mVbtQ2hWb7TKPU7anp8Eb9JaBi2lSyss7ggQjJCZ+90SWgOkMLSxtj5gGOS/zHmJQ7jMyJFsM0Gl0CKmZNJSvqTB4oqPGgJAJyQqfRJaA6UytLW2PmgcoGFfvCj0m10Oj/A9jGm+feuyEMAAAAAElFTkSuQmCC"},81378:function(ur){"use strict";ur.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAAA8CAYAAADGxTD9AAAAAXNSR0IArs4c6QAAFoFJREFUeF7tXQl4k1W6fv8sTbqvlJa2tJSy74ugsiMqq4AKIlDUueNwR2dGHR0XdLwixW3uuF6Xq3O9o15nxuUiIIsCsijK1pa20NJ937eke5tmmec7f/40TfInaUNK6+R7nj5Jk7Of93z/t55w8JBnBYbwCnBDeOyeoXtWAB4Ae0AwpFeA+1SWbbA1A07KQSID6JWT0ivAyThIpBwgBSQy4+fCq0T4jANnrEdlWFkpjK/0ndAetd/znpMaTO0LZcz74tsxti0xjqVXfeNYZcZyxvHSuK3GbDYX03iMbbLy5nOz+pzGbGDrwpfj52DQG2DQAwad8Gcwvudf9ToDQN/pDdBrDYBFWfqMry/UAytP9fjPjJ/rYVHf2L7Qph4GaA0tOj1UnBYqvd6gMugMKr0OKoOOq+UMhhQ5DGfHPRNWMaSRaxy8bQBzPGAZAI3AFMAoAIJtnBnA2WaagdlU39iOAKKeje85FKY2TYDkwWh+APi2ebD0AJ8HMn/AzAHFA4x9Jxwss7bN5yXUpbnwB4SvY3Nu9LmwLr36NIKWAEhA1BlMgOUBCAZYBtJe761Byx+A3vV54Av1efDrtUawm4G+N+D5MfUcHH5s7H890KnqNjRWNGkaqlXqhgp1VV1JwxkOSJUAqUB0xk4s0Q4FgIty4KEweM8Yba+ARCmBzBuQeksgVXKQKugVkAdIoRwhhU+EHJycg0GrNz01Whs6UJhegtLsCmi7tI0GYC8H7osYTPhuO2Z3D9a19gB4sO6Mm8flFSKBd4QcyuFS+MbKIfOWMM6v69KjIq8WhVlFaKpvAQeuFsCr/gh45wmsbXHzsPrcvAfAfV6yn18FjgN8YmUInKiAd4TMJObUlNQj42wWutq7SNtXA9zrIVC88nts7Bgsq+AB8GDZiUEyDrm/BAFj5PBLUAASniNnpeSgvLCSjZADl8dBev8ubD41GIbsAfBg2IVBOAaSnUNnK6GM5DlyQ5UKmSlZ6GjvJBiT5epdGRSP7MRGzbUcvgfA13L1h0DfPtFyBE9VMKuMVqNH2rl0NNapBG78vQ98b9+B2xuu1VQ8AL5WKz+E+pV6cQiaqoAyXAp9tx5pyZfQUNdoBDEKAG5VEhJzrsWUPAC+Fqs+RPsMnOgF3xg5dBod0i9eRmM9D2IAFYB03m5sKRnoqXkAPNArPsT7CxingE+UFDqdHpfSMtHYYJIecn2hnL8DG+sGcooeAA/kav9M+gpIkEMZJYdBq0PqxXS0NDcLMvEFKRTzB1Kx8wD4ZwKqgZ6G/2g5vCPlaGttR+rFZMaRiSSQvLILW58YqPF4ADxQK/1z64cDs05IlByqqiqRX5gvKHV6gLspCYknB2LKHgAPxCr/TPuQ+XAImOQFzsDh0pVLUDcJ5jWUSaGcuBMbW9099WsOYDKYU8Qbi5zqshnZ6e41uGrtSxScU3NQhErR1UBhae4hstkaBiiWzDtSykSJri4NLmYmQ6s1dfz6bmx7xD0z7Gn1mgN4bX48CyapP9eBI/NLXZ5v3JYAzHlnOGvnyMJSqNO7TG36xMjYe41KB22r+GGR+nC48aNIVrb4780o2+OYkYTOVWLRnijk/JcKee+qoVHzMqE5zXlvOGLW+0MRIsXBGUVouuweJ9bys7HwjpJBldaJk2vcH/brP9aLRb1V11aisLzAKEpwWimks3Zic4bLm2qngUED4K5GHWpOttuda+U3bSj83ya7ZeLvCcD1f+HBd3hOMVQXeQDL/DhsVI1l71MerUXOm/zjzhYRV1lfmsC+Sn28FtmviZcV6t/wUSRGbQ5g/575RRWKPuE1c3Ma8+sgXPcmf7gynqvH5d3OO7DkARIowigzwDEtPxcLryApmrK7cGqtYwB31evQ3Wx94Bz3xJcgOThwrBd0Wj1Ssi6gW8sfTA44swuJ8zje9ewWGjQAdmZ2OW+rkPIwRfeJ09UAsH+CHGuuxLNOzj9Yjfz37R8axTAp1hWPBnmsOuu02BtXCL3Ges8IhOvLRkPmI0FjSie+ud55u//YB4Iw+w0e/Febkh+qQe47apea9Y2VQeYrQXlNGcpqeubFQfKrJGz9wKXG7VQeNADuqNKi6FNrrmU+9rqfOlDxtf3HudMAfkuFmPV+iN0QgMyXG6BK6xE1gqYpsDI5jnX9071VKHYwrklPhWDa88NY+csvNiDj2XrRJZ/7fgRG3xfIvv8qrgAdFc4Jq4MdwHQoCcQkA6fmXIBOz8v4HNAog2zcc9gsviguoNutAKZHsdRHYnd4y76LgU+UHKr0TvxwFx+y54iIu7WX9Ww8SwGS8/mp8YkBmPNuBHv/7fwSHph6A0jBshQhVqbGIWiKAgUfqnFue42p22HzvHHzyZHs/+83VKB8r/ihoRQjkuMp6IVShvYlFGLyjlCEzVXanIZXiJS5Y4laizSij+78/2lisrRA8kAJCz53RKO2BLL+ic5tr0btaftiGZXrrNGhu6n/IoQwJt+RMrbOJTVFqG4030vJX3dj632Oxt6f790K4CWHohF5s29/xmW3DoH98Oyex9TY3wRh9mvij1f15S4cWVBiBWCBW2vb9fhqZIFpEyNv9sGSQzFsDCdWlqHqqDgIiIsv+DyKlS39/xac3lSJpd9EI+Im1+Z9+YUGZPyHbaYVMlOB0DneNtdo5J3+GL7Ih31HcraYtYPmXPSx/SdeXzeORAifETJ0dnYivTgFBoMgRpEMLF24G5tP97VNR+WHJIBL97TgtBm37i+AJV4c1hbEsywEc8XOHJRHl5Si7rTtBASZLwfi4n7xXmydT60rR8XBNkx/IQwhM3s4cMgsJVOqCDT1Z5xLZij6W7MowMxFFkcbLPZ9R7UWX8XwFoOrSd4jOUilMuRWZkHdZq78cpdliJ5xtZNFBwTAxAW+u7nMap1uOhbDTEo1p9qR8oh95Ywe9YJp68fESpT8oyc9K+x6JUas8GPtB09TIGoV/55Eg45qHTprtSj8qMmmFWLKs6GY8scwNOdqcGBSEas3KjEAN3xotGRcV9xLPjafBJnFEv4tyPTRsZtKUfu9NUBJTApf6NOrD1dAYw7gikOt0Hc7r+SHTFcys6W7AOwVLIFXoBQ16iqU1BdaTvOJ3dj2iitzt6w7IADuqNHiq2jr0357xWgow2UoP9CK8/9eDZ8YOXxjZPAZaXyNkcN7uBRHF5dh7gcRGH1vIHQaA/ZE5ovKjk4rcUYzmt9oOW7L5i0Ox28tQ/Xxdkz+YyimPhvGPvsyPA8albV8GLXaF4u+iu61nqIAPhGD8Pk+aM7R4MBk/pC4QuYA3juqAJo+yK/XvRUOkpPdBWB6qpHuo9F0I73sgsU0uTYZFOShc93gb2x5wAD89YQiDLteyUBKDgVSZGI3+bOUb0e0L6EAEx8PRfQaP6gyOnFytbhts68Apr5vOT0SYXO9Uba3BT9sqMSNn0QiblMAOuu12BNpffDIbLYqLY4dPnMSA/CKlFgET1UyRdVcdnc0b7HvB7MIQWP2jiJlk8OVqgy0a6wU4H27sW1df+d+zTjwiRXlTF60R6TFd1Rq0VbSjbYyLdpLu9FW2s2UoxG3+qK1RIumzC67GnN/AEwmqmlJw5D3ngppO+pBjgCSYet+bGfc35IW7olih4mIQK4M44EsBuC1hfHswDYkd+LECuv2zNunC0wcORXMAaxR060nzsNB6ith9mp3cWAaiVewFBQnUaEqRVVzudXgOEjWJGHrAedHLV5ywDjw/rGFWF86Gu2lWrSV8cCM3xbIjPoElB+3VjHw0gbaIsHlXPyPZvyUWCU6I0sAtxV3Y/QvApH332pRTxx56TgJZwLOBtUYyP0kKPhrE87dX92rL6k3hzvrEtiTgwBZ+HGTybsmBuCN6jHMyO8M0eElU5w9MgfwF2F5fTKBCXZodwKY3MoE4rauVmTX2vQkF4dCOfFqpOcPGIBtycArLsQieLoS3a16ZL/WaFOWkyo4hN3gjejVPMdLe7oOWa+YUlms9tkcwAR2Uuh0HXrsH1folCuZYgjWF4/m+9pRh6w/Wfe1+EAUgiYp8M0NJezJILiubQGYAmvu7hjnDHZZmeY8DQ5MtC8nmwOY5Gq6b81Z8o6UMYuIOwFM3gvv4TLGjDJqkqHVWcd8SICXdmHbU86OW6zcNQWwI/OX5aAJ6IdnFqO1yPZNR8RJJz8dhomPhfSqShz/4NQipwAcscwHSw/zNuDv76hA+X5rJwYFDJFtmQKFzA+MLQCbx1VUHmlD9bE2m3sx/qFg5tBRZ3bh0PRipzlwfwHgVgADkAdL2F1zZc1FqG/v/RQzjrmbg9e0JGy60t85UD23AniZUfsmj9P+sdZchTRWAgxxMb943jtli7Tt5HnrRsnnLWg4T/cS9KaEXwZi5EZ/pulLjB45KkHyYe7bauS8pWIXdDgTzDPrtXCM+00w62BPTD46q+2HPToCcNQqXyzay1srLM1/5rNYkRyL4GlKNKZ24pu59mMkzDnwoZnF0DQ5H5o546VhzH3ubgBLlRLI/Tk0dzQjX51pc185cCeTkLhk0AL4ttxR8BvlxdyZx5bwygu5Q8l1KRDJpxTk0pKnYU4Aoti7/EEu1/Zyba/YB3Kn2nJ5Lvh8BAtTtKRvbyxBwwUe8M5Go60rjudd2xmdODzLcbCNIwBPfT4Mk5/iXbv2QihXpsUxsaTuTAeOLrRvZTIHcOmXLcy06CyRJYgcL+4GMF1XJQ+RsvvWLjcmQ0fXadogCbh7diHxY2fHb1nOrRz4rtYxTNkp+byZhQ7OejUc4Yt9cHBKEVryeDFAUM7MvWurMuIQOEGB6hNtOH4Lr8WS6eq23HhUHm5F+tP1vcSIcb8NwqQdoaDNNHQD437Lc1BnwinZ3b7G8xS+0BvLvuNjILLfaETqY44TbB0BeOmRaEQs8WXOhs8CckUDzVdfHoWAcV6oOtYGstjYo8FuRhPGToyJ4lRKW4rQ2NUTa2I+N7o8UAq/cTuxvl/hcG4DMGUd3FHNx9ReebWRKV7ktiVtPPcdFZIf4j1vzgJ4WlIYJj0RCl0nKWRFzGIhELl0dZ383bt9MaORy3j6i8NwfHk5yFohgI3abS3U4OCMYuja7XM3ewCmw3Fn3RjQfWP15ztwZJ44Z70tLx5+cXKTLdpZAP90TxW0rc4H4ox9MAgRS33dzoFp/BTYQ0p4i6YZha1Z9qb03m5s+3V/uLDbAEw3uaxM4e2+KY/VIucNFWb+aRjGPxzCrA57YwuY2coZAFMg9205o9j9tln/2Yi0p8Q5oxiAzZUpciuTB45kZqLkR2qgvtSFZcd47isQZVc4cnHbA/DIDf6Y/7cRrDlH1hMyMZKFoOj/mnDmvt5KD3FmWk+BYtb5IXYjHzx/9pdVIB3BWRqzPYgF+5B+cP6BHq6ozuhinsKrSSRGyPwl7B7izJZU6ETynDhAL4X0hp3Ycr6v/bsNwObKy+m7K9njnUxUxIVJO039Qy2yX1c5BeDrP4xAfGIgU1b2jym06doVJi4GYOK0ltYJqlN9vA2Xkhow+9VwZtKjCKqa4+0smozeH1taJhrMQ/XtAfjmUyMx7EY+auzriYUmscnWJt1Zn8BiCLLfVCH10d5xIRMeDcaMl8L7urd9Kn/xyVpc+bPjzJM+NUpc2FsCCQeUdRRA1S3OeDjg4lQor9uIjc5rpO60Qlz39nCM+RUf6GKuTC3aH4WoFX4sFpZEgbV5fE6cmAx8OanBJJemP1uHzBfFbcCWgBJkYP8xcqzJ4uMdiAiYFBif+VIjU/JINhfk5rz31YzDr8kZxTxsZJc9NKNYNFlTDMAhsxRYfpZ/AjnjQt7UOZYd7LRn6pD1cu85DmUAc3L6SQgJ2rXNKOiwK0ZQbu9Du7Dtzb4cErdwYDLe316eAJKDyQa7L77HsxS9zg8Lv4hC7Q/tOL25EreejrULYJKdKZWGLBDkzeuLTGquxJFiSMmHJZ+1IOvlBjRl8Y9LYTz0XrAXU8KneQaEvYMjBmDzWGjhCSS2MaSg3lHJ6wskEhR+ZB2nS8qQJUUs8wVF01Ecx8Wn6pD9qu3DPeU53hJCQVXkkcx/X42uut6MTswD2hcwiZUlzxz9NkduZxq6DeJiCgeu2RsY/zTsuFotOnELgEes9MXifbzt0zLFhsBNFgaSOYmckYFJGfIf44XmbMcy2vTdYSzwh+jgtCITUClIvTmvmylrAo1Y7osFX45glhLiyidXlZuC16nPVem8ZYBk9q8nFNq0CdsCsLmVwBnuO/EPIZj+Ap+SRFkkDeesbd3CmAkMI1b4ghwfw+bxMjwRJcSeWF1u/aTggDlvDwc5X8htT0Q28eK/tzD7OMm+7ibBNl+tKUO9zn7WDQd8loRtm5wdk1sALERz0SBI9qOYh/GP8KYtSxKi0djPTxnjWsnBwXEcA5Wt5Ehq48y91UyuJgpf5I15n4xgSiEBjoiSK/dEFYgGukTe4ouFe3rAe+GBGuT/pXfyprkcbysugvqxBDB9tvRIDBMHaPxkEqv+js/oGLbAGzNfCYeuXQ9dFz9fUlDDjNkVFAdB4ZZkUbEkGi/FKUet9mNxGgK1FGhw8ck6u2lPVJZMWgRicvpQZJwJ+KfaWYZ2OeUaOq8LOosvVo7iTCgxuVuvQW53msO6UnC3PI/Eow4LuksGnvnncIz/XTDqz3bgyIJSZqqypUA5M0CxMj9urWTiABFpuhvqE/iFMpKjDGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(ur,Zt,Je){"use strict";Je.d(Zt,{Z:function(){return ie}});const ze=oe=>typeof oe=="object"&&oe!=null&&oe.nodeType===1,Ct=(oe,ee)=>(!ee||oe!=="hidden")&&oe!=="visible"&&oe!=="clip",y=(oe,ee)=>{if(oe.clientHeight<oe.scrollHeight||oe.clientWidth<oe.scrollWidth){const le=getComputedStyle(oe,null);return Ct(le.overflowY,ee)||Ct(le.overflowX,ee)||(E=>{const ne=(te=>{if(!te.ownerDocument||!te.ownerDocument.defaultView)return null;try{return te.ownerDocument.defaultView.frameElement}catch(se){return null}})(E);return!!ne&&(ne.clientHeight<E.scrollHeight||ne.clientWidth<E.scrollWidth)})(oe)}return!1},Te=(oe,ee,le,E,ne,te,se,ue)=>te<oe&&se>ee||te>oe&&se<ee?0:te<=oe&&ue<=le||se>=ee&&ue>=le?te-oe-E:se>ee&&ue<le||te<oe&&ue>le?se-ee+ne:0,be=oe=>{const ee=oe.parentElement;return ee==null?oe.getRootNode().host||null:ee},x=(oe,ee)=>{var le,E,ne,te;if(typeof document=="undefined")return[];const{scrollMode:se,block:ue,inline:fe,boundary:me,skipOverflowHiddenElements:ve}=ee,he=typeof me=="function"?me:nt=>nt!==me;if(!ze(oe))throw new TypeError("Invalid target");const ge=document.scrollingElement||document.documentElement,xe=[];let Ce=oe;for(;ze(Ce)&&he(Ce);){if(Ce=be(Ce),Ce===ge){xe.push(Ce);break}Ce!=null&&Ce===document.body&&y(Ce)&&!y(document.documentElement)||Ce!=null&&y(Ce,ve)&&xe.push(Ce)}const je=(E=(le=window.visualViewport)==null?void 0:le.width)!=null?E:innerWidth,Ee=(te=(ne=window.visualViewport)==null?void 0:ne.height)!=null?te:innerHeight,{scrollX:ce,scrollY:ye}=window,{height:we,width:De,top:Re,right:ke,bottom:_e,left:Ze}=oe.getBoundingClientRect(),{top:Ve,right:Qe,bottom:ut,left:Ie}=(nt=>{const Xe=window.getComputedStyle(nt);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(oe);let We=ue==="start"||ue==="nearest"?Re-Ve:ue==="end"?_e+ut:Re+we/2-Ve+ut,it=fe==="center"?Ze+De/2-Ie+Qe:fe==="end"?ke+Qe:Ze-Ie;const at=[];for(let nt=0;nt<xe.length;nt++){const Xe=xe[nt],{height:et,width:Ye,top:dt,right:tt,bottom:lt,left:st}=Xe.getBoundingClientRect();if(se==="if-needed"&&Re>=0&&Ze>=0&&_e<=Ee&&ke<=je&&(Xe===ge&&!y(Xe)||Re>=dt&&_e<=lt&&Ze>=st&&ke<=tt))return at;const He=getComputedStyle(Xe),Ne=parseInt(He.borderLeftWidth,10),Ge=parseInt(He.borderTopWidth,10),Me=parseInt(He.borderRightWidth,10),Ke=parseInt(He.borderBottomWidth,10);let ct=0,pt=0;const rt="offsetWidth"in Xe?Xe.offsetWidth-Xe.clientWidth-Ne-Me:0,Ae="offsetHeight"in Xe?Xe.offsetHeight-Xe.clientHeight-Ge-Ke:0,Pe="offsetWidth"in Xe?Xe.offsetWidth===0?0:Ye/Xe.offsetWidth:0,Ue="offsetHeight"in Xe?Xe.offsetHeight===0?0:et/Xe.offsetHeight:0;if(ge===Xe)ct=ue==="start"?We:ue==="end"?We-Ee:ue==="nearest"?Te(ye,ye+Ee,Ee,Ge,Ke,ye+We,ye+We+we,we):We-Ee/2,pt=fe==="start"?it:fe==="center"?it-je/2:fe==="end"?it-je:Te(ce,ce+je,je,Ne,Me,ce+it,ce+it+De,De),ct=Math.max(0,ct+ye),pt=Math.max(0,pt+ce);else{ct=ue==="start"?We-dt-Ge:ue==="end"?We-lt+Ke+Ae:ue==="nearest"?Te(dt,lt,et,Ge,Ke+Ae,We,We+we,we):We-(dt+et/2)+Ae/2,pt=fe==="start"?it-st-Ne:fe==="center"?it-(st+Ye/2)+rt/2:fe==="end"?it-tt+Me+rt:Te(st,tt,Ye,Ne,Me+rt,it,it+De,De);const{scrollLeft:ot,scrollTop:Oe}=Xe;ct=Ue===0?0:Math.max(0,Math.min(Oe+ct/Ue,Xe.scrollHeight-et/Ue+Ae)),pt=Pe===0?0:Math.max(0,Math.min(ot+pt/Pe,Xe.scrollWidth-Ye/Pe+rt)),We+=Oe-ct,it+=ot-pt}at.push({el:Xe,top:ct,left:pt})}return at},z=oe=>oe===!1?{block:"end",inline:"nearest"}:(ee=>ee===Object(ee)&&Object.keys(ee).length!==0)(oe)?oe:{block:"start",inline:"nearest"};function ie(oe,ee){if(!oe.isConnected||!(ne=>{let te=ne;for(;te&&te.parentNode;){if(te.parentNode===document)return!0;te=te.parentNode instanceof ShadowRoot?te.parentNode.host:te.parentNode}return!1})(oe))return;const le=(ne=>{const te=window.getComputedStyle(ne);return{top:parseFloat(te.scrollMarginTop)||0,right:parseFloat(te.scrollMarginRight)||0,bottom:parseFloat(te.scrollMarginBottom)||0,left:parseFloat(te.scrollMarginLeft)||0}})(oe);if((ne=>typeof ne=="object"&&typeof ne.behavior=="function")(ee))return ee.behavior(x(oe,ee));const E=typeof ee=="boolean"||ee==null?void 0:ee.behavior;for(const{el:ne,top:te,left:se}of x(oe,z(ee))){const ue=te-le.top+le.bottom,fe=se-le.left+le.right;ne.scroll({top:ue,left:fe,behavior:E})}}}}]);