@anov/gis 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ANOVGIS",[],t):"object"==typeof exports?exports.ANOVGIS=t():e.ANOVGIS=t()}(self,(()=>(()=>{var __webpack_modules__={480:(e,t,i)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function s(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}i.r(t),i.d(t,{Billboard:()=>mi,BillboardPrimitive:()=>dt,BounceBillboardPrimitive:()=>gt,BounceLabelPrimitive:()=>bt,Box:()=>yi,CesiumHeatMap:()=>Hs,CesiumView:()=>Xi,CesiumWaterAnalysis:()=>As,Cesium_PART:()=>lr,Circle:()=>Ai,CircleBlurMaterial:()=>Aa(),CircleBlurMaterialProperty:()=>Qa,CircleWaveMaterialProperty:()=>as,CloudPrimitive:()=>Pt,ClusterLayer:()=>Co,CopyRight:()=>yn,Corridor:()=>Pi,Cylinder:()=>Mi,CzmlLayer:()=>So,DiffuseWallPrimitive:()=>Rt,DivIcon:()=>tt,DomUtil:()=>j,DrawBase:()=>hs,DrawCircle:()=>Ss,DrawPoint:()=>fs,DrawPolyLine:()=>ys,DrawPolygon:()=>gs,DrawRectangle:()=>vs,DynamicLayer:()=>Eo,ElecEllipsoidPrimitive:()=>Bt,Ellipse:()=>Oi,Ellipsoid:()=>Fi,Event:()=>le,FeatureGridLayer:()=>Io,FeatureInfoUtil:()=>ir,FlowLinePrimitive:()=>Vt,FlyEventType:()=>se,FlyManager:()=>dc,GeoJsonLayer:()=>co,GeocoderFactory:()=>_n,GeocoderType:()=>dn,GlobeRotate:()=>ac,GpxLayer:()=>Lo,Graphic:()=>Ve,GraphicEvent:()=>Kr,GraphicEventType:()=>te,GraphicType:()=>we,GroundPrimitiveLayer:()=>No,GroundSkyBox:()=>jn,HeatMapLayer:()=>$s,HtmlLayer:()=>$o,ImageryLayerFactory:()=>ho,ImageryType:()=>c,KeyboardRoaming:()=>hc,KmlLayer:()=>zo,Label:()=>Ui,LabelLayer:()=>jo,LabelPrimitive:()=>Ct,LayerControlUitl:()=>ar,LayerEvent:()=>Xr,LayerEventType:()=>ne,LayerGroupEvent:()=>jr,LayerGroupEventType:()=>ie,LightCylinderPrimitive:()=>zt,LocateUtil:()=>Xn,MapInfo:()=>rr,Model:()=>ot,ModelPrimitive:()=>jt,MouseEvent:()=>$r,MouseEventType:()=>Q,NoDepthTestPolylineCollection:()=>ds,Parse:()=>Ne,PathEvent:()=>eo,PathEventType:()=>oe,Plane:()=>Hi,PlotEvent:()=>io,PlotEventType:()=>ae,PoiSearch:()=>or,Point:()=>fr,PointPrimitive:()=>Kt,Polygon:()=>yr,Polyline:()=>Sr,PolylineFlowMaterialProperty:()=>ja,PolylineGlowMaterial:()=>sa(),PolylineGlowMaterialProperty:()=>$a,PolylineGradientMaterial:()=>da(),PolylineGradientMaterialProperty:()=>za,PolylineImageTrailMaterial:()=>oa(),PolylineImageTrailMaterialProperty:()=>Oa,PolylineLightingMaterial:()=>la(),PolylineLightingMaterialProperty:()=>Fa,PolylineLightingTrailMaterial:()=>na(),PolylineLightingTrailMaterialProperty:()=>Pa,PolylinePrimitive:()=>Zt,PolylineTrailMaterialProperty:()=>Ma,PolylineVFlywireMaterial:()=>ma(),PolylineVFlywireMaterialPoperty:()=>Ya,PolylineVolume:()=>xr,Position:()=>fe,PrimitiveLayer:()=>Yo,Rect:()=>Ir,RoamingController:()=>pc,RoamingPath:()=>fc,ScanCirclePrimitive:()=>ii,SceneEvent:()=>Hr,SceneEventType:()=>ee,ShapeUtil:()=>tr,SplitImageLayer:()=>po,State:()=>Me,ThreeCoordTransform:()=>y,ThreeLayer:()=>_c,TiandituGeocoder:()=>un,TiandituGeocoderService:()=>nn,TiandituGeocoderService_shanxi:()=>on,Tileset:()=>ct,TilesetLayer:()=>Qo,TopoJsonLayer:()=>ta,TrackEvent:()=>Qr,TrackEventType:()=>re,TrailLinePrimitive:()=>oi,Transform:()=>_e,TranslateLocal:()=>sr,Util:()=>W,VectorLayer:()=>oo,VideoPrimitive:()=>ci,Viewer:()=>An,ViewerEvent:()=>Gr,ViewerEventType:()=>Z,Wall:()=>Br,WallFlowMaterialProperty:()=>ls,WallGradientMaterialProperty:()=>ns,WaterMaterialProperty:()=>es,WaterPrimitive:()=>di,Weather:()=>tc,WidgetEventType:()=>ce,WidgetsControl:()=>cr,WktUtil:()=>er,area:()=>$e,bounds:()=>Ue,center:()=>Ge,curve:()=>ze,distance:()=>We,distanceSquared:()=>je,heading:()=>qe,isBetween:()=>Xe,midCartesian:()=>Ye,midPosition:()=>Ke,parabola:()=>Je});const c={ARCGIS:"arcgis",SINGLE_TILE:"single_tile",WMS:"wms",WMTS:"wmts",XYZ:"xyz",COORD:"coord",GRID:"grid",MAPBOX:"mapbox",MAPBOX_STYLE:"mapbox_style",TMS:"tms",AMAP:"amap",BAIDU:"baidu",TDT:"tdt",TENCENT:"tencent",Google:"google"};function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=52.35987755982988,m=3.141592653589793,g=6378245,_=.006693421622965943;const y=function(){function e(){n(this,e)}return s(e,null,[{key:"BD09ToGCJ02",value:function(e,t){var i=+e-.0065,n=+t-.006,r=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*f),o=Math.atan2(n,i)-3e-6*Math.cos(i*f);return[r*Math.cos(o),r*Math.sin(o)]}},{key:"GCJ02ToBD09",value:function(e,t){t=+t,e=+e;var i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*f),n=Math.atan2(t,e)+3e-6*Math.cos(e*f);return[i*Math.cos(n)+.0065,i*Math.sin(n)+.006]}},{key:"WGS84ToGCJ02",value:function(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];var i=this.delta(e,t);return[e+i[0],t+i[1]]}},{key:"GCJ02ToWGS84",value:function(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];var i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}},{key:"delta",value:function(e,t){var i=this.transformLng(e-105,t-35),n=this.transformLat(e-105,t-35),r=t/180*m,o=Math.sin(r);o=1-_*o*o;var a=Math.sqrt(o);return[i=180*i/(g/a*Math.cos(r)*m),n=180*n/(g*(1-_)/(o*a)*m)]}},{key:"transformLng",value:function(e,t){var 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*m)+20*Math.sin(2*e*m))/3,i+=2*(20*Math.sin(e*m)+40*Math.sin(e/3*m))/3,i+=2*(150*Math.sin(e/12*m)+300*Math.sin(e/30*m))/3}},{key:"transformLat",value:function(e,t){var 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*m)+20*Math.sin(2*e*m))/3,i+=2*(20*Math.sin(t*m)+40*Math.sin(t/3*m))/3,i+=2*(160*Math.sin(t/12*m)+320*Math.sin(t*m/30))/3}},{key:"out_of_china",value:function(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}}]),e}();function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const v=function(e){u(i,Cesium.WebMercatorTilingScheme);var t=C(i);function i(e){var r;n(this,i),r=t.call(this,e);var o=new Cesium.WebMercatorProjection;return r._projection.project=function(e,t){return t=y.WGS84ToGCJ02(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude)),t=o.project(new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))),new Cesium.Cartesian2(t.x,t.y)},r._projection.unproject=function(e,t){var i=o.unproject(e);return t=y.GCJ02ToWGS84(Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))},r}return s(i)}();function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const S=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=T(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),e.url="img"===e.style?"https://webst{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}":"cva"===e.style?"https://webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}":"https://webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",e.subdomains=e.subdomains||["01","02","03","04"],"WGS84"===e.crs&&(e.tilingScheme=new v),t.call(this,e)}return s(i)}();var A=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],b=[75,60,45,30,15,0],E=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],x=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],P=function(){function e(){n(this,e),this.isWgs84=!1}return s(e,[{key:"getDistanceByMC",value:function(e,t){if(!e||!t)return 0;if(!(e=this.convertMC2LL(e)))return 0;var i=this.toRadians(e.lng),n=this.toRadians(e.lat);if(!(t=this.convertMC2LL(t)))return 0;var r=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(i,r,n,o)}},{key:"getDistanceByLL",value:function(e,t){if(!e||!t)return 0;e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74);var i=this.toRadians(e.lng),n=this.toRadians(e.lat),r=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(i,r,n,o)}},{key:"convertMC2LL",value:function(e){if(!e)return{lng:0,lat:0};var t={};if(this.isWgs84){t.lng=e.lng/20037508.34*180;var i=e.lat/20037508.34*180;return t.lat=180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2),{lng:t.lng.toFixed(6),lat:t.lat.toFixed(6)}}Math.abs(e.lng);for(var n=Math.abs(e.lat),r=void 0,o=0;o<A.length;o++)if(n>=A[o]){r=E[o];break}return{lng:(t=this.convertor(e,r)).lng.toFixed(6),lat:t.lat.toFixed(6)}}},{key:"convertLL2MC",value:function(e){if(!e)return{lng:0,lat:0};if(e.lng>180||e.lng<-180||e.lat>90||e.lat<-90)return e;if(this.isWgs84){var t={},i=6378137;t.lng=e.lng*Math.PI/180*i;var n=e.lat*Math.PI/180;return t.lat=3189068.5*Math.log((1+Math.sin(n))/(1-Math.sin(n))),{lng:parseFloat(t.lng.toFixed(2)),lat:parseFloat(t.lat.toFixed(2))}}e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74);e.lng;for(var r=e.lat,o=void 0,a=0;a<b.length;a++)if(r>=b[a]){o=x[a];break}if(!o)for(var s=0;s<b.length;s++)if(r<=-b[s]){o=x[s];break}var c=this.convertor(e,o);return{lng:parseFloat(c.lng.toFixed(2)),lat:parseFloat(c.lat.toFixed(2))}}},{key:"convertor",value:function(e,t){if(!e||!t)return{lng:0,lat:0};var i=t[0]+t[1]*Math.abs(e.lng),n=Math.abs(e.lat)/t[9],r=t[2]+t[3]*n+t[4]*n*n+t[5]*n*n*n+t[6]*n*n*n*n+t[7]*n*n*n*n*n+t[8]*n*n*n*n*n*n;return{lng:i*=e.lng<0?-1:1,lat:r*=e.lat<0?-1:1}}},{key:"getDistance",value:function(e,t,i,n){return 6370996.81*Math.acos(Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos(t-e))}},{key:"toRadians",value:function(e){return Math.PI*e/180}},{key:"toDegrees",value:function(e){return 180*e/Math.PI}},{key:"getRange",value:function(e,t,i){return null!=t&&(e=Math.max(e,t)),null!=i&&(e=Math.min(e,i)),e}},{key:"getLoop",value:function(e,t,i){for(;e>i;)e-=i-t;for(;e<t;)e+=i-t;return e}},{key:"lngLatToMercator",value:function(e){return this.convertLL2MC(e)}},{key:"lngLatToPoint",value:function(e){var t=this.convertLL2MC(e);return{x:t.lng,y:t.lat}}},{key:"mercatorToLngLat",value:function(e){return this.convertMC2LL(e)}},{key:"pointToLngLat",value:function(e){var t={lng:e.x,lat:e.y};return this.convertMC2LL(t)}},{key:"pointToPixel",value:function(e,t,i,n){if(!e)return{x:0,y:0};e=this.lngLatToMercator(e);var r=this.getZoomUnits(t);return{x:Math.round((e.lng-i.lng)/r+n.width/2),y:Math.round((i.lat-e.lat)/r+n.height/2)}}},{key:"pixelToPoint",value:function(e,t,i,n){if(!e)return{lng:0,lat:0};var r=this.getZoomUnits(t),o={lng:i.lng+r*(e.x-n.width/2),lat:i.lat-r*(e.y-n.height/2)};return this.mercatorToLngLat(o)}},{key:"getZoomUnits",value:function(e){return Math.pow(2,18-e)}}]),e}();const D=P;function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const M=function(e){u(i,Cesium.WebMercatorTilingScheme);var t=w(i);function i(e){var r;n(this,i),r=t.call(this,e);var o=new D;return r._projection.project=function(e,t){return t=t||{},t=y.WGS84ToGCJ02(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude)),(t=y.GCJ02ToBD09(t[0],t[1]))[0]=Math.min(t[0],180),t[0]=Math.max(t[0],-180),t[1]=Math.min(t[1],74.000022),t[1]=Math.max(t[1],-71.988531),t=o.lngLatToPoint({lng:t[0],lat:t[1]}),new Cesium.Cartesian2(t.x,t.y)},r._projection.unproject=function(e,t){return t=t||{},t=o.mercatorToLngLat({lng:e.x,lat:e.y}),t=y.BD09ToGCJ02(t.lng,t.lat),t=y.GCJ02ToWGS84(t[0],t[1]),new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))},r.resolutions=e.resolutions||[],r}return s(i,[{key:"tileXYToNativeRectangle",value:function(e,t,i,n){var r=this.resolutions[i],o=e*r,a=(e+1)*r,s=(1+(t=-t))*r,c=t*r;return Cesium.defined(n)?(n.west=o,n.south=c,n.east=a,n.north=s,n):new Cesium.Rectangle(o,c,a,s)}},{key:"positionToTileXY",value:function(e,t,i){var n=this._rectangle;if(Cesium.Rectangle.contains(n,e)){var r=this._projection.project(e);if(Cesium.defined(r)){var o=this.resolutions[t],a=Math.floor(r.x/o),s=-Math.floor(r.y/o);return Cesium.defined(i)?(i.x=a,i.y=s,i):new Cesium.Cartesian2(a,s)}}}}]),i}();const I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n(this,e),this._url="img"===t.style?"http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46":"vec"===t.style?"http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020":"traffic"===t.style?"http://its.map.baidu.com:8002/traffic/TrafficTileService?time={time}&label={labelStyle}&v=016&level={z}&x={x}&y={y}&scaler=2":"http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&scale=1&customid={style}",this._labelStyle=t.labelStyle||"web2D",this._tileWidth=256,this._tileHeight=256,this._maximumLevel=18,this._crs=t.crs||"BD09","WGS84"===t.crs){for(var i=[],r=0;r<19;r++)i[r]=256*Math.pow(2,18-r);this._tilingScheme=new M({resolutions:i,rectangleSouthwestInMeters:new Cesium.Cartesian2(-20037726.37,-12474104.17),rectangleNortheastInMeters:new Cesium.Cartesian2(20037726.37,12474104.17)})}else this._tilingScheme=new Cesium.WebMercatorTilingScheme({rectangleSouthwestInMeters:new Cesium.Cartesian2(-33554054,-33746824),rectangleNortheastInMeters:new Cesium.Cartesian2(33554054,33746824)});this._rectangle=this._tilingScheme.rectangle,this._credit=void 0,this._token=void 0,this._style=t.style||"normal"}return s(e,[{key:"url",get:function(){return this._url}},{key:"token",get:function(){return this._token}},{key:"tileWidth",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},{key:"tileHeight",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},{key:"maximumLevel",get:function(){if(!this.ready)throw new Cesium.DeveloperError("maximumLevel must not be called before the imagery provider is ready.");return this._maximumLevel}},{key:"minimumLevel",get:function(){if(!this.ready)throw new Cesium.DeveloperError("minimumLevel must not be called before the imagery provider is ready.");return 0}},{key:"tilingScheme",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},{key:"rectangle",get:function(){if(!this.ready)throw new Cesium.DeveloperError("rectangle must not be called before the imagery provider is ready.");return this._rectangle}},{key:"ready",get:function(){return!!this._url}},{key:"credit",get:function(){return this._credit}},{key:"hasAlphaChannel",get:function(){return!0}},{key:"getTileCredits",value:function(e,t,i){}},{key:"requestImage",value:function(e,t,i){if(!this.ready)throw new Cesium.DeveloperError("requestImage must not be called before the imagery provider is ready.");var n=this._tilingScheme.getNumberOfXTilesAtLevel(i),r=this._tilingScheme.getNumberOfYTilesAtLevel(i),o=this._url.replace("{z}",i).replace("{s}",String(1)).replace("{style}",this._style).replace("{labelStyle}",this._labelStyle).replace("{time}",String((new Date).getTime()));return o="WGS84"===this._crs?o.replace("{x}",String(e)).replace("{y}",String(-t)):o.replace("{x}",String(e-n/2)).replace("{y}",String(r/2-t-1)),Cesium.ImageryProvider.loadImage(this,o)}}]),e}();function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const O=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=R(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,{url:[e.protocol||"","//t{s}.tianditu.gov.cn/DataServer?T={style}_w&x={x}&y={y}&l={z}&tk={key}".replace(/\{style\}/g,e.style||"vec").replace(/\{key\}/g,e.key||"")].join(""),subdomains:["0","1","2","3","4","5","6","7"],tilingScheme:new Cesium.WebMercatorTilingScheme,maximumLevel:18})}return s(i)}();function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const B=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=L(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,i);var r="img"===e.style?"https://p{s}.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{reverseY}.jpg?version=400":"https://rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid={style}&scene=0&version=347";return e.url=r.replace("{style}",e.style||1),e.subdomains=e.subdomains||["1","2","3"],"img"===e.style&&(e.customTags={sx:function(e,t,i,n){return t>>4},sy:function(e,t,i,n){return(1<<n)-i>>4}}),t.call(this,e)}return s(i)}();function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const N=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=F(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,{url:"https://gac-geo.googlecnapps.cn/maps/vt?lyrs={layer}&x={x}&y={y}&z={z}".replace("{layer}",e.lyrs||"s"),tilingScheme:new Cesium.WebMercatorTilingScheme,maximumLevel:25})}return s(i)}();function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const k=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=V(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),e.url||(e.url="http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}"),e.crs&&"WGS84"!==e.crs||(e.tilingScheme=new v),t.call(this,e)}return s(i)}();function $(){return $="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(arguments.length<3?e:i):r.value}},$.apply(this,arguments)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const G=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=U(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._minLevel=r.minLevel,e._maxLevel=r.maxLevel,e}return s(i,[{key:"requestImage",value:function(e,t,n){if(!this.ready)throw new Cesium.DeveloperError("requestImage must not be called before the imagery provider is ready.");if(!(this._minLevel&&n<this._minLevel))return $(p(i.prototype),"requestImage",this).call(this,e,t,n)}}]),i}();var z="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),H=function(){function e(){n(this,e)}return s(e,null,[{key:"uuid",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"D",i=[];i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(var n=0;n<36;n++)i[n]||(e=0|16*Math.random(),i[n]=z[19===n?3&e|8:e]);return t+"-"+i.join("")}},{key:"merge",value:function(e){for(var t,i,n,r,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];for(i=0,n=a.length;i<n;i++)for(t in r=a[i])e[t]=r[t];return e}},{key:"splitWords",value:function(e){return this.trim(e).split(/\s+/)}},{key:"setOptions",value:function(e,t){for(var i in e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{}),t)e.options[i]=t[i];return e.options}},{key:"formatNum",value:function(e,t){var i=Math.pow(10,void 0===t?6:t);return Math.round(e*i)/i}},{key:"trim",value:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}},{key:"emptyImageUrl",value:function(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}},{key:"checkPosition",value:function(e){return e&&e.hasOwnProperty("_lng")&&e.hasOwnProperty("_lat")&&e.hasOwnProperty("_alt")}},{key:"debounce",value:function(e,t){var i=null;return function(){i&&clearTimeout(i),i=setTimeout(e,t)}}},{key:"throttle",value:function(e,t){var i=!0;return function(){if(!i)return!1;i=!1,setTimeout((function(){e(),i=!0}),t)}}},{key:"dataURLtoBlob",value:function(e){for(var t=e.split(","),i=t[0].match(/:(.*?);/)[1],n=atob(t[1]),r=n.length,o=new Uint8Array(r);r--;)o[r]=n.charCodeAt(r);return new Blob([o],{type:i})}}]),e}();const W=H;const j=function(){function e(){n(this,e)}return s(e,null,[{key:"get",value:function(e){return"string"==typeof e?document.getElementById(e):e}},{key:"appendChild",value:function(e,t){if(e&&t)return t&&"string"==typeof t?(e.innerHTML||(e.innerHTML=""),e.innerHTML+=t):t&&t instanceof Element&&e.appendChild(t),e}},{key:"getStyle",value:function(e,t){var i=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(e,null);i=n?n[t]:null}return"auto"===i?null:i}},{key:"create",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=document.createElement(e);return n.className=t||"",i&&i.appendChild(n),n}},{key:"createByID",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=document.createElement(e);return n.id=t||"",i&&i.appendChild(n),n}},{key:"remove",value:function(e){var t=e.parentNode;t&&t.removeChild(e)}},{key:"empty",value:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"hasClass",value:function(e,t){if(void 0!==e.classList)return e.classList.contains(t);var i=this.getClass(e);return i.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(i)}},{key:"addClass",value:function(e,t){if(void 0!==e.classList)for(var i=W.splitWords(t),n=0,r=i.length;n<r;n++)e.classList.add(i[n]);else if(!this.hasClass(e,t)){var o=this.getClass(e);this.setClass(e,(o?o+" ":"")+t)}}},{key:"removeClass",value:function(e,t){void 0!==e.classList?e.classList.remove(t):this.setClass(e,W.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}},{key:"setClass",value:function(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}},{key:"getClass",value:function(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}},{key:"createSvg",value:function(e,t,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");r.setAttribute("class","svg-path"),r.setAttribute("width",e),r.setAttribute("height",t),r.setAttribute("viewBox","0 0 ".concat(e," ").concat(t));var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",i),r.appendChild(o),n&&n.appendChild(r),r}},{key:"parseDom",value:function(e,t,i){t=Cesium.defaultValue(t,!1);var n=document.createElement("div");return n.className=i||"",n.innerHTML=e,t?n:n.lastElementChild}},{key:"enterFullscreen",value:function(e){e&&(e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen())}},{key:"exitFullscreen",value:function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}},{key:"createVideo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.create("video",t,i),r=this.create("source","",n);r.setAttribute("src",e),r.setAttribute("type","video/map4");var o=this.create("source","",n);return o.setAttribute("src",e),o.setAttribute("type","video/quicktime"),n}}]),e}();const q=function(){function e(){n(this,e)}return s(e,null,[{key:"getPopupDefaultDom",value:function(){var e=W.uuid();return'\n <div class="anov-divGraphic" id=\''.concat(e,'\'\n style="visibility:hidden"> \n <div class="anov-popup anov-popup-animation">\n <span class="anov-popup-close-button anov-popup-color closeButton">×</span>\n <div class="anov-popup-content-wrapper anov-popup-background">\n <div id="popup-m-').concat(e,'"\n class="anov-popup-content anov-popup-color">\n\n </div>\n </div>\n <div class="anov-popup-tip-container">\n <div class="anov-popup-tip anov-popup-background"></div>\n </div>\n </div>\n </div>\n ')}},{key:"getTooltipDefaultDom",value:function(){var e=W.uuid();return'\n <div class="anov-divGraphic " id=\''.concat(e,'\'\n style="visibility:hidden">\n <div id="tooltip-m-').concat(e,'" class="anov-tooltip anov-tooltip-top">\n\n </div>\n </div>\n ')}}]),e}();function X(e,t,i){return(t=o(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function K(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var J={ADD:"add",REMOVE:"remove"},Q={LEFT_DOWN:Cesium.ScreenSpaceEventType.LEFT_DOWN,LEFT_UP:Cesium.ScreenSpaceEventType.LEFT_UP,CLICK:Cesium.ScreenSpaceEventType.LEFT_CLICK,RIGHT_DOWN:Cesium.ScreenSpaceEventType.RIGHT_DOWN,RIGHT_UP:Cesium.ScreenSpaceEventType.RIGHT_UP,RIGHT_CLICK:Cesium.ScreenSpaceEventType.RIGHT_CLICK,DB_CLICK:Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK,MOUSE_MOVE:Cesium.ScreenSpaceEventType.MOUSE_MOVE,WHEEL:Cesium.ScreenSpaceEventType.WHEEL,MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout"},Z={ADD_LAYER:"addLayer",REMOVE_LAYER:"removeLayer",ADD_EFFECT:"addEffect",REMOVE_EFFECT:"removeEffect",LEFT_DOWN:Cesium.ScreenSpaceEventType.LEFT_DOWN,LEFT_UP:Cesium.ScreenSpaceEventType.LEFT_UP,CLICK:Cesium.ScreenSpaceEventType.LEFT_CLICK,RIGHT_DOWN:Cesium.ScreenSpaceEventType.RIGHT_DOWN,RIGHT_UP:Cesium.ScreenSpaceEventType.RIGHT_UP,RIGHT_CLICK:Cesium.ScreenSpaceEventType.RIGHT_CLICK,DB_CLICK:Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK,MOUSE_MOVE:Cesium.ScreenSpaceEventType.MOUSE_MOVE,WHEEL:Cesium.ScreenSpaceEventType.WHEEL,FLY_COMPLETE:"flyComplete"},ee={CAMERA_MOVE_END:"cameraMoveEnd",CAMERA_CHANGED:"cameraChanged",PRE_UPDATE:"preUpdate",POST_UPDATE:"postUpdate",PRE_RENDER:"preRender",POST_RENDER:"postRender",MORPH_COMPLETE:"morphComplete",CLOCK_TICK:"clockTick",RENDER_ERROR:"renderError"},te=K(K({},J),{},{LEFT_DOWN:Cesium.ScreenSpaceEventType.LEFT_DOWN,LEFT_UP:Cesium.ScreenSpaceEventType.LEFT_UP,CLICK:Cesium.ScreenSpaceEventType.LEFT_CLICK,RIGHT_DOWN:Cesium.ScreenSpaceEventType.RIGHT_DOWN,RIGHT_UP:Cesium.ScreenSpaceEventType.RIGHT_UP,RIGHT_CLICK:Cesium.ScreenSpaceEventType.RIGHT_CLICK,DB_CLICK:Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK,MOUSE_MOVE:Cesium.ScreenSpaceEventType.MOUSE_MOVE,MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout",POSITION_UPDATE:"positionUpdate",BIND_POPUP:"bindPopup"}),ie=J,ne=K(K({},J),{},{LEFT_DOWN:Cesium.ScreenSpaceEventType.LEFT_DOWN,LEFT_UP:Cesium.ScreenSpaceEventType.LEFT_UP,CLICK:Cesium.ScreenSpaceEventType.LEFT_CLICK,MOUSE_MOVE:Cesium.ScreenSpaceEventType.MOUSE_MOVE,RIGHT_DOWN:Cesium.ScreenSpaceEventType.RIGHT_DOWN,RIGHT_UP:Cesium.ScreenSpaceEventType.RIGHT_UP,RIGHT_CLICK:Cesium.ScreenSpaceEventType.RIGHT_CLICK,DB_CLICK:Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK,MOUSE_OUT:"mouseout"}),re=K(K({},J),{},{POST_RENDER:"postRender",ACTIVATE:"activate",DEACTIVATE:"deactivate",RESET_TIME_LINE:"restTimeLine"}),oe=K(K({},J),{},{POST_RENDER:"postRender",RESET_TIME_LINE:"restTimeLine",END:"end",STOP_STAY:"stopStay"}),ae={DRAW_START:"drawStart",DRAW_STOP:"drawStop",EDIT_START:"editStart",EDIT_STOP:"editEnd",DRAW_ANCHOR:"drawAnchor",CREATE_ANCHOR:"createAnchor",UPDATE_ANCHOR:"updateAnchor",ANCHOR_MOVING:"anchorMoving",EDIT_ANCHOR_STOP:"editAnchorStop",CLEAR_ANCHOR:"clearAnchor"},se={BEGIN:"flyBegin",END:"flyEnd",STOP_STAY:"stopStay",FLYING:"flying"},ce={OPEN:"show",CLOSE:"close"};const le=function(){function e(t){n(this,e),this._types=t,this._cache={}}return s(e,[{key:"_addEventListener",value:function(e,t,i){var n=this.getEvent(e),r=void 0;return n&&t&&(r=n.addEventListener(t,i||this)),r}},{key:"_removeEventListener",value:function(e,t,i){var n=this.getEvent(e),r=!1;return n&&t&&(r=n.removeEventListener(t,i||this)),r}},{key:"_raiseEvent",value:function(e,t){var i=this.getEvent(e);i&&i.raiseEvent(t)}},{key:"_registerEvent",value:function(){var e=this;Object.keys(this._types).forEach((function(t){var i=e._types[t];e._cache[i]=new Cesium.Event}))}},{key:"addEventListener",value:function(e,t,i){return this._addEventListener(e,t,i)}},{key:"addEventListenerOnce",value:function(e,t,i){var n=this._addEventListener(e,(function(e){t(e),n&&n()}),i)}},{key:"removeEventListener",value:function(e,t,i){return this._removeEventListener(e,t,i)}},{key:"raiseEvent",value:function(e,t){this._raiseEvent(e,t)}},{key:"getEvent",value:function(e){return this._cache[e]||void 0}}]),e}();function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const de=function(e){u(i,e);var t=ue(i);function i(){var e;return n(this,i),(e=t.call(this,ce))._registerEvent(),e}return s(i)}(le);const he=function(){function e(){n(this,e),this._viewer=void 0,this._wrapper=void 0,this.useDefaultHtmlTemplate=!0,this.showTitle=!1,this._event=new de}return s(e,[{key:"position",get:function(){return this._position}},{key:"hide",value:function(){this._wrapper&&(this._wrapper.style.cssText="\n visibility:hidden !important;\n display:none !important;\n "),this.raiseEvent(ce.CLOSE)}},{key:"setContent",value:function(e){if(e&&"string"==typeof e)this._wrapper.innerHTML=e;else if(e&&e instanceof Element){for(;this._wrapper.hasChildNodes();)this._wrapper.removeChild(this._wrapper.firstChild);this._wrapper.appendChild(e)}return this}},{key:"_bindEvent",value:function(){}},{key:"_unbindEvent",value:function(){}},{key:"_mountContent",value:function(){}},{key:"_installHook",value:function(e){}},{key:"install",value:function(e){this._installHook&&this._installHook(e)}},{key:"addEventListener",value:function(e,t,i){return this._event.addEventListener(e,t,i||this),this}},{key:"removeEventListener",value:function(e,t,i){return this._event.removeEventListener(e,t,i||this),this}},{key:"raiseEvent",value:function(e,t){return this._event.raiseEvent(e,t),this}}]),e}();var pe=function(){function e(t,i,r,o,a,s){n(this,e),this._lng=+t||0,this._lat=+i||0,this._alt=+r||0,this._heading=+o||0,this._pitch=+a||0,this._roll=+s||0}return s(e,[{key:"lng",get:function(){return this._lng},set:function(e){this._lng=+e}},{key:"lat",get:function(){return this._lat},set:function(e){this._lat=+e}},{key:"alt",get:function(){return this._alt},set:function(e){this._alt=+e}},{key:"heading",get:function(){return this._heading},set:function(e){this._heading=+e}},{key:"pitch",get:function(){return this._pitch},set:function(e){this._pitch=+e}},{key:"roll",get:function(){return this._roll},set:function(e){this._roll=+e}},{key:"serialize",value:function(){var t=new e(this._lng,this._lat,this._alt,this._heading,this._pitch,this._roll);return JSON.stringify(t)}},{key:"distance",value:function(t){return t&&t instanceof e?Cesium.Cartesian3.distance(_e.transformWGS84ToCartesian(this),_e.transformWGS84ToCartesian(t)):0}},{key:"clone",value:function(){var t=new e;return t.lng=this.lng||0,t.lat=this.lat||0,t.alt=this.alt||0,t.heading=this.heading||0,t.pitch=this.pitch||0,t.roll=this.roll||0,t}},{key:"copy",value:function(){return this.clone()}},{key:"toArray",value:function(){return[this.lng,this.lat,this.alt,this.heading,this.pitch,this.roll]}},{key:"toString",value:function(){return"".concat(this.lng,",").concat(this.lat,",").concat(this.alt,",").concat(this.heading,",").concat(this.pitch,",").concat(this.roll)}},{key:"toObject",value:function(){return{lng:this.lng,lat:this.lat,alt:this.alt,heading:this.heading,pitch:this.pitch,roll:this.roll}}}],[{key:"fromArray",value:function(t){var i=new e;return Array.isArray(t)&&(i.lng=t[0]||0,i.lat=t[1]||0,i.alt=t[2]||0,i.heading=t[3]||0,i.pitch=t[4]||0,i.roll=t[5]||0),i}},{key:"fromString",value:function(t){var i=new e;if(t&&"string"==typeof t){var n=t.split(",");i=this.fromArray(n)}return i}},{key:"fromObject",value:function(t){return new e(t.lng,t.lat,t.alt,t.heading,t.pitch,t.roll)}},{key:"fromCartesian",value:function(e){return _e.transformCartesianToWGS84(e)}},{key:"deserialize",value:function(t){var i=new e,n=JSON.parse(t);return n&&(i.lng=n.lng||0,i.lat=n.lat||0,i.alt=n.alt||0,i.heading=n.heading||0,i.pitch=n.pitch||0,i.roll=n.roll||0),i}}]),e}();const fe=pe;var me=new Cesium.WebMercatorProjection,ge=function(){function e(){n(this,e)}return s(e,null,[{key:"transformCartesianToWGS84",value:function(e){if(e){var t=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e);return new fe(Cesium.Math.toDegrees(t.longitude),Cesium.Math.toDegrees(t.latitude),t.height)}return new fe(0,0)}},{key:"addCartesian3Height",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1,n=e.transformCartesianToWGS84(t);return n.alt+=i,e.transformWGS84ToCartesian(n)}},{key:"SetCartesian3Height",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1,n=e.transformCartesianToWGS84(t);return n.alt=i,e.transformWGS84ToCartesian(n)}},{key:"setHeightWGS84",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1;return t.alt=i,e.transformWGS84ToCartesian(t)}},{key:"transformWGS84ToCartesian",value:function(e){return e?Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt,Cesium.Ellipsoid.WGS84):Cesium.Cartesian3.ZERO}},{key:"transformCartographicToCartesian",value:function(e){return e?Cesium.Cartesian3.fromRadians(e.longitude,e.latitude,e.height):Cesium.Cartesian3.ZERO}},{key:"transformWGS84ToCartographic",value:function(e){return e?Cesium.Cartographic.fromDegrees(e.lng,e.lat,e.alt):Cesium.Cartographic.ZERO}},{key:"transformCartesianArrayToWGS84Array",value:function(e){var t=this;return e?e.map((function(e){return t.transformCartesianToWGS84(e)})):[]}},{key:"transformWGS84ArrayToCartesianArray",value:function(e){var t=this;return e?e.map((function(e){return t.transformWGS84ToCartesian(e)})):[]}},{key:"transformWGS84ToMercator",value:function(e){var t=me.project(Cesium.Cartographic.fromDegrees(e.lng,e.lat,e.alt));return new fe(t.x,t.y,t.z)}},{key:"transformMercatorToWGS84",value:function(e){var t=me.unproject(new Cesium.Cartesian3(e.lng,e.lat,e.alt));return new fe(Cesium.Math.toDegrees(t.longitude),Cesium.Math.toDegrees(t.latitude),t.height)}},{key:"transformWindowToWGS84",value:function(e,t){var i,n=t.scene;if(n.mode===Cesium.SceneMode.SCENE3D){var r=n.camera.getPickRay(e);i=n.globe.pick(r,n)}else i=n.camera.pickEllipsoid(e,Cesium.Ellipsoid.WGS84);return this.transformCartesianToWGS84(i)}},{key:"transformWGS84ToWindow",value:function(e,t){var i=t.scene;return Cesium.SceneTransforms.wgs84ToWindowCoordinates(i,this.transformWGS84ToCartesian(e))}},{key:"updateWinPosition",value:function(e){var t=Cesium.defaultValue(e.show,!0),i=Cesium.defaultValue(e.windowCoord,null),n=Cesium.defaultValue(e.scaleByDistance,null),r=Cesium.defaultValue(e.distance,0),o=Cesium.defaultValue(e.dom,null),a=Cesium.defaultValue(e.horizontalOrigin,null),s=Cesium.defaultValue(e.verticalOrigin,null),c=Cesium.defaultValue(e.distanceDisplayCondition,null),l=(Cesium.defaultValue(e.isFront,!1),Cesium.defaultValue(e.offsetX,null)),u=Cesium.defaultValue(e.offsetY,null),d=e.scaleRatio||1;if(t&&i){var h=i.x-o.offsetWidth/2,p=i.y-o.offsetHeight;if(h<1&&p<1)o&&(o.style.cssText="\n visibility:hidden !important;\n display:none !important;\n ");else{var f="scale3d(1*".concat(d,",1*").concat(d,",1*").concat(d,")"),m=1;if(r&&n){var g=n.near||0,_=n.nearValue||1,y=n.far||Number.MAX_VALUE,C=n.farValue||0;if(r<g)f="scale3d(".concat(_,"*").concat(d,",").concat(_,"*").concat(d,",1)"),m=_;else if(r>y)f="scale3d(".concat(C,"*").concat(d,",").concat(C,"*").concat(d,",1)"),m=C;else{var v=_-(r-g)/(y-g)*(_-C);m=v,f="scale3d(".concat(v,"*").concat(d,",").concat(v,"*").concat(d,",1)")}}if(m<.01)o.style.display="none";else{o.style.display="block","LEFT"===a?h=i.x-o.offsetWidth:"CENTER"===a||"RIGHT"===a&&(h=i.x),"BOTTOM"===s?p=i.y:"CENTER"===s||"TOP"===s&&(p=i.y-o.offsetHeight),l&&(h+=l*m),u&&(p+=u*m),"LEFT"===a?"CENTER"===s?o.style.transformOrigin="right center":"TOP"===s?o.style.transformOrigin="right bottom":"BOTTOM"===s&&(o.style.transformOrigin="right top"):"CENTER"===a?"CENTER"===s?o.style.transformOrigin="center center":"TOP"===s?o.style.transformOrigin="center bottom":"BOTTOM"===s&&(o.style.transformOrigin="center top"):"RIGHT"===a&&("CENTER"===s?o.style.transformOrigin="left center":"TOP"===s?o.style.transformOrigin="left bottom":"BOTTOM"===s&&(o.style.transformOrigin="left top")),o.style.top=p*d+"px",o.style.left=h*d+"px",o.style.visibility="visible",o.style.transform="".concat(f);r&&c&&isBetween(r,c.near||0,c.far||Number.MAX_VALUE)}}}}}]),e}();const _e=ge;function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ce=function(e){u(i,e);var t=ye(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._init(e),r}return s(i,[{key:"_init",value:function(e){if(this._position=void 0,this._viewer=e.viewer||window.viewer,this._viewer){if(this.useDefaultHtmlTemplate=Cesium.defaultValue(e.useDefaultHtmlTemplate,!0),this.showTitle=Cesium.defaultValue(e.showTitle,!1),this.scaleByDistance=Cesium.defaultValue(e.scaleByDistance,null),this.horizontalOrigin=Cesium.defaultValue(e.horizontalOrigin,null),this.verticalOrigin=Cesium.defaultValue(e.verticalOrigin,null),this.distanceDisplayCondition=Cesium.defaultValue(e.distanceDisplayCondition,null),this.offsetX=Cesium.defaultValue(e.offsetX,null),this.offsetY=Cesium.defaultValue(e.offsetY,null),this.useDefaultHtmlTemplate){var t=q.getPopupDefaultDom();this._wrapper=j.parseDom(t,!1),this._addDefaultTitleContent(),this._initClose()}else this._wrapper=j.create("div","viewer-widgets anov-infoWin-init");!0===e.pointerEvents?this._wrapper.style.pointerEvents="all":this._wrapper.style.pointerEvents="none"}else console.error("viewer是必须的参数!")}},{key:"_initClose",value:function(){var e=this,t=this._wrapper.querySelector(".closeButton");t&&t.addEventListener("click",(function(){e.hide()}))}},{key:"_addDefaultTitleContent",value:function(){var e=this._wrapper.querySelector(".anov-popup-content");this.showTitle&&j.create("div","anov-template-titile",e),j.create("div","anov-template-content",e)}},{key:"setPosition",value:function(e){return this._position=e,this._wrapper&&(this._wrapper.style.cssText="\n visibility:visible;\n "),this}},{key:"setContent",value:function(e){var t=this._wrapper.querySelector(".anov-popup-content");if(t)for(;t.hasChildNodes();)t.removeChild(t.firstChild);else for(;this._wrapper.hasChildNodes();)this._wrapper.removeChild(this._wrapper.firstChild);if(e&&"string"==typeof e)t?t.innerHTML=e:this._wrapper.innerHTML=e;else if(e&&e instanceof Element)t?t.appendChild(e):this._wrapper.appendChild(e);else if(e&&e instanceof Object&&this.useDefaultHtmlTemplate){if(this._addDefaultTitleContent(),this.showTitle){var i=this._wrapper.querySelector(".anov-template-titile");j.appendChild(i,e.title)}var n=this._wrapper.querySelector(".anov-template-content"),r=e.fieldsMap;r&&r.forEach((function(e){var t="<div><label>".concat(e.nameC,"</label>").concat(e.value,"</div>");j.appendChild(n,t)}))}return this}},{key:"show",value:function(e,t){return this.setPosition(e).setContent(t),this}},{key:"_installHook",value:function(e){this._viewer.container.appendChild(this._wrapper),this._bindEvent(),Object.defineProperty(e,"popup",{value:this,writable:!1})}},{key:"_bindEvent",value:function(){var e=this;if(this._viewer&&this._wrapper){var t=this,i=this._viewer.scene;i.postRender.addEventListener((function(){if(t._position&&t._updatePosition&&"visible"===t._wrapper.style.visibility){var n=e._viewer.camera.positionWC,r=e._viewer.camera.direction,o=i.globe.ellipsoid.geodeticSurfaceNormal(t._position,new Cesium.Cartesian3),a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i,t._position);a&&t._updatePosition(a,Cesium.Cartesian3.distance(t._position,n),Cesium.Cartesian3.dot(r,o)<=0)}}))}}},{key:"_updatePosition",value:function(e,t,i){_e.updateWinPosition({windowCoord:e,scaleByDistance:this.scaleByDistance,distance:t,dom:this._wrapper,horizontalOrigin:this.horizontalOrigin,verticalOrigin:this.verticalOrigin,distanceDisplayCondition:this.distanceDisplayCondition,isFront:i,offsetX:this.offsetX,offsetY:this.offsetY,scaleRatio:this._viewer.scaleRatio})}}]),i}(he);const ve=Ce;function Te(e,t,i,n,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void i(e)}s.done?t(c):Promise.resolve(c).then(n,r)}function Se(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function a(e){Te(o,n,r,a,s,"next",e)}function s(e){Te(o,n,r,a,s,"throw",e)}a(void 0)}))}}var Ae=i(687),be=i.n(Ae);function Ee(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function xe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ee(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Pe={getPolylineDistance:function(e){if(!e||!Array.isArray(e)||e.length<2)return 0;for(var t=0,i=e.length,n=0;n<i-1;++n)t+=Cesium.Cartesian3.distance(e[n],e[n+1]);return t},getPolygonArea:function(e){var t=new Cesium.Cartesian3,i=new Cesium.Cartesian3,n=new Cesium.Cartesian3;if(!(e.length<=2)){for(var r=Cesium.CoplanarPolygonGeometry.fromPositions({positions:e}),o=Cesium.CoplanarPolygonGeometry.createGeometry(r),a=o.attributes.position.values,s=o.indices,c=s.length/3,l=0,u=0;u<c;++u){var d=Cesium.Cartesian3.fromElements(a[3*s[3*u+0]+0],a[3*s[3*u+0]+1],a[3*s[3*u+0]+2],t),h=Cesium.Cartesian3.fromElements(a[3*s[3*u+1]+0],a[3*s[3*u+1]+1],a[3*s[3*u+1]+2],i),p=Cesium.Cartesian3.fromElements(a[3*s[3*u+2]+0],a[3*s[3*u+2]+1],a[3*s[3*u+2]+2],n);l+=this.getTriangleArea(d,h,p)}return l}},getTriangleArea:function(e,t,i){var n=new Cesium.Cartesian3,r=new Cesium.Cartesian3,o=new Cesium.Cartesian3,a=Cesium.Cartesian3.subtract(t,e,n),s=Cesium.Cartesian3.subtract(i,e,r),c=Cesium.Cartesian3.cross(a,s,o);return.5*Cesium.Cartesian3.magnitude(c)},drawEntityNames:function(){return xe(xe(xe(xe(xe({},this.drawEntityNames_Point()),{},{tempPoint:"tempPoint"},this.drawEntityNames_Polyline()),this.drawEntityNames_Polygon()),this.drawEntityNames_Rectangle()),this.drawEntityNames_Circle())},drawEntityNames_Point:function(){return{drawPoint:"drawPoint"}},drawEntityNames_Polyline:function(){return{drawpolyline:"drawpolyline",drawpolylinepoint:"drawpolylinepoint"}},drawEntityNames_Polygon:function(){return{drawpolygon:"drawpolygon",drawpolygonpoint:"drawpolygonpoint"}},drawEntityNames_Rectangle:function(){return{drawRec:"drawRec",drawRecpoint:"drawRecpoint"}},drawEntityNames_Circle:function(){return{drawCircle:"drawCircle",drawCirclepoint:"drawCirclepoint"}},getPointLableString:function(e){var t=Cesium.Cartographic.fromCartesian(e),i=Cesium.Math.toDegrees,n=i(t.longitude).toFixed(8),r=i(t.latitude).toFixed(8),o=t.height.toFixed(3).slice(-10);return o<=0&&(o=0),"经度:"+n+"°\n纬度:"+r+"°\n高度:"+o+"米"},createPointLabel:function(e,t,i,n,r){r||(r={});var o={name:n||Pe.drawEntityNames().drawpolyline,position:t,attachPolygon:!0,show:Cesium.defaultValue(r.show,!0),label:r.justDraw?void 0:{text:i,font:"18px sans-serif",fillColor:Cesium.Color.GOLD,style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(30,-30),disableDepthTestDistance:1e9},point:r.billboard&&!r.tempPoint_show?void 0:{color:r.color||new Cesium.Color(1,0,0,.8),pixelSize:r.size||8,perPositionHeight:!1,disableDepthTestDistance:1e9},billboard:r.billboard?{image:r.billboard,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:1e9}:void 0};return e.entities.add(o)},setPointLabel:function(e,t,i){e.position=t,e.label&&(e.label.text=i)},setPointPosition:function(e,t){e&&(e.position=t)},createPointLabelsCallback:function(e,t){for(var i=e.length,n=0;n<i-1;++n){var r=e[n],o=e[n+1],a=Cesium.Cartesian3.distance(r,o),s=Cesium.Cartesian3.lerp(r,o,.5,new Cesium.Cartesian3),c=a.toFixed(2)+"米";a>=1e3&&(c=(a/1e3).toFixed(2)+"千米"),t(n,a,s,c)}},pickPosition:function(e,t,i,n){n||(n=new Cesium.Cartesian3);var r=void 0,o=(e=e).scene;if(o.mode!==Cesium.SceneMode.MORPHING){var a=o.camera.getPickRay(t),s=o.drillPickFromRay(a,2,i);if(s.length>0)for(var c=0;c<s.length;c++)if(s[c]){var l=s[c].object;if(l&&!(l.hasOwnProperty("id")&&l.id instanceof Cesium.Entity&&Pe.drawEntityNames()[l.id.name])){r=s[c].position;break}}if(!r)if(e.terrainProvider instanceof Cesium.EllipsoidTerrainProvider)r=e.camera.pickEllipsoid(t,o.globe.ellipsoid,n);else{var u=o.camera.getPickRay(t);r=o.globe.pick(u,o,n)}}return r}};const De=Pe;const we={};const Me={INITIALIZED:"initialized",ADDED:"added",REMOVED:"removed",CLEARED:"cleared",INSTALLED:"installed",ENABLED:"enabled",DISABLED:"disabled",PLAY:"play",PAUSE:"pause",RESTORE:"restore"};function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Re=function(e){u(i,e);var t=Ie(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._init(e),r}return s(i,[{key:"_init",value:function(e){if(this._position=void 0,this._viewer=e.viewer||window.viewer,this._viewer)if(this.useDefaultHtmlTemplate=Cesium.defaultValue(e.useDefaultHtmlTemplate,!0),this.showTitle=Cesium.defaultValue(e.showTitle,!1),this.horizontalOrigin=Cesium.defaultValue(e.horizontalOrigin,null),this.verticalOrigin=Cesium.defaultValue(e.verticalOrigin,null),this.offsetX=Cesium.defaultValue(e.offsetX,null),this.offsetY=Cesium.defaultValue(e.offsetY,null),this.useDefaultHtmlTemplate){var t=q.getTooltipDefaultDom();this._wrapper=j.parseDom(t,!1),this._addDefaultTitleContent()}else this._wrapper=j.create("div","viewer-widgets anov-infoWin-init");else console.error("viewer是必须的参数!")}},{key:"_addDefaultTitleContent",value:function(){var e=this._wrapper.querySelector(".anov-tooltip");this.showTitle&&j.create("div","anov-template-titile",e),j.create("div","anov-template-content",e)}},{key:"setPosition",value:function(e){return this._position=e,this._wrapper&&(this._wrapper.style.cssText="\n visibility:visible !important;\n display:block !important;\n "),this}},{key:"setContent",value:function(e){var t=this._wrapper.querySelector(".anov-tooltip");if(t)for(;t.hasChildNodes();)t.removeChild(t.firstChild);else for(;this._wrapper.hasChildNodes();)this._wrapper.removeChild(this._wrapper.firstChild);if(e&&"string"==typeof e)t?t.innerHTML=e:this._wrapper.innerHTML=e;else if(e&&e instanceof Element)t?t.appendChild(e):this._wrapper.appendChild(e),e.style.cssText="\n visibility:visible !important;\n display:block !important;\n ";else if(e&&e instanceof Object&&this.useDefaultHtmlTemplate){if(this._addDefaultTitleContent(),this.showTitle){var i=this._wrapper.querySelector(".anov-template-titile");j.appendChild(i,e.title)}var n=this._wrapper.querySelector(".anov-template-content"),r=e.fieldsMap;r&&r.forEach((function(e){var t="<div><label>".concat(e.nameC,"</label>").concat(e.value,"</div>");j.appendChild(n,t)}))}return this}},{key:"_updatePosition",value:function(e,t,i){_e.updateWinPosition({windowCoord:e,scaleByDistance:this.scaleByDistance,distance:t,dom:this._wrapper,horizontalOrigin:this.horizontalOrigin,verticalOrigin:this.verticalOrigin,distanceDisplayCondition:this.distanceDisplayCondition,isFront:i,offsetX:this.offsetX,offsetY:this.offsetY,scaleRatio:this._viewer.scaleRatio})}},{key:"show",value:function(e,t){this.setPosition(e).setContent(t);var i=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._viewer.scene,this.position);return this._updatePosition(i),this}},{key:"_installHook",value:function(e){this._viewer.container.appendChild(this._wrapper),Object.defineProperty(e,"tooltip",{value:this,writable:!1})}}]),i}(he);const Oe=Re;function Le(e,t,i){return Le=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&l(r,i.prototype),r},Le.apply(null,arguments)}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Fe(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Be(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Be(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ne=function(){function e(){n(this,e)}return s(e,null,[{key:"parsePosition",value:function(e){var t=new fe;if(!e)return t;if("string"==typeof e)t=fe.fromString(e);else if(Array.isArray(e))t=fe.fromArray(e);else if(Object(e)instanceof fe||!Object(e).hasOwnProperty("lng")||!Object(e).hasOwnProperty("lat"))if(!(Object(e)instanceof fe)&&Object(e).hasOwnProperty("x")&&Object(e).hasOwnProperty("y")&&Object(e).hasOwnProperty("z")){var i=Le(Cesium.Cartesian3,Fe(Object(e)));t=fe.fromCartesian(i)}else Object(e)instanceof fe&&(t=e);else t=fe.fromObject(e);return t}},{key:"parsePositions",value:function(e){if("string"==typeof e){if(e.indexOf("#")>=0)throw new Error("the positions invalid");e.indexOf(";")>=0&&(e=e.split(";").filter((function(e){return!!e})))}return e.map((function(e){if("string"==typeof e)return fe.fromString(e);if(Array.isArray(e))return fe.fromArray(e);if(!(Object(e)instanceof fe)&&Object(e).hasOwnProperty("lng")&&Object(e).hasOwnProperty("lat"))return fe.fromObject(e);if(!(Object(e)instanceof fe)&&Object(e).hasOwnProperty("x")&&Object(e).hasOwnProperty("y")&&Object(e).hasOwnProperty("z")){var t=new Cesium.Cartesian3(e.x,e.y,e.z);return fe.fromCartesian(t)}return Object(e)instanceof fe?e:void 0}))}},{key:"parsePointCoordToArray",value:function(e){return[(e=this.parsePosition(e)).lng,e.lat]}},{key:"parsePolylineCoordToArray",value:function(e){var t=[];return(e=this.parsePositions(e)).forEach((function(e){t.push([e.lng,e.lat])})),t}},{key:"parsePolygonCoordToArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[];return(e=this.parsePositions(e)).forEach((function(e){i.push([e.lng,e.lat])})),t&&i.length>0&&i.push(i[0]),[i]}},{key:"parseOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["color","backgroundColor","outlineColor","material","depthFailMaterial","fillColor","markerColor","stroke","fill"].forEach((function(t,i){"string"==typeof e[t]&&(e[t]=Cesium.Color.fromCssColorString(e[t]))})),e}}]),e}();const Ve=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._id=W.uuid(),this.businessID=W.uuid(),Ne.parseOption(t),this._nativeObjCesium=void 0,this._layer=void 0,this._state=void 0,this._show=!0,this._style={},this._attr={},this._allowDrillPicking=!1,this._contextMenu=[],this.infoData=t.infoData,this._graphicEvent=new Kr,this._graphicEvent.addEventListener(te.ADD,this._onAdd,this),this._graphicEvent.addEventListener(te.REMOVE,this._onRemove,this),this.originOption=void 0,this._highlight=t.highlight,this._selectedHighlight=t.selectedHighlight,Ne.parseOption(this._highlight),Ne.parseOption(this._selectedHighlight),this.initHighlight(),this._popup=void 0,this._pSelected=void 0}return s(e,[{key:"boundingSphere",get:function(){return null}},{key:"graphicId",get:function(){return this._id}},{key:"type",get:function(){return""}},{key:"id",get:function(){return this.businessID},set:function(e){this.businessID=e}},{key:"show",get:function(){return this._show},set:function(e){this._show=e,this._nativeObjCesium&&(this._nativeObjCesium.show=this._show)}},{key:"attr",get:function(){return this._attr},set:function(e){this._attr=e}},{key:"allowDrillPicking",get:function(){return this._allowDrillPicking},set:function(e){this._allowDrillPicking=e}},{key:"graphicEvent",get:function(){return this._graphicEvent}},{key:"nativeObjCesium",get:function(){return this._nativeObjCesium}},{key:"state",get:function(){return this._state}},{key:"contextMenu",get:function(){return this._contextMenu},set:function(e){this._contextMenu=e}},{key:"_getLayerCollection",value:function(e){var t=void 0;switch(e){case"point_primitive":t=this._layer.points;break;case"billboard_primitive":case"bounce_billboard_primitive":t=this._layer.billboards;break;case"label_primitive":case"bounce_label_primitive":t=this._layer.labels;break;case"polyline_primitive":t=this._layer.polylines;break;case"flow_line_primitive":case"water_primitive":t=this._layer.primitives;break;case"cloud_primitive":t=this._layer.clouds}return t}},{key:"_mountedHook",value:function(){}},{key:"_addedHook",value:function(){var e,t=this;if(!this._nativeObjCesium)return!1;this._nativeObjCesium instanceof Promise?this._nativeObjCesium.then((function(e){var i;e.layerId=null===(i=t._layer)||void 0===i?void 0:i.layerId,e.graphicId=t._id})):(this._nativeObjCesium.layerId=null===(e=this._layer)||void 0===e?void 0:e.layerId,this._nativeObjCesium.graphicId=this._id)}},{key:"_removedHook",value:function(){}},{key:"_onAdd",value:function(e){var t=this;if(e){if(this._layer=e,this._mountedHook&&this._mountedHook(),this._layer.nativeObjCesium.entities&&this._nativeObjCesium)this._layer.nativeObjCesium.entities.add(this._nativeObjCesium);else if(this._layer.nativeObjCesium.add){var i=this._getLayerCollection(this.type);i?(this._nativeObjCesium&&(this._nativeObjCesium=i.add(this._nativeObjCesium)),this.update&&this.destroy&&this._layer.nativeObjCesium.add(this)):this._nativeObjCesium.readyPromise?this._nativeObjCesium.readyPromise.then((function(e){t._layer.nativeObjCesium.add(e)})):this.update&&this.destroy?this._layer.nativeObjCesium.add(this):this._nativeObjCesium&&this._layer.nativeObjCesium.add(this._nativeObjCesium)}this._addedHook&&this._addedHook(),this._state=Me.ADDED}}},{key:"_onRemove",value:function(){var e=this;if(this._layer){if(this._layer.nativeObjCesium.entities)this._layer.nativeObjCesium.entities.remove(this._nativeObjCesium);else if(this._layer.nativeObjCesium.remove){var t=this._getLayerCollection(this.type);t?(t.remove(this._nativeObjCesium),this.update&&this.destroy&&this._layer.nativeObjCesium.remove(this)):this._nativeObjCesium.readyPromise.then?this._nativeObjCesium.readyPromise.then((function(t){e._layer.nativeObjCesium.add(t)})):this.update&&this.destroy?this._layer.nativeObjCesium.remove(this):this._layer.nativeObjCesium.remove(this._nativeObjCesium)}this._removedHook&&this._removedHook(),this._state=Me.REMOVED}}},{key:"setBillboard",value:function(e){return e&&e.billboard&&(Ne.parseOption(e.billboard),this._nativeObjCesium.billboard?W.merge(this._nativeObjCesium.billboard,e):this._nativeObjCesium.billboard=new Cesium.LabelGraphics(e.billboard)),this}},{key:"setLabel",value:function(e){return e&&e.label&&(e.label.fillColor=e.label.color||e.label.fillColor,Ne.parseOption(e.label),this._nativeObjCesium.label?W.merge(this._nativeObjCesium.label,e.label):this._nativeObjCesium.label=new Cesium.LabelGraphics(e.label)),e&&0==e.label&&(this._nativeObjCesium.label=void 0),this}},{key:"setPolyline",value:function(e){return e&&e.polyline&&(Ne.parseOption(e.polyline),e.polyline.positions&&(e.polyline.positions=Ne.parsePositions(e.polyline.positions),e.polyline.positions=_e.transformWGS84ArrayToCartesianArray(e.polyline.positions)),this._nativeObjCesium.polyline?W.merge(this._nativeObjCesium.polyline,e.polyline):e.polyline.positions&&(this._nativeObjCesium.polyline=new Cesium.PolylineGraphics(e.polyline))),e&&0==e.polyline&&(this._nativeObjCesium.polyline=void 0),this}},{key:"setOptions",value:function(){return this}},{key:"remove",value:function(){return this._layer&&this._layer.removeGraphic(this),this}},{key:"addTo",value:function(e){return e&&e.addGraphic&&e.addGraphic(this),this}},{key:"addEventListener",value:function(e,t,i){return this._graphicEvent.addEventListener(e,t,i||this),this}},{key:"removeEventListener",value:function(e,t,i){return this._graphicEvent.removeEventListener(e,t,i||this),this}},{key:"raiseEvent",value:function(e,t){return this._graphicEvent.raiseEvent(e,t),this}},{key:"bindPopup",value:function(e){var t=this;this._popup=new ve(e),this._popup.addEventListener(ce.CLOSE,(function(){t.unSelected(t._e)})),this._popup.install(this)}},{key:"bindTooltip",value:function(e){var t=this;new Oe(e).install(this),this.addEventListener(Q.MOUSE_OUT,(function(e){t.tooltip.hide()})),this.addEventListener(Q.CLICK,(function(e){t.tooltip.hide()}))}},{key:"initHighlight",value:function(){var e=this;this._highlight&&this.addEventListener(Q.MOUSE_MOVE,(function(t){e.highlight(t)})),this._selectedHighlight&&this.addEventListener(Q.CLICK,(function(t){e.unSelected(),e.selectedHighlight(t)})),this._highlight&&this.addEventListener(Q.MOUSE_OUT,(function(t){e.unHighlight(t)}));var t=this;this._selectedHighlight&&this.addEventListener(te.BIND_POPUP,(function(){e._layer&&e._layer&&e._layer._popup.addEventListener(ce.CLOSE,(function(){e.unSelected(t._pSelected)}))}))}},{key:"highlight",value:function(e){}},{key:"unHighlight",value:function(e){this.setOptions(this.originOption)}},{key:"selectedHighlight",value:function(e){}},{key:"unSelected",value:function(e){}}],[{key:"registerType",value:function(e){e&&(we[e.toLocaleUpperCase()]=e.toLocaleLowerCase())}},{key:"getGraphicType",value:function(e){return we[e.toLocaleUpperCase()]||void 0}}]),e}();function ke(e,t,i){var n=Cesium.Cartesian3.subtract(e,t,new Cesium.Cartesian3),r=Cesium.Cartesian3.subtract(i,t,new Cesium.Cartesian3),o=Cesium.Cartesian3.cross(n,r,n);return.5*Cesium.Cartesian3.magnitude(o)}function $e(e){var t=0;if(!Array.isArray(e))return t;e[0]instanceof Cesium.Cartesian3||(e=_e.transformWGS84ArrayToCartesianArray(e));var i=Cesium.CoplanarPolygonGeometry.createGeometry(Cesium.CoplanarPolygonGeometry.fromPositions({positions:e,vertexFormat:Cesium.VertexFormat.POSITION_ONLY}));if(!i)return t;for(var n=i.attributes.position.values,r=i.indices,o=0;o<r.length;o+=3){t+=ke(Cesium.Cartesian3.unpack(n,3*r[o],new Cesium.Cartesian3),Cesium.Cartesian3.unpack(n,3*r[o+1],new Cesium.Cartesian3),Cesium.Cartesian3.unpack(n,3*r[o+2],new Cesium.Cartesian3))}return t}function Ue(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=180,i=90,n=-180,r=-90;if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(e){t=Math.min(t,e.lng||e.x),i=Math.min(i,e.lat||e.y),n=Math.max(n,e.lng||e.x),r=Math.max(r,e.lat||e.y)})),e>0){var o=Math.abs(n-n),a=Math.abs(r-i);t-=o*e,i-=a*e,n+=o*e,r+=a*e}return{west:t,south:i,east:n,north:r}}function Ge(e){if(e&&Array.isArray(e)){var t=Cesium.BoundingSphere.fromPoints(_e.transformWGS84ArrayToCartesianArray(e));return _e.transformCartesianToWGS84(t.center)}return new fe}function ze(e,t){t=t||{};for(var i=[],n=0;n<e.length-1;n++){var r=He(e[n],e[n+1],t.count);r&&r.length>0&&(i=i.concat(r))}return i}function He(e,t,i){if(!e||!t)return null;var n=[];i=i||40;var r,o,a,s,c,l,u=function(e){return 1-2*e+e*e},d=function(e){return 2*e-2*e*e},h=function(e){return e*e},p=0,f=parseFloat(e.lat),m=parseFloat(t.lat),g=parseFloat(e.lng),_=parseFloat(t.lng);_>g&&_-g>180&&g<0&&(g=360+g,_=360+_),l=0,m===f?(r=0,o=g-_):_===g?(r=Math.PI/2,o=f-m):(r=Math.atan((m-f)/(_-g)),o=(m-f)/Math.sin(r)),0===l&&(l=r+Math.PI/5),c=(a=o/2)*Math.cos(l)+g,s=a*Math.sin(l)+f;for(var y=0;y<i+1;y++){var C=g*u(p)+c*d(p)+_*h(p),v=f*u(p)+s*d(p)+m*h(p),T=e.lng,S=t.lng;n.push([T<0&&S>0?C-360:C,v]),p+=1/i}return n}function We(e){var t=0;if(e&&Array.isArray(e))for(var i=0;i<e.length-1;i++){var n=_e.transformWGS84ToCartographic(e[i]),r=_e.transformWGS84ToCartographic(e[i+1]),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(n,r);var a=o.surfaceDistance;t+=a=Math.sqrt(Math.pow(a,2)+Math.pow(r.height-n.height,2))}return t.toFixed(3)}function je(e){var t=0;if(e&&Array.isArray(e))for(var i=0;i<e.length-1;i++){t+=Cesium.Cartesian3.distanceSquared(e[i],e[i+1])}return t}function qe(e,t){var i=e,n=t;if(!i||!n)return 0;e instanceof Cesium.Cartesian3||(i=Ne.parsePosition(e),i=_e.transformWGS84ToCartesian(i)),t instanceof Cesium.Cartesian3||(n=Ne.parsePosition(t),n=_e.transformWGS84ToCartesian(n));var r=Cesium.Transforms.eastNorthUpToFixedFrame(i),o=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3),a=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(r,new Cesium.Matrix4),o,new Cesium.Cartesian3),s=Math.atan2(a.y,a.x)-Cesium.Math.PI_OVER_TWO;return s=Cesium.Math.TWO_PI-Cesium.Math.zeroToTwoPi(s),isNaN(s)?0:s}function Xe(e,t,i){return(e=parseFloat(e)||0)>=parseFloat(t)&&e<=parseFloat(i)}function Ye(e,t){var i=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e),n=Cesium.Ellipsoid.WGS84.cartesianToCartographic(t),r=new Cesium.EllipsoidGeodesic(i,n).interpolateUsingFraction(.5);return Cesium.Ellipsoid.WGS84.cartographicToCartesian(r)}function Ke(e,t){var i=Ne.parsePosition(e),n=Ne.parsePosition(t);i=_e.transformWGS84ToCartographic(i),n=_e.transformWGS84ToCartographic(n);var r=new Cesium.EllipsoidGeodesic(i,n).interpolateUsingFraction(.5);return new fe(Cesium.Math.toDegrees(r.longitude),Cesium.Math.toDegrees(r.latitude),r.height)}function Je(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,r=[];i=Math.max(+i,100),n=Math.max(+n,50);var o=Math.abs(e.lng-t.lng),a=Math.abs(e.lat-t.lat),s=Math.max(o,a),c=s/n;if(o>a){var l=(t.lat-e.lat)/n;e.lng-t.lng>0&&(c=-c);for(var u=0;u<n;u++){var d=i-4*Math.pow(-.5*s+Math.abs(c)*u,2)*i/Math.pow(s,2),h=e.lng+c*u,p=e.lat+l*u;r.push([h,p,d])}}else{var f=(t.lng-e.lng)/n;e.lat-t.lat>0&&(c=-c);for(var m=0;m<n;m++){var g=i-4*Math.pow(-.5*s+Math.abs(c)*m,2)*i/Math.pow(s,2),_=e.lng+f*m,y=e.lat+c*m;r.push([_,y,g])}}return r.push([t.lng,t.lat,t.alt||0]),r}function Qe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var et=function(e){u(i,e);var t=Ze(i);function i(e,r){var o;return n(this,i),o=t.call(this),r?(o._nativeObjCesium=j.create("div","div-icon anov-infoWin-init"),o._position=Ne.parsePosition(e),o.content=r,o._state=Me.INITIALIZED,o):(console.error("没有传入内容,无法显示!"),h(o))}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("div_icon")}},{key:"show",get:function(){return this._show},set:function(e){this._show=e,this._nativeObjCesium.style.display=this._show?"block":"none"}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e)}},{key:"content",get:function(){return this._nativeObjCesium.childNodes||[]},set:function(e){if(e&&"string"==typeof e)this._nativeObjCesium.innerHTML=e;else if(e&&e instanceof Element){for(;this._nativeObjCesium.hasChildNodes();)this._nativeObjCesium.removeChild(this._nativeObjCesium.firstChild);this._nativeObjCesium.appendChild(e)}}},{key:"_updateStyle",value:function(e,t,i){if(this._show&&e){var n="scale3d(1,1,1)",r=this._style.scaleByDistance,o=1;if(t&&r){var a=r.near||0,s=r.nearValue||1,c=r.far||Number.MAX_VALUE,l=r.farValue||0;if(t<a)n="scale3d(".concat(s,",").concat(s,",1)"),o=s;else if(t>c)n="scale3d(".concat(l,",").concat(l,",1)"),o=l;else{var u=s-(t-a)/(c-a)*(s-l);o=u,n="scale3d(".concat(u,",").concat(u,",1)")}}if(o<.01)this._nativeObjCesium.style.display="none";else{this._nativeObjCesium.style.display="block";var d=e.x-this._nativeObjCesium.offsetWidth/2,h=e.y-this._nativeObjCesium.offsetHeight/2;"LEFT"===this._style.horizontalOrigin?d=e.x-this._nativeObjCesium.offsetWidth:"CENTER"===this._style.horizontalOrigin||"RIGHT"===this._style.horizontalOrigin&&(d=e.x),"BOTTOM"===this._style.verticalOrigin?h=e.y:"CENTER"===this._style.verticalOrigin||"TOP"===this._style.verticalOrigin&&(h=e.y-this._nativeObjCesium.offsetHeight),this._style.offsetX&&(d+=this._style.offsetX*o),this._style.offsetY&&(h+=this._style.offsetY*o),"LEFT"===this._style.horizontalOrigin?"CENTER"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="right center":"TOP"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="right bottom":"BOTTOM"===this._style.verticalOrigin&&(this._nativeObjCesium.style.transformOrigin="right top"):"CENTER"===this._style.horizontalOrigin?"CENTER"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="center center":"TOP"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="center bottom":"BOTTOM"===this._style.verticalOrigin&&(this._nativeObjCesium.style.transformOrigin="center top"):"RIGHT"===this._style.horizontalOrigin&&("CENTER"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="left center":"TOP"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="left bottom":"BOTTOM"===this._style.verticalOrigin&&(this._nativeObjCesium.style.transformOrigin="left top")),this._nativeObjCesium.style.top=h+"px",this._nativeObjCesium.style.left=d+"px",this._nativeObjCesium.style.transform="".concat(n);var p=!0,f=this._style.distanceDisplayCondition;t&&f&&(p=Xe(t,f.near||0,f.far||Number.MAX_VALUE)),this._nativeObjCesium.style.display=p&&i?"block":"none"}}}},{key:"_onAdd",value:function(e){var t=this;this._layer=e,this._layer.nativeObjCesium.appendChild(this._nativeObjCesium);var i={layer:e,graphic:this,position:_e.transformWGS84ToCartesian(this._position)};this._nativeObjCesium.addEventListener("click",(function(){t._graphicEvent.raiseEvent(Q.CLICK,i)})),this._nativeObjCesium.addEventListener("mouseover",(function(){t._graphicEvent.raiseEvent(Q.MOUSE_OVER,i)})),this._nativeObjCesium.addEventListener("mouseout",(function(){t._graphicEvent.raiseEvent(Q.MOUSE_OUT,i)})),this._state=Me.ADDED}},{key:"_onRemove",value:function(){this._layer&&(this._layer.nativeObjCesium.removeChild(this._nativeObjCesium),this._state=Me.REMOVED)}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),!0===e.pointerEvents?this._nativeObjCesium.style.pointerEvents="all":this._nativeObjCesium.style.pointerEvents="none",this._style.className&&j.addClass(this._nativeObjCesium,this._style.className),this):this}}],[{key:"fromEntity",value:function(e,t){var n,r=Cesium.JulianDate.now();return n=new i(_e.transformCartesianToWGS84(e.position.getValue(r)),t),e.billboard&&(n.attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Qe(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(r))),n}}]),i}(Ve);Ve.registerType("div_icon");const tt=et;function it(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var rt=function(e){u(i,e);var t=nt(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=new Cesium.Entity({model:{}}),r._position=Ne.parsePosition(e.position),r._modelUrl=e.url,r._rotateAmount=0,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("model")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),0===this._rotateAmount&&(this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))))}},{key:"modelUrl",get:function(){return this._modelUrl},set:function(e){this._modelUrl=e,this._nativeObjCesium.model.uri=this._modelUrl}},{key:"rotateAmount",get:function(){return this._rotateAmount},set:function(e){var t=this;this._rotateAmount=+e,this._nativeObjCesium.orientation=new Cesium.CallbackProperty((function(){return t._position.heading+=t._rotateAmount,(t._position.heading>=360||t._position.heading<=-360)&&(t._position.heading=0),Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(t._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(t._position.heading),Cesium.Math.toRadians(t._position.pitch),Cesium.Math.toRadians(t._position.roll)))}),!1)}},{key:"_mountedHook",value:function(){this.position=this._position,this.modelUrl=this._modelUrl}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.uri,W.merge(this._style,e),W.merge(this._nativeObjCesium.model,e),this):this}}],[{key:"fromEntity",value:function(e,t){var n=Cesium.JulianDate.now(),r=new i(_e.transformCartesianToWGS84(e.position.getValue(n)),t);return r.attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?it(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):it(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)),r}}]),i}(Ve);Ve.registerType("model");const ot=rt;function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var st=function(e){u(i,e);var t=at(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._nativeObjCesium=new Cesium.Cesium3DTileset(r),e._tileVisibleCallback=void 0,e._properties=void 0,e._state=Me.INITIALIZED,e.selected={feature:void 0,originalColor:new Cesium.Color},e.highlighted={feature:void 0,originalColor:new Cesium.Color},e}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("tileset")}},{key:"show",set:function(e){this._show=e,this._nativeObjCesium.readyPromise.then((function(t){t.show=e}))}},{key:"_bindVisibleEvent",value:function(){this._tileVisibleCallback&&this._tileVisibleCallback(),this._tileVisibleCallback=this._nativeObjCesium.tileVisible.addEventListener(this._updateTile,this)}},{key:"_updateTile",value:function(e){for(var t=this,i=e.content,n=function(){var e=i.getFeature(r);t._properties&&t._properties.length&&t._properties.forEach((function(t){e.hasProperty(t.key)&&e.getProperty(t.key)===t.keyValue&&e.setProperty(t.propertyName,t.propertyValue)}))},r=0;r<i.featuresLength;r++)n()}},{key:"setPosition",value:function(e){return e=Ne.parsePosition(e),this._nativeObjCesium.readyPromise.then((function(t){var i=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt)),n=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(e.heading),Cesium.Math.toRadians(e.pitch),Cesium.Math.toRadians(e.roll))));Cesium.Matrix4.multiply(i,n,i),t.root.transform=i})),this}},{key:"setHeadingPitchRoll",value:function(e,t,i){return this._nativeObjCesium.readyPromise.then((function(n){var r=n.root.transform,o=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(e||0),Cesium.Math.toRadians(t||0),Cesium.Math.toRadians(i||0))));Cesium.Matrix4.multiply(r,o,r),n.root.transform=r})),this}},{key:"setLabel",value:function(e,t){return this}},{key:"clampToGround",value:function(){return this._nativeObjCesium.readyPromise.then((function(e){var t=Cesium.Cartographic.fromCartesian(e.boundingSphere.center),i=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,t.height),n=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,0),r=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3);e.modelMatrix=Cesium.Matrix4.fromTranslation(r)})),this}},{key:"setHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._nativeObjCesium.readyPromise.then((function(i){var n=Cesium.Cartographic.fromCartesian(i.boundingSphere.center),r=Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,n.height),o=Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,t?e:n.height+e),a=Cesium.Cartesian3.subtract(o,r,new Cesium.Cartesian3);i.modelMatrix=Cesium.Matrix4.fromTranslation(a)})),this}},{key:"setScale",value:function(e){return this._nativeObjCesium.readyPromise.then((function(t){var i=t.root.transform;e>0&&1!==e&&Cesium.Matrix4.multiplyByUniformScale(i,e,i),t.root.transform=i})),this}},{key:"setProperties",value:function(e){return this._properties=e,this._bindVisibleEvent(),this}},{key:"setSplitDirection",value:function(e){return this._nativeObjCesium.readyPromise.then((function(t){t.splitDirection=e})),this}},{key:"setCustomShader",value:function(e){return this._nativeObjCesium.readyPromise.then((function(t){t.customShader=e})),this}},{key:"setStyle",value:function(e){return e&&e instanceof Cesium.Cesium3DTileStyle&&(this._style=e,this._nativeObjCesium.readyPromise.then((function(t){t.style=e}))),this}},{key:"highlight",value:function(e){this.unHighlight(e),e.feature&&e.feature!==this.selected.feature&&(this.highlighted.feature=e.feature,this.highlighted.originalColor=Cesium.clone(e.feature.color),W.merge(e.feature,this._highlight))}},{key:"unHighlight",value:function(e){Cesium.defined(this.highlighted.feature)&&(this.highlighted.feature.color=this.highlighted.originalColor,this.highlighted.feature=void 0)}},{key:"selectedHighlight",value:function(e){e&&e.feature&&(this.selected.feature=e.feature,e.feature===this.highlighted.feature?(this.selected.originalColor=Cesium.clone(this.highlighted.originalColor),this.highlighted.feature=void 0):this.selected.originalColor=Cesium.clone(e.feature.color),this._pSelected=Cesium.clone(this.selected),W.merge(e.feature,this._selectedHighlight))}},{key:"unSelected",value:function(e){Cesium.defined(this.selected.feature)&&(this.selected.feature.color=this.selected.originalColor,this.selected.feature=void 0),e&&e.feature&&e.originalColor&&(e.feature.color=e.originalColor,e.feature=void 0)}}]),i}(Ve);Ve.registerType("tileset");const ct=st;function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ut=function(e){u(i,e);var t=lt(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._icon=r,o._size=[32,32],o._nativeObjCesium={position:void 0,image:void 0,width:0,height:0},o.position=o._positions,o._state=Me.INITIALIZED,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("billboard_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position)}},{key:"icon",get:function(){return this._icon},set:function(e){this._icon=e,this._nativeObjCesium.image=this._icon}},{key:"size",get:function(){return this._size},set:function(e){if(!Array.isArray(e))throw new Error("Billboard Primitive: the size invalid");this._size=e,this._nativeObjCesium.width=this._size[0]||32,this._nativeObjCesium.height=this._size[1]||32}},{key:"_mountedHook",value:function(){this.position=this._position,this.icon=this._icon,this.size=this._size}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position&&delete e.image&&delete e.width&&delete e.height,W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("billboard_primitive");const dt=ut;function ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var pt=10,ft=.1,mt=function(e){u(i,e);var t=ht(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r))._currentOffset=new Cesium.Cartesian2(0,0),o._isUp=!0,o._state=Me.INITIALIZED,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("bounce_billboard_primitive")}},{key:"update",value:function(){if(this._show){var e=this._style.maxOffsetY||pt,t=this._style.offsetAmount||ft;this._currentOffset.y>=0?this._isUp=!0:this._currentOffset.y<=-e&&(this._isUp=!1),this._currentOffset.y+=t*(this._isUp?-1:1),this._nativeObjCesium.pixelOffset=this._currentOffset}}},{key:"destroy",value:function(){return Cesium.destroyObject(this)}}]),i}(dt);Ve.registerType("bounce_billboard_primitive");const gt=mt;function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var yt=function(e){u(i,e);var t=_t(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._text=r,o._nativeObjCesium={position:void 0,text:void 0},o._state=Me.INITIALIZED,o.position=o._position,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("label_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position)}},{key:"text",get:function(){return this._text},set:function(e){this._text=e,this._nativeObjCesium.text=this._text}},{key:"_mountedHook",value:function(){this.position=this._position,this.text=this._text}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position&&delete e.text,W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("label_primitive");const Ct=yt;function vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Tt=10,St=.1,At=function(e){u(i,e);var t=vt(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r))._currentOffset=new Cesium.Cartesian2(0,0),o._isUp=!0,o._state=Me.INITIALIZED,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("bounce_label_primitive")}},{key:"update",value:function(){if(this._show){var e=this._style.maxOffsetY||Tt,t=this._style.offsetAmount||St;this._currentOffset.y>=0?this._isUp=!0:this._currentOffset.y<=-e&&(this._isUp=!1),this._currentOffset.y+=t*(this._isUp?-1:1),this._nativeObjCesium.pixelOffset=this._currentOffset}}},{key:"destroy",value:function(){return Cesium.destroyObject(this)}}]),i}(Ct);Ve.registerType("bounce_label_primitive");const bt=At;function Et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var xt=function(e){u(i,e);var t=Et(i);function i(e){var r;return n(this,i),(r=t.call(this))._position=Ne.parsePosition(e),r._nativeObjCesium={position:void 0,scale:{x:12,y:8}},r._state=Me.INITIALIZED,r.position=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("cloud_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position)}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position,W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("cloud_primitive");const Pt=xt;function Dt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Mt={minRadius:10,minHeight:30,color:Cesium.Color.RED,slices:128,speed:10},It=function(e){u(i,e);var t=wt(i);function i(e,r,o){var a;return n(this,i),(a=t.call(this))._center=Ne.parsePosition(e),a._nativeObjCesium=void 0,a._height=o,a._radius=r,a._currentHeight=o||0,a._currentRadius=10,a._style=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Dt(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},Mt),a._state=Me.INITIALIZED,a}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("diffuse_wall_primitive")}},{key:"center",get:function(){return this._center},set:function(e){return this._center=Ne.parsePosition(e),this}},{key:"radius",get:function(){return this._radius},set:function(e){return this._radius=e,this}},{key:"height",get:function(){return this._height},set:function(e){return this._height=e,this}},{key:"_getPositions",value:function(){for(var e=[],t=Cesium.Transforms.eastNorthUpToFixedFrame(_e.transformWGS84ToCartesian(this._center)),i=0;i<this._style.slices;i++){var n=i/this._style.slices*Cesium.Math.TWO_PI,r=Math.cos(n),o=Math.sin(n),a=new Cesium.Cartesian3(r*this._currentRadius,o*this._currentRadius,0);e.push(Cesium.Matrix4.multiplyByPoint(t,a,new Cesium.Cartesian3))}return e.push(e[0]),e}},{key:"_getHeights",value:function(e,t){for(var i=[],n=0;n<e;n++)i.push(t);return i}},{key:"update",value:function(e){if(this._nativeObjCesium=this._nativeObjCesium&&this._nativeObjCesium.destroy(),this._currentRadius+=this._radius/this._style.speed/20,this._currentHeight-=this._height/this._style.speed/20,(this._currentRadius>this._radius||this._currentHeight<this._style.minHeight)&&(this._currentRadius=this._style.minRadius,this._currentHeight=this._height),!this._style.slices||this._style.slices<3)return!1;var t=this._getPositions();if(!t||!t.length)return!1;var i=new Cesium.WallGeometry({positions:t,minimumHeights:this._getHeights(t.length,0),maximumHeights:this._getHeights(t.length,this._currentHeight)});this._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:i}),appearance:new Cesium.MaterialAppearance({material:Cesium.Material.fromType("WallDiffuse",{color:this._style.color}),flat:!0}),asynchronous:!1}),this._nativeObjCesium.update(e)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),this):this}},{key:"destroy",value:function(){return Cesium.destroyObject(this)}}]),i}(Ve);Ve.registerType("diffuse_wall_primitive");const Rt=It;function Ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Lt=function(e){u(i,e);var t=Ot(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._radius=r||{x:10,y:10,z:10},o._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),o.position=o._positions,o._state=Me.INITIALIZED,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("elec_ellipsoid_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.geometryInstances.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(_e.transformWGS84ToCartesian(this._position))}},{key:"radius",get:function(){return this._radius},set:function(e){this._radius=e,this._nativeObjCesium.geometryInstances.geometry=new Cesium.EllipsoidGeometry({radii:this._radius,maximumCone:Cesium.Math.PI_OVER_TWO})}},{key:"_setAppearance",value:function(){this._style&&(this._nativeObjCesium.appearance=new Cesium.MaterialAppearance({material:Cesium.Material.fromType("EllipsoidElectric",{color:this._style.color||Cesium.Color.GREEN,speed:this._style.speed||5})}))}},{key:"_mountedHook",value:function(){this.radius=this._radius,this.position=this._position,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),this._setAppearance(),this):this}}]),i}(Ve);Ve.registerType("elec_ellipsoid_primitive");const Bt=Lt;function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Nt=function(e){u(i,e);var t=Ft(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._width=o,r._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),r.positions=r._positions,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("flow_line_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.geometryInstances.geometry=new Cesium.PolylineGeometry({positions:_e.transformWGS84ArrayToCartesianArray(this._positions),width:this._width,vertexFormat:Cesium.PolylineMaterialAppearance.VERTEX_FORMAT})}},{key:"_setAppearance",value:function(){this._nativeObjCesium.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineFlowType,{color:this._style.color||new Cesium.Color(1,0,0,.7),speed:this._style.speed||1,percent:this._style.percent||.03,gradient:this._style.gradient||.1})})}},{key:"_mountedHook",value:function(){this.positions=this._positions,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(W.merge(this._style,e),e.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType),this._setAppearance()),this}}]),i}(Ve);Ve.registerType("flow_line_primitive");const Vt=Nt;function kt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ut={color:Cesium.Color.ORANGE},Gt=function(e){u(i,e);var t=$t(i);function i(e,r,o,a){var s;return n(this,i),(s=t.call(this))._center=Ne.parsePosition(e),s._length=r||100,s._topRadius=o||1,s._bottomRadius=a||50,s._nativeObjCesium=new Cesium.PrimitiveCollection,s.center=s._center,s._style=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):kt(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},Ut),s._state=Me.INITIALIZED,s}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("light-cylinder-primitive")}},{key:"center",get:function(){return this._center},set:function(e){this._center=Ne.parsePosition(e),this._updatePrimitives()}},{key:"length",get:function(){return this._length},set:function(e){this._length=e,this._updatePrimitives()}},{key:"topRadius",get:function(){return this._topRadius},set:function(e){this._topRadius=e,this._updatePrimitives()}},{key:"bottomRadius",get:function(){return this._bottomRadius},set:function(e){this._bottomRadius=e,this._updatePrimitives()}},{key:"_computeEllipsePositions",value:function(e,t){var i=Cesium.EllipseGeometryLibrary.computeEllipsePositions({center:_e.transformWGS84ToCartesian(e),semiMajorAxis:t,semiMinorAxis:t,rotation:0,granularity:.005},!1,!0),n=Cesium.Cartesian3.unpackArray(i.outerPositions);return n.push(n[0]),n}},{key:"_createCylinderInstance",value:function(e,t,i){for(var n=t.slice(),r=t.length,o=2*r,a=[],s=1/(r-1),c=[],l=[],u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=Cesium.Cartographic.fromCartesian(e);return i.height+=t,Cesium.Cartographic.toCartesian(i)},d=0;d<r;d++){l.push(u(e[d],i)),a.push(d*s,0);var h=(d+1)%r,p=o-(d+1);c.push.apply(c,[p-1,p,d]),c.push.apply(c,[d,h,p-1])}for(var f in l)n.push(l[r-f-1]),a.push(1-f*s,1);var m=Cesium.PolygonGeometry.createGeometry(new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(n),perPositionHeight:!0}));return m.indices=c,m.attributes.st.values=a,new Cesium.GeometryInstance({geometry:m})}},{key:"_getCircleImage",value:function(){var e=document.createElement("canvas");e.width=512,e.height=512;var t=e.getContext("2d");return t.fillStyle="rgba(255,255,255,0)",t.strokeStyle="rgba(255, 255, 255,255)",t.setLineDash([50,50]),t.lineWidth=30,t.beginPath(),t.arc(256,256,150,0,2*Math.PI,!0),t.stroke(),t.restore(),e}},{key:"_getParticlesImage",value:function(e){var t=document.createElement("canvas");t.width=64,t.height=256;var i=t.getContext("2d");return i.clearRect(0,0,64,256),i.drawImage(e,0,0),i.drawImage(e,33,0),t}},{key:"_updatePrimitives",value:function(){var e=this;this._nativeObjCesium.removeAll();var t=0===this._center.alt,i=this._computeEllipsePositions(this._center,this._topRadius),n=this._computeEllipsePositions(this._center,.7*this._bottomRadius),r=this._computeEllipsePositions(this._center,this._bottomRadius),o={geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(this._computeEllipsePositions(this._center,2*this._bottomRadius)),perPositionHeight:!t}),asynchronous:!1})},a=t?new Cesium.GroundPrimitive(o):new Cesium.Primitive(o);a.appearance=new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType(Cesium.Material.CircleRingType,{color:this._style.color})});var s=t?new Cesium.GroundPrimitive(o):new Cesium.Primitive(o);s.appearance=new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType(Cesium.Material.CircleRotateType,{color:this._style.color,image:this._getCircleImage()})});var c=new Cesium.Primitive({geometryInstances:this._createCylinderInstance(i,n,this._length),appearance:new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType(Cesium.Material.CylinderFadeType,{color:this._style.color})}),asynchronous:!1});t?Cesium.GroundPrimitive.initializeTerrainHeights().then((function(){e._nativeObjCesium.add(a),e._nativeObjCesium.add(s),e._nativeObjCesium.add(c)})):(this._nativeObjCesium.add(a),this._nativeObjCesium.add(s),this._nativeObjCesium.add(c)),Cesium.Resource.fetchImage({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAEACAYAAADSoXR2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjExQTg0NDEyMDEzQjExRUFBNDhBRjhGMUMzOUUyNTU0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjExQTg0NDEzMDEzQjExRUFBNDhBRjhGMUMzOUUyNTU0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTFBODQ0MTAwMTNCMTFFQUE0OEFGOEYxQzM5RTI1NTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTFBODQ0MTEwMTNCMTFFQUE0OEFGOEYxQzM5RTI1NTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz41vRwAAAAE90lEQVR42uydyW4UMRCG3T2dgYSAEGs4sp44cCJBcGUJbwCvALwWPAI8ABwAiUVwgLBdkEikJEiAGMhkZqhfU1aa1sy0g+yaJPyWSupOpPjz0uVyucrJer2eG2fJ3ZgLAQhAgC0PgN8XIlkqgGLE75oih0WmRVZEvop0rHog18rnRe6IzInsthyCXFt+TuSKyGmRXZZDgK5eFrkv8l7kiUhrxN/JSo3pigSvcNmI1bCh3b5LK2+NqHyvyEF9x3z5HgqRRViOAXhW5JrCoNdei/y20gMYxhmRSyIXRY6JTMT4DENLW+SdyD19x/NajDmwmYIW79Hnn+MA4GJEAAIQgABJbMJB+n5Sl9zWZvR9DABUfkJkVt8fi3zUldAEoKl24Y2S1fPZEmBdZFHkkb4vxTLRQ5djbyUf0ncYrD/UADUB8MZno2Q19yx7gIqIAAQgAAEIQIAtYZT+85LvRnjQCoPKR3rQUgN4Y3ZeK30g8qps0qeeAzDn4TWD9+ySG+BBS90DaGnVg9a2tgnR4il9/jkOACoiAhCAAASIZpAAFl6yulO0JACo/IDrn6CedP1zxOciv6wAYNnAP3RVBeWtJQCWzG8iL/X9g4vkqNzMctzUXtintt2KM/aS+bmQaY90rb8CF6tSKiICEIAABCAAAQiwbfcFIWVCbUcc9bZDLKiYAKj4uOv7Bb+ILLj+8W7PCgC7Jhzv44Qdh9yrru8V61jPgd645gD2io+15RiC5ZA5ENNPmGmDmtrta9YAVEQE2FlrQUM/J6efU8cSAD87ojodBaccS6kgiiErGiq/qe93XT+3oGU5BJnbyKrIUs6BQZoQUEcrQ7CYagiGqeKiMgnXLXsg5uJUm/RQJKy8fGS7PMw6SgVQPrJFGZr0kCfUL/7IFjIzrLGpemBQ0kPbehL6I9vMjUh6oEVEAAIQgAAEIAABdpyj0qcK71YrqGUJANNrv+sHOcAiRpDDM1cTY1BEHk7kqyP/2Ac5vLEEQEG8aDnIoTb5ObZRWg5ywG5o1dX4ClNYxT7IISgJPsXGpLut9MCWU0S5bqkmdAa3LQEwcZDAfkZ3tthQfkwNkVeeD6kiuaUabcp6DpS9YyalrAdQ8bT1EFQVUabarND9fNuyB2gREYAABCAAAQhAAAIQoM770UgBXARCIr/koDogVlzgrWuxemBKd0m4JnBed0+5ZQ9gn3BK5LK+P4y5ewoB8DFiKO91COLFfwVuTCZV1hSoYw1APZCsFIkbN1Haaa87wwiKQe6eT27AEX6esPVVd8/kOOdAz/oz9FE0p+uGIKUeqE5C8xgSKiICEIAABCAAAQhAAAIQgAAEIAABCECA6AA+sbkREyDUUYlKD6ggZwzRkr8tewBhusisv+0in5qE/hFchoZTE0TL4p8sTbtIpyahQ4Ag5fKpSVBmfdDECvQTZjoM0U9N6KgkwH9xY7PXpPiCmq5yuaLVldHIO7jgNi5XfOEhCqNh9udHV/RnC5YAUDTftdV4/ivvwEoRVS9XXPWa1FIT5ird8jpSB+BDN3rO8AaGMnGy0I0QRYTvdk6NkOsucuhGCMAgI8Q0isaHbmAevNMhiD4P6iZhstANGiQE2PEGCRo2NcgAsQDwKnxWFdlT17/duWU1BJmuHz6A5bwbEsCScgh+qAHit3Jr1oooOPExdRBLbeJjSpuwuy30AAH+CDAAPH5ltESNYl4AAAAASUVORK5CYII="}).then((function(t){var n=new Cesium.Primitive({geometryInstances:e._createCylinderInstance(i,r,e._length),appearance:new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType(Cesium.Material.CylinderParticlesType,{color:e._style.color,image:e._getParticlesImage(t)})}),asynchronous:!1});e._nativeObjCesium.add(n)}))}},{key:"_mountedHook",value:function(){this.center=this._center}},{key:"update",value:function(e){this._nativeObjCesium.update(e)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),this):this}},{key:"destroy",value:function(){return Cesium.destroyObject(this)}}]),i}(Ve);Ve.registerType("light-cylinder-primitive");const zt=Gt;function Ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Wt=function(e){u(i,e);var t=Ht(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._modelUrl=r,o._nativeObjCesium=Cesium.Model.fromGltf({url:r}),o._state=Me.INITIALIZED,o.position=o._position,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("model_primitive")}},{key:"readyPromise",get:function(){return this._nativeObjCesium.readyPromise}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e);var t=_e.transformWGS84ToCartesian(this._position);this._nativeObjCesium.modelMatrix=Cesium.Transforms.headingPitchRollToFixedFrame(t,new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll)))}},{key:"modelUrl",get:function(){return this._modelUrl},set:function(e){this._modelUrl=e,this._nativeObjCesium=Cesium.Model.fromGltf({url:e}),this.position=this._position}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"getMaterial",value:function(e){return this._nativeObjCesium.getMaterial(e)}},{key:"getMesh",value:function(e){return this._nativeObjCesium.getMesh(e)}},{key:"getNode",value:function(e){return this._nativeObjCesium.getNode(e)}},{key:"getNodes",value:function(){return this._nativeObjCesium._runtime.nodes}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("model_primitive");const jt=Wt;function qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Xt={pixelSize:8,outlineColor:Cesium.Color.BLUE,outlineWidth:2},Yt=function(e){u(i,e);var t=qt(i);function i(e){var r;return n(this,i),(r=t.call(this))._position=Ne.parsePosition(e),r._nativeObjCesium={position:void 0},r._state=Me.INITIALIZED,r.position=r._position,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("point_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position)}},{key:"_mountedHook",value:function(){this.position=this._position,W.merge(this._nativeObjCesium,Xt,this._style)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position,W.merge(this._style,e),W.merge(this._nativeObjCesium,Xt,this._style),this):this}}]),i}(Ve);Ve.registerType("point_primitive");const Kt=Yt;function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Qt=function(e){u(i,e);var t=Jt(i);function i(e){var r;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._nativeObjCesium={positions:[]},r.positions=r._positions,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("polyline_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.positions=_e.transformWGS84ArrayToCartesianArray(this._positions)}},{key:"center",get:function(){return Ge(this._positions)}},{key:"distance",get:function(){return We(this._positions)}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("polyline_primitive");const Zt=Qt;function ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ti=function(e){u(i,e);var t=ei(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._radius=r,o._nativeObjCesium=new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),o._state=Me.INITIALIZED,o.position=o._position,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("scan_circle_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.geometryInstances.geometry=new Cesium.EllipseGeometry({center:_e.transformWGS84ToCartesian(this._position),semiMajorAxis:this._radius,semiMinorAxis:this._radius})}},{key:"radius",get:function(){return this._radius},set:function(e){this._radius=e,this._nativeObjCesium.geometryInstances.geometry.semiMajorAxis=this._radius,this._nativeObjCesium.geometryInstances.geometry.semiMinorAxis=this._radius}},{key:"_setAppearance",value:function(){this._style&&(this._nativeObjCesium.appearance=new Cesium.MaterialAppearance({material:Cesium.Material.fromType("CircleScan",{color:this._style.color||Cesium.Color.WHITE,speed:this._style.speed||10})}))}},{key:"_mountedHook",value:function(){this.position=this._position,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(W.merge(this._style,e),e.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType),this._setAppearance()),this}}]),i}(Ve);Ve.registerType("scan_circle_primitive");const ii=ti;function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ri=function(e){u(i,e);var t=ni(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._width=o,r._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("trail_line_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.geometryInstances.geometry=new Cesium.PolylineGeometry({positions:_e.transformWGS84ArrayToCartesianArray(this._positions),width:this._width})}},{key:"_setAppearance",value:function(){this._nativeObjCesium.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("PolylineTrail",{color:this._style.color||new Cesium.Color(1,0,0,.7),speed:this._style.speed||5})})}},{key:"_mountedHook",value:function(){this.positions=this._positions,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(W.merge(this._style,e),e.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType),this._setAppearance()),this}}]),i}(Ve);Ve.registerType("trail_line_primitive");const oi=ri;function ai(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var si=function(e){u(i,e);var t=ai(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._positions=Ne.parsePositions(e),o._nativeObjCesium=new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),o._video=r,o._state=Me.INITIALIZED,o.positions=o._positions,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("video_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.geometryInstances.geometry=Cesium.PolygonGeometry.fromPositions({positions:_e.transformWGS84ArrayToCartesianArray(this._positions),height:this._style.height,extrudedHeight:this._style.extrudedHeight,closeTop:this._style.closeTop,closeBottom:this._style.closeBottom,vertexFormat:Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT})}},{key:"video",get:function(){return this._video},set:function(e){this._video=e,this._setAppearance()}},{key:"_setAppearance",value:function(){this._nativeObjCesium.appearance=new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType("Image",{image:this._video})})}},{key:"_mountedHook",value:function(){this.positions=this._positions,this.video=this._video}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(W.merge(this._style,e),this._style.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType)),this}}]),i}(Ve);Ve.registerType("video_primitive");const ci=si;function li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ui=function(e){u(i,e);var t=li(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._holes=o.map((function(e){return Ne.parsePositions(e)})),r._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}}),asynchronous:!0}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("water_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.geometryInstances.geometry=new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(_e.transformWGS84ArrayToCartesianArray(this._positions),this._holes.map((function(e){return new Cesium.PolygonHierarchy(_e.transformWGS84ArrayToCartesianArray(e))}))),height:this._style.height||0,extrudedHeight:this._style.extrudedHeight||0,closeTop:this._style.closeTop||!0,closeBottom:this._style.closeBottom||!0,vertexFormat:Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT})}},{key:"_setAppearance",value:function(){this._style&&(this._nativeObjCesium.appearance=new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType("Water",{baseWaterColor:this._style.baseWaterColor||new Cesium.Color(.2,.3,.6,1),blendColor:this._style.blendColor||new Cesium.Color(0,1,.699,1),specularMap:this._style.specularMap||Cesium.Material.DefaultImageId,normalMap:this._style.normalMap||Cesium.buildModuleUrl("static/images/water/waterNormalsSmall.jpg"),frequency:this._style.frequency||1e3,animationSpeed:this._style.animationSpeed||.01,amplitude:this._style.amplitude||10,specularIntensity:this._style.specularIntensity||.5})}))}},{key:"_mountedHook",value:function(){this.positions=this._positions,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e)return 0===Object.keys(e).length||(W.merge(this._style,e),this._style.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType),this._setAppearance()),this}}]),i}(Ve);Ve.registerType("water_primitive");const di=ui;function hi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var fi=function(e){u(i,e);var t=pi(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,o))._nativeObjCesium=new Cesium.Entity({billboard:{}}),r._position=Ne.parsePosition(e),r.position=r._position,W.merge(r._style,o),r.setOptions(o),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("billboard")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),W.merge(this._nativeObjCesium.billboard,e),this.setLabel(this._style),this.originOption=Cesium.clone(this._style,!1),this):this}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.billboard,this._highlight),this.setLabel(this._style)}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now(),r=_e.transformCartesianToWGS84(e.position.getValue(n));return e.billboard&&((t=new i(r,{image:e.billboard.image.getValue(n)})).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):hi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n))),t}}]),i}(Ve);Ve.registerType("billboard");const mi=fi;function gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var _i=function(e){u(i,e);var t=gi(i);function i(e,r,o,a){var s;return n(this,i),(s=t.call(this))._position=Ne.parsePosition(e),s._length=r,s._width=o,s._height=a,s._nativeObjCesium=new Cesium.Entity({box:{dimensions:{x:+s._length,y:+s._width,z:+s._height}}}),s.position=s._position,s._state=Me.INITIALIZED,s}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("box")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"length",get:function(){return this._length},set:function(e){return this._length=e||0,this._nativeObjCesium.box.dimensions.x=+this._length,this}},{key:"width",get:function(){return this._width},set:function(e){return this._width=e||0,this._nativeObjCesium.box.dimensions.y=+this._width,this}},{key:"height",get:function(){return this._height},set:function(e){return this._height=e||0,this._nativeObjCesium.box.dimensions.z=+this._height,this}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.length&&delete e.width&&delete e.height,W.merge(this._style,e),W.merge(this._nativeObjCesium.box,e)),this}}]),i}(Ve);Ve.registerType("box");const yi=_i;function Ci(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function vi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ci(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Si=function(e){u(i,e);var t=Ti(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._nativeObjCesium=new Cesium.Entity({polygon:{}}),o._center=Ne.parsePosition(e),o._radius=+r||0,o._rotateAmount=0,o._stRotation=0,o._state=Me.INITIALIZED,o.center=o._center,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("circle")}},{key:"center",get:function(){return this._center},set:function(e){return this._center=Ne.parsePosition(e),this._nativeObjCesium.polygon.hierarchy=this._computeHierarchy(),this}},{key:"radius",get:function(){return this._radius},set:function(e){return this._radius=+e,this._nativeObjCesium.polygon.hierarchy=this._computeHierarchy(),this}},{key:"rotateAmount",get:function(){return this._rotateAmount},set:function(e){var t=this;return this._rotateAmount=+e,this._nativeObjCesium.polygon.stRotation=new Cesium.CallbackProperty((function(){return t._stRotation+=t._rotateAmount,(t._stRotation>=360||t._stRotation<=-360)&&(t._stRotation=0),Cesium.Math.toRadians(t._stRotation)}),!1),this}},{key:"_computeHierarchy",value:function(){var e=new Cesium.PolygonHierarchy,t=Cesium.EllipseGeometryLibrary.computeEllipsePositions({center:_e.transformWGS84ToCartesian(this._center),semiMajorAxis:this._radius,semiMinorAxis:this._radius,rotation:0,granularity:.005},!1,!0),i=Cesium.Cartesian3.unpackArray(t.outerPositions);return i.push(i[0]),e.positions=i,e}},{key:"_mountedHook",value:function(){this.center=this._center}},{key:"setLabel",value:function(e,t){return this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._center),this._nativeObjCesium.label=vi(vi({},t),{},{text:e}),this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium.polygon,e),this):this}}]),i}(Ve);Ve.registerType("circle");const Ai=Si;function bi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var xi=function(e){u(i,e);var t=Ei(i);function i(e){var r;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._nativeObjCesium=new Cesium.Entity({corridor:{}}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("corridor")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.corridor.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),this}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium.corridor,e)),this}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();e.polyline&&((t=new i(_e.transformCartesianArrayToWGS84Array(e.polyline.positions.getValue(n)))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):bi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)));return t}}]),i}(Ve);Ve.registerType("corridor");const Pi=xi;function Di(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var wi=function(e){u(i,e);var t=Di(i);function i(e,r,o,a){var s;return n(this,i),(s=t.call(this))._position=Ne.parsePosition(e),s._length=+r||0,s._topRadius=+o||0,s._bottomRadius=+a||0,s._nativeObjCesium=new Cesium.Entity({cylinder:{}}),s._state=Me.INITIALIZED,s.position=s._position,s}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("cylinder")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"length",get:function(){return this._length},set:function(e){return this._length=+e||0,this._nativeObjCesium.cylinder.length=this._length,this}},{key:"topRadius",get:function(){return this._topRadius},set:function(e){return this._topRadius=+e||0,this._nativeObjCesium.cylinder.topRadius=this._topRadius,this}},{key:"bottomRadius",get:function(){return this._bottomRadius},set:function(e){return this._bottomRadius=+e||0,this._nativeObjCesium.cylinder.bottomRadius=this._bottomRadius,this}},{key:"_mountedHook",value:function(){this.position=this._position,this.length=this._length,this.topRadius=this._topRadius,this.bottomRadius=this._bottomRadius}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.length&&delete e.topRadius&&delete e.bottomRadius,W.merge(this._style,e),W.merge(this._nativeObjCesium.cylinder,e)),this}}]),i}(Ve);Ve.registerType("cylinder");const Mi=wi;function Ii(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ri=function(e){u(i,e);var t=Ii(i);function i(e,r,o){var a;return n(this,i),(a=t.call(this))._position=Ne.parsePosition(e),a._semiMajorAxis=+r||0,a._semiMinorAxis=+o||0,a._nativeObjCesium=new Cesium.Entity({ellipse:{}}),a._state=Me.INITIALIZED,a.position=a._position,a}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("ellipse")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"semiMajorAxis",get:function(){return this._semiMajorAxis},set:function(e){return this._semiMajorAxis=+e||0,this._nativeObjCesium.ellipse.semiMajorAxis=this._semiMajorAxis,this}},{key:"semiMinorAxis",get:function(){return this._semiMinorAxis},set:function(e){return this._semiMinorAxis=+e||0,this._nativeObjCesium.ellipse.semiMinorAxis=this._semiMinorAxis,this}},{key:"_mountedHook",value:function(){this.position=this._position,this.semiMajorAxis=this._semiMajorAxis,this.semiMinorAxis=this._semiMinorAxis}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.semiMajorAxis&&delete e.semiMinorAxis,W.merge(this._style,e),W.merge(this._nativeObjCesium.ellipse,e)),this}}]),i}(Ve);Ve.registerType("ellipse");const Oi=Ri;function Li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Bi=function(e){u(i,e);var t=Li(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._radius=r||{x:10,y:10,z:10},o._nativeObjCesium=new Cesium.Entity({ellipsoid:{}}),o._state=Me.INITIALIZED,o.position=o._position,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("ellipsoid")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"radius",get:function(){return this._radius},set:function(e){return this._radius=e||{x:10,y:10,z:10},this._nativeObjCesium.ellipsoid.radii=this._radius,this}},{key:"_mountedHook",value:function(){this.position=this._position,this.radius=this._radius}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.radius,W.merge(this._style,e),W.merge(this._nativeObjCesium.ellipsoid,e)),this}}]),i}(Ve);Ve.registerType("ellipsoid");const Fi=Bi;function Ni(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ki={text:"test",color:"#ffff00"},$i=function(e){u(i,e);var t=Vi(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this))._nativeObjCesium=new Cesium.Entity({label:{}}),r._position=Ne.parsePosition(e),r._state=Me.INITIALIZED,r.position=r._position,r._style=W.merge(r._style,ki,o),r.setOptions(r._style),r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("label")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this}},{key:"text",get:function(){return this._text},set:function(e){return this._text=e,this._nativeObjCesium.label.text=this._text,this}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.label,this._highlight)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position,Ne.parseOption(e),e.fillColor=e.color,W.merge(this._style,e),W.merge(this._nativeObjCesium.label,e),this):this}}],[{key:"fromEntity",value:function(e){var t=Cesium.JulianDate.now(),n=_e.transformCartesianToWGS84(e.position.getValue(t)),r=void 0;return e.billboard&&((r=new i(n,e.name)).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ni(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(t))),r}}]),i}(Ve);Ve.registerType("label");const Ui=$i;function Gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var zi=function(e){u(i,e);var t=Gi(i);function i(e,r,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(n(this,i),(a=t.call(this))._position=Ne.parsePosition(e),a._width=+r||0,a._height=+o||0,s.normal&&"string"==typeof s.normal){var c=String(s.normal).toLocaleUpperCase();s.normal="X"===c?Cesium.Cartesian3.UNIT_X:"Y"===c?Cesium.Cartesian3.UNIT_Y:Cesium.Cartesian3.UNIT_Z}else s.normal=Cesium.Cartesian3.UNIT_Z;return a._normal=s.normal,a._distance=s.distance||0,a._nativeObjCesium=new Cesium.Entity({plane:{dimensions:{x:a._width,y:a._height},plane:new Cesium.Plane(a._normal,a._distance)}}),a.position=a._position,a._state=Me.INITIALIZED,a}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("plane")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"width",get:function(){return this._width},set:function(e){return this._width=+e||0,this._nativeObjCesium.plan.dimensions.x=this._width,this}},{key:"height",get:function(){return this._height},set:function(e){return this._height=+e||0,this._nativeObjCesium.plan.dimensions.y=this._height,this}},{key:"distance",get:function(){return this._distance},set:function(e){return this._distance=e,this._nativeObjCesium.plane.plane.distance=e,this}},{key:"_mountedHook",value:function(){this.position=this._position,this.distance=this._distance}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.dimensions,W.merge(this._style,e),W.merge(this._nativeObjCesium.plane,e)),this}}]),i}(Ve);Ve.registerType("plane");const Hi=zi;function Wi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ji(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Wi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var qi={vrButton:!0,animation:!1,baseLayerPicker:!1,imageryProvider:!1,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,navigationInstructionsInitiallyVisible:!1,creditContainer:void 0,shouldAnimate:!0};const Xi=function(){function e(){n(this,e)}return s(e,null,[{key:"init",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"string"==typeof t&&!document.getElementById(t))throw new Error("Viewer:必须传入放置三维球的dom id");i.changeDeaultView=Cesium.defaultValue(i.changeDeaultView,!0),i.changeDeaultView&&e.setDeaultView(),i.changeDefaultAccessToken=Cesium.defaultValue(i.changeDefaultAccessToken,!0),i.changeDefaultAccessToken&&e.setDefaultAccessToken();var n=new Cesium.Viewer(t,ji(ji({},qi),i));return n._cesiumWidget._creditContainer.style.display="none",i.noNight=Cesium.defaultValue(i.noNight,!0),i.noNight&&e.setNoNight(!0),n}},{key:"setDeaultView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:78,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:23,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:140,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:60;Cesium.Camera.DEFAULT_VIEW_RECTANGLE=Cesium.Rectangle.fromDegrees(e,t,i,n)}},{key:"settianditu_key",value:function(e){return this._tianditu_key=e}},{key:"setDefaultAccessToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Cesium.Ion.defaultAccessToken=e||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJlY2I3ODgyYS1lMDM4LTQ4ZWUtODYxZC04ODRhM2JmNTExOWYiLCJpZCI6OTkwMywic2NvcGVzIjpbImFzciIsImdjIl0sImlhdCI6MTU1NTI0MzI4Mn0.FD7eNN4wnZnt7ux5H5gQNupNYddLoY9GJerY0d9islc"}},{key:"setNoNight",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];viewer.scene.light=e?new Cesium.DirectionalLight({direction:new Cesium.Cartesian3(.35492591601301104,-.8909182691839401,-.2833588392420772)}):new Cesium.SunLight}}]),e}();const Yi={};const Ki=function(){function e(t){n(this,e),t=t||{},this._id=W.uuid(),this.businessID=t.id||W.uuid(),this._nativeObjCesium=void 0,this._viewer=void 0,this._state=void 0,this._show=!0,this._isGround=!1,this._cache={},this._attr={},Ne.parseOption(t),this._layerEvent=new Xr,this._layerEvent.addEventListener(ne.ADD,this._onAdd,this),this._layerEvent.addEventListener(ne.REMOVE,this._onRemove,this),this._popup=void 0}return s(e,[{key:"boundingSphere",get:function(){return null}},{key:"layerId",get:function(){return this._id}},{key:"id",get:function(){return this.businessID}},{key:"nativeObjCesium",get:function(){return this._nativeObjCesium}},{key:"show",get:function(){return this._show},set:function(e){this._show=e,this._nativeObjCesium&&(this._nativeObjCesium.show=this._show)}},{key:"layerEvent",get:function(){return this._layerEvent}},{key:"attr",get:function(){return this._attr},set:function(e){this._attr=e}},{key:"state",get:function(){return this._state}},{key:"_addedHook",value:function(){}},{key:"_removedHook",value:function(){this.clear()}},{key:"_onAdd",value:function(e){this._viewer=e,this._nativeObjCesium&&(this._nativeObjCesium instanceof Cesium.PrimitiveCollection?this._isGround?this._viewer.scene.groundPrimitives.add(this._nativeObjCesium):this._viewer.scene.primitives.add(this._nativeObjCesium):this._viewer.dataSources.add(this._nativeObjCesium),this._addedHook&&this._addedHook(),this._state=Me.ADDED)}},{key:"_onRemove",value:function(){this._nativeObjCesium&&this._viewer&&(this._cache={},this._nativeObjCesium instanceof Cesium.PrimitiveCollection?(this._nativeObjCesium.removeAll(),this._isGround?this._viewer.scene.groundPrimitives.remove(this._nativeObjCesium):this._viewer.scene.primitives.remove(this._nativeObjCesium)):this._nativeObjCesium.then?(this._nativeObjCesium.then((function(e){e.entities.removeAll()})),this._viewer.dataSources.remove(this._nativeObjCesium)):(this._nativeObjCesium.entities&&this._nativeObjCesium.entities.removeAll(),this._viewer.dataSources.remove(this._nativeObjCesium)),this._removedHook&&this._removedHook(),this._state=Me.REMOVED)}},{key:"_addGraphic",value:function(e){this._cache.hasOwnProperty(e.graphicId)||(this._cache[e.graphicId]=e,this._nativeObjCesium&&e.raiseEvent(te.ADD,this),this._state===Me.CLEARED&&(this._state=Me.ADDED))}},{key:"_removeGraphic",value:function(e){this._cache.hasOwnProperty(e.graphicId)&&(this._nativeObjCesium&&e.raiseEvent(te.REMOVE,this),delete this._cache[e.graphicId])}},{key:"addGraphic",value:function(e){return this._addGraphic(e),this}},{key:"addGraphics",value:function(e){var t=this;return Array.isArray(e)&&e.forEach((function(e){t._addGraphic(e)})),this}},{key:"removeGraphic",value:function(e){return this._removeGraphic(e),this}},{key:"getGraphic",value:function(e){return this._cache[e]||void 0}},{key:"getGraphicById",value:function(e){var t=this,i=void 0;return Object.keys(this._cache).forEach((function(n){t._cache[n].id===e&&(i=t._cache[n])})),i}},{key:"getGraphicsByAttr",value:function(e,t){var i=[];return this.eachGraphic((function(n){n.attr[e]===t&&i.push(n)}),this),i}},{key:"eachGraphic",value:function(e,t){var i=this;return Object.keys(this._cache).forEach((function(n){e&&e.call(t||i,i._cache[n])})),this}},{key:"getGraphics",value:function(){var e=this,t=[];return Object.keys(this._cache).forEach((function(i){t.push(e._cache[i])})),t}},{key:"clear",value:function(){}},{key:"remove",value:function(){this._viewer&&this._viewer.removeLayer(this)}},{key:"addTo",value:function(e){return e.addLayer&&e.addLayer(this),this}},{key:"setOptions",value:function(e){}},{key:"addEventListener",value:function(e,t,i){return this._layerEvent.addEventListener(e,t,i||this),this}},{key:"removeEventListener",value:function(e,t,i){return this._layerEvent.removeEventListener(e,t,i||this),this}},{key:"raiseEvent",value:function(e,t){return this._layerEvent.raiseEvent(e,t),this}},{key:"bindPopup",value:function(e){var t=this;this._popup=new ve(e),this._popup.install(this),this.eachGraphic((function(e){e.raiseEvent(te.BIND_POPUP,t)}))}},{key:"bindTooltip",value:function(e){var t=this;new Oe(e).install(this),this.addEventListener(Q.MOUSE_OUT,(function(e){t.tooltip.hide()})),this.addEventListener(Q.CLICK,(function(e){t.tooltip.hide()}))}}],[{key:"registerType",value:function(e){e&&(Yi[e.toLocaleUpperCase()]=e.toLocaleLowerCase())}},{key:"getLayerType",value:function(e){return Yi[e.toLocaleUpperCase()]||void 0}}]),e}();function Ji(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Qi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ji(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}const Zi=function(){function e(t){n(this,e),this._viewer=t,this._options={}}return s(e,[{key:"_setViewerOption",value:function(){var e,t,i;return this._viewer.nativeObjCesium.shadows=null!==(e=null===(t=this._options)||void 0===t?void 0:t.shadows)&&void 0!==e&&e,this._viewer.nativeObjCesium.resolutionScale=(null===(i=this._options)||void 0===i?void 0:i.resolutionScale)||1,this}},{key:"_setCanvasOption",value:function(){return this._options.tabIndex&&this._viewer.scene.canvas.setAttribute("tabIndex",this._options.tabIndex),this}},{key:"_setSceneOption",value:function(){var e,t,i,n,r=this._viewer.scene;return r.skyAtmosphere.show=null===(e=this._options.showAtmosphere)||void 0===e||e,r.sun.show=null===(t=this._options.showSun)||void 0===t||t,r.moon.show=null===(i=this._options.showMoon)||void 0===i||i,r.postProcessStages.fxaa.enabled=null!==(n=this._options.enableFxaa)&&void 0!==n&&n,r.msaaSupported&&(r.msaaSamples=+this._options.msaaSamples||1),this}},{key:"_setSkyBoxOption",value:function(){if(!this._options.skyBox)return this;var e=this._options.skyBox;if(e instanceof Cesium.SkyBox)this._viewer.scene.skyBox=e;else{var t,i=this._viewer.scene.skyBox;i.show=null===(t=e.show)||void 0===t||t,e.offsetAngle&&(i.offsetAngle=e.offsetAngle),null!=e&&e.sources&&(i.sources=e.sources)}return this}},{key:"_setGlobeOption",value:function(){var e,t,i,n,r,o,a,s,c,l,u,d;if(!this._options.globe)return this;var h=this._viewer.scene.globe,p=this._options.globe;return W.merge(h,{show:null===(e=null==p?void 0:p.show)||void 0===e||e,showGroundAtmosphere:null===(t=null==p?void 0:p.showGroundAtmosphere)||void 0===t||t,enableLighting:null===(i=null==p?void 0:p.enableLighting)||void 0===i||i,depthTestAgainstTerrain:null!==(n=null==p?void 0:p.depthTestAgainstTerrain)&&void 0!==n&&n,tileCacheSize:+(null==p?void 0:p.tileCacheSize)||100,preloadSiblings:null!==(r=null==p?void 0:p.preloadSiblings)&&void 0!==r&&r,showSkirts:null===(o=null==p?void 0:p.showSkirts)||void 0===o||o,baseColor:(null==p?void 0:p.baseColor)||new Cesium.Color(0,0,.5,1),terrainExaggeration:(null==p?void 0:p.terrainExaggeration)||1,terrainExaggerationRelativeHeight:(null==p?void 0:p.terrainExaggerationRelativeHeight)||0}),W.merge(h.translucency,{enabled:null!==(a=null==p||null===(s=p.translucency)||void 0===s?void 0:s.enabled)&&void 0!==a&&a,backFaceAlpha:+(null==p||null===(c=p.translucency)||void 0===c?void 0:c.backFaceAlpha)||1,backFaceAlphaByDistance:null==p||null===(l=p.translucency)||void 0===l?void 0:l.backFaceAlphaByDistance,frontFaceAlpha:+(null==p||null===(u=p.translucency)||void 0===u?void 0:u.frontFaceAlpha)||1,frontFaceAlphaByDistance:null==p||null===(d=p.translucency)||void 0===d?void 0:d.frontFaceAlphaByDistance}),this}},{key:"_setCameraController",value:function(){var e,t,i,n,r,o,a;if(null===(e=this._options)||void 0===e||!e.cameraController)return this;var s=this._viewer.scene.screenSpaceCameraController,c=this._options.cameraController;return W.merge(s,{enableInputs:null===(t=null==c?void 0:c.enableInputs)||void 0===t||t,enableRotate:null===(i=null==c?void 0:c.enableRotate)||void 0===i||i,enableTilt:null===(n=null==c?void 0:c.enableTilt)||void 0===n||n,enableTranslate:null===(r=null==c?void 0:c.enableTranslate)||void 0===r||r,enableZoom:null===(o=null==c?void 0:c.enableZoom)||void 0===o||o,enableCollisionDetection:null===(a=null==c?void 0:c.enableCollisionDetection)||void 0===a||a,minimumZoomDistance:+(null==c?void 0:c.minimumZoomDistance)||1,maximumZoomDistance:+(null==c?void 0:c.maximumZoomDistance)||40489014}),this}},{key:"setOptions",value:function(e){return 0===Object.keys(e).length||(this._options=Qi(Qi({},this._options),e),this._setViewerOption()._setCanvasOption()._setSceneOption()._setSkyBoxOption()._setGlobeOption()._setCameraController()),this}}]),e}();var en=i(506);function tn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}const nn=function(){function e(t,i,r){n(this,e),this._url=t||"https://api.tianditu.gov.cn/v2/search",this.apiKey=i||"b832b9764939cbb0919148c548b669ba",this._params=Cesium.defaultValue(r,{})}return s(e,[{key:"geocode",value:function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):tn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({keyWord:e,level:11,mapBound:"-180,-90,180,90",queryType:4,start:0,count:10},this._params);return new Cesium.Resource({url:this._url,queryParameters:{format:"json",postStr:JSON.stringify(t),tk:this.apiKey,type:"query"}}).fetchJson().then((function(e){if(!e.count||0==e.count)return[];var t=e.suggests,i=[];return t.forEach((function(e){i.push({displayName:e.name,destination:e.gbCode+""})})),i}))}}]),e}();function rn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}const on=function(){function e(t,i,r){n(this,e),this._url=t,this.apiKey=i,this._params=Cesium.defaultValue(r,{})}return s(e,[{key:"geocode",value:function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):rn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({keyword:e,pageIndex:1,pageSize:10,returnGeometry:!0,searchField:"NAME",f:"json"},this._params);return new Cesium.Resource({url:this._url.replace("token",this.apiKey),queryParameters:t}).fetchJson().then((function(e){if(!e.featuresTotal||0==e.featuresTotal)return[];var t=e.features,i=[];return t.forEach((function(e){i.push({displayName:e.NAME,destination:e.coor})})),i}))}}]),e}();const an=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n(this,e),!t.viewer)throw new Error("必须传入viewer");this.viewer=t.viewer,this._init(t)}return s(e,[{key:"_init",value:function(e){}},{key:"_blurInput",value:function(){(document.querySelector(".cesium-geocoder-input").blur(),window.getSelection)?window.getSelection().removeAllRanges():document.selection&&document.selection.empty&&document.selection.empty()}},{key:"_getContainer",value:function(e){var t=document.createElement("div");return t.setAttribute("class","cesium-viewer-geocoderContainer"),"string"==typeof e&&(e=document.getElementById(e)),e.appendChild(t),t}},{key:"tanslate",value:function(){for(var e=document.getElementsByClassName("cesium-geocoder-input"),t=0;t<e.length;t++)e[t].setAttribute("placeholder","请输入地名...")}}]),e}();function sn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function cn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):sn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const un=function(e){u(i,e);var t=ln(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,e)}return s(i,[{key:"_init",value:function(e){var t=e.url||"https://api.tianditu.gov.cn/v2/search",i=e.apiKey||"b832b9764939cbb0919148c548b669ba";this._scaleRatio=e.scaleRatio||1,this._params=Cesium.defaultValue(e.params,{});var n=new nn(t,i,this._params),r=this._getContainer(e.container),o=new Cesium.Geocoder(cn(cn({},e),{},{container:r,geocoderServices:[n],destinationFound:this.flyToDestination.bind(this)}));o.viewModel.flyStart=new Cesium.Event,o.viewModel.flyStart.addEventListener(this._blurInput),o.viewModel.complete.addEventListener(this._blurInput),this.tanslate()}},{key:"flyToDestination",value:function(e,t){var i=this;e.flyStart.raiseEvent();var n=cn({specify:t,keyWord:e._searchText,level:11,mapBound:"-180,-90,180,90",queryType:1,start:0,count:10},this._params),r=new Cesium.Resource({url:e._geocoderServices[0]._url,queryParameters:{format:"json",postStr:JSON.stringify(n),tk:e._geocoderServices[0].apiKey,type:"query"}});r.fetchJson().then((function(t){if(t.count&&0!=r.count)if(1==t.resultType){var n=t.pois[0];Xn.flyToPosition(i.viewer,n.lonlat,0,-70,1/i._scaleRatio*1e3,e._flightDuration,(function(){e._complete.raiseEvent()}))}else{if(3!=t.resultType)return;var o=t.area;if(!o)return;for(var a=o.bound.split(","),s=[],c=0;c<a.length;c++)if((c+1)%2==0){var l=a[c-1]+","+a[c];s.push(l)}if(s.length<2)return;Xn.flyToPositions(i.viewer,s,0,-70,1/i._scaleRatio*1,e._flightDuration,(function(){e._complete.raiseEvent()}))}}))}}]),i}(an);const dn=Object.freeze({TIANDITU:0,TIANDITU_SHANXI:1});function hn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function pn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):hn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var mn=function(e){u(i,e);var t=fn(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,e)}return s(i,[{key:"_init",value:function(e){var t=e.url||"https://shaanxi.tianditu.gov.cn/ServiceSystem/MapSearch/rest/service/searchPOI/token/SearchServer/0/fuzzy",i=e.apiKey||"04x-Fu5nGOnU7RY7";this._scaleRatio=e.scaleRatio||1,this._params=Cesium.defaultValue(e.params,{});var n=new on(t,i,this._params),r=this._getContainer(e.container),o=new Cesium.Geocoder(pn(pn({},e),{},{container:r,geocoderServices:[n],destinationFound:this.flyToDestination.bind(this)}));o.viewModel.flyStart=new Cesium.Event,o.viewModel.flyStart.addEventListener(this._blurInput),o.viewModel.complete.addEventListener(this._blurInput),this.tanslate()}},{key:"flyToDestination",value:function(e,t){e.flyStart.raiseEvent(),Xn.flyToPosition(this.viewer,t,0,-70,1/this._scaleRatio*1e3,e._flightDuration,(function(){e._complete.raiseEvent()}))}}]),i}(an);const gn=mn;const _n=function(){function e(){n(this,e)}return s(e,null,[{key:"createGeocoder",value:function(e,t){var i=void 0;switch(e){case dn.TIANDITU:i=new un(t);break;case dn.TIANDITU_SHANXI:i=new gn(t)}return i}}]),e}();var yn=function(){function e(){n(this,e)}return s(e,null,[{key:"_setContent",value:function(t){e.content=e.content.replace("{{__VERSION__}}",t.version).replace("{{__TIME__}}",e._getTime()).replace("{{__AUTHOR__}}",t.author).replace("{{__HOME_PAGE__}}",t.home_page)}},{key:"_getTime",value:function(){var e=new Date,t=e.getMonth()+1;t=t<10?"0"+t:t;var i=e.getDate();return i=i<10?"0"+i:i,"".concat(e.getFullYear(),"-").concat(t,"-").concat(i)}},{key:"consoleOut",value:function(){setTimeout((function(){console.clear(),console.log(e.content,"font-size:20px;padding-left:70px;color:#FF3300;","font-size:14px;padding-left:50px;color:#3366FF;font-style:oblique;","font-size:12px;color:#3366FF;")}),2e3)}}]),e}();function Cn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function vn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Cn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}X(yn,"content","%c \n @anov/gis \n %c \n 三维WebGIS二次开发SDK %c \n\n 版本: {{__VERSION__}}\n 编译日期:{{__TIME__}}\n npm地址: https://www.npmjs.com/package/@anov/gis\n 开发作者: {{__AUTHOR__}}\n 网站主页: {{__HOME_PAGE__}} \n\n\n 微信:drmj2022\n QQ:1621018105\n 手机号:16619716371 \n \n\n 版权声明:\n 任何个人和机构在遵守下列条件的前提下可以永久免费使用:\n 1)程序包完整引用;\n 2)保留此版权信息在控制台输出。\n 我方保留对此版权信息的最终解释权。");var Tn={vrButton:!1,animation:!1,baseLayerPicker:!1,imageryProvider:!1,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,navigationInstructionsInitiallyVisible:!1,creditContainer:void 0,shouldAnimate:!0,showFPS:!1,flyDuration:3,language:"chinese",copyRight:!0,scaleRatio:1},Sn=function(){function e(t){var i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,e),!t||"string"==typeof t&&!document.getElementById(t))throw new Error("Viewer:必须传入放置三维球的dom id");if(r.changeDeaultView=Cesium.defaultValue(r.changeDeaultView,!0),r.defaultView=Cesium.defaultValue(r.defaultView,[78,23,140,60]),r.changeDeaultView&&this.setDeaultView(r.defaultView),r.changeDefaultAccessToken=Cesium.defaultValue(r.changeDefaultAccessToken,!0),r.changeDefaultAccessToken&&this.setDefaultAccessToken(),this.initEnvironment(),this._options=vn(vn(vn({},Tn),r),{},{geocoder:!1}),this._nativeObjCesium=new Cesium.Viewer(t,this._options),this._options.showFPS&&(this._nativeObjCesium.scene.debugShowFramesPerSecond=!0),this._scaleRatio=this._options.scaleRatio,new $r(this),this._viewerEvent=new Gr,this._sceneEvent=new Hr(this),this._options.center&&this.flyToPosition(this._options.center,this._options.flyDuration,(function(){i.raiseEvent(Z.FLY_COMPLETE)})),this._viewerOption=new Zi(this),this._layerContainer=j.create("div","viewer-layers","string"==typeof t?document.getElementById(t):t),this._layerCache={},this._nativeObjCesium._cesiumWidget._creditContainer.style.display="none",setTimeout((function(){i.createDefaultGeocoderContainer(r.geocoderType)}),0),this._options.baseLayerPicker){var o=r.tiandituKey||"b8ddad3f97aded37e6d58ae4867e5267";ar.init(this,o)}this._options.showMapInfo&&new rr(this),"chinese"==this._options.language&&new sr(this).toChinese(),this._options.copyRight&&yn.consoleOut()}return s(e,[{key:"scaleRatio",get:function(){return this._scaleRatio}},{key:"nativeObjCesium",get:function(){return this._nativeObjCesium}},{key:"container",get:function(){return this._nativeObjCesium.container}},{key:"extend",get:function(){return this._nativeObjCesium.extend}},{key:"sceneModePicker",get:function(){return this._nativeObjCesium.sceneModePicker}},{key:"navigationHelpButton",get:function(){return this._nativeObjCesium.navigationHelpButton}},{key:"baseLayerPicker",get:function(){return this._nativeObjCesium.baseLayerPicker}},{key:"fullscreenButton",get:function(){return this._nativeObjCesium.fullscreenButton}},{key:"layerContainer",get:function(){return this._layerContainer}},{key:"scene",get:function(){return this._nativeObjCesium.scene}},{key:"camera",get:function(){return this._nativeObjCesium.camera}},{key:"canvas",get:function(){return this._nativeObjCesium.scene.canvas}},{key:"dataSources",get:function(){return this._nativeObjCesium.dataSources}},{key:"imageryLayers",get:function(){return this._nativeObjCesium.imageryLayers}},{key:"terrainProvider",get:function(){return this._nativeObjCesium.terrainProvider},set:function(e){e&&(this._nativeObjCesium.terrainProvider=e)}},{key:"entities",get:function(){return this._nativeObjCesium.entities}},{key:"postProcessStages",get:function(){return this._nativeObjCesium.scene.postProcessStages}},{key:"clock",get:function(){return this._nativeObjCesium.clock}},{key:"viewerEvent",get:function(){return this._viewerEvent}},{key:"screenSpaceEventHandler",get:function(){return this._nativeObjCesium.screenSpaceEventHandler}},{key:"cameraPosition",get:function(){var e=_e.transformCartesianToWGS84(this.camera.positionWC);return e&&(e.heading=Cesium.Math.toDegrees(this.camera.heading),e.pitch=Cesium.Math.toDegrees(this.camera.pitch),e.roll=Cesium.Math.toDegrees(this.camera.roll)),e}},{key:"resolution",get:function(){var e=this.scene.canvas.width,t=this.scene.canvas.height,i=_e.transformWindowToWGS84(new Cesium.Cartesian2(e/2|0,t-1),this),n=_e.transformWindowToWGS84(new Cesium.Cartesian2(1+e/2|0,t-1),this);return i&&n?Math.abs(i.lng-n.lng):1}},{key:"viewBoundsRectangle",get:function(){var e=this.scene.canvas.width,t=this.scene.canvas.height,i=_e.transformWindowToWGS84(new Cesium.Cartesian2(0,t),this),n=_e.transformWindowToWGS84(new Cesium.Cartesian2(e,0),this);return i&&n?Cesium.Rectangle.fromDegrees(i.lng,i.lat,n.lng,n.lat):Cesium.Rectangle.MAX_VALUE}},{key:"level",get:function(){return this._nativeObjCesium.scene.globe._surface._debug.maxDepthVisited}},{key:"initEnvironment",value:function(){en.Z.initEnvironment()}},{key:"setOptions",value:function(e){return this._viewerOption.setOptions(e),this}},{key:"createDefaultGeocoderContainer",value:function(e){if(Cesium.defined(e)){var t=document.querySelector(".cesium-viewer-toolbar"),i=(t.offsetHeight,t.offsetWidth),n=document.createElement("div");n.setAttribute("class","geocoderContainerDefault"),n.style.right=i+7+"px",this.container.appendChild(n),_n.createGeocoder(e,{viewer:this,container:n,scene:this.scene})}}},{key:"setDeaultView",value:function(e){var t;Cesium.Camera.DEFAULT_VIEW_RECTANGLE=(t=Cesium.Rectangle).fromDegrees.apply(t,Fe(e))}},{key:"setDefaultAccessToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Cesium.Ion.defaultAccessToken=e||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzZDE4NjNiNC1jZDY5LTQ4MjctOTdjMi1iYTJiNzRmNDc3YmUiLCJpZCI6MTY1MzEsInNjb3BlcyI6WyJhc3IiLCJnYyJdLCJpYXQiOjE1NzA2OTQ4NDJ9.dOY7whEypIg6v8dbIFQdd5NeQZRLM2po13XAJBMpuRs"}},{key:"setNoNight",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scene.light=e?new Cesium.DirectionalLight({direction:new Cesium.Cartesian3(.35492591601301104,-.8909182691839401,-.2833588392420772)}):new Cesium.SunLight}},{key:"_addLayer",value:function(e){!this._layerCache[e.type]&&(this._layerCache[e.type]={}),Object(this._layerCache[e.type]).hasOwnProperty(e.id)||(e.raiseEvent(ne.ADD,this),this._layerCache[e.type][e.id]=e)}},{key:"_removeLayer",value:function(e){Object(this._layerCache[e.type]).hasOwnProperty(e.id)&&(e.raiseEvent(ne.REMOVE,this),delete this._layerCache[e.type][e.id])}},{key:"changeSceneMode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 2===e?this._nativeObjCesium.scene.morphTo2D(t):3===e?this._nativeObjCesium.scene.morphTo3D(t):2.5===e&&this._nativeObjCesium.scene.morphToColumbusView(t),this}},{key:"getImageryLayerInfo",value:function(e){var t=this._nativeObjCesium.camera.getPickRay(e);return this._nativeObjCesium.imageryLayers.pickImageryLayerFeatures(t,this._nativeObjCesium.scene)}},{key:"addBaseImageryLayer",value:function(e){return e?(this.imageryLayers.addImageryProvider(e),this):this}},{key:"addTerrain",value:function(e){return this}},{key:"removeTerrain",value:function(){return this._nativeObjCesium.terrainProvider=new Cesium.EllipsoidTerrainProvider,this}},{key:"addLayer",value:function(e){return this._addLayer(e),this}},{key:"removeLayer",value:function(e){return this._removeLayer(e),this}},{key:"hasLayer",value:function(e){return Object(this._layerCache[e.type]).hasOwnProperty(e.id)}},{key:"getLayer",value:function(e){var t=this.getLayers().filter((function(t){return t.id===e}));return t&&t.length?t[0]:void 0}},{key:"getLayers",value:function(){var e=this,t=[];return Object.keys(this._layerCache).forEach((function(i){var n=e._layerCache[i];Object.keys(n).forEach((function(e){t.push(n[e])}))})),t}},{key:"eachLayer",value:function(e,t){var i=this;return Object.keys(this._layerCache).forEach((function(n){var r=i._layerCache[n];Object.keys(r).forEach((function(i){e.call(t,r[i])}))})),this}},{key:"flyTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0;if(e)if(e instanceof Ki&&e.flyTo)e.flyTo(i,n,r,o);else{var a=this._nativeObjCesium.flyTo(e.nativeObjCesium||e,{duration:t,offset:new Cesium.HeadingPitchRange(Cesium.Math.toRadians(i),Cesium.Math.toRadians(n),r)});a&&a.then((function(){o&&o()}))}}},{key:"flyToTileset",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-60;if(this._nativeObjCesium&&(e=e.nativeObjCesium||e))return e.readyPromise.then((function(e){var o=e.boundingSphere.radius;t._nativeObjCesium.flyTo(e,{duration:i,offset:new Cesium.HeadingPitchRange(0,Cesium.Math.toRadians(r),o*n)})}))}},{key:"flyToPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e){var n=(e=Ne.parsePosition(e)).alt||0,r=new fe(e.lng,e.lat,0),o=_e.transformWGS84ToCartesian(r),a=e.heading||0,s=e.pitch||-90;return Xn.flyToPoint(this,o,a,s,n,t,i),this}}},{key:"flyToPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-90,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(e){e=Ne.parsePosition(e);var a=_e.transformWGS84ToCartesian(e);return Xn.flyToPoint(this,a,t,i,n,r,o),this}}},{key:"zoomTo",value:function(e){return this._nativeObjCesium.zoomTo(e.nativeObjCesium||e)}},{key:"addEventListener",value:function(e,t,i){return this._viewerEvent.addEventListener(e,t,i||this),this._sceneEvent.addEventListener(e,t,i||this),this}},{key:"addEventListenerOnce",value:function(e,t,i){return this._viewerEvent.addEventListenerOnce(e,t,i||this)}},{key:"raiseEvent",value:function(e,t){return this._viewerEvent.raiseEvent(e,t),this}},{key:"removeEventListener",value:function(e,t,i){return this._viewerEvent.removeEventListener(e,t,i||this),this._sceneEvent.removeEventListener(e,t,i||this),this}},{key:"destroy",value:function(){var e=this;return Object.keys(this._layerCache).forEach((function(t){var i=e._layerCache[t];Object.keys(i).forEach((function(t){e._removeLayer(i[t])}))})),this._nativeObjCesium.destroy(),j.empty(this.container),this._nativeObjCesium=void 0,this._baseLayerPicker=void 0,this._layerCache={},en.Z.Initialized=!1,this}},{key:"exportScene",value:function(e){this.scene.render();var t=this.canvas.toDataURL("image/png").replace("image/png","image/octet-stream"),i=document.createElement("a"),n=W.dataURLtoBlob(t),r=URL.createObjectURL(n);return i.download="".concat(e||"scene",".png"),i.href=r,i.click(),this}},{key:"showFrames",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scene.debugShowFramesPerSecond=e}}]),e}();const An=Sn;function bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var En=Cesium,xn=En.BoxGeometry,Pn=En.Cartesian3,Dn=En.defined,wn=En.DeveloperError,Mn=En.GeometryPipeline,In=En.Matrix3,Rn=En.Matrix4,On=En.Transforms,Ln=En.VertexFormat,Bn=En.BufferUsage,Fn=En.CubeMap,Nn=En.loadCubeMap,Vn=En.RenderState,kn=En.VertexArray,$n=En.BlendingState,Un=En.SceneMode,Gn=En.ShaderProgram,zn=En.ShaderSource,Hn=En.SkyBox,Wn=function(e){u(i,e);var t=bn(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r)).offsetAngle=(null==r?void 0:r.offsetAngle)||0,e}return s(i,[{key:"update",value:function(e,t){var i=this;if(this.show&&(e.mode===Un.SCENE3D||e.mode===Un.MORPHING)&&e.passes.render){var n=e.context;if(this._sources!==this.sources){this._sources=this.sources;var o=this.sources;if(!(Dn(o.positiveX)&&Dn(o.negativeX)&&Dn(o.positiveY)&&Dn(o.negativeY)&&Dn(o.positiveZ)&&Dn(o.negativeZ)))throw new wn("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(r(o.positiveX)!==r(o.negativeX)||r(o.positiveX)!==r(o.positiveY)||r(o.positiveX)!==r(o.negativeY)||r(o.positiveX)!==r(o.positiveZ)||r(o.positiveX)!==r(o.negativeZ))throw new wn("this.sources properties must all be the same type.");"string"==typeof o.positiveX?Nn(n,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 Fn({context:n,source:o}))}var a=this._command;if(a.modelMatrix=On.eastNorthUpToFixedFrame(e.camera.positionWC),0!==this.offsetAngle&&Rn.multiply(a.modelMatrix,Rn.fromRotationTranslation(In.fromRotationZ(this.offsetAngle/180*Math.PI)),a.modelMatrix),!Dn(a.vertexArray)){a.uniformMap={u_cubeMap:function(){return i._cubeMap},u_rotateMatrix:function(){return Rn.getMatrix3(a.modelMatrix,new In)}};var s=xn.createGeometry(xn.fromDimensions({dimensions:new Pn(2,2,2),vertexFormat:Ln.POSITION_ONLY})),c=this._attributeLocations=Mn.createAttributeLocations(s);a.vertexArray=kn.fromGeometry({context:n,geometry:s,attributeLocations:c,bufferUsage:Bn._DRAW}),a.renderState=Vn.fromCache({blending:$n.ALPHA_BLEND})}if(!Dn(a.shaderProgram)||this._useHdr!==t){var l=new zn({defines:[t?"HDR":""],sources:["\n 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"]});a.shaderProgram=Gn.fromCache({context:n,vertexShaderSource:"\n 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:l,attributeLocations:this._attributeLocations}),this._useHdr=t}if(Dn(this._cubeMap))return a}}}]),i}(Hn);const jn=Wn;var qn=function(){function e(){n(this,e)}return s(e,null,[{key:"flyToPoint",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if(!e)throw new Cesium.DeveloperError("viewer参数是必须的!");if(e=e.nativeObjCesium||e,!t)throw new Cesium.DeveloperError("destination参数是必须的!");var s=new Cesium.BoundingSphere(t,0);e.camera.flyToBoundingSphere(s,{duration:o,maximumHeight:void 0,complete:function(){a&&"function"==typeof a&&a()},cancel:function(){console.log("定位取消!")},offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:r}})}},{key:"flyToPosition",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if(i){i=Ne.parsePosition(i);var c=_e.transformWGS84ToCartesian(i);e.flyToPoint(t,c,n,r,o,a,s)}}},{key:"centerAt",value:function(e,t,i,n){var r=Cesium.Cartesian3.fromDegrees(t,i,0);this.flyToPoint(e.nativeObjCesium||e,r,0,-90,n||500,0)}},{key:"flyToRectangle",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if(!e)throw new Cesium.DeveloperError("viewer参数是必须的!");if(e=e.nativeObjCesium||e,!Array.isArray(t)||2!=t.length)throw new Cesium.DeveloperError("cartesians必须为两个笛卡尔Cartesian3坐标!");var s=Cesium.Rectangle.fromCartesianArray(t),c=Cesium.BoundingSphere.fromRectangle3D(s);e.camera.flyToBoundingSphere(c,{duration:o,maximumHeight:void 0,complete:function(){a&&"function"==typeof a&&a()},cancel:function(){console.log("定位取消!")},offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:r}})}},{key:"flyToPoints",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-60,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;e=e.nativeObjCesium||e;var s=Cesium.BoundingSphere.fromPoints(t);s.radius=1*s.radius,e.camera.flyToBoundingSphere(s,{duration:o,complete:function(){a&&"function"==typeof a&&a()},offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:r}})}},{key:"flyToPositions",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-60,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;e=e.nativeObjCesium||e;var s=Ne.parsePositions(t),c=_e.transformWGS84ArrayToCartesianArray(s),l=Cesium.BoundingSphere.fromPoints(c);l.radius=l.radius*r,e.camera.flyToBoundingSphere(l,{duration:o,complete:function(){a&&"function"==typeof a&&a()},offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:0}})}},{key:"flyToTarget",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6?arguments[6]:void 0;if(t){if(!(t instanceof Ki&&t.flyTo)){var s=(e.nativeObjCesium||e).flyTo(t.nativeObjCesium||t,{duration:o,offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:r}});return s&&s.then((function(){a&&a()})),s}t.flyTo(i,n,r,a)}}}]),e}();const Xn=qn;var Yn=i(545);function Kn(e,t,i){void 0===i&&(i={});var n={type:"Feature"};return(0===i.id||i.id)&&(n.id=i.id),i.bbox&&(n.bbox=i.bbox),n.properties=t||{},n.geometry=e,n}function Jn(e,t){void 0===t&&(t={});var i={type:"FeatureCollection"};return t.id&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.features=e,i}function Qn(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return Zn(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Zn(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}const er=function(){function e(){n(this,e)}return s(e,null,[{key:"wktArrToEarthPosArr",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;if(i&&"string"==typeof i)return t.forEach((function(t){var n=e.recurObjKey(t,i),r=n.obj,o=n.value;r.earthPos=e.wktStrToEarthPos(o)})),t}},{key:"wktStrToEarthPos",value:function(e){var t,i=[],n=Qn(e.slice(e.search(/\d+/g),e.search(/\)/g)).split(","));try{for(n.s();!(t=n.n()).done;){var r=t.value.split(" ");if(2!==r.length)throw new Error("WKT格式不正确");var o,a=Qn(r);try{for(a.s();!(o=a.n()).done;){var s=o.value;i.push(Cesium.Math.toRadians(parseFloat(s)))}}catch(e){a.e(e)}finally{a.f()}}}catch(e){n.e(e)}finally{n.f()}if(i.length<2)throw new Error("将WKT转化为Cesium.Cartesian3结果为空,转换失败");return i}},{key:"wktArrToCartesian3Arr",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(i&&"string"==typeof i)return t.forEach((function(t){var r=e.recurObjKey(t,i),o=r.obj,a=r.value;o.cartesian3=e.wktStrToCartesian3(a,n)})),t}},{key:"wktStrToCartesian3",value:function(e,t){var i,n=[],r=!1,o=Qn(e.slice(e.search(/\d+/g),e.search(/\)/g)).split(","));try{for(o.s();!(i=o.n()).done;){var a=i.value.split(" "),s=a.length;if(s<2||s>3)throw new Error("WKT格式不正确");if(void 0!==t&&"string"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)throw new Error("高度参数{height}必须为字符串或者数字或者undefined类型");2!==s||"string"!=typeof t&&"number"!=typeof t||a.push(parseFloat(t)),3===a.length&&(r=!0);var c,l=Qn(a);try{for(l.s();!(c=l.n()).done;){var u=c.value;n.push(parseFloat(u))}}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}if(n.length<2)throw new Error("将WKT转化为Cesium.Cartesian3结果为空,转换失败");return r?Cesium.Cartesian3.fromDegreesArrayHeights(n):Cesium.Cartesian3.fromDegreesArray(n)}},{key:"wktArrToGeoJson",value:function(){var e=this,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;if(t&&"string"==typeof t){var n=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(r){var o=e.recurObjKey(r,t),a=o.obj,s=o.value,c=Kn((0,Yn.parse)(s));c.properties=a,c.properties.stroke="#555555",c.properties["stroke-opacity"]=1,c.properties["stroke-width"]=2,c.properties.fill="#555555",c.properties["fill-opacity"]=.5,i&&(c=i(c)),n.push(c)})),Jn(n)}}},{key:"recurObjKey",value:function(e,t){var i=t.split("."),n=i.pop(),r=e;return i.forEach((function(e){return r=r[e]})),{obj:r,value:r[n]}}}]),e}();const tr=function(){function e(){n(this,e)}return s(e,null,[{key:"drawCanvalCircle",value:function(e,t,i,n,r){if(!e||!t||!Array.isArray(i)||i.length<1)return console.error("传入参数错误!"),"";"string"==typeof e&&(e=Cesium.Color.fromCssColorString(e)),n||(n=[{key:0,value:e.withAlpha(.3).toCssColorString()},{key:.8,value:e.withAlpha(.6).toCssColorString()},{key:1,value:e.withAlpha(.9).toCssColorString()}]);var o=document.createElement("canvas");o.width=t,o.height=t;var a=o.getContext("2d"),s=o.width/2,c=o.height/2,l=o.width/2,u=a.createRadialGradient(s,c,1,s,c,l);n.forEach((function(e){u.addColorStop(e.key,e.value)})),a.beginPath(),a.arc(s,c,l,0,2*Math.PI,!1),a.fillStyle=u,a.fill(),a.closePath(),a.restore(),a.fillStyle=Cesium.Color.WHITE.toCssColorString();var d=15*t/60;return r&&(d=r),a.font="bold ".concat(d,"px sans-serif"),a.textAlign="center",a.textBaseline="bottom",i.length>1?(a.fillText(i[0]+"",t/2,t/2),a.fillText(i[1]+"",t/2,t/4*3.1)):a.fillText(i[0]+"",t/2,t/2),o.toDataURL()}}]),e}();const ir=function(){function e(){n(this,e)}return s(e,null,[{key:"imageryLayerFeatureInfo2Geojson",value:function(e){return e?{type:"FeatureCollection",features:[e.data]}:null}}]),e}();var nr=function(){function e(t){n(this,e),this.viewer=t,this._level=void 0,this._fpsEl=void 0,this._msEl=void 0,this._fpsFrameCount=0,this._msFrameCount=0,this._lastFpsSampleTime=Cesium.getTimestamp(),this._lastMsSampleTime=Cesium.getTimestamp();var i=document.createElement("div");i.setAttribute("id","anov-mapinfo-container"),i.style.textIndent="20px",i.style.backgroundColor="rgba(0, 0, 0, 0.4)",i.style.width="calc(100% - 100px);",i.style.height="30px",i.style.lineHeight="30px",i.style.position="absolute",i.style.bottom=0,i.style.color="white",t.container.appendChild(i),this._fpsEl=j.create("span","fps-bar",i),this._fpsEl.style.marginRight="15px";var r=document.createElement("span");r.setAttribute("id","anov-mapinfo-lon"),r.innerHTML="经度:";var o=document.createElement("span");o.style.marginRight="15px",i.appendChild(r),i.appendChild(o);var a=document.createElement("span");a.setAttribute("id","anov-mapinfo-lat"),a.innerHTML="纬度:";var s=document.createElement("span");s.style.marginRight="15px",i.appendChild(a),i.appendChild(s);var c=document.createElement("span");c.setAttribute("id","anov-mapinfo-heading"),c.innerHTML="偏航角:";var l=document.createElement("span");l.style.marginRight="15px",i.appendChild(c),i.appendChild(l);var u=document.createElement("span");u.setAttribute("id","anov-mapinfo-pitch"),u.innerHTML="视角:";var d=document.createElement("span");d.style.marginRight="15px",i.appendChild(u),i.appendChild(d);var h=document.createElement("span");h.setAttribute("id","anov-mapinfo-height"),h.innerHTML="视高:";var p=document.createElement("span"),f=document.createElement("span");f.setAttribute("id","anov-mapinfo-unit"),f.innerHTML="米",f.style.marginRight="15px",i.appendChild(h),i.appendChild(p),i.appendChild(f),this._level=j.create("span","level-bar",i),this._level.style.marginRight="15px";var m=new Cesium.ScreenSpaceEventHandler(t.scene.canvas),g=function(e){var i=Math.ceil(t.camera.positionCartographic.height);i>1e3?(i/=1e3,f.innerHTML="千米"):f.innerHTML="米",p.innerText=i;var n=Number(t.scene.camera.pitch).toFixed(4);n=-(57.29578*n).toFixed(0),d.innerText=n+"°";var r=Number(t.scene.camera.heading).toFixed(4);r=(57.29578*r).toFixed(0),l.innerText=r+"°"};g(),m.setInputAction((function(e){var i=t.scene.globe.ellipsoid,n=e.endPosition,r=t.camera.pickEllipsoid(n,i);if(r){var a=i.cartesianToCartographic(r),c=Cesium.Math.toDegrees(a.longitude),l=Cesium.Math.toDegrees(a.latitude);o.innerText=c.toFixed(7),s.innerText=l.toFixed(7)}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),t.camera.changed.addEventListener((function(){g()})),t.addEventListener(ee.POST_UPDATE,this._onPostUpdate,this)}return s(e,[{key:"destory",value:function(){}},{key:"_onPostUpdate",value:function(){var e=Cesium.getTimestamp();this._fpsFrameCount++;var t=e-this._lastFpsSampleTime;if(t>1e3){var i=1e3*this._fpsFrameCount/t|0;this._fpsEl.innerHTML="<span>帧率:".concat(i," FPS</span>"),this._lastFpsSampleTime=e,this._fpsFrameCount=0}this._level.innerHTML="<span>层级:".concat(this.viewer.level,"</span>")}}]),e}();const rr=nr;const or=s((function e(t,i){n(this,e),this.viewer=i;var r=document.getElementById(t),o=document.createElement("div");o.setAttribute("class","anov-poisearch_searchDiv"),o.innerHTML='<input placeholder="地名搜索" id="anov-poisearch_searchGaode" class="anov-poisearch_searchGaode">';var a=document.createElement("div");a.innerHTML="x",a.setAttribute("class","anov-poisearch_close"),a.style.display="none",o.appendChild(a);var s=document.createElement("div");s.setAttribute("class","anov-poisearch_resultList"),r.appendChild(o),r.appendChild(s);var c=document.getElementById("anov-poisearch_searchGaode");o.oninput=function(){u||(clearTimeout(l),l=setTimeout((function(){var e=c.value;a.style.display=e?"block":"none",d(e)}),1e3))},a.onclick=function(){a.style.display="none",c.value="",d("")};var l,u=!1;function d(e){s.innerHTML="",fetch("https://restapi.amap.com/v3/place/text?key=c8a650173d583fb038c7c2d1278e7cd8&&offset=10&&keywords="+e).then((function(e){return e.text()})).then((function(e){if((e=JSON.parse(e)).pois.length>0){var t="";e.pois.forEach((function(e){var i=e.location.split(","),n=i[0],r=i[1];t+='<div class="anov-poisearch_locationItem" lat='+r+" lon="+n+" title="+e.name+">"+e.name+"</div>"})),s.innerHTML=t}})).catch((function(e){return console.log(e)}))}s.onclick=function(e){c.value=e.target.getAttribute("title");var t=Number(e.target.getAttribute("lon")),n=Number(e.target.getAttribute("lat"));s.innerHTML="",Xn.flyToPosition(i,[t,n],0,-90,3e3,2,null)}}));const ar=function(){function e(){n(this,e)}return s(e,null,[{key:"init",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=[],o=ho.createTdtImageryLayer({style:"img",key:t}),a=ho.createTdtImageryLayer({key:t}),s=ho.createArcGisImageryLayer({style:"dark"}),c=ho.createTdtImageryLayer({style:"cva",key:t}),l=new Cesium.ProviderViewModel({name:"天地图影像",iconUrl:Cesium.buildModuleUrl("Widgets/Images/ImageryProviders/mapboxSatellite.png"),tooltip:"天地图影像",creationFunction:function(){return[o]}}),u=new Cesium.ProviderViewModel({name:"天地图影像(含注记)",iconUrl:Cesium.buildModuleUrl("static/images/bingAerialLabels.png"),tooltip:"天地图影像(含注记)",creationFunction:function(){return[o,c]}}),d=new Cesium.ProviderViewModel({name:"天地图-电子地图",iconUrl:Cesium.buildModuleUrl("static/images/tdt_vec.png"),tooltip:"天地图-电子地图",creationFunction:function(){return[a,c]}}),h=new Cesium.ProviderViewModel({name:"蓝黑色系影像",iconUrl:Cesium.buildModuleUrl("static/images/blueblack.png"),tooltip:"蓝黑色系影像",creationFunction:function(){return[s]}});r.push(l),r.push(u),r.push(d),r.push(h),e.baseLayerPicker.viewModel.imageryProviderViewModels=r,i<1&&(i=1),i>r.length&&(i=r.length),e.baseLayerPicker.viewModel.selectedImagery=e.baseLayerPicker.viewModel.imageryProviderViewModels[i-1],e.baseLayerPicker.viewModel.terrainProviderViewModels[0].name="无地形",e.baseLayerPicker.viewModel.terrainProviderViewModels[1].name="DEM地形",n<1&&(n=1),n>e.baseLayerPicker.viewModel.terrainProviderViewModels.length&&(n=e.baseLayerPicker.viewModel.terrainProviderViewModels.length),e.baseLayerPicker.viewModel.selectedTerrain=e.baseLayerPicker.viewModel.terrainProviderViewModels[n-1]}}]),e}();const sr=function(){function e(t){n(this,e),this._viewer=t,this.dog=0,this._langChinese={Imagery:"影像",Terrain:"地形",GeocodersPlaceholder:"请输入地名...",HomeButtonToolTip:"回到全球",SceneModePickerToolTip2D:"二维",SceneModePickerToolTip3D:"三维",SceneModePickerToolTipView:"哥伦布视图",NavigationHelpButtonToolTip:"操作指南",navigationHelp_Touch:">手势",navigationHelp_Mouse:">鼠标",navigationHelp_Mouse_Pan:"平移",navigationHelp_Mouse_Pan_details:"按下左键+ 拖动",navigationHelp_Mouse_Zoom:"缩放",navigationHelp_Mouse_Zoom_details0:"按下右键+ 拖动,或者",navigationHelp_Mouse_Zoom_details1:"滚动鼠标滚轮",navigationHelp_Mouse_Rotate:"旋转",navigationHelp_Mouse_Rotate_details0:"按下中键+ 拖动,或者",navigationHelp_Mouse_Rotate_details1:"按下CTRL + 左键/右键 +拖动",navigationHelp_Touch_Pan:"平移",navigationHelp_Touch_Pan_details:"单指拖动",navigationHelp_Touch_Zoom:"缩放",navigationHelp_Touch_Zoom_details:"双指捏合",navigationHelp_Touch_Rotate:"旋转",navigationHelp_Touch_Rotate_details:"双指反向拖动",navigationHelp_Touch_Tilt:"俯仰",navigationHelp_Touch_Tilt_details:"双指同向拖动",enterFullScreen:"全屏",exitFullScreen:"退出全屏",lon:"经度:",lat:"纬度:",heading:"偏航角:",pitch:"视角:",height:"视高:",tianditu_img2:"天地图影像",tianditu_img:"天地图影像(含注记)",tianditu_img3:"天地图-电子地图"},this._langEnglish={Imagery:"Imagery",Terrain:"Terrain",GeocodersPlaceholder:"Enter an address or landmark...",HomeButtonToolTip:"View Home",SceneModePickerToolTip2D:"2D",SceneModePickerToolTip3D:"3D",SceneModePickerToolTipView:"Columbus View",NavigationHelpButtonToolTip:"Navigation Instructions",enterFullScreen:"Full screen",exitFullScreen:"Exit full screen",navigationHelp_Touch:">手势",navigationHelp_Mouse:">鼠标",navigationHelp_Mouse_Pan:"平移",navigationHelp_Mouse_Pan_details:"按下左键+ 拖动",navigationHelp_Mouse_Zoom:"缩放",navigationHelp_Mouse_Zoom_details0:"按下右键+ 拖动,或者",navigationHelp_Mouse_Zoom_details1:"滚动鼠标滚轮",navigationHelp_Mouse_Rotate:"旋转",navigationHelp_Mouse_Rotate_details0:"按下中键+ 拖动,或者",navigationHelp_Mouse_Rotate_details1:"按下CTRL + 左键/右键 +拖动",navigationHelp_Touch_Pan:"平移",navigationHelp_Touch_Pan_details:"单指拖动",navigationHelp_Touch_Zoom:"缩放",navigationHelp_Touch_Zoom_details:"双指捏合",navigationHelp_Touch_Rotate:"旋转",navigationHelp_Touch_Rotate_details:"双指反向拖动",navigationHelp_Touch_Tilt:"俯仰",navigationHelp_Touch_Tilt_details:"双指同向拖动",lon:"lon:",lat:"lat:",heading:"heading:",pitch:"pitch:",height:"height:",tianditu_img2:"Tianditu imagery",tianditu_img:"Tianditu imagery with annotation",tianditu_img3:"Tianditu electronic map"},this._lang=Object.assign({},this._langChinese)}return s(e,[{key:"viewer",get:function(){return this._viewer}},{key:"lang",get:function(){return this._lang}},{key:"toChinese",value:function(){this.dog=1,this._lang=Object.assign({},this._langChinese),this.init()}},{key:"toEnglish",value:function(){this.dog=0,this._lang=Object.assign({},this._langEnglish),this.init()}},{key:"init",value:function(){var e=this;e._baseLayerPickerSectionTitleLang(),e._homeButtonLang(),e._geocoderLang(),e._sceneModePickerButtonLang(),e._mapInfoLang(),e._layerControlLang(),e._navigationHelpButtonLang()}},{key:"_mapInfoLang",value:function(){var e=this;document.getElementById("anov-mapinfo-container")&&(0==this.dog?(document.getElementById("anov-mapinfo-lon").innerHTML=e._langEnglish.lon,document.getElementById("anov-mapinfo-lat").innerHTML=e._langEnglish.lat,document.getElementById("anov-mapinfo-heading").innerHTML=e._langEnglish.heading,document.getElementById("anov-mapinfo-pitch").innerHTML=e._langEnglish.pitch,document.getElementById("anov-mapinfo-height").innerHTML=e._langEnglish.height,document.getElementById("anov-mapinfo-unit").innerHTML="m"):(document.getElementById("anov-mapinfo-lon").innerHTML=e._langChinese.lon,document.getElementById("anov-mapinfo-lat").innerHTML=e._langChinese.lat,document.getElementById("anov-mapinfo-heading").innerHTML=e._langChinese.heading,document.getElementById("anov-mapinfo-pitch").innerHTML=e._langChinese.pitch,document.getElementById("anov-mapinfo-height").innerHTML=e._langChinese.height,document.getElementById("anov-mapinfo-unit").innerHTML="米"))}},{key:"_layerControlLang",value:function(){for(var e=this,t=e.viewer.container.getElementsByClassName("cesium-baseLayerPicker-itemLabel"),i=0;i<t.length;i++)1==this.dog?(t[i].innerHTML=t[i].innerHTML.replace(e._langEnglish.tianditu_img,e._langChinese.tianditu_img),t[i].innerHTML=t[i].innerHTML.replace(e._langEnglish.tianditu_img2,e._langChinese.tianditu_img2),t[i].innerHTML=t[i].innerHTML.replace(e._langEnglish.tianditu_img3,e._langChinese.tianditu_img3),e.viewer.container.getElementsByClassName("cesium-baseLayerPicker-categoryTitle")[1].style.display="none"):(t[i].innerHTML=t[i].innerHTML.replace(e._langChinese.tianditu_img,e._langEnglish.tianditu_img),t[i].innerHTML=t[i].innerHTML.replace(e._langChinese.tianditu_img2,e._langEnglish.tianditu_img2),t[i].innerHTML=t[i].innerHTML.replace(e._langChinese.tianditu_img3,e._langEnglish.tianditu_img3),e.viewer.container.getElementsByClassName("cesium-baseLayerPicker-categoryTitle")[1].style.display="block")}},{key:"_baseLayerPickerSectionTitleLang",value:function(){for(var e=this,t=e.viewer.container.getElementsByClassName("cesium-baseLayerPicker-sectionTitle"),i=0;i<t.length;i++)1==this.dog?t[i].innerHTML=t[i].innerHTML.replace(e._langEnglish.Imagery,e._langChinese.Imagery).replace(e._langEnglish.Terrain,e._langChinese.Terrain):t[i].innerHTML=t[i].innerHTML.replace(e._langChinese.Imagery,e._langEnglish.Imagery).replace(e._langChinese.Terrain,e._langEnglish.Terrain)}},{key:"_homeButtonLang",value:function(){var e=this;Cesium.defined(e.viewer.nativeObjCesium.homeButton)&&(e.viewer.nativeObjCesium.homeButton.viewModel.tooltip=e.lang.HomeButtonToolTip)}},{key:"_geocoderLang",value:function(){for(var e=this.viewer.container.getElementsByClassName("cesium-geocoder-input"),t=0;t<e.length;t++)e[t].setAttribute("placeholder",this.lang.GeocodersPlaceholder);for(var i=document.getElementsByClassName("cesium-geocoder-input"),n=0;n<i.length;n++)i[n].setAttribute("placeholder",this.lang.GeocodersPlaceholder)}},{key:"_sceneModePickerButtonLang",value:function(){var e=this;Cesium.defined(e.viewer.nativeObjCesium.sceneModePicker)&&(e.viewer.sceneModePicker.viewModel.tooltip2D=e.lang.SceneModePickerToolTip2D,e.viewer.sceneModePicker.viewModel.tooltip3D=e.lang.SceneModePickerToolTip3D,e.viewer.sceneModePicker.viewModel.tooltipColumbusView=e.lang.SceneModePickerToolTipView)}},{key:"_navigationHelpButtonLang",value:function(){var e=this;if(Cesium.defined(e.viewer.navigationHelpButton)){e.viewer.navigationHelpButton.viewModel.tooltip=e.lang.NavigationHelpButtonToolTip;var t=e.viewer.navigationHelpButton.container.getElementsByClassName("cesium-click-navigation-help")[0],i=e.viewer.navigationHelpButton.container.getElementsByClassName("cesium-touch-navigation-help")[0],n=e.viewer.navigationHelpButton.container.getElementsByClassName("cesium-navigation-button-right")[0];n.innerHTML=n.innerHTML.replace(">Touch",e.lang.navigationHelp_Touch),(n=e.viewer.navigationHelpButton.container.getElementsByClassName("cesium-navigation-button-left")[0]).innerHTML=n.innerHTML.replace(">Mouse",e.lang.navigationHelp_Mouse);var r=t.getElementsByClassName("cesium-navigation-help-pan")[0];r.innerHTML=e.lang.navigationHelp_Mouse_Pan,r.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Mouse_Pan_details;var o=t.getElementsByClassName("cesium-navigation-help-zoom")[0];o.innerHTML=e.lang.navigationHelp_Mouse_Zoom,o.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Mouse_Zoom_details0,o.parentNode.getElementsByClassName("cesium-navigation-help-details")[1].innerHTML=e.lang.navigationHelp_Mouse_Zoom_details1;var a=t.getElementsByClassName("cesium-navigation-help-rotate")[0];a.innerHTML=e.lang.navigationHelp_Mouse_Rotate,a.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Mouse_Rotate_details0,a.parentNode.getElementsByClassName("cesium-navigation-help-details")[1].innerHTML=e.lang.navigationHelp_Mouse_Rotate_details1;var s=i.getElementsByClassName("cesium-navigation-help-pan")[0];s.innerHTML=e.lang.navigationHelp_Touch_Pan,s.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Touch_Pan_details;var c=i.getElementsByClassName("cesium-navigation-help-zoom")[0];c.innerHTML=e.lang.navigationHelp_Touch_Zoom,c.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Touch_Zoom_details;var l=i.getElementsByClassName("cesium-navigation-help-rotate")[0];l.innerHTML=e.lang.navigationHelp_Touch_Tilt,l.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Touch_Tilt_details;var u=i.getElementsByClassName("cesium-navigation-help-tilt")[0];u.innerHTML=e.lang.navigationHelp_Touch_Rotate,u.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Touch_Rotate_details}}},{key:"_fullScreenButtonLang",value:function(){var e=this;if(Cesium.defined(e.viewer.fullscreenButton)){var t=Cesium.knockout.getObservable(e.viewer.fullscreenButton.viewModel,"isFullscreen");delete e.viewer.fullscreenButton.viewModel.tooltip,Cesium.knockout.defineProperty(e.viewer.fullscreenButton.viewModel,"tooltip",(function(){return e.viewer.fullscreenButton.viewModel.isFullscreenEnabled?t()?e.lang.exitFullScreen:e.lang.enterFullScreen:"Full screen unavailable"}));var i=e.viewer.fullscreenButton.container.getElementsByClassName("cesium-fullscreenButton")[0];Cesium.knockout.cleanNode(i),Cesium.knockout.applyBindings(e.viewer.fullscreenButton.viewModel,i)}}}]),e}();const cr=function(){function e(){n(this,e)}return s(e,null,[{key:"showAllControls",value:function(e){}},{key:"showMapInfo",value:function(e){new rr(e)}},{key:"showPoiSearch",value:function(e){}},{key:"showLayerControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b8ddad3f97aded37e6d58ae4867e5267",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3?arguments[3]:void 0;e.nativeObjCesium.baseLayerPicker||console.error("baseLayerPicker未开启,无法显示该控件!"),ar.init(e,t,i,n)}},{key:"toChinese",value:function(e){var t=new sr(e);t&&t.toChinese()}}]),e}();var lr={Cartesian2:Cesium.Cartesian2,Cartesian3:Cesium.Cartesian3,Matrix3:Cesium.Matrix3,Matrix4:Cesium.Matrix4,Material:Cesium.Material,SceneMode:Cesium.SceneMode,SkyBox:Cesium.SkyBox,Color:Cesium.Color,Rectangle:Cesium.Rectangle,ShadowMode:Cesium.ShadowMode,JulianDate:Cesium.JulianDate,HeightReference:Cesium.HeightReference,HorizontalOrigin:Cesium.HorizontalOrigin,VerticalOrigin:Cesium.VerticalOrigin,CallbackProperty:Cesium.CallbackProperty,ClassificationType:Cesium.ClassificationType,TilesetStyle:Cesium.Cesium3DTileStyle,GeographicTilingScheme:Cesium.GeographicTilingScheme,WebMercatorTilingScheme:Cesium.WebMercatorTilingScheme,ColorMaterialProperty:Cesium.ColorMaterialProperty,ImageMaterialProperty:Cesium.ImageMaterialProperty,PolylineDashMaterialProperty:Cesium.PolylineDashMaterialProperty,PolylineGlowMaterialProperty:Cesium.PolylineGlowMaterialProperty,PolylineOutlineMaterialProperty:Cesium.PolylineOutlineMaterialProperty,PolylineArrowMaterialProperty:Cesium.PolylineArrowMaterialProperty,writeTextToCanvas:Cesium.writeTextToCanvas,CustomShaderMode:Cesium.CustomShaderMode,CustomShaderTranslucencyMode:Cesium.CustomShaderTranslucencyMode,CustomShader:Cesium.CustomShader,UniformType:Cesium.UniformType,Math:Cesium.Math,NearFarScalar:Cesium.NearFarScalar,DistanceDisplayCondition:Cesium.DistanceDisplayCondition,Resource:Cesium.Resource,useDefaultRenderLoop:Cesium.useDefaultRenderLoop,ScreenSpaceEventHandler:Cesium.ScreenSpaceEventHandler,ScreenSpaceEventType:Cesium.ScreenSpaceEventType,Transforms:Cesium.Transforms,CameraEventType:Cesium.CameraEventType,defined:Cesium.defined,Event:Cesium.Event};function ur(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function dr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var hr={pixelSize:8,outlineColor:Cesium.Color.BLUE,outlineWidth:2},pr=function(e){u(i,e);var t=dr(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,o))._nativeObjCesium=new Cesium.Entity({point:{}}),r._position=Ne.parsePosition(e),r.position=r._position,W.merge(r._style,hr,o),r.setOptions(o),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("point")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this}},{key:"label",get:function(){return this._nativeObjCesium.label}},{key:"_mountedHook",value:function(){this.position=this._position,W.merge(this._nativeObjCesium.point,hr,this._style)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position,Ne.parseOption(e),W.merge(this._style,e),W.merge(this._nativeObjCesium.point,this._style),this.setLabel(e),this.originOption=Cesium.clone(this._style,!0),this):this}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.point,this._highlight),this.setLabel(this._style)}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();return(t=new i(_e.transformCartesianToWGS84(e.position.getValue(n)))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ur(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)),t}}]),i}(Ve);Ve.registerType("point");const fr=pr;function mr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var _r=function(e){u(i,e);var t=gr(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,o))._nativeObjCesium=new Cesium.Entity({polygon:{}}),r._positions=Ne.parsePositions(e),r._holes=[],r._state=Me.INITIALIZED,r.positions=r._positions,r.position=_e.transformWGS84ToCartesian(r.center),r._nativeObjCesium.position=r.position,Ne.parseOption(o),W.merge(r._style,o),r.setOptions(r._style),r}return s(i,[{key:"position",get:function(){return this._position},set:function(e){return this._position=e,this._nativeObjCesium.position=e,this}},{key:"type",get:function(){return Ve.getGraphicType("polygon")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.polygon.hierarchy=this._computeHierarchy(),this}},{key:"holes",get:function(){return this._holes},set:function(e){return e&&e.length&&(this._holes=e.map((function(e){return Ne.parsePositions(e)})),this._nativeObjCesium.polygon.hierarchy=this._computeHierarchy()),this}},{key:"center",get:function(){var e=Ge([].concat(Fe(this._positions),[this._positions[0]])),t=_e.setHeightWGS84(e,.5);return _e.transformCartesianToWGS84(t)}},{key:"area",get:function(){return $e(this._positions)}},{key:"_computeHierarchy",value:function(){var e=new Cesium.PolygonHierarchy;return e.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),e.holes=this._holes.map((function(e){return new Cesium.PolygonHierarchy(_e.transformWGS84ArrayToCartesianArray(e))})),e}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.positions,Ne.parseOption(e),W.merge(this._style,e),W.merge(this._nativeObjCesium.polygon,e),this.setLabel(e),this.setBillboard(e),this.setPolyline(e),this.originOption=Cesium.clone(this._style,!0),this):this}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.polygon,this._highlight),this.setLabel(this._style)}},{key:"unHighlight",value:function(e){this.setOptions(this.originOption)}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();e.polygon&&((t=new i(_e.transformCartesianArrayToWGS84Array(e.polygon.hierarchy.getValue(n).positions))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):mr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)));return t}}]),i}(Ve);Ve.registerType("polygon");const yr=_r;function Cr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Tr=function(e){u(i,e);var t=vr(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._positions.length<2?(console.error("polyline必须至少两个点!"),h(r)):(r._nativeObjCesium=new Cesium.Entity({polyline:{}}),r.positions=r._positions,r._state=Me.INITIALIZED,Ne.parseOption(o),W.merge(r._style,o),r.position=_e.transformWGS84ToCartesian(Ge([r._positions[0],r._positions[1]])),r._nativeObjCesium.position=r.position,r.setOptions(r._style),r)}return s(i,[{key:"position",get:function(){return this._position},set:function(e){return this._position=e,this}},{key:"type",get:function(){return Ve.getGraphicType("polyline")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.polyline.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),this}},{key:"center",get:function(){return Ge(this._positions)}},{key:"distance",get:function(){return We(this._positions)}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.polyline,this._highlight),this.setLabel(this._style)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.positions,Ne.parseOption(e),W.merge(this._style,e),W.merge(this._nativeObjCesium.polyline,e),this.setLabel(e),this.setBillboard(e),this):this}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();e.polyline&&((t=new i(_e.transformCartesianArrayToWGS84Array(e.polyline.positions.getValue(n)))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Cr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)));return t}}]),i}(Ve);Ve.registerType("polyline");const Sr=Tr;function Ar(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Er=function(e){u(i,e);var t=br(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._positions=Ne.parsePositions(e),o._shape=r||[],o._nativeObjCesium=new Cesium.Entity({polylineVolume:{}}),o._state=Me.INITIALIZED,o.positions=o._positions,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("polyline_volume")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.polylineVolume.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),this}},{key:"shape",get:function(){return this._shape},set:function(e){return this._shape=e||[],this._nativeObjCesium.polylineVolume.shape=this._shape,this}},{key:"_mountedHook",value:function(){this.positions=this._positions,this.shape=this._shape}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.positions&&delete e.shape,W.merge(this._style,e),W.merge(this._nativeObjCesium.polylineVolume,e)),this}}],[{key:"fromEntity",value:function(e,t){var n=void 0,r=Cesium.JulianDate.now();e.polyline&&((n=new i(_e.transformCartesianArrayToWGS84Array(e.polyline.positions.getValue(r)),t)).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ar(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(r)));return n}}]),i}(Ve);Ve.registerType("polyline_volume");const xr=Er;function Pr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Dr(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Pr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Mr=function(e){u(i,e);var t=wr(i);function i(e){var r;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._nativeObjCesium=new Cesium.Entity({rectangle:{}}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("rectangle")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.rectangle.coordinates=Cesium.Rectangle.fromCartesianArray(_e.transformWGS84ArrayToCartesianArray(this._positions)),this}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setLabel",value:function(e,t){return this._nativeObjCesium.position=Cesium.Cartographic.toCartesian(Cesium.Rectangle.center(this._nativeObjCesium.rectangle,new Cesium.Cartographic)),this._nativeObjCesium.label=Dr(Dr({},t),{},{text:e}),this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium.rectangle,e)),this}}]),i}(Ve);Ve.registerType("rectangle");const Ir=Mr;function Rr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Lr=function(e){u(i,e);var t=Or(i);function i(e){var r;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._nativeObjCesium=new Cesium.Entity({wall:{}}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("wall")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.wall.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),this}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium.wall,e)),this}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();e.polyline&&((t=new i(_e.transformCartesianArrayToWGS84Array(e.polyline.positions.getValue(n)))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Rr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)));return t}}]),i}(Ve);Ve.registerType("wall");const Br=Lr;function Fr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Nr(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Fr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var kr=function(e){u(h,e);var t,i,r,o,a,c,l,d=Vr(h);function h(e){var t;return n(this,h),(t=d.call(this,Q))._viewer=e,t._selected=void 0,t._mouseInfo=void 0,t._registerEvent(),t._addDefaultEvent(),t}return s(h,[{key:"_registerEvent",value:function(){var e=this,t=new Cesium.ScreenSpaceEventHandler(this._viewer.canvas);Object.keys(Cesium.ScreenSpaceEventType).forEach((function(i){var n=Cesium.ScreenSpaceEventType[i];e._cache[n]=new Cesium.Event,t.setInputAction((function(t){e._cache[n].raiseEvent(t)}),n)}))}},{key:"_addDefaultEvent",value:function(){this.addEventListener(this._types.CLICK,this._clickHandler,this),this.addEventListener(this._types.RIGHT_CLICK,this._rightClickHandler,this),this.addEventListener(this._types.MOUSE_MOVE,this._mouseMoveHandler,this)}},{key:"_getMouseInfo",value:(l=Se(be().mark((function e(t,i){var n,r,o,a,s,c,l,u,d,h,p,f,m,g,_;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mouseInfo||!this._mouseInfo.target||i==Q.MOUSE_MOVE){e.next=2;break}return e.abrupt("return",this._mouseInfo);case 2:if(n=this._viewer.scene,(r=n.pick(t,1,1))||i==Q.MOUSE_MOVE){e.next=13;break}if(o=this._viewer.camera.getPickRay(t),s=this._viewer.imageryLayers.pickImageryLayerFeatures(o,this._viewer.scene),Cesium.defined(s)){e.next=11;break}console.log("No features picked."),e.next=13;break;case 11:return e.next=13,Promise.resolve(s).then((function(e){0!=e.length&&(r=e[0],c=_e.transformCartographicToCartesian(r.position))}));case 13:return i===Q.MOUSE_MOVE&&(!o&&(o=this._viewer.camera.getPickRay(t)),a=this._viewer.imageryLayers.pickImageryLayers(o,this._viewer.scene)),c=void 0,r&&r.id instanceof Cesium.Entity&&(l=this._viewer.getLayers().filter((function(e){return e.layerId===r.id.layerId}))[0])&&l.getGraphic&&((u=l.getGraphic(r.id.graphicId))instanceof fr||u instanceof mi||u instanceof Ui)&&(c=r.id.position._value),c||(c=De.pickPosition(this._viewer,t)),d=void 0,h=void 0,p=void 0,c&&(f=Cesium.Ellipsoid.WGS84.cartesianToCartographic(c))&&(h={lng:Cesium.Math.toDegrees(f.longitude),lat:Cesium.Math.toDegrees(f.latitude),alt:f.height}),n.mode!==Cesium.SceneMode.SCENE3D||this._viewer.terrainProvider instanceof Cesium.EllipsoidTerrainProvider?d=n.camera.pickEllipsoid(t,Cesium.Ellipsoid.WGS84):(m=n.camera.getPickRay(t),d=n.globe.pick(m,n)),d&&(g=Cesium.Ellipsoid.WGS84.cartesianToCartographic(d))&&(p={lng:Cesium.Math.toDegrees(g.longitude),lat:Cesium.Math.toDegrees(g.latitude),alt:g.height}),_={target:r,windowPosition:t,position:c,wgs84Position:h,surfacePosition:d,wgs84SurfacePosition:p},a&&a.length>1&&(_.pickImageryLayers=a),e.abrupt("return",_);case 26:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"_getDrillInfos",value:function(e){var t=this,i=[],n=this._viewer.scene.drillPick(e);return n&&n.length&&n.forEach((function(e){i.push(t._getTargetInfo(e))})),i}},{key:"_getGraphicId",value:function(e){var t=void 0;if(e)return e.id instanceof Cesium.Entity?t=e.id.graphicId:e instanceof Cesium.Cesium3DTileFeature?t=e.tileset.graphicId:(e.primitive instanceof Cesium.Cesium3DTileset||e.primitive)&&(t=e.primitive.graphicId),t}},{key:"_getTargetInfo",value:function(e){var t=void 0,i=void 0,n=void 0,r=void 0;if(e&&e.id instanceof Cesium.Entity)(i=this._viewer.getLayers().filter((function(t){return t.layerId===e.id.layerId}))[0])&&i.getGraphic&&(t=i.getGraphic(e.id.graphicId));else if(e&&e instanceof Cesium.Cesium3DTileFeature){if(i=this._viewer.getLayers().filter((function(t){return t.layerId===e.tileset.layerId}))[0],n=e,i&&i.getGraphic)if(t=i.getGraphic(e.tileset.graphicId),n&&n.getPropertyNames)n.getPropertyNames().forEach((function(e){t.attr[e]=n.getProperty(e)}))}else e&&e.primitive instanceof Cesium.Cesium3DTileset?(i=this._viewer.getLayers().filter((function(t){return t.layerId===e.primitive.layerId}))[0])&&i.getGraphic&&(t=i.getGraphic(e.primitive.graphicId)):e&&e.primitive?((i=this._viewer.getLayers().filter((function(t){return t.layerId===e.primitive.layerId}))[0])&&i.getGraphic&&(t=i.getGraphic(e.primitive.graphicId)),(e.primitive instanceof Cesium.Label||e.primitive instanceof Cesium.Billboard)&&(r=e.primitive)):e instanceof Cesium.ImageryLayerFeatureInfo&&(i=e.imageryLayer,n=e);return{layer:i,graphic:t,feature:n,clusterEntity:r,instanceId:e?e.instanceId:null}}},{key:"_raiseEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=void 0,n=this._getTargetInfo(t.target),r=n?n.graphic:null,o=n?n.layer:null;(r&&r.graphicEvent&&((i=r.graphicEvent.getEvent(e))&&i.numberOfListeners>0&&i.raiseEvent(Nr(Nr({},n),t)),i=void 0),i&&0!==i.numberOfListeners||!o||!o.layerEvent||(i=o.layerEvent.getEvent(e)),(!i||0===i.numberOfListeners)&&o&&o.imageryProvider&&o.imageryProvider.layerEvent&&(i=o.imageryProvider.layerEvent.getEvent(e)),i&&0!==i.numberOfListeners||!this._viewer.viewerEvent||(i=this._viewer.viewerEvent.getEvent(e)),i&&i.numberOfListeners>0&&i.raiseEvent(Nr(Nr({},n),t)),r&&r.allowDrillPicking)&&this._getDrillInfos(t.windowPosition).forEach((function(n){var o=n.graphic,a=n.layer;o.graphicId!==r.graphicId&&o.graphicEvent&&((i=o.graphicEvent.getEvent(e))&&0!==i.numberOfListeners||!a.layerEvent||(i=a.layerEvent.getEvent(e)),i&&i.numberOfListeners>0&&i.raiseEvent(Nr(Nr({},n),t)))}))}},{key:"_clickHandler",value:(c=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.CLICK,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"_dbClickHandler",value:(a=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.DB_CLICK,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"_rightClickHandler",value:(o=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.RIGHT_CLICK,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"_mouseMoveHandler",value:(r=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.endPosition){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.endPosition,Q.MOUSE_MOVE);case 4:i=e.sent,this._mouseInfo=i,this._viewer.canvas.style.cursor=i.target||i.pickImageryLayers?"pointer":"default",this._raiseEvent(Q.MOUSE_MOVE,i),this._selected&&this._getGraphicId(this._selected.target)===this._getGraphicId(i.target)||(this._raiseEvent(Q.MOUSE_OUT,this._selected),this._raiseEvent(Q.MOUSE_OVER,i),this._selected=i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_leftDownHandler",value:(i=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.LEFT_DOWN,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_leftUpHandler",value:function(e){this._raiseEvent(Q.LEFT_UP,{movement:e})}},{key:"_rightDownHandler",value:(t=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.RIGHT_DOWN,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_rightUpHandler",value:function(e){this._raiseEvent(Q.RIGHT_UP,{movement:e})}},{key:"_mouseWheelHandler",value:function(e){this._raiseEvent(Q.WHEEL,{movement:e})}}]),h}(le);const $r=kr;function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Gr=function(e){u(i,e);var t=Ur(i);function i(){var e;return n(this,i),(e=t.call(this,Z))._registerEvent(),e}return s(i)}(le);function zr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Hr=function(e){u(i,e);var t=zr(i);function i(e){var r;return n(this,i),(r=t.call(this,ee))._camera=e.camera,r._scene=e.scene,r._clock=e.clock,r}return s(i,[{key:"addEventListener",value:function(e,t,i){var n=void 0;switch(e){case ee.CAMERA_MOVE_END:n=this._camera.moveEnd.addEventListener(t,i||this);break;case ee.CAMERA_CHANGED:n=this._camera.changed.addEventListener(t,i||this);break;case ee.PRE_UPDATE:n=this._scene.preUpdate.addEventListener(t,i||this);break;case ee.POST_UPDATE:n=this._scene.postUpdate.addEventListener(t,i||this);break;case ee.PRE_RENDER:n=this._scene.preRender.addEventListener(t,i||this);break;case ee.POST_RENDER:n=this._scene.postRender.addEventListener(t,i||this);break;case ee.MORPH_COMPLETE:n=this._scene.morphComplete.addEventListener(t,i||this);break;case ee.CLOCK_TICK:n=this._clock.onTick.addEventListener(t,i||this);break;case ee.RENDER_ERROR:n=this._scene.renderError.addEventListener(t,i||this)}return n}},{key:"removeEventListener",value:function(e,t,i){var n=!1;switch(e){case ee.CAMERA_MOVE_END:n=this._camera.moveEnd.removeEventListener(t,i||this);break;case ee.CAMERA_CHANGED:n=this._camera.changed.removeEventListener(t,i||this);break;case ee.PRE_UPDATE:n=this._scene.preUpdate.removeEventListener(t,i||this);break;case ee.POST_UPDATE:n=this._scene.postUpdate.removeEventListener(t,i||this);break;case ee.PRE_RENDER:n=this._scene.preRender.removeEventListener(t,i||this);break;case ee.POST_RENDER:n=this._scene.postRender.removeEventListener(t,i||this);break;case ee.MORPH_COMPLETE:n=this._scene.morphComplete.removeEventListener(t,i||this);break;case ee.CLOCK_TICK:n=this._clock.onTick.removeEventListener(t,i||this);break;case ee.RENDER_ERROR:n=this._scene.renderError.removeEventListener(t,i||this)}return n}}]),i}(le);function Wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const jr=function(e){u(i,e);var t=Wr(i);function i(){var e;return n(this,i),(e=t.call(this,ie))._registerEvent(),e}return s(i)}(le);function qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Xr=function(e){u(i,e);var t=qr(i);function i(){var e;return n(this,i),(e=t.call(this,ne))._registerEvent(),e}return s(i)}(le);function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Kr=function(e){u(i,e);var t=Yr(i);function i(){var e;return n(this,i),(e=t.call(this,te))._registerEvent(),e}return s(i)}(le);function Jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Qr=function(e){u(i,e);var t=Jr(i);function i(){var e;return n(this,i),(e=t.call(this,re))._registerEvent(),e}return s(i)}(le);function Zr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const eo=function(e){u(i,e);var t=Zr(i);function i(){var e;return n(this,i),(e=t.call(this,oe))._registerEvent(),e}return s(i)}(le);function to(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const io=function(e){u(i,e);var t=to(i);function i(){var e;return n(this,i),(e=t.call(this,ae))._registerEvent(),e}return s(i)}(le);function no(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ro=function(e){u(i,e);var t=no(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=new Cesium.CustomDataSource(r.businessID),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("vector")}},{key:"clear",value:function(){return this._nativeObjCesium.entities&&this._nativeObjCesium.entities.removeAll(),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("vector");const oo=ro;function ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var so=function(e){u(o,e);var t,i,r=ao(o);function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,o),!e)throw new Error("GeoJsonLayer:data数据源必选传入!");return(t=r.call(this,i))._nativeObjCesium=Cesium.GeoJsonDataSource.load(e,i),t._state=Me.INITIALIZED,t}return s(o,[{key:"type",get:function(){return Ki.getLayerType("geojson")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium&&this._nativeObjCesium.then((function(e){e.show=t._show}))}},{key:"_createBillboard",value:function(e){if(e.position&&e.billboard)return mi.fromEntity(e)}},{key:"_createPoint",value:function(e){if(e.position&&e.point)return fr.fromEntity(e)}},{key:"_createLabel",value:function(e){if(e.position&&e.label)return Ui.fromEntity(e)}},{key:"_createPolyline",value:function(e){if(e.polyline)return Sr.fromEntity(e)}},{key:"_createPolygon",value:function(e){if(e.polygon)return yr.fromEntity(e)}},{key:"_createModel",value:function(e,t){if(e)return ot.fromEntity(e,t)}},{key:"eachGraphic",value:(i=Se(be().mark((function e(t,i){return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._nativeObjCesium){e.next=3;break}return e.next=3,this._nativeObjCesium.then((function(e){e.entities.values.forEach((function(e){t.call(i,e)}))}));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"toVectorLayer",value:(t=Se(be().mark((function e(){var t,i=this;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new oo(this.id),e.next=3,this.eachGraphic((function(e){e.billboard?t.addGraphic(i._createBillboard(e)):e.polyline?t.addGraphic(i._createPolyline(e)):e.polygon&&t.addGraphic(i._createPolygon(e))}),this);case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"toModelLayer",value:function(e){var t=this,i=new ModelLayer(this.id);return this.eachGraphic((function(n){i.addGraphic(t._createModel(n,e))}),this),i}}]),o}(Ki);Ki.registerType("geojson");const co=so,lo={bindPopup_highlight_tooltip:(uo=Se(be().mark((function e(t,i){return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.bindPopup=function(e){if(t.viewer=e.viewer||window.viewer,t.viewer){var i=new ve(e);i.install(t),i.addEventListener(ce.CLOSE,(function(){t.removeHighlight()}))}else console.error("必须传入三维球对象!")},t.removeHighlight=function(){t.selected&&(t.viewer.removeLayer(t.selected.layer),t.selected=null)},t.layerEvent=new Xr,t.addEventListener=function(e,i,n){return t.layerEvent.addEventListener(e,i,n||t),t},t.viewer&&t.viewer.addEventListener(Q.CLICK,(function(e){t.removeHighlight()})),t.addEventListener(Q.CLICK,function(){var e=Se(be().mark((function e(n){var r,o,a;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.removeHighlight(),n.feature){e.next=3;break}return e.abrupt("return");case 3:return r=ir.imageryLayerFeatureInfo2Geojson(n.feature),o=new co(r,{}),e.next=7,o.toVectorLayer();case 7:a=e.sent,t.selected={layer:a},t.viewer&&t.viewer.addLayer(a),a.eachGraphic((function(e){e._highlight=i.selectedHighlight,e.highlight()}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 6:case"end":return e.stop()}}),e)}))),function(e,t){return uo.apply(this,arguments)})};var uo;const ho=function(){function e(){n(this,e)}return s(e,null,[{key:"createAmapImageryLayer",value:function(e){return new S(e)}},{key:"createBaiduImageryLayer",value:function(e){return new I(e)}},{key:"createTdtImageryLayer",value:function(e){return new O(e)}},{key:"createTencentImageryLayer",value:function(e){return new B(e)}},{key:"createArcGisImageryLayer",value:function(e){return"dark"===e.style?new k(e):(e.url||(e.url="https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"),new Cesium.ArcGisMapServerImageryProvider(e))}},{key:"createSingleTileImageryLayer",value:function(e){return new Cesium.SingleTileImageryProvider(e)}},{key:"createWMSImageryLayer",value:function(e){return new Cesium.WebMapServiceImageryProvider(e)}},{key:"createWMTSImageryLayer",value:function(e){return new Cesium.WebMapTileServiceImageryProvider(e)}},{key:"createXYZImageryLayer",value:function(e){return new Cesium.UrlTemplateImageryProvider(e)}},{key:"createUrlTemplateImageryLayer",value:function(e){return new G(e)}},{key:"createCoordImageryLayer",value:function(e){return new Cesium.TileCoordinatesImageryProvider(e)}},{key:"createGridImageryLayer",value:function(e){return new Cesium.GridImageryProvider(e)}},{key:"createMapboxImageryLayer",value:function(e){return new Cesium.MapboxImageryProvider(e)}},{key:"createMapboxStyleImageryLayer",value:function(e){return new Cesium.MapboxStyleImageryProvider(e)}},{key:"createTMSImageryLayer",value:function(e){return new Cesium.TileMapServiceImageryProvider(e)}},{key:"createGoogleImageryImageryLayer",value:function(e){return new N(e)}},{key:"createImageryLayer",value:function(e,t){var i=void 0;switch(e){case c.AMAP:i=this.createAmapImageryLayer(t);break;case c.BAIDU:i=this.createBaiduImageryLayer(t);break;case c.TDT:i=this.createTdtImageryLayer(t);break;case c.TENCENT:i=this.createTencentImageryLayer(t);break;case c.ARCGIS:i=this.createArcGisImageryLayer(t);break;case c.SINGLE_TILE:i=this.createSingleTileImageryLayer(t);break;case c.WMS:i=this.createWMSImageryLayer(t);break;case c.WMTS:i=this.createWMTSImageryLayer(t);break;case c.XYZ:i=this.createXYZImageryLayer(t);break;case c.COORD:i=this.createCoordImageryLayer(t);break;case c.GRID:i=this.createGridImageryLayer(t);break;case c.MAPBOX:i=this.createMapboxImageryLayer(t);break;case c.MAPBOX_STYLE:i=this.createMapboxStyleImageryLayer(t);break;case c.TMS:i=this.createTMSImageryLayer(t);break;case c.Google:i=this.createGoogleImageryImageryLayer(t)}return lo.bindPopup_highlight_tooltip(i,t),i}}]),e}();const po=function(){function e(t,i){n(this,e),t||console.error("viewer是必传参数!"),2!==i.length&&console.error("layersArr参数长度必须为2"),this.viewer=t,this.layer1=null,this.layer2=null,this.slider=null,this.handler=null,this.slider=document.createElement("div");var r=this.slider;r.style.position="absolute",r.style.left="50%",r.style.top="0",r.style.backgroundColor="#d3d3d3",r.style.width="5px",r.style.height="100%",r.style.zIndex=9999,r.onmouseover=function(){r.style.cursor="ew-resize"},t.container.appendChild(r),t.scene.splitPosition=r.offsetLeft/r.parentElement.offsetWidth,this.handler=new Cesium.ScreenSpaceEventHandler(r);var o=this.handler,a=!1;function s(e){if(a){var i=e.endPosition.x,n=(r.offsetLeft+i)/r.parentElement.offsetWidth;r.style.left=100*n+"%",t.scene.splitDirection=n}}o.setInputAction((function(){a=!0}),Cesium.ScreenSpaceEventType.LEFT_DOWN),o.setInputAction((function(){a=!0}),Cesium.ScreenSpaceEventType.PINCH_START),o.setInputAction(s,Cesium.ScreenSpaceEventType.MOUSE_MOVE),o.setInputAction(s,Cesium.ScreenSpaceEventType.PINCH_MOVE),o.setInputAction((function(){a=!1}),Cesium.ScreenSpaceEventType.LEFT_UP),o.setInputAction((function(){a=!1}),Cesium.ScreenSpaceEventType.PINCH_END),this.changeLayers(i)}return s(e,[{key:"changeLayers",value:function(e){this.viewer.imageryLayers.removeAll(),this.layer1=this.viewer.imageryLayers.addImageryProvider(e[0]),this.layer2=this.viewer.imageryLayers.addImageryProvider(e[1]),this.layer2.splitDirection=Cesium.SplitDirection.LEFT}},{key:"destroy",value:function(){this.viewer.imageryLayers.remove(this.layer2),this.slider.parentNode.removeChild(this.slider),this.handler=null}},{key:"changeLeftRight",value:function(){this.layer2.splitDirection=-this.layer2.splitDirection}}]),e}();function fo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function mo(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):fo(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function go(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var _o={size:18,pixelRange:40,gradient:{1e-4:Cesium.Color.DEEPSKYBLUE,.001:Cesium.Color.GREEN,.01:Cesium.Color.ORANGE,.1:Cesium.Color.RED},outColor:null,boderColor:null,fontSize:12,fontColor:Cesium.Color.BLACK,style:"circle",height:-1e3},yo=function(e){u(i,e);var t=go(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._nativeObjCesium=new Cesium.CustomDataSource(r.name),e._options=mo(mo({},_o),r),e._nativeObjCesium.clustering.enabled=!0,e._nativeObjCesium.clustering.clusterEvent.addEventListener(e._clusterEventHandler,d(e)),e._nativeObjCesium.clustering.pixelRange=e._options.pixelRange,e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("cluster")}},{key:"enableCluster",set:function(e){this._nativeObjCesium.clustering.enabled=e}},{key:"setHeight",value:function(e,t){var i=Cesium.Cartographic.fromCartesian(e);return i.height=t,Cesium.Cartographic.toCartesian(i)}},{key:"_drawCircle",value:function(e,t){var i=this._options.size*(t+1),n=e.toCssColorString()+"-"+i;if(!this._cache[n]){var r,o=document.createElement("canvas");o.width=i,o.height=i;var a,s=o.getContext("2d");if(s.save(),s.scale(i/24,i/24),s.fillStyle=(null===(r=this._options.outColor)||void 0===r?void 0:r.toCssColorString())||e.withAlpha(.2).toCssColorString(),s.beginPath(),s.arc(12,12,this._options.boderColor?12:11,0,2*Math.PI),s.closePath(),s.fill(),this._options.boderColor)s.beginPath(),s.arc(12,12,10,0,2*Math.PI),s.fillStyle=null===(a=this._options.boderColor)||void 0===a?void 0:a.toCssColorString(),s.fill(),s.closePath();s.beginPath(),s.arc(12,12,8,0,2*Math.PI),s.fillStyle=e.toCssColorString(),s.fill(),s.closePath(),s.restore(),this._cache[n]=o.toDataURL()}return this._cache[n]}},{key:"_drawClustering",value:function(e,t){var i=this._options.size*(t+1),n=e.toCssColorString()+"-"+i,r=-Math.PI/12,o=Math.PI/2,a=Math.PI/6;if(!this._cache[n]){var s=document.createElement("canvas");s.width=i,s.height=i;var c=s.getContext("2d");c.save(),c.scale(i/24,i/24),c.beginPath(),c.arc(12,12,6,0,2*Math.PI),c.fillStyle=e.toCssColorString(),c.fill(),c.closePath(),c.lineWidth=2;for(var l=0;l<3;l++)c.beginPath(),c.arc(12,12,8,r,r+o,!1),c.strokeStyle=e.withAlpha(.4).toCssColorString(),c.stroke(),c.arc(12,12,11,r,r+o,!1),c.strokeStyle=e.withAlpha(.2).toCssColorString(),c.stroke(),c.closePath(),r=r+o+a;c.restore(),this._cache[n]=s.toDataURL()}return this._cache[n]}},{key:"_clusterEventHandler",value:function(e,t){if(this._nativeObjCesium.clustering.enabled&&(t.billboard.show=!0,t.label.font="bold ".concat(this._options.fontSize,"px sans-serif"),t.label.fillColor=this._options.fontColor,t.label.disableDepthTestDistance=Number.POSITIVE_INFINITY,this._nativeObjCesium.entities.values.length)){var i=this._nativeObjCesium.entities.values.length||0;for(var n in this._options.gradient)if(e.length>=i*n){var r=String(e.length).length;"circle"===this._options.style?t.billboard.image=this._drawCircle(this._options.gradient[n],r):"custom"===this._options.style?t.billboard.image=this._options.gradient[n]:t.billboard.image=this._drawClustering(this._options.gradient[n],r),t.billboard.label=t.label,t.billboard.position=this.setHeight(t.billboard.position,2),t.label.show=!0,t.label.pixelOffset=1===r?new Cesium.Cartesian2(-2,3):new Cesium.Cartesian2(-5*(r-1),5)}else e.length<=1&&(t.label.show=!1)}}},{key:"clear",value:function(){return this._nativeObjCesium.entities.removeAll(),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("cluster");const Co=yo;function vo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var To=function(e){u(i,e);var t=vo(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._nativeObjCesium=Cesium.CzmlDataSource.load(r.url,r),e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("czml")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium&&this._nativeObjCesium.then((function(e){e.show=t._show}))}},{key:"eachGraphic",value:function(e,t){if(this._nativeObjCesium)return this._nativeObjCesium.then((function(i){i.entities.values.forEach((function(i){e.call(t,i)}))})),this}}]),i}(Ki);Ki.registerType("czml");const So=To;function Ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var bo=function(e){u(i,e);var t=Ao(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=new Cesium.CustomDataSource(r.businessID),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("dynamic")}},{key:"clear",value:function(){return this._nativeObjCesium.entities&&this._nativeObjCesium.entities.removeAll(),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("dynamic");const Eo=bo;function xo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Po(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):xo(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Do(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var wo={name:"",count:10,maximumLevel:21,dataProperty:"",callback:function(){return null}},Mo=function(e){u(i,e);var t=Do(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,i),(e=t.call(this,r))._url=r.url,e._options=Po(Po({},wo),r),e._levelLayers={},e._tileWidth=256,e._tileHeight=256,e._maximumLevel=e._options.maximumLevel,e._tilingScheme=e._options.tilingScheme||new Cesium.GeographicTilingScheme,e._rectangle=e._tilingScheme.rectangle,e._credit=void 0,e._token=void 0;for(var o=0;o<e.maximumLevel;o++)e._levelLayers[String(o)]=new oo(e.businessID+"-grid-"+o);return e._viewer=void 0,e._imageryLayer=void 0,e._imagery=document.createElement("canvas"),e._imagery.width=e._tileWidth,e._imagery.height=e._tileHeight,e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("feature_grid")}},{key:"url",get:function(){return this._url}},{key:"show",get:function(){return this._show},set:function(e){var t=this;return this._show=e,Object.keys(this._levelLayers).forEach((function(i){t._levelLayers[i].show=e})),this}},{key:"token",get:function(){return this._token}},{key:"tileWidth",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},{key:"tileHeight",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},{key:"maximumLevel",get:function(){if(!this.ready)throw new Cesium.DeveloperError("maximumLevel must not be called before the imagery provider is ready.");return this._maximumLevel}},{key:"minimumLevel",get:function(){if(!this.ready)throw new Cesium.DeveloperError("minimumLevel must not be called before the imagery provider is ready.");return 0}},{key:"tilingScheme",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},{key:"rectangle",get:function(){if(!this.ready)throw new Cesium.DeveloperError("rectangle must not be called before the imagery provider is ready.");return this._rectangle}},{key:"ready",get:function(){return!!this._url}},{key:"credit",get:function(){return this._credit}},{key:"hasAlphaChannel",get:function(){return!0}},{key:"_onAdd",value:function(e){var t=this;this._viewer=e,this._imageryLayer=this._viewer.imageryLayers.addImageryProvider(this),Object.keys(this._levelLayers).forEach((function(e){t._viewer.addLayer(t._levelLayers[e])})),this._state=Me.ADDED}},{key:"_onRemove",value:function(){var e=this;this._imageryLayer&&this._viewer.imageryLayers.remove(this._imageryLayer),Object.keys(this._levelLayers).forEach((function(t){e._viewer.removeLayer(e._levelLayers[t])})),this._state=Me.REMOVED}},{key:"getTileCredits",value:function(e,t,i){}},{key:"requestImage",value:function(e,t,i,n){var r=this,o=this._levelLayers[String(i)],a=this._tilingScheme.tileXYToRectangle(e,t,i);return this._viewer&&a&&o&&Cesium.Rectangle.intersection(a,this._viewer.viewBoundsRectangle)&&Cesium.Resource.fetchJson({url:this._url,queryParameters:{minX:Cesium.Math.toDegrees(a.west),minY:Cesium.Math.toDegrees(a.south),maxX:Cesium.Math.toDegrees(a.east),maxY:Cesium.Math.toDegrees(a.north),count:this._options.count}}).then((function(e){var t=e;if(r._options.dataProperty&&(t=e[r._options.dataProperty]),t&&t.length){for(var n=i+3;n<r._maximumLevel;n++)r._levelLayers[String(n)]&&r._levelLayers[String(n)].clear();t.forEach((function(e){var t=r._options.callback(e);t&&o.addGraphic(t)}))}})),this._imagery}},{key:"clear",value:function(){var e=this;Object.keys(this._levelLayers).forEach((function(t){e._levelLayers[t].clear()})),this._state=Me.CLEARED}}]),i}(Ki);Ki.registerType("feature_grid");const Io=Mo;function Ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Oo=function(e){u(i,e);var t=Ro(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n(this,i),!r.url)throw new Error("GpxLayer: url不能为空!");return(e=t.call(this,r))._nativeObjCesium=Cesium.GpxDataSource.load(r.url,r),e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("gpx")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium&&this._nativeObjCesium.then((function(e){e.show=t._show}))}},{key:"eachGraphic",value:function(e,t){if(this._nativeObjCesium)return this._nativeObjCesium.then((function(i){i.entities.values.forEach((function(i){e.call(t,i)}))})),this}}]),i}(Ki);Ki.registerType("gpx");const Lo=Oo;function Bo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Fo=function(e){u(i,e);var t=Bo(i);function i(){var e;return n(this,i),(e=t.call(this))._nativeObjCesium=new Cesium.PrimitiveCollection,e._isGround=!0,e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("ground_primitive")}},{key:"clear",value:function(){return this._nativeObjCesium&&this._nativeObjCesium.removeAll(),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("ground_primitive");const No=Fo;function Vo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ko=function(e){u(i,e);var t=Vo(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=j.create("div","html-layer",void 0),r._nativeObjCesium.setAttribute("id",r.businessID),r._renderRemoveCallback=void 0,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("html")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium.style.visibility=this._show?"visible":"hidden",Object.keys(this._cache).forEach((function(i){t._cache[i].show=e}))}},{key:"_onAdd",value:function(e){var t=this;this._viewer=e,this._viewer.layerContainer.appendChild(this._nativeObjCesium);var i=this._viewer.scene;this._renderRemoveCallback=i.postRender.addEventListener((function(){var e=t._viewer.camera.positionWC,n=t._viewer.camera.direction;t.eachGraphic((function(t){if(t&&t.position){var r=_e.transformWGS84ToCartesian(t.position),o=i.globe.ellipsoid.geodeticSurfaceNormal(r,new Cesium.Cartesian3),a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i,r);t._updateStyle(a,Cesium.Cartesian3.distance(r,e),Cesium.Cartesian3.dot(n,o)<=0)}}),t)}),this),this._state=Me.ADDED}},{key:"_onRemove",value:function(){this._renderRemoveCallback&&this._renderRemoveCallback(),this._viewer.layerContainer.removeChild(this._nativeObjCesium),this._state=Me.REMOVED}},{key:"clear",value:function(){for(;this._nativeObjCesium.hasChildNodes();)this._nativeObjCesium.removeChild(this._nativeObjCesium.firstChild);return this._cache={},this._state=Me.CLEARED,this}},{key:"flyTo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-90,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=[];this.eachGraphic((function(t){if(t&&t.position&&e._viewer){var i=_e.transformWGS84ToCartesian(t.position);a.push(i)}})),a.length>0&&Xn.flyToPoints(this._viewer,a,t,i,n,r,o)}}]),i}(Ki);Ki.registerType("html");const $o=ko;function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Go=function(e){u(i,e);var t=Uo(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,i),!e)throw new Error("KmlLayer: data不能为空!");return(r=t.call(this,o))._nativeObjCesium=Cesium.KmlDataSource.load(e,o),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("kml")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium&&this._nativeObjCesium.then((function(e){e.show=t._show}))}},{key:"eachGraphic",value:function(e,t){if(this._nativeObjCesium)return this._nativeObjCesium.then((function(i){i.entities.values.forEach((function(i){e.call(t,i)}))})),this}}]),i}(Ki);Ki.registerType("kml");const zo=Go;function Ho(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Wo=function(e){u(i,e);var t=Ho(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._dataSource=Cesium.GeoJsonDataSource.load(e.url),r._nativeObjCesium=new Cesium.CustomDataSource(r.businessID),r._initLabel(),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("label")}},{key:"_createLabel",value:function(e){if(e.position&&e.name)return Ui.fromEntity(e)}},{key:"_initLabel",value:function(){var e=this;this._dataSource.then((function(t){t.entities.values.forEach((function(t){var i=e._createLabel(t);e.addGraphic(i)}))}))}}]),i}(Ki);Ki.registerType("label");const jo=Wo;function qo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Xo=function(e){u(i,e);var t=qo(i);function i(){var e;return n(this,i),(e=t.call(this))._nativeObjCesium=new Cesium.PrimitiveCollection,e._points=e._nativeObjCesium.add(new Cesium.PointPrimitiveCollection),e._labels=e._nativeObjCesium.add(new Cesium.LabelCollection),e._billboards=e._nativeObjCesium.add(new Cesium.BillboardCollection),e._polylines=e._nativeObjCesium.add(new Cesium.PolylineCollection),e._primitives=e._nativeObjCesium.add(new Cesium.PrimitiveCollection),Cesium.CloudCollection&&(e._clouds=e._nativeObjCesium.add(new Cesium.CloudCollection)),e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("primitive")}},{key:"points",get:function(){return this._points}},{key:"labels",get:function(){return this._labels}},{key:"billboards",get:function(){return this._billboards}},{key:"polylines",get:function(){return this._polylines}},{key:"primitives",get:function(){return this._primitives}},{key:"clouds",get:function(){return this._clouds}},{key:"clear",value:function(){return this._nativeObjCesium&&this._nativeObjCesium.removeAll(),this._points=this._nativeObjCesium.add(new Cesium.PointPrimitiveCollection),this._labels=this._nativeObjCesium.add(new Cesium.LabelCollection),this._billboards=this._nativeObjCesium.add(new Cesium.BillboardCollection),this._polylines=this._nativeObjCesium.add(new Cesium.PolylineCollection),Cesium.CloudCollection&&(this._clouds=this._nativeObjCesium.add(new Cesium.CloudCollection)),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("primitive");const Yo=Xo;function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Jo=function(e){u(i,e);var t=Ko(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=new Cesium.PrimitiveCollection,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("tileset")}},{key:"clear",value:function(){return this._nativeObjCesium.removeAll(),this._cache={},this._state=Me.CLEARED,this}},{key:"flyTo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-90,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=[];this.eachGraphic((function(t){if(t&&t.position&&e._viewer){var i=Transform.transformWGS84ToCartesian(t.position);a.push(i)}})),a.length>0&&LocateUtil.flyToPoints(this._viewer,a,t,i,n,r,o)}}]),i}(Ki);Ki.registerType("tileset");const Qo=Jo;function Zo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ea=function(e){u(i,e);var t=Zo(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,i),!e)throw new Error("TopoJsonLayer:the data invalid");return(r=t.call(this,e,o))._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("topojson")}}]),i}(co);co.registerType("topojson");const ta=ea;var ia=i(852),na=i.n(ia),ra=i(529),oa=i.n(ra),aa=i(885),sa=i.n(aa),ca=i(139),la=i.n(ca),ua=i(450),da=i.n(ua),ha=i(162),pa=i.n(ha),fa=i(750),ma=i.n(fa),ga=i(601),_a=i.n(ga);Cesium.Material.PolylineTrailType="PolylineTrail",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineTrailType,{fabric:{type:Cesium.Material.PolylineTrailType,uniforms:{color:new Cesium.Color(1,0,0,.7),image:Cesium.Material.DefaultImageId,speed:1,repeat:new Cesium.Cartesian2(1,1)},source:_a()},translucent:function(e){return!0}}),Cesium.Material.PolylineLightingTrailType="PolylineLightingTrail",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineLightingTrailType,{fabric:{type:Cesium.Material.PolylineLightingTrailType,uniforms:{color:new Cesium.Color(1,0,0,.7),image:Cesium.Material.DefaultImageId,speed:3},source:na()},translucent:function(e){return!0}}),Cesium.Material.PolylineImageTrailType="PolylineImageTrail",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineImageTrailType,{fabric:{type:Cesium.Material.PolylineImageTrailType,uniforms:{color:new Cesium.Color(1,0,0,.7),image:Cesium.Material.DefaultImageId,speed:1,repeat:new Cesium.Cartesian2(1,1)},source:oa()},translucent:function(e){return!0}}),Cesium.Material.PolylineLightingType="PolylineLighting",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineLightingType,{fabric:{type:Cesium.Material.PolylineLightingType,uniforms:{color:new Cesium.Color(1,0,0,.7),image:Cesium.Material.DefaultImageId},source:la()},translucent:function(e){return!0}}),Cesium.Material.PolylineGlowType="PolylineGlow",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineGlowType,{fabric:{type:Cesium.Material.PolylineGlowType,uniforms:{color:new Cesium.Color(1,.27,0,.9),glowPower:.06,taperPower:1},source:sa()},translucent:function(e){return!0}}),Cesium.Material.PolylineGradientType="PolylineGradient",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineGradientType,{fabric:{type:Cesium.Material.PolylineGradientType,uniforms:{color:new Cesium.Color(1,0,0,.5),image:"",transparent:!0,time:20},source:da()},translucent:function(){return!0}}),Cesium.Material.PolylineFlowType="PolylineFlow",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowType,{fabric:{type:Cesium.Material.PolylineFlowType,uniforms:{color:new Cesium.Color(1,0,0,.7),speed:1,percent:.03,gradient:.1},source:pa()},translucent:function(e){return!0}}),Cesium.Material.PolylineVFlywireType="PolylineVFlywire",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineVFlywireType,{fabric:{type:Cesium.Material.PolylineVFlywireType,uniforms:{color:new Cesium.Color(1,0,0,1),speed:10,percent:.1,gradient:.01},source:ma()},translucent:function(e){return!0}});var ya=i(724),Ca=i.n(ya);Cesium.Material.WallGradientType="WallGradient",Cesium.Material._materialCache.addMaterial(Cesium.Material.WallGradientType,{fabric:{type:Cesium.Material.WallGradientType,uniforms:{color:new Cesium.Color(1,1,1,1),image:Cesium.buildModuleUrl("static/images/wallgradient.png"),time:0},source:Ca()},translucent:function(e){return!0}}),Cesium.Material.WallFlowType="WallFlow",Cesium.Material._materialCache.addMaterial(Cesium.Material.WallFlowType,{fabric:{type:Cesium.Material.WallFlowType,uniforms:{color:new Cesium.Color(1,1,1,1),image:Cesium.buildModuleUrl("static/images/wallflow.png"),time:0},source:Ca()},translucent:function(e){return!0}});var va=i(586),Ta=i.n(va);Cesium.Material.CircleWaveMaterialType="CircleWaveMaterial",Cesium.Material._materialCache.addMaterial(Cesium.Material.CircleWaveMaterialType,{fabric:{type:Cesium.Material.CircleWaveMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1),time:1,count:1,gradient:.1},source:Ta()},translucent:function(e){return!0}});var Sa=i(486),Aa=i.n(Sa);Cesium.Material.CircleBlurType="CircleBlur",Cesium.Material._materialCache.addMaterial(Cesium.Material.CircleBlurType,{fabric:{type:Cesium.Material.CircleBlurType,uniforms:{color:new Cesium.Color(1,0,0,.7),speed:3},source:Aa()},translucent:function(e){return!0}});const ba=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._colorSubscription=void 0,this._speed=void 0,this._speedSubscription=void 0,this.color=t.color||Cesium.Color.fromBytes(0,255,255,255),this.speed=t.speed||1}return s(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return null}},{key:"getValue",value:function(e,t){return t=Cesium.defaultValue(t,{})}},{key:"equals",value:function(e){return this===e}}]),e}();function Ea(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var xa=function(e){u(i,e);var t=Ea(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e.image=Cesium.buildModuleUrl("static/images/lighting.png"),e}return s(i,[{key:"getType",value:function(e){return"PolylineLightingTrail"}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.image=Cesium.Property.getValueOrUndefined(this._image,e),t.speed=this._speed,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)}}]),i}(ba);Object.defineProperties(xa.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),image:Cesium.createPropertyDescriptor("image")});const Pa=xa;function Da(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var wa=function(e){u(i,e);var t=Da(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,e)}return s(i,[{key:"getType",value:function(e){return"PolylineTrail"}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.speed=this._speed,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)}}]),i}(ba);Object.defineProperties(wa.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed")});const Ma=wa;function Ia(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ra=function(e){u(i,e);var t=Ia(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e._repeat=void 0,e._repeatSubscription=void 0,e.image=r.image,r.repeat||(r.repeat={x:1,y:1}),e.repeat=new Cesium.Cartesian2(r.repeat.x,r.repeat.y),e}return s(i,[{key:"getType",value:function(e){return Cesium.Material.PolylineImageTrailType}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.image=Cesium.Property.getValueOrUndefined(this._image,e),t.repeat=Cesium.Property.getValueOrUndefined(this._repeat,e),t.speed=this._speed,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._image,e._image)&&Cesium.Property.equals(this._repeat,e._repeat)&&Cesium.Property.equals(this._speed,e._speed)}}]),i}(ba);Object.defineProperties(Ra.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),image:Cesium.createPropertyDescriptor("image"),repeat:Cesium.createPropertyDescriptor("repeat")});const Oa=Ra;function La(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ba=function(e){u(i,e);var t=La(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e.image=Cesium.buildModuleUrl("static/images/lighting.png"),e}return s(i,[{key:"getType",value:function(e){return Cesium.Material.PolylineLightingType}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.image=Cesium.Property.getValueOrUndefined(this._image,e),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._image,e._image)}}]),i}(ba);Object.defineProperties(Ba.prototype,{color:Cesium.createPropertyDescriptor("color"),image:Cesium.createPropertyDescriptor("image")});const Fa=Ba;function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Va=Cesium.Color.WHITE,ka=function(e){u(i,e);var t=Na(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._glowPower=void 0,e._glowPowerSubscription=void 0,e._taperPower=void 0,e._taperPowerSubscription=void 0,e.color=r.color,e.glowPower=r.glowPower,e.taperPower=r.taperPower,e}return s(i,[{key:"getType",value:function(e){return Cesium.Material.PolylineGlowType}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Va,t.color),t.glowPower=Cesium.Property.getValueOrDefault(this._glowPower,e,.25,t.glowPower),t.taperPower=Cesium.Property.getValueOrDefault(this._taperPower,e,1,t.taperPower),t}},{key:"equals",value:function(e){return!1}}]),i}(ba);Object.defineProperties(ka.prototype,{color:Cesium.createPropertyDescriptor("color"),glowPower:Cesium.createPropertyDescriptor("glowPower"),taperPower:Cesium.createPropertyDescriptor("taperPower")});const $a=ka;function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ga=function(e){u(i,e);var t=Ua(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._time=performance.now(),e.duration=r.duration,e.image=Cesium.buildModuleUrl("static/images/linegradient.png"),e}return s(i,[{key:"getType",value:function(e){return"PolylineGradient"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.image=this.image,t.time=(performance.now()-this._time)%this.duration/this.duration,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&this.duration===e.duration}}]),i}(ba);Object.defineProperties(Ga.prototype,{color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration")});const za=Ga;function Ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Wa=function(e){u(i,e);var t=Ha(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._percent=void 0,e._percentSubscription=void 0,e._gradient=void 0,e._gradientSubscription=void 0,e.percent=r.percent||.03,e.gradient=r.gradient||.1,e}return s(i,[{key:"getType",value:function(e){return Cesium.Material.PolylineFlowType}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.speed=this._speed,t.percent=this._percent,t.gradient=this._gradient,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)&&Cesium.Property.equals(this._percent,e._percent)&&Cesium.Property.equals(this._gradient,e._gradient)}}]),i}(ba);Object.defineProperties(Wa.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),percent:Cesium.createPropertyDescriptor("percent"),gradient:Cesium.createPropertyDescriptor("gradient")});const ja=Wa;function qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Xa=function(e){u(i,e);var t=qa(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._percent=void 0,e._gradient=void 0,e.color=r.color,e.speed=r.speed,e.percent=r.percent,e.gradient=r.gradient,e}return s(i,[{key:"getType",value:function(e){return"PolylineVFlywire"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,5,t.speed),t.percent=Cesium.Property.getValueOrDefault(this._percent,e,.1,t.percent),t.gradient=Cesium.Property.getValueOrDefault(this._gradient,e,.01,t.gradient),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)&&Cesium.Property.equals(this._percent,e._percent)&&Cesium.Property.equals(this._gradient,e._gradient)}}]),i}(ba);Object.defineProperties(Xa.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),percent:Cesium.createPropertyDescriptor("percent"),gradient:Cesium.createPropertyDescriptor("gradient")});const Ya=Xa;function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ja=function(e){u(i,e);var t=Ka(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,e)}return s(i,[{key:"getType",value:function(e){return Cesium.Material.CircleBlurType}},{key:"getValue",value:function(e,t){return(t=Cesium.defaultValue(t,{})).color=Cesium.Property.getValueOrUndefined(this._color,e),t.speed=this._speed,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)}}]),i}(ba);Object.defineProperties(Ja.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed")});const Qa=Ja;var Za=function(){function e(t){n(this,e),t=t||{},this._definitionChanged=new Cesium.Event,this._baseWaterColor=void 0,this._baseWaterColorSubscription=void 0,this.baseWaterColor=t.baseWaterColor||new Cesium.Color(.2,.3,.6,1),this._blendColor=void 0,this._blendColorSubscription=void 0,this.blendColor=t.blendColor||new Cesium.Color(0,1,.699,1),this._specularMap=void 0,this._specularMapSubscription=void 0,this.specularMap=t.specularMap||Cesium.Material.DefaultImageId,this._normalMap=void 0,this._normalMapSubscription=void 0,this.normalMap=t.normalMap||Cesium.buildModuleUrl("static/images/water/waterNormalsSmall.jpg"),this.frequency=Cesium.defaultValue(t.frequency,1e3),this.animationSpeed=Cesium.defaultValue(t.animationSpeed,.01),this.amplitude=Cesium.defaultValue(t.amplitude,10),this.specularIntensity=Cesium.defaultValue(t.specularIntensity,.5)}return s(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.WaterType}},{key:"getValue",value:function(e,t){return t||(t={}),t.baseWaterColor=Cesium.Property.getValueOrUndefined(this._baseWaterColor,e),t.blendColor=Cesium.Property.getValueOrUndefined(this._blendColor,e),t.specularMap=Cesium.Property.getValueOrUndefined(this._specularMap,e),t.normalMap=Cesium.Property.getValueOrUndefined(this._normalMap,e),t.frequency=this.frequency,t.animationSpeed=this.animationSpeed,t.amplitude=this.amplitude,t.specularIntensity=this.specularIntensity,t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._baseWaterColor,t._baseWaterColor)}}]),e}();Object.defineProperties(Za.prototype,{baseWaterColor:Cesium.createPropertyDescriptor("baseWaterColor"),blendColor:Cesium.createPropertyDescriptor("blendColor"),specularMap:Cesium.createPropertyDescriptor("specularMap"),normalMap:Cesium.createPropertyDescriptor("normalMap")});const es=Za;function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var is=function(e){u(i,e);var t=ts(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e.image=Cesium.buildModuleUrl("static/images/wallgradient.png"),e.duration=r.duration,e.trailImage=r.trailImage,e._time=(new Date).getTime(),e}return s(i,[{key:"getType",value:function(e){return"WallGradient"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.WHITE,t.color),t.image=this.image,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)}}]),i}(ba);Object.defineProperties(is.prototype,{color:Cesium.createPropertyDescriptor("color")});const ns=is;function rs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var os=function(e){u(i,e);var t=rs(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r)).duration=Cesium.defaultValue(r.duration,1e3),e.count=Cesium.defaultValue(r.count,2),e.color=r.color,e._time=(new Date).getTime(),e.count<=0&&(e.count=1),e.gradient=Cesium.defaultValue(r.gradient,.1),0===e.gradient&&(e.gradient=0),e.gradient>1&&(e.gradient=1),e}return s(i,[{key:"getType",value:function(e){return"CircleWaveMaterial"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.WHITE,t.color),t.time=((new Date).getTime()-this._time)%this.duration/this.duration,t.count=this.count,t.gradient=1+10*(1-this.gradient),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)}}]),i}(ba);Object.defineProperties(os.prototype,{color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration"),count:Cesium.createPropertyDescriptor("count")});const as=os;function ss(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var cs=function(e){u(i,e);var t=ss(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e.image=Cesium.buildModuleUrl("static/images/wallflow.png"),e.duration=r.duration,e.trailImage=r.trailImage,e._time=(new Date).getTime(),e}return s(i,[{key:"getType",value:function(e){return"WallFlow"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.WHITE,t.color),t.image=this.image,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)}}]),i}(ba);Object.defineProperties(cs.prototype,{color:Cesium.createPropertyDescriptor("color")});const ls=cs;function us(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const ds=function(e){u(i,Cesium.PolylineCollection);var t=us(i);function i(e){return n(this,i),t.call(this,e)}return s(i,[{key:"update",value:function(e){var t=Cesium.PolylineCollection.prototype.update,i=e.morphTime;e.morphTime=0,t.call(this,e),e.morphTime=i}},{key:"createPolyline",value:function(e,t){if(!Array.isArray(e))throw new Cesium.DeveloperError("必须传入positions数组!");if(!(e.length<2)){var i=Cesium.defaultValue(t.loop,!1),n=Cesium.defaultValue(t.width,2),r=new Cesium.Material({fabric:{type:"Color",uniforms:{color:new Cesium.Color(1,1,1,1)}}}),o=Cesium.defaultValue(t.material,r);if(e.length>=2){var a=e.map((function(e){return Cesium.Cartesian3.clone(e)}));return this.add({material:o,positions:a,width:n,loop:i})}}}}]),i}();const hs=function(){function e(t,i){if(n(this,e),!t)throw new Cesium.DeveloperError("viewer参数是必须的!");t=t.nativeObjCesium||t,this.outline=Cesium.defaultValue(i.outline,!1),this.justDraw=i.justDraw||!1,this.pointColor=i.pointColor||Cesium.Color.RED,this.pointSize=i.pointSize||6,this.outlineColor=i.outlineColor||Cesium.Color.CHARTREUSE,this.outlineWidth=i.outlineWidth||3,this.billboard=Cesium.defaultValue(i.billboard,void 0),this.pointParas={color:this.pointColor,size:this.pointSize,outlineColor:this.outlineColor,outlineWidth:this.outlineWidth,show:Cesium.defaultValue(i.pointShow,!0),billboard:this.billboard,justDraw:this.justDraw},this.tempPointParas={size:i.tempPoint_size||10,color:i.tempPoint_color||Cesium.Color.YELLOW,show:Cesium.defaultValue(i.tempPoint_show,!0),justDraw:!Cesium.defaultValue(i.tempPoint_showLabel,!1)},this.lineColor=i.lineColor||Cesium.Color.CHARTREUSE,this.lineWidth=i.lineWidth||3,this.showToolTip=Cesium.defaultValue(i.showToolTip,!0),this.lastLeftClickPoint=void 0,this.viewer=t,this.ismeare=i.ismeare||!1,this.positions=[],this.cartesian=null,this.mouseHandler=null,this.onCompleted=i.onCompleted,this._pointLabels=[],this._totalLengthPointLabel=void 0,this._originCursor=void 0,this.polygonPoint=null,this.poly=null,this.showToolTip&&this._addToolTip();var r=De.createPointLabel(this.viewer,new Cesium.Cartesian3(0,0,0),"",De.drawEntityNames().tempPoint,this.tempPointParas);r.point.show=!1,r.show=!1,this._tempPoint=r,this.clampToGround=Cesium.defaultValue(i.clampToGround,!1)}return s(e,[{key:"_addToolTip",value:function(){this.tooltip||(0!=this.showToolTip?(this.tooltip=j.create("div","as-measure",this.viewer.container),this.tooltip.style.borderRadius="5px",this.tooltip.style.position="absolute",this.tooltip.style.color="#c3cbd3",this.tooltip.style.background="#336666",this.tooltip.innerHTML=this.tooltip.innerHTML||"<div>左键单击选点,双击结束绘制,右键取消</div>",this.tooltip.style.display="none",window._drawToolTips=window._drawToolTips||[],window._drawToolTips.push(this.tooltip)):this._removeToolTips())}},{key:"_removeToolTips",value:function(){window._drawToolTips&&window._drawToolTips.forEach((function(e){j.remove(e)})),this.tooltip=void 0,window._drawToolTips=[]}},{key:"_notrackPos",value:function(){this.viewer.selectedEntity=void 0,this.viewer.trackedEntity=void 0}},{key:"_removeFloatPoint",value:function(e){var t=this,i=e.findIndex((function(e){return e.equals(t.lastLeftClickPoint)}));return i>-1&&e.splice(i+1,e.length-i-1),e}},{key:"_removeSamePoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(e.length<2)){for(var t=0;t<e.length-1;t++){var i=e[t],n=e[t+1];"function"==typeof i.equals&&i.equals(n)&&(console.log("element",i),console.log("element",n),e.splice(t,1),t--)}return e}}},{key:"startDraw",value:function(){}},{key:"clearAll",value:function(){this.clear(De.drawEntityNames()),this._pointLabels=[],this.end()}},{key:"clear",value:function(e){if(e){for(var t=Object.values(e),i=0;i<this.viewer.entities.values.length;i++){var n=this.viewer.entities.values[i];t.indexOf(n.name)>-1&&(this.viewer.entities.removeById(n.id),i--)}this._removeToolTips()}}},{key:"end",value:function(){this._removeToolTips(),this.ismeare=!1,this.positions=[],this.poly=null,this.cartesian=null,this.tooltip&&(this.tooltip.style.display="none"),this.mouseHandler&&(this.mouseHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK),this.mouseHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this.mouseHandler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE),this.mouseHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK),this.mouseHandler.destroy(),this.mouseHandler=null),this._preUpdateListener&&this._preUpdateListener.call(),this._totalLengthPointLabel=void 0,this.viewer.scene.canvas.style.cursor="",this.viewer.selectedEntity=null,this.viewer.trackedEntity=null,"function"==typeof this._preUpdateListener&&(this._preUpdateListener(),this._preUpdateListener=void 0),this._tempPoint&&(this._tempPoint.show=!1,this._tempPoint.point.show=!1),this.polygonPoint=null}},{key:"updateNoDepthTestPolyline",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;void 0!==this._polyline&&this._polylineCollection&&(this._polylineCollection.remove(this._polyline),this._polyline=void 0),t._polylineCollection&&(t._polyline=t._polylineCollection.createPolyline(t.positions,{loop:e,width:t.lineWidth,material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:t.lineColor}}})}))}},{key:"initNoDepthTestPolyline",value:function(){this._polylineCollection||(this._polyline=void 0,this._polylineCollection=new ds,this.viewer.scene.primitives.add(this._polylineCollection))}},{key:"clearNoDepthTestPolyline",value:function(){this._polylineCollection&&(this._polyline=void 0,this.viewer.scene.primitives.remove(this._polylineCollection),this._polylineCollection=this._polylineCollection&&!this._polylineCollection.isDestroyed()&&this._polylineCollection.destroy(),this._polylineCollection=void 0)}},{key:"createPolylinePrimitive",value:function(e,t,i){if(Array.isArray(e)&&!(e.length<2))return t||(t=Cesium.Color.RED),new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:e,width:i||2,vertexFormat:Cesium.PolylineMaterialAppearance.VERTEX_FORMAT})}),appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:t||new Cesium.Color(1,1,1,1)}}}),renderState:new Cesium.RenderState({polygonOffset:{enabled:!0,factor:-100,units:-100},depthTest:{enabled:!0,func:Cesium.WebGLConstants.LEQUAL}})}),depthFailAppearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineDash",uniforms:{color:t||new Cesium.Color(1,1,1,1)}}})}),allowPicking:!1});console.log("点数少于2,无法绘制线!")}},{key:"_addPolyLinePrimitives",value:function(){this.polyLinePrimitives||(this.polyLinePrimitives=new Cesium.PrimitiveCollection,this.viewer.scene.primitives.add(this.polyLinePrimitives))}},{key:"_clearPolyLinePrimitives",value:function(){this.polyLinePrimitives&&(this.viewer.scene.primitives.remove(this.polyLinePrimitives),this.polyLinePrimitives=this.polyLinePrimitives&&!this.polyLinePrimitives.isDestroyed()&&this.polyLinePrimitives.destroy(),this.polyLinePrimitives=void 0)}},{key:"_getObjectsToExclude",value:function(){var e=[];this.polyLinePrimitives&&e.push(this.polyLinePrimitives),this._polyline&&e.push(this._polyline),this._polylineCollection&&e.push(this._polylineCollection);var t=this.viewer.entities.values.filter((function(e){return De.drawEntityNames()[e.name]}));return e.push.apply(e,Fe(t)),e}}]),e}();function ps(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const fs=function(e){u(i,e);var t=ps(i);function i(e,r){return n(this,i),r.tempPoint_showLabel=Cesium.defaultValue(r.tempPoint_showLabel,!0),t.call(this,e,r)}return s(i,[{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Point()),this.end()}},{key:"_addToolTip",value:function(){$(p(i.prototype),"_addToolTip",this).call(this),this.tooltip&&(this.tooltip.innerHTML="<p>左键单击选点,右键结束</p>")}},{key:"startDraw",value:function(){var e=this;this.end(),this._addToolTip(),this.ismeare=!0;var t=this.ismeare,i=this.viewer;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(i.scene.canvas);var n=this.mouseHandler,r=this;this._originCursor=i.scene.canvas.style.cursor,i.scene.canvas.style.cursor="crosshair";var o=new Cesium.Cartesian2,a=!1,s=Cesium.JulianDate.now();n.setInputAction((function(n){if(i.selectedEntity=null,i.trackedEntity=null,r._tempPoint.point.show=!1,t){var a=De.pickPosition(i,o,e._getObjectsToExclude());if(a){var s=De.getPointLableString(a);r._pointLabels.push(De.createPointLabel(i,a,s,De.drawEntityNames().drawPoint,e.pointParas)),r._tempPoint.show=!1,r.onCompleted&&r.onCompleted(a)}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),n.setInputAction((function(e){r.end()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK),n.setInputAction((function(e){r.end()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),r.mouseHandler.setInputAction((function(e){var t=Cesium.JulianDate.now();Cesium.JulianDate.secondsDifference(t,s)<.03||(s=t,r.tooltip&&(r.justDraw||(r.tooltip.style.display="block"),r.tooltip.style.left=e.endPosition.x+25+"px",r.tooltip.style.top=e.endPosition.y-30+"px"),a=!0,o=Cesium.Cartesian2.clone(e.endPosition,o))}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),this.tempPointParas.show&&(this._preUpdateListener=i.scene.preUpdate.addEventListener((function(){if(a){a=!1;var t=De.pickPosition(i,o,e._getObjectsToExclude());if(t)if(r._tempPoint.show=!0,r._tempPoint.point.show=!0,r.justDraw)De.setPointPosition(r._tempPoint,t);else{var n=De.getPointLableString(t);De.setPointLabel(r._tempPoint,t,n)}else r._tempPoint.show=!1,r._tempPoint.point.show=!1}})))}}]),i}(hs);function ms(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const gs=function(e){u(i,e);var t=ms(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r)).perPositionHeight=Cesium.defaultValue(r.perPositionHeight,!1),o.fillColor=r.fillColor||new Cesium.Color(59,179,249,.5),o.fill=Cesium.defaultValue(r.fill,!0),o}return s(i,[{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Polygon()),$(p(i.prototype),"clearNoDepthTestPolyline",this).call(this),$(p(i.prototype),"_clearPolyLinePrimitives",this).call(this),this.end()}},{key:"_removeFloatPoint",value:function(e){return $(p(i.prototype),"_removeFloatPoint",this).call(this,e),e.length<3&&this.clear(),!this.justDraw&&e.length>=3&&this.showAreaLabel(),e}},{key:"startDraw",value:function(){var e=this;this.end(),this._addToolTip(),this._addPolyLinePrimitives(),this.initNoDepthTestPolyline();var t=this.tooltip;this.ismeare=!0;var i=this.ismeare,n=this.viewer,r=this.cartesian,o=this.positions;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(n.scene.canvas);var a=this.mouseHandler,s=this.poly,c=this;this._originCursor=n.scene.canvas.style.cursor,n.scene.canvas.style.cursor="crosshair";var l=new Cesium.Cartesian2,u=!1;this._preUpdateListener=n.scene.preUpdate.addEventListener((function(){if(u){if(u=!1,e.tooltip&&(e.tooltip.style.display="block",e.tooltip.style.left=l.x+25+"px",e.tooltip.style.top=l.y-25+"px"),!(r=De.pickPosition(n,l,e._getObjectsToExclude())))return e._tempPoint.show=!1,void(e._tempPoint.point.show=!1);if(e._tempPoint.show=!0,e._tempPoint.point.show=!0,e.justDraw)De.setPointPosition(e._tempPoint,r);else{var t=De.getPointLableString(r);De.setPointLabel(e._tempPoint,r,t)}if(Cesium.defined(s))null!=r&&(o.pop(),o.push(r));else{s=new Object;var i=new Cesium.CallbackProperty((function(){return o.length>2?new Cesium.PolygonHierarchy(o):null}),!1),a=new Cesium.CallbackProperty((function(){if(o.length>1){var e=[].concat(o),t=o[0];return e.push(t),e}return null}),!1),d={name:De.drawEntityNames().drawpolygon,polygon:{hierarchy:i,fill:c.fill,material:c.fillColor,perPositionHeight:c.perPositionHeight,heightReference:c.clampToGround?Cesium.HeightReference.CLAMP_TO_GROUND:Cesium.HeightReference.NONE}};e.clampToGround&&(d.polyline={positions:a,width:c.lineWidth,material:c.lineColor,clampToGround:c.clampToGround}),n.entities.add(d)}!e.clampToGround&&e.updateNoDepthTestPolyline(),o.length>2&&!c.justDraw&&c.showAreaLabel()}})),a.setInputAction((function(e){i&&(u=!0,l=Cesium.Cartesian2.clone(e.endPosition,l))}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),a.setInputAction((function(a){if(e._tempPoint.point.show=!1,e._tempPoint.show=!1,i&&r&&i){if(t.style.display="none",!r)return;0==o.length&&o.push(r.clone()),o.push(r),c.lastLeftClickPoint=o[o.length-1],n.entities.add({name:De.drawEntityNames().drawpolygonpoint,position:o[o.length-1],point:{pixelSize:c.pointSize,color:c.pointColor,disableDepthTestDistance:1e9}})}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),a.setInputAction((function(t){if(c._notrackPos(),(o=c._removeSamePoint(o)).length>=3){var i=[].concat(o),n=o[0];if(i.push(n),!e.clampToGround){var r=c.createPolylinePrimitive(i,c.lineColor,c.lineWidth);c.polyLinePrimitives.add(r),c.clearNoDepthTestPolyline()}c.onCompleted&&c.onCompleted(i)}c.end()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),a.setInputAction((function(t){if(c._notrackPos(),o=c._removeFloatPoint(o),(o=c._removeSamePoint(o)).length>=3){var i=[].concat(o),n=o[0];if(i.push(n),!e.clampToGround){var r=c.createPolylinePrimitive(i,c.lineColor,c.lineWidth);c.polyLinePrimitives.add(r),c.clearNoDepthTestPolyline()}c.onCompleted&&c.onCompleted(o)}c.end()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"showAreaLabel",value:function(){var e=De.getPolygonArea(this.positions),t="面积:"+(e=e||0).toFixed(2)+"平方米";e>=1e4&&(t="面积:"+(e/1e6).toFixed(2)+"平方千米"),e>=1e10&&(t="面积:"+(e/1e10).toFixed(2)+"万平方千米");var i=Cesium.BoundingSphere.fromPoints(this.positions);void 0===this._totalLengthPointLabel?(this._totalLengthPointLabel=De.createPointLabel(this.viewer,i.center,t,De.drawEntityNames().drawpolygon),this._totalLengthPointLabel.point.show=!1):De.setPointLabel(this._totalLengthPointLabel,i.center,t)}}]),i}(hs);function _s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const ys=function(e){u(i,e);var t=_s(i);function i(e,r){return n(this,i),t.call(this,e,r)}return s(i,[{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Polyline()),$(p(i.prototype),"clearNoDepthTestPolyline",this).call(this),$(p(i.prototype),"_clearPolyLinePrimitives",this).call(this),this.end()}},{key:"_removeFloatPoint",value:function(e){return $(p(i.prototype),"_removeFloatPoint",this).call(this,e),e.length<2&&this.clear(),e.length>=2&&this.viewer.entities.remove(this._pointLabels_son.pop()),!this.justDraw&&this.showLengthLabel(e),e}},{key:"startDraw",value:function(){var e=this;this._addPolyLinePrimitives(),this.end(),this._addToolTip(),this.initNoDepthTestPolyline(),this._pointLabels_son=[],this.ismeare=!0;var t=this.ismeare,i=this.viewer,n=this.cartesian,r=this.positions;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(i.scene.canvas);var o=this.mouseHandler,a=this;this._originCursor=i.scene.canvas.style.cursor,i.scene.canvas.style.cursor="crosshair";var s=new Cesium.Cartesian2,c=!1;this._preUpdateListener=i.scene.preUpdate.addEventListener((function(){if(c){c=!1,e.tooltip&&(e.tooltip.style.display="block",e.tooltip.style.left=s.x+25+"px",e.tooltip.style.top=s.y-25+"px");var t=i.scene.pick(s);if((n=Cesium.defined(t)&&t.id instanceof Cesium.Entity&&t.id.point&&t.id.position&&t.id.position._value?t.id.position._value:De.pickPosition(i,s,e._getObjectsToExclude()))||(n=De.pickPosition(i,s,e._getObjectsToExclude())),!n)return a._tempPoint.show=!1,void(a._tempPoint.point.show=!1);if(a._tempPoint.show=!0,a._tempPoint.point.show=!0,a.justDraw)De.setPointPosition(a._tempPoint,n);else{var o=De.getPointLableString(n);De.setPointLabel(a._tempPoint,n,o)}r.length>=2&&(Cesium.defined(e.poly)?(r.pop(),r.push(n)):e.poly=new Object,!a.justDraw&&a.showLengthLabel(r)),e.updateNoDepthTestPolyline(!1)}})),o.setInputAction((function(e){t&&(c=!0,s=Cesium.Cartesian2.clone(e.endPosition,s))}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),o.setInputAction((function(o){a._tempPoint.point.show=!1,a._tempPoint.show=!1,t&&n&&(0==r.length&&r.push(n.clone()),r.push(n.clone()),e.lastLeftClickPoint=r[r.length-1],i.entities.add({name:De.drawEntityNames().drawpolylinepoint,position:n,point:{pixelSize:e.pointSize,color:e.pointColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,disableDepthTestDistance:1e9}}))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),o.setInputAction((function(t){if(a._notrackPos(),e.clampToGround)new l(r)._init();else{var i=a.createPolylinePrimitive(a._removeSamePoint(r),a.lineColor,a.lineWidth);a.polyLinePrimitives&&a.polyLinePrimitives.add(i)}a.clearNoDepthTestPolyline(),a.onCompleted&&a.onCompleted(a._removeSamePoint(r)),a.end()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),o.setInputAction((function(t){if(a._notrackPos(),r=e._removeFloatPoint(r),r=e._removeSamePoint(r),e.clampToGround)new l(r)._init();else{var i=a.createPolylinePrimitive(a._removeSamePoint(r),a.lineColor,a.lineWidth);i&&a.polyLinePrimitives&&a.polyLinePrimitives.add(i)}a.clearNoDepthTestPolyline(),a.onCompleted&&a.onCompleted(a._removeSamePoint(r)),a.end()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var l=function(){function e(e){this.options={name:De.drawEntityNames().drawpolyline,polyline:{width:a.lineWidth,arcType:Cesium.ArcType.RHUMB,clampToGround:a.clampToGround,material:a.lineColor,depthFailMaterial:new Cesium.PolylineDashMaterialProperty({color:a.lineColor})}},this.positions=e,this._init()}return e.prototype._init=function(){var e=this;this.options.polyline.positions=new Cesium.CallbackProperty((function(){return e.positions}),!1),this.polyLine=i.entities.add(this.options)},e.prototype.remove=function(){this.polyLine&&i.entities.remove(this.polyLine),this.polyLine=void 0},e}()}},{key:"showEachsegLengthLabel",value:function(e){var t=this,i=e.length;De.createPointLabelsCallback(e,(function(e,i,n,r){void 0===t._pointLabels_son[e]?(t._pointLabels_son[e]=De.createPointLabel(t.viewer,n,r),t._pointLabels_son[e].point.show=!1):De.setPointLabel(t._pointLabels_son[e],n,r),t._pointLabels_son[e].show=!0}));for(var n=i-1<0?0:i-1;n<this._pointLabels_son.length;++n)this._pointLabels_son[n].show=!1}},{key:"showTotalLength",value:function(e){var t=De.getPolylineDistance(e),i="总长:"+t.toFixed(2)+"米";t>=1e3&&(i="总长:"+(t/1e3).toFixed(2)+"千米"),void 0===this._totalLengthPointLabel?(this._totalLengthPointLabel=De.createPointLabel(this.viewer,e[0],i),this._totalLengthPointLabel.point.show=!1):De.setPointLabel(this._totalLengthPointLabel,e[0],i)}},{key:"showLengthLabel",value:function(e){this.showEachsegLengthLabel(e),this.showTotalLength(e)}},{key:"updatePolyLine",value:function(){}}]),i}(hs);function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const vs=function(e){u(i,e);var t=Cs(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r)).CLAMP_TO_GROUND=r.CLAMP_TO_GROUND||!0,o.fillColor=r.fillColor||Cesium.Color.YELLOW.withAlpha(.5),o.fill=Cesium.defaultValue(r.fill,!0),o}return s(i,[{key:"_addToolTip",value:function(){$(p(i.prototype),"_addToolTip",this).call(this),this.tooltip&&(this.tooltip.innerHTML="<div>左键单击选点</div>")}},{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Rectangle()),this.end()}},{key:"_removeFloatPoint",value:function(e){return $(p(i.prototype),"_removeFloatPoint",this).call(this,e),e.length<2&&this.clear(),e}},{key:"startDraw",value:function(){var e=this;this.end(),this._addToolTip();var t=this.tooltip;this.ismeare=!0;var i=this.ismeare,n=this.viewer,r=this.cartesian,o=this.positions,a=this.polygonPoint;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(n.scene.canvas);var s=this.mouseHandler,c=this.poly,l=this;this._originCursor=n.scene.canvas.style.cursor,n.scene.canvas.style.cursor="crosshair";var u=Cesium.JulianDate.now();s.setInputAction((function(e){if(i){var s=Cesium.JulianDate.now();if(!(Cesium.JulianDate.secondsDifference(s,u)<.01)){if(t.style.display="block",t.style.left=e.endPosition.x+25+"px",t.style.top=e.endPosition.y-25+"px",null!=(r=De.pickPosition(n,e.endPosition))&&(o.length>1&&o.pop(),o.length>0&&o.push(r)),!Cesium.defined(c)){c=new Object;var d=new Cesium.CallbackProperty((function(){return o.length>1?Cesium.Rectangle.fromCartesianArray(o):null}),!1);a=n.entities.add({name:De.drawEntityNames().drawRec,rectangle:{coordinates:d,material:l.fillColor,fill:l.fill,outline:l.outline,outlineWidth:l.outlineWidth,outlineColor:l.outlineColor,heightReference:l.clampToGround?Cesium.HeightReference.CLAMP_TO_GROUND:Cesium.HeightReference.NONE}}),l.polygonPoint=a}o.length>1&&!l.justDraw&&l.showAreaLabel()}}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),s.setInputAction((function(e){if(i&&(r=De.pickPosition(n,e.position))&&i){if(t.style.display="none",!r)return;if(o.push(r),l.lastLeftClickPoint=o[o.length-1],n.entities.add({name:De.drawEntityNames().drawRecpoint,position:o[o.length-1],point:{pixelSize:4,color:Cesium.Color.RED,outlineColor:Cesium.Color.WHITE,outlineWidth:2,disableDepthTestDistance:1e9}}),o.length>=2){if(l.onCompleted){var a=Cesium.Rectangle.subsample(l.polygonPoint.rectangle.coordinates.getValue());a.push(a[0]),l.onCompleted(a)}l.end()}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),s.setInputAction((function(e){l.onCompleted&&l.onCompleted(l._removeSamePoint(o)),l.end(),l._notrackPos()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),s.setInputAction((function(t){o=e._removeFloatPoint(o),l.end()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"showAreaLabel",value:function(){var e=Cesium.Rectangle.northeast(this.polygonPoint.rectangle._coordinates.getValue()),t=Cesium.Rectangle.southwest(this.polygonPoint.rectangle._coordinates.getValue()),i=Cesium.Rectangle.northwest(this.polygonPoint.rectangle._coordinates.getValue()),n=Cesium.Rectangle.southeast(this.polygonPoint.rectangle._coordinates.getValue());e=Cesium.Cartographic.toCartesian(e),t=Cesium.Cartographic.toCartesian(t),i=Cesium.Cartographic.toCartesian(i),n=Cesium.Cartographic.toCartesian(n);var r=De.getPolygonArea([t,n,e,i]),o="面积:"+(r=r||0).toFixed(2)+"平方米";r>=1e4&&(o="面积:"+(r/1e6).toFixed(2)+"平方千米");var a=Cesium.BoundingSphere.fromPoints(this.positions);void 0===this._totalLengthPointLabel?(this._totalLengthPointLabel=De.createPointLabel(this.viewer,a.center,o,De.drawEntityNames().drawRec),this._totalLengthPointLabel.point.show=!1):De.setPointLabel(this._totalLengthPointLabel,a.center,o)}}]),i}(hs);function Ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Ss=function(e){u(i,e);var t=Ts(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r)).perPositionHeight=Cesium.defaultValue(r.perPositionHeight,!1),o.fillColor=r.fillColor||new Cesium.Color(59,179,249,.5),o.fill=Cesium.defaultValue(r.fill,!0),o._radius=0,o._center=void 0,o._outlinePositions=[],o}return s(i,[{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Circle()),$(p(i.prototype),"clearNoDepthTestPolyline",this).call(this),$(p(i.prototype),"_clearPolyLinePrimitives",this).call(this),this.end()}},{key:"_removeFloatPoint",value:function(e){return $(p(i.prototype),"_removeFloatPoint",this).call(this,e),e.length<2&&this.clear(),!this.justDraw&&e.length>=2&&this.showAreaLabel(),e}},{key:"startDraw",value:function(){var e=this;this.end(),this._addToolTip(),this._addPolyLinePrimitives(),this.initNoDepthTestPolyline();var t=this.tooltip;this.ismeare=!0;var i=this.ismeare,n=this.viewer,r=this.cartesian,o=this.positions;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(n.scene.canvas);var a=this.mouseHandler,s=this.poly,c=this;this._originCursor=n.scene.canvas.style.cursor,n.scene.canvas.style.cursor="crosshair";var l=new Cesium.Cartesian2,u=!1;this._preUpdateListener=n.scene.preUpdate.addEventListener((function(){if(u){if(u=!1,e.tooltip&&(e.tooltip.style.display="block",e.tooltip.style.left=l.x+25+"px",e.tooltip.style.top=l.y-25+"px"),!(r=De.pickPosition(n,l,e._getObjectsToExclude())))return e._tempPoint.show=!1,void(e._tempPoint.point.show=!1);if(e._tempPoint.show=!0,e._tempPoint.point.show=!0,e.justDraw)De.setPointPosition(e._tempPoint,r);else{var t=De.getPointLableString(r);De.setPointLabel(e._tempPoint,r,t)}if(null!=r&&(o.length>1&&o.pop(),o.length>0&&o.push(r)),!Cesium.defined(s)){s=new Object;var i=new Cesium.CallbackProperty((function(){if(o.length>1){if(e._radius=Cesium.Cartesian3.distance(o[0],o[1]),e._radius<=0)return null;var t=Cesium.EllipseGeometryLibrary.computeEllipsePositions({center:o[0],semiMajorAxis:e._radius,semiMinorAxis:e._radius,rotation:0,granularity:.005},!1,!0),i=Cesium.Cartesian3.unpackArray(t.outerPositions);return i.push(i[0]),e._outlinePositions=i,new Cesium.PolygonHierarchy(i)}return null}),!1),a={name:De.drawEntityNames().drawCircle,polygon:{hierarchy:i,fill:c.fill,material:c.fillColor,perPositionHeight:c.perPositionHeight,outline:c.outline,outlineWidth:c.outlineWidth,outlineColor:c.outlineColor,heightReference:c.clampToGround?Cesium.HeightReference.CLAMP_TO_GROUND:Cesium.HeightReference.NONE}};a.polyline={positions:c._outlinePositions,width:c.outlineWidth,material:c.outlineColor,clampToGround:c.clampToGround},n.entities.add(a)}o.length>1&&!c.justDraw&&c.showAreaLabel()}})),a.setInputAction((function(e){i&&(u=!0,l=Cesium.Cartesian2.clone(e.endPosition,l))}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),a.setInputAction((function(n){e._tempPoint.point.show=!1,e._tempPoint.show=!1,i&&r&&(t.style.display="none",o.push(r),c.lastLeftClickPoint=o[o.length-1],o.length>=2&&e._outlinePositions&&(c.onCompleted&&c.onCompleted(e._outlinePositions),c.end()),c._notrackPos())}),Cesium.ScreenSpaceEventType.LEFT_CLICK),a.setInputAction((function(t){c.onCompleted&&c.onCompleted(e._outlinePositions),c.end(),c._notrackPos()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),a.setInputAction((function(t){c.onCompleted&&c.onCompleted(e._outlinePositions),c.end(),c._notrackPos()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"showAreaLabel",value:function(){var e=De.getPolygonArea(this._outlinePositions),t="面积:"+(e=e||0).toFixed(2)+"平方米";e>=1e4&&(t="面积:"+(e/1e6).toFixed(2)+"平方千米"),e>=1e10&&(t="面积:"+(e/1e10).toFixed(2)+"万平方千米");var i=Cesium.BoundingSphere.fromPoints(this._outlinePositions);void 0===this._totalLengthPointLabel?(this._totalLengthPointLabel=De.createPointLabel(this.viewer,i.center,t,De.drawEntityNames().drawpolygon),this._totalLengthPointLabel.point.show=!1):De.setPointLabel(this._totalLengthPointLabel,i.center,t)}}]),i}(hs);var As=function(){function e(t,i){n(this,e),Cesium&&t&&(this.viewer=t,this._polygon=void 0,this._show=!1,this._init(i))}return s(e,[{key:"show",get:function(){return this._show},set:function(e){this._show=e,this._polygon&&(this._polygon.show=e)}},{key:"_drawPolygon",value:function(e){var t=this,i=this.viewer.entities.add({show:this.show,polygon:{hierarchy:new Cesium.PolygonHierarchy(e),material:new Cesium.Color.fromBytes(64,157,253,100),perPositionHeight:!1,extrudedHeight:new Cesium.CallbackProperty((function(){return t._extrudedHeight}),!1)}});return this._polygon=i,i}},{key:"_init",value:function(e){e=Cesium.defaultValue(e,Cesium.defaultValue.EMPTY_OBJECT),this._minHeight=e.minHeight||0,this._maxHeight=e.maxHeight||2e3,this._extrudedHeight=this.minHeight,this._speed=e.speed||10,this._polygon=null,this._interval=void 0,this._intervalStep=e.intervalStep||500}},{key:"start",value:function(e,t){var i=this;this._polygon||this._drawPolygon(e),this.show=!0,this._interval=window.setInterval((function(){i._maxHeight>i._extrudedHeight&&i._extrudedHeight>=i._minHeight?i._extrudedHeight+=i._speed:i._extrudedHeight=i._minHeight,t&&t(i._extrudedHeight)}),this._intervalStep),this.viewer.scene.globe.depthTestAgainstTerrain=!0}},{key:"noAuto",value:function(e,t){this._polygon||this._drawPolygon(e),this.show=!0,this._maxHeight>this._extrudedHeight&&this._extrudedHeight>=this._minHeight?this._extrudedHeight=t:this._extrudedHeight=this._minHeight,this.viewer.scene.globe.depthTestAgainstTerrain=!0}},{key:"stop",value:function(){this._polygon&&(this.viewer.entities.remove(this._polygon),this._polygon=null),this._interval&&(clearInterval(this._interval),this._interval=void 0),this.viewer.scene.globe.depthTestAgainstTerrain=!1}},{key:"pause",value:function(){this._interval&&(clearInterval(this._interval),this._interval=void 0)}},{key:"resetParas",value:function(e){e=Cesium.defaultValue(e,Cesium.defaultValue.EMPTY_OBJECT),this._minHeight=e.minHeight||0,this._maxHeight=e.maxHeight||2e3,this._speed=e.setpHeight||10}}]),e}(),bs=[].indexOf||function(e){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===e)return t;return-1},Es="attribute vec4 position;\nvarying vec2 texcoord;\nvoid main(){\n texcoord = position.xy*0.5+0.5;\n gl_Position = position;\n}",xs="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp int;\n precision highp float;\n#else\n precision mediump int;\n precision mediump float;\n#endif\nuniform sampler2D source;\nvarying vec2 texcoord;";!function(){var e,t,i,n;if(null!=window.WebGLRenderingContext)n=["WEBKIT","MOZ","MS","O"],i=/^WEBKIT_(.*)|MOZ_(.*)|MS_(.*)|O_(.*)/,e=WebGLRenderingContext.prototype.getExtension,WebGLRenderingContext.prototype.getExtension=function(t){var r,o,a,s,c;if(null!==(o=t.match(i))&&(t=o[1]),null===(r=e.call(this,t))){for(s=0,c=n.length;s<c;s++)if(a=n[s],null!==(r=e.call(this,a+"_"+t)))return r;return null}return r},t=WebGLRenderingContext.prototype.getSupportedExtensions,WebGLRenderingContext.prototype.getSupportedExtensions=function(){var e,n,r,o,a,s;for(r=[],a=0,s=(o=t.call(this)).length;a<s;a++)null!==(n=(e=o[a]).match(i))&&(e=n[1]),bs.call(r,e)<0&&r.push(e);return r}}(),function(){var e,t,i,n,r,o,a,s,c,l,u,d,h,p;if((r=function(){var e,t,i;return(e=document.createElement("canvas")).width=2,e.height=2,(i=(t=e.getContext("2d")).getImageData(0,0,2,2)).data.set(new Uint8ClampedArray([0,0,0,0,255,255,255,255,0,0,0,0,255,255,255,255])),t.putImageData(i,0,0),e})(),t=function(e,t){var i,n,o,a,s,c,l,u,d,h,p,f,m,g;if(c=e.createProgram(),m=e.createShader(e.VERTEX_SHADER),e.attachShader(c,m),e.shaderSource(m,"attribute vec2 position;\nvoid main(){\n gl_Position = vec4(position, 0.0, 1.0);\n}"),e.compileShader(m),!e.getShaderParameter(m,e.COMPILE_STATUS))throw e.getShaderInfoLog(m);if(o=e.createShader(e.FRAGMENT_SHADER),e.attachShader(c,o),e.shaderSource(o,"uniform sampler2D source;\nvoid main(){\n gl_FragColor = texture2D(source, vec2(1.0, 1.0));\n}"),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS))throw e.getShaderInfoLog(o);if(e.linkProgram(c),!e.getProgramParameter(c,e.LINK_STATUS))throw e.getProgramInfoLog(c);return e.useProgram(c),n=function(){return e.deleteShader(o),e.deleteShader(m),e.deleteProgram(c),e.deleteBuffer(i),e.deleteTexture(d),e.deleteTexture(f),e.deleteFramebuffer(a),e.bindBuffer(e.ARRAY_BUFFER,null),e.useProgram(null),e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null)},f=e.createTexture(),e.bindTexture(e.TEXTURE_2D,f),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,2,2,0,e.RGBA,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),a=e.createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,a),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,f,0),h=r(),d=e.createTexture(),e.bindTexture(e.TEXTURE_2D,d),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,t,h),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),g=new Float32Array([1,1,-1,1,-1,-1,1,1,-1,-1,1,-1]),i=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,i),e.bufferData(e.ARRAY_BUFFER,g,e.STATIC_DRAW),s=e.getAttribLocation(c,"position"),p=e.getUniformLocation(c,"source"),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),e.uniform1i(p,0),e.drawArrays(e.TRIANGLES,0,6),l=new Uint8Array(16),e.readPixels(0,0,2,2,e.RGBA,e.UNSIGNED_BYTE,l),u=Math.abs(l[0]-127)<10,n(),u},n=function(e,t){var i;return i=e.createTexture(),e.bindTexture(e.TEXTURE_2D,i),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,2,2,0,e.RGBA,t,null),0===e.getError()?(e.deleteTexture(i),!0):(e.deleteTexture(i),!1)},e=function(e,t){var i,n,r;return r=e.createTexture(),e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,2,2,0,e.RGBA,t,null),n=e.createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0),i=e.checkFramebufferStatus(e.FRAMEBUFFER),e.deleteTexture(r),e.deleteFramebuffer(n),e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null),i===e.FRAMEBUFFER_COMPLETE},c=[],l={},u=[],i=function(){var i,r,o,a,s;i=document.createElement("canvas"),r=null;try{null===(r=i.getContext("experimental-webgl"))&&(r=i.getContext("webgl"))}catch(e){}if(null!=r&&(null===r.getExtension("OES_texture_float")?n(r,r.FLOAT)?(s=!0,c.push("OES_texture_float"),l.OES_texture_float={shim:!0}):(s=!1,u.push("OES_texture_float")):n(r,r.FLOAT)?(s=!0,c.push("OES_texture_float")):(s=!1,u.push("OES_texture_float")),s&&(null===r.getExtension("WEBGL_color_buffer_float")?e(r,r.FLOAT)?(c.push("WEBGL_color_buffer_float"),l.WEBGL_color_buffer_float={shim:!0,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863}):u.push("WEBGL_color_buffer_float"):e(r,r.FLOAT)?c.push("WEBGL_color_buffer_float"):u.push("WEBGL_color_buffer_float"),null===r.getExtension("OES_texture_float_linear")?t(r,r.FLOAT)?(c.push("OES_texture_float_linear"),l.OES_texture_float_linear={shim:!0}):u.push("OES_texture_float_linear"):t(r,r.FLOAT)?c.push("OES_texture_float_linear"):u.push("OES_texture_float_linear")),null===(o=r.getExtension("OES_texture_half_float"))?n(r,36193)?(a=!0,c.push("OES_texture_half_float"),o=l.OES_texture_half_float={HALF_FLOAT_OES:36193,shim:!0}):(a=!1,u.push("OES_texture_half_float")):n(r,o.HALF_FLOAT_OES)?(a=!0,c.push("OES_texture_half_float")):(a=!1,u.push("OES_texture_half_float")),a))return null===r.getExtension("EXT_color_buffer_half_float")?e(r,o.HALF_FLOAT_OES)?(c.push("EXT_color_buffer_half_float"),l.EXT_color_buffer_half_float={shim:!0,RGBA16F_EXT:34842,RGB16F_EXT:34843,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863}):u.push("EXT_color_buffer_half_float"):e(r,o.HALF_FLOAT_OES)?c.push("EXT_color_buffer_half_float"):u.push("EXT_color_buffer_half_float"),null===r.getExtension("OES_texture_half_float_linear")?t(r,o.HALF_FLOAT_OES)?(c.push("OES_texture_half_float_linear"),l.OES_texture_half_float_linear={shim:!0}):u.push("OES_texture_half_float_linear"):t(r,o.HALF_FLOAT_OES)?c.push("OES_texture_half_float_linear"):u.push("OES_texture_half_float_linear")},null!=window.WebGLRenderingContext){for(i(),d={},h=0,p=u.length;h<p;h++)s=u[h],d[s]=!0;o=WebGLRenderingContext.prototype.getExtension,WebGLRenderingContext.prototype.getExtension=function(e){var t;return void 0===(t=l[e])?d[e]?null:o.call(this,e):t},a=WebGLRenderingContext.prototype.getSupportedExtensions,WebGLRenderingContext.prototype.getSupportedExtensions=function(){var e,t,i,n,r,o,s;for(t=[],n=0,o=(i=a.call(this)).length;n<o;n++)e=i[n],void 0===d[e]&&t.push(e);for(r=0,s=c.length;r<s;r++)e=c[r],bs.call(t,e)<0&&t.push(e);return t},WebGLRenderingContext.prototype.getFloatExtension=function(e){var t,i,n,r,o,a,c,l,u,d,h,p,f,m,g,_,y,C,v,T,S,A,b,E,x,P;for(null==e.prefer&&(e.prefer=["half"]),null==e.require&&(e.require=[]),null==e.throws&&(e.throws=!0),m=this.getExtension("OES_texture_float"),a=this.getExtension("OES_texture_half_float"),p=this.getExtension("WEBGL_color_buffer_float"),r=this.getExtension("EXT_color_buffer_half_float"),f=this.getExtension("OES_texture_float_linear"),o=this.getExtension("OES_texture_half_float_linear"),h={texture:null!==m,filterable:null!==f,renderable:null!==p,score:0,precision:"single",half:!1,single:!0,type:this.FLOAT},n={texture:null!==a,filterable:null!==o,renderable:null!==r,score:0,precision:"half",half:!0,single:!1,type:null!=(E=null!=a?a.HALF_FLOAT_OES:void 0)?E:null},i=[],h.texture&&i.push(h),n.texture&&i.push(n),d=[],_=0,v=i.length;_<v;_++){for(t=i[_],g=!0,y=0,T=(x=e.require).length;y<T;y++)!1===t[s=x[y]]&&(g=!1);g&&d.push(t)}for(C=0,S=d.length;C<S;C++)for(t=d[C],c=b=0,A=(P=e.prefer).length;b<A;c=++b)u=P[c],l=Math.pow(2,e.prefer.length-c-1),t[u]&&(t.score+=l);if(d.sort((function(e,t){return e.score===t.score?0:e.score<t.score?1:e.score>t.score?-1:void 0})),0===d.length){if(e.throws)throw"No floating point texture support that is "+e.require.join(", ");return null}return{filterable:(d=d[0]).filterable,renderable:d.renderable,type:d.type,precision:d.precision}}}}();var Ps=function(){function e(e,t){var i,n;this.gl=e,n=t.vertex,i=t.fragment,this.program=this.gl.createProgram(),this.vs=this.gl.createShader(this.gl.VERTEX_SHADER),this.fs=this.gl.createShader(this.gl.FRAGMENT_SHADER),this.gl.attachShader(this.program,this.vs),this.gl.attachShader(this.program,this.fs),this.compileShader(this.vs,n),this.compileShader(this.fs,i),this.link(),this.value_cache={},this.uniform_cache={},this.attribCache={}}return e.prototype.attribLocation=function(e){var t=this.attribCache[e];return void 0===t&&(t=this.attribCache[e]=this.gl.getAttribLocation(this.program,e)),t},e.prototype.compileShader=function(e,t){if(this.gl.shaderSource(e,t),this.gl.compileShader(e),!this.gl.getShaderParameter(e,this.gl.COMPILE_STATUS))throw"Shader Compile Error: "+this.gl.getShaderInfoLog(e)},e.prototype.link=function(){if(this.gl.linkProgram(this.program),!this.gl.getProgramParameter(this.program,this.gl.LINK_STATUS))throw"Shader Link Error: "+this.gl.getProgramInfoLog(this.program)},e.prototype.use=function(){return this.gl.useProgram(this.program),this},e.prototype.uniformLoc=function(e){var t=this.uniform_cache[e];return void 0===t&&(t=this.uniform_cache[e]=this.gl.getUniformLocation(this.program,e)),t},e.prototype.int=function(e,t){var i;return this.value_cache[e]!==t&&(this.value_cache[e]=t,(i=this.uniformLoc(e))&&this.gl.uniform1i(i,t)),this},e.prototype.vec2=function(e,t,i){var n;return(n=this.uniformLoc(e))&&this.gl.uniform2f(n,t,i),this},e.prototype.float=function(e,t){var i;return this.value_cache[e]!==t&&(this.value_cache[e]=t,(i=this.uniformLoc(e))&&this.gl.uniform1f(i,t)),this},e}(),Ds=function(){function e(e){this.gl=e,this.buffer=this.gl.createFramebuffer()}return e.prototype.destroy=function(){return this.gl.deleteFRamebuffer(this.buffer)},e.prototype.bind=function(){return this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.buffer),this},e.prototype.unbind=function(){return this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this},e.prototype.check=function(){switch(this.gl.checkFramebufferStatus(this.gl.FRAMEBUFFER)){case this.gl.FRAMEBUFFER_UNSUPPORTED:throw"Framebuffer is unsupported";case this.gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:throw"Framebuffer incomplete attachment";case this.gl.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:throw"Framebuffer incomplete dimensions";case this.gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:throw"Framebuffer incomplete missing attachment"}return this},e.prototype.color=function(e){return this.gl.framebufferTexture2D(this.gl.FRAMEBUFFER,this.gl.COLOR_ATTACHMENT0,e.target,e.handle,0),this.check(),this},e.prototype.depth=function(e){return this.gl.framebufferRenderbuffer(this.gl.FRAMEBUFFER,this.gl.DEPTH_ATTACHMENT,this.gl.RENDERBUFFER,e.id),this.check(),this},e.prototype.destroy=function(){return this.gl.deleteFramebuffer(this.buffer)},e}(),ws=function(){function e(e,t){var i,n;switch(this.gl=e,null==t&&(t={}),this.channels=this.gl[(null!=(i=t.channels)?i:"rgba").toUpperCase()],"number"==typeof t.type?this.type=t.type:this.type=this.gl[(null!=(n=t.type)?n:"unsigned_byte").toUpperCase()],this.channels){case this.gl.RGBA:this.chancount=4;break;case this.gl.RGB:this.chancount=3;break;case this.gl.LUMINANCE_ALPHA:this.chancount=2;break;default:this.chancount=1}this.target=this.gl.TEXTURE_2D,this.handle=this.gl.createTexture()}return e.prototype.destroy=function(){return this.gl.deleteTexture(this.handle)},e.prototype.bind=function(e){if(null==e&&(e=0),e>15)throw"Texture unit too large: "+e;return this.gl.activeTexture(this.gl.TEXTURE0+e),this.gl.bindTexture(this.target,this.handle),this},e.prototype.setSize=function(e,t){return this.width=e,this.height=t,this.gl.texImage2D(this.target,0,this.channels,this.width,this.height,0,this.channels,this.type,null),this},e.prototype.upload=function(e){return this.width=e.width,this.height=e.height,this.gl.texImage2D(this.target,0,this.channels,this.channels,this.type,e),this},e.prototype.linear=function(){return this.gl.texParameteri(this.target,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.target,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this},e.prototype.nearest=function(){return this.gl.texParameteri(this.target,this.gl.TEXTURE_MAG_FILTER,this.gl.NEAREST),this.gl.texParameteri(this.target,this.gl.TEXTURE_MIN_FILTER,this.gl.NEAREST),this},e.prototype.clampToEdge=function(){return this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this},e.prototype.repeat=function(){return this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_S,this.gl.REPEAT),this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_T,this.gl.REPEAT),this},e}(),Ms=function(){function e(e,t,i){var n;this.gl=e,this.width=t,this.height=i,n=this.gl.getFloatExtension({require:["renderable"]}),this.texture=new ws(this.gl,{type:n.type}).bind(0).setSize(this.width,this.height).nearest().clampToEdge(),this.fbo=new Ds(this.gl).bind().color(this.texture).unbind()}return e.prototype.use=function(){return this.fbo.bind()},e.prototype.bind=function(e){return this.texture.bind(e)},e.prototype.end=function(){return this.fbo.unbind()},e.prototype.resize=function(e,t){return this.width=e,this.height=t,this.texture.bind(0).setSize(this.width,this.height)},e}(),Is=function(){function e(e,t,i,n){var r,o,a;for(this.heatmap=e,this.gl=t,this.width=i,this.height=n,this.shader=new Ps(this.gl,{vertex:"attribute vec4 position, intensity;\nvarying vec2 off, dim;\nvarying float vIntensity;\nuniform vec2 viewport;\n\nvoid main(){\n dim = abs(position.zw);\n off = position.zw;\n vec2 pos = position.xy + position.zw;\n vIntensity = intensity.x;\n gl_Position = vec4((pos/viewport)*2.0-1.0, 0.0, 1.0);\n}",fragment:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp int;\n precision highp float;\n#else\n precision mediump int;\n precision mediump float;\n#endif\nvarying vec2 off, dim;\nvarying float vIntensity;\nvoid main(){\n float falloff = (1.0 - smoothstep(0.0, 1.0, length(off/dim)));\n float intensity = falloff*vIntensity;\n gl_FragColor = vec4(intensity);\n}"}),this.clampShader=new Ps(this.gl,{vertex:Es,fragment:xs+"uniform float low, high;\nvoid main(){\n gl_FragColor = vec4(clamp(texture2D(source, texcoord).rgb, low, high), 1.0);\n}"}),this.multiplyShader=new Ps(this.gl,{vertex:Es,fragment:xs+"uniform float value;\nvoid main(){\n gl_FragColor = vec4(texture2D(source, texcoord).rgb*value, 1.0);\n}"}),this.blurShader=new Ps(this.gl,{vertex:Es,fragment:xs+"uniform vec2 viewport;\nvoid main(){\n vec4 result = vec4(0.0);\n for(int x=-1; x<=1; x++){\n for(int y=-1; y<=1; y++){\n vec2 off = vec2(x,y)/viewport;\n //float factor = 1.0 - smoothstep(0.0, 1.5, length(off));\n float factor = 1.0;\n result += vec4(texture2D(source, texcoord+off).rgb*factor, factor);\n }\n }\n gl_FragColor = vec4(result.rgb/result.w, 1.0);\n}"}),this.nodeBack=new Ms(this.gl,this.width,this.height),this.nodeFront=new Ms(this.gl,this.width,this.height),this.vertexBuffer=this.gl.createBuffer(),this.vertexSize=8,this.maxPointCount=10240,this.vertexBufferData=new Float32Array(this.maxPointCount*this.vertexSize*6),this.vertexBufferViews=[],r=o=0,a=this.maxPointCount;0<=a?o<a:o>a;r=0<=a?++o:--o)this.vertexBufferViews.push(new Float32Array(this.vertexBufferData.buffer,0,r*this.vertexSize*6));this.bufferIndex=0,this.pointCount=0}return e.prototype.resize=function(e,t){return this.width=e,this.height=t,this.nodeBack.resize(this.width,this.height),this.nodeFront.resize(this.width,this.height)},e.prototype.update=function(){var e,t;if(this.pointCount>0)return this.gl.enable(this.gl.BLEND),this.nodeFront.use(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.vertexBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.vertexBufferViews[this.pointCount],this.gl.STREAM_DRAW),t=this.shader.attribLocation("position"),e=this.shader.attribLocation("intensity"),this.gl.enableVertexAttribArray(1),this.gl.vertexAttribPointer(t,4,this.gl.FLOAT,!1,32,0),this.gl.vertexAttribPointer(e,4,this.gl.FLOAT,!1,32,16),this.shader.use().vec2("viewport",this.width,this.height),this.gl.drawArrays(this.gl.TRIANGLES,0,6*this.pointCount),this.gl.disableVertexAttribArray(1),this.pointCount=0,this.bufferIndex=0,this.nodeFront.end(),this.gl.disable(this.gl.BLEND)},e.prototype.clear=function(){return this.nodeFront.use(),this.gl.clearColor(0,0,0,1),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.nodeFront.end()},e.prototype.clamp=function(e,t){return this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.heatmap.quad),this.gl.vertexAttribPointer(0,4,this.gl.FLOAT,!1,0,0),this.nodeFront.bind(0),this.nodeBack.use(),this.clampShader.use().int("source",0).float("low",e).float("high",t),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.nodeBack.end(),this.swap()},e.prototype.multiply=function(e){return this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.heatmap.quad),this.gl.vertexAttribPointer(0,4,this.gl.FLOAT,!1,0,0),this.nodeFront.bind(0),this.nodeBack.use(),this.multiplyShader.use().int("source",0).float("value",e),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.nodeBack.end(),this.swap()},e.prototype.blur=function(){return this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.heatmap.quad),this.gl.vertexAttribPointer(0,4,this.gl.FLOAT,!1,0,0),this.nodeFront.bind(0),this.nodeBack.use(),this.blurShader.use().int("source",0).vec2("viewport",this.width,this.height),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.nodeBack.end(),this.swap()},e.prototype.swap=function(){var e=this.nodeFront;return this.nodeFront=this.nodeBack,this.nodeBack=e},e.prototype.addVertex=function(e,t,i,n,r){return this.vertexBufferData[this.bufferIndex++]=e,this.vertexBufferData[this.bufferIndex++]=t,this.vertexBufferData[this.bufferIndex++]=i,this.vertexBufferData[this.bufferIndex++]=n,this.vertexBufferData[this.bufferIndex++]=r,this.vertexBufferData[this.bufferIndex++]=r,this.vertexBufferData[this.bufferIndex++]=r,this.vertexBufferData[this.bufferIndex++]=r},e.prototype.addPoint=function(e,t,i,n){var r;return null==i&&(i=50),null==n&&(n=.2),this.pointCount>=this.maxPointCount-1&&this.update(),t=this.height-t,r=i/2,this.addVertex(e,t,-r,-r,n),this.addVertex(e,t,+r,-r,n),this.addVertex(e,t,-r,+r,n),this.addVertex(e,t,-r,+r,n),this.addVertex(e,t,+r,-r,n),this.addVertex(e,t,+r,+r,n),this.pointCount+=1},e}(),Rs=function(){function e(e){var t,i,n,r,o,a,s,c,l,u,d,h;d=null!=e?e:{},this.canvas=d.canvas,this.width=d.width,this.height=d.height,s=d.intensityToAlpha,o=d.gradientTexture,i=d.alphaRange,this.canvas||(this.canvas=document.createElement("canvas"));try{if(this.gl=this.canvas.getContext("experimental-webgl",{depth:!1,antialias:!1}),null===this.gl&&(this.gl=this.canvas.getContext("webgl",{depth:!1,antialias:!1}),null===this.gl))throw"WebGL not supported"}catch(e){throw e,"WebGL not supported"}null!=window.WebGLDebugUtils&&(this.gl=window.WebGLDebugUtils.makeDebugContext(this.gl,(function(e,t,i){throw window.WebGLDebugUtils.glEnumToString(e)+" was caused by call to: "+t}))),this.gl.enableVertexAttribArray(0),this.gl.blendFunc(this.gl.ONE,this.gl.ONE),o?(u=this.gradientTexture=new ws(this.gl,{channels:"rgba"}).bind(0).setSize(2,2).nearest().clampToEdge(),"string"==typeof o?((a=new Image).onload=function(){return u.bind().upload(a)},a.src=o):o.width>0&&o.height>0?u.upload(o):o.onload=function(){return u.upload(o)},r="uniform sampler2D gradientTexture;\nvec3 getColor(float intensity){\n return texture2D(gradientTexture, vec2(intensity, 0.0)).rgb;\n}"):(u=null,r="vec3 getColor(float intensity){\n vec3 blue = vec3(0.0, 0.0, 1.0);\n vec3 cyan = vec3(0.0, 1.0, 1.0);\n vec3 green = vec3(0.0, 1.0, 0.0);\n vec3 yellow = vec3(1.0, 1.0, 0.0);\n vec3 red = vec3(1.0, 0.0, 0.0);\n\n vec3 color = (\n fade(-0.25, 0.25, intensity)*blue +\n fade(0.0, 0.5, intensity)*cyan +\n fade(0.25, 0.75, intensity)*green +\n fade(0.5, 1.0, intensity)*yellow +\n smoothstep(0.75, 1.0, intensity)*red\n );\n return color;\n}"),null==s&&(s=!0),s?(n=(h=null!=i?i:[0,1])[0],t=h[1],c="vec4 alphaFun(vec3 color, float intensity){\n float alpha = smoothstep("+n.toFixed(8)+", "+t.toFixed(8)+", intensity);\n return vec4(color*alpha, alpha);\n}"):c="vec4 alphaFun(vec3 color, float intensity){\n return vec4(color, 1.0);\n}",this.shader=new Ps(this.gl,{vertex:Es,fragment:xs+"float linstep(float low, float high, float value){\n return clamp((value-low)/(high-low), 0.0, 1.0);\n}\n\nfloat fade(float low, float high, float value){\n float mid = (low+high)*0.5;\n float range = (high-low)*0.5;\n float x = 1.0 - clamp(abs(mid-value)/range, 0.0, 1.0);\n return smoothstep(0.0, 1.0, x);\n}\n\n"+r+"\n"+c+"\n\nvoid main(){\n float intensity = smoothstep(0.0, 1.0, texture2D(source, texcoord).r);\n vec3 color = getColor(intensity);\n gl_FragColor = alphaFun(color, intensity);\n}"}),null==this.width&&(this.width=this.canvas.offsetWidth||2),null==this.height&&(this.height=this.canvas.offsetHeight||2),this.canvas.width=this.width,this.canvas.height=this.height,this.gl.viewport(0,0,this.width,this.height),this.quad=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.quad),l=new Float32Array([-1,-1,0,1,1,-1,0,1,-1,1,0,1,-1,1,0,1,1,-1,0,1,1,1,0,1]),this.gl.bufferData(this.gl.ARRAY_BUFFER,l,this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,null),this.heights=new Is(this,this.gl,this.width,this.height)}return e.prototype.adjustSize=function(){var e,t;if(t=this.canvas.offsetWidth||2,e=this.canvas.offsetHeight||2,this.width!==t||this.height!==e)return this.gl.viewport(0,0,t,e),this.canvas.width=t,this.canvas.height=e,this.width=t,this.height=e,this.heights.resize(this.width,this.height)},e.prototype.display=function(){return this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.quad),this.gl.vertexAttribPointer(0,4,this.gl.FLOAT,!1,0,0),this.heights.nodeFront.bind(0),this.gradientTexture&&this.gradientTexture.bind(1),this.shader.use().int("source",0).int("gradientTexture",1),this.gl.drawArrays(this.gl.TRIANGLES,0,6)},e.prototype.update=function(){return this.heights.update()},e.prototype.clear=function(){return this.heights.clear()},e.prototype.clamp=function(e,t){return null==e&&(e=0),null==t&&(t=1),this.heights.clamp(e,t)},e.prototype.multiply=function(e){return null==e&&(e=.95),this.heights.multiply(e)},e.prototype.blur=function(){return this.heights.blur()},e.prototype.addPoint=function(e,t,i,n){return this.heights.addPoint(e,t,i,n)},e.prototype.addPoints=function(e){var t,i,n,r;for(r=[],i=0,n=e.length;i<n;i++)t=e[i],r.push(this.addPoint(t.x,t.y,t.size,t.intensity));return r},e}();function Os(e){return new Rs(e)}function Ls(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Bs(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ls(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Fs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ns=new Cesium.WebMercatorProjection,Vs={radius:30,height:0,gradient:void 0,useGround:!1,classificationType:2},ks=function(e){u(i,e);var t=Fs(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._options=Bs(Bs({},Vs),r),e._nativeObjCesium=new Cesium.PrimitiveCollection,e._isGround=e._options.useGround,e._canvas=document.createElement("canvas"),e._canvas.setAttribute("id",e.id),e._heat=void 0,e._scale=1,e._points=[],e._bounds=new Cesium.Rectangle,e._boundsInMeter=void 0,e._primitive=e._nativeObjCesium.add(e._isGround?new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}}),classificationType:e._options.classificationType}):new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})})),e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("heat-map")}},{key:"_addedHook",value:function(){this._canvas.style.cssText="\n visibility:hidden;\n width:".concat(this._viewer.canvas.width,"px;\n height:").concat(this._viewer.canvas.height,"px;\n "),this._viewer.layerContainer.appendChild(this._canvas),this._points&&this._points.length&&(this._heat=Os({canvas:this._canvas,gradientTexture:this._createGradientTexture()}),this._scale=Math.min(Math.abs(this._boundsInMeter.west-this._boundsInMeter.east)/this._viewer.canvas.width,Math.abs(this._boundsInMeter.north-this._boundsInMeter.south)/this._viewer.canvas.height),this._heat.blur(),this._heat.addPoints(this._parsePoints(this._points)),this._update())}},{key:"_createGradientTexture",value:function(){if(this._options.gradient){var e=document.createElement("canvas");e.width=200,e.height=10;var t=e.getContext("2d"),i=t.createLinearGradient(0,0,200,0);for(var n in this._options.gradient)i.addColorStop(+n,this._options.gradient[n]);return t.fillStyle=i,t.fillRect(0,0,200,10),e}}},{key:"_parsePoints",value:function(e){var t=this;return e.map((function(e){var i=Ns.project(Cesium.Cartographic.fromDegrees(e.lng,e.lat));return{x:(i.x-t._boundsInMeter.west)/t._scale,y:(i.y-t._boundsInMeter.south)/t._scale,size:t._options.radius,intensity:e.value||Math.random()}}))}},{key:"_computeBounds",value:function(){Cesium.Rectangle.fromCartographicArray(this._points.map((function(e){return Cesium.Cartographic.fromDegrees(e.lng,e.lat)})),this._bounds)}},{key:"_computeBoundsInMeter",value:function(){var e=Ns.project(Cesium.Rectangle.southwest(this._bounds)),t=Ns.project(Cesium.Rectangle.northeast(this._bounds));this._boundsInMeter=new Cesium.Rectangle(e.x,e.y,t.x,t.y)}},{key:"_update",value:function(){if(!this._points||!this._points.length)return!1;this._heat.adjustSize(),this._heat.update(),this._heat.display(),this._primitive&&this._primitive.geometryInstances&&(this._primitive.geometryInstances.geometry=new Cesium.RectangleGeometry({rectangle:this._bounds,height:this._options.height})),this._primitive.appearance=new Cesium.MaterialAppearance({material:new Cesium.Material({fabric:{type:"Heat-Image",uniforms:{image:this._canvas},source:"\n uniform sampler2D image;\n czm_material czm_getMaterial(czm_materialInput materialInput){\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture2D(image,st);\n if(colorImage.rgb == vec3(1.0) || colorImage.rgb == vec3(0.0)){\n discard;\n }\n material.diffuse = colorImage.rgb;\n material.alpha = colorImage.a;\n return material;\n }\n "},translucent:function(e){return!0}}),flat:!0})}},{key:"setPoints",value:function(e){return this._points=e,this._computeBounds(),this._computeBoundsInMeter(),this._viewer&&(this._scale=Math.min(Math.abs(this._boundsInMeter.west-this._boundsInMeter.east)/this._viewer.canvas.width,Math.abs(this._boundsInMeter.north-this._boundsInMeter.south)/this._viewer.canvas.height),this._heat=Os({canvas:this._canvas,gradientTexture:this._createGradientTexture()})),this._heat&&(this._heat.blur(),this._heat.addPoints(this._parsePoints(this._points)),this._update()),this}},{key:"clear",value:function(){return this._heat.clear(),this._points=[],this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("heat-map");const $s=ks;var Us={defaults:{useEntitiesIfAvailable:!0,minCanvasSize:700,maxCanvasSize:2e3,radiusFactor:60,spacingFactor:1.5,maxOpacity:.8,minOpacity:.1,blur:.85,gradient:{".3":"blue",".65":"yellow",".8":"orange",".95":"red"},backgroundColor:"rgba(0,0,0,0)"},create:function(e,t,i){return new zs(e,t,i)},_getContainer:function(e,t,i){var n=document.createElement("div");return i&&n.setAttribute("id",i),n.setAttribute("style","width: "+e+"px; height: "+t+"px; margin: 0px; display: none;"),document.body.appendChild(n),n},_getImageryProvider:function(e){var t=e._heatmap.getDataURL(),i=new Cesium.SingleTileImageryProvider({url:t,rectangle:e._rectangle});return i._tilingScheme=new Cesium.WebMercatorTilingScheme({rectangleSouthwestInMeters:new Cesium.Cartesian2(e._mbounds.west,e._mbounds.south),rectangleNortheastInMeters:new Cesium.Cartesian2(e._mbounds.east,e._mbounds.north)}),i},_getID:function(e){for(var t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<(e||8);n++)t+=i.charAt(Math.floor(62*Math.random()));return t}},Gs=new Cesium.WebMercatorProjection;function zs(e,t,i){if(!t)return null;i||(i={}),this._cesium=e,this._options=i,this._id=Us._getID(),this._options.gradient=this._options.gradient?this._options.gradient:Us.defaults.gradient,this._options.maxOpacity=this._options.maxOpacity?this._options.maxOpacity:Us.defaults.maxOpacity,this._options.minOpacity=this._options.minOpacity?this._options.minOpacity:Us.defaults.minOpacity,this._options.blur=this._options.blur?this._options.blur:Us.defaults.blur,this._options.backgroundColor=this._options.backgroundColor?this._options.backgroundColor:Us.defaults.backgroundColor,this._mbounds=Us.wgs84ToMercatorBB(t),this._setWidthAndHeight(this._mbounds),this._options.radius=Math.round(this._options.radius?this._options.radius:this.width>this.height?this.width/Us.defaults.radiusFactor:this.height/Us.defaults.radiusFactor),this._spacing=this._options.radius*Us.defaults.spacingFactor,this._xoffset=this._mbounds.west,this._yoffset=this._mbounds.south,this.width=Math.round(this.width+2*this._spacing),this.height=Math.round(this.height+2*this._spacing),this._mbounds.west-=this._spacing*this._factor,this._mbounds.east+=this._spacing*this._factor,this._mbounds.south-=this._spacing*this._factor,this._mbounds.north+=this._spacing*this._factor,this.bounds=Us.mercatorToWgs84BB(this._mbounds),this._rectangle=Cesium.Rectangle.fromDegrees(this.bounds.west,this.bounds.south,this.bounds.east,this.bounds.north),this._container=Us._getContainer(this.width,this.height,this._id),this._options.container=this._container,this._heatmap=h337.create(this._options),this._container.children[0].setAttribute("id",this._id+"-hm"),this._newEntity=null,this._oldEntity=null}Us.wgs84ToMercator=function(e){var t=Gs.project(Cesium.Cartographic.fromDegrees(e.x,e.y));return{x:t.x,y:t.y}},Us.wgs84ToMercatorBB=function(e){var t=Gs.project(Cesium.Cartographic.fromDegrees(e.west,e.south)),i=Gs.project(Cesium.Cartographic.fromDegrees(e.east,e.north));return{north:i.y,east:i.x,south:t.y,west:t.x}},Us.mercatorToWgs84=function(e){var t=Gs.unproject(new Cesium.Cartesian3(e.x,e.y));return{x:t.longitude,y:t.latitude}},Us.mercatorToWgs84BB=function(e){var t=Gs.unproject(new Cesium.Cartesian3(e.west,e.south)),i=Gs.unproject(new Cesium.Cartesian3(e.east,e.north));return{north:this.rad2deg(i.latitude),east:this.rad2deg(i.longitude),south:this.rad2deg(t.latitude),west:this.rad2deg(t.longitude)}},Us.deg2rad=function(e){return e*(Math.PI/180)},Us.rad2deg=function(e){return e/(Math.PI/180)},zs.prototype.wgs84PointToHeatmapPoint=function(e){return this.mercatorPointToHeatmapPoint(Us.wgs84ToMercator(e))},zs.prototype.mercatorPointToHeatmapPoint=function(e){var t={};return t.x=Math.round((e.x-this._xoffset)/this._factor+this._spacing),t.y=Math.round((e.y-this._yoffset)/this._factor+this._spacing),t.y=this.height-t.y,t},zs.prototype._setWidthAndHeight=function(e){this.width=e.east>0&&e.west<0?e.east+Math.abs(e.west):Math.abs(e.east-e.west),this.height=e.north>0&&e.south<0?e.north+Math.abs(e.south):Math.abs(e.north-e.south),this._factor=1,this.width>this.height&&this.width>Us.defaults.maxCanvasSize?(this._factor=this.width/Us.defaults.maxCanvasSize,this.height/this._factor<Us.defaults.minCanvasSize&&(this._factor=this.height/Us.defaults.minCanvasSize)):this.height>this.width&&this.height>Us.defaults.maxCanvasSize?(this._factor=this.height/Us.defaults.maxCanvasSize,this.width/this._factor<Us.defaults.minCanvasSize&&(this._factor=this.width/Us.defaults.minCanvasSize)):this.width<this.height&&this.width<Us.defaults.minCanvasSize?(this._factor=this.width/Us.defaults.minCanvasSize,this.height/this._factor>Us.defaults.maxCanvasSize&&(this._factor=this.height/Us.defaults.maxCanvasSize)):this.height<this.width&&this.height<Us.defaults.minCanvasSize&&(this._factor=this.height/Us.defaults.minCanvasSize,this.width/this._factor>Us.defaults.maxCanvasSize&&(this._factor=this.width/Us.defaults.maxCanvasSize)),this.width=this.width/this._factor,this.height=this.height/this._factor},zs.prototype.setData=function(e,t,i){return!!(i&&i.length>0&&null!==e&&!1!==e&&null!==t&&!1!==t)&&(this._heatmap.setData({min:e,max:t,data:i}),this.updateLayer(),!0)},zs.prototype.setWGS84Data=function(e,t,i){if(i&&i.length>0&&null!==e&&!1!==e&&null!==t&&!1!==t){for(var n=[],r=0;r<i.length;r++){var o=i[r],a=this.wgs84PointToHeatmapPoint(o);(o.value||0===o.value)&&(a.value=o.value),n.push(a)}return this.setData(e,t,n)}return!1},zs.prototype.show=function(e){(this._oldEntity||this._newEntity)&&(this._oldEntity.show=e,this._newEntity.show=e)},zs.prototype.updateLayer=function(){var e=this;Us.defaults.useEntitiesIfAvailable&&this._cesium.entities?this._oldEntity?(this._newEntity=this._cesium.entities.add({show:!1,name:"heatEntities_ts",rectangle:{coordinates:this._rectangle,material:this._heatmap._renderer.canvas}}),setTimeout((function(){e._cesium.entities.remove(e._oldEntity),e._newEntity.show=!0,e._oldEntity=e._newEntity,e._cesium.entities._entities._array.forEach((function(t){"heatEntities_ts"==t.name&&t.id!==e._newEntity.id&&e._cesium.entities.remove(t)}))}),300)):(this._newEntity=this._cesium.entities.add({show:!0,rectangle:{coordinates:this._rectangle,material:this._heatmap._renderer.canvas}}),this._oldEntity=this._newEntity):(this._layer&&this._cesium.scene.imageryLayers.remove(this._layer),this._layer=this._cesium.scene.imageryLayers.addImageryProvider(Us._getImageryProvider(this)))};const Hs=Us;var Ws=i(797),js=i.n(Ws);const qs=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._id=W.uuid(),this._viewer=void 0,this._nativeObjCesium=void 0,this._enable=!1,this._fogByDistance=t.fogByDistance||{near:20,nearValue:0,far:2e4,farValue:1},this._color=t.color||new Cesium.Color(0,0,0,.3),this._state=Me.INITIALIZED}return s(e,[{key:"type",get:function(){return"fog"}},{key:"enable",get:function(){return this._enable},set:function(e){this._enable=e,e&&this._viewer&&!this._nativeObjCesium&&this._createPostProcessStage(),this._nativeObjCesium&&(this._nativeObjCesium.enabled=e)}},{key:"fogByDistance",get:function(){return this._fogByDistance},set:function(e){var t,i,n,r;this._fogByDistance=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.fogByDistance=new Cesium.Cartesian4((null===(t=this._fogByDistance)||void 0===t?void 0:t.near)||10,(null===(i=this._fogByDistance)||void 0===i?void 0:i.nearValue)||0,(null===(n=this._fogByDistance)||void 0===n?void 0:n.far)||2e3,(null===(r=this._fogByDistance)||void 0===r?void 0:r.farValue)||1))}},{key:"color",get:function(){return this._color},set:function(e){this._color=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.fogColor=e)}},{key:"_createPostProcessStage",value:function(){var e,t,i,n;this._nativeObjCesium=new Cesium.PostProcessStage({name:this._id,fragmentShader:js(),uniforms:{fogByDistance:new Cesium.Cartesian4((null===(e=this._fogByDistance)||void 0===e?void 0:e.near)||10,(null===(t=this._fogByDistance)||void 0===t?void 0:t.nearValue)||0,(null===(i=this._fogByDistance)||void 0===i?void 0:i.far)||200,(null===(n=this._fogByDistance)||void 0===n?void 0:n.farValue)||1),fogColor:this._color}}),this._viewer.scene.postProcessStages.add(this._nativeObjCesium)}},{key:"addTo",value:function(e){return e?(this._viewer=e,this._state=Me.ADDED,this):this}}]),e}();var Xs=i(802),Ys=i.n(Xs);const Ks=function(){function e(){n(this,e),this._id=W.uuid(),this._viewer=void 0,this._nativeObjCesium=void 0,this._enable=!1,this._speed=10,this._mixNum=.5,this._state=Me.INITIALIZED}return s(e,[{key:"type",get:function(){return"rain"}},{key:"enable",get:function(){return this._enable},set:function(e){return this._enable=e,e&&this._viewer&&!this._nativeObjCesium&&this._createPostProcessStage(),this._nativeObjCesium&&(this._nativeObjCesium.enabled=e),this}},{key:"speed",get:function(){return this._speed},set:function(e){this._speed=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.speed=e)}},{key:"mixNum",get:function(){return this._mixNum},set:function(e){this._mixNum=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.mixNum=e)}},{key:"_createPostProcessStage",value:function(){this._nativeObjCesium=new Cesium.PostProcessStage({name:this._id,fragmentShader:Ys(),uniforms:{speed:this._speed,mixNum:this._mixNum}}),this._viewer.scene.postProcessStages.add(this._nativeObjCesium)}},{key:"addTo",value:function(e){return e?(this._viewer=e,this._state=Me.ADDED,this):this}}]),e}();var Js=i(87),Qs=i.n(Js);const Zs=function(){function e(){n(this,e),this._id=W.uuid(),this._viewer=void 0,this._nativeObjCesium=void 0,this._enable=!1,this._speed=10,this._state=Me.INITIALIZED}return s(e,[{key:"type",get:function(){return"snow"}},{key:"enable",get:function(){return this._enable},set:function(e){this._enable=e,e&&this._viewer&&!this._nativeObjCesium&&this._createPostProcessStage(),this._nativeObjCesium&&(this._nativeObjCesium.enabled=e)}},{key:"speed",get:function(){return this._speed},set:function(e){this._speed=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.speed=e)}},{key:"_createPostProcessStage",value:function(){this._nativeObjCesium=new Cesium.PostProcessStage({name:this._id,fragmentShader:Qs(),uniforms:{speed:this._speed}}),this._viewer.scene.postProcessStages.add(this._nativeObjCesium)}},{key:"addTo",value:function(e){return e?(this._viewer=e,this._state=Me.ADDED,this):this}}]),e}();const ec=function(){function e(t){n(this,e),this._id=W.uuid(),this._viewer=void 0,this._nativeObjCesium=void 0,this._rotateAmount=.04,this._enable=!1,this._heading=0,this._state=Me.INITIALIZED}return s(e,[{key:"type",get:function(){return"cloud"}},{key:"enable",get:function(){return this._enable},set:function(e){!this._viewer.scene.mode!==Cesium.SceneMode.SCENE3D&&(this._enable=this._nativeObjCesium.show=e,this._enable?this._viewer.scene.postUpdate.addEventListener(this._onRotate,this):this._viewer.scene.postUpdate.removeEventListener(this._onRotate,this))}},{key:"rotateAmount",get:function(){return this._rotateAmount},set:function(e){this._rotateAmount=e}},{key:"_onRotate",value:function(e,t){0!==this._rotateAmount&&(this._heading+=this._rotateAmount,(this._heading>=360||this._heading<=-360)&&(this._heading=0),this._nativeObjCesium.modelMatrix=Cesium.Transforms.headingPitchRollToFixedFrame(new Cesium.Cartesian3,new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._heading),0,0)))}},{key:"_createPrimitive",value:function(){this._nativeObjCesium=new Cesium.Primitive({appearance:new Cesium.EllipsoidSurfaceAppearance({material:new Cesium.Material({fabric:{type:"Image",uniforms:{color:new Cesium.Color(1,1,1,1),image:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAgCgAwAEAAAAAQAAAQAAAAAA/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/AABEIAQACAAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2wBDABQQEBkSGScXFycyJh8mMi4mJiYmLj41NTU1NT5EQUFBQUFBRERERERERERERERERERERERERERERERERERERET/2wBDARUZGSAcICYYGCY2JiAmNkQ2Kys2REREQjVCRERERERERERERERERERERERERERERERERERERERERERERERERET/3QAEACD/2gAMAwEAAhEDEQA/AOQHWp41JqFetXYBnigCWKHNWlts1ZtoQa1IrYGgDG+y0v2Q10AtBS/ZBQBz32Q0v2M10H2QUotRQBz32M0fYjXSfZlpv2daAOd+xGl+xGuhFv7UfZRQBz32I0n2Guj+ygUfZgelAHO/YSKPsNdF9mApPIWgDnvsNH2Gt824ppgFAGH9io+xe1bXkijyqAMX7FSfYa3ViFP8gUAc8bIim/YzXSCAGg2qmgDmjZmk+yGum+yLSGyBoA5n7IaPsprpPsIpDY+lAHO/ZDR9lNb5syKYbXHagDD+zGk+ymtz7NQbbFAGEbU0n2at77PUbW9AGJ9no+zmtZoAOtJ5Y7UAZJtiKQwVqhRSeWvUUAZf2c0fZzWn5RFL5VAGX5BpfsxrUEYHUVKIh1H60AY/2Wj7Ka2PJ7kCjyVPegDH+ymk+zmtsQA0fZx6UAYn2Y0otSa2zbD6U5bfHSgDD+xGj7JjvW4YPaomjHcUAZH2Sj7HWp5SnpSeVigDM+x0n2P61p7P85prBR1NAGabT0Bpv2NvStlPLHWpQ0YoAwDaMO1N8jHUGt92Vvu5/DFQtGSMbj+QoAxfK9KXyj6VqPa55yfxqu0JU0AUjDULpitPyt1QSx4oAynGKiPWrcq1UbrQB//Q5OPrWjbD0rNXrV+2ODzQB0Fpt71qxlRWFDOsYz/SrsV9k4oA2PMFNL1WWYHrxVhBnrQAvWkwP71SkIOvFUprkAHA5HI9xQBPlO7UfL2asU3xzjFWA7Y6/kKANESDsaeHNY5cg981YiuCgyRn1yaANBjxSK2BVAX2/t9BTvtB/wDrUAXS1KBmqQuD6VJ5xPQUAWjgVEcGoWkYioV470AWyMcU5Y81WDEdDinrMw4/nQBcWML1qTy1FVEkJqdeetADiBUbGpgnHFMdggzQBXZ2HQUqlz2NMa/UHA61Mt0VHP8AOgCOUygdMVAtwe5xj1q6bzPDLx+dRGSB+DjNAEP2k9TjH1pDcr7UktorDclU9pU4xQBd89T6UjSe4qqFY807JXrQBIXXrTDMD92oyxY4Uc9KtR6fIeT0PPFAFY7mpy2zt0BrUt7XHVaubQvAoAxBp8h6j86kGmt3IrVKL61FJGPX9aAM5tPI/iFN+wsO4q15bA/KQP1qVVbuaAKP2QL96nbEStAxr0JqrJAr+9AFTg8iklQYzTXAjGZG/AVUeeJz97HbgHFADwoPsfYmmOXXhWNPUgjAOfwxTXj2/MWoAarMP4jmnCVx0aoiSeagkl29aAL4mf8AiI+nSmmZiMYHPvWc10KkjlJGRmgC6i568mj7OD1aq3mkc5qzFtfnrigB4tkPekaCFOCTmp44xjJ6elUbpz5gZemOKAJTDGvQmmuAvBOM/wB6qpO7r1+tMLkcf/XNAFzmPuKeJTjA5rP3O3vUiqce5oAnEhBweanVVYdsVBHsjHzmka5RQQn60AEqhfu1UkOacXLHIyfWoJGPTBoAqTiqLdatzE96qN1oA//R5FTzVqJjVQdatRcHmgDRhkx1GfrWvAsDAE9frWPHU6NjkUAao2h9wbkdjT5bx1G5VyO9ZjTb8Fuo6H1qwl+FGH6Ede9AF6O8MwAYHB659KoxyvDIU6pnHNKsySdG/BhgfmKeUHbjvt6/lQBFd2gz5kfQ9u2aignK/I3I9K1IM4ODkVU1C1BTzUGCOuKAI2kz0pNmep/Wszzj3yacszH7uc0Aa6REc5z2qYLzycVnwymLJYEN2zxV60mZgWf86AJhge9CzA//AF6sIABz37VVlUSnaNy49uKALC4brUEzpGeepqpKuxvlJOe+eKjbcWy3WgCd5ttLHdAnA6+9VXJAxUKt5fJ70AbEc/PNTq5ZuvFYiXGPmqzFehU6/NQBuq/HWmMhbr26Vlx6gD1P51YXV4l4b8wc0AVZrJ0ffEMr97HepUvUHytnHtV1L2CfhGGT0HQ1l6hbtGxdR8p6+1AFw3Ct9wioXy3OQfwrNjmx0NTi6x1oAuQymNiM8dKe0qv1HuD3qibndwMU15COT19qAL2N/wB3rUhQ4GaopdP0HTvTzcM3JoAXkNnpWrZXwX5JCPY1jbsimbe/NAHW+enQEVHI5HT9K5fc3vTGmlU/KxH40Aa9xeiM/NwaptqGTjjFVDcyMMMxP1qE/NzQBsxXsXc4p8lxtwcZB7isIJnkH8KninMSlDye1AGvHcMzdOPUmntcJHwzY544qjHexhf9r0qG6vN5CbQ2Tx649aAI798sdpz1qsrBACnynj3zT7jZCcvz/s4/rVfaj5MWcenp+FAFppVXB3ZPtSecH6nmqWxh68dqmjbaO2fagCcnFVnUcnqacz5puRQBWzg5I6VYV8jil8sGhYyD7UASZBGD+ladsIgDt4PoTWYSEGe9OFyAeRzQBpXRdRmPn1rLmkY/eGOeK0baMsMliRS3sO6MhQM+poAzNpcZXk+gp4KhcqOehzVMSNE3UgirAui53Hr0OPSgCVnG3jP0zUHzH2qxHJGRgYB/2hTpYWRN4GV9VNAEUVsZDgdffitG3sVU4bBPcdaoWrsXBA4q/bS+U5Dkj60AXmtkQZxisu6ETE4IzWnM3mKQprmblHhJB/OgCndrtJqgxzVudy3WqTdaAP/S5AdasRnd1NQKeamVM9KALsT4HNWA4qgAR1qTPHNAFjzecdR600uXOKgIIG7HHvVmzSNn/fZ56AcfnQA5CV/wq5DdjZsfPHQjtVwaZARvw23jo1MudLjVcxnaR2JzQAqzmHDZypON1X45BKMjHI5Brmo7loyUbpnDA+1X47hYwXVuQePp/wDWoAdqGnJxJFwD17iobdobbc2dxHQ+9a1tOs44PUcisXUNNa2JkX7hPPtQBBLcNNIXbufXgVrWL4X5cc9cnJrCGBViCTY4OeDQBsfbliJBBI9c/wAqja/DHjp2/wDr1FPFGUG1vm6565z2FUfMK8UAannluePyqGWdzyQMetUvOPrSGfPWgCwZc1AzetMBJ6UhYJ9aAHEnv0pyR8ZpI2Lc4J/CrH75+injsBxigCCTd2FRyZxz1qT7a8XBA/GnQuZz8yrj+I45oAqFyOlatnqLqAJfmU8epFWINMtQu5mLZ6AU59HA+a3bBHO1un50AVr2AKPOi5U8kDt71R80d6svPJA5SQYzwyn3qrNAV+ZOUP6UAWU2u+3OBj8ePSkdlDfKCB6E5qjvOcg804zEnNAGmG9+varcNuZBk1g+cT1PHtW3aXkSqBvAPTBNAFgokY+dD+HNQtfQL8ozn6Vb84MD83sG7VWl8nGZMZ/vY4/+tQBVluA3OSo7VVlkXsc+9LdBP4SfXnkGqhOOhzQBN5mKC2TxTEi3Ak8envTN6rwwIPfmgC6JARgfnULgqTk4pn2hF5SmSXYlGG5PbFAEkc0cYOclqFkCuHbIHoTmqRI/AVf+yyTIHSNtvbHP/wBegCvcSh2wvSrdrHFgOwJIPJbp9Kr+SUzlHDf7h/njFRpA/wB7afz6fhQBoELIrSdEBwpJJ/Ws5ZDmrd2skUSqRwe9Z4Rj60AXw0Y4LYP0Jpkqx4yCD9Kp4xwamjZP4uPp1NAD1Hp0qcHA68VUeQfwZ2+9M3mgC1JLnpSpMFxuGe9V0NK3FAGvZXw3BG5yePatCdN33Tg+39a5hTjkVuaZdh28p/vEfL+FAFK6txGfmGCe3tVUIp+4eT2PFdO9urjLAFuxFczeQtbykNyevHvQA1gVJU9RU0c5ClT9Qf8A61Uyx608Op60AXBOeowKje4ZxhuagDAdDT+ooAEneP7pxUc90z8NSPUDnsaAI3YdqqucmpWNVz1oA//T48HBq1HKAMN371UpxII5oAtjduwjc+mamjuJAdsiqffFZ25sEfnmpYCzHJPAoA0mj3feOPYCq8ymL5kO78MUokGDnOex9KGjZQS3TOB70AW9KuZZW8tCcAFm4/LPt+tOkvXywLHjgY/lj/Jp2mWkwjMqMURgwye+fQd/Y9KfeQ/ZLXbEMM2AW6En0H0FAGa0pk+Y9afCRnDdDVeJGGQ/Tse9SKgHfpwKANJFSHDpIR7HpV6DU1ceTPjB4DDoaw1b1ppO3pQBZvoPIk+X7p5FVgwqX7SJE2SdO31qs2VPP50AWBIR04+lBbPPeoA2akBoAfk04Sew/KowSaXbQBN5tG7NRgU/pQBMrKO/Ipz3UiMDG5HvVYmmk0AW3uEm+aUDI6EYBzVWeaNFwjZ59MDmq0k2Bz0qo7+YfQUAbEOqhfk+6Dzyf8it8ysqBohkYySD29cd64Nu3p2rcs9b8oIp4weSfT/IoA0dXkE8ayoBuHf19v8A6xrPtrgg88Z6+la/9oW91H0Aye/U/h6VjSWLI4MXKNnAH/16AC+RYiGXhW/Q1VDU+STepif1+X8KpFyvynqKALe7NOCk1UWfHWrqSK/AoAlj82P7pOP0/Kpt7zDG3PrmnK0qRl0HAGcHvmoLedpThThuSxHAHOB+dAEaBwTjPFTRRCRgN3NS7Ul/dqRnvzkn/wCvUyoFIPy7s4Ibg4+h4oAnY+WqhsYHdo8isy+OW3KBz6Dj8K3Y/mQk8Y4AI4/xrDvroSvgjHHbpQBTE3mfKcD68UrtjtwfSqUshY7l7fnTDcOe/wCVAF5zGWA3Ed+lbdvdrtCRSFHA4yBg1yiuVOaDISP1zQB0V1q1y3ybtpHB296oxzlWz3rPScr15/GrEUm/mgDYn1EOmMbT7c0y2lg7jJPqelZjPuPNMLY6fpQBvNbRXAJjGD7VlzQtC2Dn8ahh1Fo2BHP44rTmuluYgxOSORgcigDOFOwRUS3AY4PGemehqeGLzXCg4J6E9M0AA9MflSE806aGWE5dWHb5Rkcd81UNyDQBZ8zHFWbSQiZCPXH51mGTI46noK3dI04sRNMDgfdHr/WgDcurj7PEXHJAyBXKzXhuG3PgZrrXijlBV1DDpWJdeHxktbvgf3X5A/Hr+eaAMhCpOGOB64zUhCDgP+lJNpl1DyVDD1Q5/wAKbDbSuehU/wC0CKAJVgfG8D5RxuPAzTGYjg/pVt2eFNjgEg5Hp/8AXqjLcmQnJ+g9PpQA0monOadv4IqNjQBC9RHrUrc1EetAH//U47vR0pcZptACk561PE+1P1qtT88YoAtW8jeYCfung/jWo0vmRlUAJPAz0rBEjA59K0DJ5iiSPhhwR60AdLp8yPti+X7u75eOnH4Vnavc7pdg6IT1PfArFgvpbeQOvUZBJHOD1FJdXXmSGQdT19/egC4zq3zYwPQVCXyc1V+0e1NacnpxQBM85Vsdu9WAQw9jWaWJ5NW4ZcrzxigCPPlnB5UnpTvMMZAHIPY0jFA28fl700y7+SOnNAEyMjnjKkelWFUjoc1RKhmBU9euDzUvzoeGz6cUAW92OCKUOO1U1uiCQ/NTBlbkGgCcvTS9R596Q80ASGQDrVu2kgYbWxuP97oPxrMIbvjHvUJfccHpnGBQBrSadFOCY3BxwcHGP6Vlm0kDEEYA4Ocf5P4VOspjQrG20Z7dz34+laOn+XJGIZVyGHHP48f0oAwJAAcDqOtR1oXflwyvGq8KcLx/OqLHPPc0AAbGPaphduQQxz3HsfWq9FAF5pluBk8ODyP7w9R7j9e1V3OPlbt0NNhOHBzjkc+nNXbrazEdx6d/cfWgCoFx833h7VNDOFwMGqvKnjinBnHOaANT+1jt2jIGMY/+tWYWZsgDHsKQM1SRo7c4z9aALNs4jG0Z3HknpirRnAXcWJPXOc/pVJVC9SAfY1G8gG7BwfYdaANew1ptxjl5B6Edaz9QJSTC9OSp9QeaoZIOR1qd5/OTD8svQ0AVycnJopSxIxSUABOetAGaSnlzjA4+lADT6VbtFOCw7VTrQgG2Ljj1oAqSOQ5pvmNnNSzpzkVCgyQKAHqoPLfpUyy+VypyOmKlRAoxSeWvUUAOjmjlwJBnHTNWIZxEVSQ8A5Q+1Z7Q7RuHXuKdv4BJ+X9RQBeuNTZMxfeXOTz144rJ346VNIEdNyjBBqtQBKsm05HX1rRjvPKQbnO49gTxWUKkjQucfligDaTU2XDR52njqTz71fttY3YEmCD3rCjt2QDcSB1Ix2od1A3RqVGfvE9fwoA6drgSD5CAfpmkabZ8xIPbpXMrOW/iA6Y78+4qWO7mcBcA9+KAOgf58ZAIrMudPjk+Zcg/pT7aeYBWZQAePX/9VackJ2htuR3xQBzTWrJ7/SomUjqOPWtuS2BO5cg+lQzExnDdD3oAxG+lREYrQmINUXoA/9XjicGm0pooASnbTTakMhIA9KAGlcCnq4Vcrw1RkmkoAe7bjmm0lFABRRS0AJS0UYoAUdzT44y7YBoiQyHaP8itS3sHkIQnEecBgOp/mT7UAZ00JjApglJ4NdinhpRhnbf14PvVC/8ADgHzxkIAOjdKAMBY42PLf0qbyFxlCarY8tiMg449qcLgjAHH0oAkYyR9eR6igXGKSW4DDAqtnB4oAulw4wOvXBFQIjbgTwCaZGWByOTTvMcjB5FADrg7SF9OauademIbCO42n/P+eaoP87HJ5oQ7Tgj0/nQBtXdoblzMuNpGSMcg96xJY2Q8jpxmugtJ8Dy26HvWXcxbmYZ4z8vp9PrQBn0UpGOtJQAtWo334Pfp+VVKkibafSgCxIgYe9V3TYcGrasCKY4/EelAFXp0p+4j3pXjA6VGUIoAXcc00nNJS0AKBSZp284wOBTaAEpccZozxikoAKKcy4OAc/SkxigBKuW8ygbDnBqnS0AaLAryelMAHUfnVaOdlPJyPSpt4jO3t1B+tAEwozTN3pUcku360ATHjkVXmXI3Dqe1IZ8rjoag3H1oAASORTjgnP6UynKpPI7UAGMVIHAyQPxz/hUWaXOT6UAXLe6HKuT0wCDx+NRyiNmwuAD1JNViMUUATS25TkHcv94ZxUYkKjjg+o4qWC6kgyFPDAgjsahwTQBcsblkf2P1rq7KVkVd44kOQTx9DzXHWrLG4kfHy849far11rUt03zgBcbQFGMc+vqPWgDpr+DaNwIwOw71zl23OCeevNbuiypcW3lSNlgMgdTg1j6rblHKjDE84OMj86AMhnI460wtmkKFTig8UAf/1uNNGaXGTSlCpx3oAQAN1/xoAGM1q6bYw3GQ5bcfu4GPr9fTH41dttBmbJiPy5wScfj7Z96AMaMpIMSDGO9SDTxK5SCRXI6DOCfpnr+YrYbSVgG18Mxzk7ckeufoO9YTofM2wAnByCOScHg0ATf2PciMyshVByS3HHrjrVFhtOOtaU17c+SbeRuM7mHcknue+OwFVLkxNt8pSvHzA88/WgCuoz7UE9vSjHenA5GMD1zQA5IXlbagyfQVcksxEMSYyBzjqKLOG5Ks8GV2gFjnGcnjFXf7KmX5Z2+cjOMngnsSOp/SgCjBYkYkfOw8Ap1J9PQV1+iwosOMuR2V8YB74wOKwraxlEik58rHQtggj09q2YGa3lKMcKwJA7H6d6ANblOh49KqXcbyo2DyRxwagvNZS1VdwyM4z1rHuvEEm4GMr5Z4wP69/wAKAMq80uaEGRlwo74rPVS3Aq/JqkrEksSTkYzhcfT/ABqzb3Ny6ho0G7orKOQP1FAFFbJsEP8AKevPagWeBvLLj61dm33P+vJyOuAB/Si0tbdiA5IbsBj+vNAEEVmHO1jtxgn/ADz+VbKaJsXIGCRkls5/LtTrS0tI5FcuTtOQgHU/1HvW/PqMQHcHuCKAODmsXiJbqc96VFUtmQHPQYrXuruKWTemDz2rLnvTvYjoeAcd6AIpPkjIBOeDk1GWaT94vXgEe+P8/jTDL5i7Se/f/PSrNoyhD5h4zyq/ePHX2Gf4s+2KAI0gaYEtwc4HHf8AwqE2zg7WwD7mtmF43hOfzz/Wqd1MJTsAHOPmI/yaAKTQ7ME/dOcEe1RNjtVlmaNPLJDDORt56e/pUax+aTt5bqAKAIlYqcin+axqYWpQsjghl6g8YPaqzDacelADy5PWkZs/1phpKAFNJRRQAUVLHA0gyOnSmMpXrQA2iiigApSc0lLQBLFA8/EYyR/nvSRwlyR6ZqWBmhHmowyONpGf0qWG7BfdIO+W9xQA6OyUx72BOe4NPaGNBhxhcdetaEJywAO6NznGNpH/ANeqt2jy7ljGcH5j6A9M0AVTCAuY887cHtzUN1avD8zcg9/eluFe3IAzt/hbHB/oaLiaSYAvwAMgf4UAVKeCFBzye1KuEI7nvSu287j+lADcjb05Pem0YpKAFo60lFAC0lLSUAFFFFABS0lFAGvZ6mLX96gAcAIy44YDvnsabe6iLvmRQCOh9RWVRQA5m3UgopcYoA//1+PHrV+y8otmTHHc9hVBeue1Tuwwp7A0Aa7X0Nk2+HknBXHT0Na1vqwkjKRFQzYYYzuPqeeOK5OW48/5pTyvCgDj8atw3aSkbsRMAV3D7v5dc0AbN5cC5hkMjH5SoIXgkE9T7D27VkwX62BdbUBiTgOy5yPT169KdDc74zaxtnJBLdDweOfT8yans4Y4lM7su8/6ssMf8C/w9Bz3oAzLvzZZCZyAx+YjGMcVIlgMKyneWGQoHQerHt/nrWxYwNKN58osGPmMxOB6YGD/APXpxtZWPkpIELZOCODt6kd8e5+oFAGDLZOeUBcjqRyPw7nH+RU9vp7QyK94hEfUqeCQP6VZe5kRFiMrSAkbUiIHfkHAzyPu4Jz3pNTuBIPLnLBlHygdP/1+uaANs3MEpEdsgwAW6dMf/X9aVVW3XNxIIxnO3JIyeeSeT7cAD0rlBeTuuyPhOBhRjp7+tSRRz3DBpSzjOCN2T/PpQBq2txDLPLFcSAIQNjsQP85pbjUfs2IAwmA4BAHA7VQudKmiTzdgAHDBMnA9fWqg3iMBlI54cg8fjQBoyl9R/doyrjB2s2KfZ+HS2WucqB0AHXn19PpVGHzEOYhvc5y3HT+ldHaymSLypyfxYj9aAGDRrPBMUZLD1JI/InH50r2szxiK34I++VAwT9f6dPSrLIbX5rdiQRtII35/Pnj2NVrZHj/1K5Uk7sEj8R6D25x2oAqvoV0OjKxJ6Zx/n6VUuLC5t1+eNSAcfKcn610ZuXiOJuM981lapqUG0puJOD065oAxRqarlTGpHTPQ1FPeq54UY6HGapySeYc0wUAS/aD6DHbiouWPuadhcdfm7DtT0VQy5PBIzt6igBPIfqAeDirq2U0aqw+XeDn2A9frVxpEhjDqy7A2AuOSPUfj171Qu7oTdMn0PSgCTT0eRzCRnPY9AanttNcvlYzJjIP90N2ye646gfSn6derjLrtCjlu3p+dbMV3PMywxD5WwVI4UqOpJ56UAZeo6HJEnmKqjnkKG7/Unj+VULe4k06Qou0k8EkZI/XitvWNYeNTbqPnX7/Qgj2wcj1rlHfc27p3oA055uTI/wAznqc1A7LNgqgUegNVlnbnPIPalBD8j72fwxQBKyluWX5T39KrmMk8A4ziuispwkYWRAzdOfSnRyWjSMDGVIBJx6d+PX370Ac2YnHUHnpxV6ytozuaUZ29ycKPTPfH4c1pXd3aRxmFFI3AYlx8xx2J681X/tuJLc26QAqTli7E5Prj+mcCgCBJWdvLQrgHBwMKfxqK9iWMBl53jPJ7+1Ucj8/SnSOXOck/WgCOipkKqwyO3ehWRTnrzQA1omUbjxnpUdWJ5/POT8uOg61F8oA6570AW7WGNpBFLIFQ4JcHpWlb6ZZuJv3wOwblORg/41gswPQYoDY/pQBqm9BgWLGMnr0Ix79q0pma3hja3Pmggl9hGFI9e/X1z6VzJkJOT361sG5h1BRGkfl3BARTGcIwA6MM9fcUAVbjUZb2YSy4yuAABgflUDxrI2Axz2U8n6cVbutIe0kVHYbWG4Hv+X1rQ060F0wW2IBXux6t79xjsBxQBzrxlCVPUU0DtXW6hp/2GJ5JXVpXXDEAAnPHy/1rLis3gjJ25LAY2kZ+boM9jnqP1oAyXUA4Bz+FMNaF6Wt5ApGJNoD9M5PUH3qKFoC6byyqM7jjOPoKAKpUjqKXyz3qWfYD8jFgDjJGDj1/+tT4ZjwgCglgdxHI/HsO5oArbTnaOtWHthGu4t16L3zVi80+W3Ad8DccoR0Yeo/nzVeIrIcOQPQt6+poAkjhj2/Mf97t/P8ApVaQDPC7R71Kcs5284OAf6/jV+LyrZQ82GkOSN3+TQBTttOlnJ2g4HersmmKGEbgoQOOOT756H8KW4cXDIgbaD1Kggev4EDpVm2aPbt81pmBG1QeQpPJAxngdRmgCnf6YtmgLcNgEDOc5rKRCxAHJPYVe1W4aRwm7cq5x+f88VWimWNSNuWPBOf5e9AB5eG2twR2pjLjrSPJuO7nPuc00E0Af//Q5AKD1OKdKAMev6UwHBpwO889AKAJ1hEhAYhV/vYyBnsakeDzG8iMKxB/1i9CB1P0q5ZhJQVXK7gVJPIqxpqbYTMOWJIUDuF/rnmgBLfSY4CJJscdieOfWi5uII5eD5o53ZGFx6D2/n71sXigRecp3ALj/ePU4/lXN3Vsbh8x7VUAcAnjjpg/4CgDTXxHCAcKVGMbEUY/E5rEuNReR9yk9dy7jnafb27Y6VWlhKHGMH3qKgC/BI8xVUKrIWzuPykZ46+nPTtU9zZwQhi8xkfGVCqeT7k549PWssKcE9ql8pgwDckjhep9uKAO60qxhXTVOQSVLMeOCeo/DpXP2urRW05BU7c9eOP/AK3rWTO9xB+6fKAgEoCQOfUD+tV0R5mCqMseg7mgDqbiW+upJLZNu3aGJJxlT6YqpcQSPGsAA3Ng5J/nnmp9LtVhUSyhkJzhdxH0zz+PNae5XTKSEN3YYLfTJBoA5qG1uNOuAWU8dx0OR/nrW9bNKSBdksh6bMEZPvx+lU7lZMLM0hZH6cdT+n+FbNlatIvKFk68sM/hQA42cZ+dSyAd8ZBpzW0cas25Txjjj6d6bdapFZjaSUPpgmuWvdTM8m4EkL14GCPwoALxiXOST+JNZdweQKfLcluR/KoS4blutAAsZNNVc8CpI5G/hx9D39vekIaTJA5HUAUACSmJw8fBByO/86klmeRhMcZGBkDHI9qrUooAtXl01wVJCjAJ+Vcck5Ofeq27jFNooAm+0NsCAnGc/jS/apcFdzYPUAnBzUFFAC5oBwMUlFABRRUkag8k4xQBqadbz3m1M4jHpx09Kt3NlNbzPHH8zlc7s4HzY4Ge/wClZ1leyxnykJK89DtOPr29T3oubqWRi9wx+dVyo7gdM0AVnje1lKyfK4POeoP4VFNKZXLkAEnPAwKa7b2Levqc02gAooqzbwCUHnG3nHrQBWorbvYLOCBduTKeWyenHasSgAoopyqWOFGT7UANoqeS0mjXe6Mq+pUj+dQUALWno8yQXKGTgbhyRnB7fTrzWYAe1PVsZz3GDQB2viOyjmiNw5wVAIIPB9h7ntXKC/KxiMDBU8ODg4/D+dQPMzL5eSVByOv+RUNAGul1bNassi752JCs2dw7g5PbNR27Kse+SQ/L9yPGQSDnBPbnnnrWYDjmtfS5YCW+0AdPlJXP/wCqgCjdSm4cysdztycDAqrW5rUSJKIoIwvAbdyCcjp9KxghJwOtACK23sD25pKCMUuxj2oAfLPJMBvJbHAyc0iKXOEGT2xTMHpWxpdukbec7cAYIxzQBkuGQkN1702r+pTfa7hpEGASOfoMVSZCpwaAAMV+YHn1p6TuCSDgnuDg/pTB0wfwpFUscDrQA+R/NOTwe59ff60xUJIHTPrU58pF2kEt3pzXX7sIoxjjJ64oAq9KBRQKAP/R400qLuIHrxSGnRPsYN6HNAHTWtiRCxHUDj/61ULN3DAdowzAg8fMaWTVNsR8tsMewrKFwwJI75/XrigDQjuJL6QRBiqDnOTwP8a07i3kEeyHESjGN/32/wBo/wB0Ht/SsTTrj7LIJTyvGa62HUbW68yMEZkxjb1AAxz7UAcdPbSxZLkcn1quxycitPVYthC5HH59f6VUtbQzHLcIOrf570ANjRlTzD93OMeprUkuEtkX7K2ZiAGZRngjkAn1P4jtWfdT7iqhdqr0T0/+ue9QCZ1OQcY9KAL00e5/Li+dxyzt6+mT6VcguxYQBY0BmdiWcYwB2ArJN5IRtXCg8HaoFME7AY/WgDWN+8r7SPm/CtWCzkMfmA7Rty3HP4Cuatx/EetbVrezAqB8wAK4I455/SgDTs1cqzhFUYG3zCNx9TnoM+gzVBprgOzQsBn74ycexGMYNdVHCVXA2YODk9h/KszUTDEySxDeckFeP88dqAOUuZpJxunUs68ZJ7f59aozDABAxkVt6lMZpN8aFBwKzJ7Yv8ygAgcjGPxoAoHmkpSMcUlACg4+vapSP40J469jmoakjfbkHoRjn370AMpKcy7Tim0AFFFFABRRRQAUUUUAFFSxQmXIXtzSSx+WdvXHUjpmgBobFOllaVtznJ6fhTMY60lAC0lLtNOO0r796AG1JDNJFnYcZ4NMA4zmlYHPTkdaABnZuWOabSqdhBoJHagAx3Naul31taSK7xkkcFuv6VlFyetG09cH8qAOn13XoLuIxQAkHjcwxx7Vy9KTxim0ATW+N2CcA8ZqxJaqWxCcg8KP7x9v/r1TVyvQ4pyOVO4ce9AFu5mE2WZEVgQpA4PA5OP/AK9Q21w1rJ5iqM4IG4ZHI6/4VHLGU7YqMnNAGzDb2JyZGdtoG9lI25b9eD17Vn7hExxnYwyPXmoEkKdOeh59qdNL5rbsY9B2FAF2RzMM7iWXgEnP+f8AGro0lzb/AGlCCuMkscEEdQf6VnWOd/QY9hz9K2Gf7PCSep7Z4/GgDnVOHyeat1TkcyMWPU+lOExUYH60AWgBUnnMV2Z49BVSFyxwTVgCgBQKa6AqakUUuKAKRRl+lTI6R8uBupxYAZ7c1SZixyaAHyNvOfc81HRTkjZ+goAZSip2tivJ4qMrigD/0uNNJUgGTTjDQBDTlXcQPXihl21JBtB3MN2D9096AFjYq21gGB+XH/1xW9p9vDEzOWwABkAZbntk5P5Vm+bGU3lT5nqW7j+6oGPfn9amtZlJPlIXcj756fj6D+dAEN7m6utiDAOAB7f1q3eq1nCu3pwBV2wsDH+/mO6Q/wCf0qaR4ZnIZhiPrQByD5yd3Xvmkq7PGbiZmAIXJx8pP4cU6FJYQ0bg+Ww+bjr6c4oAitniVwWXI755rXg06G6bzYWGM8qvX8j/ACrJl+QZUDFQJO6NuQlT6jj+VAHV/wBjW4XYG59en6UR2Ytv3hz8uSOePxFY0OsXPAyCem5hz+dWVkkk5mIYe7HB/D/61AE0mpyPlpScZwAp4qu9zEHw2R3qN5CJAiEIWwBgZAz3z0rWg0OBAZZ3Vs4xjj6jknrQBkzansGETp3bFVGvnnyrAD0IFa13a2CHIBC5wPmIA9TUBe027YTj3IP86AMR1ZTzTKtzw7zlKgMLjtQBHSg4GKMUlAEyQvMMqCccHAJwPfFL9klzjY3rwp6evTpUtpqM1pkRn5W+8PX8ev5UsupTSAAMVAG3gnkHr+HtQBBKhUAMAMfmfrUNOALH1JqdrGZQGKnngDvQBWoqcWspO0KSfarKaRdP91Dn070AZ9WLe0kuD8g49e1bdjpJAP2lSm3vxgjFMimEzlXyYAcLt4HHp/h3oAhliW0At0+aR8MSOBj0P41lSKVJTPTr9a6O51S0iiKxISzfKc8ED1z1z6fnWe0FvvjaPOCDv3Dcoz79/wA6AKSWodQ5YDPXd0qKSIxtt71sTtYeWY03Fz6AqB/wH+vWs8jeSW4XgAd+KAIDjHI59qjClm2jqeKnZNx2jjuM+lFpF5kygc/MMmgCx/ZrFS3CqoyzGlN7DDHthjBkxgysP5DnH1NW9WuPkW2j6Elmx39PwrMitWJwTj0NAFcuWGCeKChGPfpV6Kw8xvmPuSKvQWUajcOewJoAylRYRmQfN2pJLjI2hfxJOavT26g7iOfests5PtQA2koooAKk81hz6VHSigB8krSHLVHVy0MeSknIOMcdxUwhtW3szEY+6qkf160AZtLjtUrRhgTGPlHc9fxxWomlxKykseRnGO/1oAk0q23AE9sZNR6kN0p5+X+HH861x5dvD5QOGIOD6VkCNpWHdu1AFEWuPvGq5jIJHpzWq4Kna3UdagmxjNAFOHC5Y/SrQbjJpqW4C5PP0ojt3uG2jgDt9KADzx+HXNRvdHPy/mad9kLHk09bVAeeTQBUVWce3rSFRnj9a0BCemMCp7XS2lO5QAo79/yoArWenPctgfd/iPatL7OlugbgdtzVpx2/2eE7BlsZrn5pZHY76AIbqQOfl6Dv61TJyeakkJqKgD//0+RVsGtC3UNxWZViJyvINAGi2meZytRf2Ox68VNDfPjAPNJK1xIMMzAdiP8AOaAJLfSoxhnfPtg5NXWmghUDs3QLwT/9bvWbBaucbTkA5I3H+VWls1i3vI/LDjA6e349KAILnU5Z3McIwPu5/nj/ABqO2tiflYhevJ61oQaanlB14Y9Sx49hj+tQXUZRs9cjI/H/AAoArGYRHEXT1J5P/wBaoppXfqfw7U7ZinR25k57dOKAKvXrTGBIOFJA6kDiteDSnuGIUgKvUmq01lHESgl46EKDg/0oAoxlx6/jT5/mXB69qkVY0bv9QOv+FJPcLj5T9ABQA21GRtZQw9+orpbe1tZo8bQrA54GPz7VykQMjcnGfwrWtzOhKplh0yhyfxzwB70ALfIm8Rjru79cY6Y9M96qmMI4AxknGB6Yq8+qrGPLmi3Nzhjx9cevPpWMsjNLvxyDwPT6UAaJhAOBxVoacr/MGB9qqMxY5Jq1augOGbaKAK1zpuecj8DVVNKkflQSPXGBWw/kowePd9WIq6dZiiXaBubsO350AY1t4fZjunbag5/D8ajmsYg+yFS3ueeKvveTztufp2UcD/69MeaXvkZ649KAEhggsxulzn0UUsuoRyDEakL+ZqsY95yQfxNPjtXUcDA9cUALBePESYlAPTJXP9amW7u2zvkOe4AAH6c/maJBFAq4IdiOnI+gqNrtUkI5AHBXr+XWgCG5kL5Gd5Hr0/nWe4mPbj2rQkWQ5YRlVx1Pp+FQlZMA9VoAoC3dm5/OpNqoMfMcds4/lVtFGc/icUSMNvPagCKJQBle9XIowBuOKqx4wMdKnV+No49TQBDJDuPqTV6Cx+yxmVuo4GKLRRJIg446itHVI8wHHGCDj1oAwZWMz7m4xwPwqaJIyvJO72qBFqTbigDSgtwVxuOD14/nSvbMvXp7VmqxHQn86spcvwCeBQBZmsDMODjHas82iLkHbx6g1oRziQ+/1ps8Ky8kYPr0z+FAGDLASeMY9hUPlY6gn6VuNDgYqv5YNAFD7Hv5iOfY8GmG0lBwVrSWPbyKmilKHkA/UUAZq6bcFQ4HB6c80wWFw/RD/L+dbz6gQMKOPYAVSeeSXODjP50ATWAt7GMi4JEjegyAPw61LHexFzgfux03dazfsrtkn8zSRwiPqfzNAGrNfRzMSikHGB0PIpPNKYcFEbHRQSfr9aog7DlTS7ieTzQAsisxJJz3JPeofJLfSpA7D3qeA+YwycUAKbL90uOrHn6AVCGNm4KfeHrzW00kYx6r36g1HqUCTKGUfNkfMOlACW9zFOo85CrAfeA4NKYocnDAA9hUNrGyDax+gqGdsnFAFqOKAEru+nIq6qBRhR2xlTXPyIxG4Dj1p9vdPAwIPA6igDbyZFZW4PUE1zsituKv1BxXQpqEF0MMCD35/wAKpTWsIyycj65oA52cDPHSq561qXKL6VmsuDQB/9Tj6lSoh1qZKAJ40PpWgu9xxz+NQ2z5IA6e9aC3Tw/cQYHU89KAI4YJOWXg44rVtX2IVmAPPcZ5rKa9dmO0Yz2q7Y3LnHmDIB44xigDRuCoTDDoMiucuH3EL6f1NdKypJkg5J6jNYFxa7JMEnk9T6UARpbbsc1chbygRs59T3/LvSJ+7A74pxnLdhQBTuLh2JAG0ewqoVY9q0X+f71KGfG3OR6ECgDO8hz7fWoZIW/iGa1vLB6qP1qKSEfwr+VAGI0OORmnbpF5ViD7GtF4CeSAKqMoBx/KgC3DqUw4lG7sCwBI+nHFOSKKeTe44/I5+oqgSe1KbiVRgNgfQUAdJ9gt3AKjnsfb0rBlV4pGRhjB4JqBLqdDkkkfXH8q1I78H/WEbf8AaXJoAhtp8cS8rWjm3kQ+WuD1LdOf1pqTWbj5Vy3Q/LtqNwgOYvlPsf6UAXIRujygGT1JPT/P51LDZ5OWOM9u9ZaTPH2B+oxT/tTS4BZQPUHp+VAF2Wz8t9w+ZDwc8Vnzq8RKoSB6Voy6lEoEatuwOT61QMu45bp270AUG3MeeuetPWNVOXzxWhsjce9VZIvKORyKAHveSkjJ7YxjgioOxPTPQClPIzTGBoAYAV4/UU4R/LuNWo7crgsOfQ96bOobn04wKAKbH0qeGPzBjoT0qEjHFPiYrwelAF60tsSYfhxgg1shDKDHLyD3rNguw2BN06BuhH41swbQgwcj1oA5250mSNiU5XqOO1W7ewYptkAP0PIrZLrTCSehoAwpLPyW5GR29aqzLjkVozSyPIccKOAD/Oq8h5JoAzwx7Vet3J+8SfbrVCQ4bir1mNwLEHA70AXWt1VCwIyfzrHc88VrGMkll5HoD2NZskeDkCgCLJ7UucfepOenelC54IFACHLdDURiYVbS2cjIH4042pThutAFVH4wf50jYPT9asfZ6BDmgCEIfSpI4gTyc+wpxTFSKw6EcfrQBL5se3EaHd7/AM6rukgORwfTH+FXoZYeA4IPr2q3sBGIjn60AZCSyJ/9ercOoeX/AAD/AICSP/rVbe0IHzAfhVKS1HUUAWfPt7g5fKt/n0pZbWCX7vJ9sis//Vfw1Pb3aqeY8/SgCSOzVB/F9On86pzWpLHH6Vfk1DH8B9s1UkvXk6igCosLIc8j3q35rbcP+BqETueCePep/lx/OgDNuFHWs6TrWncAdqzJOtAH/9Xjx1qzGqk8nFVweasRmgC4ojHQnNXIbplXZnj0IqgoFTKKAL8MMUh+dgP0rQaOMIArZwc5z3rD59aXJ9aANd3I4OMHqf8ACpJUScAA9OhrEV2U5Bqyl6w+8AfegB8ltIrHGD7ZqF1kX+Airiakqj7nP1o/tMdl/WgCiJHB5B/KrUd0CMMtK18WGAox9KEuY/41BP0oAcWVhlaryOalNxGDlQf5VBLLuOQCKAIX/eDk1CYVHSrHHUcUgYelAFcKB1FBjU84q1jPQVGRigCHaD2phiHtUxGelJzQBH5Q7inHAGBSkNUXlGgBMilyuP8ACnBCOlG2gAXPQVNGD3NRDIpykjpQBaQY6tge9K7KMc5FVg1KSM8UALIjHoePao0yrAnkd6cxqMUAaMrk8Z/H2qoxalU8ZHUetTbBIM9DQBAq+tOGRzUqx7T1OKJSD14HvQAsbgdQPpVxL8RjaFH4VlvISMDp9KkiXPUUAaBvGb7vH0pRKx6moUUCpNuaAHnnrUTxg1JsxzmhNuctQBmS2zZ4q/CGjh2kY44NTZQNnNWEmxx8p/SgCvAcocjDetRXMQ6+vPFaIkU8GMfmKYyxP95ce4NAGMqHPIqyq7hgqPqOtafkWzdWYfhSeRbgZEpA/wB00AVEhI5Awac8W4Zk/MetXQ9sOBKP1pp8k9JlP40AZ5tm5GM+9VfJ2vjp9K05LhVGFdWqizNI2cUAV3jy3tTtgqUg96TaRQBFtq5AhxnOPbPNRbaRjgdjQBpxlyME0NEe1ZIlIPHFBmfruOaALksTHpzVNllzgUhuZf7xpFunHXBoAnVmXhwDTXEZ6AihLtByy/1pHuEY5HH1FAFchW6GjYAM7hSOd3QiqsoYUANuHX1rOYgnippM1XPWgD//1uPHWrEZqADmrMa0AWY2NTKxqOND/kVYERoAbuPtQWPpUnlGjyjQAxXx2FSfaWHYU3y2o8tqAFM5b7wz+FJ5uew/AUeW1L5TUAJ5p7Unmt707yjR5RoAYWJ5NL5jDpTvKNKIjQBFuY0pYnrUvkn1H60eV7/zoAh60lWPJH+QaBAPX9DQBBS1Y8hfX9DQIU9T+RoArEU3bV3yU9/ypwjjHUfoaAKGwilCn0rRAiHr+RqZZ414CfpQBlCJj2pPKb0rVMynsfyppkUjAB/KgDKIxTa0mVeyj8qZ5Q9KAKIAowK0BGPQUmwe35UAUgAOhqZX7frUvlD2o8laAEV/cGnbUblhz7Uxov7tM2yelAErRRt0OPwpi25z8rUgEnp+tJ+8/u0ATKzL3qQSt6/pVbL/AN39acN/ofzoAmNwR1H6Go2nbtj9aT5vQ0ZagBvnSe1J5jt1xT8Me36UbT6UAQnd6/rSYcd/1qx5Z9KNh9qAIlLDvSncepP0qTyzQIz7UAQFOOv60qqB3NTeWfajyj/kUARYFPDFehp3lH1FHlH1oATcT1Jpufen+V70eSPWgBm7FJnNS+WtLsHpQBHz6UeWW9Kl2CjFAELRkdaZg1ZIzTNpFAEJWkK1Pg0YYdqAKrCq8lXmBPUVVlX2oAoSVXPWrUq+1ViOaAP/2Q=="},components:{alpha:"texture2D(image, fract(repeat * materialInput.st)).r * color.a",diffuse:"vec3(1.0)"}}}),translucent:!0,aboveGround:!0})}),this._nativeObjCesium.geometryInstances=new Cesium.GeometryInstance({geometry:new Cesium.EllipsoidGeometry({vertexFormat:Cesium.VertexFormat.POSITION_AND_ST,radii:this._viewer.scene.globe.ellipsoid.radii}),id:this._id}),this._nativeObjCesium.show=this._enable,this._viewer.scene.primitives.add(this._nativeObjCesium)}},{key:"addTo",value:function(e){return e?(this._viewer=e,this._createPrimitive(),this._state=Me.ADDED,this):this}}]),e}();const tc=function(){function e(t){if(n(this,e),!t)throw new Error("Viewer:必须传入三维球对象");this._comps={fog:new qs,rain:new Ks,snow:new Zs,cloud:new ec},this.install(t)}return s(e,[{key:"fog",get:function(){return this._comps.fog}},{key:"rain",get:function(){return this._comps.rain}},{key:"snow",get:function(){return this._comps.snow}},{key:"cloud",get:function(){return this._comps.cloud}},{key:"install",value:function(e){var t=this;Object.keys(this._comps).forEach((function(i){t._comps[i].addTo(e)})),Object.defineProperty(e,"weather",{value:this,writable:!1})}}]),e}();const ic={};const nc=function(){function e(t){n(this,e),this._viewer=t,this._options={}}return s(e,[{key:"_bindEvent",value:function(){}},{key:"_unbindEvent",value:function(){}},{key:"start",value:function(){var e=this;if(this._viewer.clock.shouldAnimate=!0,this._unbindEvent(),this._options.duration)var t=setTimeout((function(){e._unbindEvent(),e._options.callback&&e._options.callback.call(e._options.context||e),clearTimeout(t)}),1e3*Number(this._options.duration));return this._bindEvent(),this}},{key:"stop",value:function(){return this._unbindEvent(),this}}]),e}();function rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var oc=function(e){u(i,e);var t=rc(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,e))._options=o,r}return s(i,[{key:"type",get:function(){return ic.GLOBE_ROTATE}},{key:"_icrf",value:function(e,t){if(e.mode!==Cesium.SceneMode.SCENE3D)return!0;var i=Cesium.Transforms.computeIcrfToFixedMatrix(t);if(i){var n=this._viewer.camera,r=Cesium.Cartesian3.clone(n.position),o=Cesium.Matrix4.fromRotationTranslation(i);n.lookAtTransform(o,r)}}},{key:"_bindEvent",value:function(){this._viewer.clock.multiplier=this._options.speed||12e3,this._viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this._viewer.scene.postUpdate.addEventListener(this._icrf,this)}},{key:"_unbindEvent",value:function(){this._viewer.clock.multiplier=1,this._viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this._viewer.scene.postUpdate.removeEventListener(this._icrf,this)}}]),i}(nc);ic.GLOBE_ROTATE="globe_rotate";const ac=oc;function sc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const cc=function(e){u(i,e);var t=sc(i);function i(){var e;return n(this,i),(e=t.call(this,se))._registerEvent(),e}return s(i)}(le);function lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var uc=function(e){u(i,e);var t=lc(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,e))._routeStops=o.routeStops,r._loop=o.loop||!1,r._routeStops?(r._routeStops=r._routeStops.map((function(e){return e.position=Ne.parsePosition(e.position),e})),r._currentIndex=0,r._timer=void 0,r._flyEvent=new cc,r):(console.error("未定义路线!"),h(r))}return s(i,[{key:"type",get:function(){return ic.FLYING}},{key:"_cameraFly",value:function(){var e=this,t=this,i=this._routeStops[this._currentIndex];this.raiseEvent(se.FLYING,i),i.position&&this._viewer.flyToPoint(i.position,i.heading,i.pitch,i.range,i.duration,(function(){e.raiseEvent(se.STOP_STAY,i),t._currentIndex++,t._currentIndex<=t._routeStops.length-1?(i=e._routeStops[t._currentIndex],t._timer=setTimeout((function(){t._cameraFly()}),1e3*i.stopStayTime)):e._loop&&(t._currentIndex=0,i=e._routeStops[t._currentIndex],t._timer=setTimeout((function(){t._cameraFly()}),1e3*t._routeStops[t._routeStops.length-1].stopStayTime))}))}},{key:"start",value:function(){return this._routeStops&&(this._currentIndex=0,this._cameraFly()),this}},{key:"pause",value:function(){return this._viewer.camera.cancelFlight(),this._timer&&clearTimeout(this._timer),this}},{key:"continueFly",value:function(){return this._routeStops&&this._cameraFly(),this}},{key:"addEventListener",value:function(e,t,i){return this._flyEvent.addEventListener(e,t,i||this),this}},{key:"removeEventListener",value:function(e,t,i){return this._flyEvent.removeEventListener(e,t,i||this),this}},{key:"raiseEvent",value:function(e,t){return this._flyEvent.raiseEvent(e,t),this}}]),i}(nc);ic.FlyManager="FlyManager";const dc=uc;const hc=function(){function e(t){n(this,e),this._viewer=t,this._enable=!1,this._moveRate=100,this._rotateRate=.01,this._flags={moveForward:!1,moveBackward:!1,moveUp:!1,moveDown:!1,moveLeft:!1,moveRight:!1,turnLeft:!1,turnRight:!1}}return s(e,[{key:"enable",get:function(){return this._enable},set:function(e){this._enable!==e&&this._viewer.scene.mode===Cesium.SceneMode.SCENE3D&&(this._enable=e,this._enable?this._bindEvent():this._unbindEvent())}},{key:"moveRate",get:function(){return this._moveRate},set:function(e){this._moveRate=e}},{key:"rotateRate",get:function(){return this._rotateRate},set:function(e){this._rotateRate=e}},{key:"_bindEvent",value:function(){var e=this._viewer.scene.canvas;e.setAttribute("tabindex","0"),e.addEventListener("click",this._onClick.bind(this),!1),this._viewer.clock.onTick.addEventListener(this._onTick,this),document.addEventListener("keydown",this._onKeydown.bind(this),!1),document.addEventListener("keyup",this._onKeyup.bind(this),!1)}},{key:"_unbindEvent",value:function(){var e=this;Object.keys(this._flags).forEach((function(t){e._flags[t]=!1}));var t=this._viewer.scene.canvas;t.removeAttribute("tabindex"),t.removeEventListener("click",this._onClick,!1),this._viewer.clock.onTick.removeEventListener(this._onTick,this),document.removeEventListener("keydown",this._onKeydown,!1),document.removeEventListener("keyup",this._onKeyup,!1)}},{key:"_getFlagForKeyCode",value:function(e){var t=void 0;switch(e.keyCode){case"W".charCodeAt(0):case 38:t=e.shiftKey?"moveUp":"moveForward";break;case"S".charCodeAt(0):case 40:t=e.shiftKey?"moveDown":"moveBackward";break;case"A".charCodeAt(0):case 37:t="moveLeft";break;case"D".charCodeAt(0):case 39:t="moveRight";break;case"Q".charCodeAt(0):t="turnLeft";break;case"E".charCodeAt(0):t="turnRight"}return t}},{key:"_onClick",value:function(){this._viewer.scene.canvas.focus()}},{key:"_onKeydown",value:function(e){var t=this._getFlagForKeyCode(e);t&&(this._flags[t]=!0)}},{key:"_onKeyup",value:function(e){var t=this;Object.keys(this._flags).forEach((function(e){t._flags[e]=!1}))}},{key:"_onTick",value:function(){var e=this._viewer.scene.camera,t=this._viewer.scene.globe.ellipsoid.cartesianToCartographic(e.position).height/this._moveRate,i=Cesium.Cartesian3.clone(e.position,new Cesium.Cartesian3);this._flags.moveForward&&e.moveForward(t),this._flags.moveBackward&&e.moveBackward(t),this._flags.moveUp&&e.moveUp(t),this._flags.moveDown&&e.moveDown(t),this._flags.moveLeft&&e.moveLeft(t),this._flags.moveRight&&e.moveRight(t),this._flags.turnLeft&&e.rotate(i,-this._rotateRate),this._flags.turnRight&&e.rotate(i,this._rotateRate)}}]),e}();const pc=function(){function e(t){n(this,e),this._viewer=t,this._viewOption={},this._cache={},this._activedPath=void 0}return s(e,[{key:"_onPostRender",value:function(){if(!this._activedPath)return!1;this._activedPath.pathEvent&&this._activedPath.pathEvent.raiseEvent(oe.POST_RENDER,{viewer:this._viewer,viewOption:this._viewOption})}},{key:"addPath",value:function(e){return e&&!this._cache.hasOwnProperty(e.pathId)&&(e.pathEvent.raiseEvent(oe.ADD),this._cache[e.pathId]=e),this}},{key:"addPaths",value:function(e){var t=this;return Array.isArray(e)&&e.forEach((function(e){t.addPath(e)})),this}},{key:"removePath",value:function(e){return e&&this._cache.hasOwnProperty(e.pathId)&&(delete this._cache[e.pathId],e.pathEvent.raiseEvent(oe.REMOVE)),this}},{key:"getPath",value:function(e){var t=this.getPaths().filter((function(t){return t.id===e}));return t&&t.length?t[0]:void 0}},{key:"getPaths",value:function(){var e=this,t=[];return Object.keys(this._cache).forEach((function(i){t.push(e._cache[i])})),t}},{key:"start",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&(null==e?void 0:e.pathId)!==(null===(t=this._activedPath)||void 0===t?void 0:t.pathId)&&this._cache.hasOwnProperty(null==e?void 0:e.pathId)?(this._viewOption=i,this._activedPath&&this.stop(),this._activedPath=e,this._activedPath.pathEvent&&this._activedPath.pathEvent.raiseEvent(oe.RESET_TIME_LINE),this._viewer.addEventListener(ee.POST_RENDER,this._onPostRender,this),this):this}},{key:"stop",value:function(){return this._activedPath&&(this._activedPath.actived=!1),this._activedPath=void 0,this._viewer.removeEventListener(ee.POST_RENDER,this._onPostRender,this),this._viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this}},{key:"clear",value:function(){return this._cache={},this._activedPath&&(this._activedPath.actived=!1),this._activedPath=void 0,this._viewer.removeEventListener(ee.POST_RENDER,this._onPostRender,this),this._viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this}}]),e}();const fc=function(){function e(t,i,r){n(this,e),this._id=W.uuid(),this._bid=void 0,this._positions=Ne.parsePositions(t),this._duration=i||20,this._pathMode=r||"speed",this._timeLine=[],this._sampledPosition=void 0,this._actived=!1,this._endTime=Cesium.JulianDate.now(),this._pathEvent=new eo,this._pathEvent.addEventListener(oe.ADD,this._onAdd,this),this._pathEvent.addEventListener(oe.REMOVE,this._onRemove,this),this._pathEvent.addEventListener(oe.POST_RENDER,this._onPostRender,this),this._pathEvent.addEventListener(oe.RESET_TIME_LINE,this._resetTimeLine,this),this._state=Me.INITIALIZED}return s(e,[{key:"pathId",get:function(){return this._id}},{key:"id",get:function(){return this._bid},set:function(e){this._bid=e}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e)}},{key:"duration",get:function(){return this._duration},set:function(e){this._duration=e}},{key:"pathMode",get:function(){return this._pathMode},set:function(e){this._pathMode=e}},{key:"pathEvent",get:function(){return this._pathEvent}},{key:"actived",get:function(){return this._actived},set:function(e){this._actived=e}},{key:"state",get:function(){return this._state}},{key:"_onAdd",value:function(){this._state=Me.ADDED}},{key:"_onRemove",value:function(){this._state=Me.REMOVED}},{key:"_onPostRender",value:function(e){var t=e.viewer,i=e.viewOption;if(!this.actived)return!1;var n=Cesium.JulianDate.now();if(Cesium.JulianDate.lessThan(n,this._endTime)&&this._sampledPosition){var r=this._sampledPosition.getValue(n),o=this._sampledPosition.getValue(Cesium.JulianDate.addSeconds(n,.001,new Cesium.JulianDate));r&&o&&t.camera.lookAt(r,new Cesium.HeadingPitchRange(qe(r,o),Cesium.Math.toRadians((null==i?void 0:i.pitch)||-20),(null==i?void 0:i.height)||2e3))}else t.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this._actived=!1,this._pathEvent.raiseEvent(oe.END,this._positions[this._positions.length-1])}},{key:"_resetTimeLine",value:function(){if(!this._positions||!this._positions.length)return!1;var e=Cesium.JulianDate.now(),t=0,i=[];if("speed"===this._pathMode){var n=We(this._positions)/this._duration;i=this._positions.map((function(i,r,o){return 0!==r&&(t+=We([o[r-1],i])/n),Cesium.JulianDate.addSeconds(e,t,new Cesium.JulianDate)}))}else{var r=this._positions.length,o=(this._duration-this._duration%r)/r;i=this._positions.map((function(t,i){return Cesium.JulianDate.addSeconds(e,i*o,new Cesium.JulianDate)}))}this._sampledPosition=new Cesium.SampledPositionProperty,this._sampledPosition.addSamples(i,_e.transformWGS84ArrayToCartesianArray(this._positions)),this._sampledPosition.forwardExtrapolationType=Cesium.ExtrapolationType.HOLD,this._sampledPosition.setInterpolationOptions({interpolationDegree:2,interpolationAlgorithm:Cesium.HermitePolynomialApproximation}),this._endTime=i[i.length-1],this._actived=!0}}]),e}();function mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var gc=function(e){u(i,e);var t=mc(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this))._pointerEvents=r.pointerEvents,e._show=!0,e._threejsContainer=void 0,e._threeCanvas=void 0,e._animateFrame=void 0,e.renderer=void 0,e.camera=void 0,e.scene=void 0,e}return s(i,[{key:"show",get:function(){return this._show},set:function(e){this._threejsContainer.style.visibility=e?"visible":"hidden"}},{key:"_addedHook",value:function(){}},{key:"_onAdd",value:function(e){this._viewer=e,this.initThree(),this._initMouse(),this.renderThreeJS(),this._viewer.nativeObjCesium.useDefaultRenderLoop=!1;var t=this;this.indexa=0,function e(){t._animateFrame=window.requestAnimationFrame(e),t.update()}()}},{key:"_removedHook",value:function(){window.cancelAnimationFrame(this._animateFrame),delete this._animateFrame,this._viewer.nativeObjCesium.useDefaultRenderLoop=!0,this._threeCanvas&&(this._viewer.container.removeChild(this._threeCanvas),delete this._threeCanvas)}},{key:"_initMouse",value:function(){var e=this;this.controls=new window.OrbitControls(this.camera,this.renderer.domElement),console.log(this.controls),new Cesium.ScreenSpaceEventHandler(this._viewer.canvas).setInputAction((function(t){console.log("Cesium.ScreenSpaceEventType.LEFT_DOWN");e.getThreeClick(e._viewer,e,t.position)}),Cesium.ScreenSpaceEventType.LEFT_DOWN),this.renderer.domElement.addEventListener("click",(function(t){var i=e.renderer.domElement.getBoundingClientRect(),n=i.width,r=i.height,o=(i.top,i.left,t.offsetX/n*2-1),a=-t.offsetY/r*2+1,s=new THREE.Raycaster;s.setFromCamera(new THREE.Vector2(o,a),e.camera);var c=s.intersectObjects(e.scene.children);console.log("射线器返回的对象",c),c.length}))}},{key:"getThreeClick",value:function(e,t,i){var n=new THREE.Raycaster,r=new THREE.Vector2,o=e.scene.canvas.getBoundingClientRect(),a=t.renderer.domElement.getBoundingClientRect(),s=a.width,c=a.height,l=a.top,u=a.left,d=t.renderer.domElement.offsetLeft,h=t.renderer.domElement.offsetTop,p=i.x+o.x-u+d,f=i.y+o.y-l+h;r.x=p/s*2-1,r.y=-f/c*2+1;var m=t.scene.children;n.setFromCamera(r,t.camera);var g=n.intersectObjects(m);return console.log(g),!!g[0]}},{key:"initThree",value:function(){if(!THREE)throw new Error("请引入 three.js 库 ");var e=this._viewer.scene.canvas.clientWidth,t=this._viewer.scene.canvas.clientHeight,i=j.create("canvas","anov-gis-threejs",document.body);i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.width=e+"px",i.style.height=t+"px",i.style.pointerEvents=this._pointerEvents?"auto":"none",this._threeCanvas=i;var n=e/t;this.renderer=new THREE.WebGLRenderer({canvas:i,alpha:!0,logarithmicDepthBuffer:!0,antialias:!0}),this.camera=new THREE.PerspectiveCamera(45,n,1,1e7),this.scene=new THREE.Scene}},{key:"update",value:function(){this.renderCesium(),this.renderThreeJS(),this.indexa++}},{key:"renderCesium",value:function(){this._viewer.nativeObjCesium.render()}},{key:"renderThreeJS",value:function(){this.camera.matrixAutoUpdate=!1;var e=this._viewer.nativeObjCesium.camera.viewMatrix,t=this._viewer.nativeObjCesium.camera.inverseViewMatrix;console.log("cvm",e),console.log("civm",t),console.log("this.camera",this.camera),this.camera.lookAt(new THREE.Vector3(0,0,0)),this.camera.matrixWorld.set(t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15]),this.camera.matrixWorldInverse.set(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]),console.log("this.camera",this.camera),console.log(this._viewer.nativeObjCesium.camera),this.renderer.setPixelRatio(window.devicePixelRatio);var i=this._viewer.nativeObjCesium.scene.canvas.clientWidth,n=this._viewer.nativeObjCesium.scene.canvas.clientHeight,r=this.renderer.domElement;(r.width!==i||r.height!==n)&&(this.resize(),this.renderer.setSize(i,n,!1)),this.camera.aspect=i/n,this.camera.fov=Cesium.Math.toDegrees(this._viewer.nativeObjCesium.camera.frustum.fovy),this.camera.updateProjectionMatrix(),this.renderer.render(this.scene,this.camera)}},{key:"resize",value:function(){if(this._threeCanvas){var e=this._viewer.nativeObjCesium.scene.canvas.clientWidth,t=this._viewer.nativeObjCesium.scene.canvas.clientHeight,i=this._threeCanvas;i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.width=e+"px",i.style.height=t+"px"}}}]),i}(Ki);const _c=gc},506:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=["version","accessToken","baseUrl","author","home_page","init","ready","use","mixin","Namespace","Initialized"],r={version:"1.4.2",accessToken:"",baseUrl:"/anov-gis-sdk/resources/",author:"zhanghf1309@chinaunicom.cn",home_page:"http://172.16.222.31:8866",Namespace:{},Initialized:!1};r.setBaseUrl=function(e){e&&(r.baseUrl=e,o&&o.buildModuleUrl.setBaseUrl(r.baseUrl))},r.mixin=function(e){for(var t in e)n.indexOf(t)<0&&(r[t]=e[t]);return this};var o=i(927);window.Cesium=o,r.mixin(i(480)),r.CopyRight._setContent(r),r.initEnvironment=function(){(o.buildModuleUrl.setBaseUrl(r.baseUrl),window.location.origin.startsWith("http")||self&&self!=top&&window.parent&&window.parent.location.origin.startsWith("http")&&r.baseUrl.indexOf("/anov-gis-sdk")>-1&&r.setBaseUrl(window.parent.location.origin+"/anov-gis-sdk/resources/"),self&&self!=top)&&(-1===function(){var e=null;if(parent!==window)try{e=parent.location.href}catch(t){e=document.referrer}return e}().indexOf(location.origin)||window.parent&&window.parent.location.pathname&&window.parent.location.pathname.startsWith("/anov-gis-sdk/")&&r.baseUrl.indexOf("/anov-gis-sdk")>-1&&r.setBaseUrl(window.parent.location.origin+"/anov-gis-sdk/anov-gis-sdk/resources/"));r.mixin(i(480)),Object.keys(r.Cesium_PART).forEach((function(e){r[e]=r.Cesium_PART[e]}))},r.ready=function(e){};const a=r},326:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=326,e.exports=t},486:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st ;\r\n vec2 center = vec2(0.5);\r\n float time = fract(czm_frameNumber * speed / 1000.0);\r\n float r = 0.5 + sin(time) / 3.0;\r\n float dis = distance(st, center);\r\n float a = 0.0;\r\n if(dis < r) {\r\n a = 1.0 - smoothstep(0.0, r, dis);\r\n }\r\n material.alpha = pow(a,10.0) ;\r\n material.diffuse = color.rgb * a * 3.0;\r\n return material;\r\n}\r\n"},724:e=>{e.exports="czm_material czm_getMaterial(czm_materialInput materialInput)\r\n{\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n vec4 colorImage = texture2D(image, vec2(fract(st.t - time), st.t));\r\n vec4 fragColor;\r\n fragColor.rgb = color.rgb / 1.0;\r\n fragColor = czm_gammaCorrect(fragColor);\r\n material.alpha = colorImage.a * color.a;\r\n material.diffuse = color.rgb;\r\n material.emission = fragColor.rgb;\r\n return material;\r\n}"},162:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\nuniform float percent;\r\nuniform float gradient;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n float t =fract(czm_frameNumber * speed / 1000.0);\r\n t *= (1.0 + percent);\r\n float alpha = smoothstep(t- percent, t, st.s) * step(-t, -st.s);\r\n alpha += gradient;\r\n material.diffuse = color.rgb;\r\n material.alpha = alpha;\r\n return material;\r\n}\r\n"},885:e=>{e.exports="\r\nuniform vec4 color;\r\nuniform float glowPower;\r\nuniform float taperPower;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput)\r\n{\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n\r\n vec2 st = materialInput.st;\r\n float glow = glowPower / abs(st.t - 0.5) - (glowPower / 0.5);\r\n\r\n if (taperPower <= 0.99999) {\r\n glow *= min(1.0, taperPower / (0.5 - st.s * 0.5) - (taperPower / 0.5));\r\n }\r\n\r\n vec4 fragColor;\r\n fragColor.rgb = max(vec3(glow - 1.0 + color.rgb), color.rgb);\r\n fragColor.a = clamp(0.0, 1.0, glow) * color.a;\r\n fragColor = czm_gammaCorrect(fragColor);\r\n\r\n material.emission = fragColor.rgb;\r\n material.alpha = fragColor.a;\r\n\r\n return material;\r\n}"},450:e=>{e.exports="czm_material czm_getMaterial(czm_materialInput materialInput)\r\n{\r\nczm_material material = czm_getDefaultMaterial(materialInput);\r\nvec2 st = materialInput.st;\r\nvec4 colorImage = texture2D(image, vec2(fract(st.s - time), st.t));\r\nmaterial.alpha = colorImage.a;\r\nmaterial.diffuse = colorImage.rgb * 1.5 ;\r\nreturn material;\r\n}"},529:e=>{e.exports="uniform sampler2D image;\r\nuniform float speed;\r\nuniform vec4 color;\r\nuniform vec2 repeat;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = repeat * materialInput.st;\r\n float time = fract(czm_frameNumber * speed / 1000.0);\r\n vec4 colorImage = texture2D(image, vec2(fract(st.s - time), st.t));\r\n if(color.a == 0.0){\r\n if(colorImage.rgb == vec3(1.0) || colorImage.rgb == vec3(0.0)){\r\n discard;\r\n }\r\n material.alpha = colorImage.a;\r\n material.diffuse = colorImage.rgb;\r\n }else{\r\n material.alpha = colorImage.a * color.a;\r\n material.diffuse = max(color.rgb * material.alpha * 3.0, color.rgb);\r\n }\r\n return material;\r\n}\r\n"},139:e=>{e.exports="uniform sampler2D image;\r\nuniform vec4 color;\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n vec4 colorImage = texture2D(image,st);\r\n vec3 fragColor = color.rgb;\r\n material.alpha = colorImage.a * color.a * 3.;\r\n material.diffuse = max(fragColor.rgb + colorImage.rgb , fragColor.rgb);\r\n return material;\r\n}\r\n\r\n"},852:e=>{e.exports="uniform sampler2D image;\r\nuniform vec4 color;\r\nuniform float speed;\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material=czm_getDefaultMaterial(materialInput);\r\n vec2 st=materialInput.st;\r\n float time=fract(czm_frameNumber*speed/1000.);\r\n vec4 colorImage=texture2D(image,st);\r\n vec3 fragColor=color.rgb;\r\n if(st.t>.36&&st.t<.64){\r\n fragColor=vec3(1.0);\r\n }\r\n if(color.a==0.){\r\n material.alpha=colorImage.a*2.*fract(st.s-time);\r\n material.diffuse=colorImage.rgb;\r\n }else{\r\n material.alpha = colorImage.a * color.a * 2.0 * smoothstep(.6,1., fract(st.s - time));\r\n // material.alpha=mix(color.a,colorImage.a,.3)*2.*smoothstep(.3,1.,fract(st.s-time));\r\n material.diffuse=max(fragColor.rgb*material.alpha,fragColor.rgb);\r\n }\r\n return material;\r\n}\r\n"},601:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n float time = fract(czm_frameNumber * speed / 1000.0);\r\n material.diffuse = color.rgb;\r\n material.alpha = color.a * fract(st.s-time);\r\n return material;\r\n}"},750:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\nuniform float percent;\r\nuniform float gradient; \r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n float t =fract(czm_frameNumber * speed / 1000.0);\r\n t *= (1.0 + percent);\r\n float alpha = smoothstep(t- percent, t, st.s) * step(-t, -st.s);\r\n alpha += gradient;\r\n material.diffuse = color.rgb;\r\n material.alpha = alpha;\r\n return material;\r\n}"},586:e=>{e.exports="czm_material czm_getMaterial(czm_materialInput materialInput) {\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n material.diffuse = 1.5 * color.rgb;\r\n vec2 st = materialInput.st;\r\n vec3 str = materialInput.str;\r\n float dis = distance(st, vec2(0.5, 0.5));\r\n float per = fract(time);\r\n if (abs(str.z) > 0.001) {\r\n discard;\r\n }\r\n if (dis > 0.5) {\r\n discard;\r\n } else {\r\n float perDis = 0.5 / count;\r\n float disNum;\r\n float bl = .0;\r\n for (int i = 0; i <= 9; i++) {\r\n if (float(i) <= count) {\r\n disNum = perDis *float(i) - dis + per / count;\r\n if (disNum > 0.0) {\r\n if (disNum < perDis) {\r\n bl = 1.0 - disNum / perDis;\r\n } else if(disNum - perDis < perDis) {\r\n bl = 1.0 - abs(1.0 - disNum / perDis);\r\n }\r\n material.alpha = pow(bl, gradient);\r\n }\r\n }\r\n }\r\n }\r\n return material;\r\n}"},797:e=>{e.exports="varying vec2 v_textureCoordinates;\r\nuniform sampler2D colorTexture;\r\nuniform sampler2D depthTexture;\r\nuniform vec4 fogByDistance;\r\nuniform vec4 fogColor;\r\n\r\n\r\nfloat getDistance(sampler2D depthTexture, vec2 texCoords){\r\n float depth = czm_unpackDepth(texture2D(depthTexture, texCoords));\r\n if (depth == 0.0) {\r\n return czm_infinity;\r\n }\r\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, depth);\r\n return -eyeCoordinate.z / eyeCoordinate.w;\r\n}\r\n\r\n\r\nfloat interpolateByDistance(vec4 nearFarScalar, float distance){\r\n float startDistance = nearFarScalar.x;\r\n float startValue = nearFarScalar.y;\r\n float endDistance = nearFarScalar.z;\r\n float endValue = nearFarScalar.w;\r\n float t = clamp((distance - startDistance) / (endDistance - startDistance), 0.0, 1.0);\r\n return mix(startValue, endValue, t);\r\n}\r\n\r\nvec4 alphaBlend(vec4 sourceColor, vec4 destinationColor){\r\n return sourceColor * vec4(sourceColor.aaa, 1.0) + destinationColor * (1.0 - sourceColor.a);\r\n}\r\n\r\nvoid main(void){\r\n float distance = getDistance(depthTexture, v_textureCoordinates);\r\n vec4 sceneColor = texture2D(colorTexture, v_textureCoordinates);\r\n float blendAmount = interpolateByDistance(fogByDistance, distance);\r\n vec4 finalFogColor = vec4(fogColor.rgb, fogColor.a * blendAmount);\r\n gl_FragColor = alphaBlend(finalFogColor, sceneColor);\r\n}\r\n"},802:e=>{e.exports="varying vec2 v_textureCoordinates;\r\nuniform sampler2D colorTexture;\r\nuniform float speed;\r\nuniform float mixNum;\r\n\r\nfloat hash(float x){\r\n return fract(sin(x*23.3)*13.13);\r\n}\r\n\r\nvoid main(){\r\n float time = czm_frameNumber * speed / 1000.0;\r\n vec2 resolution = czm_viewport.zw;\r\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\r\n vec3 c=vec3(.1,.2,.3);\r\n float a=-.3;\r\n float si=sin(a),co=cos(a);\r\n uv*=mat2(co,-si,si,co);\r\n uv*=length(uv+vec2(0.,4.9))*.3+1.;\r\n float v=1.-sin(hash(floor(uv.x*100.))*2.);\r\n float b=clamp(abs(sin(20.*time*v+uv.y*(5./(2.+v))))-.95,0.,1.)*10.;\r\n c*=v*b;\r\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c,1), mixNum);\r\n}\r\n"},87:e=>{e.exports="varying vec2 v_textureCoordinates;\r\nuniform sampler2D colorTexture;\r\nuniform float speed;\r\n\r\nfloat snow(vec2 uv,float scale){\r\n float time = czm_frameNumber * speed / 1000.0 ;\r\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));\r\n if(w<.1)return 0.;\r\n uv+=time/scale;\r\n uv.y+=time*2./scale;\r\n uv.x+=sin(uv.y+time*.5)/scale;\r\n uv*=scale;\r\n vec2 s=floor(uv),f=fract(uv),p;\r\n float k=3.,d;\r\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7.,3.,6.,5.))*5.))-f;\r\n d=length(p);\r\n k=min(d,k);\r\n k=smoothstep(0.,k,sin(f.x+f.y)*0.01);\r\n return k*w;\r\n}\r\n\r\nvoid main(){\r\n vec2 resolution = czm_viewport.zw;\r\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\r\n vec3 finalColor=vec3(0.);\r\n float c = 0.0;\r\n c+=snow(uv,10.);\r\n c+=snow(uv,8.);\r\n c+=snow(uv,6.);\r\n c+=snow(uv,5.);\r\n finalColor=(vec3(c));\r\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.3);\r\n}\r\n"},545:e=>{e.exports=n,e.exports.parse=n,e.exports.stringify=function e(t){"Feature"===t.type&&(t=t.geometry);function i(e){return e.join(" ")}function n(e){return e.map(i).join(", ")}function r(e){return e.map(n).map(o).join(", ")}function o(e){return"("+e+")"}switch(t.type){case"Point":return"POINT ("+i(t.coordinates)+")";case"LineString":return"LINESTRING ("+n(t.coordinates)+")";case"Polygon":return"POLYGON ("+r(t.coordinates)+")";case"MultiPoint":return"MULTIPOINT ("+n(t.coordinates)+")";case"MultiPolygon":return"MULTIPOLYGON ("+(t.coordinates.map(r).map(o).join(", ")+")");case"MultiLineString":return"MULTILINESTRING ("+r(t.coordinates)+")";case"GeometryCollection":return"GEOMETRYCOLLECTION ("+t.geometries.map(e).join(", ")+")";default:throw new Error("stringify requires a valid GeoJSON Feature or geometry object as input")}};var t=/[-+]?([0-9]*\.[0-9]+|[0-9]+)([eE][-+]?[0-9]+)?/,i=new RegExp("^"+t.source+"(\\s"+t.source+"){1,}");function n(e){var t,n=e.split(";"),r=n.pop(),o=(n.shift()||"").split("=").pop(),a=0;function s(e){var t=r.substring(a).match(e);return t?(a+=t[0].length,t[0]):null}function c(){s(/^\s*/)}function l(){c();for(var e,t=0,n=[],r=[n],o=n;e=s(/^(\()/)||s(/^(\))/)||s(/^(,)/)||s(i);){if("("===e)r.push(o),o=[],r[r.length-1].push(o),t++;else if(")"===e){if(0===o.length)return null;if(!(o=r.pop()))return null;if(0===--t)break}else if(","===e)o=[],r[r.length-1].push(o);else{if(e.split(/\s/g).some(isNaN))return null;Array.prototype.push.apply(o,e.split(/\s/g).map(parseFloat))}c()}return 0!==t?null:n}function u(){for(var e,t,n=[];t=s(i)||s(/^(,)/);)","===t?(n.push(e),e=[]):t.split(/\s/g).some(isNaN)||(e||(e=[]),Array.prototype.push.apply(e,t.split(/\s/g).map(parseFloat))),c();return e?(n.push(e),n.length?n:null):null}function d(){return function(){if(!s(/^(point(\sz)?)/i))return null;if(c(),!s(/^(\()/))return null;var e=u();return e?(c(),s(/^(\))/)?{type:"Point",coordinates:e[0]}:null):null}()||function(){if(!s(/^(linestring(\sz)?)/i))return null;if(c(),!s(/^(\()/))return null;var e=u();return e&&s(/^(\))/)?{type:"LineString",coordinates:e}:null}()||function(){if(!s(/^(polygon(\sz)?)/i))return null;c();var e=l();return e?{type:"Polygon",coordinates:e}:null}()||function(){if(!s(/^(multipoint)/i))return null;c();var e=r.substring(r.indexOf("(")+1,r.length-1).replace(/\(/g,"").replace(/\)/g,"");r="MULTIPOINT ("+e+")";var t=l();return t?(c(),{type:"MultiPoint",coordinates:t}):null}()||function(){if(!s(/^(multilinestring)/i))return null;c();var e=l();return e?(c(),{type:"MultiLineString",coordinates:e}):null}()||function(){if(!s(/^(multipolygon)/i))return null;c();var e=l();return e?{type:"MultiPolygon",coordinates:e}:null}()||function(){var e,t=[];if(!s(/^(geometrycollection)/i))return null;if(c(),!s(/^(\()/))return null;for(;e=d();)t.push(e),c(),s(/^(,)/),c();return s(/^(\))/)?{type:"GeometryCollection",geometries:t}:null}()}return(t=d())&&o.match(/\d+/)&&(t.crs={type:"name",properties:{name:"urn:ogc:def:crs:EPSG::"+o}}),t}},527:()=>{},261:()=>{},361:()=>{},936:()=>{},61:(e,t,i)=>{var n=i(698).default;function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,i){return e[t]=i}}function h(e,t,i,n){var r=t&&t.prototype instanceof m?t:m,o=Object.create(r.prototype),s=new D(n||[]);return a(o,"_invoke",{value:b(e,i,s)}),o}function p(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f={};function m(){}function g(){}function _(){}var y={};d(y,c,(function(){return this}));var C=Object.getPrototypeOf,v=C&&C(C(w([])));v&&v!==i&&o.call(v,c)&&(y=v);var T=_.prototype=m.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function i(r,a,s,c){var l=p(e[r],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,c)}),(function(e){i("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return i("throw",e,s,c)}))}c(l.arg)}var r;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,r){i(e,n,t,r)}))}return r=r?r.then(o,o):o()}})}function b(e,t,i){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return M()}for(i.method=r,i.arg=o;;){var a=i.delegate;if(a){var s=E(a,i);if(s){if(s===f)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var c=p(e,t,i);if("normal"===c.type){if(n=i.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(n="completed",i.method="throw",i.arg=c.arg)}}}function E(e,t){var i=t.method,n=e.iterator[i];if(void 0===n)return t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),f;var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function w(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i<e.length;)if(o.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:M}}function M(){return{value:void 0,done:!0}}return g.prototype=_,a(T,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=d(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,u,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},S(A.prototype),d(A.prototype,l,(function(){return this})),t.AsyncIterator=A,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new A(h(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(T),d(T,u,"Generator"),d(T,c,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=w,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,n){return a.type="throw",a.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(s&&c){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),P(i),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;P(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:w(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},698:e=>{function t(i){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:(e,t,i)=>{var n=i(61)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},927:function(__unused_webpack_module,exports,__webpack_require__){var t;t=function(exports){"use strict";function defined(e){return null!=e}function DeveloperError(e){let t;this.name="DeveloperError",this.message=e;try{throw new Error}catch(e){t=e.stack}this.stack=t}defined(Object.create)&&(DeveloperError.prototype=Object.create(Error.prototype),DeveloperError.prototype.constructor=DeveloperError),DeveloperError.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return defined(this.stack)&&(e+=`\n${this.stack.toString()}`),e},DeveloperError.throwInstantiationError=function(){throw new DeveloperError("This function defines an interface and should not be called directly.")};const Check={};function getUndefinedErrorMessage(e){return`${e} is required, actual value was undefined`}function getFailedTypeErrorMessage(e,t,i){return`Expected ${i} to be typeof ${t}, actual typeof was ${e}`}function defaultValue(e,t){return null!=e?e:t}Check.typeOf={},Check.defined=function(e,t){if(!defined(t))throw new DeveloperError(getUndefinedErrorMessage(e))},Check.typeOf.func=function(e,t){if("function"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"function",e))},Check.typeOf.string=function(e,t){if("string"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"string",e))},Check.typeOf.number=function(e,t){if("number"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"number",e))},Check.typeOf.number.lessThan=function(e,t,i){if(Check.typeOf.number(e,t),t>=i)throw new DeveloperError(`Expected ${e} to be less than ${i}, actual value was ${t}`)},Check.typeOf.number.lessThanOrEquals=function(e,t,i){if(Check.typeOf.number(e,t),t>i)throw new DeveloperError(`Expected ${e} to be less than or equal to ${i}, actual value was ${t}`)},Check.typeOf.number.greaterThan=function(e,t,i){if(Check.typeOf.number(e,t),t<=i)throw new DeveloperError(`Expected ${e} to be greater than ${i}, actual value was ${t}`)},Check.typeOf.number.greaterThanOrEquals=function(e,t,i){if(Check.typeOf.number(e,t),t<i)throw new DeveloperError(`Expected ${e} to be greater than or equal to ${i}, actual value was ${t}`)},Check.typeOf.object=function(e,t){if("object"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"object",e))},Check.typeOf.bool=function(e,t){if("boolean"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"boolean",e))},Check.typeOf.bigint=function(e,t){if("bigint"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"bigint",e))},Check.typeOf.number.equals=function(e,t,i,n){if(Check.typeOf.number(e,i),Check.typeOf.number(t,n),i!==n)throw new DeveloperError(`${e} must be equal to ${t}, the actual values are ${i} and ${n}`)},defaultValue.EMPTY_OBJECT=Object.freeze({});var MersenneTwister=function(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};MersenneTwister.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},MersenneTwister.prototype.init_by_array=function(e,t){var i,n,r;for(this.init_seed(19650218),i=1,n=0,r=this.N>t?this.N:t;r;r--){var o=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+e[n]+n,this.mt[i]>>>=0,n++,++i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1),n>=t&&(n=0)}for(r=this.N-1;r;r--)o=this.mt[i-1]^this.mt[i-1]>>>30,this.mt[i]=(this.mt[i]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-i,this.mt[i]>>>=0,++i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1);this.mt[0]=2147483648},MersenneTwister.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_seed(5489),i=0;i<this.N-this.M;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+this.M]^e>>>1^t[1&e];for(;i<this.N-1;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},MersenneTwister.prototype.random_int31=function(){return this.random_int()>>>1},MersenneTwister.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},MersenneTwister.prototype.random=function(){return this.random_int()*(1/4294967296)},MersenneTwister.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},MersenneTwister.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)};var mersenneTwister=MersenneTwister;const CesiumMath={EPSILON1:.1,EPSILON2:.01,EPSILON3:.001,EPSILON4:1e-4,EPSILON5:1e-5,EPSILON6:1e-6,EPSILON7:1e-7,EPSILON8:1e-8,EPSILON9:1e-9,EPSILON10:1e-10,EPSILON11:1e-11,EPSILON12:1e-12,EPSILON13:1e-13,EPSILON14:1e-14,EPSILON15:1e-15,EPSILON16:1e-16,EPSILON17:1e-17,EPSILON18:1e-18,EPSILON19:1e-19,EPSILON20:1e-20,EPSILON21:1e-21,GRAVITATIONALPARAMETER:3986004418e5,SOLAR_RADIUS:6955e5,LUNAR_RADIUS:1737400,SIXTY_FOUR_KILOBYTES:65536,FOUR_GIGABYTES:4294967296};CesiumMath.sign=defaultValue(Math.sign,(function(e){return 0==(e=+e)||e!=e?e:e>0?1:-1})),CesiumMath.signNotZero=function(e){return e<0?-1:1},CesiumMath.toSNorm=function(e,t){return t=defaultValue(t,255),Math.round((.5*CesiumMath.clamp(e,-1,1)+.5)*t)},CesiumMath.fromSNorm=function(e,t){return t=defaultValue(t,255),CesiumMath.clamp(e,0,t)/t*2-1},CesiumMath.normalize=function(e,t,i){return 0===(i=Math.max(i-t,0))?0:CesiumMath.clamp((e-t)/i,0,1)},CesiumMath.sinh=defaultValue(Math.sinh,(function(e){return(Math.exp(e)-Math.exp(-e))/2})),CesiumMath.cosh=defaultValue(Math.cosh,(function(e){return(Math.exp(e)+Math.exp(-e))/2})),CesiumMath.lerp=function(e,t,i){return(1-i)*e+i*t},CesiumMath.PI=Math.PI,CesiumMath.ONE_OVER_PI=1/Math.PI,CesiumMath.PI_OVER_TWO=Math.PI/2,CesiumMath.PI_OVER_THREE=Math.PI/3,CesiumMath.PI_OVER_FOUR=Math.PI/4,CesiumMath.PI_OVER_SIX=Math.PI/6,CesiumMath.THREE_PI_OVER_TWO=3*Math.PI/2,CesiumMath.TWO_PI=2*Math.PI,CesiumMath.ONE_OVER_TWO_PI=1/(2*Math.PI),CesiumMath.RADIANS_PER_DEGREE=Math.PI/180,CesiumMath.DEGREES_PER_RADIAN=180/Math.PI,CesiumMath.RADIANS_PER_ARCSECOND=CesiumMath.RADIANS_PER_DEGREE/3600,CesiumMath.toRadians=function(e){return e*CesiumMath.RADIANS_PER_DEGREE},CesiumMath.toDegrees=function(e){return e*CesiumMath.DEGREES_PER_RADIAN},CesiumMath.convertLongitudeRange=function(e){const t=CesiumMath.TWO_PI,i=e-Math.floor(e/t)*t;return i<-Math.PI?i+t:i>=Math.PI?i-t:i},CesiumMath.clampToLatitudeRange=function(e){return CesiumMath.clamp(e,-1*CesiumMath.PI_OVER_TWO,CesiumMath.PI_OVER_TWO)},CesiumMath.negativePiToPi=function(e){return e>=-CesiumMath.PI&&e<=CesiumMath.PI?e:CesiumMath.zeroToTwoPi(e+CesiumMath.PI)-CesiumMath.PI},CesiumMath.zeroToTwoPi=function(e){if(e>=0&&e<=CesiumMath.TWO_PI)return e;const t=CesiumMath.mod(e,CesiumMath.TWO_PI);return Math.abs(t)<CesiumMath.EPSILON14&&Math.abs(e)>CesiumMath.EPSILON14?CesiumMath.TWO_PI:t},CesiumMath.mod=function(e,t){return CesiumMath.sign(e)===CesiumMath.sign(t)&&Math.abs(e)<Math.abs(t)?e:(e%t+t)%t},CesiumMath.equalsEpsilon=function(e,t,i,n){i=defaultValue(i,0),n=defaultValue(n,i);const r=Math.abs(e-t);return r<=n||r<=i*Math.max(Math.abs(e),Math.abs(t))},CesiumMath.lessThan=function(e,t,i){return e-t<-i},CesiumMath.lessThanOrEquals=function(e,t,i){return e-t<i},CesiumMath.greaterThan=function(e,t,i){return e-t>i},CesiumMath.greaterThanOrEquals=function(e,t,i){return e-t>-i};const factorials=[1];CesiumMath.factorial=function(e){const t=factorials.length;if(e>=t){let i=factorials[t-1];for(let n=t;n<=e;n++){const e=i*n;factorials.push(e),i=e}}return factorials[e]},CesiumMath.incrementWrap=function(e,t,i){return i=defaultValue(i,0),++e>t&&(e=i),e},CesiumMath.isPowerOfTwo=function(e){return 0!==e&&0==(e&e-1)},CesiumMath.nextPowerOfTwo=function(e){return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e},CesiumMath.previousPowerOfTwo=function(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,((e|=e>>32)>>>0)-(e>>>1)},CesiumMath.clamp=function(e,t,i){return e<t?t:e>i?i:e};let randomNumberGenerator$2=new mersenneTwister;function Cartesian3(e,t,i){this.x=defaultValue(e,0),this.y=defaultValue(t,0),this.z=defaultValue(i,0)}CesiumMath.setRandomNumberSeed=function(e){randomNumberGenerator$2=new mersenneTwister(e)},CesiumMath.nextRandomNumber=function(){return randomNumberGenerator$2.random()},CesiumMath.randomBetween=function(e,t){return CesiumMath.nextRandomNumber()*(t-e)+e},CesiumMath.acosClamped=function(e){return Math.acos(CesiumMath.clamp(e,-1,1))},CesiumMath.asinClamped=function(e){return Math.asin(CesiumMath.clamp(e,-1,1))},CesiumMath.chordLength=function(e,t){return 2*t*Math.sin(.5*e)},CesiumMath.logBase=function(e,t){return Math.log(e)/Math.log(t)},CesiumMath.cbrt=defaultValue(Math.cbrt,(function(e){const t=Math.pow(Math.abs(e),1/3);return e<0?-t:t})),CesiumMath.log2=defaultValue(Math.log2,(function(e){return Math.log(e)*Math.LOG2E})),CesiumMath.fog=function(e,t){const i=e*t;return 1-Math.exp(-i*i)},CesiumMath.fastApproximateAtan=function(e){return e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)},CesiumMath.fastApproximateAtan2=function(e,t){let i,n=Math.abs(e);i=Math.abs(t);const r=Math.max(n,i);i=Math.min(n,i);const o=i/r;return n=CesiumMath.fastApproximateAtan(o),n=Math.abs(t)>Math.abs(e)?CesiumMath.PI_OVER_TWO-n:n,n=e<0?CesiumMath.PI-n:n,n=t<0?-n:n,n},Cartesian3.fromSpherical=function(e,t){defined(t)||(t=new Cartesian3);const i=e.clock,n=e.cone,r=defaultValue(e.magnitude,1),o=r*Math.sin(n);return t.x=o*Math.cos(i),t.y=o*Math.sin(i),t.z=r*Math.cos(n),t},Cartesian3.fromElements=function(e,t,i,n){return defined(n)?(n.x=e,n.y=t,n.z=i,n):new Cartesian3(e,t,i)},Cartesian3.clone=function(e,t){if(defined(e))return defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new Cartesian3(e.x,e.y,e.z)},Cartesian3.fromCartesian4=Cartesian3.clone,Cartesian3.packedLength=3,Cartesian3.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e.x,t[i++]=e.y,t[i]=e.z,t},Cartesian3.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Cartesian3),i.x=e[t++],i.y=e[t++],i.z=e[t],i},Cartesian3.packArray=function(e,t){const i=e.length,n=3*i;defined(t)?(Array.isArray(t)||t.length===n)&&t.length!==n&&(t.length=n):t=new Array(n);for(let n=0;n<i;++n)Cartesian3.pack(e[n],t,3*n);return t},Cartesian3.unpackArray=function(e,t){const i=e.length;defined(t)?t.length=i/3:t=new Array(i/3);for(let n=0;n<i;n+=3){const i=n/3;t[i]=Cartesian3.unpack(e,n,t[i])}return t},Cartesian3.fromArray=Cartesian3.unpack,Cartesian3.maximumComponent=function(e){return Math.max(e.x,e.y,e.z)},Cartesian3.minimumComponent=function(e){return Math.min(e.x,e.y,e.z)},Cartesian3.minimumByComponent=function(e,t,i){return i.x=Math.min(e.x,t.x),i.y=Math.min(e.y,t.y),i.z=Math.min(e.z,t.z),i},Cartesian3.maximumByComponent=function(e,t,i){return i.x=Math.max(e.x,t.x),i.y=Math.max(e.y,t.y),i.z=Math.max(e.z,t.z),i},Cartesian3.clamp=function(e,t,i,n){const r=CesiumMath.clamp(e.x,t.x,i.x),o=CesiumMath.clamp(e.y,t.y,i.y),a=CesiumMath.clamp(e.z,t.z,i.z);return n.x=r,n.y=o,n.z=a,n},Cartesian3.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z},Cartesian3.magnitude=function(e){return Math.sqrt(Cartesian3.magnitudeSquared(e))};const distanceScratch$3=new Cartesian3;Cartesian3.distance=function(e,t){return Cartesian3.subtract(e,t,distanceScratch$3),Cartesian3.magnitude(distanceScratch$3)},Cartesian3.distanceSquared=function(e,t){return Cartesian3.subtract(e,t,distanceScratch$3),Cartesian3.magnitudeSquared(distanceScratch$3)},Cartesian3.normalize=function(e,t){const i=Cartesian3.magnitude(e);return t.x=e.x/i,t.y=e.y/i,t.z=e.z/i,t},Cartesian3.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z},Cartesian3.multiplyComponents=function(e,t,i){return i.x=e.x*t.x,i.y=e.y*t.y,i.z=e.z*t.z,i},Cartesian3.divideComponents=function(e,t,i){return i.x=e.x/t.x,i.y=e.y/t.y,i.z=e.z/t.z,i},Cartesian3.add=function(e,t,i){return i.x=e.x+t.x,i.y=e.y+t.y,i.z=e.z+t.z,i},Cartesian3.subtract=function(e,t,i){return i.x=e.x-t.x,i.y=e.y-t.y,i.z=e.z-t.z,i},Cartesian3.multiplyByScalar=function(e,t,i){return i.x=e.x*t,i.y=e.y*t,i.z=e.z*t,i},Cartesian3.divideByScalar=function(e,t,i){return i.x=e.x/t,i.y=e.y/t,i.z=e.z/t,i},Cartesian3.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t},Cartesian3.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t};const lerpScratch$3=new Cartesian3;Cartesian3.lerp=function(e,t,i,n){return Cartesian3.multiplyByScalar(t,i,lerpScratch$3),n=Cartesian3.multiplyByScalar(e,1-i,n),Cartesian3.add(lerpScratch$3,n,n)};const angleBetweenScratch$1=new Cartesian3,angleBetweenScratch2$1=new Cartesian3;Cartesian3.angleBetween=function(e,t){Cartesian3.normalize(e,angleBetweenScratch$1),Cartesian3.normalize(t,angleBetweenScratch2$1);const i=Cartesian3.dot(angleBetweenScratch$1,angleBetweenScratch2$1),n=Cartesian3.magnitude(Cartesian3.cross(angleBetweenScratch$1,angleBetweenScratch2$1,angleBetweenScratch$1));return Math.atan2(n,i)};const mostOrthogonalAxisScratch$2=new Cartesian3;Cartesian3.mostOrthogonalAxis=function(e,t){const i=Cartesian3.normalize(e,mostOrthogonalAxisScratch$2);return Cartesian3.abs(i,i),i.x<=i.y?i.x<=i.z?Cartesian3.clone(Cartesian3.UNIT_X,t):Cartesian3.clone(Cartesian3.UNIT_Z,t):i.y<=i.z?Cartesian3.clone(Cartesian3.UNIT_Y,t):Cartesian3.clone(Cartesian3.UNIT_Z,t)},Cartesian3.projectVector=function(e,t,i){const n=Cartesian3.dot(e,t)/Cartesian3.dot(t,t);return Cartesian3.multiplyByScalar(t,n,i)},Cartesian3.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z},Cartesian3.equalsArray=function(e,t,i){return e.x===t[i]&&e.y===t[i+1]&&e.z===t[i+2]},Cartesian3.equalsEpsilon=function(e,t,i,n){return e===t||defined(e)&&defined(t)&&CesiumMath.equalsEpsilon(e.x,t.x,i,n)&&CesiumMath.equalsEpsilon(e.y,t.y,i,n)&&CesiumMath.equalsEpsilon(e.z,t.z,i,n)},Cartesian3.cross=function(e,t,i){const n=e.x,r=e.y,o=e.z,a=t.x,s=t.y,c=t.z,l=r*c-o*s,u=o*a-n*c,d=n*s-r*a;return i.x=l,i.y=u,i.z=d,i},Cartesian3.midpoint=function(e,t,i){return i.x=.5*(e.x+t.x),i.y=.5*(e.y+t.y),i.z=.5*(e.z+t.z),i},Cartesian3.fromDegrees=function(e,t,i,n,r){return e=CesiumMath.toRadians(e),t=CesiumMath.toRadians(t),Cartesian3.fromRadians(e,t,i,n,r)};let scratchN=new Cartesian3,scratchK=new Cartesian3;const wgs84RadiiSquared=new Cartesian3(40680631590769,40680631590769,40408299984661.445);Cartesian3.fromRadians=function(e,t,i,n,r){i=defaultValue(i,0);const o=defined(n)?n.radiiSquared:wgs84RadiiSquared,a=Math.cos(t);scratchN.x=a*Math.cos(e),scratchN.y=a*Math.sin(e),scratchN.z=Math.sin(t),scratchN=Cartesian3.normalize(scratchN,scratchN),Cartesian3.multiplyComponents(o,scratchN,scratchK);const s=Math.sqrt(Cartesian3.dot(scratchN,scratchK));return scratchK=Cartesian3.divideByScalar(scratchK,s,scratchK),scratchN=Cartesian3.multiplyByScalar(scratchN,i,scratchN),defined(r)||(r=new Cartesian3),Cartesian3.add(scratchK,scratchN,r)},Cartesian3.fromDegreesArray=function(e,t,i){const n=e.length;defined(i)?i.length=n/2:i=new Array(n/2);for(let r=0;r<n;r+=2){const n=e[r],o=e[r+1],a=r/2;i[a]=Cartesian3.fromDegrees(n,o,0,t,i[a])}return i},Cartesian3.fromRadiansArray=function(e,t,i){const n=e.length;defined(i)?i.length=n/2:i=new Array(n/2);for(let r=0;r<n;r+=2){const n=e[r],o=e[r+1],a=r/2;i[a]=Cartesian3.fromRadians(n,o,0,t,i[a])}return i},Cartesian3.fromDegreesArrayHeights=function(e,t,i){const n=e.length;defined(i)?i.length=n/3:i=new Array(n/3);for(let r=0;r<n;r+=3){const n=e[r],o=e[r+1],a=e[r+2],s=r/3;i[s]=Cartesian3.fromDegrees(n,o,a,t,i[s])}return i},Cartesian3.fromRadiansArrayHeights=function(e,t,i){const n=e.length;defined(i)?i.length=n/3:i=new Array(n/3);for(let r=0;r<n;r+=3){const n=e[r],o=e[r+1],a=e[r+2],s=r/3;i[s]=Cartesian3.fromRadians(n,o,a,t,i[s])}return i},Cartesian3.ZERO=Object.freeze(new Cartesian3(0,0,0)),Cartesian3.ONE=Object.freeze(new Cartesian3(1,1,1)),Cartesian3.UNIT_X=Object.freeze(new Cartesian3(1,0,0)),Cartesian3.UNIT_Y=Object.freeze(new Cartesian3(0,1,0)),Cartesian3.UNIT_Z=Object.freeze(new Cartesian3(0,0,1)),Cartesian3.prototype.clone=function(e){return Cartesian3.clone(this,e)},Cartesian3.prototype.equals=function(e){return Cartesian3.equals(this,e)},Cartesian3.prototype.equalsEpsilon=function(e,t,i){return Cartesian3.equalsEpsilon(this,e,t,i)},Cartesian3.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z})`};const scaleToGeodeticSurfaceIntersection=new Cartesian3,scaleToGeodeticSurfaceGradient=new Cartesian3;function scaleToGeodeticSurface(e,t,i,n,r){const o=e.x,a=e.y,s=e.z,c=t.x,l=t.y,u=t.z,d=o*o*c*c,h=a*a*l*l,p=s*s*u*u,f=d+h+p,m=Math.sqrt(1/f),g=Cartesian3.multiplyByScalar(e,m,scaleToGeodeticSurfaceIntersection);if(f<n)return isFinite(m)?Cartesian3.clone(g,r):void 0;const _=i.x,y=i.y,C=i.z,v=scaleToGeodeticSurfaceGradient;v.x=g.x*_*2,v.y=g.y*y*2,v.z=g.z*C*2;let T,S,A,b,E,x,P,D,w,M,I,R=(1-m)*Cartesian3.magnitude(e)/(.5*Cartesian3.magnitude(v)),O=0;do{R-=O,A=1/(1+R*_),b=1/(1+R*y),E=1/(1+R*C),x=A*A,P=b*b,D=E*E,w=x*A,M=P*b,I=D*E,T=d*x+h*P+p*D-1,S=d*w*_+h*M*y+p*I*C,O=T/(-2*S)}while(Math.abs(T)>CesiumMath.EPSILON12);return defined(r)?(r.x=o*A,r.y=a*b,r.z=s*E,r):new Cartesian3(o*A,a*b,s*E)}function Cartographic(e,t,i){this.longitude=defaultValue(e,0),this.latitude=defaultValue(t,0),this.height=defaultValue(i,0)}Cartographic.fromRadians=function(e,t,i,n){return i=defaultValue(i,0),defined(n)?(n.longitude=e,n.latitude=t,n.height=i,n):new Cartographic(e,t,i)},Cartographic.fromDegrees=function(e,t,i,n){return e=CesiumMath.toRadians(e),t=CesiumMath.toRadians(t),Cartographic.fromRadians(e,t,i,n)};const cartesianToCartographicN$1=new Cartesian3,cartesianToCartographicP$1=new Cartesian3,cartesianToCartographicH$1=new Cartesian3,wgs84OneOverRadii=new Cartesian3(1/6378137,1/6378137,1/6356752.314245179),wgs84OneOverRadiiSquared=new Cartesian3(1/40680631590769,1/40680631590769,1/40408299984661.445),wgs84CenterToleranceSquared=CesiumMath.EPSILON1;function initialize$p(e,t,i,n){t=defaultValue(t,0),i=defaultValue(i,0),n=defaultValue(n,0),e._radii=new Cartesian3(t,i,n),e._radiiSquared=new Cartesian3(t*t,i*i,n*n),e._radiiToTheFourth=new Cartesian3(t*t*t*t,i*i*i*i,n*n*n*n),e._oneOverRadii=new Cartesian3(0===t?0:1/t,0===i?0:1/i,0===n?0:1/n),e._oneOverRadiiSquared=new Cartesian3(0===t?0:1/(t*t),0===i?0:1/(i*i),0===n?0:1/(n*n)),e._minimumRadius=Math.min(t,i,n),e._maximumRadius=Math.max(t,i,n),e._centerToleranceSquared=CesiumMath.EPSILON1,0!==e._radiiSquared.z&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function Ellipsoid(e,t,i){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,initialize$p(this,e,t,i)}Cartographic.fromCartesian=function(e,t,i){const n=defined(t)?t.oneOverRadii:wgs84OneOverRadii,r=defined(t)?t.oneOverRadiiSquared:wgs84OneOverRadiiSquared,o=scaleToGeodeticSurface(e,n,r,defined(t)?t._centerToleranceSquared:wgs84CenterToleranceSquared,cartesianToCartographicP$1);if(!defined(o))return;let a=Cartesian3.multiplyComponents(o,r,cartesianToCartographicN$1);a=Cartesian3.normalize(a,a);const s=Cartesian3.subtract(e,o,cartesianToCartographicH$1),c=Math.atan2(a.y,a.x),l=Math.asin(a.z),u=CesiumMath.sign(Cartesian3.dot(s,e))*Cartesian3.magnitude(s);return defined(i)?(i.longitude=c,i.latitude=l,i.height=u,i):new Cartographic(c,l,u)},Cartographic.toCartesian=function(e,t,i){return Cartesian3.fromRadians(e.longitude,e.latitude,e.height,t,i)},Cartographic.clone=function(e,t){if(defined(e))return defined(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Cartographic(e.longitude,e.latitude,e.height)},Cartographic.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height},Cartographic.equalsEpsilon=function(e,t,i){return i=defaultValue(i,0),e===t||defined(e)&&defined(t)&&Math.abs(e.longitude-t.longitude)<=i&&Math.abs(e.latitude-t.latitude)<=i&&Math.abs(e.height-t.height)<=i},Cartographic.ZERO=Object.freeze(new Cartographic(0,0,0)),Cartographic.prototype.clone=function(e){return Cartographic.clone(this,e)},Cartographic.prototype.equals=function(e){return Cartographic.equals(this,e)},Cartographic.prototype.equalsEpsilon=function(e,t){return Cartographic.equalsEpsilon(this,e,t)},Cartographic.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`},Object.defineProperties(Ellipsoid.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}}),Ellipsoid.clone=function(e,t){if(!defined(e))return;const i=e._radii;return defined(t)?(Cartesian3.clone(i,t._radii),Cartesian3.clone(e._radiiSquared,t._radiiSquared),Cartesian3.clone(e._radiiToTheFourth,t._radiiToTheFourth),Cartesian3.clone(e._oneOverRadii,t._oneOverRadii),Cartesian3.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new Ellipsoid(i.x,i.y,i.z)},Ellipsoid.fromCartesian3=function(e,t){return defined(t)||(t=new Ellipsoid),defined(e)?(initialize$p(t,e.x,e.y,e.z),t):t},Ellipsoid.WGS84=Object.freeze(new Ellipsoid(6378137,6378137,6356752.314245179)),Ellipsoid.UNIT_SPHERE=Object.freeze(new Ellipsoid(1,1,1)),Ellipsoid.MOON=Object.freeze(new Ellipsoid(CesiumMath.LUNAR_RADIUS,CesiumMath.LUNAR_RADIUS,CesiumMath.LUNAR_RADIUS)),Ellipsoid.prototype.clone=function(e){return Ellipsoid.clone(this,e)},Ellipsoid.packedLength=Cartesian3.packedLength,Ellipsoid.pack=function(e,t,i){return i=defaultValue(i,0),Cartesian3.pack(e._radii,t,i),t},Ellipsoid.unpack=function(e,t,i){t=defaultValue(t,0);const n=Cartesian3.unpack(e,t);return Ellipsoid.fromCartesian3(n,i)},Ellipsoid.prototype.geocentricSurfaceNormal=Cartesian3.normalize,Ellipsoid.prototype.geodeticSurfaceNormalCartographic=function(e,t){const i=e.longitude,n=e.latitude,r=Math.cos(n),o=r*Math.cos(i),a=r*Math.sin(i),s=Math.sin(n);return defined(t)||(t=new Cartesian3),t.x=o,t.y=a,t.z=s,Cartesian3.normalize(t,t)},Ellipsoid.prototype.geodeticSurfaceNormal=function(e,t){if(!Cartesian3.equalsEpsilon(e,Cartesian3.ZERO,CesiumMath.EPSILON14))return defined(t)||(t=new Cartesian3),t=Cartesian3.multiplyComponents(e,this._oneOverRadiiSquared,t),Cartesian3.normalize(t,t)};const cartographicToCartesianNormal=new Cartesian3,cartographicToCartesianK=new Cartesian3;Ellipsoid.prototype.cartographicToCartesian=function(e,t){const i=cartographicToCartesianNormal,n=cartographicToCartesianK;this.geodeticSurfaceNormalCartographic(e,i),Cartesian3.multiplyComponents(this._radiiSquared,i,n);const r=Math.sqrt(Cartesian3.dot(i,n));return Cartesian3.divideByScalar(n,r,n),Cartesian3.multiplyByScalar(i,e.height,i),defined(t)||(t=new Cartesian3),Cartesian3.add(n,i,t)},Ellipsoid.prototype.cartographicArrayToCartesianArray=function(e,t){const i=e.length;defined(t)?t.length=i:t=new Array(i);for(let n=0;n<i;n++)t[n]=this.cartographicToCartesian(e[n],t[n]);return t};const cartesianToCartographicN=new Cartesian3,cartesianToCartographicP=new Cartesian3,cartesianToCartographicH=new Cartesian3;Ellipsoid.prototype.cartesianToCartographic=function(e,t){const i=this.scaleToGeodeticSurface(e,cartesianToCartographicP);if(!defined(i))return;const n=this.geodeticSurfaceNormal(i,cartesianToCartographicN),r=Cartesian3.subtract(e,i,cartesianToCartographicH),o=Math.atan2(n.y,n.x),a=Math.asin(n.z),s=CesiumMath.sign(Cartesian3.dot(r,e))*Cartesian3.magnitude(r);return defined(t)?(t.longitude=o,t.latitude=a,t.height=s,t):new Cartographic(o,a,s)},Ellipsoid.prototype.cartesianArrayToCartographicArray=function(e,t){const i=e.length;defined(t)?t.length=i:t=new Array(i);for(let n=0;n<i;++n)t[n]=this.cartesianToCartographic(e[n],t[n]);return t},Ellipsoid.prototype.scaleToGeodeticSurface=function(e,t){return scaleToGeodeticSurface(e,this._oneOverRadii,this._oneOverRadiiSquared,this._centerToleranceSquared,t)},Ellipsoid.prototype.scaleToGeocentricSurface=function(e,t){defined(t)||(t=new Cartesian3);const i=e.x,n=e.y,r=e.z,o=this._oneOverRadiiSquared,a=1/Math.sqrt(i*i*o.x+n*n*o.y+r*r*o.z);return Cartesian3.multiplyByScalar(e,a,t)},Ellipsoid.prototype.transformPositionToScaledSpace=function(e,t){return defined(t)||(t=new Cartesian3),Cartesian3.multiplyComponents(e,this._oneOverRadii,t)},Ellipsoid.prototype.transformPositionFromScaledSpace=function(e,t){return defined(t)||(t=new Cartesian3),Cartesian3.multiplyComponents(e,this._radii,t)},Ellipsoid.prototype.equals=function(e){return this===e||defined(e)&&Cartesian3.equals(this._radii,e._radii)},Ellipsoid.prototype.toString=function(){return this._radii.toString()},Ellipsoid.prototype.getSurfaceNormalIntersectionWithZAxis=function(e,t,i){t=defaultValue(t,0);const n=this._squaredXOverSquaredZ;if(defined(i)||(i=new Cartesian3),i.x=0,i.y=0,i.z=e.z*(1-n),!(Math.abs(i.z)>=this._radii.z-t))return i};const abscissas=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],weights=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function gaussLegendreQuadrature(e,t,i){const n=.5*(t+e),r=.5*(t-e);let o=0;for(let e=0;e<5;e++){const t=r*abscissas[e];o+=weights[e]*(i(n+t)+i(n-t))}return o*=r,o}function GeographicProjection(e){this._ellipsoid=defaultValue(e,Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Ellipsoid.prototype.surfaceArea=function(e){const t=e.west;let i=e.east;const n=e.south,r=e.north;for(;i<t;)i+=CesiumMath.TWO_PI;const o=this._radiiSquared,a=o.x,s=o.y,c=o.z,l=a*s;return gaussLegendreQuadrature(n,r,(function(e){const n=Math.cos(e),r=Math.sin(e);return Math.cos(e)*gaussLegendreQuadrature(t,i,(function(e){const t=Math.cos(e),i=Math.sin(e);return Math.sqrt(l*r*r+c*(s*t*t+a*i*i)*n*n)}))}))},Object.defineProperties(GeographicProjection.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),GeographicProjection.prototype.project=function(e,t){const i=this._semimajorAxis,n=e.longitude*i,r=e.latitude*i,o=e.height;return defined(t)?(t.x=n,t.y=r,t.z=o,t):new Cartesian3(n,r,o)},GeographicProjection.prototype.unproject=function(e,t){const i=this._oneOverSemimajorAxis,n=e.x*i,r=e.y*i,o=e.z;return defined(t)?(t.longitude=n,t.latitude=r,t.height=o,t):new Cartographic(n,r,o)};const Intersect={OUTSIDE:-1,INTERSECTING:0,INSIDE:1};var Intersect$1=Object.freeze(Intersect);function Interval(e,t){this.start=defaultValue(e,0),this.stop=defaultValue(t,0)}function Matrix3(e,t,i,n,r,o,a,s,c){this[0]=defaultValue(e,0),this[1]=defaultValue(n,0),this[2]=defaultValue(a,0),this[3]=defaultValue(t,0),this[4]=defaultValue(r,0),this[5]=defaultValue(s,0),this[6]=defaultValue(i,0),this[7]=defaultValue(o,0),this[8]=defaultValue(c,0)}Matrix3.packedLength=9,Matrix3.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e[0],t[i++]=e[1],t[i++]=e[2],t[i++]=e[3],t[i++]=e[4],t[i++]=e[5],t[i++]=e[6],t[i++]=e[7],t[i++]=e[8],t},Matrix3.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Matrix3),i[0]=e[t++],i[1]=e[t++],i[2]=e[t++],i[3]=e[t++],i[4]=e[t++],i[5]=e[t++],i[6]=e[t++],i[7]=e[t++],i[8]=e[t++],i},Matrix3.packArray=function(e,t){const i=e.length,n=9*i;defined(t)?(Array.isArray(t)||t.length===n)&&t.length!==n&&(t.length=n):t=new Array(n);for(let n=0;n<i;++n)Matrix3.pack(e[n],t,9*n);return t},Matrix3.unpackArray=function(e,t){const i=e.length;defined(t)?t.length=i/9:t=new Array(i/9);for(let n=0;n<i;n+=9){const i=n/9;t[i]=Matrix3.unpack(e,n,t[i])}return t},Matrix3.clone=function(e,t){if(defined(e))return defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):new Matrix3(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8])},Matrix3.fromArray=Matrix3.unpack,Matrix3.fromColumnMajorArray=function(e,t){return Matrix3.clone(e,t)},Matrix3.fromRowMajorArray=function(e,t){return defined(t)?(t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],t):new Matrix3(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},Matrix3.fromQuaternion=function(e,t){const i=e.x*e.x,n=e.x*e.y,r=e.x*e.z,o=e.x*e.w,a=e.y*e.y,s=e.y*e.z,c=e.y*e.w,l=e.z*e.z,u=e.z*e.w,d=e.w*e.w,h=i-a-l+d,p=2*(n-u),f=2*(r+c),m=2*(n+u),g=-i+a-l+d,_=2*(s-o),y=2*(r-c),C=2*(s+o),v=-i-a+l+d;return defined(t)?(t[0]=h,t[1]=m,t[2]=y,t[3]=p,t[4]=g,t[5]=C,t[6]=f,t[7]=_,t[8]=v,t):new Matrix3(h,p,f,m,g,_,y,C,v)},Matrix3.fromHeadingPitchRoll=function(e,t){const i=Math.cos(-e.pitch),n=Math.cos(-e.heading),r=Math.cos(e.roll),o=Math.sin(-e.pitch),a=Math.sin(-e.heading),s=Math.sin(e.roll),c=i*n,l=-r*a+s*o*n,u=s*a+r*o*n,d=i*a,h=r*n+s*o*a,p=-s*n+r*o*a,f=-o,m=s*i,g=r*i;return defined(t)?(t[0]=c,t[1]=d,t[2]=f,t[3]=l,t[4]=h,t[5]=m,t[6]=u,t[7]=p,t[8]=g,t):new Matrix3(c,l,u,d,h,p,f,m,g)},Matrix3.fromScale=function(e,t){return defined(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=e.y,t[5]=0,t[6]=0,t[7]=0,t[8]=e.z,t):new Matrix3(e.x,0,0,0,e.y,0,0,0,e.z)},Matrix3.fromUniformScale=function(e,t){return defined(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=e,t):new Matrix3(e,0,0,0,e,0,0,0,e)},Matrix3.fromCrossProduct=function(e,t){return defined(t)?(t[0]=0,t[1]=e.z,t[2]=-e.y,t[3]=-e.z,t[4]=0,t[5]=e.x,t[6]=e.y,t[7]=-e.x,t[8]=0,t):new Matrix3(0,-e.z,e.y,e.z,0,-e.x,-e.y,e.x,0)},Matrix3.fromRotationX=function(e,t){const i=Math.cos(e),n=Math.sin(e);return defined(t)?(t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=i,t[5]=n,t[6]=0,t[7]=-n,t[8]=i,t):new Matrix3(1,0,0,0,i,-n,0,n,i)},Matrix3.fromRotationY=function(e,t){const i=Math.cos(e),n=Math.sin(e);return defined(t)?(t[0]=i,t[1]=0,t[2]=-n,t[3]=0,t[4]=1,t[5]=0,t[6]=n,t[7]=0,t[8]=i,t):new Matrix3(i,0,n,0,1,0,-n,0,i)},Matrix3.fromRotationZ=function(e,t){const i=Math.cos(e),n=Math.sin(e);return defined(t)?(t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new Matrix3(i,-n,0,n,i,0,0,0,1)},Matrix3.toArray=function(e,t){return defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},Matrix3.getElementIndex=function(e,t){return 3*e+t},Matrix3.getColumn=function(e,t,i){const n=3*t,r=e[n],o=e[n+1],a=e[n+2];return i.x=r,i.y=o,i.z=a,i},Matrix3.setColumn=function(e,t,i,n){const r=3*t;return(n=Matrix3.clone(e,n))[r]=i.x,n[r+1]=i.y,n[r+2]=i.z,n},Matrix3.getRow=function(e,t,i){const n=e[t],r=e[t+3],o=e[t+6];return i.x=n,i.y=r,i.z=o,i},Matrix3.setRow=function(e,t,i,n){return(n=Matrix3.clone(e,n))[t]=i.x,n[t+3]=i.y,n[t+6]=i.z,n};const scaleScratch1$2=new Cartesian3;Matrix3.setScale=function(e,t,i){const n=Matrix3.getScale(e,scaleScratch1$2),r=t.x/n.x,o=t.y/n.y,a=t.z/n.z;return i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i[3]=e[3]*o,i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*a,i[7]=e[7]*a,i[8]=e[8]*a,i};const scaleScratch2$2=new Cartesian3;Matrix3.setUniformScale=function(e,t,i){const n=Matrix3.getScale(e,scaleScratch2$2),r=t/n.x,o=t/n.y,a=t/n.z;return i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i[3]=e[3]*o,i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*a,i[7]=e[7]*a,i[8]=e[8]*a,i};const scratchColumn$2=new Cartesian3;Matrix3.getScale=function(e,t){return t.x=Cartesian3.magnitude(Cartesian3.fromElements(e[0],e[1],e[2],scratchColumn$2)),t.y=Cartesian3.magnitude(Cartesian3.fromElements(e[3],e[4],e[5],scratchColumn$2)),t.z=Cartesian3.magnitude(Cartesian3.fromElements(e[6],e[7],e[8],scratchColumn$2)),t};const scaleScratch3$2=new Cartesian3;Matrix3.getMaximumScale=function(e){return Matrix3.getScale(e,scaleScratch3$2),Cartesian3.maximumComponent(scaleScratch3$2)};const scaleScratch4$2=new Cartesian3;Matrix3.setRotation=function(e,t,i){const n=Matrix3.getScale(e,scaleScratch4$2);return i[0]=t[0]*n.x,i[1]=t[1]*n.x,i[2]=t[2]*n.x,i[3]=t[3]*n.y,i[4]=t[4]*n.y,i[5]=t[5]*n.y,i[6]=t[6]*n.z,i[7]=t[7]*n.z,i[8]=t[8]*n.z,i};const scaleScratch5$2=new Cartesian3;function computeFrobeniusNorm(e){let t=0;for(let i=0;i<9;++i){const n=e[i];t+=n*n}return Math.sqrt(t)}Matrix3.getRotation=function(e,t){const i=Matrix3.getScale(e,scaleScratch5$2);return t[0]=e[0]/i.x,t[1]=e[1]/i.x,t[2]=e[2]/i.x,t[3]=e[3]/i.y,t[4]=e[4]/i.y,t[5]=e[5]/i.y,t[6]=e[6]/i.z,t[7]=e[7]/i.z,t[8]=e[8]/i.z,t},Matrix3.multiply=function(e,t,i){const n=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],r=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],o=e[2]*t[0]+e[5]*t[1]+e[8]*t[2],a=e[0]*t[3]+e[3]*t[4]+e[6]*t[5],s=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],c=e[2]*t[3]+e[5]*t[4]+e[8]*t[5],l=e[0]*t[6]+e[3]*t[7]+e[6]*t[8],u=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],d=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];return i[0]=n,i[1]=r,i[2]=o,i[3]=a,i[4]=s,i[5]=c,i[6]=l,i[7]=u,i[8]=d,i},Matrix3.add=function(e,t,i){return i[0]=e[0]+t[0],i[1]=e[1]+t[1],i[2]=e[2]+t[2],i[3]=e[3]+t[3],i[4]=e[4]+t[4],i[5]=e[5]+t[5],i[6]=e[6]+t[6],i[7]=e[7]+t[7],i[8]=e[8]+t[8],i},Matrix3.subtract=function(e,t,i){return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],i[3]=e[3]-t[3],i[4]=e[4]-t[4],i[5]=e[5]-t[5],i[6]=e[6]-t[6],i[7]=e[7]-t[7],i[8]=e[8]-t[8],i},Matrix3.multiplyByVector=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=e[0]*n+e[3]*r+e[6]*o,s=e[1]*n+e[4]*r+e[7]*o,c=e[2]*n+e[5]*r+e[8]*o;return i.x=a,i.y=s,i.z=c,i},Matrix3.multiplyByScalar=function(e,t,i){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7]*t,i[8]=e[8]*t,i},Matrix3.multiplyByScale=function(e,t,i){return i[0]=e[0]*t.x,i[1]=e[1]*t.x,i[2]=e[2]*t.x,i[3]=e[3]*t.y,i[4]=e[4]*t.y,i[5]=e[5]*t.y,i[6]=e[6]*t.z,i[7]=e[7]*t.z,i[8]=e[8]*t.z,i},Matrix3.multiplyByUniformScale=function(e,t,i){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7]*t,i[8]=e[8]*t,i},Matrix3.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t},Matrix3.transpose=function(e,t){const i=e[0],n=e[3],r=e[6],o=e[1],a=e[4],s=e[7],c=e[2],l=e[5],u=e[8];return t[0]=i,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t};const rowVal=[1,0,0],colVal=[2,2,1];function offDiagonalFrobeniusNorm(e){let t=0;for(let i=0;i<3;++i){const n=e[Matrix3.getElementIndex(colVal[i],rowVal[i])];t+=2*n*n}return Math.sqrt(t)}function shurDecomposition(e,t){const i=CesiumMath.EPSILON15;let n=0,r=1;for(let t=0;t<3;++t){const i=Math.abs(e[Matrix3.getElementIndex(colVal[t],rowVal[t])]);i>n&&(r=t,n=i)}let o=1,a=0;const s=rowVal[r],c=colVal[r];if(Math.abs(e[Matrix3.getElementIndex(c,s)])>i){const t=(e[Matrix3.getElementIndex(c,c)]-e[Matrix3.getElementIndex(s,s)])/2/e[Matrix3.getElementIndex(c,s)];let i;i=t<0?-1/(-t+Math.sqrt(1+t*t)):1/(t+Math.sqrt(1+t*t)),o=1/Math.sqrt(1+i*i),a=i*o}return(t=Matrix3.clone(Matrix3.IDENTITY,t))[Matrix3.getElementIndex(s,s)]=t[Matrix3.getElementIndex(c,c)]=o,t[Matrix3.getElementIndex(c,s)]=a,t[Matrix3.getElementIndex(s,c)]=-a,t}const jMatrix=new Matrix3,jMatrixTranspose=new Matrix3;Matrix3.computeEigenDecomposition=function(e,t){const i=CesiumMath.EPSILON20;let n=0,r=0;defined(t)||(t={});const o=t.unitary=Matrix3.clone(Matrix3.IDENTITY,t.unitary),a=t.diagonal=Matrix3.clone(e,t.diagonal),s=i*computeFrobeniusNorm(a);for(;r<10&&offDiagonalFrobeniusNorm(a)>s;)shurDecomposition(a,jMatrix),Matrix3.transpose(jMatrix,jMatrixTranspose),Matrix3.multiply(a,jMatrix,a),Matrix3.multiply(jMatrixTranspose,a,a),Matrix3.multiply(o,jMatrix,o),++n>2&&(++r,n=0);return t},Matrix3.abs=function(e,t){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t},Matrix3.determinant=function(e){const t=e[0],i=e[3],n=e[6],r=e[1],o=e[4],a=e[7],s=e[2],c=e[5],l=e[8];return t*(o*l-c*a)+r*(c*n-i*l)+s*(i*a-o*n)},Matrix3.inverse=function(e,t){const i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],d=Matrix3.determinant(e);t[0]=a*u-l*s,t[1]=l*r-n*u,t[2]=n*s-a*r,t[3]=c*s-o*u,t[4]=i*u-c*r,t[5]=o*r-i*s,t[6]=o*l-c*a,t[7]=c*n-i*l,t[8]=i*a-o*n;const h=1/d;return Matrix3.multiplyByScalar(t,h,t)};const scratchTransposeMatrix$1=new Matrix3;function Cartesian4(e,t,i,n){this.x=defaultValue(e,0),this.y=defaultValue(t,0),this.z=defaultValue(i,0),this.w=defaultValue(n,0)}Matrix3.inverseTranspose=function(e,t){return Matrix3.inverse(Matrix3.transpose(e,scratchTransposeMatrix$1),t)},Matrix3.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},Matrix3.equalsEpsilon=function(e,t,i){return i=defaultValue(i,0),e===t||defined(e)&&defined(t)&&Math.abs(e[0]-t[0])<=i&&Math.abs(e[1]-t[1])<=i&&Math.abs(e[2]-t[2])<=i&&Math.abs(e[3]-t[3])<=i&&Math.abs(e[4]-t[4])<=i&&Math.abs(e[5]-t[5])<=i&&Math.abs(e[6]-t[6])<=i&&Math.abs(e[7]-t[7])<=i&&Math.abs(e[8]-t[8])<=i},Matrix3.IDENTITY=Object.freeze(new Matrix3(1,0,0,0,1,0,0,0,1)),Matrix3.ZERO=Object.freeze(new Matrix3(0,0,0,0,0,0,0,0,0)),Matrix3.COLUMN0ROW0=0,Matrix3.COLUMN0ROW1=1,Matrix3.COLUMN0ROW2=2,Matrix3.COLUMN1ROW0=3,Matrix3.COLUMN1ROW1=4,Matrix3.COLUMN1ROW2=5,Matrix3.COLUMN2ROW0=6,Matrix3.COLUMN2ROW1=7,Matrix3.COLUMN2ROW2=8,Object.defineProperties(Matrix3.prototype,{length:{get:function(){return Matrix3.packedLength}}}),Matrix3.prototype.clone=function(e){return Matrix3.clone(this,e)},Matrix3.prototype.equals=function(e){return Matrix3.equals(this,e)},Matrix3.equalsArray=function(e,t,i){return e[0]===t[i]&&e[1]===t[i+1]&&e[2]===t[i+2]&&e[3]===t[i+3]&&e[4]===t[i+4]&&e[5]===t[i+5]&&e[6]===t[i+6]&&e[7]===t[i+7]&&e[8]===t[i+8]},Matrix3.prototype.equalsEpsilon=function(e,t){return Matrix3.equalsEpsilon(this,e,t)},Matrix3.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]})\n(${this[1]}, ${this[4]}, ${this[7]})\n(${this[2]}, ${this[5]}, ${this[8]})`},Cartesian4.fromElements=function(e,t,i,n,r){return defined(r)?(r.x=e,r.y=t,r.z=i,r.w=n,r):new Cartesian4(e,t,i,n)},Cartesian4.fromColor=function(e,t){return defined(t)?(t.x=e.red,t.y=e.green,t.z=e.blue,t.w=e.alpha,t):new Cartesian4(e.red,e.green,e.blue,e.alpha)},Cartesian4.clone=function(e,t){if(defined(e))return defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new Cartesian4(e.x,e.y,e.z,e.w)},Cartesian4.packedLength=4,Cartesian4.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e.x,t[i++]=e.y,t[i++]=e.z,t[i]=e.w,t},Cartesian4.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Cartesian4),i.x=e[t++],i.y=e[t++],i.z=e[t++],i.w=e[t],i},Cartesian4.packArray=function(e,t){const i=e.length,n=4*i;defined(t)?(Array.isArray(t)||t.length===n)&&t.length!==n&&(t.length=n):t=new Array(n);for(let n=0;n<i;++n)Cartesian4.pack(e[n],t,4*n);return t},Cartesian4.unpackArray=function(e,t){const i=e.length;defined(t)?t.length=i/4:t=new Array(i/4);for(let n=0;n<i;n+=4){const i=n/4;t[i]=Cartesian4.unpack(e,n,t[i])}return t},Cartesian4.fromArray=Cartesian4.unpack,Cartesian4.maximumComponent=function(e){return Math.max(e.x,e.y,e.z,e.w)},Cartesian4.minimumComponent=function(e){return Math.min(e.x,e.y,e.z,e.w)},Cartesian4.minimumByComponent=function(e,t,i){return i.x=Math.min(e.x,t.x),i.y=Math.min(e.y,t.y),i.z=Math.min(e.z,t.z),i.w=Math.min(e.w,t.w),i},Cartesian4.maximumByComponent=function(e,t,i){return i.x=Math.max(e.x,t.x),i.y=Math.max(e.y,t.y),i.z=Math.max(e.z,t.z),i.w=Math.max(e.w,t.w),i},Cartesian4.clamp=function(e,t,i,n){const r=CesiumMath.clamp(e.x,t.x,i.x),o=CesiumMath.clamp(e.y,t.y,i.y),a=CesiumMath.clamp(e.z,t.z,i.z),s=CesiumMath.clamp(e.w,t.w,i.w);return n.x=r,n.y=o,n.z=a,n.w=s,n},Cartesian4.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},Cartesian4.magnitude=function(e){return Math.sqrt(Cartesian4.magnitudeSquared(e))};const distanceScratch$2=new Cartesian4;Cartesian4.distance=function(e,t){return Cartesian4.subtract(e,t,distanceScratch$2),Cartesian4.magnitude(distanceScratch$2)},Cartesian4.distanceSquared=function(e,t){return Cartesian4.subtract(e,t,distanceScratch$2),Cartesian4.magnitudeSquared(distanceScratch$2)},Cartesian4.normalize=function(e,t){const i=Cartesian4.magnitude(e);return t.x=e.x/i,t.y=e.y/i,t.z=e.z/i,t.w=e.w/i,t},Cartesian4.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w},Cartesian4.multiplyComponents=function(e,t,i){return i.x=e.x*t.x,i.y=e.y*t.y,i.z=e.z*t.z,i.w=e.w*t.w,i},Cartesian4.divideComponents=function(e,t,i){return i.x=e.x/t.x,i.y=e.y/t.y,i.z=e.z/t.z,i.w=e.w/t.w,i},Cartesian4.add=function(e,t,i){return i.x=e.x+t.x,i.y=e.y+t.y,i.z=e.z+t.z,i.w=e.w+t.w,i},Cartesian4.subtract=function(e,t,i){return i.x=e.x-t.x,i.y=e.y-t.y,i.z=e.z-t.z,i.w=e.w-t.w,i},Cartesian4.multiplyByScalar=function(e,t,i){return i.x=e.x*t,i.y=e.y*t,i.z=e.z*t,i.w=e.w*t,i},Cartesian4.divideByScalar=function(e,t,i){return i.x=e.x/t,i.y=e.y/t,i.z=e.z/t,i.w=e.w/t,i},Cartesian4.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t},Cartesian4.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t.w=Math.abs(e.w),t};const lerpScratch$2=new Cartesian4;Cartesian4.lerp=function(e,t,i,n){return Cartesian4.multiplyByScalar(t,i,lerpScratch$2),n=Cartesian4.multiplyByScalar(e,1-i,n),Cartesian4.add(lerpScratch$2,n,n)};const mostOrthogonalAxisScratch$1=new Cartesian4;Cartesian4.mostOrthogonalAxis=function(e,t){const i=Cartesian4.normalize(e,mostOrthogonalAxisScratch$1);return Cartesian4.abs(i,i),i.x<=i.y?i.x<=i.z?i.x<=i.w?Cartesian4.clone(Cartesian4.UNIT_X,t):Cartesian4.clone(Cartesian4.UNIT_W,t):i.z<=i.w?Cartesian4.clone(Cartesian4.UNIT_Z,t):Cartesian4.clone(Cartesian4.UNIT_W,t):i.y<=i.z?i.y<=i.w?Cartesian4.clone(Cartesian4.UNIT_Y,t):Cartesian4.clone(Cartesian4.UNIT_W,t):i.z<=i.w?Cartesian4.clone(Cartesian4.UNIT_Z,t):Cartesian4.clone(Cartesian4.UNIT_W,t)},Cartesian4.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},Cartesian4.equalsArray=function(e,t,i){return e.x===t[i]&&e.y===t[i+1]&&e.z===t[i+2]&&e.w===t[i+3]},Cartesian4.equalsEpsilon=function(e,t,i,n){return e===t||defined(e)&&defined(t)&&CesiumMath.equalsEpsilon(e.x,t.x,i,n)&&CesiumMath.equalsEpsilon(e.y,t.y,i,n)&&CesiumMath.equalsEpsilon(e.z,t.z,i,n)&&CesiumMath.equalsEpsilon(e.w,t.w,i,n)},Cartesian4.ZERO=Object.freeze(new Cartesian4(0,0,0,0)),Cartesian4.ONE=Object.freeze(new Cartesian4(1,1,1,1)),Cartesian4.UNIT_X=Object.freeze(new Cartesian4(1,0,0,0)),Cartesian4.UNIT_Y=Object.freeze(new Cartesian4(0,1,0,0)),Cartesian4.UNIT_Z=Object.freeze(new Cartesian4(0,0,1,0)),Cartesian4.UNIT_W=Object.freeze(new Cartesian4(0,0,0,1)),Cartesian4.prototype.clone=function(e){return Cartesian4.clone(this,e)},Cartesian4.prototype.equals=function(e){return Cartesian4.equals(this,e)},Cartesian4.prototype.equalsEpsilon=function(e,t,i){return Cartesian4.equalsEpsilon(this,e,t,i)},Cartesian4.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};const scratchF32Array=new Float32Array(1),scratchU8Array=new Uint8Array(scratchF32Array.buffer),testU32=new Uint32Array([287454020]),testU8=new Uint8Array(testU32.buffer),littleEndian=68===testU8[0];function RuntimeError(e){let t;this.name="RuntimeError",this.message=e;try{throw new Error}catch(e){t=e.stack}this.stack=t}function Matrix4(e,t,i,n,r,o,a,s,c,l,u,d,h,p,f,m){this[0]=defaultValue(e,0),this[1]=defaultValue(r,0),this[2]=defaultValue(c,0),this[3]=defaultValue(h,0),this[4]=defaultValue(t,0),this[5]=defaultValue(o,0),this[6]=defaultValue(l,0),this[7]=defaultValue(p,0),this[8]=defaultValue(i,0),this[9]=defaultValue(a,0),this[10]=defaultValue(u,0),this[11]=defaultValue(f,0),this[12]=defaultValue(n,0),this[13]=defaultValue(s,0),this[14]=defaultValue(d,0),this[15]=defaultValue(m,0)}Cartesian4.packFloat=function(e,t){return defined(t)||(t=new Cartesian4),scratchF32Array[0]=e,littleEndian?(t.x=scratchU8Array[0],t.y=scratchU8Array[1],t.z=scratchU8Array[2],t.w=scratchU8Array[3]):(t.x=scratchU8Array[3],t.y=scratchU8Array[2],t.z=scratchU8Array[1],t.w=scratchU8Array[0]),t},Cartesian4.unpackFloat=function(e){return littleEndian?(scratchU8Array[0]=e.x,scratchU8Array[1]=e.y,scratchU8Array[2]=e.z,scratchU8Array[3]=e.w):(scratchU8Array[0]=e.w,scratchU8Array[1]=e.z,scratchU8Array[2]=e.y,scratchU8Array[3]=e.x),scratchF32Array[0]},defined(Object.create)&&(RuntimeError.prototype=Object.create(Error.prototype),RuntimeError.prototype.constructor=RuntimeError),RuntimeError.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return defined(this.stack)&&(e+=`\n${this.stack.toString()}`),e},Matrix4.packedLength=16,Matrix4.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e[0],t[i++]=e[1],t[i++]=e[2],t[i++]=e[3],t[i++]=e[4],t[i++]=e[5],t[i++]=e[6],t[i++]=e[7],t[i++]=e[8],t[i++]=e[9],t[i++]=e[10],t[i++]=e[11],t[i++]=e[12],t[i++]=e[13],t[i++]=e[14],t[i]=e[15],t},Matrix4.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Matrix4),i[0]=e[t++],i[1]=e[t++],i[2]=e[t++],i[3]=e[t++],i[4]=e[t++],i[5]=e[t++],i[6]=e[t++],i[7]=e[t++],i[8]=e[t++],i[9]=e[t++],i[10]=e[t++],i[11]=e[t++],i[12]=e[t++],i[13]=e[t++],i[14]=e[t++],i[15]=e[t],i},Matrix4.packArray=function(e,t){const i=e.length,n=16*i;defined(t)?(Array.isArray(t)||t.length===n)&&t.length!==n&&(t.length=n):t=new Array(n);for(let n=0;n<i;++n)Matrix4.pack(e[n],t,16*n);return t},Matrix4.unpackArray=function(e,t){const i=e.length;defined(t)?t.length=i/16:t=new Array(i/16);for(let n=0;n<i;n+=16){const i=n/16;t[i]=Matrix4.unpack(e,n,t[i])}return t},Matrix4.clone=function(e,t){if(defined(e))return defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):new Matrix4(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15])},Matrix4.fromArray=Matrix4.unpack,Matrix4.fromColumnMajorArray=function(e,t){return Matrix4.clone(e,t)},Matrix4.fromRowMajorArray=function(e,t){return defined(t)?(t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15],t):new Matrix4(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},Matrix4.fromRotationTranslation=function(e,t,i){return t=defaultValue(t,Cartesian3.ZERO),defined(i)?(i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=0,i[4]=e[3],i[5]=e[4],i[6]=e[5],i[7]=0,i[8]=e[6],i[9]=e[7],i[10]=e[8],i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,i):new Matrix4(e[0],e[3],e[6],t.x,e[1],e[4],e[7],t.y,e[2],e[5],e[8],t.z,0,0,0,1)},Matrix4.fromTranslationQuaternionRotationScale=function(e,t,i,n){defined(n)||(n=new Matrix4);const r=i.x,o=i.y,a=i.z,s=t.x*t.x,c=t.x*t.y,l=t.x*t.z,u=t.x*t.w,d=t.y*t.y,h=t.y*t.z,p=t.y*t.w,f=t.z*t.z,m=t.z*t.w,g=t.w*t.w,_=s-d-f+g,y=2*(c-m),C=2*(l+p),v=2*(c+m),T=-s+d-f+g,S=2*(h-u),A=2*(l-p),b=2*(h+u),E=-s-d+f+g;return n[0]=_*r,n[1]=v*r,n[2]=A*r,n[3]=0,n[4]=y*o,n[5]=T*o,n[6]=b*o,n[7]=0,n[8]=C*a,n[9]=S*a,n[10]=E*a,n[11]=0,n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=1,n},Matrix4.fromTranslationRotationScale=function(e,t){return Matrix4.fromTranslationQuaternionRotationScale(e.translation,e.rotation,e.scale,t)},Matrix4.fromTranslation=function(e,t){return Matrix4.fromRotationTranslation(Matrix3.IDENTITY,e,t)},Matrix4.fromScale=function(e,t){return defined(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e.y,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e.z,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new Matrix4(e.x,0,0,0,0,e.y,0,0,0,0,e.z,0,0,0,0,1)},Matrix4.fromUniformScale=function(e,t){return defined(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new Matrix4(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1)},Matrix4.fromRotation=function(e,t){return defined(t)||(t=new Matrix4),t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=0,t[4]=e[3],t[5]=e[4],t[6]=e[5],t[7]=0,t[8]=e[6],t[9]=e[7],t[10]=e[8],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t};const fromCameraF=new Cartesian3,fromCameraR=new Cartesian3,fromCameraU=new Cartesian3;Matrix4.fromCamera=function(e,t){const i=e.position,n=e.direction,r=e.up;Cartesian3.normalize(n,fromCameraF),Cartesian3.normalize(Cartesian3.cross(fromCameraF,r,fromCameraR),fromCameraR),Cartesian3.normalize(Cartesian3.cross(fromCameraR,fromCameraF,fromCameraU),fromCameraU);const o=fromCameraR.x,a=fromCameraR.y,s=fromCameraR.z,c=fromCameraF.x,l=fromCameraF.y,u=fromCameraF.z,d=fromCameraU.x,h=fromCameraU.y,p=fromCameraU.z,f=i.x,m=i.y,g=i.z,_=o*-f+a*-m+s*-g,y=d*-f+h*-m+p*-g,C=c*f+l*m+u*g;return defined(t)?(t[0]=o,t[1]=d,t[2]=-c,t[3]=0,t[4]=a,t[5]=h,t[6]=-l,t[7]=0,t[8]=s,t[9]=p,t[10]=-u,t[11]=0,t[12]=_,t[13]=y,t[14]=C,t[15]=1,t):new Matrix4(o,a,s,_,d,h,p,y,-c,-l,-u,C,0,0,0,1)},Matrix4.computePerspectiveFieldOfView=function(e,t,i,n,r){const o=1/Math.tan(.5*e),a=o/t,s=(n+i)/(i-n),c=2*n*i/(i-n);return r[0]=a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=o,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=s,r[11]=-1,r[12]=0,r[13]=0,r[14]=c,r[15]=0,r},Matrix4.computeOrthographicOffCenter=function(e,t,i,n,r,o,a){let s=1/(t-e),c=1/(n-i),l=1/(o-r);const u=-(t+e)*s,d=-(n+i)*c,h=-(o+r)*l;return s*=2,c*=2,l*=-2,a[0]=s,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=l,a[11]=0,a[12]=u,a[13]=d,a[14]=h,a[15]=1,a},Matrix4.computePerspectiveOffCenter=function(e,t,i,n,r,o,a){const s=2*r/(t-e),c=2*r/(n-i),l=(t+e)/(t-e),u=(n+i)/(n-i),d=-(o+r)/(o-r),h=-2*o*r/(o-r);return a[0]=s,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=l,a[9]=u,a[10]=d,a[11]=-1,a[12]=0,a[13]=0,a[14]=h,a[15]=0,a},Matrix4.computeInfinitePerspectiveOffCenter=function(e,t,i,n,r,o){const a=2*r/(t-e),s=2*r/(n-i),c=(t+e)/(t-e),l=(n+i)/(n-i),u=-2*r;return o[0]=a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=s,o[6]=0,o[7]=0,o[8]=c,o[9]=l,o[10]=-1,o[11]=-1,o[12]=0,o[13]=0,o[14]=u,o[15]=0,o},Matrix4.computeViewportTransformation=function(e,t,i,n){defined(n)||(n=new Matrix4),e=defaultValue(e,defaultValue.EMPTY_OBJECT);const r=defaultValue(e.x,0),o=defaultValue(e.y,0),a=defaultValue(e.width,0),s=defaultValue(e.height,0);t=defaultValue(t,0);const c=.5*a,l=.5*s,u=.5*((i=defaultValue(i,1))-t),d=c,h=l,p=u,f=r+c,m=o+l,g=t+u;return n[0]=d,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=h,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=p,n[11]=0,n[12]=f,n[13]=m,n[14]=g,n[15]=1,n},Matrix4.computeView=function(e,t,i,n,r){return r[0]=n.x,r[1]=i.x,r[2]=-t.x,r[3]=0,r[4]=n.y,r[5]=i.y,r[6]=-t.y,r[7]=0,r[8]=n.z,r[9]=i.z,r[10]=-t.z,r[11]=0,r[12]=-Cartesian3.dot(n,e),r[13]=-Cartesian3.dot(i,e),r[14]=Cartesian3.dot(t,e),r[15]=1,r},Matrix4.toArray=function(e,t){return defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]},Matrix4.getElementIndex=function(e,t){return 4*e+t},Matrix4.getColumn=function(e,t,i){const n=4*t,r=e[n],o=e[n+1],a=e[n+2],s=e[n+3];return i.x=r,i.y=o,i.z=a,i.w=s,i},Matrix4.setColumn=function(e,t,i,n){const r=4*t;return(n=Matrix4.clone(e,n))[r]=i.x,n[r+1]=i.y,n[r+2]=i.z,n[r+3]=i.w,n},Matrix4.getRow=function(e,t,i){const n=e[t],r=e[t+4],o=e[t+8],a=e[t+12];return i.x=n,i.y=r,i.z=o,i.w=a,i},Matrix4.setRow=function(e,t,i,n){return(n=Matrix4.clone(e,n))[t]=i.x,n[t+4]=i.y,n[t+8]=i.z,n[t+12]=i.w,n},Matrix4.setTranslation=function(e,t,i){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=e[15],i};const scaleScratch1$1=new Cartesian3;Matrix4.setScale=function(e,t,i){const n=Matrix4.getScale(e,scaleScratch1$1),r=t.x/n.x,o=t.y/n.y,a=t.z/n.z;return i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i[3]=e[3],i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*o,i[7]=e[7],i[8]=e[8]*a,i[9]=e[9]*a,i[10]=e[10]*a,i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i};const scaleScratch2$1=new Cartesian3;Matrix4.setUniformScale=function(e,t,i){const n=Matrix4.getScale(e,scaleScratch2$1),r=t/n.x,o=t/n.y,a=t/n.z;return i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i[3]=e[3],i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*o,i[7]=e[7],i[8]=e[8]*a,i[9]=e[9]*a,i[10]=e[10]*a,i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i};const scratchColumn$1=new Cartesian3;Matrix4.getScale=function(e,t){return t.x=Cartesian3.magnitude(Cartesian3.fromElements(e[0],e[1],e[2],scratchColumn$1)),t.y=Cartesian3.magnitude(Cartesian3.fromElements(e[4],e[5],e[6],scratchColumn$1)),t.z=Cartesian3.magnitude(Cartesian3.fromElements(e[8],e[9],e[10],scratchColumn$1)),t};const scaleScratch3$1=new Cartesian3;Matrix4.getMaximumScale=function(e){return Matrix4.getScale(e,scaleScratch3$1),Cartesian3.maximumComponent(scaleScratch3$1)};const scaleScratch4$1=new Cartesian3;Matrix4.setRotation=function(e,t,i){const n=Matrix4.getScale(e,scaleScratch4$1);return i[0]=t[0]*n.x,i[1]=t[1]*n.x,i[2]=t[2]*n.x,i[3]=e[3],i[4]=t[3]*n.y,i[5]=t[4]*n.y,i[6]=t[5]*n.y,i[7]=e[7],i[8]=t[6]*n.z,i[9]=t[7]*n.z,i[10]=t[8]*n.z,i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i};const scaleScratch5$1=new Cartesian3;Matrix4.getRotation=function(e,t){const i=Matrix4.getScale(e,scaleScratch5$1);return t[0]=e[0]/i.x,t[1]=e[1]/i.x,t[2]=e[2]/i.x,t[3]=e[4]/i.y,t[4]=e[5]/i.y,t[5]=e[6]/i.y,t[6]=e[8]/i.z,t[7]=e[9]/i.z,t[8]=e[10]/i.z,t},Matrix4.multiply=function(e,t,i){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],d=e[8],h=e[9],p=e[10],f=e[11],m=e[12],g=e[13],_=e[14],y=e[15],C=t[0],v=t[1],T=t[2],S=t[3],A=t[4],b=t[5],E=t[6],x=t[7],P=t[8],D=t[9],w=t[10],M=t[11],I=t[12],R=t[13],O=t[14],L=t[15],B=n*C+s*v+d*T+m*S,F=r*C+c*v+h*T+g*S,N=o*C+l*v+p*T+_*S,V=a*C+u*v+f*T+y*S,k=n*A+s*b+d*E+m*x,$=r*A+c*b+h*E+g*x,U=o*A+l*b+p*E+_*x,G=a*A+u*b+f*E+y*x,z=n*P+s*D+d*w+m*M,H=r*P+c*D+h*w+g*M,W=o*P+l*D+p*w+_*M,j=a*P+u*D+f*w+y*M,q=n*I+s*R+d*O+m*L,X=r*I+c*R+h*O+g*L,Y=o*I+l*R+p*O+_*L,K=a*I+u*R+f*O+y*L;return i[0]=B,i[1]=F,i[2]=N,i[3]=V,i[4]=k,i[5]=$,i[6]=U,i[7]=G,i[8]=z,i[9]=H,i[10]=W,i[11]=j,i[12]=q,i[13]=X,i[14]=Y,i[15]=K,i},Matrix4.add=function(e,t,i){return i[0]=e[0]+t[0],i[1]=e[1]+t[1],i[2]=e[2]+t[2],i[3]=e[3]+t[3],i[4]=e[4]+t[4],i[5]=e[5]+t[5],i[6]=e[6]+t[6],i[7]=e[7]+t[7],i[8]=e[8]+t[8],i[9]=e[9]+t[9],i[10]=e[10]+t[10],i[11]=e[11]+t[11],i[12]=e[12]+t[12],i[13]=e[13]+t[13],i[14]=e[14]+t[14],i[15]=e[15]+t[15],i},Matrix4.subtract=function(e,t,i){return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],i[3]=e[3]-t[3],i[4]=e[4]-t[4],i[5]=e[5]-t[5],i[6]=e[6]-t[6],i[7]=e[7]-t[7],i[8]=e[8]-t[8],i[9]=e[9]-t[9],i[10]=e[10]-t[10],i[11]=e[11]-t[11],i[12]=e[12]-t[12],i[13]=e[13]-t[13],i[14]=e[14]-t[14],i[15]=e[15]-t[15],i},Matrix4.multiplyTransformation=function(e,t,i){const n=e[0],r=e[1],o=e[2],a=e[4],s=e[5],c=e[6],l=e[8],u=e[9],d=e[10],h=e[12],p=e[13],f=e[14],m=t[0],g=t[1],_=t[2],y=t[4],C=t[5],v=t[6],T=t[8],S=t[9],A=t[10],b=t[12],E=t[13],x=t[14],P=n*m+a*g+l*_,D=r*m+s*g+u*_,w=o*m+c*g+d*_,M=n*y+a*C+l*v,I=r*y+s*C+u*v,R=o*y+c*C+d*v,O=n*T+a*S+l*A,L=r*T+s*S+u*A,B=o*T+c*S+d*A,F=n*b+a*E+l*x+h,N=r*b+s*E+u*x+p,V=o*b+c*E+d*x+f;return i[0]=P,i[1]=D,i[2]=w,i[3]=0,i[4]=M,i[5]=I,i[6]=R,i[7]=0,i[8]=O,i[9]=L,i[10]=B,i[11]=0,i[12]=F,i[13]=N,i[14]=V,i[15]=1,i},Matrix4.multiplyByMatrix3=function(e,t,i){const n=e[0],r=e[1],o=e[2],a=e[4],s=e[5],c=e[6],l=e[8],u=e[9],d=e[10],h=t[0],p=t[1],f=t[2],m=t[3],g=t[4],_=t[5],y=t[6],C=t[7],v=t[8],T=n*h+a*p+l*f,S=r*h+s*p+u*f,A=o*h+c*p+d*f,b=n*m+a*g+l*_,E=r*m+s*g+u*_,x=o*m+c*g+d*_,P=n*y+a*C+l*v,D=r*y+s*C+u*v,w=o*y+c*C+d*v;return i[0]=T,i[1]=S,i[2]=A,i[3]=0,i[4]=b,i[5]=E,i[6]=x,i[7]=0,i[8]=P,i[9]=D,i[10]=w,i[11]=0,i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},Matrix4.multiplyByTranslation=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=n*e[0]+r*e[4]+o*e[8]+e[12],s=n*e[1]+r*e[5]+o*e[9]+e[13],c=n*e[2]+r*e[6]+o*e[10]+e[14];return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=a,i[13]=s,i[14]=c,i[15]=e[15],i},Matrix4.multiplyByScale=function(e,t,i){const n=t.x,r=t.y,o=t.z;return 1===n&&1===r&&1===o?Matrix4.clone(e,i):(i[0]=n*e[0],i[1]=n*e[1],i[2]=n*e[2],i[3]=e[3],i[4]=r*e[4],i[5]=r*e[5],i[6]=r*e[6],i[7]=e[7],i[8]=o*e[8],i[9]=o*e[9],i[10]=o*e[10],i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i)},Matrix4.multiplyByUniformScale=function(e,t,i){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3],i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7],i[8]=e[8]*t,i[9]=e[9]*t,i[10]=e[10]*t,i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},Matrix4.multiplyByVector=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=t.w,s=e[0]*n+e[4]*r+e[8]*o+e[12]*a,c=e[1]*n+e[5]*r+e[9]*o+e[13]*a,l=e[2]*n+e[6]*r+e[10]*o+e[14]*a,u=e[3]*n+e[7]*r+e[11]*o+e[15]*a;return i.x=s,i.y=c,i.z=l,i.w=u,i},Matrix4.multiplyByPointAsVector=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=e[0]*n+e[4]*r+e[8]*o,s=e[1]*n+e[5]*r+e[9]*o,c=e[2]*n+e[6]*r+e[10]*o;return i.x=a,i.y=s,i.z=c,i},Matrix4.multiplyByPoint=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=e[0]*n+e[4]*r+e[8]*o+e[12],s=e[1]*n+e[5]*r+e[9]*o+e[13],c=e[2]*n+e[6]*r+e[10]*o+e[14];return i.x=a,i.y=s,i.z=c,i},Matrix4.multiplyByScalar=function(e,t,i){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7]*t,i[8]=e[8]*t,i[9]=e[9]*t,i[10]=e[10]*t,i[11]=e[11]*t,i[12]=e[12]*t,i[13]=e[13]*t,i[14]=e[14]*t,i[15]=e[15]*t,i},Matrix4.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t[9]=-e[9],t[10]=-e[10],t[11]=-e[11],t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=-e[15],t},Matrix4.transpose=function(e,t){const i=e[1],n=e[2],r=e[3],o=e[6],a=e[7],s=e[11];return t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=i,t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=o,t[10]=e[10],t[11]=e[14],t[12]=r,t[13]=a,t[14]=s,t[15]=e[15],t},Matrix4.abs=function(e,t){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t[9]=Math.abs(e[9]),t[10]=Math.abs(e[10]),t[11]=Math.abs(e[11]),t[12]=Math.abs(e[12]),t[13]=Math.abs(e[13]),t[14]=Math.abs(e[14]),t[15]=Math.abs(e[15]),t},Matrix4.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[3]===t[3]&&e[7]===t[7]&&e[11]===t[11]&&e[15]===t[15]},Matrix4.equalsEpsilon=function(e,t,i){return i=defaultValue(i,0),e===t||defined(e)&&defined(t)&&Math.abs(e[0]-t[0])<=i&&Math.abs(e[1]-t[1])<=i&&Math.abs(e[2]-t[2])<=i&&Math.abs(e[3]-t[3])<=i&&Math.abs(e[4]-t[4])<=i&&Math.abs(e[5]-t[5])<=i&&Math.abs(e[6]-t[6])<=i&&Math.abs(e[7]-t[7])<=i&&Math.abs(e[8]-t[8])<=i&&Math.abs(e[9]-t[9])<=i&&Math.abs(e[10]-t[10])<=i&&Math.abs(e[11]-t[11])<=i&&Math.abs(e[12]-t[12])<=i&&Math.abs(e[13]-t[13])<=i&&Math.abs(e[14]-t[14])<=i&&Math.abs(e[15]-t[15])<=i},Matrix4.getTranslation=function(e,t){return t.x=e[12],t.y=e[13],t.z=e[14],t},Matrix4.getMatrix3=function(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t};const scratchInverseRotation=new Matrix3,scratchMatrix3Zero=new Matrix3,scratchBottomRow=new Cartesian4,scratchExpectedBottomRow=new Cartesian4(0,0,0,1);Matrix4.inverse=function(e,t){const i=e[0],n=e[4],r=e[8],o=e[12],a=e[1],s=e[5],c=e[9],l=e[13],u=e[2],d=e[6],h=e[10],p=e[14],f=e[3],m=e[7],g=e[11],_=e[15];let y=h*_,C=p*g,v=d*_,T=p*m,S=d*g,A=h*m,b=u*_,E=p*f,x=u*g,P=h*f,D=u*m,w=d*f;const M=y*s+T*c+S*l-(C*s+v*c+A*l),I=C*a+b*c+P*l-(y*a+E*c+x*l),R=v*a+E*s+D*l-(T*a+b*s+w*l),O=A*a+x*s+w*c-(S*a+P*s+D*c),L=C*n+v*r+A*o-(y*n+T*r+S*o),B=y*i+E*r+x*o-(C*i+b*r+P*o),F=T*i+b*n+w*o-(v*i+E*n+D*o),N=S*i+P*n+D*r-(A*i+x*n+w*r);y=r*l,C=o*c,v=n*l,T=o*s,S=n*c,A=r*s,b=i*l,E=o*a,x=i*c,P=r*a,D=i*s,w=n*a;const V=y*m+T*g+S*_-(C*m+v*g+A*_),k=C*f+b*g+P*_-(y*f+E*g+x*_),$=v*f+E*m+D*_-(T*f+b*m+w*_),U=A*f+x*m+w*g-(S*f+P*m+D*g),G=v*h+A*p+C*d-(S*p+y*d+T*h),z=x*p+y*u+E*h-(b*h+P*p+C*u),H=b*d+w*p+T*u-(D*p+v*u+E*d),W=D*h+S*u+P*d-(x*d+w*h+A*u);let j=i*M+n*I+r*R+o*O;if(Math.abs(j)<CesiumMath.EPSILON21){if(Matrix3.equalsEpsilon(Matrix4.getMatrix3(e,scratchInverseRotation),scratchMatrix3Zero,CesiumMath.EPSILON7)&&Cartesian4.equals(Matrix4.getRow(e,3,scratchBottomRow),scratchExpectedBottomRow))return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=1,t;throw new RuntimeError("matrix is not invertible because its determinate is zero.")}return j=1/j,t[0]=M*j,t[1]=I*j,t[2]=R*j,t[3]=O*j,t[4]=L*j,t[5]=B*j,t[6]=F*j,t[7]=N*j,t[8]=V*j,t[9]=k*j,t[10]=$*j,t[11]=U*j,t[12]=G*j,t[13]=z*j,t[14]=H*j,t[15]=W*j,t},Matrix4.inverseTransformation=function(e,t){const i=e[0],n=e[1],r=e[2],o=e[4],a=e[5],s=e[6],c=e[8],l=e[9],u=e[10],d=e[12],h=e[13],p=e[14],f=-i*d-n*h-r*p,m=-o*d-a*h-s*p,g=-c*d-l*h-u*p;return t[0]=i,t[1]=o,t[2]=c,t[3]=0,t[4]=n,t[5]=a,t[6]=l,t[7]=0,t[8]=r,t[9]=s,t[10]=u,t[11]=0,t[12]=f,t[13]=m,t[14]=g,t[15]=1,t};const scratchTransposeMatrix=new Matrix4;function Rectangle(e,t,i,n){this.west=defaultValue(e,0),this.south=defaultValue(t,0),this.east=defaultValue(i,0),this.north=defaultValue(n,0)}Matrix4.inverseTranspose=function(e,t){return Matrix4.inverse(Matrix4.transpose(e,scratchTransposeMatrix),t)},Matrix4.IDENTITY=Object.freeze(new Matrix4(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)),Matrix4.ZERO=Object.freeze(new Matrix4(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)),Matrix4.COLUMN0ROW0=0,Matrix4.COLUMN0ROW1=1,Matrix4.COLUMN0ROW2=2,Matrix4.COLUMN0ROW3=3,Matrix4.COLUMN1ROW0=4,Matrix4.COLUMN1ROW1=5,Matrix4.COLUMN1ROW2=6,Matrix4.COLUMN1ROW3=7,Matrix4.COLUMN2ROW0=8,Matrix4.COLUMN2ROW1=9,Matrix4.COLUMN2ROW2=10,Matrix4.COLUMN2ROW3=11,Matrix4.COLUMN3ROW0=12,Matrix4.COLUMN3ROW1=13,Matrix4.COLUMN3ROW2=14,Matrix4.COLUMN3ROW3=15,Object.defineProperties(Matrix4.prototype,{length:{get:function(){return Matrix4.packedLength}}}),Matrix4.prototype.clone=function(e){return Matrix4.clone(this,e)},Matrix4.prototype.equals=function(e){return Matrix4.equals(this,e)},Matrix4.equalsArray=function(e,t,i){return e[0]===t[i]&&e[1]===t[i+1]&&e[2]===t[i+2]&&e[3]===t[i+3]&&e[4]===t[i+4]&&e[5]===t[i+5]&&e[6]===t[i+6]&&e[7]===t[i+7]&&e[8]===t[i+8]&&e[9]===t[i+9]&&e[10]===t[i+10]&&e[11]===t[i+11]&&e[12]===t[i+12]&&e[13]===t[i+13]&&e[14]===t[i+14]&&e[15]===t[i+15]},Matrix4.prototype.equalsEpsilon=function(e,t){return Matrix4.equalsEpsilon(this,e,t)},Matrix4.prototype.toString=function(){return`(${this[0]}, ${this[4]}, ${this[8]}, ${this[12]})\n(${this[1]}, ${this[5]}, ${this[9]}, ${this[13]})\n(${this[2]}, ${this[6]}, ${this[10]}, ${this[14]})\n(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`},Object.defineProperties(Rectangle.prototype,{width:{get:function(){return Rectangle.computeWidth(this)}},height:{get:function(){return Rectangle.computeHeight(this)}}}),Rectangle.packedLength=4,Rectangle.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e.west,t[i++]=e.south,t[i++]=e.east,t[i]=e.north,t},Rectangle.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Rectangle),i.west=e[t++],i.south=e[t++],i.east=e[t++],i.north=e[t],i},Rectangle.computeWidth=function(e){let t=e.east;const i=e.west;return t<i&&(t+=CesiumMath.TWO_PI),t-i},Rectangle.computeHeight=function(e){return e.north-e.south},Rectangle.fromDegrees=function(e,t,i,n,r){return e=CesiumMath.toRadians(defaultValue(e,0)),t=CesiumMath.toRadians(defaultValue(t,0)),i=CesiumMath.toRadians(defaultValue(i,0)),n=CesiumMath.toRadians(defaultValue(n,0)),defined(r)?(r.west=e,r.south=t,r.east=i,r.north=n,r):new Rectangle(e,t,i,n)},Rectangle.fromRadians=function(e,t,i,n,r){return defined(r)?(r.west=defaultValue(e,0),r.south=defaultValue(t,0),r.east=defaultValue(i,0),r.north=defaultValue(n,0),r):new Rectangle(e,t,i,n)},Rectangle.fromCartographicArray=function(e,t){let i=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,a=Number.MAX_VALUE,s=-Number.MAX_VALUE;for(let t=0,c=e.length;t<c;t++){const c=e[t];i=Math.min(i,c.longitude),n=Math.max(n,c.longitude),a=Math.min(a,c.latitude),s=Math.max(s,c.latitude);const l=c.longitude>=0?c.longitude:c.longitude+CesiumMath.TWO_PI;r=Math.min(r,l),o=Math.max(o,l)}return n-i>o-r&&(i=r,n=o,n>CesiumMath.PI&&(n-=CesiumMath.TWO_PI),i>CesiumMath.PI&&(i-=CesiumMath.TWO_PI)),defined(t)?(t.west=i,t.south=a,t.east=n,t.north=s,t):new Rectangle(i,a,n,s)},Rectangle.fromCartesianArray=function(e,t,i){t=defaultValue(t,Ellipsoid.WGS84);let n=Number.MAX_VALUE,r=-Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,s=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let i=0,l=e.length;i<l;i++){const l=t.cartesianToCartographic(e[i]);n=Math.min(n,l.longitude),r=Math.max(r,l.longitude),s=Math.min(s,l.latitude),c=Math.max(c,l.latitude);const u=l.longitude>=0?l.longitude:l.longitude+CesiumMath.TWO_PI;o=Math.min(o,u),a=Math.max(a,u)}return r-n>a-o&&(n=o,r=a,r>CesiumMath.PI&&(r-=CesiumMath.TWO_PI),n>CesiumMath.PI&&(n-=CesiumMath.TWO_PI)),defined(i)?(i.west=n,i.south=s,i.east=r,i.north=c,i):new Rectangle(n,s,r,c)},Rectangle.clone=function(e,t){if(defined(e))return defined(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new Rectangle(e.west,e.south,e.east,e.north)},Rectangle.equalsEpsilon=function(e,t,i){return i=defaultValue(i,0),e===t||defined(e)&&defined(t)&&Math.abs(e.west-t.west)<=i&&Math.abs(e.south-t.south)<=i&&Math.abs(e.east-t.east)<=i&&Math.abs(e.north-t.north)<=i},Rectangle.prototype.clone=function(e){return Rectangle.clone(this,e)},Rectangle.prototype.equals=function(e){return Rectangle.equals(this,e)},Rectangle.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north},Rectangle.prototype.equalsEpsilon=function(e,t){return Rectangle.equalsEpsilon(this,e,t)},Rectangle.validate=function(e){},Rectangle.southwest=function(e,t){return defined(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new Cartographic(e.west,e.south)},Rectangle.northwest=function(e,t){return defined(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new Cartographic(e.west,e.north)},Rectangle.northeast=function(e,t){return defined(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new Cartographic(e.east,e.north)},Rectangle.southeast=function(e,t){return defined(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new Cartographic(e.east,e.south)},Rectangle.center=function(e,t){let i=e.east;const n=e.west;i<n&&(i+=CesiumMath.TWO_PI);const r=CesiumMath.negativePiToPi(.5*(n+i)),o=.5*(e.south+e.north);return defined(t)?(t.longitude=r,t.latitude=o,t.height=0,t):new Cartographic(r,o)},Rectangle.intersection=function(e,t,i){let n=e.east,r=e.west,o=t.east,a=t.west;n<r&&o>0?n+=CesiumMath.TWO_PI:o<a&&n>0&&(o+=CesiumMath.TWO_PI),n<r&&a<0?a+=CesiumMath.TWO_PI:o<a&&r<0&&(r+=CesiumMath.TWO_PI);const s=CesiumMath.negativePiToPi(Math.max(r,a)),c=CesiumMath.negativePiToPi(Math.min(n,o));if((e.west<e.east||t.west<t.east)&&c<=s)return;const l=Math.max(e.south,t.south),u=Math.min(e.north,t.north);return l>=u?void 0:defined(i)?(i.west=s,i.south=l,i.east=c,i.north=u,i):new Rectangle(s,l,c,u)},Rectangle.simpleIntersection=function(e,t,i){const n=Math.max(e.west,t.west),r=Math.max(e.south,t.south),o=Math.min(e.east,t.east),a=Math.min(e.north,t.north);if(!(r>=a||n>=o))return defined(i)?(i.west=n,i.south=r,i.east=o,i.north=a,i):new Rectangle(n,r,o,a)},Rectangle.union=function(e,t,i){defined(i)||(i=new Rectangle);let n=e.east,r=e.west,o=t.east,a=t.west;n<r&&o>0?n+=CesiumMath.TWO_PI:o<a&&n>0&&(o+=CesiumMath.TWO_PI),n<r&&a<0?a+=CesiumMath.TWO_PI:o<a&&r<0&&(r+=CesiumMath.TWO_PI);const s=CesiumMath.negativePiToPi(Math.min(r,a)),c=CesiumMath.negativePiToPi(Math.max(n,o));return i.west=s,i.south=Math.min(e.south,t.south),i.east=c,i.north=Math.max(e.north,t.north),i},Rectangle.expand=function(e,t,i){return defined(i)||(i=new Rectangle),i.west=Math.min(e.west,t.longitude),i.south=Math.min(e.south,t.latitude),i.east=Math.max(e.east,t.longitude),i.north=Math.max(e.north,t.latitude),i},Rectangle.contains=function(e,t){let i=t.longitude;const n=t.latitude,r=e.west;let o=e.east;return o<r&&(o+=CesiumMath.TWO_PI,i<0&&(i+=CesiumMath.TWO_PI)),(i>r||CesiumMath.equalsEpsilon(i,r,CesiumMath.EPSILON14))&&(i<o||CesiumMath.equalsEpsilon(i,o,CesiumMath.EPSILON14))&&n>=e.south&&n<=e.north};const subsampleLlaScratch=new Cartographic;function BoundingSphere(e,t){this.center=Cartesian3.clone(defaultValue(e,Cartesian3.ZERO)),this.radius=defaultValue(t,0)}Rectangle.subsample=function(e,t,i,n){t=defaultValue(t,Ellipsoid.WGS84),i=defaultValue(i,0),defined(n)||(n=[]);let r=0;const o=e.north,a=e.south,s=e.east,c=e.west,l=subsampleLlaScratch;l.height=i,l.longitude=c,l.latitude=o,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.longitude=s,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.latitude=a,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.longitude=c,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.latitude=o<0?o:a>0?a:0;for(let i=1;i<8;++i)l.longitude=-Math.PI+i*CesiumMath.PI_OVER_TWO,Rectangle.contains(e,l)&&(n[r]=t.cartographicToCartesian(l,n[r]),r++);return 0===l.latitude&&(l.longitude=c,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.longitude=s,n[r]=t.cartographicToCartesian(l,n[r]),r++),n.length=r,n},Rectangle.subsection=function(e,t,i,n,r,o){if(defined(o)||(o=new Rectangle),e.west<=e.east){const i=e.east-e.west;o.west=e.west+t*i,o.east=e.west+n*i}else{const i=CesiumMath.TWO_PI+e.east-e.west;o.west=CesiumMath.negativePiToPi(e.west+t*i),o.east=CesiumMath.negativePiToPi(e.west+n*i)}const a=e.north-e.south;return o.south=e.south+i*a,o.north=e.south+r*a,1===t&&(o.west=e.east),1===n&&(o.east=e.east),1===i&&(o.south=e.north),1===r&&(o.north=e.north),o},Rectangle.MAX_VALUE=Object.freeze(new Rectangle(-Math.PI,-CesiumMath.PI_OVER_TWO,Math.PI,CesiumMath.PI_OVER_TWO));const fromPointsXMin=new Cartesian3,fromPointsYMin=new Cartesian3,fromPointsZMin=new Cartesian3,fromPointsXMax=new Cartesian3,fromPointsYMax=new Cartesian3,fromPointsZMax=new Cartesian3,fromPointsCurrentPos=new Cartesian3,fromPointsScratch=new Cartesian3,fromPointsRitterCenter=new Cartesian3,fromPointsMinBoxPt=new Cartesian3,fromPointsMaxBoxPt=new Cartesian3,fromPointsNaiveCenterScratch=new Cartesian3,volumeConstant=4/3*CesiumMath.PI;BoundingSphere.fromPoints=function(e,t){if(defined(t)||(t=new BoundingSphere),!defined(e)||0===e.length)return t.center=Cartesian3.clone(Cartesian3.ZERO,t.center),t.radius=0,t;const i=Cartesian3.clone(e[0],fromPointsCurrentPos),n=Cartesian3.clone(i,fromPointsXMin),r=Cartesian3.clone(i,fromPointsYMin),o=Cartesian3.clone(i,fromPointsZMin),a=Cartesian3.clone(i,fromPointsXMax),s=Cartesian3.clone(i,fromPointsYMax),c=Cartesian3.clone(i,fromPointsZMax),l=e.length;let u;for(u=1;u<l;u++){Cartesian3.clone(e[u],i);const t=i.x,l=i.y,d=i.z;t<n.x&&Cartesian3.clone(i,n),t>a.x&&Cartesian3.clone(i,a),l<r.y&&Cartesian3.clone(i,r),l>s.y&&Cartesian3.clone(i,s),d<o.z&&Cartesian3.clone(i,o),d>c.z&&Cartesian3.clone(i,c)}const d=Cartesian3.magnitudeSquared(Cartesian3.subtract(a,n,fromPointsScratch)),h=Cartesian3.magnitudeSquared(Cartesian3.subtract(s,r,fromPointsScratch)),p=Cartesian3.magnitudeSquared(Cartesian3.subtract(c,o,fromPointsScratch));let f=n,m=a,g=d;h>g&&(g=h,f=r,m=s),p>g&&(g=p,f=o,m=c);const _=fromPointsRitterCenter;_.x=.5*(f.x+m.x),_.y=.5*(f.y+m.y),_.z=.5*(f.z+m.z);let y=Cartesian3.magnitudeSquared(Cartesian3.subtract(m,_,fromPointsScratch)),C=Math.sqrt(y);const v=fromPointsMinBoxPt;v.x=n.x,v.y=r.y,v.z=o.z;const T=fromPointsMaxBoxPt;T.x=a.x,T.y=s.y,T.z=c.z;const S=Cartesian3.midpoint(v,T,fromPointsNaiveCenterScratch);let A=0;for(u=0;u<l;u++){Cartesian3.clone(e[u],i);const t=Cartesian3.magnitude(Cartesian3.subtract(i,S,fromPointsScratch));t>A&&(A=t);const n=Cartesian3.magnitudeSquared(Cartesian3.subtract(i,_,fromPointsScratch));if(n>y){const e=Math.sqrt(n);C=.5*(C+e),y=C*C;const t=e-C;_.x=(C*_.x+t*i.x)/e,_.y=(C*_.y+t*i.y)/e,_.z=(C*_.z+t*i.z)/e}}return C<A?(Cartesian3.clone(_,t.center),t.radius=C):(Cartesian3.clone(S,t.center),t.radius=A),t};const defaultProjection$1=new GeographicProjection,fromRectangle2DLowerLeft=new Cartesian3,fromRectangle2DUpperRight=new Cartesian3,fromRectangle2DSouthwest=new Cartographic,fromRectangle2DNortheast=new Cartographic;BoundingSphere.fromRectangle2D=function(e,t,i){return BoundingSphere.fromRectangleWithHeights2D(e,t,0,0,i)},BoundingSphere.fromRectangleWithHeights2D=function(e,t,i,n,r){if(defined(r)||(r=new BoundingSphere),!defined(e))return r.center=Cartesian3.clone(Cartesian3.ZERO,r.center),r.radius=0,r;t=defaultValue(t,defaultProjection$1),Rectangle.southwest(e,fromRectangle2DSouthwest),fromRectangle2DSouthwest.height=i,Rectangle.northeast(e,fromRectangle2DNortheast),fromRectangle2DNortheast.height=n;const o=t.project(fromRectangle2DSouthwest,fromRectangle2DLowerLeft),a=t.project(fromRectangle2DNortheast,fromRectangle2DUpperRight),s=a.x-o.x,c=a.y-o.y,l=a.z-o.z;r.radius=.5*Math.sqrt(s*s+c*c+l*l);const u=r.center;return u.x=o.x+.5*s,u.y=o.y+.5*c,u.z=o.z+.5*l,r};const fromRectangle3DScratch=[];BoundingSphere.fromRectangle3D=function(e,t,i,n){if(t=defaultValue(t,Ellipsoid.WGS84),i=defaultValue(i,0),defined(n)||(n=new BoundingSphere),!defined(e))return n.center=Cartesian3.clone(Cartesian3.ZERO,n.center),n.radius=0,n;const r=Rectangle.subsample(e,t,i,fromRectangle3DScratch);return BoundingSphere.fromPoints(r,n)},BoundingSphere.fromVertices=function(e,t,i,n){if(defined(n)||(n=new BoundingSphere),!defined(e)||0===e.length)return n.center=Cartesian3.clone(Cartesian3.ZERO,n.center),n.radius=0,n;t=defaultValue(t,Cartesian3.ZERO),i=defaultValue(i,3);const r=fromPointsCurrentPos;r.x=e[0]+t.x,r.y=e[1]+t.y,r.z=e[2]+t.z;const o=Cartesian3.clone(r,fromPointsXMin),a=Cartesian3.clone(r,fromPointsYMin),s=Cartesian3.clone(r,fromPointsZMin),c=Cartesian3.clone(r,fromPointsXMax),l=Cartesian3.clone(r,fromPointsYMax),u=Cartesian3.clone(r,fromPointsZMax),d=e.length;let h;for(h=0;h<d;h+=i){const i=e[h]+t.x,n=e[h+1]+t.y,d=e[h+2]+t.z;r.x=i,r.y=n,r.z=d,i<o.x&&Cartesian3.clone(r,o),i>c.x&&Cartesian3.clone(r,c),n<a.y&&Cartesian3.clone(r,a),n>l.y&&Cartesian3.clone(r,l),d<s.z&&Cartesian3.clone(r,s),d>u.z&&Cartesian3.clone(r,u)}const p=Cartesian3.magnitudeSquared(Cartesian3.subtract(c,o,fromPointsScratch)),f=Cartesian3.magnitudeSquared(Cartesian3.subtract(l,a,fromPointsScratch)),m=Cartesian3.magnitudeSquared(Cartesian3.subtract(u,s,fromPointsScratch));let g=o,_=c,y=p;f>y&&(y=f,g=a,_=l),m>y&&(y=m,g=s,_=u);const C=fromPointsRitterCenter;C.x=.5*(g.x+_.x),C.y=.5*(g.y+_.y),C.z=.5*(g.z+_.z);let v=Cartesian3.magnitudeSquared(Cartesian3.subtract(_,C,fromPointsScratch)),T=Math.sqrt(v);const S=fromPointsMinBoxPt;S.x=o.x,S.y=a.y,S.z=s.z;const A=fromPointsMaxBoxPt;A.x=c.x,A.y=l.y,A.z=u.z;const b=Cartesian3.midpoint(S,A,fromPointsNaiveCenterScratch);let E=0;for(h=0;h<d;h+=i){r.x=e[h]+t.x,r.y=e[h+1]+t.y,r.z=e[h+2]+t.z;const i=Cartesian3.magnitude(Cartesian3.subtract(r,b,fromPointsScratch));i>E&&(E=i);const n=Cartesian3.magnitudeSquared(Cartesian3.subtract(r,C,fromPointsScratch));if(n>v){const e=Math.sqrt(n);T=.5*(T+e),v=T*T;const t=e-T;C.x=(T*C.x+t*r.x)/e,C.y=(T*C.y+t*r.y)/e,C.z=(T*C.z+t*r.z)/e}}return T<E?(Cartesian3.clone(C,n.center),n.radius=T):(Cartesian3.clone(b,n.center),n.radius=E),n},BoundingSphere.fromEncodedCartesianVertices=function(e,t,i){if(defined(i)||(i=new BoundingSphere),!defined(e)||!defined(t)||e.length!==t.length||0===e.length)return i.center=Cartesian3.clone(Cartesian3.ZERO,i.center),i.radius=0,i;const n=fromPointsCurrentPos;n.x=e[0]+t[0],n.y=e[1]+t[1],n.z=e[2]+t[2];const r=Cartesian3.clone(n,fromPointsXMin),o=Cartesian3.clone(n,fromPointsYMin),a=Cartesian3.clone(n,fromPointsZMin),s=Cartesian3.clone(n,fromPointsXMax),c=Cartesian3.clone(n,fromPointsYMax),l=Cartesian3.clone(n,fromPointsZMax),u=e.length;let d;for(d=0;d<u;d+=3){const i=e[d]+t[d],u=e[d+1]+t[d+1],h=e[d+2]+t[d+2];n.x=i,n.y=u,n.z=h,i<r.x&&Cartesian3.clone(n,r),i>s.x&&Cartesian3.clone(n,s),u<o.y&&Cartesian3.clone(n,o),u>c.y&&Cartesian3.clone(n,c),h<a.z&&Cartesian3.clone(n,a),h>l.z&&Cartesian3.clone(n,l)}const h=Cartesian3.magnitudeSquared(Cartesian3.subtract(s,r,fromPointsScratch)),p=Cartesian3.magnitudeSquared(Cartesian3.subtract(c,o,fromPointsScratch)),f=Cartesian3.magnitudeSquared(Cartesian3.subtract(l,a,fromPointsScratch));let m=r,g=s,_=h;p>_&&(_=p,m=o,g=c),f>_&&(_=f,m=a,g=l);const y=fromPointsRitterCenter;y.x=.5*(m.x+g.x),y.y=.5*(m.y+g.y),y.z=.5*(m.z+g.z);let C=Cartesian3.magnitudeSquared(Cartesian3.subtract(g,y,fromPointsScratch)),v=Math.sqrt(C);const T=fromPointsMinBoxPt;T.x=r.x,T.y=o.y,T.z=a.z;const S=fromPointsMaxBoxPt;S.x=s.x,S.y=c.y,S.z=l.z;const A=Cartesian3.midpoint(T,S,fromPointsNaiveCenterScratch);let b=0;for(d=0;d<u;d+=3){n.x=e[d]+t[d],n.y=e[d+1]+t[d+1],n.z=e[d+2]+t[d+2];const i=Cartesian3.magnitude(Cartesian3.subtract(n,A,fromPointsScratch));i>b&&(b=i);const r=Cartesian3.magnitudeSquared(Cartesian3.subtract(n,y,fromPointsScratch));if(r>C){const e=Math.sqrt(r);v=.5*(v+e),C=v*v;const t=e-v;y.x=(v*y.x+t*n.x)/e,y.y=(v*y.y+t*n.y)/e,y.z=(v*y.z+t*n.z)/e}}return v<b?(Cartesian3.clone(y,i.center),i.radius=v):(Cartesian3.clone(A,i.center),i.radius=b),i},BoundingSphere.fromCornerPoints=function(e,t,i){defined(i)||(i=new BoundingSphere);const n=Cartesian3.midpoint(e,t,i.center);return i.radius=Cartesian3.distance(n,t),i},BoundingSphere.fromEllipsoid=function(e,t){return defined(t)||(t=new BoundingSphere),Cartesian3.clone(Cartesian3.ZERO,t.center),t.radius=e.maximumRadius,t};const fromBoundingSpheresScratch=new Cartesian3;BoundingSphere.fromBoundingSpheres=function(e,t){if(defined(t)||(t=new BoundingSphere),!defined(e)||0===e.length)return t.center=Cartesian3.clone(Cartesian3.ZERO,t.center),t.radius=0,t;const i=e.length;if(1===i)return BoundingSphere.clone(e[0],t);if(2===i)return BoundingSphere.union(e[0],e[1],t);const n=[];let r;for(r=0;r<i;r++)n.push(e[r].center);const o=(t=BoundingSphere.fromPoints(n,t)).center;let a=t.radius;for(r=0;r<i;r++){const t=e[r];a=Math.max(a,Cartesian3.distance(o,t.center,fromBoundingSpheresScratch)+t.radius)}return t.radius=a,t};const fromOrientedBoundingBoxScratchU=new Cartesian3,fromOrientedBoundingBoxScratchV=new Cartesian3,fromOrientedBoundingBoxScratchW=new Cartesian3;BoundingSphere.fromOrientedBoundingBox=function(e,t){defined(t)||(t=new BoundingSphere);const i=e.halfAxes,n=Matrix3.getColumn(i,0,fromOrientedBoundingBoxScratchU),r=Matrix3.getColumn(i,1,fromOrientedBoundingBoxScratchV),o=Matrix3.getColumn(i,2,fromOrientedBoundingBoxScratchW);return Cartesian3.add(n,r,n),Cartesian3.add(n,o,n),t.center=Cartesian3.clone(e.center,t.center),t.radius=Cartesian3.magnitude(n),t};const scratchFromTransformationCenter=new Cartesian3,scratchFromTransformationScale=new Cartesian3;BoundingSphere.fromTransformation=function(e,t){defined(t)||(t=new BoundingSphere);const i=Matrix4.getTranslation(e,scratchFromTransformationCenter),n=Matrix4.getScale(e,scratchFromTransformationScale),r=.5*Cartesian3.magnitude(n);return t.center=Cartesian3.clone(i,t.center),t.radius=r,t},BoundingSphere.clone=function(e,t){if(defined(e))return defined(t)?(t.center=Cartesian3.clone(e.center,t.center),t.radius=e.radius,t):new BoundingSphere(e.center,e.radius)},BoundingSphere.packedLength=4,BoundingSphere.pack=function(e,t,i){i=defaultValue(i,0);const n=e.center;return t[i++]=n.x,t[i++]=n.y,t[i++]=n.z,t[i]=e.radius,t},BoundingSphere.unpack=function(e,t,i){t=defaultValue(t,0),defined(i)||(i=new BoundingSphere);const n=i.center;return n.x=e[t++],n.y=e[t++],n.z=e[t++],i.radius=e[t],i};const unionScratch=new Cartesian3,unionScratchCenter=new Cartesian3;BoundingSphere.union=function(e,t,i){defined(i)||(i=new BoundingSphere);const n=e.center,r=e.radius,o=t.center,a=t.radius,s=Cartesian3.subtract(o,n,unionScratch),c=Cartesian3.magnitude(s);if(r>=c+a)return e.clone(i),i;if(a>=c+r)return t.clone(i),i;const l=.5*(r+c+a),u=Cartesian3.multiplyByScalar(s,(-r+l)/c,unionScratchCenter);return Cartesian3.add(u,n,u),Cartesian3.clone(u,i.center),i.radius=l,i};const expandScratch=new Cartesian3;BoundingSphere.expand=function(e,t,i){i=BoundingSphere.clone(e,i);const n=Cartesian3.magnitude(Cartesian3.subtract(t,i.center,expandScratch));return n>i.radius&&(i.radius=n),i},BoundingSphere.intersectPlane=function(e,t){const i=e.center,n=e.radius,r=t.normal,o=Cartesian3.dot(r,i)+t.distance;return o<-n?Intersect$1.OUTSIDE:o<n?Intersect$1.INTERSECTING:Intersect$1.INSIDE},BoundingSphere.transform=function(e,t,i){return defined(i)||(i=new BoundingSphere),i.center=Matrix4.multiplyByPoint(t,e.center,i.center),i.radius=Matrix4.getMaximumScale(t)*e.radius,i};const distanceSquaredToScratch=new Cartesian3;BoundingSphere.distanceSquaredTo=function(e,t){const i=Cartesian3.subtract(e.center,t,distanceSquaredToScratch),n=Cartesian3.magnitude(i)-e.radius;return n<=0?0:n*n},BoundingSphere.transformWithoutScale=function(e,t,i){return defined(i)||(i=new BoundingSphere),i.center=Matrix4.multiplyByPoint(t,e.center,i.center),i.radius=e.radius,i};const scratchCartesian3$d=new Cartesian3;BoundingSphere.computePlaneDistances=function(e,t,i,n){defined(n)||(n=new Interval);const r=Cartesian3.subtract(e.center,t,scratchCartesian3$d),o=Cartesian3.dot(i,r);return n.start=o-e.radius,n.stop=o+e.radius,n};const projectTo2DNormalScratch=new Cartesian3,projectTo2DEastScratch=new Cartesian3,projectTo2DNorthScratch=new Cartesian3,projectTo2DWestScratch=new Cartesian3,projectTo2DSouthScratch=new Cartesian3,projectTo2DCartographicScratch=new Cartographic,projectTo2DPositionsScratch=new Array(8);for(let e=0;e<8;++e)projectTo2DPositionsScratch[e]=new Cartesian3;const projectTo2DProjection=new GeographicProjection;BoundingSphere.projectTo2D=function(e,t,i){const n=(t=defaultValue(t,projectTo2DProjection)).ellipsoid;let r=e.center;const o=e.radius;let a;a=Cartesian3.equals(r,Cartesian3.ZERO)?Cartesian3.clone(Cartesian3.UNIT_X,projectTo2DNormalScratch):n.geodeticSurfaceNormal(r,projectTo2DNormalScratch);const s=Cartesian3.cross(Cartesian3.UNIT_Z,a,projectTo2DEastScratch);Cartesian3.normalize(s,s);const c=Cartesian3.cross(a,s,projectTo2DNorthScratch);Cartesian3.normalize(c,c),Cartesian3.multiplyByScalar(a,o,a),Cartesian3.multiplyByScalar(c,o,c),Cartesian3.multiplyByScalar(s,o,s);const l=Cartesian3.negate(c,projectTo2DSouthScratch),u=Cartesian3.negate(s,projectTo2DWestScratch),d=projectTo2DPositionsScratch;let h=d[0];Cartesian3.add(a,c,h),Cartesian3.add(h,s,h),h=d[1],Cartesian3.add(a,c,h),Cartesian3.add(h,u,h),h=d[2],Cartesian3.add(a,l,h),Cartesian3.add(h,u,h),h=d[3],Cartesian3.add(a,l,h),Cartesian3.add(h,s,h),Cartesian3.negate(a,a),h=d[4],Cartesian3.add(a,c,h),Cartesian3.add(h,s,h),h=d[5],Cartesian3.add(a,c,h),Cartesian3.add(h,u,h),h=d[6],Cartesian3.add(a,l,h),Cartesian3.add(h,u,h),h=d[7],Cartesian3.add(a,l,h),Cartesian3.add(h,s,h);const p=d.length;for(let e=0;e<p;++e){const i=d[e];Cartesian3.add(r,i,i);const o=n.cartesianToCartographic(i,projectTo2DCartographicScratch);t.project(o,i)}r=(i=BoundingSphere.fromPoints(d,i)).center;const f=r.x,m=r.y,g=r.z;return r.x=g,r.y=f,r.z=m,i},BoundingSphere.isOccluded=function(e,t){return!t.isBoundingSphereVisible(e)},BoundingSphere.equals=function(e,t){return e===t||defined(e)&&defined(t)&&Cartesian3.equals(e.center,t.center)&&e.radius===t.radius},BoundingSphere.prototype.intersectPlane=function(e){return BoundingSphere.intersectPlane(this,e)},BoundingSphere.prototype.distanceSquaredTo=function(e){return BoundingSphere.distanceSquaredTo(this,e)},BoundingSphere.prototype.computePlaneDistances=function(e,t,i){return BoundingSphere.computePlaneDistances(this,e,t,i)},BoundingSphere.prototype.isOccluded=function(e){return BoundingSphere.isOccluded(this,e)},BoundingSphere.prototype.equals=function(e){return BoundingSphere.equals(this,e)},BoundingSphere.prototype.clone=function(e){return BoundingSphere.clone(this,e)},BoundingSphere.prototype.volume=function(){const e=this.radius;return volumeConstant*e*e*e};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return commonjsRequire(e,null==t?i.path:t)}},i.exports),i.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var punycode=createCommonjsModule((function(e,t){!function(i){var n=t&&!t.nodeType&&t,r=e&&!e.nodeType&&e,o="object"==typeof commonjsGlobal&&commonjsGlobal;o.global!==o&&o.window!==o&&o.self!==o||(i=o);var a,s,c=2147483647,l=36,u=/^xn--/,d=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(p[e])}function _(e,t){for(var i=e.length,n=[];i--;)n[i]=t(e[i]);return n}function y(e,t){var i=e.split("@"),n="";return i.length>1&&(n=i[0]+"@",e=i[1]),n+_((e=e.replace(h,".")).split("."),t).join(".")}function C(e){for(var t,i,n=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(i=e.charCodeAt(r++)))?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),r--):n.push(t);return n}function v(e){return _(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+m(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,i){var n=0;for(e=i?f(e/700):e>>1,e+=f(e/t);e>455;n+=l)e=f(e/35);return f(n+36*e/(e+38))}function A(e){var t,i,n,r,o,a,s,u,d,h,p,m=[],_=e.length,y=0,C=128,T=72;for((i=e.lastIndexOf("-"))<0&&(i=0),n=0;n<i;++n)e.charCodeAt(n)>=128&&g("not-basic"),m.push(e.charCodeAt(n));for(r=i>0?i+1:0;r<_;){for(o=y,a=1,s=l;r>=_&&g("invalid-input"),((u=(p=e.charCodeAt(r++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l)>=l||u>f((c-y)/a))&&g("overflow"),y+=u*a,!(u<(d=s<=T?1:s>=T+26?26:s-T));s+=l)a>f(c/(h=l-d))&&g("overflow"),a*=h;T=S(y-o,t=m.length+1,0==o),f(y/t)>c-C&&g("overflow"),C+=f(y/t),y%=t,m.splice(y++,0,C)}return v(m)}function b(e){var t,i,n,r,o,a,s,u,d,h,p,_,y,v,A,b=[];for(_=(e=C(e)).length,t=128,i=0,o=72,a=0;a<_;++a)(p=e[a])<128&&b.push(m(p));for(n=r=b.length,r&&b.push("-");n<_;){for(s=c,a=0;a<_;++a)(p=e[a])>=t&&p<s&&(s=p);for(s-t>f((c-i)/(y=n+1))&&g("overflow"),i+=(s-t)*y,t=s,a=0;a<_;++a)if((p=e[a])<t&&++i>c&&g("overflow"),p==t){for(u=i,d=l;!(u<(h=d<=o?1:d>=o+26?26:d-o));d+=l)A=u-h,v=l-h,b.push(m(T(h+A%v,0))),u=f(A/v);b.push(m(T(u,0))),o=S(i,y,n==r),i=0,++n}++i,++t}return b.join("")}if(a={version:"1.3.2",ucs2:{decode:C,encode:v},decode:A,encode:b,toASCII:function(e){return y(e,(function(e){return d.test(e)?"xn--"+b(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?A(e.slice(4).toLowerCase()):e}))}},n&&r)if(e.exports==n)r.exports=a;else for(s in a)a.hasOwnProperty(s)&&(n[s]=a[s]);else i.punycode=a}(commonjsGlobal)})),IPv6=createCommonjsModule((function(e){
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("ANOVGIS",[],t):"object"==typeof exports?exports.ANOVGIS=t():e.ANOVGIS=t()}(self,(()=>(()=>{var __webpack_modules__={480:(e,t,i)=>{"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function s(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}i.r(t),i.d(t,{Billboard:()=>mi,BillboardPrimitive:()=>dt,BounceBillboardPrimitive:()=>gt,BounceLabelPrimitive:()=>bt,Box:()=>yi,CesiumHeatMap:()=>Hs,CesiumView:()=>Xi,CesiumWaterAnalysis:()=>As,Cesium_PART:()=>lr,Circle:()=>Ai,CircleBlurMaterial:()=>Aa(),CircleBlurMaterialProperty:()=>Qa,CircleWaveMaterialProperty:()=>as,CloudPrimitive:()=>Pt,ClusterLayer:()=>Co,CopyRight:()=>yn,Corridor:()=>Pi,Cylinder:()=>Mi,CzmlLayer:()=>So,DiffuseWallPrimitive:()=>Rt,DivIcon:()=>tt,DomUtil:()=>j,DrawBase:()=>hs,DrawCircle:()=>Ss,DrawPoint:()=>fs,DrawPolyLine:()=>ys,DrawPolygon:()=>gs,DrawRectangle:()=>vs,DynamicLayer:()=>Eo,ElecEllipsoidPrimitive:()=>Bt,Ellipse:()=>Oi,Ellipsoid:()=>Fi,Event:()=>le,FeatureGridLayer:()=>Io,FeatureInfoUtil:()=>ir,FlowLinePrimitive:()=>Vt,FlyEventType:()=>se,FlyManager:()=>dc,GeoJsonLayer:()=>co,GeocoderFactory:()=>_n,GeocoderType:()=>dn,GlobeRotate:()=>ac,GpxLayer:()=>Lo,Graphic:()=>Ve,GraphicEvent:()=>Kr,GraphicEventType:()=>te,GraphicType:()=>we,GroundPrimitiveLayer:()=>No,GroundSkyBox:()=>jn,HeatMapLayer:()=>$s,HtmlLayer:()=>$o,ImageryLayerFactory:()=>ho,ImageryType:()=>c,KeyboardRoaming:()=>hc,KmlLayer:()=>zo,Label:()=>Ui,LabelLayer:()=>jo,LabelPrimitive:()=>Ct,LayerControlUitl:()=>ar,LayerEvent:()=>Xr,LayerEventType:()=>ne,LayerGroupEvent:()=>jr,LayerGroupEventType:()=>ie,LightCylinderPrimitive:()=>zt,LocateUtil:()=>Xn,MapInfo:()=>rr,Model:()=>ot,ModelPrimitive:()=>jt,MouseEvent:()=>$r,MouseEventType:()=>Q,NoDepthTestPolylineCollection:()=>ds,Parse:()=>Ne,PathEvent:()=>eo,PathEventType:()=>oe,Plane:()=>Hi,PlotEvent:()=>io,PlotEventType:()=>ae,PoiSearch:()=>or,Point:()=>fr,PointPrimitive:()=>Kt,Polygon:()=>yr,Polyline:()=>Sr,PolylineFlowMaterialProperty:()=>ja,PolylineGlowMaterial:()=>sa(),PolylineGlowMaterialProperty:()=>$a,PolylineGradientMaterial:()=>da(),PolylineGradientMaterialProperty:()=>za,PolylineImageTrailMaterial:()=>oa(),PolylineImageTrailMaterialProperty:()=>Oa,PolylineLightingMaterial:()=>la(),PolylineLightingMaterialProperty:()=>Fa,PolylineLightingTrailMaterial:()=>na(),PolylineLightingTrailMaterialProperty:()=>Pa,PolylinePrimitive:()=>Zt,PolylineTrailMaterialProperty:()=>Ma,PolylineVFlywireMaterial:()=>ma(),PolylineVFlywireMaterialPoperty:()=>Ya,PolylineVolume:()=>xr,Position:()=>fe,PrimitiveLayer:()=>Yo,Rect:()=>Ir,RoamingController:()=>pc,RoamingPath:()=>fc,ScanCirclePrimitive:()=>ii,SceneEvent:()=>Hr,SceneEventType:()=>ee,ShapeUtil:()=>tr,SplitImageLayer:()=>po,State:()=>Me,ThreeCoordTransform:()=>y,ThreeLayer:()=>_c,TiandituGeocoder:()=>un,TiandituGeocoderService:()=>nn,TiandituGeocoderService_shanxi:()=>on,Tileset:()=>ct,TilesetLayer:()=>Qo,TopoJsonLayer:()=>ta,TrackEvent:()=>Qr,TrackEventType:()=>re,TrailLinePrimitive:()=>oi,Transform:()=>_e,TranslateLocal:()=>sr,Util:()=>W,VectorLayer:()=>oo,VideoPrimitive:()=>ci,Viewer:()=>An,ViewerEvent:()=>Gr,ViewerEventType:()=>Z,Wall:()=>Br,WallFlowMaterialProperty:()=>ls,WallGradientMaterialProperty:()=>ns,WaterMaterialProperty:()=>es,WaterPrimitive:()=>di,Weather:()=>tc,WidgetEventType:()=>ce,WidgetsControl:()=>cr,WktUtil:()=>er,area:()=>$e,bounds:()=>Ue,center:()=>Ge,curve:()=>ze,distance:()=>We,distanceSquared:()=>je,heading:()=>qe,isBetween:()=>Xe,midCartesian:()=>Ye,midPosition:()=>Ke,parabola:()=>Je});const c={ARCGIS:"arcgis",SINGLE_TILE:"single_tile",WMS:"wms",WMTS:"wmts",XYZ:"xyz",COORD:"coord",GRID:"grid",MAPBOX:"mapbox",MAPBOX_STYLE:"mapbox_style",TMS:"tms",AMAP:"amap",BAIDU:"baidu",TDT:"tdt",TENCENT:"tencent",Google:"google"};function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return d(e)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=52.35987755982988,m=3.141592653589793,g=6378245,_=.006693421622965943;const y=function(){function e(){n(this,e)}return s(e,null,[{key:"BD09ToGCJ02",value:function(e,t){var i=+e-.0065,n=+t-.006,r=Math.sqrt(i*i+n*n)-2e-5*Math.sin(n*f),o=Math.atan2(n,i)-3e-6*Math.cos(i*f);return[r*Math.cos(o),r*Math.sin(o)]}},{key:"GCJ02ToBD09",value:function(e,t){t=+t,e=+e;var i=Math.sqrt(e*e+t*t)+2e-5*Math.sin(t*f),n=Math.atan2(t,e)+3e-6*Math.cos(e*f);return[i*Math.cos(n)+.0065,i*Math.sin(n)+.006]}},{key:"WGS84ToGCJ02",value:function(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];var i=this.delta(e,t);return[e+i[0],t+i[1]]}},{key:"GCJ02ToWGS84",value:function(e,t){if(t=+t,e=+e,this.out_of_china(e,t))return[e,t];var i=this.delta(e,t);return[2*e-(e+i[0]),2*t-(t+i[1])]}},{key:"delta",value:function(e,t){var i=this.transformLng(e-105,t-35),n=this.transformLat(e-105,t-35),r=t/180*m,o=Math.sin(r);o=1-_*o*o;var a=Math.sqrt(o);return[i=180*i/(g/a*Math.cos(r)*m),n=180*n/(g*(1-_)/(o*a)*m)]}},{key:"transformLng",value:function(e,t){var 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*m)+20*Math.sin(2*e*m))/3,i+=2*(20*Math.sin(e*m)+40*Math.sin(e/3*m))/3,i+=2*(150*Math.sin(e/12*m)+300*Math.sin(e/30*m))/3}},{key:"transformLat",value:function(e,t){var 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*m)+20*Math.sin(2*e*m))/3,i+=2*(20*Math.sin(t*m)+40*Math.sin(t/3*m))/3,i+=2*(160*Math.sin(t/12*m)+320*Math.sin(t*m/30))/3}},{key:"out_of_china",value:function(e,t){return t=+t,!((e=+e)>73.66&&e<135.05&&t>3.86&&t<53.55)}}]),e}();function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const v=function(e){u(i,Cesium.WebMercatorTilingScheme);var t=C(i);function i(e){var r;n(this,i),r=t.call(this,e);var o=new Cesium.WebMercatorProjection;return r._projection.project=function(e,t){return t=y.WGS84ToGCJ02(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude)),t=o.project(new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))),new Cesium.Cartesian2(t.x,t.y)},r._projection.unproject=function(e,t){var i=o.unproject(e);return t=y.GCJ02ToWGS84(Cesium.Math.toDegrees(i.longitude),Cesium.Math.toDegrees(i.latitude)),new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))},r}return s(i)}();function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const S=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=T(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),e.url="img"===e.style?"https://webst{s}.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}":"cva"===e.style?"https://webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}":"https://webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}",e.subdomains=e.subdomains||["01","02","03","04"],"WGS84"===e.crs&&(e.tilingScheme=new v),t.call(this,e)}return s(i)}();var A=[12890594.86,8362377.87,5591021,3481989.83,1678043.12,0],b=[75,60,45,30,15,0],E=[[1.410526172116255e-8,898305509648872e-20,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-.03801003308653,17337981.2],[-7.435856389565537e-9,8983055097726239e-21,-.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,10260144.86],[-3.030883460898826e-8,898305509983578e-20,.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,.32710905363475,6856817.37],[-1.981981304930552e-8,8983055099779535e-21,.03278182852591,40.31678527705744,.65659298677277,-4.44255534477492,.85341911805263,.12923347998204,-.04625736007561,4482777.06],[3.09191371068437e-9,8983055096812155e-21,6995724062e-14,23.10934304144901,-.00023663490511,-.6321817810242,-.00663494467273,.03430082397953,-.00466043876332,2555164.4],[2.890871144776878e-9,8983055095805407e-21,-3.068298e-8,7.47137025468032,-353937994e-14,-.02145144861037,-1234426596e-14,.00010322952773,-323890364e-14,826088.5]],x=[[-.0015702102444,111320.7020616939,0x60e374c3105a3,-0x24bb4115e2e164,0x5cc55543bb0ae8,-0x7ce070193f3784,0x5e7ca61ddf8150,-0x261a578d8b24d0,0x665d60f3742ca,82.5],[.0008277824516172526,111320.7020463578,647795574.6671607,-4082003173.641316,10774905663.51142,-15171875531.51559,12053065338.62167,-5124939663.577472,913311935.9512032,67.5],[.00337398766765,111320.7020202162,4481351.045890365,-23393751.19931662,79682215.47186455,-115964993.2797253,97236711.15602145,-43661946.33752821,8477230.501135234,52.5],[.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-.0003441963504368392,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-.0003218135878613132,111320.7020701615,.00369383431289,823725.6402795718,.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,.37238884252424,7.45]],P=function(){function e(){n(this,e),this.isWgs84=!1}return s(e,[{key:"getDistanceByMC",value:function(e,t){if(!e||!t)return 0;if(!(e=this.convertMC2LL(e)))return 0;var i=this.toRadians(e.lng),n=this.toRadians(e.lat);if(!(t=this.convertMC2LL(t)))return 0;var r=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(i,r,n,o)}},{key:"getDistanceByLL",value:function(e,t){if(!e||!t)return 0;e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74),t.lng=this.getLoop(t.lng,-180,180),t.lat=this.getRange(t.lat,-74,74);var i=this.toRadians(e.lng),n=this.toRadians(e.lat),r=this.toRadians(t.lng),o=this.toRadians(t.lat);return this.getDistance(i,r,n,o)}},{key:"convertMC2LL",value:function(e){if(!e)return{lng:0,lat:0};var t={};if(this.isWgs84){t.lng=e.lng/20037508.34*180;var i=e.lat/20037508.34*180;return t.lat=180/Math.PI*(2*Math.atan(Math.exp(i*Math.PI/180))-Math.PI/2),{lng:t.lng.toFixed(6),lat:t.lat.toFixed(6)}}Math.abs(e.lng);for(var n=Math.abs(e.lat),r=void 0,o=0;o<A.length;o++)if(n>=A[o]){r=E[o];break}return{lng:(t=this.convertor(e,r)).lng.toFixed(6),lat:t.lat.toFixed(6)}}},{key:"convertLL2MC",value:function(e){if(!e)return{lng:0,lat:0};if(e.lng>180||e.lng<-180||e.lat>90||e.lat<-90)return e;if(this.isWgs84){var t={},i=6378137;t.lng=e.lng*Math.PI/180*i;var n=e.lat*Math.PI/180;return t.lat=3189068.5*Math.log((1+Math.sin(n))/(1-Math.sin(n))),{lng:parseFloat(t.lng.toFixed(2)),lat:parseFloat(t.lat.toFixed(2))}}e.lng=this.getLoop(e.lng,-180,180),e.lat=this.getRange(e.lat,-74,74);e.lng;for(var r=e.lat,o=void 0,a=0;a<b.length;a++)if(r>=b[a]){o=x[a];break}if(!o)for(var s=0;s<b.length;s++)if(r<=-b[s]){o=x[s];break}var c=this.convertor(e,o);return{lng:parseFloat(c.lng.toFixed(2)),lat:parseFloat(c.lat.toFixed(2))}}},{key:"convertor",value:function(e,t){if(!e||!t)return{lng:0,lat:0};var i=t[0]+t[1]*Math.abs(e.lng),n=Math.abs(e.lat)/t[9],r=t[2]+t[3]*n+t[4]*n*n+t[5]*n*n*n+t[6]*n*n*n*n+t[7]*n*n*n*n*n+t[8]*n*n*n*n*n*n;return{lng:i*=e.lng<0?-1:1,lat:r*=e.lat<0?-1:1}}},{key:"getDistance",value:function(e,t,i,n){return 6370996.81*Math.acos(Math.sin(i)*Math.sin(n)+Math.cos(i)*Math.cos(n)*Math.cos(t-e))}},{key:"toRadians",value:function(e){return Math.PI*e/180}},{key:"toDegrees",value:function(e){return 180*e/Math.PI}},{key:"getRange",value:function(e,t,i){return null!=t&&(e=Math.max(e,t)),null!=i&&(e=Math.min(e,i)),e}},{key:"getLoop",value:function(e,t,i){for(;e>i;)e-=i-t;for(;e<t;)e+=i-t;return e}},{key:"lngLatToMercator",value:function(e){return this.convertLL2MC(e)}},{key:"lngLatToPoint",value:function(e){var t=this.convertLL2MC(e);return{x:t.lng,y:t.lat}}},{key:"mercatorToLngLat",value:function(e){return this.convertMC2LL(e)}},{key:"pointToLngLat",value:function(e){var t={lng:e.x,lat:e.y};return this.convertMC2LL(t)}},{key:"pointToPixel",value:function(e,t,i,n){if(!e)return{x:0,y:0};e=this.lngLatToMercator(e);var r=this.getZoomUnits(t);return{x:Math.round((e.lng-i.lng)/r+n.width/2),y:Math.round((i.lat-e.lat)/r+n.height/2)}}},{key:"pixelToPoint",value:function(e,t,i,n){if(!e)return{lng:0,lat:0};var r=this.getZoomUnits(t),o={lng:i.lng+r*(e.x-n.width/2),lat:i.lat-r*(e.y-n.height/2)};return this.mercatorToLngLat(o)}},{key:"getZoomUnits",value:function(e){return Math.pow(2,18-e)}}]),e}();const D=P;function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const M=function(e){u(i,Cesium.WebMercatorTilingScheme);var t=w(i);function i(e){var r;n(this,i),r=t.call(this,e);var o=new D;return r._projection.project=function(e,t){return t=t||{},t=y.WGS84ToGCJ02(Cesium.Math.toDegrees(e.longitude),Cesium.Math.toDegrees(e.latitude)),(t=y.GCJ02ToBD09(t[0],t[1]))[0]=Math.min(t[0],180),t[0]=Math.max(t[0],-180),t[1]=Math.min(t[1],74.000022),t[1]=Math.max(t[1],-71.988531),t=o.lngLatToPoint({lng:t[0],lat:t[1]}),new Cesium.Cartesian2(t.x,t.y)},r._projection.unproject=function(e,t){return t=t||{},t=o.mercatorToLngLat({lng:e.x,lat:e.y}),t=y.BD09ToGCJ02(t.lng,t.lat),t=y.GCJ02ToWGS84(t[0],t[1]),new Cesium.Cartographic(Cesium.Math.toRadians(t[0]),Cesium.Math.toRadians(t[1]))},r.resolutions=e.resolutions||[],r}return s(i,[{key:"tileXYToNativeRectangle",value:function(e,t,i,n){var r=this.resolutions[i],o=e*r,a=(e+1)*r,s=(1+(t=-t))*r,c=t*r;return Cesium.defined(n)?(n.west=o,n.south=c,n.east=a,n.north=s,n):new Cesium.Rectangle(o,c,a,s)}},{key:"positionToTileXY",value:function(e,t,i){var n=this._rectangle;if(Cesium.Rectangle.contains(n,e)){var r=this._projection.project(e);if(Cesium.defined(r)){var o=this.resolutions[t],a=Math.floor(r.x/o),s=-Math.floor(r.y/o);return Cesium.defined(i)?(i.x=a,i.y=s,i):new Cesium.Cartesian2(a,s)}}}}]),i}();const I=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n(this,e),this._url="img"===t.style?"http://shangetu{s}.map.bdimg.com/it/u=x={x};y={y};z={z};v=009;type=sate&fm=46":"vec"===t.style?"http://online{s}.map.bdimg.com/tile/?qt=tile&x={x}&y={y}&z={z}&styles=sl&v=020":"traffic"===t.style?"http://its.map.baidu.com:8002/traffic/TrafficTileService?time={time}&label={labelStyle}&v=016&level={z}&x={x}&y={y}&scaler=2":"http://api{s}.map.bdimg.com/customimage/tile?&x={x}&y={y}&z={z}&scale=1&customid={style}",this._labelStyle=t.labelStyle||"web2D",this._tileWidth=256,this._tileHeight=256,this._maximumLevel=18,this._crs=t.crs||"BD09","WGS84"===t.crs){for(var i=[],r=0;r<19;r++)i[r]=256*Math.pow(2,18-r);this._tilingScheme=new M({resolutions:i,rectangleSouthwestInMeters:new Cesium.Cartesian2(-20037726.37,-12474104.17),rectangleNortheastInMeters:new Cesium.Cartesian2(20037726.37,12474104.17)})}else this._tilingScheme=new Cesium.WebMercatorTilingScheme({rectangleSouthwestInMeters:new Cesium.Cartesian2(-33554054,-33746824),rectangleNortheastInMeters:new Cesium.Cartesian2(33554054,33746824)});this._rectangle=this._tilingScheme.rectangle,this._credit=void 0,this._token=void 0,this._style=t.style||"normal"}return s(e,[{key:"url",get:function(){return this._url}},{key:"token",get:function(){return this._token}},{key:"tileWidth",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},{key:"tileHeight",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},{key:"maximumLevel",get:function(){if(!this.ready)throw new Cesium.DeveloperError("maximumLevel must not be called before the imagery provider is ready.");return this._maximumLevel}},{key:"minimumLevel",get:function(){if(!this.ready)throw new Cesium.DeveloperError("minimumLevel must not be called before the imagery provider is ready.");return 0}},{key:"tilingScheme",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},{key:"rectangle",get:function(){if(!this.ready)throw new Cesium.DeveloperError("rectangle must not be called before the imagery provider is ready.");return this._rectangle}},{key:"ready",get:function(){return!!this._url}},{key:"credit",get:function(){return this._credit}},{key:"hasAlphaChannel",get:function(){return!0}},{key:"getTileCredits",value:function(e,t,i){}},{key:"requestImage",value:function(e,t,i){if(!this.ready)throw new Cesium.DeveloperError("requestImage must not be called before the imagery provider is ready.");var n=this._tilingScheme.getNumberOfXTilesAtLevel(i),r=this._tilingScheme.getNumberOfYTilesAtLevel(i),o=this._url.replace("{z}",i).replace("{s}",String(1)).replace("{style}",this._style).replace("{labelStyle}",this._labelStyle).replace("{time}",String((new Date).getTime()));return o="WGS84"===this._crs?o.replace("{x}",String(e)).replace("{y}",String(-t)):o.replace("{x}",String(e-n/2)).replace("{y}",String(r/2-t-1)),Cesium.ImageryProvider.loadImage(this,o)}}]),e}();function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const O=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=R(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,{url:[e.protocol||"","//t{s}.tianditu.gov.cn/DataServer?T={style}_w&x={x}&y={y}&l={z}&tk={key}".replace(/\{style\}/g,e.style||"vec").replace(/\{key\}/g,e.key||"")].join(""),subdomains:["0","1","2","3","4","5","6","7"],tilingScheme:new Cesium.WebMercatorTilingScheme,maximumLevel:18})}return s(i)}();function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const B=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=L(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,i);var r="img"===e.style?"https://p{s}.map.gtimg.com/sateTiles/{z}/{sx}/{sy}/{x}_{reverseY}.jpg?version=400":"https://rt{s}.map.gtimg.com/tile?z={z}&x={x}&y={reverseY}&styleid={style}&scene=0&version=347";return e.url=r.replace("{style}",e.style||1),e.subdomains=e.subdomains||["1","2","3"],"img"===e.style&&(e.customTags={sx:function(e,t,i,n){return t>>4},sy:function(e,t,i,n){return(1<<n)-i>>4}}),t.call(this,e)}return s(i)}();function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const N=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=F(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,{url:"https://gac-geo.googlecnapps.cn/maps/vt?lyrs={layer}&x={x}&y={y}&z={z}".replace("{layer}",e.lyrs||"s"),tilingScheme:new Cesium.WebMercatorTilingScheme,maximumLevel:25})}return s(i)}();function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const k=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=V(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),e.url||(e.url="http://map.geoq.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/tile/{z}/{y}/{x}"),e.crs&&"WGS84"!==e.crs||(e.tilingScheme=new v),t.call(this,e)}return s(i)}();function $(){return $="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,i){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(arguments.length<3?e:i):r.value}},$.apply(this,arguments)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const G=function(e){u(i,Cesium.UrlTemplateImageryProvider);var t=U(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._minLevel=r.minLevel,e._maxLevel=r.maxLevel,e}return s(i,[{key:"requestImage",value:function(e,t,n){if(!this.ready)throw new Cesium.DeveloperError("requestImage must not be called before the imagery provider is ready.");if(!(this._minLevel&&n<this._minLevel))return $(p(i.prototype),"requestImage",this).call(this,e,t,n)}}]),i}();var z="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),H=function(){function e(){n(this,e)}return s(e,null,[{key:"uuid",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"D",i=[];i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(var n=0;n<36;n++)i[n]||(e=0|16*Math.random(),i[n]=z[19===n?3&e|8:e]);return t+"-"+i.join("")}},{key:"merge",value:function(e){for(var t,i,n,r,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];for(i=0,n=a.length;i<n;i++)for(t in r=a[i])e[t]=r[t];return e}},{key:"splitWords",value:function(e){return this.trim(e).split(/\s+/)}},{key:"setOptions",value:function(e,t){for(var i in e.hasOwnProperty("options")||(e.options=e.options?Object.create(e.options):{}),t)e.options[i]=t[i];return e.options}},{key:"formatNum",value:function(e,t){var i=Math.pow(10,void 0===t?6:t);return Math.round(e*i)/i}},{key:"trim",value:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}},{key:"emptyImageUrl",value:function(){return"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}},{key:"checkPosition",value:function(e){return e&&e.hasOwnProperty("_lng")&&e.hasOwnProperty("_lat")&&e.hasOwnProperty("_alt")}},{key:"debounce",value:function(e,t){var i=null;return function(){i&&clearTimeout(i),i=setTimeout(e,t)}}},{key:"throttle",value:function(e,t){var i=!0;return function(){if(!i)return!1;i=!1,setTimeout((function(){e(),i=!0}),t)}}},{key:"dataURLtoBlob",value:function(e){for(var t=e.split(","),i=t[0].match(/:(.*?);/)[1],n=atob(t[1]),r=n.length,o=new Uint8Array(r);r--;)o[r]=n.charCodeAt(r);return new Blob([o],{type:i})}}]),e}();const W=H;const j=function(){function e(){n(this,e)}return s(e,null,[{key:"get",value:function(e){return"string"==typeof e?document.getElementById(e):e}},{key:"appendChild",value:function(e,t){if(e&&t)return t&&"string"==typeof t?(e.innerHTML||(e.innerHTML=""),e.innerHTML+=t):t&&t instanceof Element&&e.appendChild(t),e}},{key:"getStyle",value:function(e,t){var i=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(e,null);i=n?n[t]:null}return"auto"===i?null:i}},{key:"create",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=document.createElement(e);return n.className=t||"",i&&i.appendChild(n),n}},{key:"createByID",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=document.createElement(e);return n.id=t||"",i&&i.appendChild(n),n}},{key:"remove",value:function(e){var t=e.parentNode;t&&t.removeChild(e)}},{key:"empty",value:function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}},{key:"hasClass",value:function(e,t){if(void 0!==e.classList)return e.classList.contains(t);var i=this.getClass(e);return i.length>0&&new RegExp("(^|\\s)"+t+"(\\s|$)").test(i)}},{key:"addClass",value:function(e,t){if(void 0!==e.classList)for(var i=W.splitWords(t),n=0,r=i.length;n<r;n++)e.classList.add(i[n]);else if(!this.hasClass(e,t)){var o=this.getClass(e);this.setClass(e,(o?o+" ":"")+t)}}},{key:"removeClass",value:function(e,t){void 0!==e.classList?e.classList.remove(t):this.setClass(e,W.trim((" "+this.getClass(e)+" ").replace(" "+t+" "," ")))}},{key:"setClass",value:function(e,t){void 0===e.className.baseVal?e.className=t:e.className.baseVal=t}},{key:"getClass",value:function(e){return e.correspondingElement&&(e=e.correspondingElement),void 0===e.className.baseVal?e.className:e.className.baseVal}},{key:"createSvg",value:function(e,t,i,n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg:svg");r.setAttribute("class","svg-path"),r.setAttribute("width",e),r.setAttribute("height",t),r.setAttribute("viewBox","0 0 ".concat(e," ").concat(t));var o=document.createElementNS("http://www.w3.org/2000/svg","path");return o.setAttribute("d",i),r.appendChild(o),n&&n.appendChild(r),r}},{key:"parseDom",value:function(e,t,i){t=Cesium.defaultValue(t,!1);var n=document.createElement("div");return n.className=i||"",n.innerHTML=e,t?n:n.lastElementChild}},{key:"enterFullscreen",value:function(e){e&&(e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen&&e.webkitRequestFullscreen())}},{key:"exitFullscreen",value:function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()}},{key:"createVideo",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.create("video",t,i),r=this.create("source","",n);r.setAttribute("src",e),r.setAttribute("type","video/map4");var o=this.create("source","",n);return o.setAttribute("src",e),o.setAttribute("type","video/quicktime"),n}}]),e}();const q=function(){function e(){n(this,e)}return s(e,null,[{key:"getPopupDefaultDom",value:function(){var e=W.uuid();return'\n <div class="anov-divGraphic" id=\''.concat(e,'\'\n style="visibility:hidden"> \n <div class="anov-popup anov-popup-animation">\n <span class="anov-popup-close-button anov-popup-color closeButton">×</span>\n <div class="anov-popup-content-wrapper anov-popup-background">\n <div id="popup-m-').concat(e,'"\n class="anov-popup-content anov-popup-color">\n\n </div>\n </div>\n <div class="anov-popup-tip-container">\n <div class="anov-popup-tip anov-popup-background"></div>\n </div>\n </div>\n </div>\n ')}},{key:"getTooltipDefaultDom",value:function(){var e=W.uuid();return'\n <div class="anov-divGraphic " id=\''.concat(e,'\'\n style="visibility:hidden">\n <div id="tooltip-m-').concat(e,'" class="anov-tooltip anov-tooltip-top">\n\n </div>\n </div>\n ')}}]),e}();function X(e,t,i){return(t=o(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function Y(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function K(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Y(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var J={ADD:"add",REMOVE:"remove"},Q={LEFT_DOWN:Cesium.ScreenSpaceEventType.LEFT_DOWN,LEFT_UP:Cesium.ScreenSpaceEventType.LEFT_UP,CLICK:Cesium.ScreenSpaceEventType.LEFT_CLICK,RIGHT_DOWN:Cesium.ScreenSpaceEventType.RIGHT_DOWN,RIGHT_UP:Cesium.ScreenSpaceEventType.RIGHT_UP,RIGHT_CLICK:Cesium.ScreenSpaceEventType.RIGHT_CLICK,DB_CLICK:Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK,MOUSE_MOVE:Cesium.ScreenSpaceEventType.MOUSE_MOVE,WHEEL:Cesium.ScreenSpaceEventType.WHEEL,MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout"},Z={ADD_LAYER:"addLayer",REMOVE_LAYER:"removeLayer",ADD_EFFECT:"addEffect",REMOVE_EFFECT:"removeEffect",LEFT_DOWN:Cesium.ScreenSpaceEventType.LEFT_DOWN,LEFT_UP:Cesium.ScreenSpaceEventType.LEFT_UP,CLICK:Cesium.ScreenSpaceEventType.LEFT_CLICK,RIGHT_DOWN:Cesium.ScreenSpaceEventType.RIGHT_DOWN,RIGHT_UP:Cesium.ScreenSpaceEventType.RIGHT_UP,RIGHT_CLICK:Cesium.ScreenSpaceEventType.RIGHT_CLICK,DB_CLICK:Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK,MOUSE_MOVE:Cesium.ScreenSpaceEventType.MOUSE_MOVE,WHEEL:Cesium.ScreenSpaceEventType.WHEEL,FLY_COMPLETE:"flyComplete"},ee={CAMERA_MOVE_END:"cameraMoveEnd",CAMERA_CHANGED:"cameraChanged",PRE_UPDATE:"preUpdate",POST_UPDATE:"postUpdate",PRE_RENDER:"preRender",POST_RENDER:"postRender",MORPH_COMPLETE:"morphComplete",CLOCK_TICK:"clockTick",RENDER_ERROR:"renderError"},te=K(K({},J),{},{LEFT_DOWN:Cesium.ScreenSpaceEventType.LEFT_DOWN,LEFT_UP:Cesium.ScreenSpaceEventType.LEFT_UP,CLICK:Cesium.ScreenSpaceEventType.LEFT_CLICK,RIGHT_DOWN:Cesium.ScreenSpaceEventType.RIGHT_DOWN,RIGHT_UP:Cesium.ScreenSpaceEventType.RIGHT_UP,RIGHT_CLICK:Cesium.ScreenSpaceEventType.RIGHT_CLICK,DB_CLICK:Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK,MOUSE_MOVE:Cesium.ScreenSpaceEventType.MOUSE_MOVE,MOUSE_OVER:"mouseover",MOUSE_OUT:"mouseout",POSITION_UPDATE:"positionUpdate",BIND_POPUP:"bindPopup"}),ie=J,ne=K(K({},J),{},{LEFT_DOWN:Cesium.ScreenSpaceEventType.LEFT_DOWN,LEFT_UP:Cesium.ScreenSpaceEventType.LEFT_UP,CLICK:Cesium.ScreenSpaceEventType.LEFT_CLICK,MOUSE_MOVE:Cesium.ScreenSpaceEventType.MOUSE_MOVE,RIGHT_DOWN:Cesium.ScreenSpaceEventType.RIGHT_DOWN,RIGHT_UP:Cesium.ScreenSpaceEventType.RIGHT_UP,RIGHT_CLICK:Cesium.ScreenSpaceEventType.RIGHT_CLICK,DB_CLICK:Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK,MOUSE_OUT:"mouseout"}),re=K(K({},J),{},{POST_RENDER:"postRender",ACTIVATE:"activate",DEACTIVATE:"deactivate",RESET_TIME_LINE:"restTimeLine"}),oe=K(K({},J),{},{POST_RENDER:"postRender",RESET_TIME_LINE:"restTimeLine",END:"end",STOP_STAY:"stopStay"}),ae={DRAW_START:"drawStart",DRAW_STOP:"drawStop",EDIT_START:"editStart",EDIT_STOP:"editEnd",DRAW_ANCHOR:"drawAnchor",CREATE_ANCHOR:"createAnchor",UPDATE_ANCHOR:"updateAnchor",ANCHOR_MOVING:"anchorMoving",EDIT_ANCHOR_STOP:"editAnchorStop",CLEAR_ANCHOR:"clearAnchor"},se={BEGIN:"flyBegin",END:"flyEnd",STOP_STAY:"stopStay",FLYING:"flying"},ce={OPEN:"show",CLOSE:"close"};const le=function(){function e(t){n(this,e),this._types=t,this._cache={}}return s(e,[{key:"_addEventListener",value:function(e,t,i){var n=this.getEvent(e),r=void 0;return n&&t&&(r=n.addEventListener(t,i||this)),r}},{key:"_removeEventListener",value:function(e,t,i){var n=this.getEvent(e),r=!1;return n&&t&&(r=n.removeEventListener(t,i||this)),r}},{key:"_raiseEvent",value:function(e,t){var i=this.getEvent(e);i&&i.raiseEvent(t)}},{key:"_registerEvent",value:function(){var e=this;Object.keys(this._types).forEach((function(t){var i=e._types[t];e._cache[i]=new Cesium.Event}))}},{key:"addEventListener",value:function(e,t,i){return this._addEventListener(e,t,i)}},{key:"addEventListenerOnce",value:function(e,t,i){var n=this._addEventListener(e,(function(e){t(e),n&&n()}),i)}},{key:"removeEventListener",value:function(e,t,i){return this._removeEventListener(e,t,i)}},{key:"raiseEvent",value:function(e,t){this._raiseEvent(e,t)}},{key:"getEvent",value:function(e){return this._cache[e]||void 0}}]),e}();function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const de=function(e){u(i,e);var t=ue(i);function i(){var e;return n(this,i),(e=t.call(this,ce))._registerEvent(),e}return s(i)}(le);const he=function(){function e(){n(this,e),this._viewer=void 0,this._wrapper=void 0,this.useDefaultHtmlTemplate=!0,this.showTitle=!1,this._event=new de}return s(e,[{key:"position",get:function(){return this._position}},{key:"hide",value:function(){this._wrapper&&(this._wrapper.style.cssText="\n visibility:hidden !important;\n display:none !important;\n "),this.raiseEvent(ce.CLOSE)}},{key:"setContent",value:function(e){if(e&&"string"==typeof e)this._wrapper.innerHTML=e;else if(e&&e instanceof Element){for(;this._wrapper.hasChildNodes();)this._wrapper.removeChild(this._wrapper.firstChild);this._wrapper.appendChild(e)}return this}},{key:"_bindEvent",value:function(){}},{key:"_unbindEvent",value:function(){}},{key:"_mountContent",value:function(){}},{key:"_installHook",value:function(e){}},{key:"install",value:function(e){this._installHook&&this._installHook(e)}},{key:"addEventListener",value:function(e,t,i){return this._event.addEventListener(e,t,i||this),this}},{key:"removeEventListener",value:function(e,t,i){return this._event.removeEventListener(e,t,i||this),this}},{key:"raiseEvent",value:function(e,t){return this._event.raiseEvent(e,t),this}}]),e}();var pe=function(){function e(t,i,r,o,a,s){n(this,e),this._lng=+t||0,this._lat=+i||0,this._alt=+r||0,this._heading=+o||0,this._pitch=+a||0,this._roll=+s||0}return s(e,[{key:"lng",get:function(){return this._lng},set:function(e){this._lng=+e}},{key:"lat",get:function(){return this._lat},set:function(e){this._lat=+e}},{key:"alt",get:function(){return this._alt},set:function(e){this._alt=+e}},{key:"heading",get:function(){return this._heading},set:function(e){this._heading=+e}},{key:"pitch",get:function(){return this._pitch},set:function(e){this._pitch=+e}},{key:"roll",get:function(){return this._roll},set:function(e){this._roll=+e}},{key:"serialize",value:function(){var t=new e(this._lng,this._lat,this._alt,this._heading,this._pitch,this._roll);return JSON.stringify(t)}},{key:"distance",value:function(t){return t&&t instanceof e?Cesium.Cartesian3.distance(_e.transformWGS84ToCartesian(this),_e.transformWGS84ToCartesian(t)):0}},{key:"clone",value:function(){var t=new e;return t.lng=this.lng||0,t.lat=this.lat||0,t.alt=this.alt||0,t.heading=this.heading||0,t.pitch=this.pitch||0,t.roll=this.roll||0,t}},{key:"copy",value:function(){return this.clone()}},{key:"toArray",value:function(){return[this.lng,this.lat,this.alt,this.heading,this.pitch,this.roll]}},{key:"toString",value:function(){return"".concat(this.lng,",").concat(this.lat,",").concat(this.alt,",").concat(this.heading,",").concat(this.pitch,",").concat(this.roll)}},{key:"toObject",value:function(){return{lng:this.lng,lat:this.lat,alt:this.alt,heading:this.heading,pitch:this.pitch,roll:this.roll}}}],[{key:"fromArray",value:function(t){var i=new e;return Array.isArray(t)&&(i.lng=t[0]||0,i.lat=t[1]||0,i.alt=t[2]||0,i.heading=t[3]||0,i.pitch=t[4]||0,i.roll=t[5]||0),i}},{key:"fromString",value:function(t){var i=new e;if(t&&"string"==typeof t){var n=t.split(",");i=this.fromArray(n)}return i}},{key:"fromObject",value:function(t){return new e(t.lng,t.lat,t.alt,t.heading,t.pitch,t.roll)}},{key:"fromCartesian",value:function(e){return _e.transformCartesianToWGS84(e)}},{key:"deserialize",value:function(t){var i=new e,n=JSON.parse(t);return n&&(i.lng=n.lng||0,i.lat=n.lat||0,i.alt=n.alt||0,i.heading=n.heading||0,i.pitch=n.pitch||0,i.roll=n.roll||0),i}}]),e}();const fe=pe;var me=new Cesium.WebMercatorProjection,ge=function(){function e(){n(this,e)}return s(e,null,[{key:"transformCartesianToWGS84",value:function(e){if(e){var t=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e);return new fe(Cesium.Math.toDegrees(t.longitude),Cesium.Math.toDegrees(t.latitude),t.height)}return new fe(0,0)}},{key:"addCartesian3Height",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1,n=e.transformCartesianToWGS84(t);return n.alt+=i,e.transformWGS84ToCartesian(n)}},{key:"SetCartesian3Height",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1,n=e.transformCartesianToWGS84(t);return n.alt=i,e.transformWGS84ToCartesian(n)}},{key:"setHeightWGS84",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.1;return t.alt=i,e.transformWGS84ToCartesian(t)}},{key:"transformWGS84ToCartesian",value:function(e){return e?Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt,Cesium.Ellipsoid.WGS84):Cesium.Cartesian3.ZERO}},{key:"transformCartographicToCartesian",value:function(e){return e?Cesium.Cartesian3.fromRadians(e.longitude,e.latitude,e.height):Cesium.Cartesian3.ZERO}},{key:"transformWGS84ToCartographic",value:function(e){return e?Cesium.Cartographic.fromDegrees(e.lng,e.lat,e.alt):Cesium.Cartographic.ZERO}},{key:"transformCartesianArrayToWGS84Array",value:function(e){var t=this;return e?e.map((function(e){return t.transformCartesianToWGS84(e)})):[]}},{key:"transformWGS84ArrayToCartesianArray",value:function(e){var t=this;return e?e.map((function(e){return t.transformWGS84ToCartesian(e)})):[]}},{key:"transformWGS84ToMercator",value:function(e){var t=me.project(Cesium.Cartographic.fromDegrees(e.lng,e.lat,e.alt));return new fe(t.x,t.y,t.z)}},{key:"transformMercatorToWGS84",value:function(e){var t=me.unproject(new Cesium.Cartesian3(e.lng,e.lat,e.alt));return new fe(Cesium.Math.toDegrees(t.longitude),Cesium.Math.toDegrees(t.latitude),t.height)}},{key:"transformWindowToWGS84",value:function(e,t){var i,n=t.scene;if(n.mode===Cesium.SceneMode.SCENE3D){var r=n.camera.getPickRay(e);i=n.globe.pick(r,n)}else i=n.camera.pickEllipsoid(e,Cesium.Ellipsoid.WGS84);return this.transformCartesianToWGS84(i)}},{key:"transformWGS84ToWindow",value:function(e,t){var i=t.scene;return Cesium.SceneTransforms.wgs84ToWindowCoordinates(i,this.transformWGS84ToCartesian(e))}},{key:"updateWinPosition",value:function(e){var t=Cesium.defaultValue(e.show,!0),i=Cesium.defaultValue(e.windowCoord,null),n=Cesium.defaultValue(e.scaleByDistance,null),r=Cesium.defaultValue(e.distance,0),o=Cesium.defaultValue(e.dom,null),a=Cesium.defaultValue(e.horizontalOrigin,null),s=Cesium.defaultValue(e.verticalOrigin,null),c=Cesium.defaultValue(e.distanceDisplayCondition,null),l=(Cesium.defaultValue(e.isFront,!1),Cesium.defaultValue(e.offsetX,null)),u=Cesium.defaultValue(e.offsetY,null),d=e.scaleRatio||1;if(t&&i){var h=i.x-o.offsetWidth/2,p=i.y-o.offsetHeight;if(h<1&&p<1)o&&(o.style.cssText="\n visibility:hidden !important;\n display:none !important;\n ");else{var f="scale3d(1*".concat(d,",1*").concat(d,",1*").concat(d,")"),m=1;if(r&&n){var g=n.near||0,_=n.nearValue||1,y=n.far||Number.MAX_VALUE,C=n.farValue||0;if(r<g)f="scale3d(".concat(_,"*").concat(d,",").concat(_,"*").concat(d,",1)"),m=_;else if(r>y)f="scale3d(".concat(C,"*").concat(d,",").concat(C,"*").concat(d,",1)"),m=C;else{var v=_-(r-g)/(y-g)*(_-C);m=v,f="scale3d(".concat(v,"*").concat(d,",").concat(v,"*").concat(d,",1)")}}if(m<.01)o.style.display="none";else{o.style.display="block","LEFT"===a?h=i.x-o.offsetWidth:"CENTER"===a||"RIGHT"===a&&(h=i.x),"BOTTOM"===s?p=i.y:"CENTER"===s||"TOP"===s&&(p=i.y-o.offsetHeight),l&&(h+=l*m),u&&(p+=u*m),"LEFT"===a?"CENTER"===s?o.style.transformOrigin="right center":"TOP"===s?o.style.transformOrigin="right bottom":"BOTTOM"===s&&(o.style.transformOrigin="right top"):"CENTER"===a?"CENTER"===s?o.style.transformOrigin="center center":"TOP"===s?o.style.transformOrigin="center bottom":"BOTTOM"===s&&(o.style.transformOrigin="center top"):"RIGHT"===a&&("CENTER"===s?o.style.transformOrigin="left center":"TOP"===s?o.style.transformOrigin="left bottom":"BOTTOM"===s&&(o.style.transformOrigin="left top")),o.style.top=p*d+"px",o.style.left=h*d+"px",o.style.visibility="visible",o.style.transform="".concat(f);r&&c&&isBetween(r,c.near||0,c.far||Number.MAX_VALUE)}}}}}]),e}();const _e=ge;function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ce=function(e){u(i,e);var t=ye(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._init(e),r}return s(i,[{key:"_init",value:function(e){if(this._position=void 0,this._viewer=e.viewer||window.viewer,this._viewer){if(this.useDefaultHtmlTemplate=Cesium.defaultValue(e.useDefaultHtmlTemplate,!0),this.showTitle=Cesium.defaultValue(e.showTitle,!1),this.scaleByDistance=Cesium.defaultValue(e.scaleByDistance,null),this.horizontalOrigin=Cesium.defaultValue(e.horizontalOrigin,null),this.verticalOrigin=Cesium.defaultValue(e.verticalOrigin,null),this.distanceDisplayCondition=Cesium.defaultValue(e.distanceDisplayCondition,null),this.offsetX=Cesium.defaultValue(e.offsetX,null),this.offsetY=Cesium.defaultValue(e.offsetY,null),this.useDefaultHtmlTemplate){var t=q.getPopupDefaultDom();this._wrapper=j.parseDom(t,!1),this._addDefaultTitleContent(),this._initClose()}else this._wrapper=j.create("div","viewer-widgets anov-infoWin-init");!0===e.pointerEvents?this._wrapper.style.pointerEvents="all":this._wrapper.style.pointerEvents="none"}else console.error("viewer是必须的参数!")}},{key:"_initClose",value:function(){var e=this,t=this._wrapper.querySelector(".closeButton");t&&t.addEventListener("click",(function(){e.hide()}))}},{key:"_addDefaultTitleContent",value:function(){var e=this._wrapper.querySelector(".anov-popup-content");this.showTitle&&j.create("div","anov-template-titile",e),j.create("div","anov-template-content",e)}},{key:"setPosition",value:function(e){return this._position=e,this._wrapper&&(this._wrapper.style.cssText="\n visibility:visible;\n "),this}},{key:"setContent",value:function(e){var t=this._wrapper.querySelector(".anov-popup-content");if(t)for(;t.hasChildNodes();)t.removeChild(t.firstChild);else for(;this._wrapper.hasChildNodes();)this._wrapper.removeChild(this._wrapper.firstChild);if(e&&"string"==typeof e)t?t.innerHTML=e:this._wrapper.innerHTML=e;else if(e&&e instanceof Element)t?t.appendChild(e):this._wrapper.appendChild(e);else if(e&&e instanceof Object&&this.useDefaultHtmlTemplate){if(this._addDefaultTitleContent(),this.showTitle){var i=this._wrapper.querySelector(".anov-template-titile");j.appendChild(i,e.title)}var n=this._wrapper.querySelector(".anov-template-content"),r=e.fieldsMap;r&&r.forEach((function(e){var t="<div><label>".concat(e.nameC,"</label>").concat(e.value,"</div>");j.appendChild(n,t)}))}return this}},{key:"show",value:function(e,t){return this.setPosition(e).setContent(t),this}},{key:"_installHook",value:function(e){this._viewer.container.appendChild(this._wrapper),this._bindEvent(),Object.defineProperty(e,"popup",{value:this,writable:!1})}},{key:"_bindEvent",value:function(){var e=this;if(this._viewer&&this._wrapper){var t=this,i=this._viewer.scene;i.postRender.addEventListener((function(){if(t._position&&t._updatePosition&&"visible"===t._wrapper.style.visibility){var n=e._viewer.camera.positionWC,r=e._viewer.camera.direction,o=i.globe.ellipsoid.geodeticSurfaceNormal(t._position,new Cesium.Cartesian3),a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i,t._position);a&&t._updatePosition(a,Cesium.Cartesian3.distance(t._position,n),Cesium.Cartesian3.dot(r,o)<=0)}}))}}},{key:"_updatePosition",value:function(e,t,i){_e.updateWinPosition({windowCoord:e,scaleByDistance:this.scaleByDistance,distance:t,dom:this._wrapper,horizontalOrigin:this.horizontalOrigin,verticalOrigin:this.verticalOrigin,distanceDisplayCondition:this.distanceDisplayCondition,isFront:i,offsetX:this.offsetX,offsetY:this.offsetY,scaleRatio:this._viewer.scaleRatio})}}]),i}(he);const ve=Ce;function Te(e,t,i,n,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void i(e)}s.done?t(c):Promise.resolve(c).then(n,r)}function Se(e){return function(){var t=this,i=arguments;return new Promise((function(n,r){var o=e.apply(t,i);function a(e){Te(o,n,r,a,s,"next",e)}function s(e){Te(o,n,r,a,s,"throw",e)}a(void 0)}))}}var Ae=i(687),be=i.n(Ae);function Ee(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function xe(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ee(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ee(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var Pe={getPolylineDistance:function(e){if(!e||!Array.isArray(e)||e.length<2)return 0;for(var t=0,i=e.length,n=0;n<i-1;++n)t+=Cesium.Cartesian3.distance(e[n],e[n+1]);return t},getPolygonArea:function(e){var t=new Cesium.Cartesian3,i=new Cesium.Cartesian3,n=new Cesium.Cartesian3;if(!(e.length<=2)){for(var r=Cesium.CoplanarPolygonGeometry.fromPositions({positions:e}),o=Cesium.CoplanarPolygonGeometry.createGeometry(r),a=o.attributes.position.values,s=o.indices,c=s.length/3,l=0,u=0;u<c;++u){var d=Cesium.Cartesian3.fromElements(a[3*s[3*u+0]+0],a[3*s[3*u+0]+1],a[3*s[3*u+0]+2],t),h=Cesium.Cartesian3.fromElements(a[3*s[3*u+1]+0],a[3*s[3*u+1]+1],a[3*s[3*u+1]+2],i),p=Cesium.Cartesian3.fromElements(a[3*s[3*u+2]+0],a[3*s[3*u+2]+1],a[3*s[3*u+2]+2],n);l+=this.getTriangleArea(d,h,p)}return l}},getTriangleArea:function(e,t,i){var n=new Cesium.Cartesian3,r=new Cesium.Cartesian3,o=new Cesium.Cartesian3,a=Cesium.Cartesian3.subtract(t,e,n),s=Cesium.Cartesian3.subtract(i,e,r),c=Cesium.Cartesian3.cross(a,s,o);return.5*Cesium.Cartesian3.magnitude(c)},drawEntityNames:function(){return xe(xe(xe(xe(xe({},this.drawEntityNames_Point()),{},{tempPoint:"tempPoint"},this.drawEntityNames_Polyline()),this.drawEntityNames_Polygon()),this.drawEntityNames_Rectangle()),this.drawEntityNames_Circle())},drawEntityNames_Point:function(){return{drawPoint:"drawPoint"}},drawEntityNames_Polyline:function(){return{drawpolyline:"drawpolyline",drawpolylinepoint:"drawpolylinepoint"}},drawEntityNames_Polygon:function(){return{drawpolygon:"drawpolygon",drawpolygonpoint:"drawpolygonpoint"}},drawEntityNames_Rectangle:function(){return{drawRec:"drawRec",drawRecpoint:"drawRecpoint"}},drawEntityNames_Circle:function(){return{drawCircle:"drawCircle",drawCirclepoint:"drawCirclepoint"}},getPointLableString:function(e){var t=Cesium.Cartographic.fromCartesian(e),i=Cesium.Math.toDegrees,n=i(t.longitude).toFixed(8),r=i(t.latitude).toFixed(8),o=t.height.toFixed(3).slice(-10);return o<=0&&(o=0),"经度:"+n+"°\n纬度:"+r+"°\n高度:"+o+"米"},createPointLabel:function(e,t,i,n,r){r||(r={});var o={name:n||Pe.drawEntityNames().drawpolyline,position:t,attachPolygon:!0,show:Cesium.defaultValue(r.show,!0),label:r.justDraw?void 0:{text:i,font:"18px sans-serif",fillColor:Cesium.Color.GOLD,style:Cesium.LabelStyle.FILL_AND_OUTLINE,outlineWidth:2,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,pixelOffset:new Cesium.Cartesian2(30,-30),disableDepthTestDistance:1e9},point:r.billboard&&!r.tempPoint_show?void 0:{color:r.color||new Cesium.Color(1,0,0,.8),pixelSize:r.size||8,perPositionHeight:!1,disableDepthTestDistance:1e9},billboard:r.billboard?{image:r.billboard,verticalOrigin:Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance:1e9}:void 0};return e.entities.add(o)},setPointLabel:function(e,t,i){e.position=t,e.label&&(e.label.text=i)},setPointPosition:function(e,t){e&&(e.position=t)},createPointLabelsCallback:function(e,t){for(var i=e.length,n=0;n<i-1;++n){var r=e[n],o=e[n+1],a=Cesium.Cartesian3.distance(r,o),s=Cesium.Cartesian3.lerp(r,o,.5,new Cesium.Cartesian3),c=a.toFixed(2)+"米";a>=1e3&&(c=(a/1e3).toFixed(2)+"千米"),t(n,a,s,c)}},pickPosition:function(e,t,i,n){n||(n=new Cesium.Cartesian3);var r=void 0,o=(e=e).scene;if(o.mode!==Cesium.SceneMode.MORPHING){var a=o.camera.getPickRay(t),s=o.drillPickFromRay(a,2,i);if(s.length>0)for(var c=0;c<s.length;c++)if(s[c]){var l=s[c].object;if(l&&!(l.hasOwnProperty("id")&&l.id instanceof Cesium.Entity&&Pe.drawEntityNames()[l.id.name])){r=s[c].position;break}}if(!r)if(e.terrainProvider instanceof Cesium.EllipsoidTerrainProvider)r=e.camera.pickEllipsoid(t,o.globe.ellipsoid,n);else{var u=o.camera.getPickRay(t);r=o.globe.pick(u,o,n)}}return r}};const De=Pe;const we={};const Me={INITIALIZED:"initialized",ADDED:"added",REMOVED:"removed",CLEARED:"cleared",INSTALLED:"installed",ENABLED:"enabled",DISABLED:"disabled",PLAY:"play",PAUSE:"pause",RESTORE:"restore"};function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Re=function(e){u(i,e);var t=Ie(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._init(e),r}return s(i,[{key:"_init",value:function(e){if(this._position=void 0,this._viewer=e.viewer||window.viewer,this._viewer)if(this.useDefaultHtmlTemplate=Cesium.defaultValue(e.useDefaultHtmlTemplate,!0),this.showTitle=Cesium.defaultValue(e.showTitle,!1),this.horizontalOrigin=Cesium.defaultValue(e.horizontalOrigin,null),this.verticalOrigin=Cesium.defaultValue(e.verticalOrigin,null),this.offsetX=Cesium.defaultValue(e.offsetX,null),this.offsetY=Cesium.defaultValue(e.offsetY,null),this.useDefaultHtmlTemplate){var t=q.getTooltipDefaultDom();this._wrapper=j.parseDom(t,!1),this._addDefaultTitleContent()}else this._wrapper=j.create("div","viewer-widgets anov-infoWin-init");else console.error("viewer是必须的参数!")}},{key:"_addDefaultTitleContent",value:function(){var e=this._wrapper.querySelector(".anov-tooltip");this.showTitle&&j.create("div","anov-template-titile",e),j.create("div","anov-template-content",e)}},{key:"setPosition",value:function(e){return this._position=e,this._wrapper&&(this._wrapper.style.cssText="\n visibility:visible !important;\n display:block !important;\n "),this}},{key:"setContent",value:function(e){var t=this._wrapper.querySelector(".anov-tooltip");if(t)for(;t.hasChildNodes();)t.removeChild(t.firstChild);else for(;this._wrapper.hasChildNodes();)this._wrapper.removeChild(this._wrapper.firstChild);if(e&&"string"==typeof e)t?t.innerHTML=e:this._wrapper.innerHTML=e;else if(e&&e instanceof Element)t?t.appendChild(e):this._wrapper.appendChild(e),e.style.cssText="\n visibility:visible !important;\n display:block !important;\n ";else if(e&&e instanceof Object&&this.useDefaultHtmlTemplate){if(this._addDefaultTitleContent(),this.showTitle){var i=this._wrapper.querySelector(".anov-template-titile");j.appendChild(i,e.title)}var n=this._wrapper.querySelector(".anov-template-content"),r=e.fieldsMap;r&&r.forEach((function(e){var t="<div><label>".concat(e.nameC,"</label>").concat(e.value,"</div>");j.appendChild(n,t)}))}return this}},{key:"_updatePosition",value:function(e,t,i){_e.updateWinPosition({windowCoord:e,scaleByDistance:this.scaleByDistance,distance:t,dom:this._wrapper,horizontalOrigin:this.horizontalOrigin,verticalOrigin:this.verticalOrigin,distanceDisplayCondition:this.distanceDisplayCondition,isFront:i,offsetX:this.offsetX,offsetY:this.offsetY,scaleRatio:this._viewer.scaleRatio})}},{key:"show",value:function(e,t){this.setPosition(e).setContent(t);var i=Cesium.SceneTransforms.wgs84ToWindowCoordinates(this._viewer.scene,this.position);return this._updatePosition(i),this}},{key:"_installHook",value:function(e){this._viewer.container.appendChild(this._wrapper),Object.defineProperty(e,"tooltip",{value:this,writable:!1})}}]),i}(he);const Oe=Re;function Le(e,t,i){return Le=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct.bind():function(e,t,i){var n=[null];n.push.apply(n,t);var r=new(Function.bind.apply(e,n));return i&&l(r,i.prototype),r},Le.apply(null,arguments)}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}function Fe(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Be(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Be(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const Ne=function(){function e(){n(this,e)}return s(e,null,[{key:"parsePosition",value:function(e){var t=new fe;if(!e)return t;if("string"==typeof e)t=fe.fromString(e);else if(Array.isArray(e))t=fe.fromArray(e);else if(Object(e)instanceof fe||!Object(e).hasOwnProperty("lng")||!Object(e).hasOwnProperty("lat"))if(!(Object(e)instanceof fe)&&Object(e).hasOwnProperty("x")&&Object(e).hasOwnProperty("y")&&Object(e).hasOwnProperty("z")){var i=Le(Cesium.Cartesian3,Fe(Object(e)));t=fe.fromCartesian(i)}else Object(e)instanceof fe&&(t=e);else t=fe.fromObject(e);return t}},{key:"parsePositions",value:function(e){if("string"==typeof e){if(e.indexOf("#")>=0)throw new Error("the positions invalid");e.indexOf(";")>=0&&(e=e.split(";").filter((function(e){return!!e})))}return e.map((function(e){if("string"==typeof e)return fe.fromString(e);if(Array.isArray(e))return fe.fromArray(e);if(!(Object(e)instanceof fe)&&Object(e).hasOwnProperty("lng")&&Object(e).hasOwnProperty("lat"))return fe.fromObject(e);if(!(Object(e)instanceof fe)&&Object(e).hasOwnProperty("x")&&Object(e).hasOwnProperty("y")&&Object(e).hasOwnProperty("z")){var t=new Cesium.Cartesian3(e.x,e.y,e.z);return fe.fromCartesian(t)}return Object(e)instanceof fe?e:void 0}))}},{key:"parsePointCoordToArray",value:function(e){return[(e=this.parsePosition(e)).lng,e.lat]}},{key:"parsePolylineCoordToArray",value:function(e){var t=[];return(e=this.parsePositions(e)).forEach((function(e){t.push([e.lng,e.lat])})),t}},{key:"parsePolygonCoordToArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=[];return(e=this.parsePositions(e)).forEach((function(e){i.push([e.lng,e.lat])})),t&&i.length>0&&i.push(i[0]),[i]}},{key:"parseOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["color","backgroundColor","outlineColor","material","depthFailMaterial","fillColor","markerColor","stroke","fill"].forEach((function(t,i){"string"==typeof e[t]&&(e[t]=Cesium.Color.fromCssColorString(e[t]))})),e}}]),e}();const Ve=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._id=W.uuid(),this.businessID=W.uuid(),Ne.parseOption(t),this._nativeObjCesium=void 0,this._layer=void 0,this._state=void 0,this._show=!0,this._style={},this._attr={},this._allowDrillPicking=!1,this._contextMenu=[],this.infoData=t.infoData,this._graphicEvent=new Kr,this._graphicEvent.addEventListener(te.ADD,this._onAdd,this),this._graphicEvent.addEventListener(te.REMOVE,this._onRemove,this),this.originOption=void 0,this._highlight=t.highlight,this._selectedHighlight=t.selectedHighlight,Ne.parseOption(this._highlight),Ne.parseOption(this._selectedHighlight),this.initHighlight(),this._popup=void 0,this._pSelected=void 0}return s(e,[{key:"boundingSphere",get:function(){return null}},{key:"graphicId",get:function(){return this._id}},{key:"type",get:function(){return""}},{key:"id",get:function(){return this.businessID},set:function(e){this.businessID=e}},{key:"show",get:function(){return this._show},set:function(e){this._show=e,this._nativeObjCesium&&(this._nativeObjCesium.show=this._show)}},{key:"attr",get:function(){return this._attr},set:function(e){this._attr=e}},{key:"allowDrillPicking",get:function(){return this._allowDrillPicking},set:function(e){this._allowDrillPicking=e}},{key:"graphicEvent",get:function(){return this._graphicEvent}},{key:"nativeObjCesium",get:function(){return this._nativeObjCesium}},{key:"state",get:function(){return this._state}},{key:"contextMenu",get:function(){return this._contextMenu},set:function(e){this._contextMenu=e}},{key:"_getLayerCollection",value:function(e){var t=void 0;switch(e){case"point_primitive":t=this._layer.points;break;case"billboard_primitive":case"bounce_billboard_primitive":t=this._layer.billboards;break;case"label_primitive":case"bounce_label_primitive":t=this._layer.labels;break;case"polyline_primitive":t=this._layer.polylines;break;case"flow_line_primitive":case"water_primitive":t=this._layer.primitives;break;case"cloud_primitive":t=this._layer.clouds}return t}},{key:"_mountedHook",value:function(){}},{key:"_addedHook",value:function(){var e,t=this;if(!this._nativeObjCesium)return!1;this._nativeObjCesium instanceof Promise?this._nativeObjCesium.then((function(e){var i;e.layerId=null===(i=t._layer)||void 0===i?void 0:i.layerId,e.graphicId=t._id})):(this._nativeObjCesium.layerId=null===(e=this._layer)||void 0===e?void 0:e.layerId,this._nativeObjCesium.graphicId=this._id)}},{key:"_removedHook",value:function(){}},{key:"_onAdd",value:function(e){var t=this;if(e){if(this._layer=e,this._mountedHook&&this._mountedHook(),this._layer.nativeObjCesium.entities&&this._nativeObjCesium)this._layer.nativeObjCesium.entities.add(this._nativeObjCesium);else if(this._layer.nativeObjCesium.add){var i=this._getLayerCollection(this.type);i?(this._nativeObjCesium&&(this._nativeObjCesium=i.add(this._nativeObjCesium)),this.update&&this.destroy&&this._layer.nativeObjCesium.add(this)):this._nativeObjCesium.readyPromise?this._nativeObjCesium.readyPromise.then((function(e){t._layer.nativeObjCesium.add(e)})):this.update&&this.destroy?this._layer.nativeObjCesium.add(this):this._nativeObjCesium&&this._layer.nativeObjCesium.add(this._nativeObjCesium)}this._addedHook&&this._addedHook(),this._state=Me.ADDED}}},{key:"_onRemove",value:function(){var e=this;if(this._layer){if(this._layer.nativeObjCesium.entities)this._layer.nativeObjCesium.entities.remove(this._nativeObjCesium);else if(this._layer.nativeObjCesium.remove){var t=this._getLayerCollection(this.type);t?(t.remove(this._nativeObjCesium),this.update&&this.destroy&&this._layer.nativeObjCesium.remove(this)):this._nativeObjCesium.readyPromise.then?this._nativeObjCesium.readyPromise.then((function(t){e._layer.nativeObjCesium.add(t)})):this.update&&this.destroy?this._layer.nativeObjCesium.remove(this):this._layer.nativeObjCesium.remove(this._nativeObjCesium)}this._removedHook&&this._removedHook(),this._state=Me.REMOVED}}},{key:"setBillboard",value:function(e){return e&&e.billboard&&(Ne.parseOption(e.billboard),this._nativeObjCesium.billboard?W.merge(this._nativeObjCesium.billboard,e):this._nativeObjCesium.billboard=new Cesium.LabelGraphics(e.billboard)),this}},{key:"setLabel",value:function(e){return e&&e.label&&(e.label.fillColor=e.label.color||e.label.fillColor,Ne.parseOption(e.label),this._nativeObjCesium.label?W.merge(this._nativeObjCesium.label,e.label):this._nativeObjCesium.label=new Cesium.LabelGraphics(e.label)),e&&0==e.label&&(this._nativeObjCesium.label=void 0),this}},{key:"setPolyline",value:function(e){return e&&e.polyline&&(Ne.parseOption(e.polyline),e.polyline.positions&&(e.polyline.positions=Ne.parsePositions(e.polyline.positions),e.polyline.positions=_e.transformWGS84ArrayToCartesianArray(e.polyline.positions)),this._nativeObjCesium.polyline?W.merge(this._nativeObjCesium.polyline,e.polyline):e.polyline.positions&&(this._nativeObjCesium.polyline=new Cesium.PolylineGraphics(e.polyline))),e&&0==e.polyline&&(this._nativeObjCesium.polyline=void 0),this}},{key:"setOptions",value:function(){return this}},{key:"remove",value:function(){return this._layer&&this._layer.removeGraphic(this),this}},{key:"addTo",value:function(e){return e&&e.addGraphic&&e.addGraphic(this),this}},{key:"addEventListener",value:function(e,t,i){return this._graphicEvent.addEventListener(e,t,i||this),this}},{key:"removeEventListener",value:function(e,t,i){return this._graphicEvent.removeEventListener(e,t,i||this),this}},{key:"raiseEvent",value:function(e,t){return this._graphicEvent.raiseEvent(e,t),this}},{key:"bindPopup",value:function(e){var t=this;this._popup=new ve(e),this._popup.addEventListener(ce.CLOSE,(function(){t.unSelected(t._e)})),this._popup.install(this)}},{key:"bindTooltip",value:function(e){var t=this;new Oe(e).install(this),this.addEventListener(Q.MOUSE_OUT,(function(e){t.tooltip.hide()})),this.addEventListener(Q.CLICK,(function(e){t.tooltip.hide()}))}},{key:"initHighlight",value:function(){var e=this;this._highlight&&this.addEventListener(Q.MOUSE_MOVE,(function(t){e.highlight(t)})),this._selectedHighlight&&this.addEventListener(Q.CLICK,(function(t){e.unSelected(),e.selectedHighlight(t)})),this._highlight&&this.addEventListener(Q.MOUSE_OUT,(function(t){e.unHighlight(t)}));var t=this;this._selectedHighlight&&this.addEventListener(te.BIND_POPUP,(function(){e._layer&&e._layer&&e._layer._popup.addEventListener(ce.CLOSE,(function(){e.unSelected(t._pSelected)}))}))}},{key:"highlight",value:function(e){}},{key:"unHighlight",value:function(e){this.setOptions(this.originOption)}},{key:"selectedHighlight",value:function(e){}},{key:"unSelected",value:function(e){}}],[{key:"registerType",value:function(e){e&&(we[e.toLocaleUpperCase()]=e.toLocaleLowerCase())}},{key:"getGraphicType",value:function(e){return we[e.toLocaleUpperCase()]||void 0}}]),e}();function ke(e,t,i){var n=Cesium.Cartesian3.subtract(e,t,new Cesium.Cartesian3),r=Cesium.Cartesian3.subtract(i,t,new Cesium.Cartesian3),o=Cesium.Cartesian3.cross(n,r,n);return.5*Cesium.Cartesian3.magnitude(o)}function $e(e){var t=0;if(!Array.isArray(e))return t;e[0]instanceof Cesium.Cartesian3||(e=_e.transformWGS84ArrayToCartesianArray(e));var i=Cesium.CoplanarPolygonGeometry.createGeometry(Cesium.CoplanarPolygonGeometry.fromPositions({positions:e,vertexFormat:Cesium.VertexFormat.POSITION_ONLY}));if(!i)return t;for(var n=i.attributes.position.values,r=i.indices,o=0;o<r.length;o+=3){t+=ke(Cesium.Cartesian3.unpack(n,3*r[o],new Cesium.Cartesian3),Cesium.Cartesian3.unpack(n,3*r[o+1],new Cesium.Cartesian3),Cesium.Cartesian3.unpack(n,3*r[o+2],new Cesium.Cartesian3))}return t}function Ue(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=180,i=90,n=-180,r=-90;if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(e){t=Math.min(t,e.lng||e.x),i=Math.min(i,e.lat||e.y),n=Math.max(n,e.lng||e.x),r=Math.max(r,e.lat||e.y)})),e>0){var o=Math.abs(n-n),a=Math.abs(r-i);t-=o*e,i-=a*e,n+=o*e,r+=a*e}return{west:t,south:i,east:n,north:r}}function Ge(e){if(e&&Array.isArray(e)){var t=Cesium.BoundingSphere.fromPoints(_e.transformWGS84ArrayToCartesianArray(e));return _e.transformCartesianToWGS84(t.center)}return new fe}function ze(e,t){t=t||{};for(var i=[],n=0;n<e.length-1;n++){var r=He(e[n],e[n+1],t.count);r&&r.length>0&&(i=i.concat(r))}return i}function He(e,t,i){if(!e||!t)return null;var n=[];i=i||40;var r,o,a,s,c,l,u=function(e){return 1-2*e+e*e},d=function(e){return 2*e-2*e*e},h=function(e){return e*e},p=0,f=parseFloat(e.lat),m=parseFloat(t.lat),g=parseFloat(e.lng),_=parseFloat(t.lng);_>g&&_-g>180&&g<0&&(g=360+g,_=360+_),l=0,m===f?(r=0,o=g-_):_===g?(r=Math.PI/2,o=f-m):(r=Math.atan((m-f)/(_-g)),o=(m-f)/Math.sin(r)),0===l&&(l=r+Math.PI/5),c=(a=o/2)*Math.cos(l)+g,s=a*Math.sin(l)+f;for(var y=0;y<i+1;y++){var C=g*u(p)+c*d(p)+_*h(p),v=f*u(p)+s*d(p)+m*h(p),T=e.lng,S=t.lng;n.push([T<0&&S>0?C-360:C,v]),p+=1/i}return n}function We(e){var t=0;if(e&&Array.isArray(e))for(var i=0;i<e.length-1;i++){var n=_e.transformWGS84ToCartographic(e[i]),r=_e.transformWGS84ToCartographic(e[i+1]),o=new Cesium.EllipsoidGeodesic;o.setEndPoints(n,r);var a=o.surfaceDistance;t+=a=Math.sqrt(Math.pow(a,2)+Math.pow(r.height-n.height,2))}return t.toFixed(3)}function je(e){var t=0;if(e&&Array.isArray(e))for(var i=0;i<e.length-1;i++){t+=Cesium.Cartesian3.distanceSquared(e[i],e[i+1])}return t}function qe(e,t){var i=e,n=t;if(!i||!n)return 0;e instanceof Cesium.Cartesian3||(i=Ne.parsePosition(e),i=_e.transformWGS84ToCartesian(i)),t instanceof Cesium.Cartesian3||(n=Ne.parsePosition(t),n=_e.transformWGS84ToCartesian(n));var r=Cesium.Transforms.eastNorthUpToFixedFrame(i),o=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3),a=Cesium.Matrix4.multiplyByPointAsVector(Cesium.Matrix4.inverse(r,new Cesium.Matrix4),o,new Cesium.Cartesian3),s=Math.atan2(a.y,a.x)-Cesium.Math.PI_OVER_TWO;return s=Cesium.Math.TWO_PI-Cesium.Math.zeroToTwoPi(s),isNaN(s)?0:s}function Xe(e,t,i){return(e=parseFloat(e)||0)>=parseFloat(t)&&e<=parseFloat(i)}function Ye(e,t){var i=Cesium.Ellipsoid.WGS84.cartesianToCartographic(e),n=Cesium.Ellipsoid.WGS84.cartesianToCartographic(t),r=new Cesium.EllipsoidGeodesic(i,n).interpolateUsingFraction(.5);return Cesium.Ellipsoid.WGS84.cartographicToCartesian(r)}function Ke(e,t){var i=Ne.parsePosition(e),n=Ne.parsePosition(t);i=_e.transformWGS84ToCartographic(i),n=_e.transformWGS84ToCartographic(n);var r=new Cesium.EllipsoidGeodesic(i,n).interpolateUsingFraction(.5);return new fe(Cesium.Math.toDegrees(r.longitude),Cesium.Math.toDegrees(r.latitude),r.height)}function Je(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,r=[];i=Math.max(+i,100),n=Math.max(+n,50);var o=Math.abs(e.lng-t.lng),a=Math.abs(e.lat-t.lat),s=Math.max(o,a),c=s/n;if(o>a){var l=(t.lat-e.lat)/n;e.lng-t.lng>0&&(c=-c);for(var u=0;u<n;u++){var d=i-4*Math.pow(-.5*s+Math.abs(c)*u,2)*i/Math.pow(s,2),h=e.lng+c*u,p=e.lat+l*u;r.push([h,p,d])}}else{var f=(t.lng-e.lng)/n;e.lat-t.lat>0&&(c=-c);for(var m=0;m<n;m++){var g=i-4*Math.pow(-.5*s+Math.abs(c)*m,2)*i/Math.pow(s,2),_=e.lng+f*m,y=e.lat+c*m;r.push([_,y,g])}}return r.push([t.lng,t.lat,t.alt||0]),r}function Qe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var et=function(e){u(i,e);var t=Ze(i);function i(e,r){var o;return n(this,i),o=t.call(this),r?(o._nativeObjCesium=j.create("div","div-icon anov-infoWin-init"),o._position=Ne.parsePosition(e),o.content=r,o._state=Me.INITIALIZED,o):(console.error("没有传入内容,无法显示!"),h(o))}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("div_icon")}},{key:"show",get:function(){return this._show},set:function(e){this._show=e,this._nativeObjCesium.style.display=this._show?"block":"none"}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e)}},{key:"content",get:function(){return this._nativeObjCesium.childNodes||[]},set:function(e){if(e&&"string"==typeof e)this._nativeObjCesium.innerHTML=e;else if(e&&e instanceof Element){for(;this._nativeObjCesium.hasChildNodes();)this._nativeObjCesium.removeChild(this._nativeObjCesium.firstChild);this._nativeObjCesium.appendChild(e)}}},{key:"_updateStyle",value:function(e,t,i){if(this._show&&e){var n="scale3d(1,1,1)",r=this._style.scaleByDistance,o=1;if(t&&r){var a=r.near||0,s=r.nearValue||1,c=r.far||Number.MAX_VALUE,l=r.farValue||0;if(t<a)n="scale3d(".concat(s,",").concat(s,",1)"),o=s;else if(t>c)n="scale3d(".concat(l,",").concat(l,",1)"),o=l;else{var u=s-(t-a)/(c-a)*(s-l);o=u,n="scale3d(".concat(u,",").concat(u,",1)")}}if(o<.01)this._nativeObjCesium.style.display="none";else{this._nativeObjCesium.style.display="block";var d=e.x-this._nativeObjCesium.offsetWidth/2,h=e.y-this._nativeObjCesium.offsetHeight/2;"LEFT"===this._style.horizontalOrigin?d=e.x-this._nativeObjCesium.offsetWidth:"CENTER"===this._style.horizontalOrigin||"RIGHT"===this._style.horizontalOrigin&&(d=e.x),"BOTTOM"===this._style.verticalOrigin?h=e.y:"CENTER"===this._style.verticalOrigin||"TOP"===this._style.verticalOrigin&&(h=e.y-this._nativeObjCesium.offsetHeight),this._style.offsetX&&(d+=this._style.offsetX*o),this._style.offsetY&&(h+=this._style.offsetY*o),"LEFT"===this._style.horizontalOrigin?"CENTER"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="right center":"TOP"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="right bottom":"BOTTOM"===this._style.verticalOrigin&&(this._nativeObjCesium.style.transformOrigin="right top"):"CENTER"===this._style.horizontalOrigin?"CENTER"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="center center":"TOP"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="center bottom":"BOTTOM"===this._style.verticalOrigin&&(this._nativeObjCesium.style.transformOrigin="center top"):"RIGHT"===this._style.horizontalOrigin&&("CENTER"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="left center":"TOP"===this._style.verticalOrigin?this._nativeObjCesium.style.transformOrigin="left bottom":"BOTTOM"===this._style.verticalOrigin&&(this._nativeObjCesium.style.transformOrigin="left top")),this._nativeObjCesium.style.top=h+"px",this._nativeObjCesium.style.left=d+"px",this._nativeObjCesium.style.transform="".concat(n);var p=!0,f=this._style.distanceDisplayCondition;t&&f&&(p=Xe(t,f.near||0,f.far||Number.MAX_VALUE)),this._nativeObjCesium.style.display=p&&i?"block":"none"}}}},{key:"_onAdd",value:function(e){var t=this;this._layer=e,this._layer.nativeObjCesium.appendChild(this._nativeObjCesium);var i={layer:e,graphic:this,position:_e.transformWGS84ToCartesian(this._position)};this._nativeObjCesium.addEventListener("click",(function(){t._graphicEvent.raiseEvent(Q.CLICK,i)})),this._nativeObjCesium.addEventListener("mouseover",(function(){t._graphicEvent.raiseEvent(Q.MOUSE_OVER,i)})),this._nativeObjCesium.addEventListener("mouseout",(function(){t._graphicEvent.raiseEvent(Q.MOUSE_OUT,i)})),this._state=Me.ADDED}},{key:"_onRemove",value:function(){this._layer&&(this._layer.nativeObjCesium.removeChild(this._nativeObjCesium),this._state=Me.REMOVED)}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),!0===e.pointerEvents?this._nativeObjCesium.style.pointerEvents="all":this._nativeObjCesium.style.pointerEvents="none",this._style.className&&j.addClass(this._nativeObjCesium,this._style.className),this):this}}],[{key:"fromEntity",value:function(e,t){var n,r=Cesium.JulianDate.now();return n=new i(_e.transformCartesianToWGS84(e.position.getValue(r)),t),e.billboard&&(n.attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Qe(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Qe(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(r))),n}}]),i}(Ve);Ve.registerType("div_icon");const tt=et;function it(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var rt=function(e){u(i,e);var t=nt(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=new Cesium.Entity({model:{}}),r._position=Ne.parsePosition(e.position),r._modelUrl=e.url,r._rotateAmount=0,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("model")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),0===this._rotateAmount&&(this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))))}},{key:"modelUrl",get:function(){return this._modelUrl},set:function(e){this._modelUrl=e,this._nativeObjCesium.model.uri=this._modelUrl}},{key:"rotateAmount",get:function(){return this._rotateAmount},set:function(e){var t=this;this._rotateAmount=+e,this._nativeObjCesium.orientation=new Cesium.CallbackProperty((function(){return t._position.heading+=t._rotateAmount,(t._position.heading>=360||t._position.heading<=-360)&&(t._position.heading=0),Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(t._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(t._position.heading),Cesium.Math.toRadians(t._position.pitch),Cesium.Math.toRadians(t._position.roll)))}),!1)}},{key:"_mountedHook",value:function(){this.position=this._position,this.modelUrl=this._modelUrl}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.uri,W.merge(this._style,e),W.merge(this._nativeObjCesium.model,e),this):this}}],[{key:"fromEntity",value:function(e,t){var n=Cesium.JulianDate.now(),r=new i(_e.transformCartesianToWGS84(e.position.getValue(n)),t);return r.attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?it(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):it(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)),r}}]),i}(Ve);Ve.registerType("model");const ot=rt;function at(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var st=function(e){u(i,e);var t=at(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._nativeObjCesium=new Cesium.Cesium3DTileset(r),e._tileVisibleCallback=void 0,e._properties=void 0,e._state=Me.INITIALIZED,e.selected={feature:void 0,originalColor:new Cesium.Color},e.highlighted={feature:void 0,originalColor:new Cesium.Color},e}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("tileset")}},{key:"show",set:function(e){this._show=e,this._nativeObjCesium.readyPromise.then((function(t){t.show=e}))}},{key:"_bindVisibleEvent",value:function(){this._tileVisibleCallback&&this._tileVisibleCallback(),this._tileVisibleCallback=this._nativeObjCesium.tileVisible.addEventListener(this._updateTile,this)}},{key:"_updateTile",value:function(e){for(var t=this,i=e.content,n=function(){var e=i.getFeature(r);t._properties&&t._properties.length&&t._properties.forEach((function(t){e.hasProperty(t.key)&&e.getProperty(t.key)===t.keyValue&&e.setProperty(t.propertyName,t.propertyValue)}))},r=0;r<i.featuresLength;r++)n()}},{key:"setPosition",value:function(e){return e=Ne.parsePosition(e),this._nativeObjCesium.readyPromise.then((function(t){var i=Cesium.Transforms.eastNorthUpToFixedFrame(Cesium.Cartesian3.fromDegrees(e.lng,e.lat,e.alt)),n=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(e.heading),Cesium.Math.toRadians(e.pitch),Cesium.Math.toRadians(e.roll))));Cesium.Matrix4.multiply(i,n,i),t.root.transform=i})),this}},{key:"setHeadingPitchRoll",value:function(e,t,i){return this._nativeObjCesium.readyPromise.then((function(n){var r=n.root.transform,o=Cesium.Matrix4.fromRotationTranslation(Cesium.Matrix3.fromHeadingPitchRoll(new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(e||0),Cesium.Math.toRadians(t||0),Cesium.Math.toRadians(i||0))));Cesium.Matrix4.multiply(r,o,r),n.root.transform=r})),this}},{key:"setLabel",value:function(e,t){return this}},{key:"clampToGround",value:function(){return this._nativeObjCesium.readyPromise.then((function(e){var t=Cesium.Cartographic.fromCartesian(e.boundingSphere.center),i=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,t.height),n=Cesium.Cartesian3.fromRadians(t.longitude,t.latitude,0),r=Cesium.Cartesian3.subtract(n,i,new Cesium.Cartesian3);e.modelMatrix=Cesium.Matrix4.fromTranslation(r)})),this}},{key:"setHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._nativeObjCesium.readyPromise.then((function(i){var n=Cesium.Cartographic.fromCartesian(i.boundingSphere.center),r=Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,n.height),o=Cesium.Cartesian3.fromRadians(n.longitude,n.latitude,t?e:n.height+e),a=Cesium.Cartesian3.subtract(o,r,new Cesium.Cartesian3);i.modelMatrix=Cesium.Matrix4.fromTranslation(a)})),this}},{key:"setScale",value:function(e){return this._nativeObjCesium.readyPromise.then((function(t){var i=t.root.transform;e>0&&1!==e&&Cesium.Matrix4.multiplyByUniformScale(i,e,i),t.root.transform=i})),this}},{key:"setProperties",value:function(e){return this._properties=e,this._bindVisibleEvent(),this}},{key:"setSplitDirection",value:function(e){return this._nativeObjCesium.readyPromise.then((function(t){t.splitDirection=e})),this}},{key:"setCustomShader",value:function(e){return this._nativeObjCesium.readyPromise.then((function(t){t.customShader=e})),this}},{key:"setStyle",value:function(e){return e&&e instanceof Cesium.Cesium3DTileStyle&&(this._style=e,this._nativeObjCesium.readyPromise.then((function(t){t.style=e}))),this}},{key:"highlight",value:function(e){this.unHighlight(e),e.feature&&e.feature!==this.selected.feature&&(this.highlighted.feature=e.feature,this.highlighted.originalColor=Cesium.clone(e.feature.color),W.merge(e.feature,this._highlight))}},{key:"unHighlight",value:function(e){Cesium.defined(this.highlighted.feature)&&(this.highlighted.feature.color=this.highlighted.originalColor,this.highlighted.feature=void 0)}},{key:"selectedHighlight",value:function(e){e&&e.feature&&(this.selected.feature=e.feature,e.feature===this.highlighted.feature?(this.selected.originalColor=Cesium.clone(this.highlighted.originalColor),this.highlighted.feature=void 0):this.selected.originalColor=Cesium.clone(e.feature.color),this._pSelected=Cesium.clone(this.selected),W.merge(e.feature,this._selectedHighlight))}},{key:"unSelected",value:function(e){Cesium.defined(this.selected.feature)&&(this.selected.feature.color=this.selected.originalColor,this.selected.feature=void 0),e&&e.feature&&e.originalColor&&(e.feature.color=e.originalColor,e.feature=void 0)}}]),i}(Ve);Ve.registerType("tileset");const ct=st;function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ut=function(e){u(i,e);var t=lt(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._icon=r,o._size=[32,32],o._nativeObjCesium={position:void 0,image:void 0,width:0,height:0},o.position=o._positions,o._state=Me.INITIALIZED,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("billboard_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position)}},{key:"icon",get:function(){return this._icon},set:function(e){this._icon=e,this._nativeObjCesium.image=this._icon}},{key:"size",get:function(){return this._size},set:function(e){if(!Array.isArray(e))throw new Error("Billboard Primitive: the size invalid");this._size=e,this._nativeObjCesium.width=this._size[0]||32,this._nativeObjCesium.height=this._size[1]||32}},{key:"_mountedHook",value:function(){this.position=this._position,this.icon=this._icon,this.size=this._size}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position&&delete e.image&&delete e.width&&delete e.height,W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("billboard_primitive");const dt=ut;function ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var pt=10,ft=.1,mt=function(e){u(i,e);var t=ht(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r))._currentOffset=new Cesium.Cartesian2(0,0),o._isUp=!0,o._state=Me.INITIALIZED,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("bounce_billboard_primitive")}},{key:"update",value:function(){if(this._show){var e=this._style.maxOffsetY||pt,t=this._style.offsetAmount||ft;this._currentOffset.y>=0?this._isUp=!0:this._currentOffset.y<=-e&&(this._isUp=!1),this._currentOffset.y+=t*(this._isUp?-1:1),this._nativeObjCesium.pixelOffset=this._currentOffset}}},{key:"destroy",value:function(){return Cesium.destroyObject(this)}}]),i}(dt);Ve.registerType("bounce_billboard_primitive");const gt=mt;function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var yt=function(e){u(i,e);var t=_t(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._text=r,o._nativeObjCesium={position:void 0,text:void 0},o._state=Me.INITIALIZED,o.position=o._position,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("label_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position)}},{key:"text",get:function(){return this._text},set:function(e){this._text=e,this._nativeObjCesium.text=this._text}},{key:"_mountedHook",value:function(){this.position=this._position,this.text=this._text}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position&&delete e.text,W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("label_primitive");const Ct=yt;function vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Tt=10,St=.1,At=function(e){u(i,e);var t=vt(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r))._currentOffset=new Cesium.Cartesian2(0,0),o._isUp=!0,o._state=Me.INITIALIZED,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("bounce_label_primitive")}},{key:"update",value:function(){if(this._show){var e=this._style.maxOffsetY||Tt,t=this._style.offsetAmount||St;this._currentOffset.y>=0?this._isUp=!0:this._currentOffset.y<=-e&&(this._isUp=!1),this._currentOffset.y+=t*(this._isUp?-1:1),this._nativeObjCesium.pixelOffset=this._currentOffset}}},{key:"destroy",value:function(){return Cesium.destroyObject(this)}}]),i}(Ct);Ve.registerType("bounce_label_primitive");const bt=At;function Et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var xt=function(e){u(i,e);var t=Et(i);function i(e){var r;return n(this,i),(r=t.call(this))._position=Ne.parsePosition(e),r._nativeObjCesium={position:void 0,scale:{x:12,y:8}},r._state=Me.INITIALIZED,r.position=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("cloud_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position)}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position,W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("cloud_primitive");const Pt=xt;function Dt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Mt={minRadius:10,minHeight:30,color:Cesium.Color.RED,slices:128,speed:10},It=function(e){u(i,e);var t=wt(i);function i(e,r,o){var a;return n(this,i),(a=t.call(this))._center=Ne.parsePosition(e),a._nativeObjCesium=void 0,a._height=o,a._radius=r,a._currentHeight=o||0,a._currentRadius=10,a._style=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Dt(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},Mt),a._state=Me.INITIALIZED,a}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("diffuse_wall_primitive")}},{key:"center",get:function(){return this._center},set:function(e){return this._center=Ne.parsePosition(e),this}},{key:"radius",get:function(){return this._radius},set:function(e){return this._radius=e,this}},{key:"height",get:function(){return this._height},set:function(e){return this._height=e,this}},{key:"_getPositions",value:function(){for(var e=[],t=Cesium.Transforms.eastNorthUpToFixedFrame(_e.transformWGS84ToCartesian(this._center)),i=0;i<this._style.slices;i++){var n=i/this._style.slices*Cesium.Math.TWO_PI,r=Math.cos(n),o=Math.sin(n),a=new Cesium.Cartesian3(r*this._currentRadius,o*this._currentRadius,0);e.push(Cesium.Matrix4.multiplyByPoint(t,a,new Cesium.Cartesian3))}return e.push(e[0]),e}},{key:"_getHeights",value:function(e,t){for(var i=[],n=0;n<e;n++)i.push(t);return i}},{key:"update",value:function(e){if(this._nativeObjCesium=this._nativeObjCesium&&this._nativeObjCesium.destroy(),this._currentRadius+=this._radius/this._style.speed/20,this._currentHeight-=this._height/this._style.speed/20,(this._currentRadius>this._radius||this._currentHeight<this._style.minHeight)&&(this._currentRadius=this._style.minRadius,this._currentHeight=this._height),!this._style.slices||this._style.slices<3)return!1;var t=this._getPositions();if(!t||!t.length)return!1;var i=new Cesium.WallGeometry({positions:t,minimumHeights:this._getHeights(t.length,0),maximumHeights:this._getHeights(t.length,this._currentHeight)});this._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:i}),appearance:new Cesium.MaterialAppearance({material:Cesium.Material.fromType("WallDiffuse",{color:this._style.color}),flat:!0}),asynchronous:!1}),this._nativeObjCesium.update(e)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),this):this}},{key:"destroy",value:function(){return Cesium.destroyObject(this)}}]),i}(Ve);Ve.registerType("diffuse_wall_primitive");const Rt=It;function Ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Lt=function(e){u(i,e);var t=Ot(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._radius=r||{x:10,y:10,z:10},o._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),o.position=o._positions,o._state=Me.INITIALIZED,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("elec_ellipsoid_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.geometryInstances.modelMatrix=Cesium.Transforms.eastNorthUpToFixedFrame(_e.transformWGS84ToCartesian(this._position))}},{key:"radius",get:function(){return this._radius},set:function(e){this._radius=e,this._nativeObjCesium.geometryInstances.geometry=new Cesium.EllipsoidGeometry({radii:this._radius,maximumCone:Cesium.Math.PI_OVER_TWO})}},{key:"_setAppearance",value:function(){this._style&&(this._nativeObjCesium.appearance=new Cesium.MaterialAppearance({material:Cesium.Material.fromType("EllipsoidElectric",{color:this._style.color||Cesium.Color.GREEN,speed:this._style.speed||5})}))}},{key:"_mountedHook",value:function(){this.radius=this._radius,this.position=this._position,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),this._setAppearance(),this):this}}]),i}(Ve);Ve.registerType("elec_ellipsoid_primitive");const Bt=Lt;function Ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Nt=function(e){u(i,e);var t=Ft(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._width=o,r._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),r.positions=r._positions,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("flow_line_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.geometryInstances.geometry=new Cesium.PolylineGeometry({positions:_e.transformWGS84ArrayToCartesianArray(this._positions),width:this._width,vertexFormat:Cesium.PolylineMaterialAppearance.VERTEX_FORMAT})}},{key:"_setAppearance",value:function(){this._nativeObjCesium.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType(Cesium.Material.PolylineFlowType,{color:this._style.color||new Cesium.Color(1,0,0,.7),speed:this._style.speed||1,percent:this._style.percent||.03,gradient:this._style.gradient||.1})})}},{key:"_mountedHook",value:function(){this.positions=this._positions,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(W.merge(this._style,e),e.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType),this._setAppearance()),this}}]),i}(Ve);Ve.registerType("flow_line_primitive");const Vt=Nt;function kt(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function $t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ut={color:Cesium.Color.ORANGE},Gt=function(e){u(i,e);var t=$t(i);function i(e,r,o,a){var s;return n(this,i),(s=t.call(this))._center=Ne.parsePosition(e),s._length=r||100,s._topRadius=o||1,s._bottomRadius=a||50,s._nativeObjCesium=new Cesium.PrimitiveCollection,s.center=s._center,s._style=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?kt(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):kt(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},Ut),s._state=Me.INITIALIZED,s}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("light-cylinder-primitive")}},{key:"center",get:function(){return this._center},set:function(e){this._center=Ne.parsePosition(e),this._updatePrimitives()}},{key:"length",get:function(){return this._length},set:function(e){this._length=e,this._updatePrimitives()}},{key:"topRadius",get:function(){return this._topRadius},set:function(e){this._topRadius=e,this._updatePrimitives()}},{key:"bottomRadius",get:function(){return this._bottomRadius},set:function(e){this._bottomRadius=e,this._updatePrimitives()}},{key:"_computeEllipsePositions",value:function(e,t){var i=Cesium.EllipseGeometryLibrary.computeEllipsePositions({center:_e.transformWGS84ToCartesian(e),semiMajorAxis:t,semiMinorAxis:t,rotation:0,granularity:.005},!1,!0),n=Cesium.Cartesian3.unpackArray(i.outerPositions);return n.push(n[0]),n}},{key:"_createCylinderInstance",value:function(e,t,i){for(var n=t.slice(),r=t.length,o=2*r,a=[],s=1/(r-1),c=[],l=[],u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=Cesium.Cartographic.fromCartesian(e);return i.height+=t,Cesium.Cartographic.toCartesian(i)},d=0;d<r;d++){l.push(u(e[d],i)),a.push(d*s,0);var h=(d+1)%r,p=o-(d+1);c.push.apply(c,[p-1,p,d]),c.push.apply(c,[d,h,p-1])}for(var f in l)n.push(l[r-f-1]),a.push(1-f*s,1);var m=Cesium.PolygonGeometry.createGeometry(new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(n),perPositionHeight:!0}));return m.indices=c,m.attributes.st.values=a,new Cesium.GeometryInstance({geometry:m})}},{key:"_getCircleImage",value:function(){var e=document.createElement("canvas");e.width=512,e.height=512;var t=e.getContext("2d");return t.fillStyle="rgba(255,255,255,0)",t.strokeStyle="rgba(255, 255, 255,255)",t.setLineDash([50,50]),t.lineWidth=30,t.beginPath(),t.arc(256,256,150,0,2*Math.PI,!0),t.stroke(),t.restore(),e}},{key:"_getParticlesImage",value:function(e){var t=document.createElement("canvas");t.width=64,t.height=256;var i=t.getContext("2d");return i.clearRect(0,0,64,256),i.drawImage(e,0,0),i.drawImage(e,33,0),t}},{key:"_updatePrimitives",value:function(){var e=this;this._nativeObjCesium.removeAll();var t=0===this._center.alt,i=this._computeEllipsePositions(this._center,this._topRadius),n=this._computeEllipsePositions(this._center,.7*this._bottomRadius),r=this._computeEllipsePositions(this._center,this._bottomRadius),o={geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(this._computeEllipsePositions(this._center,2*this._bottomRadius)),perPositionHeight:!t}),asynchronous:!1})},a=t?new Cesium.GroundPrimitive(o):new Cesium.Primitive(o);a.appearance=new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType(Cesium.Material.CircleRingType,{color:this._style.color})});var s=t?new Cesium.GroundPrimitive(o):new Cesium.Primitive(o);s.appearance=new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType(Cesium.Material.CircleRotateType,{color:this._style.color,image:this._getCircleImage()})});var c=new Cesium.Primitive({geometryInstances:this._createCylinderInstance(i,n,this._length),appearance:new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType(Cesium.Material.CylinderFadeType,{color:this._style.color})}),asynchronous:!1});t?Cesium.GroundPrimitive.initializeTerrainHeights().then((function(){e._nativeObjCesium.add(a),e._nativeObjCesium.add(s),e._nativeObjCesium.add(c)})):(this._nativeObjCesium.add(a),this._nativeObjCesium.add(s),this._nativeObjCesium.add(c)),Cesium.Resource.fetchImage({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAEACAYAAADSoXR2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjExQTg0NDEyMDEzQjExRUFBNDhBRjhGMUMzOUUyNTU0IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjExQTg0NDEzMDEzQjExRUFBNDhBRjhGMUMzOUUyNTU0Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MTFBODQ0MTAwMTNCMTFFQUE0OEFGOEYxQzM5RTI1NTQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MTFBODQ0MTEwMTNCMTFFQUE0OEFGOEYxQzM5RTI1NTQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz41vRwAAAAE90lEQVR42uydyW4UMRCG3T2dgYSAEGs4sp44cCJBcGUJbwCvALwWPAI8ABwAiUVwgLBdkEikJEiAGMhkZqhfU1aa1sy0g+yaJPyWSupOpPjz0uVyucrJer2eG2fJ3ZgLAQhAgC0PgN8XIlkqgGLE75oih0WmRVZEvop0rHog18rnRe6IzInsthyCXFt+TuSKyGmRXZZDgK5eFrkv8l7kiUhrxN/JSo3pigSvcNmI1bCh3b5LK2+NqHyvyEF9x3z5HgqRRViOAXhW5JrCoNdei/y20gMYxhmRSyIXRY6JTMT4DENLW+SdyD19x/NajDmwmYIW79Hnn+MA4GJEAAIQgABJbMJB+n5Sl9zWZvR9DABUfkJkVt8fi3zUldAEoKl24Y2S1fPZEmBdZFHkkb4vxTLRQ5djbyUf0ncYrD/UADUB8MZno2Q19yx7gIqIAAQgAAEIQIAtYZT+85LvRnjQCoPKR3rQUgN4Y3ZeK30g8qps0qeeAzDn4TWD9+ySG+BBS90DaGnVg9a2tgnR4il9/jkOACoiAhCAAASIZpAAFl6yulO0JACo/IDrn6CedP1zxOciv6wAYNnAP3RVBeWtJQCWzG8iL/X9g4vkqNzMctzUXtintt2KM/aS+bmQaY90rb8CF6tSKiICEIAABCAAAQiwbfcFIWVCbUcc9bZDLKiYAKj4uOv7Bb+ILLj+8W7PCgC7Jhzv44Qdh9yrru8V61jPgd645gD2io+15RiC5ZA5ENNPmGmDmtrta9YAVEQE2FlrQUM/J6efU8cSAD87ojodBaccS6kgiiErGiq/qe93XT+3oGU5BJnbyKrIUs6BQZoQUEcrQ7CYagiGqeKiMgnXLXsg5uJUm/RQJKy8fGS7PMw6SgVQPrJFGZr0kCfUL/7IFjIzrLGpemBQ0kPbehL6I9vMjUh6oEVEAAIQgAAEIAABdpyj0qcK71YrqGUJANNrv+sHOcAiRpDDM1cTY1BEHk7kqyP/2Ac5vLEEQEG8aDnIoTb5ObZRWg5ywG5o1dX4ClNYxT7IISgJPsXGpLut9MCWU0S5bqkmdAa3LQEwcZDAfkZ3tthQfkwNkVeeD6kiuaUabcp6DpS9YyalrAdQ8bT1EFQVUabarND9fNuyB2gREYAABCAAAQhAAAIQoM770UgBXARCIr/koDogVlzgrWuxemBKd0m4JnBed0+5ZQ9gn3BK5LK+P4y5ewoB8DFiKO91COLFfwVuTCZV1hSoYw1APZCsFIkbN1Haaa87wwiKQe6eT27AEX6esPVVd8/kOOdAz/oz9FE0p+uGIKUeqE5C8xgSKiICEIAABCAAAQhAAAIQgAAEIAABCECA6AA+sbkREyDUUYlKD6ggZwzRkr8tewBhusisv+0in5qE/hFchoZTE0TL4p8sTbtIpyahQ4Ag5fKpSVBmfdDECvQTZjoM0U9N6KgkwH9xY7PXpPiCmq5yuaLVldHIO7jgNi5XfOEhCqNh9udHV/RnC5YAUDTftdV4/ivvwEoRVS9XXPWa1FIT5ird8jpSB+BDN3rO8AaGMnGy0I0QRYTvdk6NkOsucuhGCMAgI8Q0isaHbmAevNMhiD4P6iZhstANGiQE2PEGCRo2NcgAsQDwKnxWFdlT17/duWU1BJmuHz6A5bwbEsCScgh+qAHit3Jr1oooOPExdRBLbeJjSpuwuy30AAH+CDAAPH5ltESNYl4AAAAASUVORK5CYII="}).then((function(t){var n=new Cesium.Primitive({geometryInstances:e._createCylinderInstance(i,r,e._length),appearance:new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType(Cesium.Material.CylinderParticlesType,{color:e._style.color,image:e._getParticlesImage(t)})}),asynchronous:!1});e._nativeObjCesium.add(n)}))}},{key:"_mountedHook",value:function(){this.center=this._center}},{key:"update",value:function(e){this._nativeObjCesium.update(e)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),this):this}},{key:"destroy",value:function(){return Cesium.destroyObject(this)}}]),i}(Ve);Ve.registerType("light-cylinder-primitive");const zt=Gt;function Ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Wt=function(e){u(i,e);var t=Ht(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._modelUrl=r,o._nativeObjCesium=Cesium.Model.fromGltf({url:r}),o._state=Me.INITIALIZED,o.position=o._position,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("model_primitive")}},{key:"readyPromise",get:function(){return this._nativeObjCesium.readyPromise}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e);var t=_e.transformWGS84ToCartesian(this._position);this._nativeObjCesium.modelMatrix=Cesium.Transforms.headingPitchRollToFixedFrame(t,new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll)))}},{key:"modelUrl",get:function(){return this._modelUrl},set:function(e){this._modelUrl=e,this._nativeObjCesium=Cesium.Model.fromGltf({url:e}),this.position=this._position}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"getMaterial",value:function(e){return this._nativeObjCesium.getMaterial(e)}},{key:"getMesh",value:function(e){return this._nativeObjCesium.getMesh(e)}},{key:"getNode",value:function(e){return this._nativeObjCesium.getNode(e)}},{key:"getNodes",value:function(){return this._nativeObjCesium._runtime.nodes}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("model_primitive");const jt=Wt;function qt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Xt={pixelSize:8,outlineColor:Cesium.Color.BLUE,outlineWidth:2},Yt=function(e){u(i,e);var t=qt(i);function i(e){var r;return n(this,i),(r=t.call(this))._position=Ne.parsePosition(e),r._nativeObjCesium={position:void 0},r._state=Me.INITIALIZED,r.position=r._position,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("point_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position)}},{key:"_mountedHook",value:function(){this.position=this._position,W.merge(this._nativeObjCesium,Xt,this._style)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position,W.merge(this._style,e),W.merge(this._nativeObjCesium,Xt,this._style),this):this}}]),i}(Ve);Ve.registerType("point_primitive");const Kt=Yt;function Jt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Qt=function(e){u(i,e);var t=Jt(i);function i(e){var r;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._nativeObjCesium={positions:[]},r.positions=r._positions,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("polyline_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.positions=_e.transformWGS84ArrayToCartesianArray(this._positions)}},{key:"center",get:function(){return Ge(this._positions)}},{key:"distance",get:function(){return We(this._positions)}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium,e),this):this}}]),i}(Ve);Ve.registerType("polyline_primitive");const Zt=Qt;function ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ti=function(e){u(i,e);var t=ei(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._radius=r,o._nativeObjCesium=new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),o._state=Me.INITIALIZED,o.position=o._position,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("scan_circle_primitive")}},{key:"position",get:function(){return this._position},set:function(e){this._position=Ne.parsePosition(e),this._nativeObjCesium.geometryInstances.geometry=new Cesium.EllipseGeometry({center:_e.transformWGS84ToCartesian(this._position),semiMajorAxis:this._radius,semiMinorAxis:this._radius})}},{key:"radius",get:function(){return this._radius},set:function(e){this._radius=e,this._nativeObjCesium.geometryInstances.geometry.semiMajorAxis=this._radius,this._nativeObjCesium.geometryInstances.geometry.semiMinorAxis=this._radius}},{key:"_setAppearance",value:function(){this._style&&(this._nativeObjCesium.appearance=new Cesium.MaterialAppearance({material:Cesium.Material.fromType("CircleScan",{color:this._style.color||Cesium.Color.WHITE,speed:this._style.speed||10})}))}},{key:"_mountedHook",value:function(){this.position=this._position,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(W.merge(this._style,e),e.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType),this._setAppearance()),this}}]),i}(Ve);Ve.registerType("scan_circle_primitive");const ii=ti;function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ri=function(e){u(i,e);var t=ni(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._width=o,r._nativeObjCesium=new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("trail_line_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.geometryInstances.geometry=new Cesium.PolylineGeometry({positions:_e.transformWGS84ArrayToCartesianArray(this._positions),width:this._width})}},{key:"_setAppearance",value:function(){this._nativeObjCesium.appearance=new Cesium.PolylineMaterialAppearance({material:Cesium.Material.fromType("PolylineTrail",{color:this._style.color||new Cesium.Color(1,0,0,.7),speed:this._style.speed||5})})}},{key:"_mountedHook",value:function(){this.positions=this._positions,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(W.merge(this._style,e),e.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType),this._setAppearance()),this}}]),i}(Ve);Ve.registerType("trail_line_primitive");const oi=ri;function ai(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var si=function(e){u(i,e);var t=ai(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._positions=Ne.parsePositions(e),o._nativeObjCesium=new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})}),o._video=r,o._state=Me.INITIALIZED,o.positions=o._positions,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("video_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.geometryInstances.geometry=Cesium.PolygonGeometry.fromPositions({positions:_e.transformWGS84ArrayToCartesianArray(this._positions),height:this._style.height,extrudedHeight:this._style.extrudedHeight,closeTop:this._style.closeTop,closeBottom:this._style.closeBottom,vertexFormat:Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT})}},{key:"video",get:function(){return this._video},set:function(e){this._video=e,this._setAppearance()}},{key:"_setAppearance",value:function(){this._nativeObjCesium.appearance=new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType("Image",{image:this._video})})}},{key:"_mountedHook",value:function(){this.positions=this._positions,this.video=this._video}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(W.merge(this._style,e),this._style.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType)),this}}]),i}(Ve);Ve.registerType("video_primitive");const ci=si;function li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ui=function(e){u(i,e);var t=li(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._holes=o.map((function(e){return Ne.parsePositions(e)})),r._nativeObjCesium=new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}}),asynchronous:!0}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("water_primitive")}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e),this._nativeObjCesium.geometryInstances.geometry=new Cesium.PolygonGeometry({polygonHierarchy:new Cesium.PolygonHierarchy(_e.transformWGS84ArrayToCartesianArray(this._positions),this._holes.map((function(e){return new Cesium.PolygonHierarchy(_e.transformWGS84ArrayToCartesianArray(e))}))),height:this._style.height||0,extrudedHeight:this._style.extrudedHeight||0,closeTop:this._style.closeTop||!0,closeBottom:this._style.closeBottom||!0,vertexFormat:Cesium.EllipsoidSurfaceAppearance.VERTEX_FORMAT})}},{key:"_setAppearance",value:function(){this._style&&(this._nativeObjCesium.appearance=new Cesium.EllipsoidSurfaceAppearance({material:Cesium.Material.fromType("Water",{baseWaterColor:this._style.baseWaterColor||new Cesium.Color(.2,.3,.6,1),blendColor:this._style.blendColor||new Cesium.Color(0,1,.699,1),specularMap:this._style.specularMap||Cesium.Material.DefaultImageId,normalMap:this._style.normalMap||Cesium.buildModuleUrl("static/images/water/waterNormalsSmall.jpg"),frequency:this._style.frequency||1e3,animationSpeed:this._style.animationSpeed||.01,amplitude:this._style.amplitude||10,specularIntensity:this._style.specularIntensity||.5})}))}},{key:"_mountedHook",value:function(){this.positions=this._positions,!this._nativeObjCesium.appearance&&this._setAppearance()}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e)return 0===Object.keys(e).length||(W.merge(this._style,e),this._style.classificationType&&(this._nativeObjCesium.classificationType=this._style.classificationType),this._setAppearance()),this}}]),i}(Ve);Ve.registerType("water_primitive");const di=ui;function hi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var fi=function(e){u(i,e);var t=pi(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,o))._nativeObjCesium=new Cesium.Entity({billboard:{}}),r._position=Ne.parsePosition(e),r.position=r._position,W.merge(r._style,o),r.setOptions(o),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("billboard")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(W.merge(this._style,e),W.merge(this._nativeObjCesium.billboard,e),this.setLabel(this._style),this.originOption=Cesium.clone(this._style,!1),this):this}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.billboard,this._highlight),this.setLabel(this._style)}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now(),r=_e.transformCartesianToWGS84(e.position.getValue(n));return e.billboard&&((t=new i(r,{image:e.billboard.image.getValue(n)})).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?hi(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):hi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n))),t}}]),i}(Ve);Ve.registerType("billboard");const mi=fi;function gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var _i=function(e){u(i,e);var t=gi(i);function i(e,r,o,a){var s;return n(this,i),(s=t.call(this))._position=Ne.parsePosition(e),s._length=r,s._width=o,s._height=a,s._nativeObjCesium=new Cesium.Entity({box:{dimensions:{x:+s._length,y:+s._width,z:+s._height}}}),s.position=s._position,s._state=Me.INITIALIZED,s}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("box")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"length",get:function(){return this._length},set:function(e){return this._length=e||0,this._nativeObjCesium.box.dimensions.x=+this._length,this}},{key:"width",get:function(){return this._width},set:function(e){return this._width=e||0,this._nativeObjCesium.box.dimensions.y=+this._width,this}},{key:"height",get:function(){return this._height},set:function(e){return this._height=e||0,this._nativeObjCesium.box.dimensions.z=+this._height,this}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.length&&delete e.width&&delete e.height,W.merge(this._style,e),W.merge(this._nativeObjCesium.box,e)),this}}]),i}(Ve);Ve.registerType("box");const yi=_i;function Ci(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function vi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ci(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ci(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Si=function(e){u(i,e);var t=Ti(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._nativeObjCesium=new Cesium.Entity({polygon:{}}),o._center=Ne.parsePosition(e),o._radius=+r||0,o._rotateAmount=0,o._stRotation=0,o._state=Me.INITIALIZED,o.center=o._center,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("circle")}},{key:"center",get:function(){return this._center},set:function(e){return this._center=Ne.parsePosition(e),this._nativeObjCesium.polygon.hierarchy=this._computeHierarchy(),this}},{key:"radius",get:function(){return this._radius},set:function(e){return this._radius=+e,this._nativeObjCesium.polygon.hierarchy=this._computeHierarchy(),this}},{key:"rotateAmount",get:function(){return this._rotateAmount},set:function(e){var t=this;return this._rotateAmount=+e,this._nativeObjCesium.polygon.stRotation=new Cesium.CallbackProperty((function(){return t._stRotation+=t._rotateAmount,(t._stRotation>=360||t._stRotation<=-360)&&(t._stRotation=0),Cesium.Math.toRadians(t._stRotation)}),!1),this}},{key:"_computeHierarchy",value:function(){var e=new Cesium.PolygonHierarchy,t=Cesium.EllipseGeometryLibrary.computeEllipsePositions({center:_e.transformWGS84ToCartesian(this._center),semiMajorAxis:this._radius,semiMinorAxis:this._radius,rotation:0,granularity:.005},!1,!0),i=Cesium.Cartesian3.unpackArray(t.outerPositions);return i.push(i[0]),e.positions=i,e}},{key:"_mountedHook",value:function(){this.center=this._center}},{key:"setLabel",value:function(e,t){return this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._center),this._nativeObjCesium.label=vi(vi({},t),{},{text:e}),this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium.polygon,e),this):this}}]),i}(Ve);Ve.registerType("circle");const Ai=Si;function bi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var xi=function(e){u(i,e);var t=Ei(i);function i(e){var r;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._nativeObjCesium=new Cesium.Entity({corridor:{}}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("corridor")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.corridor.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),this}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium.corridor,e)),this}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();e.polyline&&((t=new i(_e.transformCartesianArrayToWGS84Array(e.polyline.positions.getValue(n)))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):bi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)));return t}}]),i}(Ve);Ve.registerType("corridor");const Pi=xi;function Di(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var wi=function(e){u(i,e);var t=Di(i);function i(e,r,o,a){var s;return n(this,i),(s=t.call(this))._position=Ne.parsePosition(e),s._length=+r||0,s._topRadius=+o||0,s._bottomRadius=+a||0,s._nativeObjCesium=new Cesium.Entity({cylinder:{}}),s._state=Me.INITIALIZED,s.position=s._position,s}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("cylinder")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"length",get:function(){return this._length},set:function(e){return this._length=+e||0,this._nativeObjCesium.cylinder.length=this._length,this}},{key:"topRadius",get:function(){return this._topRadius},set:function(e){return this._topRadius=+e||0,this._nativeObjCesium.cylinder.topRadius=this._topRadius,this}},{key:"bottomRadius",get:function(){return this._bottomRadius},set:function(e){return this._bottomRadius=+e||0,this._nativeObjCesium.cylinder.bottomRadius=this._bottomRadius,this}},{key:"_mountedHook",value:function(){this.position=this._position,this.length=this._length,this.topRadius=this._topRadius,this.bottomRadius=this._bottomRadius}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.length&&delete e.topRadius&&delete e.bottomRadius,W.merge(this._style,e),W.merge(this._nativeObjCesium.cylinder,e)),this}}]),i}(Ve);Ve.registerType("cylinder");const Mi=wi;function Ii(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ri=function(e){u(i,e);var t=Ii(i);function i(e,r,o){var a;return n(this,i),(a=t.call(this))._position=Ne.parsePosition(e),a._semiMajorAxis=+r||0,a._semiMinorAxis=+o||0,a._nativeObjCesium=new Cesium.Entity({ellipse:{}}),a._state=Me.INITIALIZED,a.position=a._position,a}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("ellipse")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"semiMajorAxis",get:function(){return this._semiMajorAxis},set:function(e){return this._semiMajorAxis=+e||0,this._nativeObjCesium.ellipse.semiMajorAxis=this._semiMajorAxis,this}},{key:"semiMinorAxis",get:function(){return this._semiMinorAxis},set:function(e){return this._semiMinorAxis=+e||0,this._nativeObjCesium.ellipse.semiMinorAxis=this._semiMinorAxis,this}},{key:"_mountedHook",value:function(){this.position=this._position,this.semiMajorAxis=this._semiMajorAxis,this.semiMinorAxis=this._semiMinorAxis}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.semiMajorAxis&&delete e.semiMinorAxis,W.merge(this._style,e),W.merge(this._nativeObjCesium.ellipse,e)),this}}]),i}(Ve);Ve.registerType("ellipse");const Oi=Ri;function Li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Bi=function(e){u(i,e);var t=Li(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._position=Ne.parsePosition(e),o._radius=r||{x:10,y:10,z:10},o._nativeObjCesium=new Cesium.Entity({ellipsoid:{}}),o._state=Me.INITIALIZED,o.position=o._position,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("ellipsoid")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"radius",get:function(){return this._radius},set:function(e){return this._radius=e||{x:10,y:10,z:10},this._nativeObjCesium.ellipsoid.radii=this._radius,this}},{key:"_mountedHook",value:function(){this.position=this._position,this.radius=this._radius}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.radius,W.merge(this._style,e),W.merge(this._nativeObjCesium.ellipsoid,e)),this}}]),i}(Ve);Ve.registerType("ellipsoid");const Fi=Bi;function Ni(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Vi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ki={text:"test",color:"#ffff00"},$i=function(e){u(i,e);var t=Vi(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this))._nativeObjCesium=new Cesium.Entity({label:{}}),r._position=Ne.parsePosition(e),r._state=Me.INITIALIZED,r.position=r._position,r._style=W.merge(r._style,ki,o),r.setOptions(r._style),r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("label")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this}},{key:"text",get:function(){return this._text},set:function(e){return this._text=e,this._nativeObjCesium.label.text=this._text,this}},{key:"_mountedHook",value:function(){this.position=this._position}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.label,this._highlight)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position,Ne.parseOption(e),e.fillColor=e.color,W.merge(this._style,e),W.merge(this._nativeObjCesium.label,e),this):this}}],[{key:"fromEntity",value:function(e){var t=Cesium.JulianDate.now(),n=_e.transformCartesianToWGS84(e.position.getValue(t)),r=void 0;return e.billboard&&((r=new i(n,e.name)).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ni(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ni(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(t))),r}}]),i}(Ve);Ve.registerType("label");const Ui=$i;function Gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var zi=function(e){u(i,e);var t=Gi(i);function i(e,r,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(n(this,i),(a=t.call(this))._position=Ne.parsePosition(e),a._width=+r||0,a._height=+o||0,s.normal&&"string"==typeof s.normal){var c=String(s.normal).toLocaleUpperCase();s.normal="X"===c?Cesium.Cartesian3.UNIT_X:"Y"===c?Cesium.Cartesian3.UNIT_Y:Cesium.Cartesian3.UNIT_Z}else s.normal=Cesium.Cartesian3.UNIT_Z;return a._normal=s.normal,a._distance=s.distance||0,a._nativeObjCesium=new Cesium.Entity({plane:{dimensions:{x:a._width,y:a._height},plane:new Cesium.Plane(a._normal,a._distance)}}),a.position=a._position,a._state=Me.INITIALIZED,a}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("plane")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this._nativeObjCesium.orientation=Cesium.Transforms.headingPitchRollQuaternion(_e.transformWGS84ToCartesian(this._position),new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._position.heading),Cesium.Math.toRadians(this._position.pitch),Cesium.Math.toRadians(this._position.roll))),this}},{key:"width",get:function(){return this._width},set:function(e){return this._width=+e||0,this._nativeObjCesium.plan.dimensions.x=this._width,this}},{key:"height",get:function(){return this._height},set:function(e){return this._height=+e||0,this._nativeObjCesium.plan.dimensions.y=this._height,this}},{key:"distance",get:function(){return this._distance},set:function(e){return this._distance=e,this._nativeObjCesium.plane.plane.distance=e,this}},{key:"_mountedHook",value:function(){this.position=this._position,this.distance=this._distance}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.dimensions,W.merge(this._style,e),W.merge(this._nativeObjCesium.plane,e)),this}}]),i}(Ve);Ve.registerType("plane");const Hi=zi;function Wi(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function ji(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Wi(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Wi(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var qi={vrButton:!0,animation:!1,baseLayerPicker:!1,imageryProvider:!1,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,navigationInstructionsInitiallyVisible:!1,creditContainer:void 0,shouldAnimate:!0};const Xi=function(){function e(){n(this,e)}return s(e,null,[{key:"init",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"string"==typeof t&&!document.getElementById(t))throw new Error("Viewer:必须传入放置三维球的dom id");i.changeDeaultView=Cesium.defaultValue(i.changeDeaultView,!0),i.changeDeaultView&&e.setDeaultView(),i.changeDefaultAccessToken=Cesium.defaultValue(i.changeDefaultAccessToken,!0),i.changeDefaultAccessToken&&e.setDefaultAccessToken();var n=new Cesium.Viewer(t,ji(ji({},qi),i));return n._cesiumWidget._creditContainer.style.display="none",i.noNight=Cesium.defaultValue(i.noNight,!0),i.noNight&&e.setNoNight(!0),n}},{key:"setDeaultView",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:78,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:23,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:140,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:60;Cesium.Camera.DEFAULT_VIEW_RECTANGLE=Cesium.Rectangle.fromDegrees(e,t,i,n)}},{key:"settianditu_key",value:function(e){return this._tianditu_key=e}},{key:"setDefaultAccessToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Cesium.Ion.defaultAccessToken=e||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiJlY2I3ODgyYS1lMDM4LTQ4ZWUtODYxZC04ODRhM2JmNTExOWYiLCJpZCI6OTkwMywic2NvcGVzIjpbImFzciIsImdjIl0sImlhdCI6MTU1NTI0MzI4Mn0.FD7eNN4wnZnt7ux5H5gQNupNYddLoY9GJerY0d9islc"}},{key:"setNoNight",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];viewer.scene.light=e?new Cesium.DirectionalLight({direction:new Cesium.Cartesian3(.35492591601301104,-.8909182691839401,-.2833588392420772)}):new Cesium.SunLight}}]),e}();const Yi={};const Ki=function(){function e(t){n(this,e),t=t||{},this._id=W.uuid(),this.businessID=t.id||W.uuid(),this._nativeObjCesium=void 0,this._viewer=void 0,this._state=void 0,this._show=!0,this._isGround=!1,this._cache={},this._attr={},Ne.parseOption(t),this._layerEvent=new Xr,this._layerEvent.addEventListener(ne.ADD,this._onAdd,this),this._layerEvent.addEventListener(ne.REMOVE,this._onRemove,this),this._popup=void 0}return s(e,[{key:"boundingSphere",get:function(){return null}},{key:"layerId",get:function(){return this._id}},{key:"id",get:function(){return this.businessID}},{key:"nativeObjCesium",get:function(){return this._nativeObjCesium}},{key:"show",get:function(){return this._show},set:function(e){this._show=e,this._nativeObjCesium&&(this._nativeObjCesium.show=this._show)}},{key:"layerEvent",get:function(){return this._layerEvent}},{key:"attr",get:function(){return this._attr},set:function(e){this._attr=e}},{key:"state",get:function(){return this._state}},{key:"_addedHook",value:function(){}},{key:"_removedHook",value:function(){this.clear()}},{key:"_onAdd",value:function(e){this._viewer=e,this._nativeObjCesium&&(this._nativeObjCesium instanceof Cesium.PrimitiveCollection?this._isGround?this._viewer.scene.groundPrimitives.add(this._nativeObjCesium):this._viewer.scene.primitives.add(this._nativeObjCesium):this._viewer.dataSources.add(this._nativeObjCesium),this._addedHook&&this._addedHook(),this._state=Me.ADDED)}},{key:"_onRemove",value:function(){this._nativeObjCesium&&this._viewer&&(this._cache={},this._nativeObjCesium instanceof Cesium.PrimitiveCollection?(this._nativeObjCesium.removeAll(),this._isGround?this._viewer.scene.groundPrimitives.remove(this._nativeObjCesium):this._viewer.scene.primitives.remove(this._nativeObjCesium)):this._nativeObjCesium.then?(this._nativeObjCesium.then((function(e){e.entities.removeAll()})),this._viewer.dataSources.remove(this._nativeObjCesium)):(this._nativeObjCesium.entities&&this._nativeObjCesium.entities.removeAll(),this._viewer.dataSources.remove(this._nativeObjCesium)),this._removedHook&&this._removedHook(),this._state=Me.REMOVED)}},{key:"_addGraphic",value:function(e){this._cache.hasOwnProperty(e.graphicId)||(this._cache[e.graphicId]=e,this._nativeObjCesium&&e.raiseEvent(te.ADD,this),this._state===Me.CLEARED&&(this._state=Me.ADDED))}},{key:"_removeGraphic",value:function(e){this._cache.hasOwnProperty(e.graphicId)&&(this._nativeObjCesium&&e.raiseEvent(te.REMOVE,this),delete this._cache[e.graphicId])}},{key:"addGraphic",value:function(e){return this._addGraphic(e),this}},{key:"addGraphics",value:function(e){var t=this;return Array.isArray(e)&&e.forEach((function(e){t._addGraphic(e)})),this}},{key:"removeGraphic",value:function(e){return this._removeGraphic(e),this}},{key:"getGraphic",value:function(e){return this._cache[e]||void 0}},{key:"getGraphicById",value:function(e){var t=this,i=void 0;return Object.keys(this._cache).forEach((function(n){t._cache[n].id===e&&(i=t._cache[n])})),i}},{key:"getGraphicsByAttr",value:function(e,t){var i=[];return this.eachGraphic((function(n){n.attr[e]===t&&i.push(n)}),this),i}},{key:"eachGraphic",value:function(e,t){var i=this;return Object.keys(this._cache).forEach((function(n){e&&e.call(t||i,i._cache[n])})),this}},{key:"getGraphics",value:function(){var e=this,t=[];return Object.keys(this._cache).forEach((function(i){t.push(e._cache[i])})),t}},{key:"clear",value:function(){}},{key:"remove",value:function(){this._viewer&&this._viewer.removeLayer(this)}},{key:"addTo",value:function(e){return e.addLayer&&e.addLayer(this),this}},{key:"setOptions",value:function(e){}},{key:"addEventListener",value:function(e,t,i){return this._layerEvent.addEventListener(e,t,i||this),this}},{key:"removeEventListener",value:function(e,t,i){return this._layerEvent.removeEventListener(e,t,i||this),this}},{key:"raiseEvent",value:function(e,t){return this._layerEvent.raiseEvent(e,t),this}},{key:"bindPopup",value:function(e){var t=this;this._popup=new ve(e),this._popup.install(this),this.eachGraphic((function(e){e.raiseEvent(te.BIND_POPUP,t)}))}},{key:"bindTooltip",value:function(e){var t=this;new Oe(e).install(this),this.addEventListener(Q.MOUSE_OUT,(function(e){t.tooltip.hide()})),this.addEventListener(Q.CLICK,(function(e){t.tooltip.hide()}))}}],[{key:"registerType",value:function(e){e&&(Yi[e.toLocaleUpperCase()]=e.toLocaleLowerCase())}},{key:"getLayerType",value:function(e){return Yi[e.toLocaleUpperCase()]||void 0}}]),e}();function Ji(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Qi(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ji(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}const Zi=function(){function e(t){n(this,e),this._viewer=t,this._options={}}return s(e,[{key:"_setViewerOption",value:function(){var e,t,i;return this._viewer.nativeObjCesium.shadows=null!==(e=null===(t=this._options)||void 0===t?void 0:t.shadows)&&void 0!==e&&e,this._viewer.nativeObjCesium.resolutionScale=(null===(i=this._options)||void 0===i?void 0:i.resolutionScale)||1,this}},{key:"_setCanvasOption",value:function(){return this._options.tabIndex&&this._viewer.scene.canvas.setAttribute("tabIndex",this._options.tabIndex),this}},{key:"_setSceneOption",value:function(){var e,t,i,n,r=this._viewer.scene;return r.skyAtmosphere.show=null===(e=this._options.showAtmosphere)||void 0===e||e,r.sun.show=null===(t=this._options.showSun)||void 0===t||t,r.moon.show=null===(i=this._options.showMoon)||void 0===i||i,r.postProcessStages.fxaa.enabled=null!==(n=this._options.enableFxaa)&&void 0!==n&&n,r.msaaSupported&&(r.msaaSamples=+this._options.msaaSamples||1),this}},{key:"_setSkyBoxOption",value:function(){if(!this._options.skyBox)return this;var e=this._options.skyBox;if(e instanceof Cesium.SkyBox)this._viewer.scene.skyBox=e;else{var t,i=this._viewer.scene.skyBox;i.show=null===(t=e.show)||void 0===t||t,e.offsetAngle&&(i.offsetAngle=e.offsetAngle),null!=e&&e.sources&&(i.sources=e.sources)}return this}},{key:"_setGlobeOption",value:function(){var e,t,i,n,r,o,a,s,c,l,u,d;if(!this._options.globe)return this;var h=this._viewer.scene.globe,p=this._options.globe;return W.merge(h,{show:null===(e=null==p?void 0:p.show)||void 0===e||e,showGroundAtmosphere:null===(t=null==p?void 0:p.showGroundAtmosphere)||void 0===t||t,enableLighting:null===(i=null==p?void 0:p.enableLighting)||void 0===i||i,depthTestAgainstTerrain:null!==(n=null==p?void 0:p.depthTestAgainstTerrain)&&void 0!==n&&n,tileCacheSize:+(null==p?void 0:p.tileCacheSize)||100,preloadSiblings:null!==(r=null==p?void 0:p.preloadSiblings)&&void 0!==r&&r,showSkirts:null===(o=null==p?void 0:p.showSkirts)||void 0===o||o,baseColor:(null==p?void 0:p.baseColor)||new Cesium.Color(0,0,.5,1),terrainExaggeration:(null==p?void 0:p.terrainExaggeration)||1,terrainExaggerationRelativeHeight:(null==p?void 0:p.terrainExaggerationRelativeHeight)||0}),W.merge(h.translucency,{enabled:null!==(a=null==p||null===(s=p.translucency)||void 0===s?void 0:s.enabled)&&void 0!==a&&a,backFaceAlpha:+(null==p||null===(c=p.translucency)||void 0===c?void 0:c.backFaceAlpha)||1,backFaceAlphaByDistance:null==p||null===(l=p.translucency)||void 0===l?void 0:l.backFaceAlphaByDistance,frontFaceAlpha:+(null==p||null===(u=p.translucency)||void 0===u?void 0:u.frontFaceAlpha)||1,frontFaceAlphaByDistance:null==p||null===(d=p.translucency)||void 0===d?void 0:d.frontFaceAlphaByDistance}),this}},{key:"_setCameraController",value:function(){var e,t,i,n,r,o,a;if(null===(e=this._options)||void 0===e||!e.cameraController)return this;var s=this._viewer.scene.screenSpaceCameraController,c=this._options.cameraController;return W.merge(s,{enableInputs:null===(t=null==c?void 0:c.enableInputs)||void 0===t||t,enableRotate:null===(i=null==c?void 0:c.enableRotate)||void 0===i||i,enableTilt:null===(n=null==c?void 0:c.enableTilt)||void 0===n||n,enableTranslate:null===(r=null==c?void 0:c.enableTranslate)||void 0===r||r,enableZoom:null===(o=null==c?void 0:c.enableZoom)||void 0===o||o,enableCollisionDetection:null===(a=null==c?void 0:c.enableCollisionDetection)||void 0===a||a,minimumZoomDistance:+(null==c?void 0:c.minimumZoomDistance)||1,maximumZoomDistance:+(null==c?void 0:c.maximumZoomDistance)||40489014}),this}},{key:"setOptions",value:function(e){return 0===Object.keys(e).length||(this._options=Qi(Qi({},this._options),e),this._setViewerOption()._setCanvasOption()._setSceneOption()._setSkyBoxOption()._setGlobeOption()._setCameraController()),this}}]),e}();var en=i(506);function tn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}const nn=function(){function e(t,i,r){n(this,e),this._url=t||"https://api.tianditu.gov.cn/v2/search",this.apiKey=i||"b832b9764939cbb0919148c548b669ba",this._params=Cesium.defaultValue(r,{})}return s(e,[{key:"geocode",value:function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?tn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):tn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({keyWord:e,level:11,mapBound:"-180,-90,180,90",queryType:4,start:0,count:10},this._params);return new Cesium.Resource({url:this._url,queryParameters:{format:"json",postStr:JSON.stringify(t),tk:this.apiKey,type:"query"}}).fetchJson().then((function(e){if(!e.count||0==e.count)return[];var t=e.suggests,i=[];return t.forEach((function(e){i.push({displayName:e.name,destination:e.gbCode+""})})),i}))}}]),e}();function rn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}const on=function(){function e(t,i,r){n(this,e),this._url=t,this.apiKey=i,this._params=Cesium.defaultValue(r,{})}return s(e,[{key:"geocode",value:function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?rn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):rn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({keyword:e,pageIndex:1,pageSize:10,returnGeometry:!0,searchField:"NAME",f:"json"},this._params);return new Cesium.Resource({url:this._url.replace("token",this.apiKey),queryParameters:t}).fetchJson().then((function(e){if(!e.featuresTotal||0==e.featuresTotal)return[];var t=e.features,i=[];return t.forEach((function(e){i.push({displayName:e.NAME,destination:e.coor})})),i}))}}]),e}();const an=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n(this,e),!t.viewer)throw new Error("必须传入viewer");this.viewer=t.viewer,this._init(t)}return s(e,[{key:"_init",value:function(e){}},{key:"_blurInput",value:function(){(document.querySelector(".cesium-geocoder-input").blur(),window.getSelection)?window.getSelection().removeAllRanges():document.selection&&document.selection.empty&&document.selection.empty()}},{key:"_getContainer",value:function(e){var t=document.createElement("div");return t.setAttribute("class","cesium-viewer-geocoderContainer"),"string"==typeof e&&(e=document.getElementById(e)),e.appendChild(t),t}},{key:"tanslate",value:function(){for(var e=document.getElementsByClassName("cesium-geocoder-input"),t=0;t<e.length;t++)e[t].setAttribute("placeholder","请输入地名...")}}]),e}();function sn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function cn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):sn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const un=function(e){u(i,e);var t=ln(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,e)}return s(i,[{key:"_init",value:function(e){var t=e.url||"https://api.tianditu.gov.cn/v2/search",i=e.apiKey||"b832b9764939cbb0919148c548b669ba";this._scaleRatio=e.scaleRatio||1,this._params=Cesium.defaultValue(e.params,{});var n=new nn(t,i,this._params),r=this._getContainer(e.container),o=new Cesium.Geocoder(cn(cn({},e),{},{container:r,geocoderServices:[n],destinationFound:this.flyToDestination.bind(this)}));o.viewModel.flyStart=new Cesium.Event,o.viewModel.flyStart.addEventListener(this._blurInput),o.viewModel.complete.addEventListener(this._blurInput),this.tanslate()}},{key:"flyToDestination",value:function(e,t){var i=this;e.flyStart.raiseEvent();var n=cn({specify:t,keyWord:e._searchText,level:11,mapBound:"-180,-90,180,90",queryType:1,start:0,count:10},this._params),r=new Cesium.Resource({url:e._geocoderServices[0]._url,queryParameters:{format:"json",postStr:JSON.stringify(n),tk:e._geocoderServices[0].apiKey,type:"query"}});r.fetchJson().then((function(t){if(t.count&&0!=r.count)if(1==t.resultType){var n=t.pois[0];Xn.flyToPosition(i.viewer,n.lonlat,0,-90,1/i._scaleRatio*5e3,e._flightDuration,(function(){e._complete.raiseEvent()}))}else{if(3!=t.resultType)return;var o=t.area;if(!o)return;for(var a=o.bound.split(","),s=[],c=0;c<a.length;c++)if((c+1)%2==0){var l=a[c-1]+","+a[c];s.push(l)}if(s.length<2)return;Xn.flyToPositions(i.viewer,s,0,-90,1/i._scaleRatio*.8,e._flightDuration,(function(){e._complete.raiseEvent()}))}}))}}]),i}(an);const dn=Object.freeze({TIANDITU:0,TIANDITU_SHANXI:1});function hn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function pn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):hn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var mn=function(e){u(i,e);var t=fn(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,e)}return s(i,[{key:"_init",value:function(e){var t=e.url||"https://shaanxi.tianditu.gov.cn/ServiceSystem/MapSearch/rest/service/searchPOI/token/SearchServer/0/fuzzy",i=e.apiKey||"04x-Fu5nGOnU7RY7";this._scaleRatio=e.scaleRatio||1,this._params=Cesium.defaultValue(e.params,{});var n=new on(t,i,this._params),r=this._getContainer(e.container),o=new Cesium.Geocoder(pn(pn({},e),{},{container:r,geocoderServices:[n],destinationFound:this.flyToDestination.bind(this)}));o.viewModel.flyStart=new Cesium.Event,o.viewModel.flyStart.addEventListener(this._blurInput),o.viewModel.complete.addEventListener(this._blurInput),this.tanslate()}},{key:"flyToDestination",value:function(e,t){e.flyStart.raiseEvent(),Xn.flyToPosition(this.viewer,t,0,-90,1/this._scaleRatio*5e3,e._flightDuration,(function(){e._complete.raiseEvent()}))}}]),i}(an);const gn=mn;const _n=function(){function e(){n(this,e)}return s(e,null,[{key:"createGeocoder",value:function(e,t){var i=void 0;switch(e){case dn.TIANDITU:i=new un(t);break;case dn.TIANDITU_SHANXI:i=new gn(t)}return i}}]),e}();var yn=function(){function e(){n(this,e)}return s(e,null,[{key:"_setContent",value:function(t){e.content=e.content.replace("{{__VERSION__}}",t.version).replace("{{__TIME__}}",e._getTime()).replace("{{__AUTHOR__}}",t.author).replace("{{__HOME_PAGE__}}",t.home_page)}},{key:"_getTime",value:function(){var e=new Date,t=e.getMonth()+1;t=t<10?"0"+t:t;var i=e.getDate();return i=i<10?"0"+i:i,"".concat(e.getFullYear(),"-").concat(t,"-").concat(i)}},{key:"consoleOut",value:function(){setTimeout((function(){console.clear(),console.log(e.content,"font-size:20px;padding-left:70px;color:#FF3300;","font-size:14px;padding-left:50px;color:#3366FF;font-style:oblique;","font-size:12px;color:#3366FF;")}),2e3)}}]),e}();function Cn(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function vn(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Cn(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}X(yn,"content","%c \n @anov/gis \n %c \n 三维WebGIS二次开发SDK %c \n\n 版本: {{__VERSION__}}\n 编译日期:{{__TIME__}}\n npm地址: https://www.npmjs.com/package/@anov/gis\n 开发作者: {{__AUTHOR__}}\n 网站主页: {{__HOME_PAGE__}} \n\n\n 微信:drmj2022\n QQ:1621018105\n 手机号:16619716371 \n \n\n 版权声明:\n 任何个人和机构在遵守下列条件的前提下可以永久免费使用:\n 1)程序包完整引用;\n 2)保留此版权信息在控制台输出。\n 我方保留对此版权信息的最终解释权。");var Tn={vrButton:!1,animation:!1,baseLayerPicker:!1,imageryProvider:!1,fullscreenButton:!1,geocoder:!1,homeButton:!1,infoBox:!1,sceneModePicker:!1,selectionIndicator:!1,timeline:!1,navigationHelpButton:!1,navigationInstructionsInitiallyVisible:!1,creditContainer:void 0,shouldAnimate:!0,showFPS:!1,flyDuration:3,language:"chinese",copyRight:!0,scaleRatio:1},Sn=function(){function e(t){var i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,e),!t||"string"==typeof t&&!document.getElementById(t))throw new Error("Viewer:必须传入放置三维球的dom id");if(r.changeDeaultView=Cesium.defaultValue(r.changeDeaultView,!0),r.defaultView=Cesium.defaultValue(r.defaultView,[78,23,140,60]),r.changeDeaultView&&this.setDeaultView(r.defaultView),r.changeDefaultAccessToken=Cesium.defaultValue(r.changeDefaultAccessToken,!0),r.changeDefaultAccessToken&&this.setDefaultAccessToken(),this.initEnvironment(),this._options=vn(vn(vn({},Tn),r),{},{geocoder:!1}),this._nativeObjCesium=new Cesium.Viewer(t,this._options),this._options.showFPS&&(this._nativeObjCesium.scene.debugShowFramesPerSecond=!0),this._scaleRatio=this._options.scaleRatio,new $r(this),this._viewerEvent=new Gr,this._sceneEvent=new Hr(this),this._options.center&&this.flyToPosition(this._options.center,this._options.flyDuration,(function(){i.raiseEvent(Z.FLY_COMPLETE)})),this._viewerOption=new Zi(this),this._layerContainer=j.create("div","viewer-layers","string"==typeof t?document.getElementById(t):t),this._layerCache={},this._nativeObjCesium._cesiumWidget._creditContainer.style.display="none",setTimeout((function(){i.createDefaultGeocoderContainer(r.geocoderType)}),0),this._options.baseLayerPicker){var o=r.tiandituKey||"b8ddad3f97aded37e6d58ae4867e5267";ar.init(this,o)}this._options.showMapInfo&&new rr(this),"chinese"==this._options.language&&new sr(this).toChinese(),this._options.copyRight&&yn.consoleOut()}return s(e,[{key:"scaleRatio",get:function(){return this._scaleRatio}},{key:"nativeObjCesium",get:function(){return this._nativeObjCesium}},{key:"container",get:function(){return this._nativeObjCesium.container}},{key:"extend",get:function(){return this._nativeObjCesium.extend}},{key:"sceneModePicker",get:function(){return this._nativeObjCesium.sceneModePicker}},{key:"navigationHelpButton",get:function(){return this._nativeObjCesium.navigationHelpButton}},{key:"baseLayerPicker",get:function(){return this._nativeObjCesium.baseLayerPicker}},{key:"fullscreenButton",get:function(){return this._nativeObjCesium.fullscreenButton}},{key:"layerContainer",get:function(){return this._layerContainer}},{key:"scene",get:function(){return this._nativeObjCesium.scene}},{key:"camera",get:function(){return this._nativeObjCesium.camera}},{key:"canvas",get:function(){return this._nativeObjCesium.scene.canvas}},{key:"dataSources",get:function(){return this._nativeObjCesium.dataSources}},{key:"imageryLayers",get:function(){return this._nativeObjCesium.imageryLayers}},{key:"terrainProvider",get:function(){return this._nativeObjCesium.terrainProvider},set:function(e){e&&(this._nativeObjCesium.terrainProvider=e)}},{key:"entities",get:function(){return this._nativeObjCesium.entities}},{key:"postProcessStages",get:function(){return this._nativeObjCesium.scene.postProcessStages}},{key:"clock",get:function(){return this._nativeObjCesium.clock}},{key:"viewerEvent",get:function(){return this._viewerEvent}},{key:"screenSpaceEventHandler",get:function(){return this._nativeObjCesium.screenSpaceEventHandler}},{key:"cameraPosition",get:function(){var e=_e.transformCartesianToWGS84(this.camera.positionWC);return e&&(e.heading=Cesium.Math.toDegrees(this.camera.heading),e.pitch=Cesium.Math.toDegrees(this.camera.pitch),e.roll=Cesium.Math.toDegrees(this.camera.roll)),e}},{key:"resolution",get:function(){var e=this.scene.canvas.width,t=this.scene.canvas.height,i=_e.transformWindowToWGS84(new Cesium.Cartesian2(e/2|0,t-1),this),n=_e.transformWindowToWGS84(new Cesium.Cartesian2(1+e/2|0,t-1),this);return i&&n?Math.abs(i.lng-n.lng):1}},{key:"viewBoundsRectangle",get:function(){var e=this.scene.canvas.width,t=this.scene.canvas.height,i=_e.transformWindowToWGS84(new Cesium.Cartesian2(0,t),this),n=_e.transformWindowToWGS84(new Cesium.Cartesian2(e,0),this);return i&&n?Cesium.Rectangle.fromDegrees(i.lng,i.lat,n.lng,n.lat):Cesium.Rectangle.MAX_VALUE}},{key:"level",get:function(){return this._nativeObjCesium.scene.globe._surface._debug.maxDepthVisited}},{key:"initEnvironment",value:function(){en.Z.initEnvironment()}},{key:"setOptions",value:function(e){return this._viewerOption.setOptions(e),this}},{key:"createDefaultGeocoderContainer",value:function(e){if(Cesium.defined(e)){var t=document.querySelector(".cesium-viewer-toolbar"),i=(t.offsetHeight,t.offsetWidth),n=document.createElement("div");n.setAttribute("class","geocoderContainerDefault"),n.style.right=i+7+"px",this.container.appendChild(n),_n.createGeocoder(e,{viewer:this,container:n,scene:this.scene})}}},{key:"setDeaultView",value:function(e){var t;Cesium.Camera.DEFAULT_VIEW_RECTANGLE=(t=Cesium.Rectangle).fromDegrees.apply(t,Fe(e))}},{key:"setDefaultAccessToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";Cesium.Ion.defaultAccessToken=e||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIzZDE4NjNiNC1jZDY5LTQ4MjctOTdjMi1iYTJiNzRmNDc3YmUiLCJpZCI6MTY1MzEsInNjb3BlcyI6WyJhc3IiLCJnYyJdLCJpYXQiOjE1NzA2OTQ4NDJ9.dOY7whEypIg6v8dbIFQdd5NeQZRLM2po13XAJBMpuRs"}},{key:"setNoNight",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scene.light=e?new Cesium.DirectionalLight({direction:new Cesium.Cartesian3(.35492591601301104,-.8909182691839401,-.2833588392420772)}):new Cesium.SunLight}},{key:"_addLayer",value:function(e){!this._layerCache[e.type]&&(this._layerCache[e.type]={}),Object(this._layerCache[e.type]).hasOwnProperty(e.id)||(e.raiseEvent(ne.ADD,this),this._layerCache[e.type][e.id]=e)}},{key:"_removeLayer",value:function(e){Object(this._layerCache[e.type]).hasOwnProperty(e.id)&&(e.raiseEvent(ne.REMOVE,this),delete this._layerCache[e.type][e.id])}},{key:"changeSceneMode",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 2===e?this._nativeObjCesium.scene.morphTo2D(t):3===e?this._nativeObjCesium.scene.morphTo3D(t):2.5===e&&this._nativeObjCesium.scene.morphToColumbusView(t),this}},{key:"getImageryLayerInfo",value:function(e){var t=this._nativeObjCesium.camera.getPickRay(e);return this._nativeObjCesium.imageryLayers.pickImageryLayerFeatures(t,this._nativeObjCesium.scene)}},{key:"addBaseImageryLayer",value:function(e){return e?(this.imageryLayers.addImageryProvider(e),this):this}},{key:"addTerrain",value:function(e){return this}},{key:"removeTerrain",value:function(){return this._nativeObjCesium.terrainProvider=new Cesium.EllipsoidTerrainProvider,this}},{key:"addLayer",value:function(e){return this._addLayer(e),this}},{key:"removeLayer",value:function(e){return this._removeLayer(e),this}},{key:"hasLayer",value:function(e){return Object(this._layerCache[e.type]).hasOwnProperty(e.id)}},{key:"getLayer",value:function(e){var t=this.getLayers().filter((function(t){return t.id===e}));return t&&t.length?t[0]:void 0}},{key:"getLayers",value:function(){var e=this,t=[];return Object.keys(this._layerCache).forEach((function(i){var n=e._layerCache[i];Object.keys(n).forEach((function(e){t.push(n[e])}))})),t}},{key:"eachLayer",value:function(e,t){var i=this;return Object.keys(this._layerCache).forEach((function(n){var r=i._layerCache[n];Object.keys(r).forEach((function(i){e.call(t,r[i])}))})),this}},{key:"flyTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0;if(e)if(e instanceof Ki&&e.flyTo)e.flyTo(i,n,r,o);else{var a=this._nativeObjCesium.flyTo(e.nativeObjCesium||e,{duration:t,offset:new Cesium.HeadingPitchRange(Cesium.Math.toRadians(i),Cesium.Math.toRadians(n),r)});a&&a.then((function(){o&&o()}))}}},{key:"flyToTileset",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-60;if(this._nativeObjCesium&&(e=e.nativeObjCesium||e))return e.readyPromise.then((function(e){var o=e.boundingSphere.radius;t._nativeObjCesium.flyTo(e,{duration:i,offset:new Cesium.HeadingPitchRange(0,Cesium.Math.toRadians(r),o*n)})}))}},{key:"flyToPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e){var n=(e=Ne.parsePosition(e)).alt||0,r=new fe(e.lng,e.lat,0),o=_e.transformWGS84ToCartesian(r),a=e.heading||0,s=e.pitch||-90;return Xn.flyToPoint(this,o,a,s,n,t,i),this}}},{key:"flyToPoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-90,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(e){e=Ne.parsePosition(e);var a=_e.transformWGS84ToCartesian(e);return Xn.flyToPoint(this,a,t,i,n,r,o),this}}},{key:"zoomTo",value:function(e){return this._nativeObjCesium.zoomTo(e.nativeObjCesium||e)}},{key:"addEventListener",value:function(e,t,i){return[this._viewerEvent.addEventListener(e,t,i||this),this._sceneEvent.addEventListener(e,t,i||this)]}},{key:"addEventListenerOnce",value:function(e,t,i){return this._viewerEvent.addEventListenerOnce(e,t,i||this)}},{key:"raiseEvent",value:function(e,t){return this._viewerEvent.raiseEvent(e,t),this}},{key:"removeEventListener",value:function(e,t,i){return this._viewerEvent.removeEventListener(e,t,i||this),this._sceneEvent.removeEventListener(e,t,i||this),this}},{key:"destroy",value:function(){var e=this;return Object.keys(this._layerCache).forEach((function(t){var i=e._layerCache[t];Object.keys(i).forEach((function(t){e._removeLayer(i[t])}))})),this._nativeObjCesium.destroy(),j.empty(this.container),this._nativeObjCesium=void 0,this._baseLayerPicker=void 0,this._layerCache={},en.Z.Initialized=!1,this}},{key:"exportScene",value:function(e){this.scene.render();var t=this.canvas.toDataURL("image/png").replace("image/png","image/octet-stream"),i=document.createElement("a"),n=W.dataURLtoBlob(t),r=URL.createObjectURL(n);return i.download="".concat(e||"scene",".png"),i.href=r,i.click(),this}},{key:"showFrames",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scene.debugShowFramesPerSecond=e}}]),e}();const An=Sn;function bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var En=Cesium,xn=En.BoxGeometry,Pn=En.Cartesian3,Dn=En.defined,wn=En.DeveloperError,Mn=En.GeometryPipeline,In=En.Matrix3,Rn=En.Matrix4,On=En.Transforms,Ln=En.VertexFormat,Bn=En.BufferUsage,Fn=En.CubeMap,Nn=En.loadCubeMap,Vn=En.RenderState,kn=En.VertexArray,$n=En.BlendingState,Un=En.SceneMode,Gn=En.ShaderProgram,zn=En.ShaderSource,Hn=En.SkyBox,Wn=function(e){u(i,e);var t=bn(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r)).offsetAngle=(null==r?void 0:r.offsetAngle)||0,e}return s(i,[{key:"update",value:function(e,t){var i=this;if(this.show&&(e.mode===Un.SCENE3D||e.mode===Un.MORPHING)&&e.passes.render){var n=e.context;if(this._sources!==this.sources){this._sources=this.sources;var o=this.sources;if(!(Dn(o.positiveX)&&Dn(o.negativeX)&&Dn(o.positiveY)&&Dn(o.negativeY)&&Dn(o.positiveZ)&&Dn(o.negativeZ)))throw new wn("this.sources is required and must have positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ properties.");if(r(o.positiveX)!==r(o.negativeX)||r(o.positiveX)!==r(o.positiveY)||r(o.positiveX)!==r(o.negativeY)||r(o.positiveX)!==r(o.positiveZ)||r(o.positiveX)!==r(o.negativeZ))throw new wn("this.sources properties must all be the same type.");"string"==typeof o.positiveX?Nn(n,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 Fn({context:n,source:o}))}var a=this._command;if(a.modelMatrix=On.eastNorthUpToFixedFrame(e.camera.positionWC),0!==this.offsetAngle&&Rn.multiply(a.modelMatrix,Rn.fromRotationTranslation(In.fromRotationZ(this.offsetAngle/180*Math.PI)),a.modelMatrix),!Dn(a.vertexArray)){a.uniformMap={u_cubeMap:function(){return i._cubeMap},u_rotateMatrix:function(){return Rn.getMatrix3(a.modelMatrix,new In)}};var s=xn.createGeometry(xn.fromDimensions({dimensions:new Pn(2,2,2),vertexFormat:Ln.POSITION_ONLY})),c=this._attributeLocations=Mn.createAttributeLocations(s);a.vertexArray=kn.fromGeometry({context:n,geometry:s,attributeLocations:c,bufferUsage:Bn._DRAW}),a.renderState=Vn.fromCache({blending:$n.ALPHA_BLEND})}if(!Dn(a.shaderProgram)||this._useHdr!==t){var l=new zn({defines:[t?"HDR":""],sources:["\n 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"]});a.shaderProgram=Gn.fromCache({context:n,vertexShaderSource:"\n 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:l,attributeLocations:this._attributeLocations}),this._useHdr=t}if(Dn(this._cubeMap))return a}}}]),i}(Hn);const jn=Wn;var qn=function(){function e(){n(this,e)}return s(e,null,[{key:"flyToPoint",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if(!e)throw new Cesium.DeveloperError("viewer参数是必须的!");if(e=e.nativeObjCesium||e,!t)throw new Cesium.DeveloperError("destination参数是必须的!");var s=new Cesium.BoundingSphere(t,0);e.camera.flyToBoundingSphere(s,{duration:o,maximumHeight:void 0,complete:function(){a&&"function"==typeof a&&a()},cancel:function(){console.log("定位取消!")},offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:r}})}},{key:"flyToPosition",value:function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if(i){i=Ne.parsePosition(i);var c=_e.transformWGS84ToCartesian(i);e.flyToPoint(t,c,n,r,o,a,s)}}},{key:"centerAt",value:function(e,t,i,n){var r=Cesium.Cartesian3.fromDegrees(t,i,0);this.flyToPoint(e.nativeObjCesium||e,r,0,-90,n||500,0)}},{key:"flyToRectangle",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;if(!e)throw new Cesium.DeveloperError("viewer参数是必须的!");if(e=e.nativeObjCesium||e,!Array.isArray(t)||2!=t.length)throw new Cesium.DeveloperError("cartesians必须为两个笛卡尔Cartesian3坐标!");var s=Cesium.Rectangle.fromCartesianArray(t),c=Cesium.BoundingSphere.fromRectangle3D(s);e.camera.flyToBoundingSphere(c,{duration:o,maximumHeight:void 0,complete:function(){a&&"function"==typeof a&&a()},cancel:function(){console.log("定位取消!")},offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:r}})}},{key:"flyToPoints",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-60,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;e=e.nativeObjCesium||e;var s=Cesium.BoundingSphere.fromPoints(t);s.radius=1*s.radius,e.camera.flyToBoundingSphere(s,{duration:o,complete:function(){a&&"function"==typeof a&&a()},offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:r}})}},{key:"flyToPositions",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-60,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;e=e.nativeObjCesium||e;var s=Ne.parsePositions(t),c=_e.transformWGS84ArrayToCartesianArray(s),l=Cesium.BoundingSphere.fromPoints(c);l.radius=l.radius*r,e.camera.flyToBoundingSphere(l,{duration:o,complete:function(){a&&"function"==typeof a&&a()},offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:0}})}},{key:"flyToTarget",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-90,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:3,a=arguments.length>6?arguments[6]:void 0;if(t){if(!(t instanceof Ki&&t.flyTo)){var s=(e.nativeObjCesium||e).flyTo(t.nativeObjCesium||t,{duration:o,offset:{heading:Cesium.Math.toRadians(i),pitch:Cesium.Math.toRadians(n),range:r}});return s&&s.then((function(){a&&a()})),s}t.flyTo(i,n,r,a)}}}]),e}();const Xn=qn;var Yn=i(545);function Kn(e,t,i){void 0===i&&(i={});var n={type:"Feature"};return(0===i.id||i.id)&&(n.id=i.id),i.bbox&&(n.bbox=i.bbox),n.properties=t||{},n.geometry=e,n}function Jn(e,t){void 0===t&&(t={});var i={type:"FeatureCollection"};return t.id&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.features=e,i}function Qn(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=function(e,t){if(!e)return;if("string"==typeof e)return Zn(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return Zn(e,t)}(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==i.return||i.return()}finally{if(s)throw o}}}}function Zn(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}const er=function(){function e(){n(this,e)}return s(e,null,[{key:"wktArrToEarthPosArr",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;if(i&&"string"==typeof i)return t.forEach((function(t){var n=e.recurObjKey(t,i),r=n.obj,o=n.value;r.earthPos=e.wktStrToEarthPos(o)})),t}},{key:"wktStrToEarthPos",value:function(e){var t,i=[],n=Qn(e.slice(e.search(/\d+/g),e.search(/\)/g)).split(","));try{for(n.s();!(t=n.n()).done;){var r=t.value.split(" ");if(2!==r.length)throw new Error("WKT格式不正确");var o,a=Qn(r);try{for(a.s();!(o=a.n()).done;){var s=o.value;i.push(Cesium.Math.toRadians(parseFloat(s)))}}catch(e){a.e(e)}finally{a.f()}}}catch(e){n.e(e)}finally{n.f()}if(i.length<2)throw new Error("将WKT转化为Cesium.Cartesian3结果为空,转换失败");return i}},{key:"wktArrToCartesian3Arr",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(i&&"string"==typeof i)return t.forEach((function(t){var r=e.recurObjKey(t,i),o=r.obj,a=r.value;o.cartesian3=e.wktStrToCartesian3(a,n)})),t}},{key:"wktStrToCartesian3",value:function(e,t){var i,n=[],r=!1,o=Qn(e.slice(e.search(/\d+/g),e.search(/\)/g)).split(","));try{for(o.s();!(i=o.n()).done;){var a=i.value.split(" "),s=a.length;if(s<2||s>3)throw new Error("WKT格式不正确");if(void 0!==t&&"string"!=typeof t&&"number"!=typeof t||"number"==typeof t&&t!=t)throw new Error("高度参数{height}必须为字符串或者数字或者undefined类型");2!==s||"string"!=typeof t&&"number"!=typeof t||a.push(parseFloat(t)),3===a.length&&(r=!0);var c,l=Qn(a);try{for(l.s();!(c=l.n()).done;){var u=c.value;n.push(parseFloat(u))}}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}if(n.length<2)throw new Error("将WKT转化为Cesium.Cartesian3结果为空,转换失败");return r?Cesium.Cartesian3.fromDegreesArrayHeights(n):Cesium.Cartesian3.fromDegreesArray(n)}},{key:"wktArrToGeoJson",value:function(){var e=this,t=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;if(t&&"string"==typeof t){var n=[];return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(r){var o=e.recurObjKey(r,t),a=o.obj,s=o.value,c=Kn((0,Yn.parse)(s));c.properties=a,c.properties.stroke="#555555",c.properties["stroke-opacity"]=1,c.properties["stroke-width"]=2,c.properties.fill="#555555",c.properties["fill-opacity"]=.5,i&&(c=i(c)),n.push(c)})),Jn(n)}}},{key:"recurObjKey",value:function(e,t){var i=t.split("."),n=i.pop(),r=e;return i.forEach((function(e){return r=r[e]})),{obj:r,value:r[n]}}}]),e}();const tr=function(){function e(){n(this,e)}return s(e,null,[{key:"drawCanvalCircle",value:function(e,t,i,n,r){if(!e||!t||!Array.isArray(i)||i.length<1)return console.error("传入参数错误!"),"";"string"==typeof e&&(e=Cesium.Color.fromCssColorString(e)),n||(n=[{key:0,value:e.withAlpha(.3).toCssColorString()},{key:.8,value:e.withAlpha(.6).toCssColorString()},{key:1,value:e.withAlpha(.9).toCssColorString()}]);var o=document.createElement("canvas");o.width=t,o.height=t;var a=o.getContext("2d"),s=o.width/2,c=o.height/2,l=o.width/2,u=a.createRadialGradient(s,c,1,s,c,l);n.forEach((function(e){u.addColorStop(e.key,e.value)})),a.beginPath(),a.arc(s,c,l,0,2*Math.PI,!1),a.fillStyle=u,a.fill(),a.closePath(),a.restore(),a.fillStyle=Cesium.Color.WHITE.toCssColorString();var d=15*t/60;return r&&(d=r),a.font="bold ".concat(d,"px sans-serif"),a.textAlign="center",a.textBaseline="bottom",i.length>1?(a.fillText(i[0]+"",t/2,t/2),a.fillText(i[1]+"",t/2,t/4*3.1)):a.fillText(i[0]+"",t/2,t/2),o.toDataURL()}}]),e}();const ir=function(){function e(){n(this,e)}return s(e,null,[{key:"imageryLayerFeatureInfo2Geojson",value:function(e){return e?{type:"FeatureCollection",features:[e.data]}:null}}]),e}();var nr=function(){function e(t){n(this,e),this.viewer=t,this._level=void 0,this._fpsEl=void 0,this._msEl=void 0,this._fpsFrameCount=0,this._msFrameCount=0,this._lastFpsSampleTime=Cesium.getTimestamp(),this._lastMsSampleTime=Cesium.getTimestamp();var i=document.createElement("div");i.setAttribute("id","anov-mapinfo-container"),i.style.textIndent="20px",i.style.backgroundColor="rgba(0, 0, 0, 0.4)",i.style.width="calc(100% - 100px);",i.style.height="30px",i.style.lineHeight="30px",i.style.position="absolute",i.style.bottom=0,i.style.color="white",t.container.appendChild(i),this._fpsEl=j.create("span","fps-bar",i),this._fpsEl.style.marginRight="15px";var r=document.createElement("span");r.setAttribute("id","anov-mapinfo-lon"),r.innerHTML="经度:";var o=document.createElement("span");o.style.marginRight="15px",i.appendChild(r),i.appendChild(o);var a=document.createElement("span");a.setAttribute("id","anov-mapinfo-lat"),a.innerHTML="纬度:";var s=document.createElement("span");s.style.marginRight="15px",i.appendChild(a),i.appendChild(s);var c=document.createElement("span");c.setAttribute("id","anov-mapinfo-heading"),c.innerHTML="偏航角:";var l=document.createElement("span");l.style.marginRight="15px",i.appendChild(c),i.appendChild(l);var u=document.createElement("span");u.setAttribute("id","anov-mapinfo-pitch"),u.innerHTML="视角:";var d=document.createElement("span");d.style.marginRight="15px",i.appendChild(u),i.appendChild(d);var h=document.createElement("span");h.setAttribute("id","anov-mapinfo-height"),h.innerHTML="视高:";var p=document.createElement("span"),f=document.createElement("span");f.setAttribute("id","anov-mapinfo-unit"),f.innerHTML="米",f.style.marginRight="15px",i.appendChild(h),i.appendChild(p),i.appendChild(f),this._level=j.create("span","level-bar",i),this._level.style.marginRight="15px";var m=new Cesium.ScreenSpaceEventHandler(t.scene.canvas),g=function(e){var i=Math.ceil(t.camera.positionCartographic.height);i>1e3?(i/=1e3,f.innerHTML="千米"):f.innerHTML="米",p.innerText=i;var n=Number(t.scene.camera.pitch).toFixed(4);n=-(57.29578*n).toFixed(0),d.innerText=n+"°";var r=Number(t.scene.camera.heading).toFixed(4);r=(57.29578*r).toFixed(0),l.innerText=r+"°"};g(),m.setInputAction((function(e){var i=t.scene.globe.ellipsoid,n=e.endPosition,r=t.camera.pickEllipsoid(n,i);if(r){var a=i.cartesianToCartographic(r),c=Cesium.Math.toDegrees(a.longitude),l=Cesium.Math.toDegrees(a.latitude);o.innerText=c.toFixed(7),s.innerText=l.toFixed(7)}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),t.camera.changed.addEventListener((function(){g()})),t.addEventListener(ee.POST_UPDATE,this._onPostUpdate,this)}return s(e,[{key:"destory",value:function(){}},{key:"_onPostUpdate",value:function(){var e=Cesium.getTimestamp();this._fpsFrameCount++;var t=e-this._lastFpsSampleTime;if(t>1e3){var i=1e3*this._fpsFrameCount/t|0;this._fpsEl.innerHTML="<span>帧率:".concat(i," FPS</span>"),this._lastFpsSampleTime=e,this._fpsFrameCount=0}this._level.innerHTML="<span>层级:".concat(this.viewer.level,"</span>")}}]),e}();const rr=nr;const or=s((function e(t,i){n(this,e),this.viewer=i;var r=document.getElementById(t),o=document.createElement("div");o.setAttribute("class","anov-poisearch_searchDiv"),o.innerHTML='<input placeholder="地名搜索" id="anov-poisearch_searchGaode" class="anov-poisearch_searchGaode">';var a=document.createElement("div");a.innerHTML="x",a.setAttribute("class","anov-poisearch_close"),a.style.display="none",o.appendChild(a);var s=document.createElement("div");s.setAttribute("class","anov-poisearch_resultList"),r.appendChild(o),r.appendChild(s);var c=document.getElementById("anov-poisearch_searchGaode");o.oninput=function(){u||(clearTimeout(l),l=setTimeout((function(){var e=c.value;a.style.display=e?"block":"none",d(e)}),1e3))},a.onclick=function(){a.style.display="none",c.value="",d("")};var l,u=!1;function d(e){s.innerHTML="",fetch("https://restapi.amap.com/v3/place/text?key=c8a650173d583fb038c7c2d1278e7cd8&&offset=10&&keywords="+e).then((function(e){return e.text()})).then((function(e){if((e=JSON.parse(e)).pois.length>0){var t="";e.pois.forEach((function(e){var i=e.location.split(","),n=i[0],r=i[1];t+='<div class="anov-poisearch_locationItem" lat='+r+" lon="+n+" title="+e.name+">"+e.name+"</div>"})),s.innerHTML=t}})).catch((function(e){return console.log(e)}))}s.onclick=function(e){c.value=e.target.getAttribute("title");var t=Number(e.target.getAttribute("lon")),n=Number(e.target.getAttribute("lat"));s.innerHTML="",Xn.flyToPosition(i,[t,n],0,-90,3e3,2,null)}}));const ar=function(){function e(){n(this,e)}return s(e,null,[{key:"init",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=[],o=ho.createTdtImageryLayer({style:"img",key:t}),a=ho.createTdtImageryLayer({key:t}),s=ho.createArcGisImageryLayer({style:"dark"}),c=ho.createTdtImageryLayer({style:"cva",key:t}),l=new Cesium.ProviderViewModel({name:"天地图影像",iconUrl:Cesium.buildModuleUrl("Widgets/Images/ImageryProviders/mapboxSatellite.png"),tooltip:"天地图影像",creationFunction:function(){return[o]}}),u=new Cesium.ProviderViewModel({name:"天地图影像(含注记)",iconUrl:Cesium.buildModuleUrl("static/images/bingAerialLabels.png"),tooltip:"天地图影像(含注记)",creationFunction:function(){return[o,c]}}),d=new Cesium.ProviderViewModel({name:"天地图-电子地图",iconUrl:Cesium.buildModuleUrl("static/images/tdt_vec.png"),tooltip:"天地图-电子地图",creationFunction:function(){return[a,c]}}),h=new Cesium.ProviderViewModel({name:"蓝黑色系影像",iconUrl:Cesium.buildModuleUrl("static/images/blueblack.png"),tooltip:"蓝黑色系影像",creationFunction:function(){return[s]}});r.push(l),r.push(u),r.push(d),r.push(h),e.baseLayerPicker.viewModel.imageryProviderViewModels=r,i<1&&(i=1),i>r.length&&(i=r.length),e.baseLayerPicker.viewModel.selectedImagery=e.baseLayerPicker.viewModel.imageryProviderViewModels[i-1],e.baseLayerPicker.viewModel.terrainProviderViewModels[0].name="无地形",e.baseLayerPicker.viewModel.terrainProviderViewModels[1].name="DEM地形",n<1&&(n=1),n>e.baseLayerPicker.viewModel.terrainProviderViewModels.length&&(n=e.baseLayerPicker.viewModel.terrainProviderViewModels.length),e.baseLayerPicker.viewModel.selectedTerrain=e.baseLayerPicker.viewModel.terrainProviderViewModels[n-1]}}]),e}();const sr=function(){function e(t){n(this,e),this._viewer=t,this.dog=0,this._langChinese={Imagery:"影像",Terrain:"地形",GeocodersPlaceholder:"请输入地名...",HomeButtonToolTip:"回到全球",SceneModePickerToolTip2D:"二维",SceneModePickerToolTip3D:"三维",SceneModePickerToolTipView:"哥伦布视图",NavigationHelpButtonToolTip:"操作指南",navigationHelp_Touch:">手势",navigationHelp_Mouse:">鼠标",navigationHelp_Mouse_Pan:"平移",navigationHelp_Mouse_Pan_details:"按下左键+ 拖动",navigationHelp_Mouse_Zoom:"缩放",navigationHelp_Mouse_Zoom_details0:"按下右键+ 拖动,或者",navigationHelp_Mouse_Zoom_details1:"滚动鼠标滚轮",navigationHelp_Mouse_Rotate:"旋转",navigationHelp_Mouse_Rotate_details0:"按下中键+ 拖动,或者",navigationHelp_Mouse_Rotate_details1:"按下CTRL + 左键/右键 +拖动",navigationHelp_Touch_Pan:"平移",navigationHelp_Touch_Pan_details:"单指拖动",navigationHelp_Touch_Zoom:"缩放",navigationHelp_Touch_Zoom_details:"双指捏合",navigationHelp_Touch_Rotate:"旋转",navigationHelp_Touch_Rotate_details:"双指反向拖动",navigationHelp_Touch_Tilt:"俯仰",navigationHelp_Touch_Tilt_details:"双指同向拖动",enterFullScreen:"全屏",exitFullScreen:"退出全屏",lon:"经度:",lat:"纬度:",heading:"偏航角:",pitch:"视角:",height:"视高:",tianditu_img2:"天地图影像",tianditu_img:"天地图影像(含注记)",tianditu_img3:"天地图-电子地图"},this._langEnglish={Imagery:"Imagery",Terrain:"Terrain",GeocodersPlaceholder:"Enter an address or landmark...",HomeButtonToolTip:"View Home",SceneModePickerToolTip2D:"2D",SceneModePickerToolTip3D:"3D",SceneModePickerToolTipView:"Columbus View",NavigationHelpButtonToolTip:"Navigation Instructions",enterFullScreen:"Full screen",exitFullScreen:"Exit full screen",navigationHelp_Touch:">手势",navigationHelp_Mouse:">鼠标",navigationHelp_Mouse_Pan:"平移",navigationHelp_Mouse_Pan_details:"按下左键+ 拖动",navigationHelp_Mouse_Zoom:"缩放",navigationHelp_Mouse_Zoom_details0:"按下右键+ 拖动,或者",navigationHelp_Mouse_Zoom_details1:"滚动鼠标滚轮",navigationHelp_Mouse_Rotate:"旋转",navigationHelp_Mouse_Rotate_details0:"按下中键+ 拖动,或者",navigationHelp_Mouse_Rotate_details1:"按下CTRL + 左键/右键 +拖动",navigationHelp_Touch_Pan:"平移",navigationHelp_Touch_Pan_details:"单指拖动",navigationHelp_Touch_Zoom:"缩放",navigationHelp_Touch_Zoom_details:"双指捏合",navigationHelp_Touch_Rotate:"旋转",navigationHelp_Touch_Rotate_details:"双指反向拖动",navigationHelp_Touch_Tilt:"俯仰",navigationHelp_Touch_Tilt_details:"双指同向拖动",lon:"lon:",lat:"lat:",heading:"heading:",pitch:"pitch:",height:"height:",tianditu_img2:"Tianditu imagery",tianditu_img:"Tianditu imagery with annotation",tianditu_img3:"Tianditu electronic map"},this._lang=Object.assign({},this._langChinese)}return s(e,[{key:"viewer",get:function(){return this._viewer}},{key:"lang",get:function(){return this._lang}},{key:"toChinese",value:function(){this.dog=1,this._lang=Object.assign({},this._langChinese),this.init()}},{key:"toEnglish",value:function(){this.dog=0,this._lang=Object.assign({},this._langEnglish),this.init()}},{key:"init",value:function(){var e=this;e._baseLayerPickerSectionTitleLang(),e._homeButtonLang(),e._geocoderLang(),e._sceneModePickerButtonLang(),e._mapInfoLang(),e._layerControlLang(),e._navigationHelpButtonLang()}},{key:"_mapInfoLang",value:function(){var e=this;document.getElementById("anov-mapinfo-container")&&(0==this.dog?(document.getElementById("anov-mapinfo-lon").innerHTML=e._langEnglish.lon,document.getElementById("anov-mapinfo-lat").innerHTML=e._langEnglish.lat,document.getElementById("anov-mapinfo-heading").innerHTML=e._langEnglish.heading,document.getElementById("anov-mapinfo-pitch").innerHTML=e._langEnglish.pitch,document.getElementById("anov-mapinfo-height").innerHTML=e._langEnglish.height,document.getElementById("anov-mapinfo-unit").innerHTML="m"):(document.getElementById("anov-mapinfo-lon").innerHTML=e._langChinese.lon,document.getElementById("anov-mapinfo-lat").innerHTML=e._langChinese.lat,document.getElementById("anov-mapinfo-heading").innerHTML=e._langChinese.heading,document.getElementById("anov-mapinfo-pitch").innerHTML=e._langChinese.pitch,document.getElementById("anov-mapinfo-height").innerHTML=e._langChinese.height,document.getElementById("anov-mapinfo-unit").innerHTML="米"))}},{key:"_layerControlLang",value:function(){for(var e=this,t=e.viewer.container.getElementsByClassName("cesium-baseLayerPicker-itemLabel"),i=0;i<t.length;i++)1==this.dog?(t[i].innerHTML=t[i].innerHTML.replace(e._langEnglish.tianditu_img,e._langChinese.tianditu_img),t[i].innerHTML=t[i].innerHTML.replace(e._langEnglish.tianditu_img2,e._langChinese.tianditu_img2),t[i].innerHTML=t[i].innerHTML.replace(e._langEnglish.tianditu_img3,e._langChinese.tianditu_img3),e.viewer.container.getElementsByClassName("cesium-baseLayerPicker-categoryTitle")[1].style.display="none"):(t[i].innerHTML=t[i].innerHTML.replace(e._langChinese.tianditu_img,e._langEnglish.tianditu_img),t[i].innerHTML=t[i].innerHTML.replace(e._langChinese.tianditu_img2,e._langEnglish.tianditu_img2),t[i].innerHTML=t[i].innerHTML.replace(e._langChinese.tianditu_img3,e._langEnglish.tianditu_img3),e.viewer.container.getElementsByClassName("cesium-baseLayerPicker-categoryTitle")[1].style.display="block")}},{key:"_baseLayerPickerSectionTitleLang",value:function(){for(var e=this,t=e.viewer.container.getElementsByClassName("cesium-baseLayerPicker-sectionTitle"),i=0;i<t.length;i++)1==this.dog?t[i].innerHTML=t[i].innerHTML.replace(e._langEnglish.Imagery,e._langChinese.Imagery).replace(e._langEnglish.Terrain,e._langChinese.Terrain):t[i].innerHTML=t[i].innerHTML.replace(e._langChinese.Imagery,e._langEnglish.Imagery).replace(e._langChinese.Terrain,e._langEnglish.Terrain)}},{key:"_homeButtonLang",value:function(){var e=this;Cesium.defined(e.viewer.nativeObjCesium.homeButton)&&(e.viewer.nativeObjCesium.homeButton.viewModel.tooltip=e.lang.HomeButtonToolTip)}},{key:"_geocoderLang",value:function(){for(var e=this.viewer.container.getElementsByClassName("cesium-geocoder-input"),t=0;t<e.length;t++)e[t].setAttribute("placeholder",this.lang.GeocodersPlaceholder);for(var i=document.getElementsByClassName("cesium-geocoder-input"),n=0;n<i.length;n++)i[n].setAttribute("placeholder",this.lang.GeocodersPlaceholder)}},{key:"_sceneModePickerButtonLang",value:function(){var e=this;Cesium.defined(e.viewer.nativeObjCesium.sceneModePicker)&&(e.viewer.sceneModePicker.viewModel.tooltip2D=e.lang.SceneModePickerToolTip2D,e.viewer.sceneModePicker.viewModel.tooltip3D=e.lang.SceneModePickerToolTip3D,e.viewer.sceneModePicker.viewModel.tooltipColumbusView=e.lang.SceneModePickerToolTipView)}},{key:"_navigationHelpButtonLang",value:function(){var e=this;if(Cesium.defined(e.viewer.navigationHelpButton)){e.viewer.navigationHelpButton.viewModel.tooltip=e.lang.NavigationHelpButtonToolTip;var t=e.viewer.navigationHelpButton.container.getElementsByClassName("cesium-click-navigation-help")[0],i=e.viewer.navigationHelpButton.container.getElementsByClassName("cesium-touch-navigation-help")[0],n=e.viewer.navigationHelpButton.container.getElementsByClassName("cesium-navigation-button-right")[0];n.innerHTML=n.innerHTML.replace(">Touch",e.lang.navigationHelp_Touch),(n=e.viewer.navigationHelpButton.container.getElementsByClassName("cesium-navigation-button-left")[0]).innerHTML=n.innerHTML.replace(">Mouse",e.lang.navigationHelp_Mouse);var r=t.getElementsByClassName("cesium-navigation-help-pan")[0];r.innerHTML=e.lang.navigationHelp_Mouse_Pan,r.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Mouse_Pan_details;var o=t.getElementsByClassName("cesium-navigation-help-zoom")[0];o.innerHTML=e.lang.navigationHelp_Mouse_Zoom,o.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Mouse_Zoom_details0,o.parentNode.getElementsByClassName("cesium-navigation-help-details")[1].innerHTML=e.lang.navigationHelp_Mouse_Zoom_details1;var a=t.getElementsByClassName("cesium-navigation-help-rotate")[0];a.innerHTML=e.lang.navigationHelp_Mouse_Rotate,a.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Mouse_Rotate_details0,a.parentNode.getElementsByClassName("cesium-navigation-help-details")[1].innerHTML=e.lang.navigationHelp_Mouse_Rotate_details1;var s=i.getElementsByClassName("cesium-navigation-help-pan")[0];s.innerHTML=e.lang.navigationHelp_Touch_Pan,s.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Touch_Pan_details;var c=i.getElementsByClassName("cesium-navigation-help-zoom")[0];c.innerHTML=e.lang.navigationHelp_Touch_Zoom,c.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Touch_Zoom_details;var l=i.getElementsByClassName("cesium-navigation-help-rotate")[0];l.innerHTML=e.lang.navigationHelp_Touch_Tilt,l.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Touch_Tilt_details;var u=i.getElementsByClassName("cesium-navigation-help-tilt")[0];u.innerHTML=e.lang.navigationHelp_Touch_Rotate,u.parentNode.getElementsByClassName("cesium-navigation-help-details")[0].innerHTML=e.lang.navigationHelp_Touch_Rotate_details}}},{key:"_fullScreenButtonLang",value:function(){var e=this;if(Cesium.defined(e.viewer.fullscreenButton)){var t=Cesium.knockout.getObservable(e.viewer.fullscreenButton.viewModel,"isFullscreen");delete e.viewer.fullscreenButton.viewModel.tooltip,Cesium.knockout.defineProperty(e.viewer.fullscreenButton.viewModel,"tooltip",(function(){return e.viewer.fullscreenButton.viewModel.isFullscreenEnabled?t()?e.lang.exitFullScreen:e.lang.enterFullScreen:"Full screen unavailable"}));var i=e.viewer.fullscreenButton.container.getElementsByClassName("cesium-fullscreenButton")[0];Cesium.knockout.cleanNode(i),Cesium.knockout.applyBindings(e.viewer.fullscreenButton.viewModel,i)}}}]),e}();const cr=function(){function e(){n(this,e)}return s(e,null,[{key:"showAllControls",value:function(e){}},{key:"showMapInfo",value:function(e){new rr(e)}},{key:"showPoiSearch",value:function(e){}},{key:"showLayerControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"b8ddad3f97aded37e6d58ae4867e5267",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3?arguments[3]:void 0;e.nativeObjCesium.baseLayerPicker||console.error("baseLayerPicker未开启,无法显示该控件!"),ar.init(e,t,i,n)}},{key:"toChinese",value:function(e){var t=new sr(e);t&&t.toChinese()}}]),e}();var lr={Cartesian2:Cesium.Cartesian2,Cartesian3:Cesium.Cartesian3,Matrix3:Cesium.Matrix3,Matrix4:Cesium.Matrix4,Material:Cesium.Material,SceneMode:Cesium.SceneMode,SkyBox:Cesium.SkyBox,Color:Cesium.Color,Rectangle:Cesium.Rectangle,ShadowMode:Cesium.ShadowMode,JulianDate:Cesium.JulianDate,HeightReference:Cesium.HeightReference,HorizontalOrigin:Cesium.HorizontalOrigin,VerticalOrigin:Cesium.VerticalOrigin,CallbackProperty:Cesium.CallbackProperty,ClassificationType:Cesium.ClassificationType,TilesetStyle:Cesium.Cesium3DTileStyle,GeographicTilingScheme:Cesium.GeographicTilingScheme,WebMercatorTilingScheme:Cesium.WebMercatorTilingScheme,ColorMaterialProperty:Cesium.ColorMaterialProperty,ImageMaterialProperty:Cesium.ImageMaterialProperty,PolylineDashMaterialProperty:Cesium.PolylineDashMaterialProperty,PolylineGlowMaterialProperty:Cesium.PolylineGlowMaterialProperty,PolylineOutlineMaterialProperty:Cesium.PolylineOutlineMaterialProperty,PolylineArrowMaterialProperty:Cesium.PolylineArrowMaterialProperty,writeTextToCanvas:Cesium.writeTextToCanvas,CustomShaderMode:Cesium.CustomShaderMode,CustomShaderTranslucencyMode:Cesium.CustomShaderTranslucencyMode,CustomShader:Cesium.CustomShader,UniformType:Cesium.UniformType,Math:Cesium.Math,NearFarScalar:Cesium.NearFarScalar,DistanceDisplayCondition:Cesium.DistanceDisplayCondition,Resource:Cesium.Resource,useDefaultRenderLoop:Cesium.useDefaultRenderLoop,ScreenSpaceEventHandler:Cesium.ScreenSpaceEventHandler,ScreenSpaceEventType:Cesium.ScreenSpaceEventType,Transforms:Cesium.Transforms,CameraEventType:Cesium.CameraEventType,defined:Cesium.defined,Event:Cesium.Event};function ur(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function dr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var hr={pixelSize:8,outlineColor:Cesium.Color.BLUE,outlineWidth:2},pr=function(e){u(i,e);var t=dr(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,o))._nativeObjCesium=new Cesium.Entity({point:{}}),r._position=Ne.parsePosition(e),r.position=r._position,W.merge(r._style,hr,o),r.setOptions(o),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("point")}},{key:"position",get:function(){return this._position},set:function(e){return this._position=Ne.parsePosition(e),this._nativeObjCesium.position=_e.transformWGS84ToCartesian(this._position),this}},{key:"label",get:function(){return this._nativeObjCesium.label}},{key:"_mountedHook",value:function(){this.position=this._position,W.merge(this._nativeObjCesium.point,hr,this._style)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.position,Ne.parseOption(e),W.merge(this._style,e),W.merge(this._nativeObjCesium.point,this._style),this.setLabel(e),this.originOption=Cesium.clone(this._style,!0),this):this}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.point,this._highlight),this.setLabel(this._style)}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();return(t=new i(_e.transformCartesianToWGS84(e.position.getValue(n)))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?ur(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):ur(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)),t}}]),i}(Ve);Ve.registerType("point");const fr=pr;function mr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var _r=function(e){u(i,e);var t=gr(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,o))._nativeObjCesium=new Cesium.Entity({polygon:{}}),r._positions=Ne.parsePositions(e),r._holes=[],r._state=Me.INITIALIZED,r.positions=r._positions,r.position=_e.transformWGS84ToCartesian(r.center),r._nativeObjCesium.position=r.position,Ne.parseOption(o),W.merge(r._style,o),r.setOptions(r._style),r}return s(i,[{key:"position",get:function(){return this._position},set:function(e){return this._position=e,this._nativeObjCesium.position=e,this}},{key:"type",get:function(){return Ve.getGraphicType("polygon")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.polygon.hierarchy=this._computeHierarchy(),this}},{key:"holes",get:function(){return this._holes},set:function(e){return e&&e.length&&(this._holes=e.map((function(e){return Ne.parsePositions(e)})),this._nativeObjCesium.polygon.hierarchy=this._computeHierarchy()),this}},{key:"center",get:function(){var e=Ge([].concat(Fe(this._positions),[this._positions[0]])),t=_e.setHeightWGS84(e,.5);return _e.transformCartesianToWGS84(t)}},{key:"area",get:function(){return $e(this._positions)}},{key:"_computeHierarchy",value:function(){var e=new Cesium.PolygonHierarchy;return e.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),e.holes=this._holes.map((function(e){return new Cesium.PolygonHierarchy(_e.transformWGS84ArrayToCartesianArray(e))})),e}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.positions,Ne.parseOption(e),W.merge(this._style,e),W.merge(this._nativeObjCesium.polygon,e),this.setLabel(e),this.setBillboard(e),this.setPolyline(e),this.originOption=Cesium.clone(this._style,!0),this):this}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.polygon,this._highlight),this.setLabel(this._style)}},{key:"unHighlight",value:function(e){this.setOptions(this.originOption)}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();e.polygon&&((t=new i(_e.transformCartesianArrayToWGS84Array(e.polygon.hierarchy.getValue(n).positions))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):mr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)));return t}}]),i}(Ve);Ve.registerType("polygon");const yr=_r;function Cr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Tr=function(e){u(i,e);var t=vr(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._positions.length<2?(console.error("polyline必须至少两个点!"),h(r)):(r._nativeObjCesium=new Cesium.Entity({polyline:{}}),r.positions=r._positions,r._state=Me.INITIALIZED,Ne.parseOption(o),W.merge(r._style,o),r.position=_e.transformWGS84ToCartesian(Ge([r._positions[0],r._positions[1]])),r._nativeObjCesium.position=r.position,r.setOptions(r._style),r)}return s(i,[{key:"position",get:function(){return this._position},set:function(e){return this._position=e,this}},{key:"type",get:function(){return Ve.getGraphicType("polyline")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.polyline.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),this}},{key:"center",get:function(){return Ge(this._positions)}},{key:"distance",get:function(){return We(this._positions)}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"highlight",value:function(){Ne.parseOption(this._highlight),W.merge(this._nativeObjCesium.polyline,this._highlight),this.setLabel(this._style)}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e&&0!==Object.keys(e).length?(delete e.positions,Ne.parseOption(e),W.merge(this._style,e),W.merge(this._nativeObjCesium.polyline,e),this.setLabel(e),this.setBillboard(e),this):this}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();e.polyline&&((t=new i(_e.transformCartesianArrayToWGS84Array(e.polyline.positions.getValue(n)))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Cr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)));return t}}]),i}(Ve);Ve.registerType("polyline");const Sr=Tr;function Ar(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function br(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Er=function(e){u(i,e);var t=br(i);function i(e,r){var o;return n(this,i),(o=t.call(this))._positions=Ne.parsePositions(e),o._shape=r||[],o._nativeObjCesium=new Cesium.Entity({polylineVolume:{}}),o._state=Me.INITIALIZED,o.positions=o._positions,o}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("polyline_volume")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.polylineVolume.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),this}},{key:"shape",get:function(){return this._shape},set:function(e){return this._shape=e||[],this._nativeObjCesium.polylineVolume.shape=this._shape,this}},{key:"_mountedHook",value:function(){this.positions=this._positions,this.shape=this._shape}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.positions&&delete e.shape,W.merge(this._style,e),W.merge(this._nativeObjCesium.polylineVolume,e)),this}}],[{key:"fromEntity",value:function(e,t){var n=void 0,r=Cesium.JulianDate.now();e.polyline&&((n=new i(_e.transformCartesianArrayToWGS84Array(e.polyline.positions.getValue(r)),t)).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ar(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ar(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(r)));return n}}]),i}(Ve);Ve.registerType("polyline_volume");const xr=Er;function Pr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Dr(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Pr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Mr=function(e){u(i,e);var t=wr(i);function i(e){var r;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._nativeObjCesium=new Cesium.Entity({rectangle:{}}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("rectangle")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.rectangle.coordinates=Cesium.Rectangle.fromCartesianArray(_e.transformWGS84ArrayToCartesianArray(this._positions)),this}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setLabel",value:function(e,t){return this._nativeObjCesium.position=Cesium.Cartographic.toCartesian(Cesium.Rectangle.center(this._nativeObjCesium.rectangle,new Cesium.Cartographic)),this._nativeObjCesium.label=Dr(Dr({},t),{},{text:e}),this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium.rectangle,e)),this}}]),i}(Ve);Ve.registerType("rectangle");const Ir=Mr;function Rr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Lr=function(e){u(i,e);var t=Or(i);function i(e){var r;return n(this,i),(r=t.call(this))._positions=Ne.parsePositions(e),r._nativeObjCesium=new Cesium.Entity({wall:{}}),r._state=Me.INITIALIZED,r.positions=r._positions,r}return s(i,[{key:"type",get:function(){return Ve.getGraphicType("wall")}},{key:"positions",get:function(){return this._positions},set:function(e){return this._positions=Ne.parsePositions(e),this._nativeObjCesium.wall.positions=_e.transformWGS84ArrayToCartesianArray(this._positions),this}},{key:"_mountedHook",value:function(){this.positions=this._positions}},{key:"setLabel",value:function(e,t){return this}},{key:"setOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return 0===Object.keys(e).length||(delete e.positions,W.merge(this._style,e),W.merge(this._nativeObjCesium.wall,e)),this}}],[{key:"fromEntity",value:function(e){var t=void 0,n=Cesium.JulianDate.now();e.polyline&&((t=new i(_e.transformCartesianArrayToWGS84Array(e.polyline.positions.getValue(n)))).attr=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Rr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e.properties.getValue(n)));return t}}]),i}(Ve);Ve.registerType("wall");const Br=Lr;function Fr(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Nr(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Fr(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Fr(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Vr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var kr=function(e){u(h,e);var t,i,r,o,a,c,l,d=Vr(h);function h(e){var t;return n(this,h),(t=d.call(this,Q))._viewer=e,t._selected=void 0,t._mouseInfo=void 0,t._registerEvent(),t._addDefaultEvent(),t}return s(h,[{key:"_registerEvent",value:function(){var e=this,t=new Cesium.ScreenSpaceEventHandler(this._viewer.canvas);Object.keys(Cesium.ScreenSpaceEventType).forEach((function(i){var n=Cesium.ScreenSpaceEventType[i];e._cache[n]=new Cesium.Event,t.setInputAction((function(t){e._cache[n].raiseEvent(t)}),n)}))}},{key:"_addDefaultEvent",value:function(){this.addEventListener(this._types.CLICK,this._clickHandler,this),this.addEventListener(this._types.RIGHT_CLICK,this._rightClickHandler,this),this.addEventListener(this._types.MOUSE_MOVE,this._mouseMoveHandler,this)}},{key:"_getMouseInfo",value:(l=Se(be().mark((function e(t,i){var n,r,o,a,s,c,l,u,d,h,p,f,m,g,_;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._mouseInfo||!this._mouseInfo.target||i==Q.MOUSE_MOVE){e.next=2;break}return e.abrupt("return",this._mouseInfo);case 2:if(n=this._viewer.scene,(r=n.pick(t,1,1))||i==Q.MOUSE_MOVE){e.next=13;break}if(o=this._viewer.camera.getPickRay(t),s=this._viewer.imageryLayers.pickImageryLayerFeatures(o,this._viewer.scene),Cesium.defined(s)){e.next=11;break}console.log("No features picked."),e.next=13;break;case 11:return e.next=13,Promise.resolve(s).then((function(e){0!=e.length&&(r=e[0],c=_e.transformCartographicToCartesian(r.position))}));case 13:return i===Q.MOUSE_MOVE&&(!o&&(o=this._viewer.camera.getPickRay(t)),a=this._viewer.imageryLayers.pickImageryLayers(o,this._viewer.scene)),c=void 0,r&&r.id instanceof Cesium.Entity&&(l=this._viewer.getLayers().filter((function(e){return e.layerId===r.id.layerId}))[0])&&l.getGraphic&&((u=l.getGraphic(r.id.graphicId))instanceof fr||u instanceof mi||u instanceof Ui)&&(c=r.id.position._value),c||(c=De.pickPosition(this._viewer,t)),d=void 0,h=void 0,p=void 0,c&&(f=Cesium.Ellipsoid.WGS84.cartesianToCartographic(c))&&(h={lng:Cesium.Math.toDegrees(f.longitude),lat:Cesium.Math.toDegrees(f.latitude),alt:f.height}),n.mode!==Cesium.SceneMode.SCENE3D||this._viewer.terrainProvider instanceof Cesium.EllipsoidTerrainProvider?d=n.camera.pickEllipsoid(t,Cesium.Ellipsoid.WGS84):(m=n.camera.getPickRay(t),d=n.globe.pick(m,n)),d&&(g=Cesium.Ellipsoid.WGS84.cartesianToCartographic(d))&&(p={lng:Cesium.Math.toDegrees(g.longitude),lat:Cesium.Math.toDegrees(g.latitude),alt:g.height}),_={target:r,windowPosition:t,position:c,wgs84Position:h,surfacePosition:d,wgs84SurfacePosition:p},a&&a.length>1&&(_.pickImageryLayers=a),e.abrupt("return",_);case 26:case"end":return e.stop()}}),e,this)}))),function(e,t){return l.apply(this,arguments)})},{key:"_getDrillInfos",value:function(e){var t=this,i=[],n=this._viewer.scene.drillPick(e);return n&&n.length&&n.forEach((function(e){i.push(t._getTargetInfo(e))})),i}},{key:"_getGraphicId",value:function(e){var t=void 0;if(e)return e.id instanceof Cesium.Entity?t=e.id.graphicId:e instanceof Cesium.Cesium3DTileFeature?t=e.tileset.graphicId:(e.primitive instanceof Cesium.Cesium3DTileset||e.primitive)&&(t=e.primitive.graphicId),t}},{key:"_getTargetInfo",value:function(e){var t=void 0,i=void 0,n=void 0,r=void 0;if(e&&e.id instanceof Cesium.Entity)(i=this._viewer.getLayers().filter((function(t){return t.layerId===e.id.layerId}))[0])&&i.getGraphic&&(t=i.getGraphic(e.id.graphicId));else if(e&&e instanceof Cesium.Cesium3DTileFeature){if(i=this._viewer.getLayers().filter((function(t){return t.layerId===e.tileset.layerId}))[0],n=e,i&&i.getGraphic)if(t=i.getGraphic(e.tileset.graphicId),n&&n.getPropertyNames)n.getPropertyNames().forEach((function(e){t.attr[e]=n.getProperty(e)}))}else e&&e.primitive instanceof Cesium.Cesium3DTileset?(i=this._viewer.getLayers().filter((function(t){return t.layerId===e.primitive.layerId}))[0])&&i.getGraphic&&(t=i.getGraphic(e.primitive.graphicId)):e&&e.primitive?((i=this._viewer.getLayers().filter((function(t){return t.layerId===e.primitive.layerId}))[0])&&i.getGraphic&&(t=i.getGraphic(e.primitive.graphicId)),(e.primitive instanceof Cesium.Label||e.primitive instanceof Cesium.Billboard)&&(r=e.primitive)):e instanceof Cesium.ImageryLayerFeatureInfo&&(i=e.imageryLayer,n=e);return{layer:i,graphic:t,feature:n,clusterEntity:r,instanceId:e?e.instanceId:null}}},{key:"_raiseEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=void 0,n=this._getTargetInfo(t.target),r=n?n.graphic:null,o=n?n.layer:null;(r&&r.graphicEvent&&((i=r.graphicEvent.getEvent(e))&&i.numberOfListeners>0&&i.raiseEvent(Nr(Nr({},n),t)),i=void 0),i&&0!==i.numberOfListeners||!o||!o.layerEvent||(i=o.layerEvent.getEvent(e)),(!i||0===i.numberOfListeners)&&o&&o.imageryProvider&&o.imageryProvider.layerEvent&&(i=o.imageryProvider.layerEvent.getEvent(e)),i&&0!==i.numberOfListeners||!this._viewer.viewerEvent||(i=this._viewer.viewerEvent.getEvent(e)),i&&i.numberOfListeners>0&&i.raiseEvent(Nr(Nr({},n),t)),r&&r.allowDrillPicking)&&this._getDrillInfos(t.windowPosition).forEach((function(n){var o=n.graphic,a=n.layer;o.graphicId!==r.graphicId&&o.graphicEvent&&((i=o.graphicEvent.getEvent(e))&&0!==i.numberOfListeners||!a.layerEvent||(i=a.layerEvent.getEvent(e)),i&&i.numberOfListeners>0&&i.raiseEvent(Nr(Nr({},n),t)))}))}},{key:"_clickHandler",value:(c=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.CLICK,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"_dbClickHandler",value:(a=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.DB_CLICK,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"_rightClickHandler",value:(o=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.RIGHT_CLICK,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"_mouseMoveHandler",value:(r=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.endPosition){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.endPosition,Q.MOUSE_MOVE);case 4:i=e.sent,this._mouseInfo=i,this._viewer.canvas.style.cursor=i.target||i.pickImageryLayers?"pointer":"default",this._raiseEvent(Q.MOUSE_MOVE,i),this._selected&&this._getGraphicId(this._selected.target)===this._getGraphicId(i.target)||(this._raiseEvent(Q.MOUSE_OUT,this._selected),this._raiseEvent(Q.MOUSE_OVER,i),this._selected=i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"_leftDownHandler",value:(i=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.LEFT_DOWN,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"_leftUpHandler",value:function(e){this._raiseEvent(Q.LEFT_UP,{movement:e})}},{key:"_rightDownHandler",value:(t=Se(be().mark((function e(t){var i;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.position){e.next=2;break}return e.abrupt("return",!1);case 2:return e.next=4,this._getMouseInfo(t.position);case 4:i=e.sent,this._raiseEvent(Q.RIGHT_DOWN,i);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"_rightUpHandler",value:function(e){this._raiseEvent(Q.RIGHT_UP,{movement:e})}},{key:"_mouseWheelHandler",value:function(e){this._raiseEvent(Q.WHEEL,{movement:e})}}]),h}(le);const $r=kr;function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Gr=function(e){u(i,e);var t=Ur(i);function i(){var e;return n(this,i),(e=t.call(this,Z))._registerEvent(),e}return s(i)}(le);function zr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Hr=function(e){u(i,e);var t=zr(i);function i(e){var r;return n(this,i),(r=t.call(this,ee))._camera=e.camera,r._scene=e.scene,r._clock=e.clock,r}return s(i,[{key:"addEventListener",value:function(e,t,i){var n=void 0;switch(e){case ee.CAMERA_MOVE_END:n=this._camera.moveEnd.addEventListener(t,i||this);break;case ee.CAMERA_CHANGED:n=this._camera.changed.addEventListener(t,i||this);break;case ee.PRE_UPDATE:n=this._scene.preUpdate.addEventListener(t,i||this);break;case ee.POST_UPDATE:n=this._scene.postUpdate.addEventListener(t,i||this);break;case ee.PRE_RENDER:n=this._scene.preRender.addEventListener(t,i||this);break;case ee.POST_RENDER:n=this._scene.postRender.addEventListener(t,i||this);break;case ee.MORPH_COMPLETE:n=this._scene.morphComplete.addEventListener(t,i||this);break;case ee.CLOCK_TICK:n=this._clock.onTick.addEventListener(t,i||this);break;case ee.RENDER_ERROR:n=this._scene.renderError.addEventListener(t,i||this)}return n}},{key:"removeEventListener",value:function(e,t,i){var n=!1;switch(e){case ee.CAMERA_MOVE_END:n=this._camera.moveEnd.removeEventListener(t,i||this);break;case ee.CAMERA_CHANGED:n=this._camera.changed.removeEventListener(t,i||this);break;case ee.PRE_UPDATE:n=this._scene.preUpdate.removeEventListener(t,i||this);break;case ee.POST_UPDATE:n=this._scene.postUpdate.removeEventListener(t,i||this);break;case ee.PRE_RENDER:n=this._scene.preRender.removeEventListener(t,i||this);break;case ee.POST_RENDER:n=this._scene.postRender.removeEventListener(t,i||this);break;case ee.MORPH_COMPLETE:n=this._scene.morphComplete.removeEventListener(t,i||this);break;case ee.CLOCK_TICK:n=this._clock.onTick.removeEventListener(t,i||this);break;case ee.RENDER_ERROR:n=this._scene.renderError.removeEventListener(t,i||this)}return n}}]),i}(le);function Wr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const jr=function(e){u(i,e);var t=Wr(i);function i(){var e;return n(this,i),(e=t.call(this,ie))._registerEvent(),e}return s(i)}(le);function qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Xr=function(e){u(i,e);var t=qr(i);function i(){var e;return n(this,i),(e=t.call(this,ne))._registerEvent(),e}return s(i)}(le);function Yr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Kr=function(e){u(i,e);var t=Yr(i);function i(){var e;return n(this,i),(e=t.call(this,te))._registerEvent(),e}return s(i)}(le);function Jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Qr=function(e){u(i,e);var t=Jr(i);function i(){var e;return n(this,i),(e=t.call(this,re))._registerEvent(),e}return s(i)}(le);function Zr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const eo=function(e){u(i,e);var t=Zr(i);function i(){var e;return n(this,i),(e=t.call(this,oe))._registerEvent(),e}return s(i)}(le);function to(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const io=function(e){u(i,e);var t=to(i);function i(){var e;return n(this,i),(e=t.call(this,ae))._registerEvent(),e}return s(i)}(le);function no(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ro=function(e){u(i,e);var t=no(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=new Cesium.CustomDataSource(r.businessID),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("vector")}},{key:"clear",value:function(){return this._nativeObjCesium.entities&&this._nativeObjCesium.entities.removeAll(),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("vector");const oo=ro;function ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var so=function(e){u(o,e);var t,i,r=ao(o);function o(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,o),!e)throw new Error("GeoJsonLayer:data数据源必选传入!");return(t=r.call(this,i))._nativeObjCesium=Cesium.GeoJsonDataSource.load(e,i),t._state=Me.INITIALIZED,t}return s(o,[{key:"type",get:function(){return Ki.getLayerType("geojson")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium&&this._nativeObjCesium.then((function(e){e.show=t._show}))}},{key:"_createBillboard",value:function(e){if(e.position&&e.billboard)return mi.fromEntity(e)}},{key:"_createPoint",value:function(e){if(e.position&&e.point)return fr.fromEntity(e)}},{key:"_createLabel",value:function(e){if(e.position&&e.label)return Ui.fromEntity(e)}},{key:"_createPolyline",value:function(e){if(e.polyline)return Sr.fromEntity(e)}},{key:"_createPolygon",value:function(e){if(e.polygon)return yr.fromEntity(e)}},{key:"_createModel",value:function(e,t){if(e)return ot.fromEntity(e,t)}},{key:"eachGraphic",value:(i=Se(be().mark((function e(t,i){return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._nativeObjCesium){e.next=3;break}return e.next=3,this._nativeObjCesium.then((function(e){e.entities.values.forEach((function(e){t.call(i,e)}))}));case 3:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"toVectorLayer",value:(t=Se(be().mark((function e(){var t,i=this;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new oo(this.id),e.next=3,this.eachGraphic((function(e){e.billboard?t.addGraphic(i._createBillboard(e)):e.polyline?t.addGraphic(i._createPolyline(e)):e.polygon&&t.addGraphic(i._createPolygon(e))}),this);case 3:return e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"toModelLayer",value:function(e){var t=this,i=new ModelLayer(this.id);return this.eachGraphic((function(n){i.addGraphic(t._createModel(n,e))}),this),i}}]),o}(Ki);Ki.registerType("geojson");const co=so,lo={bindPopup_highlight_tooltip:(uo=Se(be().mark((function e(t,i){return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.bindPopup=function(e){if(t.viewer=e.viewer||window.viewer,t.viewer){var i=new ve(e);i.install(t),i.addEventListener(ce.CLOSE,(function(){t.removeHighlight()}))}else console.error("必须传入三维球对象!")},t.removeHighlight=function(){t.selected&&(t.viewer.removeLayer(t.selected.layer),t.selected=null)},t.layerEvent=new Xr,t.addEventListener=function(e,i,n){return t.layerEvent.addEventListener(e,i,n||t),t},t.viewer&&t.viewer.addEventListener(Q.CLICK,(function(e){t.removeHighlight()})),t.addEventListener(Q.CLICK,function(){var e=Se(be().mark((function e(n){var r,o,a;return be().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.removeHighlight(),n.feature){e.next=3;break}return e.abrupt("return");case 3:return r=ir.imageryLayerFeatureInfo2Geojson(n.feature),o=new co(r,{}),e.next=7,o.toVectorLayer();case 7:a=e.sent,t.selected={layer:a},t.viewer&&t.viewer.addLayer(a),a.eachGraphic((function(e){e._highlight=i.selectedHighlight,e.highlight()}));case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 6:case"end":return e.stop()}}),e)}))),function(e,t){return uo.apply(this,arguments)})};var uo;const ho=function(){function e(){n(this,e)}return s(e,null,[{key:"createAmapImageryLayer",value:function(e){return new S(e)}},{key:"createBaiduImageryLayer",value:function(e){return new I(e)}},{key:"createTdtImageryLayer",value:function(e){return new O(e)}},{key:"createTencentImageryLayer",value:function(e){return new B(e)}},{key:"createArcGisImageryLayer",value:function(e){return"dark"===e.style?new k(e):(e.url||(e.url="https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"),new Cesium.ArcGisMapServerImageryProvider(e))}},{key:"createSingleTileImageryLayer",value:function(e){return new Cesium.SingleTileImageryProvider(e)}},{key:"createWMSImageryLayer",value:function(e){return new Cesium.WebMapServiceImageryProvider(e)}},{key:"createWMTSImageryLayer",value:function(e){return new Cesium.WebMapTileServiceImageryProvider(e)}},{key:"createXYZImageryLayer",value:function(e){return new Cesium.UrlTemplateImageryProvider(e)}},{key:"createUrlTemplateImageryLayer",value:function(e){return new G(e)}},{key:"createCoordImageryLayer",value:function(e){return new Cesium.TileCoordinatesImageryProvider(e)}},{key:"createGridImageryLayer",value:function(e){return new Cesium.GridImageryProvider(e)}},{key:"createMapboxImageryLayer",value:function(e){return new Cesium.MapboxImageryProvider(e)}},{key:"createMapboxStyleImageryLayer",value:function(e){return new Cesium.MapboxStyleImageryProvider(e)}},{key:"createTMSImageryLayer",value:function(e){return new Cesium.TileMapServiceImageryProvider(e)}},{key:"createGoogleImageryImageryLayer",value:function(e){return new N(e)}},{key:"createImageryLayer",value:function(e,t){var i=void 0;switch(e){case c.AMAP:i=this.createAmapImageryLayer(t);break;case c.BAIDU:i=this.createBaiduImageryLayer(t);break;case c.TDT:i=this.createTdtImageryLayer(t);break;case c.TENCENT:i=this.createTencentImageryLayer(t);break;case c.ARCGIS:i=this.createArcGisImageryLayer(t);break;case c.SINGLE_TILE:i=this.createSingleTileImageryLayer(t);break;case c.WMS:i=this.createWMSImageryLayer(t);break;case c.WMTS:i=this.createWMTSImageryLayer(t);break;case c.XYZ:i=this.createXYZImageryLayer(t);break;case c.COORD:i=this.createCoordImageryLayer(t);break;case c.GRID:i=this.createGridImageryLayer(t);break;case c.MAPBOX:i=this.createMapboxImageryLayer(t);break;case c.MAPBOX_STYLE:i=this.createMapboxStyleImageryLayer(t);break;case c.TMS:i=this.createTMSImageryLayer(t);break;case c.Google:i=this.createGoogleImageryImageryLayer(t)}return lo.bindPopup_highlight_tooltip(i,t),i}}]),e}();const po=function(){function e(t,i){n(this,e),t||console.error("viewer是必传参数!"),2!==i.length&&console.error("layersArr参数长度必须为2"),this.viewer=t,this.layer1=null,this.layer2=null,this.slider=null,this.handler=null,this.slider=document.createElement("div");var r=this.slider;r.style.position="absolute",r.style.left="50%",r.style.top="0",r.style.backgroundColor="#d3d3d3",r.style.width="5px",r.style.height="100%",r.style.zIndex=9999,r.onmouseover=function(){r.style.cursor="ew-resize"},t.container.appendChild(r),t.scene.splitPosition=r.offsetLeft/r.parentElement.offsetWidth,this.handler=new Cesium.ScreenSpaceEventHandler(r);var o=this.handler,a=!1;function s(e){if(a){var i=e.endPosition.x,n=(r.offsetLeft+i)/r.parentElement.offsetWidth;r.style.left=100*n+"%",t.scene.splitDirection=n}}o.setInputAction((function(){a=!0}),Cesium.ScreenSpaceEventType.LEFT_DOWN),o.setInputAction((function(){a=!0}),Cesium.ScreenSpaceEventType.PINCH_START),o.setInputAction(s,Cesium.ScreenSpaceEventType.MOUSE_MOVE),o.setInputAction(s,Cesium.ScreenSpaceEventType.PINCH_MOVE),o.setInputAction((function(){a=!1}),Cesium.ScreenSpaceEventType.LEFT_UP),o.setInputAction((function(){a=!1}),Cesium.ScreenSpaceEventType.PINCH_END),this.changeLayers(i)}return s(e,[{key:"changeLayers",value:function(e){this.viewer.imageryLayers.removeAll(),this.layer1=this.viewer.imageryLayers.addImageryProvider(e[0]),this.layer2=this.viewer.imageryLayers.addImageryProvider(e[1]),this.layer2.splitDirection=Cesium.SplitDirection.LEFT}},{key:"destroy",value:function(){this.viewer.imageryLayers.remove(this.layer2),this.slider.parentNode.removeChild(this.slider),this.handler=null}},{key:"changeLeftRight",value:function(){this.layer2.splitDirection=-this.layer2.splitDirection}}]),e}();function fo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function mo(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?fo(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):fo(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function go(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var _o={size:18,pixelRange:40,gradient:{1e-4:Cesium.Color.DEEPSKYBLUE,.001:Cesium.Color.GREEN,.01:Cesium.Color.ORANGE,.1:Cesium.Color.RED},outColor:null,boderColor:null,fontSize:12,fontColor:Cesium.Color.BLACK,style:"circle",height:-1e3},yo=function(e){u(i,e);var t=go(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._nativeObjCesium=new Cesium.CustomDataSource(r.name),e._options=mo(mo({},_o),r),e._nativeObjCesium.clustering.enabled=!0,e._nativeObjCesium.clustering.clusterEvent.addEventListener(e._clusterEventHandler,d(e)),e._nativeObjCesium.clustering.pixelRange=e._options.pixelRange,e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("cluster")}},{key:"enableCluster",set:function(e){this._nativeObjCesium.clustering.enabled=e}},{key:"setHeight",value:function(e,t){var i=Cesium.Cartographic.fromCartesian(e);return i.height=t,Cesium.Cartographic.toCartesian(i)}},{key:"_drawCircle",value:function(e,t){var i=this._options.size*(t+1),n=e.toCssColorString()+"-"+i;if(!this._cache[n]){var r,o=document.createElement("canvas");o.width=i,o.height=i;var a,s=o.getContext("2d");if(s.save(),s.scale(i/24,i/24),s.fillStyle=(null===(r=this._options.outColor)||void 0===r?void 0:r.toCssColorString())||e.withAlpha(.2).toCssColorString(),s.beginPath(),s.arc(12,12,this._options.boderColor?12:11,0,2*Math.PI),s.closePath(),s.fill(),this._options.boderColor)s.beginPath(),s.arc(12,12,10,0,2*Math.PI),s.fillStyle=null===(a=this._options.boderColor)||void 0===a?void 0:a.toCssColorString(),s.fill(),s.closePath();s.beginPath(),s.arc(12,12,8,0,2*Math.PI),s.fillStyle=e.toCssColorString(),s.fill(),s.closePath(),s.restore(),this._cache[n]=o.toDataURL()}return this._cache[n]}},{key:"_drawClustering",value:function(e,t){var i=this._options.size*(t+1),n=e.toCssColorString()+"-"+i,r=-Math.PI/12,o=Math.PI/2,a=Math.PI/6;if(!this._cache[n]){var s=document.createElement("canvas");s.width=i,s.height=i;var c=s.getContext("2d");c.save(),c.scale(i/24,i/24),c.beginPath(),c.arc(12,12,6,0,2*Math.PI),c.fillStyle=e.toCssColorString(),c.fill(),c.closePath(),c.lineWidth=2;for(var l=0;l<3;l++)c.beginPath(),c.arc(12,12,8,r,r+o,!1),c.strokeStyle=e.withAlpha(.4).toCssColorString(),c.stroke(),c.arc(12,12,11,r,r+o,!1),c.strokeStyle=e.withAlpha(.2).toCssColorString(),c.stroke(),c.closePath(),r=r+o+a;c.restore(),this._cache[n]=s.toDataURL()}return this._cache[n]}},{key:"_clusterEventHandler",value:function(e,t){if(this._nativeObjCesium.clustering.enabled&&(t.billboard.show=!0,t.label.font="bold ".concat(this._options.fontSize,"px sans-serif"),t.label.fillColor=this._options.fontColor,t.label.disableDepthTestDistance=Number.POSITIVE_INFINITY,this._nativeObjCesium.entities.values.length)){var i=this._nativeObjCesium.entities.values.length||0;for(var n in this._options.gradient)if(e.length>=i*n){var r=String(e.length).length;"circle"===this._options.style?t.billboard.image=this._drawCircle(this._options.gradient[n],r):"custom"===this._options.style?t.billboard.image=this._options.gradient[n]:t.billboard.image=this._drawClustering(this._options.gradient[n],r),t.billboard.label=t.label,t.billboard.position=this.setHeight(t.billboard.position,2),t.label.show=!0,t.label.pixelOffset=1===r?new Cesium.Cartesian2(-2,3):new Cesium.Cartesian2(-5*(r-1),5)}else e.length<=1&&(t.label.show=!1)}}},{key:"clear",value:function(){return this._nativeObjCesium.entities.removeAll(),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("cluster");const Co=yo;function vo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var To=function(e){u(i,e);var t=vo(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._nativeObjCesium=Cesium.CzmlDataSource.load(r.url,r),e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("czml")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium&&this._nativeObjCesium.then((function(e){e.show=t._show}))}},{key:"eachGraphic",value:function(e,t){if(this._nativeObjCesium)return this._nativeObjCesium.then((function(i){i.entities.values.forEach((function(i){e.call(t,i)}))})),this}}]),i}(Ki);Ki.registerType("czml");const So=To;function Ao(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var bo=function(e){u(i,e);var t=Ao(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=new Cesium.CustomDataSource(r.businessID),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("dynamic")}},{key:"clear",value:function(){return this._nativeObjCesium.entities&&this._nativeObjCesium.entities.removeAll(),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("dynamic");const Eo=bo;function xo(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Po(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?xo(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):xo(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Do(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var wo={name:"",count:10,maximumLevel:21,dataProperty:"",callback:function(){return null}},Mo=function(e){u(i,e);var t=Do(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,i),(e=t.call(this,r))._url=r.url,e._options=Po(Po({},wo),r),e._levelLayers={},e._tileWidth=256,e._tileHeight=256,e._maximumLevel=e._options.maximumLevel,e._tilingScheme=e._options.tilingScheme||new Cesium.GeographicTilingScheme,e._rectangle=e._tilingScheme.rectangle,e._credit=void 0,e._token=void 0;for(var o=0;o<e.maximumLevel;o++)e._levelLayers[String(o)]=new oo(e.businessID+"-grid-"+o);return e._viewer=void 0,e._imageryLayer=void 0,e._imagery=document.createElement("canvas"),e._imagery.width=e._tileWidth,e._imagery.height=e._tileHeight,e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("feature_grid")}},{key:"url",get:function(){return this._url}},{key:"show",get:function(){return this._show},set:function(e){var t=this;return this._show=e,Object.keys(this._levelLayers).forEach((function(i){t._levelLayers[i].show=e})),this}},{key:"token",get:function(){return this._token}},{key:"tileWidth",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tileWidth must not be called before the imagery provider is ready.");return this._tileWidth}},{key:"tileHeight",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tileHeight must not be called before the imagery provider is ready.");return this._tileHeight}},{key:"maximumLevel",get:function(){if(!this.ready)throw new Cesium.DeveloperError("maximumLevel must not be called before the imagery provider is ready.");return this._maximumLevel}},{key:"minimumLevel",get:function(){if(!this.ready)throw new Cesium.DeveloperError("minimumLevel must not be called before the imagery provider is ready.");return 0}},{key:"tilingScheme",get:function(){if(!this.ready)throw new Cesium.DeveloperError("tilingScheme must not be called before the imagery provider is ready.");return this._tilingScheme}},{key:"rectangle",get:function(){if(!this.ready)throw new Cesium.DeveloperError("rectangle must not be called before the imagery provider is ready.");return this._rectangle}},{key:"ready",get:function(){return!!this._url}},{key:"credit",get:function(){return this._credit}},{key:"hasAlphaChannel",get:function(){return!0}},{key:"_onAdd",value:function(e){var t=this;this._viewer=e,this._imageryLayer=this._viewer.imageryLayers.addImageryProvider(this),Object.keys(this._levelLayers).forEach((function(e){t._viewer.addLayer(t._levelLayers[e])})),this._state=Me.ADDED}},{key:"_onRemove",value:function(){var e=this;this._imageryLayer&&this._viewer.imageryLayers.remove(this._imageryLayer),Object.keys(this._levelLayers).forEach((function(t){e._viewer.removeLayer(e._levelLayers[t])})),this._state=Me.REMOVED}},{key:"getTileCredits",value:function(e,t,i){}},{key:"requestImage",value:function(e,t,i,n){var r=this,o=this._levelLayers[String(i)],a=this._tilingScheme.tileXYToRectangle(e,t,i);return this._viewer&&a&&o&&Cesium.Rectangle.intersection(a,this._viewer.viewBoundsRectangle)&&Cesium.Resource.fetchJson({url:this._url,queryParameters:{minX:Cesium.Math.toDegrees(a.west),minY:Cesium.Math.toDegrees(a.south),maxX:Cesium.Math.toDegrees(a.east),maxY:Cesium.Math.toDegrees(a.north),count:this._options.count}}).then((function(e){var t=e;if(r._options.dataProperty&&(t=e[r._options.dataProperty]),t&&t.length){for(var n=i+3;n<r._maximumLevel;n++)r._levelLayers[String(n)]&&r._levelLayers[String(n)].clear();t.forEach((function(e){var t=r._options.callback(e);t&&o.addGraphic(t)}))}})),this._imagery}},{key:"clear",value:function(){var e=this;Object.keys(this._levelLayers).forEach((function(t){e._levelLayers[t].clear()})),this._state=Me.CLEARED}}]),i}(Ki);Ki.registerType("feature_grid");const Io=Mo;function Ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Oo=function(e){u(i,e);var t=Ro(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n(this,i),!r.url)throw new Error("GpxLayer: url不能为空!");return(e=t.call(this,r))._nativeObjCesium=Cesium.GpxDataSource.load(r.url,r),e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("gpx")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium&&this._nativeObjCesium.then((function(e){e.show=t._show}))}},{key:"eachGraphic",value:function(e,t){if(this._nativeObjCesium)return this._nativeObjCesium.then((function(i){i.entities.values.forEach((function(i){e.call(t,i)}))})),this}}]),i}(Ki);Ki.registerType("gpx");const Lo=Oo;function Bo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Fo=function(e){u(i,e);var t=Bo(i);function i(){var e;return n(this,i),(e=t.call(this))._nativeObjCesium=new Cesium.PrimitiveCollection,e._isGround=!0,e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("ground_primitive")}},{key:"clear",value:function(){return this._nativeObjCesium&&this._nativeObjCesium.removeAll(),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("ground_primitive");const No=Fo;function Vo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ko=function(e){u(i,e);var t=Vo(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=j.create("div","html-layer",void 0),r._nativeObjCesium.setAttribute("id",r.businessID),r._renderRemoveCallback=void 0,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("html")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium.style.visibility=this._show?"visible":"hidden",Object.keys(this._cache).forEach((function(i){t._cache[i].show=e}))}},{key:"_onAdd",value:function(e){var t=this;this._viewer=e,this._viewer.layerContainer.appendChild(this._nativeObjCesium);var i=this._viewer.scene;this._renderRemoveCallback=i.postRender.addEventListener((function(){var e=t._viewer.camera.positionWC,n=t._viewer.camera.direction;t.eachGraphic((function(t){if(t&&t.position){var r=_e.transformWGS84ToCartesian(t.position),o=i.globe.ellipsoid.geodeticSurfaceNormal(r,new Cesium.Cartesian3),a=Cesium.SceneTransforms.wgs84ToWindowCoordinates(i,r);t._updateStyle(a,Cesium.Cartesian3.distance(r,e),Cesium.Cartesian3.dot(n,o)<=0)}}),t)}),this),this._state=Me.ADDED}},{key:"_onRemove",value:function(){this._renderRemoveCallback&&this._renderRemoveCallback(),this._viewer.layerContainer.removeChild(this._nativeObjCesium),this._state=Me.REMOVED}},{key:"clear",value:function(){for(;this._nativeObjCesium.hasChildNodes();)this._nativeObjCesium.removeChild(this._nativeObjCesium.firstChild);return this._cache={},this._state=Me.CLEARED,this}},{key:"flyTo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-90,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=[];this.eachGraphic((function(t){if(t&&t.position&&e._viewer){var i=_e.transformWGS84ToCartesian(t.position);a.push(i)}})),a.length>0&&Xn.flyToPoints(this._viewer,a,t,i,n,r,o)}}]),i}(Ki);Ki.registerType("html");const $o=ko;function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Go=function(e){u(i,e);var t=Uo(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,i),!e)throw new Error("KmlLayer: data不能为空!");return(r=t.call(this,o))._nativeObjCesium=Cesium.KmlDataSource.load(e,o),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("kml")}},{key:"show",get:function(){return this._show},set:function(e){var t=this;this._show=e,this._nativeObjCesium&&this._nativeObjCesium.then((function(e){e.show=t._show}))}},{key:"eachGraphic",value:function(e,t){if(this._nativeObjCesium)return this._nativeObjCesium.then((function(i){i.entities.values.forEach((function(i){e.call(t,i)}))})),this}}]),i}(Ki);Ki.registerType("kml");const zo=Go;function Ho(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Wo=function(e){u(i,e);var t=Ho(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._dataSource=Cesium.GeoJsonDataSource.load(e.url),r._nativeObjCesium=new Cesium.CustomDataSource(r.businessID),r._initLabel(),r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("label")}},{key:"_createLabel",value:function(e){if(e.position&&e.name)return Ui.fromEntity(e)}},{key:"_initLabel",value:function(){var e=this;this._dataSource.then((function(t){t.entities.values.forEach((function(t){var i=e._createLabel(t);e.addGraphic(i)}))}))}}]),i}(Ki);Ki.registerType("label");const jo=Wo;function qo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Xo=function(e){u(i,e);var t=qo(i);function i(){var e;return n(this,i),(e=t.call(this))._nativeObjCesium=new Cesium.PrimitiveCollection,e._points=e._nativeObjCesium.add(new Cesium.PointPrimitiveCollection),e._labels=e._nativeObjCesium.add(new Cesium.LabelCollection),e._billboards=e._nativeObjCesium.add(new Cesium.BillboardCollection),e._polylines=e._nativeObjCesium.add(new Cesium.PolylineCollection),e._primitives=e._nativeObjCesium.add(new Cesium.PrimitiveCollection),Cesium.CloudCollection&&(e._clouds=e._nativeObjCesium.add(new Cesium.CloudCollection)),e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("primitive")}},{key:"points",get:function(){return this._points}},{key:"labels",get:function(){return this._labels}},{key:"billboards",get:function(){return this._billboards}},{key:"polylines",get:function(){return this._polylines}},{key:"primitives",get:function(){return this._primitives}},{key:"clouds",get:function(){return this._clouds}},{key:"clear",value:function(){return this._nativeObjCesium&&this._nativeObjCesium.removeAll(),this._points=this._nativeObjCesium.add(new Cesium.PointPrimitiveCollection),this._labels=this._nativeObjCesium.add(new Cesium.LabelCollection),this._billboards=this._nativeObjCesium.add(new Cesium.BillboardCollection),this._polylines=this._nativeObjCesium.add(new Cesium.PolylineCollection),Cesium.CloudCollection&&(this._clouds=this._nativeObjCesium.add(new Cesium.CloudCollection)),this._cache={},this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("primitive");const Yo=Xo;function Ko(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Jo=function(e){u(i,e);var t=Ko(i);function i(e){var r;return n(this,i),(r=t.call(this,e))._nativeObjCesium=new Cesium.PrimitiveCollection,r._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("tileset")}},{key:"clear",value:function(){return this._nativeObjCesium.removeAll(),this._cache={},this._state=Me.CLEARED,this}},{key:"flyTo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-90,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=[];this.eachGraphic((function(t){if(t&&t.position&&e._viewer){var i=Transform.transformWGS84ToCartesian(t.position);a.push(i)}})),a.length>0&&LocateUtil.flyToPoints(this._viewer,a,t,i,n,r,o)}}]),i}(Ki);Ki.registerType("tileset");const Qo=Jo;function Zo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var ea=function(e){u(i,e);var t=Zo(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n(this,i),!e)throw new Error("TopoJsonLayer:the data invalid");return(r=t.call(this,e,o))._state=Me.INITIALIZED,r}return s(i,[{key:"type",get:function(){return Ki.getLayerType("topojson")}}]),i}(co);co.registerType("topojson");const ta=ea;var ia=i(852),na=i.n(ia),ra=i(529),oa=i.n(ra),aa=i(885),sa=i.n(aa),ca=i(139),la=i.n(ca),ua=i(450),da=i.n(ua),ha=i(162),pa=i.n(ha),fa=i(750),ma=i.n(fa),ga=i(601),_a=i.n(ga);Cesium.Material.PolylineTrailType="PolylineTrail",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineTrailType,{fabric:{type:Cesium.Material.PolylineTrailType,uniforms:{color:new Cesium.Color(1,0,0,.7),image:Cesium.Material.DefaultImageId,speed:1,repeat:new Cesium.Cartesian2(1,1)},source:_a()},translucent:function(e){return!0}}),Cesium.Material.PolylineLightingTrailType="PolylineLightingTrail",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineLightingTrailType,{fabric:{type:Cesium.Material.PolylineLightingTrailType,uniforms:{color:new Cesium.Color(1,0,0,.7),image:Cesium.Material.DefaultImageId,speed:3},source:na()},translucent:function(e){return!0}}),Cesium.Material.PolylineImageTrailType="PolylineImageTrail",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineImageTrailType,{fabric:{type:Cesium.Material.PolylineImageTrailType,uniforms:{color:new Cesium.Color(1,0,0,.7),image:Cesium.Material.DefaultImageId,speed:1,repeat:new Cesium.Cartesian2(1,1)},source:oa()},translucent:function(e){return!0}}),Cesium.Material.PolylineLightingType="PolylineLighting",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineLightingType,{fabric:{type:Cesium.Material.PolylineLightingType,uniforms:{color:new Cesium.Color(1,0,0,.7),image:Cesium.Material.DefaultImageId},source:la()},translucent:function(e){return!0}}),Cesium.Material.PolylineGlowType="PolylineGlow",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineGlowType,{fabric:{type:Cesium.Material.PolylineGlowType,uniforms:{color:new Cesium.Color(1,.27,0,.9),glowPower:.06,taperPower:1},source:sa()},translucent:function(e){return!0}}),Cesium.Material.PolylineGradientType="PolylineGradient",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineGradientType,{fabric:{type:Cesium.Material.PolylineGradientType,uniforms:{color:new Cesium.Color(1,0,0,.5),image:"",transparent:!0,time:20},source:da()},translucent:function(){return!0}}),Cesium.Material.PolylineFlowType="PolylineFlow",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineFlowType,{fabric:{type:Cesium.Material.PolylineFlowType,uniforms:{color:new Cesium.Color(1,0,0,.7),speed:1,percent:.03,gradient:.1},source:pa()},translucent:function(e){return!0}}),Cesium.Material.PolylineVFlywireType="PolylineVFlywire",Cesium.Material._materialCache.addMaterial(Cesium.Material.PolylineVFlywireType,{fabric:{type:Cesium.Material.PolylineVFlywireType,uniforms:{color:new Cesium.Color(1,0,0,1),speed:10,percent:.1,gradient:.01},source:ma()},translucent:function(e){return!0}});var ya=i(724),Ca=i.n(ya);Cesium.Material.WallGradientType="WallGradient",Cesium.Material._materialCache.addMaterial(Cesium.Material.WallGradientType,{fabric:{type:Cesium.Material.WallGradientType,uniforms:{color:new Cesium.Color(1,1,1,1),image:Cesium.buildModuleUrl("static/images/wallgradient.png"),time:0},source:Ca()},translucent:function(e){return!0}}),Cesium.Material.WallFlowType="WallFlow",Cesium.Material._materialCache.addMaterial(Cesium.Material.WallFlowType,{fabric:{type:Cesium.Material.WallFlowType,uniforms:{color:new Cesium.Color(1,1,1,1),image:Cesium.buildModuleUrl("static/images/wallflow.png"),time:0},source:Ca()},translucent:function(e){return!0}});var va=i(586),Ta=i.n(va);Cesium.Material.CircleWaveMaterialType="CircleWaveMaterial",Cesium.Material._materialCache.addMaterial(Cesium.Material.CircleWaveMaterialType,{fabric:{type:Cesium.Material.CircleWaveMaterialType,uniforms:{color:new Cesium.Color(1,0,0,1),time:1,count:1,gradient:.1},source:Ta()},translucent:function(e){return!0}});var Sa=i(486),Aa=i.n(Sa);Cesium.Material.CircleBlurType="CircleBlur",Cesium.Material._materialCache.addMaterial(Cesium.Material.CircleBlurType,{fabric:{type:Cesium.Material.CircleBlurType,uniforms:{color:new Cesium.Color(1,0,0,.7),speed:3},source:Aa()},translucent:function(e){return!0}});const ba=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._definitionChanged=new Cesium.Event,this._color=void 0,this._colorSubscription=void 0,this._speed=void 0,this._speedSubscription=void 0,this.color=t.color||Cesium.Color.fromBytes(0,255,255,255),this.speed=t.speed||1}return s(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return null}},{key:"getValue",value:function(e,t){return t=Cesium.defaultValue(t,{})}},{key:"equals",value:function(e){return this===e}}]),e}();function Ea(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var xa=function(e){u(i,e);var t=Ea(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e.image=Cesium.buildModuleUrl("static/images/lighting.png"),e}return s(i,[{key:"getType",value:function(e){return"PolylineLightingTrail"}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.image=Cesium.Property.getValueOrUndefined(this._image,e),t.speed=this._speed,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)}}]),i}(ba);Object.defineProperties(xa.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),image:Cesium.createPropertyDescriptor("image")});const Pa=xa;function Da(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var wa=function(e){u(i,e);var t=Da(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,e)}return s(i,[{key:"getType",value:function(e){return"PolylineTrail"}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.speed=this._speed,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)}}]),i}(ba);Object.defineProperties(wa.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed")});const Ma=wa;function Ia(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ra=function(e){u(i,e);var t=Ia(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e._repeat=void 0,e._repeatSubscription=void 0,e.image=r.image,r.repeat||(r.repeat={x:1,y:1}),e.repeat=new Cesium.Cartesian2(r.repeat.x,r.repeat.y),e}return s(i,[{key:"getType",value:function(e){return Cesium.Material.PolylineImageTrailType}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.image=Cesium.Property.getValueOrUndefined(this._image,e),t.repeat=Cesium.Property.getValueOrUndefined(this._repeat,e),t.speed=this._speed,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._image,e._image)&&Cesium.Property.equals(this._repeat,e._repeat)&&Cesium.Property.equals(this._speed,e._speed)}}]),i}(ba);Object.defineProperties(Ra.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),image:Cesium.createPropertyDescriptor("image"),repeat:Cesium.createPropertyDescriptor("repeat")});const Oa=Ra;function La(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ba=function(e){u(i,e);var t=La(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e.image=Cesium.buildModuleUrl("static/images/lighting.png"),e}return s(i,[{key:"getType",value:function(e){return Cesium.Material.PolylineLightingType}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.image=Cesium.Property.getValueOrUndefined(this._image,e),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._image,e._image)}}]),i}(ba);Object.defineProperties(Ba.prototype,{color:Cesium.createPropertyDescriptor("color"),image:Cesium.createPropertyDescriptor("image")});const Fa=Ba;function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Va=Cesium.Color.WHITE,ka=function(e){u(i,e);var t=Na(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._glowPower=void 0,e._glowPowerSubscription=void 0,e._taperPower=void 0,e._taperPowerSubscription=void 0,e.color=r.color,e.glowPower=r.glowPower,e.taperPower=r.taperPower,e}return s(i,[{key:"getType",value:function(e){return Cesium.Material.PolylineGlowType}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Va,t.color),t.glowPower=Cesium.Property.getValueOrDefault(this._glowPower,e,.25,t.glowPower),t.taperPower=Cesium.Property.getValueOrDefault(this._taperPower,e,1,t.taperPower),t}},{key:"equals",value:function(e){return!1}}]),i}(ba);Object.defineProperties(ka.prototype,{color:Cesium.createPropertyDescriptor("color"),glowPower:Cesium.createPropertyDescriptor("glowPower"),taperPower:Cesium.createPropertyDescriptor("taperPower")});const $a=ka;function Ua(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ga=function(e){u(i,e);var t=Ua(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._time=performance.now(),e.duration=r.duration,e.image=Cesium.buildModuleUrl("static/images/linegradient.png"),e}return s(i,[{key:"getType",value:function(e){return"PolylineGradient"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.image=this.image,t.time=(performance.now()-this._time)%this.duration/this.duration,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&this.duration===e.duration}}]),i}(ba);Object.defineProperties(Ga.prototype,{color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration")});const za=Ga;function Ha(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Wa=function(e){u(i,e);var t=Ha(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._percent=void 0,e._percentSubscription=void 0,e._gradient=void 0,e._gradientSubscription=void 0,e.percent=r.percent||.03,e.gradient=r.gradient||.1,e}return s(i,[{key:"getType",value:function(e){return Cesium.Material.PolylineFlowType}},{key:"getValue",value:function(e,t){return t||(t={}),t.color=Cesium.Property.getValueOrUndefined(this._color,e),t.speed=this._speed,t.percent=this._percent,t.gradient=this._gradient,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)&&Cesium.Property.equals(this._percent,e._percent)&&Cesium.Property.equals(this._gradient,e._gradient)}}]),i}(ba);Object.defineProperties(Wa.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),percent:Cesium.createPropertyDescriptor("percent"),gradient:Cesium.createPropertyDescriptor("gradient")});const ja=Wa;function qa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Xa=function(e){u(i,e);var t=qa(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._percent=void 0,e._gradient=void 0,e.color=r.color,e.speed=r.speed,e.percent=r.percent,e.gradient=r.gradient,e}return s(i,[{key:"getType",value:function(e){return"PolylineVFlywire"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrDefault(this._color,e,Cesium.Color.RED,t.color),t.speed=Cesium.Property.getValueOrDefault(this._speed,e,5,t.speed),t.percent=Cesium.Property.getValueOrDefault(this._percent,e,.1,t.percent),t.gradient=Cesium.Property.getValueOrDefault(this._gradient,e,.01,t.gradient),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)&&Cesium.Property.equals(this._percent,e._percent)&&Cesium.Property.equals(this._gradient,e._gradient)}}]),i}(ba);Object.defineProperties(Xa.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed"),percent:Cesium.createPropertyDescriptor("percent"),gradient:Cesium.createPropertyDescriptor("gradient")});const Ya=Xa;function Ka(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ja=function(e){u(i,e);var t=Ka(i);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),t.call(this,e)}return s(i,[{key:"getType",value:function(e){return Cesium.Material.CircleBlurType}},{key:"getValue",value:function(e,t){return(t=Cesium.defaultValue(t,{})).color=Cesium.Property.getValueOrUndefined(this._color,e),t.speed=this._speed,t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)&&Cesium.Property.equals(this._speed,e._speed)}}]),i}(ba);Object.defineProperties(Ja.prototype,{color:Cesium.createPropertyDescriptor("color"),speed:Cesium.createPropertyDescriptor("speed")});const Qa=Ja;var Za=function(){function e(t){n(this,e),t=t||{},this._definitionChanged=new Cesium.Event,this._baseWaterColor=void 0,this._baseWaterColorSubscription=void 0,this.baseWaterColor=t.baseWaterColor||new Cesium.Color(.2,.3,.6,1),this._blendColor=void 0,this._blendColorSubscription=void 0,this.blendColor=t.blendColor||new Cesium.Color(0,1,.699,1),this._specularMap=void 0,this._specularMapSubscription=void 0,this.specularMap=t.specularMap||Cesium.Material.DefaultImageId,this._normalMap=void 0,this._normalMapSubscription=void 0,this.normalMap=t.normalMap||Cesium.buildModuleUrl("static/images/water/waterNormalsSmall.jpg"),this.frequency=Cesium.defaultValue(t.frequency,1e3),this.animationSpeed=Cesium.defaultValue(t.animationSpeed,.01),this.amplitude=Cesium.defaultValue(t.amplitude,10),this.specularIntensity=Cesium.defaultValue(t.specularIntensity,.5)}return s(e,[{key:"isConstant",get:function(){return!1}},{key:"definitionChanged",get:function(){return this._definitionChanged}},{key:"getType",value:function(e){return Cesium.Material.WaterType}},{key:"getValue",value:function(e,t){return t||(t={}),t.baseWaterColor=Cesium.Property.getValueOrUndefined(this._baseWaterColor,e),t.blendColor=Cesium.Property.getValueOrUndefined(this._blendColor,e),t.specularMap=Cesium.Property.getValueOrUndefined(this._specularMap,e),t.normalMap=Cesium.Property.getValueOrUndefined(this._normalMap,e),t.frequency=this.frequency,t.animationSpeed=this.animationSpeed,t.amplitude=this.amplitude,t.specularIntensity=this.specularIntensity,t}},{key:"equals",value:function(t){return this===t||t instanceof e&&Cesium.Property.equals(this._baseWaterColor,t._baseWaterColor)}}]),e}();Object.defineProperties(Za.prototype,{baseWaterColor:Cesium.createPropertyDescriptor("baseWaterColor"),blendColor:Cesium.createPropertyDescriptor("blendColor"),specularMap:Cesium.createPropertyDescriptor("specularMap"),normalMap:Cesium.createPropertyDescriptor("normalMap")});const es=Za;function ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var is=function(e){u(i,e);var t=ts(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e.image=Cesium.buildModuleUrl("static/images/wallgradient.png"),e.duration=r.duration,e.trailImage=r.trailImage,e._time=(new Date).getTime(),e}return s(i,[{key:"getType",value:function(e){return"WallGradient"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.WHITE,t.color),t.image=this.image,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)}}]),i}(ba);Object.defineProperties(is.prototype,{color:Cesium.createPropertyDescriptor("color")});const ns=is;function rs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var os=function(e){u(i,e);var t=rs(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r)).duration=Cesium.defaultValue(r.duration,1e3),e.count=Cesium.defaultValue(r.count,2),e.color=r.color,e._time=(new Date).getTime(),e.count<=0&&(e.count=1),e.gradient=Cesium.defaultValue(r.gradient,.1),0===e.gradient&&(e.gradient=0),e.gradient>1&&(e.gradient=1),e}return s(i,[{key:"getType",value:function(e){return"CircleWaveMaterial"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.WHITE,t.color),t.time=((new Date).getTime()-this._time)%this.duration/this.duration,t.count=this.count,t.gradient=1+10*(1-this.gradient),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)}}]),i}(ba);Object.defineProperties(os.prototype,{color:Cesium.createPropertyDescriptor("color"),duration:Cesium.createPropertyDescriptor("duration"),count:Cesium.createPropertyDescriptor("count")});const as=os;function ss(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var cs=function(e){u(i,e);var t=ss(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._image=void 0,e._imageSubscription=void 0,e.image=Cesium.buildModuleUrl("static/images/wallflow.png"),e.duration=r.duration,e.trailImage=r.trailImage,e._time=(new Date).getTime(),e}return s(i,[{key:"getType",value:function(e){return"WallFlow"}},{key:"getValue",value:function(e,t){return Cesium.defined(t)||(t={}),t.color=Cesium.Property.getValueOrClonedDefault(this._color,e,Cesium.Color.WHITE,t.color),t.image=this.image,this.duration&&(t.time=((new Date).getTime()-this._time)%this.duration/this.duration),t}},{key:"equals",value:function(e){return this===e||e instanceof i&&Cesium.Property.equals(this._color,e._color)}}]),i}(ba);Object.defineProperties(cs.prototype,{color:Cesium.createPropertyDescriptor("color")});const ls=cs;function us(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const ds=function(e){u(i,Cesium.PolylineCollection);var t=us(i);function i(e){return n(this,i),t.call(this,e)}return s(i,[{key:"update",value:function(e){var t=Cesium.PolylineCollection.prototype.update,i=e.morphTime;e.morphTime=0,t.call(this,e),e.morphTime=i}},{key:"createPolyline",value:function(e,t){if(!Array.isArray(e))throw new Cesium.DeveloperError("必须传入positions数组!");if(!(e.length<2)){var i=Cesium.defaultValue(t.loop,!1),n=Cesium.defaultValue(t.width,2),r=new Cesium.Material({fabric:{type:"Color",uniforms:{color:new Cesium.Color(1,1,1,1)}}}),o=Cesium.defaultValue(t.material,r);if(e.length>=2){var a=e.map((function(e){return Cesium.Cartesian3.clone(e)}));return this.add({material:o,positions:a,width:n,loop:i})}}}}]),i}();const hs=function(){function e(t,i){if(n(this,e),!t)throw new Cesium.DeveloperError("viewer参数是必须的!");t=t.nativeObjCesium||t,this.outline=Cesium.defaultValue(i.outline,!1),this.justDraw=i.justDraw||!1,this.pointColor=i.pointColor||Cesium.Color.RED,this.pointSize=i.pointSize||6,this.outlineColor=i.outlineColor||Cesium.Color.CHARTREUSE,this.outlineWidth=i.outlineWidth||3,this.billboard=Cesium.defaultValue(i.billboard,void 0),this.pointParas={color:this.pointColor,size:this.pointSize,outlineColor:this.outlineColor,outlineWidth:this.outlineWidth,show:Cesium.defaultValue(i.pointShow,!0),billboard:this.billboard,justDraw:this.justDraw},this.tempPointParas={size:i.tempPoint_size||10,color:i.tempPoint_color||Cesium.Color.YELLOW,show:Cesium.defaultValue(i.tempPoint_show,!0),justDraw:!Cesium.defaultValue(i.tempPoint_showLabel,!1)},this.lineColor=i.lineColor||Cesium.Color.CHARTREUSE,this.lineWidth=i.lineWidth||3,this.showToolTip=Cesium.defaultValue(i.showToolTip,!0),this.lastLeftClickPoint=void 0,this.viewer=t,this.ismeare=i.ismeare||!1,this.positions=[],this.cartesian=null,this.mouseHandler=null,this.onCompleted=i.onCompleted,this._pointLabels=[],this._totalLengthPointLabel=void 0,this._originCursor=void 0,this.polygonPoint=null,this.poly=null,this.showToolTip&&this._addToolTip();var r=De.createPointLabel(this.viewer,new Cesium.Cartesian3(0,0,0),"",De.drawEntityNames().tempPoint,this.tempPointParas);r.point.show=!1,r.show=!1,this._tempPoint=r,this.clampToGround=Cesium.defaultValue(i.clampToGround,!1)}return s(e,[{key:"_addToolTip",value:function(){this.tooltip||(0!=this.showToolTip?(this.tooltip=j.create("div","as-measure",this.viewer.container),this.tooltip.style.borderRadius="5px",this.tooltip.style.position="absolute",this.tooltip.style.color="#c3cbd3",this.tooltip.style.background="#336666",this.tooltip.innerHTML=this.tooltip.innerHTML||"<div>左键单击选点,双击结束绘制,右键取消</div>",this.tooltip.style.display="none",window._drawToolTips=window._drawToolTips||[],window._drawToolTips.push(this.tooltip)):this._removeToolTips())}},{key:"_removeToolTips",value:function(){window._drawToolTips&&window._drawToolTips.forEach((function(e){j.remove(e)})),this.tooltip=void 0,window._drawToolTips=[]}},{key:"_notrackPos",value:function(){this.viewer.selectedEntity=void 0,this.viewer.trackedEntity=void 0}},{key:"_removeFloatPoint",value:function(e){var t=this,i=e.findIndex((function(e){return e.equals(t.lastLeftClickPoint)}));return i>-1&&e.splice(i+1,e.length-i-1),e}},{key:"_removeSamePoint",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!(e.length<2)){for(var t=0;t<e.length-1;t++){var i=e[t],n=e[t+1];"function"==typeof i.equals&&i.equals(n)&&(console.log("element",i),console.log("element",n),e.splice(t,1),t--)}return e}}},{key:"startDraw",value:function(){}},{key:"clearAll",value:function(){this.clear(De.drawEntityNames()),this._pointLabels=[],this.end()}},{key:"clear",value:function(e){if(e){for(var t=Object.values(e),i=0;i<this.viewer.entities.values.length;i++){var n=this.viewer.entities.values[i];t.indexOf(n.name)>-1&&(this.viewer.entities.removeById(n.id),i--)}this._removeToolTips()}}},{key:"end",value:function(){this._removeToolTips(),this.ismeare=!1,this.positions=[],this.poly=null,this.cartesian=null,this.tooltip&&(this.tooltip.style.display="none"),this.mouseHandler&&(this.mouseHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK),this.mouseHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),this.mouseHandler.removeInputAction(Cesium.ScreenSpaceEventType.MOUSE_MOVE),this.mouseHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK),this.mouseHandler.destroy(),this.mouseHandler=null),this._preUpdateListener&&this._preUpdateListener.call(),this._totalLengthPointLabel=void 0,this.viewer.scene.canvas.style.cursor="",this.viewer.selectedEntity=null,this.viewer.trackedEntity=null,"function"==typeof this._preUpdateListener&&(this._preUpdateListener(),this._preUpdateListener=void 0),this._tempPoint&&(this._tempPoint.show=!1,this._tempPoint.point.show=!1),this.polygonPoint=null}},{key:"updateNoDepthTestPolyline",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this;void 0!==this._polyline&&this._polylineCollection&&(this._polylineCollection.remove(this._polyline),this._polyline=void 0),t._polylineCollection&&(t._polyline=t._polylineCollection.createPolyline(t.positions,{loop:e,width:t.lineWidth,material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:t.lineColor}}})}))}},{key:"initNoDepthTestPolyline",value:function(){this._polylineCollection||(this._polyline=void 0,this._polylineCollection=new ds,this.viewer.scene.primitives.add(this._polylineCollection))}},{key:"clearNoDepthTestPolyline",value:function(){this._polylineCollection&&(this._polyline=void 0,this.viewer.scene.primitives.remove(this._polylineCollection),this._polylineCollection=this._polylineCollection&&!this._polylineCollection.isDestroyed()&&this._polylineCollection.destroy(),this._polylineCollection=void 0)}},{key:"createPolylinePrimitive",value:function(e,t,i){if(Array.isArray(e)&&!(e.length<2))return t||(t=Cesium.Color.RED),new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:new Cesium.PolylineGeometry({positions:e,width:i||2,vertexFormat:Cesium.PolylineMaterialAppearance.VERTEX_FORMAT})}),appearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"Color",uniforms:{color:t||new Cesium.Color(1,1,1,1)}}}),renderState:new Cesium.RenderState({polygonOffset:{enabled:!0,factor:-100,units:-100},depthTest:{enabled:!0,func:Cesium.WebGLConstants.LEQUAL}})}),depthFailAppearance:new Cesium.PolylineMaterialAppearance({material:new Cesium.Material({fabric:{type:"PolylineDash",uniforms:{color:t||new Cesium.Color(1,1,1,1)}}})}),allowPicking:!1});console.log("点数少于2,无法绘制线!")}},{key:"_addPolyLinePrimitives",value:function(){this.polyLinePrimitives||(this.polyLinePrimitives=new Cesium.PrimitiveCollection,this.viewer.scene.primitives.add(this.polyLinePrimitives))}},{key:"_clearPolyLinePrimitives",value:function(){this.polyLinePrimitives&&(this.viewer.scene.primitives.remove(this.polyLinePrimitives),this.polyLinePrimitives=this.polyLinePrimitives&&!this.polyLinePrimitives.isDestroyed()&&this.polyLinePrimitives.destroy(),this.polyLinePrimitives=void 0)}},{key:"_getObjectsToExclude",value:function(){var e=[];this.polyLinePrimitives&&e.push(this.polyLinePrimitives),this._polyline&&e.push(this._polyline),this._polylineCollection&&e.push(this._polylineCollection);var t=this.viewer.entities.values.filter((function(e){return De.drawEntityNames()[e.name]}));return e.push.apply(e,Fe(t)),e}}]),e}();function ps(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const fs=function(e){u(i,e);var t=ps(i);function i(e,r){return n(this,i),r.tempPoint_showLabel=Cesium.defaultValue(r.tempPoint_showLabel,!0),t.call(this,e,r)}return s(i,[{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Point()),this.end()}},{key:"_addToolTip",value:function(){$(p(i.prototype),"_addToolTip",this).call(this),this.tooltip&&(this.tooltip.innerHTML="<p>左键单击选点,右键结束</p>")}},{key:"startDraw",value:function(){var e=this;this.end(),this._addToolTip(),this.ismeare=!0;var t=this.ismeare,i=this.viewer;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(i.scene.canvas);var n=this.mouseHandler,r=this;this._originCursor=i.scene.canvas.style.cursor,i.scene.canvas.style.cursor="crosshair";var o=new Cesium.Cartesian2,a=!1,s=Cesium.JulianDate.now();n.setInputAction((function(n){if(i.selectedEntity=null,i.trackedEntity=null,r._tempPoint.point.show=!1,t){var a=De.pickPosition(i,o,e._getObjectsToExclude());if(a){var s=De.getPointLableString(a);r._pointLabels.push(De.createPointLabel(i,a,s,De.drawEntityNames().drawPoint,e.pointParas)),r._tempPoint.show=!1,r.onCompleted&&r.onCompleted(a)}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),n.setInputAction((function(e){r.end()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK),n.setInputAction((function(e){r.end()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),r.mouseHandler.setInputAction((function(e){var t=Cesium.JulianDate.now();Cesium.JulianDate.secondsDifference(t,s)<.03||(s=t,r.tooltip&&(r.justDraw||(r.tooltip.style.display="block"),r.tooltip.style.left=e.endPosition.x+25+"px",r.tooltip.style.top=e.endPosition.y-30+"px"),a=!0,o=Cesium.Cartesian2.clone(e.endPosition,o))}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),this.tempPointParas.show&&(this._preUpdateListener=i.scene.preUpdate.addEventListener((function(){if(a){a=!1;var t=De.pickPosition(i,o,e._getObjectsToExclude());if(t)if(r._tempPoint.show=!0,r._tempPoint.point.show=!0,r.justDraw)De.setPointPosition(r._tempPoint,t);else{var n=De.getPointLableString(t);De.setPointLabel(r._tempPoint,t,n)}else r._tempPoint.show=!1,r._tempPoint.point.show=!1}})))}}]),i}(hs);function ms(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const gs=function(e){u(i,e);var t=ms(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r)).perPositionHeight=Cesium.defaultValue(r.perPositionHeight,!1),o.fillColor=r.fillColor||new Cesium.Color(59,179,249,.5),o.fill=Cesium.defaultValue(r.fill,!0),o}return s(i,[{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Polygon()),$(p(i.prototype),"clearNoDepthTestPolyline",this).call(this),$(p(i.prototype),"_clearPolyLinePrimitives",this).call(this),this.end()}},{key:"_removeFloatPoint",value:function(e){return $(p(i.prototype),"_removeFloatPoint",this).call(this,e),e.length<3&&this.clear(),!this.justDraw&&e.length>=3&&this.showAreaLabel(),e}},{key:"startDraw",value:function(){var e=this;this.end(),this._addToolTip(),this._addPolyLinePrimitives(),this.initNoDepthTestPolyline();var t=this.tooltip;this.ismeare=!0;var i=this.ismeare,n=this.viewer,r=this.cartesian,o=this.positions;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(n.scene.canvas);var a=this.mouseHandler,s=this.poly,c=this;this._originCursor=n.scene.canvas.style.cursor,n.scene.canvas.style.cursor="crosshair";var l=new Cesium.Cartesian2,u=!1;this._preUpdateListener=n.scene.preUpdate.addEventListener((function(){if(u){if(u=!1,e.tooltip&&(e.tooltip.style.display="block",e.tooltip.style.left=l.x+25+"px",e.tooltip.style.top=l.y-25+"px"),!(r=De.pickPosition(n,l,e._getObjectsToExclude())))return e._tempPoint.show=!1,void(e._tempPoint.point.show=!1);if(e._tempPoint.show=!0,e._tempPoint.point.show=!0,e.justDraw)De.setPointPosition(e._tempPoint,r);else{var t=De.getPointLableString(r);De.setPointLabel(e._tempPoint,r,t)}if(Cesium.defined(s))null!=r&&(o.pop(),o.push(r));else{s=new Object;var i=new Cesium.CallbackProperty((function(){return o.length>2?new Cesium.PolygonHierarchy(o):null}),!1),a=new Cesium.CallbackProperty((function(){if(o.length>1){var e=[].concat(o),t=o[0];return e.push(t),e}return null}),!1),d={name:De.drawEntityNames().drawpolygon,polygon:{hierarchy:i,fill:c.fill,material:c.fillColor,perPositionHeight:c.perPositionHeight,heightReference:c.clampToGround?Cesium.HeightReference.CLAMP_TO_GROUND:Cesium.HeightReference.NONE}};e.clampToGround&&(d.polyline={positions:a,width:c.lineWidth,material:c.lineColor,clampToGround:c.clampToGround}),n.entities.add(d)}!e.clampToGround&&e.updateNoDepthTestPolyline(),o.length>2&&!c.justDraw&&c.showAreaLabel()}})),a.setInputAction((function(e){i&&(u=!0,l=Cesium.Cartesian2.clone(e.endPosition,l))}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),a.setInputAction((function(a){if(e._tempPoint.point.show=!1,e._tempPoint.show=!1,i&&r&&i){if(t.style.display="none",!r)return;0==o.length&&o.push(r.clone()),o.push(r),c.lastLeftClickPoint=o[o.length-1],n.entities.add({name:De.drawEntityNames().drawpolygonpoint,position:o[o.length-1],point:{pixelSize:c.pointSize,color:c.pointColor,disableDepthTestDistance:1e9}})}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),a.setInputAction((function(t){if(c._notrackPos(),(o=c._removeSamePoint(o)).length>=3){var i=[].concat(o),n=o[0];if(i.push(n),!e.clampToGround){var r=c.createPolylinePrimitive(i,c.lineColor,c.lineWidth);c.polyLinePrimitives.add(r),c.clearNoDepthTestPolyline()}c.onCompleted&&c.onCompleted(i)}c.end()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),a.setInputAction((function(t){if(c._notrackPos(),o=c._removeFloatPoint(o),(o=c._removeSamePoint(o)).length>=3){var i=[].concat(o),n=o[0];if(i.push(n),!e.clampToGround){var r=c.createPolylinePrimitive(i,c.lineColor,c.lineWidth);c.polyLinePrimitives.add(r),c.clearNoDepthTestPolyline()}c.onCompleted&&c.onCompleted(o)}c.end()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"showAreaLabel",value:function(){var e=De.getPolygonArea(this.positions),t="面积:"+(e=e||0).toFixed(2)+"平方米";e>=1e4&&(t="面积:"+(e/1e6).toFixed(2)+"平方千米"),e>=1e10&&(t="面积:"+(e/1e10).toFixed(2)+"万平方千米");var i=Cesium.BoundingSphere.fromPoints(this.positions);void 0===this._totalLengthPointLabel?(this._totalLengthPointLabel=De.createPointLabel(this.viewer,i.center,t,De.drawEntityNames().drawpolygon),this._totalLengthPointLabel.point.show=!1):De.setPointLabel(this._totalLengthPointLabel,i.center,t)}}]),i}(hs);function _s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const ys=function(e){u(i,e);var t=_s(i);function i(e,r){return n(this,i),t.call(this,e,r)}return s(i,[{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Polyline()),$(p(i.prototype),"clearNoDepthTestPolyline",this).call(this),$(p(i.prototype),"_clearPolyLinePrimitives",this).call(this),this.end()}},{key:"_removeFloatPoint",value:function(e){return $(p(i.prototype),"_removeFloatPoint",this).call(this,e),e.length<2&&this.clear(),e.length>=2&&this.viewer.entities.remove(this._pointLabels_son.pop()),!this.justDraw&&this.showLengthLabel(e),e}},{key:"startDraw",value:function(){var e=this;this._addPolyLinePrimitives(),this.end(),this._addToolTip(),this.initNoDepthTestPolyline(),this._pointLabels_son=[],this.ismeare=!0;var t=this.ismeare,i=this.viewer,n=this.cartesian,r=this.positions;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(i.scene.canvas);var o=this.mouseHandler,a=this;this._originCursor=i.scene.canvas.style.cursor,i.scene.canvas.style.cursor="crosshair";var s=new Cesium.Cartesian2,c=!1;this._preUpdateListener=i.scene.preUpdate.addEventListener((function(){if(c){c=!1,e.tooltip&&(e.tooltip.style.display="block",e.tooltip.style.left=s.x+25+"px",e.tooltip.style.top=s.y-25+"px");var t=i.scene.pick(s);if((n=Cesium.defined(t)&&t.id instanceof Cesium.Entity&&t.id.point&&t.id.position&&t.id.position._value?t.id.position._value:De.pickPosition(i,s,e._getObjectsToExclude()))||(n=De.pickPosition(i,s,e._getObjectsToExclude())),!n)return a._tempPoint.show=!1,void(a._tempPoint.point.show=!1);if(a._tempPoint.show=!0,a._tempPoint.point.show=!0,a.justDraw)De.setPointPosition(a._tempPoint,n);else{var o=De.getPointLableString(n);De.setPointLabel(a._tempPoint,n,o)}r.length>=2&&(Cesium.defined(e.poly)?(r.pop(),r.push(n)):e.poly=new Object,!a.justDraw&&a.showLengthLabel(r)),e.updateNoDepthTestPolyline(!1)}})),o.setInputAction((function(e){t&&(c=!0,s=Cesium.Cartesian2.clone(e.endPosition,s))}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),o.setInputAction((function(o){a._tempPoint.point.show=!1,a._tempPoint.show=!1,t&&n&&(0==r.length&&r.push(n.clone()),r.push(n.clone()),e.lastLeftClickPoint=r[r.length-1],i.entities.add({name:De.drawEntityNames().drawpolylinepoint,position:n,point:{pixelSize:e.pointSize,color:e.pointColor,outlineColor:e.outlineColor,outlineWidth:e.outlineWidth,disableDepthTestDistance:1e9}}))}),Cesium.ScreenSpaceEventType.LEFT_CLICK),o.setInputAction((function(t){if(a._notrackPos(),e.clampToGround)new l(r)._init();else{var i=a.createPolylinePrimitive(a._removeSamePoint(r),a.lineColor,a.lineWidth);a.polyLinePrimitives&&a.polyLinePrimitives.add(i)}a.clearNoDepthTestPolyline(),a.onCompleted&&a.onCompleted(a._removeSamePoint(r)),a.end()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),o.setInputAction((function(t){if(a._notrackPos(),r=e._removeFloatPoint(r),r=e._removeSamePoint(r),e.clampToGround)new l(r)._init();else{var i=a.createPolylinePrimitive(a._removeSamePoint(r),a.lineColor,a.lineWidth);i&&a.polyLinePrimitives&&a.polyLinePrimitives.add(i)}a.clearNoDepthTestPolyline(),a.onCompleted&&a.onCompleted(a._removeSamePoint(r)),a.end()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK);var l=function(){function e(e){this.options={name:De.drawEntityNames().drawpolyline,polyline:{width:a.lineWidth,arcType:Cesium.ArcType.RHUMB,clampToGround:a.clampToGround,material:a.lineColor,depthFailMaterial:new Cesium.PolylineDashMaterialProperty({color:a.lineColor})}},this.positions=e,this._init()}return e.prototype._init=function(){var e=this;this.options.polyline.positions=new Cesium.CallbackProperty((function(){return e.positions}),!1),this.polyLine=i.entities.add(this.options)},e.prototype.remove=function(){this.polyLine&&i.entities.remove(this.polyLine),this.polyLine=void 0},e}()}},{key:"showEachsegLengthLabel",value:function(e){var t=this,i=e.length;De.createPointLabelsCallback(e,(function(e,i,n,r){void 0===t._pointLabels_son[e]?(t._pointLabels_son[e]=De.createPointLabel(t.viewer,n,r),t._pointLabels_son[e].point.show=!1):De.setPointLabel(t._pointLabels_son[e],n,r),t._pointLabels_son[e].show=!0}));for(var n=i-1<0?0:i-1;n<this._pointLabels_son.length;++n)this._pointLabels_son[n].show=!1}},{key:"showTotalLength",value:function(e){var t=De.getPolylineDistance(e),i="总长:"+t.toFixed(2)+"米";t>=1e3&&(i="总长:"+(t/1e3).toFixed(2)+"千米"),void 0===this._totalLengthPointLabel?(this._totalLengthPointLabel=De.createPointLabel(this.viewer,e[0],i),this._totalLengthPointLabel.point.show=!1):De.setPointLabel(this._totalLengthPointLabel,e[0],i)}},{key:"showLengthLabel",value:function(e){this.showEachsegLengthLabel(e),this.showTotalLength(e)}},{key:"updatePolyLine",value:function(){}}]),i}(hs);function Cs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const vs=function(e){u(i,e);var t=Cs(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r)).CLAMP_TO_GROUND=r.CLAMP_TO_GROUND||!0,o.fillColor=r.fillColor||Cesium.Color.YELLOW.withAlpha(.5),o.fill=Cesium.defaultValue(r.fill,!0),o}return s(i,[{key:"_addToolTip",value:function(){$(p(i.prototype),"_addToolTip",this).call(this),this.tooltip&&(this.tooltip.innerHTML="<div>左键单击选点</div>")}},{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Rectangle()),this.end()}},{key:"_removeFloatPoint",value:function(e){return $(p(i.prototype),"_removeFloatPoint",this).call(this,e),e.length<2&&this.clear(),e}},{key:"startDraw",value:function(){var e=this;this.end(),this._addToolTip();var t=this.tooltip;this.ismeare=!0;var i=this.ismeare,n=this.viewer,r=this.cartesian,o=this.positions,a=this.polygonPoint;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(n.scene.canvas);var s=this.mouseHandler,c=this.poly,l=this;this._originCursor=n.scene.canvas.style.cursor,n.scene.canvas.style.cursor="crosshair";var u=Cesium.JulianDate.now();s.setInputAction((function(e){if(i){var s=Cesium.JulianDate.now();if(!(Cesium.JulianDate.secondsDifference(s,u)<.01)){if(t.style.display="block",t.style.left=e.endPosition.x+25+"px",t.style.top=e.endPosition.y-25+"px",null!=(r=De.pickPosition(n,e.endPosition))&&(o.length>1&&o.pop(),o.length>0&&o.push(r)),!Cesium.defined(c)){c=new Object;var d=new Cesium.CallbackProperty((function(){return o.length>1?Cesium.Rectangle.fromCartesianArray(o):null}),!1);a=n.entities.add({name:De.drawEntityNames().drawRec,rectangle:{coordinates:d,material:l.fillColor,fill:l.fill,outline:l.outline,outlineWidth:l.outlineWidth,outlineColor:l.outlineColor,heightReference:l.clampToGround?Cesium.HeightReference.CLAMP_TO_GROUND:Cesium.HeightReference.NONE}}),l.polygonPoint=a}o.length>1&&!l.justDraw&&l.showAreaLabel()}}}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),s.setInputAction((function(e){if(i&&(r=De.pickPosition(n,e.position))&&i){if(t.style.display="none",!r)return;if(o.push(r),l.lastLeftClickPoint=o[o.length-1],n.entities.add({name:De.drawEntityNames().drawRecpoint,position:o[o.length-1],point:{pixelSize:4,color:Cesium.Color.RED,outlineColor:Cesium.Color.WHITE,outlineWidth:2,disableDepthTestDistance:1e9}}),o.length>=2){if(l.onCompleted){var a=Cesium.Rectangle.subsample(l.polygonPoint.rectangle.coordinates.getValue());a.push(a[0]),l.onCompleted(a)}l.end()}}}),Cesium.ScreenSpaceEventType.LEFT_CLICK),s.setInputAction((function(e){l.onCompleted&&l.onCompleted(l._removeSamePoint(o)),l.end(),l._notrackPos()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),s.setInputAction((function(t){o=e._removeFloatPoint(o),l.end()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"showAreaLabel",value:function(){var e=Cesium.Rectangle.northeast(this.polygonPoint.rectangle._coordinates.getValue()),t=Cesium.Rectangle.southwest(this.polygonPoint.rectangle._coordinates.getValue()),i=Cesium.Rectangle.northwest(this.polygonPoint.rectangle._coordinates.getValue()),n=Cesium.Rectangle.southeast(this.polygonPoint.rectangle._coordinates.getValue());e=Cesium.Cartographic.toCartesian(e),t=Cesium.Cartographic.toCartesian(t),i=Cesium.Cartographic.toCartesian(i),n=Cesium.Cartographic.toCartesian(n);var r=De.getPolygonArea([t,n,e,i]),o="面积:"+(r=r||0).toFixed(2)+"平方米";r>=1e4&&(o="面积:"+(r/1e6).toFixed(2)+"平方千米");var a=Cesium.BoundingSphere.fromPoints(this.positions);void 0===this._totalLengthPointLabel?(this._totalLengthPointLabel=De.createPointLabel(this.viewer,a.center,o,De.drawEntityNames().drawRec),this._totalLengthPointLabel.point.show=!1):De.setPointLabel(this._totalLengthPointLabel,a.center,o)}}]),i}(hs);function Ts(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const Ss=function(e){u(i,e);var t=Ts(i);function i(e,r){var o;return n(this,i),(o=t.call(this,e,r)).perPositionHeight=Cesium.defaultValue(r.perPositionHeight,!1),o.fillColor=r.fillColor||new Cesium.Color(59,179,249,.5),o.fill=Cesium.defaultValue(r.fill,!0),o._radius=0,o._center=void 0,o._outlinePositions=[],o}return s(i,[{key:"clear",value:function(){$(p(i.prototype),"clear",this).call(this,De.drawEntityNames_Circle()),$(p(i.prototype),"clearNoDepthTestPolyline",this).call(this),$(p(i.prototype),"_clearPolyLinePrimitives",this).call(this),this.end()}},{key:"_removeFloatPoint",value:function(e){return $(p(i.prototype),"_removeFloatPoint",this).call(this,e),e.length<2&&this.clear(),!this.justDraw&&e.length>=2&&this.showAreaLabel(),e}},{key:"startDraw",value:function(){var e=this;this.end(),this._addToolTip(),this._addPolyLinePrimitives(),this.initNoDepthTestPolyline();var t=this.tooltip;this.ismeare=!0;var i=this.ismeare,n=this.viewer,r=this.cartesian,o=this.positions;this.mouseHandler=new Cesium.ScreenSpaceEventHandler(n.scene.canvas);var a=this.mouseHandler,s=this.poly,c=this;this._originCursor=n.scene.canvas.style.cursor,n.scene.canvas.style.cursor="crosshair";var l=new Cesium.Cartesian2,u=!1;this._preUpdateListener=n.scene.preUpdate.addEventListener((function(){if(u){if(u=!1,e.tooltip&&(e.tooltip.style.display="block",e.tooltip.style.left=l.x+25+"px",e.tooltip.style.top=l.y-25+"px"),!(r=De.pickPosition(n,l,e._getObjectsToExclude())))return e._tempPoint.show=!1,void(e._tempPoint.point.show=!1);if(e._tempPoint.show=!0,e._tempPoint.point.show=!0,e.justDraw)De.setPointPosition(e._tempPoint,r);else{var t=De.getPointLableString(r);De.setPointLabel(e._tempPoint,r,t)}if(null!=r&&(o.length>1&&o.pop(),o.length>0&&o.push(r)),!Cesium.defined(s)){s=new Object;var i=new Cesium.CallbackProperty((function(){if(o.length>1){if(e._radius=Cesium.Cartesian3.distance(o[0],o[1]),e._radius<=0)return null;var t=Cesium.EllipseGeometryLibrary.computeEllipsePositions({center:o[0],semiMajorAxis:e._radius,semiMinorAxis:e._radius,rotation:0,granularity:.005},!1,!0),i=Cesium.Cartesian3.unpackArray(t.outerPositions);return i.push(i[0]),e._outlinePositions=i,new Cesium.PolygonHierarchy(i)}return null}),!1),a={name:De.drawEntityNames().drawCircle,polygon:{hierarchy:i,fill:c.fill,material:c.fillColor,perPositionHeight:c.perPositionHeight,outline:c.outline,outlineWidth:c.outlineWidth,outlineColor:c.outlineColor,heightReference:c.clampToGround?Cesium.HeightReference.CLAMP_TO_GROUND:Cesium.HeightReference.NONE}};a.polyline={positions:c._outlinePositions,width:c.outlineWidth,material:c.outlineColor,clampToGround:c.clampToGround},n.entities.add(a)}o.length>1&&!c.justDraw&&c.showAreaLabel()}})),a.setInputAction((function(e){i&&(u=!0,l=Cesium.Cartesian2.clone(e.endPosition,l))}),Cesium.ScreenSpaceEventType.MOUSE_MOVE),a.setInputAction((function(n){e._tempPoint.point.show=!1,e._tempPoint.show=!1,i&&r&&(t.style.display="none",o.push(r),c.lastLeftClickPoint=o[o.length-1],o.length>=2&&e._outlinePositions&&(c.onCompleted&&c.onCompleted(e._outlinePositions),c.end()),c._notrackPos())}),Cesium.ScreenSpaceEventType.LEFT_CLICK),a.setInputAction((function(t){c.onCompleted&&c.onCompleted(e._outlinePositions),c.end(),c._notrackPos()}),Cesium.ScreenSpaceEventType.LEFT_DOUBLE_CLICK),a.setInputAction((function(t){c.onCompleted&&c.onCompleted(e._outlinePositions),c.end(),c._notrackPos()}),Cesium.ScreenSpaceEventType.RIGHT_CLICK)}},{key:"showAreaLabel",value:function(){var e=De.getPolygonArea(this._outlinePositions),t="面积:"+(e=e||0).toFixed(2)+"平方米";e>=1e4&&(t="面积:"+(e/1e6).toFixed(2)+"平方千米"),e>=1e10&&(t="面积:"+(e/1e10).toFixed(2)+"万平方千米");var i=Cesium.BoundingSphere.fromPoints(this._outlinePositions);void 0===this._totalLengthPointLabel?(this._totalLengthPointLabel=De.createPointLabel(this.viewer,i.center,t,De.drawEntityNames().drawpolygon),this._totalLengthPointLabel.point.show=!1):De.setPointLabel(this._totalLengthPointLabel,i.center,t)}}]),i}(hs);var As=function(){function e(t,i){n(this,e),Cesium&&t&&(this.viewer=t,this._polygon=void 0,this._show=!1,this._init(i))}return s(e,[{key:"show",get:function(){return this._show},set:function(e){this._show=e,this._polygon&&(this._polygon.show=e)}},{key:"_drawPolygon",value:function(e){var t=this,i=this.viewer.entities.add({show:this.show,polygon:{hierarchy:new Cesium.PolygonHierarchy(e),material:new Cesium.Color.fromBytes(64,157,253,100),perPositionHeight:!1,extrudedHeight:new Cesium.CallbackProperty((function(){return t._extrudedHeight}),!1)}});return this._polygon=i,i}},{key:"_init",value:function(e){e=Cesium.defaultValue(e,Cesium.defaultValue.EMPTY_OBJECT),this._minHeight=e.minHeight||0,this._maxHeight=e.maxHeight||2e3,this._extrudedHeight=this.minHeight,this._speed=e.speed||10,this._polygon=null,this._interval=void 0,this._intervalStep=e.intervalStep||500}},{key:"start",value:function(e,t){var i=this;this._polygon||this._drawPolygon(e),this.show=!0,this._interval=window.setInterval((function(){i._maxHeight>i._extrudedHeight&&i._extrudedHeight>=i._minHeight?i._extrudedHeight+=i._speed:i._extrudedHeight=i._minHeight,t&&t(i._extrudedHeight)}),this._intervalStep),this.viewer.scene.globe.depthTestAgainstTerrain=!0}},{key:"noAuto",value:function(e,t){this._polygon||this._drawPolygon(e),this.show=!0,this._maxHeight>this._extrudedHeight&&this._extrudedHeight>=this._minHeight?this._extrudedHeight=t:this._extrudedHeight=this._minHeight,this.viewer.scene.globe.depthTestAgainstTerrain=!0}},{key:"stop",value:function(){this._polygon&&(this.viewer.entities.remove(this._polygon),this._polygon=null),this._interval&&(clearInterval(this._interval),this._interval=void 0),this.viewer.scene.globe.depthTestAgainstTerrain=!1}},{key:"pause",value:function(){this._interval&&(clearInterval(this._interval),this._interval=void 0)}},{key:"resetParas",value:function(e){e=Cesium.defaultValue(e,Cesium.defaultValue.EMPTY_OBJECT),this._minHeight=e.minHeight||0,this._maxHeight=e.maxHeight||2e3,this._speed=e.setpHeight||10}}]),e}(),bs=[].indexOf||function(e){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===e)return t;return-1},Es="attribute vec4 position;\nvarying vec2 texcoord;\nvoid main(){\n texcoord = position.xy*0.5+0.5;\n gl_Position = position;\n}",xs="#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp int;\n precision highp float;\n#else\n precision mediump int;\n precision mediump float;\n#endif\nuniform sampler2D source;\nvarying vec2 texcoord;";!function(){var e,t,i,n;if(null!=window.WebGLRenderingContext)n=["WEBKIT","MOZ","MS","O"],i=/^WEBKIT_(.*)|MOZ_(.*)|MS_(.*)|O_(.*)/,e=WebGLRenderingContext.prototype.getExtension,WebGLRenderingContext.prototype.getExtension=function(t){var r,o,a,s,c;if(null!==(o=t.match(i))&&(t=o[1]),null===(r=e.call(this,t))){for(s=0,c=n.length;s<c;s++)if(a=n[s],null!==(r=e.call(this,a+"_"+t)))return r;return null}return r},t=WebGLRenderingContext.prototype.getSupportedExtensions,WebGLRenderingContext.prototype.getSupportedExtensions=function(){var e,n,r,o,a,s;for(r=[],a=0,s=(o=t.call(this)).length;a<s;a++)null!==(n=(e=o[a]).match(i))&&(e=n[1]),bs.call(r,e)<0&&r.push(e);return r}}(),function(){var e,t,i,n,r,o,a,s,c,l,u,d,h,p;if((r=function(){var e,t,i;return(e=document.createElement("canvas")).width=2,e.height=2,(i=(t=e.getContext("2d")).getImageData(0,0,2,2)).data.set(new Uint8ClampedArray([0,0,0,0,255,255,255,255,0,0,0,0,255,255,255,255])),t.putImageData(i,0,0),e})(),t=function(e,t){var i,n,o,a,s,c,l,u,d,h,p,f,m,g;if(c=e.createProgram(),m=e.createShader(e.VERTEX_SHADER),e.attachShader(c,m),e.shaderSource(m,"attribute vec2 position;\nvoid main(){\n gl_Position = vec4(position, 0.0, 1.0);\n}"),e.compileShader(m),!e.getShaderParameter(m,e.COMPILE_STATUS))throw e.getShaderInfoLog(m);if(o=e.createShader(e.FRAGMENT_SHADER),e.attachShader(c,o),e.shaderSource(o,"uniform sampler2D source;\nvoid main(){\n gl_FragColor = texture2D(source, vec2(1.0, 1.0));\n}"),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS))throw e.getShaderInfoLog(o);if(e.linkProgram(c),!e.getProgramParameter(c,e.LINK_STATUS))throw e.getProgramInfoLog(c);return e.useProgram(c),n=function(){return e.deleteShader(o),e.deleteShader(m),e.deleteProgram(c),e.deleteBuffer(i),e.deleteTexture(d),e.deleteTexture(f),e.deleteFramebuffer(a),e.bindBuffer(e.ARRAY_BUFFER,null),e.useProgram(null),e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null)},f=e.createTexture(),e.bindTexture(e.TEXTURE_2D,f),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,2,2,0,e.RGBA,e.UNSIGNED_BYTE,null),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),a=e.createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,a),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,f,0),h=r(),d=e.createTexture(),e.bindTexture(e.TEXTURE_2D,d),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,t,h),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),g=new Float32Array([1,1,-1,1,-1,-1,1,1,-1,-1,1,-1]),i=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,i),e.bufferData(e.ARRAY_BUFFER,g,e.STATIC_DRAW),s=e.getAttribLocation(c,"position"),p=e.getUniformLocation(c,"source"),e.enableVertexAttribArray(s),e.vertexAttribPointer(s,2,e.FLOAT,!1,0,0),e.uniform1i(p,0),e.drawArrays(e.TRIANGLES,0,6),l=new Uint8Array(16),e.readPixels(0,0,2,2,e.RGBA,e.UNSIGNED_BYTE,l),u=Math.abs(l[0]-127)<10,n(),u},n=function(e,t){var i;return i=e.createTexture(),e.bindTexture(e.TEXTURE_2D,i),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,2,2,0,e.RGBA,t,null),0===e.getError()?(e.deleteTexture(i),!0):(e.deleteTexture(i),!1)},e=function(e,t){var i,n,r;return r=e.createTexture(),e.bindTexture(e.TEXTURE_2D,r),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,2,2,0,e.RGBA,t,null),n=e.createFramebuffer(),e.bindFramebuffer(e.FRAMEBUFFER,n),e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,r,0),i=e.checkFramebufferStatus(e.FRAMEBUFFER),e.deleteTexture(r),e.deleteFramebuffer(n),e.bindTexture(e.TEXTURE_2D,null),e.bindFramebuffer(e.FRAMEBUFFER,null),i===e.FRAMEBUFFER_COMPLETE},c=[],l={},u=[],i=function(){var i,r,o,a,s;i=document.createElement("canvas"),r=null;try{null===(r=i.getContext("experimental-webgl"))&&(r=i.getContext("webgl"))}catch(e){}if(null!=r&&(null===r.getExtension("OES_texture_float")?n(r,r.FLOAT)?(s=!0,c.push("OES_texture_float"),l.OES_texture_float={shim:!0}):(s=!1,u.push("OES_texture_float")):n(r,r.FLOAT)?(s=!0,c.push("OES_texture_float")):(s=!1,u.push("OES_texture_float")),s&&(null===r.getExtension("WEBGL_color_buffer_float")?e(r,r.FLOAT)?(c.push("WEBGL_color_buffer_float"),l.WEBGL_color_buffer_float={shim:!0,RGBA32F_EXT:34836,RGB32F_EXT:34837,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863}):u.push("WEBGL_color_buffer_float"):e(r,r.FLOAT)?c.push("WEBGL_color_buffer_float"):u.push("WEBGL_color_buffer_float"),null===r.getExtension("OES_texture_float_linear")?t(r,r.FLOAT)?(c.push("OES_texture_float_linear"),l.OES_texture_float_linear={shim:!0}):u.push("OES_texture_float_linear"):t(r,r.FLOAT)?c.push("OES_texture_float_linear"):u.push("OES_texture_float_linear")),null===(o=r.getExtension("OES_texture_half_float"))?n(r,36193)?(a=!0,c.push("OES_texture_half_float"),o=l.OES_texture_half_float={HALF_FLOAT_OES:36193,shim:!0}):(a=!1,u.push("OES_texture_half_float")):n(r,o.HALF_FLOAT_OES)?(a=!0,c.push("OES_texture_half_float")):(a=!1,u.push("OES_texture_half_float")),a))return null===r.getExtension("EXT_color_buffer_half_float")?e(r,o.HALF_FLOAT_OES)?(c.push("EXT_color_buffer_half_float"),l.EXT_color_buffer_half_float={shim:!0,RGBA16F_EXT:34842,RGB16F_EXT:34843,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:33297,UNSIGNED_NORMALIZED_EXT:35863}):u.push("EXT_color_buffer_half_float"):e(r,o.HALF_FLOAT_OES)?c.push("EXT_color_buffer_half_float"):u.push("EXT_color_buffer_half_float"),null===r.getExtension("OES_texture_half_float_linear")?t(r,o.HALF_FLOAT_OES)?(c.push("OES_texture_half_float_linear"),l.OES_texture_half_float_linear={shim:!0}):u.push("OES_texture_half_float_linear"):t(r,o.HALF_FLOAT_OES)?c.push("OES_texture_half_float_linear"):u.push("OES_texture_half_float_linear")},null!=window.WebGLRenderingContext){for(i(),d={},h=0,p=u.length;h<p;h++)s=u[h],d[s]=!0;o=WebGLRenderingContext.prototype.getExtension,WebGLRenderingContext.prototype.getExtension=function(e){var t;return void 0===(t=l[e])?d[e]?null:o.call(this,e):t},a=WebGLRenderingContext.prototype.getSupportedExtensions,WebGLRenderingContext.prototype.getSupportedExtensions=function(){var e,t,i,n,r,o,s;for(t=[],n=0,o=(i=a.call(this)).length;n<o;n++)e=i[n],void 0===d[e]&&t.push(e);for(r=0,s=c.length;r<s;r++)e=c[r],bs.call(t,e)<0&&t.push(e);return t},WebGLRenderingContext.prototype.getFloatExtension=function(e){var t,i,n,r,o,a,c,l,u,d,h,p,f,m,g,_,y,C,v,T,S,A,b,E,x,P;for(null==e.prefer&&(e.prefer=["half"]),null==e.require&&(e.require=[]),null==e.throws&&(e.throws=!0),m=this.getExtension("OES_texture_float"),a=this.getExtension("OES_texture_half_float"),p=this.getExtension("WEBGL_color_buffer_float"),r=this.getExtension("EXT_color_buffer_half_float"),f=this.getExtension("OES_texture_float_linear"),o=this.getExtension("OES_texture_half_float_linear"),h={texture:null!==m,filterable:null!==f,renderable:null!==p,score:0,precision:"single",half:!1,single:!0,type:this.FLOAT},n={texture:null!==a,filterable:null!==o,renderable:null!==r,score:0,precision:"half",half:!0,single:!1,type:null!=(E=null!=a?a.HALF_FLOAT_OES:void 0)?E:null},i=[],h.texture&&i.push(h),n.texture&&i.push(n),d=[],_=0,v=i.length;_<v;_++){for(t=i[_],g=!0,y=0,T=(x=e.require).length;y<T;y++)!1===t[s=x[y]]&&(g=!1);g&&d.push(t)}for(C=0,S=d.length;C<S;C++)for(t=d[C],c=b=0,A=(P=e.prefer).length;b<A;c=++b)u=P[c],l=Math.pow(2,e.prefer.length-c-1),t[u]&&(t.score+=l);if(d.sort((function(e,t){return e.score===t.score?0:e.score<t.score?1:e.score>t.score?-1:void 0})),0===d.length){if(e.throws)throw"No floating point texture support that is "+e.require.join(", ");return null}return{filterable:(d=d[0]).filterable,renderable:d.renderable,type:d.type,precision:d.precision}}}}();var Ps=function(){function e(e,t){var i,n;this.gl=e,n=t.vertex,i=t.fragment,this.program=this.gl.createProgram(),this.vs=this.gl.createShader(this.gl.VERTEX_SHADER),this.fs=this.gl.createShader(this.gl.FRAGMENT_SHADER),this.gl.attachShader(this.program,this.vs),this.gl.attachShader(this.program,this.fs),this.compileShader(this.vs,n),this.compileShader(this.fs,i),this.link(),this.value_cache={},this.uniform_cache={},this.attribCache={}}return e.prototype.attribLocation=function(e){var t=this.attribCache[e];return void 0===t&&(t=this.attribCache[e]=this.gl.getAttribLocation(this.program,e)),t},e.prototype.compileShader=function(e,t){if(this.gl.shaderSource(e,t),this.gl.compileShader(e),!this.gl.getShaderParameter(e,this.gl.COMPILE_STATUS))throw"Shader Compile Error: "+this.gl.getShaderInfoLog(e)},e.prototype.link=function(){if(this.gl.linkProgram(this.program),!this.gl.getProgramParameter(this.program,this.gl.LINK_STATUS))throw"Shader Link Error: "+this.gl.getProgramInfoLog(this.program)},e.prototype.use=function(){return this.gl.useProgram(this.program),this},e.prototype.uniformLoc=function(e){var t=this.uniform_cache[e];return void 0===t&&(t=this.uniform_cache[e]=this.gl.getUniformLocation(this.program,e)),t},e.prototype.int=function(e,t){var i;return this.value_cache[e]!==t&&(this.value_cache[e]=t,(i=this.uniformLoc(e))&&this.gl.uniform1i(i,t)),this},e.prototype.vec2=function(e,t,i){var n;return(n=this.uniformLoc(e))&&this.gl.uniform2f(n,t,i),this},e.prototype.float=function(e,t){var i;return this.value_cache[e]!==t&&(this.value_cache[e]=t,(i=this.uniformLoc(e))&&this.gl.uniform1f(i,t)),this},e}(),Ds=function(){function e(e){this.gl=e,this.buffer=this.gl.createFramebuffer()}return e.prototype.destroy=function(){return this.gl.deleteFRamebuffer(this.buffer)},e.prototype.bind=function(){return this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,this.buffer),this},e.prototype.unbind=function(){return this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,null),this},e.prototype.check=function(){switch(this.gl.checkFramebufferStatus(this.gl.FRAMEBUFFER)){case this.gl.FRAMEBUFFER_UNSUPPORTED:throw"Framebuffer is unsupported";case this.gl.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:throw"Framebuffer incomplete attachment";case this.gl.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:throw"Framebuffer incomplete dimensions";case this.gl.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:throw"Framebuffer incomplete missing attachment"}return this},e.prototype.color=function(e){return this.gl.framebufferTexture2D(this.gl.FRAMEBUFFER,this.gl.COLOR_ATTACHMENT0,e.target,e.handle,0),this.check(),this},e.prototype.depth=function(e){return this.gl.framebufferRenderbuffer(this.gl.FRAMEBUFFER,this.gl.DEPTH_ATTACHMENT,this.gl.RENDERBUFFER,e.id),this.check(),this},e.prototype.destroy=function(){return this.gl.deleteFramebuffer(this.buffer)},e}(),ws=function(){function e(e,t){var i,n;switch(this.gl=e,null==t&&(t={}),this.channels=this.gl[(null!=(i=t.channels)?i:"rgba").toUpperCase()],"number"==typeof t.type?this.type=t.type:this.type=this.gl[(null!=(n=t.type)?n:"unsigned_byte").toUpperCase()],this.channels){case this.gl.RGBA:this.chancount=4;break;case this.gl.RGB:this.chancount=3;break;case this.gl.LUMINANCE_ALPHA:this.chancount=2;break;default:this.chancount=1}this.target=this.gl.TEXTURE_2D,this.handle=this.gl.createTexture()}return e.prototype.destroy=function(){return this.gl.deleteTexture(this.handle)},e.prototype.bind=function(e){if(null==e&&(e=0),e>15)throw"Texture unit too large: "+e;return this.gl.activeTexture(this.gl.TEXTURE0+e),this.gl.bindTexture(this.target,this.handle),this},e.prototype.setSize=function(e,t){return this.width=e,this.height=t,this.gl.texImage2D(this.target,0,this.channels,this.width,this.height,0,this.channels,this.type,null),this},e.prototype.upload=function(e){return this.width=e.width,this.height=e.height,this.gl.texImage2D(this.target,0,this.channels,this.channels,this.type,e),this},e.prototype.linear=function(){return this.gl.texParameteri(this.target,this.gl.TEXTURE_MAG_FILTER,this.gl.LINEAR),this.gl.texParameteri(this.target,this.gl.TEXTURE_MIN_FILTER,this.gl.LINEAR),this},e.prototype.nearest=function(){return this.gl.texParameteri(this.target,this.gl.TEXTURE_MAG_FILTER,this.gl.NEAREST),this.gl.texParameteri(this.target,this.gl.TEXTURE_MIN_FILTER,this.gl.NEAREST),this},e.prototype.clampToEdge=function(){return this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this},e.prototype.repeat=function(){return this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_S,this.gl.REPEAT),this.gl.texParameteri(this.target,this.gl.TEXTURE_WRAP_T,this.gl.REPEAT),this},e}(),Ms=function(){function e(e,t,i){var n;this.gl=e,this.width=t,this.height=i,n=this.gl.getFloatExtension({require:["renderable"]}),this.texture=new ws(this.gl,{type:n.type}).bind(0).setSize(this.width,this.height).nearest().clampToEdge(),this.fbo=new Ds(this.gl).bind().color(this.texture).unbind()}return e.prototype.use=function(){return this.fbo.bind()},e.prototype.bind=function(e){return this.texture.bind(e)},e.prototype.end=function(){return this.fbo.unbind()},e.prototype.resize=function(e,t){return this.width=e,this.height=t,this.texture.bind(0).setSize(this.width,this.height)},e}(),Is=function(){function e(e,t,i,n){var r,o,a;for(this.heatmap=e,this.gl=t,this.width=i,this.height=n,this.shader=new Ps(this.gl,{vertex:"attribute vec4 position, intensity;\nvarying vec2 off, dim;\nvarying float vIntensity;\nuniform vec2 viewport;\n\nvoid main(){\n dim = abs(position.zw);\n off = position.zw;\n vec2 pos = position.xy + position.zw;\n vIntensity = intensity.x;\n gl_Position = vec4((pos/viewport)*2.0-1.0, 0.0, 1.0);\n}",fragment:"#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp int;\n precision highp float;\n#else\n precision mediump int;\n precision mediump float;\n#endif\nvarying vec2 off, dim;\nvarying float vIntensity;\nvoid main(){\n float falloff = (1.0 - smoothstep(0.0, 1.0, length(off/dim)));\n float intensity = falloff*vIntensity;\n gl_FragColor = vec4(intensity);\n}"}),this.clampShader=new Ps(this.gl,{vertex:Es,fragment:xs+"uniform float low, high;\nvoid main(){\n gl_FragColor = vec4(clamp(texture2D(source, texcoord).rgb, low, high), 1.0);\n}"}),this.multiplyShader=new Ps(this.gl,{vertex:Es,fragment:xs+"uniform float value;\nvoid main(){\n gl_FragColor = vec4(texture2D(source, texcoord).rgb*value, 1.0);\n}"}),this.blurShader=new Ps(this.gl,{vertex:Es,fragment:xs+"uniform vec2 viewport;\nvoid main(){\n vec4 result = vec4(0.0);\n for(int x=-1; x<=1; x++){\n for(int y=-1; y<=1; y++){\n vec2 off = vec2(x,y)/viewport;\n //float factor = 1.0 - smoothstep(0.0, 1.5, length(off));\n float factor = 1.0;\n result += vec4(texture2D(source, texcoord+off).rgb*factor, factor);\n }\n }\n gl_FragColor = vec4(result.rgb/result.w, 1.0);\n}"}),this.nodeBack=new Ms(this.gl,this.width,this.height),this.nodeFront=new Ms(this.gl,this.width,this.height),this.vertexBuffer=this.gl.createBuffer(),this.vertexSize=8,this.maxPointCount=10240,this.vertexBufferData=new Float32Array(this.maxPointCount*this.vertexSize*6),this.vertexBufferViews=[],r=o=0,a=this.maxPointCount;0<=a?o<a:o>a;r=0<=a?++o:--o)this.vertexBufferViews.push(new Float32Array(this.vertexBufferData.buffer,0,r*this.vertexSize*6));this.bufferIndex=0,this.pointCount=0}return e.prototype.resize=function(e,t){return this.width=e,this.height=t,this.nodeBack.resize(this.width,this.height),this.nodeFront.resize(this.width,this.height)},e.prototype.update=function(){var e,t;if(this.pointCount>0)return this.gl.enable(this.gl.BLEND),this.nodeFront.use(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.vertexBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.vertexBufferViews[this.pointCount],this.gl.STREAM_DRAW),t=this.shader.attribLocation("position"),e=this.shader.attribLocation("intensity"),this.gl.enableVertexAttribArray(1),this.gl.vertexAttribPointer(t,4,this.gl.FLOAT,!1,32,0),this.gl.vertexAttribPointer(e,4,this.gl.FLOAT,!1,32,16),this.shader.use().vec2("viewport",this.width,this.height),this.gl.drawArrays(this.gl.TRIANGLES,0,6*this.pointCount),this.gl.disableVertexAttribArray(1),this.pointCount=0,this.bufferIndex=0,this.nodeFront.end(),this.gl.disable(this.gl.BLEND)},e.prototype.clear=function(){return this.nodeFront.use(),this.gl.clearColor(0,0,0,1),this.gl.clear(this.gl.COLOR_BUFFER_BIT),this.nodeFront.end()},e.prototype.clamp=function(e,t){return this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.heatmap.quad),this.gl.vertexAttribPointer(0,4,this.gl.FLOAT,!1,0,0),this.nodeFront.bind(0),this.nodeBack.use(),this.clampShader.use().int("source",0).float("low",e).float("high",t),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.nodeBack.end(),this.swap()},e.prototype.multiply=function(e){return this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.heatmap.quad),this.gl.vertexAttribPointer(0,4,this.gl.FLOAT,!1,0,0),this.nodeFront.bind(0),this.nodeBack.use(),this.multiplyShader.use().int("source",0).float("value",e),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.nodeBack.end(),this.swap()},e.prototype.blur=function(){return this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.heatmap.quad),this.gl.vertexAttribPointer(0,4,this.gl.FLOAT,!1,0,0),this.nodeFront.bind(0),this.nodeBack.use(),this.blurShader.use().int("source",0).vec2("viewport",this.width,this.height),this.gl.drawArrays(this.gl.TRIANGLES,0,6),this.nodeBack.end(),this.swap()},e.prototype.swap=function(){var e=this.nodeFront;return this.nodeFront=this.nodeBack,this.nodeBack=e},e.prototype.addVertex=function(e,t,i,n,r){return this.vertexBufferData[this.bufferIndex++]=e,this.vertexBufferData[this.bufferIndex++]=t,this.vertexBufferData[this.bufferIndex++]=i,this.vertexBufferData[this.bufferIndex++]=n,this.vertexBufferData[this.bufferIndex++]=r,this.vertexBufferData[this.bufferIndex++]=r,this.vertexBufferData[this.bufferIndex++]=r,this.vertexBufferData[this.bufferIndex++]=r},e.prototype.addPoint=function(e,t,i,n){var r;return null==i&&(i=50),null==n&&(n=.2),this.pointCount>=this.maxPointCount-1&&this.update(),t=this.height-t,r=i/2,this.addVertex(e,t,-r,-r,n),this.addVertex(e,t,+r,-r,n),this.addVertex(e,t,-r,+r,n),this.addVertex(e,t,-r,+r,n),this.addVertex(e,t,+r,-r,n),this.addVertex(e,t,+r,+r,n),this.pointCount+=1},e}(),Rs=function(){function e(e){var t,i,n,r,o,a,s,c,l,u,d,h;d=null!=e?e:{},this.canvas=d.canvas,this.width=d.width,this.height=d.height,s=d.intensityToAlpha,o=d.gradientTexture,i=d.alphaRange,this.canvas||(this.canvas=document.createElement("canvas"));try{if(this.gl=this.canvas.getContext("experimental-webgl",{depth:!1,antialias:!1}),null===this.gl&&(this.gl=this.canvas.getContext("webgl",{depth:!1,antialias:!1}),null===this.gl))throw"WebGL not supported"}catch(e){throw e,"WebGL not supported"}null!=window.WebGLDebugUtils&&(this.gl=window.WebGLDebugUtils.makeDebugContext(this.gl,(function(e,t,i){throw window.WebGLDebugUtils.glEnumToString(e)+" was caused by call to: "+t}))),this.gl.enableVertexAttribArray(0),this.gl.blendFunc(this.gl.ONE,this.gl.ONE),o?(u=this.gradientTexture=new ws(this.gl,{channels:"rgba"}).bind(0).setSize(2,2).nearest().clampToEdge(),"string"==typeof o?((a=new Image).onload=function(){return u.bind().upload(a)},a.src=o):o.width>0&&o.height>0?u.upload(o):o.onload=function(){return u.upload(o)},r="uniform sampler2D gradientTexture;\nvec3 getColor(float intensity){\n return texture2D(gradientTexture, vec2(intensity, 0.0)).rgb;\n}"):(u=null,r="vec3 getColor(float intensity){\n vec3 blue = vec3(0.0, 0.0, 1.0);\n vec3 cyan = vec3(0.0, 1.0, 1.0);\n vec3 green = vec3(0.0, 1.0, 0.0);\n vec3 yellow = vec3(1.0, 1.0, 0.0);\n vec3 red = vec3(1.0, 0.0, 0.0);\n\n vec3 color = (\n fade(-0.25, 0.25, intensity)*blue +\n fade(0.0, 0.5, intensity)*cyan +\n fade(0.25, 0.75, intensity)*green +\n fade(0.5, 1.0, intensity)*yellow +\n smoothstep(0.75, 1.0, intensity)*red\n );\n return color;\n}"),null==s&&(s=!0),s?(n=(h=null!=i?i:[0,1])[0],t=h[1],c="vec4 alphaFun(vec3 color, float intensity){\n float alpha = smoothstep("+n.toFixed(8)+", "+t.toFixed(8)+", intensity);\n return vec4(color*alpha, alpha);\n}"):c="vec4 alphaFun(vec3 color, float intensity){\n return vec4(color, 1.0);\n}",this.shader=new Ps(this.gl,{vertex:Es,fragment:xs+"float linstep(float low, float high, float value){\n return clamp((value-low)/(high-low), 0.0, 1.0);\n}\n\nfloat fade(float low, float high, float value){\n float mid = (low+high)*0.5;\n float range = (high-low)*0.5;\n float x = 1.0 - clamp(abs(mid-value)/range, 0.0, 1.0);\n return smoothstep(0.0, 1.0, x);\n}\n\n"+r+"\n"+c+"\n\nvoid main(){\n float intensity = smoothstep(0.0, 1.0, texture2D(source, texcoord).r);\n vec3 color = getColor(intensity);\n gl_FragColor = alphaFun(color, intensity);\n}"}),null==this.width&&(this.width=this.canvas.offsetWidth||2),null==this.height&&(this.height=this.canvas.offsetHeight||2),this.canvas.width=this.width,this.canvas.height=this.height,this.gl.viewport(0,0,this.width,this.height),this.quad=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.quad),l=new Float32Array([-1,-1,0,1,1,-1,0,1,-1,1,0,1,-1,1,0,1,1,-1,0,1,1,1,0,1]),this.gl.bufferData(this.gl.ARRAY_BUFFER,l,this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,null),this.heights=new Is(this,this.gl,this.width,this.height)}return e.prototype.adjustSize=function(){var e,t;if(t=this.canvas.offsetWidth||2,e=this.canvas.offsetHeight||2,this.width!==t||this.height!==e)return this.gl.viewport(0,0,t,e),this.canvas.width=t,this.canvas.height=e,this.width=t,this.height=e,this.heights.resize(this.width,this.height)},e.prototype.display=function(){return this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.quad),this.gl.vertexAttribPointer(0,4,this.gl.FLOAT,!1,0,0),this.heights.nodeFront.bind(0),this.gradientTexture&&this.gradientTexture.bind(1),this.shader.use().int("source",0).int("gradientTexture",1),this.gl.drawArrays(this.gl.TRIANGLES,0,6)},e.prototype.update=function(){return this.heights.update()},e.prototype.clear=function(){return this.heights.clear()},e.prototype.clamp=function(e,t){return null==e&&(e=0),null==t&&(t=1),this.heights.clamp(e,t)},e.prototype.multiply=function(e){return null==e&&(e=.95),this.heights.multiply(e)},e.prototype.blur=function(){return this.heights.blur()},e.prototype.addPoint=function(e,t,i,n){return this.heights.addPoint(e,t,i,n)},e.prototype.addPoints=function(e){var t,i,n,r;for(r=[],i=0,n=e.length;i<n;i++)t=e[i],r.push(this.addPoint(t.x,t.y,t.size,t.intensity));return r},e}();function Os(e){return new Rs(e)}function Ls(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function Bs(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(i),!0).forEach((function(t){X(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):Ls(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function Fs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var Ns=new Cesium.WebMercatorProjection,Vs={radius:30,height:0,gradient:void 0,useGround:!1,classificationType:2},ks=function(e){u(i,e);var t=Fs(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this,r))._options=Bs(Bs({},Vs),r),e._nativeObjCesium=new Cesium.PrimitiveCollection,e._isGround=e._options.useGround,e._canvas=document.createElement("canvas"),e._canvas.setAttribute("id",e.id),e._heat=void 0,e._scale=1,e._points=[],e._bounds=new Cesium.Rectangle,e._boundsInMeter=void 0,e._primitive=e._nativeObjCesium.add(e._isGround?new Cesium.GroundPrimitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}}),classificationType:e._options.classificationType}):new Cesium.Primitive({geometryInstances:new Cesium.GeometryInstance({geometry:{}})})),e._state=Me.INITIALIZED,e}return s(i,[{key:"type",get:function(){return Ki.getLayerType("heat-map")}},{key:"_addedHook",value:function(){this._canvas.style.cssText="\n visibility:hidden;\n width:".concat(this._viewer.canvas.width,"px;\n height:").concat(this._viewer.canvas.height,"px;\n "),this._viewer.layerContainer.appendChild(this._canvas),this._points&&this._points.length&&(this._heat=Os({canvas:this._canvas,gradientTexture:this._createGradientTexture()}),this._scale=Math.min(Math.abs(this._boundsInMeter.west-this._boundsInMeter.east)/this._viewer.canvas.width,Math.abs(this._boundsInMeter.north-this._boundsInMeter.south)/this._viewer.canvas.height),this._heat.blur(),this._heat.addPoints(this._parsePoints(this._points)),this._update())}},{key:"_createGradientTexture",value:function(){if(this._options.gradient){var e=document.createElement("canvas");e.width=200,e.height=10;var t=e.getContext("2d"),i=t.createLinearGradient(0,0,200,0);for(var n in this._options.gradient)i.addColorStop(+n,this._options.gradient[n]);return t.fillStyle=i,t.fillRect(0,0,200,10),e}}},{key:"_parsePoints",value:function(e){var t=this;return e.map((function(e){var i=Ns.project(Cesium.Cartographic.fromDegrees(e.lng,e.lat));return{x:(i.x-t._boundsInMeter.west)/t._scale,y:(i.y-t._boundsInMeter.south)/t._scale,size:t._options.radius,intensity:e.value||Math.random()}}))}},{key:"_computeBounds",value:function(){Cesium.Rectangle.fromCartographicArray(this._points.map((function(e){return Cesium.Cartographic.fromDegrees(e.lng,e.lat)})),this._bounds)}},{key:"_computeBoundsInMeter",value:function(){var e=Ns.project(Cesium.Rectangle.southwest(this._bounds)),t=Ns.project(Cesium.Rectangle.northeast(this._bounds));this._boundsInMeter=new Cesium.Rectangle(e.x,e.y,t.x,t.y)}},{key:"_update",value:function(){if(!this._points||!this._points.length)return!1;this._heat.adjustSize(),this._heat.update(),this._heat.display(),this._primitive&&this._primitive.geometryInstances&&(this._primitive.geometryInstances.geometry=new Cesium.RectangleGeometry({rectangle:this._bounds,height:this._options.height})),this._primitive.appearance=new Cesium.MaterialAppearance({material:new Cesium.Material({fabric:{type:"Heat-Image",uniforms:{image:this._canvas},source:"\n uniform sampler2D image;\n czm_material czm_getMaterial(czm_materialInput materialInput){\n czm_material material = czm_getDefaultMaterial(materialInput);\n vec2 st = materialInput.st;\n vec4 colorImage = texture2D(image,st);\n if(colorImage.rgb == vec3(1.0) || colorImage.rgb == vec3(0.0)){\n discard;\n }\n material.diffuse = colorImage.rgb;\n material.alpha = colorImage.a;\n return material;\n }\n "},translucent:function(e){return!0}}),flat:!0})}},{key:"setPoints",value:function(e){return this._points=e,this._computeBounds(),this._computeBoundsInMeter(),this._viewer&&(this._scale=Math.min(Math.abs(this._boundsInMeter.west-this._boundsInMeter.east)/this._viewer.canvas.width,Math.abs(this._boundsInMeter.north-this._boundsInMeter.south)/this._viewer.canvas.height),this._heat=Os({canvas:this._canvas,gradientTexture:this._createGradientTexture()})),this._heat&&(this._heat.blur(),this._heat.addPoints(this._parsePoints(this._points)),this._update()),this}},{key:"clear",value:function(){return this._heat.clear(),this._points=[],this._state=Me.CLEARED,this}}]),i}(Ki);Ki.registerType("heat-map");const $s=ks;var Us={defaults:{useEntitiesIfAvailable:!0,minCanvasSize:700,maxCanvasSize:2e3,radiusFactor:60,spacingFactor:1.5,maxOpacity:.8,minOpacity:.1,blur:.85,gradient:{".3":"blue",".65":"yellow",".8":"orange",".95":"red"},backgroundColor:"rgba(0,0,0,0)"},create:function(e,t,i){return new zs(e,t,i)},_getContainer:function(e,t,i){var n=document.createElement("div");return i&&n.setAttribute("id",i),n.setAttribute("style","width: "+e+"px; height: "+t+"px; margin: 0px; display: none;"),document.body.appendChild(n),n},_getImageryProvider:function(e){var t=e._heatmap.getDataURL(),i=new Cesium.SingleTileImageryProvider({url:t,rectangle:e._rectangle});return i._tilingScheme=new Cesium.WebMercatorTilingScheme({rectangleSouthwestInMeters:new Cesium.Cartesian2(e._mbounds.west,e._mbounds.south),rectangleNortheastInMeters:new Cesium.Cartesian2(e._mbounds.east,e._mbounds.north)}),i},_getID:function(e){for(var t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=0;n<(e||8);n++)t+=i.charAt(Math.floor(62*Math.random()));return t}},Gs=new Cesium.WebMercatorProjection;function zs(e,t,i){if(!t)return null;i||(i={}),this._cesium=e,this._options=i,this._id=Us._getID(),this._options.gradient=this._options.gradient?this._options.gradient:Us.defaults.gradient,this._options.maxOpacity=this._options.maxOpacity?this._options.maxOpacity:Us.defaults.maxOpacity,this._options.minOpacity=this._options.minOpacity?this._options.minOpacity:Us.defaults.minOpacity,this._options.blur=this._options.blur?this._options.blur:Us.defaults.blur,this._options.backgroundColor=this._options.backgroundColor?this._options.backgroundColor:Us.defaults.backgroundColor,this._mbounds=Us.wgs84ToMercatorBB(t),this._setWidthAndHeight(this._mbounds),this._options.radius=Math.round(this._options.radius?this._options.radius:this.width>this.height?this.width/Us.defaults.radiusFactor:this.height/Us.defaults.radiusFactor),this._spacing=this._options.radius*Us.defaults.spacingFactor,this._xoffset=this._mbounds.west,this._yoffset=this._mbounds.south,this.width=Math.round(this.width+2*this._spacing),this.height=Math.round(this.height+2*this._spacing),this._mbounds.west-=this._spacing*this._factor,this._mbounds.east+=this._spacing*this._factor,this._mbounds.south-=this._spacing*this._factor,this._mbounds.north+=this._spacing*this._factor,this.bounds=Us.mercatorToWgs84BB(this._mbounds),this._rectangle=Cesium.Rectangle.fromDegrees(this.bounds.west,this.bounds.south,this.bounds.east,this.bounds.north),this._container=Us._getContainer(this.width,this.height,this._id),this._options.container=this._container,this._heatmap=h337.create(this._options),this._container.children[0].setAttribute("id",this._id+"-hm"),this._newEntity=null,this._oldEntity=null}Us.wgs84ToMercator=function(e){var t=Gs.project(Cesium.Cartographic.fromDegrees(e.x,e.y));return{x:t.x,y:t.y}},Us.wgs84ToMercatorBB=function(e){var t=Gs.project(Cesium.Cartographic.fromDegrees(e.west,e.south)),i=Gs.project(Cesium.Cartographic.fromDegrees(e.east,e.north));return{north:i.y,east:i.x,south:t.y,west:t.x}},Us.mercatorToWgs84=function(e){var t=Gs.unproject(new Cesium.Cartesian3(e.x,e.y));return{x:t.longitude,y:t.latitude}},Us.mercatorToWgs84BB=function(e){var t=Gs.unproject(new Cesium.Cartesian3(e.west,e.south)),i=Gs.unproject(new Cesium.Cartesian3(e.east,e.north));return{north:this.rad2deg(i.latitude),east:this.rad2deg(i.longitude),south:this.rad2deg(t.latitude),west:this.rad2deg(t.longitude)}},Us.deg2rad=function(e){return e*(Math.PI/180)},Us.rad2deg=function(e){return e/(Math.PI/180)},zs.prototype.wgs84PointToHeatmapPoint=function(e){return this.mercatorPointToHeatmapPoint(Us.wgs84ToMercator(e))},zs.prototype.mercatorPointToHeatmapPoint=function(e){var t={};return t.x=Math.round((e.x-this._xoffset)/this._factor+this._spacing),t.y=Math.round((e.y-this._yoffset)/this._factor+this._spacing),t.y=this.height-t.y,t},zs.prototype._setWidthAndHeight=function(e){this.width=e.east>0&&e.west<0?e.east+Math.abs(e.west):Math.abs(e.east-e.west),this.height=e.north>0&&e.south<0?e.north+Math.abs(e.south):Math.abs(e.north-e.south),this._factor=1,this.width>this.height&&this.width>Us.defaults.maxCanvasSize?(this._factor=this.width/Us.defaults.maxCanvasSize,this.height/this._factor<Us.defaults.minCanvasSize&&(this._factor=this.height/Us.defaults.minCanvasSize)):this.height>this.width&&this.height>Us.defaults.maxCanvasSize?(this._factor=this.height/Us.defaults.maxCanvasSize,this.width/this._factor<Us.defaults.minCanvasSize&&(this._factor=this.width/Us.defaults.minCanvasSize)):this.width<this.height&&this.width<Us.defaults.minCanvasSize?(this._factor=this.width/Us.defaults.minCanvasSize,this.height/this._factor>Us.defaults.maxCanvasSize&&(this._factor=this.height/Us.defaults.maxCanvasSize)):this.height<this.width&&this.height<Us.defaults.minCanvasSize&&(this._factor=this.height/Us.defaults.minCanvasSize,this.width/this._factor>Us.defaults.maxCanvasSize&&(this._factor=this.width/Us.defaults.maxCanvasSize)),this.width=this.width/this._factor,this.height=this.height/this._factor},zs.prototype.setData=function(e,t,i){return!!(i&&i.length>0&&null!==e&&!1!==e&&null!==t&&!1!==t)&&(this._heatmap.setData({min:e,max:t,data:i}),this.updateLayer(),!0)},zs.prototype.setWGS84Data=function(e,t,i){if(i&&i.length>0&&null!==e&&!1!==e&&null!==t&&!1!==t){for(var n=[],r=0;r<i.length;r++){var o=i[r],a=this.wgs84PointToHeatmapPoint(o);(o.value||0===o.value)&&(a.value=o.value),n.push(a)}return this.setData(e,t,n)}return!1},zs.prototype.show=function(e){(this._oldEntity||this._newEntity)&&(this._oldEntity.show=e,this._newEntity.show=e)},zs.prototype.updateLayer=function(){var e=this;Us.defaults.useEntitiesIfAvailable&&this._cesium.entities?this._oldEntity?(this._newEntity=this._cesium.entities.add({show:!1,name:"heatEntities_ts",rectangle:{coordinates:this._rectangle,material:this._heatmap._renderer.canvas}}),setTimeout((function(){e._cesium.entities.remove(e._oldEntity),e._newEntity.show=!0,e._oldEntity=e._newEntity,e._cesium.entities._entities._array.forEach((function(t){"heatEntities_ts"==t.name&&t.id!==e._newEntity.id&&e._cesium.entities.remove(t)}))}),300)):(this._newEntity=this._cesium.entities.add({show:!0,rectangle:{coordinates:this._rectangle,material:this._heatmap._renderer.canvas}}),this._oldEntity=this._newEntity):(this._layer&&this._cesium.scene.imageryLayers.remove(this._layer),this._layer=this._cesium.scene.imageryLayers.addImageryProvider(Us._getImageryProvider(this)))};const Hs=Us;var Ws=i(797),js=i.n(Ws);const qs=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this._id=W.uuid(),this._viewer=void 0,this._nativeObjCesium=void 0,this._enable=!1,this._fogByDistance=t.fogByDistance||{near:20,nearValue:0,far:2e4,farValue:1},this._color=t.color||new Cesium.Color(0,0,0,.3),this._state=Me.INITIALIZED}return s(e,[{key:"type",get:function(){return"fog"}},{key:"enable",get:function(){return this._enable},set:function(e){this._enable=e,e&&this._viewer&&!this._nativeObjCesium&&this._createPostProcessStage(),this._nativeObjCesium&&(this._nativeObjCesium.enabled=e)}},{key:"fogByDistance",get:function(){return this._fogByDistance},set:function(e){var t,i,n,r;this._fogByDistance=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.fogByDistance=new Cesium.Cartesian4((null===(t=this._fogByDistance)||void 0===t?void 0:t.near)||10,(null===(i=this._fogByDistance)||void 0===i?void 0:i.nearValue)||0,(null===(n=this._fogByDistance)||void 0===n?void 0:n.far)||2e3,(null===(r=this._fogByDistance)||void 0===r?void 0:r.farValue)||1))}},{key:"color",get:function(){return this._color},set:function(e){this._color=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.fogColor=e)}},{key:"_createPostProcessStage",value:function(){var e,t,i,n;this._nativeObjCesium=new Cesium.PostProcessStage({name:this._id,fragmentShader:js(),uniforms:{fogByDistance:new Cesium.Cartesian4((null===(e=this._fogByDistance)||void 0===e?void 0:e.near)||10,(null===(t=this._fogByDistance)||void 0===t?void 0:t.nearValue)||0,(null===(i=this._fogByDistance)||void 0===i?void 0:i.far)||200,(null===(n=this._fogByDistance)||void 0===n?void 0:n.farValue)||1),fogColor:this._color}}),this._viewer.scene.postProcessStages.add(this._nativeObjCesium)}},{key:"addTo",value:function(e){return e?(this._viewer=e,this._state=Me.ADDED,this):this}}]),e}();var Xs=i(802),Ys=i.n(Xs);const Ks=function(){function e(){n(this,e),this._id=W.uuid(),this._viewer=void 0,this._nativeObjCesium=void 0,this._enable=!1,this._speed=10,this._mixNum=.5,this._state=Me.INITIALIZED}return s(e,[{key:"type",get:function(){return"rain"}},{key:"enable",get:function(){return this._enable},set:function(e){return this._enable=e,e&&this._viewer&&!this._nativeObjCesium&&this._createPostProcessStage(),this._nativeObjCesium&&(this._nativeObjCesium.enabled=e),this}},{key:"speed",get:function(){return this._speed},set:function(e){this._speed=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.speed=e)}},{key:"mixNum",get:function(){return this._mixNum},set:function(e){this._mixNum=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.mixNum=e)}},{key:"_createPostProcessStage",value:function(){this._nativeObjCesium=new Cesium.PostProcessStage({name:this._id,fragmentShader:Ys(),uniforms:{speed:this._speed,mixNum:this._mixNum}}),this._viewer.scene.postProcessStages.add(this._nativeObjCesium)}},{key:"addTo",value:function(e){return e?(this._viewer=e,this._state=Me.ADDED,this):this}}]),e}();var Js=i(87),Qs=i.n(Js);const Zs=function(){function e(){n(this,e),this._id=W.uuid(),this._viewer=void 0,this._nativeObjCesium=void 0,this._enable=!1,this._speed=10,this._state=Me.INITIALIZED}return s(e,[{key:"type",get:function(){return"snow"}},{key:"enable",get:function(){return this._enable},set:function(e){this._enable=e,e&&this._viewer&&!this._nativeObjCesium&&this._createPostProcessStage(),this._nativeObjCesium&&(this._nativeObjCesium.enabled=e)}},{key:"speed",get:function(){return this._speed},set:function(e){this._speed=e,this._nativeObjCesium&&(this._nativeObjCesium.uniforms.speed=e)}},{key:"_createPostProcessStage",value:function(){this._nativeObjCesium=new Cesium.PostProcessStage({name:this._id,fragmentShader:Qs(),uniforms:{speed:this._speed}}),this._viewer.scene.postProcessStages.add(this._nativeObjCesium)}},{key:"addTo",value:function(e){return e?(this._viewer=e,this._state=Me.ADDED,this):this}}]),e}();const ec=function(){function e(t){n(this,e),this._id=W.uuid(),this._viewer=void 0,this._nativeObjCesium=void 0,this._rotateAmount=.04,this._enable=!1,this._heading=0,this._state=Me.INITIALIZED}return s(e,[{key:"type",get:function(){return"cloud"}},{key:"enable",get:function(){return this._enable},set:function(e){!this._viewer.scene.mode!==Cesium.SceneMode.SCENE3D&&(this._enable=this._nativeObjCesium.show=e,this._enable?this._viewer.scene.postUpdate.addEventListener(this._onRotate,this):this._viewer.scene.postUpdate.removeEventListener(this._onRotate,this))}},{key:"rotateAmount",get:function(){return this._rotateAmount},set:function(e){this._rotateAmount=e}},{key:"_onRotate",value:function(e,t){0!==this._rotateAmount&&(this._heading+=this._rotateAmount,(this._heading>=360||this._heading<=-360)&&(this._heading=0),this._nativeObjCesium.modelMatrix=Cesium.Transforms.headingPitchRollToFixedFrame(new Cesium.Cartesian3,new Cesium.HeadingPitchRoll(Cesium.Math.toRadians(this._heading),0,0)))}},{key:"_createPrimitive",value:function(){this._nativeObjCesium=new Cesium.Primitive({appearance:new Cesium.EllipsoidSurfaceAppearance({material:new Cesium.Material({fabric:{type:"Image",uniforms:{color:new Cesium.Color(1,1,1,1),image:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABIAAAAAQAAAEgAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAgCgAwAEAAAAAQAAAQAAAAAA/+0AOFBob3Rvc2hvcCAzLjAAOEJJTQQEAAAAAAAAOEJJTQQlAAAAAAAQ1B2M2Y8AsgTpgAmY7PhCfv/AABEIAQACAAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo6ery8/T19vf4+fr/2wBDABQQEBkSGScXFycyJh8mMi4mJiYmLj41NTU1NT5EQUFBQUFBRERERERERERERERERERERERERERERERERERERET/2wBDARUZGSAcICYYGCY2JiAmNkQ2Kys2REREQjVCRERERERERERERERERERERERERERERERERERERERERERERERERET/3QAEACD/2gAMAwEAAhEDEQA/AOQHWp41JqFetXYBnigCWKHNWlts1ZtoQa1IrYGgDG+y0v2Q10AtBS/ZBQBz32Q0v2M10H2QUotRQBz32M0fYjXSfZlpv2daAOd+xGl+xGuhFv7UfZRQBz32I0n2Guj+ygUfZgelAHO/YSKPsNdF9mApPIWgDnvsNH2Gt824ppgFAGH9io+xe1bXkijyqAMX7FSfYa3ViFP8gUAc8bIim/YzXSCAGg2qmgDmjZmk+yGum+yLSGyBoA5n7IaPsprpPsIpDY+lAHO/ZDR9lNb5syKYbXHagDD+zGk+ymtz7NQbbFAGEbU0n2at77PUbW9AGJ9no+zmtZoAOtJ5Y7UAZJtiKQwVqhRSeWvUUAZf2c0fZzWn5RFL5VAGX5BpfsxrUEYHUVKIh1H60AY/2Wj7Ka2PJ7kCjyVPegDH+ymk+zmtsQA0fZx6UAYn2Y0otSa2zbD6U5bfHSgDD+xGj7JjvW4YPaomjHcUAZH2Sj7HWp5SnpSeVigDM+x0n2P61p7P85prBR1NAGabT0Bpv2NvStlPLHWpQ0YoAwDaMO1N8jHUGt92Vvu5/DFQtGSMbj+QoAxfK9KXyj6VqPa55yfxqu0JU0AUjDULpitPyt1QSx4oAynGKiPWrcq1UbrQB//Q5OPrWjbD0rNXrV+2ODzQB0Fpt71qxlRWFDOsYz/SrsV9k4oA2PMFNL1WWYHrxVhBnrQAvWkwP71SkIOvFUprkAHA5HI9xQBPlO7UfL2asU3xzjFWA7Y6/kKANESDsaeHNY5cg981YiuCgyRn1yaANBjxSK2BVAX2/t9BTvtB/wDrUAXS1KBmqQuD6VJ5xPQUAWjgVEcGoWkYioV470AWyMcU5Y81WDEdDinrMw4/nQBcWML1qTy1FVEkJqdeetADiBUbGpgnHFMdggzQBXZ2HQUqlz2NMa/UHA61Mt0VHP8AOgCOUygdMVAtwe5xj1q6bzPDLx+dRGSB+DjNAEP2k9TjH1pDcr7UktorDclU9pU4xQBd89T6UjSe4qqFY807JXrQBIXXrTDMD92oyxY4Uc9KtR6fIeT0PPFAFY7mpy2zt0BrUt7XHVaubQvAoAxBp8h6j86kGmt3IrVKL61FJGPX9aAM5tPI/iFN+wsO4q15bA/KQP1qVVbuaAKP2QL96nbEStAxr0JqrJAr+9AFTg8iklQYzTXAjGZG/AVUeeJz97HbgHFADwoPsfYmmOXXhWNPUgjAOfwxTXj2/MWoAarMP4jmnCVx0aoiSeagkl29aAL4mf8AiI+nSmmZiMYHPvWc10KkjlJGRmgC6i568mj7OD1aq3mkc5qzFtfnrigB4tkPekaCFOCTmp44xjJ6elUbpz5gZemOKAJTDGvQmmuAvBOM/wB6qpO7r1+tMLkcf/XNAFzmPuKeJTjA5rP3O3vUiqce5oAnEhBweanVVYdsVBHsjHzmka5RQQn60AEqhfu1UkOacXLHIyfWoJGPTBoAqTiqLdatzE96qN1oA//R5FTzVqJjVQdatRcHmgDRhkx1GfrWvAsDAE9frWPHU6NjkUAao2h9wbkdjT5bx1G5VyO9ZjTb8Fuo6H1qwl+FGH6Ede9AF6O8MwAYHB659KoxyvDIU6pnHNKsySdG/BhgfmKeUHbjvt6/lQBFd2gz5kfQ9u2aignK/I3I9K1IM4ODkVU1C1BTzUGCOuKAI2kz0pNmep/Wszzj3yacszH7uc0Aa6REc5z2qYLzycVnwymLJYEN2zxV60mZgWf86AJhge9CzA//AF6sIABz37VVlUSnaNy49uKALC4brUEzpGeepqpKuxvlJOe+eKjbcWy3WgCd5ttLHdAnA6+9VXJAxUKt5fJ70AbEc/PNTq5ZuvFYiXGPmqzFehU6/NQBuq/HWmMhbr26Vlx6gD1P51YXV4l4b8wc0AVZrJ0ffEMr97HepUvUHytnHtV1L2CfhGGT0HQ1l6hbtGxdR8p6+1AFw3Ct9wioXy3OQfwrNjmx0NTi6x1oAuQymNiM8dKe0qv1HuD3qibndwMU15COT19qAL2N/wB3rUhQ4GaopdP0HTvTzcM3JoAXkNnpWrZXwX5JCPY1jbsimbe/NAHW+enQEVHI5HT9K5fc3vTGmlU/KxH40Aa9xeiM/NwaptqGTjjFVDcyMMMxP1qE/NzQBsxXsXc4p8lxtwcZB7isIJnkH8KninMSlDye1AGvHcMzdOPUmntcJHwzY544qjHexhf9r0qG6vN5CbQ2Tx649aAI798sdpz1qsrBACnynj3zT7jZCcvz/s4/rVfaj5MWcenp+FAFppVXB3ZPtSecH6nmqWxh68dqmjbaO2fagCcnFVnUcnqacz5puRQBWzg5I6VYV8jil8sGhYyD7UASZBGD+ladsIgDt4PoTWYSEGe9OFyAeRzQBpXRdRmPn1rLmkY/eGOeK0baMsMliRS3sO6MhQM+poAzNpcZXk+gp4KhcqOehzVMSNE3UgirAui53Hr0OPSgCVnG3jP0zUHzH2qxHJGRgYB/2hTpYWRN4GV9VNAEUVsZDgdffitG3sVU4bBPcdaoWrsXBA4q/bS+U5Dkj60AXmtkQZxisu6ETE4IzWnM3mKQprmblHhJB/OgCndrtJqgxzVudy3WqTdaAP/S5AdasRnd1NQKeamVM9KALsT4HNWA4qgAR1qTPHNAFjzecdR600uXOKgIIG7HHvVmzSNn/fZ56AcfnQA5CV/wq5DdjZsfPHQjtVwaZARvw23jo1MudLjVcxnaR2JzQAqzmHDZypON1X45BKMjHI5Brmo7loyUbpnDA+1X47hYwXVuQePp/wDWoAdqGnJxJFwD17iobdobbc2dxHQ+9a1tOs44PUcisXUNNa2JkX7hPPtQBBLcNNIXbufXgVrWL4X5cc9cnJrCGBViCTY4OeDQBsfbliJBBI9c/wAqja/DHjp2/wDr1FPFGUG1vm6565z2FUfMK8UAannluePyqGWdzyQMetUvOPrSGfPWgCwZc1AzetMBJ6UhYJ9aAHEnv0pyR8ZpI2Lc4J/CrH75+injsBxigCCTd2FRyZxz1qT7a8XBA/GnQuZz8yrj+I45oAqFyOlatnqLqAJfmU8epFWINMtQu5mLZ6AU59HA+a3bBHO1un50AVr2AKPOi5U8kDt71R80d6svPJA5SQYzwyn3qrNAV+ZOUP6UAWU2u+3OBj8ePSkdlDfKCB6E5qjvOcg804zEnNAGmG9+varcNuZBk1g+cT1PHtW3aXkSqBvAPTBNAFgokY+dD+HNQtfQL8ozn6Vb84MD83sG7VWl8nGZMZ/vY4/+tQBVluA3OSo7VVlkXsc+9LdBP4SfXnkGqhOOhzQBN5mKC2TxTEi3Ak8envTN6rwwIPfmgC6JARgfnULgqTk4pn2hF5SmSXYlGG5PbFAEkc0cYOclqFkCuHbIHoTmqRI/AVf+yyTIHSNtvbHP/wBegCvcSh2wvSrdrHFgOwJIPJbp9Kr+SUzlHDf7h/njFRpA/wB7afz6fhQBoELIrSdEBwpJJ/Ws5ZDmrd2skUSqRwe9Z4Rj60AXw0Y4LYP0Jpkqx4yCD9Kp4xwamjZP4uPp1NAD1Hp0qcHA68VUeQfwZ2+9M3mgC1JLnpSpMFxuGe9V0NK3FAGvZXw3BG5yePatCdN33Tg+39a5hTjkVuaZdh28p/vEfL+FAFK6txGfmGCe3tVUIp+4eT2PFdO9urjLAFuxFczeQtbykNyevHvQA1gVJU9RU0c5ClT9Qf8A61Uyx608Op60AXBOeowKje4ZxhuagDAdDT+ooAEneP7pxUc90z8NSPUDnsaAI3YdqqucmpWNVz1oA//T48HBq1HKAMN371UpxII5oAtjduwjc+mamjuJAdsiqffFZ25sEfnmpYCzHJPAoA0mj3feOPYCq8ymL5kO78MUokGDnOex9KGjZQS3TOB70AW9KuZZW8tCcAFm4/LPt+tOkvXywLHjgY/lj/Jp2mWkwjMqMURgwye+fQd/Y9KfeQ/ZLXbEMM2AW6En0H0FAGa0pk+Y9afCRnDdDVeJGGQ/Tse9SKgHfpwKANJFSHDpIR7HpV6DU1ceTPjB4DDoaw1b1ppO3pQBZvoPIk+X7p5FVgwqX7SJE2SdO31qs2VPP50AWBIR04+lBbPPeoA2akBoAfk04Sew/KowSaXbQBN5tG7NRgU/pQBMrKO/Ipz3UiMDG5HvVYmmk0AW3uEm+aUDI6EYBzVWeaNFwjZ59MDmq0k2Bz0qo7+YfQUAbEOqhfk+6Dzyf8it8ysqBohkYySD29cd64Nu3p2rcs9b8oIp4weSfT/IoA0dXkE8ayoBuHf19v8A6xrPtrgg88Z6+la/9oW91H0Aye/U/h6VjSWLI4MXKNnAH/16AC+RYiGXhW/Q1VDU+STepif1+X8KpFyvynqKALe7NOCk1UWfHWrqSK/AoAlj82P7pOP0/Kpt7zDG3PrmnK0qRl0HAGcHvmoLedpThThuSxHAHOB+dAEaBwTjPFTRRCRgN3NS7Ul/dqRnvzkn/wCvUyoFIPy7s4Ibg4+h4oAnY+WqhsYHdo8isy+OW3KBz6Dj8K3Y/mQk8Y4AI4/xrDvroSvgjHHbpQBTE3mfKcD68UrtjtwfSqUshY7l7fnTDcOe/wCVAF5zGWA3Ed+lbdvdrtCRSFHA4yBg1yiuVOaDISP1zQB0V1q1y3ybtpHB296oxzlWz3rPScr15/GrEUm/mgDYn1EOmMbT7c0y2lg7jJPqelZjPuPNMLY6fpQBvNbRXAJjGD7VlzQtC2Dn8ahh1Fo2BHP44rTmuluYgxOSORgcigDOFOwRUS3AY4PGemehqeGLzXCg4J6E9M0AA9MflSE806aGWE5dWHb5Rkcd81UNyDQBZ8zHFWbSQiZCPXH51mGTI46noK3dI04sRNMDgfdHr/WgDcurj7PEXHJAyBXKzXhuG3PgZrrXijlBV1DDpWJdeHxktbvgf3X5A/Hr+eaAMhCpOGOB64zUhCDgP+lJNpl1DyVDD1Q5/wAKbDbSuehU/wC0CKAJVgfG8D5RxuPAzTGYjg/pVt2eFNjgEg5Hp/8AXqjLcmQnJ+g9PpQA0monOadv4IqNjQBC9RHrUrc1EetAH//U47vR0pcZptACk561PE+1P1qtT88YoAtW8jeYCfung/jWo0vmRlUAJPAz0rBEjA59K0DJ5iiSPhhwR60AdLp8yPti+X7u75eOnH4Vnavc7pdg6IT1PfArFgvpbeQOvUZBJHOD1FJdXXmSGQdT19/egC4zq3zYwPQVCXyc1V+0e1NacnpxQBM85Vsdu9WAQw9jWaWJ5NW4ZcrzxigCPPlnB5UnpTvMMZAHIPY0jFA28fl700y7+SOnNAEyMjnjKkelWFUjoc1RKhmBU9euDzUvzoeGz6cUAW92OCKUOO1U1uiCQ/NTBlbkGgCcvTS9R596Q80ASGQDrVu2kgYbWxuP97oPxrMIbvjHvUJfccHpnGBQBrSadFOCY3BxwcHGP6Vlm0kDEEYA4Ocf5P4VOspjQrG20Z7dz34+laOn+XJGIZVyGHHP48f0oAwJAAcDqOtR1oXflwyvGq8KcLx/OqLHPPc0AAbGPaphduQQxz3HsfWq9FAF5pluBk8ODyP7w9R7j9e1V3OPlbt0NNhOHBzjkc+nNXbrazEdx6d/cfWgCoFx833h7VNDOFwMGqvKnjinBnHOaANT+1jt2jIGMY/+tWYWZsgDHsKQM1SRo7c4z9aALNs4jG0Z3HknpirRnAXcWJPXOc/pVJVC9SAfY1G8gG7BwfYdaANew1ptxjl5B6Edaz9QJSTC9OSp9QeaoZIOR1qd5/OTD8svQ0AVycnJopSxIxSUABOetAGaSnlzjA4+lADT6VbtFOCw7VTrQgG2Ljj1oAqSOQ5pvmNnNSzpzkVCgyQKAHqoPLfpUyy+VypyOmKlRAoxSeWvUUAOjmjlwJBnHTNWIZxEVSQ8A5Q+1Z7Q7RuHXuKdv4BJ+X9RQBeuNTZMxfeXOTz144rJ346VNIEdNyjBBqtQBKsm05HX1rRjvPKQbnO49gTxWUKkjQucfligDaTU2XDR52njqTz71fttY3YEmCD3rCjt2QDcSB1Ix2od1A3RqVGfvE9fwoA6drgSD5CAfpmkabZ8xIPbpXMrOW/iA6Y78+4qWO7mcBcA9+KAOgf58ZAIrMudPjk+Zcg/pT7aeYBWZQAePX/9VackJ2htuR3xQBzTWrJ7/SomUjqOPWtuS2BO5cg+lQzExnDdD3oAxG+lREYrQmINUXoA/9XjicGm0pooASnbTTakMhIA9KAGlcCnq4Vcrw1RkmkoAe7bjmm0lFABRRS0AJS0UYoAUdzT44y7YBoiQyHaP8itS3sHkIQnEecBgOp/mT7UAZ00JjApglJ4NdinhpRhnbf14PvVC/8ADgHzxkIAOjdKAMBY42PLf0qbyFxlCarY8tiMg449qcLgjAHH0oAkYyR9eR6igXGKSW4DDAqtnB4oAulw4wOvXBFQIjbgTwCaZGWByOTTvMcjB5FADrg7SF9OauademIbCO42n/P+eaoP87HJ5oQ7Tgj0/nQBtXdoblzMuNpGSMcg96xJY2Q8jpxmugtJ8Dy26HvWXcxbmYZ4z8vp9PrQBn0UpGOtJQAtWo334Pfp+VVKkibafSgCxIgYe9V3TYcGrasCKY4/EelAFXp0p+4j3pXjA6VGUIoAXcc00nNJS0AKBSZp284wOBTaAEpccZozxikoAKKcy4OAc/SkxigBKuW8ygbDnBqnS0AaLAryelMAHUfnVaOdlPJyPSpt4jO3t1B+tAEwozTN3pUcku360ATHjkVXmXI3Dqe1IZ8rjoag3H1oAASORTjgnP6UynKpPI7UAGMVIHAyQPxz/hUWaXOT6UAXLe6HKuT0wCDx+NRyiNmwuAD1JNViMUUATS25TkHcv94ZxUYkKjjg+o4qWC6kgyFPDAgjsahwTQBcsblkf2P1rq7KVkVd44kOQTx9DzXHWrLG4kfHy849far11rUt03zgBcbQFGMc+vqPWgDpr+DaNwIwOw71zl23OCeevNbuiypcW3lSNlgMgdTg1j6rblHKjDE84OMj86AMhnI460wtmkKFTig8UAf/1uNNGaXGTSlCpx3oAQAN1/xoAGM1q6bYw3GQ5bcfu4GPr9fTH41dttBmbJiPy5wScfj7Z96AMaMpIMSDGO9SDTxK5SCRXI6DOCfpnr+YrYbSVgG18Mxzk7ckeufoO9YTofM2wAnByCOScHg0ATf2PciMyshVByS3HHrjrVFhtOOtaU17c+SbeRuM7mHcknue+OwFVLkxNt8pSvHzA88/WgCuoz7UE9vSjHenA5GMD1zQA5IXlbagyfQVcksxEMSYyBzjqKLOG5Ks8GV2gFjnGcnjFXf7KmX5Z2+cjOMngnsSOp/SgCjBYkYkfOw8Ap1J9PQV1+iwosOMuR2V8YB74wOKwraxlEik58rHQtggj09q2YGa3lKMcKwJA7H6d6ANblOh49KqXcbyo2DyRxwagvNZS1VdwyM4z1rHuvEEm4GMr5Z4wP69/wAKAMq80uaEGRlwo74rPVS3Aq/JqkrEksSTkYzhcfT/ABqzb3Ny6ho0G7orKOQP1FAFFbJsEP8AKevPagWeBvLLj61dm33P+vJyOuAB/Si0tbdiA5IbsBj+vNAEEVmHO1jtxgn/ADz+VbKaJsXIGCRkls5/LtTrS0tI5FcuTtOQgHU/1HvW/PqMQHcHuCKAODmsXiJbqc96VFUtmQHPQYrXuruKWTemDz2rLnvTvYjoeAcd6AIpPkjIBOeDk1GWaT94vXgEe+P8/jTDL5i7Se/f/PSrNoyhD5h4zyq/ePHX2Gf4s+2KAI0gaYEtwc4HHf8AwqE2zg7WwD7mtmF43hOfzz/Wqd1MJTsAHOPmI/yaAKTQ7ME/dOcEe1RNjtVlmaNPLJDDORt56e/pUax+aTt5bqAKAIlYqcin+axqYWpQsjghl6g8YPaqzDacelADy5PWkZs/1phpKAFNJRRQAUVLHA0gyOnSmMpXrQA2iiigApSc0lLQBLFA8/EYyR/nvSRwlyR6ZqWBmhHmowyONpGf0qWG7BfdIO+W9xQA6OyUx72BOe4NPaGNBhxhcdetaEJywAO6NznGNpH/ANeqt2jy7ljGcH5j6A9M0AVTCAuY887cHtzUN1avD8zcg9/eluFe3IAzt/hbHB/oaLiaSYAvwAMgf4UAVKeCFBzye1KuEI7nvSu287j+lADcjb05Pem0YpKAFo60lFAC0lLSUAFFFFABS0lFAGvZ6mLX96gAcAIy44YDvnsabe6iLvmRQCOh9RWVRQA5m3UgopcYoA//1+PHrV+y8otmTHHc9hVBeue1Tuwwp7A0Aa7X0Nk2+HknBXHT0Na1vqwkjKRFQzYYYzuPqeeOK5OW48/5pTyvCgDj8atw3aSkbsRMAV3D7v5dc0AbN5cC5hkMjH5SoIXgkE9T7D27VkwX62BdbUBiTgOy5yPT169KdDc74zaxtnJBLdDweOfT8yans4Y4lM7su8/6ssMf8C/w9Bz3oAzLvzZZCZyAx+YjGMcVIlgMKyneWGQoHQerHt/nrWxYwNKN58osGPmMxOB6YGD/APXpxtZWPkpIELZOCODt6kd8e5+oFAGDLZOeUBcjqRyPw7nH+RU9vp7QyK94hEfUqeCQP6VZe5kRFiMrSAkbUiIHfkHAzyPu4Jz3pNTuBIPLnLBlHygdP/1+uaANs3MEpEdsgwAW6dMf/X9aVVW3XNxIIxnO3JIyeeSeT7cAD0rlBeTuuyPhOBhRjp7+tSRRz3DBpSzjOCN2T/PpQBq2txDLPLFcSAIQNjsQP85pbjUfs2IAwmA4BAHA7VQudKmiTzdgAHDBMnA9fWqg3iMBlI54cg8fjQBoyl9R/doyrjB2s2KfZ+HS2WucqB0AHXn19PpVGHzEOYhvc5y3HT+ldHaymSLypyfxYj9aAGDRrPBMUZLD1JI/InH50r2szxiK34I++VAwT9f6dPSrLIbX5rdiQRtII35/Pnj2NVrZHj/1K5Uk7sEj8R6D25x2oAqvoV0OjKxJ6Zx/n6VUuLC5t1+eNSAcfKcn610ZuXiOJuM981lapqUG0puJOD065oAxRqarlTGpHTPQ1FPeq54UY6HGapySeYc0wUAS/aD6DHbiouWPuadhcdfm7DtT0VQy5PBIzt6igBPIfqAeDirq2U0aqw+XeDn2A9frVxpEhjDqy7A2AuOSPUfj171Qu7oTdMn0PSgCTT0eRzCRnPY9AanttNcvlYzJjIP90N2ye646gfSn6derjLrtCjlu3p+dbMV3PMywxD5WwVI4UqOpJ56UAZeo6HJEnmKqjnkKG7/Unj+VULe4k06Qou0k8EkZI/XitvWNYeNTbqPnX7/Qgj2wcj1rlHfc27p3oA055uTI/wAznqc1A7LNgqgUegNVlnbnPIPalBD8j72fwxQBKyluWX5T39KrmMk8A4ziuispwkYWRAzdOfSnRyWjSMDGVIBJx6d+PX370Ac2YnHUHnpxV6ytozuaUZ29ycKPTPfH4c1pXd3aRxmFFI3AYlx8xx2J681X/tuJLc26QAqTli7E5Prj+mcCgCBJWdvLQrgHBwMKfxqK9iWMBl53jPJ7+1Ucj8/SnSOXOck/WgCOipkKqwyO3ehWRTnrzQA1omUbjxnpUdWJ5/POT8uOg61F8oA6570AW7WGNpBFLIFQ4JcHpWlb6ZZuJv3wOwblORg/41gswPQYoDY/pQBqm9BgWLGMnr0Ix79q0pma3hja3Pmggl9hGFI9e/X1z6VzJkJOT361sG5h1BRGkfl3BARTGcIwA6MM9fcUAVbjUZb2YSy4yuAABgflUDxrI2Axz2U8n6cVbutIe0kVHYbWG4Hv+X1rQ060F0wW2IBXux6t79xjsBxQBzrxlCVPUU0DtXW6hp/2GJ5JXVpXXDEAAnPHy/1rLis3gjJ25LAY2kZ+boM9jnqP1oAyXUA4Bz+FMNaF6Wt5ApGJNoD9M5PUH3qKFoC6byyqM7jjOPoKAKpUjqKXyz3qWfYD8jFgDjJGDj1/+tT4ZjwgCglgdxHI/HsO5oArbTnaOtWHthGu4t16L3zVi80+W3Ad8DccoR0Yeo/nzVeIrIcOQPQt6+poAkjhj2/Mf97t/P8ApVaQDPC7R71Kcs5284OAf6/jV+LyrZQ82GkOSN3+TQBTttOlnJ2g4HersmmKGEbgoQOOOT756H8KW4cXDIgbaD1Kggev4EDpVm2aPbt81pmBG1QeQpPJAxngdRmgCnf6YtmgLcNgEDOc5rKRCxAHJPYVe1W4aRwm7cq5x+f88VWimWNSNuWPBOf5e9AB5eG2twR2pjLjrSPJuO7nPuc00E0Af//Q5AKD1OKdKAMev6UwHBpwO889AKAJ1hEhAYhV/vYyBnsakeDzG8iMKxB/1i9CB1P0q5ZhJQVXK7gVJPIqxpqbYTMOWJIUDuF/rnmgBLfSY4CJJscdieOfWi5uII5eD5o53ZGFx6D2/n71sXigRecp3ALj/ePU4/lXN3Vsbh8x7VUAcAnjjpg/4CgDTXxHCAcKVGMbEUY/E5rEuNReR9yk9dy7jnafb27Y6VWlhKHGMH3qKgC/BI8xVUKrIWzuPykZ46+nPTtU9zZwQhi8xkfGVCqeT7k549PWssKcE9ql8pgwDckjhep9uKAO60qxhXTVOQSVLMeOCeo/DpXP2urRW05BU7c9eOP/AK3rWTO9xB+6fKAgEoCQOfUD+tV0R5mCqMseg7mgDqbiW+upJLZNu3aGJJxlT6YqpcQSPGsAA3Ng5J/nnmp9LtVhUSyhkJzhdxH0zz+PNae5XTKSEN3YYLfTJBoA5qG1uNOuAWU8dx0OR/nrW9bNKSBdksh6bMEZPvx+lU7lZMLM0hZH6cdT+n+FbNlatIvKFk68sM/hQA42cZ+dSyAd8ZBpzW0cas25Txjjj6d6bdapFZjaSUPpgmuWvdTM8m4EkL14GCPwoALxiXOST+JNZdweQKfLcluR/KoS4blutAAsZNNVc8CpI5G/hx9D39vekIaTJA5HUAUACSmJw8fBByO/86klmeRhMcZGBkDHI9qrUooAtXl01wVJCjAJ+Vcck5Ofeq27jFNooAm+0NsCAnGc/jS/apcFdzYPUAnBzUFFAC5oBwMUlFABRRUkag8k4xQBqadbz3m1M4jHpx09Kt3NlNbzPHH8zlc7s4HzY4Ge/wClZ1leyxnykJK89DtOPr29T3oubqWRi9wx+dVyo7gdM0AVnje1lKyfK4POeoP4VFNKZXLkAEnPAwKa7b2Levqc02gAooqzbwCUHnG3nHrQBWorbvYLOCBduTKeWyenHasSgAoopyqWOFGT7UANoqeS0mjXe6Mq+pUj+dQUALWno8yQXKGTgbhyRnB7fTrzWYAe1PVsZz3GDQB2viOyjmiNw5wVAIIPB9h7ntXKC/KxiMDBU8ODg4/D+dQPMzL5eSVByOv+RUNAGul1bNassi752JCs2dw7g5PbNR27Kse+SQ/L9yPGQSDnBPbnnnrWYDjmtfS5YCW+0AdPlJXP/wCqgCjdSm4cysdztycDAqrW5rUSJKIoIwvAbdyCcjp9KxghJwOtACK23sD25pKCMUuxj2oAfLPJMBvJbHAyc0iKXOEGT2xTMHpWxpdukbec7cAYIxzQBkuGQkN1702r+pTfa7hpEGASOfoMVSZCpwaAAMV+YHn1p6TuCSDgnuDg/pTB0wfwpFUscDrQA+R/NOTwe59ff60xUJIHTPrU58pF2kEt3pzXX7sIoxjjJ64oAq9KBRQKAP/R400qLuIHrxSGnRPsYN6HNAHTWtiRCxHUDj/61ULN3DAdowzAg8fMaWTVNsR8tsMewrKFwwJI75/XrigDQjuJL6QRBiqDnOTwP8a07i3kEeyHESjGN/32/wBo/wB0Ht/SsTTrj7LIJTyvGa62HUbW68yMEZkxjb1AAxz7UAcdPbSxZLkcn1quxycitPVYthC5HH59f6VUtbQzHLcIOrf570ANjRlTzD93OMeprUkuEtkX7K2ZiAGZRngjkAn1P4jtWfdT7iqhdqr0T0/+ue9QCZ1OQcY9KAL00e5/Li+dxyzt6+mT6VcguxYQBY0BmdiWcYwB2ArJN5IRtXCg8HaoFME7AY/WgDWN+8r7SPm/CtWCzkMfmA7Rty3HP4Cuatx/EetbVrezAqB8wAK4I455/SgDTs1cqzhFUYG3zCNx9TnoM+gzVBprgOzQsBn74ycexGMYNdVHCVXA2YODk9h/KszUTDEySxDeckFeP88dqAOUuZpJxunUs68ZJ7f59aozDABAxkVt6lMZpN8aFBwKzJ7Yv8ygAgcjGPxoAoHmkpSMcUlACg4+vapSP40J469jmoakjfbkHoRjn370AMpKcy7Tim0AFFFFABRRRQAUUUUAFFSxQmXIXtzSSx+WdvXHUjpmgBobFOllaVtznJ6fhTMY60lAC0lLtNOO0r796AG1JDNJFnYcZ4NMA4zmlYHPTkdaABnZuWOabSqdhBoJHagAx3Naul31taSK7xkkcFuv6VlFyetG09cH8qAOn13XoLuIxQAkHjcwxx7Vy9KTxim0ATW+N2CcA8ZqxJaqWxCcg8KP7x9v/r1TVyvQ4pyOVO4ce9AFu5mE2WZEVgQpA4PA5OP/AK9Q21w1rJ5iqM4IG4ZHI6/4VHLGU7YqMnNAGzDb2JyZGdtoG9lI25b9eD17Vn7hExxnYwyPXmoEkKdOeh59qdNL5rbsY9B2FAF2RzMM7iWXgEnP+f8AGro0lzb/AGlCCuMkscEEdQf6VnWOd/QY9hz9K2Gf7PCSep7Z4/GgDnVOHyeat1TkcyMWPU+lOExUYH60AWgBUnnMV2Z49BVSFyxwTVgCgBQKa6AqakUUuKAKRRl+lTI6R8uBupxYAZ7c1SZixyaAHyNvOfc81HRTkjZ+goAZSip2tivJ4qMrigD/0uNNJUgGTTjDQBDTlXcQPXihl21JBtB3MN2D9096AFjYq21gGB+XH/1xW9p9vDEzOWwABkAZbntk5P5Vm+bGU3lT5nqW7j+6oGPfn9amtZlJPlIXcj756fj6D+dAEN7m6utiDAOAB7f1q3eq1nCu3pwBV2wsDH+/mO6Q/wCf0qaR4ZnIZhiPrQByD5yd3Xvmkq7PGbiZmAIXJx8pP4cU6FJYQ0bg+Ww+bjr6c4oAitniVwWXI755rXg06G6bzYWGM8qvX8j/ACrJl+QZUDFQJO6NuQlT6jj+VAHV/wBjW4XYG59en6UR2Ytv3hz8uSOePxFY0OsXPAyCem5hz+dWVkkk5mIYe7HB/D/61AE0mpyPlpScZwAp4qu9zEHw2R3qN5CJAiEIWwBgZAz3z0rWg0OBAZZ3Vs4xjj6jknrQBkzansGETp3bFVGvnnyrAD0IFa13a2CHIBC5wPmIA9TUBe027YTj3IP86AMR1ZTzTKtzw7zlKgMLjtQBHSg4GKMUlAEyQvMMqCccHAJwPfFL9klzjY3rwp6evTpUtpqM1pkRn5W+8PX8ev5UsupTSAAMVAG3gnkHr+HtQBBKhUAMAMfmfrUNOALH1JqdrGZQGKnngDvQBWoqcWspO0KSfarKaRdP91Dn070AZ9WLe0kuD8g49e1bdjpJAP2lSm3vxgjFMimEzlXyYAcLt4HHp/h3oAhliW0At0+aR8MSOBj0P41lSKVJTPTr9a6O51S0iiKxISzfKc8ED1z1z6fnWe0FvvjaPOCDv3Dcoz79/wA6AKSWodQ5YDPXd0qKSIxtt71sTtYeWY03Fz6AqB/wH+vWs8jeSW4XgAd+KAIDjHI59qjClm2jqeKnZNx2jjuM+lFpF5kygc/MMmgCx/ZrFS3CqoyzGlN7DDHthjBkxgysP5DnH1NW9WuPkW2j6Elmx39PwrMitWJwTj0NAFcuWGCeKChGPfpV6Kw8xvmPuSKvQWUajcOewJoAylRYRmQfN2pJLjI2hfxJOavT26g7iOfests5PtQA2koooAKk81hz6VHSigB8krSHLVHVy0MeSknIOMcdxUwhtW3szEY+6qkf160AZtLjtUrRhgTGPlHc9fxxWomlxKykseRnGO/1oAk0q23AE9sZNR6kN0p5+X+HH861x5dvD5QOGIOD6VkCNpWHdu1AFEWuPvGq5jIJHpzWq4Kna3UdagmxjNAFOHC5Y/SrQbjJpqW4C5PP0ojt3uG2jgDt9KADzx+HXNRvdHPy/mad9kLHk09bVAeeTQBUVWce3rSFRnj9a0BCemMCp7XS2lO5QAo79/yoArWenPctgfd/iPatL7OlugbgdtzVpx2/2eE7BlsZrn5pZHY76AIbqQOfl6Dv61TJyeakkJqKgD//0+RVsGtC3UNxWZViJyvINAGi2meZytRf2Ox68VNDfPjAPNJK1xIMMzAdiP8AOaAJLfSoxhnfPtg5NXWmghUDs3QLwT/9bvWbBaucbTkA5I3H+VWls1i3vI/LDjA6e349KAILnU5Z3McIwPu5/nj/ABqO2tiflYhevJ61oQaanlB14Y9Sx49hj+tQXUZRs9cjI/H/AAoArGYRHEXT1J5P/wBaoppXfqfw7U7ZinR25k57dOKAKvXrTGBIOFJA6kDiteDSnuGIUgKvUmq01lHESgl46EKDg/0oAoxlx6/jT5/mXB69qkVY0bv9QOv+FJPcLj5T9ABQA21GRtZQw9+orpbe1tZo8bQrA54GPz7VykQMjcnGfwrWtzOhKplh0yhyfxzwB70ALfIm8Rjru79cY6Y9M96qmMI4AxknGB6Yq8+qrGPLmi3Nzhjx9cevPpWMsjNLvxyDwPT6UAaJhAOBxVoacr/MGB9qqMxY5Jq1augOGbaKAK1zpuecj8DVVNKkflQSPXGBWw/kowePd9WIq6dZiiXaBubsO350AY1t4fZjunbag5/D8ajmsYg+yFS3ueeKvveTztufp2UcD/69MeaXvkZ649KAEhggsxulzn0UUsuoRyDEakL+ZqsY95yQfxNPjtXUcDA9cUALBePESYlAPTJXP9amW7u2zvkOe4AAH6c/maJBFAq4IdiOnI+gqNrtUkI5AHBXr+XWgCG5kL5Gd5Hr0/nWe4mPbj2rQkWQ5YRlVx1Pp+FQlZMA9VoAoC3dm5/OpNqoMfMcds4/lVtFGc/icUSMNvPagCKJQBle9XIowBuOKqx4wMdKnV+No49TQBDJDuPqTV6Cx+yxmVuo4GKLRRJIg446itHVI8wHHGCDj1oAwZWMz7m4xwPwqaJIyvJO72qBFqTbigDSgtwVxuOD14/nSvbMvXp7VmqxHQn86spcvwCeBQBZmsDMODjHas82iLkHbx6g1oRziQ+/1ps8Ky8kYPr0z+FAGDLASeMY9hUPlY6gn6VuNDgYqv5YNAFD7Hv5iOfY8GmG0lBwVrSWPbyKmilKHkA/UUAZq6bcFQ4HB6c80wWFw/RD/L+dbz6gQMKOPYAVSeeSXODjP50ATWAt7GMi4JEjegyAPw61LHexFzgfux03dazfsrtkn8zSRwiPqfzNAGrNfRzMSikHGB0PIpPNKYcFEbHRQSfr9aog7DlTS7ieTzQAsisxJJz3JPeofJLfSpA7D3qeA+YwycUAKbL90uOrHn6AVCGNm4KfeHrzW00kYx6r36g1HqUCTKGUfNkfMOlACW9zFOo85CrAfeA4NKYocnDAA9hUNrGyDax+gqGdsnFAFqOKAEru+nIq6qBRhR2xlTXPyIxG4Dj1p9vdPAwIPA6igDbyZFZW4PUE1zsituKv1BxXQpqEF0MMCD35/wAKpTWsIyycj65oA52cDPHSq561qXKL6VmsuDQB/9Tj6lSoh1qZKAJ40PpWgu9xxz+NQ2z5IA6e9aC3Tw/cQYHU89KAI4YJOWXg44rVtX2IVmAPPcZ5rKa9dmO0Yz2q7Y3LnHmDIB44xigDRuCoTDDoMiucuH3EL6f1NdKypJkg5J6jNYFxa7JMEnk9T6UARpbbsc1chbygRs59T3/LvSJ+7A74pxnLdhQBTuLh2JAG0ewqoVY9q0X+f71KGfG3OR6ECgDO8hz7fWoZIW/iGa1vLB6qP1qKSEfwr+VAGI0OORmnbpF5ViD7GtF4CeSAKqMoBx/KgC3DqUw4lG7sCwBI+nHFOSKKeTe44/I5+oqgSe1KbiVRgNgfQUAdJ9gt3AKjnsfb0rBlV4pGRhjB4JqBLqdDkkkfXH8q1I78H/WEbf8AaXJoAhtp8cS8rWjm3kQ+WuD1LdOf1pqTWbj5Vy3Q/LtqNwgOYvlPsf6UAXIRujygGT1JPT/P51LDZ5OWOM9u9ZaTPH2B+oxT/tTS4BZQPUHp+VAF2Wz8t9w+ZDwc8Vnzq8RKoSB6Voy6lEoEatuwOT61QMu45bp270AUG3MeeuetPWNVOXzxWhsjce9VZIvKORyKAHveSkjJ7YxjgioOxPTPQClPIzTGBoAYAV4/UU4R/LuNWo7crgsOfQ96bOobn04wKAKbH0qeGPzBjoT0qEjHFPiYrwelAF60tsSYfhxgg1shDKDHLyD3rNguw2BN06BuhH41swbQgwcj1oA5250mSNiU5XqOO1W7ewYptkAP0PIrZLrTCSehoAwpLPyW5GR29aqzLjkVozSyPIccKOAD/Oq8h5JoAzwx7Vet3J+8SfbrVCQ4bir1mNwLEHA70AXWt1VCwIyfzrHc88VrGMkll5HoD2NZskeDkCgCLJ7UucfepOenelC54IFACHLdDURiYVbS2cjIH4042pThutAFVH4wf50jYPT9asfZ6BDmgCEIfSpI4gTyc+wpxTFSKw6EcfrQBL5se3EaHd7/AM6rukgORwfTH+FXoZYeA4IPr2q3sBGIjn60AZCSyJ/9ercOoeX/AAD/AICSP/rVbe0IHzAfhVKS1HUUAWfPt7g5fKt/n0pZbWCX7vJ9sis//Vfw1Pb3aqeY8/SgCSOzVB/F9On86pzWpLHH6Vfk1DH8B9s1UkvXk6igCosLIc8j3q35rbcP+BqETueCePep/lx/OgDNuFHWs6TrWncAdqzJOtAH/9Xjx1qzGqk8nFVweasRmgC4ojHQnNXIbplXZnj0IqgoFTKKAL8MMUh+dgP0rQaOMIArZwc5z3rD59aXJ9aANd3I4OMHqf8ACpJUScAA9OhrEV2U5Bqyl6w+8AfegB8ltIrHGD7ZqF1kX+Airiakqj7nP1o/tMdl/WgCiJHB5B/KrUd0CMMtK18WGAox9KEuY/41BP0oAcWVhlaryOalNxGDlQf5VBLLuOQCKAIX/eDk1CYVHSrHHUcUgYelAFcKB1FBjU84q1jPQVGRigCHaD2phiHtUxGelJzQBH5Q7inHAGBSkNUXlGgBMilyuP8ACnBCOlG2gAXPQVNGD3NRDIpykjpQBaQY6tge9K7KMc5FVg1KSM8UALIjHoePao0yrAnkd6cxqMUAaMrk8Z/H2qoxalU8ZHUetTbBIM9DQBAq+tOGRzUqx7T1OKJSD14HvQAsbgdQPpVxL8RjaFH4VlvISMDp9KkiXPUUAaBvGb7vH0pRKx6moUUCpNuaAHnnrUTxg1JsxzmhNuctQBmS2zZ4q/CGjh2kY44NTZQNnNWEmxx8p/SgCvAcocjDetRXMQ6+vPFaIkU8GMfmKYyxP95ce4NAGMqHPIqyq7hgqPqOtafkWzdWYfhSeRbgZEpA/wB00AVEhI5Awac8W4Zk/MetXQ9sOBKP1pp8k9JlP40AZ5tm5GM+9VfJ2vjp9K05LhVGFdWqizNI2cUAV3jy3tTtgqUg96TaRQBFtq5AhxnOPbPNRbaRjgdjQBpxlyME0NEe1ZIlIPHFBmfruOaALksTHpzVNllzgUhuZf7xpFunHXBoAnVmXhwDTXEZ6AihLtByy/1pHuEY5HH1FAFchW6GjYAM7hSOd3QiqsoYUANuHX1rOYgnippM1XPWgD//1uPHWrEZqADmrMa0AWY2NTKxqOND/kVYERoAbuPtQWPpUnlGjyjQAxXx2FSfaWHYU3y2o8tqAFM5b7wz+FJ5uew/AUeW1L5TUAJ5p7Unmt707yjR5RoAYWJ5NL5jDpTvKNKIjQBFuY0pYnrUvkn1H60eV7/zoAh60lWPJH+QaBAPX9DQBBS1Y8hfX9DQIU9T+RoArEU3bV3yU9/ypwjjHUfoaAKGwilCn0rRAiHr+RqZZ414CfpQBlCJj2pPKb0rVMynsfyppkUjAB/KgDKIxTa0mVeyj8qZ5Q9KAKIAowK0BGPQUmwe35UAUgAOhqZX7frUvlD2o8laAEV/cGnbUblhz7Uxov7tM2yelAErRRt0OPwpi25z8rUgEnp+tJ+8/u0ATKzL3qQSt6/pVbL/AN39acN/ofzoAmNwR1H6Go2nbtj9aT5vQ0ZagBvnSe1J5jt1xT8Me36UbT6UAQnd6/rSYcd/1qx5Z9KNh9qAIlLDvSncepP0qTyzQIz7UAQFOOv60qqB3NTeWfajyj/kUARYFPDFehp3lH1FHlH1oATcT1Jpufen+V70eSPWgBm7FJnNS+WtLsHpQBHz6UeWW9Kl2CjFAELRkdaZg1ZIzTNpFAEJWkK1Pg0YYdqAKrCq8lXmBPUVVlX2oAoSVXPWrUq+1ViOaAP/2Q=="},components:{alpha:"texture2D(image, fract(repeat * materialInput.st)).r * color.a",diffuse:"vec3(1.0)"}}}),translucent:!0,aboveGround:!0})}),this._nativeObjCesium.geometryInstances=new Cesium.GeometryInstance({geometry:new Cesium.EllipsoidGeometry({vertexFormat:Cesium.VertexFormat.POSITION_AND_ST,radii:this._viewer.scene.globe.ellipsoid.radii}),id:this._id}),this._nativeObjCesium.show=this._enable,this._viewer.scene.primitives.add(this._nativeObjCesium)}},{key:"addTo",value:function(e){return e?(this._viewer=e,this._createPrimitive(),this._state=Me.ADDED,this):this}}]),e}();const tc=function(){function e(t){if(n(this,e),!t)throw new Error("Viewer:必须传入三维球对象");this._comps={fog:new qs,rain:new Ks,snow:new Zs,cloud:new ec},this.install(t)}return s(e,[{key:"fog",get:function(){return this._comps.fog}},{key:"rain",get:function(){return this._comps.rain}},{key:"snow",get:function(){return this._comps.snow}},{key:"cloud",get:function(){return this._comps.cloud}},{key:"install",value:function(e){var t=this;Object.keys(this._comps).forEach((function(i){t._comps[i].addTo(e)})),Object.defineProperty(e,"weather",{value:this,writable:!1})}}]),e}();const ic={};const nc=function(){function e(t){n(this,e),this._viewer=t,this._options={}}return s(e,[{key:"_bindEvent",value:function(){}},{key:"_unbindEvent",value:function(){}},{key:"start",value:function(){var e=this;if(this._viewer.clock.shouldAnimate=!0,this._unbindEvent(),this._options.duration)var t=setTimeout((function(){e._unbindEvent(),e._options.callback&&e._options.callback.call(e._options.context||e),clearTimeout(t)}),1e3*Number(this._options.duration));return this._bindEvent(),this}},{key:"stop",value:function(){return this._unbindEvent(),this}}]),e}();function rc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var oc=function(e){u(i,e);var t=rc(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,e))._options=o,r}return s(i,[{key:"type",get:function(){return ic.GLOBE_ROTATE}},{key:"_icrf",value:function(e,t){if(e.mode!==Cesium.SceneMode.SCENE3D)return!0;var i=Cesium.Transforms.computeIcrfToFixedMatrix(t);if(i){var n=this._viewer.camera,r=Cesium.Cartesian3.clone(n.position),o=Cesium.Matrix4.fromRotationTranslation(i);n.lookAtTransform(o,r)}}},{key:"_bindEvent",value:function(){this._viewer.clock.multiplier=this._options.speed||12e3,this._viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this._viewer.scene.postUpdate.addEventListener(this._icrf,this)}},{key:"_unbindEvent",value:function(){this._viewer.clock.multiplier=1,this._viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this._viewer.scene.postUpdate.removeEventListener(this._icrf,this)}}]),i}(nc);ic.GLOBE_ROTATE="globe_rotate";const ac=oc;function sc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}const cc=function(e){u(i,e);var t=sc(i);function i(){var e;return n(this,i),(e=t.call(this,se))._registerEvent(),e}return s(i)}(le);function lc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var uc=function(e){u(i,e);var t=lc(i);function i(e){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,i),(r=t.call(this,e))._routeStops=o.routeStops,r._loop=o.loop||!1,r._routeStops?(r._routeStops=r._routeStops.map((function(e){return e.position=Ne.parsePosition(e.position),e})),r._currentIndex=0,r._timer=void 0,r._flyEvent=new cc,r):(console.error("未定义路线!"),h(r))}return s(i,[{key:"type",get:function(){return ic.FLYING}},{key:"_cameraFly",value:function(){var e=this,t=this,i=this._routeStops[this._currentIndex];this.raiseEvent(se.FLYING,i),i.position&&this._viewer.flyToPoint(i.position,i.heading,i.pitch,i.range,i.duration,(function(){e.raiseEvent(se.STOP_STAY,i),t._currentIndex++,t._currentIndex<=t._routeStops.length-1?(i=e._routeStops[t._currentIndex],t._timer=setTimeout((function(){t._cameraFly()}),1e3*i.stopStayTime)):e._loop&&(t._currentIndex=0,i=e._routeStops[t._currentIndex],t._timer=setTimeout((function(){t._cameraFly()}),1e3*t._routeStops[t._routeStops.length-1].stopStayTime))}))}},{key:"start",value:function(){return this._routeStops&&(this._currentIndex=0,this._cameraFly()),this}},{key:"pause",value:function(){return this._viewer.camera.cancelFlight(),this._timer&&clearTimeout(this._timer),this}},{key:"continueFly",value:function(){return this._routeStops&&this._cameraFly(),this}},{key:"addEventListener",value:function(e,t,i){return this._flyEvent.addEventListener(e,t,i||this),this}},{key:"removeEventListener",value:function(e,t,i){return this._flyEvent.removeEventListener(e,t,i||this),this}},{key:"raiseEvent",value:function(e,t){return this._flyEvent.raiseEvent(e,t),this}}]),i}(nc);ic.FlyManager="FlyManager";const dc=uc;const hc=function(){function e(t){n(this,e),this._viewer=t,this._enable=!1,this._moveRate=100,this._rotateRate=.01,this._flags={moveForward:!1,moveBackward:!1,moveUp:!1,moveDown:!1,moveLeft:!1,moveRight:!1,turnLeft:!1,turnRight:!1}}return s(e,[{key:"enable",get:function(){return this._enable},set:function(e){this._enable!==e&&this._viewer.scene.mode===Cesium.SceneMode.SCENE3D&&(this._enable=e,this._enable?this._bindEvent():this._unbindEvent())}},{key:"moveRate",get:function(){return this._moveRate},set:function(e){this._moveRate=e}},{key:"rotateRate",get:function(){return this._rotateRate},set:function(e){this._rotateRate=e}},{key:"_bindEvent",value:function(){var e=this._viewer.scene.canvas;e.setAttribute("tabindex","0"),e.addEventListener("click",this._onClick.bind(this),!1),this._viewer.clock.onTick.addEventListener(this._onTick,this),document.addEventListener("keydown",this._onKeydown.bind(this),!1),document.addEventListener("keyup",this._onKeyup.bind(this),!1)}},{key:"_unbindEvent",value:function(){var e=this;Object.keys(this._flags).forEach((function(t){e._flags[t]=!1}));var t=this._viewer.scene.canvas;t.removeAttribute("tabindex"),t.removeEventListener("click",this._onClick,!1),this._viewer.clock.onTick.removeEventListener(this._onTick,this),document.removeEventListener("keydown",this._onKeydown,!1),document.removeEventListener("keyup",this._onKeyup,!1)}},{key:"_getFlagForKeyCode",value:function(e){var t=void 0;switch(e.keyCode){case"W".charCodeAt(0):case 38:t=e.shiftKey?"moveUp":"moveForward";break;case"S".charCodeAt(0):case 40:t=e.shiftKey?"moveDown":"moveBackward";break;case"A".charCodeAt(0):case 37:t="moveLeft";break;case"D".charCodeAt(0):case 39:t="moveRight";break;case"Q".charCodeAt(0):t="turnLeft";break;case"E".charCodeAt(0):t="turnRight"}return t}},{key:"_onClick",value:function(){this._viewer.scene.canvas.focus()}},{key:"_onKeydown",value:function(e){var t=this._getFlagForKeyCode(e);t&&(this._flags[t]=!0)}},{key:"_onKeyup",value:function(e){var t=this;Object.keys(this._flags).forEach((function(e){t._flags[e]=!1}))}},{key:"_onTick",value:function(){var e=this._viewer.scene.camera,t=this._viewer.scene.globe.ellipsoid.cartesianToCartographic(e.position).height/this._moveRate,i=Cesium.Cartesian3.clone(e.position,new Cesium.Cartesian3);this._flags.moveForward&&e.moveForward(t),this._flags.moveBackward&&e.moveBackward(t),this._flags.moveUp&&e.moveUp(t),this._flags.moveDown&&e.moveDown(t),this._flags.moveLeft&&e.moveLeft(t),this._flags.moveRight&&e.moveRight(t),this._flags.turnLeft&&e.rotate(i,-this._rotateRate),this._flags.turnRight&&e.rotate(i,this._rotateRate)}}]),e}();const pc=function(){function e(t){n(this,e),this._viewer=t,this._viewOption={},this._cache={},this._activedPath=void 0}return s(e,[{key:"_onPostRender",value:function(){if(!this._activedPath)return!1;this._activedPath.pathEvent&&this._activedPath.pathEvent.raiseEvent(oe.POST_RENDER,{viewer:this._viewer,viewOption:this._viewOption})}},{key:"addPath",value:function(e){return e&&!this._cache.hasOwnProperty(e.pathId)&&(e.pathEvent.raiseEvent(oe.ADD),this._cache[e.pathId]=e),this}},{key:"addPaths",value:function(e){var t=this;return Array.isArray(e)&&e.forEach((function(e){t.addPath(e)})),this}},{key:"removePath",value:function(e){return e&&this._cache.hasOwnProperty(e.pathId)&&(delete this._cache[e.pathId],e.pathEvent.raiseEvent(oe.REMOVE)),this}},{key:"getPath",value:function(e){var t=this.getPaths().filter((function(t){return t.id===e}));return t&&t.length?t[0]:void 0}},{key:"getPaths",value:function(){var e=this,t=[];return Object.keys(this._cache).forEach((function(i){t.push(e._cache[i])})),t}},{key:"start",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e&&(null==e?void 0:e.pathId)!==(null===(t=this._activedPath)||void 0===t?void 0:t.pathId)&&this._cache.hasOwnProperty(null==e?void 0:e.pathId)?(this._viewOption=i,this._activedPath&&this.stop(),this._activedPath=e,this._activedPath.pathEvent&&this._activedPath.pathEvent.raiseEvent(oe.RESET_TIME_LINE),this._viewer.addEventListener(ee.POST_RENDER,this._onPostRender,this),this):this}},{key:"stop",value:function(){return this._activedPath&&(this._activedPath.actived=!1),this._activedPath=void 0,this._viewer.removeEventListener(ee.POST_RENDER,this._onPostRender,this),this._viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this}},{key:"clear",value:function(){return this._cache={},this._activedPath&&(this._activedPath.actived=!1),this._activedPath=void 0,this._viewer.removeEventListener(ee.POST_RENDER,this._onPostRender,this),this._viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this}}]),e}();const fc=function(){function e(t,i,r){n(this,e),this._id=W.uuid(),this._bid=void 0,this._positions=Ne.parsePositions(t),this._duration=i||20,this._pathMode=r||"speed",this._timeLine=[],this._sampledPosition=void 0,this._actived=!1,this._endTime=Cesium.JulianDate.now(),this._pathEvent=new eo,this._pathEvent.addEventListener(oe.ADD,this._onAdd,this),this._pathEvent.addEventListener(oe.REMOVE,this._onRemove,this),this._pathEvent.addEventListener(oe.POST_RENDER,this._onPostRender,this),this._pathEvent.addEventListener(oe.RESET_TIME_LINE,this._resetTimeLine,this),this._state=Me.INITIALIZED}return s(e,[{key:"pathId",get:function(){return this._id}},{key:"id",get:function(){return this._bid},set:function(e){this._bid=e}},{key:"positions",get:function(){return this._positions},set:function(e){this._positions=Ne.parsePositions(e)}},{key:"duration",get:function(){return this._duration},set:function(e){this._duration=e}},{key:"pathMode",get:function(){return this._pathMode},set:function(e){this._pathMode=e}},{key:"pathEvent",get:function(){return this._pathEvent}},{key:"actived",get:function(){return this._actived},set:function(e){this._actived=e}},{key:"state",get:function(){return this._state}},{key:"_onAdd",value:function(){this._state=Me.ADDED}},{key:"_onRemove",value:function(){this._state=Me.REMOVED}},{key:"_onPostRender",value:function(e){var t=e.viewer,i=e.viewOption;if(!this.actived)return!1;var n=Cesium.JulianDate.now();if(Cesium.JulianDate.lessThan(n,this._endTime)&&this._sampledPosition){var r=this._sampledPosition.getValue(n),o=this._sampledPosition.getValue(Cesium.JulianDate.addSeconds(n,.001,new Cesium.JulianDate));r&&o&&t.camera.lookAt(r,new Cesium.HeadingPitchRange(qe(r,o),Cesium.Math.toRadians((null==i?void 0:i.pitch)||-20),(null==i?void 0:i.height)||2e3))}else t.camera.lookAtTransform(Cesium.Matrix4.IDENTITY),this._actived=!1,this._pathEvent.raiseEvent(oe.END,this._positions[this._positions.length-1])}},{key:"_resetTimeLine",value:function(){if(!this._positions||!this._positions.length)return!1;var e=Cesium.JulianDate.now(),t=0,i=[];if("speed"===this._pathMode){var n=We(this._positions)/this._duration;i=this._positions.map((function(i,r,o){return 0!==r&&(t+=We([o[r-1],i])/n),Cesium.JulianDate.addSeconds(e,t,new Cesium.JulianDate)}))}else{var r=this._positions.length,o=(this._duration-this._duration%r)/r;i=this._positions.map((function(t,i){return Cesium.JulianDate.addSeconds(e,i*o,new Cesium.JulianDate)}))}this._sampledPosition=new Cesium.SampledPositionProperty,this._sampledPosition.addSamples(i,_e.transformWGS84ArrayToCartesianArray(this._positions)),this._sampledPosition.forwardExtrapolationType=Cesium.ExtrapolationType.HOLD,this._sampledPosition.setInterpolationOptions({interpolationDegree:2,interpolationAlgorithm:Cesium.HermitePolynomialApproximation}),this._endTime=i[i.length-1],this._actived=!0}}]),e}();function mc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var i,n=p(e);if(t){var r=p(this).constructor;i=Reflect.construct(n,arguments,r)}else i=n.apply(this,arguments);return h(this,i)}}var gc=function(e){u(i,e);var t=mc(i);function i(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,i),(e=t.call(this))._pointerEvents=r.pointerEvents,e._show=!0,e._threejsContainer=void 0,e._threeCanvas=void 0,e._animateFrame=void 0,e.renderer=void 0,e.camera=void 0,e.scene=void 0,e}return s(i,[{key:"show",get:function(){return this._show},set:function(e){this._threejsContainer.style.visibility=e?"visible":"hidden"}},{key:"_addedHook",value:function(){}},{key:"_onAdd",value:function(e){this._viewer=e,this.initThree(),this._initMouse(),this.renderThreeJS(),this._viewer.nativeObjCesium.useDefaultRenderLoop=!1;var t=this;this.indexa=0,function e(){t._animateFrame=window.requestAnimationFrame(e),t.update()}()}},{key:"_removedHook",value:function(){window.cancelAnimationFrame(this._animateFrame),delete this._animateFrame,this._viewer.nativeObjCesium.useDefaultRenderLoop=!0,this._threeCanvas&&(this._viewer.container.removeChild(this._threeCanvas),delete this._threeCanvas)}},{key:"_initMouse",value:function(){var e=this;this.controls=new window.OrbitControls(this.camera,this.renderer.domElement),console.log(this.controls),new Cesium.ScreenSpaceEventHandler(this._viewer.canvas).setInputAction((function(t){console.log("Cesium.ScreenSpaceEventType.LEFT_DOWN");e.getThreeClick(e._viewer,e,t.position)}),Cesium.ScreenSpaceEventType.LEFT_DOWN),this.renderer.domElement.addEventListener("click",(function(t){var i=e.renderer.domElement.getBoundingClientRect(),n=i.width,r=i.height,o=(i.top,i.left,t.offsetX/n*2-1),a=-t.offsetY/r*2+1,s=new THREE.Raycaster;s.setFromCamera(new THREE.Vector2(o,a),e.camera);var c=s.intersectObjects(e.scene.children);console.log("射线器返回的对象",c),c.length}))}},{key:"getThreeClick",value:function(e,t,i){var n=new THREE.Raycaster,r=new THREE.Vector2,o=e.scene.canvas.getBoundingClientRect(),a=t.renderer.domElement.getBoundingClientRect(),s=a.width,c=a.height,l=a.top,u=a.left,d=t.renderer.domElement.offsetLeft,h=t.renderer.domElement.offsetTop,p=i.x+o.x-u+d,f=i.y+o.y-l+h;r.x=p/s*2-1,r.y=-f/c*2+1;var m=t.scene.children;n.setFromCamera(r,t.camera);var g=n.intersectObjects(m);return console.log(g),!!g[0]}},{key:"initThree",value:function(){if(!THREE)throw new Error("请引入 three.js 库 ");var e=this._viewer.scene.canvas.clientWidth,t=this._viewer.scene.canvas.clientHeight,i=j.create("canvas","anov-gis-threejs",document.body);i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.width=e+"px",i.style.height=t+"px",i.style.pointerEvents=this._pointerEvents?"auto":"none",this._threeCanvas=i;var n=e/t;this.renderer=new THREE.WebGLRenderer({canvas:i,alpha:!0,logarithmicDepthBuffer:!0,antialias:!0}),this.camera=new THREE.PerspectiveCamera(45,n,1,1e7),this.scene=new THREE.Scene}},{key:"update",value:function(){this.renderCesium(),this.renderThreeJS(),this.indexa++}},{key:"renderCesium",value:function(){this._viewer.nativeObjCesium.render()}},{key:"renderThreeJS",value:function(){this.camera.matrixAutoUpdate=!1;var e=this._viewer.nativeObjCesium.camera.viewMatrix,t=this._viewer.nativeObjCesium.camera.inverseViewMatrix;console.log("cvm",e),console.log("civm",t),console.log("this.camera",this.camera),this.camera.lookAt(new THREE.Vector3(0,0,0)),this.camera.matrixWorld.set(t[0],t[4],t[8],t[12],t[1],t[5],t[9],t[13],t[2],t[6],t[10],t[14],t[3],t[7],t[11],t[15]),this.camera.matrixWorldInverse.set(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15]),console.log("this.camera",this.camera),console.log(this._viewer.nativeObjCesium.camera),this.renderer.setPixelRatio(window.devicePixelRatio);var i=this._viewer.nativeObjCesium.scene.canvas.clientWidth,n=this._viewer.nativeObjCesium.scene.canvas.clientHeight,r=this.renderer.domElement;(r.width!==i||r.height!==n)&&(this.resize(),this.renderer.setSize(i,n,!1)),this.camera.aspect=i/n,this.camera.fov=Cesium.Math.toDegrees(this._viewer.nativeObjCesium.camera.frustum.fovy),this.camera.updateProjectionMatrix(),this.renderer.render(this.scene,this.camera)}},{key:"resize",value:function(){if(this._threeCanvas){var e=this._viewer.nativeObjCesium.scene.canvas.clientWidth,t=this._viewer.nativeObjCesium.scene.canvas.clientHeight,i=this._threeCanvas;i.style.position="absolute",i.style.top="0px",i.style.left="0px",i.style.width=e+"px",i.style.height=t+"px"}}}]),i}(Ki);const _c=gc},506:(e,t,i)=>{"use strict";i.d(t,{Z:()=>a});var n=["version","accessToken","baseUrl","author","home_page","init","ready","use","mixin","Namespace","Initialized"],r={version:"1.4.3",accessToken:"",baseUrl:"/anov-gis-sdk/resources/",author:"zhanghf1309@chinaunicom.cn",home_page:"http://172.16.222.31:8866",Namespace:{},Initialized:!1};r.setBaseUrl=function(e){e&&(r.baseUrl=e,o&&o.buildModuleUrl.setBaseUrl(r.baseUrl))},r.mixin=function(e){for(var t in e)n.indexOf(t)<0&&(r[t]=e[t]);return this};var o=i(927);window.Cesium=o,r.mixin(i(480)),r.CopyRight._setContent(r),r.initEnvironment=function(){(o.buildModuleUrl.setBaseUrl(r.baseUrl),window.location.origin.startsWith("http")||self&&self!=top&&window.parent&&window.parent.location.origin.startsWith("http")&&r.baseUrl.indexOf("/anov-gis-sdk")>-1&&r.setBaseUrl(window.parent.location.origin+"/anov-gis-sdk/resources/"),self&&self!=top)&&(-1===function(){var e=null;if(parent!==window)try{e=parent.location.href}catch(t){e=document.referrer}return e}().indexOf(location.origin)||window.parent&&window.parent.location.pathname&&window.parent.location.pathname.startsWith("/anov-gis-sdk/")&&r.baseUrl.indexOf("/anov-gis-sdk")>-1&&r.setBaseUrl(window.parent.location.origin+"/anov-gis-sdk/anov-gis-sdk/resources/"));r.mixin(i(480)),Object.keys(r.Cesium_PART).forEach((function(e){r[e]=r.Cesium_PART[e]}))},r.ready=function(e){};const a=r},326:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=326,e.exports=t},486:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st ;\r\n vec2 center = vec2(0.5);\r\n float time = fract(czm_frameNumber * speed / 1000.0);\r\n float r = 0.5 + sin(time) / 3.0;\r\n float dis = distance(st, center);\r\n float a = 0.0;\r\n if(dis < r) {\r\n a = 1.0 - smoothstep(0.0, r, dis);\r\n }\r\n material.alpha = pow(a,10.0) ;\r\n material.diffuse = color.rgb * a * 3.0;\r\n return material;\r\n}\r\n"},724:e=>{e.exports="czm_material czm_getMaterial(czm_materialInput materialInput)\r\n{\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n vec4 colorImage = texture2D(image, vec2(fract(st.t - time), st.t));\r\n vec4 fragColor;\r\n fragColor.rgb = color.rgb / 1.0;\r\n fragColor = czm_gammaCorrect(fragColor);\r\n material.alpha = colorImage.a * color.a;\r\n material.diffuse = color.rgb;\r\n material.emission = fragColor.rgb;\r\n return material;\r\n}"},162:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\nuniform float percent;\r\nuniform float gradient;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n float t =fract(czm_frameNumber * speed / 1000.0);\r\n t *= (1.0 + percent);\r\n float alpha = smoothstep(t- percent, t, st.s) * step(-t, -st.s);\r\n alpha += gradient;\r\n material.diffuse = color.rgb;\r\n material.alpha = alpha;\r\n return material;\r\n}\r\n"},885:e=>{e.exports="\r\nuniform vec4 color;\r\nuniform float glowPower;\r\nuniform float taperPower;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput)\r\n{\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n\r\n vec2 st = materialInput.st;\r\n float glow = glowPower / abs(st.t - 0.5) - (glowPower / 0.5);\r\n\r\n if (taperPower <= 0.99999) {\r\n glow *= min(1.0, taperPower / (0.5 - st.s * 0.5) - (taperPower / 0.5));\r\n }\r\n\r\n vec4 fragColor;\r\n fragColor.rgb = max(vec3(glow - 1.0 + color.rgb), color.rgb);\r\n fragColor.a = clamp(0.0, 1.0, glow) * color.a;\r\n fragColor = czm_gammaCorrect(fragColor);\r\n\r\n material.emission = fragColor.rgb;\r\n material.alpha = fragColor.a;\r\n\r\n return material;\r\n}"},450:e=>{e.exports="czm_material czm_getMaterial(czm_materialInput materialInput)\r\n{\r\nczm_material material = czm_getDefaultMaterial(materialInput);\r\nvec2 st = materialInput.st;\r\nvec4 colorImage = texture2D(image, vec2(fract(st.s - time), st.t));\r\nmaterial.alpha = colorImage.a;\r\nmaterial.diffuse = colorImage.rgb * 1.5 ;\r\nreturn material;\r\n}"},529:e=>{e.exports="uniform sampler2D image;\r\nuniform float speed;\r\nuniform vec4 color;\r\nuniform vec2 repeat;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = repeat * materialInput.st;\r\n float time = fract(czm_frameNumber * speed / 1000.0);\r\n vec4 colorImage = texture2D(image, vec2(fract(st.s - time), st.t));\r\n if(color.a == 0.0){\r\n if(colorImage.rgb == vec3(1.0) || colorImage.rgb == vec3(0.0)){\r\n discard;\r\n }\r\n material.alpha = colorImage.a;\r\n material.diffuse = colorImage.rgb;\r\n }else{\r\n material.alpha = colorImage.a * color.a;\r\n material.diffuse = max(color.rgb * material.alpha * 3.0, color.rgb);\r\n }\r\n return material;\r\n}\r\n"},139:e=>{e.exports="uniform sampler2D image;\r\nuniform vec4 color;\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n vec4 colorImage = texture2D(image,st);\r\n vec3 fragColor = color.rgb;\r\n material.alpha = colorImage.a * color.a * 3.;\r\n material.diffuse = max(fragColor.rgb + colorImage.rgb , fragColor.rgb);\r\n return material;\r\n}\r\n\r\n"},852:e=>{e.exports="uniform sampler2D image;\r\nuniform vec4 color;\r\nuniform float speed;\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material=czm_getDefaultMaterial(materialInput);\r\n vec2 st=materialInput.st;\r\n float time=fract(czm_frameNumber*speed/1000.);\r\n vec4 colorImage=texture2D(image,st);\r\n vec3 fragColor=color.rgb;\r\n if(st.t>.36&&st.t<.64){\r\n fragColor=vec3(1.0);\r\n }\r\n if(color.a==0.){\r\n material.alpha=colorImage.a*2.*fract(st.s-time);\r\n material.diffuse=colorImage.rgb;\r\n }else{\r\n material.alpha = colorImage.a * color.a * 2.0 * smoothstep(.6,1., fract(st.s - time));\r\n // material.alpha=mix(color.a,colorImage.a,.3)*2.*smoothstep(.3,1.,fract(st.s-time));\r\n material.diffuse=max(fragColor.rgb*material.alpha,fragColor.rgb);\r\n }\r\n return material;\r\n}\r\n"},601:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\n\r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n float time = fract(czm_frameNumber * speed / 1000.0);\r\n material.diffuse = color.rgb;\r\n material.alpha = color.a * fract(st.s-time);\r\n return material;\r\n}"},750:e=>{e.exports="uniform vec4 color;\r\nuniform float speed;\r\nuniform float percent;\r\nuniform float gradient; \r\nczm_material czm_getMaterial(czm_materialInput materialInput){\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n vec2 st = materialInput.st;\r\n float t =fract(czm_frameNumber * speed / 1000.0);\r\n t *= (1.0 + percent);\r\n float alpha = smoothstep(t- percent, t, st.s) * step(-t, -st.s);\r\n alpha += gradient;\r\n material.diffuse = color.rgb;\r\n material.alpha = alpha;\r\n return material;\r\n}"},586:e=>{e.exports="czm_material czm_getMaterial(czm_materialInput materialInput) {\r\n czm_material material = czm_getDefaultMaterial(materialInput);\r\n material.diffuse = 1.5 * color.rgb;\r\n vec2 st = materialInput.st;\r\n vec3 str = materialInput.str;\r\n float dis = distance(st, vec2(0.5, 0.5));\r\n float per = fract(time);\r\n if (abs(str.z) > 0.001) {\r\n discard;\r\n }\r\n if (dis > 0.5) {\r\n discard;\r\n } else {\r\n float perDis = 0.5 / count;\r\n float disNum;\r\n float bl = .0;\r\n for (int i = 0; i <= 9; i++) {\r\n if (float(i) <= count) {\r\n disNum = perDis *float(i) - dis + per / count;\r\n if (disNum > 0.0) {\r\n if (disNum < perDis) {\r\n bl = 1.0 - disNum / perDis;\r\n } else if(disNum - perDis < perDis) {\r\n bl = 1.0 - abs(1.0 - disNum / perDis);\r\n }\r\n material.alpha = pow(bl, gradient);\r\n }\r\n }\r\n }\r\n }\r\n return material;\r\n}"},797:e=>{e.exports="varying vec2 v_textureCoordinates;\r\nuniform sampler2D colorTexture;\r\nuniform sampler2D depthTexture;\r\nuniform vec4 fogByDistance;\r\nuniform vec4 fogColor;\r\n\r\n\r\nfloat getDistance(sampler2D depthTexture, vec2 texCoords){\r\n float depth = czm_unpackDepth(texture2D(depthTexture, texCoords));\r\n if (depth == 0.0) {\r\n return czm_infinity;\r\n }\r\n vec4 eyeCoordinate = czm_windowToEyeCoordinates(gl_FragCoord.xy, depth);\r\n return -eyeCoordinate.z / eyeCoordinate.w;\r\n}\r\n\r\n\r\nfloat interpolateByDistance(vec4 nearFarScalar, float distance){\r\n float startDistance = nearFarScalar.x;\r\n float startValue = nearFarScalar.y;\r\n float endDistance = nearFarScalar.z;\r\n float endValue = nearFarScalar.w;\r\n float t = clamp((distance - startDistance) / (endDistance - startDistance), 0.0, 1.0);\r\n return mix(startValue, endValue, t);\r\n}\r\n\r\nvec4 alphaBlend(vec4 sourceColor, vec4 destinationColor){\r\n return sourceColor * vec4(sourceColor.aaa, 1.0) + destinationColor * (1.0 - sourceColor.a);\r\n}\r\n\r\nvoid main(void){\r\n float distance = getDistance(depthTexture, v_textureCoordinates);\r\n vec4 sceneColor = texture2D(colorTexture, v_textureCoordinates);\r\n float blendAmount = interpolateByDistance(fogByDistance, distance);\r\n vec4 finalFogColor = vec4(fogColor.rgb, fogColor.a * blendAmount);\r\n gl_FragColor = alphaBlend(finalFogColor, sceneColor);\r\n}\r\n"},802:e=>{e.exports="varying vec2 v_textureCoordinates;\r\nuniform sampler2D colorTexture;\r\nuniform float speed;\r\nuniform float mixNum;\r\n\r\nfloat hash(float x){\r\n return fract(sin(x*23.3)*13.13);\r\n}\r\n\r\nvoid main(){\r\n float time = czm_frameNumber * speed / 1000.0;\r\n vec2 resolution = czm_viewport.zw;\r\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\r\n vec3 c=vec3(.1,.2,.3);\r\n float a=-.3;\r\n float si=sin(a),co=cos(a);\r\n uv*=mat2(co,-si,si,co);\r\n uv*=length(uv+vec2(0.,4.9))*.3+1.;\r\n float v=1.-sin(hash(floor(uv.x*100.))*2.);\r\n float b=clamp(abs(sin(20.*time*v+uv.y*(5./(2.+v))))-.95,0.,1.)*10.;\r\n c*=v*b;\r\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(c,1), mixNum);\r\n}\r\n"},87:e=>{e.exports="varying vec2 v_textureCoordinates;\r\nuniform sampler2D colorTexture;\r\nuniform float speed;\r\n\r\nfloat snow(vec2 uv,float scale){\r\n float time = czm_frameNumber * speed / 1000.0 ;\r\n float w=smoothstep(1.,0.,-uv.y*(scale/10.));\r\n if(w<.1)return 0.;\r\n uv+=time/scale;\r\n uv.y+=time*2./scale;\r\n uv.x+=sin(uv.y+time*.5)/scale;\r\n uv*=scale;\r\n vec2 s=floor(uv),f=fract(uv),p;\r\n float k=3.,d;\r\n p=.5+.35*sin(11.*fract(sin((s+p+scale)*mat2(7.,3.,6.,5.))*5.))-f;\r\n d=length(p);\r\n k=min(d,k);\r\n k=smoothstep(0.,k,sin(f.x+f.y)*0.01);\r\n return k*w;\r\n}\r\n\r\nvoid main(){\r\n vec2 resolution = czm_viewport.zw;\r\n vec2 uv=(gl_FragCoord.xy*2.-resolution.xy)/min(resolution.x,resolution.y);\r\n vec3 finalColor=vec3(0.);\r\n float c = 0.0;\r\n c+=snow(uv,10.);\r\n c+=snow(uv,8.);\r\n c+=snow(uv,6.);\r\n c+=snow(uv,5.);\r\n finalColor=(vec3(c));\r\n gl_FragColor = mix(texture2D(colorTexture, v_textureCoordinates), vec4(finalColor,1), 0.3);\r\n}\r\n"},545:e=>{e.exports=n,e.exports.parse=n,e.exports.stringify=function e(t){"Feature"===t.type&&(t=t.geometry);function i(e){return e.join(" ")}function n(e){return e.map(i).join(", ")}function r(e){return e.map(n).map(o).join(", ")}function o(e){return"("+e+")"}switch(t.type){case"Point":return"POINT ("+i(t.coordinates)+")";case"LineString":return"LINESTRING ("+n(t.coordinates)+")";case"Polygon":return"POLYGON ("+r(t.coordinates)+")";case"MultiPoint":return"MULTIPOINT ("+n(t.coordinates)+")";case"MultiPolygon":return"MULTIPOLYGON ("+(t.coordinates.map(r).map(o).join(", ")+")");case"MultiLineString":return"MULTILINESTRING ("+r(t.coordinates)+")";case"GeometryCollection":return"GEOMETRYCOLLECTION ("+t.geometries.map(e).join(", ")+")";default:throw new Error("stringify requires a valid GeoJSON Feature or geometry object as input")}};var t=/[-+]?([0-9]*\.[0-9]+|[0-9]+)([eE][-+]?[0-9]+)?/,i=new RegExp("^"+t.source+"(\\s"+t.source+"){1,}");function n(e){var t,n=e.split(";"),r=n.pop(),o=(n.shift()||"").split("=").pop(),a=0;function s(e){var t=r.substring(a).match(e);return t?(a+=t[0].length,t[0]):null}function c(){s(/^\s*/)}function l(){c();for(var e,t=0,n=[],r=[n],o=n;e=s(/^(\()/)||s(/^(\))/)||s(/^(,)/)||s(i);){if("("===e)r.push(o),o=[],r[r.length-1].push(o),t++;else if(")"===e){if(0===o.length)return null;if(!(o=r.pop()))return null;if(0===--t)break}else if(","===e)o=[],r[r.length-1].push(o);else{if(e.split(/\s/g).some(isNaN))return null;Array.prototype.push.apply(o,e.split(/\s/g).map(parseFloat))}c()}return 0!==t?null:n}function u(){for(var e,t,n=[];t=s(i)||s(/^(,)/);)","===t?(n.push(e),e=[]):t.split(/\s/g).some(isNaN)||(e||(e=[]),Array.prototype.push.apply(e,t.split(/\s/g).map(parseFloat))),c();return e?(n.push(e),n.length?n:null):null}function d(){return function(){if(!s(/^(point(\sz)?)/i))return null;if(c(),!s(/^(\()/))return null;var e=u();return e?(c(),s(/^(\))/)?{type:"Point",coordinates:e[0]}:null):null}()||function(){if(!s(/^(linestring(\sz)?)/i))return null;if(c(),!s(/^(\()/))return null;var e=u();return e&&s(/^(\))/)?{type:"LineString",coordinates:e}:null}()||function(){if(!s(/^(polygon(\sz)?)/i))return null;c();var e=l();return e?{type:"Polygon",coordinates:e}:null}()||function(){if(!s(/^(multipoint)/i))return null;c();var e=r.substring(r.indexOf("(")+1,r.length-1).replace(/\(/g,"").replace(/\)/g,"");r="MULTIPOINT ("+e+")";var t=l();return t?(c(),{type:"MultiPoint",coordinates:t}):null}()||function(){if(!s(/^(multilinestring)/i))return null;c();var e=l();return e?(c(),{type:"MultiLineString",coordinates:e}):null}()||function(){if(!s(/^(multipolygon)/i))return null;c();var e=l();return e?{type:"MultiPolygon",coordinates:e}:null}()||function(){var e,t=[];if(!s(/^(geometrycollection)/i))return null;if(c(),!s(/^(\()/))return null;for(;e=d();)t.push(e),c(),s(/^(,)/),c();return s(/^(\))/)?{type:"GeometryCollection",geometries:t}:null}()}return(t=d())&&o.match(/\d+/)&&(t.crs={type:"name",properties:{name:"urn:ogc:def:crs:EPSG::"+o}}),t}},527:()=>{},261:()=>{},361:()=>{},936:()=>{},61:(e,t,i)=>{var n=i(698).default;function r(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=r=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(e,t,i){e[t]=i.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,i){return e[t]=i}}function h(e,t,i,n){var r=t&&t.prototype instanceof m?t:m,o=Object.create(r.prototype),s=new D(n||[]);return a(o,"_invoke",{value:b(e,i,s)}),o}function p(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var f={};function m(){}function g(){}function _(){}var y={};d(y,c,(function(){return this}));var C=Object.getPrototypeOf,v=C&&C(C(w([])));v&&v!==i&&o.call(v,c)&&(y=v);var T=_.prototype=m.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function i(r,a,s,c){var l=p(e[r],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==n(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,s,c)}),(function(e){i("throw",e,s,c)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return i("throw",e,s,c)}))}c(l.arg)}var r;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,r){i(e,n,t,r)}))}return r=r?r.then(o,o):o()}})}function b(e,t,i){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return M()}for(i.method=r,i.arg=o;;){var a=i.delegate;if(a){var s=E(a,i);if(s){if(s===f)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===n)throw n="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n="executing";var c=p(e,t,i);if("normal"===c.type){if(n=i.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(n="completed",i.method="throw",i.arg=c.arg)}}}function E(e,t){var i=t.method,n=e.iterator[i];if(void 0===n)return t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+i+"' method")),f;var r=p(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function w(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,n=function t(){for(;++i<e.length;)if(o.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:M}}function M(){return{value:void 0,done:!0}}return g.prototype=_,a(T,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:g,configurable:!0}),g.displayName=d(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,u,"GeneratorFunction")),e.prototype=Object.create(T),e},t.awrap=function(e){return{__await:e}},S(A.prototype),d(A.prototype,l,(function(){return this})),t.AsyncIterator=A,t.async=function(e,i,n,r,o){void 0===o&&(o=Promise);var a=new A(h(e,i,n,r),o);return t.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(T),d(T,u,"Generator"),d(T,c,(function(){return this})),d(T,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),i=[];for(var n in t)i.push(n);return i.reverse(),function e(){for(;i.length;){var n=i.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=w,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(P),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,n){return a.type="throw",a.arg=e,t.next=i,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(s&&c){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,f):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),P(i),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var r=n.arg;P(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:w(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),f}},t}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},698:e=>{function t(i){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:(e,t,i)=>{var n=i(61)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},927:function(__unused_webpack_module,exports,__webpack_require__){var t;t=function(exports){"use strict";function defined(e){return null!=e}function DeveloperError(e){let t;this.name="DeveloperError",this.message=e;try{throw new Error}catch(e){t=e.stack}this.stack=t}defined(Object.create)&&(DeveloperError.prototype=Object.create(Error.prototype),DeveloperError.prototype.constructor=DeveloperError),DeveloperError.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return defined(this.stack)&&(e+=`\n${this.stack.toString()}`),e},DeveloperError.throwInstantiationError=function(){throw new DeveloperError("This function defines an interface and should not be called directly.")};const Check={};function getUndefinedErrorMessage(e){return`${e} is required, actual value was undefined`}function getFailedTypeErrorMessage(e,t,i){return`Expected ${i} to be typeof ${t}, actual typeof was ${e}`}function defaultValue(e,t){return null!=e?e:t}Check.typeOf={},Check.defined=function(e,t){if(!defined(t))throw new DeveloperError(getUndefinedErrorMessage(e))},Check.typeOf.func=function(e,t){if("function"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"function",e))},Check.typeOf.string=function(e,t){if("string"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"string",e))},Check.typeOf.number=function(e,t){if("number"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"number",e))},Check.typeOf.number.lessThan=function(e,t,i){if(Check.typeOf.number(e,t),t>=i)throw new DeveloperError(`Expected ${e} to be less than ${i}, actual value was ${t}`)},Check.typeOf.number.lessThanOrEquals=function(e,t,i){if(Check.typeOf.number(e,t),t>i)throw new DeveloperError(`Expected ${e} to be less than or equal to ${i}, actual value was ${t}`)},Check.typeOf.number.greaterThan=function(e,t,i){if(Check.typeOf.number(e,t),t<=i)throw new DeveloperError(`Expected ${e} to be greater than ${i}, actual value was ${t}`)},Check.typeOf.number.greaterThanOrEquals=function(e,t,i){if(Check.typeOf.number(e,t),t<i)throw new DeveloperError(`Expected ${e} to be greater than or equal to ${i}, actual value was ${t}`)},Check.typeOf.object=function(e,t){if("object"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"object",e))},Check.typeOf.bool=function(e,t){if("boolean"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"boolean",e))},Check.typeOf.bigint=function(e,t){if("bigint"!=typeof t)throw new DeveloperError(getFailedTypeErrorMessage(typeof t,"bigint",e))},Check.typeOf.number.equals=function(e,t,i,n){if(Check.typeOf.number(e,i),Check.typeOf.number(t,n),i!==n)throw new DeveloperError(`${e} must be equal to ${t}, the actual values are ${i} and ${n}`)},defaultValue.EMPTY_OBJECT=Object.freeze({});var MersenneTwister=function(e){null==e&&(e=(new Date).getTime()),this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,e.constructor==Array?this.init_by_array(e,e.length):this.init_seed(e)};MersenneTwister.prototype.init_seed=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},MersenneTwister.prototype.init_by_array=function(e,t){var i,n,r;for(this.init_seed(19650218),i=1,n=0,r=this.N>t?this.N:t;r;r--){var o=this.mt[i-1]^this.mt[i-1]>>>30;this.mt[i]=(this.mt[i]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+e[n]+n,this.mt[i]>>>=0,n++,++i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1),n>=t&&(n=0)}for(r=this.N-1;r;r--)o=this.mt[i-1]^this.mt[i-1]>>>30,this.mt[i]=(this.mt[i]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-i,this.mt[i]>>>=0,++i>=this.N&&(this.mt[0]=this.mt[this.N-1],i=1);this.mt[0]=2147483648},MersenneTwister.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var i;for(this.mti==this.N+1&&this.init_seed(5489),i=0;i<this.N-this.M;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+this.M]^e>>>1^t[1&e];for(;i<this.N-1;i++)e=this.mt[i]&this.UPPER_MASK|this.mt[i+1]&this.LOWER_MASK,this.mt[i]=this.mt[i+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,(e^=e>>>18)>>>0},MersenneTwister.prototype.random_int31=function(){return this.random_int()>>>1},MersenneTwister.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},MersenneTwister.prototype.random=function(){return this.random_int()*(1/4294967296)},MersenneTwister.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},MersenneTwister.prototype.random_long=function(){return(67108864*(this.random_int()>>>5)+(this.random_int()>>>6))*(1/9007199254740992)};var mersenneTwister=MersenneTwister;const CesiumMath={EPSILON1:.1,EPSILON2:.01,EPSILON3:.001,EPSILON4:1e-4,EPSILON5:1e-5,EPSILON6:1e-6,EPSILON7:1e-7,EPSILON8:1e-8,EPSILON9:1e-9,EPSILON10:1e-10,EPSILON11:1e-11,EPSILON12:1e-12,EPSILON13:1e-13,EPSILON14:1e-14,EPSILON15:1e-15,EPSILON16:1e-16,EPSILON17:1e-17,EPSILON18:1e-18,EPSILON19:1e-19,EPSILON20:1e-20,EPSILON21:1e-21,GRAVITATIONALPARAMETER:3986004418e5,SOLAR_RADIUS:6955e5,LUNAR_RADIUS:1737400,SIXTY_FOUR_KILOBYTES:65536,FOUR_GIGABYTES:4294967296};CesiumMath.sign=defaultValue(Math.sign,(function(e){return 0==(e=+e)||e!=e?e:e>0?1:-1})),CesiumMath.signNotZero=function(e){return e<0?-1:1},CesiumMath.toSNorm=function(e,t){return t=defaultValue(t,255),Math.round((.5*CesiumMath.clamp(e,-1,1)+.5)*t)},CesiumMath.fromSNorm=function(e,t){return t=defaultValue(t,255),CesiumMath.clamp(e,0,t)/t*2-1},CesiumMath.normalize=function(e,t,i){return 0===(i=Math.max(i-t,0))?0:CesiumMath.clamp((e-t)/i,0,1)},CesiumMath.sinh=defaultValue(Math.sinh,(function(e){return(Math.exp(e)-Math.exp(-e))/2})),CesiumMath.cosh=defaultValue(Math.cosh,(function(e){return(Math.exp(e)+Math.exp(-e))/2})),CesiumMath.lerp=function(e,t,i){return(1-i)*e+i*t},CesiumMath.PI=Math.PI,CesiumMath.ONE_OVER_PI=1/Math.PI,CesiumMath.PI_OVER_TWO=Math.PI/2,CesiumMath.PI_OVER_THREE=Math.PI/3,CesiumMath.PI_OVER_FOUR=Math.PI/4,CesiumMath.PI_OVER_SIX=Math.PI/6,CesiumMath.THREE_PI_OVER_TWO=3*Math.PI/2,CesiumMath.TWO_PI=2*Math.PI,CesiumMath.ONE_OVER_TWO_PI=1/(2*Math.PI),CesiumMath.RADIANS_PER_DEGREE=Math.PI/180,CesiumMath.DEGREES_PER_RADIAN=180/Math.PI,CesiumMath.RADIANS_PER_ARCSECOND=CesiumMath.RADIANS_PER_DEGREE/3600,CesiumMath.toRadians=function(e){return e*CesiumMath.RADIANS_PER_DEGREE},CesiumMath.toDegrees=function(e){return e*CesiumMath.DEGREES_PER_RADIAN},CesiumMath.convertLongitudeRange=function(e){const t=CesiumMath.TWO_PI,i=e-Math.floor(e/t)*t;return i<-Math.PI?i+t:i>=Math.PI?i-t:i},CesiumMath.clampToLatitudeRange=function(e){return CesiumMath.clamp(e,-1*CesiumMath.PI_OVER_TWO,CesiumMath.PI_OVER_TWO)},CesiumMath.negativePiToPi=function(e){return e>=-CesiumMath.PI&&e<=CesiumMath.PI?e:CesiumMath.zeroToTwoPi(e+CesiumMath.PI)-CesiumMath.PI},CesiumMath.zeroToTwoPi=function(e){if(e>=0&&e<=CesiumMath.TWO_PI)return e;const t=CesiumMath.mod(e,CesiumMath.TWO_PI);return Math.abs(t)<CesiumMath.EPSILON14&&Math.abs(e)>CesiumMath.EPSILON14?CesiumMath.TWO_PI:t},CesiumMath.mod=function(e,t){return CesiumMath.sign(e)===CesiumMath.sign(t)&&Math.abs(e)<Math.abs(t)?e:(e%t+t)%t},CesiumMath.equalsEpsilon=function(e,t,i,n){i=defaultValue(i,0),n=defaultValue(n,i);const r=Math.abs(e-t);return r<=n||r<=i*Math.max(Math.abs(e),Math.abs(t))},CesiumMath.lessThan=function(e,t,i){return e-t<-i},CesiumMath.lessThanOrEquals=function(e,t,i){return e-t<i},CesiumMath.greaterThan=function(e,t,i){return e-t>i},CesiumMath.greaterThanOrEquals=function(e,t,i){return e-t>-i};const factorials=[1];CesiumMath.factorial=function(e){const t=factorials.length;if(e>=t){let i=factorials[t-1];for(let n=t;n<=e;n++){const e=i*n;factorials.push(e),i=e}}return factorials[e]},CesiumMath.incrementWrap=function(e,t,i){return i=defaultValue(i,0),++e>t&&(e=i),e},CesiumMath.isPowerOfTwo=function(e){return 0!==e&&0==(e&e-1)},CesiumMath.nextPowerOfTwo=function(e){return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e},CesiumMath.previousPowerOfTwo=function(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,((e|=e>>32)>>>0)-(e>>>1)},CesiumMath.clamp=function(e,t,i){return e<t?t:e>i?i:e};let randomNumberGenerator$2=new mersenneTwister;function Cartesian3(e,t,i){this.x=defaultValue(e,0),this.y=defaultValue(t,0),this.z=defaultValue(i,0)}CesiumMath.setRandomNumberSeed=function(e){randomNumberGenerator$2=new mersenneTwister(e)},CesiumMath.nextRandomNumber=function(){return randomNumberGenerator$2.random()},CesiumMath.randomBetween=function(e,t){return CesiumMath.nextRandomNumber()*(t-e)+e},CesiumMath.acosClamped=function(e){return Math.acos(CesiumMath.clamp(e,-1,1))},CesiumMath.asinClamped=function(e){return Math.asin(CesiumMath.clamp(e,-1,1))},CesiumMath.chordLength=function(e,t){return 2*t*Math.sin(.5*e)},CesiumMath.logBase=function(e,t){return Math.log(e)/Math.log(t)},CesiumMath.cbrt=defaultValue(Math.cbrt,(function(e){const t=Math.pow(Math.abs(e),1/3);return e<0?-t:t})),CesiumMath.log2=defaultValue(Math.log2,(function(e){return Math.log(e)*Math.LOG2E})),CesiumMath.fog=function(e,t){const i=e*t;return 1-Math.exp(-i*i)},CesiumMath.fastApproximateAtan=function(e){return e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)},CesiumMath.fastApproximateAtan2=function(e,t){let i,n=Math.abs(e);i=Math.abs(t);const r=Math.max(n,i);i=Math.min(n,i);const o=i/r;return n=CesiumMath.fastApproximateAtan(o),n=Math.abs(t)>Math.abs(e)?CesiumMath.PI_OVER_TWO-n:n,n=e<0?CesiumMath.PI-n:n,n=t<0?-n:n,n},Cartesian3.fromSpherical=function(e,t){defined(t)||(t=new Cartesian3);const i=e.clock,n=e.cone,r=defaultValue(e.magnitude,1),o=r*Math.sin(n);return t.x=o*Math.cos(i),t.y=o*Math.sin(i),t.z=r*Math.cos(n),t},Cartesian3.fromElements=function(e,t,i,n){return defined(n)?(n.x=e,n.y=t,n.z=i,n):new Cartesian3(e,t,i)},Cartesian3.clone=function(e,t){if(defined(e))return defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new Cartesian3(e.x,e.y,e.z)},Cartesian3.fromCartesian4=Cartesian3.clone,Cartesian3.packedLength=3,Cartesian3.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e.x,t[i++]=e.y,t[i]=e.z,t},Cartesian3.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Cartesian3),i.x=e[t++],i.y=e[t++],i.z=e[t],i},Cartesian3.packArray=function(e,t){const i=e.length,n=3*i;defined(t)?(Array.isArray(t)||t.length===n)&&t.length!==n&&(t.length=n):t=new Array(n);for(let n=0;n<i;++n)Cartesian3.pack(e[n],t,3*n);return t},Cartesian3.unpackArray=function(e,t){const i=e.length;defined(t)?t.length=i/3:t=new Array(i/3);for(let n=0;n<i;n+=3){const i=n/3;t[i]=Cartesian3.unpack(e,n,t[i])}return t},Cartesian3.fromArray=Cartesian3.unpack,Cartesian3.maximumComponent=function(e){return Math.max(e.x,e.y,e.z)},Cartesian3.minimumComponent=function(e){return Math.min(e.x,e.y,e.z)},Cartesian3.minimumByComponent=function(e,t,i){return i.x=Math.min(e.x,t.x),i.y=Math.min(e.y,t.y),i.z=Math.min(e.z,t.z),i},Cartesian3.maximumByComponent=function(e,t,i){return i.x=Math.max(e.x,t.x),i.y=Math.max(e.y,t.y),i.z=Math.max(e.z,t.z),i},Cartesian3.clamp=function(e,t,i,n){const r=CesiumMath.clamp(e.x,t.x,i.x),o=CesiumMath.clamp(e.y,t.y,i.y),a=CesiumMath.clamp(e.z,t.z,i.z);return n.x=r,n.y=o,n.z=a,n},Cartesian3.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z},Cartesian3.magnitude=function(e){return Math.sqrt(Cartesian3.magnitudeSquared(e))};const distanceScratch$3=new Cartesian3;Cartesian3.distance=function(e,t){return Cartesian3.subtract(e,t,distanceScratch$3),Cartesian3.magnitude(distanceScratch$3)},Cartesian3.distanceSquared=function(e,t){return Cartesian3.subtract(e,t,distanceScratch$3),Cartesian3.magnitudeSquared(distanceScratch$3)},Cartesian3.normalize=function(e,t){const i=Cartesian3.magnitude(e);return t.x=e.x/i,t.y=e.y/i,t.z=e.z/i,t},Cartesian3.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z},Cartesian3.multiplyComponents=function(e,t,i){return i.x=e.x*t.x,i.y=e.y*t.y,i.z=e.z*t.z,i},Cartesian3.divideComponents=function(e,t,i){return i.x=e.x/t.x,i.y=e.y/t.y,i.z=e.z/t.z,i},Cartesian3.add=function(e,t,i){return i.x=e.x+t.x,i.y=e.y+t.y,i.z=e.z+t.z,i},Cartesian3.subtract=function(e,t,i){return i.x=e.x-t.x,i.y=e.y-t.y,i.z=e.z-t.z,i},Cartesian3.multiplyByScalar=function(e,t,i){return i.x=e.x*t,i.y=e.y*t,i.z=e.z*t,i},Cartesian3.divideByScalar=function(e,t,i){return i.x=e.x/t,i.y=e.y/t,i.z=e.z/t,i},Cartesian3.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t},Cartesian3.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t};const lerpScratch$3=new Cartesian3;Cartesian3.lerp=function(e,t,i,n){return Cartesian3.multiplyByScalar(t,i,lerpScratch$3),n=Cartesian3.multiplyByScalar(e,1-i,n),Cartesian3.add(lerpScratch$3,n,n)};const angleBetweenScratch$1=new Cartesian3,angleBetweenScratch2$1=new Cartesian3;Cartesian3.angleBetween=function(e,t){Cartesian3.normalize(e,angleBetweenScratch$1),Cartesian3.normalize(t,angleBetweenScratch2$1);const i=Cartesian3.dot(angleBetweenScratch$1,angleBetweenScratch2$1),n=Cartesian3.magnitude(Cartesian3.cross(angleBetweenScratch$1,angleBetweenScratch2$1,angleBetweenScratch$1));return Math.atan2(n,i)};const mostOrthogonalAxisScratch$2=new Cartesian3;Cartesian3.mostOrthogonalAxis=function(e,t){const i=Cartesian3.normalize(e,mostOrthogonalAxisScratch$2);return Cartesian3.abs(i,i),i.x<=i.y?i.x<=i.z?Cartesian3.clone(Cartesian3.UNIT_X,t):Cartesian3.clone(Cartesian3.UNIT_Z,t):i.y<=i.z?Cartesian3.clone(Cartesian3.UNIT_Y,t):Cartesian3.clone(Cartesian3.UNIT_Z,t)},Cartesian3.projectVector=function(e,t,i){const n=Cartesian3.dot(e,t)/Cartesian3.dot(t,t);return Cartesian3.multiplyByScalar(t,n,i)},Cartesian3.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z},Cartesian3.equalsArray=function(e,t,i){return e.x===t[i]&&e.y===t[i+1]&&e.z===t[i+2]},Cartesian3.equalsEpsilon=function(e,t,i,n){return e===t||defined(e)&&defined(t)&&CesiumMath.equalsEpsilon(e.x,t.x,i,n)&&CesiumMath.equalsEpsilon(e.y,t.y,i,n)&&CesiumMath.equalsEpsilon(e.z,t.z,i,n)},Cartesian3.cross=function(e,t,i){const n=e.x,r=e.y,o=e.z,a=t.x,s=t.y,c=t.z,l=r*c-o*s,u=o*a-n*c,d=n*s-r*a;return i.x=l,i.y=u,i.z=d,i},Cartesian3.midpoint=function(e,t,i){return i.x=.5*(e.x+t.x),i.y=.5*(e.y+t.y),i.z=.5*(e.z+t.z),i},Cartesian3.fromDegrees=function(e,t,i,n,r){return e=CesiumMath.toRadians(e),t=CesiumMath.toRadians(t),Cartesian3.fromRadians(e,t,i,n,r)};let scratchN=new Cartesian3,scratchK=new Cartesian3;const wgs84RadiiSquared=new Cartesian3(40680631590769,40680631590769,40408299984661.445);Cartesian3.fromRadians=function(e,t,i,n,r){i=defaultValue(i,0);const o=defined(n)?n.radiiSquared:wgs84RadiiSquared,a=Math.cos(t);scratchN.x=a*Math.cos(e),scratchN.y=a*Math.sin(e),scratchN.z=Math.sin(t),scratchN=Cartesian3.normalize(scratchN,scratchN),Cartesian3.multiplyComponents(o,scratchN,scratchK);const s=Math.sqrt(Cartesian3.dot(scratchN,scratchK));return scratchK=Cartesian3.divideByScalar(scratchK,s,scratchK),scratchN=Cartesian3.multiplyByScalar(scratchN,i,scratchN),defined(r)||(r=new Cartesian3),Cartesian3.add(scratchK,scratchN,r)},Cartesian3.fromDegreesArray=function(e,t,i){const n=e.length;defined(i)?i.length=n/2:i=new Array(n/2);for(let r=0;r<n;r+=2){const n=e[r],o=e[r+1],a=r/2;i[a]=Cartesian3.fromDegrees(n,o,0,t,i[a])}return i},Cartesian3.fromRadiansArray=function(e,t,i){const n=e.length;defined(i)?i.length=n/2:i=new Array(n/2);for(let r=0;r<n;r+=2){const n=e[r],o=e[r+1],a=r/2;i[a]=Cartesian3.fromRadians(n,o,0,t,i[a])}return i},Cartesian3.fromDegreesArrayHeights=function(e,t,i){const n=e.length;defined(i)?i.length=n/3:i=new Array(n/3);for(let r=0;r<n;r+=3){const n=e[r],o=e[r+1],a=e[r+2],s=r/3;i[s]=Cartesian3.fromDegrees(n,o,a,t,i[s])}return i},Cartesian3.fromRadiansArrayHeights=function(e,t,i){const n=e.length;defined(i)?i.length=n/3:i=new Array(n/3);for(let r=0;r<n;r+=3){const n=e[r],o=e[r+1],a=e[r+2],s=r/3;i[s]=Cartesian3.fromRadians(n,o,a,t,i[s])}return i},Cartesian3.ZERO=Object.freeze(new Cartesian3(0,0,0)),Cartesian3.ONE=Object.freeze(new Cartesian3(1,1,1)),Cartesian3.UNIT_X=Object.freeze(new Cartesian3(1,0,0)),Cartesian3.UNIT_Y=Object.freeze(new Cartesian3(0,1,0)),Cartesian3.UNIT_Z=Object.freeze(new Cartesian3(0,0,1)),Cartesian3.prototype.clone=function(e){return Cartesian3.clone(this,e)},Cartesian3.prototype.equals=function(e){return Cartesian3.equals(this,e)},Cartesian3.prototype.equalsEpsilon=function(e,t,i){return Cartesian3.equalsEpsilon(this,e,t,i)},Cartesian3.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z})`};const scaleToGeodeticSurfaceIntersection=new Cartesian3,scaleToGeodeticSurfaceGradient=new Cartesian3;function scaleToGeodeticSurface(e,t,i,n,r){const o=e.x,a=e.y,s=e.z,c=t.x,l=t.y,u=t.z,d=o*o*c*c,h=a*a*l*l,p=s*s*u*u,f=d+h+p,m=Math.sqrt(1/f),g=Cartesian3.multiplyByScalar(e,m,scaleToGeodeticSurfaceIntersection);if(f<n)return isFinite(m)?Cartesian3.clone(g,r):void 0;const _=i.x,y=i.y,C=i.z,v=scaleToGeodeticSurfaceGradient;v.x=g.x*_*2,v.y=g.y*y*2,v.z=g.z*C*2;let T,S,A,b,E,x,P,D,w,M,I,R=(1-m)*Cartesian3.magnitude(e)/(.5*Cartesian3.magnitude(v)),O=0;do{R-=O,A=1/(1+R*_),b=1/(1+R*y),E=1/(1+R*C),x=A*A,P=b*b,D=E*E,w=x*A,M=P*b,I=D*E,T=d*x+h*P+p*D-1,S=d*w*_+h*M*y+p*I*C,O=T/(-2*S)}while(Math.abs(T)>CesiumMath.EPSILON12);return defined(r)?(r.x=o*A,r.y=a*b,r.z=s*E,r):new Cartesian3(o*A,a*b,s*E)}function Cartographic(e,t,i){this.longitude=defaultValue(e,0),this.latitude=defaultValue(t,0),this.height=defaultValue(i,0)}Cartographic.fromRadians=function(e,t,i,n){return i=defaultValue(i,0),defined(n)?(n.longitude=e,n.latitude=t,n.height=i,n):new Cartographic(e,t,i)},Cartographic.fromDegrees=function(e,t,i,n){return e=CesiumMath.toRadians(e),t=CesiumMath.toRadians(t),Cartographic.fromRadians(e,t,i,n)};const cartesianToCartographicN$1=new Cartesian3,cartesianToCartographicP$1=new Cartesian3,cartesianToCartographicH$1=new Cartesian3,wgs84OneOverRadii=new Cartesian3(1/6378137,1/6378137,1/6356752.314245179),wgs84OneOverRadiiSquared=new Cartesian3(1/40680631590769,1/40680631590769,1/40408299984661.445),wgs84CenterToleranceSquared=CesiumMath.EPSILON1;function initialize$p(e,t,i,n){t=defaultValue(t,0),i=defaultValue(i,0),n=defaultValue(n,0),e._radii=new Cartesian3(t,i,n),e._radiiSquared=new Cartesian3(t*t,i*i,n*n),e._radiiToTheFourth=new Cartesian3(t*t*t*t,i*i*i*i,n*n*n*n),e._oneOverRadii=new Cartesian3(0===t?0:1/t,0===i?0:1/i,0===n?0:1/n),e._oneOverRadiiSquared=new Cartesian3(0===t?0:1/(t*t),0===i?0:1/(i*i),0===n?0:1/(n*n)),e._minimumRadius=Math.min(t,i,n),e._maximumRadius=Math.max(t,i,n),e._centerToleranceSquared=CesiumMath.EPSILON1,0!==e._radiiSquared.z&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function Ellipsoid(e,t,i){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,initialize$p(this,e,t,i)}Cartographic.fromCartesian=function(e,t,i){const n=defined(t)?t.oneOverRadii:wgs84OneOverRadii,r=defined(t)?t.oneOverRadiiSquared:wgs84OneOverRadiiSquared,o=scaleToGeodeticSurface(e,n,r,defined(t)?t._centerToleranceSquared:wgs84CenterToleranceSquared,cartesianToCartographicP$1);if(!defined(o))return;let a=Cartesian3.multiplyComponents(o,r,cartesianToCartographicN$1);a=Cartesian3.normalize(a,a);const s=Cartesian3.subtract(e,o,cartesianToCartographicH$1),c=Math.atan2(a.y,a.x),l=Math.asin(a.z),u=CesiumMath.sign(Cartesian3.dot(s,e))*Cartesian3.magnitude(s);return defined(i)?(i.longitude=c,i.latitude=l,i.height=u,i):new Cartographic(c,l,u)},Cartographic.toCartesian=function(e,t,i){return Cartesian3.fromRadians(e.longitude,e.latitude,e.height,t,i)},Cartographic.clone=function(e,t){if(defined(e))return defined(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Cartographic(e.longitude,e.latitude,e.height)},Cartographic.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height},Cartographic.equalsEpsilon=function(e,t,i){return i=defaultValue(i,0),e===t||defined(e)&&defined(t)&&Math.abs(e.longitude-t.longitude)<=i&&Math.abs(e.latitude-t.latitude)<=i&&Math.abs(e.height-t.height)<=i},Cartographic.ZERO=Object.freeze(new Cartographic(0,0,0)),Cartographic.prototype.clone=function(e){return Cartographic.clone(this,e)},Cartographic.prototype.equals=function(e){return Cartographic.equals(this,e)},Cartographic.prototype.equalsEpsilon=function(e,t){return Cartographic.equalsEpsilon(this,e,t)},Cartographic.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`},Object.defineProperties(Ellipsoid.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}}),Ellipsoid.clone=function(e,t){if(!defined(e))return;const i=e._radii;return defined(t)?(Cartesian3.clone(i,t._radii),Cartesian3.clone(e._radiiSquared,t._radiiSquared),Cartesian3.clone(e._radiiToTheFourth,t._radiiToTheFourth),Cartesian3.clone(e._oneOverRadii,t._oneOverRadii),Cartesian3.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new Ellipsoid(i.x,i.y,i.z)},Ellipsoid.fromCartesian3=function(e,t){return defined(t)||(t=new Ellipsoid),defined(e)?(initialize$p(t,e.x,e.y,e.z),t):t},Ellipsoid.WGS84=Object.freeze(new Ellipsoid(6378137,6378137,6356752.314245179)),Ellipsoid.UNIT_SPHERE=Object.freeze(new Ellipsoid(1,1,1)),Ellipsoid.MOON=Object.freeze(new Ellipsoid(CesiumMath.LUNAR_RADIUS,CesiumMath.LUNAR_RADIUS,CesiumMath.LUNAR_RADIUS)),Ellipsoid.prototype.clone=function(e){return Ellipsoid.clone(this,e)},Ellipsoid.packedLength=Cartesian3.packedLength,Ellipsoid.pack=function(e,t,i){return i=defaultValue(i,0),Cartesian3.pack(e._radii,t,i),t},Ellipsoid.unpack=function(e,t,i){t=defaultValue(t,0);const n=Cartesian3.unpack(e,t);return Ellipsoid.fromCartesian3(n,i)},Ellipsoid.prototype.geocentricSurfaceNormal=Cartesian3.normalize,Ellipsoid.prototype.geodeticSurfaceNormalCartographic=function(e,t){const i=e.longitude,n=e.latitude,r=Math.cos(n),o=r*Math.cos(i),a=r*Math.sin(i),s=Math.sin(n);return defined(t)||(t=new Cartesian3),t.x=o,t.y=a,t.z=s,Cartesian3.normalize(t,t)},Ellipsoid.prototype.geodeticSurfaceNormal=function(e,t){if(!Cartesian3.equalsEpsilon(e,Cartesian3.ZERO,CesiumMath.EPSILON14))return defined(t)||(t=new Cartesian3),t=Cartesian3.multiplyComponents(e,this._oneOverRadiiSquared,t),Cartesian3.normalize(t,t)};const cartographicToCartesianNormal=new Cartesian3,cartographicToCartesianK=new Cartesian3;Ellipsoid.prototype.cartographicToCartesian=function(e,t){const i=cartographicToCartesianNormal,n=cartographicToCartesianK;this.geodeticSurfaceNormalCartographic(e,i),Cartesian3.multiplyComponents(this._radiiSquared,i,n);const r=Math.sqrt(Cartesian3.dot(i,n));return Cartesian3.divideByScalar(n,r,n),Cartesian3.multiplyByScalar(i,e.height,i),defined(t)||(t=new Cartesian3),Cartesian3.add(n,i,t)},Ellipsoid.prototype.cartographicArrayToCartesianArray=function(e,t){const i=e.length;defined(t)?t.length=i:t=new Array(i);for(let n=0;n<i;n++)t[n]=this.cartographicToCartesian(e[n],t[n]);return t};const cartesianToCartographicN=new Cartesian3,cartesianToCartographicP=new Cartesian3,cartesianToCartographicH=new Cartesian3;Ellipsoid.prototype.cartesianToCartographic=function(e,t){const i=this.scaleToGeodeticSurface(e,cartesianToCartographicP);if(!defined(i))return;const n=this.geodeticSurfaceNormal(i,cartesianToCartographicN),r=Cartesian3.subtract(e,i,cartesianToCartographicH),o=Math.atan2(n.y,n.x),a=Math.asin(n.z),s=CesiumMath.sign(Cartesian3.dot(r,e))*Cartesian3.magnitude(r);return defined(t)?(t.longitude=o,t.latitude=a,t.height=s,t):new Cartographic(o,a,s)},Ellipsoid.prototype.cartesianArrayToCartographicArray=function(e,t){const i=e.length;defined(t)?t.length=i:t=new Array(i);for(let n=0;n<i;++n)t[n]=this.cartesianToCartographic(e[n],t[n]);return t},Ellipsoid.prototype.scaleToGeodeticSurface=function(e,t){return scaleToGeodeticSurface(e,this._oneOverRadii,this._oneOverRadiiSquared,this._centerToleranceSquared,t)},Ellipsoid.prototype.scaleToGeocentricSurface=function(e,t){defined(t)||(t=new Cartesian3);const i=e.x,n=e.y,r=e.z,o=this._oneOverRadiiSquared,a=1/Math.sqrt(i*i*o.x+n*n*o.y+r*r*o.z);return Cartesian3.multiplyByScalar(e,a,t)},Ellipsoid.prototype.transformPositionToScaledSpace=function(e,t){return defined(t)||(t=new Cartesian3),Cartesian3.multiplyComponents(e,this._oneOverRadii,t)},Ellipsoid.prototype.transformPositionFromScaledSpace=function(e,t){return defined(t)||(t=new Cartesian3),Cartesian3.multiplyComponents(e,this._radii,t)},Ellipsoid.prototype.equals=function(e){return this===e||defined(e)&&Cartesian3.equals(this._radii,e._radii)},Ellipsoid.prototype.toString=function(){return this._radii.toString()},Ellipsoid.prototype.getSurfaceNormalIntersectionWithZAxis=function(e,t,i){t=defaultValue(t,0);const n=this._squaredXOverSquaredZ;if(defined(i)||(i=new Cartesian3),i.x=0,i.y=0,i.z=e.z*(1-n),!(Math.abs(i.z)>=this._radii.z-t))return i};const abscissas=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],weights=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function gaussLegendreQuadrature(e,t,i){const n=.5*(t+e),r=.5*(t-e);let o=0;for(let e=0;e<5;e++){const t=r*abscissas[e];o+=weights[e]*(i(n+t)+i(n-t))}return o*=r,o}function GeographicProjection(e){this._ellipsoid=defaultValue(e,Ellipsoid.WGS84),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Ellipsoid.prototype.surfaceArea=function(e){const t=e.west;let i=e.east;const n=e.south,r=e.north;for(;i<t;)i+=CesiumMath.TWO_PI;const o=this._radiiSquared,a=o.x,s=o.y,c=o.z,l=a*s;return gaussLegendreQuadrature(n,r,(function(e){const n=Math.cos(e),r=Math.sin(e);return Math.cos(e)*gaussLegendreQuadrature(t,i,(function(e){const t=Math.cos(e),i=Math.sin(e);return Math.sqrt(l*r*r+c*(s*t*t+a*i*i)*n*n)}))}))},Object.defineProperties(GeographicProjection.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}}),GeographicProjection.prototype.project=function(e,t){const i=this._semimajorAxis,n=e.longitude*i,r=e.latitude*i,o=e.height;return defined(t)?(t.x=n,t.y=r,t.z=o,t):new Cartesian3(n,r,o)},GeographicProjection.prototype.unproject=function(e,t){const i=this._oneOverSemimajorAxis,n=e.x*i,r=e.y*i,o=e.z;return defined(t)?(t.longitude=n,t.latitude=r,t.height=o,t):new Cartographic(n,r,o)};const Intersect={OUTSIDE:-1,INTERSECTING:0,INSIDE:1};var Intersect$1=Object.freeze(Intersect);function Interval(e,t){this.start=defaultValue(e,0),this.stop=defaultValue(t,0)}function Matrix3(e,t,i,n,r,o,a,s,c){this[0]=defaultValue(e,0),this[1]=defaultValue(n,0),this[2]=defaultValue(a,0),this[3]=defaultValue(t,0),this[4]=defaultValue(r,0),this[5]=defaultValue(s,0),this[6]=defaultValue(i,0),this[7]=defaultValue(o,0),this[8]=defaultValue(c,0)}Matrix3.packedLength=9,Matrix3.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e[0],t[i++]=e[1],t[i++]=e[2],t[i++]=e[3],t[i++]=e[4],t[i++]=e[5],t[i++]=e[6],t[i++]=e[7],t[i++]=e[8],t},Matrix3.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Matrix3),i[0]=e[t++],i[1]=e[t++],i[2]=e[t++],i[3]=e[t++],i[4]=e[t++],i[5]=e[t++],i[6]=e[t++],i[7]=e[t++],i[8]=e[t++],i},Matrix3.packArray=function(e,t){const i=e.length,n=9*i;defined(t)?(Array.isArray(t)||t.length===n)&&t.length!==n&&(t.length=n):t=new Array(n);for(let n=0;n<i;++n)Matrix3.pack(e[n],t,9*n);return t},Matrix3.unpackArray=function(e,t){const i=e.length;defined(t)?t.length=i/9:t=new Array(i/9);for(let n=0;n<i;n+=9){const i=n/9;t[i]=Matrix3.unpack(e,n,t[i])}return t},Matrix3.clone=function(e,t){if(defined(e))return defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):new Matrix3(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8])},Matrix3.fromArray=Matrix3.unpack,Matrix3.fromColumnMajorArray=function(e,t){return Matrix3.clone(e,t)},Matrix3.fromRowMajorArray=function(e,t){return defined(t)?(t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],t):new Matrix3(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])},Matrix3.fromQuaternion=function(e,t){const i=e.x*e.x,n=e.x*e.y,r=e.x*e.z,o=e.x*e.w,a=e.y*e.y,s=e.y*e.z,c=e.y*e.w,l=e.z*e.z,u=e.z*e.w,d=e.w*e.w,h=i-a-l+d,p=2*(n-u),f=2*(r+c),m=2*(n+u),g=-i+a-l+d,_=2*(s-o),y=2*(r-c),C=2*(s+o),v=-i-a+l+d;return defined(t)?(t[0]=h,t[1]=m,t[2]=y,t[3]=p,t[4]=g,t[5]=C,t[6]=f,t[7]=_,t[8]=v,t):new Matrix3(h,p,f,m,g,_,y,C,v)},Matrix3.fromHeadingPitchRoll=function(e,t){const i=Math.cos(-e.pitch),n=Math.cos(-e.heading),r=Math.cos(e.roll),o=Math.sin(-e.pitch),a=Math.sin(-e.heading),s=Math.sin(e.roll),c=i*n,l=-r*a+s*o*n,u=s*a+r*o*n,d=i*a,h=r*n+s*o*a,p=-s*n+r*o*a,f=-o,m=s*i,g=r*i;return defined(t)?(t[0]=c,t[1]=d,t[2]=f,t[3]=l,t[4]=h,t[5]=m,t[6]=u,t[7]=p,t[8]=g,t):new Matrix3(c,l,u,d,h,p,f,m,g)},Matrix3.fromScale=function(e,t){return defined(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=e.y,t[5]=0,t[6]=0,t[7]=0,t[8]=e.z,t):new Matrix3(e.x,0,0,0,e.y,0,0,0,e.z)},Matrix3.fromUniformScale=function(e,t){return defined(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=e,t):new Matrix3(e,0,0,0,e,0,0,0,e)},Matrix3.fromCrossProduct=function(e,t){return defined(t)?(t[0]=0,t[1]=e.z,t[2]=-e.y,t[3]=-e.z,t[4]=0,t[5]=e.x,t[6]=e.y,t[7]=-e.x,t[8]=0,t):new Matrix3(0,-e.z,e.y,e.z,0,-e.x,-e.y,e.x,0)},Matrix3.fromRotationX=function(e,t){const i=Math.cos(e),n=Math.sin(e);return defined(t)?(t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=i,t[5]=n,t[6]=0,t[7]=-n,t[8]=i,t):new Matrix3(1,0,0,0,i,-n,0,n,i)},Matrix3.fromRotationY=function(e,t){const i=Math.cos(e),n=Math.sin(e);return defined(t)?(t[0]=i,t[1]=0,t[2]=-n,t[3]=0,t[4]=1,t[5]=0,t[6]=n,t[7]=0,t[8]=i,t):new Matrix3(i,0,n,0,1,0,-n,0,i)},Matrix3.fromRotationZ=function(e,t){const i=Math.cos(e),n=Math.sin(e);return defined(t)?(t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new Matrix3(i,-n,0,n,i,0,0,0,1)},Matrix3.toArray=function(e,t){return defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]},Matrix3.getElementIndex=function(e,t){return 3*e+t},Matrix3.getColumn=function(e,t,i){const n=3*t,r=e[n],o=e[n+1],a=e[n+2];return i.x=r,i.y=o,i.z=a,i},Matrix3.setColumn=function(e,t,i,n){const r=3*t;return(n=Matrix3.clone(e,n))[r]=i.x,n[r+1]=i.y,n[r+2]=i.z,n},Matrix3.getRow=function(e,t,i){const n=e[t],r=e[t+3],o=e[t+6];return i.x=n,i.y=r,i.z=o,i},Matrix3.setRow=function(e,t,i,n){return(n=Matrix3.clone(e,n))[t]=i.x,n[t+3]=i.y,n[t+6]=i.z,n};const scaleScratch1$2=new Cartesian3;Matrix3.setScale=function(e,t,i){const n=Matrix3.getScale(e,scaleScratch1$2),r=t.x/n.x,o=t.y/n.y,a=t.z/n.z;return i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i[3]=e[3]*o,i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*a,i[7]=e[7]*a,i[8]=e[8]*a,i};const scaleScratch2$2=new Cartesian3;Matrix3.setUniformScale=function(e,t,i){const n=Matrix3.getScale(e,scaleScratch2$2),r=t/n.x,o=t/n.y,a=t/n.z;return i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i[3]=e[3]*o,i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*a,i[7]=e[7]*a,i[8]=e[8]*a,i};const scratchColumn$2=new Cartesian3;Matrix3.getScale=function(e,t){return t.x=Cartesian3.magnitude(Cartesian3.fromElements(e[0],e[1],e[2],scratchColumn$2)),t.y=Cartesian3.magnitude(Cartesian3.fromElements(e[3],e[4],e[5],scratchColumn$2)),t.z=Cartesian3.magnitude(Cartesian3.fromElements(e[6],e[7],e[8],scratchColumn$2)),t};const scaleScratch3$2=new Cartesian3;Matrix3.getMaximumScale=function(e){return Matrix3.getScale(e,scaleScratch3$2),Cartesian3.maximumComponent(scaleScratch3$2)};const scaleScratch4$2=new Cartesian3;Matrix3.setRotation=function(e,t,i){const n=Matrix3.getScale(e,scaleScratch4$2);return i[0]=t[0]*n.x,i[1]=t[1]*n.x,i[2]=t[2]*n.x,i[3]=t[3]*n.y,i[4]=t[4]*n.y,i[5]=t[5]*n.y,i[6]=t[6]*n.z,i[7]=t[7]*n.z,i[8]=t[8]*n.z,i};const scaleScratch5$2=new Cartesian3;function computeFrobeniusNorm(e){let t=0;for(let i=0;i<9;++i){const n=e[i];t+=n*n}return Math.sqrt(t)}Matrix3.getRotation=function(e,t){const i=Matrix3.getScale(e,scaleScratch5$2);return t[0]=e[0]/i.x,t[1]=e[1]/i.x,t[2]=e[2]/i.x,t[3]=e[3]/i.y,t[4]=e[4]/i.y,t[5]=e[5]/i.y,t[6]=e[6]/i.z,t[7]=e[7]/i.z,t[8]=e[8]/i.z,t},Matrix3.multiply=function(e,t,i){const n=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],r=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],o=e[2]*t[0]+e[5]*t[1]+e[8]*t[2],a=e[0]*t[3]+e[3]*t[4]+e[6]*t[5],s=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],c=e[2]*t[3]+e[5]*t[4]+e[8]*t[5],l=e[0]*t[6]+e[3]*t[7]+e[6]*t[8],u=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],d=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];return i[0]=n,i[1]=r,i[2]=o,i[3]=a,i[4]=s,i[5]=c,i[6]=l,i[7]=u,i[8]=d,i},Matrix3.add=function(e,t,i){return i[0]=e[0]+t[0],i[1]=e[1]+t[1],i[2]=e[2]+t[2],i[3]=e[3]+t[3],i[4]=e[4]+t[4],i[5]=e[5]+t[5],i[6]=e[6]+t[6],i[7]=e[7]+t[7],i[8]=e[8]+t[8],i},Matrix3.subtract=function(e,t,i){return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],i[3]=e[3]-t[3],i[4]=e[4]-t[4],i[5]=e[5]-t[5],i[6]=e[6]-t[6],i[7]=e[7]-t[7],i[8]=e[8]-t[8],i},Matrix3.multiplyByVector=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=e[0]*n+e[3]*r+e[6]*o,s=e[1]*n+e[4]*r+e[7]*o,c=e[2]*n+e[5]*r+e[8]*o;return i.x=a,i.y=s,i.z=c,i},Matrix3.multiplyByScalar=function(e,t,i){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7]*t,i[8]=e[8]*t,i},Matrix3.multiplyByScale=function(e,t,i){return i[0]=e[0]*t.x,i[1]=e[1]*t.x,i[2]=e[2]*t.x,i[3]=e[3]*t.y,i[4]=e[4]*t.y,i[5]=e[5]*t.y,i[6]=e[6]*t.z,i[7]=e[7]*t.z,i[8]=e[8]*t.z,i},Matrix3.multiplyByUniformScale=function(e,t,i){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7]*t,i[8]=e[8]*t,i},Matrix3.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t},Matrix3.transpose=function(e,t){const i=e[0],n=e[3],r=e[6],o=e[1],a=e[4],s=e[7],c=e[2],l=e[5],u=e[8];return t[0]=i,t[1]=n,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t[6]=c,t[7]=l,t[8]=u,t};const rowVal=[1,0,0],colVal=[2,2,1];function offDiagonalFrobeniusNorm(e){let t=0;for(let i=0;i<3;++i){const n=e[Matrix3.getElementIndex(colVal[i],rowVal[i])];t+=2*n*n}return Math.sqrt(t)}function shurDecomposition(e,t){const i=CesiumMath.EPSILON15;let n=0,r=1;for(let t=0;t<3;++t){const i=Math.abs(e[Matrix3.getElementIndex(colVal[t],rowVal[t])]);i>n&&(r=t,n=i)}let o=1,a=0;const s=rowVal[r],c=colVal[r];if(Math.abs(e[Matrix3.getElementIndex(c,s)])>i){const t=(e[Matrix3.getElementIndex(c,c)]-e[Matrix3.getElementIndex(s,s)])/2/e[Matrix3.getElementIndex(c,s)];let i;i=t<0?-1/(-t+Math.sqrt(1+t*t)):1/(t+Math.sqrt(1+t*t)),o=1/Math.sqrt(1+i*i),a=i*o}return(t=Matrix3.clone(Matrix3.IDENTITY,t))[Matrix3.getElementIndex(s,s)]=t[Matrix3.getElementIndex(c,c)]=o,t[Matrix3.getElementIndex(c,s)]=a,t[Matrix3.getElementIndex(s,c)]=-a,t}const jMatrix=new Matrix3,jMatrixTranspose=new Matrix3;Matrix3.computeEigenDecomposition=function(e,t){const i=CesiumMath.EPSILON20;let n=0,r=0;defined(t)||(t={});const o=t.unitary=Matrix3.clone(Matrix3.IDENTITY,t.unitary),a=t.diagonal=Matrix3.clone(e,t.diagonal),s=i*computeFrobeniusNorm(a);for(;r<10&&offDiagonalFrobeniusNorm(a)>s;)shurDecomposition(a,jMatrix),Matrix3.transpose(jMatrix,jMatrixTranspose),Matrix3.multiply(a,jMatrix,a),Matrix3.multiply(jMatrixTranspose,a,a),Matrix3.multiply(o,jMatrix,o),++n>2&&(++r,n=0);return t},Matrix3.abs=function(e,t){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t},Matrix3.determinant=function(e){const t=e[0],i=e[3],n=e[6],r=e[1],o=e[4],a=e[7],s=e[2],c=e[5],l=e[8];return t*(o*l-c*a)+r*(c*n-i*l)+s*(i*a-o*n)},Matrix3.inverse=function(e,t){const i=e[0],n=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],d=Matrix3.determinant(e);t[0]=a*u-l*s,t[1]=l*r-n*u,t[2]=n*s-a*r,t[3]=c*s-o*u,t[4]=i*u-c*r,t[5]=o*r-i*s,t[6]=o*l-c*a,t[7]=c*n-i*l,t[8]=i*a-o*n;const h=1/d;return Matrix3.multiplyByScalar(t,h,t)};const scratchTransposeMatrix$1=new Matrix3;function Cartesian4(e,t,i,n){this.x=defaultValue(e,0),this.y=defaultValue(t,0),this.z=defaultValue(i,0),this.w=defaultValue(n,0)}Matrix3.inverseTranspose=function(e,t){return Matrix3.inverse(Matrix3.transpose(e,scratchTransposeMatrix$1),t)},Matrix3.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]},Matrix3.equalsEpsilon=function(e,t,i){return i=defaultValue(i,0),e===t||defined(e)&&defined(t)&&Math.abs(e[0]-t[0])<=i&&Math.abs(e[1]-t[1])<=i&&Math.abs(e[2]-t[2])<=i&&Math.abs(e[3]-t[3])<=i&&Math.abs(e[4]-t[4])<=i&&Math.abs(e[5]-t[5])<=i&&Math.abs(e[6]-t[6])<=i&&Math.abs(e[7]-t[7])<=i&&Math.abs(e[8]-t[8])<=i},Matrix3.IDENTITY=Object.freeze(new Matrix3(1,0,0,0,1,0,0,0,1)),Matrix3.ZERO=Object.freeze(new Matrix3(0,0,0,0,0,0,0,0,0)),Matrix3.COLUMN0ROW0=0,Matrix3.COLUMN0ROW1=1,Matrix3.COLUMN0ROW2=2,Matrix3.COLUMN1ROW0=3,Matrix3.COLUMN1ROW1=4,Matrix3.COLUMN1ROW2=5,Matrix3.COLUMN2ROW0=6,Matrix3.COLUMN2ROW1=7,Matrix3.COLUMN2ROW2=8,Object.defineProperties(Matrix3.prototype,{length:{get:function(){return Matrix3.packedLength}}}),Matrix3.prototype.clone=function(e){return Matrix3.clone(this,e)},Matrix3.prototype.equals=function(e){return Matrix3.equals(this,e)},Matrix3.equalsArray=function(e,t,i){return e[0]===t[i]&&e[1]===t[i+1]&&e[2]===t[i+2]&&e[3]===t[i+3]&&e[4]===t[i+4]&&e[5]===t[i+5]&&e[6]===t[i+6]&&e[7]===t[i+7]&&e[8]===t[i+8]},Matrix3.prototype.equalsEpsilon=function(e,t){return Matrix3.equalsEpsilon(this,e,t)},Matrix3.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]})\n(${this[1]}, ${this[4]}, ${this[7]})\n(${this[2]}, ${this[5]}, ${this[8]})`},Cartesian4.fromElements=function(e,t,i,n,r){return defined(r)?(r.x=e,r.y=t,r.z=i,r.w=n,r):new Cartesian4(e,t,i,n)},Cartesian4.fromColor=function(e,t){return defined(t)?(t.x=e.red,t.y=e.green,t.z=e.blue,t.w=e.alpha,t):new Cartesian4(e.red,e.green,e.blue,e.alpha)},Cartesian4.clone=function(e,t){if(defined(e))return defined(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new Cartesian4(e.x,e.y,e.z,e.w)},Cartesian4.packedLength=4,Cartesian4.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e.x,t[i++]=e.y,t[i++]=e.z,t[i]=e.w,t},Cartesian4.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Cartesian4),i.x=e[t++],i.y=e[t++],i.z=e[t++],i.w=e[t],i},Cartesian4.packArray=function(e,t){const i=e.length,n=4*i;defined(t)?(Array.isArray(t)||t.length===n)&&t.length!==n&&(t.length=n):t=new Array(n);for(let n=0;n<i;++n)Cartesian4.pack(e[n],t,4*n);return t},Cartesian4.unpackArray=function(e,t){const i=e.length;defined(t)?t.length=i/4:t=new Array(i/4);for(let n=0;n<i;n+=4){const i=n/4;t[i]=Cartesian4.unpack(e,n,t[i])}return t},Cartesian4.fromArray=Cartesian4.unpack,Cartesian4.maximumComponent=function(e){return Math.max(e.x,e.y,e.z,e.w)},Cartesian4.minimumComponent=function(e){return Math.min(e.x,e.y,e.z,e.w)},Cartesian4.minimumByComponent=function(e,t,i){return i.x=Math.min(e.x,t.x),i.y=Math.min(e.y,t.y),i.z=Math.min(e.z,t.z),i.w=Math.min(e.w,t.w),i},Cartesian4.maximumByComponent=function(e,t,i){return i.x=Math.max(e.x,t.x),i.y=Math.max(e.y,t.y),i.z=Math.max(e.z,t.z),i.w=Math.max(e.w,t.w),i},Cartesian4.clamp=function(e,t,i,n){const r=CesiumMath.clamp(e.x,t.x,i.x),o=CesiumMath.clamp(e.y,t.y,i.y),a=CesiumMath.clamp(e.z,t.z,i.z),s=CesiumMath.clamp(e.w,t.w,i.w);return n.x=r,n.y=o,n.z=a,n.w=s,n},Cartesian4.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},Cartesian4.magnitude=function(e){return Math.sqrt(Cartesian4.magnitudeSquared(e))};const distanceScratch$2=new Cartesian4;Cartesian4.distance=function(e,t){return Cartesian4.subtract(e,t,distanceScratch$2),Cartesian4.magnitude(distanceScratch$2)},Cartesian4.distanceSquared=function(e,t){return Cartesian4.subtract(e,t,distanceScratch$2),Cartesian4.magnitudeSquared(distanceScratch$2)},Cartesian4.normalize=function(e,t){const i=Cartesian4.magnitude(e);return t.x=e.x/i,t.y=e.y/i,t.z=e.z/i,t.w=e.w/i,t},Cartesian4.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w},Cartesian4.multiplyComponents=function(e,t,i){return i.x=e.x*t.x,i.y=e.y*t.y,i.z=e.z*t.z,i.w=e.w*t.w,i},Cartesian4.divideComponents=function(e,t,i){return i.x=e.x/t.x,i.y=e.y/t.y,i.z=e.z/t.z,i.w=e.w/t.w,i},Cartesian4.add=function(e,t,i){return i.x=e.x+t.x,i.y=e.y+t.y,i.z=e.z+t.z,i.w=e.w+t.w,i},Cartesian4.subtract=function(e,t,i){return i.x=e.x-t.x,i.y=e.y-t.y,i.z=e.z-t.z,i.w=e.w-t.w,i},Cartesian4.multiplyByScalar=function(e,t,i){return i.x=e.x*t,i.y=e.y*t,i.z=e.z*t,i.w=e.w*t,i},Cartesian4.divideByScalar=function(e,t,i){return i.x=e.x/t,i.y=e.y/t,i.z=e.z/t,i.w=e.w/t,i},Cartesian4.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t},Cartesian4.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t.w=Math.abs(e.w),t};const lerpScratch$2=new Cartesian4;Cartesian4.lerp=function(e,t,i,n){return Cartesian4.multiplyByScalar(t,i,lerpScratch$2),n=Cartesian4.multiplyByScalar(e,1-i,n),Cartesian4.add(lerpScratch$2,n,n)};const mostOrthogonalAxisScratch$1=new Cartesian4;Cartesian4.mostOrthogonalAxis=function(e,t){const i=Cartesian4.normalize(e,mostOrthogonalAxisScratch$1);return Cartesian4.abs(i,i),i.x<=i.y?i.x<=i.z?i.x<=i.w?Cartesian4.clone(Cartesian4.UNIT_X,t):Cartesian4.clone(Cartesian4.UNIT_W,t):i.z<=i.w?Cartesian4.clone(Cartesian4.UNIT_Z,t):Cartesian4.clone(Cartesian4.UNIT_W,t):i.y<=i.z?i.y<=i.w?Cartesian4.clone(Cartesian4.UNIT_Y,t):Cartesian4.clone(Cartesian4.UNIT_W,t):i.z<=i.w?Cartesian4.clone(Cartesian4.UNIT_Z,t):Cartesian4.clone(Cartesian4.UNIT_W,t)},Cartesian4.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},Cartesian4.equalsArray=function(e,t,i){return e.x===t[i]&&e.y===t[i+1]&&e.z===t[i+2]&&e.w===t[i+3]},Cartesian4.equalsEpsilon=function(e,t,i,n){return e===t||defined(e)&&defined(t)&&CesiumMath.equalsEpsilon(e.x,t.x,i,n)&&CesiumMath.equalsEpsilon(e.y,t.y,i,n)&&CesiumMath.equalsEpsilon(e.z,t.z,i,n)&&CesiumMath.equalsEpsilon(e.w,t.w,i,n)},Cartesian4.ZERO=Object.freeze(new Cartesian4(0,0,0,0)),Cartesian4.ONE=Object.freeze(new Cartesian4(1,1,1,1)),Cartesian4.UNIT_X=Object.freeze(new Cartesian4(1,0,0,0)),Cartesian4.UNIT_Y=Object.freeze(new Cartesian4(0,1,0,0)),Cartesian4.UNIT_Z=Object.freeze(new Cartesian4(0,0,1,0)),Cartesian4.UNIT_W=Object.freeze(new Cartesian4(0,0,0,1)),Cartesian4.prototype.clone=function(e){return Cartesian4.clone(this,e)},Cartesian4.prototype.equals=function(e){return Cartesian4.equals(this,e)},Cartesian4.prototype.equalsEpsilon=function(e,t,i){return Cartesian4.equalsEpsilon(this,e,t,i)},Cartesian4.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};const scratchF32Array=new Float32Array(1),scratchU8Array=new Uint8Array(scratchF32Array.buffer),testU32=new Uint32Array([287454020]),testU8=new Uint8Array(testU32.buffer),littleEndian=68===testU8[0];function RuntimeError(e){let t;this.name="RuntimeError",this.message=e;try{throw new Error}catch(e){t=e.stack}this.stack=t}function Matrix4(e,t,i,n,r,o,a,s,c,l,u,d,h,p,f,m){this[0]=defaultValue(e,0),this[1]=defaultValue(r,0),this[2]=defaultValue(c,0),this[3]=defaultValue(h,0),this[4]=defaultValue(t,0),this[5]=defaultValue(o,0),this[6]=defaultValue(l,0),this[7]=defaultValue(p,0),this[8]=defaultValue(i,0),this[9]=defaultValue(a,0),this[10]=defaultValue(u,0),this[11]=defaultValue(f,0),this[12]=defaultValue(n,0),this[13]=defaultValue(s,0),this[14]=defaultValue(d,0),this[15]=defaultValue(m,0)}Cartesian4.packFloat=function(e,t){return defined(t)||(t=new Cartesian4),scratchF32Array[0]=e,littleEndian?(t.x=scratchU8Array[0],t.y=scratchU8Array[1],t.z=scratchU8Array[2],t.w=scratchU8Array[3]):(t.x=scratchU8Array[3],t.y=scratchU8Array[2],t.z=scratchU8Array[1],t.w=scratchU8Array[0]),t},Cartesian4.unpackFloat=function(e){return littleEndian?(scratchU8Array[0]=e.x,scratchU8Array[1]=e.y,scratchU8Array[2]=e.z,scratchU8Array[3]=e.w):(scratchU8Array[0]=e.w,scratchU8Array[1]=e.z,scratchU8Array[2]=e.y,scratchU8Array[3]=e.x),scratchF32Array[0]},defined(Object.create)&&(RuntimeError.prototype=Object.create(Error.prototype),RuntimeError.prototype.constructor=RuntimeError),RuntimeError.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return defined(this.stack)&&(e+=`\n${this.stack.toString()}`),e},Matrix4.packedLength=16,Matrix4.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e[0],t[i++]=e[1],t[i++]=e[2],t[i++]=e[3],t[i++]=e[4],t[i++]=e[5],t[i++]=e[6],t[i++]=e[7],t[i++]=e[8],t[i++]=e[9],t[i++]=e[10],t[i++]=e[11],t[i++]=e[12],t[i++]=e[13],t[i++]=e[14],t[i]=e[15],t},Matrix4.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Matrix4),i[0]=e[t++],i[1]=e[t++],i[2]=e[t++],i[3]=e[t++],i[4]=e[t++],i[5]=e[t++],i[6]=e[t++],i[7]=e[t++],i[8]=e[t++],i[9]=e[t++],i[10]=e[t++],i[11]=e[t++],i[12]=e[t++],i[13]=e[t++],i[14]=e[t++],i[15]=e[t],i},Matrix4.packArray=function(e,t){const i=e.length,n=16*i;defined(t)?(Array.isArray(t)||t.length===n)&&t.length!==n&&(t.length=n):t=new Array(n);for(let n=0;n<i;++n)Matrix4.pack(e[n],t,16*n);return t},Matrix4.unpackArray=function(e,t){const i=e.length;defined(t)?t.length=i/16:t=new Array(i/16);for(let n=0;n<i;n+=16){const i=n/16;t[i]=Matrix4.unpack(e,n,t[i])}return t},Matrix4.clone=function(e,t){if(defined(e))return defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):new Matrix4(e[0],e[4],e[8],e[12],e[1],e[5],e[9],e[13],e[2],e[6],e[10],e[14],e[3],e[7],e[11],e[15])},Matrix4.fromArray=Matrix4.unpack,Matrix4.fromColumnMajorArray=function(e,t){return Matrix4.clone(e,t)},Matrix4.fromRowMajorArray=function(e,t){return defined(t)?(t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15],t):new Matrix4(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])},Matrix4.fromRotationTranslation=function(e,t,i){return t=defaultValue(t,Cartesian3.ZERO),defined(i)?(i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=0,i[4]=e[3],i[5]=e[4],i[6]=e[5],i[7]=0,i[8]=e[6],i[9]=e[7],i[10]=e[8],i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,i):new Matrix4(e[0],e[3],e[6],t.x,e[1],e[4],e[7],t.y,e[2],e[5],e[8],t.z,0,0,0,1)},Matrix4.fromTranslationQuaternionRotationScale=function(e,t,i,n){defined(n)||(n=new Matrix4);const r=i.x,o=i.y,a=i.z,s=t.x*t.x,c=t.x*t.y,l=t.x*t.z,u=t.x*t.w,d=t.y*t.y,h=t.y*t.z,p=t.y*t.w,f=t.z*t.z,m=t.z*t.w,g=t.w*t.w,_=s-d-f+g,y=2*(c-m),C=2*(l+p),v=2*(c+m),T=-s+d-f+g,S=2*(h-u),A=2*(l-p),b=2*(h+u),E=-s-d+f+g;return n[0]=_*r,n[1]=v*r,n[2]=A*r,n[3]=0,n[4]=y*o,n[5]=T*o,n[6]=b*o,n[7]=0,n[8]=C*a,n[9]=S*a,n[10]=E*a,n[11]=0,n[12]=e.x,n[13]=e.y,n[14]=e.z,n[15]=1,n},Matrix4.fromTranslationRotationScale=function(e,t){return Matrix4.fromTranslationQuaternionRotationScale(e.translation,e.rotation,e.scale,t)},Matrix4.fromTranslation=function(e,t){return Matrix4.fromRotationTranslation(Matrix3.IDENTITY,e,t)},Matrix4.fromScale=function(e,t){return defined(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e.y,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e.z,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new Matrix4(e.x,0,0,0,0,e.y,0,0,0,0,e.z,0,0,0,0,1)},Matrix4.fromUniformScale=function(e,t){return defined(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t):new Matrix4(e,0,0,0,0,e,0,0,0,0,e,0,0,0,0,1)},Matrix4.fromRotation=function(e,t){return defined(t)||(t=new Matrix4),t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=0,t[4]=e[3],t[5]=e[4],t[6]=e[5],t[7]=0,t[8]=e[6],t[9]=e[7],t[10]=e[8],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t};const fromCameraF=new Cartesian3,fromCameraR=new Cartesian3,fromCameraU=new Cartesian3;Matrix4.fromCamera=function(e,t){const i=e.position,n=e.direction,r=e.up;Cartesian3.normalize(n,fromCameraF),Cartesian3.normalize(Cartesian3.cross(fromCameraF,r,fromCameraR),fromCameraR),Cartesian3.normalize(Cartesian3.cross(fromCameraR,fromCameraF,fromCameraU),fromCameraU);const o=fromCameraR.x,a=fromCameraR.y,s=fromCameraR.z,c=fromCameraF.x,l=fromCameraF.y,u=fromCameraF.z,d=fromCameraU.x,h=fromCameraU.y,p=fromCameraU.z,f=i.x,m=i.y,g=i.z,_=o*-f+a*-m+s*-g,y=d*-f+h*-m+p*-g,C=c*f+l*m+u*g;return defined(t)?(t[0]=o,t[1]=d,t[2]=-c,t[3]=0,t[4]=a,t[5]=h,t[6]=-l,t[7]=0,t[8]=s,t[9]=p,t[10]=-u,t[11]=0,t[12]=_,t[13]=y,t[14]=C,t[15]=1,t):new Matrix4(o,a,s,_,d,h,p,y,-c,-l,-u,C,0,0,0,1)},Matrix4.computePerspectiveFieldOfView=function(e,t,i,n,r){const o=1/Math.tan(.5*e),a=o/t,s=(n+i)/(i-n),c=2*n*i/(i-n);return r[0]=a,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=o,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=s,r[11]=-1,r[12]=0,r[13]=0,r[14]=c,r[15]=0,r},Matrix4.computeOrthographicOffCenter=function(e,t,i,n,r,o,a){let s=1/(t-e),c=1/(n-i),l=1/(o-r);const u=-(t+e)*s,d=-(n+i)*c,h=-(o+r)*l;return s*=2,c*=2,l*=-2,a[0]=s,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=l,a[11]=0,a[12]=u,a[13]=d,a[14]=h,a[15]=1,a},Matrix4.computePerspectiveOffCenter=function(e,t,i,n,r,o,a){const s=2*r/(t-e),c=2*r/(n-i),l=(t+e)/(t-e),u=(n+i)/(n-i),d=-(o+r)/(o-r),h=-2*o*r/(o-r);return a[0]=s,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=c,a[6]=0,a[7]=0,a[8]=l,a[9]=u,a[10]=d,a[11]=-1,a[12]=0,a[13]=0,a[14]=h,a[15]=0,a},Matrix4.computeInfinitePerspectiveOffCenter=function(e,t,i,n,r,o){const a=2*r/(t-e),s=2*r/(n-i),c=(t+e)/(t-e),l=(n+i)/(n-i),u=-2*r;return o[0]=a,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=s,o[6]=0,o[7]=0,o[8]=c,o[9]=l,o[10]=-1,o[11]=-1,o[12]=0,o[13]=0,o[14]=u,o[15]=0,o},Matrix4.computeViewportTransformation=function(e,t,i,n){defined(n)||(n=new Matrix4),e=defaultValue(e,defaultValue.EMPTY_OBJECT);const r=defaultValue(e.x,0),o=defaultValue(e.y,0),a=defaultValue(e.width,0),s=defaultValue(e.height,0);t=defaultValue(t,0);const c=.5*a,l=.5*s,u=.5*((i=defaultValue(i,1))-t),d=c,h=l,p=u,f=r+c,m=o+l,g=t+u;return n[0]=d,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=h,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=p,n[11]=0,n[12]=f,n[13]=m,n[14]=g,n[15]=1,n},Matrix4.computeView=function(e,t,i,n,r){return r[0]=n.x,r[1]=i.x,r[2]=-t.x,r[3]=0,r[4]=n.y,r[5]=i.y,r[6]=-t.y,r[7]=0,r[8]=n.z,r[9]=i.z,r[10]=-t.z,r[11]=0,r[12]=-Cartesian3.dot(n,e),r[13]=-Cartesian3.dot(i,e),r[14]=Cartesian3.dot(t,e),r[15]=1,r},Matrix4.toArray=function(e,t){return defined(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]},Matrix4.getElementIndex=function(e,t){return 4*e+t},Matrix4.getColumn=function(e,t,i){const n=4*t,r=e[n],o=e[n+1],a=e[n+2],s=e[n+3];return i.x=r,i.y=o,i.z=a,i.w=s,i},Matrix4.setColumn=function(e,t,i,n){const r=4*t;return(n=Matrix4.clone(e,n))[r]=i.x,n[r+1]=i.y,n[r+2]=i.z,n[r+3]=i.w,n},Matrix4.getRow=function(e,t,i){const n=e[t],r=e[t+4],o=e[t+8],a=e[t+12];return i.x=n,i.y=r,i.z=o,i.w=a,i},Matrix4.setRow=function(e,t,i,n){return(n=Matrix4.clone(e,n))[t]=i.x,n[t+4]=i.y,n[t+8]=i.z,n[t+12]=i.w,n},Matrix4.setTranslation=function(e,t,i){return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=e[15],i};const scaleScratch1$1=new Cartesian3;Matrix4.setScale=function(e,t,i){const n=Matrix4.getScale(e,scaleScratch1$1),r=t.x/n.x,o=t.y/n.y,a=t.z/n.z;return i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i[3]=e[3],i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*o,i[7]=e[7],i[8]=e[8]*a,i[9]=e[9]*a,i[10]=e[10]*a,i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i};const scaleScratch2$1=new Cartesian3;Matrix4.setUniformScale=function(e,t,i){const n=Matrix4.getScale(e,scaleScratch2$1),r=t/n.x,o=t/n.y,a=t/n.z;return i[0]=e[0]*r,i[1]=e[1]*r,i[2]=e[2]*r,i[3]=e[3],i[4]=e[4]*o,i[5]=e[5]*o,i[6]=e[6]*o,i[7]=e[7],i[8]=e[8]*a,i[9]=e[9]*a,i[10]=e[10]*a,i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i};const scratchColumn$1=new Cartesian3;Matrix4.getScale=function(e,t){return t.x=Cartesian3.magnitude(Cartesian3.fromElements(e[0],e[1],e[2],scratchColumn$1)),t.y=Cartesian3.magnitude(Cartesian3.fromElements(e[4],e[5],e[6],scratchColumn$1)),t.z=Cartesian3.magnitude(Cartesian3.fromElements(e[8],e[9],e[10],scratchColumn$1)),t};const scaleScratch3$1=new Cartesian3;Matrix4.getMaximumScale=function(e){return Matrix4.getScale(e,scaleScratch3$1),Cartesian3.maximumComponent(scaleScratch3$1)};const scaleScratch4$1=new Cartesian3;Matrix4.setRotation=function(e,t,i){const n=Matrix4.getScale(e,scaleScratch4$1);return i[0]=t[0]*n.x,i[1]=t[1]*n.x,i[2]=t[2]*n.x,i[3]=e[3],i[4]=t[3]*n.y,i[5]=t[4]*n.y,i[6]=t[5]*n.y,i[7]=e[7],i[8]=t[6]*n.z,i[9]=t[7]*n.z,i[10]=t[8]*n.z,i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i};const scaleScratch5$1=new Cartesian3;Matrix4.getRotation=function(e,t){const i=Matrix4.getScale(e,scaleScratch5$1);return t[0]=e[0]/i.x,t[1]=e[1]/i.x,t[2]=e[2]/i.x,t[3]=e[4]/i.y,t[4]=e[5]/i.y,t[5]=e[6]/i.y,t[6]=e[8]/i.z,t[7]=e[9]/i.z,t[8]=e[10]/i.z,t},Matrix4.multiply=function(e,t,i){const n=e[0],r=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],d=e[8],h=e[9],p=e[10],f=e[11],m=e[12],g=e[13],_=e[14],y=e[15],C=t[0],v=t[1],T=t[2],S=t[3],A=t[4],b=t[5],E=t[6],x=t[7],P=t[8],D=t[9],w=t[10],M=t[11],I=t[12],R=t[13],O=t[14],L=t[15],B=n*C+s*v+d*T+m*S,F=r*C+c*v+h*T+g*S,N=o*C+l*v+p*T+_*S,V=a*C+u*v+f*T+y*S,k=n*A+s*b+d*E+m*x,$=r*A+c*b+h*E+g*x,U=o*A+l*b+p*E+_*x,G=a*A+u*b+f*E+y*x,z=n*P+s*D+d*w+m*M,H=r*P+c*D+h*w+g*M,W=o*P+l*D+p*w+_*M,j=a*P+u*D+f*w+y*M,q=n*I+s*R+d*O+m*L,X=r*I+c*R+h*O+g*L,Y=o*I+l*R+p*O+_*L,K=a*I+u*R+f*O+y*L;return i[0]=B,i[1]=F,i[2]=N,i[3]=V,i[4]=k,i[5]=$,i[6]=U,i[7]=G,i[8]=z,i[9]=H,i[10]=W,i[11]=j,i[12]=q,i[13]=X,i[14]=Y,i[15]=K,i},Matrix4.add=function(e,t,i){return i[0]=e[0]+t[0],i[1]=e[1]+t[1],i[2]=e[2]+t[2],i[3]=e[3]+t[3],i[4]=e[4]+t[4],i[5]=e[5]+t[5],i[6]=e[6]+t[6],i[7]=e[7]+t[7],i[8]=e[8]+t[8],i[9]=e[9]+t[9],i[10]=e[10]+t[10],i[11]=e[11]+t[11],i[12]=e[12]+t[12],i[13]=e[13]+t[13],i[14]=e[14]+t[14],i[15]=e[15]+t[15],i},Matrix4.subtract=function(e,t,i){return i[0]=e[0]-t[0],i[1]=e[1]-t[1],i[2]=e[2]-t[2],i[3]=e[3]-t[3],i[4]=e[4]-t[4],i[5]=e[5]-t[5],i[6]=e[6]-t[6],i[7]=e[7]-t[7],i[8]=e[8]-t[8],i[9]=e[9]-t[9],i[10]=e[10]-t[10],i[11]=e[11]-t[11],i[12]=e[12]-t[12],i[13]=e[13]-t[13],i[14]=e[14]-t[14],i[15]=e[15]-t[15],i},Matrix4.multiplyTransformation=function(e,t,i){const n=e[0],r=e[1],o=e[2],a=e[4],s=e[5],c=e[6],l=e[8],u=e[9],d=e[10],h=e[12],p=e[13],f=e[14],m=t[0],g=t[1],_=t[2],y=t[4],C=t[5],v=t[6],T=t[8],S=t[9],A=t[10],b=t[12],E=t[13],x=t[14],P=n*m+a*g+l*_,D=r*m+s*g+u*_,w=o*m+c*g+d*_,M=n*y+a*C+l*v,I=r*y+s*C+u*v,R=o*y+c*C+d*v,O=n*T+a*S+l*A,L=r*T+s*S+u*A,B=o*T+c*S+d*A,F=n*b+a*E+l*x+h,N=r*b+s*E+u*x+p,V=o*b+c*E+d*x+f;return i[0]=P,i[1]=D,i[2]=w,i[3]=0,i[4]=M,i[5]=I,i[6]=R,i[7]=0,i[8]=O,i[9]=L,i[10]=B,i[11]=0,i[12]=F,i[13]=N,i[14]=V,i[15]=1,i},Matrix4.multiplyByMatrix3=function(e,t,i){const n=e[0],r=e[1],o=e[2],a=e[4],s=e[5],c=e[6],l=e[8],u=e[9],d=e[10],h=t[0],p=t[1],f=t[2],m=t[3],g=t[4],_=t[5],y=t[6],C=t[7],v=t[8],T=n*h+a*p+l*f,S=r*h+s*p+u*f,A=o*h+c*p+d*f,b=n*m+a*g+l*_,E=r*m+s*g+u*_,x=o*m+c*g+d*_,P=n*y+a*C+l*v,D=r*y+s*C+u*v,w=o*y+c*C+d*v;return i[0]=T,i[1]=S,i[2]=A,i[3]=0,i[4]=b,i[5]=E,i[6]=x,i[7]=0,i[8]=P,i[9]=D,i[10]=w,i[11]=0,i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},Matrix4.multiplyByTranslation=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=n*e[0]+r*e[4]+o*e[8]+e[12],s=n*e[1]+r*e[5]+o*e[9]+e[13],c=n*e[2]+r*e[6]+o*e[10]+e[14];return i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3],i[4]=e[4],i[5]=e[5],i[6]=e[6],i[7]=e[7],i[8]=e[8],i[9]=e[9],i[10]=e[10],i[11]=e[11],i[12]=a,i[13]=s,i[14]=c,i[15]=e[15],i},Matrix4.multiplyByScale=function(e,t,i){const n=t.x,r=t.y,o=t.z;return 1===n&&1===r&&1===o?Matrix4.clone(e,i):(i[0]=n*e[0],i[1]=n*e[1],i[2]=n*e[2],i[3]=e[3],i[4]=r*e[4],i[5]=r*e[5],i[6]=r*e[6],i[7]=e[7],i[8]=o*e[8],i[9]=o*e[9],i[10]=o*e[10],i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i)},Matrix4.multiplyByUniformScale=function(e,t,i){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3],i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7],i[8]=e[8]*t,i[9]=e[9]*t,i[10]=e[10]*t,i[11]=e[11],i[12]=e[12],i[13]=e[13],i[14]=e[14],i[15]=e[15],i},Matrix4.multiplyByVector=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=t.w,s=e[0]*n+e[4]*r+e[8]*o+e[12]*a,c=e[1]*n+e[5]*r+e[9]*o+e[13]*a,l=e[2]*n+e[6]*r+e[10]*o+e[14]*a,u=e[3]*n+e[7]*r+e[11]*o+e[15]*a;return i.x=s,i.y=c,i.z=l,i.w=u,i},Matrix4.multiplyByPointAsVector=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=e[0]*n+e[4]*r+e[8]*o,s=e[1]*n+e[5]*r+e[9]*o,c=e[2]*n+e[6]*r+e[10]*o;return i.x=a,i.y=s,i.z=c,i},Matrix4.multiplyByPoint=function(e,t,i){const n=t.x,r=t.y,o=t.z,a=e[0]*n+e[4]*r+e[8]*o+e[12],s=e[1]*n+e[5]*r+e[9]*o+e[13],c=e[2]*n+e[6]*r+e[10]*o+e[14];return i.x=a,i.y=s,i.z=c,i},Matrix4.multiplyByScalar=function(e,t,i){return i[0]=e[0]*t,i[1]=e[1]*t,i[2]=e[2]*t,i[3]=e[3]*t,i[4]=e[4]*t,i[5]=e[5]*t,i[6]=e[6]*t,i[7]=e[7]*t,i[8]=e[8]*t,i[9]=e[9]*t,i[10]=e[10]*t,i[11]=e[11]*t,i[12]=e[12]*t,i[13]=e[13]*t,i[14]=e[14]*t,i[15]=e[15]*t,i},Matrix4.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t[9]=-e[9],t[10]=-e[10],t[11]=-e[11],t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=-e[15],t},Matrix4.transpose=function(e,t){const i=e[1],n=e[2],r=e[3],o=e[6],a=e[7],s=e[11];return t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=i,t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=o,t[10]=e[10],t[11]=e[14],t[12]=r,t[13]=a,t[14]=s,t[15]=e[15],t},Matrix4.abs=function(e,t){return t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t[9]=Math.abs(e[9]),t[10]=Math.abs(e[10]),t[11]=Math.abs(e[11]),t[12]=Math.abs(e[12]),t[13]=Math.abs(e[13]),t[14]=Math.abs(e[14]),t[15]=Math.abs(e[15]),t},Matrix4.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[3]===t[3]&&e[7]===t[7]&&e[11]===t[11]&&e[15]===t[15]},Matrix4.equalsEpsilon=function(e,t,i){return i=defaultValue(i,0),e===t||defined(e)&&defined(t)&&Math.abs(e[0]-t[0])<=i&&Math.abs(e[1]-t[1])<=i&&Math.abs(e[2]-t[2])<=i&&Math.abs(e[3]-t[3])<=i&&Math.abs(e[4]-t[4])<=i&&Math.abs(e[5]-t[5])<=i&&Math.abs(e[6]-t[6])<=i&&Math.abs(e[7]-t[7])<=i&&Math.abs(e[8]-t[8])<=i&&Math.abs(e[9]-t[9])<=i&&Math.abs(e[10]-t[10])<=i&&Math.abs(e[11]-t[11])<=i&&Math.abs(e[12]-t[12])<=i&&Math.abs(e[13]-t[13])<=i&&Math.abs(e[14]-t[14])<=i&&Math.abs(e[15]-t[15])<=i},Matrix4.getTranslation=function(e,t){return t.x=e[12],t.y=e[13],t.z=e[14],t},Matrix4.getMatrix3=function(e,t){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t};const scratchInverseRotation=new Matrix3,scratchMatrix3Zero=new Matrix3,scratchBottomRow=new Cartesian4,scratchExpectedBottomRow=new Cartesian4(0,0,0,1);Matrix4.inverse=function(e,t){const i=e[0],n=e[4],r=e[8],o=e[12],a=e[1],s=e[5],c=e[9],l=e[13],u=e[2],d=e[6],h=e[10],p=e[14],f=e[3],m=e[7],g=e[11],_=e[15];let y=h*_,C=p*g,v=d*_,T=p*m,S=d*g,A=h*m,b=u*_,E=p*f,x=u*g,P=h*f,D=u*m,w=d*f;const M=y*s+T*c+S*l-(C*s+v*c+A*l),I=C*a+b*c+P*l-(y*a+E*c+x*l),R=v*a+E*s+D*l-(T*a+b*s+w*l),O=A*a+x*s+w*c-(S*a+P*s+D*c),L=C*n+v*r+A*o-(y*n+T*r+S*o),B=y*i+E*r+x*o-(C*i+b*r+P*o),F=T*i+b*n+w*o-(v*i+E*n+D*o),N=S*i+P*n+D*r-(A*i+x*n+w*r);y=r*l,C=o*c,v=n*l,T=o*s,S=n*c,A=r*s,b=i*l,E=o*a,x=i*c,P=r*a,D=i*s,w=n*a;const V=y*m+T*g+S*_-(C*m+v*g+A*_),k=C*f+b*g+P*_-(y*f+E*g+x*_),$=v*f+E*m+D*_-(T*f+b*m+w*_),U=A*f+x*m+w*g-(S*f+P*m+D*g),G=v*h+A*p+C*d-(S*p+y*d+T*h),z=x*p+y*u+E*h-(b*h+P*p+C*u),H=b*d+w*p+T*u-(D*p+v*u+E*d),W=D*h+S*u+P*d-(x*d+w*h+A*u);let j=i*M+n*I+r*R+o*O;if(Math.abs(j)<CesiumMath.EPSILON21){if(Matrix3.equalsEpsilon(Matrix4.getMatrix3(e,scratchInverseRotation),scratchMatrix3Zero,CesiumMath.EPSILON7)&&Cartesian4.equals(Matrix4.getRow(e,3,scratchBottomRow),scratchExpectedBottomRow))return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=0,t[11]=0,t[12]=-e[12],t[13]=-e[13],t[14]=-e[14],t[15]=1,t;throw new RuntimeError("matrix is not invertible because its determinate is zero.")}return j=1/j,t[0]=M*j,t[1]=I*j,t[2]=R*j,t[3]=O*j,t[4]=L*j,t[5]=B*j,t[6]=F*j,t[7]=N*j,t[8]=V*j,t[9]=k*j,t[10]=$*j,t[11]=U*j,t[12]=G*j,t[13]=z*j,t[14]=H*j,t[15]=W*j,t},Matrix4.inverseTransformation=function(e,t){const i=e[0],n=e[1],r=e[2],o=e[4],a=e[5],s=e[6],c=e[8],l=e[9],u=e[10],d=e[12],h=e[13],p=e[14],f=-i*d-n*h-r*p,m=-o*d-a*h-s*p,g=-c*d-l*h-u*p;return t[0]=i,t[1]=o,t[2]=c,t[3]=0,t[4]=n,t[5]=a,t[6]=l,t[7]=0,t[8]=r,t[9]=s,t[10]=u,t[11]=0,t[12]=f,t[13]=m,t[14]=g,t[15]=1,t};const scratchTransposeMatrix=new Matrix4;function Rectangle(e,t,i,n){this.west=defaultValue(e,0),this.south=defaultValue(t,0),this.east=defaultValue(i,0),this.north=defaultValue(n,0)}Matrix4.inverseTranspose=function(e,t){return Matrix4.inverse(Matrix4.transpose(e,scratchTransposeMatrix),t)},Matrix4.IDENTITY=Object.freeze(new Matrix4(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)),Matrix4.ZERO=Object.freeze(new Matrix4(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)),Matrix4.COLUMN0ROW0=0,Matrix4.COLUMN0ROW1=1,Matrix4.COLUMN0ROW2=2,Matrix4.COLUMN0ROW3=3,Matrix4.COLUMN1ROW0=4,Matrix4.COLUMN1ROW1=5,Matrix4.COLUMN1ROW2=6,Matrix4.COLUMN1ROW3=7,Matrix4.COLUMN2ROW0=8,Matrix4.COLUMN2ROW1=9,Matrix4.COLUMN2ROW2=10,Matrix4.COLUMN2ROW3=11,Matrix4.COLUMN3ROW0=12,Matrix4.COLUMN3ROW1=13,Matrix4.COLUMN3ROW2=14,Matrix4.COLUMN3ROW3=15,Object.defineProperties(Matrix4.prototype,{length:{get:function(){return Matrix4.packedLength}}}),Matrix4.prototype.clone=function(e){return Matrix4.clone(this,e)},Matrix4.prototype.equals=function(e){return Matrix4.equals(this,e)},Matrix4.equalsArray=function(e,t,i){return e[0]===t[i]&&e[1]===t[i+1]&&e[2]===t[i+2]&&e[3]===t[i+3]&&e[4]===t[i+4]&&e[5]===t[i+5]&&e[6]===t[i+6]&&e[7]===t[i+7]&&e[8]===t[i+8]&&e[9]===t[i+9]&&e[10]===t[i+10]&&e[11]===t[i+11]&&e[12]===t[i+12]&&e[13]===t[i+13]&&e[14]===t[i+14]&&e[15]===t[i+15]},Matrix4.prototype.equalsEpsilon=function(e,t){return Matrix4.equalsEpsilon(this,e,t)},Matrix4.prototype.toString=function(){return`(${this[0]}, ${this[4]}, ${this[8]}, ${this[12]})\n(${this[1]}, ${this[5]}, ${this[9]}, ${this[13]})\n(${this[2]}, ${this[6]}, ${this[10]}, ${this[14]})\n(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`},Object.defineProperties(Rectangle.prototype,{width:{get:function(){return Rectangle.computeWidth(this)}},height:{get:function(){return Rectangle.computeHeight(this)}}}),Rectangle.packedLength=4,Rectangle.pack=function(e,t,i){return i=defaultValue(i,0),t[i++]=e.west,t[i++]=e.south,t[i++]=e.east,t[i]=e.north,t},Rectangle.unpack=function(e,t,i){return t=defaultValue(t,0),defined(i)||(i=new Rectangle),i.west=e[t++],i.south=e[t++],i.east=e[t++],i.north=e[t],i},Rectangle.computeWidth=function(e){let t=e.east;const i=e.west;return t<i&&(t+=CesiumMath.TWO_PI),t-i},Rectangle.computeHeight=function(e){return e.north-e.south},Rectangle.fromDegrees=function(e,t,i,n,r){return e=CesiumMath.toRadians(defaultValue(e,0)),t=CesiumMath.toRadians(defaultValue(t,0)),i=CesiumMath.toRadians(defaultValue(i,0)),n=CesiumMath.toRadians(defaultValue(n,0)),defined(r)?(r.west=e,r.south=t,r.east=i,r.north=n,r):new Rectangle(e,t,i,n)},Rectangle.fromRadians=function(e,t,i,n,r){return defined(r)?(r.west=defaultValue(e,0),r.south=defaultValue(t,0),r.east=defaultValue(i,0),r.north=defaultValue(n,0),r):new Rectangle(e,t,i,n)},Rectangle.fromCartographicArray=function(e,t){let i=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,a=Number.MAX_VALUE,s=-Number.MAX_VALUE;for(let t=0,c=e.length;t<c;t++){const c=e[t];i=Math.min(i,c.longitude),n=Math.max(n,c.longitude),a=Math.min(a,c.latitude),s=Math.max(s,c.latitude);const l=c.longitude>=0?c.longitude:c.longitude+CesiumMath.TWO_PI;r=Math.min(r,l),o=Math.max(o,l)}return n-i>o-r&&(i=r,n=o,n>CesiumMath.PI&&(n-=CesiumMath.TWO_PI),i>CesiumMath.PI&&(i-=CesiumMath.TWO_PI)),defined(t)?(t.west=i,t.south=a,t.east=n,t.north=s,t):new Rectangle(i,a,n,s)},Rectangle.fromCartesianArray=function(e,t,i){t=defaultValue(t,Ellipsoid.WGS84);let n=Number.MAX_VALUE,r=-Number.MAX_VALUE,o=Number.MAX_VALUE,a=-Number.MAX_VALUE,s=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let i=0,l=e.length;i<l;i++){const l=t.cartesianToCartographic(e[i]);n=Math.min(n,l.longitude),r=Math.max(r,l.longitude),s=Math.min(s,l.latitude),c=Math.max(c,l.latitude);const u=l.longitude>=0?l.longitude:l.longitude+CesiumMath.TWO_PI;o=Math.min(o,u),a=Math.max(a,u)}return r-n>a-o&&(n=o,r=a,r>CesiumMath.PI&&(r-=CesiumMath.TWO_PI),n>CesiumMath.PI&&(n-=CesiumMath.TWO_PI)),defined(i)?(i.west=n,i.south=s,i.east=r,i.north=c,i):new Rectangle(n,s,r,c)},Rectangle.clone=function(e,t){if(defined(e))return defined(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new Rectangle(e.west,e.south,e.east,e.north)},Rectangle.equalsEpsilon=function(e,t,i){return i=defaultValue(i,0),e===t||defined(e)&&defined(t)&&Math.abs(e.west-t.west)<=i&&Math.abs(e.south-t.south)<=i&&Math.abs(e.east-t.east)<=i&&Math.abs(e.north-t.north)<=i},Rectangle.prototype.clone=function(e){return Rectangle.clone(this,e)},Rectangle.prototype.equals=function(e){return Rectangle.equals(this,e)},Rectangle.equals=function(e,t){return e===t||defined(e)&&defined(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north},Rectangle.prototype.equalsEpsilon=function(e,t){return Rectangle.equalsEpsilon(this,e,t)},Rectangle.validate=function(e){},Rectangle.southwest=function(e,t){return defined(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new Cartographic(e.west,e.south)},Rectangle.northwest=function(e,t){return defined(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new Cartographic(e.west,e.north)},Rectangle.northeast=function(e,t){return defined(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new Cartographic(e.east,e.north)},Rectangle.southeast=function(e,t){return defined(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new Cartographic(e.east,e.south)},Rectangle.center=function(e,t){let i=e.east;const n=e.west;i<n&&(i+=CesiumMath.TWO_PI);const r=CesiumMath.negativePiToPi(.5*(n+i)),o=.5*(e.south+e.north);return defined(t)?(t.longitude=r,t.latitude=o,t.height=0,t):new Cartographic(r,o)},Rectangle.intersection=function(e,t,i){let n=e.east,r=e.west,o=t.east,a=t.west;n<r&&o>0?n+=CesiumMath.TWO_PI:o<a&&n>0&&(o+=CesiumMath.TWO_PI),n<r&&a<0?a+=CesiumMath.TWO_PI:o<a&&r<0&&(r+=CesiumMath.TWO_PI);const s=CesiumMath.negativePiToPi(Math.max(r,a)),c=CesiumMath.negativePiToPi(Math.min(n,o));if((e.west<e.east||t.west<t.east)&&c<=s)return;const l=Math.max(e.south,t.south),u=Math.min(e.north,t.north);return l>=u?void 0:defined(i)?(i.west=s,i.south=l,i.east=c,i.north=u,i):new Rectangle(s,l,c,u)},Rectangle.simpleIntersection=function(e,t,i){const n=Math.max(e.west,t.west),r=Math.max(e.south,t.south),o=Math.min(e.east,t.east),a=Math.min(e.north,t.north);if(!(r>=a||n>=o))return defined(i)?(i.west=n,i.south=r,i.east=o,i.north=a,i):new Rectangle(n,r,o,a)},Rectangle.union=function(e,t,i){defined(i)||(i=new Rectangle);let n=e.east,r=e.west,o=t.east,a=t.west;n<r&&o>0?n+=CesiumMath.TWO_PI:o<a&&n>0&&(o+=CesiumMath.TWO_PI),n<r&&a<0?a+=CesiumMath.TWO_PI:o<a&&r<0&&(r+=CesiumMath.TWO_PI);const s=CesiumMath.negativePiToPi(Math.min(r,a)),c=CesiumMath.negativePiToPi(Math.max(n,o));return i.west=s,i.south=Math.min(e.south,t.south),i.east=c,i.north=Math.max(e.north,t.north),i},Rectangle.expand=function(e,t,i){return defined(i)||(i=new Rectangle),i.west=Math.min(e.west,t.longitude),i.south=Math.min(e.south,t.latitude),i.east=Math.max(e.east,t.longitude),i.north=Math.max(e.north,t.latitude),i},Rectangle.contains=function(e,t){let i=t.longitude;const n=t.latitude,r=e.west;let o=e.east;return o<r&&(o+=CesiumMath.TWO_PI,i<0&&(i+=CesiumMath.TWO_PI)),(i>r||CesiumMath.equalsEpsilon(i,r,CesiumMath.EPSILON14))&&(i<o||CesiumMath.equalsEpsilon(i,o,CesiumMath.EPSILON14))&&n>=e.south&&n<=e.north};const subsampleLlaScratch=new Cartographic;function BoundingSphere(e,t){this.center=Cartesian3.clone(defaultValue(e,Cartesian3.ZERO)),this.radius=defaultValue(t,0)}Rectangle.subsample=function(e,t,i,n){t=defaultValue(t,Ellipsoid.WGS84),i=defaultValue(i,0),defined(n)||(n=[]);let r=0;const o=e.north,a=e.south,s=e.east,c=e.west,l=subsampleLlaScratch;l.height=i,l.longitude=c,l.latitude=o,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.longitude=s,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.latitude=a,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.longitude=c,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.latitude=o<0?o:a>0?a:0;for(let i=1;i<8;++i)l.longitude=-Math.PI+i*CesiumMath.PI_OVER_TWO,Rectangle.contains(e,l)&&(n[r]=t.cartographicToCartesian(l,n[r]),r++);return 0===l.latitude&&(l.longitude=c,n[r]=t.cartographicToCartesian(l,n[r]),r++,l.longitude=s,n[r]=t.cartographicToCartesian(l,n[r]),r++),n.length=r,n},Rectangle.subsection=function(e,t,i,n,r,o){if(defined(o)||(o=new Rectangle),e.west<=e.east){const i=e.east-e.west;o.west=e.west+t*i,o.east=e.west+n*i}else{const i=CesiumMath.TWO_PI+e.east-e.west;o.west=CesiumMath.negativePiToPi(e.west+t*i),o.east=CesiumMath.negativePiToPi(e.west+n*i)}const a=e.north-e.south;return o.south=e.south+i*a,o.north=e.south+r*a,1===t&&(o.west=e.east),1===n&&(o.east=e.east),1===i&&(o.south=e.north),1===r&&(o.north=e.north),o},Rectangle.MAX_VALUE=Object.freeze(new Rectangle(-Math.PI,-CesiumMath.PI_OVER_TWO,Math.PI,CesiumMath.PI_OVER_TWO));const fromPointsXMin=new Cartesian3,fromPointsYMin=new Cartesian3,fromPointsZMin=new Cartesian3,fromPointsXMax=new Cartesian3,fromPointsYMax=new Cartesian3,fromPointsZMax=new Cartesian3,fromPointsCurrentPos=new Cartesian3,fromPointsScratch=new Cartesian3,fromPointsRitterCenter=new Cartesian3,fromPointsMinBoxPt=new Cartesian3,fromPointsMaxBoxPt=new Cartesian3,fromPointsNaiveCenterScratch=new Cartesian3,volumeConstant=4/3*CesiumMath.PI;BoundingSphere.fromPoints=function(e,t){if(defined(t)||(t=new BoundingSphere),!defined(e)||0===e.length)return t.center=Cartesian3.clone(Cartesian3.ZERO,t.center),t.radius=0,t;const i=Cartesian3.clone(e[0],fromPointsCurrentPos),n=Cartesian3.clone(i,fromPointsXMin),r=Cartesian3.clone(i,fromPointsYMin),o=Cartesian3.clone(i,fromPointsZMin),a=Cartesian3.clone(i,fromPointsXMax),s=Cartesian3.clone(i,fromPointsYMax),c=Cartesian3.clone(i,fromPointsZMax),l=e.length;let u;for(u=1;u<l;u++){Cartesian3.clone(e[u],i);const t=i.x,l=i.y,d=i.z;t<n.x&&Cartesian3.clone(i,n),t>a.x&&Cartesian3.clone(i,a),l<r.y&&Cartesian3.clone(i,r),l>s.y&&Cartesian3.clone(i,s),d<o.z&&Cartesian3.clone(i,o),d>c.z&&Cartesian3.clone(i,c)}const d=Cartesian3.magnitudeSquared(Cartesian3.subtract(a,n,fromPointsScratch)),h=Cartesian3.magnitudeSquared(Cartesian3.subtract(s,r,fromPointsScratch)),p=Cartesian3.magnitudeSquared(Cartesian3.subtract(c,o,fromPointsScratch));let f=n,m=a,g=d;h>g&&(g=h,f=r,m=s),p>g&&(g=p,f=o,m=c);const _=fromPointsRitterCenter;_.x=.5*(f.x+m.x),_.y=.5*(f.y+m.y),_.z=.5*(f.z+m.z);let y=Cartesian3.magnitudeSquared(Cartesian3.subtract(m,_,fromPointsScratch)),C=Math.sqrt(y);const v=fromPointsMinBoxPt;v.x=n.x,v.y=r.y,v.z=o.z;const T=fromPointsMaxBoxPt;T.x=a.x,T.y=s.y,T.z=c.z;const S=Cartesian3.midpoint(v,T,fromPointsNaiveCenterScratch);let A=0;for(u=0;u<l;u++){Cartesian3.clone(e[u],i);const t=Cartesian3.magnitude(Cartesian3.subtract(i,S,fromPointsScratch));t>A&&(A=t);const n=Cartesian3.magnitudeSquared(Cartesian3.subtract(i,_,fromPointsScratch));if(n>y){const e=Math.sqrt(n);C=.5*(C+e),y=C*C;const t=e-C;_.x=(C*_.x+t*i.x)/e,_.y=(C*_.y+t*i.y)/e,_.z=(C*_.z+t*i.z)/e}}return C<A?(Cartesian3.clone(_,t.center),t.radius=C):(Cartesian3.clone(S,t.center),t.radius=A),t};const defaultProjection$1=new GeographicProjection,fromRectangle2DLowerLeft=new Cartesian3,fromRectangle2DUpperRight=new Cartesian3,fromRectangle2DSouthwest=new Cartographic,fromRectangle2DNortheast=new Cartographic;BoundingSphere.fromRectangle2D=function(e,t,i){return BoundingSphere.fromRectangleWithHeights2D(e,t,0,0,i)},BoundingSphere.fromRectangleWithHeights2D=function(e,t,i,n,r){if(defined(r)||(r=new BoundingSphere),!defined(e))return r.center=Cartesian3.clone(Cartesian3.ZERO,r.center),r.radius=0,r;t=defaultValue(t,defaultProjection$1),Rectangle.southwest(e,fromRectangle2DSouthwest),fromRectangle2DSouthwest.height=i,Rectangle.northeast(e,fromRectangle2DNortheast),fromRectangle2DNortheast.height=n;const o=t.project(fromRectangle2DSouthwest,fromRectangle2DLowerLeft),a=t.project(fromRectangle2DNortheast,fromRectangle2DUpperRight),s=a.x-o.x,c=a.y-o.y,l=a.z-o.z;r.radius=.5*Math.sqrt(s*s+c*c+l*l);const u=r.center;return u.x=o.x+.5*s,u.y=o.y+.5*c,u.z=o.z+.5*l,r};const fromRectangle3DScratch=[];BoundingSphere.fromRectangle3D=function(e,t,i,n){if(t=defaultValue(t,Ellipsoid.WGS84),i=defaultValue(i,0),defined(n)||(n=new BoundingSphere),!defined(e))return n.center=Cartesian3.clone(Cartesian3.ZERO,n.center),n.radius=0,n;const r=Rectangle.subsample(e,t,i,fromRectangle3DScratch);return BoundingSphere.fromPoints(r,n)},BoundingSphere.fromVertices=function(e,t,i,n){if(defined(n)||(n=new BoundingSphere),!defined(e)||0===e.length)return n.center=Cartesian3.clone(Cartesian3.ZERO,n.center),n.radius=0,n;t=defaultValue(t,Cartesian3.ZERO),i=defaultValue(i,3);const r=fromPointsCurrentPos;r.x=e[0]+t.x,r.y=e[1]+t.y,r.z=e[2]+t.z;const o=Cartesian3.clone(r,fromPointsXMin),a=Cartesian3.clone(r,fromPointsYMin),s=Cartesian3.clone(r,fromPointsZMin),c=Cartesian3.clone(r,fromPointsXMax),l=Cartesian3.clone(r,fromPointsYMax),u=Cartesian3.clone(r,fromPointsZMax),d=e.length;let h;for(h=0;h<d;h+=i){const i=e[h]+t.x,n=e[h+1]+t.y,d=e[h+2]+t.z;r.x=i,r.y=n,r.z=d,i<o.x&&Cartesian3.clone(r,o),i>c.x&&Cartesian3.clone(r,c),n<a.y&&Cartesian3.clone(r,a),n>l.y&&Cartesian3.clone(r,l),d<s.z&&Cartesian3.clone(r,s),d>u.z&&Cartesian3.clone(r,u)}const p=Cartesian3.magnitudeSquared(Cartesian3.subtract(c,o,fromPointsScratch)),f=Cartesian3.magnitudeSquared(Cartesian3.subtract(l,a,fromPointsScratch)),m=Cartesian3.magnitudeSquared(Cartesian3.subtract(u,s,fromPointsScratch));let g=o,_=c,y=p;f>y&&(y=f,g=a,_=l),m>y&&(y=m,g=s,_=u);const C=fromPointsRitterCenter;C.x=.5*(g.x+_.x),C.y=.5*(g.y+_.y),C.z=.5*(g.z+_.z);let v=Cartesian3.magnitudeSquared(Cartesian3.subtract(_,C,fromPointsScratch)),T=Math.sqrt(v);const S=fromPointsMinBoxPt;S.x=o.x,S.y=a.y,S.z=s.z;const A=fromPointsMaxBoxPt;A.x=c.x,A.y=l.y,A.z=u.z;const b=Cartesian3.midpoint(S,A,fromPointsNaiveCenterScratch);let E=0;for(h=0;h<d;h+=i){r.x=e[h]+t.x,r.y=e[h+1]+t.y,r.z=e[h+2]+t.z;const i=Cartesian3.magnitude(Cartesian3.subtract(r,b,fromPointsScratch));i>E&&(E=i);const n=Cartesian3.magnitudeSquared(Cartesian3.subtract(r,C,fromPointsScratch));if(n>v){const e=Math.sqrt(n);T=.5*(T+e),v=T*T;const t=e-T;C.x=(T*C.x+t*r.x)/e,C.y=(T*C.y+t*r.y)/e,C.z=(T*C.z+t*r.z)/e}}return T<E?(Cartesian3.clone(C,n.center),n.radius=T):(Cartesian3.clone(b,n.center),n.radius=E),n},BoundingSphere.fromEncodedCartesianVertices=function(e,t,i){if(defined(i)||(i=new BoundingSphere),!defined(e)||!defined(t)||e.length!==t.length||0===e.length)return i.center=Cartesian3.clone(Cartesian3.ZERO,i.center),i.radius=0,i;const n=fromPointsCurrentPos;n.x=e[0]+t[0],n.y=e[1]+t[1],n.z=e[2]+t[2];const r=Cartesian3.clone(n,fromPointsXMin),o=Cartesian3.clone(n,fromPointsYMin),a=Cartesian3.clone(n,fromPointsZMin),s=Cartesian3.clone(n,fromPointsXMax),c=Cartesian3.clone(n,fromPointsYMax),l=Cartesian3.clone(n,fromPointsZMax),u=e.length;let d;for(d=0;d<u;d+=3){const i=e[d]+t[d],u=e[d+1]+t[d+1],h=e[d+2]+t[d+2];n.x=i,n.y=u,n.z=h,i<r.x&&Cartesian3.clone(n,r),i>s.x&&Cartesian3.clone(n,s),u<o.y&&Cartesian3.clone(n,o),u>c.y&&Cartesian3.clone(n,c),h<a.z&&Cartesian3.clone(n,a),h>l.z&&Cartesian3.clone(n,l)}const h=Cartesian3.magnitudeSquared(Cartesian3.subtract(s,r,fromPointsScratch)),p=Cartesian3.magnitudeSquared(Cartesian3.subtract(c,o,fromPointsScratch)),f=Cartesian3.magnitudeSquared(Cartesian3.subtract(l,a,fromPointsScratch));let m=r,g=s,_=h;p>_&&(_=p,m=o,g=c),f>_&&(_=f,m=a,g=l);const y=fromPointsRitterCenter;y.x=.5*(m.x+g.x),y.y=.5*(m.y+g.y),y.z=.5*(m.z+g.z);let C=Cartesian3.magnitudeSquared(Cartesian3.subtract(g,y,fromPointsScratch)),v=Math.sqrt(C);const T=fromPointsMinBoxPt;T.x=r.x,T.y=o.y,T.z=a.z;const S=fromPointsMaxBoxPt;S.x=s.x,S.y=c.y,S.z=l.z;const A=Cartesian3.midpoint(T,S,fromPointsNaiveCenterScratch);let b=0;for(d=0;d<u;d+=3){n.x=e[d]+t[d],n.y=e[d+1]+t[d+1],n.z=e[d+2]+t[d+2];const i=Cartesian3.magnitude(Cartesian3.subtract(n,A,fromPointsScratch));i>b&&(b=i);const r=Cartesian3.magnitudeSquared(Cartesian3.subtract(n,y,fromPointsScratch));if(r>C){const e=Math.sqrt(r);v=.5*(v+e),C=v*v;const t=e-v;y.x=(v*y.x+t*n.x)/e,y.y=(v*y.y+t*n.y)/e,y.z=(v*y.z+t*n.z)/e}}return v<b?(Cartesian3.clone(y,i.center),i.radius=v):(Cartesian3.clone(A,i.center),i.radius=b),i},BoundingSphere.fromCornerPoints=function(e,t,i){defined(i)||(i=new BoundingSphere);const n=Cartesian3.midpoint(e,t,i.center);return i.radius=Cartesian3.distance(n,t),i},BoundingSphere.fromEllipsoid=function(e,t){return defined(t)||(t=new BoundingSphere),Cartesian3.clone(Cartesian3.ZERO,t.center),t.radius=e.maximumRadius,t};const fromBoundingSpheresScratch=new Cartesian3;BoundingSphere.fromBoundingSpheres=function(e,t){if(defined(t)||(t=new BoundingSphere),!defined(e)||0===e.length)return t.center=Cartesian3.clone(Cartesian3.ZERO,t.center),t.radius=0,t;const i=e.length;if(1===i)return BoundingSphere.clone(e[0],t);if(2===i)return BoundingSphere.union(e[0],e[1],t);const n=[];let r;for(r=0;r<i;r++)n.push(e[r].center);const o=(t=BoundingSphere.fromPoints(n,t)).center;let a=t.radius;for(r=0;r<i;r++){const t=e[r];a=Math.max(a,Cartesian3.distance(o,t.center,fromBoundingSpheresScratch)+t.radius)}return t.radius=a,t};const fromOrientedBoundingBoxScratchU=new Cartesian3,fromOrientedBoundingBoxScratchV=new Cartesian3,fromOrientedBoundingBoxScratchW=new Cartesian3;BoundingSphere.fromOrientedBoundingBox=function(e,t){defined(t)||(t=new BoundingSphere);const i=e.halfAxes,n=Matrix3.getColumn(i,0,fromOrientedBoundingBoxScratchU),r=Matrix3.getColumn(i,1,fromOrientedBoundingBoxScratchV),o=Matrix3.getColumn(i,2,fromOrientedBoundingBoxScratchW);return Cartesian3.add(n,r,n),Cartesian3.add(n,o,n),t.center=Cartesian3.clone(e.center,t.center),t.radius=Cartesian3.magnitude(n),t};const scratchFromTransformationCenter=new Cartesian3,scratchFromTransformationScale=new Cartesian3;BoundingSphere.fromTransformation=function(e,t){defined(t)||(t=new BoundingSphere);const i=Matrix4.getTranslation(e,scratchFromTransformationCenter),n=Matrix4.getScale(e,scratchFromTransformationScale),r=.5*Cartesian3.magnitude(n);return t.center=Cartesian3.clone(i,t.center),t.radius=r,t},BoundingSphere.clone=function(e,t){if(defined(e))return defined(t)?(t.center=Cartesian3.clone(e.center,t.center),t.radius=e.radius,t):new BoundingSphere(e.center,e.radius)},BoundingSphere.packedLength=4,BoundingSphere.pack=function(e,t,i){i=defaultValue(i,0);const n=e.center;return t[i++]=n.x,t[i++]=n.y,t[i++]=n.z,t[i]=e.radius,t},BoundingSphere.unpack=function(e,t,i){t=defaultValue(t,0),defined(i)||(i=new BoundingSphere);const n=i.center;return n.x=e[t++],n.y=e[t++],n.z=e[t++],i.radius=e[t],i};const unionScratch=new Cartesian3,unionScratchCenter=new Cartesian3;BoundingSphere.union=function(e,t,i){defined(i)||(i=new BoundingSphere);const n=e.center,r=e.radius,o=t.center,a=t.radius,s=Cartesian3.subtract(o,n,unionScratch),c=Cartesian3.magnitude(s);if(r>=c+a)return e.clone(i),i;if(a>=c+r)return t.clone(i),i;const l=.5*(r+c+a),u=Cartesian3.multiplyByScalar(s,(-r+l)/c,unionScratchCenter);return Cartesian3.add(u,n,u),Cartesian3.clone(u,i.center),i.radius=l,i};const expandScratch=new Cartesian3;BoundingSphere.expand=function(e,t,i){i=BoundingSphere.clone(e,i);const n=Cartesian3.magnitude(Cartesian3.subtract(t,i.center,expandScratch));return n>i.radius&&(i.radius=n),i},BoundingSphere.intersectPlane=function(e,t){const i=e.center,n=e.radius,r=t.normal,o=Cartesian3.dot(r,i)+t.distance;return o<-n?Intersect$1.OUTSIDE:o<n?Intersect$1.INTERSECTING:Intersect$1.INSIDE},BoundingSphere.transform=function(e,t,i){return defined(i)||(i=new BoundingSphere),i.center=Matrix4.multiplyByPoint(t,e.center,i.center),i.radius=Matrix4.getMaximumScale(t)*e.radius,i};const distanceSquaredToScratch=new Cartesian3;BoundingSphere.distanceSquaredTo=function(e,t){const i=Cartesian3.subtract(e.center,t,distanceSquaredToScratch),n=Cartesian3.magnitude(i)-e.radius;return n<=0?0:n*n},BoundingSphere.transformWithoutScale=function(e,t,i){return defined(i)||(i=new BoundingSphere),i.center=Matrix4.multiplyByPoint(t,e.center,i.center),i.radius=e.radius,i};const scratchCartesian3$d=new Cartesian3;BoundingSphere.computePlaneDistances=function(e,t,i,n){defined(n)||(n=new Interval);const r=Cartesian3.subtract(e.center,t,scratchCartesian3$d),o=Cartesian3.dot(i,r);return n.start=o-e.radius,n.stop=o+e.radius,n};const projectTo2DNormalScratch=new Cartesian3,projectTo2DEastScratch=new Cartesian3,projectTo2DNorthScratch=new Cartesian3,projectTo2DWestScratch=new Cartesian3,projectTo2DSouthScratch=new Cartesian3,projectTo2DCartographicScratch=new Cartographic,projectTo2DPositionsScratch=new Array(8);for(let e=0;e<8;++e)projectTo2DPositionsScratch[e]=new Cartesian3;const projectTo2DProjection=new GeographicProjection;BoundingSphere.projectTo2D=function(e,t,i){const n=(t=defaultValue(t,projectTo2DProjection)).ellipsoid;let r=e.center;const o=e.radius;let a;a=Cartesian3.equals(r,Cartesian3.ZERO)?Cartesian3.clone(Cartesian3.UNIT_X,projectTo2DNormalScratch):n.geodeticSurfaceNormal(r,projectTo2DNormalScratch);const s=Cartesian3.cross(Cartesian3.UNIT_Z,a,projectTo2DEastScratch);Cartesian3.normalize(s,s);const c=Cartesian3.cross(a,s,projectTo2DNorthScratch);Cartesian3.normalize(c,c),Cartesian3.multiplyByScalar(a,o,a),Cartesian3.multiplyByScalar(c,o,c),Cartesian3.multiplyByScalar(s,o,s);const l=Cartesian3.negate(c,projectTo2DSouthScratch),u=Cartesian3.negate(s,projectTo2DWestScratch),d=projectTo2DPositionsScratch;let h=d[0];Cartesian3.add(a,c,h),Cartesian3.add(h,s,h),h=d[1],Cartesian3.add(a,c,h),Cartesian3.add(h,u,h),h=d[2],Cartesian3.add(a,l,h),Cartesian3.add(h,u,h),h=d[3],Cartesian3.add(a,l,h),Cartesian3.add(h,s,h),Cartesian3.negate(a,a),h=d[4],Cartesian3.add(a,c,h),Cartesian3.add(h,s,h),h=d[5],Cartesian3.add(a,c,h),Cartesian3.add(h,u,h),h=d[6],Cartesian3.add(a,l,h),Cartesian3.add(h,u,h),h=d[7],Cartesian3.add(a,l,h),Cartesian3.add(h,s,h);const p=d.length;for(let e=0;e<p;++e){const i=d[e];Cartesian3.add(r,i,i);const o=n.cartesianToCartographic(i,projectTo2DCartographicScratch);t.project(o,i)}r=(i=BoundingSphere.fromPoints(d,i)).center;const f=r.x,m=r.y,g=r.z;return r.x=g,r.y=f,r.z=m,i},BoundingSphere.isOccluded=function(e,t){return!t.isBoundingSphereVisible(e)},BoundingSphere.equals=function(e,t){return e===t||defined(e)&&defined(t)&&Cartesian3.equals(e.center,t.center)&&e.radius===t.radius},BoundingSphere.prototype.intersectPlane=function(e){return BoundingSphere.intersectPlane(this,e)},BoundingSphere.prototype.distanceSquaredTo=function(e){return BoundingSphere.distanceSquaredTo(this,e)},BoundingSphere.prototype.computePlaneDistances=function(e,t,i){return BoundingSphere.computePlaneDistances(this,e,t,i)},BoundingSphere.prototype.isOccluded=function(e){return BoundingSphere.isOccluded(this,e)},BoundingSphere.prototype.equals=function(e){return BoundingSphere.equals(this,e)},BoundingSphere.prototype.clone=function(e){return BoundingSphere.clone(this,e)},BoundingSphere.prototype.volume=function(){const e=this.radius;return volumeConstant*e*e*e};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{};function createCommonjsModule(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return commonjsRequire(e,null==t?i.path:t)}},i.exports),i.exports}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var punycode=createCommonjsModule((function(e,t){!function(i){var n=t&&!t.nodeType&&t,r=e&&!e.nodeType&&e,o="object"==typeof commonjsGlobal&&commonjsGlobal;o.global!==o&&o.window!==o&&o.self!==o||(i=o);var a,s,c=2147483647,l=36,u=/^xn--/,d=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,p={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=Math.floor,m=String.fromCharCode;function g(e){throw new RangeError(p[e])}function _(e,t){for(var i=e.length,n=[];i--;)n[i]=t(e[i]);return n}function y(e,t){var i=e.split("@"),n="";return i.length>1&&(n=i[0]+"@",e=i[1]),n+_((e=e.replace(h,".")).split("."),t).join(".")}function C(e){for(var t,i,n=[],r=0,o=e.length;r<o;)(t=e.charCodeAt(r++))>=55296&&t<=56319&&r<o?56320==(64512&(i=e.charCodeAt(r++)))?n.push(((1023&t)<<10)+(1023&i)+65536):(n.push(t),r--):n.push(t);return n}function v(e){return _(e,(function(e){var t="";return e>65535&&(t+=m((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+m(e)})).join("")}function T(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function S(e,t,i){var n=0;for(e=i?f(e/700):e>>1,e+=f(e/t);e>455;n+=l)e=f(e/35);return f(n+36*e/(e+38))}function A(e){var t,i,n,r,o,a,s,u,d,h,p,m=[],_=e.length,y=0,C=128,T=72;for((i=e.lastIndexOf("-"))<0&&(i=0),n=0;n<i;++n)e.charCodeAt(n)>=128&&g("not-basic"),m.push(e.charCodeAt(n));for(r=i>0?i+1:0;r<_;){for(o=y,a=1,s=l;r>=_&&g("invalid-input"),((u=(p=e.charCodeAt(r++))-48<10?p-22:p-65<26?p-65:p-97<26?p-97:l)>=l||u>f((c-y)/a))&&g("overflow"),y+=u*a,!(u<(d=s<=T?1:s>=T+26?26:s-T));s+=l)a>f(c/(h=l-d))&&g("overflow"),a*=h;T=S(y-o,t=m.length+1,0==o),f(y/t)>c-C&&g("overflow"),C+=f(y/t),y%=t,m.splice(y++,0,C)}return v(m)}function b(e){var t,i,n,r,o,a,s,u,d,h,p,_,y,v,A,b=[];for(_=(e=C(e)).length,t=128,i=0,o=72,a=0;a<_;++a)(p=e[a])<128&&b.push(m(p));for(n=r=b.length,r&&b.push("-");n<_;){for(s=c,a=0;a<_;++a)(p=e[a])>=t&&p<s&&(s=p);for(s-t>f((c-i)/(y=n+1))&&g("overflow"),i+=(s-t)*y,t=s,a=0;a<_;++a)if((p=e[a])<t&&++i>c&&g("overflow"),p==t){for(u=i,d=l;!(u<(h=d<=o?1:d>=o+26?26:d-o));d+=l)A=u-h,v=l-h,b.push(m(T(h+A%v,0))),u=f(A/v);b.push(m(T(u,0))),o=S(i,y,n==r),i=0,++n}++i,++t}return b.join("")}if(a={version:"1.3.2",ucs2:{decode:C,encode:v},decode:A,encode:b,toASCII:function(e){return y(e,(function(e){return d.test(e)?"xn--"+b(e):e}))},toUnicode:function(e){return y(e,(function(e){return u.test(e)?A(e.slice(4).toLowerCase()):e}))}},n&&r)if(e.exports==n)r.exports=a;else for(s in a)a.hasOwnProperty(s)&&(n[s]=a[s]);else i.punycode=a}(commonjsGlobal)})),IPv6=createCommonjsModule((function(e){
|
|
2
2
|
/*!
|
|
3
3
|
* URI.js - Mutating URLs
|
|
4
4
|
* IPv6 Support
|