var e=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(t,i,r)=>i in t?e(t,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[i]=r,c=(e,t)=>{for(var i in t||(t={}))a.call(t,i)&&l(e,i,t[i]);if(n)for(var i of n(t))s.call(t,i)&&l(e,i,t[i]);return e},u=(e,t)=>r(e,o(t));const d="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");class p{static uuid(e="D"){let t,i=[];i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(let r=0;r<36;r++)i[r]||(t=0|16*Math.random(),i[r]=d[19==r?3&t|8:t]);return e+"-"+i.join("")}static merge(e,...t){let i,r,o,n;for(r=0,o=t.length;r0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(i)}static addClass(e,t){if(void 0!==e.classList){let i=p.splitWords(t);for(let t=0,r=i.length;t\n\t\t\t比例尺:\n\t\t\t\n\t\t\t\t${this._scale}\n\t\t\t\n\t\t\n\t\t\n\t\t\t空间信息\n\t\t\t刷帧率:|\n\t\t\n\t\t`}get show(){return this._show}set show(e){e?this.createStatusBar():this.removeStatusBar(),this._show=e}initListener(){const e=this,t=this._viewer.scene;this._scaleListener=function(){let i=t.canvas.clientWidth,r=t.canvas.clientHeight,o=t.camera.getPickRay(new Cesium.Cartesian2(i/2|0,r-1)),n=t.camera.getPickRay(new Cesium.Cartesian2(1+i/2|0,r-1)),a=t.globe,s=a.pick(o,t),l=a.pick(n,t);if(s&&l){let t=new Cesium.EllipsoidGeodesic,i=a.ellipsoid.cartesianToCartographic(s),r=a.ellipsoid.cartesianToCartographic(l);t.setEndPoints(i,r);let o=t.surfaceDistance,n=e.closest(o/10);e._scale=n<1?1e3*n+"m":n+"km"}document.getElementsByClassName("scale-border")[0].innerText=e._scale,document.getElementsByClassName("cesium-performanceDisplay-ms").length>0&&(document.getElementById("status_ms").innerText=document.getElementsByClassName("cesium-performanceDisplay-ms")[0].innerText),document.getElementsByClassName("cesium-performanceDisplay-fps").length>0&&(document.getElementById("status_fps").innerText=document.getElementsByClassName("cesium-performanceDisplay-fps")[0].innerText)}}createStatusBar(){const e=this._viewer;this.initHandler(e),this.initScale(e,!0),this._domContainer=h.create("div","lk-status-bar",document.getElementById(this._viewer._container.id)),this._domContainer.innerHTML=this.statusDom}removeStatusBar(){this.initScale(this._viewer,!1),this._handler&&this._handler.destroy(),this._domContainer&&h.remove(this._domContainer)}initHandler(e){const t=this;this._handler=new Cesium.ScreenSpaceEventHandler(e.scene.canvas);this._handler.setInputAction((function(i){let r=i.endPosition;const o=e.scene.camera.pickEllipsoid(r,e.scene.globe.ellipsoid);if(o){let i=Cesium.Cartographic.fromCartesian(o);t._posX=Cesium.Math.toDegrees(i.longitude).toFixed(8),t._posY=Cesium.Math.toDegrees(i.latitude).toFixed(8),t._posZ=Cesium.Math.toDegrees(i.height).toFixed(2);const r=e.camera.positionCartographic.height;t._cameraHeight=r<1e3?r.toFixed(2)+"m":(r/1e3).toFixed(2)+"km",t._pitch=Number(e.scene.camera.pitch).toFixed(2),t._heading=Number(e.scene.camera.heading).toFixed(2),document.getElementById("status_spaceInfo").innerHTML=`\n\t\t\t\t经度:${t._posX}\n\t\t\t\t纬度:${t._posY}\n\t\t\t\t相机高度:${t._cameraHeight}\n\t\t\t\t`}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}initScale(e,t){const i=e.scene;t?i.postRender.addEventListener(this._scaleListener):i.postRender.removeEventListener(this._scaleListener)}closest(e){const t=[.001,.002,.003,.005,.01,.015,.02,.025,.03,.035,.04,.045,.05,.06,.07,.08,.09,.1,.12,.15,.2,.25,.3,.5,1,2,3,5,10,15,20,25,30,35,40,45,50,60,70,80,90,100,120,150,200,250,300,500,1e3,2e3,5e3,1e4,1e5,5e5,1e6];let i=t[0],r=Math.abs(i-e);for(let o=1;o{new Cesium.sampleTerrainMostDetailed(r,i).then((function(t){e(t)}))}))}var _=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",setSessionid:m,guid:function(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},getGuid:g,getHeigthByLngLat:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t.longitude)&&!Cesium.defined(t.latitude))throw new Cesium.DeveloperError("longitude and latitude are required.");t.level=Cesium.defaultValue(t.level,11);let i=Cesium.Cartographic.fromDegrees(t.longitude,t.latitude),r=e.terrainProvider;return new Promise(((e,o)=>{new Cesium.sampleTerrain(r,t.level,[i]).then((function(t){t&&e(t[0].height)}))}))},getHeigthByPoints:function(e,t){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!Cesium.defined(t))throw new Cesium.DeveloperError("options is required.");t.level=Cesium.defaultValue(t.level,11);let i=[],r=t.points;for(let n=0;n{new Cesium.sampleTerrain(o,t.level,i).then((function(t){t&&e(t)}))}))},getHeigthByPointsMostDetailed:v});class b{constructor(e){if(!Cesium.defined(e)||!Cesium.defined(e.container))throw new Cesium.DeveloperError("options.container is required.");Cesium.Ion.defaultAccessToken="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxNzM5YjQ3MC03YmMxLTRmMjAtOTk4Yi0yNDMyMDZlOTQzYTYiLCJpZCI6NTU5MjAsImlhdCI6MTYyNDI0NTM5NX0.diydVWFzw5C5rQlHaFYkdDJoSorcdex81KpWcntyICo",this._viewer=this._initMap(e),this._imageryLayers=this._viewer.imageryLayers,this._primitives=this._viewer.scene.primitives,this._entities=this._viewer.entities,this._dataSources=this._viewer.dataSources,this._defaultSkyBox=this._viewer.scene.skyBox,this.statusBar=new f(this._viewer),console.log(Cesium.buildModuleUrl.getCesiumBaseUrl())}_initMap(e){var t=new Cesium.SingleTileImageryProvider({url:"jt3dSDK/imgs/earth_3.jpg"});if(Cesium.defined(e.imageryProviderType)){if(!Cesium.defined(e.imageryProviderUrl))throw new Cesium.DeveloperError("imageryProviderType and imageryProviderUrl are required.");"SingleTileImageryProvider"==e.imageryProviderType?t=new Cesium.SingleTileImageryProvider({url:e.imageryProviderUrl}):"OpenStreetMapImageryProvider"==e.imageryProviderType?t=new Cesium.OpenStreetMapImageryProvider({url:e.imageryProviderUrl}):"ArcGisMapServerImageryProvider"==e.imageryProviderType&&(t=new Cesium.ArcGisMapServerImageryProvider({url:e.imageryProviderUrl}))}let i=new Cesium.Viewer(e.container,{animation:!0,timeline:!0,shadows:!1,shouldAnimate:!0,baseLayerPicker:!1,navigationHelpButton:!1,homeButton:!1,fullscreenButton:!1,sceneModePicker:!1,scene3DOnly:!0,infoBox:!1,clampToGround:!0,geocoder:!1,imageryProvider:t,selectionIndicator:!1,contextOptions:{webgl:{alpha:!0,depth:!0,stencil:!0,antialias:!0,premultipliedAlpha:!0,preserveDrawingBuffer:!0,failIfMajorPerformanceCaveat:!0}}});function r(e,t,i){var r=new Cesium.JulianDate;Cesium.JulianDate.addHours(e,8,r);var o,n=Cesium.JulianDate.toGregorianDate(r);if(i)o="";else if(o=new Date(n.year,n.month-1,n.day),o=n.year+"-"+o.toLocaleString("zh-cn",{month:"short"}).split("月").join("-")+n.day+" ",t||n.hour+n.minute===0)return o;let a,s,l;return a=n.hour<10?`0${n.hour}`:n.hour,s=n.minute<10?`0${n.minute}`:n.minute,l=n.second<10?`0${n.second}`:n.second,o+a+":"+s+":"+l}return i._cesiumWidget._creditContainer.style.display="none",i.scene.globe.show=!0,i.scene.globe.depthTestAgainstTerrain=!0,i.scene.globe.enableLighting=!1,i.scene.requestRenderMode=!1,i.scene.debugShowFramesPerSecond=!0,i.scene.skyAtmosphere.show=!1,i.scene.skyBox.show=!0,i.scene.sun.show=!0,i.scene.moon.show=!1,i.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),i.animation.viewModel.dateFormatter=r,i.animation.viewModel.timeFormatter=function(e,t){return r(e,t,!0)},i.timeline.makeLabel=r,i}_setView(e){if(!Cesium.defined(e.longitude)&&!Cesium.defined(e.latitude))throw new Cesium.DeveloperError("longitude and latitude are required.");Cesium.Check.typeOf.number("longitude",e.longitude),Cesium.Check.typeOf.number("latitude",e.latitude),this._viewer.camera.setView({destination:Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),orientation:{heading:Cesium.Math.toRadians(Cesium.defaultValue(e.heading,0)),pitch:Cesium.Math.toRadians(Cesium.defaultValue(e.pitch,-90)),roll:e.roll}})}_getChinaPostion(){return Cesium.Cartesian3.fromDegrees(116.435314,40.960521,1e7)}_flytoChina(){this._viewer.camera.flyTo({destination:this._getChinaPostion(),duration:8})}}Object.assign(b.prototype,{setViewChina:function(){this._setView({longitude:103.84,latitude:31.15,height:24e6,heading:0,pitch:-90,roll:0})},fullMap:function(e){return new Promise(((t,i)=>{let r=this;this._entities.removeById("fullMapRectangle"),e.isRemove=Cesium.defaultValue(e.isRemove,!0),e.duration=Cesium.defaultValue(e.duration,3),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,-90),e.range=Cesium.defaultValue(e.range,0);var o=Cesium.Rectangle.fromDegrees(e.west,e.south,e.east,e.north),n=this._entities.add({id:"fullMapRectangle",name:"fullMapRectangle",rectangle:{coordinates:o,material:Cesium.Color.GREEN.withAlpha(0),height:10,outline:!1}});this._viewer.flyTo(n,{duration:e.duration,offset:{heading:Cesium.Math.toRadians(e.heading),pitch:Cesium.Math.toRadians(e.pitch),range:e.range}}).then((function(i){i&&(e.isRemove&&n&&(r._entities.remove(n),n=null),t(!0))})).catch((function(e){console.log(e)}))}))},setMapNorth(){let e=this._viewer,t=Cesium.Math.toDegrees(e.camera.pitch).toFixed(0);var i=e.camera.pickEllipsoid(new Cesium.Cartesian2(e.canvas.clientWidth/2,e.canvas.clientHeight/2)),r=Cesium.Ellipsoid.WGS84.cartesianToCartographic(i);let o=180*r.longitude/Math.PI,n=180*r.latitude/Math.PI,a=180*e.camera.positionCartographic.longitude/Math.PI,s=180*e.camera.positionCartographic.latitude/Math.PI,l=e.camera.positionCartographic.height.toFixed(0);var c=Cesium.Cartographic.fromDegrees(a,s,l),u=Cesium.Cartographic.fromDegrees(o,n,0),d=new Cesium.EllipsoidGeodesic;d.setEndPoints(c,u);var p=d.surfaceDistance;let h=Math.sqrt(Math.pow(p,2)+Math.pow(l-0,2));this.centerEntity&&e.entities.remove(this.centerEntity),this.centerEntity=e.entities.add({position:Cesium.Cartesian3.fromDegrees(o,n,0),point:{color:Cesium.Color.RED,pixelSize:1}});let f=new Cesium.HeadingPitchRange(Cesium.Math.toRadians(0),Cesium.Math.toRadians(t),h);e.zoomTo(this.centerEntity,f)},setMapSpinByPoint(e,t){let i=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");(t=t||{}).speed=Cesium.defaultValue(t.speed,30);var r=e;r=e instanceof Cesium.Cartesian3?e:Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0);var o=i.entities.add(new Cesium.Entity({point:new Cesium.PointGraphics({color:new Cesium.Color(1,1,0),pixelSize:6,outlineColor:new Cesium.Color(0,1,1)}),position:r})),n=360/t.speed,a=i.camera.heading,s=i.camera.pitch;t.pitch&&(s=Cesium.Math.toRadians(t.pitch));var l=i.camera.positionCartographic.height;t.pitch&&(s=t.height);var c=Cesium.JulianDate.fromDate(new Date);i.clock.startTime=c.clone(),i.clock.currentTime=c.clone(),i.clock.clockRange=Cesium.ClockRange.CLAMPED,i.clock.clockStep=Cesium.ClockStep.SYSTEM_CLOCK;var u=function(){var e=Cesium.JulianDate.secondsDifference(i.clock.currentTime,i.clock.startTime),t=Cesium.Math.toRadians(e*n)+a;i.scene.camera.setView({destination:r,orientation:{heading:t,pitch:s}}),i.scene.camera.moveBackward(l),Cesium.JulianDate.compare(i.clock.currentTime,i.clock.stopTime)>=0&&i.clock.onTick.removeEventListener(u),new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(e){i.clock.onTick.removeEventListener(u),i.entities.remove(o)}),Cesium.ScreenSpaceEventType.LEFT_DOWN)};i.clock.onTick.addEventListener(u)}});const y=52.35987755982988,w=3.141592653589793,x=.006693421622965943;class C{static BD09ToGCJ02(e,t){let i=+e-.0065,r=+t-.006,o=Math.sqrt(i*i+r*r)-2e-5*Math.sin(r*y),n=Math.atan2(r,i)-3e-6*Math.cos(i*y);return[o*Math.cos(n),o*Math.sin(n)]}static GCJ02ToBD09(e,t){t=+t,e=+e;let i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*y),r=Math.atan2(t,e)+3e-6*Math.cos(e*y);return[i*Math.cos(r)+.0065,i*Math.sin(r)+.006]}static WGS84ToGCJ02(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[e+i[0],t+i[1]]}}static GCJ02ToWGS84(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];{let i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}}static delta(e,t){let i=this.transformLng(e-105,t-35),r=this.transformLat(e-105,t-35);const o=t/180*w;let n=Math.sin(o);n=1-x*n*n;const a=Math.sqrt(n);return i=180*i/(6378245/a*Math.cos(o)*w),r=180*r/(6378245*(1-x)/(n*a)*w),[i,r]}static transformLng(e,t){let i=300+(e=+e)+2*(t=+t)+.1*e*e+.1*e*t+.1*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*w)+20*Math.sin(2*e*w))/3,i+=2*(20*Math.sin(e*w)+40*Math.sin(e/3*w))/3,i+=2*(150*Math.sin(e/12*w)+300*Math.sin(e/30*w))/3,i}static transformLat(e,t){let i=2*(e=+e)-100+3*(t=+t)+.2*t*t+.1*e*t+.2*Math.sqrt(Math.abs(e));return i+=2*(20*Math.sin(6*e*w)+20*Math.sin(2*e*w))/3,i+=2*(20*Math.sin(t*w)+40*Math.sin(t/3*w))/3,i+=2*(160*Math.sin(t/12*w)+320*Math.sin(t*w/30))/3,i}static out_of_china(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}static getCatesian3FromPX(e,t){let i=e.scene.drillPick(t),r=null,o=!1,n=!1;for(let s in i){let n=i[s];if((n&&n.primitive instanceof Cesium.Cesium3DTileFeature||n&&n.primitive instanceof Cesium.Cesium3DTileset||n&&n.primitive instanceof Cesium.Model)&&(o=!0),o&&(e.scene.pick(t),r=e.scene.pickPosition(t),r)){let e=Cesium.Cartographic.fromCartesian(r);e.height<0&&(e.height=0);let t=Cesium.Math.toDegrees(e.longitude),i=Cesium.Math.toDegrees(e.latitude),o=e.height;r=this.transformWGS84ToCartesian({lng:t,lat:i,alt:o})}}let a=e.terrainProvider instanceof Cesium.EllipsoidTerrainProvider;if(!o&&!a){let i=e.scene.camera.getPickRay(t);if(!i)return null;r=e.scene.globe.pick(i,e.scene),n=!0}if(o||n||!a||(r=e.scene.camera.pickEllipsoid(t,e.scene.globe.ellipsoid)),r){let e=this.transformCartesianToWGS84(r);return e.alt<0&&(r=this.transformWGS84ToCartesian(e,.1)),r}return!1}static transformWGS84ToCartesian(e,t){return e?Cesium.Cartesian3.fromDegrees(e.lng||e.lon,e.lat,e.alt=t||e.alt,Cesium.Ellipsoid.WGS84):Cesium.Cartesian3.ZERO}static transformCartesianToWGS84(e){let t=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e);return{lng:Cesium.Math.toDegrees(t.longitude),lat:Cesium.Math.toDegrees(t.latitude),alt:t.height}}static Cartesian3ListToWGS84(e){let t=Cesium.Ellipsoid.WGS84,i=[];for(let r=0;r{this._transformProjection(r)}));let o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addTileMapServiceImagery:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url};e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);var r=new Cesium.TileMapServiceImageryProvider(i);let o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addWebMapTileService:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");if(!Cesium.defined(e.layers))throw new Cesium.DeveloperError("options.layers is required.");if(!Cesium.defined(e.style))throw new Cesium.DeveloperError("options.style is required.");if(!Cesium.defined(e.tileMatrixSetID))throw new Cesium.DeveloperError("options.tileMatrixSetID is required.");e.id=e.id||this._guid();let i={url:e.url,layer:e.layers,style:e.style,tileMatrixSetID:e.tileMatrixSetID,format:Cesium.defaultValue(e.format,"image/png")};e.tileMatrixLabels&&(i.tileMatrixLabels=e.tileMatrixLabels),e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);let r=new Cesium.WebMapTileServiceImageryProvider(i),o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addWebMapService:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");if(!Cesium.defined(e.layers))throw new Cesium.DeveloperError("options.layers is required.");e.id=e.id||this._guid();let i={url:e.url,layer:e.layers,parameters:{transparent:!0,request:"GetMap",format:"image/png"}};e.minimumLevel&&(i.minimumLevel=e.minimumLevel),e.maximumLevel&&(i.maximumLevel=e.maximumLevel);let r=new Cesium.WebMapServiceImageryProvider(i),o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addArcGisMapServer:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url};e.layers&&(i.layers=e.layers);let r=new Cesium.ArcGisMapServerImageryProvider(i),o=this._addImageryProvider(e.id,r);this.setLayersStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addCesium3DTileset:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i={url:e.url,skipLevelOfDetail:!0},r=new Cesium.Cesium3DTileset(i),o=this._addScenePrimitives(e.id,r);this.set3DTilePosition({serviceId:o,height:e.height}),this.set3DTileStyle({serviceId:o,alpha:e.alpha}),t&&t(o)},addCesium3DTilesetBm:function(e,t){if(!Cesium.defined(e)||!Cesium.defined(e.url))throw new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid();let i=new Cesium.Cesium3DTileset({url:e.url,skipLevelOfDetail:!0}),r=this._addScenePrimitives(e.id,i);this.set3DTileBMStyle({serviceId:r,color:e.color}),t&&t(r)},addPolygonImageMaterial:function(e,t){if(!Cesium.defined(e.points))throw new Cesium.DeveloperError("options.points is required.");e.points.length<3&&reject("面对象,点数至少3个");let i=[];i=e.points instanceof Cesium.Cartesian3?e.points:e.points.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),e.id=e.id||this._guid(),e.alpha=e.alpha||1,this.classificationType=Cesium.ClassificationType.BOTH,"Terrain"===e.classificationType?this.classificationType=Cesium.ClassificationType.TERRAIN:"3DTiles"===e.classificationType&&(this.classificationType=Cesium.ClassificationType.CESIUM_3D_TILE),e.url?(Cesium.Entity.supportsMaterialsforEntitiesOnTerrain(this._viewer.scene)||window.alert("Terrain Entity materials are not supported on this platform"),this.material=new Cesium.ImageMaterialProperty({image:e.url,repeat:Cesium.Cartesian2(1,1),transparent:!0,color:Cesium.Color.WHITE.withAlpha(e.alpha)})):this.material=Cesium.Color.RED.withAlpha(e.alpha),window[e.id]=this._viewer.entities.add({id:e.id,polygon:{hierarchy:i,material:this.material,classificationType:this.classificationType}}),t&&t(e.id)},addEntitiesGltf:function(e,t){let i,r=this._viewer;if(!Cesium.defined(e.points))throw resolve("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,0),e.roll=Cesium.defaultValue(e.roll,0),e.alpha=Cesium.defaultValue(e.alpha,1),i=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);var o=Cesium.Math.toRadians(e.heading),n=e.pitch,a=e.roll,s=new Cesium.HeadingPitchRoll(o,n,a),l=r.entities.add({id:e.id,position:i,orientation:Cesium.Transforms.headingPitchRollQuaternion(i,s),model:{uri:e.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(e.alpha),imageBasedLightingFactor:new Cesium.Cartesian2(12,13),runAnimations:!0,show:!0,debugWireframe:!1,debugShowBoundingVolume:!1}});e.minimumPixelSize&&(l.model.minimumPixelSize=e.minimumPixelSize),e.maximumScale&&(l.model.maximumScale=e.maximumScale),e.silhouetteColor&&(l.model.silhouetteColor=new Cesium.Color(e.silhouetteColor[0]/255,e.silhouetteColor[1]/255,e.silhouetteColor[2]/255,e.silhouetteColor[3])),window[e.id]=l,t&&t(e.id)},addScenePrimitivesGltf(e,t){let i,r=this._viewer;if(!Cesium.defined(e.points))throw resolve("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.scale=Cesium.defaultValue(e.scale,1),i=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);const o=Cesium.Transforms.eastNorthUpToFixedFrame(i);let n=r.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:e.url,modelMatrix:o,lightColor:new Cesium.Cartesian3(10,10,10),debugWireframe:!1,debugShowBoundingVolume:!1}));n.readyPromise.then((function(){var e=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(0)));Cesium.Matrix4.multiply(n.modelMatrix,e,n.modelMatrix)})),window[e.id]=n,t&&t(e.id)},addPolylineByGeoJson(e,t){let i=this;if(this._viewer,!Cesium.defined(e.url))throw resolve("options.url is required."),new Cesium.DeveloperError("options.url is required.");e.id=e.id||this._guid(),e.clampToGround=Cesium.defaultValue(e.clampToGround,!0),e.width=Cesium.defaultValue(e.width,3),e.minHeigh=Cesium.defaultValue(e.minHeigh,0),e.maxHeigh=Cesium.defaultValue(e.maxHeigh,2e8),Cesium.GeoJsonDataSource.load(e.url,{clampToGround:e.clampToGround}).then((r=>{i._viewer.dataSources.add(r),r.name=e.id;let o=r.entities.values,n=new k(e);for(var a=0;a{e.billboard={image:o.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:o.scale,pixelOffset:new Cesium.Cartesian2(0,o.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY};let t=n.text;e.properties[n.textField]&&(t=e.properties[n.textField]._value),""===t&&(t=(i+1).toString()),e.label={text:t.toString(),font:n.font,fillColor:n.fillColor,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:n.showBackground,backgroundColor:n.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,n.pixelOffset),scale:n.scale},n.scaleByDistance&&(n.scaleByDistance.near=Cesium.defaultValue(n.scaleByDistance.near,0),n.scaleByDistance.nearValue=Cesium.defaultValue(n.scaleByDistance.nearValue,0),n.scaleByDistance.far=Cesium.defaultValue(n.scaleByDistance.far,1),n.scaleByDistance.farValue=Cesium.defaultValue(n.scaleByDistance.farValue,0),e.label.scaleByDistance=new Cesium.NearFarScalar(n.scaleByDistance.near,n.scaleByDistance.nearValue,n.scaleByDistance.far,n.scaleByDistance.farValue))})),t&&t(e.id)}))}}),Object.assign(T.prototype,{set3DTileStyle(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),window[e.serviceId].style=new Cesium.Cesium3DTileStyle({color:"color('rgba(255,255,255,"+e.alpha+")')"})},set3DTileBMStyle:function(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");e.color=e.color?"vec4("+e.color[0]+"/255, "+e.color[1]+"/255, "+e.color[2]+"/255, "+e.color[3]+")":"vec4(0.0, 0.58, 0.86, 1.0)",window[e.serviceId].readyPromise.then((t=>{t.boundingSphere.radius,t.boundingSphere.radius>1e4&&t.boundingSphere.radius,t.style=new Cesium.Cesium3DTileStyle({color:e.color}),t.tileVisible.addEventListener((e=>{let t=e.content,i=t.featuresLength;for(let r=0;r{const r=i._sourcePrograms[t],o=i._rendererResources.sourceShaders[r.fragmentShader];let n="";-1!==o.indexOf(" v_positionEC;")?n="v_positionEC":-1!==o.indexOf(" v_pos;")&&(n="v_pos");const a=`vec4(${e.color.toString()})`;i._rendererResources.sourceShaders[r.fragmentShader]=`\n\t\t\t\t\t\t\t\t\t\t\t\t varying vec3 ${n};\n\t\t\t\t\t\t\t\t\t\t\t\t void main(void){\n\t\t\t\t\t\t\t\t\t\t\t\t\tvec4 v_helsing_position = czm_inverseModelView * vec4(${n},1); \n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat _baseHeight = -30.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat vtxf_height = v_helsing_position.z - _baseHeight;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_pl = fract(czm_frameNumber / 120.0) * 3.14159265 * 2.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_sd = vtxf_height / 30.0 + sin(stc_pl) * 0.1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor = ${a};\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor *= vec4(stc_sd, stc_sd, stc_sd, 1.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t/* 扫描线 */\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat glowRange = 80.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_a13 = fract(czm_frameNumber / 460.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_h = clamp(v_helsing_position.z / glowRange, 0.0, 1.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tstc_a13 = abs(stc_a13 - 0.5) * 1.0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfloat stc_diff = step(0.003, abs(stc_h - stc_a13));\n\t\t\t\t\t\t\t\t\t\t\t\t\tgl_FragColor.rgb += gl_FragColor.rgb * (1.0 - stc_diff);\n\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t`})),i._shouldRegenerateShaders=!0)}}))})),this._viewer.scene.requestRender()},set3DTilePosition:function(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");window[e.serviceId].readyPromise.then((function(){let t=window[e.serviceId].boundingSphere,i=Cesium.Cartographic.fromCartesian(t.center);e.height=Cesium.defaultValue(e.height,15);let r=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,e.height),o=Cesium.Cartesian3.fromRadians(i.longitude,i.latitude,0),n=Cesium.Cartesian3.subtract(r,o,new Cesium.Cartesian3);window[e.serviceId].modelMatrix=Cesium.Matrix4.fromTranslation(n)})),this._viewer.scene.requestRender()},setLayersStyle(e){if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");let t=window[e.serviceId];Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),t.alpha=e.alpha,Cesium.defined(e.brightness)&&Cesium.Check.typeOf.number("brightness",e.brightness),e.brightness=Cesium.defaultValue(e.brightness,1),t.brightness=e.brightness,Cesium.defined(e.contrast)&&Cesium.Check.typeOf.number("contrast",e.contrast),e.contrast=Cesium.defaultValue(e.contrast,1),t.contrast=e.contrast,Cesium.defined(e.gamma)&&Cesium.Check.typeOf.number("gamma",e.gamma),e.gamma=Cesium.defaultValue(e.gamma,1),t.gamma=e.gamma,Cesium.defined(e.hue)&&Cesium.Check.typeOf.number("hue",e.hue),e.hue=Cesium.defaultValue(e.hue,0),t.hue=e.hue,Cesium.defined(e.saturation)&&Cesium.Check.typeOf.number("saturation",e.saturation),e.saturation=Cesium.defaultValue(e.saturation,1),t.saturation=e.saturation},setPolygonImageMaterial(e){Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1),window[e.serviceId].polygon.material.color._value.alpha=e.alpha},setModelStyle(e){Cesium.defined(e.alpha)&&Cesium.Check.typeOf.number("alpha",e.alpha),e.alpha=Cesium.defaultValue(e.alpha,1);let t=window[e.serviceId];t.model?t.model.color._value.alpha=e.alpha:t.color._value.alpha=e.alpha},setTerrainExaggeration(e){Cesium.defined(e.terrainExaggeration)&&Cesium.Check.typeOf.number("terrainExaggeration",e.terrainExaggeration),e.terrainExaggeration=Cesium.defaultValue(e.terrainExaggeration,1),this._viewer.scene.globe.terrainExaggeration=e.terrainExaggeration}}),Object.assign(T.prototype,{removeImageryProvider(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._removeImageryProvider(e.serviceId),t(!0)}))},removeTerrain(){return new Promise(((e,t)=>{this._setEllipsoidTerrain(),e(!0)}))},removeScenePrimitives(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._removeScenePrimitives(e.serviceId),t(!0)}))},removeEntity(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");this._viewer.entities.remove(window[e.serviceId]),window[e.serviceId]=null,t(!0)}))},removeDataSources(e){let t=this._viewer;return new Promise(((i,r)=>{if(!Cesium.defined(e)||!Cesium.defined(e.serviceId))throw new Cesium.DeveloperError("options.serviceId is required.");let o=t.dataSources.getByName(e.serviceId);o.forEach(((e,r)=>{t.dataSources.remove(e),r===o.length-1&&i(!0)}))}))}}),Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var i in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+i+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[i]:("00"+t[i]).substr((""+t[i]).length)));return e};class E{constructor({viewer:e,url:t,opacity:i=.75,show:r=!0}={}){this._viewer=e,this._url=t,this._opacity=i,this._renderName=this._guid();let o=new Cesium.CustomDataSource(this._renderName);this._viewer.dataSources.add(o),this._entities=o.entities,this._renderEntities=new Map,this._isUpdateTile=r,this._isDebug=!1,this._init()}_init(){let e=this;this._provider=new Cesium.ArcGisMapServerImageryProvider({url:e._url}),this._provider.readyPromise.then((function(t){e._rectangle=e._provider.rectangle,e._isDebug&&e._printDebug(),e._viewer.scene.postRender.addEventListener((()=>{e._isUpdateTile&&(e._isUpdateTile=!1,e._renderTiles())}))}))}_guid(){function e(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}_printDebug(){this._provider.tilingScheme;let e=new Cesium.GeographicTilingScheme;this._drawDebugRectangle(this._rectangle,Cesium.Color.GREEN),e.tileXYToRectangle(1696,312,10)}_drawDebugRectangle(e,t){let i=this._calculateRectangleOutlineCoordinates(e),r=new Cesium.Entity({name:this._renderName,polyline:{positions:i,material:t,width:10,clampToGround:!0}});this._entities.add(r)}_console(...e){this._isDebug&&console.log("==="+(new Date).Format("yyyy-MM-dd HH:mm:ss")+">>>",e)}_renderTiles(){let e=this,t=this._viewer.scene.globe._surface._tilesToRender;void 0!==t&&0!==t.length?new Promise(((e,i)=>{t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),e(t)})).then((t=>{e._asyncProjectionTiles(t)})):this._isUpdateTile=!0}_createKey(e,t,i){return`${this._renderName}_${e}_${t}_${i}`}_asyncProjectionTiles(e){let t=[];for(let o of e){let e=this._projectionTile(o);for(let i of e){let e=this._createKey(i.x,i.y,i.level);if(void 0===t.find((e=>e.x===i.x&&e.y===i.y))){let r=!1;for(let o of t)if(Cesium.Rectangle.intersection(o.rectangle,i.rectangle)){o.childTiles.push(e),r=!0;break}r||t.push({key:e,x:i.x,y:i.y,level:i.level,rectangle:i.rectangle,childTiles:[]})}}}let i=t.length,r=[];for(;i--;){let e=t[i];if(e.childTiles.length>=1){let o=this._createFourTiles(e);for(let e of o)r.push(e);t.splice(i,1)}}for(let o of r)t.push(o);t.sort((function(e,t){return parseInt(e.level)-parseInt(t.level)})),this._renderTilesToViewer(t)}_createTileByRectangleAndLevel(e,t){let i=Cesium.Rectangle.center(e),r=parseInt(t)+1,o=this._provider.tilingScheme.positionToTileXY(i,r);if(void 0!==o)return{key:this._createKey(o.x,o.y,r),x:o.x,y:o.y,level:r,rectangle:e,childTiles:[]}}_createFourTiles(e){let t=[],i=[],r=e.rectangle;t.push(Cesium.Rectangle.subsection(r,0,0,.5,.5)),t.push(Cesium.Rectangle.subsection(r,.5,0,1,.5)),t.push(Cesium.Rectangle.subsection(r,0,.5,.5,1)),t.push(Cesium.Rectangle.subsection(r,.5,.5,1,1));for(let o of t)if(Cesium.Rectangle.intersection(o,this._rectangle)){let t=this._createTileByRectangleAndLevel(o,e.level);void 0!==t&&i.push(t)}return i}_renderTilesToViewer(e){let t=this,i=[];for(let[r,o]of this._renderEntities){void 0===e.find((e=>e.key===r))&&i.push(r)}for(let r of i)this._renderEntities.delete(r),this._entities.removeById(r);for(let r of e)if(!this._renderEntities.has(r.key)){let e=this._renderSimpleTileToViewer(r);this._renderEntities.set(r.key,e);let i=new Blob([`(${A.toString()})()`]),o=new Worker(URL.createObjectURL(i));o.postMessage({key:r.key,url:this._url,x:r.x,y:r.y,level:r.level}),o.onmessage=function(e){t._console(`render x:${e.data.x} y:${e.data.y} level:${e.data.level}`);let i=t._entities.getById(e.data.key);if(void 0!==i){e.data.key;const r=t._createCanvas(e.data,e.data.image,t._isDebug);i.rectangle.material=r}o.terminate()}}this._isUpdateTile=!0}_renderSimpleTileToViewer(e){const t=this._createCanvas(e,void 0,this._isDebug);let i=this._calculateRectangleOutlineCoordinates(e.rectangle),r=new Cesium.Entity({name:this._renderName,id:e.key,rectangle:{coordinates:e.rectangle,material:t},polyline:{positions:i,material:Cesium.Color.YELLOW.withAlpha(this._isDebug?1:0),width:1,clampToGround:!0}});return this._entities.add(r)}_createCanvas(e,t,i){let r=this._provider;const o=document.createElement("canvas");o.width=r.tileWidth,o.height=r.tileHeight;const n=o.getContext("2d");return void 0!==t&&(n.globalAlpha=this._opacity,n.drawImage(event.data.image,0,0,o.width,o.height)),void 0!==i&&!0===i&&(n.globalAlpha=1,n.font="20px Arial",n.textAlign="center",n.fillStyle="rgba(255,255,0)",n.strokeStyle="rgba(255,255,255,1)",n.lineWidth=2,n.strokeText(`L: ${e.level}`,126,86),n.fillText(`L: ${e.level}`,126,86),n.strokeText(`X: ${e.x}`,126,136),n.fillText(`X: ${e.x}`,126,136),n.strokeText(`Y: ${e.y}`,126,186),n.fillText(`Y: ${e.y}`,126,186)),o}_projectionTile(e){let t=e._rectangle,i=parseInt(e.level),r=this._provider.tilingScheme,o=[];if(void 0===Cesium.Rectangle.intersection(t,this._rectangle))return o;let n=r.positionToTileXY(Cesium.Rectangle.northwest(t),i),a=r.positionToTileXY(Cesium.Rectangle.southeast(t),i);if(void 0!==n&&void 0!==a)for(let s=n.x;s<=a.x;s++)for(let e=n.y;e<=a.y;e++){let t=r.tileXYToRectangle(s,e,i);Cesium.Rectangle.intersection(t,this._rectangle)&&o.push({x:s,y:e,level:i,rectangle:t})}else if(void 0!==n){let e=r.tileXYToRectangle(n.x,n.y,i);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:n.x,y:n.y,level:i,rectangle:e})}else if(void 0!==a){let e=r.tileXYToRectangle(a.x,a.y,i);Cesium.Rectangle.intersection(e,this._rectangle)&&o.push({x:a.x,y:a.y,level:i,rectangle:e})}return o}_calculateRectangleOutlineCoordinates(e){let t=Cesium.Rectangle.southeast(e),i=Cesium.Cartographic.toCartesian(t),r=Cesium.Rectangle.southwest(e),o=Cesium.Cartographic.toCartesian(r),n=Cesium.Rectangle.northeast(e),a=Cesium.Cartographic.toCartesian(n),s=Cesium.Rectangle.northwest(e);return[o,i,a,Cesium.Cartographic.toCartesian(s),o]}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var i=[],r=0;r>>",i+" Not found")},r.send()}}Object.assign(E.prototype,{hide:function(){this._console("隐藏"),this._isUpdateTile=!1,this._removeEntityByName(this._renderName),this._renderEntities.clear()},show:function(){this._console("显示"),this._isUpdateTile=!0},setOpacity:function(e){void 0!==e&&"number"==typeof e&&(e>=1&&(this._opacity=1),e<=0&&(this._opacity=0),this._opacity=parseFloat(e))}});class S{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._locationEntity=null}}Object.assign(S.prototype,{flyToPoint:function(e){return new Promise(((t,i)=>{if(!Cesium.defined(e)||!Cesium.defined(e.longitude)||!Cesium.defined(e.latitude))throw new Cesium.DeveloperError("options.longitude and options.latitude are required.");e.height=Cesium.defaultValue(e.height,0),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,-90),e.range=Cesium.defaultValue(e.range,0),e.duration=Cesium.defaultValue(e.duration,3);var r=new Cesium.BoundingSphere(Cesium.Cartesian3.fromDegrees(e.longitude,e.latitude,e.height),0);this._viewer.camera.flyToBoundingSphere(r,{duration:e.duration,complete:function(){t(!0)},offset:{heading:Cesium.Math.toRadians(e.heading),pitch:Cesium.Math.toRadians(e.pitch),range:e.range}})}))},flyToEntityByPoints:function(e,t,i){return new Promise(((r,o)=>{let n=this;if(i=i||{},void 0===e||void 0===e.length)return void o("输入的坐标集合异常!");let a=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));switch(n._locationEntity&&n._viewer.entities.remove(n._locationEntity),t){case"point":n._locationEntity=n._viewer.entities.add({position:a[0],point:{pixelSize:1}});break;case"polyline":a.length<2?o("线对象定位,点数至少2个"):n._locationEntity=n._viewer.entities.add({polyline:{positions:a,clampToGround:!0,material:new Cesium.Color(255,0,0,.5),width:1}});break;case"polygon":a.length<3?o("面对象定位,点数至少3个"):n._locationEntity=n._viewer.entities.add({polygon:{hierarchy:{positions:a},material:new Cesium.Color(255,0,0,.5),outline:!0}});break;default:o("坐标异常!")}i.duration=Cesium.defaultValue(i.duration,3),i.heading=Cesium.defaultValue(i.heading,0),i.pitch=Cesium.defaultValue(i.pitch,-90),i.range=Cesium.defaultValue(i.range,0),n._viewer.flyTo(n._locationEntity,{duration:i.duration,offset:{heading:Cesium.Math.toRadians(i.heading),pitch:Cesium.Math.toRadians(i.pitch),range:i.range}}).then((function(){r(!0)}))}))},flyToEntity:function(e,t){return new Promise(((i,r)=>{let o=this;t=t||{},o._locationEntity&&o._viewer.entities.remove(o._locationEntity),o._locationEntity=e,t.duration=Cesium.defaultValue(t.duration,3),t.heading=Cesium.defaultValue(t.heading,0),t.pitch=Cesium.defaultValue(t.pitch,-90),t.range=Cesium.defaultValue(t.range,0),o._viewer.flyTo(o._locationEntity,{duration:t.duration,offset:{heading:Cesium.Math.toRadians(t.heading),pitch:Cesium.Math.toRadians(t.pitch),range:t.range}}).then((function(){i(o._locationEntity)}))}))}});const P=function(e,t,i){let r,o,n,a,s=document.getElementById("toolTip");if(e&&"object"==typeof e&&(r=e),r&&r.origin?("center"===r.origin&&(o=15,n=-12),"top"===r.origin&&(o=15,n=-44),"bottom"===r.origin&&(o=15,n=20)):(o=15,n=20),r&&r.color?("white"===r.color&&(a="background: rgba(255, 255, 255, 0.8);color: black;"),"black"===r.color&&(a="background: rgba(0, 0, 0, 0.65);color: white;"),"yellow"===r.color&&(a="color: black;background-color: #ffcc33;border: 1px solid white;")):a="background: rgba(0, 0, 0, 0.65);color: white;",!s){const e=document.getElementsByClassName("cesium-viewer")[0];let t=document.createElement("div");e.append(t);let i='';e.insertAdjacentHTML("beforeend",i),s=document.getElementById("toolTip")}return i?(s.innerHTML=e,s.style.left=t.x+o+"px",s.style.top=t.y+n+"px",s.style.display="block"):s.style.display="none",{tooltip:s,style:r,showAt:function(e,t){this.tooltip.innerHTML=t,this.style&&this.style.origin?("center"===this.style.origin&&(o=15,n=-this.tooltip.offsetHeight/2),"top"===this.style.origin&&(o=15,n=-this.tooltip.offsetHeight-20),"bottom"===this.style.origin&&(o=15,n=20)):(o=15,n=-this.tooltip.offsetHeight/2),this.tooltip.style.left=e.x+o+"px",this.tooltip.style.top=e.y+n+"px",this.tooltip.style.display="block"},show:function(e){this.tooltip.style.display=e?"block":"none"}}};class I{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]}}_distance(e,t){let i=Cesium.Cartographic.fromCartesian(e),r=Cesium.Cartographic.fromCartesian(t),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(i,r);let n=o.surfaceDistance;return n=Math.sqrt(Math.pow(n,2)+Math.pow(r.height-i.height,2)),n}_checkAppOrWeb(){return window.navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)?I.RuntimeEnvironment.App:I.RuntimeEnvironment.Web}_isRuntimeApp(){return this._checkAppOrWeb()===I.RuntimeEnvironment.App}_isRuntimeWeb(){return this._checkAppOrWeb()===I.RuntimeEnvironment.Web}_createOperationMainDom(){let e=document.createElement("div");e.id="drawButtonDiv",e.style.width="80px",e.style.backgroundColor="rgba(5, 45, 155, 0.7)",e.style.borderRadius="5px",e.style.display="flex",e.style.flexDirection="column",e.style.padding="8px",e.style.justifyContent="center",e.style.position="absolute",e.style.bottom="150px",e.style.right="10px";let t=document.createElement("button");t.id="btnDrawComplete",t.style.height="30px",t.style.backgroundColor="rgba(88, 185, 45, 1.0)",t.style.color="rgb(255, 255, 255)",t.style.border="0px solid red",t.style.borderRadius="5px",t.innerHTML="完成",t.style.fontSize="13px",t.style.cursor="pointer",e.appendChild(t),document.body.appendChild(e)}_showTooltipMessage(e){let t=document.getElementById("messageMainDom");null!=t&&document.body.removeChild(t),t=document.createElement("div"),t.style.width="30%",t.style.backgroundColor="rgba(237, 248, 230, 1.0)",t.style.height="45px",t.style.border="solid 2px rgb(219, 241, 208)",t.style.borderRadius="8px",t.style.display="flex",t.style.alignItems="center",t.style.paddingLeft="10px",t.style.color="rgb(91, 188, 48)",t.style.fontSize="14px",t.style.fontWeight="600",t.style.position="absolute",t.style.left="35%",t.style.transition="transform 1s",t.style.transform="translateY(-90px)",t.style.top="0px",t.style.zIndex=1e3,document.body.appendChild(t);let i="";i+="
",i+="
"+e+"
",t.innerHTML=i,t.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeChild(t)}),1e3)}),!1),setTimeout((function(){t.style.transform="translateY(50px)"}),100)}} /*! * author: [object Object] * @sakitam-gis/kriging v0.1.0 * build-time: 2019-7-6 20:41 * LICENSE: MIT * (c) 2019-2019 https://github.com/sakitam-gis/kriging.js */ function M(e){return Math.max.apply(null,e)}function D(e){return Math.min.apply(null,e)}function L(e,t){for(var i=[],r=0;ri!=e[o][1]>i&&t<(e[o][0]-e[r][0])*(i-e[r][1])/(e[o][1]-e[r][1])+e[r][0]&&(n=!n);return n}function R(e,t){for(var i=0,r=L(0,t*t);i=s&&(s=Math.abs(e[r*t+o]),v=r,g=o);if(++m[g],v!==g){for(n=0;n=0;n--)if(f[n]!==h[n])for(o=0;oi?t+(r-t)/i:t+(r-t)/i*(e/i*1.5-.5*Math.pow(e/i,3))}function G(e,t,i){var r,o=Array(i.n);for(r=0;r{let r=C.getCatesian3FromPX(e._viewer,i.position);if(t="左键创建视角终点,右键结束通视分析",this._isRuntimeApp()&&(t="再次单击创建视角终点",e._showTooltipMessage(t)),r){if(e._resultObject.viewPoint){e._resultObject.targetPoint=r;let t=e._viewer.entities.add({position:r,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"目标位置",font:"12px sans-serif",fillColor:new Cesium.Color(1,1,1,1),outlineColor:new Cesium.Color(0,154/255,94/255,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:new Cesium.Color(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}});e._resultObject.objectExclude.push(t),e._resultObject.entities.push(t);let i=Cesium.Cartesian3.normalize(Cesium.Cartesian3.subtract(e._resultObject.targetPoint,e._resultObject.viewPoint,new Cesium.Cartesian3),new Cesium.Cartesian3),o=new Cesium.Ray(e._resultObject.viewPoint,i),n=e._viewer.scene.pickFromRay(o,e._resultObject.objectExclude);if(n){let t=e._distance(e._resultObject.viewPoint,e._resultObject.targetPoint),i=e._distance(e._resultObject.viewPoint,n.position),o=e._distance(n.position,e._resultObject.targetPoint);if(console.log(t,i,o),t>i){let a=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,n.position],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(a);let s=e._viewer.entities.add({polyline:{positions:[n.position,e._resultObject.targetPoint],material:Cesium.Color.RED,width:3}});e._resultObject.entities.push(s),e._resultObject.targetPoints.push({targetPoint:r,visual:!1,distance:[t,i,o]})}else{let n=e._viewer.entities.add({polyline:{positions:[e._resultObject.viewPoint,e._resultObject.targetPoint],material:Cesium.Color.GREEN,width:3}});e._resultObject.entities.push(n),e._resultObject.targetPoints.push({targetPoint:r,visual:!0,distance:[t,i,o]})}}}else{e._resultObject.viewPoint=r;let t=e._viewer.entities.add({position:r,point:{color:Cesium.Color.YELLOW,pixelSize:5},label:{text:"观察位置",font:"12px sans-serif",fillColor:new Cesium.Color(1,1,1,1),outlineColor:new Cesium.Color(0,154/255,94/255,1),style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:1,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(0,-28),showBackground:!0,backgroundColor:new Cesium.Color(0,0,0,.6),disableDepthTestDistance:Number.POSITIVE_INFINITY}});e._resultObject.objectExclude.push(t),e._resultObject.entities.push(t)}2===e._resultObject.objectExclude.length&&this._isRuntimeApp()&&(e._createOperationMainDom(),document.getElementById("btnDrawComplete").onclick=()=>{P(t,i.endPosition,!1),e.handler.destroy();let r=document.getElementById("drawButtonDiv");r&&document.body.removeChild(r)})}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),e.handler.setInputAction((function(i){e._isRuntimeApp()||P(t,i.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),e.handler.setInputAction((i=>{P(t,i.endPosition,!1),e.handler.destroy()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)},clearAll(){this._resultObject.entities.forEach((e=>{this._viewer.entities.remove(e)})),this._resultObject={viewPoint:void 0,targetPoints:[],targetPoint:void 0,objectExclude:[],entities:[]},this.handler&&this.handler.destroy();let e=document.getElementById("drawButtonDiv");e&&document.body.removeChild(e)}}),I.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});var Y={train:function(e,t,i,r,o,n){var a,s,l,c,u={t:e,x:t,y:i,nugget:0,range:0,sill:0,A:1/3,n:0,model:V,K:[],M:[]};switch(r){case"gaussian":u.model=H;break;case"exponential":u.model=V;break;case"spherical":u.model=W;break;default:u.model=V}var d=e.length,p=Array((d*d-d)/2);for(a=0,l=0;a30?30:(d*d-d)/2,f=u.range/h,m=L(0,h),g=L(0,h);if(h<30)for(c=0;c=(d*d-d)/2)););l>0&&(m[c]/=l,g[c]/=l,c++)}if(c<2)return u}d=c,u.range=m[d-1]-m[0];var v=L(1,2*d),_=Array(d),b=u.A;for(a=0;ac[1]&&(c[1]=e[r][o][0]),e[r][o][1]u[1]&&(u[1]=e[r][o][1]);var d=Array(2),p=Array(2),h=Array(2),f=Array(2),m=Math.ceil((c[1]-c[0])/i),g=Math.ceil((u[1]-u[0])/i),v=Array(m+1);for(r=0;r<=m;r++)v[r]=Array(g+1);for(r=0;rh[1]&&(h[1]=e[r][o][0]),e[r][o][1]f[1]&&(f[1]=e[r][o][1]);for(d[0]=Math.floor((h[0]-(h[0]-c[0])%i-c[0])/i),d[1]=Math.ceil((h[1]-(h[1]-c[1])%i-c[0])/i),p[0]=Math.floor((f[0]-(f[0]-u[0])%i-u[0])/i),p[1]=Math.ceil((f[1]-(f[1]-u[1])%i-u[0])/i),o=d[0];o<=d[1];o++)for(n=p[0];n<=p[1];n++)s=c[0]+o*i,l=u[0]+n*i,O(e[r],s,l)&&(v[o][n]=G(s,l,t))}return{xlim:c,ylim:u,width:i,data:v,zlim:[D(t.t),M(t.t)]}}},plot:function(e,t,i,r,o){var n=e.getContext("2d"),a=t.data,s=t.zlim,l=t.width;if(n){n.clearRect(0,0,e.width,e.height);var c=[i[1]-i[0],r[1]-r[0],s[1]-s[0]],u=void 0,d=void 0,p=void 0,h=void 0,f=void 0,m=a.length,g=a[0].length,v=Math.ceil(l*e.width/(i[1]-i[0])),_=Math.ceil(l*e.height/(r[1]-r[0]));for(u=0;u1&&(f=1),n.fillStyle=o[Math.floor((o.length-1)*f)],n.fillRect(Math.round(p-v/2),Math.round(h-_/2),v,_))}},max:M,min:D,pip:O,rep:L,matrixDiag:R,matrixTranspose:N,matrixAdd:B,matrixMultiply:j,matrixChol:U,matrixChol2inv:F,matrixSolve:z,variogramGaussian:H,variogramExponential:V,variogramSpherical:W},q={centimeters:637100880,centimetres:637100880,degrees:6371008.8/111325,feet:20902260.511392,inches:6371008.8*39.37,kilometers:6371.0088,kilometres:6371.0088,meters:6371008.8,metres:6371008.8,miles:3958.761333810546,millimeters:6371008800,millimetres:6371008800,nauticalmiles:6371008.8/1852,radians:1,yards:6371008.8*1.0936};function Q(e,t,i){void 0===i&&(i={});var r={type:"Feature"};return(0===i.id||i.id)&&(r.id=i.id),i.bbox&&(r.bbox=i.bbox),r.properties=t||{},r.geometry=e,r}function Z(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!te(e[0])||!te(e[1]))throw new Error("coordinates must contain numbers");return Q({type:"Point",coordinates:e},t,i)}function X(e,t,i){void 0===i&&(i={});for(var r=0,o=e;re[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function se(e){if(Array.isArray(e))return e;if("Feature"===e.type){if(null!==e.geometry)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function le(e){return"Feature"===e.type?e.geometry:e}ne.default=ne;var ce="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function de(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(i){var r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return e[i]}})})),t}var pe={exports:{}};function he(e,t,i,r,o){fe(e,t,i||0,r||e.length-1,o||ge)}function fe(e,t,i,r,o){for(;r>i;){if(r-i>600){var n=r-i+1,a=t-i+1,s=Math.log(n),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(n-l)/n)*(a-n/2<0?-1:1);fe(e,t,Math.max(i,Math.floor(t-a*l/n+c)),Math.min(r,Math.floor(t+(n-a)*l/n+c)),o)}var u=e[t],d=i,p=r;for(me(e,i,t),o(e[r],u)>0&&me(e,i,r);d0;)p--}0===o(e[i],u)?me(e,i,p):me(e,++p,r),p<=t&&(i=p+1),t<=p&&(r=p-1)}}function me(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function ge(e,t){return et?1:0}function ve(e,t,i){if(!i)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function Se(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Pe(e,t,i,r,o){const n=[t,i];for(;n.length;){if((i=n.pop())-(t=n.pop())<=r)continue;const a=t+Math.ceil((i-t)/r/2)*r;he(e,a,t,i,o),n.push(t,a,a,i)}}var Ie=de(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const i=[];if(!Ae(e,t))return i;const r=this.toBBox,o=[];for(;t;){for(let n=0;n=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(r,o,t)}_split(e,t){const i=e[t],r=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,r);const n=this._chooseSplitIndex(i,o,r),a=Se(i.children.splice(n,i.children.length-n));a.height=i.height,a.leaf=i.leaf,_e(i,this.toBBox),_e(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this.data=Se([e,t]),this.data.height=e.height+1,this.data.leaf=!1,_e(this.data,this.toBBox)}_chooseSplitIndex(e,t,i){let r,o=1/0,n=1/0;for(let a=t;a<=i-t;a++){const t=be(e,0,a,this.toBBox),s=be(e,a,i,this.toBBox),l=Te(t,s),c=Ce(t)+Ce(s);l=t;l--){const t=e.children[l];ye(a,e.leaf?o(t):t),s+=ke(a)}return s}_adjustParentBBoxes(e,t,i){for(let r=i;r>=0;r--)ye(t[r],e)}_condense(e){for(let t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children,t.splice(t.indexOf(e[i]),1)):this.clear():_e(e[i],this.toBBox)}}}));function Me(e,t){return et?1:0}var De=de(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=[],t=Me){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:i}=this,r=t[e];for(;e>0;){const o=e-1>>1,n=t[o];if(i(r,n)>=0)break;t[e]=n,e=o}t[e]=r}_down(e){const{data:t,compare:i}=this,r=this.length>>1,o=t[e];for(;e=0)break;t[e]=n,e=r}t[e]=o}}})),Le={exports:{}},Oe=function(e,t,i,r){var o=e[0],n=e[1],a=!1;void 0===i&&(i=0),void 0===r&&(r=t.length);for(var s=(r-i)/2,l=0,c=s-1;ln!=h>n&&o<(p-u)*(n-d)/(h-d)+u&&(a=!a)}return a},Re=function(e,t,i,r){var o=e[0],n=e[1],a=!1;void 0===i&&(i=0),void 0===r&&(r=t.length);for(var s=r-i,l=0,c=s-1;ln!=h>n&&o<(p-u)*(n-d)/(h-d)+u&&(a=!a)}return a};Le.exports=function(e,t,i,r){return t.length>0&&Array.isArray(t[0])?Re(e,t,i,r):Oe(e,t,i,r)},Le.exports.nested=Re,Le.exports.flat=Oe;var Ne={exports:{}};!function(e){const t=134217729,i=33306690738754706e-32;function r(e,t,i,r,o){let n,a,s,l,c=t[0],u=r[0],d=0,p=0;u>c==u>-c?(n=c,c=t[++d]):(n=u,u=r[++p]);let h=0;if(dc==u>-c?(s=n-((a=c+n)-c),c=t[++d]):(s=n-((a=u+n)-u),u=r[++p]),n=a,0!==s&&(o[h++]=s);dc==u>-c?(s=n-((a=n+c)-(l=a-n))+(c-l),c=t[++d]):(s=n-((a=n+u)-(l=a-n))+(u-l),u=r[++p]),n=a,0!==s&&(o[h++]=s);for(;d0!=_>0)return b;const y=Math.abs(v+_);return Math.abs(b)>=n*y?b:-function(e,o,n,h,f,m,g){let v,_,b,y,w,x,C,k,T,E,A,S,P,I,M,D,L,O;const R=e-f,N=n-f,B=o-m,j=h-m;w=(M=(k=R-(C=(x=t*R)-(x-R)))*(E=j-(T=(x=t*j)-(x-j)))-((I=R*j)-C*T-k*T-C*E))-(A=M-(L=(k=B-(C=(x=t*B)-(x-B)))*(E=N-(T=(x=t*N)-(x-N)))-((D=B*N)-C*T-k*T-C*E))),l[0]=M-(A+w)+(w-L),w=(P=I-((S=I+A)-(w=S-I))+(A-w))-(A=P-D),l[1]=P-(A+w)+(w-D),w=(O=S+A)-S,l[2]=S-(O-w)+(A-w),l[3]=O;let U=function(e,t){let i=t[0];for(let r=1;r=F||-U>=F)return U;if(v=e-(R+(w=e-R))+(w-f),b=n-(N+(w=n-N))+(w-f),_=o-(B+(w=o-B))+(w-m),y=h-(j+(w=h-j))+(w-m),0===v&&0===_&&0===b&&0===y)return U;if(F=s*g+i*Math.abs(U),(U+=R*y+j*v-(B*b+N*_))>=F||-U>=F)return U;w=(M=(k=v-(C=(x=t*v)-(x-v)))*(E=j-(T=(x=t*j)-(x-j)))-((I=v*j)-C*T-k*T-C*E))-(A=M-(L=(k=_-(C=(x=t*_)-(x-_)))*(E=N-(T=(x=t*N)-(x-N)))-((D=_*N)-C*T-k*T-C*E))),p[0]=M-(A+w)+(w-L),w=(P=I-((S=I+A)-(w=S-I))+(A-w))-(A=P-D),p[1]=P-(A+w)+(w-D),w=(O=S+A)-S,p[2]=S-(O-w)+(A-w),p[3]=O;const z=r(4,l,4,p,c);w=(M=(k=R-(C=(x=t*R)-(x-R)))*(E=y-(T=(x=t*y)-(x-y)))-((I=R*y)-C*T-k*T-C*E))-(A=M-(L=(k=B-(C=(x=t*B)-(x-B)))*(E=b-(T=(x=t*b)-(x-b)))-((D=B*b)-C*T-k*T-C*E))),p[0]=M-(A+w)+(w-L),w=(P=I-((S=I+A)-(w=S-I))+(A-w))-(A=P-D),p[1]=P-(A+w)+(w-D),w=(O=S+A)-S,p[2]=S-(O-w)+(A-w),p[3]=O;const H=r(z,c,4,p,u);w=(M=(k=v-(C=(x=t*v)-(x-v)))*(E=y-(T=(x=t*y)-(x-y)))-((I=v*y)-C*T-k*T-C*E))-(A=M-(L=(k=_-(C=(x=t*_)-(x-_)))*(E=b-(T=(x=t*b)-(x-b)))-((D=_*b)-C*T-k*T-C*E))),p[0]=M-(A+w)+(w-L),w=(P=I-((S=I+A)-(w=S-I))+(A-w))-(A=P-D),p[1]=P-(A+w)+(w-D),w=(O=S+A)-S,p[2]=S-(O-w)+(A-w),p[3]=O;const V=r(H,u,4,p,d);return d[V-1]}(e,o,h,f,m,g,y)},e.orient2dfast=function(e,t,i,r,o,n){return(t-n)*(i-o)-(e-o)*(r-n)},Object.defineProperty(e,"__esModule",{value:!0})}(Ne.exports);var Be=Ie,je=De,Ue=Le.exports,Fe=Ne.exports.orient2d;function ze(e,t,i){t=Math.max(0,void 0===t?2:t),i=i||0;var r=function(e){for(var t=e[0],i=e[0],r=e[0],o=e[0],n=0;nr[0]&&(r=a),a[1]o[1]&&(o=a)}var s=[t,i,r,o],l=s.slice();for(n=0;n=2&&qe(t[t.length-2],t[t.length-1],e[i])<=0;)t.pop();t.push(e[i])}for(var r=[],o=e.length-1;o>=0;o--){for(;r.length>=2&&qe(r[r.length-2],r[r.length-1],e[o])<=0;)r.pop();r.push(e[o])}return r.pop(),t.pop(),t.concat(r)}(l)}(e),o=new Be(16);o.toBBox=function(e){return{minX:e[0],minY:e[1],maxX:e[0],maxY:e[1]}},o.compareMinX=function(e,t){return e[0]-t[0]},o.compareMinY=function(e,t){return e[1]-t[1]},o.load(e);for(var n,a=[],s=0;sn||s.push({node:u,dist:d})}for(;s.length&&!s.peek().node.children;){var p=s.pop(),h=p.node,f=Ke(h,t,i),m=Ke(h,r,o);if(p.dist=t.minX&&e[0]<=t.maxX&&e[1]>=t.minY&&e[1]<=t.maxY}function Ye(e,t,i){for(var r,o,n,a,s=Math.min(e[0],t[0]),l=Math.min(e[1],t[1]),c=Math.max(e[0],t[0]),u=Math.max(e[1],t[1]),d=i.search({minX:s,minY:l,maxX:c,maxY:u}),p=0;p0!=qe(r,o,a)>0&&qe(n,a,r)>0!=qe(n,a,o)>0)return!1;return!0}function qe(e,t,i){return Fe(e[0],e[1],t[0],t[1],i[0],i[1])}function Qe(e){var t=e.p,i=e.next.p;return e.minX=Math.min(t[0],i[0]),e.minY=Math.min(t[1],i[1]),e.maxX=Math.max(t[0],i[0]),e.maxY=Math.max(t[1],i[1]),e}function Ze(e,t){var i={p:e,prev:null,next:null,minX:0,minY:0,maxX:0,maxY:0};return t?(i.next=t.next,i.prev=t,t.next.prev=i,t.next=i):(i.prev=i,i.next=i),i}function Xe(e,t){var i=e[0]-t[0],r=e[1]-t[1];return i*i+r*r}function Ke(e,t,i){var r=t[0],o=t[1],n=i[0]-r,a=i[1]-o;if(0!==n||0!==a){var s=((e[0]-r)*n+(e[1]-o)*a)/(n*n+a*a);s>1?(r=i[0],o=i[1]):s>0&&(r+=n*s,o+=a*s)}return(n=e[0]-r)*n+(a=e[1]-o)*a}function Je(e,t,i,r,o,n,a,s){var l,c,u,d,p=i-e,h=r-t,f=a-o,m=s-n,g=e-o,v=t-n,_=p*p+h*h,b=p*f+h*m,y=f*f+m*m,w=p*g+h*v,x=f*g+m*v,C=_*y-b*b,k=C,T=C;0===C?(c=0,k=1,d=x,T=y):(d=_*x-b*w,(c=b*x-y*w)<0?(c=0,d=x,T=y):c>k&&(c=k,d=x+b,T=y)),d<0?(d=0,-w<0?c=0:-w>_?c=k:(c=-w,k=_)):d>T&&(d=T,-w+b<0?c=0:-w+b>_?c=k:(c=-w+b,k=_));var E=(1-(u=0===d?0:d/T))*o+u*a-((1-(l=0===c?0:c/k))*e+l*i),A=(1-u)*n+u*s-((1-l)*t+l*r);return E*E+A*A}function $e(e,t){return e[0]===t[0]?e[1]-t[1]:e[0]-t[0]}je.default&&(je=je.default),pe.exports=ze,pe.exports.default=ze;var et=pe.exports;function tt(e,t,i){if(void 0===i&&(i={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var r=ae(e),o=le(t),n=o.type,a=t.bbox,s=o.coordinates;if(a&&!1===function(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}(r,a))return!1;"Polygon"===n&&(s=[s]);for(var l=!1,c=0;ce[1]!=c>e[1]&&e[0]<(l-a)*(e[1]-s)/(c-s)+a&&(r=!r)}return r}function rt(e,t,i){void 0===i&&(i={});var r=ae(e),o=ae(t),n=ee(o[1]-r[1]),a=ee(o[0]-r[0]),s=ee(r[1]),l=ee(o[1]),c=Math.pow(Math.sin(n/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(s)*Math.cos(l);return function(e,t){void 0===t&&(t="kilometers");var i=q[t];if(!i)throw new Error(t+" units is invalid");return e*i}(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),i.units)}function ot(e,t,i,r){void 0===r&&(r={});var o=ae(e),n=ee(o[0]),a=ee(o[1]),s=ee(i),l=function(e,t){void 0===t&&(t="kilometers");var i=q[t];if(!i)throw new Error(t+" units is invalid");return e/i}(t,r.units),c=Math.asin(Math.sin(a)*Math.cos(l)+Math.cos(a)*Math.sin(l)*Math.cos(s));return Z([$(n+Math.atan2(Math.sin(s)*Math.sin(l)*Math.cos(a),Math.cos(l)-Math.sin(a)*Math.sin(c))),$(c)],r.properties)}function nt(e,t,i){if(void 0===i&&(i={}),!0===i.final)return function(e,t){var i=nt(t,e);return i=(i+180)%360}(e,t);var r=ae(e),o=ae(t),n=ee(r[0]),a=ee(o[0]),s=ee(r[1]),l=ee(o[1]),c=Math.sin(a-n)*Math.cos(l),u=Math.cos(s)*Math.sin(l)-Math.sin(s)*Math.cos(l)*Math.cos(a-n);return $(Math.atan2(c,u))}function at(e,t){return ot(e,rt(e,t)/2,nt(e,t))}function st(e,t){void 0===t&&(t={});var i=0,r=0,o=0;return ie(e,(function(e){i+=e[0],r+=e[1],o++}),!0),Z([i/o,r/o],t.properties)}function lt(e,t){switch(void 0===t&&(t={}),function(e,t){return"FeatureCollection"===e.type?"FeatureCollection":"GeometryCollection"===e.type?"GeometryCollection":"Feature"===e.type&&null!==e.geometry?e.geometry.type:e.type}(e)){case"Point":return Z(ae(e),t.properties);case"Polygon":var i=[];ie(e,(function(e){i.push(e)}));var r,o,n,a,s,l,c,u,d=st(e,{properties:t.properties}),p=d.geometry.coordinates,h=0,f=0,m=0,g=i.map((function(e){return[e[0]-p[0],e[1]-p[1]]}));for(r=0;r3?X([r]):null}(e);return _?lt(_,{properties:t.properties}):st(e,{properties:t.properties})}}function ct(e){if(!e)throw new Error("geojson is required");var t=[];return oe(e,(function(e){!function(e,t){var i=[],r=e.geometry;if(null!==r){switch(r.type){case"Polygon":i=se(r);break;case"LineString":i=[se(r)]}i.forEach((function(i){(function(e,t){var i=[];return e.reduce((function(e,r){var o,n,a,s,l,c,u=K([e,r],t);return u.bbox=(n=r,a=(o=e)[0],s=o[1],l=n[0],c=n[1],[al?a:l,s>c?s:c]),i.push(u),r})),i})(i,e.properties).forEach((function(e){e.id=t.length,t.push(e)}))}))}}(e,t)})),J(t)}var ut={exports:{}};function dt(e,t,i,r,o){pt(e,t,i||0,r||e.length-1,o||ft)}function pt(e,t,i,r,o){for(;r>i;){if(r-i>600){var n=r-i+1,a=t-i+1,s=Math.log(n),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(n-l)/n)*(a-n/2<0?-1:1);pt(e,t,Math.max(i,Math.floor(t-a*l/n+c)),Math.min(r,Math.floor(t+(n-a)*l/n+c)),o)}var u=e[t],d=i,p=r;for(ht(e,i,t),o(e[r],u)>0&&ht(e,i,r);d0;)p--}0===o(e[i],u)?ht(e,i,p):ht(e,++p,r),p<=t&&(i=p+1),t<=p&&(r=p-1)}}function ht(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function ft(e,t){return et?1:0}function mt(e,t,i){if(!i)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function Et(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function At(e,t,i,r,o){const n=[t,i];for(;n.length;){if((i=n.pop())-(t=n.pop())<=r)continue;const a=t+Math.ceil((i-t)/r/2)*r;dt(e,a,t,i,o),n.push(t,a,a,i)}}var St=de(Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",default:class{constructor(e=9){this._maxEntries=Math.max(4,e),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let t=this.data;const i=[];if(!Tt(e,t))return i;const r=this.toBBox,o=[];for(;t;){for(let n=0;n=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(r,o,t)}_split(e,t){const i=e[t],r=i.children.length,o=this._minEntries;this._chooseSplitAxis(i,o,r);const n=this._chooseSplitIndex(i,o,r),a=Et(i.children.splice(n,i.children.length-n));a.height=i.height,a.leaf=i.leaf,gt(i,this.toBBox),gt(a,this.toBBox),t?e[t-1].children.push(a):this._splitRoot(i,a)}_splitRoot(e,t){this.data=Et([e,t]),this.data.height=e.height+1,this.data.leaf=!1,gt(this.data,this.toBBox)}_chooseSplitIndex(e,t,i){let r,o=1/0,n=1/0;for(let a=t;a<=i-t;a++){const t=vt(e,0,a,this.toBBox),s=vt(e,a,i,this.toBBox),l=Ct(t,s),c=wt(t)+wt(s);l=t;l--){const t=e.children[l];_t(a,e.leaf?o(t):t),s+=xt(a)}return s}_adjustParentBBoxes(e,t,i){for(let r=i;r>=0;r--)_t(t[r],e)}_condense(e){for(let t,i=e.length-1;i>=0;i--)0===e[i].children.length?i>0?(t=e[i-1].children,t.splice(t.indexOf(e[i]),1)):this.clear():gt(e[i],this.toBBox)}}})),Pt={};!function(e){function t(e,t,i){void 0===i&&(i={});var r={type:"Feature"};return(0===i.id||i.id)&&(r.id=i.id),i.bbox&&(r.bbox=i.bbox),r.properties=t||{},r.geometry=e,r}function i(e,i,r){if(void 0===r&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!p(e[0])||!p(e[1]))throw new Error("coordinates must contain numbers");return t({type:"Point",coordinates:e},i,r)}function r(e,i,r){void 0===r&&(r={});for(var o=0,n=e;o=0))throw new Error("precision must be a positive number");var i=Math.pow(10,t||0);return Math.round(e*i)/i},e.radiansToLength=c,e.lengthToRadians=u,e.lengthToDegrees=function(e,t){return d(u(e,t))},e.bearingToAzimuth=function(e){var t=e%360;return t<0&&(t+=360),t},e.radiansToDegrees=d,e.degreesToRadians=function(e){return e%360*Math.PI/180},e.convertLength=function(e,t,i){if(void 0===t&&(t="kilometers"),void 0===i&&(i="kilometers"),!(e>=0))throw new Error("length must be a positive number");return c(u(e,t),i)},e.convertArea=function(t,i,r){if(void 0===i&&(i="meters"),void 0===r&&(r="kilometers"),!(t>=0))throw new Error("area must be a positive number");var o=e.areaFactors[i];if(!o)throw new Error("invalid original units");var n=e.areaFactors[r];if(!n)throw new Error("invalid final units");return t/o*n},e.isNumber=p,e.isObject=function(e){return!!e&&e.constructor===Object},e.validateBBox=function(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!p(e))throw new Error("bbox must only contain numbers")}))},e.validateId=function(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}}(Pt);var It={};Object.defineProperty(It,"__esModule",{value:!0});var Mt=Pt;function Dt(e,t,i){if(null!==e)for(var r,o,n,a,s,l,c,u,d=0,p=0,h=e.type,f="FeatureCollection"===h,m="Feature"===h,g=f?e.features.length:1,v=0;vs||p>l||h>c)return a=n,s=i,l=p,c=h,void(o=0);var f=Mt.lineString([a,n],e.properties);if(!1===t(f,i,r,h,o))return!1;o++,a=n}))&&void 0}}}))}function jt(e,t){if(!e)throw new Error("geojson is required");Nt(e,(function(e,i,r){if(null!==e.geometry){var o=e.geometry.type,n=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,i,r,0,0))return!1;break;case"Polygon":for(var a=0;ae[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2] line1 must only contain 2 coordinates");if(2!==r.length)throw new Error(" line2 must only contain 2 coordinates");var o=i[0][0],n=i[0][1],a=i[1][0],s=i[1][1],l=r[0][0],c=r[0][1],u=r[1][0],d=r[1][1],p=(d-c)*(a-o)-(u-l)*(s-n),h=(u-l)*(n-c)-(d-c)*(o-l),f=(a-o)*(n-c)-(s-n)*(o-l);if(0===p)return null;var m=h/p,g=f/p;return m>=0&&m<=1&&g>=0&&g<=1?Z([o+m*(a-o),n+m*(s-n)]):null}function Jt(e,t,i){void 0===i&&(i={});for(var r=ae(e),o=se(t),n=0;no)return!1}else if(0!==h)return!1;return r?"start"===r?Math.abs(d)>=Math.abs(p)?d>0?s0?l=Math.abs(p)?d>0?s<=n&&n0?l<=a&&a=Math.abs(p)?d>0?s0?l=Math.abs(p)?d>0?s<=n&&n<=c:c<=n&&n<=s:p>0?l<=a&&a<=u:u<=a&&a<=l}function ei(e,t){var i=le(e),r=le(t),o=i.type,n=r.type;switch(o){case"Point":switch(n){case"MultiPoint":return function(e,t){var i,r=!1;for(i=0;it[0])&&(!(e[2]t[1])&&!(e[3]1?function(e,t,i){return void 0===i&&(i={}),Q({type:"MultiLineString",coordinates:e},t,i)}(e,t):K(e[0],t)}function ai(e,t){var i=!0;return oe(e,(function(e){oe(t,(function(t){if(!1===i)return!1;i=function(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return i=e.coordinates,r=t.coordinates,!(i[0]===r[0]&&i[1]===r[1]);case"LineString":return!si(t,e);case"Polygon":return!tt(e,t)}break;case"LineString":switch(t.type){case"Point":return!si(e,t);case"LineString":return!function(e,t){if(Xt(e,t).features.length>0)return!0;return!1}(e,t);case"Polygon":return!li(t,e)}break;case"Polygon":switch(t.type){case"Point":return!tt(t,e);case"LineString":return!li(e,t);case"Polygon":return!function(e,t){for(var i=0,r=e.coordinates[0];i0)return!0;return!1}(t,e)}}var i,r;return!1}(e.geometry,t.geometry)}))})),i}function si(e,t){for(var i=0;i0}function ci(e,t,i){var r=i[0]-e[0],o=i[1]-e[1],n=t[0]-e[0],a=t[1]-e[1];return 0==r*a-o*n&&(Math.abs(n)>=Math.abs(a)?n>0?e[0]<=i[0]&&i[0]<=t[0]:t[0]<=i[0]&&i[0]<=e[0]:a>0?e[1]<=i[1]&&i[1]<=t[1]:t[1]<=i[1]&&i[1]<=e[1])}function ui(e,t){var i=!1;return oe(e,(function(e){oe(t,(function(t){if(!0===i)return!0;i=!ai(e.geometry,t.geometry)}))})),i}function di(e,t,i){return void 0===i&&(i={}),function(e,t,i,r){void 0===r&&(r={});for(var o=[],n=e[0],a=e[1],s=e[2],l=e[3],c=t/rt([n,a],[s,a],r)*(s-n),u=i/rt([n,a],[n,l],r)*(l-a),d=s-n,p=l-a,h=Math.floor(d/c),f=Math.floor(p/u),m=(p-f*u)/2,g=n+(d-h*c)/2,v=0;v=e?r=t?2*Math.PI-o:Math.PI+o,o=180*o/Math.PI,o}getPitch(e,t){let i=Cesium.Transforms.eastNorthUpToFixedFrame(e);const r=Cesium.Cartesian3.subtract(t,e,new Cesium.Cartesian3);let o=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(i,i),r,r);return Cesium.Cartesian3.normalize(o,o),Cesium.Math.PI_OVER_TWO-Cesium.Math.acosClamped(o.z)}updateViewShed(){this.clear(),this.setLightCamera(),this.addVisualPyramid(),this.createFrustum()}clear(){this.pyramid&&(this.viewer.entities.removeById(this.pyramid.id),this.pyramid=void 0),this.frustumPrimitive&&(this.viewer.scene.primitives.remove(this.frustumPrimitive),this.frustumPrimitive=void 0),this.debugModelMatrixPrimitive&&(this.viewer.scene.primitives.remove(this.debugModelMatrixPrimitive),this.debugModelMatrixPrimitive=void 0)}addVisualPyramid(){let e=this.ViewShedOptions,t=e.viewPosition,i=Number(e.visualRange),r=Cesium.Transforms.eastNorthUpToFixedFrame(t);this.debugModelMatrixPrimitive=this.viewer.scene.primitives.add(new Cesium.DebugModelMatrixPrimitive({modelMatrix:r,length:5}));const o=e.horizontalViewAngle/2,n=e.verticalViewAngle/2,a=Cesium.Math.toDegrees(e.pitch),s=new Cesium.EllipsoidGraphics({radii:new Cesium.Cartesian3(i,i,i),minimumClock:Cesium.Math.toRadians(90-e.direction-o),maximumClock:Cesium.Math.toRadians(90-e.direction+o),minimumCone:Cesium.Math.toRadians(90-a-n),maximumCone:Cesium.Math.toRadians(90-a+n),fill:!1,outline:!0,subdivisions:256,stackPartitions:64,slicePartitions:64,outlineColor:Cesium.Color.YELLOWGREEN.withAlpha(.5)}),l=new Cesium.Entity({position:t,ellipsoid:s});this.pyramid=this.viewer.entities.add(l)}setLightCamera(){this.lightCamera||(this.lightCamera=new Cesium.Camera(this.viewer.scene));let e=this.ViewShedOptions,t=Number(e.visualRange);this.lightCamera.position=e.viewPosition,this.lightCamera.frustum.near=.1,this.lightCamera.frustum.far=t;const i=Cesium.Math.toRadians(e.horizontalViewAngle),r=Cesium.Math.toRadians(e.verticalViewAngle);this.lightCamera.frustum.aspectRatio=t*Math.tan(i/2)*2/(t*Math.tan(r/2)*2),this.lightCamera.frustum.fov=i>r?i:r,this.lightCamera.setView({destination:e.viewPosition,orientation:{heading:Cesium.Math.toRadians(e.direction||0),pitch:e.pitch||0,roll:0}})}createFrustum(){const e=new Cesium.Cartesian3,t=new Cesium.Matrix3,i=new Cesium.Quaternion,r=this.lightCamera.directionWC,o=this.lightCamera.upWC;let n=this.lightCamera.rightWC;n=Cesium.Cartesian3.negate(n,e);let a=t;Cesium.Matrix3.setColumn(a,0,n,a),Cesium.Matrix3.setColumn(a,1,o,a),Cesium.Matrix3.setColumn(a,2,r,a);let s=Cesium.Quaternion.fromRotationMatrix(a,i),l=new Cesium.GeometryInstance({geometry:new Cesium.FrustumOutlineGeometry({frustum:this.lightCamera.frustum,origin:this.ViewShedOptions.viewPosition,orientation:s}),id:"视椎体轮廓线"+Math.random().toString(36).substr(2),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(new Cesium.Color(0,1,0,1)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.frustumPrimitive=this.viewer.scene.primitives.add(new Cesium.Primitive({geometryInstances:l,appearance:new Cesium.PerInstanceColorAppearance({flat:!0,translucent:!1,closed:!0})}))}addViewershedPolygon(e){let t=new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(Cesium.Cartesian3.fromDegreesArray(e)),height:0,extrudedHeight:0,vertexFormat:Cesium.PerInstanceColorAppearance.VERTEX_FORMAT,stRotation:0,ellipsoid:Cesium.Ellipsoid.WGS84,granularity:Cesium.Math.RADIANS_PER_DEGREE,perPositionHeight:!1,closeTop:!0,closeBottom:!0,arcType:Cesium.ArcType.GEODESIC}),i=new Cesium.GeometryInstance({geometry:t,name:"ViewershedPolygon",attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});this.viewershedPolygon=this.viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:i,appearance:new Cesium.EllipsoidSurfaceAppearance({aboveGround:!0,material:new Cesium.Material({fabric:{type:"Image",uniforms:{image:this.returnImgae()}}})})}))}drawViewershed(e){const t=this.cartesian3ToDegree(this.ViewShedOptions.viewPosition),i=this.ViewShedOptions.visualRange,r=this.ViewShedOptions.direction;let o=this.computeBoundaryOptions(t,i,r);const n=o.bbox;let a=X([o.boundaryPoints]);const s=this.ViewShedOptions.visualRange/(1e3*e);let l=function(e,t,i){void 0===i&&(i={}),i.mask&&!i.units&&(i.units="kilometers");for(var r=[],o=e[0],n=e[1],a=e[2],s=e[3],l=t/rt([o,n],[a,n],i)*(a-o),c=t/rt([o,n],[o,s],i)*(s-n),u=a-o,d=s-n,p=Math.floor(u/l),h=(d-Math.floor(d/c)*c)/2,f=o+(u-p*l)/2;f<=a;){for(var m=n+h;m<=s;){var g=Z([f,m],i.properties);i.mask?ei(g,i.mask)&&r.push(g):r.push(g),m+=c}f+=l}return J(r)}(n,s,{mask:a});console.log(this.ViewShedOptions.visualRange,e,s);let c=this.createTargetPoints(l,s,t),u=Y.train(c.values,c.lngs,c.lats,"exponential",0,100),d=Y.grid([o.boundaryPoints],u,s/1e3);this.canvasEle.width=3840,this.canvasEle.height=2160,Y.plot(this.canvasEle,d,[n[0],n[2]],[n[1],n[3]],["#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#ff000080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080","#00ff0080"]),this.addViewershedPolygon(o.positionArr)}computeBoundaryOptions(e,t,i){let r=6356725;const o=e[0],n=e[1],a=[o,n,o,n];let s=[],l=[];s.push(o,n),l.push([o,n]);let c=i+45>360?i-45-360:i-45,u=c+90;for(let d=c;d<=u;d++){let e=t*Math.sin(d*Math.PI/180),i=t*Math.cos(d*Math.PI/180),c=r+21412*(90-n)/90,u=o+e/(c*Math.cos(n*Math.PI/180))*180/Math.PI,p=n+i/c*180/Math.PI;s.push(u,p),l.push([u,p]),this.refreshBBox(a,u,p)}return l.push([o,n]),{positionArr:s,boundaryPoints:l,bbox:a}}refreshBBox(e,t,i){e[0]=te[2]?t:e[2],e[3]=i>e[3]?i:e[3]}createTargetPoints(e,t,i){let r=[this.frustumPrimitive,this.pyramid,this.debugModelMatrixPrimitive],o=[],n=[],a=[],s=this.getHeight(i[0],i[1],r);[].push({x:i[0],y:i[1],z:s});let l=this.ViewShedOptions.viewPosition;for(let c=0;ct?o.push(0):o.push(1),n.push(s),a.push(u)}}return{values:o,lngs:n,lats:a}}returnImgae(){return this.canvasEle.toDataURL("image/png")}}Object.assign(pi.prototype,{createViewshed:function(e){let t=this,i=t.viewer.scene;t.initHandler(),t.clearAll();let r=0,o="左键点击创建起点";t.handler=new Cesium.ScreenSpaceEventHandler(t.viewer.canvas),t.handler.setInputAction((n=>{if(r++,1===r){o="左键点击创建终点";let e=i.pickPosition(n.position),r=t.cartesian3ToDegree(e);t.handler.setInputAction((function(n){P(o,n.endPosition,!0);let a=i.pickPosition(n.endPosition);if(Cesium.defined(a)){let i=t.cartesian3ToDegree(a),o=Cesium.Cartesian3.distance(a,e),n=t.getAngle(r[0],r[1],i[0],i[1]),s=t.getPitch(e,a);t.ViewShedOptions={viewPosition:e,endPosition:a,direction:n,pitch:s,horizontalViewAngle:90,verticalViewAngle:60,visibleAreaColor:Cesium.Color.GREEN,invisibleAreaColor:Cesium.Color.RED,visualRange:o},t.updateViewShed()}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}2===r&&(t.initHandler(),t.drawViewershed(e),P(o,n.endPosition,!1))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),t.handler.setInputAction((function(e){P(o,e.endPosition,!0)}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)},clearAll:function(){this.clear(),this.viewershedPolygon&&(this.viewer.scene.primitives.remove(this.viewershedPolygon),this.viewershedPolygon=void 0)}});class hi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._stopTime=null}}Object.assign(hi.prototype,{startSunShine(e){e=e||{},Cesium.defined(e.startTime)||(e.startTime=(new Date).getTime()),Cesium.defined(e.stopTime)||(e.stopTime=(new Date).getTime()+1e3),Cesium.defined(e.speed)||(e.speed=1600),this._stopTime?(this._viewer.clock.shouldAnimate=!0,this._viewer.clock.currentTime=this._stopTime):(this._viewer.scene.globe.enableLighting=!0,this._viewer.shadows=!0,this._viewer.clock.startTime=Cesium.JulianDate.fromDate(new Date(e.startTime)),this._viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date(e.startTime)),this._viewer.clock.stopTime=Cesium.JulianDate.fromDate(new Date(e.stopTime)),console.log(this._viewer.clock.currentTime),this._viewer.clock.clockRange=Cesium.ClockRange.LOOP_STOP,this._viewer.clock.clockStep=Cesium.ClockStep.SYSTEM_CLOCK_MULTIPLIER,this._viewer.clock.multiplier=e.speed,this._viewer.clock.canAnimate=!0,this._viewer.clock.shouldAnimate=!0)},stopSunShine(){this._stopTime=this._viewer.clock.currentTime,console.log(this._viewer.clock.currentTime),this._viewer.clock.shouldAnimate=!1},removeSunShine(){this._stopTime&&(this._viewer.clock.shouldAnimate=!0,this._viewer.clock.currentTime=this._stopTime,console.log(this._viewer.clock.currentTime)),this._viewer.scene.globe.enableLighting=!1,this._viewer.shadows=!1,this._stopTime=null}}),Object.assign(hi.prototype,{start(e){document.getElementsByClassName("cesium-viewer-animationContainer").length>0&&(document.getElementsByClassName("cesium-viewer-animationContainer")[0].style.display="block"),document.getElementsByClassName("cesium-viewer-timelineContainer").length>0&&(document.getElementsByClassName("cesium-viewer-timelineContainer")[0].style.display="block"),this._viewer.shadows=!0,e=e||{},Cesium.defined(e.startTime)||(e.startTime=new Date((new Date).toLocaleDateString()).getTime(),console.log("当天凌晨0点",new Date((new Date).toLocaleDateString()))),Cesium.defined(e.stopTime)||(e.stopTime=new Date((new Date).toLocaleDateString()).getTime()+864e5-1,console.log("当天23点59分59秒",new Date(new Date((new Date).toLocaleDateString()).getTime()+144e5))),Cesium.defined(e.speed)||(e.speed=1600);let t=Cesium.JulianDate.fromDate(new Date(e.startTime)),i=Cesium.JulianDate.fromDate(new Date(e.stopTime));viewer.timeline.zoomTo(t,i);let r=viewer.clock;r.shouldAnimate=!1,r.startTime=t,r.stopTime=i,r.currentTime=t,r.clockRange=Cesium.ClockRange.UNBOUNDED,r.multiplier=e.speed},remove(){document.getElementsByClassName("cesium-viewer-animationContainer").length>0&&(document.getElementsByClassName("cesium-viewer-animationContainer")[0].style.display="none"),document.getElementsByClassName("cesium-viewer-timelineContainer").length>0&&(document.getElementsByClassName("cesium-viewer-timelineContainer")[0].style.display="none"),this._viewer.shadows=!1,this._viewer.clock.currentTime=Cesium.JulianDate.fromDate(new Date((new Date).getTime())),this._viewer.clock.shouldAnimate=!1}});class fi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._profileEntities=[]}_interPoints(e,t){let i=[],r=[];for(let a=0;ao&&(o=i);let n=parseInt(o/2);n>1e3&&(n=1e3),n<2&&(n=2);for(let a=0;a{let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));this.removeProfileAnalysis(),t.clampToGround=!0,console.log(o);let n=this._interPoints(o,[t]);console.log(n),i(n)}))},removeProfileAnalysis(){let e=this;e._profileEntities&&e._profileEntities.length>0&&e._profileEntities.forEach((t=>{e._viewer.entities.remove(t)})),e._profileEntities=[]}});class mi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this.delEntitys=[],this.maxHeigh=-1e6}_VolumeAnalysis(e){let t=this,i=0,r=0,o=0,n=0;const a=e.geom.indices,s=e.geom.attributes.position.values;for(let c=0;cthis.maxHeigh&&(this.maxHeigh=o),{heightPos:Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,o),noHeightPos:Cesium.Cartesian3.fromRadians(r.longitude,r.latitude,0),height:o}}}Object.assign(mi.prototype,{createPolygonGeo(e,t){return new Promise(((i,r)=>{let o=this;(t=t||{}).precision=Cesium.defaultValue(t.precision,256),t.height=Cesium.defaultValue(t.height,10),o.remove();let n=[];for(let t=0;t{let i=e[2]||0;t=i,iCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0))),r=this;r.data=i,r.baseHeight=t.baseHeight,r.targetY=t.baseHeight+t.height;let o=new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(r.data),height:r.baseHeight,extrudedHeight:r.baseHeight+3e3}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.fromCssColorString(t.color).withAlpha(t.alpha)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}});r.limitHeightPrimitive=r._viewer.scene.primitives.add(new Cesium.ClassificationPrimitive({geometryInstances:o,releaseGeometryInstances:!1,classificationType:Cesium.ClassificationType.CESIUM_3D_TILE})),r._setPolygon(t)},removePrimitive(){this.HiePolygon&&this._viewer.entities.remove(this.HiePolygon),this.limitHeightPrimitive&&this._viewer.scene.primitives.remove(this.limitHeightPrimitive)},changeHeight(e){if(!this.limitHeightPrimitive)return;this.targetY=this.baseHeight+e;let t=Cesium.Cartographic.fromCartesian(this.limitHeightPrimitive._primitive._boundingSpheres[0].center),i=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight),r=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,this.baseHeight+e),o=Cesium.Cartesian3.subtract(r,i,new Cesium.Cartesian3);this.limitHeightPrimitive._primitive.modelMatrix=Cesium.Matrix4.fromTranslation(o)}});class vi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._camera=this._viewer.camera,this._scene=this._viewer.scene,this.targetY=0,this._mouseHandler()}_mouseHandler(){let e,t=this,i=t._viewer,r=t._scene;new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(t){let i=r.pick(t.position);Cesium.defined(i)&&Cesium.defined(i.id)&&Cesium.defined(i.id.plane)&&(e=i.id.plane,e.material=Cesium.Color.RED.withAlpha(.05),e.outlineColor=Cesium.Color.RED,r.screenSpaceCameraController.enableInputs=!1)}),Cesium.ScreenSpaceEventType.LEFT_DOWN),new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(){Cesium.defined(e)&&(e.material=Cesium.Color.RED.withAlpha(.1),e.outlineColor=Cesium.Color.RED,e=void 0),r.screenSpaceCameraController.enableInputs=!0}),Cesium.ScreenSpaceEventType.LEFT_UP),new Cesium.ScreenSpaceEventHandler(i.scene.canvas).setInputAction((function(i){if(Cesium.defined(e)){let e=i.startPosition.y-i.endPosition.y;t.targetY+=e}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE)}_createPlaneUpdateFunction(e){let t=this;return function(){return e.distance=t.targetY,e}}_createPlane(e,t,i){let r=this._getOriginCoordinateSystemPoint(e,i),o=this._getOriginCoordinateSystemPoint(t,i),n=new Cesium.Cartesian3(0,0,10),a=Cesium.Cartesian3.subtract(o,r,new Cesium.Cartesian3),s=Cesium.Cartesian3.cross(a,n,new Cesium.Cartesian3);s=Cesium.Cartesian3.normalize(s,s);let l=Cesium.Plane.fromPointNormal(r,s);return Cesium.ClippingPlane.fromPlane(l)}_getOriginCoordinateSystemPoint(e,t){let i=Cesium.Cartesian3.fromDegrees(e[0],e[1]);return Cesium.Matrix4.multiplyByPoint(t,i,new Cesium.Cartesian3(0,0,0))}_getInverseTransform(e){let t;const i=e.root.transform;return t=i&&i.equals(Cesium.Matrix4.IDENTITY)||!i?Cesium.Transforms.eastNorthUpToFixedFrame(e.boundingSphere.center):Cesium.Matrix4.fromArray(e.root.transform),Cesium.Matrix4.inverseTransformation(t,new Cesium.Matrix4)}_isDirRes(e,t){var i=[];e.forEach((e=>{i.push([e.lng,e.lat])}));let r=function(e){for(var t,i,r=se(e),o=0,n=1;n0}(K(i));var o=[];if(t)if(r)for(var n=0,a=e.length-1;a>=0;a--)o[n]=e[a],n++;else o=e;else if(r)o=e;else for(n=0,a=e.length-1;a>=0;a--)o[n]=e[a],n++;return o}}Object.assign(vi.prototype,{activate(e){let t=this,i=t._viewer,r=t._getInverseTransform(e);[].push(t._createPlane([121.55814450142213,37.39658788787028],[121.65814450142213,37.49658788787028],r));let o=new Cesium.ClippingPlaneCollection({planes:[new Cesium.ClippingPlane(new Cesium.Cartesian3(0,1,0),-10)],edgeWidth:1});return t.tileset=e,e.clippingPlanes=o,e.debugShowBoundingVolume=!1,e.readyPromise.then((function(){let r=e.boundingSphere,n=r.radius;if(i.zoomTo(e,new Cesium.HeadingPitchRange(.5,-.2,n/5)),!Cesium.Matrix4.equals(e.root.transform,Cesium.Matrix4.IDENTITY)){const t=Cesium.Matrix4.getTranslation(e.root.transform,new Cesium.Cartesian3),i=Cesium.Cartographic.fromCartesian(t),r=Cesium.Cartographic.fromCartesian(e.boundingSphere.center).height-i.height;o.modelMatrix=Cesium.Matrix4.fromTranslation(new Cesium.Cartesian3(0,0,r))}for(let e=0;eCesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let i=this.viewer;this.clear();let r=[],o=Cesium.Cartesian3.subtract(e[0],e[1],new Cesium.Cartesian3).x>0;this.excavateMinHeight=999999999;for(let n=0;n{let i=[],r=e.reduce((function(e,t,r,o){var n=10*r,a=n+10,s=o.slice(n,a);return 0!=s.length&&(i[r]=s),i}),[]);t._calculateSlope(r),t._openTip()}))}_createPolygonInsrance(e,t){let i=[];for(let o=1;o0?[Cesium.Cartographic.toCartesian(n),Cesium.Cartographic.toCartesian(a)]:[Cesium.Cartographic.toCartesian(a),Cesium.Cartographic.toCartesian(n)];return new Cesium.GeometryInstance({id:{type:"SlopeAspect",value:o},geometry:new Cesium.GroundPolylineGeometry({positions:s,width:this.arrowWidth}),attributes:{color:Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.BLUE.withAlpha(.6)),show:new Cesium.ShowGeometryInstanceAttribute(!0)}})}_calculateSlope(e){let t=this,i=[],r=[];for(let a=0;as&&(s=t,l=e)}let c=new Cesium.Cartographic(n.longitude,n.latitude,0),u=new Cesium.Cartographic(o[l].longitude,o[l].latitude,0),d=Cesium.Cartesian3.distance(Cesium.Cartographic.toCartesian(c),Cesium.Cartographic.toCartesian(u)),p=Math.abs(s/d),h=t._calculateSlopeColor(p,.4);const f=t._createPolygonInsrance(o,h);r.push(f);let m=l>4?o[l-4]:o[l+4],g=o[l];const v=t._createArrowInstance(g,n,m,s,p);i.push(v)}const o=t._viewer.scene.primitives.add(new Cesium.GroundPrimitive({geometryInstances:r,appearance:new Cesium.PerInstanceColorAppearance({translucent:!0,closed:!1})})),n=t._viewer.scene.primitives.add(new Cesium.GroundPolylinePrimitive({geometryInstances:i,appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineArrow",uniforms:{color:new Cesium.Color(1,1,0,.8)}}})})}));t.result.push(n,o)}_calculateSlopeColor(e,t){return e<.00872686779075879?"rgba(85,182,43,"+t+")":e<.03492076949174773?"rgba(135,211,43,"+t+")":e<.08748866352592401?"rgba(204,244,44,"+t+")":e<.2679491924311227?"rgba(245,233,44,"+t+")":e<.7002075382097097?"rgba(255,138,43,"+t+")":e<1.4281480067421144?"rgba(255,84,43,"+t+")":"rgba(255,32,43,"+t+")"}}Object.assign(wi.prototype,{createNew4Distance(e,t,i){let r=this;(i=i||{}).distance=i.distance||.1;let o=200*i.distance>35?35:200*i.distance;r.arrowWidth=o<15?15:o;let n=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));r.clearAll();let a=C.Cartesian3ListToWGS84(n),s=[],l=1e4,c=1e4,u=-1e4,d=-1e3;for(let f=0;fu?t:u,d=i>d?i:d}s.push(s[0]);let p=[l,c,u,d];X([s]);let h=di(p,i.distance,{});r._createEllipse(h)},createNew4Num(e,t,i){let r=this;(i=i||{}).num=Cesium.defaultValue(i.num,10);let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));r.clearAll();let n=C.Cartesian3ListToWGS84(o),a=[],s=1e4,l=1e4,c=-1e4,u=-1e3;for(let v=0;vc?t:c,u=i>u?i:u}a.push(a[0]);let d=[s,l,c,u],p=c-s,h=u-l;h=h>p?h:p;const f=h/i.num;let m=2e3*f>35?35:2e3*f;r.arrowWidth=m<15?15:m,X([a]);let g=di(d,f,{units:"degrees"});r._createEllipse(g)},clearAll(){this.result.forEach((e=>{this._viewer.scene.primitives.remove(e)})),this.result=[],this.handler&&(this.handler.destroy(),this.handler=void 0)}});let xi={TerrainExcavation:yi,SlopeAspect:wi};class Ci{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}_initRain(){this.rainStage=new Cesium.PostProcessStage({name:"jt_rain",fragmentShader:this._rain(),uniforms:{tiltAngle:()=>this.tiltAngle,rainSize:()=>this.rainSize,rainSpeed:()=>this.rainSpeed}}),this._viewer.scene.postProcessStages.add(this.rainStage)}_initSnow(){this.snowStage=new Cesium.PostProcessStage({name:"jt_snow",fragmentShader:this._snow(),uniforms:{snowSize:()=>this.snowSize,snowSpeed:()=>this.snowSpeed}}),this._viewer.scene.postProcessStages.add(this.snowStage)}_initFog(){this.fogStage=new Cesium.PostProcessStage({name:"jt_fog",fragmentShader:this._fog(),uniforms:{visibility:()=>this.visibility,fogColor:()=>this.color}}),this._viewer.scene.postProcessStages.add(this.fogStage)}_rain(){return"uniform sampler2D colorTexture;\n\t varying vec2 v_textureCoordinates;\n\t uniform float tiltAngle;\n\t uniform float rainSize;\n\t uniform float rainSpeed;\n\t float hash(float x) {\n\t return fract(sin(x * 133.3) * 13.13);\n\t }\n\t void main(void) {\n\t float time = czm_frameNumber / rainSpeed;\n\t vec2 resolution = czm_viewport.zw;\n\t vec2 uv = (gl_FragCoord.xy * 2. - resolution.xy) / min(resolution.x, resolution.y);\n\t vec3 c = vec3(.6, .7, .8);\n\t float a = tiltAngle;\n\t float si = sin(a), co = cos(a);\n\t uv *= mat2(co, -si, si, co);\n\t uv *= length(uv + vec2(0, 4.9)) * rainSize + 1.;\n\t float v = 1. - sin(hash(floor(uv.x * 100.)) * 2.);\n\t float b = clamp(abs(sin(20. * time * v + uv.y * (5. / (2. + v)))) - .95, 0., 1.) * 20.;\n\t c *= v * b;\n\t gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c, 1), .5);\n\t }\n\t "}_snow(){return"uniform sampler2D colorTexture;\n varying vec2 v_textureCoordinates;\n uniform float snowSpeed;\n uniform float snowSize;\n float snow(vec2 uv,float scale)\n {\n float time=czm_frameNumber/snowSpeed;\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));if(w<.1)return 0.;\n uv+=time/scale;uv.y+=time*2./scale;uv.x+=sin(uv.y+time*.5)/scale;\n uv*=scale;vec2 s=floor(uv),f=fract(uv),p;float k=3.,d;\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7,3,6,5))*5.))-f;d=length(p);k=min(d,k);\n k=smoothstep(0.,k,sin(f.x+f.y)*snowSize);\n return k*w;\n }\n void main(void){\n vec2 resolution=czm_viewport.zw;\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\n vec3 finalColor=vec3(0);\n //float c=smoothstep(1.,0.3,clamp(uv.y*.3+.8,0.,.75));\n float c=0.;\n c+=snow(uv,30.)*.0;\n c+=snow(uv,20.)*.0;\n c+=snow(uv,15.)*.0;\n c+=snow(uv,10.);\n c+=snow(uv,8.);\n c+=snow(uv,6.);\n c+=snow(uv,5.);\n finalColor=(vec3(c));\n gl_FragColor=mix(texture2D(colorTexture,v_textureCoordinates),vec4(finalColor,1),.5);\n }\n "}_fog(){return"uniform sampler2D colorTexture;\n\t uniform sampler2D depthTexture;\n\t uniform float visibility;\n\t uniform vec4 fogColor;\n\t varying vec2 v_textureCoordinates; \n\t void main(void) \n\t { \n\t vec4 origcolor = texture2D(colorTexture, v_textureCoordinates); \n\t float depth = czm_readDepth(depthTexture, v_textureCoordinates); \n\t vec4 depthcolor = texture2D(depthTexture, v_textureCoordinates); \n\t float f = visibility * (depthcolor.r - 0.3) / 0.2; \n\t if (f < 0.0) f = 0.0; \n\t else if (f > 1.0) f = 1.0; \n\t gl_FragColor = mix(origcolor, fogColor, f); \n\t }\n"}_removeSnow(){this._viewer&&this.snowStage&&(this._viewer.scene.postProcessStages.remove(this.snowStage),delete this.snowSize,delete this.snowSpeed)}_removeRain(){this._viewer&&this.rainStage&&(this._viewer.scene.postProcessStages.remove(this.rainStage),delete this.tiltAngle,delete this.rainSize,delete this.rainSpeed)}_removeFog(){this._viewer&&this.fogStage&&(this._viewer.scene.postProcessStages.remove(this.fogStage),delete this.visibility,delete this.color)}}Object.assign(Ci.prototype,{addRainEffect(e){e=e||{},this.tiltAngle=Cesium.defaultValue(e.tiltAngle,-.6),this.rainSize=Cesium.defaultValue(e.rainSize,.3),this.rainSpeed=Cesium.defaultValue(e.rainSpeed,60),this._initRain()},addSnowEffect(e){e=e||{},this.snowSize=Cesium.defaultValue(e.snowSize,.02),this.snowSpeed=Cesium.defaultValue(e.snowSpeed,60),this._initSnow()},addFogEffect(e){e=e||{},this.visibility=Cesium.defaultValue(e.visibility,.1),this.color=Cesium.defaultValue(e.color,new Cesium.Color(.8,.8,.8,.5)),this._show=Cesium.defaultValue(e.show,!0),this._initFog()},removeEffect(){this.snowStage&&this._removeSnow(),this.rainStage&&this._removeRain(),this.fogStage&&this._removeFog()}});const ki=Cesium.BoxGeometry,Ti=Cesium.Cartesian3,Ei=Cesium.defaultValue,Ai=Cesium.defined,Si=Cesium.destroyObject,Pi=Cesium.DeveloperError,Ii=Cesium.GeometryPipeline,Mi=Cesium.Matrix3,Di=Cesium.Matrix4,Li=Cesium.Transforms,Oi=Cesium.VertexFormat,Ri=Cesium.BufferUsage,Ni=Cesium.CubeMap,Bi=Cesium.DrawCommand,ji=Cesium.loadCubeMap,Ui=Cesium.RenderState,Fi=Cesium.VertexArray,zi=Cesium.BlendingState,Hi=Cesium.SceneMode,Vi=Cesium.ShaderProgram,Wi=Cesium.ShaderSource;Cesium.defined(Cesium.Matrix4.getRotation)||(Cesium.Matrix4.getRotation=Cesium.Matrix4.getMatrix3);class Gi{constructor(e){this.sources=e.sources,this._sources=void 0,this.show=Ei(e.show,!0),this._command=new Bi({modelMatrix:Di.clone(Di.IDENTITY),owner:this}),this._cubeMap=void 0,this._attributeLocations=void 0,this._useHdr=void 0}}const Yi=new Mi;Gi.prototype.update=function(e,t){const i=this;if(!this.show)return;if(e.mode!==Hi.SCENE3D&&e.mode!==Hi.MORPHING)return;if(!e.passes.render)return;const r=e.context;if(this._sources!==this.sources){this._sources=this.sources;const e=this.sources;if(!(Ai(e.positiveX)&&Ai(e.negativeX)&&Ai(e.positiveY)&&Ai(e.negativeY)&&Ai(e.positiveZ)&&Ai(e.negativeZ)))throw new Pi("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(typeof e.positiveX!=typeof e.negativeX||typeof e.positiveX!=typeof e.positiveY||typeof e.positiveX!=typeof e.negativeY||typeof e.positiveX!=typeof e.positiveZ||typeof e.positiveX!=typeof e.negativeZ)throw new Pi("this.sources properties must all be the same type.");"string"==typeof e.positiveX?ji(r,this._sources).then((function(e){i._cubeMap=i._cubeMap&&i._cubeMap.destroy(),i._cubeMap=e})):(this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),this._cubeMap=new Ni({context:r,source:e}))}const o=this._command;if(o.modelMatrix=Li.eastNorthUpToFixedFrame(e.camera._positionWC),!Ai(o.vertexArray)){o.uniformMap={u_cubeMap:function(){return i._cubeMap},u_rotateMatrix:function(){return Di.getRotation(o.modelMatrix,Yi)}};const e=ki.createGeometry(ki.fromDimensions({dimensions:new Ti(2,2,2),vertexFormat:Oi.POSITION_ONLY})),t=this._attributeLocations=Ii.createAttributeLocations(e);o.vertexArray=Fi.fromGeometry({context:r,geometry:e,attributeLocations:t,bufferUsage:Ri._DRAW}),o.renderState=Ui.fromCache({blending:zi.ALPHA_BLEND})}if(!Ai(o.shaderProgram)||this._useHdr!==t){const e=new Wi({defines:[t?"HDR":""],sources:["uniform samplerCube u_cubeMap;\n varying vec3 v_texCoord;\n void main()\n {\n vec4 color = textureCube(u_cubeMap, normalize(v_texCoord));\n gl_FragColor = vec4(czm_gammaCorrect(color).rgb, czm_morphTime);\n }\n "]});o.shaderProgram=Vi.fromCache({context:r,vertexShaderSource:"attribute vec3 position;\n varying vec3 v_texCoord;\n uniform mat3 u_rotateMatrix;\n void main()\n {\n vec3 p = czm_viewRotation * u_rotateMatrix * (czm_temeToPseudoFixed * (czm_entireFrustum.y * position));\n gl_Position = czm_projection * vec4(p, 1.0);\n v_texCoord = position.xyz;\n }\n ",fragmentShaderSource:e,attributeLocations:this._attributeLocations}),this._useHdr=t}return Ai(this._cubeMap)?o:void 0},Gi.prototype.isDestroyed=function(){return!1},Gi.prototype.destroy=function(){const e=this._command;return e.vertexArray=e.vertexArray&&e.vertexArray.destroy(),e.shaderProgram=e.shaderProgram&&e.shaderProgram.destroy(),this._cubeMap=this._cubeMap&&this._cubeMap.destroy(),Si(this)};class qi{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._farSkyBox=e.scene.skyBox}}Object.assign(qi.prototype,{setGroundSkyBox(e){if((e=e||{}).height=e.height||2e5,e.type=e.type||"蓝天",e.sources){if(!(Cesium.defined(e.sources.positiveX)&&Cesium.defined(e.sources.negativeX)&&Cesium.defined(e.sources.positiveY)&&Cesium.defined(e.sources.negativeY)&&Cesium.defined(e.sources.positiveZ)&&Cesium.defined(e.sources.negativeZ)))throw new Cesium.DeveloperError("options.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.")}else switch(e.type){case"晚霞":e.sources={positiveX:"/jt3dSDK/imgs/skybox/01/px.png",negativeX:"/jt3dSDK/imgs/skybox/01/nx.png",positiveY:"/jt3dSDK/imgs/skybox/01/py.png",negativeY:"/jt3dSDK/imgs/skybox/01/ny.png",positiveZ:"/jt3dSDK/imgs/skybox/01/pz.png",negativeZ:"/jt3dSDK/imgs/skybox/01/nz.png"};break;case"阴天":e.sources={positiveX:"/jt3dSDK/imgs/skybox/02/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/02/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/02/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/02/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/02/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/02/nz.jpg"};break;case"蓝天":e.sources={positiveX:"/jt3dSDK/imgs/skybox/03/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/03/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/03/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/03/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/03/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/03/nz.jpg"};break;case"紫色星空":e.sources={positiveX:"/jt3dSDK/imgs/skybox/04/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/04/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/04/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/04/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/04/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/04/nz.jpg"};break;case"蓝色星空":e.sources={positiveX:"/jt3dSDK/imgs/skybox/05/px.jpg",negativeX:"/jt3dSDK/imgs/skybox/05/nx.jpg",positiveY:"/jt3dSDK/imgs/skybox/05/py.jpg",negativeY:"/jt3dSDK/imgs/skybox/05/ny.jpg",positiveZ:"/jt3dSDK/imgs/skybox/05/pz.jpg",negativeZ:"/jt3dSDK/imgs/skybox/05/nz.jpg"}}let t=this,i=new Gi({sources:e.sources,show:!0});t._viewer.scene.postRender.addEventListener((()=>{var r=t._viewer.camera.position;Cesium.Cartographic.fromCartesian(r).heightCesium.Cartesian3.fromDegrees(e.lng,e.lat,e.height))),r=[];for(let e=0;e{let e=new Cesium.SampledPositionProperty;for(let r=0;r{let r=this;r.clearFlyPaths();let o=r._viewer.camera.position;var n={orientation:{heading:r._viewer.camera.heading,pitch:r._viewer.camera.pitch,roll:r._viewer.camera.roll},position:o,clampToGround:!0,geometry:{type:"LineString",coordinates:e}};r._draw3DObj=n,t(!0)}))},clearFlyPaths(){this._draw3DObj=null,this._viewer.trackedEntity=void 0,this._viewer.entities.remove(this.entityFly)},startFly(e,t){this._draw3DObj?this._startFly(this._draw3DObj,e):t&&t("漫游路线不存在")},pauseFly(){var e=this._viewer.clockViewModel;e.shouldAnimate?e.shouldAnimate=!1:this._viewer.clockViewModel.canAnimate&&(e.shouldAnimate=!0)},forwardFly(){var e=this._viewer.clockViewModel,t=e.multiplier;t<0&&(e.multiplier=-t),e.shouldAnimate=!0},backwardsFly(){var e=this._viewer.clockViewModel,t=e.multiplier;t>0&&(e.multiplier=-t),e.shouldAnimate=!0},outFly(){var e=Cesium.JulianDate.fromDate(new Date);this._viewer.clock.startTime=e.clone();var t=Cesium.JulianDate.addSeconds(e,3e8,new Cesium.JulianDate);this._viewer.clock.stopTime=t.clone(),this.clearFlyPaths()}});class er{constructor(e,t,i){if(!e)throw new Cesium.DeveloperError("no viewer object!");if(!t)throw new Cesium.DeveloperError("no positions Array!");this.viewer=e,this.entity=void 0,(i=i||{}).time=Cesium.defaultValue(i.time,360),i.speed=Cesium.defaultValue(i.speed,10),i.isPathShow=Cesium.defaultValue(i.isPathShow,!0),i.height=Cesium.defaultValue(i.height,5),i.role=Cesium.defaultValue(i.role,1),i.followedX=Cesium.defaultValue(i.followedX,50),i.followedZ=Cesium.defaultValue(i.followedZ,10),this.time=i.time,this.speed=i.speed,this.isPathShow=i.isPathShow,this.height=i.height,this.role=i.role,this.followedX=i.followedX,this.followedZ=i.followedZ,this.model=i.model,this.billboard=i.billboard,this.point=i.point,this.label=i.label,this.property=this.ComputeRoamingLineProperty(t,this.time)}ComputeRoamingLineProperty(e,t){let i=[];i=e[0]instanceof Cesium.Cartesian3?e:e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));let r=[];for(let d=0;d{let t=new Cesium.SampledPositionProperty;for(let r=0;r0&&(e.multiplier=-t),e.shouldAnimate=!0}ChangeRoamingSpeed(e){this.viewer.clock.multiplier=e}EndRoaming(){void 0!==this.entity&&this.viewer.entities.remove(this.entity),this.viewer.trackedEntity=void 0;let e=this.viewer.clock.onTick.numberOfListeners;for(let t=0;t{let o=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");(t=t||{}).id=t.id||m();let n=t.style||{};n.pixelSize=Cesium.defaultValue(n.pixelSize,10),n.color?n.color=new Cesium.Color(n.color[0]/255,n.color[1]/255,n.color[2]/255,n.color[3]):n.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),n.outlineColor?n.outlineColor=new Cesium.Color(n.outlineColor[0]/255,n.outlineColor[1]/255,n.outlineColor[2]/255,n.outlineColor[3]):n.outlineColor=new Cesium.Color.fromCssColorString("#ffff00").withAlpha(1),n.outlineWidth=Cesium.defaultValue(n.outlineWidth,1),v(o._viewer,[e]).then((function(r){let a=Cesium.Cartesian3.fromDegrees(e[0],e[1],r[0].height),s=new Cesium.Entity({id:t.id,position:a,point:{pixelSize:n.pixelSize,color:n.color,outlineColor:n.outlineColor,outlineWidth:n.outlineWidth,heightReference:Cesium.HeightReference.NONE,disableDepthTestDistance:r[0].height}});if(t.label){let e=t.label||{};e.text=Cesium.defaultValue(e.text,""),e.font=Cesium.defaultValue(e.font,"24px Helvetica"),e.fillColor?e.fillColor=new Cesium.Color(e.fillColor[0]/255,e.fillColor[1]/255,e.fillColor[2]/255,e.fillColor[3]):e.fillColor=new Cesium.Color.fromCssColorString("#fff").withAlpha(1),e.outlineColor?e.outlineColor=new Cesium.Color(e.outlineColor[0]/255,e.outlineColor[1]/255,e.outlineColor[2]/255,e.outlineColor[3]):e.outlineColor=new Cesium.Color(0,.6,.3,0),e.outlineWidth=Cesium.defaultValue(e.outlineWidth,1),e.showBackground=Cesium.defaultValue(e.showBackground,!1),e.backgroundColor?e.backgroundColor=new Cesium.Color(e.backgroundColor[0]/255,e.backgroundColor[1]/255,e.backgroundColor[2]/255,e.backgroundColor[3]):e.backgroundColor=new Cesium.Color(0,0,0,.6),e.pixelOffset=Cesium.defaultValue(e.pixelOffset,0),e.scale=Cesium.defaultValue(e.scale,1),e.near=Cesium.defaultValue(e.near,150),e.nearValue=Cesium.defaultValue(e.nearValue,1),e.far=Cesium.defaultValue(e.far,2400),e.farValue=Cesium.defaultValue(e.farValue,0),s.label={text:e.text,font:e.font,fillColor:e.fillColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:e.showBackground,backgroundColor:e.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,e.pixelOffset),scale:e.scale}}o._viewer.entities.add(s),i(s)}))}))},addBillboard(e,t){return new Promise(((i,r)=>{let o=this._viewer;(t=t||{}).id=t.id||m();let n=t.billboard||{};n.imgUrl=n.imgUrl||this._iconBlue,n.scale=Cesium.defaultValue(n.scale,1),n.pixelOffset=Cesium.defaultValue(n.pixelOffset,0),n.near=Cesium.defaultValue(n.near,150),n.nearValue=Cesium.defaultValue(n.nearValue,1),n.far=Cesium.defaultValue(n.far,2400),n.farValue=Cesium.defaultValue(n.farValue,0);let a=Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0),s=new Cesium.Entity({id:t.id,name:"add billboard",position:a,billboard:{image:n.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:n.scale,pixelOffset:new Cesium.Cartesian2(0,n.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY,scaleByDistance:new Cesium.NearFarScalar(n.near,n.nearValue,n.far,n.farValue)}});if(t.label){let e=t.label||{};e.text=Cesium.defaultValue(e.text,""),e.font=Cesium.defaultValue(e.font,"24px Helvetica"),e.fillColor instanceof Array?e.fillColor=new Cesium.Color(e.fillColor[0]/255,e.fillColor[1]/255,e.fillColor[2]/255,e.fillColor[3]):e.fillColor instanceof String?e.fillColor=new Cesium.Color.fromCssColorString(e.fillColor).withAlpha(1):e.fillColor=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),e.outlineColor instanceof Array?e.outlineColor=new Cesium.Color(e.outlineColor[0]/255,e.outlineColor[1]/255,e.outlineColor[2]/255,e.outlineColor[3]):e.outlineColor instanceof String?e.outlineColor=new Cesium.Color.fromCssColorString(e.outlineColor).withAlpha(1):e.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00").withAlpha(1),e.outlineWidth=Cesium.defaultValue(e.outlineWidth,1),e.showBackground=Cesium.defaultValue(e.showBackground,!1),e.backgroundColor instanceof Array?e.backgroundColor=new Cesium.Color(e.backgroundColor[0]/255,e.backgroundColor[1]/255,e.backgroundColor[2]/255,e.backgroundColor[3]):e.backgroundColor instanceof String?e.backgroundColor=new Cesium.Color.fromCssColorString(e.backgroundColor).withAlpha(1):e.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00").withAlpha(1),e.pixelOffset=Cesium.defaultValue(e.pixelOffset,0),e.scale=Cesium.defaultValue(e.scale,1),e.near=Cesium.defaultValue(e.near,150),e.nearValue=Cesium.defaultValue(e.nearValue,1),e.far=Cesium.defaultValue(e.far,2400),e.farValue=Cesium.defaultValue(e.farValue,0),s.label={text:e.text,font:e.font,fillColor:e.fillColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:e.showBackground,backgroundColor:e.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,t.pixelOffset),scale:e.scale,scaleByDistance:new Cesium.NearFarScalar(e.near,e.nearValue,e.far,e.farValue)}}o.entities.add(s),i(s)}))},addBillboardByGeoJson:function(e,t){return new Promise(((r,o)=>{let n=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m();let a=t.billboard||{};a.imgUrl=Cesium.defaultValue(a.imgUrl,"./jt3dSDK/imgs/point/point3.png"),a.scale=Cesium.defaultValue(a.scale,1),a.pixelOffset=Cesium.defaultValue(a.pixelOffset,0);let s=t.label||{};s.text=Cesium.defaultValue(s.text,""),s.textField=Cesium.defaultValue(s.textField,""),s.font=Cesium.defaultValue(s.font,"24px Helvetica"),s.fillColor instanceof Array?s.fillColor=new Cesium.Color(s.fillColor[0]/255,s.fillColor[1]/255,s.fillColor[2]/255,s.fillColor[3]):s.fillColor instanceof String?s.fillColor=new Cesium.Color.fromCssColorString(s.fillColor).withAlpha(1):s.fillColor=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),s.outlineColor instanceof Array?s.outlineColor=new Cesium.Color(s.outlineColor[0]/255,s.outlineColor[1]/255,s.outlineColor[2]/255,s.outlineColor[3]):s.outlineColor instanceof String?s.outlineColor=new Cesium.Color.fromCssColorString(s.outlineColor).withAlpha(1):s.outlineColor=new Cesium.Color.fromCssColorString("#FFFF00").withAlpha(1),s.outlineWidth=Cesium.defaultValue(s.outlineWidth,1),s.showBackground=Cesium.defaultValue(s.showBackground,!1),s.backgroundColor instanceof Array?s.backgroundColor=new Cesium.Color(s.backgroundColor[0]/255,s.backgroundColor[1]/255,s.backgroundColor[2]/255,s.backgroundColor[3]):s.backgroundColor instanceof String?s.backgroundColor=new Cesium.Color.fromCssColorString(s.backgroundColor).withAlpha(1):s.backgroundColor=new Cesium.Color.fromCssColorString("#FFFF00").withAlpha(1),s.pixelOffset=Cesium.defaultValue(s.pixelOffset,0),s.scale=Cesium.defaultValue(s.scale,1),s.near=Cesium.defaultValue(s.near,150),s.nearValue=Cesium.defaultValue(s.nearValue,1),s.far=Cesium.defaultValue(s.far,2400),s.farValue=Cesium.defaultValue(s.farValue,0);new Cesium.GeoJsonDataSource(t.id).load(e,{clampToGround:!0}).then((function(e){n.dataSources.add(e);e.entities.values.forEach((e=>{e.billboard={image:a.imgUrl,horizontalOrigin:Cesium.HorizontalOrigin.CENTER,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,scale:a.scale,pixelOffset:new Cesium.Cartesian2(0,a.pixelOffset),disableDepthTestDistance:Number.POSITIVE_INFINITY};let t=s.text;e.properties[s.textField]&&(t=e.properties[s.textField]._value),""===t&&(t=(i+1).toString()),e.label={text:t.toString(),font:s.font,fillColor:s.fillColor,outlineColor:s.outlineColor,outlineWidth:s.outlineWidth,style:Cesium.LabelStyle.FILL_AND_OUTLINE,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,showBackground:s.showBackground,backgroundColor:s.backgroundColor,backgroundPadding:new Cesium.Cartesian2(6,6),disableDepthTestDistance:Number.POSITIVE_INFINITY,pixelOffset:new Cesium.Cartesian2(0,s.pixelOffset),scale:s.scale},s.scaleByDistance&&(s.scaleByDistance.near=Cesium.defaultValue(s.scaleByDistance.near,0),s.scaleByDistance.nearValue=Cesium.defaultValue(s.scaleByDistance.nearValue,0),s.scaleByDistance.far=Cesium.defaultValue(s.scaleByDistance.far,1),s.scaleByDistance.farValue=Cesium.defaultValue(s.scaleByDistance.farValue,0),e.label.scaleByDistance=new Cesium.NearFarScalar(s.scaleByDistance.near,s.scaleByDistance.nearValue,s.scaleByDistance.far,s.scaleByDistance.farValue))}))}))}))},addGltf:function(e){let t=this._viewer;return new Promise(((i,r)=>{if(!Cesium.defined(e.points))throw i("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw i("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;e.id=e.id||m(),e.heading=Cesium.defaultValue(e.heading,0),e.pitch=Cesium.defaultValue(e.pitch,0),e.roll=Cesium.defaultValue(e.roll,0),e.alpha=Cesium.defaultValue(e.alpha,1),o=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);var n=Cesium.Math.toRadians(e.heading),a=e.pitch,s=e.roll,l=new Cesium.HeadingPitchRoll(n,a,s),c=t.entities.add({id:e.id,position:o,orientation:Cesium.Transforms.headingPitchRollQuaternion(o,l),model:{uri:e.url,incrementallyLoadTextures:!0,colorBlendMode:Cesium.ColorBlendMode.HIGHLIGHT,colorBlendAmount:.1,color:Cesium.Color.WHITE.withAlpha(e.alpha),imageBasedLightingFactor:new Cesium.Cartesian2(12,13),runAnimations:!0,show:!0,debugWireframe:!1,debugShowBoundingVolume:!1}});e.minimumPixelSize&&(c.model.minimumPixelSize=e.minimumPixelSize),e.maximumScale&&(c.model.maximumScale=e.maximumScale),e.silhouetteColor&&(c.model.silhouetteColor=new Cesium.Color(e.silhouetteColor[0]/255,e.silhouetteColor[1]/255,e.silhouetteColor[2]/255,e.silhouetteColor[3])),window[e.id]=c,i(e.id)}))},addModelFromGltf(e){let t=this._viewer;return new Promise(((i,r)=>{if(!Cesium.defined(e.points))throw i("options.points is required."),new Cesium.DeveloperError("options.points is required.");if(!Cesium.defined(e.url))throw i("options.url is required."),new Cesium.DeveloperError("options.url is required.");let o;e.id=e.id||m(),e.scale=Cesium.defaultValue(e.scale,1),o=e.points instanceof Cesium.Cartesian3?e.points:Cesium.Cartesian3.fromDegrees(e.points[0],e.points[1],e.points[2]||0);const n=Cesium.Transforms.eastNorthUpToFixedFrame(o);let a=t.scene.primitives.add(Cesium.Model.fromGltf({show:!0,url:e.url,modelMatrix:n,lightColor:new Cesium.Cartesian3(10,10,10),debugWireframe:!1,debugShowBoundingVolume:!1}));a.readyPromise.then((function(){var e=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromRotationZ(Cesium.Math.toRadians(0)));Cesium.Matrix4.multiply(a.modelMatrix,e,a.modelMatrix)})),window[e.id]=a,i(e.id)}))}});class ir{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e}}Object.assign(ir.prototype,{drawPolylineByGeoJson:function(e,t){return new Promise(((i,r)=>{let o=this._viewer;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m(),t.clampToGround=Cesium.defaultValue(t.clampToGround,!0),t.width=Cesium.defaultValue(t.width,3),t.minHeigh=Cesium.defaultValue(t.minHeigh,0),t.maxHeigh=Cesium.defaultValue(t.maxHeigh,2e8),Cesium.GeoJsonDataSource.load(e,{clampToGround:t.clampToGround}).then((e=>{o.dataSources.add(e),e.name=t.id;let r=e.entities.values,n=new Cesium.DistanceDisplayCondition(t.minHeigh,t.maxHeigh),a=new k(t);for(var s=0;s{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.width=t.width||5;let n=new k(t);i(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:n,clampToGround:!0}}))}))},PolylineArrowMaterialProperty:function(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.width=t.width||5;let n=new k(t);i(this._viewer.entities.add({id:t.id,name:"Pulse line",polyline:{positions:o,width:t.width,material:n,clampToGround:!0}}))}))},drawGlowingLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):t.color=Cesium.Color.RED,t.width=t.width||5,t.glowPower=t.glowPower||.25,t.taperPower=t.taperPower||1,i(this._viewer.entities.add({id:t.id,name:"Glowing blue line on the surface",polyline:{clampToGround:!0,positions:o,width:t.width,followSurface:!0,material:new Cesium.PolylineGlowMaterialProperty({color:t.color,glowPower:t.glowPower,taperPower:t.taperPower})}}))}))},drawSpecifyColorLine(e,t){return new Promise(((i,r)=>{Cesium.defined(e)||r("points is required."),e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.width=t.width||5,i(this._viewer.entities.add({id:t.id,name:"Red line on the surface",polyline:{clampToGround:!0,positions:o,width:t.width,material:t.color}}))}))},drawSpecifyColorAndOutlineColorLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.width=t.width||5,t.outlineColor?t.outlineColor=new Cesium.Color(t.outlineColor[0]/255,t.outlineColor[1]/255,t.outlineColor[2]/255,t.outlineColor[3]):t.outlineColor=new Cesium.Color.fromCssColorString("#ffff00").withAlpha(1),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1),i(this._viewer.entities.add({id:t.id,name:"Orange line with black outline at height and following the surface",polyline:{clampToGround:!0,positions:o,width:t.width,material:new Cesium.PolylineOutlineMaterialProperty({color:t.color,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor})}}))}))},drawSpecifyColorArrowStaticStateLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.width=t.width||5,i(this._viewer.entities.add({id:t.id,name:"Purple straight arrow at height",polyline:{clampToGround:!0,positions:o,width:t.width,followSurface:!1,material:new Cesium.PolylineArrowMaterialProperty(t.color)}}))}))},drawDashedLine(e,t){return new Promise(((i,r)=>{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<2&&r("线对象,点数至少2个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.color?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.width=t.width||5,t.gapColor?t.gapColor=new Cesium.Color(t.gapColor[0]/255,t.gapColor[1]/255,t.gapColor[2]/255,t.gapColor[3]):t.gapColor=Cesium.Color.TRANSPARENT,t.dashLength=t.dashLength||16,t.dashPattern=t.dashPattern||255,i(this._viewer.entities.add({id:t.id,name:"CYAN dashed line",polyline:{clampToGround:!0,positions:o,width:t.width,material:new Cesium.PolylineDashMaterialProperty({color:t.color,gapColor:t.gapColor,dashLength:t.dashLength,dashPattern:t.dashPattern})}}))}))}});class rr{constructor(e){if(!e)throw new Cesium.DeveloperError("no viewer object!");this._viewer=e,this._drawEntities=[],this._polygonEntity=null}}Object.assign(rr.prototype,{drawPolygonByGeoJson(e,t){return new Promise(((i,r)=>{let o=this;if(!Cesium.defined(e))throw new Cesium.DeveloperError("geoJsonUrl is required.");(t=t||{}).id=t.id||m(),t.clampToGround=Cesium.defaultValue(t.clampToGround,!0),t.color=Cesium.defaultValue(t.color,"#FF0000"),t.outlineColor=Cesium.defaultValue(t.outlineColor,"#FFFF00"),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1),t.extrudedHeight=Cesium.defaultValue(t.extrudedHeight,0),Cesium.GeoJsonDataSource.load(e,{clampToGround:!0,stroke:Cesium.Color.WHITE,strokeWidth:3,fill:Cesium.Color.RED.withAlpha(.5)}).then((e=>{o._viewer.dataSources.add(e),e.name=t.id;let r=e.entities.values;for(let i=0;i{if(!Cesium.defined(e))throw new Cesium.DeveloperError("points is required.");e.length<3&&r("面对象,点数至少3个");let o=e.map((e=>Cesium.Cartesian3.fromDegrees(e[0],e[1],e[2]||0)));(t=t||{}).id=t.id||m(),t.fill=t.fill||!0,t.color?t.color=new Cesium.Color(t.color[0]/255,t.color[1]/255,t.color[2]/255,t.color[3]):t.color=new Cesium.Color.fromCssColorString("#ff0000").withAlpha(1),t.outline=t.outline||!1,t.outlineColor?t.outlineColor=new Cesium.Color(t.outlineColor[0]/255,t.outlineColor[1]/255,t.outlineColor[2]/255,t.outlineColor[3]):t.outlineColor=new Cesium.Color.fromCssColorString("#000").withAlpha(1),t.outlineWidth=Cesium.defaultValue(t.outlineWidth,1);let n=new Cesium.Entity({id:t.id,name:"Generate surfaces based on coordinate points",polygon:{hierarchy:o,material:t.color,fill:t.fill,outline:t.outline,outlineWidth:t.outlineWidth,outlineColor:t.outlineColor}});t.outline&&(n.polyline={positions:n.polygon.hierarchy._value.positions,width:t.outlineWidth,material:t.outlineColor,clampToGround:!0}),this._viewer.entities.add(n),i(n)}))}}),Cesium.Primitive.prototype.setUseGeometry=function(e){this._useGeometry=e},Cesium.Primitive.prototype.getUseGeometry=function(){return this._useGeometry};class or{constructor(e,t){this._viewer=e,this._init(t)}_init(e){if(this._viewer.scene.globe.depthTestAgainstTerrain=!0,this._viewer.cesiumWidget.screenSpaceEventHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this._entities=this._viewer.entities,this._pointEntitys=[],this._sketchPointImage=void 0,this._iconNormal="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFubgqXuOI28ZE7FAvCLKLSNKxg/FSIzdvqNE62kaRitqpYMxovBGigo4I4n6nfwjsCrsLrtjnn53vnPe87/Oc9/2+854VdBhCd6ZP6dMHlAXO/lOngrzMLz/8EEQ0ASNGANNY2aOHxYIdfHr3LuBCwPnzQIKcf/AgiJ8pQV99BfmvR4+orHxZVsLxpZFT0qd07gyP7zqrej3IInF47lwQkTLV3d1xv3KXWPT4MYhLzMzIgHpn10+Sk+Gw74w+jx79HwSGnzUYhg4FED4FBcBq/jtokOOC2oSb0FZUgHpKVoeHQ9GtGM/y8lcgMLxf5juDBwNDlOWnTgGvUdWz5wsQ7c179fUWzz9y0tX1BdZPILeqCpTtil9QEOT9c876K1faWqS07XeMzJFuboCXkpaX1w5hqxl14QJIKYRWCzLV5OXtDQXbon3c3c2/TeMoYvncucAgPrl40Y7fA0zv1QtMydKwb58FL7toRwbDYo3/0utB3OD8qlX2hIkLqalwO0b9+fLlUHJOG9vQ0P4EjfyFIdPZGfqsURampIBIlxsWLLBtL/NltF4PhUIrVq92QGDIeEOmpye4pYju164Bq6n29LTiopy8tDTIL48pSExsDq/Oj9is/eAD4CRbli1DMEFUBAYCewnUaJD8jr2lpQjpJ7M2bBBi0+L47Tt2mP2G5xhNaWnAHrLj461tKF1rasA0rW5b//6w/0rigQcPWhrZKVFXP8TkybaFy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jY+D3kSGzlBchZz3TfSbUvPiu3z7W1X2mPVUigAVM4okmN55IVshZMSQEjtz364pV4Ui016sIghECFjCTEZGsEI5u3E5t++CTz9c+uWktCQU1WRGwJRiVwAKm06ZwtIRYL11SOyvXv/ThC5vfWW/iaOf2PEJsYAsMYFFM7nwLwQsIW5cTv/j9uq07PzmwxS3AR3urt8AWGBTL/H8IscX04zp4YflDG0iM73aRZnfffMeD+M2jnWJ4Ovx7FYI3K0IKB7Dj8xevqGxpbT80nE3r8RN16Asbamt45eFZCBWDw1AP3v7lP330j0OlZbTdvvzhP6Av3XroqeCQEiFUjJWWaw7WH7n/N5WP9w+EuxP74Du0oQ/6UhvuWyWEikHqPP3O+3u+eOIv/6iIT8v4XPG3F9eiDX1oX+5bKSQ+Lf91w+bddlq20+yfn3n1Y69p1qmk/H6XzLRJjgNIpR1IrfkXj7+Q4zkzPs2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._sketchEntityName="sketchEntity",this._sketchTempPoints=[],this._sketchPoints=[],this._sketchOutputPoints=[],this._sketchTempPolyline=void 0,this._sketchPolyline=void 0,this._sketchTempPolygon=void 0,this._sketchPolygon=void 0,this._sketchTempAltituePolyline=void 0,this._sketchAltitudePolyline=void 0,this._sketchAltitudeInitHeight=0,this._sketchTempSpatialPolyline=void 0,this._sketchSpatialPolyline=void 0,this._sketchTempCircle=void 0,this._sketchCircle=void 0,this._sketchTempRectangle=void 0,this._sketchRectangle=void 0,this._sketchTempTriangleAltitudePolyline=void 0,this._sketchTriangleAltituePolyline=void 0,this._sketchTempSpatialTriangle=void 0,this._sketchSpatialTriangle=void 0,this._lineLabel=void 0,this._polygonLabel=void 0,(e=e||{}).isDrawPoint?this._isDrawPoint=e.isDrawPoint:this._isDrawPoint=!1,e.isRetainDrawPoint?this._isRetainDrawPoint=e.isRetainDrawPoint:this._isRetainDrawPoint=!1,this._param={moveLineWidth:2,lineWidth:2,moveAltitudeLineWidth:2,altitudeLineWidth:2,spatialLineWidth:2,moveEllipseColor:[0,255,0,.5],moveEllipseOutline:!0,moveEllipseOutlineColor:[255,0,0,.5],moveEllipseOutlineWidth:1,spatialLineWidth:2,ellipseColor:[0,0,255,.5],ellipseOutline:!0,ellipseOutlineColor:[255,0,0,.5],ellipseOutlineWidth:1},this._setMoveLineStyle(void 0),this._setLineStyle(void 0),this._setMovePolygonStyle(void 0),this._setPolygonStyle(void 0),this._setMoveAltitudeLineStyle(void 0),this._setAltitudeLineStyle(void 0),this._setMoveEllipseStyle(void 0),this._setEllipseStyle(void 0),this._setSpatialLineStyle(void 0),e&&e.iconType)switch(e.iconType){case or.SketchIconType.Normal:this._sketchPointImage=this._iconNormal;break;case or.SketchIconType.Blue:this._sketchPointImage=this._iconBlue;break;case or.SketchIconType.Green:this._sketchPointImage=this._iconGreen;break;case or.SketchIconType.Violet:this._sketchPointImage=this._iconViolet;break;default:this._sketchPointImage=this._iconNormal}else this._sketchPointImage=this._iconNormal}_arcToDegree(e){return e/Math.PI*180}_toColor(e,t,i,r){let o=new Cesium.Color(0,0,0,1);return"number"!=typeof e||"number"!=typeof t||"number"!=typeof i||"number"!=typeof r||e<0||e>255||t<0||t>255||i<0||i>255||r<0||r>1?o:new Cesium.Color(e/255,t/255,i/255,r)}_toColorFromArray(e){if(!e||void 0===e.length||0===e.length)return new Cesium.Color(1,1,1,1);let t=255,i=255,r=255,o=1;return 1===e.length?t=parseInt(e[0]):2===e.length?(t=parseInt(e[0]),i=parseInt(e[1])):3===e.length?(t=parseInt(e[0]),i=parseInt(e[1]),r=parseInt(e[2])):e.length>=4&&(t=parseInt(e[0]),i=parseInt(e[1]),r=parseInt(e[2]),o=parseFloat(e[3])),new Cesium.Color(t/255,i/255,r/255,o)}_updateScene(){this._viewer.scene.requestRender()}_getScreenClickPosition(e){let t,i=this._viewer.scene.camera.getPickRay(e),r=this._viewer.scene.globe.pick(i,this._viewer.scene);return Cesium.Ellipsoid.WGS84.cartesianToCartographic(r),Cesium.defined(r)&&(t={x:r.x,y:r.y,z:r.z}),t}_getScreenClickPositionAndHeight(e){var t=void 0,i=void 0,r=void 0,o=this._viewer.scene.camera.getPickRay(e),n=this._viewer.scene.globe.pick(o,this._viewer.scene),a=Cesium.Ellipsoid.WGS84.cartesianToCartographic(n);if(null==this._viewer.scene.pick(e))t=this._arcToDegree(a.longitude),i=this._arcToDegree(a.latitude),r=a.height;else{var s=this._viewer.scene.pickPosition(e);if(Cesium.defined(s)){a=Cesium.Cartographic.fromCartesian(s);t=this._arcToDegree(a.longitude),i=this._arcToDegree(a.latitude),r=a.height}}return{lng:t,lat:i,height:r}}_transfromFromScreenPoint(e){let t=this._getScreenClickPositionAndHeight(e);return{gLocation:t,sLocation:Cesium.Cartesian3.fromDegrees(t.lng,t.lat,t.height)}}_removeEntityByName(e){var t=this._entities;if(t&&t.values){for(var i=[],r=0;r0&&(i._sketchPoints.pop(),i._sketchOutputPoints.pop(),t.onUndo&&t.onUndo())})),this._registerLeftDoubleClickEvent(e,(function(e){i._clearEvent(),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)}))},_sketchDrawPolyline(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempPolyline)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerRightClickEvent(e,(function(e){if(i._sketchTempPoints.length>2){if(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),i._isDrawPoint){let e=i._pointEntitys[i._pointEntitys.length-1];i._entities.remove(e),i._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(r){i._isRuntimeApp()||(i._sketchPoints.length<2?t.onError&&t.onError("点数少于两个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolyline),i._createPolyline(),i._isRetainDrawPoint||i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)))}))},_sketchDrawSpatialPolyline(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempSpatialPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempSpatialPolyline)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerLeftDoubleClickEvent(e,(function(r){i._isRuntimeApp()||(i._sketchPoints.length<2?t.onError&&t.onError("绘制点少于2个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempSpatialPolyline),i._createSpatialPolyline(),i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)))})),this._registerRightClickEvent(e,(function(e){i._sketchTempPoints.length>2&&(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo())}))},_sketchDrawPolygon(e,t){let i=this;this._registerLeftClickEvent(e,(function(e){let r=i._transfromFromScreenPoint(e.position);Cesium.defined(r.sLocation)&&(i._isDrawPoint&&i._createPoint(r.sLocation,i._lineLabel),0===i._sketchTempPoints.length&&(i._createTempPolygon(),i._createTempPolyline(),i._sketchTempPoints.push(r.sLocation.clone())),i._sketchTempPoints.push(r.sLocation),i._sketchPoints.push(r.sLocation.clone()),i._sketchOutputPoints.push(r.gLocation),t.onAdded&&t.onAdded(i._sketchPoints,i._sketchOutputPoints))})),this._registerMouseMoveEvent(e,(function(e){if(i._isRuntimeApp())return;let r=i._transfromFromScreenPoint(e.endPosition);Cesium.defined(r.sLocation)&&Cesium.defined(i._sketchTempPolygon)&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r.sLocation),t.onMoving&&t.onMoving(r.sLocation))})),this._registerRightClickEvent(e,(function(e){if(i._sketchTempPoints.length>2){if(i._sketchPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),i._isDrawPoint){let e=i._pointEntitys[i._pointEntitys.length-1];i._entities.remove(e),i._pointEntitys.pop()}t.onUndo&&t.onUndo()}})),this._registerLeftDoubleClickEvent(e,(function(r){i._isRuntimeApp()||(i._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolygon),i._removeEntityByObject(i._sketchTempPolyline),i._createPolygon(),i._isRetainDrawPoint||i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)))}))},_sketchDrawCircle:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){let o=i._transfromFromScreenPoint(r.position);if(Cesium.defined(o.sLocation))if(0===i._sketchTempPoints.length)i._isDrawPoint&&i._createPoint(o.sLocation,"起点"),i._sketchTempPoints.push(o.sLocation.clone()),i._sketchTempPoints.push(o.sLocation),i._sketchPoints.push(o.sLocation.clone()),i._sketchOutputPoints.push(o.gLocation),i._createTempCircle(o.sLocation),t.onAdded&&t.onAdded(o.sLocation);else{if(i._isRuntimeApp()){i._sketchTempPoints.pop(),i._sketchTempPoints.push(o.sLocation);let e=i._sketchEllipseCenterPosition,t=i._sketchTempPoints[1];i._ellipseOutlineCoordinates=[];for(let o=5;o<360;){let r=i._rotatedPointByAngle(t,e,o);i._ellipseOutlineCoordinates.push(r),o+=5}i._ellipseOutlineCoordinates.push(i._ellipseOutlineCoordinates[0]);let r=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[0]),n=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[1]),a=new Cesium.EllipsoidGeodesic;a.setEndPoints(r,n),i._sketchEllipseRadius=a.surfaceDistance,i._sketchEllipseRadius<=0&&(i._sketchEllipseRadius=1)}i._removePointEntitys(),i._removeEntityByObject(i._sketchTempCircle),i._createCircle(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchOutputPoints[0],i._sketchEllipseRadius)}})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&Cesium.defined(i._sketchTempCircle)){var t=i._viewer.scene.pickPosition(e.endPosition);null!=t&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(t))}}))},_sketchDrawHeightPolyline:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){let o=i._transfromFromScreenPoint(r.position);if(Cesium.defined(o.sLocation))if(0===i._sketchTempPoints.length)i._isDrawPoint&&i._createPoint(o.sLocation,"起点"),i._sketchAltitudeInitHeight=o.gLocation.height,i._sketchTempPoints.push(o.sLocation.clone()),i._sketchTempPoints.push(o.sLocation),i._sketchPoints.push(o.sLocation.clone()),t.onAdded&&t.onAdded(o.sLocation);else{if(i._isRuntimeApp()){i._sketchTempPoints.pop(),i._sketchTempPoints.push(o.sLocation);let e=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[0]),t=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[1]);i._sketchEllipseCenterPosition=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height),i._sketchAltitudePolylinePostions=[],i._sketchAltitudePolylinePostions.push(i._sketchTempPoints[0]);let r=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);i._sketchAltitudePolylinePostions.push(r);let n=new Cesium.EllipsoidGeodesic;n.setEndPoints(e,t),i._sketchEllipseRadius=n.surfaceDistance,i._sketchEllipseRadius<=0&&(i._sketchEllipseRadius=1);let a=t.height-e.height;i._sketchEllipseHeight=a+i._sketchAltitudeInitHeight}i._removePointEntitys(),i._removeEntityByObject(i._sketchTempAltituePolyline),i._createAltitudePolyline(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchAltitudePolylinePostions,i._sketchEllipseCenterPosition)}})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&null!=i._sketchTempPoints&&0!=i._sketchTempPoints.length){var r=i._viewer.scene.pickPosition(e.endPosition);null!=r&&i._sketchTempPoints.length>=2&&(Cesium.defined(i._sketchTempAltituePolyline)?(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r)):i._createTempAltitudePolyline(),t.onMoving&&t.onMoving(i._sketchAltitudePolylinePostions,i._sketchEllipseCenterPosition))}}))},_sketchDrawRectangle:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){let o=i._transfromFromScreenPoint(r.position);if(Cesium.defined(o.sLocation))if(0===i._sketchTempPoints.length)i._isDrawPoint&&i._createPoint(o.sLocation,"起点"),i._sketchTempPoints.push(o.gLocation),i._sketchTempPoints.push(o.gLocation),i._sketchPoints.push(o.gLocation),i._createTempRectangle(),t.onAdded&&t.onAdded(o.sLocation);else{if(i._isRuntimeApp()){i._sketchTempPoints.pop(),i._sketchTempPoints.push(o.gLocation);let e=parseFloat(i._sketchTempPoints[0].lng),t=parseFloat(i._sketchTempPoints[0].lat),r=parseFloat(i._sketchTempPoints[1].lng),n=parseFloat(i._sketchTempPoints[1].lat);i._rectangleCoordinates=[0,0,1,1],e2&&(i._sketchPoints.pop(),i._sketchOutputPoints.pop(),i._sketchTempPoints.splice(i._sketchTempPoints.length-2,1),t.onUndo&&t.onUndo(i._sketchPoints))})),this._registerLeftDoubleClickEvent(e,(function(r){i._isRuntimeApp()||(i._sketchPoints.length<3?t.onError&&t.onError("点数少于3个,禁止结束绘制!"):(i._removeEntityByObject(i._sketchTempPolygon),i._removeEntityByObject(i._sketchTempPolyline),i._createPolygonBody({height:30,color:[255,255,0,.9]}),i._removePointEntitys(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchPoints,i._sketchOutputPoints)))}))},_sketchDrawTriangleA:function(e,t){let i=this;this._registerLeftClickEvent(e,(function(r){if(Cesium.defined(i._sketchTempAltituePolyline))return;let o=i._transfromFromScreenPoint(r.position);if(Cesium.defined(o.sLocation))if(0==i._sketchPoints.length)i._isDrawPoint&&i._createPoint(o.sLocation,"起点"),i._sketchTempPoints.push(o.sLocation.clone()),i._sketchTempPoints.push(o.sLocation),i._sketchPoints.push(o.sLocation),i._createTempSpatialTriangle(),t.onAdded&&t.onAdded(o.sLocation);else if(i._sketchPoints.length>0){if(i._isRuntimeApp()){i._sketchTempPoints.pop(),i._sketchTempPoints.push(o.sLocation),i._sketchSpatialTrianglePositions=[],i._sketchSpatialTrianglePositions.push(i._sketchTempPoints[0].clone()),i._sketchSpatialTrianglePositions.push(i._sketchTempPoints[1].clone());let e=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[0]),t=Cesium.Cartographic.fromCartesian(i._sketchTempPoints[1]),r=Cesium.Cartesian3.fromDegrees(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude),t.height);i._sketchSpatialTrianglePositions.push(r),i._sketchSpatialTrianglePositions.push(i._sketchTempPoints[0].clone())}i._removePointEntitys(),i._removeEntityByObject(i._sketchTempSpatialTriangle),i._createSpatialTriangle(),i._clearEvent(e),t.onComplete&&t.onComplete(i._sketchSpatialTrianglePositions)}})),this._registerMouseMoveEvent(e,(function(e){if(!i._isRuntimeApp()&&void 0!==i._sketchPoints&&0!==i._sketchPoints.length){var r=i._viewer.scene.pickPosition(e.endPosition);null!=r&&(i._sketchTempPoints.pop(),i._sketchTempPoints.push(r),t.onMoving&&t.onMoving(r))}}))},sketchTools:function(e,t){let i=this;switch(this._clear(),i._sketchEventHandler=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas),e){case or.SketchType.Point:i._sketchDrawPoint(i._sketchEventHandler,t);break;case or.SketchType.Line:i._sketchDrawPolyline(i._sketchEventHandler,t);break;case or.SketchType.Polygon:i._sketchDrawPolygon(i._sketchEventHandler,t);break;case or.SketchType.Height:i._sketchDrawHeightPolyline(i._sketchEventHandler,t);break;case or.SketchType.Spatial:i._sketchDrawSpatialPolyline(i._sketchEventHandler,t);break;case or.SketchType.Circle:i._sketchDrawCircle(i._sketchEventHandler,t);break;case or.SketchType.Rectangle:i._sketchDrawRectangle(i._sketchEventHandler,t);break;case or.SketchType.Triangle:i._sketchDrawTriangleA(i._sketchEventHandler,t);break;case or.SketchType.PolygonBody:i._sketchDrawPolygonBody(i._sketchEventHandler,t);break;case or.SketchType.MultiplePoint:i._sketchDrawMultiplePoint(i._sketchEventHandler,t)}},sketchDrawFeacture:function(e,t,i){let r=this;if(void 0===e||void 0===e.length||e.length<2)i&&i.onError&&i.onError("输入的坐标集合异常!");else{this._sketchPoints=[];for(let t=0;t255)},_checkAlpha:function(e){if(null==e)return!1;if("number"!=typeof e)return!1;let t=parseFloat(e);return!(t<0||t>1)},_checkColorAndAlpha:function(e){let t;if(e&&void 0!==e.length&&0!==e.length)return 1===e.length&&this._checkColor(e[0])?t=[e[0],0,0,1]:2===e.length&&this._checkColor(e[0])&&this._checkColor(e[1])?t=[e[0],e[1],0,1]:3===e.length&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])?t=[e[0],e[1],e[2],1]:4===e.length&&this._checkColor(e[0])&&this._checkColor(e[1])&&this._checkColor(e[2])&&this._checkAlpha(e[3])&&(t=[e[0],e[1],e[2],e[3]]),t},sketchEditPickPolygonBody:function(e){let t=this._sketchPickPolygonBody;if(void 0===t)return void(e.onComplete&&e.onComplete("未拾取对象或拾取的对象不符合要求!"));let i=t._useGeometry.color,r=t._useGeometry.height;this._sketchPoints=t._useGeometry.cPoints,this._sketchOutputPoints=t._useGeometry.gPoints,e&&e.height&&"number"==typeof e.height&&(r=parseInt(e.height)),e&&e.color&&this._checkColorAndAlpha(e.color)&&(i=this._checkColorAndAlpha(e.color)),this._viewer.scene.primitives.remove(t),this._createPolygonBody({color:i,height:r}),e.onComplete&&e.onComplete(void 0)},sketchRemovePickPolygonBody:function(e){let t=this._sketchPickPolygonBody;void 0!==t?(this._viewer.scene.primitives.remove(t),e&&e(void 0)):e&&e("未拾取对象或拾取的对象不符合要求!")},sketchPick:function(e){let t=this,i=new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);i.setInputAction((function(r){let o=t._viewer.scene.pick(r.position);o&&o.primitive&&null!=o.primitive._useGeometry?(t._sketchPickPolygonBody=o.primitive,e&&e({color:o.primitive._useGeometry.color,height:o.primitive._useGeometry.height})):(t._sketchPickPolygonBody=void 0,e&&e(void 0)),i.destroy(),i=null}),Cesium.ScreenSpaceEventType.LEFT_CLICK)}}),or.SketchType=Object.freeze({Point:"point",MultiplePoint:"multiplePoint",Line:"line",Polygon:"polygon",Height:"height",Spatial:"spatial",Circle:"circle",Rectangle:"rectangle",Triangle:"triangle",PolygonBody:"polygonBody",DrawPoint:"drawPoint",DrawMultiplePoint:"drawMultiplePoint",DrawPolyline:"drawPolyline",DrawPolygon:"drawPolygon"}),or.SketchIconType=Object.freeze({Normal:"normal",Blue:"blue",Green:"green",Violet:"violter"}),or.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});class nr{constructor(e,t){this._viewer=e,(t=t||{}).isDrawPoint?this._isDrawPoint=t.isDrawPoint:this._isDrawPoint=!1,t.isRetainDrawPoint?this._isRetainDrawPoint=t.isRetainDrawPoint:this._isRetainDrawPoint=!1,t.isClear?this._isClear=t.isClear:this._isClear=!1,this._sketchViewModel=new or(e,{iconType:or.SketchIconType.Blue,isDrawPoint:this._isDrawPoint,isRetainDrawPoint:this._isRetainDrawPoint});let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i),this._init()}_init(){this._measureEntityName="MeasureEntity",this._entities=this._viewer.entities,this._measurePointImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcEAYAAAAinQPXAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAASAAAAEgARslrPgAAB2FJREFUWMO9mHtQlNcZxn/nW65GxHtEqTEajUxVoLYRSIyipHG4qG0lajtxVIRFubgqXuOI28ZE7FAvCLKLSNKxg/FSIzdvqNE62kaRitqpYMxovBGigo4I4n6nfwjsCrsLrtjnn53vnPe87/Oc9/2+854VdBhCd6ZP6dMHlAXO/lOngrzMLz/8EEQ0ASNGANNY2aOHxYIdfHr3LuBCwPnzQIKcf/AgiJ8pQV99BfmvR4+orHxZVsLxpZFT0qd07gyP7zqrej3IInF47lwQkTLV3d1xv3KXWPT4MYhLzMzIgHpn10+Sk+Gw74w+jx79HwSGnzUYhg4FED4FBcBq/jtokOOC2oSb0FZUgHpKVoeHQ9GtGM/y8lcgMLxf5juDBwNDlOWnTgGvUdWz5wsQ7c179fUWzz9y0tX1BdZPILeqCpTtil9QEOT9c876K1faWqS07XeMzJFuboCXkpaX1w5hqxl14QJIKYRWCzLV5OXtDQXbon3c3c2/TeMoYvncucAgPrl40Y7fA0zv1QtMydKwb58FL7toRwbDYo3/0utB3OD8qlX2hIkLqalwO0b9+fLlUHJOG9vQ0P4EjfyFIdPZGfqsURampIBIlxsWLLBtL/NltF4PhUIrVq92QGDIe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r52CCSDFU7a8Gdv+sN9eNyrsdpkbu5xAZALwE8NueW5Y8drm+uGm0R/21oOYCxyJgtGHuoK1O3l9jYFnxzqqunYcb8ZauIy/eMlghgT5+3dBXGwphOWxIvt/HIGKfJVrr5xh/+/E9tHZ31qRYBzIXlD64jY+D3kSGzlBchZz3TfSbUvPiu3z7W1X2mPVUigAVM4okmN55IVshZMSQEjtz364pV4Ui016sIghECFjCTEZGsEI5u3E5t++CTz9c+uWktCQU1WRGwJRiVwAKm06ZwtIRYL11SOyvXv/ThC5vfWW/iaOf2PEJsYAsMYFFM7nwLwQsIW5cTv/j9uq07PzmwxS3AR3urt8AWGBTL/H8IscX04zp4YflDG0iM73aRZnfffMeD+M2jnWJ4Ovx7FYI3K0IKB7Dj8xevqGxpbT80nE3r8RN16Asbamt45eFZCBWDw1AP3v7lP330j0OlZbTdvvzhP6Av3XroqeCQEiFUjJWWaw7WH7n/N5WP9w+EuxP74Du0oQ/6UhvuWyWEikHqPP3O+3u+eOIv/6iIT8v4XPG3F9eiDX1oX+5bKSQ+Lf91w+bddlq20+yfn3n1Y69p1qmk/H6XzLRJjgNIpR1IrfkXj7+Q4zkzPs2iT8rvhUfrP54RLHgbv82Ps+/XsCWnWc7TmKzx/yfAAHo1CtU9myPWAAAAAElFTkSuQmCC",this._measureTempPoints=[]}_updateScene(){this._viewer.scene.requestRender()}_removeEntityByName(e){let t=this._entities;if(!t||!t.values)return;let i=[];for(let r=0;r",t.innerHTML=i,t.addEventListener("transitionend",(function(){setTimeout((function(){document.body.removeChild(t)}),1e3)}),!1),setTimeout((function(){t.style.transform="translateY(50px)"}),100)}}function ar(e,t){const i=Object.create(null),r=e.split(",");for(let o=0;o!!i[e.toLowerCase()]:e=>!!i[e]}Object.assign(nr.prototype,{_tooltipInit:function(e){this._tooltipId="tooltipJt";let t=document.getElementById(this._tooltipId);if(null===t){t=document.createElement("div"),t.id=this._tooltipId,document.body.appendChild(t);let e="";e+="top: 30px;",e+="left: 30px;",e+="position: absolute;",e+="display: flex;",e+="align-items: center;",e+="width: 12x0px;",e+="height: auto;",e+="background-color: rgba(0, 0, 0, 0.65);",e+="border-radius: 5px;",e+="color: rgb(255, 255, 255);",e+="font-size: 12px;",e+="font-family: 'Alimama_ShuHeiTi_Bold';",e+="padding: 8px;",e+="border:solid 1px rgb(255,0,0);",t.setAttribute("style",e)}null!=e&&(t.innerHTML=e),document.onmousemove=function(e){t.style.left=e.clientX+10+"px",t.style.top=e.clientY-t.offsetHeight/2+"px"}},_tooltipRemove:function(){let e=document.getElementById(this._tooltipId);null!=e&&document.body.removeChild(e)},_tooltipSetText:function(e){let t=document.getElementById(this._tooltipId);null!=t&&(t.innerHTML=e)}}),Object.assign(nr.prototype,{clear:function(){this._clear(!0),this._initMousePointerStyle()}}),Object.assign(nr.prototype,{measureLength:function(e){let t=this;this._tempEntitys=[],this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量"),this._isRuntimeWeb()?this._sketchViewModel.sketchTools(or.SketchType.Line,{onAdded:function(e,i){if(1===e.length)t._createPoint(e[0],"起点");else{let i=t._measureDistance(e),r=[e[e.length-2],e[e.length-1]];i+=" +"+t._measureDistance(r),t._tempEntitys.push(t._createPoint(e[e.length-1],i))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(or.SketchType.Line,{onAdded:function(i,r){if(1===i.length){t._tooltipRemove(),t._createPoint(i[0],"起点"),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),document.getElementById("btnDrawBackout").onclick=()=>{if(t._sketchViewModel._sketchTempPoints.length>2){if(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-1,1),t._sketchViewModel._isDrawPoint){let e=t._sketchViewModel._pointEntitys[t._sketchViewModel._pointEntitys.length-1];t._sketchViewModel._entities.remove(e),t._sketchViewModel._pointEntitys.pop()}t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<2)return void(e&&e("点数少于两个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolyline),t._sketchViewModel._createPolyline(),t._sketchViewModel._isRetainDrawPoint||t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)})}else{let e=t._measureDistance(i),r=[i[i.length-2],i[i.length-1]];e+=" +"+t._measureDistance(r),t._tempEntitys.push(t._createPoint(i[i.length-1],e))}}})},measureSpatialLength:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量"),this._tempEntitys=[],this._isRuntimeWeb()?this._sketchViewModel.sketchTools(or.SketchType.Spatial,{onAdded:function(e,i){if(1===e.length)t._createPoint(e[0],"起点");else{let i=t._measureSpaceDistance(e);t._tempEntitys.push(t._createPoint(e[e.length-1],i))}},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(or.SketchType.Spatial,{onAdded:function(i,r){if(1===i.length){t._tooltipRemove(),t._createPoint(i[0],"起点"),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),document.getElementById("btnDrawBackout").onclick=()=>{t._sketchViewModel._sketchTempPoints.length>2&&(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-1,1),t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop())},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<2)return void(e&&e("点数少于两个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempSpatialPolyline),t._sketchViewModel._createSpatialPolyline(),t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)})}else{let e=t._measureSpaceDistance(i);t._tempEntitys.push(t._createPoint(i[i.length-1],e))}}})},measureArea:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始测量"):this._tooltipInit("点击开始测量");var i="";this._isRuntimeWeb()?this._sketchViewModel.sketchTools(or.SketchType.Polygon,{onAdded:function(e,r){if(t._measureTempPoints.push(t._cartesianToGeography(e[e.length-1])),1===e.length)i="起点",t._createPoint(e[0],new Cesium.CallbackProperty((function(){return i}),!1));else if(e.length>=3){let r=t._measureArea(t._measureTempPoints,e);i=r>1e5?(r/1e5).toFixed(2)+"km²":r.toFixed(2)+"m²"}},onUndo:function(){t._measureTempPoints.pop(),1===t._measureTempPoints.length&&(t._areaLabel="起点")},onMoving:function(e,i){t._tooltipSetText("右键单击回退
左键双击结束绘制")},onError:function(t){e&&e(t)},onComplete:function(e,i){t._initMousePointerStyle(),t._tooltipRemove()}}):this._sketchViewModel.sketchTools(or.SketchType.Polygon,{onAdded:function(r,o){if(t._measureTempPoints.push(t._cartesianToGeography(r[r.length-1])),1===r.length){t._tooltipRemove(),i="起点",t._createPoint(r[0],new Cesium.CallbackProperty((function(){return i}),!1)),null==document.getElementById("drawButtonDiv")&&(t._createOperationMainDom(),document.getElementById("btnDrawBackout").onclick=()=>{if(t._sketchViewModel._sketchTempPoints.length>2){if(t._sketchViewModel._sketchPoints.pop(),t._sketchViewModel._sketchTempPoints.splice(t._sketchViewModel._sketchTempPoints.length-1,1),t._sketchViewModel._isDrawPoint){let e=t._sketchViewModel._pointEntitys[t._sketchViewModel._pointEntitys.length-1];t._entities.remove(e),t._sketchViewModel._pointEntitys.pop()}t._measureTempPoints.pop(),1===t._measureTempPoints.length&&(t._areaLabel="起点")}},document.getElementById("btnDrawComplete").onclick=()=>{if(t._sketchViewModel._sketchPoints.length<3)return void(e&&e("点数少于3个,禁止结束绘制!"));t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolygon),t._sketchViewModel._removeEntityByObject(t._sketchViewModel._sketchTempPolyline),t._sketchViewModel._createPolygon(),t._sketchViewModel._isRetainDrawPoint||t._sketchViewModel._removePointEntitys(),t._sketchViewModel._clearEvent(t._sketchViewModel._sketchEventHandler),t._initMousePointerStyle(),t._tooltipRemove();let i=document.getElementById("drawButtonDiv");i&&document.body.removeChild(i)})}else if(r.length>=3){let e=t._measureArea(t._measureTempPoints,r);i=e>1e5?(e/1e5).toFixed(2)+"km²":e.toFixed(2)+"m²"}}})},measureHeight:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始绘制线"):this._tooltipInit("单击开始绘制线"),this._sketchViewModel.sketchTools(or.SketchType.Height,{onAdded:function(e){t._isRuntimeApp()?t._showTooltipMessage("再次点击结束测量"):t._tooltipSetText("再次单击结束测量")},onMoving:function(e,i){let r=t._calculatePolylineAltitudeHeight(e);t._altitudeLabelPosition=i,t._altitudeLabelText=r,void 0===t._altitudeDynamicLabel&&t._createAltitudeDynamicLabel()},onError:function(t){e&&e(t)},onComplete:function(e,i){let r=t._calculatePolylineAltitudeHeight(e);t._entities.remove(t._altitudeDynamicLabel),t._createLabel(i,r),t._initMousePointerStyle(),t._tooltipRemove()}})},measureTriangle:function(e){let t=this;this._clear(this._isClear),this._setMousePointerStyle(),this._isRuntimeApp()?this._showTooltipMessage("点击开始绘制线"):this._tooltipInit("单击开始绘制线"),this._sketchViewModel.sketchTools(or.SketchType.Triangle,{onAdded:function(e){t._isRuntimeApp()?t._showTooltipMessage("再次点击结束测量"):t._tooltipSetText("再次单击结束测量")},onMoving:function(e){t._tooltipSetText("再次单击结束测量")},onError:function(t){e&&e(t)},onComplete:function(e){t._initMousePointerStyle(),t._tooltipRemove();let i=[e[0],e[1]],r=t._measureSpaceDistance(i),o=[e[1],e[2]],n=t._measureSpaceDistance(o),a=[e[2],e[0]],s=t._calculatePolylineAltitudeHeight(a);t._createLabel(e[0],"斜距:"+r),t._createLabel(e[1],"平距:"+n),t._createLabel(e[2],"高度:"+s)}})}}),Object.assign(nr.prototype,{queryByPoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._isRuntimeApp()?this._showTooltipMessage("点击位置进行查询"):this._tooltipInit("单击位置进行查询"),this._sketchViewModel.sketchTools(or.SketchType.Point,{onComplete:function(i,r){t._initMousePointerStyle(),t._tooltipRemove(),t._createPoint(i);let o=r.lng+","+r.lat;e&&e(o)}})},queryByMultiplePoint:function(e){let t=this;this._setMousePointerStyle(),this._clear(this._isClear),this._tooltipInit("点击位置绘制
左键双击结束绘制"),this._tempEntitys=[],this._sketchViewModel.sketchTools(or.SketchType.MultiplePoint,{onAdded:function(e,i){let r=i.lng.toFixed(6)+","+i.lat.toFixed(6);t._tempEntitys.push(t._createPoint(e,r))},onUndo:function(){t._viewer.entities.remove(t._tempEntitys[t._tempEntitys.length-1]),t._tempEntitys.pop()},onComplete:function(i,r){t._initMousePointerStyle(),t._tooltipRemove();let o=[];for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,r){let o;i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e{if(i._sketchViewModel._sketchTempPoints.length>2&&(i._sketchViewModel._sketchPoints.pop(),i._sketchViewModel._sketchTempPoints.splice(i._sketchViewModel._sketchTempPoints.length-1,1),i._sketchViewModel._isDrawPoint)){let e=i._sketchViewModel._pointEntitys[i._sketchViewModel._pointEntitys.length-1];i._sketchViewModel._entities.remove(e),i._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(i._sketchViewModel._sketchPoints.length<2)return void(t&&t("点数少于两个,禁止结束绘制!"));let r;i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolyline),i._sketchViewModel._createPolyline(),i._sketchViewModel._isRetainDrawPoint||i._sketchViewModel._removePointEntitys(),i._sketchViewModel._clearEvent(i._sketchViewModel._sketchEventHandler),i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e左键双击结束绘制开始查询")},onError:function(e){t&&t(e)},onComplete:function(t,r){let o;i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e{if(i._sketchViewModel._sketchTempPoints.length>2&&(i._sketchViewModel._sketchPoints.pop(),i._sketchViewModel._sketchTempPoints.splice(i._sketchViewModel._sketchTempPoints.length-1,1),i._sketchViewModel._isDrawPoint)){let e=i._sketchViewModel._pointEntitys[i._sketchViewModel._pointEntitys.length-1];i._entities.remove(e),i._sketchViewModel._pointEntitys.pop()}},document.getElementById("btnDrawComplete").onclick=()=>{if(i._sketchViewModel._sketchPoints.length<3)return void(t&&t("点数少于3个,禁止结束绘制!"));let r;i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolygon),i._sketchViewModel._removeEntityByObject(i._sketchViewModel._sketchTempPolyline),i._sketchViewModel._createPolygon(),i._sketchViewModel._isRetainDrawPoint||i._sketchViewModel._removePointEntitys(),i._sketchViewModel._clearEvent(i._sketchViewModel._sketchEventHandler),i._initMousePointerStyle(),i._tooltipRemove();for(let e=0;e左键双击结束绘制")},onUndo:function(e){0===e.length?t._tooltipInit("点击开始绘制"):e.length<3?t._tooltipInit("右键单击回退"):t._tooltipInit("右键单击回退
左键双击结束绘制")},onComplete:function(i,r){t._initMousePointerStyle(),t._tooltipRemove(),e&&e()}})},drawPointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,or.SketchType.DrawPoint,t)},drawMultiplePointFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,or.SketchType.DrawMultiplePoint,t)},drawPolylineFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,or.SketchType.DrawPolyline,t)},drawPolygonFeacture:function(e,t){this._sketchViewModel.sketchDrawFeacture(e,or.SketchType.DrawPolygon,t)}}),Object.assign(nr.prototype,{tooltipInit:function(e){this._tooltipInit(e)},tooltipRemove:function(){this._tooltipRemove()},tooltipSetText:function(e){this._tooltipSetText(e)}}),Object.assign(nr.prototype,{pickPolygonBody:function(e){this._sketchViewModel.sketchPick((function(t){void 0===t?e&&e(void 0):e&&e({color:t.color,height:t.height})}))},setPolygonBody:function(e){this._sketchViewModel.sketchEditPickPolygonBody({color:e.color,height:e.height,onComplete:e.onComplete})},removePolygonBody:function(e){this._sketchViewModel.sketchRemovePickPolygonBody(e)}}),nr.RuntimeEnvironment=Object.freeze({App:"app",Web:"web"});const sr=()=>{},lr=Object.assign,cr=Object.prototype.hasOwnProperty,ur=(e,t)=>cr.call(e,t),dr=Array.isArray,pr=e=>"[object Map]"===gr(e),hr=e=>"symbol"==typeof e,fr=e=>null!==e&&"object"==typeof e,mr=Object.prototype.toString,gr=e=>mr.call(e),vr=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,_r=(e,t)=>!Object.is(e,t);let br;const yr=[];class wr{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&br&&(this.parent=br,this.index=(br.scopes||(br.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(yr.push(this),br=this)}off(){this.active&&(yr.pop(),br=yr[yr.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function xr(e){br&&br.cleanups.push(e)}const Cr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},kr=e=>(e.w&Sr)>0,Tr=e=>(e.n&Sr)>0,Er=new WeakMap;let Ar=0,Sr=1;const Pr=[];let Ir;const Mr=Symbol(""),Dr=Symbol("");class Lr{constructor(e,t=null,i){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||br)&&t.active&&t.effects.push(e)}(this,i)}run(){if(!this.active)return this.fn();if(!Pr.includes(this))try{return Pr.push(Ir=this),Nr.push(Rr),Rr=!0,Sr=1<<++Ar,Ar<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let i=0;for(let r=0;r0?Pr[e-1]:void 0}}stop(){this.active&&(Or(this),this.onStop&&this.onStop(),this.active=!1)}}function Or(e){const{deps:t}=e;if(t.length){for(let i=0;i{("length"===t||t>=r)&&s.push(e)}));else switch(void 0!==i&&s.push(a.get(i)),t){case"add":dr(e)?vr(i)&&s.push(a.get("length")):(s.push(a.get(Mr)),pr(e)&&s.push(a.get(Dr)));break;case"delete":dr(e)||(s.push(a.get(Mr)),pr(e)&&s.push(a.get(Dr)));break;case"set":pr(e)&&s.push(a.get(Mr))}if(1===s.length)s[0]&&Vr(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Vr(Cr(e))}}function Vr(e,t){for(const i of dr(e)?e:[...e])(i!==Ir||i.allowRecurse)&&(i.scheduler?i.scheduler():i.run())}const Wr=ar("__proto__,__v_isRef,__isVue"),Gr=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(hr)),Yr=Kr(),qr=Kr(!1,!0),Qr=Kr(!0),Zr=Xr();function Xr(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const i=Ro(this);for(let t=0,o=this.length;t{e[t]=function(...e){Br();const i=Ro(this)[t].apply(this,e);return jr(),i}})),e}function Kr(e=!1,t=!1){return function(i,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?t?Ao:Eo:t?To:ko).get(i))return i;const n=dr(i);if(!e&&n&&ur(Zr,r))return Reflect.get(Zr,r,o);const a=Reflect.get(i,r,o);if(hr(r)?Gr.has(r):Wr(r))return a;if(e||Ur(i,0,r),t)return a;if(zo(a)){return!n||!vr(r)?a.value:a}return fr(a)?e?Io(a):Po(a):a}}function Jr(e=!1){return function(t,i,r,o){let n=t[i];if(!e&&!Lo(r)&&(r=Ro(r),n=Ro(n),!dr(t)&&zo(n)&&!zo(r)))return n.value=r,!0;const a=dr(t)&&vr(i)?Number(i)!0,deleteProperty:(e,t)=>!0},to=lr({},$r,{get:qr,set:Jr(!0)}),io=e=>e,ro=e=>Reflect.getPrototypeOf(e);function oo(e,t,i=!1,r=!1){const o=Ro(e=e.__v_raw),n=Ro(t);t!==n&&!i&&Ur(o,0,t),!i&&Ur(o,0,n);const{has:a}=ro(o),s=r?io:i?jo:Bo;return a.call(o,t)?s(e.get(t)):a.call(o,n)?s(e.get(n)):void(e!==o&&e.get(t))}function no(e,t=!1){const i=this.__v_raw,r=Ro(i),o=Ro(e);return e!==o&&!t&&Ur(r,0,e),!t&&Ur(r,0,o),e===o?i.has(e):i.has(e)||i.has(o)}function ao(e,t=!1){return e=e.__v_raw,!t&&Ur(Ro(e),0,Mr),Reflect.get(e,"size",e)}function so(e){e=Ro(e);const t=Ro(this);return ro(t).has.call(t,e)||(t.add(e),Hr(t,"add",e,e)),this}function lo(e,t){t=Ro(t);const i=Ro(this),{has:r,get:o}=ro(i);let n=r.call(i,e);n||(e=Ro(e),n=r.call(i,e));const a=o.call(i,e);return i.set(e,t),n?_r(t,a)&&Hr(i,"set",e,t):Hr(i,"add",e,t),this}function co(e){const t=Ro(this),{has:i,get:r}=ro(t);let o=i.call(t,e);o||(e=Ro(e),o=i.call(t,e)),r&&r.call(t,e);const n=t.delete(e);return o&&Hr(t,"delete",e,void 0),n}function uo(){const e=Ro(this),t=0!==e.size,i=e.clear();return t&&Hr(e,"clear",void 0,void 0),i}function po(e,t){return function(i,r){const o=this,n=o.__v_raw,a=Ro(n),s=t?io:e?jo:Bo;return!e&&Ur(a,0,Mr),n.forEach(((e,t)=>i.call(r,s(e),s(t),o)))}}function ho(e,t,i){return function(...r){const o=this.__v_raw,n=Ro(o),a=pr(n),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=o[e](...r),u=i?io:t?jo:Bo;return!t&&Ur(n,0,l?Dr:Mr),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function fo(e){return function(...t){return"delete"!==e&&this}}function mo(){const e={get(e){return oo(this,e)},get size(){return ao(this)},has:no,add:so,set:lo,delete:co,clear:uo,forEach:po(!1,!1)},t={get(e){return oo(this,e,!1,!0)},get size(){return ao(this)},has:no,add:so,set:lo,delete:co,clear:uo,forEach:po(!1,!0)},i={get(e){return oo(this,e,!0)},get size(){return ao(this,!0)},has(e){return no.call(this,e,!0)},add:fo("add"),set:fo("set"),delete:fo("delete"),clear:fo("clear"),forEach:po(!0,!1)},r={get(e){return oo(this,e,!0,!0)},get size(){return ao(this,!0)},has(e){return no.call(this,e,!0)},add:fo("add"),set:fo("set"),delete:fo("delete"),clear:fo("clear"),forEach:po(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=ho(o,!1,!1),i[o]=ho(o,!0,!1),t[o]=ho(o,!1,!0),r[o]=ho(o,!0,!0)})),[e,i,t,r]}const[go,vo,_o,bo]=mo();function yo(e,t){const i=t?e?bo:_o:e?vo:go;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(ur(i,r)&&r in t?i:t,r,o)}const wo={get:yo(!1,!1)},xo={get:yo(!1,!0)},Co={get:yo(!0,!1)},ko=new WeakMap,To=new WeakMap,Eo=new WeakMap,Ao=new WeakMap;function So(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>gr(e).slice(8,-1))(e))}function Po(e){return e&&e.__v_isReadonly?e:Mo(e,!1,$r,wo,ko)}function Io(e){return Mo(e,!0,eo,Co,Eo)}function Mo(e,t,i,r,o){if(!fr(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const n=o.get(e);if(n)return n;const a=So(e);if(0===a)return e;const s=new Proxy(e,2===a?r:i);return o.set(e,s),s}function Do(e){return Lo(e)?Do(e.__v_raw):!(!e||!e.__v_isReactive)}function Lo(e){return!(!e||!e.__v_isReadonly)}function Oo(e){return Do(e)||Lo(e)}function Ro(e){const t=e&&e.__v_raw;return t?Ro(t):e}function No(e){return((e,t,i)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})})(e,"__v_skip",!0),e}const Bo=e=>fr(e)?Po(e):e,jo=e=>fr(e)?Io(e):e;function Uo(e){Fr()&&((e=Ro(e)).dep||(e.dep=Cr()),zr(e.dep))}function Fo(e,t){(e=Ro(e)).dep&&Vr(e.dep)}function zo(e){return Boolean(e&&!0===e.__v_isRef)}function Ho(e){return Wo(e,!1)}function Vo(e){return Wo(e,!0)}function Wo(e,t){return zo(e)?e:new Go(e,t)}class Go{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ro(e),this._value=t?e:Bo(e)}get value(){return Uo(this),this._value}set value(e){e=this._shallow?e:Ro(e),_r(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:Bo(e),Fo(this))}}function Yo(e){return zo(e)?e.value:e}const qo={get:(e,t,i)=>Yo(Reflect.get(e,t,i)),set:(e,t,i,r)=>{const o=e[t];return zo(o)&&!zo(i)?(o.value=i,!0):Reflect.set(e,t,i,r)}};function Qo(e){return Do(e)?e:new Proxy(e,qo)}function Zo(e){const t=dr(e)?new Array(e.length):{};for(const i in e)t[i]=Ko(e,i);return t}class Xo{constructor(e,t,i){this._object=e,this._key=t,this._defaultValue=i,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Ko(e,t,i){const r=e[t];return zo(r)?r:new Xo(e,t,i)}class Jo{constructor(e,t,i){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new Lr(e,(()=>{this._dirty||(this._dirty=!0,Fo(this))})),this.__v_isReadonly=i}get value(){const e=Ro(this);return Uo(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function $o(e,t){let i,r;const o="function"==typeof e;o?(i=e,r=sr):(i=e.get,r=e.set);return new Jo(i,r,o||!r)}function en(e,t){const i=Object.create(null),r=e.split(",");for(let o=0;o!!i[e.toLowerCase()]:e=>!!i[e]}function tn(e){if(yn(e)){const t={};for(let i=0;i{if(e){const i=e.split(on);i.length>1&&(t[i[0].trim()]=i[1].trim())}})),t}function an(e){let t="";if(kn(e))t=e;else if(yn(e))for(let i=0;inull==e?"":yn(e)||Tn(e)&&(e.toString===An||!Cn(e.toString))?JSON.stringify(e,ln,2):String(e),ln=(e,t)=>t&&t.__v_isRef?ln(e,t.value):wn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,i])=>(e[`${t} =>`]=i,e)),{})}:xn(t)?{[`Set(${t.size})`]:[...t.values()]}:!Tn(t)||yn(t)||Pn(t)?t:String(t),cn={},un=[],dn=()=>{},pn=()=>!1,hn=/^on[^a-z]/,fn=e=>hn.test(e),mn=e=>e.startsWith("onUpdate:"),gn=Object.assign,vn=(e,t)=>{const i=e.indexOf(t);i>-1&&e.splice(i,1)},_n=Object.prototype.hasOwnProperty,bn=(e,t)=>_n.call(e,t),yn=Array.isArray,wn=e=>"[object Map]"===Sn(e),xn=e=>"[object Set]"===Sn(e),Cn=e=>"function"==typeof e,kn=e=>"string"==typeof e,Tn=e=>null!==e&&"object"==typeof e,En=e=>Tn(e)&&Cn(e.then)&&Cn(e.catch),An=Object.prototype.toString,Sn=e=>An.call(e),Pn=e=>"[object Object]"===Sn(e),In=en(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mn=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},Dn=/-(\w)/g,Ln=Mn((e=>e.replace(Dn,((e,t)=>t?t.toUpperCase():"")))),On=/\B([A-Z])/g,Rn=Mn((e=>e.replace(On,"-$1").toLowerCase())),Nn=Mn((e=>e.charAt(0).toUpperCase()+e.slice(1))),Bn=Mn((e=>e?`on${Nn(e)}`:"")),jn=(e,t)=>!Object.is(e,t),Un=(e,t)=>{for(let i=0;i{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:i})},zn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Hn;function Vn(e,t,...i){const r=e.vnode.props||cn;let o=i;const n=t.startsWith("update:"),a=n&&t.slice(7);if(a&&a in r){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:n}=r[e]||cn;n?o=i.map((e=>e.trim())):t&&(o=i.map(zn))}let s,l=r[s=Bn(t)]||r[s=Bn(Ln(t))];!l&&n&&(l=r[s=Bn(Rn(t))]),l&&bl(l,e,6,o);const c=r[s+"Once"];if(c){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,bl(c,e,6,o)}}function Wn(e,t,i=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const n=e.emits;let a={},s=!1;if(!Cn(e)){const r=e=>{const i=Wn(e,t,!0);i&&(s=!0,gn(a,i))};!i&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return n||s?(yn(n)?n.forEach((e=>a[e]=null)):gn(a,n),r.set(e,a),a):(r.set(e,null),null)}function Gn(e,t){return!(!e||!fn(t))&&(t=t.slice(2).replace(/Once$/,""),bn(e,t[0].toLowerCase()+t.slice(1))||bn(e,Rn(t))||bn(e,t))}let Yn=null,qn=null;function Qn(e){const t=Yn;return Yn=e,qn=e&&e.type.__scopeId||null,t}function Zn(e,t=Yn,i){if(!t)return e;if(e._n)return e;const r=(...i)=>{r._d&&As(-1);const o=Qn(t),n=e(...i);return Qn(o),r._d&&As(1),n};return r._n=!0,r._c=!0,r._d=!0,r}function Xn(e){const{type:t,vnode:i,proxy:r,withProxy:o,props:n,propsOptions:[a],slots:s,attrs:l,emit:c,render:u,renderCache:d,data:p,setupState:h,ctx:f,inheritAttrs:m}=e;let g,v;const _=Qn(e);try{if(4&i.shapeFlag){const e=o||r;g=zs(u.call(e,e,d,n,h,p,f)),v=l}else{const e=t;0,g=zs(e.length>1?e(n,{attrs:l,slots:s,emit:c}):e(n,null)),v=t.props?l:Kn(l)}}catch(y){Cs.length=0,yl(y,e,1),g=Bs(ws)}let b=g;if(v&&!1!==m){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(a&&e.some(mn)&&(v=Jn(v,a)),b=js(b,v))}return i.dirs&&(b.dirs=b.dirs?b.dirs.concat(i.dirs):i.dirs),i.transition&&(b.transition=i.transition),g=b,Qn(_),g}const Kn=e=>{let t;for(const i in e)("class"===i||"style"===i||fn(i))&&((t||(t={}))[i]=e[i]);return t},Jn=(e,t)=>{const i={};for(const r in e)mn(r)&&r.slice(9)in t||(i[r]=e[r]);return i};function $n(e,t,i){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o1)return i&&Cn(t)?t.call(r.proxy):t}}const ia=[Function,Array],ra={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ia,onEnter:ia,onAfterEnter:ia,onEnterCancelled:ia,onBeforeLeave:ia,onLeave:ia,onAfterLeave:ia,onLeaveCancelled:ia,onBeforeAppear:ia,onAppear:ia,onAfterAppear:ia,onAppearCancelled:ia},setup(e,{slots:t}){const i=il(),r=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ya((()=>{e.isMounted=!0})),Ca((()=>{e.isUnmounting=!0})),e}();let o;return()=>{const n=t.default&&ca(t.default(),!0);if(!n||!n.length)return;const a=Ro(e),{mode:s}=a,l=n[0];if(r.isLeaving)return aa(l);const c=sa(l);if(!c)return aa(l);const u=na(c,a,r,i);la(c,u);const d=i.subTree,p=d&&sa(d);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===o?o=e:e!==o&&(o=e,h=!0)}if(p&&p.type!==ws&&(!Ds(c,p)||h)){const e=na(p,a,r,i);if(la(p,e),"out-in"===s)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,i.update()},aa(l);"in-out"===s&&c.type!==ws&&(e.delayLeave=(e,t,i)=>{oa(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=i})}return l}}};function oa(e,t){const{leavingVNodes:i}=e;let r=i.get(t.type);return r||(r=Object.create(null),i.set(t.type,r)),r}function na(e,t,i,r){const{appear:o,mode:n,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:m,onAppear:g,onAfterAppear:v,onAppearCancelled:_}=t,b=String(e.key),y=oa(i,e),w=(e,t)=>{e&&bl(e,r,9,t)},x={mode:n,persisted:a,beforeEnter(t){let r=s;if(!i.isMounted){if(!o)return;r=m||s}t._leaveCb&&t._leaveCb(!0);const n=y[b];n&&Ds(e,n)&&n.el._leaveCb&&n.el._leaveCb(),w(r,[t])},enter(e){let t=l,r=c,n=u;if(!i.isMounted){if(!o)return;t=g||l,r=v||c,n=_||u}let a=!1;const s=e._enterCb=t=>{a||(a=!0,w(t?n:r,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),i.isUnmounting)return r();w(d,[t]);let n=!1;const a=t._leaveCb=i=>{n||(n=!0,r(),w(i?f:h,[t]),t._leaveCb=void 0,y[o]===e&&delete y[o])};y[o]=e,p?(p(t,a),p.length<=1&&a()):a()},clone:e=>na(e,t,i,r)};return x}function aa(e){if(pa(e))return(e=js(e)).children=null,e}function sa(e){return pa(e)?e.children?e.children[0]:void 0:e}function la(e,t){6&e.shapeFlag&&e.component?la(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ca(e,t=!1){let i=[],r=0;for(let o=0;o1)for(let o=0;o!!e.type.__asyncLoader,pa=e=>e.type.__isKeepAlive;function ha(e,t){ma(e,"a",t)}function fa(e,t){ma(e,"da",t)}function ma(e,t,i=tl){const r=e.__wdc||(e.__wdc=()=>{let t=i;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(va(t,r,i),i){let e=i.parent;for(;e&&e.parent;)pa(e.parent.vnode)&&ga(r,t,i,e),e=e.parent}}function ga(e,t,i,r){const o=va(t,e,r,!0);ka((()=>{vn(r[t],o)}),i)}function va(e,t,i=tl,r=!1){if(i){const o=i[e]||(i[e]=[]),n=t.__weh||(t.__weh=(...r)=>{if(i.isUnmounted)return;Br(),rl(i);const o=bl(t,i,e,r);return ol(),jr(),o});return r?o.unshift(n):o.push(n),n}}const _a=e=>(t,i=tl)=>(!al||"sp"===e)&&va(e,t,i),ba=_a("bm"),ya=_a("m"),wa=_a("bu"),xa=_a("u"),Ca=_a("bum"),ka=_a("um"),Ta=_a("sp"),Ea=_a("rtg"),Aa=_a("rtc");function Sa(e,t=tl){va("ec",e,t)}let Pa=!0;function Ia(e){const t=La(e),i=e.proxy,r=e.ctx;Pa=!1,t.beforeCreate&&Ma(t.beforeCreate,e,"bc");const{data:o,computed:n,methods:a,watch:s,provide:l,inject:c,created:u,beforeMount:d,mounted:p,beforeUpdate:h,updated:f,activated:m,deactivated:g,beforeDestroy:v,beforeUnmount:_,destroyed:b,unmounted:y,render:w,renderTracked:x,renderTriggered:C,errorCaptured:k,serverPrefetch:T,expose:E,inheritAttrs:A,components:S,directives:P,filters:I}=t;if(c&&function(e,t,i=dn,r=!1){yn(e)&&(e=Ba(e));for(const o in e){const i=e[o];let n;n=Tn(i)?"default"in i?ta(i.from||o,i.default,!0):ta(i.from||o):ta(i),zo(n)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>n.value,set:e=>n.value=e}):t[o]=n}}(c,r,null,e.appContext.config.unwrapInjectedRef),a)for(const D in a){const e=a[D];Cn(e)&&(r[D]=e.bind(i))}if(o){const t=o.call(i,i);Tn(t)&&(e.data=Po(t))}if(Pa=!0,n)for(const D in n){const e=n[D],t=$o({get:Cn(e)?e.bind(i,i):Cn(e.get)?e.get.bind(i,i):dn,set:!Cn(e)&&Cn(e.set)?e.set.bind(i):dn});Object.defineProperty(r,D,{enumerable:!0,configurable:!0,get:()=>t.value,set:e=>t.value=e})}if(s)for(const D in s)Da(s[D],r,i,D);if(l){const e=Cn(l)?l.call(i):l;Reflect.ownKeys(e).forEach((t=>{ea(t,e[t])}))}function M(e,t){yn(t)?t.forEach((t=>e(t.bind(i)))):t&&e(t.bind(i))}if(u&&Ma(u,e,"c"),M(ba,d),M(ya,p),M(wa,h),M(xa,f),M(ha,m),M(fa,g),M(Sa,k),M(Aa,x),M(Ea,C),M(Ca,_),M(ka,y),M(Ta,T),yn(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>i[e],set:t=>i[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===dn&&(e.render=w),null!=A&&(e.inheritAttrs=A),S&&(e.components=S),P&&(e.directives=P)}function Ma(e,t,i){bl(yn(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,i)}function Da(e,t,i,r){const o=r.includes(".")?ql(i,r):()=>i[r];if(kn(e)){const i=t[e];Cn(i)&&Wl(o,i)}else if(Cn(e))Wl(o,e.bind(i));else if(Tn(e))if(yn(e))e.forEach((e=>Da(e,t,i,r)));else{const r=Cn(e.handler)?e.handler.bind(i):t[e.handler];Cn(r)&&Wl(o,r,e)}}function La(e){const t=e.type,{mixins:i,extends:r}=t,{mixins:o,optionsCache:n,config:{optionMergeStrategies:a}}=e.appContext,s=n.get(t);let l;return s?l=s:o.length||i||r?(l={},o.length&&o.forEach((e=>Oa(l,e,a,!0))),Oa(l,t,a)):l=t,n.set(t,l),l}function Oa(e,t,i,r=!1){const{mixins:o,extends:n}=t;n&&Oa(e,n,i,!0),o&&o.forEach((t=>Oa(e,t,i,!0)));for(const a in t)if(r&&"expose"===a);else{const r=Ra[a]||i&&i[a];e[a]=r?r(e[a],t[a]):t[a]}return e}const Ra={data:Na,props:Ua,emits:Ua,methods:Ua,computed:Ua,beforeCreate:ja,created:ja,beforeMount:ja,mounted:ja,beforeUpdate:ja,updated:ja,beforeDestroy:ja,beforeUnmount:ja,destroyed:ja,unmounted:ja,activated:ja,deactivated:ja,errorCaptured:ja,serverPrefetch:ja,components:Ua,directives:Ua,watch:function(e,t){if(!e)return t;if(!t)return e;const i=gn(Object.create(null),e);for(const r in t)i[r]=ja(e[r],t[r]);return i},provide:Na,inject:function(e,t){return Ua(Ba(e),Ba(t))}};function Na(e,t){return t?e?function(){return gn(Cn(e)?e.call(this,this):e,Cn(t)?t.call(this,this):t)}:t:e}function Ba(e){if(yn(e)){const t={};for(let i=0;i{l=!0;const[i,r]=Va(e,t,!0);gn(a,i),r&&s.push(...r)};!i&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!n&&!l)return r.set(e,un),un;if(yn(n))for(let u=0;u-1,i[1]=r<0||t-1||bn(i,"default"))&&s.push(e)}}}const c=[a,s];return r.set(e,c),c}function Wa(e){return"$"!==e[0]}function Ga(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Ya(e,t){return Ga(e)===Ga(t)}function qa(e,t){return yn(t)?t.findIndex((t=>Ya(t,e))):Cn(t)&&Ya(t,e)?0:-1}const Qa=e=>"_"===e[0]||"$stable"===e,Za=e=>yn(e)?e.map(zs):[zs(e)],Xa=(e,t,i)=>{const r=Zn(((...e)=>Za(t(...e))),i);return r._c=!1,r},Ka=(e,t,i)=>{const r=e._ctx;for(const o in e){if(Qa(o))continue;const i=e[o];if(Cn(i))t[o]=Xa(0,i,r);else if(null!=i){const e=Za(i);t[o]=()=>e}}},Ja=(e,t)=>{const i=Za(t);e.slots.default=()=>i};function $a(e,t){if(null===Yn)return e;const i=Yn.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o(n.has(e)||(e&&Cn(e.install)?(n.add(e),e.install(s,...t)):Cn(e)&&(n.add(e),e(s,...t))),s),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),s),component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(n,l,c){if(!a){const u=Bs(i,r);return u.appContext=o,l&&t?t(u,n):e(u,n,c),a=!0,s._container=n,n.__vue_app__=s,ul(u.component)||u.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}function os(e,t,i,r,o=!1){if(yn(e))return void e.forEach(((e,n)=>os(e,t&&(yn(t)?t[n]:t),i,r,o)));if(da(r)&&!o)return;const n=4&r.shapeFlag?ul(r.component)||r.component.proxy:r.el,a=o?null:n,{i:s,r:l}=e,c=t&&t.r,u=s.refs===cn?s.refs={}:s.refs,d=s.setupState;if(null!=c&&c!==l&&(kn(c)?(u[c]=null,bn(d,c)&&(d[c]=null)):zo(c)&&(c.value=null)),Cn(l))_l(l,s,12,[a,u]);else{const t=kn(l),r=zo(l);if(t||r){const r=()=>{if(e.f){const i=t?u[l]:l.value;o?yn(i)&&vn(i,n):yn(i)?i.includes(n)||i.push(n):t?u[l]=[n]:(l.value=[n],e.k&&(u[e.k]=l.value))}else t?(u[l]=a,bn(d,l)&&(d[l]=a)):zo(l)&&(l.value=a,e.k&&(u[e.k]=a))};a?(r.id=-1,ns(r,i)):r()}}}const ns=function(e,t){t&&t.pendingBranch?yn(e)?t.effects.push(...e):t.effects.push(e):Bl(e,Pl,Sl,Il)};function as(e){return function(e,t){(Hn||(Hn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:i,remove:r,patchProp:o,createElement:n,createText:a,createComment:s,setText:l,setElementText:c,parentNode:u,nextSibling:d,setScopeId:p=dn,cloneNode:h,insertStaticContent:f}=e,m=(e,t,i,r=null,o=null,n=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Ds(e,t)&&(r=V(e),j(e,o,n,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case ys:g(e,t,i,r);break;case ws:v(e,t,i,r);break;case xs:null==e&&_(t,i,r,a);break;case bs:S(e,t,i,r,o,n,a,s,l);break;default:1&d?w(e,t,i,r,o,n,a,s,l):6&d?P(e,t,i,r,o,n,a,s,l):(64&d||128&d)&&c.process(e,t,i,r,o,n,a,s,l,G)}null!=u&&o&&os(u,e&&e.ref,n,t||e,!t)},g=(e,t,r,o)=>{if(null==e)i(t.el=a(t.children),r,o);else{const i=t.el=e.el;t.children!==e.children&&l(i,t.children)}},v=(e,t,r,o)=>{null==e?i(t.el=s(t.children||""),r,o):t.el=e.el},_=(e,t,i,r)=>{[e.el,e.anchor]=f(e.children,t,i,r)},b=({el:e,anchor:t},r,o)=>{let n;for(;e&&e!==t;)n=d(e),i(e,r,o),e=n;i(t,r,o)},y=({el:e,anchor:t})=>{let i;for(;e&&e!==t;)i=d(e),r(e),e=i;r(t)},w=(e,t,i,r,o,n,a,s,l)=>{a=a||"svg"===t.type,null==e?x(t,i,r,o,n,a,s,l):T(e,t,o,n,a,s,l)},x=(e,t,r,a,s,l,u,d)=>{let p,f;const{type:m,props:g,shapeFlag:v,transition:_,patchFlag:b,dirs:y}=e;if(e.el&&void 0!==h&&-1===b)p=e.el=h(e.el);else{if(p=e.el=n(e.type,l,g&&g.is,g),8&v?c(p,e.children):16&v&&k(e.children,p,null,a,s,l&&"foreignObject"!==m,u,d),y&&es(e,null,a,"created"),g){for(const t in g)"value"===t||In(t)||o(p,t,null,g[t],l,e.children,a,s,H);"value"in g&&o(p,"value",null,g.value),(f=g.onVnodeBeforeMount)&&Gs(f,a,e)}C(p,e,e.scopeId,u,a)}y&&es(e,null,a,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&_&&!_.persisted;w&&_.beforeEnter(p),i(p,t,r),((f=g&&g.onVnodeMounted)||w||y)&&ns((()=>{f&&Gs(f,a,e),w&&_.enter(p),y&&es(e,null,a,"mounted")}),s)},C=(e,t,i,r,o)=>{if(i&&p(e,i),r)for(let n=0;n{for(let c=l;c{const l=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||cn,f=t.props||cn;let m;i&&ss(i,!1),(m=f.onVnodeBeforeUpdate)&&Gs(m,i,t,e),p&&es(t,e,i,"beforeUpdate"),i&&ss(i,!0);const g=n&&"foreignObject"!==t.type;if(d?E(e.dynamicChildren,d,l,i,r,g,a):s||O(e,t,l,null,i,r,g,a,!1),u>0){if(16&u)A(l,t,h,f,i,r,n);else if(2&u&&h.class!==f.class&&o(l,"class",null,f.class,n),4&u&&o(l,"style",h.style,f.style,n),8&u){const a=t.dynamicProps;for(let t=0;t{m&&Gs(m,i,t,e),p&&es(t,e,i,"updated")}),r)},E=(e,t,i,r,o,n,a)=>{for(let s=0;s{if(i!==r){for(const l in r){if(In(l))continue;const c=r[l],u=i[l];c!==u&&"value"!==l&&o(e,l,u,c,s,t.children,n,a,H)}if(i!==cn)for(const l in i)In(l)||l in r||o(e,l,i[l],null,s,t.children,n,a,H);"value"in r&&o(e,"value",i.value,r.value)}},S=(e,t,r,o,n,s,l,c,u)=>{const d=t.el=e?e.el:a(""),p=t.anchor=e?e.anchor:a("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(c=c?c.concat(m):m),null==e?(i(d,r,o),i(p,r,o),k(t.children,r,p,n,s,l,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(E(e.dynamicChildren,f,r,n,s,l,c),(null!=t.key||n&&t===n.subTree)&&ls(e,t,!0)):O(e,t,r,p,n,s,l,c,u)},P=(e,t,i,r,o,n,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,i,r,a,l):I(t,i,r,o,n,a,l):M(e,t,l)},I=(e,t,i,r,o,n,a)=>{const s=e.component=function(e,t,i){const r=e.type,o=(t?t.appContext:e.appContext)||$s,n={uid:el++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new wr(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Va(r,o),emitsOptions:Wn(r,o),emit:null,emitted:null,propsDefaults:cn,inheritAttrs:r.inheritAttrs,ctx:cn,data:cn,props:cn,attrs:cn,slots:cn,refs:cn,setupState:cn,setupContext:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};n.ctx={_:n},n.root=t?t.root:n,n.emit=Vn.bind(null,n),e.ce&&e.ce(n);return n}(e,r,o);if(pa(e)&&(s.ctx.renderer=G),function(e,t=!1){al=t;const{props:i,children:r}=e.vnode,o=nl(e);Fa(e,i,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const i=t._;i?(e.slots=Ro(t),Fn(t,"_",i)):Ka(t,e.slots={})}else e.slots={},t&&Ja(e,t);Fn(e.slots,Ls,1)})(e,r);const n=o?function(e,t){const i=e.type;e.accessCache=Object.create(null),e.proxy=No(new Proxy(e.ctx,Js));const{setup:r}=i;if(r){const i=e.setupContext=r.length>1?cl(e):null;rl(e),Br();const o=_l(r,e,0,[e.props,i]);if(jr(),ol(),En(o)){if(o.then(ol,ol),t)return o.then((i=>{sl(e,i,t)})).catch((t=>{yl(t,e,0)}));e.asyncDep=o}else sl(e,o,t)}else ll(e,t)}(e,t):void 0;al=!1}(s),s.asyncDep){if(o&&o.registerDep(s,D),!e.el){const e=s.subTree=Bs(ws);v(null,e,t,i)}}else D(s,e,t,i,o,n,a)},M=(e,t,i)=>{const r=t.component=e.component;if(function(e,t,i){const{props:r,children:o,component:n}=e,{props:a,children:s,patchFlag:l}=t,c=n.emitsOptions;if(t.dirs||t.transition)return!0;if(!(i&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==a&&(r?!a||$n(r,a,c):!!a);if(1024&l)return!0;if(16&l)return r?$n(r,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;tkl&&Cl.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},D=(e,t,i,r,o,n,a)=>{const s=()=>{if(e.isMounted){let t,{next:i,bu:r,u:s,parent:l,vnode:c}=e,d=i;ss(e,!1),i?(i.el=c.el,L(e,i,a)):i=c,r&&Un(r),(t=i.props&&i.props.onVnodeBeforeUpdate)&&Gs(t,l,i,c),ss(e,!0);const p=Xn(e),h=e.subTree;e.subTree=p,m(h,p,u(h.el),V(h),e,o,n),i.el=p.el,null===d&&function({vnode:e,parent:t},i){for(;t&&t.subTree===e;)(e=t.vnode).el=i,t=t.parent}(e,p.el),s&&ns(s,o),(t=i.props&&i.props.onVnodeUpdated)&&ns((()=>Gs(t,l,i,c)),o)}else{let a;const{el:s,props:l}=t,{bm:c,m:u,parent:d}=e,p=da(t);if(ss(e,!1),c&&Un(c),!p&&(a=l&&l.onVnodeBeforeMount)&&Gs(a,d,t),ss(e,!0),s&&q){const i=()=>{e.subTree=Xn(e),q(s,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&i())):i()}else{const a=e.subTree=Xn(e);m(null,a,i,r,e,o,n),t.el=a.el}if(u&&ns(u,o),!p&&(a=l&&l.onVnodeMounted)){const e=t;ns((()=>Gs(a,d,e)),o)}256&t.shapeFlag&&e.a&&ns(e.a,o),e.isMounted=!0,t=i=r=null}},l=e.effect=new Lr(s,(()=>Rl(e.update)),e.scope),c=e.update=l.run.bind(l);c.id=e.uid,ss(e,!0),c()},L=(e,t,i)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,i,r){const{props:o,attrs:n,vnode:{patchFlag:a}}=e,s=Ro(o),[l]=e.propsOptions;let c=!1;if(!(r||a>0)||16&a){let r;za(e,t,o,n)&&(c=!0);for(const n in s)t&&(bn(t,n)||(r=Rn(n))!==n&&bn(t,r))||(l?!i||void 0===i[n]&&void 0===i[r]||(o[n]=Ha(l,s,n,void 0,e,!0)):delete o[n]);if(n!==s)for(const e in n)t&&bn(t,e)||(delete n[e],c=!0)}else if(8&a){const i=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:o}=e;let n=!0,a=cn;if(32&r.shapeFlag){const e=t._;e?i&&1===e?n=!1:(gn(o,t),i||1!==e||delete o._):(n=!t.$stable,Ka(t,o)),a=t}else t&&(Ja(e,t),a={default:1});if(n)for(const s in o)Qa(s)||s in a||delete o[s]})(e,t.children,i),Br(),jl(void 0,e.update),jr()},O=(e,t,i,r,o,n,a,s,l=!1)=>{const u=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void N(u,p,i,r,o,n,a,s,l);if(256&h)return void R(u,p,i,r,o,n,a,s,l)}8&f?(16&d&&H(u,o,n),p!==u&&c(i,p)):16&d?16&f?N(u,p,i,r,o,n,a,s,l):H(u,o,n,!0):(8&d&&c(i,""),16&f&&k(p,i,r,o,n,a,s,l))},R=(e,t,i,r,o,n,a,s,l)=>{t=t||un;const c=(e=e||un).length,u=t.length,d=Math.min(c,u);let p;for(p=0;pu?H(e,o,n,!0,!1,d):k(t,i,r,o,n,a,s,l,d)},N=(e,t,i,r,o,n,a,s,l)=>{let c=0;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){const r=e[c],u=t[c]=l?Hs(t[c]):zs(t[c]);if(!Ds(r,u))break;m(r,u,i,null,o,n,a,s,l),c++}for(;c<=d&&c<=p;){const r=e[d],c=t[p]=l?Hs(t[p]):zs(t[p]);if(!Ds(r,c))break;m(r,c,i,null,o,n,a,s,l),d--,p--}if(c>d){if(c<=p){const e=p+1,d=ep)for(;c<=d;)j(e[c],o,n,!0),c++;else{const h=c,f=c,g=new Map;for(c=f;c<=p;c++){const e=t[c]=l?Hs(t[c]):zs(t[c]);null!=e.key&&g.set(e.key,c)}let v,_=0;const b=p-f+1;let y=!1,w=0;const x=new Array(b);for(c=0;c=b){j(r,o,n,!0);continue}let u;if(null!=r.key)u=g.get(r.key);else for(v=f;v<=p;v++)if(0===x[v-f]&&Ds(r,t[v])){u=v;break}void 0===u?j(r,o,n,!0):(x[u-f]=c+1,u>=w?w=u:y=!0,m(r,t[u],i,null,o,n,a,s,l),_++)}const C=y?function(e){const t=e.slice(),i=[0];let r,o,n,a,s;const l=e.length;for(r=0;r>1,e[i[s]]0&&(t[r]=i[n-1]),i[n]=r)}}n=i.length,a=i[n-1];for(;n-- >0;)i[n]=a,a=t[a];return i}(x):un;for(v=C.length-1,c=b-1;c>=0;c--){const e=f+c,d=t[e],p=e+1{const{el:a,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void B(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void s.move(e,t,r,G);if(s===bs){i(a,t,r);for(let e=0;el.enter(a)),n);else{const{leave:e,delayLeave:o,afterLeave:n}=l,s=()=>i(a,t,r),c=()=>{e(a,(()=>{s(),n&&n()}))};o?o(a,s,c):c()}else i(a,t,r)},j=(e,t,i,r=!1,o=!1)=>{const{type:n,props:a,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&os(s,null,i,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!da(e);let m;if(f&&(m=a&&a.onVnodeBeforeUnmount)&&Gs(m,t,e),6&u)z(e.component,i,r);else{if(128&u)return void e.suspense.unmount(i,r);h&&es(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,i,o,G,r):c&&(n!==bs||d>0&&64&d)?H(c,t,i,!1,!0):(n===bs&&384&d||!o&&16&u)&&H(l,t,i),r&&U(e)}(f&&(m=a&&a.onVnodeUnmounted)||h)&&ns((()=>{m&&Gs(m,t,e),h&&es(e,null,t,"unmounted")}),i)},U=e=>{const{type:t,el:i,anchor:o,transition:n}=e;if(t===bs)return void F(i,o);if(t===xs)return void y(e);const a=()=>{r(i),n&&!n.persisted&&n.afterLeave&&n.afterLeave()};if(1&e.shapeFlag&&n&&!n.persisted){const{leave:t,delayLeave:r}=n,o=()=>t(i,a);r?r(e.el,a,o):o()}else a()},F=(e,t)=>{let i;for(;e!==t;)i=d(e),r(e),e=i;r(t)},z=(e,t,i)=>{const{bum:r,scope:o,update:n,subTree:a,um:s}=e;r&&Un(r),o.stop(),n&&(n.active=!1,j(a,e,t,i)),s&&ns(s,t),ns((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},H=(e,t,i,r=!1,o=!1,n=0)=>{for(let a=n;a6&e.shapeFlag?V(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),W=(e,t,i)=>{null==e?t._vnode&&j(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,i),Ul(),t._vnode=e},G={p:m,um:j,m:B,r:U,mt:I,mc:k,pc:O,pbc:E,n:V,o:e};let Y,q;t&&([Y,q]=t(G));return{render:W,hydrate:Y,createApp:rs(W,Y)}}(e)}function ss({effect:e,update:t},i){e.allowRecurse=t.allowRecurse=i}function ls(e,t,i=!1){const r=e.children,o=t.children;if(yn(r)&&yn(o))for(let n=0;ne&&(e.disabled||""===e.disabled),us=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,ds=(e,t)=>{const i=e&&e.to;if(kn(i)){if(t){return t(i)}return null}return i};function ps(e,t,i,{o:{insert:r},m:o},n=2){0===n&&r(e.targetAnchor,t,i);const{el:a,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===n;if(d&&r(a,t,i),(!d||cs(u))&&16&l)for(let p=0;p{16&_&&u(b,e,t,o,n,a,s,l)};v?g(i,c):d&&g(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=cs(e.props),g=m?i:u,_=m?r:h;if(a=a||us(u),y?(p(e.dynamicChildren,y,g,o,n,a,s),ls(e,t,!0)):l||d(e,t,g,_,o,n,a,s,!1),v)m||ps(t,i,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=ds(t.props,f);e&&ps(t,e,null,c,0)}else m&&ps(t,u,h,c,1)}},remove(e,t,i,r,{um:o,o:{remove:n}},a){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&n(u),(a||!cs(p))&&(n(c),16&s))for(let h=0;h0?ks||un:null,Cs.pop(),ks=Cs[Cs.length-1]||null,Es>0&&ks&&ks.push(e),e}function Ps(e,t,i,r,o,n){return Ss(Ns(e,t,i,r,o,n,!0))}function Is(e,t,i,r,o){return Ss(Bs(e,t,i,r,o,!0))}function Ms(e){return!!e&&!0===e.__v_isVNode}function Ds(e,t){return e.type===t.type&&e.key===t.key}const Ls="__vInternal",Os=({key:e})=>null!=e?e:null,Rs=({ref:e,ref_key:t,ref_for:i})=>null!=e?kn(e)||zo(e)||Cn(e)?{i:Yn,r:e,k:t,f:!!i}:e:null;function Ns(e,t=null,i=null,r=0,o=null,n=(e===bs?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&Rs(t),scopeId:qn,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:n,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return s?(Vs(l,i),128&n&&e.normalize(l)):i&&(l.shapeFlag|=kn(i)?8:16),Es>0&&!a&&ks&&(l.patchFlag>0||6&n)&&32!==l.patchFlag&&ks.push(l),l}const Bs=function(e,t=null,i=null,r=0,o=null,n=!1){e&&e!==ms||(e=ws);if(Ms(e)){const r=js(e,t,!0);return i&&Vs(r,i),r}a=e,Cn(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=function(e){return e?Oo(e)||Ls in e?gn({},e):e:null}(t);let{class:e,style:i}=t;e&&!kn(e)&&(t.class=an(e)),Tn(i)&&(Oo(i)&&!yn(i)&&(i=gn({},i)),t.style=tn(i))}const s=kn(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:Tn(e)?4:Cn(e)?2:0;return Ns(e,t,i,r,o,s,n,!0)};function js(e,t,i=!1){const{props:r,ref:o,patchFlag:n,children:a}=e,s=t?Ws(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Os(s),ref:t&&t.ref?i&&o?yn(o)?o.concat(Rs(t)):[o,Rs(t)]:Rs(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==bs?-1===n?16:16|n:n,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&js(e.ssContent),ssFallback:e.ssFallback&&js(e.ssFallback),el:e.el,anchor:e.anchor}}function Us(e=" ",t=0){return Bs(ys,null,e,t)}function Fs(e="",t=!1){return t?(Ts(),Is(ws,null,e)):Bs(ws,null,e)}function zs(e){return null==e||"boolean"==typeof e?Bs(ws):yn(e)?Bs(bs,null,e.slice()):"object"==typeof e?Hs(e):Bs(ys,null,String(e))}function Hs(e){return null===e.el||e.memo?e:js(e)}function Vs(e,t){let i=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(yn(t))i=16;else if("object"==typeof t){if(65&r){const i=t.default;return void(i&&(i._c&&(i._d=!1),Vs(e,i()),i._c&&(i._d=!0)))}{i=32;const r=t._;r||Ls in t?3===r&&Yn&&(1===Yn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Yn}}else Cn(t)?(t={default:t,_ctx:Yn},i=32):(t=String(t),64&r?(i=16,t=[Us(t)]):i=8);e.children=t,e.shapeFlag|=i}function Ws(...e){const t={};for(let i=0;it(e,i,void 0,n&&n[i])));else{const i=Object.keys(e);o=new Array(i.length);for(let r=0,a=i.length;r!Ms(e)||e.type!==ws&&!(e.type===bs&&!Zs(e.children))))?e:null}const Xs=e=>e?nl(e)?ul(e)||e.proxy:Xs(e.parent):null,Ks=gn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Xs(e.parent),$root:e=>Xs(e.root),$emit:e=>e.emit,$options:e=>La(e),$forceUpdate:e=>()=>Rl(e.update),$nextTick:e=>Ol.bind(e.proxy),$watch:e=>Yl.bind(e)}),Js={get({_:e},t){const{ctx:i,setupState:r,data:o,props:n,accessCache:a,type:s,appContext:l}=e;let c;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return r[t];case 2:return o[t];case 4:return i[t];case 3:return n[t]}else{if(r!==cn&&bn(r,t))return a[t]=1,r[t];if(o!==cn&&bn(o,t))return a[t]=2,o[t];if((c=e.propsOptions[0])&&bn(c,t))return a[t]=3,n[t];if(i!==cn&&bn(i,t))return a[t]=4,i[t];Pa&&(a[t]=0)}}const u=Ks[t];let d,p;return u?("$attrs"===t&&Ur(e,0,t),u(e)):(d=s.__cssModules)&&(d=d[t])?d:i!==cn&&bn(i,t)?(a[t]=4,i[t]):(p=l.config.globalProperties,bn(p,t)?p[t]:void 0)},set({_:e},t,i){const{data:r,setupState:o,ctx:n}=e;if(o!==cn&&bn(o,t))o[t]=i;else if(r!==cn&&bn(r,t))r[t]=i;else if(bn(e.props,t))return!1;return("$"!==t[0]||!(t.slice(1)in e))&&(n[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:r,appContext:o,propsOptions:n}},a){let s;return!!i[a]||e!==cn&&bn(e,a)||t!==cn&&bn(t,a)||(s=n[0])&&bn(s,a)||bn(r,a)||bn(Ks,a)||bn(o.config.globalProperties,a)}},$s=ts();let el=0;let tl=null;const il=()=>tl||Yn,rl=e=>{tl=e,e.scope.on()},ol=()=>{tl&&tl.scope.off(),tl=null};function nl(e){return 4&e.vnode.shapeFlag}let al=!1;function sl(e,t,i){Cn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Tn(t)&&(e.setupState=Qo(t)),ll(e,i)}function ll(e,t,i){const r=e.type;e.render||(e.render=r.render||dn),rl(e),Br(),Ia(e),jr(),ol()}function cl(e){const t=t=>{e.exposed=t||{}};let i;return{get attrs(){return i||(i=function(e){return new Proxy(e.attrs,{get:(t,i)=>(Ur(e,0,"$attrs"),t[i])})}(e))},slots:e.slots,emit:e.emit,expose:t}}function ul(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qo(No(e.exposed)),{get:(t,i)=>i in t?t[i]:i in Ks?Ks[i](e):void 0}))}const dl=/(?:^|[-_])(\w)/g;function pl(e){return Cn(e)&&e.displayName||e.name}function hl(e,t,i=!1){let r=pl(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const i=e=>{for(const i in e)if(e[i]===t)return i};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?r.replace(dl,(e=>e.toUpperCase())).replace(/[-_]/g,""):i?"App":"Anonymous"}const fl=[];function ml(e,...t){Br();const i=fl.length?fl[fl.length-1].component:null,r=i&&i.appContext.config.warnHandler,o=function(){let e=fl[fl.length-1];if(!e)return[];const t=[];for(;e;){const i=t[0];i&&i.vnode===e?i.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(r)_l(r,i,11,[e+t.join(""),i&&i.proxy,o.map((({vnode:e})=>`at <${hl(i,e.type)}>`)).join("\n"),o]);else{const i=[`[Vue warn]: ${e}`,...t];o.length&&i.push("\n",...function(e){const t=[];return e.forEach(((e,i)=>{t.push(...0===i?[]:["\n"],...function({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${hl(e.component,e.type,r)}`,n=">"+i;return e.props?[o,...gl(e.props),n]:[o+n]}(e))})),t}(o)),console.warn(...i)}jr()}function gl(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach((i=>{t.push(...vl(i,e[i]))})),i.length>3&&t.push(" ..."),t}function vl(e,t,i){return kn(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?i?t:[`${e}=${t}`]:zo(t)?(t=vl(e,Ro(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):Cn(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ro(t),i?t:[`${e}=`,t])}function _l(e,t,i,r){let o;try{o=r?e(...r):e()}catch(n){yl(n,t,i)}return o}function bl(e,t,i,r){if(Cn(e)){const o=_l(e,t,i,r);return o&&En(o)&&o.catch((e=>{yl(e,t,i)})),o}const o=[];for(let n=0;n>>1;Fl(Cl[r])Fl(e)-Fl(t))),Il=0;Ilnull==e.id?1/0:e.id;function zl(e){xl=!1,wl=!0,jl(e),Cl.sort(((e,t)=>Fl(e)-Fl(t)));try{for(kl=0;kle.value,u=!!e._shallow):Do(e)?(l=()=>e,r=!0):yn(e)?(d=!0,u=e.some(Do),l=()=>e.map((e=>zo(e)?e.value:Do(e)?Ql(e):Cn(e)?_l(e,s,2):void 0))):l=Cn(e)?t?()=>_l(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),bl(e,s,3,[p])}:dn,t&&r){const e=l;l=()=>Ql(e())}let p=e=>{c=g.onStop=()=>{_l(e,s,4)}};if(al)return p=dn,t?i&&bl(t,s,3,[l(),d?[]:void 0,p]):l(),dn;let h=d?[]:Vl;const f=()=>{if(g.active)if(t){const e=g.run();(r||u||(d?e.some(((e,t)=>jn(e,h[t]))):jn(e,h)))&&(c&&c(),bl(t,s,3,[e,h===Vl?void 0:h,p]),h=e)}else g.run()};let m;f.allowRecurse=!!t,m="sync"===o?f:"post"===o?()=>ns(f,s&&s.suspense):()=>{!s||s.isMounted?function(e){Bl(e,El,Tl,Al)}(f):f()};const g=new Lr(l,m);return t?i?f():h=g.run():"post"===o?ns(g.run.bind(g),s&&s.suspense):g.run(),()=>{g.stop(),s&&s.scope&&vn(s.scope.effects,g)}}function Yl(e,t,i){const r=this.proxy,o=kn(e)?e.includes(".")?ql(r,e):()=>r[e]:e.bind(r,r);let n;Cn(t)?n=t:(n=t.handler,i=t);const a=tl;rl(this);const s=Gl(o,n.bind(r),i);return a?rl(a):ol(),s}function ql(e,t){const i=t.split(".");return()=>{let t=e;for(let e=0;e{Ql(e,t)}));else if(Pn(e))for(const i in e)Ql(e[i],t);return e}function Zl(){return Xl().slots}function Xl(){const e=il();return e.setupContext||(e.setupContext=cl(e))}function Kl(e,t,i){const r=arguments.length;return 2===r?Tn(t)&&!yn(t)?Ms(t)?Bs(e,null,[t]):Bs(e,t):Bs(e,null,t):(r>3?i=Array.prototype.slice.call(arguments,2):3===r&&Ms(i)&&(i=[i]),Bs(e,t,i))}const Jl="3.2.25";function $l(e,t){const i=Object.create(null),r=e.split(",");for(let o=0;o!!i[e.toLowerCase()]:e=>!!i[e]}const ec=$l("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function tc(e){return!!e||""===e}function ic(e,t){if(e===t)return!0;let i=ac(e),r=ac(t);if(i||r)return!(!i||!r)&&e.getTime()===t.getTime();if(i=nc(e),r=nc(t),i||r)return!(!i||!r)&&function(e,t){if(e.length!==t.length)return!1;let i=!0;for(let r=0;i&&re instanceof Date,sc=e=>"string"==typeof e,lc=e=>null!==e&&"object"==typeof e,cc=e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))},uc=/-(\w)/g,dc=cc((e=>e.replace(uc,((e,t)=>t?t.toUpperCase():"")))),pc=/\B([A-Z])/g,hc=cc((e=>e.replace(pc,"-$1").toLowerCase())),fc=cc((e=>e.charAt(0).toUpperCase()+e.slice(1))),mc=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gc="undefined"!=typeof document?document:null,vc=new Map,_c={insert:(e,t,i)=>{t.insertBefore(e,i||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,i,r)=>{const o=t?gc.createElementNS("http://www.w3.org/2000/svg",e):gc.createElement(e,i?{is:i}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>gc.createTextNode(e),createComment:e=>gc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>gc.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,i,r){const o=i?i.previousSibling:t.lastChild;let n=vc.get(e);if(!n){const t=gc.createElement("template");if(t.innerHTML=r?`${e}`:e,n=t.content,r){const e=n.firstChild;for(;e.firstChild;)n.appendChild(e.firstChild);n.removeChild(e)}vc.set(e,n)}return t.insertBefore(n.cloneNode(!0),i),[o?o.nextSibling:t.firstChild,i?i.previousSibling:t.lastChild]}};const bc=/\s*!important$/;function yc(e,t,i){if(nc(i))i.forEach((i=>yc(e,t,i)));else if(t.startsWith("--"))e.setProperty(t,i);else{const r=function(e,t){const i=xc[t];if(i)return i;let r=Ln(t);if("filter"!==r&&r in e)return xc[t]=r;r=fc(r);for(let o=0;odocument.createEvent("Event").timeStamp&&(kc=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Tc=!!(e&&Number(e[1])<=53)}let Ec=0;const Ac=Promise.resolve(),Sc=()=>{Ec=0};function Pc(e,t,i,r){e.addEventListener(t,i,r)}function Ic(e,t,i,r,o=null){const n=e._vei||(e._vei={}),a=n[t];if(r&&a)a.value=r;else{const[i,s]=function(e){let t;if(Mc.test(e)){let i;for(t={};i=e.match(Mc);)e=e.slice(0,e.length-i[0].length),t[i[0].toLowerCase()]=!0}return[hc(e.slice(2)),t]}(t);if(r){Pc(e,i,n[t]=function(e,t){const i=e=>{const r=e.timeStamp||kc();(Tc||r>=i.attached-1)&&bl(function(e,t){if(nc(t)){const i=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{i.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,i.value),t,5,[e])};return i.value=e,i.attached=(()=>Ec||(Ac.then(Sc),Ec=kc()))(),i}(r,o),s)}else a&&(!function(e,t,i,r){e.removeEventListener(t,i,r)}(e,i,a,s),n[t]=void 0)}}const Mc=/(?:Once|Passive|Capture)$/;const Dc=/^on[a-z]/;function Lc(e,t){const i=ua(e);class r extends Rc{constructor(e){super(i,e,t)}}return r.def=i,r}const Oc="undefined"!=typeof HTMLElement?HTMLElement:class{};class Rc extends Oc{constructor(e,t={},i){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Ol((()=>{this._connected||(au(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let i=0;i{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:i}=e,r=!nc(t),o=t?r?Object.keys(t):t:[];let n;if(r)for(const a in this._props){const e=t[a];(e===Number||e&&e.type===Number)&&(this._props[a]=mc(this._props[a]),(n||(n=Object.create(null)))[a]=!0)}this._numberProps=n;for(const a of Object.keys(this))"_"!==a[0]&&this._setProp(a,this[a],!0,!1);for(const a of o.map(dc))Object.defineProperty(this,a,{get(){return this._getProp(a)},set(e){this._setProp(a,e)}});this._applyStyles(i),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=mc(t)),this._setProp(dc(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,i=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),i&&(!0===t?this.setAttribute(hc(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(hc(e),t+""):t||this.removeAttribute(hc(e))))}_update(){au(this._createVNode(),this.shadowRoot)}_createVNode(){const e=Bs(this._def,oc({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof Rc){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}const Nc="transition",Bc=(e,{slots:t})=>Kl(ra,function(e){const t={};for(const S in e)S in jc||(t[S]=e[S]);if(!1===e.css)return t;const{name:i="v",type:r,duration:o,enterFromClass:n=`${i}-enter-from`,enterActiveClass:a=`${i}-enter-active`,enterToClass:s=`${i}-enter-to`,appearFromClass:l=n,appearActiveClass:c=a,appearToClass:u=s,leaveFromClass:d=`${i}-leave-from`,leaveActiveClass:p=`${i}-leave-active`,leaveToClass:h=`${i}-leave-to`}=e,f=function(e){if(null==e)return null;if(lc(e))return[zc(e.enter),zc(e.leave)];{const t=zc(e);return[t,t]}}(o),m=f&&f[0],g=f&&f[1],{onBeforeEnter:v,onEnter:_,onEnterCancelled:b,onLeave:y,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:C=_,onAppearCancelled:k=b}=t,T=(e,t,i)=>{Vc(e,t?u:s),Vc(e,t?c:a),i&&i()},E=(e,t)=>{Vc(e,h),Vc(e,p),t&&t()},A=e=>(t,i)=>{const o=e?C:_,a=()=>T(t,e,i);Uc(o,[t,a]),Wc((()=>{Vc(t,e?l:n),Hc(t,e?u:s),Fc(o)||Yc(t,r,m,a)}))};return oc(t,{onBeforeEnter(e){Uc(v,[e]),Hc(e,n),Hc(e,a)},onBeforeAppear(e){Uc(x,[e]),Hc(e,l),Hc(e,c)},onEnter:A(!1),onAppear:A(!0),onLeave(e,t){const i=()=>E(e,t);Hc(e,d),document.body.offsetHeight,Hc(e,p),Wc((()=>{Vc(e,d),Hc(e,h),Fc(y)||Yc(e,r,g,i)})),Uc(y,[e,i])},onEnterCancelled(e){T(e,!1),Uc(b,[e])},onAppearCancelled(e){T(e,!0),Uc(k,[e])},onLeaveCancelled(e){E(e),Uc(w,[e])}})}(e),t);Bc.displayName="Transition";const jc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Bc.props=oc({},ra.props,jc);const Uc=(e,t=[])=>{nc(e)?e.forEach((e=>e(...t))):e&&e(...t)},Fc=e=>!!e&&(nc(e)?e.some((e=>e.length>1)):e.length>1);function zc(e){return mc(e)}function Hc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Vc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:i}=e;i&&(i.delete(t),i.size||(e._vtc=void 0))}function Wc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Gc=0;function Yc(e,t,i,r){const o=e._endId=++Gc,n=()=>{o===e._endId&&r()};if(i)return setTimeout(n,i);const{type:a,timeout:s,propCount:l}=function(e,t){const i=window.getComputedStyle(e),r=e=>(i[e]||"").split(", "),o=r("transitionDelay"),n=r("transitionDuration"),a=qc(o,n),s=r("animationDelay"),l=r("animationDuration"),c=qc(s,l);let u=null,d=0,p=0;t===Nc?a>0&&(u=Nc,d=a,p=n.length):"animation"===t?c>0&&(u="animation",d=c,p=l.length):(d=Math.max(a,c),u=d>0?a>c?Nc:"animation":null,p=u?u===Nc?n.length:l.length:0);const h=u===Nc&&/\b(transform|all)(,|$)/.test(i.transitionProperty);return{type:u,timeout:d,propCount:p,hasTransform:h}}(e,t);if(!a)return r();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,p),n()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{uQc(t)+Qc(e[i]))))}function Qc(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const Zc=e=>{const t=e.props["onUpdate:modelValue"];return nc(t)?e=>((e,t)=>{for(let i=0;i{e._assign(function(e){return"_value"in e?e._value:e.value}(e))}))},beforeUpdate(e,{value:t,oldValue:i},r){e._assign=Zc(r),t!==i&&(e.checked=ic(t,r.props.value))}};const Kc=["ctrl","shift","alt","meta"],Jc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Kc.some((i=>e[`${i}Key`]&&!t.includes(i)))},$c=(e,t)=>(i,...r)=>{for(let e=0;ei=>{if(!("key"in i))return;const r=hc(i.key);return t.some((e=>e===r||eu[e]===r))?e(i):void 0},iu={beforeMount(e,{value:t},{transition:i}){e._vod="none"===e.style.display?"":e.style.display,i&&t?i.beforeEnter(e):ru(e,t)},mounted(e,{value:t},{transition:i}){i&&t&&i.enter(e)},updated(e,{value:t,oldValue:i},{transition:r}){!t!=!i&&(r?t?(r.beforeEnter(e),ru(e,!0),r.enter(e)):r.leave(e,(()=>{ru(e,!1)})):ru(e,t))},beforeUnmount(e,{value:t}){ru(e,t)}};function ru(e,t){e.style.display=t?e._vod:"none"}const ou=oc({patchProp:(e,t,i,r,o=!1,n,a,s,l)=>{"class"===t?function(e,t,i){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):i?e.setAttribute("class",t):e.className=t}(e,r,o):"style"===t?function(e,t,i){const r=e.style,o=sc(i);if(i&&!o){for(const e in i)yc(r,e,i[e]);if(t&&!sc(t))for(const e in t)null==i[e]&&yc(r,e,"")}else{const n=r.display;o?t!==i&&(r.cssText=i):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=n)}}(e,i,r):(e=>rc.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||Ic(e,t,0,r,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,i,r){if(r)return"innerHTML"===t||"textContent"===t||!(!(t in e)||!Dc.test(t)||(o=i,"function"!=typeof o));var o;if("spellcheck"===t||"draggable"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Dc.test(t)&&sc(i))return!1;return t in e}(e,t,r,o))?function(e,t,i,r,o,n,a){if("innerHTML"===t||"textContent"===t)return r&&a(r,o,n),void(e[t]=null==i?"":i);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=i;const r=null==i?"":i;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==i&&e.removeAttribute(t))}if(""===i||null==i){const r=typeof e[t];if("boolean"===r)return void(e[t]=tc(i));if(null==i&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(s){}return void e.removeAttribute(t)}}try{e[t]=i}catch(l){}}(e,t,r,n,a,s,l):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,i,r,o){if(r&&t.startsWith("xlink:"))null==i?e.removeAttributeNS(Cc,t.slice(6,t.length)):e.setAttributeNS(Cc,t,i);else{const r=ec(t);null==i||r&&!tc(i)?e.removeAttribute(t):e.setAttribute(t,r?"":i)}}(e,t,r,o))}},_c);let nu;const au=(...e)=>{(nu||(nu=as(ou))).render(...e)};var su="object"==typeof global&&global&&global.Object===Object&&global,lu="object"==typeof self&&self&&self.Object===Object&&self,cu=su||lu||Function("return this")(),uu=cu.Symbol,du=Object.prototype,pu=du.hasOwnProperty,hu=du.toString,fu=uu?uu.toStringTag:void 0;var mu=Object.prototype.toString;var gu=uu?uu.toStringTag:void 0;function vu(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":gu&&gu in Object(e)?function(e){var t=pu.call(e,fu),i=e[fu];try{e[fu]=void 0;var r=!0}catch(n){}var o=hu.call(e);return r&&(t?e[fu]=i:delete e[fu]),o}(e):function(e){return mu.call(e)}(e)}function _u(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==vu(e)}var bu=Array.isArray,yu=uu?uu.prototype:void 0,wu=yu?yu.toString:void 0;function xu(e){if("string"==typeof e)return e;if(bu(e))return function(e,t){for(var i=-1,r=null==e?0:e.length,o=Array(r);++i-1},Ju.prototype.set=function(e,t){var i=this.__data__,r=Xu(i,e);return r<0?(++this.size,i.push([e,t])):i[r][1]=t,this};var $u=Vu(cu,"Map");function ed(e,t){var i,r,o=e.__data__;return("string"==(r=typeof(i=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==i:null===i)?o["string"==typeof t?"string":"hash"]:o.map}function td(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t=t||i<0||d&&e-c>=n}function g(){var e=pd();if(m(e))return v(e);s=setTimeout(g,function(e){var i=t-(e-l);return d?fd(i,n-(e-c)):i}(e))}function v(e){return s=void 0,p&&r?h(e):(r=o=void 0,a)}function _(){var e=pd(),i=m(e);if(r=arguments,o=this,l=e,i){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(g,t),h(l)}return void 0===s&&(s=setTimeout(g,t)),a}return t=Mu(t)||0,Eu(i)&&(u=!!i.leading,n=(d="maxWait"in i)?hd(Mu(i.maxWait)||0,t):n,p="trailing"in i?!!i.trailing:p),_.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},_.flush=function(){return void 0===s?a:v(pd())},_}function gd(e){for(var t=-1,i=null==e?0:e.length,r={};++tr=>{const o=null==e?void 0:e(r);if(!1===i||!o)return null==t?void 0:t(r)};var bd;const yd="undefined"!=typeof window,wd=e=>"boolean"==typeof e,xd=e=>"number"==typeof e,Cd=()=>{};function kd(e){return"function"==typeof e?e():Yo(e)}function Td(e){return!!br&&(xr(e),!0)}function Ed(e,t,i={}){const{immediate:r=!0}=i,o=Ho(!1);let n=null;function a(){n&&(clearTimeout(n),n=null)}function s(){o.value=!1,a()}function l(...i){a(),o.value=!0,n=setTimeout((()=>{o.value=!1,n=null,e(...i)}),kd(t))}return r&&(o.value=!0,yd&&l()),Td(s),{isPending:o,start:l,stop:s}}function Ad(e){var t;const i=kd(e);return null!=(t=null==i?void 0:i.$el)?t:i}yd&&(null==(bd=null==window?void 0:window.navigator)?void 0:bd.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const Sd=yd?window:void 0;function Pd(...e){let t,i,r,o;if("string"==typeof e[0]?([i,r,o]=e,t=Sd):[t,i,r,o]=e,!t)return Cd;let n=Cd;const a=Wl((()=>Ad(t)),(e=>{n(),e&&(e.addEventListener(i,r,o),n=()=>{e.removeEventListener(i,r,o),n=Cd})}),{immediate:!0,flush:"post"}),s=()=>{a(),n()};return Td(s),s}function Id(e,t=!1){const i=Ho(),r=()=>i.value=Boolean(e());return r(),function(e,t=!0){il()?ya(e):t?e():Ol(e)}(r,t),i}const Md="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Dd="__vueuse_ssr_handlers__";Md[Dd]=Md[Dd]||{},Md[Dd];var Ld,Od,Rd=Object.getOwnPropertySymbols,Nd=Object.prototype.hasOwnProperty,Bd=Object.prototype.propertyIsEnumerable;function jd(e,t,i={}){const r=i,{window:o=Sd}=r,n=((e,t)=>{var i={};for(var r in e)Nd.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&Rd)for(var r of Rd(e))t.indexOf(r)<0&&Bd.call(e,r)&&(i[r]=e[r]);return i})(r,["window"]);let a;const s=Id((()=>o&&"ResizeObserver"in o)),l=()=>{a&&(a.disconnect(),a=void 0)},c=Wl((()=>Ad(e)),(e=>{l(),s.value&&o&&e&&(a=new ResizeObserver(t),a.observe(e,n))}),{immediate:!0,flush:"post"}),u=()=>{l(),c()};return Td(u),{isSupported:s,stop:u}}(Od=Ld||(Ld={})).UP="UP",Od.RIGHT="RIGHT",Od.DOWN="DOWN",Od.LEFT="LEFT",Od.NONE="NONE";var Ud=Object.defineProperty,Fd=Object.getOwnPropertySymbols,zd=Object.prototype.hasOwnProperty,Hd=Object.prototype.propertyIsEnumerable,Vd=(e,t,i)=>t in e?Ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;((e,t)=>{for(var i in t||(t={}))zd.call(t,i)&&Vd(e,i,t[i]);if(Fd)for(var i of Fd(t))Hd.call(t,i)&&Vd(e,i,t[i])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Wd=e=>{let t,i;return"touchend"===e.type?(i=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(i=e.touches[0].clientY,t=e.touches[0].clientX):(i=e.clientY,t=e.clientX),{clientX:t,clientY:i}},Gd=()=>{},Yd=Object.prototype.hasOwnProperty,qd=(e,t)=>Yd.call(e,t),Qd=Array.isArray,Zd=e=>"function"==typeof e,Xd=e=>"string"==typeof e,Kd=e=>null!==e&&"object"==typeof e,Jd=/-(\w)/g,$d=(e=>{const t=Object.create(null);return i=>t[i]||(t[i]=e(i))})((e=>e.replace(Jd,((e,t)=>t?t.toUpperCase():"")))),ep=e=>void 0===e,tp=e=>"undefined"!=typeof Element&&e instanceof Element,ip=e=>Object.keys(e);class rp extends Error{constructor(e){super(e),this.name="ElementPlusError"}}const op=(e="")=>e.split(" ").filter((e=>!!e.trim())),np=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)};function ap(e,t="px"){return e?Xd(e)?e:xd(e)?`${e}${t}`:void 0:""}let sp; /*! Element Plus Icons Vue v2.0.9 */ var lp=(e,t)=>{let i=e.__vccOpts||e;for(let[r,o]of t)i[r]=o;return i},cp={name:"ArrowDown"},up={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dp=[Ns("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1)];var pp=lp(cp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",up,dp)}],["__file","arrow-down.vue"]]),hp={name:"ArrowUp"},fp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mp=[Ns("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1)];var gp=lp(hp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",fp,mp)}],["__file","arrow-up.vue"]]),vp={name:"CircleCheck"},_p={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bp=[Ns("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Ns("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1)];var yp=lp(vp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",_p,bp)}],["__file","circle-check.vue"]]),wp={name:"CircleClose"},xp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Cp=[Ns("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),Ns("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1)];var kp=lp(wp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",xp,Cp)}],["__file","circle-close.vue"]]),Tp={name:"Close"},Ep={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ap=[Ns("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1)];var Sp=lp(Tp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",Ep,Ap)}],["__file","close.vue"]]),Pp={name:"Delete"},Ip={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Mp=[Ns("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1)];var Dp=lp(Pp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",Ip,Mp)}],["__file","delete.vue"]]),Lp={name:"Edit"},Op={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Rp=[Ns("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640V512z"},null,-1),Ns("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"},null,-1)];var Np=lp(Lp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",Op,Rp)}],["__file","edit.vue"]]),Bp={name:"Hide"},jp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Up=[Ns("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),Ns("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1)];var Fp=lp(Bp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",jp,Up)}],["__file","hide.vue"]]),zp={name:"Loading"},Hp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Vp=[Ns("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1)];var Wp=lp(zp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",Hp,Vp)}],["__file","loading.vue"]]),Gp={name:"Minus"},Yp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qp=[Ns("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1)];var Qp=lp(Gp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",Yp,qp)}],["__file","minus.vue"]]),Zp={name:"Plus"},Xp={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Kp=[Ns("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1)];var Jp=lp(Zp,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",Xp,Kp)}],["__file","plus.vue"]]),$p={name:"View"},eh={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},th=[Ns("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1)];var ih=lp($p,[["render",function(e,t,i,r,o,n){return Ts(),Ps("svg",eh,th)}],["__file","view.vue"]]);const rh=(e,t)=>{if(!Kd(e)||Kd(i=e)&&i.__epPropKey)return e;var i;const{values:r,required:o,default:n,type:a,validator:s}=e,l={type:a,required:!!o,validator:r||s?i=>{let o=!1,a=[];if(r&&(a=Array.from(r),qd(e,"default")&&a.push(n),o||(o=a.includes(i))),s&&(o||(o=s(i))),!o&&a.length>0){const e=[...new Set(a)].map((e=>JSON.stringify(e))).join(", ");ml(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${e}], got value ${JSON.stringify(i)}.`)}return o}:void 0,__epPropKey:!0};return qd(e,"default")&&(l.default=n),l},oh=e=>gd(Object.entries(e).map((([e,t])=>[e,rh(t,e)]))),nh=[String,Object,Function],ah={Close:Sp},sh={validating:Wp,success:yp,error:kp},lh=(e,t)=>{if(e.install=i=>{for(const r of[e,...Object.values(null!=t?t:{})])i.component(r.name,r)},t)for(const[i,r]of Object.entries(t))e[i]=r;return e},ch=e=>(e.install=Gd,e),uh="Tab",dh="Enter",ph="Space",hh="Escape",fh=["","default","small","large"];var mh=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(mh||{});const gh=["class","style"],vh=/^on[A-Z]/,_h=Symbol("buttonGroupContextKey"),bh=Symbol(),yh=Symbol("dialogInjectionKey"),wh=Symbol("formContextKey"),xh=Symbol("formItemContextKey"),Ch=Symbol("radioGroupKey"),kh=Symbol("popper"),Th=Symbol("popperContent"),Eh=e=>{const t=il();return $o((()=>{var i,r;return null!=(r=(null==(i=t.proxy)?void 0:i.$props)[e])?r:void 0}))},Ah=Ho();function Sh(e,t){const i=il()?ta(bh,Ah):Ah;return e?$o((()=>{var r,o;return null!=(o=null==(r=i.value)?void 0:r[e])?o:t})):i}const Ph=(e,t)=>{var i;const r=[...new Set([...ip(e),...ip(t)])],o={};for(const n of r)o[n]=null!=(i=t[n])?i:e[n];return o},Ih=rh({type:String,values:fh,required:!1}),Mh=(e,t={})=>{const i=Ho(void 0),r=t.prop?i:Eh("size"),o=t.global?i:Sh("size"),n=t.form?{size:void 0}:ta(wh,void 0),a=t.formItem?{size:void 0}:ta(xh,void 0);return $o((()=>r.value||Yo(e)||(null==a?void 0:a.size)||(null==n?void 0:n.size)||o.value||""))},Dh=e=>{const t=Eh("disabled"),i=ta(wh,void 0);return $o((()=>t.value||Yo(e)||(null==i?void 0:i.disabled)||!1))},Lh=({from:e,replacement:t,scope:i,version:r,ref:o,type:n="API"},a)=>{Wl((()=>Yo(a)),(e=>{}),{immediate:!0})},Oh=(e,t,i)=>{let r={offsetX:0,offsetY:0};const o=t=>{const i=t.clientX,o=t.clientY,{offsetX:n,offsetY:a}=r,s=e.value.getBoundingClientRect(),l=s.left,c=s.top,u=s.width,d=s.height,p=document.documentElement.clientWidth,h=document.documentElement.clientHeight,f=-l+n,m=-c+a,g=p-l-u+n,v=h-c-d+a,_=t=>{const s=Math.min(Math.max(n+t.clientX-i,f),g),l=Math.min(Math.max(a+t.clientY-o,m),v);r={offsetX:s,offsetY:l},e.value.style.transform=`translate(${ap(s)}, ${ap(l)})`},b=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",b)},n=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};ya((()=>{Hl((()=>{i.value?t.value&&e.value&&t.value.addEventListener("mousedown",o):n()}))})),Ca((()=>{n()}))},Rh=(e,t,i,r,o)=>{let n=`${e}-${t}`;return i&&(n+=`-${i}`),r&&(n+=`__${r}`),o&&(n+=`--${o}`),n},Nh=e=>{const t=Sh("namespace","el");return{namespace:t,b:(i="")=>Rh(t.value,e,i,"",""),e:i=>i?Rh(t.value,e,"",i,""):"",m:i=>i?Rh(t.value,e,"","",i):"",be:(i,r)=>i&&r?Rh(t.value,e,i,r,""):"",em:(i,r)=>i&&r?Rh(t.value,e,"",i,r):"",bm:(i,r)=>i&&r?Rh(t.value,e,i,"",r):"",bem:(i,r,o)=>i&&r&&o?Rh(t.value,e,i,r,o):"",is:(e,...t)=>{const i=!(t.length>=1)||t[0];return e&&i?`is-${e}`:""},cssVar:e=>{const i={};for(const r in e)e[r]&&(i[`--${t.value}-${r}`]=e[r]);return i},cssVarName:e=>`--${t.value}-${e}`,cssVarBlock:i=>{const r={};for(const o in i)i[o]&&(r[`--${t.value}-${e}-${o}`]=i[o]);return r},cssVarBlockName:i=>`--${t.value}-${e}-${i}`}},Bh={prefix:Math.floor(1e4*Math.random()),current:0},jh=Symbol("elIdInjection"),Uh=e=>{const t=ta(jh,Bh),i=Sh("namespace","el");return $o((()=>Yo(e)||`${i.value}-id-${t.prefix}-${t.current++}`))},Fh=()=>({form:ta(wh,void 0),formItem:ta(xh,void 0)}),zh=(e,{formItemContext:t,disableIdGeneration:i,disableIdManagement:r})=>{i||(i=Ho(!1)),r||(r=Ho(!1));const o=Ho();let n;const a=$o((()=>{var i;return!!(!e.label&&t&&t.inputIds&&(null==(i=t.inputIds)?void 0:i.length)<=1)}));return ya((()=>{n=Wl([Ko(e,"id"),i],(([e,i])=>{const n=null!=e?e:i?void 0:Uh().value;n!==o.value&&((null==t?void 0:t.removeInputId)&&(o.value&&t.removeInputId(o.value),(null==r?void 0:r.value)||i||!n||t.addInputId(n)),o.value=n)}),{immediate:!0})})),ka((()=>{n&&n(),(null==t?void 0:t.removeInputId)&&o.value&&t.removeInputId(o.value)})),{isLabeledByFormItem:a,inputId:o}};var Hh={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const Vh=e=>(t,i)=>Wh(t,i,Yo(e)),Wh=(e,t,i)=>dd(i,e,e).replace(/\{(\w+)\}/g,((e,i)=>{var r;return`${null!=(r=null==t?void 0:t[i])?r:`{${i}}`}`})),Gh=()=>{const e=Sh("locale");return(e=>({lang:$o((()=>Yo(e).name)),locale:zo(e)?e:Ho(e),t:Vh(e)}))($o((()=>e.value||Hh)))},Yh=e=>{zo(e)||function(e,t){throw new rp(`[${e}] ${t}`)}("[useLockscreen]","You need to pass a ref param to this function");const t=Nh("popup"),i=$o((()=>t.bm("parent","hidden")));if(!yd||np(document.body,i.value))return;let r=0,o=!1,n="0";const a=()=>{var e,t;e=document.body,t=i.value,e&&t.trim()&&e.classList.remove(...op(t)),o&&(document.body.style.width=n)};Wl(e,(e=>{if(!e)return void a();o=!np(document.body,i.value),o&&(n=document.body.style.width),r=(e=>{var t;if(!yd)return 0;if(void 0!==sp)return sp;const i=document.createElement("div");i.className=`${e}-scrollbar__wrap`,i.style.visibility="hidden",i.style.width="100px",i.style.position="absolute",i.style.top="-9999px",document.body.appendChild(i);const r=i.offsetWidth;i.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",i.appendChild(o);const n=o.offsetWidth;return null==(t=i.parentNode)||t.removeChild(i),sp=r-n,sp})(t.namespace.value);const s=document.documentElement.clientHeight{var i;if(!yd||!e||!t)return"";let r=$d(t);"float"===r&&(r="cssFloat");try{const t=e.style[r];if(t)return t;const o=null==(i=document.defaultView)?void 0:i.getComputedStyle(e,"");return o?o[r]:""}catch(o){return e.style[r]}})(document.body,"overflowY");var c,u;r>0&&(s||"scroll"===l)&&o&&(document.body.style.width=`calc(100% - ${r}px)`),c=document.body,u=i.value,c&&u.trim()&&c.classList.add(...op(u))})),xr((()=>a()))},qh=rh({type:Boolean,default:null}),Qh=rh({type:Function}),Zh=e=>{if(!e)return{onClick:Gd,onMousedown:Gd,onMouseup:Gd};let t=!1,i=!1;return{onClick:r=>{t&&i&&e(r),t=i=!1},onMousedown:e=>{t=e.target===e.currentTarget},onMouseup:e=>{i=e.target===e.currentTarget}}};let Xh=[];const Kh=e=>{const t=e;t.key===hh&&Xh.forEach((e=>e(t)))};let Jh;const $h=`el-popper-container-${Math.floor(1e4*Math.random())}`,ef=`#${$h}`,tf=()=>{ba((()=>{yd&&(Jh&&document.body.querySelector(ef)||(Jh=(()=>{const e=document.createElement("div");return e.id=$h,document.body.appendChild(e),e})()))}))},rf=oh({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),of=({showAfter:e,hideAfter:t,open:i,close:r})=>{const{registerTimeout:o}=function(){let e;const t=()=>window.clearTimeout(e);return Td((()=>t())),{registerTimeout:(i,r)=>{t(),e=window.setTimeout(i,r)},cancelTimeout:t}}();return{onOpen:t=>{o((()=>{i(t)}),Yo(e))},onClose:e=>{o((()=>{r(e)}),Yo(t))}}},nf=Symbol("elForwardRef"),af=Ho(0),sf=()=>{const e=Sh("zIndex",2e3),t=$o((()=>e.value+af.value));return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(af.value++,t.value)}};var lf=(e,t)=>{const i=e.__vccOpts||e;for(const[r,o]of t)i[r]=o;return i};const cf=oh({size:{type:[Number,String]},color:{type:String}});const uf=lh(lf(ua(u(c({},{name:"ElIcon",inheritAttrs:!1}),{props:cf,setup(e){const t=e,i=Nh("icon"),r=$o((()=>{const{size:e,color:i}=t;return e||i?{fontSize:ep(e)?void 0:ap(e),"--color":i}:{}}));return(e,t)=>(Ts(),Ps("i",Ws({class:Yo(i).b(),style:Yo(r)},e.$attrs),[Qs(e.$slots,"default")],16))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]));let df;const pf=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function hf(e,t=1,i){var r;df||(df=document.createElement("textarea"),document.body.appendChild(df));const{paddingSize:o,borderSize:n,boxSizing:a,contextStyle:s}=function(e){const t=window.getComputedStyle(e),i=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:pf.map((e=>`${e}:${t.getPropertyValue(e)}`)).join(";"),paddingSize:r,borderSize:o,boxSizing:i}}(e);df.setAttribute("style",`${s};\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`),df.value=e.value||e.placeholder||"";let l=df.scrollHeight;const c={};"border-box"===a?l+=n:"content-box"===a&&(l-=o),df.value="";const u=df.scrollHeight-o;if(xd(t)){let e=u*t;"border-box"===a&&(e=e+o+n),l=Math.max(e,l),c.minHeight=`${e}px`}if(xd(i)){let e=u*i;"border-box"===a&&(e=e+o+n),l=Math.min(e,l)}return c.height=`${l}px`,null==(r=df.parentNode)||r.removeChild(df),df=void 0,c}const ff=oh({id:{type:String,default:void 0},size:Ih,disabled:Boolean,modelValue:{type:[String,Number,Object],default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:nh},prefixIcon:{type:nh},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:[Object,Array,String],default:()=>({})}}),mf={"update:modelValue":e=>Xd(e),input:e=>Xd(e),change:e=>Xd(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},gf=["role"],vf=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],_f=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"];const bf=lh(lf(ua(u(c({},{name:"ElInput",inheritAttrs:!1}),{props:ff,emits:mf,setup(e,{expose:t,emit:i}){const r=e,o={suffix:"append",prefix:"prepend"},n=il(),a=Xl().attrs,s=Zl(),l=$o((()=>{const e={};return"combobox"===r.containerRole&&(e["aria-haspopup"]=a["aria-haspopup"],e["aria-owns"]=a["aria-owns"],e["aria-expanded"]=a["aria-expanded"]),e})),u=((e={})=>{const{excludeListeners:t=!1,excludeKeys:i}=e,r=$o((()=>((null==i?void 0:i.value)||[]).concat(gh))),o=il();return $o(o?()=>{var e;return gd(Object.entries(null==(e=o.proxy)?void 0:e.$attrs).filter((([e])=>!(r.value.includes(e)||t&&vh.test(e)))))}:()=>({}))})({excludeKeys:$o((()=>Object.keys(l.value)))}),{form:d,formItem:p}=Fh(),{inputId:h}=zh(r,{formItemContext:p}),f=Mh(),m=Dh(),g=Nh("input"),v=Nh("textarea"),_=Vo(),b=Vo(),y=Ho(!1),w=Ho(!1),x=Ho(!1),C=Ho(!1),k=Ho(),T=Vo(r.inputStyle),E=$o((()=>_.value||b.value)),A=$o((()=>{var e;return null!=(e=null==d?void 0:d.statusIcon)&&e})),S=$o((()=>(null==p?void 0:p.validateState)||"")),P=$o((()=>S.value&&sh[S.value])),I=$o((()=>C.value?ih:Fp)),M=$o((()=>[a.style,r.inputStyle])),D=$o((()=>[r.inputStyle,T.value,{resize:r.resize}])),L=$o((()=>vd(r.modelValue)?"":String(r.modelValue))),O=$o((()=>r.clearable&&!m.value&&!r.readonly&&!!L.value&&(y.value||w.value))),R=$o((()=>r.showPassword&&!m.value&&!r.readonly&&!!L.value&&(!!L.value||y.value))),N=$o((()=>r.showWordLimit&&!!u.value.maxlength&&("text"===r.type||"textarea"===r.type)&&!m.value&&!r.readonly&&!r.showPassword)),B=$o((()=>Array.from(L.value).length)),j=$o((()=>!!N.value&&B.value>Number(u.value.maxlength))),U=$o((()=>!!s.suffix||!!r.suffixIcon||O.value||r.showPassword||N.value||!!S.value&&A.value)),[F,z]=function(e){const t=Ho();return[function(){if(null==e.value)return;const{selectionStart:i,selectionEnd:r,value:o}=e.value;if(null==i||null==r)return;const n=o.slice(0,Math.max(0,i)),a=o.slice(Math.max(0,r));t.value={selectionStart:i,selectionEnd:r,value:o,beforeTxt:n,afterTxt:a}},function(){if(null==e.value||null==t.value)return;const{value:i}=e.value,{beforeTxt:r,afterTxt:o,selectionStart:n}=t.value;if(null==r||null==o||null==n)return;let a=i.length;if(i.endsWith(o))a=i.length-o.length;else if(i.startsWith(r))a=r.length;else{const e=r[n-1],t=i.indexOf(e,n-1);-1!==t&&(a=t+1)}e.value.setSelectionRange(a,a)}]}(_);jd(b,(e=>{if(!N.value||"both"!==r.resize)return;const t=e[0],{width:i}=t.contentRect;k.value={right:`calc(100% - ${i+15+6}px)`}}));const H=()=>{const{type:e,autosize:t}=r;if(yd&&"textarea"===e)if(t){const e=Kd(t)?t.minRows:void 0,i=Kd(t)?t.maxRows:void 0;T.value=c({},hf(b.value,e,i))}else T.value={minHeight:hf(b.value).minHeight}},V=()=>{const e=E.value;e&&e.value!==L.value&&(e.value=L.value)},W=e=>{const{el:t}=n.vnode;if(!t)return;const i=Array.from(t.querySelectorAll(`.${g.e(e)}`)).find((e=>e.parentNode===t));if(!i)return;const r=o[e];s[r]?i.style.transform=`translateX(${"suffix"===e?"-":""}${t.querySelector(`.${g.be("group",r)}`).offsetWidth}px)`:i.removeAttribute("style")},G=()=>{W("prefix"),W("suffix")},Y=async e=>{F();let{value:t}=e.target;r.formatter&&(t=r.parser?r.parser(t):t,t=r.formatter(t)),x.value||(t!==L.value?(i("update:modelValue",t),i("input",t),await Ol(),V(),z()):V())},q=e=>{i("change",e.target.value)},Q=e=>{i("compositionstart",e),x.value=!0},Z=e=>{var t;i("compositionupdate",e);const r=null==(t=e.target)?void 0:t.value,o=r[r.length-1]||"";x.value=!(e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e))(o)},X=e=>{i("compositionend",e),x.value&&(x.value=!1,Y(e))},K=()=>{C.value=!C.value,J()},J=async()=>{var e;await Ol(),null==(e=E.value)||e.focus()},$=e=>{y.value=!0,i("focus",e)},ee=e=>{var t;y.value=!1,i("blur",e),r.validateEvent&&(null==(t=null==p?void 0:p.validate)||t.call(p,"blur").catch((e=>{})))},te=e=>{w.value=!1,i("mouseleave",e)},ie=e=>{w.value=!0,i("mouseenter",e)},re=e=>{i("keydown",e)},oe=()=>{i("update:modelValue",""),i("change",""),i("clear"),i("input","")};return Wl((()=>r.modelValue),(()=>{var e;Ol((()=>H())),r.validateEvent&&(null==(e=null==p?void 0:p.validate)||e.call(p,"change").catch((e=>{})))})),Wl(L,(()=>V())),Wl((()=>r.type),(async()=>{await Ol(),V(),H(),G()})),ya((async()=>{!r.formatter&&r.parser,V(),G(),await Ol(),H()})),xa((async()=>{await Ol(),G()})),t({input:_,textarea:b,ref:E,textareaStyle:D,autosize:Ko(r,"autosize"),focus:J,blur:()=>{var e;return null==(e=E.value)?void 0:e.blur()},select:()=>{var e;null==(e=E.value)||e.select()},clear:oe,resizeTextarea:H}),(e,t)=>$a((Ts(),Ps("div",Ws(Yo(l),{class:["textarea"===e.type?Yo(v).b():Yo(g).b(),Yo(g).m(Yo(f)),Yo(g).is("disabled",Yo(m)),Yo(g).is("exceed",Yo(j)),{[Yo(g).b("group")]:e.$slots.prepend||e.$slots.append,[Yo(g).bm("group","append")]:e.$slots.append,[Yo(g).bm("group","prepend")]:e.$slots.prepend,[Yo(g).m("prefix")]:e.$slots.prefix||e.prefixIcon,[Yo(g).m("suffix")]:e.$slots.suffix||e.suffixIcon||e.clearable||e.showPassword,[Yo(g).bm("suffix","password-clear")]:Yo(O)&&Yo(R)},e.$attrs.class],style:Yo(M),role:e.containerRole,onMouseenter:ie,onMouseleave:te}),[Fs(" input "),"textarea"!==e.type?(Ts(),Ps(bs,{key:0},[Fs(" prepend slot "),e.$slots.prepend?(Ts(),Ps("div",{key:0,class:an(Yo(g).be("group","prepend"))},[Qs(e.$slots,"prepend")],2)):Fs("v-if",!0),Ns("div",{class:an([Yo(g).e("wrapper"),Yo(g).is("focus",y.value)])},[Fs(" prefix slot "),e.$slots.prefix||e.prefixIcon?(Ts(),Ps("span",{key:0,class:an(Yo(g).e("prefix"))},[Ns("span",{class:an(Yo(g).e("prefix-inner"))},[Qs(e.$slots,"prefix"),e.prefixIcon?(Ts(),Is(Yo(uf),{key:0,class:an(Yo(g).e("icon"))},{default:Zn((()=>[(Ts(),Is(gs(e.prefixIcon)))])),_:1},8,["class"])):Fs("v-if",!0)],2)],2)):Fs("v-if",!0),Ns("input",Ws({id:Yo(h),ref_key:"input",ref:_,class:Yo(g).e("inner")},Yo(u),{type:e.showPassword?C.value?"text":"password":e.type,disabled:Yo(m),formatter:e.formatter,parser:e.parser,readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.label,placeholder:e.placeholder,style:e.inputStyle,onCompositionstart:Q,onCompositionupdate:Z,onCompositionend:X,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:re}),null,16,vf),Fs(" suffix slot "),Yo(U)?(Ts(),Ps("span",{key:1,class:an(Yo(g).e("suffix"))},[Ns("span",{class:an(Yo(g).e("suffix-inner"))},[Yo(O)&&Yo(R)&&Yo(N)?Fs("v-if",!0):(Ts(),Ps(bs,{key:0},[Qs(e.$slots,"suffix"),e.suffixIcon?(Ts(),Is(Yo(uf),{key:0,class:an(Yo(g).e("icon"))},{default:Zn((()=>[(Ts(),Is(gs(e.suffixIcon)))])),_:1},8,["class"])):Fs("v-if",!0)],64)),Yo(O)?(Ts(),Is(Yo(uf),{key:1,class:an([Yo(g).e("icon"),Yo(g).e("clear")]),onMousedown:$c(Yo(Gd),["prevent"]),onClick:oe},{default:Zn((()=>[Bs(Yo(kp))])),_:1},8,["class","onMousedown"])):Fs("v-if",!0),Yo(R)?(Ts(),Is(Yo(uf),{key:2,class:an([Yo(g).e("icon"),Yo(g).e("password")]),onClick:K},{default:Zn((()=>[(Ts(),Is(gs(Yo(I))))])),_:1},8,["class"])):Fs("v-if",!0),Yo(N)?(Ts(),Ps("span",{key:3,class:an(Yo(g).e("count"))},[Ns("span",{class:an(Yo(g).e("count-inner"))},sn(Yo(B))+" / "+sn(Yo(u).maxlength),3)],2)):Fs("v-if",!0),Yo(S)&&Yo(P)&&Yo(A)?(Ts(),Is(Yo(uf),{key:4,class:an([Yo(g).e("icon"),Yo(g).e("validateIcon"),Yo(g).is("loading","validating"===Yo(S))])},{default:Zn((()=>[(Ts(),Is(gs(Yo(P))))])),_:1},8,["class"])):Fs("v-if",!0)],2)],2)):Fs("v-if",!0)],2),Fs(" append slot "),e.$slots.append?(Ts(),Ps("div",{key:1,class:an(Yo(g).be("group","append"))},[Qs(e.$slots,"append")],2)):Fs("v-if",!0)],64)):(Ts(),Ps(bs,{key:1},[Fs(" textarea "),Ns("textarea",Ws({id:Yo(h),ref_key:"textarea",ref:b,class:Yo(v).e("inner")},Yo(u),{tabindex:e.tabindex,disabled:Yo(m),readonly:e.readonly,autocomplete:e.autocomplete,style:Yo(D),"aria-label":e.label,placeholder:e.placeholder,onCompositionstart:Q,onCompositionupdate:Z,onCompositionend:X,onInput:Y,onFocus:$,onBlur:ee,onChange:q,onKeydown:re}),null,16,_f),Yo(N)?(Ts(),Ps("span",{key:0,style:tn(k.value),class:an(Yo(g).e("count"))},sn(Yo(B))+" / "+sn(Yo(u).maxlength),7)):Fs("v-if",!0)],64))],16,gf)),[[iu,"hidden"!==e.type]])}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]])),yf=oh({role:{type:String,values:["dialog","grid","listbox","menu","tooltip","tree"],default:"tooltip"}});var wf=lf(ua(u(c({},{name:"ElPopperRoot",inheritAttrs:!1}),{props:yf,setup(e,{expose:t}){const i=e,r={triggerRef:Ho(),popperInstanceRef:Ho(),contentRef:Ho(),referenceRef:Ho(),role:$o((()=>i.role))};return t(r),ea(kh,r),(e,t)=>Qs(e.$slots,"default")}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const xf=oh({arrowOffset:{type:Number,default:5}});var Cf=lf(ua(u(c({},{name:"ElPopperArrow",inheritAttrs:!1}),{props:xf,setup(e,{expose:t}){const i=e,r=Nh("popper"),{arrowOffset:o,arrowRef:n}=ta(Th,void 0);return Wl((()=>i.arrowOffset),(e=>{o.value=e})),Ca((()=>{n.value=void 0})),t({arrowRef:n}),(e,t)=>(Ts(),Ps("span",{ref_key:"arrowRef",ref:n,class:an(Yo(r).e("arrow")),"data-popper-arrow":""},null,2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const kf=ua({name:"ElOnlyChild",setup(e,{slots:t,attrs:i}){var r;const o=ta(nf),n=(a=null!=(r=null==o?void 0:o.setForwardRef)?r:Gd,{mounted(e){a(e)},updated(e){a(e)},unmounted(){a(null)}});var a;return()=>{var e;const r=null==(e=t.default)?void 0:e.call(t,i);if(!r)return null;if(r.length>1)return null;const o=Tf(r);return o?$a(js(o,i),[[n]]):null}}});function Tf(e){if(!e)return null;const t=e;for(const i of t){if(Kd(i))switch(i.type){case ws:continue;case ys:case"svg":return Ef(i);case bs:return Tf(i.children);default:return i}return Ef(i)}return null}function Ef(e){const t=Nh("only-child");return Bs("span",{class:t.e("content")},[e])}const Af=oh({virtualRef:{type:Object},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean});var Sf=lf(ua(u(c({},{name:"ElPopperTrigger",inheritAttrs:!1}),{props:Af,setup(e,{expose:t}){const i=e,{role:r,triggerRef:o}=ta(kh,void 0);var n;n=o,ea(nf,{setForwardRef:e=>{n.value=e}});const a=$o((()=>l.value?i.id:void 0)),s=$o((()=>{if(r&&"tooltip"===r.value)return i.open&&i.id?i.id:void 0})),l=$o((()=>{if(r&&"tooltip"!==r.value)return r.value})),c=$o((()=>l.value?`${i.open}`:void 0));let u;return ya((()=>{Wl((()=>i.virtualRef),(e=>{e&&(o.value=Ad(e))}),{immediate:!0}),Wl((()=>o.value),((e,t)=>{null==u||u(),u=void 0,tp(e)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach((r=>{var o;const n=i[r];n&&(e.addEventListener(r.slice(2).toLowerCase(),n),null==(o=null==t?void 0:t.removeEventListener)||o.call(t,r.slice(2).toLowerCase(),n))})),u=Wl([a,s,l,c],(t=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(((i,r)=>{vd(t[r])?e.removeAttribute(i):e.setAttribute(i,t[r])}))}),{immediate:!0})),tp(t)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((e=>t.removeAttribute(e)))}),{immediate:!0})})),Ca((()=>{null==u||u(),u=void 0})),t({triggerRef:o}),(e,t)=>e.virtualTriggering?Fs("v-if",!0):(Ts(),Is(Yo(kf),Ws({key:0},e.$attrs,{"aria-controls":Yo(a),"aria-describedby":Yo(s),"aria-expanded":Yo(c),"aria-haspopup":Yo(l)}),{default:Zn((()=>[Qs(e.$slots,"default")])),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),Pf="top",If="bottom",Mf="right",Df="left",Lf="auto",Of=[Pf,If,Mf,Df],Rf="start",Nf="end",Bf="viewport",jf="popper",Uf=Of.reduce((function(e,t){return e.concat([t+"-"+Rf,t+"-"+Nf])}),[]),Ff=[].concat(Of,[Lf]).reduce((function(e,t){return e.concat([t,t+"-"+Rf,t+"-"+Nf])}),[]),zf=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Hf(e){return e?(e.nodeName||"").toLowerCase():null}function Vf(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wf(e){return e instanceof Vf(e).Element||e instanceof Element}function Gf(e){return e instanceof Vf(e).HTMLElement||e instanceof HTMLElement}function Yf(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Vf(e).ShadowRoot||e instanceof ShadowRoot)}var qf={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!Gf(o)||!Hf(o)||(Object.assign(o.style,i),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},n=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});!Gf(r)||!Hf(r)||(Object.assign(r.style,n),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Qf(e){return e.split("-")[0]}var Zf=Math.max,Xf=Math.min,Kf=Math.round;function Jf(e,t){void 0===t&&(t=!1);var i=e.getBoundingClientRect(),r=1,o=1;if(Gf(e)&&t){var n=e.offsetHeight,a=e.offsetWidth;a>0&&(r=Kf(i.width)/a||1),n>0&&(o=Kf(i.height)/n||1)}return{width:i.width/r,height:i.height/o,top:i.top/o,right:i.right/r,bottom:i.bottom/o,left:i.left/r,x:i.left/r,y:i.top/o}}function $f(e){var t=Jf(e),i=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:r}}function em(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Yf(i)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function tm(e){return Vf(e).getComputedStyle(e)}function im(e){return["table","td","th"].indexOf(Hf(e))>=0}function rm(e){return((Wf(e)?e.ownerDocument:e.document)||window.document).documentElement}function om(e){return"html"===Hf(e)?e:e.assignedSlot||e.parentNode||(Yf(e)?e.host:null)||rm(e)}function nm(e){return Gf(e)&&"fixed"!==tm(e).position?e.offsetParent:null}function am(e){for(var t=Vf(e),i=nm(e);i&&im(i)&&"static"===tm(i).position;)i=nm(i);return i&&("html"===Hf(i)||"body"===Hf(i)&&"static"===tm(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Gf(e)&&"fixed"===tm(e).position)return null;var i=om(e);for(Yf(i)&&(i=i.host);Gf(i)&&["html","body"].indexOf(Hf(i))<0;){var r=tm(i);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return i;i=i.parentNode}return null}(e)||t}function sm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function lm(e,t,i){return Zf(e,Xf(t,i))}function cm(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function um(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var dm={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,r=e.name,o=e.options,n=i.elements.arrow,a=i.modifiersData.popperOffsets,s=Qf(i.placement),l=sm(s),c=[Df,Mf].indexOf(s)>=0?"height":"width";if(n&&a){var u=function(e,t){return cm("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:um(e,Of))}(o.padding,i),d=$f(n),p="y"===l?Pf:Df,h="y"===l?If:Mf,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],m=a[l]-i.rects.reference[l],g=am(n),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,_=f/2-m/2,b=u[p],y=v-d[c]-u[h],w=v/2-d[c]/2+_,x=lm(b,w,y),C=l;i.modifiersData[r]=((t={})[C]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,i=e.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!em(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pm(e){return e.split("-")[1]}var hm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function fm(e){var t,i=e.popper,r=e.popperRect,o=e.placement,n=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,h=void 0===p?0:p,f=a.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var v=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),b=Df,y=Pf,w=window;if(c){var x=am(i),C="clientHeight",k="clientWidth";if(x===Vf(i)&&("static"!==tm(x=rm(i)).position&&"absolute"===s&&(C="scrollHeight",k="scrollWidth")),x=x,o===Pf||(o===Df||o===Mf)&&n===Nf)y=If,m-=(d&&x===w&&w.visualViewport?w.visualViewport.height:x[C])-r.height,m*=l?1:-1;if(o===Df||(o===Pf||o===If)&&n===Nf)b=Mf,h-=(d&&x===w&&w.visualViewport?w.visualViewport.width:x[k])-r.width,h*=l?1:-1}var T,E=Object.assign({position:s},c&&hm),A=!0===u?function(e){var t=e.x,i=e.y,r=window.devicePixelRatio||1;return{x:Kf(t*r)/r||0,y:Kf(i*r)/r||0}}({x:h,y:m}):{x:h,y:m};return h=A.x,m=A.y,l?Object.assign({},E,((T={})[y]=_?"0":"",T[b]=v?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",T)):Object.assign({},E,((t={})[y]=_?m+"px":"",t[b]=v?h+"px":"",t.transform="",t))}var mm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,r=i.gpuAcceleration,o=void 0===r||r,n=i.adaptive,a=void 0===n||n,s=i.roundOffsets,l=void 0===s||s,c={placement:Qf(t.placement),variation:pm(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,fm(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,fm(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},gm={passive:!0};var vm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,r=e.options,o=r.scroll,n=void 0===o||o,a=r.resize,s=void 0===a||a,l=Vf(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&c.forEach((function(e){e.addEventListener("scroll",i.update,gm)})),s&&l.addEventListener("resize",i.update,gm),function(){n&&c.forEach((function(e){e.removeEventListener("scroll",i.update,gm)})),s&&l.removeEventListener("resize",i.update,gm)}},data:{}},_m={left:"right",right:"left",bottom:"top",top:"bottom"};function bm(e){return e.replace(/left|right|bottom|top/g,(function(e){return _m[e]}))}var ym={start:"end",end:"start"};function wm(e){return e.replace(/start|end/g,(function(e){return ym[e]}))}function xm(e){var t=Vf(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Cm(e){return Jf(rm(e)).left+xm(e).scrollLeft}function km(e){var t=tm(e),i=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+r)}function Tm(e){return["html","body","#document"].indexOf(Hf(e))>=0?e.ownerDocument.body:Gf(e)&&km(e)?e:Tm(om(e))}function Em(e,t){var i;void 0===t&&(t=[]);var r=Tm(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),n=Vf(r),a=o?[n].concat(n.visualViewport||[],km(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Em(om(a)))}function Am(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Sm(e,t){return t===Bf?Am(function(e){var t=Vf(e),i=rm(e),r=t.visualViewport,o=i.clientWidth,n=i.clientHeight,a=0,s=0;return r&&(o=r.width,n=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:n,x:a+Cm(e),y:s}}(e)):Wf(t)?function(e){var t=Jf(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Am(function(e){var t,i=rm(e),r=xm(e),o=null==(t=e.ownerDocument)?void 0:t.body,n=Zf(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Zf(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Cm(e),l=-r.scrollTop;return"rtl"===tm(o||i).direction&&(s+=Zf(i.clientWidth,o?o.clientWidth:0)-n),{width:n,height:a,x:s,y:l}}(rm(e)))}function Pm(e,t,i){var r="clippingParents"===t?function(e){var t=Em(om(e)),i=["absolute","fixed"].indexOf(tm(e).position)>=0&&Gf(e)?am(e):e;return Wf(i)?t.filter((function(e){return Wf(e)&&em(e,i)&&"body"!==Hf(e)})):[]}(e):[].concat(t),o=[].concat(r,[i]),n=o[0],a=o.reduce((function(t,i){var r=Sm(e,i);return t.top=Zf(r.top,t.top),t.right=Xf(r.right,t.right),t.bottom=Xf(r.bottom,t.bottom),t.left=Zf(r.left,t.left),t}),Sm(e,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Im(e){var t,i=e.reference,r=e.element,o=e.placement,n=o?Qf(o):null,a=o?pm(o):null,s=i.x+i.width/2-r.width/2,l=i.y+i.height/2-r.height/2;switch(n){case Pf:t={x:s,y:i.y-r.height};break;case If:t={x:s,y:i.y+i.height};break;case Mf:t={x:i.x+i.width,y:l};break;case Df:t={x:i.x-r.width,y:l};break;default:t={x:i.x,y:i.y}}var c=n?sm(n):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case Rf:t[c]=t[c]-(i[u]/2-r[u]/2);break;case Nf:t[c]=t[c]+(i[u]/2-r[u]/2)}}return t}function Mm(e,t){void 0===t&&(t={});var i=t,r=i.placement,o=void 0===r?e.placement:r,n=i.boundary,a=void 0===n?"clippingParents":n,s=i.rootBoundary,l=void 0===s?Bf:s,c=i.elementContext,u=void 0===c?jf:c,d=i.altBoundary,p=void 0!==d&&d,h=i.padding,f=void 0===h?0:h,m=cm("number"!=typeof f?f:um(f,Of)),g=u===jf?"reference":jf,v=e.rects.popper,_=e.elements[p?g:u],b=Pm(Wf(_)?_:_.contextElement||rm(e.elements.popper),a,l),y=Jf(e.elements.reference),w=Im({reference:y,element:v,strategy:"absolute",placement:o}),x=Am(Object.assign({},v,w)),C=u===jf?x:y,k={top:b.top-C.top+m.top,bottom:C.bottom-b.bottom+m.bottom,left:b.left-C.left+m.left,right:C.right-b.right+m.right},T=e.modifiersData.offset;if(u===jf&&T){var E=T[o];Object.keys(k).forEach((function(e){var t=[Mf,If].indexOf(e)>=0?1:-1,i=[Pf,If].indexOf(e)>=0?"y":"x";k[e]+=E[i]*t}))}return k}var Dm={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=i.mainAxis,n=void 0===o||o,a=i.altAxis,s=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,p=i.altBoundary,h=i.flipVariations,f=void 0===h||h,m=i.allowedAutoPlacements,g=t.options.placement,v=Qf(g),_=l||(v===g||!f?[bm(g)]:function(e){if(Qf(e)===Lf)return[];var t=bm(e);return[wm(e),t,wm(t)]}(g)),b=[g].concat(_).reduce((function(e,i){return e.concat(Qf(i)===Lf?function(e,t){void 0===t&&(t={});var i=t,r=i.placement,o=i.boundary,n=i.rootBoundary,a=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Ff:l,u=pm(r),d=u?s?Uf:Uf.filter((function(e){return pm(e)===u})):Of,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,i){return t[i]=Mm(e,{placement:i,boundary:o,rootBoundary:n,padding:a})[Qf(i)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),y=t.rects.reference,w=t.rects.popper,x=new Map,C=!0,k=b[0],T=0;T=0,I=P?"width":"height",M=Mm(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),D=P?S?Mf:Df:S?If:Pf;y[I]>w[I]&&(D=bm(D));var L=bm(D),O=[];if(n&&O.push(M[A]<=0),s&&O.push(M[D]<=0,M[L]<=0),O.every((function(e){return e}))){k=E,C=!1;break}x.set(E,O)}if(C)for(var R=function(e){var t=b.find((function(t){var i=x.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return k=t,"break"},N=f?3:1;N>0;N--){if("break"===R(N))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Lm(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Om(e){return[Pf,Mf,If,Df].some((function(t){return e[t]>=0}))}var Rm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,r=t.rects.reference,o=t.rects.popper,n=t.modifiersData.preventOverflow,a=Mm(t,{elementContext:"reference"}),s=Mm(t,{altBoundary:!0}),l=Lm(a,r),c=Lm(s,o,n),u=Om(l),d=Om(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Nm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,r=e.name,o=i.offset,n=void 0===o?[0,0]:o,a=Ff.reduce((function(e,i){return e[i]=function(e,t,i){var r=Qf(e),o=[Df,Pf].indexOf(r)>=0?-1:1,n="function"==typeof i?i(Object.assign({},t,{placement:e})):i,a=n[0],s=n[1];return a=a||0,s=(s||0)*o,[Df,Mf].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(i,t.rects,n),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var Bm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Im({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var jm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,r=e.name,o=i.mainAxis,n=void 0===o||o,a=i.altAxis,s=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,p=i.tether,h=void 0===p||p,f=i.tetherOffset,m=void 0===f?0:f,g=Mm(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Qf(t.placement),_=pm(t.placement),b=!_,y=sm(v),w=function(e){return"x"===e?"y":"x"}(y),x=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,T="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,S={x:0,y:0};if(x){if(n){var P,I="y"===y?Pf:Df,M="y"===y?If:Mf,D="y"===y?"height":"width",L=x[y],O=L+g[I],R=L-g[M],N=h?-k[D]/2:0,B=_===Rf?C[D]:k[D],j=_===Rf?-k[D]:-C[D],U=t.elements.arrow,F=h&&U?$f(U):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},H=z[I],V=z[M],W=lm(0,C[D],F[D]),G=b?C[D]/2-N-W-H-E.mainAxis:B-W-H-E.mainAxis,Y=b?-C[D]/2+N+W+V+E.mainAxis:j+W+V+E.mainAxis,q=t.elements.arrow&&am(t.elements.arrow),Q=q?"y"===y?q.clientTop||0:q.clientLeft||0:0,Z=null!=(P=null==A?void 0:A[y])?P:0,X=L+Y-Z,K=lm(h?Xf(O,L+G-Z-Q):O,L,h?Zf(R,X):R);x[y]=K,S[y]=K-L}if(s){var J,$="x"===y?Pf:Df,ee="x"===y?If:Mf,te=x[w],ie="y"===w?"height":"width",re=te+g[$],oe=te-g[ee],ne=-1!==[Pf,Df].indexOf(v),ae=null!=(J=null==A?void 0:A[w])?J:0,se=ne?re:te-C[ie]-k[ie]-ae+E.altAxis,le=ne?te+C[ie]+k[ie]-ae-E.altAxis:oe,ce=h&&ne?function(e,t,i){var r=lm(e,t,i);return r>i?i:r}(se,te,le):lm(h?se:re,te,h?le:oe);x[w]=ce,S[w]=ce-te}t.modifiersData[r]=S}},requiresIfExists:["offset"]};function Um(e,t,i){void 0===i&&(i=!1);var r=Gf(t),o=Gf(t)&&function(e){var t=e.getBoundingClientRect(),i=Kf(t.width)/e.offsetWidth||1,r=Kf(t.height)/e.offsetHeight||1;return 1!==i||1!==r}(t),n=rm(t),a=Jf(e,o),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!i)&&(("body"!==Hf(t)||km(n))&&(s=function(e){return e!==Vf(e)&&Gf(e)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(e):xm(e)}(t)),Gf(t)?((l=Jf(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):n&&(l.x=Cm(n))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Fm(e){var t=new Map,i=new Set,r=[];function o(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||o(e)})),r}function zm(e){var t;return function(){return t||(t=new Promise((function(i){Promise.resolve().then((function(){t=void 0,i(e())}))}))),t}}var Hm={placement:"bottom",modifiers:[],strategy:"absolute"};function Vm(){for(var e=arguments.length,t=new Array(e),i=0;i{const t=[],i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0||e===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)t.push(i.currentNode);return t},qm=(e,t)=>{for(const i of e)if(!Qm(i,t))return i},Qm=(e,t)=>{if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1},Zm=(e,t)=>{if(e&&e.focus){const i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&(e=>e instanceof HTMLInputElement&&"select"in e)(e)&&t&&e.select()}};function Xm(e,t){const i=[...e],r=e.indexOf(t);return-1!==r&&i.splice(r,1),i}const Km=(()=>{let e=[];return{push:t=>{const i=e[0];i&&t!==i&&i.pause(),e=Xm(e,t),e.unshift(t)},remove:t=>{var i,r;e=Xm(e,t),null==(r=null==(i=e[0])?void 0:i.resume)||r.call(i)}}})(),Jm={cancelable:!0,bubbles:!1},$m=Symbol("elFocusTrap");var eg=lf(ua({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:["focusAfterTrapped","focusAfterReleased","focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const i=Ho();let r,o;var n;n=i=>{e.trapped&&!a.paused&&t("release-requested",i)},ya((()=>{0===Xh.length&&document.addEventListener("keydown",Kh),yd&&Xh.push(n)})),Ca((()=>{Xh=Xh.filter((e=>e!==n)),0===Xh.length&&yd&&document.removeEventListener("keydown",Kh)}));const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=i=>{if(!e.loop&&!e.trapped)return;if(a.paused)return;const{key:r,altKey:o,ctrlKey:n,metaKey:s,currentTarget:l,shiftKey:c}=i,{loop:u}=e,d=r===uh&&!o&&!n&&!s,p=document.activeElement;if(d&&p){const e=l,[r,o]=(e=>{const t=Ym(e);return[qm(t,e),qm(t.reverse(),e)]})(e);r&&o?c||p!==o?c&&[r,e].includes(p)&&(i.preventDefault(),u&&Zm(o,!0),t("focusout-prevented")):(i.preventDefault(),u&&Zm(r,!0),t("focusout-prevented")):p===e&&(i.preventDefault(),t("focusout-prevented"))}};ea($m,{focusTrapRef:i,onKeydown:s}),Wl((()=>e.focusTrapEl),(e=>{e&&(i.value=e)}),{immediate:!0}),Wl([i],(([e],[t])=>{e&&(e.addEventListener("keydown",s),e.addEventListener("focusin",u),e.addEventListener("focusout",d)),t&&(t.removeEventListener("keydown",s),t.removeEventListener("focusin",u),t.removeEventListener("focusout",d))}));const l=e=>{t("focusAfterTrapped",e)},c=e=>t("focusAfterReleased",e),u=r=>{const n=Yo(i);if(!n)return;const s=r.target,l=s&&n.contains(s);l&&t("focusin",r),a.paused||e.trapped&&(l?o=s:Zm(o,!0))},d=r=>{const n=Yo(i);if(!a.paused&&n)if(e.trapped){const t=r.relatedTarget;vd(t)||n.contains(t)||setTimeout((()=>{!a.paused&&e.trapped&&Zm(o,!0)}),0)}else{const e=r.target;e&&n.contains(e)||t("focusout",r)}};async function p(){await Ol();const t=Yo(i);if(t){Km.push(a);const i=document.activeElement;r=i;if(!t.contains(i)){const r=new Event("focus-trap.focus-after-trapped",Jm);t.addEventListener("focus-trap.focus-after-trapped",l),t.dispatchEvent(r),r.defaultPrevented||Ol((()=>{let r=e.focusStartEl;Xd(r)||(Zm(r),document.activeElement!==r&&(r="first")),"first"===r&&((e,t=!1)=>{const i=document.activeElement;for(const r of e)if(Zm(r,t),document.activeElement!==i)return})(Ym(t),!0),document.activeElement!==i&&"container"!==r||Zm(t)}))}}}function h(){const e=Yo(i);if(e){e.removeEventListener("focus-trap.focus-after-trapped",l);const t=new Event("focus-trap.focus-after-released",Jm);e.addEventListener("focus-trap.focus-after-released",c),e.dispatchEvent(t),t.defaultPrevented||Zm(null!=r?r:document.body,!0),e.removeEventListener("focus-trap.focus-after-released",l),Km.remove(a)}}return ya((()=>{e.trapped&&p(),Wl((()=>e.trapped),(e=>{e?p():h()}))})),Ca((()=>{e.trapped&&h()})),{onKeydown:s}}}),[["render",function(e,t,i,r,o,n){return Qs(e.$slots,"default",{handleKeydown:e.onKeydown})}],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const tg=oh({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Array,default:()=>[]},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ff,default:"bottom"},popperOptions:{type:Object,default:()=>({})},strategy:{type:String,values:["fixed","absolute"],default:"absolute"}}),ig=oh(u(c({},tg),{id:String,style:{type:[String,Array,Object]},className:{type:[String,Array,Object]},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:[String,Array,Object]},popperStyle:{type:[String,Array,Object]},referenceEl:{type:Object},triggerTargetEl:{type:Object},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number})),rg=(e,t)=>{const{placement:i,strategy:r,popperOptions:o}=e,n=u(c({placement:i,strategy:r},o),{modifiers:og(e)});return function(e,{arrowEl:t,arrowOffset:i}){e.modifiers.push({name:"arrow",options:{element:t,padding:null!=i?i:5}})}(n,t),function(e,t){t&&(e.modifiers=[...e.modifiers,...null!=t?t:[]])}(n,null==o?void 0:o.modifiers),n};function og(e){const{offset:t,gpuAcceleration:i,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,null!=t?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:null!=r?r:[]}},{name:"computeStyles",options:{gpuAcceleration:i,adaptive:i}}]}var ng=lf(ua(u(c({},{name:"ElPopperContent"}),{props:ig,emits:["mouseenter","mouseleave","focus","blur","close"],setup(e,{expose:t,emit:i}){const r=e,{popperInstanceRef:o,contentRef:n,triggerRef:a,role:s}=ta(kh,void 0),l=ta(xh,void 0),{nextZIndex:d}=sf(),p=Nh("popper"),h=Ho(),f=Ho("first"),m=Ho(),g=Ho();ea(Th,{arrowRef:m,arrowOffset:g}),l&&(l.addInputId||l.removeInputId)&&ea(xh,u(c({},l),{addInputId:Gd,removeInputId:Gd}));const v=Ho(r.zIndex||d()),_=Ho(!1);let b;const y=$o((()=>(e=>{if(yd)return Ad(e)})(r.referenceEl)||Yo(a))),w=$o((()=>[{zIndex:Yo(v)},r.popperStyle])),x=$o((()=>[p.b(),p.is("pure",r.pure),p.is(r.effect),r.popperClass])),C=$o((()=>s&&"dialog"===s.value?"false":void 0)),k=(e=!0)=>{var t;null==(t=Yo(o))||t.update(),e&&(v.value=r.zIndex||d())},T=()=>{var e,t;const i={name:"eventListeners",enabled:r.visible};null==(t=null==(e=Yo(o))?void 0:e.setOptions)||t.call(e,(e=>u(c({},e),{modifiers:[...e.modifiers||[],i]}))),k(!1),r.visible&&r.focusOnShow?_.value=!0:!1===r.visible&&(_.value=!1)},E=()=>{i("focus")},A=()=>{f.value="first",i("blur")},S=e=>{var t;r.visible&&!_.value&&(e.target&&(f.value=e.target),_.value=!0,e.relatedTarget&&(null==(t=e.relatedTarget)||t.focus()))},P=()=>{r.trapping||(_.value=!1)},I=()=>{_.value=!1,i("close")};return ya((()=>{let e;Wl(y,(t=>{var i;null==e||e();const a=Yo(o);if(null==(i=null==a?void 0:a.destroy)||i.call(a),t){const i=Yo(h);n.value=i,o.value=(({referenceEl:e,popperContentEl:t,arrowEl:i})=>{const o=rg(r,{arrowEl:i,arrowOffset:Yo(g)});return Gm(e,t,o)})({referenceEl:t,popperContentEl:i,arrowEl:Yo(m)}),e=Wl((()=>t.getBoundingClientRect()),(()=>k()),{immediate:!0})}else o.value=void 0}),{immediate:!0}),Wl((()=>r.triggerTargetEl),((e,t)=>{null==b||b(),b=void 0;const i=Yo(e||h.value),o=Yo(t||h.value);if(tp(i)){const{ariaLabel:e,id:t}=Zo(r);b=Wl([s,e,C,t],(e=>{["role","aria-label","aria-modal","id"].forEach(((t,r)=>{vd(e[r])?i.removeAttribute(t):i.setAttribute(t,e[r])}))}),{immediate:!0})}tp(o)&&["role","aria-label","aria-modal","id"].forEach((e=>{o.removeAttribute(e)}))}),{immediate:!0}),Wl((()=>r.visible),T,{immediate:!0}),Wl((()=>rg(r,{arrowEl:Yo(m),arrowOffset:Yo(g)})),(e=>{var t;return null==(t=o.value)?void 0:t.setOptions(e)}))})),Ca((()=>{null==b||b(),b=void 0})),t({popperContentRef:h,popperInstanceRef:o,updatePopper:k,contentStyle:w}),(e,t)=>(Ts(),Ps("div",{ref_key:"popperContentRef",ref:h,style:tn(Yo(w)),class:an(Yo(x)),tabindex:"-1",onMouseenter:t[0]||(t[0]=t=>e.$emit("mouseenter",t)),onMouseleave:t[1]||(t[1]=t=>e.$emit("mouseleave",t))},[Bs(Yo(eg),{trapped:_.value,"trap-on-focus-in":!0,"focus-trap-el":h.value,"focus-start-el":f.value,onFocusAfterTrapped:E,onFocusAfterReleased:A,onFocusin:S,onFocusoutPrevented:P,onReleaseRequested:I},{default:Zn((()=>[Qs(e.$slots,"default")])),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ag=lh(wf),sg=Nh("tooltip"),lg=oh(u(c(c({},rf),ig),{appendTo:{type:[String,Object],default:ef},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Boolean,default:null},transition:{type:String,default:`${sg.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}})),cg=oh(u(c({},Af),{disabled:Boolean,trigger:{type:[String,Array],default:"hover"},triggerKeys:{type:Array,default:()=>[dh,ph]}})),ug=oh({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),dg=Symbol("elTooltip");var pg=lf(ua({name:"ElTooltipContent",components:{ElPopperContent:ng},inheritAttrs:!1,props:lg,setup(e){const t=Ho(null),i=Ho(!1),r=Ho(!1),o=Ho(!1),n=Ho(!1),{controlled:a,id:s,open:l,trigger:c,onClose:u,onOpen:d,onShow:p,onHide:h,onBeforeShow:f,onBeforeHide:m}=ta(dg,void 0),g=$o((()=>e.persistent));Ca((()=>{n.value=!0}));const v=$o((()=>!!Yo(g)||Yo(l))),_=$o((()=>!e.disabled&&Yo(l))),b=$o((()=>{var t;return null!=(t=e.style)?t:{}})),y=$o((()=>!Yo(l))),w=()=>{if(Yo(a))return!0},x=_d(w,(()=>{e.enterable&&"hover"===Yo(c)&&d()})),C=_d(w,(()=>{"hover"===Yo(c)&&u()}));let k;return Wl((()=>Yo(l)),(e=>{e||null==k||k()}),{flush:"post"}),{ariaHidden:y,entering:r,leaving:o,id:s,intermediateOpen:i,contentStyle:b,contentRef:t,destroyed:n,shouldRender:v,shouldShow:_,onClose:u,open:l,onAfterShow:()=>{p(),k=function(e,t,i={}){const{window:r=Sd,ignore:o,capture:n=!0,detectIframe:a=!1}=i;if(!r)return;const s=Ho(!0);let l;const c=i=>{r.clearTimeout(l);const n=Ad(e),a=i.composedPath();n&&n!==i.target&&!a.includes(n)&&s.value&&(o&&o.length>0&&o.some((e=>{const t=Ad(e);return t&&(i.target===t||a.includes(t))}))||t(i))},u=[Pd(r,"click",c,{passive:!0,capture:n}),Pd(r,"pointerdown",(t=>{const i=Ad(e);s.value=!!i&&!t.composedPath().includes(i)}),{passive:!0}),Pd(r,"pointerup",(e=>{if(0===e.button){const t=e.composedPath();e.composedPath=()=>t,l=r.setTimeout((()=>c(e)),50)}}),{passive:!0}),a&&Pd(r,"blur",(i=>{var r;const o=Ad(e);"IFRAME"!==(null==(r=document.activeElement)?void 0:r.tagName)||(null==o?void 0:o.contains(document.activeElement))||t(i)}))].filter(Boolean);return()=>u.forEach((e=>e()))}($o((()=>{var e;return null==(e=t.value)?void 0:e.popperContentRef})),(()=>{if(Yo(a))return;"hover"!==Yo(c)&&u()}))},onBeforeEnter:()=>{var e,i;null==(i=null==(e=t.value)?void 0:e.updatePopper)||i.call(e),null==f||f()},onBeforeLeave:()=>{null==m||m()},onContentEnter:x,onContentLeave:C,onTransitionLeave:()=>{h()},onBlur:()=>{e.virtualTriggering||u()}}}}),[["render",function(e,t,i,r,o,n){const a=fs("el-popper-content");return Ts(),Is(hs,{disabled:!e.teleported,to:e.appendTo},[Bs(Bc,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:Zn((()=>[e.shouldRender?$a((Ts(),Is(a,Ws({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:Zn((()=>[Fs(" Workaround bug #6378 "),e.destroyed?Fs("v-if",!0):Qs(e.$slots,"default",{key:0})])),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[iu,e.shouldShow]]):Fs("v-if",!0)])),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const hg=(e,t,i)=>r=>{((e,t)=>Qd(e)?e.includes(t):e===t)(Yo(e),t)&&i(r)};var fg=lf(ua({name:"ElTooltipTrigger",components:{ElPopperTrigger:Sf},props:cg,setup(e){const t=Nh("tooltip"),{controlled:i,id:r,open:o,onOpen:n,onClose:a,onToggle:s}=ta(dg,void 0),l=Ho(null),c=()=>{if(Yo(i)||e.disabled)return!0},u=Ko(e,"trigger"),d=_d(c,hg(u,"hover",n)),p=_d(c,hg(u,"hover",a)),h=_d(c,hg(u,"click",(e=>{0===e.button&&s(e)}))),f=_d(c,hg(u,"focus",n));return{onBlur:_d(c,hg(u,"focus",a)),onContextMenu:_d(c,hg(u,"contextmenu",(e=>{e.preventDefault(),s(e)}))),onFocus:f,onMouseenter:d,onMouseleave:p,onClick:h,onKeydown:_d(c,(t=>{const{code:i}=t;e.triggerKeys.includes(i)&&(t.preventDefault(),s(t))})),open:o,id:r,triggerRef:l,ns:t}}}),[["render",function(e,t,i,r,o,n){const a=fs("el-popper-trigger");return Ts(),Is(a,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:an(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:Zn((()=>[Qs(e.$slots,"default")])),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:mg,useModelToggle:gg,useModelToggleEmits:vg}=(e=>{const t=`update:${e}`,i=`onUpdate:${e}`;return{useModelToggle:({indicator:r,toggleReason:o,shouldHideWhenRouteChanges:n,shouldProceed:a,onShow:s,onHide:l})=>{const u=il(),{emit:d}=u,p=u.props,h=$o((()=>Zd(p[i]))),f=$o((()=>null===p[e])),m=e=>{!0!==r.value&&(r.value=!0,o&&(o.value=e),Zd(s)&&s(e))},g=e=>{!1!==r.value&&(r.value=!1,o&&(o.value=e),Zd(l)&&l(e))},v=e=>{if(!0===p.disabled||Zd(a)&&!a())return;const i=h.value&&yd;i&&d(t,!0),!f.value&&i||m(e)},_=e=>{if(!0===p.disabled||!yd)return;const i=h.value&&yd;i&&d(t,!1),!f.value&&i||g(e)},b=e=>{wd(e)&&(p.disabled&&e?h.value&&d(t,!1):r.value!==e&&(e?m():g()))};return Wl((()=>p[e]),b),n&&void 0!==u.appContext.config.globalProperties.$route&&Wl((()=>c({},u.proxy.$route)),(()=>{n.value&&r.value&&_()})),ya((()=>{b(p[e])})),{hide:_,show:v,toggle:()=>{r.value?_():v()},hasUpdateHandler:h}},useModelToggleProps:{[e]:qh,[i]:Qh},useModelToggleEmits:[t]}})("visible"),_g=ua({name:"ElTooltip",components:{ElPopper:ag,ElPopperArrow:Cf,ElTooltipContent:pg,ElTooltipTrigger:fg},props:c(c(c(c(c(c({},yf),mg),lg),cg),xf),ug),emits:[...vg,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){tf();const i=$o((()=>(ep(e.openDelay),e.openDelay||e.showAfter))),r=$o((()=>(ep(e.visibleArrow),wd(e.visibleArrow)?e.visibleArrow:e.showArrow))),o=Uh(),n=Ho(null),a=Ho(null),s=()=>{var e;const t=Yo(n);t&&(null==(e=t.popperInstanceRef)||e.update())},l=Ho(!1),c=Ho(void 0),{show:u,hide:d,hasUpdateHandler:p}=gg({indicator:l,toggleReason:c}),{onOpen:h,onClose:f}=of({showAfter:i,hideAfter:Ko(e,"hideAfter"),open:u,close:d}),m=$o((()=>wd(e.visible)&&!p.value));ea(dg,{controlled:m,id:o,open:Io(l),trigger:Ko(e,"trigger"),onOpen:e=>{h(e)},onClose:e=>{f(e)},onToggle:e=>{Yo(l)?f(e):h(e)},onShow:()=>{t("show",c.value)},onHide:()=>{t("hide",c.value)},onBeforeShow:()=>{t("before-show",c.value)},onBeforeHide:()=>{t("before-hide",c.value)},updatePopper:s}),Wl((()=>e.disabled),(e=>{e&&l.value&&(l.value=!1)}));return fa((()=>l.value&&d())),{compatShowAfter:i,compatShowArrow:r,popperRef:n,contentRef:a,open:l,hide:d,isFocusInsideContent:()=>{var e,t;const i=null==(t=null==(e=a.value)?void 0:e.contentRef)?void 0:t.popperContentRef;return i&&i.contains(document.activeElement)},updatePopper:s,onOpen:h,onClose:f}}}),bg=["innerHTML"],yg={key:1};const wg=lh(lf(_g,[["render",function(e,t,i,r,o,n){const a=fs("el-tooltip-trigger"),s=fs("el-popper-arrow"),l=fs("el-tooltip-content"),c=fs("el-popper");return Ts(),Is(c,{ref:"popperRef",role:e.role},{default:Zn((()=>[Bs(a,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:Zn((()=>[e.$slots.default?Qs(e.$slots,"default",{key:0}):Fs("v-if",!0)])),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),Bs(l,{ref:"contentRef","aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:Zn((()=>[Qs(e.$slots,"content",{},(()=>[e.rawContent?(Ts(),Ps("span",{key:0,innerHTML:e.content},null,8,bg)):(Ts(),Ps("span",yg,sn(e.content),1))])),e.compatShowArrow?(Ts(),Is(s,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):Fs("v-if",!0)])),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])])),_:3},8,["role"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]])),xg=oh({size:Ih,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:nh},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:nh,default:()=>Wp},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),Cg={click:e=>e instanceof MouseEvent};function kg(e,t){(function(e){return"string"==typeof e&&-1!==e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var i=function(e){return"string"==typeof e&&-1!==e.indexOf("%")}(e);return e=360===t?e:Math.min(t,Math.max(0,parseFloat(e))),i&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:e=360===t?(e<0?e%t+t:e%t)/parseFloat(String(t)):e%t/parseFloat(String(t))}function Tg(e){return Math.min(1,Math.max(0,e))}function Eg(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ag(e){return e<=1?"".concat(100*Number(e),"%"):e}function Sg(e){return 1===e.length?"0"+e:String(e)}function Pg(e,t,i){e=kg(e,255),t=kg(t,255),i=kg(i,255);var r=Math.max(e,t,i),o=Math.min(e,t,i),n=0,a=0,s=(r+o)/2;if(r===o)a=0,n=0;else{var l=r-o;switch(a=s>.5?l/(2-r-o):l/(r+o),r){case e:n=(t-i)/l+(t1&&(i-=1),i<1/6?e+6*i*(t-e):i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function Mg(e,t,i){e=kg(e,255),t=kg(t,255),i=kg(i,255);var r=Math.max(e,t,i),o=Math.min(e,t,i),n=0,a=r,s=r-o,l=0===r?0:s/r;if(r===o)n=0;else{switch(r){case e:n=(t-i)/s+(t>16,g:(65280&e)>>8,b:255&e}}(t)),this.originalInput=t;var o=Ng(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=i.format)&&void 0!==r?r:o.format,this.gradientType=i.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,i=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Eg(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=Mg(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Mg(this.r,this.g,this.b),t=Math.round(360*e.h),i=Math.round(100*e.s),r=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(i,"%, ").concat(r,"%)"):"hsva(".concat(t,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=Pg(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Pg(this.r,this.g,this.b),t=Math.round(360*e.h),i=Math.round(100*e.s),r=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(i,"%, ").concat(r,"%)"):"hsla(".concat(t,", ").concat(i,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Dg(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),function(e,t,i,r,o){var n,a=[Sg(Math.round(e).toString(16)),Sg(Math.round(t).toString(16)),Sg(Math.round(i).toString(16)),Sg((n=r,Math.round(255*parseFloat(n)).toString(16)))];return o&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),i=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(i,")"):"rgba(".concat(e,", ").concat(t,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*kg(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*kg(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Dg(this.r,this.g,this.b,!1),t=0,i=Object.entries(Rg);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(i=this.toRgbString()),"prgb"===e&&(i=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(i=this.toHexString()),"hex3"===e&&(i=this.toHexString(!0)),"hex4"===e&&(i=this.toHex8String(!0)),"hex8"===e&&(i=this.toHex8String()),"name"===e&&(i=this.toName()),"hsl"===e&&(i=this.toHslString()),"hsv"===e&&(i=this.toHsvString()),i||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.l+=t/100,i.l=Tg(i.l),new e(i)},e.prototype.brighten=function(t){void 0===t&&(t=10);var i=this.toRgb();return i.r=Math.max(0,Math.min(255,i.r-Math.round(-t/100*255))),i.g=Math.max(0,Math.min(255,i.g-Math.round(-t/100*255))),i.b=Math.max(0,Math.min(255,i.b-Math.round(-t/100*255))),new e(i)},e.prototype.darken=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.l-=t/100,i.l=Tg(i.l),new e(i)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.s-=t/100,i.s=Tg(i.s),new e(i)},e.prototype.saturate=function(t){void 0===t&&(t=10);var i=this.toHsl();return i.s+=t/100,i.s=Tg(i.s),new e(i)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var i=this.toHsl(),r=(i.h+t)%360;return i.h=r<0?360+r:r,new e(i)},e.prototype.mix=function(t,i){void 0===i&&(i=50);var r=this.toRgb(),o=new e(t).toRgb(),n=i/100;return new e({r:(o.r-r.r)*n+r.r,g:(o.g-r.g)*n+r.g,b:(o.b-r.b)*n+r.b,a:(o.a-r.a)*n+r.a})},e.prototype.analogous=function(t,i){void 0===t&&(t=6),void 0===i&&(i=30);var r=this.toHsl(),o=360/i,n=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,n.push(new e(r));return n},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var i=this.toHsv(),r=i.h,o=i.s,n=i.v,a=[],s=1/t;t--;)a.push(new e({h:r,s:o,v:n})),n=(n+s)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),i=t.h;return[this,new e({h:(i+72)%360,s:t.s,l:t.l}),new e({h:(i+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var i=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(i.r-r.r)*i.a,g:r.g+(i.g-r.g)*i.a,b:r.b+(i.b-r.b)*i.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var i=this.toHsl(),r=i.h,o=[this],n=360/t,a=1;a"text"===r.type)));const n=ta(_h,void 0),a=Sh("button"),s=Nh("button"),{form:l}=Fh(),c=Mh($o((()=>null==n?void 0:n.size))),u=Dh(),d=Ho(),p=$o((()=>r.type||(null==n?void 0:n.type)||"")),h=$o((()=>{var e,t,i;return null!=(i=null!=(t=r.autoInsertSpace)?t:null==(e=a.value)?void 0:e.autoInsertSpace)&&i})),f=$o((()=>{var e;const t=null==(e=o.default)?void 0:e.call(o);if(h.value&&1===(null==t?void 0:t.length)){const e=t[0];if((null==e?void 0:e.type)===ys){const t=e.children;return/^\p{Unified_Ideograph}{2}$/u.test(t.trim())}}return!1})),m=function(e){const t=Dh(),i=Nh("button");return $o((()=>{let r={};const o=e.color;if(o){const n=new Hg(o),a=e.dark?n.tint(20).toString():Vg(n,20);if(e.plain)r=i.cssVarBlock({"bg-color":e.dark?Vg(n,90):n.tint(90).toString(),"text-color":o,"border-color":e.dark?Vg(n,50):n.tint(50).toString(),"hover-text-color":`var(${i.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":a,"active-text-color":`var(${i.cssVarName("color-white")})`,"active-border-color":a}),t.value&&(r[i.cssVarBlockName("disabled-bg-color")]=e.dark?Vg(n,90):n.tint(90).toString(),r[i.cssVarBlockName("disabled-text-color")]=e.dark?Vg(n,50):n.tint(50).toString(),r[i.cssVarBlockName("disabled-border-color")]=e.dark?Vg(n,80):n.tint(80).toString());else{const s=e.dark?Vg(n,30):n.tint(30).toString(),l=n.isDark()?`var(${i.cssVarName("color-white")})`:`var(${i.cssVarName("color-black")})`;if(r=i.cssVarBlock({"bg-color":o,"text-color":l,"border-color":o,"hover-bg-color":s,"hover-text-color":l,"hover-border-color":s,"active-bg-color":a,"active-border-color":a}),t.value){const t=e.dark?Vg(n,50):n.tint(50).toString();r[i.cssVarBlockName("disabled-bg-color")]=t,r[i.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${i.cssVarName("color-white")})`,r[i.cssVarBlockName("disabled-border-color")]=t}}}return r}))}(r),g=e=>{"reset"===r.nativeType&&(null==l||l.resetFields()),i("click",e)};return t({ref:d,size:c,type:p,disabled:u,shouldAddSpace:f}),(e,t)=>(Ts(),Ps("button",{ref_key:"_ref",ref:d,class:an([Yo(s).b(),Yo(s).m(Yo(p)),Yo(s).m(Yo(c)),Yo(s).is("disabled",Yo(u)),Yo(s).is("loading",e.loading),Yo(s).is("plain",e.plain),Yo(s).is("round",e.round),Yo(s).is("circle",e.circle),Yo(s).is("text",e.text),Yo(s).is("link",e.link),Yo(s).is("has-bg",e.bg)]),"aria-disabled":Yo(u)||e.loading,disabled:Yo(u)||e.loading,autofocus:e.autofocus,type:e.nativeType,style:tn(Yo(m)),onClick:g},[e.loading?(Ts(),Ps(bs,{key:0},[e.$slots.loading?Qs(e.$slots,"loading",{key:0}):(Ts(),Is(Yo(uf),{key:1,class:an(Yo(s).is("loading"))},{default:Zn((()=>[(Ts(),Is(gs(e.loadingIcon)))])),_:1},8,["class"]))],64)):e.icon||e.$slots.icon?(Ts(),Is(Yo(uf),{key:1},{default:Zn((()=>[e.icon?(Ts(),Is(gs(e.icon),{key:0})):Qs(e.$slots,"icon",{key:1})])),_:3})):Fs("v-if",!0),e.$slots.default?(Ts(),Ps("span",{key:2,class:an({[Yo(s).em("text","expand")]:Yo(f)})},[Qs(e.$slots,"default")],2)):Fs("v-if",!0)],14,Wg))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const Yg={size:xg.size,type:xg.type};var qg=lf(ua(u(c({},{name:"ElButtonGroup"}),{props:Yg,setup(e){const t=e;ea(_h,Po({size:Ko(t,"size"),type:Ko(t,"type")}));const i=Nh("button");return(e,t)=>(Ts(),Ps("div",{class:an(`${Yo(i).b("group")}`)},[Qs(e.$slots,"default")],2))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const Qg=lh(Gg,{ButtonGroup:qg}),Zg=ch(qg),Xg=new Map;let Kg;function Jg(e,t){let i=[];return Array.isArray(t.arg)?i=t.arg:tp(t.arg)&&i.push(t.arg),function(r,o){const n=t.instance.popperRef,a=r.target,s=null==o?void 0:o.target,l=!t||!t.instance,c=!a||!s,u=e.contains(a)||e.contains(s),d=e===a,p=i.length&&i.some((e=>null==e?void 0:e.contains(a)))||i.length&&i.includes(s),h=n&&(n.contains(a)||n.contains(s));l||c||u||d||p||h||t.value(r,o)}}yd&&(document.addEventListener("mousedown",(e=>Kg=e)),document.addEventListener("mouseup",(e=>{for(const t of Xg.values())for(const{documentHandler:i}of t)i(e,Kg)})));const $g={beforeMount(e,t){Xg.has(e)||Xg.set(e,[]),Xg.get(e).push({documentHandler:Jg(e,t),bindingFn:t.value})},updated(e,t){Xg.has(e)||Xg.set(e,[]);const i=Xg.get(e),r=i.findIndex((e=>e.bindingFn===t.oldValue)),o={documentHandler:Jg(e,t),bindingFn:t.value};r>=0?i.splice(r,1,o):i.push(o)},unmounted(e){Xg.delete(e)}},ev={beforeMount(e,t){let i=null,r=null;const o=()=>t.value&&t.value(),n=()=>{r&&(clearTimeout(r),r=null),i&&(clearInterval(i),i=null)};e.addEventListener("mousedown",(e=>{0===e.button&&(o(),document.addEventListener("mouseup",n,{once:!0}),n(),r=setTimeout((()=>{i=setInterval((()=>{o()}),100)}),600))}))}},tv=oh({size:Ih,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),iv=oh(u(c({},tv),{modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean})),rv={"update:modelValue":e=>Xd(e)||xd(e)||wd(e),change:e=>Xd(e)||xd(e)||wd(e)},ov=(e,t)=>{const i=Ho(),r=ta(Ch,void 0),o=$o((()=>!!r)),n=$o({get:()=>o.value?r.modelValue:e.modelValue,set(n){o.value?r.changeEvent(n):t&&t("update:modelValue",n),i.value.checked=e.modelValue===e.label}}),a=Mh($o((()=>null==r?void 0:r.size))),s=Dh($o((()=>null==r?void 0:r.disabled))),l=Ho(!1),c=$o((()=>s.value||o.value&&n.value!==e.label?-1:0));return{radioRef:i,isGroup:o,radioGroup:r,focus:l,size:a,disabled:s,tabIndex:c,modelValue:n}},nv=["value","name","disabled"];var av=lf(ua(u(c({},{name:"ElRadio"}),{props:iv,emits:rv,setup(e,{emit:t}){const i=e,r=Nh("radio"),{radioRef:o,radioGroup:n,focus:a,size:s,disabled:l,modelValue:c}=ov(i,t);function u(){Ol((()=>t("change",c.value)))}return(e,t)=>{var i;return Ts(),Ps("label",{class:an([Yo(r).b(),Yo(r).is("disabled",Yo(l)),Yo(r).is("focus",Yo(a)),Yo(r).is("bordered",e.border),Yo(r).is("checked",Yo(c)===e.label),Yo(r).m(Yo(s))])},[Ns("span",{class:an([Yo(r).e("input"),Yo(r).is("disabled",Yo(l)),Yo(r).is("checked",Yo(c)===e.label)])},[$a(Ns("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":t[0]||(t[0]=e=>zo(c)?c.value=e:null),class:an(Yo(r).e("original")),value:e.label,name:e.name||(null==(i=Yo(n))?void 0:i.name),disabled:Yo(l),type:"radio",onFocus:t[1]||(t[1]=e=>a.value=!0),onBlur:t[2]||(t[2]=e=>a.value=!1),onChange:u},null,42,nv),[[Xc,Yo(c)]]),Ns("span",{class:an(Yo(r).e("inner"))},null,2)],2),Ns("span",{class:an(Yo(r).e("label")),onKeydown:t[3]||(t[3]=$c((()=>{}),["stop"]))},[Qs(e.$slots,"default",{},(()=>[Us(sn(e.label),1)]))],34)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const sv=oh(u(c({},tv),{name:{type:String,default:""}})),lv=["value","name","disabled"];var cv=lf(ua(u(c({},{name:"ElRadioButton"}),{props:sv,setup(e){const t=e,i=Nh("radio"),{radioRef:r,focus:o,size:n,disabled:a,modelValue:s,radioGroup:l}=ov(t),c=$o((()=>({backgroundColor:(null==l?void 0:l.fill)||"",borderColor:(null==l?void 0:l.fill)||"",boxShadow:(null==l?void 0:l.fill)?`-1px 0 0 0 ${l.fill}`:"",color:(null==l?void 0:l.textColor)||""})));return(e,t)=>{var u;return Ts(),Ps("label",{class:an([Yo(i).b("button"),Yo(i).is("active",Yo(s)===e.label),Yo(i).is("disabled",Yo(a)),Yo(i).is("focus",Yo(o)),Yo(i).bm("button",Yo(n))])},[$a(Ns("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":t[0]||(t[0]=e=>zo(s)?s.value=e:null),class:an(Yo(i).be("button","original-radio")),value:e.label,type:"radio",name:e.name||(null==(u=Yo(l))?void 0:u.name),disabled:Yo(a),onFocus:t[1]||(t[1]=e=>o.value=!0),onBlur:t[2]||(t[2]=e=>o.value=!1)},null,42,lv),[[Xc,Yo(s)]]),Ns("span",{class:an(Yo(i).be("button","inner")),style:tn(Yo(s)===e.label?Yo(c):{}),onKeydown:t[3]||(t[3]=$c((()=>{}),["stop"]))},[Qs(e.$slots,"default",{},(()=>[Us(sn(e.label),1)]))],38)],2)}}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const uv=oh({id:{type:String,default:void 0},size:Ih,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),dv=rv,pv=["id","aria-label","aria-labelledby"];var hv=lf(ua(u(c({},{name:"ElRadioGroup"}),{props:uv,emits:dv,setup(e,{emit:t}){const i=e,r=Nh("radio"),o=Uh(),n=Ho(),{formItem:a}=Fh(),{inputId:s,isLabeledByFormItem:l}=zh(i,{formItemContext:a});ya((()=>{const e=n.value.querySelectorAll("[type=radio]"),t=e[0];!Array.from(e).some((e=>e.checked))&&t&&(t.tabIndex=0)}));const d=$o((()=>i.name||o.value));return ea(Ch,Po(u(c({},Zo(i)),{changeEvent:e=>{t("update:modelValue",e),Ol((()=>t("change",e)))},name:d}))),Wl((()=>i.modelValue),(()=>{i.validateEvent&&(null==a||a.validate("change").catch((e=>{})))})),(e,t)=>(Ts(),Ps("div",{id:Yo(s),ref_key:"radioGroupRef",ref:n,class:an(Yo(r).b("group")),role:"radiogroup","aria-label":Yo(l)?void 0:e.label||"radio-group","aria-labelledby":Yo(l)?Yo(a).labelId:void 0},[Qs(e.$slots,"default")],10,pv))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);lh(av,{RadioButton:cv,RadioGroup:hv});const fv=ch(hv),mv=ch(cv);let gv=!1;function vv(e,t){if(!yd)return;const i=function(e){var i;null==(i=t.drag)||i.call(t,e)},r=function(e){var o;document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",i),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,gv=!1,null==(o=t.end)||o.call(t,e)},o=function(e){var o;gv||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",i),document.addEventListener("mouseup",r),document.addEventListener("touchmove",i),document.addEventListener("touchend",r),gv=!0,null==(o=t.start)||o.call(t,e))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o)}var _v=lf(ua({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=Nh("color-alpha-slider"),i=il(),r=Vo(null),o=Vo(null),n=Ho(0),a=Ho(0),s=Ho(null);function l(t){const o=i.vnode.el.getBoundingClientRect(),{clientX:n,clientY:a}=Wd(t);if(e.vertical){let t=a-o.top;t=Math.max(r.value.offsetHeight/2,t),t=Math.min(t,o.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((t-r.value.offsetHeight/2)/(o.height-r.value.offsetHeight)*100))}else{let t=n-o.left;t=Math.max(r.value.offsetWidth/2,t),t=Math.min(t,o.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((t-r.value.offsetWidth/2)/(o.width-r.value.offsetWidth)*100))}}function c(){n.value=function(){if(e.vertical)return 0;const t=i.vnode.el,o=e.color.get("alpha");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/100):0}(),a.value=function(){const t=i.vnode.el;if(!e.vertical)return 0;const o=e.color.get("alpha");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/100):0}(),s.value=function(){if(e.color&&e.color.value){const{r:t,g:i,b:r}=e.color.toRgb();return`linear-gradient(to right, rgba(${t}, ${i}, ${r}, 0) 0%, rgba(${t}, ${i}, ${r}, 1) 100%)`}return null}()}return Wl((()=>e.color.get("alpha")),(()=>{c()})),Wl((()=>e.color.value),(()=>{c()})),ya((()=>{const e={drag:e=>{l(e)},end:e=>{l(e)}};vv(o.value,e),vv(r.value,e),c()})),{thumb:r,bar:o,thumbLeft:n,thumbTop:a,background:s,handleClick:function(e){e.target!==r.value&&l(e)},update:c,ns:t}}}),[["render",function(e,t,i,r,o,n){return Ts(),Ps("div",{class:an([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Ns("div",{ref:"bar",class:an(e.ns.e("bar")),style:tn({background:e.background}),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,6),Ns("div",{ref:"thumb",class:an(e.ns.e("thumb")),style:tn({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);var bv=lf(ua({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Nh("color-hue-slider"),i=il(),r=Ho(null),o=Ho(null),n=Ho(0),a=Ho(0),s=$o((()=>e.color.get("hue")));function l(t){const o=i.vnode.el.getBoundingClientRect(),{clientX:n,clientY:a}=Wd(t);let s;if(e.vertical){let e=a-o.top;e=Math.min(e,o.height-r.value.offsetHeight/2),e=Math.max(r.value.offsetHeight/2,e),s=Math.round((e-r.value.offsetHeight/2)/(o.height-r.value.offsetHeight)*360)}else{let e=n-o.left;e=Math.min(e,o.width-r.value.offsetWidth/2),e=Math.max(r.value.offsetWidth/2,e),s=Math.round((e-r.value.offsetWidth/2)/(o.width-r.value.offsetWidth)*360)}e.color.set("hue",s)}function c(){n.value=function(){const t=i.vnode.el;if(e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetWidth-r.value.offsetWidth/2)/360):0}(),a.value=function(){const t=i.vnode.el;if(!e.vertical)return 0;const o=e.color.get("hue");return t?Math.round(o*(t.offsetHeight-r.value.offsetHeight/2)/360):0}()}return Wl((()=>s.value),(()=>{c()})),ya((()=>{const e={drag:e=>{l(e)},end:e=>{l(e)}};vv(o.value,e),vv(r.value,e),c()})),{bar:o,thumb:r,thumbLeft:n,thumbTop:a,hueValue:s,handleClick:function(e){e.target!==r.value&&l(e)},update:c,ns:t}}}),[["render",function(e,t,i,r,o,n){return Ts(),Ps("div",{class:an([e.ns.b(),e.ns.is("vertical",e.vertical)])},[Ns("div",{ref:"bar",class:an(e.ns.e("bar")),onClick:t[0]||(t[0]=(...t)=>e.handleClick&&e.handleClick(...t))},null,2),Ns("div",{ref:"thumb",class:an(e.ns.e("thumb")),style:tn({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const yv=Symbol(),wv=function(e,t,i){return[e,t*i/((e=(2-t)*i)<1?e:2-e)||0,e/2]},xv=function(e,t){var i;"string"==typeof(i=e)&&i.includes(".")&&1===Number.parseFloat(i)&&(e="100%");const r=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),r&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},Cv={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},kv=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),i=e%16;return`${Cv[t]||t}${Cv[i]||i}`},Tv=function({r:e,g:t,b:i}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+i)?"":`#${kv(e)}${kv(t)}${kv(i)}`},Ev={A:10,B:11,C:12,D:13,E:14,F:15},Av=function(e){return 2===e.length?16*(Ev[e[0].toUpperCase()]||+e[0])+(Ev[e[1].toUpperCase()]||+e[1]):Ev[e[1].toUpperCase()]||+e[1]},Sv=function(e,t,i){e=xv(e,255),t=xv(t,255),i=xv(i,255);const r=Math.max(e,t,i),o=Math.min(e,t,i);let n;const a=r,s=r-o,l=0===r?0:s/r;if(r===o)n=0;else{switch(r){case e:n=(t-i)/s+(t{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(e.includes("hsl")){const i=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3){const{h:e,s:r,v:o}=function(e,t,i){i/=100;let r=t/=100;const o=Math.max(i,.01);return t*=(i*=2)<=1?i:2-i,r*=o<=1?o:2-o,{h:e,s:100*(0===i?2*r/(o+r):2*t/(i+t)),v:(i+t)/2*100}}(i[0],i[1],i[2]);t(e,r,o)}}else if(e.includes("hsv")){const i=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3&&t(i[0],i[1],i[2])}else if(e.includes("rgb")){const i=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===i.length?this._alpha=100*Number.parseFloat(i[3]):3===i.length&&(this._alpha=100),i.length>=3){const{h:e,s:r,v:o}=Sv(i[0],i[1],i[2]);t(e,r,o)}}else if(e.includes("#")){const i=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(i))return;let r,o,n;3===i.length?(r=Av(i[0]+i[0]),o=Av(i[1]+i[1]),n=Av(i[2]+i[2])):6!==i.length&&8!==i.length||(r=Av(i.slice(0,2)),o=Av(i.slice(2,4)),n=Av(i.slice(4,6))),8===i.length?this._alpha=Av(i.slice(6))/255*100:3!==i.length&&6!==i.length||(this._alpha=100);const{h:a,s:s,v:l}=Sv(r,o,n);t(a,s,l)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:i,_alpha:r,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const r=wv(e,t/100,i/100);this.value=`hsla(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%, ${this.get("alpha")/100})`;break}case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(i)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${Tv(Pv(e,t,i))}${kv(255*r/100)}`;break;default:{const{r:r,g:o,b:n}=Pv(e,t,i);this.value=`rgba(${r}, ${o}, ${n}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const r=wv(e,t/100,i/100);this.value=`hsl(${e}, ${Math.round(100*r[1])}%, ${Math.round(100*r[2])}%)`;break}case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(i)}%)`;break;case"rgb":{const{r:r,g:o,b:n}=Pv(e,t,i);this.value=`rgb(${r}, ${o}, ${n})`;break}default:this.value=Tv(Pv(e,t,i))}}}const Mv=ua({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Nh("color-predefine"),{currentColor:i}=ta(yv),r=Ho(o(e.colors,e.color));function o(e,t){return e.map((e=>{const i=new Iv;return i.enableAlpha=!0,i.format="rgba",i.fromString(e),i.selected=i.value===t.value,i}))}return Wl((()=>i.value),(e=>{const t=new Iv;t.fromString(e),r.value.forEach((e=>{e.selected=t.compare(e)}))})),Hl((()=>{r.value=o(e.colors,e.color)})),{rgbaColors:r,handleSelect:function(t){e.color.fromString(e.colors[t])},ns:t}}}),Dv=["onClick"];var Lv=lf(Mv,[["render",function(e,t,i,r,o,n){return Ts(),Ps("div",{class:an(e.ns.b())},[Ns("div",{class:an(e.ns.e("colors"))},[(Ts(!0),Ps(bs,null,Ys(e.rgbaColors,((t,i)=>(Ts(),Ps("div",{key:e.colors[i],class:an([e.ns.e("color-selector"),e.ns.is("alpha",t._alpha<100),{selected:t.selected}]),onClick:t=>e.handleSelect(i)},[Ns("div",{style:tn({backgroundColor:t.value})},null,4)],10,Dv)))),128))],2)],2)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const Ov=ua({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Nh("color-svpanel"),i=il(),r=Ho(0),o=Ho(0),n=Ho("hsl(0, 100%, 50%)"),a=$o((()=>({hue:e.color.get("hue"),value:e.color.get("value")})));function s(){const t=e.color.get("saturation"),a=e.color.get("value"),s=i.vnode.el,{clientWidth:l,clientHeight:c}=s;o.value=t*l/100,r.value=(100-a)*c/100,n.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(t){const n=i.vnode.el.getBoundingClientRect(),{clientX:a,clientY:s}=Wd(t);let l=a-n.left,c=s-n.top;l=Math.max(0,l),l=Math.min(l,n.width),c=Math.max(0,c),c=Math.min(c,n.height),o.value=l,r.value=c,e.color.set({saturation:l/n.width*100,value:100-c/n.height*100})}return Wl((()=>a.value),(()=>{s()})),ya((()=>{vv(i.vnode.el,{drag:e=>{l(e)},end:e=>{l(e)}}),s()})),{cursorTop:r,cursorLeft:o,background:n,colorValue:a,handleDrag:l,update:s,ns:t}}}),Rv=[Ns("div",null,null,-1)];const Nv=ua({name:"ElColorPicker",components:{ElButton:Qg,ElTooltip:wg,ElInput:bf,ElIcon:uf,Close:Sp,ArrowDown:pp,SvPanel:lf(Ov,[["render",function(e,t,i,r,o,n){return Ts(),Ps("div",{class:an(e.ns.b()),style:tn({backgroundColor:e.background})},[Ns("div",{class:an(e.ns.e("white"))},null,2),Ns("div",{class:an(e.ns.e("black"))},null,2),Ns("div",{class:an(e.ns.e("cursor")),style:tn({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Rv,6)],6)}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]),HueSlider:bv,AlphaSlider:_v,Predefine:Lv},directives:{ClickOutside:$g},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:e=>["",...fh].includes(e)},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change","update:modelValue"],setup(e,{emit:t}){const{t:i}=Gh(),r=Nh("color"),{form:o,formItem:n}=Fh(),{inputId:a,isLabeledByFormItem:s}=zh(e,{formItemContext:n}),l=Ho(),c=Ho(),u=Ho(),d=Ho(null);let p=!0;const h=Po(new Iv({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),f=Ho(!1),m=Ho(!1),g=Ho(""),v=$o((()=>e.modelValue||m.value?function(e,t){if(!(e instanceof Iv))throw new TypeError("color should be instance of _color Class");const{r:i,g:r,b:o}=e.toRgb();return t?`rgba(${i}, ${r}, ${o}, ${e.get("alpha")/100})`:`rgb(${i}, ${r}, ${o})`}(h,e.showAlpha):"transparent")),_=Mh(),b=$o((()=>!(!e.disabled&&!(null==o?void 0:o.disabled)))),y=$o((()=>e.modelValue||m.value?h.value:"")),w=$o((()=>s.value?void 0:e.label||i("el.colorpicker.defaultLabel"))),x=$o((()=>s.value?null==n?void 0:n.labelId:void 0));Wl((()=>e.modelValue),(e=>{e?e&&e!==h.value&&(p=!1,h.fromString(e)):m.value=!1})),Wl((()=>y.value),(e=>{g.value=e,p&&t("active-change",e),p=!0})),Wl((()=>h.value),(()=>{e.modelValue||m.value||(m.value=!0)}));const C=md((function(e){f.value=e}),100);function k(){Ol((()=>{e.modelValue?h.fromString(e.modelValue):(h.value="",Ol((()=>{m.value=!1})))}))}return ya((()=>{e.modelValue&&(g.value=y.value)})),Wl((()=>f.value),(()=>{Ol((()=>{var e,t,i;null==(e=l.value)||e.update(),null==(t=c.value)||t.update(),null==(i=u.value)||i.update()}))})),ea(yv,{currentColor:y}),{color:h,colorDisabled:b,colorSize:_,displayedColor:v,showPanelColor:m,showPicker:f,customInput:g,buttonId:a,buttonAriaLabel:w,buttonAriaLabelledby:x,handleConfirm:function(){h.fromString(g.value)},hide:function(){C(!1),k()},handleTrigger:function(){b.value||C(!f.value)},clear:function(){C(!1),t("update:modelValue",null),t("change",null),null!==e.modelValue&&e.validateEvent&&(null==n||n.validate("change").catch((e=>{}))),k()},confirmValue:function(){const i=h.value;t("update:modelValue",i),t("change",i),e.validateEvent&&(null==n||n.validate("change").catch((e=>{}))),C(!1),Ol((()=>{const t=new Iv({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});h.compare(t)||k()}))},t:i,ns:r,hue:l,svPanel:c,alpha:u,popper:d}}}),Bv=["id","aria-label","aria-labelledby","aria-description","tabindex"];var jv=lf(Nv,[["render",function(e,t,i,r,o,n){const a=fs("hue-slider"),s=fs("sv-panel"),l=fs("alpha-slider"),c=fs("predefine"),u=fs("el-input"),d=fs("el-button"),p=fs("arrow-down"),h=fs("el-icon"),f=fs("close"),m=fs("el-tooltip"),g=vs("directives","click-outside");return Ts(),Is(m,{ref:"popper",visible:e.showPicker,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:""},{content:Zn((()=>[$a((Ts(),Ps("div",null,[Ns("div",{class:an(e.ns.be("dropdown","main-wrapper"))},[Bs(a,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),Bs(s,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(Ts(),Is(l,{key:0,ref:"alpha",color:e.color},null,8,["color"])):Fs("v-if",!0),e.predefine?(Ts(),Is(c,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):Fs("v-if",!0),Ns("div",{class:an(e.ns.be("dropdown","btns"))},[Ns("span",{class:an(e.ns.be("dropdown","value"))},[Bs(u,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=t=>e.customInput=t),"validate-event":!1,size:"small",onKeyup:tu(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),Bs(d,{class:an(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:Zn((()=>[Us(sn(e.t("el.colorpicker.clear")),1)])),_:1},8,["class","onClick"]),Bs(d,{plain:"",size:"small",class:an(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:Zn((()=>[Us(sn(e.t("el.colorpicker.confirm")),1)])),_:1},8,["class","onClick"])],2)])),[[g,e.hide]])])),default:Zn((()=>[Ns("div",{id:e.buttonId,class:an([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=tu(((...t)=>e.handleTrigger&&e.handleTrigger(...t)),["enter"]))},[e.colorDisabled?(Ts(),Ps("div",{key:0,class:an(e.ns.be("picker","mask"))},null,2)):Fs("v-if",!0),Ns("div",{class:an(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...t)=>e.handleTrigger&&e.handleTrigger(...t))},[Ns("span",{class:an([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[Ns("span",{class:an(e.ns.be("picker","color-inner")),style:tn({backgroundColor:e.displayedColor})},[$a(Bs(h,{class:an([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:Zn((()=>[Bs(p)])),_:1},8,["class"]),[[iu,e.modelValue||e.showPanelColor]]),e.modelValue||e.showPanelColor?Fs("v-if",!0):(Ts(),Is(h,{key:0,class:an([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:Zn((()=>[Bs(f)])),_:1},8,["class"]))],6)],2)],2)],42,Bv)])),_:1},8,["visible","popper-class","transition"])}],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);jv.install=e=>{e.component(jv.name,jv)};const Uv=jv,Fv={},zv=lh(ua({name:"ElConfigProvider",props:oh({a11y:{type:Boolean,default:!0},locale:{type:Object},size:Ih,button:{type:Object},experimentalFeatures:{type:Object},keyboardNavigation:{type:Boolean,default:!0},message:{type:Object},zIndex:Number,namespace:{type:String,default:"el"}}),setup(e,{slots:t}){Wl((()=>e.message),(e=>{Object.assign(Fv,null!=e?e:{})}),{immediate:!0,deep:!0});const i=((e,t,i=!1)=>{var r;const o=!!il(),n=o?Sh():void 0,a=null!=(r=null==t?void 0:t.provide)?r:o?ea:void 0;if(!a)return;const s=$o((()=>{const t=Yo(e);return(null==n?void 0:n.value)?Ph(n.value,t):t}));return a(bh,s),!i&&Ah.value||(Ah.value=s.value),s})(e);return()=>Qs(t,"default",{config:null==i?void 0:i.value})}}));const Hv=ua({name:"ElOverlay",props:oh({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:[String,Array,Object]},zIndex:{type:[String,Number]}}),emits:{click:e=>e instanceof MouseEvent},setup(e,{slots:t,emit:i}){const r=Nh("overlay"),{onClick:o,onMousedown:n,onMouseup:a}=Zh(e.customMaskEvent?void 0:e=>{i("click",e)});return()=>e.mask?Bs("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:o,onMousedown:n,onMouseup:a},[Qs(t,"default")],mh.STYLE|mh.CLASS|mh.PROPS,["onClick","onMouseup","onMousedown"]):Kl("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Qs(t,"default")])}}),Vv=oh({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:nh},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Wv=["aria-label"],Gv=["id"];var Yv=lf(ua(u(c({},{name:"ElDialogContent"}),{props:Vv,emits:{close:()=>!0},setup(e){const t=e,{t:i}=Gh(),{Close:r}=ah,{dialogRef:o,headerRef:n,bodyId:a,ns:s,style:l}=ta(yh),{focusTrapRef:c}=ta($m),u=((...e)=>t=>{e.forEach((e=>{Zd(e)?e(t):e.value=t}))})(c,o),d=$o((()=>t.draggable));return Oh(o,n,d),(e,t)=>(Ts(),Ps("div",{ref:Yo(u),class:an([Yo(s).b(),Yo(s).is("fullscreen",e.fullscreen),Yo(s).is("draggable",Yo(d)),Yo(s).is("align-center",e.alignCenter),{[Yo(s).m("center")]:e.center},e.customClass]),style:tn(Yo(l)),tabindex:"-1",onClick:t[1]||(t[1]=$c((()=>{}),["stop"]))},[Ns("header",{ref_key:"headerRef",ref:n,class:an(Yo(s).e("header"))},[Qs(e.$slots,"header",{},(()=>[Ns("span",{role:"heading",class:an(Yo(s).e("title"))},sn(e.title),3)])),e.showClose?(Ts(),Ps("button",{key:0,"aria-label":Yo(i)("el.dialog.close"),class:an(Yo(s).e("headerbtn")),type:"button",onClick:t[0]||(t[0]=t=>e.$emit("close"))},[Bs(Yo(uf),{class:an(Yo(s).e("close"))},{default:Zn((()=>[(Ts(),Is(gs(e.closeIcon||Yo(r))))])),_:1},8,["class"])],10,Wv)):Fs("v-if",!0)],2),Ns("div",{id:Yo(a),class:an(Yo(s).e("body"))},[Qs(e.$slots,"default")],10,Gv),e.$slots.footer?(Ts(),Ps("footer",{key:0,class:an(Yo(s).e("footer"))},[Qs(e.$slots,"footer")],2)):Fs("v-if",!0)],6))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const qv=oh(u(c({},Vv),{appendToBody:{type:Boolean,default:!1},beforeClose:{type:Function},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}})),Qv={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,"update:modelValue":e=>wd(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Zv=["aria-label","aria-labelledby","aria-describedby"];const Xv=lh(lf(ua(u(c({},{name:"ElDialog",inheritAttrs:!1}),{props:qv,emits:Qv,setup(e,{expose:t}){const i=e,r=Zl();Lh({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},$o((()=>!!r.title))),Lh({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},$o((()=>!!i.customClass)));const o=Nh("dialog"),n=Ho(),a=Ho(),s=Ho(),{visible:l,titleId:c,bodyId:u,style:d,overlayDialogStyle:p,rendered:h,zIndex:f,afterEnter:m,afterLeave:g,beforeLeave:v,handleClose:_,onModalClick:b,onOpenAutoFocus:y,onCloseAutoFocus:w,onCloseRequested:x}=((e,t)=>{const i=il().emit,{nextZIndex:r}=sf();let o="";const n=Uh(),a=Uh(),s=Ho(!1),l=Ho(!1),c=Ho(!1),u=Ho(e.zIndex||r());let d,p;const h=Sh("namespace","el"),f=$o((()=>{const t={},i=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(t[`${i}-margin-top`]=e.top),e.width&&(t[`${i}-width`]=ap(e.width))),t})),m=$o((()=>e.alignCenter?{display:"flex"}:{}));function g(){null==p||p(),null==d||d(),e.openDelay&&e.openDelay>0?({stop:d}=Ed((()=>b()),e.openDelay)):b()}function v(){null==d||d(),null==p||p(),e.closeDelay&&e.closeDelay>0?({stop:p}=Ed((()=>y()),e.closeDelay)):y()}function _(){e.beforeClose?e.beforeClose((function(e){e||(l.value=!0,s.value=!1)})):v()}function b(){yd&&(s.value=!0)}function y(){s.value=!1}return e.lockScroll&&Yh(s),Wl((()=>e.modelValue),(o=>{o?(l.value=!1,g(),c.value=!0,u.value=e.zIndex?u.value++:r(),Ol((()=>{i("open"),t.value&&(t.value.scrollTop=0)}))):s.value&&v()})),Wl((()=>e.fullscreen),(e=>{t.value&&(e?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)})),ya((()=>{e.modelValue&&(s.value=!0,c.value=!0,g())})),{afterEnter:function(){i("opened")},afterLeave:function(){i("closed"),i("update:modelValue",!1),e.destroyOnClose&&(c.value=!1)},beforeLeave:function(){i("close")},handleClose:_,onModalClick:function(){e.closeOnClickModal&&_()},close:v,doClose:y,onOpenAutoFocus:function(){i("openAutoFocus")},onCloseAutoFocus:function(){i("closeAutoFocus")},onCloseRequested:function(){e.closeOnPressEscape&&_()},titleId:n,bodyId:a,closed:l,style:f,overlayDialogStyle:m,rendered:c,visible:s,zIndex:u}})(i,n);ea(yh,{dialogRef:n,headerRef:a,bodyId:u,ns:o,rendered:h,style:d});const C=Zh(b),k=$o((()=>i.draggable&&!i.fullscreen));return t({visible:l,dialogContentRef:s}),(e,t)=>(Ts(),Is(hs,{to:"body",disabled:!e.appendToBody},[Bs(Bc,{name:"dialog-fade",onAfterEnter:Yo(m),onAfterLeave:Yo(g),onBeforeLeave:Yo(v),persisted:""},{default:Zn((()=>[$a(Bs(Yo(Hv),{"custom-mask-event":"",mask:e.modal,"overlay-class":e.modalClass,"z-index":Yo(f)},{default:Zn((()=>[Ns("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:Yo(c),"aria-describedby":Yo(u),class:an(`${Yo(o).namespace.value}-overlay-dialog`),style:tn(Yo(p)),onClick:t[0]||(t[0]=(...e)=>Yo(C).onClick&&Yo(C).onClick(...e)),onMousedown:t[1]||(t[1]=(...e)=>Yo(C).onMousedown&&Yo(C).onMousedown(...e)),onMouseup:t[2]||(t[2]=(...e)=>Yo(C).onMouseup&&Yo(C).onMouseup(...e))},[Bs(Yo(eg),{loop:"",trapped:Yo(l),"focus-start-el":"container",onFocusAfterTrapped:Yo(y),onFocusAfterReleased:Yo(w),onReleaseRequested:Yo(x)},{default:Zn((()=>[Yo(h)?(Ts(),Is(Yv,Ws({key:0,ref_key:"dialogContentRef",ref:s},e.$attrs,{"custom-class":e.customClass,center:e.center,"align-center":e.alignCenter,"close-icon":e.closeIcon,draggable:Yo(k),fullscreen:e.fullscreen,"show-close":e.showClose,title:e.title,onClose:Yo(_)}),qs({header:Zn((()=>[e.$slots.title?Qs(e.$slots,"title",{key:1}):Qs(e.$slots,"header",{key:0,close:Yo(_),titleId:Yo(c),titleClass:Yo(o).e("title")})])),default:Zn((()=>[Qs(e.$slots,"default")])),_:2},[e.$slots.footer?{name:"footer",fn:Zn((()=>[Qs(e.$slots,"footer")]))}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):Fs("v-if",!0)])),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,Zv)])),_:3},8,["mask","overlay-class","z-index"]),[[iu,Yo(l)]])])),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]])),Kv=oh({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Ih,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>null===e||xd(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Jv={change:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,input:e=>xd(e)||vd(e),"update:modelValue":e=>xd(e)||vd(e)},$v=["aria-label","onKeydown"],e_=["aria-label","onKeydown"];const t_=lh(lf(ua(u(c({},{name:"ElInputNumber"}),{props:Kv,emits:Jv,setup(e,{expose:t,emit:i}){const r=e,{t:o}=Gh(),n=Nh("input-number"),a=Ho(),s=Po({currentValue:r.modelValue,userInput:null}),{formItem:l}=Fh(),c=$o((()=>xd(r.modelValue)&&_(r.modelValue,-1)xd(r.modelValue)&&_(r.modelValue)>r.max)),d=$o((()=>{const e=v(r.step);return ep(r.precision)?Math.max(v(r.modelValue),e):(r.precision,r.precision)})),p=$o((()=>r.controls&&"right"===r.controlsPosition)),h=Mh(),f=Dh(),m=$o((()=>{if(null!==s.userInput)return s.userInput;let e=s.currentValue;if(vd(e))return"";if(xd(e)){if(Number.isNaN(e))return"";ep(r.precision)||(e=e.toFixed(r.precision))}return e})),g=(e,t)=>{if(ep(t)&&(t=d.value),0===t)return Math.round(e);let i=String(e);const r=i.indexOf(".");if(-1===r)return e;if(!i.replace(".","").split("")[r+t])return e;const o=i.length;return"5"===i.charAt(o-1)&&(i=`${i.slice(0,Math.max(0,o-1))}6`),Number.parseFloat(Number(i).toFixed(t))},v=e=>{if(vd(e))return 0;const t=e.toString(),i=t.indexOf(".");let r=0;return-1!==i&&(r=t.length-i-1),r},_=(e,t=1)=>xd(e)?g(e+r.step*t):s.currentValue,b=()=>{if(r.readonly||f.value||u.value)return;const e=r.modelValue||0,t=_(e);x(t)},y=()=>{if(r.readonly||f.value||c.value)return;const e=r.modelValue||0,t=_(e,-1);x(t)},w=(e,t)=>{const{max:o,min:n,step:a,precision:s,stepStrictly:l,valueOnClear:c}=r;let u=Number(e);if(vd(e)||Number.isNaN(u))return null;if(""===e){if(null===c)return null;u=Xd(c)?{min:n,max:o}[c]:c}return l&&(u=g(Math.round(u/a)*a,s)),ep(s)||(u=g(u,s)),(u>o||uo?o:n,t&&i("update:modelValue",u)),u},x=e=>{var t;const o=s.currentValue,n=w(e);o!==n&&(s.userInput=null,i("update:modelValue",n),i("input",n),i("change",n,o),r.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"change").catch((e=>{}))),s.currentValue=n)},C=e=>s.userInput=e,k=e=>{const t=""!==e?Number(e):"";(xd(t)&&!Number.isNaN(t)||""===e)&&x(t),s.userInput=null},T=e=>{i("focus",e)},E=e=>{var t;i("blur",e),r.validateEvent&&(null==(t=null==l?void 0:l.validate)||t.call(l,"blur").catch((e=>{})))};return Wl((()=>r.modelValue),(e=>{s.currentValue=w(e,!0),s.userInput=null}),{immediate:!0}),ya((()=>{var e;const{min:t,max:o,modelValue:n}=r,l=null==(e=a.value)?void 0:e.input;if(l.setAttribute("role","spinbutton"),Number.isFinite(o)?l.setAttribute("aria-valuemax",String(o)):l.removeAttribute("aria-valuemax"),Number.isFinite(t)?l.setAttribute("aria-valuemin",String(t)):l.removeAttribute("aria-valuemin"),l.setAttribute("aria-valuenow",String(s.currentValue)),l.setAttribute("aria-disabled",String(f.value)),!xd(n)&&null!=n){let e=Number(n);Number.isNaN(e)&&(e=null),i("update:modelValue",e)}})),xa((()=>{var e;const t=null==(e=a.value)?void 0:e.input;null==t||t.setAttribute("aria-valuenow",`${s.currentValue}`)})),t({focus:()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.focus)||t.call(e)},blur:()=>{var e,t;null==(t=null==(e=a.value)?void 0:e.blur)||t.call(e)}}),(e,t)=>(Ts(),Ps("div",{class:an([Yo(n).b(),Yo(n).m(Yo(h)),Yo(n).is("disabled",Yo(f)),Yo(n).is("without-controls",!e.controls),Yo(n).is("controls-right",Yo(p))]),onDragstart:t[0]||(t[0]=$c((()=>{}),["prevent"]))},[e.controls?$a((Ts(),Ps("span",{key:0,role:"button","aria-label":Yo(o)("el.inputNumber.decrease"),class:an([Yo(n).e("decrease"),Yo(n).is("disabled",Yo(c))]),onKeydown:tu(y,["enter"])},[Bs(Yo(uf),null,{default:Zn((()=>[Yo(p)?(Ts(),Is(Yo(pp),{key:0})):(Ts(),Is(Yo(Qp),{key:1}))])),_:1})],42,$v)),[[Yo(ev),y]]):Fs("v-if",!0),e.controls?$a((Ts(),Ps("span",{key:1,role:"button","aria-label":Yo(o)("el.inputNumber.increase"),class:an([Yo(n).e("increase"),Yo(n).is("disabled",Yo(u))]),onKeydown:tu(b,["enter"])},[Bs(Yo(uf),null,{default:Zn((()=>[Yo(p)?(Ts(),Is(Yo(gp),{key:0})):(Ts(),Is(Yo(Jp),{key:1}))])),_:1})],42,e_)),[[Yo(ev),b]]):Fs("v-if",!0),Bs(Yo(bf),{id:e.id,ref_key:"input",ref:a,type:"number",step:e.step,"model-value":Yo(m),placeholder:e.placeholder,readonly:e.readonly,disabled:Yo(f),size:Yo(h),max:e.max,min:e.min,name:e.name,label:e.label,"validate-event":!1,onKeydown:[tu($c(b,["prevent"]),["up"]),tu($c(y,["prevent"]),["down"])],onBlur:E,onFocus:T,onInput:C,onChange:k},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}})),[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]])); /*! Element Plus v2.2.16 */var i_,r_,o_={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}},n_={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}}; /*! Element Plus v2.2.16 */i_="undefined"!=typeof window?window:ce,r_=function(e,t){var i=[],r=Object.getPrototypeOf,o=i.slice,n=function(e){return i.concat.apply([],e)},a=i.push,s=i.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,p=d.call(Object),h={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function _(e,t,i){var r,o,n=(i=i||g).createElement("script");if(n.text=e,t)for(r in v)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&n.setAttribute(r,o);i.head.appendChild(n).parentNode.removeChild(n)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var y="3.6.3",w=function(e,t){return new w.fn.init(e,t)};function x(e){var t=!!e&&"length"in e&&e.length,i=b(e);return!f(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:y,constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(w.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),G=new RegExp(B+"|>"),Y=new RegExp(F),q=new RegExp("^"+j+"$"),Q={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){p()},ae=ye((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{L.apply(I=O.call(w.childNodes),w.childNodes),I[w.childNodes.length].nodeType}catch(Te){L={apply:I.length?function(e,t){D.apply(e,O.call(t))}:function(e,t){for(var i=e.length,r=0;e[i++]=t[r++];);e.length=i-1}}}function se(e,t,r,o){var n,s,c,u,d,f,v,_=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!o&&(p(t),t=t||h,m)){if(11!==w&&(d=$.exec(e)))if(n=d[1]){if(9===w){if(!(c=t.getElementById(n)))return r;if(c.id===n)return r.push(c),r}else if(_&&(c=_.getElementById(n))&&b(t,c)&&c.id===n)return r.push(c),r}else{if(d[2])return L.apply(r,t.getElementsByTagName(e)),r;if((n=d[3])&&i.getElementsByClassName&&t.getElementsByClassName)return L.apply(r,t.getElementsByClassName(n)),r}if(i.qsa&&!A[e+" "]&&(!g||!g.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,_=t,1===w&&(G.test(e)||W.test(e))){for((_=ee.test(e)&&ve(t.parentNode)||t)===t&&i.scope||((u=t.getAttribute("id"))?u=u.replace(re,oe):t.setAttribute("id",u=y)),s=(f=a(e)).length;s--;)f[s]=(u?"#"+u:":scope")+" "+be(f[s]);v=f.join(",")}try{if(i.cssSupportsSelector&&!CSS.supports("selector(:is("+v+"))"))throw new Error;return L.apply(r,_.querySelectorAll(v)),r}catch(x){A(e,!0)}finally{u===y&&t.removeAttribute("id")}}}return l(e.replace(H,"$1"),t,r,o)}function le(){var e=[];return function t(i,o){return e.push(i+" ")>r.cacheLength&&delete t[e.shift()],t[i+" "]=o}}function ce(e){return e[y]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(Te){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var i=e.split("|"),o=i.length;o--;)r.attrHandle[i[o]]=t}function pe(e,t){var i=t&&e,r=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ce((function(t){return t=+t,ce((function(i,r){for(var o,n=e([],i.length,t),a=n.length;a--;)i[o=n[a]]&&(i[o]=!(r[o]=i[o]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=se.support={},n=se.isXML=function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!Z.test(t||i&&i.nodeName||"HTML")},p=se.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!=h&&9===a.nodeType&&a.documentElement?(f=(h=a).documentElement,m=!n(h),w!=h&&(o=h.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",ne,!1):o.attachEvent&&o.attachEvent("onunload",ne)),i.scope=ue((function(e){return f.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.cssSupportsSelector=ue((function(){return CSS.supports("selector(*)")&&h.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),i.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=J.test(h.getElementsByClassName),i.getById=ue((function(e){return f.appendChild(e).id=y,!h.getElementsByName||!h.getElementsByName(y).length})),i.getById?(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i=t.getElementById(e);return i?[i]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var i,r,o,n=t.getElementById(e);if(n){if((i=n.getAttributeNode("id"))&&i.value===e)return[n];for(o=t.getElementsByName(e),r=0;n=o[r++];)if((i=n.getAttributeNode("id"))&&i.value===e)return[n]}return[]}}),r.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,r=[],o=0,n=t.getElementsByTagName(e);if("*"===e){for(;i=n[o++];)1===i.nodeType&&r.push(i);return r}return n},r.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(i.qsa=J.test(h.querySelectorAll))&&(ue((function(e){var t;f.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+N+")"),e.querySelectorAll("[id~="+y+"-]").length||g.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+y+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=J.test(_=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ue((function(e){i.disconnectedMatch=_.call(e,"*"),_.call(e,"[s!='']:x"),v.push("!=",F)})),i.cssSupportsSelector||g.push(":has"),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(f.compareDocumentPosition),b=t||J.test(f.contains)?function(e,t){var i=9===e.nodeType&&e.documentElement||e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(i.contains?i.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==w&&b(w,e)?-1:t==h||t.ownerDocument==w&&b(w,t)?1:u?R(u,e)-R(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var i,r=0,o=e.parentNode,n=t.parentNode,a=[e],s=[t];if(!o||!n)return e==h?-1:t==h?1:o?-1:n?1:u?R(u,e)-R(u,t):0;if(o===n)return pe(e,t);for(i=e;i=i.parentNode;)a.unshift(i);for(i=t;i=i.parentNode;)s.unshift(i);for(;a[r]===s[r];)r++;return r?pe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),i.matchesSelector&&m&&!A[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var r=_.call(e,t);if(r||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Te){A(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&p(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&p(e);var o=r.attrHandle[t.toLowerCase()],n=o&&P.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==n?n:i.attributes||!m?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},se.escape=function(e){return(e+"").replace(re,oe)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],o=0,n=0;if(d=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(S),d){for(;t=e[n++];)t===e[n]&&(o=r.push(n));for(;o--;)e.splice(r[o],1)}return u=null,e},o=se.getText=function(e){var t,i="",r=0,n=e.nodeType;if(n){if(1===n||9===n||11===n){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=o(e)}else if(3===n||4===n)return e.nodeValue}else for(;t=e[r++];)i+=o(t);return i},(r=se.selectors={cacheLength:50,createPseudo:ce,match:Q,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return Q.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&Y.test(i)&&(t=a(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+B+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(r){var o=se.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===i:"!="===t?o!==i:"^="===t?i&&0===o.indexOf(i):"*="===t?i&&o.indexOf(i)>-1:"$="===t?i&&o.slice(-i.length)===i:"~="===t?(" "+o.replace(z," ")+" ").indexOf(i)>-1:"|="===t&&(o===i||o.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,r,o){var n="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,i,l){var c,u,d,p,h,f,m=n!==a?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),_=!l&&!s,b=!1;if(g){if(n){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[a?g.firstChild:g.lastChild],a&&_){for(b=(h=(c=(u=(d=(p=g)[y]||(p[y]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],p=h&&g.childNodes[h];p=++h&&p&&p[m]||(b=h=0)||f.pop();)if(1===p.nodeType&&++b&&p===t){u[e]=[x,h,b];break}}else if(_&&(b=h=(c=(u=(d=(p=t)[y]||(p[y]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===b)for(;(p=++h&&p&&p[m]||(b=h=0)||f.pop())&&((s?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(_&&((u=(d=p[y]||(p[y]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[x,b]),p!==t)););return(b-=o)===r||b%r==0&&b/r>=0}}},PSEUDO:function(e,t){var i,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return o[y]?o(t):o.length>1?(i=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,i){for(var r,n=o(e,t),a=n.length;a--;)e[r=R(e,n[a])]=!(i[r]=n[a])})):function(e){return o(e,0,i)}):o}},pseudos:{not:ce((function(e){var t=[],i=[],r=s(e.replace(H,"$1"));return r[y]?ce((function(e,t,i,o){for(var n,a=r(e,null,o,[]),s=e.length;s--;)(n=a[s])&&(e[s]=!(t[s]=n))})):function(e,o,n){return t[0]=e,r(t,null,n,i),t[0]=null,!i.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return q.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,i){return[i<0?i+t:i]})),even:ge((function(e,t){for(var i=0;it?t:i;--r>=0;)e.push(r);return e})),gt:ge((function(e,t,i){for(var r=i<0?i+t:i;++r1?function(t,i,r){for(var o=e.length;o--;)if(!e[o](t,i,r))return!1;return!0}:e[0]}function xe(e,t,i,r,o){for(var n,a=[],s=0,l=e.length,c=null!=t;s-1&&(n[c]=!(a[c]=d))}}else v=xe(v===a?v.splice(f,v.length):v),o?o(null,a,v,l):L.apply(a,v)}))}function ke(e){for(var t,i,o,n=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=ye((function(e){return e===t}),s,!0),d=ye((function(e){return R(t,e)>-1}),s,!0),p=[function(e,i,r){var o=!a&&(r||i!==c)||((t=i).nodeType?u(e,i,r):d(e,i,r));return t=null,o}];l1&&we(p),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(H,"$1"),i,l0,o=e.length>0,n=function(n,a,s,l,u){var d,f,g,v=0,_="0",b=n&&[],y=[],w=c,C=n||o&&r.find.TAG("*",u),k=x+=null==w?1:Math.random()||.1,T=C.length;for(u&&(c=a==h||a||u);_!==T&&null!=(d=C[_]);_++){if(o&&d){for(f=0,a||d.ownerDocument==h||(p(d),s=!m);g=e[f++];)if(g(d,a||h,s)){l.push(d);break}u&&(x=k)}i&&((d=!g&&d)&&v--,n&&b.push(d))}if(v+=_,i&&_!==v){for(f=0;g=t[f++];)g(b,y,a,s);if(n){if(v>0)for(;_--;)b[_]||y[_]||(y[_]=M.call(l));y=xe(y)}L.apply(l,y),u&&!n&&y.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(x=k,c=w),b};return i?ce(n):n}(n,o))).selector=e}return s},l=se.select=function(e,t,i,o){var n,l,c,u,d,p="function"==typeof e&&e,h=!o&&a(e=p.selector||e);if(i=i||[],1===h.length){if((l=h[0]=h[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(n=Q.needsContext.test(e)?0:l.length;n--&&(c=l[n],!r.relative[u=c.type]);)if((d=r.find[u])&&(o=d(c.matches[0].replace(te,ie),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(n,1),!(e=o.length&&be(l)))return L.apply(i,o),i;break}}return(p||s(e,h))(o,t,!m,i,!t||ee.test(e)&&ve(t.parentNode)||t),i},i.sortStable=y.split("").sort(S).join("")===y,i.detectDuplicates=!!d,p(),i.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&ue((function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(N,(function(e,t,i){var r;if(!i)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(e);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var k=function(e,t,i){for(var r=[],o=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&w(e).is(i))break;r.push(e)}return r},T=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},E=w.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,i){return f(t)?w.grep(e,(function(e,r){return!!t.call(e,r,e)!==i})):t.nodeType?w.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?w.grep(e,(function(e){return s.call(t,e)>-1!==i})):w.filter(t,e,i)}w.filter=function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?w.find.matchesSelector(r,e)?[r]:[]:w.find.matches(e,w.grep(t,(function(e){return 1===e.nodeType})))},w.fn.extend({find:function(e){var t,i,r=this.length,o=this;if("string"!=typeof e)return this.pushStack(w(e).filter((function(){for(t=0;t1?w.uniqueSort(i):i},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&E.test(e)?w(e):e||[],!1).length}});var I,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,i){var r,o;if(!e)return this;if(i=i||I,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!r[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),S.test(r[1])&&w.isPlainObject(t))for(r in t)f(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=g.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==i.ready?i.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,I=w(g);var D=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),i=t.length;return this.filter((function(){for(var e=0;e-1:1===i.nodeType&&w.find.matchesSelector(i,e))){n.push(i);break}return this.pushStack(n.length>1?w.uniqueSort(n):n)},index:function(e){return e?"string"==typeof e?s.call(w(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return k(e,"parentNode")},parentsUntil:function(e,t,i){return k(e,"parentNode",i)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return k(e,"nextSibling")},prevAll:function(e){return k(e,"previousSibling")},nextUntil:function(e,t,i){return k(e,"nextSibling",i)},prevUntil:function(e,t,i){return k(e,"previousSibling",i)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},(function(e,t){w.fn[e]=function(i,r){var o=w.map(this,t,i);return"Until"!==e.slice(-5)&&(r=i),r&&"string"==typeof r&&(o=w.filter(r,o)),this.length>1&&(L[e]||w.uniqueSort(o),D.test(e)&&o.reverse()),this.pushStack(o)}}));var R=/[^\x20\t\r\n\f]+/g;function N(e){return e}function B(e){throw e}function j(e,t,i,r){var o;try{e&&f(o=e.promise)?o.call(e).done(t).fail(i):e&&f(o=e.then)?o.call(e,t,i):t.apply(void 0,[e].slice(r))}catch(n){i.apply(void 0,[n])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(R)||[],(function(e,i){t[i]=!0})),t}(e):w.extend({},e);var t,i,r,o,n=[],a=[],s=-1,l=function(){for(o=o||e.once,r=t=!0;a.length;s=-1)for(i=a.shift();++s-1;)n.splice(i,1),i<=s&&s--})),this},has:function(e){return e?w.inArray(e,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return o=a=[],n=i="",this},disabled:function(){return!n},lock:function(){return o=a=[],i||t||(n=i=""),this},locked:function(){return!!o},fireWith:function(e,i){return o||(i=[e,(i=i||[]).slice?i.slice():i],a.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},w.extend({Deferred:function(t){var i=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],r="pending",o={state:function(){return r},always:function(){return n.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return w.Deferred((function(t){w.each(i,(function(i,r){var o=f(e[r[4]])&&e[r[4]];n[r[1]]((function(){var e=o&&o.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(t,r,o){var n=0;function a(t,i,r,o){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t=n&&(r!==B&&(s=void 0,l=[e]),i.rejectWith(s,l))}};t?u():(w.Deferred.getStackHook&&(u.stackTrace=w.Deferred.getStackHook()),e.setTimeout(u))}}return w.Deferred((function(e){i[0][3].add(a(0,e,f(o)?o:N,e.notifyWith)),i[1][3].add(a(0,e,f(t)?t:N)),i[2][3].add(a(0,e,f(r)?r:B))})).promise()},promise:function(e){return null!=e?w.extend(e,o):o}},n={};return w.each(i,(function(e,t){var a=t[2],s=t[5];o[t[1]]=a.add,s&&a.add((function(){r=s}),i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),a.add(t[3].fire),n[t[0]]=function(){return n[t[0]+"With"](this===n?void 0:this,arguments),this},n[t[0]+"With"]=a.fireWith})),o.promise(n),t&&t.call(n,n),n},when:function(e){var t=arguments.length,i=t,r=Array(i),n=o.call(arguments),a=w.Deferred(),s=function(e){return function(i){r[e]=this,n[e]=arguments.length>1?o.call(arguments):i,--t||a.resolveWith(r,n)}};if(t<=1&&(j(e,a.done(s(i)).resolve,a.reject,!t),"pending"===a.state()||f(n[i]&&n[i].then)))return a.then();for(;i--;)j(n[i],s(i),a.reject);return a.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&U.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},w.readyException=function(t){e.setTimeout((function(){throw t}))};var F=w.Deferred();function z(){g.removeEventListener("DOMContentLoaded",z),e.removeEventListener("load",z),w.ready()}w.fn.ready=function(e){return F.then(e).catch((function(e){w.readyException(e)})),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||F.resolveWith(g,[w]))}}),w.ready.then=F.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(w.ready):(g.addEventListener("DOMContentLoaded",z),e.addEventListener("load",z));var H=function(e,t,i,r,o,n,a){var s=0,l=e.length,c=null==i;if("object"===b(i))for(s in o=!0,i)H(e,t,s,i[s],!0,n,a);else if(void 0!==r&&(o=!0,f(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,i){return c.call(w(e),i)})),t))for(;s1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),w.extend({queue:function(e,t,i){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),i&&(!r||Array.isArray(i)?r=Z.access(e,t,w.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=w.queue(e,t),r=i.length,o=i.shift(),n=w._queueHooks(e,t);"inprogress"===o&&(o=i.shift(),r--),o&&("fx"===t&&i.unshift("inprogress"),delete n.stop,o.call(e,(function(){w.dequeue(e,t)}),n)),!r&&n&&n.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Z.get(e,i)||Z.access(e,i,{empty:w.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",i])}))})}}),w.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]*)/i,me=/^$|^module$|\/(?:java|ecma)script/i;de=g.createDocumentFragment().appendChild(g.createElement("div")),(pe=g.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),de.appendChild(pe),h.checkClone=de.cloneNode(!0).cloneNode(!0).lastChild.checked,de.innerHTML="",h.noCloneChecked=!!de.cloneNode(!0).lastChild.defaultValue,de.innerHTML="",h.option=!!de.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?w.merge([e],i):i}function _e(e,t){for(var i=0,r=e.length;i",""]);var be=/<|&#?\w+;/;function ye(e,t,i,r,o){for(var n,a,s,l,c,u,d=t.createDocumentFragment(),p=[],h=0,f=e.length;h-1)o&&o.push(n);else if(c=oe(n),a=ve(d.appendChild(n),"script"),c&&_e(a),i)for(u=0;n=a[u++];)me.test(n.type||"")&&i.push(n);return d}var we=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function Ce(){return!1}function ke(e,t){return e===function(){try{return g.activeElement}catch(e){}}()==("focus"===t)}function Te(e,t,i,r,o,n){var a,s;if("object"==typeof t){for(s in"string"!=typeof i&&(r=r||i,i=void 0),t)Te(e,s,i,r,t[s],n);return e}if(null==r&&null==o?(o=i,r=i=void 0):null==o&&("string"==typeof i?(o=r,r=void 0):(o=r,r=i,i=void 0)),!1===o)o=Ce;else if(!o)return e;return 1===n&&(a=o,(o=function(e){return w().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),e.each((function(){w.event.add(this,t,o,r,i)}))}function Ee(e,t,i){i?(Z.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var r,n,a=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),Z.set(this,t,a),r=i(this,t),this[t](),a!==(n=Z.get(this,t))||r?Z.set(this,t,!1):n={},a!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else a.length&&(Z.set(this,t,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&w.event.add(e,t,xe)}w.event={global:{},add:function(e,t,i,r,o){var n,a,s,l,c,u,d,p,h,f,m,g=Z.get(e);if(q(e))for(i.handler&&(i=(n=i).handler,o=n.selector),o&&w.find.matchesSelector(re,o),i.guid||(i.guid=w.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(R)||[""]).length;c--;)h=m=(s=we.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h&&(d=w.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,d=w.event.special[h]||{},u=w.extend({type:h,origType:m,data:r,handler:i,guid:i.guid,selector:o,needsContext:o&&w.expr.match.needsContext.test(o),namespace:f.join(".")},n),(p=l[h])||((p=l[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,f,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),o?p.splice(p.delegateCount++,0,u):p.push(u),w.event.global[h]=!0)},remove:function(e,t,i,r,o){var n,a,s,l,c,u,d,p,h,f,m,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(R)||[""]).length;c--;)if(h=m=(s=we.exec(t[c])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=w.event.special[h]||{},p=l[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=n=p.length;n--;)u=p[n],!o&&m!==u.origType||i&&i.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(n,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||w.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)w.event.remove(e,h+t[c],i,r,!0);w.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,i,r,o,n,a,s=new Array(arguments.length),l=w.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=w.event.special[l.type]||{};for(s[0]=l,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(n=[],a={},i=0;i-1:w.find(o,this,null,[c]).length),a[o]&&n.push(r);n.length&&s.push({elem:c,handlers:n})}return c=this,l\s*$/g;function Ie(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function De(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var i,r,o,n,a,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(o in Z.remove(t,"handle events"),s)for(i=0,r=s[o].length;i1&&"string"==typeof g&&!h.checkClone&&Se.test(g))return e.each((function(o){var n=e.eq(o);v&&(t[0]=g.call(this,o,n.html())),Oe(n,t,i,r)}));if(p&&(a=(o=ye(t,e[0].ownerDocument,!1,e,r)).firstChild,1===o.childNodes.length&&(o=a),a||r)){for(l=(s=w.map(ve(o,"script"),Me)).length;d0&&_e(a,!d&&ve(e,"script")),u},cleanData:function(e){for(var t,i,r,o=w.event.special,n=0;void 0!==(i=e[n]);n++)if(q(i)){if(t=i[Z.expando]){if(t.events)for(r in t.events)o[r]?w.event.remove(i,r):w.removeEvent(i,r,t.handle);i[Z.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return H(this,(function(e){return void 0===e?w.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Oe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)}))},prepend:function(){return Oe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Oe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ve(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return w.clone(this,e,t)}))},html:function(e){return H(this,(function(e){var t=this[0]||{},i=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!ge[(fe.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;i=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-n-l-s-.5))||0),l}function $e(e,t,i){var r=je(e),o=(!h.boxSizingReliable()||i)&&"border-box"===w.css(e,"boxSizing",!1,r),n=o,a=He(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ne.test(a)){if(!i)return a;a="auto"}return(!h.boxSizingReliable()&&o||!h.reliableTrDimensions()&&A(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(e,"display",!1,r))&&e.getClientRects().length&&(o="border-box"===w.css(e,"boxSizing",!1,r),(n=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+Je(e,t,i||(o?"border":"content"),n,r,a)+"px"}function et(e,t,i,r,o){return new et.prototype.init(e,t,i,r,o)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=He(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,n,a,s=Y(t),l=Be.test(t),c=e.style;if(l||(t=qe(s)),a=w.cssHooks[t]||w.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"==(n=typeof i)&&(o=te.exec(i))&&o[1]&&(i=se(e,t,o),n="number"),null!=i&&i==i&&("number"!==n||l||(i+=o&&o[3]||(w.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(i=a.set(e,i,r))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,r){var o,n,a,s=Y(t);return Be.test(t)||(t=qe(s)),(a=w.cssHooks[t]||w.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,i)),void 0===o&&(o=He(e,t,r)),"normal"===o&&t in Xe&&(o=Xe[t]),""===i||i?(n=parseFloat(o),!0===i||isFinite(n)?n||0:o):o}}),w.each(["height","width"],(function(e,t){w.cssHooks[t]={get:function(e,i,r){if(i)return!Qe.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?$e(e,t,r):Ue(e,Ze,(function(){return $e(e,t,r)}))},set:function(e,i,r){var o,n=je(e),a=!h.scrollboxSize()&&"absolute"===n.position,s=(a||r)&&"border-box"===w.css(e,"boxSizing",!1,n),l=r?Je(e,t,r,s,n):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(n[t])-Je(e,t,"border",!1,n)-.5)),l&&(o=te.exec(i))&&"px"!==(o[3]||"px")&&(e.style[t]=i,i=w.css(e,t)),Ke(0,i,l)}}})),w.cssHooks.marginLeft=Ve(h.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),w.each({margin:"",padding:"",border:"Width"},(function(e,t){w.cssHooks[e+t]={expand:function(i){for(var r=0,o={},n="string"==typeof i?i.split(" "):[i];r<4;r++)o[e+ie[r]+t]=n[r]||n[r-2]||n[0];return o}},"margin"!==e&&(w.cssHooks[e+t].set=Ke)})),w.fn.extend({css:function(e,t){return H(this,(function(e,t,i){var r,o,n={},a=0;if(Array.isArray(t)){for(r=je(e),o=t.length;a1)}}),w.Tween=et,et.prototype={constructor:et,init:function(e,t,i,r,o,n){this.elem=e,this.prop=i,this.easing=o||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=n||(w.cssNumber[i]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,i=et.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[qe(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=et.prototype.init,w.fx.step={};var tt,it,rt=/^(?:toggle|show|hide)$/,ot=/queueHooks$/;function nt(){it&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(nt):e.setTimeout(nt,w.fx.interval),w.fx.tick())}function at(){return e.setTimeout((function(){tt=void 0})),tt=Date.now()}function st(e,t){var i,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(i=ie[r])]=o["padding"+i]=e;return t&&(o.opacity=o.width=e),o}function lt(e,t,i){for(var r,o=(ct.tweeners[t]||[]).concat(ct.tweeners["*"]),n=0,a=o.length;n1)},removeAttr:function(e){return this.each((function(){w.removeAttr(this,e)}))}}),w.extend({attr:function(e,t,i){var r,o,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return void 0===e.getAttribute?w.prop(e,t,i):(1===n&&w.isXMLDoc(e)||(o=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?ut:void 0)),void 0!==i?null===i?void w.removeAttr(e,t):o&&"set"in o&&void 0!==(r=o.set(e,i,t))?r:(e.setAttribute(t,i+""),i):o&&"get"in o&&null!==(r=o.get(e,t))?r:null==(r=w.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&A(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,r=0,o=t&&t.match(R);if(o&&1===e.nodeType)for(;i=o[r++];)e.removeAttribute(i)}}),ut={set:function(e,t,i){return!1===t?w.removeAttr(e,i):e.setAttribute(i,i),i}},w.each(w.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=dt[t]||w.find.attr;dt[t]=function(e,t,r){var o,n,a=t.toLowerCase();return r||(n=dt[a],dt[a]=o,o=null!=i(e,t,r)?a:null,dt[a]=n),o}}));var pt=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function ft(e){return(e.match(R)||[]).join(" ")}function mt(e){return e.getAttribute&&e.getAttribute("class")||""}function gt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}w.fn.extend({prop:function(e,t){return H(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[w.propFix[e]||e]}))}}),w.extend({prop:function(e,t,i){var r,o,n=e.nodeType;if(3!==n&&8!==n&&2!==n)return 1===n&&w.isXMLDoc(e)||(t=w.propFix[t]||t,o=w.propHooks[t]),void 0!==i?o&&"set"in o&&void 0!==(r=o.set(e,i,t))?r:e[t]=i:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):pt.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){w.propFix[this.toLowerCase()]=this})),w.fn.extend({addClass:function(e){var t,i,r,o,n,a;return f(e)?this.each((function(t){w(this).addClass(e.call(this,t,mt(this)))})):(t=gt(e)).length?this.each((function(){if(r=mt(this),i=1===this.nodeType&&" "+ft(r)+" "){for(n=0;n-1;)i=i.replace(" "+o+" "," ");a=ft(i),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var i,r,o,n,a=typeof e,s="string"===a||Array.isArray(e);return f(e)?this.each((function(i){w(this).toggleClass(e.call(this,i,mt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(i=gt(e),this.each((function(){if(s)for(n=w(this),o=0;o-1)return!0;return!1}});var vt=/\r/g;w.fn.extend({val:function(e){var t,i,r,o=this[0];return arguments.length?(r=f(e),this.each((function(i){var o;1===this.nodeType&&(null==(o=r?e.call(this,i,w(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=w.map(o,(function(e){return null==e?"":e+""}))),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=w.valHooks[o.type]||w.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(o,"value"))?i:"string"==typeof(i=o.value)?i.replace(vt,""):null==i?"":i:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:ft(w.text(e))}},select:{get:function(e){var t,i,r,o=e.options,n=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?n+1:o.length;for(r=n<0?l:a?n:0;r-1)&&(i=!0);return i||(e.selectedIndex=-1),n}}}}),w.each(["radio","checkbox"],(function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),h.focusin="onfocusin"in e;var _t=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,i,r,o){var n,a,s,l,c,d,p,h,v=[r||g],_=u.call(t,"type")?t.type:t,b=u.call(t,"namespace")?t.namespace.split("."):[];if(a=h=s=r=r||g,3!==r.nodeType&&8!==r.nodeType&&!_t.test(_+w.event.triggered)&&(_.indexOf(".")>-1&&(b=_.split("."),_=b.shift(),b.sort()),c=_.indexOf(":")<0&&"on"+_,(t=t[w.expando]?t:new w.Event(_,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),i=null==i?[t]:w.makeArray(i,[t]),p=w.event.special[_]||{},o||!p.trigger||!1!==p.trigger.apply(r,i))){if(!o&&!p.noBubble&&!m(r)){for(l=p.delegateType||_,_t.test(l+_)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(r.ownerDocument||g)&&v.push(s.defaultView||s.parentWindow||e)}for(n=0;(a=v[n++])&&!t.isPropagationStopped();)h=a,t.type=n>1?l:p.bindType||_,(d=(Z.get(a,"events")||Object.create(null))[t.type]&&Z.get(a,"handle"))&&d.apply(a,i),(d=c&&a[c])&&d.apply&&q(a)&&(t.result=d.apply(a,i),!1===t.result&&t.preventDefault());return t.type=_,o||t.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),i)||!q(r)||c&&f(r[_])&&!m(r)&&((s=r[c])&&(r[c]=null),w.event.triggered=_,t.isPropagationStopped()&&h.addEventListener(_,bt),r[_](),t.isPropagationStopped()&&h.removeEventListener(_,bt),w.event.triggered=void 0,s&&(r[c]=s)),t.result}},simulate:function(e,t,i){var r=w.extend(new w.Event,i,{type:e,isSimulated:!0});w.event.trigger(r,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each((function(){w.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return w.event.trigger(e,t,i,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t);o||r.addEventListener(e,i,!0),Z.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,o=Z.access(r,t)-1;o?Z.access(r,t,o):(r.removeEventListener(e,i,!0),Z.remove(r,t))}}}));var yt=e.location,wt={guid:Date.now()},xt=/\?/;w.parseXML=function(t){var i,r;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(o){}return r=i&&i.getElementsByTagName("parsererror")[0],i&&!r||w.error("Invalid XML: "+(r?w.map(r.childNodes,(function(e){return e.textContent})).join("\n"):t)),i};var Ct=/\[\]$/,kt=/\r?\n/g,Tt=/^(?:submit|button|image|reset|file)$/i,Et=/^(?:input|select|textarea|keygen)/i;function At(e,t,i,r){var o;if(Array.isArray(t))w.each(t,(function(t,o){i||Ct.test(e)?r(e,o):At(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,i,r)}));else if(i||"object"!==b(t))r(e,t);else for(o in t)At(e+"["+o+"]",t[o],i,r)}w.param=function(e,t){var i,r=[],o=function(e,t){var i=f(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,(function(){o(this.name,this.value)}));else for(i in e)At(i,e[i],t,o);return r.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Et.test(this.nodeName)&&!Tt.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var i=w(this).val();return null==i?null:Array.isArray(i)?w.map(i,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:i.replace(kt,"\r\n")}})).get()}});var St=/%20/g,Pt=/#.*$/,It=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Dt=/^(?:GET|HEAD)$/,Lt=/^\/\//,Ot={},Rt={},Nt="*/".concat("*"),Bt=g.createElement("a");function jt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var r,o=0,n=t.toLowerCase().match(R)||[];if(f(i))for(;r=n[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(i)):(e[r]=e[r]||[]).push(i)}}function Ut(e,t,i,r){var o={},n=e===Rt;function a(s){var l;return o[s]=!0,w.each(e[s]||[],(function(e,s){var c=s(t,i,r);return"string"!=typeof c||n||o[c]?n?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!o["*"]&&a("*")}function Ft(e,t){var i,r,o=w.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:r||(r={}))[i]=t[i]);return r&&w.extend(!0,e,r),e}Bt.href=yt.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(yt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Nt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ft(Ft(e,w.ajaxSettings),t):Ft(w.ajaxSettings,e)},ajaxPrefilter:jt(Ot),ajaxTransport:jt(Rt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var r,o,n,a,s,l,c,u,d,p,h=w.ajaxSetup({},i),f=h.context||h,m=h.context&&(f.nodeType||f.jquery)?w(f):w.event,v=w.Deferred(),_=w.Callbacks("once memory"),b=h.statusCode||{},y={},x={},C="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Mt.exec(n);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?n:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,y[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),T(0,t),this}};if(v.promise(k),h.url=((t||h.url||yt.href)+"").replace(Lt,yt.protocol+"//"),h.type=i.method||i.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(R)||[""],null==h.crossDomain){l=g.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(E){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Ut(Ot,h,i,k),c)return k;for(d in(u=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Dt.test(h.type),o=h.url.replace(Pt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(St,"+")):(p=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(xt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(It,"$1"),p=(xt.test(o)?"&":"?")+"_="+wt.guid+++p),h.url=o+p),h.ifModified&&(w.lastModified[o]&&k.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&k.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||i.contentType)&&k.setRequestHeader("Content-Type",h.contentType),k.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Nt+"; q=0.01":""):h.accepts["*"]),h.headers)k.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(f,k,h)||c))return k.abort();if(C="abort",_.add(h.complete),k.done(h.success),k.fail(h.error),r=Ut(Rt,h,i,k)){if(k.readyState=1,u&&m.trigger("ajaxSend",[k,h]),c)return k;h.async&&h.timeout>0&&(s=e.setTimeout((function(){k.abort("timeout")}),h.timeout));try{c=!1,r.send(y,T)}catch(E){if(c)throw E;T(-1,E)}}else T(-1,"No Transport");function T(t,i,a,l){var d,p,g,y,x,C=i;c||(c=!0,s&&e.clearTimeout(s),r=void 0,n=l||"",k.readyState=t>0?4:0,d=t>=200&&t<300||304===t,a&&(y=function(e,t,i){for(var r,o,n,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){l.unshift(o);break}if(l[0]in i)n=l[0];else{for(o in i){if(!l[0]||e.converters[o+" "+l[0]]){n=o;break}a||(a=o)}n=n||a}if(n)return n!==l[0]&&l.unshift(n),i[n]}(h,k,a)),!d&&w.inArray("script",h.dataTypes)>-1&&w.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),y=function(e,t,i,r){var o,n,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(n=u.shift();n;)if(e.responseFields[n]&&(i[e.responseFields[n]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=n,n=u.shift())if("*"===n)n=l;else if("*"!==l&&l!==n){if(!(a=c[l+" "+n]||c["* "+n]))for(o in c)if((s=o.split(" "))[1]===n&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(n=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(E){return{state:"parsererror",error:a?E:"No conversion from "+l+" to "+n}}}return{state:"success",data:t}}(h,y,k,d),d?(h.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=x),(x=k.getResponseHeader("etag"))&&(w.etag[o]=x)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=y.state,p=y.data,d=!(g=y.error))):(g=C,!t&&C||(C="error",t<0&&(t=0))),k.status=t,k.statusText=(i||C)+"",d?v.resolveWith(f,[p,C,k]):v.rejectWith(f,[k,C,g]),k.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,h,d?p:g]),_.fireWith(f,[k,C]),u&&(m.trigger("ajaxComplete",[k,h]),--w.active||w.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,i){return w.get(e,t,i,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],(function(e,t){w[t]=function(e,i,r,o){return f(i)&&(o=o||r,r=i,i=void 0),w.ajax(w.extend({url:e,type:t,dataType:o,data:i,success:r},w.isPlainObject(e)&&e))}})),w.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),w._evalUrl=function(e,t,i){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t,i)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return f(e)?this.each((function(t){w(this).wrapInner(e.call(this,t))})):this.each((function(){var t=w(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=f(e);return this.each((function(i){w(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){w(this).replaceWith(this.childNodes)})),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var zt={0:200,1223:204},Ht=w.ajaxSettings.xhr();h.cors=!!Ht&&"withCredentials"in Ht,h.ajax=Ht=!!Ht,w.ajaxTransport((function(t){var i,r;if(h.cors||Ht&&!t.crossDomain)return{send:function(o,n){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)s.setRequestHeader(a,o[a]);i=function(e){return function(){i&&(i=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?n(0,"error"):n(s.status,s.statusText):n(zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=i(),r=s.onerror=s.ontimeout=i("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout((function(){i&&r()}))},i=i("abort");try{s.send(t.hasContent&&t.data||null)}catch(l){if(i)throw l}},abort:function(){i&&i()}}})),w.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),w.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=w("